Array.prototype.__yy_owner=0;var g_RUN=0x80000000;var JSON_game={Extensions:[],ExtensionOptions:{},Sounds:[{pName:"snd_cookie_get",kind:0,extension:"",origName:"snd_cookie_get",effects:0,volume:0.44999998807907104,pan:0,preload:false,groupId:0},{pName:"snd_cookie_use",kind:0,extension:"",origName:"snd_cookie_use",effects:0,volume:0.44999998807907104,pan:0,preload:false,groupId:0},{pName:"snd_done",kind:0,extension:"",origName:"snd_done",effects:0,volume:0.5,pan:0,preload:false,groupId:0},{pName:"snd_grass_1",
kind:0,extension:"",origName:"snd_grass_1",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_grass_2",kind:0,extension:"",origName:"snd_grass_2",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_grass_3",kind:0,extension:"",origName:"snd_grass_3",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_grass_4",kind:0,extension:"",origName:"snd_grass_4",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0}
,{pName:"snd_grass_5",kind:0,extension:"",origName:"snd_grass_5",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_snow_1",kind:0,extension:"",origName:"snd_snow_1",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_snow_2",kind:0,extension:"",origName:"snd_snow_2",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_snow_3",kind:0,extension:"",origName:"snd_snow_3",effects:0,volume:0.20000000298023224,pan:0,preload:false,
groupId:0},{pName:"snd_snow_4",kind:0,extension:"",origName:"snd_snow_4",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_snow_5",kind:0,extension:"",origName:"snd_snow_5",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_street_1",kind:0,extension:"",origName:"snd_street_1",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_street_2",kind:0,extension:"",origName:"snd_street_2",effects:0,volume:0.20000000298023224,pan:0,preload:false,
groupId:0},{pName:"snd_street_3",kind:0,extension:"",origName:"snd_street_3",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_street_4",kind:0,extension:"",origName:"snd_street_4",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_street_5",kind:0,extension:"",origName:"snd_street_5",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_take",kind:0,extension:"",origName:"snd_take",effects:0,volume:0.5,pan:0,preload:false,
groupId:0},{pName:"snd_theme",kind:0,extension:"",origName:"snd_theme",effects:0,volume:0.20000000298023224,pan:0,preload:false,groupId:0},{pName:"snd_timer",kind:0,extension:"",origName:"snd_timer",effects:0,volume:0.800000011920929,pan:0,preload:false,groupId:0}],AudioGroups:[{name:"audiogroup_default",enabled:true,}],Sprites:[{pName:"sArrowDestination",transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:16,bboxRight:15,bboxTop:3,bboxBottom:15,playbackspeed:30,TPEntryIndex:[260],sequence:{
pName:"sArrowDestination",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:8,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"sBench",height:8,transparent:false,smooth:false,preload:false,colCheck:2,bboxRight:15,bboxBottom:7,
playbackspeed:30,TPEntryIndex:[269,271,270,272,344,414,343],sequence:{pName:"sBench",playback:1,playbackSpeed:30,playbackSpeedType:0,length:7,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"sOil",width:7,height:7,transparent:false,smooth:false,preload:false,bboxRight:6,bboxTop:1,bboxBottom:6,
playbackspeed:30,TPEntryIndex:[320],sequence:{pName:"sOil",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"sPalette",width:512,height:32,transparent:false,smooth:false,preload:false,
bboxRight:511,bboxBottom:31,playbackspeed:30,TPEntryIndex:[7],sequence:{pName:"sPalette",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"sPark",width:512,height:32,transparent:false,
smooth:false,preload:false,bboxRight:511,bboxBottom:31,playbackspeed:30,TPEntryIndex:[8,9],sequence:{pName:"sPark",playback:1,playbackSpeed:30,playbackSpeedType:0,length:2,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{
imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_arrow",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:16,bboxLeft:25,bboxRight:31,bboxTop:11,bboxBottom:20,playbackspeed:30,TPEntryIndex:[278],sequence:{pName:"spr_arrow",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],
tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_car_2",width:32,transparent:false,smooth:false,preload:false,colCheck:2,xOrigin:16,yOrigin:8,bboxRight:31,bboxBottom:15,playbackspeed:30,TPEntryIndex:[208,206,176,175,177,181,180,191,195,201],sequence:{pName:"spr_car_2",playback:1,playbackSpeed:30,playbackSpeedType:0,length:10,xorigin:16,yorigin:8,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",
pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_car_shadow",width:32,transparent:false,smooth:false,preload:false,colCheck:2,xOrigin:16,yOrigin:8,bboxRight:31,
bboxBottom:15,playbackspeed:30,TPEntryIndex:[179],sequence:{pName:"spr_car_shadow",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:16,yorigin:8,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_car",width:32,transparent:false,smooth:false,
preload:false,colCheck:2,xOrigin:16,yOrigin:8,bboxRight:31,bboxBottom:15,playbackspeed:30,TPEntryIndex:[209,207,174,173,178,183,182,192,196,197,202],sequence:{pName:"spr_car",playback:1,playbackSpeed:30,playbackSpeedType:0,length:11,xorigin:16,yorigin:8,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}
}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{
0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_child_icon",width:9,height:9,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:4,bboxRight:8,bboxBottom:8,playbackspeed:30,TPEntryIndex:[277],sequence:{pName:"spr_child_icon",playback:1,playbackSpeed:30,
playbackSpeedType:0,length:1,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_church",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:1,xOrigin:16,yOrigin:16,bboxRight:31,bboxBottom:31,playbackspeed:30,
TPEntryIndex:[70,71,63,56,59,69,54,61,60,65,66,68,62,58,64,57,67,55,127,150,156,159,184,198,199,280,279,281,325,345],Masks:[[0x07,0x7D,0xFF,0xF0,0x00,0xFF,0xFF,0xFE,0x00,0x82,0xFF,0x00,0x00,0x82,0xFF,0x00,0xC0,0x82,0xFF,0x00,0xE0,0x82,0xFF,0x04,0xF0,0x7F,0xFF,0xFF,0xF8,0x82,0xFF,0x00,0xF8,0x82,0xFF,0x00,0xFC,0x82,0xFF,0x00,0xFE,0x82,0xFF,0x00,0xFE,0x82,0xFF,0x00,0xFE,0x9F,0xFF,0x2E,0x7F,0xFF,0xFF,0xFE,0x7F,0xFF,0xFF,0xFE,0x7F,0xFF,0xFF,0xFE,0x3F,0xFF,0xFF,0xFC,0x1F,0xFF,0xFF,0xF8,0x1F,0xFF,0xFF,
0xF8,0x0F,0xFF,0xFF,0xF0,0x07,0xFF,0xFF,0xE0,0x03,0xFF,0xFF,0xC0,0x00,0xFF,0xFF,0x00,0x00,0x7F,0xFE,0x00,0x00,0x0F,0xF0,0x00,0x00]],sequence:{pName:"spr_church",playback:1,playbackSpeed:30,playbackSpeedType:0,length:30,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}
},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}},{key:21,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:21}}},{key:22,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:22}}},{key:23,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:23}}},{key:24,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:24}}},{key:25,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:25}}},{key:26,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:26}}},{key:27,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:27}
}},{key:28,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:28}}},{key:29,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:29}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"spr_cookie_icon",width:10,height:10,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:5,bboxRight:9,bboxBottom:9,playbackspeed:30,TPEntryIndex:[273],sequence:{pName:"spr_cookie_icon",playback:1,playbackSpeed:30,
playbackSpeedType:0,length:1,xorigin:5,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cookie_shadow",width:8,height:8,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:4,bboxLeft:1,bboxRight:6,bboxTop:4,bboxBottom:4,playbackspeed:30,
TPEntryIndex:[391],sequence:{pName:"spr_cookie_shadow",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_Cookie",width:8,height:8,bboxMode:2,transparent:false,smooth:false,
preload:false,xOrigin:4,yOrigin:4,bboxLeft:1,bboxRight:6,bboxBottom:7,playbackspeed:30,TPEntryIndex:[393,389,385,387,388,386,390,392],sequence:{pName:"spr_Cookie",playback:1,playbackSpeed:30,playbackSpeedType:0,length:8,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}
}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_fountain_2",width:24,height:24,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:12,bboxRight:23,bboxBottom:23,playbackspeed:30,TPEntryIndex:[187,185,186,163,162,161,164,165,290,291,286,288,285,289,284,287,330,329,328,326,327],sequence:{pName:"spr_fountain_2",playback:1,playbackSpeed:30,playbackSpeedType:0,length:21,xorigin:12,yorigin:12,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,
traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{
0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_fountain",width:24,height:24,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:12,bboxRight:23,bboxBottom:23,playbackspeed:30,TPEntryIndex:[190,188,189,167,166,160,168,169,296,297,292,294,283,295,282,293,335,334,333,331,332],sequence:{pName:"spr_fountain",playback:1,playbackSpeed:30,playbackSpeedType:0,
length:21,xorigin:12,yorigin:12,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}
}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{
0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gift_icon",width:9,height:6,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:3,bboxRight:8,bboxBottom:5,playbackspeed:30,TPEntryIndex:[312],sequence:{pName:"spr_gift_icon",
playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:4,yorigin:3,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gift_shadow",width:8,height:8,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:4,bboxLeft:1,bboxRight:6,
bboxBottom:7,playbackspeed:30,TPEntryIndex:[319],sequence:{pName:"spr_gift_shadow",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gift",width:8,height:8,transparent:false,
smooth:false,preload:false,xOrigin:4,yOrigin:4,bboxLeft:1,bboxRight:6,bboxBottom:7,playbackspeed:30,TPEntryIndex:[318,313,317,316,314,315],sequence:{pName:"spr_gift",playback:1,playbackSpeed:30,playbackSpeedType:0,length:6,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,
length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_grass",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:2,bboxRight:31,
bboxBottom:31,playbackspeed:30,TPEntryIndex:[72],sequence:{pName:"spr_grass",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_house_2",width:32,height:32,transparent:false,
smooth:false,preload:false,colCheck:1,xOrigin:16,yOrigin:16,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[95,97,93,83,96,100,99,80,91,94,88,92,84,87,81,82,79,98,89,86,90,78,85,77,125,146,155,170,193,203,264,298],Masks:[[0xFF,0xFF]],sequence:{pName:"spr_house_2",playback:1,playbackSpeed:30,playbackSpeedType:0,length:32,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],
tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:19}}}
,{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}},{key:21,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:21}}},{key:22,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:22}}},{key:23,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:23}}},{key:24,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:24}}},{key:25,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:25}}},{key:26,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:26}}},{key:27,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:27}}},{key:28,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:28}}},{key:29,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:29}}},{key:30,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:30}}},{key:31,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:31}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,
nTilemode:[0,0,0,0,0]}},{pName:"spr_house_good_2",width:41,height:41,transparent:false,smooth:false,preload:false,xOrigin:20,yOrigin:20,bboxRight:40,bboxBottom:40,playbackspeed:30,TPEntryIndex:[24,29,25,32,27,33,34,31,30,26,28,46,49,50,52,123,144],sequence:{pName:"spr_house_good_2",playback:1,playbackSpeed:30,playbackSpeedType:0,length:17,xorigin:20,yorigin:20,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],
tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_house_good",width:41,height:41,transparent:false,smooth:false,preload:false,xOrigin:20,yOrigin:20,bboxRight:40,bboxBottom:40,playbackspeed:30,TPEntryIndex:[35,40,36,43,38,44,
45,42,41,37,39,47,48,51,53,124,145],sequence:{pName:"spr_house_good",playback:1,playbackSpeed:30,playbackSpeedType:0,length:17,xorigin:20,yorigin:20,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}
}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_house",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:1,xOrigin:16,yOrigin:16,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[115,117,113,103,116,120,119,76,111,114,108,112,104,107,101,102,75,118,109,106,110,74,105,73,126,147,154,171,194,204,265,299],Masks:[[0xFF,0xFF]],sequence:{pName:"spr_house",playback:1,playbackSpeed:30,playbackSpeedType:0,
length:32,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}
}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{
0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}},{key:21,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:21}}},{key:22,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:22}}},{key:23,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:23}}}
,{key:24,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:24}}},{key:25,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:25}}},{key:26,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:26}}},{key:27,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:27}}},{key:28,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:28}}},{key:29,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:29}}},{key:30,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:30}}},{key:31,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:31}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"spr_hud",width:186,height:77,transparent:false,smooth:false,preload:false,bboxRight:185,bboxBottom:76,playbackspeed:30,TPEntryIndex:[10],sequence:{pName:"spr_hud",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],
tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_message_box",width:350,height:302,transparent:false,smooth:false,preload:false,xOrigin:175,yOrigin:151,bboxRight:349,bboxBottom:301,playbackspeed:30,TPEntryIndex:[2],sequence:{pName:"spr_message_box",playback:1,playbackSpeed:30,
playbackSpeedType:0,length:1,xorigin:175,yorigin:151,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:35,nTop:35,nRight:35,nBottom:35,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"spr_player_run",height:24,bboxMode:2,transparent:false,smooth:false,
preload:false,xOrigin:8,yOrigin:24,bboxLeft:3,bboxRight:12,bboxTop:18,bboxBottom:23,playbackspeed:10,TPEntryIndex:[256,255,253,254,259],sequence:{pName:"spr_player_run",playback:1,playbackSpeed:10,playbackSpeedType:0,length:5,xorigin:8,yorigin:24,volume:1,keyframeStore:[{key:4,length:1,stretch:false,disabled:false,channels:{0:{events:["Player Step"]}}}],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{
key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_player_shadow",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,
xOrigin:8,yOrigin:23,bboxLeft:3,bboxRight:12,bboxTop:18,bboxBottom:23,playbackspeed:5,TPEntryIndex:[342],sequence:{pName:"spr_player_shadow",playback:1,playbackSpeed:5,playbackSpeedType:0,length:1,xorigin:8,yorigin:23,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}
},{pName:"spr_player",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:24,bboxLeft:3,bboxRight:12,bboxTop:18,bboxBottom:23,playbackspeed:5,TPEntryIndex:[252,258],sequence:{pName:"spr_player",playback:1,playbackSpeed:5,playbackSpeedType:0,length:2,xorigin:8,yorigin:24,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_santa_claus",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:16,bboxRight:19,bboxBottom:19,playbackspeed:30,TPEntryIndex:[395,346,337,305,302,304,307,301,308,303,300,306,321,324,322,323,336,338,347,394,412,420,422,419,421,415,416,423,424,417,425,418],sequence:{pName:"spr_santa_claus",playback:1,
playbackSpeed:30,playbackSpeedType:0,length:32,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}}
,{key:17,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}},{key:21,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:21}}},{key:22,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:22}}},{key:23,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:23}}},{key:24,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:24}}},{key:25,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:25}}},{key:26,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:26}}},{key:27,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:27}}},{key:28,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:28}}},{key:29,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:29}}},{key:30,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:30}}},{key:31,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:31}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_title",width:768,height:432,transparent:false,smooth:false,preload:false,xOrigin:384,yOrigin:216,bboxLeft:38,bboxRight:568,bboxTop:56,bboxBottom:357,playbackspeed:30,TPEntryIndex:[1],sequence:{pName:"spr_title",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:384,yorigin:216,volume:1,keyframeStore:[],
tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"Sprite4",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:1,xOrigin:16,yOrigin:16,bboxRight:31,bboxBottom:30,playbackspeed:30,TPEntryIndex:[134,131,138,142,140,129,130,139,141,132,133,128,135,137,136,143,
148,149,151,152,153,157,172,200,205,257,396],Masks:[[0xD3,0xFF,0x26,0x00,0x7F,0xFF,0x00,0x00,0x7F,0xFF,0x00,0x00,0x7F,0xFF,0x00,0x00,0x7F,0xFF,0x00,0x00,0x7F,0xFF,0x00,0x00,0x7F,0xFF,0x00,0x00,0x7F,0xFF,0x00,0x00,0x7F,0xFF,0x00,0x00,0x7F,0xFF,0x00,0x00,0x3F,0xFF,0x00,0x00]],sequence:{pName:"Sprite4",playback:1,playbackSpeed:30,playbackSpeedType:0,length:27,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,
tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},
{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{
0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}},{key:21,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:21}}},{key:22,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:22}}},{key:23,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:23}}},{key:24,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:24}}},{key:25,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:25}}}
,{key:26,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:26}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"sStraightStreet",width:64,height:32,transparent:false,smooth:false,preload:false,colCheck:2,bboxRight:63,bboxBottom:31,playbackspeed:30,TPEntryIndex:[23],sequence:{pName:"sStraightStreet",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,
tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"sStreetAngleOnGrass",width:32,height:32,transparent:false,smooth:false,preload:false,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[121],sequence:{pName:"sStreetAngleOnGrass",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",
pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"sStreetLamp",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:2,xOrigin:12,yOrigin:12,bboxLeft:10,bboxRight:13,bboxTop:10,bboxBottom:13,playbackspeed:30,TPEntryIndex:[210,357,354,364,352,359,370,355,379,373,381,380,375,351,377,367,
374,348,369,365,366,368,378,362,350,349,356,363,358,371,372,376,361,353,360],sequence:{pName:"sStreetLamp",playback:1,playbackSpeed:30,playbackSpeedType:0,length:35,xorigin:12,yorigin:12,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}
}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{
0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}},{key:21,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:21}}}
,{key:22,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:22}}},{key:23,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:23}}},{key:24,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:24}}},{key:25,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:25}}},{key:26,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:26}}},{key:27,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:27}}},{key:28,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:28}}},{key:29,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:29}}},{key:30,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:30}}},{key:31,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:31}}},{key:32,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:32}}},{key:33,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:33}}},{key:34,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:34}}}]}],sequenceEvents:[],
momentsKeystore:[]}},{pName:"sStreetOnGrass",width:32,height:32,transparent:false,smooth:false,preload:false,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[122],sequence:{pName:"sStreetOnGrass",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"sTower",transparent:false,smooth:false,preload:false,colCheck:1,xOrigin:8,yOrigin:8,bboxRight:15,bboxBottom:15,playbackspeed:30,TPEntryIndex:[239,224,238,223,246,214,220,222,234,236,247,221,211,249,213,245,242,217,216,227,226,232,225,212,233,230,219,241,243,228,215,240,231,244,248,235,218,229,237,261,266,274,309,339,382,397],Masks:[[0x9F,0xFF]],sequence:{pName:"sTower",playback:1,playbackSpeed:30,playbackSpeedType:0,length:46,
xorigin:8,yorigin:8,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,
length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}
}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}},{key:21,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:21}}},{key:22,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:22}}},{key:23,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:23}}},{key:24,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:24}}},{key:25,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:25}}},{key:26,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:26}}},{key:27,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:27}}},{key:28,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:28}}},{key:29,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:29}}},{key:30,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:30}
}},{key:31,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:31}}},{key:32,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:32}}},{key:33,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:33}}},{key:34,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:34}}},{key:35,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:35}}},{key:36,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:36}}},{key:37,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:37}}},{key:38,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:38}}},{key:39,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:39}}},{key:40,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:40}}},{key:41,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:41}}},{key:42,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:42}}},{key:43,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:43}}},{key:44,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:44}}},{key:45,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:45}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"sTree",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:2,xOrigin:8,yOrigin:8,bboxLeft:4,bboxRight:11,bboxTop:4,bboxBottom:11,playbackspeed:30,TPEntryIndex:[408,404,399,401,411,402,405,410,400,409,407,406,250,251,262,
263,267,268,276,275,310,311,341,340,383,384,398,403],sequence:{pName:"sTree",playback:1,playbackSpeed:30,playbackSpeedType:0,length:28,xorigin:8,yorigin:8,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,
disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}},{key:11,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:11}}},{key:12,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:12}}},{key:13,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:13}}},{key:14,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:14}}},{key:15,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:15}
}},{key:16,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:16}}},{key:17,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:17}}},{key:18,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:18}}},{key:19,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:19}}},{key:20,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:20}}},{key:21,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:21}}},{key:22,length:1,stretch:false,disabled:false,
channels:{0:{imageIndex:22}}},{key:23,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:23}}},{key:24,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:24}}},{key:25,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:25}}},{key:26,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:26}}},{key:27,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:27}}}]}],sequenceEvents:[],momentsKeystore:[]}}],EmbeddedEntries:{"fallbacktexture":0,"pt_shape_smoke":13,
"pt_shape_circle":15,"pt_shape_cloud":22,"pt_shape_line":158,"pt_shape_disk":16,"pt_shape_star":21,"pt_shape_flare":12,"pt_shape_ring":17,"pt_shape_sphere":20,"pt_shape_snow":19,"pt_shape_square":18,"pt_shape_explosion":11,"pt_shape_pixel":413,"pt_shape_spark":14,"FONT_builtin":4},Backgrounds:[{pName:"tsTown",transparent:false,smooth:false,preload:false,tilewidth:16,tileheight:16,tilehsep:2,tilevsep:2,tilecolumns:8,frames:1,tilecount:64,spriteindex:-1,framelength:66666,framedata:[0,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,],TPEntryIndex:5}],Paths:[],Shaders:[{name:"__yy_sdf_shader",Vertex:"#define LOWPREC lowp\n#define	MATRIX_VIEW 					0\n#define	MATRIX_PROJECTION 				1\n#define	MATRIX_WORLD 					2\n#define	MATRIX_WORLD_VIEW 				3\n#define	MATRIX_WORLD_VIEW_PROJECTION 	4\n#define	MATRICES_MAX					5\n\nuniform mat4 gm_Matrices[MATRICES_MAX]; \n\nuniform bool gm_LightingEnabled;\nuniform bool gm_VS_FogEnabled;\nuniform float gm_FogStart;\nuniform float gm_RcpFogRange;\n\n#define MAX_VS_LIGHTS	8\n#define MIRROR_WIN32_LIGHTING_EQUATION\n\n\n//#define	MAX_VS_LIGHTS					8\nuniform vec4   gm_AmbientColour;							// rgb=colour, a=1\nuniform vec4   gm_Lights_Direction[MAX_VS_LIGHTS];		// normalised direction\nuniform vec4   gm_Lights_PosRange[MAX_VS_LIGHTS];			// X,Y,Z position,  W range\nuniform vec4   gm_Lights_Colour[MAX_VS_LIGHTS];			// rgb=colour, a=1\n\nfloat CalcFogFactor(vec4 pos)\n{\n	if (gm_VS_FogEnabled)\n	{\n		vec4 viewpos = gm_Matrices[MATRIX_WORLD_VIEW] * pos;\n		float fogfactor = ((viewpos.z - gm_FogStart) * gm_RcpFogRange);\n		return fogfactor;\n	}\n	else\n	{\n		return 0.0;\n	}\n}\n\nvec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n{\n	float dotresult = dot(ws_normal, dir.xyz);\n	dotresult = min(dotresult, dir.w);			// the w component is 1 if the directional light is active, or 0 if it isn't\n	dotresult = max(0.0, dotresult);\n\n	return dotresult * diffusecol;\n}\n\nvec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n{\n	vec3 diffvec = ws_pos - posrange.xyz;\n	float veclen = length(diffvec);\n	diffvec /= veclen;	// normalise\n	float atten;\n	if (posrange.w == 0.0)		// the w component of posrange is 0 if the point light is disabled - if we don't catch it here we might end up generating INFs or NaNs\n	{\n		atten = 0.0;\n	}\n	else\n	{\n#ifdef MIRROR_WIN32_LIGHTING_EQUATION\n	// This is based on the Win32 D3D and OpenGL falloff model, where:\n	// Attenuation = 1.0f / (factor0 + (d * factor1) + (d*d * factor2))\n	// For some reason, factor0 is set to 0.0f while factor1 is set to 1.0f/lightrange (on both D3D and OpenGL)\n	// This'll result in no visible falloff as 1.0f / (d / lightrange) will always be larger than 1.0f (if the vertex is within range)\n	\n		atten = 1.0 / (veclen / posrange.w);\n		if (veclen > posrange.w)\n		{\n			atten = 0.0;\n		}	\n#else\n		atten = clamp( (1.0 - (veclen / posrange.w)), 0.0, 1.0);		// storing 1.0f/range instead would save a rcp\n#endif\n	}\n	float dotresult = dot(ws_normal, diffvec);\n	dotresult = max(0.0, dotresult);\n\n	return dotresult * atten * diffusecol;\n}\n\nvec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n{\n	if (gm_LightingEnabled)\n	{\n		// Normally we'd have the light positions\\directions back-transformed from world to object space\n		// But to keep things simple for the moment we'll just transform the normal to world space\n		vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n		vec3 ws_normal;\n		ws_normal = (gm_Matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n		ws_normal = normalize(ws_normal);\n\n		vec3 ws_pos;\n		ws_pos = (gm_Matrices[MATRIX_WORLD] * objectspacepos).xyz;\n\n		// Accumulate lighting from different light types\n		vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0);		\n		for(int i = 0; i < MAX_VS_LIGHTS; i++)\n		{\n			accumcol += DoDirLight(ws_normal, gm_Lights_Direction[i], gm_Lights_Colour[i]);\n		}\n\n		for(int i = 0; i < MAX_VS_LIGHTS; i++)\n		{\n			accumcol += DoPointLight(ws_pos, ws_normal, gm_Lights_PosRange[i], gm_Lights_Colour[i]);\n		}\n\n		accumcol *= vertexcolour;\n		accumcol += gm_AmbientColour;\n		accumcol = min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n		accumcol.a = vertexcolour.a;\n		return accumcol;\n	}\n	else\n	{\n		return vertexcolour;\n	}\n}\n\n#define _YY_GLSLES_ 1\n//\n// SDF vertex shader\n//\nattribute vec3 in_Position;                  // (x,y,z)\n//attribute vec3 in_Normal;                  // (x,y,z)     unused in this shader.\nattribute vec4 in_Colour;                    // (r,g,b,a)\nattribute vec2 in_TextureCoord;              // (u,v)\n\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n    vec4 object_space_pos = vec4( in_Position.x, in_Position.y, in_Position.z, 1.0);\n    gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;\n    \n    v_vColour = in_Colour;\n    v_vTexcoord = in_TextureCoord;\n}\n",
Fragment:"precision mediump float;\n#define LOWPREC lowp\n// Uniforms look like they're shared between vertex and fragment shaders in GLSL, so we have to be careful to avoid name clashes\n\nuniform sampler2D gm_BaseTexture;\n\nuniform bool gm_PS_FogEnabled;\nuniform vec4 gm_FogColour;\nuniform bool gm_AlphaTestEnabled;\nuniform float gm_AlphaRefValue;\n\nvoid DoAlphaTest(vec4 SrcColour)\n{\n	if (gm_AlphaTestEnabled)\n	{\n		if (SrcColour.a <= gm_AlphaRefValue)\n		{\n			discard;\n		}\n	}\n}\n\nvoid DoFog(inout vec4 SrcColour, float fogval)\n{\n	if (gm_PS_FogEnabled)\n	{\n		SrcColour = mix(SrcColour, gm_FogColour, clamp(fogval, 0.0, 1.0)); \n	}\n}\n\n#define _YY_GLSLES_ 1\n//\n// SDF fragment shader\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n	vec4 texcol = texture2D( gm_BaseTexture, v_vTexcoord );\n	\n	float spread = fwidth(texcol.a);	\n	spread = max(spread * 0.75, 0.001);	\n	texcol.a = smoothstep(0.5 - spread, 0.5 + spread, texcol.a);			\n	\n	vec4 combinedcol = v_vColour * texcol;\n	DoAlphaTest(combinedcol);	\n			\n    gl_FragColor = combinedcol;\n}\n",
Attributes:["in_Position","in_Colour","in_TextureCoord"]},{name:"__yy_sdf_effect_shader",Vertex:"#define LOWPREC lowp\n#define	MATRIX_VIEW 					0\n#define	MATRIX_PROJECTION 				1\n#define	MATRIX_WORLD 					2\n#define	MATRIX_WORLD_VIEW 				3\n#define	MATRIX_WORLD_VIEW_PROJECTION 	4\n#define	MATRICES_MAX					5\n\nuniform mat4 gm_Matrices[MATRICES_MAX]; \n\nuniform bool gm_LightingEnabled;\nuniform bool gm_VS_FogEnabled;\nuniform float gm_FogStart;\nuniform float gm_RcpFogRange;\n\n#define MAX_VS_LIGHTS	8\n#define MIRROR_WIN32_LIGHTING_EQUATION\n\n\n//#define	MAX_VS_LIGHTS					8\nuniform vec4   gm_AmbientColour;							// rgb=colour, a=1\nuniform vec4   gm_Lights_Direction[MAX_VS_LIGHTS];		// normalised direction\nuniform vec4   gm_Lights_PosRange[MAX_VS_LIGHTS];			// X,Y,Z position,  W range\nuniform vec4   gm_Lights_Colour[MAX_VS_LIGHTS];			// rgb=colour, a=1\n\nfloat CalcFogFactor(vec4 pos)\n{\n	if (gm_VS_FogEnabled)\n	{\n		vec4 viewpos = gm_Matrices[MATRIX_WORLD_VIEW] * pos;\n		float fogfactor = ((viewpos.z - gm_FogStart) * gm_RcpFogRange);\n		return fogfactor;\n	}\n	else\n	{\n		return 0.0;\n	}\n}\n\nvec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n{\n	float dotresult = dot(ws_normal, dir.xyz);\n	dotresult = min(dotresult, dir.w);			// the w component is 1 if the directional light is active, or 0 if it isn't\n	dotresult = max(0.0, dotresult);\n\n	return dotresult * diffusecol;\n}\n\nvec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n{\n	vec3 diffvec = ws_pos - posrange.xyz;\n	float veclen = length(diffvec);\n	diffvec /= veclen;	// normalise\n	float atten;\n	if (posrange.w == 0.0)		// the w component of posrange is 0 if the point light is disabled - if we don't catch it here we might end up generating INFs or NaNs\n	{\n		atten = 0.0;\n	}\n	else\n	{\n#ifdef MIRROR_WIN32_LIGHTING_EQUATION\n	// This is based on the Win32 D3D and OpenGL falloff model, where:\n	// Attenuation = 1.0f / (factor0 + (d * factor1) + (d*d * factor2))\n	// For some reason, factor0 is set to 0.0f while factor1 is set to 1.0f/lightrange (on both D3D and OpenGL)\n	// This'll result in no visible falloff as 1.0f / (d / lightrange) will always be larger than 1.0f (if the vertex is within range)\n	\n		atten = 1.0 / (veclen / posrange.w);\n		if (veclen > posrange.w)\n		{\n			atten = 0.0;\n		}	\n#else\n		atten = clamp( (1.0 - (veclen / posrange.w)), 0.0, 1.0);		// storing 1.0f/range instead would save a rcp\n#endif\n	}\n	float dotresult = dot(ws_normal, diffvec);\n	dotresult = max(0.0, dotresult);\n\n	return dotresult * atten * diffusecol;\n}\n\nvec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n{\n	if (gm_LightingEnabled)\n	{\n		// Normally we'd have the light positions\\directions back-transformed from world to object space\n		// But to keep things simple for the moment we'll just transform the normal to world space\n		vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n		vec3 ws_normal;\n		ws_normal = (gm_Matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n		ws_normal = normalize(ws_normal);\n\n		vec3 ws_pos;\n		ws_pos = (gm_Matrices[MATRIX_WORLD] * objectspacepos).xyz;\n\n		// Accumulate lighting from different light types\n		vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0);		\n		for(int i = 0; i < MAX_VS_LIGHTS; i++)\n		{\n			accumcol += DoDirLight(ws_normal, gm_Lights_Direction[i], gm_Lights_Colour[i]);\n		}\n\n		for(int i = 0; i < MAX_VS_LIGHTS; i++)\n		{\n			accumcol += DoPointLight(ws_pos, ws_normal, gm_Lights_PosRange[i], gm_Lights_Colour[i]);\n		}\n\n		accumcol *= vertexcolour;\n		accumcol += gm_AmbientColour;\n		accumcol = min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n		accumcol.a = vertexcolour.a;\n		return accumcol;\n	}\n	else\n	{\n		return vertexcolour;\n	}\n}\n\n#define _YY_GLSLES_ 1\n//\n// Simple passthrough vertex shader\n//\nattribute vec3 in_Position;                  // (x,y,z)\n//attribute vec3 in_Normal;                  // (x,y,z)     unused in this shader.\nattribute vec4 in_Colour;                    // (r,g,b,a)\nattribute vec2 in_TextureCoord;              // (u,v)\n\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n    vec4 object_space_pos = vec4( in_Position.x, in_Position.y, in_Position.z, 1.0);\n    gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;\n    \n    v_vColour = in_Colour;\n    v_vTexcoord = in_TextureCoord;\n}\n",
Fragment:"precision mediump float;\n#define LOWPREC lowp\n// Uniforms look like they're shared between vertex and fragment shaders in GLSL, so we have to be careful to avoid name clashes\n\nuniform sampler2D gm_BaseTexture;\n\nuniform bool gm_PS_FogEnabled;\nuniform vec4 gm_FogColour;\nuniform bool gm_AlphaTestEnabled;\nuniform float gm_AlphaRefValue;\n\nvoid DoAlphaTest(vec4 SrcColour)\n{\n	if (gm_AlphaTestEnabled)\n	{\n		if (SrcColour.a <= gm_AlphaRefValue)\n		{\n			discard;\n		}\n	}\n}\n\nvoid DoFog(inout vec4 SrcColour, float fogval)\n{\n	if (gm_PS_FogEnabled)\n	{\n		SrcColour = mix(SrcColour, gm_FogColour, clamp(fogval, 0.0, 1.0)); \n	}\n}\n\n#define _YY_GLSLES_ 1\n//\n// SDF (with effects) fragment shader\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\n// SDF values are measured from 0 (at the outer edge) to 1 which is the innermost point that can be represented\nuniform bool gm_SDF_DrawGlow;				// whether the glow effect is enabled\nuniform vec2 gm_SDF_Glow_MinMax;			// the SDF range across which the glow fades\nuniform vec4 gm_SDF_Glow_Col;				// the colour of the glow\n\nuniform bool gm_SDF_DrawOutline;			// whether the outline effect is enabled\nuniform float gm_SDF_Outline_Thresh;		// the SDF distance which represents the outer edge of the outline\nuniform vec4 gm_SDF_Outline_Col;			// the colour of the outline\n\nuniform float gm_SDF_Core_Thresh;			// the SDF distance which represents the outer edge the shape\nuniform vec4 gm_SDF_Core_Col;				// the colour of the core part of the shape\n\nvoid main()\n{\n	vec4 texcol = texture2D( gm_BaseTexture, v_vTexcoord );\n		\n	float pixelspread = fwidth(texcol.a);	\n	pixelspread = max(pixelspread * 0.75, 0.001);	\n	\n	float blendfactor;\n	vec4 currcol = vec4(0.0, 0.0, 0.0, -1.0);\n	\n	// Handle glow effect\n	if (gm_SDF_DrawGlow)\n	{		\n		if (texcol.a > gm_SDF_Glow_MinMax.x)\n		{\n			currcol = gm_SDF_Glow_Col;\n			currcol.a *= smoothstep(gm_SDF_Glow_MinMax.x, gm_SDF_Glow_MinMax.y, texcol.a);\n		}\n	}	\n	\n	// Handle outline effect\n	if (gm_SDF_DrawOutline)\n	{\n		if (texcol.a > (gm_SDF_Outline_Thresh - pixelspread))\n		{			\n			blendfactor = smoothstep(gm_SDF_Outline_Thresh - pixelspread, gm_SDF_Outline_Thresh + pixelspread, texcol.a);\n			if (currcol.a < 0.0)\n			{\n				currcol = vec4(gm_SDF_Outline_Col.r,gm_SDF_Outline_Col.g,gm_SDF_Outline_Col.b, 0.0);\n			}\n			currcol = mix(currcol, gm_SDF_Outline_Col, blendfactor);\n		}\n	}\n	\n	// Handle inner core\n	blendfactor = smoothstep(gm_SDF_Core_Thresh - pixelspread, gm_SDF_Core_Thresh + pixelspread, texcol.a);\n	\n	if (currcol.a < 0.0)\n	{\n		currcol = vec4(gm_SDF_Core_Col.r,gm_SDF_Core_Col.g,gm_SDF_Core_Col.b, 0.0);\n	}\n	texcol = mix(currcol, gm_SDF_Core_Col, blendfactor);	\n	\n	vec4 combinedcol = v_vColour * texcol;\n	DoAlphaTest(combinedcol);	\n			\n    gl_FragColor = combinedcol;\n}\n",
Attributes:["in_Position","in_Colour","in_TextureCoord"]},{name:"__yy_sdf_blur_shader",Vertex:"#define LOWPREC lowp\n#define	MATRIX_VIEW 					0\n#define	MATRIX_PROJECTION 				1\n#define	MATRIX_WORLD 					2\n#define	MATRIX_WORLD_VIEW 				3\n#define	MATRIX_WORLD_VIEW_PROJECTION 	4\n#define	MATRICES_MAX					5\n\nuniform mat4 gm_Matrices[MATRICES_MAX]; \n\nuniform bool gm_LightingEnabled;\nuniform bool gm_VS_FogEnabled;\nuniform float gm_FogStart;\nuniform float gm_RcpFogRange;\n\n#define MAX_VS_LIGHTS	8\n#define MIRROR_WIN32_LIGHTING_EQUATION\n\n\n//#define	MAX_VS_LIGHTS					8\nuniform vec4   gm_AmbientColour;							// rgb=colour, a=1\nuniform vec4   gm_Lights_Direction[MAX_VS_LIGHTS];		// normalised direction\nuniform vec4   gm_Lights_PosRange[MAX_VS_LIGHTS];			// X,Y,Z position,  W range\nuniform vec4   gm_Lights_Colour[MAX_VS_LIGHTS];			// rgb=colour, a=1\n\nfloat CalcFogFactor(vec4 pos)\n{\n	if (gm_VS_FogEnabled)\n	{\n		vec4 viewpos = gm_Matrices[MATRIX_WORLD_VIEW] * pos;\n		float fogfactor = ((viewpos.z - gm_FogStart) * gm_RcpFogRange);\n		return fogfactor;\n	}\n	else\n	{\n		return 0.0;\n	}\n}\n\nvec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n{\n	float dotresult = dot(ws_normal, dir.xyz);\n	dotresult = min(dotresult, dir.w);			// the w component is 1 if the directional light is active, or 0 if it isn't\n	dotresult = max(0.0, dotresult);\n\n	return dotresult * diffusecol;\n}\n\nvec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n{\n	vec3 diffvec = ws_pos - posrange.xyz;\n	float veclen = length(diffvec);\n	diffvec /= veclen;	// normalise\n	float atten;\n	if (posrange.w == 0.0)		// the w component of posrange is 0 if the point light is disabled - if we don't catch it here we might end up generating INFs or NaNs\n	{\n		atten = 0.0;\n	}\n	else\n	{\n#ifdef MIRROR_WIN32_LIGHTING_EQUATION\n	// This is based on the Win32 D3D and OpenGL falloff model, where:\n	// Attenuation = 1.0f / (factor0 + (d * factor1) + (d*d * factor2))\n	// For some reason, factor0 is set to 0.0f while factor1 is set to 1.0f/lightrange (on both D3D and OpenGL)\n	// This'll result in no visible falloff as 1.0f / (d / lightrange) will always be larger than 1.0f (if the vertex is within range)\n	\n		atten = 1.0 / (veclen / posrange.w);\n		if (veclen > posrange.w)\n		{\n			atten = 0.0;\n		}	\n#else\n		atten = clamp( (1.0 - (veclen / posrange.w)), 0.0, 1.0);		// storing 1.0f/range instead would save a rcp\n#endif\n	}\n	float dotresult = dot(ws_normal, diffvec);\n	dotresult = max(0.0, dotresult);\n\n	return dotresult * atten * diffusecol;\n}\n\nvec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n{\n	if (gm_LightingEnabled)\n	{\n		// Normally we'd have the light positions\\directions back-transformed from world to object space\n		// But to keep things simple for the moment we'll just transform the normal to world space\n		vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n		vec3 ws_normal;\n		ws_normal = (gm_Matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n		ws_normal = normalize(ws_normal);\n\n		vec3 ws_pos;\n		ws_pos = (gm_Matrices[MATRIX_WORLD] * objectspacepos).xyz;\n\n		// Accumulate lighting from different light types\n		vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0);		\n		for(int i = 0; i < MAX_VS_LIGHTS; i++)\n		{\n			accumcol += DoDirLight(ws_normal, gm_Lights_Direction[i], gm_Lights_Colour[i]);\n		}\n\n		for(int i = 0; i < MAX_VS_LIGHTS; i++)\n		{\n			accumcol += DoPointLight(ws_pos, ws_normal, gm_Lights_PosRange[i], gm_Lights_Colour[i]);\n		}\n\n		accumcol *= vertexcolour;\n		accumcol += gm_AmbientColour;\n		accumcol = min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n		accumcol.a = vertexcolour.a;\n		return accumcol;\n	}\n	else\n	{\n		return vertexcolour;\n	}\n}\n\n#define _YY_GLSLES_ 1\n//\n// Simple passthrough vertex shader\n//\nattribute vec3 in_Position;                  // (x,y,z)\n//attribute vec3 in_Normal;                  // (x,y,z)     unused in this shader.\nattribute vec4 in_Colour;                    // (r,g,b,a)\nattribute vec2 in_TextureCoord;              // (u,v)\n\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n    vec4 object_space_pos = vec4( in_Position.x, in_Position.y, in_Position.z, 1.0);\n    gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;\n    \n    v_vColour = in_Colour;\n    v_vTexcoord = in_TextureCoord;\n}\n",
Fragment:"precision mediump float;\n#define LOWPREC lowp\n// Uniforms look like they're shared between vertex and fragment shaders in GLSL, so we have to be careful to avoid name clashes\n\nuniform sampler2D gm_BaseTexture;\n\nuniform bool gm_PS_FogEnabled;\nuniform vec4 gm_FogColour;\nuniform bool gm_AlphaTestEnabled;\nuniform float gm_AlphaRefValue;\n\nvoid DoAlphaTest(vec4 SrcColour)\n{\n	if (gm_AlphaTestEnabled)\n	{\n		if (SrcColour.a <= gm_AlphaRefValue)\n		{\n			discard;\n		}\n	}\n}\n\nvoid DoFog(inout vec4 SrcColour, float fogval)\n{\n	if (gm_PS_FogEnabled)\n	{\n		SrcColour = mix(SrcColour, gm_FogColour, clamp(fogval, 0.0, 1.0)); \n	}\n}\n\n#define _YY_GLSLES_ 1\n//\n// SDF (with blur) fragment shader\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\n// SDF values are measured from 0 (at the outer edge) to 1 which is the innermost point that can be represented\nuniform vec2 gm_SDF_Blur_MinMax;			// the range across which to filter the SDF\nuniform vec4 gm_SDF_Blur_Col;				// the colour tint of the blurred text\n\nvoid main()\n{\n	vec4 texcol = texture2D( gm_BaseTexture, v_vTexcoord );	\n	vec4 currcol = gm_SDF_Blur_Col;\n		\n	currcol.a *= smoothstep(gm_SDF_Blur_MinMax.x, gm_SDF_Blur_MinMax.y, texcol.a);		\n	\n	vec4 combinedcol = v_vColour * currcol;\n	DoAlphaTest(combinedcol);	\n\n    gl_FragColor = combinedcol;\n}\n",
Attributes:["in_Position","in_Colour","in_TextureCoord"]}],Fonts:[{pName:"fnt_hud",size:10,bold:false,italic:false,first:32,last:9647,charset:0,antialias:0,fontname:"Alef",ascenderOffset:0,ascender:12,sdfSpread:0,lineHeight:0,TPageEntry:6,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:4,h:18,shift:4,offset:0},{i:33,c:"!",x:118,y:62,w:2,h:18,shift:4,offset:1},{i:34,c:"\"",x:112,y:62,w:4,h:18,shift:6,offset:1},{i:35,c:"#",x:103,y:62,w:7,h:18,shift:8,offset:1},{i:36,c:"$",x:95,y:62,w:6,h:18,shift:7,
offset:1},{i:37,c:"%",x:87,y:62,w:6,h:18,shift:8,offset:1},{i:38,c:"&",x:77,y:62,w:8,h:18,shift:10,offset:1},{i:39,c:"'",x:73,y:62,w:2,h:18,shift:4,offset:1},{i:40,c:"(",x:68,y:62,w:3,h:18,shift:5,offset:1},{i:41,c:")",x:63,y:62,w:3,h:18,shift:5,offset:1},{i:42,c:"*",x:2,y:82,w:5,h:18,shift:7,offset:1},{i:43,c:"+",x:56,y:62,w:5,h:18,shift:7,offset:1},{i:44,c:",",x:45,y:62,w:2,h:18,shift:4,offset:1},{i:45,c:"-",x:38,y:62,w:5,h:18,shift:7,offset:1},{i:46,c:".",x:34,y:62,w:2,h:18,shift:4,offset:1},
{i:47,c:"/",x:27,y:62,w:5,h:18,shift:7,offset:1},{i:48,c:"0",x:19,y:62,w:6,h:18,shift:8,offset:1},{i:49,c:"1",x:15,y:62,w:2,h:18,shift:5,offset:1},{i:50,c:"2",x:9,y:62,w:4,h:18,shift:6,offset:1},{i:51,c:"3",x:2,y:62,w:5,h:18,shift:6,offset:1},{i:52,c:"4",x:118,y:42,w:7,h:18,shift:7,offset:0},{i:53,c:"5",x:49,y:62,w:5,h:18,shift:6,offset:1},{i:54,c:"6",x:9,y:82,w:5,h:18,shift:7,offset:1},{i:55,c:"7",x:16,y:82,w:5,h:18,shift:6,offset:1},{i:56,c:"8",x:23,y:82,w:5,h:18,shift:7,offset:1},{i:57,c:"9",
x:62,y:102,w:5,h:18,shift:7,offset:1},{i:58,c:":",x:58,y:102,w:2,h:18,shift:4,offset:1},{i:59,c:";",x:54,y:102,w:2,h:18,shift:5,offset:1},{i:60,c:"<",x:46,y:102,w:6,h:18,shift:6,offset:0},{i:61,c:"=",x:39,y:102,w:5,h:18,shift:7,offset:1},{i:62,c:">",x:31,y:102,w:6,h:18,shift:6,offset:0},{i:63,c:"?",x:24,y:102,w:5,h:18,shift:7,offset:1},{i:64,c:"@",x:13,y:102,w:9,h:18,shift:11,offset:1},{i:65,c:"A",x:2,y:102,w:9,h:18,shift:9,offset:0},{i:66,c:"B",x:114,y:82,w:7,h:18,shift:8,offset:1},{i:67,c:"C",
x:106,y:82,w:6,h:18,shift:8,offset:1},{i:68,c:"D",x:97,y:82,w:7,h:18,shift:9,offset:1},{i:69,c:"E",x:90,y:82,w:5,h:18,shift:7,offset:1},{i:70,c:"F",x:83,y:82,w:5,h:18,shift:7,offset:1},{i:71,c:"G",x:74,y:82,w:7,h:18,shift:9,offset:1},{i:72,c:"H",x:65,y:82,w:7,h:18,shift:10,offset:1},{i:73,c:"I",x:62,y:82,w:1,h:18,shift:4,offset:1},{i:74,c:"J",x:58,y:82,w:2,h:18,shift:5,offset:1},{i:75,c:"K",x:49,y:82,w:7,h:18,shift:8,offset:1},{i:76,c:"L",x:42,y:82,w:5,h:18,shift:7,offset:1},{i:77,c:"M",x:30,y:82,
w:10,h:18,shift:12,offset:1},{i:78,c:"N",x:108,y:42,w:8,h:18,shift:10,offset:1},{i:79,c:"O",x:98,y:42,w:8,h:18,shift:9,offset:1},{i:80,c:"P",x:90,y:42,w:6,h:18,shift:8,offset:1},{i:81,c:"Q",x:50,y:22,w:8,h:18,shift:10,offset:1},{i:82,c:"R",x:37,y:22,w:7,h:18,shift:8,offset:1},{i:83,c:"S",x:29,y:22,w:6,h:18,shift:8,offset:1},{i:84,c:"T",x:21,y:22,w:6,h:18,shift:8,offset:1},{i:85,c:"U",x:12,y:22,w:7,h:18,shift:9,offset:1},{i:86,c:"V",x:2,y:22,w:8,h:18,shift:9,offset:1},{i:87,c:"W",x:108,y:2,w:11,h:18,
shift:12,offset:0},{i:88,c:"X",x:99,y:2,w:7,h:18,shift:9,offset:1},{i:89,c:"Y",x:89,y:2,w:8,h:18,shift:9,offset:0},{i:90,c:"Z",x:81,y:2,w:6,h:18,shift:8,offset:1},{i:91,c:"[",x:46,y:22,w:2,h:18,shift:5,offset:1},{i:92,c:"\\",x:74,y:2,w:5,h:18,shift:7,offset:1},{i:93,c:"]",x:63,y:2,w:2,h:18,shift:5,offset:1},{i:94,c:"^",x:56,y:2,w:5,h:18,shift:5,offset:0},{i:95,c:"_",x:49,y:2,w:5,h:18,shift:7,offset:1},{i:96,c:"`",x:45,y:2,w:2,h:18,shift:4,offset:1},{i:97,c:"a",x:37,y:2,w:6,h:18,shift:7,offset:0}
,{i:98,c:"b",x:29,y:2,w:6,h:18,shift:7,offset:1},{i:99,c:"c",x:22,y:2,w:5,h:18,shift:6,offset:1},{i:100,c:"d",x:15,y:2,w:5,h:18,shift:7,offset:1},{i:101,c:"e",x:8,y:2,w:5,h:18,shift:7,offset:1},{i:102,c:"f",x:67,y:2,w:5,h:18,shift:6,offset:1},{i:103,c:"g",x:60,y:22,w:6,h:18,shift:7,offset:1},{i:104,c:"h",x:10,y:42,w:6,h:18,shift:7,offset:1},{i:105,c:"i",x:68,y:22,w:1,h:18,shift:3,offset:1},{i:106,c:"j",x:80,y:42,w:2,h:18,shift:4,offset:1},{i:107,c:"k",x:72,y:42,w:6,h:18,shift:7,offset:1},{i:108,
c:"l",x:69,y:42,w:1,h:18,shift:3,offset:1},{i:109,c:"m",x:58,y:42,w:9,h:18,shift:11,offset:1},{i:110,c:"n",x:51,y:42,w:5,h:18,shift:7,offset:1},{i:111,c:"o",x:44,y:42,w:5,h:18,shift:7,offset:1},{i:112,c:"p",x:37,y:42,w:5,h:18,shift:7,offset:1},{i:113,c:"q",x:30,y:42,w:5,h:18,shift:7,offset:1},{i:114,c:"r",x:24,y:42,w:4,h:18,shift:5,offset:1},{i:115,c:"s",x:84,y:42,w:4,h:18,shift:6,offset:1},{i:116,c:"t",x:18,y:42,w:4,h:18,shift:5,offset:1},{i:117,c:"u",x:2,y:42,w:6,h:18,shift:7,offset:1},{i:118,
c:"v",x:117,y:22,w:6,h:18,shift:6,offset:0},{i:119,c:"w",x:106,y:22,w:9,h:18,shift:9,offset:0},{i:120,c:"x",x:98,y:22,w:6,h:18,shift:7,offset:1},{i:121,c:"y",x:91,y:22,w:5,h:18,shift:8,offset:1},{i:122,c:"z",x:84,y:22,w:5,h:18,shift:6,offset:1},{i:123,c:"{",x:80,y:22,w:2,h:18,shift:5,offset:1},{i:124,c:"|",x:76,y:22,w:2,h:18,shift:4,offset:1},{i:125,c:"}",x:71,y:22,w:3,h:18,shift:5,offset:1},{i:126,c:"~",x:69,y:102,w:5,h:18,shift:7,offset:1},{i:9647,c:"▯",x:76,y:102,w:7,h:18,shift:13,offset:3},],
},{pName:"fnt_menu",size:16,bold:false,italic:false,first:32,last:9647,charset:0,antialias:1,fontname:"Alef",ascenderOffset:0,ascender:19,sdfSpread:0,lineHeight:0,TPageEntry:3,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:6,h:29,shift:6,offset:0},{i:33,c:"!",x:27,y:95,w:4,h:29,shift:7,offset:1},{i:34,c:"\"",x:16,y:95,w:9,h:29,shift:9,offset:0},{i:35,c:"#",x:2,y:95,w:12,h:29,shift:13,offset:1},{i:36,c:"$",x:240,y:64,w:10,h:29,shift:12,offset:1},{i:37,c:"%",x:227,y:64,w:11,h:29,shift:12,offset:1}
,{i:38,c:"&",x:211,y:64,w:14,h:29,shift:15,offset:1},{i:39,c:"'",x:205,y:64,w:4,h:29,shift:6,offset:1},{i:40,c:"(",x:197,y:64,w:6,h:29,shift:8,offset:1},{i:41,c:")",x:189,y:64,w:6,h:29,shift:8,offset:1},{i:42,c:"*",x:33,y:95,w:8,h:29,shift:11,offset:2},{i:43,c:"+",x:177,y:64,w:10,h:29,shift:12,offset:1},{i:44,c:",",x:159,y:64,w:4,h:29,shift:7,offset:1},{i:45,c:"-",x:149,y:64,w:8,h:29,shift:12,offset:2},{i:46,c:".",x:144,y:64,w:3,h:29,shift:7,offset:2},{i:47,c:"/",x:132,y:64,w:10,h:29,shift:12,offset:1}
,{i:48,c:"0",x:118,y:64,w:12,h:29,shift:13,offset:0},{i:49,c:"1",x:110,y:64,w:6,h:29,shift:8,offset:0},{i:50,c:"2",x:100,y:64,w:8,h:29,shift:10,offset:1},{i:51,c:"3",x:88,y:64,w:10,h:29,shift:10,offset:0},{i:52,c:"4",x:75,y:64,w:11,h:29,shift:12,offset:0},{i:53,c:"5",x:165,y:64,w:10,h:29,shift:10,offset:0},{i:54,c:"6",x:43,y:95,w:11,h:29,shift:11,offset:0},{i:55,c:"7",x:56,y:95,w:10,h:29,shift:10,offset:0},{i:56,c:"8",x:68,y:95,w:11,h:29,shift:11,offset:0},{i:57,c:"9",x:78,y:126,w:11,h:29,shift:11,
offset:0},{i:58,c:":",x:73,y:126,w:3,h:29,shift:7,offset:2},{i:59,c:";",x:67,y:126,w:4,h:29,shift:7,offset:2},{i:60,c:"<",x:55,y:126,w:10,h:29,shift:10,offset:0},{i:61,c:"=",x:43,y:126,w:10,h:29,shift:12,offset:1},{i:62,c:">",x:31,y:126,w:10,h:29,shift:10,offset:0},{i:63,c:"?",x:20,y:126,w:9,h:29,shift:11,offset:1},{i:64,c:"@",x:2,y:126,w:16,h:29,shift:17,offset:1},{i:65,c:"A",x:233,y:95,w:14,h:29,shift:14,offset:0},{i:66,c:"B",x:219,y:95,w:12,h:29,shift:13,offset:1},{i:67,c:"C",x:206,y:95,w:11,
h:29,shift:13,offset:1},{i:68,c:"D",x:191,y:95,w:13,h:29,shift:14,offset:1},{i:69,c:"E",x:179,y:95,w:10,h:29,shift:12,offset:1},{i:70,c:"F",x:167,y:95,w:10,h:29,shift:11,offset:1},{i:71,c:"G",x:153,y:95,w:12,h:29,shift:14,offset:1},{i:72,c:"H",x:138,y:95,w:13,h:29,shift:16,offset:1},{i:73,c:"I",x:133,y:95,w:3,h:29,shift:6,offset:2},{i:74,c:"J",x:126,y:95,w:5,h:29,shift:7,offset:1},{i:75,c:"K",x:112,y:95,w:12,h:29,shift:13,offset:1},{i:76,c:"L",x:102,y:95,w:8,h:29,shift:11,offset:2},{i:77,c:"M",x:81,
y:95,w:19,h:29,shift:19,offset:0},{i:78,c:"N",x:60,y:64,w:13,h:29,shift:16,offset:1},{i:79,c:"O",x:44,y:64,w:14,h:29,shift:15,offset:1},{i:80,c:"P",x:31,y:64,w:11,h:29,shift:13,offset:1},{i:81,c:"Q",x:22,y:33,w:14,h:29,shift:15,offset:1},{i:82,c:"R",x:2,y:33,w:12,h:29,shift:13,offset:1},{i:83,c:"S",x:237,y:2,w:11,h:29,shift:12,offset:1},{i:84,c:"T",x:223,y:2,w:12,h:29,shift:13,offset:0},{i:85,c:"U",x:208,y:2,w:13,h:29,shift:15,offset:1},{i:86,c:"V",x:193,y:2,w:13,h:29,shift:15,offset:1},{i:87,c:"W",
x:172,y:2,w:19,h:29,shift:19,offset:0},{i:88,c:"X",x:157,y:2,w:13,h:29,shift:15,offset:1},{i:89,c:"Y",x:141,y:2,w:14,h:29,shift:14,offset:0},{i:90,c:"Z",x:128,y:2,w:11,h:29,shift:13,offset:1},{i:91,c:"[",x:16,y:33,w:4,h:29,shift:7,offset:2},{i:92,c:"\\",x:116,y:2,w:10,h:29,shift:12,offset:1},{i:93,c:"]",x:98,y:2,w:5,h:29,shift:7,offset:1},{i:94,c:"^",x:88,y:2,w:8,h:29,shift:8,offset:0},{i:95,c:"_",x:77,y:2,w:9,h:29,shift:11,offset:1},{i:96,c:"`",x:71,y:2,w:4,h:29,shift:6,offset:1},{i:97,c:"a",x:59,
y:2,w:10,h:29,shift:11,offset:0},{i:98,c:"b",x:47,y:2,w:10,h:29,shift:11,offset:1},{i:99,c:"c",x:35,y:2,w:10,h:29,shift:10,offset:0},{i:100,c:"d",x:23,y:2,w:10,h:29,shift:12,offset:1},{i:101,c:"e",x:10,y:2,w:11,h:29,shift:11,offset:0},{i:102,c:"f",x:105,y:2,w:9,h:29,shift:9,offset:1},{i:103,c:"g",x:38,y:33,w:11,h:29,shift:11,offset:1},{i:104,c:"h",x:151,y:33,w:10,h:29,shift:12,offset:1},{i:105,c:"i",x:51,y:33,w:3,h:29,shift:6,offset:1},{i:106,c:"j",x:14,y:64,w:4,h:29,shift:7,offset:1},{i:107,c:"k",
x:2,y:64,w:10,h:29,shift:11,offset:1},{i:108,c:"l",x:248,y:33,w:3,h:29,shift:5,offset:1},{i:109,c:"m",x:230,y:33,w:16,h:29,shift:18,offset:1},{i:110,c:"n",x:218,y:33,w:10,h:29,shift:12,offset:1},{i:111,c:"o",x:206,y:33,w:10,h:29,shift:11,offset:1},{i:112,c:"p",x:194,y:33,w:10,h:29,shift:11,offset:1},{i:113,c:"q",x:183,y:33,w:9,h:29,shift:12,offset:1},{i:114,c:"r",x:173,y:33,w:8,h:29,shift:9,offset:1},{i:115,c:"s",x:20,y:64,w:9,h:29,shift:10,offset:0},{i:116,c:"t",x:163,y:33,w:8,h:29,shift:9,offset:1}
,{i:117,c:"u",x:139,y:33,w:10,h:29,shift:12,offset:1},{i:118,c:"v",x:127,y:33,w:10,h:29,shift:10,offset:0},{i:119,c:"w",x:110,y:33,w:15,h:29,shift:15,offset:0},{i:120,c:"x",x:97,y:33,w:11,h:29,shift:12,offset:0},{i:121,c:"y",x:85,y:33,w:10,h:29,shift:12,offset:1},{i:122,c:"z",x:75,y:33,w:8,h:29,shift:10,offset:1},{i:123,c:"{",x:68,y:33,w:5,h:29,shift:7,offset:1},{i:124,c:"|",x:64,y:33,w:2,h:29,shift:6,offset:2},{i:125,c:"}",x:56,y:33,w:6,h:29,shift:7,offset:1},{i:126,c:"~",x:91,y:126,w:10,h:29,shift:12,
offset:1},{i:9647,c:"▯",x:103,y:126,w:13,h:29,shift:20,offset:4},],}],EmbeddedFonts:[,{pName:"FONT_builtin",size:11,bold:false,italic:false,first:32,last:9647,charset:0,antialias:1,fontname:"Roboto Mono",ascenderOffset:0,ascender:0,sdfSpread:0,lineHeight:0,TPageEntry:4,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:9,h:19,shift:9,offset:0},{i:33,c:"!",x:127,y:44,w:3,h:19,shift:9,offset:3},{i:34,c:"\"",x:120,y:44,w:5,h:19,shift:9,offset:2},{i:35,c:"#",x:109,y:44,w:9,h:19,shift:9,offset:0},{i:36,
c:"$",x:100,y:44,w:7,h:19,shift:9,offset:1},{i:37,c:"%",x:89,y:44,w:9,h:19,shift:9,offset:0},{i:38,c:"&",x:78,y:44,w:9,h:19,shift:9,offset:0},{i:39,c:"'",x:74,y:44,w:2,h:19,shift:9,offset:3},{i:40,c:"(",x:67,y:44,w:5,h:19,shift:9,offset:2},{i:41,c:")",x:60,y:44,w:5,h:19,shift:9,offset:2},{i:42,c:"*",x:132,y:44,w:8,h:19,shift:9,offset:1},{i:43,c:"+",x:49,y:44,w:9,h:19,shift:9,offset:0},{i:44,c:",",x:34,y:44,w:3,h:19,shift:9,offset:2},{i:45,c:"-",x:25,y:44,w:7,h:19,shift:9,offset:1},{i:46,c:".",x:20,
y:44,w:3,h:19,shift:9,offset:3},{i:47,c:"/",x:11,y:44,w:7,h:19,shift:9,offset:1},{i:48,c:"0",x:2,y:44,w:7,h:19,shift:9,offset:1},{i:49,c:"1",x:245,y:23,w:5,h:19,shift:9,offset:1},{i:50,c:"2",x:235,y:23,w:8,h:19,shift:9,offset:0},{i:51,c:"3",x:225,y:23,w:8,h:19,shift:9,offset:0},{i:52,c:"4",x:214,y:23,w:9,h:19,shift:9,offset:0},{i:53,c:"5",x:39,y:44,w:8,h:19,shift:9,offset:1},{i:54,c:"6",x:142,y:44,w:7,h:19,shift:9,offset:1},{i:55,c:"7",x:151,y:44,w:9,h:19,shift:9,offset:0},{i:56,c:"8",x:162,y:44,
w:8,h:19,shift:9,offset:1},{i:57,c:"9",x:110,y:65,w:7,h:19,shift:9,offset:1},{i:58,c:":",x:105,y:65,w:3,h:19,shift:9,offset:3},{i:59,c:";",x:100,y:65,w:3,h:19,shift:9,offset:3},{i:60,c:"<",x:91,y:65,w:7,h:19,shift:9,offset:1},{i:61,c:"=",x:82,y:65,w:7,h:19,shift:9,offset:1},{i:62,c:">",x:73,y:65,w:7,h:19,shift:9,offset:1},{i:63,c:"?",x:64,y:65,w:7,h:19,shift:9,offset:1},{i:64,c:"@",x:53,y:65,w:9,h:19,shift:9,offset:0},{i:65,c:"A",x:42,y:65,w:9,h:19,shift:9,offset:0},{i:66,c:"B",x:32,y:65,w:8,h:19,
shift:9,offset:1},{i:67,c:"C",x:21,y:65,w:9,h:19,shift:9,offset:0},{i:68,c:"D",x:11,y:65,w:8,h:19,shift:9,offset:1},{i:69,c:"E",x:2,y:65,w:7,h:19,shift:9,offset:1},{i:70,c:"F",x:241,y:44,w:7,h:19,shift:9,offset:1},{i:71,c:"G",x:230,y:44,w:9,h:19,shift:9,offset:0},{i:72,c:"H",x:221,y:44,w:7,h:19,shift:9,offset:1},{i:73,c:"I",x:212,y:44,w:7,h:19,shift:9,offset:1},{i:74,c:"J",x:202,y:44,w:8,h:19,shift:9,offset:0},{i:75,c:"K",x:192,y:44,w:8,h:19,shift:9,offset:1},{i:76,c:"L",x:182,y:44,w:8,h:19,shift:9,
offset:1},{i:77,c:"M",x:172,y:44,w:8,h:19,shift:9,offset:1},{i:78,c:"N",x:205,y:23,w:7,h:19,shift:9,offset:1},{i:79,c:"O",x:194,y:23,w:9,h:19,shift:9,offset:0},{i:80,c:"P",x:184,y:23,w:8,h:19,shift:9,offset:1},{i:81,c:"Q",x:208,y:2,w:9,h:19,shift:9,offset:0},{i:82,c:"R",x:192,y:2,w:8,h:19,shift:9,offset:1},{i:83,c:"S",x:181,y:2,w:9,h:19,shift:9,offset:0},{i:84,c:"T",x:170,y:2,w:9,h:19,shift:9,offset:0},{i:85,c:"U",x:161,y:2,w:7,h:19,shift:9,offset:1},{i:86,c:"V",x:150,y:2,w:9,h:19,shift:9,offset:0}
,{i:87,c:"W",x:139,y:2,w:9,h:19,shift:9,offset:0},{i:88,c:"X",x:128,y:2,w:9,h:19,shift:9,offset:0},{i:89,c:"Y",x:117,y:2,w:9,h:19,shift:9,offset:0},{i:90,c:"Z",x:107,y:2,w:8,h:19,shift:9,offset:0},{i:91,c:"[",x:202,y:2,w:4,h:19,shift:9,offset:3},{i:92,c:"\\",x:98,y:2,w:7,h:19,shift:9,offset:1},{i:93,c:"]",x:82,y:2,w:4,h:19,shift:9,offset:2},{i:94,c:"^",x:73,y:2,w:7,h:19,shift:9,offset:1},{i:95,c:"_",x:64,y:2,w:7,h:19,shift:9,offset:1},{i:96,c:"`",x:59,y:2,w:3,h:19,shift:9,offset:3},{i:97,c:"a",x:50,
y:2,w:7,h:19,shift:9,offset:1},{i:98,c:"b",x:41,y:2,w:7,h:19,shift:9,offset:1},{i:99,c:"c",x:32,y:2,w:7,h:19,shift:9,offset:1},{i:100,c:"d",x:23,y:2,w:7,h:19,shift:9,offset:1},{i:101,c:"e",x:13,y:2,w:8,h:19,shift:9,offset:0},{i:102,c:"f",x:88,y:2,w:8,h:19,shift:9,offset:1},{i:103,c:"g",x:219,y:2,w:7,h:19,shift:9,offset:1},{i:104,c:"h",x:72,y:23,w:7,h:19,shift:9,offset:1},{i:105,c:"i",x:228,y:2,w:8,h:19,shift:9,offset:1},{i:106,c:"j",x:167,y:23,w:6,h:19,shift:9,offset:1},{i:107,c:"k",x:157,y:23,w:8,
h:19,shift:9,offset:1},{i:108,c:"l",x:147,y:23,w:8,h:19,shift:9,offset:1},{i:109,c:"m",x:136,y:23,w:9,h:19,shift:9,offset:0},{i:110,c:"n",x:127,y:23,w:7,h:19,shift:9,offset:1},{i:111,c:"o",x:116,y:23,w:9,h:19,shift:9,offset:0},{i:112,c:"p",x:107,y:23,w:7,h:19,shift:9,offset:1},{i:113,c:"q",x:98,y:23,w:7,h:19,shift:9,offset:1},{i:114,c:"r",x:90,y:23,w:6,h:19,shift:9,offset:2},{i:115,c:"s",x:175,y:23,w:7,h:19,shift:9,offset:1},{i:116,c:"t",x:81,y:23,w:7,h:19,shift:9,offset:1},{i:117,c:"u",x:63,y:23,
w:7,h:19,shift:9,offset:1},{i:118,c:"v",x:52,y:23,w:9,h:19,shift:9,offset:0},{i:119,c:"w",x:41,y:23,w:9,h:19,shift:9,offset:0},{i:120,c:"x",x:30,y:23,w:9,h:19,shift:9,offset:0},{i:121,c:"y",x:19,y:23,w:9,h:19,shift:9,offset:0},{i:122,c:"z",x:10,y:23,w:7,h:19,shift:9,offset:1},{i:123,c:"{",x:2,y:23,w:6,h:19,shift:9,offset:2},{i:124,c:"|",x:246,y:2,w:3,h:19,shift:9,offset:3},{i:125,c:"}",x:238,y:2,w:6,h:19,shift:9,offset:2},{i:126,c:"~",x:119,y:65,w:9,h:19,shift:9,offset:0},{i:9647,c:"▯",x:130,y:65,
w:5,h:19,shift:8,offset:1},],}],Timelines:[],Triggers:[{}],GMObjects:[{pName:"oBench",spriteIndex:1,visible:true,parent:18,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_arrow_destination",visible:true,parent:-100,DrawEvent:gml_Object_obj_arrow_destination_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_arrow",spriteIndex:5,visible:true,parent:-100,CreateEvent:gml_Object_obj_arrow_Create_0,StepNormalEvent:gml_Object_obj_arrow_Step_0,DrawEvent:gml_Object_obj_arrow_Draw_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_bouncer",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_bouncer_Create_0,ObjAlarm0:gml_Object_obj_bouncer_Alarm_0,StepNormalEvent:gml_Object_obj_bouncer_Step_0,WebAsyncEvent:gml_Object_obj_bouncer_Other_62,DrawGUI:gml_Object_obj_bouncer_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_camera",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_camera_Create_0,StepNormalEvent:gml_Object_obj_camera_Step_0,TriggerEvents:[],CollisionEvents:[]}
,{pName:"obj_cookie",spriteIndex:13,visible:true,parent:-100,CreateEvent:gml_Object_obj_cookie_Create_0,DestroyEvent:gml_Object_obj_cookie_Destroy_0,DrawEvent:gml_Object_obj_cookie_Draw_0,PreCreateEvent:gml_Object_obj_cookie_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_fountain",spriteIndex:15,visible:true,parent:18,CreateEvent:gml_Object_obj_fountain_Create_0,ObjAlarm0:gml_Object_obj_fountain_Alarm_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_game_manager",spriteIndex:-1,visible:true,
parent:-100,CreateEvent:gml_Object_obj_game_manager_Create_0,StepNormalEvent:gml_Object_obj_game_manager_Step_0,DrawGUI:gml_Object_obj_game_manager_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_gift",spriteIndex:18,visible:true,parent:-100,CreateEvent:gml_Object_obj_gift_Create_0,DestroyEvent:gml_Object_obj_gift_Destroy_0,DrawEvent:gml_Object_obj_gift_Draw_0,PreCreateEvent:gml_Object_obj_gift_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_grass",spriteIndex:19,visible:true,
parent:-100,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_house",spriteIndex:23,visible:true,parent:18,spritemask:23,CreateEvent:gml_Object_obj_house_Create_0,StepNormalEvent:gml_Object_obj_house_Step_0,DrawEvent:gml_Object_obj_house_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_i18n_example",spriteIndex:-1,visible:true,parent:-100,DrawEvent:gml_Object_obj_i18n_example_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_i18n",spriteIndex:-1,visible:true,persistent:true,parent:-100,
CreateEvent:gml_Object_obj_i18n_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_init",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_init_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_input_manager",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_input_manager_Create_0,StepBeginEvent:gml_Object_obj_input_manager_Step_1,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_menu",spriteIndex:-1,visible:true,parent:-100,DrawGUI:gml_Object_obj_menu_Draw_64,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_player",spriteIndex:28,visible:true,parent:-100,CreateEvent:gml_Object_obj_player_Create_0,StepNormalEvent:gml_Object_obj_player_Step_0,BroadcastMessageEvent:gml_Object_obj_player_Other_76,DrawEvent:gml_Object_obj_player_Draw_0,TriggerEvents:[],CollisionEvents:[8,gml_Object_obj_player_Collision_obj_gift,5,gml_Object_obj_player_Collision_obj_cookie,25,gml_Object_obj_player_Collision_oOil]},{pName:"obj_santa_claus",spriteIndex:29,visible:true,parent:18,
CreateEvent:gml_Object_obj_santa_claus_Create_0,StepNormalEvent:gml_Object_obj_santa_claus_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_solid_parent",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_solid_parent_Create_0,StepNormalEvent:gml_Object_obj_solid_parent_Step_0,DrawEvent:gml_Object_obj_solid_parent_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_story",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_story_Create_0,DrawGUI:gml_Object_obj_story_Draw_64,
KeyReleased_Z:gml_Object_obj_story_KeyRelease_90,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_straight_street",spriteIndex:32,visible:true,parent:-100,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_trail",spriteIndex:-1,visible:true,parent:-100,StepNormalEvent:gml_Object_obj_trail_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_win",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_win_Create_0,StepNormalEvent:gml_Object_obj_win_Step_0,WebAsyncEvent:gml_Object_obj_win_Other_62,
DrawGUI:gml_Object_obj_win_Draw_64,KeyReleased_ANYKEY:gml_Object_obj_win_KeyRelease_1,TriggerEvents:[],CollisionEvents:[]},{pName:"oCar",spriteIndex:8,visible:true,parent:18,CreateEvent:gml_Object_oCar_Create_0,DrawEvent:gml_Object_oCar_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"oChurch",spriteIndex:10,visible:true,parent:18,spritemask:23,TriggerEvents:[],CollisionEvents:[]},{pName:"oOil",spriteIndex:2,visible:true,parent:-100,TriggerEvents:[],CollisionEvents:[]},{pName:"oStreetAngleOnGrass",
spriteIndex:33,visible:true,parent:9,TriggerEvents:[],CollisionEvents:[]},{pName:"oStreetLamp",spriteIndex:34,visible:true,parent:18,TriggerEvents:[],CollisionEvents:[]},{pName:"oStreetOnGrass",spriteIndex:35,visible:true,parent:9,TriggerEvents:[],CollisionEvents:[]},{pName:"oTower",spriteIndex:36,visible:true,parent:18,spritemask:23,TriggerEvents:[],CollisionEvents:[]},{pName:"oTree",spriteIndex:37,visible:true,parent:18,TriggerEvents:[],CollisionEvents:[]}],AnimCurves:[],Sequences:[],FiltersAndEffectDefs:[],
PSEmitters:[],ParticleSystems:[],GMRooms:[{pName:"rmLevel",width:1000,height:1000,speed:0,colour:0,LayerCount:8,showColour:false,enableViews:true,backgrounds:[],views:[{visible:true,wview:384,hview:216,wport:768,hport:432},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,
wport:1366,hport:768}],pInstances:[{x:416,y:448,index:10,id:100028,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:424,index:10,id:100029,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:464,y:400,index:10,id:100030,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:488,y:376,index:10,id:100031,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:512,y:352,index:10,id:100032,rotation:45,
scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:536,y:328,index:10,id:100033,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:616,y:256,index:10,id:100034,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:640,y:280,index:10,id:100035,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:664,y:304,index:10,id:100036,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:688,y:328,index:10,id:100037,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:712,y:352,index:10,id:100038,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:736,y:376,index:10,id:100039,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:616,y:400,index:10,id:100040,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:640,y:424,index:10,id:100041,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:664,y:448,index:10,id:100042,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:592,y:568,index:10,id:100043,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:616,y:544,index:10,id:100044,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:640,y:520,index:10,id:100045,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:664,y:496,index:10,id:100046,rotation:45,
scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:624,y:480,index:23,id:100047,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:576,y:528,index:23,id:100048,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:568,y:592,index:10,id:100049,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:496,y:520,index:10,id:100050,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:520,
y:544,index:10,id:100051,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:544,y:568,index:10,id:100052,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:344,y:376,index:10,id:100053,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:400,index:10,id:100054,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:424,index:10,id:100055,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:320,y:608,index:6,id:100056,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:488,y:544,index:0,id:100057,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:512,y:576,index:27,id:100058,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:536,y:592,index:0,id:100059,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:464,y:528,index:27,id:100060,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:480,index:27,id:100061,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:448,index:0,id:100062,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,y:400,index:0,id:100063,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:432,index:27,id:100064,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,y:528,
index:23,id:100065,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:512,index:23,id:100066,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:312,y:552,index:23,id:100067,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:296,y:536,index:23,id:100068,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:592,index:23,id:100069,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:240,y:616,index:23,id:100070,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:600,index:23,id:100071,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:608,index:23,id:100072,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:400,y:592,index:23,id:100073,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:632,index:23,id:100074,rotation:45,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:616,index:23,id:100075,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:344,y:672,index:23,id:100076,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:328,y:656,index:23,id:100077,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:696,index:23,id:100078,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:680,index:23,
id:100079,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:472,y:664,index:23,id:100080,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:648,index:23,id:100081,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:688,index:23,id:100082,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:408,y:728,index:23,id:100083,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:392,y:712,index:23,id:100084,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:752,index:23,id:100085,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:736,index:23,id:100086,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:272,y:472,index:23,id:100087,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:456,index:23,id:100088,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:248,y:496,index:23,id:100089,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:480,index:23,id:100090,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:520,index:23,id:100091,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:560,index:23,id:100092,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:544,index:23,id:100093,rotation:45,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:376,index:10,id:100094,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:272,y:352,index:10,id:100095,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:352,index:10,id:100096,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:200,y:424,index:10,id:100097,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,
y:400,index:10,id:100098,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:152,y:472,index:10,id:100099,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:448,index:10,id:100100,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:496,index:10,id:100101,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:78,y:542,index:10,id:100102,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:104,y:520,index:10,id:100103,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:296,y:368,index:27,id:100104,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:432,index:27,id:100105,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:504,index:27,id:100106,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:592,index:10,id:100107,rotation:-45,
scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:616,index:10,id:100108,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:640,index:10,id:100109,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:152,y:664,index:10,id:100110,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:688,index:10,id:100111,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},
{x:200,y:712,index:10,id:100112,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:736,index:10,id:100113,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:760,index:10,id:100114,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:272,y:784,index:10,id:100115,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:300,y:811,index:10,id:100116,rotation:-45,scaleX:1,scaleY:-1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:324,y:835,index:10,id:100117,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:348,y:859,index:10,id:100118,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:584,index:27,id:100119,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:656,index:27,id:100120,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:728,index:27,id:100121,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:824,index:27,id:100122,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:688,y:472,index:23,id:100123,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:960,y:64,index:24,id:100124,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:936,y:48,index:29,id:100125,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},
{x:880,y:64,index:0,id:100126,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:840,y:104,index:0,id:100127,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:872,y:80,index:27,id:100128,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:964,y:134,index:0,id:100129,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:922,y:174,index:0,id:100130,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:944,y:144,index:27,id:100131,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:816,y:208,index:0,id:100132,rotation:135,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:904,y:184,index:27,id:100133,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:832,y:120,index:27,id:100134,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:800,y:144,index:0,id:100135,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:792,y:160,index:27,id:100136,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:880,y:214,index:0,id:100137,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:864,y:224,index:27,id:100138,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:880,y:136,index:6,id:100139,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:976,y:96,index:30,id:100140,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:400,index:30,id:100141,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:984,y:216,index:23,id:100142,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:952,y:248,index:23,id:100143,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:976,y:272,index:23,id:100144,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:864,y:16,index:27,id:100145,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:832,y:48,index:27,id:100146,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:792,y:80,index:27,id:100147,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:752,y:120,index:27,id:100148,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:752,y:16,index:23,id:100149,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:776,y:40,index:23,id:100150,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:720,y:48,index:23,id:100151,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:744,y:72,index:23,id:100152,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:688,y:80,index:23,id:100153,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:712,y:104,index:23,id:100154,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:672,y:208,index:10,id:100155,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:696,y:232,index:10,id:100156,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:720,y:256,index:10,id:100157,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:744,y:280,index:10,id:100158,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:768,y:304,index:10,
id:100159,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:792,y:328,index:10,id:100160,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:576,y:168,index:10,id:100161,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:600,y:144,index:10,id:100162,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:504,y:240,index:10,id:100163,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:528,y:216,index:10,id:100164,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:552,y:192,index:10,id:100165,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:600,y:504,index:30,id:100166,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:273,y:328,index:9,id:100382,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:295,y:306,index:9,id:100383,rotation:45,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:318,y:328,index:9,id:100384,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:340,y:306,index:9,id:100385,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:340,y:350,index:9,id:100386,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:362,y:328,index:9,id:100387,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:362,y:372,index:9,id:100388,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:350,index:9,id:100389,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:394,index:9,id:100390,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:406,y:372,index:9,id:100391,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:426,y:352,index:9,id:100392,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:448,y:330,index:9,id:100393,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:404,y:330,index:9,id:100394,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:426,y:308,index:9,id:100395,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:382,y:308,index:9,id:100396,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:404,y:286,index:9,id:100397,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:360,y:286,index:9,id:100398,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:382,y:264,index:9,id:100399,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:400,y:336,index:30,id:100167,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:406,y:256,index:30,id:100168,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:464,y:304,index:0,id:100169,rotation:-45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:426,y:266,index:0,id:100170,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:318,y:284,index:9,id:100400,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:340,y:262,index:9,id:100401,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:242,index:9,id:100402,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:310,y:266,index:10,id:100171,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:334,y:242,index:10,id:100172,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:358,y:218,index:10,id:100173,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:262,y:314,index:10,id:100174,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:286,y:290,index:10,id:100175,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:442,y:812,index:10,id:100176,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:394,y:860,index:10,id:100177,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:418,y:836,index:10,id:100178,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:466,y:788,index:10,id:100179,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:490,y:764,index:10,id:100180,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:514,y:740,index:10,id:100181,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:538,y:716,index:10,id:100182,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:562,y:692,index:10,id:100183,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:482,y:262,index:23,id:100184,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:449,y:941,index:9,id:100403,rotation:45,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:471,y:919,index:9,id:100404,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:494,y:941,index:9,id:100405,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:516,y:919,index:9,id:100406,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:538,y:985,index:9,id:100407,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:560,y:963,
index:9,id:100408,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:560,y:1007,index:9,id:100409,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:582,y:985,index:9,id:100410,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:602,y:965,index:9,id:100411,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:624,y:943,index:9,id:100412,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:580,y:943,index:9,id:100413,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:602,y:921,index:9,id:100414,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:536,y:899,index:9,id:100415,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:558,y:877,index:9,id:100416,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:494,y:897,index:9,id:100417,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:516,y:875,index:9,id:100418,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:536,y:855,index:9,id:100419,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:472,y:963,index:9,id:100420,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:516,y:1008,index:9,id:100421,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:427,y:963,index:9,id:100422,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:449,y:985,index:9,id:100423,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:580,y:811,index:9,id:100424,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:602,y:789,index:9,id:100425,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:625,y:811,index:9,id:100426,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:647,y:789,index:9,id:100427,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:669,y:855,index:9,id:100428,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:691,y:833,index:9,id:100429,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:691,y:877,index:9,id:100430,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:713,y:855,index:9,id:100431,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:733,y:835,index:9,id:100432,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:755,y:813,index:9,id:100433,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:711,y:813,index:9,id:100434,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:733,y:791,index:9,id:100435,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:667,y:769,index:9,id:100436,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:689,y:747,index:9,id:100437,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:625,y:767,index:9,id:100438,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:647,y:745,index:9,id:100439,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:667,y:725,index:9,id:100440,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:603,y:833,index:9,id:100441,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:647,y:878,index:9,id:100442,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:558,y:833,index:9,id:100443,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:580,y:855,index:9,id:100444,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:647,y:921,index:9,id:100445,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:625,y:899,index:9,id:100446,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:669,y:899,index:9,id:100447,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:624,y:987,index:9,id:100448,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:646,y:965,index:9,id:100449,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:669,y:987,index:9,id:100450,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:691,y:965,index:9,id:100451,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:691,y:1009,index:9,id:100452,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:713,y:987,index:9,id:100453,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:735,y:1009,index:9,id:100454,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:777,y:1011,index:9,id:100455,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:799,y:989,index:9,id:100456,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:755,y:989,index:9,id:100457,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:777,y:967,index:9,id:100458,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:733,y:967,index:9,id:100459,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:755,y:945,index:9,id:100460,rotation:45,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:711,y:945,index:9,id:100461,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:733,y:923,index:9,id:100462,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:669,y:943,index:9,id:100463,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:691,y:921,index:9,id:100464,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:711,y:901,index:9,id:100465,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:647,y:1009,index:9,id:100466,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:602,y:1009,index:9,id:100467,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:755,y:857,index:9,id:100468,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:777,y:835,index:9,id:100469,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:800,y:857,index:9,id:100470,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:822,y:879,index:9,id:100471,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:844,y:901,index:9,id:100472,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:866,y:923,index:9,id:100473,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:908,y:881,index:9,id:100474,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:930,y:859,index:9,id:100475,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:886,y:859,index:9,id:100476,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:908,y:837,index:9,id:100477,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:864,y:837,index:9,id:100478,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:886,y:815,index:9,id:100479,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:842,y:815,index:9,id:100480,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:864,y:793,index:9,id:100481,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:822,y:791,index:9,id:100482,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:842,y:771,index:9,id:100483,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:800,y:901,index:9,id:100484,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:778,y:879,index:9,id:100485,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:822,y:924,index:9,id:100486,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:733,y:879,index:9,id:100487,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:755,y:901,index:9,id:100488,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:777,y:923,index:9,id:100489,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:822,y:967,index:9,id:100490,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:800,y:945,index:9,id:100491,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:844,y:945,index:9,id:100492,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:952,y:881,index:9,id:100493,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:930,y:903,index:9,id:100494,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:888,y:945,index:9,id:100495,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:821,y:1011,index:9,id:100496,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:866,y:967,index:9,id:100497,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:844,y:989,index:9,id:100498,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:975,y:903,index:9,id:100499,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:953,y:925,index:9,id:100500,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:911,y:967,index:9,id:100501,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:889,y:989,index:9,id:100502,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:867,y:1011,index:9,id:100503,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:975,y:946,index:9,id:100504,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:917,y:1006,index:9,id:100505,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:939,y:984,index:9,id:100506,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:964,y:1004,index:9,id:100507,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:709,y:683,index:9,id:100508,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:731,y:705,index:9,id:100509,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:689,y:703,index:9,id:100510,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:709,y:727,index:9,id:100511,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:753,y:727,index:9,id:100512,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:775,y:749,index:9,id:100513,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:797,y:771,index:9,id:100514,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:819,y:749,index:9,id:100515,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:797,y:727,index:9,id:100516,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:775,y:705,index:9,id:100517,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:798,y:728,index:9,id:100518,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:776,y:706,index:9,id:100519,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:405,y:985,index:9,id:100520,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:427,y:1007,index:9,id:100521,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:558,y:898,index:0,id:100185,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:518,y:938,index:0,id:100186,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:478,y:978,index:0,id:100187,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:670,y:784,index:0,id:100188,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:630,y:824,index:0,id:100189,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:590,y:864,index:0,id:100190,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:780,y:734,index:0,id:100191,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:708,y:748,index:0,id:100192,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:753,y:683,index:9,id:100522,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:731,y:661,index:9,id:100523,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:712,y:769,index:28,id:100524,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:689,y:791,index:28,id:100525,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:667,y:814,index:28,id:100526,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:644,y:836,index:28,id:100527,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:622,y:859,index:28,id:100528,rotation:45,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:599,y:881,index:28,id:100529,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:554,y:924,index:28,id:100530,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:577,y:902,index:28,id:100531,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:510,y:969,index:28,id:100532,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:532,y:947,index:28,
id:100533,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:488,y:991,index:28,id:100534,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:466,y:1012,index:28,id:100535,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:733,y:746,index:26,id:100536,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:778,y:791,index:28,id:100537,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:800,y:814,index:28,id:100538,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:822,y:836,index:28,id:100539,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:844,y:859,index:28,id:100540,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:866,y:881,index:28,id:100541,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:888,y:904,index:28,id:100542,rotation:-45,scaleX:-1,scaleY:-1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:911,y:926,index:28,id:100543,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:933,y:949,index:28,id:100544,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:956,y:971,index:28,id:100545,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:978,y:994,index:28,id:100546,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:1000,y:1016,
index:28,id:100547,rotation:-45,scaleX:-1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:842,y:798,index:0,id:100193,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:896,y:852,index:0,id:100194,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:952,y:908,index:0,id:100195,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:438,y:936,index:23,id:100196,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:414,y:960,index:23,id:100197,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:520,y:854,index:23,id:100198,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:496,y:878,index:23,id:100199,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:598,y:774,index:23,id:100200,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:574,y:798,index:23,id:100201,rotation:45,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:682,y:694,index:23,id:100202,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:658,y:718,index:23,id:100203,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:626,y:746,index:27,id:100204,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:546,y:826,index:27,id:100205,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:464,y:908,index:27,
id:100206,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:778,y:640,index:27,id:100207,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:828,y:690,index:27,id:100208,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:880,y:738,index:27,id:100209,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:924,y:784,index:27,id:100210,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:970,y:828,index:27,id:100211,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:880,y:552,index:27,id:100212,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:930,y:602,index:27,id:100213,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:982,y:650,index:27,id:100214,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:355,y:1025,index:20,id:100215,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:333,y:1003,index:20,id:100216,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:311,y:981,index:20,id:100217,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:289,y:959,index:20,id:100218,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:267,y:937,index:20,id:100219,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:245,y:915,index:20,id:100220,rotation:45,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:113,y:783,index:20,id:100221,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:135,y:805,index:20,id:100222,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:157,y:827,index:20,id:100223,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:179,y:849,index:20,id:100224,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:201,y:871,
index:20,id:100225,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:223,y:893,index:20,id:100226,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-19,y:651,index:20,id:100227,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:3,y:673,index:20,id:100228,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:25,y:695,index:20,id:100229,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:47,y:717,index:20,id:100230,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:69,y:739,index:20,id:100231,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:91,y:761,index:20,id:100232,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-41,y:629,index:20,id:100233,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:58,y:808,index:23,id:100234,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:42,y:792,index:23,id:100235,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:34,y:832,index:23,id:100236,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:18,y:816,index:23,id:100237,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:99,y:853,index:23,id:100238,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:83,y:837,index:23,id:100239,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:75,y:877,index:23,id:100240,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:59,y:861,index:23,id:100241,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:144,y:902,index:23,id:100242,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:886,index:23,id:100243,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:120,y:926,index:23,id:100244,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:910,index:23,id:100245,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:185,y:947,index:23,id:100246,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:169,y:931,index:23,id:100247,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:161,y:971,index:23,id:100248,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:145,y:955,index:23,id:100249,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:19,y:710,index:27,id:100250,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:66,y:755,index:27,id:100251,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:113,y:801,index:27,id:100252,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:163,y:851,index:27,id:100253,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:210,y:896,index:27,id:100254,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:257,y:942,index:27,id:100255,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:301,y:991,index:27,id:100256,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:371,y:882,index:30,id:100257,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-63,y:607,index:20,
id:100258,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:414,y:862,index:20,id:100259,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:884,index:20,id:100260,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:370,y:906,index:20,id:100261,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:480,y:796,index:20,id:100262,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:458,y:818,index:20,id:100263,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:436,y:840,index:20,id:100264,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:545,y:730,index:20,id:100265,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:523,y:752,index:20,id:100266,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:501,y:774,index:20,id:100267,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:611,y:664,index:20,id:100268,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:589,y:686,index:20,id:100269,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:567,y:708,index:20,id:100270,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:677,y:598,index:20,id:100271,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:655,y:620,index:20,id:100272,rotation:-45,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:633,y:642,index:20,id:100273,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:743,y:532,index:20,id:100274,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:721,y:554,index:20,id:100275,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:699,y:576,index:20,id:100276,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:765,
y:510,index:20,id:100277,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:831,y:444,index:20,id:100278,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:809,y:466,index:20,id:100279,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:787,y:488,index:20,id:100280,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:853,y:422,index:20,id:100281,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:919,y:356,index:20,id:100282,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:897,y:378,index:20,id:100283,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:875,y:400,index:20,id:100284,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:940,y:335,index:20,id:100285,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:1006,y:269,index:20,id:100286,rotation:-45,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:984,y:291,index:20,id:100287,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:962,y:313,index:20,id:100288,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:819,y:633,index:20,id:100289,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:797,y:611,index:20,id:100290,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:775,
y:589,index:20,id:100291,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:886,y:699,index:20,id:100292,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:864,y:677,index:20,id:100293,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:842,y:655,index:20,id:100294,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:952,y:765,index:20,id:100295,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:930,y:743,index:20,id:100296,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:908,y:721,index:20,id:100297,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:974,y:787,index:20,id:100298,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:996,y:809,index:20,id:100299,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:29,y:495,index:10,id:100300,rotation:-45,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:53,y:519,index:10,id:100301,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:76,y:399,index:10,id:100302,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:28,y:447,index:10,id:100303,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:52,y:423,index:10,id:100304,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:149,y:327,index:10,
id:100305,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:101,y:375,index:10,id:100306,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:125,y:351,index:10,id:100307,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:123,y:302,index:10,id:100308,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:75,y:350,index:10,id:100309,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:99,y:326,index:10,id:100310,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:50,y:374,index:10,id:100311,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:2,y:422,index:10,id:100312,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:26,y:398,index:10,id:100313,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:177,y:308,index:23,id:100314,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:145,y:275,index:23,id:100315,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:155,y:294,index:27,id:100316,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:520,y:117,index:10,id:100317,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:496,y:141,index:10,id:100318,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:472,y:165,index:10,id:100319,rotation:45,scaleX:1,
scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:545,y:93,index:10,id:100320,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-4,y:226,index:20,id:100321,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:39,y:183,index:20,id:100322,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:18,y:204,index:20,id:100323,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:61,y:161,index:20,
id:100324,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:118,index:20,id:100325,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:83,y:139,index:20,id:100326,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-26,y:248,index:20,id:100327,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:126,y:96,index:20,id:100328,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:169,y:53,index:20,id:100329,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:148,y:74,index:20,id:100330,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:191,y:31,index:20,id:100331,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:234,y:-12,index:20,id:100332,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:213,y:9,index:20,id:100333,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:256,y:-34,index:20,id:100334,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:278,y:-56,index:20,id:100335,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:814,y:773,index:25,id:100336,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:579,y:644,index:25,id:100337,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:202,y:538,index:8,id:100001,pPreCreateCode:gml_RoomCC_rmLevel_476_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:671,index:8,id:100002,pPreCreateCode:gml_RoomCC_rmLevel_477_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:30,y:970,index:10,id:100338,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-24,y:949,index:9,id:100548,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:21,y:949,index:9,id:100549,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:-45,y:927,index:9,id:100550,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-23,y:905,index:9,id:100551,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-1,y:927,index:9,id:100552,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-1,y:971,index:9,id:100553,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-46,y:971,index:9,id:100554,rotation:45,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:43,y:971,index:9,id:100555,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:65,y:993,index:9,id:100556,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:87,y:1015,index:9,id:100557,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-24,y:993,index:9,id:100558,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:42,y:1015,index:9,
id:100559,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:21,y:993,index:9,id:100560,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-1,y:1015,index:9,id:100561,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:760,y:400,index:10,id:100339,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:816,y:352,index:10,id:100340,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:840,y:374,index:27,id:100341,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:784,y:422,index:27,id:100342,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:813,y:448,index:23,id:100343,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:865,y:395,index:23,id:100344,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:972,y:413,index:23,id:100345,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:950,y:435,index:23,id:100346,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:615,y:839,index:25,id:100347,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:758,y:797,index:8,id:100003,pPreCreateCode:gml_RoomCC_rmLevel_502_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:576,y:364,index:5,id:100004,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:297,y:327,index:5,id:100005,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:835,y:544,index:8,id:100006,pPreCreateCode:gml_RoomCC_rmLevel_505_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:716,y:305,index:8,id:100007,pPreCreateCode:gml_RoomCC_rmLevel_506_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:60,y:71,index:9,id:100562,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:82,y:49,index:9,id:100563,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:82,y:93,index:9,id:100564,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:103,y:73,index:9,id:100565,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-27,y:25,index:9,id:100566,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:15,y:27,index:9,id:100567,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:37,y:5,index:9,id:100568,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-7,y:5,index:9,id:100569,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:15,y:-17,index:9,id:100570,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-29,y:-17,index:9,id:100571,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:60,y:-17,index:9,id:100572,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:59,y:27,index:9,id:100573,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:-17,index:9,id:100574,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:82,y:5,index:9,id:100575,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:149,y:-17,index:9,id:100576,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:127,y:5,index:9,id:100577,rotation:45,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:105,y:27,index:9,id:100578,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:155,y:22,index:9,id:100579,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:177,y:0,index:9,id:100580,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:123,y:54,index:9,id:100581,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:41,index:9,id:100582,
rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:71,index:9,id:100583,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:38,y:94,index:9,id:100584,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:60,y:116,index:9,id:100585,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:38,y:49,index:9,id:100586,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-5,y:48,
index:9,id:100587,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:17,y:115,index:9,id:100588,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-27,y:71,index:9,id:100589,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-5,y:93,index:9,id:100590,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:39,y:137,index:9,id:100591,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:-5,y:137,index:9,id:100592,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-27,y:115,index:9,id:100593,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:17,y:159,index:9,id:100594,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-27,y:159,index:9,id:100595,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-27,y:203,index:9,id:100596,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:-5,y:181,index:9,id:100597,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:153,index:30,id:100348,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:100,y:102,index:30,id:100349,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:163,y:43,index:30,id:100350,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:101,y:48,index:30,id:100351,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:47,y:107,index:30,id:100352,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:43,index:30,id:100353,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:100,y:31,index:5,id:100008,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:46,y:93,index:5,id:100009,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:189,index:10,id:100354,rotation:45,
scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:383,y:42,index:10,id:100355,rotation:135,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:22,index:9,id:100598,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:382,y:44,index:9,id:100599,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:338,y:44,index:9,id:100600,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:66,index:9,
id:100601,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:151,y:189,index:23,id:100356,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:181,y:160,index:23,id:100357,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,y:20,index:23,id:100358,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:62,y:257,index:27,id:100359,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:15,y:302,index:27,id:100360,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:108,y:209,index:27,id:100361,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:154,y:163,index:27,id:100362,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:197,y:121,index:27,id:100363,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:80,index:27,id:100364,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:279,y:38,index:27,id:100365,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:235,index:6,id:100366,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:193,y:216,index:9,id:100602,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:215,y:238,index:9,id:100603,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:171,y:238,index:9,id:100604,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:193,y:260,index:9,id:100605,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:173,y:238,index:0,id:100367,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:227,index:0,id:100368,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:282,y:152,index:10,id:100369,rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:306,y:176,index:10,id:100370,
rotation:-45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:663,y:-22,index:9,id:100606,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:685,y:0,index:9,id:100607,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:641,y:0,index:9,id:100608,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:663,y:22,index:9,id:100609,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:618,
y:22,index:9,id:100610,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:640,y:44,index:9,id:100611,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:596,y:44,index:9,id:100612,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:618,y:66,index:9,id:100613,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:574,y:-22,index:9,id:100614,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:596,y:0,index:9,id:100615,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:552,y:0,index:9,id:100616,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:574,y:22,index:9,id:100617,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:515,y:67,index:23,id:100371,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:470,y:115,index:23,id:100372,rotation:-45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:446,y:141,index:23,id:100373,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:422,y:164,index:23,id:100374,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:494,y:90,index:25,id:100010,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:712,y:73,index:25,id:100011,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:747,y:45,index:8,id:100012,
pPreCreateCode:gml_RoomCC_rmLevel_594_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:527,y:165,index:8,id:100013,pPreCreateCode:gml_RoomCC_rmLevel_595_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:459,index:8,id:100014,pPreCreateCode:gml_RoomCC_rmLevel_596_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:163,y:387,index:8,id:100015,pPreCreateCode:gml_RoomCC_rmLevel_597_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:58,y:833,index:5,id:100375,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:665,y:954,index:30,id:100376,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:841,y:957,index:30,id:100377,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:752,y:867,index:30,id:100378,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:918,y:99,index:8,id:100379,pPreCreateCode:gml_RoomCC_rmLevel_602_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:127,y:421,index:25,id:100016,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:187,index:25,id:100017,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:357,y:285,index:25,id:100018,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:349,y:910,index:5,id:100019,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:955,y:625,index:5,id:100020,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:768,y:259,index:5,id:100021,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-97,y:627,index:5,id:100022,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:568,index:5,id:100023,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:43,y:314,
index:5,id:100024,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:639,y:39,index:5,id:100025,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:603,y:47,index:0,id:100380,rotation:135,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:673,y:47,index:0,id:100381,rotation:45,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:979,y:446,index:5,id:100026,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:983,y:42,index:5,id:100027,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:978,y:22,index:9,id:100618,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:956,y:0,index:9,id:100619,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:352,index:13,id:100000,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"Controllers",id:0,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,
visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100000]},{pName:"Bonus",id:1,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:27,iinstIDs:[100001,100002,100003,100004,100005,100006,100007,100008,100009,100010,100011,100012,100013,100014,100015,100016,100017,100018,100019,100020,100021,100022,100023,100024,100025,100026,100027]},{pName:"Trees",id:2,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,
effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Backgrounds_1",id:3,type:1,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:956235776,bimage_index:0,bimage_speed:15},{pName:"Instances",id:4,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:354,iinstIDs:[100028,100029,100030,100031,100032,
100033,100034,100035,100036,100037,100038,100039,100040,100041,100042,100043,100044,100045,100046,100047,100048,100049,100050,100051,100052,100053,100054,100055,100056,100057,100058,100059,100060,100061,100062,100063,100064,100065,100066,100067,100068,100069,100070,100071,100072,100073,100074,100075,100076,100077,100078,100079,100080,100081,100082,100083,100084,100085,100086,100087,100088,100089,100090,100091,100092,100093,100094,100095,100096,100097,100098,100099,100100,100101,100102,100103,100104,
100105,100106,100107,100108,100109,100110,100111,100112,100113,100114,100115,100116,100117,100118,100119,100120,100121,100122,100123,100124,100125,100126,100127,100128,100129,100130,100131,100132,100133,100134,100135,100136,100137,100138,100139,100140,100141,100142,100143,100144,100145,100146,100147,100148,100149,100150,100151,100152,100153,100154,100155,100156,100157,100158,100159,100160,100161,100162,100163,100164,100165,100166,100167,100168,100169,100170,100171,100172,100173,100174,100175,100176,
100177,100178,100179,100180,100181,100182,100183,100184,100185,100186,100187,100188,100189,100190,100191,100192,100193,100194,100195,100196,100197,100198,100199,100200,100201,100202,100203,100204,100205,100206,100207,100208,100209,100210,100211,100212,100213,100214,100215,100216,100217,100218,100219,100220,100221,100222,100223,100224,100225,100226,100227,100228,100229,100230,100231,100232,100233,100234,100235,100236,100237,100238,100239,100240,100241,100242,100243,100244,100245,100246,100247,100248,
100249,100250,100251,100252,100253,100254,100255,100256,100257,100258,100259,100260,100261,100262,100263,100264,100265,100266,100267,100268,100269,100270,100271,100272,100273,100274,100275,100276,100277,100278,100279,100280,100281,100282,100283,100284,100285,100286,100287,100288,100289,100290,100291,100292,100293,100294,100295,100296,100297,100298,100299,100300,100301,100302,100303,100304,100305,100306,100307,100308,100309,100310,100311,100312,100313,100314,100315,100316,100317,100318,100319,100320,
100321,100322,100323,100324,100325,100326,100327,100328,100329,100330,100331,100332,100333,100334,100335,100336,100337,100338,100339,100340,100341,100342,100343,100344,100345,100346,100347,100348,100349,100350,100351,100352,100353,100354,100355,100356,100357,100358,100359,100360,100361,100362,100363,100364,100365,100366,100367,100368,100369,100370,100371,100372,100373,100374,100375,100376,100377,100378,100379,100380,100381]},{pName:"Grass",id:5,type:2,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:1,
effectEnabled:1,effectType:"",effectProperties:[],icount:238,iinstIDs:[100382,100383,100384,100385,100386,100387,100388,100389,100390,100391,100392,100393,100394,100395,100396,100397,100398,100399,100400,100401,100402,100403,100404,100405,100406,100407,100408,100409,100410,100411,100412,100413,100414,100415,100416,100417,100418,100419,100420,100421,100422,100423,100424,100425,100426,100427,100428,100429,100430,100431,100432,100433,100434,100435,100436,100437,100438,100439,100440,100441,100442,100443,
100444,100445,100446,100447,100448,100449,100450,100451,100452,100453,100454,100455,100456,100457,100458,100459,100460,100461,100462,100463,100464,100465,100466,100467,100468,100469,100470,100471,100472,100473,100474,100475,100476,100477,100478,100479,100480,100481,100482,100483,100484,100485,100486,100487,100488,100489,100490,100491,100492,100493,100494,100495,100496,100497,100498,100499,100500,100501,100502,100503,100504,100505,100506,100507,100508,100509,100510,100511,100512,100513,100514,100515,
100516,100517,100518,100519,100520,100521,100522,100523,100524,100525,100526,100527,100528,100529,100530,100531,100532,100533,100534,100535,100536,100537,100538,100539,100540,100541,100542,100543,100544,100545,100546,100547,100548,100549,100550,100551,100552,100553,100554,100555,100556,100557,100558,100559,100560,100561,100562,100563,100564,100565,100566,100567,100568,100569,100570,100571,100572,100573,100574,100575,100576,100577,100578,100579,100580,100581,100582,100583,100584,100585,100586,100587,
100588,100589,100590,100591,100592,100593,100594,100595,100596,100597,100598,100599,100600,100601,100602,100603,100604,100605,100606,100607,100608,100609,100610,100611,100612,100613,100614,100615,100616,100617,100618,100619]},{pName:"Tiles",id:6,type:4,depth:600,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],tcount:3969,tMapWidth:63,tMapHeight:63,tIndex:0,ttiles:[g_RUN|3968,0]},{pName:"Background",id:7,type:1,depth:700,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,
effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-922126,bimage_index:0,bimage_speed:15}]},{pName:"rmGame",width:1000,height:1000,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,backgrounds:[],views:[{visible:true,wview:384,hview:216,wport:768,hport:432},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,
wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768}],pInstances:[{x:342,y:74,index:17,id:100632,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:150,index:10,id:100633,rotation:-90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:536,y:160,index:10,id:100634,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:24,index:10,
id:100635,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:182,index:10,id:100636,rotation:-90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:162,y:200,index:10,id:100637,rotation:90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:275,y:72,index:16,id:100638,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:204,y:72,index:8,id:100639,pPreCreateCode:gml_RoomCC_rmGame_7_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:109,y:187,index:8,id:100640,pPreCreateCode:gml_RoomCC_rmGame_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:307,y:73,index:8,id:100641,pPreCreateCode:gml_RoomCC_rmGame_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:7,id:100620,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:88,index:8,id:100642,pPreCreateCode:gml_RoomCC_rmGame_11_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:24,index:10,id:100643,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:272,y:24,index:10,id:100644,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:24,index:10,id:100645,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,y:24,index:10,id:100646,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:368,y:24,index:10,id:100647,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:24,index:10,id:100648,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:400,y:24,index:10,id:100649,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:134,y:40,index:10,id:100650,rotation:225,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:110,y:64,index:10,id:100651,rotation:225,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:86,y:88,index:10,id:100652,rotation:225,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:28,y:41,index:30,id:100621,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:62,y:112,index:10,id:100653,rotation:225,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:214,index:10,id:100654,rotation:-90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:246,index:10,id:100655,rotation:-90,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:278,index:10,id:100656,rotation:-90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:310,index:10,id:100657,rotation:-90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:342,index:10,id:100658,rotation:-90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:44,y:374,index:10,id:100659,rotation:-90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:162,y:230,
index:10,id:100660,rotation:90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:162,y:262,index:10,id:100661,rotation:90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:162,y:294,index:10,id:100662,rotation:90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:162,y:326,index:10,id:100663,rotation:90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:225,y:117,index:10,id:100664,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:202,y:140,index:10,id:100665,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:179,y:163,index:10,id:100666,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:158,y:176,index:30,id:100622,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:371,y:51,index:23,id:100667,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:252,y:142,index:23,id:100668,rotation:-45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:230,y:166,index:23,id:100669,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:205,y:189,index:23,id:100670,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:209,y:171,index:30,id:100623,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:150,y:116,index:5,id:100671,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:108,y:138,index:5,id:100672,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:286,y:180,index:5,id:100673,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:433,y:24,index:10,id:100674,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:466,y:24,index:10,id:100675,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:433,y:57,index:23,id:100676,rotation:-90,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},
{x:60,y:412,index:10,id:100677,rotation:-45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:100,y:416,index:10,id:100678,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:134,y:416,index:10,id:100679,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:416,index:10,id:100680,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:202,y:416,index:10,id:100681,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:236,y:416,index:10,id:100682,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:398,index:30,id:100624,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:77,y:432,index:30,id:100625,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:38,y:125,index:30,id:100626,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:150,y:21,index:30,id:100627,rotation:45,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:193,y:240,index:30,id:100628,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:194,y:264,index:23,id:100683,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:194,y:314,index:23,id:100684,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:193,y:288,index:30,id:100629,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:344,y:134,index:10,id:100685,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:377,y:134,index:10,id:100686,rotation:180,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:410,y:134,index:10,id:100687,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:224,index:6,id:100688,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:52,index:27,id:100630,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:319,y:53,index:27,id:100631,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:201,index:24,id:100689,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:405,y:181,index:29,id:100690,rotation:45,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:163,y:98,index:25,id:100691,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"Controllers",id:8,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,
visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100620]},{pName:"Trees",id:9,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:11,iinstIDs:[100621,100622,100623,100624,100625,100626,100627,100628,100629,100630,100631]},{pName:"Instances",id:10,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:60,iinstIDs:[100632,100633,100634,100635,100636,100637,
100638,100639,100640,100641,100642,100643,100644,100645,100646,100647,100648,100649,100650,100651,100652,100653,100654,100655,100656,100657,100658,100659,100660,100661,100662,100663,100664,100665,100666,100667,100668,100669,100670,100671,100672,100673,100674,100675,100676,100677,100678,100679,100680,100681,100682,100683,100684,100685,100686,100687,100688,100689,100690,100691]},{pName:"Tiles",id:11,type:4,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],
tcount:3969,tMapWidth:63,tMapHeight:63,tIndex:0,ttiles:[8,2,3,2,3,2,3,2,3,g_RUN|21,2,g_RUN|32,0,8,34,35,34,35,34,35,34,35,g_RUN|1,2,g_RUN|52,0,8,2,3,2,3,2,3,2,3,g_RUN|54,0,g_RUN|1,2,6,3,2,3,35,34,35,g_RUN|54,0,g_RUN|1,34,4,35,34,35,3,g_RUN|56,0,6,3,2,3,2,3,35,g_RUN|56,0,5,35,34,35,34,35,g_RUN|57,0,3,3,2,3,g_RUN|59,0,3,35,34,35,g_RUN|59,0,3,3,2,3,g_RUN|59,0,3,35,34,35,g_RUN|59,0,3,3,2,3,g_RUN|59,0,3,35,34,35,g_RUN|59,0,3,3,2,3,g_RUN|59,0,3,35,34,35,g_RUN|7,0,2,10,11,g_RUN|49,0,3,3,2,3,g_RUN|7,0,2,
42,43,g_RUN|49,0,3,35,34,35,g_RUN|59,0,3,3,2,3,g_RUN|7,0,2,10,11,g_RUN|49,0,3,35,34,35,g_RUN|7,0,2,42,43,g_RUN|49,0,3,3,2,3,g_RUN|59,0,3,35,34,35,g_RUN|59,0,3,3,2,3,g_RUN|59,0,3,35,34,35,g_RUN|59,0,2,2,3,g_RUN|60,0,3,3,2,3,g_RUN|59,0,3,35,34,35,g_RUN|59,0,16,2,3,2,3,6,7,6,7,6,7,6,7,6,7,6,11,g_RUN|46,0,16,34,35,34,35,34,35,34,35,34,35,34,35,34,35,34,35,g_RUN|46,0,g_RUN|15,3,g_RUN|46,0,g_RUN|15,3,g_RUN|46,0,16,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,g_RUN|46,0,16,36,37,36,37,36,37,36,37,36,37,36,37,36,37,
36,37,g_RUN|46,0,16,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,g_RUN|46,0,16,40,41,40,41,40,41,40,41,40,41,40,41,40,41,40,43,g_RUN|1873,0]},{pName:"Background",id:12,type:1,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-922126,bimage_index:0,bimage_speed:15}]}],RoomOrder:[0,1],TPageEntries:[{x:0,y:0,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,
tp:0},{x:2,y:2,w:531,h:302,XOffset:38,YOffset:56,CropWidth:531,CropHeight:302,ow:768,oh:432,tp:1},{x:2,y:308,w:350,h:302,XOffset:0,YOffset:0,CropWidth:350,CropHeight:302,ow:350,oh:302,tp:1},{x:2,y:614,w:256,h:256,XOffset:0,YOffset:0,CropWidth:256,CropHeight:256,ow:256,oh:256,tp:1},{x:264,y:616,w:256,h:128,XOffset:0,YOffset:0,CropWidth:256,CropHeight:128,ow:256,oh:128,tp:1},{x:358,y:310,w:160,h:160,XOffset:0,YOffset:0,CropWidth:160,CropHeight:160,ow:160,oh:160,tp:1},{x:2,y:874,w:128,h:128,XOffset:0,
YOffset:0,CropWidth:128,CropHeight:128,ow:128,oh:128,tp:1},{x:356,y:512,w:512,h:32,XOffset:0,YOffset:0,CropWidth:512,CropHeight:32,ow:512,oh:32,tp:1},{x:356,y:476,w:512,h:32,XOffset:0,YOffset:0,CropWidth:512,CropHeight:32,ow:512,oh:32,tp:1},{x:356,y:512,w:512,h:32,XOffset:0,YOffset:0,CropWidth:512,CropHeight:32,ow:512,oh:32,tp:1},{x:526,y:548,w:186,h:77,XOffset:0,YOffset:0,CropWidth:186,CropHeight:77,ow:186,oh:77,tp:1},{x:718,y:550,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,
tp:1},{x:528,y:631,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:790,y:550,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:718,y:622,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:528,y:703,w:62,h:62,XOffset:1,YOffset:1,CropWidth:62,CropHeight:62,ow:64,oh:64,tp:1},{x:862,y:550,w:62,h:62,XOffset:1,YOffset:1,CropWidth:62,CropHeight:62,ow:64,oh:64,tp:1},{x:790,y:622,w:62,h:62,XOffset:1,YOffset:1,CropWidth:62,
CropHeight:62,ow:64,oh:64,tp:1},{x:600,y:631,w:62,h:62,XOffset:1,YOffset:1,CropWidth:62,CropHeight:62,ow:64,oh:64,tp:1},{x:264,y:752,w:60,h:64,XOffset:2,YOffset:0,CropWidth:60,CropHeight:64,ow:64,oh:64,tp:1},{x:598,y:703,w:61,h:61,XOffset:2,YOffset:2,CropWidth:61,CropHeight:61,ow:64,oh:64,tp:1},{x:862,y:620,w:62,h:60,XOffset:1,YOffset:1,CropWidth:62,CropHeight:60,ow:64,oh:64,tp:1},{x:358,y:550,w:57,h:57,XOffset:3,YOffset:4,CropWidth:57,CropHeight:57,ow:64,oh:64,tp:1},{x:788,y:690,w:64,h:32,XOffset:0,
YOffset:0,CropWidth:64,CropHeight:32,ow:64,oh:32,tp:1},{x:668,y:629,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:596,y:770,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:262,y:822,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:596,y:770,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:330,y:750,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:596,
y:770,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:262,y:822,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:262,y:822,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:596,y:770,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:858,y:686,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:421,y:548,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,
ow:41,oh:41,tp:1},{x:668,y:629,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:596,y:770,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:262,y:822,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:596,y:770,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:330,y:750,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:596,y:770,w:41,h:41,XOffset:0,YOffset:0,
CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:262,y:822,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:262,y:822,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:596,y:770,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:858,y:686,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:421,y:548,w:41,h:41,XOffset:0,YOffset:0,CropWidth:41,CropHeight:41,ow:41,oh:41,tp:1},{x:668,y:692,w:39,
h:39,XOffset:1,YOffset:1,CropWidth:39,CropHeight:39,ow:41,oh:41,tp:1},{x:668,y:692,w:39,h:39,XOffset:1,YOffset:1,CropWidth:39,CropHeight:39,ow:41,oh:41,tp:1},{x:375,y:750,w:37,h:37,XOffset:2,YOffset:2,CropWidth:37,CropHeight:37,ow:41,oh:41,tp:1},{x:375,y:750,w:37,h:37,XOffset:2,YOffset:2,CropWidth:37,CropHeight:37,ow:41,oh:41,tp:1},{x:307,y:822,w:35,h:35,XOffset:3,YOffset:3,CropWidth:35,CropHeight:35,ow:41,oh:41,tp:1},{x:307,y:822,w:35,h:35,XOffset:3,YOffset:3,CropWidth:35,CropHeight:35,ow:41,oh:41,
tp:1},{x:262,y:867,w:33,h:33,XOffset:4,YOffset:4,CropWidth:33,CropHeight:33,ow:41,oh:41,tp:1},{x:262,y:867,w:33,h:33,XOffset:4,YOffset:4,CropWidth:33,CropHeight:33,ow:41,oh:41,tp:1},{x:466,y:548,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:770,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:466,y:548,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:686,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,
CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:686,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:466,y:548,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:466,y:548,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:466,y:548,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:686,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:466,y:548,w:32,h:32,XOffset:0,
YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:686,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:686,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:686,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:686,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:686,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:466,
y:548,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:466,y:548,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:466,y:548,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:711,y:692,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:711,y:731,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:677,y:767,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,
ow:32,oh:32,tp:1},{x:416,y:786,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:416,y:786,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:375,y:791,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:375,y:791,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:806,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:806,w:32,h:32,XOffset:0,YOffset:0,
CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:307,y:861,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:416,y:750,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:722,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:307,y:861,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:375,y:791,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:375,y:791,w:32,
h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:307,y:861,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:806,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:806,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:375,y:791,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:806,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,
tp:1},{x:307,y:861,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:722,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:806,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:134,y:874,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:722,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:722,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,
CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:806,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:641,y:806,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:903,y:722,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:452,y:750,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:747,y:692,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:343,y:861,w:32,h:32,XOffset:0,
YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:452,y:750,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:677,y:767,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:677,y:767,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:452,y:750,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:416,y:786,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:416,
y:786,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:677,y:767,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:416,y:786,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:452,y:750,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:343,y:861,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:416,y:786,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,
ow:32,oh:32,tp:1},{x:343,y:861,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:343,y:861,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:343,y:861,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:416,y:786,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:416,y:786,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:343,y:861,w:32,h:32,XOffset:0,YOffset:0,
CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:299,y:897,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:170,y:874,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:747,y:731,w:31,h:31,XOffset:5,YOffset:5,CropWidth:31,CropHeight:31,ow:41,oh:41,tp:1},{x:747,y:731,w:31,h:31,XOffset:5,YOffset:5,CropWidth:31,CropHeight:31,ow:41,oh:41,tp:1},{x:783,y:726,w:30,h:32,XOffset:1,YOffset:0,CropWidth:30,CropHeight:32,ow:32,oh:32,tp:1},{x:713,y:767,w:30,
h:32,XOffset:1,YOffset:0,CropWidth:30,CropHeight:32,ow:32,oh:32,tp:1},{x:677,y:803,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:488,y:750,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:335,y:897,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:452,y:786,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:335,y:897,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,
tp:1},{x:134,y:910,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:134,y:910,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:335,y:897,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:411,y:822,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:411,y:822,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:411,y:822,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,
CropHeight:30,ow:32,oh:32,tp:1},{x:335,y:897,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:134,y:910,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:335,y:897,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:134,y:910,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:206,y:874,w:30,h:30,XOffset:1,YOffset:1,CropWidth:30,CropHeight:30,ow:32,oh:32,tp:1},{x:747,y:766,w:30,h:29,XOffset:1,
YOffset:1,CropWidth:30,CropHeight:29,ow:32,oh:32,tp:1},{x:817,y:726,w:29,h:29,XOffset:6,YOffset:6,CropWidth:29,CropHeight:29,ow:41,oh:41,tp:1},{x:817,y:726,w:29,h:29,XOffset:6,YOffset:6,CropWidth:29,CropHeight:29,ow:41,oh:41,tp:1},{x:782,y:762,w:26,h:32,XOffset:3,YOffset:0,CropWidth:26,CropHeight:32,ow:32,oh:32,tp:1},{x:711,y:803,w:26,h:32,XOffset:3,YOffset:0,CropWidth:26,CropHeight:32,ow:32,oh:32,tp:1},{x:665,y:735,w:30,h:27,XOffset:1,YOffset:1,CropWidth:30,CropHeight:27,ow:32,oh:32,tp:1},{x:665,
y:735,w:30,h:27,XOffset:1,YOffset:1,CropWidth:30,CropHeight:27,ow:32,oh:32,tp:1},{x:522,y:771,w:28,h:28,XOffset:2,YOffset:2,CropWidth:28,CropHeight:28,ow:32,oh:32,tp:1},{x:466,y:584,w:30,h:26,XOffset:1,YOffset:1,CropWidth:30,CropHeight:26,ow:32,oh:32,tp:1},{x:486,y:815,w:30,h:25,XOffset:1,YOffset:1,CropWidth:30,CropHeight:25,ow:32,oh:32,tp:1},{x:346,y:827,w:30,h:24,XOffset:1,YOffset:1,CropWidth:30,CropHeight:24,ow:32,oh:32,tp:1},{x:379,y:856,w:22,h:32,XOffset:5,YOffset:0,CropWidth:22,CropHeight:32,
ow:32,oh:32,tp:1},{x:369,y:897,w:22,h:32,XOffset:5,YOffset:0,CropWidth:22,CropHeight:32,ow:32,oh:32,tp:1},{x:168,y:910,w:26,h:26,XOffset:3,YOffset:3,CropWidth:26,CropHeight:26,ow:32,oh:32,tp:1},{x:330,y:795,w:32,h:21,XOffset:0,YOffset:0,CropWidth:32,CropHeight:21,ow:32,oh:32,tp:1},{x:136,y:946,w:62,h:10,XOffset:1,YOffset:27,CropWidth:62,CropHeight:10,ow:64,oh:64,tp:1},{x:240,y:904,w:24,h:24,XOffset:4,YOffset:4,CropWidth:24,CropHeight:24,ow:32,oh:32,tp:1},{x:747,y:799,w:24,h:24,XOffset:0,YOffset:0,
CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:850,y:731,w:24,h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:817,y:759,w:24,h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:677,y:837,w:24,h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:520,y:815,w:24,h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:554,y:771,w:24,h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:781,y:798,w:24,
h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:677,y:837,w:24,h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:554,y:771,w:24,h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:520,y:815,w:24,h:24,XOffset:0,YOffset:0,CropWidth:24,CropHeight:24,ow:24,oh:24,tp:1},{x:502,y:548,w:18,h:32,XOffset:7,YOffset:0,CropWidth:18,CropHeight:32,ow:32,oh:32,tp:1},{x:452,y:820,w:18,h:32,XOffset:7,YOffset:0,CropWidth:18,CropHeight:32,ow:32,oh:32,
tp:1},{x:488,y:784,w:30,h:19,XOffset:1,YOffset:1,CropWidth:30,CropHeight:19,ow:32,oh:32,tp:1},{x:421,y:593,w:32,h:16,XOffset:0,YOffset:0,CropWidth:32,CropHeight:16,ow:32,oh:16,tp:1},{x:395,y:892,w:32,h:16,XOffset:0,YOffset:0,CropWidth:32,CropHeight:16,ow:32,oh:16,tp:1},{x:134,y:962,w:32,h:16,XOffset:0,YOffset:0,CropWidth:32,CropHeight:16,ow:32,oh:16,tp:1},{x:204,y:933,w:32,h:16,XOffset:0,YOffset:0,CropWidth:32,CropHeight:16,ow:32,oh:16,tp:1},{x:741,y:827,w:32,h:16,XOffset:0,YOffset:0,CropWidth:32,
CropHeight:16,ow:32,oh:16,tp:1},{x:878,y:758,w:32,h:16,XOffset:0,YOffset:0,CropWidth:32,CropHeight:16,ow:32,oh:16,tp:1},{x:812,y:787,w:32,h:16,XOffset:0,YOffset:0,CropWidth:32,CropHeight:16,ow:32,oh:16,tp:1},{x:554,y:799,w:31,h:16,XOffset:0,YOffset:0,CropWidth:31,CropHeight:16,ow:32,oh:16,tp:1},{x:554,y:799,w:31,h:16,XOffset:0,YOffset:0,CropWidth:31,CropHeight:16,ow:32,oh:16,tp:1},{x:548,y:842,w:31,h:16,XOffset:0,YOffset:0,CropWidth:31,CropHeight:16,ow:32,oh:16,tp:1},{x:548,y:842,w:31,h:16,XOffset:0,
YOffset:0,CropWidth:31,CropHeight:16,ow:32,oh:16,tp:1},{x:500,y:584,w:22,h:22,XOffset:5,YOffset:5,CropWidth:22,CropHeight:22,ow:32,oh:32,tp:1},{x:380,y:827,w:22,h:22,XOffset:1,YOffset:1,CropWidth:22,CropHeight:22,ow:24,oh:24,tp:1},{x:380,y:827,w:22,h:22,XOffset:1,YOffset:1,CropWidth:22,CropHeight:22,ow:24,oh:24,tp:1},{x:380,y:827,w:22,h:22,XOffset:1,YOffset:1,CropWidth:22,CropHeight:22,ow:24,oh:24,tp:1},{x:380,y:827,w:22,h:22,XOffset:1,YOffset:1,CropWidth:22,CropHeight:22,ow:24,oh:24,tp:1},{x:380,
y:827,w:22,h:22,XOffset:1,YOffset:1,CropWidth:22,CropHeight:22,ow:24,oh:24,tp:1},{x:380,y:827,w:22,h:22,XOffset:1,YOffset:1,CropWidth:22,CropHeight:22,ow:24,oh:24,tp:1},{x:335,y:931,w:28,h:16,XOffset:0,YOffset:0,CropWidth:28,CropHeight:16,ow:32,oh:16,tp:1},{x:395,y:912,w:28,h:16,XOffset:0,YOffset:0,CropWidth:28,CropHeight:16,ow:32,oh:16,tp:1},{x:268,y:904,w:14,h:32,XOffset:9,YOffset:0,CropWidth:14,CropHeight:32,ow:32,oh:32,tp:1},{x:431,y:865,w:14,h:32,XOffset:9,YOffset:0,CropWidth:14,CropHeight:32,
ow:32,oh:32,tp:1},{x:170,y:962,w:27,h:16,XOffset:0,YOffset:0,CropWidth:27,CropHeight:16,ow:32,oh:16,tp:1},{x:134,y:982,w:27,h:16,XOffset:0,YOffset:0,CropWidth:27,CropHeight:16,ow:32,oh:16,tp:1},{x:204,y:953,w:26,h:16,XOffset:0,YOffset:0,CropWidth:26,CropHeight:16,ow:32,oh:16,tp:1},{x:206,y:908,w:20,h:20,XOffset:6,YOffset:6,CropWidth:20,CropHeight:20,ow:32,oh:32,tp:1},{x:777,y:826,w:20,h:20,XOffset:6,YOffset:6,CropWidth:20,CropHeight:20,ow:32,oh:32,tp:1},{x:705,y:839,w:26,h:15,XOffset:3,YOffset:3,
CropWidth:26,CropHeight:15,ow:32,oh:32,tp:1},{x:668,y:674,w:24,h:14,XOffset:1,YOffset:1,CropWidth:24,CropHeight:14,ow:32,oh:16,tp:1},{x:914,y:758,w:24,h:14,XOffset:1,YOffset:1,CropWidth:24,CropHeight:14,ow:32,oh:16,tp:1},{x:809,y:807,w:10,h:32,XOffset:11,YOffset:0,CropWidth:10,CropHeight:32,ow:32,oh:32,tp:1},{x:848,y:759,w:10,h:32,XOffset:11,YOffset:0,CropWidth:10,CropHeight:32,ow:32,oh:32,tp:1},{x:589,y:815,w:24,h:13,XOffset:4,YOffset:4,CropWidth:24,CropHeight:13,ow:32,oh:32,tp:1},{x:240,y:874,
w:18,h:16,XOffset:6,YOffset:0,CropWidth:18,CropHeight:16,ow:32,oh:16,tp:1},{x:240,y:874,w:18,h:16,XOffset:6,YOffset:0,CropWidth:18,CropHeight:16,ow:32,oh:16,tp:1},{x:878,y:731,w:16,h:16,XOffset:7,YOffset:0,CropWidth:16,CropHeight:16,ow:32,oh:16,tp:1},{x:878,y:731,w:16,h:16,XOffset:7,YOffset:0,CropWidth:16,CropHeight:16,ow:32,oh:16,tp:1},{x:583,y:842,w:16,h:16,XOffset:4,YOffset:4,CropWidth:16,CropHeight:16,ow:24,oh:24,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,
oh:16,tp:1},{x:520,y:843,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:367,y:933,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:427,y:912,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,
CropHeight:16,ow:16,oh:16,tp:1},{x:823,y:807,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:395,y:932,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:240,y:932,w:16,h:16,XOffset:0,
YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:286,y:933,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,
y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:449,y:865,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,
ow:16,oh:16,tp:1},{x:823,y:807,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:405,y:856,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:165,y:982,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:134,y:1002,w:16,h:16,XOffset:0,YOffset:0,
CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:234,y:953,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:823,y:807,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:201,y:973,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:735,y:847,w:16,
h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:914,y:776,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:823,y:807,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:801,y:843,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:617,y:815,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:548,y:819,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,
tp:1},{x:415,y:932,w:15,h:17,XOffset:0,YOffset:7,CropWidth:15,CropHeight:17,ow:16,oh:24,tp:1},{x:603,y:842,w:15,h:17,XOffset:0,YOffset:7,CropWidth:15,CropHeight:17,ow:16,oh:24,tp:1},{x:474,y:844,w:15,h:17,XOffset:0,YOffset:7,CropWidth:15,CropHeight:17,ow:16,oh:24,tp:1},{x:447,y:901,w:15,h:17,XOffset:0,YOffset:7,CropWidth:15,CropHeight:17,ow:16,oh:24,tp:1},{x:415,y:932,w:15,h:17,XOffset:0,YOffset:7,CropWidth:15,CropHeight:17,ow:16,oh:24,tp:1},{x:306,y:933,w:22,h:11,XOffset:5,YOffset:5,CropWidth:22,
CropHeight:11,ow:32,oh:32,tp:1},{x:260,y:940,w:15,h:16,XOffset:0,YOffset:8,CropWidth:15,CropHeight:16,ow:16,oh:24,tp:1},{x:306,y:951,w:15,h:16,XOffset:0,YOffset:8,CropWidth:15,CropHeight:16,ow:16,oh:24,tp:1},{x:696,y:674,w:16,h:13,XOffset:0,YOffset:3,CropWidth:16,CropHeight:13,ow:16,oh:16,tp:1},{x:2,y:1006,w:14,h:14,XOffset:1,YOffset:1,CropWidth:14,CropHeight:14,ow:16,oh:16,tp:1},{x:154,y:1002,w:14,h:14,XOffset:1,YOffset:1,CropWidth:14,CropHeight:14,ow:16,oh:16,tp:1},{x:221,y:973,w:14,h:14,XOffset:1,
YOffset:1,CropWidth:14,CropHeight:14,ow:16,oh:16,tp:1},{x:524,y:308,w:6,h:32,XOffset:13,YOffset:0,CropWidth:6,CropHeight:32,ow:32,oh:32,tp:1},{x:862,y:759,w:6,h:32,XOffset:13,YOffset:0,CropWidth:6,CropHeight:32,ow:32,oh:32,tp:1},{x:405,y:876,w:12,h:12,XOffset:2,YOffset:2,CropWidth:12,CropHeight:12,ow:16,oh:16,tp:1},{x:185,y:982,w:12,h:12,XOffset:2,YOffset:2,CropWidth:12,CropHeight:12,ow:16,oh:16,tp:1},{x:755,y:847,w:12,h:12,XOffset:2,YOffset:2,CropWidth:12,CropHeight:12,ow:16,oh:16,tp:1},{x:522,
y:803,w:16,h:8,XOffset:0,YOffset:0,CropWidth:16,CropHeight:8,ow:16,oh:8,tp:1},{x:705,y:858,w:16,h:8,XOffset:0,YOffset:0,CropWidth:16,CropHeight:8,ow:16,oh:8,tp:1},{x:705,y:858,w:16,h:8,XOffset:0,YOffset:0,CropWidth:16,CropHeight:8,ow:16,oh:8,tp:1},{x:934,y:776,w:16,h:8,XOffset:0,YOffset:0,CropWidth:16,CropHeight:8,ow:16,oh:8,tp:1},{x:582,y:771,w:10,h:10,XOffset:0,YOffset:0,CropWidth:10,CropHeight:10,ow:10,oh:10,tp:1},{x:582,y:785,w:10,h:10,XOffset:3,YOffset:3,CropWidth:10,CropHeight:10,ow:16,oh:16,
tp:1},{x:848,y:795,w:10,h:10,XOffset:3,YOffset:3,CropWidth:10,CropHeight:10,ow:16,oh:16,tp:1},{x:823,y:827,w:10,h:10,XOffset:3,YOffset:3,CropWidth:10,CropHeight:10,ow:16,oh:16,tp:1},{x:286,y:904,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:1},{x:699,y:735,w:7,h:10,XOffset:25,YOffset:11,CropWidth:7,CropHeight:10,ow:32,oh:32,tp:1},{x:954,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:954,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,
ow:32,oh:32,tp:1},{x:954,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:872,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:872,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:930,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:930,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:930,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,
oh:24,tp:1},{x:872,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:872,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:872,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:930,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:872,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:872,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1}
,{x:930,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:930,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:930,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:872,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:930,y:2,w:8,h:8,XOffset:8,YOffset:8,CropWidth:8,CropHeight:8,ow:24,oh:24,tp:1},{x:537,y:14,w:2,h:32,XOffset:15,YOffset:0,CropWidth:2,CropHeight:32,ow:32,oh:32,tp:1},{x:537,
y:50,w:2,h:32,XOffset:15,YOffset:0,CropWidth:2,CropHeight:32,ow:32,oh:32,tp:1},{x:543,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:567,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:567,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:579,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:567,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{
x:567,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:555,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:567,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:579,y:2,w:8,h:8,XOffset:12,YOffset:12,CropWidth:8,CropHeight:8,ow:32,oh:32,tp:1},{x:591,y:2,w:8,h:8,XOffset:4,YOffset:4,CropWidth:8,CropHeight:8,ow:16,oh:16,tp:1},{x:603,y:2,w:8,h:8,XOffset:4,YOffset:4,CropWidth:8,CropHeight:8,ow:16,oh:16,tp:1},{
x:615,y:2,w:8,h:8,XOffset:4,YOffset:4,CropWidth:8,CropHeight:8,ow:16,oh:16,tp:1},{x:627,y:2,w:9,h:6,XOffset:0,YOffset:0,CropWidth:9,CropHeight:6,ow:9,oh:6,tp:1},{x:640,y:2,w:6,h:8,XOffset:1,YOffset:0,CropWidth:6,CropHeight:8,ow:8,oh:8,tp:1},{x:640,y:2,w:6,h:8,XOffset:1,YOffset:0,CropWidth:6,CropHeight:8,ow:8,oh:8,tp:1},{x:650,y:2,w:6,h:8,XOffset:1,YOffset:0,CropWidth:6,CropHeight:8,ow:8,oh:8,tp:1},{x:640,y:2,w:6,h:8,XOffset:1,YOffset:0,CropWidth:6,CropHeight:8,ow:8,oh:8,tp:1},{x:640,y:2,w:6,h:8,
XOffset:1,YOffset:0,CropWidth:6,CropHeight:8,ow:8,oh:8,tp:1},{x:650,y:2,w:6,h:8,XOffset:1,YOffset:0,CropWidth:6,CropHeight:8,ow:8,oh:8,tp:1},{x:660,y:2,w:6,h:8,XOffset:1,YOffset:0,CropWidth:6,CropHeight:8,ow:8,oh:8,tp:1},{x:670,y:2,w:7,h:6,XOffset:0,YOffset:1,CropWidth:7,CropHeight:6,ow:7,oh:7,tp:1},{x:681,y:2,w:7,h:6,XOffset:13,YOffset:13,CropWidth:7,CropHeight:6,ow:32,oh:32,tp:1},{x:692,y:2,w:7,h:6,XOffset:13,YOffset:13,CropWidth:7,CropHeight:6,ow:32,oh:32,tp:1},{x:703,y:2,w:7,h:6,XOffset:13,YOffset:13,
CropWidth:7,CropHeight:6,ow:32,oh:32,tp:1},{x:714,y:2,w:7,h:6,XOffset:13,YOffset:13,CropWidth:7,CropHeight:6,ow:32,oh:32,tp:1},{x:725,y:2,w:6,h:6,XOffset:13,YOffset:13,CropWidth:6,CropHeight:6,ow:32,oh:32,tp:1},{x:765,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,ow:24,oh:24,tp:1},{x:735,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,ow:24,oh:24,tp:1},{x:755,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,ow:24,oh:24,tp:1},{x:765,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,
CropHeight:6,ow:24,oh:24,tp:1},{x:755,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,ow:24,oh:24,tp:1},{x:755,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,ow:24,oh:24,tp:1},{x:745,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,ow:24,oh:24,tp:1},{x:765,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,ow:24,oh:24,tp:1},{x:755,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,ow:24,oh:24,tp:1},{x:765,y:2,w:6,h:6,XOffset:9,YOffset:9,CropWidth:6,CropHeight:6,
ow:24,oh:24,tp:1},{x:775,y:2,w:6,h:6,XOffset:13,YOffset:13,CropWidth:6,CropHeight:6,ow:32,oh:32,tp:1},{x:785,y:2,w:6,h:6,XOffset:13,YOffset:13,CropWidth:6,CropHeight:6,ow:32,oh:32,tp:1},{x:795,y:2,w:6,h:6,XOffset:13,YOffset:13,CropWidth:6,CropHeight:6,ow:32,oh:32,tp:1},{x:805,y:2,w:6,h:6,XOffset:5,YOffset:5,CropWidth:6,CropHeight:6,ow:16,oh:16,tp:1},{x:815,y:2,w:6,h:6,XOffset:5,YOffset:5,CropWidth:6,CropHeight:6,ow:16,oh:16,tp:1},{x:825,y:2,w:6,h:6,XOffset:5,YOffset:5,CropWidth:6,CropHeight:6,ow:16,
oh:16,tp:1},{x:835,y:2,w:9,h:3,XOffset:3,YOffset:21,CropWidth:9,CropHeight:3,ow:16,oh:24,tp:1},{x:848,y:2,w:16,h:1,XOffset:0,YOffset:0,CropWidth:16,CropHeight:1,ow:16,oh:8,tp:1},{x:848,y:2,w:16,h:1,XOffset:0,YOffset:0,CropWidth:16,CropHeight:1,ow:16,oh:8,tp:1},{x:848,y:7,w:4,h:4,XOffset:14,YOffset:14,CropWidth:4,CropHeight:4,ow:32,oh:32,tp:1},{x:856,y:7,w:4,h:4,XOffset:14,YOffset:14,CropWidth:4,CropHeight:4,ow:32,oh:32,tp:1},{x:864,y:7,w:4,h:4,XOffset:14,YOffset:14,CropWidth:4,CropHeight:4,ow:32,
oh:32,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:835,y:9,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,
ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,
ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:835,y:9,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,
ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,
ow:24,oh:24,tp:1},{x:835,y:9,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:835,y:9,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,
ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:670,y:12,w:4,h:4,XOffset:10,YOffset:10,CropWidth:4,CropHeight:4,ow:24,oh:24,tp:1},{x:678,y:12,w:4,h:4,XOffset:6,YOffset:6,CropWidth:4,CropHeight:4,ow:16,oh:16,tp:1},{x:686,y:12,w:4,h:4,XOffset:6,YOffset:6,CropWidth:4,CropHeight:4,
ow:16,oh:16,tp:1},{x:694,y:12,w:4,h:4,XOffset:6,YOffset:6,CropWidth:4,CropHeight:4,ow:16,oh:16,tp:1},{x:726,y:12,w:8,h:1,XOffset:0,YOffset:4,CropWidth:8,CropHeight:1,ow:8,oh:8,tp:1},{x:702,y:12,w:8,h:1,XOffset:0,YOffset:4,CropWidth:8,CropHeight:1,ow:8,oh:8,tp:1},{x:714,y:12,w:8,h:1,XOffset:0,YOffset:4,CropWidth:8,CropHeight:1,ow:8,oh:8,tp:1},{x:726,y:12,w:8,h:1,XOffset:0,YOffset:4,CropWidth:8,CropHeight:1,ow:8,oh:8,tp:1},{x:738,y:12,w:6,h:1,XOffset:1,YOffset:4,CropWidth:6,CropHeight:1,ow:8,oh:8,
tp:1},{x:748,y:12,w:6,h:1,XOffset:1,YOffset:4,CropWidth:6,CropHeight:1,ow:8,oh:8,tp:1},{x:758,y:12,w:6,h:1,XOffset:1,YOffset:4,CropWidth:6,CropHeight:1,ow:8,oh:8,tp:1},{x:768,y:12,w:4,h:1,XOffset:2,YOffset:4,CropWidth:4,CropHeight:1,ow:8,oh:8,tp:1},{x:776,y:12,w:4,h:1,XOffset:2,YOffset:4,CropWidth:4,CropHeight:1,ow:8,oh:8,tp:1},{x:784,y:12,w:2,h:2,XOffset:15,YOffset:15,CropWidth:2,CropHeight:2,ow:32,oh:32,tp:1},{x:784,y:12,w:2,h:2,XOffset:15,YOffset:15,CropWidth:2,CropHeight:2,ow:32,oh:32,tp:1},
{x:790,y:12,w:2,h:2,XOffset:24,YOffset:9,CropWidth:2,CropHeight:2,ow:32,oh:32,tp:1},{x:796,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:802,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{
x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:802,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,
y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:808,y:12,w:2,h:2,XOffset:7,YOffset:7,CropWidth:2,CropHeight:2,ow:16,oh:16,tp:1},{x:814,y:12,w:1,h:2,XOffset:15,YOffset:15,CropWidth:1,CropHeight:2,ow:32,oh:32,tp:1},{x:821,y:14,w:1,h:1,XOffset:31,YOffset:31,CropWidth:1,CropHeight:1,ow:64,oh:64,tp:1},{x:828,
y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:16,oh:8,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,
w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1},{x:828,y:12,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:32,oh:32,tp:1}],Textures:["santa-is-running-in-town_texture_0.png",
"santa-is-running-in-town_texture_1.png"],TexturesBlocks:[{MipsToGenerate:0},{MipsToGenerate:0}],TextureGroupInfo:[{pName:"__YY__0fallbacktexture.png_YYG_AUTO_GEN_TEX_GROUP_NAME_",TextureIDs:[0],SpriteIDs:[],SpineSpriteIDs:[],FontIDs:[],TilesetIDs:[]},{pName:"Default",TextureIDs:[1],SpriteIDs:[0,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],SpineSpriteIDs:[],FontIDs:[0,1],TilesetIDs:[0]}],FeatureFlags:{"filt+fx":"filt+fx","gx_mod_wallpaper":"gx_mod_wallpaper",
"nullish":"nullish","login_sso":"login_sso","operagx-yyc":"operagx-yyc","mqtt":"mqtt","audio-fx":"audio-fx","intellisense":"intellisense","test":"test","custom_env":"custom_env","filt+fx":"filt+fx","gx_mod_wallpaper":"gx_mod_wallpaper","gx_mod_gamestrip":"gx_mod_gamestrip","live_wallpaper_subscription":"live_wallpaper_subscription"},Options:{debugMode:false,AssetCompilerMajorVersion:2,AssetCompilerMinorVersion:0,AssetCompilerBuildVersion:0,GameSpeed:60,DrawColour:4294967295,xscreensize:768,yscreensize:432,
gameId:0,gameGuid:"f4fbf117-4196-46a4-8a03-3dab3e0f7abc",fullScreen:false,interpolatePixels:true,showCursor:true,scale:1,allowFullScreenKey:true,freezeOnLostFocus:false,showLoadingBar:false,displayErrors:false,writeErrors:false,abortErrors:false,variableErrors:true,outputDebugToConsole:true,WebGL:2,WebGLPreserveDrawingBuffer:0,CollisionCompatibility:false,UseNewAudio:true,GameDir:"html5game",Config:"Default",ViewColour:0,CreateEventOrder:false,UseParticles:true,UseBuiltinFont:true,LocalRunAlert:true,
crc:0,ProjectName:"santa-is-running-in-town",md5:[192,191,1,0,0,0,0,0,0,0,0,0,0,0,0,0],MajorVersion:1,MinorVersion:0,BuildVersion:0,RevisionVersion:0,DisplayName:"Created with GameMaker",UseFBExtension:false,tm:1734941892,AllowStatistics:"True"}};function gml_RoomCC_rmLevel_476_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E0187F2);}function gml_RoomCC_rmLevel_477_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E0186CE);}function gml_RoomCC_rmLevel_502_PreCreate(_inst,_other){
_inst.gmladdress_id=YYASSET_REF(0x0E018707);}function gml_RoomCC_rmLevel_505_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E01873B);}function gml_RoomCC_rmLevel_506_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E0187CF);}function gml_RoomCC_rmLevel_594_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E0186BF);}function gml_RoomCC_rmLevel_595_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E0187F4);}function gml_RoomCC_rmLevel_596_PreCreate(_inst,_other){
_inst.gmladdress_id=YYASSET_REF(0x0E0187D4);}function gml_RoomCC_rmLevel_597_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E018716);}function gml_RoomCC_rmLevel_602_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E018750);}function gml_RoomCC_rmGame_7_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E018919);}function gml_RoomCC_rmGame_8_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E01891D);}function gml_RoomCC_rmGame_9_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E01891C);
}function gml_RoomCC_rmGame_11_PreCreate(_inst,_other){_inst.gmladdress_id=YYASSET_REF(0x0E01891B);}function gml_GlobalScript_input_manager(_inst,_other){(_inst.gmlinput_setup=__yy_method(_inst,gml_Script_input_setup));(_inst.gmlinput_get_current_type=__yy_method(_inst,gml_Script_input_get_current_type));(_inst.gmlinput_update=__yy_method(_inst,gml_Script_input_update));(_inst.gmlinput_check_pressed=__yy_method(_inst,gml_Script_input_check_pressed));(_inst.gmlinput_check=__yy_method(_inst,gml_Script_input_check));
(_inst.gmlinput_check_released=__yy_method(_inst,gml_Script_input_check_released));(_inst.gmlinput_axis=__yy_method(_inst,gml_Script_input_axis));}function gml_Script____struct___0_input_setup_input_manager(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___0@input_setup@input_manager";}if(gml_Script____struct___0_input_setup_input_manager.prototype.__type===undefined){gml_Script____struct___0_input_setup_input_manager.prototype.__type="gml_Script____struct___0@input_setup@input_manager";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___0_input_setup_input_manager.prototype);{}}}function gml_Script____struct___1_input_setup_input_manager(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___1@input_setup@input_manager";}if(gml_Script____struct___1_input_setup_input_manager.prototype.__type===undefined){gml_Script____struct___1_input_setup_input_manager.prototype.__type="gml_Script____struct___1@input_setup@input_manager";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,
gml_Script____struct___1_input_setup_input_manager.prototype);{}}}function gml_Script_input_setup(_inst,_other,argument0,argument1){{global.gmlinput_manager_bindings=__yy_gml_object_create(_inst,(global.gml___struct___0=__yy_method(_inst,gml_Script____struct___0_input_setup_input_manager)));global.gmlinput_manager_axes=__yy_gml_object_create(_inst,(global.gml___struct___1=__yy_method(_inst,gml_Script____struct___1_input_setup_input_manager)));global.gmlinput_manager_type="keyboard";var gml_i=0;for(;
yyfless(gml_i,array_length(argument0));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{var gml_binding=variable_clone(argument0[__yy_gml_array_check_index(gml_i,argument0)]);variable_struct_set(global.gmlinput_manager_bindings,yyInst(_inst,_other,gml_binding).id,gml_binding);}};var gml_i=0;for(;yyfless(gml_i,array_length(argument1));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){
{var gml_axis=variable_clone(argument1[__yy_gml_array_check_index(gml_i,argument1)]);variable_struct_set(global.gmlinput_manager_axes,yyInst(_inst,_other,gml_axis).id,gml_axis);}};}}function gml_Script_input_get_current_type(_inst,_other){{return global.gmlinput_manager_type;}}function gml_Script_input_update(_inst,_other){{if((yyGetBool(keyboard_check_pressed(1)))||(yyGetBool(mouse_check_button_pressed((-1))))){{global.gmlinput_manager_type="keyboard";};}else {if(yyGetBool(gamepad_is_connected(0))){
{var gml_num_gamepads=gamepad_get_device_count();var gml_gamepad_id=0;for(;yyfless(gml_gamepad_id,gml_num_gamepads);(g_yyPrePostObject__=gml_gamepad_id,gml_gamepad_id=(g_yyPrePostObject__ instanceof Long?gml_gamepad_id.add(1):++gml_gamepad_id),g_yyPrePostObject__)){{if(yyGetBool(gamepad_is_connected(gml_gamepad_id))){{var gml_num_buttons=gamepad_button_count(gml_gamepad_id);var gml_i=0;for(;yyfless(gml_i,gml_num_buttons);(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),
g_yyPrePostObject__)){{if(yyGetBool(gamepad_button_check_pressed(gml_gamepad_id,gml_i))){{global.gmlinput_manager_type="gamepad";};};}};};};}};};};};}}function gml_Script_input_check_pressed(_inst,_other,argument0){{var gml_pressed=false;var gml_binding=variable_struct_get(global.gmlinput_manager_bindings,argument0);if(!yyGetBool(is_undefined(gml_binding))){{var gml_keyboard=struct_get_from_hash(gml_binding,"keyboard");var gml_gamepad=struct_get_from_hash(gml_binding,"gamepad");var gml_gamepad_id=struct_get_from_hash(gml_binding,
"gamepad_id");if(yyGetBool(is_undefined(gml_gamepad_id))){gml_gamepad_id=0;};var gml_mouse=struct_get_from_hash(gml_binding,"mouse");if(!yyGetBool(is_undefined(gml_keyboard))){{var gml_i=0;for(;yyfless(gml_i,array_length(gml_keyboard));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_pressed=yyfbitor(gml_pressed,keyboard_check_pressed(gml_keyboard[__yy_gml_array_check_index(gml_i,gml_keyboard)]));}};};};if(!yyGetBool(is_undefined(gml_gamepad))){
{var gml_i=0;for(;yyfless(gml_i,array_length(gml_gamepad));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_pressed=yyfbitor(gml_pressed,gamepad_button_check_pressed(gml_gamepad_id,gml_gamepad[__yy_gml_array_check_index(gml_i,gml_gamepad)]));}};};};if(!yyGetBool(is_undefined(gml_mouse))){{var gml_i=0;for(;yyfless(gml_i,array_length(gml_mouse));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),
g_yyPrePostObject__)){{gml_pressed=yyfbitor(gml_pressed,mouse_check_button_pressed(gml_mouse[__yy_gml_array_check_index(gml_i,gml_mouse)]));}};};};};};return gml_pressed;}}function gml_Script_input_check(_inst,_other,argument0){{var gml_held=false;var gml_binding=variable_struct_get(global.gmlinput_manager_bindings,argument0);if(!yyGetBool(is_undefined(gml_binding))){{var gml_keyboard=struct_get_from_hash(gml_binding,"keyboard");var gml_gamepad=struct_get_from_hash(gml_binding,"gamepad");var gml_gamepad_id=struct_get_from_hash(gml_binding,
"gamepad_id");if(yyGetBool(is_undefined(gml_gamepad_id))){gml_gamepad_id=0;};var gml_mouse=struct_get_from_hash(gml_binding,"mouse");if(!yyGetBool(is_undefined(gml_keyboard))){{var gml_i=0;for(;yyfless(gml_i,array_length(gml_keyboard));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_held=yyfbitor(gml_held,keyboard_check(gml_keyboard[__yy_gml_array_check_index(gml_i,gml_keyboard)]));}};};};if(!yyGetBool(is_undefined(gml_gamepad))){
{var gml_i=0;for(;yyfless(gml_i,array_length(gml_gamepad));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_held=yyfbitor(gml_held,gamepad_button_check(gml_gamepad_id,gml_gamepad[__yy_gml_array_check_index(gml_i,gml_gamepad)]));}};};};if(!yyGetBool(is_undefined(gml_mouse))){{var gml_i=0;for(;yyfless(gml_i,array_length(gml_mouse));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){
{gml_held=yyfbitor(gml_held,mouse_check_button(gml_mouse[__yy_gml_array_check_index(gml_i,gml_mouse)]));}};};};};};return gml_held;}}function gml_Script_input_check_released(_inst,_other,argument0){{var gml_released=false;var gml_binding=variable_struct_get(global.gmlinput_manager_bindings,argument0);if(!yyGetBool(is_undefined(gml_binding))){{var gml_keyboard=struct_get_from_hash(gml_binding,"keyboard");var gml_gamepad=struct_get_from_hash(gml_binding,"gamepad");var gml_gamepad_id=struct_get_from_hash(gml_binding,
"gamepad_id");if(yyGetBool(is_undefined(gml_gamepad_id))){gml_gamepad_id=0;};var gml_mouse=struct_get_from_hash(gml_binding,"mouse");if(!yyGetBool(is_undefined(gml_keyboard))){{var gml_i=0;for(;yyfless(gml_i,array_length(gml_keyboard));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_released=yyfbitor(gml_released,keyboard_check_released(gml_keyboard[__yy_gml_array_check_index(gml_i,gml_keyboard)]));}};};};if(!yyGetBool(is_undefined(gml_gamepad))){
{var gml_i=0;for(;yyfless(gml_i,array_length(gml_gamepad));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_released=yyfbitor(gml_released,gamepad_button_check_released(gml_gamepad_id,gml_gamepad[__yy_gml_array_check_index(gml_i,gml_gamepad)]));}};};};if(!yyGetBool(is_undefined(gml_mouse))){{var gml_i=0;for(;yyfless(gml_i,array_length(gml_mouse));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),
g_yyPrePostObject__)){{gml_released=yyfbitor(gml_released,mouse_check_button_released(gml_mouse[__yy_gml_array_check_index(gml_i,gml_mouse)]));}};};};};};return gml_released;}}function gml_Script_input_axis(_inst,_other,argument0){{var gml_axis_value=0;var gml_axes=variable_struct_get(global.gmlinput_manager_axes,argument0);if(!yyGetBool(is_undefined(gml_axes))){{var gml_keyboard=struct_get_from_hash(gml_axes,"keyboard");var gml_gamepad=struct_get_from_hash(gml_axes,"gamepad");var gml_gamepad_id=struct_get_from_hash(gml_axes,
"gamepad_id");var gml_gamepad_axis=struct_get_from_hash(gml_axes,"gamepad_axis");if(yyGetBool(is_undefined(gml_gamepad_id))){gml_gamepad_id=0;};if(!yyGetBool(is_undefined(gml_keyboard))){{var gml_negative=struct_get_from_hash(gml_keyboard,"negative");var gml_i=0;for(;yyfless(gml_i,array_length(gml_negative));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_axis_value=yyfminus(gml_axis_value,keyboard_check(gml_negative[__yy_gml_array_check_index(gml_i,
gml_negative)]));}};var gml_positive=struct_get_from_hash(gml_keyboard,"positive");var gml_i=0;for(;yyfless(gml_i,array_length(gml_positive));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_axis_value=yyfplus(gml_axis_value,keyboard_check(gml_positive[__yy_gml_array_check_index(gml_i,gml_positive)]));}};};};if(!yyGetBool(is_undefined(gml_gamepad))){{var gml_negative=struct_get_from_hash(gml_gamepad,"negative");var gml_i=0;for(;yyfless(gml_i,
array_length(gml_negative));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{gml_axis_value=yyfminus(gml_axis_value,gamepad_button_check(gml_gamepad_id,gml_negative[__yy_gml_array_check_index(gml_i,gml_negative)]));}};var gml_positive=struct_get_from_hash(gml_gamepad,"positive");var gml_i=0;for(;yyfless(gml_i,array_length(gml_positive));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){
{gml_axis_value=yyfplus(gml_axis_value,gamepad_button_check(gml_gamepad_id,gml_positive[__yy_gml_array_check_index(gml_i,gml_positive)]));}};};};if(!yyGetBool(is_undefined(gml_gamepad_axis))){{gml_axis_value=yyfplus(gml_axis_value,gamepad_axis_value(gml_gamepad_id,gml_gamepad_axis));};};};};return clamp(gml_axis_value,(-1),1);}}function gml_GlobalScript_Macro(_inst,_other){}function gml_GlobalScript_Movement(_inst,_other){(_inst.gmlset_movement=__yy_method(_inst,gml_Script_set_movement));}function gml_Script_set_movement(_inst,
_other){{var gml_up_key=gml_Script_input_check(_inst,_other,0);var gml_left_key=gml_Script_input_check(_inst,_other,2);var gml_down_key=gml_Script_input_check(_inst,_other,1);var gml_right_key=gml_Script_input_check(_inst,_other,3);var gml_eating_key=gml_Script_input_check(_inst,_other,4);var gml_moved=(yyGetBool(gml_up_key))||(yyGetBool(gml_left_key))||(yyGetBool(gml_down_key))||(yyGetBool(gml_right_key));if((yyGetBool(gml_eating_key))&&(yyGetBool(yyfgreater(_inst.gmlcookie,0)))&&(yyGetBool(yyfequal(_inst.gmlcookie_eating,
false)))){{_inst.gmlcookie_eating=true;_inst.gmlcookie=yyfminus(_inst.gmlcookie,1);audio_play_sound(YYASSET_REF(0x02000001),10,false);};};if(yyGetBool(gml_moved)){{_inst.sprite_index=YYASSET_REF(0x0100001A);var gml_angle=camera_get_view_angle(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gml_axis_x=0;var gml_axis_y=0;if(yyGetBool(gml_up_key)){gml_axis_y=(-1);}else {if(yyGetBool(gml_down_key)){gml_axis_y=1;};};if(yyGetBool(gml_right_key)){gml_axis_x=1;}else {if(yyGetBool(gml_left_key)){
gml_axis_x=(-1);};};var gml_target_angle=yyfminus(__yy_gml_errCheck(point_direction(0,0,gml_axis_x,gml_axis_y)),__yy_gml_errCheck(gml_angle));if((yyGetBool(yyfless(gml_target_angle,90)))||(yyGetBool(yyfgreater(gml_target_angle,270)))){_inst.image_xscale=1;}else {_inst.image_xscale=(-1);};var gml_incr=2;var gml_i=0;for(;yyflessequal(gml_i,90);gml_i=yyfplus(gml_i,gml_incr)){{_inst.gmlspd_to_reach=yyfminus(__yy_gml_errCheck(_inst.gmlmax_spd),__yy_gml_errCheck(yyftime(0.25,__yy_gml_errCheck(_inst.gmlgifts))));
if(yyflessequal(_inst.gmlspd_to_reach,0)){_inst.gmlspd_to_reach=0.1;};_inst.gmlspd=lerp(_inst.gmlspd,_inst.gmlspd_to_reach,0.2);_inst.gmlspd=yyfminus(__yy_gml_errCheck(_inst.gmlspd),__yy_gml_errCheck(yyfdivide(yyftime(__yy_gml_errCheck(_inst.gmlspd),__yy_gml_errCheck(_inst.gmloiled)),2)));var gml_target_x=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(lengthdir_x(_inst.gmlspd,yyfplus(__yy_gml_errCheck(gml_target_angle),__yy_gml_errCheck(gml_i)))));var gml_target_y=yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(lengthdir_y(_inst.gmlspd,yyfplus(__yy_gml_errCheck(gml_target_angle),__yy_gml_errCheck(gml_i)))));if(!yyGetBool(place_meeting(_inst,gml_target_x,gml_target_y,YYASSET_REF(0x00000012)))){{_inst.x=gml_target_x;_inst.y=gml_target_y;break;};};gml_target_x=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(lengthdir_x(_inst.gmlspd,yyfminus(__yy_gml_errCheck(gml_target_angle),__yy_gml_errCheck(gml_i)))));gml_target_y=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(lengthdir_y(_inst.gmlspd,
yyfminus(__yy_gml_errCheck(gml_target_angle),__yy_gml_errCheck(gml_i)))));if(!yyGetBool(place_meeting(_inst,gml_target_x,gml_target_y,YYASSET_REF(0x00000012)))){{_inst.x=gml_target_x;_inst.y=gml_target_y;break;};};(g_yyPrePostObject__=gml_incr,gml_incr=(g_yyPrePostObject__ instanceof Long?gml_incr.add(1):++gml_incr),g_yyPrePostObject__);}};};}else {{_inst.gmlspd=lerp(_inst.gmlspd,0,0.5);_inst.sprite_index=YYASSET_REF(0x0100001C);};};}}function gml_GlobalScript_scr_i18n(_inst,_other){(_inst.gmlload_dictionary=__yy_method(_inst,
gml_Script_load_dictionary));(_inst.gmlget_dictionary_value=__yy_method(_inst,gml_Script_get_dictionary_value));}function gml_Script____struct___2_load_dictionary_scr_i18n(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___2@load_dictionary@scr_i18n";}if(gml_Script____struct___2_load_dictionary_scr_i18n.prototype.__type===undefined){gml_Script____struct___2_load_dictionary_scr_i18n.prototype.__type="gml_Script____struct___2@load_dictionary@scr_i18n";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,
gml_Script____struct___2_load_dictionary_scr_i18n.prototype);{}}}function gml_Script_load_dictionary(_inst,_other,argument0){{var gml_file_name="";var ___sw2___=argument0;var ___swc3___=-1;if(yyCompareVal(___sw2___,"it",g_GMLMathEpsilon,false)==0){___swc3___=0;}else if(yyCompareVal(___sw2___,"en",g_GMLMathEpsilon,false)==0){___swc3___=1;}switch(___swc3___){case 0:{gml_file_name="lang_it.json";break;}case 1:{gml_file_name="lang_en.json";break;}default :{gml_file_name="lang_en.json";break;}};var gml_json_file=file_text_open_read(yyfplus(yyfplus(__yy_gml_errCheck(g_pBuiltIn.working_directory),
"\\"),__yy_gml_errCheck(gml_file_name)));var gml_data="";if(yyfgreaterequal(gml_json_file,0)){{while(!yyGetBool(file_text_eof(gml_json_file))){{gml_data=yyfplus(gml_data,file_text_read_string(gml_json_file));file_text_readln(gml_json_file);}};file_text_close(gml_json_file);return json_parse(gml_data);};}else {return __yy_gml_object_create(_inst,(global.gml___struct___2=__yy_method(_inst,gml_Script____struct___2_load_dictionary_scr_i18n)));};}}function gml_Script_get_dictionary_value(_inst,_other,argument0){
{var gml_key_split=string_split(argument0,".");var gml_key_length=array_length(gml_key_split);var gml_key_root=global.gmllanguage_dictionary;if(yyfgreater(gml_key_length,0)){{var gml_i=0;for(;yyfless(gml_i,gml_key_length);(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{var gml_local_key=gml_key_split[__yy_gml_array_check_index(gml_i,gml_key_split)];gml_key_root=struct_get(gml_key_root,gml_local_key);if(yyGetBool(is_undefined(gml_key_root))){
return argument0;};}};return gml_key_root;};};return argument0;}}function gml_Object_obj_arrow_destination_Draw_0(_inst,_other){_inst.depth=(-100000000);var gml_i=0;var gml_freq=100;var gml_y=yyfplus(__yy_gml_errCheck(_inst.ystart),__yy_gml_errCheck(yyftime(2.5,__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(gml_freq)))))));for(var __yy__v0=0,__yy__v1=yyGetInt32(_inst.image_number);__yy__v0<__yy__v1;__yy__v0++){{draw_sprite_ext(_inst,_inst.sprite_index,
gml_i,_inst.x,yyfminus(__yy_gml_errCheck(gml_y),32),_inst.image_xscale,_inst.image_yscale,_inst.image_angle,_inst.image_blend,_inst.image_alpha);(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__);}};}function gml_Object_obj_arrow_Create_0(_inst,_other){_inst.gmlx_to=0;_inst.gmly_to=0;_inst.depth=(-16000);}function gml_Object_obj_arrow_Step_0(_inst,_other){if((yyGetBool(yyfnotequal(_inst.gmlx_to,0)))&&(yyGetBool(yyfnotequal(_inst.gmly_to,0)))){
{_inst.image_angle=point_direction(_inst.x,_inst.y,_inst.gmlx_to,_inst.gmly_to);};};var gml_inst=instance_place(_inst,_inst.gmlx_to,_inst.gmly_to,YYASSET_REF(0x0000000A));if(yyGetBool(instance_exists(YYASSET_REF(0x00000010)))){{_inst.x=yyInst(_inst,_other,YYASSET_REF(0x00000010)).x;_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000010)).y;if(yyfless(distance_to_point(_inst,_inst.gmlx_to,_inst.gmly_to),16)){{yyInst(_inst,_other,YYASSET_REF(0x00000010)).gmlgifts=yyfminus(yyInst(_inst,_other,YYASSET_REF(0x00000010)).gmlgifts,
1);global.gmldelivered_gift=yyfplus(global.gmldelivered_gift,1);audio_play_sound(YYASSET_REF(0x02000002),10,false);if(yyfnotequal(gml_inst,(-4))){{var gml_arrow=instance_nearest(_inst,yyInst(_inst,_other,gml_inst).x,yyInst(_inst,_other,gml_inst).y,YYASSET_REF(0x00000001));{var __yy__v2=GetWithArray(gml_arrow);for(var __yy__v3 in __yy__v2){if(!__yy__v2.hasOwnProperty(__yy__v3))continue;var __yy__v4=__yy__v2[__yy__v3];{instance_destroy(__yy__v4);}}};yyInst(_inst,_other,gml_inst).gmlfollow=false;};};instance_destroy(_inst);
};};};};}function gml_Object_obj_arrow_Draw_0(_inst,_other){if((yyGetBool(yyfnotequal(_inst.gmlx_to,0)))&&(yyGetBool(yyfnotequal(_inst.gmly_to,0)))){{_inst.image_angle=point_direction(_inst.x,_inst.y,_inst.gmlx_to,_inst.gmly_to);};};draw_self(_inst);}function gml_Object_obj_bouncer_Create_0(_inst,_other){_inst.direction=(-45);_inst.speed=0.2;_inst.gmlshow_menu=false;_inst.gmlselected=0;_inst.gmlcan_select=false;_inst.gmlmenu=__yy_gml_array_create([gml_Script_get_dictionary_value(_inst,_other,"startMenu.start"),
gml_Script_get_dictionary_value(_inst,_other,"startMenu.highscoreTable"),gml_Script_get_dictionary_value(_inst,_other,"startMenu.controls"),gml_Script_get_dictionary_value(_inst,_other,"startMenu.fullscreen"),gml_Script_get_dictionary_value(_inst,_other,"startMenu.language"),gml_Script_get_dictionary_value(_inst,_other,"startMenu.exit")]);_inst.gmlshow_chart=false;_inst.gmlshow_commands=false;_inst.gmlopacity_title=0;_inst.gmlopacity_menu=0;_inst.gmlscores=ds_list_create();_inst.gmlget_scores=http_get("https://gmiscores.altervista.org/api/v1/list.php?game=32");
_inst.gmlcontrols_instructions=gml_Script_get_dictionary_value(_inst,_other,"startMenu.controlsInstructions");}function gml_Object_obj_bouncer_Alarm_0(_inst,_other){_inst.gmlcan_select=true;}function gml_Object_obj_bouncer_Step_0(_inst,_other){if((yyGetBool(gml_Script_input_check_released(_inst,_other,8)))||(yyGetBool(gml_Script_input_check_released(_inst,_other,4)))){{if(!yyGetBool(_inst.gmlshow_menu)){{_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=30;
};};_inst.gmlshow_menu=true;};};}function gml_Object_obj_bouncer_Other_62(_inst,_other){if((yyGetBool(yyfequal(ds_map_find_value(g_pBuiltIn.get_async_load(),"id"),_inst.gmlget_scores)))&&(yyGetBool(yyfequal(ds_map_find_value(g_pBuiltIn.get_async_load(),"status"),0)))){{var gml_results=json_decode(ds_map_find_value(g_pBuiltIn.get_async_load(),"result"));_inst.gmlscores=ds_map_find_value(gml_results,"scores");};};}function gml_Object_obj_bouncer_Draw_64(_inst,_other){if((yyGetBool(instance_exists(YYASSET_REF(0x00000004))))&&(yyGetBool(!yyGetBool(_inst.gmlshow_menu)))){
{_inst.gmlopacity_title=yyfplus(_inst.gmlopacity_title,yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlopacity_title),0.1)),20));};}else {{_inst.gmlopacity_title=yyfminus(_inst.gmlopacity_title,yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlopacity_title),0.1)),10));_inst.gmlopacity_menu=yyfplus(_inst.gmlopacity_menu,yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlopacity_menu),0.1)),20));};};_inst.gmlopacity_title=clamp(_inst.gmlopacity_title,0,1);_inst.gmlopacity_menu=clamp(_inst.gmlopacity_menu,
0,1);draw_set_alpha(_inst.gmlopacity_title);draw_sprite(_inst,YYASSET_REF(0x0100001E),(-1),yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height);draw_set_alpha(_inst.gmlopacity_menu);draw_sprite(_inst,YYASSET_REF(0x01000019),(-1),yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height);if((yyGetBool(!yyGetBool(_inst.gmlshow_chart)))&&(yyGetBool(!yyGetBool(_inst.gmlshow_commands)))){
{if((yyGetBool(_inst.gmlshow_menu))&&(yyGetBool(_inst.gmlcan_select))){{draw_set_font(YYASSET_REF(0x06000001));draw_set_color(2624267);draw_set_halign(1);draw_set_valign(1);var gml_i=0;for(;yyfless(gml_i,array_length(_inst.gmlmenu));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{if(yyfequal(gml_i,_inst.gmlselected)){{draw_set_color(2301357);};}else {{draw_set_color(2624267);};};draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,
yyfplus(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),70),__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(gml_i)))),_inst.gmlmenu[__yy_gml_array_check_index(gml_i,_inst.gmlmenu)]);}};if(yyGetBool(gml_Script_input_check_released(_inst,_other,0))){_inst.gmlselected=yyfminus(_inst.gmlselected,1);};if(yyGetBool(gml_Script_input_check_released(_inst,_other,1))){_inst.gmlselected=yyfplus(_inst.gmlselected,1);};_inst.gmlselected=clamp(_inst.gmlselected,0,yyfminus(__yy_gml_errCheck(array_length(_inst.gmlmenu)),
1));if((yyGetBool(gml_Script_input_check_released(_inst,_other,8)))||(yyGetBool(gml_Script_input_check_released(_inst,_other,4)))){{var ___sw6___=_inst.gmlselected;var ___swc7___=-1;if(yyCompareVal(___sw6___,0,g_GMLMathEpsilon,false)==0){___swc7___=0;}else if(yyCompareVal(___sw6___,1,g_GMLMathEpsilon,false)==0){___swc7___=1;}else if(yyCompareVal(___sw6___,2,g_GMLMathEpsilon,false)==0){___swc7___=2;}else if(yyCompareVal(___sw6___,3,g_GMLMathEpsilon,false)==0){___swc7___=3;}else if(yyCompareVal(___sw6___,
4,g_GMLMathEpsilon,false)==0){___swc7___=4;}else if(yyCompareVal(___sw6___,5,g_GMLMathEpsilon,false)==0){___swc7___=5;}switch(___swc7___){case 0:{instance_create_layer(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.room_width),2),yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.room_height),2)),40),"Controllers",YYASSET_REF(0x00000013));yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlfollow=YYASSET_REF(0x00000013);instance_destroy(_inst);break;}case 1:{_inst.gmlshow_chart=true;break;}case 2:{
_inst.gmlshow_commands=true;break;}case 3:{var gml_fullscreen=window_get_fullscreen();window_set_fullscreen(!yyGetBool(gml_fullscreen));break;}case 4:{var gml_language=(yyfequal(global.gmllanguage,"it")?"en":"it");(__temp__=yyInst(_inst,_other,YYASSET_REF(0x0000000C)),__yyg_call_method(__temp__.gmlset_language)(__temp__,_other,gml_language));_inst.gmlmenu=__yy_gml_array_create([gml_Script_get_dictionary_value(_inst,_other,"startMenu.start"),gml_Script_get_dictionary_value(_inst,_other,"startMenu.highscoreTable"),
gml_Script_get_dictionary_value(_inst,_other,"startMenu.controls"),gml_Script_get_dictionary_value(_inst,_other,"startMenu.fullscreen"),gml_Script_get_dictionary_value(_inst,_other,"startMenu.language"),gml_Script_get_dictionary_value(_inst,_other,"startMenu.exit")]);break;}case 5:{game_end();break;}};};};};};};}else {{if(yyGetBool(_inst.gmlshow_chart)){{draw_set_font(YYASSET_REF(0x06000001));draw_set_color(2301357);draw_set_halign(1);draw_set_valign(0);draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,
yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),100),string("{0}:",gml_Script_get_dictionary_value(_inst,_other,"startMenu.highscoreTable")));draw_set_color(2624267);if(!yyGetBool(ds_list_empty(_inst.gmlscores))){{var gml_i=0;for(;yyfless(gml_i,ds_list_size(_inst.gmlscores));(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__)){{if(yyfless(gml_i,10)){{var gml_player=ds_list_find_value(_inst.gmlscores,gml_i);
draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfplus(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),75),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_i),20))),yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gml_i),1))),": "),__yy_gml_errCheck(ds_map_find_value(gml_player,"username")))," - "),__yy_gml_errCheck(string(ds_map_find_value(gml_player,"score")))));};};}};};};if((yyGetBool(gml_Script_input_check_released(_inst,
_other,8)))||(yyGetBool(gml_Script_input_check_released(_inst,_other,4)))){_inst.gmlshow_chart=false;};};};if(yyGetBool(_inst.gmlshow_commands)){{draw_set_color(2301357);draw_set_halign(1);draw_set_valign(0);draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),100),gml_Script_get_dictionary_value(_inst,_other,"startMenu.controls"));draw_set_color(2624267);draw_set_valign(1);draw_text_ext(yyInst(_inst,
_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),10),gml_Script_get_dictionary_value(_inst,_other,"startMenu.controlsInstructions"),24,276);if(yyGetBool(gml_Script_input_check_released(_inst,_other,8))){_inst.gmlshow_commands=false;};};};};};draw_set_alpha(1);}function gml_Object_obj_camera_Create_0(_inst,_other){_inst.gmlcam_width=384;_inst.gmlcam_height=216;_inst.gmlfollow=YYASSET_REF(0x00000003);_inst.gmlx_to=_inst.x;
_inst.gmly_to=_inst.y;}function gml_Object_obj_camera_Step_0(_inst,_other){if(yyfnotequal(_inst.gmlfollow,(-4))){{_inst.gmlx_to=yyInst(_inst,_other,_inst.gmlfollow).x;_inst.gmly_to=yyInst(_inst,_other,_inst.gmlfollow).y;};};_inst.x=yyfplus(_inst.x,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_to),__yy_gml_errCheck(_inst.x))),20));_inst.y=yyfplus(_inst.y,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmly_to),__yy_gml_errCheck(_inst.y))),20));_inst.x=clamp(_inst.x,
yyfdivide(__yy_gml_errCheck(_inst.gmlcam_width),2),yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_width),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.gmlcam_width),2))));_inst.y=clamp(_inst.y,yyfdivide(__yy_gml_errCheck(_inst.gmlcam_height),2),yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_height),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.gmlcam_height),2))));camera_set_view_pos(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],yyfminus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlcam_width),0.5))),yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlcam_height),0.5))));}function gml_Object_obj_cookie_Create_0(_inst,_other){_inst.image_speed=0;_inst.gmlyy=_inst.y;}function gml_Object_obj_cookie_Destroy_0(_inst,_other){audio_play_sound(YYASSET_REF(0x02000000),10,false);yyInst(_inst,_other,YYASSET_REF(0x00000010)).gmlcookie=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000010)).gmlcookie,1);
}function gml_Object_obj_cookie_Draw_0(_inst,_other){var gml_i=0;_inst.image_angle=yyfplus(_inst.image_angle,2.5);var gml_freq=100;_inst.gmlyy=yyfplus(yyfminus(__yy_gml_errCheck(_inst.ystart),1),__yy_gml_errCheck(yyftime(2.5,__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(gml_freq)))))));draw_sprite_ext(_inst,YYASSET_REF(0x0100000C),(-1),_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,_inst.image_angle,_inst.image_blend,_inst.image_alpha);for(var __yy__v5=0,
__yy__v6=yyGetInt32(_inst.image_number);__yy__v5<__yy__v6;__yy__v5++){{draw_sprite_ext(_inst,_inst.sprite_index,gml_i,_inst.x,yyfminus(__yy_gml_errCheck(_inst.gmlyy),__yy_gml_errCheck(gml_i)),_inst.image_xscale,_inst.image_yscale,_inst.image_angle,_inst.image_blend,_inst.image_alpha);(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__);}};}function gml_Object_obj_cookie_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmladdressId=(-4);
}function gml_Object_obj_fountain_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltimer=30;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=_inst.gmltimer;}function gml_Object_obj_fountain_Alarm_0(_inst,_other){if(yyfequal(_inst.sprite_index,YYASSET_REF(0x0100000F))){_inst.sprite_index=YYASSET_REF(0x0100000E);}else {_inst.sprite_index=YYASSET_REF(0x0100000F);};_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=_inst.gmltimer;
}function gml_Object_obj_game_manager_Create_0(_inst,_other){if(!yyGetBool(instance_exists(YYASSET_REF(0x00000004)))){{instance_create_layer(_inst.x,_inst.y,"Controllers",YYASSET_REF(0x00000004));};};global.gmldelivered_gift=0;global.gmltotal_gifts=instance_number(YYASSET_REF(0x00000008));_inst.gmlmseconds=0;_inst.gmlseconds=0;_inst.gmlminutes=2;_inst.gmlopacity=0;_inst.gmldraw_mseconds="";_inst.gmldraw_seconds="";_inst.gmldraw_minutes="0";_inst.gmlwin=false;_inst.gmllost=false;audio_play_sound(YYASSET_REF(0x02000013),
1,false);}function gml_Object_obj_game_manager_Step_0(_inst,_other){if((yyGetBool(yyfgreater(global.gmldelivered_gift,0)))&&(yyGetBool(yyfequal(global.gmldelivered_gift,global.gmltotal_gifts)))){{_inst.gmlwin=true;if(!yyGetBool(instance_exists(YYASSET_REF(0x00000016)))){{instance_create_layer(_inst.x,_inst.y,"Controllers",YYASSET_REF(0x00000016));};};};};if(!yyGetBool(_inst.gmlwin)){{if((yyGetBool(yyfnotequal(_inst.gmlminutes,0)))||(yyGetBool(yyfnotequal(_inst.gmlseconds,0)))||(yyGetBool(yyfnotequal(_inst.gmlmseconds,
0)))){{_inst.gmlmseconds=yyfminus(_inst.gmlmseconds,1);};};if(yyfless(_inst.gmlmseconds,0)){{_inst.gmlseconds=yyfminus(_inst.gmlseconds,1);_inst.gmlmseconds=59;if((yyGetBool(yyfless(_inst.gmlseconds,10)))&&(yyGetBool(yyfequal(_inst.gmlminutes,0)))){{audio_play_sound(YYASSET_REF(0x02000014),10,false);};};};};if(yyfless(_inst.gmlseconds,0)){{_inst.gmlminutes=yyfminus(_inst.gmlminutes,1);_inst.gmlseconds=59;};};};};if((yyGetBool(yyflessequal(_inst.gmlminutes,0)))&&(yyGetBool(yyflessequal(_inst.gmlseconds,
0)))&&(yyGetBool(yyflessequal(_inst.gmlmseconds,0)))){{_inst.gmllost=true;};};}function gml_Object_obj_game_manager_Draw_64(_inst,_other){draw_set_color(2624267);if(yyGetBool(keyboard_check(82))){{if(!yyGetBool(_inst.gmlwin)){game_restart();};};};if(yyGetBool(gml_Script_input_check(_inst,_other,9))){{game_end();};};_inst.gmldraw_mseconds="";if(yyfless(_inst.gmlmseconds,10)){_inst.gmldraw_mseconds=yyfplus("0",__yy_gml_errCheck(string(_inst.gmlmseconds)));}else {_inst.gmldraw_mseconds=string(_inst.gmlmseconds);
};_inst.gmldraw_seconds="";if(yyfless(_inst.gmlseconds,10)){_inst.gmldraw_seconds=yyfplus("0",__yy_gml_errCheck(string(_inst.gmlseconds)));}else {_inst.gmldraw_seconds=string(_inst.gmlseconds);};_inst.gmldraw_minutes=yyfplus("0",__yy_gml_errCheck(string(_inst.gmlminutes)));draw_sprite(_inst,YYASSET_REF(0x01000018),1,10,10);draw_set_halign(1);draw_set_valign(1);if(yyGetBool(instance_exists(YYASSET_REF(0x00000010)))){{draw_set_font(YYASSET_REF(0x06000000));draw_sprite(_inst,YYASSET_REF(0x01000010),
(-1),94,44);draw_text(104,45,string(yyInst(_inst,_other,YYASSET_REF(0x00000010)).gmlgifts));draw_sprite(_inst,YYASSET_REF(0x0100000B),(-1),94,58);draw_text(104,59,string(yyInst(_inst,_other,YYASSET_REF(0x00000010)).gmlcookie));draw_sprite(_inst,YYASSET_REF(0x01000009),(-1),138,44);draw_text(164,45,yyfplus(yyfplus(__yy_gml_errCheck(string(global.gmldelivered_gift))," / "),__yy_gml_errCheck(string(global.gmltotal_gifts))));draw_set_halign(0);draw_text(134,59,yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.gmldraw_minutes),
":"),__yy_gml_errCheck(_inst.gmldraw_seconds)),":"),__yy_gml_errCheck(_inst.gmldraw_mseconds)));};};if(yyGetBool(_inst.gmllost)){{_inst.gmlopacity=yyfplus(_inst.gmlopacity,yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlopacity),0.1)),20));_inst.gmlopacity=clamp(_inst.gmlopacity,0,1);draw_set_alpha(_inst.gmlopacity);draw_sprite(_inst,YYASSET_REF(0x01000019),(-1),yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height);draw_set_font(YYASSET_REF(0x06000001));
draw_set_color(2301357);draw_set_halign(1);draw_set_valign(0);draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),80),gml_Script_get_dictionary_value(_inst,_other,"endGame.lost"));draw_set_color(2624267);draw_text_ext(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height,gml_Script_get_dictionary_value(_inst,_other,"endGame.restart"),
16,276);draw_set_alpha(1);};};}function gml_Object_obj_gift_Create_0(_inst,_other){_inst.image_speed=0;_inst.gmlyy=_inst.y;}function gml_Object_obj_gift_Destroy_0(_inst,_other){if(yyfnotequal(_inst.gmladdress_id,(-4))){{var gml_item=instance_create_layer(_inst.x,_inst.y,"Controllers",YYASSET_REF(0x00000002));yyInst(_inst,_other,_inst.gmladdress_id).gmlfollow=true;{var __yy__v7=GetWithArray(gml_item);for(var __yy__v8 in __yy__v7){if(!__yy__v7.hasOwnProperty(__yy__v8))continue;var __yy__v9=__yy__v7[__yy__v8];
{__yy__v9.gmlx_to=yyInst(_inst,_other,_inst.gmladdress_id).x;__yy__v9.gmly_to=yyInst(_inst,_other,_inst.gmladdress_id).y;}}};};};}function gml_Object_obj_gift_Draw_0(_inst,_other){var gml_i=0;_inst.image_angle=yyfplus(_inst.image_angle,2.5);var gml_amp=100;var gml_freq=100;_inst.gmlyy=yyfplus(__yy_gml_errCheck(_inst.ystart),__yy_gml_errCheck(yyftime(2.5,__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(gml_freq)))))));draw_sprite_ext(_inst,YYASSET_REF(0x01000011),
(-1),_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,_inst.image_angle,_inst.image_blend,_inst.image_alpha);for(var __yy__v10=0,__yy__v11=yyGetInt32(_inst.image_number);__yy__v10<__yy__v11;__yy__v10++){{draw_sprite_ext(_inst,_inst.sprite_index,gml_i,_inst.x,yyfminus(__yy_gml_errCheck(_inst.gmlyy),__yy_gml_errCheck(gml_i)),_inst.image_xscale,_inst.image_yscale,_inst.image_angle,_inst.image_blend,_inst.image_alpha);(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),
g_yyPrePostObject__);}};}function gml_Object_obj_gift_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmladdress_id=(-4);}function gml_Object_obj_house_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlblend_start=16777215;_inst.gmlblend_selected=16711935;_inst.gmlblend=16777215;_inst.gmlfollow=false;_inst.gmlarrow_create=false;_inst.sprite_index=choose(YYASSET_REF(0x01000017),YYASSET_REF(0x01000014));}function gml_Object_obj_house_Step_0(_inst,_other){event_inherited(_inst,
_other);if(yyfequal(_inst.gmlfollow,false)){_inst.gmlblend=_inst.gmlblend_start;}else {_inst.gmlblend=_inst.gmlblend_selected;};if((yyGetBool(_inst.gmlfollow))&&(yyGetBool(!yyGetBool(_inst.gmlarrow_create)))){{instance_create_layer(_inst.x,_inst.y,"Instances",YYASSET_REF(0x00000001));_inst.gmlarrow_create=true;};};}function gml_Object_obj_house_Draw_0(_inst,_other){var gml_i=0;for(var __yy__v12=0,__yy__v13=yyGetInt32(_inst.image_number);__yy__v12<__yy__v13;__yy__v12++){{draw_sprite_ext(_inst,_inst.sprite_index,
gml_i,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gml_i)),_inst.image_xscale,_inst.image_yscale,_inst.image_angle,_inst.gmlblend,_inst.image_alpha);(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__);}};}function gml_Object_obj_i18n_example_Draw_0(_inst,_other){var gml_text=gml_Script_get_dictionary_value(_inst,_other,"startMenu.start");var gml_text_coins=gml_Script_get_dictionary_value(_inst,_other,"HUD.coins");draw_text(10,
10,gml_text);draw_text(10,40,string(gml_text_coins,"15"));}function gml_Object_obj_i18n_Create_0(_inst,_other){(_inst.gmlset_language=__yy_method(_inst,gml_Script_set_language_gml_Object_obj_i18n_Create_0));gml_Script_set_language_gml_Object_obj_i18n_Create_0(_inst,_other,os_get_language());}function gml_Script_set_language_gml_Object_obj_i18n_Create_0(_inst,_other,argument0){{global.gmllanguage=argument0;global.gmllanguage_dictionary=gml_Script_load_dictionary(_inst,_other,argument0);}}function gml_Object_obj_init_Create_0(_inst,
_other){if(!yyGetBool(layer_exists("Controllers"))){layer_create(0,"Controllers");};instance_create_layer(_inst.x,_inst.y,"Controllers",YYASSET_REF(0x0000000E));instance_create_layer(_inst.x,_inst.y,"Controllers",YYASSET_REF(0x0000000C));instance_create_layer(288,352,"Controllers",YYASSET_REF(0x00000003));instance_create_layer(_inst.x,_inst.y,"Controllers",YYASSET_REF(0x00000004));}function gml_Object_obj_input_manager_Create_0(_inst,_other){_inst.gmlbindings=__yy_gml_array_create([__yy_gml_object_create(_inst,
(global.gml___struct___3=__yy_method(_inst,gml_Script____struct___3_gml_Object_obj_input_manager_Create_0)),0),__yy_gml_object_create(_inst,(global.gml___struct___4=__yy_method(_inst,gml_Script____struct___4_gml_Object_obj_input_manager_Create_0)),1),__yy_gml_object_create(_inst,(global.gml___struct___5=__yy_method(_inst,gml_Script____struct___5_gml_Object_obj_input_manager_Create_0)),2),__yy_gml_object_create(_inst,(global.gml___struct___6=__yy_method(_inst,gml_Script____struct___6_gml_Object_obj_input_manager_Create_0)),
3),__yy_gml_object_create(_inst,(global.gml___struct___7=__yy_method(_inst,gml_Script____struct___7_gml_Object_obj_input_manager_Create_0)),4,90),__yy_gml_object_create(_inst,(global.gml___struct___8=__yy_method(_inst,gml_Script____struct___8_gml_Object_obj_input_manager_Create_0)),8),__yy_gml_object_create(_inst,(global.gml___struct___9=__yy_method(_inst,gml_Script____struct___9_gml_Object_obj_input_manager_Create_0)),9)]);_inst.gmlaxes=__yy_gml_array_create([__yy_gml_object_create(_inst,(global.gml___struct___10=__yy_method(_inst,
gml_Script____struct___10_gml_Object_obj_input_manager_Create_0)),6,65,68)]);gml_Script_input_setup(_inst,_other,_inst.gmlbindings,_inst.gmlaxes);}function gml_Script____struct___3_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___3@gml_Object_obj_input_manager_Create_0";}if(gml_Script____struct___3_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___3_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___3@gml_Object_obj_input_manager_Create_0";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___3_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlkeyboard=__yy_gml_array_create([38]);_inst.gmlgamepad=__yy_gml_array_create([32781]);_inst.gmlgamepad_id=0;}}}}function gml_Script____struct___4_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___4@gml_Object_obj_input_manager_Create_0";
}if(gml_Script____struct___4_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___4_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___4@gml_Object_obj_input_manager_Create_0";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___4_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlkeyboard=__yy_gml_array_create([40]);
_inst.gmlgamepad=__yy_gml_array_create([32782]);_inst.gmlgamepad_id=0;}}}}function gml_Script____struct___5_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___5@gml_Object_obj_input_manager_Create_0";}if(gml_Script____struct___5_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___5_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___5@gml_Object_obj_input_manager_Create_0";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___5_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlkeyboard=__yy_gml_array_create([37]);_inst.gmlgamepad=__yy_gml_array_create([32783]);_inst.gmlgamepad_id=0;}}}}function gml_Script____struct___6_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___6@gml_Object_obj_input_manager_Create_0";
}if(gml_Script____struct___6_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___6_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___6@gml_Object_obj_input_manager_Create_0";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___6_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlkeyboard=__yy_gml_array_create([39]);
_inst.gmlgamepad=__yy_gml_array_create([32784]);_inst.gmlgamepad_id=0;}}}}function gml_Script____struct___7_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___7@gml_Object_obj_input_manager_Create_0";}if(gml_Script____struct___7_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___7_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___7@gml_Object_obj_input_manager_Create_0";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___7_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlkeyboard=__yy_gml_array_create([$$args[__yy_gml_array_check_index(2+(1),$$args)]]);_inst.gmlgamepad=__yy_gml_array_create([32769]);_inst.gmlgamepad_id=0;}}}}function gml_Script____struct___8_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){
_inst.__type="gml_Script____struct___8@gml_Object_obj_input_manager_Create_0";}if(gml_Script____struct___8_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___8_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___8@gml_Object_obj_input_manager_Create_0";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___8_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),
$$args)];_inst.gmlkeyboard=__yy_gml_array_create([13]);_inst.gmlgamepad=__yy_gml_array_create([32769]);_inst.gmlgamepad_id=0;}}}}function gml_Script____struct___9_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___9@gml_Object_obj_input_manager_Create_0";}if(gml_Script____struct___9_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___9_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___9@gml_Object_obj_input_manager_Create_0";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___9_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlkeyboard=__yy_gml_array_create([27]);}}}}function gml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___11@___struct___10@gml_Object_obj_input_manager_Create_0";
}if(gml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___11@___struct___10@gml_Object_obj_input_manager_Create_0";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlnegative=__yy_gml_array_create([37,
$$args[__yy_gml_array_check_index(2+(0),$$args)]]);_inst.gmlpositive=__yy_gml_array_create([39,$$args[__yy_gml_array_check_index(2+(1),$$args)]]);}}}}function gml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___12@___struct___10@gml_Object_obj_input_manager_Create_0";}if(gml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){gml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___12@___struct___10@gml_Object_obj_input_manager_Create_0";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0.prototype);{_inst.gmlnegative=__yy_gml_array_create([32783]);_inst.gmlpositive=__yy_gml_array_create([32784]);}}}function gml_Script____struct___10_gml_Object_obj_input_manager_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___10@gml_Object_obj_input_manager_Create_0";}if(gml_Script____struct___10_gml_Object_obj_input_manager_Create_0.prototype.__type===undefined){
gml_Script____struct___10_gml_Object_obj_input_manager_Create_0.prototype.__type="gml_Script____struct___10@gml_Object_obj_input_manager_Create_0";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___10_gml_Object_obj_input_manager_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlkeyboard=__yy_gml_object_create(_inst,(global.gml___struct___11=__yy_method(_inst,gml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0)),
$$args[__yy_gml_array_check_index(2+(1),$$args)],$$args[__yy_gml_array_check_index(2+(2),$$args)]);_inst.gmlgamepad=__yy_gml_object_create(_inst,(global.gml___struct___12=__yy_method(_inst,gml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0)));_inst.gmlgamepad_axis=32785;}}}}function gml_Object_obj_input_manager_Step_1(_inst,_other){gml_Script_input_update(_inst,_other);}function gml_Object_obj_menu_Draw_64(_inst,_other){draw_sprite_stretched(_inst,YYASSET_REF(0x01000019),
(-1),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width),2),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),2),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width),2),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),2));}function gml_Object_obj_player_Create_0(_inst,_other){_inst.gmlhsp=0;_inst.gmlvsp=0;_inst.gmlmove_spd=2;_inst.gmlspd=0;_inst.gmlmax_spd_default=2;
_inst.gmlmax_spd=_inst.gmlmax_spd_default;_inst.gmlmax_spd_cookie=3.2;_inst.gmlgifts=0;_inst.gmloiled=false;_inst.gmloiled_time=200;_inst.gmloiled_time_acc=0;_inst.gmlcookie=0;_inst.gmlcookie_eating=false;_inst.gmlcookie_time_default=300;_inst.gmlcookie_time=_inst.gmlcookie_time_default;}function gml_Object_obj_player_Step_0(_inst,_other){_inst.depth=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y));if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmlwin))||(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmllost))){
return;};if(yyGetBool(_inst.gmlcookie_eating)){{_inst.gmlmax_spd=_inst.gmlmax_spd_cookie;(g_yyPrePostObject__=_inst.gmlcookie_time,_inst.gmlcookie_time=(g_yyPrePostObject__ instanceof Long?_inst.gmlcookie_time.subtract(1):--_inst.gmlcookie_time),g_yyPrePostObject__);{var __yy__v14=GetWithArray(instance_create_depth(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.depth),10),YYASSET_REF(0x00000015)));for(var __yy__v15 in __yy__v14){if(!__yy__v14.hasOwnProperty(__yy__v15))continue;var __yy__v16=__yy__v14[__yy__v15];
{__yy__v16.sprite_index=_inst.sprite_index;__yy__v16.image_blend=2301357;__yy__v16.image_alpha=0.4;}}};if(yyflessequal(_inst.gmlcookie_time,0)){{_inst.gmlcookie_eating=false;_inst.gmlcookie_time=_inst.gmlcookie_time_default;};};};}else {{_inst.gmlmax_spd=_inst.gmlmax_spd_default;};};if(yyGetBool(_inst.gmloiled)){(g_yyPrePostObject__=_inst.gmloiled_time_acc,_inst.gmloiled_time_acc=(g_yyPrePostObject__ instanceof Long?_inst.gmloiled_time_acc.add(1):++_inst.gmloiled_time_acc),g_yyPrePostObject__);};if(yyfgreaterequal(_inst.gmloiled_time_acc,
_inst.gmloiled_time)){{_inst.gmloiled=false;_inst.gmloiled_time_acc=0;};};gml_Script_set_movement(_inst,_other);_inst.x=clamp(_inst.x,0,g_pBuiltIn.room_width);_inst.y=clamp(_inst.y,0,g_pBuiltIn.room_height);}function gml_Object_obj_player_Collision_obj_gift(_inst,_other){if(!yyGetBool(audio_is_playing(YYASSET_REF(0x02000012)))){audio_play_sound(YYASSET_REF(0x02000012),10,false);};if(yyfnotequal(_other.gmladdress_id,"")){{var gml_addr=_other.gmladdress_id;if(yyGetBool(instance_exists(gml_addr))){{}
;};};};instance_destroy(_inst,_other);_inst.gmlgifts=yyfplus(_inst.gmlgifts,1);}function gml_Object_obj_player_Collision_obj_cookie(_inst,_other){instance_destroy(_inst,_other);}function gml_Object_obj_player_Collision_oOil(_inst,_other){_inst.gmloiled=true;}function gml_Object_obj_player_Other_76(_inst,_other){if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmlwin)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmllost)))){{if(yyfequal(ds_map_find_value(g_pBuiltIn.get_event_data(),
"message"),"Player Step")){{if(yyGetBool(instance_place(_inst,_inst.x,_inst.y,YYASSET_REF(0x00000009)))){{var gml_snd=choose(YYASSET_REF(0x02000003),YYASSET_REF(0x02000004),YYASSET_REF(0x02000005),YYASSET_REF(0x02000006),YYASSET_REF(0x02000007));audio_play_sound(gml_snd,1,false);};}else {if(yyGetBool(instance_place(_inst,_inst.x,_inst.y,YYASSET_REF(0x00000014)))){{var gml_snd=choose(YYASSET_REF(0x0200000D),YYASSET_REF(0x0200000E),YYASSET_REF(0x0200000F),YYASSET_REF(0x02000010),YYASSET_REF(0x02000011));
audio_play_sound(gml_snd,1,false);};}else {{var gml_snd=choose(YYASSET_REF(0x02000008),YYASSET_REF(0x02000009),YYASSET_REF(0x0200000A),YYASSET_REF(0x0200000B),YYASSET_REF(0x0200000C));audio_play_sound(gml_snd,1,false);};};};};};};};}function gml_Object_obj_player_Draw_0(_inst,_other){draw_sprite(_inst,YYASSET_REF(0x0100001B),(-1),_inst.x,_inst.y);if(yyGetBool(_inst.gmloiled)){_inst.image_blend=65535;}else {_inst.image_blend=16777215;};draw_self(_inst);}function gml_Object_obj_santa_claus_Create_0(_inst,
_other){_inst.image_speed=0;}function gml_Object_obj_santa_claus_Step_0(_inst,_other){_inst.image_angle=yyfplus(_inst.image_angle,10);}function gml_Object_obj_solid_parent_Create_0(_inst,_other){_inst.image_speed=0;}function gml_Object_obj_solid_parent_Step_0(_inst,_other){_inst.depth=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y));}function gml_Object_obj_solid_parent_Draw_0(_inst,_other){var gml_i=0;for(var __yy__v17=0,__yy__v18=yyGetInt32(_inst.image_number);__yy__v17<__yy__v18;__yy__v17++){{draw_sprite_ext(_inst,
_inst.sprite_index,gml_i,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gml_i)),_inst.image_xscale,_inst.image_yscale,_inst.image_angle,_inst.image_blend,_inst.image_alpha);(g_yyPrePostObject__=gml_i,gml_i=(g_yyPrePostObject__ instanceof Long?gml_i.add(1):++gml_i),g_yyPrePostObject__);}};}function gml_Object_obj_story_Create_0(_inst,_other){_inst.gmlstory=gml_Script_get_dictionary_value(_inst,_other,"startMenu.story");}function gml_Object_obj_story_Draw_64(_inst,_other){draw_sprite(_inst,
YYASSET_REF(0x01000019),(-1),yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height);draw_set_font(YYASSET_REF(0x06000001));draw_set_color(2624267);draw_set_halign(1);draw_set_valign(1);draw_text_ext(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height,_inst.gmlstory,20,276);}function gml_Object_obj_story_KeyRelease_90(_inst,_other){instance_create_layer(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.room_width),
2),yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.room_height),2)),40),"Instances",YYASSET_REF(0x00000010));instance_create_layer(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.room_width),2),yyfdivide(__yy_gml_errCheck(g_pBuiltIn.room_height),2),"Controllers",YYASSET_REF(0x00000007));{var __yy__v19=GetWithArray(YYASSET_REF(0x00000004));for(var __yy__v20 in __yy__v19){if(!__yy__v19.hasOwnProperty(__yy__v20))continue;var __yy__v21=__yy__v19[__yy__v20];{__yy__v21.gmlfollow=YYASSET_REF(0x00000010);
}}};instance_destroy(_inst);}function gml_Object_obj_trail_Step_0(_inst,_other){_inst.image_alpha=yyfminus(_inst.image_alpha,0.1);if(yyflessequal(_inst.image_alpha,0)){instance_destroy(_inst);};}function gml_Object_obj_win_Create_0(_inst,_other){_inst.gmlopacity=0;_inst.gmltxt="";g_pBuiltIn.keyboard_string="";_inst.gmlrequest_id=0;_inst.gmlloading=false;}function gml_Object_obj_win_Step_0(_inst,_other){if((yyGetBool(gml_Script_input_check_pressed(_inst,_other,8)))&&(yyGetBool(yyfequal(_inst.gmlloading,
false)))){{_inst.gmlloading=true;var gml_points=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmlmseconds),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmlseconds),100))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmlminutes),1000)));var gml_player=_inst.gmltxt;var gml_data=yyfplus(yyfplus(yyfplus("game=32&score=",__yy_gml_errCheck(string(gml_points))),"&player="),__yy_gml_errCheck(base64_encode(gml_player)));
var gml_secret="b6c938291e7d7de9ceaea3bab7cfd0ba";var gml_hash=yyfplus("&hash=",__yy_gml_errCheck(sha1_string_utf8(yyfplus(__yy_gml_errCheck(gml_data),__yy_gml_errCheck(gml_secret)))));var gml_map=ds_map_create();ds_map_add(gml_map,"Content-Type","application/x-www-form-urlencoded");_inst.gmlrequest_id=http_request("https://gmiscores.altervista.org/api/v1/add.php","POST",gml_map,yyfplus(__yy_gml_errCheck(gml_data),__yy_gml_errCheck(gml_hash)));};};}function gml_Object_obj_win_Other_62(_inst,_other){
var gml_r_str="null";if(yyfequal(ds_map_find_value(g_pBuiltIn.get_async_load(),"id"),_inst.gmlrequest_id)){{if(yyfequal(ds_map_find_value(g_pBuiltIn.get_async_load(),"status"),0)){{gml_r_str=ds_map_find_value(g_pBuiltIn.get_async_load(),"result");game_restart();};};};};}function gml_Object_obj_win_Draw_64(_inst,_other){_inst.gmlopacity=yyfplus(_inst.gmlopacity,yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlopacity),0.1)),20));_inst.gmlopacity=clamp(_inst.gmlopacity,0,1);draw_sprite(_inst,
YYASSET_REF(0x01000019),(-1),yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height);draw_set_font(YYASSET_REF(0x06000001));draw_set_color(2301357);draw_set_halign(1);draw_set_valign(0);draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),80),gml_Script_get_dictionary_value(_inst,_other,"endGame.win"));draw_set_color(2624267);draw_text(yyInst(_inst,
_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),55),gml_Script_get_dictionary_value(_inst,_other,"endGame.time"));draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),30),yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmldraw_minutes)),":"),__yy_gml_errCheck(string(yyInst(_inst,
_other,YYASSET_REF(0x00000007)).gmldraw_seconds))),":"),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000007)).gmldraw_mseconds))));draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_height),5),gml_Script_get_dictionary_value(_inst,_other,"endGame.insertName"));draw_set_color(2301357);draw_text(yyInst(_inst,_other,YYASSET_REF(0x00000004)).gmlcam_width,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,YYASSET_REF(0x00000004)).gmlcam_height),20),_inst.gmltxt);draw_set_alpha(1);}function gml_Object_obj_win_KeyRelease_1(_inst,_other){if(!yyGetBool(_inst.gmlloading)){{_inst.gmltxt=g_pBuiltIn.keyboard_string;};};}function gml_Object_oCar_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.sprite_index=choose(YYASSET_REF(0x01000008),YYASSET_REF(0x01000006));}function gml_Object_oCar_Draw_0(_inst,_other){draw_sprite_ext(_inst,YYASSET_REF(0x01000007),(-1),_inst.x,_inst.y,_inst.image_xscale,
_inst.image_yscale,_inst.image_angle,_inst.image_blend,_inst.image_alpha);event_inherited(_inst,_other);}function compile_if_weak_ref(){}function compile_if_used(){}function gmlInitGlobal(){global.gml___struct___0=0;global.gml___struct___1=0;global.gml___struct___2=0;global.gml___struct___3=0;global.gml___struct___4=0;global.gml___struct___5=0;global.gml___struct___6=0;global.gml___struct___7=0;global.gml___struct___8=0;global.gml___struct___9=0;global.gml___struct___10=0;global.gml___struct___11=0;
global.gml___struct___12=0;gml_GlobalScript_input_manager(global,global);gml_GlobalScript_Macro(global,global);gml_GlobalScript_Movement(global,global);gml_GlobalScript_scr_i18n(global,global);global.__yyIsGMLObject=true;compile_if_weak_ref(move_random,move_random.__yy_onlySelfNoOther=true);compile_if_weak_ref(place_free,place_free.__yy_onlySelfNoOther=true);compile_if_weak_ref(place_empty,place_empty.__yy_onlySelfNoOther=true);compile_if_weak_ref(place_meeting,place_meeting.__yy_onlySelfNoOther=true);
compile_if_weak_ref(place_snapped,place_snapped.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_snap,move_snap.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_towards_point,move_towards_point.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_contact_solid,move_contact_solid.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_contact_all,move_contact_all.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_outside_solid,move_outside_solid.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_outside_all,
move_outside_all.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_and_collide,move_and_collide.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_bounce_solid,move_bounce_solid.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_bounce_all,move_bounce_all.__yy_onlySelfNoOther=true);compile_if_weak_ref(move_wrap,move_wrap.__yy_onlySelfNoOther=true);compile_if_weak_ref(motion_set,motion_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(motion_add,motion_add.__yy_onlySelfNoOther=true);compile_if_weak_ref(distance_to_point,
distance_to_point.__yy_onlySelfNoOther=true);compile_if_weak_ref(distance_to_object,distance_to_object.__yy_onlySelfNoOther=true);compile_if_weak_ref(path_start,path_start.__yy_onlySelfNoOther=true);compile_if_weak_ref(path_end,path_end.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_linear_step,mp_linear_step.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_linear_path,mp_linear_path.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_linear_step_object,mp_linear_step_object.__yy_onlySelfNoOther=true);
compile_if_weak_ref(mp_linear_path_object,mp_linear_path_object.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_potential_settings,mp_potential_settings.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_potential_step,mp_potential_step.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_potential_path,mp_potential_path.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_potential_step_object,mp_potential_step_object.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_potential_path_object,mp_potential_path_object.__yy_onlySelfNoOther=true);
compile_if_weak_ref(mp_grid_add_instances,mp_grid_add_instances.__yy_onlySelfNoOther=true);compile_if_weak_ref(mp_grid_path,mp_grid_path.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_point,collision_point.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_point_list,collision_point_list.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_rectangle,collision_rectangle.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_rectangle_list,collision_rectangle_list.__yy_onlySelfNoOther=true);
compile_if_weak_ref(collision_circle,collision_circle.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_circle_list,collision_circle_list.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_ellipse,collision_ellipse.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_ellipse_list,collision_ellipse_list.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_line,collision_line.__yy_onlySelfNoOther=true);compile_if_weak_ref(collision_line_list,collision_line_list.__yy_onlySelfNoOther=true);
compile_if_weak_ref(instance_nearest,instance_nearest.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_furthest,instance_furthest.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_place,instance_place.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_place_list,instance_place_list.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_copy,instance_copy.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_change,instance_change.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_destroy,
instance_destroy.__yy_onlySelfNoOther=true);compile_if_weak_ref(position_empty,position_empty.__yy_onlySelfNoOther=true);compile_if_weak_ref(position_meeting,position_meeting.__yy_onlySelfNoOther=true);compile_if_weak_ref(position_destroy,position_destroy.__yy_onlySelfNoOther=true);compile_if_weak_ref(position_change,position_change.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_id_get,instance_id_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_deactivate_all,instance_deactivate_all.__yy_onlySelfNoOther=true);
compile_if_weak_ref(instance_deactivate_object,instance_deactivate_object.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_deactivate_region,instance_deactivate_region.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_deactivate_layer,instance_deactivate_layer.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_activate_all,instance_activate_all.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_activate_object,instance_activate_object.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_activate_region,
instance_activate_region.__yy_onlySelfNoOther=true);compile_if_weak_ref(instance_activate_layer,instance_activate_layer.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_self,draw_self.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite,draw_sprite.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite_pos,draw_sprite_pos.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite_ext,draw_sprite_ext.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite_stretched,draw_sprite_stretched.__yy_onlySelfNoOther=true);
compile_if_weak_ref(draw_sprite_stretched_ext,draw_sprite_stretched_ext.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite_part,draw_sprite_part.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite_part_ext,draw_sprite_part_ext.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite_general,draw_sprite_general.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite_tiled,draw_sprite_tiled.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_sprite_tiled_ext,draw_sprite_tiled_ext.__yy_onlySelfNoOther=true);
compile_if_weak_ref(event_inherited,event_inherited.__yy_bothSelfAndOther=true);compile_if_weak_ref(event_perform,event_perform.__yy_bothSelfAndOther=true);compile_if_weak_ref(event_perform_async,event_perform_async.__yy_bothSelfAndOther=true);compile_if_weak_ref(event_user,event_user.__yy_bothSelfAndOther=true);compile_if_weak_ref(event_perform_object,event_perform_object.__yy_bothSelfAndOther=true);compile_if_weak_ref(alarm_get,alarm_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(alarm_set,
alarm_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_fixture_bind,physics_fixture_bind.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_fixture_bind_ext,physics_fixture_bind_ext.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_apply_force,physics_apply_force.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_apply_impulse,physics_apply_impulse.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_apply_angular_impulse,physics_apply_angular_impulse.__yy_onlySelfNoOther=true);
compile_if_weak_ref(physics_apply_local_force,physics_apply_local_force.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_apply_local_impulse,physics_apply_local_impulse.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_apply_torque,physics_apply_torque.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_mass_properties,physics_mass_properties.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_draw_debug,physics_draw_debug.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_test_overlap,
physics_test_overlap.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_get_friction,physics_get_friction.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_get_density,physics_get_density.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_get_restitution,physics_get_restitution.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_set_friction,physics_set_friction.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_set_density,physics_set_density.__yy_onlySelfNoOther=true);compile_if_weak_ref(physics_set_restitution,
physics_set_restitution.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_set,skeleton_animation_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_get,skeleton_animation_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_mix,skeleton_animation_mix.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_set_ext,skeleton_animation_set_ext.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_get_ext,skeleton_animation_get_ext.__yy_onlySelfNoOther=true);
compile_if_weak_ref(skeleton_animation_get_duration,skeleton_animation_get_duration.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_get_frames,skeleton_animation_get_frames.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_clear,skeleton_animation_clear.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_skin_set,skeleton_skin_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_skin_get,skeleton_skin_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_skin_create,
skeleton_skin_create.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_set,skeleton_attachment_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_get,skeleton_attachment_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_create,skeleton_attachment_create.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_create_colour,skeleton_attachment_create_colour.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_create_color,
skeleton_attachment_create_color.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_replace,skeleton_attachment_replace.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_replace_colour,skeleton_attachment_replace_colour.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_replace_color,skeleton_attachment_replace_color.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_destroy,skeleton_attachment_destroy.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_attachment_exists,
skeleton_attachment_exists.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_collision_draw_set,skeleton_collision_draw_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_bone_data_get,skeleton_bone_data_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_bone_data_set,skeleton_bone_data_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_bone_state_get,skeleton_bone_state_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_bone_state_set,skeleton_bone_state_set.__yy_onlySelfNoOther=true);
compile_if_weak_ref(skeleton_slot_data_instance,skeleton_slot_data_instance.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_slot_colour_set,skeleton_slot_colour_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_slot_color_set,skeleton_slot_color_set.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_slot_colour_get,skeleton_slot_colour_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_slot_color_get,skeleton_slot_color_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_slot_alpha_get,
skeleton_slot_alpha_get.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_get_frame,skeleton_animation_get_frame.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_set_frame,skeleton_animation_set_frame.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_is_looping,skeleton_animation_is_looping.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_is_finished,skeleton_animation_is_finished.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_get_position,
skeleton_animation_get_position.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_set_position,skeleton_animation_set_position.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_animation_get_event_frames,skeleton_animation_get_event_frames.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_get_minmax,skeleton_get_minmax.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_get_num_bounds,skeleton_get_num_bounds.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_get_bounds,
skeleton_get_bounds.__yy_onlySelfNoOther=true);compile_if_weak_ref(skeleton_find_slot,skeleton_find_slot.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_tilemap,draw_tilemap.__yy_onlySelfNoOther=true);compile_if_weak_ref(draw_tile,draw_tile.__yy_onlySelfNoOther=true);}function gmlGameEndScripts(){}Tags=[];IDToTagList=[];JSON_game.ScriptNames=["gml_GlobalScript_input_manager","gml_Script____struct___0@input_setup@input_manager","gml_Script____struct___1@input_setup@input_manager","gml_Script_input_setup",
"gml_Script_input_get_current_type","gml_Script_input_update","gml_Script_input_check_pressed","gml_Script_input_check","gml_Script_input_check_released","gml_Script_input_axis","gml_GlobalScript_Macro","gml_GlobalScript_Movement","gml_Script_set_movement","gml_GlobalScript_scr_i18n","gml_Script____struct___2@load_dictionary@scr_i18n","gml_Script_load_dictionary","gml_Script_get_dictionary_value","gml_Script_set_language@gml_Object_obj_i18n_Create_0","gml_Script____struct___3@gml_Object_obj_input_manager_Create_0",
"gml_Script____struct___4@gml_Object_obj_input_manager_Create_0","gml_Script____struct___5@gml_Object_obj_input_manager_Create_0","gml_Script____struct___6@gml_Object_obj_input_manager_Create_0","gml_Script____struct___7@gml_Object_obj_input_manager_Create_0","gml_Script____struct___8@gml_Object_obj_input_manager_Create_0","gml_Script____struct___9@gml_Object_obj_input_manager_Create_0","gml_Script____struct___11@___struct___10@gml_Object_obj_input_manager_Create_0","gml_Script____struct___12@___struct___10@gml_Object_obj_input_manager_Create_0",
"gml_Script____struct___10@gml_Object_obj_input_manager_Create_0"];JSON_game.Scripts=[gml_GlobalScript_input_manager,gml_Script____struct___0_input_setup_input_manager,gml_Script____struct___1_input_setup_input_manager,gml_Script_input_setup,gml_Script_input_get_current_type,gml_Script_input_update,gml_Script_input_check_pressed,gml_Script_input_check,gml_Script_input_check_released,gml_Script_input_axis,gml_GlobalScript_Macro,gml_GlobalScript_Movement,gml_Script_set_movement,gml_GlobalScript_scr_i18n,
gml_Script____struct___2_load_dictionary_scr_i18n,gml_Script_load_dictionary,gml_Script_get_dictionary_value,gml_Script_set_language_gml_Object_obj_i18n_Create_0,gml_Script____struct___3_gml_Object_obj_input_manager_Create_0,gml_Script____struct___4_gml_Object_obj_input_manager_Create_0,gml_Script____struct___5_gml_Object_obj_input_manager_Create_0,gml_Script____struct___6_gml_Object_obj_input_manager_Create_0,gml_Script____struct___7_gml_Object_obj_input_manager_Create_0,gml_Script____struct___8_gml_Object_obj_input_manager_Create_0,
gml_Script____struct___9_gml_Object_obj_input_manager_Create_0,gml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0,gml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0,gml_Script____struct___10_gml_Object_obj_input_manager_Create_0];const kgml_GlobalScript_input_manager=100000;const kgml_Script____struct___0_input_setup_input_manager=100001;const kgml_Script____struct___1_input_setup_input_manager=100002;const kgml_Script_input_setup=100003;const kgml_Script_input_get_current_type=100004;
const kgml_Script_input_update=100005;const kgml_Script_input_check_pressed=100006;const kgml_Script_input_check=100007;const kgml_Script_input_check_released=100008;const kgml_Script_input_axis=100009;const kgml_GlobalScript_Macro=100010;const kgml_GlobalScript_Movement=100011;const kgml_Script_set_movement=100012;const kgml_GlobalScript_scr_i18n=100013;const kgml_Script____struct___2_load_dictionary_scr_i18n=100014;const kgml_Script_load_dictionary=100015;const kgml_Script_get_dictionary_value=100016;const kgml_Script_set_language_gml_Object_obj_i18n_Create_0=100017;
const kgml_Script____struct___3_gml_Object_obj_input_manager_Create_0=100018;const kgml_Script____struct___4_gml_Object_obj_input_manager_Create_0=100019;const kgml_Script____struct___5_gml_Object_obj_input_manager_Create_0=100020;const kgml_Script____struct___6_gml_Object_obj_input_manager_Create_0=100021;const kgml_Script____struct___7_gml_Object_obj_input_manager_Create_0=100022;const kgml_Script____struct___8_gml_Object_obj_input_manager_Create_0=100023;const kgml_Script____struct___9_gml_Object_obj_input_manager_Create_0=100024;
const kgml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0=100025;const kgml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0=100026;const kgml_Script____struct___10_gml_Object_obj_input_manager_Create_0=100027;var __yyg__SetImageIndexGML=function(frame){this.image_index=frame;};gml_Script____struct___0_input_setup_input_manager.__yyg__is_constructor=true;gml_Script____struct___0_input_setup_input_manager.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;
gml_Script____struct___1_input_setup_input_manager.__yyg__is_constructor=true;gml_Script____struct___1_input_setup_input_manager.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;gml_Script____struct___2_load_dictionary_scr_i18n.__yyg__is_constructor=true;gml_Script____struct___2_load_dictionary_scr_i18n.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;gml_Script____struct___3_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___3_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;
gml_Script____struct___4_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___4_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;gml_Script____struct___5_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___5_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;gml_Script____struct___6_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___6_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;
gml_Script____struct___7_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___7_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;gml_Script____struct___8_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___8_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;gml_Script____struct___9_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___9_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;
gml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___11____struct___10_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;gml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;gml_Script____struct___12____struct___10_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;gml_Script____struct___10_gml_Object_obj_input_manager_Create_0.__yyg__is_constructor=true;
gml_Script____struct___10_gml_Object_obj_input_manager_Create_0.prototype.SetImageIndexGML=__yyg__SetImageIndexGML;var g_instance_names={"x":[true,true,true,null,null],"y":[true,true,true,null,null],"xprevious":[true,true,true,null,null],"yprevious":[true,true,true,null,null],"xstart":[true,true,true,null,null],"ystart":[true,true,true,null,null],"hspeed":[true,true,true,null,null],"vspeed":[true,true,true,null,null],"direction":[true,true,true,null,null],"speed":[true,true,true,null,null],"friction":[true,
true,true,null,null],"gravity":[true,true,true,null,null],"gravity_direction":[true,true,true,null,null],"in_collision_tree":[true,false,true,null,null],"object_index":[true,false,false,null,null],"id":[true,false,false,null,null],"alarm":[true,true,true,null,null],"solid":[true,true,true,null,null],"visible":[true,true,true,null,null],"persistent":[true,true,true,null,null],"managed":[true,false,true,null,null],"depth":[true,true,true,null,null],"bbox_left":[true,false,false,null,null],"bbox_right":[true,
false,false,null,null],"bbox_top":[true,false,false,null,null],"bbox_bottom":[true,false,false,null,null],"sprite_index":[true,true,true,null,null],"image_index":[true,true,true,null,"SetImageIndexGML"],"image_single":[true,true,true,null,null],"image_number":[true,false,false,null,null],"sprite_width":[true,false,false,null,null],"sprite_height":[true,false,false,null,null],"sprite_xoffset":[true,false,false,null,null],"sprite_yoffset":[true,false,false,null,null],"image_xscale":[true,true,true,
null,null],"image_yscale":[true,true,true,null,null],"image_angle":[true,true,true,null,null],"image_alpha":[true,true,true,null,null],"image_blend":[true,true,true,null,null],"image_speed":[true,true,true,null,null],"mask_index":[true,true,true,null,null],"path_index":[true,false,false,null,null],"path_position":[true,true,true,null,null],"path_positionprevious":[true,true,true,null,null],"path_speed":[true,true,true,null,null],"path_scale":[true,true,true,null,null],"path_orientation":[true,true,
true,null,null],"path_endaction":[true,true,true,null,null],"timeline_index":[true,true,true,null,null],"timeline_position":[true,true,true,null,null],"timeline_speed":[true,true,true,null,null],"timeline_running":[true,true,true,null,null],"timeline_loop":[true,true,true,null,null],"phy_rotation":[true,true,true,null,null],"phy_position_x":[true,true,true,null,null],"phy_position_y":[true,true,true,null,null],"phy_angular_velocity":[true,true,true,null,null],"phy_linear_velocity_x":[true,true,true,
null,null],"phy_linear_velocity_y":[true,true,true,null,null],"phy_speed_x":[true,true,true,null,null],"phy_speed_y":[true,true,true,null,null],"phy_speed":[true,false,true,null,null],"phy_angular_damping":[true,true,true,null,null],"phy_linear_damping":[true,true,true,null,null],"phy_bullet":[true,true,true,null,null],"phy_fixed_rotation":[true,true,true,null,null],"phy_active":[true,true,true,null,null],"phy_mass":[true,false,true,null,null],"phy_inertia":[true,false,true,null,null],"phy_com_x":[true,
false,true,null,null],"phy_com_y":[true,false,true,null,null],"phy_dynamic":[true,false,true,null,null],"phy_kinematic":[true,false,true,null,null],"phy_sleeping":[true,false,true,null,null],"phy_position_xprevious":[true,true,true,null,null],"phy_position_yprevious":[true,true,true,null,null],"phy_collision_points":[true,false,true,null,null],"layer":[true,true,true,null,null],"in_sequence":[true,false,true,null,null],"sequence_instance":[true,false,true,null,null],"drawn_by_sequence":[true,false,
true,null,null],"phy_collision_x":[true,false,true,null,null],"phy_collision_y":[true,false,true,null,null],"phy_col_normal_x":[true,false,true,null,null],"phy_col_normal_y":[true,false,true,null,null]};var g_global_names={"argument_relative":[true,false,false,"get_argument_relative",null],"argument_count":[true,false,false,null,null],"argument":[true,true,true,null,null],"argument0":[true,true,true,null,null],"argument1":[true,true,true,null,null],"argument2":[true,true,true,null,null],"argument3":[true,
true,true,null,null],"argument4":[true,true,true,null,null],"argument5":[true,true,true,null,null],"argument6":[true,true,true,null,null],"argument7":[true,true,true,null,null],"argument8":[true,true,true,null,null],"argument9":[true,true,true,null,null],"argument10":[true,true,true,null,null],"argument11":[true,true,true,null,null],"argument12":[true,true,true,null,null],"argument13":[true,true,true,null,null],"argument14":[true,true,true,null,null],"argument15":[true,true,true,null,null],"debug_mode":[true,
false,true,null,null],"pointer_invalid":[true,false,false,null,null],"pointer_null":[true,false,false,null,null],"undefined":[true,false,false,null,null],"NaN":[true,false,false,null,null],"infinity":[true,false,false,null,null],"room":[true,true,true,"get_current_room","set_current_room"],"room_first":[true,false,false,null,null],"room_last":[true,false,false,null,null],"transition_kind":[true,true,true,null,null],"transition_steps":[true,true,true,null,null],"score":[true,true,true,null,null],
"lives":[true,true,true,null,"set_lives_function"],"health":[true,true,true,null,"set_health_function"],"game_id":[true,false,false,null,null],"game_display_name":[true,false,true,null,null],"game_project_name":[true,false,true,null,null],"game_save_id":[true,false,true,null,null],"working_directory":[true,false,false,null,null],"temp_directory":[true,false,false,null,null],"cache_directory":[true,false,false,null,null],"program_directory":[true,false,false,null,null],"instance_count":[true,false,
false,"get_instance_count",null],"instance_id":[true,false,false,null,null],"room_width":[true,true,false,null,"set_room_width"],"room_height":[true,true,false,null,"set_room_height"],"room_caption":[true,true,true,null,"set_room_caption"],"room_speed":[true,true,true,"get_room_speed","set_room_speed"],"room_persistent":[true,true,true,null,"set_room_persistent"],"view_enabled":[true,true,true,"get_view_enable","set_view_enable"],"view_current":[true,false,false,null,null],"view_visible":[true,true,
true,null,null],"mouse_x":[true,false,false,"get_mouse_x",null],"mouse_y":[true,false,false,"get_mouse_y",null],"mouse_button":[true,true,true,null,null],"mouse_lastbutton":[true,true,true,null,null],"keyboard_key":[true,true,true,null,null],"keyboard_lastkey":[true,true,true,null,null],"keyboard_lastchar":[true,true,true,null,null],"keyboard_string":[true,true,true,null,null],"show_score":[true,true,true,null,null],"show_lives":[true,true,true,null,null],"show_health":[true,true,true,null,null],
"caption_score":[true,true,true,null,null],"caption_lives":[true,true,true,null,null],"caption_health":[true,true,true,null,null],"fps":[true,false,false,null,null],"fps_real":[true,false,false,null,null],"current_time":[true,false,false,"get_current_time",null],"current_year":[true,false,false,"get_current_year",null],"current_month":[true,false,false,"get_current_month",null],"current_day":[true,false,false,"get_current_day",null],"current_weekday":[true,false,false,"get_current_weekday",null],
"current_hour":[true,false,false,"get_current_hour",null],"current_minute":[true,false,false,"get_current_minute",null],"current_second":[true,false,false,"get_current_second",null],"event_type":[true,false,false,"get_current_event_type",null],"event_number":[true,false,false,"get_current_event_number",null],"event_object":[true,false,false,"get_current_event_object",null],"event_action":[true,false,false,null,null],"error_occurred":[true,true,true,null,null],"error_last":[true,true,true,null,null],
"gamemaker_registered":[true,false,false,null,null],"gamemaker_pro":[true,false,false,null,null],"application_surface":[true,false,false,null,null],"font_texture_page_size":[true,true,false,null,null],"os_type":[true,false,false,"get_os_type",null],"os_device":[true,false,false,"get_os_device",null],"os_browser":[true,false,false,"get_os_browser",null],"os_version":[true,false,false,"get_os_version",null],"browser_width":[true,false,false,"get_browser_width",null],"browser_height":[true,false,false,
"get_browser_height",null],"async_load":[true,false,false,"get_async_load",null],"event_data":[true,false,false,"get_event_data",null],"display_aa":[true,false,false,"get_display_aa",null],"iap_data":[true,false,false,"get_iap_data",null],"cursor_sprite":[true,true,false,"get_cursor_sprite","set_cursor_sprite"],"delta_time":[true,true,false,"get_delta_time",null],"webgl_enabled":[true,false,false,null,null],"audio_bus_main":[true,true,true,null,null],"rollback_current_frame":[true,false,false,null,
null],"rollback_confirmed_frame":[true,false,false,null,null],"rollback_event_id":[true,false,false,null,null],"rollback_event_param":[true,false,false,null,null],"rollback_game_running":[true,false,false,null,null],"rollback_api_server":[true,false,false,null,null],"wallpaper_config":[true,false,false,null,null],"wallpaper_subscription_data":[true,false,false,null,null],"view_xview":[true,true,true,null,null],"view_yview":[true,true,true,null,null],"view_wview":[true,true,true,null,null],"view_hview":[true,
true,true,null,null],"view_angle":[true,true,true,null,null],"view_hborder":[true,true,true,null,null],"view_vborder":[true,true,true,null,null],"view_hspeed":[true,true,true,null,null],"view_vspeed":[true,true,true,null,null],"view_object":[true,true,true,null,null],"view_xport":[true,true,true,null,null],"view_yport":[true,true,true,null,null],"view_wport":[true,true,true,null,null],"view_hport":[true,true,true,null,null],"view_surface_id":[true,true,true,null,null],"view_camera":[true,true,true,
null,null],"marked":[false,false,false,null,null],"active":[false,false,false,null,null]};/*@constructor */function _y3(_z3){this._A3=false;this._B3=0;this._C3=0;this._D3=false;this._E3=0;this._F3=new _G3(0);this._H3=new _G3(0);this._I3=null;this._J3=null;this._K3=null;this._L3=null;this._M3=null;this._N3=null;this._O3=[];this._P3(_z3._N3);};_y3.prototype._Q3=function(){var _R3=new _y3({_N3:this._N3});return _R3;};_y3.prototype._P3=function(_S3){this._N3=_S3;this._I3=new spine._T3(_S3);this._M3=new spine._U3(this._I3.data);
this._L3=new spine._V3(this._M3);var listener=new Object();listener.start=function(_W3){};listener.end=function(_W3){};listener.complete=function(_W3,_X3){};listener.event=function(_W3,_Y3){var map=ds_map_create();g_pBuiltIn.event_data=map;ds_map_add(map,"name",_Y3.data.name);ds_map_add(map,"track",_W3);ds_map_add(map,"integer",_Y3._Z3);ds_map_add(map,"float",_Y3.__3);var _04=_Y3._04?_Y3._04:_Y3.data._04;ds_map_add(map,"string",_04);_14._24(_34,0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;};this._L3._44(listener);
if(_S3.animations.length>0){this._54(null);}this._64(null);this._J3=new spine._74();};_y3.prototype._84=function(_94,_a4){if(_a4==undefined)_a4=0;if(_a4<0)return 0;if(_a4>=this._L3.tracks.length)return 0;var _b4=_c4?_c4._d4():30;if(_e4){if((_94!=undefined)&&(_94!=null)){if(_94.playbackspeedtype==_f4){_b4=_g4._h4();}else {_b4=_94.playbackspeed;}}else {_b4=_g4._h4();}}if(this._L3.tracks[_a4]==null){return ~~((_b4*this._K3.duration)+0.5);}return ~~((_b4*this._L3.tracks[_a4]._i4.duration)+0.5);};function _j4(_k4,
_l4){if(_l4<0.0)return _k4;var _m4=_k4/_l4;var frac=_m4-Math.floor(_m4);var _n4=frac*_l4;return _n4;}_y3.prototype._o4=function(_a4){if(_a4<0)return 0;if(_a4>=this._L3.tracks.length)return 0;if(this._L3.tracks[_a4]===null)return 0;var _b4=_c4?_c4._d4():30;if(_e4){_b4=_g4._h4();}if(_b4<=0)return 0;var _p4=this._L3.tracks[_a4]._q4*_b4;_p4=_j4(_p4,_b4*this._L3.tracks[_a4]._i4.duration);return ~~(_p4+0.5);};_y3.prototype._r4=function(_a4,_s4){if(_a4<0)return;if(_a4>=this._L3.tracks.length)return;if(this._L3.tracks[_a4]===null)return;
var _b4=_c4?_c4._d4():30;if(_e4){_b4=_g4._h4();}if(_b4<=0)return 0;var _p4=_j4(_s4,_b4*this._L3.tracks[_a4]._i4.duration);var time=(_p4/_b4);this._L3.tracks[_a4]._q4=time;this._A3=true;};_y3.prototype._t4=function(_a4){if(_a4<0)return false;if(_a4>=this._L3.tracks.length)return false;if(this._L3.tracks[_a4]===null)return false;return this._L3.tracks[_a4].loop;};_y3.prototype._u4=function(_a4){if(_a4<0)return false;if(_a4>=this._L3.tracks.length)return false;if(this._L3.tracks[_a4]===null)return false;var _v4=this._L3.tracks[_a4];
return !_v4.loop&&_v4._q4>=_v4._i4.duration;};_y3.prototype._54=function(_w4,_x4=true){this._y4(_w4,0,_x4);};_y3.prototype._y4=function(_w4,_a4,_x4=true){var _i4=null;if(((_w4===null)||(_w4===undefined))&&(_a4===0)){if(this._N3.animations.length>0){_i4=this._N3._z4(this._N3.animations[0].name);}}else {_i4=this._N3._z4(_w4);}if(_i4!==null&&_i4!==undefined){if(_a4===0){this._B3=0;this._C3=0;this._K3=_i4;}this._L3._A4(_a4,_i4.name,_x4);}};_y3.prototype._64=function(_B4){var _C4=_B4;if(_B4===null||_B4===undefined){
if(this._N3._D4){_C4=this._N3._D4.name;}}if(_C4!=null){if(_C4.__type=="[SkeletonSkin]"){if(this._I3._E4===_C4._E4){return;}this._I3._F4(_C4._E4);this._I3._G4();}else {if((this._I3.skin!=null)&&(this._I3.skin.name!=null)){if(_C4==this._I3.skin.name){return;}}this._I3._H4(_C4);this._I3._G4();}}};_y3.prototype._I4=function(_J4,_K4,_L4){this._M3._M4(_J4,_K4,_L4);};_y3.prototype._N4=function(_O4,_P4){var slot=this._I3._Q4(_O4);if((slot!==null)&&(slot!==undefined)){if(typeof(_P4)==='number'){slot._R4(null);
}else {var _S4=-1;if((slot.data!==null)&&(slot.data!==undefined)){_S4=slot.data.index;}for(var _T4=0;_T4<this._N3.skins.length;_T4++){var skin=this._N3.skins[_T4];var attachment=skin._U4(_S4,_P4);if(attachment){slot._R4(attachment);return;}}for(var _V4=0;_V4<this._O3.length;_V4++){var attachment=this._O3[_V4].attachment;if(attachment.name===_P4){slot._R4(attachment);return;}}}}};_y3.prototype._W4=function(_O4,_X4){var slot=this._I3._Q4(_O4);if((slot!==null)&&(slot!==undefined)){var _Y4,_Z4,__4,_05;_Y4=(_X4&0xff)/255.0;
_Z4=((_X4&0xff00)>>8)/255.0;__4=((_X4&0xff0000)>>16)/255.0;if(slot.color!=undefined){_05=slot.color._05;}else {_05=1.0;}slot.color=new spine._15(_Y4,_Z4,__4,_05);}};_y3.prototype._25=function(_O4,_35){var slot=this._I3._Q4(_O4);if((slot!==null)&&(slot!==undefined)){var _Y4,_Z4,__4,_05;_05=_35;if(slot.color!=undefined){_Y4=slot.color._Y4;_Z4=slot.color._Z4;__4=slot.color.__4;}else {_Y4=1.0;_Z4=1.0;__4=1.0;}slot.color=new spine._15(_Y4,_Z4,__4,_05);}};_y3.prototype._45=function(_O4,_X4){var slot=this._I3._Q4(_O4);
if((slot!==null)&&(slot!==undefined)){var _55;if(slot.color!=undefined){_55=slot.color._Y4*255.0;_55|=(slot.color._Z4*255.0)<<8;_55|=(slot.color.__4*255.0)<<16;_55|=0xff000000;}else {_55=0xffffffff;}return _55;}return 0xffffffff;};_y3.prototype._65=function(_O4,_X4){var slot=this._I3._Q4(_O4);if((slot!==null)&&(slot!==undefined)){if(slot.color!=undefined){return slot.color._05;}else {return 1.0;}}return 1.0;};_y3.prototype._75=function(_O4,_P4,_85=false){var _95=undefined;if(!_85){var _S4=-1;var slot=this._I3._Q4(_O4);
if((slot!==null)&&(slot!==undefined)&&(slot.data!==null)&&(slot.data!==undefined)){_S4=slot.data.index;}for(var _T4=0;_T4<this._N3.skins.length;_T4++){var skin=this._N3.skins[_T4];var attachment=skin._U4(_S4,_P4);if(attachment){_95=_P4;break;}}}if(_95===undefined){for(var _V4=0;_V4<this._O3.length;_V4++){var attachment=this._O3[_V4].attachment;if(attachment.name===_P4){_95=_P4;break;}}}return _95;};_y3.prototype._a5=function(_P4,_b5,_c5,_d5,_e5,_f5,_g5,_h5,_i5,_X4,_35,_j5){var _k5=_b5._l5[_c5%_b5._m5()];
var _n5=_o5[_k5.tp];var _p5;for(_p5=0;_p5<this._O3.length;_p5++){var attachment=this._O3[_p5].attachment;if(attachment.name===_P4){if(_j5){break;}else {_q5("Custom attachment with name '"+_P4+"' already exists");}}}if(!_n5.complete){debug("Trying to create attachment "+_P4+" with texture that hasn't been loaded yet.");return;}var _r5=new spine._s5();_r5.name=_b5.pName;_r5._t5=_k5.tp;_r5.width=_k5.texture.width;_r5.height=_k5.texture.height;_r5._u5=spine._v5.Linear;_r5._w5=spine._v5.Linear;_r5._x5=spine._y5.ClampToEdge;
_r5._z5=spine._y5.ClampToEdge;_r5.texture=new _A5();_r5.texture.width=_r5.width;_r5.texture.height=_r5.height;_r5.texture._t5=_k5.tp;_r5.texture._B5=_n5;_r5.texture._C5(_r5._u5,_r5._w5);_r5.texture._D5(_r5._x5,_r5._z5);var _E5=new spine._F5();_E5._r5=_r5;_E5.name=_P4;_E5.x=0;_E5.y=0;_E5.width=_b5.width;_E5.height=_b5.height;_E5._G5=_k5.x/_k5.texture.width;_E5._H5=_k5.y/_k5.texture.height;_E5._I5=(_k5.x+_k5.w)/_k5.texture.width;_E5._J5=(_k5.y+_k5.h)/_k5.texture.height;_E5._K5=0;_E5._L5=0;_E5._M5=_E5.width;
_E5._N5=_E5.height;_E5.index=0;_E5._O5=0;_E5._P5=null;_E5._Q5=null;_E5.texture=_r5.texture;var _R5=new spine._S5("");_R5._T5.push(_r5);_R5._U5.push(_E5);var _V5=new spine._W5(_R5);var _X5=_V5._Y5(this._N3.skins[0],_P4,_P4);_X5.width=_E5.width;_X5.height=_E5.height;_X5.scaleX=_f5;_X5.scaleY=_g5;_X5.x=_d5;_X5.y=_e5;_X5.rotation=_h5;if((_X4!=undefined)&&(_35!=undefined)){var _Z5=(_X4&0xff)/255.0,__5=((_X4&0xff00)>>8)/255.0,_06=((_X4&0xff0000)>>16)/255.0;_X5.color=new spine._15(_Z5,__5,_06,_35);}else if(_i5!=undefined){
_X5.color=new spine._15();_X5.color._16(_i5);}_X5._26(_X5);if(_p5<this._O3.length){this._36(this._O3[_p5].attachment,_X5);this._O3[_p5]={attachment:_X5,_R5:_R5};}else {this._O3.push({attachment:_X5,_R5:_R5});}};_y3.prototype._46=function(_P4){for(var i=0;i<this._O3.length;i++){var attachment=this._O3[i].attachment;if(attachment.name===_P4){this._36(attachment,null);this._O3.splice(i,1);return true;}}return false;};_y3.prototype._36=function(_56,_66){for(var i=0;i<this._I3.slots.length;++i){var slot=this._I3.slots[i];
if(slot&&slot._U4()===_56){slot._R4(_66);}}};_y3.prototype._76=function(_k4){this._D3=_k4;};_y3.prototype._86=function(_c5,_96,_a6,_b6,_c6,_d6,_e6,_94){var skeleton=this._I3;var _f6=this._I3._g6();var _h6=this._B3;var _i6=this._A3;var _j6=false;_c6*=-1.0;var _k6=(_e6!==undefined);if((_i6==true)||(_h6!==_c5)||(skeleton.x!==_96)||(skeleton.y!==_a6)||(skeleton.scaleX!=_b6)||(skeleton.scaleY!=_c6)||(this._E3!==_d6)){var _l6=_94;if(((_94==undefined)||(_94==null))&&(_e6!=undefined)&&(_e6!=null)){var index;index=_e6.sprite_index;
_l6=_m6._n6(index);}var _o6=this._84(_l6,0);if(_o6>0){var _p6=_c5,_q6=this._B3,duration=this._K3.duration,_r6=this._K3._s6.length;var _t6=0;if(Math.abs(_p6-_q6)<(_o6/2)){if(_p6>_q6)_t6=1;else if(_p6<_q6)_t6=-1;else _t6=0;}if((this._C3>0)&&(_p6<_q6)){_p6+=_o6;}if(_q6-_p6>=_o6-1){_p6+=_o6;}this._C3=_t6;var _u6=(_p6-_q6)/_o6;this._L3._v6(_u6*duration);}this._L3.apply(this._I3);this._B3=_c5%_o6;skeleton.x=_96;skeleton.y=_a6;skeleton.scaleX=_b6;skeleton.scaleY=_c6;this._E3=_d6;this._F3=new _G3(-_d6);this._H3=new _G3(_d6);
_k6=true;_j6=true;this._A3=false;}if(_k6){if(_e6){_e6._w6(_x6,0,_e6,null);}this._y6();}return _j6;};_y3.prototype._y6=function(){var skeleton=this._I3;skeleton._k6();this._J3._v6(this._I3,1);var _z6=this._A6();_B6(this._J3,this._F3,_z6[0],_z6[1]);};function _B6(_C6,_D6,_E6,_F6){var _G6=true;for(var i=0;i<_C6._H6.length;++i){var _I6=_C6._H6[i];for(var _J6=0;_J6<_I6.length;){var _K6=_L6([_I6[_J6],_I6[_J6+1]],[_E6,_F6],_D6);var _M6=_I6[_J6++]=_K6[0];var _N6=_I6[_J6++]=_K6[1];if(_G6){_C6._O6=_C6._P6=_M6;_C6._Q6=_C6._R6=_N6;
_G6=false;}else {_C6._O6=Math.min(_C6._O6,_M6);_C6._P6=Math.max(_C6._P6,_M6);_C6._Q6=Math.min(_C6._Q6,_N6);_C6._R6=Math.max(_C6._R6,_N6);}}}}_y3.prototype._S6=function(_T6,_96,_a6,_b6,_c6,_d6){var _o6=this._84(undefined,0);var frame=~~(_o6*(_T6/this._K3.duration)+0.5);this._86(frame,_96,_a6,_b6,_c6,_d6);};_y3.prototype._U6=function(_V6,_c5,_96,_a6,_b6,_c6,_d6){if(this._J3!=null){var _W6=this._J3;this._86(_c5,_96,_a6,_b6,_c6,_d6,_X6);if(_W6._Y6.length>0){_V6.left=~~(_W6._O6+0.5);_V6.right=~~(_W6._P6+0.5);
_V6.top=~~(_W6._Q6+0.5);_V6.bottom=~~(_W6._R6+0.5);return true;}}return false;};_y3.prototype._Z6=function(_V6){if(this._J3!=null){this._y6();if(this._J3._Y6.length>0){_V6.left=this._J3._O6;_V6.right=this._J3._P6;_V6.top=this._J3._Q6;_V6.bottom=this._J3._R6;return true;}}return false;};_y3.prototype.__6=function(){if(this._J3==null)return 0;this._y6();return this._J3._Y6.length;};_y3.prototype._07=function(_s4){if(this._J3!=null){if(_s4>=0){this._y6();if(_s4<this._J3._Y6.length){var _17=this._J3._H6[_s4];
var _27=_17.length/2;var _37=[];_37.push(_27);_37.push(this._J3._Y6[_s4].name);for(var i=0;i<_27;i++){_37.push(_17[i*2]);_37.push(_17[i*2+1]);}return _37;}}}var _37=[];_37.push(0,"");return _37;};_y3.prototype._A6=function(){return [this._I3.x,this._I3.y];};_y3.prototype._47=function(_c5,_96,_a6,_b6,_c6,_d6,_57,_67,_77,_87,_97,_a7,_b7){this._86(_c5,_96,_a6,_b6,_c6,_d6);_57._86(_67,_77,_87,_97,_a7,_b7);for(var _c7=0;_c7<_57._J3._H6.length;_c7++){var _d7=_57._J3._H6[_c7];var size=_d7.length/2;for(var _e7=0;_e7<size;
_e7++){var _f7,_g7,_h7,_i7;_f7=_d7[(_e7*2)+0];_g7=_d7[(_e7*2)+1];if(_e7===(size-1)){_h7=_d7[0];_i7=_d7[1];}else {_h7=_d7[((_e7+1)*2)+0];_i7=_d7[((_e7+1)*2)+1];}var _j7=this._J3._k7(_f7,_g7,_h7,_i7);if(_j7!==null){return true;}}}return false;};_y3.prototype._l7=function(_c5,_96,_a6,_b6,_c6,_d6,_l6,_m7,_67,_77,_87,_97,_a7,_b7){this._86(_c5,_96,_a6,_b6,_c6,_d6);if(_l6==null){return false;}if(_l6._n7<=0){return false;}if(_l6._o7.length>0){_67=_67%_l6._o7.length;}if(_67<0){_67=_67+_l6._o7.length;}_97=1.0/_97;
_a7=1.0/_a7;var _W6=this._J3;var _p7=_q7(_W6._O6,_m7.left);var _Y4=_r7(_W6._P6,_m7.right);var _s7=_q7(_W6._Q6,_m7.top);var __4=_r7(_W6._R6,_m7.bottom);var _t7=Math.sin(-_b7*(_u7/180.0));var _v7=Math.cos(-_b7*(_u7/180.0));for(var i=_p7;i<=_Y4;i++){for(var _J6=_s7;_J6<=__4;_J6++){var _w7=((_v7*(i-_77)+_t7*(_J6-_87))*_97+_l6._x7);var _y7=((_v7*(_J6-_87)-_t7*(i-_77))*_a7+_l6._z7);if((_w7<0)||(_w7>=_l6._A7)){continue;}if((_y7<0)||(_y7>=_l6._B7)){continue;}if(_l6._C7){if(!_l6._o7._37[_67]._37[_w7+(_y7*_l6._A7)]){
continue;}}var _j7=_W6._D7(i,_J6);if(_j7!==null){return true;}}}return false;};_y3.prototype._E7=function(_c5,_96,_a6,_b6,_c6,_d6,_F7,_G7){this._86(_c5,_96,_a6,_b6,_c6,_d6);var _j7=this._J3._D7(_F7,_G7);if(_j7!==null){return true;}return false;};_y3.prototype._H7=function(_c5,_96,_a6,_b6,_c6,_d6,_F7,_G7,_77,_87){this._86(_c5,_96,_a6,_b6,_c6,_d6);var _j7=this._J3._k7(_F7,_G7,_77,_87);if(_j7!==null){return true;}return false;};_y3.prototype._I7=function(_c5,_96,_a6,_b6,_c6,_d6,_F7,_G7,_77,_87){this._86(_c5,
_96,_a6,_b6,_c6,_d6);var _W6=this._J3;var _j7=_W6._k7(_F7,_G7,_77,_87);if(_j7!==null){return true;}_j7=_W6._k7(_F7,_G7,_77,_G7);if(_j7!==null){return true;}_j7=_W6._k7(_77,_G7,_77,_87);if(_j7!==null){return true;}_j7=_W6._k7(_77,_87,_F7,_87);if(_j7!==null){return true;}_j7=_W6._k7(_F7,_87,_F7,_G7);if(_j7!==null){return true;}return false;};_y3.prototype._J7=function(_c5,_96,_a6,_b6,_c6,_d6,_K7){this._86(_c5,_96,_a6,_b6,_c6,_d6);var _W6=this._J3;var skeleton=this._I3;var _p7=_q7(_W6._O6,_K7.left);var _Y4=_r7(_W6._P6,
_K7.right);var _s7=_q7(_W6._Q6,_K7.top);var __4=_r7(_W6._R6,_K7.bottom);var _L7=((_K7.right+_K7.left)/2);var _M7=((_K7.bottom+_K7.top)/2);var _N7=((_K7.right-_K7.left)/2);var _O7=((_K7.bottom-_K7.top)/2);var _A7=(_W6._P6-_W6._O6);var _B7=(_W6._R6-_W6._Q6);var _x7=skeleton.x-_W6._O6;var _z7=skeleton.y-_W6._Q6;if((_b6==1)&&(_c6==1)&&(Math.abs(_d6)<0.0001)){for(var i=_p7;i<=_Y4;i++){for(var _J6=_s7;_J6<=__4;_J6++){if(sqr((i-_L7)/_N7)+sqr((_J6-_M7)/_O7)>1)continue;var _w7=i-_96+_x7;var _y7=_J6-_a6+_z7;if((_w7<0)||(_w7>=_A7))continue;
if((_y7<0)||(_y7>=_B7))continue;var _j7=_W6._D7(i,_J6);if(_j7!==null){return true;}}}}else {var _P7=Math.sin(-_d6*_u7/180.0);var _Q7=Math.cos(-_d6*_u7/180.0);for(var i=_p7;i<=_Y4;i++){for(var _J6=_s7;_J6<=__4;_J6++){if(sqr((i-_L7)/_N7)+sqr((_J6-_M7)/_O7)>1)continue;var _w7=Math.floor((_Q7*(i-_96)+_P7*(_J6-_a6))/_b6+_x7);var _y7=Math.floor((_Q7*(_J6-_a6)-_P7*(i-_96))/_c6+_z7);if((_w7<0)||(_w7>=_A7))continue;if((_y7<0)||(_y7>=_B7))continue;var _j7=_W6._D7(i,_J6);if(_j7!==null){return true;}}}}return false;};_y3.prototype._R7=function(_S7,
_T7){var bone=this._I3._U7(_S7);if(bone){var _V7=_W7._n6(_T7);if(_V7){_V7.set("length",bone.data.length);_V7.set("x",bone.data.x);_V7.set("y",bone.data.y);_V7.set("angle",bone.data.rotation);_V7.set("xscale",bone.data.scaleX);_V7.set("yscale",bone.data.scaleY);if((bone.data.parent!==undefined)&&(bone.data.parent!==null)){_V7.set("parent",bone.data.parent.name);}else {_V7.set("parent","");}return true;}}return false;};_y3.prototype._X7=function(_S7,_T7){var bone=this._I3._U7(_S7);if(bone){var _V7=_W7._n6(_T7);
if(_V7){bone.data.length=(_V7.get("length")!==undefined)?_V7.get("length"):bone.data.length;bone.data.x=(_V7.get("x")!==undefined)?_V7.get("x"):bone.data.x;bone.data.y=(_V7.get("y")!==undefined)?_V7.get("y"):bone.data.y;bone.data.rotation=(_V7.get("angle")!==undefined)?_V7.get("angle"):bone.data.rotation;bone.data.scaleX=(_V7.get("xscale")!==undefined)?_V7.get("xscale"):bone.data.scaleX;bone.data.scaleY=(_V7.get("yscale")!==undefined)?_V7.get("yscale"):bone.data.scaleY;return true;}}return false;}
;_y3.prototype._Y7=function(_Z7,_S7,_T7){var bone=this._I3._U7(_S7);if(bone){var _V7=_W7._n6(_T7);if(_V7){var angle=_Z7.image_angle;var _z6=this._A6();var __7=[bone._08,bone._18];__7=_L6(__7,_z6,this._F3);_V7.set("x",bone.x);_V7.set("y",bone.y);_V7.set("angle",bone.rotation);_V7.set("xscale",bone.scaleX);_V7.set("yscale",bone.scaleY);_V7.set("worldX",__7[0]);_V7.set("worldY",__7[1]);_V7.set("worldAngleX",bone._28()-angle);_V7.set("worldAngleY",bone._38()-angle);_V7.set("worldScaleX",bone._48());_V7.set("worldScaleY",
bone._58());_V7.set("appliedAngle",bone._68);if(bone.parent!=null)if(bone.parent.data!=null)_V7.set("parent",bone.parent.data.name);return true;}}return false;};_y3.prototype._78=function(_Z7,_S7,_T7){var bone=this._I3._U7(_S7);if(bone){var _V7=_W7._n6(_T7);if(_V7){if(_V7.get("angle")!==undefined)bone.rotation=_V7.get("angle");if(_V7.get("xscale")!==undefined)bone.scaleX=_V7.get("xscale");if(_V7.get("yscale")!==undefined)bone.scaleY=_V7.get("yscale");var _z6=this._A6();var __7=[bone._08,bone._18];__7=_L6(__7,
_z6,this._F3);if(_V7.get("worldX")!==undefined)__7[0]=_V7.get("worldX");if(_V7.get("worldY")!==undefined)__7[1]=_V7.get("worldY");__7=_L6(__7,_z6,this._H3);if(!(Math.abs(__7[0]-bone._08)<0.01)||!(Math.abs(__7[1]-bone._18)<0.01)){var _88;if((bone.parent!==undefined)&&(bone.parent!==null)){_88=bone.parent._98({x:__7[0],y:__7[1]});}else {_88=bone._98({x:__7[0],y:__7[1]});}bone.x=_88.x;bone.y=_88.y;}else {if(_V7.get("x")!==undefined)bone.x=_V7.get("x");if(_V7.get("y")!==undefined)bone.y=_V7.get("y");}return true;
}}return false;};_y3.prototype._a8=function(){if(this._I3.skin){return this._I3.skin.name;}return "";};_y3.prototype._b8=function(_w4,_c8){var _d8=new spine._e8(_w4);for(var i=0;i<_c8.length;++i){var _f8=this._N3._g8(_c8[i]);if(_f8===null){debug("Skin "+_c8[i]+" not found in skeleton");}else {_d8._h8(_f8);}}return new _i8(_d8);};_y3.prototype._j8=function(_a4){if((_a4>=0)&&(_a4<this._L3.tracks.length)&&(this._L3.tracks[_a4])&&(this._L3.tracks[_a4]._i4)){return this._L3.tracks[_a4]._i4.name;}return "";};_y3.prototype._k8=function(_a4,
_l8,_m8){if((_a4>=0)&&(_a4<this._L3.tracks.length)){if(_l8){this._L3._n8(_a4,_m8);}else {this._L3._o8(_a4);}}};_y3.prototype._p8=function(_q8){var _i4=this._N3._z4(_q8);if(_i4){return _i4.duration;}return 0.0;};_y3.prototype._r8=function(_q8){var _i4=this._N3._z4(_q8);if(_i4){var _b4=_c4?_c4._d4():30;if(_e4){_b4=_g4._h4();}if(_b4<=0)return 0;var _o6=_i4.duration*_b4;return ~~(_o6+0.5);}return 0.0;};_y3.prototype._s8=function(_q8,_t8){var _i4=this._N3._z4(_q8);if(_i4==null){return null;}var i;var _u8=null;for(i=0;
i<_i4._s6.length;i++){var _v8=_i4._s6[i];if(_v8 instanceof spine._w8){_u8=_v8;break;}}if(_u8==null){return null;}var _b4;if(_e4){_b4=_g4._h4();}else {_b4=_c4?_c4._d4():30;}var _x8=[];for(i=0;i<_u8.events.length;i++){var _y8=_u8.events[i];if(_y8.data!=null){var _z8=_y8.data;if(_z8.name==_t8){var time=_y8.time;_x8.push(_b4*time);}}}if(_x8.length==0){return null;}return _x8;};_y3.prototype._A8=function(_O4){var slot=this._I3._Q4(_O4);if(slot!==null&&slot!==undefined){if(slot.attachment){return slot.attachment.name;
}}return "";};_y3.prototype._B8=function(_C8){for(var _c7=0;_c7<this._I3.slots.length;_c7++){var _D8=this._I3.slots[_c7];var map=ds_map_create();ds_map_add(map,"name",_D8.data.name);ds_map_add(map,"bone",_D8.data._E8.name);ds_map_add(map,"attachment",_D8.attachment?_D8.attachment.name:"(none)");ds_list_add(_C8,map);}};/*@constructor */function _i8(_B4){this.__type="[SkeletonSkin]";this._E4=_B4;}var _X6=null;var _F8=false;var _G8=-1;var _H8=null;var _I8=[0.0,0.0,0.0,0.0];var _J8=0;var _K8=1;var _L8=2;var _M8=3;
var _N8=4;var _O8=5;var _P8=6;var _Q8=7;function _R8(_S8){_X6=_S8;};function _T8(){this.width=null;this.height=null;}function _A5(){this.name=null;this._B5=new _T8();this._U8=function(){return this._B5;};this._C5=function(_u5,_w5){};this._D5=function(_x5,_z5){};this.dispose=function(){};this._t5=null;this.width=null;this.height=null;}/*@constructor */function _V8(){this._W8=[];this._X8=null;this._N3=null;this._Y8=null;this._Z8=null;this.__8=false;if(_09){this._19=this._29;this._39=this._49;}else {this._19=this._59;
this._39=this._69;}};_V8.prototype._79=function(_w4,_89,_99,_a9){this._W8[_w4]={_b9:[],_c9:0,_d9:32,texture:_o5[_a9],x:0,y:0,w:_89,h:_99};};_V8.prototype._e9=function(_f9,_g9,_h9,_i9,_j9,_k9,_94){var _l9=_j9;var _m9=_k9;var _n9=0;var self=this;var _o9=function(_p9,_q9){var _r9=new _A5();_r9.name=_p9;_r9.width=_r9._B5.width=_m9[_n9].width;_r9.height=_r9._B5.height=_m9[_n9].height;if(_q9!=undefined){_r9._t5=_q9.tp;self._W8[_r9.name]=_q9;}else {var _s9=_t9(_u9+_f9+_p9);_r9._t5=_s9;_o5[_s9].onload=function(e){
_r9._B5=e._v9;var target=e.target||e.srcElement;self._79(_r9.name,target.width,target.height,_s9);if(_94._w9!=undefined){if(_94._w9==true){var _x9=self._W8[_r9.name];_y9(_x9);if(_x9.texture._z9){_A9(_x9.texture._z9);}}}};_o5[_s9].onerror=function(e){var target=e.target||e.srcElement;debug("ImageError: "+target.src);};_o5[_s9].URL=_p9;}if(_n9<(_l9-1))_n9++;return _r9;};this._Y8=new spine._S5(_i9);var _B9=0;if(_94._l5!=undefined)_B9=_94._l5.length;for(var i=0;i<this._Y8._T5.length;i++){var _r5=this._Y8._T5[i];
_r5._C9(_o9(_r5.name,(i<_B9)?_94._l5[i]:undefined));}this._X8=new spine._D9(new spine._W5(this._Y8));this._N3=this._X8._E9(_h9);};_V8.prototype._F9=function(){if(this._Y8){if(this._Y8._T5){return this._Y8._T5.length;}}return 0;};_V8.prototype._G9=function(_s4){if(this._Y8){if(this._Y8._T5){if(this._Y8._T5.length>_s4){if(this._Y8._T5[_s4].texture){if(this._Y8._T5[_s4].texture._t5){return this._Y8._T5[_s4].texture._t5;}}}}}return -1;};_V8.prototype._H9=function(_I9,_B4,frame,x,y,_J9,_K9,angle,_55,alpha){
if(this._N3===null||this._N3===undefined)return;var _L9=new _y3(this);_L9._54(_I9);_L9._64(_B4);_L9._86(frame,x,y,_J9,_K9,angle);var _z6=_L9._A6();this._M9(_L9._I3,_55,alpha,_L9._F3,_z6[0],_z6[1]);};_V8.prototype._N9=function(_I9,_B4,_T6,x,y,_J9,_K9,angle,_55,alpha){if(this._N3===null||this._N3===undefined)return;var _L9=new _y3(this);_L9._54(_I9);_L9._64(_B4);_L9._S6(_T6,x,y,_J9,_K9,angle);var _z6=_L9._A6();this._M9(_L9._I3,_55,alpha,_L9._F3,_z6[0],_z6[1]);};_V8.prototype._O9=function(frame,x,y,_J9,_K9,
angle,_55,alpha){if(!_X6||!_X6._P9()){this._H9(null,null,frame,x,y,_J9,_K9,angle,_55,alpha);}else {var _Q9=_X6._P9();_Q9._86(frame,x,y,_J9,_K9,angle,_X6);var _z6=_Q9._A6();this._M9(_Q9._I3,_55,alpha,_Q9._F3,_z6[0],_z6[1]);if(_Q9._D3){this._R9(_Q9._J3);}}};_V8.prototype._S9=function(_T9,_I9,_B4,frame,x,y,_J9,_K9,angle,_U9,_V9,_C8){ds_list_clear(_C8);var _W9=false;var _Q9=null;if((_T9===undefined)||(_T9===null)||(_T9._P9()===null)){_Q9=new _y3(this);_W9=true;_Q9._54(_I9);_Q9._64(_B4);}else {_Q9=_T9._P9();
if((_I9!==undefined)&&(_I9!==null)){_Q9._54(_I9);}if((_B4!==undefined)&&(_B4!==null)){_Q9._64(_B4);}}_Q9._86(frame,x,y,_J9,_K9,angle,_T9);var _X9=[];var _Y9=0;for(var i=0,_c7=_Q9._I3.slots.length;i<_c7;i++){var slot=_Q9._I3.drawOrder[i];if(!slot.attachment)continue;var _Z9=false;if(slot.attachment instanceof spine.__9){_Z9=this._0a(slot,_U9,_V9);}else if(slot.attachment instanceof spine._1a){_Z9=this._2a(slot,_U9,_V9);}else if(slot.attachment instanceof spine._3a){_Z9=this._4a(slot,_U9,_V9);}if(_Z9){_X9[_Y9]=slot;
_Y9++;}}if(_Y9>0){for(var i=(_Y9-1);i>=0;i--){ds_list_add(_C8,_X9[i].data.name);}}};_V8.prototype._5a=function(_I9,_6a,x,y,_J9,_K9,angle,color,_b5){var _L9=new _y3(this);_L9._54(_I9);_L9._86(_6a,x,y,_J9,_K9,angle,null,_b5);this._R9(_L9._J3);};_V8.prototype._M9=function(_7a,color,alpha,_8a,_9a,_aa){var _Z5=(color&0xff)/255.0,__5=((color&0xff00)>>8)/255.0,_06=((color&0xff0000)>>16)/255.0;if(_09){this._ba(_7a,_Z5,__5,_06,alpha,_8a,_9a,_aa);}else {this._ca(_7a,_06,__5,_Z5,alpha,_8a,_9a,_aa);}};_V8.prototype._ca=function(_7a,
_da,_ea,_fa,_ga,_ha,_ia,_ja){var _ka=[0,1,2,2,3,0];var vertices=[];var _la=new spine._15(1.0,1.0,1.0,1.0);var _ma=false;for(var i=0,_c7=_7a.slots.length;i<_c7;i++){var slot=_7a.drawOrder[i];if(!slot.attachment)continue;var _Y4=(_da*255);var _Z4=(_ea*255);var __4=(_fa*255);var _05=(_ga*255);if((slot.skeleton!=undefined)&&(slot.skeleton._Y4!=undefined)){_Y4*=slot.skeleton._Y4;_Z4*=slot.skeleton._Z4;__4*=slot.skeleton.__4;_05*=slot.skeleton._05;}if(slot.color!=undefined){_Y4*=slot.color._Y4;_Z4*=slot.color._Z4;
__4*=slot.color.__4;_05*=slot.color._05;}if(slot.attachment.color!=undefined){_Y4*=slot.attachment.color._Y4;_Z4*=slot.attachment.color._Z4;__4*=slot.attachment.color.__4;_05*=slot.attachment.color._05;}var _55;_55=(_05<<24)|(_Y4<<16)|(_Z4<<8)|(__4<<0);var _na=null;var uvs=null;var _oa=null;var _pa=2;var _qa=0;var _ra=0;var _sa=0;var _ta=null;var _s9=null;if(slot.attachment instanceof spine.__9){var _E5=slot.attachment;if((this._Z8!=null)&&(this._Z8._ua())){_E5._va(slot.bone,vertices,0,2);_na=vertices;uvs=_E5.uvs;
_oa=_ka;_ra=4;_sa=6;_s9=_o5[_E5._E5._wa._r5.texture._t5];if(!_s9.complete)continue;if(_55!=_xa){if(!this._W8[_E5._E5._wa._r5.name]){var _r5=_E5._E5._wa._r5;this._79(_r5.name,_r5.width,_r5.height,_r5._t5);}_s9=_ya(this._W8[_E5._E5._wa._r5.name],_55);}var _za=_E5._E5._wa._r5;_ta=this._W8[_za.name];}else {this._59(slot,_55,_05/255.0,_ha,_ia,_ja);}}else if(slot.attachment instanceof spine._1a){var _Aa=slot.attachment;_Aa._va(slot,0,_Aa._Ba,vertices,0,2);_na=vertices;uvs=_Aa.uvs;_oa=_Aa.triangles;_ra=_Aa._Ba;
_sa=_Aa.triangles.length;_s9=_o5[_Aa._E5._wa._r5.texture._t5];if(!_s9.complete)continue;if(_55!=_xa){if(!this._W8[_Aa._E5._wa._r5.name]){var _r5=_Aa._E5._wa._r5;this._79(_r5.name,_r5.width,_r5.height,_Aa._E5._wa._r5._t5);}_s9=_ya(this._W8[_Aa._E5._wa._r5.name],_55);}_ta=this._W8[_Aa._E5._wa._r5.name];}else if(slot.attachment instanceof spine._Ca){if(this._Z8==null){this._Z8=new spine._Da();}this._Z8._Ea(slot,slot.attachment);continue;}if((_ra>0)&&(_s9!=null)){if((this._Z8!=null)&&(this._Z8._ua())){this._Z8._Fa(vertices,
_ra*2,_oa,_sa,uvs,_la,_la,_ma);_na=this._Z8._Ga;uvs=this._Z8._Ga;_oa=this._Z8._Ha;_pa=8;_qa=6;_ra=_na.length/_pa;_sa=_oa.length;}for(var _H5=0;_H5<_sa/3;_H5++){var _Ia=_H5*3;var _Ja=_oa[_Ia++]*_pa,_Ka=_oa[_Ia++]*_pa,_La=_oa[_Ia++]*_pa;var _Ma=[];_Ma[0]={};_Ma[0].x=_na[_Ja];_Ma[0]._G5=uvs[_qa+_Ja];_Ja++;_Ma[0].y=_na[_Ja];_Ma[0]._H5=uvs[_qa+_Ja];_Ma[1]={};_Ma[1].x=_na[_Ka];_Ma[1]._G5=uvs[_qa+_Ka];_Ka++;_Ma[1].y=_na[_Ka];_Ma[1]._H5=uvs[_qa+_Ka];_Ma[2]={};_Ma[2].x=_na[_La];_Ma[2]._G5=uvs[_qa+_La];_La++;
_Ma[2].y=_na[_La];_Ma[2]._H5=uvs[_qa+_La];for(var pi=0;pi<3;++pi){var _K6=_L6([_Ma[pi].x,_Ma[pi].y],[_ia,_ja],_ha);_Ma[pi].x=_K6[0];_Ma[pi].y=_K6[1];}this._Na(_Oa,_s9,_Ma[0].x,_Ma[0].y,_Ma[1].x,_Ma[1].y,_Ma[2].x,_Ma[2].y,_Ma[0]._G5*_ta.w,_Ma[0]._H5*_ta.h,_Ma[1]._G5*_ta.w,_Ma[1]._H5*_ta.h,_Ma[2]._G5*_ta.w,_Ma[2]._H5*_ta.h);}}if(this._Z8!=null){this._Z8._Pa(slot);}}if(this._Z8!=null){this._Z8._Qa();}};function _Ra(_Sa,_Ta,_Ua){if(_Ta==false){switch(_Sa){case spine._Va.Normal:_Ua.src=_Wa._Xa;_Ua._Ya=_Wa._Za;
break;case spine._Va.Additive:_Ua.src=_Wa._Xa;_Ua._Ya=_Wa.__a;break;case spine._Va.Multiply:_Ua.src=_Wa._0b;_Ua._Ya=_Wa._Za;break;case spine._Va.Screen:_Ua.src=_Wa.__a;_Ua._Ya=_Wa._1b;break;default :_Ua.src=_Wa._Xa;_Ua._Ya=_Wa._Za;break;}}else {switch(_Sa){case spine._Va.Normal:_Ua.src=_Wa.__a;_Ua._Ya=_Wa._Za;break;case spine._Va.Additive:_Ua.src=_Wa.__a;_Ua._Ya=_Wa.__a;break;case spine._Va.Multiply:_Ua.src=_Wa._0b;_Ua._Ya=_Wa._Za;break;case spine._Va.Screen:_Ua.src=_Wa.__a;_Ua._Ya=_Wa._1b;break;default :_Ua.src=_Wa._Xa;
_Ua._Ya=_Wa._Za;break;}}}_V8.prototype._ba=function(_7a,_da,_ea,_fa,_ga,_ha,_ia,_ja){var _ka=[0,1,2,2,3,0];var vertices=[];var _la=new spine._15(1.0,1.0,1.0,1.0);var _ma=false;var _2b,_3b,_4b,_5b;var _6b;if(_F8==true){_2b=_09._7b._8b(_Wa._9b);_3b=_09._7b._8b(_Wa._ab);_4b=_09._7b._8b(_Wa._bb);_5b=_09._7b._8b(_Wa._cb);_6b=_09._7b._8b(_Wa._db);}var _eb=new spine._15(0.0,0.0,0.0,0.0);var _fb=false;if(_gb!=_G8){_G8=_gb;_fb=true;if(_G8!=-1){_H8=shader_get_uniform(_G8,"gm_SpineTintBlackColour");}}for(var i=0,_c7=_7a.slots.length;
i<_c7;i++){var slot=_7a.drawOrder[i];if(!slot.attachment)continue;var _Y4=(_da*255);var _Z4=(_ea*255);var __4=(_fa*255);var _05=(_ga*255);if((slot.skeleton!=undefined)&&(slot.skeleton._Y4!=undefined)){_Y4*=slot.skeleton._Y4;_Z4*=slot.skeleton._Z4;__4*=slot.skeleton.__4;_05*=slot.skeleton._05;}if(slot.color!=undefined){_Y4*=slot.color._Y4;_Z4*=slot.color._Z4;__4*=slot.color.__4;_05*=slot.color._05;}if(slot.attachment.color!=undefined){_Y4*=slot.attachment.color._Y4;_Z4*=slot.attachment.color._Z4;__4*=slot.attachment.color.__4;
_05*=slot.attachment.color._05;}var _55;_55=(_05<<24)|(_Y4<<0)|(_Z4<<8)|(__4<<16);if(_G8!=-1){if((_H8!=undefined)&&(_H8!=-1)){var _hb;if((slot._ib!=undefined)&&(slot._ib!=null)){_hb=slot._ib;}else {_hb=_eb;}var _jb=[_hb._Y4*_da,_hb._Z4*_ea,_hb.__4*_fa,_ga];if((_fb)||((_I8[0]!=_jb[0])||(_I8[1]!=_jb[1])||(_I8[2]!=_jb[2])||(_I8[3]!=_jb[3]))){_I8=_jb;shader_set_uniform_f_array(_H8,_I8);_fb=false;}}}var _na=null;var uvs=null;var _oa=null;var _pa=2;var _qa=0;var _ra=0;var _sa=0;var _s9=null;if(slot.attachment instanceof spine.__9){
var _E5=slot.attachment;_E5._va(slot.bone,vertices,0,2);_na=vertices;uvs=_E5.uvs;_oa=_ka;_ra=4;_sa=6;_s9=_o5[_E5._E5._wa._r5.texture._t5];}else if(slot.attachment instanceof spine._1a){var _Aa=slot.attachment;_Aa._va(slot,0,_Aa._Ba,vertices,0,2);_na=vertices;uvs=_Aa.uvs;_oa=_Aa.triangles;_ra=_Aa._Ba;_sa=_Aa.triangles.length;_s9=_o5[_Aa._E5._wa._r5.texture._t5];}else if(slot.attachment instanceof spine._Ca){if(this._Z8==null){this._Z8=new spine._Da();}this._Z8._Ea(slot,slot.attachment);continue;}if((_ra>0)&&(_s9!=null)){
if(!_s9.complete)continue;if(!_s9._z9)_y9({texture:_s9});if((this._Z8!=null)&&(this._Z8._ua())){this._Z8._Fa(vertices,_ra*2,_oa,_sa,uvs,_la,_la,_ma);_na=this._Z8._Ga;uvs=this._Z8._Ga;_oa=this._Z8._Ha;_pa=8;_qa=6;_ra=_na.length/_pa;_sa=_oa.length;}if(_F8==true){var _kb=slot.data._lb;var _mb=new Object();_Ra(_kb,this.__8,_mb);_09._7b._nb(_Wa._9b,_mb.src);_09._7b._nb(_Wa._ab,_mb._Ya);_09._7b._nb(_Wa._bb,_mb.src);_09._7b._nb(_Wa._cb,_mb._Ya);}var _ob=_09._pb(_Wa._qb,_s9._z9,_09._rb,_sa);var _sb=_ob._tb()>>2;
var index=_sb*_ob._ub;_ob._ub+=_sa;var _vb=_ob._wb;var _xb=_ob._yb;var _zb=_ob._Ab;var _Bb=index;for(var _H5=0;_H5<_sa;_H5++,_Bb+=_sb){var index=_oa[_H5];var _Cb=_na[(index*_pa)+0];var _Db=_na[(index*_pa)+1];var _Eb=_L6([_Cb,_Db],[_ia,_ja],_ha);_vb[_Bb+0]=_Eb[0];_vb[_Bb+1]=_Eb[1];_vb[_Bb+2]=_Fb;_xb[_Bb+0]=_55;_zb[_Bb+0]=uvs[(index*_pa)+_qa+0];_zb[_Bb+1]=uvs[(index*_pa)+_qa+1];}}if(this._Z8!=null){this._Z8._Pa(slot);}}if(this._Z8!=null){this._Z8._Qa();}if(_F8==true){_09._7b._nb(_Wa._9b,_2b);_09._7b._nb(_Wa._ab,
_3b);_09._7b._nb(_Wa._bb,_4b);_09._7b._nb(_Wa._cb,_5b);_09._7b._nb(_Wa._db,_6b);}};_V8.prototype._R9=function(_Gb){draw_line(_Gb._O6,_Gb._Q6,_Gb._O6,_Gb._R6);draw_line(_Gb._O6,_Gb._R6,_Gb._P6,_Gb._R6);draw_line(_Gb._P6,_Gb._R6,_Gb._P6,_Gb._Q6);draw_line(_Gb._P6,_Gb._Q6,_Gb._O6,_Gb._Q6);for(var _c7=0;_c7<_Gb._H6.length;_c7++){var _d7=_Gb._H6[_c7];var size=_d7.length/2;for(var _e7=0;_e7<size;_e7++){var _f7,_g7,_h7,_i7;_f7=_d7[(_e7*2)+0];_g7=_d7[(_e7*2)+1];if(_e7==(size-1)){_h7=_d7[0];_i7=_d7[1];}else {_h7=_d7[((_e7+1)*2)+0];
_i7=_d7[((_e7+1)*2)+1];}draw_line(_f7,_g7,_h7,_i7);}}};_V8.prototype._59=function(slot,_55,alpha,_8a,originX,originY){var _E5=slot.attachment,vertices=[],uvs;var _Hb=0;var _Ib=0;if(slot.skeleton){_Hb=slot.skeleton.x;_Ib=slot.skeleton.y;}else if(slot.bone.skeleton){_Hb=slot.bone.skeleton.x;_Ib=slot.bone.skeleton.y;}_E5._va(slot.bone,vertices,0,2);uvs=_E5.uvs;var _Ma=[];_Ma[0]={};_Ma[0].x=vertices[_L8];_Ma[0].y=vertices[_M8];_Ma[0]._G5=uvs[_L8];_Ma[0]._H5=uvs[_M8];_Ma[1]={};_Ma[1].x=vertices[_N8];_Ma[1].y=vertices[_O8];
_Ma[1]._G5=uvs[_N8];_Ma[1]._H5=uvs[_O8];_Ma[2]={};_Ma[2].x=vertices[_P8];_Ma[2].y=vertices[_Q8];_Ma[2]._G5=uvs[_P8];_Ma[2]._H5=uvs[_Q8];for(var i=0;i<3;++i){var _K6=_L6([_Ma[i].x,_Ma[i].y],[originX,originY],_8a);;_Ma[i].x=_K6[0];_Ma[i].y=_K6[1];}_Oa.globalAlpha=alpha;var _za=_E5._E5._wa._r5;var _s9=_o5[_za.texture._t5];if(!_s9.complete)return;if(_55!=_xa){if(!this._W8[_E5._E5._wa._r5.name]){var _r5=_E5._E5._wa._r5;this._79(_r5.name,_r5.width,_r5.height,_r5._t5);}_s9=_ya(this._W8[_E5._E5._wa._r5.name],
_55);}var _ta=this._W8[_za.name];this._Jb(_Oa,_s9,_Ma[0].x,_Ma[0].y,_Ma[1].x,_Ma[1].y,_Ma[2].x,_Ma[2].y,_Ma[0]._G5*_ta.w,_Ma[0]._H5*_ta.h,_Ma[1]._G5*_ta.w,_Ma[1]._H5*_ta.h,_Ma[2]._G5*_ta.w,_Ma[2]._H5*_ta.h);};_V8.prototype._69=function(slot,_55,alpha){var _Aa=slot.attachment,vertices=[],uvs;_Aa._va(slot,0,_Aa._Ba,vertices,0,2);uvs=_Aa.uvs;var _za=_Aa._E5._wa._r5;var _s9=_o5[_Aa._E5._wa._r5.texture._t5];if(!_s9.complete)return;if(_55!=_xa){if(!this._W8[_Aa._E5._wa._r5.name]){var _r5=_Aa._E5._wa._r5;this._79(_r5.name,
_r5.width,_r5.height,_Aa._E5._wa._r5._t5);}_s9=_ya(this._W8[_Aa._E5._wa._r5.name],_55);}for(var _c7=0;_c7<_Aa.triangles.length/3;_c7++){var _Ia=_c7*3;var _Ja=_Aa.triangles[_Ia++]*2,_Ka=_Aa.triangles[_Ia++]*2,_La=_Aa.triangles[_Ia++]*2;var _Ma=[];_Ma[0]={};_Ma[0].x=vertices[_Ja];_Ma[0]._G5=uvs[_Ja++];_Ma[0].y=vertices[_Ja];_Ma[0]._H5=uvs[_Ja];_Ma[1]={};_Ma[1].x=vertices[_Ka];_Ma[1]._G5=uvs[_Ka++];_Ma[1].y=vertices[_Ka];_Ma[1]._H5=uvs[_Ka];_Ma[2]={};_Ma[2].x=vertices[_La];_Ma[2]._G5=uvs[_La++];_Ma[2].y=vertices[_La];
_Ma[2]._H5=uvs[_La];var _ta=this._W8[_Aa._E5._wa._r5.name];this._Na(_Oa,_s9,_Ma[0].x,_Ma[0].y,_Ma[1].x,_Ma[1].y,_Ma[2].x,_Ma[2].y,_Ma[0]._G5*_ta.w,_Ma[0]._H5*_ta.h,_Ma[1]._G5*_ta.w,_Ma[1]._H5*_ta.h,_Ma[2]._G5*_ta.w,_Ma[2]._H5*_ta.h);}};_V8.prototype._Kb=function(slot,_55,alpha){var _Aa=slot.attachment,vertices=[];var _Hb=0;var _Ib=0;if(slot.skeleton){_Hb=slot.skeleton.x;_Ib=slot.skeleton.y;}else if(slot.bone.skeleton){_Hb=slot.bone.skeleton.x;_Ib=slot.bone.skeleton.y;}_Aa._va(_Hb,_Ib,slot,vertices);var _r5=_Aa._t5._r5;
var _s9=_o5[_r5._t5];if(_55!=_xa){if(!this._W8[_r5.name]){this._79(_r5.name,_r5.width,_r5.height,_r5._t5);}_s9=_ya(this._W8[_r5.name],_55);}for(var _c7=0;_c7<_Aa.triangles.length/3;_c7++){var _Ja=_Aa.triangles[(_c7*3)+0],_Ka=_Aa.triangles[(_c7*3)+1],_La=_Aa.triangles[(_c7*3)+2];var _Ma=[];_Ma[0]={};_Ma[0].x=vertices[(_Ja*2)+0];_Ma[0].y=vertices[(_Ja*2)+1];_Ma[0]._G5=_Aa.uvs[(_Ja*2)+0];_Ma[0]._H5=_Aa.uvs[(_Ja*2)+1];_Ma[1]={};_Ma[1].x=vertices[(_Ka*2)+0];_Ma[1].y=vertices[(_Ka*2)+1];_Ma[1]._G5=_Aa.uvs[(_Ka*2)+0];
_Ma[1]._H5=_Aa.uvs[(_Ka*2)+1];_Ma[2]={};_Ma[2].x=vertices[(_La*2)+0];_Ma[2].y=vertices[(_La*2)+1];_Ma[2]._G5=_Aa.uvs[(_La*2)+0];_Ma[2]._H5=_Aa.uvs[(_La*2)+1];var _ta=this._W8[_r5.name];this._Na(_Oa,_s9,_Ma[0].x,_Ma[0].y,_Ma[1].x,_Ma[1].y,_Ma[2].x,_Ma[2].y,_Ma[0]._G5*_ta.w,_Ma[0]._H5*_ta.h,_Ma[1]._G5*_ta.w,_Ma[1]._H5*_ta.h,_Ma[2]._G5*_ta.w,_Ma[2]._H5*_ta.h);}};_V8.prototype._Na=function(_Lb,_Mb,_Nb,_Ob,_f7,_g7,_h7,_i7,_Pb,_Qb,_Rb,_Sb,_Tb,_Ub){_Lb.save();_Lb.beginPath();_Lb.moveTo(_Nb,_Ob);_Lb.lineTo(_f7,
_g7);_Lb.lineTo(_h7,_i7);_Lb.closePath();_Lb.clip();var _Vb=_Pb*(_Ub-_Sb)-_Rb*_Ub+_Tb*_Sb+(_Rb-_Tb)*_Qb;if(_Vb==0){return;}var _Wb=-(_Qb*(_h7-_f7)-_Sb*_h7+_Ub*_f7+(_Sb-_Ub)*_Nb)/_Vb;var _Xb=(_Sb*_i7+_Qb*(_g7-_i7)-_Ub*_g7+(_Ub-_Sb)*_Ob)/_Vb;var _Yb=(_Pb*(_h7-_f7)-_Rb*_h7+_Tb*_f7+(_Rb-_Tb)*_Nb)/_Vb;var _Zb=-(_Rb*_i7+_Pb*(_g7-_i7)-_Tb*_g7+(_Tb-_Rb)*_Ob)/_Vb;var __b=(_Pb*(_Ub*_f7-_Sb*_h7)+_Qb*(_Rb*_h7-_Tb*_f7)+(_Tb*_Sb-_Rb*_Ub)*_Nb)/_Vb;var _0c=(_Pb*(_Ub*_g7-_Sb*_i7)+_Qb*(_Rb*_i7-_Tb*_g7)+(_Tb*_Sb-_Rb*_Ub)*_Ob)/_Vb;
_Lb.transform(_Wb,_Xb,_Yb,_Zb,__b,_0c);_Lb.drawImage(_Mb,0,0);_Lb.restore();};_V8.prototype._Jb=function(_Lb,_Mb,_Nb,_Ob,_f7,_g7,_h7,_i7,_Pb,_Qb,_Rb,_Sb,_Tb,_Ub){_Lb.save();var _1c,_2c;_1c=_Nb+(_h7-_f7);_2c=_Ob+(_i7-_g7);_Lb.beginPath();_Lb.moveTo(_Nb,_Ob);_Lb.lineTo(_f7,_g7);_Lb.lineTo(_h7,_i7);_Lb.lineTo(_1c,_2c);_Lb.closePath();_Lb.clip();var _Vb=_Pb*(_Ub-_Sb)-_Rb*_Ub+_Tb*_Sb+(_Rb-_Tb)*_Qb;if(_Vb==0){return;}var _Wb=-(_Qb*(_h7-_f7)-_Sb*_h7+_Ub*_f7+(_Sb-_Ub)*_Nb)/_Vb;var _Xb=(_Sb*_i7+_Qb*(_g7-_i7)-_Ub*_g7+(_Ub-_Sb)*_Ob)/_Vb;
var _Yb=(_Pb*(_h7-_f7)-_Rb*_h7+_Tb*_f7+(_Rb-_Tb)*_Nb)/_Vb;var _Zb=-(_Rb*_i7+_Pb*(_g7-_i7)-_Tb*_g7+(_Tb-_Rb)*_Ob)/_Vb;var __b=(_Pb*(_Ub*_f7-_Sb*_h7)+_Qb*(_Rb*_h7-_Tb*_f7)+(_Tb*_Sb-_Rb*_Ub)*_Nb)/_Vb;var _0c=(_Pb*(_Ub*_g7-_Sb*_i7)+_Qb*(_Rb*_i7-_Tb*_g7)+(_Tb*_Sb-_Rb*_Ub)*_Ob)/_Vb;_Lb.transform(_Wb,_Xb,_Yb,_Zb,__b,_0c);_Lb.drawImage(_Mb,0,0);_Lb.restore();};_V8.prototype._29=function(slot,_55,alpha,_8a){var _E5=slot.attachment,vertices=[],uvs;var _Hb=0;var _Ib=0;if(slot.skeleton){_Hb=slot.skeleton.x;_Ib=slot.skeleton.y;
}else if(slot.bone.skeleton){_Hb=slot.bone.skeleton.x;_Ib=slot.bone.skeleton.y;}_E5._va(slot.bone,vertices,0,2);uvs=_E5.uvs;var _s9=_o5[_E5._E5._wa.texture._t5];if(!_s9.complete)return;if(!_s9._z9)_y9({texture:_s9});var _ra=6;var _ob=_09._pb(_Wa._qb,_s9._z9,_09._rb,_ra);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_ra;var _vb=_ob._wb;var _xb=_ob._yb;var _zb=_ob._Ab;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;_vb[_Bb+0]=_vb[_6c+0]=vertices[_L8];_vb[_Bb+1]=_vb[_6c+1]=vertices[_M8];
_vb[_3c+0]=vertices[_N8];_vb[_3c+1]=vertices[_O8];_vb[_J5+0]=_vb[_4c+0]=vertices[_P8];_vb[_J5+1]=_vb[_4c+1]=vertices[_Q8];_vb[_5c+0]=vertices[_J8];_vb[_5c+1]=vertices[_K8];_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;_xb[_Bb]=_xb[_3c]=_xb[_J5]=_xb[_4c]=_xb[_5c]=_xb[_6c]=_55;_zb[_Bb+0]=_zb[_6c+0]=uvs[_L8];_zb[_Bb+1]=_zb[_6c+1]=uvs[_M8];_zb[_3c+0]=uvs[_N8];_zb[_3c+1]=uvs[_O8];_zb[_J5+0]=_zb[_4c+0]=uvs[_P8];_zb[_J5+1]=_zb[_4c+1]=uvs[_Q8];_zb[_5c+0]=uvs[_J8];_zb[_5c+1]=uvs[_K8];
};_V8.prototype._49=function(slot,_55,alpha){var _Aa=slot.attachment,vertices=[],uvs;var _Hb=0;var _Ib=0;if(slot.skeleton){_Hb=slot.skeleton.x;_Ib=slot.skeleton.y;}else if(slot.bone.skeleton){_Hb=slot.bone.skeleton.x;_Ib=slot.bone.skeleton.y;}_Aa._va(slot,0,_Aa._Ba,vertices,0,2);uvs=_Aa.uvs;var _s9=_o5[_Aa._E5._wa.texture._t5];if(!_s9.complete)return;if(!_s9._z9)_y9({texture:_s9});var _ra=_Aa.triangles.length;var _ob=_09._pb(_Wa._qb,_s9._z9,_09._rb,_ra);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_ra;
var _vb=_ob._wb;var _xb=_ob._yb;var _zb=_ob._Ab;var _Bb=index;for(var _c7=0;_c7<_ra;_c7++,_Bb+=_sb){var _Ja=_Aa.triangles[_c7];_vb[_Bb+0]=vertices[(_Ja*2)+0];_vb[_Bb+1]=vertices[(_Ja*2)+1];_vb[_Bb+2]=_Fb;_xb[_Bb+0]=_xb[_Bb+1]=_55;_zb[_Bb+0]=uvs[(_Ja*2)+0];_zb[_Bb+1]=uvs[(_Ja*2)+1];}};_V8.prototype._0a=function(slot,_96,_a6){var _E5=slot.attachment,vertices=[];_E5._va(slot.bone,vertices,0,2);var _7c,_8c,_9c,_ac;var _bc;_7c=_96-vertices[_J8];_8c=_a6-vertices[_K8];_9c=vertices[_L8]-vertices[_J8];_ac=vertices[_M8]-vertices[_K8];
_bc=(_7c*_ac)-(_8c*_9c);if(_bc>=0)return false;_7c=_96-vertices[_N8];_8c=_a6-vertices[_O8];_9c=vertices[_P8]-vertices[_N8];_ac=vertices[_Q8]-vertices[_O8];_bc=(_7c*_ac)-(_8c*_9c);if(_bc>=0)return false;_7c=_96-vertices[_L8];_8c=_a6-vertices[_M8];_9c=vertices[_N8]-vertices[_L8];_ac=vertices[_O8]-vertices[_M8];_bc=(_7c*_ac)-(_8c*_9c);if(_bc>=0)return false;_7c=_96-vertices[_P8];_8c=_a6-vertices[_Q8];_9c=vertices[_J8]-vertices[_P8];_ac=vertices[_K8]-vertices[_Q8];_bc=(_7c*_ac)-(_8c*_9c);if(_bc>=0)return false;
return true;};_V8.prototype._2a=function(slot,_96,_a6){var _Aa=slot.attachment,vertices=[];_Aa._va(slot,0,_Aa._Ba,vertices,0,2);var _7c,_8c,_9c,_ac;var _bc;var _sa=_Aa.triangles.length;for(var _c7=0;_c7<_sa;_c7+=3){var _Ja=_Aa.triangles[_c7+0];var _Ka=_Aa.triangles[_c7+1];var _La=_Aa.triangles[_c7+2];var _cc=vertices[(_Ja*2)+0];var _dc=vertices[(_Ja*2)+1];var _ec=vertices[(_Ka*2)+0];var _fc=vertices[(_Ka*2)+1];var _gc=vertices[(_La*2)+0];var _hc=vertices[(_La*2)+1];_7c=_96-_cc;_8c=_a6-_dc;_9c=_ec-_cc;_ac=_fc-_dc;
_bc=(_7c*_ac)-(_8c*_9c);if(_bc>=0)continue;_7c=_96-_ec;_8c=_a6-_fc;_9c=_gc-_ec;_ac=_hc-_fc;_bc=(_7c*_ac)-(_8c*_9c);if(_bc>=0)continue;_7c=_96-_gc;_8c=_a6-_hc;_9c=_cc-_gc;_ac=_dc-_hc;_bc=(_7c*_ac)-(_8c*_9c);if(_bc>=0)continue;return true;}return false;};_V8.prototype._4a=function(slot,_96,_a6){var _ic=slot.attachment,vertices=[];_ic._va(slot,0,_ic._Ba,vertices,0,2);var _7c,_8c,_9c,_ac;var _bc;var _jc=0;for(var _c7=0;_c7<((_ic._Ba)/2)-1;_c7++){var _cc=vertices[_jc+0];var _dc=vertices[_jc+1];_jc+=2;var _ec=vertices[_jc+0];
var _fc=vertices[_jc+1];_7c=_96-_cc;_8c=_a6-_dc;_9c=_ec-_cc;_ac=_fc-_dc;_bc=(_7c*_ac)-(_8c*_9c);if(_bc<=0){return false;}}var _cc=vertices[_jc+0];var _dc=vertices[_jc+1];var _ec=vertices[0];var _fc=vertices[1];_7c=_96-_cc;_8c=_a6-_dc;_9c=_ec-_cc;_ac=_fc-_dc;_bc=(_7c*_ac)-(_8c*_9c);if(_bc<=0){return false;}return true;};_V8.prototype._kc=function(_C8){for(var _c7=0;_c7<this._N3.animations.length;_c7++){ds_list_add(_C8,this._N3.animations[_c7].name);}};_V8.prototype._lc=function(_C8){for(var _c7=0;_c7<this._N3.skins.length;
_c7++){ds_list_add(_C8,this._N3.skins[_c7].name);}};_V8.prototype._mc=function(_C8){for(var _c7=0;_c7<this._N3.bones.length;_c7++){ds_list_add(_C8,this._N3.bones[_c7].name);}};_V8.prototype._nc=function(_C8){for(var _c7=0;_c7<this._N3.slots.length;_c7++){ds_list_add(_C8,this._N3.slots[_c7].name);}};_V8.prototype._B8=function(_C8){for(var _c7=0;_c7<this._N3.slots.length;_c7++){var _D8=this._N3.slots[_c7];var map=ds_map_create();ds_map_add(map,"name",_D8.name);ds_map_add(map,"bone",_D8._E8.name);ds_map_add(map,
"attachment",_D8._oc?_D8._oc:"(none)");ds_list_add(_C8,map);}};_V8.prototype._pc=function(_O4){var _D8=this._N3._Q4(_O4);if(_D8===null){return [];}var _qc=[];for(var _T4=0;_T4<this._N3.skins.length;_T4++){var skin=this._N3.skins[_T4];var _rc=[];skin._sc(_D8.index,_rc);for(var i=0;i<_rc.length;++i){_qc.push(_rc[i].name);}}_qc=_qc.filter(function(value,index,_tc){return _tc.indexOf(value)===index;});return _qc;};var _uc=1,_vc=2,_wc=3,_xc=4,_yc=5,_zc=6,_Ac=7;function _Bc(_Cc){switch(_Cc){case _uc:return _Wa._Dc;
case _vc:return _Wa._Ec;case _wc:return _Wa._Fc;case _xc:return _Wa._qb;case _yc:return _Wa._Gc;case _zc:return _Wa._Hc;case _Ac:return _Wa._qb;}return -1;}var draw_primitive_begin,draw_primitive_begin_texture,draw_vertex,draw_vertex_color,draw_vertex_colour,draw_vertex_texture,draw_vertex_texture_color,draw_vertex_texture_colour,draw_primitive_end;(()=>{let _Ic=(_w4)=>()=>_Jc(_w4);draw_primitive_begin=_Ic("draw_primitive_begin");draw_primitive_begin_texture=_Ic("draw_primitive_begin_texture");draw_vertex=_Ic("draw_vertex");
draw_vertex_color=_Ic("draw_vertex_color");draw_vertex_colour=draw_vertex_color;draw_vertex_texture=_Ic("draw_vertex_texture");draw_vertex_texture_color=_Ic("draw_vertex_texture_color");draw_vertex_texture_colour=draw_vertex_texture_color;draw_primitive_end=_Ic("draw_primitive_end");})();var _Kc=0,_Lc=-1,_Mc=null,_Nc=null;function _Oc(){draw_primitive_begin=_Pc;draw_primitive_begin_texture=_Qc;draw_vertex=_Rc;draw_vertex_color=_Sc;draw_vertex_colour=_Sc;draw_vertex_texture=_Tc;draw_vertex_texture_color=_Uc;
draw_vertex_texture_colour=_Uc;draw_primitive_end=_Vc;}function _Wc(){_Kc=0;_Lc=-1;_Mc=null;_Nc=null;}function _Pc(_Xc){_Qc(yyGetInt32(_Xc),-1);}function _Qc(_Xc,_a9){_Kc=yyGetInt32(_Xc);_Lc=null;_Mc=null;if(typeof(_a9)=="object"){_Lc=_a9._Yc;_Mc=_a9._Zc;}else if((_a9!=-1)&&_o5[yyGetInt32(_a9)]){_Lc=_o5[yyGetInt32(_a9)];}if(_Lc&&!_Lc._z9){_y9({texture:_Lc});}_Nc=new __c(_0d,_09._1d(_09._rb),false);}function _Rc(_96,_a6){var _sb=_Nc._tb()>>2;var index=_Nc._ub*_sb;_Nc._2d(1);_Nc._wb[index+0]=yyGetReal(_96);
_Nc._wb[index+1]=yyGetReal(_a6);_Nc._wb[index+2]=_Fb;_Nc._Ab[index+0]=0;_Nc._Ab[index+1]=0;_Nc._yb[index]=((_3d*255.0)<<24)|(_4d&0x00ffffff);}function _Sc(_96,_a6,_5d,_ga){var _sb=_Nc._tb()>>2;var index=_Nc._ub*_sb;_Nc._2d(1);_Nc._wb[index+0]=yyGetReal(_96);_Nc._wb[index+1]=yyGetReal(_a6);_Nc._wb[index+2]=_Fb;_Nc._Ab[index+0]=0;_Nc._Ab[index+1]=0;_Nc._yb[index]=((yyGetReal(_ga)*255.0)<<24)|_6d(yyGetInt32(_5d));}function _Tc(_96,_a6,_7d,_8d){var _sb=_Nc._tb()>>2;var index=_Nc._ub*_sb;_Nc._2d(1);_Nc._wb[index+0]=yyGetReal(_96);
_Nc._wb[index+1]=yyGetReal(_a6);_Nc._wb[index+2]=_Fb;var _9d=_ad(yyGetReal(_7d),yyGetReal(_8d));_Nc._Ab[index+0]=_9d._G5;_Nc._Ab[index+1]=_9d._H5;_Nc._yb[index]=((_3d*255.0)<<24)|(_4d&0x00ffffff);}function _Uc(_96,_a6,_7d,_8d,_5d,_ga){var _sb=_Nc._tb()>>2;var index=_Nc._ub*_sb;_Nc._2d(1);_Nc._wb[index+0]=yyGetReal(_96);_Nc._wb[index+1]=yyGetReal(_a6);_Nc._wb[index+2]=_Fb;var _9d=_ad(yyGetReal(_7d),yyGetReal(_8d));_Nc._Ab[index+0]=_9d._G5;_Nc._Ab[index+1]=_9d._H5;_Nc._yb[index]=((yyGetReal(_ga)*255.0)<<24)|_6d(yyGetInt32(_5d));
}function _Vc(){var _bd=_Bc(_Kc);if(_bd==-1){return;}var _cd=_Nc._dd.subarray(0,_Nc._ub*_Nc._tb());var _ed=_Lc?_Lc._z9:null;var _ob=_09._pb(_bd,_ed,_09._rb,_Nc._ub);_ob._dd.set(_cd,_ob._ub*_ob._tb());_ob._ub+=_Nc._ub;}function _ad(_7d,_8d){if(_Mc&&_Lc){return({_G5:(_Mc.x+(_7d*_Mc.CropWidth))/_Lc._fd,_H5:(_Mc.y+(_8d*_Mc.CropHeight))/_Lc._gd});}else {return({_G5:_7d,_H5:_8d});}};/*@constructor */function _hd(_id){var _jd=null,_kd=null,_ld=null,_md=false,_nd=null,_od;var _pd=0,_qd=0,_rd=0,_sd=0;var _td=this;(function(){
_jd=new ArrayBuffer(_id);_kd=new DataView(_jd);})();function _ud(_vd,_wd){var _xd=false;var _yd=_nd._zd;for(var i=0;i<_yd.length;i++){var _Ad=_yd[i];if(((_vd==-1)||(_Ad._Bd==_vd))&&(_Ad.type==_wd)){_xd=true;if((_Ad._Cd&_pd)===0){var _Dd=(_sd+_Ad.offset);_pd|=_Ad._Cd;if(_nd._Ed===_pd){_pd=0;_qd++;_sd+=_nd._Fd;if((_sd+_nd._Fd)>=_jd.byteLength){_td._Gd(_jd.byteLength*2);}}return _Dd;}}}if(_xd){debug("VERTEX BUILDER: element already written, must write the whole vertex first\n\n",true);return -1;}debug("VERTEX BUILDER: Vertex format does not contain selected type.\n\n",
true);return -1;};/*@this {yyVBufferBuilder} */this._Gd=function(_id){if(_jd.byteLength!=_id){var _Hd=new ArrayBuffer(_id);var _Id=new Int8Array(_jd);var _Jd=new Int8Array(_Hd);_Jd.set(_Id);_jd=_Hd;_kd=new DataView(_jd);}};/*@this {yyVBufferBuilder} */this._Kd=function(_Ld){_pd=0;_qd=0;_rd=0;_sd=0;_od=_Ld;_nd=_09._1d(_Ld);if(_nd._Fd>_jd.byteLength){this._Gd(_nd._Fd*36);}};/*@this {yyVBufferBuilder} */this._Md=function(){};this._Nd=function(){return _od;};this._Od=function(_Pd){_od=_Pd;_nd=_09._1d(_Pd);};
this._Qd=function(){return _09._1d(_od);};/*@this {yyVBufferBuilder} */this._Rd=function(x,y){var _Dd=_ud(_Wa._Sd,_Wa._Td);if(_Dd>=0){_kd.setFloat32(_Dd,x,true);_kd.setFloat32(_Dd+4,y,true);}};/*@this {yyVBufferBuilder} */this._Ud=function(x,y,z){var _Dd=_ud(_Wa._Sd,_Wa._Vd);if(_Dd>=0){_kd.setFloat32(_Dd,x,true);_kd.setFloat32(_Dd+4,y,true);_kd.setFloat32(_Dd+8,z,true);}};/*@this {yyVBufferBuilder} */this._Wd=function(_Xd,_ga){var _Dd=_ud(_Wa._Yd,_Wa._Zd);if(_Dd>=0){var __d=((_ga*255.0)<<24)|_6d(_Xd);
_kd.setUint32(_Dd,__d,true);}};/*@this {yyVBufferBuilder} */this._0e=function(_1e){var _Dd=_ud(_Wa._Yd,_Wa._Zd);if(_Dd>=0){var _55=((_1e&0xff)<<24)|((_1e&0xff00)<<8)|((_1e&0xff0000)>>8)|((_1e&0xff000000)>>24);_kd.setUint32(_Dd,_55,true);}};/*@this {yyVBufferBuilder} */this._2e=function(_3e){var _Dd=_ud(_Wa._Yd,_Wa._Zd);if(_Dd>=0){var _55=(_3e&0xff000000)|((_3e&0xff)<<16)|(_3e&0xff00)|((_3e&0xff0000)>>16);_kd.setUint32(_Dd,_55,true);}};/*@this {yyVBufferBuilder} */this._4e=function(_G5,_H5){var _Dd=_ud(_Wa._5e,
_Wa._Td);if(_Dd>=0){_kd.setFloat32(_Dd,_G5,true);_kd.setFloat32(_Dd+4,_H5,true);}};/*@this {yyVBufferBuilder} */this._6e=function(x,y,z){var _Dd=_ud(_Wa._7e,_Wa._Vd);if(_Dd>=0){_kd.setFloat32(_Dd,x,true);_kd.setFloat32(_Dd+4,y,true);_kd.setFloat32(_Dd+8,z,true);}};/*@this {yyVBufferBuilder} */this._8e=function(x){var _Dd=_ud(-1,_Wa._9e);if(_Dd>=0){_kd.setFloat32(_Dd,x,true);}};/*@this {yyVBufferBuilder} */this._ae=function(x,y){var _Dd=_ud(-1,_Wa._Td);if(_Dd>=0){_kd.setFloat32(_Dd,x,true);_kd.setFloat32(_Dd+4,
y,true);}};/*@this {yyVBufferBuilder} */this._be=function(x,y,z){var _Dd=_ud(-1,_Wa._Vd);if(_Dd>=0){_kd.setFloat32(_Dd,x,true);_kd.setFloat32(_Dd+4,y,true);_kd.setFloat32(_Dd+8,z,true);}};/*@this {yyVBufferBuilder} */this._ce=function(x,y,z,w){var _Dd=_ud(-1,_Wa._de);if(_Dd>=0){_kd.setFloat32(_Dd,x,true);_kd.setFloat32(_Dd+4,y,true);_kd.setFloat32(_Dd+8,z,true);_kd.setFloat32(_Dd+12,w,true);}};/*@this {yyVBufferBuilder} */this._ee=function(x,y,z,w){var _Dd=_ud(-1,_Wa._fe);if(_Dd>=0){_kd.setUint8(_Dd,
x,true);_kd.setUint8(_Dd+1,y,true);_kd.setUint8(_Dd+2,z,true);_kd.setUint8(_Dd+3,w,true);}};/*@this {yyVBufferBuilder} */this._ge=function(){var _he=new __c(_qd,_nd,false);var _ie=_qd*_nd._Fd;var _je=new Int8Array(_jd,0,_ie);_he._dd.set(_je);_he._ub+=_qd;_he._ge();_ld=_he;_md=true;_jd=null;_kd=null;};/*@this {yyVBufferBuilder} */this._ke=function(_le,_me,_ne,_oe){if(_ne===undefined)_ne=0;if(_oe===undefined)_oe=-1;if(_ne<0){_q5("vertex_submit_ext: offset cannot be a negative number!");return;}var vertexCount=(_oe<0)?_qd:_oe;
if(_ne+vertexCount>_qd){vertexCount=_qd-_ne;}if(vertexCount<=0){return;}if(_md){if(_me==-1){_09._pe(_le,null,_ld,_ne,vertexCount);}else {if(_me&&!_me._Yc._z9){_y9(_me._Zc);if(!_qe(_me._Yc._z9)){_q5("vertex_submit: trying to use an invalid texture");return;}}_09._pe(_le,_me._Yc._z9,_ld,_ne,vertexCount);}}else {var _ob;if(_me==-1){_ob=_09._pb(_le,null,_od,vertexCount);}else {if(_me&&!_me._Yc._z9){_y9(_me._Zc);if(!_qe(_me._Yc._z9)){_q5("vertex_submit: trying to use an invalid texture");return;}}_ob=_09._pb(_le,
_me._Yc._z9,_od,vertexCount);}var _re=_ob._ub*_nd._Fd;var _je=new Int8Array(_jd,_ne*_nd._Fd,vertexCount*_nd._Fd);_ob._dd.set(_je,_re);_ob._ub+=vertexCount;}};this._se=function(_te){_qd=_te;_rd=0;_sd=_te*_nd._Fd;};this._ue=function(){return _qd;};this._ve=function(){return _jd;};this._we=function(){return _md;};}var _xe=null;var _ye=[];/*@constructor */function _ze(){var _Ae=0,_Be=0.5;var _Ce;var _De=[];var _Ee=[];var _Fe=[];var _Ge=_Ae;var _He=_Be;Object.defineProperties(this,{_Ie:{get :function(){return _Ge;},set :function(_Je){
_Ge=_Je;}},_Ke:{get :function(){return _He;},set :function(_Je){_He=_Je;}}});/*@this {yyGamePad} */this._Le=function(_Me){_Ce=_Me.id;_Ee=_De.slice();_Fe=_Me.axes.slice();var _Ne=_Me.buttons;if(_Ne){for(var __4 in _Ne){if(!_Ne.hasOwnProperty(__4))continue;if(typeof(_Ne[__4])==="object"){_De[__4]=_Ne[__4].value;}else {_De[__4]=_Ne[__4];}}}};/*@this {yyGamePad} */this._Oe=function(){return _Ce||"";};/*@this {yyGamePad} */this._Pe=function(){if(_De){return _De.length;}return 0;};/*@this {yyGamePad} */this._Qe=function(_Re){
var _Se=_De[_Re];var _Te=_Ee[_Re];if((_Se!==undefined)&&(_Te!==undefined)){return((_Se>=_He)&&(_Te<_He));}return false;};/*@this {yyGamePad} */this._Ue=function(_Re){var _Se=_De[_Re];var _Te=_Ee[_Re];if((_Se!==undefined)&&(_Te!==undefined)){return((_Se<_He)&&(_Te>=_He));}return false;};/*@this {yyGamePad} */this._Ve=function(_Re){var _Se;if(typeof(_De[_Re])==="object"){_Se=_De[_Re].value;}else {_Se=_De[_Re];}if(_Se!==undefined){return(_Se>=_He);}return false;};/*@this {yyGamePad} */this._We=function(_Re){
var _Se;if(typeof(_De[_Re])==="object"){_Se=_De[_Re].value;}else {_Se=_De[_Re];}return _Se||0.0;};/*@this {yyGamePad} */this._Xe=function(){if(_Fe){return _Fe.length;}return 0;};/*@this {yyGamePad} */this._Ye=function(_Ze,__e){var _0f=_Fe[_Ze]||0;if(_Ge>0.0){var _1f=Math.abs(_0f);if(_1f<_Ge){_0f=0.0;}else {var sign=(_0f>=0)?1.0:-1.0;_0f=((_1f-_Ge)/(__e-_Ge))*sign;}}return _0f;};}/*@constructor */function _2f(){var _3f=1.0,_4f=1.0;var _5f=0,_6f=1;var _7f=0x8000,_8f=0x8001,_9f=0x8002,_af=0x8003,_bf=0x8004,_cf=0x8005,
_df=0x8006,_ef=0x8007,_ff=0x8008,_gf=0x8009,_hf=0x800A,_if=0x800B,_jf=0x800C,_kf=0x800D,_lf=0x800E,_mf=0x800F,_nf=0x8010,_of=0x8011,_pf=0x8012,_qf=0x8013,_rf=0x8014;var _sf=0,_tf=1,_uf=2,_vf=3,_wf=4,_xf=5,_yf=6,_zf=7,_Af=8,_Bf=9,_Cf=10,_Df=11,_Ef=12,_Ff=13,_Gf=14,_Hf=15;var _If=0,_Jf=1,_Kf=2,_Lf=3;function _Mf(){var api=null;try{api=_Nf();}catch(err){console.log("Failed to initialize the Gamepad API: "+err);}return(api!==null);}function _Nf(){if(navigator["getGamepads"]){return navigator["getGamepads"]();
}if(navigator["webkitGetGamepads"]){return navigator["webkitGetGamepads"]();}if(navigator["webkitGamepads"]){return navigator["webkitGamepads"]();}return null;}var _Of=_Mf()?_6f:_5f;var _Pf=[];function _Qf(){var gamepads=_Nf();if(gamepads!==null){var _Rf=0;for(_Rf=0;_Rf<gamepads.length;++_Rf){var _Sf=gamepads[_Rf];if(!_Sf&&_Pf[_Rf]){_Pf[_Rf]=undefined;var _Tf=_Uf._Vf(undefined,undefined,_Wf,undefined);_Tf.event_type="gamepad lost";_Tf._Xf=_Rf;_Tf._Yf=0;_Tf._Zf=true;}else {if(_Sf&&!_Pf[_Rf]){_Pf[_Rf]=new _ze();
if(_ye[_Rf]!==undefined){_Pf[_Rf]._Ie=_ye[_Rf];}var _Tf=_Uf._Vf(undefined,undefined,_Wf,undefined);_Tf.event_type="gamepad discovered";_Tf._Xf=_Rf;_Tf._Yf=0;_Tf._Zf=true;}if(_Pf[_Rf]){_Pf[_Rf]._Le(_Sf);}}}}}function __f(_Re){if(_Re<_7f){return _Re;}switch(_Re){case _8f:return _sf;case _9f:return _tf;case _af:return _uf;case _bf:return _vf;case _cf:return _wf;case _df:return _xf;case _ef:return _yf;case _ff:return _zf;case _gf:return _Af;case _hf:return _Bf;case _if:return _Cf;case _jf:return _Df;case _kf:return _Ef;case _lf:return _Ff;
case _mf:return _Gf;case _nf:return _Hf;}return 0;}function _0g(_Ze){if(_Ze<_7f){return _Ze;}switch(_Ze){case _of:return _If;case _pf:return _Jf;case _qf:return _Kf;case _rf:return _Lf;}return 0;}function _2f(){}/*@this {yyGamepadManager} */this._1g=function(){return _Pf.length;};/*@this {yyGamepadManager} */this._2g=function(_3g){var _4g=_Pf[_3g];if(_4g){return _4g._Oe();}return "";};/*@this {yyGamepadManager} */this._5g=function(){return(_Of!==_5f);};/*@this {yyGamepadManager} */this._Ke=function(_3g){var _4g=_Pf[_3g];
if(_4g){return _4g._Ke;}return 0.0;};/*@this {yyGamepadManager} */this._6g=function(_3g,_7g){var _4g=_Pf[_3g];if(_4g){if((_7g>=0.0)&&(_7g<=_3f)){_4g._Ke=_7g;}}};/*@this {yyGamepadManager} */this._Ie=function(_3g){var _4g=_Pf[_3g];if(_4g){return _4g._Ie;}else if(_ye[_3g]!==undefined){return _ye[_3g];}return 0.0;};/*@this {yyGamepadManager} */this._8g=function(_3g,_9g){_ye[_3g]=_9g;var _4g=_Pf[_3g];if(_4g){if((_9g>=0.0)&&(_9g<=_4f)){_4g._Ie=_9g;}}};/*@this {yyGamepadManager} */this._ag=function(){_Pf=[];};
/*@this {yyGamepadManager} */this._bg=function(){switch(_Of){case _6f:_Qf();break;case _5f:default :return;}};/*@this {yyGamepadManager} */this._cg=function(_3g){if(_Pf[_3g]!==null&&_Pf[_3g]!==undefined){return true;}return false;};/*@this {yyGamepadManager} */this._Pe=function(_3g){var _4g=_Pf[_3g];if(_4g){return _4g._Pe();}return 0;};/*@this {yyGamepadManager} */this._Xe=function(_3g){var _4g=_Pf[_3g];if(_4g){return _4g._Xe();}return 0;};/*@this {yyGamepadManager} */this._Ve=function(_3g,_Re){var _4g=_Pf[_3g];
if(_4g){return _4g._Ve(__f(_Re),_4g._Ke);}return false;};/*@this {yyGamepadManager} */this._Qe=function(_3g,_Re){var _4g=_Pf[_3g];if(_4g){return _4g._Qe(__f(_Re),_4g._Ke);}return false;};/*@this {yyGamepadManager} */this._Ue=function(_3g,_Re){var _4g=_Pf[_3g];if(_4g){return _4g._Ue(__f(_Re),_4g._Ke);}return false;};/*@this {yyGamepadManager} */this._We=function(_3g,_Re){var _4g=_Pf[_3g];if(_4g){return _4g._We(__f(_Re));}return 0;};/*@this {yyGamepadManager} */this._Ye=function(_3g,_Ze){var _4g=_Pf[_3g];if(_4g){
return _4g._Ye(_0g(_Ze),_4f);}return 0;};};var _dg=[];var _eg="None";var _fg=0;var _gg=0;/*@constructor */function _hg(){this.x=0;this.y=0;this._Ve=0;this._Qe=0;this._Ue=0;this._ig=0;};_hg.prototype._ag=function(){this._Ve=0;this._Qe=0;this._Ue=0;this._ig=0;};_hg.prototype._jg=function(_96,_a6){if(_c4){var _kg;if(!_c4._lg){_kg=_mg;}else {_kg=_c4._ng;}for(var _H5=0;_H5<_kg.length;_H5++){var _og=_kg[_H5];if(_og.visible){_pg(canvas,_qg);if(((_96-_qg.left)>=_og._rg)&&((_96-_qg.left)<_og._sg)&&((_a6-_qg.top)>=_og._tg)&&((_a6-_qg.top)<_og._ug)){
this.x=_og._vg(_96,_a6);this.y=_og._wg(_96,_a6);return;}}}}this.x=_96;this.y=_a6;};/*@constructor */function _xg(_yg,_96,_a6){this.id=_yg;this.x=_96;this.y=_a6;}function _zg(_Ag){for(var i=0;i<_dg.length;i++){if(_dg[i]===_Ag){return i;}}return -1;}function _Bg(_Ag){var _Cg=-1;for(var i=0;i<_dg.length;i++){if((_dg[i]===_Ag)||(_dg[i]===-1)){_Cg=i;break;}}if(_Cg==-1){_Cg=_dg.length;}_dg[_Cg]=_Ag;_Dg[_Cg]=new _hg();return _Cg;}function _Eg(event){for(var _Fg=0;_Fg<event.changedTouches.length;_Fg++){var _Gg=event.changedTouches[_Fg];
var type="";var _Cg=-1;_eg=event.type;switch(event.type){case "touchstart":_Cg=_Bg(_Gg["identifier"]);break;case "touchend":_Cg=_zg(_Gg["identifier"]);_dg[_Cg]=-1;break;case "touchcancel":_Cg=_zg(_Gg["identifier"]);_dg[_Cg]=-1;break;case "touchmove":_Cg=_zg(_Gg["identifier"]);break;default :return;}var _Hg;var _Ig;_Hg=_Gg.clientX;_Ig=_Gg.clientY;if(_Cg==0){if(_Jg!=null){_Kg=_Hg;_Lg=_Ig;}switch(event.type){case "touchstart":_Mg=1;break;case "touchmove":_Mg=1;break;case "touchcancel":case "touchend":_Mg=0;break;
}}_Dg[_Cg]._jg(_Hg,_Ig);_Ng[_Cg].x=_Hg;_Ng[_Cg].y=_Ig;switch(event.type){case "touchstart":_Dg[_Cg]._Ve=1;_Ng[_Cg]._Og=_Pg|_Qg|_Rg;break;case "touchcancel":case "touchend":_Dg[_Cg]._Ve=0;_Ng[_Cg]._Og=0;break;case "touchmove":default :break;}event.preventDefault();}}function _Sg(e){var _Tg=(window["wallpaperMediaIntegration"]||window["wallpaperRegisterAudioListener"]);var _Cg=-1;var type="";var button=0;var buttons=0;switch(e.type){case 'mousemove':_Cg=0;button=e.button;buttons=e.buttons;break;case 'touchstart':case 'touchmove':case 'touchend':_Eg(e);
break;case 'pointerdown':case 'MSPointerDown':_Cg=_Bg(e["pointerId"]);type="start";button=e.button;buttons=e.buttons;break;case 'pointermove':case 'MSPointerMove':case 'pointerover':_Cg=_zg(e["pointerId"]);if(_Tg&&(_Cg==-1)){_Sg({"type":'pointerdown',"pointerId":e["pointerId"],"button":1,"buttons":1,"clientX":e.clientX,"clientY":e.clientY,"preventDefault":function(){}});_Cg=_zg(e["pointerId"]);}button=e.button;buttons=e.buttons;type="move";break;case 'pointerup':case 'MSPointerUp':case 'pointercancel':case 'MSPointerCancel':case 'pointerout':case 'MSPointerOut':_Cg=_zg(e["pointerId"]);
if(_Tg&&(_Cg==-1)){_Sg({"type":'pointerdown',"pointerId":e["pointerId"],"button":1,"buttons":1,"clientX":e.clientX,"clientY":e.clientY,"preventDefault":function(){}});_Cg=_zg(e["pointerId"]);}type="end";button=e.button;buttons=e.buttons;_dg[_Cg]=-1;break;}if(_Cg>=0){var _Hg=e.clientX;var _Ig=e.clientY;if(_Cg==0){if(_Jg!=null){_Kg=_Hg;_Lg=_Ig;}switch(type){case "start":case "move":{_Ug=0;if(e.pointerType=="mouse"){_Ug=button;}if(button!=-1){if(_Ug==2)_Ug=1;else if(_Ug==1)_Ug=2;if(buttons<_Mg){_Vg=-1;}
else {_Wg=_Ug;_Vg=_Ug;}}}break;case "end":_Vg=-1;break;}_Mg=buttons;}_Dg[_Cg]._jg(_Hg,_Ig);_Ng[_Cg].x=_Hg;_Ng[_Cg].y=_Ig;switch(type){case "start":_Dg[_Cg]._Ve=1;_Ng[_Cg]._Og=_Pg|_Qg|_Rg;break;case "end":_Dg[_Cg]._Ve=0;_Ng[_Cg]._Og=0;break;case "move":default :break;}}e.preventDefault();}function _Xg(){if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){canvas.addEventListener("pointerdown",_Sg,false);canvas.addEventListener("pointermove",_Sg,false);canvas.addEventListener("pointerup",
_Sg,false);canvas.addEventListener("pointercancel",_Sg,false);canvas.addEventListener("pointerover",_Sg,false);canvas.addEventListener("pointerout",_Sg,false);canvas.addEventListener("MSPointerDown",_Sg,false);canvas.addEventListener("MSPointerMove",_Sg,false);canvas.addEventListener("MSPointerUp",_Sg,false);canvas.addEventListener("MSPointerCancel",_Sg,false);canvas.addEventListener("MSPointerOver",_Sg,false);canvas.addEventListener("MSPointerOut",_Sg,false);}else {canvas.ontouchstart=_Eg;canvas.ontouchmove=_Eg;
canvas.ontouchend=_Eg;canvas.ontouchcancel=_Eg;}canvas.style.touchAction="none";}_Yg:(function(window){if(!Object.defineProperty){throw("Font.js requires Object.defineProperty, which this browser does not support.");}if(!document.createElement("canvas").getContext){throw("Font.js requires <canvas> and the Canvas2D API, which this browser does not support.");}(function(window){try{var _05=new Uint8Array(1);return;}catch(e){}function subarray(start,end){return this.slice(start,end);}function _Zg(_tc,offset){
var i,_c7=_tc.length;if(arguments.length<2){offset=0;}for(i=0;i<_c7;++i,++offset){this[offset]=_tc[i]&0xFF;}}function __g(_0h){var result,i;if(typeof _0h==="number"){result=new Array(_0h);for(i=0;i<_0h;++i){result[i]=0;}}else {result=_0h.slice(0);}result.subarray=subarray;result.buffer=result;result.byteLength=result.length;result.set =_Zg;if(typeof _0h==="object"&&_0h.buffer){result.buffer=_0h.buffer;}return result;}window.Uint8Array=__g;window.Uint32Array=__g;window.Int32Array=__g;}(window));(function(window){
if(window.opera)return;if("response" in XMLHttpRequest.prototype||"mozResponseArrayBuffer" in XMLHttpRequest.prototype||"mozResponse" in XMLHttpRequest.prototype||"responseArrayBuffer" in XMLHttpRequest.prototype){return;}var getter;if(window.VBArray){getter=function(){return new Uint8Array(new window.VBArray(this.responseBody)._1h());};}else {getter=function(){return this.responseBody;};}Object.defineProperty(XMLHttpRequest.prototype,"response",{get:getter});}(window));if(!window.btoa){window.btoa=function(data){
var _2h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _3h,_4h,_5h,_6h,_7h,_8h,_9h,_ah,i=0,_bh=0,_ch="",_dh=[];if(!data){return data;}do {_3h=data.charCodeAt(i++);_4h=data.charCodeAt(i++);_5h=data.charCodeAt(i++);_ah=_3h<<16|_4h<<8|_5h;_6h=_ah>>18&0x3f;_7h=_ah>>12&0x3f;_8h=_ah>>6&0x3f;_9h=_ah&0x3f;_dh[_bh++]=_2h.charAt(_6h)+_2h.charAt(_7h)+_2h.charAt(_8h)+_2h.charAt(_9h);}while(i<data.length);_ch=_dh.join('');var _Y4=data.length%3;return(_Y4?_ch.slice(0,_Y4-3):_ch)+'==='.slice(_Y4||3);
};}function Font(){this._eh="fjs"+(999999*Math.random()|0);}Font.prototype._fh="";Font.prototype._gh="";Font.prototype.data="";Font.prototype._hh="AAEAAAAKAIAAAwAgT1MvMgAAAAAAAACsAAAAWGNtYXAA"+"AAAAAAABBAAAACxnbHlmAAAAAAAAATAAAAAQaGVhZAAAA"+"AAAAAFAAAAAOGhoZWEAAAAAAAABeAAAACRobXR4AAAAAA"+"AAAZwAAAAIbG9jYQAAAAAAAAGkAAAACG1heHAAAAAAAAA"+"BrAAAACBuYW1lAAAAAAAAAcwAAAAgcG9zdAAAAAAAAAHs"+"AAAAEAAEAAEAZAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAABAAMAAQA"+"AAAwABAAgAAAABAAEAAEAAABB//8AAABB////wAABAAAA"+"AAABAAAAAAAAAAAAAAAAMQAAAQAAAAAAAAAAAABfDzz1A"+"AAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAEAAg"+"AAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAQAAAAAAAAAAAAAAAAAIAAAAAQAAAAIAAQAB"+"AAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIAHgADAAEEC"+"QABAAAAAAADAAEECQACAAIAAAAAAAEAAAAAAAAAAAAAAA"+"AAAA==";
Font.prototype._ih={_jh:0,_kh:0,_lh:0,_mh:0,_nh:400};Font.prototype._oh=false;Font.prototype._ph=false;Font.prototype.onload=function(){};Font.prototype.onerror=function(){};Font.prototype.canvas=false;Font.prototype.context=false;Font.prototype.validate=function(target,_qh,_rh,font,_sh){if(_sh!==false&&_sh<0){this.onerror("Requested system font '"+this._eh+"' could not be loaded (it may not be installed).");return;}var _th=document.defaultView.getComputedStyle(target,'');var width=_th.getPropertyValue("width").replace("px",
'');if(width>0){document.head.removeChild(_qh);document.body.removeChild(target);this._ph=true;this.onload();}else {setTimeout(function(){font.validate(target,_qh,_rh,font,_sh===false?false:_sh-50);},50);}};Font.prototype._uh=function(){var instance=this;var chr=function(_Je){return String.fromCharCode(_Je);};var _vh=function(_Je){if(_Je<256){return chr(0)+chr(_Je);}var _wh=_Je>>8;var _xh=_Je&0xFF;return chr(_wh)+chr(_xh);};var _yh=function(_Je){if(_Je<0){_Je=0xFFFFFFFF+_Je+1;}return parseInt(_Je,10).toString(16);
};var _zh=function(_wh,_xh){return 256*_wh+_xh;};var _Ah=function(_wh,_xh){var _Bh=_wh>>7===1,_Je;_wh=_wh&0x7F;_Je=256*_wh+_xh;if(!_Bh){return _Je;}return _Je-0x8000;};var _Ch=function(_wh,_xh,_Dh,_Eh){return 16777216*_wh+65536*_xh+256*_Dh+_Eh;};var error=function(_Fh){instance.onerror(_Fh);};var _Gh=chr(0)+chr(1)+chr(0)+chr(0);var _Hh="OTTO";var data=this.data;var version=chr(data[0])+chr(data[1])+chr(data[2])+chr(data[3]);var _Ih=(version===_Gh);var _Jh=(_Ih?false:version===_Hh);if(_Ih){this._gh="truetype";}
else if(_Jh){this._gh="opentype";}else {error("Error: file at "+this._fh+" cannot be interpreted as OpenType font.");return;}var _Kh=_zh(data[4],data[5]),_Lh=12,ptr,end=_Lh+16*_Kh,tags={},_Mh;for(ptr=_Lh;ptr<end;ptr+=16){_Mh=chr(data[ptr])+chr(data[ptr+1])+chr(data[ptr+2])+chr(data[ptr+3]);tags[_Mh]={name:_Mh,_Nh:_Ch(data[ptr+4],data[ptr+5],data[ptr+6],data[ptr+7]),offset:_Ch(data[ptr+8],data[ptr+9],data[ptr+10],data[ptr+11]),length:_Ch(data[ptr+12],data[ptr+13],data[ptr+14],data[ptr+15])};}var _Oh=function(_Mh){
if(!tags[_Mh]){error("Error: font is missing the required OpenType '"+_Mh+"' table.");return false;}return _Mh;};_Mh=_Oh("head");if(_Mh===false){return;}ptr=tags[_Mh].offset;tags[_Mh].version=""+data[ptr]+data[ptr+1]+data[ptr+2]+data[ptr+3];var _Ph=_zh(data[ptr+18],data[ptr+19]);this._ih._jh=_Ph;_Mh=_Oh("hhea");if(_Mh===false){return;}ptr=tags[_Mh].offset;tags[_Mh].version=""+data[ptr]+data[ptr+1]+data[ptr+2]+data[ptr+3];this._ih._lh=_Ah(data[ptr+4],data[ptr+5])/_Ph;this._ih._mh=_Ah(data[ptr+6],data[ptr+7])/_Ph;
this._ih._kh=_Ah(data[ptr+8],data[ptr+9])/_Ph;_Mh=_Oh("OS/2");if(_Mh===false){return;}ptr=tags[_Mh].offset;tags[_Mh].version=""+data[ptr]+data[ptr+1];this._ih._nh=_zh(data[ptr+4],data[ptr+5]);_Mh=_Oh("cmap");if(_Mh===false){return;}ptr=tags[_Mh].offset;tags[_Mh].version=""+data[ptr]+data[ptr+1];_Kh=_zh(data[ptr+2],data[ptr+3]);var _Qh,_Rh,_Sh,_Th,offset,_Uh=false;for(_Qh=0;_Qh<_Kh;_Qh++){_Rh=ptr+4+_Qh*8;_Sh=_zh(data[_Rh],data[_Rh+1]);_Th=_zh(data[_Rh+2],data[_Rh+3]);offset=_Ch(data[_Rh+4],data[_Rh+5],
data[_Rh+6],data[_Rh+7]);if(_Sh===3&&_Th===1){_Uh=offset;}}var _Vh="A";this._Wh=[];if(_Uh!==false){ptr+=_Uh;version=_zh(data[ptr],data[ptr+1]);if(version===4){var _Xh=_zh(data[ptr+6],data[ptr+7])/2;var _Yh=function(chr){return [0x0009,0x000A,0x000B,0x000C,0x000D,0x0020,0x0085,0x00A0,0x1680,0x180E,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200A,0x2028,0x2029,0x202F,0x205F,0x3000].indexOf(chr)===-1;};var i=ptr+14,e=ptr+14+2*_Xh,_Zh=false;for(;i<e;i+=2){_Zh=_zh(data[i],data[i+1]);
if(_Yh(_Zh)){break;}_Zh=false;}var __h=e+2;for(;i<e;i+=2,__h+=2){var _0i=_zh(data[i],data[i+1]);var _1i=_zh(data[__h],data[__h+1]);if(_0i!=0xffff){for(var _c7=_1i;_c7<=_0i;++_c7){this._Wh.push(_c7);}}}if(_Zh!==false){_Vh=String.fromCharCode(_Zh);var _2i=-(_Zh-1)+65536;var _3i=btoa(chr(0)+_vh(_Zh)+_vh(0xFFFF)+_vh(0)+_vh(_Zh)+_vh(0xFFFF)+_vh(_2i)+_vh(1));this._hh=this._hh.substring(0,380)+_3i+this._hh.substring(380+_3i.length);}}}this._4i(_Vh,false);};Font.prototype._4i=function(_Vh,_sh){var _5i=this._eh+" testfont";
var _6i=document.createElement("style");_6i.setAttribute("type","text/css");_6i.innerHTML="@font-face {\n"+"  font-family: '"+_5i+"';\n"+"  src: url('data:application/x-font-ttf;base64,"+this._hh+"')\n"+"       format('truetype');}";document.head.appendChild(_6i);var _7i=false;if(!this._oh){_7i=this._8i();document.head.appendChild(_7i);}var _9i=document.createElement("p");_9i.style.cssText="position: absolute; top: 0; left: 0; opacity: 0;";_9i.style._eh="'"+this._eh+"', '"+_5i+"'";_9i.innerHTML=_Vh+_Vh+_Vh+_Vh+_Vh+_Vh+_Vh+_Vh+_Vh+_Vh;
document.body.appendChild(_9i);if(!document.defaultView.getComputedStyle){this.onload();_ai("Error: document.defaultView.getComputedStyle is not supported by this browser.\n"+"Consequently, Font.onload() cannot be trusted.");}else {var _bi=this._oh?1000:this._ih._jh;var canvas=document.createElement("canvas");canvas.width=_bi;canvas.height=_bi;this.canvas=canvas;var context=canvas.getContext("2d");context.font="1em '"+this._eh+"'";context.fillStyle="white";context.fillRect(-1,-1,_bi+2,_bi+2);context.fillStyle="black";
context.fillText("test text",50,_bi/2);this.context=context;var _ci=this;var _di=function(){_ci.validate(_9i,_6i,_7i,_ci,_sh);};setTimeout(_di,50);}};Font.prototype._ei=function(){this._oh=true;this._ih=false;this._4i("A",1000);};Font.prototype._fi=function(){var font=this;if(this._fh.indexOf(".")===-1){setTimeout(function(){font._ei();},10);return;}var _gi=new XMLHttpRequest();_gi.open('GET',font._fh,true);_gi.responseType="arraybuffer";_gi.onload=function(_hi){var _ii=_gi.response;if(_ii){font.data=new Uint8Array(_ii);
font._uh();}else {font.onerror("Error downloading font resource from "+font._fh);}};_gi.send(null);};Font.prototype._ji=false;Font.prototype._8i=function(){if(this._ji){return this._ji;}this._ji=document.createElement("style");this._ji.type="text/css";var _ki="@font-face {\n";_ki+="  font-family: '"+this._eh+"';\n";_ki+="  src: url('"+this._fh+"') format('"+this._gh+"');\n";_ki+="}";this._ji.innerHTML=_ki;return this._ji;};Font.prototype.measureText=function(_li,_mi){if(!this._ph){console.log("Error:measureText() was called while the font was not yet loaded");
return false;}this.context.font=_mi+"px '"+this._eh+"'";var _ih=this.context.measureText(_li);_ih.fontsize=_mi;_ih._lh=0;_ih._mh=0;_ih._ni={_oi:0,_pi:_ih.width,_qi:0,_ri:0};_ih.height=0;var _si=[],_ti=_ih.width/this._ih._jh;if(_ti<=1){_si.push(_li);}else {_si.push(_li);}var _ui=_si.length,i;for(i=0;i<_ui;i++){this._vi(_si[i],_mi,_ih);}return _ih;};Font.prototype._vi=function(_wi,_mi,_ih){var _xi=function(_Ad,_yi){return document.defaultView.getComputedStyle(_Ad,null).getPropertyValue(_yi);};var i,_J6,_zi,
_Ai,_Bi;var _Ci=document.createElement("div");_Ci.style.position="absolute";_Ci.style.opacity=0;_Ci.style.font=_mi+"px '"+this._eh+"'";var _Di=10;_Ci.innerHTML=_wi;for(i=1;i<_Di;i++){_Ci.innerHTML+="<br/>"+_wi;}document.body.appendChild(_Ci);_ih._kh=1.2*_mi;var _Ei=_xi(_Ci,"height");_Ei=_Ei.replace("px","");if(_Ei>=_mi*_Di){_ih._kh=(_Ei/_Di)|0;}document.body.removeChild(_Ci);if(new RegExp('^\s*$').test(_wi)){return _ih;}var canvas=this.canvas,_Lb=this.context,_bi=this._oh?1000:this._ih._jh,w=_bi,h=_bi,
_Fi=_bi/2,padding=50,_Gi=(_bi-_ih.width)/2;if(_Gi!==(_Gi|0)){_Gi=_Gi|0;}_Lb.fillStyle="white";_Lb.fillRect(-padding,-padding,w+2*padding,h+2*padding);_Lb.fillStyle="black";_Lb.fillText(_wi,_Gi,_Fi);var _Hi=(_ih.width+padding)|0,_Ii=4*_mi,_Ji=_Gi-padding/2,_Ki=_Fi-_Ii/2,_Li=_Lb.getImageData(_Ji,_Ki,_Hi,_Ii).data;i=0;_J6=0;_zi=_Hi*4;_Ai=_Li.length;_Bi=_Ii/2;while(++i<_Ai&&_Li[i]===255){}var _lh=(i/_zi)|0;i=_Ai-1;while(--i>0&&_Li[i]===255){}var _mh=(i/_zi)|0;for(i=0,_J6=0;_J6<_Hi&&_Li[i]===255;){i+=_zi;
if(i>=_Ai){_J6++;i=(i-_Ai)+4;}}var _oi=_J6;var step=1;for(i=_Ai-3,_J6=0;_J6<_Hi&&_Li[i]===255;){i-=_zi;if(i<0){_J6++;i=(_Ai-3)-(step++)*4;}}var _pi=_Hi-_J6;_ih._lh=(_Bi-_lh);_ih._mh=(_mh-_Bi);_ih._ni={_oi:_oi-(padding/2),_pi:_pi-(padding/2),_qi:-_ih._mh,_ri:_ih._lh};_ih.height=1+(_mh-_lh);return _ih;};Object.defineProperty(Font.prototype,"src",{set:function(_fh){this._fh=_fh;this._fi();}});window.Font=Font;}(window));_Yg:var _Mi,_Ni,_Oi,_Pi,_Qi,_Ri,_Si;function ds_set_precision(_Ti){_Ui=yyGetReal(_Ti);
}/*@constructor */function _Vi(){this.width=0;this.height=0;this.body=[];}/*@constructor */function _Wi(_Xi,_Yi){this._Zi=[];this._fd=_Xi;this._gd=_Yi;var _s7=_Xi*_Yi;for(var i=0;i<_s7;i++){this._Zi[i]=0;}}_Wi.prototype.__i=function(_0j){this._fd=_0j._fd;this._gd=_0j._gd;this._Zi=_0j._Zi.slice();};function ds_grid_create(_Xi,_Yi){_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);if(_Xi<0||_Yi<0){_q5("Error: Invalid ds_grid size: ("+_Xi+","+_Yi+")");}var _1j=new _Wi(_Xi,_Yi);var id=_2j._Vf(_1j);return id;}function ds_grid_destroy(_yg){
_2j._3j(yyGetInt32(_yg));}function ds_grid_copy(_yg,_4j){var _5j=_2j._n6(yyGetInt32(_yg));if(!_5j){_q5("Error: invalid dest ds_grid(copy)");return;}var _6j=_2j._n6(yyGetInt32(_4j));if(!_6j){_q5("Error: invalid source ds_grid(copy)");return;}_5j.__i(_6j);}function ds_grid_resize(_yg,_Xi,_Yi){_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);_yg=yyGetInt32(_yg);if(_Xi<0||_Yi<0){_q5("Error: Can't resize grid to ("+string(_Xi)+","+string(_Yi)+")");return;}var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid dest ds_grid(copy)");
return;}var _7j=new _Wi(_Xi,_Yi);var i=_2j._Vf(_7j);ds_grid_set_grid_region(i,_yg,0,0,_1j._fd-1,_1j._gd-1,0,0);_2j._3j(i);_2j.Set(_yg,_7j);}function ds_grid_width(_yg){var _1j=_2j._n6(yyGetInt32(_yg));if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_width)");return;}return _1j._fd;}function ds_grid_height(_yg){var _1j=_2j._n6(yyGetInt32(_yg));if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_height)");return;}return _1j._gd;}function ds_grid_clear(_yg,_k4){var _1j=_2j._n6(yyGetInt32(_yg));if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_height)");
return;}for(var i=0;i<_1j._Zi.length;i++){_1j._Zi[i]=_k4;}}var ds_grid_set=_8j;function _8j(_yg,_96,_a6,_k4){_yg=yyGetInt32(_yg);_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set)");return;}if(_96<0||_96>=_1j._fd||_a6<0||_a6>=_1j._gd){_q5("Error: grid out of bounds(set) - GridID: "+_yg+"  size["+_1j._fd+","+_1j._gd+"]  at  ("+_96+","+_a6+")");return;}_1j._Zi[_96+(_a6*_1j._fd)]=_k4;}function _9j(_yg,_96,_a6,_k4){_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);
var _1j=_2j._n6(yyGetInt32(_yg));if((_96<0)||(_96>=_1j._fd)||(_a6<0)||(_a6>=_1j._gd)){return;}_1j._Zi[_96+(_a6*_1j._fd)]=_k4;}var ds_grid_set_pre=_aj;function _aj(_yg,_96,_a6,_k4){_yg=yyGetInt32(_yg);_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set)");return _k4;}if(_96<0||_96>=_1j._fd||_a6<0||_a6>=_1j._gd){_q5("Error: grid out of bounds(set) - GridID: "+_yg+"  size["+_1j._fd+","+_1j._gd+"]  at  ("+_96+","+_a6+")");return _k4;}_1j._Zi[_96+(_a6*_1j._fd)]=_k4;
return _k4;}function _bj(_yg,_96,_a6,_k4){_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);var _1j=_2j._n6(yyGetInt32(_yg));if((_96<0)||(_96>=_1j._fd)||(_a6<0)||(_a6>=_1j._gd)){return _k4;}_1j._Zi[_96+(_a6*_1j._fd)]=_k4;return _k4;}var ds_grid_set_post=_cj;function _cj(_yg,_96,_a6,_k4){_yg=yyGetInt32(_yg);_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set)");return _k4;}if(_96<0||_96>=_1j._fd||_a6<0||_a6>=_1j._gd){_q5("Error: grid out of bounds(set) - GridID: "+_yg+"  size["+_1j._fd+","+_1j._gd+"]  at  ("+_96+","+_a6+")");
return _k4;}var _95=_1j._Zi[_96+(_a6*_1j._fd)];_1j._Zi[_96+(_a6*_1j._fd)]=_k4;return _95;}function _dj(_yg,_96,_a6,_k4){_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);var _1j=_2j._n6(yyGetInt32(_yg));if((_96<0)||(_96>=_1j._fd)||(_a6<0)||(_a6>=_1j._gd)){return _k4;}var _95=_1j._Zi[_96+(_a6*_1j._fd)];_1j._Zi[_96+(_a6*_1j._fd)]=_k4;return _95;}function ds_grid_add(_yg,_96,_a6,_k4){_yg=yyGetInt32(_yg);_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_add)");
return;}if(_96<0||_96>=_1j._fd||_a6<0||_a6>=_1j._gd){_q5("Error: grid out of bounds(ds_grid_add): "+_yg+" ("+_96+","+_a6+")");return;}var index=_96+(_a6*_1j._fd);var _ej=_1j._Zi[index];var _fj=typeof(_ej);var _gj=typeof(_k4);if(_fj==_gj&&(_fj=="number"||_fj=="string")){_1j._Zi[index]+=_k4;}else if(_fj!="object"||_gj!="object"){_1j._Zi[index]=_k4;}else if(_fj!="string"&&_gj!="string"){_1j._Zi[index]=yyGetReal(_ej)+yyGetReal(_k4);}else _1j._Zi[index]=_k4;}function ds_grid_multiply(_yg,_96,_a6,_k4){_yg=yyGetInt32(_yg);
_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_multiply)");return;}if(_96<0||_96>=_1j._fd||_a6<0||_a6>=_1j._gd){_q5("Error: grid out of bounds(ds_grid_multiply): "+_yg+" ("+_96+","+_a6+")");return;}var index=_96+(_a6*_1j._fd);var _ej=_1j._Zi[index];var _fj=typeof(_ej);if(typeof(_k4)=="string"||_fj=="string")return;_1j._Zi[index]=yyGetReal(_ej)*yyGetReal(_k4);}function ds_grid_set_region(_yg,_F7,_G7,_77,_87,_k4){_yg=yyGetInt32(_yg);_F7=yyGetInt32(_F7);
_G7=yyGetInt32(_G7);_77=yyGetInt32(_77);_87=yyGetInt32(_87);if(_F7>_77){var _s7=_F7;_F7=_77;_77=_s7;}if(_G7>_87){var _s7=_G7;_G7=_87;_87=_s7;}var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set_region)");return;}var _hj=_q7(0,_r7(_G7,_87));var _ij=_r7(_1j._gd-1,_q7(_G7,_87));var _jj=_q7(0,_r7(_F7,_77));var _kj=_r7(_1j._fd-1,_q7(_F7,_77));for(var y=_hj;y<=_ij;y++){for(var x=_jj;x<=_kj;x++){var index=(y*_1j._fd)+x;_1j._Zi[index]=_k4;}}}function ds_grid_add_region(_yg,_F7,_G7,_77,_87,_k4){
_yg=yyGetInt32(_yg);_F7=yyGetInt32(_F7);_G7=yyGetInt32(_G7);_77=yyGetInt32(_77);_87=yyGetInt32(_87);if(_F7>_77){var _s7=_F7;_F7=_77;_77=_s7;}if(_G7>_87){var _s7=_G7;_G7=_87;_87=_s7;}var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_add_region)");return;}if((_F7<0||_F7>=_1j._fd||_G7<0||_G7>=_1j._gd)||(_77<0||_77>=_1j._fd||_87<0||_87>=_1j._gd)){_q5("Error: region out of bounds(ds_grid_add_region): "+_yg);}for(var y=_G7;y<=_87;y++){var index=(y*_1j._fd)+_F7;for(var x=_F7;x<=_77;x++){var _ej=_1j._Zi[index];
var _fj=typeof(_ej);var _gj=typeof(_k4);if(_fj==_gj&&(_fj=="number"||_fj=="string")){_1j._Zi[index]+=_k4;}else if(_fj!="object"||_gj!="object"){_1j._Zi[index]=_k4;}else if(_fj!="string"&&_gj!="string"){_1j._Zi[index]=yyGetReal(_ej)+yyGetReal(_k4);}else _1j._Zi[index]=_k4;index++;}}}function ds_grid_multiply_region(_yg,_F7,_G7,_77,_87,_k4){_yg=yyGetInt32(_yg);_F7=yyGetInt32(_F7);_G7=yyGetInt32(_G7);_77=yyGetInt32(_77);_87=yyGetInt32(_87);if(_F7>_77){var _s7=_F7;_F7=_77;_77=_s7;}if(_G7>_87){var _s7=_G7;_G7=_87;
_87=_s7;}var _1j=_2j._n6(_yg);if(_1j==null||_1j==undefined){_q5("Error: invalid ds_grid ID (ds_grid_multiply_region)");return;}if((_F7<0||_F7>=_1j._fd||_G7<0||_G7>=_1j._gd)||(_77<0||_77>=_1j._fd||_87<0||_87>=_1j._gd)){_q5("Error: region out of bounds(ds_grid_multiply_region): "+_yg);}for(var y=_G7;y<=_87;y++){var index=(y*_1j._fd)+_F7;for(var x=_F7;x<=_77;x++){var _ej=_1j._Zi[index];var _fj=typeof(_ej);if(typeof(_k4)=="string"||_fj=="string")continue;_1j._Zi[index]=yyGetReal(_ej)*yyGetReal(_k4);index++;
}}}function ds_grid_set_disk(_yg,_96,_a6,_lj,_k4){_yg=yyGetInt32(_yg);_96=yyGetReal(_96);_a6=yyGetReal(_a6);_lj=yyGetReal(_lj);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _f7=0;var _g7=0;var _h7=0;var _i7=0;var i=0;var _J6=0;_f7=~~(_q7(0.0,Math.floor(_96-_lj)));_h7=~~(_r7(_1j._fd-1,Math.ceil(_96+_lj)));_g7=~~(_q7(0,Math.floor(_a6-_lj)));_i7=~~(_r7(_1j._gd-1,Math.ceil(_a6+_lj)));_lj=_lj*_lj;var w=_1j._fd;for(i=_f7;i<=_h7;i++){var _mj=(i-_96)*(i-_96);for(_J6=_g7;
_J6<=_i7;_J6++){var _nj=_J6-_a6;if(_mj+(_nj*_nj)<=_lj){if(i>=0&&i<_1j._fd&&_J6>=0&&_J6<_1j._gd){_1j._Zi[i+(_J6*w)]=_k4;}}}}}function ds_grid_add_disk(_yg,_96,_a6,_lj,_k4){_yg=yyGetInt32(_yg);_96=yyGetReal(_96);_a6=yyGetReal(_a6);_lj=yyGetReal(_lj);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _f7=0;var _g7=0;var _h7=0;var _i7=0;var i=0;var _J6=0;_f7=~~(_q7(0.0,Math.floor(_96-_lj)));_h7=~~(_r7(_1j._fd-1,Math.ceil(_96+_lj)));_g7=~~(_q7(0,Math.floor(_a6-_lj)));
_i7=~~(_r7(_1j._gd-1,Math.ceil(_a6+_lj)));_lj=_lj*_lj;var w=_1j._fd;for(i=_f7;i<=_h7;i++){var _mj=(i-_96)*(i-_96);for(_J6=_g7;_J6<=_i7;_J6++){var _nj=_J6-_a6;if(_mj+(_nj*_nj)<=_lj){if(i>=0&&i<_1j._fd&&_J6>=0&&_J6<_1j._gd){var index=i+(_J6*w);var _ej=_1j._Zi[index];var _fj=typeof(_ej);var _gj=typeof(_k4);if(_fj==_gj&&(_fj=="number"||_fj=="string")){_1j._Zi[index]+=_k4;}else if(_fj!="object"||_gj!="object"){_1j._Zi[index]=_k4;}else if(_fj!="string"&&_gj!="string"){_1j._Zi[index]=yyGetReal(_ej)+yyGetReal(_k4);
}else _1j._Zi[index]=_k4;}}}}}function ds_grid_multiply_disk(_yg,_96,_a6,_lj,_k4){_yg=yyGetInt32(_yg);_96=yyGetReal(_96);_a6=yyGetReal(_a6);_lj=yyGetReal(_lj);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _f7=0;var _g7=0;var _h7=0;var _i7=0;var i=0;var _J6=0;_f7=~~(_q7(0.0,Math.floor(_96-_lj)));_h7=~~(_r7(_1j._fd-1,Math.ceil(_96+_lj)));_g7=~~(_q7(0,Math.floor(_a6-_lj)));_i7=~~(_r7(_1j._gd-1,Math.ceil(_a6+_lj)));_lj=_lj*_lj;var w=_1j._fd;for(i=_f7;i<=_h7;i++){
var _mj=(i-_96)*(i-_96);for(_J6=_g7;_J6<=_i7;_J6++){var _nj=_J6-_a6;if(_mj+(_nj*_nj)<=_lj){if(i>=0&&i<_1j._fd&&_J6>=0&&_J6<_1j._gd){var index=i+(_J6*w);var _ej=_1j._Zi[index];var _fj=typeof(_ej);if(typeof(_k4)=="string"||_fj=="string")continue;_1j._Zi[index]=yyGetReal(_ej)*yyGetReal(_k4);}}}}}function _oj(_yg,_4j,_F7,_G7,_77,_87,_pj,_qj,_rj){_yg=yyGetInt32(_yg);_F7=yyGetInt32(_F7);_G7=yyGetInt32(_G7);_77=yyGetInt32(_77);_87=yyGetInt32(_87);_pj=yyGetInt32(_pj);_qj=yyGetInt32(_qj);if(_F7>_77){var _s7=_F7;
_F7=_77;_77=_s7;}if(_G7>_87){var _s7=_G7;_G7=_87;_87=_s7;}var _6j=_2j._n6(_4j);if(!_6j){_q5("Error: invalid ds_grid ID (ds_grid_set_grid_region)");return;}var _5j=_2j._n6(_yg);if(!_5j){_q5("Error: invalid ds_grid ID (ds_grid_set_grid_region)");return;}var _sj=_F7+(_6j._fd*_G7);var _tj=_pj+(_5j._fd*_qj);if(_sj>=_tj){for(var y=_G7;y<=_87;y++){var _uj=_pj;var index=(y*_6j._fd)+_F7;for(var x=_F7;x<=_77;x++){if((x>=0&&x<_6j._fd&&y>=0&&y<_6j._gd)&&(_uj>=0&&_uj<_5j._fd&&_qj>=0&&_qj<_5j._gd)){_rj(_5j,(_uj+(_qj*_5j._fd)),
_6j,index);}index++;_uj++;}_qj++;}}else {_qj+=_87-_G7;_pj+=_77-_F7;for(var y=_87;y>=_G7;y--){var _uj=_pj;var index=(y*_6j._fd)+_77;for(var x=_77;x>=_F7;x--){if((x>=0&&x<_6j._fd&&y>=0&&y<_6j._gd)&&(_uj>=0&&_uj<_5j._fd&&_qj>=0&&_qj<_5j._gd)){_rj(_5j,(_uj+(_qj*_5j._fd)),_6j,index);}index--;_uj--;}_qj--;}}}function ds_grid_set_grid_region(_yg,_4j,_F7,_G7,_77,_87,_pj,_qj){_oj(_yg,_4j,_F7,_G7,_77,_87,_pj,_qj,function _vj(_wj,_xj,_yj,_s4){_wj._Zi[_xj]=_yj._Zi[_s4];});}function ds_grid_add_grid_region(_yg,_4j,_F7,
_G7,_77,_87,_pj,_qj){_oj(_yg,_4j,_F7,_G7,_77,_87,_pj,_qj,function _vj(_wj,_xj,_yj,_s4){var _ej=_wj._Zi[_xj];var _fj=typeof(_ej);var _zj=_yj._Zi[_s4];var _gj=typeof(_zj);if(_fj==_gj&&(_fj=="number"||_fj=="string")){_wj._Zi[_xj]+=_zj;}else if(_fj!="object"||_gj!="object"){_wj._Zi[_xj]=_zj;}else if(_fj!="string"&&_gj!="string"){_wj._Zi[_xj]=yyGetReal(_ej)+yyGetReal(_zj);}else _wj._Zi[_xj]=_zj;});}function ds_grid_multiply_grid_region(_yg,_4j,_F7,_G7,_77,_87,_pj,_qj,_k4){_oj(_yg,_4j,_F7,_G7,_77,_87,_pj,_qj,function _vj(_wj,
_xj,_yj,_s4){var _ej=_wj._Zi[_xj];var _zj=_yj._Zi[_s4];if(typeof(_ej)=="string"||typeof(_zj)=="string")return;_wj._Zi[_xj]=yyGetReal(_ej)*yyGetReal(_zj);});}var ds_grid_get=_Aj;function _Aj(_yg,_96,_a6){_yg=yyGetInt32(_yg);var _1j=_2j._n6(_yg),x=yyGetInt32(_96),y=yyGetInt32(_a6);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_get)");return undefined;}if(x<0||x>=_1j._fd||y<0||y>=_1j._gd){_q5("Error: grid out of bounds(get) - GridID: "+_yg+"  size["+_1j._fd+","+_1j._gd+"]  at  ("+x+","+y+")");return undefined;
}return _1j._Zi[x+(y*_1j._fd)];}function _Bj(_yg,_96,_a6){var _1j=_2j._n6(_yg);return _1j._Zi[~~_96+(~~_a6*_1j._fd)];}function _Cj(_yg,_F7,_G7,_77,_87){_yg=yyGetInt32(_yg);_F7=yyGetInt32(_F7);_G7=yyGetInt32(_G7);_77=yyGetInt32(_77);_87=yyGetInt32(_87);var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_get_sum)");return 0;}if(_F7>_77){var _s7=_F7;_F7=_77;_77=_s7;}if(_F7<0)_F7=0;if(_F7>=_1j._fd)_F7=_1j._fd-1;if(_77<0)_77=0;if(_77>=_1j._fd)_77=_1j._fd-1;if(_G7>_87){var _s7=_G7;_G7=_87;_87=_s7;
}if(_G7<0)_G7=0;if(_G7>=_1j._gd)_G7=_1j._gd-1;if(_87<0)_87=0;if(_87>=_1j._gd)_87=_1j._gd-1;_Ni=_Mi=_Oi=_Pi=0;var first=true;var _c9=0;for(var y=_G7;y<=_87;y++){var index=(y*_1j._fd)+_F7;for(var x=_F7;x<=_77;x++){var _H5=_1j._Zi[index];if(first){_Mi=_Ni=_H5;first=false;}else {if(_Mi>_H5)_Mi=_H5;if(_Ni<_H5)_Ni=_H5;}if(typeof _H5!=="string"){_Oi+=_H5;}_c9++;index++;}}_Pi=_Oi/_c9;}function ds_grid_get_sum(_yg,_F7,_G7,_77,_87){_Cj(_yg,_F7,_G7,_77,_87);return _Oi;}function ds_grid_get_max(_yg,_F7,_G7,_77,_87){_Cj(_yg,
_F7,_G7,_77,_87);return _Ni;}function ds_grid_get_min(_yg,_F7,_G7,_77,_87){_Cj(_yg,_F7,_G7,_77,_87);return _Mi;}function ds_grid_get_mean(_yg,_F7,_G7,_77,_87){_Cj(_yg,_F7,_G7,_77,_87);return _Pi;}function _Dj(_yg,_96,_a6,_lj){var _1j=_2j._n6(yyGetInt32(_yg));if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}_96=yyGetReal(_96);_a6=yyGetReal(_a6);_lj=yyGetReal(_lj);var _f7=0;var _g7=0;var _h7=0;var _i7=0;var i=0;var _J6=0;_f7=~~(_q7(0.0,Math.floor(_96-_lj)));_h7=~~(_r7(_1j._fd-1,Math.ceil(_96+_lj)));
_g7=~~(_q7(0,Math.floor(_a6-_lj)));_i7=~~(_r7(_1j._gd-1,Math.ceil(_a6+_lj)));var first=true;var _c9=0;_Ni=_Mi=_Oi=0;_lj=_lj*_lj;var w=_1j._fd;for(i=_f7;i<=_h7;i++){var _mj=(i-_96)*(i-_96);for(_J6=_g7;_J6<=_i7;_J6++){var _nj=_J6-_a6;if(_mj+(_nj*_nj)<=_lj){if(i>=0&&i<_1j._fd&&_J6>=0&&_J6<_1j._gd){var _H5=_1j._Zi[i+(_J6*w)];if(first){_Mi=_Ni=_H5;first=false;}else {if(_Mi>_H5)_Mi=_H5;if(_Ni<_H5)_Ni=_H5;}if(typeof _H5!=="string"){_Oi+=_H5;}_c9++;}}}}_Pi=_Oi/_c9;}function ds_grid_get_disk_sum(_yg,_96,_a6,_lj){
_Dj(_yg,_96,_a6,_lj);return _Oi;}function ds_grid_get_disk_max(_yg,_96,_a6,_lj){_Dj(_yg,_96,_a6,_lj);return _Ni;}function ds_grid_get_disk_min(_yg,_96,_a6,_lj){_Dj(_yg,_96,_a6,_lj);return _Mi;}function ds_grid_get_disk_mean(_yg,_96,_a6,_lj){_Dj(_yg,_96,_a6,_lj);return _Pi;}function _Ej(_yg,_F7,_G7,_77,_87,_k4){var _1j=_2j._n6(yyGetInt32(_yg));if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_get_sum)");return 0;}_F7=yyGetInt32(_F7);_G7=yyGetInt32(_G7);_77=yyGetInt32(_77);_87=yyGetInt32(_87);if(_F7>_77){var _s7=_F7;
_F7=_77;_77=_s7;}if(_F7<0)_F7=0;if(_F7>=_1j._fd)_F7=_1j._fd-1;if(_77<0)_77=0;if(_77>=_1j._fd)_77=_1j._fd-1;if(_G7>_87){var _s7=_G7;_G7=_87;_87=_s7;}if(_G7<0)_G7=0;if(_G7>=_1j._gd)_G7=_1j._gd-1;if(_87<0)_87=0;if(_87>=_1j._gd)_87=_1j._gd-1;_Qi=false;_Ri=-1;_Si=-1;for(var y=_G7;y<=_87;y++){var index=(y*_1j._fd)+_F7;for(var x=_F7;x<=_77;x++){var _H5=_1j._Zi[index];if((typeof(_k4)=="number"&&typeof(_H5)=="number")){if(_Ui>abs(_k4-_H5)){_Qi=true;_Ri=x;_Si=y;return true;}}else {if(_k4==_H5){_Qi=true;_Ri=x;_Si=y;
return true;}}index++;}}return false;}function ds_grid_value_exists(_yg,_F7,_G7,_77,_87,_k4){_Ej(_yg,_F7,_G7,_77,_87,_k4);return _Qi;}function ds_grid_value_x(_yg,_F7,_G7,_77,_87,_k4){_Ej(_yg,_F7,_G7,_77,_87,_k4);return _Ri;}function ds_grid_value_y(_yg,_F7,_G7,_77,_87,_k4){_Ej(_yg,_F7,_G7,_77,_87,_k4);return _Si;}function _Fj(_yg,_96,_a6,_lj,_k4){var _1j=_2j._n6(yyGetInt32(_yg));if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}_96=yyGetReal(_96);_a6=yyGetReal(_a6);_lj=yyGetReal(_lj);var _f7=0;
var _g7=0;var _h7=0;var _i7=0;var i=0;var _J6=0;_f7=~~(_q7(0.0,Math.floor(_96-_lj)));_h7=~~(_r7(_1j._fd-1,Math.ceil(_96+_lj)));_g7=~~(_q7(0,Math.floor(_a6-_lj)));_i7=~~(_r7(_1j._gd-1,Math.ceil(_a6+_lj)));_Ri=_Si=-1;_Qi=false;_lj=_lj*_lj;var w=_1j._fd;for(i=_f7;i<=_h7;i++){var _mj=(i-_96)*(i-_96);for(_J6=_g7;_J6<=_i7;_J6++){var _nj=_J6-_a6;if(_mj+(_nj*_nj)<=_lj){if(i>=0&&i<_1j._fd&&_J6>=0&&_J6<_1j._gd){var _H5=_1j._Zi[i+(_J6*w)];if((typeof(_k4)=="number"&&typeof(_H5)=="number")){if(_Ui>abs(_k4-_H5)){_Ri=i;
_Si=_J6;_Qi=true;return;}}else {if(_H5==_k4){_Ri=i;_Si=_J6;_Qi=true;return;}}}}}}}function ds_grid_value_disk_exists(_yg,_96,_a6,_lj,_k4){_Fj(_yg,_96,_a6,_lj,_k4);return _Qi;}function ds_grid_value_disk_x(_yg,_96,_a6,_lj,_k4){_Fj(_yg,_96,_a6,_lj,_k4);return _Ri;}function ds_grid_value_disk_y(_yg,_96,_a6,_lj,_k4){_Fj(_yg,_96,_a6,_lj,_k4);return _Si;}function ds_grid_shuffle(_yg){var _1j=_2j._n6(yyGetInt32(_yg));if(_1j==null||_1j==undefined){_q5("Error: invalid ds_grid ID (ds_grid_shuffle)");return;}_1j._Zi.sort(function(){
return 0.5-Math.random();});}function ds_grid_write(_yg){var _1j=_2j._n6(yyGetInt32(_yg));if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_write)");return;}var width=_1j._fd;var height=_1j._gd;var _Gj=buffer_create(16384,_Hj,1);buffer_write(_Gj,_Ij,603);buffer_write(_Gj,_Ij,width);buffer_write(_Gj,_Ij,height);for(var x=0;x<=width-1;x++){for(y=0;y<=height-1;y++){var _Je=_1j._Zi[x+(y*width)];_Jj(_Gj,_Je);}}var _Kj=_Lj(_Gj);buffer_delete(_Gj);return _Kj;}function ds_grid_read(_yg,_Mj){if(!_Mj){_q5("Error: no string provided (ds_grid_read)");
return false;}var _1j=_2j._n6(yyGetInt32(_yg));if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_read)");return false;}if(_Mj[0]=="{"){try{var _Nj=JSON.parse(_Mj);if((_Nj!=null)&&(_Nj!=undefined)&&(typeof(_Nj.body)=="object")&&(typeof(_Nj.width)=="number")&&(typeof(_Nj.height)=="number")){_1j._fd=_Nj.width;_1j._gd=_Nj.height;_1j._Zi=_Nj.body;}}catch(_Oj){_q5("Error: reading ds_grid JSON");return false;}return true;}else {var _Gj=_Pj(_Mj);if(_Gj<0)return false;buffer_seek(_Gj,_Qj,0);var id=buffer_read(_Gj,_Rj);
var version;if(id==602){version=3;}else if(id==603){version=0;}else {_q5("Error: unrecognised format - resave the grid to update/fix issues. (ds_grid_read)");return false;}var w=buffer_read(_Gj,_Rj);var h=buffer_read(_Gj,_Rj);_1j._fd=w;_1j._gd=h;_1j._Zi=[];var _s7=w*h;for(var i=0;i<_s7;i++){_1j._Zi[i]=0;}for(i=0;i<=w-1;i++){for(_J6=0;_J6<=h-1;_J6++){var _Je=_Sj(_Gj,version);_1j._Zi[i+(_J6*w)]=_Je;}}buffer_delete(_Gj);return true;}}function ds_grid_sort(_yg,_Tj,_Uj){_yg=yyGetInt32(_yg);_Tj=yyGetInt32(_Tj);_Uj=yyGetBool(_Uj);
var _1j=_2j._n6(_yg);if(!_1j){_q5("Error: invalid ds_grid ID (ds_grid_read)");return;}var _Vj=[];for(var y=0;y<_1j._gd;y++){_Vj[y]=ds_grid_get(_yg,_Tj,y);}var _Wj=_Uj?1:-1;_Vj.sort(function(_05,__4){return yyCompareVal(_05,__4,g_GMLMathEpsilon)*_Wj;});var _Xj=[];var _Yj=[];for(var y=0;y<_Vj.length;y++){_Yj[y]=false;}for(var y=0;y<_Vj.length;y++){var _Zj=_Vj[y];for(var _J6=0;_J6<_Vj.length;_J6++){var __j=_Uj?_J6:(_Vj.length-1-_J6);if(_Yj[__j]){continue;}var _0k=ds_grid_get(_yg,_Tj,__j);if(_0k==_Zj){for(var x=0;
x<_1j._fd;x++){_Xj[x+(_1j._fd*y)]=ds_grid_get(_yg,x,__j);}_Yj[__j]=true;break;}}}_1j._Zi=_Xj;}function ds_grid_to_mp_grid(_0j,_1k,_2k){var _1j=_2j._n6(yyGetInt32(_0j));var _3k=_4k._n6(yyGetInt32(_1k));if(_3k==null||_1j==null){_q5("ds_grid_to_mp_grid :: Invalid source or destination grid");return;}var w=_3k._5k;var h=_3k._6k;var _7k=_1j._fd;var _8k=_1j._gd;if(w!=_7k||h!=_8k){_q5("ds_grid_to_mp_grid :: Grid sizes do not match");return;}if(_2k==undefined){for(var y=0;y<h;++y){for(var x=0;x<w;++x){var _Je=yyGetReal(_1j._Zi[x+(y*_1j._fd)]);
_3k._9k[(x*_3k._6k)+y]=_Je===0?0:-1;}}}else {_ak=_bk(_2k,2);_ck="boundObject" in _ak?_ak._dk:{};for(var y=0;y<h;++y){for(var x=0;x<w;++x){var _Je=_1j._Zi[x+(y*_1j._fd)];var _bc=yyGetBool(_ak(_ck,_ck,_Je,x,y));_3k._9k[(x*_3k._6k)+y]=_bc?-1:0;}}}}function ds_list_create(){var _p7=new _ek();_p7._fk=true;return _gk._Vf(_p7);}function ds_list_destroy(_yg){_yg=yyGetInt32(_yg);var _hk=_gk._n6(_yg);if(_hk){_hk._ag();_gk._3j(_yg);}}function ds_list_clear(_yg){var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){_ik._ag();return;}_q5("Error: invalid ds_list ID (ds_list_clear)");
}function ds_list_copy(_yg,_4j){_yg=yyGetInt32(_yg);var _jk=_gk._n6(_yg);if(!_jk){_q5("Error: invalid DEST ds_list ID (ds_list_copy)");return;}var _kk=_gk._n6(yyGetInt32(_4j));if(!_kk){_q5("Error: invalid SOURCE ds_list ID (ds_list_copy)");return;}_jk.__i(_kk);_gk.Set(_yg,_jk);}function ds_list_size(_yg){var _ik=_gk._n6(yyGetInt32(_yg));if(_ik)return _ik.length;return 0;}function ds_list_empty(_yg){var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){if(_ik.length!==0)return false;else return true;}_q5("Error: invalid ds_list ID (ds_list_empty)");
return true;}function ds_list_add(){var _lk=arguments;var _mk=arguments.length;var _ik=_gk._n6(_lk[0]);if(!_ik){_q5("Error: invalid ds_list ID (ds_list_add)");return;}for(var i=1;i<_mk;i++){_ik._Vf(_lk[i]);}return;}function _nk(_yg,_k4){return ds_list_add(yyGetInt32(_yg),new _ok(_pk,_k4));}function _qk(_yg,_k4){return ds_list_add(yyGetInt32(_yg),new _ok(_rk,_k4));}function ds_list_set(_yg,_s4,_k4){if(isNaN(_s4))_q5("Error: index must be a number");var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){_ik._sk(yyGetInt32(_s4),
_k4);}else {_q5("Error: invalid ds_list ID (ds_list_set)");}}function ds_list_set_pre(_yg,_s4,_k4){if(isNaN(_s4))_q5("Error: index must be a number");var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){_ik._sk(yyGetInt32(_s4),_k4);}else {_q5("Error: invalid ds_list ID (ds_list_set)");}return _k4;}function ds_list_set_post(_yg,_s4,_k4){if(isNaN(_s4))_q5("Error: index must be a number");var _95=_k4;var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){_95=_ik._sk(yyGetInt32(_s4),_k4);}else {_q5("Error: invalid ds_list ID (ds_list_set)");
}return _95;}function ds_list_insert(_yg,_tk,_k4){if(isNaN(_tk))_q5("Error: index must be a number");var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){return _ik._uk(yyGetInt32(_tk),_k4);}_q5("Error: invalid ds_list ID (ds_list_insert)");return -1;}function _vk(_yg,_tk,_k4){return ds_list_insert(yyGetInt32(_yg),yyGetInt32(_tk),new _ok(_pk,_k4));}function _wk(_yg,_tk,_k4){return ds_list_insert(yyGetInt32(_yg),yyGetInt32(_tk),new _ok(_rk,_k4));}function ds_list_replace(_yg,_tk,_k4){if(isNaN(_tk))_q5("Error: index must be a number");
var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){return _ik._xk(yyGetInt32(_tk),_k4);}_q5("Error: invalid ds_list ID (ds_list_replace)");return -1;}function ds_list_delete(_yg,_tk){if(isNaN(_tk))_q5("Error: index must be a number");var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){return _ik._3j(yyGetInt32(_tk));}}function ds_list_find_index(_yg,_k4){var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){var _95=-1;for(var _p7=0;_p7<_ik._yk.length;_p7++){var _05=_ik._yk[_p7];if(((typeof(_05)=="object")&&(_05.Object==_k4))||(_05==_k4)){_95=_p7;
break;}}return _95;}_q5("Error: invalid ds_list ID (ds_list_find_index)");return -1;}function ds_list_find_value(_yg,_tk){if(isNaN(_tk))_q5("Error: index must be a number");var _H5,_zk=_Ak(_tk),_ik=_gk._n6(_Ak(yyGetInt32(_yg)));if(_ik){_H5=_ik._yk[_zk];if(typeof(_H5)==="object"&&_H5.Object!==undefined){return _H5.Object;}else return _H5;}_q5("Error: invalid ds_list ID (ds_list_find_value)");return undefined;}function ds_list_is_list(_yg,_tk){if(isNaN(_tk))_q5("Error: index must be a number");var _H5,_zk=_Ak(_tk),
_ik=_gk._n6(_Ak(yyGetInt32(_yg)));if(_ik){_H5=_ik._yk[_zk];if(typeof(_H5)==="object"&&_H5.Object!==undefined){return _H5._Bk==_rk;}else return false;}_q5("Error: invalid ds_list ID (ds_list_find_value)");return undefined;}function ds_list_is_map(_yg,_tk){if(isNaN(_tk))_q5("Error: index must be a number");var _H5,_zk=_Ak(_tk),_ik=_gk._n6(_Ak(yyGetInt32(_yg)));if(_ik){_H5=_ik._yk[_zk];if(typeof(_H5)==="object"&&_H5.Object!==undefined){return _H5._Bk==_pk;}else return false;}_q5("Error: invalid ds_list ID (ds_list_find_value)");
return undefined;}function ds_list_sort(_yg,_Ck){var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){var _Wj=yyGetBool(_Ck)?1:-1;_ik._yk.sort(function(_05,__4){return yyCompareVal(_05,__4,g_GMLMathEpsilon)*_Wj;});return 0;}_q5("Error: invalid ds_list ID (ds_list_sort)");return 0;}function ds_list_shuffle(_yg){var _ik=_gk._n6(yyGetInt32(_yg));if(_ik){_ik._Dk();return 0;}_q5("Error: invalid ds_list ID (ds_list_shuffle)");return 0;}function ds_list_write(_yg){_yg=yyGetInt32(_yg);var _ik=_gk._n6(_yg);if(!_ik){_q5("Error: invalid ds_list ID (ds_list_write)");
return "";}var _Ai=_ik.length;var _Gj=buffer_create(16384,_Hj,1);buffer_write(_Gj,_Ij,303);buffer_write(_Gj,_Ij,_Ai);for(var i=0;i<_Ai;i++){var _Je=ds_list_find_value(_yg,i);_Jj(_Gj,_Je);}var _Kj=_Lj(_Gj);buffer_delete(_Gj);return _Kj;}function ds_list_read(_yg,_Mj){if(_Mj===undefined||_Mj==""){return false;}_yg=yyGetInt32(_yg);var _ik=_gk._n6(_yg);if(!_ik){_q5("Error: invalid ds_list ID (ds_list_read)");return false;}if(_Mj[0]=="{"){try{var _hk=JSON.parse(_Mj);_ik._yk=_hk;_ik.length=_hk.length;_ik._c9=_hk.length;
}catch(err){_q5("Error: reading ds_list file.");return false;}}else {var _Gj=_Pj(_Mj);if(_Gj<0)return false;buffer_seek(_Gj,_Qj,0);var id=buffer_read(_Gj,_Rj);var version;if(id==302){version=3;}else if(id==303){version=0;}else {_q5("Error: unrecognised format - resave the list to update/fix issues. (ds_list_read)");return false;}var _Ai=buffer_read(_Gj,_Rj);_ik._ag();for(var i=0;i<_Ai;i++){var _Je=_Sj(_Gj,version);ds_list_add(_yg,_Je);}buffer_delete(_Gj);}return true;}function ds_list_mark_as_map(_yg,_tk){_yg=yyGetInt32(_yg);
_tk=yyGetInt32(_tk);var _Je=ds_list_find_value(_yg,_tk);if(_Je!=undefined){ds_list_replace(_yg,_tk,new _ok(_pk,_Je));}}function ds_list_mark_as_list(_yg,_tk){_yg=yyGetInt32(_yg);_tk=yyGetInt32(_tk);var _Je=ds_list_find_value(_yg,_tk);if(_Je!=undefined){ds_list_replace(_yg,_tk,new _ok(_rk,_Je));}}var _pk=1,_rk=2;function _Ek(){}_Ek.prototype._yg=0;_Ek.prototype._Fk=function(){return(++_Ek.prototype._yg).toString();};/*@constructor */function _ok(_wd,_ck){this._Bk=_wd;this.Object=_ck;}const hasOwnProperty=Object.prototype.hasOwnProperty;
const _Gk=(string)=>{let hash=0;string=string.toString();for(let i=0;i<string.length;i++){hash=(((hash<<5)-hash)+string.charCodeAt(i))&0xFFFFFFFF;}return hash;};const _Hk=(_Ik)=>{if(typeof _Ik.getTime=='function'){return _Ik.getTime();}let _Jk=[];for(let _yi in _Ik){if(hasOwnProperty.call(_Ik,_yi)){_Jk.push(_yi);}}_Jk.sort();let result=0;for(let _yi in _Jk){result+=_Gk(_yi+_Kk(_Ik[_yi]));}return result;};const _Kk=(value)=>{const type=value==undefined?undefined:typeof value;return _Lk[type]?_Lk[type](value)+_Gk(type):0;
};const _Lk={string:_Gk,_Mk:_Gk,_Nk:_Gk,_Ok:_Hk};function _Pk(_8d){var _95=_8d;switch(typeof(_8d)){case "object":if(_8d.id!==undefined){_95=_8d.id;}else {_95=_Kk(_8d);}break;default :break;}return _95;}function ds_map_create(){var _V7=new Map();var id=_W7._Vf(_V7);return id;}function ds_map_destroy(_yg){_yg=yyGetInt32(_yg);var _V7=_W7._n6(_yg);if(_V7){_Qk(_V7);_W7._3j(_yg);}}function ds_map_clear(_yg){_yg=yyGetInt32(_yg);var _V7=_W7._n6(_yg);if(_V7){_Qk(_V7);}}function _Qk(_Rk){_Rk.forEach(function(_H5,key,_Rk){
if(_H5!=null&&_H5.Object!==undefined)switch(_H5._Bk){case _pk:ds_map_destroy(_H5.Object);break;case _rk:ds_list_destroy(_H5.Object);break;}});_Rk.clear();if(_Rk._Sk)_Rk._Sk.clear();}function ds_map_copy(_1k,_4j){_1k=yyGetInt32(_1k);var _jk=_W7._n6(_1k);var _kk=_W7._n6(yyGetInt32(_4j));if(_jk&&_kk){_jk=new Map();_kk.forEach(function(_H5,key,_kk){_jk.set(key,_H5);});_W7.Set(_1k,_jk);}}function ds_map_size(_yg){var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){return _V7.size;}return 0;}function ds_map_empty(_yg){var _V7=_W7._n6(yyGetInt32(_yg));
if(_V7){return _V7.size==0;}return false;}function ds_map_replace(_yg,_Tk,_k4){_Tk=_Pk(_Tk);var _V7=_W7._n6(yyGetInt32(_yg));if(_V7)_V7.set(_Tk,_k4);}function ds_map_replace_map(_yg,_Tk,_k4){ds_map_replace(_yg,_Tk,new _ok(_pk,_k4));}function ds_map_replace_list(_yg,_Tk,_k4){ds_map_replace(_yg,_Tk,new _ok(_rk,_k4));}function ds_map_delete(_yg,_Tk){var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){_Tk=_Pk(_Tk);_V7.delete(_Tk);if(_V7._Sk&&_V7._Sk.has(_Tk))_V7._Sk.delete(_Tk);}}function ds_map_exists(_yg,_Tk){var _V7=_W7._n6(yyGetInt32(_yg));
if(_V7){_Tk=_Pk(_Tk);return _V7.has(_Tk);}return false;}function ds_map_add(_yg,_Tk,_k4){var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){var _Uk=_Tk;_Tk=_Pk(_Tk);if(_Tk!==_Uk){if(_V7._Sk==undefined){_V7._Sk=new Map();}_V7._Sk.set(_Tk,_Uk);}_V7.set(_Tk,_k4)}}function ds_map_add_map(_yg,_Tk,_k4){ds_map_add(yyGetInt32(_yg),_Tk,new _ok(_pk,_k4));}function ds_map_add_list(_yg,_Tk,_k4){ds_map_add(yyGetInt32(_yg),_Tk,new _ok(_rk,_k4));}function ds_map_set(_yg,_Tk,_k4){var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){var _Uk=_Tk;_Tk=_Pk(_Tk);
if(_Tk!==_Uk){if(_V7._Sk==undefined){_V7._Sk=new Map();}_V7._Sk.set(_Tk,_Uk);}_V7.set(_Tk,_k4);}}function ds_map_set_pre(_yg,_Tk,_k4){var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){var _Uk=_Tk;_Tk=_Pk(_Tk);if(_Tk!==_Uk){if(_V7._Sk==undefined){_V7._Sk=new Map();}_V7._Sk.set(_Tk,_Uk);}_V7.set(_Tk,_k4);;}return _k4;}function ds_map_set_post(_yg,_Tk,_k4){var _95=_k4;var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){var _Uk=_Tk;_Tk=_Pk(_Tk);if(_Tk!==_Uk){if(_V7._Sk==undefined){_V7._Sk=new Map();}_V7._Sk.set(_Tk,_Uk);}_95=_V7.get(_Tk);
_V7.set(_Tk,_k4);}return _95;}function ds_map_find_value(_yg,_Tk){if(Number.isNaN(_Tk))return undefined;if((_yg==undefined)||Number.isNaN(_yg)){_q5("Error: "+_yg+" is not a valid map reference");return undefined;}var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){_Tk=_Pk(_Tk);var _Vk=_V7.get(_Tk);if(typeof(_Vk)==="object"&&(_Vk!=null)&&_Vk.Object!==undefined){return _Vk.Object;}else return _Vk;}return undefined;}function ds_map_values_to_array(_yg,_Wk){if((_yg==undefined)||Number.isNaN(_yg)){_q5("Error: "+_yg+" is not a valid map reference");
return undefined;}var _95;if(arguments.length>=2){_95=_Wk;}else {_95=[];}var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){for(const [_05,_Vk] of _V7){if(typeof(_Vk)==="object"&&(_Vk!=null)&&_Vk.Object!==undefined){_95.push(_Vk.Object);}else _95.push(_Vk);}}return _95;}function ds_map_keys_to_array(_yg,_Wk){if((_yg==undefined)||Number.isNaN(_yg)){_q5("Error: "+_yg+" is not a valid map reference");return undefined;}var _95;if(arguments.length>=2){_95=_Wk;}else {_95=[];}var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){for(const [key,
_05] of _V7){var _H5=key;if(_V7._Sk&&_V7._Sk.has(key))_H5=_V7._Sk.get(key);_95.push(_H5);}}return _95;}function ds_map_is_map(_yg,_Tk){if(Number.isNaN(_Tk))return undefined;if((_yg==undefined)||Number.isNaN(_yg)){_q5("Error: "+_yg+" is not a valid map reference");return undefined;}var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){_Tk=_Pk(_Tk);var _Vk=_V7.get(_Tk);if(typeof(_Vk)==="object"&&(_Vk!=null)&&_Vk.Object!==undefined){return _Vk._Bk===_pk;}else return false;}return undefined;}function ds_map_is_list(_yg,_Tk){if(Number.isNaN(_Tk))return undefined;
if((_yg==undefined)||Number.isNaN(_yg)){_q5("Error: "+_yg+" is not a valid map reference");return undefined;}var _V7=_W7._n6(yyGetInt32(_yg));if(_V7){_Tk=_Pk(_Tk);var _Vk=_V7.get(_Tk);if(typeof(_Vk)==="object"&&(_Vk!=null)&&_Vk.Object!==undefined){return _Vk._Bk===_rk;}else return false;}return undefined;}function ds_map_find_previous(_yg,_Tk){_Tk=_Pk(_Tk);var _Xk=undefined;var _V7=_W7._n6(yyGetInt32(_yg));for(const [key,_Yk] of _V7){if(key==_Tk){return _Xk;}_Xk=key;}return undefined;}function ds_map_find_next(_yg,
_Tk){_Tk=_Pk(_Tk);var _Zk=false;var _V7=_W7._n6(yyGetInt32(_yg));for(const [key,_Yk] of _V7){if(_Zk){return key;}if(key==_Tk){_Zk=true;}}return undefined;}function ds_map_find_first(_yg){var _V7=_W7._n6(yyGetInt32(_yg));for(const [key,_Yk] of _V7){return key;}return undefined;}function ds_map_find_last(_yg){var _Xk=undefined;var _V7=_W7._n6(yyGetInt32(_yg));for(const [key,_Yk] of _V7){_Xk=key;}return _Xk;}function ds_map_write(_yg){var _V7=_W7._n6(yyGetInt32(_yg));if(_V7==null){_q5("Error: invalid ds_map ID (ds_map_write)");
return "";}var _Gj=buffer_create(16384,_Hj,1);buffer_write(_Gj,_Ij,403);var __k=_V7.size;buffer_write(_Gj,_Ij,__k);for(const [key,_Je] of _V7){var _0l=key;if(_V7._Sk&&_V7._Sk.has(key))_0l=_V7._Sk.get(key);_Jj(_Gj,_0l);var _H5=_Je;if(typeof(_Je)==="object"&&(_Je!=null)&&_Je.Object!==undefined)_H5=_Je.Object;_Jj(_Gj,_H5);}var _Kj=_Lj(_Gj);buffer_delete(_Gj);return _Kj;}function ds_map_read(_yg,_Mj){_yg=yyGetInt32(_yg);var _V7=_W7._n6(_yg);if(_V7==null){_q5("Error: invalid ds_map ID (ds_map_read)");return false;
}if(_Mj[0]=="{"){try{if(null!=_Mj){_V7=JSON.parse(_Mj);_W7.Set(_yg,_V7);}else {_W7.Set(_yg,'');}}catch(_Oj){_q5("Error: reading ds_map JSON.");return false;}}else {ds_map_clear(_yg);var _Gj=_Pj(_Mj);if(_Gj<0)return false;buffer_seek(_Gj,_Qj,0);var id=buffer_read(_Gj,_Rj);var version;if(id==402){version=3;}else if(id==403){version=0;}else {_q5("Error: unrecognised format - resave the map to update/fix issues. (ds_map_read)");return false;}var _c9=buffer_read(_Gj,_Rj);while(_c9>0){var key=_Sj(_Gj,version);var value=_Sj(_Gj,
version);ds_map_add(_yg,key,value);_c9--;}buffer_delete(_Gj);}return true;}function ds_map_secure_save(_yg,_1l){if(_1l!=null){var _2l=_3l();var json=json_encode(yyGetInt32(_yg));var _4l=base64_encode(json);_5l(yyGetString(_1l),_2l+_4l);}}function ds_map_secure_load_buffer(_6l){return -1;}function ds_map_secure_save_buffer(_T7,_6l){return -1;}function ds_map_secure_load(_1l){var _7l=-1;try{var _8l=_3l();var data=_9l(yyGetString(_1l),true);var _al=data.substring(0,_8l.length);var _4l=data.substring(_8l.length,data.length);
if(_al==_8l){var json=base64_decode(_4l);return json_decode(json);}}catch(e){debug(e.message);}return -1;}function _bl(){var id=0xF35065da3bb79cac7;return id.toString();}function _3l(){var _2l=_bl();var _cl=sha1_string_utf8(_2l.split("").reverse().join(""));return sha1_string_utf8(_cl);}/*@constructor */function _dl(_el,_ck){this.sub=_el;this.data=_ck;}/*@constructor */function _fl(_el,_ck){this.depth=_el;this._gl=_ck;}function ds_priority_create(){var _ik=new _hl();return _il._Vf(_ik);}function ds_priority_destroy(_yg){
_il._3j(yyGetInt32(_yg));}function ds_priority_clear(_yg){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){_q5("Error: invalid dest priority queue ds_priority_clear()");return;}_jl._ag();}function ds_priority_copy(_yg,_4j){_yg=yyGetInt32(_yg);var _kl=_il._n6(_yg);if(_kl==null||_kl==undefined){_q5("Error: invalid dest priority queue ds_priority_copy()");return;}var _ll=_il._n6(yyGetInt32(_4j));if(_ll==null||_ll==undefined){_q5("Error: invalid source priority queue ds_priority_copy()");return;
}_kl.__i(_ll);_il.Set(_yg,_kl);}function ds_priority_size(_yg){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){_q5("Error: invalid priority queue ds_priority_size()");return 0;}return _jl.length;}function ds_priority_empty(_yg){if(ds_priority_size(yyGetInt32(_yg))==0)return true;else return false;}function ds_priority_add(_yg,_k4,_ml){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){_q5("Error: invalid priority queue ds_priority_add()");return;}var _nl=new _fl(_ml,_k4);_jl._Vf(_nl);
}function ds_priority_change_priority(_yg,_k4,_ml){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){_q5("Error: invalid priority queue ds_priority_change_priority()");return;}var i=0;while(i<_jl.length){var _ol=_jl._n6(i);if(_ol!=null){var _H5=_ol._gl;if(typeof(_k4)=="number"&&typeof(_H5)=="number"){if(_Ui>abs(_H5-_k4)){_jl._pl(_ol);_ol.depth=_ml;_jl._Vf(_ol);return;}}else {if(_H5==_k4){_jl._pl(_ol);_ol.depth=_ml;_jl._Vf(_ol);return;}}}i++;}}function ds_priority_find_priority(_yg,_k4){var _jl=_il._n6(yyGetInt32(_yg));
if(_jl==null||_jl==undefined){_q5("Error: invalid priority queue ds_priority_find_priority()");return undefined;}var i=0;while(i<_jl.length){var _ol=_jl._n6(i);if(_ol!=null){var _H5=_ol._gl;if(((typeof(_k4)=="number")||(_k4 instanceof Long))&&((typeof(_H5)=="number")||(_H5 instanceof Long))){var _ql=yyGetReal(_k4);var _rl=yyGetReal(_H5);if(_Ui>abs(_rl-_ql))return _ol.depth;}else {if(_H5==_k4)return _ol.depth;}}i++;}return undefined;}function ds_priority_delete_value(_yg,_k4){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){
_q5("Error: invalid priority queue ds_priority_delete_value()");return;}var i=0;while(i<_jl.length){var _ol=_jl._n6(i);if(_ol!=null){var _H5=_ol._gl;if(typeof(_k4)=="number"&&typeof(_H5)=="number"){if(_Ui>abs(_H5-_k4)){_jl._pl(_ol);return;}}else {if(_H5==_k4){_jl._pl(_ol);}}}i++;}return;}function ds_priority_delete_min(_yg){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){_q5("Error: invalid priority queue ds_priority_delete_min()");return;}if(_jl.length<=0)return 0;var _ol=_jl._n6(0);_jl._pl(_ol);
return _ol._gl;}function ds_priority_find_min(_yg){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){_q5("Error: invalid priority queue ds_priority_find_min()");return undefined;}if(_jl.length<=0)return undefined;var _ol=_jl._n6(0);return _ol._gl;}function ds_priority_delete_max(_yg){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){_q5("Error: invalid priority queue ds_priority_delete_max()");return;}if(_jl.length<=0)return 0;var _ol=_jl._n6(_jl.length-1);_jl._pl(_ol);return _ol._gl;
}function ds_priority_find_max(_yg){var _jl=_il._n6(yyGetInt32(_yg));if(_jl==null||_jl==undefined){_q5("Error: invalid priority queue ds_priority_find_max()");return undefined;}if(_jl.length<=0)return undefined;var _ol=_jl._n6(_jl.length-1);return _ol._gl;}function ds_priority_write(_yg){var _ik=_il._n6(yyGetInt32(_yg));if(_ik==null){_q5("Error: invalid ds_priority ID (ds_priority_write)");return "";}var _sl=[];var _Je=[];for(var index=0;index<_ik._yk.length;index++){var _tl=_ik._yk[index];if(_tl){_sl.push(_tl.depth);
_Je.push(_tl._gl);}}var _Ai=_ik._yk.length;var _Gj=buffer_create(16384,_Hj,1);buffer_write(_Gj,_Ij,503);buffer_write(_Gj,_Ij,_Ai);for(var i=0;i<_Ai;i++){_Jj(_Gj,_sl[i]);}for(var i=0;i<_Ai;i++){_Jj(_Gj,_Je[i]);}var _Kj=_Lj(_Gj);buffer_delete(_Gj);return _Kj;}function ds_priority_read(_yg,_Mj){_yg=yyGetInt32(_yg);var _ul=_il._n6(_yg);if(_ul==null){_q5("Error: invalid ds_priority ID (ds_priority_read)");return false;}if(_Mj[0]=="{"){try{var _ik=JSON.parse(_Mj);_ul._ag();for(var index=0;index<_ik.length;index++){
var _hk=_ik[index];ds_priority_add(_yg,_hk.data,_hk.sub);}}catch(_Oj){_q5("Error: reading ds_priority JSON");return false;}}else {var _Gj=_Pj(_Mj);if(_Gj<0)return false;buffer_seek(_Gj,_Qj,0);var id=buffer_read(_Gj,_Rj);var version;if(id==502){version=3;}else if(id==503){version=0;}else {_q5("Error: unrecognised format - resave the priority list to update/fix issues. (ds_priority_read)");return false;}var _Ai=buffer_read(_Gj,_Rj);ds_priority_clear(_yg);var _sl=[];var _Je=[];for(var i=0;i<_Ai;i++){_sl[i]=_Sj(_Gj,
version);}for(var i=0;i<_Ai;i++){_Je[i]=_Sj(_Gj,version);}for(var i=0;i<_Ai;i++){ds_priority_add(_yg,_Je[i],_sl[i]);}buffer_delete(_Gj);}return true;}function ds_queue_create(){var _Kj=[];return _vl._Vf(_Kj);}function ds_queue_destroy(_yg){_vl._3j(yyGetInt32(_yg));}function ds_queue_clear(_yg){_yg=yyGetInt32(_yg);var _Kj=_vl._n6(_yg);if(!_Kj){_q5("Error: invalid ds_queue ID (ds_queue_clear)");return;}_Kj=[];_vl.Set(_yg,_Kj);}function ds_queue_copy(_1k,_4j){_1k=yyGetInt32(_1k);var _jk=_vl._n6(_1k);if(_jk==null){
_q5("Error: invalid DEST ds_queue ID (ds_queue_copy)");return;}var _kk=_vl._n6(yyGetInt32(_4j));if(_kk==null){_q5("Error: invalid SOURCE ds_queue ID (ds_queue_copy)");return;}_jk=_kk.slice();_vl.Set(_1k,_jk);}function ds_queue_size(_yg){var _Kj=_vl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_queue ID (ds_queue_size)");return 0;}return _Kj.length;}function ds_queue_empty(_yg){return(ds_queue_size(yyGetInt32(_yg))==0);}function ds_queue_enqueue(){var _lk=arguments;var _mk=arguments.length;var _ul=_vl._n6(_lk[0]);
if(!_ul){_q5("Error: invalid ds_queue ID (ds_queue_enqueue)");return;}for(var i=1;i<_mk;i++){_ul.push(_lk[i]);}return;}function ds_queue_dequeue(_yg){var _Kj=_vl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_queue ID (ds_queue_dequeue)");return 0;}return _Kj.shift();}function ds_queue_head(_yg){var _Kj=_vl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_queue ID (ds_queue_head)");return 0;}return _Kj[0];}function ds_queue_tail(_yg){var _Kj=_vl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_queue ID (ds_queue_tail)");
return 0;}return _Kj[_Kj.length-1];}function ds_queue_write(_yg){var _ul=_vl._n6(yyGetInt32(_yg));if(_ul==null){_q5("Error: invalid ds_queue ID (ds_queue_write)");return "";}var _Ai=_ul.length;var _Gj=buffer_create(16384,_Hj,1);buffer_write(_Gj,_Ij,203);buffer_write(_Gj,_Ij,_Ai);buffer_write(_Gj,_Ij,0);buffer_write(_Gj,_Ij,_Ai);for(var i=0;i<_Ai;i++){var _Je=_ul[i];_Jj(_Gj,_Je);}var _Kj=_Lj(_Gj);buffer_delete(_Gj);return _Kj;}function ds_queue_read(_yg,_Mj){_yg=yyGetInt32(_yg);var _ul=_vl._n6(_yg);if(_ul==null){
_q5("Error: invalid ds_queue ID (ds_queue_read)");return false;}if(_Mj=="{"){try{_ul=JSON.parse(_Mj);_vl.Set(_yg,_ul);}catch(_Oj){_q5("Error: reading ds_queue JSON.");return false;}}else {var _Gj=_Pj(_Mj);if(_Gj<0)return false;buffer_seek(_Gj,_Qj,0);var id=buffer_read(_Gj,_Rj);var version;if(id==202){version=3;}else if(id==203){version=0;}else {_q5("Error: unrecognised format - resave the queue to update/fix issues. (ds_queue_read)");return false;}var last=buffer_read(_Gj,_Rj);var first=buffer_read(_Gj,_Rj);
var _Ai=buffer_read(_Gj,_Rj);_ul=[];_vl.Set(_yg,_ul);for(var i=0;i<last;i++){var _Je=_Sj(_Gj,version);if(first<=0){_ul.push(_Je);}first--;}buffer_delete(_Gj);}return true;}function ds_stack_create(){var _Kj=[];return _wl._Vf(_Kj);}function ds_stack_destroy(_yg){_wl._3j(yyGetInt32(_yg));}function ds_stack_clear(_yg){_yg=yyGetInt32(_yg);var _Kj=_wl._n6(_yg);if(_Kj==null){_q5("Error: invalid ds_stack ID (ds_stack_clear)");return;}_Kj=[];_wl.Set(_yg,_Kj);}function ds_stack_copy(_yg,_4j){_yg=yyGetInt32(_yg);var _jk=_wl._n6(_yg);
if(_jk==null){_q5("Error: invalid DEST ds_stack ID (ds_stack_clear)");return;}var _kk=_wl._n6(yyGetInt32(_4j));if(_kk==null){_q5("Error: invalid SOURCE ds_stack ID (ds_stack_clear)");return;}_jk=_kk.slice();_wl.Set(_yg,_jk);}function ds_stack_size(_yg){var _Kj=_wl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_stack ID (ds_stack_size)");return 0;}return _Kj.length;}function ds_stack_empty(_yg){var _Kj=_wl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_stack ID (ds_stack_empty)");return true;
}if(_Kj.length==0)return true;else return false;}function ds_stack_push(_yg,_k4){var _lk=arguments;var _mk=arguments.length;var stack=_wl._n6(yyGetInt32(_yg));if(!stack){_q5("Error: invalid ds_stack ID (ds_stack_push)");return;}for(var i=1;i<_mk;i++){stack.push(_lk[i]);}}function ds_stack_pop(_yg){var _Kj=_wl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_stack ID (ds_stack_pop)");return undefined;}return _Kj.pop();}function ds_stack_top(_yg){var _Kj=_wl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_stack ID (ds_stack_pop)");
return 0;}return _Kj[_Kj.length-1];}function ds_stack_write(_yg){var _Kj=_wl._n6(yyGetInt32(_yg));if(_Kj==null){_q5("Error: invalid ds_stack ID (ds_stack_write)");return;}var _Ai=_Kj.length;var _Gj=buffer_create(16384,_Hj,1);buffer_write(_Gj,_Ij,103);buffer_write(_Gj,_Ij,_Ai);for(var i=0;i<_Ai;i++){var _Je=_Kj[i];_Jj(_Gj,_Je);}var _xl=_Lj(_Gj);buffer_delete(_Gj);return _xl;}function ds_stack_read(_yg,_Mj){_yg=yyGetInt32(_yg);var _Kj=_wl._n6(_yg);if(_Kj==null){_q5("Error: invalid ds_stack ID (ds_stack_read)");
return false;}if(_Mj[0]=="{"){try{_Kj=JSON.parse(_Mj);_wl.Set(_yg,_Kj);}catch(_Oj){_q5("Error: reading ds_stack JSON.");return false;}}else {var _Gj=_Pj(_Mj);if(_Gj<0)return false;buffer_seek(_Gj,_Qj,0);var id=buffer_read(_Gj,_Rj);var version;if(id==102){version=3;}else if(id==103){version=0;}else {_q5("Error: unrecognised format - resave the stack to update/fix issues. (ds_stack_read)");return false;}var _Ai=buffer_read(_Gj,_Rj);_Kj=[];_wl.Set(_yg,_Kj);for(var i=0;i<_Ai;i++){var _Je=_Sj(_Gj,version);_Kj.push(_Je);
}buffer_delete(_Gj);}return true;}var _yl=false;function _zl(_k4){var _Al=null;if(typeof(_k4)=="object"){_Al=_k4;}else {var _Bl=yyGetInt32(_k4);_Al=_Cl._Dl(_Bl);}return _Al;}function animcurve_get(_El){if(arguments.length!=1){_q5("animcurve_get() - wrong number of arguments");return;}var _Al=_zl(_El);if(_Al==null){_q5("animcurve_get() - specified curve not valid");}else {return _Al;}return -1;}function animcurve_get_channel_index(_Fl,_Gl){var result=-1;if(arguments.length!=2){_q5("animcurve_get_channel_index() - wrong number of arguments");
return result;}var _Al=_zl(_Fl);if(_Al==null){_q5("animcurve_get_channel_index() - specified curve not valid");return result;}var name=yyGetString(_Gl);for(var i=0;i<_Al._Hl;i++){var _Il=_Al._Jl[i];if((_Il!=null)&&(_Il._Kl!=null)&&_Il._Kl==name){result=i;break;}}return result;}function animcurve_get_channel(_Fl,_Ll){var result=-1;if(arguments.length!=2){_q5("animcurve_get_channel() - wrong number of arguments");return;}if(typeof(_Fl)!="number"&&typeof(_Fl)!="object"){_q5("animcurve_get_channel() - first parameter must be either curve ID or curve object");
return;}if(typeof(_Ll)!="number"&&typeof(_Ll)!="string"){_q5("animcurve_get_channel() - second parameter must be either channel index or channel name");return;}var _Al=_zl(_Fl);if(_Al!=null){if(typeof(_Ll)=="number"){var _Ml=yyGetInt32(_Ll);if((_Ml<0)||(_Ml>=_Al._Hl)){_q5("animcurve_get_channel() - specified channel index out of range");return;}if(_Al._Jl[_Ml]==null){_q5("animcurve_get_channel() - specified channel is invalid");return;}result=_Al._Jl[_Ml];}else {var name=yyGetString(_Ll);for(var i=0;
i<_Al._Hl;i++){var _Il=_Al._Jl[i];if((_Il!=null)&&(_Il._Kl!=null)&&_Il._Kl==name){result=_Il;break;}}}}return result;}function animcurve_channel_evaluate(_Nl,_Ol){if(arguments.length!=2){_q5("animcurve_channel_evaluate() - wrong number of arguments");return;}if(_Nl==null||!(_Nl instanceof _Pl)){_q5("animcurve_channel_evaluate() - first parameter is not valid animation curve channel");return;}return _Nl._Ql(yyGetReal(_Ol));}function animcurve_create(){var _Al=_Cl._Rl();if(_Al==null){_q5("animcurve_create() - could not create new curve");
}return _Al;}function animcurve_destroy(_Fl){if(arguments.length!=1){_q5("animcurve_destroy() - requires a curve ID or object");}var _Al=_zl(_Fl);if(_Al==null){_q5("animcurve_destroy() - specified curve not valid");}else if(_Al._Sl==true){_q5("animcurve_destroy() - can't delete a curve created in the IDE");}else {_Cl._Tl(_Al);}}function animcurve_exists(_Fl){if(arguments.length!=1){_q5("animcurve_exists() - requires a curve ID or struct");}var _Ul=false;if(typeof(_Fl)=="object"){if(_Fl instanceof _Vl){if(_Cl._Wl(_Fl)){
_Ul=true;}}}else {var _Bl=yyGetInt32(_Fl);if(_Cl._Dl(_Bl)!=null){_Ul=true;}}return _Ul?1.0:0.0;}function animcurve_channel_new(){return new _Pl();}function animcurve_point_new(){return new _Xl();}function _Yl(_Zl){var __l=_0m._1m(_Zl);if((__l===null)||(__l===undefined)){return false;}return true;}function _2m(_Zl){var _3m=_0m._1m(_Zl);if(!_3m)return "";return _3m.pName;}function _4m(_Zl){return _2m(_Zl);}function _5m(_Zl){var _3m=_0m._1m(_Zl);if(!_3m)return 0;if(_3m._6m===undefined)return 0;return _3m._6m.ow;}function _7m(_Zl){
var _3m=_0m._1m(_Zl);if(!_3m)return 0;if(_3m._6m===undefined)return 0;return _3m._6m.oh;}function _8m(_96,_a6,_Xi,_Yi,_9m,_am){var _bm=surface_create(_Xi,_Yi,_cm);var _jk=_dm._n6(_bm);var _em=_jk.getContext('2d');_em.drawImage(canvas,-_96,-_a6);if(_9m){_fm(_em,_Xi,_Yi);}var _gm=new _hm();var _k5=new _im();_gm._6m=_k5;_k5.x=0;_k5.y=0;_k5.w=_Xi;_k5.h=_Yi;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_bm;_k5.texture=_jk;return _0m._jm(_gm);}function _km(_yg,
_96,_a6,_Xi,_Yi,_9m,_am){var _kk=_dm._n6(_yg);var _bm=surface_create(_Xi,_Yi,_cm);var _jk=_dm._n6(_bm);var _em=_jk.getContext('2d');_em.drawImage(_kk,-_96,-_a6);if(_9m){_fm(_em,_Xi,_Yi);}var _gm=new _hm();var _k5=new _im();_gm._6m=_k5;_k5.x=0;_k5.y=0;_k5.w=_Xi;_k5.h=_Yi;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_bm;_k5.texture=_jk;return _0m._jm(_gm);}function _lm(_Xi,_Yi,_5d){var _mm=surface_create(_Xi,_Yi,_cm);var _nm=_dm._n6(_mm);var _em=_nm.getContext('2d');
_em.globalAlpha=1.0;_em.fillStyle=_om(_6d(_5d),1);_em.fillRect(0,0,_Xi,_Yi);var _gm=new _hm();var _k5=new _im();_gm._6m=_k5;_k5.x=0;_k5.y=0;_k5.w=_Xi;_k5.h=_Yi;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_mm;_k5.texture=_nm;return _0m._jm(_gm);}var _pm=_lm;function _qm(_Xi,_Yi,_rm,_sm,_Xc){var _mm=surface_create(_Xi,_Yi,_cm);var _nm=_dm._n6(_mm);var _em=_nm.getContext('2d');_em.globalAlpha=1.0;var _tm;if(_Xc==0){_tm=_em.createLinearGradient(0,0,_Xi,
0);}else {_tm=_em.createLinearGradient(0,0,0,_Yi);}_tm.addColorStop("0",_om(_6d(_rm),1));_tm.addColorStop("1.0",_om(_6d(_sm),1));_em.fillStyle=_tm;_em.fillRect(0,0,_Xi,_Yi);var _gm=new _hm();var _k5=new _im();_gm._6m=_k5;_k5.x=0;_k5.y=0;_k5.w=_Xi;_k5.h=_Yi;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_mm;_k5.texture=_nm;return _0m._jm(_gm);}function _um(_c5){return _0m._vm(_c5);}function _wm(_xm){var _3m=_0m._1m(_xm);if(_3m!=null&&_3m!=undefined){var _ym=_zm(_3m._6m);
var _gm=new _hm();_gm.pName=_3m.pName;_gm.transparent=_3m.transparent;_gm.smooth=_3m.smooth;_gm.preload=_3m.preload;_gm._Am=true;var _k5=_gm._6m=new _im();_k5._Am(_3m._6m);_k5.tp=_Bm(_ym);_k5.texture=_o5[_k5.tp];_k5.texture.complete=true;_k5.x=0;_k5.y=0;return _0m._jm(_gm);}return -1;}function _Cm(_1k,_0j){var _jk=_0m._1m(_1k);var _kk=_0m._1m(_0j);if(_jk!=null&&_jk!=undefined&&_kk!=null&&_kk!=undefined){var _ym=_zm(_kk._6m);var _gm=new _hm();_gm.pName=_kk.pName;_gm.transparent=_kk.transparent;_gm.smooth=_kk.smooth;
_gm.preload=_kk.preload;_gm._6m=new _im();_gm._6m._Am(_kk._6m);_gm._6m.tp=_Bm(_ym);_gm._6m.texture=_o5[_gm._6m.tp];_gm._6m.texture.complete=true;_gm._6m.x=0;_gm._6m.y=0;return _0m._Dm(_1k,_gm);}}function _Em(_xm,_96,_a6){var _ym=_0m._1m(_xm);if(!_ym)return;_Fm(_ym._6m,_96,_a6,_3d);}function _Gm(_xm,_96,_a6,_Xi,_Yi){var _ym=_0m._1m(_xm);if(!_ym)return;_Hm(_ym._6m,_96,_a6,_Xi,_Yi,0xffffff,_3d);}function _Im(_xm,_96,_a6){var _ym=_0m._1m(_xm);if(!_ym)return;_Jm(_ym._6m,_96,_a6,1,1,true,true,0xffffff,_3d);}function _Km(_xm,
_Lm,_Mm,_89,_99,_96,_a6){var _ym=_0m._1m(_xm);if(!_ym)return;_Nm(_ym._6m,_Lm,_Mm,_89,_99,_96,_a6,1,1,_Om,_3d);}function _Pm(_xm,_96,_a6,_Qm,_Rm,_h5,_Sm,_ga){var _ym=_0m._1m(_xm);if(!_ym)return;var c=_6d(_Sm);_Tm(_ym._6m,0,0,_96,_a6,_Qm,_Rm,_h5*Math.PI/180.0,c,c,c,c,_ga);}function _Um(_xm,_96,_a6,_Xi,_Yi,_Sm,_ga){var _ym=_0m._1m(_xm);if(!_ym)return;_Sm=_6d(_Sm);_Hm(_ym._6m,_96,_a6,_Xi,_Yi,_Sm,_ga);}function _Vm(_xm,_96,_a6,_Qm,_Rm,_Sm,_ga){var _ym=_0m._1m(_xm);if(!_ym)return;_Sm=_6d(_Sm);_Jm(_ym._6m,_96,
_a6,_Qm,_Rm,true,true,_Sm,_ga);}function _Wm(_xm,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_Sm,_ga){var _ym=_0m._1m(_xm);if(!_ym)return;_Sm=_6d(_Sm);_Nm(_ym._6m,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_Sm,_ga);}function _Xm(_xm,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_h5,_Ym,_Zm,__m,_0n,_ga){var _3m=_0m._1m(_xm);if(!_3m)return;_Ym=_6d(_Ym);_Zm=_6d(_Zm);__m=_6d(__m);_0n=_6d(_0n);_1n(_3m._6m,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_h5*Math.PI/180.0,_Ym,_Zm,__m,_0n,_ga);}function _2n(_c5,_xm){var _jk=_0m._1m(_c5);var _kk=_0m._1m(_xm);if(!_jk||!_kk)return;
if(!_jk._Am){var _ym=_zm(_jk._6m);var _gm=new _hm();_jk._6m.tp=_Bm(_ym);_jk._6m.texture=_o5[_kk._6m.tp];_jk._6m.texture.complete=true;_jk._6m.x=0;_jk._6m.y=0;_jk._Am=true;}_3n(_jk._6m,_kk._6m);}function _4n(_1l,_9m,_am){var _gm=new _hm();_gm.pName="";_gm.transparent=_9m;_gm.smooth=_am;_gm.preload=true;var _5n=_0m._jm(_gm);if(_1l.substring(0,5)=="file:")return -1;var _6n=_1l;var _B5=_t9(_6n);_o5[_B5].onload=_7n;_o5[_B5].onerror=_8n;_Uf._Vf(_5n,_1l,_9n,_o5[_B5]);var _k5=new _im();_gm._6m=_k5;_k5.x=0;_k5.y=0;_k5.w=0;
_k5.h=0;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_B5;_k5.texture=_o5[_k5.tp];return _5n;}function _an(_c5,_1l,_9m,_am){var _gm=_0m._1m(_c5);_gm.transparent=_9m;_gm.smooth=_am;if(_1l.substring(0,5)=="file:")return -1;var _6n=_1l;var _bn=_gm._6m.texture._z9;var _B5=_t9(_6n);_o5[_B5]._z9=_bn;_o5[_B5].onload=_7n;_o5[_B5].onerror=_8n;_Uf._Vf(_c5,_1l,_9n,_o5[_B5]);var _k5=_gm._6m;_k5.x=0;_k5.y=0;_k5.w=0;_k5.h=0;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;
_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5._cn=null;_k5._dn=0;_k5.tp=_B5;_k5.texture=_o5[_k5.tp];return _c5;}function _en(_c5){var _jk=_0m._1m(_c5);if(_jk){return({_Yc:_jk._6m.texture,_Zc:_jk._6m});}return null;}function _fn(_c5){var _jk=_0m._1m(_c5);if(_jk){var _k5=_jk._6m;var texture=_k5.texture;var _gn=1.0/texture._fd;var _hn=1.0/texture._gd;var _in=[];_in.push(_k5.x*_gn,_k5.y*_hn,(_k5.x+_k5.CropWidth)*_gn,(_k5.y+_k5.CropHeight)*_hn);return _in;}return null;}function _jn(_kn){var _3m=_0m._n6(_kn);if(_3m===null){
return -1;}var _k5=_3m._6m;if(_k5.texture){if(_k5.texture._z9){_A9(_k5.texture._z9);return 0;}}return -1;}function _ln(_mn){if(Array.isArray(_mn)){for(var _J6=0;_J6<_mn.length;_J6++){var _3m=_0m._n6(_mn[_J6]);if(_3m===null){return -1;}var _k5=_3m._6m;if(_k5.texture){if(_k5.texture._z9){_A9(_k5.texture._z9);return 0;}}}return 0;}else {return -1;}}function _nn(_kn){var _3m=_0m._n6(_kn);if(_3m===null){return -1;}var _k5=_3m._6m;if(_k5.texture){if(_k5.texture._z9){_on(_k5.texture._z9);return 0;}}return -1;}function _pn(_mn){
if(Array.isArray(_mn)){for(var _J6=0;_J6<_mn.length;_J6++){var _3m=_0m._n6(_mn[_J6]);if(_3m===null){return -1;}var _k5=_3m._6m;if(_k5.texture){if(_k5.texture._z9){_on(_k5.texture._z9);return 0;}}}return 0;}else {return -1;}}var _qn=[];var _rn=0;function _sn(target){if(typeof target.onselectstart!="undefined"){target.onselectstart=function(){return false;};}else if(typeof target.style.MozUserSelect!="undefined"){target.style.MozUserSelect="none";}else {target.onmousedown=function(){return false;};}target.style.cursor="default";
}function _tn(_96,_a6,_un,_vn,_wn,_xn){var _Ik=document.getElementById("canvas").parentNode;var _yn=document.getElementById("canvas");var _zn=document.createElement("div");_zn.style.cssText="-moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none;user-select: none;";_zn._An=false;_zn.setAttribute("id","gamemaker_image");_zn.style.position="absolute";_zn._ta=_un;var left=_96+_un.tpe_XOffset;var top=_a6+_un.tpe_YOffset;_zn.style.left=left+"px";_zn.style.top=top+"px";
_zn.style.width=_un.tpe_CropWidth+"px";_zn.style.height=_un.tpe_CropHeight+"px";_zn.style.padding="0px";_zn.style.margin="0px";_zn.style.border="0px";_sn(_zn);_zn.angle=0;_zn.x=_96;_zn.y=_a6;var _Bn=document.createElement('button');_Bn.onmousemove=_Cn;_Bn.type="button";_Bn.style.cursor=_zn.style.cursor=_yn.style.cursor;_Bn.style.width=_un.tpe_CropWidth+"px";_Bn.style.height=_un.tpe_CropHeight+"px";_Bn.style.opacity="1.0";_Bn.style.backgroundColor="rgba(0, 0, 0, 0.0)";_Bn.style.border="0px";_Bn.style.backgroundImage="url("+_un.tpe_texture.src+")";
_Bn.style.backgroundPosition=(-_un.tpe_x)+"px "+(-_un.tpe_y)+"px";_Bn.onclick=function(){if((_vn.substring(0,6)=="http:/")||(_vn.substring(0,6)=="https:")){var _Dn=window.open(_vn,_wn,_xn);return false;}else {var pFunc=eval("gml_Script_"+_vn);if(pFunc)pFunc(null,null,_wn,_xn);return false;}};_zn.insertBefore(_Bn,null);_Ik.insertBefore(_zn,null);return _zn;}function clickable_add(_96,_a6,_un,_vn,_wn,_xn){_qn[_rn]=_tn(yyGetReal(_96),yyGetReal(_a6),_un,yyGetString(_vn),yyGetString(_wn),yyGetString(_xn));return _rn++;
}function clickable_add_ext(_96,_a6,_un,_vn,_wn,_xn,_En,_ga){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_vn=yyGetString(_vn);_wn=yyGetString(_wn);_xn=yyGetString(_xn);_qn[_rn]=_tn(_96,_a6,_un,_vn,_wn,_xn);clickable_change_ext(_rn,_un,_96,_a6,yyGetReal(_ga),yyGetReal(_En));return _rn++;}function clickable_exists(_yg){var _Fn=_qn[yyGetInt32(_yg)];if(_Fn){return true;}else {return false;}}function clickable_delete(_yg){_yg=yyGetInt32(_yg);var _Fn=_qn[_yg];if(_Fn){_Fn.parentNode.removeChild(_Fn);_qn[_yg]=undefined;
}}function clickable_change(_yg,_un,_96,_a6){var _Fn=_qn[yyGetInt32(_yg)];if(_Fn){if(_Fn.firstChild){var _Gn=_Fn.firstChild;var left=yyGetReal(_96)+_un.tpe_XOffset;var top=yyGetReal(_a6)+_un.tpe_YOffset;_Fn.style.left=left+"px";_Fn.style.top=top+"px";_Fn.style.width=(_un.tpe_CropWidth)+"px";_Fn.style.height=(_un.tpe_CropHeight)+"px";_Gn.style.left=_Fn.style.left;_Gn.style.right=_Fn.style.top;_Gn.style.width=_Fn.style.width;_Gn.style.height=_Fn.style.height;_Gn.style.backgroundPosition=(-_un.tpe_x)+"px "+(-_un.tpe_y)+"px";
var _Hn=true;var _In="url("+_un.tpe_texture.src+")";if(typeof(_Gn.style.backgroundImage)!=undefined){if(_Gn.style.backgroundImage==_In){_Hn=false;}}if(_Hn==true){_Gn.style.backgroundImage=_In;}}}}function clickable_change_ext(_yg,_un,_96,_a6,_En,_ga){_yg=yyGetInt32(_yg);_96=yyGetReal(_96);_a6=yyGetReal(_a6);_En=yyGetReal(_En);_ga=yyGetReal(_ga);clickable_change(_yg,_un,_96,_a6);var _Fn=_qn[_yg];if(_Fn){var _Gn=_Fn.firstChild;if(_Fn.x!=_96){_Fn.style.left=_96+"px";_Fn.x=_96;}if(_Fn.y!=_a6){_Fn.style.top=_a6+"px";
_Fn.y=_a6;}if(_Gn){_Gn.style.width=_Fn.style.width=(_un.tpe_CropWidth*_En)+"px";_Gn.style.height=_Fn.style.height=(_un.tpe_CropHeight*_En)+"px";var _Jn=(_En*_un.tpe_texture.width*100)/(_un.tpe_CropWidth);_Gn.style.backgroundSize=(_En*_un.tpe_texture.width)+"px "+(_En*_un.tpe_texture.height)+"px";var _Kn=(-_un.tpe_x*_En);var _Ln=(-_un.tpe_y*_En);_Gn.style.backgroundPosition=_Kn+"px "+_Ln+"px";if(_Gn.style.opacity!=_ga)_Gn.style.opacity=_ga;}}}function clickable_set_style(_Mn,_Nn){var _Fn=_qn[yyGetInt32(_Mn)];
var _V7=_W7._n6(yyGetInt32(_Nn));if(_Fn&&_V7){var _Gn=_Fn.firstChild;if(_Gn){for(const [key,_Je] of _V7){_Gn.style[key]=_Je;}}}}function _On(_Pn,_96,_a6,_ck,_Ti,_Qn){return _Rn(_Pn,yyGetInt32(_ck),yyGetBool(_Qn),_Sn,_96,_a6,_Ti,function(_Tn){var _Un=_Tn._Vn(_96,_a6,_Ti);if(!_Un){return _Sn;}return _Wn(_Xn,_Tn.id);});};function _Yn(_Pn,_96,_a6,_ck,_Ti,_Qn,_C8){_Rn(_Pn,yyGetInt32(_ck),yyGetBool(_Qn),_Sn,_96,_a6,_Ti,function(_Tn){if(_Tn._Vn(_96,_a6,_Ti)){_C8.push(_Wn(_Xn,_Tn.id));}return _Sn;});};function collision_point(_Pn,
_96,_a6,_ck,_Ti,_Qn){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_Ti=yyGetBool(_Ti);if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){if(_1o(_96,_a6,_ck,null,_Ti)){return _ck;}return _Sn;}else {var id=_On(_Pn,_96,_a6,_ck,_Ti,_Qn);return id;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){if(_1o(_96,_a6,_2o,null,_Ti)){return _2o;}}else {var id=_On(_Pn,_96,_a6,_2o,_Ti,_Qn);if(id!=_Sn)return id;}}return _Sn;}else {var id=_On(_Pn,_96,_a6,_ck,_Ti,_Qn);return id;
}};function _3o(_4o,_5o,_6o,_7o){var _8o=[];for(var i=0;i<_4o.length;++i){var _9o=_4o[i];if(_9o instanceof _Zn){var __n=_9o.type;if(__n==_0o){var _ao=_bo._co();var _do=_bo._eo(_ao,_9o.value);var __b=_do.x-_6o;var _0c=_do.y-_7o;var _fo=(__b*__b)+(_0c*_0c);var _Ik={_go:_9o,_ho:_fo};_8o.push(_Ik);_9o=null;}else _9o=yyInst(null,null,yyGetInt32(_9o));}if(_9o){var __b=_9o.x-_6o;var _0c=_9o.y-_7o;var _fo=(__b*__b)+(_0c*_0c);var _Ik={_go:_Wn(_Xn,_9o.id),_ho:_fo};_8o.push(_Ik);}}_8o.sort(function(_05,__4){return _05._ho-__4._ho;
});for(var i=0;i<_8o.length;++i){_5o._Vf(_8o[i]._go);}};function collision_point_list(_Pn,_96,_a6,_ck,_Ti,_Qn,_C8,_io){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_Ti=yyGetBool(_Ti);var _ik=_gk._n6(yyGetInt32(_C8));if(!_ik){_q5("Error: invalid ds_list ID (instance_position_list)");return 0;}var _jo=false;var _ko=[];if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){_1o(_96,_a6,_ck,_ko,_Ti);_jo=true;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){
_1o(_96,_a6,_2o,_ko,_Ti);}else {_Yn(_Pn,_96,_a6,_2o,_Ti,_Qn,_ko);}}_jo=true;}if(!_jo)_Yn(_Pn,_96,_a6,_ck,_Ti,_Qn,_ko);var _c9=_ko.length;_3o(_ko,_ik,_96,_a6,_io);return _c9;};function _lo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn){return _Rn(_Pn,yyGetInt32(_ck),yyGetBool(_Qn),_Sn,_F7,_G7,_77,_87,_Ti,function(_Tn){var _Un=_Tn._mo(_F7,_G7,_77,_87,_Ti);if(!_Un){return _Sn;}return _Wn(_Xn,_Tn.id);});};function collision_rectangle(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);
_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){if(_no(_F7,_G7,_77,_87,_ck,null,_Ti)){return _ck;}return _Sn;}else {var id=_lo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn);return id;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){if(_no(_F7,_G7,_77,_87,_2o,null,_Ti)){return _2o;}}else {var id=_lo(_Pn,_F7,_G7,_77,_87,_2o,_Ti,_Qn);if(id!=_Sn)return id;}}return _Sn;}else {var id=_lo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn);return id;
}};function _oo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn,_C8){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);return _Rn(_Pn,yyGetInt32(_ck),yyGetBool(_Qn),_Sn,_F7,_G7,_77,_87,_Ti,function(_Tn){if(_Tn._mo(_F7,_G7,_77,_87,_Ti)){_C8.push(_Wn(_Xn,_Tn.id));}return _Sn;});};function collision_rectangle_list(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn,_C8,_io){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);var _ik=_gk._n6(yyGetInt32(_C8));
if(!_ik){_q5("Error: invalid ds_list ID (instance_position_list)");return 0;}var _jo=false;var _ko=[];if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){_no(_F7,_G7,_77,_87,_ck,_ko,_Ti);_jo=true;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){_no(_F7,_G7,_77,_87,_2o,_ko,_Ti);}else {_oo(_Pn,_F7,_G7,_77,_87,_2o,_Ti,_Qn,_ko);}}_jo=true;}if(!_jo)_oo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn,_ko);var _c9=_ko.length;var _po=(_F7+_77)*0.5;var _qo=(_G7+_87)*0.5;
_3o(_ko,_ik,_po,_qo,_io);return _c9;};function collision_circle(_Pn,_ro,_so,_to,_ck,_Ti,_Qn){return collision_ellipse(_Pn,_ro-_to,_so-_to,_ro+_to,_so+_to,_ck,_Ti,_Qn);};function collision_circle_list(_Pn,_ro,_so,_to,_ck,_Ti,_Qn,_C8,_io){var _ik=_gk._n6(yyGetInt32(_C8));if(!_ik){_q5("Error: invalid ds_list ID (collision_circle_list)");return 0;}return collision_ellipse_list(_Pn,_ro-_to,_so-_to,_ro+_to,_so+_to,_ck,_Ti,_Qn,_C8,_io);};function _uo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);
_77=yyGetReal(_77);_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);return _Rn(_Pn,yyGetInt32(_ck),yyGetBool(_Qn),_Sn,_F7,_G7,_77,_87,_Ti,function(_Tn){var _Un=_Tn._vo(_F7,_G7,_77,_87,_Ti);if(!_Un){return _Sn;}return _Wn(_Xn,_Tn.id);});};function _wo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn,_C8){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);return _Rn(_Pn,yyGetInt32(_ck),yyGetBool(_Qn),_Sn,_F7,_G7,_77,_87,_Ti,function(_Tn){if(_Tn._vo(_F7,_G7,_77,_87,_Ti)){_C8.push(_Wn(_Xn,
_Tn.id));}return _Sn;});};function collision_ellipse(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){if(_xo(_F7,_G7,_77,_87,_ck,null,_Ti)){return _ck;}return _Sn;}else {var id=_uo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn);return id;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){if(_xo(_F7,_G7,_77,_87,_2o,null,_Ti)){return _2o;
}}else {var id=_uo(_Pn,_F7,_G7,_77,_87,_2o,_Ti,_Qn);if(id!=_Sn)return id;}}return _Sn;}else {var id=_uo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn);return id;}};function collision_ellipse_list(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn,_C8,_io){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);var _ik=_gk._n6(yyGetInt32(_C8));if(!_ik){_q5("Error: invalid ds_list ID (instance_position_list)");return 0;}var _jo=false;var _ko=[];if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){_xo(_F7,_G7,
_77,_87,_ck,_ko,_Ti);_jo=true;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){_xo(_F7,_G7,_77,_87,_2o,_ko,_Ti);}else {_wo(_Pn,_F7,_G7,_77,_87,_2o,_Ti,_Qn,_ko);}}_jo=true;}if(!_jo)_wo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn,_ko);var _c9=_ko.length;var _po=(_F7+_77)*0.5;var _qo=(_G7+_87)*0.5;_3o(_ko,_ik,_po,_qo,_io);return _c9;};function _yo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn){return _Rn(_Pn,yyGetInt32(_ck),yyGetBool(_Qn),_Sn,_F7,_G7,_77,_87,_Ti,function(_Tn){
var _Un=_Tn._zo(_F7,_G7,_77,_87,_Ti);if(!_Un){return _Sn;}return _Wn(_Xn,_Tn.id);});};function _Ao(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn,_C8){_Rn(_Pn,yyGetInt32(_ck),yyGetBool(_Qn),_Sn,_F7,_G7,_77,_87,_Ti,function(_Tn){if(_Tn._zo(_F7,_G7,_77,_87,_Ti)){_C8.push(_Wn(_Xn,_Tn.id));}return _Sn;});};function collision_line(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){if(_Bo(_F7,_G7,
_77,_87,_ck,null,_Ti)){return _ck;}return _Sn;}else {var id=_yo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn);return id;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){if(_Bo(_F7,_G7,_77,_87,_2o,null,_Ti)){return _2o;}}else {var id=_yo(_Pn,_F7,_G7,_77,_87,_2o,_Ti,_Qn);if(id!=_Sn)return id;}}return _Sn;}else {var id=_yo(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn);return id;}};function collision_line_list(_Pn,_F7,_G7,_77,_87,_ck,_Ti,_Qn,_C8,_io){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);
_77=yyGetReal(_77);_87=yyGetReal(_87);_Ti=yyGetBool(_Ti);var _ik=_gk._n6(yyGetInt32(_C8));if(!_ik){_q5("Error: invalid ds_list ID (collision_line_list)");return 0;}var _jo=false;var _ko=[];if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){_Bo(_F7,_G7,_77,_87,_ck,_ko,_Ti);_jo=true;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){_Bo(_F7,_G7,_77,_87,_2o,_ko,_Ti);}else {_Ao(_Pn,_F7,_G7,_77,_87,_2o,_Ti,_Qn,_ko);}}_jo=true;}if(!_jo)_Ao(_Pn,_F7,
_G7,_77,_87,_ck,_Ti,_Qn,_ko);var _c9=_ko.length;_3o(_ko,_ik,_F7,_G7,_io);return _c9;};function point_in_rectangle(_6o,_7o,_F7,_G7,_77,_87){_6o=yyGetReal(_6o);_7o=yyGetReal(_7o);if((_6o>=yyGetReal(_F7)&&_6o<=yyGetReal(_77))&&(_7o>=yyGetReal(_G7)&&_7o<=yyGetReal(_87))){return true;}return false;};function rectangle_in_rectangle(_Co,_Do,_Eo,_Fo,_F7,_G7,_77,_87){_Co=yyGetReal(_Co);_Do=yyGetReal(_Do);_Eo=yyGetReal(_Eo);_Fo=yyGetReal(_Fo);_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);
var _Go=0;var _Ho=0;if(_Co>_Eo){_Ho=_Co;_Co=_Eo;_Eo=_Ho;}if(_Do>_Fo){_Ho=_Do;_Do=_Fo;_Fo=_Ho;}if(_F7>_77){_Ho=_F7;_F7=_77;_77=_Ho;}if(_G7>_87){_Ho=_G7;_G7=_87;_87=_Ho;}if((_Co>=_F7&&_Co<=_77)&&(_Do>=_G7&&_Do<=_87))_Go|=1;if((_Eo>=_F7&&_Eo<=_77)&&(_Do>=_G7&&_Do<=_87))_Go|=2;if((_Eo>=_F7&&_Eo<=_77)&&(_Fo>=_G7&&_Fo<=_87))_Go|=4;if((_Co>=_F7&&_Co<=_77)&&(_Fo>=_G7&&_Fo<=_87))_Go|=8;var result=0;if(_Go==15){result=1.0;}else if(_Go==0){result=0.0;_Go=0;if((_F7>=_Co&&_F7<=_Eo)&&(_G7>=_Do&&_G7<=_Fo))_Go|=1;if((_77>=_Co&&_77<=_Eo)&&(_G7>=_Do&&_G7<=_Fo))_Go|=2;
if((_77>=_Co&&_77<=_Eo)&&(_87>=_Do&&_87<=_Fo))_Go|=4;if((_F7>=_Co&&_F7<=_Eo)&&(_87>=_Do&&_87<=_Fo))_Go|=8;if(0!=_Go)result=2.0;else {_Go=0;if((_F7>=_Co&&_F7<=_Eo)&&(_Do>=_G7&&_Do<=_87))_Go|=1;if((_77>=_Co&&_77<=_Eo)&&(_Do>=_G7&&_Do<=_87))_Go|=2;if((_77>=_Co&&_77<=_Eo)&&(_Fo>=_G7&&_Fo<=_87))_Go|=4;if((_F7>=_Co&&_F7<=_Eo)&&(_Fo>=_G7&&_Fo<=_87))_Go|=8;if(0!=_Go)result=2.0;else {_Go=0;if((_Co>=_F7&&_Co<=_77)&&(_G7>=_Do&&_G7<=_Fo))_Go|=1;if((_Eo>=_F7&&_Eo<=_77)&&(_G7>=_Do&&_G7<=_Fo))_Go|=2;if((_Eo>=_F7&&_Eo<=_77)&&(_87>=_Do&&_87<=_Fo))_Go|=4;
if((_Co>=_F7&&_Co<=_77)&&(_87>=_Do&&_87<=_Fo))_Go|=8;if(0!=_Go)result=2.0;}}}else {result=2.0;}return result;};function _Io(_Jo,_Ko,_f7,_g7,_h7,_i7,_1c,_2c){var _cc=_1c-_f7;var _ec=_h7-_f7;var _gc=_Jo-_f7;var _dc=_2c-_g7;var _fc=_i7-_g7;var _hc=_Ko-_g7;var _Lo=(_cc*_cc)+(_dc*_dc);var _Mo=(_cc*_ec)+(_dc*_fc);var _No=(_cc*_gc)+(_dc*_hc);var _Oo=(_ec*_ec)+(_fc*_fc);var _Po=(_ec*_gc)+(_fc*_hc);var _Qo=1.0/(_Lo*_Oo-_Mo*_Mo);var _G5=(_Oo*_No-_Mo*_Po)*_Qo;var _H5=(_Lo*_Po-_Mo*_No)*_Qo;return((_G5>=0.0)&&(_H5>=0.0)&&(_G5+_H5<1.0));
};function point_in_triangle(_6o,_7o,_F7,_G7,_77,_87,_Ro,_So){return _Io(yyGetReal(_6o),yyGetReal(_7o),yyGetReal(_F7),yyGetReal(_G7),yyGetReal(_77),yyGetReal(_87),yyGetReal(_Ro),yyGetReal(_So));};function _To(_6o,_7o,_Uo,_Vo,_Wo){var _Xo=(((_6o-_Uo)*(_6o-_Uo))+((_7o-_Vo)*(_7o-_Vo)));if(_Xo<=_Wo)return true;return false;};function point_in_circle(_6o,_7o,_Uo,_Vo,_Yo){return _To(yyGetReal(_6o),yyGetReal(_7o),yyGetReal(_Uo),yyGetReal(_Vo),yyGetReal(_Yo)*yyGetReal(_Yo));};function rectangle_in_circle(_Zo,__o,
_0p,_1p,_Uo,_Vo,_Yo){var _f7,_g7,_h7,_i7,_po,_qo,_2p,_3p,_4p;_f7=yyGetReal(_Zo);_g7=yyGetReal(__o);_h7=yyGetReal(_0p);_i7=yyGetReal(_1p);_po=yyGetReal(_Uo);_qo=yyGetReal(_Vo);_2p=yyGetReal(_Yo);var _5p=_2p*_2p;_3p=_po;_4p=_qo;if(_3p<_f7)_3p=_f7;if(_3p>_h7)_3p=_h7;if(_4p<_g7)_4p=_g7;if(_4p>_i7)_4p=_i7;var _ho=(_3p-_po)*(_3p-_po)+(_4p-_qo)*(_4p-_qo);var _6p=0.0;if(_ho<=_5p){_6p=2.0;if((_To(_f7,_g7,_po,_qo,_5p))&&(_To(_h7,_g7,_po,_qo,_5p))&&(_To(_h7,_i7,_po,_qo,_5p))&&(_To(_f7,_i7,_po,_qo,_5p))){_6p=1.0;
}}return _6p;};function _7p(_Zo,__o,_0p,_1p,_Uo,_Vo,_Yo){var _f7,_g7,_h7,_i7,_po,_qo,_2p,_3p,_4p;_f7=yyGetReal(_Zo);_g7=yyGetReal(__o);_h7=yyGetReal(_0p);_i7=yyGetReal(_1p);_po=yyGetReal(_Uo);_qo=yyGetReal(_Vo);_2p=yyGetReal(_Yo);var _5p=_2p*_2p;_3p=_po;_4p=_qo;if(_3p<_f7)_3p=_f7;if(_3p>_h7)_3p=_h7;if(_4p<_g7)_4p=_g7;if(_4p>_i7)_4p=_i7;var _ho=(_3p-_po)*(_3p-_po)+(_4p-_qo)*(_4p-_qo);var _6p=0.0;if(_ho<=_5p){_6p=2.0;if((Math.abs(_po-_f7)>_2p)&&(Math.abs(_po-_h7)>_2p)&&(Math.abs(_qo-_g7)>_2p)&&(Math.abs(_qo-_i7)>_2p)){
_6p=1.0;}}return _6p;};function _8p(_9p,_ap){var __b=_ap.x-_9p.x;var _0c=_ap.y-_9p.y;var _bp={"x":-_0c,"y":__b};return _bp;};function _cp(_Ma,_dp,_bp){var min,max;var _Xo=_Ma[0].x*_bp.x+_Ma[0].y*_bp.y;min=max=_Xo;for(var i=1;i<_dp;++i){_Xo=_Ma[i].x*_bp.x+_Ma[i].y*_bp.y;if(_Xo<min)min=_Xo;else if(_Xo>max)max=_Xo;}var _ep={"min":min,"max":max};return _ep;};function rectangle_in_triangle(_Zo,__o,_0p,_1p,_F7,_G7,_77,_87,_Ro,_So){_Zo=yyGetReal(_Zo);__o=yyGetReal(__o);_0p=yyGetReal(_0p);_1p=yyGetReal(_1p);_F7=yyGetReal(_F7);
_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ro=yyGetReal(_Ro);_So=yyGetReal(_So);var _Go=0;if(_Io(_Zo,__o,_F7,_G7,_77,_87,_Ro,_So))_Go|=1;if(_Io(_0p,__o,_F7,_G7,_77,_87,_Ro,_So))_Go|=2;if(_Io(_0p,_1p,_F7,_G7,_77,_87,_Ro,_So))_Go|=4;if(_Io(_Zo,_1p,_F7,_G7,_77,_87,_Ro,_So))_Go|=8;if(_Go==15){return 1.0;}else if(_Go!=0){return 2.0;}var _fp=[];_fp[0]={"x":_F7,"y":_G7};_fp[1]={"x":_77,"y":_87};_fp[2]={"x":_Ro,"y":_So};var axes=[];axes[0]={"x":0,"y":1};axes[1]={"x":1,"y":0};axes[2]=_8p(_fp[0],
_fp[1]);axes[3]=_8p(_fp[1],_fp[2]);axes[4]=_8p(_fp[2],_fp[0]);var _gp=[];_gp[0]={"x":_Zo,"y":__o};_gp[1]={"x":_0p,"y":__o};_gp[2]={"x":_Zo,"y":_1p};_gp[3]={"x":_0p,"y":_1p};for(var i=0;i<5;++i){var _bp=axes[i];var _hp=_cp(_fp,3,_bp);var _ip=_cp(_gp,4,_bp);if(_ip.max<=_hp.min||_hp.max<=_ip.min){return 0.0;}}return 2.0;};function _jp(){}function _kp(){}function _lp(){}function _mp(){}function _np(){}function _op(){}function _pp(){}function _qp(){}function _rp(){}function _sp(){}function _tp(){}function _up(){}function _vp(){
}function matrix_get(){}function matrix_set(){}function gpu_set_stencil_enable(){}function gpu_set_stencil_func(){}function gpu_set_stencil_ref(){}function gpu_set_stencil_read_mask(){}function gpu_set_stencil_write_mask(){}function gpu_set_stencil_fail(){}function gpu_set_stencil_depth_fail(){}function gpu_set_stencil_pass(){}function gpu_set_blendenable(){}function gpu_set_ztestenable(){}function gpu_set_zfunc(){}function gpu_set_zwriteenable(){}function gpu_set_fog(){}function gpu_set_cullmode(){}function gpu_set_blendmode(){
}function gpu_set_blendmode_ext(){}function gpu_set_blendmode_ext_sepalpha(){}function gpu_set_blendequation(){}function gpu_set_blendequation_sepalpha(){}function gpu_set_colorwriteenable(){}function gpu_set_colourwriteenable(){}function gpu_set_alphatestenable(){}function gpu_set_alphatestref(){}function gpu_set_texfilter(){}function gpu_set_texfilter_ext(){}function gpu_set_texrepeat(){}function gpu_set_texrepeat_ext(){}function gpu_set_tex_filter(){}function gpu_set_tex_filter_ext(){}function gpu_set_tex_repeat(){
}function gpu_set_tex_repeat_ext(){}function gpu_set_tex_mip_filter(){}function gpu_set_tex_mip_filter_ext(){}function gpu_set_tex_mip_bias(){}function gpu_set_tex_mip_bias_ext(){}function gpu_set_tex_min_mip(){}function gpu_set_tex_min_mip_ext(){}function gpu_set_tex_max_mip(){}function gpu_set_tex_max_mip_ext(){}function gpu_set_tex_max_aniso(){}function gpu_set_tex_max_aniso_ext(){}function gpu_set_tex_mip_enable(){}function gpu_set_tex_mip_enable_ext(){}function gpu_set_scissor(){}function gpu_get_stencil_enable(){
}function gpu_get_stencil_func(){}function gpu_get_stencil_ref(){}function gpu_get_stencil_read_mask(){}function gpu_get_stencil_write_mask(){}function gpu_get_stencil_fail(){}function gpu_get_stencil_depth_fail(){}function gpu_get_stencil_pass(){}function gpu_get_blendenable(){}function gpu_get_ztestenable(){}function gpu_get_zfunc(){}function gpu_get_zwriteenable(){}function gpu_get_fog(){}function gpu_get_cullmode(){}function gpu_get_blendmode(){}function gpu_get_blendmode_ext(){}function gpu_get_blendmode_ext_sepalpha(){
}function gpu_get_blendmode_src(){}function gpu_get_blendmode_dest(){}function gpu_get_blendmode_srcalpha(){}function gpu_get_blendmode_destalpha(){}function gpu_get_blendequation(){}function gpu_get_blendequation_sepalpha(){}function gpu_get_colorwriteenable(){}function gpu_get_colourwriteenable(){}function gpu_get_alphatestenable(){}function gpu_get_alphatestref(){}function gpu_get_texfilter(){}function gpu_get_texfilter_ext(){}function gpu_get_texrepeat(){}function gpu_get_texrepeat_ext(){}function gpu_get_tex_filter(){
}function gpu_get_tex_filter_ext(){}function gpu_get_tex_repeat(){}function gpu_get_tex_repeat_ext(){}function gpu_get_scissor(){}function gpu_get_tex_mip_filter(){}function gpu_get_tex_mip_filter_ext(){}function gpu_get_tex_mip_bias(){}function gpu_get_tex_mip_bias_ext(){}function gpu_get_tex_min_mip(){}function gpu_get_tex_min_mip_ext(){}function gpu_get_tex_max_mip(){}function gpu_get_tex_max_mip_ext(){}function gpu_get_tex_max_aniso(){}function gpu_get_tex_max_aniso_ext(){}function gpu_get_tex_mip_enable(){
}function gpu_get_tex_mip_enable_ext(){}function gpu_push_state(){}function gpu_pop_state(){}function gpu_get_state(){}function gpu_set_state(){}(()=>{let _Ic=(_w4,_k4)=>()=>_Jc(_w4,_k4);compile_if_used(_jp=_Ic("d3d_set_depth"));compile_if_used(_kp=_Ic("draw_set_color_write_enable"));compile_if_used(_lp=_Ic("draw_set_colour_write_enable"));compile_if_used(draw_set_lighting,_mp=_Ic("d3d_set_lighting"));compile_if_used(draw_light_define_direction,_np=_Ic("d3d_light_define_direction"));compile_if_used(draw_light_define_point,
_op=_Ic("d3d_light_define_point"));compile_if_used(draw_light_enable,_pp=_Ic("d3d_light_enable"));compile_if_used(draw_light_define_ambient,_qp=_Ic("d3d_light_define_ambient"));compile_if_used(draw_light_get,_sp=_Ic("d3d_light_get"));compile_if_used(draw_light_get_ambient,_tp=_Ic("d3d_light_get_ambient"));compile_if_used(draw_get_lighting,_up=_Ic("d3d_get_lighting"));compile_if_used(_vp=_Ic("d3d_set_perspective"));_rp=_Ic("d3d_set_fog");compile_if_used(matrix_get=_Ic("matrix_get"));compile_if_used(matrix_set=_Ic("matrix_set"));
compile_if_used(gpu_set_stencil_enable=_Ic("gpu_set_stencil_enable"));compile_if_used(gpu_set_stencil_func=_Ic("gpu_set_stencil_func"));compile_if_used(gpu_set_stencil_ref=_Ic("gpu_set_stencil_ref"));compile_if_used(gpu_set_stencil_read_mask=_Ic("gpu_set_stencil_read_mask"));compile_if_used(gpu_set_stencil_write_mask=_Ic("gpu_set_stencil_write_mask"));compile_if_used(gpu_set_stencil_fail=_Ic("gpu_set_stencil_fail"));compile_if_used(gpu_set_stencil_depth_fail=_Ic("gpu_set_stencil_depth_fail"));compile_if_used(gpu_set_stencil_pass=_Ic("gpu_set_stencil_pass"));
compile_if_used(gpu_set_blendenable=_Ic("gpu_set_blendenable"));compile_if_used(gpu_set_ztestenable=_Ic("gpu_set_ztestenable"));compile_if_used(gpu_set_zfunc=_Ic("gpu_set_zfunc"));compile_if_used(gpu_set_zwriteenable=_Ic("gpu_set_zwriteenable"));compile_if_used(gpu_set_fog=_Ic("gpu_set_fog"));compile_if_used(gpu_set_cullmode=_Ic("gpu_set_cullmode"));compile_if_used(gpu_set_blendmode=_Ic("gpu_set_blendmode"));compile_if_used(gpu_set_blendmode_ext=_Ic("gpu_set_blendmode_ext"));compile_if_used(gpu_set_blendmode_ext_sepalpha=_Ic("gpu_set_blendmode_ext_sepalpha"));
compile_if_used(gpu_set_blendequation=_Ic("gpu_set_blendequation"));compile_if_used(gpu_set_blendequation_sepalpha=_Ic("gpu_set_blendequation_sepalpha"));compile_if_used(gpu_set_colorwriteenable=_Ic("gpu_set_colorwriteenable"));compile_if_used(gpu_set_colourwriteenable=_Ic("gpu_set_colourwriteenable"));compile_if_used(gpu_set_alphatestenable=_Ic("gpu_set_alphatestenable"));compile_if_used(gpu_set_alphatestref=_Ic("gpu_set_alphatestref"));compile_if_used(gpu_set_texfilter=_Ic("gpu_set_texfilter"));
gpu_set_texfilter_ext=_Ic("gpu_set_texfilter_ext");compile_if_used(gpu_set_texrepeat=_Ic("gpu_set_texrepeat"));gpu_set_texrepeat_ext=_Ic("gpu_set_texrepeat_ext");compile_if_used(gpu_set_tex_filter=_Ic("gpu_set_tex_filter"));gpu_set_tex_filter_ext=_Ic("gpu_set_tex_filter_ext");compile_if_used(gpu_set_tex_repeat=_Ic("gpu_set_tex_repeat"));compile_if_used(gpu_set_tex_repeat_ext=_Ic("gpu_set_tex_repeat_ext"));compile_if_used(gpu_set_tex_mip_filter=_Ic("gpu_set_tex_mip_filter"));compile_if_used(gpu_set_tex_mip_filter_ext=_Ic("gpu_set_tex_mip_filter_ext"));
compile_if_used(gpu_set_tex_mip_bias=_Ic("gpu_set_tex_mip_bias"));compile_if_used(gpu_set_tex_mip_bias_ext=_Ic("gpu_set_tex_mip_bias_ext"));compile_if_used(gpu_set_tex_min_mip=_Ic("gpu_set_tex_min_mip"));compile_if_used(gpu_set_tex_min_mip_ext=_Ic("gpu_set_tex_min_mip_ext"));compile_if_used(gpu_set_tex_max_mip=_Ic("gpu_set_tex_max_mip"));compile_if_used(gpu_set_tex_max_mip_ext=_Ic("gpu_set_tex_max_mip_ext"));compile_if_used(gpu_set_tex_max_aniso=_Ic("gpu_set_tex_max_aniso"));compile_if_used(gpu_set_tex_max_aniso_ext=_Ic("gpu_set_tex_max_aniso_ext"));
compile_if_used(gpu_set_tex_mip_enable=_Ic("gpu_set_tex_mip_enable"));compile_if_used(gpu_set_tex_mip_enable_ext=_Ic("gpu_set_tex_mip_enable_ext"));compile_if_used(gpu_get_stencil_enable=_Ic("gpu_get_stencil_enable"));compile_if_used(gpu_get_stencil_func=_Ic("gpu_get_stencil_func"));compile_if_used(gpu_get_stencil_ref=_Ic("gpu_get_stencil_ref"));compile_if_used(gpu_get_stencil_read_mask=_Ic("gpu_get_stencil_read_mask"));compile_if_used(gpu_get_stencil_write_mask=_Ic("gpu_get_stencil_write_mask"));
compile_if_used(gpu_get_stencil_fail=_Ic("gpu_get_stencil_fail"));compile_if_used(gpu_get_stencil_depth_fail=_Ic("gpu_get_stencil_depth_fail"));compile_if_used(gpu_get_stencil_pass=_Ic("gpu_get_stencil_pass"));compile_if_used(gpu_get_blendenable=_Ic("gpu_get_blendenable"));gpu_get_ztestenable=_Ic("gpu_get_ztestenable");compile_if_used(gpu_get_zfunc=_Ic("gpu_get_zfunc"));gpu_get_zwriteenable=_Ic("gpu_get_zwriteenable");compile_if_used(gpu_get_fog=_Ic("gpu_get_fog"));gpu_get_cullmode=_Ic("gpu_get_cullmode");
compile_if_used(gpu_get_blendmode=_Ic("gpu_get_blendmode"));compile_if_used(gpu_get_blendmode_ext=_Ic("gpu_get_blendmode_ext"));compile_if_used(gpu_get_blendmode_ext_sepalpha=_Ic("gpu_get_blendmode_ext_sepalpha"));compile_if_used(gpu_get_blendmode_src=_Ic("gpu_get_blendmode_src"));compile_if_used(gpu_get_blendmode_dest=_Ic("gpu_get_blendmode_dest"));compile_if_used(gpu_get_blendmode_srcalpha=_Ic("gpu_get_blendmode_srcalpha"));compile_if_used(gpu_get_blendmode_destalpha=_Ic("gpu_get_blendmode_destalpha"));
compile_if_used(gpu_get_blendequation=_Ic("gpu_get_blendequation"));compile_if_used(gpu_get_blendequation_sepalpha=_Ic("gpu_get_blendequation_sepalpha"));compile_if_used(gpu_get_colorwriteenable=_Ic("gpu_get_colorwriteenable"));compile_if_used(gpu_get_colourwriteenable=_Ic("gpu_get_colourwriteenable"));gpu_get_alphatestenable=_Ic("gpu_get_alphatestenable");compile_if_used(gpu_get_alphatestref=_Ic("gpu_get_alphatestref"));compile_if_used(gpu_get_texfilter=_Ic("gpu_get_texfilter"));compile_if_used(gpu_get_texfilter_ext=_Ic("gpu_get_texfilter_ext"));
compile_if_used(gpu_get_texrepeat=_Ic("gpu_get_texrepeat"));compile_if_used(gpu_get_texrepeat_ext=_Ic("gpu_get_texrepeat_ext"));compile_if_used(gpu_get_tex_filter=_Ic("gpu_get_tex_filter"));compile_if_used(gpu_get_tex_filter_ext=_Ic("gpu_get_tex_filter_ext"));compile_if_used(gpu_get_tex_repeat=_Ic("gpu_get_tex_repeat"));compile_if_used(gpu_get_tex_repeat_ext=_Ic("gpu_get_tex_repeat_ext"));compile_if_used(gpu_get_tex_mip_filter=_Ic("gpu_get_tex_mip_filter"));compile_if_used(gpu_get_tex_mip_filter_ext=_Ic("gpu_get_tex_mip_filter_ext"));
compile_if_used(gpu_get_tex_mip_bias=_Ic("gpu_get_tex_mip_bias"));compile_if_used(gpu_get_tex_mip_bias_ext=_Ic("gpu_get_tex_mip_bias_ext"));compile_if_used(gpu_get_tex_min_mip=_Ic("gpu_get_tex_min_mip"));compile_if_used(gpu_get_tex_min_mip_ext=_Ic("gpu_get_tex_min_mip_ext"));compile_if_used(gpu_get_tex_max_mip=_Ic("gpu_get_tex_max_mip"));compile_if_used(gpu_get_tex_max_mip_ext=_Ic("gpu_get_tex_max_mip_ext"));compile_if_used(gpu_get_tex_max_aniso=_Ic("gpu_get_tex_max_aniso"));compile_if_used(gpu_get_tex_max_aniso_ext=_Ic("gpu_get_tex_max_aniso_ext"));
compile_if_used(gpu_get_tex_mip_enable=_Ic("gpu_get_tex_mip_enable"));compile_if_used(gpu_get_tex_mip_enable_ext=_Ic("gpu_get_tex_mip_enable_ext"));compile_if_used(gpu_push_state=_Ic("gpu_push_state"));compile_if_used(gpu_pop_state=_Ic("gpu_pop_state"));compile_if_used(gpu_get_state=_Ic("gpu_get_state"));compile_if_used(gpu_set_state=_Ic("gpu_set_state"));compile_if_used(gpu_get_scissor=_Ic("gpu_get_scissor"));compile_if_used(gpu_set_scissor=_Ic("gpu_set_scissor"));})();var matrix_build=_wp;var matrix_multiply=_xp;
var matrix_transform_vertex=_yp;var matrix_stack_push=_zp;var matrix_stack_pop=_Ap;var matrix_stack_set=_Bp;var matrix_stack_clear=_Cp;var matrix_stack_top=_Dp;var matrix_stack_is_empty=_Ep;var matrix_build_identity=_Fp;var matrix_build_lookat=_Gp;var matrix_build_projection_ortho=_Hp;var matrix_build_projection_perspective=_Ip;var matrix_build_projection_perspective_fov=_Jp;var _Kp=50;var _Lp=0;var _Mp=new Array(_Kp+1);function _Np(){if(!_09){return;}_jp=_Op;compile_if_used(_kp=_Pp);compile_if_used(_lp=_Pp);_vp=_Qp;
compile_if_used(draw_set_lighting,_mp=_Rp);compile_if_used(draw_light_define_direction,_np=_Sp);compile_if_used(draw_light_define_point,_op=_Tp);compile_if_used(draw_light_enable,_pp=_Up);compile_if_used(draw_light_define_ambient,_qp=_Vp);compile_if_used(draw_light_get,_sp=_Wp);compile_if_used(draw_light_get_ambient,_tp=_Xp);compile_if_used(draw_get_lighting,_up=_Yp);_rp=_Zp;compile_if_used(matrix_get=__p);compile_if_used(matrix_set=_0q);compile_if_used(gpu_set_stencil_enable=_1q);compile_if_used(gpu_set_stencil_func=_2q);
compile_if_used(gpu_set_stencil_ref=_3q);compile_if_used(gpu_set_stencil_read_mask=_4q);compile_if_used(gpu_set_stencil_write_mask=_5q);compile_if_used(gpu_set_stencil_fail=_6q);compile_if_used(gpu_set_stencil_depth_fail=_7q);compile_if_used(gpu_set_stencil_pass=_8q);compile_if_used(gpu_set_blendmode=_9q);compile_if_used(gpu_set_blendenable=_aq);compile_if_used(gpu_set_ztestenable=_bq);compile_if_used(gpu_set_depth=_cq);compile_if_used(gpu_set_zfunc=_dq);compile_if_used(gpu_set_zwriteenable=_eq);
compile_if_used(gpu_set_fog=_fq);compile_if_used(gpu_set_cullmode=_gq);compile_if_used(gpu_set_blendmode=_9q);compile_if_used(gpu_set_blendmode_ext=_hq);compile_if_used(gpu_set_blendmode_ext_sepalpha=_iq);compile_if_used(gpu_set_blendequation=_jq);compile_if_used(gpu_set_blendequation_sepalpha=_kq);compile_if_used(gpu_set_colorwriteenable=_lq);compile_if_used(gpu_set_colourwriteenable=_mq);compile_if_used(gpu_set_alphatestenable=_nq);compile_if_used(gpu_set_alphatestref=_oq);compile_if_used(gpu_set_texfilter=_pq);
gpu_set_texfilter_ext=_qq;compile_if_used(gpu_set_texrepeat=_rq);gpu_set_texrepeat_ext=_sq;compile_if_used(gpu_set_tex_filter=_pq);gpu_set_tex_filter_ext=_qq;compile_if_used(gpu_set_tex_repeat=_rq);compile_if_used(gpu_set_tex_repeat_ext=_sq);compile_if_used(gpu_set_tex_mip_filter=_tq);compile_if_used(gpu_set_tex_mip_filter_ext=_uq);compile_if_used(gpu_set_tex_mip_bias=_vq);compile_if_used(gpu_set_tex_mip_bias_ext=_wq);compile_if_used(gpu_set_tex_min_mip=_xq);compile_if_used(gpu_set_tex_min_mip_ext=_yq);
compile_if_used(gpu_set_tex_max_mip=_zq);compile_if_used(gpu_set_tex_max_mip_ext=_Aq);compile_if_used(gpu_set_tex_max_aniso=_Bq);compile_if_used(gpu_set_tex_max_aniso_ext=_Cq);compile_if_used(gpu_set_tex_mip_enable=_Dq);compile_if_used(gpu_set_tex_mip_enable_ext=_Eq);compile_if_used(gpu_get_stencil_enable=_Fq);compile_if_used(gpu_get_stencil_func=_Gq);compile_if_used(gpu_get_stencil_ref=_Hq);compile_if_used(gpu_get_stencil_read_mask=_Iq);compile_if_used(gpu_get_stencil_write_mask=_Jq);compile_if_used(gpu_get_stencil_fail=_Kq);
compile_if_used(gpu_get_stencil_depth_fail=_Lq);compile_if_used(gpu_get_stencil_pass=_Mq);compile_if_used(gpu_get_blendenable=_Nq);gpu_get_ztestenable=_Oq;compile_if_used(gpu_get_depth=_Pq);compile_if_used(gpu_get_zfunc=_Qq);gpu_get_zwriteenable=_Rq;compile_if_used(gpu_get_fog=_Sq);gpu_get_cullmode=_Tq;compile_if_used(gpu_get_blendmode=_Uq);compile_if_used(gpu_get_blendmode_ext=_Vq);compile_if_used(gpu_get_blendmode_ext_sepalpha=_Wq);compile_if_used(gpu_get_blendmode_src=_Xq);compile_if_used(gpu_get_blendmode_dest=_Yq);
compile_if_used(gpu_get_blendmode_srcalpha=_Zq);compile_if_used(gpu_get_blendmode_destalpha=__q);compile_if_used(gpu_get_colorwriteenable=_0r);compile_if_used(gpu_get_colourwriteenable=_1r);gpu_get_alphatestenable=_2r;compile_if_used(gpu_get_alphatestref=_3r);compile_if_used(gpu_get_texfilter=_4r);gpu_get_texfilter_ext=_5r;compile_if_used(gpu_get_texrepeat=_6r);compile_if_used(gpu_get_tex_filter=_4r);compile_if_used(gpu_get_tex_filter_ext=_5r);compile_if_used(gpu_get_tex_repeat=_6r);compile_if_used(gpu_get_tex_repeat_ext=_7r);
compile_if_used(gpu_get_tex_mip_filter=_8r);compile_if_used(gpu_get_tex_mip_filter_ext=_9r);compile_if_used(gpu_get_tex_mip_bias=_ar);compile_if_used(gpu_get_tex_mip_bias_ext=_br);compile_if_used(gpu_get_tex_min_mip=_cr);compile_if_used(gpu_get_tex_min_mip_ext=_dr);compile_if_used(gpu_get_tex_max_mip=_er);compile_if_used(gpu_get_tex_max_mip_ext=_fr);compile_if_used(gpu_get_tex_max_aniso=_gr);compile_if_used(gpu_get_tex_max_aniso_ext=_hr);compile_if_used(gpu_get_tex_mip_enable=_ir);compile_if_used(gpu_get_tex_mip_enable_ext=_jr);
compile_if_used(gpu_push_state=_kr);compile_if_used(gpu_pop_state=_lr);compile_if_used(gpu_get_state=_mr);compile_if_used(gpu_set_state=_nr);compile_if_used(gpu_get_scissor=_or);compile_if_used(gpu_set_scissor=_pr);_Mp[0]=new _qr();}function _Op(_rr){_Fb=Math.min(16000.0,Math.max(-16000.0,_rr));}function _Pp(_sr,_tr,_ur,alpha){_vr._sr=(_sr>=0.5);_vr._tr=(_tr>=0.5);_vr._ur=(_ur>=0.5);_vr.alpha=(alpha>=0.5);_09._wr(_vr._sr,_vr._tr,_vr._ur,_vr.alpha);}function _Qp(_xr){_yr=_xr;}function _Rp(_xr){if(_zr!=_xr){
_zr=_xr;_09._Ar(_Br());}}function _Yp(){return _zr;}function _Cr(x,y,w,h,angle){var _Dr=new _qr();var _3c=new _Er(x+(w/2.0),y+(h/2.0),-w);var _J5=new _Er(x+(w/2.0),y+(h/2.0),0.0);var _4c=new _Er(Math.sin(-angle*(Math.PI/180.0)),Math.cos(-angle*(Math.PI/180.0)),0.0);_Dr._Fr(_3c,_J5,_4c);var _Gr=new _qr();_Gr._Hr(w,-h*_Ir,1.0,32000.0);_09._Jr(_Dr);_09._Kr(_Gr);}function _Sp(_6a,__b,_0c,_Lr,_55){var _Mr=new _Er(__b,_0c,_Lr);_Mr._Nr();var _Or=_6a*4;_Pr[_Or+0]=_Mr._Qr;_Pr[_Or+1]=_Mr._Rr;_Pr[_Or+2]=_Mr._Sr;_Pr[_Or+3]=0.0;
_Tr[_Or+0]=(_55&0xff)/255.0;_Tr[_Or+1]=((_55>>8)&0xff)/255.0;_Tr[_Or+2]=((_55>>16)&0xff)/255.0;_Tr[_Or+3]=1.0;_Ur[_6a]=_Vr;_Wr[_Or+0]=0;_Wr[_Or+1]=0;_Wr[_Or+2]=0;_Wr[_Or+3]=0;_09._Xr(_6a,_Wr.subarray(_6a*4,(_6a+1)*4),_Pr.subarray(_6a*4,(_6a+1)*4),_Tr.subarray(_6a*4,(_6a+1)*4));}function _Xp(){var _55=(((_Yr[0]*255.0))&0xff)|(((_Yr[1]*255.0)<<8)&0xff00)|(((_Yr[2]*255.0)<<16)&0xff0000)|(((_Yr[3]*255.0)<<24)&0xff000000);return _55;}function _Wp(index){var _95=[];if(index<0||index>7){console.log("draw_light_get() - light index out of range");
return;}var _Or=index*4;_95[0]=_Zr[index];_95[1]=_Ur[index];if(_Ur[index]==_Vr){_95[2]=_Pr[_Or+0];_95[3]=_Pr[_Or+1];_95[4]=_Pr[_Or+2];_95[5]=_Pr[_Or+3];}else {_95[2]=_Wr[_Or+0];_95[3]=_Wr[_Or+1];_95[4]=_Wr[_Or+2];_95[5]=_Wr[_Or+3];}var _Y4=(((_Tr[_Or+0]*255.0))&0xff);var _Z4=(((_Tr[_Or+1]*255.0)<<8)&0xff00);var __4=(((_Tr[_Or+2]*255.0)<<16)&0xff0000);var _05=(((_Tr[_Or+3]*255.0)<<24)&0xff000000);var _55=_Y4|_Z4|__4|_05;_95[6]=_55;return _95;}function _Tp(_6a,x,y,z,__r,_55){var _Or=_6a*4;_Wr[_Or+0]=x;_Wr[_Or+1]=y;
_Wr[_Or+2]=z;_Wr[_Or+3]=__r;_Tr[_Or+0]=(_55&0xff)/255.0;_Tr[_Or+1]=((_55>>8)&0xff)/255.0;_Tr[_Or+2]=((_55>>16)&0xff)/255.0;_Tr[_Or+3]=1.0;_Ur[_6a]=_0s;_Pr[_Or+0]=0;_Pr[_Or+1]=0;_Pr[_Or+2]=0;_Pr[_Or+3]=0;_09._Xr(_6a,_Wr.subarray(_6a*4,(_6a+1)*4),_Pr.subarray(_6a*4,(_6a+1)*4),_Tr.subarray(_6a*4,(_6a+1)*4));}function _Up(_6a,enable){_Zr[_6a]=enable;_09._1s(_6a,enable,_Tr.subarray(_6a*4,(_6a+1)*4));}function _Vp(colour){_Yr[0]=(colour&0xff)/255.0;_Yr[1]=((colour>>8)&0xff)/255.0;_Yr[2]=((colour>>16)&0xff)/255.0;
_Yr[3]=((colour>>24)&0xff)/255.0;_09._2s(_Yr);}function _Zp(enable,colour,start,end){if(_3s==null){_3s=new Float32Array(8);}_3s[0]=enable;var __r=end-start;_3s[1]=(__r==0.0)?0.0:(1.0/__r);_3s[2]=end;_3s[3]=0.0;_3s[4]=(colour&0xff)/255.0;_3s[5]=((colour>>8)&0xff)/255.0;_3s[6]=((colour>>16)&0xff)/255.0;_3s[7]=((colour>>24)&0xff)/255.0;_09._4s(_3s);}function __p(_wd){_wd=yyGetInt32(_wd);var _e7=[];if(_wd<0||_wd>2){_q5('ERROR: Invalid matrix type (matrix_get)');for(var i=0;i<16;i++){_e7[i]=0;}return _e7;}var _5s=_6s[_wd];
for(var i=0;i<16;i++){_e7[i]=_5s._e7[i];}return _e7;}function _0q(_wd,_7s){_wd=yyGetInt32(_wd);if(_wd<0||_wd>2){_q5('ERROR: Invalid matrix type (matrix_get)');return;}_8s(_wd,_7s);if(_wd==_9s){var _as=new _qr();var _bs=_cs(_ds);if(_Ir==-1){_as=_bs;}else {var _es=new _qr();_es._fs();_es._e7[_gs]=-1;_as.Multiply(_bs,_es);}_hs(new _qr(_7s),_as);}else if(_wd==_ds){_hs(_cs(_9s),new _qr(_7s));}}function _Fp(){return [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,];}function _Gp(_is,_js,_ks,_ls,_ms,_ns,_os,_ps,_qs){var _e7=new _qr();
var _rs=new _Er(yyGetReal(_is),yyGetReal(_js),yyGetReal(_ks));var _ss=new _Er(yyGetReal(_ls),yyGetReal(_ms),yyGetReal(_ns));var _ts=new _Er(yyGetReal(_os),yyGetReal(_ps),yyGetReal(_qs));_e7._Fr(_rs,_ss,_ts);var _5s=[];for(var i=0;i<16;i++){_5s[i]=_e7._e7[i];}return _5s;}function _Hp(width,height,_us,_vs){var _e7=new _qr();_e7._Hr(yyGetReal(width),yyGetReal(height),yyGetReal(_us),yyGetReal(_vs));var _5s=[];for(var i=0;i<16;i++){_5s[i]=_e7._e7[i];}return _5s;}function _Ip(width,height,_us,_vs){var _e7=new _qr();_e7._ws(yyGetReal(width),
yyGetReal(height),yyGetReal(_us),yyGetReal(_vs));var _5s=[];for(var i=0;i<16;i++){_5s[i]=_e7._e7[i];}return _5s;}function _Jp(_xs,_ys,_us,_vs){var _e7=new _qr();_e7._zs(yyGetReal(_xs),yyGetReal(_ys),yyGetReal(_us),yyGetReal(_vs));var _5s=[];for(var i=0;i<16;i++){_5s[i]=_e7._e7[i];}return _5s;}function _wp(_96,_a6,_As,_Bs,_Cs,_Ds,_Qm,_Rm,_Es){var _e7=new _qr();var _Fs=(Math.PI/180.0);_Bs=(_Fs*-yyGetReal(_Bs));_Cs=(_Fs*-yyGetReal(_Cs));_Ds=(_Fs*-yyGetReal(_Ds));_e7._Gs(yyGetReal(_96),yyGetReal(_a6),yyGetReal(_As),
_Bs,_Cs,_Ds,yyGetReal(_Qm),yyGetReal(_Rm),yyGetReal(_Es));var _5s=[];for(var i=0;i<16;i++){_5s[i]=_e7._e7[i];}return _5s;}function _xp(_Hs,_Is){var _Js=new _qr();var _Ks=new _qr();var _Ls=new _qr();for(var i=0;i<16;i++){_Js._e7[i]=yyGetReal(_Hs[i]);_Ks._e7[i]=yyGetReal(_Is[i]);}_Ls.Multiply(_Js,_Ks);var _5s=[];for(var i=0;i<16;i++){_5s[i]=_Ls._e7[i];}return _5s;}function _yp(_Ms,_96,_a6,_As){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_As=yyGetReal(_As);var _bc;if(arguments.length==4){var _w7=(_Ms[_Ns]*_96)+(_Ms[_Os]*_a6)+(_Ms[_Ps]*_As)+_Ms[_Qs];
var _y7=(_Ms[_Rs]*_96)+(_Ms[_gs]*_a6)+(_Ms[_Ss]*_As)+_Ms[_Ts];var _Us=(_Ms[_Vs]*_96)+(_Ms[_Ws]*_a6)+(_Ms[_Xs]*_As)+_Ms[_Ys];_bc=[_w7,_y7,_Us];}else {var _Xi=yyGetReal(arguments[4]);var _w7=(_Ms[_Ns]*_96)+(_Ms[_Os]*_a6)+(_Ms[_Ps]*_As)+(_Ms[_Qs]*_Xi);var _y7=(_Ms[_Rs]*_96)+(_Ms[_gs]*_a6)+(_Ms[_Ss]*_As)+(_Ms[_Ts]*_Xi);var _Us=(_Ms[_Vs]*_96)+(_Ms[_Ws]*_a6)+(_Ms[_Xs]*_As)+(_Ms[_Ys]*_Xi);var _N7=(_Ms[_Zs]*_96)+(_Ms[__s]*_a6)+(_Ms[_0t]*_As)+(_Ms[_1t]*_Xi);_bc=[_w7,_y7,_Us,_N7];}return _bc;}function _zp(_7s){if(_Lp>=_Kp){
return;}_Lp++;if(arguments.length==0){_Mp[_Lp]=new _qr(_Mp[_Lp-1]);}else {var _5s=new _qr();var i;for(i=0;i<16;i++){_5s._e7[i]=_7s[i];}_Mp[_Lp]=new _qr();_Mp[_Lp].Multiply(_5s,_Mp[_Lp-1]);}}function _Ap(){_Lp--;if(_Lp<0){_Cp();}}function _Cp(){_Lp=0;_Mp[0]=new _qr();}function _Bp(_7s){_Mp[_Lp]=new _qr(_7s);}function _Dp(){var elements=new Array(16);var i;for(i=0;i<16;i++){elements[i]=_Mp[_Lp]._e7[i];}return elements;}function _Ep(){if(_Lp==0)return true;else return false;}function _1q(_xr){_09._7b._nb(_Wa._2t,yyGetInt32(_xr)>=0.5);
}function _2q(_3t){_09._7b._nb(_Wa._4t,yyGetInt32(_3t));}function _3q(_5t){_09._7b._nb(_Wa._6t,yyGetInt32(_5t));}function _4q(_7t){_09._7b._nb(_Wa._8t,yyGetInt32(_7t));}function _5q(_7t){_09._7b._nb(_Wa._9t,yyGetInt32(_7t));}function _6q(_at){_09._7b._nb(_Wa._bt,yyGetInt32(_at));}function _7q(_at){_09._7b._nb(_Wa._ct,yyGetInt32(_at));}function _8q(_at){_09._7b._nb(_Wa._dt,yyGetInt32(_at));}function _aq(_xr){_09._7b._nb(_Wa._et,yyGetInt32(_xr)>=0.5);}function _bq(_xr){_09._7b._nb(_Wa._ft,yyGetInt32(_xr)>=0.5);
}function _cq(_el){_Fb=_el;}function _dq(_3t){_09._7b._nb(_Wa._gt,yyGetInt32(_3t));}function _eq(_xr){_09._7b._nb(_Wa._ht,yyGetInt32(_xr)>=0.5);}function _fq(_xr,_Xd,_it,_jt){if(Array.isArray(_xr)){var _kt=_xr;_xr=_kt[0];_Xd=_kt[1];_it=_kt[2];_jt=_kt[3];}_xr=yyGetBool(_xr);_Xd=yyGetInt32(_Xd)|0xff000000;_it=yyGetReal(_it);_jt=yyGetReal(_jt);_09._7b._nb(_Wa._lt,_xr);_09._7b._nb(_Wa._mt,_Xd);_09._7b._nb(_Wa._nt,_it);_09._7b._nb(_Wa._ot,_jt);_3s[0]=_xr;var __r=_jt-_it;_3s[1]=(__r==0.0)?0.0:(1.0/__r);_3s[2]=_jt;
_3s[3]=0.0;_3s[4]=(_Xd&0xff)/255.0;_3s[5]=((_Xd>>8)&0xff)/255.0;_3s[6]=((_Xd>>16)&0xff)/255.0;_3s[7]=1.0;_09._4s(_3s);}function _gq(_pt){_09._7b._nb(_Wa._qt,yyGetInt32(_pt));}function _9q(_rt){switch(yyGetInt32(_rt)){case 1:_09._7b._nb(_Wa._9b,_Wa._Xa);_09._7b._nb(_Wa._ab,_Wa.__a);_09._7b._nb(_Wa._st,_Wa._tt);_09._7b._nb(_Wa._bb,_Wa._Xa);_09._7b._nb(_Wa._cb,_Wa.__a);_09._7b._nb(_Wa._ut,_Wa._tt);_09._7b._nb(_Wa._db,false);break;case 2:_09._7b._nb(_Wa._9b,_Wa._Xa);_09._7b._nb(_Wa._ab,_Wa._1b);_09._7b._nb(_Wa._st,
_Wa._tt);_09._7b._nb(_Wa._bb,_Wa._Xa);_09._7b._nb(_Wa._cb,_Wa._1b);_09._7b._nb(_Wa._ut,_Wa._tt);_09._7b._nb(_Wa._db,false);break;case 3:_09._7b._nb(_Wa._9b,_Wa._Xa);_09._7b._nb(_Wa._ab,_Wa.__a);_09._7b._nb(_Wa._st,_Wa._vt);_09._7b._nb(_Wa._bb,_Wa._Xa);_09._7b._nb(_Wa._cb,_Wa.__a);_09._7b._nb(_Wa._ut,_Wa._vt);_09._7b._nb(_Wa._db,false);break;case 4:_09._7b._nb(_Wa._9b,_Wa.__a);_09._7b._nb(_Wa._ab,_Wa.__a);_09._7b._nb(_Wa._st,_Wa._wt);_09._7b._nb(_Wa._bb,_Wa.__a);_09._7b._nb(_Wa._cb,_Wa.__a);_09._7b._nb(_Wa._ut,
_Wa._wt);_09._7b._nb(_Wa._db,false);break;case 5:_09._7b._nb(_Wa._9b,_Wa._Xa);_09._7b._nb(_Wa._ab,_Wa.__a);_09._7b._nb(_Wa._st,_Wa._xt);_09._7b._nb(_Wa._bb,_Wa._Xa);_09._7b._nb(_Wa._cb,_Wa._yt);_09._7b._nb(_Wa._ut,_Wa._xt);_09._7b._nb(_Wa._db,false);break;default :_09._7b._nb(_Wa._9b,_Wa._Xa);_09._7b._nb(_Wa._ab,_Wa._Za);_09._7b._nb(_Wa._st,_Wa._tt);_09._7b._nb(_Wa._bb,_Wa._Xa);_09._7b._nb(_Wa._cb,_Wa._Za);_09._7b._nb(_Wa._ut,_Wa._tt);_09._7b._nb(_Wa._db,false);break;}}function _hq(_0j,_1k){var _zt,
_At;if(Array.isArray(_0j)){_zt=yyGetInt32(_0j[0]);_At=yyGetInt32(_0j[1]);}else {_zt=yyGetInt32(_0j);_At=yyGetInt32(_1k);}_09._7b._nb(_Wa._9b,_zt);_09._7b._nb(_Wa._ab,_At);_09._7b._nb(_Wa._bb,_zt);_09._7b._nb(_Wa._cb,_At);_09._7b._nb(_Wa._db,false);}function _iq(_0j,_1k,_Bt,_Ct){var _zt,_At,_Dt,_Et;if(Array.isArray(_0j)){_zt=yyGetInt32(_0j[0]);_At=yyGetInt32(_0j[1]);_Dt=yyGetInt32(_0j[2]);_Et=yyGetInt32(_0j[3]);}else {_zt=yyGetInt32(_0j);_At=yyGetInt32(_1k);_Dt=yyGetInt32(_Bt);_Et=yyGetInt32(_Ct);}_09._7b._nb(_Wa._9b,
_zt);_09._7b._nb(_Wa._ab,_At);_09._7b._nb(_Wa._bb,_Dt);_09._7b._nb(_Wa._cb,_Et);_09._7b._nb(_Wa._db,true);}function _jq(_Ft){var _Gt=yyGetInt32(_Ft);_09._7b._nb(_Wa._st,_Gt);_09._7b._nb(_Wa._ut,_Gt);_09._7b._nb(_Wa._db,false);}function _kq(_Ft,_Ht){var _Gt,_It;if(Array.isArray(_Ft)){_Gt=yyGetInt32(_Ft[0]);_It=yyGetInt32(_Ft[1]);}else {_Gt=yyGetInt32(_Ft);_It=yyGetInt32(_Ht);}_09._7b._nb(_Wa._st,_Gt);_09._7b._nb(_Wa._ut,_It);_09._7b._nb(_Wa._db,true);}function _lq(_Jt,_Kt,_Lt,_ga){var _Mt;var _Nt;var _Ot;
var _Pt;if(Array.isArray(_Jt)){var _kt=_Jt;_Mt=(yyGetInt32(_kt[0])>=0.5);_Nt=(yyGetInt32(_kt[1])>=0.5);_Ot=(yyGetInt32(_kt[2])>=0.5);_Pt=(yyGetInt32(_kt[3])>=0.5);}else {_Mt=(yyGetInt32(_Jt)>=0.5);_Nt=(yyGetInt32(_Kt)>=0.5);_Ot=(yyGetInt32(_Lt)>=0.5);_Pt=(yyGetInt32(_ga)>=0.5);}var _Qt={_sr:_Mt,_tr:_Nt,_ur:_Ot,alpha:_Pt};_09._7b._nb(_Wa._Rt,_Qt);}function _mq(_Jt,_Kt,_Lt,_ga){_lq(_Jt,_Kt,_Lt,_ga);}function _nq(_xr){_St=(yyGetInt32(_xr)>=0.5)?true:false;_09._7b._nb(_Wa._Tt,yyGetInt32(_xr)>=0.5);}function _oq(_Ol){
_Ut=yyGetInt32(_Ol)/255.0;_09._7b._nb(_Wa._Vt,yyGetInt32(_Ol));}function _pq(_Wt){var _Xt=_09._Yt;var i;if(yyGetBool(_Wt)){for(i=0;i<_Xt;i++){_09._7b._Zt(i,_Wa.__t,_Wa._0u);_09._7b._Zt(i,_Wa._1u,_Wa._0u);}}else {for(i=0;i<_Xt;i++){_09._7b._Zt(i,_Wa.__t,_Wa._2u);_09._7b._Zt(i,_Wa._1u,_Wa._2u);}}}function _qq(_3u,_Wt){var _4u,_5u;if(Array.isArray(_3u)){var _kt=_3u;_4u=yyGetInt32(_kt[0]);_5u=yyGetBool(_kt[1]);}else {_4u=yyGetInt32(_3u);_5u=yyGetBool(_Wt);}if(_5u){_09._7b._Zt(_4u,_Wa.__t,_Wa._0u);_09._7b._Zt(_4u,
_Wa._1u,_Wa._0u);}else {_09._7b._Zt(_4u,_Wa.__t,_Wa._2u);_09._7b._Zt(_4u,_Wa._1u,_Wa._2u);}}function _rq(_6u){var _Xt=_09._Yt;var i;if(yyGetBool(_6u)){for(i=0;i<_Xt;i++){_09._7b._Zt(i,_Wa._7u,_Wa._8u);_09._7b._Zt(i,_Wa._9u,_Wa._8u);}}else {for(i=0;i<_Xt;i++){_09._7b._Zt(i,_Wa._7u,_Wa._au);_09._7b._Zt(i,_Wa._9u,_Wa._au);}}}function _sq(_3u,_6u){var _4u,repeat;if(Array.isArray(_3u)){var _kt=_3u;_4u=yyGetInt32(_kt[0]);repeat=yyGetBool(_kt[1]);}else {_4u=yyGetInt32(_3u);repeat=yyGetBool(_6u);}if(repeat){_09._7b._Zt(_4u,
_Wa._7u,_Wa._8u);_09._7b._Zt(_4u,_Wa._9u,_Wa._8u);}else {_09._7b._Zt(_4u,_Wa._7u,_Wa._au);_09._7b._Zt(_4u,_Wa._9u,_Wa._au);}}function _tq(_bu){var filter=_bu;for(var i=0;i<_09._Yt;i++){_09._7b._Zt(i,_Wa._cu,filter);}}function _uq(_du,_bu){var _eu=_du;var filter=_bu;if((_eu<0)||(_eu>=_09._Yt)){return;}_09._7b._Zt(_eu,_Wa._cu,filter);}function _vq(_fu){var _gu=_fu;for(var i=0;i<_09._Yt;i++){_09._7b._Zt(i,_Wa._hu,_gu);}}function _wq(_du,_fu){var _eu=_du;var _gu=_fu;if((_eu<0)||(_eu>=_09._Yt)){return;}_09._7b._Zt(_eu,
_Wa._hu,_gu);}function _xq(_iu){var _ju=_iu;for(var i=0;i<_09._Yt;i++){_09._7b._Zt(i,_Wa._ku,_ju);}}function _yq(_du,_iu){var _eu=_du;var _ju=_iu;if((_eu<0)||(_eu>=_09._Yt)){return;}_09._7b._Zt(_eu,_Wa._ku,_ju);}function _zq(_lu){var _mu=_lu;for(var i=0;i<_09._Yt;i++){_09._7b._Zt(i,_Wa._nu,_mu);}}function _Aq(_du,_lu){var _eu=_du;var _mu=_lu;if((_eu<0)||(_eu>=_09._Yt)){return;}_09._7b._Zt(_eu,_Wa._nu,_mu);}function _Bq(_ou){var _pu=_ou;for(var i=0;i<_09._Yt;i++){_09._7b._Zt(i,_Wa._qu,_pu);}}function _Cq(_du,_ou){
var _eu=_du;var _pu=_ou;if((_eu<0)||(_eu>=_09._Yt)){return;}_09._7b._Zt(_eu,_Wa._qu,_pu);}function _Dq(_xr){var enable=_xr;for(var i=0;i<_09._Yt;i++){_09._7b._Zt(i,_Wa._ru,enable);}}function _Eq(_du,_xr){var _eu=_du;var enable=_xr;if((_eu<0)||(_eu>=_09._Yt)){return;}_09._7b._Zt(_eu,_Wa._ru,enable);}function _Fq(){return _09._7b._8b(_Wa._2t)?1.0:0.0;}function _Gq(){return _09._7b._8b(_Wa._4t);}function _Hq(){return _09._7b._8b(_Wa._6t);}function _Iq(){return _09._7b._8b(_Wa._8t);}function _Jq(){return _09._7b._8b(_Wa._9t);
}function _Kq(){return _09._7b._8b(_Wa._bt);}function _Lq(){return _09._7b._8b(_Wa._ct);}function _Mq(){return _09._7b._8b(_Wa._dt);}function _Nq(){return _09._7b._8b(_Wa._et)?1.0:0.0;}function _Oq(){return _09._7b._8b(_Wa._ft)?1.0:0.0;}function _Pq(){return _Fb;}function _Qq(){return _09._7b._8b(_Wa._gt);}function _Rq(){return _09._7b._8b(_Wa._ht)?1.0:0.0;}function _Sq(){var _kt=new Array();_kt.push(_09._7b._8b(_Wa._lt)?1.0:0.0);_kt.push(_09._7b._8b(_Wa._mt));_kt.push(_09._7b._8b(_Wa._nt));_kt.push(_09._7b._8b(_Wa._ot));
return _kt;}function _Tq(){return _09._7b._8b(_Wa._qt);}function _Uq(){var _zt=_09._7b._8b(_Wa._9b);var _At=_09._7b._8b(_Wa._ab);var _Dt=_09._7b._8b(_Wa._bb);var _Et=_09._7b._8b(_Wa._cb);if((_zt!=_Dt)||(_At!=_Et)){return -1;}else {switch(_zt){case _su:{switch(_At){case _tu:return 0;case _uu:return 1;case _vu:return 2;default :return -1;}}case _wu:{if(_At==_vu){return 3;}else {return -1;}}default :return -1;}}}function _Vq(){var _kt=new Array();_kt[0]=_09._7b._8b(_Wa._9b);_kt[1]=_09._7b._8b(_Wa._ab);return _kt;}function _Wq(){
var _kt=new Array();_kt[0]=_09._7b._8b(_Wa._9b);_kt[1]=_09._7b._8b(_Wa._ab);_kt[2]=_09._7b._8b(_Wa._bb);_kt[3]=_09._7b._8b(_Wa._cb);return _kt;}function _Xq(){return _09._7b._8b(_Wa._9b);}function _Yq(){return _09._7b._8b(_Wa._ab);}function _Zq(){return _09._7b._8b(_Wa._bb);}function __q(){return _09._7b._8b(_Wa._cb);}function _xu(){return _09._7b._8b(_Wa._st);}function _yu(){var _kt=new Array();_kt[0]=_09._7b._8b(_Wa._st);_kt[1]=_09._7b._8b(_Wa._ut);return _kt;}function _0r(){var _Je=_09._7b._8b(_Wa._Rt);var _95=new Array();
_95.push(_Je._sr?1.0:0.0);_95.push(_Je._tr?1.0:0.0);_95.push(_Je._ur?1.0:0.0);_95.push(_Je.alpha?1.0:0.0);return _95;}function _1r(){return _0r();}function _2r(){return _09._7b._8b(_Wa._Tt)?1.0:0.0;}function _3r(){return _09._7b._8b(_Wa._Vt);}function _4r(){return _09._7b._zu(0,_Wa.__t)==_Wa._0u?1.0:0.0;}function _5r(_3u){return _09._7b._zu(yyGetInt32(_3u),_Wa.__t)==_Wa._0u?1.0:0.0;}function _6r(){return _09._7b._zu(0,_Wa._7u)==_Wa._8u?1.0:0.0;}function _7r(_3u){return _09._7b._zu(yyGetInt32(_3u),_Wa._7u)==_Wa._8u?1.0:0.0;
}function _8r(){return _09._7b._zu(0,_Wa._cu);}function _9r(_du){var _eu=_du;if((_eu<0)||(_eu>=_09._Yt)){return;}return _09._7b._zu(_eu,_Wa._cu);}function _ar(){return _09._7b._zu(0,_Wa._hu);}function _br(_du){var _eu=_du;if((_eu<0)||(_eu>=_09._Yt)){return;}return _09._7b._zu(_eu,_Wa._hu);}function _cr(){return _09._7b._zu(0,_Wa._ku);}function _dr(_du){var _eu=_du;if((_eu<0)||(_eu>=_09._Yt)){return;}return _09._7b._zu(_eu,_Wa._ku);}function _er(){return _09._7b._zu(0,_Wa._nu);}function _fr(_du){var _eu=_du;if((_eu<0)||(_eu>=_09._Yt)){
return;}return _09._7b._zu(_eu,_Wa._nu);}function _gr(){return _09._7b._zu(0,_Wa._qu);}function _hr(_du){var _eu=_du;if((_eu<0)||(_eu>=_09._Yt)){return;}return _09._7b._zu(_eu,_Wa._qu);}function _ir(){return _09._7b._zu(0,_Wa._ru);}function _jr(_du){var _eu=_du;if((_eu<0)||(_eu>=_09._Yt)){return;}return _09._7b._zu(_eu,_Wa._ru);}function _kr(){_09._7b._Au();}function _lr(){_09._7b._Bu();}var _Cu=undefined;var _Du=undefined;function _Eu(){if(_Cu==undefined){_Cu=["blendenable",_Wa._et,"ztestenable",_Wa._ft,"zfunc",
_Wa._gt,"zwriteenable",_Wa._ht,"fogenable",_Wa._lt,"fogcolor",_Wa._mt,"fogstart",_Wa._nt,"fogend",_Wa._ot,"cullmode",_Wa._qt,"srcblend",_Wa._9b,"destblend",_Wa._ab,"srcblendalpha",_Wa._bb,"destblendalpha",_Wa._cb,"sepalphaenable",_Wa._db,"colorwriteenable",_Wa._Rt,"alphatestenable",_Wa._Tt,"alphatestref",_Wa._Vt,"alphatestfunc",_Wa._Fu,"stencilenable",_Wa._2t,"stencilfunc",_Wa._4t,"stencilref",_Wa._6t,"stencilreadmask",_Wa._8t,"stencilwritemask",_Wa._9t,"stencilfail",_Wa._bt,"stencilzfail",_Wa._ct,
"stencilpass",_Wa._dt,];}}function _Gu(){if(_Du==undefined){_Du=["magfilter",_Wa.__t,"minfilter",_Wa._1u,"mipfilter",_Wa._Hu,"addressu",_Wa._7u,"addressv",_Wa._9u,"minmip",_Wa._ku,"maxmip",_Wa._nu,"mipbias",_Wa._hu,"maxaniso",_Wa._qu,"mipenable",_Wa._ru];}}function _mr(){_Eu();_Gu();var map=ds_map_create();var _Iu=_Cu.length/2;var _Ju=_Du.length/2;var i;for(i=0;i<_Iu;i++){var _Je=_09._7b._8b(_Cu[i*2+1]);ds_map_add(map,_Cu[i*2],_Je);}var _Xt=_09._Yt;for(i=0;i<_Ju;i++){var _J6;for(_J6=0;_J6<_Xt;_J6++){var name=_Du[i*2].slice(0)+_J6;
var _Je=_09._7b._zu(_J6,_Du[i*2+1]);ds_map_add(map,name,_Je);}}return map;}function _nr(_T7){_T7=yyGetInt32(_T7);_Eu();_Gu();var i;var _Iu=_Cu.length/2;var _Ju=_Du.length/2;var _Ku=ds_map_find_first(_T7);while(_Ku!=undefined){var key=_Ku;var value=ds_map_find_value(_T7,key);var _Lu=false;for(i=0;i<_Iu;i++){if(key==_Cu[i*2]){_09._7b._nb(_Cu[i*2+1],value);_Lu=true;break;}}if(!_Lu){for(i=0;i<_Ju;i++){var _Mu=_Du[i*2].length;var _Nu=key.substr(0,_Mu);if(_Nu==_Du[i*2]){var _Ou=key.substr(_Mu-1,key.length-_Mu);var _dp=parseInt(_Ou,
10);_09._7b._Zt(_dp,_Du[i*2+1],value);break;}}}_Ku=ds_map_find_next(_T7,_Ku);}}function _or(){var _95={};_95.__yyIsGMLObject=true;variable_struct_set(_95,"x",_09._Pu._Qu.x);variable_struct_set(_95,"y",_09._Pu._Qu.y);variable_struct_set(_95,"w",_09._Pu._Qu.w);variable_struct_set(_95,"h",_09._Pu._Qu.h);return _95;}function _pr(_96,_a6,_Xi,_Yi){if(typeof _96=="object"){_09._Ru(_96.x,_96.y,_96.w,_96.h);}else {_09._Ru(_96,_a6,_Xi,_Yi);}}function _Su(){}var _Tu=1970;var _Uu=0;var _Vu=1;var _Wu=365.25;var _Xu=30.4375;
var _Yu=[31,28,31,30,31,30,31,31,30,31,30,31];var _Zu=[];var __u=(86400.0);var _0v=(__u*30);var _1v=true;var _2v=0;var _3v=1;function _4v(_5v){if(_5v<_6v){return _5v*_7v;}else {return(_5v-_6v)*_7v;}}function _8v(_9v){return _9v%400==0||(_9v%100!=0&&_9v%4==0);}function _av(_9v){var _bv=_Yu.slice();;if(_8v(_9v)){_bv[1]=29;}return _bv;}function _cv(_9v,_dv,_ev,_fv,_gv,_hv,_iv){_9v=yyGetInt32(_9v);_dv=yyGetInt32(_dv);_ev=yyGetInt32(_ev);_fv=yyGetInt32(_fv);_gv=yyGetInt32(_gv);_hv=yyGetInt32(_hv);_iv=yyGetInt32(_iv);
if((_9v>=1970)&&(_dv>=1)&&(_dv<=12)&&(_ev>=1)&&(_ev<=31)&&(_fv>=0)&&(_fv<=23)&&(_gv>=0)&&(_gv<=59)&&(_hv>=0)&&(_hv<=59)&&(_iv>=0)&&(_iv<=999)){if(_ev>28){switch(_dv){case 2:if(!_8v(_9v)||(_ev>29)){return 0;}break;case 4:case 6:case 9:case 11:if(_ev>30){return 0;}break;}}}else {return 0;}return 1;}var _7v=86400000.0;var _6v=25569;function date_current_datetime(){var _jv=new Date();var _kv=_jv.getMilliseconds();var _s7=_jv.getTime()-_kv;return(_s7/_7v)+_6v;}function _lv(){var _Xo=new Date();return(~~(_Xo.getTime()/_7v))+_6v;
}function _mv(){var _Xo=new Date();_Xo.setFullYear(_Tu,_Uu,_Vu);var _nv=(_Xo.getTime()/_7v)+_6v;return(_nv-(~~_nv));}function date_create_datetime(_ov,_pv,_qv,_rv,_sv,_tv){_ov=yyGetInt32(_ov);_pv=yyGetInt32(_pv);_qv=yyGetInt32(_qv);_rv=yyGetInt32(_rv);_sv=yyGetInt32(_sv);_tv=yyGetInt32(_tv);var _Xo=new Date();if(_1v){_Xo.setFullYear(_ov,_pv-1,_qv);_Xo.setHours(_rv,_sv,_tv,10);}else {_Xo.setUTCFullYear(_ov,_pv-1,_qv);_Xo.setUTCHours(_rv,_sv,_tv,10);}return(_Xo.getTime()/_7v)+_6v;}function date_get_year(_T6){
var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));return(_1v)?_Xo.getFullYear():_Xo.getUTCFullYear();}function date_get_month(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));return(_1v)?(_Xo.getMonth())+1:(_Xo.getUTCMonth())+1;}function date_get_day(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));return(_1v)?_Xo.getDate():_Xo.getUTCDate();}function date_get_weekday(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));return(_1v)?_Xo.getDay():_Xo.getUTCDay();}function date_get_week(_T6){
var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));var w=_uv(_Xo);return floor(w/7);}function date_get_hour(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));return(_1v)?_Xo.getHours():_Xo.getUTCHours();}function date_get_minute(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));return(_1v)?_Xo.getMinutes():_Xo.getUTCMinutes();}function date_get_second(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));return(_1v)?_Xo.getSeconds():_Xo.getUTCSeconds();}function _uv(_vv){var _ev=0;if(_1v){var _wv=_av(_vv.getFullYear());
for(var i=0;i<_vv.getMonth();i++){_ev+=_wv[i];}_ev+=_vv.getDate();}else {var _wv=_av(_vv.getUTCFullYear());for(var i=0;i<_vv.getUTCMonth();i++){_ev+=_wv[i];}_ev+=_vv.getUTCDate();}return _ev;}function date_valid_datetime(_ov,_pv,_qv,_rv,_sv,_tv){return _cv(yyGetInt32(_ov),yyGetInt32(_pv),yyGetInt32(_qv),yyGetInt32(_rv),yyGetInt32(_sv),yyGetInt32(_tv),0);}function date_inc_year(_xv,_yv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));_Xo.setUTCFullYear(_Xo.getUTCFullYear()+yyGetInt32(_yv),_Xo.getUTCMonth(),
_Xo.getUTCDate());return(_Xo.getTime()/_7v)+_6v;}function date_inc_month(_xv,_yv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));_Xo.setUTCFullYear(_Xo.getUTCFullYear(),_Xo.getUTCMonth()+yyGetInt32(_yv),_Xo.getUTCDate());return(_Xo.getTime()/_7v)+_6v;}function date_inc_week(_xv,_yv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));_Xo.setUTCFullYear(_Xo.getUTCFullYear(),_Xo.getUTCMonth(),_Xo.getUTCDate()+(yyGetInt32(_yv)*7));return(_Xo.getTime()/_7v)+_6v;}function date_inc_day(_xv,_yv){var _Xo=new Date();
_Xo.setTime(_4v(yyGetReal(_xv)));_Xo.setUTCFullYear(_Xo.getUTCFullYear(),_Xo.getUTCMonth(),_Xo.getUTCDate()+yyGetInt32(_yv));return(_Xo.getTime()/_7v)+_6v;}function date_inc_hour(_xv,_yv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));_Xo.setUTCHours(_Xo.getUTCHours()+yyGetInt32(_yv),_Xo.getUTCMinutes(),_Xo.getUTCSeconds(),_Xo.getUTCMilliseconds());return(_Xo.getTime()/_7v)+_6v;}function date_inc_minute(_xv,_yv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));_Xo.setUTCHours(_Xo.getUTCHours(),
_Xo.getUTCMinutes()+yyGetInt32(_yv),_Xo.getUTCSeconds(),_Xo.getUTCMilliseconds());return(_Xo.getTime()/_7v)+_6v;}function date_inc_second(_xv,_yv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));_Xo.setUTCHours(_Xo.getUTCHours(),_Xo.getUTCMinutes(),_Xo.getUTCSeconds()+yyGetInt32(_yv),_Xo.getUTCMilliseconds());return(_Xo.getTime()/_7v)+_6v;}function date_get_day_of_year(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));var _zv=_uv(_Xo);return _zv;}function date_get_hour_of_year(_T6){var _Xo=new Date();
_Xo.setTime(_4v(yyGetReal(_T6)));var _zv=_uv(_Xo);var _Av=(_zv-1)*24;if(_1v)_Av+=_Xo.getHours();else _Av+=_Xo.getUTCHours();return _Av;}function date_get_minute_of_year(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));var _zv=_uv(_Xo);var _Bv=(_zv-1)*24*60;if(_1v){_Bv+=_Xo.getHours()*60;_Bv+=_Xo.getMinutes();}else {_Bv+=_Xo.getUTCHours()*60;_Bv+=_Xo.getUTCMinutes();}return _Bv;}function date_get_second_of_year(_T6){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_T6)));var _zv=_uv(_Xo);var _Cv=(_zv-1)*24*60*60;
if(_1v){_Cv+=_Xo.getHours()*60*60;_Cv+=_Xo.getMinutes()*60;_Cv+=_Xo.getSeconds();}else {_Cv+=_Xo.getUTCHours()*60*60;_Cv+=_Xo.getUTCMinutes()*60;_Cv+=_Xo.getUTCSeconds();}return _Cv;}function date_year_span(_Dv,_Ev){var _Xo=new Date();var _Fv=_Xo.setTime(_4v(yyGetReal(_Dv)));var _Gv=_Xo.setTime(_4v(yyGetReal(_Ev)));var _Hv=(_Gv-_Fv);return Math.abs(Math.floor(_Hv/1000)/60/60/24/_Wu);}function date_month_span(_Dv,_Ev){var _Xo=new Date();var _Fv=_Xo.setTime(_4v(yyGetReal(_Dv)));var _Gv=_Xo.setTime(_4v(yyGetReal(_Ev)));
var _Hv=(_Gv-_Fv);return Math.abs(Math.floor(_Hv/1000)/60/60/24/_Xu);}function date_week_span(_Dv,_Ev){var _Xo=new Date();var _Fv=_Xo.setTime(_4v(yyGetReal(_Dv)));var _Gv=_Xo.setTime(_4v(yyGetReal(_Ev)));var _Hv=(_Gv-_Fv);return Math.abs(Math.floor(_Hv/1000)/60/60/24/7);}function date_day_span(_Dv,_Ev){var _Xo=new Date();var _Fv=_Xo.setTime(_4v(yyGetReal(_Dv)));var _Gv=_Xo.setTime(_4v(yyGetReal(_Ev)));var _Hv=(_Gv-_Fv);return Math.abs(Math.floor(_Hv/1000)/60/60/24);}function date_hour_span(_Dv,_Ev){var _Xo=new Date();
var _Fv=_Xo.setTime(_4v(yyGetReal(_Dv)));var _Gv=_Xo.setTime(_4v(yyGetReal(_Ev)));var _Hv=(_Gv-_Fv);return Math.abs(Math.floor(_Hv/1000)/60/60);}function date_minute_span(_Dv,_Ev){var _Xo=new Date();var _Fv=_Xo.setTime(_4v(yyGetReal(_Dv)));var _Gv=_Xo.setTime(_4v(yyGetReal(_Ev)));var _Hv=(_Gv-_Fv);return Math.abs(Math.floor(_Hv/1000)/60);}function date_second_span(_Dv,_Ev){var _Xo=new Date();var _Fv=_Xo.setTime(_4v(yyGetReal(_Dv)));var _Gv=_Xo.setTime(_4v(yyGetReal(_Ev)));var _Hv=(_Gv-_Fv);return ~~Math.abs(Math.floor(_Hv/1000));
}function _Iv(_xv){var _Xo=new Date();_Xo.setTime(_4v(_xv));return(_Xo.getHours()-_Xo.getUTCHours())*60*60*1000;}function date_compare_datetime(_Dv,_Ev){_Dv=yyGetReal(_Dv);_Ev=yyGetReal(_Ev);if(_Dv<_Ev){return -1;}else if(_Dv>_Ev){return 1;}return 0;}function date_compare_date(_Dv,_Ev){var _Jv=new Date();_Jv.setTime(_4v(yyGetReal(_Dv)));var _Kv=new Date();_Kv.setTime(_4v(yyGetReal(_Ev)));var _Fv=(_Jv.getFullYear()*366)+(_Jv.getMonth()*31)+_Jv.getDate();var _Gv=(_Kv.getFullYear()*366)+(_Kv.getMonth()*31)+_Kv.getDate();
return(_Fv==_Gv)?0.0:((_Fv>_Gv)?1.0:-1.0);}function date_compare_time(_Dv,_Ev){var _Jv=new Date();_Jv.setTime(_4v(yyGetReal(_Dv)));var _Kv=new Date();_Kv.setTime(_4v(yyGetReal(_Ev)));var _Lv=(_Jv.getHours()*3600)+(_Jv.getMinutes()*60)+_Jv.getSeconds();var _Mv=(_Kv.getHours()*3600)+(_Kv.getMinutes()*60)+_Kv.getSeconds();return(_Lv==_Mv)?0.0:((_Lv>_Mv)?1.0:-1.0);}function _Nv(_Ov){return(_Ov-_6v)*__u;}function _Pv(_Ov){return((_Ov+0.5)/__u)+_6v;}function _Qv(_s7){let _Rv=new Date(_s7._9v+1900,_s7._dv,_s7._ev,
_s7._fv,_s7._gv,_s7._hv);if(_1v)return _Rv.getTime()/1000;return _Rv.getTime()/1000-_Rv.getTimezoneOffset()*60;}function _Sv(time){let _Rv=new Date(time*1000);let tm={_9v:_Rv.getUTCFullYear()-1900,_dv:_Rv.getUTCMonth(),_ev:_Rv.getUTCDate(),_fv:_Rv.getUTCHours(),_gv:_Rv.getUTCMinutes(),_hv:_Rv.getUTCSeconds()};if(_1v){tm._9v=_Rv.getFullYear()-1900;tm._dv=_Rv.getMonth();tm._ev=_Rv.getDate();tm._fv=_Rv.getHours();tm._gv=_Rv.getMinutes();tm._hv=_Rv.getSeconds();}return tm;}function date_date_of(_xv){let result=-1;
let _Tv=_Nv(_xv);let _Uv=_Sv(_Tv);if(_Uv){_Uv._fv=0;_Uv._gv=0;_Uv._hv=0;result=_Pv(_Qv(_Uv));}return result;}function date_time_of(_xv){return frac(yyGetReal(_xv));}function _Vv(_oe){return((_oe<10)?"0":"")+_oe.toString();}function date_datetime_string(_xv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));var _xl;if(_1v){_xl=_Vv(_Xo.getDate())+"/"+_Vv(_Xo.getMonth()+1)+"/"+_Xo.getFullYear()+" "+_Vv(_Xo.getHours())+":"+_Vv(_Xo.getMinutes())+":"+_Vv(_Xo.getSeconds());}else {_xl=_Vv(_Xo.getUTCDate())+"/"+_Vv(_Xo.getUTCMonth()+1)+"/"+_Xo.getUTCFullYear()+" "+_Vv(_Xo.getUTCHours())+":"+_Vv(_Xo.getUTCMinutes())+":"+_Vv(_Xo.getUTCSeconds());
}return _xl;}function date_date_string(_xv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));var _xl;if(_1v){_xl=_Vv(_Xo.getDate())+"/"+_Vv(_Xo.getMonth()+1)+"/"+_Xo.getFullYear();}else {_xl=_Vv(_Xo.getUTCDate())+"/"+_Vv(_Xo.getUTCMonth()+1)+"/"+_Xo.getUTCFullYear();}return _xl;}function date_time_string(_xv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));if(_Xo.toString()=="Invalid Date"){return "invalid time";}var _xl;if(_1v){_xl=_Vv(_Xo.getHours())+":"+_Vv(_Xo.getMinutes())+":"+_Vv(_Xo.getSeconds());
}else {_xl=_Vv(_Xo.getUTCHours())+":"+_Vv(_Xo.getUTCMinutes())+":"+_Vv(_Xo.getUTCSeconds());}return _xl;}function date_days_in_month(_xv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));if(_1v){var _wv=_av(_Xo.getFullYear());return _wv[_Xo.getMonth()];}var _wv=_av(_Xo.getUTCFullYear());return _wv[_Xo.getUTCMonth()];}function date_days_in_year(_xv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));var _zv=0;var _wv;if(_1v)_wv=_av(_Xo.getFullYear());else _wv=_av(_Xo.getUTCFullYear());for(var i=0;i<_wv.length;
i++){_zv+=_wv[i];}return _zv;}function date_leap_year(_xv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));if(_1v)return _8v(_Xo.getFullYear());return _8v(_Xo.getUTCFullYear());}function date_is_today(_xv){var _Xo=new Date();_Xo.setTime(_4v(yyGetReal(_xv)));var _Wv=new Date();if(_1v){if((_Xo.getFullYear()==_Wv.getFullYear())&&(_Xo.getMonth()==_Wv.getMonth())&&(_Xo.getDate()==_Wv.getDate())){return true;}}else {if((_Xo.getUTCFullYear()==_Wv.getUTCFullYear())&&(_Xo.getUTCMonth()==_Wv.getUTCMonth())&&(_Xo.getUTCDate()==_Wv.getUTCDate())){
return true;}}return false;}function date_set_timezone(_Xv){_1v=(yyGetInt32(_Xv)==_2v);}function date_get_timezone(){if(_1v)return _2v;return _3v;}var _Yv=[];var _Zv=[];var __v=[];var _0w=Date.now();var _1w=0;var _2w=1;var _3w=2;var _4w=3;var _5w=function(text){if(!text)return;if(_6w){if(_7w){var _Ad=_7w.document.getElementById('debug_console');if(_Ad){var _8w=String.fromCharCode(0x0a);text=text.replace('<b>','').replace('</b>','');var _9w=Date.now()-_0w;if(!_Ad){alert(text);}else {_Ad.value+=text+_8w;var _Ai=_Ad.textLength;
}_0w=Date.now();}}}if(_aw!=undefined){if(_aw.Options.outputDebugToConsole)console.log(text);if(_aw.Options.outputDebugToDiv){var _bw=document.getElementById("yyDebugDiv");var _cw=document.createElement('P');_cw.textContent+=text;_bw.appendChild(_cw);}}};function debug(text){var index;for(index=0;index<arguments.length;++index){_5w(arguments[index]);}}function _dw(_ew,_fw,_gw,_hw,_iw){this.gmlmessage=_ew;this.gmllongMessage=_fw;this.gmlstacktrace=_iw;this.gmlscript=_gw;this.gmlline=_hw;this.__yyIsGMLObject=true;
}_dw.prototype.toString=function(){return yyGetString(this);};function __yy__processException(_jw){if(_jw instanceof Error){var message=(_jw.message)?_jw.message:"";var _kw=(_jw.message)?_jw.constructor.name+" - "+_jw.message:"";var _lw=(_jw.fileName)?_jw.fileName:"";var _mw=(_jw.lineNumber)?_jw.lineNumber:-1;var _nw=[];if(_jw.stack){_nw=_jw.stack.split(/_ow?_pw/);}_jw=new _dw(message,_kw,_lw,_mw,_nw);;}return _jw;}function _q5(text){var index;var _qw=_rw();var _sw=new _dw(text,text,_tw(_q5.caller.name),-1,_qw);
throw _sw;}function _ai(_uw){if(!__v[_uw]){__v[_uw]=true;_nw(_uw);debug(_uw);}}function _Jc(_uw,_vw){if(!_Yv[_uw]){_Yv[_uw]=true;var _ww="Error: function "+_uw+" is not supported.";debug(_ww);}return _vw;}function _xw(name,_yw){return()=>_Jc(name,_yw);}function _zw(_uw){if(!_Yv[_uw]){_Yv[_uw]=true;var _ww="Error: "+_uw+" is not supported.";debug(_ww);}}function _Aw(_uw){if(!_Yv[_uw]){_Yv[_uw]=true;var _ww="Error: function "+_uw+" is not yet implemented";debug(_ww);}}function _Bw(_uw){if(!_Zv[_uw]){_Zv[_uw]=true;
var _ww="Warning: function "+_uw;debug(_ww);}}function _Cw(_Dw){var _Ew=_Fw._Gw(_Dw,-1);var _8w=String.fromCharCode(0x0a);var __h="";for(var i=0;i<_Ew.length;i++){if(i!=0)__h=__h+_8w;__h+=_Ew[i];}return __h;}function _Hw(_Iw){if(!_Iw)return;alert(_Iw);}function _Jw(_Iw,_Kw){if(!_Iw)return;alert(_Iw);}function debug_event(_Y3){switch(_Y3){case "RangeError":{throw new _Lw("debug_event");}break;default :break;}}function dbg_view(){_Jc("dbg_view()");}function dbg_section(){_Jc("dbg_seciton()");}function dbg_view_delete(){
_Jc("dbg_view_delete()");}function dbg_section_delete(){_Jc("dbg_section_delete()");}function dbg_slider(){_Jc("dbg_slider()");}function dbg_drop_down(){_Jc("dbg_drop_down()");}function dbg_watch(){_Jc("dbg_watch()");}function dbg_same_line(){_Jc("dbg_same_line()");}function dbg_button(){_Jc("dbg_button()");}function dbg_text_input(){_Jc("dbg_text_input()");}function dbg_checkbox(){_Jc("dbg_checkbox()");}function dbg_colour(){_Jc("dbg_colour()");}function dbg_color(){_Jc("dbg_color()");}function dbg_text(){
_Jc("dbg_text()");}function dbg_sprite(){_Jc("dbg_sprite()");}function dbg_slider_int(){_Jc("dbg_slider_int()");}function dbg_add_font_glyphs(){_Jc("dbg_add_font_glyphs()");}function ref_create(){_Jc("ref_create()");return 0;}function is_debug_overlay_open(){return false;}function is_mouse_over_debug_overlay(){return false;}function is_keyboard_used_debug_overlay(){return false;}function show_debug_log(){_Jc("show_debug_log()");;}function show_debug_message(_Dw){var _Fh=yyGetString(_Dw);if(!_Fh)return;if(arguments.length==1){
debug(_Fh);return;}if(typeof(_Fh)!="string"){_q5("show_debug_message() trying to use string template but argument0 is not a string");}var _Mw=[];for(var _c7=1;_c7<arguments.length;++_c7){_Mw.push(arguments[_c7]);}debug(_Nw(_Fh,_Mw));}function show_debug_message_ext(_Dw,_Mw){var _Fh=yyGetString(_Dw);if(!_Fh)return;if(typeof(_Fh)!="string"){_q5("show_debug_message_ext() argument0 is not a string");}if(!(_Mw instanceof Array)){_q5("show_debug_message_ext() argument1 is not an array");}debug(_Nw(_Fh,_Mw));
}function show_debug_overlay(_Ow){}function debug_get_callstack(_Pw){var _Qw=[];if(_Pw==undefined)_Pw=100;var caller=arguments.callee.caller;while(caller!=null){_Qw.push(caller);if(_Qw.length>=_Pw)break;caller=caller.caller;if(_Qw.indexOf(caller)>=0)break;}var _Rw=[];for(var i=0;i<_Qw.length;i++){_Rw[i]=_Qw[i].name;}_Rw.push(0);return _Rw;}function show_message_async(_Dw){_Sw(_Tw,_4w,[yyGetString(_Dw)]);return _Tw++;}function show_message(_Dw){var _Fh=yyGetString(_Dw);if(!_Fh)return;alert(_Fh);}function show_error(_Uw,
_Vw){_Uw=yyGetString(_Uw);if(!_Uw)return;alert(_Uw);}function show_question_async(_Uw){_Sw(_Tw,_3w,[yyGetString(_Uw)]);return _Tw++;}function show_question(_Uw){if(window.confirm){return confirm(yyGetString(_Uw)||"")?1.0:0.0;}_Jc("show_question()");return 0;}function get_integer_async(_Uw,_Ww){_Sw(_Tw,_2w,[yyGetString(_Uw),yyGetString(_Ww)]);return _Tw++;}function get_integer(_Uw,_Ww){return parseFloat(prompt(yyGetString(_Uw),yyGetString(_Ww)));}function _Xw(_Yw){var _f6=document.getElementById(_Zw);var __w=_f6.parentNode;
var _0x=document.createElement("div");_1x="gm4html5_login_ID";_0x.setAttribute("class","gm4html5_login");_0x.setAttribute("id",_1x);__w.insertBefore(_0x,_f6.nextSibling);_0x.innerHTML="<div class=\"gm4html5_login_header\">Login</div>"+"<table>"+"<tr>"+"<td><label for=\"username\" id=\"gm4html5_login_label_username_id\">Username:</label></td>"+"<td><input type=\"text\" id=\"gm4html5_login_username_id\" value=\"username\" /></td>"+"</tr>"+"<tr>"+"<td><label for=\"password\" id=\"gm4html5_login_label_password_id\">Password:</label></td>"+"<td><input type=\"password\" id=\"gm4html5_login_password_id\" value=\"password\" /></td>"+"</tr>"+"</table>"+"<div class=\"gm4html5_login_button\"><input type=\"button\" value=\"Login\" id=\"gm4html5_login_button_id\"/></div>"+"<div class=\"gm4html5_cancel_button\"><input type=\"button\" value=\"Cancel\" id=\"gm4html5_cancel_button_id\" /></div>";
_2x();_3x=true;var login=document.getElementById("gm4html5_login_button_id");var _4x=document.getElementById("gm4html5_login_username_id");var _5x=document.getElementById("gm4html5_login_password_id");_4x.value=_Yw._6x[0];_5x.value=_Yw._6x[1];login.onmouseup=function(){var _7x=_4x.value;var _8x=_5x.value;var _9x=_ax(_1x);if(!_9x)return;_9x._7x=_7x;_9x._8x=_8x;_9x.value=0;_9x.result="";_9x._Zf=true;_9x._Yf=_bx;__w.removeChild(_0x);_3x=false;_cx();_dx(_Yw.id);};var _ex=document.getElementById("gm4html5_cancel_button_id");
_ex.onmouseup=function(){__w.removeChild(_0x);_3x=false;var _9x=_ax(_1x);if(!_9x)return;_9x._7x="";_9x._8x="";_9x.value=0;_9x.result="";_9x._Zf=true;_9x._Yf=_fx;_cx();_dx(_Yw.id);};_gx();_Uf._Vf(_Yw.id,null,_hx,_1x);}function _ix(_Yw){var _f6=document.getElementById(_Zw);var __w=_f6.parentNode;var _0x=document.createElement("div");_1x="gm4html5_input_ID";_0x.setAttribute("class","gm4html5_login");_0x.setAttribute("id",_1x);__w.insertBefore(_0x,_f6.nextSibling);_0x.innerHTML="<table>"+"<tr>"+"<td><label for=\"username\" id=\"gm4html5_input_message_id\">Message</label></td>"+"</tr>"+"<tr>"+"<td><input type=\"text\" id=\"gm4html5_input_text_id\" value=\"text\" /></td>"+"</tr>"+"</table>"+"<div class=\"gm4html5_login_button\"><input type=\"button\" value=\"OK\" id=\"gm4html5_input_ok_button_id\"/></div>"+"<div class=\"gm4html5_cancel_button\"><input type=\"button\" value=\"Cancel\" id=\"gm4html5_input_cancel_button_id\" /></div>";
_2x();_3x=true;var _jx=document.getElementById("gm4html5_input_message_id");var _kx=document.getElementById("gm4html5_input_text_id");_jx.innerHTML=_Yw._6x[0];_kx.value=_Yw._6x[1];var _lx=document.getElementById("gm4html5_input_ok_button_id");_lx.onmouseup=function(){var text=_kx.value;var _9x=_ax(_1x);if(!_9x)return;_9x._7x="";_9x._8x="";_9x.value=parseFloat(text);_9x.result=text;_9x._Zf=true;_9x._Yf=_bx;__w.removeChild(_0x);_3x=false;_cx();_dx(_Yw.id);};var _ex=document.getElementById("gm4html5_input_cancel_button_id");
_ex.onmouseup=function(){__w.removeChild(_0x);_3x=false;var _9x=_ax(_1x);if(!_9x)return;_9x._7x="";_9x._8x="";_9x.value=0;_9x.result="";_9x._Zf=true;_9x._Yf=_fx;_cx();_dx(_Yw.id);};_gx();_Uf._Vf(_Yw.id,null,_hx,_1x);}function _mx(_Yw){var _f6=document.getElementById(_Zw);var __w=_f6.parentNode;var _0x=document.createElement("div");_1x="gm4html5_question_ID";_0x.setAttribute("class","gm4html5_login");_0x.setAttribute("id",_1x);__w.insertBefore(_0x,_f6.nextSibling);_0x.innerHTML="<table>"+"<tr>"+"<td><label for=\"username\" id=\"gm4html5_question_message_id\">Message</label></td>"+"</tr>"+"</table>"+"<div class=\"gm4html5_login_button\"><input type=\"button\" value=\"Yes\" id=\"gm4html5_question_yes_button_id\"/></div>"+"<div class=\"gm4html5_cancel_button\"><input type=\"button\" value=\"No\" id=\"gm4html5_question_no_button_id\" /></div>";
_2x();_3x=true;var _nx=document.getElementById("gm4html5_question_message_id");_nx.innerHTML=_Yw._6x[0];var _lx=document.getElementById("gm4html5_question_yes_button_id");_lx.onmouseup=function(){var _9x=_ax(_1x);if(!_9x)return;_9x._7x="";_9x._8x="";_9x.value=1;_9x.result="1";_9x._Zf=true;_9x._Yf=_bx;__w.removeChild(_0x);_3x=false;_cx();_dx(_Yw.id);};var _ex=document.getElementById("gm4html5_question_no_button_id");_ex.onmouseup=function(){__w.removeChild(_0x);_3x=false;var _9x=_ax(_1x);if(!_9x)return;
_9x._7x="";_9x._8x="";_9x.value=0;_9x.result="0";_9x._Zf=true;_9x._Yf=_fx;_cx();_dx(_Yw.id);};_gx();_Uf._Vf(_Yw.id,null,_hx,_1x);}function _ox(_Yw){var _f6=document.getElementById(_Zw);var __w=_f6.parentNode;var _0x=document.createElement("div");_1x="gm4html5_message_ID";_0x.setAttribute("class","gm4html5_login");_0x.setAttribute("id",_1x);__w.insertBefore(_0x,_f6.nextSibling);_0x.innerHTML="<table>"+"<tr>"+"<td><label for=\"username\" id=\"gm4html5_message_message_id\">Message</label></td>"+"</tr>"+"</table>"+"<div class=\"gm4html5_login_button\"><input type=\"button\" value=\"OK\" id=\"gm4html5_message_ok_button_id\"/></div>";
_2x();_3x=true;var _nx=document.getElementById("gm4html5_message_message_id");_nx.innerHTML=_Yw._6x[0];var _lx=document.getElementById("gm4html5_message_ok_button_id");_lx.onmouseup=function(){var _9x=_ax(_1x);if(!_9x)return;_9x._7x="";_9x._8x="";_9x.value=1;_9x.result="1";_9x._Zf=true;_9x._Yf=1;__w.removeChild(_0x);_3x=false;_cx();_dx(_Yw.id);};_gx();_Uf._Vf(_Yw.id,null,_hx,_1x);}/*@constructor */function _px(_yg,_wd,_qx){this.id=_yg;this.type=_wd;this._6x=_qx;}function _rx(){if(_sx.length>0){switch(_sx[0].type){
case _1w:_Xw(_sx[0]);break;case _2w:_ix(_sx[0]);break;case _3w:_mx(_sx[0]);break;case _4w:_ox(_sx[0]);break;}}}function _tx(_qx){for(var i=0;i<_qx.length;++i){var _xl=_qx[i];if(typeof(_xl)=='string'){var _ux="";for(var _c7=0;_c7<_xl.length;_c7++){var chr=_xl[_c7];switch(chr){case '&':_ux=_ux+'&amp;';break;case '<':_ux=_ux+'&lt;';break;case '>':_ux=_ux+'&gt;';break;default :_ux=_ux+chr;break;}}_xl=_ux;var _vx=String.fromCharCode(13)+String.fromCharCode(10);_xl=_xl.split('#').join('<br>');_xl=_xl.split(_vx).join('<br>');
_qx[i]=_xl;}}}function _Sw(_yg,_wd,_qx){_tx(_qx);var _Xo=new _px(_yg,_wd,_qx);_sx.push(_Xo);if(_sx.length==1){_rx();}}function _dx(_yg){var index=-1;for(var i=0;i<_sx.length;++i){if(_sx[i].id==_yg){index=i;break;}}if(index>=0){_sx.splice(index,1);}_rx();}function get_login_async(_wx,_xx){_Sw(_Tw,_1w,[_wx,_xx]);return _Tw++;}function get_string_async(_Uw,_Ww){_Sw(_Tw,_2w,[yyGetString(_Uw),yyGetString(_Ww)]);return _Tw++;}function get_string(_Uw,_Ww){return prompt(yyGetString(_Uw),yyGetString(_Ww));}function _gx(){
if(_3x){var login=document.getElementById(_1x);var w=login.offsetWidth;var h=login.offsetHeight;var _w7=(canvas.width-w)/2;var _y7=(canvas.height-h)/2;_qg=new _yx();_pg(canvas,_qg);login.style.left=~~(_w7+_qg.left)+"px";login.style.top=~~(_y7+_qg.top)+"px";}}function _tw(_ak){return _ak.substr(0,_ak.indexOf("("));}function _nw(_zx){var _nv=arguments.callee.caller;var _xl="Error: "+_zx+"\n"+"--------------------------------------------------------------------\n";while(_nv){var name="\t"+_tw(_nv.toString());_xl+=name+'(';
for(var i=0;i<_nv.arguments.length;i++){if(i!==0){_xl+=', ';}if(typeof _nv.arguments[i]==="string"){_xl+='"'+_nv.arguments[i].toString()+'"';}else if((typeof _nv.arguments[i]==="number")||(_nv.arguments[i] instanceof Long)){_xl+=_nv.arguments[i].toString();}else if(_nv.arguments[i]===undefined){_xl+="[undefined]";}else if(_nv.arguments[i]===null){_xl+="[null]";}else if(_nv.arguments[i].__type){_xl+=_nv.arguments[i].__type;}else {_xl+="[unknown]";}}_xl+=")\n";_nv=_nv.caller;}debug(_xl);}function _rw(_zx){var _nv=arguments.callee.caller;
var _95=[];while(_nv&&(_95.length<100)){var name=_tw(_nv.toString());_xl=name+'(';for(var i=0;i<_nv.arguments.length;i++){if(i!==0){_xl+=', ';}if(typeof _nv.arguments[i]==="string"){_xl+='"'+_nv.arguments[i].toString()+'"';}else if((typeof _nv.arguments[i]==="number")||(_nv.arguments[i] instanceof Long)){_xl+=_nv.arguments[i].toString();}else if(_nv.arguments[i]===undefined){_xl+="[undefined]";}else if(_nv.arguments[i]===null){_xl+="[null]";}else if(_nv.arguments[i].__type){_xl+=_nv.arguments[i].__type;}else {
_xl+="[unknown]";}}_xl+=")\n";_95.push(_xl);_nv=_nv.caller;}return _95;}function _Ax(){if(!_7w)return;var _Bx=_7w.document.getElementById('debug_instances');if(!_Bx)return;var _Cx=[];var options=_Bx.options;for(var index in options){if(!options.hasOwnProperty(index))continue;if(index!="selectedIndex"&&index!="length"){var _Dx=options[index];if(_Dx&&_Dx.text){_Cx[_Cx.length]=_Dx.text;}}}var _Ex=[];for(var index in _Fx._Gx){if(!_Fx._Gx.hasOwnProperty(index))continue;var _Hx=_Fx._Gx[index];if(_Hx!==undefined&&_Hx!==null){
var __h=_Hx.id.toString();var i;for(i=0;i<_Cx.length;i++){if(_Cx[i]==__h)break;}if(i>=_Cx.length){_Ex[_Ex.length]=__h;}else {_Cx.splice(i,1);}}}for(var index in _Cx){if(!_Cx.hasOwnProperty(index))continue;for(var _Dx in options){if(!options.hasOwnProperty(_Dx))continue;if(options[_Dx].text=index){_Bx.removeChild(options[_Dx]);break;}}}for(var index=0;index<_Ex.length;index++){var _Hx=_Ex[index];var option=_7w.document.createElement("option");option.text=""+_Hx;_Bx.add(option,null);}}var _Ix=3;var _Jx=-1;function _Kx(){
if(!_7w)return;var _Bx=_7w.document.getElementById('debug_instances');var _Lx=_7w.document.getElementById('debug_Instance_Data');if(!_Bx||!_Lx)return;var _Mx=_Bx.selectedIndex;if(_Mx<0){return;}if(_Mx==undefined)return;_Mx=parseInt(_Bx.options[_Mx].text);var _9o=_Fx._Gx[_Mx];if(!_9o)return;var __h=[];__h[__h.length]='<table ALIGN="left" VALIGN="top" style="border-spacing:0px; border-collapse:collapse; border:0px; margin:0px;">';__h[__h.length]='<tr bgcolor="#f0f0f0" "><td style="width:130px;"><b>Object</b></td><td style="width:270px;"><b>'+_9o._Nx._Ox+'</b></td></tr>';
__h[__h.length]='<tr><td>x</td><td>'+_9o.x.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>y</td><td>'+_9o.y.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>depth</td><td>'+_9o.depth.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>visible</td><td>'+_9o.visible+'</td></tr>';__h[__h.length]='<tr><td>persistent</td><td>'+_9o.persistent+'</td></tr>';__h[__h.length]='<tr><td>vspeed</td><td>'+_9o.vspeed.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>direction</td><td>'+_9o.direction.toFixed(_Ix)+'</td></tr>';
__h[__h.length]='<tr><td>speed</td><td>'+_9o.speed.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>friction</td><td>'+_9o.friction.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>gravity</td><td>'+_9o.gravity.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>gravity_direction</td><td>'+_9o.gravity_direction.toFixed(_Ix)+'</td></tr>';var _Px=_m6._n6(_9o.sprite_index);if(!_Px){__h[__h.length]='<tr><td>sprite_index</td><td><none></td></tr>';}else {var _Qx=_9o.image_index;if(_Qx<0||_Qx>_Px._l5.length)_Qx=0;
var _k5=_Px._l5[~~_Qx];__h[__h.length]='<tr><td>sprite_index</td><td height="'+(_k5.oh+32)+'px">'+_Px.pName+'<br>'+'<div style="padding:0px; margin:0px; border:0px; overflow: hidden; '+'width:'+_k5.CropWidth+'px; height:'+_k5.CropHeight+'px; '+'background: url('+_k5.texture.src+') '+-_k5.x+'px '+-_k5.y+'px;" />'+'</td></tr>';}__h[__h.length]='<tr><td>image_index</td><td>'+_9o.image_index.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>image_speed </td><td>'+_9o.image_speed.toFixed(_Ix)+'</td></tr>';
__h[__h.length]='<tr><td>image_blend</td><td>'+~~_9o.image_blend+'</td></tr>';__h[__h.length]='<tr><td>image_alpha</td><td>'+_9o.image_alpha.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>image_xscale</td><td>'+_9o.image_xscale.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>image_yscale</td><td>'+_9o.image_yscale.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>mask_index</td><td>'+_9o.mask_index.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>path_index</td><td>'+_9o.path_index.toFixed(_Ix)+'</td></tr>';
__h[__h.length]='<tr><td>path_position</td><td>'+_9o.path_position.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>path_speed</td><td>'+_9o.path_speed.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>path_scale</td><td>'+_9o.path_scale.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>path_orientation</td><td>'+_9o.path_orientation.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>path_endaction</td><td>'+_9o.path_endaction.toFixed(_Ix)+'</td></tr>';__h[__h.length]='<tr><td>path_xstart</td><td>'+_9o._Rx.toFixed(_Ix)+'</td></tr>';
__h[__h.length]='<tr><td>path_ystart</td><td>'+_9o._Sx.toFixed(_Ix)+'</td></tr>';for(var _Tx=0;_Tx<12;_Tx++){__h[__h.length]='<tr><td>alarm['+_Tx+']</td><td>'+~~_9o.alarm[_Tx]+'</td></tr>';}__h[__h.length]='</table>';_Lx.innerHTML=__h.join("");}function UpdateDebugWindow(){_Ax();_Kx();}/*@constructor */function _Ux(){this._Vx="";this._Wx=0;this._Xx=false;this._Yx=false;this._Zx="";}_Ux.prototype.__x=function(){var _xl;var i=this._Wx;var __h=this._Vx;while(i<__h.length){var c=__h.charCodeAt(i);if(c==0x0d||c==0x0a){
i++;}else {break;}}this._Wx=i;};_Ux.prototype._0y=function(){var _xl;var i=this._Wx;var __h=this._Vx;while(i<__h.length){var c=__h.charCodeAt(i);if(c==0x0d||c==0x0a){i++;c=__h.charCodeAt(i);if(c==0x0d||c==0x0a){i++;}break;}else {i++;}}this._Wx=i;};_Ux.prototype._1y=function(){var _xl;var i=this._Wx;var __h=this._Vx;while(i<__h.length){var c=__h.charCodeAt(i);if(c==0x0d||c==0x0a||c==0x09||c==0x20){i++;}else {break;}}this._Wx=i;};function file_text_open_from_string(_2y){var _Tf=new _Ux();_Tf._Vx=yyGetString(_2y);
_Tf._Wx=0;_Tf._Zx=null;return _3y._Vf(_Tf);}function file_text_open_read(_4y){_4y=yyGetString(_4y);var _5y=_9l(_4y,true);if(_5y==null)_5y=_9l(_4y,false);if(_5y==null)return -1;var _Tf=new _Ux();_Tf._Vx=_5y;_Tf._Wx=0;_Tf._Zx=_4y;return _3y._Vf(_Tf);}function file_text_close(_6y){_6y=yyGetInt32(_6y);var _Tf=_3y._n6(_6y);if(!_Tf){_q5("Error: Illegal file handle");return;}if(_Tf._Zx!=null){if(_Tf._Yx){_5l(_Tf._Zx,_Tf._Vx);}}_3y._3j(_6y);}function file_text_open_write(_4y){var _Tf=new _Ux();_Tf._Zx=yyGetString(_4y);
_Tf._Vx="";_Tf._Wx=0;_Tf._7y=true;_Tf._Yx=true;return _3y._Vf(_Tf);}function file_text_open_append(_4y){_4y=yyGetString(_4y);var _nv=file_text_open_read(_4y);if(_nv<0){return file_text_open_write(_4y);}var _Tf=_3y._n6(_nv);_Tf._7y=true;_Tf._Wx=_Tf._Vx.length;_Tf._Yx=false;return _nv;}function file_text_write_string(_6y,_Uw){var _Tf=_3y._n6(yyGetInt32(_6y));if(!_Tf){_q5("Error: Illegal file handle");return;}if(!_Tf._7y){_q5("Error: File "+_Tf._Zx+" has not been opened with WRITE permisions");return;}_Tf._Vx+=yyGetString(_Uw);
_Tf._Yx=true;_Tf._Wx=_Tf._Vx.length;}function file_text_write_real(_6y,_96){var _Tf=_3y._n6(yyGetInt32(_6y));if(!_Tf){_q5("Error: Illegal file handle");return;}if(!_Tf._7y){_q5("Error: File "+_Tf._Zx+" has not been opened with WRITE permisions");return;}_Tf._Vx+=yyGetReal(_96);_Tf._Yx=true;_Tf._Wx=_Tf._Vx.length;}function file_text_writeln(_6y){var _Tf=_3y._n6(yyGetInt32(_6y));if(!_Tf){_q5("Error: Illegal file handle");return;}if(!_Tf._7y){_q5("Error: File "+_Tf._Zx+" has not been opened with WRITE permisions");
return;}_Tf._Vx+=String.fromCharCode(0x0d);_Tf._Vx+=String.fromCharCode(0x0a);_Tf._Wx=_Tf._Vx.length;}function file_text_read_string(_6y){var _Tf=_3y._n6(yyGetInt32(_6y));if(!_Tf){_q5("Error: Illegal file handle");return;}var _xl="";var i=_Tf._Wx;var __h=_Tf._Vx;while(i<__h.length){var c=__h.charCodeAt(i);if(c==0x0d||c==0x0a){break;}else {_xl+=__h[i++];}}_Tf._Wx=i;return _xl;}function file_text_read_real(_6y){var _Tf=_3y._n6(yyGetInt32(_6y));if(!_Tf){_q5("Error: Illegal file handle");return;}_Tf._1y();var _xl="";
var i=_Tf._Wx;var __h=_Tf._Vx;while(i<__h.length){var c=__h[i];if((c=='-')&&(_xl=="")){_xl+=__h[i++];}else if((c>='0'&&c<='9')||(c=='.')){_xl+=__h[i++];}else {break;}}_Tf._Wx=i;return parseFloat(_xl);}function file_text_readln(_6y){var _Tf=_3y._n6(yyGetInt32(_6y));if(!_Tf){_q5("Error: Illegal file handle");return;}var _xl="";var i=_Tf._Wx;var __h=_Tf._Vx;while(i<__h.length){var c=__h.charCodeAt(i);if(c==0x0d||c==0x0a){_xl+=__h[i++];if(i<__h.length){c=__h.charCodeAt(i);if(c==0x0d||c==0x0a){_xl+=__h[i++];}}break;
}else {_xl+=__h[i++];}}_Tf._Wx=i;return _xl;}function file_text_eof(_6y){var _Tf=_3y._n6(yyGetInt32(_6y));if(!_Tf){_q5("Error: Illegal file handle");return;}if(_Tf._Wx>=_Tf._Vx.length)return true;return false;}function file_text_eoln(_6y){var _Tf=_3y._n6(yyGetInt32(_6y));if(!_Tf){_q5("Error: Illegal file handle");return;}if(_Tf._Wx>=_Tf._Vx.length)return true;var c=_Tf._Vx.charCodeAt(_Tf._Wx);if(c==0x0a||c==0x0d)return true;return false;}function file_exists(_4y){_4y=yyGetString(_4y);var _Ul=_8y(_4y,true);if(_Ul==true)return true;
return _8y(_4y,false);}function file_delete(_4y){if(_9y){try{window.localStorage['removeItem'](_ay(yyGetString(_4y)));return true;}catch(_Oj){return false;}}return false;}function file_rename(_by,_cy){_by=yyGetString(_by);file_copy(_by,yyGetString(_cy));file_delete(_by);}function file_copy(_4y,_cy){_4y=yyGetString(_4y);_cy=yyGetString(_cy);if(true===file_exists(_cy))file_delete(_cy);if(false===file_exists(_4y))return false;var _dy=file_text_open_read(_4y);var _ey=file_text_open_write(_cy);while(false===file_text_eof(_dy)){
var _mw=file_text_readln(_dy);file_text_write_string(_ey,_mw);}file_text_close(_dy);file_text_close(_ey);}function directory_exists(_fy){_Jc("directory_exists()");return true;}function directory_create(_fy){_Jc("directory_create()");return true;}function directory_destroy(_fy){_Jc("directory_destroy()");return true;}function file_find_first(_7t,_gy){_Jc("file_find_first()");return "";}function file_find_next(){_Jc("file_find_next()");return "";}function file_find_close(){_Jc("file_find_close()");}function file_attributes(_4y,
_gy){_Jc("file_attributes()");return true;}function filename_name(_4y){_4y=yyGetString(_4y);var _05=_4y.lastIndexOf('\\');var __4=_4y.lastIndexOf('/');var last=(_05>__4)?_05:__4;var _95=_4y;if(last>0){_95=_4y.substr(last+1);}return _95;}function filename_path(_4y){_4y=yyGetString(_4y);var _05=_4y.lastIndexOf('\\');var __4=_4y.lastIndexOf('/');var last=(_05>__4)?_05:__4;var _95=_4y;if(last>0){_95=_4y.substr(0,last+1);}return _95;}function filename_dir(_4y){_4y=yyGetString(_4y);var _05=_4y.lastIndexOf('\\');var __4=_4y.lastIndexOf('/');
var last=(_05>__4)?_05:__4;var _95=_4y;if(last>0){_95=_4y.substr(0,last);}return _95;}function filename_drive(_4y){_Aw("filename_drive()");}function filename_change_ext(_4y,_hy){_4y=yyGetString(_4y);var last=_4y.lastIndexOf('.');var _95=_4y;if(last>0){_95=_4y.substr(0,last);_95=_95+yyGetString(_hy);}return _95;}function file_bin_open(_4y,_iy){_Jc("file_bin_open()");}function file_bin_rewrite(_6y){_Jc("file_bin_rewrite()");}function file_bin_close(_6y){_Jc("file_bin_close()");}function file_bin_size(_6y){_Jc("file_bin_size()");
}function file_bin_position(_6y){_Jc("file_bin_position()");}function file_bin_seek(_6y,_tk){_Jc("file_bin_seek()");}function file_bin_write_byte(_6y,_jy){_Jc("file_bin_write_byte()");}function file_bin_read_byte(_6y){_Jc("file_bin_read_byte()");}function environment_get_variable(_w4){return "";}function filename_ext(_1l){_1l=yyGetString(_1l);var _ky=_1l.lastIndexOf(".");var _ly=_1l.lastIndexOf("\\");if(_ly>_ky)return "";return _1l.substr(_ky,_1l.length);}const _my=new RegExp("@i64@([0-9a-f]+?)\\$i64\\$","i");
function _ny(_oy){var _95=undefined;if((typeof _oy=="string")&&_oy.startsWith("@ref ")){var _py=_oy.indexOf("(",5);var _qy=_oy.substring(5,_py);var _ry=_oy.indexOf(")",_py);var _sy=_oy.substring(_py+1,_ry);var _ty=Number(_sy);var type=_uy(_qy);_95=_Wn(type,_ty);}return _95;}function _vy(value){switch(typeof(value)){case "object":if(value==null)return g_pBuiltIn.pointer_null;if(value instanceof Array)return new _ok(_rk,_wy(value));return new _ok(_pk,_xy(value));case "boolean":return value?1:0;case "number":return value;
case "string":if(value=="@@infinity$$")return Infinity;if(value=="@@-infinity$$")return -Infinity;if(value=="@@nan$$")return NaN;var match=value.match(_my);if(match){return parseInt(match[1],16);}if(value.startsWith("@ref ")){return _ny(value);}return value;default :return value.toString();}}function _wy(_ck){var _95=ds_list_create();for(var i=0;i<_ck.length;++i){var _H5=_vy(_ck[i]);ds_list_add(_95,_H5);}return _95;}function _xy(_ck){var _95=ds_map_create();for(var _Dx in _ck){var _05=_ck[_Dx];var _H5=_vy(_05);ds_map_add(_95,
_Dx,_H5);}return _95;}function json_decode(_yy){var _xl=yyGetString(_yy);var _zy=false;try{for(var _Ay=0;_Ay<_xl.length;_Ay++){if(_xl.charAt(_Ay)=="\""){if(!_zy){_zy=true;}else if(_Ay==0||_xl.charAt(_Ay-1)!="\\"){_zy=false;}}if(!_zy&&_xl.charAt(_Ay)=="#"){_xl=_xl.substring(0,_Ay)+_xl.substring(_Ay+1,_xl.length);_Ay--;}}}catch(Error){}var _By={};try{_By=JSON.parse(_xl);if(_By instanceof Array){_xl="{ \"default\" : "+_xl+"}";_By=JSON.parse(_xl);}}catch(err){_xl="{ \"default\" : \""+_xl.toString()+"\"}";try{
_By=JSON.parse(_xl);}catch(err){}}return _xy(_By);}var _Cy=new Map();function _Dy(value){if(value==undefined)return null;switch(typeof(value)){case "object":if(value===null)return null;if(value instanceof Long){return "@i64@"+value.toString(16)+"$i64$";}if(value instanceof _Zn){return "@ref "+_Ey(value.type)+"("+value.value+")";}if(value==g_pBuiltIn.pointer_null)return null;if(value instanceof Array){return _Fy(value);}switch(value._Bk){case _rk:return _Gy(value.Object);case _pk:return _Hy(value.Object);default :return value.toString();
}case "number":if(isNaN(value))return "@@nan$$";if(!isFinite(value))return value>0?"@@infinity$$":"@@-infinity$$";return value;case "string":case "boolean":return value;default :return value.toString();}}function _Gy(_C8){var _95=[];var _hk=_gk._n6(_C8);let _c9=_Cy.get(_hk)|0;if(_c9>1)return null;_Cy.set(_hk,_c9+1);if(_hk){for(var i=0;i<_hk._yk.length;++i){if(_hk._yk[i]!=undefined)_95.push(_Dy(_hk._yk[i]));}}return _95;}function _Hy(_T7){var _95={};var _V7=_W7._n6(_T7);let _c9=_Cy.get(_V7)|0;if(_c9>1)return null;_Cy.set(_V7,
_c9+1);if(_V7){for(const [key,_Je] of _V7){var _H5=key;if(_V7._Sk&&_V7._Sk.has(key))_H5=_V7._Sk.get(key);_95[_H5.toString()]=_Dy(_Je);}}return _95;}function _Fy(_Wk){let _c9=_Cy.get(_Wk)|0;if(_c9>1)return null;_Cy.set(_Wk,_c9+1);var _95="[";for(var i=0;i<_Wk.length;++i){if(i>0)_95+=", ";_95+=_Dy(_Wk[i]);}_95+="]";return _95;}function json_encode(_T7,_Iy){_Iy=_Iy==undefined?false:yyGetReal(_Iy);_Cy=new Map();var _Ik=_Hy(yyGetInt32(_T7));return JSON.stringify(_Ik,null,_Iy?2:0);}var _Jy=undefined;function _Ky(key,value){
if((_Jy!=undefined)&&is_callable(_Jy)){var _ak=_bk(_Jy,1);_ck="boundObject" in _ak?_ak._dk:{};value=_ak(_ck,_ck,key,value);}if(value==undefined)return null;switch(typeof value){case "string":return value;case "number":if(isNaN(value))return "@@nan$$";if(!isFinite(value))return value>0?"@@infinity$$":"@@-infinity$$";return value;case "boolean":return value;case "object":if(value==null)return null;if(value instanceof Long){return "@i64@"+value.toString(16)+"$i64$";}if(value instanceof _Zn){return "@ref "+_Ey(value.type)+"("+value.value+")";
}if(value==g_pBuiltIn.pointer_null)return null;if(value instanceof Array){if(_Cy.has(value))return null;_Cy.set(value,1);var _95=[];value.forEach((_Yk,index)=>{_95.push(_Ky(index.toString(),_Yk));});_Cy.delete(value);return _95;}if(value.__yyIsGMLObject){if(_Cy.has(value))return null;_Cy.set(value,1);var _95={};for(var _Ly in value){if(!value.hasOwnProperty(_Ly))continue;var nName=_Ly;if(typeof _My!="undefined"&&_My.hasOwnProperty(_Ly)){nName="gml"+_My[_Ly];}if(nName.startsWith("gml")||g_instance_names[nName]!=undefined){
var name=nName.startsWith("gml")?nName.substring(3):nName;var _Vk=g_instance_names[nName];if((_Vk==undefined)||(_Vk[0]|_Vk[1])){Object.defineProperty(_95,name,{value:_Ky(name,value[_Ly]),_Ny:true,_Oy:true,enumerable:true});}}}_Cy.delete(value);return _95;}default :return undefined;}}function json_stringify(_8d,_Iy,filter){try{_Iy=_Iy==undefined?false:yyGetReal(_Iy);var _Py=_Jy;_Jy=filter;var _Qy=_Ky("",_8d);_Jy=_Py;return JSON.stringify(_Qy,null,_Iy?2:0);}catch(e){console.log(e);_q5("JSON stringify error");
}}var _Ry=undefined;var _Sy=0;function _Ty(_Uy,value){var _95=undefined;switch(typeof value){case "string":if(value=="@@nan$$")_95=NaN;else if(value=="@@infinity$$")_95=Infinity;else if(value=="@@-infinity$$")_95=-Infinity;else {_95=value;var match=value.match(_my);if(match){_95=parseInt(match[1],16);}else if(value.startsWith("@ref ")){_95=_ny(value);}}break;case "number":_95=value;break;case "boolean":_95=value;break;case "object":if(value==null){_95=g_pBuiltIn.pointer_null;++_Sy;}else if(value instanceof Array){
_95=value;}else {var _Ik={};_Ik.__type="___struct___";_Ik.__yyIsGMLObject=true;for(var _Ly in value){if(!value.hasOwnProperty(_Ly))continue;var nName;if(g_instance_names[_Ly]!=undefined){nName=_Ly;}else if(typeof g_var2obf!=="undefined"&&g_var2obf[_Ly]!=undefined){nName=g_var2obf[_Ly];}else {nName="gml"+_Ly;}Object.defineProperty(_Ik,nName,{value:value[_Ly],configurable:true,writable:true,enumerable:true});}_95=_Ik;}break;default :_95=value;break;}if((_Ry!=undefined)&&is_callable(_Ry)){var _ak=_bk(_Ry,1);_ck="boundObject" in _ak?_ak._dk:{
};if(_95==g_pBuiltIn.pointer_null){_95=undefined;--_Sy;}_95=_ak(_ck,_ck,_Uy,_95);if(_95===undefined){_95=g_pBuiltIn.pointer_null;++_Sy;}}return _95;}function _Vy(_8d){var _95=_8d;switch(typeof _8d){case "array":for(var i in _8d){_8d[i]=_Vy(_8d[i]);if(_8d[i]==g_pBuiltIn.pointer_null){_8d[i]=undefined;}}break;case "object":if(_8d==g_pBuiltIn.pointer_null)_95=undefined;else for(var key in _8d){if(_8d.hasOwnProperty(key)){_8d[key]=_Vy(_8d[key]);if(_8d[key]==g_pBuiltIn.pointer_null){_8d[key]=undefined;}}}break;}return _95;
}function json_parse(_8d,_ak){var _95=undefined;var _Wy=_Ry;var _Xy=_Sy;_Ry=_ak;_Sy=0;try{var _95=JSON.parse(_8d,_Ty);if(_Sy>0){_95=_Vy(_95);}return _95;}catch(e){_q5("JSON parse error");}_Sy=_Xy;_Ry=_Wy;return _95;}function _Yy(_Zy){var _c7=_Zy.length,i=0;var __y=[];var _0z=[];var start=0;var _Yk="";var _1z=0;while(i<_c7){var _2z=i;var c=_Zy.charCodeAt(i++);switch(c){case 13:case 10:if(c==13&&_Zy.charCodeAt(i)==10)i+=1;if(_2z>_1z){if(_2z>start)_Yk+=_Zy.substring(start,_2z);_0z.push(_Yk);_Yk="";}__y.push(_0z);_0z=[];
_1z=i;start=i;break;case 44:if(_2z>start)_Yk+=_Zy.substring(start,_2z);_0z.push(_Yk);_Yk="";if(_Zy.charCodeAt(i)==34){i+=1;start=i;while(i<_c7){c=_Zy.charCodeAt(i++);if(c!=34)continue;switch(_Zy.charCodeAt(i)){case 34:if(i>start)_Yk+=_Zy.substring(start,i);i+=1;start=i;continue;case 13:case 10:case 44:break;default :continue;}break;}}else start=i;break;}}if(i>_1z){if(i>start)_Yk+=_Zy.substring(start,i);_0z.push(_Yk);__y.push(_0z);}return __y;}function load_csv(_4y){_4y=yyGetString(_4y);var _5y=_9l(_4y,true);
if(_5y==null)_5y=_9l(_4y,false);if(_5y==null)return -1;var _3z=_Yy(_5y);var height=_3z.length;if(height==0)return -1;var width=_3z[0].length;if(width==0)return -1;var _yg=ds_grid_create(width,height);var _1j=_2j._n6(_yg)._Zi;for(var y=0;y<height;y++){var _4z=_3z[y];for(var x=0;x<_4z.length;x++){_1j[x+y*width]=_4z[x];}}return _yg;}function draw_set_halign(_5z){_Fw._6z=yyGetInt32(_5z);}function draw_get_halign(){return _Fw._6z;}function draw_set_valign(_5z){_Fw._7z=yyGetInt32(_5z);}function draw_get_valign(){return _Fw._7z;
}function draw_set_font(_8z){_Fw._9z=yyGetInt32(_8z);}function draw_get_font(){return _Fw._9z;}function draw_text(_96,_a6,_uw){var c=(_4d&0xffffff)|(((_3d*255.0)<<24)&0xff000000);_Fw._az(yyGetString(_uw),yyGetReal(_96),yyGetReal(_a6),-1,-1,0,1,1,c,c,c,c);}function draw_text_color(_96,_a6,_uw,_Ym,_Zm,__m,_0n,_ga){if(!_09)_Bw("draw_text_color() only uses the 1st colour");var _bz=_3d;var _cz=_dz;if(_ga>1.0)_ga=1.0;else if(_ga<0)_ga=0.0;var _05=((yyGetReal(_ga)*255)<<24)&0xff000000;_Ym=_6d(yyGetInt32(_Ym)&0xffffff)|_05;
_Zm=_6d(yyGetInt32(_Zm)&0xffffff)|_05;__m=_6d(yyGetInt32(__m)&0xffffff)|_05;_0n=_6d(yyGetInt32(_0n)&0xffffff)|_05;_Fw._az(yyGetString(_uw),yyGetReal(_96),yyGetReal(_a6),-1,-1,0,1,1,_Ym,_Zm,__m,_0n);_3d=_bz;draw_set_color(_cz);}var draw_text_colour=draw_text_color;function draw_text_ext_color(_96,_a6,_uw,_ez,_Xi,_Ym,_Zm,__m,_0n,_ga){if(!_09)_Bw("draw_text_ext_color() only uses the 1st colour");var _bz=_3d;var _cz=_dz;if(_ga>1.0)_ga=1.0;else if(_ga<0)_ga=0.0;var _05=(yyGetReal(_ga)*255)<<24;_Ym=_6d(yyGetInt32(_Ym)&0xffffff)|_05;
_Zm=_6d(yyGetInt32(_Zm)&0xffffff)|_05;__m=_6d(yyGetInt32(__m)&0xffffff)|_05;_0n=_6d(yyGetInt32(_0n)&0xffffff)|_05;_Fw._az(yyGetString(_uw),yyGetReal(_96),yyGetReal(_a6),yyGetInt32(_ez),yyGetInt32(_Xi),0,1,1,_Ym,_Zm,__m,_0n);_3d=_bz;draw_set_color(_cz);}var draw_text_ext_colour=draw_text_ext_color;function draw_text_ext(_96,_a6,_uw,_ez,_Xi){var c=(_4d&0xffffff)|(((_3d*255.0)<<24)&0xff000000);_Fw._az(yyGetString(_uw),yyGetReal(_96),yyGetReal(_a6),yyGetInt32(_ez),yyGetInt32(_Xi),0,1,1,c,c,c,c);}function draw_text_transformed(_96,
_a6,_uw,_Qm,_Rm,_d6){var c=(_4d&0xffffff)|(((_3d*255.0)<<24)&0xff000000);_Fw._az(yyGetString(_uw),yyGetReal(_96),yyGetReal(_a6),-1,-1,yyGetReal(_d6),yyGetReal(_Qm),yyGetReal(_Rm),c,c,c,c);}function draw_text_ext_transformed(_96,_a6,_uw,_ez,_Xi,_Qm,_Rm,_d6){var c=(_4d&0xffffff)|(((_3d*255.0)<<24)&0xff000000);_Fw._az(yyGetString(_uw),yyGetReal(_96),yyGetReal(_a6),yyGetInt32(_ez),yyGetInt32(_Xi),yyGetReal(_d6),yyGetReal(_Qm),yyGetReal(_Rm),c,c,c,c);}function draw_text_ext_transformed_color(_96,_a6,_uw,
_ez,_Xi,_Qm,_Rm,_d6,_Ym,_Zm,__m,_0n,_ga){if(!_09)_Bw("draw_text_ext_transformed_color() only uses the 1st colour");var _bz=_3d;var _cz=_dz;var _05=((yyGetReal(_ga)*255)<<24)&0xff000000;_Ym=_6d(yyGetInt32(_Ym))|_05;_Zm=_6d(yyGetInt32(_Zm))|_05;__m=_6d(yyGetInt32(__m))|_05;_0n=_6d(yyGetInt32(_0n))|_05;_Fw._az(yyGetString(_uw),yyGetReal(_96),yyGetReal(_a6),yyGetInt32(_ez),yyGetInt32(_Xi),yyGetReal(_d6),yyGetReal(_Qm),yyGetReal(_Rm),_Ym,_Zm,__m,_0n);_3d=_bz;draw_set_color(_cz);}var draw_text_ext_transformed_colour=draw_text_ext_transformed_color;
function draw_text_transformed_color(_96,_a6,_uw,_Qm,_Rm,_d6,_Ym,_Zm,__m,_0n,_ga){if(!_09)_Bw("draw_text_transformed_color() only uses the 1st colour");var _bz=_3d;var _cz=_dz;var _05=((yyGetReal(_ga)*255)<<24)&0xff000000;_Ym=_6d(yyGetInt32(_Ym))|_05;_Zm=_6d(yyGetInt32(_Zm))|_05;__m=_6d(yyGetInt32(__m))|_05;_0n=_6d(yyGetInt32(_0n))|_05;_Fw._az(yyGetString(_uw),yyGetReal(_96),yyGetReal(_a6),-1,-1,yyGetReal(_d6),yyGetReal(_Qm),yyGetReal(_Rm),_Ym,_Zm,__m,_0n);_3d=_bz;draw_set_color(_cz);}var draw_text_transformed_colour=draw_text_transformed_color;
function string_height(_uw){_uw=yyGetString(_uw);_Fw._fz();if(!_Fw._gz)return 1;var _hz=_Fw._Gw(_uw,-1,_Fw._gz);if(_hz==null)return _Fw._gz._iz(_uw);return _Fw._gz._iz(_uw)*_hz.length;}function string_width(_uw){_Fw._fz();return _Fw._gz?_Fw._gz._jz(yyGetString(_uw)):1;}function string_width_ext(_yy,_ez,_Xi){_Fw._fz();if(!_Fw._gz)return 1;_Fw._kz(yyGetString(_yy),0,0,yyGetInt32(_ez),yyGetInt32(_Xi),0);return _lz;}function string_height_ext(_yy,_ez,_Xi){_Fw._fz();if(!_Fw._gz)return 1;_Fw._kz(yyGetString(_yy),
0,0,yyGetInt32(_ez),yyGetInt32(_Xi),0);return _mz;}function font_exists(_yg){if(_Fw._n6(yyGetInt32(_yg)))return true;else return false;}function font_get_bold(_yg){var _nz=_Fw._n6(yyGetInt32(_yg));if(!_nz)return false;return _nz.bold;}function font_get_fontname(_yg){var _nz=_Fw._n6(yyGetInt32(_yg));if(!_nz)return "";return _nz._oz;}function font_get_name(_yg){var _nz=_Fw._n6(yyGetInt32(_yg));if(!_nz)return "";return _nz.pName;}function font_get_italic(_yg){var _nz=_Fw._n6(yyGetInt32(_yg));if(!_nz)return false;return _nz.italic;
}function font_get_first(_yg){var _nz=_Fw._n6(yyGetInt32(_yg));if(!_nz)return 0;return _nz.first;}function font_get_last(_yg){var _nz=_Fw._n6(yyGetInt32(_yg));if(!_nz)return 255;return _nz.last;}function font_get_size(_yg){var _nz=_Fw._n6(yyGetInt32(_yg));if(!_nz)return 0;return _nz.size;}function _pz(_w4,_id,_qz,_rz,_sz,_tz,_uz){var _nz=new _vz();_nz._wz=0.5;_nz._xz=true;_nz.pName="fnt_"+_w4;_nz._oz=_w4;_nz.size=_id;_nz.bold=_qz;_nz.italic=_rz;_nz.first=_sz;_nz.last=_tz;_nz._ph=false;if(_w4.toLowerCase().lastIndexOf(".ttf")!=-1){
_nz._yz=new Font();_nz._yz.onload=function(){_nz._ph=true;};_nz._yz.onerror=function(err){alert(err);};_nz._yz.src=_zz(null,null,_u9+_w4);_nz._Az=_id+"px "+_nz._yz._eh+" ";}else {_nz._Az=_id+"px "+_w4+" ";_nz._ph=true;}if(_qz)_nz._Az=_nz._Az+"bold ";if(_rz)_nz._Az=_nz._Az+"Italic ";if(_uz){return _Fw._Bz(_nz);}else {return _nz;}}function font_delete(id){id=yyGetInt32(id);if(_Fw.Fonts[id]!=undefined){_Fw.Fonts[id]._yz=undefined;_Fw.Fonts[id]=undefined;}}function font_enable_sdf(id,enable){console.log("font_enable_sdf() - SDF font rendering can't be dynamically toggled for fonts on HTML5");
}function font_get_sdf_enabled(id){if(_09){id=yyGetInt32(id);if(_Fw.Fonts[id]!=undefined){var font=_Fw.Fonts[id];return font._Cz;}}return false;}function font_sdf_spread(id,enable){console.log("font_enable_sdf() - SDF spread value is fixed for fonts on HTML5");}function font_get_sdf_spread(id){if(_09){id=yyGetInt32(id);if(_Fw.Fonts[id]!=undefined){var font=_Fw.Fonts[id];if(font._Cz){return font.sdfSpread;}}}return 0;}function font_enable_effects(id,enable,_kt){if(_09){id=yyGetInt32(id);if(_Fw.Fonts[id]!=undefined){
var font=_Fw.Fonts[id];font._Dz.enabled=yyGetBool(enable);font._Ez(_kt);}}}function font_add(_w4,_id,_qz,_rz,_sz,_tz){return _pz(yyGetString(_w4),yyGetInt32(_id),yyGetBool(_qz),yyGetBool(_rz),yyGetInt32(_sz),yyGetInt32(_tz),true);}function font_add_sprite(_l6,_sz,_Fz,_ez){var _nz=new _vz();_nz._Gz(yyGetInt32(_l6),yyGetInt32(_sz),yyGetBool(_Fz),yyGetInt32(_ez),null);return _Fw._Bz(_nz);}function font_add_sprite_ext(_l6,_Hz,_Fz,_ez){_Hz=yyGetString(_Hz);var _nz=new _vz();_nz._Gz(yyGetInt32(_l6),_Hz.charCodeAt(0),
yyGetBool(_Fz),yyGetInt32(_ez),_Hz);return _Fw._Bz(_nz);}function font_replace_sprite(_yg,_l6,_sz,_Fz,_ez){_yg=yyGetInt32(_yg);var _nz=_Fw._n6(_yg);_nz._Gz(yyGetInt32(_l6),yyGetInt32(_sz),yyGetBool(_Fz),yyGetInt32(_ez),null);return _yg;};function font_replace_sprite_ext(_yg,_l6,_Hz,_Fz,_ez){_yg=yyGetInt32(_yg);_Hz=yyGetString(_Hz);var _nz=_Fw._n6(_yg);_nz._Gz(yyGetInt32(_l6),_Hz.charCodeAt(0),yyGetBool(_Fz),yyGetInt32(_ez),_Hz);return _yg;};function font_set_cache_size(_c5,_Iz){_c5=yyGetInt32(_c5);_Iz=yyGetInt32(_Iz);
var _nz=_Fw._n6(_c5);if(!_nz){_q5("Trying to adjust the cache on a non-existant font ("+string(_c5)+")");return false;}if(_nz._Jz){_q5("Trying to adjust the cache on a SPRITE font ("+string(_c5)+")");return false;}var _l5=_nz._6m;if(_l5._d9>_Iz){_l5._b9=[];_l5._c9=0;}_l5._d9=_Iz;}function font_get_texture(_c5){_c5=yyGetInt32(_c5);var _nz=_Fw._n6(_c5);if(!_nz){_q5("Trying to adjust the cache on a non-existant font ("+string(_c5)+")");return false;}if(_nz._Jz){_q5("Trying to adjust the cache on a SPRITE font ("+string(_c5)+")");
return false;}var _k5=_nz._6m;if(_k5){return({_Yc:_k5.texture,_Zc:_k5,toString:()=>{return "Texture:"+_k5.texture.URL;}});}return null;}function font_get_uvs(_c5){_c5=yyGetInt32(_c5);var _nz=_Fw._n6(_c5);if(!_nz){_q5("Trying to adjust the uvs on a non-existent font ("+string(_c5)+")");return null;}var _k5=_nz._6m;var texture=_k5.texture;var _gn=1.0/texture.width;var _hn=1.0/texture.height;var _in=[];_in.push(_k5.x*_gn,_k5.y*_hn,(_k5.x+_k5.CropWidth)*_gn,(_k5.y+_k5.CropHeight)*_hn);return _in;}function font_get_info(_c5){
_c5=yyGetInt32(_c5);var _nz=_Fw._n6(_c5);if(!_nz){return undefined;}var _k5=_nz._6m;var _Gi=_k5!=null?_k5.x:0;var _Kz=_k5!=null?_k5.y:0;_95=new _Lz();variable_struct_set(_95,"ascenderOffset",_nz.ascenderOffset);variable_struct_set(_95,"ascender",_nz.ascender);variable_struct_set(_95,"sdfSpread",_nz.sdfSpread);variable_struct_set(_95,"sdfEnabled",_nz._Cz);variable_struct_set(_95,"freetype",false);variable_struct_set(_95,"size",_nz.size);variable_struct_set(_95,"spriteIndex",_nz.spriteIndex);variable_struct_set(_95,
"texture",_k5!=null?_k5.tp:-1);variable_struct_set(_95,"name",_nz.pName);variable_struct_set(_95,"bold",_nz.bold);variable_struct_set(_95,"italic",_nz.italic);variable_struct_set(_95,"effectsEnabled",_nz._Dz.enabled);variable_struct_set(_95,"effectParams",_nz._Mz());variable_struct_set(_95,"glyphs",new _Lz());var glyphs=variable_struct_get(_95,"glyphs");if(_nz.spriteIndex!=-1){for(var _Z4 in _nz._Nz){if(_nz._Nz.hasOwnProperty(_Z4)){var _Oz=new _Lz();var _Pz=_nz._Nz[_Z4];var _Qz=parseInt(_Z4);var char=String.fromCharCode(_Qz);
variable_struct_set(_Oz,"char",_Pz);variable_struct_set(glyphs,char,_Oz);}}}else {for(var _Z4 in _nz.glyphs){if(_nz.glyphs.hasOwnProperty(_Z4)){var _Oz=new _Lz();var _Pz=_nz.glyphs[_Z4];var _Qz=parseInt(_Z4);var char=String.fromCharCode(_Qz);variable_struct_set(_Oz,"char",_Qz);variable_struct_set(_Oz,"x",_Pz.x);variable_struct_set(_Oz,"y",_Pz.y);variable_struct_set(_Oz,"w",_Pz.w);variable_struct_set(_Oz,"h",_Pz.h);variable_struct_set(_Oz,"shift",_Pz.shift);variable_struct_set(_Oz,"offset",_Pz.offset);if(_Pz._Rz!=undefined){
var _Rz=[];for(var _0l=0;_0l<_Pz._Rz.length;++_0l){_Rz.push(_Pz._Rz[_0l]);}variable_struct_set(_Oz,"kerning",_Rz);}variable_struct_set(glyphs,char,_Oz);}}}return _95;}function font_add_enable_aa(){}function font_add_get_enable_aa(){return false;}var _Sz=1;function _Tz(_T6){_Uz(_T6*1000);}function scheduler_resolution_set(_k4){}function scheduler_resolution_get(){return -1;}function display_set_timing_method(_Vz){_Sz=yyGetInt32(_Vz);}function display_get_timing_method(){return _Sz;}/*@constructor */function _Wz(_Ol,
_w4){this.name=_w4;this.value=_Ol;}function _Xz(){var _Yz=_9l("hiscores_data_",true);if(_Yz!=null){try{var _Zz=JSON.parse(_Yz);var i;for(i=0;i<__z;i++){_0A[i]=_Zz[i].name;_1A[i]=_Zz[i].value;}}catch(_Oj){_q5("Error: reading hiscore JSON");}}}function _2A(){var _Zz={};var i;for(i=0;i<__z;i++){_Zz[i]=new _Wz(_1A[i],_0A[i]);}var _Yz=JSON.stringify(_Zz);_5l("hiscores_data_",_Yz);}function draw_highscore(_F7,_G7,_77,_87){_F7=yyGetInt32(_F7);_G7=yyGetInt32(_G7);_77=yyGetInt32(_77);_87=yyGetInt32(_87);var _6z=_Fw._6z;
var _0c=(_87-_G7)/__z;for(var i=0;i<__z;i++){_Fw._6z=0;draw_text(_F7,_G7,_0A[i]);_Fw._6z=2;draw_text(_77,_G7,_1A[i].toString());_G7+=_0c;}_Fw._6z=_6z;}function highscore_clear(){for(var i=0;i<10;i++){_1A[i]=0;_0A[i]=_3A;}}function highscore_add(_Uw,_4A){_4A=yyGetInt32(_4A);var _5A=yyGetString(_Uw);if(!_5A){_5A="";}for(var i=0;i<__z;i++){if(_4A>_1A[i]){_1A.splice(i,0,_4A);_0A.splice(i,0,_5A);_1A.splice(10,1);_0A.splice(10,1);_2A();return;}}}function highscore_value(_6A){_6A=yyGetInt32(_6A);if(_6A<1||_6A>__z)return -1;
return _1A[_6A-1];}function highscore_name(_6A){_6A=yyGetInt32(_6A);if(_6A<1||_6A>__z)return "";return _0A[_6A-1];}function _7A(_rm,_sm,_Ol){var _8A,_9A,_aA,_bA,_wh,_xh;_8A=(_rm>>16)&0xff;_aA=(_rm>>8)&0xff;_wh=(_rm&0xff);_9A=(_sm>>16)&0xff;_bA=(_sm>>8)&0xff;_xh=(_sm&0xff);var _cA=1.0-_Ol;var _Y4=_Ak(_8A*_cA+_9A*_Ol);var _Z4=_Ak(_aA*_cA+_bA*_Ol);var __4=_Ak(_wh*_cA+_xh*_Ol);var _55=((_Y4&0xff)<<16)|((_Z4&0xff)<<8)|(__4&0xff);return _55;}function _dA(_rm,_sm,_Ol){return _7A(_rm,_sm,_Ol);}function _eA(_rm,_sm){return make_color_rgb((color_get_red(_rm)*color_get_red(_sm))/255,
(color_get_green(_rm)*color_get_green(_sm))/255,(color_get_blue(_rm)*color_get_blue(_sm))/255);}function event_perform(_Pn,_fA,_Y3,_gA){_Y3=yyGetInt32(_Y3);_gA=yyGetInt32(_gA);if(YYInstanceof(_Pn)!="instance"){_q5("Attempt to dispatch event on non-instance object");}var _hA=_iA;_iA=true;var event=_jA(_Y3,_gA);var index=_kA(_Y3,_gA);_Pn._w6(event,index,_Pn,_fA);_iA=_hA;}function event_perform_async(_Pn,_fA,_Y3,_lA){var _mA=g_pBuiltIn.async_load;_Y3=yyGetInt32(_Y3);_lA=yyGetInt32(_lA);g_pBuiltIn.async_load=_lA;
_14._24(_nA|_Y3,0,true);ds_map_destroy(_lA);g_pBuiltIn.async_load=_mA;}function _oA(_Pn,_pA,_qA,_rA){var _sA=_tA._n6(_qA);if((_sA!=null)&&(_sA!=undefined)){var _uA=_sA.Events[_rA];if((_uA!=null)&&(_uA!=undefined)){_uA.Event(_Pn,_Pn);}}}function event_perform_object(_Pn,_fA,_ck,_Y3,_gA){_ck=yyGetInt32(_ck);_Y3=yyGetInt32(_Y3);_gA=yyGetInt32(_gA);if(YYInstanceof(_Pn)!="instance"){_q5("Attempt to dispatch event on non-instance object");}var event=_jA(_Y3,_gA);var index=_kA(_Y3,_gA);var _Nx=_14._n6(_ck);if(_Nx){
var _vA=_wA;var _xA=_yA;var _zA=_AA;_wA=_Nx;_yA=event;_AA=index;var _BA=_Nx;while(_BA!=null){if(_BA._w6(event,index,_Pn,_fA)){break;}_BA=_BA.__w;}_wA=_vA;_yA=_xA;_AA=_zA;}}var _CA=true;function event_user(_Pn,_fA,_gA){_gA=yyGetInt32(_gA);if(_gA>=0&&_gA<=15){_gA+=_DA;event_perform(_Pn,_fA,_EA,_gA);}}function event_inherited(_Pn,_fA){if(YYInstanceof(_Pn)!="instance"){_q5("Attempt to dispatch event on non-instance object");}_Pn._FA(_GA,_HA,_fA);}function parameter_count(){return _IA;}function parameter_string(_s4){
_s4=yyGetInt32(_s4);if(_s4<0||_s4>_IA)return "";var __h=_JA[_s4];if(_KA[_s4]!=null)__h=__h+"="+_KA[_s4];return __h;}function _LA(){var _MA="en";if(navigator["language"]){_MA=navigator["language"];}else if(navigator["userLanguage"]){_MA=navigator["userLanguage"];}return _MA;}function os_get_language(){var _MA=_LA();var _NA=_MA.indexOf("-");if(_NA>=0){_MA=_MA.substring(0,_NA);}return _MA;}function os_get_region(){var _E5="";var _MA=_LA();var _NA=_MA.indexOf("-");if(_NA>=0){_E5=_MA.substring(_NA+1,_MA.length);}return _E5;
}function os_check_permission(){}function os_request_permission(){}function device_mouse_dbclick_enable(_xr){}function base64_encode(data){var _2h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _3h,_4h,_5h,_6h,_7h,_8h,_9h,_ah;var i=0;var _bh=0;var _ch="";var _dh=[];if(!data){return data;}data=yyGetString(data);if(typeof data!=="string")return undefined;data=_OA(data);do {_3h=data.charCodeAt(i++);_4h=data.charCodeAt(i++);_5h=data.charCodeAt(i++);_ah=_3h<<16|_4h<<8|_5h;_6h=_ah>>18&0x3f;
_7h=_ah>>12&0x3f;_8h=_ah>>6&0x3f;_9h=_ah&0x3f;_dh[_bh++]=_2h.charAt(_6h)+_2h.charAt(_7h)+_2h.charAt(_8h)+_2h.charAt(_9h);}while(i<data.length);_ch=_dh.join('');var _Y4=data.length%3;return(_Y4?_ch.slice(0,_Y4-3):_ch)+'==='.slice(_Y4||3);}function _PA(_Dw){var _bc="";var index=0;while(index<_Dw.length){var _H5=0;var _QA=_Dw.charCodeAt(index++);if((_QA&0x80)==0){_H5=_QA;}else if((_QA&0xe0)==0xc0){_H5=(_QA&0x1f)<<6;_QA=_Dw.charCodeAt(index++);_H5|=(_QA&0x3f);}else if((_QA&0xf0)==0xe0){_H5=(_QA&0x0f)<<12;_QA=_Dw.charCodeAt(index++);
_H5|=(_QA&0x3f)<<6;_QA=_Dw.charCodeAt(index++);_H5|=(_QA&0x3f);}else {_H5=(_QA&0x07)<<18;_QA=_Dw.charCodeAt(index++);_H5|=(_QA&0x3f)<<12;_QA=_Dw.charCodeAt(index++);_H5|=(_QA&0x3f)<<6;_QA=_Dw.charCodeAt(index++);_H5|=(_QA&0x3f);}if(_H5==0x00)break;var chr=String.fromCharCode(_H5);_bc+=chr;}return _bc;}function base64_decode(data){var _2h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _3h,_4h,_5h,_6h,_7h,_8h,_9h,_ah;var i=0;var _bh=0;var _RA="";var _dh=[];if(!data){return data;}data=yyGetString(data);
data+='';do {_6h=_2h.indexOf(data.charAt(i++));_7h=_2h.indexOf(data.charAt(i++));_8h=_2h.indexOf(data.charAt(i++));_9h=_2h.indexOf(data.charAt(i++));_ah=_6h<<18|_7h<<12|_8h<<6|_9h;_3h=_ah>>16&0xff;_4h=_ah>>8&0xff;_5h=_ah&0xff;if(_8h==64){_dh[_bh++]=String.fromCharCode(_3h);}else if(_9h==64){_dh[_bh++]=String.fromCharCode(_3h,_4h);}else {_dh[_bh++]=String.fromCharCode(_3h,_4h,_5h);}}while(i<data.length);_RA=_dh.join('');return _PA(_RA);}function _SA(data){var _2h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var _3h,_4h,_5h,_6h,_7h,_8h,_9h,_ah;var i=0;var _bh=0;var _RA="";var _dh=[];if(!data){return data;}data=yyGetString(data);data+='';do {_6h=_2h.indexOf(data.charAt(i++));_7h=_2h.indexOf(data.charAt(i++));_8h=_2h.indexOf(data.charAt(i++));_9h=_2h.indexOf(data.charAt(i++));_ah=_6h<<18|_7h<<12|_8h<<6|_9h;_3h=_ah>>16&0xff;_4h=_ah>>8&0xff;_5h=_ah&0xff;if(_8h==64){_dh[_bh++]=String.fromCharCode(_3h);}else if(_9h==64){_dh[_bh++]=String.fromCharCode(_3h,_4h);}else {_dh[_bh++]=String.fromCharCode(_3h,_4h,_5h);}}while(i<data.length);
_RA=_dh.join('');return _RA;}function md5_string_unicode(string){return _TA(_UA(yyGetString(string)));}function md5_string_utf8(string){return _TA(yyGetString(string));}function md5_file(_VA){return "unsupported";}function os_is_network_connected(){if(navigator!=null&&navigator!=undefined){return navigator["onLine"]?1.0:0.0;}return 1.0;}function os_powersave_enable(enable){}function os_lock_orientation(enable){}function analytics_event(_Y3){_Y3=yyGetString(_Y3);try{if(_aw.Options.TrackingID){_gaq.push(['_trackEvent',
'GMEvent',_Y3]);}else if(_aw.Options.FlurryId){FlurryAgent.logEvent(_Y3);}}catch(_jw){show_debug_message("caught unhandled exception "+_jw.message);}}function analytics_event_ext(_Y3){_Y3=yyGetString(_Y3);try{var arguments=arguments;if(_aw.Options.TrackingID){if(arguments.length>=3){_gaq.push(['_trackEvent','GMEvent',_Y3,arguments[1],arguments[2]]);}else {_gaq.push(['_trackEvent','GMEvent',_Y3]);}}else if(_aw.Options.FlurryId){if((arguments.length>=3)&&(arguments.length&1)==1){var _kt={};var _WA=arguments.length-1;
if(_WA>10){_WA=10;}for(var i=0;i<_WA;i+=2){_kt[arguments[i+1]]=arguments[i+2].toString();}FlurryAgent.logEvent(_Y3,_kt);}else {FlurryAgent.logEvent(_Y3);}}}catch(_jw){show_debug_message("caught unhandled exception "+_jw.message);}}function sha1_string_unicode(_yy){return _XA(_UA(yyGetString(_yy)));}function sha1_string_utf8(_yy){return _XA(yyGetString(_yy));}function sha1_file(_4y){return "unsupported";}var _YA=0;var _ZA="";function _TA(__h){return __A(_0B(_1B(__h)));}function _2B(__h){return _3B(_0B(_1B(__h)));
}function _4B(__h,e){return _5B(_0B(_1B(__h)),e);}function _6B(_0l,_Xo){return __A(_7B(_1B(_0l),_1B(_Xo)));}function _8B(_0l,_Xo){return _3B(_7B(_1B(_0l),_1B(_Xo)));}function _9B(_0l,_Xo,e){return _5B(_7B(_1B(_0l),_1B(_Xo)),e);}function _aB(){return _TA("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72";}function _0B(__h){return _bB(_cB(_dB(__h),__h.length*8));}function _7B(key,data){var _eB=_dB(key);if(_eB.length>16)_eB=_cB(_eB,key.length*8);var _fB=Array(16),_gB=Array(16);for(var i=0;i<16;i++){_fB[i]=_eB[i]^0x36363636;
_gB[i]=_eB[i]^0x5C5C5C5C;}var hash=_cB(_fB.concat(_dB(data)),512+data.length*8);return _bB(_cB(_gB.concat(hash),512+128));}function __A(input){var _hB=_YA?"0123456789ABCDEF":"0123456789abcdef";var output="";var x;for(var i=0;i<input.length;i++){x=input.charCodeAt(i);output+=_hB.charAt((x>>>4)&0x0F)+_hB.charAt(x&0x0F);}return output;}function _3B(input){var _iB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var output="";var _Ai=input.length;for(var i=0;i<_Ai;i+=3){var _jB=(input.charCodeAt(i)<<16)|(i+1<_Ai?input.charCodeAt(i+1)<<8:0)|(i+2<_Ai?input.charCodeAt(i+2):0);
for(var _J6=0;_J6<4;_J6++){if(i*8+_J6*6>input.length*8)output+=_ZA;else output+=_iB.charAt((_jB>>>6*(3-_J6))&0x3F);}}return output;}function _5B(input,_kB){var _lB=_kB.length;var i,_J6,q,x,_mB;var _nB=Array(Math.ceil(input.length/2));for(i=0;i<_nB.length;i++){_nB[i]=(input.charCodeAt(i*2)<<8)|input.charCodeAt(i*2+1);}var _oB=Math.ceil(input.length*8/(Math.log(_kB.length)/Math.log(2)));var _pB=Array(_oB);for(_J6=0;_J6<_oB;_J6++){_mB=Array();x=0;for(i=0;i<_nB.length;i++){x=(x<<16)+_nB[i];q=Math.floor(x/_lB);
x-=q*_lB;if(_mB.length>0||q>0)_mB[_mB.length]=q;}_pB[_J6]=x;_nB=_mB;}var output="";for(i=_pB.length-1;i>=0;i--)output+=_kB.charAt(_pB[i]);return output;}function _1B(input){var output="";var i=-1;var x,y;while(++i<input.length){x=input.charCodeAt(i);y=i+1<input.length?input.charCodeAt(i+1):0;if(0xD800<=x&&x<=0xDBFF&&0xDC00<=y&&y<=0xDFFF){x=0x10000+((x&0x03FF)<<10)+(y&0x03FF);i++;}if(x<=0x7F)output+=String.fromCharCode(x);else if(x<=0x7FF)output+=String.fromCharCode(0xC0|((x>>>6)&0x1F),0x80|(x&0x3F));else if(x<=0xFFFF)output+=String.fromCharCode(0xE0|((x>>>12)&0x0F),
0x80|((x>>>6)&0x3F),0x80|(x&0x3F));else if(x<=0x1FFFFF)output+=String.fromCharCode(0xF0|((x>>>18)&0x07),0x80|((x>>>12)&0x3F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));}return output;}function _UA(input){var output="";for(var i=0;i<input.length;i++)output+=String.fromCharCode(input.charCodeAt(i)&0xFF,(input.charCodeAt(i)>>>8)&0xFF);return output;}function _qB(input){var output="";for(var i=0;i<input.length;i++)output+=String.fromCharCode((input.charCodeAt(i)>>>8)&0xFF,input.charCodeAt(i)&0xFF);return output;}function _dB(input){
var output=Array(input.length>>2);for(var i=0;i<output.length;i++)output[i]=0;for(var i=0;i<input.length*8;i+=8)output[i>>5]|=(input.charCodeAt(i/8)&0xFF)<<(i%32);return output;}function _bB(input){var output="";for(var i=0;i<input.length*32;i+=8)output+=String.fromCharCode((input[i>>5]>>>(i%32))&0xFF);return output;}function _cB(x,_Ai){x[_Ai>>5]|=0x80<<((_Ai)%32);x[(((_Ai+64)>>>9)<<4)+14]=_Ai;var _05=1732584193;var __4=-271733879;var c=-1732584194;var _Xo=271733878;for(var i=0;i<x.length;i+=16){var _rB=_05;var _sB=__4;
var _tB=c;var _uB=_Xo;_05=_vB(_05,__4,c,_Xo,x[i+0],7,-680876936);_Xo=_vB(_Xo,_05,__4,c,x[i+1],12,-389564586);c=_vB(c,_Xo,_05,__4,x[i+2],17,606105819);__4=_vB(__4,c,_Xo,_05,x[i+3],22,-1044525330);_05=_vB(_05,__4,c,_Xo,x[i+4],7,-176418897);_Xo=_vB(_Xo,_05,__4,c,x[i+5],12,1200080426);c=_vB(c,_Xo,_05,__4,x[i+6],17,-1473231341);__4=_vB(__4,c,_Xo,_05,x[i+7],22,-45705983);_05=_vB(_05,__4,c,_Xo,x[i+8],7,1770035416);_Xo=_vB(_Xo,_05,__4,c,x[i+9],12,-1958414417);c=_vB(c,_Xo,_05,__4,x[i+10],17,-42063);__4=_vB(__4,
c,_Xo,_05,x[i+11],22,-1990404162);_05=_vB(_05,__4,c,_Xo,x[i+12],7,1804603682);_Xo=_vB(_Xo,_05,__4,c,x[i+13],12,-40341101);c=_vB(c,_Xo,_05,__4,x[i+14],17,-1502002290);__4=_vB(__4,c,_Xo,_05,x[i+15],22,1236535329);_05=_wB(_05,__4,c,_Xo,x[i+1],5,-165796510);_Xo=_wB(_Xo,_05,__4,c,x[i+6],9,-1069501632);c=_wB(c,_Xo,_05,__4,x[i+11],14,643717713);__4=_wB(__4,c,_Xo,_05,x[i+0],20,-373897302);_05=_wB(_05,__4,c,_Xo,x[i+5],5,-701558691);_Xo=_wB(_Xo,_05,__4,c,x[i+10],9,38016083);c=_wB(c,_Xo,_05,__4,x[i+15],14,
-660478335);__4=_wB(__4,c,_Xo,_05,x[i+4],20,-405537848);_05=_wB(_05,__4,c,_Xo,x[i+9],5,568446438);_Xo=_wB(_Xo,_05,__4,c,x[i+14],9,-1019803690);c=_wB(c,_Xo,_05,__4,x[i+3],14,-187363961);__4=_wB(__4,c,_Xo,_05,x[i+8],20,1163531501);_05=_wB(_05,__4,c,_Xo,x[i+13],5,-1444681467);_Xo=_wB(_Xo,_05,__4,c,x[i+2],9,-51403784);c=_wB(c,_Xo,_05,__4,x[i+7],14,1735328473);__4=_wB(__4,c,_Xo,_05,x[i+12],20,-1926607734);_05=_xB(_05,__4,c,_Xo,x[i+5],4,-378558);_Xo=_xB(_Xo,_05,__4,c,x[i+8],11,-2022574463);c=_xB(c,_Xo,
_05,__4,x[i+11],16,1839030562);__4=_xB(__4,c,_Xo,_05,x[i+14],23,-35309556);_05=_xB(_05,__4,c,_Xo,x[i+1],4,-1530992060);_Xo=_xB(_Xo,_05,__4,c,x[i+4],11,1272893353);c=_xB(c,_Xo,_05,__4,x[i+7],16,-155497632);__4=_xB(__4,c,_Xo,_05,x[i+10],23,-1094730640);_05=_xB(_05,__4,c,_Xo,x[i+13],4,681279174);_Xo=_xB(_Xo,_05,__4,c,x[i+0],11,-358537222);c=_xB(c,_Xo,_05,__4,x[i+3],16,-722521979);__4=_xB(__4,c,_Xo,_05,x[i+6],23,76029189);_05=_xB(_05,__4,c,_Xo,x[i+9],4,-640364487);_Xo=_xB(_Xo,_05,__4,c,x[i+12],11,-421815835);
c=_xB(c,_Xo,_05,__4,x[i+15],16,530742520);__4=_xB(__4,c,_Xo,_05,x[i+2],23,-995338651);_05=_yB(_05,__4,c,_Xo,x[i+0],6,-198630844);_Xo=_yB(_Xo,_05,__4,c,x[i+7],10,1126891415);c=_yB(c,_Xo,_05,__4,x[i+14],15,-1416354905);__4=_yB(__4,c,_Xo,_05,x[i+5],21,-57434055);_05=_yB(_05,__4,c,_Xo,x[i+12],6,1700485571);_Xo=_yB(_Xo,_05,__4,c,x[i+3],10,-1894986606);c=_yB(c,_Xo,_05,__4,x[i+10],15,-1051523);__4=_yB(__4,c,_Xo,_05,x[i+1],21,-2054922799);_05=_yB(_05,__4,c,_Xo,x[i+8],6,1873313359);_Xo=_yB(_Xo,_05,__4,c,
x[i+15],10,-30611744);c=_yB(c,_Xo,_05,__4,x[i+6],15,-1560198380);__4=_yB(__4,c,_Xo,_05,x[i+13],21,1309151649);_05=_yB(_05,__4,c,_Xo,x[i+4],6,-145523070);_Xo=_yB(_Xo,_05,__4,c,x[i+11],10,-1120210379);c=_yB(c,_Xo,_05,__4,x[i+2],15,718787259);__4=_yB(__4,c,_Xo,_05,x[i+9],21,-343485551);_05=_zB(_05,_rB);__4=_zB(__4,_sB);c=_zB(c,_tB);_Xo=_zB(_Xo,_uB);}return Array(_05,__4,c,_Xo);}function _AB(q,_05,__4,x,__h,_s7){return _zB(_BB(_zB(_zB(_05,q),_zB(x,_s7)),__h),__4);}function _vB(_05,__4,c,_Xo,x,__h,_s7){return _AB((__4&c)|((~__4)&_Xo),
_05,__4,x,__h,_s7);}function _wB(_05,__4,c,_Xo,x,__h,_s7){return _AB((__4&_Xo)|(c&(~_Xo)),_05,__4,x,__h,_s7);}function _xB(_05,__4,c,_Xo,x,__h,_s7){return _AB(__4^c^_Xo,_05,__4,x,__h,_s7);}function _yB(_05,__4,c,_Xo,x,__h,_s7){return _AB(c^(__4|(~_Xo)),_05,__4,x,__h,_s7);}function _zB(x,y){var _CB=(x&0xFFFF)+(y&0xFFFF);var _DB=(x>>16)+(y>>16)+(_CB>>16);return(_DB<<16)|(_CB&0xFFFF);}function _BB(_dp,_EB){return(_dp<<_EB)|(_dp>>>(32-_EB));}function _XA(__h){return __A(_FB(_1B(__h)));}function _GB(__h){return _3B(_FB(_1B(__h)));
}function _HB(__h,e){return _5B(_FB(_1B(__h)),e);}function _IB(_0l,_Xo){return __A(_JB(_1B(_0l),_1B(_Xo)));}function _KB(_0l,_Xo){return _3B(_JB(_1B(_0l),_1B(_Xo)));}function _LB(_0l,_Xo,e){return _5B(_JB(_1B(_0l),_1B(_Xo)),e);}function _MB(){return _XA("abc").toLowerCase()=="a9993e364706816aba3e25717850c26c9cd0d89d";}function _FB(__h){return _NB(_OB(_PB(__h),__h.length*8));}function _JB(key,data){var _eB=_PB(key);if(_eB.length>16)_eB=_OB(_eB,key.length*8);var _fB=Array(16),_gB=Array(16);for(var i=0;i<16;i++){_fB[i]=_eB[i]^0x36363636;
_gB[i]=_eB[i]^0x5C5C5C5C;}var hash=_OB(_fB.concat(_PB(data)),512+data.length*8);return _NB(_OB(_gB.concat(hash),512+160));}function _PB(input){var output=Array(input.length>>2);for(var i=0;i<output.length;i++)output[i]=0;for(var i=0;i<input.length*8;i+=8)output[i>>5]|=(input.charCodeAt(i/8)&0xFF)<<(24-i%32);return output;}function _NB(input){var output="";for(var i=0;i<input.length*32;i+=8)output+=String.fromCharCode((input[i>>5]>>>(24-i%32))&0xFF);return output;}function _OB(x,_Ai){x[_Ai>>5]|=0x80<<(24-_Ai%32);
x[((_Ai+64>>9)<<4)+15]=_Ai;var w=Array(80);var _05=1732584193;var __4=-271733879;var c=-1732584194;var _Xo=271733878;var e=-1009589776;for(var i=0;i<x.length;i+=16){var _rB=_05;var _sB=__4;var _tB=c;var _uB=_Xo;var _QB=e;for(var _J6=0;_J6<80;_J6++){if(_J6<16)w[_J6]=x[i+_J6];else w[_J6]=_BB(w[_J6-3]^w[_J6-8]^w[_J6-14]^w[_J6-16],1);var _s7=_zB(_zB(_BB(_05,5),_RB(_J6,__4,c,_Xo)),_zB(_zB(e,w[_J6]),_SB(_J6)));e=_Xo;_Xo=c;c=_BB(__4,30);__4=_05;_05=_s7;}_05=_zB(_05,_rB);__4=_zB(__4,_sB);c=_zB(c,_tB);_Xo=_zB(_Xo,_uB);
e=_zB(e,_QB);}return Array(_05,__4,c,_Xo,e);}function _RB(_s7,__4,c,_Xo){if(_s7<20)return(__4&c)|((~__4)&_Xo);if(_s7<40)return __4^c^_Xo;if(_s7<60)return(__4&c)|(__4&_Xo)|(c&_Xo);return __4^c^_Xo;}function _SB(_s7){return(_s7<20)?1518500249:(_s7<40)?1859775393:(_s7<60)?-1894007588:-899497514;}function _TB(_w4,_Wk){for(var index=0;index<_Wk.length;index++){var _UB=_Wk[index];if(_UB&&(_UB.pName==_w4)){return index;}}return -1;}function _VB(_w4,_Wk){for(var index=0;index<_Wk.length;index++){var _UB=_Wk[index];if(_UB&&(_UB.name==_w4)){
return index;}}return -1;}function _WB(_w4,_Wk){var _XB="gml_Script_"+_w4;var _YB=-1;for(var index=0;index<_Wk.length;index++){var _ZB=_Wk[index];if(_ZB&&_ZB.endsWith(_w4)){if(_ZB==_XB)return index+100000;else if(_ZB==_w4)_YB=index+100000;}}if(_YB==-1){var __B="gml_GlobalScript_"+_w4;for(var index=0;index<_Wk.length;index++){var _ZB=_Wk[index];if(_ZB&&_ZB.endsWith(_w4)){if(_ZB==__B)return index+100000;}}}return _YB;}function _0C(_w4){_w4=yyGetString(_w4);var _1C={type:-1,id:-1};if((_95=_TB(_w4,_aw.GMObjects))>=0){
_1C.type=_2C;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.Sprites))>=0){_1C.type=_3C;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.GMRooms))>=0){_1C.type=_4C;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.Sounds))>=0){_1C.type=_5C;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.Backgrounds))>=0){_1C.type=_6C;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.Paths))>=0){_1C.type=_7C;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.Fonts))>=0){_1C.type=_8C;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.Timelines))>=0){_1C.type=_9C;_1C.id=_95;
return _1C;}if((_95=_WB(_w4,_aw.ScriptNames))>=0){_1C.type=_aC;_1C.id=_95;return _1C;}if((_95=_VB(_w4,_aw.Shaders))>=0){_1C.type=_bC;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.Sequences))>=0){_1C.type=_cC;_1C.id=_95;return _1C;}if((_95=_TB(_w4,_aw.AnimCurves))>=0){_1C.type=_dC;_1C.id=_95;return _1C;}if((_95=_eC._fC(_w4))>=0){_1C.type=_gC;_1C.id=_95;return _1C;}return _1C;}function _hC(_s4,_iC){switch(_iC){case _2C:return(object_exists(_s4))?object_get_name(_s4):"";case _3C:return(sprite_exists(_s4))?sprite_get_name(_s4):"";
case _5C:return(_jC(_s4))?_kC(_s4):"";case _4C:return(room_exists(_s4))?room_get_name(_s4):"";case _6C:return(_Yl(_s4))?_2m(_s4):"";case _7C:return(path_exists(_s4))?path_get_name(_s4):"";case _aC:return(script_exists(_s4))?script_get_name(_s4):"";case _8C:return(font_exists(_s4))?font_get_name(_s4):"";case _9C:return(timeline_exists(_s4))?timeline_get_name(_s4):"";case _bC:return(_lC(_s4))?shader_get_name(_s4):"";case _cC:return(_mC(_s4))?_nC(_s4):"";case _dC:return(_oC(_s4))?_pC(_s4):"";case _gC:{var _qC=_eC._n6(_s4);
return(_qC!=null)?_qC.name:"";}}return "";}function asset_get_index(_w4){_w4=yyGetString(_w4);var _1C=_0C(_w4);if(_1C.id>=0)return _1C.id;var _Jk=Object.getOwnPropertyNames(g_pBuiltIn);for(var i=0;i>_Jk;i++){if(_Jk[i]==_w4){return i;}}return -1;}function asset_get_type(_w4){_w4=yyGetString(_w4);var _1C=_0C(_w4);return _1C.type;}function asset_get_ids(_iC){var ids;var _rC=false;switch(_iC){case _sC:break;case _2C:ids=_14._tC();_rC=true;break;case _3C:ids=_m6._tC();break;case _4C:ids=_uC._tC();break;case _6C:ids=_0m._tC();
_rC=true;break;case _7C:ids=_vC._tC();break;case _aC:{ids=[];for(var i=0;i<_aw.Scripts.length;++i){if(_aw.Scripts[i]){ids.push(100000+i);}}}break;case _8C:ids=_Fw._tC();break;case _9C:ids=_tA._tC();break;case _bC:{ids=[];for(var i=0;i<_wC.length;++i){if(_wC[i]){ids.push(i);}}}break;case _cC:ids=_xC._tC();break;case _dC:ids=_Cl._tC();break;case _5C:ids=_yC._tC();break;case _gC:ids=_eC._tC();_rC=true;break;default :break;}if(_rC){for(var i=0;i<ids.length;++i){ids[i]=_Wn(_iC|_zC,ids[i]);}}return ids;}function alarm_get(_Hx,
index){return _Hx.alarm[yyGetInt32(index)];}function alarm_set(_Hx,index,_c9){_Hx.alarm[yyGetInt32(index)]=yyGetInt32(_c9);}function game_set_speed(_AC,_0h){_AC=yyGetReal(_AC);if(_AC<0)return;if(_AC==0)_g4._BC(_AC);if(yyGetInt32(_0h)==0)_g4._BC(_AC);else _g4._BC(1000000.0/_AC);};function game_get_speed(_AC){if(!_g4._CC())return 0;if(yyGetInt32(_AC)==0)return _g4._h4();else return 1000000.0/_g4._h4();}/*@constructor */function _DC(){this._EC=0;this._FC=0;this._GC=false;this._HC=0;this._IC=0;};_DC.prototype._BC=function(_AC){
this._HC=_AC;this._JC();};_DC.prototype._KC=function(_AC){this._GC=_AC;};_DC.prototype._LC=function(){return this._EC;};_DC.prototype._MC=function(){return this._EC*0.000001;};_DC.prototype._NC=function(_AC){return this._EC/_AC;};_DC.prototype._CC=function(){if(this._HC>0.0)return true;return true;};_DC.prototype._JC=function(){this._EC=0;if(this._HC>0.0){this._FC=get_timer();}else {this._FC=0;}this._IC=0;this._GC=false;};_DC.prototype._bg=function(){var current;if(this._HC>0.0){current=this._FC+1000000.0/this._HC;
}else current=get_timer();this._IC=current-this._FC;if(!this._GC)this._EC+=this._IC;this._FC=current;};_DC.prototype._h4=function(){if(this._HC>0)return this._HC;if(this._IC>0){return 1000000.0/this._IC;}return 30.0;};var _g4=new _DC();function gamepad_is_supported(){return _xe._5g();}function gamepad_get_device_count(){return _xe._1g();}function gamepad_is_connected(_3g){return _xe._cg(yyGetInt32(_3g));}function gamepad_get_button_threshold(_3g){return _xe._Ke(yyGetInt32(_3g));}function gamepad_set_button_threshold(_3g,
_7g){_xe._6g(yyGetInt32(_3g),yyGetReal(_7g));}function gamepad_get_axis_deadzone(_3g){return _xe._Ie(yyGetInt32(_3g));}function gamepad_set_axis_deadzone(_3g,_9g){_xe._8g(yyGetInt32(_3g),yyGetReal(_9g));}function gamepad_get_description(_3g){return _xe._2g(yyGetInt32(_3g));}function gamepad_button_count(_3g){return _xe._Pe(yyGetInt32(_3g));}function gamepad_button_check(_3g,_Re){return _xe._Ve(yyGetInt32(_3g),yyGetInt32(_Re));}function gamepad_button_check_pressed(_3g,_Re){return _xe._Qe(yyGetInt32(_3g),yyGetInt32(_Re));
}function gamepad_button_check_released(_3g,_Re){return _xe._Ue(yyGetInt32(_3g),yyGetInt32(_Re));}function gamepad_button_value(_3g,_Re){return _xe._We(yyGetInt32(_3g),yyGetInt32(_Re));}function gamepad_axis_count(_3g){return _xe._Xe(yyGetInt32(_3g));}function gamepad_axis_value(_3g,_Ze){return _xe._Ye(yyGetInt32(_3g),yyGetInt32(_Ze));}function gamepad_set_vibration(_3g,_OC,_PC){}function gamepad_set_color(_3g,_Sm){}function gamepad_set_colour(_3g,_5d){}function gamepad_hat_count(_3g){return 0;}function gamepad_hat_value(_3g,
_s4){return 0;}function gamepad_remove_mapping(_3g){}function gamepad_test_mapping(_3g,_QC){}function gamepad_get_mapping(_3g){_3g=yyGetInt32(_3g);if((_3g<0)||(_3g>=_xe._1g())){return "device index out of range";}return "no mapping";}function gamepad_get_guid(_3g){_3g=yyGetInt32(_3g);if((_3g<0)||(_3g>=_xe._1g())){return "device index out of range";}return "none";}function gamepad_set_option(){}function gamepad_get_option(){return 0;}var _wu=1,_uu=2,_RC=3,_vu=4,_su=5,_tu=6,_SC=7,_TC=8,_UC=9,_VC=10,_WC=11;var _XC=0.0;
function display_get_gui_height(){var _YC=_ZC;var scale=__C;if(_YC<0)_YC=window_get_height();if(scale==0.0)scale=1.0;return _YC/scale;}function display_get_gui_width(){var _0D=_1D;var scale=_2D;if(_0D<0)_0D=window_get_width();if(scale==0.0)scale=1.0;return _0D/scale;}function display_set_gui_size(_89,_99){_1D=yyGetInt32(_89);_ZC=yyGetInt32(_99);_3D=false;_4D=0;_5D=0;_2D=1;__C=1;if(_6D){_7D();}}function display_set_gui_maximise(_Qm,_Rm,_8D,_9D){_3D=true;_4D=0;_5D=0;_2D=1;__C=1;_1D=-1;_ZC=-1;if(_Qm==-1&&_Rm==-1&&_8D==undefined&&_9D==undefined){
if(_6D){_7D();}return;}if(_Qm!=undefined)_2D=yyGetReal(_Qm);if(_Rm!=undefined)__C=yyGetReal(_Rm);if(_8D!=undefined)_4D=yyGetReal(_8D);if(_9D!=undefined)_5D=yyGetReal(_9D);if(_6D){_7D();}}var display_set_gui_maximize=display_set_gui_maximise;var _aD=96;function display_get_dpi_x(){return _aD*window.devicePixelRatio;}var _bD=96;function display_get_dpi_y(){return _bD;}function display_get_width(){return _cD();}function display_get_height(){return _dD();}function display_get_orientation(){return 0;}function draw_clear(_Xd){
_eD(_6d(yyGetInt32(_Xd)));}function draw_clear_alpha(){}draw_clear_alpha=(_Xd,_ga)=>{_Xd=yyGetInt32(_Xd);_ga=yyGetReal(_ga);_fD();var _gD=[];_gD[0]=1;_gD[1]=0;_gD[2]=0;_gD[3]=1;_gD[4]=0;_gD[5]=0;_Oa._hD(_gD[0],_gD[1],_gD[2],_gD[3],_gD[4],_gD[5]);if(!_Oa.clearRect||_Xd!=0||_ga!=0){_Oa.globalAlpha=_ga;_Oa.fillStyle=_om(_6d(_Xd),_ga);_Oa.globalCompositeOperation='copy';_Oa.fillRect(_iD,_jD,_kD,_lD);}else {_Oa.clearRect(_iD,_jD,_kD,_lD);}_mD();};function make_color_rgb(_Jt,_Kt,_Lt){return(yyGetInt32(_Jt))|(yyGetInt32(_Kt)<<8)|(yyGetInt32(_Lt)<<16);
}var make_colour_rgb=make_color_rgb;function color_get_blue(_Xd){return(yyGetInt32(_Xd)>>16)&0xff;}var colour_get_blue=color_get_blue;function color_get_green(_Xd){return(yyGetInt32(_Xd)>>8)&0xff;}var colour_get_green=color_get_green;function color_get_red(_Xd){return(yyGetInt32(_Xd)&0xff);}var colour_get_red=color_get_red;function _nD(_Xd){_Xd=yyGetInt32(_Xd);var _oD=0.0;var _pD=0.0;var _qD=0.0;var _O7=0.0;var _P7=0.0;var _rD=0.0;var _Xo=0.0;var _e7=0.0;_oD=(_Xd&0xff)/255.0;_pD=((_Xd>>8)&0xff)/255.0;_qD=((_Xd>>16)&0xff)/255.0;
_e7=_r7(_r7(_oD,_pD),_qD);_rD=_q7(_q7(_oD,_pD),_qD);_Xo=_rD-_e7;if(_rD==0)_P7=0.0;else _P7=1.0*_Xo/_rD;if(_P7==0)_O7=0.0;else if(_oD==_rD)_O7=60.0*(_pD-_qD)/_Xo;else if(_pD==_rD)_O7=120.0+60.0*(_qD-_oD)/_Xo;else _O7=240.0+60.0*(_oD-_pD)/_Xo;if(_O7<0)_O7=_O7+360.0;var _H5=Math.min(255,Math.max(0,_rD*255.0));var __h=Math.min(255,Math.max(0,_P7*255.0));var h=Math.min(255,Math.max(0,(_O7*255.0)/360.0));var _6p={h:h,__h:__h,_H5:_H5};return _6p;}function color_get_hue(_Xd){var _sD=_nD(_Xd);return _sD.h;}var colour_get_hue=color_get_hue;
function color_get_saturation(_Xd){var _sD=_nD(_Xd);return _sD.__h;}var colour_get_saturation=color_get_saturation;function color_get_value(_Xd){var _sD=_nD(_Xd);return _sD._H5;}var colour_get_value=color_get_value;function merge_color(_rm,_sm,_yv){_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);_yv=yyGetReal(_yv);var _8A=(_rm>>16)&0xff;var _aA=(_rm>>8)&0xff;var _wh=_rm&0xff;var _9A=(_sm>>16)&0xff;var _bA=(_sm>>8)&0xff;var _xh=_sm&0xff;var _tD=1.0-_yv;var _Y4=~~(_8A*_tD+_9A*_yv);var _Z4=~~(_aA*_tD+_bA*_yv);var __4=~~(_wh*_tD+_xh*_yv);
return((_Y4<<16)&0xff0000)|((_Z4<<8)&0xff00)|(__4&0xff);}function merge_colour(){}compile_if_used(merge_colour=merge_color);function make_color_hsv(_uD,_vD,_Ol){var _oD=0.0;var _pD=0.0;var _qD=0.0;var _O7=0.0;var _P7=0.0;var _rD=0.0;var _nv=0.0;var _2z=0.0;var q=0.0;var _s7=0.0;var i=0;var _6p;_O7=yyGetReal(_uD)*360.0/255.0;if(_O7==360.0)_O7=0.0;_P7=yyGetReal(_vD)/255.0;_rD=yyGetReal(_Ol)/255.0;if(_P7==0){_oD=_rD;_pD=_rD;_qD=_rD;}else {_O7=_O7/60.0;i=Math.floor(_O7);_nv=_O7-i;_2z=_rD*(1.0-_P7);q=_rD*(1.0-(_P7*_nv));
_s7=_rD*(1.0-(_P7*(1.0-_nv)));switch(i){case 0:{_oD=_rD;_pD=_s7;_qD=_2z;}break;case 1:{_oD=q;_pD=_rD;_qD=_2z;}break;case 2:{_oD=_2z;_pD=_rD;_qD=_s7;}break;case 3:{_oD=_2z;_pD=q;_qD=_rD;}break;case 4:{_oD=_s7;_pD=_2z;_qD=_rD;}break;default :{_oD=_rD;_pD=_2z;_qD=q;}}}_oD=Math.max(0,Math.min(255,Math.floor((_oD*255.0)+0.5)));_pD=Math.max(0,Math.min(255,Math.floor((_pD*255.0)+0.5)));_qD=Math.max(0,Math.min(255,Math.floor((_qD*255.0)+0.5)));_6p=_oD|(_pD<<8)|(_qD<<16);return _6p;}function make_colour_hsv(){}compile_if_used(make_colour_hsv=make_color_hsv);
function draw_set_alpha(_ga){_ga=yyGetReal(_ga);_3d=_ga<0?0:(_ga>1?1:_ga);_wD=_om(_4d,_3d);}function draw_get_alpha(){return _3d;}function draw_get_color(){return _dz;}function draw_get_colour(){}compile_if_used(draw_get_colour=draw_get_color);function draw_set_color(_5d){_5d=yyGetInt32(_5d);_dz=_5d;_4d=_6d(_5d);_xD=_yD(_4d);_wD=_om(_4d,_3d);}var draw_set_colour=draw_set_color;function draw_set_lighting(_xr){_mp(_xr);};function draw_light_enable(_6a,_xr){_pp(_6a,_xr);};function draw_light_define_direction(_6a,
__b,_0c,_Lr,_55){_np(_6a,__b,_0c,_Lr,_55);};function draw_light_define_ambient(colour){_qp(colour);};function draw_light_define_point(_6a,x,y,z,_Y4,_55){_op(_6a,x,y,z,_Y4,_55);};function draw_light_get_ambient(){return _tp();}function draw_light_get(_6a){return _sp(yyGetInt32(_6a));};function draw_get_lighting(){return _up();}function draw_roundrect(_F7,_G7,_77,_87,_zD){draw_roundrect_color_ext(_F7,_G7,_77,_87,10,10,_dz,_dz,_zD);}function draw_roundrect_ext(_F7,_G7,_77,_87,_AD,_BD,_zD){draw_roundrect_color_ext(_F7,
_G7,_77,_87,_AD,_BD,_dz,_dz,_zD);}function draw_roundrect_color(_F7,_G7,_77,_87,_rm,_sm,_zD){draw_roundrect_color_ext(_F7,_G7,_77,_87,10,10,_rm,_sm,_zD);}var draw_roundrect_colour=draw_roundrect_color;function draw_roundrect_color_ext(){}function draw_roundrect_colour_ext(){}function _CD(_F7,_G7,_77,_87,_AD,_BD,_rm,_sm,_zD){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_AD=yyGetReal(_AD);_BD=yyGetReal(_BD);_rm=yyGetReal(_rm);_sm=yyGetReal(_sm);_zD=yyGetBool(_zD);if(_XC!=0.0){
_F7+=_XC;_G7+=_XC;_77+=_XC;_87+=_XC;}if(_87<_G7){var _DD=_G7;_G7=_87;_87=_DD;}if(_77<_F7){var _DD=_F7;_F7=_77;_77=_DD;}var width=_77-_F7;var height=_87-_G7;var _ED=_AD;var _FD=_BD;var _55=_Oa.globalAlpha=_3d;_Oa.beginPath();_Oa.moveTo(_F7+_ED,_G7);_Oa.lineTo(_F7+width-_ED,_G7);_Oa.quadraticCurveTo(_F7+width,_G7,_F7+width,_G7+_FD);_Oa.lineTo(_F7+width,_G7+height-_FD);_Oa.quadraticCurveTo(_F7+width,_G7+height,_F7+width-_ED,_G7+height);_Oa.lineTo(_F7+_ED,_G7+height);_Oa.quadraticCurveTo(_F7,_G7+height,_F7,
_G7+height-_FD);_Oa.lineTo(_F7,_G7+_FD);_Oa.quadraticCurveTo(_F7,_G7,_F7+_ED,_G7);_Oa.closePath();if(_zD){_Oa.strokeStyle=_om(_6d(_rm),1.0);_Oa.stroke();}else {_Oa.fillStyle=_om(_6d(_rm),1.0);_Oa.fill();}}draw_roundrect_color_ext=_CD;compile_if_used(draw_roundrect_colour_ext=_CD);function draw_rectangle(){}function _GD(_F7,_G7,_77,_87,_zD){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_zD=yyGetBool(_zD);_Oa.globalAlpha=_3d;if(_zD){if(_XC!=0.0){_F7+=_XC;_G7+=_XC;_77+=_XC;
_87+=_XC;}_Oa.lineWidth=1;_Oa.strokeStyle=_wD;_Oa._HD(_F7+0.5,_G7+0.5,(_77-_F7),(_87-_G7));}else {if(_XC!=0.0){_77+=_XC;_87+=_XC;}_Oa.fillStyle=_wD;_Oa._ID(_F7,_G7,_77-_F7+1,_87-_G7+1);}}draw_rectangle=_GD;function draw_rectangle_color(){}function draw_rectangle_colour(){}function _JD(_F7,_G7,_77,_87,_rm,_sm,_KD,_LD,_zD){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);_KD=yyGetInt32(_KD);_LD=yyGetInt32(_LD);_zD=yyGetBool(_zD);var _55=_om(_6d(_rm),
1.0);_Oa.globalAlpha=_3d;if(_zD){if(_XC!=0.0){_F7+=_XC;_G7+=_XC;_77+=_XC;_87+=_XC;}_Oa.lineWidth=1;_Oa.strokeStyle=_55;_Oa._HD(_F7+0.5,_G7+0.5,(_77-_F7),(_87-_G7));}else {if(_XC!=0.0){_77+=_XC;_87+=_XC;}_Oa.fillStyle=_55;_Oa._ID(_F7+0.5,_G7+0.5,(_77-_F7),(_87-_G7));}}draw_rectangle_color=_JD;compile_if_used(draw_rectangle_colour=_JD);function draw_point(){}draw_point=(_96,_a6)=>{_96=yyGetReal(_96);_a6=yyGetReal(_a6);if(_XC!=0.0){_96+=_XC;_a6+=_XC;}_Oa.globalAlpha=_3d;_Oa.fillStyle=_wD;_Oa._ID(_96,
_a6,1,1);};function draw_line_width(){}draw_line_width=(_F7,_G7,_77,_87,_Xi)=>{_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);if(_XC!=0.0){_F7+=_XC;_G7+=_XC;_77+=_XC;_87+=_XC;}_Oa.globalAlpha=_3d;_Oa.strokeStyle=_xD;_Oa.lineWidth=yyGetReal(_Xi);_Oa._MD();_Oa._ND(_F7+0.5,_G7+0.5);_Oa._OD(_77+0.5,_87+0.5);_Oa._PD();_Oa._QD();_Oa._ID(_77,_87,1,1);};function draw_line(_F7,_G7,_77,_87){draw_line_width(_F7,_G7,_77,_87,1);}function draw_getpixel(){}function draw_getpixel_ext(){
}function _RD(_96,_a6){var _SD=canvas.width/_TD;var _UD=canvas.height/_VD;var _55=_WD(canvas,yyGetReal(_96)*_SD,yyGetReal(_a6)*_UD);return _55;}compile_if_used(draw_getpixel=(_96,_a6)=>_RD(yyGetReal(_96),yyGetReal(_a6))&0x00ffffff);compile_if_used(draw_getpixel_ext=_RD);function draw_triangle(){}function _XD(_F7,_G7,_77,_87,_Ro,_So,_zD){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ro=yyGetReal(_Ro);_So=yyGetReal(_So);if(_XC!=0.0){_F7+=_XC;_G7+=_XC;_77+=_XC;_87+=_XC;_Ro+=_XC;
_So+=_XC;}_Oa.globalAlpha=_3d;_Oa.lineWidth=1;if(yyGetBool(_zD)){_Oa.strokeStyle=_wD;_Oa._MD();_Oa._ND(_F7,_G7);_Oa._OD(_77,_87);_Oa._OD(_Ro,_So);_Oa._OD(_F7,_G7);_Oa._QD();_Oa._PD();}else {_Oa.strokeStyle=_wD;_Oa.lineJoin="bevel";_Oa.fillStyle=_wD;_Oa._MD();_Oa._ND(_F7,_G7);_Oa._OD(_77,_87);_Oa._OD(_Ro,_So);_Oa._OD(_F7,_G7);_Oa._YD();_Oa._QD();_Oa._PD();_Oa.lineJoin="miter";}}draw_triangle=_XD;function draw_triangle_color(){}function draw_triangle_colour(){}function _ZD(_F7,_G7,_77,_87,_Ro,_So,_rm,
_sm,_KD,_zD){var __D=_yD(_6d(_rm)|0xff000000);_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);_KD=yyGetInt32(_KD);_zD=yyGetBool(_zD);if(_XC!=0.0){_F7+=_XC;_G7+=_XC;_77+=_XC;_87+=_XC;_Ro+=_XC;_So+=_XC;}_Oa.globalAlpha=_3d;_Oa.lineWidth=1;if(_zD){_Oa.strokeStyle=__D;_Oa._MD();_Oa._ND(_F7,_G7);_Oa._OD(_77,_87);_Oa._OD(_Ro,_So);_Oa._OD(_F7,_G7);_Oa._QD();_Oa._PD();}else {_Oa.strokeStyle=__D;_Oa.lineJoin="bevel";_Oa.fillStyle=__D;_Oa._MD();
_Oa._ND(_F7,_G7);_Oa._OD(_77,_87);_Oa._OD(_Ro,_So);_Oa._OD(_F7,_G7);_Oa._YD();_Oa._QD();_Oa._PD();_Oa.lineJoin="miter";}}compile_if_used(draw_triangle_color=_ZD);compile_if_used(draw_triangle_colour=_ZD);function _0E(_F7,_G7,_77,_87,_yv,_1E,_2E,_3E,_4E,_5E,_6E,_7E){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_yv=yyGetReal(_yv);_1E=yyGetInt32(_1E);_2E=yyGetInt32(_2E);_3E=yyGetInt32(_3E);_4E=yyGetInt32(_4E);_5E=yyGetInt32(_5E);_6E=yyGetBool(_6E);_7E=yyGetBool(_7E);var _8E;
var _9E;var _aE;var _bE;var _55;if(_6E){draw_rectangle_color(_F7,_G7,_77,_87,_1E,_1E,_1E,_1E,false);if(_7E){draw_rectangle_color(_F7,_G7,_77,_87,_cE,_cE,_cE,_cE,true);}}if(_yv<0){_yv=0;}if(_yv>100){_yv=100;}var _dE=_yv/100;switch(_5E){case 0:_8E=_F7;_aE=_G7;_9E=_F7+_dE*(_77-_F7);_bE=_87;break;case 1:_8E=_77-_dE*(_77-_F7);_aE=_G7;_9E=_77;_bE=_87;break;case 2:_8E=_F7;_aE=_G7;_9E=_77;_bE=_G7+_dE*(_87-_G7);break;case 3:_8E=_F7;_aE=_87-_dE*(_87-_G7);_9E=_77;_bE=_87;break;default :_8E=_F7;_aE=_G7;_9E=_F7+_dE*(_77-_F7);
_bE=_87;break;}if(_yv>50){_55=_7A(_3E,_4E,(_yv-50.0)/50.0);}else {_55=_7A(_2E,_3E,_yv/50.0);}draw_rectangle_color(_8E,_aE,_9E,_bE,_55,_55,_55,_55,false);if(_7E){draw_rectangle_color(_8E,_aE,_9E,_bE,_cE,_cE,_cE,_cE,true);}}function draw_healthbar(_F7,_G7,_77,_87,_yv,_1E,_2E,_4E,_5E,_6E,_7E){var _55=merge_color(_2E,_4E,0.5);_0E(_F7,_G7,_77,_87,_yv,_1E,_2E,_55,_4E,_5E,_6E,_7E);}function draw_set_circle_precision(_eE){_fE(yyGetInt32(_eE));}function _gE(){return _hE();}function draw_arrow(_f7,_g7,_h7,_i7,size){
_f7=yyGetReal(_f7);_g7=yyGetReal(_g7);_h7=yyGetReal(_h7);_i7=yyGetReal(_i7);size=yyGetReal(size);var _iE=Math.sqrt(((_h7-_f7)*(_h7-_f7))+((_i7-_g7)*(_i7-_g7)));if(_iE!=0){if(size>_iE){size=_iE;}var _w7=size*(_h7-_f7)/_iE;var _y7=size*(_i7-_g7)/_iE;draw_line(_f7,_g7,_h7,_i7);draw_triangle(_h7-_w7-_y7/3.0,_i7-_y7+_w7/3.0,_h7,_i7,_h7-_w7+_y7/3.0,_i7-_y7-_w7/3.0,false);}}function draw_ellipse(_F7,_G7,_77,_87,_zD){draw_ellipse_color(_F7,_G7,_77,_87,_dz,_dz,_zD);}function draw_ellipse_color(){}function draw_ellipse_colour(){
}function _jE(x,y,_f7,_g7,_rm,_sm,_kE){x=yyGetReal(x);y=yyGetReal(y);_f7=yyGetReal(_f7);_g7=yyGetReal(_g7);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);_kE=yyGetBool(_kE);if(_XC!=0.0){x+=_XC;y+=_XC;_f7+=_XC;_g7+=_XC;}var w=_f7-x;var h=_g7-y;var _lE=0.5522848;var _mE=(w/2)*_lE;var _nE=(h/2)*_lE;var _oE=x+w;var _pE=y+h;var _qE=x+w/2;var _rE=y+h/2;_Oa.beginPath();_Oa.moveTo(x,_rE);_Oa.bezierCurveTo(x,_rE-_nE,_qE-_mE,y,_qE,y);_Oa.bezierCurveTo(_qE+_mE,y,_oE,_rE-_nE,_oE,_rE);_Oa.bezierCurveTo(_oE,_rE+_nE,_qE+_mE,_pE,
_qE,_pE);_Oa.bezierCurveTo(_qE-_mE,_pE,x,_rE+_nE,x,_rE);_Oa.closePath();var __D=_om(_6d(_rm),1.0);var _sE=_om(_6d(_sm),1.0);if(w<=0)w*=-1;if(h<=0)h*=-1;var _tE=_Oa.createRadialGradient(_qE,_rE,0,_qE,_rE,min(w/2,h/2));_tE.addColorStop(0,__D);_tE.addColorStop(1,_sE);_Oa.globalAlpha=_3d;if(_kE){_Oa.lineWidth=1;_Oa.strokeStyle=_tE;_Oa.stroke();}else {_Oa.fillStyle=_tE;_Oa.fill();}}draw_ellipse_color=_jE;compile_if_used(draw_ellipse_colour=_jE);function draw_circle_color(){}function draw_circle_colour(){}function _uE(_96,
_a6,_lj,_rm,_sm,_zD){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_lj=yyGetReal(_lj);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);_zD=yyGetBool(_zD);if(_XC!=0.0){_96+=_XC;_a6+=_XC;}_Oa.globalAlpha=_3d;var __D=_om(_6d(_rm),1.0);var _sE=_om(_6d(_sm),1.0);var _tE=_Oa.createRadialGradient(_96,_a6,0,_96,_a6,_lj);_tE.addColorStop(0,__D);_tE.addColorStop(1,_sE);_Oa._MD();if(_zD){_Oa.lineWidth=1;_Oa.strokeStyle=_tE;_Oa._vE(_96,_a6,_lj,0,Math.PI*2,true);_Oa._QD();}else {_Oa.fillStyle=_tE;_Oa._vE(_96,_a6,_lj,0,Math.PI*2,
false);_Oa._YD();}_Oa._PD();}draw_circle_color=_uE;compile_if_used(draw_circle_colour=_uE);function draw_circle(_96,_a6,_lj,_zD){draw_circle_color(_96,_a6,_lj,_dz,_dz,_zD);}function draw_point_color(){};function draw_point_colour(){};function _wE(_96,_a6,_Xd){_96=yyGetReal(_96);_a6=yyGetReal(_a6);if(_XC!=0.0){_96+=_XC;_a6+=_XC;}var __D=_om(_6d(yyGetInt32(_Xd)),1.0);_Oa.globalAlpha=_3d;_Oa.fillStyle=__D;_Oa._ID(_96,_a6,1,1);}compile_if_used(draw_point_color=_wE);compile_if_used(draw_point_colour=_wE);
function draw_line_width_color(){}function draw_line_width_colour(){}function _xE(_F7,_G7,_77,_87,_Xi,_rm,_sm){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Xi=yyGetReal(_Xi);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);if(_XC!=0.0){_F7+=_XC;_G7+=_XC;_77+=_XC;_87+=_XC;}_Oa.globalAlpha=_3d;var __D=_om(_6d(_rm),1.0);var _sE=_om(_6d(_sm),1.0);var _tE=_Oa.createLinearGradient(_F7,_G7,_77,_87);_tE.addColorStop(0,__D);_tE.addColorStop(1,_sE);_Oa.strokeStyle=_tE;_Oa._MD();_Oa._ND(_F7+0.5,
_G7+0.5);_Oa._OD(_77+0.5,_87+0.5);_Oa.lineWidth=_Xi;_Oa._QD();_Oa._PD();}draw_line_width_color=_xE;compile_if_used(draw_line_width_colour=_xE);function draw_line_color(_F7,_G7,_77,_87,_rm,_sm){draw_line_width_color(_F7,_G7,_77,_87,1,_rm,_sm);}var draw_line_colour=draw_line_color;function draw_button(_F7,_G7,_77,_87,_yE){if(_XC!=0.0){_F7+=_XC;_G7+=_XC;_77+=_XC;_87+=_XC;}if(_yE){draw_line_width_color(_F7,_G7,_77,_G7,2,0xffffff,0xffffff);draw_line_width_color(_F7,_G7,_F7,_87,2,0xffffff,0xffffff);draw_line_width_color(_77,
_G7,_77,_87,2,0x404040,0x404040);draw_line_width_color(_77,_87,_F7,_87,2,0x404040,0x404040);}else {draw_line_width_color(_F7,_G7,_77,_G7,2,0x404040,0x404040);draw_line_width_color(_F7,_G7,_F7,_87,2,0x404040,0x404040);draw_line_width_color(_77,_G7,_77,_87,2,0xffffff,0xffffff);draw_line_width_color(_77,_87,_F7,_87,2,0xffffff,0xffffff);}draw_rectangle_color(_F7,_G7,_77,_87,_dz,_dz,_dz,_dz,false);}function _zE(_AE){switch(_AE){case 1:_BE(_su,_uu);break;case 2:_BE(_su,_vu);break;case 3:_BE(_wu,_vu);break;
default :_BE(_su,_tu);break;}}function _BE(src,_Ya){_Jc("Blend modes only available in WebGL mode.");}function draw_texture_flush(){if(_09==null)return;_CE();}function draw_enable_drawevent(_DE){_EE=yyGetBool(_DE);}function skeleton_animation_set(_Z7,_w4,_x4=true){var _FE=_Z7._P9();if(_FE){_FE._54(yyGetString(_w4),_x4);_Z7.image_index=0;_Z7._GE=0;_FE._r4(0,0);}}function skeleton_animation_mix(_Z7,_HE,_IE,_L4){var _FE=_Z7._P9();if(_FE){_FE._I4(yyGetString(_HE),yyGetString(_IE),yyGetReal(_L4));}}function skeleton_animation_set_ext(_Z7,
_q8,_a4,_x4=true){var _FE=_Z7._P9();if(_FE){_a4=yyGetInt32(_a4);_FE._y4(yyGetString(_q8),_a4,_x4);if(_a4==0){_Z7.image_index=0;_Z7._GE=0;_FE._r4(0,0);}}}function skeleton_animation_get_ext(_Z7,_a4){var _FE=_Z7._P9();if(_FE){return _FE._j8(yyGetInt32(_a4));}return "";}function skeleton_attachment_set(_Z7,_JE,_KE){_JE=yyGetString(_JE);var _FE=_Z7._P9();if(_FE){if(typeof(_KE)=="string"){_FE._N4(_JE,_KE);}else {_KE=yyGetInt32(_KE);if(sprite_exists(_KE)){var _Px=_m6._n6(_KE);if(_FE._75(_JE,_Px.pName)===undefined){
_FE._a5(_Px.pName,_Px,0,_Px.xOrigin,_Px.yOrigin,1,1,0,undefined,0xffffffff,1.0,false);}_FE._N4(_JE,_Px.pName);}else {_FE._N4(_JE,-1);}}}}function skeleton_attachment_get(_Z7,_JE){var _FE=_Z7._P9();if(_FE){return _FE._A8(yyGetString(_JE));}return "";}function skeleton_attachment_create(_Z7,_w4,_94,_c5,_d5,_e5,_f5,_g5,_h5){var _FE=_Z7._P9();if(_FE){_c5=yyGetInt32(_c5);if(sprite_exists(_94)&&(_c5>=0)){var _Px=_m6._n6(_94);if((_Px._LE!=undefined)||(_Px._ME!=undefined)){console.log("ERROR: Sprite '"+_Px.pName+"' is not valid for use as an attachment (must be a bitmap)\n");
return -1.0;}_FE._a5(yyGetString(_w4),_Px,_c5,yyGetReal(_d5),yyGetReal(_e5),yyGetReal(_f5),yyGetReal(_g5),yyGetReal(_h5),undefined,undefined,undefined,false);return 1.0;}}return -1.0;}function skeleton_attachment_create_colour(_Z7,_w4,_94,_c5,_d5,_e5,_f5,_g5,_h5,_Xd,_ga){var _FE=_Z7._P9();if(_FE){_c5=yyGetInt32(_c5);if(sprite_exists(_94)&&(_c5>=0)){var _Px=_m6._n6(_94);if((_Px._LE!=undefined)||(_Px._ME!=undefined)){console.log("ERROR: Sprite '"+_Px.pName+"' is not valid for use as an attachment (must be a bitmap)\n");
return -1.0;}_FE._a5(yyGetString(_w4),_Px,_c5,yyGetReal(_d5),yyGetReal(_e5),yyGetReal(_f5),yyGetReal(_g5),yyGetReal(_h5),undefined,yyGetInt32(_Xd),yyGetReal(_ga),false);return 1.0;}}return -1.0;}function skeleton_attachment_create_color(_Z7,_w4,_94,_c5,_d5,_e5,_f5,_g5,_h5,_Xd,_ga){skeleton_attachment_create_colour(_Z7,_w4,_94,_c5,_d5,_e5,_f5,_g5,_h5,_Xd,_ga);}function skeleton_attachment_replace(_Z7,_w4,_94,_c5,_d5,_e5,_f5,_g5,_h5){var _FE=_Z7._P9();if(_FE){_c5=yyGetInt32(_c5);if(sprite_exists(_94)&&(_c5>=0)){
var _Px=_m6._n6(_94);if((_Px._LE!=undefined)||(_Px._ME!=undefined)){console.log("ERROR: Sprite '"+_Px.pName+"' is not valid for use as an attachment (must be a bitmap)\n");return -1.0;}_FE._a5(yyGetString(_w4),_Px,_c5,yyGetReal(_d5),yyGetReal(_e5),yyGetReal(_f5),yyGetReal(_g5),yyGetReal(_h5),undefined,undefined,undefined,true);return 1.0;}}return -1.0;}function skeleton_attachment_replace_colour(_Z7,_w4,_94,_c5,_d5,_e5,_f5,_g5,_h5,_Xd,_ga){var _FE=_Z7._P9();if(_FE){_c5=yyGetInt32(_c5);if(sprite_exists(_94)&&(_c5>=0)){
var _Px=_m6._n6(_94);if((_Px._LE!=undefined)||(_Px._ME!=undefined)){console.log("ERROR: Sprite '"+_Px.pName+"' is not valid for use as an attachment (must be a bitmap)\n");return -1.0;}_FE._a5(yyGetString(_w4),_Px,_c5,yyGetReal(_d5),yyGetReal(_e5),yyGetReal(_f5),yyGetReal(_g5),yyGetReal(_h5),undefined,yyGetInt32(_Xd),yyGetReal(_ga),true);return 1.0;}}return -1.0;}function skeleton_attachment_destroy(_Z7,_w4){var name=yyGetString(_w4);var _FE=_Z7._P9();if(_FE){var _NE=_FE._46(name);if(!_NE){console.log("skeleton_attachment_destroy: Attempted to destroy non-existant attachment '"+name+"'");
}}}function skeleton_attachment_exists(_Z7,_w4){var name=yyGetString(_w4);var _FE=_Z7._P9();if(_FE){var _NE=(_FE._75(null,name,true)!==undefined);return _NE;}}function skeleton_attachment_replace_color(_Z7,_w4,_94,_c5,_d5,_e5,_f5,_g5,_h5,_Xd,_ga){skeleton_attachment_replace_colour(_Z7,_w4,_94,_c5,_d5,_e5,_f5,_g5,_h5,_Xd,_ga);}function skeleton_slot_colour_set(_Z7,_JE,_Xd,_ga){var _FE=_Z7._P9();if(_FE){_JE=yyGetString(_JE);_FE._W4(_JE,yyGetInt32(_Xd));_FE._25(_JE,yyGetReal(_ga));}}function skeleton_slot_color_set(_Z7,
_JE,_Xd,_ga){skeleton_slot_colour_set(_Z7,_JE,_Xd,_ga);}function skeleton_slot_colour_get(_Z7,_JE){var _FE=_Z7._P9();if(_FE){return _FE._45(yyGetString(_JE));}return 0xffffffff;}function skeleton_slot_color_get(_Z7,_JE){return skeleton_slot_colour_get(_Z7,_JE);}function skeleton_slot_alpha_get(_Z7,_JE){var _FE=_Z7._P9();if(_FE){return _FE._65(yyGetString(_JE));}return 1.0;}function skeleton_skin_set(_Z7,_w4){var _FE=_Z7._P9();if(_FE){if(_w4.__type=="[SkeletonSkin]"){_FE._64(_w4);}else {_FE._64(yyGetString(_w4));
}}}function skeleton_skin_get(_Z7){var _FE=_Z7._P9();if(_FE){return _FE._a8();}return "";}function skeleton_skin_create(_Z7,_w4,_OE){var name=yyGetString(_w4);if(!Array.isArray(_OE)){_q5("skeleton_skin_create argument 2 incorrect type (expecting an Array)");}var _PE=[];for(var i=0;i<_OE.length;++i){_PE.push(yyGetString(_OE[i]));}var _FE=_Z7._P9();if(_FE){var _d8=_FE._b8(name,_PE);return _d8;}}function skeleton_animation_get(_Z7){return skeleton_animation_get_ext(_Z7,0);}function skeleton_animation_get_duration(_Z7,
_I9){var _FE=_Z7._P9();if(_FE){return _FE._p8(yyGetString(_I9));}return 0.0;}function skeleton_animation_get_frames(_Z7,_I9){var _FE=_Z7._P9();if(_FE){return _FE._r8(yyGetString(_I9));}return 0.0;}function skeleton_animation_get_frame(_Z7,_a4){var _FE=_Z7._P9();if(_FE){return _FE._o4(yyGetInt32(_a4));}return 0;}function skeleton_animation_set_frame(_Z7,_a4,_s4){var _FE=_Z7._P9();if(_FE){_FE._r4(yyGetInt32(_a4),yyGetInt32(_s4));}}function skeleton_animation_get_position(_Z7,_a4){var _v4=yyGetInt32(_a4);var _FE=_Z7._P9();
if(_FE){var _QE=_FE._84(undefined,_v4);var _RE=_FE._o4(_v4);if(_QE!=0){var _SE=_RE/_QE;if(_SE<0.0)_SE=0.0;if(_SE>1.0)_SE=1.0;return _SE;}}return -1;}function skeleton_animation_set_position(_Z7,_a4,_TE){var _v4=yyGetInt32(_a4);var _SE=yyGetReal(_TE);if(_SE>=1.0||_SE<=1.0){_SE-=Math.floor(_SE/1.0);}if(_SE<0.0){_SE=1.0+_SE;}var _FE=_Z7._P9();if(_FE){var _QE=_FE._84(undefined,_v4);if(_QE!=0){var _UE=Math.floor(_SE*_QE);if(_UE<0)_UE=0;if(_UE>=_QE)_UE=_QE-1;_FE._r4(_v4,_UE);}}}function skeleton_animation_get_event_frames(_Z7,
_q8,_Y3){var frames=[];var _FE=_Z7._P9();if(_FE){var _VE=_FE._s8(_q8,_Y3);if(_VE==null){frames.push(-1);}else {frames=_VE;}}else {frames.push(-1);}return frames;}function skeleton_animation_clear(_Z7,_a4,_l8,_m8){if(_l8===undefined){_l8=false;}else {_l8=yyGetBool(_l8);}if(_m8===undefined){_m8=0.0;}else {_m8=yyGetReal(_m8);}var _FE=_Z7._P9();if(_FE){_FE._k8(yyGetInt32(_a4),_l8,_m8);}}function skeleton_animation_is_looping(_Z7,_a4){var _FE=_Z7._P9();if(_FE){return _FE._t4(yyGetInt32(_a4));}return false;}function skeleton_animation_is_finished(_Z7,
_a4){var _FE=_Z7._P9();if(_FE){return _FE._u4(yyGetInt32(_a4));}return false;}function skeleton_collision_draw_set(_Z7,_k4){var _FE=_Z7._P9();if(_FE){_FE._76(yyGetReal(_k4)>0.5?true:false);}}function skeleton_bone_data_get(_Z7,_S7,_T7){var _FE=_Z7._P9();if(_FE){_FE._R7(yyGetString(_S7),yyGetInt32(_T7));}}function skeleton_bone_data_set(_Z7,_S7,_T7){var _FE=_Z7._P9();if(_FE){_FE._X7(yyGetString(_S7),yyGetInt32(_T7));}}function skeleton_bone_state_get(_Z7,_S7,_T7){var _FE=_Z7._P9();if(_FE){_FE._Y7(_Z7,yyGetString(_S7),
yyGetInt32(_T7));}}function skeleton_bone_state_set(_Z7,_S7,_T7){var _FE=_Z7._P9();if(_FE){_FE._78(_Z7,yyGetString(_S7),yyGetInt32(_T7));}}function draw_skeleton(_94,_WE,_XE,_YE,_96,_a6,_Qm,_Rm,_h5,_5d,_ga){var _Px=_m6._n6(yyGetInt32(_94));if(_Px!=null&&_Px!=undefined){if(_Px._ME){_Px._ME._H9(yyGetString(_WE),yyGetString(_XE),yyGetInt32(_YE),yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),yyGetReal(_h5),yyGetInt32(_5d),yyGetReal(_ga));}}}function draw_skeleton_time(_94,_WE,_XE,_T6,_96,_a6,
_Qm,_Rm,_h5,_5d,_ga){var _Px=_m6._n6(yyGetInt32(_94));if(_Px!=null&&_Px!=undefined){if(_Px._ME){_Px._ME._N9(yyGetString(_WE),yyGetString(_XE),yyGetReal(_T6),yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),yyGetReal(_h5),yyGetInt32(_5d),yyGetReal(_ga));}}}function draw_skeleton_instance(_S8,_WE,_XE,_YE,_96,_a6,_Qm,_Rm,_h5,_5d,_ga){var _9o=_Fx._n6(_S8);var _FE=_9o._P9();if(_FE){var _Px=_m6._n6(_9o.sprite_index);_Px._ME._H9(yyGetString(_WE),yyGetString(_XE),yyGetInt32(_YE),yyGetReal(_96),yyGetReal(_a6),
yyGetReal(_Qm),yyGetReal(_Rm),yyGetReal(_h5),yyGetInt32(_5d),yyGetReal(_ga));}}function draw_skeleton_collision(_94,_WE,_YE,_96,_a6,_Qm,_Rm,_h5,_5d){var _Px=_m6._n6(yyGetInt32(_94));if(_Px!=null&&_Px!=undefined){if(_Px._ME){_Px._ME._5a(yyGetString(_WE),yyGetInt32(_YE),yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),yyGetReal(_h5),yyGetInt32(_5d),_Px);}}}function draw_enable_skeleton_blendmodes(_xr){_F8=yyGetBool(_xr);}function draw_get_enable_skeleton_blendmodes(){return _F8;}function skeleton_animation_list(_94,
_C8){var _Px=_m6._n6(yyGetInt32(_94));if(_Px!=null&&_Px!=undefined){if(_Px._ME){_Px._ME._kc(yyGetInt32(_C8));}}};function skeleton_skin_list(_94,_C8){var _Px=_m6._n6(yyGetInt32(_94));if(_Px!=null&&_Px!=undefined){if(_Px._ME){_Px._ME._lc(yyGetInt32(_C8));}}};function skeleton_bone_list(_94,_C8){var _Px=_m6._n6(yyGetInt32(_94));if(_Px!=null&&_Px!=undefined){if(_Px._ME){_Px._ME._mc(yyGetInt32(_C8));}}};function skeleton_slot_list(_94,_C8){var _Px=_m6._n6(yyGetInt32(_94));if(_Px!=null&&_Px!=undefined){if(_Px._ME){
_Px._ME._nc(yyGetInt32(_C8));}}};function skeleton_slot_data(_94,_C8){var _Px=_m6._n6(yyGetInt32(_94));if(_Px!=null&&_Px!=undefined){if(_Px._ME){_Px._ME._B8(yyGetInt32(_C8));return 1;}}return -1;};function skeleton_slot_data_instance(_Z7,_C8){var _FE=_Z7._P9();if(_FE){_FE._B8(yyGetInt32(_C8));return 1;}return -1;};function _ZE(_Z7,_a4){var _FE=_Z7._P9();if(_FE){return _FE._o4(_a4);}return 0.0;};function skeleton_get_minmax(_Z7){var _FE=_Z7._P9();if(_FE){var rect=new _yx(0,0,0,0);if(_FE._Z6(rect)){var _37=[];_37.push(rect.left,
rect.top,rect.right,rect.bottom);return _37;}}var _37=[];_37.push(0.0,0.0,0.0,0.0);return _37;};function skeleton_get_num_bounds(_Z7){var _FE=_Z7._P9();if(_FE){return _FE.__6();}return 0.0;};function skeleton_get_bounds(_Z7,_s4){var _FE=_Z7._P9();if(_FE){return _FE._07(yyGetInt32(_s4));}var _37=[];_37.push(0,"");return _37;};function skeleton_find_slot(_Z7,_96,_a6,_C8){var _FE=_Z7._P9();if(_FE){var _Px=_m6._n6(_Z7.sprite_index);if(_Px!=null&&_Px!=undefined){if(_Px._ME){_Px.__E(_Z7,yyGetReal(_96),yyGetReal(_a6),
yyGetInt32(_C8));}}}}function draw_enable_swf_aa(_0F){_1F=yyGetBool(_0F);};function draw_set_swf_aa_level(_2F){_3F=yyGetReal(_2F);};function draw_get_swf_aa_level(){return _3F;};function _4F(xview,yview,wview,hview,angle){if(Math.abs(angle)<0.001){_5F.left=xview;_5F.top=yview;_5F.right=xview+wview;_5F.bottom=yview+hview;}else {var _2p=angle*(Math.PI/180.0);var __h=Math.abs(sin(_2p));var c=Math.abs(cos(_2p));var _Oj=(c*wview)+(__h*hview);var _6F=(__h*wview)+(c*hview);_5F.left=(xview+(wview-_Oj)/2);_5F.right=(xview+(wview+_Oj)/2);
_5F.top=(yview+(hview-_6F)/2);_5F.bottom=(yview+(hview+_6F)/2);}};function _hs(_7F,_8F,_9F,_aF){var _bF=(_8F._e7[11]==0);if(_bF){if(_9F===undefined){_9F=new _qr();_9F._cF(_7F);}if(_aF===undefined){var _dF=new _qr();_dF.Multiply(_7F,_8F);_aF=new _qr();_aF._cF(_dF);}var _eF=new _Er();_eF._Qr=_9F._e7[_Qs];_eF._Rr=_9F._e7[_Ts];_eF._Sr=_9F._e7[_Ys];var _fF,_gF,_hF,_iF;_fF=_aF._jF(new _Er(-1.0,0.0,0.0));_gF=_aF._jF(new _Er(1.0,0.0,0.0));_hF=_aF._jF(new _Er(0.0,1.0,0.0));_iF=_aF._jF(new _Er(0.0,-1.0,0.0));var _kF=_gF._lF(_fF);
var _mF=_hF._lF(_iF);_nF=_kF.Length();_oF=_mF.Length();_pF=_eF._Qr-(_nF*0.5);_qF=_eF._Rr-(_oF*0.5);var _rF=_mF;_rF._Nr();var angle=Math.acos(_rF._Rr);if(_rF._Qr<0.0){angle=(2.0*Math.PI)-angle;}var _sF=(angle/(2.0*Math.PI))*360.0;_4F(_pF,_qF,_nF,_oF,_sF);}else {_pF=0;_qF=0;_nF=_c4!=null?_c4._tF():1;_oF=_c4!=null?_c4._uF():1;_4F(_pF,_qF,_nF,_oF,0);}}function _vF(){if(_wF){var _xF=new _qr();_xF.Multiply(_6s[_9s],_6s[_ds]);_yF._zF(_xF);_wF=false;}return _yF;}function _AF(){_BF=true;};function _CF(){if(_BF){var _DF=new _qr();
_DF._cF(_6s[_EF]);var _Hb=[];var _Ib=[];_Hb[0]=_5F.left;_Hb[1]=_5F.right;_Hb[2]=_5F.right;_Hb[3]=_5F.left;_Ib[0]=_5F.top;_Ib[1]=_5F.top;_Ib[2]=_5F.bottom;_Ib[3]=_5F.bottom;_FF.left=Number.MAX_SAFE_INTEGER;_FF.top=Number.MAX_SAFE_INTEGER;_FF.right=Number.MIN_SAFE_INTEGER;_FF.bottom=Number.MIN_SAFE_INTEGER;for(var i=0;i<4;i++){var _GF=((_Hb[i]*_DF._e7[0])+(_Ib[i]*_DF._e7[4])+_DF._e7[12]);var _HF=((_Hb[i]*_DF._e7[1])+(_Ib[i]*_DF._e7[5])+_DF._e7[13]);_FF.left=_r7(_FF.left,_GF);_FF.top=_r7(_FF.top,_HF);_FF.right=_q7(_FF.right,
_GF);_FF.bottom=_q7(_FF.bottom,_HF);}_BF=false;}};function view_get_camera(_Dr){return g_pBuiltIn.view_camera[yyGetInt32(_Dr)];};function view_get_visible(_Dr){return g_pBuiltIn.view_visible[yyGetInt32(_Dr)];};function view_get_xport(_Dr){return g_pBuiltIn.view_xport[yyGetInt32(_Dr)];};function view_get_yport(_Dr){return g_pBuiltIn.view_yport[yyGetInt32(_Dr)];};function view_get_wport(_Dr){return g_pBuiltIn.view_wport[yyGetInt32(_Dr)];};function view_get_hport(_Dr){return g_pBuiltIn.view_hport[yyGetInt32(_Dr)];
};function view_get_surface_id(_Dr){return g_pBuiltIn.view_surface_id[yyGetInt32(_Dr)];};function view_set_camera(_Dr,_IF){g_pBuiltIn.view_camera[yyGetInt32(_Dr)]=yyGetInt32(_IF);};function view_set_visible(_Dr,visible){g_pBuiltIn.view_visible[yyGetInt32(_Dr)]=yyGetInt32(visible);};function view_set_xport(_Dr,xport){g_pBuiltIn.view_xport[yyGetInt32(_Dr)]=yyGetInt32(xport);};function view_set_yport(_Dr,yport){g_pBuiltIn.view_yport[yyGetInt32(_Dr)]=yyGetInt32(yport);};function view_set_wport(_Dr,wport){g_pBuiltIn.view_wport[yyGetInt32(_Dr)]=yyGetInt32(wport);
};function view_set_hport(_Dr,hport){g_pBuiltIn.view_hport[yyGetInt32(_Dr)]=yyGetInt32(hport);};function view_set_surface_id(_Dr,_JF){g_pBuiltIn.view_surface_id[yyGetInt32(_Dr)]=yyGetInt32(_JF);};function _KF(){return 0;};function _LF(){return 0;};function _MF(){};function display_set_windows_alternate_sync(){};function display_set_ui_visibility(){};function display_set_sleep_margin(){}function display_get_sleep_margin(){return 0;}function _NF(_OF,_PF){if((_OF.status<200)||(_OF.status>=300)){_PF._Yf=_QF;}else {
_PF._Yf=_RF;}try{_PF._SF=_OF.responseText;}catch(e){_PF._SF="";}}function _TF(_OF,_UF){if(_OF.readyState!=4)return;var _Tf=_ax(_OF);if(_Tf){_Tf._VF=_OF.status;_Tf._Zf=true;_Tf._WF=ds_map_create();var _XF=_OF.getAllResponseHeaders().split("\r\n");for(var _c7 in _XF){if(!_XF.hasOwnProperty(_c7))continue;var _YF=_XF[_c7].split(": ");if(_YF.length==2){ds_map_add(_Tf._WF,_YF[0],_YF[1]);}}if(_UF){_UF(_OF,_Tf);}}}function _ZF(__F){var _0G={};_Uf._Vf(_1G,__F,_2G,_0G);setTimeout(function(){var _Tf=_ax(_0G);if(_Tf){
_Tf._VF=404;_Tf._Zf=true;_Tf._Yf=_QF;_Tf._SF="";}},500);return _1G++;}function _3G(_wd,__F,_4G,_xn,_UF,_5G){try{var _6G=_7G(__F,_4G);_Uf._Vf(_1G,__F,_2G,_6G._8G);if(_5G!==undefined){_6G._8G.responseType=_5G;}if(_6G._9G){_aG(_wd,__F,_4G,_xn,_6G._8G,_6G._bG,_UF);}else {_cG(_wd,__F,_4G,_xn,_6G._8G,_UF);}}catch(e){return _ZF(__F);}return _1G++;}function _7G(__F,_4G){var _6G={_8G:null,_bG:true,_9G:false};if((__F.substring(0,7)!="http://")&&(__F.substring(0,8)!="https://")){_6G._bG=false;}else {var _dG="";if(__F.substring(0,
7)=="http://"){_dG=__F.substring(7);}if(__F.substring(0,8)=="https://"){_dG=__F.substring(8);}if(_dG.substring(0,document.domain.length)==document.domain){_6G._bG=false;}}if((_6G._bG)&&(window.XDomainRequest)){_6G._8G=new XDomainRequest();_6G._bG=true;_6G._9G=true;}else {if(window.XMLHttpRequest){_6G._8G=new XMLHttpRequest();_6G._bG=false;_6G._9G=(_eG==_fG)&&(_gG._hG<=9.0);}else if(window.ActiveXObject){if(new ActiveXObject("Microsoft.XMLHTTP")){_6G._8G=new ActiveXObject("Microsoft.XMLHTTP");}else {_6G._8G=new ActiveXObject("Msxml2.XMLHTTP");
}}if(_iG==="use-credentials"){_6G._8G._jG=true;}}return _6G;}function _cG(_wd,__F,_4G,_xn,_OF,_UF){try{_OF.open(_wd,__F,true);if(_4G!==null){for(var _YF in _4G){if(!_4G.hasOwnProperty(_YF))continue;try{_OF.setRequestHeader(_4G[_YF].key,_4G[_YF].value);}catch(e){debug("Unable to set request header "+_4G[_YF].key+":"+_4G[_YF].value+" "+e.message);}}}else if(_wd=="POST"){_OF.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}_OF.onreadystatechange=function(){_TF(_OF,_UF);};_OF.send(_xn);
}catch(e){debug(e.message);}}function _aG(_wd,__F,_4G,_xn,_OF,_kG,_UF){_OF.open(_wd,__F);_OF.ontimeout=function(_Y3){_lG(_Y3,_OF);};_OF.onerror=function(_Y3){_lG(_Y3,_OF);};if(_kG){_OF.onload=function(_Y3){_mG(_Y3,_OF,200);};}else {_OF.onload=function(_Y3){};_OF.onreadystatechange=function(){if(_OF.readyState==4){_mG(null,_OF,_OF.status);}};}if(_4G!==null){for(var _YF in _4G){if(!_4G.hasOwnProperty(_YF))continue;try{_OF.setRequestHeader(_4G[_YF].key,_4G[_YF].value);}catch(e){debug("Unable to set request header "+_4G[_YF].key+":"+_4G[_YF].value+" "+e.message);
}}}_OF._nG=function(){};_OF.send(_xn);}function _mG(_Y3,_OF,_oG){var _Tf=_ax(_OF);if(_Tf){_Tf._Zf=true;if((_oG>=200)&&(_oG<300)){_Tf._Yf=_RF;_Tf._VF=_oG;}else {_Tf._Yf=_QF;_Tf._VF=404;}_Tf._SF=_OF.responseText;_Tf._WF=-1;}}function _lG(_Y3,_OF){var _Tf=_ax(_OF);if(_Tf){_Tf._Zf=true;_Tf._Yf=_QF;_Tf._SF="";_Tf._VF=404;_Tf._WF=-1;}}function http_get(__F){return _3G("GET",yyGetString(__F),null,"",_NF);}function http_get_file(__F,_pG){_pG=yyGetString(_pG);var _qG=function(_OF,_PF){if(_OF.response){try{var _rG=String.fromCharCode.apply(null,
new Uint8Array(_OF.response));_5l(_pG,_rG);_PF._Yf=_RF;_PF._SF=_pG;}catch(e){debug(e.message);_PF._Yf=_QF;}}else {_PF._Yf=_QF;}};return _3G("GET",yyGetString(__F),null,"",_qG,'arraybuffer');}function http_post_string(__F,_yy){if(!_yy){_yy="";}else {_yy=yyGetString(_yy);}return _3G('POST',yyGetString(__F),null,_yy,_NF);}function http_request(__F,_Vz,_sG,_tG){__F=yyGetString(__F);_Vz=yyGetString(_Vz);_sG=yyGetInt32(_sG);var _uG=[];var _V7=_W7._n6(_sG);if(_V7!==null){for(const [key,_Yk] of _V7){var _H5=key;if(_V7._Sk&&_V7._Sk.has(key))_H5=_V7._Sk.get(key);
_uG.push({key:_H5,value:_Yk});}}if(typeof(_tG)==='number'){return _vG(__F,_Vz,_uG,_tG);}else {if(!_tG){_tG="";}return _3G(_Vz,__F,_uG,_tG,_NF);}}function _vG(__F,_Vz,_4G,_tG){var _ob=_wG._n6(_tG);if(!_ob){return _ZF(__F);}else if(_ob._xG!=0){var _yG=new Uint8Array(_ob._zG,0,_ob._xG);return _3G(_Vz,__F,_4G,_yG,_NF);}else {var _AG=function(_OF,_PF){_PF._SF=_ob._xG;if(_OF.response){_PF._Yf=_RF;var _in=new Uint8Array(_OF.response);for(var i=0,_Ai=_in.length;i<_Ai;++i){_ob._BG(_CG,_in[i]);}_PF._SF=_in.length;}else {
_PF._Yf=_QF;}};return _3G(_Vz,__F,_4G,_tG,_AG,'arraybuffer');}};function http_set_request_crossorigin(_DG){_iG=yyGetString(_DG);}function http_get_request_crossorigin(){return _iG;}function http_set_connect_timeout(_EG){_FG=yyGetInt32(_EG);if(_FG<=0){_FG=1;}}function http_get_connect_timeout(){return _FG;}var _GG=null;function ini_open_from_string(_HG){if(_GG){ini_close();}_GG=_IG(yyGetString(_HG));}function ini_open(_JG){_JG=yyGetString(_JG);if(_GG){ini_close();}var _KG=null;if(_9y){_KG=_LG(_JG,true);}if(_KG==null){
_KG=_LG(_JG,false);}if(_KG==null){_KG=new _MG(_JG);}_GG=_KG;}function ini_close(){if(!_GG)return;var _Yz=_GG._NG();_GG=null;return _Yz;}function ini_read_string(_OG,_Tk,_PG){if(!_GG)_q5("ini_read_string : Trying to read from undefined INI file");return _GG._QG(yyGetString(_OG),yyGetString(_Tk),yyGetString(_PG));}function ini_read_real(_OG,_Tk,_PG){if(!_GG)_q5("ini_read_real : Trying to read from undefined INI file");return _GG._RG(yyGetString(_OG),yyGetString(_Tk),yyGetString(_PG));}function ini_write_string(_OG,
_Tk,_Ol){if(!_GG)_q5("ini_write_string : Trying to write to undefined INI file");_GG._SG(yyGetString(_OG),yyGetString(_Tk),yyGetString(_Ol));return true;}function ini_write_real(_OG,_Tk,_Ol){if(!_GG)_q5("ini_write_real : Trying to write to undefined INI file");_GG._SG(yyGetString(_OG),yyGetString(_Tk),""+yyGetReal(_Ol));return true;}function ini_key_exists(_OG,_Tk){if(!_GG)_q5("ini_key_exists : Trying to read from undefined INI file");var _TG=_GG._UG(yyGetString(_OG),yyGetString(_Tk));if(_TG!=null&&_TG!=undefined)return true;
return false;}function ini_section_exists(_OG){if(!_GG)_q5("ini_section_exists : Trying to read from undefined INI file");var _VG=_GG._WG[yyGetString(_OG)];if(_VG!=null&&_VG!=undefined)return true;return false;}function ini_key_delete(_OG,_Tk){if(!_GG)_q5("ini_key_delete : Trying to write to undefined INI file");return _GG._XG(yyGetString(_OG),yyGetString(_Tk));}function ini_section_delete(_OG){if(!_GG)_q5("ini_section_delete : Trying to write to undefined INI file");return _GG._YG(yyGetString(_OG));}function instance_find(_ck,
_ZG){_ZG=yyGetInt32(_ZG);var __G=GetWithArray(yyGetInt32(_ck));if(__G==null)return _Sn;if(_ZG>=__G.length)return _Sn;var _Hx=__G[_ZG];if((_Hx.active)&&(!_Hx.marked))return _Wn(_Xn,_Hx.id);return _Sn;}function instance_id_get(_Z7,_s4){return _c4._0H._n6(yyGetInt32(_s4)).id;}function instance_exists(_ck){var _By=GetWithArray(yyGetInt32(_ck));if(_By!=null&&_By.length>0){for(var _Hx=0;_Hx<_By.length;_Hx++){var _9o=_By[_Hx];if(!_9o.marked&&_9o.active)return true;}}return false;}function instance_number(_ck){var __G=GetWithArray(yyGetInt32(_ck));
if(__G==null)return 0;var _c9=0;for(var i=0;i<__G.length;i++){if((__G[i].active)&&(!__G[i].marked))_c9++;}return _c9;}function instance_position(_96,_a6,_ck){_96=yyGetReal(_96);_a6=yyGetReal(_a6);if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){if(_1o(_96,_a6,_ck,null,true)){return _ck;}}else {var id=_1H(_96,_a6,_ck,null);if(id!=_Sn)return id;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){if(_1o(_96,_a6,_2o,null,true)){return _2o;}}else {var id=_1H(_96,
_a6,_2o,null);if(id!=_Sn)return id;}}}else {var id=_1H(_96,_a6,_ck,null);if(id!=_Sn)return id;}return _Sn;}function instance_position_list(_96,_a6,_ck,_C8,_io){_96=yyGetReal(_96);_a6=yyGetReal(_a6);var _ik=_gk._n6(yyGetInt32(_C8));if(!_ik){_q5("Error: invalid ds_list ID (instance_position_list)");return 0;}var _jo=false;var _ko=[];if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){_1o(_96,_a6,_ck,_ko,true);_jo=true;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){
_1o(_96,_a6,_2o,_ko,true);}else {_1H(_96,_a6,_2o,_ko);}}_jo=true;}if(!_jo)_1H(_96,_a6,_ck,_ko);var _c9=_ko.length;_3o(_ko,_ik,_96,_a6,_io);return _c9;}function instance_nearest(_Z7,_96,_a6,_ck){_96=yyGetReal(_96);_a6=yyGetReal(_a6);var _ho=10000000000;var i=_Sn;var _2H=_3H(null,yyGetInt32(_ck),false,_Sn,_96,_a6,function(_Tn){var _w7=_96-_Tn.x;var _y7=_a6-_Tn.y;var _Xo=Math.sqrt(_w7*_w7+_y7*_y7);if(_Xo<_ho){i=_Wn(_Xn,_Tn.id);_ho=_Xo;}});return i;}function instance_furthest(_Z7,_96,_a6,_ck){_96=yyGetReal(_96);
_a6=yyGetReal(_a6);var _ho=-10000000000;var i=_Sn;var _2H=_3H(null,yyGetInt32(_ck),false,_Sn,_96,_a6,function(_Tn){var _w7=_96-_Tn.x;var _y7=_a6-_Tn.y;var _Xo=Math.sqrt(_w7*_w7+_y7*_y7);if(_Xo>_ho){i=_Wn(_Xn,_Tn.id);_ho=_Xo;}});return i;}function _4H(_5H,_6H,_7H,tilewidth,tileheight,_8H){_5H[3]._G5=_5H[0]._G5=_7H*tilewidth;_5H[1]._G5=_5H[2]._G5=_5H[0]._G5+tilewidth;_5H[0]._H5=_5H[1]._H5=_6H*tileheight;_5H[2]._H5=_5H[3]._H5=_5H[0]._H5+tileheight;if(_8H&_9H){if(_8H&_aH){var _DD=new _bH();_DD=_5H[1];_5H[1]=_5H[0];
_5H[0]=_DD;_DD=_5H[2];_5H[2]=_5H[3];_5H[3]=_DD;}if(_8H&_cH){var _DD=new _bH();_DD=_5H[3];_5H[3]=_5H[0];_5H[0]=_DD;_DD=_5H[2];_5H[2]=_5H[1];_5H[1]=_DD;}var _dH=(3<<_eH);var _fH=(_8H&_dH)>>_eH;if(_fH==1){var _DD=new _bH();_DD=_5H[3];_5H[3]=_5H[2];_5H[2]=_5H[1];_5H[1]=_5H[0];_5H[0]=_DD;}else if(_fH==2){var _DD=new _bH();var _gH=new _bH();_DD=_5H[3];_gH=_5H[0];_5H[3]=_5H[1];_5H[0]=_5H[2];_5H[2]=_gH;_5H[1]=_DD;}else if(_fH==3){var _DD=new _bH();var _gH=new _bH();_DD=_5H[3];_gH=_5H[0];_5H[1]=_5H[2];_5H[0]=_5H[1];_5H[3]=_gH;
_5H[2]=_DD;}}}function _no(_96,_a6,_77,_87,_hH,_iH,_jH){var _ao=_bo._co();var _kH=null;var _lH=null;var _do=_bo._eo(_ao,_hH.value);if(_do!=null){_kH=_do._mH;_lH=_do;}if((_lH!=null)&&(_lH._nH===_oH)&&(_lH._pH!=null)&&(_kH!=null)){var _3m=_0m._1m(_lH._qH);if(_3m==null){_q5("Tilemap_CollisionLine() - could not find tileset for this map",false);return false;}var _rH=_m6._n6(_3m._sH);if((_rH==null)||(_rH._c9==0)){return false;}var _tH=_rH._tF()/_3m.tilewidth;var _uH=_rH._tF();var tilewidth,tileheight;var _vH=_rH._o7[0];
tilewidth=_3m.tilewidth;tileheight=_3m.tileheight;var _wH=1.0/tilewidth;var _xH=1.0/tileheight;var _yH=new _yx();_yH.left=_lH._zH+_kH._AH;_yH.top=_lH._BH+_kH._CH;_yH.right=_yH.left+(_lH._DH*tilewidth);_yH.bottom=_yH.top+(_lH._EH*tileheight);var _p7=_96;var _s7=_a6;var _Y4=_77;var __4=_87;var _FH=_lH._zH+_kH._AH;var _GH=_lH._BH+_kH._CH;_p7-=_FH;_p7*=_wH;_Y4-=_FH;_Y4*=_wH;_s7-=_GH;_s7*=_xH;__4-=_GH;__4*=_xH;if(_Y4<_p7){var _DD=_p7;_p7=_Y4;_Y4=_DD;}if(_s7>__4){var _DD=_s7;_s7=__4;__4=_DD;}_Y4=~~_r7(_Y4,_lH._DH-1);
__4=~~_r7(__4,_lH._EH-1);var _HH=_bo._IH();_HH&=_lH._JH;_p7=~~_q7(_p7,0);_s7=~~_q7(_s7,0);for(var x=_p7;x<=_Y4;x++){for(var y=_s7;y<=__4;y++){var index=(y*_lH._DH)+x;index=~~index;var _8H=_lH._pH[index];_8H&=_HH;var _KH=(_8H>>_LH)&_MH;if(_KH==0)continue;_KH=_3m._NH(_KH,_lH._OH);if(_KH>0){var _PH=[new _QH(),new _QH(),new _QH(),new _QH()];_PH[3].x=_PH[0].x=_yH.left+tilewidth*x;_PH[1].x=_PH[2].x=_PH[0].x+tilewidth;_PH[0].y=_PH[1].y=_yH.top+tileheight*y;_PH[2].y=_PH[3].y=_PH[1].y+tileheight;var _f7=_96;var _h7=_77;
var _g7=_a6;var _i7=_87;if(_rH._RH()&&_jH){var _5H=[new _bH(),new _bH(),new _bH(),new _bH()];var _6H=~~(_KH/_tH);var _7H=~~(_KH%_tH);_4H(_5H,_6H,_7H,tilewidth,tileheight,_8H);if(_rH._SH(_vH,_PH,_5H,_f7,_g7,_h7,_i7)){if(_iH!=null)_iH.push(_hH);return true;}}else {if(_iH!=null)_iH.push(_hH);return true;}}}}}return false;}function _Bo(_96,_a6,_77,_87,_hH,_iH,_jH){var _ao=_bo._co();var _kH=null;var _lH=null;var _do=_bo._eo(_ao,_hH.value);if(_do!=null){_kH=_do._mH;_lH=_do;}if((_lH!=null)&&(_lH._nH===_oH)&&(_lH._pH!=null)&&(_kH!=null)){
var _3m=_0m._1m(_lH._qH);if(_3m==null){_q5("Tilemap_CollisionLine() - could not find tileset for this map",false);return false;}var _rH=_m6._n6(_3m._sH);if((_rH==null)||(_rH._c9==0)){return false;}var _tH=_rH._tF()/_3m.tilewidth;var _uH=_rH._tF();var tilewidth,tileheight;var _vH=_rH._o7[0];tilewidth=_3m.tilewidth;tileheight=_3m.tileheight;var _wH=1.0/tilewidth;var _xH=1.0/tileheight;var _yH=new _yx();_yH.left=_lH._zH+_kH._AH;_yH.top=_lH._BH+_kH._CH;_yH.right=_yH.left+(_lH._DH*tilewidth);_yH.bottom=_yH.top+(_lH._EH*tileheight);
if(_77<_96){var _Je=_77;_77=_96;_96=_Je;_Je=_87;_87=_a6;_a6=_Je;}var _p7=_96;var _s7=_a6;var _Y4=_77;var __4=_87;var _FH=_lH._zH+_kH._AH;var _GH=_lH._BH+_kH._CH;_p7-=_FH;_p7*=_wH;_Y4-=_FH;_Y4*=_wH;_s7-=_GH;_s7*=_xH;__4-=_GH;__4*=_xH;if(_Y4<_p7){var _DD=_p7;_p7=_Y4;_Y4=_DD;}if(_s7>__4){var _DD=_s7;_s7=__4;__4=_DD;}_Y4=~~_r7(_Y4,_lH._DH-1);__4=~~_r7(__4,_lH._EH-1);var _HH=_bo._IH();_HH&=_lH._JH;_p7=~~_q7(_p7,0);_s7=~~_q7(_s7,0);for(var x=_p7;x<=_Y4;x++){for(var y=_s7;y<=__4;y++){var index=(y*_lH._DH)+x;index=~~index;
var _8H=_lH._pH[index];_8H&=_HH;var _KH=(_8H>>_LH)&_MH;if(_KH==0)continue;_KH=_3m._NH(_KH,_lH._OH);if(_KH>0){var _PH=[new _QH(),new _QH(),new _QH(),new _QH()];_PH[3].x=_PH[0].x=_yH.left+tilewidth*x;_PH[1].x=_PH[2].x=_PH[0].x+tilewidth;_PH[0].y=_PH[1].y=_yH.top+tileheight*y;_PH[2].y=_PH[3].y=_PH[1].y+tileheight;var _f7=_96;var _h7=_77;var _g7=_a6;var _i7=_87;if(_rH._RH()&&_jH){var _5H=[new _bH(),new _bH(),new _bH(),new _bH()];var _6H=~~(_KH/_tH);var _7H=~~(_KH%_tH);_4H(_5H,_6H,_7H,tilewidth,tileheight,_8H);if(_rH._TH(_vH,
_PH,_5H,_f7,_g7,_h7,_i7,_rH._tF())){if(_iH!=null)_iH.push(_hH);return true;}}else {if(_rH._UH(_PH,_f7,_g7,_h7,_i7)){if(_iH!=null)_iH.push(_hH);return true;}}}}}}return false;}function _xo(_96,_a6,_77,_87,_hH,_iH,_jH){var _ao=_bo._co();var _kH=null;var _lH=null;var _do=_bo._eo(_ao,_hH.value);if(_do!=null){_kH=_do._mH;_lH=_do;}if((_lH!=null)&&(_lH._nH===_oH)&&(_lH._pH!=null)&&(_kH!=null)){var _3m=_0m._1m(_lH._qH);if(_3m==null){_q5("Tilemap_CollisionEllipse() - could not find tileset for this map",false);return false;
}var _rH=_m6._n6(_3m._sH);if((_rH==null)||(_rH._c9==0)){return false;}var _tH=_rH._tF()/_3m.tilewidth;var _uH=_rH._tF();var tilewidth,tileheight;var _vH=_rH._o7[0];tilewidth=_3m.tilewidth;tileheight=_3m.tileheight;var _wH=1.0/tilewidth;var _xH=1.0/tileheight;var _yH=new _yx();_yH.left=_lH._zH+_kH._AH;_yH.top=_lH._BH+_kH._CH;_yH.right=_yH.left+(_lH._DH*tilewidth);_yH.bottom=_yH.top+(_lH._EH*tileheight);var _p7=_96;var _s7=_a6;var _Y4=_77;var __4=_87;var _FH=_lH._zH+_kH._AH;var _GH=_lH._BH+_kH._CH;_p7-=_FH;_p7*=_wH;
_Y4-=_FH;_Y4*=_wH;_s7-=_GH;_s7*=_xH;__4-=_GH;__4*=_xH;if(_Y4<_p7){var _DD=_p7;_p7=_Y4;_Y4=_DD;}if(_s7>__4){var _DD=_s7;_s7=__4;__4=_DD;}_Y4=~~_r7(_Y4,_lH._DH-1);__4=~~_r7(__4,_lH._EH-1);var _HH=_bo._IH();_HH&=_lH._JH;_p7=~~_q7(_p7,0);_s7=~~_q7(_s7,0);for(var x=_p7;x<=_Y4;x++){for(var y=_s7;y<=__4;y++){var index=(y*_lH._DH)+x;index=~~index;var _8H=_lH._pH[index];_8H&=_HH;var _KH=(_8H>>_LH)&_MH;if(_KH==0)continue;_KH=_3m._NH(_KH,_lH._OH);if(_KH>0){var _PH=[new _QH(),new _QH(),new _QH(),new _QH()];_PH[3].x=_PH[0].x=_yH.left+tilewidth*x;
_PH[1].x=_PH[2].x=_PH[0].x+tilewidth;_PH[0].y=_PH[1].y=_yH.top+tileheight*y;_PH[2].y=_PH[3].y=_PH[1].y+tileheight;var _f7=_96;var _h7=_77;var _g7=_a6;var _i7=_87;if(_rH._RH()&&_jH){var _5H=[new _bH(),new _bH(),new _bH(),new _bH()];var _6H=~~(_KH/_tH);var _7H=~~(_KH%_tH);_4H(_5H,_6H,_7H,tilewidth,tileheight,_8H);if(_rH._VH(_vH,_PH,_5H,_f7,_g7,_h7,_i7,_rH._tF())){if(_iH!=null)_iH.push(_hH);return true;}}else {if(_rH._WH(_PH,_f7,_g7,_h7,_i7)){if(_iH!=null)_iH.push(_hH);return true;}}}}}}return false;}function _1o(_96,
_a6,_hH,_iH,_jH){var _ao=_bo._co();var _kH=null;var _lH=null;var _do=_bo._eo(_ao,_hH.value);if(_do!=null){_kH=_do._mH;_lH=_do;}if((_lH!=null)&&(_lH._nH===_oH)&&(_lH._pH!=null)&&(_kH!=null)){var _3m=_0m._1m(_lH._qH);if(_3m==null){_Hx._Rd(_w7,_y7);_Hx._XH=_YH;_q5("Tilemap_InstancePlace() - could not find tileset for this map",false);return false;}var _rH=_m6._n6(_3m._sH);if((_rH==null)||(_rH._c9==0)){return false;}var _tH=_rH._tF()/_3m.tilewidth;var _uH=_rH._tF();var tilewidth,tileheight;var _vH=_rH._o7[0];tilewidth=_3m.tilewidth;
tileheight=_3m.tileheight;var _wH=1.0/tilewidth;var _xH=1.0/tileheight;var _yH=new _yx();_yH.left=_lH._zH+_kH._AH;_yH.top=_lH._BH+_kH._CH;_yH.right=_yH.left+(_lH._DH*tilewidth);_yH.bottom=_yH.top+(_lH._EH*tileheight);var _p7=_96;var _s7=_a6;var _FH=_lH._zH+_kH._AH;var _GH=_lH._BH+_kH._CH;_p7-=_FH;_p7*=_wH;_s7-=_GH;_s7*=_xH;var _HH=_bo._IH();_HH&=_lH._JH;_p7=~~_q7(_p7,0);_s7=~~_q7(_s7,0);_p7=~~_r7(_p7,_lH._DH-1);_s7=~~_r7(_s7,_lH._EH-1);var index=(_s7*_lH._DH)+_p7;index=~~index;var _8H=_lH._pH[index];_8H&=_HH;
var _KH=(_8H>>_LH)&_MH;if(_KH==0)return false;_KH=_3m._NH(_KH,_lH._OH);if(_KH>0){if(_rH._RH()&&_jH){var _PH=[new _QH(),new _QH(),new _QH(),new _QH()];var _5H=[new _bH(),new _bH(),new _bH(),new _bH()];_PH[3].x=_PH[0].x=_yH.left+tilewidth*_p7;_PH[1].x=_PH[2].x=_PH[0].x+tilewidth;_PH[0].y=_PH[1].y=_yH.top+tileheight*_s7;_PH[2].y=_PH[3].y=_PH[1].y+tileheight;var _6H=~~(_KH/_tH);var _7H=~~(_KH%_tH);_4H(_5H,_6H,_7H,tilewidth,tileheight,_8H);var _ZH=((_96+0.5)-_PH[0].x)/tilewidth;var __H=((_a6+0.5)-_PH[0].y)/tileheight;
var _0I=_5H[0]._G5+_ZH*(_5H[1]._G5-_5H[0]._G5)+__H*(_5H[3]._G5-_5H[0]._G5);var _1I=_5H[0]._H5+_ZH*(_5H[1]._H5-_5H[0]._H5)+__H*(_5H[3]._H5-_5H[0]._H5);var ui=~~_0I;var _2I=~~_1I;if((ui<0)||(ui>=_rH._tF()))return false;if((_2I<0)||(_2I>=_rH._uF()))return false;if(_rH._3I(ui,_2I,_vH)){if(_iH!=null){_iH.push(_hH);}return true;}}else {if(_iH!=null){_iH.push(_hH);}return true;}}}return false;}function _4I(_5I,_lj,_6I,_7I,_8I,_9I,_aI,_bI){var _p7=(_q7(_5I,_8I));var _s7=(_q7(_6I,_aI));var _Y4=(_r7(_lj,_9I));var __4=(_r7(_7I,
_bI));if(Math.floor(_p7+0.49999)==Math.floor(_Y4+0.5))return false;if(Math.floor(_s7+0.49999)==Math.floor(__4+0.5))return false;return true;}function _cI(_Hx,_96,_a6,_hH,_iH,_jH){var _w7,_y7;var _YH=new _yx();_YH=_Hx._XH;_w7=_Hx.x;_y7=_Hx.y;_Hx._Rd(_96,_a6);if(_Hx._dI)_Hx._eI(false);var _fI=null;if(_Hx.mask_index<0){_fI=_m6._n6(_Hx.sprite_index);}else {_fI=_m6._n6(_Hx.mask_index);}if((_fI==null)||(_fI._c9==0)){return false;}var _ao=_bo._co();var _kH=null;var _lH=null;var _do=_bo._eo(_ao,_hH.value);if(_do!=null){
_kH=_do._mH;_lH=_do;}if((_lH!=null)&&(_lH._nH===_oH)&&(_lH._pH!=null)&&(_kH!=null)){var _3m=_0m._1m(_lH._qH);if(_3m==null){_Hx._Rd(_w7,_y7);_Hx._XH=_YH;_q5("Tilemap_InstancePlace() - could not find tileset for this map",false);return false;}var _rH=_m6._n6(_3m._sH);if((_rH==null)||(_rH._c9==0)){return false;}var _tH=_rH._tF()/_3m.tilewidth;var _uH=_rH._tF();var tilewidth,tileheight;var _vH=_rH._o7[0];tilewidth=_3m.tilewidth;tileheight=_3m.tileheight;var _wH=1.0/tilewidth;var _xH=1.0/tileheight;var _yH=new _yx();
_yH.left=_lH._zH+_kH._AH;_yH.top=_lH._BH+_kH._CH;_yH.right=_yH.left+(_lH._DH*tilewidth);_yH.bottom=_yH.top+(_lH._EH*tileheight);var _gI=(_Hx._XH);var _p7=(_q7(_gI.left,_yH.left));var _s7=(_q7(_gI.top,_yH.top));var _Y4=(_r7(_gI.right,_yH.right));var __4=(_r7(_gI.bottom,_yH.bottom));var _FH=_lH._zH+_kH._AH;var _GH=_lH._BH+_kH._CH;_p7-=_FH;_Y4-=_FH;_p7*=_wH;_Y4*=_wH;_s7-=_GH;__4-=_GH;_s7*=_xH;__4*=_xH;var _HH=_bo._IH();_HH&=_lH._JH;_Y4=~~_r7(_Y4,_lH._DH-1);__4=~~_r7(__4,_lH._EH-1);_p7=~~_q7(_p7,0);_s7=~~_q7(_s7,
0);for(var x=_p7;x<=_Y4;x++){for(var y=_s7;y<=__4;y++){var index=(y*_lH._DH)+x;index=~~index;var _8H=_lH._pH[index];_8H&=_HH;var _KH=(_8H>>_LH)&_MH;if(_KH==0)continue;_KH=_3m._NH(_KH,_lH._OH);if(_KH>0){if(_rH._RH()||_fI._RH()&&_jH){var _PH=[new _QH(),new _QH(),new _QH(),new _QH()];var _5H=[new _bH(),new _bH(),new _bH(),new _bH()];_PH[3].x=_PH[0].x=_yH.left+tilewidth*x;_PH[1].x=_PH[2].x=_PH[0].x+tilewidth;_PH[0].y=_PH[1].y=_yH.top+tileheight*y;_PH[2].y=_PH[3].y=_PH[1].y+tileheight;var _6H=~~(_KH/_tH);var _7H=~~(_KH%_tH);
_4H(_5H,_6H,_7H,tilewidth,tileheight,_8H);if(_fI._hI(_Hx.image_index,_gI,_Hx.x,_Hx.y,_Hx.image_xscale,_Hx.image_yscale,_Hx.image_angle,_PH,_5H,_vH,_rH)){_Hx._Rd(_w7,_y7);_Hx._XH=_YH;if(_iH!=null){_iH.push(_hH);}return true;}}else {var _iI=_yH.left+tilewidth*x;var _jI=_iI+tilewidth;var _kI=_yH.top+tileheight*y;var _lI=_kI+tileheight;if(_4I(_gI.left,_gI.right,_gI.top,_gI.bottom,_iI,_jI,_kI,_lI)){_Hx._Rd(_w7,_y7);_Hx._XH=_YH;if(_iH!=null){_iH.push(_hH);}return true;}}}}}}_Hx._Rd(_w7,_y7);_Hx._XH=_YH;return false;
}function _mI(_T9,_96,_a6,_ck){if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){if(_cI(_T9,_96,_a6,_ck,null,true)){return _ck;}return -1;}else {var id=_nI(_T9,_96,_a6,_ck,null);return id;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){if(_cI(_T9,_96,_a6,_2o,null,true)){return _2o;}}else {var id=_nI(_T9,_96,_a6,_2o,null);if(id!=_Sn)return id;}}return -1;}else {var id=_nI(_T9,_96,_a6,_ck,null);return id;}}function instance_place(_Pn,_96,_a6,_ck){var id=_mI(_Pn,
_96,_a6,_ck,null);return id;}function instance_place_list(_Pn,_96,_a6,_ck,_C8,_io){_96=yyGetReal(_96);_a6=yyGetReal(_a6);var _ik=_gk._n6(yyGetInt32(_C8));if(!_ik){_q5("Error: invalid ds_list ID (instance_place_list)");return 0;}var _ko=[];var _jo=false;if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){_cI(_Pn,_96,_a6,_ck,_ko,true);_jo=true;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){_cI(_Pn,_96,_a6,_2o,_ko,true);}else {_nI(_Pn,_96,_a6,
_2o,_ko);}}_jo=true;}if(!_jo)_nI(_Pn,_96,_a6,_ck,_ko);var _c9=_ko.length;_3o(_ko,_ik,_96,_a6,_io);return _c9;}function _oI(_Pn,_pI){if(!_Pn.marked&&_Pn.active){if((_pI===undefined)||(_pI)){_qI(_Pn);}else {_Pn._w6(_rI,0,_Pn,_Pn);_Pn.marked=true;}}}function instance_destroy(_Pn,_yg,_pI){_pI=_pI!==undefined?yyGetBool(_pI):true;if(_yg===undefined){_oI(_Pn,_pI);}else {var _By=GetWithArray(yyGetInt32(_yg));if(_By!=null&&_By.length>0){for(var _Hx=0;_Hx<_By.length;_Hx++){var _9o=_By[_Hx];_oI(_9o,_pI);}}}}function position_destroy(_Z7,
_96,_a6){var _yk=_c4._0H._yk;var _Lu=[];for(var i=0;i<_yk.length;i++){var _9o=_yk[i];if(_9o._Vn(yyGetReal(_96),yyGetReal(_a6),true)){_Lu.push(_9o);}}for(var i=0;i<_Lu.length;i++){instance_destroy(_Lu[i]);}}function position_change(_Z7,_96,_a6,_sI,_tI){_96=yyGetReal(_96);_a6=yyGetReal(_a6);var bottom,top;var _uI=[];var _vI=_c4._0H;for(var i=0;i<_vI._yk.length;i++){var _9o=_vI._yk[i];if(_9o._dI)_9o._eI();var _XH=_9o._XH;if(!((_96>_XH.right)||(_96<_XH.left)||(_a6>_XH.bottom)||(_a6<_XH.top))){_uI[_uI.length]=_9o;
}}var _vI=_c4._0H;for(var i=0;i<_uI.length;i++){instance_change(_uI[i],yyGetInt32(_sI),_tI);}}function motion_set(_Z7,_wI,_xI){_Z7.direction=yyGetReal(_wI);_Z7.speed=yyGetReal(_xI);}function motion_add(_Z7,_wI,_xI){_Z7._yI(yyGetReal(_wI),yyGetReal(_xI));}function instance_copy(_Z7,_zI){var _AI=new _BI(0,0,_CI++,_Z7.object_index,true);var _DI=_AI.id;_AI._EI(_Z7,true);_AI.id=_DI;_AI._FI=false;var _9o=_c4._GI(_AI);if(yyGetBool(_zI)){_AI._w6(_HI,0,_AI,_AI);_AI._w6(_II,0,_AI,_AI);}return _Wn(_Xn,_AI.id);}function _JI(_Z7,
_sI,_tI){_tI=yyGetBool(_tI);if(_tI){_Z7._w6(_KI,0,_Z7,_Z7);_Z7._w6(_rI,0,_Z7,_Z7);}_Z7._LI(yyGetInt32(_sI),true,false);_Z7._MI(_Z7._Nx._NI);_Z7._OI(_c4);if(_tI){_Z7._w6(_HI,0,_Z7,_Z7);_Z7._w6(_II,0,_Z7,_Z7);}}function _PI(_Z7,_sI,_tI){_sI=yyGetInt32(_sI);if(!_14._QI(_sI)){debug("Error: Trying to change an instance to an nonexistent object type.");return;}_JI(_Z7,_sI,yyGetBool(_tI));}var instance_change=_PI;function instance_deactivate_all(_Z7,_Qn){var _ik=[];_ik=_c4._0H._yk;_c4._0H._ag();var _RI=_c4._SI;
for(var i=0;i<_ik.length;i++){if(_ik[i]==_Z7){if(yyGetBool(_Qn)==false){_c4._TI(_ik[i]);}else {_c4._0H._Vf(_ik[i]);}}else {_c4._TI(_ik[i]);}}}function instance_activate_all(_Z7){var _ik=[];_ik=_c4._SI._yk;_c4._SI._ag();var _vI=_c4._0H;for(var i=0;i<_ik.length;i++){_c4._UI(_ik[i]);}}function _VI(_ck,_WI){if(_ck._XI>=0){_WI=yyGetInt32(_WI);var _YI=_14._n6(_ck._XI);if(_YI){if(_YI._ZI==_WI){return true;}else {return _VI(_YI,_WI);}}}return false;};function instance_activate_object(_Z7,_sI){_sI=yyGetInt32(_sI);var i;
var _uI=[];var _RI=_c4._SI;if(_sI==__I){for(var i=0;i<_RI._yk;i++){var _9o=_RI._yk[i];_uI[_uI.length]=_9o;}}else {for(var i=0;i<_RI._yk.length;i++){var _9o=_RI._yk[i];if(_9o.object_index==_sI||_9o.id==_sI){_uI[_uI.length]=_9o;}else if(_VI(_14._n6(_9o.object_index),_sI)){_uI[_uI.length]=_9o;}}}var _vI=_c4._0H;for(i=0;i<_uI.length;i++){_c4._UI(_uI[i]);}}function instance_deactivate_object(_Z7,_sI){_sI=yyGetInt32(_sI);var i;var _uI=[];var _vI=_c4._0H;if(_sI==__I){for(var i=0;i<_vI._yk.length;i++){var _9o=_vI._yk[i];
_uI[_uI.length]=_9o;}}else {for(var i=0;i<_vI._yk.length;i++){var _9o=_vI._yk[i];if(_9o.object_index==_sI||_9o.id==_sI){_uI[_uI.length]=_9o;}else if(_VI(_14._n6(_9o.object_index),_sI)){_uI[_uI.length]=_9o;}}}var _RI=_c4._SI;for(i=0;i<_uI.length;i++){_c4._TI(_uI[i]);}}function instance_deactivate_region(_Z7,_Lm,_Mm,_89,_99,_0J,_Qn){_Lm=yyGetReal(_Lm);_Mm=yyGetReal(_Mm);_89=yyGetReal(_89);_99=yyGetReal(_99);var bottom,top,right;var _uI=[];var _vI=_c4._0H;right=_Lm+_89-1;bottom=_Mm+_99-1;for(var i=0;i<_vI._yk.length;
i++){var _1J=false;var _9o=_vI._yk[i];if(_9o._dI)_9o._eI();var _XH=_9o._XH;if((_XH)&&((_9o.sprite_index>=0)||(_9o.mask_index>=0))){if((_Lm>_XH.right)||(right<_XH.left)||(_Mm>_XH.bottom)||(bottom<_XH.top)){_1J=true;}}else {if((_9o.x>right)||(_9o.x<_Lm)||(_9o.y>bottom)||(_9o.y<_Mm)){_1J=true;}}if(_1J!=yyGetBool(_0J))_uI[_uI.length]=_9o;}var _RI=_c4._SI;for(i=0;i<_uI.length;i++){if(_Z7==_uI[i]){if(!yyGetBool(_Qn)){_c4._TI(_uI[i]);}}else {_c4._TI(_uI[i]);}}}function _2J(_Z7,_96,_a6,_89,_99,_Qn,_3J,_4J){_q5("not implemented yet!");
}function instance_deactivate_layer(_Z7,_0h){var room=_c4;if(room==null){return -1;}var _kH=null;if((typeof(_0h)==="string"))_kH=_bo._5J(room,yyGetString(_0h).toLowerCase());else _kH=_bo._6J(room,yyGetInt32(_0h));if(_kH===null)return;for(var _J6=0;_J6<_kH._7J.length;_J6++){var _lH=_kH._7J._n6(_J6);if(_lH==null)continue;if(_lH._nH==_8J){room._TI(_lH._9J);}}}function instance_activate_layer(_Hx,_0h){var room=_c4;if(room==null){return -1;}var _kH=null;if((typeof(_0h)==="string"))_kH=_bo._5J(room,yyGetString(_0h).toLowerCase());
else _kH=_bo._6J(room,yyGetInt32(_0h));if(_kH===null)return;for(var _J6=0;_J6<_kH._7J.length;_J6++){var _lH=_kH._7J._n6(_J6);if(_lH==null)continue;if(_lH._nH==_8J){room._UI(_lH._9J);}}}function instance_activate_region(_Z7,_Lm,_Mm,_89,_99,_0J){_Lm=yyGetReal(_Lm);_Mm=yyGetReal(_Mm);_89=yyGetReal(_89);_99=yyGetReal(_99);var i;var bottom,top,right;var _uI=[];var _RI=_c4._SI;right=_Lm+_89-1;bottom=_Mm+_99-1;for(var i=0;i<_RI._yk.length;i++){var _1J=false;var _9o=_RI._yk[i];if(_9o._dI)_9o._eI();var _XH=_9o._XH;if((_9o.sprite_index>=0)||(_9o.mask_index>=0)){
if(_XH.right<_Lm||_XH.left>right||_XH.bottom<_Mm||_XH.top>bottom){_1J=true;}}else {if((_9o.x>right)||(_9o.x<_Lm)||(_9o.y>bottom)||(_9o.y<_Mm)){_1J=true;}}if(_1J!=yyGetBool(_0J))_uI[_uI.length]=_9o;}var _vI=_c4._0H;for(i=0;i<_uI.length;i++){_c4._UI(_uI[i]);}}function keyboard_key_press(_Tk){_Tk=yyGetInt32(_Tk);if(_aJ[_Tk]){return;}_aJ[_Tk]=1;_bJ[_Tk]=1;_cJ=_Tk;}function keyboard_key_release(_Tk){_Tk=yyGetInt32(_Tk);_dJ[_Tk]=1;_aJ[_Tk]=0;}function _eJ(_fJ){{switch(yyGetInt32(_fJ)){case 0:if(_Jg._gJ==0)return 0;
else return 1;case 1:if((_Jg._gJ&1)==0)return 0;else return 1;case 2:if((_Jg._gJ&2)==0)return 0;else return 1;case 3:if((_Jg._gJ&4)==0)return 0;else return 1;case -1:if(_Jg._gJ==0)return 1;else return 0;}}return 0;}function mouse_check_button(_fJ){{switch(yyGetInt32(_fJ)){case 0:if(_Jg._Ve[0]||_Jg._Ve[1]||_Jg._Ve[2]||_Jg._Ve[3]||_Jg._Ve[4])return 0;else return 1;case 1:if(_Jg._Ve[0])return 1;else return 0;case 2:if(_Jg._Ve[1])return 1;else return 0;case 3:if(_Jg._Ve[2])return 1;else return 0;case 4:if(_Jg._Ve[3])return 1;else return 0;
case 5:if(_Jg._Ve[4])return 1;else return 0;case -1:if(_Jg._Ve[0]||_Jg._Ve[1]||_Jg._Ve[2]||_Jg._Ve[3]||_Jg._Ve[4])return 1;else return 0;}}return 0;}function mouse_check_button_pressed(_fJ){{switch(yyGetInt32(_fJ)){case 0:if(_Jg._Qe[0]||_Jg._Qe[1]||_Jg._Qe[2]||_Jg._Qe[3]||_Jg._Qe[4])return 0;else return 1;case 1:if(_Jg._Qe[0])return 1;else return 0;case 2:if(_Jg._Qe[1])return 1;else return 0;case 3:if(_Jg._Qe[2])return 1;else return 0;case 4:if(_Jg._Qe[3])return 1;else return 0;case 5:if(_Jg._Qe[4])return 1;else return 0;case -1:if(_Jg._Qe[0]||_Jg._Qe[1]||_Jg._Qe[2]||_Jg._Qe[3]||_Jg._Qe[4])return 1;
else return 0;}}return 0;}function mouse_check_button_released(_fJ){{switch(yyGetInt32(_fJ)){case 0:if(_Jg._Ue[0]||_Jg._Ue[1]||_Jg._Ue[2]||_Jg._Ue[3]||_Jg._Ue[4])return 0;else return 1;case 1:if(_Jg._Ue[0])return 1;else return 0;case 2:if(_Jg._Ue[1])return 1;else return 0;case 3:if(_Jg._Ue[2])return 1;else return 0;case 4:if(_Jg._Ue[3])return 1;else return 0;case 5:if(_Jg._Ue[4])return 1;else return 0;case -1:if(_Jg._Ue[0]||_Jg._Ue[1]||_Jg._Ue[2]||_Jg._Ue[3]||_Jg._Ue[4])return 1;else return 0;}return 0;}}function mouse_wheel_up(){
return _hJ;}function mouse_wheel_down(){return _iJ;}function mouse_clear(_Mn){_Mn=yyGetInt32(_Mn);if(_Mn==-1){mouse_clear(1);mouse_clear(2);mouse_clear(3);}else if(_Mn>=1&&_Mn<=3){var i=_Mn-1;_Jg._Ve[i]=0;_Jg._Qe[i]=0;_Jg._Ue[i]=0;_Mg&=~(1<<i);}}function io_clear(){_Jg._ag();}function keyboard_check(_Tk){return _Jg._jJ[yyGetInt32(_Tk)];}function keyboard_check_pressed(_Tk){return _Jg._kJ[yyGetInt32(_Tk)];}function keyboard_clear(_Tk){_Tk=yyGetInt32(_Tk);_Jg._jJ[_Tk]=false;_Jg._kJ[_Tk]=false;_Jg._lJ[_Tk]=false;
}function keyboard_check_released(_Tk){return _Jg._lJ[yyGetInt32(_Tk)];}function keyboard_check_direct(_Tk){return _Jg._jJ[yyGetInt32(_Tk)];}function display_mouse_get_x(){return(_Jg._mJ-_qg.left);}function display_mouse_get_y(){return(_Jg._nJ-_qg.top);}function keyboard_set_map(_J4,_K4){_J4=yyGetInt32(_J4);_K4=yyGetInt32(_K4);if((_J4<0)||(_J4>_oJ))return 0;if((_K4<0)||(_K4>_oJ))return 0;_Jg._pJ[_J4]=_K4;}function keyboard_get_map(_Tk){_Tk=yyGetInt32(_Tk);if((_Tk<0)||(_Tk>_oJ))return 0;return _Jg._pJ[_Tk];}
function keyboard_unset_map(){for(var _p7=0;_p7<_oJ;_p7++){_Jg._pJ[_p7]=_p7;}}function keyboard_virtual_show(){_Jc("keyboard_virtual_show()");}function keyboard_virtual_hide(){_Jc("keyboard_virtual_hide()");}function keyboard_virtual_status(){_Jc("keyboard_virtual_status()");}function keyboard_virtual_height(){_Jc("keyboard_virtual_height()");}function gesture_drag_time(_k4){}function gesture_drag_distance(_k4){}function gesture_flick_speed(_k4){}function gesture_double_tap_time(_k4){}function gesture_double_tap_distance(_k4){
}function gesture_pinch_distance(_k4){}function gesture_pinch_angle_towards(_k4){}function gesture_pinch_angle_away(_k4){}function gesture_rotate_time(_k4){}function gesture_rotate_angle(_k4){}function gesture_tap_count(_k4){}function gesture_get_drag_time(){}function gesture_get_drag_distance(){}function gesture_get_flick_speed(){}function gesture_get_double_tap_time(){}function gesture_get_double_tap_distance(){}function gesture_get_pinch_distance(){}function gesture_get_pinch_angle_towards(){}function gesture_get_pinch_angle_away(){
}function gesture_get_rotate_time(){}function gesture_get_rotate_angle(){}function gesture_get_tap_count(){}var _qJ=0,_rJ=1,_sJ=2,_tJ=3,_uJ=4,_vJ=5,_wJ=6;var _xJ=0,_yJ=1,_8J=2,_zJ=3,_AJ=4,_oH=5,_BJ=6,_CJ=7,_DJ=8,_EJ=9;var _FJ=31;var _GJ=29;var _HJ=28;var _eH=30;var _IJ=(1<<_FJ);var _cH=(1<<_GJ);var _aH=(1<<_HJ);var _JJ=(1<<_eH);var _KJ=_HJ;var _9H=(0x7<<_KJ);var _LJ=0x7;var _LH=0;var _MJ=(0x7ffff<<_LH);var _MH=(0x7ffff);/*@constructor */function _NJ(){this.visible=true;this.foreground=false;this.index=0;this.htiled=false;
this.vtiled=false;this._OJ=1.0;this._PJ=1.0;this.stretch=false;this._QJ=0;this.alpha=1.0;this.playbackspeedtype=_RJ;this.playbackspeed=0;this.image_speed=0;this.image_index=0;};/*@constructor */function _SJ(){this._Ce=0;this.depth=0;this._AH=0;this._CH=0;this._TJ=0;this._UJ=0;this._VJ=true;this._WJ=0;this._XJ="";this._YJ=null;this._ZJ=null;this.__J=-1;this._0K=null;this._7J=new _ek();this._1K=true;this._2K=true;this._3K=null;this._4K=null;this._5K=-1;};_SJ.prototype._6K=function(_7K){this._3K=_7K;
};_SJ.prototype._8K=function(){this._3K=null;};_SJ.prototype._9K=function(){return this._3K;};_SJ.prototype._aK=function(){return this._3K!=null;};_SJ.prototype._bK=function(){return this._4K;};/*@constructor */function _cK(){this.pName="";this.id=0;this.type=0;this.depth=0;this.x=0;this.y=0;this.hspeed=0;this.vspeed=0;this.visible=0;};/*@constructor */function _dK(){this.x=0;this.y=0;this.index=0;this.xo=0;this.yo=0;this.w=0;this.h=0;this.depth=0;this.id=0;this.scaleX=0;this.scaleY=0;this.colour=0;}
;/*@constructor */function _eK(){this._fK=-1;this._9J=null;this._nH=_8J;this._gK=false;this._Kl="";};/*@constructor */function _hK(){this._iK=null;this._nH=_yJ;this._gK=false;this._Kl="";this._Ce=0;};/*@constructor */function _jK(){this._nH=_oH;this._qH=-1;this._zH=0;this._BH=0;this._DH=0;this._EH=0;this._OH=0;this._pH=[];this._gK=false;this._Kl="";this._Ce=0;this._JH=~_IJ;};/*@constructor */function _kK(){this._nH=_zJ;this._lK=[];this._mK=[];this._Kl="";this._Ce=0;this._gK=false;};/*@constructor */function _nK(){
this._oK=-1;this._pK=1;this._qK=_RJ;this._rK=0;this._sK=1;this._tK=0;this._uK=1;this._vK=1;this._wK=0;this._xK=0xffffffff;this._yK=1;this._zH=0;this._BH=0;this._nH=_AJ;this._Kl="";this._Ce=0;this._gK=false;};/*@constructor */function _zK(){this._AK=-1;this._BK=-1;this._pK=1;this._CK=0;this._xK=0xffffffff;this._yK=1;this._DK=1;this._EK=1;this._zH=0;this._BH=0;this._E3=0;this._nH=_DJ;this._Kl="";this._Ce=0;this._gK=false;this._mH=null;this._FK=new _GK();};/*@constructor */function _HK(){this._nH=_BJ;
this._IK=-1;this._Kl="";this._Ce=0;this._gK=false;this._JK=-1;this._uK=1.0;this._vK=1.0;this._wK=0.0;this._xK=0xffffffff;this._yK=1.0;this._zH=0;this._BH=0;};/*@constructor */function _KK(){this._VJ=true;this._Wx=-1;this._zH=0;this._BH=0;this._LK=0;this._MK=0;this._uK=1.0;this._vK=1.0;this._wK=0.0;this._xK=0xffffffff;this._yK=1.0;this._NK=0;this._OK=0;this._nH=_CJ;this._Kl="";this._Ce=0;this._gK=false;};/*@constructor */function _PK(){this._zH=0;this._BH=0;this._QK=-1;this._DK=1;this._EK=1;this._E3=0;
this._RK=0xffffffff;this._SK=1;this._TK=1;this._UK=1;this._VK="";this._WK=0;this._XK=0;this._YK=0;this._ZK=-1;this.__K=-1;this._0L=false;this._nH=_EJ;this._Kl="";this._Ce=0;this._gK=false;};/*@constructor */function _1L(){this.pName=null;this.type=0;this.elements=0;this._2L=null;};/*@constructor */function _3L(){this.pName="";this._WA=0;this._4L=[];this._5L=false;};var _6L=0;var _7L=1;var _8L=2;var _9L=3;var _aL=32;/*@constructor */function _bL(){this._cL=0;this._dL=0;this._eL=0;this._fL=false;this._gL=0xffffffff;
this._hL=-1;this._iL=false;this._jL=0;this._kL=null;};_bL.prototype._lL=function(){return this._cL;};_bL.prototype._mL=function(_yg){this._nL=_yg;};_bL.prototype._oL=function(_pL){this._iL=_pL;};_bL.prototype._qL=function(_el){this._jL=_el;};_bL.prototype._rL=function(){return this._iL;};_bL.prototype._sL=function(){return this._jL;};_bL.prototype._IH=function(){return this._gL;};_bL.prototype._tL=function(_0h){this._gL=_0h;};_bL.prototype._uL=function(){if(!this._fL){this._fL=true;}};_bL.prototype._vL=function(_wL,
_xL){if(_xL._iK!=null){delete(_xL._iK);_xL._iK=null;}_wL._7J._yL(_xL);};_bL.prototype._zL=function(_wL,_xL,_AL){if(_xL._9J){_xL._9J._BL(false);}if(_AL){if(_xL._fK>=0){var _Hx=_Fx._n6(_xL._fK);if(_Hx!=null){instance_destroy(_Hx);}}}_wL._7J._yL(_xL);};_bL.prototype._CL=function(_wL,_xL){_wL._7J._yL(_xL);};_bL.prototype._DL=function(_wL,_xL){_wL._7J._yL(_xL);};_bL.prototype._EL=function(_wL,_xL){_wL._7J._yL(_xL);};_bL.prototype._FL=function(_wL,_xL){_wL._7J._yL(_xL);};_bL.prototype._GL=function(_wL,
_xL){_wL._7J._yL(_xL);};_bL.prototype._HL=function(_wL,_xL){_wL._7J._yL(_xL);};_bL.prototype._IL=function(_wL,_xL){_wL._7J._yL(_xL);};_bL.prototype._JL=function(_KL,_LL,_wL,_ML,_NL){if(_KL==null)return;var _Ad=_LL;var layer=_wL;if(_Ad===null)return;this._OL(_Ad);switch(_Ad._nH){case _yJ:this._vL(layer,_Ad);break;case _8J:this._zL(layer,_Ad,_NL);break;case _zJ:this._CL(layer,_Ad);break;case _AJ:this._DL(layer,_Ad);break;case _oH:this._EL(layer,_Ad);break;case _BJ:this._FL(layer,_Ad);break;case _CJ:this._GL(layer,
_Ad);break;case _DJ:this._HL(layer,_Ad);break;case _EJ:this._IL(layer,_Ad);break;};return;};_bL.prototype._PL=function(_KL,_QL,_ML,_NL){if(_KL==null)return;var _Ad=null;var layer=null;for(var i=0;i<_KL._RL.length;i++){layer=_KL._RL._n6(i);_Ad=this._SL(layer,_QL);if(_Ad!=null)break;}if(_Ad===null)return;this._OL(_Ad);switch(_Ad._nH){case _yJ:this._vL(layer,_Ad);break;case _8J:this._zL(layer,_Ad,_NL);break;case _zJ:this._CL(layer,_Ad);break;case _AJ:this._DL(layer,_Ad);break;case _oH:this._EL(layer,_Ad);break;
case _BJ:this._FL(layer,_Ad);break;case _CJ:this._GL(layer,_Ad);break;case _DJ:this._HL(layer,_Ad);break;case _EJ:this._IL(layer,_Ad);break;};return;};_bL.prototype._TL=function(_KL,_xL,_UL){if(_KL==null)return;if(_xL==null)return;if(_UL==null)return;var _VL=_bo._WL(_KL,_xL._Ce);if(_VL!=null){_VL.layer._7J._yL(_xL);}if(_xL._nH==_8J){if(_xL._9J!=null){_xL._9J.layer=_UL._Ce;_xL._9J._BL(true);}}_UL._7J._Vf(_xL);};_bL.prototype._co=function(){if(this._hL==-1)return _c4;var room=_uC._n6(this._hL);if(room==null)return _c4;
return room;};_bL.prototype._XL=function(){};_bL.prototype._YL=function(_KL,_wL,_xL){_xL._gK=true;};_bL.prototype._ZL=function(_KL,_wL,_xL){var _Hx=_Fx._n6(_xL._fK);if(_Hx===null)return;_xL._9J=_Hx;_Hx.__L=_wL._Ce;_Hx._FI=true;_Hx.depth=_wL.depth;_xL._gK=true;};_bL.prototype._0M=function(_KL,_wL,_xL){_xL._gK=true;};_bL.prototype._1M=function(_KL,_wL,_xL){_xL._gK=true;};_bL.prototype._2M=function(_KL,_wL,_xL){_xL._gK=true;};_bL.prototype._3M=function(_KL,_wL,_xL){if(_xL._JK!=-1&&_xL._IK==-1){_eC._n6(_xL._JK)._4M(_wL._Ce,
false,_xL);}_xL._gK=true;};_bL.prototype._5M=function(_KL,_wL,_xL){_xL._gK=true;};_bL.prototype._6M=function(_KL,_wL,_xL){var _7M=_xC._8M();_7M._AK=_xL._AK;_7M._CK=_xL._CK;_7M._9M=_xL._pK;_KL._aM(_xL._Ce);_xL._BK=_7M.id;_xC._bM(_7M,_II);_xL._gK=true;};_bL.prototype._cM=function(_KL,_wL,_xL){_xL._gK=true;};_bL.prototype._dM=function(_KL,_wL,_xL){if(_KL===null)return;if(_wL===null)return;if(_xL===null)return;if(_xL._gK)return;switch(_xL._nH){case _yJ:this._YL(_KL,_wL,_xL);break;case _8J:this._ZL(_KL,
_wL,_xL);break;case _zJ:this._0M(_KL,_wL,_xL);break;case _AJ:this._1M(_KL,_wL,_xL);break;case _oH:this._2M(_KL,_wL,_xL);break;case _BJ:this._3M(_KL,_wL,_xL);break;case _CJ:this._5M(_KL,_wL,_xL);break;case _DJ:this._6M(_KL,_wL,_xL);break;case _EJ:this._cM(_KL,_wL,_xL);break;}};_bL.prototype._mL=function(_yg){this._cL=_yg;};_bL.prototype._eM=function(_KL){if((_KL._RL===null)||(_KL._RL.length===0))return;for(var i=0;i<_KL._RL.length;i++){var _fM=_KL._RL._n6(i);_fM._0K=get_timer();for(var _J6=0;_J6<_fM._7J.length;
_J6++){var _lH=_fM._7J._n6(_J6);if(_lH==null)continue;this._dM(_KL,_fM,_lH);}}};_bL.prototype._gM=function(_KL,_wL,_xL,_hM){if(_KL==null||_wL==null||_xL===null)return -1;_xL._Ce=this._iM();_xL._mH=_wL;var _jM=0;if(_xL._nH!=_8J){for(var _kM=0;_kM<_wL._7J._yk.length;_kM++){var _lM=_wL._7J._yk[_kM];if(_lM==null||_lM._nH!=_8J){break;}else {if(_lM._9J!==null&&_lM._9J.active){_jM=_kM+1;}else {break;}}}}_wL._7J._uk(_jM,_xL);if(_hM){this._dM(_KL,_wL,_xL);}return _xL._Ce;};_bL.prototype._mM=function(_KL,_el,_xL,
_hM,_nM){if(_KL==null||_xL===null)return -1;var layer=this._oM(_KL,_el,_nM);if((layer==null)&&(_nM)){layer=this._pM(_KL,_el);}if(layer==null){return -1;}return this._gM(_KL,layer,_xL,_hM);};_bL.prototype._5J=function(_KL,_w4){if(!_w4)return null;_w4=_w4.toLowerCase();for(var i=0;i<_KL._RL.length;i++){var layer=_KL._RL._n6(i);if(layer===undefined||layer===null)continue;if(!layer._XJ)continue;if(layer._XJ.toLowerCase()===_w4){return layer;}}return null;};_bL.prototype._qM=function(_KL,_rM){if(_KL==null)return -1;
for(var i=0;i<_KL._RL.length;i++){var layer=_KL._RL._n6(i);if(layer!=null){for(var _J6=0;i<layer._7J.length;_J6++){var _lH=layer._7J._n6(_J6);if(_lH!=null){if(_lH._nH===_8J){if(_lH._fK==_rM){return layer._Ce;}}}}}}return -1;};_bL.prototype._OL=function(_xL){if(_xL==null)return;switch(_xL._nH){case _yJ:{this._sM(_xL);}break;case _8J:{this._tM(_xL);}break;case _zJ:{this._uM(_xL);}break;case _AJ:{this._vM(_xL);}break;case _oH:{this._wM(_xL);}break;case _BJ:{this._xM(_xL);}break;case _CJ:{this._yM(_xL);}break;case _DJ:{
this._zM(_xL);}break;case _EJ:{this._AM(_xL);}break;}_xL._gK=false;};_bL.prototype._sM=function(_BM){};_bL.prototype._tM=function(_CM){var _Hx=_Fx._n6(_CM._fK);if(_Hx!=null){_Hx._BL(false);}_CM._9J=null;};_bL.prototype._uM=function(_DM){};_bL.prototype._vM=function(_EM){};_bL.prototype._wM=function(_DM){};_bL.prototype._xM=function(_FM){};_bL.prototype._yM=function(_GM){};_bL.prototype._zM=function(_HM){if(_c4!=null){_c4._IM(_HM._Ce);}var _7M=_xC._JM(_HM._BK);_xC._bM(_7M,_rI);_xC._KM(_7M);};_bL.prototype._AM=function(_EM){
};_bL.prototype._pM=function(_KL,_el){var _LM=new _SJ();_LM._Ce=_bo._MM();_LM.depth=_el;_LM._WJ=true;_c4._RL._Vf(_LM);return _LM;};_bL.prototype._NM=function(_KL,_Z7){if(_KL==null||_Z7===null)return;if(_Z7._OM()===false){if(_Z7.__L==-1){var _wL=this._oM(_KL,_Z7.depth,true);if(_wL===null){_wL=this._pM(_KL,_Z7.depth);}this._PM(_KL,_wL,_Z7);}else {var layer=this._6J(_KL,_Z7.__L);if(layer===null)return;this._PM(_KL,layer,_Z7);}}};_bL.prototype._PM=function(_KL,_wL,_Z7){if(_KL==null||_wL==null||_Z7===null)return;
if(_Z7._OM()===false){var _QM=new _eK();_QM._fK=_Z7.id;_QM._9J=_Z7;_Z7.__L=_wL._Ce;_Z7._BL(true);_QM._gK=true;_bo._gM(_KL,_wL,_QM,false);}};_bL.prototype._RM=function(_KL,_Z7){if(_Z7._OM()===false)return;var layer=this._6J(_KL,_Z7.__L);if(layer===null){_Z7._BL(false);return;}this._SM(_KL,layer,_Z7);};_bL.prototype._TM=function(_KL,_Z7){if(_KL==null||_Z7===null)return;if(_Z7._OM()===true){for(var _J6=0;_J6<_KL._RL.length;_J6++){var layer=_KL._RL._n6(_J6);for(var i=0;i<layer._7J.length;i++){var _lH=layer._7J._n6(i);
if(_lH!=null){if(_lH._nH==_8J){if(_lH._9J==_Z7){this._JL(_KL,_lH,layer,true,false);_Z7._BL(false);_Z7.__L=-1;return;}}}}}}};_bL.prototype._SM=function(_KL,_wL,_Z7){if(_KL==null||_wL==null||_Z7===null)return;if(_Z7._OM()===true){for(var i=0;i<_wL._7J.length;i++){var _lH=_wL._7J._n6(i);if(_lH!=null){if(_lH._nH==_8J){if(_lH._9J==_Z7){this._JL(_KL,_lH,_wL,true,false);_Z7._BL(false);_Z7.__L=-1;}}}}}};_bL.prototype._UM=function(_KL,_rM){if(_KL==null)return;for(var _J6=0;_J6<_KL._RL.length;_J6++){var layer=_KL._RL._n6(_J6);
for(var i=0;i<layer._7J.length;i++){var _lH=layer._7J._n6(i);if(_lH!=null){if(_lH._nH==_8J){if(_lH._fK==_rM){this._JL(_KL,_lH,layer,true,false);return;}}}}}};_bL.prototype._VM=function(_KL,_wL,_rM){if(_KL==null||_wL==null)return;for(var i=0;i<_wL._7J.length;i++){var _lH=_wL._7J._n6(i);if(_lH!=null){if(_lH._nH==_8J){if(_lH._fK==_rM){this._JL(_KL,_lH,_wL,true,false);}}}}};_bL.prototype._WM=function(_KL,_el,_w4){if(_KL==null)return null;var _LM=new _SJ();_LM._Ce=this._MM();_LM.depth=_el;_LM._XJ=_w4;_LM._WJ=false;
_KL._RL._Vf(_LM);return _LM;};_bL.prototype._XM=function(_KL,_YM,_NL){if(_NL==undefined){_NL=true;}var layer=this._6J(_KL,_YM);if(layer!=null){for(var i=0;i<layer._7J.length;i++){var _lH=layer._7J._n6(i);if(_lH!=null){this._JL(_KL,_lH,layer,false,_NL);}}_KL._RL._pl(layer);}};_bL.prototype._ZM=function(_KL,_wL,__M,_0N){if(_KL==null)return;if(_wL==null)return;if(__M==_wL.depth)return;var _1N=_wL.depth;_wL.depth=__M;_KL._RL._pl(_wL);_KL._RL._Vf(_wL);if(_wL._WJ&&_0N){var _2N=[];var _3N=0;var _4N=_KL._RL._5N(_wL);
if(_4N!=-1){var _6N=_4N-1;while(_6N>=0){var _7N=_KL._RL._n6(_6N);if((_7N==null)||(_7N.depth==_wL.depth)){if(_7N!=null){if(_7N._WJ){_2N[_3N++]=_7N;}}_6N--;}else {break;}};_6N=_4N+1;while(_6N<_KL._RL.length){var _7N=_KL._RL._n6(_6N);if((_7N==null)||(_7N.depth==_wL.depth)){if(_7N!=null){if(_7N._WJ){_2N[_3N++]=_7N;}}_6N++;}else {break;}};for(var i=0;i<_3N;i++){var _8N=_2N[i];for(var _J6=0;_J6<_8N._7J.length;_J6++){var _lH=_8N._7J._n6(_J6);if(_lH==null)continue;if(_lH._nH==_8J){if(_lH._9J!=null){_lH._9J.__L=_wL._Ce;
}}_wL._7J._Vf(_lH);}_8N._7J._ag();_bo._XM(_KL,_8N._Ce,false);}}}};_bL.prototype._oM=function(_KL,_el,_9N){if(_KL==null)return null;for(var i=0;i<_KL._RL.length;i++){var layer=_KL._RL._n6(i);if((layer.depth===_el)&&(!_9N||(layer._WJ)))return layer;}return null;};_bL.prototype._6J=function(_KL,_yg){for(var i=0;i<_KL._RL.length;i++){var layer=_KL._RL._n6(i);if(layer._Ce===_yg)return layer;}return null;};_bL.prototype._MM=function(){if(this._dL<this._cL)this._dL=this._cL;this._dL++;return this._dL;};_bL.prototype._iM=function(){
return this._eL++;};_bL.prototype._eo=function(_KL,_aN){if(_KL==null)return null;for(var i=0;i<_KL._RL.length;i++){var layer=_KL._RL._n6(i);var _Ad=_bo._SL(layer,_aN);if(_Ad!=null)return _Ad;}return null;};_bL.prototype._WL=function(_KL,_aN){if(_KL==null)return null;for(var i=0;i<_KL._RL.length;i++){var layer=_KL._RL._n6(i);var _Ad=_bo._SL(layer,_aN);if(_Ad!=null){var _VL=new _bN();_VL._Ad=_Ad;_VL.layer=layer;return _VL;}}return null;};_bL.prototype._SL=function(_wL,_cN){if(_wL==null)return null;for(var i=0;i<_wL._7J.length;
i++){var _lH=_wL._7J._n6(i);if(_lH==null)continue;if(_lH._Ce===_cN){return _lH;}}return null;};_bL.prototype._dN=function(_wL,_eN){if(_wL==null)return null;for(var i=_wL._7J.length-1;i>=0;i--){var _lH=_wL._7J._n6(i);if(_lH==null||_lH===undefined)continue;if(_lH._nH==_eN)return _lH;}return null;};_bL.prototype._fN=function(_wL,_gN){if(_wL==null||_gN==null)return null;_gN=_gN.toLowerCase();for(var i=0;i<_wL._7J.length;i++){var _lH=_wL._7J._n6(i);if(_lH==null||_lH===undefined)continue;if(!_lH._Kl)continue;if(_lH._Kl.toLowerCase()===_gN){
return _lH;}}return null;};_bL.prototype._hN=function(_KL,_rM){if(_KL==null)return null;for(var i=0;i<_KL._RL.length;i++){var layer=_KL._RL._n6(i);if(layer!=null){for(var _J6=0;_J6<layer._7J.length;_J6++){var _lH=layer._7J._n6(_J6);if(_lH!=null){if(_lH._nH==_8J){if(_lH._fK==_rM){var _VL=new _bN();_VL._Ad=_lH;_VL.layer=layer;return _VL;}}}}}}return null;};_bL.prototype._iN=function(_KL,_aN){if(_KL==null)return null;for(var i=0;i<_KL._RL.length;i++){var layer=_KL._RL._n6(i);if(layer!=null){for(var _J6=0;_J6<layer._7J.length;
_J6++){var _lH=layer._7J._n6(_J6);if(_lH!=null){if(_lH._Ce==_aN){return layer;}}}}}return null;};_bL.prototype._jN=function(){if(_c4._RL===null||_c4._RL.length===0)return;var _kN=_c4._RL.length;var time=get_timer();for(var i=0;i<_kN;i++){var layer=_c4._RL._n6(i);var _lN=time-layer._0K;if(_lN>2000000)_lN=0;layer._AH+=layer._TJ;layer._CH+=layer._UJ;for(var _J6=0;_J6<layer._7J.length;_J6++){var _lH=layer._7J._n6(_J6);if(_lH==null)continue;var type=_lH._nH;if(type==_yJ){var _3m=_lH._iK;if(_3m!=null){if(_3m.playbackspeedtype==_f4){
_3m.image_index+=_3m.image_speed*_3m.playbackspeed;}else {var fps=_g4._h4();_3m.image_index+=(_3m.image_speed*_3m.playbackspeed)/fps;}}}else if(type==_AJ){var _mN=_m6._n6(_lH._oK);if(_mN.sequence!=null){var _nN=_lH._rK;var fps=(_mN.playbackspeedtype==_RJ)?_g4._h4():1.0;_lH._rK+=_lH._sK*(_mN.playbackspeed/fps)*_lH._pK;var _K6={headPosition:_lH._rK,_oN:_lH._sK,_pN:false};_qN(_mN.sequence,_K6);_lH._rK=_K6.headPosition;_lH._sK=_K6._oN;if((_mN.sequence._rN!=null)&&(_mN.sequence._rN[0]._nH==_sN)){var _v4=_mN.sequence._rN[0];
var _tN=_v4._uN._vN(_lH._rK,_mN.sequence._wN);if(_tN==null){_lH._tK=-1;}else {_lH._tK=_tN._Jl[0]._tK;}_xN(_mN.sequence,_lH._Ce,fps,_mN.playbackspeed,_lH._sK,_nN,_lH._rK);}}else if(_mN._ME!==undefined){_lH._tK+=_lH._pK;}else {var fps=_g4._h4();if(fps!=0.0){if(_mN.playbackspeedtype!=_RJ)fps=1.0;_lH._tK+=(_mN.playbackspeed/fps)*_lH._pK;}}}else if(type==_oH){var _yN=_0m._1m(_lH._qH);if(_yN!=null){if(_yN.framelength>0)_lH._OH=Math.floor((time/_yN.framelength)%_yN.frames);else _lH._OH=(_lH._OH+1)%_yN.frames;}
}}layer._0K=get_timer();}};_bL.prototype._zN=function(_KL){if(_KL==null)return;if(_KL._RL==null)return;var _kH,_yk;_yk=_KL._RL._yk;while(_yk.length>0){_kH=_yk[0];if(_kH==null){continue;}this._XM(_KL,_kH._Ce,false);}};_bL.prototype._AN=function(_KL){if(_KL==null)return;if(_KL._RL==null)return;for(var _p7=0;_p7<_KL._RL._yk.length;++_p7){var _wL=_KL._RL._yk[_p7];for(var e=0;e<_wL._7J._yk.length;++e){var _xL=_wL._7J._yk[e];this._OL(_xL);}}};_bL.prototype._BN=function(_KL,_CN){if(_KL===null)return;if(_CN===null)return;
if(!this._fL)this._uL();var _DN=_KL._EN;var _FN=_KL._GN;var _kN=_CN.length;{var _kH;for(var _J6=_kN-1;_J6>=0;_J6--){_kH=_CN[_J6];var _LM=new _SJ();if(_kH.pName!=undefined)_LM._XJ=_kH.pName;if(_kH.id!=undefined)_LM._Ce=_kH.id;if(_kH.depth!=undefined)_LM.depth=_kH.depth;if(_kH.x!=undefined)_LM._AH=_kH.x;if(_kH.y!=undefined)_LM._CH=_kH.y;if(_kH.hspeed!=undefined)_LM._TJ=_kH.hspeed;if(_kH.vspeed!=undefined)_LM._UJ=_kH.vspeed;if(_kH.visible!=undefined)_LM._VJ=_kH.visible;if(_kH.effectEnabled!=undefined)_LM._1K=_LM._2K=_kH.effectEnabled;
if((_kH.effectType!=undefined)&&(_kH.effectType!="")){var _HN=new _3L();_HN.pName=_kH.effectType;_HN._WA=0;for(var _c7=0;_c7<_kH.effectProperties.length;_c7++){var _IN=_kH.effectProperties[_c7].value;if((_IN=="")||_IN.includes(".png")||_IN.includes(".jpg"))continue;var _e7;for(_e7=0;_e7<_c7;_e7++){if(_kH.effectProperties[_c7].name==_kH.effectProperties[_e7].name)break;}if(_c7==_e7){_HN._WA++;}}var _JN=[];var _KN=null;var _LN=-1;var _MN="";var _NN=1;for(var _c7=0;_c7<_kH.effectProperties.length;_c7++){var _IN=_kH.effectProperties[_c7].value;
if((_IN=="")||_IN.includes(".png")||_IN.includes(".jpg"))continue;var _ON=_kH.effectProperties[_c7];if(_MN!=_ON.name){_LN++;_MN=_ON.name;_KN=new _1L();_JN[_LN]=_KN;var _PN=_ON.name;_KN.pName=_PN;var _QN=_RN(_ON.type);_NN=_QN.elements;_KN.type=_QN.type;_KN._2L=[];}var _SN=_KN.elements;_KN.elements+=_NN;var _TN=_ON.value;var _UN=_TN;switch(_ON.type){case _6L:_KN._2L[_SN]=parseFloat(_UN);break;case _7L:{if(_TN.length>0){if(_TN[0]=='#'){_UN="0x"+_TN.substring(1);_UN=parseInt(_UN);var _55=_UN;var _Y4,_Z4,__4,_05;
_Y4=(_55&0xff)/255.0;_Z4=((_55>>8)&0xff)/255.0;__4=((_55>>16)&0xff)/255.0;_05=((_55>>24)&0xff)/255.0;_KN._2L[_SN]=_Y4;_KN._2L[_SN+1]=_Z4;_KN._2L[_SN+2]=__4;_KN._2L[_SN+3]=_05;}}}break;case _8L:_KN._2L[_SN]=_UN;break;}}_HN._4L=_JN;_HN._5L=true;_LM._4K=_HN;}if(_kH.type===_rJ){var _VN=new _hK();_VN._iK=new _NJ();var _WN;_VN._iK.image_speed=1.0;if(_kH.bvisible!=undefined)_VN._iK.visible=_kH.bvisible;if(_kH.bforeground!=undefined)_VN._iK.foreground=_kH.bforeground;if(_kH.bindex!=undefined)_VN._iK.index=_kH.bindex;
if(_kH.bhtiled!=undefined)_VN._iK.htiled=_kH.bhtiled;if(_kH.bvtiled!=undefined)_VN._iK.vtiled=_kH.bvtiled;if(_kH.bblend!=undefined){_VN._iK._QJ=_6d(_kH.bblend);_VN._iK.alpha=((_kH.bblend>>24)&0xff)/255.0;}if(_kH.playbackspeedtype!=undefined)_VN._iK.playbackspeedtype=_kH.playbackspeedtype;if(_kH.bimage_speed!=undefined)_VN._iK.playbackspeed=_kH.bimage_speed;if(_kH.pName!=undefined)_VN._Kl=_kH.pName;if((_kH.bstretch!=undefined)){_VN._iK.stretch=_kH.bstretch;}if((_kH.bstretch!=undefined)&&(_kH.bstretch==true)&&(sprite_exists(_VN._iK.index))){
var value=sprite_get_width(_VN._iK.index);if(value>0)_VN._iK._OJ=_DN/value;value=sprite_get_height(_VN._iK.index);if(value>0)_VN._iK._PJ=_FN/value;}this._gM(_KL,_LM,_VN);}else if(_kH.type===_sJ){var _XN=0;if(_kH.icount!=undefined)_XN=_kH.icount;for(var i=_XN-1;i>=0;i--){var _QM=new _eK();_QM._fK=_kH.iinstIDs[i];this._gM(_KL,_LM,_QM,false);}}else if(_kH.type===_tJ){var _YN=0;if(_kH.acount!=undefined)_YN=_kH.acount;if(_YN>0){var i;for(i=_YN-1;i>=0;i--){var _ZN=new _KK();if(_kH.assets[i].ax!=undefined)_ZN._zH=_kH.assets[i].ax;
if(_kH.assets[i].ay!=undefined)_ZN._BH=_kH.assets[i].ay;if(_kH.assets[i].aindex!=undefined)_ZN._Wx=_kH.assets[i].aindex;if(_kH.assets[i].aXO!=undefined)_ZN._NK=_kH.assets[i].aXO;if(_kH.assets[i].aYO!=undefined)_ZN._OK=_kH.assets[i].aYO;if(_kH.assets[i].aW!=undefined)_ZN._LK=_kH.assets[i].aW;if(_kH.assets[i].aH!=undefined)_ZN._MK=_kH.assets[i].aH;if(_kH.assets[i].aXScale!=undefined)_ZN.__N=_kH.assets[i].aXScale;if(_kH.assets[i].aYScale!=undefined)_ZN._0O=_kH.assets[i].aYScale;if(_kH.assets[i].aBlend!=undefined){
_ZN._1O=_kH.assets[i].aBlend&0xffffff;_ZN._2O=((_kH.assets[i].aBlend>>24)&0xff)/255.0;}this._gM(_KL,_LM,_ZN,false);}}var _3O=0;if(_kH.scount!=undefined)_3O=_kH.scount;if(_3O>0){for(var i=_3O-1;i>=0;i--){var _4O=new _nK();_4O._qK=_RJ;_4O._oK=_kH.sprites[i].sIndex;_4O._rK=_kH.sprites[i].sImageIndex;_4O._sK=1.0;if(_kH.sprites[i].sPlaybackSpeedType!=undefined)_4O._qK=_kH.sprites[i].sPlaybackSpeedType;_4O._pK=_kH.sprites[i].sImageSpeed;_4O._tK=_kH.sprites[i].sImageIndex;_4O._uK=_kH.sprites[i].sXScale;_4O._vK=_kH.sprites[i].sYScale;
_4O._wK=_kH.sprites[i].sRotation;_4O._xK=_6d(_kH.sprites[i].sBlend&0xffffff);_4O._yK=((_kH.sprites[i].sBlend>>24)&0xff)/255.0;_4O._zH=_kH.sprites[i].sX;_4O._BH=_kH.sprites[i].sY;_4O._Kl=_kH.sprites[i].sName;this._gM(_KL,_LM,_4O,false);}}var _5O=0;if(_kH.ecount!=undefined)_5O=_kH.ecount;if(_5O>0){for(var i=_5O-1;i>=0;i--){var _6O=new _zK();_6O._AK=_kH.sequences[i].sIndex;_6O._CK=_kH.sequences[i].sHeadPosition;_6O._xK=_6d(_kH.sequences[i].sBlend&0xffffff);_6O._yK=((_kH.sequences[i].sBlend>>24)&0xff)/255.0;
_6O._DK=_kH.sequences[i].sXScale;_6O._EK=_kH.sequences[i].sYScale;_6O._zH=_kH.sequences[i].sX;_6O._BH=_kH.sequences[i].sY;_6O._E3=_kH.sequences[i].sRotation;_6O._Kl=_kH.sequences[i].sName;_6O._mH=_LM;_6O._pK=_kH.sequences[i].sImageSpeed;this._gM(_KL,_LM,_6O,false);}}var _7O=0;if(_kH.pcount!=undefined)_7O=_kH.pcount;if(_7O>0){for(var i=_7O-1;i>=0;--i){var _8O=_kH.particles[i];var _9O=new _HK();_9O._IK=-1;_9O._JK=_8O.sIndex;_9O._uK=_8O.sXScale;_9O._vK=_8O.sYScale;_9O._wK=_8O.sRotation;_9O._xK=_6d(_8O.sBlend&0xffffff);
_9O._yK=((_8O.sBlend>>24)&0xff)/255.0;_9O._zH=_8O.sX;_9O._BH=_8O.sY;_9O._XJ=_8O.sName;this._gM(_KL,_LM,_9O,false);}}var _aO=0;if(_kH.tcount!=undefined)_aO=_kH.tcount;if(_aO>0){for(var i=_aO-1;i>=0;i--){var _bO=new _PK();_bO._zH=_kH.textitems[i].sX;_bO._BH=_kH.textitems[i].sY;_bO._QK=_kH.textitems[i].sFontIndex;_bO._DK=_kH.textitems[i].sXScale;_bO._EK=_kH.textitems[i].sYScale;_bO._E3=_kH.textitems[i].sRotation;_bO._RK=_6d(_kH.textitems[i].sBlend&0xffffff);_bO._SK=((_kH.textitems[i].sBlend>>24)&0xff)/255.0;
_bO._TK=_kH.textitems[i].sXOrigin;_bO._UK=_kH.textitems[i].sYOrigin;_bO._VK=_kH.textitems[i].sText;_bO._WK=_kH.textitems[i].sAlignment;_bO._XK=_kH.textitems[i].sCharSpacing;_bO._YK=_kH.textitems[i].sLineSpacing;_bO._ZK=_kH.textitems[i].sFrameW;_bO.__K=_kH.textitems[i].sFrameH;_bO._0L=(_kH.textitems[i].sWrap!=0)?true:false;_bO._Kl=_kH.textitems[i].sName;this._gM(_KL,_LM,_bO,false);}}}else if(_kH.type===_uJ){if(_kH.tIndex>=0){var _cO=new _jK();_cO._qH=_kH.tIndex;_cO._DH=_kH.tMapWidth;_cO._EH=_kH.tMapHeight;
_cO._pH=_dO(_kH.ttiles);var _YN=0;if(_kH.tcount!=undefined)_YN=_kH.tcount;if(_kH.pName!=undefined)_cO._Kl=_kH.pName;this._gM(_KL,_LM,_cO,false);}}else if(_kH.type===_wJ){if(_LM._4K!=null){_LM._4K._5L=false;}}_KL._RL._Vf(_LM);this._mL(_q7(this._lL(),_LM._Ce));}}};function _RN(_eO){var type=_fO;if((_eO>=0)||(_eO<_9L)){var _gO=[_fO,_fO,_hO,];type=_gO[_eO];}var _QN={};var elements=1;switch(_eO){case _6L:break;case _7L:elements=4;break;case _8L:break;default :break;}_QN.type=type;_QN.elements=elements;return _QN;
}_bL.prototype._iO=function(_Z7){this._kL=_Z7;};_bL.prototype._jO=function(){return this._kL;};function _kO(room,_lO){if(typeof(_lO)==="string")return _bo._5J(room,yyGetString(_lO));return _bo._6J(room,yyGetInt32(_lO));};function _mO(_nO){var room=_bo._co();if(room==null)return null;return _kO(room,_nO);};function layer_get_id(_w4){var room=_bo._co();if(room==null)return -1;var _kH=_bo._5J(room,yyGetString(_w4));if(_kH!=null){return _kH._Ce;}return -1;};function layer_get_id_at_depth(_el){var room=_bo._co();if(room==null){
var _37=[];_37[0]=-1;return _37;}var _bc=[];var _kN=0;var i;for(i=0;i<room._RL.length;i++){var layer=room._RL[i];if(layer!=null){if(layer.depth==yyGetInt32(_el)){_bc[_kN++]=layer._Ce;}}}if(_kN==0){var _37=[];_37[0]=-1;return _37;}return _bc;}function layer_get_depth(_yg){var _kH=_mO(_yg);if(_kH!=null){return _kH.depth;}return -1;};function layer_create(_el,_w4){var room=_bo._co();if(room==null)return -1;var _LM=new _SJ();_LM._Ce=_bo._MM();_LM.depth=yyGetInt32(_el);_LM._XJ=yyGetString(_w4);_LM._WJ=false;if((_LM._XJ==undefined)||(_LM._XJ==null)){
_LM._XJ="_layer_"+_LM._Ce.toString(16);}room._RL._Vf(_LM);return _LM._Ce;};function layer_destroy(_0h){var room=_bo._co();var _kH=_kO(room,_0h);if(_kH!=null)_bo._XM(room,_kH._Ce);return -1;};function layer_destroy_instances(_0h){var room=_bo._co();var _kH=_kO(room,_0h);if(_kH!=null){for(var i=0;i<_kH._7J.length;i++){var _lH=_kH._7J._n6(i);if(_lH!=null){if(_lH._nH==_8J){_bo._JL(room,_lH,_kH,false,true);}}}}return -1;};function layer_add_instance(_0h,_oO){var room=_bo._co();var _kH=_kO(room,_0h);if(_kH===null)return -1;
if(room==_c4){var _Hx=_Fx._n6(yyGetInt32(_oO));if(_Hx===null)return -1;_bo._RM(room,_Hx);_bo._PM(room,_kH,_Hx);}else {var _pO=yyGetInt32(_oO);var _qO=_bo._qM(room,_pO);if(_qO!=-1){var _rO=_bo._6J(room,_qO);_bo._VM(room,_rO,_pO);}var _sO=new _eK();_sO._fK=_pO;_bo._gM(room,_kH,_sO,false);}return -1;};function _tO(_0h,_oO){var room=_bo._co();var _kH=_kO(room,_0h);if(_kH===null)return;var _Hx=_Fx._n6(yyGetInt32(_oO));if(_Hx===null)return;if(_Hx._FI===false){return;}if(_Hx.__L!=_kH._Ce){return;}_bo._SM(room,_kH,_Hx);
};function layer_has_instance(_0h,_oO){var _kH=_mO(_0h);if(_kH===null)return false;var _Hx=_Fx._n6(yyGetInt32(_oO));if(_Hx===null)return false;if(_Hx._FI===true&&_Hx.__L===_kH._Ce){return true;}return false;};function layer_instance_get_instance(_yg){var room=_bo._co();if(room!=null){var _lH=_bo._eo(room,yyGetInt32(_yg));if(_lH!=null&&_lH._nH===_8J){return _Wn(_Xn,_lH._fK);}}return _Sn;}function layer_set_visible(_0h,_oO){var _kH=_mO(_0h);if(_kH===null)return;_kH._VJ=yyGetBool(_oO);};function layer_get_visible(_0h){
var _kH=_mO(_0h);if(_kH===null)return;return _kH._VJ;};function layer_exists(_0h){var _kH=_mO(_0h);if(_kH===null)return false;return true;};function layer_script_begin(_0h,_oO){var layer=_mO(_0h);if(layer===null)return;if(typeof(_oO)==="number"){var _6a=yyGetInt32(_oO);if(_6a>=100000)_6a-=100000;layer._YJ=_aw.Scripts[yyGetInt32(_6a)];}else {layer._YJ=_oO;}if(_bo._jO()===null){var _uO=new _BI(0,0,0,0,false,true);_bo._iO(_uO);}};function layer_script_end(_0h,_oO){var layer=_mO(_0h);if(layer===null)return;if(typeof(_oO)==="number"){
var _6a=yyGetInt32(_oO);if(_6a>=100000)_6a-=100000;layer._ZJ=_aw.Scripts[yyGetInt32(_6a)];}else {layer._ZJ=_oO;}if(_bo._jO()===null){var _uO=new _BI(0,0,0,0,false,true);_bo._iO(_uO);}};function layer_shader(_0h,_oO){var layer=_mO(_0h);if(layer===null)return;layer.__J=yyGetInt32(_oO);};function _vO(_gw){var _95=_gw;var _Ai=_aw.Scripts.length;for(var _c7=0;_c7<_Ai;++_c7){if(_gw==_aw.Scripts[_c7]){_95=_c7+100000;break;}}return _95;};function layer_get_script_begin(_0h){var layer=_mO(_0h);if(layer===null)return -1;
_wO=_vO(layer._YJ);return _wO===null?-1:_wO;};function layer_get_script_end(_0h){var layer=_mO(_0h);if(layer===null)return -1;_wO=_vO(layer._ZJ);return _wO===null?-1:_wO;};function layer_get_shader(_0h){var layer=_mO(_0h);if(layer===null)return -1;return layer.__J;};function layer_set_target_room(_0h){_bo._hL=yyGetInt32(_0h);};function layer_get_target_room(){return _bo._hL;}function layer_reset_target_room(){_bo._hL=-1;}function _xO(_yO){var room=_bo._co();var _lH=_bo._eo(room,_yO);if((_lH!=null)&&(_lH._nH===_yJ)&&(_lH._iK!=null))return _lH;
return null;};function layer_background_get_id(_0h){var layer=_mO(_0h);if(layer===null)return -1;var _lH=_bo._fN(layer,layer._XJ);if(_lH!=null){return _lH._Ce;}};function layer_background_exists(_0h,_oO){var layer=_mO(_0h);if(layer===null)return false;var _lH=_bo._SL(layer,yyGetInt32(_oO));if((_lH!=null)&&(_lH._nH===_yJ)&&(_lH._iK!=null)){return true;}return false;};function layer_background_create(_0h,_oO){var room=_bo._co();if(room===null)return -1;var layer=_kO(room,_0h);if(layer!=null){var _VN=new _hK();_VN._iK=new _NJ();
var _WN;_VN._iK.visible=true;_VN._iK.foreground=false;_VN._iK.index=yyGetInt32(_oO);_VN._iK.htiled=false;_VN._iK.vtiled=false;_VN._iK._QJ=0xffffffff;_VN._iK.alpha=1;_VN._iK.image_index=0;_VN._iK.image_speed=1;_bo._gM(room,layer,_VN);return _VN._Ce;}return -1;};function layer_background_destroy(_0h){var room=_bo._co();if(room===null)return;_bo._PL(room,yyGetInt32(_0h));};function layer_background_visible(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK.visible=yyGetBool(_oO);}};function layer_background_change(_0h,
_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK.index=yyGetInt32(_oO);}};function layer_background_htiled(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK.htiled=yyGetBool(_oO);}};function layer_background_vtiled(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK.vtiled=yyGetBool(_oO);}};function layer_background_xscale(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK._OJ=yyGetReal(_oO);}};function layer_background_yscale(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){
_lH._iK._PJ=yyGetReal(_oO);}};function layer_background_stretch(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK.stretch=yyGetBool(_oO);}};function layer_background_blend(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK._QJ=_6d(yyGetInt32(_oO));}};function layer_background_alpha(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK.alpha=yyGetReal(_oO);}};function layer_background_index(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){var image_index=yyGetInt32(_oO);var _zO=sprite_get_number(_lH._iK.index);
_lH._iK.image_index=_j4(image_index,_zO);}};function layer_background_sprite(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK.index=yyGetReal(_oO);}};function layer_background_speed(_0h,_oO){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){_lH._iK.image_speed=yyGetReal(_oO);}};function layer_background_get_visible(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK.visible;}return true;};function layer_background_get_sprite(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK.index;
}return -1;};function layer_background_get_htiled(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK.htiled;}return false;};function layer_background_get_vtiled(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK.vtiled;}return false;};function layer_background_get_stretch(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK.stretch;}return false;};function layer_background_get_xscale(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK._OJ;}return 1;};function layer_background_get_yscale(_0h){
var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK._PJ;}return 1;};function layer_background_get_blend(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _6d(_lH._iK._QJ);}return 0;};function layer_background_get_alpha(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK.alpha;}return 0;};function layer_background_get_index(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){return _lH._iK.image_index;}return -1;};function layer_background_get_speed(_0h){var _lH=_xO(yyGetInt32(_0h));if(_lH!=null){
return _lH._iK.image_speed;}return 0;};function _AO(_BO){var room=_bo._co();var _lH=_bo._eo(room,_BO);if((_lH!=null)&&(_lH._nH===_AJ))return _lH;return null;};function layer_sprite_get_id(_CO,_DO){var room=_bo._co();if(room===null)return -1;var layer=_kO(room,_CO);if(layer!=null){var _Ad=_bo._fN(layer,yyGetString(_DO));if(_Ad!=null&&_Ad._nH==_AJ){return _Ad._Ce;}}return -1;};function layer_sprite_exists(_0h,_oO){var room=_bo._co();if(room===null)return false;var layer=_kO(room,_0h);if(layer===null)return false;var _lH=_bo._SL(layer,
yyGetInt32(_oO));if((_lH!=null)&&(_lH._nH===_AJ)){return true;}return false;};function layer_sprite_create(_0h,_oO,_EO,_FO){var room=_bo._co();if(room===null)return -1;var layer=_kO(room,_0h);if(layer!=null){var _GO=new _nK();_GO._oK=yyGetInt32(_FO);_GO._zH=yyGetReal(_oO);_GO._BH=yyGetReal(_EO);_bo._gM(room,layer,_GO);return _GO._Ce;}return -1;};function layer_sprite_destroy(_0h){var room=_bo._co();if(room===null)return;_bo._PL(room,yyGetInt32(_0h));};function layer_sprite_change(_0h,_oO){var _lH=_AO(_0h);if(_lH!=null){
_lH._oK=yyGetInt32(_oO);}};function layer_sprite_index(_0h,_oO){var room=_bo._co();if(room===null)return;var _lH=_bo._eo(room,yyGetInt32(_0h));if((_lH!=null)&&(_lH._nH===_AJ)){_lH._tK=yyGetInt32(_oO);var frame=yyGetInt32(_oO);var _mN=_m6._n6(_lH._oK);if(_mN!=null){if(_mN.sequence!=null&&_mN.sequence._rN!=null&&_mN.sequence._rN[0]._nH==_sN){var _HO=_mN.sequence._rN[0];var keyframeStore=_HO._uN;var _IO=keyframeStore._JO;if(_IO>0){var _KO=_j4(frame,_IO);var _LO=_KO;var _MO=_KO-_LO;_lH._rK=(keyframeStore._NO[Math.floor(_LO)]._OO+(_MO*_IO));
_lH._tK=_KO;}else {_lH._tK=frame;}}else {_lH._tK=frame;}}else {_lH._tK=frame;}}};function layer_sprite_speed(_0h,_oO){var _lH=_AO(_0h);if(_lH!=null){_lH._pK=yyGetReal(_oO);}};function layer_sprite_xscale(_0h,_oO){var _lH=_AO(_0h);if(_lH!=null){_lH._uK=yyGetReal(_oO);}};function layer_sprite_yscale(_0h,_oO){var _lH=_AO(_0h);if(_lH!=null){_lH._vK=yyGetReal(_oO);}};function layer_sprite_angle(_0h,_oO){var _lH=_AO(_0h);if(_lH!=null){_lH._wK=yyGetReal(_oO);}};function layer_sprite_blend(_0h,_oO){var _lH=_AO(_0h);
if(_lH!=null){_lH._xK=_6d(yyGetInt32(_oO));}};function layer_sprite_alpha(_0h,_oO){var _lH=_AO(_0h);if(_lH!=null){_lH._yK=yyGetReal(_oO);}};function layer_sprite_x(_0h,_oO){var _lH=_AO(_0h);if(_lH!=null){_lH._zH=yyGetReal(_oO);}};function layer_sprite_y(_0h,_oO){var _lH=_AO(_0h);if(_lH!=null){_lH._BH=yyGetReal(_oO);}};function layer_sprite_get_sprite(_0h){var _lH=_AO(_0h);if(_lH!=null){return _lH._oK;}return -1;};function layer_sprite_get_index(_0h){var _lH=_AO(_0h);if(_lH!=null){return _lH._tK;}return -1;};function layer_sprite_get_speed(_0h){
var _lH=_AO(_0h);if(_lH!=null){return _lH._pK;}return 0;};function layer_sprite_get_xscale(_0h){var _lH=_AO(_0h);if(_lH!=null){return _lH._uK;}return 1;};function layer_sprite_get_yscale(_0h){var _lH=_AO(_0h);if(_lH!=null){return _lH._vK;}return 1;};function layer_sprite_get_angle(_0h){var _lH=_AO(_0h);if(_lH!=null){return _lH._wK;}return 0;};function layer_sprite_get_blend(_0h){var _lH=_AO(_0h);if(_lH!=null){return _6d(_lH._xK);}return 0;};function layer_sprite_get_alpha(_0h){var _lH=_AO(_0h);if(_lH!=null){return _lH._yK;
}return 0;};function layer_sprite_get_x(_0h){var _lH=_AO(_0h);if(_lH!=null){return _lH._zH;}return 0;};function layer_sprite_get_y(_0h){var _lH=_AO(_0h);if(_lH!=null){return _lH._BH;}return 0;};function _PO(_QO){var room=_bo._co();var _lH=_bo._eo(room,_QO);if((_lH!=null)&&(_lH._nH===_EJ))return _lH;return null;};function layer_text_get_id(_CO,_RO){var room=_bo._co();if(room===null)return -1;var layer=_kO(room,_CO);if(layer!=null){var _Ad=_bo._fN(layer,yyGetString(_RO));if(_Ad!=null&&_Ad._nH==_EJ){return _Ad._Ce;}}return -1;
};function layer_text_exists(_CO,_SO){var room=_bo._co();if(room===null)return false;var layer=_kO(room,_CO);if(layer===null)return false;var _lH=_bo._SL(layer,yyGetInt32(_SO));if((_lH!=null)&&(_lH._nH===_EJ)){return true;}return false;};function layer_text_create(_CO,_96,_a6,_8z,_uw){var room=_bo._co();if(room===null)return -1;var layer=_kO(room,_CO);if(layer!=null){var _TO=new _PK();_TO._QK=_UO(_8z,_VO,_Fw.Fonts.length,_Fw.Fonts);_TO._zH=yyGetReal(_96);_TO._BH=yyGetReal(_a6);_TO._VK=yyGetString(_uw);_bo._gM(room,
layer,_TO);return _TO._Ce;}return -1;};function layer_text_destroy(_WO){var room=_bo._co();if(room===null)return;_bo._PL(room,yyGetInt32(_WO));};function layer_text_font(_WO,_8z){var _lH=_PO(_WO);if(_lH!=null){_lH._QK=_UO(_8z,_VO,_Fw.Fonts.length,_Fw.Fonts);}};function layer_text_text(_WO,_uw){var _lH=_PO(_WO);if(_lH!=null){_lH._VK=yyGetString(_uw);}};function layer_text_halign(_WO,_XO){var _lH=_PO(_WO);if(_lH!=null){var _6z=yyGetInt32(_XO);_lH._WK=(_lH._WK&~0xff)|(_6z&0xff);}};function layer_text_valign(_WO,
_YO){var _lH=_PO(_WO);if(_lH!=null){var _7z=yyGetInt32(_YO);_lH._WK=(_lH._WK&0xff)|((_7z&0xff)<<8);}};function layer_text_x(_WO,_96){var _lH=_PO(_WO);if(_lH!=null){_lH._zH=yyGetReal(_96);}};function layer_text_y(_WO,_a6){var _lH=_PO(_WO);if(_lH!=null){_lH._BH=yyGetReal(_a6);}};function layer_text_xscale(_WO,_Qm){var _lH=_PO(_WO);if(_lH!=null){_lH._DK=yyGetReal(_Qm);}};function layer_text_yscale(_WO,_Rm){var _lH=_PO(_WO);if(_lH!=null){_lH._EK=yyGetReal(_Rm);}};function layer_text_angle(_WO,_d6){var _lH=_PO(_WO);
if(_lH!=null){_lH._E3=yyGetReal(_d6);}};function layer_text_blend(_WO,_AE){var _lH=_PO(_WO);if(_lH!=null){_lH._RK=_6d(yyGetInt32(_AE));}};function layer_text_alpha(_WO,_ga){var _lH=_PO(_WO);if(_lH!=null){_lH._SK=yyGetReal(_ga);}};function layer_text_xorigin(_WO,_ZO){var _lH=_PO(_WO);if(_lH!=null){_lH._TK=yyGetReal(_ZO);}};function layer_text_yorigin(_WO,__O){var _lH=_PO(_WO);if(_lH!=null){_lH._UK=yyGetReal(__O);}};function layer_text_charspacing(_WO,_0P){var _lH=_PO(_WO);if(_lH!=null){_lH._XK=yyGetReal(_0P);
}};function layer_text_linespacing(_WO,_1P){var _lH=_PO(_WO);if(_lH!=null){_lH._YK=yyGetReal(_1P);}};function layer_text_framew(_WO,_2P){var _lH=_PO(_WO);if(_lH!=null){_lH._ZK=yyGetReal(_2P);}};function layer_text_frameh(_WO,_3P){var _lH=_PO(_WO);if(_lH!=null){_lH.__K=yyGetReal(_3P);}};function layer_text_wrap(_WO,_4P){var _lH=_PO(_WO);if(_lH!=null){_lH._0L=yyGetBool(_4P);}};function layer_text_get_font(_WO){var _lH=_PO(_WO);if(_lH!=null){return _Wn(_VO,_lH._QK);}return -1;};function layer_text_get_text(_WO){
var _lH=_PO(_WO);if(_lH!=null){return _lH._VK;}return -1;};function layer_text_get_halign(_WO){var _lH=_PO(_WO);if(_lH!=null){return(_lH._WK&0xff);}return 0;};function layer_text_get_valign(_WO){var _lH=_PO(_WO);if(_lH!=null){return((_lH._WK>>8)&0xff);}return 0;};function layer_text_get_x(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._zH;}return 0;};function layer_text_get_y(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._BH;}return 0;};function layer_text_get_xscale(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._DK;
}return 1;};function layer_text_get_yscale(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._EK;}return 1;};function layer_text_get_angle(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._E3;}return 0;};function layer_text_get_blend(_WO){var _lH=_PO(_WO);if(_lH!=null){return _6d(_lH._RK);}return 0xffffff;};function layer_text_get_alpha(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._SK;}return 1;};function layer_text_get_xorigin(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._TK;}return 0;};function layer_text_get_yorigin(_WO){
var _lH=_PO(_WO);if(_lH!=null){return _lH._UK;}return 0;};function layer_text_get_charspacing(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._XK;}return 0;};function layer_text_get_linespacing(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._YK;}return 0;};function layer_text_get_framew(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._ZK;}return 0;};function layer_text_get_frameh(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH.__K;}return 0;};function layer_text_get_wrap(_WO){var _lH=_PO(_WO);if(_lH!=null){return _lH._0L;
}return 0;};function _5P(_6P){var room=_bo._co();var _lH=_bo._eo(room,_6P);if((_lH!=null)&&(_lH._nH===_oH))return _lH;return null;}function layer_tilemap_get_id(_0h){var room=_bo._co();if(room===null)return _Wn(_0o,-1);var layer=_kO(room,_0h);if(layer!=null){var _Ad=_bo._dN(layer,_oH);if(_Ad!=null&&_Ad._nH==_oH){return _Wn(_0o,_Ad._Ce);}}return _Wn(_0o,-1);};function layer_tilemap_exists(_0h,_oO){var room=_bo._co();if(room===null)return false;var layer=_kO(room,_0h);if(layer!=null){var _Ad=_bo._SL(layer,yyGetInt32(_oO));
if(_Ad!=null&&_Ad._nH==_oH){return true;}}return false;};function layer_tilemap_create(_0h,_oO,_EO,_FO,_7P,_8P){var room=_bo._co();if(room===null)return _Wn(_0o,-1);;var layer=_kO(room,_0h);if(layer!=null){var _cO=new _jK();_cO._qH=yyGetInt32(_FO);_cO._DH=yyGetInt32(_7P);_cO._EH=yyGetInt32(_8P);_cO._zH=yyGetReal(_oO);_cO._BH=yyGetReal(_EO);_cO._pH=[];var _YN=0;_YN=_7P*_8P;for(var i=0;i<_YN;i++){_cO._pH[i]=0;}_bo._gM(room,layer,_cO,true);return _Wn(_0o,_cO._Ce);}return _Wn(_0o,-1);};function layer_tilemap_destroy(_0h){
var room=_bo._co();if(room===null)return;_bo._PL(room,yyGetInt32(_0h));};function layer_x(_0h,_oO){var layer=_mO(_0h);if(layer!=null){layer._AH=yyGetReal(_oO);}};function layer_y(_0h,_oO){var layer=_mO(_0h);if(layer!=null){layer._CH=yyGetReal(_oO);}};function layer_get_x(_0h){var layer=_mO(_0h);if(layer!=null){return layer._AH;}return 0;};function layer_get_y(_0h){var layer=_mO(_0h);if(layer!=null){return layer._CH;}return 0;};function layer_hspeed(_9P,speed){var layer=_mO(_9P);if(layer!=null){layer._TJ=yyGetReal(speed);
}return 0;};function layer_vspeed(_9P,speed){var layer=_mO(_9P);if(layer!=null){layer._UJ=yyGetReal(speed);}return 0;};function layer_get_hspeed(_9P){var layer=_mO(_9P);if(layer!=null){return layer._TJ;}return 0;};function layer_get_vspeed(_9P){var layer=_mO(_9P);if(layer!=null){return layer._UJ;}return 0;};function tilemap_tileset(_0h,_oO){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){_lH._qH=yyGetInt32(_oO);}};function tilemap_x(_0h,_oO){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){_lH._zH=yyGetReal(_oO);}};function tilemap_y(_0h,
_oO){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){_lH._BH=yyGetReal(_oO);}};function tilemap_set(_0h,_oO,_EO,_FO){_EO=yyGetInt32(_EO);_FO=yyGetInt32(_FO);var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){if(_EO<0){debug("tilemap_set_tile called with negative x coord, fails");return;}if(_FO<0){debug("tilemap_set_tile called with negative y coord, fails");return;}if(_EO>=_lH._DH){debug("tilemap_set_tile called with x coord greater than map width, fails");return;}if(_FO>=_lH._EH){debug("tilemap_set_tile called with y coord greater than map height, fails");
return;}var x=_EO;var y=_FO;var _yN=_0m._1m(_lH._qH);var _aP=yyGetInt32(_oO);var _KH=((_aP>>_LH)&_MH);if(_yN!=null&&_KH>=_yN.tilecount){debug("layer_tilemap_set_tile() - tile index outside tile set count");return;}var index=(y*_lH._DH)+x;_lH._pH[index]=_aP;}};/*@constructor */function _bN(){this._Ad=-1;this.layer=-1;};function tilemap_set_at_pixel(_0h,_oO,_EO,_FO){var room=_bo._co();var _95=_bo._WL(room,yyGetInt32(_0h));if(_95==null)return -1;var _lH=_95._Ad;var _wL=_95.layer;if((_lH!=null)&&(_lH._nH===_oH)){
var _yN=_0m._1m(_lH._qH);var _bP=_yN.tilewidth;var _cP=_yN.tileheight;var _dP=1/_bP;var _eP=1/_cP;var _fP=_lH._zH+_wL._AH;var _gP=_lH._BH+_wL._CH;var _hP=_lH._DH*_bP;var _iP=_lH._EH*_cP;var x=yyGetReal(_EO);var y=yyGetReal(_FO);x-=_fP;y-=_gP;if(x<0)return -1;if(y<0)return -1;if(x>=_hP)return -1;if(y>_iP)return -1;var _jP=Math.floor(x*_dP);var _kP=Math.floor(y*_eP);_jP=_q7(0,_r7(_jP,_lH._DH));_kP=_q7(0,_r7(_kP,_lH._EH));var index=_kP*_lH._DH+_jP;var _aP=yyGetInt32(_oO);var _KH=((_aP>>_LH)&_MH);if(_yN!=null&&_KH>=_yN.tilecount){
debug("tilemap_set_tile_at_pixel() - tile index outside tile set count");return;}_lH._pH[index]=_aP;}};function tileset_get_texture(_c5){var _jk=_0m._1m(yyGetInt32(_c5));if(_jk){return({_Yc:_jk._6m.texture,_Zc:_jk._6m});}return null;}function tileset_get_name(_c5){var _jk=_0m._1m(yyGetInt32(_c5));if(!_jk)return "";return _jk.pName;}function tileset_get_uvs(_c5){var _jk=_0m._1m(yyGetInt32(_c5));if(_jk){var _k5=_jk._6m;var texture=_k5.texture;var _gn=1.0/texture._fd;var _hn=1.0/texture._gd;var _in=[];_in.push(_k5.x*_gn,
_k5.y*_hn,(_k5.x+_k5.CropWidth)*_gn,(_k5.y+_k5.CropHeight)*_hn);return _in;}return null;}function tileset_get_info(_c5){var _jk=_0m._1m(yyGetInt32(_c5));var _95=undefined;if(_jk){_95=new _Lz();var _k5=_jk._6m;var texture=_k5.texture;variable_struct_set(_95,"width",texture.width);variable_struct_set(_95,"height",texture.height);variable_struct_set(_95,"texture",_k5.tp);variable_struct_set(_95,"tile_width",_jk.tilewidth);variable_struct_set(_95,"tile_height",_jk.tileheight);variable_struct_set(_95,"tile_horizontal_separator",
_jk.tilehsep);variable_struct_set(_95,"tile_vertical_separator",_jk.tilevsep);variable_struct_set(_95,"tile_columns",_jk.tilecolumns);variable_struct_set(_95,"tile_count",_jk.tilecount);variable_struct_set(_95,"sprite_index",_jk._sH);variable_struct_set(_95,"frame_count",_jk.frames);variable_struct_set(_95,"frame_length_ms",_jk.framelength);var frames=new _Lz();for(var _s7=0;_s7<_jk.tilecount;++_s7){var _lP=true;for(var _nv=0;_lP&&_nv<_jk.frames;++_nv){var _kI=_jk.framedata[(_s7*_jk.frames)+_nv];if(_kI==0)break;
_lP=(_kI==_s7);}if(_lP)continue;var _dE=[];for(var _nv=0;_nv<_jk.frames;++_nv){var _kI=_jk.framedata[(_s7*_jk.frames)+_nv];if(_kI==0)break;_dE[_nv]=_kI;}variable_struct_set(frames,_s7.toString(),_dE);}variable_struct_set(_95,"frames",frames);}return _95;}function tilemap_get_tileset(_0h){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){return _lH._qH;}return -1;};function tilemap_get_tile_width(_0h){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){var _yN=_0m._1m(_lH._qH);if(_yN!=null){return _yN.tilewidth;}}return -1;}
;function tilemap_get_tile_height(_0h){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){var _yN=_0m._1m(_lH._qH);if(_yN!=null){return _yN.tileheight;}}return -1;};function tilemap_get_width(_0h){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){return _lH._DH;}return -1;};function tilemap_get_height(_0h){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){return _lH._EH;}return -1;};function _mP(_nP,_oP,_pP){if(_oP<1)_oP=1;if(_pP<1)_pP=1;var tiles=[];var _YN=_oP*_pP;for(var i=0;i<_YN;++i){tiles[i]=0;}var src=0;var _Ya=0;for(var y=0;y<Math.min(_pP,
_nP._EH);++y){var _c9=Math.min(_oP,_nP._DH);for(var i=0;i<_c9;++i)tiles[_Ya+i]=_nP._pH[src+i];src+=_nP._DH;_Ya+=_oP;}_nP._pH=tiles;_nP._DH=_oP;_nP._EH=_pP;}function tilemap_set_width(_nP,_oP){var _lH=_5P(yyGetInt32(_nP));if(_lH!=null){_mP(_lH,yyGetInt32(_oP),_lH._EH);}}function tilemap_set_height(_nP,_pP){var _lH=_5P(yyGetInt32(_nP));if(_lH!=null){_mP(_lH,_lH._DH,yyGetInt32(_pP));}}function tilemap_get_x(_0h){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){return _lH._zH;}return -1;};function tilemap_get_y(_0h){
var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){return _lH._BH;}return -1;};function tilemap_get(_0h,_oO,_EO){_oO=yyGetInt32(_oO);_EO=yyGetInt32(_EO);var room=_bo._co();if(room==null){return 0;}var _lH=_bo._eo(room,yyGetInt32(_0h));if((_lH!=null)&&(_lH._nH===_oH)){if(_oO<0){debug("tilemap_get_tile called with negative x coord, fails");return;}if(_EO<0){debug("tilemap_get_tile called with negative y coord, fails");return;}if(_oO>=_lH._DH){debug("tilemap_get_tile called with x coord greater than map width, fails");
return;}if(_EO>=_lH._EH){debug("tilemap_get_tile called with y coord greater than map height, fails");return;}var index=(_EO*_lH._DH)+_oO;return _lH._pH[index];}return -1;};function tilemap_get_at_pixel(_0h,_oO,_EO){var room=_bo._co();var _95=_bo._WL(room,yyGetInt32(_0h));if(_95==null){return -1;}var _lH=_95._Ad;var _wL=_95.layer;if((_lH!=null)&&(_lH._nH===_oH)){var _yN=_0m._1m(_lH._qH);var _bP=_yN.tilewidth;var _cP=_yN.tileheight;var _dP=1/_bP;var _eP=1/_cP;var _fP=_lH._zH+_wL._AH;var _gP=_lH._BH+_wL._CH;var _hP=_lH._DH*_bP;
var _iP=_lH._EH*_cP;var x=yyGetReal(_oO);var y=yyGetReal(_EO);x-=_fP;y-=_gP;if(x<0)return -1;if(y<0)return -1;if(x>=_hP)return -1;if(y>_iP)return -1;var _jP=Math.floor(x*_dP);var _kP=Math.floor(y*_eP);_jP=_q7(0,_r7(_jP,_lH._DH));_kP=_q7(0,_r7(_kP,_lH._EH));var index=_kP*_lH._DH+_jP;return _lH._pH[index];}return -1;};function tilemap_get_cell_x_at_pixel(_0h,_oO,_EO){var room=_bo._co();var _95=_bo._WL(room,yyGetInt32(_0h));if(_95==null){return -1;}var _lH=_95._Ad;var _wL=_95.layer;if((_lH!=null)&&(_lH._nH===_oH)){var _yN=_0m._1m(_lH._qH);
var _bP=_yN.tilewidth;var _cP=_yN.tileheight;var _dP=1/_bP;var _eP=1/_cP;var _fP=_lH._zH+_wL._AH;var _gP=_lH._BH+_wL._CH;var _hP=_lH._DH*_bP;var _iP=_lH._EH*_cP;var x=yyGetReal(_oO);var y=yyGetReal(_EO);x-=_fP;y-=_gP;if(x<0)return -1;if(y<0)return -1;if(x>=_hP)return -1;if(y>_iP)return -1;return(Math.floor(x*_dP));}return -1;};function tilemap_get_cell_y_at_pixel(_0h,_oO,_EO){var room=_bo._co();var _95=_bo._WL(room,yyGetInt32(_0h));if(_95==null){return -1;}var _lH=_95._Ad;var _wL=_95.layer;if((_lH!=null)&&(_lH._nH===_oH)){
var _yN=_0m._1m(_lH._qH);var _bP=_yN.tilewidth;var _cP=_yN.tileheight;var _dP=1/_bP;var _eP=1/_cP;var _fP=_lH._zH+_wL._AH;var _gP=_lH._BH+_wL._CH;var _hP=_lH._DH*_bP;var _iP=_lH._EH*_cP;var x=yyGetReal(_oO);var y=yyGetReal(_EO);x-=_fP;y-=_gP;if(x<0)return -1;if(y<0)return -1;if(x>=_hP)return -1;if(y>_iP)return -1;return(Math.floor(y*_eP));}return -1;};function tilemap_clear(_0h,_oO){var room=_bo._co();var _95=_bo._WL(room,yyGetInt32(_0h));if(_95==null){return;}var _lH=_95._Ad;var _wL=_95.layer;if((_lH!=null)&&(_lH._nH===_oH)&&(_wL!=null)){
var _8H=yyGetInt32(_oO);var index=0;for(var i=0;i<_lH._DH;i++){for(var _J6=0;_J6<_lH._EH;_J6++,index++){_lH._pH[index]=_8H;}}}};function tilemap_set_global_mask(_0h){_bo._tL(yyGetInt32(_0h));};function tilemap_get_global_mask(){return _bo._IH();};function tilemap_get_mask(_0h){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){return _lH._JH;}return -1;};function tilemap_get_frame(_0h){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){return _lH._OH;}return -1;};function tilemap_set_mask(_0h,_oO){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){
_lH._JH=yyGetInt32(_oO);}};function draw_tilemap(_Hx,_0h,_oO,_EO){var _lH=_5P(yyGetInt32(_0h));if(_lH!=null){var room=_bo._co();var x=yyGetReal(_oO);var y=yyGetReal(_EO);var depth=_Fb;room._qP(_5F,null,_lH,x,y,depth);}};function tile_set_empty(_0h){var _aP=yyGetInt32(_0h);_aP&=(~_MJ);return _aP;};function tile_set_index(_0h,_oO){var _aP=yyGetInt32(_0h);var _rP=yyGetInt32(_oO);_aP&=(~_MJ);_aP|=_rP<<_LH;return _aP;};function tile_set_flip(_0h,_oO){var _sP=yyGetBool(_oO);var _aP=yyGetInt32(_0h);if(_sP)_aP|=_cH;else _aP&=(~_cH);
return _aP;};function tile_set_mirror(_0h,_oO){var _sP=yyGetBool(_oO);var _aP=yyGetInt32(_0h);if(_sP)_aP|=_aH;else _aP&=(~_aH);return _aP;};function tile_set_rotate(_0h,_oO){var _sP=yyGetBool(_oO);var _aP=yyGetInt32(_0h);if(_sP)_aP|=_JJ;else _aP&=(~_JJ);return _aP;};function tile_get_empty(_0h){return(yyGetInt32(_0h)&_MJ)?0.0:1.0;};function tile_get_index(_0h){var _aP=yyGetInt32(_0h);var index=(_aP&_MJ)>>_LH;return index;};function tile_get_flip(_0h){var _aP=yyGetInt32(_0h);return((_aP&_cH)?true:false);};function tile_get_mirror(_0h){
var _aP=yyGetInt32(_0h);return((_aP&_aH)?true:false);};function tile_get_rotate(_0h){var _aP=yyGetInt32(_0h);return((_aP&_JJ)?true:false);};function _tP(_1k,_pA){if(_pA!=undefined){var _Jk=Object.getOwnPropertyNames(_pA);_Jk=_Jk.filter(_Je=>!_Je.startsWith("__"));for(var i=0;i<_Jk.length;i++){var prop=_Jk[i];_uP=g_instance_names[prop];var _H5=_pA[prop];if((typeof _H5=='function')&&_H5._vP&&_H5._dk&&(_H5._dk==_pA)){_H5=method(_1k,_H5);}if(_uP==undefined){_1k[prop]=_H5;}else if(_uP[1]){if(_uP[3]!=null){var _nv=undefined;
if((typeof g_var2obf!=="undefined")&&(g_var2obf[_uP[3]]!=undefined)){_nv=_1k[g_var2obf[_uP[3]]];}else {_nv=_1k[_uP[3]];}if(typeof _nv=='function'){_nv.call(_1k,_H5);}}else {_1k[prop]=_H5;}}}}}function instance_create_depth(_96,_a6,_el,_wP,_xP){if(_bo._co()!=_c4)return -1;if(_el==undefined)_el=0;_wP=yyGetInt32(_wP);var _Dx=_14._n6(_wP);if(!_Dx){_q5("Error: Trying to create an instance using non-existent object type ("+_wP+")");return _Sn;}var _Hx=_c4._yP(yyGetReal(_96),yyGetReal(_a6),yyGetInt32(_el),_wP);
if(_Hx!=null){_Hx._w6(_HI,0,_Hx,_Hx);_tP(_Hx,_xP);_Hx._w6(_II,0,_Hx,_Hx);return _Wn(_Xn,_Hx.id);}return _Sn;};function instance_create_layer(_96,_a6,_CO,_ck,_xP){if(_bo._co()!=_c4)return -1;_ck=yyGetInt32(_ck);var _Dx=_14._n6(_ck);if(!_Dx){_q5("Error: Trying to create an instance using non-existent object type ("+_ck+")");return _Sn;}var layer=-1;if(typeof(_CO)=="string")layer=_bo._5J(_c4,yyGetString(_CO));else layer=_bo._6J(_c4,yyGetInt32(_CO));if(layer!=null&&layer!=-1){var _9o=_c4._zP(yyGetReal(_96),yyGetReal(_a6),
layer,_ck);_9o._w6(_HI,0,_9o,_9o);_tP(_9o,_xP);_9o._w6(_II,0,_9o,_9o);return _Wn(_Xn,_9o.id);}else {_q5("Error: Trying to create an instance on a non-existant layer");}return _Sn;};function layer_get_all(){var room=_bo._co();var _37=[];if(room==null){return _37;}var _kN=0;for(var i=0;i<room._RL.length;i++){var layer=room._RL._n6(i);if(layer!=null){if(layer._WJ==false){_37[_kN++]=layer._Ce;}}}return _37;};function layer_get_all_elements(_CO){var room=_bo._co();var layer=_kO(room,_CO);var _37=[];var _AP=0;if(layer!=null){
for(var i=0;i<layer._7J.length;i++){var _lH=layer._7J._n6(i);if(_lH!=null){_37[_AP++]=_lH._Ce;}}}return _37;};function layer_get_name(_CO){var layer=_mO(_CO);if(layer!=null){if(layer._XJ==null){return "";}else {return layer._XJ.slice(0);}}return "";};function layer_depth(_CO,_el){var room=_bo._co();var layer=_kO(room,_CO);if(layer!=null){_el=yyGetInt32(_el);if(layer.depth==_el){return;}_bo._ZM(room,layer,_el,false);}};function layer_get_element_layer(_QL){var room=_bo._co();var _VL=_bo._WL(room,yyGetInt32(_QL));
if(_VL!=null){return _VL.layer._Ce;}return -1;};function layer_get_element_type(_QL){var room=_bo._co();if(room==null){return -1;}var _lH=_bo._eo(room,yyGetInt32(_QL));if(_lH!=null){return _lH._nH;}return -1;};function layer_element_move(_QL,_BP){var room=_bo._co();var _VL=_bo._WL(room,yyGetInt32(_QL));if(_VL==null){return -1;}var _CP=_bo._6J(room,yyGetInt32(_BP));if(_CP!=null){_bo._TL(room,_VL._Ad,_CP);}};function layer_force_draw_depth(_pL,_el){_bo._oL(yyGetBool(_pL));_bo._qL(yyGetInt32(_el));};function layer_is_draw_depth_forced(){
return _bo._rL()?true:false;};function layer_get_forced_depth(){return _bo._sL();};function _DP(_EP){var room=_bo._co();var _lH=_bo._eo(room,yyGetInt32(_EP));if((_lH!=null)&&(_lH._nH===_CJ))return _lH;return null;}function layer_tile_exists(_CO,_FP){var room=_bo._co();if(room==null){return 0;}if(arguments.length==1){var _lH=_bo._eo(room,yyGetInt32(_CO));if(_lH!=null){return 1;}}else {var layer=null;if(typeof(_CO)=="string")layer=_bo._5J(room,yyGetString(_CO));else layer=_bo._6J(room,yyGetInt32(_CO));if(layer!=null){
var _lH=_bo._SL(layer,yyGetInt32(_FP));if(_lH!=null){return 1;}}}return 0;};function layer_tile_create(_CO,_96,_a6,_GP,_Lm,_Mm,_89,_99){var room=_bo._co();var layer=layer=_kO(room,_CO);if(layer!=null){var _HP=new _KK();_HP._Wx=yyGetInt32(_GP);_HP._zH=yyGetReal(_96);_HP._BH=yyGetReal(_a6);_HP._NK=yyGetInt32(_Lm);_HP._OK=yyGetInt32(_Mm);_HP._LK=yyGetInt32(_89);_HP._MK=yyGetInt32(_99);_HP._VJ=true;_bo._gM(room,layer,_HP,room==_c4?true:false);return _HP._Ce;}};function layer_tile_destroy(_QL){var room=_bo._co();
_bo._PL(room,yyGetInt32(_QL));return -1;};function layer_tile_change(_EP,_mN){var _lH=_DP(_EP);if(_lH!=null){_lH._Wx=yyGetInt32(_mN);}};function layer_tile_xscale(_EP,scale){var _lH=_DP(_EP);if(_lH!=null){_lH._uK=yyGetReal(scale);}};function layer_tile_yscale(_EP,scale){var _lH=_DP(_EP);if(_lH!=null){_lH._vK=yyGetReal(scale);}};function layer_tile_blend(_EP,_55){var _lH=_DP(_EP);if(_lH!=null){_lH._xK=yyGetInt32(_55);}};function layer_tile_alpha(_EP,alpha){var _lH=_DP(_EP);if(_lH!=null){_lH._yK=yyGetReal(alpha);
}};function layer_tile_x(_EP,x){var _lH=_DP(_EP);if(_lH!=null){_lH._zH=yyGetReal(x);}};function layer_tile_y(_EP,y){var _lH=_DP(_EP);if(_lH!=null){_lH._BH=yyGetReal(y);}};function layer_tile_region(_EP,left,top,width,height){var _lH=_DP(_EP);if(_lH!=null){_lH._NK=yyGetInt32(left);_lH._OK=yyGetInt32(top);_lH._LK=yyGetInt32(width);_lH._MK=yyGetInt32(height);}};function layer_tile_visible(_EP,visible){var _lH=_DP(_EP);if(_lH!=null){_lH._VJ=yyGetBool(visible);}};function layer_tile_get_sprite(_EP){var _lH=_DP(_EP);
if(_lH!=null){return _lH._Wx;}return -1;};function layer_tile_get_xscale(_EP){var _lH=_DP(_EP);if(_lH!=null){return _lH._uK;}return 1;};function layer_tile_get_yscale(_EP){var _lH=_DP(_EP);if(_lH!=null){return _lH._vK;}return 1;};function layer_tile_get_blend(_EP){var _lH=_DP(_EP);if(_lH!=null){return _lH._xK;}return 0;};function layer_tile_get_alpha(_EP){var _lH=_DP(_EP);if(_lH!=null){return _lH._yK;}return 0;};function layer_tile_get_x(_EP){var _lH=_DP(_EP);if(_lH!=null){return _lH._zH;}return 0;};function layer_tile_get_y(_EP){
var _lH=_DP(_EP);if(_lH!=null){return _lH._BH;}return 0;};function layer_tile_get_region(_EP){var _lH=_DP(_EP);if(_lH!=null){var _37=[];_37[0]=_lH._NK;_37[1]=_lH._OK;_37[2]=_lH._LK;_37[3]=_lH._MK;return _37;}return -1;};function layer_tile_get_visible(_EP){var _lH=_DP(_EP);if(_lH!=null){return _lH._VJ;}return false;};function _IP(_JP){var room=_bo._co();var _lH=_bo._eo(room,_JP);if(_lH!=null&&_lH._nH==_DJ){return _lH;}return null;};function layer_sequence_get_instance(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH==null){
return -1;}var _Hx=_xC._JM(_lH._BK);return _Hx!=null?_Hx:-1;};function layer_sequence_create(_9P,_KP,_LP,_MP){_MP=yyGetInt32(_MP);var room=_bo._co();var layer=null;if(typeof(_9P)=="string"){layer=_bo._5J(room,yyGetString(_9P));}else {layer=_bo._6J(room,yyGetInt32(_9P));}if(layer==null){return -1;}var sequence=_xC._NP(_MP);if(sequence==null){return -1;}var _OP=new _zK();_OP._AK=_MP;_OP._CK=0;_OP._RK=-1;_OP._DK=1;_OP._EK=1;_OP._zH=yyGetReal(_KP);_OP._BH=yyGetReal(_LP);_OP._E3=0;_OP._Kl=sequence.name;_bo._gM(room,
layer,_OP,room==_c4?true:false);return _OP._Ce;}function layer_sequence_destroy(_JP){var room=_bo._co();var _lH=_IP(yyGetInt32(_JP));if(_lH==null){return -1;}var _Hx=_xC._JM(_lH._BK);if(_Hx!=null){_xC._bM(_Hx,_KI);}_bo._PL(room,yyGetInt32(_JP));}function layer_sequence_exists(_0h,_oO){var layer=_mO(_0h);var _lH=_bo._SL(layer,yyGetInt32(_oO));if((_lH!=null)&&(_lH._nH===_DJ))if(_lH!=null){return true;}return false;};function layer_sequence_x(_JP,_PP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);
if(_QP!=null){_lH._zH=yyGetReal(_PP);_lH._FK._RP(_SP);}}return -1;};function layer_sequence_y(_JP,_TP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){_lH._BH=yyGetReal(_TP);_lH._FK._RP(_SP);}}return -1;};function layer_sequence_angle(_JP,angle){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){_lH._E3=yyGetReal(angle);_lH._FK._RP(_UP);}}return -1;};function layer_sequence_xscale(_JP,_OJ){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);
if(_QP!=null){_lH._DK=yyGetReal(_OJ);_lH._FK._RP(_VP);}}return -1;};function layer_sequence_yscale(_JP,_PJ){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){_lH._EK=yyGetReal(_PJ);_lH._FK._RP(_VP);}}return -1;};function layer_sequence_headpos(_JP,position){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){var _WP=_xC._NP(_QP._AK);var _XP=yyGetReal(position);_XP=_q7(_XP,0.0);if(_WP!=null){var length=_WP._wN;_XP=_r7(_XP,length);}if((_QP._CK!=_XP)||(_QP._YP!=_XP)){
_QP._CK=_XP;_QP._YP=_XP;_lH._FK._RP(_ZP);}}}return -1;};function layer_sequence_headdir(_JP,direction){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){direction=yyGetReal(direction);if(direction!=0){_QP.__P=Math.sign(direction);}}}return -1;};function layer_sequence_pause(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){_QP._KC();}}return -1;};function layer_sequence_play(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);
if(_QP!=null){_QP._0Q();if(_QP._1Q){if(_QP.__P<0.0){var _WP=_xC._NP(_QP._AK);if(_WP!=null){_QP._CK=_QP._YP=(_WP._wN-1);}}else {_QP._CK=_QP._YP=0.0;}_QP._1Q=false;}}}return -1;};function layer_sequence_speedscale(_JP,_2Q){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){_2Q=yyGetReal(_2Q);_QP._9M=_2Q;}}return -1;};function layer_sequence_get_x(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){return _lH._zH;}return -1;};function layer_sequence_get_y(_JP){var _lH=_IP(yyGetInt32(_JP));
if(_lH!=null){return _lH._BH;}return -1;};function layer_sequence_get_angle(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){return _lH._E3;}return -1;};function layer_sequence_get_xscale(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){return _lH._DK;}return -1;};function layer_sequence_get_yscale(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){return _lH._EK;}return -1;};function layer_sequence_get_headpos(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){return _QP._CK;}}return -1;
};function layer_sequence_get_headdir(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){return _QP.__P;}}return -1;};function layer_sequence_get_sequence(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){var _WP=_xC._NP(_QP._AK);if(_WP!=null){return _WP;}}}return -1;};function layer_sequence_is_paused(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){return _QP._GC;}}return -1;};function layer_sequence_is_finished(_JP){
var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){return _QP._1Q;}}return -1;};function layer_sequence_get_speedscale(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){return _QP._9M;}}return -1;};function layer_sequence_get_length(_JP){var _lH=_IP(yyGetInt32(_JP));if(_lH!=null){var _QP=_xC._JM(_lH._BK);if(_QP!=null){var _WP=_xC._NP(_QP._AK);if(_WP!=null){return _WP._wN;}}}return -1;};function sequence_instance_exists(_3Q){var room=_bo._co();if(room!=null){
for(var _4Q=0;_4Q<room._5Q.length;++_4Q){var _6Q=room._5Q[_4Q];var _7Q=_bo._eo(room,_6Q);if(_3Q==_7Q._AK){return true;}}}return false;};function fx_create(_8Q){if(arguments.length!=1){_q5("fx_create() - wrong number of arguments");return -1;}var _9Q=_aQ._bQ(yyGetString(_8Q),false);return _9Q._cQ();}function fx_get_name(_7K){if(arguments.length!=1){_q5("fx_get_name() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("fx_get_name() - parameter should be an FX object");return -1;}return _7K.instance._HN.pName;
}function fx_get_parameter_names(_7K){if(arguments.length!=1){_q5("fx_get_parameter_names() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("fx_get_parameter_names() - parameter should be an FX object");return -1;}return _7K.instance._eQ();}function fx_get_parameter(_7K,_w4){if(arguments.length!=2){_q5("fx_get_parameter() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("fx_get_parameter() - first parameter should be an FX object");return -1;}return _7K.instance._fQ(_w4);
}function fx_get_parameters(_7K){if(arguments.length!=1){_q5("fx_get_parameters() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("fx_get_parameters() - parameter should be an FX object");return -1;}return _7K.instance._gQ();}function fx_get_single_layer(_7K){if(arguments.length!=1){_q5("fx_get_single_layer() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("fx_get_single_layer() - parameter should be an FX object");return -1;}if((_7K.instance==null)||(_7K.instance._hQ==null)){
_q5("fx_get_single_layer() - FX object is corrupted");return -1;}var _iQ=_jQ;if(_7K.instance._HN.type==_kQ){var _iQ="gml"+_jQ;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jQ]!=undefined)){_iQ=g_var2obf[_jQ];}}return _7K.instance._hQ[_iQ]==1?true:false;}function fx_set_parameter(_7K,_w4,_k4){if(arguments.length<3){_q5("fx_set_parameter() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("fx_set_parameter() - first parameter should be an FX object");return -1;}if(arguments.length==3){
_7K.instance._lQ(_w4,_k4);}else {var _37=Array.prototype.slice.call(arguments,2);_7K.instance._lQ(_w4,_37);}}function fx_set_parameters(_7K,_mQ){if(arguments.length!=2){_q5("fx_set_parameters() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("fx_set_parameters() - first parameter should be an FX object");return -1;}if(typeof _mQ!=="object"){_q5("fx_set_parameters() - second parameter should be a parameter struct");}_7K.instance._nQ(_mQ);}function fx_set_single_layer(_7K,_k4){if(arguments.length<2){
_q5("fx_set_single_layer() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("fx_set_single_layer() - first parameter should be an FX object");return -1;}if((_7K.instance==null)||(_7K.instance._hQ==null)){_q5("fx_set_single_layer() - FX object is corrupted");return -1;}_7K.instance._oQ(_jQ,_pQ,1,[yyGetBool(_k4)]);}function layer_set_fx(_qQ,_7K){if(arguments.length!=2){_q5("layer_set_fx() - wrong number of arguments");return -1;}if(_aQ._dQ(_7K)==false){_q5("layer_set_fx() - second parameter should be an FX object");
return -1;}var _ao=_bo._co();var _kH=_kO(_ao,_qQ);if(_kH==null){return -1;}_kH._6K(_7K);_ao._rQ(_kH._Ce);}function layer_get_fx(_qQ){if(arguments.length!=1){_q5("layer_get_fx() - wrong number of arguments");return -1;}var _ao=_bo._co();var _kH=_kO(_ao,_qQ);if(_kH==null){return -1;}var _sQ=_kH._9K();if(_sQ!==null){return _sQ;}return -1;}function layer_clear_fx(_qQ){if(arguments.length!=1){_q5("layer_get_fx() - wrong number of arguments");return -1;}var _ao=_bo._co();var _kH=_kO(_ao,_qQ);if(_kH==null){return -1;}_kH._8K();
_ao._tQ(_kH._Ce);}function layer_enable_fx(_qQ,_xr){if(arguments.length!=2){_q5("layer_enable_fx() - wrong number of arguments");return -1;}var _ao=_bo._co();var _kH=_kO(_ao,_qQ);if(_kH==null){return -1;}_kH._2K=_xr;}function layer_fx_is_enabled(_qQ){if(arguments.length!=1){_q5("layer_fx_is_enabled() - wrong number of arguments");return 1;}var _ao=_bo._co();var _kH=_kO(_ao,_qQ);if(_kH==null){return true;}return _kH._2K;}var _uQ=0x7fff;var g_GMLMathEpsilon=1e-5;function floor(_k4){return Math.floor(yyGetReal(_k4));
}function _vQ(_wQ){_wQ=yyGetReal(_wQ);var i=Math.sign(_wQ)*Math.floor(Math.abs(_wQ));if(_wQ<0){var _nv=_wQ-i;if((i&1)==1){if(_nv<=-0.5){return i-1;}else {return i;}}else {if(_nv>=-0.5){return i;}else {return i-1;}}}else {var _nv=_wQ-i;if((i&1)==1){if(_nv>=0.5){return i+1;}else {return i;}}else {if(_nv<=0.5){return i;}else {return i+1;}}}}function _xQ(_wQ){return ~~_wQ;}var round=_vQ;var _Ak=_vQ;function abs(_wQ){return Math.abs(yyGetReal(_wQ));}function cos(_wQ){return Math.cos(yyGetReal(_wQ));}function dcos(_wQ){return cos(yyGetReal(_wQ)*0.0174532925);
}function sin(_wQ){return Math.sin(yyGetReal(_wQ));}function dsin(_wQ){return sin(yyGetReal(_wQ)*0.0174532925);}function tan(_wQ){return Math.tan(yyGetReal(_wQ));}function dtan(_wQ){return tan(yyGetReal(_wQ)*0.0174532925);}function lengthdir_x(_yQ,_wI){var _H5=(yyGetReal(_yQ)*Math.cos(yyGetReal(_wI)*_u7/180.0));var _zQ=Math.round(_H5);var frac=_H5-_zQ;if(Math.abs(frac)<0.0001)return _zQ;return _H5;}function lengthdir_y(_yQ,_wI){var _H5=-(yyGetReal(_yQ)*Math.sin(yyGetReal(_wI)*_u7/180.0));var _zQ=Math.round(_H5);
var frac=_H5-_zQ;if(Math.abs(frac)<0.0001)return _zQ;return _H5;}function point_direction(_F7,_G7,_77,_87){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);var x=_77-_F7;var y=_87-_G7;if(x===0){if(y>0)return 270.0;else if(y<0)return 90.0;else return 0.0;}else {var _iE=180.0*Math.atan2(y,x)/_u7;_iE=(~~round(_iE*1000000))/1000000.0;if(_iE<=0.0){return -_iE;}else {return(360.0-_iE);}}}function point_distance(_F7,_G7,_77,_87){var __b=yyGetReal(_77)-yyGetReal(_F7);var _0c=yyGetReal(_87)-yyGetReal(_G7);
return Math.sqrt(__b*__b+_0c*_0c);}function point_distance_3d(_F7,_G7,_AQ,_77,_87,_BQ){return Math.sqrt(_CQ(yyGetReal(_77)-yyGetReal(_F7))+_CQ(yyGetReal(_87)-yyGetReal(_G7))+_CQ(yyGetReal(_BQ)-yyGetReal(_AQ)));}function _r7(_wQ,_7I){if(_wQ<_7I)return _wQ;else return _7I;}function _q7(_wQ,_7I){if(_wQ>_7I)return _wQ;else return _7I;}function max(){var _lk=arguments;var _mk=arguments.length;if(_mk==0)return 0;var _e7=yyGetReal(_lk[0]);for(var i=1;i<_mk;i++){var _DQ=yyGetReal(_lk[i]);if(_e7<_DQ)_e7=_DQ;}return _e7;}function _EQ(_wQ,
_7I,_FQ){return max(_wQ,_7I,_FQ);}function min(){var _lk=arguments;var _mk=arguments.length;if(_mk==0)return 0;var _e7=yyGetReal(_lk[0]);for(var i=1;i<_mk;i++){var _DQ=yyGetReal(_lk[i]);if(_e7>_DQ)_e7=_DQ;}return _e7;}function _GQ(_wQ,_7I,_FQ){return min(_wQ,_7I,_FQ);}var state=[];var _HQ=0;var _IQ=_JQ(0);var _KQ=0xDA442D24;function _JQ(_LQ){var __h=_LQ;for(var i=0;i<16;i++){__h=(((__h*214013+2531011)>>16)&0x7fffffff)|0;state[i]=~~__h;}_HQ=0;_IQ=_LQ;return _IQ;}function _MQ(_NQ){if(_NQ)_KQ=0xDA442D20;else _KQ=0xDA442D24;
}function _OQ(){var _05,__4,c,_Xo;_05=state[_HQ];c=state[(_HQ+13)&15];__4=_05^c^(_05<<16)^(c<<15);c=state[(_HQ+9)&15];c^=(c>>11);_05=state[_HQ]=__4^c;_Xo=_05^((_05<<5)&_KQ);_HQ=(_HQ+15)&15;_05=state[_HQ];state[_HQ]=_05^__4^_Xo^(_05<<2)^(__4<<18)^(c<<28);return((state[_HQ]&0x7fffffff)/2147483647.0);}function random(_8d){var _Y4=_OQ();return _Y4*yyGetReal(_8d);}function irandom(_8d){_8d=yyGetInt32(_8d);var sign=_8d<0?-1:1;var _Y4=_OQ()*(_8d+sign);_OQ();return ~~_Y4;}function random_range(_PQ,_QQ){_PQ=yyGetReal(_PQ);
_QQ=yyGetReal(_QQ);if(_PQ==_QQ){return _PQ;}var _RQ,_SQ;if(_PQ>_QQ){_RQ=_QQ;_SQ=_PQ;}else {_RQ=_PQ;_SQ=_QQ;}var _TQ=_OQ();var result=_RQ+(_TQ*(_SQ-_RQ));_OQ();return result;}function random_set_seed(_k4){_JQ(yyGetInt32(_k4));}function randomize(){var _Xo=new Date();var _s7=_Xo.getMilliseconds();_s7=(_s7&0xffffffff)^((_s7>>16)&0xffff)^((_s7<<16)&0xffff0000);return _JQ(_s7);}var randomise=randomize;function irandom_range(_PQ,_QQ){_PQ=yyGetInt32(_PQ);_QQ=yyGetInt32(_QQ);var _RQ,_SQ;if(_PQ>_QQ){_RQ=_QQ;_SQ=_PQ;}else {
_RQ=_PQ;_SQ=_QQ;}var _f7=_RQ|0;var _h7=_SQ|0;var result=_f7+~~random(_h7-_f7+1);return result;}function random_get_seed(){return _IQ;}function choose(){var _lk=arguments;var _mk=arguments.length;if(_mk==0)return 0;var index=Math.floor(random(_mk));return _lk[index];}function sign(_96){_96=yyGetReal(_96);if(_96==0)return 0;if(_96<0)return -1;return 1;}function ceil(_96){return Math.ceil(yyGetReal(_96));}function frac(_96){_96=yyGetReal(_96);return _96-~~_96;}function sqrt(_96){_96=yyGetReal(_96);if(_96>=0)return Math.sqrt(_96);
else _q5("Cannot apply sqrt to negative number.");}function sqr(_96){_96=yyGetReal(_96);return _96*_96;}function power(_96,_ZG){return Math.pow(yyGetReal(_96),yyGetReal(_ZG));}function exp(_96){return Math.exp(yyGetReal(_96));}function ln(_96){return Math.log(yyGetReal(_96));}function log2(_96){return Math.log(yyGetReal(_96))/Math.LN2;}function log10(_96){return Math.log(yyGetReal(_96))/Math.LN10;}function logn(_ZG,_96){return Math.log(yyGetReal(_96))/Math.log(yyGetReal(_ZG));}function arcsin(_k4){var _Je=yyGetReal(_k4);
if(_UQ(_Je,-1.0)){_Je=-1.0;}else if(_UQ(_Je,1.0)){_Je=1.0;}if(_Je<-1.0||_Je>1.0){_q5("Value "+_Je+" is not within valid range [-1.0, 1.0]: arcsin()");}return Math.asin(_Je);}function darcsin(_96){return arcsin(_96)*57.2957795;}function arccos(_k4){var _Je=yyGetReal(_k4);if(_UQ(_Je,-1.0)){_Je=-1.0;}else if(_UQ(_Je,1.0)){_Je=1.0;}if(_Je<-1.0||_Je>1.0){_q5("Value "+_Je+" is not within valid range [-1.0, 1.0]: arccos()");}return Math.acos(_Je);}function darccos(_96){return arccos(_96)*57.2957795;}function arctan(_k4){
return Math.atan(yyGetReal(_k4));}function darctan(_96){return Math.atan(yyGetReal(_96))*57.2957795;}function arctan2(_a6,_96){return Math.atan2(yyGetReal(_a6),yyGetReal(_96));}function darctan2(_a6,_96){return arctan2(_a6,_96)*57.2957795;}function degtorad(_96){return yyGetReal(_96)*0.0174532925;}function radtodeg(_96){return yyGetReal(_96)*57.2957795;}function mean(){var _lk=arguments;var _mk=arguments.length;if(_mk==0)return 0;var _e7=yyGetReal(_lk[0]);for(var i=1;i<_mk;i++){_e7+=yyGetReal(_lk[i]);}return(_e7/_mk);
}function median(){var _lk=arguments;var _mk=arguments.length;if(_mk==0)return 0;var _37=[];for(var i=0;i<_mk;i++){_37[i]=yyGetReal(_lk[i]);}_37.sort(function(_05,__4){return _05-__4;});return _37[~~(_mk/2)];}function dot_product(_F7,_G7,_77,_87){return(yyGetReal(_F7)*yyGetReal(_77)+yyGetReal(_G7)*yyGetReal(_87));}function dot_product_3d(_F7,_G7,_AQ,_77,_87,_BQ){return(yyGetReal(_F7)*yyGetReal(_77)+yyGetReal(_G7)*yyGetReal(_87)+yyGetReal(_AQ)*yyGetReal(_BQ));}function math_set_epsilon(_VQ){var _H5=yyGetReal(_VQ);
if((_H5>=0)&&(_H5<1)){if(_H5==0)_H5=0.00000000001;g_GMLMathEpsilon=_H5;}}function math_get_epsilon(){return g_GMLMathEpsilon;}function dot_product_normalised(_F7,_G7,_77,_87){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);var _WQ=Math.sqrt(_F7*_F7+_G7*_G7);var _XQ=Math.sqrt(_77*_77+_87*_87);return(_F7*_77+_G7*_87)/(_WQ*_XQ);}var dot_product_normalized=dot_product_normalised;function dot_product_3d_normalised(_F7,_G7,_AQ,_77,_87,_BQ){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_AQ=yyGetReal(_AQ);
_77=yyGetReal(_77);_87=yyGetReal(_87);_BQ=yyGetReal(_BQ);var _WQ=Math.sqrt(_F7*_F7+_G7*_G7+_AQ*_AQ);var _XQ=Math.sqrt(_77*_77+_87*_87+_BQ*_BQ);return(_F7*_77+_G7*_87+_AQ*_BQ)/(_WQ*_XQ);}var dot_product_3d_normalized=dot_product_3d_normalised;function is_real(_96){if(typeof(_96)=="number")return true;else return false;}function is_numeric(_96){var _95=false;switch(typeof(_96)){case "number":case "boolean":_95=true;break;case "object":if(_96 instanceof Long){_95=true;}break;}return _95;}function is_bool(_96){if(typeof(_96)=="boolean")return true;
else return false;}function is_undefined(_96){if(typeof(_96)=="undefined")return true;else return false;}function is_int32(_96){if((typeof(_96)==="number")&&(~~_96===_96))return true;else return false;}function is_int64(_96){if(_96 instanceof Long)return true;else return false;}function is_ptr(_96){return(typeof(_96)=="object"&&(_96 instanceof ArrayBuffer))?true:false;}function is_struct(_96){return((typeof _96==="object")&&(_96.__yyIsGMLObject))?true:false;}function is_nan(_96){try{if(is_ptr(_96))return false;if(is_struct(_96))return true;
if(is_method(_96))return true;value=yyGetReal(_96);return Number.isNaN(value);}catch{return true;}}function is_infinity(_96){try{_96=yyGetReal(_96);return !Number.isFinite(_96)&&!Number.isNaN(_96);}catch{return false;}}function static_get(__h){var _95=undefined;switch(typeof(__h)){case "number":var _YQ=yyGetInt32(__h);if(_YQ>=100000){_ZQ=JSON_game.Scripts[_YQ-100000];_95=_ZQ.prototype;_95.__yyIsGMLObject=true;}break;case "function":_95=__h.prototype;_95.__yyIsGMLObject=true;break;case "object":_95=Object.getPrototypeOf(__h);
if(__h.__yyIsGMLObject)_95.__yyIsGMLObject=true;break;}return _95;}function static_set(_Xo,__h){if((typeof(__h)=="object")&&(typeof(_Xo)=="object")){Object.setPrototypeOf(_Xo,__h);}}function YYIsInstanceof(_96,_8d){var _95=false;if((typeof(_96)=="object")&&(_96.__yyIsGMLObject===true)){var _ZQ=undefined;var _YQ=yyGetInt32(_8d);if(_YQ>=100000)_ZQ=JSON_game.Scripts[_YQ-100000];if(_ZQ){var c=Object.getPrototypeOf(_96);var __Q=_ZQ.prototype;while(c&&!_95){if(c===__Q){_95=true;break;}c=Object.getPrototypeOf(c);
}}}return _95;}function YYInstanceof(_96){var type=typeof(_96);var _95=undefined;switch(type){case "function":_95="function";break;case "object":if(_96 instanceof Function)_95="function";else if(_96.__type==="[instance]"){_95="instance";}else if(_96.__type==="[weakref]"){_95="weakref";}else if(_96.__type!==undefined){_95=_96.__type;if(_95.startsWith("gml_Script_")){_95=_95.substring(11);}if(_95.startsWith("___struct___")){_95="struct";}}break;default :break;}return _95;}function YYTypeof(_96){var _95=typeof(_96);
switch(_95){case "boolean":return "bool";case "function":return "method";case "object":return(_96 instanceof Array)?"array":(_96 instanceof ArrayBuffer)?"ptr":(_96 instanceof Long)?"int64":"struct";default :return _95;}}function int64(_96){if(_96==undefined){_q5("int64() argument is undefined");}else if(_96==null){_q5("int64() argument is unset");}else if(_96 instanceof Array){_q5("int64() argument is array");}if((_96) instanceof Long){return _96;}switch(typeof(_96)){case "boolean":return Long._0R(_96?1:0,false);break;
default :return Long._0R(_96,false);break;}}function ptr(_96){if(_96 instanceof ArrayBuffer)return _96;if(_96 instanceof Array)_q5("ptr argument is an array");if(_96===undefined)_q5("ptr argument is undefined");var _95=new ArrayBuffer(8);var _Dr=new DataView(_95);if(typeof _96!=="string"){_Dr.setFloat64(0,yyGetReal(_96));}return _95;}function _1R(_oy){var _95=undefined;if((typeof _oy=="string")&&_oy.startsWith("ref ")){var _2R=_oy.indexOf(" ",4);var _qy=_oy.substring(4,_2R);var _sy=_oy.substring(_2R+1);var _ty=Number(_sy);
var type=_uy(_qy);_95=_Wn(type,_ty);}return _95;}function is_string(_96){if(typeof(_96)=="string")return 1;else return 0;}function is_array(_96){if(_96 instanceof Array)return 1;else return 0;}function array_length_1d(_96){var _95=undefined;if(_96 instanceof Array){_95=_96.length;}return _95;}var array_length=array_length_1d;function array_length_2d(_96,_VQ){_VQ=yyGetInt32(_VQ);var _95=0;if((_96 instanceof Array)&&(_VQ>=0)&&(_VQ<_96.length)){var _hv=_96[_VQ];if(_hv instanceof Array){_95=_hv.length;}}return _95;}function array_height_2d(_96){
var _95=0;if((_96 instanceof Array)){_95=_96.length;}return _95;}function clamp(_Ol,_3R,_Iz){_Ol=yyGetReal(_Ol);_3R=yyGetReal(_3R);_Iz=yyGetReal(_Iz);if(_Ol<_3R)_Ol=_3R;if(_Ol>_Iz)_Ol=_Iz;return _Ol;}function lerp(_4R,_5R,_yv){_4R=yyGetReal(_4R);_5R=yyGetReal(_5R);return _4R+((_5R-_4R)*yyGetReal(_yv));}function angle_difference(_0j,_1k){_0j=yyGetReal(_0j);_1k=yyGetReal(_1k);return((((_0j-_1k)%360.0)+540.0)%360.0)-180.0;}function _UQ(_4R,_5R){var _nv=_4R-_5R;return abs(_nv)<=g_GMLMathEpsilon;}var _6R=new RegExp('^'+'[-+]?'+'(?:[0-9]{0,30}\\.)?'+'[0-9]{1,30}'+'(?:[Ee][-+]?[1-2]?[0-9])?');
function yyCompareVal(_4R,_5R,_Ti,_7R){var _95=undefined;_7R=(_7R==undefined)?true:_7R;var _8R=false;if(_4R instanceof _Zn){if(!(_5R instanceof _Zn)){_4R=_4R.value;}else _8R=true;}else if(_5R instanceof _Zn){_5R=_5R.value;}if(_8R){var _s7=_4R.type-_5R.type;if(_s7==0){var _H5=_4R.value-_5R.value;_95=(_H5==0)?0:(_H5<0)?-1:1;}else {_95=(_s7<0)?-1:1;}}else if((typeof _4R=="number")&&(typeof _5R=="number")){var _nv=_4R-_5R;if(Number.isNaN(_nv)){_nv=(_4R==_5R)?0:_nv;}_95=abs(_nv)<=_Ti?0:(_nv<0.0)?-1:1;}else if(typeof _4R=="string"&&typeof _5R=="string"){
_95=(_4R===_5R)?0:((_4R>_5R)?1:-1);}else if(_4R===undefined&&_5R===undefined){_95=0;}else if(_4R instanceof ArrayBuffer&&_5R instanceof ArrayBuffer){_95=_4R==_5R?0:1;}else if(_4R instanceof Array&&_5R instanceof Array){_95=_4R.length-_5R.length;if(_95==0){_95=_4R===_5R?0:1;}}else if(_4R instanceof Long&&_5R instanceof Long){_95=(_4R.sub(_5R))._9R();}else if((_4R===undefined&&_5R instanceof Array)||(_5R===undefined&&_4R instanceof Array)){_95=1;}else if(typeof _4R=="object"&&typeof _5R=="object"&&_4R.__yyIsGMLObject&&_5R.__yyIsGMLObject){
_95=_4R==_5R?0:1;}else if(typeof _4R=="object"&&typeof _5R=="object"){_95=_4R==_5R?0:1;}else if(typeof _4R=="function"&&typeof _5R=="function"){_95=_4R==_5R?0:1;}if(_95===undefined){if(typeof _4R=="boolean"){_4R=_4R?1:0;}else if(typeof _4R=="string"){_4R=_4R.trim();var match=_4R.match(_6R);if(match!=null){_4R=Number(match);if(Number.isNaN(_4R))_95=1;}else _95=Number.NaN;}else if(_4R instanceof Long){_4R=_4R._9R();}else if(_4R instanceof Array){_95=1;if(_7R)_q5("illegal array use")}else if(_4R===undefined){_95=-2;
}if(typeof _5R=="boolean"){_5R=_5R?1:0;}else if(typeof _5R=="string"){_5R=_5R.trim();var match=_5R.match(_6R);if(match!=null){_5R=Number(match);if(Number.isNaN(_5R))_95=1;}else _95=Number.NaN;}else if(_5R instanceof Long){_5R=_5R._9R();}else if(_5R instanceof Array){if(_7R)_q5("illegal array use")}else if(_5R===undefined){_95=-2;}if(_95===undefined){if((typeof _4R=="number")&&(typeof _5R=="number")){var _nv=_4R-_5R;if(Number.isNaN(_nv)){_nv=(_4R==_5R)?0:_nv;}_95=abs(_nv)<=_Ti?0:(_nv<0.0)?-1:1;}else {_95=1;if(typeof _4R=="number"){
_95=-1;}}}}return _95;}function yyfplus(_4R,_5R){if(_4R instanceof Long&&_5R instanceof Long){return _4R.add(_5R);}else if(_4R instanceof Long){_4R=_4R._9R();}else if(_5R instanceof Long){_5R=_5R._9R();}if((typeof _4R==="string")&&(typeof _5R==="string"))return _4R+_5R;if((typeof _4R==="string")&&(typeof _5R!=="string"))_q5("unable to add string to "+typeof _5R);return yyGetReal(_4R)+yyGetReal(_5R);}function yyfminus(_4R,_5R){if(_4R instanceof Long&&_5R instanceof Long){return _4R.sub(_5R);}else if(_4R instanceof Long){_4R=_4R._9R();
}else if(_5R instanceof Long){_5R=_5R._9R();}return yyGetReal(_4R)-yyGetReal(_5R);}function yyftime(_4R,_5R){if(_4R instanceof Long&&_5R instanceof Long){return _4R._aR(_5R);}else if(_4R instanceof Long){_4R=_4R._9R();}else if(_5R instanceof Long){_5R=_5R._9R();}if((typeof _4R==="number")&&(typeof _5R==="string")){var _95="";for(var _c7=yyGetReal(_4R)-1;_c7>=0;--_c7){_95+=_5R;}return _95;}else return yyGetReal(_4R)*yyGetReal(_5R);}function yyfdivide(_4R,_5R){if((typeof _4R==="number")&&(typeof _5R==="number")){return _4R/_5R;
}else if(_4R instanceof Long&&_5R instanceof Long){return _4R._0x(_5R);}if(_4R instanceof Long){_4R=_4R._9R();}if(_5R instanceof Long){_5R=_5R._9R();}var _3c=yyGetReal(_4R);var _J5=yyGetReal(_5R);var _95=_3c/_J5;return _95;}function yyfmod(_4R,_5R){if((_4R instanceof Long)&&(_5R instanceof Long)){return _4R._bR(_5R);}if(_5R instanceof Long){_5R=_5R._9R();}if(_4R instanceof Long){_4R=_4R._9R();}var _J5=yyGetReal(_5R);if(_J5==0){_q5("unable to mod with zero");}return yyGetReal(_4R)%_J5;}function yyfdiv(_4R,_5R){if(_4R instanceof Long){
return _4R._0x(_5R);}else if(_5R instanceof Long){_5R=_5R._9R();}if(_5R==0)_q5("divide by zero");var _3c=yyGetReal(_4R);var _J5=yyGetReal(_5R);var _cR=Number.isNaN(_3c);var _dR=Number.isNaN(_J5);if(_cR||_dR){if(_cR&&_dR)return 1;if(_cR){if(Number.isFinite(_J5))return _3c;else return 1;}if(_dR){if(Number.isFinite(_3c))return _J5;else return 1;}}if(_3c===_J5)return 1;return ~~(~~_3c/~~_J5);}function yyfnotequal(_4R,_5R){var _95=yyCompareVal(_4R,_5R,g_GMLMathEpsilon,false);return _95!=0;}function yyfequal(_4R,_5R){var _95=yyCompareVal(_4R,
_5R,g_GMLMathEpsilon,false);return _95==0;}function yyfless(_4R,_5R){var _95=yyCompareVal(_4R,_5R,g_GMLMathEpsilon);if(Number.isNaN(_95)){_q5("unable to compare "+string(_4R)+" to "+string(_5R));}return _95==-2?false:_95<0;}function yyflessequal(_4R,_5R){var _95=yyCompareVal(_4R,_5R,g_GMLMathEpsilon);if(Number.isNaN(_95)){_q5("unable to compare "+string(_4R)+" to "+string(_5R));}return _95==-2?false:_95<=0;}function yyfgreater(_4R,_5R){var _95=yyCompareVal(_4R,_5R,g_GMLMathEpsilon);if(Number.isNaN(_95)){
_q5("unable to compare "+string(_4R)+" to "+string(_5R));}return _95==-2?false:_95>0;}function yyfgreaterequal(_4R,_5R){var _95=yyCompareVal(_4R,_5R,g_GMLMathEpsilon);if(Number.isNaN(_95)){_q5("unable to compare "+string(_4R)+" to "+string(_5R));}return _95==-2?false:_95>=0;}function yyfand(_4R,_5R){return yyGetBool(_4R)&&yyGetBool(_5R);}function yyfor(_4R,_5R){return yyGetBool(_4R)||yyGetBool(_5R);}function yyfxor(_4R,_5R){_5R=yyGetBool(_5R);return yyGetBool(_4R)?!_5R:_5R;}function yyfbitand(_4R,_5R){if((typeof _4R==="number")&&(typeof _5R==="number"))return _4R&_5R;
else if((_4R instanceof Long)&&(_5R instanceof Long)){return _4R._eR(_5R);}else if(_4R instanceof Long){return _4R._eR(yyGetInt64(_5R));}else if(_5R instanceof Long){return _5R._eR(yyGetInt64(_4R));}else if(typeof _4R=="number")return _4R&yyGetInt32(_5R);else if(typeof _5R=="number")return yyGetInt32(_4R)&_5R;return yyGetInt32(_4R)&yyGetInt32(_5R);}function yyfbitor(_4R,_5R){if((typeof _4R=="number")&&(typeof _5R=="number"))return _4R|_5R;else if((_4R instanceof Long)&&(_5R instanceof Long)){return _4R._fR(_5R);}else if(_4R instanceof Long){
return _4R._fR(yyGetInt64(_5R));}else if(_5R instanceof Long){return _5R._fR(yyGetInt64(_4R));}else if(typeof _4R=="number")return _4R|yyGetInt32(_5R);else if(typeof _5R=="number")return yyGetInt32(_4R)|_5R;return yyGetInt32(_4R)|yyGetInt32(_5R);}function yyfbitxor(_4R,_5R){if((typeof _4R=="number")&&(typeof _5R=="number"))return _4R^_5R;else if((_4R instanceof Long)&&(_5R instanceof Long)){return _4R._gR(_5R);}else if(_4R instanceof Long){return _4R._gR(yyGetInt64(_5R));}else if(_5R instanceof Long){return _5R._gR(yyGetInt64(_4R));
}else if(typeof _4R=="number")return _4R^yyGetInt32(_5R);else if(typeof _5R=="number")return yyGetInt32(_4R)^_5R;return yyGetInt32(_4R)^yyGetInt32(_5R);}function yyfbitshiftleft(_4R,_fJ){var shift=yyGetInt32(_fJ);var _hR=(_4R<0);if(_hR)_4R=-_4R;if(typeof _4R=="number"){_4R=new Long(_4R);}else if(_4R instanceof Long){}else {_4R=yyGetInt64(_4R);}var _95=0;if(shift>=64)_95=0;else _95=_4R._iR(shift);if(_hR)_95=-_95;return _95;}function yyfbitshiftright(_4R,_fJ){var shift=yyGetInt32(_fJ);var _hR=(_4R<0);if(_hR)_4R=-_4R;if(typeof _4R=="number"){
_4R=new Long(_4R);}else if(_4R instanceof Long){}else {_4R=yyGetInt64(_4R);}var _95=0;if(shift>=64)_95=0;else _95=_4R._jR(shift);if(_hR)_95=-_95;return _95;}function extension_exists(_kR){_kR=yyGetString(_kR);const extension=_aw.Extensions.find(_Vk=>_Vk["name"]==_kR);return extension!==undefined;}function extension_get_version(_kR){_kR=yyGetString(_kR);try{const extension=_aw.Extensions.find(_Vk=>_Vk["name"]==_kR);if(extension===undefined)return undefined;return extension.version;}catch(_jw){show_debug_message("extension_get_version :: caught unhandled exception "+_jw.message);
}return undefined;}function extension_get_option_value(_kR,_lR){_kR=yyGetString(_kR);_lR=yyGetString(_lR);try{if(_aw.ExtensionOptions!==undefined){if(_aw.ExtensionOptions[_kR]!==undefined){return _aw.ExtensionOptions[_kR][_lR];}}}catch(_jw){show_debug_message("extension_get_option_value :: caught unhandled exception "+_jw.message);}return undefined;}function extension_get_option_count(_kR){_kR=yyGetString(_kR);try{if(_aw.ExtensionOptions!==undefined){if(_aw.ExtensionOptions[_kR]!==undefined){return Object.keys(_aw.ExtensionOptions[_kR]).length;
}}}catch(_jw){show_debug_message("extension_get_option_count :: caught unhandled exception "+_jw.message);}return 0;}function extension_get_option_names(_kR){_kR=yyGetString(_kR);try{if(_aw.ExtensionOptions!==undefined){if(_aw.ExtensionOptions[_kR]!==undefined){return Object.keys(_aw.ExtensionOptions[_kR]);}}}catch(_jw){show_debug_message("extension_get_option_names :: caught unhandled exception "+_jw.message);}return [];}function extension_get_options(_kR){_kR=yyGetString(_kR);try{if(_aw.ExtensionOptions!==undefined){
if(_aw.ExtensionOptions[_kR]!==undefined){var data=_aw.ExtensionOptions[_kR];var _mR=new _Lz();Object.keys(data).forEach(_Ad=>{variable_struct_set(_mR,_Ad,data[_Ad])});return _mR;}}}catch(_jw){show_debug_message("extension_get_options :: caught unhandled exception "+_jw.message);}return {};}function gc_collect(){}function gc_enable(_xr){}function gc_is_enabled(){return true;}function gc_get_stats(){var _nR=new Object();_nR.__yyIsGMLObject=true;Object.defineProperties(_nR,{gmlobjects_touched:{enumerable:true,
get :function(){return 0;}},gmlobjects_collected:{enumerable:true,get :function(){return 0;}},gmltraversal_time:{enumerable:true,get :function(){return 0;}},gmlcollection_time:{enumerable:true,get :function(){return 0;}},gmlgeneration_collected:{enumerable:true,get :function(){return 0;}},gmlgc_frame:{enumerable:true,get :function(){return 0;}},gmlnum_generations:{enumerable:true,get :function(){return 0;}},gmlnum_objects_in_generation:{enumerable:true,get :function(){var _DD=[];return _DD;}},});return _nR;}var _oR=30,
_pR=10,_qR=3,_rR=true;function _sR(_Pn,_96,_a6,_wP,_tR){if(_wP==__I){if(_tR){return place_empty(_Pn,_96,_a6);}else {return place_free(_Pn,_96,_a6);}}else {return(instance_place(_Pn,_96,_a6,_wP)==_Sn);}}function _uR(_Pn,_96,_a6,_vR,_wP,_tR){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_vR=yyGetReal(_vR);_tR=yyGetBool(_tR);var _6p=false;var _ho=0.0;var _wR=0.0;var _xR=0.0;if((_Pn.x==_96)&&(_Pn.y==_a6))return true;_ho=sqrt(_CQ(_Pn.x-_96)+_CQ(_Pn.y-_a6));if(_ho<=_vR){_wR=_96;_xR=_a6;_6p=true;}else {_wR=_Pn.x+_vR*(_96-_Pn.x)/_ho;
_xR=_Pn.y+_vR*(_a6-_Pn.y)/_ho;_6p=false;}if(!_sR(_Pn,_wR,_xR,_wP,_tR)){return _6p;}_Pn.direction=point_direction(_Pn.x,_Pn.y,_wR,_xR);_Pn._Rd(_wR,_xR);return _6p;}function mp_linear_step(_Pn,_96,_a6,_vR,_tR){return _uR(_Pn,_96,_a6,_vR,__I,_tR);}function mp_linear_step_object(_Pn,_96,_a6,_vR,_ck){return _uR(_Pn,_96,_a6,_vR,_ck,true);}function _yR(_Pn,_96,_a6,_vR,_sI,_tR){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_vR=yyGetReal(_vR);_sI=yyGetInt32(_sI);_tR=yyGetBool(_tR);var _6p=false;var _ho=0.0;var _zR=0.0;var _AR=0.0;
if((_Pn.x==_96)&&(_Pn.y==_a6)){_6p=true;return _6p;}_ho=sqrt(_CQ(_Pn.x-_96)+_CQ(_Pn.y-_a6));if(_ho<=_vR){if(_sR(_Pn,_96,_a6,_sI,_tR)){_Pn.direction=point_direction(_Pn.x,_Pn.y,_96,_a6);_Pn._Rd(_96,_a6);}_6p=true;return _6p;}_zR=point_direction(_Pn.x,_Pn.y,_96,_a6);_AR=0;_6p=false;while(_AR<180){if(_BR(_zR-_AR,_Pn,_vR,_sI,_tR)){return _6p;}if(_BR(_zR+_AR,_Pn,_vR,_sI,_tR)){return _6p;}_AR=_AR+_pR;}if(_rR){_Pn.direction=_Pn.direction+_oR;}return _6p;}function mp_potential_step(_Pn,_96,_a6,_vR,_tR){return _yR(_Pn,
_96,_a6,_vR,__I,_tR);}function mp_potential_step_object(_Pn,_96,_a6,_vR,_ck){return _yR(_Pn,_96,_a6,_vR,_ck,true);}function mp_potential_settings(_Pn,_CR,_DR,_ER,_FR){_oR=_q7(1,yyGetReal(_CR));_pR=_q7(1,yyGetReal(_DR));_qR=_q7(1,yyGetReal(_ER));_rR=yyGetBool(_FR);}function _GR(_Z7,_96,_a6,_xI,_wP,_tR){var _6p=false;var _ho=0.0;var _wR=0.0;var _xR=0.0;if((_Z7.x==_96)&&(_Z7.y==_a6)){return true;}_ho=Math.sqrt(_CQ(_Z7.x-_96)+_CQ(_Z7.y-_a6));if(_ho<=_xI){_wR=_96;_xR=_a6;_6p=true;}else {_wR=_Z7.x+_xI*(_96-_Z7.x)/_ho;
_xR=_Z7.y+_xI*(_a6-_Z7.y)/_ho;_6p=false;}if(!_sR(_Z7,_wR,_xR,_wP,_tR)){return _6p;}_Z7.direction=point_direction(_Z7.x,_Z7.y,_wR,_xR);_Z7._Rd(_wR,_xR);return _6p;}function _HR(_Pn,_IR,_JR,_KR,_vR,_wP,_tR){var _w7=0.0;var _y7=0.0;var _iE=0.0;var _LR=0.0;var _MR=0.0;var _6p=false;var _NR=_vC.Paths[yyGetInt32(_IR)];if(!_NR)return _6p;if(_vR<=0.0)return _6p;_w7=_Pn.x;_y7=_Pn.y;_iE=_Pn.direction;_NR._ag();_NR._OR(_PR);_NR._QR(false);_NR._RR(_w7,_y7,100);_6p=true;while(1){_LR=_Pn.x;_MR=_Pn.y;if(true==_GR(_Pn,_JR,
_KR,_vR,_wP,_tR)){break;}if((_Pn.x==_LR)&&(_Pn.y==_MR)){_6p=false;break;}_NR._RR(_Pn.x,_Pn.y,100);}if(true==_6p){_NR._RR(_JR,_KR,100);}_Pn._Rd(_w7,_y7);_Pn.direction=_iE;return _6p;}function mp_linear_path(_Pn,_IR,_JR,_KR,_vR,_tR){return _HR(_Pn,yyGetInt32(_IR),yyGetReal(_JR),yyGetReal(_KR),yyGetReal(_vR),__I,yyGetBool(_tR));}function mp_linear_path_object(_Pn,_IR,_JR,_KR,_vR,_ck){return _HR(_Pn,yyGetInt32(_IR),yyGetReal(_JR),yyGetReal(_KR),yyGetReal(_vR),yyGetInt32(_ck),true);}function _SR(_TR,_UR){var _6p=0.0;
while(_TR<=0.0){_TR=_TR+360.0;}while(_TR>=360.0){_TR=_TR-360.0;}while(_UR<0.0){_UR=_UR+360.0;}while(_UR>=360.0){_UR=_UR-360.0;}_6p=_UR-_TR;if(_6p<0.0){_6p=-_6p;}if(_6p>180.0){_6p=360.0-_6p;}return _6p;}function _BR(_wI,_Z7,_xI,_wP,_tR){var _VR=0.0;var _WR=0.0;if(_SR(_wI,_Z7.direction)>_oR){return false;}_VR=_Z7.x+_xI*_qR*Math.cos(Math.PI*_wI/180.0);_WR=_Z7.y-_xI*_qR*Math.sin(Math.PI*_wI/180.0);if(!_sR(_Z7,_VR,_WR,_wP,_tR)){return false;}_VR=_Z7.x+_xI*Math.cos(Math.PI*_wI/180.0);_WR=_Z7.y-_xI*Math.sin(Math.PI*_wI/180.0);
if(!_sR(_Z7,_VR,_WR,_wP,_tR)){return false;}_Z7.direction=_wI;_Z7._Rd(_VR,_WR);return true;}function _XR(_Z7,_96,_a6,_xI,_wP,_tR){var _6p=false;var _ho=0.0;var _zR=0.0;var _AR=0.0;if((_Z7.x==_96)&&(_Z7.y==_a6)){return true;}_ho=Math.sqrt(_CQ(_Z7.x-_96)+_CQ(_Z7.y-_a6));if(_ho<=_xI){if(true==_sR(_Z7,_96,_a6,_wP,_tR)){_Z7.direction=point_direction(_Z7.x,_Z7.y,_96,_a6);_Z7._Rd(_96,_a6);}return true;}_zR=point_direction(_Z7.x,_Z7.y,_96,_a6);_AR=0;_6p=false;while(_AR<180){if(_BR(_zR-_AR,_Z7,_xI,_wP,_tR)){return _6p;
}if(_BR(_zR+_AR,_Z7,_xI,_wP,_tR)){return _6p;}_AR=_AR+_pR;}if(_rR){_Z7.direction=_Z7.direction+_oR;}return _6p;}function _YR(_Z7,_IR,_JR,_KR,_vR,_ZR,_wP,_tR){var _6p=false;var __R=0.0;var _w7=0.0;var _y7=0.0;var _iE=0.0;var _NR=_vC.Paths[_IR];if(!_NR)return _6p;if(_ZR<1){return _6p;}if(_vR<=0){return _6p;}__R=Math.sqrt(_CQ(_JR-_Z7.x)+_CQ(_KR-_Z7.y))*_ZR;_w7=_Z7.x;_y7=_Z7.y;_iE=_Z7.direction;_NR._ag();_NR._OR(_PR);_NR._QR(false);_NR._RR(_w7,_y7,100);_6p=true;var _0S=0;var _1S=0;var _2S=0;while(1){if(true==_XR(_Z7,
_JR,_KR,_vR,_wP,_tR))break;_NR._RR(_Z7.x,_Z7.y,100);_0S=_1S;_1S=_NR.length;if(_1S>__R){_6p=false;break;}if(_1S==_0S){++_2S;if(_2S>100){_6p=false;break;}}else {_2S=0;}}if(_6p){_NR._RR(_JR,_KR,100);}_Z7._Rd(_w7,_y7);_Z7.direction=_iE;return _6p;}function mp_potential_path(_Pn,_IR,_JR,_KR,_vR,_3S,_tR){return _YR(_Pn,yyGetInt32(_IR),yyGetReal(_JR),yyGetReal(_KR),yyGetReal(_vR),yyGetReal(_3S),__I,yyGetBool(_tR));}function mp_potential_path_object(_Pn,_IR,_JR,_KR,_vR,_3S,_ck){return _YR(_Pn,yyGetInt32(_IR),
yyGetReal(_JR),yyGetReal(_KR),yyGetReal(_vR),yyGetReal(_3S),yyGetInt32(_ck),true);}/*@constructor */function _4S(_Lm,_Mm,_5S,_6S,_7S,_8S){this._9S=_Lm;this._aS=_Mm;this._5k=~~_5S;this._6k=~~_6S;this._bS=_7S;this._cS=_8S;this._9k=[];this._ag();};_4S.prototype._ag=function(){var _dS=this._5k*this._6k;for(var i=0;i<_dS;i++){this._9k[i]=0;}};_4S.prototype._eS=function(_96,_a6,_k4){if(_96<0||_96>=this._5k)return;if(_a6<0||_a6>=this._6k)return;this._9k[(_96*this._6k)+_a6]=_k4;};_4S.prototype._fS=function(_96,
_a6){if(_96<0||_96>=this._5k)return -1;if(_a6<0||_a6>=this._6k)return -1;return this._9k[(_96*this._6k)+_a6];};_4S.prototype._gS=function(_F7,_G7,_77,_87,_k4){var _8E=~~((_r7(_F7,_77)-this._9S)/this._bS);if(_8E<0)_8E=0;var _9E=~~((_q7(_F7,_77)-this._9S)/this._bS);if(_9E>=this._5k)_9E=this._5k-1;var _aE=~~((_r7(_G7,_87)-this._aS)/this._cS);if(_aE<0)_aE=0;var _bE=~~((_q7(_G7,_87)-this._aS)/this._cS);if(_bE>=this._6k)_bE=this._6k-1;for(var i=_8E;i<=_9E;i++){var index=i*this._6k;for(var _J6=_aE;_J6<=_bE;_J6++){
this._9k[index+_J6]=_k4;}}};function mp_grid_create(_Lm,_Mm,_hS,_iS,_7S,_8S){var _p7=new _4S(yyGetInt32(_Lm),yyGetInt32(_Mm),yyGetInt32(_hS),yyGetInt32(_iS),yyGetInt32(_7S),yyGetInt32(_8S));return _4k._Vf(_p7);}function mp_grid_destroy(_yg){_4k._3j(yyGetInt32(_yg));}function mp_grid_clear_all(_yg){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){_jS._ag();return;}_q5("Error: invalid mp_grid ID (mp_grid_clear_all)");}function mp_grid_clear_cell(_yg,_Yi,_8d){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){_jS._eS(yyGetInt32(_Yi),
yyGetInt32(_8d),0);return;}_q5("Error: invalid mp_grid ID (mp_grid_clear_cell)");}function mp_grid_clear_rectangle(_yg,_F7,_G7,_77,_87){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){_jS._gS(yyGetInt32(_F7),yyGetInt32(_G7),yyGetInt32(_77),yyGetInt32(_87),0);return;}_q5("Error: invalid mp_grid ID (mp_grid_clear_rectangle)");}function mp_grid_add_cell(_yg,_96,_a6){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){_jS._eS(yyGetInt32(_96),yyGetInt32(_a6),-1);return;}_q5("Error: invalid mp_grid ID (mp_grid_add_cell)");
}function mp_grid_get_cell(_yg,_96,_a6){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){return _jS._fS(yyGetInt32(_96),yyGetInt32(_a6));}return -1;}function mp_grid_add_rectangle(_yg,_F7,_G7,_77,_87){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){_jS._gS(yyGetInt32(_F7),yyGetInt32(_G7),yyGetInt32(_77),yyGetInt32(_87),-1);return;}_q5("Error: invalid mp_grid ID (mp_grid_add_rectangle)");}function mp_grid_add_instances(_Z7,_yg,_ck,_Ti){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){var _kS=0.0001;if(_lS){_kS=0.0;}var _mS=GetWithArray(yyGetInt32(_ck));
for(var _nS=0;_nS<_mS.length;_nS++){var _9o=_mS[_nS];if(_9o.marked||!_9o.active)continue;if(_9o._dI)_9o._eI();var _8E=~~((_9o._XH.left+_kS-_jS._9S)/_jS._bS);if(_8E<0)_8E=0;var _9E=~~((_9o._XH.right-_kS-_jS._9S)/_jS._bS);if(_9E>=_jS._5k)_9E=_jS._5k-1;var _aE=~~((_9o._XH.top+_kS-_jS._aS)/_jS._cS);if(_aE<0)_aE=0;var _bE=~~((_9o._XH.bottom-_kS-_jS._aS)/_jS._cS);if(_bE>=_jS._6k)_bE=_jS._6k-1;for(var i=_8E;i<=_9E;i++){for(var _J6=_aE;_J6<=_bE;_J6++){if(!yyGetBool(_Ti)){_jS._9k[i*_jS._6k+_J6]=-1;continue;}if(_jS._9k[i*_jS._6k+_J6]<0)continue;
if(_9o._mo(_jS._9S+i*_jS._bS,_jS._aS+_J6*_jS._cS,_jS._9S+(i+1)*_jS._bS-1,_jS._aS+(_J6+1)*_jS._cS-1,true)){_jS._9k[i*_jS._6k+_J6]=-1;}}}}return;}_q5("Error: invalid mp_grid ID (mp_grid_add_instances)");}var mp_grid_draw=_oS;function _oS(_yg){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){_Oa.globalAlpha=_3d;var _sr=_om(0xff0000,1.0);var _tr=_om(0x00ff00,1.0);for(var x=0;x<_jS._5k;x++){for(var y=0;y<_jS._6k;y++){var _55=_tr;if(_jS._9k[x*_jS._6k+y]<0){_55=_sr;}_Oa.fillStyle=_55;_Oa._ID((_jS._9S+x*_jS._bS),(_jS._aS+y*_jS._cS),
_jS._bS,_jS._cS);}}return;}_q5("Error: invalid mp_grid ID (mp_grid_draw)");}function mp_grid_path(_Pn,_yg,_IR,_pS,_qS,_rS,_sS,_tS){_pS=yyGetInt32(_pS);_qS=yyGetInt32(_qS);_rS=yyGetInt32(_rS);_sS=yyGetInt32(_sS);_tS=yyGetBool(_tS);var _uS,_vS,_wS,_xS,i,_J6,_Je,_Xo,_w7,_y7,_yS,_zS,_AS,_BS,_CS,_DS,_ES,_FS,_GS;var _6p=false;var _jS=_4k._n6(yyGetInt32(_yg));var _NR=_vC.Paths[yyGetInt32(_IR)];if(!_NR||!_jS){return _6p;}if((_pS<_jS._9S)||(_pS>=(_jS._9S+_jS._5k*_jS._bS))){return _6p;}if((_qS<_jS._aS)||(_qS>=_jS._aS+_jS._6k*_jS._cS)){
return _6p;}_uS=~~((_pS-_jS._9S)/_jS._bS);_vS=~~((_qS-_jS._aS)/_jS._cS);if(_jS._9k[_uS*_jS._6k+_vS]<0){return _6p;}if((_rS<_jS._9S)||(_rS>=_jS._9S+_jS._5k*_jS._bS)){return _6p;}if((_sS<_jS._aS)||(_sS>=_jS._aS+_jS._6k*_jS._cS)){return _6p;}_wS=~~((_rS-_jS._9S)/_jS._bS);_xS=~~((_sS-_jS._aS)/_jS._cS);if(_jS._9k[_wS*_jS._6k+_xS]<0){return _6p;}_jS._9k[_uS*_jS._6k+_vS]=1;_GS=new _HS();_GS._IS((_uS*_jS._6k+_vS));while(_GS._JS(1)){_Je=_GS._KS();_w7=~~(_Je/_jS._6k);_y7=~~(_Je%_jS._6k);if((_w7==_wS)&&(_y7==_xS)){
_6p=true;break;}_Xo=_jS._9k[_Je]+1;_yS=(_w7>0)&&(_y7<_jS._6k-1)&&(_jS._9k[(_w7-1)*_jS._6k+(_y7+1)]==0);_zS=(_y7<_jS._6k-1)&&(_jS._9k[(_w7)*_jS._6k+(_y7+1)]==0);_AS=(_w7<_jS._5k-1)&&(_y7<_jS._6k-1)&&(_jS._9k[(_w7+1)*_jS._6k+(_y7+1)]==0);_BS=(_w7>0)&&(_jS._9k[(_w7-1)*_jS._6k+(_y7)]==0);_CS=(_w7<_jS._5k-1)&&(_jS._9k[(_w7+1)*_jS._6k+(_y7)]==0);_DS=(_w7>0)&&(_y7>0)&&(_jS._9k[(_w7-1)*_jS._6k+(_y7-1)]==0);_ES=(_y7>0)&&(_jS._9k[(_w7)*_jS._6k+(_y7-1)]==0);_FS=(_w7<_jS._5k-1)&&(_y7>0)&&(_jS._9k[(_w7+1)*_jS._6k+(_y7-1)]==0);
if(_BS){_jS._9k[(_w7-1)*_jS._6k+_y7]=_Xo;_GS._IS(~~((_w7-1)*_jS._6k+_y7));}if(_CS){_jS._9k[(_w7+1)*_jS._6k+_y7]=_Xo;_GS._IS(~~((_w7+1)*_jS._6k+_y7));}if(_ES){_jS._9k[_w7*_jS._6k+_y7-1]=_Xo;_GS._IS(~~(_w7*_jS._6k+_y7-1));}if(_zS){_jS._9k[_w7*_jS._6k+_y7+1]=_Xo;_GS._IS(~~(_w7*_jS._6k+_y7+1));}if(_tS&&_yS&&_zS&&_BS){_jS._9k[(_w7-1)*_jS._6k+_y7+1]=_Xo;_GS._IS(~~((_w7-1)*_jS._6k+_y7+1));}if(_tS&&_DS&&_ES&&_BS){_jS._9k[(_w7-1)*_jS._6k+_y7-1]=_Xo;_GS._IS(~~((_w7-1)*_jS._6k+_y7-1));}if(_tS&&_AS&&_zS&&_CS){
_jS._9k[(_w7+1)*_jS._6k+_y7+1]=_Xo;_GS._IS(~~((_w7+1)*_jS._6k+_y7+1));}if(_tS&&_FS&&_ES&&_CS){_jS._9k[(_w7+1)*_jS._6k+_y7-1]=_Xo;_GS._IS(~~((_w7+1)*_jS._6k+_y7-1));}}_GS=undefined;if(_6p){_NR._ag();_NR._LS=_PR;_NR.closed=false;_NR._RR(_rS,_sS,100);_w7=_wS;_y7=_xS;while((_w7!=_uS)||(_y7!=_vS)){_Je=_jS._9k[_w7*_jS._6k+_y7];_yS=(_w7>0)&&(_y7<_jS._6k-1)&&(_jS._9k[(_w7-1)*_jS._6k+(_y7+1)]==_Je-1);_zS=(_y7<_jS._6k-1)&&(_jS._9k[(_w7)*_jS._6k+(_y7+1)]==_Je-1);_AS=(_w7<_jS._5k-1)&&(_y7<_jS._6k-1)&&(_jS._9k[(_w7+1)*_jS._6k+(_y7+1)]==_Je-1);
_BS=(_w7>0)&&(_jS._9k[(_w7-1)*_jS._6k+(_y7)]==_Je-1);_CS=(_w7<_jS._5k-1)&&(_jS._9k[(_w7+1)*_jS._6k+(_y7)]==_Je-1);_DS=(_w7>0)&&(_y7>0)&&(_jS._9k[(_w7-1)*_jS._6k+(_y7-1)]==_Je-1);_ES=(_y7>0)&&(_jS._9k[(_w7)*_jS._6k+(_y7-1)]==_Je-1);_FS=(_w7<_jS._5k-1)&&(_y7>0)&&(_jS._9k[(_w7+1)*_jS._6k+(_y7-1)]==_Je-1);if(_BS)_w7=_w7-1;else if(_CS)_w7=_w7+1;else if(_ES)_y7=_y7-1;else if(_zS)_y7=_y7+1;else if(_tS&&_yS){_w7=_w7-1;_y7=_y7+1;}else if(_tS&&_AS){_w7=_w7+1;_y7=_y7+1;}else if(_tS&&_DS){_w7=_w7-1;_y7=_y7-1;}else if(_tS&&_FS){
_w7=_w7+1;_y7=_y7-1;};if((_w7!=_uS)||(_y7!=_vS)){_NR._RR(~~(_jS._9S+_w7*_jS._bS+_jS._bS/2),~~(_jS._aS+_y7*_jS._cS+_jS._cS/2),100);}};_NR._RR(_pS,_qS,100);_NR._MS();};for(i=0;i<_jS._5k;i++){for(_J6=0;_J6<_jS._6k;_J6++){if(_jS._9k[i*_jS._6k+_J6]>0)_jS._9k[i*_jS._6k+_J6]=0;}}return _6p;}function mp_grid_to_ds_grid(_0j,_1k){_0j=yyGetInt32(_0j);_1k=yyGetInt32(_1k);var _NS=_2j._c9;var _OS=_4k._c9;if((_0j<0)||(_0j>=_OS)||(_1k<0)||(_1k>=_NS)){_q5("Error: Invalid source or destination grid");return;}var _1j=_2j._n6(_1k);
var _3k=_4k._n6(_0j);if(_3k==null||_1j==null){_q5("Error: Invalid source or destination grid");return;}var w=_3k._5k;var h=_3k._6k;var _7k=_1j._fd;var _8k=_1j._gd;if(w!=_7k||h!=_8k){_q5("Error: Grid sizes do not match (mp_grid_to_ds_grid) ");return;}for(var y=0;y<h;++y){for(var x=0;x<w;++x){_1j._Zi[x+(y*_1j._fd)]=_3k._9k[(x*_3k._6k)+y];}}}function place_free(_Pn,_96,_a6){var _w7,_y7,_6p,_PS;_6p=true;_w7=_Pn.x;_y7=_Pn.y;_Pn._Rd(yyGetReal(_96),yyGetReal(_a6));var _yk=_c4._QS();for(var _Hx=0;_Hx<_yk.length;_Hx++){
_PS=_yk[_Hx];if(_PS.solid){if(_Pn._RS(_PS,true)){_6p=false;break;}}}_Pn._Rd(_w7,_y7);return _6p;}function place_empty(_Pn,_96,_a6,_ck){if(is_undefined(_ck))_ck=__I;var _bc=_mI(_Pn,_96,_a6,_ck);if(_bc<0)return true;return false;}function place_meeting(_Pn,_96,_a6,_ck){var _bc=_mI(_Pn,_96,_a6,_ck);if(_bc<0){return false;}else return true;}function place_snapped(_Z7,_SS,_TS){_SS=yyGetReal(_SS);_TS=yyGetReal(_TS);if(_SS>0){if(Math.abs(_Z7.x-_SS*_Ak(_Z7.x/_SS))>=0.001){return false;}}if(_TS>0){if(Math.abs(_Z7.y-_TS*_Ak(_Z7.y/_TS))>=0.001){
return false;}}return true;}function move_random(_Z7,_SS,_TS){var i=0;var x=0.0;var y=0.0;var _US;var _VS;var _WS;var _XS;var _YS=0;var _ZS=0;_US=0;_VS=_c4._tF();_WS=0;_XS=_c4._uF();if(true==sprite_exists(_Z7.sprite_index)||true==sprite_exists(_Z7.mask_index)){var _jI=_Z7.__S();_US=_Ak(_Z7.x-_jI.left);_VS=_Ak(_VS+_Z7.x-_jI.right);_WS=_Ak(_Z7.y-_jI.top);_XS=_Ak(_XS+_Z7.y-_jI.bottom);}_YS=_Ak(yyGetReal(_SS));_ZS=_Ak(yyGetReal(_TS));for(i=1;i<100;i++){x=_US+_0T(_VS-_US);if(_YS>0){x=_YS*floor(x/_YS);}y=_WS+_0T(_XS-_WS);
if(_ZS>0){y=_ZS*floor(y/_ZS);}if(true==place_free(_Z7,x,y)){_Z7._Rd(x,y);return;}}}function move_snap(_Pn,_SS,_TS){_SS=yyGetReal(_SS);_TS=yyGetReal(_TS);if(_SS>0)_Pn.x=_Ak(_Pn.x/_SS)*_SS;if(_TS>0)_Pn.y=_Ak(_Pn.y/_TS)*_TS;_Pn._dI=true;}function move_wrap(_Z7,_1T,_2T,_3T){_3T=yyGetReal(_3T);if(yyGetBool(_1T)){if(_Z7.x<-_3T){_Z7._Rd(_Z7.x+_c4._tF()+2*_3T,_Z7.y);}if(_Z7.x>_c4._tF()+_3T){_Z7._Rd(_Z7.x-_c4._tF()-2*_3T,_Z7.y);}}if(yyGetBool(_2T)){if(_Z7.y<-_3T){_Z7._Rd(_Z7.x,_Z7.y+_c4._uF()+2*_3T);}if(_Z7.y>_c4._uF()+_3T){
_Z7._Rd(_Z7.x,_Z7.y-_c4._uF()-2*_3T);}}}function move_towards_point(_Pn,_96,_a6,_xI){_Pn.hspeed=yyGetReal(_96)-_Pn.x;_Pn.vspeed=yyGetReal(_a6)-_Pn.y;_Pn.speed=yyGetReal(_xI);}function _4T(_Pn,_96,_a6,_5T){if(_5T){return place_empty(_Pn,_96,_a6);}else {return place_free(_Pn,_96,_a6);}}function _6T(_Pn,_7T,_5T){var i,_c7;var _w7,_y7,_8T,_9T,_aT,_bT,dir;var _cT,_dT,_eT,_fT;_fT=false;if(_4T(_Pn,_Pn.x,_Pn.y,_5T)==false){_Pn._Rd(_Pn.xprevious,_Pn.yprevious);_fT=true;}_w7=_Pn.x;_y7=_Pn.y;if(_7T){_c7=18;dir=10.0*Math.round(_Pn.direction/10.0);
_aT=dir;_bT=dir;for(i=1;i<2*_c7;i++){_aT=_aT-180/_c7;_8T=_w7+_Pn.speed*Math.cos(_aT*_u7/180);_9T=_y7-_Pn.speed*Math.sin(_aT*_u7/180);if(_4T(_Pn,_8T,_9T,_5T)){break;}else {_fT=true;}}for(i=1;i<2*_c7;i++){_bT=_bT+180/_c7;_8T=_w7+_Pn.speed*Math.cos(_bT*_u7/180);_9T=_y7-_Pn.speed*Math.sin(_bT*_u7/180);if(_4T(_Pn,_8T,_9T,_5T)){break;}else {_fT=true;}}if(_fT==true){_Pn.direction=180+(_aT+_bT)-dir;}}else {_cT=_4T(_Pn,_Pn.x+_Pn.hspeed,_Pn.y,_5T);_dT=_4T(_Pn,_Pn.x,_Pn.y+_Pn.vspeed,_5T);_eT=_4T(_Pn,_Pn.x+_Pn.hspeed,
_Pn.y+_Pn.vspeed,_5T);if((_cT==false)&&(_dT==false)){_Pn.hspeed=-_Pn.hspeed;_Pn.vspeed=-_Pn.vspeed;}else if((_cT==true)&&(_dT==true)&&(_eT==false)){_Pn.hspeed=-_Pn.hspeed;_Pn.vspeed=-_Pn.vspeed;}else if(_cT==false)_Pn.hspeed=-_Pn.hspeed;else if(_dT==false)_Pn.vspeed=-_Pn.vspeed;}}function move_bounce_solid(_Pn,_gT){_6T(_Pn,yyGetBool(_gT),false);}function move_bounce_all(_Pn,_gT){_6T(_Pn,yyGetBool(_gT),true);}function _hT(_Z7,_96,_a6,_5T){if(yyGetBool(_5T))return place_empty(_Z7,_96,_a6);else return place_free(_Z7,
_96,_a6);}function _iT(_Z7,_wI,_jT,_5T){var _kT;if(_jT<=0)_kT=1000;else _kT=_Ak(_jT);var __b=Math.cos(_wI*Math.PI/180);var _0c=-Math.sin(_wI*Math.PI/180);if(_hT(_Z7,_Z7.x,_Z7.y,_5T)==false)return;for(var i=1;i<=_kT;i++){if(_hT(_Z7,_Z7.x+__b,_Z7.y+_0c,_5T))_Z7._Rd(_Z7.x+__b,_Z7.y+_0c);else return;}}function _nI(_Pn,_96,_a6,_ck,_C8){var _w7=_Pn.x;var _y7=_Pn.y;_Pn._Rd(_96,_a6);var _PS=_Rn(_Pn,yyGetInt32(_ck),false,_Sn,function(_Tn){if(_Tn._RS(_Pn,true)){if(_C8){_C8.push(_Wn(_Xn,_Tn.id));return _Sn;}return _Wn(_Xn,
_Tn.id);}return _Sn;});_Pn._Rd(_w7,_y7);return _PS;};function _1H(_96,_a6,_ck,_C8){var _PS=_Rn(null,yyGetInt32(_ck),false,_Sn,function(_Tn){if(_Tn._Vn(_96,_a6,true)){if(_C8){_C8.push(_Wn(_Xn,_Tn.id));return _Sn;}return _Wn(_Xn,_Tn.id);}return _Sn;});return _PS;};function move_and_collide(_lT,__b,_0c,_6a,_mT,_nT,_oT,_pT,_qT){var _95=[];if(typeof _6a==="number"){if((_6a==_rT)&&(_lT!=_sT))_6a=_lT.id;if(_6a==_Sn){return _95;}}var _bc=_mI(_lT,_lT.x,_lT.y,_6a);if(_bc>=0)return _95;if((__b==0)&&(_0c==0)){return _95;}
var _tT=false;var _uT=false;var _vT=-1.0;var _wT=-1.0;if(_pT!==undefined){_vT=_pT;if(_vT>=0)_tT=true;}if(_qT!==undefined){_wT=_qT;if(_wT>=0)_uT=true;}var _xT=_lT.x;var _yT=_lT.y;var _zT=_xT+_vT;var _AT=_yT+_wT;_xT-=_vT;_yT-=_wT;var _BT=4;if(_mT!==undefined)_BT=_mT;var _CT=false;var _DT=0;var _ET=0;var _FT=0;if(_nT===undefined||_oT===undefined||(_nT===0&&_oT===0)){_CT=true;}else {_DT=Math.sqrt(_nT*_nT+_oT*_oT);_ET=_nT/_DT;_FT=_oT/_DT;}var _kT=Math.sqrt(__b*__b+_0c*_0c);var _GT=__b/_kT;var _HT=_0c/_kT;var _IT=0.70710678118654;
var _JT=_kT/_BT;var _KT=_kT;for(var i=0;i<_BT;i++){var _LT=_JT;if(_KT<_LT){_LT=_KT;if(_LT<=0)break;}var _MT=_lT.x+_GT*_LT;var _NT=_lT.y+_HT*_LT;if(_tT){_MT=clamp(_MT,_xT,_zT);}if(_uT){_NT=clamp(_NT,_yT,_AT);}_bc=_mI(_lT,_MT,_NT,_6a);if(_bc<0){_lT.x=_MT;_lT.y=_NT;_KT-=_LT;}else {if(!_95.includes(_bc))_95[_95.length]=_bc;var _OT=false;if(_CT){for(var _J6=1;_J6<_BT-i+1;_J6++){_MT=_lT.x+_IT*(_GT+_J6*_HT)*_LT;_NT=_lT.y+_IT*(_HT-_J6*_GT)*_LT;if(_tT){_MT=clamp(_MT,_xT,_zT);}if(_uT){_NT=clamp(_NT,_yT,_AT);}_bc=_mI(_lT,
_MT,_NT,_6a);if(_bc<0){_KT-=_LT*_J6;_OT=true;_lT.x=_MT;_lT.y=_NT;break;}else {if(!_95.includes(_bc))_95[_95.length]=_bc;}_MT=_lT.x+_IT*(_GT-_J6*_HT)*_LT;_NT=_lT.y+_IT*(_HT+_J6*_GT)*_LT;if(_tT){_MT=clamp(_MT,_xT,_zT);}if(_uT){_NT=clamp(_NT,_yT,_AT);}_bc=_mI(_lT,_MT,_NT,_6a);if(_bc<0){_KT-=_LT*_J6;_OT=true;_lT.x=_MT;_lT.y=_NT;break;}else {if(!_95.includes(_bc))_95[_95.length]=_bc;}}}else {for(var _J6=1;_J6<_BT-i+1;_J6++){_MT=_lT.x+_IT*(_GT+_J6*_ET)*_LT;_NT=_lT.y+_IT*(_HT+_J6*_FT)*_LT;if(_tT){_MT=clamp(_MT,
_xT,_zT);}if(_uT){_NT=clamp(_NT,_yT,_AT);}_bc=_mI(_lT,_MT,_NT,_6a);if(_bc<0){_KT-=_LT*_J6;_OT=true;_lT.x=_MT;_lT.y=_NT;break;}else {if(!_95.includes(_bc))_95[_95.length]=_bc;}}}if(!_OT)return _95;}}return _95;}function move_contact_solid(_Pn,_wI,_jT){_iT(_Pn,yyGetReal(_wI),yyGetReal(_jT),false);}function move_contact_all(_Z7,_wI,_jT){_iT(_Z7,yyGetReal(_wI),yyGetReal(_jT),true);}function _PT(_Z7,_wI,_jT,_5T){var _kT;if(_jT<=0)_kT=1000;else _kT=_Ak(_jT);var __b=Math.cos(_wI*Math.PI/180);var _0c=-sin(_wI*Math.PI/180);
if(_hT(_Z7,_Z7.x,_Z7.y,_5T))return;for(var i=1;i<=_kT;i++){_Z7._Rd(_Z7.x+__b,_Z7.y+_0c);if(_hT(_Z7,_Z7.x,_Z7.y,_5T))return;}}function move_outside_solid(_Z7,_wI,_jT){_PT(_Z7,yyGetReal(_wI),yyGetReal(_jT),false);}function move_outside_all(_Z7,_wI,_jT){_PT(_Z7,yyGetReal(_wI),yyGetReal(_jT),true);}function distance_to_point(_Z7,_96,_a6){_96=yyGetReal(_96);_a6=yyGetReal(_a6);if(_Z7._dI)_Z7._eI();var _Y4=_Z7._XH;var _QT=0.0;var _RT=0.0;if(_96>_Y4.right){_QT=_96-_Y4.right;}if(_96<_Y4.left){_QT=_96-_Y4.left;}
if(_a6>_Y4.bottom){_RT=_a6-_Y4.bottom;}if(_a6<_Y4.top){_RT=_a6-_Y4.top;}return Math.sqrt((_QT*_QT)+(_RT*_RT));}function distance_to_object(_Z7,_ck){var _ho=10000000000;var i=0;var _ho=_3H(_Z7,yyGetInt32(_ck),false,_ho,function(_Tn){if(_Z7._dI)_Z7._eI();if(_Tn._dI)_Tn._eI();var _Y4=_Tn._XH;var __h=_Z7._XH;var _QT=0,_RT=0;if(_Y4.left>__h.right)_QT=_Y4.left-__h.right;if(_Y4.right<__h.left)_QT=_Y4.right-__h.left;if(_Y4.top>__h.bottom)_RT=_Y4.top-__h.bottom;if(_Y4.bottom<__h.top)_RT=_Y4.bottom-__h.top;return Math.sqrt(_QT*_QT+_RT*_RT);
});return _ho;}function position_empty(_Z7,_96,_a6){var _ho=10000000000;var i=0;var _Lu=_Rn(_Z7,__I,false,false,function(_Tn){return _Tn._Vn(yyGetReal(_96),yyGetReal(_a6),true);});return !_Lu;}function position_meeting(_Pn,_96,_a6,_ck){if(_ck instanceof _Zn){var __n=_ck.type;if(__n==_0o){if(_1o(_96,_a6,_ck,null,true)){return true;}return false;}else {var id=_On(_Pn,_96,_a6,_ck,true,false);if(id!=_Sn)return true;}}else if(_ck instanceof Array){for(var i=0;i<_ck.length;i++){var _2o=_ck[i];if((_2o instanceof _Zn)&&(_2o.type==_0o)){
if(_1o(_96,_a6,_2o,null,true)){return true;}}else {var id=_On(_Pn,_96,_a6,_2o,true,false);if(id!=_Sn)return true;}}}else {var id=_On(_Pn,_96,_a6,_ck,true,false);if(id!=_Sn)return true;}return false;}var _ST=6;var _TT=7;var _UT=1;var _VT=2;var _WT=3;var _XT=4;var _YT=1;var _ZT=2;var __T=window.WebSocket;var _0U=null;try{_0U=require("ws").Server;}catch(_Uy){}function _1U(_2U,type,_3U){this.socket=_2U;this.type=type;this._3U=_3U;}_1U.prototype={socket:null,_3U:false,_4U:false,index:-1};var _5U="GM:Studio-Connect";var _6U=0xCAFEBABE;
var _7U=0xDEADB00B;var _8U=0xDEAFBEAD;var _9U=0xF00DBEEB;var _aU=0xDEADC0DE;var _bU=[];var _cU=[];function _dU(wrap){var i=_cU.shift();if(i==null)i=_bU.length;_bU[i]=wrap;wrap.index=i;return i;}function _eU(wrap){var i=_bU.indexOf(wrap);if(i>=0){_bU[i]=null;_cU.push(i);}}function _fU(e){var _Yz=_Uf._Vf(e.id,null,_gU,e);_Yz._Zf=true;}function _hU(_Dr,offset,length){var _iU=new Uint8Array(_Dr.buffer);var _jU=_Dr.byteOffset+offset;var index=buffer_create(length,_kU,1);var buffer=_wG._n6(index);for(var i=0;i<length;i++)buffer._BG(_CG,
_iU[_jU+i]);buffer._lU(_Qj,0);return index;}function _mU(_Dr,_nU,id,_oU,port,_pU,_qU){var _Ai=_Dr.byteLength;var _rU=[];if(_nU){var _zk=0;while(_zk<_Ai){if(_Dr.getUint32(_zk,true)!=_aU||_Dr.getUint32(_zk+4,true)!=12){console.log("Raw packet received from a non-raw socket("+id+").");_rU.push(_hU(_Dr,_zk,_Ai-_zk));break;}var _sU=_Dr.getUint32(_zk+8,true);_rU.push(_hU(_Dr,_zk+12,_sU));_zk+=12+_sU;}}else _rU.push(_hU(_Dr,0,_Ai));for(var i=0;i<_rU.length;i++){_fU({"type":_WT,"id":id,"ip":_oU,"port":port,"other_port":_pU,
"buffer":_rU[i],"size":buffer_get_size(_rU[i]),"message_type":_qU});}}function _tU(_wd,port,_uU,_vU){if(_0U==null){debug("No WebSocket server implementation is available.");return -1;}try{var _wU=new _0U({port:port,_xU:true});var wrap=new _1U(_wU,_ST,true);_wU._yU=wrap;_wU.on("connection",function(_zU,_AU){var _BU=new _1U(_zU,_ST,false);var _CU=-1;var _DU=_AU.socket.remoteAddress;var _EU=port;var _FU=_AU.socket.remotePort;var _GU=!_vU;function _HU(){_fU({"type":_UT,"id":wrap.index,"socket":_CU,"ip":_DU,"port":_EU,
"other_port":_FU});_BU._4U=true;}_zU.onmessage=function(e){var _IU=e.data;if(_IU==null)return;var _JU=_IU.buffer;if(_JU==null)return;var _KU=_IU.byteLength;var _LU=new DataView(_JU,_IU.offset,_KU);if(_GU){_mU(_LU,_vU,_CU,_DU,_EU,_FU);}else {if(_KU>=16&&_LU.getUint32(0,true)==_6U&&_LU.getUint32(4,true)==_7U&&_LU.getUint32(8,true)==16){_CU=_dU(_BU);_GU=true;_HU();var _MU=new ArrayBuffer(12);var _NU=new DataView(_MU);_NU.setInt32(0,_8U,true);_NU.setInt32(4,_9U,true);_NU.setInt32(8,12,true);_zU.send(_MU);}else {
console.log("Invalid handshake response from client.");_zU.terminate();}}};_zU.onerror=function(e){console.log(e);_fU({"type":_VT,"id":wrap.index,"socket":_CU,"ip":_DU,"port":_EU,"other_port":_FU});_eU(_BU);};if(_GU){_CU=_dU(_BU);_HU();}else {var _OU=new ArrayBuffer(_5U.length+1);var _PU=new DataView(_OU);for(var i=0;i<_5U.length;i++){_PU.setUint8(i,_5U.charCodeAt(i));}_PU.setUint8(i,0);_zU.send(_OU);}});_wU.on("error",function(e){console.log("Server error: ",e);});return _dU(wrap);}catch(e){debug("Error creating server: "+e);
return -1;}}function _QU(index,_fh,port,_nU){if(__T==null){debug("No WebSocket client implementation is available.");return -1;}var wrap=_bU[index];if(wrap==null||wrap.socket!=null)return -1;try{var _RU=_fh;var _SU=(wrap.type==_TT);if(_fh.substring(0,5)=="ws://"){if(_SU){console.log("Socket type is network_socket_wss, but URL ("+_fh+") is insecure - upgrading to wss://");}_fh=_fh.substring(5);}else if(_fh.substring(0,6)=="wss://"){_SU=true;_fh=_fh.substring(6);}var _TU=_fh.indexOf("/");var path="/";if(_TU!=-1){
path=_fh.substring(_TU);_fh=_fh.substring(0,_TU);}var _UU=_fh.indexOf(":");if(_UU!=-1){if(port==0){port=_fh.substring(_UU+1);}_fh=_fh.substring(0,_UU);}_fh=(_SU?"wss://":"ws://")+_fh+(port!=0?":"+port:"")+path;var _wU=new __T(_fh);var _VU=_nU?-1:1;function _HU(_WU){_fU({"type":_XT,"id":wrap.index,"succeeded":_WU?1:0,"ip":_RU,"port":port});if(_WU)wrap._4U=true;}function _XU(_YU,_qU){switch(_VU){case -1:{var i=_YU.byteLength;if(i>_5U.length){i=_5U.length;if(_YU.getUint8(i)==0)while(--i>=0){if(_YU.getUint8(i)!=_5U.charCodeAt(i))break;
}}if(i<0){_VU=0;var _ZU=new ArrayBuffer(16);var __U=new DataView(_ZU);__U.setUint32(0,_6U,true);__U.setUint32(4,_7U,true);__U.setUint32(8,16,true);_wU.send(_ZU);}else {console.log("Invalid first response from server");_HU(false);_wU.close();wrap.socket=null;}};break;case 0:{if(_YU.byteLength>=12&&_YU.getUint32(0,true)==_8U&&_YU.getUint32(4,true)==_9U&&_YU.getUint32(8,true)==12){_VU=1;_HU(true);if(_YU.byteLength>12){_XU(new DataView(_YU.buffer,_YU.byteOffset+12,_YU.byteLength-12));}}else {console.log("Invalid second response from server");
_HU(false);}};break;default :{_mU(_YU,_nU,index,_RU,port,port,_qU);};}}_wU.onopen=function(e){if(_VU>0)_HU(true);};_wU.onmessage=function(e){if(e.data instanceof Blob){var _0V=new FileReader();_0V.onload=function(){_XU(new DataView(_0V.result),_YT);};_0V.onerror=function(e){console.log("Failed to read message:",e);};_0V.readAsArrayBuffer(e.data);}else if(typeof e.data=="string"){var _1V=new TextEncoder();var _2V=_1V.encode(e.data);_XU(new DataView(_2V.buffer),_ZT);}else {console.log("Failed to process message:",
e);}};_wU.onerror=function(e){console.log(e);if(!wrap._4U)_HU(false);};wrap.socket=_wU;return wrap.index;}catch(e){debug("Connection error: "+e);return -1;}}function network_create_server(_wd,_3V,_uU){return _tU(_wd,_3V,_uU,true);}function network_create_server_raw(_wd,_3V,_uU){return _tU(_wd,_3V,_uU,false);}function network_set_timeout(){_Jc("network_set_timeout()")}function network_create_socket_ext(_wd,_3V){if(_wd!=_ST&&_wd!=_TT){console.log("network_create_socket_ext() - Only network_socket_ws and network_socket_wss are supported on HTML5.");
return -1;}return _dU(new _1U(null,_wd,false));}function network_create_socket(_wd,_3V,_uU){if(_wd!=_ST&&_wd!=_TT){console.log("network_create_socket_ext() - Only network_socket_ws and network_socket_wss are supported on HTML5.");return -1;}return _dU(new _1U(null,_wd,false));}function network_connect(_4V,__F,_3V){_Jc("network_connect()");return -1;}function network_connect_raw(_4V,__F,_3V){_Jc("network_connect_raw()");return -1;}function network_connect_async(_4V,__F,_3V){return _QU(_4V,__F,_3V,true);}function network_connect_raw_async(_4V,
__F,_3V){return _QU(_4V,__F,_3V,false);}function network_resolve(__F){return "127.0.0.1";}function network_send_broadcast(_4V,_3V,_6l,_id){return -1;}function network_send_packet(_4V,_6l,_id){var wrap=_bU[_4V];if(wrap==null)return -1;var _wU=wrap.socket;if(_wU==null||!wrap._4U)return -1;var _5V=_wG._n6(_6l);if(_5V==null)return -1;var _YU=_5V._6V;var _7V=new ArrayBuffer(_id+12);var _8V=new DataView(_7V);_8V.setUint32(0,_aU,true);_8V.setUint32(4,12,true);_8V.setUint32(8,_id,true);for(var i=0;i<_id;i+=1){_8V.setUint8(i+12,
_YU.getUint8(i));}_wU.send(_7V);return _id;}function network_send_raw(_4V,_6l,_id,_9V){var wrap=_bU[_4V];if(wrap==null)return -1;var _wU=wrap.socket;if(_wU==null||!wrap._4U)return -1;var __4=buffer_get_address(_6l);if(_id<__4.byteLength)__4=new DataView(__4,0,_id);if(_9V!==undefined&&(_9V&_ZT)!=0){var _aV=new TextDecoder();__4=_aV.decode(__4);}_wU.send(__4);return _id;}function network_set_config(_bV,_Je){}function network_send_udp(_4V,__F,_3V,_6l,_id){return -1;}function network_send_udp_raw(_4V,__F,_3V,_6l,_id){
return -1;}function network_destroy(_4V){var wrap=_bU[_4V];if(wrap==null)return;var _wU=wrap.socket;if(_wU==null)return;if(wrap._3U){_wU.close();}else if(_wU.terminate){_wU.terminate();}else if(_wU.close)_wU.close();_eU(wrap);return 0;}function object_exists(_c5){if(!_14._n6(yyGetInt32(_c5)))return false;return true;}function object_get_name(_c5){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return "";return _By._Ox;}function object_get_sprite(_c5){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return -1;return _By._NI;}function object_get_solid(_c5){
var _By=_14._n6(yyGetInt32(_c5));if(!_By)return false;return _By._cV;}function object_get_visible(_c5){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return false;return _By._dV;}function _eV(_c5){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return 0;return _By._fV;}function object_get_persistent(_c5){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return false;return _By._gV;}function object_get_mask(_c5){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return -1;return _By._hV;}function object_get_parent(_c5){var _By=_14._n6(yyGetInt32(_c5));
if(!_By)return -1;return _By._XI;}function object_get_physics(_c5){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return -1;return(_By._iV.physicsObject?1.0:0.0);}function object_set_sprite(_c5,_l6){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return;_By._NI=yyGetInt32(_l6);}function object_set_solid(_c5,_jV){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return;_By._cV=yyGetBool(_jV);}function object_set_visible(_c5,_kV){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return;_By._dV=yyGetBool(_kV);}function object_set_persistent(_c5,
_lV){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return;_By._gV=yyGetBool(_lV);}function object_set_mask(_c5,_l6){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return;_By._hV=yyGetInt32(_l6);}function _mV(_c5,_nV){var _By=_14._n6(yyGetInt32(_c5));if(!_By)return;_nV=yyGetInt32(_nV);_By._XI=_nV;_By.__w=_14._n6(_nV);}function object_is_ancestor(_oV,_67){var _By=_14._n6(yyGetInt32(_oV));if(!_By)return 0;_By=_By.__w;while(_By!==null&&_By!==undefined){if(_By._ZI===yyGetInt32(_67))return 1;_By=_By.__w;}return 0;}function _pV(_qV,
_rV){return _UO(_qV,_sV,_eC._tV.length,_eC._tV,_rV);}function _uV(_qV,_rV){return _UO(_qV,_vV,_wV.length,_wV,_rV);}function _xV(_yV,_qV,_rV){var _c9=0;var _37=null;if(!_rV){_37=_wV[_yV].emitters;_c9=_37.length;}return _UO(_qV,_zV,_c9,_37,_rV);}function _AV(_qV,_rV){return _UO(_qV,_BV,_CV.length,_CV,_rV);}function _DV(_qV){var index=yyGetInt32(_qV);if(_m6._n6(index)==null)_q5("invalid reference to sprite");return index;}function _EV(_FV){var _fs=yyGetInt32(_FV);if(_fs<0||_fs>1)_q5("invalid argument, expecting a time source unit");
return _fs;}function _GV(_YM){var _HV=(typeof _YM=="string");var room=_bo._co();var layer=_HV?_bo._5J(room,yyGetString(_YM)):_bo._6J(room,yyGetInt32(_YM));if(!layer){if(_HV)_q5("invalid argument, layer name ("+_YM+") does not exist");else _q5("invalid argument, layer ID ("+_YM+") does not exist");}return layer;}function _IV(_c5,_JV){var _KV=undefined;var emitters=[];if(_JV){_c5=_uV(_c5);var _LV=_wV[_c5];if(_LV!=null){_KV=new _Lz();var resource=_eC._n6(_LV._MV);variable_struct_set(_KV,"name",resource?resource.name:"");
variable_struct_set(_KV,"xorigin",_LV._NV);variable_struct_set(_KV,"yorigin",_LV._OV);variable_struct_set(_KV,"oldtonew",_LV._PV?true:false);variable_struct_set(_KV,"global_space",_LV.globalSpaceParticles);for(var i=_LV.emitters.length-1;i>=0;--i){var emitter=_LV.emitters[i];if(emitter){emitters.push(emitter);}}}}else {_c5=_pV(_c5);var _LV=_eC._n6(_c5);if(_LV!=null){_KV=new _Lz();variable_struct_set(_KV,"name",_LV.name);variable_struct_set(_KV,"xorigin",_LV.originX);variable_struct_set(_KV,"yorigin",
_LV.originY);variable_struct_set(_KV,"oldtonew",(_LV.drawOrder==0));variable_struct_set(_KV,"global_space",_LV.globalSpaceParticles);for(var i=0;i<_LV.emitters.length;++i){var emitter=_QV[_LV.emitters[i]];if(emitter){emitters.push(emitter);}}}}if(!_KV){return _KV;}var _RV=[];for(var i=0;i<emitters.length;++i){var emitter=emitters[i];var _SV=new _Lz();variable_struct_set(_SV,"ind",i);variable_struct_set(_SV,"name",emitter.name);variable_struct_set(_SV,"mode",emitter.mode);variable_struct_set(_SV,"number",
emitter._Mk);variable_struct_set(_SV,"delay_min",emitter.delayMin);variable_struct_set(_SV,"delay_max",emitter.delayMax);variable_struct_set(_SV,"delay_unit",emitter.delayUnit);variable_struct_set(_SV,"interval_min",emitter.intervalMin);variable_struct_set(_SV,"interval_max",emitter.intervalMax);variable_struct_set(_SV,"interval_unit",emitter.intervalUnit);variable_struct_set(_SV,"relative",emitter._TV);variable_struct_set(_SV,"xmin",emitter._US);variable_struct_set(_SV,"xmax",emitter._VS);variable_struct_set(_SV,
"ymin",emitter._WS);variable_struct_set(_SV,"ymax",emitter._XS);variable_struct_set(_SV,"distribution",emitter._UV);variable_struct_set(_SV,"shape",emitter.shape);variable_struct_set(_SV,"enabled",emitter.enabled);var _VV=new _Lz();var _WV=_CV[emitter._XV];variable_struct_set(_VV,"ind",emitter._XV);if(_WV!==undefined){variable_struct_set(_VV,"sprite",_WV._mN);variable_struct_set(_VV,"frame",_WV._YV);variable_struct_set(_VV,"animate",_WV._ZV);variable_struct_set(_VV,"stretch",_WV.__V);variable_struct_set(_VV,
"random",_WV._0W);variable_struct_set(_VV,"shape",_WV.shape);variable_struct_set(_VV,"size_xmin",_WV.sizeMinX);variable_struct_set(_VV,"size_xmax",_WV.sizeMaxX);variable_struct_set(_VV,"size_ymin",_WV.sizeMinY);variable_struct_set(_VV,"size_ymax",_WV.sizeMaxY);variable_struct_set(_VV,"size_xincr",_WV._1W);variable_struct_set(_VV,"size_yincr",_WV._2W);variable_struct_set(_VV,"size_xwiggle",_WV._3W);variable_struct_set(_VV,"size_ywiggle",_WV._4W);variable_struct_set(_VV,"xscale",_WV._OJ);variable_struct_set(_VV,
"yscale",_WV._PJ);variable_struct_set(_VV,"life_min",_WV._5W);variable_struct_set(_VV,"life_max",_WV._6W);variable_struct_set(_VV,"death_type",_WV._7W);variable_struct_set(_VV,"death_number",_WV._8W);variable_struct_set(_VV,"step_type",_WV._9W);variable_struct_set(_VV,"step_number",_WV._aW);variable_struct_set(_VV,"speed_min",_WV._bW);variable_struct_set(_VV,"speed_max",_WV._cW);variable_struct_set(_VV,"speed_incr",_WV._dW);variable_struct_set(_VV,"speed_wiggle",_WV._eW);variable_struct_set(_VV,
"dir_min",_WV._fW);variable_struct_set(_VV,"dir_max",_WV._gW);variable_struct_set(_VV,"dir_incr",_WV._hW);variable_struct_set(_VV,"dir_wiggle",_WV._iW);variable_struct_set(_VV,"grav_amount",_WV._jW);variable_struct_set(_VV,"grav_dir",_WV._kW);variable_struct_set(_VV,"ang_min",_WV._lW);variable_struct_set(_VV,"ang_max",_WV._mW);variable_struct_set(_VV,"ang_incr",_WV._nW);variable_struct_set(_VV,"ang_wiggle",_WV._oW);variable_struct_set(_VV,"ang_relative",_WV._pW);variable_struct_set(_VV,"color1",
_WV._qW[0]);variable_struct_set(_VV,"color2",_WV._qW[1]);variable_struct_set(_VV,"color3",_WV._qW[2]);variable_struct_set(_VV,"alpha1",_WV._rW);variable_struct_set(_VV,"alpha2",_WV._sW);variable_struct_set(_VV,"alpha3",_WV._tW);variable_struct_set(_VV,"additive",_WV._uW);}variable_struct_set(_SV,"parttype",_VV);_RV.push(_SV);}variable_struct_set(_KV,"emitters",_RV);return _KV;}function particle_get_info(_c5){var _vW=((_c5 instanceof _Zn)&&(_c5.type==_vV));return _IV(_c5,_vW);}function particle_exists(_c5){
var _qC=_pV(_c5,true);return(_eC._n6(_qC)!=null);}function part_system_create(_wW){var id=-1;if(_wW===undefined){id=_xW();}else {_wW=_pV(_wW);var _yW=_eC._n6(_wW);if(_yW!=null){id=_yW._4M();}}return _Wn(_vV,(id!=-1)?id:0xffffffff);}function part_system_destroy(_c5){_c5=_uV(_c5,true);return _zW(_c5);}function part_system_exists(_c5){_c5=_uV(_c5,true);return _AW(_c5);}function part_system_clear(_c5){_c5=_uV(_c5);return _BW(_c5,true);}function part_system_draw_order(_c5,_CW){_c5=_uV(_c5);return _DW(_c5,_CW);}function part_system_depth(_c5,
_el){_c5=_uV(_c5);return _EW(_c5,_el);}function part_system_color(_c5,_Sm,_ga){_c5=_uV(_c5);return _FW(_c5,_Sm,_ga);}var part_system_colour=part_system_color;function part_system_position(_c5,_96,_a6){_c5=_uV(_c5);return _GW(_c5,_96,_a6);}function part_system_angle(_c5,_d6){_c5=_uV(_c5);return _HW(_c5,_d6);}function part_system_automatic_update(_c5,_IW){_c5=_uV(_c5);return _JW(_c5,_IW);}function part_system_automatic_draw(_c5,_IW){_c5=_uV(_c5);return _KW(_c5,_IW);}function part_system_update(_c5){_c5=_uV(_c5);
return _LW(_c5);}function part_system_drawit(_c5){_qC=_uV(_c5);if(!_AW(_qC))return;var _MW=_wV[_qC];var _NW=_cs(_EF);var _OW=new _qr();_OW._PW(_MW.angle);var _QW=new _qr();_QW._RW(-_MW._NV,-_MW._OV,0.0);var _SW=new _qr();_SW.Multiply(_QW,_OW);_SW._TW(_MW._NV,_MW._OV,0.0);_8s(_EF,_SW);_UW(_qC,_SW);_VW(_qC);_8s(_EF,_NW);}function part_particles_create(_c5,_96,_a6,_WW,_oe){_c5=_uV(_c5);_WW=_AV(_WW);return _XW(_c5,_96,_a6,_WW,_oe);}function part_particles_create_color(_c5,_96,_a6,_WW,_Sm,_oe){_c5=_uV(_c5);_WW=_AV(_WW);
return _YW(_c5,_96,_a6,_WW,_Sm,_oe);}var part_particles_create_colour=part_particles_create_color;function part_particles_burst(_c5,_96,_a6,_wW){_c5=_uV(_c5);_wW=_pV(_wW);return _ZW(_c5,_96,_a6,_wW);}function part_particles_clear(_c5){_c5=_uV(_c5);return __W(_c5);}function part_particles_count(_c5){_c5=_uV(_c5);return _0X(_c5);}function part_type_create(){return _Wn(_BV,_1X());};function part_type_destroy(_c5){_c5=_AV(_c5);return _2X(_c5);}function part_type_exists(_c5){_c5=_AV(_c5,true);return _3X(_c5);}function part_type_clear(_c5){
_c5=_AV(_c5);return _4X(_c5);}function part_type_shape(_c5,_5X){_c5=_AV(_c5);return _6X(_c5,_5X);}function part_type_sprite(_c5,_94,_7X,_8X,_9X){_c5=_AV(_c5);_94=_DV(_94);return _aX(_c5,_94,_7X,_8X,_9X);}function part_type_subimage(_c5,_bX){_c5=_AV(_c5);return _cX(_c5,_bX);}function part_type_size(_c5,_dX,_eX,_fX,_gX){_c5=_AV(_c5);return _hX(_c5,_dX,_eX,_fX,_gX);}function part_type_size_x(_c5,_dX,_eX,_fX,_gX){_c5=_AV(_c5);return _iX(_c5,_dX,_eX,_fX,_gX);}function part_type_size_y(_c5,_dX,_eX,_fX,_gX){_c5=_AV(_c5);
return _jX(_c5,_dX,_eX,_fX,_gX);}function part_type_scale(_c5,_Qm,_Rm){_c5=_AV(_c5);return _kX(_c5,_Qm,_Rm);}function part_type_blend(_c5,_lX){_c5=_AV(_c5);return _mX(_c5,_lX);}function part_type_color1(_c5,_nX){_c5=_AV(_c5);return _oX(_c5,_nX);}var part_type_colour1=part_type_color1;function part_type_color2(_c5,_nX,_pX){_c5=_AV(_c5);return _qX(_c5,_nX,_pX);}var part_type_colour2=part_type_color2;function part_type_color3(_c5,_nX,_pX,_rX){_c5=_AV(_c5);return _sX(_c5,_nX,_pX,_rX);}var part_type_colour3=part_type_color3;
var _tX=part_type_color3;var _uX=part_type_color3;function part_type_color_mix(_c5,_nX,_pX){_c5=_AV(_c5);return _vX(_c5,_nX,_pX);}var part_type_colour_mix=part_type_color_mix;function part_type_color_rgb(_c5,_wX,_xX,_yX,_zX,_AX,_BX){_c5=_AV(_c5);return _CX(_c5,_wX,_xX,_yX,_zX,_AX,_BX);}var part_type_colour_rgb=_CX;function part_type_color_hsv(_c5,_DX,_EX,_FX,_GX,_HX,_IX){_c5=_AV(_c5);return _JX(_c5,_DX,_EX,_FX,_GX,_HX,_IX);}var part_type_colour_hsv=_JX;function part_type_alpha1(_c5,_KX){_c5=_AV(_c5);return _LX(_c5,
_KX);}function part_type_alpha2(_c5,_KX,_MX){_c5=_AV(_c5);return _NX(_c5,_KX,_MX);}function part_type_alpha3(_c5,_KX,_MX,_OX){_c5=_AV(_c5);return _PX(_c5,_KX,_MX,_OX);}function part_type_life(_c5,_QX,_RX){_c5=_AV(_c5);return _SX(_c5,_QX,_RX);}function part_type_step(_c5,_TX,_UX){_c5=_AV(_c5);_UX=_AV(_UX,true);return _VX(_c5,_TX,_UX);}function part_type_death(_c5,_WX,_XX){_c5=_AV(_c5);_XX=_AV(_XX,true);return _YX(_c5,_WX,_XX);}function part_type_orientation(_c5,_ZX,__X,_0Y,_1Y,_2Y){_c5=_AV(_c5);return _3Y(_c5,
_ZX,__X,_0Y,_1Y,_2Y);}function part_type_speed(_c5,_4Y,_5Y,_6Y,_7Y){_c5=_AV(_c5);return _8Y(_c5,_4Y,_5Y,_6Y,_7Y);}function part_type_direction(_c5,_9Y,_aY,_bY,_cY){_c5=_AV(_c5);return _dY(_c5,_9Y,_aY,_bY,_cY);}function part_type_gravity(_c5,_eY,_fY){_c5=_AV(_c5);return _gY(_c5,_eY,_fY);}function part_emitter_create(_yV){_yV=_uV(_yV);return _Wn(_zV,_hY(_yV));}function part_emitter_destroy(_yV,_c5){_yV=_uV(_yV,true);_c5=_xV(_yV,_c5,true);return _iY(_yV,_c5);}function part_emitter_destroy_all(_yV){_yV=_uV(_yV);
return _jY(_yV);}function part_emitter_enable(_yV,_c5,_xr){_yV=_uV(_yV);_c5=_xV(_yV,_c5);return _kY(_yV,_c5,_xr);}function part_emitter_exists(_yV,_c5){_yV=_uV(_yV,true);_c5=_xV(_yV,_c5,true);return _lY(_yV,_c5);}function part_emitter_clear(_yV,_c5){_yV=_uV(_yV);_c5=_xV(_yV,_c5);return _mY(_yV,_c5);}function part_emitter_region(_yV,_c5,_nY,_oY,_pY,_qY,_5X,_rY){_yV=_uV(_yV);_c5=_xV(_yV,_c5);return _sY(_yV,_c5,_nY,_oY,_pY,_qY,_5X,_rY);}function part_emitter_burst(_yV,_c5,_WW,_oe){_yV=_uV(_yV);_c5=_xV(_yV,_c5);
_WW=_AV(_WW);return _tY(_yV,_c5,_WW,_oe);}function part_emitter_stream(_yV,_c5,_WW,_oe){_yV=_uV(_yV);_c5=_xV(_yV,_c5);_WW=_AV(_WW);return _uY(_yV,_c5,_WW,_oe);}function part_emitter_delay(_yV,_c5,_vY,_wY,_xY){_yV=_uV(_yV);_c5=_xV(_yV,_c5);_xY=_EV(_xY);return _yY(_yV,_c5,_vY,_wY,_xY);}function part_emitter_interval(_yV,_c5,_zY,_AY,_BY){_yV=_uV(_yV);_c5=_xV(_yV,_c5);_BY=_EV(_BY);return _CY(_yV,_c5,_zY,_AY,_BY);}function part_emitter_relative(_yV,_c5,_xr){_yV=_uV(_yV);_c5=_xV(_yV,_c5);return _DY(_yV,_c5,_xr);
}function effect_create_below(_Xc,_96,_a6,_id,_Sm){if(_EY==-1)_FY();_GY(_EY,yyGetInt32(_Xc),yyGetReal(_96),yyGetReal(_a6),yyGetInt32(_id),yyGetInt32(_Sm));}function effect_create_above(_Xc,_96,_a6,_id,_Sm){if(_HY==-1)_FY();_GY(_HY,yyGetInt32(_Xc),yyGetReal(_96),yyGetReal(_a6),yyGetInt32(_id),yyGetInt32(_Sm));}function effect_create_layer(_CO,_Xc,_96,_a6,_id,_Sm){var layer=_GV(_CO);if(!_AW(layer._5K))layer._5K=_xW(layer._Ce,false);var _qC=layer._5K;_GY(_qC,yyGetInt32(_Xc),yyGetReal(_96),yyGetReal(_a6),
yyGetInt32(_id),yyGetInt32(_Sm));}function effect_create_depth(_el,_Xc,_96,_a6,_id,_Sm){_el=yyGetInt32(_el);var layer=_bo._oM(_c4,_el,true);if(layer==null)layer=_bo._pM(_c4,_el);if(!_AW(layer._5K))layer._5K=_xW(layer._Ce,false);var _qC=layer._5K;_GY(_qC,yyGetInt32(_Xc),yyGetReal(_96),yyGetReal(_a6),yyGetInt32(_id),yyGetInt32(_Sm));}function effect_clear(){__W(_EY);__W(_HY);}function part_system_create_layer(_CO,_IY,_wW){var id=-1;var layer=_GV(_CO);_IY=(_IY!==undefined)?yyGetBool(_IY):false;if(_wW===undefined){
id=_xW(layer._Ce,_IY);}else {_wW=_pV(_wW);var _yW=_eC._n6(_wW);if(_yW!=null){id=_yW._4M(layer._Ce,_IY);}}return _Wn(_vV,(id!=-1)?id:0xffffffff);}function part_system_get_layer(_c5){_c5=_uV(_c5);return _JY(_c5);}function part_system_layer(_c5,_CO){_c5=_uV(_c5);var layer=_GV(_CO);return _KY(_c5,layer._Ce);}function part_system_global_space(_c5,_xr){_c5=_uV(_c5);return _LY(_c5,_xr);}function part_system_get_info(_c5){return _IV(_c5,true);}function path_exists(_c5){if(_vC.Paths[yyGetInt32(_c5)])return true;return false;
}function path_get_name(_c5){_c5=yyGetInt32(_c5);if(!_vC.Paths[_c5])return "";return _vC.Paths[_c5].name;}function path_get_length(_c5){_c5=yyGetInt32(_c5);if(!_vC.Paths[_c5])return 0;return _vC.Paths[_c5].length;}function path_get_kind(_c5){_c5=yyGetInt32(_c5);if(!_vC.Paths[_c5])return 0;return _vC.Paths[_c5].kind;}function path_get_closed(_c5){_c5=yyGetInt32(_c5);if(!_vC.Paths[_c5])return true;return _vC.Paths[_c5].closed;}function path_get_precision(_c5){_c5=yyGetInt32(_c5);if(!_vC.Paths[_c5])return 8;return _vC.Paths[_c5].precision;
}function path_get_number(_c5){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return 0;if(!_NR.points)return 0;return _NR.points.length;}function path_get_point_x(_c5,_ZG){_ZG=yyGetInt32(_ZG);if(_ZG<0)return 0;var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return 0;if(!_NR.points)return 0;if(_NR.points._MY>=_ZG)return 0;return _NR.points[_ZG].x;}function path_get_point_y(_c5,_ZG){_ZG=yyGetInt32(_ZG);if(_ZG<0)return 0;var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return 0;if(!_NR.points)return 0;if(_NR.points._MY>=_ZG)return 0;
return _NR.points[_ZG].y;}function path_get_point_speed(_c5,_ZG){_ZG=yyGetInt32(_ZG);if(_ZG<0)return 0;var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return 0;if(!_NR.points)return 0;if(_NR.points._MY>=_ZG)return 0;return _NR.points[_ZG].speed;}function path_get_x(_c5,_tk){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return -1;return _NR._NY(yyGetReal(_tk));}function path_get_y(_c5,_tk){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return -1;return _NR._OY(yyGetReal(_tk));}function path_get_speed(_c5,_tk){var _NR=_vC.Paths[yyGetInt32(_c5)];
if(!_NR)return -1;return _NR._PY(yyGetReal(_tk));}function path_set_kind(_c5,_Xc){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return -1;_NR._OR(yyGetInt32(_Xc));}function path_set_closed(_c5,_QY){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return -1;_NR._QR(yyGetBool(_QY));}function path_set_precision(_c5,_Ti){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return -1;_NR._RY(yyGetInt32(_Ti));}function path_add(){var _NR=new _SY();_vC._Vf(_NR);return _NR.id;}function path_duplicate(_c5){var _NR=_vC.Paths[yyGetInt32(_c5)];
if(!_NR)return -1;var _TY=new _SY();_vC._Vf(_TY);_TY._EI(_NR);return _TY.id;}function path_assign(_c5,_IR){var _UY=_vC.Paths[yyGetInt32(_c5)];if(!_UY)return;var _VY=_vC.Paths[yyGetInt32(_IR)];if(!_VY)return;_UY._EI(_VY);}function path_start(_Z7,_IR,_xI,_WY,_XY){_Z7._YY(yyGetInt32(_IR),yyGetReal(_xI),1,0,yyGetBool(_XY),yyGetInt32(_WY));}function path_end(_Z7){_Z7._YY(-1,0,1,0,false,0);}var draw_path=_ZY;function _ZY(_yg,__Y,_0Z,_XY){__Y=yyGetReal(__Y);_0Z=yyGetReal(_0Z);var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;
_Oa.globalAlpha=_3d;_Oa.strokeStyle=_wD;var _w7,_y7,_1Z;var _2Z=0;var _3Z=_NR._4Z(0);if(!yyGetBool(_XY)){__Y=__Y-_3Z.x;_0Z=_0Z-_3Z.y;}else {__Y=0;_0Z=0;}_2Z=_Ak(_NR.length/4.0);if(_2Z==0)return;var first=true;_Oa._MD();for(var i=0;i<=_2Z;i++){_3Z=_NR._4Z(i/_2Z);if(first){_Oa._ND(__Y+_3Z.x,_0Z+_3Z.y);first=false;}else {_Oa._OD(__Y+_3Z.x,_0Z+_3Z.y);}}_Oa._QD();_Oa._PD();}function path_shift(_yg,__Y,_0Z){var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;_NR._5Z(yyGetReal(__Y),yyGetReal(_0Z));}function path_rescale(_yg,
_Qm,_Rm){var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;_NR._6Z(yyGetReal(_Qm),yyGetReal(_Rm));}function path_rotate(_yg,_d6){var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;_NR._7Z(yyGetReal(_d6));}function path_reverse(_yg){var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;_NR._MS();}function path_flip(_yg){var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;_NR._8Z();}function path_mirror(_yg){var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;_NR._9Z();}function path_change_point(_yg,_c5,_aZ,_bZ,_xI){
var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;_NR._cZ(_c5,yyGetReal(_aZ),yyGetReal(_bZ),yyGetReal(_xI));}function path_delete(_c5){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return;_vC._pl(_NR);}function path_append(_c5,_IR){var _jk=_vC.Paths[yyGetInt32(_c5)];if(!_jk)return;var _kk=_vC.Paths[yyGetInt32(_IR)];if(!_kk)return;_jk._dZ(_kk);}function path_add_point(_c5,_96,_a6,_xI){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return 0;_NR._RR(yyGetReal(_96),yyGetReal(_a6),yyGetReal(_xI));}function path_insert_point(_c5,
_ZG,_96,_a6,_xI){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return 0;_NR._eZ(yyGetInt32(_ZG),yyGetReal(_96),yyGetReal(_a6),yyGetReal(_xI));}function path_delete_point(_c5,_ZG){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return 0;_NR._fZ(yyGetInt32(_ZG));}function path_clear_points(_c5){var _NR=_vC.Paths[yyGetInt32(_c5)];if(!_NR)return 0;_NR._ag();}var _gZ=new _hZ();var _iZ=new _hZ();var _jZ=new _hZ();function physics_world_create(_kZ){_kZ=yyGetReal(_kZ);if(_c4._lZ){_c4._lZ._mZ(_kZ);_c4._lZ._nZ(_g4._h4());}else {
var physicsWorld=new _oZ(_kZ,_g4._h4());_c4._lZ=physicsWorld;}}function physics_world_draw_debug(_pZ){_c4._lZ._qZ(yyGetInt32(_pZ));}function physics_world_gravity(_rZ,_sZ){_c4._lZ._tZ(yyGetReal(_rZ),yyGetReal(_sZ));}function physics_world_update_speed(_xI){_c4._lZ._nZ(yyGetInt32(_xI));}function physics_world_update_iterations(_mT){_c4._lZ._uZ(yyGetInt32(_mT));}function physics_pause_enable(_vZ){if(yyGetBool(_vZ)){_c4._lZ._KC();}else {_c4._lZ._wZ();}}function physics_fixture_create(){var _xZ=_gZ._Vf(new _yZ());
return _xZ;}function physics_fixture_set_kinematic(_zZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._BZ();}function physics_fixture_set_density(_zZ,_CZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._DZ(yyGetReal(_CZ));}function physics_fixture_set_restitution(_zZ,_EZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._FZ(yyGetReal(_EZ));}function physics_fixture_set_friction(_zZ,_GZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._HZ(yyGetReal(_GZ));}function physics_fixture_set_collision_group(_zZ,_IZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._JZ(yyGetInt32(_IZ));
}function physics_fixture_set_sensor(_zZ,_KZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._LZ(yyGetBool(_KZ));}function physics_fixture_set_linear_damping(_zZ,_MZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._NZ(yyGetReal(_MZ));}function physics_fixture_set_angular_damping(_zZ,_MZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._OZ(yyGetReal(_MZ));}function physics_fixture_set_awake(_zZ,_PZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._QZ(yyGetInt32(_PZ));}function physics_fixture_set_circle_shape(_zZ,_RZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));
_AZ._SZ(yyGetReal(_RZ)*_c4._lZ._TZ);}function physics_fixture_set_box_shape(_zZ,_UZ,_VZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));var scale=_c4._lZ._TZ;_AZ._WZ(yyGetReal(_UZ)*scale,yyGetReal(_VZ)*scale);}function physics_fixture_set_edge_shape(_zZ,_ec,_fc,_gc,_hc){var _AZ=_gZ._n6(yyGetInt32(_zZ));var scale=_c4._lZ._TZ;_AZ._XZ(yyGetReal(_ec)*scale,yyGetReal(_fc)*scale,yyGetReal(_gc)*scale,yyGetReal(_hc)*scale);}function physics_fixture_set_polygon_shape(_zZ){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._YZ();}function physics_fixture_set_chain_shape(_zZ,
_x4){var _AZ=_gZ._n6(yyGetInt32(_zZ));_AZ._ZZ(yyGetBool(_x4));}function physics_fixture_add_point(_zZ,__Z,_0_){var _AZ=_gZ._n6(yyGetInt32(_zZ));var scale=_c4._lZ._TZ;_AZ._1_(yyGetReal(__Z)*scale,yyGetReal(_0_)*scale);}function physics_fixture_bind_ext(_Z7,_zZ,_yg,_d5,_e5){_d5=yyGetReal(_d5);_e5=yyGetReal(_e5);var _2_=-1;var _3_=-1;var _AZ=_gZ._n6(yyGetInt32(_zZ));var _ck=yyGetInt32(_yg);if(_ck==_rT){_ck=_Z7.id;}if(_ck==__I){var _yk=_Fx._QS();for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(_9o.marked)continue;
_2_=_c4._lZ._4_(_AZ,_9o,_d5,_e5,false);}}else if(_ck<100000){var _By=_14._n6(_ck);if(_By===null){return _3_;}var _yk=_By._5_();for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(_9o.marked)continue;_2_=_c4._lZ._4_(_AZ,_9o,_d5,_e5,false);}}else {var _9o=_Fx._n6(_ck);_2_=_c4._lZ._4_(_AZ,_9o,_d5,_e5,false);}return _2_;}function physics_fixture_bind(_Z7,_zZ,_yg,_6_,_7_){_zZ=yyGetInt32(_zZ);_yg=yyGetInt32(_yg);if(_6_!==undefined&&_7_!==undefined){return physics_fixture_bind_ext(_Z7,_zZ,_yg,yyGetReal(_6_),yyGetReal(_7_));
}else {return physics_fixture_bind_ext(_Z7,_zZ,_yg,0.0,0.0);}}function physics_fixture_delete(_zZ){_gZ._3j(yyGetInt32(_zZ));}function physics_joint_distance_create(_8_,_9_,_a_,_b_,_c_,_d_,_e_){var _f_=_Fx._n6(yyGetInt32(_8_));var _g_=_Fx._n6(yyGetInt32(_9_));var _h_=_c4._lZ._i_(_f_._j_,_g_._j_,yyGetReal(_a_),yyGetReal(_b_),yyGetReal(_c_),yyGetReal(_d_),yyGetBool(_e_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}function physics_joint_rope_create(_8_,_9_,_a_,_b_,_c_,_d_,_k_,_e_){var _f_=_Fx._n6(yyGetInt32(_8_));
var _g_=_Fx._n6(yyGetInt32(_9_));var _h_=_c4._lZ._l_(_f_._j_,_g_._j_,yyGetReal(_a_),yyGetReal(_b_),yyGetReal(_c_),yyGetReal(_d_),yyGetReal(_k_),yyGetBool(_e_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}function physics_joint_revolute_create(_8_,_9_,_m_,_n_,_o_,_p_,_q_,_r_,_s_,_t_,_e_){var _f_=_Fx._n6(yyGetInt32(_8_));var _g_=_Fx._n6(yyGetInt32(_9_));var _h_=_c4._lZ._u_(_f_._j_,_g_._j_,yyGetReal(_m_),yyGetReal(_n_),(yyGetReal(_o_)*Math.PI)/180.0,(yyGetReal(_p_)*Math.PI)/180.0,yyGetBool(_q_),yyGetReal(_r_),
yyGetReal(_s_),yyGetBool(_t_),yyGetBool(_e_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}function physics_joint_prismatic_create(_8_,_9_,_m_,_n_,_v_,_w_,_x_,_y_,_q_,_z_,_s_,_t_,_e_){var _f_=_Fx._n6(yyGetInt32(_8_));var _g_=_Fx._n6(yyGetInt32(_9_));var _h_=_c4._lZ._A_(_f_._j_,_g_._j_,yyGetReal(_m_),yyGetReal(_n_),yyGetReal(_v_),yyGetReal(_w_),yyGetReal(_x_),yyGetReal(_y_),yyGetBool(_q_),yyGetReal(_z_),yyGetReal(_s_),yyGetBool(_t_),yyGetBool(_e_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}function physics_joint_pulley_create(_8_,
_9_,_a_,_b_,_c_,_d_,_B_,_C_,_D_,_E_,_F_,_e_){var _f_=_Fx._n6(yyGetInt32(_8_));var _g_=_Fx._n6(yyGetInt32(_9_));var _h_=_c4._lZ._G_(_f_._j_,_g_._j_,yyGetReal(_a_),yyGetReal(_b_),yyGetReal(_c_),yyGetReal(_d_),yyGetReal(_B_),yyGetReal(_C_),yyGetReal(_D_),yyGetReal(_E_),yyGetReal(_F_),yyGetBool(_e_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}function physics_joint_wheel_create(_8_,_9_,_H_,_I_,_J_,_K_,_L_,_r_,_s_,_M_,_N_,_e_){var _f_=_Fx._n6(yyGetInt32(_8_));var _g_=_Fx._n6(yyGetInt32(_9_));var _h_=_c4._lZ._O_(_f_._j_,
_g_._j_,yyGetReal(_H_),yyGetReal(_I_),yyGetReal(_J_),yyGetReal(_K_),yyGetBool(_L_),yyGetReal(_r_),yyGetReal(_s_),yyGetReal(_M_),yyGetReal(_N_),yyGetBool(_e_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}function physics_joint_weld_create(_8_,_9_,_H_,_I_,_P_,_M_,_N_,_e_){var _f_=_Fx._n6(yyGetInt32(_8_));var _g_=_Fx._n6(yyGetInt32(_9_));var _h_=_c4._lZ._Q_(_f_._j_,_g_._j_,yyGetReal(_H_),yyGetReal(_I_),yyGetReal(_P_),yyGetReal(_M_),yyGetReal(_N_),yyGetBool(_e_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}
function physics_joint_friction_create(_8_,_9_,_H_,_I_,_R_,_S_,_e_){var _f_=_Fx._n6(yyGetInt32(_8_));var _g_=_Fx._n6(yyGetInt32(_9_));var _h_=_c4._lZ._T_(_f_._j_,_g_._j_,yyGetReal(_H_),yyGetReal(_I_),yyGetReal(_R_),yyGetReal(_S_),yyGetBool(_e_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}function physics_joint_gear_create(_8_,_9_,_U_,_V_,_F_){var _f_=_Fx._n6(yyGetInt32(_8_));var _g_=_Fx._n6(yyGetInt32(_9_));var _W_=_jZ._n6(yyGetInt32(_U_));var _X_=_jZ._n6(yyGetInt32(_V_));if(_W_==null||_X_==null){_q5("A joint does not exist");
return;}var _h_=_c4._lZ._Y_(_f_._j_,_g_._j_,_W_,_X_,yyGetReal(_F_));if(_h_!=-1){return _jZ._Vf(_h_);}return -1;}function physics_joint_enable_motor(_Z_,___){var _001=_jZ._n6(yyGetInt32(_Z_));if(_001==null){_q5("A joint does not exist");return;}_001._101(yyGetBool(___));}function physics_joint_get_value(_Z_,_201){var _001=_jZ._n6(yyGetInt32(_Z_));if(_001==null){_q5("A joint does not exist");return;}return _001._301(yyGetInt32(_201));}function physics_joint_set_value(_Z_,_201,_Ol){var _001=_jZ._n6(yyGetInt32(_Z_));
if(_001==null){_q5("A joint does not exist");return;}return _001._401(yyGetInt32(_201),yyGetReal(_Ol));}function physics_joint_delete(_501){_501=yyGetInt32(_501);var _001=_jZ._n6(_501);if(_001!=null){_c4._lZ._601(_001);}_jZ._3j(_501);}function physics_apply_force(_Pn,_pj,_qj,_701,_801){var scale=_c4._lZ._TZ;var _901=yyGetReal(_pj)*scale;var _a01=yyGetReal(_qj)*scale;_Pn._j_._b01(_901,_a01,yyGetReal(_701),yyGetReal(_801));}function physics_apply_impulse(_Pn,_pj,_qj,_c01,_d01){var scale=_c4._lZ._TZ;var _901=yyGetReal(_pj)*scale;
var _a01=yyGetReal(_qj)*scale;_Pn._j_._e01(_901,_a01,yyGetReal(_c01),yyGetReal(_d01));}function physics_apply_local_force(_Pn,_f01,_g01,_h01,_i01){var scale=_c4._lZ._TZ;var _j01=yyGetReal(_f01)*scale;var _k01=yyGetReal(_g01)*scale;_Pn._j_._l01(_j01,_k01,yyGetReal(_h01),yyGetReal(_i01));}function physics_apply_local_impulse(_Pn,_f01,_g01,_m01,_n01){var scale=_c4._lZ._TZ;var _j01=yyGetReal(_f01)*scale;var _k01=yyGetReal(_g01)*scale;_Pn._j_._o01(_j01,_k01,yyGetReal(_m01),yyGetReal(_n01));}function physics_apply_angular_impulse(_Pn,
_p01){_Pn._j_._q01(yyGetReal(_p01));}function physics_apply_torque(_Pn,_r01){_Pn._j_._s01(yyGetReal(_r01));}function physics_mass_properties(_Pn,_t01,_u01,_v01,_w01){var scale=_c4._lZ._TZ;_Pn._j_._x01(yyGetReal(_t01),yyGetReal(_u01)*scale,yyGetReal(_v01)*scale,yyGetReal(_w01));}function physics_draw_debug(_Pn){if((_Pn._j_!=null)&&(_Pn._j_!=undefined)){_Pn._j_._qZ(1.0/_c4._lZ._TZ);}}function physics_test_overlap(_Z7,_96,_a6,_d6,_ck){_ck=yyGetInt32(_ck);var _Pn=_Z7;if(_ck==_rT){_ck=_Pn.id;}var x=yyGetReal(_96)*_c4._lZ._TZ;
var y=yyGetReal(_a6)*_c4._lZ._TZ;var angle=(yyGetReal(_d6)*Math.PI)/180.0;if(_ck==__I){var _yk=_Fx._QS();for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(_9o.marked)continue;if(_c4._lZ._y01(_Z7,_9o,x,y,angle)){return true;}}}else if(_ck<100000){var _By=_14._n6(_ck);if(_By===null){return false;}var _yk=_By._5_();for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(_9o.marked)continue;if(_c4._lZ._y01(_Z7,_9o,x,y,angle)){return true;}}}else {var _9o=_Fx._n6(_ck);return _c4._lZ._y01(_Z7,_9o,x,y,angle);}}function physics_remove_fixture(_Z7,
_z01){_z01=yyGetInt32(_z01);var _3_=-1;var _ck=yyGetInt32(_Z7);if(_ck==_rT){_ck=_Z7.id;}if(_ck==__I){var _yk=_Fx._QS();for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(_9o.marked)continue;if(_9o._j_){_9o._j_._A01(_z01);}}}else if(_ck<100000){var _By=_14._n6(_ck);if(_By===null){return _3_;}var _yk=_By._5_();for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(_9o.marked)continue;if(_9o._j_){_9o._j_._A01(_z01);}}}else {var _9o=_Fx._n6(_ck);if(_9o._j_){_9o._j_._A01(_z01);}}}function physics_get_friction(_Z7,
_z01){if(_Z7._j_){return _Z7._j_._B01(yyGetInt32(_z01));}return 0.0;}function physics_get_density(_Z7,_z01){if(_Z7._j_){return _Z7._j_._C01(yyGetInt32(_z01));}return 0.0;}function physics_get_restitution(_Z7,_z01){if(_Z7._j_){return _Z7._j_._D01(yyGetInt32(_z01));}return 0.0;}function physics_set_friction(_Z7,_z01,_k4){if(_Z7._j_){_Z7._j_._HZ(yyGetInt32(_z01),yyGetReal(_k4));}}function physics_set_density(_Z7,_z01,_k4){if(_Z7._j_){_Z7._j_._DZ(yyGetInt32(_z01),yyGetReal(_k4));}}function physics_set_restitution(_Z7,
_z01,_k4){if(_Z7._j_){_Z7._j_._FZ(yyGetInt32(_z01),yyGetReal(_k4));}}function physics_particle_create(_E01,x,y,_F01,_G01,_55,alpha,_H01){return _c4._lZ._I01(yyGetInt32(_E01),yyGetReal(x),yyGetReal(y),yyGetReal(_F01),yyGetReal(_G01),yyGetInt32(_55),yyGetReal(alpha),yyGetInt32(_H01));}function physics_particle_delete(_6a){_c4._lZ._J01(yyGetInt32(_6a));}function physics_particle_delete_region_circle(x,y,_K01){_c4._lZ._L01(yyGetReal(x),yyGetReal(y),yyGetReal(_K01));}function physics_particle_delete_region_box(x,
y,_M01,_N01){_c4._lZ._O01(yyGetReal(x),yyGetReal(y),yyGetReal(_M01),yyGetReal(_N01));}function physics_particle_delete_region_poly(_P01){_P01=yyGetInt32(_P01);var points=[];for(var _c7=0;_c7<ds_list_size(_P01);_c7++){points.push(ds_list_find_value(_P01,_c7));}_c4._lZ._Q01(points,points.length>>1);}function physics_particle_group_begin(_E01,_R01,x,y,_S01,_F01,_G01,_T01,_55,alpha,_U01,_H01){_c4._lZ._V01(yyGetInt32(_E01),yyGetInt32(_R01),yyGetReal(x),yyGetReal(y),yyGetReal(_S01),yyGetReal(_F01),yyGetReal(_G01),
yyGetReal(_T01),yyGetInt32(_55),yyGetReal(alpha),yyGetReal(_U01),yyGetInt32(_H01));}function physics_particle_group_circle(_K01){_c4._lZ._W01(yyGetReal(_K01));}function physics_particle_group_box(_M01,_N01){_c4._lZ._X01(yyGetReal(_M01),yyGetReal(_N01));}function physics_particle_group_polygon(){_c4._lZ._Y01();}function physics_particle_group_add_point(x,y){_c4._lZ._Z01(yyGetReal(x),yyGetReal(y));}function physics_particle_group_end(){return _c4._lZ.__01();}function physics_particle_group_join(_011,from){
_c4._lZ._111(yyGetInt32(_011),yyGetInt32(from));}function physics_particle_group_delete(_6a){_c4._lZ._211(yyGetInt32(_6a));}function physics_particle_draw(_311,_H01,_mN,_411){var _Px=_m6._n6(yyGetInt32(_mN));if(_Px!==null){_c4._lZ._511(yyGetInt32(_311),yyGetInt32(_H01),_Px,yyGetInt32(_411));}}function physics_particle_draw_ext(_311,_H01,_mN,_411,_OJ,_PJ,angle,_55,alpha){var _Px=_m6._n6(yyGetInt32(_mN));if(_Px!==null){_c4._lZ._611(yyGetInt32(_311),yyGetInt32(_H01),_Px,yyGetInt32(_411),yyGetReal(_OJ),yyGetReal(_PJ),
yyGetReal(angle),yyGetInt32(_55),yyGetReal(alpha));}}function physics_particle_count(){return _c4._lZ._711();}function physics_particle_get_data(buffer,_811){var _ob=_wG._n6(yyGetInt32(buffer));if(_ob){_c4._lZ._911(_ob,yyGetInt32(_811));}}function physics_particle_get_max_count(){return _c4._lZ._a11();}function physics_particle_get_radius(){return _c4._lZ._b11();}function physics_particle_get_density(){return _c4._lZ._c11();}function physics_particle_get_damping(){return _c4._lZ._d11();}function physics_particle_get_gravity_scale(){
return _c4._lZ._e11();}function physics_particle_set_max_count(_c9){_c4._lZ._f11(yyGetInt32(_c9));}function physics_particle_set_radius(_K01){_c4._lZ._g11(yyGetReal(_K01));}function physics_particle_set_density(_h11){_c4._lZ._i11(yyGetReal(_h11));}function physics_particle_set_damping(_j11){_c4._lZ._k11(yyGetReal(_j11));}function physics_particle_set_gravity_scale(scale){_c4._lZ._l11(yyGetReal(scale));}function physics_particle_set_flags(_c5,_m11){_c4._lZ._n11(yyGetInt32(_c5),yyGetInt32(_m11));}function physics_particle_set_category_flags(_o11,
_m11){_c4._lZ._p11(yyGetInt32(_o11),yyGetInt32(_m11));}function physics_particle_set_group_flags(_IZ,_pZ){_c4._lZ._q11(yyGetInt32(_IZ),yyGetInt32(_pZ));}function physics_particle_get_group_flags(_IZ){return _c4._lZ._r11(yyGetInt32(_IZ));}function physics_particle_get_data_particle(_6a,buffer,_811){var _ob=_wG._n6(yyGetInt32(buffer));if(_ob){_c4._lZ._s11(yyGetInt32(_6a),_ob,yyGetInt32(_811));}}function physics_particle_group_count(_t11){return _c4._lZ._u11(yyGetInt32(_t11));}function physics_particle_group_get_data(_t11,
buffer,_811){var _ob=_wG._n6(yyGetInt32(buffer));if(_ob){_c4._lZ._v11(yyGetInt32(_t11),_ob,yyGetInt32(_811));}}function physics_particle_group_get_mass(_t11){return _c4._lZ._w11(yyGetInt32(_t11));}function physics_particle_group_get_inertia(_t11){return _c4._lZ._x11(yyGetInt32(_t11));}function physics_particle_group_get_centre_x(_t11){return _c4._lZ._y11(yyGetInt32(_t11));}function physics_particle_group_get_centre_y(_t11){return _c4._lZ._z11(yyGetInt32(_t11));}function physics_particle_group_get_vel_x(_t11){
return _c4._lZ._A11(yyGetInt32(_t11));}function physics_particle_group_get_vel_y(_t11){return _c4._lZ._B11(yyGetInt32(_t11));}function physics_particle_group_get_ang_vel(_t11){return _c4._lZ._C11(yyGetInt32(_t11));}function physics_particle_group_get_x(_t11){return _c4._lZ._D11(yyGetInt32(_t11));}function physics_particle_group_get_y(_t11){return _c4._lZ._E11(yyGetInt32(_t11));}function physics_particle_group_get_angle(_t11){return _c4._lZ._F11(yyGetInt32(_t11));}function _G11(_H11,_I11,_J11,_K11,_ck,_L11,_M11){
var _95=undefined;if(_ck==_rT){_ck=_Z7.id;}if(_ck==__I){var _N11=Number.MAX_VALUE;var _O11=undefined;var _yk=_Fx._QS();for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(_9o.marked)continue;if(_9o._j_){var _j7=_9o._j_._P11(_H11,_I11,_J11,_K11,_M11);if(_j7!=undefined){variable_struct_set(_j7,"instance",_9o.id);let _Q11=yyGetReal(variable_struct_get(_j7,"fraction"));if(_L11){if(_95==undefined)_95=[];_95=_95.concat(_j7);}else if(_Q11<_N11){_O11=_j7;_N11=_Q11;}}}}if(_O11!=undefined){_95=[_O11];}}else if(_ck<100000){
var _By=_14._n6(_ck);if(_By!==null){var _N11=Number.MAX_VALUE;var _O11=undefined;var _yk=_By._5_();for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(_9o.marked)continue;if(_9o._j_){var _j7=_9o._j_._P11(_H11,_I11,_J11,_K11,_M11);if(_j7!=undefined){variable_struct_set(_j7,"instance",_9o.id);let _Q11=yyGetReal(variable_struct_get(_j7,"fraction"));if(_L11){if(_95==undefined)_95=[];_95=_95.concat(_j7);}else if(_Q11<_N11){_O11=_j7;_N11=_Q11;}}}}if(_O11!=undefined){_95=[_O11];}}}else {var _9o=_Fx._n6(_ck);if(_9o._j_){
var _j7=_9o._j_._P11(_H11,_I11,_J11,_K11,_M11);if(_j7!=undefined){variable_struct_set(_j7,"instance",_9o.id);if(_95==undefined)_95=[];_95=_95.concat(_j7);}}}return _95;}function physics_raycast(_H11,_I11,_J11,_K11,ids,_L11,_M11){_L11??=false;_M11??=1.0;if(Array.isArray(ids)){var _N11=Number.MAX_VALUE;var _O11=undefined;var _95=undefined;for(var i=0;i<ids.length;++i){var _Y4=_G11(_H11,_I11,_J11,_K11,yyGetInt32(ids[i]),_L11,_M11);if(_Y4!=undefined){if(_L11){if(_95==undefined)_95=[];_95=_95.concat(_Y4);}else {
for(h in _Y4){if(h._R11<_N11){_N11=h._R11;_O11=h;}}}}}if(_O11!=undefined){_95=[_O11];}return _95;}else {return _G11(_H11,_I11,_J11,_K11,yyGetInt32(ids),_L11,_M11);}}var _S11=false;var _T11=false;function room_exists(_c5){var room=_uC._n6(yyGetInt32(_c5));if((room===null)||(room==undefined)){return false;}return true;}function room_get_name(_c5){var _ao=_uC._n6(yyGetInt32(_c5));if(_ao===null)return "";if((_ao._U11===undefined)||(_ao._U11===null))return "";return _ao._U11.pName;}function _V11(_c5){return room_get_name(_c5);
}function room_get_info(_c5,_W11,_X11,_Y11,_Z11,__11){var _ao=_uC._n6(yyGetInt32(_c5));var _95={};_95.__yyIsGMLObject=true;if((_ao!==null)&&(_ao._U11!==undefined)&&(_ao._U11!==null)){_W11=_W11??true;_X11=_X11??true;_Y11=_Y11??true;_Z11=_Z11??true;__11=__11??true;var _021=_ao._U11;variable_struct_set(_95,"width",_021.width?_021.width:1024);variable_struct_set(_95,"height",_021.height?_021.height:768);variable_struct_set(_95,"persistent",_021.persistent?_021.persistent:false);variable_struct_set(_95,"colour",
_021.colour?_021.colour:0xc0c0c0);variable_struct_set(_95,"creationCode",_021.pCode?_021.pCode:-1);variable_struct_set(_95,"physicsWorld",_021.physicsWorld?_021.physicsWorld:false);if(_021.physicsWorld){variable_struct_set(_95,"physicsGravityX",_021.physicsGravityX?_021.physicsGravityX:0);variable_struct_set(_95,"physicsGravityY",_021.physicsGravityY?_021.physicsGravityY:0);variable_struct_set(_95,"physicsPixToMeters",_021.physicsPixToMeters?_021.physicsPixToMeters:0);}variable_struct_set(_95,"enableViews",
_021.enableViews?_021.enableViews:false);variable_struct_set(_95,"clearDisplayBuffer",_021._121?_021._121:true);variable_struct_set(_95,"clearViewportBackground",_021._221?_021._221:true);if(_W11){var views=new Array(_021.views.length);for(var i=0;i<_021.views.length;i++){var _321=_021.views[i];if(_321){var _H5={};_H5.__yyIsGMLObject=true;variable_struct_set(_H5,"visible",_321.visible?_321.visible:false);variable_struct_set(_H5,"xview",_321.xview?_321.xview:0);variable_struct_set(_H5,"yview",_321.yview?_321.yview:0);
variable_struct_set(_H5,"wview",_321.wview?_321.wview:640);variable_struct_set(_H5,"hview",_321.hview?_321.hview:480);variable_struct_set(_H5,"xport",_321.xport?_321.xport:0);variable_struct_set(_H5,"yport",_321.yport?_321.yport:0);variable_struct_set(_H5,"wport",_321.wport?_321.wport:640);variable_struct_set(_H5,"hport",_321.hport?_321.hport:480);variable_struct_set(_H5,"hborder",_321.hborder?_321.hborder:32);variable_struct_set(_H5,"vborder",_321.vborder?_321.vborder:32);variable_struct_set(_H5,
"hspeed",_321.hspeed?_321.hspeed:-1);variable_struct_set(_H5,"vspeed",_321.vspeed?_321.vspeed:-1);var _421=_321.index?((_321.index>=100000)?_Wn(_Xn,_321.index):_Wn(_521,_321.index)):-1;variable_struct_set(_H5,"object",_421);variable_struct_set(_H5,"cameraID",_321._621?_321._621:-1);views[i]=_H5;}}variable_struct_set(_95,"views",views);}if(_X11){var _tV=new Array(_021.pInstances.length);for(var i=0;i<_021.pInstances.length;i++){var _721=_021.pInstances[i];if(_721){var _By=_14._n6(yyGetInt32(_721.index));
var _Hx={};_Hx.__yyIsGMLObject=true;variable_struct_set(_Hx,"x",_721.x?_721.x:0);variable_struct_set(_Hx,"y",_721.y?_721.y:0);_Hx.object_index=_By._Ox;_Hx.id=_721.id;variable_struct_set(_Hx,"angle",_721.angle?_721.angle:0);variable_struct_set(_Hx,"xscale",_721.scaleX?_721.scaleX:1);variable_struct_set(_Hx,"yscale",_721.scaleY?_721.scaleY:1);variable_struct_set(_Hx,"image_speed",_721.imageSpeed?_721.imageSpeed:1);variable_struct_set(_Hx,"image_index",_721.imageIndex?_721.imageIndex:0);variable_struct_set(_Hx,
"colour",_721.image_blend?_721.image_blend:0x00ffffff);variable_struct_set(_Hx,"creation_code",_721.pCode?_721.pCode:-1);variable_struct_set(_Hx,"pre_creation_code",_721.pPreCreateCode?_721.pPreCreateCode:-1);_tV[i]=_Hx;}}variable_struct_set(_95,"instances",_tV);}if(_Y11){var layers=new Array(_021.layers.length);for(var i=0;i<_021.layers.length;i++){var _821=_021.layers[i];if(_821!=null){var _921={};_921.__yyIsGMLObject=true;variable_struct_set(_921,"name",_821.pName?_821.pName:"");variable_struct_set(_921,
"id",_821.id?_821.id:0);variable_struct_set(_921,"type",_821.type?_821.type:0);variable_struct_set(_921,"depth",_821.depth?_821.depth:0);variable_struct_set(_921,"xoffset",_821.x?_821.x:0);variable_struct_set(_921,"yoffset",_821.y?_821.y:0);variable_struct_set(_921,"hspeed",_821.hspeed?_821.hspeed:0);variable_struct_set(_921,"vspeed",_821.vspeed?_821.vspeed:0);variable_struct_set(_921,"visible",_821.visible?_821.visible:true);variable_struct_set(_921,"effectEnabled",_821.effectEnabled?_821.effectEnabled:true);
variable_struct_set(_921,"effectType",_821.effectType?_821.effectType:-1);_a21=new Array(_821.effectProperties.length);var _b21;for(_b21=0;_b21<_821.effectProperties.length;_b21++){var _c21={};_c21.__yyIsGMLObject=true;variable_struct_set(_c21,"type",_821.effectProperties[_b21].type);variable_struct_set(_c21,"name",_821.effectProperties[_b21].name);variable_struct_set(_c21,"value",_821.effectProperties[_b21].value);_a21[_b21]=_c21;}variable_struct_set(_921,"effectParams",_a21);layers[i]=_921;if(_Z11){
var elements=[];switch(_821.type){case _rJ:var _Ad={};_Ad.__yyIsGMLObject=true;variable_struct_set(_Ad,"type",_821.type);elements[0]=_Ad;variable_struct_set(_Ad,"visible",_821.bvisible?_821.bvisible:true);variable_struct_set(_Ad,"foreground",_821.bforeground?_821.bforeground:false);variable_struct_set(_Ad,"sprite_index",_821.bindex?_Wn(_d21,_821.bindex):0);variable_struct_set(_Ad,"htiled",_821.bhtiled?_821.bhtiled:false);variable_struct_set(_Ad,"vtiled",_821.bvtiled?_821.bvtiled:false);variable_struct_set(_Ad,
"stretch",_821.bstretch?_821.bstretch:false);variable_struct_set(_Ad,"blendColour",_821.bblend?_821.bblend&0xffffff:0x00ffffff);variable_struct_set(_Ad,"blendAlpha",_821.bblend?(((_821.bblend&0xff000000)>>24)&0xff)/255:1);variable_struct_set(_Ad,"image_speed",_821.bimage_speed?_821.bimage_speed:1);variable_struct_set(_Ad,"image_index",_821.bimage_index?_821.bimage_index:0);variable_struct_set(_Ad,"speed_type",_821.playbackspeedtype?_821.playbackspeedtype:0);break;case _sJ:elements=new Array(_821.iinstIDs.length);
for(var _Tx=0;_Tx<_821.iinstIDs.length;++_Tx){var _Ad={};_Ad.__yyIsGMLObject=true;variable_struct_set(_Ad,"type",_821.type);variable_struct_set(_Ad,"inst_id",_Wn(_Xn,_821.iinstIDs[_Tx]));elements[_Tx]=_Ad;}break;case _uJ:var _Ad={};_Ad.__yyIsGMLObject=true;variable_struct_set(_Ad,"type",_821.type);elements[0]=_Ad;variable_struct_set(_Ad,"x",0);variable_struct_set(_Ad,"y",0);variable_struct_set(_Ad,"width",_821.tMapWidth?_821.tMapWidth:0);variable_struct_set(_Ad,"height",_821.tMapHeight?_821.tMapHeight:0);
variable_struct_set(_Ad,"tileset_index",_821.tIndex?_Wn(_e21,_821.tIndex):0);if(__11)variable_struct_set(_Ad,"tiles",_821.ttiles?_dO(_821.ttiles):[]);break;case _tJ:var _f21;for(_f21=0;_f21<_821.assets.length;_f21++){var _Ad={};_Ad.__yyIsGMLObject=true;variable_struct_set(_Ad,"type",7);variable_struct_set(_Ad,"x",_821.assets[_f21].ax);variable_struct_set(_Ad,"y",_821.assets[_f21].ay);variable_struct_set(_Ad,"sprite_index",_Wn(_d21,_821.assets[_f21].aindex));variable_struct_set(_Ad,"xo",_821.assets[_f21].aXO);
variable_struct_set(_Ad,"yo",_821.assets[_f21].aYO);variable_struct_set(_Ad,"width",_821.assets[_f21].aW);variable_struct_set(_Ad,"height",_821.assets[_f21].aH);variable_struct_set(_Ad,"id",_821.assets[_f21].aId);variable_struct_set(_Ad,"image_xscale",_821.assets[_f21].aXScale);variable_struct_set(_Ad,"image_yscale",_821.assets[_f21].aYScale);variable_struct_set(_Ad,"image_blend",_821.assets[_f21].aBlend&0x00ffffff);variable_struct_set(_Ad,"image_alpha",(((_821.assets[_f21].aBlend&0xff000000)>>24)&0xff)/255);
variable_struct_set(_Ad,"visible",true);elements.push(_Ad);}for(_f21=0;_f21<_821.sprites.length;_f21++){var _Ad={};_Ad.__yyIsGMLObject=true;variable_struct_set(_Ad,"type",4);variable_struct_set(_Ad,"id",_821.sprites[_f21].sName);variable_struct_set(_Ad,"sprite_index",_Wn(_d21,_821.sprites[_f21].sIndex));variable_struct_set(_Ad,"x",_821.sprites[_f21].sX);variable_struct_set(_Ad,"y",_821.sprites[_f21].sY);variable_struct_set(_Ad,"image_xscale",_821.sprites[_f21].sXScale);variable_struct_set(_Ad,"image_yscale",
_821.sprites[_f21].sYScale);variable_struct_set(_Ad,"image_blend",_821.sprites[_f21].sBlend&0x00ffffff);variable_struct_set(_Ad,"image_alpha",(((_821.sprites[_f21].sBlend&0xff000000)>>24)&0xff)/255);variable_struct_set(_Ad,"speed_type",_821.sprites[_f21].sPlaybackSpeedType);variable_struct_set(_Ad,"image_speed",_821.sprites[_f21].sImageSpeed);variable_struct_set(_Ad,"image_index",_821.sprites[_f21].sImageIndex);variable_struct_set(_Ad,"image_angle",_821.sprites[_f21].sRotation);elements.push(_Ad);
}for(_f21=0;_f21<_821.sequences.length;_f21++){var _Ad={};_Ad.__yyIsGMLObject=true;variable_struct_set(_Ad,"type",8);variable_struct_set(_Ad,"id",_821.sequences[_f21].sName);variable_struct_set(_Ad,"seq_id",_Wn(_g21,_821.sequences[_f21].sIndex));variable_struct_set(_Ad,"x",_821.sequences[_f21].sX);variable_struct_set(_Ad,"y",_821.sequences[_f21].sY);variable_struct_set(_Ad,"image_xscale",_821.sequences[_f21].sXScale);variable_struct_set(_Ad,"image_yscale",_821.sequences[_f21].sYScale);variable_struct_set(_Ad,
"image_blend",_821.sequences[_f21].sBlend&0x00ffffff);variable_struct_set(_Ad,"image_alpha",(((_821.sequences[_f21].sBlend&0xff000000)>>24)&0xff)/255);variable_struct_set(_Ad,"speed_type",_821.sequences[_f21].sPlaybackSpeedType);variable_struct_set(_Ad,"image_speed",_821.sequences[_f21].sImageSpeed);variable_struct_set(_Ad,"head_position",_821.sequences[_f21].sHeadPosition);variable_struct_set(_Ad,"angle",_821.sequences[_f21].sRotation);elements.push(_Ad);}for(_f21=0;i<_821.particles.length;_f21++){
var _h21=_821.particles[_f21];var _Ad={};_Ad.__yyIsGMLObject=true;variable_struct_set(_Ad,"type",6);variable_struct_set(_Ad,"id",_h21.sName);variable_struct_set(_Ad,"ps",_Wn(_vV,_h21.sIndex));variable_struct_set(_Ad,"x",_h21.sX);variable_struct_set(_Ad,"y",_h21.sY);variable_struct_set(_Ad,"xscale",_h21.sXScale);variable_struct_set(_Ad,"yscale",_h21.sYScale);variable_struct_set(_Ad,"blend",_h21.sBlend&0x00ffffff);variable_struct_set(_Ad,"alpha",(((_h21.sBlend&0xff000000)>>24)&0xff)/255);variable_struct_set(_Ad,
"angle",_h21.sRotation);elements.push(_Ad);}for(_f21=0;_f21<_821.textitems.length;_f21++){var _Ad={};_Ad.__yyIsGMLObject=true;variable_struct_set(_Ad,"type",9);variable_struct_set(_Ad,"id",_821.textitems[_f21].sName);variable_struct_set(_Ad,"font_id",_Wn(_VO,_821.textitems[_f21].sFontIndex));variable_struct_set(_Ad,"text",_821.textitems[_f21].sText);variable_struct_set(_Ad,"x",_821.textitems[_f21].sX);variable_struct_set(_Ad,"y",_821.textitems[_f21].sY);variable_struct_set(_Ad,"xorigin",_821.textitems[_f21].sXOrigin);
variable_struct_set(_Ad,"yorigin",_821.textitems[_f21].sYOrigin);variable_struct_set(_Ad,"h_align",_821.textitems[_f21].sAlignment&0xff);variable_struct_set(_Ad,"v_align",(_821.textitems[_f21].sAlignment>>8)&0xff);variable_struct_set(_Ad,"char_spacing",_821.textitems[_f21].sCharSpacing);variable_struct_set(_Ad,"line_spacing",_821.textitems[_f21].sLineSpacing);variable_struct_set(_Ad,"frame_width",_821.textitems[_f21].sFrameW);variable_struct_set(_Ad,"frame_height",_821.textitems[_f21].sFrameH);variable_struct_set(_Ad,
"wrap",_821.textitems[_f21].sWrap);variable_struct_set(_Ad,"xscale",_821.textitems[_f21].sXScale);variable_struct_set(_Ad,"yscale",_821.textitems[_f21].sYScale);variable_struct_set(_Ad,"blend",_821.textitems[_f21].sBlend&0x00ffffff);variable_struct_set(_Ad,"alpha",(((_821.textitems[_f21].sBlend&0xff000000)>>24)&0xff)/255);variable_struct_set(_Ad,"angle",_821.textitems[_f21].sRotation);elements.push(_Ad);}break;case _wJ:break;}variable_struct_set(_921,"elements",elements);}}}variable_struct_set(_95,
"layers",layers);}}return _95;}function room_set_width(_c5,_Xi){var _ao=_uC._n6(yyGetInt32(_c5));if(_ao===null)return;_ao._U11.width=yyGetInt32(_Xi);}function room_set_height(_c5,_Yi){var _ao=_uC._n6(yyGetInt32(_c5));if(_ao===null)return;_ao._U11.height=yyGetInt32(_Yi);}function room_set_persistent(_c5,_k4){var _ao=_uC._n6(yyGetInt32(_c5));if(_ao===null)return;var persistent=yyGetBool(_k4);_ao._U11.persistent=persistent;}function room_set_background_color(_c5,_5d,_i21){var _ao=_uC._n6(yyGetInt32(_c5));if(_ao===null)return;
_ao._U11.colour=yyGetInt32(_5d);_ao._U11.showColour=yyGetBool(_i21);}var room_set_background_colour=room_set_background_color;function room_get_camera(_j21,_k21){var _ao=_uC._n6(yyGetInt32(_j21));if(_ao){var _l21=_ao._U11.views;if(!_l21)return -1;var _Dr=_l21[yyGetInt32(_k21)];if(_Dr){if(_Dr._621!==undefined){return _Dr._621;}}}return -1;}function room_set_camera(_j21,_k21,_m21){_k21=yyGetInt32(_k21);var _ao=_uC._n6(yyGetInt32(_j21));if(_ao){var _l21=_ao._U11.views;if(!_l21){_ao._U11.views=[];_l21=_ao._U11.views;
for(var i=0;i<8;i++){_l21[i]={};}}var _Dr=_l21[_k21];if(!_Dr){_l21[_k21]={};_Dr=_l21[_k21];}_Dr._621=yyGetInt32(_m21);}}function room_get_viewport(_j21,_k21){var _95=[];_95[0]=0;_95[1]=0;_95[2]=0;_95[3]=640;_95[4]=480;var _ao=_uC._n6(yyGetInt32(_j21));if(_ao){var _l21=_ao._U11.views;if(_l21){var _Dr=_l21[yyGetInt32(_k21)];if(_Dr){if(_Dr.visible!==undefined)_95[0]=_Dr.visible;if(_Dr.xport!==undefined)_95[1]=_Dr.xport;if(_Dr.yport!==undefined)_95[2]=_Dr.yport;if(_Dr.wport!==undefined)_95[3]=_Dr.wport;if(_Dr.hport!==undefined)_95[4]=_Dr.hport;
return _95;}}}_95[0]=0;_95[1]=0;_95[2]=0;_95[3]=0;_95[4]=0;return _95;}function room_set_viewport(_j21,_k21,_n21,_o21,_p21,_q21,_r21){_k21=yyGetInt32(_k21);var _ao=_uC._n6(yyGetInt32(_j21));if(_ao){if(_ao._U11){var _Dr=_ao._U11.views;if(!_Dr){_ao._U11.views=[];for(var i=0;i<8;i++){_ao._U11.views[i]={};}}_Dr=_Dr[_k21];if(_Dr===undefined){_Dr[_k21]={};_Dr=_Dr[_k21];}_Dr.visible=yyGetBool(_n21);_Dr.xport=yyGetInt32(_o21);_Dr.yport=yyGetInt32(_p21);_Dr.wport=yyGetInt32(_q21);_Dr.hport=yyGetInt32(_r21);}}}
function room_set_view_enabled(_c5,_k4){var _ao=_uC._n6(yyGetInt32(_c5));if(_ao){_ao._U11.enableViews=yyGetBool(_k4);}}function room_add(){var _ao=new _s21();_ao._t21();_uC._Vf(_ao);return _ao.id;}function room_duplicate(_c5){_c5=yyGetInt32(_c5);var _ao=_uC._n6(_c5);if(!_ao){debug("Trying to duplicate non-existent room.");return 0;}return _uC._u21(_c5);}function room_assign(_c5,_KL){_c5=yyGetInt32(_c5);_KL=yyGetInt32(_KL);if(_uC._n6(_c5)&&_uC._n6(_KL)){_uC._v21(_c5,_KL);return true;}return false;}function room_instance_add(_c5,
_96,_a6,_ck){var _ao=_uC._n6(yyGetInt32(_c5));if(_ao){var instance_id=_CI++;var _4Q=_ao._U11.pInstances.length;_ao._U11.pInstances[_4Q]={x:yyGetReal(_96),y:yyGetReal(_a6),index:yyGetInt32(_ck),id:instance_id};return _Wn(_Xn,instance_id);}return 0;}function room_instance_clear(_c5){var _ao=_uC._n6(yyGetInt32(_c5));if(_ao){_ao._w21();}}function room_goto_next(){if((_c4._x21+1)>=_uC._y21.length)return;_z21=_uC._A21(_c4._x21+1).id;}function room_restart(){_z21=_c4.id;};function room_goto(_KL){_KL=yyGetInt32(_KL);
var _B21=_uC._n6(_KL);if((_B21==null)||(_B21==undefined)){_ai("Error: Room "+_KL+" is not a valid room index");}else {_z21=_KL;}};function room_goto_previous(){if((_c4._x21-1)<0)return;_z21=_uC._A21(_c4._x21-1).id;};function room_previous(_4A){var _Xk=-1;for(var i=0;i<_uC._C21.length;i++){if(_uC._C21[i]==yyGetInt32(_4A))return _Xk;_Xk=_uC._C21[i];}return -1;};function room_next(_4A){for(var i=0;i<(_uC._C21.length-1);i++){if(_uC._C21[i]==yyGetInt32(_4A)){return _uC._C21[i+1];}}return -1;};function game_end(){
_z21=_D21;if(_S11==false){_S11=true;if(typeof(gmlGameEndScripts)=="function"){gmlGameEndScripts();}}if(!_T11){if(arguments.length>0)show_debug_message("###game_end###"+arguments[0]);else show_debug_message("###game_end###0");_T11=true;}}function game_restart(){g_pBuiltIn.score=0;g_pBuiltIn.lives=0;g_pBuiltIn.health=100;_z21=_E21;}function _F21(_k4){var _G21=null;if(typeof(_k4)=="object"){return _k4;}else {var _H21=yyGetInt32(_k4);_G21=_xC._NP(_H21);}return _G21;}function sequence_create(){var _G21=_xC._I21();
if(_G21==null){_q5("sequence_create() - could not create new sequence");}else {return _G21;}return -1;}function sequence_destroy(_J21){if(arguments.length!=1){_q5("sequence_destroy() - requires a sequence ID or object");}var _G21=_F21(_J21);if(_G21==null){_q5("sequence_destroy() - specified sequence not valid");}else if(_G21._Sl==true){_q5("sequence_destroy() - can't delete a sequence created in the IDE");}else {_xC._K21(_G21);}}function sequence_get(_L21){if(arguments.length!=1){_q5("sequence_get() - requires a sequence ID");
}var _G21=_F21(_L21);if(_G21==null){_q5("sequence_get() - specified sequence not valid");}else {return _G21;}}function sequence_exists(_M21){if(arguments.length!=1){_q5("sequence_exists() - requires a sequence ID or struct");}var _Ul=false;if(typeof(_M21)=="object"){if(_M21 instanceof _N21){if(_xC._O21(_M21)){_Ul=true;}}}else {var _H21=yyGetInt32(_M21);if(_xC._NP(_H21)!=null){_Ul=true;}}return _Ul?1.0:0.0;}function _P21(_wd){if(arguments.length!=1){_q5("sequencekeyframestore_new() - requires a type parameter");
}_wd=yyGetInt32(_wd);var _Q21=null;switch(_wd){case _R21:case _S21:case _T21:case _U21:case _sN:case _V21:case _W21:case _X21:case _Y21:case _Z21:case __21:case _031:_Q21=new _131(_wd);break;default :_q5("Unsupported keyframe store type");break;}if(_Q21==null){return -1;}else {return _Q21;}}function sequence_keyframe_new(_wd){if(arguments.length!=1){_q5("sequencekeyframe_new() - requires a type parameter");}_wd=yyGetInt32(_wd);var _231=null;switch(_wd){case _R21:case _S21:case _T21:case _U21:case _331:case _sN:case _V21:case _W21:case _X21:case _Y21:case _Z21:case __21:case _031:_231=new _431(_wd);
break;default :_q5("Unsupported keyframe type");break;}if(_231==null){return -1;}else {return _231;}}function sequence_keyframedata_new(_wd){if(arguments.length!=1){_q5("sequencekeyframedata_new() - requires a type parameter");}_wd=yyGetInt32(_wd);var _TG=null;switch(_wd){case _R21:_TG=new _531();break;case _S21:_TG=new _631();break;case _T21:_TG=new _731();break;case _U21:_TG=new _831();break;case _331:_TG=new _931();break;case _sN:_TG=new _a31();break;case _V21:_TG=new _b31();break;case _W21:_TG=new _c31();break;case _X21:_TG=new _d31();
break;case _Y21:_TG=new _e31();break;case _Z21:_TG=new _f31();break;case __21:_TG=new _g31();break;case _031:_TG=new _h31();break;default :_q5("Unsupported keyframe type");break;}if(_TG==null){return -1;}else {return _TG;}}function sequence_track_new(_wd){if(arguments.length!=1){_q5("sequencetrack_new() - requires a type parameter");}_wd=yyGetInt32(_wd);var _HO=null;switch(_wd){case _R21:_HO=new _i31();break;case _S21:_HO=new _j31();break;case _U21:_HO=new _k31();break;case _331:_HO=new _l31();break;case _X21:_HO=new _m31();
break;case _Y21:_HO=new _n31();break;case _V21:_HO=new _o31();break;case _W21:_HO=new _p31();break;case _Z21:_HO=new _q31();break;case _T21:_HO=new _r31();break;case _s31:_HO=new _t31();break;case _u31:_HO=new _v31();break;case _w31:_HO=new _x31();break;case _y31:_HO=new _z31();break;case _A31:_HO=new _B31();break;case _sN:_HO=new _C31();break;default :_q5("Unsupported track type");break;}if(_HO==null){return -1;}else {return _HO;}}function sequence_get_objects(_J21){if(arguments.length!=1){_q5("sequence_get_objects() - wrong number of arguments");
return;}var _G21=null;_G21=_F21(_J21);if(_G21!=null){return _G21._D31().map((id)=>_Wn(_521,id));}return -1;}function sequence_instance_override_object(_Z7,_3Q,_rM){if(arguments.length!=3){_q5("sequence_instance_override_object() - wrong number of arguments");return;}if((typeof(_Z7)!=="object")||(_Z7==null)||!(_Z7 instanceof _E31)){_q5("sequence_instance_override_object() - specified sequence instance is not valid");return;}var _F31=_Z7;var _G21=_xC._NP(_F31._AK);if(_G21!=null){_3Q=yyGetInt32(_3Q);_rM=yyGetInt32(_rM);
_G31.push(_G21);_F31._H31(_G21._rN,_3Q,_rM,-1);_G31.pop();}}function _I31(){}function _J31(){}function _K31(){}function _L31(){}function _M31(){}function _N31(){}function _O31(){}function _P31(){}function _Q31(){}function _R31(){}function _S31(){}function _T31(){}function _U31(){}function _V31(){}function _W31(){}function _X31(){}(()=>{let _Ic=(_w4,_k4)=>()=>_Jc(_w4,_k4);compile_if_used(texture_get_texel_width,_I31=_Ic("fn_texture_get_texel_width",0));compile_if_used(texture_get_texel_height,_J31=_Ic("fn_texture_get_texel_height",
0));compile_if_used(texture_set_stage,_K31=_Ic("fn_texture_set_stage"));compile_if_used(shader_is_compiled,_L31=_Ic("fn_shader_is_compiled",0));_M31=_Ic("fn_shader_set");compile_if_used(shader_get_uniform,_N31=_Ic("fn_shader_get_uniform",-1));compile_if_used(shader_set_uniform_i,_O31=_Ic("fn_shader_set_uniform_i"));compile_if_used(shader_set_uniform_f,_P31=_Ic("fn_shader_set_uniform_f"));compile_if_used(shader_set_uniform_matrix,_Q31=_Ic("fn_shader_set_uniform_matrix"));compile_if_used(shader_get_sampler_index,
_R31=_Ic("fn_shader_get_sampler_index",-1));compile_if_used(shader_enable_corner_id,_S31=_Ic("fn_shader_enable_corner_id"));compile_if_used(shader_set_uniform_i_array,_T31=_Ic("fn_shader_set_uniform_i_array"));compile_if_used(shader_set_uniform_f_array,_U31=_Ic("fn_shader_set_uniform_f_array"));compile_if_used(shader_set_uniform_f_buffer,_V31=_Ic("fn_shader_set_uniform_f_buffer"));compile_if_used(shader_set_uniform_matrix_array,_W31=_Ic("fn_shader_set_uniform_matrix_array"));compile_if_used(shader_get_name,
_X31=_Ic("fn_shader_get_name","<undefined>"));})();var _gb=-1;function _Y31(name){for(var i=0;i<_aw.Shaders.length;i++){if((_aw.Shaders[i]!=null)&&(_aw.Shaders[i]!=undefined)&&(_aw.Shaders[i].name===name)){return i;}}}function texture_get_texel_width(_a9){return _I31(_a9);}function texture_get_texel_height(_a9){return _J31(_a9);}function texture_set_stage(_Z31,_me){_K31(yyGetInt32(_Z31),_me);}function shaders_are_supported(){return 0;}function shader_is_compiled(__31){return _L31(yyGetInt32(__31));}function shader_set(__31){
__31=yyGetInt32(__31);_gb=__31;_M31(__31);}function shader_reset(){_gb=-1;_M31(-1);}function shader_current(){return _gb;}function shader_get_uniform(__31,_041){if(__31<0||__31>=_aw.Shaders.length){_q5("shader_get_uniform :: Illegal shader handle");}return _N31(yyGetInt32(__31),yyGetString(_041));}function shader_set_uniform_i(){var _1R=arguments[0];var _141=[].splice.call(arguments,1,arguments.length);_O31(_1R,_141);}function shader_set_uniform_f(){var _1R=arguments[0];var _141=[].splice.call(arguments,1,
arguments.length);_P31(_1R,_141);}function _241(){var _1R=arguments[0];var _141=[];_141[0]=arguments[1];_O31(_1R,_141);}function shader_set_uniform_matrix(){var _1R=arguments[0];_Q31(_1R);}function shader_get_sampler_index(__31,_me){return _R31(yyGetInt32(__31),yyGetString(_me));}function shader_enable_corner_id(_341){_S31(yyGetBool(_341));}function shader_set_uniform_i_array(_441,_Wk){_T31(yyGetInt32(_441),_Wk);}function shader_set_uniform_f_array(_441,_Wk){_U31(yyGetInt32(_441),_Wk);}function shader_set_uniform_f_buffer(_441,
_6l,_ne,_te){_V31(yyGetInt32(_441),yyGetInt32(_6l),yyGetInt32(_ne),yyGetInt32(_te));}function shader_set_uniform_matrix_array(_441,_Wk){_W31(yyGetInt32(_441),_Wk);}function shader_get_name(_s4){return _X31(_s4);}var _541=[];var _641=300000;var _741=_641;var _841=[];var audio_sampledata=[];var _941=false;var _a41=128;var _b41=100000;var _c41=[];var _d41=[];var _e41=0;var _f41=200000;var _g41=[];var _h41=[];var _i41=0;var _j41=1024;var _k41=0;var _l41=[];var _m41=[];var _n41={_Je:false,_o41:undefined};var _p41={_q41:0,_r41:1,
_s41:2,_t41:3,_u41:4,_v41:5,_w41:6,_x41:7,_y41:8};var _z41={_A41:0,_B41:1,_C41:2};const _D41={_E41:0,_F41:1};var _G41={_H41:'init',_I41:'loading',_J41:'loaded',_K41:'decoding',_L41:'ready'};const _M41={_N41:'suspended',_O41:'running',_P41:'closed'};const _Q41={_I41:"Loading",_N41:"Suspended",_O41:"Running",_P41:"Closed",_R41:"Unknown"};_Q41._S41=_Q41._R41;var _T41={_U41:"Audio_Play"};var _V41=0;var _W41=1.0;var _X41=0;function _Y41(){if(_Z41!=__41)return;_051.forEach(_IZ=>_IZ.gain._v6());audio_sampledata.forEach(_151=>{
if(_151!=null){_151.gain._v6();}});_541.forEach(_251=>_251._351());}var _451;function _551(){if(_Z41!==__41)return;_651.disconnect();_651=_751(g_WebAudioContext);_651.connect(g_WebAudioContext.destination);g_WebAudioContext.listener._zk=new _Er(0,0,0);g_WebAudioContext.listener._851=new _Er(0,0,0);g_WebAudioContext.listener._951=new Array(0,0,0,0,0,0);}function _a51(){if(_Z41!==__41)return;const AudioContext=window.AudioContext||window.webkitAudioContext;g_WebAudioContext=new AudioContext();g_WebAudioContext.addEventListener("statechange",
_b51);_c51=(_d51==_e51);_n41=_f51();_651=_751(g_WebAudioContext);_651.connect(g_WebAudioContext.destination);if(_n41._Je===true){_g51();}else {g_WebAudioContext.audioWorklet.addModule(_u9+"sound/worklets/audio-worklet.js").catch((_h51)=>{_n41._Je=true;_n41._o41=_h51;}).finally(()=>{_g51();});}audio_falloff_set_model(_p41._q41);var _i51;if(typeof document.hidden!=="undefined"){_451="hidden";_i51="visibilitychange";}else if(typeof document.mozHidden!=="undefined"){_451="mozHidden";_i51="mozvisibilitychange";
}else if(typeof document.msHidden!=="undefined"){_451="msHidden";_i51="msvisibilitychange";}else if(typeof document.webkitHidden!=="undefined"){_451="webkitHidden";_i51="webkitvisibilitychange";}document.addEventListener(_i51,_j51,false);g_WebAudioContext.listener._zk=new _Er(0,0,0);g_WebAudioContext.listener._851=new _Er(0,0,0);g_WebAudioContext.listener._951=new Array(0,0,0,0,0,0);audio_listener_position(0,0,0);audio_listener_orientation(0,0,1.0,0,1.0,0.0);_k51();_l51();_m51();}function _n51(){if(g_WebAudioContext==null)return;
if(g_WebAudioContext._o51==true)return;g_WebAudioContext._o51=true;g_WebAudioContext.removeEventListener("statechange",_b51);g_WebAudioContext.close().then(()=>{g_WebAudioContext=null;});}function _751(_p51){if(window.AudioContext!==undefined&&_p51 instanceof window.AudioContext){return new GainNode(_p51);}else if(window.webkitAudioContext!==undefined&&_p51 instanceof window.webkitAudioContext){return _p51.createGain();}return undefined;}function _f51(){const _95={_Je:false,_o41:undefined};if(_eG===_q51){_95._Je=true;
_95._o41="Using Safari on iOS.";return _95;}if(g_WebAudioContext.audioWorklet===undefined){_95._Je=true;_95._o41="Audio worklets are not supported on this browser.";return _95;}if(isSecureContext===false){_95._Je=true;_95._o41="Audio worklets require a secure context.";return _95;}return _95;}function _r51(){return(_n41._Je===true)?_s51:_t51;}function _u51(){try{return new(_r51())();}catch(_v51){console.error("Cannot create audio buses until audio engine is running - check audio_system_is_initialised()");
console.log("Note: exception thrown => "+_v51);return null;}}function _g51(){if(_n41._Je===true){console.warn("Audio Engine: Using audio worklet fallback.\nReason => "+_n41._o41);}_w51=_u51();_w51._x51(_651);g_pBuiltIn.audio_bus_main=_w51;_b51();}function _y51(){return _w51 instanceof _t51||_w51 instanceof _s51;}/*@constructor */function _z51(){this.buffer=null;this.gain=new _A51(1);this._B51=1.0;this.pitch=1.0;this.duration=0.0;this._C51=0.0;this.loopStart=0.0;this.loopEnd=0.0;this.groupId=0;this.kind=_D41._E41;
this.state=_G41._H41;this._D51=[];}_z51.prototype._E51=function(){for(var i=0;i<this._D51.length;++i){var _F51=this._D51[i];switch(_F51[0]){case _T41._U41:_F51[1].play();break;}}this._D51.length=0;};_z51.prototype._G51=function(_H51,_I51){if(this.state!=_G41._J41||!_H51)return false;var _J51=this;_J51.state=_G41._K41;g_WebAudioContext.decodeAudioData(_H51.response,function(buffer){_J51.buffer=buffer;_J51.state=_G41._L41;if(_I51)_J51._E51();},function(err){_J51.state=_G41._J41;debug("ERROR: Failed to decode audio data: "+err);
});return true;};/*@constructor */function _K51(_L51){this._M51=_751(g_WebAudioContext);this._N51=null;this._1R=0;this._uL(_L51);}_K51.prototype._uL=function(_L51){this._O51=false;this._P51={_Q51:0.0,_R51:0.0};this._S51=null;this._M51.disconnect();this.gain=new _A51(_L51.gain);this._T51=_L51.offset;this.pitch=_L51.pitch;this._N51=_L51.emitter;this.paused=false;this._U51=_L51.asset_index;this.loop=_L51.loop;this.loopStart=_L51.loopStart;this.loopEnd=_L51.loopEnd;this._V51=false;this.priority=_L51.priority;
this._W51=false;this._X51=false;this._Y51=false;this._M51.gain.value=_Z51.__51(this);if(this._U51>=0){this._W51=_061(this._U51);this._X51=_161(this._U51);this._Y51=_261(this._U51);if(this._Y51===false){if(this._1R>=_641){_l41[this._1R-_641]=null;}this._1R=_741;_l41[_741-_641]=this;++_741;}}};_K51.prototype.start=function(_6l){const _361=_Z51._461(this);const _561=(this.loopEnd>0.0)?this.loopEnd:_6l.duration;const _661=(this.loop===true)&&(_361<_561);const options={buffer:_6l,loop:_661,loopStart:this.loopStart,
loopEnd:this.loopEnd,playbackRate:_Z51._761(this)};if(typeof AudioBufferSourceNode!=="undefined"){this._S51=new AudioBufferSourceNode(g_WebAudioContext,options);}else {this._S51=g_WebAudioContext.createBufferSource();for(const _0l in options){this._S51[_0l]=options[_0l];}}this._S51.onended=(_Y3)=>{this._O51=false;this._S51=null;if(this._M51!==null)this._M51.disconnect();this._N51=null;this._861(false);};this._S51.connect(this._M51);this._P51={_Q51:g_WebAudioContext.currentTime,_R51:_361};this._S51.start(0,
_361);if(this.paused===true)this.pause();};_K51.prototype.play=function(){if(g_WebAudioContext===null)return;this._O51=true;const _961=_a61(this._U51);if(_961.state!==_G41._L41){const _b61=_yC._n6(this._U51);if(_961.state==_G41._J41&&!this._W51&&_b61){const _c61=_d61[_b61.pName];if(_c61)_961._G51(_c61,true);}_961._D51.push([_T41._U41,this]);return;}if(this._W51){this._T51=_Z51._461(this);const _e61=_f61(this._U51);const _g61=new XMLHttpRequest();_g61.open("GET",_e61,true);_g61.responseType="arraybuffer";
_g61.onload=()=>{const _h61=_g61.response;if(_g61.status<200||_g61.status>=300){console.log("Request for "+_e61+" failed - sound will not play.");this.stop();return;}g_WebAudioContext.decodeAudioData(_h61).then((_6l)=>{this.start(_6l);});};_g61.send();}else {if(this._Y51){const _i61=this._U51-_f41;const _j61=_g41[_i61];_j61.gainnode=this._M51;_j61._k61.connect(this._M51);_j61._k61.onended=(_Y3)=>{this._O51=false;};this._P51._Q51=g_WebAudioContext.currentTime;}else {this.start(_961.buffer);}}};_K51.prototype.stop=function(){
if(this._O51===false)return;if(this._U51>=_f41&&this._U51<(_f41+_i41)){var _l61=this._U51-_f41;_g41[_l61]._k61.onended=null;_g41[_l61]._k61.disconnect();}else if(this._S51!==null){this._S51.onended=null;this._S51.loop=false;this._S51.stop(0);this._S51.disconnect();}if(this._M51!==null)this._M51.disconnect();this._N51=null;this._O51=false;this._861(true);};_K51.prototype.pause=function(){if(this._O51===false)return;if(this._Y51){const _l61=this._U51-_f41;_g41[_l61]._k61.onended=null;_g41[_l61]._k61.disconnect(0);
}else if(this._S51!==null){this._S51.onended=null;this._S51.stop(0);this._S51.disconnect();this._m61();}this.paused=true;};_K51.prototype.resume=function(){if(this._O51===false||this.paused===false)return;this.paused=false;if(this._U51>=_f41&&this._U51<(_f41+_i41)){const _l61=this._U51-_f41;_g41[_l61]._k61.connect(this._M51);_g41[_l61]._k61.onended=(_Y3)=>{this._O51=false;};}else {this._T51=this._P51._R51;if(this._S51===null){return;}this.start(this._S51.buffer);}};_K51.prototype._n61=function(){if(this._O51===false)return false;
if(this._Y51){var _o61=_g41[this._U51-_f41];if(!_o61||!_o61._k61||!_o61._k61.onended)return false;return true;}else {if(this._S51===null)return true;if(this._S51.playbackState==undefined||this._S51.playbackState!=this._S51.FINISHED_STATE||this.paused){return true;}}return false;};_K51.prototype._p61=function(){if(this._O51===false)return false;return(this.paused===true);};_K51.prototype._q61=function(_r61){if(this._O51===false)return;this._m61();this.loop=_r61;if(this._S51===null)return;const _s61=this._P51._R51;
this._S51.loop=(this.loop===true)&&(_s61<this._t61());};_K51.prototype._u61=function(){if(this._O51===false)return false;return(this.loop===true);};_K51.prototype._v61=function(_w61){if(this._O51===false||g_WebAudioContext===null)return;const _x61=1.0/g_WebAudioContext.sampleRate;const _561=this._t61();const _y61=_561-_x61;_w61=Math.max(0.0,_w61);_w61=Math.min(_w61,_y61);this._m61();this.loopStart=_w61;if(this._S51===null)return;this._S51.loopStart=_w61;};_K51.prototype._z61=function(_w61){if(this._O51===false||g_WebAudioContext===null)return;
const _x61=1.0/g_WebAudioContext.sampleRate;const duration=this._S51.buffer.duration;const loopStart=this._S51.loopStart;const _A61=(_w61<=0.0)?0.0:(loopStart+_x61);_w61=Math.max(_A61,_w61);_w61=Math.min(_w61,duration);this._m61();this.loopEnd=_w61;if(this._S51===null)return;const _s61=this._P51._R51;const _561=(_w61>0.0)?_w61:duration;this._S51.loop=(this.loop===true)&&(_s61<_561);this._S51.loopEnd=_w61;};_K51.prototype._B61=function(){if(this._O51===false)return 0.0;return this.loopStart;};_K51.prototype._C61=function(){
if(this._O51===false)return 0.0;return this.loopEnd;};_K51.prototype._t61=function(){if(this._O51===false)return 0.0;if(this.loopEnd<=0.0)return audio_sound_length(this._U51);return this.loopEnd;};_K51.prototype._D61=function(){if(this._O51===false)return 0.0;const loopStart=this.loopStart;const _561=this._t61();return(_561-loopStart);};_K51.prototype._m61=function(){if(g_WebAudioContext===null)return;const _Q51=g_WebAudioContext.currentTime;this._P51={_Q51:_Q51,_R51:this._E61(_Q51)};};_K51.prototype._E61=function(_F61){
if(this._O51===false||g_WebAudioContext===null)return 0.0;if(this._S51===null)return _Z51._461(this);const _G61=this._P51;if(this.paused===true)return _G61._R51;const pitch=this._S51.playbackRate.value;if(_F61===undefined)_F61=g_WebAudioContext.currentTime;const _H61=(_F61-_G61._Q51)*pitch;const _561=this._t61();const _I61=(_G61._R51>_561);const _J61=this._S51.loop;let _s61=_G61._R51;if(_J61===false||_I61===true){_s61+=_H61;}else {const loopStart=this._B61();const _K61=loopStart-_G61._R51;if(_H61<_K61){_s61+=_H61;
}else {const _L61=this._D61();_s61=loopStart+(_H61-_K61)%_L61;}}return _s61;};_K51.prototype._M61=function(_ne){if(this._O51===false)return;const duration=audio_sound_length(this._U51);_ne=Math.max(0.0,_ne);_ne=Math.min(_ne,duration);if(this.paused===true){this._P51._R51=_ne;}else {this._T51=_ne;if(this._S51===null)return;this._S51.onended=null;this._S51.stop();this._S51.disconnect();this.start(this._S51.buffer);}};_K51.prototype._N61=function(_O61,_P61=0){if(this._O51===false||this._M51===null)return;
this.gain.set(_O61,_P61);if(_P61===0)this._351();};_K51.prototype._351=function(){if(this._O51===false||this._M51===null)return;this.gain._v6();this._M51.gain.value=_Z51.__51(this);};_K51.prototype._Q61=function(_R61){if(this._O51===false)return;this._m61();this.pitch=_R61;this._S61();};_K51.prototype._S61=function(){if(this._O51===false||this._S51===null)return;this._m61();this._S51.playbackRate.value=_Z51._761(this);};_K51.prototype._T61=function(){if(this._O51===false)return null;return _a61(this._U51);
};_K51.prototype._U61=function(){if(this._O51===false)return -1;return this._U51;};_K51.prototype._861=function(_V61){const _W61=_Uf._Vf(undefined,undefined,_X61,undefined);_W61._Y61=this._1R;_W61._Z61=this._U51;_W61.__61=_V61;_W61._Zf=true;};function _071(_k4,_171,_271,_371,_qV){let _471=_k4;if(isNaN(_471)===true)_471=0.0;if(isNaN(_171)===false)_471=Math.max(_171,_471);if(isNaN(_271)===false)_471=Math.min(_471,_271);if(_471!==_k4)console.warn(_371+": argument '"+_qV+"' was clamped ("+_k4+" => "+_471+").");
return _471;}function _571(_441){if(_441<_641||_441>=_741){debug("Error: invalid sound handle "+_441);return null;}var sound=_l41[_441-_641];if(sound==undefined){return null;}return sound;}function _061(_U51){if(_c51)return false;if(_U51>=0&&_U51<audio_sampledata.length){if(audio_sampledata[_U51].kind==_D41._F41){return true;}}else if(_U51<_b41){debug("IsSoundStreamed - Error: soundid "+_U51+" not found");}return false;}function _161(_U51){if(_U51>=_b41&&_U51<_f41){return true;}return false;}function _261(_U51){
if(_U51>=_f41&&_U51<_641){return true;}return false;}function _f61(_671){var sound=_aw.Sounds[_671];if(sound==null){_fh="";sound=audio_sampledata[_671];if(sound!=null&&sound._771!==undefined){_fh=_871(sound._771);}return _fh;}var _fh=_u9+sound.origName;var _971=sound.extension;_fh=_871(_fh);var index=_fh.indexOf(_971);if(index>0){_fh=_fh.substr(0,index);}if(_a71){_971="ogg";}else if(_b71){_971="mp3";}else {_971="ogg";}_fh=_fh+"."+_971;return _fh;}var _c71=false;var _c51=false;function _d71(){return g_WebAudioContext!=null;
}function _e71(){_f71=_g71();return _h71(_f71)===true;}function _h71(_i71){return _i71===_Q41._O41;}function _g71(){if(_y51()===false)return _Q41._I41;if(_d71()===false||g_WebAudioContext.state===_M41._P41)return _Q41._P41;if(g_WebAudioContext.state===_M41._N41)return _Q41._N41;if(g_WebAudioContext.state===_M41._O41)return _Q41._O41;return _Q41._R41;}function _m51(){if(_c71)return;_c71=true;var _j71="mousedown";var _k71="mouseup";if("ontouchstart" in window){_j71="touchstart";_k71="touchend";}if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){
_j71="pointerdown";_k71="pointerup";}var _l71=function(){g_WebAudioContext.resume().then(function(){document.body.removeEventListener(_j71,_l71);document.body.removeEventListener(_k71,_l71);_c71=false;},function(_o41){debug("ERROR: Failed to unlock WebAudio Context. Reason: "+_o41);});};document.body.addEventListener(_j71,_l71,false);document.body.addEventListener(_k71,_l71,false);}function _b51(){const _f71=_g71();if(_f71!==_Q41._S41){debug("Audio Engine => "+_f71);_Q41._S41=_f71;}const _m71=_h71(_f71);
const map=ds_map_create();g_pBuiltIn.async_load=map;ds_map_add(map,"event_type","audio_system_status");ds_map_add(map,"status",_m71?"available":"unavailable");_14._24(_n71,0);ds_map_destroy(map);g_pBuiltIn.async_load=-1;}function audio_system_is_available(){return _e71()===true;}function audio_system_is_initialised(){return _y51()===true;}function audio_sound_is_playable(_o71){_o71=yyGetInt32(_o71);var _J51=_a61(_o71);if(_J51==null)return false;if(!audio_system_is_available())return false;var _b61=_yC._n6(_o71);
if(_J51.state==_G41._J41&&_b61){var _c61=_d61[_b61.pName];if(_c61)_J51._G51(_c61,true);}return(_J51.state==_G41._L41);}function _p71(_L51){if(_Z41!=__41)return null;var i;var sound;for(i=0;i<_k41;++i){sound=_541[i];if(!sound._O51){sound._uL(_L51);return sound;}else {if(sound._Y51&&sound._U51==_L51.asset_index)return null;const _q71=((sound._S51!=null&&sound._S51.playbackState!=undefined&&sound._S51.playbackState==sound._S51.FINISHED_STATE)&&!sound.paused);if(_q71===true){sound._uL(_L51);return sound;}}}if(_k41<_a41){
var _r71=new _K51(_L51);_541[_k41]=_r71;++_k41;return _r71;}var _s71=_L51.priority;var _t71=-1;for(i=0;i<_k41;++i){sound=_541[i];if(sound.priority<_s71){_t71=i;_s71=sound.priority;}}if(_t71>=0){debug("killing sound on channel "+_t71);var _u71=_541[_t71];_u71.stop();_u71._uL(_L51);return _u71;}debug("reached max sounds and no lower priority");return null;}function _a61(_U51){if(_U51>=0&&_U51<audio_sampledata.length){return audio_sampledata[_U51];}const _v71=_U51-_b41;if(_v71>=0&&_v71<_e41){return _d41[_v71];
}const _l61=_U51-_f41;if(_l61>=0&&_l61<_i41){return _h41[_l61];}return null;}function _w71(_x71){const _y71=audio_emitter_exists(_x71);if(_y71===false){_q5("Emitter with index "+_x71+" does not exist!");return undefined;}return _841[_x71];}function _z71(_L51){if(_L51._A71())return -1;const _B71=_p71(_L51);if(_B71===null)return -1;switch(_L51.type){case _C71._D71:_w51._E71(_B71._M51);break;case _C71._F71:const _zk=_L51.position;_L51.emitter=new _G71();_L51.emitter.setPosition(_zk.x,_zk.y,_zk.z);_L51.emitter._H71(_zk.falloff_ref,
_zk.falloff_max,_zk.falloff_factor);case _C71._I71:_B71._N51=_L51.emitter;_B71._M51.connect(_B71._N51._J71());break;default :debug("Warning: Unknown audio playback type => "+_L51.type);return -1;}_B71.play();return _B71._1R;}function audio_play_sound(_K71,_L71,_x4,_O61,_ne,_R61){const _Jk=new _M71({sound:_K71,priority:_L71,loop:_x4,gain:_O61,offset:_ne,pitch:_R61});return _z71(_Jk);}function audio_play_sound_on(_N71,_K71,_x4,_L71,_O61,_ne,_R61){const _Jk=new _M71({emitter:_N71,sound:_K71,loop:_x4,priority:_L71,
gain:_O61,offset:_ne,pitch:_R61});return _z71(_Jk);}function audio_play_sound_at(_K71,_96,_a6,_As,_O71,_P71,_Q71,_x4,_L71,_O61,_ne,_R61){const _Jk=new _M71({sound:_K71,position:{x:_96,y:_a6,z:_As,falloff_ref:_O71,falloff_max:_P71,falloff_factor:_Q71},loop:_x4,priority:_L71,gain:_O61,offset:_ne,pitch:_R61});return _z71(_Jk);}function audio_play_sound_ext(_xn){if(typeof _xn!=="object")_q5("Error: audio_play_sound_ext => argument must be a struct");const _Jk=new _M71(_xn);return _z71(_Jk);}function audio_stop_sound(_671){
if(_Z41!==__41)return;_671=yyGetInt32(_671);if(_671>=_641){const _B71=_571(_671);if(_B71===null)return;if(_B71._Y51){_l41[_B71._1R-_641]=undefined;}_B71.stop();}else {_541.filter(_251=>_251._U51===_671).forEach(_251=>_251.stop());}}function audio_pause_sound(_671){if(_Z41!==__41)return;_671=yyGetInt32(_671);if(_671>=_641){const _B71=_571(_671);if(_B71===null)return;_B71.pause();}else {_541.filter(_251=>_251._U51===_671).forEach(_251=>_251.pause());}}function audio_resume_sound(_671){if(_Z41!==__41)return;
_671=yyGetInt32(_671);if(_671>=_641){const _B71=_571(_671);if(_B71===null)return;_B71.resume();}else {_541.filter(_251=>_251._U51===_671).forEach(_251=>_251.resume());}}function audio_play_music(_671,_R71){debug("audio_play_music :: deprecated function\n");}function audio_stop_music(){debug("audio_stop_music :: deprecated function");}function audio_pause_music(){debug("audio_pause_music :: deprecated function");}function audio_resume_music(){debug("audio_resume_music :: deprecated function");}function audio_music_is_playing(){
debug("audio_music_is_playing :: deprecated function");return 0;}function audio_exists(_yg){_yg=yyGetInt32(_yg);var _S71=_a61(_yg);if(_S71!=null)return true;var sound=_l41[_yg-_641];if(sound&&sound._O51)return true;return false;}function audio_sound_get_pitch(_671){if(_Z41==__41){_671=yyGetInt32(_671);if(_671>=_641){const _B71=_571(_671);if(_B71!=null&&_B71._O51){return _B71.pitch;}}else {const _T71=_a61(_671);if(_T71!=null&&_261(_671)==false){return _T71.pitch;}}}return 1.0;}function audio_sound_pitch(_671,_R61){
_671=yyGetInt32(_671);_R61=yyGetReal(_R61);if(_671<0)return;if(_Z41!=__41)return;if(_671>=_641){const _B71=_571(_671);if(_B71===null)return;_B71._Q61(_R61);}else {const _T71=_a61(_671);if(_T71==null||_261(_671))return;_T71.pitch=_R61;_541.filter(_251=>_251._U51===_671).forEach(_251=>_251._S61());}}function audio_sound_get_gain(_s4){if(_Z41!=__41)return;_s4=yyGetInt32(_s4);if(_s4>=_641){const _B71=_571(_s4);if(_B71!=null&&_B71._O51)return _B71.gain.get();}else {const _961=_a61(_s4);if(_961!==null){return _961.gain.get();
}}return 0;}function audio_sound_gain(_s4,_O61,_U71){_s4=yyGetInt32(_s4);_O61=yyGetReal(_O61);_O61=_071(_O61,0.0,undefined,"audio_sound_gain","gain");_U71=yyGetInt32(_U71);_U71=_071(_U71,0,undefined,"audio_sound_gain","timeMs");if(_s4>=_641){const _B71=_571(_s4);if(_B71===null)return;_B71._N61(_O61,_U71);}else {const _961=_a61(_s4);if(_961===null)return;_961.gain.set(_O61,_U71);if(_U71>0.0)return;_541.filter(_251=>_251._U51===_s4).forEach(_251=>_251._351());}}function audio_music_gain(_V71,time){debug("audio_music_gain :: deprecated function\n");
}function _j51(){if(g_WebAudioContext){(document.visibilityState==='visible')?g_WebAudioContext.resume():g_WebAudioContext.suspend();}if(_Z41==__41){if(document[_451]==true){if(!_941){_941=true;_W71(true);}}else if(document[_451]==false){if(_941){_X71(true);_941=false;}}}}function audio_sound_length(_671){if(_Z41!==__41)return -1.0;_671=yyGetInt32(_671);let _Z61=-1;if(_671<_641){if(_a61(_671)!==null)_Z61=_671;}else {const _B71=_571(_671);if(_B71!==null)_Z61=_B71._U51;}if(_Z61!==-1){if(_061(_Z61))return audio_sampledata[_Z61].duration;
else if(_161(_Z61))return _d41[_Z61-_b41].buffer.duration;else if(_261(_Z61))return 0.0;else return audio_sampledata[_Z61].buffer.duration;}return -1.0;}function audio_sound_get_track_position(_671){if(_Z41!=__41)return 0;_671=yyGetInt32(_671);if(_671>=_641){const _B71=_571(_671);if(_B71!=null){return _B71._E61();}}else if(_671>=0){const _T71=_a61(_671);if(_T71!==null){return _T71._C51;}}return 0.0;}function audio_sound_set_track_position(_671,_T6){if(_Z41!=__41)return;_671=yyGetInt32(_671);_T6=yyGetReal(_T6);if(_671>=_641){
const _B71=_571(_671);if(_B71===null)return;_B71._M61(_T6);}else if(_671>=0){_T6=_q7(_T6,0);const duration=audio_sound_length(_671);if(_T6<duration){const _J51=_a61(_671);if(_J51!==null){_J51._C51=_T6;}}}}function audio_sound_loop(_Y71,_r61){_Y71=yyGetInt32(_Y71);_r61=yyGetBool(_r61);const _B71=_571(_Y71);if(_B71===null)return;_B71._q61(_r61);}function audio_sound_get_loop(_Y71){_Y71=yyGetInt32(_Y71);const _B71=_571(_Y71);if(_B71===null)return false;return _B71._u61();}function audio_sound_loop_start(_s4,_w61){
_s4=yyGetInt32(_s4);_w61=yyGetReal(_w61);const _Z71=audio_sound_length(_s4);if(_Z71===-1){debug("audio_sound_loop_start() - could not determine length of asset");return;}_w61=clamp(_w61,0,_Z71);if(_s4>=_641){const _B71=_571(_s4);if(_B71!==null)_B71._v61(_w61);}else {const _961=_a61(_s4);if(_961===null){debug("audio_sound_loop_start() - no asset found with index "+_s4);return;}_961.loopStart=_w61;_541.filter(_251=>_251._U51===_s4).forEach(_251=>_251._v61(_w61));}}function audio_sound_get_loop_start(_s4){
_s4=yyGetInt32(_s4);if(_s4>=_641){const _B71=_571(_s4);if(_B71===null)return 0.0;return _B71._B61();}else {const _961=_a61(_s4);if(_961===null){debug("audio_sound_get_loop_start() - no asset found with index "+_s4);return 0.0;}return _961.loopStart;}}function audio_sound_loop_end(_s4,_w61){_s4=yyGetInt32(_s4);_w61=yyGetReal(_w61);const _Z71=audio_sound_length(_s4);if(_Z71===-1){debug("audio_sound_loop_end() - could not determine length of asset");return;}_w61=clamp(_w61,0,_Z71);if(_s4>=_641){const _B71=_571(_s4);
if(_B71!==null)_B71._z61(_w61);}else {const _961=_a61(_s4);if(_961===null){debug("audio_sound_loop_end() - no asset found with index "+_s4);return;}_961.loopEnd=_w61;_541.filter(_251=>_251._U51===_s4).forEach(_251=>_251._z61(_w61));}}function audio_sound_get_loop_end(_s4){_s4=yyGetInt32(_s4);if(_s4>=_641){const _B71=_571(_s4);if(_B71===null)return 0.0;return _B71._C61();}else {const _961=_a61(_s4);if(_961===null){debug("audio_sound_get_loop_end() - no asset found with index "+_s4);return 0.0;}return _961.loopEnd;
}}function audio_system(){if(_Z41==__41)return 1;else return 0;}function audio_emitter_exists(_x71){if(_x71===undefined)return false;_x71=yyGetInt32(_x71);const emitter=_841[_x71];return emitter instanceof _G71&&emitter.__71()===true;}function audio_get_type(_671){if(_Z41!=__41)return -1;if(_061(yyGetInt32(_671))){return 1;}return 0;}function audio_get_name(_s4){if(_Z41==__41){_s4=yyGetInt32(_s4);var _081=-1;if(_s4>=_641){var sound=_571(_s4);if(sound!=null){_081=sound._U51;}}else {_081=_s4;}if(_081>=0&&_081<_aw.Sounds.length){
var name=_aw.Sounds[_081].pName;return name;}}return "<undefined>";}var _181;var _281;function audio_falloff_set_model(_381){if(_Z41!=__41){return;}_381=yyGetInt32(_381);if(_381==_281)return;var _481=g_WebAudioContext.createPanner();switch(_381){case _p41._q41:_181=_481.INVERSE_DISTANCE;if(_181==undefined)_181="inverse";break;case _p41._r41:_181=_481.INVERSE_DISTANCE;if(_181==undefined)_181="inverse";break;case _p41._s41:console.warn("audio_falloff_inverse_distance_clamped is not supported in html5\n");console.log("Note: Falloff will mimic audio_falloff_inverse_distance");
_181=_481.INVERSE_DISTANCE;if(_181==undefined)_181="inverse";break;case _p41._t41:_181=_481.LINEAR_DISTANCE;if(_181==undefined)_181="linear";break;case _p41._u41:console.warn("audio_falloff_linear_distance_clamped is not supported in html5\n");console.log("Note: Falloff will mimic audio_falloff_linear_distance");_181=_481.LINEAR_DISTANCE;if(_181==undefined)_181="linear";break;case _p41._v41:_181=_481.EXPONENTIAL_DISTANCE;if(_181==undefined)_181="exponential";break;case _p41._w41:console.warn("audio_falloff_exponent_distance_clamped is not supported in html5\n");
console.log("Note: Falloff will mimic audio_falloff_exponent_distance");_181=_481.EXPONENTIAL_DISTANCE;if(_181==undefined)_181="exponential";break;case _p41._x41:console.warn("audio_falloff_inverse_distance_scaled is not supported in html5\n");console.log("Note: Falloff will mimic audio_falloff_inverse_distance");_181=_481.INVERSE_DISTANCE;if(_181==undefined)_181="inverse";break;case _p41._y41:console.warn("audio_falloff_exponent_distance_scaled is not supported in html5\n");console.log("Note: Falloff will mimic audio_falloff_exponent_distance");
_181=_481.EXPONENTIAL_DISTANCE;if(_181==undefined)_181="exponential";break;default :console.warn("Ignored attempt to set audio falloff to unknown model\n");return;}_281=_381;_841.filter(_581=>_581.__71()===true).forEach(_581=>{_581._681.distanceModel=_181;if(_281==_p41._q41){_581._781=_581._681.rolloffFactor;_581._681.rolloffFactor=0;}else if(_581._781!==undefined){_581._681.rolloffFactor=_581._781;_581._781=undefined;}});}function _W71(_881){for(var i=0;i<_k41;++i){var sound=_541[i];if(sound._O51){if(!sound.paused){
sound.pause();if(_881)sound._V51=true;}}}}function audio_stop_all(){_541.forEach(_251=>_251.stop());}function _981(_a81){_541.filter(_251=>audio_sampledata[_251._U51].groupId===_a81).forEach(_251=>_251.stop());}function audio_pause_all(){_W71(false);}function audio_resume_all(){_X71(false);}function _X71(_881){for(var i=0;i<_k41;++i){var sound=_541[i];if(sound._O51){if(sound.paused){if(_881){if(sound._V51){sound.resume();sound._V51=false;}}else {sound.resume();}}}}}function audio_is_paused(_671){if(_Z41!==__41)return false;
_671=yyGetInt32(_671);if(_671>=_641){const _B71=_571(_671);if(_B71===null)return false;return _B71._p61();}return _541.filter(_251=>_251._U51===_671).some(_251=>_251._p61());}function audio_is_playing(_671){if(_Z41!==__41)return false;_671=yyGetInt32(_671);if(_671>=_641){const _B71=_571(_671);if(_B71===null)return false;return _B71._n61();}return _541.filter(_251=>_251._U51===_671).some(_251=>_251._n61());}function audio_listener_position(_b81,_c81,_d81){if(_Z41==__41){_b81=yyGetReal(_b81);_c81=yyGetReal(_c81);
_d81=yyGetReal(_d81);var _e81=g_WebAudioContext.listener;_e81.setPosition(_b81,_c81,_d81);if(_e81._zk){_e81._zk._Qr=_b81;_e81._zk._Rr=_c81;_e81._zk._Sr=_d81;}else {_e81._zk=new _Er(_b81,_c81,_d81);}}}function audio_listener_velocity(_b81,_c81,_d81){if(_Z41==__41){_b81=yyGetReal(_b81);_c81=yyGetReal(_c81);_d81=yyGetReal(_d81);var _e81=g_WebAudioContext.listener;if(_e81._851){_e81._851._Qr=_b81;_e81._851._Rr=_c81;_e81._851._Sr=_d81;}else {_e81._851=new _Er(_b81,_c81,_d81);}}}function audio_listener_orientation(_b81,
_c81,_d81,_f81,_g81,_h81){if(_Z41==__41){_b81=yyGetReal(_b81);_c81=yyGetReal(_c81);_d81=yyGetReal(_d81);_f81=yyGetReal(_f81);_g81=yyGetReal(_g81);_h81=yyGetReal(_h81);var _e81=g_WebAudioContext.listener;_e81.setOrientation(_b81,_c81,_d81,_f81,_g81,_h81);if(_e81._951){_e81._951[0]=_b81;_e81._951[1]=_c81;_e81._951[2]=_d81;_e81._951[3]=_f81;_e81._951[4]=_g81;_e81._951[5]=_h81;}else {_e81._951=new Array(_b81,_c81,_d81,_f81,_g81,_h81);}}}function audio_listener_set_position(_i81,_96,_a6,_As){if(yyGetInt32(_i81)==0){
audio_listener_position(yyGetReal(_96),yyGetReal(_a6),yyGetReal(_As));}}function audio_listener_set_velocity(_i81,_j81,_k81,_l81){if(yyGetInt32(_i81)==0){audio_listener_velocity(yyGetReal(_j81),yyGetReal(_k81),yyGetReal(_l81));}}function audio_listener_set_orientation(_i81,_m81,_n81,_o81,_p81,_q81,_r81){if(yyGetInt32(_i81)==0){audio_listener_orientation(yyGetReal(_m81),yyGetReal(_n81),yyGetReal(_o81),yyGetReal(_p81),yyGetReal(_q81),yyGetReal(_r81));}}function audio_listener_get_data(_i81){if(yyGetInt32(_i81)==0){
var _e81=g_WebAudioContext.listener;var map=ds_map_create();ds_map_add(map,"x",_e81._zk._Qr);ds_map_add(map,"y",_e81._zk._Rr);ds_map_add(map,"z",_e81._zk._Sr);ds_map_add(map,"vx",_e81._851._Qr);ds_map_add(map,"vy",_e81._851._Rr);ds_map_add(map,"vz",_e81._851._Sr);ds_map_add(map,"lookat_x",_e81._951[0]);ds_map_add(map,"lookat_y",_e81._951[1]);ds_map_add(map,"lookat_z",_e81._951[2]);ds_map_add(map,"up_x",_e81._951[3]);ds_map_add(map,"up_y",_e81._951[4]);ds_map_add(map,"up_z",_e81._951[5]);return map;
}return -1;}function audio_emitter_position(_x71,_96,_a6,_As){const emitter=_w71(_x71);if(emitter===undefined)return;_96=yyGetReal(_96);_a6=yyGetReal(_a6);_As=yyGetReal(_As);emitter.setPosition(_96,_a6,_As);}function audio_emitter_get_x(_x71){const emitter=_w71(_x71);if(emitter===undefined)return 0.0;return emitter._s81();}function audio_emitter_get_y(_x71){const emitter=_w71(_x71);if(emitter===undefined)return 0.0;return emitter._t81();}function audio_emitter_get_z(_x71){const emitter=_w71(_x71);if(emitter===undefined)return 0.0;
return emitter._u81();}function audio_emitter_create(){const _v81=_841.findIndex(_581=>_581.active===false);if(_v81!==-1){_841[_v81]._w81();return _v81;}const emitter=new _G71();if(emitter===null)return undefined;return _841.push(emitter)-1;}function audio_emitter_free(_x71){const emitter=_w71(_x71);if(emitter===undefined)return;_541.filter(_251=>_251._N51===emitter).forEach(_251=>_251.stop());emitter.gainnode.disconnect();emitter.active=false;}function audio_master_gain(_b81){if(_Z41!=__41)return;_651.gain.value=yyGetReal(_b81);
}function audio_set_master_gain(_i81,_O61){if(yyGetInt32(_i81)==0){audio_master_gain(yyGetReal(_O61));}}function audio_get_master_gain(_i81){if(yyGetInt32(_i81)==0){return _651.gain.value;}return 0;}function audio_emitter_gain(_x71,_O61){const emitter=_w71(_x71);if(emitter===undefined)return;_O61=yyGetReal(_O61);_O61=Math.max(0.0,_O61);emitter.gainnode.gain.value=_O61;}function audio_emitter_get_gain(_x71){const emitter=_w71(_x71);if(emitter===undefined)return 0.0;return emitter.gainnode.gain.value;}function audio_emitter_pitch(_x71,
_R61){const emitter=_w71(_x71);if(emitter===undefined)return;_R61=yyGetReal(_R61);_R61=Math.max(0.0,_R61);emitter.pitch=_R61;_541.filter(_251=>_251._N51===emitter).forEach(_251=>_251._S61());}function audio_emitter_get_pitch(_x71){const emitter=_w71(_x71);if(emitter===undefined)return 1.0;return emitter.pitch;}function audio_emitter_falloff(_x71,_x81,_y81,_z81){const emitter=_w71(_x71);if(emitter===undefined)return;_x81=yyGetReal(_x81);_y81=yyGetReal(_y81);_z81=yyGetReal(_z81);emitter._H71(_x81,_y81,_z81);
}function audio_channel_num(_A81){_A81=yyGetInt32(_A81);if(_A81<_a41){for(var i=_A81;i<_k41;++i){var sound=_541[i];if(sound._O51){sound.stop();}}if(_k41>_A81)_k41=_A81;}_a41=_A81;}function audio_sound_get_listener_mask(_Y71){return 1;}function audio_emitter_get_listener_mask(_x71){return 1;}function audio_get_listener_mask(){return 1;}function audio_get_listener_count(){return 1;}function audio_get_listener_info(index){if(_Z41==__41){index=yyGetInt32(index);if(index==0){var map=ds_map_create();ds_map_add(map,
"name","default");ds_map_add(map,"mask",1);ds_map_add(map,"index",index);return map;}}return -1;}function audio_debug(_B81){}/*@this {XMLHttpRequest} */function _C81(e){if(_Z41!=__41)return;var targetid=e.target.targetid;debug("error loading sound"+targetid);if(targetid!=undefined){debug("AudioError: "+this.URL);this.completed=false;_D81++;ClearEventListeners(this);}}/*@this {XMLHttpRequest} */function _E81(e){if(_Z41!=__41)return;var targetid=e.target.targetid;if(_F81)debug("sound loaded: "+targetid);
if(targetid!=undefined){this.completed=true;ClearEventListeners(this);try{var _J51=audio_sampledata[targetid];_J51.state=_G41._K41;g_WebAudioContext.decodeAudioData(e.target.response,function(buffer){_J51.buffer=buffer;_J51.state=_G41._L41;_D81++;},function(err){_J51.state=_G41._J41;_D81++;debug("error decoding audio data:"+err);});}catch(_Oj){debug("error decoding audio data: "+_Oj.message);_D81++;}}}function _G81(_Y3){if(_Z41!=__41)return;this.completed=true;ClearEventListeners(this);var targetid=_Y3.target.targetid;
if(_F81)debug("streamed sound pre-loaded: "+targetid);var _J51=audio_sampledata[targetid];if(_J51){_J51.state=_G41._J41;}else {debug("ERROR: No sample data sound for sound ID "+targetid+" in Audio_StreamedSoundPreloaded");}}function _H81(__F,_yg,_w4,_I81){var _J51=audio_sampledata[_yg];_J51.buffer=null;if(_c51){_J81(__F,_yg,_w4,_I81);}else {_J51.state=_G41._L41;}}function _K81(e){var targetid=e.target.targetid;debug("Audio_SoundReadyStateChange:targetid/readyState/status:"+targetid+'/'+e.target.readyState+'/'+e.target.status);
}function _L81(e){var targetid=e.target.targetid;debug("Audio_SoundProgress:targetid/loaded/total:"+targetid+'/'+e._ph+'/'+e._M81);}function _N81(__F,_I81){__F=_871(__F);var index;index=__F.indexOf(_I81);if(index>0){__F=__F.substr(0,index);}if(_a71){_I81="ogg";}else if(_b71){_I81="mp3";}else {_I81="ogg";}__F=__F+"."+_I81;var _g61=new XMLHttpRequest();_g61.open('GET',__F,true);_g61.responseType='arraybuffer';_g61.URL=__F;_g61.completed=false;return _g61;}function _O81(__F,_yg,_w4,_I81,_P81){if((_Z41!=__41)||(_Q81==false)){
return undefined;}var _g61=_N81(__F,_I81);if(_P81!=undefined){_g61.targetid={_t11:_P81,_081:_yg};_g61.onload=_R81;_g61.onerror=_S81;}else {_g61.targetid=_yg;_g61.onload=_E81;_g61.onerror=_C81;_g61.ontimeout=_C81;_g61._nG=_L81;_g61.onreadystatechange=_K81;}_g61.send();_d61[_w4]=_g61;return _yg;}function _J81(__F,_yg,_w4,_I81){if((_Z41!=__41)||(_Q81==false)){return undefined;}var _g61=_N81(__F,_I81);_g61.targetid=_yg;_g61.onload=_G81;_g61.onerror=_C81;_g61.send();_d61[_w4]=_g61;return _yg;}var _T81="Unloaded";
var _U81="Loading";var _V81="Loaded";var _W81="Unloading";var _X81=0;var _051=[];/*@constructor */function _Y81(_a81){this.groupId=_a81;this._Z81=_T81;this.__81=0;this._091=0;this._191=[];this.gain=new _A51(1);}_Y81.prototype._291=function(_391){this._191.push(_391);};_Y81.prototype._491=function(_591){if(this._Z81!=_591){this._Z81=_591;debug("Audio Group "+this.groupId+"-> "+this._Z81);if(_591==_V81){var map=ds_map_create();g_pBuiltIn.async_load=map;ds_map_add(map,"type","audiogroup_load");ds_map_add(map,
"group_id",this.groupId);_14._24(_691,0);}}};_Y81.prototype._791=function(){return this.gain.get();};_Y81.prototype._N61=function(_O61,_U71){_O61=Math.max(0,_O61);_U71=Math.max(0,_U71);this.gain.set(_O61,_U71);if(_U71==0){_541.forEach(_251=>{const _Z61=this._191.find(_891=>_891==_251._U51);if(_Z61!==undefined)_251._M51.gain.value=_Z51.__51(_251);});}};/*@this {XMLHttpRequest} */function _R81(e){var targetid=this.targetid._081;var _991=this.targetid._t11;if(_F81)debug("sound loaded "+targetid);if(targetid!=undefined){
e.target.completed=true;ClearEventListeners(this);try{var _J51=audio_sampledata[targetid];_J51.state=_G41._K41;g_WebAudioContext.decodeAudioData(e.target.response,function(buffer){_J51.buffer=buffer;_J51.state=_G41._L41;_991._a91();},function(err){_J51.state=_G41._J41;_991._a91();debug("error decoding audio data:"+err);});}catch(_Oj){debug("error decoding audio data: "+_Oj.message);_991._a91();}}}/*@this {XMLHttpRequest} */function _S81(e){var targetid=this.targetid._081;var _991=this.targetid._t11;
debug("error loading sound"+targetid);if(targetid!=undefined){debug("AudioError: "+this.URL);this.completed=false;ClearEventListeners(this);_991._a91();}}_Y81.prototype._a91=function(){this.__81--;if(this._191.length>0){this._091=((this._191.length-this.__81)*100)/(this._191.length);}if(this.__81<=0){this._491(_V81);}};_Y81.prototype._e9=function(){if(this._Z81!=_T81){return 0;}if(this._191.length==0){return 0;}this._491(_U81);this.__81=this._191.length;this._091=0;var i;for(i=0;i<this._191.length;
++i){var index=this._191[i];if(_aw.Sounds[index].kind==_D41._E41){var id=_O81(_u9+_aw.Sounds[index].origName,index,_aw.Sounds[index].pName,_aw.Sounds[index].extension,this);if(id===undefined)this._a91();}else {this._a91();}}};_Y81.prototype._b91=function(){if(this._Z81!=_V81){return 0;}this._491(_W81);_981(this.groupId);var i;for(i=0;i<this._191.length;++i){var index=this._191[i];var _J51=audio_sampledata[index];if(_J51!=undefined){_J51.buffer=null;}}this._491(_T81);};_Y81.prototype._c91=function(){if(this._Z81==_V81){
return 1;}return 0;};_Y81.prototype._d91=function(){if(this._Z81==_V81){return 100;}if(this._Z81==_U81){return ~~this._091;}return 0;};function _k51(){var index;for(index=0;index<_aw.Sounds.length;index++){if(_aw.Sounds[index]&&(_aw.Sounds[index]!==null)){var _J51=new _z51();audio_sampledata[index]=_J51;_J51.buffer=null;var _e91=_aw.Sounds[index].volume;_J51.gain=new _A51(_e91);_J51._B51=_e91;_J51.pitch=1.0;_J51.kind=_aw.Sounds[index].kind;if(_aw.Sounds[index].duration!=undefined){_J51.duration=_aw.Sounds[index].duration;
}_J51.groupId=0;var groupId=_aw.Sounds[index].groupId;if(groupId!=undefined){_J51.groupId=groupId;}}}}function _l51(){if(_aw.AudioGroups){var i;_X81=_aw.AudioGroups.length;for(i=0;i<_X81;++i){_051[i]=new _Y81(i);}for(i=0;i<audio_sampledata.length;++i){var sound=audio_sampledata[i];if(sound!=undefined){var groupId=sound.groupId;if(_051[groupId]!=undefined){if(_aw.AudioGroups[groupId].enabled)_051[groupId]._291(i);}}}}}function audio_group_load(_a81){_a81=yyGetInt32(_a81);if(_a81>0&&_a81<_X81){var _991=_051[_a81];
var result=_991._e9();return result;}return 0;}function audio_group_unload(_a81){_a81=yyGetInt32(_a81);if(_a81>0&&_a81<_X81){var _991=_051[_a81];var result=_991._b91();return result;}return 0;}function audio_group_is_loaded(_a81){_a81=yyGetInt32(_a81);if(_a81==0){return 1;}if(_a81>0&&_a81<_X81){var _991=_051[_a81];var result=_991._c91();return result;}return 0;}function audio_group_load_progress(_a81){_a81=yyGetInt32(_a81);if(_a81==0){return 100;}if(_a81>0&&_a81<_X81){var _991=_051[_a81];var result=_991._d91();return result;
}return 0;}function audio_group_name(_a81){_a81=yyGetInt32(_a81);if(_a81>=0&&_a81<_X81){var name=_aw.AudioGroups[_a81].name;return name;}return "<undefined>";}function audio_group_stop_all(_a81){_981(yyGetInt32(_a81));}function audio_group_set_gain(_a81,_O61,_U71){_a81=yyGetInt32(_a81);_O61=yyGetReal(_O61);_U71=yyGetInt32(_U71);const _t11=_051[_a81];if(_t11!==undefined)_t11._N61(_O61,_U71);}function audio_group_get_gain(_a81){_a81=yyGetInt32(_a81);const _t11=_051[_a81];if(_t11!==undefined)return _t11._791();
return 1;}function audio_group_get_assets(_f91){_f91=yyGetInt32(_f91);const _t11=_051[_f91];if(_t11===undefined)return [];return _t11._191;}function audio_sound_get_audio_group(_g91){_g91=yyGetInt32(_g91);if(_g91>=_641){const _B71=_571(_g91);if(_B71===null)return -1;_g91=_B71._U61();}const _961=_a61(_g91);if(_961===null)return -1;return _961.groupId;}function audio_sound_get_asset(_Y71){const _B71=_571(_Y71);if(_B71===null||_B71._O51===false){return undefined;}return _B71._U51;}function audio_create_stream(_1l){
var _J51=new _z51();_J51.buffer=null;_J51.gain=new _A51(1);_J51._B51=1;_J51.pitch=1;_J51.kind=_D41._F41;_J51.duration=-1;_J51.groupId=0;_J51._771=yyGetString(_1l);_J51.state=_G41._L41;var index=audio_sampledata.length;for(var i=_aw.Sounds.length;i<audio_sampledata.length;++i){if(audio_sampledata[i]==null){index=i;break;}}audio_sampledata[index]=_J51;const _g61=new XMLHttpRequest();_g61.open("GET",_f61(index),true);_g61.responseType="arraybuffer";_g61.onload=()=>{if(_g61.status<200||_g61.status>=300){console.log("Request for "+_e61+" failed.");
return;}g_WebAudioContext.decodeAudioData(_g61.response).then((_6l)=>{_J51.duration=_6l.duration;});};_g61.send();return index;}function audio_destroy_stream(_671){_671=yyGetInt32(_671);const _S71=audio_sampledata[_671];if(_S71!=null){if(_S71._771!==undefined){audio_stop_sound(_671);audio_sampledata[_671]=null;}return 1;}return -1;}function _h91(){if(_Z41!=__41)return null;for(var i=0;i<_e41;i++){const sound=_c41[i];if(sound!=null&&!sound._X51){const _Jk=new _M71({sound:_b41+i,priority:10});sound._uL(_Jk);
return sound;}}if(_e41<_a41){const _Jk=new _M71({sound:_b41+_e41,priority:10});var _r71=new _K51(_Jk);_c41[_e41]=_r71;_r71._1R=_b41+_e41;++_e41;return _r71;}return null;}function _i91(_j91){return _j91;}function _k91(_j91){return _j91;}function audio_create_buffer_sound(_l91,_m91,_n91,_ne,_o91,_p91){var _r71=_h91();if(_r71==null)return -1;_l91=yyGetInt32(_l91);_m91=yyGetInt32(_m91);_n91=yyGetInt32(_n91);_ne=yyGetInt32(_ne);_o91=yyGetInt32(_o91);_p91=yyGetInt32(_p91);var _q91=1;if(_p91==_z41._B41)_q91=2;else if(_p91>_z41._C41){
debug("audio_create_buffer_sound - unhandled _channels setting : "+_p91);return -1;}let _r91=8;if(_m91==_s91)_r91=16;else if(_m91!=_CG){debug("audio_create_buffer_sound - unhandled _bufferFormat setting : "+_m91);return -1;}_n91=Math.min(Math.max(_n91,8000),48000);buffer_seek(_l91,_Qj,_ne);const _lB=Math.pow(2,_r91-1);const _t91={length:_o91/(_q91*_r91/8),numberOfChannels:_q91,sampleRate:_n91};const _u91=new AudioBuffer(_t91);for(let _nv=0;_nv<_u91.length;++_nv){for(let _v91=0;_v91<_u91.numberOfChannels;++_v91){
const _w91=_u91.getChannelData(_v91);_w91[_nv]=(buffer_read(_l91,_m91)/_lB)-1.0;}}var _J51=new _z51();_J51.gain=new _A51(1);_J51._B51=1.0;_J51.pitch=1.0;_J51.kind=_D41._E41;_J51.duration=_u91.duration;_J51.groupId=0;_J51._D51=[];_J51.state=_G41._L41;_J51.buffer=_u91;_d41[_r71._1R-_b41]=_J51;return _r71._1R;}function audio_free_buffer_sound(_o71){_o71=yyGetInt32(_o71);var _v71=_o71-_b41;if(_v71<0||_v71>=_e41){debug("sound "+_o71+" does not appear to be a buffer sound, not freeing");return -1;}_c41[_v71]._X51=false;
_d41[_v71]=null;return 0;}function _x91(){if(_Z41!=__41)return null;for(let i=0;i<_i41;i++){const sound=_g41[i];if(sound&&!sound._Y51){const _Jk=new _M71({sound:_f41+i,priority:10});sound._uL(_Jk);return sound;}}if(_i41<_a41){var _Lu=_i41;for(let i=0;i<_i41;i++){const sound=_g41[i];if(!sound){_Lu=i;break;}}const _Jk=new _M71({sound:_f41+_Lu,priority:10});var _r71=new _K51(_Jk);_g41[_Lu]=_r71;_r71._1R=_f41+_Lu;if(_Lu==_i41)++_i41;return _r71;}return null;}function audio_create_play_queue(_y91,_n91,_p91){_y91=yyGetInt32(_y91);
_n91=yyGetInt32(_n91);_p91=yyGetInt32(_p91);if(_p91!=_z41._A41&&_p91!=_z41._B41&&_p91!=_z41._C41){debug("audio_create_play_queue: channels should be audio_mono, audio_stereo or audio_3d");return -1;}var _z91=1;if(_p91==_z41._B41)_z91=2;if(_n91<1000)_n91=1000;if(_n91>48000)_n91=48000;if(_y91!=_CG&&_y91!=_s91){debug("audio_create_play_queue: unsupported format (use buffer_u8,buffer_s16)");return -1;}var _r71=_x91();if(_r71==null){debug("Failed to create play queue.");return -1;}_r71._A91=_y91;_r71._B91=_n91;
_r71._C91=_p91;_r71._k61=g_WebAudioContext.createScriptProcessor(_j41,0,_z91);_r71._k61.sourceBuffers=[];_r71._k61._D91=0;_r71._k61._E91=0;_r71._k61.onaudioprocess=function(_F91){var outputBuffer=_F91.outputBuffer;var _k61=_r71._k61;var _G91=outputBuffer.numberOfChannels;for(var _H91=0;_H91<_j41;_H91++){if(_k61.sourceBuffers.length>0){for(let _I91=0;_I91<_G91;_I91++){const _J91=outputBuffer.getChannelData(_I91);_J91[_H91]=_k61.sourceBuffers[0].getChannelData(_I91)[_k61._E91];}_k61._E91++;if(_k61._E91>=_k61.sourceBuffers[0].length){
var _K91=_k61.sourceBuffers.shift();var _Tf=_Uf._Vf(_r71._1R,undefined,_L91,undefined);_Tf._i61=_r71._1R;_Tf._M91=_K91._N91;_Tf._O91=0;_Tf._Yf=0;_Tf._Zf=true;_k61._E91=0;}}else {for(let _I91=0;_I91<_G91;_I91++){const _J91=outputBuffer.getChannelData(_I91);_J91[_H91]=0;}}}};var _J51=new _z51();_J51.gain=new _A51(1);_J51._B51=1.0;_J51.pitch=1.0;_J51.kind=_D41._E41;_J51.duration=0.0;_J51.groupId=0;_J51._D51=[];_J51.state=_G41._L41;_h41[_r71._1R-_f41]=_J51;return _r71._1R;}function audio_queue_sound(_P91,_l91,
_ne,_yQ){_P91=yyGetInt32(_P91);_l91=yyGetInt32(_l91);_ne=yyGetInt32(_ne);_yQ=yyGetInt32(_yQ);var _l61=_P91-_f41;if(_l61<0&&_l61>=_i41){debug("sound "+_P91+" does not appear to be a queue sound, can't queue a sound behind it.");return -1;}var _j61=_g41[_l61];if(!_j61||_g41[_l61]._Y51==false){debug("looks like queue sound "+_P91+" has been freed already, not queueing behind it.");return -1;}{var _q91=1;if(_j61._C91==_z41._B41)_q91=2;else if(_j61._C91>_z41._C41){debug("audio_create_buffer_sound - unhandled queueSound.queueChannels setting : "+_j61._C91);
return -1;}var _r91=8;if(_j61._A91==_s91)_r91=16;else if(_j61._A91!=_CG){debug("audio_create_buffer_sound - unhandled queueSound.queueFormat setting : "+_j61._A91);return -1;}buffer_seek(_l91,_Q91,0);var _R91=_yQ;var wavBuffer=buffer_create(44+_R91,_S91,1);buffer_write(wavBuffer,_Ij,_i91(0x46464952));buffer_write(wavBuffer,_Ij,_i91(36+_R91));buffer_write(wavBuffer,_Ij,_i91(0x45564157));buffer_write(wavBuffer,_Ij,_i91(0x20746d66));buffer_write(wavBuffer,_Ij,_i91(16));buffer_write(wavBuffer,_T91,_k91(1));
buffer_write(wavBuffer,_T91,_k91(_q91));buffer_write(wavBuffer,_Ij,_i91(_j61._B91));buffer_write(wavBuffer,_Ij,_i91(_j61._B91*_q91*_r91/8));buffer_write(wavBuffer,_T91,_k91(_q91*_r91/8));buffer_write(wavBuffer,_T91,_k91(_r91));buffer_write(wavBuffer,_Ij,_i91(0x61746164));buffer_write(wavBuffer,_Ij,_i91(_R91));buffer_copy(_l91,_ne,_R91,wavBuffer,44);var _ob=buffer_get_address(wavBuffer);_j61._k61._D91++;try{g_WebAudioContext.decodeAudioData(_ob,function(buffer){buffer_delete(wavBuffer);buffer._N91=_l91;
_j61._k61.sourceBuffers.push(buffer);_j61._k61._D91--;},function(err){debug("error decoding audio data:"+err);buffer_delete(wavBuffer);});}catch(_Oj){debug("audio_create_buffer_sound - error decoding audio data: "+_Oj+" -- "+_Oj.message);}}return -1;}function audio_free_play_queue(_P91){_P91=yyGetInt32(_P91);var _l61=_P91-_f41;if(_l61<0||_l61>=_i41){debug("sound "+_P91+" does not appear to be a queue sound, not freeing");return -1;}audio_stop_sound(_P91);_g41[_l61]._Y51=false;_g41[_l61]=undefined;delete _g41[_l61];
return 0;}navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;function audio_get_recorder_count(){if(navigator.getUserMedia){return 1;}return 0;}function audio_get_recorder_info(_s4){_s4=yyGetInt32(_s4);if(_s4<0||_s4>audio_get_recorder_count()){debug("audio_get_recorder_info - device "+_s4+" is not available");return -1;}var map=ds_map_create();ds_map_add(map,"name","User provided audio input");ds_map_add(map,"index",0);ds_map_add(map,
"data_format",_s91);ds_map_add(map,"sample_rate",16000);ds_map_add(map,"channels",0);return map;}var _U91=false;var _V91=undefined;function audio_start_recording(_W91){var _c9=audio_get_recorder_count();if(_c9<=0){debug("audio_start_recording - not available in this browser.");return -1;}_W91=yyGetInt32(_W91);if(_W91>=_c9){debug("audio_start_recording - device "+_W91+" is not available.");return -1;}var _X91=4096;if(_V91===undefined){_V91=g_WebAudioContext.createScriptProcessor(_X91,1,1);_V91.wavBuffer=buffer_create(_X91*2,
_S91,1);_V91.onaudioprocess=function(_F91){var inputBuffer=_F91.inputBuffer;buffer_seek(_V91.wavBuffer,_Qj,0);var _Y91=g_WebAudioContext.sampleRate/16000;for(var _I91=0;_I91<inputBuffer.numberOfChannels;_I91++){var _Z91=inputBuffer.getChannelData(_I91);var __91=0;for(var _H91=0;_H91<_X91;_H91+=_Y91){buffer_write(_V91.wavBuffer,_s91,Math.round(_Z91[Math.floor(_H91)]*32767));++__91;}if(_U91){var map=ds_map_create();g_pBuiltIn.async_load=map;ds_map_add(map,"buffer_id",_V91.wavBuffer);ds_map_add(map,"channel_index",
0);ds_map_add(map,"data_len",__91*2);_14._24(_0a1,0);}}};var _1a1={"audio":true};navigator.getUserMedia(_1a1,function(_2a1){var source=g_WebAudioContext.createMediaStreamSource(_2a1);source.connect(_V91);var _3a1=_751(g_WebAudioContext);_V91.connect(_3a1);_3a1.connect(g_WebAudioContext.destination);},function(err){debug("audio_start_recording : error has occured in getUserMedia call "+err);});}_U91=true;return 0;}function audio_stop_recording(_W91){_U91=false;}function audio_bus_create(){const _4a1=_u51();
if(_4a1===null)return undefined;_w51._E71(_4a1._5a1);return _4a1;}function audio_effect_create(_wd,_xn){if(_xn&&typeof _xn!=="object"){_q5("Error: Audio effect parameters must be a struct");return undefined;}return _6a1._7a1(_wd,_xn);}function audio_emitter_bus(_x71,_8a1){const emitter=_w71(_x71);if(emitter===undefined)return;if(_8a1 instanceof _r51()===false){_q5("audio_emitter_bus() - argument 'bus' should be a Struct.AudioBus");return;}emitter._9a1(_8a1);}function audio_emitter_get_bus(_x71){const emitter=_w71(_x71);
if(emitter===undefined)return undefined;return emitter._aa1();}function audio_bus_get_emitters(_8a1){if(_8a1 instanceof _r51()===false){_q5("audio_bus_get_emitters() - argument 'bus' should be a Struct.AudioBus");return undefined;}const _ba1=[];_841.forEach((_581,_s4)=>{if(_581._4a1===_8a1&&_581.__71()===true)_ba1.push(_s4);});return _ba1;}function audio_bus_clear_emitters(_8a1){if(_y51()===false||_8a1 instanceof _r51()===false||_8a1===_w51)return;_841.filter(_581=>_581._4a1===_8a1).filter(_581=>_581.__71()===true).forEach(_581=>{
_581.gainnode.disconnect();_w51._E71(_581.gainnode);_581._4a1=_w51;});}function lin_to_db(_96){_96=yyGetReal(_96);return 20*Math.log10(_96);}function db_to_lin(_96){_96=yyGetReal(_96);return Math.pow(10,_96/20);}function _ca1(_s4){if(_Z41!=_da1)return;_yC._ea1(_s4);}function _fa1(_s4){if(_Z41!=_da1)return;_yC._ga1(_s4);}function _ha1(_s4){if(_Z41!=_da1)return;_yC._ia1(_s4);}function _ja1(){if(_Z41!=_da1)return;_yC._ka1();}function _la1(_s4){if(_Z41!=_da1)return false;return _yC._ma1(_s4);}function _na1(_s4,
_Ol){if(_Z41!=_da1)return;_yC._oa1(_s4,_Ol);}function _pa1(_Ol){if(_Z41!=_da1)return;_yC._qa1(_Ol);}function _ra1(_s4,_Ol,_T6){if(_Z41!=_da1)return;_yC._sa1(_Ak(_s4),_Ol,_Ak(_T6));}function _jC(_yg){if(_Z41!=_da1)return false;if(_yC._n6(_yg)===null)return false;return true;}function _ta1(_ua1){if(_Z41!=_da1)return -1;var _S71=_yC._n6(_ua1);if(_S71===null)return -1;return _S71.kind;}function _kC(_yg){if(_Z41!=_da1)return "";var _S71=_yC._n6(_yg);if(_S71===null)return "";return _S71.pName;}function _va1(_yg){if(_Z41!=_da1)return "";
return _kC(_yg);}function _wa1(_4y,_Xc,_xa1){_4y=_871(_4y);if(_Z41!=_da1)return;var _971=filename_ext(_4y);if(_4y.substring(0,5)=="file:")return -1;var _6n=_971;_ya1(_6n,_4y,_971,_7n,_8n);var _rP=_yC._7a1();var _za1=_yC._n6(_rP);_za1.pName=_4y;_za1.extension=_971;_za1.origName=_4y;_Uf._Vf(_rP,_4y,_Aa1,_d61[_4y]);return _rP;}function _Ba1(_s4,_4y,_Xc,_xa1){if(_Z41!=_da1)return;_ha1(_s4);var _971=filename_ext(_4y);if(_4y.substring(0,5)=="file:")return -1;var _6n=_971;_ya1(_6n,_4y,_971,_7n,_8n);var _za1=_yC._n6(_s4);
_d61[_za1.pName]=undefined;_za1._Ca1=[];_za1.pName=_4y;_za1.extension=_971;_za1.origName=_4y;_Uf._Vf(_s4,_4y,_Aa1,_d61[_za1.pName]);return _s4;}function _Da1(_s4){if(_Z41!=_da1)return;_yC._pl(_s4);}var _Ea1=0,_Fa1=1,_Ga1=2,_Ha1=3;function sprite_exists(_s4){return _m6._n6(yyGetInt32(_s4))!=null;return false;}function sprite_get_width(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px!=null)return _Px.width;return 0;}function sprite_get_height(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px!=null)return _Px.height;;return 0;
}function sprite_get_name(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return "";return _Px.pName;}function _Ia1(_s4){return sprite_get_name(_s4);}function sprite_get_number(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return 0;return _Px._n7;}function _Ja1(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return 0;return _Px.transparent;}function sprite_get_xoffset(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return 0;return _Px.xOrigin;}function sprite_get_yoffset(_s4){var _Px=_m6._n6(yyGetInt32(_s4));
if(_Px==null)return 0;return _Px.yOrigin;}function sprite_get_bbox_left(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return 0;return _Px._XH.left;}function sprite_get_bbox_right(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return 0;return _Px._XH.right;}function sprite_get_bbox_top(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return 0;return _Px._XH.top;}function sprite_get_bbox_bottom(_s4){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return 0;return _Px._XH.bottom;}function sprite_get_bbox_mode(_s4){
var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return -1;return _Px._Ka1;}function sprite_set_offset(_s4,_8D,_9D){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return;_Px.xOrigin=yyGetReal(_8D);_Px.yOrigin=yyGetReal(_9D);_Px._La1();}function sprite_set_bbox(_s4,_Lm,_Mm,_Ma1,_Na1){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px===null)return;var left=yyGetInt32(_Lm);var right=yyGetInt32(_Ma1);var top=yyGetInt32(_Mm);var bottom=yyGetInt32(_Na1);var _Oa1=false;if(_Px._XH.left!=left||_Px._XH.right!=right||_Px._XH.top!=top||_Px._XH.bottom!=bottom)_Oa1=true;
_Px._XH.left=left;_Px._XH.top=top;_Px._XH.right=right;_Px._XH.bottom=bottom;if(_Oa1){_Px._Pa1();_Px._Qa1();}}function sprite_set_bbox_mode(_s4,_rt){var _Px=_m6._n6(yyGetInt32(_s4));if(_Px==null)return;_rt=yyGetInt32(_rt);if((_rt<0)||(_rt>2))return;if(_rt==_Px._Ka1)return;_Px._Ka1=_rt;_Px._Qa1();}function sprite_set_alpha_from_sprite(_1k,_0j){var _jk=_m6._n6(yyGetInt32(_1k));if(_jk===null)return false;if(!_jk._Am){_q5("Error: Can't set the alpha channel of normal sprite. It must 'duplicated' first");return false;
}var _kk=_m6._n6(yyGetInt32(_0j));if(_kk===null)return false;var _c9=_kk._n7;if(_c9>_jk._n7){_c9=_jk._n7;}for(var i=0;i<_c9;i++){var _Ra1=_jk._l5[i];var _Sa1=_kk._l5[i];_3n(_Ra1,_Sa1);}return true;}function _Ta1(){}function _Ua1(_c5,_96,_a6,_Xi,_Yi,_9m,_am){_c5=yyGetInt32(_c5);_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);_9m=yyGetBool(_9m);var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);var _Ya1=_m6._n6(_c5);_Ya1._n7++;_Va1.width=_Ya1.width;_Va1.height=_Ya1.height;
_Wa1._Za1(canvas,_96,_a6,_Xi,_Yi,0,0,_Va1.width,_Va1.height);if(_9m){_Va1.complete=_fm(_Wa1,_Xi,_Yi);}else {_Va1.complete=true;}_Ya1._n7++;var _k5=new _im();_Ya1._l5[_Ya1._l5.length]=_k5;_k5.x=0;_k5.y=0;_k5.w=_Ya1.width;_k5.h=_Ya1.height;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_Bm(_Va1);_k5.texture=_o5[_k5.tp];_k5.texture.complete=true;return _c5;}compile_if_used(_Ta1=_Ua1);function sprite_create_from_surface(){}function __a1(_yg,_96,_a6,_Xi,
_Yi,_9m,_am,_0b1,_1b1){_yg=yyGetInt32(_yg);_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);_9m=yyGetBool(_9m);_0b1=yyGetInt32(_0b1);_1b1=yyGetInt32(_1b1);var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);_Va1.width=_dm._n6(_yg).width;_Va1.height=_dm._n6(_yg).height;_Wa1._Za1(_dm._n6(_yg),0,0);if(_9m){_Va1.complete=_fm(_Wa1,_Xi,_Yi);}else {_Va1.complete=true;}var _Ya1=new _2b1();var _rP=_m6._3b1(_Ya1);_Ya1.pName="surface.copy";_Ya1.width=_Xi;
_Ya1.height=_Yi;_Ya1._XH=new _yx();_Ya1._XH.right=_Ya1.width;_Ya1._XH.bottom=_Ya1.height;_Ya1.transparent=true;_Ya1.smooth=true;_Ya1.preload=true;_Ya1._Ka1=0;_Ya1._4b1=_5b1._6b1;_Ya1.xOrigin=_0b1;_Ya1.yOrigin=_1b1;_Ya1._Am=true;_Ya1._n7=1;_Ya1._7b1=false;_Ya1._8b1=false;_Ya1._o7=[];_Ya1._l5=[];_Ya1.Masks=[];_Ya1._La1();var _k5=new _im();_Ya1._l5[0]=_k5;_k5.x=0;_k5.y=0;_k5.w=_Ya1.width;_k5.h=_Ya1.height;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_Bm(_Va1);
_k5.texture=_o5[_k5.tp];_k5.texture.complete=true;_9b1(_k5);return _rP;}compile_if_used(sprite_create_from_surface=__a1);function sprite_add_from_surface(){}function _ab1(_c5,_yg,_96,_a6,_Xi,_Yi,_9m,_am){_c5=yyGetInt32(_c5);_yg=yyGetInt32(_yg);_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);_9m=yyGetBool(_9m);var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);var _Ya1=_m6._n6(_c5);_Ya1._n7++;_Va1.width=_Ya1.width;_Va1.height=_Ya1.height;_Wa1._Za1(_dm._n6(_yg),
0,0,_Xi,_Yi,0,0,_Va1.width,_Va1.height);if(_9m){_Va1.complete=_fm(_Wa1,_Xi,_Yi);}else {_Va1.complete=true;}var _k5=new _im();_Ya1._l5[_Ya1._l5.length]=_k5;_k5.x=0;_k5.y=0;_k5.w=_Ya1.width;_k5.h=_Ya1.height;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_Bm(_Va1);_k5.texture=_o5[_k5.tp];_k5.texture.complete=true;return _c5;}compile_if_used(sprite_add_from_surface=_ab1);function sprite_delete(_c5){_m6._pl(yyGetInt32(_c5));}function sprite_save(_c5,_bX,
_4y){_Jc("sprite_save()");}function sprite_duplicate(_c5){var _Px=_m6._n6(yyGetInt32(_c5));if(_Px==null)return 0;var _Ya1=new _2b1();var _rP=_m6._3b1(_Ya1);_Ya1.pName=_Px.pName+".copy";_Ya1.width=_Px.width;_Ya1.height=_Px.height;_Ya1._XH.__i(_Px._XH);_Ya1.transparent=_Px.transparent;_Ya1.smooth=_Px.smooth;_Ya1.preload=_Px.preload;_Ya1._Ka1=_Px._Ka1;_Ya1._4b1=_Px._4b1;_Ya1.xOrigin=_Px.xOrigin;_Ya1.yOrigin=_Px.yOrigin;_Ya1._Am=true;_Ya1._n7=_Px._n7;_Ya1._bb1=_Px._bb1;_Ya1._7b1=_Px._7b1;_Ya1.playbackspeedtype=_Px.playbackspeedtype;
_Ya1.playbackspeed=_Px.playbackspeed;_Ya1._8b1=_Px._8b1;_Ya1._o7=[];_Ya1._l5=[];_Ya1.Masks=[];for(var i=0;i<_Px._n7;i++){var _k5=new _im();_Ya1._l5[i]=_k5;_k5._Am(_Px._l5[i]);var _ym=_zm(_Px._l5[i]);_k5.tp=_Bm(_ym);_k5.x=0;_k5.y=0;_k5.texture=_o5[_k5.tp];_k5.texture.complete=true;}return _rP;}function sprite_add(_1l,_cb1,_9m,_am,_0b1,_1b1,_db1){_1l=yyGetString(_1l);_cb1=yyGetInt32(_cb1);if(_cb1<0)return -1;if(_cb1==0)_cb1=1;var _Ya1=new _2b1();_Ya1._eb1=true;if(_1l.substring(0,5)=="file:")return -1;_Ya1.pName=_1l;
if(_db1!=undefined){if(_db1){_Ya1._w9=true;}}var _rP=_m6._3b1(_Ya1);if(_1l.endsWith('.json')){_Ya1._fb1(_1l,function(err){var _nl=_Uf._Vf(_rP,_1l,_gb1,{});_nl._Zf=true;_nl._Yf=err?_fx:_bx;});return _rP;}var _6n=_1l;var _B5=_t9(_6n);_o5[_B5].onload=_7n;_o5[_B5].onerror=_8n;_Uf._Vf(_rP,_1l,_gb1,_o5[_B5]);_Ya1.width=-1;_Ya1.height=-1;_Ya1._XH=new _yx();_Ya1._XH.right=0;_Ya1._XH.bottom=0;_Ya1.transparent=_9m;_Ya1.smooth=yyGetBool(_am);_Ya1.preload=true;_Ya1._Ka1=0;_Ya1._4b1=_5b1._6b1;_Ya1.xOrigin=yyGetInt32(_0b1);
_Ya1.yOrigin=yyGetInt32(_1b1);_Ya1._Am=false;_Ya1._n7=_cb1;_Ya1._bb1=0;_Ya1._7b1=false;_Ya1._8b1=false;_Ya1._o7=[];_Ya1._l5=[];_Ya1.Masks=[];for(var i=0;i<_cb1;i++){var _k5=new _im();_Ya1._l5[i]=_k5;_k5.x=0;_k5.y=0;_k5.w=0;_k5.h=0;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=0;_k5.CropHeight=0;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_B5;_k5.texture=_o5[_k5.tp];}return _rP;}function sprite_add_ext(_1l,_cb1,_0b1,_1b1,_db1){return sprite_add(_1l,_cb1,false,false,_0b1,_1b1,_db1);}function sprite_replace(_c5,_1l,_cb1,
_9m,_am,_0b1,_1b1){_c5=yyGetInt32(_c5);_1l=yyGetString(_1l);_cb1=yyGetInt32(_cb1);if(_cb1<0)return -1;if(_cb1==0)_cb1=1;var _Ya1=_m6._n6(_c5);_Ya1._eb1=true;if(_1l.substring(0,5)=="file:")return -1;var _6n=_1l;if(_1l.endsWith('.json')){_Ya1._fb1(_1l,function(err){var _nl=_Uf._Vf(_c5,_1l,_gb1,{});_nl._Zf=true;_nl._Yf=err?_fx:_bx;});return _c5;}var _B5=_t9(_6n);_o5[_B5].onload=_7n;_o5[_B5].onerror=_8n;_Uf._Vf(_c5,_1l,_gb1,_o5[_B5]);_Ya1.width=0;_Ya1.height=0;_Ya1._XH=new _yx();_Ya1._XH.right=0;_Ya1._XH.bottom=0;
_Ya1.transparent=yyGetBool(_9m);_Ya1.smooth=yyGetBool(_am);_Ya1.preload=true;_Ya1._Ka1=0;_Ya1._4b1=_5b1._6b1;_Ya1.xOrigin=yyGetInt32(_0b1);_Ya1.yOrigin=yyGetInt32(_1b1);_Ya1._Am=false;_Ya1._n7=_cb1;_Ya1._bb1=0;_Ya1._7b1=false;_Ya1._8b1=false;_Ya1._o7=[];_Ya1._l5=[];_Ya1.Masks=[];for(var i=0;i<_cb1;i++){var _k5=new _im();_Ya1._l5[i]=_k5;_k5.x=0;_k5.y=0;_k5.w=0;_k5.h=0;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=0;_k5.CropHeight=0;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_B5;_k5.texture=_o5[_k5.tp];}return _c5;
}function sprite_merge(_1k,_0j){_1k=yyGetInt32(_1k);var _jk=_m6._n6(_1k);var _kk=_m6._n6(yyGetInt32(_0j));var w=_jk.width;var h=_jk.height;var _hb1=_Oa;for(var i=0;i<_kk._n7;i++){var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);_Va1.width=w;_Va1.height=h;_Oa=_Wa1;_Wa1._Za1(_kk._l5[i].texture,0,0,w,h,0,0,_Va1.width,_Va1.height);_Va1.complete=true;var _k5=new _im();_jk._l5[_jk._l5.length]=_k5;_k5.x=0;_k5.y=0;_k5.w=w;_k5.h=h;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=w;_k5.CropHeight=h;
_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_Bm(_Va1);_k5.texture=_o5[_k5.tp];_k5.texture.complete=true;_jk._n7++;}_Oa=_hb1;return _1k;}function sprite_assign(_oV,_67){_oV=yyGetInt32(_oV);var _jk=_m6._n6(_oV);var _kk=_m6._n6(yyGetInt32(_67));_jk.width=_kk.width;_jk.height=_kk.height;_jk._XH=new _yx();_jk._XH.__i(_kk);_jk.transparent=_kk.transparent;_jk.smooth=_kk.smooth;_jk.preload=_kk.preload;_jk._Ka1=_kk._Ka1;_jk._4b1=_kk._4b1;_jk.xOrigin=_kk.xOrigin;_jk.yOrigin=_kk.yOrigin;_jk._Am=true;_jk._n7=_kk._n7;_jk._bb1=_kk._bb1;
_jk._7b1=_kk._7b1;_jk.playbackspeedtype=_kk.playbackspeedtype;_jk.playbackspeed=_kk.playbackspeed;_jk._8b1=_kk._8b1;_jk._o7=_kk._o7.slice(0);_jk._l5=[];if(_kk.Masks){_jk.Masks=_kk.Masks.slice();}var w=_jk.width;var h=_jk.height;var _hb1=_Oa;for(var i=0;i<_kk._n7;i++){var _Sa1=_kk._l5[i];var _k5=new _im();_jk._l5[i]=_k5;_k5.x=_Sa1.x;_k5.y=_Sa1.y;_k5.w=_Sa1.w;_k5.h=_Sa1.h;_k5.XOffset=_Sa1.XOffset;_k5.YOffset=_Sa1.YOffset;_k5.CropWidth=_Sa1.CropWidth;_k5.CropHeight=_Sa1.CropHeight;_k5.ow=_Sa1.ow;_k5.oh=_Sa1.oh;
_k5.tp=_Sa1.tp;_k5.texture=_Sa1.texture;}_Oa=_hb1;return _oV;}function sprite_collision_mask(_c5,_ib1,_jb1,_kb1,_lb1,_mb1,_nb1,_Xc,_ob1){var _Px=_m6._n6(yyGetInt32(_c5));if(_Px===null){return false;}_Px._4b1=_5b1._pb1;_ib1=yyGetInt32(_ib1);_jb1=yyGetInt32(_jb1);_kb1=yyGetInt32(_kb1);_mb1=yyGetInt32(_mb1);_lb1=yyGetInt32(_lb1);_nb1=yyGetInt32(_nb1);_Xc=yyGetInt32(_Xc);_ob1=yyGetInt32(_ob1);var _XH=new _yx();_XH.left=_kb1;_XH.right=_mb1;_XH.top=_lb1;_XH.bottom=_nb1;if(_Px._ME){if(_jb1!=1&&_jb1!=2){_q5("sprite_collision_mask: bboxmode must be bboxmode_fullimage or bboxmode_manual for Spine sprites");
return;}if(_Xc!=1&&_Xc!=4){_q5("sprite_collision_mask: kind must be bboxkind_rectangular or bboxkind_spine for Spine sprites");return;}_Px._qb1(_jb1);_Px._rb1(_XH);_Px._U6();if(_Xc==1){_Px._4b1=_5b1._6b1;}else if(_Xc==4){_Px._4b1=_5b1._sb1;}_Px._Qa1();}else {if(_Xc==4){_q5("sprite_collision_mask: kind cannot be bboxkind_spine for bitmap sprites");}_Px._o7=[];_Px._8b1=_ib1;_Px._XH=new _yx();if(_Px._n7==0){return;}_Px._qb1(_jb1);_Px._rb1(_XH);if(_Xc!=_Fa1){var _l5=_Px._l5;_Px._o7=[];if(_Px._8b1){for(var i=0;
i<_Px._n7;i++){_Px._o7[i]=_tb1(null,_Px._l5[i],_jb1,_Px._XH,_Xc,_ob1);}}else {_Px._o7[0]=_tb1(_Px._o7[0],_Px._l5[0],_jb1,_Px._XH,_Xc,_ob1);for(var i=1;i<_Px._n7;i++){_Px._o7[0]=_tb1(_Px._o7[0],_Px._l5[i],_jb1,_Px._XH,_Xc,_ob1);}}_Px._7b1=true;}}}function _ub1(_G5,_H5,_vb1,_wb1,length){var _xb1=_G5>>3;var _yb1=_G5&0x7;var _zb1=_vb1*_H5+_xb1;if(_zb1<length)_wb1[_zb1]|=1<<(7-_yb1);}function _tb1(_Ab1,_Bb1,_jb1,_Cb1,_Xc,_ob1){var w=_Bb1.ow;var h=_Bb1.oh;var _Db1=_Cb1.right-_Cb1.left+1;var _vb1=(_Db1+7)>>3;var _Eb1=_Cb1.bottom-_Cb1.top+1;
var _Fb1=_Eb1*_vb1;var _3z=new Uint8Array(_Fb1);for(var _J6=0;_J6<_Fb1;_J6++)_3z[_J6]=false;if(_Xc==_Ea1){var _Gb1=_Hb1(_Bb1);var index=0;var _Ib1=_Gb1.length;for(var _0l=0;_0l<=_Eb1-1;_0l++){for(var _J6=0;_J6<_vb1;_J6++){var _Jb1=0;var _Kb1=4*(((_0l+_Cb1.top)*w)+_Cb1.left+(_J6)*8)+3;if((_Kb1+0<_Ib1)&&(_Gb1[_Kb1+0*4])>_ob1)_Jb1|=(1<<7);if((_Kb1+1<_Ib1)&&(_Gb1[_Kb1+1*4])>_ob1)_Jb1|=(1<<6);if((_Kb1+2<_Ib1)&&(_Gb1[_Kb1+2*4])>_ob1)_Jb1|=(1<<5);if((_Kb1+3<_Ib1)&&(_Gb1[_Kb1+3*4])>_ob1)_Jb1|=(1<<4);if((_Kb1+4<_Ib1)&&(_Gb1[_Kb1+4*4])>_ob1)_Jb1|=(1<<3);
if((_Kb1+5<_Ib1)&&(_Gb1[_Kb1+5*4])>_ob1)_Jb1|=(1<<2);if((_Kb1+6<_Ib1)&&(_Gb1[_Kb1+6*4])>_ob1)_Jb1|=(1<<1);if((_Kb1+7<_Ib1)&&(_Gb1[_Kb1+7*4])>_ob1)_Jb1|=(1<<0);_3z[_J6+(_0l*_vb1)]=_Jb1;}}}else {switch(_Xc){case _Ga1:{var _L7=(_Cb1.left+_Cb1.right)/2;var __b=_L7-_Cb1.left+0.5;var _M7=(_Cb1.top+_Cb1.bottom)/2;var _0c=_M7-_Cb1.top+0.5;for(var y=_Cb1.top;y<=_Cb1.bottom;y++){for(var x=_Cb1.left;x<=_Cb1.right;x++){if((__b>0)&&(_0c>0)){if(sqr((x-_L7)/__b)+sqr((y-_M7)/_0c)<1)_ub1(x-_Cb1.left,y-_Cb1.top,_vb1,_3z,
_Fb1);}}}break;}case _Ha1:{var _L7=(_Cb1.left+_Cb1.right)/2;var __b=_L7-_Cb1.left+0.5;var _M7=(_Cb1.top+_Cb1.bottom)/2;var _0c=_M7-_Cb1.top+0.5;for(var y=_Cb1.top;y<=_Cb1.bottom;y++){for(var x=_Cb1.left;x<=_Cb1.right;x++){if((__b>0)&&(_0c>0)){if(Math.abs((x-_L7)/__b)+Math.abs((y-_M7)/_0c)<1)_ub1(x-_Cb1.left,y-_Cb1.top,_vb1,_3z,_Fb1);}}}break;}}}if(_Ab1!=null){for(var i=0;i<_3z.length;i++){if(_Ab1[i])_3z[i]=true;}}return _3z;}function sprite_set_cache_size(_c5,_Iz){_c5=yyGetInt32(_c5);var _Px=_m6._n6(_c5);if(!_Px){
_q5("Trying to adjust the cache on a non-existant sprite ("+string(_c5)+")");return false;}_Iz=yyGetInt32(_Iz);var _l5=_Px._l5;for(var i=0;i<_Px._n7;i++){if(_l5[i]._d9>_Iz){_l5[i]._b9=[];_l5[i]._c9=0;}_l5[i]._d9=_Iz;}}function sprite_set_cache_size_ext(_c5,_s4,_Iz){_c5=yyGetInt32(_c5);var _Px=_m6._n6(_c5);if(!_Px){_q5("Trying to adjust the cache on a non-existant sprite ("+string(_c5)+")");return false;}_s4=yyGetInt32(_s4);if(_s4<0||_s4>_Px._n7){_q5("Trying to adjust the cache on a non-existant sprite sub image ("+string(_c5)+", "+string(_s4)+")");
return;}_Iz=yyGetInt32(_Iz);var _k5=_Px._l5[_s4];if(_k5._d9>_Iz){_k5._b9=[];_k5._c9=0;}_k5._d9=_Iz;}function sprite_get_tpe(_s4,_Lb1){_s4=_UO(_s4,_d21,_m6.Sprites.length,_m6.Sprites);if(typeof _Lb1!="number"){_q5("sprite_get_tpe() subimg argument should be a Real!");}_Lb1=yyGetInt32(_Lb1);var _Px=_m6._n6(_s4);if(!_Px){_q5("Trying to adjust the cache on a non-existant sprite ("+string(_s4)+")");return false;}if(_Lb1<0||_Lb1>_Px._n7){_q5("Trying to adjust the cache (tpe) on a non-existant sprite sub image ("+string(_s4)+", "+string(_Lb1)+")");
return;}var _l5=_Px._l5;if(_l5[_Lb1]){var _k5=_l5[_Lb1];var _Mb1=new _Nb1();_Mb1.tpe_x=_k5.x;_Mb1.tpe_y=_k5.y;_Mb1.tpe_w=_k5.w;_Mb1.tpe_h=_k5.h;_Mb1.tpe_XOffset=_k5.XOffset;_Mb1.tpe_YOffset=_k5.YOffset;_Mb1.tpe_CropWidth=_k5.CropWidth;_Mb1.tpe_CropHeight=_k5.CropHeight;_Mb1.tpe_ow=_k5.ow;_Mb1.tpe_oh=_k5.oh;_Mb1.tpe_tp=_k5.x;_Mb1._Ob1=_k5._Am;_Mb1.tpe_texture=_k5.texture;return _Mb1;}return null;}function sprite_get_texture(_Pb1,_Qb1){_Pb1=_UO(_Pb1,_d21,_m6.Sprites.length,_m6.Sprites);if(typeof _Qb1!="number"){
_q5("sprite_get_texture() subimg argument should be a Real!");}if(sprite_exists(_Pb1)){var _rH=_m6._n6(_Pb1);var _k5=_rH._Rb1(yyGetInt32(_Qb1));if(_k5){return({_Yc:_k5.texture,_Zc:_k5,toString:()=>"Texture:"+_k5.texture.URL});}}return null;}function sprite_get_uvs(_Pb1,_Qb1){_Pb1=_UO(_Pb1,_d21,_m6.Sprites.length,_m6.Sprites);if(typeof _Qb1!="number"){_q5("sprite_get_uvs() subimg argument should be a Real!");}if(sprite_exists(_Pb1)){var _rH=_m6._n6(_Pb1);var _k5=_rH._Rb1(yyGetInt32(_Qb1));var texture=_k5.texture;
var _gn=1.0/texture.width;var _hn=1.0/texture.height;var _in=[];_in.push(_k5.x*_gn,_k5.y*_hn,(_k5.x+_k5.CropWidth)*_gn,(_k5.y+_k5.CropHeight)*_hn);_in.push(_k5.XOffset,_k5.YOffset,_k5.CropWidth/_k5.ow,_k5.CropHeight/_k5.oh);return _in;}return null;}function sprite_prefetch(_Pb1){var _Px=_m6._n6(yyGetInt32(_Pb1));if(_Px===null){return -1;}for(var i=0;i<_Px._n7;i++){var _l5=_Px._l5;if(_l5[i]){var _k5=_l5[i];if(_k5.texture){if(_k5.texture._z9){_A9(_k5.texture._z9);return 0;}}}}return -1;}function sprite_prefetch_multi(_Sb1){
if(Array.isArray(_Sb1)){for(var _J6=0;_J6<_Sb1.length;_J6++){var _Px=_m6._n6(_Sb1[_J6]);if(_Px===null)continue;for(var i=0;i<_Px._n7;i++){var _l5=_Px._l5;if(_l5[i]){var _k5=_l5[i];if(_k5.texture){if(_k5.texture._z9){_A9(_k5.texture._z9);}}}}}return 0;}else {return -1;}}function sprite_flush(_Pb1){var _Px=_m6._n6(yyGetInt32(_Pb1));if(_Px===null){return -1;}for(var i=0;i<_Px._n7;i++){var _l5=_Px._l5;if(_l5[i]){var _k5=_l5[i];if(_k5.texture){if(_k5.texture._z9){_on(_k5.texture._z9);return 0;}}}}return -1;}function sprite_flush_multi(_Sb1){
if(Array.isArray(_Sb1)){for(var _J6=0;_J6<_Sb1.length;_J6++){var _Px=_m6._n6(_Sb1[_J6]);if(_Px===null)continue;for(var i=0;i<_Px._n7;i++){var _l5=_Px._l5;if(_l5[i]){var _k5=_l5[i];if(_k5.texture){if(_k5.texture._z9){_on(_k5.texture._z9);}}}}}return 0;}else {return -1;}}function sprite_set_speed(_Pb1,_xI,_wd){var _Px=_m6._n6(yyGetInt32(_Pb1));if(_Px!=null){_Px.playbackspeed=yyGetReal(_xI);_Px.playbackspeedtype=yyGetInt32(_wd);if(_Px.sequence!=null){_Px.sequence._Tb1=_Px.playbackspeed;_Px.sequence._Ub1=_Px.playbackspeedtype;
}}}function sprite_get_speed_type(_Pb1){var _Px=_m6._n6(yyGetInt32(_Pb1));if(_Px!=null){if(_Px.sequence!=null){return _Px.sequence._Ub1;}else {return _Px.playbackspeedtype;}}else return -1;}function sprite_get_speed(_Pb1){var _Px=_m6._n6(yyGetInt32(_Pb1));if(_Px!=null){if(_Px.sequence!=null){return _Px.sequence._Tb1;}else {return _Px.playbackspeed;}}else return -1;}function sprite_get_nineslice(_Pb1){var _Px=_m6._n6(yyGetInt32(_Pb1));if(_Px!=null){if(_Px._Vb1!=null){return _Px._Vb1;}else {_Px._Vb1=new _Wb1(null);return _Px._Vb1;
}}else return null;}function sprite_set_nineslice(_Pb1,_Xb1){if((typeof(_Xb1)!=="object")||(_Xb1==null)||!(_Xb1 instanceof _Wb1)){_q5("sprite_set_nineslice() - specified nineslice is not valid");return;}var _Px=_m6._n6(yyGetInt32(_Pb1));if(_Px!=null){_Px._Vb1=_Xb1;_Px._Vb1._b9._Yb1=true;}else return null;}function sprite_nineslice_create(){return new _Wb1(null);}function sprite_get_info(_Pb1){var _95=undefined;var _Px=_m6._n6(yyGetInt32(_Pb1));if(_Px!=null){var type=(_Px._LE!=undefined)?1:(_Px._ME!=undefined)?2:0;
_95=new _Lz();variable_struct_set(_95,"width",_Px.width);variable_struct_set(_95,"height",_Px.height);variable_struct_set(_95,"xoffset",_Px.xOrigin);variable_struct_set(_95,"yoffset",_Px.yOrigin);variable_struct_set(_95,"transparent",_Px.transparent);variable_struct_set(_95,"smooth",_Px.smooth);variable_struct_set(_95,"preload",_Px.preload);variable_struct_set(_95,"type",type);variable_struct_set(_95,"bbox_left",_Px._XH.left);variable_struct_set(_95,"bbox_right",_Px._XH.right);variable_struct_set(_95,
"bbox_top",_Px._XH.top);variable_struct_set(_95,"bbox_bottom",_Px._XH.bottom);variable_struct_set(_95,"name",_Px.pName);variable_struct_set(_95,"num_subimages",_Px._n7);variable_struct_set(_95,"frame_speed",(_Px.playbackspeed!=undefined)?_Px.playbackspeed:-1);variable_struct_set(_95,"frame_type",(_Px.playbackspeedtype!=undefined)?_Px.playbackspeedtype:-1);variable_struct_set(_95,"use_mask",_Px._4b1===_5b1._pb1);variable_struct_set(_95,"num_masks",_Px._o7.length);switch(type){case 0:{var _Zb1=[];for(var _c7=0;
_c7<_Px._l5.length;++_c7){var _k5=_Px._l5[_c7];var _ta=new _Lz();variable_struct_set(_ta,"x",_k5.x);variable_struct_set(_ta,"y",_k5.y);variable_struct_set(_ta,"w",_k5.w);variable_struct_set(_ta,"h",_k5.h);variable_struct_set(_ta,"x_offset",_k5.XOffset);variable_struct_set(_ta,"y_offset",_k5.YOffset);variable_struct_set(_ta,"crop_width",_k5.CropWidth);variable_struct_set(_ta,"crop_height",_k5.CropHeight);variable_struct_set(_ta,"original_width",_k5.ow);variable_struct_set(_ta,"original_height",_k5.oh);
variable_struct_set(_ta,"texture",_k5.tp);_Zb1.push(_ta);}variable_struct_set(_95,"frames",_Zb1);}break;case 1:break;case 2:if(_Px._ME!=undefined){var __b1=_Px._ME;variable_struct_set(_95,"num_atlas",__b1._Y8._T5.length);var _0c1=[];for(var _c7=0;_c7<_95.gmlnum_atlas;++_c7){_0c1.push(__b1._Y8._T5[_c7].texture._t5);}variable_struct_set(_95,"atlas_textures",_0c1);variable_struct_set(_95,"premultiplied",__b1.__8);var _1c1=__b1._N3;var _2c1=[];for(var _c7=0;_c7<_1c1.animations.length;++_c7){_2c1.push(_1c1.animations[_c7].name);
}variable_struct_set(_95,"animation_names",_2c1);var _3c1=[];for(var _c7=0;_c7<_1c1.skins.length;++_c7){_3c1.push(_1c1.skins[_c7].name);}variable_struct_set(_95,"skin_names",_3c1);var _4c1=[];for(var _c7=0;_c7<_1c1.bones.length;++_c7){var bone=_1c1.bones[_c7];var _5c1=new _Lz();variable_struct_set(_5c1,"parent",(bone.parent!=undefined)?bone.parent.name:undefined);variable_struct_set(_5c1,"name",bone.name);variable_struct_set(_5c1,"index",bone.index);variable_struct_set(_5c1,"length",bone.length);variable_struct_set(_5c1,
"x",bone.x);variable_struct_set(_5c1,"y",bone.y);variable_struct_set(_5c1,"rotation",bone.rotation);variable_struct_set(_5c1,"scale_x",bone.scaleX);variable_struct_set(_5c1,"scale_y",bone.scaleY);variable_struct_set(_5c1,"shear_x",bone.shearX);variable_struct_set(_5c1,"shear_y",bone.shearY);variable_struct_set(_5c1,"transform_mode",bone._6c1);_4c1.push(_5c1);}variable_struct_set(_95,"bones",_4c1);var _7c1=[];for(var _c7=0;_c7<_1c1.slots.length;++_c7){var slot=_1c1.slots[_c7];var _8c1=new _Lz();variable_struct_set(_8c1,
"name",slot.name);variable_struct_set(_8c1,"index",slot.index);variable_struct_set(_8c1,"bone",(slot._E8!=undefined)?slot._E8.name:"(none)");variable_struct_set(_8c1,"attachment",slot._oc);variable_struct_set(_8c1,"red",slot.color._Y4);variable_struct_set(_8c1,"green",slot.color._Z4);variable_struct_set(_8c1,"blue",slot.color.__4);variable_struct_set(_8c1,"alpha",slot.color._05);variable_struct_set(_8c1,"blend_mode",slot._lb);if(_8c1._ib!=undefined){variable_struct_set(_8c1,"dark_red",slot._ib._Y4);
variable_struct_set(_8c1,"dark_green",slot._ib._Z4);variable_struct_set(_8c1,"dark_blue",slot._ib.__4);variable_struct_set(_8c1,"dark_alpha",slot._ib._05);}var _9c1=_Px._ME._pc(slot.name);variable_struct_set(_8c1,"attachments",_9c1);_7c1.push(_8c1);}variable_struct_set(_95,"slots",_7c1);}break;}variable_struct_set(_95,"nineslice",(_Px._Vb1!=undefined)?_Px._Vb1:undefined);if(_Px.sequence!=undefined){var _ac1=[];var _bc1=_Px.sequence._cc1;if(_bc1!=undefined){for(var _c7=0;_c7<_bc1._JO;++_c7){var _TG=_bc1._NO[_c7];
var time=_TG._OO;for(var _0l in _TG._Jl){var _dc1=_TG._Jl[_0l];if(_dc1._ec1!=undefined){for(var e=0;e<_dc1._ec1.length;++e){var _Vk=new _Lz();variable_struct_set(_Vk,"frame",time);variable_struct_set(_Vk,"message",_dc1._ec1[e]);_ac1.push(_Vk);}}}}}variable_struct_set(_95,"messages",_ac1);var _fc1=[];var _HO=_Px.sequence._rN[0];if(_HO!=undefined){var _bc1=_HO._uN;for(var _c7=0;_c7<_bc1._JO;++_c7){var _TG=_bc1._NO[_c7];var time=_TG._OO;var _Vk=new _Lz();variable_struct_set(_Vk,"frame",time);variable_struct_set(_Vk,
"duration",_TG._wN);for(var _0l in _TG._Jl){var _dc1=_TG._Jl[_0l];variable_struct_set(_Vk,"image_index",_dc1._tK);break;}_fc1.push(_Vk);}}variable_struct_set(_95,"frame_info",_fc1);}}return _95;}function ansi_char(_k4){return String.fromCharCode(yyGetInt32(_k4)&0xff);}function chr(_k4){_k4=yyGetInt32(_k4);if(_k4>=0x10000){var _gc1=_k4;_gc1-=0x10000;var _hc1=(((_gc1>>10)&0x3FF)+0xD800);var _ic1=(_gc1&0x3FF)+0xDC00;var result=String.fromCharCode(_hc1,_ic1);return result;}else {return String.fromCharCode(_k4);}return 0;
}function ord(_Uw){if(!_Uw||_Uw=="")return 0;_Uw=yyGetString(_Uw);var _gc1=_Uw.charCodeAt(0);var _jc1,_kc1;if(0xD800<=_gc1&&_gc1<=0xDBFF){_jc1=_gc1;_kc1=_Uw.charCodeAt(1);return((_jc1-0xD800)*0x400)+(_kc1-0xDC00)+0x10000;}return _gc1;}function real(_8d){if(_8d==undefined){_q5("real() argument is undefined");}else if(_8d==null){_q5("real() argument is unset");}else if(typeof(_8d)=="boolean"){if(_8d)return 1;else return 0;}else if(typeof(_8d)=="number"){return _8d;}else if(typeof(_8d)=="string"){var _lc1;if(_8d.startsWith('0x')){
_lc1=parseInt(_8d);}else {_lc1=parseFloat(_8d);}if(isNaN(_lc1)){_q5("unable to convert string "+_8d+" to real");}else {return _lc1;}}else if(_8d instanceof _Zn){return _8d.value;}else if(_8d instanceof Long){return _8d._9R();}else if(_8d instanceof Array){_q5("real() argument is array");}else if(_8d instanceof ArrayBuffer){_q5("real() argument is ptr")}return parseFloat(_8d);}function bool(_8d){if(_8d==undefined){return false;}else if(_8d==null){_q5("bool() argument is unset");}else if(typeof(_8d)=="boolean"){return _8d;
}else if(typeof(_8d)=="number"){return _8d>0.5;}else if(typeof(_8d)=="string"){if(_8d==="true"){return true;}else if(_8d==="false"){return false;}var _lc1=parseFloat(_8d);if(isNaN(_lc1)){_q5("unable to convert string "+_8d+" to bool");}else {return _lc1>0.5;}}else if(_8d instanceof Long){return _8d._9R()>0.5;}else if(_8d instanceof Array){_q5("bool() argument is array");}else {return _8d!=g_pBuiltIn.pointer_null;}}var _mc1=new RegExp('{([0-9]+)}','g');function _Nw(_Uw,_Mw){return _Uw.replaceAll(_mc1,function(match,_t11){
var _s4=parseInt(_t11);if(_s4<0||_s4>=_Mw.length)return match;return yyGetString(_Mw[_s4]);})}function string(_ck){if(arguments.length==1){return yyGetString(_ck);}if(typeof(_ck)!="string"){_q5("string() trying to use string template but argument0 is not a string");}var _Mw=[];for(var _c7=1;_c7<arguments.length;++_c7){_Mw.push(arguments[_c7]);}return _Nw(_ck,_Mw);}function string_ext(_Uw,_Mw){if(typeof(_Uw)!="string"){_q5("string_ext() argument0 is not a string");}if(!(_Mw instanceof Array)){_q5("string_ext() argument1 is not an array");
}return _Nw(_Uw,_Mw);}function string_format(_k4,_nc1,_oc1){if(_k4==undefined){return "undefined";}_k4=yyGetReal(_k4);_oc1=yyGetInt32(_oc1);var _pc1=_k4.toFixed(_oc1).toString().split(".");var _xl;for(var i=0;i<_pc1.length;i++){switch(i){case 0:while(_pc1[i].length<yyGetInt32(_nc1)){_pc1[i]=" "+_pc1[i];}_xl=_pc1[i];break;case 1:while(_pc1[i].length<_oc1){_pc1[i]=_pc1[i]+"0";}_xl=_xl+"."+_pc1[i];break;}}return _xl;}function string_length(_Uw){if(!_Uw){return 0;}_Uw=yyGetString(_Uw);var _qc1=0;for(var i=0;i<_Uw.length;
++i){++_qc1;var _rc1=_Uw.charCodeAt(i);if(0xD800<=_rc1&&_rc1<=0xDBFF){++i;}}return _qc1;}function string_byte_length(_Uw){if(!_Uw){return 0;}_Uw=yyGetString(_Uw);var i=0,_Ai=_Uw.length;var out=0;while(i<_Ai){var c=_Uw.charCodeAt(i++);if(c>=0xD800&&c<=0xD8FF){i+=1;out+=4;}else if(c<=0x7F){out+=1;}else if(c<=0x7FF){out+=2;}else if(c<=0xFFFF){out+=3;}else out+=4;}return out;}function _sc1(_xl,_tc1){var _uc1=0;var _Ay=_tc1-1;while(_Ay>0){var _vc1=_xl.charCodeAt(_Ay);if(0xDC00<=_vc1&&_vc1<=0xDFFF){--_uc1;--_Ay;}--_Ay;
}return _tc1+_uc1+1;}function _wc1(_Uw,_xc1){_xc1--;var _yc1=_xc1;var _zc1=0;while(_zc1<_xc1){var _Ac1=_Uw.charCodeAt(_zc1);if(0xD800<=_Ac1&&_Ac1<=0xDFFF){_yc1++;}_zc1++;}return _yc1;}function string_pos(_Bc1,_Uw){var _Cc1=yyGetString(_Bc1);var _Dc1=yyGetString(_Uw);var _Ec1=_Dc1.indexOf(_Cc1);return _sc1(_Dc1,_Ec1);}function string_pos_ext(_Bc1,_Uw,_Fc1){var _Cc1=yyGetString(_Bc1);var _Dc1=yyGetString(_Uw);var _Gc1=_wc1(_Dc1,yyGetInt32(_Fc1));var _Ec1=_Dc1.indexOf(_Cc1,_Gc1);return _sc1(_Dc1,_Ec1);}function string_last_pos(_Bc1,
_Uw){var _Cc1=yyGetString(_Bc1);var _Dc1=yyGetString(_Uw);var _Ec1=_Dc1.lastIndexOf(_Cc1);return _sc1(_Dc1,_Ec1);}function string_last_pos_ext(_Bc1,_Uw,_Fc1){if(_Fc1<=0){return 0;}var _Cc1=yyGetString(_Bc1);var _Dc1=yyGetString(_Uw);var _Gc1=_wc1(_Dc1,yyGetInt32(_Fc1));var _Ec1=_Dc1.lastIndexOf(_Cc1,_Gc1);return _sc1(_Dc1,_Ec1);}function string_copy(_Uw,_s4,_te){_Uw=yyGetString(_Uw);_s4=yyGetInt32(_s4);_te=yyGetInt32(_te);if(_s4<1){_s4=1;}_s4--;var _yc1=_s4;var _zc1=0;while(_zc1<_s4){var _Ac1=_Uw.charCodeAt(_zc1);
if(0xD800<=_Ac1&&_Ac1<=0xDFFF){_yc1++;}_zc1++;}var _Hc1=_te;_zc1=0;while(_zc1<_te){var _Ac1=_Uw.charCodeAt(_yc1+_zc1);if(0xD800<=_Ac1&&_Ac1<=0xDFFF){_Hc1++;}_zc1++;}return _Uw.substring(_yc1,_yc1+_Hc1);}function string_char_at(_Uw,_s4){var _Dc1=yyGetString(_Uw);var _Ic1=yyGetInt32(_s4);--_Ic1;if((_Dc1.length==0)||(string_length(_Dc1)<=_Ic1)){return "";}var _kT=0;var _Jc1=_Ic1;if(_Jc1<0){_Jc1=0;}var _Ai=_Dc1.length;while((_Jc1>0)&&(_kT<_Ai)){var _gc1=_Dc1.charCodeAt(_kT);if(0xD800<=_gc1&&_gc1<=0xDFFF){++_kT;
}++_kT;--_Jc1;}_Jc1=_kT;var _Kc1=_Dc1.charCodeAt(_Jc1);if(0xD800<=_Kc1&&_Kc1<=0xDFFF){var _kc1=_Dc1.charCodeAt(_Jc1+1);return String.fromCharCode(_Kc1,_kc1);}return String.fromCharCode(_Kc1);}function string_ord_at(_Uw,_s4){var _Dc1=yyGetString(_Uw);var _Ic1=yyGetInt32(_s4);--_Ic1;if((_Dc1.length==0)||(string_length(_Dc1)<=_Ic1)){return -1;}var _kT=0;var _Jc1=_Ic1;if(_Jc1<0){_Jc1=0;}var _Ai=_Dc1.length;while((_Jc1>0)&&(_kT<_Ai)){var _gc1=_Dc1.charCodeAt(_kT);if(0xD800<=_gc1&&_gc1<=0xDFFF){++_kT;}++_kT;--_Jc1;
}_Jc1=_kT;var _Kc1=_Dc1.charCodeAt(_Jc1);if(0xD800<=_Kc1&&_Kc1<=0xDFFF){var _kc1=_Dc1.charCodeAt(_Jc1+1);return((_Kc1-0xD800)*0x400)+(_kc1-0xDC00)+0x10000;}return _Kc1;}function _Lc1(_Uw){var _Mc1=[];for(var i=0;i<_Uw.length;i++){var _Nc1=_Uw.charCodeAt(i);if(_Nc1<0x80){_Mc1.push(_Nc1);}else if(_Nc1<0x800){_Mc1.push(0xc0|(_Nc1>>6),0x80|(_Nc1&0x3f));}else if(_Nc1<0xd800||_Nc1>=0xe000){_Mc1.push(0xe0|(_Nc1>>12),0x80|((_Nc1>>6)&0x3f),0x80|(_Nc1&0x3f));}else {i++;_Nc1=((_Nc1&0x3ff)<<10)|(_Uw.charCodeAt(i)&0x3ff);
_Mc1.push(0xf0|(_Nc1>>18),0x80|((_Nc1>>12)&0x3f),0x80|((_Nc1>>6)&0x3f),0x80|(_Nc1&0x3f));}}return _Mc1;}function _Oc1(data){var _xl='';var i=0;for(i=0;i<data.length;i++){var value=data[i];if(value<0x80){_xl+=String.fromCharCode(value);}else if(value>0xBF&&value<0xE0){_xl+=String.fromCharCode((value&0x1F)<<6|data[i+1]&0x3F);i+=1;}else if(value>0xDF&&value<0xF0){_xl+=String.fromCharCode((value&0x0F)<<12|(data[i+1]&0x3F)<<6|data[i+2]&0x3F);i+=2;}else {var _Nc1=((value&0x07)<<18|(data[i+1]&0x3F)<<12|(data[i+2]&0x3F)<<6|data[i+3]&0x3F)-0x010000;
_xl+=String.fromCharCode(_Nc1>>10|0xD800,_Nc1&0x03FF|0xDC00);i+=3;}}return _xl;}function string_byte_at(_Uw,_s4){var _Dc1=yyGetString(_Uw);var _Ic1=yyGetInt32(_s4);var _Dw=_Lc1(_Dc1);var index=_Ic1-1;if(index<0){index=0;}if(index>=_Dw.length){index=_Dw.length-1;}return _Dw[index];}function string_set_byte_at(_Uw,_s4,_jy){var _Dc1=yyGetString(_Uw);var _Pc1=yyGetInt32(_jy);var _ww=_Lc1(_Dc1);var index=yyGetInt32(_s4)-1;if((index>=0)&&(index<_ww.length)){_ww[index]=_Pc1&0xff;return _Oc1(_ww);}else {_q5("string_set_byte_at : Index beyond end of string.");
}return _Dc1;}function string_delete(_Uw,_s4,_te){var _Dc1=yyGetString(_Uw);var _Ic1=yyGetInt32(_s4);var _Qc1=yyGetInt32(_te);if(_Qc1<=0||_Ic1<=0)return _Dc1;var _kT=0;var _Jc1=_Ic1-1;var _Ai=_Dc1.length;while((_Jc1>0)&&(_kT<_Ai)){var _gc1=_Dc1.charCodeAt(_kT);if(0xD800<=_gc1&&_gc1<=0xDFFF){++_kT;}++_kT;--_Jc1;}_Jc1=_kT;_kT=_Qc1;_Rc1=_Jc1;while(_kT>0){var _gc1=_Dc1.charCodeAt(_Jc1);if(0xD800<=_gc1&&_gc1<=0xDFFF){++_Rc1;}++_Rc1;--_kT;}return(_Dc1.substring(0,_Jc1)+_Dc1.substring(_Rc1,_Dc1.length));}function string_insert(_Bc1,
_Uw,_s4){var _Cc1=yyGetString(_Bc1);var _Dc1=yyGetString(_Uw);var _Ic1=yyGetInt32(_s4);var _kT=0;var _Jc1=_Ic1-1;var _Ai=_Dc1.length;while((_Jc1>0)&&(_kT<_Ai)){var _gc1=_Dc1.charCodeAt(_kT);if(0xD800<=_gc1&&_gc1<=0xDFFF){++_kT;}++_kT;--_Jc1;}_Jc1=_kT;return(_Dc1.substring(0,_Jc1)+_Cc1+_Dc1.substring(_Jc1,_Uw.length));}function string_replace(_Uw,_Bc1,_Sc1){var _Dc1=yyGetString(_Uw);var _Cc1=yyGetString(_Bc1);var _Tc1=yyGetString(_Sc1);var index=_Dc1.indexOf(_Cc1);if(index===-1||_Cc1.length===0){return _Dc1;}
return _Dc1.replace(_Cc1,_Tc1);}function string_replace_all(_Uw,_Bc1,_Sc1){var _Dc1=yyGetString(_Uw);if(_Dc1.length===0)return "";var _Cc1=yyGetString(_Bc1);if(_Cc1.length===0)return _Dc1;var _Tc1=yyGetString(_Sc1);var _Uc1=_Cc1.length;var _Vc1="";var i=_Dc1.indexOf(_Cc1);var _0l=0;while(i>=0){_Vc1+=_Dc1.substring(_0l,i)+_Tc1;_0l=i+_Uc1;i=_Dc1.indexOf(_Cc1,_0l);}return _0l>0?_Vc1+_Dc1.substring(_0l):_Dc1;}function string_count(_Bc1,_Uw){_Bc1=yyGetString(_Bc1);_Uw=yyGetString(_Uw);var _c9=0;if(_Bc1.length>0){var index=0;
while(index!=-1){index=_Uw.indexOf(_Bc1,index);if(index>-1){_c9+=1;index++;}}}return _c9;}function string_hash_to_newline(_Uw){let _Wc1="",_it=0,i=0,c,_Xc1;for(;i<_Uw.length;i++){c=_Uw[i];if(c=="#"){if(_Xc1!="\\"){_Wc1+=_Uw.substring(_it,i)+"\r\n";}else {_Wc1+=_Uw.substring(_it,i-1)+"#";}_it=i+1;}_Xc1=c;}return _Wc1+_Uw.substring(_it,i);}function string_lower(_Uw){return yyGetString(_Uw).toLowerCase();}function string_upper(_Uw){return yyGetString(_Uw).toUpperCase();}function string_repeat(_Uw,_te){var _Dc1=yyGetString(_Uw);
_te=yyGetInt32(_te);var __h="";for(var i=0;i<_te;i++){__h=__h+_Dc1;}return __h;}function string_letters(_Uw){var __h="";var _Dc1=yyGetString(_Uw);for(var i=0;i<_Dc1.length;i++){var c=_Dc1[i];if((c>='A'&&c<='Z')||(c>='a'&&c<='z')){__h=__h+c;}}return __h;}function string_digits(_Uw){var _Dc1=yyGetString(_Uw);var __h="";for(var i=0;i<_Dc1.length;i++){var c=_Dc1[i];if(c>='0'&&c<='9'){__h=__h+c;}}return __h;}function string_lettersdigits(_Uw){var _Dc1=yyGetString(_Uw);var __h="";for(var i=0;i<_Dc1.length;i++){var c=_Dc1[i];
if((c>='A'&&c<='Z')||(c>='a'&&c<='z')||(c>='0'&&c<='9')){__h=__h+c;}}return __h;}const _Yc1=new RegExp("[\\/\\-\\\\^$*+?.()|[\\]{}]","g");function _Zc1(string){return string.replace(_Yc1,'\\$&');}function string_trim_start(_Uw,__c1){_Uw=yyGetString(_Uw);if(arguments.length==1)return _Uw.trimStart();if(!(__c1 instanceof Array)){_q5("string_trim_start() argument1 is not an array");}__c1=__c1.map((_Je)=>{if(typeof(_Je)!="string"){_q5("string_trim_start() argument1 should be an array of string");}return _Zc1(yyGetString(_Je));
}).filter(_0d1=>_0d1).join("|");let _1d1=new RegExp("^(?:"+__c1+")*");return _Uw.replace(_1d1,"");}function string_trim_end(_Uw,__c1){_Uw=yyGetString(_Uw);if(arguments.length==1)return _Uw.trimEnd();if(!(__c1 instanceof Array)){_q5("string_trim_end() argument1 is not an array");}__c1=__c1.map((_Je)=>{if(typeof(_Je)!="string"){_q5("string_trim_end() argument1 should be an array of string");}return _Zc1(yyGetString(_Je));}).filter(_0d1=>_0d1).join("|");let _1d1=new RegExp("(?:"+__c1+")*$",'g');return _Uw.replace(_1d1,
"");}function string_trim(_Uw,__c1){_Uw=yyGetString(_Uw);if(arguments.length==1)return _Uw.trim();if(!(__c1 instanceof Array)){_q5("string_trim() argument1 is not an array");}__c1=__c1.map((_Je)=>{if(typeof(_Je)!="string"){_q5("string_trim() argument1 should be an array of string");}return _Zc1(yyGetString(_Je));}).filter(_0d1=>_0d1).join("|");let _2d1=new RegExp("^(?:"+__c1+")*");let _3d1=new RegExp("(?:"+__c1+")*$");return _Uw.replace(_2d1,"").replace(_3d1,"");}function string_starts_with(_Uw,_k4){_Uw=yyGetString(_Uw);
_k4=yyGetString(_k4);return _Uw.startsWith(_k4);}function string_ends_with(_Uw,_k4){_Uw=yyGetString(_Uw);_k4=yyGetString(_k4);return _Uw.endsWith(_k4);}function _4d1(input,_5d1,_6d1){const output=[];let _7d1=0;while(_6d1--){const lastIndex=_5d1.lastIndex;const search=_5d1.exec(input);if(search===null){break;}_7d1=_5d1.lastIndex;output.push(input.slice(lastIndex,search.index));}output.push(input.slice(_7d1));return output;}function string_split(_Uw,_8d1,_9d1,_ad1){_Uw=yyGetString(_Uw);_8d1=yyGetString(_8d1);
if(_8d1==""){return [_bd1];}_9d1=_9d1!=undefined?yyGetReal(_9d1):false;_ad1=arguments.length>3?yyGetReal(_ad1):_Uw.length;_8d1=_Zc1(_8d1);var _1d1=new RegExp(_8d1,"g");var _bd1=_4d1(_Uw,_1d1,_ad1);if(_9d1){_bd1=_bd1.filter(_0d1=>_0d1);}return _bd1;}function string_split_ext(_Uw,_cd1,_9d1,_ad1){_Uw=yyGetString(_Uw);if(!(_cd1 instanceof Array)){_q5("string_split_ext() argument1 is not an array");}_9d1=_9d1!=undefined?yyGetReal(_9d1):false;_ad1=arguments.length>3?yyGetReal(_ad1):_Uw.length;_cd1=_cd1.map((_Je)=>_Zc1(yyGetString(_Je))).filter(_0d1=>_0d1).join("|");
var _1d1=new RegExp(_cd1,"g");var _bd1=_4d1(_Uw,_1d1,_ad1);if(_9d1){_bd1=_bd1.filter(_0d1=>_0d1);}return _bd1.map((_Je)=>_Je.replaceAll("\\|","|"));}function _dd1(_8d1,_Mw){return _Mw.join(_8d1);}function string_join(_8d1){_8d1=yyGetString(_8d1);var _Mw=[];for(var _c7=1;_c7<arguments.length;++_c7){_Mw.push(yyGetString(arguments[_c7]));}return _dd1(_8d1,_Mw);}function string_join_ext(_8d1,_Mw,_ne,_o91){_8d1=yyGetString(_8d1);if(!(_Mw instanceof Array)){_q5("string_join_ext() argument1 is not an array");}_ne=_ne!=undefined?yyGetReal(_ne):0;
_o91=arguments.length>3?yyGetReal(_o91):_Mw.length;var _ed1=_fd1(_Mw.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _id1=[];while(_gd1>0){_id1.push(yyGetString(_Mw[_ne]));_ne+=_hd1;_gd1--;}return _dd1(_8d1,_id1);}function string_concat(){var _Mw=[];for(var _c7=0;_c7<arguments.length;++_c7){_Mw.push(yyGetString(arguments[_c7]));}return _dd1("",_Mw);}function string_concat_ext(_Mw,_ne,_o91){if(!(_Mw instanceof Array)){_q5("string_concat_ext() argument1 is not an array");}_ne=_ne!=undefined?yyGetReal(_ne):0;
_o91=arguments.length>2?yyGetReal(_o91):_Mw.length;var _ed1=_fd1(_Mw.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _id1=[];while(_gd1>0){_id1.push(yyGetString(_Mw[_ne]));_ne+=_hd1;_gd1--;}return _dd1("",_id1);}function _jd1(_kd1){return(_kd1>=0xD800&&_kd1<=0xD8FF)?2:1;}function string_foreach(_Uw,_ak,_tk,_o91){_Uw=yyGetString(_Uw);_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_tk=_tk!=undefined?yyGetReal(_tk):1;_o91=arguments.length>3?yyGetReal(_o91):_Uw.length;var _ne=(_tk<0?_tk:(_tk>0?_tk-1:0));
var _ed1=_fd1(string_length(_Uw),_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];_tk=_ne+1;var _ld1=0;if(_hd1>0){for(var i=0;i<_ne;i++){var _md1=_Uw.charCodeAt(_ld1);_ld1+=_jd1(_md1);}for(var i=0;i<_gd1;i++){var _md1=_Uw.charCodeAt(_ld1);var _id=_jd1(_md1);var _nd1=_id==1?_Uw[_ld1]:String.fromCharCode(_md1,_Uw.charCodeAt(_ld1+1));_ak(_ck,_ck,_nd1,_tk);_tk++;_ld1+=_id;}}else {var _od1=[];var _pd1=0;for(var i=0;i<_ne;i++){var _md1=_Uw.charCodeAt(_ld1);var _id=_jd1(_md1);_ld1+=_id;_od1[(_pd1++%_gd1)]=_id;}
for(var i=0;i<_gd1;i++){var _md1=_Uw.charCodeAt(_ld1);var _id=_jd1(_md1);var _nd1=_id==1?_Uw[_ld1]:String.fromCharCode(_md1,_Uw.charCodeAt(_ld1+1));_ak(_ck,_ck,_nd1,_tk);_tk--;_ld1-=_od1[(--_pd1%_gd1)];}}}var _qd1=[];var _rd1=true;function surface_resize(_yg,_Xi,_Yi){_yg=yyGetInt32(_yg);_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);if(_yg==_sd1){if(_td1!=_ud1||_vd1!=_vd1){_wd1=true;_ud1=_Xi;_vd1=_Yi;}return 1;}if(!surface_exists(_yg)){_q5("Surface does not exist");return 0;}if(_xd1(_yg)){_ai("Error: Surface in use via surface_set_target(). It can not be resized until it has been removed from the surface stack.");
return;}var _nm=_dm._n6(_yg);if(_nm._fd!=_Xi||_nm._gd!=_Yi){var _gh=_cm;if(_09){_gh=_nm.texture._z9._gh;}surface_create(_Xi,_Yi,_gh,_yg);}return 0;}function surface_depth_disable(_yd1){if(yyGetBool(_yd1)){_rd1=false;}else {_rd1=true;}}function surface_get_depth_disable(){return _rd1?false:true;}function surface_has_depth(_yg){_yg=yyGetInt32(_yg);if(!surface_exists(_yg)){_q5("surface_has_depth() - surface does not exist!");return false;}if(_09){var _nm=_dm._n6(_yg);if(!_zd1){return(_nm._Ad1._Bd1!=null);}return(_nm._Cd1!=null&&_nm._Cd1._z9 instanceof _Dd1);
}return false;}var surface_create=_Ed1;function _Ed1(_Xi,_Yi,_y91,_Fd1){_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);if(_Xi<=0||_Yi<=0){_q5("create_surface : Trying to create a surface with size equal to or less than zero.");}var _nm=document.createElement(_Zw);_nm._fd=_nm.width=_Xi;_nm._gd=_nm.height=_Yi;_nm.complete=true;_nm._Gd1=false;_nm.name="";_nm._Oa=_nm.getContext('2d');_Xa1(_nm._Oa);var _k5=new _im();_nm._Hd1=_k5;_k5.x=0;_k5.y=0;_k5.w=_Xi;_k5.h=_Yi;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;
_k5.ow=_k5.w;_k5.oh=_k5.h;if(_Fd1!=undefined){_dm.Set(_Fd1,_nm);_k5.tp=_Fd1;}else {_k5.tp=_dm._Vf(_nm);}_k5.texture=_nm;_k5._b9=[];_k5._c9=0;_k5._d9=4;_k5._Id1=0;_k5._cn=null;_k5._Va1=_nm;return _k5.tp;}function surface_create_ext(_w4,_Xi,_Yi,_y91){_w4=yyGetString(_w4);_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);var _nm=document.getElementById(_w4);if(!_nm){_Bw("Can not find pre-created canvas element: "+_w4);return surface_create(_Xi,_Yi,_y91);}_nm.name=_w4;_nm._fd=_nm.width=_Xi;_nm._gd=_nm.height=_Yi;_nm.complete=true;
_nm._Gd1=true;_nm._Oa=_nm.getContext('2d');_Xa1(_nm._Oa);_nm.onmousemove=_Cn;_nm.onmousedown=_Jd1;_nm.onmouseup=_Kd1;var _k5=new _im();_nm._Hd1=_k5;_k5.x=0;_k5.y=0;_k5.w=_Xi;_k5.h=_Yi;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_dm._Vf(_nm);_k5.texture=_nm;_k5._b9=[];_k5._c9=0;_k5._d9=4;_k5._Id1=0;_k5._cn=null;_k5._Va1=_nm;return _k5.tp;}var surface_free=_Ld1;function _Ld1(_yg){_yg=yyGetInt32(_yg);if(_yg<0){return;}if(!surface_exists(_yg)){return 0;
}if(_xd1(_yg)){_ai("Error: Surface in use via surface_set_target(). It can not be freed until it has been removed from the surface stack.");return;}_dm._3j(_yg);}function surface_exists(_yg){if(_dm._n6(yyGetInt32(_yg))!=null)return 1;else return 0;}function surface_get_width(_yg){if(_yg==_sd1){return _td1;}var _nm=_dm._n6(yyGetInt32(_yg));if(_nm!=null){return _nm._fd;}return 0;}function surface_get_height(_yg){if(_yg==_sd1){return _Md1;}var _nm=_dm._n6(yyGetInt32(_yg));if(_nm!=null){return _nm._gd;}return 0;}
function surface_get_texture(_yg){var _nm=_dm._n6(yyGetInt32(_yg));if(_nm!=null){return({_Yc:_nm.texture,_Zc:_nm._Hd1});}return -1;}function surface_get_texture_depth(_yg){var _nm=_dm._n6(yyGetInt32(_yg));if(_nm!=null&&_zd1){return({_Yc:_nm._Cd1,_Zc:_nm._Hd1});}return -1;}function _xd1(_yg){_yg=yyGetInt32(_yg);if(_Nd1==_yg||_Od1==_yg){return true;}for(var i=_Pd1.length-1;i>=0;--i){if(_Pd1[i]==_yg||_Qd1[i]==_yg){return true;}}return false;}var _Rd1=_Sd1;function _Sd1(_yg,_Td1){_yg=yyGetInt32(_yg);_Td1=(_Td1!==undefined&&yyGetInt32(_Td1)>=0)?yyGetInt32(_Td1):_yg;
var _nm=_dm._n6(_yg);var _Ud1=_dm._n6(_Td1);if(_nm!=null&&_Ud1!=null){if(!_09)_fD();_qd1.push({_Vd1:_Wd1,_Xd1:_Yd1,_Zd1:_Ir,__d1:_Oa,_0e1:_pF,_1e1:_qF,_2e1:_nF,_3e1:_oF,_4e1:_iD,_5e1:_jD,_6e1:_kD,_7e1:_lD,});_Pd1.push(_Nd1);_Qd1.push(_Od1);_Nd1=_yg;_Od1=_Td1;if(_09){_Wd1=_nm._Vd1;_Yd1=_zd1?_Ud1._Cd1._z9._8e1:_Ud1._Ad1._Bd1;_09._9e1(_Wd1,_Yd1);_Ir=-1;}else {g_CurrentGraphics=_nm._Oa;_Oa=_nm._Oa;_ae1(_Oa);}}}var surface_set_target=_be1;function _be1(_yg,_Td1){_yg=yyGetInt32(_yg);_Td1=(_Td1!==undefined&&yyGetInt32(_Td1)>=0)?yyGetInt32(_Td1):_yg;
var _nm=_dm._n6(_yg);var _Ud1=_dm._n6(_Td1);if(_nm==null||_Ud1==null){return false;}if(!_09)_fD();var _ce1=_de1._ee1();if(_ce1!=null){_qd1.push({_Vd1:_Wd1,_Xd1:_Yd1,_Zd1:_Ir,_4e1:_iD,_5e1:_jD,_6e1:_kD,_7e1:_lD,_0e1:_pF,_1e1:_qF,_2e1:_nF,_3e1:_oF,__d1:_Oa,_fe1:true,_ge1:_ce1._he1,_ie1:_ce1._je1,_ke1:_ce1._le1,_me1:_ce1._ne1,_oe1:_ce1._pe1,_qe1:new _qr(_ce1._re1),_se1:new _qr(_ce1._te1),});}else {_qd1.push({_Vd1:_Wd1,_Xd1:_Yd1,_Zd1:_Ir,_4e1:_iD,_5e1:_jD,_6e1:_kD,_7e1:_lD,_0e1:_pF,_1e1:_qF,_2e1:_nF,_3e1:_oF,
__d1:_Oa,_fe1:false,});}_Pd1.push(_Nd1);_Qd1.push(_Od1);_Nd1=_yg;_Od1=_Td1;if(_09){_Wd1=_nm._Vd1;_Yd1=_zd1?_Ud1._Cd1._z9._8e1:_Ud1._Ad1._Bd1;_09._9e1(_Wd1,_Yd1);_Ir=-1;}else {g_CurrentGraphics=_nm._Oa;_Oa=_nm._Oa;_ae1(_Oa);}_ue1(0,0,_nm._fd,_nm._gd);_ve1(0,0,_nm._fd,_nm._gd,0);if(_09)_09._we1();_AF();if(!_09){_ae1(_Oa);}return true;}function surface_get_target(){return _Nd1;}function surface_get_target_depth(){return _Od1;}var surface_reset_target=_xe1;function _xe1(){var _ye1=_qd1.pop();if(_ye1){_iD=_ye1._4e1;
_jD=_ye1._5e1;_kD=_ye1._6e1;_lD=_ye1._7e1;_pF=_ye1._0e1;_qF=_ye1._1e1;_nF=_ye1._2e1;_oF=_ye1._3e1;var _ze1=_ye1._fe1;var _ge1,_ie1,_ke1,_me1,_oe1,_qe1,_se1;if(_ze1==true){_ge1=_ye1._ge1;_ie1=_ye1._ie1;_ke1=_ye1._ke1;_me1=_ye1._me1;_oe1=_ye1._oe1;_qe1=_ye1._qe1;_se1=_ye1._se1;}if(!_09){_Oa=_ye1.__d1;_mD();}else {_Ir=_ye1._Zd1;_Wd1=_ye1._Vd1;_Yd1=_ye1._Xd1;}if(_6D&&_qd1.length==0){_ue1(0,0,_Ae1,_Be1);_Ce1._Hr(_Ae1,-_Be1*_Ir,1.0,32000.0);_7D();}else {_ue1(_iD,_jD,_kD,_lD);var _ce1=_de1._ee1();if((_ze1==true)&&(_ce1!=null)){
_De1(_ge1,_ie1,_ke1,_me1,_oe1,_ce1);_ce1._Ee1(new _qr(_qe1));_ce1._Fe1(new _qr(_se1));_ce1._Ge1();}else {_ve1(_pF,_qF,_nF,_oF,0);}}}else {_q5("surface_reset_target : Surface stacking error detected");}if(_09)_09._9e1(_Wd1,_Yd1);_Nd1=_Pd1.pop();if(_Nd1==null)_Nd1=-1;_Od1=_Qd1.pop();if(_Od1==null)_Od1=-1;if(!_09)_ae1(_Oa);_AF();}function _WD(_6l,_96,_a6){var data=null;var _em=_6l.getContext('2d');try{data=_em._He1(_96,_a6,1,1);}catch(_Oj){return 0xff000000;}var _Ie1=data.data;var index=0;var _Je1=_Ie1[index]&0xff;
var _Ke1=_Ie1[index+1]&0xff;var _Le1=_Ie1[index+2]&0xff;var _Me1=_Ie1[index+3]&0xff;return(_Je1|(_Ke1<<8)|(_Le1<<16)|(_Me1<<24));}function surface_getpixel(){}function surface_getpixel_ext(){}function _Ne1(_yg,_96,_a6){var _nm=_dm._n6(yyGetInt32(_yg));if(_nm!=null){return _WD(_nm,yyGetInt32(_96),yyGetInt32(_a6));}return 0x00000000;}compile_if_used(surface_getpixel=(_yg,_96,_a6)=>_Ne1(_yg,_96,_a6)&0xffffff);compile_if_used(surface_getpixel_ext=_Ne1);function _Oe1(_6l,_4y){var img=canvas.toDataURL();}function surface_save(_yg,
_4y){_Aw("surface_save()");}function surface_save_part(_yg,_4y,_96,_a6,_Xi,_Yi){_Aw("surface_save_part()");}function draw_surface(){}function _Pe1(_yg,_96,_a6){var _nm=_dm._n6(yyGetInt32(_yg));if(!_nm)return;_96=yyGetReal(_96);_a6=yyGetReal(_a6);var alpha=_Oa.globalAlpha;{_Oa.globalAlpha=_3d;_Oa._Za1(_nm,_96,_a6);}_Oa.globalAlpha=alpha;}compile_if_used(draw_surface=_Pe1);function draw_surface_stretched(_yg,_96,_a6,_Xi,_Yi){var _nm=_dm._n6(yyGetInt32(_yg));if(!_nm)return;_Hm(_nm._Hd1,yyGetReal(_96),yyGetReal(_a6),
yyGetReal(_Xi),yyGetReal(_Yi),0xffffff,1.0);}function draw_surface_tiled(_yg,_96,_a6){var _nm=_dm._n6(yyGetInt32(_yg));if(_nm!=null){_Jm(_nm._Hd1,yyGetReal(_96),yyGetReal(_a6),1,1,true,true,0xffffff,1);}}function draw_surface_part(_yg,_Lm,_Mm,_89,_99,_96,_a6){var _nm=_dm._n6(yyGetInt32(_yg));if(!_nm)return;_Nm(_nm._Hd1,yyGetReal(_Lm),yyGetReal(_Mm),yyGetReal(_89),yyGetReal(_99),yyGetReal(_96),yyGetReal(_a6),1,1,0xffffff,1.0);}function draw_surface_ext(_yg,_96,_a6,_Qm,_Rm,_h5,_Sm,_ga){var _nm=_dm._n6(yyGetInt32(_yg));
if(!_nm)return;var c=_6d(yyGetInt32(_Sm));_Tm(_nm._Hd1,0,0,yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),(yyGetReal(_h5)*0.0174532925),c,c,c,c,yyGetReal(_ga));}function draw_surface_stretched_ext(_yg,_96,_a6,_Xi,_Yi,_Sm,_ga){var _nm=_dm._n6(yyGetInt32(_yg));if(!_nm)return;var c=_6d(yyGetInt32(_Sm));_Hm(_nm._Hd1,yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Xi),yyGetReal(_Yi),c,yyGetReal(_ga));}var draw_surface_tiled_ext=_Qe1;function _Qe1(_yg,_96,_a6,_Qm,_Rm,_Sm,_ga){_Jc("draw_surface_tiled_ext()");
}function draw_surface_part_ext(_yg,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_Sm,_ga){_yg=yyGetInt32(_yg);var _nm=_dm._n6(_yg);if(_nm!=null){var _k5=new _im();_k5.x=0;_k5.y=0;_k5.w=_nm.width;_k5.h=_nm.height;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_yg;_k5._b9=[];_k5._c9=0;_k5._d9=4;_k5._Id1=0;_k5._cn=null;if(!_09){_k5._Va1=_nm;_k5.texture=_nm;}else {_k5._Va1=_nm.texture;_k5.texture=_nm.texture;}var c=_6d(yyGetInt32(_Sm));_Nm(_k5,yyGetReal(_Lm),yyGetReal(_Mm),
yyGetReal(_89),yyGetReal(_99),yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),c,yyGetReal(_ga));}}function draw_surface_general(_yg,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_h5,_Ym,_Zm,__m,_0n,_ga){_yg=yyGetInt32(_yg);var _nm=_dm._n6(_yg);if(_nm!=null){var _k5=new _im();_k5.x=yyGetReal(_Lm);_k5.y=yyGetReal(_Mm);_k5.w=yyGetReal(_89);_k5.h=yyGetReal(_99);_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_yg;_k5._b9=[];_k5._c9=0;_k5._d9=4;_k5._Id1=0;
_k5._cn=null;_96=yyGetReal(_96);_a6=yyGetReal(_a6);_Qm=yyGetReal(_Qm);_Rm=yyGetReal(_Rm);_h5=yyGetReal(_h5);_ga=yyGetReal(_ga);_Ym=_6d(yyGetInt32(_Ym));_Zm=_6d(yyGetInt32(_Zm));__m=_6d(yyGetInt32(__m));_0n=_6d(yyGetInt32(_0n));if(!_09){_k5._Va1=_nm;_k5.texture=_nm;_Tm(_k5,0,0,_96,_a6,_Qm,_Rm,(_h5*0.0174532925),_Ym,_Zm,__m,_0n,_ga);}else {_k5._Va1=_nm.texture;_k5.texture=_nm.texture;_Tm(_k5,0,0,_96,_a6,_Qm,_Rm,(_h5*0.0174532925),_Ym,_Zm,__m,_0n,_ga);}}}function surface_copy(){}surface_copy=(_Re1,_96,
_a6,_4j)=>{var _jk=_dm._n6(yyGetInt32(_Re1));var _kk=_dm._n6(yyGetInt32(_4j));if(_jk!=null&&_kk!=null){var _em=_jk.getContext('2d');_em.save();_em.globalCompositeOperation='copy';_em.drawImage(_kk,yyGetInt32(_96),yyGetInt32(_a6));_em.restore();}};function surface_copy_part(){}surface_copy_part=(_Re1,_96,_a6,_4j,_f5,_g5,_Se1,_Te1)=>{var _jk=_dm._n6(yyGetInt32(_Re1));var _kk=_dm._n6(yyGetInt32(_4j));if(_jk!=null&&_kk!=null){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_f5=yyGetReal(_f5);_g5=yyGetReal(_g5);_Se1=yyGetReal(_Se1);
_Te1=yyGetReal(_Te1);var _gD=[];var _em=_jk.getContext('2d');_em.save();_gD[0]=1;_gD[1]=0;_gD[2]=0;_gD[3]=1;_gD[4]=0;_gD[5]=0;_em.setTransform(_gD[0],_gD[1],_gD[2],_gD[3],_gD[4],_gD[5]);_em.beginPath();_em.rect(_96,_a6,_Se1,_Te1);_em.clip();_em.globalCompositeOperation='copy';_em.drawImage(_kk,_f5,_g5,_Se1,_Te1,_96,_a6,_Se1,_Te1);_em.restore();}};function _Ue1(_y91){switch(_y91){case _cm:return true;case _Ve1:return true;case _We1:return true;case _Xe1:return true;case _Ye1:return true;case _Ze1:return true;case __e1:return true;
case _0f1:return true;default :return false;}}function _1f1(_y91){if(_09){return _09._2f1(_y91);}else {if(_y91==_cm){return true;}else {return false;}}}function surface_format_is_supported(_y91){if(_Ue1(_y91)&&_1f1(_y91)){return true;}return false;}function surface_get_format(_yg){var _nm=_dm._n6(_yg);if(_nm!=null){if(_09){if(_nm._Ad1._8e1){return _nm._Ad1._8e1._zd;}}else {return _cm;}}return _3f1;}/*@constructor */function _4f1(){this._5f1=[];this._6f1={};this._7f1={};};function _8f1(_iC,_9f1){var _1C=(((_iC&0xff)<<24)|(_9f1&0xffffff));
return _1C;};_4f1.prototype._af1=function(_bf1,_cf1){this._5f1=_bf1.slice();for(var i=0;i<_bf1.length;++i)this._6f1[_bf1[i]]=i;for(var i=0;i<_cf1.length;++i){var _Vk=_cf1[i];this._7f1[_Vk.key]=_Vk.ids.slice();}};_4f1.prototype._df1=function(_9f1,_iC){var _1C=_8f1(_iC,_9f1);var _ef1=this._7f1[_1C];if(_ef1==undefined)return null;return _ef1;};_4f1.prototype._ff1=function(_9f1,_iC){var _gf1=this._df1(_9f1,_iC);var tags=[];if(_gf1!=null){for(var i=0;i<_gf1.length;++i){var _Mh=this._5f1[_gf1[i]];if(_Mh!==undefined)tags.push(_Mh);
}}return tags;};_4f1.prototype._hf1=function(_if1,_jf1){var _gf1=[];var _kf1=Array.isArray(_if1)?_if1:[_if1];for(var i=0;i<_kf1.length;++i){var _lf1=_kf1[i];var _mf1=this._6f1[_lf1];if(_mf1===undefined&&_jf1){_mf1=this._5f1.length;this._6f1[_lf1]=_mf1;this._5f1.push(_lf1);}if(_mf1!==undefined)_gf1.push(_mf1);}return _gf1;};_4f1.prototype._nf1=function(_9f1,_iC,_of1,_pf1){var _qf1=this._df1(_9f1,_iC);if(_qf1==null)return false;var _rf1=Array.isArray(_of1)?_of1.length:1;var _sf1=this._hf1(_of1,false);if(_sf1.length===0)return false;
if(_pf1&&_sf1.length!==_rf1)return false;for(var _s7=0;_s7<_sf1.length;++_s7){var _Mh=_sf1[_s7];var _tf1=_qf1.indexOf(_Mh)>-1;if(!_pf1&&_tf1)return true;if(_pf1&&!_tf1)return false;}return(_pf1?true:false);};_4f1.prototype._uf1=function(_9f1,_iC,_of1){var _vf1=false;var _1C=_8f1(_iC,_9f1);var _ef1=this._7f1[_1C];if(_ef1==undefined){_ef1=[];this._7f1[_1C]=_ef1;}var _wf1=this._hf1(_of1,true);for(var i=0;i<_wf1.length;++i){var _xf1=_wf1[i];var index=_ef1.indexOf(_xf1);if(index==-1){_ef1.push(_xf1);_vf1=true;}}return _vf1;
};_4f1.prototype._yf1=function(_9f1,_iC,_of1){var _zf1=false;var _gf1=this._df1(_9f1,_iC);if(_gf1!=null){var _Af1=this._hf1(_of1,false);for(var i=0;i<_Af1.length;++i){var _Bf1=_Af1[i];var index=_gf1.indexOf(_Bf1);if(index!=-1){_gf1[index]=_gf1[_gf1.length-1];_gf1.length-=1;_zf1=true;}}}return _zf1;};_4f1.prototype._Cf1=function(_9f1,_iC){var _1C=_8f1(_iC,_9f1);var _ef1=this._7f1[_1C];if(_ef1!=null){_ef1.length=0;return true;}return false;};_4f1.prototype._Df1=function(_of1){var _Ef1=[];var _wf1=this._hf1(_of1,
false);if(_wf1.length==0)return _Ef1;for(var key in this._7f1){if(!this._7f1.hasOwnProperty(key))continue;var _Ff1=this._7f1[key];for(var _s7=0;_s7<_wf1.length;++_s7){var index=_Ff1.indexOf(_wf1[_s7]);if(index!=-1){var _Gf1=key&0xffffff;var _Hf1=(key>>24)&0xff;var _If1=_hC(_Gf1,_Hf1);if(_If1.length>0){_Ef1.push(_If1);break;}}}}return _Ef1;};_4f1.prototype._Jf1=function(_of1,_iC){var _Kf1=[];var _wf1=this._hf1(_of1,false);if(_wf1.length==0)return _Kf1;for(var key in this._7f1){if(_iC>=0){var type=(key>>24)&0xff;if(type!==_iC)continue;
}var _Ff1=this._7f1[key];for(var _s7=0;_s7<_wf1.length;++_s7){var index=_Ff1.indexOf(_wf1[_s7]);if(index!=-1){var _Gf1=key&0xffffff;_Kf1.push(_Gf1);break;}}}return _Kf1;};function _Lf1(_Mf1,_iC,_Nf1){var _1C={type:-1,id:-1};if(_Mf1 instanceof _Zn){if(_iC===undefined||_iC===_8f1(_Mf1.type,_Mf1.value))_1C={type:_Mf1.type,id:_Mf1.value};}else if(typeof _Mf1==="string"){_1C=_0C(_Mf1);}else {if(_iC===undefined)_q5(_Nf1+"() - asset type argument is required");else _1C={type:_iC,id:_Mf1};}return _1C;}function tag_get_asset_ids(_if1,
_iC){var _Kf1=_Of1._Jf1(_if1,_iC);return _Kf1;}function tag_get_assets(_if1){var _Ef1=_Of1._Df1(_if1);return _Ef1;}function asset_get_tags(_Mf1,_iC){var result=[];var _1C=_Lf1(_Mf1,_iC,"asset_get_tags");if(_1C.id<0)return result;result=_Of1._ff1(_1C.id,_1C.type);return result;}function asset_add_tags(_Mf1,_if1,_iC){var _1C=_Lf1(_Mf1,_iC,"asset_add_tags");if(_1C.id<0)return 0;var result=_Of1._uf1(_1C.id,_1C.type,_if1);return(result)?1:0;}function asset_remove_tags(_Mf1,_if1,_iC){var _1C=_Lf1(_Mf1,_iC,"asset_remove_tags");
if(_1C.id<0)return 0;var result=_Of1._yf1(_1C.id,_1C.type,_if1);return(result)?1:0;}function asset_has_tags(_Mf1,_if1,_iC){var _1C=_Lf1(_Mf1,_iC,"asset_has_tags");if(_1C.id<0)return 0;var result=_Of1._nf1(_1C.id,_1C.type,_if1,true);return(result)?1:0;}function asset_has_any_tag(_Mf1,_if1,_iC){var _1C=_Lf1(_Mf1,_iC,"asset_has_any_tag");if(_1C.id<0)return 0;var result=_Of1._nf1(_1C.id,_1C.type,_if1,false);return(result)?1:0;}function asset_clear_tags(_Mf1,_iC){var _1C=_Lf1(_Mf1,_iC,"asset_clear_tags");if(_1C.id<0)return 0;
var result=_Of1._Cf1(_1C.id,_1C.type);return(result)?1:0;}function _Pf1(image_index,_Qf1){var _Rf1=Math.floor(image_index)%_Qf1;if(_Rf1<0)_Rf1=_Rf1+_Qf1;return _Rf1;}function draw_self(_Z7){var index;index=_Z7.sprite_index;_X6=_Z7;{var _rH=_m6._n6(index);if(_rH!=null){var image_index=_Pf1(_Z7.image_index+_Z7._GE,_Z7._Sf1());_Z7._GE=0;_rH._O9(image_index,_Z7.x,_Z7.y,_Z7.image_xscale,_Z7.image_yscale,_Z7.image_angle,_Z7.image_blend,_Z7.image_alpha);}}_X6=null;}function draw_sprite_ext(_Pn,_94,_Tf1,_96,_a6,
_Qm,_Rm,_h5,_Xd,_ga){_Tf1=yyGetReal(_Tf1);_ga=yyGetReal(_ga);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){_ga=min(1.0,_ga);var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);_Px._O9(image_index,yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),yyGetReal(_h5),_6d(yyGetInt32(_Xd)),_ga);}}function draw_sprite(_Pn,_94,_Tf1,_96,_a6){_Tf1=yyGetReal(_Tf1);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){var _Uf1=_m6._Vf1(_94);
var image_index=_Pf1(_Tf1,_Uf1);_Px._Wf1(image_index,yyGetReal(_96),yyGetReal(_a6),_3d);}}function draw_sprite_pos(_Pn,_94,_Tf1,_F7,_G7,_77,_87,_Ro,_So,_Xf1,_Yf1,_ga){_Tf1=yyGetReal(_Tf1);_ga=yyGetReal(_ga);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);_ga=min(1.0,_ga);_Px._Zf1(image_index,yyGetReal(_F7),yyGetReal(_G7),yyGetReal(_77),yyGetReal(_87),yyGetReal(_Ro),yyGetReal(_So),yyGetReal(_Xf1),yyGetReal(_Yf1),
_ga);}}function draw_sprite_stretched(_Pn,_94,_Tf1,_96,_a6,_Xi,_Yi){_Tf1=yyGetReal(_Tf1);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){if(_Px._n7<=0)return;var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);if((_Px._Vb1!=null)&&(_Px._Vb1.enabled==true)){_Px._Vb1._O9(yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Xi),yyGetReal(_Yi),0,0xffffff,_3d,image_index,_Px,true);}else {_Hm(_Px._l5[image_index],yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Xi),yyGetReal(_Yi),0xffffff,
_3d);}}}function draw_sprite_stretched_ext(_Pn,_94,_Tf1,_96,_a6,_Xi,_Yi,_5d,_ga){_Tf1=yyGetReal(_Tf1);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){if(_Px._n7<=0)return;var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);if((_Px._Vb1!=null)&&(_Px._Vb1.enabled==true)){_Px._Vb1._O9(yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Xi),yyGetReal(_Yi),0,_6d(yyGetInt32(_5d)),yyGetReal(_ga),image_index,_Px,true);}else {_Hm(_Px._l5[image_index],yyGetReal(_96),yyGetReal(_a6),
yyGetReal(_Xi),yyGetReal(_Yi),_6d(yyGetInt32(_5d)),yyGetReal(_ga));}}}function draw_sprite_part(_Pn,_94,_Tf1,_Lm,_Mm,_89,_99,_96,_a6){_Tf1=yyGetReal(_Tf1);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){if(_Px._n7<=0)return;var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);_Nm(_Px._l5[image_index],yyGetReal(_Lm),yyGetReal(_Mm),yyGetReal(_89),yyGetReal(_99),yyGetReal(_96),yyGetReal(_a6),1,1,0xffffff,_3d);}}function draw_sprite_part_ext(_Pn,_94,_Tf1,_Lm,_Mm,_89,
_99,_96,_a6,_Qm,_Rm,_Sm,_ga){_Tf1=yyGetReal(_Tf1);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){if(_Px._n7<=0)return;var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);_Sm=_6d(yyGetInt32(_Sm));_Nm(_Px._l5[image_index],yyGetReal(_Lm),yyGetReal(_Mm),yyGetReal(_89),yyGetReal(_99),yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),_Sm,yyGetReal(_ga));}}function draw_sprite_tiled(_Pn,_94,_Tf1,_96,_a6){_Tf1=yyGetReal(_Tf1);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;
var _Px=_m6._n6(_94);if(_Px!=null){if(_Px._n7<=0)return;var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);_Jm(_Px._l5[image_index],yyGetReal(_96),yyGetReal(_a6),1,1,true,true,0xffffff,_3d);}}function draw_sprite_tiled_ext(_Pn,_94,_Tf1,_96,_a6,_Qm,_Rm,_Sm,_ga){_Tf1=yyGetReal(_Tf1);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){if(_Px._n7<=0)return;var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);_Sm=_6d(yyGetInt32(_Sm));_Jm(_Px._l5[image_index],yyGetReal(_96),
yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),true,true,_Sm,_ga);}}function draw_sprite_general(_Pn,_94,_Tf1,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_h5,_Ym,_Zm,__m,_0n,_ga){_Tf1=yyGetReal(_Tf1);if(_Tf1<0)if(_Pn instanceof _BI)_Tf1=_Pn.image_index;var _Px=_m6._n6(_94);if(_Px!=null){if(_BF){_CF();}if(_Px._n7<=0)return;var _Uf1=_m6._Vf1(_94);var image_index=_Pf1(_Tf1,_Uf1);_Ym=_6d(yyGetInt32(_Ym));_Zm=_6d(yyGetInt32(_Zm));__m=_6d(yyGetInt32(__m));_0n=_6d(yyGetInt32(_0n));_1n(_Px._l5[image_index],yyGetReal(_Lm),yyGetReal(_Mm),
yyGetReal(_89),yyGetReal(_99),yyGetReal(_96),yyGetReal(_a6),yyGetReal(_Qm),yyGetReal(_Rm),yyGetReal(_h5)*Math.PI/180.0,_Ym,_Zm,__m,_0n,yyGetReal(_ga));}}function __f1(_yg){console.error("Error: Index %d does not correspond to an existing time source\n",_yg);}function _0g1(){console.error("Error: Cannot reset a built-in time source\n");}function _1g1(){console.error("Error: Cannot change the state of a stateless built-in time source\n");}function _2g1(){console.error("Error: Failed to create the time source\n");
}function _3g1(_yg){console.error("Error: Cannot destroy the time source (index %d) until its children have been destroyed\n",_yg);}function _4g1(){console.error("Error: Cannot destroy a built-in time source\n");}function _5g1(){console.error("Error: Cannot stop a built-in time source\n");}function _6g1(_7g1){const type=_7g1._8g1();return(type==_9g1||type==_ag1);}function _bg1(_7g1){return(_7g1._8g1()==_9g1);}function _cg1(_7g1){const type=_7g1._8g1();return(type==_dg1||type==_9g1);}function _eg1(id){const _fg1=_gg1.get(id);
if(_fg1===undefined)return null;return _fg1;}function _hg1(id,_fg1){_gg1.set(id,_fg1);}function _ig1(id){const _fg1=_eg1(id);if(_fg1===null){return;}const _jg1=_fg1._kg1();_jg1.forEach(_lg1=>_ig1(_lg1._mg1()));if(id===_ng1||id===_og1){return;}_gg1.delete(id);}function time_source_create(_pg1,_qg1,_rg1,_sg1,_tg1=[],_ug1=1,_vg1=_wg1){const parent=yyGetInt32(_pg1);const _xg1=yyGetReal(_qg1);const _yg1=yyGetInt32(_rg1);const _zg1=_sg1;const _lk=_tg1;const _Ag1=yyGetInt64(_ug1);const _Bg1=yyGetInt32(_vg1);return _Cg1(parent,
_xg1,_yg1,_zg1,_lk,_Ag1,_Bg1);}function _Cg1(_pg1,_qg1,_rg1,_sg1,_tg1,_ug1,_vg1){const parent=_eg1(_pg1);if(parent!=null){const _fg1=parent._Dg1(_qg1,_rg1,_sg1,_tg1,_ug1,_vg1);if(_fg1!=null){const id=_fg1._mg1();_hg1(id,_fg1);return id;}_2g1();}else {__f1(_pg1);}return -1;}function time_source_destroy(_yg,_Eg1=false){const id=yyGetInt32(_yg);const _Fg1=yyGetBool(_Eg1);if(_Fg1){_Gg1(id);}else {_Hg1(id);}}function _Hg1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){if(_fg1._Ig1()==0){_ig1(_yg);if(_fg1._Jg1()){
return _fg1._Kg1(false);}return _fg1._Lg1()._Mg1(_fg1);}return _3g1(_yg);}return _4g1();}__f1(_yg);}function _Gg1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){_ig1(_yg);if(_fg1._Ng1()){return _fg1._Kg1(true);}else {return _fg1._Lg1()._Mg1(_fg1);}}__f1(_yg);}function time_source_start(_yg){const id=yyGetInt32(_yg);_Og1(id);}function _Og1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_cg1(_fg1)){return _fg1._Pg1();}return _1g1();}__f1(_yg);}function time_source_stop(_yg){const id=yyGetInt32(_yg);_Qg1(id);}function _Qg1(_yg){
const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){return _fg1._ia1();}return _5g1();}__f1(_yg);}function time_source_pause(_yg){const id=yyGetInt32(_yg);_Rg1(id);}function _Rg1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_cg1(_fg1)){return _fg1._KC();}return _1g1();}__f1(_yg);}function time_source_resume(_yg){const id=yyGetInt32(_yg);_Sg1(id);}function _Sg1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_cg1(_fg1)){return _fg1._wZ();}return _1g1();}__f1(_yg);}function time_source_reset(_yg){const id=yyGetInt32(_yg);
_Tg1(id);}function _Tg1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){return _fg1._JC();}return _0g1();}__f1(_yg);}function time_source_reconfigure(_yg,_qg1,_rg1,_sg1,_tg1=[],_ug1=1,_vg1=_wg1){const id=yyGetInt32(_yg);const _xg1=yyGetReal(_qg1);const _yg1=yyGetInt32(_rg1);const _zg1=_sg1;const _lk=_tg1;const _Ag1=yyGetInt64(_ug1);const _Bg1=yyGetInt32(_vg1);return _Ug1(id,_xg1,_yg1,_zg1,_lk,_Ag1,_Bg1);}function _Ug1(_yg,_qg1,_rg1,_sg1,_tg1,_ug1,_vg1){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){
return _fg1._Vg1(_qg1,_rg1,_sg1,_tg1,_ug1,_vg1);}return _0g1();}__f1(_yg);}function time_source_get_period(_yg){const id=yyGetInt32(_yg);return _Wg1(id);}function _Wg1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){return _fg1._Xg1();}}else {__f1(_yg);}return undefined;}function time_source_get_reps_completed(_yg){const id=yyGetInt32(_yg);return _Yg1(id);}function _Yg1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){return _fg1._Zg1();}}else {__f1(_yg);}return undefined;}function time_source_get_reps_remaining(_yg){
const id=yyGetInt32(_yg);return __g1(id);}function __g1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){return _fg1._0h1();}}else {__f1(_yg);}return undefined;}function time_source_get_units(_yg){const id=yyGetInt32(_yg);return _1h1(id);}function _1h1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){return _fg1._2h1();}}else {__f1(_yg);}return undefined;}function time_source_get_time_remaining(_yg){const id=yyGetInt32(_yg);return _3h1(id);}function _3h1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){
return _fg1._4h1();}}else {__f1(_yg);}return undefined;}function time_source_get_state(_yg){const id=yyGetInt32(_yg);return _5h1(id);}function _5h1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_cg1(_fg1)){return _fg1._6h1();}}else {__f1(_yg);}return undefined;}function time_source_get_parent(_yg){const id=yyGetInt32(_yg);return _7h1(id);}function _7h1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){if(_6g1(_fg1)){return _fg1._8h1()._mg1();}}else {__f1(_yg);}return undefined;}function time_source_get_children(_yg){const id=yyGetInt32(_yg);
return _9h1(id);}function _9h1(_yg){const _fg1=_eg1(_yg);if(_fg1!=null){return _fg1._kg1().map(_ah1=>_ah1._mg1());}__f1(_yg);return undefined;}function time_source_exists(_yg){const id=yyGetInt32(_yg);return _bh1(id);}function _bh1(_yg){return(_eg1(_yg)!=null);}function time_seconds_to_bpm(_ch1){const _Cv=yyGetReal(_ch1);return _dh1(_Cv);}function _dh1(_ch1){if(_ch1>0.0){return 60.0/_ch1;}return Infinity;}function time_bpm_to_seconds(_eh1){const _fh1=yyGetReal(_eh1);return _gh1(_fh1);}function _gh1(_eh1){if(_eh1>0.0){
return 60.0/_eh1;}return Infinity;}function call_later(_qg1,_rg1,_sg1,_6u=false){const _xg1=yyGetReal(_qg1);const _yg1=yyGetInt32(_rg1);const repeat=yyGetBool(_6u);return _hh1(_xg1,_yg1,_sg1,repeat);}function _hh1(_qg1,_rg1,_sg1,_6u){const _fg1=_ih1._jh1(_qg1,_rg1,_sg1,_6u);if(_fg1!=null){return _fg1._mg1();}_2g1();return -1;}function call_cancel(_441){const _1R=yyGetInt32(_441);return _kh1(_1R);}function _kh1(_441){const _fg1=_ih1._lh1(_441);if(_fg1!=null){if(_6g1(_fg1)){if(_fg1._Jg1()){return _fg1._Kg1(false);
}return _fg1._Lg1()._Mg1(_fg1);}return _4g1();}__f1(_441);}function timeline_exists(_c5){if(_tA._n6(yyGetInt32(_c5))!=undefined){return true;}return false;}function timeline_get_name(_c5){var _iI=_tA._n6(yyGetInt32(_c5));if(_iI!=undefined){return _iI.pName;}return "";}function _mh1(_c5){return timeline_get_name(_c5);}function timeline_add(){return _tA._nh1();}function timeline_delete(_c5){_tA._pl(yyGetInt32(_c5));}function timeline_clear(_c5){_tA._ag(yyGetInt32(_c5));}function _oh1(_c5,_hd1,_ph1){_Jc("timeline_moment_add()");
}function timeline_moment_add_script(_c5,_hd1,_gw){switch(typeof _gw){case "number":case "function":var _ZQ=typeof _gw=="number"?_aw.Scripts[yyGetInt32(_gw)-100000]:_gw;_tA._qh1(yyGetInt32(_c5),yyGetInt32(_hd1),_ZQ);break;default :break;}}function timeline_size(_c5){var _iI=_tA._n6(yyGetInt32(_c5));var _95=0;if(_iI!=undefined){_95=_iI.Events._c9;}return _95;}function timeline_max_moment(_c5){var _iI=_tA._n6(yyGetInt32(_c5));var _95=0;if(_iI!=undefined){_95=_iI._rh1();}return _95;}function timeline_moment_clear(_c5,
_hd1){_tA._sh1(yyGetInt32(_c5),yyGetInt32(_hd1));}function _th1(_n21){_Jc("window_set_visible()");}function window_handle(){return _Zw;}function window_device(){if((null!==g_CurrentGraphics._uh1)&&(undefined!==g_CurrentGraphics._uh1))return g_CurrentGraphics._uh1;else return g_CurrentGraphics;}function _vh1(){return true;}function window_set_fullscreen(_wh1){}function window_get_fullscreen(){return _xh1;}function window_set_showborder(_i21){}function window_get_showborder(){return true;}function _yh1(_i21){_Jc("window_set_showicons()");
}function _zh1(){_Jc("window_get_showicons()");return false;}function _Ah1(_Bh1){_Jc("window_set_stayontop()");}function _Ch1(){_Jc("window_get_stayontop()");return false;}function _Dh1(_Eh1){_Jc("window_set_sizeable()");}function _Fh1(){_Jc("window_get_sizeable()");return false;}function window_set_caption(_Gh1){document.title=yyGetString(_Gh1);}function window_set_min_width(_89){}function window_set_max_width(_89){}function window_set_min_height(_99){}function window_set_max_height(_99){}function window_get_caption(){
return document.title;}function _Hh1(_341,_Ih1){if(_341){if(_Ih1===undefined){canvas.style.cursor="";}else {canvas.style.cursor=_Ih1;}}else {canvas.style.cursor="none";}}function window_set_cursor(_Jh1){_Jh1=yyGetInt32(_Jh1);var _Kh1="";switch(_Jh1){case cr_default:_Kh1="auto";_Jh1=cr_arrow;break;case cr_none:_Kh1="__disable__";break;case cr_arrow:_Kh1="auto";break;case cr_cross:_Kh1="crosshair";break;case cr_beam:_Kh1="";break;case cr_size_nesw:_Kh1="ne-resize";break;case cr_size_ns:_Kh1="n-resize";break;case cr_size_nwse:_Kh1="nw-resize";
break;case cr_size_we:_Kh1="w-resize";break;case cr_uparrow:_Kh1="";break;case cr_hourglass:_Kh1="wait";break;case cr_drag:_Kh1="move";break;case _Lh1:_Kh1="";break;case _Mh1:_Kh1="";break;case _Nh1:_Kh1="";break;case _Oh1:_Kh1="";break;case _Ph1:_Kh1="";break;case _Qh1:_Kh1="";break;case cr_appstart:_Kh1="";break;case _Rh1:_Kh1="help";break;case cr_handpoint:_Kh1="pointer";break;case cr_size_all:_Kh1="e-resize";break;};if(_Kh1=="__disable__"){_Sh1=_Jh1;_Hh1(false,"none");return;}else if(_Jh1<0&&_Kh1==""){_q5("Cursor type is not supported.");
_Hh1(true,_Kh1);return;}else {_Sh1=_Jh1;_Hh1(true,_Kh1);return;}}function window_get_cursor(){return _Sh1;}function window_set_color(_5d){_Th1=_6d(yyGetInt32(_5d));}var window_set_colour=window_set_color;function window_get_color(){return _6d(_Th1);}var window_get_colour=window_get_color;function _Uh1(_En,_Vh1){_Jc("window_set_region_scale()");}function _Wh1(){_Jc("window_get_region_scale()");}function window_set_position(_96,_a6,_Xh1){if(_Xh1===undefined)_Xh1=false;var _yn=document.getElementById(_Zw);for(var _nl=_yn;
_nl;_nl=_nl.parentNode){var position;if(_nl["currentStyle"]){position=_nl["currentStyle"]["position"];}else if(window.getComputedStyle){try{var style=window.getComputedStyle(_nl,null);if(style){position=style.getPropertyValue("position");}}catch(e){}}if(position&&(position=="fixed")){debug("Warning: Canvas position fixed. Ignoring position alterations");return;}}_yn.style.position="absolute";if(!yyGetBool(_Xh1)){_yn.style.left=yyGetInt32(_96)+"px";_yn.style.top=yyGetInt32(_a6)+"px";_yn.style.bottom="";
_yn.style.right="";_yn.style.transform="";}else {_yn.style.top="50%";_yn.style.left="50%";_yn.style.bottom="-50%";_yn.style.right="-50%";_yn.style.transform="translate(-50%, -50%)";}}function window_set_size(_Xi,_Yi){_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);canvas.width=_Xi;canvas.height=_Yi;_TD=_Xi;_VD=_Yi;_Yh1=canvas.width;_Zh1=canvas.height;_pg(canvas,_qg);__h1=_qg.top;_0i1=_qg.left;_1i1=_qg.right;_2i1=_qg.bottom;_3i1=_Yh1;_4i1=_Zh1;_Ae1=_Xi;_Be1=_Yi;_5i1=1;_6i1=1;}function window_set_rectangle(_96,
_a6,_Xi,_Yi){window_set_size(yyGetInt32(_Xi),yyGetInt32(_Yi));window_set_position(yyGetInt32(_96),yyGetInt32(_a6),false);}function window_center(){var _7i1=_cD();var _cT=_dD();var w=window_get_width();var h=window_get_height();var x=(_7i1-w)/2;var y=(_cT-h)/2;window_set_position(x,y,true);}function _8i1(){_Jc("window_default()");}function window_get_x(){return _0i1;}function window_get_y(){return __h1;}function window_get_width(){return _1i1-_0i1;}function window_get_height(){return _2i1-__h1;}function window_get_visible_rects(){
}function window_mouse_get_x(){return _Kg;}function window_mouse_get_y(){return _Lg;}function window_mouse_set(x,y){_Jc("window_mouse_set()");}function window_mouse_set_locked(_xr){if(_xr){var _9i1=canvas.requestPointerLock||canvas.mozRequestPointerLock||canvas.webkitRequestPointerLock||canvas.msRequestPointerLock;if(!_9i1)return;var _bc=_9i1.call(canvas);if(_bc&&_bc.then)_bc.catch(function(){});}else {var _ai1=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock;
if(!_ai1)return;var _bc=_ai1.call(document);if(_bc&&_bc.then)_bc.catch(function(){});}}function window_mouse_get_locked(){return _bi1;}function window_mouse_get_delta_x(){return _ci1;}function window_mouse_get_delta_y(){return _di1;}function window_view_mouse_get_x(_yg){if(!_c4._lg){return g_pBuiltIn.mouse_x;}var _og=_c4._ng[yyGetInt32(_yg)];return _og._vg(_Jg._mJ,_Jg._nJ);}function window_view_mouse_get_y(_yg){if(!_c4._lg){return g_pBuiltIn.mouse_y;}var _og=_c4._ng[yyGetInt32(_yg)];return _og._wg(_Jg._mJ,_Jg._nJ);
}function window_views_mouse_get_x(){if(!_c4._lg){return g_pBuiltIn.mouse_x;}for(var i=_c4._ng.length-1;i>=0;--i){var _og=_c4._ng[i];if(!_og.visible){continue;}var _L7=_og._vg(_Jg._mJ,_Jg._nJ);var _M7=_og._wg(_Jg._mJ,_Jg._nJ);if(((_L7>=_og._0e1)&&(_L7<_og._0e1+_og._2e1))&&((_M7>=_og._1e1)&&(_L7<_og._1e1+_og._3e1))){return _L7;}}return window_view_mouse_get_x(0);}function window_views_mouse_get_y(){if(!_c4._lg){return g_pBuiltIn.mouse_y;}for(var i=_c4._ng.length-1;i>=0;--i){var _og=_c4._ng[i];if(!_og.visible){
continue;}var _L7=_og._vg(_Jg._mJ,_Jg._nJ);var _M7=_og._wg(_Jg._mJ,_Jg._nJ);if(((_L7>=_og._0e1)&&(_L7<_og._0e1+_og._2e1))&&((_M7>=_og._1e1)&&(_L7<_og._1e1+_og._3e1))){return _M7;}}return window_view_mouse_get_y(0);}var _ei1;var os_win32;var _fi1;var os_macosx;var _gi1;var os_ios;var os_android;var of_challenge_win;var of_challenge_lose;var of_challenge_tie;var leaderboard_type_number;var leaderboard_type_time_mins_secs;var _hi1=0;var _ii1=1,_ji1=2,_ki1=3,_li1=4,_mi1=5,_ni1=6;var _oi1=aa_1241_kz();function aa_1241_kz(){
return 0x87155211;}function _pi1(){}function code_is_compiled(){return true;}function _qi1(_341){}function achievement_available(){return false;}function achievement_login(){}function achievement_logout(){}function achievement_login_status(){}function achievement_reset(){}function achievement_show_achievements(){}function achievement_show_leaderboards(){}function achievement_load_friends(){}function achievement_load_leaderboard(){}function achievement_get_pic(){}function achievement_load_progress(){}function achievement_send_challenge(){
}function os_get_info(){return -1;}function achievement_event(){}function achievement_show(){}function achievement_get_info(){}function os_get_config(){return _ri1;}function url_open_full(__F,_wn,_9V){if(_wn!="_self"&&_wn!="_blank"&&_wn!="_parent"&&_wn!="_top"){_q5("Error: invalid TARGET specified. Only '_self', '_blank', 'parent' or '_top' supported. (url_open)");return;}var _ph=window.open(yyGetString(__F),yyGetString(_wn),yyGetString(_9V));}function url_open_ext(__F,_wn){url_open_full(__F,_wn,"scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes");
}function url_open(__F){url_open_ext(__F,"_self");}function achievement_post_score(_si1,_ti1){}function achievement_post(_si1,_ui1){}function shop_leave_rating(_uw,_vi1,_wi1,_vn){}var get_timer=typeof performance!=="undefined"&&performance.now?function(){return performance.now()*1000;}:function(){return new Date().getTime()*1000-_ei1;};function virtual_key_add(_96,_a6,_Xi,_Yi,_xi1){_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);_xi1=yyGetInt32(_xi1);var _yi1=_zi1();_yi1.x=_96;
_yi1.y=_a6;_yi1.w=_Xi;_yi1.h=_Yi;_yi1.key=_xi1;_yi1._h7=_96+_Xi;_yi1._i7=_a6+_Yi;_yi1.button=_yi1._G5=_yi1._H5=0;_yi1._Ai1=_Bi1;return(_yi1.index+1);}function virtual_key_delete(_yg){_yg=yyGetInt32(_yg);if(_yg<0)return;var index=_yg-1;if((index<0)||(index>=_Ci1.length)){debug("Invalid index when deleting virtual key");}_Di1(_yg-1);}function _Ei1(){_Fi1=[];for(var _p7=0;_p7<_Ci1.length;++_p7){var _TG=_Ci1[_p7];if((_TG._Ai1&_Gi1)!=0)_Fi1[_Fi1.length]=_TG;}}function virtual_key_show(_yg){_yg=yyGetInt32(_yg);
if(_yg<0)return;_yg--;if(!_Ci1[_yg])return;_Ci1[_yg]._Ai1|=_Gi1;_Ei1();}function virtual_key_hide(_yg){_yg=yyGetInt32(_yg);if(_yg<0)return;_yg--;if(!_Ci1[_yg])return;_Ci1[_yg]._Ai1&=~_Gi1;_Ei1();}function device_get_tilt_x(){return 0;}function device_get_tilt_y(){return 0;}function device_get_tilt_z(){return 0;}function _Hi1(){_Aw("device_ios_get_imagename()");}function _Ii1(){_Aw("device_ios_get_image()");}function _Ji1(){_Aw("openfeint_start()");}function _Ki1(_wQ,_7I){_Aw("achievement_map_achievement()");
}function _Li1(_wQ,_7I,_FQ){_Aw("achievement_map_leaderboard()");}function _Mi1(_wQ,_7I,_FQ){_Aw("openfeint_send_challenge()");}function _Ni1(_wQ){_Aw("openfeint_send_invite()");}function _Oi1(_wQ,_7I,_FQ){_Aw("openfeint_send_social()");}function _Pi1(_wQ){_Aw("openfeint_set_url()");}function _Qi1(){_Aw("openfeint_accept_challenge()");return "";}function _Ri1(){_Aw("achievement_is_online()");return false;}function _Si1(_wQ,_7I){_Aw("openfeint_send_result()");}function device_is_keypad_open(){return false;}function _Ti1(){
_ei1=new Date().getTime()*1000;var _s7=0;for(var i=0;i<12;i++){_Zu[i]=_s7;_s7+=_Yu[i];}os_win32=0;_fi1=1;os_macosx=2;_gi1=3;os_ios=4;os_android=5;of_challenge_win=0;of_challenge_lose=1;of_challenge_tie=2;leaderboard_type_number=0;leaderboard_type_time_mins_secs=1;}function url_get_domain(){return location.hostname;}function _Ui1(){if(window.XMLHttpRequest){return new XMLHttpRequest();}if(typeof(XMLHttpRequest)=="undefined"){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0");}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0");
}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}throw new Error("This browser does not support XMLHttpRequest.");}return null;}function device_mouse_check_button(_Vi1,_Mn){_Vi1=yyGetInt32(_Vi1);_Mn=yyGetInt32(_Mn);if(_Vi1==0){return mouse_check_button(_Mn);}else {if(_Dg[_Vi1]&&(_Mn<=1)){return _Dg[_Vi1]._Ve;}}return 0;}function device_mouse_check_button_pressed(_Vi1,_Mn){_Vi1=yyGetInt32(_Vi1);_Mn=yyGetInt32(_Mn);if(_Vi1==0){return mouse_check_button_pressed(_Mn);}else {if(_Dg[_Vi1]&&(_Mn<=1)){
return _Dg[_Vi1]._Qe;}}return 0;}function device_mouse_check_button_released(_Vi1,_Mn){_Vi1=yyGetInt32(_Vi1);_Mn=yyGetInt32(_Mn);if(_Vi1==0){return mouse_check_button_released(_Mn);}else {if(_Dg[_Vi1]&&(_Mn<=1)){return _Dg[_Vi1]._Ue;}}return 0;}function device_mouse_x(_Vi1){_Vi1=yyGetInt32(_Vi1);if(_Vi1==0){return g_pBuiltIn.mouse_x;}else if(_Dg[_Vi1]){return _Dg[_Vi1].x;}return 0;}function device_mouse_raw_x(_Vi1){_Vi1=yyGetInt32(_Vi1);if(_Wi1[_Vi1]){return _Wi1[_Vi1].x;}return 0;}function device_mouse_y(_Vi1){
_Vi1=yyGetInt32(_Vi1);if(_Vi1==0){return g_pBuiltIn.mouse_y;}else if(_Dg[_Vi1]){return _Dg[_Vi1].y;}return 0;}function device_mouse_raw_y(_Vi1){_Vi1=yyGetInt32(_Vi1);if(_Wi1[_Vi1]){return _Wi1[_Vi1].y;}return 0;}function device_mouse_x_to_gui(_Vi1){_Vi1=yyGetInt32(_Vi1);var x=0;if(_Vi1==0){x=_Kg;}else if(_Wi1[_Vi1]){x=_Wi1[_Vi1].x;}_pg(canvas,_qg);x-=_qg.left;var _0D=_1D;if(_0D<0.0)_0D=window_get_width();return ~~(x*(_0D/window_get_width()));}function device_mouse_y_to_gui(_Vi1){_Vi1=yyGetInt32(_Vi1);var y=0;
if(_Vi1==0){y=_Lg;}else if(_Wi1[_Vi1]){y=_Wi1[_Vi1].y;}_pg(canvas,_qg);y-=_qg.top;var _YC=_ZC;if(_YC<0.0)_YC=window_get_height();return ~~(y*(_YC/window_get_height()));}function os_is_paused(){return _Xi1;}function window_has_focus(){return _Yi1;}function ds_exists(_c5,_wd){_c5=yyGetInt32(_c5);switch(yyGetInt32(_wd)){case _ii1:return(_W7._n6(_c5)?1.0:0.0);case _ji1:return(_gk._n6(_c5)?1.0:0.0);case _ki1:return(_wl._n6(_c5)?1.0:0.0);case _li1:return(_vl._n6(_c5)?1.0:0.0);case _mi1:return(_2j._n6(_c5)?1.0:0.0);
case _ni1:return(_il._n6(_c5)?1.0:0.0);}return 0;};function script_exists(_c5){_c5=yyGetInt32(_c5);if(_c5>=100000)_c5-=100000;if(_aw.Scripts[yyGetInt32(_c5)]!=undefined){return 1;}return 0;}function script_get_name(_c5){if(typeof _c5=="function"){var _95=_c5.name;if(_95.startsWith("bound ")){_95=_95.substr(6);}if(_aw.ScriptNames.indexOf(_95)>=0){return _95;}return "<unknown>";}else {_c5=yyGetInt32(_c5);if(_c5>=100000){_c5-=100000;if((_aw.Scripts[_c5]!=undefined)&&(_aw.ScriptNames[_c5]!=undefined)){var name=_aw.ScriptNames[_c5];
if(name.startsWith("gml_Script_"))name=name.substr(11);return name;}}else {_Zi1();if((_c5>=0)&&(_c5<__i1.length)){return __i1[_c5].name;}}}return "<undefined>";}function _0j1(_c5){_c5=yyGetInt32(_c5);if(_c5>=100000){_c5-=100000;if(_aw.Scripts[_c5]!=undefined){return _aw.Scripts[_c5];}}else {_Zi1();if((_c5>=0)&&(_c5<__i1.length)){return __i1[_c5];}}return null;}function script_execute(_1j1,_pA,_s4){_ZQ=undefined;if(typeof _s4==="function"){var _2j1=Array.prototype.slice.call(arguments);_2j1[2]=_2j1[1];_2j1[1]=_2j1[0];
return _s4.apply(this,_2j1.slice(1));}else {_s4==yyGetInt32(_s4);if(_s4<100000){_Zi1();if((_s4>=0)&&(_s4<__i1.length)){_ZQ=__i1[_s4];if(_ZQ!==undefined){var _2j1=Array.prototype.slice.call(arguments);return _ZQ.apply(this,_2j1.slice(3));}}}else {_s4-=100000;_ZQ=JSON_game.Scripts[_s4];if(_ZQ!==undefined){var _2j1=Array.prototype.slice.call(arguments);_2j1[2]=_2j1[1];_2j1[1]=_2j1[0];return _ZQ.apply(this,_2j1.slice(1));}}}return 0;}var method_call=script_execute_ext;function script_execute_ext(_1j1,_pA,_s4,
_Wk,_ne,_o91){_Wk=_Wk||[];_ne=_ne||0;_ne=yyGetInt32(_ne);_o91=_o91||_Wk.length-_ne;_o91=yyGetInt32(_o91);if(!(_Wk instanceof Array)){_q5("script_execute_ext : argument 2 is not an array")}else {var dir=1;if(_ne<0)_ne=_Wk.length+_ne;if(_ne>=_Wk.length)_ne=_Wk.length;if(_o91<0){dir=-1;if((_ne+_o91)<0){_o91=_ne+1;}else {_o91=-_o91;}}else {if((_ne+_o91)>_Wk.length){_o91=_Wk.length-_ne;}}var _2j1=[];for(var _c7=_ne,i=0;(i<_o91);++i,_c7+=dir)_2j1.push(_Wk[_c7]);_ZQ=undefined;if(typeof _s4==="function"){_2j1.splice(0,
0,_1j1,_pA);return _s4.apply(this,_2j1);}else {_s4==yyGetInt32(_s4);if(_s4<100000){_Zi1();if((_s4>=0)&&(_s4<__i1.length)){_ZQ=__i1[_s4];if(_ZQ!==undefined){return _ZQ.apply(this,_2j1);}}}else {_s4-=100000;_ZQ=JSON_game.Scripts[_s4];if(_ZQ!==undefined){_2j1.splice(0,0,_1j1,_pA);return _ZQ.apply(this,_2j1);}}}}return 0;}function gml_release_mode(_xr){if(yyGetBool(_xr)){instance_change=_JI;yyInst=_3j1;compile_if_used(ds_grid_get=_Bj);compile_if_used(ds_grid_set=_9j);compile_if_used(ds_grid_set_pre=_bj);compile_if_used(ds_grid_set_post=_dj);
}else {instance_change=_PI;yyInst=_4j1;compile_if_used(ds_grid_get=_Aj);compile_if_used(ds_grid_set=_8j);compile_if_used(ds_grid_set_pre=_aj);compile_if_used(ds_grid_set_post=_cj);}}function application_surface_draw_enable(_xr){_5j1=yyGetBool(_xr);}function application_surface_enable(_xr){if(_6j1){_7j1=_td1;_8j1=_Md1;}_6j1=yyGetBool(_xr);}function application_surface_is_enabled(){return _6j1;}function _9j1(){var _Lm=0;var _Mm=0;var _Ma1=0;var _Na1=0;canvas=document.getElementById(_Zw);var _aj1=_Yh1;var _v91=_Zh1;
if(_bj1&&_cj1){var w=_td1;var h=_Md1;var _ys,_O7,_N7;_ys=w/h;_O7=_aj1/_ys;if(_O7<_v91){_ys=h/w;_O7=_aj1*_ys;_Mm=(_v91-_O7)/2;_N7=_aj1;_O7+=_Mm;}else {_ys=w/h;_N7=_v91*_ys;_Lm=(_aj1-_N7)/2;_O7=_v91;_N7+=_Lm;}_Ma1=_N7;_Na1=_O7;}else {_Ma1=_aj1;_Na1=_v91;}_dj1.x=_Lm;_dj1.y=_Mm;_dj1.w=_Ma1-_Lm;_dj1.h=_Na1-_Mm;}function application_get_position(){_9j1();var _in=[];_in.push(_dj1.x,_dj1.y,_dj1.x+_dj1.w,_dj1.y+_dj1.h);return _in;}function extension_stubfunc_real(){return 0;}function extension_stubfunc_string(){return "";
}(function(){'use strict';Function.prototype._ej1=function(parent){this.prototype.parent=parent;for(var x in parent.prototype){if(!this.prototype[x])this.prototype[x]=parent.prototype[x];}};Function.prototype._fj1=function(parent){return this._ej1(parent);};Array.prototype._gj1=function(first,_Ai,_hj1){if(typeof(first)==='undefined')first=0;if(typeof(_Ai)==='undefined')_Ai=this.length-first;if(typeof(_hj1)==='undefined')_hj1=function(_05,__4){return _05<__4;};var left=first,stack=[],_zk=0;for(;;){for(;
left+1<_Ai;_Ai++){var _ij1=this[left+Math.floor(Math.random()*(_Ai-left))];stack[_zk++]=_Ai;for(var right=left-1;;){while(_hj1(this[++right],_ij1)){}while(_hj1(_ij1,this[--_Ai])){}if(right>=_Ai)break;var _DD=this[right];this[right]=this[_Ai];this[_Ai]=_DD;}}if(_zk===0)break;left=_Ai;_Ai=stack[--_zk];}return this;};Array.prototype._jj1=function(_kj1,length){if(typeof(length)==='undefined')length=this.length;var _p7=0;for(var c=0;c<length;++c){if(_kj1(this[c]))continue;if(c===_p7){++_p7;continue;}this[_p7++]=this[c];
}return _p7;};Array.prototype._lj1=function(first,last,_Je,_hj1){if(typeof(_hj1)==='undefined')_hj1=function(_05,__4){return _05<__4;};var _c9=last-first;while(_c9>0){var step=Math.floor(_c9/2);var _mj1=first+step;if(_hj1(this[_mj1],_Je)){first=++_mj1;_c9-=step+1;}else _c9=step;}return first;};Array.prototype._nj1=function(first,last,_Je,_hj1){if(typeof(_hj1)==='undefined')_hj1=function(_05,__4){return _05<__4;};var _c9=last-first;while(_c9>0){var step=Math.floor(_c9/2);var _mj1=first+step;if(!_hj1(_Je,this[_mj1])){
first=++_mj1;_c9-=step+1;}else _c9=step;}return first;};Array.prototype.rotate=function(first,_oj1,last){var _Zk=_oj1;while(first!=_Zk){var _pj1=this[first];this[first]=this[_Zk];this[_Zk]=_pj1;++first;++_Zk;if(_Zk===last)_Zk=_oj1;else if(first===_oj1)_oj1=_Zk;}};var _qj1=(function(){var _rj1=function(){return +new Date();};if(typeof(performance)==='undefined')window['performance']={now:_rj1};if(!window['performance'].now)window['performance'].now=_rj1;function _sj1(name,parent){this.name=name;this.parent=parent;
this._jg1={};this._tj1=0;this._uj1=0;this._vj1=0;this._wj1=false;this._xj1=0;}_sj1.prototype={start:function(){this._tj1=performance.now();this._wj1=true;},stop:function(_w81){if(!this._wj1)return;this._wj1=false;this._uj1+=performance.now()-this._tj1;if(_w81)this.start();for(var x in this._jg1)this._jg1[x].stop();},_w81:function(_yj1){if(!_yj1){this._wj1=true;this._vj1+=this._uj1;this.start();}this._uj1=0;for(var x in this._jg1)this._jg1[x]._w81(true);}};var _zj1=[];var _f6=new _sj1("root");function _Aj1(name,
parent){if(!_zj1)throw new Error("late profile creation not allowed");var __h=new _sj1(name,parent||'root');_zj1.push(__h);return __h;}function _Bj1(_Cj1){_Cj1._xj1--;delete _Cj1._jg1[_Cj1.name];}function _Dj1(_nl,_Cj1){if(_nl.name===_Cj1.parent)return _nl;for(var x in _nl._jg1){var _c7;if(_c7=_Dj1(_nl._jg1[x],_Cj1))return _c7;}return null;}function init(){while(_zj1.length){var _2z=_zj1.pop();if(!(_2z.parentNode=_Dj1(_f6,_2z)))_zj1._Ej1(_2z);else {_2z.parentNode._jg1[_2z.name]=_2z;_2z.parentNode._xj1++;}}_zj1=null;
}function _Fj1(){_f6._w81(true);}var _95={_Aj1:_Aj1,_Bj1:_Bj1,init:init,_w81:_Fj1,_Gj1:_f6};return _95;}());function _Hj1(_Ij1){if(!_Ij1){console.log("Assertion failed! Pls debug.");debugger;}}var _Jj1=Number.MAX_VALUE;var _Kj1=2.2204460492503131e-016;var _Lj1=Math.PI;var _Mj1=2;var _Nj1=8;var _Oj1=0.1;var _Pj1=2.0;var _Qj1=0.005;var _Rj1=(2.0/180.0*_Lj1);var _Sj1=(2.0*_Qj1);var _Tj1=8;var _Uj1=32;var _Vj1=1.0;var _Wj1=0.2;var _Xj1=(8.0/180.0*_Lj1);var _Yj1=2.0;var _Zj1=(_Yj1*_Yj1);var __j1=(0.5*_Lj1);var _0k1=(__j1*__j1);
var _1k1=0.2;var _2k1=0.75;var _3k1=0.5;var _4k1=0.01;var _5k1=(2.0/180.0*_Lj1);var _6k1=(-1);var _7k1=0.75;var _8k1=1.0;var _9k1=5.0;var _ak1=2;var _bk1=(_ak1*_ak1);var _ck1=256;function _dk1(_ek1,_fk1,_gk1){this._hk1=_ek1;this._ik1=_fk1;this._jk1=_gk1;}_dk1.prototype={toString:function(){return this._hk1+'.'+this._ik1+'.'+this._jk1;}};var _kk1=new _dk1(2,3,1);function _lk1(x){return isFinite(x)&&!isNaN(x);}var _mk1=Math.sqrt;var _nk1=Math.atan2;var _ok1=Math.sin;var _pk1=Math.cos;var _qk1=Math.floor;var _rk1=Math.ceil;
var _sk1=_mk1;var _tk1=_nk1;function _uk1(x){return 1.0/_mk1(x);}function _vk1(x,y){if(typeof(x)!=='undefined'){this.x=x;this.y=y;}else this.x=this.y=0;}_vk1.prototype={_Q3:function(){return new _vk1(this.x,this.y);},_wk1:function(){this.x=0.0;this.y=0.0;return this;},Set:function(_xk1,_yk1){this.x=_xk1;this.y=_yk1;return this;},_EI:function(_p7){this.x=_p7.x;this.y=_p7.y;return this;},_zk1:function(){var _H5=new _vk1();_H5.Set(-this.x,-this.y);return _H5;},_Ak1:function(i){switch(i){case 0:return this.x;case 1:return this.y;
}},_Bk1:function(i,_H5){switch(i){case 0:return this.x=_H5;case 1:return this.y=_H5;}},_Vf:function(_H5){this.x+=_H5.x;this.y+=_H5.y;return this;},_Ck1:function(_H5){this.x-=_H5.x;this.y-=_H5.y;return this;},Multiply:function(_05){this.x*=_05;this.y*=_05;return this;},Length:function(){return _sk1(this.x*this.x+this.y*this.y);},_Dk1:function(){return this.x*this.x+this.y*this.y;},_Ek1:function(){var length=this.Length();if(length<_Kj1){return 0.0;}var _Fk1=1.0/length;this.x*=_Fk1;this.y*=_Fk1;return length;}
,_Gk1:function(){return _lk1(this.x)&&_lk1(this.y);},_Hk1:function(){return new _vk1(-this.y,this.x);},_Ik1:function(out){var _Ik=out||[];_Ik[0]=this.x;_Ik[1]=this.y;return _Ik;},_Jk1:function(data){this.x=data[0];this.y=data[1];}};_vk1._Vf=function(_05,__4){return new _vk1(_05.x+__4.x,_05.y+__4.y);};_vk1._Ck1=function(_05,__4){return new _vk1(_05.x-__4.x,_05.y-__4.y);};_vk1._Kk1=function(_05,__4){return _05.x==__4.x&&_05.y==__4.y;};_vk1.Multiply=function(__h,_05){return new _vk1(__h*_05.x,__h*_05.y);};_vk1._zk1=function(_05){
return new _vk1(-_05.x,-_05.y);};function _Lk1(x,y,z){if(typeof(x)!=='undefined'){this.x=x;this.y=y;this.z=z;}}_Lk1.prototype={_Q3:function(){return new _Lk1(this.x,this.y,this.z);},_wk1:function(){this.x=0.0;this.y=0.0;this.z=0.0;},Set:function(_xk1,_yk1,_Mk1){this.x=_xk1;this.y=_yk1;this.z=_Mk1;},_zk1:function(){var _H5=new _Lk1();_H5.Set(-this.x,-this.y,-this.z);return _H5;},_Vf:function(_H5){this.x+=_H5.x;this.y+=_H5.y;this.z+=_H5.z;},_Ck1:function(_H5){this.x-=_H5.x;this.y-=_H5.y;this.z-=_H5.z;},Multiply:function(__h){
this.x*=__h;this.y*=__h;this.z*=__h;},x:0,y:0,z:0};_Lk1.Multiply=function(__h,_05){return new _Lk1(__h*_05.x,__h*_05.y,__h*_05.z);};_Lk1._Vf=function(_05,__4){return new _Lk1(_05.x+__4.x,_05.y+__4.y,_05.z+__4.z);};_Lk1._Ck1=function(_05,__4){return new _Lk1(_05.x-__4.x,_05.y-__4.y,_05.z-__4.z);};function _Nk1(_Ok1,_Pk1){this._Oj=_Ok1?_Ok1._Q3():new _vk1();this._6F=_Pk1?_Pk1._Q3():new _vk1();}_Nk1.prototype={Set:function(_Ok1,_Pk1){this._Oj._EI(_Ok1);this._6F._EI(_Pk1);},_EI:function(_5s){this._Oj._EI(_5s._Oj);
this._6F._EI(_5s._6F);},_Qk1:function(){this._Oj.x=1.0;this._6F.x=0.0;this._Oj.y=0.0;this._6F.y=1.0;},_wk1:function(){this._Oj.x=0.0;this._6F.x=0.0;this._Oj.y=0.0;this._6F.y=0.0;},_Rk1:function(){var _05=this._Oj.x,__4=this._6F.x,c=this._Oj.y,_Xo=this._6F.y;var _Sk1=new _Nk1();var _Tk1=_05*_Xo-__4*c;if(_Tk1!=0.0){_Tk1=1.0/_Tk1;}_Sk1._Oj.x=_Tk1*_Xo;_Sk1._6F.x=-_Tk1*__4;_Sk1._Oj.y=-_Tk1*c;_Sk1._6F.y=_Tk1*_05;return _Sk1;},_Uk1:function(__4){var _Vk1=this._Oj.x,_Wk1=this._6F.x,_Xk1=this._Oj.y,_Yk1=this._6F.y;
var _Tk1=_Vk1*_Yk1-_Wk1*_Xk1;if(_Tk1!=0.0){_Tk1=1.0/_Tk1;}var x=new _vk1();x.x=_Tk1*(_Yk1*__4.x-_Wk1*__4.y);x.y=_Tk1*(_Vk1*__4.y-_Xk1*__4.x);return x;}};_Nk1._Vf=function(_Ij1,_Sk1){return new _Nk1(_vk1._Vf(_Ij1._Oj,_Sk1._Oj),_vk1._Vf(_Ij1._6F,_Sk1._6F));};function _Zk1(_Ok1,_Pk1,__k1){this._Oj=_Ok1?_Ok1._Q3():new _Lk1();this._6F=_Pk1?_Pk1._Q3():new _Lk1();this._0l1=__k1?__k1._Q3():new _Lk1();}_Zk1.prototype={_wk1:function(){this._Oj._wk1();this._6F._wk1();this._0l1._wk1();},_1l1:function(__4){var _Tk1=_2l1(this._Oj,
_3l1(this._6F,this._0l1));if(_Tk1!=0.0){_Tk1=1.0/_Tk1;}var x=new _Lk1();x.x=_Tk1*_2l1(__4,_3l1(this._6F,this._0l1));x.y=_Tk1*_2l1(this._Oj,_3l1(__4,this._0l1));x.z=_Tk1*_2l1(this._Oj,_3l1(this._6F,__4));return x;},_4l1:function(__4){var _Vk1=this._Oj.x,_Wk1=this._6F.x,_Xk1=this._Oj.y,_Yk1=this._6F.y;var _Tk1=_Vk1*_Yk1-_Wk1*_Xk1;if(_Tk1!=0.0){_Tk1=1.0/_Tk1;}var x=new _vk1();x.x=_Tk1*(_Yk1*__4.x-_Wk1*__4.y);x.y=_Tk1*(_Vk1*__4.y-_Xk1*__4.x);return x;},_5l1:function(_6l1){var _05=this._Oj.x,__4=this._6F.x,c=this._Oj.y,
_Xo=this._6F.y;var _Tk1=_05*_Xo-__4*c;if(_Tk1!=0.0){_Tk1=1.0/_Tk1;}_6l1._Oj.x=_Tk1*_Xo;_6l1._6F.x=-_Tk1*__4;_6l1._Oj.z=0.0;_6l1._Oj.y=-_Tk1*c;_6l1._6F.y=_Tk1*_05;_6l1._6F.z=0.0;_6l1._0l1.x=0.0;_6l1._0l1.y=0.0;_6l1._0l1.z=0.0;},_7l1:function(_6l1){var _Tk1=_2l1(this._Oj,_3l1(this._6F,this._0l1));if(_Tk1!=0.0){_Tk1=1.0/_Tk1;}var _Vk1=this._Oj.x,_Wk1=this._6F.x,_8l1=this._0l1.x;var _Yk1=this._6F.y,_9l1=this._0l1.y;var _al1=this._0l1.z;_6l1._Oj.x=_Tk1*(_Yk1*_al1-_9l1*_9l1);_6l1._Oj.y=_Tk1*(_8l1*_9l1-_Wk1*_al1);
_6l1._Oj.z=_Tk1*(_Wk1*_9l1-_8l1*_Yk1);_6l1._6F.x=_6l1._Oj.y;_6l1._6F.y=_Tk1*(_Vk1*_al1-_8l1*_8l1);_6l1._6F.z=_Tk1*(_8l1*_Wk1-_Vk1*_9l1);_6l1._0l1.x=_6l1._Oj.z;_6l1._0l1.y=_6l1._6F.z;_6l1._0l1.z=_Tk1*(_Vk1*_Yk1-_Wk1*_Wk1);}};function _bl1(angle,c){if(typeof(c)!=='undefined'){this.__h=angle;this.c=c;}else if(typeof(angle)!=='undefined')this.Set(angle);}_bl1.prototype={_Q3:function(){return new _bl1(this.__h,this.c);},_EI:function(_p7){this.__h=_p7.__h;this.c=_p7.c;},Set:function(x){this.__h=_ok1(x);this.c=_pk1(x);
},_Qk1:function(){this.__h=0.0;this.c=1.0;},_cl1:function(){return _tk1(this.__h,this.c);},_dl1:function(){return new _vk1(this.c,this.__h);},_el1:function(){return new _vk1(-this.__h,this.c);},__h:0,c:1};function _fl1(position,rotation){this._2z=new _vk1();this.q=new _bl1();if(position){this._2z._EI(position);this.q._EI(rotation);}}_fl1.prototype={_Q3:function(){var _gl1=new _fl1(this._2z,this.q);return _gl1;},_EI:function(_gl1){this._2z._EI(_gl1._2z);this.q._EI(_gl1.q);},_Qk1:function(){this._2z._wk1();this.q._Qk1();
},Set:function(position,angle){this._2z._EI(position);this.q.Set(angle);}};function _hl1(){this._il1=new _vk1();this._jl1=new _vk1();this.c=new _vk1();}_hl1.prototype={_EI:function(_kl1){this._il1._EI(_kl1._il1);this._jl1._EI(_kl1._jl1);this.c._EI(_kl1.c);this._05=_kl1._05;this._ll1=_kl1._ll1;this._ml1=_kl1._ml1;},_Q3:function(){var _kl1=new _hl1();_kl1._il1._EI(this._il1);_kl1._jl1._EI(this._jl1);_kl1.c._EI(this.c);_kl1._05=this._05;_kl1._ll1=this._ll1;_kl1._ml1=this._ml1;return _kl1;},_nl1:function(_gl1,
_ol1){_gl1._2z.x=((1.0-_ol1)*this._jl1.x)+(_ol1*this.c.x);_gl1._2z.y=((1.0-_ol1)*this._jl1.y)+(_ol1*this.c.y);var angle=(1.0-_ol1)*this._ll1+_ol1*this._05;_gl1.q.Set(angle);_gl1._2z.x-=_gl1.q.c*this._il1.x-_gl1.q.__h*this._il1.y;_gl1._2z.y-=_gl1.q.__h*this._il1.x+_gl1.q.c*this._il1.y;},_pl1:function(alpha){_Hj1(this._ml1<1.0);var _ol1=(alpha-this._ml1)/(1.0-this._ml1);this._jl1._Vf(_vk1.Multiply(_ol1,_vk1._Ck1(this.c,this._jl1)));this._ll1+=_ol1*(this._05-this._ll1);this._ml1=alpha;},_Ek1:function(){
var _ql1=2.0*_Lj1;var _Xo=_ql1*_qk1(this._ll1/_ql1);this._ll1-=_Xo;this._05-=_Xo;},_ll1:0,_05:0,_ml1:0};function _rl1(_05,__4){return _05.x*__4.x+_05.y*__4.y;}function _sl1(_05,__4){return _05.x*__4.y-_05.y*__4.x;}function _tl1(_05,__h){return new _vk1(__h*_05.y,-__h*_05.x);}function _ul1(__h,_05){return new _vk1(-__h*_05.y,__h*_05.x);}function _vl1(_Ij1,_H5){return new _vk1(_Ij1._Oj.x*_H5.x+_Ij1._6F.x*_H5.y,_Ij1._Oj.y*_H5.x+_Ij1._6F.y*_H5.y);}function _wl1(_Ij1,_H5){return new _vk1(_rl1(_H5,_Ij1._Oj),_rl1(_H5,_Ij1._6F));
}function _xl1(_05,__4){var c=_vk1._Ck1(_05,__4);return c.Length();}function _yl1(_05,__4){var c=_vk1._Ck1(_05,__4);return _rl1(c,c);}function _2l1(_05,__4){return _05.x*__4.x+_05.y*__4.y+_05.z*__4.z;}function _3l1(_05,__4){return new _Lk1(_05.y*__4.z-_05.z*__4.y,_05.z*__4.x-_05.x*__4.z,_05.x*__4.y-_05.y*__4.x);}function _zl1(_Ij1,_Sk1){return new _Nk1(_vl1(_Ij1,_Sk1._Oj),_vl1(_Ij1,_Sk1._6F));}function _Al1(_Ij1,_Sk1){var _Ok1=new _vk1(_rl1(_Ij1._Oj,_Sk1._Oj),_rl1(_Ij1._6F,_Sk1._Oj));var _Pk1=new _vk1(_rl1(_Ij1._Oj,
_Sk1._6F),_rl1(_Ij1._6F,_Sk1._6F));return new _Nk1(_Ok1,_Pk1);}function _Bl1(_Ij1,_H5){return _Lk1._Vf(_Lk1._Vf(_Lk1.Multiply(_H5.x,_Ij1._Oj),_Lk1.Multiply(_H5.y,_Ij1._6F)),_Lk1.Multiply(_H5.z,_Ij1._0l1));}function _Cl1(_Ij1,_H5){return new _vk1(_Ij1._Oj.x*_H5.x+_Ij1._6F.x*_H5.y,_Ij1._Oj.y*_H5.x+_Ij1._6F.y*_H5.y);}function _Dl1(q,_Y4){var _El1=new _bl1();_El1.__h=q.__h*_Y4.c+q.c*_Y4.__h;_El1.c=q.c*_Y4.c-q.__h*_Y4.__h;return _El1;}function _Fl1(q,_Y4){var _El1=new _bl1();_El1.__h=q.c*_Y4.__h-q.__h*_Y4.c;_El1.c=q.c*_Y4.c+q.__h*_Y4.__h;
return _El1;}function _Gl1(q,_H5){return new _vk1(q.c*_H5.x-q.__h*_H5.y,q.__h*_H5.x+q.c*_H5.y);}function _Hl1(q,_H5){return new _vk1(q.c*_H5.x+q.__h*_H5.y,-q.__h*_H5.x+q.c*_H5.y);}function _Il1(_Jl1,_H5){return new _vk1((_Jl1.q.c*_H5.x-_Jl1.q.__h*_H5.y)+_Jl1._2z.x,(_Jl1.q.__h*_H5.x+_Jl1.q.c*_H5.y)+_Jl1._2z.y);}function _Kl1(_Jl1,_H5){var _Jo=_H5.x-_Jl1._2z.x;var _Ko=_H5.y-_Jl1._2z.y;var x=(_Jl1.q.c*_Jo+_Jl1.q.__h*_Ko);var y=(-_Jl1.q.__h*_Jo+_Jl1.q.c*_Ko);return new _vk1(x,y);}function _Ll1(_Ij1,_Sk1){var _Ml1=new _fl1();
_Ml1.q=_Dl1(_Ij1.q,_Sk1.q);_Ml1._2z=_vk1._Vf(_Gl1(_Ij1.q,_Sk1._2z),_Ij1._2z);return _Ml1;}function _Nl1(_Ij1,_Sk1){var _Ml1=new _fl1();_Ml1.q=_Fl1(_Ij1.q,_Sk1.q);var _Ol1=_Sk1._2z.x-_Ij1._2z.x;var _Pl1=_Sk1._2z.y-_Ij1._2z.y;_Ml1._2z.x=_Ij1.q.c*_Ol1+_Ij1.q.__h*_Pl1;_Ml1._2z.y=-_Ij1.q.__h*_Ol1+_Ij1.q.c*_Pl1;return _Ml1;}var _Ql1=Math.abs;function _Rl1(_05){return new _vk1(_Ql1(_05.x),_Ql1(_05.y));}function _Sl1(_Ij1){return new _Nk1(_Rl1(_Ij1._Oj),_Rl1(_Ij1._6F));}var _Tl1=Math.min;function _Ul1(_05,__4){return new _vk1(_Tl1(_05.x,
__4.x),_Tl1(_05.y,__4.y));}var _Vl1=Math.max;function _Wl1(_05,__4){return new _vk1(_Vl1(_05.x,__4.x),_Vl1(_05.y,__4.y));}function _Xl1(_05,_kc1,_Kc1){return _Vl1(_kc1,_Tl1(_05,_Kc1));}function _Yl1(_05,_kc1,_Kc1){return _Wl1(_kc1,_Ul1(_05,_Kc1));}function _Zl1(x){x|=(x>>1);x|=(x>>2);x|=(x>>4);x|=(x>>8);x|=(x>>16);return x+1;}function __l1(x){var result=x>0&&(x&(x-1))==0;return result;}var _0m1=32767;function _1m1(_2m1,_jc1){var _Y4=Math.random();if(typeof(_2m1)!=='undefined')_Y4=(_jc1-_2m1)*_Y4+_2m1;else _Y4=2.0*_Y4-1.0;
return _Y4;}function _3m1(_Y4,_Z4,__4){this._Y4=_Y4||0;this._Z4=_Z4||0;this.__4=__4||0;}_3m1.prototype={Set:function(_Y4,_Z4,__4){this._Y4=_Y4;this._Z4=_Z4;this.__4=__4;}};function _4m1(){}_4m1.prototype={_5m1:function(_Ai1){this._6m1=_Ai1;},_7m1:function(){return this._6m1;},_8m1:function(_Ai1){this._6m1|=_Ai1;},_9m1:function(_Ai1){this._6m1&=~_Ai1;},_am1:function(_Ai1){this._6m1^=_Ai1;},_bm1:function(vertices,vertexCount,color){},_cm1:function(vertices,vertexCount,color){},_dm1:function(_em1,_K01,
color){},_fm1:function(_em1,_K01,_bp,color){},_gm1:function(_ap,_hm1,color){},_im1:function(_gl1){},_511:function(_jm1,_K01,_km1,_c9){},_6m1:0};_4m1._lm1=1;_4m1._mm1=2;_4m1._nm1=4;_4m1._om1=8;_4m1._pm1=16;_4m1._qm1=32;_4m1._rm1=64;_4m1._sm1=128;_4m1._tm1=256;_4m1._um1=512;_4m1._vm1=1024;if(typeof(performance)==='undefined'){window.performance={now:function(){return +new Date();}};}function _wm1(){this._JC();}_wm1.prototype={_JC:function(){this._xm1=performance.now();},_ym1:function(){return performance.now()-this._xm1;
}};function _zm1(){this._Am1=0;this._em1=new _vk1();this._Bm1=0;}/*
 * A shape.
 * @constructor
 * @returns {b2Shape}
 */function _Cm1(){this._nH=0;this._Dm1=0;}_Cm1.prototype={_Q3:function(){},_8g1:function(){return this._nH;},_Em1:function(){},_Fm1:function(_gl1,_2z){},_Gm1:function(output,input,transform,_Hm1){},_Im1:function(_Jm1,_gl1,_Hm1){},_Km1:function(_Lm1,_h11){},_Mm1:function(_gl1,_2z,_Nm1,_Om1,_Hm1){},_Ik1:function(out){var _Ik=out||{};_Ik['m_type']=this._nH;_Ik['m_radius']=this._Dm1;return _Ik;
},_Jk1:function(data){this._Dm1=data['m_radius'];}};_Cm1._Pm1=0;_Cm1._Qm1=1;_Cm1._Rm1=2;_Cm1._Sm1=3;_Cm1._Tm1=4;function _Um1(){this.parent.call(this);this._nH=_Cm1._Pm1;this._Dm1=0;this._Vm1=new _vk1();Object.seal(this);}_Um1.prototype={_Q3:function(){var shape=new _Um1();shape._Dm1=this._Dm1;shape._Vm1=this._Vm1._Q3();return shape;},_Em1:function(){return 1;},_Fm1:function(transform,_2z){var _em1=_vk1._Vf(transform._2z,_Gl1(transform.q,this._Vm1));var _Xo=_vk1._Ck1(_2z,_em1);return _rl1(_Xo,_Xo)<=this._Dm1*this._Dm1;
},_Gm1:function(output,input,transform,_Hm1){var position=_vk1._Vf(transform._2z,_Gl1(transform.q,this._Vm1));var __h=_vk1._Ck1(input._ap,position);var __4=_rl1(__h,__h)-this._Dm1*this._Dm1;var _Y4=_vk1._Ck1(input._hm1,input._ap);var c=_rl1(__h,_Y4);var _oD=_rl1(_Y4,_Y4);var _Wm1=c*c-_oD*__4;if(_Wm1<0.0||_oD<_Kj1){return false;}var _05=-(c+_sk1(_Wm1));if(0.0<=_05&&_05<=input._M11*_oD){_05/=_oD;output._R11=_05;output._Om1=_vk1._Vf(__h,_vk1.Multiply(_05,_Y4));output._Om1._Ek1();return true;}return false;},_Im1:function(_Jm1,
transform,_Hm1){var _Jo=transform._2z.x+(transform.q.c*this._Vm1.x-transform.q.__h*this._Vm1.y);var _Ko=transform._2z.y+(transform.q.__h*this._Vm1.x+transform.q.c*this._Vm1.y);_Jm1._Xm1.x=_Jo-this._Dm1;_Jm1._Xm1.y=_Ko-this._Dm1;_Jm1._Ym1.x=_Jo+this._Dm1;_Jm1._Ym1.y=_Ko+this._Dm1;},_Km1:function(_Lm1,_h11){_Lm1._Am1=_h11*_Lj1*this._Dm1*this._Dm1;_Lm1._em1=this._Vm1;_Lm1._Bm1=_Lm1._Am1*(0.5*this._Dm1*this._Dm1+_rl1(this._Vm1,this._Vm1));},_Zm1:function(_Xo){return 0;},__m1:function(_Xo){return this._Vm1;
},_ue:function(){return 1;},_0n1:function(index){_Hj1(index==0);return this._Vm1;},_Mm1:function(transform,_2z,_Nm1,_Om1,_Hm1){var _em1=_vk1._Vf(transform._2z,_Gl1(transform.q,this._Vm1));var _Xo=_vk1._Ck1(_2z,_em1);var _Jv=_Xo.Length();_Nm1[0]=_Jv-this._Dm1;_Om1._EI(_vk1.Multiply(1/_Jv,_Xo));},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['m_p']=this._Vm1._Ik1();return _Ik;},_Jk1:function(data){this.parent.prototype._Jk1.call(this,data);this._Vm1._Jk1(data['m_p']);}}
;_Um1._ej1(_Cm1);function _1n1(){this.parent.call(this);this._nH=_Cm1._Qm1;this._Dm1=_Sj1;this._2n1=new _vk1();this._3n1=new _vk1();this._4n1=new _vk1();this._5n1=new _vk1();this._6n1=false;this._7n1=false;Object.seal(this);}_1n1.prototype={Set:function(_3c,_J5){this._3n1._EI(_3c);this._4n1._EI(_J5);this._6n1=false;this._7n1=false;},_Q3:function(){var shape=new _1n1();shape._2n1=this._2n1._Q3();shape._3n1=this._3n1._Q3();shape._4n1=this._4n1._Q3();shape._5n1=this._5n1._Q3();shape._6n1=this._6n1;shape._7n1=this._7n1;
return shape;},_Em1:function(){return 1;},_Fm1:function(transform,_2z){return false;},_Gm1:function(output,input,_gl1,_Hm1){var _ap=_Hl1(_gl1.q,_vk1._Ck1(input._ap,_gl1._2z));var _hm1=_Hl1(_gl1.q,_vk1._Ck1(input._hm1,_gl1._2z));var _Xo=_vk1._Ck1(_hm1,_ap);var _3c=this._3n1;var _J5=this._4n1;var e=_vk1._Ck1(_J5,_3c);var _Om1=new _vk1(e.y,-e.x);_Om1._Ek1();var _8n1=_rl1(_Om1,_vk1._Ck1(_3c,_ap));var _9n1=_rl1(_Om1,_Xo);if(_9n1==0.0){return false;}var _s7=_8n1/_9n1;if(_s7<0.0||input._M11<_s7){return false;}var q=_vk1._Vf(_ap,
_vk1.Multiply(_s7,_Xo));var _Y4=_vk1._Ck1(_J5,_3c);var _oD=_rl1(_Y4,_Y4);if(_oD==0.0){return false;}var __h=_rl1(_vk1._Ck1(q,_3c),_Y4)/_oD;if(__h<0.0||1.0<__h){return false;}output._R11=_s7;if(_8n1>0.0){output._Om1=_Gl1(_gl1.q,_Om1)._zk1();}else {output._Om1=_Gl1(_gl1.q,_Om1);}return true;},_Im1:function(_Jm1,_gl1,_Hm1){var _ec=(_gl1.q.c*this._3n1.x-_gl1.q.__h*this._3n1.y)+_gl1._2z.x;var _fc=(_gl1.q.__h*this._3n1.x+_gl1.q.c*this._3n1.y)+_gl1._2z.y;var _gc=(_gl1.q.c*this._4n1.x-_gl1.q.__h*this._4n1.y)+_gl1._2z.x;
var _hc=(_gl1.q.__h*this._4n1.x+_gl1.q.c*this._4n1.y)+_gl1._2z.y;var _an1=_Tl1(_ec,_gc);var _bn1=_Tl1(_fc,_hc);var _cn1=_Vl1(_ec,_gc);var _dn1=_Vl1(_fc,_hc);_Jm1._Xm1.x=_an1-this._Dm1;_Jm1._Xm1.y=_bn1-this._Dm1;_Jm1._Ym1.x=_cn1+this._Dm1;_Jm1._Ym1.y=_dn1+this._Dm1;},_Km1:function(_Lm1,_h11){_Lm1._Am1=0.0;_Lm1._em1=_vk1.Multiply(0.5,_vk1._Vf(this._3n1,this._4n1));_Lm1._Bm1=0.0;},_Mm1:function(_gl1,_2z,_Nm1,_Om1,_Hm1){var _3c=_Il1(_gl1,this._3n1);var _J5=_Il1(_gl1,this._4n1);var _Xo=_vk1._Ck1(_2z,_3c);var __h=_vk1._Ck1(_J5,
_3c);var _en1=_rl1(_Xo,__h);if(_en1>0){var _Ks=_rl1(__h,__h);if(_en1>_Ks){_Xo._EI(_vk1._Ck1(_2z,_J5));}else {_Xo._Ck1(_vk1.Multiply(_en1/_Ks,__h));}}var _Jv=_Xo.Length();_Nm1[0]=_Jv;_Om1._EI(_Jv>0?_vk1.Multiply(1/_Jv,_Xo):new _vk1(0,0));},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['m_vertex1']=this._3n1._Ik1();_Ik['m_vertex2']=this._4n1._Ik1();_Ik['m_hasVertex0']=this._6n1;if(this._6n1)_Ik['m_vertex0']=this._2n1._Ik1();_Ik['m_hasVertex3']=this._7n1;if(this._7n1)_Ik['m_vertex3']=this._5n1._Ik1();
return _Ik;},_Jk1:function(data){this.parent.prototype._Jk1.call(this,data);this._3n1._Jk1(data['m_vertex1']);this._4n1._Jk1(data['m_vertex2']);this._6n1=data['m_hasVertex0'];if(this._6n1)this._2n1._Jk1(data['m_vertex0']);this._7n1=data['m_hasVertex3'];if(this._7n1)this._5n1._Jk1(data['m_vertex3']);}};_1n1._ej1(_Cm1);function _fn1(){this.parent.call(this);this._nH=_Cm1._Sm1;this._Dm1=_Sj1;this._gn1=null;this._hn1=0;this._in1=new _vk1();this._jn1=new _vk1();this._kn1=false;this._ln1=false;Object.seal(this);
}_fn1._mn1=new _1n1();_fn1.prototype={_nn1:function(vertices,_c9){_Hj1(this._gn1==null&&this._hn1==0);_Hj1(_c9>=3);for(var i=1;i<_c9;++i){var _3c=vertices[i-1];var _J5=vertices[i];_Hj1(_yl1(_3c,_J5)>_Qj1*_Qj1);}this._hn1=_c9+1;this._gn1=new Array(this._hn1);for(var i=0;i<_c9;++i)this._gn1[i]=vertices[i]._Q3();this._gn1[_c9]=this._gn1[0]._Q3();this._in1._EI(this._gn1[this._hn1-2]);this._jn1._EI(this._gn1[1]);this._kn1=true;this._ln1=true;},_on1:function(vertices,_c9){_Hj1(this._gn1==null&&this._hn1==0);
_Hj1(_c9>=2);for(var i=1;i<_c9;++i){var _3c=vertices[i-1];var _J5=vertices[i];_Hj1(_yl1(_3c,_J5)>_Qj1*_Qj1);}this._hn1=_c9;this._gn1=new Array(_c9);for(var i=0;i<_c9;++i)this._gn1[i]=vertices[i]._Q3();this._kn1=false;this._ln1=false;this._in1._wk1();this._jn1._wk1();},_pn1:function(_qn1){this._in1._EI(_qn1);this._kn1=true;},_rn1:function(_sn1){this._jn1._EI(_sn1);this._ln1=true;},_Q3:function(){var shape=new _fn1();shape._hn1=this._hn1;shape._gn1=new Array(this._hn1);for(var i=0;i<this._hn1;++i)shape._gn1[i]=this._gn1[i]._Q3();
shape._in1=this._in1._Q3();shape._jn1=this._jn1._Q3();shape._kn1=this._kn1;shape._ln1=this._ln1;return shape;},_Em1:function(){return this._hn1-1;},_tn1:function(_un1,index){_Hj1(0<=index&&index<this._hn1-1);_un1._nH=_Cm1._Qm1;_un1._Dm1=this._Dm1;_un1._3n1=this._gn1[index+0];_un1._4n1=this._gn1[index+1];if(index>0){_un1._2n1=this._gn1[index-1];_un1._6n1=true;}else {_un1._2n1=this._in1;_un1._6n1=this._kn1;}if(index<this._hn1-2){_un1._5n1=this._gn1[index+2];_un1._7n1=true;}else {_un1._5n1=this._jn1;_un1._7n1=this._ln1;
}},_Fm1:function(transform,_2z){return false;},_Gm1:function(output,input,_gl1,_Hm1){_Hj1(_Hm1<this._hn1);var _vn1=_Hm1;var _wn1=_Hm1+1;if(_wn1==this._hn1){_wn1=0;}_fn1._mn1._3n1=this._gn1[_vn1]._Q3();_fn1._mn1._4n1=this._gn1[_wn1]._Q3();return _fn1._mn1._Gm1(output,input,_gl1,0);},_Im1:function(_Jm1,_gl1,_Hm1){_Hj1(_Hm1<this._hn1);var _vn1=_Hm1;var _wn1=_Hm1+1;if(_wn1==this._hn1){_wn1=0;}var _ec=(_gl1.q.c*this._gn1[_vn1].x-_gl1.q.__h*this._gn1[_vn1].y)+_gl1._2z.x;var _fc=(_gl1.q.__h*this._gn1[_vn1].x+_gl1.q.c*this._gn1[_vn1].y)+_gl1._2z.y;
var _gc=(_gl1.q.c*this._gn1[_wn1].x-_gl1.q.__h*this._gn1[_wn1].y)+_gl1._2z.x;var _hc=(_gl1.q.__h*this._gn1[_wn1].x+_gl1.q.c*this._gn1[_wn1].y)+_gl1._2z.y;_Jm1._Xm1.x=_Tl1(_ec,_gc);_Jm1._Xm1.y=_Tl1(_fc,_hc);_Jm1._Ym1.x=_Vl1(_ec,_gc);_Jm1._Ym1.y=_Vl1(_fc,_hc);},_Km1:function(_Lm1,_h11){_Lm1._Am1=0.0;_Lm1._em1._wk1();_Lm1._Bm1=0.0;},_Mm1:function(_gl1,_2z,_Nm1,_Om1,_Hm1){this._tn1(_fn1._mn1,_Hm1);_fn1._mn1._Mm1(_gl1,_2z,_Nm1,_Om1,0);},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,
_Ik);_Ik['m_count']=this._hn1;_Ik['m_vertices']=[];for(var i=0;i<this._hn1;++i)_Ik['m_vertices'].push(this._gn1[i]._Ik1());_Ik['m_hasPrevVertex']=this._kn1;if(this._kn1)_Ik['m_prevVertex']=this._in1._Ik1();_Ik['m_hasNextVertex']=this._ln1;if(this._ln1)_Ik['m_nextVertex']=this._jn1._Ik1();return _Ik;},_Jk1:function(data){this.parent.prototype._Jk1.call(this,data);this._hn1=data['m_count'];this._gn1=[];for(var i=0;i<this._hn1;++i){this._gn1[i]=new _vk1();this._gn1[i]._Jk1(data['m_vertices'][i]);}this._kn1=data['m_hasPrevVertex'];
if(this._kn1)this._in1._Jk1(data['m_prevVertex']);this._ln1=data['m_hasNextVertex'];if(this._ln1)this._jn1._Jk1(data['m_nextVertex']);}};_fn1._ej1(_Cm1);function _xn1(){this.parent.call(this);this._nH=_Cm1._Rm1;this._Dm1=_Sj1;this._hn1=0;this._yn1=new _vk1();this._gn1=new Array(_Nj1);this._zn1=new Array(_Nj1);Object.seal(this);}_xn1.prototype={_Q3:function(){var shape=new _xn1();shape._hn1=this._hn1;shape._yn1=this._yn1._Q3();for(var i=0;i<this._hn1;++i){shape._gn1[i]=this._gn1[i]._Q3();shape._zn1[i]=this._zn1[i]._Q3();
}return shape;},_Em1:function(){return 1;},Set:function(vertices,_c9){_Hj1(3<=_c9&&_c9<=_Nj1);if(_c9<3){this._An1(1.0,1.0);return;}var _c7=_Tl1(_c9,_Nj1);var _qC=new Array(_Nj1);var _Bn1=0;for(var i=0;i<_c7;++i){var _H5=vertices[i];var _Cn1=true;for(var _J6=0;_J6<_Bn1;++_J6){if(_yl1(_H5,_qC[_J6])<0.5*_Qj1){_Cn1=false;break;}}if(_Cn1){_qC[_Bn1++]=_H5._Q3();}}_c7=_Bn1;if(_c7<3){_Hj1(false);this._An1(1.0,1.0);return;}var _Dn1=0;var _Nb=_qC[0].x;for(i=1;i<_c7;++i){var x=_qC[i].x;if(x>_Nb||(x==_Nb&&_qC[i].y<_qC[_Dn1].y)){
_Dn1=i;_Nb=x;}}var hull=new Array(_Nj1);var _e7=0;var _En1=_Dn1;for(;;){hull[_e7]=_En1;var _Fn1=0;for(_J6=1;_J6<_c7;++_J6){if(_Fn1==_En1){_Fn1=_J6;continue;}var _Y4=_vk1._Ck1(_qC[_Fn1],_qC[hull[_e7]]);var _H5=_vk1._Ck1(_qC[_J6],_qC[hull[_e7]]);var c=_sl1(_Y4,_H5);if(c<0.0){_Fn1=_J6;}if(c==0.0&&_H5._Dk1()>_Y4._Dk1()){_Fn1=_J6;}}++_e7;_En1=_Fn1;if(_Fn1==_Dn1){break;}}this._hn1=_e7;for(i=0;i<_e7;++i){this._gn1[i]=_qC[hull[i]]._Q3();}for(i=0;i<_e7;++i){var _vn1=i;var _wn1=i+1<_e7?i+1:0;var _un1=_vk1._Ck1(this._gn1[_wn1],
this._gn1[_vn1]);_Hj1(_un1._Dk1()>_Kj1*_Kj1);this._zn1[i]=_tl1(_un1,1.0)._Q3();this._zn1[i]._Ek1();}this._yn1=_xn1._Gn1(this._gn1,_e7);},_An1:function(_Hn1,_In1,_em1,angle){this._hn1=4;this._gn1[0]=new _vk1(-_Hn1,-_In1);this._gn1[1]=new _vk1(_Hn1,-_In1);this._gn1[2]=new _vk1(_Hn1,_In1);this._gn1[3]=new _vk1(-_Hn1,_In1);this._zn1[0]=new _vk1(0.0,-1.0);this._zn1[1]=new _vk1(1.0,0.0);this._zn1[2]=new _vk1(0.0,1.0);this._zn1[3]=new _vk1(-1.0,0.0);if(!_em1)return;this._yn1._EI(_em1);var _gl1=new _fl1();_gl1._2z=_em1;
_gl1.q.Set(angle);for(var i=0;i<this._hn1;++i){this._gn1[i]._EI(_Il1(_gl1,this._gn1[i]));this._zn1[i]._EI(_Gl1(_gl1.q,this._zn1[i]));}},_Fm1:function(_gl1,_2z){var _Jn1=_Hl1(_gl1.q,_vk1._Ck1(_2z,_gl1._2z));for(var i=0;i<this._hn1;++i){var _ky=_rl1(this._zn1[i],_vk1._Ck1(_Jn1,this._gn1[i]));if(_ky>0.0){return false;}}return true;},_Gm1:function(output,input,_gl1,_Hm1){var _ap=_Hl1(_gl1.q,_vk1._Ck1(input._ap,_gl1._2z));var _hm1=_Hl1(_gl1.q,_vk1._Ck1(input._hm1,_gl1._2z));var _Xo=_vk1._Ck1(_hm1,_ap);var _RQ=0.0,
_Kn1=input._M11;var index=-1;for(var i=0;i<this._hn1;++i){var _8n1=_rl1(this._zn1[i],_vk1._Ck1(this._gn1[i],_ap));var _9n1=_rl1(this._zn1[i],_Xo);if(_9n1==0.0){if(_8n1<0.0){return false;}}else {if(_9n1<0.0&&_8n1<_RQ*_9n1){_RQ=_8n1/_9n1;index=i;}else if(_9n1>0.0&&_8n1<_Kn1*_9n1){_Kn1=_8n1/_9n1;}}if(_Kn1<_RQ){return false;}}_Hj1(0.0<=_RQ&&_RQ<=input._M11);if(index>=0){output._R11=_RQ;output._Om1=_Gl1(_gl1.q,this._zn1[index]);return true;}return false;},_Im1:function(_Jm1,_gl1,_Hm1){var _an1=(_gl1.q.c*this._gn1[0].x-_gl1.q.__h*this._gn1[0].y)+_gl1._2z.x;
var _bn1=(_gl1.q.__h*this._gn1[0].x+_gl1.q.c*this._gn1[0].y)+_gl1._2z.y;var _cn1=_an1;var _dn1=_bn1;for(var i=1;i<this._hn1;++i){var _Cb=(_gl1.q.c*this._gn1[i].x-_gl1.q.__h*this._gn1[i].y)+_gl1._2z.x;var _Db=(_gl1.q.__h*this._gn1[i].x+_gl1.q.c*this._gn1[i].y)+_gl1._2z.y;_an1=_Tl1(_an1,_Cb);_bn1=_Tl1(_bn1,_Db);_cn1=_Vl1(_cn1,_Cb);_dn1=_Vl1(_dn1,_Db);}_Jm1._Xm1.x=_an1-this._Dm1;_Jm1._Xm1.y=_bn1-this._Dm1;_Jm1._Ym1.x=_cn1+this._Dm1;_Jm1._Ym1.y=_dn1+this._Dm1;},_Km1:function(_Lm1,_h11){_Hj1(this._hn1>=3);
var _em1=new _vk1(0.0,0.0);var _Ln1=0.0;var _Bm1=0.0;var __h=new _vk1(0.0,0.0);for(var i=0;i<this._hn1;++i){__h._Vf(this._gn1[i]);}__h.Multiply(1.0/this._hn1);var _Mn1=1.0/3.0;for(var i=0;i<this._hn1;++i){var _Nn1=_vk1._Ck1(this._gn1[i],__h);var _On1=i+1<this._hn1?_vk1._Ck1(this._gn1[i+1],__h):_vk1._Ck1(this._gn1[0],__h);var _Pn1=_sl1(_Nn1,_On1);var _Qn1=0.5*_Pn1;_Ln1+=_Qn1;_em1._Vf(_vk1.Multiply(_Qn1*_Mn1,_vk1._Vf(_Nn1,_On1)));var _Rn1=_Nn1.x,_Sn1=_Nn1.y;var _Tn1=_On1.x,_Un1=_On1.y;var _Vn1=_Rn1*_Rn1+_Tn1*_Rn1+_Tn1*_Tn1;
var _Wn1=_Sn1*_Sn1+_Un1*_Sn1+_Un1*_Un1;_Bm1+=(0.25*_Mn1*_Pn1)*(_Vn1+_Wn1);}_Lm1._Am1=_h11*_Ln1;_Hj1(_Ln1>_Kj1);_em1.Multiply(1.0/_Ln1);_Lm1._em1=_vk1._Vf(_em1,__h);_Lm1._Bm1=_h11*_Bm1;_Lm1._Bm1+=_Lm1._Am1*(_rl1(_Lm1._em1,_Lm1._em1)-_rl1(_em1,_em1));},_ue:function(){return this._hn1;},_0n1:function(index){_Hj1(0<=index&&index<this._hn1);return this._gn1[index];},_Xn1:function(){for(var i=0;i<this._hn1;++i){var _vn1=i;var _wn1=i<this._hn1-1?_vn1+1:0;var _2z=this._gn1[_vn1];var e=_vk1._Ck1(this._gn1[_wn1],
_2z);for(var _J6=0;_J6<this._hn1;++_J6){if(_J6==_vn1||_J6==_wn1){continue;}var _H5=_vk1._Ck1(this._gn1[_J6],_2z);var c=_sl1(e,_H5);if(c<0.0){return false;}}}return true;},_Mm1:function(_gl1,_2z,_Yn1,_Om1,_Hm1){var _Jn1=_Hl1(_gl1.q,_vk1._Ck1(_2z,_gl1._2z));var maxDistance=-Number.MAX_VALUE;var _Zn1=_Jn1;for(var i=0;i<this._hn1;++i){var _ky=_rl1(this._zn1[i],_vk1._Ck1(_Jn1,this._gn1[i]));if(_ky>maxDistance){maxDistance=_ky;_Zn1=this._zn1[i];}}if(maxDistance>0){var __n1=_Zn1;var _0o1=maxDistance*maxDistance;for(var i=0;
i<this._hn1;++i){var _Nm1=_vk1._Ck1(_Jn1,this._gn1[i]);var _1o1=_Nm1._Dk1();if(_0o1>_1o1){__n1=_Nm1;_0o1=_1o1;}}_Yn1[0]=_sk1(_0o1);_Om1._EI(_Gl1(_gl1.q,__n1));_Om1._Ek1();}else {_Yn1[0]=maxDistance;_Om1._EI(_Gl1(_gl1.q,_Zn1));}},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['m_count']=this._hn1;_Ik['m_centroid']=this._yn1._Ik1();_Ik['m_vertices']=[];_Ik['m_normals']=[];for(var i=0;i<this._hn1;++i){_Ik['m_vertices'].push(this._gn1[i]._Ik1());_Ik['m_normals'].push(this._zn1[i]._Ik1());
}return _Ik;},_Jk1:function(data){this.parent.prototype._Jk1.call(this,data);this._hn1=data['m_count'];this._yn1._Jk1(data['m_centroid']);this._gn1=[];this._zn1=[];for(var i=0;i<this._hn1;++i){this._gn1[i]=new _vk1();this._gn1[i]._Jk1(data['m_vertices'][i]);this._zn1[i]=new _vk1();this._zn1[i]._Jk1(data['m_normals'][i]);}}};_xn1._Gn1=function(_2o1,_c9){_Hj1(_c9>=3);var c=new _vk1();var _Ln1=0.0;var _3o1=new _vk1(0.0,0.0);var _4o1=1.0/3.0;for(var i=0;i<_c9;++i){var _ap=_3o1;var _hm1=_2o1[i];var _5o1=i+1<_c9?_2o1[i+1]:_2o1[0];
var _Nn1=_vk1._Ck1(_hm1,_ap);var _On1=_vk1._Ck1(_5o1,_ap);var _Pn1=_sl1(_Nn1,_On1);var _Qn1=0.5*_Pn1;_Ln1+=_Qn1;c._Vf(_vk1.Multiply(_Qn1,_vk1.Multiply(_4o1,_vk1._Vf(_vk1._Vf(_ap,_hm1),_5o1))));}_Hj1(_Ln1>_Kj1);c.Multiply(1.0/_Ln1);return c;};_xn1._ej1(_Cm1);function _6o1(){this._7o1=0;this._8o1=0;}function _9o1(_ao1,_bo1){if(_ao1._7o1==_bo1._7o1){return _ao1._8o1-_bo1._8o1;}return _ao1._7o1-_bo1._7o1;}function _co1(){this._do1=new _eo1();this._fo1=0;this._go1=0;this._ho1=0;this._io1=[];this._jo1=0;this._ko1=[];
}_co1.prototype={_lo1:function(_Jm1,_mo1){var _no1=this._do1._lo1(_Jm1,_mo1);++this._go1;this._oo1(_no1);return _no1;},_po1:function(_no1){this._qo1(_no1);--this._go1;this._do1._po1(_no1);},_ro1:function(_no1,_Jm1,_so1){var buffer=this._do1._ro1(_no1,_Jm1,_so1);if(buffer){this._oo1(_no1);}},_to1:function(_no1){this._oo1(_no1);},_uo1:function(_no1){return this._do1._uo1(_no1);},_vo1:function(_no1){return this._do1._vo1(_no1);},_y01:function(_7o1,_8o1){var _wo1=this._do1._uo1(_7o1);var _xo1=this._do1._uo1(_8o1);
return _yo1(_wo1,_xo1);},_zo1:function(){return this._go1;},_Ao1:function(_zg1){this._ho1=0;this._io1.length=0;for(var i=0;i<this._jo1;++i){this._fo1=this._ko1[i];if(this._fo1==_co1._Bo1){continue;}var _Co1=this._do1._uo1(this._fo1);this._do1._Do1(this,_Co1);}this._jo1=0;this._io1.sort(_9o1);var i=0;while(i<this._ho1){var _Eo1=this._io1[i];var _Fo1=this._do1._vo1(_Eo1._7o1);var _Go1=this._do1._vo1(_Eo1._8o1);_zg1._Ho1(_Fo1,_Go1);++i;while(i<this._ho1){var _Io1=this._io1[i];if(_Io1._7o1!=_Eo1._7o1||_Io1._8o1!=_Eo1._8o1){
break;}++i;}}},_Do1:function(_zg1,_Jm1){this._do1._Do1(_zg1,_Jm1);},_Gm1:function(_zg1,input){this._do1._Gm1(_zg1,input);},_Jo1:function(){return this._do1._uF();},_Ko1:function(){return this._do1._Lo1();},_Mo1:function(){return this._do1._No1();},_Oo1:function(_Po1){this._do1._Oo1(_Po1);},_oo1:function(_no1){this._ko1[this._jo1]=_no1;++this._jo1;},_qo1:function(_no1){for(var i=0;i<this._jo1;++i){if(this._ko1[i]==_no1){this._ko1[i]=_co1._Bo1;}}},_Qo1:function(_no1){if(_no1==this._fo1){return true;}this._io1[this._ho1]=new _6o1();
this._io1[this._ho1]._7o1=_Tl1(_no1,this._fo1);this._io1[this._ho1]._8o1=_Vl1(_no1,this._fo1);++this._ho1;return true;}};_co1._Bo1=-1;function _Ro1(){this._gn1=null;this._hn1=0;this._Dm1=0;}_Ro1.prototype={_EI:function(_p7){this._gn1=_p7._gn1;this._hn1=_p7._hn1;this._Dm1=_p7._Dm1;},Set:function(shape,index){switch(shape._8g1()){case _Cm1._Pm1:{var _So1=shape;this._gn1=[_So1._Vm1];this._hn1=1;this._Dm1=_So1._Dm1;}break;case _Cm1._Rm1:{var _17=shape;this._gn1=_17._gn1;this._hn1=_17._hn1;this._Dm1=_17._Dm1;
}break;case _Cm1._Sm1:{var _To1=shape;_Hj1(0<=index&&index<_To1._hn1);this._gn1=[_To1._gn1[index]];if(index+1<_To1._hn1){this._gn1[1]=_To1._gn1[index+1];}else {this._gn1[1]=_To1._gn1[0];}this._hn1=2;this._Dm1=_To1._Dm1;}break;case _Cm1._Qm1:{var _un1=shape;this._gn1=[_un1._3n1,_un1._4n1];this._hn1=2;this._Dm1=_un1._Dm1;}break;default :_Hj1(false);}},_Zm1:function(__b,_0c){var _Uo1=0;var _Vo1=this._gn1[0].x*__b+this._gn1[0].y*_0c;for(var i=1;i<this._hn1;++i){var value=this._gn1[i].x*__b+this._gn1[i].y*_0c;
if(value>_Vo1){_Uo1=i;_Vo1=value;}}return _Uo1;},__m1:function(__b,_0c){return this._gn1[this._Zm1(__b,_0c)];},_ue:function(){return this._hn1;},_0n1:function(index){_Hj1(0<=index&&index<this._hn1);return this._gn1[index];}};function _Wo1(){this._Xo1=0;this._c9=0;this._Yo1=[0,0,0];this._Zo1=[0,0,0];};function __o1(){this._0p1=new _Ro1();this._1p1=new _Ro1();this._2p1=new _fl1();this._3p1=new _fl1();this._4p1=false;};function _5p1(){this._6p1=new _vk1();this._7p1=new _vk1();this._Nm1=0;this.iterations=0;};function _8p1(){
this._9p1=new _vk1();this._ap1=new _vk1();this.w=new _vk1();this._05=0;this._Yo1=0;this._Zo1=0;}_8p1.prototype={_EI:function(_p7){this._9p1.x=_p7._9p1.x;this._9p1.y=_p7._9p1.y;this._ap1.x=_p7._ap1.x;this._ap1.y=_p7._ap1.y;this.w.x=_p7.w.x;this.w.y=_p7.w.y;this._05=_p7._05;this._Yo1=_p7._Yo1;this._Zo1=_p7._Zo1;}};function _bp1(){this._cp1=[new _8p1(),new _8p1(),new _8p1()];this._hn1=0;}_bp1.prototype={_dp1:function(_b9,_0p1,_2p1,_1p1,_3p1){_Hj1(_b9._c9<=3);this._hn1=_b9._c9;var vertices=this._cp1;for(var i=0;
i<this._hn1;++i){var _H5=vertices[i];_H5._Yo1=_b9._Yo1[i];_H5._Zo1=_b9._Zo1[i];var _ep1=_0p1._0n1(_H5._Yo1);var _fp1=_1p1._0n1(_H5._Zo1);_H5._9p1.x=(_2p1.q.c*_ep1.x-_2p1.q.__h*_ep1.y)+_2p1._2z.x;_H5._9p1.y=(_2p1.q.__h*_ep1.x+_2p1.q.c*_ep1.y)+_2p1._2z.y;_H5._ap1.x=(_3p1.q.c*_fp1.x-_3p1.q.__h*_fp1.y)+_3p1._2z.x;_H5._ap1.y=(_3p1.q.__h*_fp1.x+_3p1.q.c*_fp1.y)+_3p1._2z.y;_H5.w.x=_H5._ap1.x-_H5._9p1.x;_H5.w.y=_H5._ap1.y-_H5._9p1.y;_H5._05=0.0;}if(this._hn1>1){var _gp1=_b9._Xo1;var _hp1=this._ip1();if(_hp1<0.5*_gp1||2.0*_gp1<_hp1||_hp1<_Kj1){
this._hn1=0;}}if(this._hn1==0){var _H5=vertices[0];_H5._Yo1=0;_H5._Zo1=0;var _ep1=_0p1._0n1(0);var _fp1=_1p1._0n1(0);_H5._9p1.x=(_2p1.q.c*_ep1.x-_2p1.q.__h*_ep1.y)+_2p1._2z.x;_H5._9p1.y=(_2p1.q.__h*_ep1.x+_2p1.q.c*_ep1.y)+_2p1._2z.y;_H5._ap1.x=(_3p1.q.c*_fp1.x-_3p1.q.__h*_fp1.y)+_3p1._2z.x;_H5._ap1.y=(_3p1.q.__h*_fp1.x+_3p1.q.c*_fp1.y)+_3p1._2z.y;_H5.w.x=_H5._ap1.x-_H5._9p1.x;_H5.w.y=_H5._ap1.y-_H5._9p1.y;_H5._05=1.0;this._hn1=1;}},_jp1:function(_b9){_b9._Xo1=this._ip1();_b9._c9=this._hn1;var vertices=this._cp1;
for(var i=0;i<this._hn1;++i){_b9._Yo1[i]=vertices[i]._Yo1;_b9._Zo1[i]=vertices[i]._Zo1;}},_kp1:function(_2z){switch(this._hn1){case 1:_2z.x=-this._cp1[0].w.x;_2z.y=-this._cp1[0].w.y;break;case 2:{var _lp1=this._cp1[1].w.x-this._cp1[0].w.x;var _mp1=this._cp1[1].w.y-this._cp1[0].w.y;var _np1=_lp1*-this._cp1[0].w.y-_mp1*-this._cp1[0].w.x;if(_np1>0.0){_2z.x=-1.0*_mp1;_2z.y=1.0*_lp1;}else {_2z.x=1.0*_mp1;_2z.y=-1.0*_lp1;}}break;default :_Hj1(false);_2z.x=_2z.y=0;break;}},_op1:function(_2z){switch(this._hn1){
case 1:_2z.x=this._cp1[0].w.x;_2z.y=this._cp1[0].w.y;break;case 2:_2z.x=(this._cp1[0]._05*this._cp1[0].w.x)+(this._cp1[1]._05*this._cp1[1].w.x);_2z.y=(this._cp1[0]._05*this._cp1[0].w.y)+(this._cp1[1]._05*this._cp1[1].w.y);break;case 3:_2z.x=_2z.y=0;break;default :_Hj1(false);_2z.x=_2z.y=0;break;}},_pp1:function(_qp1,_rp1){switch(this._hn1){case 1:_qp1.x=this._cp1[0]._9p1.x;_qp1.y=this._cp1[0]._9p1.y;_rp1.x=this._cp1[0]._ap1.x;_rp1.y=this._cp1[0]._ap1.y;break;case 2:_qp1.x=(this._cp1[0]._05*this._cp1[0]._9p1.x)+(this._cp1[1]._05*this._cp1[1]._9p1.x);
_qp1.y=(this._cp1[0]._05*this._cp1[0]._9p1.y)+(this._cp1[1]._05*this._cp1[1]._9p1.y);_rp1.x=(this._cp1[0]._05*this._cp1[0]._ap1.x)+(this._cp1[1]._05*this._cp1[1]._ap1.x);_rp1.y=(this._cp1[0]._05*this._cp1[0]._ap1.y)+(this._cp1[1]._05*this._cp1[1]._ap1.y);break;case 3:_qp1.x=(this._cp1[0]._05*this._cp1[0]._9p1.x)+(this._cp1[1]._05*this._cp1[1]._9p1.x)+(this._cp1[2]._05*this._cp1[2]._9p1.x);_qp1.y=(this._cp1[0]._05*this._cp1[0]._9p1.y)+(this._cp1[1]._05*this._cp1[1]._9p1.y)+(this._cp1[2]._05*this._cp1[2]._9p1.y);
_rp1.x=_qp1.x;_rp1.y=_qp1.y;break;default :_Hj1(false);break;}},_ip1:function(){switch(this._hn1){case 1:return 0.0;case 2:return _xl1(this._cp1[0].w,this._cp1[1].w);case 3:return(this._cp1[1].w.x-this._cp1[0].w.x)*(this._cp1[2].w.y-this._cp1[0].w.y)-(this._cp1[1].w.y-this._cp1[0].w.y)*(this._cp1[2].w.x-this._cp1[0].w.x);default :_Hj1(false);return 0.0;}},_sp1:function(){var _tp1=this._cp1[0].w;var _up1=this._cp1[1].w;var _lp1=_up1.x-_tp1.x;var _mp1=_up1.y-_tp1.y;var _vp1=-(_tp1.x*_lp1+_tp1.y*_mp1);if(_vp1<=0.0){
this._cp1[0]._05=1.0;this._hn1=1;return;}var _wp1=_up1.x*_lp1+_up1.y*_mp1;if(_wp1<=0.0){this._cp1[1]._05=1.0;this._hn1=1;this._cp1[0]._EI(this._cp1[1]);return;}var _xp1=1.0/(_wp1+_vp1);this._cp1[0]._05=_wp1*_xp1;this._cp1[1]._05=_vp1*_xp1;this._hn1=2;},_yp1:function(){var _tp1=this._cp1[0].w;var _up1=this._cp1[1].w;var _zp1=this._cp1[2].w;var _lp1=_up1.x-_tp1.x;var _mp1=_up1.y-_tp1.y;var _Ap1=_tp1.x*_lp1+_tp1.y*_mp1;var _Bp1=_up1.x*_lp1+_up1.y*_mp1;var _wp1=_Bp1;var _vp1=-_Ap1;var _Cp1=_zp1.x-_tp1.x;var _Dp1=_zp1.y-_tp1.y;
var _Ep1=_tp1.x*_Cp1+_tp1.y*_Dp1;var _Fp1=_zp1.x*_Cp1+_zp1.y*_Dp1;var _Gp1=_Fp1;var _Hp1=-_Ep1;var _Ip1=_zp1.x-_up1.x;var _Jp1=_zp1.y-_up1.y;var _Kp1=_up1.x*_Ip1+_up1.y*_Jp1;var _Lp1=_zp1.x*_Ip1+_zp1.y*_Jp1;var _Mp1=_Lp1;var _Np1=-_Kp1;var _Op1=_lp1*_Dp1-_mp1*_Cp1;var _Pp1=_Op1*(_up1.x*_zp1.y-_up1.y*_zp1.x);var _Qp1=_Op1*(_zp1.x*_tp1.y-_zp1.y*_tp1.x);var _Rp1=_Op1*(_tp1.x*_up1.y-_tp1.y*_up1.x);if(_vp1<=0.0&&_Hp1<=0.0){this._cp1[0]._05=1.0;this._hn1=1;return;}if(_wp1>0.0&&_vp1>0.0&&_Rp1<=0.0){var _xp1=1.0/(_wp1+_vp1);
this._cp1[0]._05=_wp1*_xp1;this._cp1[1]._05=_vp1*_xp1;this._hn1=2;return;}if(_Gp1>0.0&&_Hp1>0.0&&_Qp1<=0.0){var _Sp1=1.0/(_Gp1+_Hp1);this._cp1[0]._05=_Gp1*_Sp1;this._cp1[2]._05=_Hp1*_Sp1;this._hn1=2;this._cp1[1]._EI(this._cp1[2]);return;}if(_wp1<=0.0&&_Np1<=0.0){this._cp1[1]._05=1.0;this._hn1=1;this._cp1[0]._EI(this._cp1[1]);return;}if(_Gp1<=0.0&&_Mp1<=0.0){this._cp1[2]._05=1.0;this._hn1=1;this._cp1[0]._EI(this._cp1[2]);return;}if(_Mp1>0.0&&_Np1>0.0&&_Pp1<=0.0){var _Tp1=1.0/(_Mp1+_Np1);this._cp1[1]._05=_Mp1*_Tp1;
this._cp1[2]._05=_Np1*_Tp1;this._hn1=2;this._cp1[0]._EI(this._cp1[2]);return;}var _Up1=1.0/(_Pp1+_Qp1+_Rp1);this._cp1[0]._05=_Pp1*_Up1;this._cp1[1]._05=_Qp1*_Up1;this._cp1[2]._05=_Rp1*_Up1;this._hn1=3;}};var _Vp1=new _bp1();var _Wp1=new _vk1();var _Xp1=new _vk1();function _Yp1(output,_b9,input){++_Yp1._Zp1;var _0p1=input._0p1;var _1p1=input._1p1;var _2p1=input._2p1;var _3p1=input._3p1;_Vp1._dp1(_b9,_0p1,_2p1,_1p1,_3p1);var vertices=_Vp1._cp1;var __p1=20;var _0q1=[0,0,0],_1q1=[0,0,0];var _2q1=0;var _3q1=_Jj1;var _4q1=_3q1;
var _zc1=0;while(_zc1<__p1){_2q1=_Vp1._hn1;for(var i=0;i<_2q1;++i){_0q1[i]=vertices[i]._Yo1;_1q1[i]=vertices[i]._Zo1;}switch(_Vp1._hn1){case 1:break;case 2:_Vp1._sp1();break;case 3:_Vp1._yp1();break;default :_Hj1(false);}if(_Vp1._hn1==3){break;}_Vp1._op1(_Xp1);_4q1=_Xp1._Dk1();_3q1=_4q1;_Vp1._kp1(_Xp1);if(_Xp1._Dk1()<_Kj1*_Kj1){break;}var _5q1=vertices[_Vp1._hn1];_5q1._Yo1=_0p1._Zm1(_2p1.q.c*-_Xp1.x+_2p1.q.__h*-_Xp1.y,-_2p1.q.__h*-_Xp1.x+_2p1.q.c*-_Xp1.y);var _6q1=_0p1._0n1(_5q1._Yo1);_5q1._9p1.x=(_2p1.q.c*_6q1.x-_2p1.q.__h*_6q1.y)+_2p1._2z.x;
_5q1._9p1.y=(_2p1.q.__h*_6q1.x+_2p1.q.c*_6q1.y)+_2p1._2z.y;_5q1._Zo1=_1p1._Zm1(_3p1.q.c*_Xp1.x+_3p1.q.__h*_Xp1.y,-_3p1.q.__h*_Xp1.x+_3p1.q.c*_Xp1.y);var _7q1=_1p1._0n1(_5q1._Zo1);_5q1._ap1.x=(_3p1.q.c*_7q1.x-_3p1.q.__h*_7q1.y)+_3p1._2z.x;_5q1._ap1.y=(_3p1.q.__h*_7q1.x+_3p1.q.c*_7q1.y)+_3p1._2z.y;_5q1.w.x=_5q1._ap1.x-_5q1._9p1.x;_5q1.w.y=_5q1._ap1.y-_5q1._9p1.y;++_zc1;++_Yp1._8q1;var _9q1=false;for(var i=0;i<_2q1;++i){if(_5q1._Yo1==_0q1[i]&&_5q1._Zo1==_1q1[i]){_9q1=true;break;}}if(_9q1){break;}++_Vp1._hn1;
}_Yp1._aq1=_Vl1(_Yp1._aq1,_zc1);_Vp1._pp1(output._6p1,output._7p1);output._Nm1=_xl1(output._6p1,output._7p1);output.iterations=_zc1;_Vp1._jp1(_b9);if(input._4p1){var _bq1=_0p1._Dm1;var _cq1=_1p1._Dm1;if(output._Nm1>_bq1+_cq1&&output._Nm1>_Kj1){output._Nm1-=_bq1+_cq1;_Wp1.x=output._7p1.x-output._6p1.x;_Wp1.y=output._7p1.y-output._6p1.y;_Wp1._Ek1();output._6p1.x+=(_bq1*_Wp1.x);output._6p1.y+=(_bq1*_Wp1.y);output._7p1.x-=(_cq1*_Wp1.x);output._7p1.y-=(_cq1*_Wp1.y);}else {var _Jo=(0.5*(output._6p1.x+output._7p1.x));
var _Ko=(0.5*(output._6p1.y+output._7p1.y));output._6p1.x=_Jo;output._6p1.y=_Ko;output._7p1.x=_Jo;output._7p1.y=_Ko;output._Nm1=0.0;}}}_Yp1._Zp1=0;_Yp1._8q1=0;_Yp1._aq1=0;var _dq1=255;function _eq1(){}_eq1.prototype={_Yo1:0,_Zo1:0,_fq1:0,_gq1:0,_JC:function(){this._Yo1=this._Zo1=this._fq1=this._gq1=0;},_n6:function(){return this._Yo1|(this._Zo1<<8)|(this._fq1<<16)|(this._gq1<<24);},_EI:function(_0l){this._Yo1=_0l._Yo1;this._Zo1=_0l._Zo1;this._fq1=_0l._fq1;this._gq1=_0l._gq1;}};_eq1._hq1=0;_eq1._iq1=1;
function _jq1(){this._kq1=new _vk1();this._lq1=0;this._mq1=0;this.id=new _eq1();};_jq1.prototype={_Q3:function(){var _nq1=new _jq1();_nq1._kq1.x=this._kq1.x;_nq1._kq1.y=this._kq1.y;_nq1._lq1=this._lq1;_nq1._mq1=this._mq1;_nq1.id._EI(this.id);return _nq1;}};function _oq1(){this.points=new Array(_Mj1);this._pq1=new _vk1();this._kq1=new _vk1();this.type=0;this._qq1=0;};_oq1.prototype={_Q3:function(){var _rq1=new _oq1();_rq1._qq1=this._qq1;_rq1.type=this.type;_rq1._kq1.x=this._kq1.x;_rq1._kq1.y=this._kq1.y;_rq1._pq1.x=this._pq1.x;
_rq1._pq1.y=this._pq1.y;for(var i=0;i<this._qq1;++i)_rq1.points[i]=this.points[i]._Q3();return _rq1;},_EI:function(_rq1){this._qq1=_rq1._qq1;this.type=_rq1.type;this._kq1.x=_rq1._kq1.x;this._kq1.y=_rq1._kq1.y;this._pq1.x=_rq1._pq1.x;this._pq1.y=_rq1._pq1.y;for(var i=0;i<this._qq1;++i)this.points[i]=_rq1.points[i]._Q3();}};_oq1._sq1=0;_oq1._tq1=1;_oq1._uq1=2;_oq1._vq1=0;_oq1._wq1=1;_oq1._xq1=2;_oq1._yq1=3;function _zq1(){this._Om1=new _vk1();this.points=new Array(_Mj1);this._Aq1=new Array(_Mj1);}_zq1.prototype={
_Bq1:function(_rq1,_Cq1,_Dq1,_Eq1,_Fq1){if(_rq1._qq1==0){return;}switch(_rq1.type){case _oq1._sq1:{this._Om1.x=1;this._Om1.y=0;var _Gq1=(_Cq1.q.c*_rq1._kq1.x-_Cq1.q.__h*_rq1._kq1.y)+_Cq1._2z.x;var _Hq1=(_Cq1.q.__h*_rq1._kq1.x+_Cq1.q.c*_rq1._kq1.y)+_Cq1._2z.y;var _Iq1=(_Eq1.q.c*_rq1.points[0]._kq1.x-_Eq1.q.__h*_rq1.points[0]._kq1.y)+_Eq1._2z.x;var _Jq1=(_Eq1.q.__h*_rq1.points[0]._kq1.x+_Eq1.q.c*_rq1.points[0]._kq1.y)+_Eq1._2z.y;var _po=_Gq1-_Iq1;var _qo=_Hq1-_Jq1;if((_po*_po+_qo*_qo)>_Kj1*_Kj1){this._Om1.x=_Iq1-_Gq1;
this._Om1.y=_Jq1-_Hq1;this._Om1._Ek1();}var _Kq1=_Gq1+(_Dq1*this._Om1.x);var _Lq1=_Hq1+(_Dq1*this._Om1.y);var _Mq1=_Iq1-(_Fq1*this._Om1.x);var _Nq1=_Jq1-(_Fq1*this._Om1.y);this.points[0]=new _vk1(0.5*(_Kq1+_Mq1),0.5*(_Lq1+_Nq1));this._Aq1[0]=(_Mq1-_Kq1)*this._Om1.x+(_Nq1-_Lq1)*this._Om1.y;}break;case _oq1._tq1:{this._Om1.x=_Cq1.q.c*_rq1._pq1.x-_Cq1.q.__h*_rq1._pq1.y;this._Om1.y=_Cq1.q.__h*_rq1._pq1.x+_Cq1.q.c*_rq1._pq1.y;var _Oq1=(_Cq1.q.c*_rq1._kq1.x-_Cq1.q.__h*_rq1._kq1.y)+_Cq1._2z.x;var _Pq1=(_Cq1.q.__h*_rq1._kq1.x+_Cq1.q.c*_rq1._kq1.y)+_Cq1._2z.y;
for(var i=0;i<_rq1._qq1;++i){var _Qq1=(_Eq1.q.c*_rq1.points[i]._kq1.x-_Eq1.q.__h*_rq1.points[i]._kq1.y)+_Eq1._2z.x;var _Rq1=(_Eq1.q.__h*_rq1.points[i]._kq1.x+_Eq1.q.c*_rq1.points[i]._kq1.y)+_Eq1._2z.y;var _Xo=(_Qq1-_Oq1)*this._Om1.x+(_Rq1-_Pq1)*this._Om1.y;var _Kq1=_Qq1+((_Dq1-_Xo)*this._Om1.x);var _Lq1=_Rq1+((_Dq1-_Xo)*this._Om1.y);var _Mq1=(_Qq1-(_Fq1*this._Om1.x));var _Nq1=(_Rq1-(_Fq1*this._Om1.y));this.points[i]=new _vk1(0.5*(_Kq1+_Mq1),0.5*(_Lq1+_Nq1));this._Aq1[i]=(_Mq1-_Kq1)*this._Om1.x+(_Nq1-_Lq1)*this._Om1.y;
}}break;case _oq1._uq1:{this._Om1.x=_Eq1.q.c*_rq1._pq1.x-_Eq1.q.__h*_rq1._pq1.y;this._Om1.y=_Eq1.q.__h*_rq1._pq1.x+_Eq1.q.c*_rq1._pq1.y;var _Oq1=(_Eq1.q.c*_rq1._kq1.x-_Eq1.q.__h*_rq1._kq1.y)+_Eq1._2z.x;var _Pq1=(_Eq1.q.__h*_rq1._kq1.x+_Eq1.q.c*_rq1._kq1.y)+_Eq1._2z.y;for(var i=0;i<_rq1._qq1;++i){var _Qq1=(_Cq1.q.c*_rq1.points[i]._kq1.x-_Cq1.q.__h*_rq1.points[i]._kq1.y)+_Cq1._2z.x;var _Rq1=(_Cq1.q.__h*_rq1.points[i]._kq1.x+_Cq1.q.c*_rq1.points[i]._kq1.y)+_Cq1._2z.y;var _Xo=(_Qq1-_Oq1)*this._Om1.x+(_Rq1-_Pq1)*this._Om1.y;
var _Mq1=_Qq1+((_Fq1-_Xo)*this._Om1.x);var _Nq1=_Rq1+((_Fq1-_Xo)*this._Om1.y);var _Kq1=(_Qq1-(_Dq1*this._Om1.x));var _Lq1=(_Rq1-(_Dq1*this._Om1.y));this.points[i]=new _vk1(0.5*(_Kq1+_Mq1),0.5*(_Lq1+_Nq1));this._Aq1[i]=(_Kq1-_Mq1)*this._Om1.x+(_Lq1-_Nq1)*this._Om1.y;}this._Om1.x=-this._Om1.x;this._Om1.y=-this._Om1.y;}break;}}};function _Sq1(_Tq1,_Uq1,_Vq1,_Wq1){for(var i=0;i<_Mj1;++i){_Tq1[i]=_oq1._vq1;_Uq1[i]=_oq1._vq1;}for(var i=0;i<_Vq1._qq1;++i){var id=_Vq1.points[i].id;_Tq1[i]=_oq1._yq1;for(var _J6=0;
_J6<_Wq1._qq1;++_J6){if(_Wq1.points[_J6].id._n6()==id._n6()){_Tq1[i]=_oq1._xq1;break;}}}for(var i=0;i<_Wq1._qq1;++i){var id=_Wq1.points[i].id;_Uq1[i]=_oq1._wq1;for(var _J6=0;_J6<_Vq1._qq1;++_J6){if(_Vq1.points[_J6].id._n6()==id._n6()){_Uq1[i]=_oq1._xq1;break;}}}}function _Xq1(){this._H5=new _vk1();this.id=new _eq1();};function _Yq1(){this._ap=new _vk1(),this._hm1=new _vk1();this._M11=0;};function _Zq1(){this._Om1=new _vk1();this._R11=0;};function __q1(){this._Xm1=new _vk1();this._Ym1=new _vk1();}__q1.prototype={
_EI:function(other){this._Xm1.x=other._Xm1.x;this._Xm1.y=other._Xm1.y;this._Ym1.x=other._Ym1.x;this._Ym1.y=other._Ym1.y;},_Q3:function(){var _0r1=new __q1();_0r1._Xm1.x=this._Xm1.x;_0r1._Xm1.y=this._Xm1.y;_0r1._Ym1.x=this._Ym1.x;_0r1._Ym1.y=this._Ym1.y;return _0r1;},_Gk1:function(){return(this._Ym1.x-this._Xm1.x)>=0.0&&(this._Ym1.y-this._Xm1.y)>=0.0&&this._Xm1._Gk1()&&this._Ym1._Gk1();},_1r1:function(){return new _vk1(0.5*(this._Xm1.x+this._Ym1.x),0.5*(this._Xm1.y+this._Ym1.y));},_2r1:function(){return new _vk1(0.5*(this._Ym1.x-this._Xm1.x),
0.5*(this._Ym1.y-this._Xm1.y));},_3r1:function(){return 2.0*((this._Ym1.x-this._Xm1.x)+(this._Ym1.y-this._Xm1.y));},_4r1:function(_5r1,_6r1){if(_6r1){this._Xm1.x=_Tl1(_5r1._Xm1.x,_6r1._Xm1.x);this._Xm1.y=_Tl1(_5r1._Xm1.y,_6r1._Xm1.y);this._Ym1.x=_Vl1(_5r1._Ym1.x,_6r1._Ym1.x);this._Ym1.y=_Vl1(_5r1._Ym1.y,_6r1._Ym1.y);}else {this._Xm1.x=_Tl1(this._Xm1.x,_5r1._Xm1.x);this._Xm1.y=_Tl1(this._Xm1.y,_5r1._Xm1.y);this._Ym1.x=_Vl1(this._Ym1.x,_5r1._Ym1.x);this._Ym1.y=_Vl1(this._Ym1.y,_5r1._Ym1.y);}},_7r1:function(_Jm1){
return this._Xm1.x<=_Jm1._Xm1.x&&this._Xm1.y<=_Jm1._Xm1.y&&_Jm1._Ym1.x<=this._Ym1.x&&_Jm1._Ym1.y<=this._Ym1.y;},_Gm1:function(output,input){var _8r1=-_Jj1;var _9r1=_Jj1;var _2z=input._ap;var _Xo=_vk1._Ck1(input._hm1,input._ap);var _ar1=_Rl1(_Xo);var _Om1=new _vk1();for(var i=0;i<2;++i){if(_ar1._Ak1(i)<_Kj1){if(_2z._Ak1(i)<this._Xm1._Ak1(i)||this._Ym1._Ak1(i)<_2z._Ak1(i)){return false;}}else {var _br1=1.0/_Xo._Ak1(i);var _cr1=(this._Xm1._Ak1(i)-_2z._Ak1(i))*_br1;var _dr1=(this._Ym1._Ak1(i)-_2z._Ak1(i))*_br1;var __h=-1.0;
if(_cr1>_dr1){var _DD=_dr1;_dr1=_cr1;_cr1=_DD;__h=1.0;}if(_cr1>_8r1){_Om1.x=_Om1.y=0;_Om1._Bk1(i,__h);_8r1=_cr1;}_9r1=_Tl1(_9r1,_dr1);if(_8r1>_9r1){return false;}}}if(_8r1<0.0||input._M11<_8r1){return false;}output._R11=_8r1;output._Om1.x=_Om1.x;output._Om1.y=_Om1.y;return true;}};function _er1(_rq1,_fr1,_Cq1,_gr1,_Eq1){_rq1._qq1=0;var _qp1=_Il1(_Cq1,_fr1._Vm1);var _rp1=_Il1(_Eq1,_gr1._Vm1);var __b=_rp1.x-_qp1.x;var _0c=_rp1.y-_qp1.y;var _hr1=__b*__b+_0c*_0c;var _bq1=_fr1._Dm1,_cq1=_gr1._Dm1;var _K01=_bq1+_cq1;
if(_hr1>_K01*_K01){return;}_rq1.type=_oq1._sq1;_rq1._kq1.x=_fr1._Vm1.x;_rq1._kq1.y=_fr1._Vm1.y;_rq1._pq1.x=_rq1._pq1.y=0;_rq1._qq1=1;_rq1.points[0]=new _jq1();_rq1.points[0]._kq1.x=_gr1._Vm1.x;_rq1.points[0]._kq1.y=_gr1._Vm1.y;_rq1.points[0].id._JC();}function _ir1(_rq1,_jr1,_Cq1,_gr1,_Eq1){_rq1._qq1=0;var c=_Il1(_Eq1,_gr1._Vm1);var _kr1=_Kl1(_Cq1,c);var _lr1=0;var _mr1=-_Jj1;var _K01=_jr1._Dm1+_gr1._Dm1;var vertexCount=_jr1._hn1;var vertices=_jr1._gn1;var _nr1=_jr1._zn1;for(var i=0;i<vertexCount;++i){var __h=_nr1[i].x*(_kr1.x-vertices[i].x)+_nr1[i].y*(_kr1.y-vertices[i].y);
if(__h>_K01){return;}if(__h>_mr1){_mr1=__h;_lr1=i;}}var _or1=_lr1;var _pr1=_or1+1<vertexCount?_or1+1:0;var _3c=vertices[_or1];var _J5=vertices[_pr1];if(_mr1<_Kj1){_rq1._qq1=1;_rq1.type=_oq1._tq1;_rq1._pq1.x=_nr1[_lr1].x;_rq1._pq1.y=_nr1[_lr1].y;_rq1._kq1.x=0.5*(_3c.x+_J5.x);_rq1._kq1.y=0.5*(_3c.y+_J5.y);_rq1.points[0]=new _jq1();_rq1.points[0]._kq1.x=_gr1._Vm1.x;_rq1.points[0]._kq1.y=_gr1._Vm1.y;_rq1.points[0].id._JC();return;}var _qr1=(_kr1.x-_3c.x)*(_J5.x-_3c.x)+(_kr1.y-_3c.y)*(_J5.y-_3c.y);var _I5=(_kr1.x-_J5.x)*(_3c.x-_J5.x)+(_kr1.y-_J5.y)*(_3c.y-_J5.y);
if(_qr1<=0.0){if(_yl1(_kr1,_3c)>_K01*_K01){return;}_rq1._qq1=1;_rq1.type=_oq1._tq1;_rq1._pq1.x=_kr1.x-_3c.x;_rq1._pq1.y=_kr1.y-_3c.y;_rq1._pq1._Ek1();_rq1._kq1.x=_3c.x;_rq1._kq1.y=_3c.y;_rq1.points[0]=new _jq1();_rq1.points[0]._kq1.x=_gr1._Vm1.x;_rq1.points[0]._kq1.y=_gr1._Vm1.y;_rq1.points[0].id._JC();}else if(_I5<=0.0){if(_yl1(_kr1,_J5)>_K01*_K01){return;}_rq1._qq1=1;_rq1.type=_oq1._tq1;_rq1._pq1.x=_kr1.x-_J5.x;_rq1._pq1.y=_kr1.y-_J5.y;_rq1._pq1._Ek1();_rq1._kq1.x=_J5.x;_rq1._kq1.y=_J5.y;_rq1.points[0]=new _jq1();
_rq1.points[0]._kq1.x=_gr1._Vm1.x;_rq1.points[0]._kq1.y=_gr1._Vm1.y;_rq1.points[0].id._JC();}else {var _rr1=0.5*(_3c.x+_J5.x);var _sr1=0.5*(_3c.y+_J5.y);var _tr1=(_kr1.x-_rr1)*_nr1[_or1].x+(_kr1.y-_sr1)*_nr1[_or1].y;if(_tr1>_K01){return;}_rq1._qq1=1;_rq1.type=_oq1._tq1;_rq1._pq1.x=_nr1[_or1].x;_rq1._pq1.y=_nr1[_or1].y;_rq1._kq1.x=_rr1;_rq1._kq1.y=_sr1;_rq1.points[0]=new _jq1();_rq1.points[0]._kq1.x=_gr1._Vm1.x;_rq1.points[0]._kq1.y=_gr1._Vm1.y;_rq1.points[0].id._JC();}}function _ur1(_vr1,_wr1,_xr1,_yr1,
_zr1){var _Ar1=_wr1._hn1;var _Br1=_yr1._hn1;var _Cr1=_wr1._zn1;var _Dr1=_wr1._gn1;var _Er1=_yr1._gn1;var _gl1=_Nl1(_zr1,_xr1);var _Uo1=0;var _Fr1=-_Jj1;for(var i=0;i<_Ar1;++i){var _Gr1=_gl1.q.c*_Cr1[i].x-_gl1.q.__h*_Cr1[i].y;var _Hr1=_gl1.q.__h*_Cr1[i].x+_gl1.q.c*_Cr1[i].y;var _ec=(_gl1.q.c*_Dr1[i].x-_gl1.q.__h*_Dr1[i].y)+_gl1._2z.x;var _fc=(_gl1.q.__h*_Dr1[i].x+_gl1.q.c*_Dr1[i].y)+_gl1._2z.y;var _sj=_Jj1;for(var _J6=0;_J6<_Br1;++_J6){var _Ir1=_Gr1*(_Er1[_J6].x-_ec)+_Hr1*(_Er1[_J6].y-_fc);if(_Ir1<_sj){_sj=_Ir1;
}}if(_sj>_Fr1){_Fr1=_sj;_Uo1=i;}}_vr1[0]=_Uo1;return _Fr1;}function _Jr1(c,_wr1,_xr1,_Kr1,_yr1,_zr1){var _Lr1=_wr1._zn1;var _Br1=_yr1._hn1;var _Mr1=_yr1._gn1;var _Nr1=_yr1._zn1;_Hj1(0<=_Kr1&&_Kr1<_wr1._hn1);var _Or1=_xr1.q.c*_Lr1[_Kr1].x-_xr1.q.__h*_Lr1[_Kr1].y;var _Pr1=_xr1.q.__h*_Lr1[_Kr1].x+_xr1.q.c*_Lr1[_Kr1].y;var _Qr1=_zr1.q.c*_Or1+_zr1.q.__h*_Pr1;var _Rr1=-_zr1.q.__h*_Or1+_zr1.q.c*_Pr1;var index=0;var _Sr1=_Jj1;for(var i=0;i<_Br1;++i){var _ky=_Qr1*_Nr1[i].x+_Rr1*_Nr1[i].y;if(_ky<_Sr1){_Sr1=_ky;index=i;
}}var _vn1=index;var _wn1=_vn1+1<_Br1?_vn1+1:0;c[0]._H5.x=(_zr1.q.c*_Mr1[_vn1].x-_zr1.q.__h*_Mr1[_vn1].y)+_zr1._2z.x;c[0]._H5.y=(_zr1.q.__h*_Mr1[_vn1].x+_zr1.q.c*_Mr1[_vn1].y)+_zr1._2z.y;c[0].id._Yo1=_Kr1;c[0].id._Zo1=_vn1;c[0].id._fq1=_eq1._iq1;c[0].id._gq1=_eq1._hq1;c[1]._H5.x=(_zr1.q.c*_Mr1[_wn1].x-_zr1.q.__h*_Mr1[_wn1].y)+_zr1._2z.x;c[1]._H5.y=(_zr1.q.__h*_Mr1[_wn1].x+_zr1.q.c*_Mr1[_wn1].y)+_zr1._2z.y;c[1].id._Yo1=_Kr1;c[1].id._Zo1=_wn1;c[1].id._fq1=_eq1._iq1;c[1].id._gq1=_eq1._hq1;}function _Tr1(_rq1,
_Ur1,_Cq1,_Vr1,_Eq1){_rq1._qq1=0;var _Wr1=_Ur1._Dm1+_Vr1._Dm1;var _Xr1=[0];var _Yr1=_ur1(_Xr1,_Ur1,_Cq1,_Vr1,_Eq1);if(_Yr1>_Wr1)return;var _Zr1=[0];var __r1=_ur1(_Zr1,_Vr1,_Eq1,_Ur1,_Cq1);if(__r1>_Wr1)return;var _wr1;var _yr1;var _xr1,_zr1;var _Kr1=0;var _sP=0;var _0s1=0.1*_Qj1;if(__r1>_Yr1+_0s1){_wr1=_Vr1;_yr1=_Ur1;_xr1=_Eq1;_zr1=_Cq1;_Kr1=_Zr1[0];_rq1.type=_oq1._uq1;_sP=1;}else {_wr1=_Ur1;_yr1=_Vr1;_xr1=_Cq1;_zr1=_Eq1;_Kr1=_Xr1[0];_rq1.type=_oq1._tq1;_sP=0;}_Jr1(_Tr1._1s1,_wr1,_xr1,_Kr1,_yr1,_zr1);var _Ar1=_wr1._hn1;
var _2s1=_wr1._gn1;var _3s1=_Kr1;var _4s1=_Kr1+1<_Ar1?_Kr1+1:0;var _5s1=_2s1[_3s1];var _6s1=_2s1[_4s1];_Tr1._7s1.x=_6s1.x-_5s1.x;_Tr1._7s1.y=_6s1.y-_5s1.y;_Tr1._7s1._Ek1();var _8s1=1.0*_Tr1._7s1.y;var _9s1=-1.0*_Tr1._7s1.x;var _Oq1=0.5*(_5s1.x+_6s1.x);var _Pq1=0.5*(_5s1.y+_6s1.y);var _as1=_xr1.q.c*_Tr1._7s1.x-_xr1.q.__h*_Tr1._7s1.y;var _bs1=_xr1.q.__h*_Tr1._7s1.x+_xr1.q.c*_Tr1._7s1.y;var _cs1=1.0*_bs1;var _ds1=-1.0*_as1;_5s1=_Il1(_xr1,_5s1);_6s1=_Il1(_xr1,_6s1);var _es1=_cs1*_5s1.x+_ds1*_5s1.y;var _fs1=-(_as1*_5s1.x+_bs1*_5s1.y)+_Wr1;
var _gs1=(_as1*_6s1.x+_bs1*_6s1.y)+_Wr1;var _hs1=new Array(2);var _is1=new Array(2);var _js1;_js1=_ks1(_hs1,_Tr1._1s1,-_as1,-_bs1,_fs1,_3s1);if(_js1<2)return;_js1=_ks1(_is1,_hs1,_as1,_bs1,_gs1,_4s1);if(_js1<2){return;}_rq1._pq1.x=_8s1;_rq1._pq1.y=_9s1;_rq1._kq1.x=_Oq1;_rq1._kq1.y=_Pq1;var _qq1=0;for(var i=0;i<_Mj1;++i){var _mr1=(_cs1*_is1[i]._H5.x+_ds1*_is1[i]._H5.y)-_es1;if(_mr1<=_Wr1){var _ls1=_rq1.points[_qq1]=new _jq1();_ls1._kq1._EI(_Kl1(_zr1,_is1[i]._H5));_ls1.id._EI(_is1[i].id);if(_sP){var _ms1=new _eq1();
_ms1._EI(_ls1.id);_ls1.id._Yo1=_ms1._Zo1;_ls1.id._Zo1=_ms1._Yo1;_ls1.id._fq1=_ms1._gq1;_ls1.id._gq1=_ms1._fq1;}++_qq1;}}_rq1._qq1=_qq1;}_Tr1._7s1=new _vk1();_Tr1._1s1=[new _Xq1(),new _Xq1()];function _ns1(_rq1,_Xr1,_Cq1,_gr1,_Eq1){_rq1._qq1=0;var _os1=_Kl1(_Cq1,_Il1(_Eq1,_gr1._Vm1));var _Ij1=_Xr1._3n1,_Sk1=_Xr1._4n1;var _Oj=_Sk1.x-_Ij1.x;var _6F=_Sk1.y-_Ij1.y;var _G5=_Oj*(_Sk1.x-_os1.x)+_6F*(_Sk1.y-_os1.y);var _H5=_Oj*(_os1.x-_Ij1.x)+_6F*(_os1.y-_Ij1.y);var _K01=_Xr1._Dm1+_gr1._Dm1;var _ms1=new _eq1();_ms1._Zo1=0;
_ms1._gq1=_eq1._hq1;if(_H5<=0.0){var _ps1=_Ij1;var __b=_os1.x-_ps1.x;var _0c=_os1.y-_ps1.y;var _iE=__b*__b+_0c*_0c;if(_iE>_K01*_K01){return;}if(_Xr1._6n1){var _qs1=_Xr1._2n1;var _rs1=_Ij1;var _ss1=_rs1.x-_qs1.x;var _ts1=_rs1.y-_qs1.y;var _qr1=_ss1*(_rs1.x-_os1.x)+_ts1*(_rs1.y-_os1.y);if(_qr1>0.0){return;}}_ms1._Yo1=0;_ms1._fq1=_eq1._hq1;_rq1._qq1=1;_rq1.type=_oq1._sq1;_rq1._pq1.x=_rq1._pq1.y=0;_rq1._kq1.x=_ps1.x;_rq1._kq1.y=_ps1.y;_rq1.points[0]=new _jq1();_rq1.points[0].id._EI(_ms1);_rq1.points[0]._kq1.x=_gr1._Vm1.x;
_rq1.points[0]._kq1.y=_gr1._Vm1.y;return;}if(_G5<=0.0){var _ps1=_Sk1;var __b=_os1.x-_ps1.x;var _0c=_os1.y-_ps1.y;var _iE=__b*__b+_0c*_0c;if(_iE>_K01*_K01){return;}if(_Xr1._7n1){var _us1=_Xr1._5n1;var _vs1=_Sk1;var _ws1=_us1.x-_vs1.x;var _xs1=_us1.y-_vs1.y;var _J5=_ws1*(_os1.x-_vs1.x)+_xs1*(_os1.y-_vs1.y);if(_J5>0.0){return;}}_ms1._Yo1=1;_ms1._fq1=_eq1._hq1;_rq1._qq1=1;_rq1.type=_oq1._sq1;_rq1._pq1.x=_rq1._pq1.y=0;_rq1._kq1.x=_ps1.x;_rq1._kq1.y=_ps1.y;_rq1.points[0]=new _jq1();_rq1.points[0].id._EI(_ms1);_rq1.points[0]._kq1.x=_gr1._Vm1.x;
_rq1.points[0]._kq1.y=_gr1._Vm1.y;return;}var _ys1=_Oj*_Oj+_6F*_6F;_Hj1(_ys1>0.0);var _zs1=(1.0/_ys1)*((_G5*_Ij1.x)+(_H5*_Sk1.x));var _As1=(1.0/_ys1)*((_G5*_Ij1.y)+(_H5*_Sk1.y));var __b=_os1.x-_zs1;var _0c=_os1.y-_As1;var _iE=__b*__b+_0c*_0c;if(_iE>_K01*_K01){return;}var _Gr1=-_6F;var _Hr1=_Oj;if(_Gr1*(_os1.x-_Ij1.x)+_Hr1*(_os1.y-_Ij1.y)<0.0){_Gr1=-_Gr1;_Hr1=-_Hr1;}_ms1._Yo1=0;_ms1._fq1=_eq1._iq1;_rq1._qq1=1;_rq1.type=_oq1._tq1;_rq1._pq1.x=_Gr1;_rq1._pq1.y=_Hr1;_rq1._pq1._Ek1();_rq1._kq1.x=_Ij1.x;_rq1._kq1.y=_Ij1.y;
_rq1.points[0]=new _jq1();_rq1.points[0].id._EI(_ms1);_rq1.points[0]._kq1.x=_gr1._Vm1.x;_rq1.points[0]._kq1.y=_gr1._Vm1.y;}function _Bs1(){this.type=0;this.index=0;this._mr1=0;}_Bs1._Cs1=0;_Bs1._Ds1=1;_Bs1._Es1=2;function _Fs1(){this.vertices=new Array(_Nj1);this._nr1=new Array(_Nj1);this._c9=0;};function _Gs1(){this._vn1=0,this._wn1=0;this._3c=new _vk1(),this._J5=new _vk1();this._Om1=new _vk1();this._Hs1=new _vk1();this._fs1=0;this._Is1=new _vk1();this._gs1=0;};function _Js1(){this._Ks1=new _Fs1();this._Ls1=new _fl1();
this._Ms1=new _vk1();this._Ns1=new _vk1(),this._Os1=new _vk1(),this._Ps1=new _vk1(),this._Qs1=new _vk1();this._Rs1=new _vk1(),this._Ss1=new _vk1(),this._Ts1=new _vk1();this._Us1=new _vk1();this._Vs1=0,this._Ws1=0;this._Xs1=new _vk1(),this._Ys1=new _vk1();this._Dm1=0;this._Zs1=false;}_Js1.__s1=new _vk1();_Js1._0t1=new _vk1();_Js1._1t1=new _vk1();_Js1.prototype={_2t1:function(_rq1,_Xr1,_Cq1,_3t1,_Eq1){this._Ls1._EI(_Nl1(_Cq1,_Eq1));this._Ms1.x=(this._Ls1.q.c*_3t1._yn1.x-this._Ls1.q.__h*_3t1._yn1.y)+this._Ls1._2z.x;
this._Ms1.y=(this._Ls1.q.__h*_3t1._yn1.x+this._Ls1.q.c*_3t1._yn1.y)+this._Ls1._2z.y;this._Ns1.x=_Xr1._2n1.x;this._Ns1.y=_Xr1._2n1.y;this._Os1.x=_Xr1._3n1.x;this._Os1.y=_Xr1._3n1.y;this._Ps1.x=_Xr1._4n1.x;this._Ps1.y=_Xr1._4n1.y;this._Qs1.x=_Xr1._5n1.x;this._Qs1.y=_Xr1._5n1.y;var _4t1=_Xr1._6n1;var _5t1=_Xr1._7n1;_Js1.__s1.x=this._Ps1.x-this._Os1.x;_Js1.__s1.y=this._Ps1.y-this._Os1.y;_Js1.__s1._Ek1();this._Ss1.x=_Js1.__s1.y;this._Ss1.y=-_Js1.__s1.x;var _6t1=this._Ss1.x*(this._Ms1.x-this._Os1.x)+this._Ss1.y*(this._Ms1.y-this._Os1.y);
var _7t1=0.0,_8t1=0.0;var _9t1=false,_at1=false;if(_4t1){_Js1._0t1.x=this._Os1.x-this._Ns1.x;_Js1._0t1.y=this._Os1.y-this._Ns1.y;_Js1._0t1._Ek1();this._Rs1.x=_Js1._0t1.y;this._Rs1.y=-_Js1._0t1.x;_9t1=(_Js1._0t1.x*_Js1.__s1.y-_Js1._0t1.y*_Js1.__s1.x)>=0;_7t1=this._Rs1.x*(this._Ms1.x-this._Ns1.x)+this._Rs1.y*(this._Ms1.y-this._Ns1.y);}if(_5t1){_Js1._1t1.x=this._Qs1.x-this._Ps1.x;_Js1._1t1.y=this._Qs1.y-this._Ps1.y;_Js1._1t1._Ek1();this._Ts1.x=_Js1._1t1.y;this._Ts1.y=-_Js1._1t1.x;_at1=(_Js1.__s1.x*_Js1._1t1.y-_Js1.__s1.y*_Js1._1t1.x)>0.0;
_8t1=this._Ts1.x*(this._Ms1.x-this._Ps1.x)+this._Ts1.y*(this._Ms1.y-this._Ps1.y);}if(_4t1&&_5t1){if(_9t1&&_at1){this._Zs1=_7t1>=0.0||_6t1>=0.0||_8t1>=0.0;if(this._Zs1){this._Us1.x=this._Ss1.x;this._Us1.y=this._Ss1.y;this._Xs1.x=this._Rs1.x;this._Xs1.y=this._Rs1.y;this._Ys1.x=this._Ts1.x;this._Ys1.y=this._Ts1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;this._Xs1.x=-this._Ss1.x;this._Xs1.y=-this._Ss1.y;this._Ys1.x=-this._Ss1.x;this._Ys1.y=-this._Ss1.y;}}else if(_9t1){this._Zs1=_7t1>=0.0||(_6t1>=0.0&&_8t1>=0.0);
if(this._Zs1){this._Us1.x=this._Ss1.x;this._Us1.y=this._Ss1.y;this._Xs1.x=this._Rs1.x;this._Xs1.y=this._Rs1.y;this._Ys1.x=this._Ss1.x;this._Ys1.y=this._Ss1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;this._Xs1.x=-this._Ts1.x;this._Xs1.y=-this._Ts1.y;this._Ys1.x=-this._Ss1.x;this._Ys1.y=-this._Ss1.y;}}else if(_at1){this._Zs1=_8t1>=0.0||(_7t1>=0.0&&_6t1>=0.0);if(this._Zs1){this._Us1.x=this._Ss1.x;this._Us1.y=this._Ss1.y;this._Xs1.x=this._Ss1.x;this._Xs1.y=this._Ss1.y;this._Ys1.x=this._Ts1.x;
this._Ys1.y=this._Ts1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;this._Xs1.x=-this._Ss1.x;this._Xs1.y=-this._Ss1.y;this._Ys1.x=-this._Rs1.x;this._Ys1.y=-this._Rs1.y;}}else {this._Zs1=_7t1>=0.0&&_6t1>=0.0&&_8t1>=0.0;if(this._Zs1){this._Us1.x=this._Ss1.x;this._Us1.y=this._Ss1.y;this._Xs1.x=this._Ss1.x;this._Xs1.y=this._Ss1.y;this._Ys1.x=this._Ss1.x;this._Ys1.y=this._Ss1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;this._Xs1.x=-this._Ts1.x;this._Xs1.y=-this._Ts1.y;this._Ys1.x=-this._Rs1.x;
this._Ys1.y=-this._Rs1.y;}}}else if(_4t1){if(_9t1){this._Zs1=_7t1>=0.0||_6t1>=0.0;if(this._Zs1){this._Us1.x=this._Ss1.x;this._Us1.y=this._Ss1.y;this._Xs1.x=this._Rs1.x;this._Xs1.y=this._Rs1.y;this._Ys1.x=-this._Ss1.x;this._Ys1.y=-this._Ss1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;this._Xs1.x=this._Ss1.x;this._Xs1.y=this._Ss1.y;this._Ys1.x=-this._Ss1.x;this._Ys1.y=-this._Ss1.y;}}else {this._Zs1=_7t1>=0.0&&_6t1>=0.0;if(this._Zs1){this._Us1.x=this._Ss1.x;this._Us1.y=this._Ss1.y;this._Xs1.x=this._Ss1.x;
this._Xs1.y=this._Ss1.y;this._Ys1.x=-this._Ss1.x;this._Ys1.y=-this._Ss1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;this._Xs1.x=this._Ss1.x;this._Xs1.y=this._Ss1.y;this._Ys1.x=-this._Rs1.x;this._Ys1.y=-this._Rs1.y;}}}else if(_5t1){if(_at1){this._Zs1=_6t1>=0.0||_8t1>=0.0;if(this._Zs1){this._Us1.x=this._Ss1.x;this._Us1.y=this._Ss1.y;this._Xs1.x=-this._Ss1.x;this._Xs1.y=-this._Ss1.y;this._Ys1.x=this._Ts1.x;this._Ys1.y=this._Ts1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;
this._Xs1.x=-this._Ss1.x;this._Xs1.y=-this._Ss1.y;this._Ys1.x=this._Ss1.x;this._Ys1.y=this._Ss1.y;}}else {this._Zs1=_6t1>=0.0&&_8t1>=0.0;if(this._Zs1){this._Us1.x=this._Ss1.x;this._Us1.y=this._Ss1.y;this._Xs1.x=-this._Ss1.x;this._Xs1.y=-this._Ss1.y;this._Ys1.x=this._Ss1.x;this._Ys1.y=this._Ss1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;this._Xs1.x=-this._Ts1.x;this._Xs1.y=-this._Ts1.y;this._Ys1.x=this._Ss1.x;this._Ys1.y=this._Ss1.y;}}}else {this._Zs1=_6t1>=0.0;if(this._Zs1){this._Us1.x=this._Ss1.x;
this._Us1.y=this._Ss1.y;this._Xs1.x=-this._Ss1.x;this._Xs1.y=-this._Ss1.y;this._Ys1.x=-this._Ss1.x;this._Ys1.y=-this._Ss1.y;}else {this._Us1.x=-this._Ss1.x;this._Us1.y=-this._Ss1.y;this._Xs1.x=this._Ss1.x;this._Xs1.y=this._Ss1.y;this._Ys1.x=this._Ss1.x;this._Ys1.y=this._Ss1.y;}}this._Ks1._c9=_3t1._hn1;for(var i=0;i<_3t1._hn1;++i){this._Ks1.vertices[i]=_Il1(this._Ls1,_3t1._gn1[i]);this._Ks1._nr1[i]=_Gl1(this._Ls1.q,_3t1._zn1[i]);}this._Dm1=2.0*_Sj1;_rq1._qq1=0;var _bt1=this._ct1();if(_bt1.type==_Bs1._Cs1){
return;}if(_bt1._mr1>this._Dm1){return;}var _dt1=this._et1();if(_dt1.type!=_Bs1._Cs1&&_dt1._mr1>this._Dm1){return;}var _ft1=0.98;var _gt1=0.001;var _ht1=new _Bs1();if(_dt1.type==_Bs1._Cs1){_ht1=_bt1;}else if(_dt1._mr1>_ft1*_bt1._mr1+_gt1){_ht1=_dt1;}else {_ht1=_bt1;}var _Fn1=new Array(2);var _it1=new _Gs1();if(_ht1.type==_Bs1._Ds1){_rq1.type=_oq1._tq1;var _Uo1=0;var _Vo1=this._Us1.x*this._Ks1._nr1[0].x+this._Us1.y*this._Ks1._nr1[0].y;for(var i=1;i<this._Ks1._c9;++i){var value=this._Us1.x*this._Ks1._nr1[i].x+this._Us1.y*this._Ks1._nr1[i].y;
if(value<_Vo1){_Vo1=value;_Uo1=i;}}var _vn1=_Uo1;var _wn1=_vn1+1<this._Ks1._c9?_vn1+1:0;_Fn1[0]=new _Xq1();_Fn1[0]._H5.x=this._Ks1.vertices[_vn1].x;_Fn1[0]._H5.y=this._Ks1.vertices[_vn1].y;_Fn1[0].id._Yo1=0;_Fn1[0].id._Zo1=_vn1;_Fn1[0].id._fq1=_eq1._iq1;_Fn1[0].id._gq1=_eq1._hq1;_Fn1[1]=new _Xq1();_Fn1[1]._H5.x=this._Ks1.vertices[_wn1].x;_Fn1[1]._H5.y=this._Ks1.vertices[_wn1].y;_Fn1[1].id._Yo1=0;_Fn1[1].id._Zo1=_wn1;_Fn1[1].id._fq1=_eq1._iq1;_Fn1[1].id._gq1=_eq1._hq1;if(this._Zs1){_it1._vn1=0;_it1._wn1=1;
_it1._3c.x=this._Os1.x;_it1._3c.y=this._Os1.y;_it1._J5.x=this._Ps1.x;_it1._J5.y=this._Ps1.y;_it1._Om1.x=this._Ss1.x;_it1._Om1.y=this._Ss1.y;}else {_it1._vn1=1;_it1._wn1=0;_it1._3c.x=this._Ps1.x;_it1._3c.y=this._Ps1.y;_it1._J5.x=this._Os1.x;_it1._J5.y=this._Os1.y;_it1._Om1.x=-this._Ss1.x;_it1._Om1.y=-this._Ss1.y;}}else {_rq1.type=_oq1._uq1;_Fn1[0]=new _Xq1();_Fn1[0]._H5=this._Os1;_Fn1[0].id._Yo1=0;_Fn1[0].id._Zo1=_ht1.index;_Fn1[0].id._fq1=_eq1._hq1;_Fn1[0].id._gq1=_eq1._iq1;_Fn1[1]=new _Xq1();_Fn1[1]._H5=this._Ps1;
_Fn1[1].id._Yo1=0;_Fn1[1].id._Zo1=_ht1.index;_Fn1[1].id._fq1=_eq1._hq1;_Fn1[1].id._gq1=_eq1._iq1;_it1._vn1=_ht1.index;_it1._wn1=_it1._vn1+1<this._Ks1._c9?_it1._vn1+1:0;_it1._3c.x=this._Ks1.vertices[_it1._vn1].x;_it1._3c.y=this._Ks1.vertices[_it1._vn1].y;_it1._J5.x=this._Ks1.vertices[_it1._wn1].x;_it1._J5.y=this._Ks1.vertices[_it1._wn1].y;_it1._Om1.x=this._Ks1._nr1[_it1._vn1].x;_it1._Om1.y=this._Ks1._nr1[_it1._vn1].y;}_it1._Hs1.x=_it1._Om1.y;_it1._Hs1.y=-_it1._Om1.x;_it1._Is1.x=-_it1._Hs1.x;_it1._Is1.y=-_it1._Hs1.y;
_it1._fs1=_it1._Hs1.x*_it1._3c.x+_it1._Hs1.y*_it1._3c.y;_it1._gs1=_it1._Is1.x*_it1._J5.x+_it1._Is1.y*_it1._J5.y;var _hs1=new Array(2);var _is1=new Array(2);var _js1;_js1=_ks1(_hs1,_Fn1,_it1._Hs1.x,_it1._Hs1.y,_it1._fs1,_it1._vn1);if(_js1<_Mj1){return;}_js1=_ks1(_is1,_hs1,_it1._Is1.x,_it1._Is1.y,_it1._gs1,_it1._wn1);if(_js1<_Mj1){return;}if(_ht1.type==_Bs1._Ds1){_rq1._pq1.x=_it1._Om1.x;_rq1._pq1.y=_it1._Om1.y;_rq1._kq1.x=_it1._3c.x;_rq1._kq1.y=_it1._3c.y;}else {_rq1._pq1.x=_3t1._zn1[_it1._vn1].x;_rq1._pq1.y=_3t1._zn1[_it1._vn1].y;
_rq1._kq1.x=_3t1._gn1[_it1._vn1].x;_rq1._kq1.y=_3t1._gn1[_it1._vn1].y;}var _qq1=0;for(var i=0;i<_Mj1;++i){var _mr1=_it1._Om1.x*(_is1[i]._H5.x-_it1._3c.x)+_it1._Om1.y*(_is1[i]._H5.y-_it1._3c.y);if(_mr1<=this._Dm1){var _ls1=_rq1.points[_qq1]=new _jq1();if(_ht1.type==_Bs1._Ds1){_ls1._kq1._EI(_Kl1(this._Ls1,_is1[i]._H5));_ls1.id._EI(_is1[i].id);}else {_ls1._kq1.x=_is1[i]._H5.x;_ls1._kq1.y=_is1[i]._H5.y;_ls1.id._fq1=_is1[i].id._gq1;_ls1.id._gq1=_is1[i].id._fq1;_ls1.id._Yo1=_is1[i].id._Zo1;_ls1.id._Zo1=_is1[i].id._Yo1;
}++_qq1;}}_rq1._qq1=_qq1;},_ct1:function(){var _bp=new _Bs1();_bp.type=_Bs1._Ds1;_bp.index=this._Zs1?0:1;_bp._mr1=Number.MAX_VALUE;for(var i=0;i<this._Ks1._c9;++i){var __h=this._Us1.x*(this._Ks1.vertices[i].x-this._Os1.x)+this._Us1.y*(this._Ks1.vertices[i].y-this._Os1.y);if(__h<_bp._mr1){_bp._mr1=__h;}}return _bp;},_et1:function(){var _bp=new _Bs1();_bp.type=_Bs1._Cs1;_bp.index=-1;_bp._mr1=-Number.MAX_VALUE;var _jt1=-this._Us1.y;var _kt1=this._Us1.x;for(var i=0;i<this._Ks1._c9;++i){var _Gr1=-this._Ks1._nr1[i].x;
var _Hr1=-this._Ks1._nr1[i].y;var _Js=_Gr1*(this._Ks1.vertices[i].x-this._Os1.x)+_Hr1*(this._Ks1.vertices[i].y-this._Os1.y);var _Ks=_Gr1*(this._Ks1.vertices[i].x-this._Ps1.x)+_Hr1*(this._Ks1.vertices[i].y-this._Ps1.y);var __h=_Tl1(_Js,_Ks);if(__h>this._Dm1){_bp.type=_Bs1._Es1;_bp.index=i;_bp._mr1=__h;return _bp;}if(_Gr1*_jt1+_Hr1*_kt1>=0.0){if((_Gr1-this._Ys1.x)*this._Us1.x+(_Hr1-this._Ys1.y)*this._Us1.y<-_Rj1){continue;}}else {if((_Gr1-this._Xs1.x)*this._Us1.x+(_Hr1-this._Xs1.y)*this._Us1.y<-_Rj1){continue;
}}if(__h>_bp._mr1){_bp.type=_Bs1._Es1;_bp.index=i;_bp._mr1=__h;}}return _bp;}};_Js1._lt1=0;_Js1._mt1=1;_Js1._nt1=2;function _ot1(_rq1,_Xr1,_Cq1,_3t1,_Eq1){_ot1._pt1._2t1(_rq1,_Xr1,_Cq1,_3t1,_Eq1);}_ot1._pt1=new _Js1();function _ks1(_qt1,_rt1,_cs1,_ds1,offset,_st1){var _tt1=0;var _ut1=(_cs1*_rt1[0]._H5.x+_ds1*_rt1[0]._H5.y)-offset;var _vt1=(_cs1*_rt1[1]._H5.x+_ds1*_rt1[1]._H5.y)-offset;if(_ut1<=0.0)_qt1[_tt1++]=_rt1[0];if(_vt1<=0.0)_qt1[_tt1++]=_rt1[1];if(_ut1*_vt1<0.0){var _wt1=_ut1/(_ut1-_vt1);_qt1[_tt1]=new _Xq1();
_qt1[_tt1]._H5.x=_rt1[0]._H5.x+(_wt1*(_rt1[1]._H5.x-_rt1[0]._H5.x));_qt1[_tt1]._H5.y=_rt1[0]._H5.y+(_wt1*(_rt1[1]._H5.y-_rt1[0]._H5.y));_qt1[_tt1].id._Yo1=_st1;_qt1[_tt1].id._Zo1=_rt1[0].id._Zo1;_qt1[_tt1].id._fq1=_eq1._hq1;_qt1[_tt1].id._gq1=_eq1._iq1;++_tt1;}return _tt1;}function _xt1(_yt1,_Yo1,_zt1,_Zo1,_Cq1,_Eq1){_xt1.input._0p1.Set(_yt1,_Yo1);_xt1.input._1p1.Set(_zt1,_Zo1);_xt1.input._2p1=_Cq1;_xt1.input._3p1=_Eq1;_xt1.input._4p1=true;_xt1._b9._c9=0;_Yp1(_xt1.output,_xt1._b9,_xt1.input);return _xt1.output._Nm1<10.0*_Kj1;
}_xt1.input=new __o1();_xt1._b9=new _Wo1();_xt1.output=new _5p1();function _yo1(_05,__4){return !((__4._Xm1.x-_05._Ym1.x)>0.0||(__4._Xm1.y-_05._Ym1.y)>0.0||(_05._Xm1.x-__4._Ym1.x)>0.0||(_05._Xm1.y-__4._Ym1.y)>0.0);}var _At1=-1;function _Bt1(){this._Jm1=new __q1();this._mo1=null;this.parent=0;this._Ct1=this._Dt1=this.height=0;}_Bt1.prototype={_Et1:function(){return this._Ct1==_At1;}};function _eo1(){this._Ft1=_At1;this._Gt1=16;this._Ht1=0;this._It1=new Array(this._Gt1);for(var i=0;i<this._Gt1-1;++i){this._It1[i]=new _Bt1();
this._It1[i].parent=i+1;this._It1[i].height=-1;}this._It1[this._Gt1-1]=new _Bt1();this._It1[this._Gt1-1].parent=_At1;this._It1[this._Gt1-1].height=-1;this._Jt1=0;this._Kt1=0;this._Lt1=0;}_eo1._Mt1=new _vk1(_Oj1,_Oj1);_eo1.prototype={_lo1:function(_Jm1,_mo1){var _no1=this._Nt1();this._It1[_no1]._Jm1._Xm1._EI(_vk1._Ck1(_Jm1._Xm1,_eo1._Mt1));this._It1[_no1]._Jm1._Ym1._EI(_vk1._Vf(_Jm1._Ym1,_eo1._Mt1));this._It1[_no1]._mo1=_mo1;this._It1[_no1].height=0;this._Ot1(_no1);return _no1;},_po1:function(_no1){_Hj1(0<=_no1&&_no1<this._Gt1);
_Hj1(this._It1[_no1]._Et1());this._Pt1(_no1);this._Qt1(_no1);},_ro1:function(_no1,_Jm1,_so1){_Hj1(0<=_no1&&_no1<this._Gt1);_Hj1(this._It1[_no1]._Et1());if(this._It1[_no1]._Jm1._7r1(_Jm1)){return false;}this._Pt1(_no1);this._It1[_no1]._Jm1._EI(_Jm1);this._It1[_no1]._Jm1._Xm1._Ck1(_eo1._Mt1);this._It1[_no1]._Jm1._Ym1._Vf(_eo1._Mt1);var _Xo=_vk1.Multiply(_Pj1,_so1);if(_Xo.x<0.0){this._It1[_no1]._Jm1._Xm1.x+=_Xo.x;}else {this._It1[_no1]._Jm1._Ym1.x+=_Xo.x;}if(_Xo.y<0.0){this._It1[_no1]._Jm1._Xm1.y+=_Xo.y;
}else {this._It1[_no1]._Jm1._Ym1.y+=_Xo.y;}this._Ot1(_no1);return true;},_vo1:function(_no1){_Hj1(0<=_no1&&_no1<this._Gt1);return this._It1[_no1]._mo1;},_uo1:function(_no1){_Hj1(0<=_no1&&_no1<this._Gt1);return this._It1[_no1]._Jm1;},_Do1:function(_zg1,_Jm1){var stack=[];stack.push(this._Ft1);while(stack.length>0){var _Rt1=stack.pop();if(_Rt1==_At1){continue;}var _nl=this._It1[_Rt1];if(_yo1(_nl._Jm1,_Jm1)){if(_nl._Et1()){var _St1=_zg1._Qo1(_Rt1);if(_St1==false){return;}}else {stack.push(_nl._Ct1);stack.push(_nl._Dt1);
}}}},_Gm1:function(_zg1,input){var _ap=input._ap;var _hm1=input._hm1;var _Y4=_vk1._Ck1(_hm1,_ap);_Hj1(_Y4._Dk1()>0.0);_Y4._Ek1();var _H5=_ul1(1.0,_Y4);var _Tt1=_Rl1(_H5);var _M11=input._M11;var _Ut1=new __q1();{var _s7=_vk1._Vf(_ap,_vk1.Multiply(_M11,_vk1._Ck1(_hm1,_ap)));_Ut1._Xm1._EI(_Ul1(_ap,_s7));_Ut1._Ym1._EI(_Wl1(_ap,_s7));}var stack=[];stack.push(this._Ft1);while(stack.length>0){var _Rt1=stack.pop();if(_Rt1==_At1){continue;}var _nl=this._It1[_Rt1];if(_yo1(_nl._Jm1,_Ut1)==false){continue;}var c=_nl._Jm1._1r1();
var h=_nl._Jm1._2r1();var _mr1=_Ql1(_rl1(_H5,_vk1._Ck1(_ap,c)))-_rl1(_Tt1,h);if(_mr1>0.0){continue;}if(_nl._Et1()){var _Vt1=new _Yq1();_Vt1._ap._EI(input._ap);_Vt1._hm1._EI(input._hm1);_Vt1._M11=_M11;var value=_zg1._Wt1(_Vt1,_Rt1);if(value==0.0){return;}if(value>0.0){_M11=value;var _dr1=_vk1._Vf(_ap,_vk1.Multiply(_M11,_vk1._Ck1(_hm1,_ap)));_Ut1._Xm1._EI(_Ul1(_ap,_dr1));_Ut1._Ym1._EI(_Wl1(_ap,_dr1));}}else {stack.push(_nl._Ct1);stack.push(_nl._Dt1);}}},_Xn1:function(){this._Xt1(this._Ft1);this._Yt1(this._Ft1);
var _Zt1=0;var __t1=this._Jt1;while(__t1!=_At1){_Hj1(0<=__t1&&__t1<this._Gt1);__t1=this._It1[__t1].parent;++_Zt1;}_Hj1(this._uF()==this._0u1());_Hj1(this._Ht1+_Zt1==this._Gt1);},_uF:function(){if(this._Ft1==_At1){return 0;}return this._It1[this._Ft1].height;},_Lo1:function(){var _1u1=0;for(var i=0;i<this._Gt1;++i){var _nl=this._It1[i];if(_nl.height<=1){continue;}_Hj1(_nl._Et1()==false);var _Ct1=_nl._Ct1;var _Dt1=_nl._Dt1;var _2u1=_Ql1(this._It1[_Dt1].height-this._It1[_Ct1].height);_1u1=_Vl1(_1u1,_2u1);}return _1u1;
},_No1:function(){if(this._Ft1==_At1){return 0.0;}var _f6=this._It1[this._Ft1];var _3u1=_f6._Jm1._3r1();var _4u1=0.0;for(var i=0;i<this._Gt1;++i){var _nl=this._It1[i];if(_nl.height<0){continue;}_4u1+=_nl._Jm1._3r1();}return _4u1/_3u1;},_5u1:function(){var _6u1=new Array(this._Ht1);var _c9=0;for(var i=0;i<this._Gt1;++i){if(this._It1[i].height<0){continue;}if(this._It1[i]._Et1()){this._It1[i].parent=_At1;_6u1[_c9]=i;++_c9;}else {this._Qt1(i);}}while(_c9>1){var _7u1=_Jj1;var _8u1=-1,_9u1=-1;for(i=0;i<_c9;++i){var _au1=this._It1[_6u1[i]]._Jm1;
for(var _J6=i+1;_J6<_c9;++_J6){var _bu1=this._It1[_6u1[_J6]]._Jm1;var __4=new __q1();__4._4r1(_au1,_bu1);var _cu1=__4._3r1();if(_cu1<_7u1){_8u1=i;_9u1=_J6;_7u1=_cu1;}}}var _du1=_6u1[_8u1];var _eu1=_6u1[_9u1];var _Ct1=this._It1[_du1];var _Dt1=this._It1[_eu1];var _fu1=this._Nt1();var parent=this._It1[_fu1];parent._Ct1=_du1;parent._Dt1=_eu1;parent.height=1+_Vl1(_Ct1.height,_Dt1.height);parent._Jm1._4r1(_Ct1._Jm1,_Dt1._Jm1);parent.parent=_At1;_Ct1.parent=_fu1;_Dt1.parent=_fu1;_6u1[_9u1]=_6u1[_c9-1];_6u1[_8u1]=_fu1;
--_c9;}this._Ft1=_6u1[0];this._Xn1();},_Oo1:function(_Po1){for(var i=0;i<this._Gt1;++i){this._It1[i]._Jm1._Xm1._Ck1(_Po1);this._It1[i]._Jm1._Ym1._Ck1(_Po1);}},_Nt1:function(){if(this._Jt1==_At1){_Hj1(this._Ht1==this._Gt1);var _gu1=this._It1;this._Gt1*=2;this._It1=_gu1.concat(new Array(this._Gt1-this._Ht1));for(var i=this._Ht1;i<this._Gt1-1;++i){this._It1[i]=new _Bt1();this._It1[i].parent=i+1;this._It1[i].height=-1;}this._It1[this._Gt1-1]=new _Bt1();this._It1[this._Gt1-1].parent=_At1;this._It1[this._Gt1-1].height=-1;
this._Jt1=this._Ht1;}var _Rt1=this._Jt1;this._Jt1=this._It1[_Rt1].parent;this._It1[_Rt1].parent=_At1;this._It1[_Rt1]._Ct1=_At1;this._It1[_Rt1]._Dt1=_At1;this._It1[_Rt1].height=0;this._It1[_Rt1]._mo1=null;++this._Ht1;return _Rt1;},_Qt1:function(_Rt1){_Hj1(0<=_Rt1&&_Rt1<this._Gt1);_Hj1(0<this._Ht1);this._It1[_Rt1].parent=this._Jt1;this._It1[_Rt1].height=-1;this._Jt1=_Rt1;--this._Ht1;},_Ot1:function(_hu1){++this._Lt1;if(this._Ft1==_At1){this._Ft1=_hu1;this._It1[this._Ft1].parent=_At1;return;}var _iu1=this._It1[_hu1]._Jm1;
var index=this._Ft1;while(this._It1[index]._Et1()==false){var _Ct1=this._It1[index]._Ct1;var _Dt1=this._It1[index]._Dt1;var _Ln1=this._It1[index]._Jm1._3r1();var _ju1=new __q1();_ju1._4r1(this._It1[index]._Jm1,_iu1);var _ku1=_ju1._3r1();var _cu1=2.0*_ku1;var _lu1=2.0*(_ku1-_Ln1);var _mu1;var _Jm1;if(this._It1[_Ct1]._Et1()){_Jm1=new __q1();_Jm1._4r1(_iu1,this._It1[_Ct1]._Jm1);_mu1=_Jm1._3r1()+_lu1;}else {_Jm1=new __q1();_Jm1._4r1(_iu1,this._It1[_Ct1]._Jm1);var _nu1=this._It1[_Ct1]._Jm1._3r1();var _ou1=_Jm1._3r1();
_mu1=(_ou1-_nu1)+_lu1;}var _pu1;if(this._It1[_Dt1]._Et1()){_Jm1=new __q1();_Jm1._4r1(_iu1,this._It1[_Dt1]._Jm1);_pu1=_Jm1._3r1()+_lu1;}else {_Jm1=new __q1();_Jm1._4r1(_iu1,this._It1[_Dt1]._Jm1);var _nu1=this._It1[_Dt1]._Jm1._3r1();var _ou1=_Jm1._3r1();_pu1=_ou1-_nu1+_lu1;}if(_cu1<_mu1&&_cu1<_pu1){break;}if(_mu1<_pu1){index=_Ct1;}else {index=_Dt1;}}var _qu1=index;var _ru1=this._It1[_qu1].parent;var _su1=this._Nt1();this._It1[_su1].parent=_ru1;this._It1[_su1]._mo1=null;this._It1[_su1]._Jm1._4r1(_iu1,this._It1[_qu1]._Jm1);
this._It1[_su1].height=this._It1[_qu1].height+1;if(_ru1!=_At1){if(this._It1[_ru1]._Ct1==_qu1){this._It1[_ru1]._Ct1=_su1;}else {this._It1[_ru1]._Dt1=_su1;}this._It1[_su1]._Ct1=_qu1;this._It1[_su1]._Dt1=_hu1;this._It1[_qu1].parent=_su1;this._It1[_hu1].parent=_su1;}else {this._It1[_su1]._Ct1=_qu1;this._It1[_su1]._Dt1=_hu1;this._It1[_qu1].parent=_su1;this._It1[_hu1].parent=_su1;this._Ft1=_su1;}index=this._It1[_hu1].parent;while(index!=_At1){index=this._tu1(index);var _Ct1=this._It1[index]._Ct1;var _Dt1=this._It1[index]._Dt1;
_Hj1(_Ct1!=_At1);_Hj1(_Dt1!=_At1);this._It1[index].height=1+_Vl1(this._It1[_Ct1].height,this._It1[_Dt1].height);this._It1[index]._Jm1._4r1(this._It1[_Ct1]._Jm1,this._It1[_Dt1]._Jm1);index=this._It1[index].parent;}},_Pt1:function(_hu1){if(_hu1==this._Ft1){this._Ft1=_At1;return;}var parent=this._It1[_hu1].parent;var _uu1=this._It1[parent].parent;var _qu1;if(this._It1[parent]._Ct1==_hu1){_qu1=this._It1[parent]._Dt1;}else {_qu1=this._It1[parent]._Ct1;}if(_uu1!=_At1){if(this._It1[_uu1]._Ct1==parent){this._It1[_uu1]._Ct1=_qu1;
}else {this._It1[_uu1]._Dt1=_qu1;}this._It1[_qu1].parent=_uu1;this._Qt1(parent);var index=_uu1;while(index!=_At1){index=this._tu1(index);var _Ct1=this._It1[index]._Ct1;var _Dt1=this._It1[index]._Dt1;this._It1[index]._Jm1._4r1(this._It1[_Ct1]._Jm1,this._It1[_Dt1]._Jm1);this._It1[index].height=1+_Vl1(this._It1[_Ct1].height,this._It1[_Dt1].height);index=this._It1[index].parent;}}else {this._Ft1=_qu1;this._It1[_qu1].parent=_At1;this._Qt1(parent);}},_tu1:function(_vu1){_Hj1(_vu1!=_At1);var _Ij1=this._It1[_vu1];
if(_Ij1._Et1()||_Ij1.height<2){return _vu1;}var _wu1=_Ij1._Ct1;var _xu1=_Ij1._Dt1;_Hj1(0<=_wu1&&_wu1<this._Gt1);_Hj1(0<=_xu1&&_xu1<this._Gt1);var _Sk1=this._It1[_wu1];var _Ml1=this._It1[_xu1];var _2u1=_Ml1.height-_Sk1.height;if(_2u1>1){var _yu1=_Ml1._Ct1;var _zu1=_Ml1._Dt1;var _Au1=this._It1[_yu1];var _Bu1=this._It1[_zu1];_Hj1(0<=_yu1&&_yu1<this._Gt1);_Hj1(0<=_zu1&&_zu1<this._Gt1);_Ml1._Ct1=_vu1;_Ml1.parent=_Ij1.parent;_Ij1.parent=_xu1;if(_Ml1.parent!=_At1){if(this._It1[_Ml1.parent]._Ct1==_vu1){this._It1[_Ml1.parent]._Ct1=_xu1;
}else {_Hj1(this._It1[_Ml1.parent]._Dt1==_vu1);this._It1[_Ml1.parent]._Dt1=_xu1;}}else {this._Ft1=_xu1;}if(_Au1.height>_Bu1.height){_Ml1._Dt1=_yu1;_Ij1._Dt1=_zu1;_Bu1.parent=_vu1;_Ij1._Jm1._4r1(_Sk1._Jm1,_Bu1._Jm1);_Ml1._Jm1._4r1(_Ij1._Jm1,_Au1._Jm1);_Ij1.height=1+_Vl1(_Sk1.height,_Bu1.height);_Ml1.height=1+_Vl1(_Ij1.height,_Au1.height);}else {_Ml1._Dt1=_zu1;_Ij1._Dt1=_yu1;_Au1.parent=_vu1;_Ij1._Jm1._4r1(_Sk1._Jm1,_Au1._Jm1);_Ml1._Jm1._4r1(_Ij1._Jm1,_Bu1._Jm1);_Ij1.height=1+_Vl1(_Sk1.height,_Au1.height);
_Ml1.height=1+_Vl1(_Ij1.height,_Bu1.height);}return _xu1;}if(_2u1<-1){var _Cu1=_Sk1._Ct1;var _Du1=_Sk1._Dt1;var _Pn1=this._It1[_Cu1];var _Eu1=this._It1[_Du1];_Hj1(0<=_Cu1&&_Cu1<this._Gt1);_Hj1(0<=_Du1&&_Du1<this._Gt1);_Sk1._Ct1=_vu1;_Sk1.parent=_Ij1.parent;_Ij1.parent=_wu1;if(_Sk1.parent!=_At1){if(this._It1[_Sk1.parent]._Ct1==_vu1){this._It1[_Sk1.parent]._Ct1=_wu1;}else {_Hj1(this._It1[_Sk1.parent]._Dt1==_vu1);this._It1[_Sk1.parent]._Dt1=_wu1;}}else {this._Ft1=_wu1;}if(_Pn1.height>_Eu1.height){_Sk1._Dt1=_Cu1;
_Ij1._Ct1=_Du1;_Eu1.parent=_vu1;_Ij1._Jm1._4r1(_Ml1._Jm1,_Eu1._Jm1);_Sk1._Jm1._4r1(_Ij1._Jm1,_Pn1._Jm1);_Ij1.height=1+_Vl1(_Ml1.height,_Eu1.height);_Sk1.height=1+_Vl1(_Ij1.height,_Pn1.height);}else {_Sk1._Dt1=_Du1;_Ij1._Ct1=_Cu1;_Pn1.parent=_vu1;_Ij1._Jm1._4r1(_Ml1._Jm1,_Pn1._Jm1);_Sk1._Jm1._4r1(_Ij1._Jm1,_Eu1._Jm1);_Ij1.height=1+_Vl1(_Ml1.height,_Pn1.height);_Sk1.height=1+_Vl1(_Ij1.height,_Eu1.height);}return _wu1;}return _vu1;},_0u1:function(_Rt1){if(typeof(_Rt1)==='undefined')_Rt1=this._Ft1;_Hj1(0<=_Rt1&&_Rt1<this._Gt1);
var _nl=this._It1[_Rt1];if(_nl._Et1()){return 0;}var _Fu1=this._0u1(_nl._Ct1);var _Gu1=this._0u1(_nl._Dt1);return 1+_Vl1(_Fu1,_Gu1);},_Xt1:function(index){if(index==_At1){return;}if(index==this._Ft1){_Hj1(this._It1[index].parent==_At1);}var _nl=this._It1[index];var _Ct1=_nl._Ct1;var _Dt1=_nl._Dt1;if(_nl._Et1()){_Hj1(_Ct1==_At1);_Hj1(_Dt1==_At1);_Hj1(_nl.height==0);return;}_Hj1(0<=_Ct1&&_Ct1<this._Gt1);_Hj1(0<=_Dt1&&_Dt1<this._Gt1);_Hj1(this._It1[_Ct1].parent==index);_Hj1(this._It1[_Dt1].parent==index);this._Xt1(_Ct1);
this._Xt1(_Dt1);},_Yt1:function(index){if(index==_At1){return;}var _nl=this._It1[index];var _Ct1=_nl._Ct1;var _Dt1=_nl._Dt1;if(_nl._Et1()){_Hj1(_Ct1==_At1);_Hj1(_Dt1==_At1);_Hj1(_nl.height==0);return;}_Hj1(0<=_Ct1&&_Ct1<this._Gt1);_Hj1(0<=_Dt1&&_Dt1<this._Gt1);var _Fu1=this._It1[_Ct1].height;var _Gu1=this._It1[_Dt1].height;var height;height=1+_Vl1(_Fu1,_Gu1);_Hj1(_nl.height==height);var _Jm1=new __q1();_Jm1._4r1(this._It1[_Ct1]._Jm1,this._It1[_Dt1]._Jm1);_Hj1(_vk1._Kk1(_Jm1._Xm1,_nl._Jm1._Xm1));_Hj1(_vk1._Kk1(_Jm1._Ym1,
_nl._Jm1._Ym1));this._Yt1(_Ct1);this._Yt1(_Dt1);}};function _Hu1(){this._0p1=new _Ro1();this._1p1=new _Ro1();this._Iu1=new _hl1();this._Ju1=new _hl1();this._Ku1=0;};function _Lu1(){this.state=0;this._s7=0;};_Lu1._Cs1=0;_Lu1._Mu1=1;_Lu1._Nu1=2;_Lu1._Ou1=3;_Lu1._Pu1=4;function _Qu1(){this._Ru1=null;this._Su1=null;this._Tu1=null;this._Uu1=null;this._nH=0;this._Vu1=new _vk1();this._Wu1=new _vk1();}var _Xu1=new _fl1();var _Yu1=new _fl1();_Qu1.prototype={_Bq1:function(_b9,_0p1,_Iu1,_1p1,_Ju1,_cr1){this._Ru1=_0p1;this._Su1=_1p1;
var _c9=_b9._c9;_Hj1(0<_c9&&_c9<3);this._Tu1=_Iu1;this._Uu1=_Ju1;this._Tu1._nl1(_Xu1,_cr1);this._Uu1._nl1(_Yu1,_cr1);if(_c9==1){this._nH=_Qu1._Zu1;var __u1=this._Ru1._0n1(_b9._Yo1[0]);var _0v1=this._Su1._0n1(_b9._Zo1[0]);var _Gq1=(_Xu1.q.c*__u1.x-_Xu1.q.__h*__u1.y)+_Xu1._2z.x;var _Hq1=(_Xu1.q.__h*__u1.x+_Xu1.q.c*__u1.y)+_Xu1._2z.y;var _Iq1=(_Yu1.q.c*_0v1.x-_Yu1.q.__h*_0v1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*_0v1.x+_Yu1.q.c*_0v1.y)+_Yu1._2z.y;this._Wu1.x=_Iq1-_Gq1;this._Wu1.y=_Jq1-_Hq1;var __h=this._Wu1._Ek1();
return __h;}else if(_b9._Yo1[0]==_b9._Yo1[1]){this._nH=_Qu1._uq1;var _1v1=_1p1._0n1(_b9._Zo1[0]);var _2v1=_1p1._0n1(_b9._Zo1[1]);this._Wu1.x=1.0*(_2v1.y-_1v1.y);this._Wu1.y=-1.0*(_2v1.x-_1v1.x);this._Wu1._Ek1();var _cs1=_Yu1.q.c*this._Wu1.x-_Yu1.q.__h*this._Wu1.y;var _ds1=_Yu1.q.__h*this._Wu1.x+_Yu1.q.c*this._Wu1.y;this._Vu1.x=0.5*(_1v1.x+_2v1.x);this._Vu1.y=0.5*(_1v1.y+_2v1.y);var _Iq1=(_Yu1.q.c*this._Vu1.x-_Yu1.q.__h*this._Vu1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*this._Vu1.x+_Yu1.q.c*this._Vu1.y)+_Yu1._2z.y;
var __u1=_0p1._0n1(_b9._Yo1[0]);var _Gq1=(_Xu1.q.c*__u1.x-_Xu1.q.__h*__u1.y)+_Xu1._2z.x;var _Hq1=(_Xu1.q.__h*__u1.x+_Xu1.q.c*__u1.y)+_Xu1._2z.y;var __h=(_Gq1-_Iq1)*_cs1+(_Hq1-_Jq1)*_ds1;if(__h<0.0){this._Wu1.x=-this._Wu1.x;this._Wu1.y=-this._Wu1.y;__h=-__h;}return __h;}else {this._nH=_Qu1._tq1;var _3v1=this._Ru1._0n1(_b9._Yo1[0]);var _4v1=this._Ru1._0n1(_b9._Yo1[1]);this._Wu1.x=1.0*(_4v1.y-_3v1.y);this._Wu1.y=-1.0*(_4v1.x-_3v1.x);this._Wu1._Ek1();var _cs1=_Xu1.q.c*this._Wu1.x-_Xu1.q.__h*this._Wu1.y;var _ds1=_Xu1.q.__h*this._Wu1.x+_Xu1.q.c*this._Wu1.y;
this._Vu1.x=0.5*(_3v1.x+_4v1.x);this._Vu1.y=0.5*(_3v1.y+_4v1.y);var _Gq1=(_Xu1.q.c*this._Vu1.x-_Xu1.q.__h*this._Vu1.y)+_Xu1._2z.x;var _Hq1=(_Xu1.q.__h*this._Vu1.x+_Xu1.q.c*this._Vu1.y)+_Xu1._2z.y;var _0v1=this._Su1._0n1(_b9._Zo1[0]);var _Iq1=(_Yu1.q.c*_0v1.x-_Yu1.q.__h*_0v1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*_0v1.x+_Yu1.q.c*_0v1.y)+_Yu1._2z.y;var __h=(_Iq1-_Gq1)*_cs1+(_Jq1-_Hq1)*_ds1;if(__h<0.0){this._Wu1.x=-this._Wu1.x;this._Wu1.y=-this._Wu1.y;__h=-__h;}return __h;}},_5v1:function(_oa,_s7){this._Tu1._nl1(_Xu1,
_s7);this._Uu1._nl1(_Yu1,_s7);switch(this._nH){case _Qu1._Zu1:{var _6v1=_Xu1.q.c*this._Wu1.x+_Xu1.q.__h*this._Wu1.y;var _7v1=-_Xu1.q.__h*this._Wu1.x+_Xu1.q.c*this._Wu1.y;var _8v1=_Yu1.q.c*-this._Wu1.x+_Yu1.q.__h*-this._Wu1.y;var _9v1=-_Yu1.q.__h*-this._Wu1.x+_Yu1.q.c*-this._Wu1.y;_oa[0]=this._Ru1._Zm1(_6v1,_7v1);_oa[1]=this._Su1._Zm1(_8v1,_9v1);var __u1=this._Ru1._0n1(_oa[0]);var _0v1=this._Su1._0n1(_oa[1]);var _Gq1=(_Xu1.q.c*__u1.x-_Xu1.q.__h*__u1.y)+_Xu1._2z.x;var _Hq1=(_Xu1.q.__h*__u1.x+_Xu1.q.c*__u1.y)+_Xu1._2z.y;
var _Iq1=(_Yu1.q.c*_0v1.x-_Yu1.q.__h*_0v1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*_0v1.x+_Yu1.q.c*_0v1.y)+_Yu1._2z.y;return(_Iq1-_Gq1)*this._Wu1.x+(_Jq1-_Hq1)*this._Wu1.y;}case _Qu1._tq1:{var _cs1=_Xu1.q.c*this._Wu1.x-_Xu1.q.__h*this._Wu1.y;var _ds1=_Xu1.q.__h*this._Wu1.x+_Xu1.q.c*this._Wu1.y;var _Gq1=(_Xu1.q.c*this._Vu1.x-_Xu1.q.__h*this._Vu1.y)+_Xu1._2z.x;var _Hq1=(_Xu1.q.__h*this._Vu1.x+_Xu1.q.c*this._Vu1.y)+_Xu1._2z.y;var _8v1=_Yu1.q.c*-_cs1+_Yu1.q.__h*-_ds1;var _9v1=-_Yu1.q.__h*-_cs1+_Yu1.q.c*-_ds1;_oa[0]=-1;
_oa[1]=this._Su1._Zm1(_8v1,_9v1);var _0v1=this._Su1._0n1(_oa[1]);var _Iq1=(_Yu1.q.c*_0v1.x-_Yu1.q.__h*_0v1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*_0v1.x+_Yu1.q.c*_0v1.y)+_Yu1._2z.y;return(_Iq1-_Gq1)*_cs1+(_Jq1-_Hq1)*_ds1;}case _Qu1._uq1:{var _cs1=_Yu1.q.c*this._Wu1.x-_Yu1.q.__h*this._Wu1.y;var _ds1=_Yu1.q.__h*this._Wu1.x+_Yu1.q.c*this._Wu1.y;var _Iq1=(_Yu1.q.c*this._Vu1.x-_Yu1.q.__h*this._Vu1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*this._Vu1.x+_Yu1.q.c*this._Vu1.y)+_Yu1._2z.y;var _6v1=_Xu1.q.c*-_cs1+_Xu1.q.__h*-_ds1;
var _9v1=-_Xu1.q.__h*-_cs1+_Xu1.q.c*-_ds1;_oa[1]=-1;_oa[0]=this._Ru1._Zm1(_6v1,_9v1);var __u1=this._Ru1._0n1(_oa[0]);var _Gq1=(_Xu1.q.c*__u1.x-_Xu1.q.__h*__u1.y)+_Xu1._2z.x;var _Hq1=(_Xu1.q.__h*__u1.x+_Xu1.q.c*__u1.y)+_Xu1._2z.y;return(_Gq1-_Iq1)*_cs1+(_Hq1-_Jq1)*_ds1;}default :_Hj1(false);_oa[0]=-1;_oa[1]=-1;return 0.0;}},_Ql:function(_Yo1,_Zo1,_s7){this._Tu1._nl1(_Xu1,_s7);this._Uu1._nl1(_Yu1,_s7);switch(this._nH){case _Qu1._Zu1:{var __u1=this._Ru1._0n1(_Yo1);var _0v1=this._Su1._0n1(_Zo1);var _Gq1=(_Xu1.q.c*__u1.x-_Xu1.q.__h*__u1.y)+_Xu1._2z.x;
var _Hq1=(_Xu1.q.__h*__u1.x+_Xu1.q.c*__u1.y)+_Xu1._2z.y;var _Iq1=(_Yu1.q.c*_0v1.x-_Yu1.q.__h*_0v1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*_0v1.x+_Yu1.q.c*_0v1.y)+_Yu1._2z.y;var _mr1=(_Iq1-_Gq1)*this._Wu1.x+(_Jq1-_Hq1)*this._Wu1.y;return _mr1;}case _Qu1._tq1:{var _cs1=_Xu1.q.c*this._Wu1.x-_Xu1.q.__h*this._Wu1.y;var _ds1=_Xu1.q.__h*this._Wu1.x+_Xu1.q.c*this._Wu1.y;var _Gq1=(_Xu1.q.c*this._Vu1.x-_Xu1.q.__h*this._Vu1.y)+_Xu1._2z.x;var _Hq1=(_Xu1.q.__h*this._Vu1.x+_Xu1.q.c*this._Vu1.y)+_Xu1._2z.y;var _0v1=this._Su1._0n1(_Zo1);
var _Iq1=(_Yu1.q.c*_0v1.x-_Yu1.q.__h*_0v1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*_0v1.x+_Yu1.q.c*_0v1.y)+_Yu1._2z.y;var _mr1=(_Iq1-_Gq1)*_cs1+(_Jq1-_Hq1)*_ds1;return _mr1;}case _Qu1._uq1:{var _cs1=_Yu1.q.c*this._Wu1.x-_Yu1.q.__h*this._Wu1.y;var _ds1=_Yu1.q.__h*this._Wu1.x+_Yu1.q.c*this._Wu1.y;var _Iq1=(_Yu1.q.c*this._Vu1.x-_Yu1.q.__h*this._Vu1.y)+_Yu1._2z.x;var _Jq1=(_Yu1.q.__h*this._Vu1.x+_Yu1.q.c*this._Vu1.y)+_Yu1._2z.y;var __u1=this._Ru1._0n1(_Yo1);var _Gq1=(_Xu1.q.c*__u1.x-_Xu1.q.__h*__u1.y)+_Xu1._2z.x;var _Hq1=(_Xu1.q.__h*__u1.x+_Xu1.q.c*__u1.y)+_Xu1._2z.y;
var _mr1=(_Gq1-_Iq1)*_cs1+(_Hq1-_Jq1)*_ds1;return _mr1;}default :_Hj1(false);return 0.0;}}};_Qu1._Zu1=0;_Qu1._tq1=1;_Qu1._uq1=2;var _av1=_qj1._Aj1("toi","solveTOI");function _bv1(output,input){_av1.start();++_bv1._cv1;output.state=_Lu1._Cs1;output._s7=input._Ku1;var _0p1=input._0p1;var _1p1=input._1p1;_bv1._dv1._EI(input._Iu1);_bv1._ev1._EI(input._Ju1);_bv1._dv1._Ek1();_bv1._ev1._Ek1();var _Ku1=input._Ku1;var _Wr1=_0p1._Dm1+_1p1._Dm1;var target=_Vl1(_Qj1,_Wr1-3.0*_Qj1);var _fv1=0.25*_Qj1;_Hj1(target>_fv1);var _cr1=0.0;
var _gv1=20;var _zc1=0;var _b9=new _Wo1();_b9._c9=0;var _hv1=new __o1();_hv1._0p1._EI(input._0p1);_hv1._1p1._EI(input._1p1);_hv1._4p1=false;for(;;){_bv1._dv1._nl1(_hv1._2p1,_cr1);_bv1._ev1._nl1(_hv1._3p1,_cr1);var _iv1=new _5p1();_Yp1(_iv1,_b9,_hv1);if(_iv1._Nm1<=0.0){output.state=_Lu1._Nu1;output._s7=0.0;break;}if(_iv1._Nm1<target+_fv1){output.state=_Lu1._Ou1;output._s7=_cr1;break;}var _jv1=new _Qu1();_jv1._Bq1(_b9,_0p1,_bv1._dv1,_1p1,_bv1._ev1,_cr1);var _kv1=false;var _dr1=_Ku1;var _lv1=0;for(;;){var _oa=[];
var _Ks=_jv1._5v1(_oa,_dr1);if(_Ks>target+_fv1){output.state=_Lu1._Pu1;output._s7=_Ku1;_kv1=true;break;}if(_Ks>target-_fv1){_cr1=_dr1;break;}var _Js=_jv1._Ql(_oa[0],_oa[1],_cr1);if(_Js<target-_fv1){output.state=_Lu1._Mu1;output._s7=_cr1;_kv1=true;break;}if(_Js<=target+_fv1){output.state=_Lu1._Ou1;output._s7=_cr1;_kv1=true;break;}var _mv1=0;var _Je1=_cr1,_Ke1=_dr1;for(;;){var _s7;if(_mv1&1){_s7=_Je1+(target-_Js)*(_Ke1-_Je1)/(_Ks-_Js);}else {_s7=0.5*(_Je1+_Ke1);}++_mv1;++_bv1._nv1;var __h=_jv1._Ql(_oa[0],
_oa[1],_s7);if(_Ql1(__h-target)<_fv1){_dr1=_s7;break;}if(__h>target){_Je1=_s7;_Js=__h;}else {_Ke1=_s7;_Ks=__h;}if(_mv1==50){break;}}_bv1._ov1=_Vl1(_bv1._ov1,_mv1);++_lv1;if(_lv1==_Nj1){break;}}++_zc1;++_bv1._pv1;if(_kv1){break;}if(_zc1==_gv1){output.state=_Lu1._Mu1;output._s7=_cr1;break;}}_bv1._qv1=_Vl1(_bv1._qv1,_zc1);_av1.stop();_bv1._rv1=_Vl1(_bv1._rv1,_av1._uj1);_bv1._sv1+=_av1._uj1;}_bv1._dv1=new _hl1();_bv1._ev1=new _hl1();_bv1._sv1=0;_bv1._rv1=0;_bv1._cv1=0;_bv1._pv1=0;_bv1._qv1=0;_bv1._nv1=0;
_bv1._ov1=0;function _tv1(){this.type=_uv1._vv1;this.position=new _vk1(0.0,0.0);this.angle=0.0;this._wv1=new _vk1(0.0,0.0);this._xv1=0.0;this._yv1=0.0;this._zv1=0.0;this._Av1=true;this._Bv1=true;this._Cv1=false;this._Dv1=false;this.active=true;this._mo1=null;this._Ev1=1.0;Object.seal(this);}_tv1.prototype={_Jk1:function(data){this.type=data['type'];this.position._Jk1(data['position']);this.angle=data['angle'];this._wv1._Jk1(data['linearVelocity']);this._xv1=data['angularVelocity'];this._yv1=data['linearDamping'];
this._zv1=data['angularDamping'];this._Av1=data['allowSleep'];this._Bv1=data['awake'];this._Cv1=data['fixedRotation'];this._Dv1=data['bullet'];this.active=data['active'];this._Ev1=data['gravityScale'];}};function _uv1(_Fv1,_Gv1){_Hj1(_Fv1.position._Gk1());_Hj1(_Fv1._wv1._Gk1());_Hj1(_lk1(_Fv1.angle));_Hj1(_lk1(_Fv1._xv1));_Hj1(_lk1(_Fv1._zv1)&&_Fv1._zv1>=0.0);_Hj1(_lk1(_Fv1._yv1)&&_Fv1._yv1>=0.0);this._Hv1=0;this._Iv1=0;if(_Fv1._Dv1){this._Iv1|=_uv1._Jv1;}if(_Fv1._Cv1){this._Iv1|=_uv1._Kv1;}if(_Fv1._Av1){
this._Iv1|=_uv1._Lv1;}if(_Fv1._Bv1){this._Iv1|=_uv1._Mv1;}if(_Fv1.active){this._Iv1|=_uv1._Nv1;}this._Ov1=_Gv1;this._Ls1=new _fl1();this._Ls1._2z._EI(_Fv1.position);this._Ls1.q.Set(_Fv1.angle);this._Pv1=new _fl1();this._Pv1._EI(this._Ls1);this._Qv1=new _hl1();this._Qv1._il1._wk1();this._Qv1._jl1._EI(this._Ls1._2z);this._Qv1.c._EI(this._Ls1._2z);this._Qv1._ll1=_Fv1.angle;this._Qv1._05=_Fv1.angle;this._Qv1._ml1=0.0;this._Rv1=null;this._Sv1=null;this._Tv1=null;this._Uv1=null;this._Vv1=_Fv1._wv1._Q3();
this._Wv1=_Fv1._xv1;this._Xv1=_Fv1._yv1;this._Yv1=_Fv1._zv1;this._Zv1=_Fv1._Ev1;this.__v1=new _vk1();this._0w1=0.0;this._1w1=0.0;this._nH=_Fv1.type;if(this._nH==_uv1._2w1){this._3w1=1.0;this._4w1=1.0;}else {this._3w1=0.0;this._4w1=0.0;}this._5w1=0.0;this._6w1=0.0;this._7w1=_Fv1._mo1;this._8w1=null;this._9w1=0;}_uv1._vv1=0;_uv1._aw1=1;_uv1._2w1=2;_uv1._bw1=0x0001;_uv1._Mv1=0x0002;_uv1._Lv1=0x0004;_uv1._Jv1=0x0008;_uv1._Kv1=0x0010;_uv1._Nv1=0x0020;_uv1._cw1=0x0040;_uv1._dw1=new _vk1();_uv1._ew1=new _fl1();
_uv1.prototype={_fw1:function(_gw1,_h11){if(typeof(_h11)!=='undefined'){var _hw1=new _iw1();_hw1.shape=_gw1;_hw1._h11=_h11;return this._fw1(_hw1);}_Hj1(this._Ov1._Jg1()==false);if(this._Ov1._Jg1()==true){return null;}var _AZ=new _jw1();_AZ._7a1(this,_gw1);if(this._Iv1&_uv1._Nv1){var _kw1=this._Ov1._lw1._mw1;_AZ._nw1(_kw1,this._Ls1);}_AZ._Uv1=this._8w1;this._8w1=_AZ;++this._9w1;_AZ._ow1=this;if(_AZ._pw1>0.0){this._qw1();}this._Ov1._Iv1|=_rw1._sw1;return _AZ;},_tw1:function(_AZ){_Hj1(this._Ov1._Jg1()==false);
if(this._Ov1._Jg1()==true){return;}_Hj1(_AZ._ow1==this);_Hj1(this._9w1>0);var _nl=this._8w1;var _Lu=false;while(_nl!=null){if(_nl==_AZ){this._8w1=_nl=_AZ._Uv1;_Lu=true;break;}_nl=_nl._Uv1;}_Hj1(_Lu);var _un1=this._Sv1;while(_un1){var c=_un1._uw1;_un1=_un1._Zk;var _vw1=c._ww1();var _xw1=c._yw1();if(_AZ==_vw1||_AZ==_xw1){this._Ov1._lw1._Mg1(c);}}if(this._Iv1&_uv1._Nv1){var _kw1=this._Ov1._lw1._mw1;_AZ._zw1(_kw1);}_AZ._Mg1();_AZ._ow1=null;_AZ._Uv1=null;--this._9w1;this._qw1();},_Aw1:function(position,angle){
_Hj1(this._Ov1._Jg1()==false);if(this._Ov1._Jg1()==true){return;}this._Ls1.q.Set(angle);this._Ls1._2z._EI(position);this._Pv1._EI(this._Ls1);this._Qv1.c._EI(_Il1(this._Ls1,this._Qv1._il1));this._Qv1._05=angle;this._Qv1._jl1._EI(this._Qv1.c);this._Qv1._ll1=angle;var _kw1=this._Ov1._lw1._mw1;for(var _nv=this._8w1;_nv;_nv=_nv._Uv1){_nv._Bw1(_kw1,this._Ls1,this._Ls1);}},_nl1:function(){return this._Ls1;},_4Z:function(){return this._Ls1._2z;},_cl1:function(){return this._Qv1._05;},_Cw1:function(){return this._Qv1.c;
},_Dw1:function(){return this._Qv1._il1;},_Ew1:function(_H5){if(this._nH==_uv1._vv1){return;}if(_rl1(_H5,_H5)>0.0){this._QZ(true);}this._Vv1=_H5;},_Fw1:function(){return this._Vv1;},_Gw1:function(w){if(this._nH==_uv1._vv1){return;}if(w*w>0.0){this._QZ(true);}this._Wv1=w;},_Hw1:function(){return this._Wv1;},_b01:function(_Iw1,_nq1,_Jw1){if(this._nH!=_uv1._2w1){return;}if(_Jw1&&(this._Iv1&_uv1._Mv1)==0){this._QZ(true);}if(this._Iv1&_uv1._Mv1){this.__v1._Vf(_Iw1);this._0w1+=_sl1(_vk1._Ck1(_nq1,this._Qv1.c),
_Iw1);}},_Kw1:function(_Iw1,_Jw1){if(this._nH!=_uv1._2w1){return;}if(_Jw1&&(this._Iv1&_uv1._Mv1)==0){this._QZ(true);}if(this._Iv1&_uv1._Mv1){this.__v1._Vf(_Iw1);}},_s01:function(_Lw1,_Jw1){if(this._nH!=_uv1._2w1){return;}if(_Jw1&&(this._Iv1&_uv1._Mv1)==0){this._QZ(true);}if(this._Iv1&_uv1._Mv1){this._0w1+=_Lw1;}},_Mw1:function(_Nw1,_nq1,_Jw1){if(this._nH!=_uv1._2w1){return;}if(_Jw1&&(this._Iv1&_uv1._Mv1)==0){this._QZ(true);}if(this._Iv1&_uv1._Mv1){this._Vv1._Vf(_vk1.Multiply(this._4w1,_Nw1));this._Wv1+=this._6w1*_sl1(_vk1._Ck1(_nq1,
this._Qv1.c),_Nw1);}},_q01:function(_Nw1,_Jw1){if(this._nH!=_uv1._2w1){return;}if(_Jw1&&(this._Iv1&_uv1._Mv1)==0){this._QZ(true);}if(this._Iv1&_uv1._Mv1){this._Wv1+=this._6w1*_Nw1;}},_Ow1:function(){return this._3w1;},_Pw1:function(){return this._5w1+this._3w1*_rl1(this._Qv1._il1,this._Qv1._il1);},_Qw1:function(data){data._Am1=this._3w1;data._Bm1=this._5w1+this._3w1*_rl1(this._Qv1._il1,this._Qv1._il1);data._em1=this._Qv1._il1;},_Rw1:function(_Lm1){_Hj1(this._Ov1._Jg1()==false);if(this._Ov1._Jg1()==true){
return;}if(this._nH!=_uv1._2w1){return;}this._4w1=0.0;this._5w1=0.0;this._6w1=0.0;this._3w1=_Lm1._Am1;if(this._3w1<=0.0){this._3w1=1.0;}this._4w1=1.0/this._3w1;if(_Lm1._Bm1>0.0&&(this._Iv1&_uv1._Kv1)==0){this._5w1=_Lm1._Bm1-this._3w1*_rl1(_Lm1._em1,_Lm1._em1);_Hj1(this._5w1>0.0);this._6w1=1.0/this._5w1;}_uv1._dw1._EI(this._Qv1.c);this._Qv1._il1._EI(_Lm1._em1);this._Qv1._jl1._EI(_Il1(this._Ls1,this._Qv1._il1));this._Qv1.c._EI(this._Qv1._jl1);this._Vv1._Vf(_ul1(this._Wv1,_vk1._Ck1(this._Qv1.c,_uv1._dw1)));
},_qw1:function(){this._3w1=0.0;this._4w1=0.0;this._5w1=0.0;this._6w1=0.0;this._Qv1._il1._wk1();if(this._nH==_uv1._vv1||this._nH==_uv1._aw1){this._Qv1._jl1._EI(this._Ls1._2z);this._Qv1.c._EI(this._Ls1._2z);this._Qv1._ll1=this._Qv1._05;return;}_Hj1(this._nH==_uv1._2w1);var _il1=new _vk1(0,0);for(var _nv=this._8w1;_nv;_nv=_nv._Uv1){if(_nv._pw1==0.0){continue;}var _Lm1=new _zm1();_nv._Qw1(_Lm1);this._3w1+=_Lm1._Am1;_il1._Vf(_vk1.Multiply(_Lm1._Am1,_Lm1._em1));this._5w1+=_Lm1._Bm1;}if(this._3w1>0.0){this._4w1=1.0/this._3w1;
_il1.Multiply(this._4w1);}else {this._3w1=1.0;this._4w1=1.0;}if(this._5w1>0.0&&(this._Iv1&_uv1._Kv1)==0){this._5w1-=this._3w1*_rl1(_il1,_il1);_Hj1(this._5w1>0.0);this._6w1=1.0/this._5w1;}else {this._5w1=0.0;this._6w1=0.0;}_uv1._dw1._EI(this._Qv1.c);this._Qv1._il1._EI(_il1);this._Qv1._jl1._EI(_Il1(this._Ls1,this._Qv1._il1));this._Qv1.c._EI(this._Qv1._jl1);this._Vv1._Vf(_ul1(this._Wv1,_vk1._Ck1(this._Qv1.c,_uv1._dw1)));},_Sw1:function(_kq1){return _Il1(this._Ls1,_kq1);},_Tw1:function(_Uw1){return _Gl1(this._Ls1.q,
_Uw1);},_Vw1:function(_Ww1){return _Kl1(this._Ls1,_Ww1);},_Xw1:function(_Yw1){return _Hl1(this._Ls1.q,_Yw1);},_Zw1:function(_Ww1){return _vk1._Vf(this._Vv1,_ul1(this._Wv1,_vk1._Ck1(_Ww1,this._Qv1.c)));},__w1:function(_kq1){return this._Zw1(this._Sw1(_kq1));},_0x1:function(){return this._Xv1;},_NZ:function(_yv1){this._Xv1=_yv1;},_1x1:function(){return this._Yv1;},_OZ:function(_zv1){this._Yv1=_zv1;},_2x1:function(){return this._Zv1;},_3x1:function(scale){this._Zv1=scale;},_4x1:function(type){_Hj1(this._Ov1._Jg1()==false);
if(this._Ov1._Jg1()==true){return;}if(this._nH==type){return;}this._nH=type;this._qw1();if(this._nH==_uv1._vv1){this._Vv1._wk1();this._Wv1=0.0;this._Qv1._ll1=this._Qv1._05;this._Qv1._jl1._EI(this._Qv1.c);this._5x1();}this._QZ(true);this.__v1._wk1();this._0w1=0.0;var _6x1=this._Sv1;while(_6x1){var _7x1=_6x1;_6x1=_6x1._Zk;this._Ov1._lw1._Mg1(_7x1._uw1);}this._Sv1=null;var _kw1=this._Ov1._lw1._mw1;for(var _nv=this._8w1;_nv;_nv=_nv._Uv1){var _8x1=_nv._go1;for(var i=0;i<_8x1;++i){_kw1._to1(_nv._9x1[i]._no1);
}}},_8g1:function(){return this._nH;},_ax1:function(_bx1){if(_bx1){this._Iv1|=_uv1._Jv1;}else {this._Iv1&=~_uv1._Jv1;}},_cx1:function(){return(this._Iv1&_uv1._Jv1)==_uv1._Jv1;},_dx1:function(_bx1){if(_bx1){this._Iv1|=_uv1._Lv1;}else {this._Iv1&=~_uv1._Lv1;this._QZ(true);}},_ex1:function(){return(this._Iv1&_uv1._Lv1)==_uv1._Lv1;},_QZ:function(_bx1){if(_bx1){if((this._Iv1&_uv1._Mv1)==0){this._Iv1|=_uv1._Mv1;this._1w1=0.0;}}else {this._Iv1&=~_uv1._Mv1;this._1w1=0.0;this._Vv1._wk1();this._Wv1=0.0;this.__v1._wk1();
this._0w1=0.0;}},_fx1:function(){return(this._Iv1&_uv1._Mv1)==_uv1._Mv1;},_gx1:function(_bx1){_Hj1(this._Ov1._Jg1()==false);if(_bx1==this._hx1()){return;}if(_bx1){this._Iv1|=_uv1._Nv1;var _kw1=this._Ov1._lw1._mw1;for(var _nv=this._8w1;_nv;_nv=_nv._Uv1){_nv._nw1(_kw1,this._Ls1);}}else {this._Iv1&=~_uv1._Nv1;var _kw1=this._Ov1._lw1._mw1;for(var _nv=this._8w1;_nv;_nv=_nv._Uv1){_nv._zw1(_kw1);}var _6x1=this._Sv1;while(_6x1){var _7x1=_6x1;_6x1=_6x1._Zk;this._Ov1._lw1._Mg1(_7x1._uw1);}this._Sv1=null;}},_hx1:function(){
return(this._Iv1&_uv1._Nv1)==_uv1._Nv1;},_ix1:function(_bx1){var status=(this._Iv1&_uv1._Kv1)==_uv1._Kv1;if(status==_bx1){return;}if(_bx1){this._Iv1|=_uv1._Kv1;}else {this._Iv1&=~_uv1._Kv1;}this._Wv1=0.0;this._qw1();},_jx1:function(){return(this._Iv1&_uv1._Kv1)==_uv1._Kv1;},_kx1:function(){return this._8w1;},_lx1:function(){return this._Rv1;},_mx1:function(){return this._Sv1;},_nx1:function(){return this._Uv1;},_vo1:function(){return this._7w1;},_ox1:function(data){this._7w1=data;},_px1:function(){return this._Ov1;
},_5x1:function(){_uv1._ew1.q.Set(this._Qv1._ll1);_uv1._ew1._2z._EI(_vk1._Ck1(this._Qv1._jl1,_Gl1(_uv1._ew1.q,this._Qv1._il1)));var _kw1=this._Ov1._lw1._mw1;for(var _nv=this._8w1;_nv;_nv=_nv._Uv1){_nv._Bw1(_kw1,_uv1._ew1,this._Ls1);}},_qx1:function(){this._Ls1.q.Set(this._Qv1._05);this._Ls1._2z._EI(_vk1._Ck1(this._Qv1.c,_Gl1(this._Ls1.q,this._Qv1._il1)));},_rx1:function(other){if(this._nH!=_uv1._2w1&&other._nH!=_uv1._2w1){return false;}for(var _sx1=this._Rv1;_sx1;_sx1=_sx1._Zk){if(_sx1.other==other){
if(_sx1._h_._tx1==false){return false;}}}return true;},_pl1:function(alpha){this._Qv1._pl1(alpha);this._Qv1.c._EI(this._Qv1._jl1);this._Qv1._05=this._Qv1._ll1;this._Ls1.q.Set(this._Qv1._05);this._Ls1._2z._EI(_vk1._Ck1(this._Qv1.c,_Gl1(this._Ls1.q,this._Qv1._il1)));},_Ik1:function(out){var _Ik=out||{};_Ik['fixtures']=null;_Ik['type']=this._nH;_Ik['position']=this._4Z()._Ik1();_Ik['angle']=this._cl1();_Ik['linearVelocity']=this._Fw1()._Ik1();_Ik['angularVelocity']=this._Hw1();_Ik['linearDamping']=this._0x1();
_Ik['angularDamping']=this._1x1();_Ik['allowSleep']=this._ex1();_Ik['awake']=this._fx1();_Ik['fixedRotation']=this._jx1();_Ik['bullet']=this._cx1();_Ik['active']=this._hx1();_Ik['gravityScale']=this._2x1();return _Ik;}};function _ux1(){this._vx1=0x0001;this._wx1=0xFFFF;this._xx1=0;}_ux1.prototype={_Q3:function(){var filter=new _ux1();filter._vx1=this._vx1;filter._wx1=this._wx1;filter._xx1=this._xx1;return filter;},_EI:function(filter){this._vx1=filter._vx1;this._wx1=filter._wx1;this._xx1=filter._xx1;
},_Ik1:function(out){var _Ik=out||{};_Ik['categoryBits']=this._vx1;_Ik['maskBits']=this._wx1;_Ik['groupIndex']=this._xx1;return _Ik;},_Jk1:function(data){this._vx1=data['categoryBits'];this._wx1=data['maskBits'];this._xx1=data['groupIndex'];}};function _iw1(){this.shape=null;this._mo1=null;this.friction=0.2;this._yx1=0.0;this._h11=0.0;this._zx1=false;this.filter=new _ux1();Object.seal(this);}_iw1.prototype={_Jk1:function(data){this.friction=data['friction'];this._yx1=data['restitution'];this._h11=data['density'];
this._zx1=data['isSensor'];this.filter._Jk1(data['filter']);}};function _Ax1(){this._Jm1=new __q1();this._AZ=null;this._Hm1=0;this._no1=0;};function _jw1(){this._7w1=null;this._ow1=null;this._Uv1=null;this._9x1=null;this._go1=0;this._Bx1=null;this._pw1=0.0;this._Cx1=new _ux1();this._Dx1=false;this._Ex1=0;this._Fx1=0;}_jw1.prototype={_8g1:function(){return this._Bx1._8g1();},_Gx1:function(){return this._Bx1;},_LZ:function(_Hx1){if(_Hx1!=this._Dx1){this._ow1._QZ(true);this._Dx1=_Hx1;}},_Ix1:function(){return this._Dx1;
},_Jx1:function(filter){this._Cx1=filter;this._Kx1();},_Lx1:function(){return this._Cx1;},_Kx1:function(){if(this._ow1==null){return;}var _un1=this._ow1._mx1();while(_un1){var _uw1=_un1._uw1;var _vw1=_uw1._ww1();var _xw1=_uw1._yw1();if(_vw1==this||_xw1==this){_uw1._Mx1();}_un1=_un1._Zk;}var _Gv1=this._ow1._px1();if(_Gv1==null){return;}var _kw1=_Gv1._lw1._mw1;for(var i=0;i<this._go1;++i){_kw1._to1(this._9x1[i]._no1);}},_Nx1:function(){return this._ow1;},_nx1:function(){return this._Uv1;},_vo1:function(){return this._7w1;
},_ox1:function(data){this._7w1=data;},_Fm1:function(_2z){return this._Bx1._Fm1(this._ow1._nl1(),_2z);},_Gm1:function(output,input,_Hm1){return this._Bx1._Gm1(output,input,this._ow1._nl1(),_Hm1);},_Qw1:function(_Lm1){this._Bx1._Km1(_Lm1,this._pw1);},_DZ:function(_h11){_Hj1(_lk1(_h11)&&_h11>=0.0);this._pw1=_h11;},_C01:function(){return this._pw1;},_B01:function(){return this._Ex1;},_HZ:function(friction){this._Ex1=friction;},_D01:function(){return this._Fx1;},_FZ:function(_yx1){this._Fx1=_yx1;},_Ox1:function(_Hm1){
_Hj1(0<=_Hm1&&_Hm1<this._go1);return this._9x1[_Hm1]._Jm1;},_7a1:function(body,_gw1){this._7w1=_gw1._mo1;this._Ex1=_gw1.friction;this._Fx1=_gw1._yx1;this._ow1=body;this._Uv1=null;this._Cx1._EI(_gw1.filter);this._Dx1=_gw1._zx1;this._Bx1=_gw1.shape._Q3();var _Px1=this._Bx1._Em1();this._9x1=new Array(_Px1);for(var i=0;i<_Px1;++i){this._9x1[i]=new _Ax1();this._9x1[i]._AZ=null;this._9x1[i]._no1=_co1._Bo1;}this._go1=0;this._pw1=_gw1._h11;},_Mg1:function(){_Hj1(this._go1==0);this._9x1=null;this._Bx1=null;},
_nw1:function(_kw1,_gl1){_Hj1(this._go1==0);this._go1=this._Bx1._Em1();for(var i=0;i<this._go1;++i){var _Qx1=this._9x1[i];this._Bx1._Im1(_Qx1._Jm1,_gl1,i);_Qx1._no1=_kw1._lo1(_Qx1._Jm1,_Qx1);_Qx1._AZ=this;_Qx1._Hm1=i;}},_zw1:function(_kw1){for(var i=0;i<this._go1;++i){var _Qx1=this._9x1[i];_kw1._po1(_Qx1._no1);_Qx1._no1=_co1._Bo1;}this._go1=0;},_Bw1:function(_kw1,_Rx1,_Sx1){if(this._go1==0){return;}for(var i=0;i<this._go1;++i){var _Qx1=this._9x1[i];var _5r1=new __q1(),_6r1=new __q1();this._Bx1._Im1(_5r1,
_Rx1,_Qx1._Hm1);this._Bx1._Im1(_6r1,_Sx1,_Qx1._Hm1);_Qx1._Jm1._4r1(_5r1,_6r1);var _so1=_vk1._Ck1(_Sx1._2z,_Rx1._2z);_kw1._ro1(_Qx1._no1,_Qx1._Jm1,_so1);}},_Mm1:function(_2z,_Xo,_c7,_Hm1){this._Bx1._Mm1(this._ow1._nl1(),_2z,_Xo,_c7,_Hm1);},_Ik1:function(out){var _Ik=out||{};_Ik['shape']=null;_Ik['friction']=this._Ex1;_Ik['restitution']=this._Fx1;_Ik['density']=this._pw1;_Ik['isSensor']=this._Dx1;_Ik['filter']=this._Cx1._Ik1();return _Ik;}};function _Tx1(){}_Tx1.prototype={_Ux1:function(_h_){},_Vx1:function(_AZ){
},_Wx1:function(_t11){},_Xx1:function(index){}};function _Yx1(){}_Yx1.prototype={_rx1:function(_vw1,_xw1){var _Zx1=_vw1._Lx1();var __x1=_xw1._Lx1();if(_Zx1._xx1==__x1._xx1&&_Zx1._xx1!=0){return _Zx1._xx1>0;}var _0y1=(_Zx1._wx1&__x1._vx1)!=0&&(_Zx1._vx1&__x1._wx1)!=0;return _0y1;}};function _1y1(){this._2y1=new Array(_Mj1);this._3y1=new Array(_Mj1);this._c9=0;}function _4y1(){}_4y1.prototype={_5y1:function(_uw1){},_6y1:function(_uw1){},_7y1:function(_uw1,_8y1){},_9y1:function(_uw1,_Nw1){}};function _ay1(){}
_ay1.prototype={_by1:function(_AZ){return false;},_cy1:function(index){return false;}};function _dy1(){}_dy1.prototype={_by1:function(_AZ,_nq1,_Om1,_R11){},_cy1:function(index,_nq1,_Om1,_R11){return 0;}};function _ey1(){this._jv=0;this._fy1=0;this._gy1=0;this._hy1=0;this._iy1=0;this._jy1=false;}function _ky1(){this.c=new _vk1();this._05=0;}function _ly1(){this._H5=new _vk1();this.w=0;}function _my1(){this.step=new _ey1();this._ny1=null;this._oy1=null;}var _py1=_qj1._Aj1("step");var _qy1=_qj1._Aj1("collide","step");
var _ry1=_qj1._Aj1("solve","step");var _sy1=_qj1._Aj1("solveTOI","step");var _ty1=_qj1._Aj1("broadphase","step");function _rw1(gravity){this._lw1=new _uy1();this._vy1=null;this._wy1=null;this._xy1=null;this._Rv1=null;this._yy1=0;this._zy1=0;this._Ay1=true;this._By1=true;this._Cy1=false;this._Dy1=true;this._Ey1=true;this._Fy1=gravity;this._Iv1=_rw1._Gy1;this._Hy1=0.0;this._Iy1=new _ey1();this._Jy1=new _Ky1();this._Ly1=new _My1();this._Ly1._Ov1=this;}function _Ny1(){this._kw1=null;this._zg1=null;}_Ny1.prototype={
_Qo1:function(_no1){var _Qx1=this._kw1._vo1(_no1);return this._zg1._by1(_Qx1._AZ);}};function _Oy1(){this._kw1=null;this._zg1=null;}_Oy1.prototype={_Wt1:function(input,_no1){var _mo1=this._kw1._vo1(_no1);var _Qx1=_mo1;var _AZ=_Qx1._AZ;var index=_Qx1._Hm1;var output=new _Zq1();var _j7=_AZ._Gm1(output,input,index);if(_j7){var _R11=output._R11;var _nq1=_vk1._Vf(_vk1.Multiply((1.0-_R11),input._ap),_vk1.Multiply(_R11,input._hm1));return this._zg1._by1(_AZ,_nq1,output._Om1,_R11);}return input._M11;}};_rw1._Py1=new _hl1();
_rw1._Qy1=new _hl1();_rw1._Ry1=new _hl1();_rw1.prototype={_Mg1:function(){var __4=this._xy1;while(__4){var _Sy1=__4._Uv1;var _nv=__4._8w1;while(_nv){var _Ty1=_nv._Uv1;_nv._go1=0;_nv._Mg1();_nv=_Ty1;}__4=_Sy1;}},_Uy1:function(listener){this._vy1=listener;},_Vy1:function(filter){this._lw1._Wy1=filter;},_Xy1:function(listener){this._lw1._Yy1=listener;},_Zy1:function(__y1){this._wy1=__y1;},_4_:function(_gw1){_Hj1(this._Jg1()==false);if(this._Jg1()){return null;}var __4=new _uv1(_gw1,this);__4._Tv1=null;__4._Uv1=this._xy1;
if(this._xy1){this._xy1._Tv1=__4;}this._xy1=__4;++this._yy1;return __4;},_0z1:function(__4){_Hj1(this._yy1>0);_Hj1(this._Jg1()==false);if(this._Jg1()){return;}var _1z1=__4._Rv1;while(_1z1){var _2z1=_1z1;_1z1=_1z1._Zk;if(this._vy1){this._vy1._Ux1(_2z1._h_);}this._601(_2z1._h_);__4._Rv1=_1z1;}__4._Rv1=null;var _6x1=__4._Sv1;while(_6x1){var _7x1=_6x1;_6x1=_6x1._Zk;this._lw1._Mg1(_7x1._uw1);}__4._Sv1=null;var _nv=__4._8w1;while(_nv){var _3z1=_nv;_nv=_nv._Uv1;if(this._vy1){this._vy1._Vx1(_3z1);}_3z1._zw1(this._lw1._mw1);
_3z1._Mg1();__4._8w1=_nv;__4._9w1-=1;}__4._8w1=null;__4._9w1=0;if(__4._Tv1){__4._Tv1._Uv1=__4._Uv1;}if(__4._Uv1){__4._Uv1._Tv1=__4._Tv1;}if(__4==this._xy1){this._xy1=__4._Uv1;}__4._4z1=true;--this._yy1;},_5z1:function(_gw1){_Hj1(this._Jg1()==false);if(this._Jg1()){return null;}var _J6=_6z1._7a1(_gw1);_J6._Tv1=null;_J6._Uv1=this._Rv1;if(this._Rv1){this._Rv1._Tv1=_J6;}this._Rv1=_J6;++this._zy1;_J6._7z1._h_=_J6;_J6._7z1.other=_J6._8z1;_J6._7z1._Xk=null;_J6._7z1._Zk=_J6._9z1._Rv1;if(_J6._9z1._Rv1)_J6._9z1._Rv1._Xk=_J6._7z1;
_J6._9z1._Rv1=_J6._7z1;_J6._az1._h_=_J6;_J6._az1.other=_J6._9z1;_J6._az1._Xk=null;_J6._az1._Zk=_J6._8z1._Rv1;if(_J6._8z1._Rv1)_J6._8z1._Rv1._Xk=_J6._az1;_J6._8z1._Rv1=_J6._az1;var _bz1=_gw1._bz1;var _cz1=_gw1._cz1;if(_gw1._dz1==false){var _un1=_cz1._mx1();while(_un1){if(_un1.other==_bz1){_un1._uw1._Mx1();}_un1=_un1._Zk;}}return _J6;},_601:function(_J6){_Hj1(this._Jg1()==false);if(this._Jg1()){return;}var _dz1=_J6._tx1;if(_J6._Tv1){_J6._Tv1._Uv1=_J6._Uv1;}if(_J6._Uv1){_J6._Uv1._Tv1=_J6._Tv1;}if(_J6==this._Rv1){
this._Rv1=_J6._Uv1;}var _bz1=_J6._9z1;var _cz1=_J6._8z1;_bz1._QZ(true);_cz1._QZ(true);if(_J6._7z1._Xk){_J6._7z1._Xk._Zk=_J6._7z1._Zk;}if(_J6._7z1._Zk){_J6._7z1._Zk._Xk=_J6._7z1._Xk;}if(_J6._7z1==_bz1._Rv1){_bz1._Rv1=_J6._7z1._Zk;}_J6._7z1._Xk=null;_J6._7z1._Zk=null;if(_J6._az1._Xk){_J6._az1._Xk._Zk=_J6._az1._Zk;}if(_J6._az1._Zk){_J6._az1._Zk._Xk=_J6._az1._Xk;}if(_J6._az1==_cz1._Rv1){_cz1._Rv1=_J6._az1._Zk;}_J6._az1._Xk=null;_J6._az1._Zk=null;_6z1._Mg1(_J6);_Hj1(this._zy1>0);--this._zy1;if(_dz1==false){
var _un1=_cz1._mx1();while(_un1){if(_un1.other==_bz1){_un1._uw1._Mx1();}_un1=_un1._Zk;}}},_ez1:function(_jv,_hy1,_iy1){_py1.start();if(this._Iv1&_rw1._sw1){this._lw1._fz1();this._Iv1&=~_rw1._sw1;}this._Iv1|=_rw1._gz1;this._Iy1._jv=_jv;this._Iy1._hy1=_hy1;this._Iy1._iy1=_iy1;if(_jv>0.0){this._Iy1._fy1=1.0/_jv;}else {this._Iy1._fy1=0.0;}this._Iy1._gy1=this._Hy1*_jv;this._Iy1._jy1=this._Ay1;{_qy1.start();this._lw1._2t1();_qy1.stop();}if(this._Dy1&&this._Iy1._jv>0.0){_ry1.start();this._Ly1._Uk1(this._Iy1);
this._Uk1(this._Iy1);_ry1.stop();}if(this._By1&&this._Iy1._jv>0.0){_sy1.start();this._hz1(this._Iy1);_sy1.stop();}if(this._Iy1._jv>0.0){this._Hy1=this._Iy1._fy1;}if(this._Iv1&_rw1._Gy1){this._iz1();}this._Iv1&=~_rw1._gz1;_py1.stop();},_iz1:function(){for(var body=this._xy1;body;body=body._nx1()){body.__v1.x=body.__v1.y=0;body._0w1=0.0;}},_jz1:function(){if(this._wy1==null){return;}var _Ai1=this._wy1._7m1();if(_Ai1&_4m1._lm1){for(var __4=this._xy1;__4;__4=__4._nx1()){var _gl1=__4._nl1();for(var _nv=__4._kx1();
_nv;_nv=_nv._nx1()){if(__4._hx1()==false){this._kz1(_nv,_gl1,new _3m1(0.5,0.5,0.3));}else if(__4._8g1()==_uv1._vv1){this._kz1(_nv,_gl1,new _3m1(0.5,0.9,0.5));}else if(__4._8g1()==_uv1._aw1){this._kz1(_nv,_gl1,new _3m1(0.5,0.5,0.9));}else if(__4._fx1()==false){this._kz1(_nv,_gl1,new _3m1(0.6,0.6,0.6));}else {this._kz1(_nv,_gl1,new _3m1(0.9,0.7,0.7));}}}this._lz1(this._Ly1);}if(_Ai1&_4m1._mm1){for(var _J6=this._Rv1;_J6;_J6=_J6._nx1()){this._mz1(_J6);}}if(_Ai1&_4m1._vm1){var color=new _3m1(0.3,0.9,0.9);for(var c=this._lw1._Sv1;
c;c=c._nx1()){var _vw1=c._ww1();var _xw1=c._yw1();var _nz1=_vw1._Ox1(c._oz1())._1r1();var _pz1=_xw1._Ox1(c._qz1())._1r1();this._wy1._gm1(_nz1,_pz1,color);}}if(_Ai1&_4m1._nm1){var color=new _3m1(0.9,0.3,0.9);var _rz1=new _3m1(0.3,0.3,0.9);var _sz1=this._lw1._mw1;for(var __4=this._xy1;__4;__4=__4._nx1()){if(__4._hx1()==false){continue;}for(var _nv=__4._kx1();_nv;_nv=_nv._nx1()){for(var i=0;i<_nv._go1;++i){var _Qx1=_nv._9x1[i];var _Jm1=_sz1._uo1(_Qx1._no1);var _2o1=[];_2o1[0]=new _vk1(_Jm1._Xm1.x,_Jm1._Xm1.y);_2o1[1]=new _vk1(_Jm1._Ym1.x,
_Jm1._Xm1.y);_2o1[2]=new _vk1(_Jm1._Ym1.x,_Jm1._Ym1.y);_2o1[3]=new _vk1(_Jm1._Xm1.x,_Jm1._Ym1.y);this._wy1._bm1(_2o1,4,color);var _tz1=new __q1();_nv._Gx1()._Im1(_tz1,__4._nl1(),0);_2o1[0]=new _vk1(_tz1._Xm1.x,_tz1._Xm1.y);_2o1[1]=new _vk1(_tz1._Ym1.x,_tz1._Xm1.y);_2o1[2]=new _vk1(_tz1._Ym1.x,_tz1._Ym1.y);_2o1[3]=new _vk1(_tz1._Xm1.x,_tz1._Ym1.y);this._wy1._bm1(_2o1,4,_rz1);}}}}if(_Ai1&_4m1._om1){for(var __4=this._xy1;__4;__4=__4._nx1()){var _gl1=__4._nl1()._Q3();_gl1._2z=__4._Cw1();this._wy1._im1(_gl1);}
}},_uz1:function(_zg1,_Jm1){var _vz1=new _Ny1();_vz1._kw1=this._lw1._mw1;_vz1._zg1=_zg1;this._lw1._mw1._Do1(_vz1,_Jm1);this._Ly1._uz1(_zg1,_Jm1);},_Gm1:function(_zg1,_wz1,_xz1){var _vz1=new _Oy1();_vz1._kw1=this._lw1._mw1;_vz1._zg1=_zg1;var input=new _Yq1();input._M11=1.0;input._ap=_wz1;input._hm1=_xz1;this._lw1._mw1._Gm1(_vz1,input);this._Ly1._Gm1(_zg1,_wz1,_xz1);},/*@returns {b2Body} the head of the world body list. */_yz1:function(){return this._xy1;},_lx1:function(){return this._Rv1;},_mx1:function(){
return this._lw1._Sv1;},_zz1:function(_bx1){if(_bx1==this._Ey1){return;}this._Ey1=_bx1;if(this._Ey1==false){for(var __4=this._xy1;__4;__4=__4._Uv1){__4._QZ(true);}}},_Az1:function(){return this._Ey1;},_Bz1:function(_bx1){this._Ay1=_bx1;},_Cz1:function(){return this._Ay1;},_Dz1:function(_bx1){this._By1=_bx1;},_Ez1:function(){return this._By1;},_Fz1:function(_bx1){this._Cy1=_bx1;},_Gz1:function(){return this._Cy1;},_zo1:function(){return this._lw1._mw1._zo1();},_Hz1:function(){return this._yy1;},_Iz1:function(){
return this._zy1;},_Jz1:function(){return this._lw1._Kz1;},_Jo1:function(){return this._lw1._mw1._Jo1();},_Ko1:function(){return this._lw1._mw1._Ko1();},_Mo1:function(){return this._lw1._mw1._Mo1();},_tZ:function(gravity){this._Fy1=gravity;},_Lz1:function(){return this._Fy1;},_Jg1:function(){return(this._Iv1&_rw1._gz1)==_rw1._gz1;},_Mz1:function(_bx1){if(_bx1){this._Iv1|=_rw1._Gy1;}else {this._Iv1&=~_rw1._Gy1;}},_Nz1:function(){return(this._Iv1&_rw1._Gy1)==_rw1._Gy1;},_Oo1:function(_Po1){_Hj1((this._Iv1&_rw1._gz1)==0);
if((this._Iv1&_rw1._gz1)==_rw1._gz1){return;}for(var __4=this._xy1;__4;__4=__4._Uv1){__4._Ls1._2z._Ck1(_Po1);__4._Qv1._jl1._Ck1(_Po1);__4._Qv1.c._Ck1(_Po1);}for(var _J6=this._Rv1;_J6;_J6=_J6._Uv1){_J6._Oo1(_Po1);}this._lw1._mw1._Oo1(_Po1);},_Oz1:function(){return this._lw1;},_Uk1:function(step){for(var __4=this._xy1;__4;__4=__4._Uv1){__4._Pv1._EI(__4._Ls1);}this._Jy1._Bq1(this._yy1,this._lw1._Kz1,this._zy1,this._lw1._Yy1);for(var __4=this._xy1;__4;__4=__4._Uv1){__4._Iv1&=~_uv1._bw1;}for(var c=this._lw1._Sv1;
c;c=c._Uv1){c._Iv1&=~_Pz1._bw1;}for(var _J6=this._Rv1;_J6;_J6=_J6._Uv1){_J6._Qz1=false;}var _Rz1=this._yy1;var stack=new Array(_Rz1);for(var _Sz1=this._xy1;_Sz1;_Sz1=_Sz1._Uv1){if(_Sz1._Iv1&_uv1._bw1){continue;}if(_Sz1._fx1()==false||_Sz1._hx1()==false){continue;}if(_Sz1._8g1()==_uv1._vv1){continue;}this._Jy1._ag();var _Tz1=0;stack[_Tz1++]=_Sz1;_Sz1._Iv1|=_uv1._bw1;while(_Tz1>0){var __4=stack[--_Tz1];_Hj1(__4._hx1()==true);this._Jy1._Uz1(__4);__4._QZ(true);if(__4._8g1()==_uv1._vv1){continue;}for(var _6x1=__4._Sv1;
_6x1;_6x1=_6x1._Zk){var _uw1=_6x1._uw1;if(_uw1._Iv1&_Pz1._bw1){continue;}if(_uw1._Vz1()==false||_uw1._Wz1()==false){continue;}var _Xz1=_uw1._Yz1._Dx1;var _Zz1=_uw1.__z1._Dx1;if(_Xz1||_Zz1){continue;}this._Jy1._0A1(_uw1);_uw1._Iv1|=_Pz1._bw1;var other=_6x1.other;if(other._Iv1&_uv1._bw1){continue;}_Hj1(_Tz1<_Rz1);stack[_Tz1++]=other;other._Iv1|=_uv1._bw1;}for(var _1z1=__4._Rv1;_1z1;_1z1=_1z1._Zk){if(_1z1._h_._Qz1==true){continue;}var other=_1z1.other;if(other._hx1()==false){continue;}this._Jy1._1A1(_1z1._h_);
_1z1._h_._Qz1=true;if(other._Iv1&_uv1._bw1){continue;}_Hj1(_Tz1<_Rz1);stack[_Tz1++]=other;other._Iv1|=_uv1._bw1;}}this._Jy1._Uk1(step,this._Fy1,this._Ey1);for(var i=0;i<this._Jy1._yy1;++i){var __4=this._Jy1._2A1[i];if(__4._8g1()==_uv1._vv1){__4._Iv1&=~_uv1._bw1;}}}{_ty1.start();for(var __4=this._xy1;__4;__4=__4._nx1()){if((__4._Iv1&_uv1._bw1)==0){continue;}if(__4._8g1()==_uv1._vv1){continue;}__4._5x1();}this._lw1._fz1();_ty1.stop();}},_hz1:function(step){this._Jy1._Bq1(2*_Uj1,_Uj1,0,this._lw1._Yy1);
if(this._Dy1){for(var __4=this._xy1;__4;__4=__4._Uv1){__4._Iv1&=~_uv1._bw1;__4._Qv1._ml1=0.0;}for(var c=this._lw1._Sv1;c;c=c._Uv1){c._Iv1&=~(_Pz1._cw1|_Pz1._bw1);c._3A1=0;c._4A1=1.0;}}for(;;){var _5A1=null;var _6A1=1.0;for(var c=this._lw1._Sv1;c;c=c._Uv1){if(c._Vz1()==false){continue;}if(c._3A1>_Tj1){continue;}var alpha=1.0;if(c._Iv1&_Pz1._cw1){alpha=c._4A1;}else {var _7A1=c._ww1();var _8A1=c._yw1();if(_7A1._Ix1()||_8A1._Ix1()){continue;}var _9A1=_7A1._Nx1();var _aA1=_8A1._Nx1();var _fq1=_9A1._nH;var _gq1=_aA1._nH;
_Hj1(_fq1==_uv1._2w1||_gq1==_uv1._2w1);var _bA1=_9A1._fx1()&&_fq1!=_uv1._vv1;var _cA1=_aA1._fx1()&&_gq1!=_uv1._vv1;if(_bA1==false&&_cA1==false){continue;}var _dA1=_9A1._cx1()||_fq1!=_uv1._2w1;var _eA1=_aA1._cx1()||_gq1!=_uv1._2w1;if(_dA1==false&&_eA1==false){continue;}var _ml1=_9A1._Qv1._ml1;if(_9A1._Qv1._ml1<_aA1._Qv1._ml1){_ml1=_aA1._Qv1._ml1;_9A1._Qv1._pl1(_ml1);}else if(_aA1._Qv1._ml1<_9A1._Qv1._ml1){_ml1=_9A1._Qv1._ml1;_aA1._Qv1._pl1(_ml1);}_Hj1(_ml1<1.0);var _Yo1=c._oz1();var _Zo1=c._qz1();var input=new _Hu1();
input._0p1.Set(_7A1._Gx1(),_Yo1);input._1p1.Set(_8A1._Gx1(),_Zo1);input._Iu1._EI(_9A1._Qv1);input._Ju1._EI(_aA1._Qv1);input._Ku1=1.0;var output=new _Lu1();_bv1(output,input);var _ol1=output._s7;if(output.state==_Lu1._Ou1){alpha=_Tl1(_ml1+(1.0-_ml1)*_ol1,1.0);}else {alpha=1.0;}c._4A1=alpha;c._Iv1|=_Pz1._cw1;}if(alpha<_6A1){_5A1=c;_6A1=alpha;}}if(_5A1==null||1.0-10.0*_Kj1<_6A1){this._Dy1=true;break;}var _7A1=_5A1._ww1();var _8A1=_5A1._yw1();var _9A1=_7A1._Nx1();var _aA1=_8A1._Nx1();_rw1._Py1._EI(_9A1._Qv1);
_rw1._Qy1._EI(_aA1._Qv1);_9A1._pl1(_6A1);_aA1._pl1(_6A1);_5A1._bg(this._lw1._Yy1);_5A1._Iv1&=~_Pz1._cw1;++_5A1._3A1;if(_5A1._Vz1()==false||_5A1._Wz1()==false){_5A1._fA1(false);_9A1._Qv1._EI(_rw1._Py1);_aA1._Qv1._EI(_rw1._Qy1);_9A1._qx1();_aA1._qx1();continue;}_9A1._QZ(true);_aA1._QZ(true);this._Jy1._ag();this._Jy1._Uz1(_9A1);this._Jy1._Uz1(_aA1);this._Jy1._0A1(_5A1);_9A1._Iv1|=_uv1._bw1;_aA1._Iv1|=_uv1._bw1;_5A1._Iv1|=_Pz1._bw1;var _gA1=[_9A1,_aA1];for(var i=0;i<2;++i){var body=_gA1[i];if(body._nH==_uv1._2w1){
for(var _6x1=body._Sv1;_6x1;_6x1=_6x1._Zk){if(this._Jy1._yy1==this._Jy1._hA1){break;}if(this._Jy1._Kz1==this._Jy1._iA1){break;}var _uw1=_6x1._uw1;if(_uw1._Iv1&_Pz1._bw1){continue;}var other=_6x1.other;if(other._nH==_uv1._2w1&&body._cx1()==false&&other._cx1()==false){continue;}var _Xz1=_uw1._Yz1._Dx1;var _Zz1=_uw1.__z1._Dx1;if(_Xz1||_Zz1){continue;}_rw1._Ry1._EI(other._Qv1);if((other._Iv1&_uv1._bw1)==0){other._pl1(_6A1);}_uw1._bg(this._lw1._Yy1);if(_uw1._Vz1()==false){other._Qv1._EI(_rw1._Ry1);other._qx1();
continue;}if(_uw1._Wz1()==false){other._Qv1._EI(_rw1._Ry1);other._qx1();continue;}_uw1._Iv1|=_Pz1._bw1;this._Jy1._0A1(_uw1);if(other._Iv1&_uv1._bw1){continue;}other._Iv1|=_uv1._bw1;if(other._nH!=_uv1._vv1){other._QZ(true);}this._Jy1._Uz1(other);}}}var _jA1=new _ey1();_jA1._jv=(1.0-_6A1)*step._jv;_jA1._fy1=1.0/_jA1._jv;_jA1._gy1=1.0;_jA1._iy1=20;_jA1._hy1=step._hy1;_jA1._jy1=false;this._Jy1._hz1(_jA1,_9A1._Hv1,_aA1._Hv1);for(var i=0;i<this._Jy1._yy1;++i){var body=this._Jy1._2A1[i];body._Iv1&=~_uv1._bw1;
if(body._nH!=_uv1._2w1){continue;}body._5x1();for(var _6x1=body._Sv1;_6x1;_6x1=_6x1._Zk){_6x1._uw1._Iv1&=~(_Pz1._cw1|_Pz1._bw1);}}this._lw1._fz1();if(this._Cy1){this._Dy1=false;break;}}},_mz1:function(_h_){var _bz1=_h_._kA1();var _cz1=_h_._lA1();var _xr1=_bz1._nl1();var _zr1=_cz1._nl1();var _f7=_xr1._2z;var _h7=_zr1._2z;var _ap=_h_._mA1();var _hm1=_h_._nA1();var color=new _3m1(0.5,0.8,0.8);switch(_h_._8g1()){case _6z1._oA1:this._wy1._gm1(_ap,_hm1,color);break;case _6z1._pA1:{var _qA1=_h_;var _Js=_qA1._rA1();var _Ks=_qA1._sA1();
this._wy1._gm1(_Js,_ap,color);this._wy1._gm1(_Ks,_hm1,color);this._wy1._gm1(_Js,_Ks,color);}break;case _6z1._tA1:break;case _6z1._uA1:this._wy1._vA1(_h_._wA1(),5.0,color);default :this._wy1._gm1(_f7,_ap,color);this._wy1._gm1(_ap,_hm1,color);this._wy1._gm1(_h7,_hm1,color);}},_kz1:function(_AZ,_gl1,color){switch(_AZ._8g1()){case _Cm1._Pm1:{var _So1=_AZ._Gx1();var _em1=_Il1(_gl1,_So1._Vm1);var _K01=_So1._Dm1;var _bp=_Gl1(_gl1.q,new _vk1(1.0,0.0));this._wy1._fm1(_em1,_K01,_bp,color);}break;case _Cm1._Qm1:{var _un1=_AZ._Gx1();
var _3c=_Il1(_gl1,_un1._3n1);var _J5=_Il1(_gl1,_un1._4n1);this._wy1._gm1(_3c,_J5,color);}break;case _Cm1._Sm1:{var _To1=_AZ._Gx1();var _c9=_To1._hn1;var vertices=_To1._gn1;var _3c=_Il1(_gl1,vertices[0]);for(var i=1;i<_c9;++i){var _J5=_Il1(_gl1,vertices[i]);this._wy1._gm1(_3c,_J5,color);_3c=_J5;}}break;case _Cm1._Rm1:{var _I6=_AZ._Gx1();var vertexCount=_I6._hn1;_Hj1(vertexCount<=_Nj1);var vertices=new Array(_Nj1);for(var i=0;i<vertexCount;++i){vertices[i]=_Il1(_gl1,_I6._gn1[i]);}this._wy1._cm1(vertices,vertexCount,
color);}break;default :break;}},_a11:function(){return this._Ly1._a11();},_f11:function(_c9){this._Ly1._f11(_c9);},_i11:function(_h11){this._Ly1._i11(_h11);},_c11:function(){return this._Ly1._c11();},_l11:function(_Ev1){this._Ly1._l11(_Ev1);},_e11:function(){return this._Ly1._e11();},_k11:function(_j11){this._Ly1._k11(_j11);},_d11:function(){return this._Ly1._d11();},_g11:function(_K01){this._Ly1._g11(_K01);},_b11:function(){return this._Ly1._b11();},_I01:function(_gw1){_Hj1(this._Jg1()==false);if(this._Jg1()){
return 0;}var _2z=this._Ly1._I01(_gw1);return _2z;},_xA1:function(index,_yA1){this._Ly1._xA1(index,_yA1);},_zA1:function(shape,_gl1,_yA1){_Hj1(this._Jg1()==false);if(this._Jg1()){return 0;}return this._Ly1._zA1(shape,_gl1,_yA1);},_AA1:function(_gw1){_Hj1(this._Jg1()==false);if(this._Jg1()){return null;}var _Z4=this._Ly1._AA1(_gw1);return _Z4;},_BA1:function(_CA1,_DA1){_Hj1(this._Jg1()==false);if(this._Jg1()){return;}this._Ly1._BA1(_CA1,_DA1);},_EA1:function(_t11,_yA1){_Hj1(this._Jg1()==false);if(this._Jg1()){
return;}this._Ly1._EA1(_t11,_yA1);},_FA1:function(){return this._Ly1._FA1();},_GA1:function(){return this._Ly1._GA1();},_HA1:function(){return this._Ly1._HA1();},_IA1:function(){return this._Ly1._IA1();},_JA1:function(){return this._Ly1._JA1();},_KA1:function(){return this._Ly1._KA1();},_LA1:function(buffer,_MA1){this._Ly1._LA1(buffer,_MA1);},_NA1:function(buffer,_MA1){this._Ly1._NA1(buffer,_MA1);},_OA1:function(buffer,_MA1){this._Ly1._OA1(buffer,_MA1);},_PA1:function(buffer,_MA1){this._Ly1._PA1(buffer,
_MA1);},_QA1:function(buffer,_MA1){this._Ly1._QA1(buffer,_MA1);},_RA1:function(){return this._Ly1._SA1;},_TA1:function(){return this._Ly1._Kz1;},_UA1:function(){return this._Ly1._VA1;},_WA1:function(){return this._Ly1._XA1;},_YA1:function(){return this._Ly1._YA1();},_ZA1:function(){return this._Ly1._ZA1();},_u11:function(){return this._Ly1._u11();},_711:function(){return this._Ly1._711();},_lz1:function(__A1){var _0B1=__A1._711();if(_0B1){var _1B1=__A1._b11();var _2B1=__A1._GA1();if(__A1._3B1.data){var _4B1=__A1._IA1();
this._wy1._511(_2B1,_1B1,_4B1,_0B1);}else {this._wy1._511(_2B1,_1B1,null,_0B1);}}}};_rw1._sw1=0x0001;_rw1._gz1=0x0002;_rw1._Gy1=0x0004;function _5B1(_MA1){this._6B1=new Array(_MA1);this._Zs1=0;this._7B1=0;this._8B1=_MA1;}_5B1.prototype={_IS:function(_Yk){if(this._7B1>=this._8B1)return;this._6B1[this._7B1++]=_Yk;},_KS:function(){_Hj1(this._Zs1<this._7B1);this._Zs1++;},_9B1:function(){return this._Zs1>=this._7B1;},_aB1:function(){return this._6B1[this._Zs1];}};function _bB1(_cB1){this._dB1=new Array(_cB1);
this._eB1=0;this._fB1=0;this._gB1=0;this._hB1=null;}_bB1._iB1=function(){this._em1=new _vk1();this._Mh=0;};_bB1._jB1=function(x,y,i,_Z4){this._zH=x;this._BH=y;this._kB1=i;this._lB1=_Z4;};_bB1.prototype={_mB1:function(_em1,_Mh){var _Z4=(this._dB1[this._eB1++]=new _bB1._iB1());_Z4._em1._EI(_em1);_Z4._Mh=_Mh;},_nB1:function(_K01){_Hj1(this._hB1==null);var _oB1=1/_K01;var _RQ=new _vk1(+_Jj1,+_Jj1);var _Kn1=new _vk1(-_Jj1,-_Jj1);for(var _0l=0;_0l<this._eB1;_0l++){var _Z4=this._dB1[_0l];_RQ._EI(_Ul1(_RQ,_Z4._em1));
_Kn1._EI(_Wl1(_Kn1,_Z4._em1));}this._fB1=1+((_oB1*(_Kn1.x-_RQ.x))>>>0);this._gB1=1+((_oB1*(_Kn1.y-_RQ.y))>>>0);this._hB1=new Array(this._fB1*this._gB1);for(var i=0;i<this._fB1*this._gB1;i++)this._hB1[i]=null;var _ul=new _5B1(this._fB1*this._fB1);for(var _0l=0;_0l<this._eB1;_0l++){var _Z4=this._dB1[_0l];_Z4._em1._EI(_vk1.Multiply(_oB1,_vk1._Ck1(_Z4._em1,_RQ)));var x=_Vl1(0,_Tl1(Math.floor(_Z4._em1.x),this._fB1-1));var y=_Vl1(0,_Tl1(Math.floor(_Z4._em1.y),this._gB1-1));_ul._IS(new _bB1._jB1(x,y,x+y*this._fB1,
_Z4));}while(!_ul._9B1()){var x=_ul._aB1()._zH;var y=_ul._aB1()._BH;var i=_ul._aB1()._kB1;var _Z4=_ul._aB1()._lB1;_ul._KS();if(!this._hB1[i]){this._hB1[i]=_Z4;if(x>0){_ul._IS(new _bB1._jB1(x-1,y,i-1,_Z4));}if(y>0){_ul._IS(new _bB1._jB1(x,y-1,i-this._fB1,_Z4));}if(x<this._fB1-1){_ul._IS(new _bB1._jB1(x+1,y,i+1,_Z4));}if(y<this._gB1-1){_ul._IS(new _bB1._jB1(x,y+1,i+this._fB1,_Z4));}}}var _pB1=this._fB1+this._gB1;for(var _qB1=0;_qB1<_pB1;_qB1++){for(var y=0;y<this._gB1;y++){for(var x=0;x<this._fB1-1;x++){var i=x+y*this._fB1;
var _05=this._hB1[i];var __4=this._hB1[i+1];if(_05!=__4){_ul._IS(new _bB1._jB1(x,y,i,__4));_ul._IS(new _bB1._jB1(x+1,y,i+1,_05));}}}for(var y=0;y<this._gB1-1;y++){for(var x=0;x<this._fB1;x++){var i=x+y*this._fB1;var _05=this._hB1[i];var __4=this._hB1[i+this._fB1];if(_05!=__4){_ul._IS(new _bB1._jB1(x,y,i,__4));_ul._IS(new _bB1._jB1(x,y+1,i+this._fB1,_05));}}}var _rB1=false;while(!_ul._9B1()){var x=_ul._aB1()._zH;var y=_ul._aB1()._BH;var i=_ul._aB1()._kB1;var _0l=_ul._aB1()._lB1;_ul._KS();var _05=this._hB1[i];var __4=_0l;
if(_05!=__4){var ax=_05._em1.x-x;var ay=_05._em1.y-y;var _sB1=__4._em1.x-x;var _tB1=__4._em1.y-y;var _Ke1=ax*ax+ay*ay;var _xh=_sB1*_sB1+_tB1*_tB1;if(_Ke1>_xh){this._hB1[i]=__4;if(x>0){_ul._IS(new _bB1._jB1(x-1,y,i-1,__4));}if(y>0){_ul._IS(new _bB1._jB1(x,y-1,i-this._fB1,__4));}if(x<this._fB1-1){_ul._IS(new _bB1._jB1(x+1,y,i+1,__4));}if(y<this._gB1-1){_ul._IS(new _bB1._jB1(x,y+1,i+this._fB1,__4));}_rB1=true;}}}if(!_rB1){break;}}},_uB1:function(_zg1){for(var y=0;y<this._gB1-1;y++){for(var x=0;x<this._fB1-1;x++){
var i=x+y*this._fB1;var _05=this._hB1[i];var __4=this._hB1[i+1];var c=this._hB1[i+this._fB1];var _Xo=this._hB1[i+1+this._fB1];if(__4!=c){if(_05!=__4&&_05!=c){_zg1(_05._Mh,__4._Mh,c._Mh);}if(_Xo!=__4&&_Xo!=c){_zg1(__4._Mh,_Xo._Mh,c._Mh);}}}}}};function _vB1(_Y4,_Z4,__4,_05){if(_Y4 instanceof _3m1){this._Y4=(255*_Y4._Y4);this._Z4=(255*_Y4._Z4);this.__4=(255*_Y4.__4);this._05=255;}else if(typeof(_Y4)!=='undefined'){this._Y4=_Y4;this._Z4=_Z4;this.__4=__4;this._05=_05;}else this._Y4=this._Z4=this.__4=this._05=0;
}_vB1.prototype={_wB1:function(){return !this._Y4&&!this._Z4&&!this.__4&&!this._05;},_xB1:function(){return new _3m1(1.0/255*this._Y4,1.0/255*this._Z4,1.0/255*this.__4);},Set:function(_yB1,_zB1,_AB1,_BB1){if(_yB1 instanceof _3m1){this._Y4=(255*_yB1._Y4);this._Z4=(255*_yB1._Z4);this.__4=(255*_yB1.__4);this._05=255;}else {this._Y4=_yB1;this._Z4=_zB1;this.__4=_AB1;this._05=_BB1;}},_EI:function(_CB1){this._Y4=_CB1._Y4;this._Z4=_CB1._Z4;this.__4=_CB1.__4;this._05=_CB1._05;},_Q3:function(){return new _vB1(this._Y4,
this._Z4,this.__4,this._05);}};_vB1._qh=new _vB1();function _DB1(){this._Ai1=0;this.position=new _vk1();this._851=new _vk1();this.color=new _vB1();this._mo1=null;}_DB1._EB1=0;_DB1._FB1=1<<1;_DB1._GB1=1<<2;_DB1._HB1=1<<3;_DB1._IB1=1<<4;_DB1._JB1=1<<5;_DB1._KB1=1<<6;_DB1._LB1=1<<7;_DB1._MB1=1<<8;_DB1._NB1=1<<9;function _OB1(){this._Ai1=0;this._PB1=0;this.position=new _vk1();this.angle=0;this._wv1=new _vk1();this._xv1=0;this.color=new _vB1();this._U01=1;this.shape=null;this._QB1=true;this._mo1=null;}function _RB1(){
this._SB1=null;this._TB1=0;this._UB1=0;this._VB1=0;this._WB1=1.0;this._Tv1=null;this._Uv1=null;this._XB1=-1;this._3w1=0;this._YB1=0;this._ZB1=new _vk1();this._Vv1=new _vk1();this._Wv1=0;this.__B1=new _fl1();this.__B1._Qk1();this._0C1=true;this._1C1=false;this._2C1=false;this._7w1=null;}_RB1.prototype={_nx1:function(){return this._Uv1;},_711:function(){return this._UB1-this._TB1;},_3C1:function(){return this._TB1;},_r11:function(){return this._VB1;},_q11:function(_Ai1){this._VB1=_Ai1;},_Ow1:function(){this._4C1();
return this._3w1;},_Pw1:function(){this._4C1();return this._YB1;},_1r1:function(){this._4C1();return this._ZB1;},_Fw1:function(){this._4C1();return this._Vv1;},_Hw1:function(){this._4C1();return this._Wv1;},_nl1:function(){return this.__B1;},_4Z:function(){return this.__B1._2z;},_cl1:function(){return this.__B1.q._cl1();},_vo1:function(){return this._7w1;},_ox1:function(data){this._7w1=data;},_4C1:function(){if(this._XB1!=this._SB1._XB1){var _e7=this._SB1._5C1();this._3w1=0;this._ZB1._wk1();this._Vv1._wk1();
for(var i=this._TB1;i<this._UB1;i++){this._3w1+=_e7;this._ZB1._Vf(_vk1.Multiply(_e7,this._SB1._6C1.data[i]));this._Vv1._Vf(_vk1.Multiply(_e7,this._SB1._7C1.data[i]));}if(this._3w1>0){this._ZB1.Multiply(1/this._3w1);this._Vv1.Multiply(1/this._3w1);}this._YB1=0;this._Wv1=0;for(var i=this._TB1;i<this._UB1;i++){var _2z=_vk1._Ck1(this._SB1._6C1.data[i],this._ZB1);var _H5=_vk1._Ck1(this._SB1._7C1.data[i],this._Vv1);this._YB1+=_e7*_rl1(_2z,_2z);this._Wv1+=_e7*_sl1(_2z,_H5);}if(this._YB1>0){this._Wv1*=1/this._YB1;
}this._XB1=this._SB1._XB1;}}};_RB1._8C1=1<<0;_RB1._9C1=1<<1;function _aC1(){this._Yo1=this._Zo1=0;this._Ai1=0;this._bC1=0.0;this._Om1=new _vk1();};function _cC1(){this.index=0;this.body=null;this._bC1=0.0;this._Om1=new _vk1();this._Am1=0.0;};function _My1(){this._XB1=0;this._dC1=0;this._eC1=0;this._pw1=1;this._fC1=1;this._Zv1=1;this._gC1=1;this._hC1=1;this._iC1=1;this._hn1=0;this._jC1=0;this._kC1=0;this._lC1=new _My1._mC1();this._6C1=new _My1._mC1();this._7C1=new _My1._mC1();this._nC1=null;this._oC1=null;
this._pC1=null;this._3B1=new _My1._mC1();this._qC1=null;this._rC1=new _My1._mC1();this._go1=0;this._sC1=0;this._tC1=null;this._Kz1=0;this._iA1=0;this._SA1=null;this._XA1=0;this._uC1=0;this._VA1=null;this._ho1=0;this._vC1=0;this._io1=null;this._wC1=0;this._xC1=0;this._yC1=null;this._zC1=0;this._AC1=null;this._BC1=0.05;this._CC1=1.0;this._DC1=0.25;this._EC1=0.25;this._FC1=0.25;this._GC1=0.1;this._HC1=0.2;this._IC1=0.5;this._JC1=0.5;this._KC1=0.5;this._Ov1=null;}_My1._mC1=function(){this.data=null;this._LC1=0;
};_My1.Proxy=function(){this.index=0;this._Mh=0;};_My1.Proxy._MC1=function(_05,__4){return _05._Mh<__4._Mh;};_My1.Proxy._NC1=function(_05,__4){return _05<__4._Mh;};_My1.Proxy._OC1=function(_05,__4){return _05._Mh<__4;};_My1._PC1=function(){this._Yo1=this._Zo1=0;this._Ai1=0;this._U01=0.0;this._Nm1=0.0;};_My1._QC1=function(){this._Yo1=this._Zo1=this._RC1=0;this._Ai1=0;this._U01=0.0;this._SC1=new _vk1(),this._TC1=new _vk1(),this._CB1=new _vk1();this._UC1=0.0,this._VC1=0.0,this._WC1=0.0,this.__h=0.0;};_My1._XC1=_DB1._HB1;
_My1._YC1=_DB1._IB1;_My1._ZC1=_DB1._KB1;_My1.__C1=12;_My1._0D1=12;_My1._1D1=8*4;_My1._2D1=1<<(_My1._0D1-1);_My1._3D1=_My1._1D1-_My1._0D1;_My1._4D1=_My1._1D1-_My1._0D1-_My1.__C1;_My1._5D1=1<<_My1._4D1;_My1._6D1=_My1._5D1*(1<<(_My1.__C1-1));_My1._7D1=(1<<_My1.__C1)-1;_My1._8D1=(1<<_My1._0D1)-1;function _9D1(x,y){return((y+_My1._2D1)<<_My1._3D1)+(_My1._5D1*x+_My1._6D1)>>>0;}function _aD1(_Mh,x,y){return _Mh+(y<<_My1._3D1)+(x<<_My1._4D1);}function _bD1(_MA1,_cD1){return _cD1&&_MA1>_cD1?_cD1:_MA1;}function _dD1(_uw1){
return(_uw1._Ai1&_DB1._FB1)==_DB1._FB1;}_My1.prototype={_eD1:function(_fD1,_gD1,_hD1){_Hj1(_hD1>_gD1);var _iD1=(_fD1)?_fD1.slice():[];_iD1.length=_hD1;return _iD1;},_jD1:function(buffer,_LC1,_gD1,_hD1,_kD1){_Hj1(_hD1>_gD1);_Hj1(!_LC1||_hD1<=_LC1);if((!_kD1||buffer)&&!_LC1){buffer=this._eD1(buffer,_gD1,_hD1);}return buffer;},_lD1:function(buffer,_gD1,_hD1,_kD1){_Hj1(_hD1>_gD1);return this._jD1(buffer.data,buffer._LC1,_gD1,_hD1,_kD1);},_mD1:function(buffer){if(!buffer){buffer=new Array(this._jC1);for(var i=0;
i<this._jC1;i++){buffer[i]=0;}}return buffer;},_I01:function(_gw1){if(this._hn1>=this._jC1){var _MA1=this._hn1?2*this._hn1:_ck1;_MA1=_bD1(_MA1,this._kC1);_MA1=_bD1(_MA1,this._lC1._LC1);_MA1=_bD1(_MA1,this._6C1._LC1);_MA1=_bD1(_MA1,this._7C1._LC1);_MA1=_bD1(_MA1,this._3B1._LC1);_MA1=_bD1(_MA1,this._rC1._LC1);if(this._jC1<_MA1){this._lC1.data=this._lD1(this._lC1,this._jC1,_MA1,false);this._6C1.data=this._lD1(this._6C1,this._jC1,_MA1,false);this._7C1.data=this._lD1(this._7C1,this._jC1,_MA1,false);this._nC1=this._jD1(this._nC1,
0,this._jC1,_MA1,false);this._oC1=this._jD1(this._oC1,0,this._jC1,_MA1,true);this._pC1=this._jD1(this._pC1,0,this._jC1,_MA1,true);this._3B1.data=this._lD1(this._3B1,this._jC1,_MA1,true);this._qC1=this._jD1(this._qC1,0,this._jC1,_MA1,false);this._rC1.data=this._lD1(this._rC1,this._jC1,_MA1,true);this._jC1=_MA1;}}if(this._hn1>=this._jC1){return _6k1;}var index=this._hn1++;this._lC1.data[index]=_gw1._Ai1;this._6C1.data[index]=_gw1.position._Q3();this._7C1.data[index]=_gw1._851._Q3();this._qC1[index]=null;
if(this._pC1){this._pC1[index]=0;}if(this._3B1.data||!_gw1.color._wB1()){this._3B1.data=this._mD1(this._3B1.data);this._3B1.data[index]=_gw1.color._Q3();}if(this._rC1.data||_gw1._mo1){this._rC1.data=this._mD1(this._rC1.data);this._rC1.data[index]=_gw1._mo1;}if(this._go1>=this._sC1){var _gD1=this._sC1;var _hD1=this._go1?2*this._go1:_ck1;this._tC1=this._eD1(this._tC1,_gD1,_hD1);this._sC1=_hD1;}this._tC1[this._go1]=new _My1.Proxy();this._tC1[this._go1++].index=index;return index;},_xA1:function(index,_yA1){
var _Ai1=_DB1._FB1;if(_yA1){_Ai1|=_DB1._NB1;}this._lC1.data[index]|=_Ai1;},_zA1:function(shape,_gl1,_yA1){function _nD1(__A1,shape,_gl1,_yA1){this._SB1=__A1;this._Bx1=shape;this._Ls1=_gl1;this._oD1=_yA1;this._4z1=0;}_nD1.prototype={_by1:function(_AZ){return false;},_cy1:function(index){_Hj1(index>=0&&index<this._SB1._hn1);if(this._Bx1._Fm1(this._Ls1,this._SB1._6C1.data[index])){this._SB1._xA1(index,this._oD1);this._4z1++;}return true;},_pD1:function(){return this._4z1;}};var _zg1=new _nD1(this,shape,_gl1,
_yA1);var _Jm1=new __q1();shape._Im1(_Jm1,_gl1,0);this._Ov1._uz1(_zg1,_Jm1);return _zg1._pD1();},_EA1:function(_t11,_yA1){for(var i=_t11._TB1;i<_t11._UB1;i++){this._xA1(i,_yA1);}},_AA1:function(_qD1){var _sb=this._rD1();var identity=new _fl1();identity._Qk1();var transform=identity._Q3();var _sD1=this._hn1;if(_qD1.shape){var _tD1=new _DB1();_tD1._Ai1=_qD1._Ai1;_tD1.color=_qD1.color;_tD1._mo1=_qD1._mo1;var shape=_qD1.shape;transform.Set(_qD1.position,_qD1.angle);var _Jm1=new __q1();var _Px1=shape._Em1();for(var _Hm1=0;
_Hm1<_Px1;_Hm1++){if(_Hm1==0){shape._Im1(_Jm1,identity,_Hm1);}else {var _uD1=new __q1();shape._Im1(_uD1,identity,_Hm1);_Jm1._4r1(_uD1);}}for(var y=Math.floor(_Jm1._Xm1.y/_sb)*_sb;y<_Jm1._Ym1.y;y+=_sb){for(var x=Math.floor(_Jm1._Xm1.x/_sb)*_sb;x<_Jm1._Ym1.x;x+=_sb){var _2z=new _vk1(x,y);if(shape._Fm1(identity,_2z)){_2z=_Il1(transform,_2z);_tD1.position._EI(_2z);_tD1._851._EI(_vk1._Vf(_qD1._wv1,_ul1(_qD1._xv1,_vk1._Ck1(_2z,_qD1.position))));this._I01(_tD1);}}}}var lastIndex=this._hn1;var _t11=new _RB1();_t11._SB1=this;
_t11._TB1=_sD1;_t11._UB1=lastIndex;_t11._VB1=_qD1._PB1;_t11._WB1=_qD1._U01;_t11._7w1=_qD1._mo1;_t11.__B1=transform;_t11._0C1=_qD1._QB1;_t11._Tv1=null;_t11._Uv1=this._AC1;if(this._AC1){this._AC1._Tv1=_t11;}this._AC1=_t11;++this._zC1;for(var i=_sD1;i<lastIndex;i++){this._qC1[i]=_t11;}this._vD1(true);if(_qD1._Ai1&_My1._XC1){for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];var _05=_uw1._Yo1;var __4=_uw1._Zo1;if(_05>__4){var _wD1=_05;_05=__4;__4=_wD1;}if(_sD1<=_05&&__4<lastIndex){if(this._ho1>=this._vC1){
var _gD1=this._vC1;var _hD1=this._ho1?2*this._ho1:_ck1;this._io1=this._eD1(this._io1,_gD1,_hD1);this._vC1=_hD1;}var _Io1=this._io1[this._ho1]=new _My1._PC1();_Io1._Yo1=_05;_Io1._Zo1=__4;_Io1._Ai1=_uw1._Ai1;_Io1._U01=_qD1._U01;_Io1._Nm1=_xl1(this._6C1.data[_05],this._6C1.data[__4]);this._ho1++;}}}if(_qD1._Ai1&_My1._YC1){var _xD1=new _bB1(lastIndex-_sD1);for(var i=_sD1;i<lastIndex;i++){_xD1._mB1(this._6C1.data[i],i);}_xD1._nB1(_sb/2);var _zg1=function _yD1(_05,__4,c){var _SC1=this._6C1.data[_05];var _TC1=this._6C1.data[__4];
var _CB1=this._6C1.data[c];var _zD1=_vk1._Ck1(_SC1,_TC1);var _AD1=_vk1._Ck1(_TC1,_CB1);var _BD1=_vk1._Ck1(_CB1,_SC1);var _CD1=_bk1*this._iC1;if(_rl1(_zD1,_zD1)<_CD1&&_rl1(_AD1,_AD1)<_CD1&&_rl1(_BD1,_BD1)<_CD1){if(this._wC1>=this._xC1){var _gD1=this._xC1;var _hD1=this._wC1?2*this._wC1:_ck1;this._yC1=this._eD1(this._yC1,_gD1,_hD1);this._xC1=_hD1;}var _DD1=this._yC1[this._wC1];_DD1._Yo1=_05;_DD1._Zo1=__4;_DD1._RC1=c;_DD1._Ai1=this._lC1.data[_05]|this._lC1.data[__4]|this._lC1.data[c];_DD1._U01=_qD1._U01;var _ED1=_vk1.Multiply(1.0/3.0,
_vk1._Vf(_SC1,_vk1._Vf(_TC1,_CB1)));_DD1._SC1=_vk1._Ck1(_SC1,_ED1);_DD1._TC1=_vk1._Ck1(_TC1,_ED1);_DD1._CB1=_vk1._Ck1(_CB1,_ED1);_DD1._UC1=-_rl1(_BD1,_zD1);_DD1._VC1=-_rl1(_zD1,_AD1);_DD1._WC1=-_rl1(_AD1,_BD1);_DD1.__h=_sl1(_SC1,_TC1)+_sl1(_TC1,_CB1)+_sl1(_CB1,_SC1);this._wC1++;}};_xD1._uB1(_zg1);}if(_qD1._PB1&_DB1._8C1){this._FD1(_t11);}return _t11;},_BA1:function(_CA1,_DA1){_Hj1(_CA1!=_DA1);this._GD1(_DA1._TB1,_DA1._UB1,this._hn1);_Hj1(_DA1._UB1==this._hn1);this._GD1(_CA1._TB1,_CA1._UB1,_DA1._TB1);
this._Hj1(_CA1._UB1==_DA1._TB1);var _HD1=0;for(var i=_CA1._TB1;i<_DA1._UB1;i++){_HD1|=this._lC1.data[i];}this._vD1(true);if(_HD1&_My1._XC1){for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];var _05=_uw1._Yo1;var __4=_uw1._Zo1;if(_05>__4){var _wD1=_05;_05=__4;__4=_wD1;}if(_CA1._TB1<=_05&&_05<_CA1._UB1&&_DA1._TB1<=__4&&__4<_DA1._UB1){if(this._ho1>=this._vC1){var _gD1=this._vC1;var _hD1=this._ho1?2*this._ho1:_ck1;this._io1=this._eD1(this._io1,_gD1,_hD1);this._vC1=_hD1;}var _Io1=this._io1[this._ho1]=new _My1._PC1();
_Io1._Yo1=_05;_Io1._Zo1=__4;_Io1._Ai1=_uw1._Ai1;_Io1._U01=_Tl1(_CA1._WB1,_DA1._WB1);_Io1._Nm1=_xl1(this._6C1.data[_05],this._6C1.data[__4]);this._ho1++;}}}if(_HD1&_My1._YC1){}for(var i=_DA1._TB1;i<_DA1._UB1;i++){this._qC1[i]=_CA1;}var _PB1=_CA1._VB1|_DA1._VB1;_CA1._VB1=_PB1;_CA1._UB1=_DA1._UB1;_DA1._TB1=_DA1._UB1;this._ID1(_DA1);if(_PB1&_DB1._8C1){this._FD1(_CA1);}},_ID1:function(_t11){_Hj1(this._zC1>0);_Hj1(_t11);if(this._Ov1._vy1){this._Ov1._vy1._JD1(_t11);}for(var i=_t11._TB1;i<_t11._UB1;i++){this._qC1[i]=null;
}if(_t11._Tv1){_t11._Tv1._Uv1=_t11._Uv1;}if(_t11._Uv1){_t11._Uv1._Tv1=_t11._Tv1;}if(_t11==this._AC1){this._AC1=_t11._Uv1;}--this._zC1;},_FD1:function(_t11){for(var i=_t11._TB1;i<_t11._UB1;i++){this._nC1[i]=0;}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];var _05=_uw1._Yo1;var __4=_uw1._Zo1;if(_05>=_t11._TB1&&_05<_t11._UB1&&__4>=_t11._TB1&&__4<_t11._UB1){var w=_uw1._bC1;this._nC1[_05]+=w;this._nC1[__4]+=w;}}this._pC1=this._mD1(this._pC1);for(var i=_t11._TB1;i<_t11._UB1;i++){var w=this._nC1[i];
this._pC1[i]=w<0.8?0:_Jj1;}var _KD1=_t11._711();for(var _s7=0;_s7<_KD1;_s7++){var _rB1=false;for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];var _05=_uw1._Yo1;var __4=_uw1._Zo1;if(_05>=_t11._TB1&&_05<_t11._UB1&&__4>=_t11._TB1&&__4<_t11._UB1){var _Y4=1-_uw1._bC1;var _LD1=this._pC1[_05];var _MD1=this._pC1[__4];var _ND1=_MD1+_Y4;var _OD1=_LD1+_Y4;if(_LD1>_ND1){_LD1=_ND1;_rB1=true;}if(_MD1>_OD1){_MD1=_OD1;_rB1=true;}this._pC1[_05]=_LD1;this._pC1[__4]=_MD1;}}if(!_rB1){break;}}for(var i=_t11._TB1;i<_t11._UB1;
i++){var _2z=this._pC1[i];if(_2z<_Jj1){_2z*=this._gC1;}else {_2z=0;}this._pC1[i]=_2z;}},_0A1:function(_05,__4){var _Xo=_vk1._Ck1(this._6C1.data[__4],this._6C1.data[_05]);var _Kv=_rl1(_Xo,_Xo);if(_Kv<this._iC1){if(this._Kz1>=this._iA1){var _gD1=this._iA1;var _hD1=this._Kz1?2*this._Kz1:_ck1;this._SA1=this._eD1(this._SA1,_gD1,_hD1);this._iA1=_hD1;}var _PD1=_uk1(_Kv);var _uw1=this._SA1[this._Kz1]=new _aC1();_uw1._Yo1=_05;_uw1._Zo1=__4;_uw1._Ai1=this._lC1.data[_05]|this._lC1.data[__4];_uw1._bC1=1-_Kv*_PD1*this._hC1;
_uw1._Om1._EI(_vk1.Multiply(_PD1,_Xo));this._Kz1++;}},_vD1:function(_QD1){var _RD1=0;var _SD1=this._go1;for(var _TD1=_RD1;_TD1<_SD1;++_TD1){var _Qx1=this._tC1[_TD1];var i=_Qx1.index;var _2z=this._6C1.data[i];_Qx1._Mh=_9D1(this._hC1*_2z.x,this._hC1*_2z.y);}this._tC1._gj1(_RD1,_SD1,function(_05,__4){return _My1.Proxy._MC1(_05,__4);});this._Kz1=0;for(var _05=_RD1,c=_RD1;_05<_SD1;_05++){var _UD1=_aD1(this._tC1[_05]._Mh,1,0);for(var __4=_05+1;__4<_SD1;__4++){if(_UD1<this._tC1[__4]._Mh)break;this._0A1(this._tC1[_05].index,
this._tC1[__4].index);}var _VD1=_aD1(this._tC1[_05]._Mh,-1,1);for(;c<_SD1;c++){if(_VD1<=this._tC1[c]._Mh)break;}var _WD1=_aD1(this._tC1[_05]._Mh,1,1);for(var __4=c;__4<_SD1;__4++){if(_WD1<this._tC1[__4]._Mh)break;this._0A1(this._tC1[_05].index,this._tC1[__4].index);}}if(_QD1){this._Kz1=this._SA1._jj1(_dD1,this._Kz1);}},_XD1:function(){var _Jm1=new __q1();_Jm1._Xm1.x=+_Jj1;_Jm1._Xm1.y=+_Jj1;_Jm1._Ym1.x=-_Jj1;_Jm1._Ym1.y=-_Jj1;for(var i=0;i<this._hn1;i++){var _2z=this._6C1.data[i];_Jm1._Xm1._EI(_Ul1(_Jm1._Xm1,
_2z));_Jm1._Ym1._EI(_Wl1(_Jm1._Ym1,_2z));}_Jm1._Xm1.x-=this._gC1;_Jm1._Xm1.y-=this._gC1;_Jm1._Ym1.x+=this._gC1;_Jm1._Ym1.y+=this._gC1;this._XA1=0;function _YD1(__A1){this._SB1=__A1;}_YD1.prototype={_by1:function(_AZ){if(_AZ._Ix1()){return true;}var shape=_AZ._Gx1();var __4=_AZ._Nx1();var _sz1=__4._Cw1();var _ZD1=__4._Ow1();var __D1=__4._Pw1()-_ZD1*__4._Dw1()._Dk1();var _0E1=_ZD1>0?1/_ZD1:0;var _1E1=__D1>0?1/__D1:0;var _Px1=shape._Em1();for(var _Hm1=0;_Hm1<_Px1;_Hm1++){var _Jm1=_AZ._Ox1(_Hm1)._Q3();_Jm1._Xm1.x-=this._SB1._gC1;
_Jm1._Xm1.y-=this._SB1._gC1;_Jm1._Ym1.x+=this._SB1._gC1;_Jm1._Ym1.y+=this._SB1._gC1;var _RD1=0;var _SD1=this._SB1._go1;var _2E1=this._SB1._tC1._lj1(_RD1,_SD1,_9D1(this._SB1._hC1*_Jm1._Xm1.x,this._SB1._hC1*_Jm1._Xm1.y),function(_05,__4){return _My1.Proxy._OC1(_05,__4);});var _3E1=this._SB1._tC1._nj1(_2E1,_SD1,_9D1(this._SB1._hC1*_Jm1._Ym1.x,this._SB1._hC1*_Jm1._Ym1.y),function(_05,__4){return _My1.Proxy._NC1(_05,__4);});for(var _Qx1=_2E1;_Qx1!=_3E1;++_Qx1){var _4E1=this._SB1._tC1[_Qx1];var _05=_4E1.index;
var _5E1=this._SB1._6C1.data[_05];if(_Jm1._Xm1.x<=_5E1.x&&_5E1.x<=_Jm1._Ym1.x&&_Jm1._Xm1.y<=_5E1.y&&_5E1.y<=_Jm1._Ym1.y){var _Xo=[0];var _c7=new _vk1();_AZ._Mm1(_5E1,_Xo,_c7,_Hm1);if(_Xo[0]<this._SB1._gC1){var _6E1=this._SB1._lC1.data[_05]&_DB1._GB1?0:this._SB1._7E1();var _8E1=_vk1._Ck1(_5E1,_sz1);var _9E1=_sl1(_8E1,_c7);if(this._SB1._XA1>=this._SB1._uC1){var _gD1=this._SB1._uC1;var _hD1=this._SB1._XA1?2*this._SB1._XA1:_ck1;this._SB1._VA1=this._SB1._eD1(this._SB1._VA1,_gD1,_hD1);this._SB1._uC1=_hD1;}var _uw1=this._SB1._VA1[this._SB1._XA1]=new _cC1();
_uw1.index=_05;_uw1.body=__4;_uw1._bC1=1-_Xo[0]*this._SB1._hC1;_uw1._Om1._EI(_c7._zk1());_uw1._Am1=1/(_6E1+_0E1+_1E1*_9E1*_9E1);this._SB1._XA1++;}}}}return true;},_cy1:function(i){return false;}};var _zg1=new _YD1(this);this._Ov1._uz1(_zg1,_Jm1);},_Uk1:function(step){++this._XB1;if(this._hn1==0){return;}this._dC1=0;for(var i=0;i<this._hn1;i++){this._dC1|=this._lC1.data[i];}if(this._dC1&_DB1._FB1){this._aE1();}this._eC1=0;for(var _t11=this._AC1;_t11;_t11=_t11._nx1()){this._eC1|=_t11._VB1;}var gravity=_vk1.Multiply(step._jv*this._Zv1,
this._Ov1._Lz1());var _bE1=this._cE1(step);for(var i=0;i<this._hn1;i++){var _H5=this._7C1.data[i];_H5._Vf(gravity);var _J5=_rl1(_H5,_H5);if(_J5>_bE1){_H5.Multiply(_sk1(_bE1/_J5));}}this._dE1(step);if(this._eC1&_RB1._9C1){this._eE1(step);}if(this._dC1&_DB1._GB1){this._fE1(step);}for(var i=0;i<this._hn1;i++){this._6C1.data[i]._Vf(_vk1.Multiply(step._jv,this._7C1.data[i]));}this._XD1();this._vD1(false);if(this._dC1&_DB1._JB1){this._gE1(step);}if(this._dC1&_DB1._KB1){this._hE1(step);}if(this._dC1&_DB1._LB1){
this._iE1(step);}if(this._dC1&_DB1._IB1){this._jE1(step);}if(this._dC1&_DB1._HB1){this._kE1(step);}if(this._eC1&_RB1._8C1){this._lE1(step);}if(this._dC1&_DB1._MB1){this._mE1(step);}this._nE1(step);this._oE1(step);},_dE1:function(step){var _Jm1=new __q1();_Jm1._Xm1.x=+_Jj1;_Jm1._Xm1.y=+_Jj1;_Jm1._Ym1.x=-_Jj1;_Jm1._Ym1.y=-_Jj1;for(var i=0;i<this._hn1;i++){var _H5=this._7C1.data[i];var _ap=this._6C1.data[i];var _hm1=_vk1._Vf(_ap,_vk1.Multiply(step._jv,_H5));_Jm1._Xm1=_Ul1(_Jm1._Xm1,_Ul1(_ap,_hm1));_Jm1._Ym1=_Wl1(_Jm1._Ym1,
_Wl1(_ap,_hm1));}function _pE1(__A1,step){this._SB1=__A1;this._qE1=step;}_pE1.prototype={_by1:function(_AZ){if(_AZ._Ix1()){return true;}var shape=_AZ._Gx1();var body=_AZ._Nx1();var _RD1=0;var _SD1=this._SB1._go1;var _Px1=shape._Em1();for(var _Hm1=0;_Hm1<_Px1;_Hm1++){var _Jm1=_AZ._Ox1(_Hm1)._Q3();_Jm1._Xm1.x-=this._SB1._gC1;_Jm1._Xm1.y-=this._SB1._gC1;_Jm1._Ym1.x+=this._SB1._gC1;_Jm1._Ym1.y+=this._SB1._gC1;var _2E1=this._SB1._tC1._lj1(_RD1,_SD1,_9D1(this._SB1._hC1*_Jm1._Xm1.x,this._SB1._hC1*_Jm1._Xm1.y),function(_05,
__4){return _My1.Proxy._OC1(_05,__4);});var _3E1=this._SB1._tC1._nj1(_2E1,_SD1,_9D1(this._SB1._hC1*_Jm1._Ym1.x,this._SB1._hC1*_Jm1._Ym1.y),function(_05,__4){return _My1.Proxy._NC1(_05,__4);});for(var _Qx1=_2E1;_Qx1!=_3E1;++_Qx1){var _4E1=this._SB1._tC1[_Qx1];var _05=_4E1.index;var _5E1=this._SB1._6C1.data[_05];if(_Jm1._Xm1.x<=_5E1.x&&_5E1.x<=_Jm1._Ym1.x&&_Jm1._Xm1.y<=_5E1.y&&_5E1.y<=_Jm1._Ym1.y){var _rE1=this._SB1._7C1.data[_05];var output=new _Zq1();var input=new _Yq1();input._ap=_Il1(body._Ls1,_Kl1(body._Pv1,
_5E1));input._hm1=_vk1._Vf(_5E1,_vk1.Multiply(this._qE1._jv,_rE1));input._M11=1;if(_AZ._Gm1(output,input,_Hm1)){var _2z=_vk1._Vf(_vk1._Vf(_vk1.Multiply((1-output._R11),input._ap),_vk1.Multiply(output._R11,input._hm1)),_vk1.Multiply(_Qj1,output._Om1));var _H5=_vk1.Multiply(this._qE1._fy1,_vk1._Ck1(_2z,_5E1));this._SB1._7C1.data[_05]._EI(_H5);var _nv=_vk1.Multiply(this._SB1._5C1(),_vk1._Ck1(_rE1,_H5));_nv=_vk1.Multiply(_rl1(_nv,output._Om1),output._Om1);body._Mw1(_nv,_2z,true);}}}}return true;},_cy1:function(i){
return false;}};var _zg1=new _pE1(this,step);this._Ov1._uz1(_zg1,_Jm1);},_nE1:function(step){for(var i=0;i<this._hn1;i++){this._nC1[i]=0;}for(var _0l=0;_0l<this._XA1;_0l++){var _uw1=this._VA1[_0l];var _05=_uw1.index;var w=_uw1._bC1;this._nC1[_05]+=w;}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];var _05=_uw1._Yo1;var __4=_uw1._Zo1;var w=_uw1._bC1;this._nC1[_05]+=w;this._nC1[__4]+=w;}if(this._dC1&_My1._ZC1){for(var i=0;i<this._hn1;i++){if(this._lC1.data[i]&_My1._ZC1){this._nC1[i]=0;}}}var _sE1=this._BC1*this._tE1(step);
for(var i=0;i<this._hn1;i++){var w=this._nC1[i];var h=_sE1*_Vl1(0.0,_Tl1(w,_9k1)-_8k1);this._nC1[i]=h;}var _uE1=step._jv/(this._pw1*this._gC1);for(var _0l=0;_0l<this._XA1;_0l++){var _uw1=this._VA1[_0l];var _05=_uw1.index;var __4=_uw1.body;var w=_uw1._bC1;var _e7=_uw1._Am1;var _c7=_uw1._Om1;var _2z=this._6C1.data[_05];var h=this._nC1[_05]+_sE1*w;var _nv=_vk1.Multiply(_uE1*w*_e7*h,_c7);this._7C1.data[_05]._Ck1(_vk1.Multiply(this._7E1(),_nv));__4._Mw1(_nv,_2z,true);}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];
var _05=_uw1._Yo1;var __4=_uw1._Zo1;var w=_uw1._bC1;var _c7=_uw1._Om1;var h=this._nC1[_05]+this._nC1[__4];var _nv=_vk1.Multiply(_uE1*w*h,_c7);this._7C1.data[_05]._Ck1(_nv);this._7C1.data[__4]._Vf(_nv);}},_oE1:function(step){var _j11=this._CC1;for(var _0l=0;_0l<this._XA1;_0l++){var _uw1=this._VA1[_0l];var _05=_uw1.index;var __4=_uw1.body;var w=_uw1._bC1;var _e7=_uw1._Am1;var _c7=_uw1._Om1;var _2z=this._6C1.data[_05];var _H5=_vk1._Ck1(__4._Zw1(_2z),this._7C1.data[_05]);var _vE1=_rl1(_H5,_c7);if(_vE1<0){var _nv=_vk1.Multiply(_j11*w*_e7*_vE1,
_c7);this._7C1.data[_05]._Vf(_vk1.Multiply(this._7E1(),_nv));__4._Mw1(_nv._zk1(),_2z,true);}}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];var _05=_uw1._Yo1;var __4=_uw1._Zo1;var w=_uw1._bC1;var _c7=_uw1._Om1;var _H5=_vk1._Ck1(this._7C1.data[__4],this._7C1.data[_05]);var _vE1=_rl1(_H5,_c7);if(_vE1<0){var _nv=_vk1.Multiply(_j11*w*_vE1,_c7);this._7C1.data[_05]._Vf(_nv);this._7C1.data[__4]._Ck1(_nv);}}},_fE1:function(step){for(var i=0;i<this._hn1;i++){if(this._lC1.data[i]&_DB1._GB1){this._7C1.data[i]._wk1();
}}},_eE1:function(step){for(var _t11=this._AC1;_t11;_t11=_t11._nx1()){if(_t11._VB1&_RB1._9C1){_t11._4C1();var rotation=new _bl1(step._jv*_t11._Wv1);var transform=new _fl1(_vk1._Vf(_t11._ZB1,_vk1._Ck1(_vk1.Multiply(step._jv,_t11._Vv1),_Gl1(rotation,_t11._ZB1))),rotation);_t11.__B1=_Ll1(transform,_t11.__B1);var _wE1=new _fl1();_wE1._2z.x=step._fy1*transform._2z.x;_wE1._2z.y=step._fy1*transform._2z.y;_wE1.q.__h=step._fy1*transform.q.__h;_wE1.q.c=step._fy1*(transform.q.c-1);for(var i=_t11._TB1;i<_t11._UB1;i++){
this._7C1.data[i]._EI(_Il1(_wE1,this._6C1.data[i]));}}}},_jE1:function(step){var _xE1=step._fy1*this._DC1;for(var _0l=0;_0l<this._wC1;_0l++){var _DD1=this._yC1[_0l];if(_DD1._Ai1&_DB1._IB1){var _05=_DD1._Yo1;var __4=_DD1._Zo1;var c=_DD1._RC1;var _wD1=_DD1._SC1;var _yE1=_DD1._TC1;var _zE1=_DD1._CB1;var _SC1=this._6C1.data[_05];var _TC1=this._6C1.data[__4];var _CB1=this._6C1.data[c];var _2z=_vk1.Multiply(1/3,_vk1._Vf(_SC1,_vk1._Vf(_TC1,_CB1)));var _Y4=new _bl1();_Y4.__h=_sl1(_wD1,_SC1)+_sl1(_yE1,_TC1)+_sl1(_zE1,_CB1);
_Y4.c=_rl1(_wD1,_SC1)+_rl1(_yE1,_TC1)+_rl1(_zE1,_CB1);var _9A=_Y4.__h*_Y4.__h+_Y4.c*_Y4.c;var _AE1=_uk1(_9A);_Y4.__h*=_AE1;_Y4.c*=_AE1;var _U01=_xE1*_DD1._U01;this._7C1.data[_05]._Vf(_vk1.Multiply(_U01,(_vk1._Ck1(_vk1.Multiply(_wD1,_Y4),(_vk1._Ck1(_SC1,_2z))))));this._7C1.data[__4]._Vf(_vk1.Multiply(_U01,(_vk1._Ck1(_vk1.Multiply(_yE1,_Y4),(_vk1._Ck1(_TC1,_2z))))));this._7C1.data[c]._Vf(_vk1.Multiply(_U01,(_vk1._Ck1(_vk1.Multiply(_zE1,_Y4),(_vk1._Ck1(_CB1,_2z))))));}}},_kE1:function(step){var _BE1=step._fy1*this._EC1;
for(var _0l=0;_0l<this._ho1;_0l++){var _Io1=this._io1[_0l];if(_Io1._Ai1&_DB1._HB1){var _05=_Io1._Yo1;var __4=_Io1._Zo1;var _Xo=_vk1._Ck1(this._6C1.data[__4],this._6C1.data[_05]);var _CE1=_Io1._Nm1;var _8A=_Xo.Length();var _U01=_BE1*_Io1._U01;var _nv=_vk1.Multiply(_U01*(_CE1-_8A)/_8A,_Xo);this._7C1.data[_05]._Ck1(_nv);this._7C1.data[__4]._Vf(_nv);}}},_iE1:function(step){this._oC1=this._mD1(this._oC1);for(var i=0;i<this._hn1;i++){this._nC1[i]=0;this._oC1[i]=new _vk1();}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];
if(_uw1._Ai1&_DB1._LB1){var _05=_uw1._Yo1;var __4=_uw1._Zo1;var w=_uw1._bC1;var _c7=_uw1._Om1;this._nC1[_05]+=w;this._nC1[__4]+=w;this._oC1[_05]._Ck1(_vk1.Multiply((1-w)*w,_c7));this._oC1[__4]._Vf(_vk1.Multiply((1-w)*w,_c7));}}var _DE1=this._GC1*this._EE1(step);var _FE1=this._HC1*this._EE1(step);for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];if(_uw1._Ai1&_DB1._LB1){var _05=_uw1._Yo1;var __4=_uw1._Zo1;var w=_uw1._bC1;var _c7=_uw1._Om1;var h=this._nC1[_05]+this._nC1[__4];var __h=_vk1._Ck1(this._oC1[__4],
this._oC1[_05]);var _GE1=(_DE1*(h-2)+_FE1*_rl1(__h,_c7))*w;var _nv=_vk1.Multiply(_GE1,_c7);this._7C1.data[_05]._Ck1(_nv);this._7C1.data[__4]._Vf(_nv);}}},_gE1:function(step){var _HE1=this._FC1;for(var _0l=0;_0l<this._XA1;_0l++){var _uw1=this._VA1[_0l];var _05=_uw1.index;if(this._lC1.data[_05]&_DB1._JB1){var __4=_uw1.body;var w=_uw1._bC1;var _e7=_uw1._Am1;var _2z=this._6C1.data[_05];var _H5=_vk1._Ck1(__4._Zw1(_2z),this._7C1.data[_05]);var _nv=_vk1.Multiply(_HE1*_e7*w,_H5);this._7C1.data[_05]._Vf(_vk1.Multiply(this._7E1(),
_nv));__4._Mw1(_nv._zk1(),_2z,true);}}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];if(_uw1._Ai1&_DB1._JB1){var _05=_uw1._Yo1;var __4=_uw1._Zo1;var w=_uw1._bC1;var _H5=_vk1._Ck1(this._7C1.data[__4],this._7C1.data[_05]);var _nv=_vk1.Multiply(_HE1*w,_H5);this._7C1.data[_05]._Vf(_nv);this._7C1.data[__4]._Ck1(_nv);}}},_hE1:function(step){var _IE1=this._IC1*this._EE1(step);var _JE1=1.0-_7k1;for(var _0l=0;_0l<this._XA1;_0l++){var _uw1=this._VA1[_0l];var _05=_uw1.index;if(this._lC1.data[_05]&_DB1._KB1){
var w=_uw1._bC1;if(w>_JE1){var __4=_uw1.body;var _e7=_uw1._Am1;var _2z=this._6C1.data[_05];var _c7=_uw1._Om1;var _nv=_vk1.Multiply(_IE1*_e7*(w-_JE1),_c7);this._7C1.data[_05]._Ck1(_vk1.Multiply(this._7E1(),_nv));__4._Mw1(_nv,_2z,true);}}}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];if(_uw1._Ai1&_DB1._KB1){var w=_uw1._bC1;if(w>_JE1){var _05=_uw1._Yo1;var __4=_uw1._Zo1;var _c7=_uw1._Om1;var _nv=_vk1.Multiply(_IE1*(w-_JE1),_c7);this._7C1.data[_05]._Ck1(_nv);this._7C1.data[__4]._Vf(_nv);}}}},_lE1:function(step){
this._pC1=this._mD1(this._pC1);var _KE1=step._fy1*this._JC1;for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];var _05=_uw1._Yo1;var __4=_uw1._Zo1;if(this._qC1[_05]!=this._qC1[__4]){var w=_uw1._bC1;var _c7=_uw1._Om1;var h=this._pC1[_05]+this._pC1[__4];var _nv=_vk1.Multiply(_KE1*h*w,_c7);this._7C1.data[_05]._Ck1(_nv);this._7C1.data[__4]._Vf(_nv);}}},_mE1:function(step){this._3B1.data=this._mD1(this._3B1.data);var _LE1=Math.floor(256*this._KC1);for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];
var _05=_uw1._Yo1;var __4=_uw1._Zo1;if(this._lC1.data[_05]&this._lC1.data[__4]&_DB1._MB1){var _ME1=this._3B1.data[_05];var _NE1=this._3B1.data[__4];var _OE1=(_LE1*(_NE1._Y4-_ME1._Y4))>>8;var _PE1=(_LE1*(_NE1._Z4-_ME1._Z4))>>8;var _QE1=(_LE1*(_NE1.__4-_ME1.__4))>>8;var _RE1=(_LE1*(_NE1._05-_ME1._05))>>8;_ME1._Y4+=_OE1;_ME1._Z4+=_PE1;_ME1.__4+=_QE1;_ME1._05+=_RE1;_NE1._Y4-=_OE1;_NE1._Z4-=_PE1;_NE1.__4-=_QE1;_NE1._05-=_RE1;}}},_aE1:function(){var _Hc1=0;var _SE1=new Array(this._hn1);for(var i=0;i<this._hn1;i++){
var _Ai1=this._lC1.data[i];if(_Ai1&_DB1._FB1){var _TE1=this._Ov1._vy1;if((_Ai1&_DB1._NB1)&&_TE1){_TE1._Xx1(i);}_SE1[i]=_6k1;}else {_SE1[i]=_Hc1;if(i!=_Hc1){this._lC1.data[_Hc1]=this._lC1.data[i];this._6C1.data[_Hc1]=this._6C1.data[i];this._7C1.data[_Hc1]=this._7C1.data[i];this._qC1[_Hc1]=this._qC1[i];if(this._pC1){this._pC1[_Hc1]=this._pC1[i];}if(this._3B1.data){this._3B1.data[_Hc1]=this._3B1.data[i];}if(this._rC1.data){this._rC1.data[_Hc1]=this._rC1.data[i];}}_Hc1++;}}var _UE1={_VE1:function(_Qx1){
return _Qx1.index<0;},_WE1:function(_uw1){return _uw1._Yo1<0||_uw1._Zo1<0;},_XE1:function(_uw1){return _uw1.index<0;},_YE1:function(_Io1){return _Io1._Yo1<0||_Io1._Zo1<0;},_ZE1:function(_DD1){return _DD1._Yo1<0||_DD1._Zo1<0||_DD1._RC1<0;}};for(var _0l=0;_0l<this._go1;_0l++){var _Qx1=this._tC1[_0l];_Qx1.index=_SE1[_Qx1.index];}if(this._tC1){this._go1=this._tC1._jj1(_UE1._VE1,this._go1);}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];_uw1._Yo1=_SE1[_uw1._Yo1];_uw1._Zo1=_SE1[_uw1._Zo1];}if(this._SA1){
this._Kz1=this._SA1._jj1(_UE1._WE1,this._Kz1);}for(var _0l=0;_0l<this._XA1;_0l++){var _uw1=this._VA1[_0l];_uw1.index=_SE1[_uw1.index];}if(this._VA1){this._XA1=this._VA1._jj1(_UE1._XE1,this._XA1);}for(var _0l=0;_0l<this._ho1;_0l++){var _Io1=this._io1[_0l];_Io1._Yo1=_SE1[_Io1._Yo1];_Io1._Zo1=_SE1[_Io1._Zo1];}if(this._io1){this._ho1=this._io1._jj1(_UE1._YE1,this._ho1);}for(var _0l=0;_0l<this._wC1;_0l++){var _DD1=this._yC1[_0l];_DD1._Yo1=_SE1[_DD1._Yo1];_DD1._Zo1=_SE1[_DD1._Zo1];_DD1._RC1=_SE1[_DD1._RC1];
}if(this._yC1){this._wC1=this._yC1._jj1(_UE1._ZE1,this._wC1);}for(var _t11=this._AC1;_t11;_t11=_t11._nx1()){var _sD1=_Hc1;var lastIndex=0;var __E1=false;for(var i=_t11._TB1;i<_t11._UB1;i++){var _J6=_SE1[i];if(_J6>=0){_sD1=_Tl1(_sD1,_J6);lastIndex=_Vl1(lastIndex,_J6+1);}else {__E1=true;}}if(_sD1<lastIndex){_t11._TB1=_sD1;_t11._UB1=lastIndex;if(__E1){if(_t11._VB1&_RB1._9C1){_t11._2C1=true;}}}else {_t11._TB1=0;_t11._UB1=0;if(_t11._0C1){_t11._1C1=true;}}}this._hn1=_Hc1;for(var _t11=this._AC1;_t11;){var _Zk=_t11._nx1();
if(_t11._1C1){this._ID1(_t11);}_t11=_Zk;}},_GD1:function(start,_Bi,end){if(start==_Bi||_Bi==end){return;}function _SE1(i){if(i<start){return i;}else if(i<_Bi){return i+end-_Bi;}else if(i<end){return i+start-_Bi;}else {return i;}}this._lC1.data.rotate(start,_Bi,end);this._6C1.data.rotate(start,_Bi,end);this._7C1.data.rotate(start,_Bi,end);this._qC1.rotate(start,_Bi,end);if(this._pC1){this._pC1.rotate(start,_Bi,end);}if(this._3B1.data){this._3B1.data.rotate(start,_Bi,end);}if(this._rC1.data){this._rC1.data.rotate(start,
_Bi,end);}for(var _0l=0;_0l<this._go1;_0l++){var _Qx1=this._tC1[_0l];_Qx1.index=_SE1(_Qx1.index);}for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];_uw1._Yo1=_SE1(_uw1._Yo1);_uw1._Zo1=_SE1(_uw1._Zo1);}for(var _0l=0;_0l<this._XA1;_0l++){var _uw1=this._VA1[_0l];_uw1.index=_SE1(_uw1.index);}for(var _0l=0;_0l<this._ho1;_0l++){var _Io1=this._io1[_0l];_Io1._Yo1=_SE1(_Io1._Yo1);_Io1._Zo1=_SE1(_Io1._Zo1);}for(var _0l=0;_0l<this._wC1;_0l++){var _DD1=this._yC1[_0l];_DD1._Yo1=_SE1(_DD1._Yo1);_DD1._Zo1=_SE1(_DD1._Zo1);
_DD1._RC1=_SE1(_DD1._RC1);}for(var _t11=this._AC1;_t11;_t11=_t11._nx1()){_t11._TB1=_SE1(_t11._TB1);_t11._UB1=_SE1(_t11._UB1-1)+1;}},_g11:function(_K01){this._gC1=2*_K01;this._iC1=this._gC1*this._gC1;this._hC1=1/this._gC1;},_i11:function(_h11){this._pw1=_h11;this._fC1=1/this._pw1;},_c11:function(){return this._pw1;},_l11:function(_Ev1){this._Zv1=_Ev1;},_e11:function(){return this._Zv1;},_k11:function(_j11){this._CC1=_j11;},_d11:function(){return this._CC1;},_b11:function(){return this._gC1/2;},_EE1:function(step){
return this._gC1*step._fy1;},_cE1:function(step){var _851=this._EE1(step);return _851*_851;},_tE1:function(step){return this._pw1*this._cE1(step);},_rD1:function(){return _7k1*this._gC1;},_5C1:function(){var _sb=this._rD1();return this._pw1*_sb*_sb;},_7E1:function(){return 1.777777*this._fC1*this._hC1*this._hC1;},_FA1:function(){return this._lC1.data;},_GA1:function(){return this._6C1.data;},_HA1:function(){return this._7C1.data;},_IA1:function(){this._3B1.data=this._mD1(this._3B1.data);return this._3B1.data;
},_JA1:function(){this._rC1.data=this._mD1(this._rC1.data);return this._rC1.data;},_a11:function(){return this._kC1;},_f11:function(_c9){_Hj1(this._hn1<=_c9);this._kC1=_c9;},_KA1:function(){return this._qC1;},_0F1:function(buffer,_1F1,_hD1){_Hj1((_1F1&&_hD1)||(!_1F1&&!_hD1));buffer.data=_1F1;buffer._LC1=_hD1;},_LA1:function(buffer,_MA1){this._0F1(this._lC1,buffer,_MA1);},_NA1:function(buffer,_MA1){this._0F1(this._6C1,buffer,_MA1);},_OA1:function(buffer,_MA1){this._0F1(this._7C1,buffer,_MA1);},_PA1:function(buffer,
_MA1){this._0F1(this._3B1,buffer,_MA1);},_QA1:function(buffer,_MA1){this._0F1(this._rC1,buffer,_MA1);},_uz1:function(_zg1,_Jm1){if(this._go1==0){return;}var _RD1=0;var _SD1=this._go1;var _2E1=this._tC1._lj1(_RD1,_SD1,_9D1(this._hC1*_Jm1._Xm1.x,this._hC1*_Jm1._Xm1.y),function(_05,__4){return _My1.Proxy._OC1(_05,__4);});var _3E1=this._tC1._nj1(_2E1,_SD1,_9D1(this._hC1*_Jm1._Ym1.x,this._hC1*_Jm1._Ym1.y),function(_05,__4){return _My1.Proxy._NC1(_05,__4);});for(var _Qx1=_2E1;_Qx1<_3E1;++_Qx1){var _4E1=this._tC1[_Qx1];
var i=_4E1.index;var _2z=this._6C1.data[i];if(_Jm1._Xm1.x<_2z.x&&_2z.x<_Jm1._Ym1.x&&_Jm1._Xm1.y<_2z.y&&_2z.y<_Jm1._Ym1.y){if(!_zg1._cy1(i)){break;}}}},_Gm1:function(_zg1,_wz1,_xz1){if(this._go1==0){return;}var _RD1=0;var _SD1=this._go1;var _2E1=this._tC1._lj1(_RD1,_SD1,_9D1(this._hC1*_Tl1(_wz1.x,_xz1.x)-1,this._hC1*_Tl1(_wz1.y,_xz1.y)-1),function(_05,__4){return _My1.Proxy._OC1(_05,__4);});var _3E1=this._tC1._nj1(_RD1,_SD1,_9D1(this._hC1*_Vl1(_wz1.x,_xz1.x)+1,this._hC1*_Vl1(_wz1.y,_xz1.y)+1),function(_05,
__4){return _My1.Proxy._NC1(_05,__4);});var _R11=1;var _H5=_vk1._Ck1(_xz1,_wz1);var _J5=_rl1(_H5,_H5);for(var _Qx1=_2E1;_Qx1<_3E1;++_Qx1){var _4E1=this._tC1[_Qx1];var i=_4E1.index;var _2z=_vk1._Ck1(_wz1,this._6C1.data[i]);var _2F1=_rl1(_2z,_H5);var _hm1=_rl1(_2z,_2z);var _3F1=_2F1*_2F1-_J5*(_hm1-this._iC1);if(_3F1>=0){var _4F1=_sk1(_3F1);var _s7=(-_2F1-_4F1)/_J5;if(_s7>_R11){continue;}if(_s7<0){_s7=(-_2F1+_4F1)/_J5;if(_s7<0||_s7>_R11){continue;}}var _c7=_vk1._Vf(_2z,_vk1._Ck1(_s7,_H5));_c7._Ek1();var _nv=_zg1._cy1(i,
_vk1._Vf(_wz1,_vk1.Multiply(_s7,_H5)),_c7,_s7);_R11=_Tl1(_R11,_nv);if(_R11<=0){break;}}}},_YA1:function(){var _5F1=0;for(var _0l=0;_0l<this._Kz1;_0l++){var _uw1=this._SA1[_0l];var _05=_uw1._Yo1;var __4=_uw1._Zo1;var _c7=_uw1._Om1;var _H5=_vk1._Ck1(this._7C1.data[__4],this._7C1.data[_05]);var _vE1=_rl1(_H5,_c7);if(_vE1<0){_5F1+=_vE1*_vE1;}}return 0.5*this._5C1()*_5F1;},_ZA1:function(){return this._AC1;},_u11:function(){return this._zC1;},_711:function(){return this._hn1;}};function _6F1(_7F1,_8F1){return _sk1(_7F1*_8F1);
}function _9F1(_aF1,_bF1){return _aF1>_bF1?_aF1:_bF1;}function _cF1(){this._jv1=null;this._dF1=false;};function _eF1(){this.other=null;this._uw1=null;this._Xk=null;this._Zk=null;};function _Pz1(){this._fF1=new _eF1();this._gF1=new _eF1();this._hF1=new _oq1();}_Pz1._iF1=new _oq1();_Pz1.prototype={_7a1:function(_7A1,_Yo1,_8A1,_Zo1){this._4A1=0;this._Iv1=_Pz1._jF1;this._Yz1=_7A1||null;this.__z1=_8A1||null;this._kF1=_Yo1||0;this._lF1=_Zo1||0;this._hF1._qq1=0;this._Tv1=null;this._Uv1=null;this._fF1._uw1=null;
this._fF1._Xk=null;this._fF1._Zk=null;this._fF1.other=null;this._gF1._uw1=null;this._gF1._Xk=null;this._gF1._Zk=null;this._gF1.other=null;this._3A1=0;if(_7A1){this._Ex1=_6F1(this._Yz1._Ex1,this.__z1._Ex1);this._Fx1=_9F1(this._Yz1._Fx1,this.__z1._Fx1);}else {this._Ex1=0;this._Fx1=0;}this._mF1=0.0;},_nF1:function(){return this._hF1;},_oF1:function(_pF1){var _bz1=this._Yz1._Nx1();var _cz1=this.__z1._Nx1();var _yt1=this._Yz1._Gx1();var _zt1=this.__z1._Gx1();_pF1._Bq1(this._hF1,_bz1._nl1(),_yt1._Dm1,_cz1._nl1(),
_zt1._Dm1);},_Wz1:function(){return(this._Iv1&_Pz1._qF1)==_Pz1._qF1;},_fA1:function(_bx1){if(_bx1){this._Iv1|=_Pz1._jF1;}else {this._Iv1&=~_Pz1._jF1;}},_Vz1:function(){return(this._Iv1&_Pz1._jF1)==_Pz1._jF1;},_nx1:function(){return this._Uv1;},_ww1:function(){return this._Yz1;},_oz1:function(){return this._kF1;},_yw1:function(){return this.__z1;},_qz1:function(){return this._lF1;},_HZ:function(friction){this._Ex1=friction;},_B01:function(){return this._Ex1;},_rF1:function(){this._Ex1=_6F1(this._Yz1._Ex1,
this.__z1._Ex1);},_FZ:function(_yx1){this._Fx1=_yx1;},_D01:function(){return this._Fx1;},_sF1:function(){this._Fx1=_9F1(this._Yz1._Fx1,this.__z1._Fx1);},_tF1:function(speed){this._mF1=speed;},_uF1:function(){return this._mF1;},_Ql:function(_rq1,_Cq1,_Eq1){},_Mx1:function(){this._Iv1|=_Pz1._vF1;},_wF1:null,_bg:function(listener){_Pz1._iF1._EI(this._hF1);this._Iv1|=_Pz1._jF1;var _xF1=false;var _yF1=(this._Iv1&_Pz1._qF1)==_Pz1._qF1;var _Xz1=this._Yz1._Ix1();var _Zz1=this.__z1._Ix1();var _Hx1=_Xz1||_Zz1;var _bz1=this._Yz1._Nx1();
var _cz1=this.__z1._Nx1();var _Cq1=_bz1._nl1();var _Eq1=_cz1._nl1();if(_Hx1){var _yt1=this._Yz1._Gx1();var _zt1=this.__z1._Gx1();_xF1=_xt1(_yt1,this._kF1,_zt1,this._lF1,_Cq1,_Eq1);this._hF1._qq1=0;}else {this._Ql(this._hF1,_Cq1,_Eq1);_xF1=this._hF1._qq1>0;for(var i=0;i<this._hF1._qq1;++i){var _zF1=this._hF1.points[i];_zF1._lq1=0.0;_zF1._mq1=0.0;var _AF1=_zF1.id;for(var _J6=0;_J6<_Pz1._iF1._qq1;++_J6){var _BF1=_Pz1._iF1.points[_J6];if(_BF1.id._n6()==_AF1._n6()){_zF1._lq1=_BF1._lq1;_zF1._mq1=_BF1._mq1;break;
}}}if(_xF1!=_yF1){_bz1._QZ(true);_cz1._QZ(true);}}if(_xF1){this._Iv1|=_Pz1._qF1;}else {this._Iv1&=~_Pz1._qF1;}if(_yF1==false&&_xF1==true&&listener){listener._5y1(this);}if(_yF1==true&&_xF1==false&&listener){listener._6y1(this);}if(_Hx1==false&&_xF1&&listener){listener._7y1(this,_Pz1._iF1);}}};_Pz1._bw1=0x0001;_Pz1._qF1=0x0002;_Pz1._jF1=0x0004;_Pz1._vF1=0x0008;_Pz1._CF1=0x0010;_Pz1._cw1=0x0020;function _DF1(){this.parent.call(this);}_DF1.prototype={_Ql:function(_rq1,_Cq1,_Eq1){_er1(_rq1,this._Yz1._Gx1(),
_Cq1,this.__z1._Gx1(),_Eq1);},_7a1:function(_vw1,_EF1,_xw1,_FF1){this.parent.prototype._7a1.call(this,_vw1,0,_xw1,0);_Hj1(this._Yz1._8g1()==_Cm1._Pm1);_Hj1(this.__z1._8g1()==_Cm1._Pm1);}};_DF1._ej1(_Pz1);var _GF1=new _1n1();function _HF1(){this.parent.call(this);}_HF1.prototype={_Ql:function(_rq1,_Cq1,_Eq1){var _To1=this._Yz1._Gx1();_To1._tn1(_GF1,this._kF1);_ns1(_rq1,_GF1,_Cq1,this.__z1._Gx1(),_Eq1);},_7a1:function(_vw1,_Yo1,_xw1,_Zo1){this.parent.prototype._7a1.call(this,_vw1,_Yo1,_xw1,_Zo1);_Hj1(this._Yz1._8g1()==_Cm1._Sm1);
_Hj1(this.__z1._8g1()==_Cm1._Pm1);}};_HF1._ej1(_Pz1);function _IF1(){this.parent.call(this);}_IF1.prototype={_Ql:function(_rq1,_Cq1,_Eq1){var _To1=this._Yz1._Gx1();_To1._tn1(_GF1,this._kF1);_ot1(_rq1,_GF1,_Cq1,this.__z1._Gx1(),_Eq1);},_7a1:function(_vw1,_Yo1,_xw1,_Zo1){this.parent.prototype._7a1.call(this,_vw1,_Yo1,_xw1,_Zo1);_Hj1(this._Yz1._8g1()==_Cm1._Sm1);_Hj1(this.__z1._8g1()==_Cm1._Rm1);}};_IF1._7a1=function(_vw1,_Yo1,_xw1,_Zo1){return new _IF1(_vw1,_Yo1,_xw1,_Zo1);};_IF1._ej1(_Pz1);function _JF1(){
this.parent.call(this);}_JF1.prototype={_Ql:function(_rq1,_Cq1,_Eq1){_ns1(_rq1,this._Yz1._Gx1(),_Cq1,this.__z1._Gx1(),_Eq1);},_7a1:function(_vw1,_Yo1,_xw1,_Zo1){this.parent.prototype._7a1.call(this,_vw1,0,_xw1,0);_Hj1(this._Yz1._8g1()==_Cm1._Qm1);_Hj1(this.__z1._8g1()==_Cm1._Pm1);}};_JF1._7a1=function(_vw1,_Yo1,_xw1,_Zo1){return new _JF1(_vw1,_xw1);};_JF1._ej1(_Pz1);function _KF1(){this.parent.call(this);}_KF1.prototype={_Ql:function(_rq1,_Cq1,_Eq1){_ot1(_rq1,this._Yz1._Gx1(),_Cq1,this.__z1._Gx1(),
_Eq1);},_7a1:function(_vw1,_Yo1,_xw1,_Zo1){this.parent.prototype._7a1.call(this,_vw1,0,_xw1,0);_Hj1(this._Yz1._8g1()==_Cm1._Qm1);_Hj1(this.__z1._8g1()==_Cm1._Rm1);}};_KF1._7a1=function(_vw1,_Yo1,_xw1,_Zo1){return new _KF1(_vw1,_xw1);};_KF1._ej1(_Pz1);function _LF1(){this.parent.call(this);}_LF1.prototype={_Ql:function(_rq1,_Cq1,_Eq1){_ir1(_rq1,this._Yz1._Gx1(),_Cq1,this.__z1._Gx1(),_Eq1);},_7a1:function(_vw1,_Yo1,_xw1,_Zo1){this.parent.prototype._7a1.call(this,_vw1,0,_xw1,0);_Hj1(this._Yz1._8g1()==_Cm1._Rm1);
_Hj1(this.__z1._8g1()==_Cm1._Pm1);}};_LF1._7a1=function(_vw1,_Yo1,_xw1,_Zo1){return new _LF1(_vw1,_xw1);};_LF1._ej1(_Pz1);function _MF1(){this.parent.call(this);}_MF1.prototype={_Ql:function(_rq1,_Cq1,_Eq1){_Tr1(_rq1,this._Yz1._Gx1(),_Cq1,this.__z1._Gx1(),_Eq1);},_7a1:function(_vw1,_Yo1,_xw1,_Zo1){this.parent.prototype._7a1.call(this,_vw1,0,_xw1,0);_Hj1(this._Yz1._8g1()==_Cm1._Rm1);_Hj1(this.__z1._8g1()==_Cm1._Rm1);}};_MF1._7a1=function(_vw1,_Yo1,_xw1,_Zo1){return new _MF1(_vw1,_xw1);};_MF1._ej1(_Pz1);
_Pz1._NF1=function(_jv1,_OF1,_PF1){_Hj1(0<=_OF1&&_OF1<_Cm1._Tm1);_Hj1(0<=_PF1&&_PF1<_Cm1._Tm1);if(!_Pz1._QF1[_OF1])_Pz1._QF1[_OF1]=[];_Pz1._QF1[_OF1][_PF1]=new _cF1();_Pz1._QF1[_OF1][_PF1]._jv1=_jv1;_Pz1._QF1[_OF1][_PF1]._dF1=true;if(_OF1!=_PF1){if(!_Pz1._QF1[_PF1])_Pz1._QF1[_PF1]=[];_Pz1._QF1[_PF1][_OF1]=new _cF1();_Pz1._QF1[_PF1][_OF1]._jv1=_jv1;_Pz1._QF1[_PF1][_OF1]._dF1=false;}_jv1._RF1=[];_jv1._SF1=2;};_Pz1._TF1=function(){_Pz1._NF1(_DF1,_Cm1._Pm1,_Cm1._Pm1);_Pz1._NF1(_LF1,_Cm1._Rm1,_Cm1._Pm1);
_Pz1._NF1(_MF1,_Cm1._Rm1,_Cm1._Rm1);_Pz1._NF1(_JF1,_Cm1._Qm1,_Cm1._Pm1);_Pz1._NF1(_KF1,_Cm1._Qm1,_Cm1._Rm1);_Pz1._NF1(_HF1,_Cm1._Sm1,_Cm1._Pm1);_Pz1._NF1(_IF1,_Cm1._Sm1,_Cm1._Rm1);};_Pz1._UF1=function(_jv1){var _uw1;if(_uw1=_jv1._RF1.pop())return _uw1;for(var i=0;i<_jv1._SF1-1;++i)_jv1._RF1.push(new _jv1());{_jv1._SF1+=32;}return new _jv1();};_Pz1._7a1=function(_vw1,_Yo1,_xw1,_Zo1){if(_Pz1._VF1==false){_Pz1._TF1();_Pz1._VF1=true;}var _OF1=_vw1._8g1();var _PF1=_xw1._8g1();_Hj1(0<=_OF1&&_OF1<_Cm1._Tm1);_Hj1(0<=_PF1&&_PF1<_Cm1._Tm1);
var _jv1=_Pz1._QF1[_OF1]?_Pz1._QF1[_OF1][_PF1]?_Pz1._QF1[_OF1][_PF1]._jv1:null:null;if(_jv1){var _uw1=_Pz1._UF1(_jv1);if(_Pz1._QF1[_OF1][_PF1]._dF1)_uw1._7a1(_vw1,_Yo1,_xw1,_Zo1);else _uw1._7a1(_xw1,_Zo1,_vw1,_Yo1);return _uw1;}return null;};_Pz1._Mg1=function(_uw1){_Hj1(_Pz1._VF1==true);var _vw1=_uw1._Yz1;var _xw1=_uw1.__z1;if(_uw1._hF1._qq1>0&&_vw1._Ix1()==false&&_xw1._Ix1()==false){_vw1._Nx1()._QZ(true);_xw1._Nx1()._QZ(true);}var _fq1=_vw1._8g1();var _gq1=_xw1._8g1();_Hj1(0<=_fq1&&_gq1<_Cm1._Tm1);_Hj1(0<=_fq1&&_gq1<_Cm1._Tm1);
_Pz1._QF1[_fq1][_gq1]._jv1._RF1.push(_uw1);};_Pz1._QF1=[];_Pz1._VF1=false;var _WF1=new _Yx1();var _XF1=new _4y1();function _uy1(){this._mw1=new _co1();this._Sv1=null;this._Kz1=0;this._Wy1=_WF1;this._Yy1=_XF1;}_uy1.prototype={_Ho1:function(_YF1,_ZF1){var _0p1=_YF1;var _1p1=_ZF1;var _vw1=_0p1._AZ;var _xw1=_1p1._AZ;var _Yo1=_0p1._Hm1;var _Zo1=_1p1._Hm1;var _bz1=_vw1._Nx1();var _cz1=_xw1._Nx1();if(_bz1==_cz1){return;}var _un1=_cz1._mx1();while(_un1){if(_un1.other==_bz1){var _7A1=_un1._uw1._ww1();var _8A1=_un1._uw1._yw1();
var _vu1=_un1._uw1._oz1();var _wu1=_un1._uw1._qz1();if(_7A1==_vw1&&_8A1==_xw1&&_vu1==_Yo1&&_wu1==_Zo1){return;}if(_7A1==_xw1&&_8A1==_vw1&&_vu1==_Zo1&&_wu1==_Yo1){return;}}_un1=_un1._Zk;}if(_cz1._rx1(_bz1)==false){return;}if(this._Wy1&&this._Wy1._rx1(_vw1,_xw1)==false){return;}var c=_Pz1._7a1(_vw1,_Yo1,_xw1,_Zo1);if(c==null){return;}_vw1=c._ww1();_xw1=c._yw1();_Yo1=c._oz1();_Zo1=c._qz1();_bz1=_vw1._Nx1();_cz1=_xw1._Nx1();c._Tv1=null;c._Uv1=this._Sv1;if(this._Sv1!=null){this._Sv1._Tv1=c;}this._Sv1=c;
c._fF1._uw1=c;c._fF1.other=_cz1;c._fF1._Xk=null;c._fF1._Zk=_bz1._Sv1;if(_bz1._Sv1!=null){_bz1._Sv1._Xk=c._fF1;}_bz1._Sv1=c._fF1;c._gF1._uw1=c;c._gF1.other=_bz1;c._gF1._Xk=null;c._gF1._Zk=_cz1._Sv1;if(_cz1._Sv1!=null){_cz1._Sv1._Xk=c._gF1;}_cz1._Sv1=c._gF1;if(_vw1._Ix1()==false&&_xw1._Ix1()==false){_bz1._QZ(true);_cz1._QZ(true);}++this._Kz1;},_fz1:function(){this._mw1._Ao1(this);},_Mg1:function(c){var _vw1=c._ww1();var _xw1=c._yw1();var _bz1=_vw1._Nx1();var _cz1=_xw1._Nx1();if(this._Yy1&&c._Wz1()){this._Yy1._6y1(c);
}if(c._Tv1){c._Tv1._Uv1=c._Uv1;}if(c._Uv1){c._Uv1._Tv1=c._Tv1;}if(c==this._Sv1){this._Sv1=c._Uv1;}if(c._fF1._Xk){c._fF1._Xk._Zk=c._fF1._Zk;}if(c._fF1._Zk){c._fF1._Zk._Xk=c._fF1._Xk;}if(c._fF1==_bz1._Sv1){_bz1._Sv1=c._fF1._Zk;}if(c._gF1._Xk){c._gF1._Xk._Zk=c._gF1._Zk;}if(c._gF1._Zk){c._gF1._Zk._Xk=c._gF1._Xk;}if(c._gF1==_cz1._Sv1){_cz1._Sv1=c._gF1._Zk;}_Pz1._Mg1(c);--this._Kz1;},_2t1:function(){var c=this._Sv1;while(c){var _vw1=c._ww1();var _xw1=c._yw1();var _Yo1=c._oz1();var _Zo1=c._qz1();var _bz1=_vw1._Nx1();
var _cz1=_xw1._Nx1();if(c._Iv1&_Pz1._vF1){if(_cz1._rx1(_bz1)==false){var __F1=c;c=__F1._nx1();this._Mg1(__F1);continue;}if(this._Wy1&&this._Wy1._rx1(_vw1,_xw1)==false){var __F1=c;c=__F1._nx1();this._Mg1(__F1);continue;}c._Iv1&=~_Pz1._vF1;}var _bA1=_bz1._fx1()&&_bz1._nH!=_uv1._vv1;var _cA1=_cz1._fx1()&&_cz1._nH!=_uv1._vv1;if(_bA1==false&&_cA1==false){c=c._nx1();continue;}var _7o1=_vw1._9x1[_Yo1]._no1;var _8o1=_xw1._9x1[_Zo1]._no1;var _0G1=this._mw1._y01(_7o1,_8o1);if(_0G1==false){var __F1=c;c=__F1._nx1();
this._Mg1(__F1);continue;}c._bg(this._Yy1);c=c._nx1();}}};function _1G1(){this._bq1=new _vk1();this._cq1=new _vk1();this._lq1=0;this._mq1=0;this._2G1=0;this._3G1=0;this._4G1=0;}function _5G1(){this._6G1=new Array(_Mj1);this._pq1=new _vk1();this._kq1=new _vk1();this._Yo1=0;this._Zo1=0;this._7G1=0,this._8G1=0;this._9G1=new _vk1(),this._aG1=new _vk1();this._bG1=0,this._cG1=0;this.type=0;this._Dq1=0,this._Fq1=0;this._qq1=0;};function _dG1(){this.points=new Array(_Mj1);for(var i=0;i<this.points.length;++i)this.points[i]=new _1G1();
this._Om1=new _vk1();this._2G1=new _Nk1();this._eG1=new _Nk1();this._Yo1=0;this._Zo1=0;this._7G1=0,this._8G1=0;this._bG1=0,this._cG1=0;this.friction=0;this._yx1=0;this._fG1=0;this._qq1=0;this._gG1=0;}function _hG1(){this._Om1=new _vk1();this._nq1=new _vk1();this._mr1=0;}_hG1.prototype={_Bq1:function(_CB1,_Cq1,_Eq1,index){_Hj1(_CB1._qq1>0);switch(_CB1.type){case _oq1._sq1:{var _Gq1=(_Cq1.q.c*_CB1._kq1.x-_Cq1.q.__h*_CB1._kq1.y)+_Cq1._2z.x;var _Hq1=(_Cq1.q.__h*_CB1._kq1.x+_Cq1.q.c*_CB1._kq1.y)+_Cq1._2z.y;var _Iq1=(_Eq1.q.c*_CB1._6G1[0].x-_Eq1.q.__h*_CB1._6G1[0].y)+_Eq1._2z.x;
var _Jq1=(_Eq1.q.__h*_CB1._6G1[0].x+_Eq1.q.c*_CB1._6G1[0].y)+_Eq1._2z.y;this._nq1.x=0.5*(_Gq1+_Iq1);this._nq1.y=0.5*(_Hq1+_Jq1);this._Om1.x=_Iq1-_Gq1;this._Om1.y=_Jq1-_Hq1;var _iG1=this._Om1.x;var _jG1=this._Om1.y;this._Om1._Ek1();this._mr1=(_iG1*this._Om1.x+_jG1*this._Om1.y)-_CB1._Dq1-_CB1._Fq1;}break;case _oq1._tq1:{this._Om1.x=_Cq1.q.c*_CB1._pq1.x-_Cq1.q.__h*_CB1._pq1.y;this._Om1.y=_Cq1.q.__h*_CB1._pq1.x+_Cq1.q.c*_CB1._pq1.y;var _Oq1=(_Cq1.q.c*_CB1._kq1.x-_Cq1.q.__h*_CB1._kq1.y)+_Cq1._2z.x;var _Pq1=(_Cq1.q.__h*_CB1._kq1.x+_Cq1.q.c*_CB1._kq1.y)+_Cq1._2z.y;
var _Qq1=(_Eq1.q.c*_CB1._6G1[index].x-_Eq1.q.__h*_CB1._6G1[index].y)+_Eq1._2z.x;var _Rq1=(_Eq1.q.__h*_CB1._6G1[index].x+_Eq1.q.c*_CB1._6G1[index].y)+_Eq1._2z.y;this._mr1=((_Qq1-_Oq1)*this._Om1.x+(_Rq1-_Pq1)*this._Om1.y)-_CB1._Dq1-_CB1._Fq1;this._nq1.x=_Qq1;this._nq1.y=_Rq1;}break;case _oq1._uq1:{this._Om1.x=_Eq1.q.c*_CB1._pq1.x-_Eq1.q.__h*_CB1._pq1.y;this._Om1.y=_Eq1.q.__h*_CB1._pq1.x+_Eq1.q.c*_CB1._pq1.y;var _Oq1=(_Eq1.q.c*_CB1._kq1.x-_Eq1.q.__h*_CB1._kq1.y)+_Eq1._2z.x;var _Pq1=(_Eq1.q.__h*_CB1._kq1.x+_Eq1.q.c*_CB1._kq1.y)+_Eq1._2z.y;
var _Qq1=(_Cq1.q.c*_CB1._6G1[index].x-_Cq1.q.__h*_CB1._6G1[index].y)+_Cq1._2z.x;var _Rq1=(_Cq1.q.__h*_CB1._6G1[index].x+_Cq1.q.c*_CB1._6G1[index].y)+_Cq1._2z.y;this._mr1=((_Qq1-_Oq1)*this._Om1.x+(_Rq1-_Pq1)*this._Om1.y)-_CB1._Dq1-_CB1._Fq1;this._nq1.x=_Qq1;this._nq1.y=_Rq1;this._Om1.x=-this._Om1.x;this._Om1.y=-this._Om1.y;}break;}}};function _kG1(){this.step=new _ey1();this._lG1=null;this._c9=0;this._ny1=null;this._oy1=null;}function _mG1(){this._nG1=[];this._oG1=[];}_mG1._pG1=new _fl1();_mG1._qG1=new _fl1();
_mG1._rG1=new _hG1();_mG1.prototype={_uL:function(_gw1){this._qE1=_gw1.step;this._hn1=_gw1._c9;this._nG1.length=this._hn1;this._oG1.length=this._hn1;this._sG1=_gw1._ny1;this._tG1=_gw1._oy1;this._uG1=_gw1._lG1;for(var i=0;i<this._hn1;++i){var _uw1=this._uG1[i];var _vw1=_uw1._Yz1;var _xw1=_uw1.__z1;var _yt1=_vw1._Gx1();var _zt1=_xw1._Gx1();var _Dq1=_yt1._Dm1;var _Fq1=_zt1._Dm1;var _bz1=_vw1._Nx1();var _cz1=_xw1._Nx1();var _rq1=_uw1._nF1();var _qq1=_rq1._qq1;_Hj1(_qq1>0);var _vG1=this._oG1[i]||new _dG1();_vG1.friction=_uw1._Ex1;
_vG1._yx1=_uw1._Fx1;_vG1._fG1=_uw1._mF1;_vG1._Yo1=_bz1._Hv1;_vG1._Zo1=_cz1._Hv1;_vG1._7G1=_bz1._4w1;_vG1._8G1=_cz1._4w1;_vG1._bG1=_bz1._6w1;_vG1._cG1=_cz1._6w1;_vG1._gG1=i;_vG1._qq1=_qq1;_vG1._eG1._wk1();_vG1._2G1._wk1();this._oG1[i]=_vG1;var _CB1=this._nG1[i]||new _5G1();_CB1._Yo1=_bz1._Hv1;_CB1._Zo1=_cz1._Hv1;_CB1._7G1=_bz1._4w1;_CB1._8G1=_cz1._4w1;_CB1._9G1.x=_bz1._Qv1._il1.x;_CB1._9G1.y=_bz1._Qv1._il1.y;_CB1._aG1.x=_cz1._Qv1._il1.x;_CB1._aG1.y=_cz1._Qv1._il1.y;_CB1._bG1=_bz1._6w1;_CB1._cG1=_cz1._6w1;
_CB1._pq1.x=_rq1._pq1.x;_CB1._pq1.y=_rq1._pq1.y;_CB1._kq1.x=_rq1._kq1.x;_CB1._kq1.y=_rq1._kq1.y;_CB1._qq1=_qq1;_CB1._Dq1=_Dq1;_CB1._Fq1=_Fq1;_CB1.type=_rq1.type;this._nG1[i]=_CB1;for(var _J6=0;_J6<_qq1;++_J6){var _ls1=_rq1.points[_J6];var _wG1=_vG1.points[_J6];if(this._qE1._jy1){_wG1._lq1=this._qE1._gy1*_ls1._lq1;_wG1._mq1=this._qE1._gy1*_ls1._mq1;}else {_wG1._lq1=0.0;_wG1._mq1=0.0;}_wG1._bq1._wk1();_wG1._cq1._wk1();_wG1._2G1=0.0;_wG1._3G1=0.0;_wG1._4G1=0.0;_CB1._6G1[_J6]=_ls1._kq1;}}},_xG1:function(){
for(var i=0;i<this._hn1;++i){var _vG1=this._oG1[i];var _CB1=this._nG1[i];var _Dq1=_CB1._Dq1;var _Fq1=_CB1._Fq1;var _rq1=this._uG1[_vG1._gG1]._nF1();var _Yo1=_vG1._Yo1;var _Zo1=_vG1._Zo1;var _yG1=_vG1._7G1;var _zG1=_vG1._8G1;var _vu1=_vG1._bG1;var _wu1=_vG1._cG1;var _9G1=_CB1._9G1;var _aG1=_CB1._aG1;var _nz1=this._sG1[_Yo1].c;var _AG1=this._sG1[_Yo1]._05;var _BG1=this._tG1[_Yo1]._H5;var _9p1=this._tG1[_Yo1].w;var _pz1=this._sG1[_Zo1].c;var _CG1=this._sG1[_Zo1]._05;var _DG1=this._tG1[_Zo1]._H5;var _ap1=this._tG1[_Zo1].w;
_Hj1(_rq1._qq1>0);_mG1._pG1.q.Set(_AG1);_mG1._qG1.q.Set(_CG1);_mG1._pG1._2z.x=_nz1.x-(_mG1._pG1.q.c*_9G1.x-_mG1._pG1.q.__h*_9G1.y);_mG1._pG1._2z.y=_nz1.y-(_mG1._pG1.q.__h*_9G1.x+_mG1._pG1.q.c*_9G1.y);_mG1._qG1._2z.x=_pz1.x-(_mG1._qG1.q.c*_aG1.x-_mG1._qG1.q.__h*_aG1.y);_mG1._qG1._2z.y=_pz1.y-(_mG1._qG1.q.__h*_aG1.x+_mG1._qG1.q.c*_aG1.y);var _pF1=new _zq1();_pF1._Bq1(_rq1,_mG1._pG1,_Dq1,_mG1._qG1,_Fq1);_vG1._Om1.x=_pF1._Om1.x;_vG1._Om1.y=_pF1._Om1.y;var _qq1=_vG1._qq1;for(var _J6=0;_J6<_qq1;++_J6){var _wG1=_vG1.points[_J6];
_wG1._bq1.x=_pF1.points[_J6].x-_nz1.x;_wG1._bq1.y=_pF1.points[_J6].y-_nz1.y;_wG1._cq1.x=_pF1.points[_J6].x-_pz1.x;_wG1._cq1.y=_pF1.points[_J6].y-_pz1.y;var _EG1=_wG1._bq1.x*_vG1._Om1.y-_wG1._bq1.y*_vG1._Om1.x;var _FG1=_wG1._cq1.x*_vG1._Om1.y-_wG1._cq1.y*_vG1._Om1.x;var _GG1=_yG1+_zG1+_vu1*_EG1*_EG1+_wu1*_FG1*_FG1;_wG1._2G1=_GG1>0.0?1.0/_GG1:0.0;var _as1=1.0*_vG1._Om1.y;var _bs1=-1.0*_vG1._Om1.x;var _HG1=_wG1._bq1.x*_bs1-_wG1._bq1.y*_as1;var _IG1=_wG1._cq1.x*_bs1-_wG1._cq1.y*_as1;var _JG1=_yG1+_zG1+_vu1*_HG1*_HG1+_wu1*_IG1*_IG1;
_wG1._3G1=_JG1>0.0?1.0/_JG1:0.0;_wG1._4G1=0.0;var _KG1=_vG1._Om1.x*(((_DG1.x+(-_ap1*_wG1._cq1.y))-_BG1.x)-(-_9p1*_wG1._bq1.y))+_vG1._Om1.y*(((_DG1.y+(_ap1*_wG1._cq1.x))-_BG1.y)-(_9p1*_wG1._bq1.x));if(_KG1<-_Vj1){_wG1._4G1=-_vG1._yx1*_KG1;}}if(_vG1._qq1==2){var _LG1=_vG1.points[0];var _MG1=_vG1.points[1];var _NG1=_LG1._bq1.x*_vG1._Om1.y-_LG1._bq1.y*_vG1._Om1.x;var _OG1=_LG1._cq1.x*_vG1._Om1.y-_LG1._cq1.y*_vG1._Om1.x;var _PG1=_MG1._bq1.x*_vG1._Om1.y-_MG1._bq1.y*_vG1._Om1.x;var _QG1=_MG1._cq1.x*_vG1._Om1.y-_MG1._cq1.y*_vG1._Om1.x;
var _RG1=_yG1+_zG1+_vu1*_NG1*_NG1+_wu1*_OG1*_OG1;var _SG1=_yG1+_zG1+_vu1*_PG1*_PG1+_wu1*_QG1*_QG1;var _TG1=_yG1+_zG1+_vu1*_NG1*_PG1+_wu1*_OG1*_QG1;var _UG1=1000.0;if(_RG1*_RG1<_UG1*(_RG1*_SG1-_TG1*_TG1)){_vG1._eG1._Oj.x=_RG1;_vG1._eG1._Oj.y=_TG1;_vG1._eG1._6F.x=_TG1;_vG1._eG1._6F.y=_SG1;_vG1._2G1._EI(_vG1._eG1._Rk1());}else {_vG1._qq1=1;}}}},_VG1:function(){for(var i=0;i<this._hn1;++i){var _vG1=this._oG1[i];var _Yo1=_vG1._Yo1;var _Zo1=_vG1._Zo1;var _yG1=_vG1._7G1;var _vu1=_vG1._bG1;var _zG1=_vG1._8G1;var _wu1=_vG1._cG1;
var _qq1=_vG1._qq1;var _BG1=this._tG1[_Yo1]._H5;var _9p1=this._tG1[_Yo1].w;var _DG1=this._tG1[_Zo1]._H5;var _ap1=this._tG1[_Zo1].w;var _Om1=_vG1._Om1;var _as1=1.0*_Om1.y;var _bs1=-1.0*_Om1.x;for(var _J6=0;_J6<_qq1;++_J6){var _wG1=_vG1.points[_J6];var _zs1=(_wG1._lq1*_Om1.x)+(_wG1._mq1*_as1);var _As1=(_wG1._lq1*_Om1.y)+(_wG1._mq1*_bs1);_9p1-=_vu1*(_wG1._bq1.x*_As1-_wG1._bq1.y*_zs1);_BG1.x-=_yG1*_zs1;_BG1.y-=_yG1*_As1;_ap1+=_wu1*(_wG1._cq1.x*_As1-_wG1._cq1.y*_zs1);_DG1.x+=_zG1*_zs1;_DG1.y+=_zG1*_As1;}this._tG1[_Yo1].w=_9p1;
this._tG1[_Zo1].w=_ap1;}},_WG1:function(){for(var i=0;i<this._hn1;++i){var _vG1=this._oG1[i];var _Yo1=_vG1._Yo1;var _Zo1=_vG1._Zo1;var _yG1=_vG1._7G1;var _vu1=_vG1._bG1;var _zG1=_vG1._8G1;var _wu1=_vG1._cG1;var _qq1=_vG1._qq1;var _BG1=this._tG1[_Yo1]._H5;var _9p1=this._tG1[_Yo1].w;var _DG1=this._tG1[_Zo1]._H5;var _ap1=this._tG1[_Zo1].w;var _Om1=_vG1._Om1;var _as1=1.0*_Om1.y;var _bs1=-1.0*_Om1.x;var friction=_vG1.friction;_Hj1(_qq1==1||_qq1==2);for(var _J6=0;_J6<_qq1;++_J6){var _wG1=_vG1.points[_J6];var _XG1=_DG1.x+(-_ap1*_wG1._cq1.y)-_BG1.x-(-_9p1*_wG1._bq1.y);
var _YG1=_DG1.y+(_ap1*_wG1._cq1.x)-_BG1.y-(_9p1*_wG1._bq1.x);var _ZG1=(_XG1*_as1+_YG1*_bs1)-_vG1._fG1;var __G1=_wG1._3G1*(-_ZG1);var _0H1=friction*_wG1._lq1;var _1H1=_Xl1(_wG1._mq1+__G1,-_0H1,_0H1);__G1=_1H1-_wG1._mq1;_wG1._mq1=_1H1;var _zs1=__G1*_as1;var _As1=__G1*_bs1;_BG1.x-=_yG1*_zs1;_BG1.y-=_yG1*_As1;_9p1-=_vu1*(_wG1._bq1.x*_As1-_wG1._bq1.y*_zs1);_DG1.x+=_zG1*_zs1;_DG1.y+=_zG1*_As1;_ap1+=_wu1*(_wG1._cq1.x*_As1-_wG1._cq1.y*_zs1);}if(_vG1._qq1==1){_wG1=_vG1.points[0];_XG1=_DG1.x+(-_ap1*_wG1._cq1.y)-_BG1.x-(-_9p1*_wG1._bq1.y);
_YG1=_DG1.y+(_ap1*_wG1._cq1.x)-_BG1.y-(_9p1*_wG1._bq1.x);var _vE1=_XG1*_Om1.x+_YG1*_Om1.y;var __G1=-_wG1._2G1*(_vE1-_wG1._4G1);var _1H1=_Vl1(_wG1._lq1+__G1,0.0);__G1=_1H1-_wG1._lq1;_wG1._lq1=_1H1;_zs1=__G1*_Om1.x;_As1=__G1*_Om1.y;_BG1.x-=_yG1*_zs1;_BG1.y-=_yG1*_As1;_9p1-=_vu1*(_wG1._bq1.x*_As1-_wG1._bq1.y*_zs1);_DG1.x+=_zG1*_zs1;_DG1.y+=_zG1*_As1;_ap1+=_wu1*(_wG1._cq1.x*_As1-_wG1._cq1.y*_zs1);}else {var _2H1=_vG1.points[0];var _3H1=_vG1.points[1];var ax=_2H1._lq1;var ay=_3H1._lq1;_Hj1(ax>=0.0&&ay>=0.0);
var _4H1=_DG1.x+(-_ap1*_2H1._cq1.y)-_BG1.x-(-_9p1*_2H1._bq1.y);var _5H1=_DG1.y+(_ap1*_2H1._cq1.x)-_BG1.y-(_9p1*_2H1._bq1.x);var _6H1=_DG1.x+(-_ap1*_3H1._cq1.y)-_BG1.x-(-_9p1*_3H1._bq1.y);var _7H1=_DG1.y+(_ap1*_3H1._cq1.x)-_BG1.y-(_9p1*_3H1._bq1.x);var _8H1=_4H1*_Om1.x+_5H1*_Om1.y;var _9H1=_6H1*_Om1.x+_7H1*_Om1.y;var _sB1=_8H1-_2H1._4G1;var _tB1=_9H1-_3H1._4G1;_sB1-=_vG1._eG1._Oj.x*ax+_vG1._eG1._6F.x*ay;_tB1-=_vG1._eG1._Oj.y*ax+_vG1._eG1._6F.y*ay;for(;;){var _w7=-(_vG1._2G1._Oj.x*_sB1+_vG1._2G1._6F.x*_tB1);
var _aH1=-(_vG1._2G1._Oj.y*_sB1+_vG1._2G1._6F.y*_tB1);if(_w7>=0.0&&_aH1>=0.0){var __b=_w7-ax;var _0c=_aH1-ay;var _bH1=__b*_Om1.x;var _cH1=__b*_Om1.y;var _dH1=_0c*_Om1.x;var _eH1=_0c*_Om1.y;_BG1.x-=_yG1*(_bH1+_dH1);_BG1.y-=_yG1*(_cH1+_eH1);_9p1-=_vu1*((_2H1._bq1.x*_cH1-_2H1._bq1.y*_bH1)+(_3H1._bq1.x*_eH1-_3H1._bq1.y*_dH1));_DG1.x+=_zG1*(_bH1+_dH1);_DG1.y+=_zG1*(_cH1+_eH1);_ap1+=_wu1*((_2H1._cq1.x*_cH1-_2H1._cq1.y*_bH1)+(_3H1._cq1.x*_eH1-_3H1._cq1.y*_dH1));_2H1._lq1=_w7;_3H1._lq1=_aH1;break;}_w7=-_2H1._2G1*_sB1;
_aH1=0.0;_8H1=0.0;_9H1=_vG1._eG1._Oj.y*_w7+_tB1;if(_w7>=0.0&&_9H1>=0.0){__b=_w7-ax;_0c=_aH1-ay;_bH1=__b*_Om1.x;_cH1=__b*_Om1.y;_dH1=_0c*_Om1.x;_eH1=_0c*_Om1.y;_BG1.x-=_yG1*(_bH1+_dH1);_BG1.y-=_yG1*(_cH1+_eH1);_9p1-=_vu1*((_2H1._bq1.x*_cH1-_2H1._bq1.y*_bH1)+(_3H1._bq1.x*_eH1-_3H1._bq1.y*_dH1));_DG1.x+=_zG1*(_bH1+_dH1);_DG1.y+=_zG1*(_cH1+_eH1);_ap1+=_wu1*((_2H1._cq1.x*_cH1-_2H1._cq1.y*_bH1)+(_3H1._cq1.x*_eH1-_3H1._cq1.y*_dH1));_2H1._lq1=_w7;_3H1._lq1=_aH1;break;}_w7=0.0;_aH1=-_3H1._2G1*_tB1;_8H1=_vG1._eG1._6F.x*_aH1+_sB1;
_9H1=0.0;if(_aH1>=0.0&&_8H1>=0.0){__b=_w7-ax;_0c=_aH1-ay;_bH1=__b*_Om1.x;_cH1=__b*_Om1.y;_dH1=_0c*_Om1.x;_eH1=_0c*_Om1.y;_BG1.x-=_yG1*(_bH1+_dH1);_BG1.y-=_yG1*(_cH1+_eH1);_9p1-=_vu1*((_2H1._bq1.x*_cH1-_2H1._bq1.y*_bH1)+(_3H1._bq1.x*_eH1-_3H1._bq1.y*_dH1));_DG1.x+=_zG1*(_bH1+_dH1);_DG1.y+=_zG1*(_cH1+_eH1);_ap1+=_wu1*((_2H1._cq1.x*_cH1-_2H1._cq1.y*_bH1)+(_3H1._cq1.x*_eH1-_3H1._cq1.y*_dH1));_2H1._lq1=_w7;_3H1._lq1=_aH1;break;}_w7=0.0;_aH1=0.0;_8H1=_sB1;_9H1=_tB1;if(_8H1>=0.0&&_9H1>=0.0){__b=_w7-ax;
_0c=_aH1-ay;_bH1=__b*_Om1.x;_cH1=__b*_Om1.y;_dH1=_0c*_Om1.x;_eH1=_0c*_Om1.y;_BG1.x-=_yG1*(_bH1+_dH1);_BG1.y-=_yG1*(_cH1+_eH1);_9p1-=_vu1*((_2H1._bq1.x*_cH1-_2H1._bq1.y*_bH1)+(_3H1._bq1.x*_eH1-_3H1._bq1.y*_dH1));_DG1.x+=_zG1*(_bH1+_dH1);_DG1.y+=_zG1*(_cH1+_eH1);_ap1+=_wu1*((_2H1._cq1.x*_cH1-_2H1._cq1.y*_bH1)+(_3H1._cq1.x*_eH1-_3H1._cq1.y*_dH1));_2H1._lq1=_w7;_3H1._lq1=_aH1;break;}break;}}this._tG1[_Yo1].w=_9p1;this._tG1[_Zo1].w=_ap1;}},_fH1:function(){for(var i=0;i<this._hn1;++i){var _vG1=this._oG1[i];
var _rq1=this._uG1[_vG1._gG1]._nF1();for(var _J6=0;_J6<_vG1._qq1;++_J6){_rq1.points[_J6]._lq1=_vG1.points[_J6]._lq1;_rq1.points[_J6]._mq1=_vG1.points[_J6]._mq1;}}},_gH1:function(){var _hH1=0.0;for(var i=0;i<this._hn1;++i){var _CB1=this._nG1[i];var _Yo1=_CB1._Yo1;var _Zo1=_CB1._Zo1;var _9G1=_CB1._9G1;var _yG1=_CB1._7G1;var _vu1=_CB1._bG1;var _aG1=_CB1._aG1;var _zG1=_CB1._8G1;var _wu1=_CB1._cG1;var _qq1=_CB1._qq1;var _nz1=this._sG1[_Yo1].c;var _AG1=this._sG1[_Yo1]._05;var _pz1=this._sG1[_Zo1].c;var _CG1=this._sG1[_Zo1]._05;
for(var _J6=0;_J6<_qq1;++_J6){_mG1._pG1.q.Set(_AG1);_mG1._qG1.q.Set(_CG1);_mG1._pG1._2z.x=_nz1.x-(_mG1._pG1.q.c*_9G1.x-_mG1._pG1.q.__h*_9G1.y);_mG1._pG1._2z.y=_nz1.y-(_mG1._pG1.q.__h*_9G1.x+_mG1._pG1.q.c*_9G1.y);_mG1._qG1._2z.x=_pz1.x-(_mG1._qG1.q.c*_aG1.x-_mG1._qG1.q.__h*_aG1.y);_mG1._qG1._2z.y=_pz1.y-(_mG1._qG1.q.__h*_aG1.x+_mG1._qG1.q.c*_aG1.y);_mG1._rG1._Bq1(_CB1,_mG1._pG1,_mG1._qG1,_J6);var _Om1=_mG1._rG1._Om1;var _nq1=_mG1._rG1._nq1;var _mr1=_mG1._rG1._mr1;var _iH1=_nq1.x-_nz1.x;var _jH1=_nq1.y-_nz1.y;
var _kH1=_nq1.x-_pz1.x;var _lH1=_nq1.y-_pz1.y;_hH1=_Tl1(_hH1,_mr1);var _Ml1=_Xl1(_1k1*(_mr1+_Qj1),-_Wj1,0.0);var _EG1=_iH1*_Om1.y-_jH1*_Om1.x;var _FG1=_kH1*_Om1.y-_lH1*_Om1.x;var _eG1=_yG1+_zG1+_vu1*_EG1*_EG1+_wu1*_FG1*_FG1;var _Nw1=_eG1>0.0?-_Ml1/_eG1:0.0;var _zs1=_Nw1*_Om1.x;var _As1=_Nw1*_Om1.y;_nz1.x-=_yG1*_zs1;_nz1.y-=_yG1*_As1;_AG1-=_vu1*(_iH1*_As1-_jH1*_zs1);_pz1.x+=_zG1*_zs1;_pz1.y+=_zG1*_As1;_CG1+=_wu1*(_kH1*_As1-_lH1*_zs1);}this._sG1[_Yo1]._05=_AG1;this._sG1[_Zo1]._05=_CG1;}return _hH1>=-3.0*_Qj1;
},_mH1:function(_nH1,_oH1){var _hH1=0.0;for(var i=0;i<this._hn1;++i){var _CB1=this._nG1[i];var _Yo1=_CB1._Yo1;var _Zo1=_CB1._Zo1;var _9G1=_CB1._9G1;var _aG1=_CB1._aG1;var _qq1=_CB1._qq1;var _yG1=0.0;var _vu1=0.0;if(_Yo1==_nH1||_Yo1==_oH1){_yG1=_CB1._7G1;_vu1=_CB1._bG1;}var _zG1=0.0;var _wu1=0.0;if(_Zo1==_nH1||_Zo1==_oH1){_zG1=_CB1._8G1;_wu1=_CB1._cG1;}var _nz1=this._sG1[_Yo1].c;var _AG1=this._sG1[_Yo1]._05;var _pz1=this._sG1[_Zo1].c;var _CG1=this._sG1[_Zo1]._05;for(var _J6=0;_J6<_qq1;++_J6){_mG1._pG1.q.Set(_AG1);
_mG1._qG1.q.Set(_CG1);_mG1._pG1._2z._EI(_vk1._Ck1(_nz1,_Gl1(_mG1._pG1.q,_9G1)));_mG1._qG1._2z._EI(_vk1._Ck1(_pz1,_Gl1(_mG1._qG1.q,_aG1)));_mG1._rG1._Bq1(_CB1,_mG1._pG1,_mG1._qG1,_J6);var _Om1=_mG1._rG1._Om1;var _nq1=_mG1._rG1._nq1;var _mr1=_mG1._rG1._mr1;var _bq1=_vk1._Ck1(_nq1,_nz1);var _cq1=_vk1._Ck1(_nq1,_pz1);_hH1=_Tl1(_hH1,_mr1);var _Ml1=_Xl1(_2k1*(_mr1+_Qj1),-_Wj1,0.0);var _EG1=_sl1(_bq1,_Om1);var _FG1=_sl1(_cq1,_Om1);var _eG1=_yG1+_zG1+_vu1*_EG1*_EG1+_wu1*_FG1*_FG1;var _Nw1=_eG1>0.0?-_Ml1/_eG1:0.0;
var _ps1=_vk1.Multiply(_Nw1,_Om1);_nz1._Ck1(_vk1.Multiply(_yG1,_ps1));_AG1-=_vu1*_sl1(_bq1,_ps1);_pz1._Vf(_vk1.Multiply(_zG1,_ps1));_CG1+=_wu1*_sl1(_cq1,_ps1);}this._sG1[_Yo1]._05=_AG1;this._sG1[_Zo1]._05=_CG1;}return _hH1>=-1.5*_Qj1;}};function _Ky1(){this._2A1=[];this._uG1=[];this._pH1=[];this._tG1=[];this._sG1=[];}var _qH1=_qj1._Aj1("solve initialization","solve");var _rH1=_qj1._Aj1("warm starting","solve initialization");var _sH1=_qj1._Aj1("solve velocities","solve");var _tH1=_qj1._Aj1("solve positions",
"solve");_Ky1._uH1=new _my1();_Ky1._vH1=new _kG1();_Ky1._wH1=new _mG1();_Ky1.prototype={_ag:function(){this._yy1=0;this._Kz1=0;this._zy1=0;},_Bq1:function(_xH1,_yH1,_zH1,listener){this._AH1=listener;this._hA1=_xH1;this._iA1=_yH1;this._BH1=_zH1;this._yy1=0;this._Kz1=0;this._zy1=0;this._2A1.length=_xH1;this._uG1.length=_yH1;this._pH1.length=_zH1;this._tG1.length=_xH1;this._sG1.length=_xH1;},_Uk1:function(step,gravity,_Av1){_qH1.start();var h=step._jv;for(var i=0;i<this._yy1;++i){var __4=this._2A1[i];this._sG1[i].c._EI(__4._Qv1.c);
var _05=__4._Qv1._05;this._tG1[i]._H5._EI(__4._Vv1);var w=__4._Wv1;__4._Qv1._jl1._EI(__4._Qv1.c);__4._Qv1._ll1=__4._Qv1._05;if(__4._nH==_uv1._2w1){this._tG1[i]._H5.x+=h*((__4._Zv1*gravity.x)+(__4._4w1*__4.__v1.x));this._tG1[i]._H5.y+=h*((__4._Zv1*gravity.y)+(__4._4w1*__4.__v1.y));w+=h*__4._6w1*__4._0w1;this._tG1[i]._H5.x*=1.0/(1.0+h*__4._Xv1);this._tG1[i]._H5.y*=1.0/(1.0+h*__4._Xv1);w*=1.0/(1.0+h*__4._Yv1);}this._sG1[i]._05=_05;this._tG1[i].w=w;}_Ky1._uH1.step=step;_Ky1._uH1._ny1=this._sG1;_Ky1._uH1._oy1=this._tG1;
_Ky1._vH1.step=step;_Ky1._vH1._lG1=this._uG1;_Ky1._vH1._c9=this._Kz1;_Ky1._vH1._ny1=this._sG1;_Ky1._vH1._oy1=this._tG1;_Ky1._vH1._CH1=this._DH1;_Ky1._wH1._uL(_Ky1._vH1);_Ky1._wH1._xG1();if(step._jy1){_rH1.start();_Ky1._wH1._VG1();_rH1.stop();}for(var i=0;i<this._zy1;++i){this._pH1[i]._EH1(_Ky1._uH1);}_qH1.stop();_sH1.start();for(var i=0;i<step._hy1;++i){for(var _J6=0;_J6<this._zy1;++_J6){this._pH1[_J6]._WG1(_Ky1._uH1);}_Ky1._wH1._WG1();}_Ky1._wH1._fH1();_sH1.stop();_tH1.start();for(var i=0;i<this._yy1;
++i){var c=this._sG1[i].c;var _05=this._sG1[i]._05;var _H5=this._tG1[i]._H5;var w=this._tG1[i].w;var _FH1=h*_H5.x;var _GH1=h*_H5.y;var _HH1=_FH1*_FH1+_GH1*_GH1;if(_HH1>_Zj1){var ratio=_Yj1/_sk1(_HH1);_H5.x*=ratio;_H5.y*=ratio;}var rotation=h*w;if(rotation*rotation>_0k1){var ratio=__j1/_Ql1(rotation);w*=ratio;}c.x+=h*_H5.x;c.y+=h*_H5.y;_05+=h*w;this._sG1[i]._05=_05;this._tG1[i].w=w;}var _IH1=false;for(var i=0;i<step._iy1;++i){var _JH1=_Ky1._wH1._gH1();var _KH1=true;for(var _J6=0;_J6<this._zy1;++_J6){var _LH1=this._pH1[_J6]._gH1(_Ky1._uH1);
_KH1=_KH1&&_LH1;}if(_JH1&&_KH1){_IH1=true;break;}}for(var i=0;i<this._yy1;++i){var body=this._2A1[i];body._Qv1.c._EI(this._sG1[i].c);body._Qv1._05=this._sG1[i]._05;body._Vv1._EI(this._tG1[i]._H5);body._Wv1=this._tG1[i].w;body._qx1();}_tH1.stop();this._MH1(_Ky1._wH1._oG1);if(_Av1){var _NH1=_Jj1;var _OH1=_4k1*_4k1;var _PH1=_5k1*_5k1;for(var i=0;i<this._yy1;++i){var __4=this._2A1[i];if(__4._8g1()==_uv1._vv1){continue;}if((__4._Iv1&_uv1._Lv1)==0||__4._Wv1*__4._Wv1>_PH1||_rl1(__4._Vv1,__4._Vv1)>_OH1){__4._1w1=0.0;
_NH1=0.0;}else {__4._1w1+=h;_NH1=_Tl1(_NH1,__4._1w1);}}if(_NH1>=_3k1&&_IH1){for(var i=0;i<this._yy1;++i){var __4=this._2A1[i];__4._QZ(false);}}}},_hz1:function(_jA1,_nH1,_oH1){_Hj1(_nH1<this._yy1);_Hj1(_oH1<this._yy1);for(var i=0;i<this._yy1;++i){var __4=this._2A1[i];this._sG1[i].c._EI(__4._Qv1.c);this._sG1[i]._05=__4._Qv1._05;this._tG1[i]._H5._EI(__4._Vv1);this._tG1[i].w=__4._Wv1;}_Ky1._vH1._lG1=this._uG1;_Ky1._vH1._c9=this._Kz1;_Ky1._vH1.step=_jA1;_Ky1._vH1._ny1=this._sG1;_Ky1._vH1._oy1=this._tG1;_Ky1._wH1._uL(_Ky1._vH1);
for(var i=0;i<_jA1._iy1;++i){var _JH1=_Ky1._wH1._mH1(_nH1,_oH1);if(_JH1){break;}}this._2A1[_nH1]._Qv1._jl1._EI(this._sG1[_nH1].c);this._2A1[_nH1]._Qv1._ll1=this._sG1[_nH1]._05;this._2A1[_oH1]._Qv1._jl1._EI(this._sG1[_oH1].c);this._2A1[_oH1]._Qv1._ll1=this._sG1[_oH1]._05;_Ky1._wH1._xG1();for(var i=0;i<_jA1._hy1;++i){_Ky1._wH1._WG1();}var h=_jA1._jv;for(var i=0;i<this._yy1;++i){var c=this._sG1[i].c;var _05=this._sG1[i]._05;var _H5=this._tG1[i]._H5;var w=this._tG1[i].w;var _QH1=_vk1.Multiply(h,_H5);if(_rl1(_QH1,
_QH1)>_Zj1){var ratio=_Yj1/_QH1.Length();_H5.Multiply(ratio);}var rotation=h*w;if(rotation*rotation>_0k1){var ratio=__j1/_Ql1(rotation);w*=ratio;}c._Vf(_vk1.Multiply(h,_H5));_05+=h*w;this._sG1[i]._05=_05;this._tG1[i].w=w;var body=this._2A1[i];body._Qv1.c._EI(c);body._Qv1._05=_05;body._Vv1._EI(_H5);body._Wv1=w;body._qx1();}this._MH1(_Ky1._wH1._oG1);},_Uz1:function(body){_Hj1(this._yy1<this._hA1);body._Hv1=this._yy1;this._2A1[this._yy1]=body;if(!this._sG1[this._yy1]){this._sG1[this._yy1]=new _ky1();this._tG1[this._yy1]=new _ly1();
}++this._yy1;},_0A1:function(_uw1){_Hj1(this._Kz1<this._iA1);this._uG1[this._Kz1++]=_uw1;},_1A1:function(_h_){_Hj1(this._zy1<this._BH1);this._pH1[this._zy1++]=_h_;},_MH1:function(_1a1){if(this._AH1==null){return;}for(var i=0;i<this._Kz1;++i){var c=this._uG1[i];var _vG1=_1a1[i];var _Nw1=new _1y1();_Nw1._c9=_vG1._qq1;for(var _J6=0;_J6<_vG1._qq1;++_J6){_Nw1._2y1[_J6]=_vG1.points[_J6]._lq1;_Nw1._3y1[_J6]=_vG1.points[_J6]._mq1;}this._AH1._9y1(c,_Nw1);}}};function _RH1(){this._5u=new _vk1();this._SH1=0;this._TH1=0;
};function _UH1(){this.other=null;this._h_=null;this._Xk=null;this._Zk=null;};function _VH1(){this.type=_6z1._WH1;this._mo1=null;this._bz1=null;this._cz1=null;this._dz1=false;};_VH1.prototype={_Jk1:function(data,_gA1,_XH1){this._bz1=_gA1[data['bodyA']];this._cz1=_gA1[data['bodyB']];this._dz1=data['collideConnected'];}};function _6z1(_gw1){_Hj1(_gw1._bz1!=_gw1._cz1);this._nH=_gw1.type;this._Tv1=null;this._Uv1=null;this._9z1=_gw1._bz1;this._8z1=_gw1._cz1;this._Wx=0;this._tx1=_gw1._dz1;this._Qz1=false;
this._7w1=_gw1._mo1;this._7z1=new _UH1();this._7z1._h_=null;this._7z1.other=null;this._7z1._Xk=null;this._7z1._Zk=null;this._az1=new _UH1();this._az1._h_=null;this._az1.other=null;this._az1._Xk=null;this._az1._Zk=null;}_6z1.prototype={_8g1:function(){return this._nH;},_kA1:function(){return this._9z1;},_lA1:function(){return this._8z1;},_mA1:function(){},_nA1:function(){},_YH1:function(_fy1){},_ZH1:function(_fy1){},_nx1:function(){return this._Uv1;},_vo1:function(){return this._7w1;},_ox1:function(data){
this._7w1=data;},_hx1:function(){return this._9z1._hx1()&&this._8z1._hx1();},__H1:function(){return this._tx1;},_Oo1:function(_Po1){},_EH1:function(data){},_WG1:function(data){},_gH1:function(data){},_Ik1:function(out){var _Ik=out||{};_Ik['bodyA']=null;_Ik['bodyB']=null;_Ik['type']=this._nH;_Ik['collideConnected']=this._tx1;return _Ik;}};_6z1._0I1=0;_6z1._1I1=1;_6z1._2I1=2;_6z1._3I1=3;_6z1._WH1=0;_6z1._4I1=1;_6z1._5I1=2;_6z1._oA1=3;_6z1._pA1=4;_6z1._tA1=5;_6z1._6I1=6;_6z1._7I1=7;_6z1._8I1=8;_6z1._9I1=9;
_6z1._aI1=10;_6z1._uA1=11;_6z1._7a1=function(_gw1){var _h_=null;switch(_gw1.type){case _6z1._oA1:_h_=new _bI1(_gw1);break;case _6z1._tA1:_h_=new _cI1(_gw1);break;case _6z1._5I1:_h_=new _dI1(_gw1);break;case _6z1._4I1:_h_=new _eI1(_gw1);break;case _6z1._pA1:_h_=new _fI1(_gw1);break;case _6z1._6I1:_h_=new _gI1(_gw1);break;case _6z1._7I1:_h_=new _hI1(_gw1);break;case _6z1._8I1:_h_=new _iI1(_gw1);break;case _6z1._9I1:_h_=new _jI1(_gw1);break;case _6z1._aI1:_h_=new _kI1(_gw1);break;case _6z1._uA1:_h_=new _lI1(_gw1);break;default :_Hj1(false);
break;}return _h_;};_6z1._Mg1=function(_h_){};function _mI1(){this.parent.call(this);this.type=_6z1._4I1;this._nI1=new _vk1();this._oI1=new _vk1();this._pI1=0.0;this._qI1=0.0;this._rI1=0.0;this._sI1=0.0;this._tI1=0.0;this._uI1=false;this._vI1=false;Object.seal(this);}_mI1.prototype={_Bq1:function(_9A1,_aA1,anchor){this._bz1=_9A1;this._cz1=_aA1;this._nI1=this._bz1._Vw1(anchor);this._oI1=this._cz1._Vw1(anchor);this._pI1=this._cz1._cl1()-this._bz1._cl1();},_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,
data,_gA1,_XH1);this._nI1._Jk1(data['localAnchorA']);this._oI1._Jk1(data['localAnchorB']);this._pI1=data['referenceAngle'];this._qI1=data['lowerAngle'];this._rI1=data['upperAngle'];this._sI1=data['maxMotorTorque'];this._tI1=data['motorSpeed'];this._uI1=data['enableLimit'];this._vI1=data['enableMotor'];}};_mI1._ej1(_VH1);function _eI1(_gw1){this.parent.call(this,_gw1);this._wI1=_gw1._nI1._Q3();this._xI1=_gw1._oI1._Q3();this._yI1=_gw1._pI1;this._zI1=new _Lk1();this._AI1=0.0;this._BI1=_gw1._qI1;this._CI1=_gw1._rI1;
this._DI1=_gw1._sI1;this._EI1=_gw1._tI1;this._FI1=_gw1._uI1;this._GI1=_gw1._vI1;this._HI1=_6z1._0I1;this._kF1=0;this._lF1=0;this._II1=new _vk1();this._JI1=new _vk1();this._KI1=new _vk1();this._LI1=new _vk1();this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;this._3w1=new _Zk1();this._QI1=0;}_eI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);},_nA1:function(){return this._8z1._Sw1(this._xI1);},_RI1:function(){return this._wI1;},_SI1:function(){return this._xI1;},_TI1:function(){return this._yI1;
},_UI1:function(){var _9A1=this._9z1;var _aA1=this._8z1;return _aA1._Qv1._05-_9A1._Qv1._05-this._yI1;},_VI1:function(){var _9A1=this._9z1;var _aA1=this._8z1;return _aA1._Wv1-_9A1._Wv1;},_WI1:function(){return this._FI1;},_XI1:function(_bx1){if(_bx1!=this._FI1){this._9z1._QZ(true);this._8z1._QZ(true);this._FI1=_bx1;this._zI1.z=0.0;}},_YI1:function(){return this._BI1;},_ZI1:function(){return this._CI1;},__I1:function(_RQ,_Kn1){_Hj1(_RQ<=_Kn1);if(_RQ!=this._BI1||_Kn1!=this._CI1){this._9z1._QZ(true);this._8z1._QZ(true);
this._zI1.z=0.0;this._BI1=_RQ;this._CI1=_Kn1;}},_0J1:function(){return this._GI1;},_101:function(_bx1){this._9z1._QZ(true);this._8z1._QZ(true);this._GI1=_bx1;},_1J1:function(speed){this._9z1._QZ(true);this._8z1._QZ(true);this._EI1=speed;},_2J1:function(){return this._EI1;},_3J1:function(_Lw1){this._9z1._QZ(true);this._8z1._QZ(true);this._DI1=_Lw1;},_4J1:function(){return this._DI1;},_YH1:function(_fy1){var _ps1=new _vk1(this._zI1.x,this._zI1.y);return _vk1.Multiply(_fy1,_ps1);},_ZH1:function(_fy1){return _fy1*this._zI1.z;
},_5J1:function(_fy1){return _fy1*this._AI1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._KI1=this._9z1._Qv1._il1;this._LI1=this._8z1._Qv1._il1;this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),
_7J1=new _bl1(_CG1);this._II1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));this._JI1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _Cv1=(_vu1+_wu1==0.0);this._3w1._Oj.x=_yG1+_zG1+this._II1.y*this._II1.y*_vu1+this._JI1.y*this._JI1.y*_wu1;this._3w1._6F.x=-this._II1.y*this._II1.x*_vu1-this._JI1.y*this._JI1.x*_wu1;this._3w1._0l1.x=-this._II1.y*_vu1-this._JI1.y*_wu1;this._3w1._Oj.y=this._3w1._6F.x;this._3w1._6F.y=_yG1+_zG1+this._II1.x*this._II1.x*_vu1+this._JI1.x*this._JI1.x*_wu1;
this._3w1._0l1.y=this._II1.x*_vu1+this._JI1.x*_wu1;this._3w1._Oj.z=this._3w1._0l1.x;this._3w1._6F.z=this._3w1._0l1.y;this._3w1._0l1.z=_vu1+_wu1;this._QI1=_vu1+_wu1;if(this._QI1>0.0){this._QI1=1.0/this._QI1;}if(this._GI1==false||_Cv1){this._AI1=0.0;}if(this._FI1&&_Cv1==false){var _8J1=_CG1-_AG1-this._yI1;if(_Ql1(this._CI1-this._BI1)<2.0*_Rj1){this._HI1=_6z1._3I1;}else if(_8J1<=this._BI1){if(this._HI1!=_6z1._1I1){this._zI1.z=0.0;}this._HI1=_6z1._1I1;}else if(_8J1>=this._CI1){if(this._HI1!=_6z1._2I1){
this._zI1.z=0.0;}this._HI1=_6z1._2I1;}else {this._HI1=_6z1._0I1;this._zI1.z=0.0;}}else {this._HI1=_6z1._0I1;}if(data.step._jy1){this._zI1.Multiply(data.step._gy1);this._AI1*=data.step._gy1;var _ps1=new _vk1(this._zI1.x,this._zI1.y);_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*(_sl1(this._II1,_ps1)+this._AI1+this._zI1.z);_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*(_sl1(this._JI1,_ps1)+this._AI1+this._zI1.z);}else {this._zI1._wk1();this._AI1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;
data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _Cv1=(_vu1+_wu1==0.0);if(this._GI1&&this._HI1!=_6z1._3I1&&_Cv1==false){var _9J1=_ap1-_9p1-this._EI1;var _Nw1=-this._QI1*_9J1;var _aJ1=this._AI1;var _bJ1=data.step._jv*this._DI1;this._AI1=_Xl1(this._AI1+_Nw1,-_bJ1,
_bJ1);_Nw1=this._AI1-_aJ1;_9p1-=_vu1*_Nw1;_ap1+=_wu1*_Nw1;}if(this._FI1&&this._HI1!=_6z1._0I1&&_Cv1==false){var _cJ1=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_DG1,_ul1(_ap1,this._JI1)),_BG1),_ul1(_9p1,this._II1));var _dJ1=_ap1-_9p1;var _9J1=new _Lk1(_cJ1.x,_cJ1.y,_dJ1);var _Nw1=this._3w1._1l1(_9J1)._zk1();if(this._HI1==_6z1._3I1){this._zI1._Vf(_Nw1);}else if(this._HI1==_6z1._1I1){var _1H1=this._zI1.z+_Nw1.z;if(_1H1<0.0){var _eJ1=_vk1._Vf(_cJ1._zk1(),_vk1.Multiply(this._zI1.z,new _vk1(this._3w1._0l1.x,this._3w1._0l1.y)));
var _fJ1=this._3w1._4l1(_eJ1);_Nw1.x=_fJ1.x;_Nw1.y=_fJ1.y;_Nw1.z=-this._zI1.z;this._zI1.x+=_fJ1.x;this._zI1.y+=_fJ1.y;this._zI1.z=0.0;}else {this._zI1._Vf(_Nw1);}}else if(this._HI1==_6z1._2I1){var _1H1=this._zI1.z+_Nw1.z;if(_1H1>0.0){var _eJ1=_vk1._Vf(_cJ1._zk1(),_vk1.Multiply(this._zI1.z,new _vk1(this._3w1._0l1.x,this._3w1._0l1.y)));var _fJ1=this._3w1._4l1(_eJ1);_Nw1.x=_fJ1.x;_Nw1.y=_fJ1.y;_Nw1.z=-this._zI1.z;this._zI1.x+=_fJ1.x;this._zI1.y+=_fJ1.y;this._zI1.z=0.0;}else {this._zI1._Vf(_Nw1);}}var _ps1=new _vk1(_Nw1.x,
_Nw1.y);_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*(_sl1(this._II1,_ps1)+_Nw1.z);_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*(_sl1(this._JI1,_ps1)+_Nw1.z);}else {var _9J1=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_DG1,_ul1(_ap1,this._JI1)),_BG1),_ul1(_9p1,this._II1));var _Nw1=this._3w1._4l1(_9J1._zk1());this._zI1.x+=_Nw1.x;this._zI1.y+=_Nw1.y;_BG1._Ck1(_vk1.Multiply(_yG1,_Nw1));_9p1-=_vu1*_sl1(this._II1,_Nw1);_DG1._Vf(_vk1.Multiply(_zG1,_Nw1));_ap1+=_wu1*_sl1(this._JI1,_Nw1);}data._oy1[this._kF1]._H5._EI(_BG1);
data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_gH1:function(data){var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _gJ1=0.0;var _hJ1=0.0;var _Cv1=(this._OI1+this._PI1==0.0);if(this._FI1&&this._HI1!=_6z1._0I1&&_Cv1==false){var angle=_CG1-_AG1-this._yI1;var _iJ1=0.0;if(this._HI1==_6z1._3I1){var _Ml1=_Xl1(angle-this._BI1,-_Xj1,
_Xj1);_iJ1=-this._QI1*_Ml1;_gJ1=_Ql1(_Ml1);}else if(this._HI1==_6z1._1I1){var _Ml1=angle-this._BI1;_gJ1=-_Ml1;_Ml1=_Xl1(_Ml1+_Rj1,-_Xj1,0.0);_iJ1=-this._QI1*_Ml1;}else if(this._HI1==_6z1._2I1){var _Ml1=angle-this._CI1;_gJ1=_Ml1;_Ml1=_Xl1(_Ml1-_Rj1,0.0,_Xj1);_iJ1=-this._QI1*_Ml1;}_AG1-=this._OI1*_iJ1;_CG1+=this._PI1*_iJ1;}{_6J1.Set(_AG1);_7J1.Set(_CG1);var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _Ml1=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,_cq1),_nz1),
_bq1);_hJ1=_Ml1.Length();var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _eG1=new _Nk1();_eG1._Oj.x=_yG1+_zG1+_vu1*_bq1.y*_bq1.y+_wu1*_cq1.y*_cq1.y;_eG1._Oj.y=-_vu1*_bq1.x*_bq1.y-_wu1*_cq1.x*_cq1.y;_eG1._6F.x=_eG1._Oj.y;_eG1._6F.y=_yG1+_zG1+_vu1*_bq1.x*_bq1.x+_wu1*_cq1.x*_cq1.x;var _Nw1=_eG1._Uk1(_Ml1)._zk1();_nz1._Ck1(_vk1.Multiply(_yG1,_Nw1));_AG1-=_vu1*_sl1(_bq1,_Nw1);_pz1._Vf(_vk1.Multiply(_zG1,_Nw1));_CG1+=_wu1*_sl1(_cq1,_Nw1);}data._ny1[this._kF1].c._EI(_nz1);data._ny1[this._kF1]._05=_AG1;
data._ny1[this._lF1].c._EI(_pz1);data._ny1[this._lF1]._05=_CG1;return _hJ1<=_Qj1&&_gJ1<=_Rj1;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['localAnchorA']=this._wI1._Ik1();_Ik['localAnchorB']=this._xI1._Ik1();_Ik['referenceAngle']=this._yI1;_Ik['lowerAngle']=this._BI1;_Ik['upperAngle']=this._CI1;_Ik['maxMotorTorque']=this._DI1;_Ik['motorSpeed']=this._EI1;_Ik['enableLimit']=this._FI1;_Ik['enableMotor']=this._GI1;return _Ik;}};_eI1._ej1(_6z1);function _jJ1(){this.parent.call(this);
this.type=_6z1._tA1;this.target=new _vk1(0.0,0.0);this._kJ1=0.0;this._lJ1=5.0;this._mJ1=0.7;Object.seal(this);}_jJ1._ej1(_VH1);function _cI1(_gw1){this.parent.call(this,_gw1);_Hj1(_gw1.target._Gk1());_Hj1(_lk1(_gw1._kJ1)&&_gw1._kJ1>=0.0);_Hj1(_lk1(_gw1._lJ1)&&_gw1._lJ1>=0.0);_Hj1(_lk1(_gw1._mJ1)&&_gw1._mJ1>=0.0);this._nJ1=_gw1.target._Q3();this._xI1=_Kl1(this._8z1._nl1(),this._nJ1);this._oJ1=_gw1._kJ1;this._zI1=new _vk1();this._pJ1=_gw1._lJ1;this._qJ1=_gw1._mJ1;this._rJ1=0.0;this._sJ1=0.0;this._kF1=0;
this._lF1=0;this._JI1=new _vk1();this._LI1=new _vk1();this._NI1=0;this._PI1=0;this._3w1=new _Nk1();this._tJ1=new _vk1();}_cI1.prototype={_mA1:function(){return this._nJ1;},_nA1:function(){return this._8z1._Sw1(this._xI1);},_YH1:function(_fy1){return _vk1.Multiply(_fy1,this._zI1);},_ZH1:function(_fy1){return _fy1*0.0;},_uJ1:function(target){if(this._8z1._fx1()==false){this._8z1._QZ(true);}this._nJ1._EI(target);},_vJ1:function(){return this._nJ1;},_wJ1:function(_Iw1){this._oJ1=_Iw1;},_xJ1:function(){return this._oJ1;
},_yJ1:function(_zJ1){this._pJ1=_zJ1;},_AJ1:function(){return this._pJ1;},_BJ1:function(ratio){this._qJ1=ratio;},_CJ1:function(){return this._qJ1;},_Oo1:function(_Po1){this._nJ1._Ck1(_Po1);},_EH1:function(data){this._lF1=this._8z1._Hv1;this._LI1._EI(this._8z1._Qv1._il1);this._NI1=this._8z1._4w1;this._PI1=this._8z1._6w1;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _7J1=new _bl1(_CG1);var _Am1=this._8z1._Ow1();
var _T01=2.0*_Lj1*this._pJ1;var _Xo=2.0*_Am1*this._qJ1*_T01;var _0l=_Am1*(_T01*_T01);var h=data.step._jv;_Hj1(_Xo+h*_0l>_Kj1);this._sJ1=h*(_Xo+h*_0l);if(this._sJ1!=0.0){this._sJ1=1.0/this._sJ1;}this._rJ1=h*_0l*this._sJ1;this._JI1._EI(_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1)));var _eG1=new _Nk1();_eG1._Oj.x=this._NI1+this._PI1*this._JI1.y*this._JI1.y+this._sJ1;_eG1._Oj.y=-this._PI1*this._JI1.x*this._JI1.y;_eG1._6F.x=_eG1._Oj.y;_eG1._6F.y=this._NI1+this._PI1*this._JI1.x*this._JI1.x+this._sJ1;this._3w1._EI(_eG1._Rk1());
this._tJ1._EI(_vk1._Ck1(_vk1._Vf(_pz1,this._JI1),this._nJ1));this._tJ1.Multiply(this._rJ1);_ap1*=0.98;if(data.step._jy1){this._zI1.Multiply(data.step._gy1);_DG1._Vf(_vk1.Multiply(this._NI1,this._zI1));_ap1+=this._PI1*_sl1(this._JI1,this._zI1);}else {this._zI1._wk1();}data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _9J1=_vk1._Vf(_DG1,_ul1(_ap1,this._JI1));var _Nw1=_vl1(this._3w1,(_vk1._Vf(_vk1._Vf(_9J1,
this._tJ1),_vk1.Multiply(this._sJ1,this._zI1)))._zk1());var _aJ1=this._zI1._Q3();this._zI1._Vf(_Nw1);var _bJ1=data.step._jv*this._oJ1;if(this._zI1._Dk1()>_bJ1*_bJ1){this._zI1.Multiply(_bJ1/this._zI1.Length());}_Nw1._EI(_vk1._Ck1(this._zI1,_aJ1));_DG1._Vf(_vk1.Multiply(this._NI1,_Nw1));_ap1+=this._PI1*_sl1(this._JI1,_Nw1);data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_gH1:function(data){return true;}};_cI1._ej1(_6z1);function _DJ1(){this.parent.call(this);this.type=_6z1._oA1;this._nI1=new _vk1(0.0,
0.0);this._oI1=new _vk1(0.0,0.0);this.length=1.0;this._lJ1=0.0;this._mJ1=0.0;Object.seal(this);}_DJ1.prototype={_Bq1:function(_wh,_xh,_EJ1,_FJ1){this._bz1=_wh;this._cz1=_xh;this._nI1=this._bz1._Vw1(_EJ1);this._oI1=this._cz1._Vw1(_FJ1);var _Xo=_vk1._Ck1(_FJ1,_EJ1);this.length=_Xo.Length();},_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._nI1._Jk1(data['localAnchorA']);this._oI1._Jk1(data['localAnchorB']);this.length=data['length'];this._lJ1=data['frequencyHz'];
this._mJ1=data['dampingRatio'];}};_DJ1._ej1(_VH1);function _bI1(_gw1){this.parent.call(this,_gw1);this._wI1=_gw1._nI1._Q3();this._xI1=_gw1._oI1._Q3();this._wN=_gw1.length;this._pJ1=_gw1._lJ1;this._qJ1=_gw1._mJ1;this._zI1=0.0;this._sJ1=0.0;this._GJ1=0.0;this._kF1=0;this._lF1=0;this._HJ1=new _vk1();this._II1=new _vk1();this._JI1=new _vk1();this._KI1=new _vk1();this._LI1=new _vk1();this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;this._3w1=0;}_bI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);
},_nA1:function(){return this._8z1._Sw1(this._xI1);},_YH1:function(_fy1){var _Au1=_vk1.Multiply((_fy1*this._zI1),this._HJ1);return _Au1;},_ZH1:function(_fy1){return 0.0;},_RI1:function(){return this._wI1;},_SI1:function(){return this._xI1;},_IJ1:function(length){this._wN=length;},_JJ1:function(){return this._wN;},_yJ1:function(_zJ1){this._pJ1=_zJ1;},_AJ1:function(){return this._pJ1;},_BJ1:function(ratio){this._qJ1=ratio;},_CJ1:function(){return this._qJ1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;
this._KI1._EI(this._9z1._Qv1._il1);this._LI1._EI(this._8z1._Qv1._il1);this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);this._II1=_Gl1(_6J1,
_vk1._Ck1(this._wI1,this._KI1));this._JI1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));this._HJ1=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,this._JI1),_nz1),this._II1);var length=this._HJ1.Length();if(length>_Qj1){this._HJ1.Multiply(1.0/length);}else {this._HJ1.Set(0.0,0.0);}var _KJ1=_sl1(this._II1,this._HJ1);var _LJ1=_sl1(this._JI1,this._HJ1);var _MJ1=this._MI1+this._OI1*_KJ1*_KJ1+this._NI1+this._PI1*_LJ1*_LJ1;this._3w1=_MJ1!=0.0?1.0/_MJ1:0.0;if(this._pJ1>0.0){var _Ml1=length-this._wN;var _T01=2.0*_Lj1*this._pJ1;
var _Xo=2.0*this._3w1*this._qJ1*_T01;var _0l=this._3w1*_T01*_T01;var h=data.step._jv;this._sJ1=h*(_Xo+h*_0l);this._sJ1=this._sJ1!=0.0?1.0/this._sJ1:0.0;this._GJ1=_Ml1*h*_0l*this._sJ1;_MJ1+=this._sJ1;this._3w1=_MJ1!=0.0?1.0/_MJ1:0.0;}else {this._sJ1=0.0;this._GJ1=0.0;}if(data.step._jy1){this._zI1*=data.step._gy1;var _ps1=_vk1.Multiply(this._zI1,this._HJ1);_BG1._Ck1(_vk1.Multiply(this._MI1,_ps1));_9p1-=this._OI1*_sl1(this._II1,_ps1);_DG1._Vf(_vk1.Multiply(this._NI1,_ps1));_ap1+=this._PI1*_sl1(this._JI1,
_ps1);}else {this._zI1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _NJ1=_vk1._Vf(_BG1,_ul1(_9p1,this._II1));var _OJ1=_vk1._Vf(_DG1,_ul1(_ap1,this._JI1));var _9J1=_rl1(this._HJ1,_vk1._Ck1(_OJ1,_NJ1));var _Nw1=-this._3w1*(_9J1+this._GJ1+this._sJ1*this._zI1);
this._zI1+=_Nw1;var _ps1=_vk1.Multiply(_Nw1,this._HJ1);_BG1._Ck1(_vk1.Multiply(this._MI1,_ps1));_9p1-=this._OI1*_sl1(this._II1,_ps1);_DG1._Vf(_vk1.Multiply(this._NI1,_ps1));_ap1+=this._PI1*_sl1(this._JI1,_ps1);data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_gH1:function(data){if(this._pJ1>0.0){return true;}var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;
var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _G5=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,_cq1),_nz1),_bq1);var length=_G5._Ek1();var _Ml1=length-this._wN;_Ml1=_Xl1(_Ml1,-_Wj1,_Wj1);var _Nw1=-this._3w1*_Ml1;var _ps1=_vk1.Multiply(_Nw1,_G5);_nz1._Ck1(_vk1.Multiply(this._MI1,_ps1));_AG1-=this._OI1*_sl1(_bq1,_ps1);_pz1._Vf(_vk1.Multiply(this._NI1,_ps1));_CG1+=this._PI1*_sl1(_cq1,_ps1);data._ny1[this._kF1].c._EI(_nz1);
data._ny1[this._kF1]._05=_AG1;data._ny1[this._lF1].c._EI(_pz1);data._ny1[this._lF1]._05=_CG1;return _Ql1(_Ml1)<_Qj1;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['localAnchorA']=this._wI1._Ik1();_Ik['localAnchorB']=this._xI1._Ik1();_Ik['length']=this._wN;_Ik['frequencyHz']=this._pJ1;_Ik['dampingRatio']=this._qJ1;return _Ik;}};_bI1._ej1(_6z1);function _PJ1(){this.parent.call(this);this.type=_6z1._5I1;this._nI1=new _vk1();this._oI1=new _vk1();this._QJ1=new _vk1(1.0,0.0);
this._pI1=0.0;this._uI1=false;this._RJ1=0.0;this._SJ1=0.0;this._vI1=false;this._TJ1=0.0;this._tI1=0.0;Object.seal(this);}_PJ1.prototype={_Bq1:function(_9A1,_aA1,anchor,_bp){this._bz1=_9A1;this._cz1=_aA1;this._nI1=this._bz1._Vw1(anchor);this._oI1=this._cz1._Vw1(anchor);this._QJ1=this._bz1._Xw1(_bp);this._pI1=this._cz1._cl1()-this._bz1._cl1();},_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._nI1._Jk1(data['localAnchorA']);this._oI1._Jk1(data['localAnchorB']);
this._QJ1._Jk1(data['localAxisA']);this._pI1=data['referenceAngle'];this._uI1=data['enableLimit'];this._RJ1=data['lowerTranslation'];this._SJ1=data['upperTranslation'];this._vI1=data['enableMotor'];this._TJ1=data['maxMotorForce'];this._tI1=data['motorSpeed'];}};_PJ1._ej1(_VH1);function _dI1(_gw1){this.parent.call(this,_gw1);this._wI1=_gw1._nI1._Q3();this._xI1=_gw1._oI1._Q3();this._UJ1=_gw1._QJ1._Q3();this._UJ1._Ek1();this._VJ1=_ul1(1.0,this._UJ1);this._yI1=_gw1._pI1;this._zI1=new _Lk1();this._QI1=0.0;
this._AI1=0.0;this._WJ1=_gw1._RJ1;this._XJ1=_gw1._SJ1;this._YJ1=_gw1._TJ1;this._EI1=_gw1._tI1;this._FI1=_gw1._uI1;this._GI1=_gw1._vI1;this._HI1=_6z1._0I1;this._Wu1=new _vk1();this._ZJ1=new _vk1();this._kF1=0;this._lF1=0;this._KI1=new _vk1();this._LI1=new _vk1();this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;this.__J1=0,this._0K1=0;this._1K1=0,this._2K1=0;this._3K1=new _Zk1();this._QI1=0;}_dI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);},_nA1:function(){return this._8z1._Sw1(this._xI1);
},_YH1:function(_fy1){return _vk1.Multiply(_fy1,_vk1._Vf(_vk1.Multiply(this._zI1.x,this._ZJ1),_vk1.Multiply((this._AI1+this._zI1.z),this._Wu1)));},_ZH1:function(_fy1){return _fy1*this._zI1.y;},_RI1:function(){return this._wI1;},_SI1:function(){return this._xI1;},_4K1:function(){return this._UJ1;},_TI1:function(){return this._yI1;},_5K1:function(){var _qp1=this._9z1._Sw1(this._wI1);var _rp1=this._8z1._Sw1(this._xI1);var _Xo=_vk1._Ck1(_rp1,_qp1);var _bp=this._9z1._Tw1(this._UJ1);var _QH1=_rl1(_Xo,_bp);return _QH1;
},_VI1:function(){var _9A1=this._9z1;var _aA1=this._8z1;var _bq1=_Gl1(_9A1._Ls1.q,_vk1._Ck1(this._wI1,_9A1._Qv1._il1));var _cq1=_Gl1(_aA1._Ls1.q,_vk1._Ck1(this._xI1,_aA1._Qv1._il1));var _ap=_vk1._Vf(_9A1._Qv1.c,_bq1);var _hm1=_vk1._Vf(_aA1._Qv1.c,_cq1);var _Xo=_vk1._Ck1(_hm1,_ap);var _bp=_Gl1(_9A1._Ls1.q,this._UJ1);var _BG1=_9A1._Vv1;var _DG1=_aA1._Vv1;var _9p1=_9A1._Wv1;var _ap1=_aA1._Wv1;var speed=_rl1(_Xo,_ul1(_9p1,_bp))+_rl1(_bp,_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_DG1,_ul1(_ap1,_cq1)),_BG1),_ul1(_9p1,_bq1)));return speed;
},_WI1:function(){return this._FI1;},_XI1:function(_bx1){if(_bx1!=this._FI1){this._9z1._QZ(true);this._8z1._QZ(true);this._FI1=_bx1;this._zI1.z=0.0;}},_YI1:function(){return this._WJ1;},_ZI1:function(){return this._XJ1;},__I1:function(_RQ,_Kn1){_Hj1(_RQ<=_Kn1);if(_RQ!=this._WJ1||_Kn1!=this._XJ1){this._9z1._QZ(true);this._8z1._QZ(true);this._WJ1=_RQ;this._XJ1=_Kn1;this._zI1.z=0.0;}},_0J1:function(){return this._GI1;},_101:function(_bx1){this._9z1._QZ(true);this._8z1._QZ(true);this._GI1=_bx1;},_1J1:function(speed){
this._9z1._QZ(true);this._8z1._QZ(true);this._EI1=speed;},_2J1:function(){return this._EI1;},_6K1:function(_Iw1){this._9z1._QZ(true);this._8z1._QZ(true);this._YJ1=_Iw1;},_7K1:function(){return this._YJ1;},_8K1:function(_fy1){return _fy1*this._AI1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._KI1=this._9z1._Qv1._il1;this._LI1=this._8z1._Qv1._il1;this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;var _nz1=data._ny1[this._kF1].c._Q3();
var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _Xo=_vk1._Vf(_vk1._Ck1(_pz1,_nz1),_vk1._Ck1(_cq1,_bq1));var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;
{this._Wu1=_Gl1(_6J1,this._UJ1);this._1K1=_sl1(_vk1._Vf(_Xo,_bq1),this._Wu1);this._2K1=_sl1(_cq1,this._Wu1);this._QI1=_yG1+_zG1+_vu1*this._1K1*this._1K1+_wu1*this._2K1*this._2K1;if(this._QI1>0.0){this._QI1=1.0/this._QI1;}}{this._ZJ1=_Gl1(_6J1,this._VJ1);this.__J1=_sl1(_vk1._Vf(_Xo,_bq1),this._ZJ1);this._0K1=_sl1(_cq1,this._ZJ1);var _RG1=_yG1+_zG1+_vu1*this.__J1*this.__J1+_wu1*this._0K1*this._0K1;var _TG1=_vu1*this.__J1+_wu1*this._0K1;var _9K1=_vu1*this.__J1*this._1K1+_wu1*this._0K1*this._2K1;var _SG1=_vu1+_wu1;
if(_SG1==0.0){_SG1=1.0;}var _aK1=_vu1*this._1K1+_wu1*this._2K1;var _bK1=_yG1+_zG1+_vu1*this._1K1*this._1K1+_wu1*this._2K1*this._2K1;this._3K1._Oj.Set(_RG1,_TG1,_9K1);this._3K1._6F.Set(_TG1,_SG1,_aK1);this._3K1._0l1.Set(_9K1,_aK1,_bK1);}if(this._FI1){var _cK1=_rl1(this._Wu1,_Xo);if(_Ql1(this._XJ1-this._WJ1)<2.0*_Qj1){this._HI1=_6z1._3I1;}else if(_cK1<=this._WJ1){if(this._HI1!=_6z1._1I1){this._HI1=_6z1._1I1;this._zI1.z=0.0;}}else if(_cK1>=this._XJ1){if(this._HI1!=_6z1._2I1){this._HI1=_6z1._2I1;this._zI1.z=0.0;
}}else {this._HI1=_6z1._0I1;this._zI1.z=0.0;}}else {this._HI1=_6z1._0I1;this._zI1.z=0.0;}if(this._GI1==false){this._AI1=0.0;}if(data.step._jy1){this._zI1.Multiply(data.step._gy1);this._AI1*=data.step._gy1;var _ps1=_vk1._Vf(_vk1.Multiply(this._zI1.x,this._ZJ1),_vk1.Multiply((this._AI1+this._zI1.z),this._Wu1));var _dK1=this._zI1.x*this.__J1+this._zI1.y+(this._AI1+this._zI1.z)*this._1K1;var _eK1=this._zI1.x*this._0K1+this._zI1.y+(this._AI1+this._zI1.z)*this._2K1;_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*_dK1;
_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*_eK1;}else {this._zI1._wk1();this._AI1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;if(this._GI1&&this._HI1!=_6z1._3I1){var _9J1=_rl1(this._Wu1,
_vk1._Ck1(_DG1,_BG1))+this._2K1*_ap1-this._1K1*_9p1;var _Nw1=this._QI1*(this._EI1-_9J1);var _aJ1=this._AI1;var _bJ1=data.step._jv*this._YJ1;this._AI1=_Xl1(this._AI1+_Nw1,-_bJ1,_bJ1);_Nw1=this._AI1-_aJ1;var _ps1=_vk1.Multiply(_Nw1,this._Wu1);var _dK1=_Nw1*this._1K1;var _eK1=_Nw1*this._2K1;_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*_dK1;_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*_eK1;}var _cJ1=new _vk1();_cJ1.x=_rl1(this._ZJ1,_vk1._Ck1(_DG1,_BG1))+this._0K1*_ap1-this.__J1*_9p1;_cJ1.y=_ap1-_9p1;if(this._FI1&&this._HI1!=_6z1._0I1){
var _dJ1;_dJ1=_rl1(this._Wu1,_vk1._Ck1(_DG1,_BG1))+this._2K1*_ap1-this._1K1*_9p1;var _9J1=new _Lk1(_cJ1.x,_cJ1.y,_dJ1);var _yS=this._zI1._Q3();var _fK1=this._3K1._1l1(_9J1._zk1());this._zI1._Vf(_fK1);if(this._HI1==_6z1._1I1){this._zI1.z=_Vl1(this._zI1.z,0.0);}else if(this._HI1==_6z1._2I1){this._zI1.z=_Tl1(this._zI1.z,0.0);}var __4=_vk1._Ck1(_cJ1._zk1(),_vk1.Multiply((this._zI1.z-_yS.z),new _vk1(this._3K1._0l1.x,this._3K1._0l1.y)));var _gK1=_vk1._Vf(this._3K1._4l1(__4),new _vk1(_yS.x,_yS.y));this._zI1.x=_gK1.x;
this._zI1.y=_gK1.y;_fK1=_Lk1._Ck1(this._zI1,_yS);var _ps1=_vk1._Vf(_vk1.Multiply(_fK1.x,this._ZJ1),_vk1.Multiply(_fK1.z,this._Wu1));var _dK1=_fK1.x*this.__J1+_fK1.y+_fK1.z*this._1K1;var _eK1=_fK1.x*this._0K1+_fK1.y+_fK1.z*this._2K1;_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*_dK1;_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*_eK1;}else {var _fK1=this._3K1._4l1(_cJ1._zk1());this._zI1.x+=_fK1.x;this._zI1.y+=_fK1.y;var _ps1=_vk1.Multiply(_fK1.x,this._ZJ1);var _dK1=_fK1.x*this.__J1+_fK1.y;var _eK1=_fK1.x*this._0K1+_fK1.y;
_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*_dK1;_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*_eK1;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_gH1:function(data){var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _bq1=_Gl1(_6J1,
_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _Xo=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,_cq1),_nz1),_bq1);var _bp=_Gl1(_6J1,this._UJ1);var _Je1=_sl1(_vk1._Vf(_Xo,_bq1),_bp);var _Ke1=_sl1(_cq1,_bp);var _hK1=_Gl1(_6J1,this._VJ1);var _Js=_sl1(_vk1._Vf(_Xo,_bq1),_hK1);var _Ks=_sl1(_cq1,_hK1);var _Nw1=new _Lk1();var _iK1=new _vk1();_iK1.x=_rl1(_hK1,_Xo);_iK1.y=_CG1-_AG1-this._yI1;var _jK1=_Ql1(_iK1.x);var _gJ1=_Ql1(_iK1.y);var active=false;var _kK1=0.0;if(this._FI1){var _QH1=_rl1(_bp,
_Xo);if(_Ql1(this._XJ1-this._WJ1)<2.0*_Qj1){_kK1=_Xl1(_QH1,-_Wj1,_Wj1);_jK1=_Vl1(_jK1,_Ql1(_QH1));active=true;}else if(_QH1<=this._WJ1){_kK1=_Xl1(_QH1-this._WJ1+_Qj1,-_Wj1,0.0);_jK1=_Vl1(_jK1,this._WJ1-_QH1);active=true;}else if(_QH1>=this._XJ1){_kK1=_Xl1(_QH1-this._XJ1-_Qj1,0.0,_Wj1);_jK1=_Vl1(_jK1,_QH1-this._XJ1);active=true;}}if(active){var _RG1=_yG1+_zG1+_vu1*_Js*_Js+_wu1*_Ks*_Ks;var _TG1=_vu1*_Js+_wu1*_Ks;var _9K1=_vu1*_Js*_Je1+_wu1*_Ks*_Ke1;var _SG1=_vu1+_wu1;if(_SG1==0.0){_SG1=1.0;}var _aK1=_vu1*_Je1+_wu1*_Ke1;
var _bK1=_yG1+_zG1+_vu1*_Je1*_Je1+_wu1*_Ke1*_Ke1;var _eG1=new _Zk1();_eG1._Oj.Set(_RG1,_TG1,_9K1);_eG1._6F.Set(_TG1,_SG1,_aK1);_eG1._0l1.Set(_9K1,_aK1,_bK1);var _Ml1=new _Lk1();_Ml1.x=_iK1.x;_Ml1.y=_iK1.y;_Ml1.z=_kK1;_Nw1=_eG1._1l1(_Ml1._zk1());}else {var _RG1=_yG1+_zG1+_vu1*_Js*_Js+_wu1*_Ks*_Ks;var _TG1=_vu1*_Js+_wu1*_Ks;var _SG1=_vu1+_wu1;if(_SG1==0.0){_SG1=1.0;}var _eG1=new _Nk1();_eG1._Oj.Set(_RG1,_TG1);_eG1._6F.Set(_TG1,_SG1);var _lK1=_eG1._Uk1(_iK1._zk1());_Nw1.x=_lK1.x;_Nw1.y=_lK1.y;_Nw1.z=0.0;}var _ps1=_vk1._Vf(_vk1.Multiply(_Nw1.x,
_hK1),_vk1.Multiply(_Nw1.z,_bp));var _dK1=_Nw1.x*_Js+_Nw1.y+_Nw1.z*_Je1;var _eK1=_Nw1.x*_Ks+_Nw1.y+_Nw1.z*_Ke1;_nz1._Ck1(_vk1.Multiply(_yG1,_ps1));_AG1-=_vu1*_dK1;_pz1._Vf(_vk1.Multiply(_zG1,_ps1));_CG1+=_wu1*_eK1;data._ny1[this._kF1].c._EI(_nz1);data._ny1[this._kF1]._05=_AG1;data._ny1[this._lF1].c._EI(_pz1);data._ny1[this._lF1]._05=_CG1;return _jK1<=_Qj1&&_gJ1<=_Rj1;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['localAnchorA']=this._wI1._Ik1();_Ik['localAnchorB']=this._xI1._Ik1();
_Ik['localAxisA']=this._UJ1._Ik1();_Ik['referenceAngle']=this._yI1;_Ik['enableLimit']=this._FI1;_Ik['lowerTranslation']=this._WJ1;_Ik['upperTranslation']=this._XJ1;_Ik['enableMotor']=this._GI1;_Ik['maxMotorForce']=this._YJ1;_Ik['motorSpeed']=this._EI1;return _Ik;}};_dI1._ej1(_6z1);function _mK1(){this.parent.call(this);this.type=_6z1._9I1;this._nI1=new _vk1();this._oI1=new _vk1();this._kJ1=0.0;this._nK1=0.0;Object.seal(this);}_mK1.prototype={_Bq1:function(_9A1,_aA1,anchor){this._bz1=_9A1;this._cz1=_aA1;
this._nI1._EI(this._bz1._Vw1(anchor));this._oI1._EI(this._cz1._Vw1(anchor));},_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._nI1._Jk1(data['localAnchorA']);this._oI1._Jk1(data['localAnchorB']);this._kJ1=data['maxForce'];this._nK1=data['maxTorque'];}};_mK1._ej1(_VH1);function _jI1(_gw1){this.parent.call(this,_gw1);this._wI1=_gw1._nI1._Q3();this._xI1=_gw1._oI1._Q3();this._oK1=new _vk1();this._pK1=0.0;this._oJ1=_gw1._kJ1;this._qK1=_gw1._nK1;this._kF1=0;this._lF1=0;
this._II1=new _vk1();this._JI1=new _vk1();this._KI1=new _vk1();this._LI1=new _vk1();this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;this._rK1=new _Nk1();this._sK1=0;}_jI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);},_nA1:function(){return this._8z1._Sw1(this._xI1);},_YH1:function(_fy1){return _vk1.Multiply(_fy1,this._oK1);},_ZH1:function(_fy1){return _fy1*this._pK1;},_RI1:function(){return this._wI1;},_SI1:function(){return this._xI1;},_wJ1:function(_Iw1){_Hj1(_lk1(_Iw1)&&_Iw1>=0.0);this._oJ1=_Iw1;
},_xJ1:function(){return this._oJ1;},_tK1:function(_Lw1){_Hj1(_lk1(_Lw1)&&_Lw1>=0.0);this._qK1=_Lw1;},_uK1:function(){return this._qK1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._KI1._EI(this._9z1._Qv1._il1);this._LI1._EI(this._8z1._Qv1._il1);this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _CG1=data._ny1[this._lF1]._05;
var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);this._II1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));this._JI1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _eG1=new _Nk1();_eG1._Oj.x=_yG1+_zG1+_vu1*this._II1.y*this._II1.y+_wu1*this._JI1.y*this._JI1.y;_eG1._Oj.y=-_vu1*this._II1.x*this._II1.y-_wu1*this._JI1.x*this._JI1.y;_eG1._6F.x=_eG1._Oj.y;_eG1._6F.y=_yG1+_zG1+_vu1*this._II1.x*this._II1.x+_wu1*this._JI1.x*this._JI1.x;
this._rK1=_eG1._Rk1();this._sK1=_vu1+_wu1;if(this._sK1>0.0){this._sK1=1.0/this._sK1;}if(data.step._jy1){this._oK1.Multiply(data.step._gy1);this._pK1*=data.step._gy1;var _ps1=new _vk1(this._oK1.x,this._oK1.y);_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*(_sl1(this._II1,_ps1)+this._pK1);_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*(_sl1(this._JI1,_ps1)+this._pK1);}else {this._oK1._wk1();this._pK1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);
data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var h=data.step._jv;{var _9J1=_ap1-_9p1;var _Nw1=-this._sK1*_9J1;var _aJ1=this._pK1;var _bJ1=h*this._qK1;this._pK1=_Xl1(this._pK1+_Nw1,-_bJ1,_bJ1);_Nw1=this._pK1-_aJ1;_9p1-=_vu1*_Nw1;_ap1+=_wu1*_Nw1;}{var _dJ1=_vk1._Vf(_DG1,_vk1._Ck1(_ul1(_ap1,this._JI1),
_vk1._Ck1(_BG1,_ul1(_9p1,this._II1))));var _vK1=_vl1(this._rK1,_dJ1)._zk1();var _wK1=this._oK1._Q3();this._oK1._Vf(_vK1);var _xK1=h*this._oJ1;if(this._oK1._Dk1()>_xK1*_xK1){this._oK1._Ek1();this._oK1.Multiply(_xK1);}_vK1=_vk1._Ck1(this._oK1,_wK1);_BG1._Ck1(_vk1.Multiply(_yG1,_vK1));_9p1-=_vu1*_sl1(this._II1,_vK1);_DG1._Vf(_vk1.Multiply(_zG1,_vK1));_ap1+=_wu1*_sl1(this._JI1,_vK1);}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;
},_gH1:function(data){return true;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['localAnchorA']=this._wI1._Ik1();_Ik['localAnchorB']=this._xI1._Ik1();_Ik['maxForce']=this._oJ1;_Ik['maxTorque']=this._qK1;return _Ik;}};_jI1._ej1(_6z1);function _yK1(){this.parent.call(this);this.type=_6z1._8I1;this._nI1=new _vk1(0.0,0.0);this._oI1=new _vk1(0.0,0.0);this._pI1=0.0;this._lJ1=0.0;this._mJ1=0.0;Object.seal(this);}_yK1.prototype={_Bq1:function(_9A1,_aA1,anchor){this._bz1=_9A1;
this._cz1=_aA1;this._nI1._EI(this._bz1._Vw1(anchor));this._oI1._EI(this._cz1._Vw1(anchor));this._pI1=this._cz1._cl1()-this._bz1._cl1();},_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._nI1._Jk1(data['localAnchorA']);this._oI1._Jk1(data['localAnchorB']);this._pI1=data['referenceAngle'];this._lJ1=data['frequencyHz'];this._mJ1=data['dampingRatio'];}};_yK1._ej1(_VH1);function _iI1(_gw1){this.parent.call(this,_gw1);this._GJ1=0;this._sJ1=0;this._kF1=0;this._lF1=0;
this._II1=new _vk1();this._JI1=new _vk1();this._KI1=new _vk1();this._LI1=new _vk1();this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;this._3w1=new _Zk1();this._wI1=_gw1._nI1._Q3();this._xI1=_gw1._oI1._Q3();this._yI1=_gw1._pI1;this._pJ1=_gw1._lJ1;this._qJ1=_gw1._mJ1;this._zI1=new _Lk1();}_iI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);},_nA1:function(){return this._8z1._Sw1(this._xI1);},_YH1:function(_fy1){var _ps1=new _vk1(this._zI1.x,this._zI1.y);return _vk1.Multiply(_fy1,_ps1);},_ZH1:function(_fy1){
return _fy1*this._zI1.z;},_RI1:function(){return this._wI1;},_SI1:function(){return this._xI1;},_TI1:function(){return this._yI1;},_yJ1:function(_zJ1){this._pJ1=_zJ1;},_AJ1:function(){return this._pJ1;},_BJ1:function(ratio){this._qJ1=ratio;},_CJ1:function(){return this._qJ1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._KI1._EI(this._9z1._Qv1._il1);this._LI1._EI(this._8z1._Qv1._il1);this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;
var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);this._II1._EI(_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1)));this._JI1._EI(_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1)));var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _eG1=new _Zk1();_eG1._Oj.x=_yG1+_zG1+this._II1.y*this._II1.y*_vu1+this._JI1.y*this._JI1.y*_wu1;
_eG1._6F.x=-this._II1.y*this._II1.x*_vu1-this._JI1.y*this._JI1.x*_wu1;_eG1._0l1.x=-this._II1.y*_vu1-this._JI1.y*_wu1;_eG1._Oj.y=_eG1._6F.x;_eG1._6F.y=_yG1+_zG1+this._II1.x*this._II1.x*_vu1+this._JI1.x*this._JI1.x*_wu1;_eG1._0l1.y=this._II1.x*_vu1+this._JI1.x*_wu1;_eG1._Oj.z=_eG1._0l1.x;_eG1._6F.z=_eG1._0l1.y;_eG1._0l1.z=_vu1+_wu1;if(this._pJ1>0.0){_eG1._5l1(this._3w1);var _zK1=_vu1+_wu1;var _e7=_zK1>0.0?1.0/_zK1:0.0;var _Ml1=_CG1-_AG1-this._yI1;var _T01=2.0*_Lj1*this._pJ1;var _Xo=2.0*_e7*this._qJ1*_T01;
var _0l=_e7*_T01*_T01;var h=data.step._jv;this._sJ1=h*(_Xo+h*_0l);this._sJ1=this._sJ1!=0.0?1.0/this._sJ1:0.0;this._GJ1=_Ml1*h*_0l*this._sJ1;_zK1+=this._sJ1;this._3w1._0l1.z=_zK1!=0.0?1.0/_zK1:0.0;}else {_eG1._7l1(this._3w1);this._sJ1=0.0;this._GJ1=0.0;}if(data.step._jy1){this._zI1.Multiply(data.step._gy1);var _ps1=new _vk1(this._zI1.x,this._zI1.y);_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*(_sl1(this._II1,_ps1)+this._zI1.z);_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*(_sl1(this._JI1,_ps1)+this._zI1.z);
}else {this._zI1._wk1();}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;if(this._pJ1>0.0){var _dJ1=_ap1-_9p1;var _vK1=-this._3w1._0l1.z*(_dJ1+this._GJ1+this._sJ1*this._zI1.z);this._zI1.z+=_vK1;_9p1-=_vu1*_vK1;
_ap1+=_wu1*_vK1;var _cJ1=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_DG1,_ul1(_ap1,this._JI1)),_BG1),_ul1(_9p1,this._II1));var _lK1=_Cl1(this._3w1,_cJ1)._zk1();this._zI1.x+=_lK1.x;this._zI1.y+=_lK1.y;var _ps1=_lK1._Q3();_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*_sl1(this._II1,_ps1);_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*_sl1(this._JI1,_ps1);}else {var _cJ1=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_DG1,_ul1(_ap1,this._JI1)),_BG1),_ul1(_9p1,this._II1));var _dJ1=_ap1-_9p1;var _9J1=new _Lk1(_cJ1.x,_cJ1.y,_dJ1);var _Nw1=_Bl1(this._3w1,
_9J1)._zk1();this._zI1._Vf(_Nw1);var _ps1=new _vk1(_Nw1.x,_Nw1.y);_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*(_sl1(this._II1,_ps1)+_Nw1.z);_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*(_sl1(this._JI1,_ps1)+_Nw1.z);}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_gH1:function(data){var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;
var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _hJ1,_gJ1;var _eG1=new _Zk1();_eG1._Oj.x=_yG1+_zG1+_bq1.y*_bq1.y*_vu1+_cq1.y*_cq1.y*_wu1;_eG1._6F.x=-_bq1.y*_bq1.x*_vu1-_cq1.y*_cq1.x*_wu1;_eG1._0l1.x=-_bq1.y*_vu1-_cq1.y*_wu1;_eG1._Oj.y=_eG1._6F.x;_eG1._6F.y=_yG1+_zG1+_bq1.x*_bq1.x*_vu1+_cq1.x*_cq1.x*_wu1;_eG1._0l1.y=_bq1.x*_vu1+_cq1.x*_wu1;
_eG1._Oj.z=_eG1._0l1.x;_eG1._6F.z=_eG1._0l1.y;_eG1._0l1.z=_vu1+_wu1;if(this._pJ1>0.0){var _iK1=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,_cq1),_nz1),_bq1);_hJ1=_iK1.Length();_gJ1=0.0;var _ps1=_eG1._4l1(_iK1)._zk1();_nz1._Ck1(_vk1.Multiply(_yG1,_ps1));_AG1-=_vu1*_sl1(_bq1,_ps1);_pz1._Vf(_vk1.Multiply(_zG1,_ps1));_CG1+=_wu1*_sl1(_cq1,_ps1);}else {var _iK1=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,_cq1),_nz1),_bq1);var _kK1=_CG1-_AG1-this._yI1;_hJ1=_iK1.Length();_gJ1=_Ql1(_kK1);var _Ml1=new _Lk1(_iK1.x,_iK1.y,_kK1);var _Nw1=_eG1._1l1(_Ml1)._zk1();
var _ps1=new _vk1(_Nw1.x,_Nw1.y);_nz1._Ck1(_vk1.Multiply(_yG1,_ps1));_AG1-=_vu1*(_sl1(_bq1,_ps1)+_Nw1.z);_pz1._Vf(_vk1.Multiply(_zG1,_ps1));_CG1+=_wu1*(_sl1(_cq1,_ps1)+_Nw1.z);}data._ny1[this._kF1].c._EI(_nz1);data._ny1[this._kF1]._05=_AG1;data._ny1[this._lF1].c._EI(_pz1);data._ny1[this._lF1]._05=_CG1;return _hJ1<=_Qj1&&_gJ1<=_Rj1;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['localAnchorA']=this._wI1._Ik1();_Ik['localAnchorB']=this._xI1._Ik1();_Ik['referenceAngle']=this._yI1;
_Ik['frequencyHz']=this._pJ1;_Ik['dampingRatio']=this._qJ1;return _Ik;}};_iI1._ej1(_6z1);function _AK1(){this.parent.call(this);this.type=_6z1._7I1;this._nI1=new _vk1();this._oI1=new _vk1();this._QJ1=new _vk1(1.0,0.0);this._vI1=false;this._sI1=0.0;this._tI1=0.0;this._lJ1=2.0;this._mJ1=0.7;Object.seal(this);}_AK1.prototype={_Bq1:function(_9A1,_aA1,anchor,_bp){this._bz1=_9A1;this._cz1=_aA1;this._nI1._EI(this._bz1._Vw1(anchor));this._oI1._EI(this._cz1._Vw1(anchor));this._QJ1._EI(this._bz1._Xw1(_bp));},_Jk1:function(data,
_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._nI1._Jk1(data['localAnchorA']);this._oI1._Jk1(data['localAnchorB']);this._QJ1._Jk1(data['localAxisA']);this._vI1=data['enableMotor'];this._sI1=data['maxMotorTorque'];this._tI1=data['motorSpeed'];this._lJ1=data['frequencyHz'];this._mJ1=data['dampingRatio'];}};_AK1._ej1(_VH1);function _hI1(_gw1){this.parent.call(this,_gw1);this._kF1=0;this._lF1=0;this._KI1=new _vk1();this._LI1=new _vk1();this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;
this._wI1=_gw1._nI1._Q3();this._xI1=_gw1._oI1._Q3();this._UJ1=_gw1._QJ1._Q3();this._VJ1=_ul1(1.0,this._UJ1);this._3w1=0.0;this._zI1=0.0;this._QI1=0.0;this._AI1=0.0;this._BK1=0.0;this._CK1=0.0;this._DI1=_gw1._sI1;this._EI1=_gw1._tI1;this._GI1=_gw1._vI1;this._pJ1=_gw1._lJ1;this._qJ1=_gw1._mJ1;this._GJ1=0.0;this._sJ1=0.0;this._DK1=new _vk1();this._EK1=new _vk1();this._FK1=this._GK1=0;this._HK1=this._IK1=0;}_hI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);},_nA1:function(){return this._8z1._Sw1(this._xI1);
},_YH1:function(_fy1){return _vk1.Multiply(_fy1,_vk1._Vf(_vk1.Multiply(this._zI1,this._EK1),_vk1.Multiply(this._CK1,this._DK1)));},_ZH1:function(_fy1){return _fy1*this._AI1;},_RI1:function(){return this._wI1;},_SI1:function(){return this._xI1;},_4K1:function(){return this._UJ1;},_5K1:function(){var _9A1=this._9z1;var _aA1=this._8z1;var _qp1=_9A1._Sw1(this._wI1);var _rp1=_aA1._Sw1(this._xI1);var _Xo=_vk1._Ck1(_rp1,_qp1);var _bp=_9A1._Tw1(this._UJ1);var _QH1=_rl1(_Xo,_bp);return _QH1;},_VI1:function(){var _9p1=this._9z1._Wv1;
var _ap1=this._8z1._Wv1;return _ap1-_9p1;},_0J1:function(){return this._GI1;},_101:function(_bx1){this._9z1._QZ(true);this._8z1._QZ(true);this._GI1=_bx1;},_1J1:function(speed){this._9z1._QZ(true);this._8z1._QZ(true);this._EI1=speed;},_2J1:function(){return this._EI1;},_3J1:function(_Lw1){this._9z1._QZ(true);this._8z1._QZ(true);this._DI1=_Lw1;},_4J1:function(){return this._DI1;},_5J1:function(_fy1){return _fy1*this._AI1;},_JK1:function(_zJ1){this._pJ1=_zJ1;},_KK1:function(){return this._pJ1;},_LK1:function(ratio){
this._qJ1=ratio;},_MK1:function(){return this._qJ1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._KI1._EI(this._9z1._Qv1._il1);this._LI1._EI(this._8z1._Qv1._il1);this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _pz1=data._ny1[this._lF1].c._Q3();
var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _Xo=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,_cq1),_nz1),_bq1);{this._EK1._EI(_Gl1(_6J1,this._VJ1));this._HK1=_sl1(_vk1._Vf(_Xo,_bq1),this._EK1);this._IK1=_sl1(_cq1,this._EK1);this._3w1=_yG1+_zG1+_vu1*this._HK1*this._HK1+_wu1*this._IK1*this._IK1;if(this._3w1>0.0){
this._3w1=1.0/this._3w1;}}this._BK1=0.0;this._GJ1=0.0;this._sJ1=0.0;if(this._pJ1>0.0){this._DK1._EI(_Gl1(_6J1,this._UJ1));this._FK1=_sl1(_vk1._Vf(_Xo,_bq1),this._DK1);this._GK1=_sl1(_cq1,this._DK1);var _MJ1=_yG1+_zG1+_vu1*this._FK1*this._FK1+_wu1*this._GK1*this._GK1;if(_MJ1>0.0){this._BK1=1.0/_MJ1;var _Ml1=_rl1(_Xo,this._DK1);var _T01=2.0*_Lj1*this._pJ1;var _Kv=2.0*this._BK1*this._qJ1*_T01;var _0l=this._BK1*_T01*_T01;var h=data.step._jv;this._sJ1=h*(_Kv+h*_0l);if(this._sJ1>0.0){this._sJ1=1.0/this._sJ1;
}this._GJ1=_Ml1*h*_0l*this._sJ1;this._BK1=_MJ1+this._sJ1;if(this._BK1>0.0){this._BK1=1.0/this._BK1;}}}else {this._CK1=0.0;}if(this._GI1){this._QI1=_vu1+_wu1;if(this._QI1>0.0){this._QI1=1.0/this._QI1;}}else {this._QI1=0.0;this._AI1=0.0;}if(data.step._jy1){this._zI1*=data.step._gy1;this._CK1*=data.step._gy1;this._AI1*=data.step._gy1;var _ps1=_vk1._Vf(_vk1.Multiply(this._zI1,this._EK1),_vk1.Multiply(this._CK1,this._DK1));var _dK1=this._zI1*this._HK1+this._CK1*this._FK1+this._AI1;var _eK1=this._zI1*this._IK1+this._CK1*this._GK1+this._AI1;
_BG1._Ck1(_vk1.Multiply(this._MI1,_ps1));_9p1-=this._OI1*_dK1;_DG1._Vf(_vk1.Multiply(this._NI1,_ps1));_ap1+=this._PI1*_eK1;}else {this._zI1=0.0;this._CK1=0.0;this._AI1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;
{var _9J1=_rl1(this._DK1,_vk1._Ck1(_DG1,_BG1))+this._GK1*_ap1-this._FK1*_9p1;var _Nw1=-this._BK1*(_9J1+this._GJ1+this._sJ1*this._CK1);this._CK1+=_Nw1;var _ps1=_vk1.Multiply(_Nw1,this._DK1);var _dK1=_Nw1*this._FK1;var _eK1=_Nw1*this._GK1;_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*_dK1;_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*_eK1;}{var _9J1=_ap1-_9p1-this._EI1;var _Nw1=-this._QI1*_9J1;var _aJ1=this._AI1;var _bJ1=data.step._jv*this._DI1;this._AI1=_Xl1(this._AI1+_Nw1,-_bJ1,_bJ1);_Nw1=this._AI1-_aJ1;
_9p1-=_vu1*_Nw1;_ap1+=_wu1*_Nw1;}{var _9J1=_rl1(this._EK1,_vk1._Ck1(_DG1,_BG1))+this._IK1*_ap1-this._HK1*_9p1;var _Nw1=-this._3w1*_9J1;this._zI1+=_Nw1;var _ps1=_vk1.Multiply(_Nw1,this._EK1);var _dK1=_Nw1*this._HK1;var _eK1=_Nw1*this._IK1;_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*_dK1;_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*_eK1;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_gH1:function(data){var _nz1=data._ny1[this._kF1].c._Q3();
var _AG1=data._ny1[this._kF1]._05;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _Xo=_vk1._Vf(_vk1._Ck1(_pz1,_nz1),_vk1._Ck1(_cq1,_bq1));var ay=_Gl1(_6J1,this._VJ1);var _NK1=_sl1(_vk1._Vf(_Xo,_bq1),ay);var _OK1=_sl1(_cq1,ay);var _Ml1=_rl1(_Xo,ay);var _0l=this._MI1+this._NI1+this._OI1*this._HK1*this._HK1+this._PI1*this._IK1*this._IK1;var _Nw1;
if(_0l!=0.0){_Nw1=-_Ml1/_0l;}else {_Nw1=0.0;}var _ps1=_vk1.Multiply(_Nw1,ay);var _dK1=_Nw1*_NK1;var _eK1=_Nw1*_OK1;_nz1._Ck1(_vk1.Multiply(this._MI1,_ps1));_AG1-=this._OI1*_dK1;_pz1._Vf(_vk1.Multiply(this._NI1,_ps1));_CG1+=this._PI1*_eK1;data._ny1[this._kF1].c._EI(_nz1);data._ny1[this._kF1]._05=_AG1;data._ny1[this._lF1].c._EI(_pz1);data._ny1[this._lF1]._05=_CG1;return _Ql1(_Ml1)<=_Qj1;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['localAnchorA']=this._wI1._Ik1();_Ik['localAnchorB']=this._xI1._Ik1();
_Ik['localAxisA']=this._PK1._Ik1();_Ik['enableMotor']=this._GI1;_Ik['maxMotorTorque']=this._DI1;_Ik['motorSpeed']=this._EI1;_Ik['frequencyHz']=this._pJ1;_Ik['dampingRatio']=this._qJ1;return _Ik;}};_hI1._ej1(_6z1);function _QK1(){this.parent.call(this);this.type=_6z1._6I1;this._RK1=null;this._SK1=null;this.ratio=1.0;Object.seal(this);}_QK1.prototype={_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._RK1=data['joint1'];this._SK1=data['joint2'];this.ratio=data['ratio'];
}};_QK1._ej1(_VH1);function _gI1(_gw1){this.parent.call(this,_gw1);this._TK1=_gw1._RK1;this._UK1=_gw1._SK1;this._VK1=this._TK1._8g1();this._WK1=this._UK1._8g1();_Hj1(this._VK1==_6z1._4I1||this._VK1==_6z1._5I1);_Hj1(this._WK1==_6z1._4I1||this._WK1==_6z1._5I1);var _XK1,_YK1;this._ZK1=this._TK1._kA1();this._9z1=this._TK1._lA1();var _Cq1=this._9z1._Ls1;var _AG1=this._9z1._Qv1._05;var __K1=this._ZK1._Ls1;var _0L1=this._ZK1._Qv1._05;this._wI1=new _vk1();this._xI1=new _vk1();this._1L1=new _vk1();this._2L1=new _vk1();
this._3L1=new _vk1();this._4L1=new _vk1();if(this._VK1==_6z1._4I1){var _5L1=_gw1._RK1;this._1L1._EI(_5L1._wI1);this._wI1._EI(_5L1._xI1);this._6L1=_5L1._yI1;this._3L1._wk1();_XK1=_AG1-_0L1-this._6L1;}else {var _7L1=_gw1._RK1;this._1L1._EI(_7L1._wI1);this._wI1._EI(_7L1._xI1);this._6L1=_7L1._yI1;this._3L1._EI(_7L1._UJ1);var _8L1=this._1L1;var _qp1=_Hl1(__K1.q,_vk1._Vf(_Gl1(_Cq1.q,this._wI1),_vk1._Ck1(_Cq1._2z,__K1._2z)));_XK1=_rl1(_vk1._Ck1(_qp1,_8L1),this._3L1);}this._9L1=this._UK1._kA1();this._8z1=this._UK1._lA1();
var _Eq1=this._8z1._Ls1;var _CG1=this._8z1._Qv1._05;var _aL1=this._9L1._Ls1;var _bL1=this._9L1._Qv1._05;if(this._WK1==_6z1._4I1){var _5L1=_gw1._SK1;this._2L1._EI(_5L1._wI1);this._xI1._EI(_5L1._xI1);this._cL1=_5L1._yI1;this._4L1._wk1();_YK1=_CG1-_bL1-this._cL1;}else {var _7L1=_gw1._SK1;this._2L1._EI(_7L1._wI1);this._xI1._EI(_7L1._xI1);this._cL1=_7L1._yI1;this._4L1._EI(_7L1._UJ1);var _dL1=this._2L1;var _rp1=_Hl1(_aL1.q,_vk1._Vf(_Gl1(_Eq1.q,this._xI1),_vk1._Ck1(_Eq1._2z,_aL1._2z)));_YK1=_rl1(_vk1._Ck1(_rp1,
_dL1),this._4L1);}this._eL1=_gw1.ratio;this._fL1=_XK1+this._eL1*_YK1;this._zI1=0.0;this._kF1=this._lF1=this._gL1=this._hL1=0;this._iL1=new _vk1();this._jL1=new _vk1();this._kL1=new _vk1();this._lL1=new _vk1();this._mL1=this._nL1=this._oL1=this._pL1=0;this._qL1=this._rL1=this._sL1=this._tL1=0;this._uL1=new _vk1(),this._vL1=new _vk1();this._wL1=this._xL1=this._yL1=this._zL1=0;this._3w1=0;}_gI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);},_nA1:function(){return this._8z1._Sw1(this._xI1);},
_YH1:function(_fy1){var _ps1=_vk1.Multiply(this._zI1,this._uL1);return _vk1.Multiply(_fy1,_ps1);},_ZH1:function(_fy1){var _AL1=this._zI1*this._wL1;return _fy1*_AL1;},_BL1:function(){return this._TK1;},_CL1:function(){return this._UK1;},_DL1:function(ratio){_Hj1(_lk1(ratio));this._eL1=ratio;},_EL1:function(){return this._eL1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._gL1=this._ZK1._Hv1;this._hL1=this._9L1._Hv1;this._iL1._EI(this._9z1._Qv1._il1);this._jL1._EI(this._8z1._Qv1._il1);
this._kL1._EI(this._ZK1._Qv1._il1);this._lL1._EI(this._9L1._Qv1._il1);this._mL1=this._9z1._4w1;this._nL1=this._8z1._4w1;this._oL1=this._ZK1._4w1;this._pL1=this._9L1._4w1;this._qL1=this._9z1._6w1;this._rL1=this._8z1._6w1;this._sL1=this._ZK1._6w1;this._tL1=this._9L1._6w1;var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _0L1=data._ny1[this._gL1]._05;
var _FL1=data._oy1[this._gL1]._H5._Q3();var _GL1=data._oy1[this._gL1].w;var _bL1=data._ny1[this._hL1]._05;var _HL1=data._oy1[this._hL1]._H5._Q3();var _IL1=data._oy1[this._hL1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1),_JL1=new _bl1(_0L1),_KL1=new _bl1(_bL1);this._3w1=0.0;if(this._VK1==_6z1._4I1){this._uL1._wk1();this._wL1=1.0;this._yL1=1.0;this._3w1+=this._qL1+this._sL1;}else {var _G5=_Gl1(_JL1,this._3L1);var _LL1=_Gl1(_JL1,_vk1._Ck1(this._1L1,this._kL1));var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._iL1));
this._uL1._EI(_G5);this._yL1=_sl1(_LL1,_G5);this._wL1=_sl1(_bq1,_G5);this._3w1+=this._oL1+this._mL1+this._sL1*this._yL1*this._yL1+this._qL1*this._wL1*this._wL1;}if(this._WK1==_6z1._4I1){this._vL1._wk1();this._xL1=this._eL1;this._zL1=this._eL1;this._3w1+=this._eL1*this._eL1*(this._rL1+this._tL1);}else {var _G5=_Gl1(_KL1,this._4L1);var _ML1=_Gl1(_KL1,_vk1._Ck1(this._2L1,this._lL1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._jL1));this._vL1._EI(_vk1.Multiply(this._eL1,_G5));this._zL1=this._eL1*_sl1(_ML1,
_G5);this._xL1=this._eL1*_sl1(_cq1,_G5);this._3w1+=this._eL1*this._eL1*(this._pL1+this._nL1)+this._tL1*this._zL1*this._zL1+this._rL1*this._xL1*this._xL1;}this._3w1=this._3w1>0.0?1.0/this._3w1:0.0;if(data.step._jy1){_BG1._Vf(_vk1.Multiply((this._mL1*this._zI1),this._uL1));_9p1+=this._qL1*this._zI1*this._wL1;_DG1._Vf(_vk1.Multiply((this._nL1*this._zI1),this._vL1));_ap1+=this._rL1*this._zI1*this._xL1;_FL1._Ck1(_vk1.Multiply((this._oL1*this._zI1),this._uL1));_GL1-=this._sL1*this._zI1*this._yL1;_HL1._Ck1(_vk1.Multiply((this._pL1*this._zI1),
this._vL1));_IL1-=this._tL1*this._zI1*this._zL1;}else {this._zI1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;data._oy1[this._gL1]._H5._EI(_FL1);data._oy1[this._gL1].w=_GL1;data._oy1[this._hL1]._H5._EI(_HL1);data._oy1[this._hL1].w=_IL1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _FL1=data._oy1[this._gL1]._H5._Q3();
var _GL1=data._oy1[this._gL1].w;var _HL1=data._oy1[this._hL1]._H5._Q3();var _IL1=data._oy1[this._hL1].w;var _9J1=_rl1(this._uL1,_vk1._Ck1(_BG1,_FL1))+_rl1(this._vL1,_vk1._Ck1(_DG1,_HL1));_9J1+=(this._wL1*_9p1-this._yL1*_GL1)+(this._xL1*_ap1-this._zL1*_IL1);var _Nw1=-this._3w1*_9J1;this._zI1+=_Nw1;_BG1._Vf(_vk1.Multiply((this._mL1*_Nw1),this._uL1));_9p1+=this._qL1*_Nw1*this._wL1;_DG1._Vf(_vk1.Multiply((this._nL1*_Nw1),this._vL1));_ap1+=this._rL1*_Nw1*this._xL1;_FL1._Ck1(_vk1.Multiply((this._oL1*_Nw1),
this._uL1));_GL1-=this._sL1*_Nw1*this._yL1;_HL1._Ck1(_vk1.Multiply((this._pL1*_Nw1),this._vL1));_IL1-=this._tL1*_Nw1*this._zL1;data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;data._oy1[this._gL1]._H5._EI(_FL1);data._oy1[this._gL1].w=_GL1;data._oy1[this._hL1]._H5._EI(_HL1);data._oy1[this._hL1].w=_IL1;},_gH1:function(data){var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _pz1=data._ny1[this._lF1].c._Q3();
var _CG1=data._ny1[this._lF1]._05;var _NL1=data._ny1[this._gL1].c._Q3();var _0L1=data._ny1[this._gL1]._05;var _OL1=data._ny1[this._hL1].c._Q3();var _bL1=data._ny1[this._hL1]._05;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1),_JL1=new _bl1(_0L1),_KL1=new _bl1(_bL1);var _jK1=0.0;var _XK1,_YK1;var _PL1=new _vk1(),_QL1=new _vk1();var _RL1,_SL1,_TL1,_UL1;var _Am1=0.0;if(this._VK1==_6z1._4I1){_PL1._wk1();_RL1=1.0;_TL1=1.0;_Am1+=this._qL1+this._sL1;_XK1=_AG1-_0L1-this._6L1;}else {var _G5=_Gl1(_JL1,this._3L1);var _LL1=_Gl1(_JL1,
_vk1._Ck1(this._1L1,this._kL1));var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._iL1));_PL1._EI(_G5);_TL1=_sl1(_LL1,_G5);_RL1=_sl1(_bq1,_G5);_Am1+=this._oL1+this._mL1+this._sL1*_TL1*_TL1+this._qL1*_RL1*_RL1;var _8L1=_vk1._Ck1(this._1L1,this._kL1);var _qp1=_Hl1(_JL1,_vk1._Vf(_bq1,_vk1._Ck1(_nz1,_NL1)));_XK1=_rl1(_vk1._Ck1(_qp1,_8L1),this._3L1);}if(this._WK1==_6z1._4I1){_QL1._wk1();_SL1=this._eL1;_UL1=this._eL1;_Am1+=this._eL1*this._eL1*(this._rL1+this._tL1);_YK1=_CG1-_bL1-this._cL1;}else {var _G5=_Gl1(_KL1,
this._4L1);var _ML1=_Gl1(_KL1,_vk1._Ck1(this._2L1,this._lL1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._jL1));_QL1._EI(_vk1.Multiply(this._eL1,_G5));_UL1=this._eL1*_sl1(_ML1,_G5);_SL1=this._eL1*_sl1(_cq1,_G5);_Am1+=this._eL1*this._eL1*(this._pL1+this._nL1)+this._tL1*_UL1*_UL1+this._rL1*_SL1*_SL1;var _dL1=_vk1._Ck1(this._2L1,this._lL1);var _rp1=_Hl1(_KL1,_vk1._Vf(_cq1,_vk1._Ck1(_pz1,_OL1)));_YK1=_rl1(_vk1._Ck1(_rp1,_dL1),this._4L1);}var _Ml1=(_XK1+this._eL1*_YK1)-this._fL1;var _Nw1=0.0;if(_Am1>0.0){
_Nw1=-_Ml1/_Am1;}_nz1._Vf(_vk1.Multiply(this._mL1,_vk1.Multiply(_Nw1,_PL1)));_AG1+=this._qL1*_Nw1*_RL1;_pz1._Vf(_vk1.Multiply(this._nL1,_vk1.Multiply(_Nw1,_QL1)));_CG1+=this._rL1*_Nw1*_SL1;_NL1._Ck1(_vk1.Multiply(this._oL1,_vk1.Multiply(_Nw1,_PL1)));_0L1-=this._sL1*_Nw1*_TL1;_OL1._Ck1(_vk1.Multiply(this._pL1,_vk1.Multiply(_Nw1,_QL1)));_bL1-=this._tL1*_Nw1*_UL1;data._ny1[this._kF1].c._EI(_nz1);data._ny1[this._kF1]._05=_AG1;data._ny1[this._lF1].c._EI(_pz1);data._ny1[this._lF1]._05=_CG1;data._ny1[this._gL1].c._EI(_NL1);
data._ny1[this._gL1]._05=_0L1;data._ny1[this._hL1].c._EI(_OL1);data._ny1[this._hL1]._05=_bL1;return _jK1<_Qj1;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['joint1']=this._TK1._VL1;_Ik['joint2']=this._UK1._VL1;_Ik['ratio']=this._eL1;return _Ik;}};_gI1._ej1(_6z1);function _WL1(){this.parent.call(this);this.type=_6z1._uA1;this._XL1=new _vk1();this._YL1=0.0;this._kJ1=1.0;this._nK1=1.0;this._ZL1=0.3;Object.seal(this);}_WL1.prototype={_Bq1:function(_9A1,_aA1){this._bz1=_9A1;
this._cz1=_aA1;var __L1=this._cz1._4Z();this._XL1._EI(this._bz1._Vw1(__L1));var _0M1=this._bz1._cl1();var _1M1=this._cz1._cl1();this._YL1=_1M1-_0M1;},_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._XL1._Jk1(data['linearOffset']);this._YL1=data['angularOffset'];this._kJ1=data['maxForce'];this._nK1=data['maxTorque'];this._ZL1=data['correctionFactor'];}};_WL1._ej1(_VH1);function _lI1(_gw1){this.parent.call(this,_gw1);this._2M1=_gw1._XL1._Q3();this._3M1=_gw1._YL1;
this._oK1=new _vk1();this._pK1=0.0;this._oJ1=_gw1._kJ1;this._qK1=_gw1._nK1;this._4M1=_gw1._ZL1;this._kF1=0;this._lF1=0;this._II1=new _vk1();this._JI1=new _vk1();this._KI1=new _vk1();this._LI1=new _vk1();this._5M1=new _vk1();this._6M1=0;this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;this._rK1=new _Nk1();this._sK1=0;}_lI1.prototype={_mA1:function(){return this._9z1._4Z();},_nA1:function(){return this._8z1._4Z();},_YH1:function(_fy1){return _vk1.Multiply(_fy1,this._oK1);},_ZH1:function(_fy1){return _fy1*this._pK1;
},_7M1:function(_XL1){if(_XL1.x!=this._2M1.x||_XL1.y!=this._2M1.y){this._9z1._QZ(true);this._8z1._QZ(true);this._2M1._EI(_XL1);}},_wA1:function(){return this._2M1;},_8M1:function(_YL1){if(_YL1!=this._3M1){this._9z1._QZ(true);this._8z1._QZ(true);this._3M1=_YL1;}},_9M1:function(){return this._3M1;},_wJ1:function(_Iw1){_Hj1(_lk1(_Iw1)&&_Iw1>=0.0);this._oJ1=_Iw1;},_xJ1:function(){return this._oJ1;},_tK1:function(_Lw1){_Hj1(_lk1(_Lw1)&&_Lw1>=0.0);this._qK1=_Lw1;},_uK1:function(){return this._qK1;},_aM1:function(factor){
_Hj1(_lk1(factor)&&0.0<=factor&&factor<=1.0);this._4M1=factor;},_bM1:function(){return this._4M1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._KI1._EI(this._9z1._Qv1._il1);this._LI1._EI(this._8z1._Qv1._il1);this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _pz1=data._ny1[this._lF1].c._Q3();
var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);this._II1._EI(_Gl1(_6J1,this._KI1._zk1()));this._JI1._EI(_Gl1(_7J1,this._LI1._zk1()));var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var _eG1=new _Nk1();_eG1._Oj.x=_yG1+_zG1+_vu1*this._II1.y*this._II1.y+_wu1*this._JI1.y*this._JI1.y;_eG1._Oj.y=-_vu1*this._II1.x*this._II1.y-_wu1*this._JI1.x*this._JI1.y;_eG1._6F.x=_eG1._Oj.y;_eG1._6F.y=_yG1+_zG1+_vu1*this._II1.x*this._II1.x+_wu1*this._JI1.x*this._JI1.x;
this._rK1._EI(_eG1._Rk1());this._sK1=_vu1+_wu1;if(this._sK1>0.0){this._sK1=1.0/this._sK1;}this._5M1.x=_pz1.x+this._JI1.x-_nz1.x-this._II1.x-(_6J1.c*this._2M1.x-_6J1.__h*this._2M1.y);this._5M1.y=_pz1.y+this._JI1.y-_nz1.y-this._II1.y-(_6J1.__h*this._2M1.x+_6J1.c*this._2M1.y);this._6M1=_CG1-_AG1-this._3M1;if(data.step._jy1){this._oK1.Multiply(data.step._gy1);this._pK1*=data.step._gy1;var _ps1=new _vk1(this._oK1.x,this._oK1.y);_BG1._Ck1(_vk1.Multiply(_yG1,_ps1));_9p1-=_vu1*(_sl1(this._II1,_ps1)+this._pK1);
_DG1._Vf(_vk1.Multiply(_zG1,_ps1));_ap1+=_wu1*(_sl1(this._JI1,_ps1)+this._pK1);}else {this._oK1._wk1();this._pK1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _yG1=this._MI1,_zG1=this._NI1;var _vu1=this._OI1,_wu1=this._PI1;var h=data.step._jv;var _cM1=data.step._fy1;
{var _9J1=_ap1-_9p1+_cM1*this._4M1*this._6M1;var _Nw1=-this._sK1*_9J1;var _aJ1=this._pK1;var _bJ1=h*this._qK1;this._pK1=_Xl1(this._pK1+_Nw1,-_bJ1,_bJ1);_Nw1=this._pK1-_aJ1;_9p1-=_vu1*_Nw1;_ap1+=_wu1*_Nw1;}{var _9J1=new _vk1(_DG1.x+(-_ap1*this._JI1.x)-_BG1.x-(-_9p1*this._II1.x)+_cM1*this._4M1*this._5M1.x,_DG1.y+(_ap1*this._JI1.y)-_BG1.y-(_9p1*this._II1.y)+_cM1*this._4M1*this._5M1.y);var _Nw1=_vl1(this._rK1,_9J1)._zk1();var _aJ1=this._oK1._Q3();this._oK1._Vf(_Nw1);var _bJ1=h*this._oJ1;if(this._oK1._Dk1()>_bJ1*_bJ1){
this._oK1._Ek1();this._oK1.Multiply(_bJ1);}_Nw1._EI(_vk1._Ck1(this._oK1,_aJ1));_BG1._Ck1(_vk1.Multiply(_yG1,_Nw1));_9p1-=_vu1*_sl1(this._II1,_Nw1);_DG1._Vf(_vk1.Multiply(_zG1,_Nw1));_ap1+=_wu1*_sl1(this._JI1,_Nw1);}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_gH1:function(data){return true;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['linearOffset']=this._2M1._Ik1();_Ik['angularOffset']=this._3M1;
_Ik['maxForce']=this._oJ1;_Ik['maxTorque']=this._qK1;_Ik['correctionFactor']=this._4M1;return _Ik;}};_lI1._ej1(_6z1);var _dM1=2.0;function _eM1(){this.parent.call(this);this.type=_6z1._pA1;this._fM1=new _vk1(-1.0,1.0);this._gM1=new _vk1(1.0,1.0);this._nI1=new _vk1(-1.0,0.0);this._oI1=new _vk1(1.0,0.0);this._hM1=0.0;this._iM1=0.0;this.ratio=1.0;this._dz1=true;Object.seal(this);}_eM1.prototype={_Bq1:function(_9A1,_aA1,_jM1,_kM1,_lM1,_mM1,_Y4){this._bz1=_9A1;this._cz1=_aA1;this._fM1._EI(_jM1);this._gM1._EI(_kM1);
this._nI1._EI(this._bz1._Vw1(_lM1));this._oI1._EI(this._cz1._Vw1(_mM1));var _nM1=_vk1._Ck1(_lM1,_jM1);this._hM1=_nM1.Length();var _oM1=_vk1._Ck1(_mM1,_kM1);this._iM1=_oM1.Length();this.ratio=_Y4;_Hj1(this.ratio>_Kj1);},_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._fM1._Jk1(data['groundAnchorA']);this._gM1._Jk1(data['groundAnchorB']);this._nI1._Jk1(data['localAnchorA']);this._oI1._Jk1(data['localAnchorB']);this._hM1=data['lengthA'];this._iM1=data['lengthB'];
this.ratio=data['ratio'];}};_eM1._ej1(_VH1);function _fI1(_gw1){this.parent.call(this,_gw1);this._kF1=0;this._lF1=0;this._pM1=new _vk1();this._qM1=new _vk1();this._II1=new _vk1();this._JI1=new _vk1();this._KI1=new _vk1();this._LI1=new _vk1();this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;this._3w1=0;this._rM1=_gw1._fM1._Q3();this._sM1=_gw1._gM1._Q3();this._wI1=_gw1._nI1._Q3();this._xI1=_gw1._oI1._Q3();this._tM1=_gw1._hM1;this._uM1=_gw1._iM1;_Hj1(_gw1.ratio!=0.0);this._eL1=_gw1.ratio;this._fL1=_gw1._hM1+this._eL1*_gw1._iM1;
this._zI1=0.0;}_fI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);},_nA1:function(){return this._8z1._Sw1(this._xI1);},_YH1:function(_fy1){var _ps1=_vk1.Multiply(this._zI1,this._qM1);return _vk1.Multiply(_fy1,_ps1);},_ZH1:function(_fy1){return 0.0;},_rA1:function(){return this._rM1;},_sA1:function(){return this._sM1;},_vM1:function(){return this._tM1;},_wM1:function(){return this._uM1;},_EL1:function(){return this._eL1;},_xM1:function(){var _2z=this._9z1._Sw1(this._wI1);var __h=this._rM1;var _Xo=_vk1._Ck1(_2z,
__h);return _Xo.Length();},_yM1:function(){var _2z=this._8z1._Sw1(this._xI1);var __h=this._sM1;var _Xo=_vk1._Ck1(_2z,__h);return _Xo.Length();},_Oo1:function(_Po1){this._rM1._Ck1(_Po1);this._sM1._Ck1(_Po1);},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._KI1._EI(this._9z1._Qv1._il1);this._LI1._EI(this._8z1._Qv1._il1);this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;
var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);this._II1._EI(_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1)));this._JI1._EI(_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1)));this._pM1._EI(_vk1._Vf(_nz1,_vk1._Ck1(this._II1,this._rM1)));this._qM1._EI(_vk1._Vf(_pz1,_vk1._Ck1(this._JI1,this._sM1)));var _hM1=this._pM1.Length();
var _iM1=this._qM1.Length();if(_hM1>10.0*_Qj1){this._pM1.Multiply(1.0/_hM1);}else {this._pM1._wk1();}if(_iM1>10.0*_Qj1){this._qM1.Multiply(1.0/_iM1);}else {this._qM1._wk1();}var _zM1=_sl1(this._II1,this._pM1);var _AM1=_sl1(this._JI1,this._qM1);var _yG1=this._MI1+this._OI1*_zM1*_zM1;var _zG1=this._NI1+this._PI1*_AM1*_AM1;this._3w1=_yG1+this._eL1*this._eL1*_zG1;if(this._3w1>0.0){this._3w1=1.0/this._3w1;}if(data.step._jy1){this._zI1*=data.step._gy1;var _BM1=_vk1.Multiply(-(this._zI1),this._pM1);var _CM1=_vk1.Multiply((-this._eL1*this._zI1),
this._qM1);_BG1._Vf(_vk1.Multiply(this._MI1,_BM1));_9p1+=this._OI1*_sl1(this._II1,_BM1);_DG1._Vf(_vk1.Multiply(this._NI1,_CM1));_ap1+=this._PI1*_sl1(this._JI1,_CM1);}else {this._zI1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _NJ1=_vk1._Vf(_BG1,_ul1(_9p1,
this._II1));var _OJ1=_vk1._Vf(_DG1,_ul1(_ap1,this._JI1));var _9J1=-_rl1(this._pM1,_NJ1)-this._eL1*_rl1(this._qM1,_OJ1);var _Nw1=-this._3w1*_9J1;this._zI1+=_Nw1;var _BM1=_vk1.Multiply(-_Nw1,this._pM1);var _CM1=_vk1.Multiply(-this._eL1,_vk1.Multiply(_Nw1,this._qM1));_BG1._Vf(_vk1.Multiply(this._MI1,_BM1));_9p1+=this._OI1*_sl1(this._II1,_BM1);_DG1._Vf(_vk1.Multiply(this._NI1,_CM1));_ap1+=this._PI1*_sl1(this._JI1,_CM1);data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);
data._oy1[this._lF1].w=_ap1;},_gH1:function(data){var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _DM1=_vk1._Vf(_nz1,_vk1._Ck1(_bq1,this._rM1));var _EM1=_vk1._Vf(_pz1,_vk1._Ck1(_cq1,this._sM1));var _hM1=_DM1.Length();var _iM1=_EM1.Length();if(_hM1>10.0*_Qj1){_DM1.Multiply(1.0/_hM1);
}else {_DM1._wk1();}if(_iM1>10.0*_Qj1){_EM1.Multiply(1.0/_iM1);}else {_EM1._wk1();}var _zM1=_sl1(_bq1,_DM1);var _AM1=_sl1(_cq1,_EM1);var _yG1=this._MI1+this._OI1*_zM1*_zM1;var _zG1=this._NI1+this._PI1*_AM1*_AM1;var _Am1=_yG1+this._eL1*this._eL1*_zG1;if(_Am1>0.0){_Am1=1.0/_Am1;}var _Ml1=this._fL1-_hM1-this._eL1*_iM1;var _jK1=_Ql1(_Ml1);var _Nw1=-_Am1*_Ml1;var _BM1=_vk1.Multiply(-_Nw1,_DM1);var _CM1=_vk1.Multiply(-this._eL1,_vk1.Multiply(_Nw1,_EM1));_nz1._Vf(_vk1.Multiply(this._MI1,_BM1));_AG1+=this._OI1*_sl1(_bq1,
_BM1);_pz1._Vf(_vk1.Multiply(this._NI1,_CM1));_CG1+=this._PI1*_sl1(_cq1,_CM1);data._ny1[this._kF1].c._EI(_nz1);data._ny1[this._kF1]._05=_AG1;data._ny1[this._lF1].c._EI(_pz1);data._ny1[this._lF1]._05=_CG1;return _jK1<_Qj1;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['groundAnchorA']=this._rM1._Ik1();_Ik['groundAnchorB']=this._sM1._Ik1();_Ik['localAnchorA']=this._wI1._Ik1();_Ik['localAnchorB']=this._xI1._Ik1();_Ik['lengthA']=this._tM1;_Ik['lengthB']=this._uM1;_Ik['ratio']=this._eL1;
return _Ik;}};_fI1._ej1(_6z1);function _FM1(){this.parent.call(this);this.type=_6z1._aI1;this._nI1=new _vk1(-1.0,0.0);this._oI1=new _vk1(1.0,0.0);this._GM1=0.0;Object.seal(this);}_FM1.prototype={_Jk1:function(data,_gA1,_XH1){this.parent.prototype._Jk1.call(this,data,_gA1,_XH1);this._nI1._Jk1(data['localAnchorA']);this._oI1._Jk1(data['localAnchorB']);this._GM1=data['maxLength'];}};_FM1._ej1(_VH1);function _kI1(_gw1){this.parent.call(this,_gw1);this._wI1=_gw1._nI1._Q3();this._xI1=_gw1._oI1._Q3();this._HM1=_gw1._GM1;
this._3w1=0.0;this._zI1=0.0;this._IM1=_6z1._0I1;this._wN=0.0;this._kF1=0;this._lF1=0;this._HJ1=new _vk1();this._II1=new _vk1();this._JI1=new _vk1();this._KI1=new _vk1();this._LI1=new _vk1();this._MI1=0;this._NI1=0;this._OI1=0;this._PI1=0;}_kI1.prototype={_mA1:function(){return this._9z1._Sw1(this._wI1);},_nA1:function(){return this._8z1._Sw1(this._xI1);},_YH1:function(_fy1){var _Au1=_vk1.Multiply((_fy1*this._zI1),this._HJ1);return _Au1;},_ZH1:function(_fy1){return 0.0;},_RI1:function(){return this._wI1;},_SI1:function(){
return this._xI1;},_JM1:function(length){this._HM1=length;},_KM1:function(){return this._HM1;},_LM1:function(){return this._IM1;},_EH1:function(data){this._kF1=this._9z1._Hv1;this._lF1=this._8z1._Hv1;this._KI1._EI(this._9z1._Qv1._il1);this._LI1._EI(this._8z1._Qv1._il1);this._MI1=this._9z1._4w1;this._NI1=this._8z1._4w1;this._OI1=this._9z1._6w1;this._PI1=this._8z1._6w1;var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;
var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);this._II1._EI(_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1)));this._JI1._EI(_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1)));this._HJ1._EI(_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,this._JI1),_nz1),this._II1));this._wN=this._HJ1.Length();var _Ml1=this._wN-this._HM1;if(_Ml1>0.0){this._IM1=_6z1._2I1;}else {this._IM1=_6z1._0I1;}if(this._wN>_Qj1){
this._HJ1.Multiply(1.0/this._wN);}else {this._HJ1._wk1();this._3w1=0.0;this._zI1=0.0;return;}var _MM1=_sl1(this._II1,this._HJ1);var _NM1=_sl1(this._JI1,this._HJ1);var _MJ1=this._MI1+this._OI1*_MM1*_MM1+this._NI1+this._PI1*_NM1*_NM1;this._3w1=_MJ1!=0.0?1.0/_MJ1:0.0;if(data.step._jy1){this._zI1*=data.step._gy1;var _ps1=_vk1.Multiply(this._zI1,this._HJ1);_BG1._Ck1(_vk1.Multiply(this._MI1,_ps1));_9p1-=this._OI1*_sl1(this._II1,_ps1);_DG1._Vf(_vk1.Multiply(this._NI1,_ps1));_ap1+=this._PI1*_sl1(this._JI1,_ps1);
}else {this._zI1=0.0;}data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_WG1:function(data){var _BG1=data._oy1[this._kF1]._H5._Q3();var _9p1=data._oy1[this._kF1].w;var _DG1=data._oy1[this._lF1]._H5._Q3();var _ap1=data._oy1[this._lF1].w;var _NJ1=_vk1._Vf(_BG1,_ul1(_9p1,this._II1));var _OJ1=_vk1._Vf(_DG1,_ul1(_ap1,this._JI1));var _Ml1=this._wN-this._HM1;var _9J1=_rl1(this._HJ1,_vk1._Ck1(_OJ1,_NJ1));if(_Ml1<0.0){_9J1+=data.step._fy1*_Ml1;
}var _Nw1=-this._3w1*_9J1;var _aJ1=this._zI1;this._zI1=_Tl1(0.0,this._zI1+_Nw1);_Nw1=this._zI1-_aJ1;var _ps1=_vk1.Multiply(_Nw1,this._HJ1);_BG1._Ck1(_vk1.Multiply(this._MI1,_ps1));_9p1-=this._OI1*_sl1(this._II1,_ps1);_DG1._Vf(_vk1.Multiply(this._NI1,_ps1));_ap1+=this._PI1*_sl1(this._JI1,_ps1);data._oy1[this._kF1]._H5._EI(_BG1);data._oy1[this._kF1].w=_9p1;data._oy1[this._lF1]._H5._EI(_DG1);data._oy1[this._lF1].w=_ap1;},_gH1:function(data){var _nz1=data._ny1[this._kF1].c._Q3();var _AG1=data._ny1[this._kF1]._05;
var _pz1=data._ny1[this._lF1].c._Q3();var _CG1=data._ny1[this._lF1]._05;var _6J1=new _bl1(_AG1),_7J1=new _bl1(_CG1);var _bq1=_Gl1(_6J1,_vk1._Ck1(this._wI1,this._KI1));var _cq1=_Gl1(_7J1,_vk1._Ck1(this._xI1,this._LI1));var _G5=_vk1._Ck1(_vk1._Ck1(_vk1._Vf(_pz1,_cq1),_nz1),_bq1);var length=_G5._Ek1();var _Ml1=length-this._HM1;_Ml1=_Xl1(_Ml1,0.0,_Wj1);var _Nw1=-this._3w1*_Ml1;var _ps1=_vk1.Multiply(_Nw1,_G5);_nz1._Ck1(_vk1.Multiply(this._MI1,_ps1));_AG1-=this._OI1*_sl1(_bq1,_ps1);_pz1._Vf(_vk1.Multiply(this._NI1,
_ps1));_CG1+=this._PI1*_sl1(_cq1,_ps1);data._ny1[this._kF1].c._EI(_nz1);data._ny1[this._kF1]._05=_AG1;data._ny1[this._lF1].c._EI(_pz1);data._ny1[this._lF1]._05=_CG1;return length-this._HM1<_Qj1;},_Ik1:function(out){var _Ik=out||{};this.parent.prototype._Ik1.call(this,_Ik);_Ik['localAnchorA']=this._wI1._Ik1();_Ik['localAnchorB']=this._xI1._Ik1();_Ik['maxLength']=this._HM1;return _Ik;}};_kI1._ej1(_6z1);var _OM1=Math.exp;function _PM1(){this.vertices=null;this._c9=0;this._QM1=null;this.gravity=new _vk1();
this._j11=0.1;this._RM1=0.9;this._SM1=0.1;}function _TM1(){this._hn1=0;this._JK=null;this._UM1=null;this._VM1=null;this._WM1=null;this._XM1=null;this._YM1=null;this._ZM1=0;this._Fy1=new _vk1();this.__M1=1.0;this._0N1=0.1;}_TM1.prototype={_Bq1:function(_gw1){_Hj1(_gw1._c9>=3);this._hn1=_gw1._c9;this._JK=new Array(this._hn1);this._UM1=new Array(this._hn1);this._VM1=new Array(this._hn1);this._WM1=new Array(this._hn1);for(var i=0;i<this._hn1;++i){this._JK[i]=_gw1.vertices[i]._Q3();this._UM1[i]=_gw1.vertices[i]._Q3();
this._VM1[i]=new _vk1();var _e7=_gw1._QM1[i];if(_e7>0.0){this._WM1[i]=1.0/_e7;}else {this._WM1[i]=0.0;}}var _Br1=this._hn1-1;var _1N1=this._hn1-2;this._XM1=new Array(_Br1);this._YM1=new Array(_1N1);for(var i=0;i<_Br1;++i){var _ap=this._JK[i];var _hm1=this._JK[i+1];this._XM1[i]=_xl1(_ap,_hm1);}for(var i=0;i<_1N1;++i){var _ap=this._JK[i];var _hm1=this._JK[i+1];var _5o1=this._JK[i+2];var _Jv=_vk1._Ck1(_hm1,_ap);var _Kv=_vk1._Ck1(_5o1,_hm1);var _05=_sl1(_Jv,_Kv);var __4=_rl1(_Jv,_Kv);this._YM1[i]=_tk1(_05,__4);}this._Fy1=_gw1.gravity._Q3();
this._ZM1=_gw1._j11;this.__M1=_gw1._RM1;this._0N1=_gw1._SM1;},_ez1:function(h,iterations){if(h==0.0){return;}var _Xo=_OM1(-h*this._ZM1);for(var i=0;i<this._hn1;++i){this._UM1[i]._EI(this._JK[i]);if(this._WM1[i]>0.0){this._VM1[i]._Vf(_vk1.Multiply(h,this._Fy1));}this._VM1[i].Multiply(_Xo);this._JK[i]._Vf(_vk1.Multiply(h,this._VM1[i]));}for(var i=0;i<iterations;++i){this._2N1();this._3N1();this._2N1();}var _cM1=1.0/h;for(var i=0;i<this._hn1;++i){this._VM1[i]=_vk1.Multiply(_cM1,_vk1._Ck1(this._JK[i],this._UM1[i]));
}},_ue:function(){return this._hn1;},_4N1:function(){return this._JK;},_O9:function(_5N1){var c=new _3m1(0.4,0.5,0.7);for(var i=0;i<this._hn1-1;++i){_5N1._gm1(this._JK[i],this._JK[i+1],c);}},_6N1:function(angle){var _1N1=this._hn1-2;for(var i=0;i<_1N1;++i){this._YM1[i]=angle;}},_2N1:function(){var _Br1=this._hn1-1;for(var i=0;i<_Br1;++i){var _ap=this._JK[i];var _hm1=this._JK[i+1];var _Xo=_vk1._Ck1(_hm1,_ap);var _AL1=_Xo._Ek1();var _7N1=this._WM1[i];var _8N1=this._WM1[i+1];if(_7N1+_8N1==0.0){continue;}var _Js=_7N1/(_7N1+_8N1);
var _Ks=_8N1/(_7N1+_8N1);_ap._Ck1(_vk1.Multiply(this.__M1*_Js*(this._XM1[i]-_AL1),_Xo));_hm1._Vf(_vk1.Multiply(this.__M1*_Ks*(this._XM1[i]-_AL1),_Xo));}},_3N1:function(){var _1N1=this._hn1-2;for(var i=0;i<_1N1;++i){var _ap=this._JK[i];var _hm1=this._JK[i+1];var _5o1=this._JK[i+2];var _9N1=this._WM1[i];var _aN1=this._WM1[i+1];var _bN1=this._WM1[i+2];var _Jv=_vk1._Ck1(_hm1,_ap);var _Kv=_vk1._Ck1(_5o1,_hm1);var _cN1=_Jv._Dk1();var _dN1=_Kv._Dk1();if(_cN1*_dN1==0.0){continue;}var _05=_sl1(_Jv,_Kv);var __4=_rl1(_Jv,
_Kv);var angle=_tk1(_05,__4);var _eN1=_vk1.Multiply((-1.0/_cN1),_Jv._Hk1());var _fN1=_vk1.Multiply((1.0/_dN1),_Kv._Hk1());var _gN1=_vk1._zk1(_eN1);var _hN1=_vk1._Ck1(_eN1,_fN1);var _iN1=_fN1;var _Am1=_9N1*_rl1(_gN1,_gN1)+_aN1*_rl1(_hN1,_hN1)+_bN1*_rl1(_iN1,_iN1);if(_Am1==0.0){continue;}_Am1=1.0/_Am1;var _Ml1=angle-this._YM1[i];while(_Ml1>_Lj1){angle-=2*_Lj1;_Ml1=angle-this._YM1[i];}while(_Ml1<-_Lj1){angle+=2.0*_Lj1;_Ml1=angle-this._YM1[i];}var _Nw1=-this._0N1*_Am1*_Ml1;_ap._Vf(_vk1.Multiply((_9N1*_Nw1),_gN1));
_hm1._Vf(_vk1.Multiply((_aN1*_Nw1),_hN1));_5o1._Vf(_vk1.Multiply((_bN1*_Nw1),_iN1));}}};var _jN1={/*@param {b2World} world */_kN1:function(_Gv1){var _lN1=[];/*@type Number */var i;/*@type String */var _mN1;/*@type b2Body */var __4;/*@type b2Fixture */var _nv;/*@type b2Shape */var shape;for(__4=_Gv1._yz1();__4;__4=__4._nx1()){for(_nv=__4._kx1();_nv;_nv=_nv._nx1()){shape=_nv._Gx1();_nv._nN1=_lN1.length;_lN1.push(shape._Ik1());}}var _oN1=[];for(__4=_Gv1._yz1();__4;__4=__4._nx1()){__4._pN1=[];for(_nv=__4._kx1();
_nv;_nv=_nv._nx1()){_mN1=_nv._Ik1();_mN1['shape']=_nv._nN1;delete _nv._nN1;__4._pN1.push(_oN1.length);_oN1.push(_mN1);}}var _gA1=[];for(__4=_Gv1._yz1();__4;__4=__4._nx1()){_mN1=__4._Ik1();_mN1._oN1=[];for(i=0;i<__4._pN1.length;++i)_mN1._oN1.push(__4._pN1[i]);delete __4._pN1;__4._qN1=_gA1.length;_gA1.push(_mN1);};var _XH1=[];/*@type b2Joint */var _J6;for(_J6=_Gv1._lx1(),i=0;_J6;_J6=_J6._nx1(),++i)_J6._VL1=i;for(_J6=_Gv1._lx1();_J6;_J6=_J6._nx1()){if(_J6._8g1()===_6z1._tA1)continue;_mN1=_J6._Ik1();_mN1['bodyA']=_J6._kA1()._qN1;
_mN1['bodyB']=_J6._lA1()._qN1;_XH1.push(_mN1);}for(_J6=_Gv1._lx1();_J6;_J6=_J6._nx1())delete _J6._VL1;for(__4=_Gv1._yz1();__4;__4=__4._nx1())delete __4._qN1;var _95={_lN1:_lN1,_oN1:_oN1,_gA1:_gA1,_XH1:_XH1};return _95;},/*@param {b2World} world */_rN1:function(_mN1,_Gv1,clear){var _sN1=JSON.parse(_mN1);if(clear){for(var __4=_Gv1._yz1();__4;){var _Zk=__4._nx1();_Gv1._0z1(__4);__4=_Zk;}for(var _J6=_Gv1._lx1();_J6;){var _Zk=_J6._nx1();_Gv1._601(_J6);_J6=_Zk;}}var _lN1=[];for(var i=0;i<_sN1._lN1.length;++i){var _tN1=_sN1._lN1[i];
var shape;switch(_tN1._nH){case _Cm1._Pm1:shape=new _Um1();break;case _Cm1._Qm1:shape=new _1n1();break;case _Cm1._Sm1:shape=new _fn1();break;case _Cm1._Rm1:shape=new _xn1();break;}shape._Jk1(_tN1);_lN1.push(shape);}var _oN1=[];for(i=0;i<_sN1._oN1.length;++i){var _uN1=_sN1._oN1[i];var _AZ=new _iw1();_AZ._Jk1(_uN1);_AZ.shape=_lN1[_uN1['shape']];_oN1.push(_AZ);}var _gA1=[];for(i=0;i<_sN1._gA1.length;++i){var _vN1=_sN1._gA1[i];var _gw1=new _tv1();_gw1._Jk1(_vN1);var body=_Gv1._4_(_gw1);for(var x=0;x<_vN1._oN1.length;++x)body._fw1(_oN1[_vN1._oN1[x]]);
_gA1.push(body);}var _XH1=[];var _wN1=[];for(i=0;i<_sN1._XH1.length;++i){var _xN1=_sN1._XH1[i];var _yN1;switch(_xN1.type){case _6z1._4I1:_yN1=new _mI1();break;case _6z1._5I1:_yN1=new _PJ1();break;case _6z1._oA1:_yN1=new _DJ1();break;case _6z1._pA1:_yN1=new _eM1();break;case _6z1._6I1:_yN1=new _QK1();break;case _6z1._7I1:_yN1=new _AK1();break;case _6z1._8I1:_yN1=new _yK1();break;case _6z1._9I1:_yN1=new _mK1();break;case _6z1._aI1:_yN1=new _FM1();break;case _6z1._uA1:_yN1=new _WL1();break;default :throw new Error('unknown joint');
}_yN1._Jk1(_xN1,_gA1);if(_xN1.type===_6z1._6I1){_wN1.push([_yN1,_XH1.length]);_XH1.push(null);}else {var _h_=_Gv1._5z1(_yN1);_XH1.push(_h_);}}for(i=0;i<_wN1.length;++i){_wN1[i][0]._RK1=_XH1[_wN1[i][0]._RK1];_wN1[i][0]._SK1=_XH1[_wN1[i][0]._SK1];_h_=_Gv1._5z1(_wN1[i][0]);_XH1[_wN1[i][1]]=_h_;}}};var _zN1=(function(){function _AN1(_Ik){return new _vk1(_Ik?(_Ik.x||0):0,_Ik?(_Ik.y||0):0);}function _BN1(_Ik){var _CN1=new Array(_Ik.x.length);for(var i=0;i<_CN1.length;++i)_CN1[i]=new _vk1(_Ik.x[i],_Ik.y[i]);return _CN1;
}function _DN1(_Ik,instance){var name=_Ik.name;var _Je;if(typeof(_Ik['int'])!=='undefined')_Je=_Ik['int'];else if(typeof(_Ik['float'])!=='undefined')_Je=_Ik['float'];else if(typeof(_Ik['string'])!=='undefined')_Je=_Ik['string'];else if(typeof(_Ik['bool'])!=='undefined')_Je=_Ik['bool'];else if(typeof(_Ik._EN1)!=='undefined')_Je=_AN1(_Ik._EN1);else throw new Error("unknown property type");if(instance.hasOwnProperty(name))throw new Error("custom property possibly overwriting an existing one");instance[name]=_Je;
}function _FN1(_Ik,body){var _gw1=new _iw1();_gw1._h11=_Ik._h11||0;_gw1.filter._vx1=typeof(_Ik['filter-categoryBits'])==='undefined'?1:_Ik['filter-categoryBits'];_gw1.filter._wx1=typeof(_Ik['filter-maskBits'])==='undefined'?65535:_Ik['filter-maskBits'];_gw1.filter._xx1=typeof(_Ik['filter-groupIndex'])==='undefined'?0:_Ik['filter-groupIndex'];_gw1.friction=_Ik.friction||0;_gw1._yx1=_Ik._yx1||0;_gw1._zx1=_Ik._Hx1||0;var shape;if(typeof(_Ik._So1)!=='undefined'){shape=new _Um1();shape._Vm1=_AN1(_Ik._So1._em1);
shape._Dm1=_Ik._So1._K01||0;}else if(typeof(_Ik._17)!=='undefined'){var vertices=_BN1(_Ik._17.vertices);shape=new _xn1();shape.Set(vertices,vertices.length);}else if(typeof(_Ik._To1)!=='undefined'){var vertices=_BN1(_Ik._To1.vertices);shape=new _fn1();shape._hn1=vertices.length;shape._gn1=vertices;if(shape._ln1=_Ik._To1._GN1)shape._jn1=_AN1(_Ik._To1._sn1);if(shape._kn1=_Ik._To1._HN1)shape._in1=_AN1(_Ik._To1._qn1);}else throw new Error("unknown shape type");_gw1.shape=shape;var _AZ=body._fw1(_gw1);_AZ.name=_Ik.name;
if(_Ik._IN1)for(var i=0;i<_Ik._IN1.length;++i)_DN1(_Ik,_AZ);}function _JN1(_Ik,_Gv1){var _gw1=new _tv1();_gw1.type=_Ik.type||_uv1._vv1;_gw1.angle=_Ik.angle||0;_gw1._zv1=_Ik._zv1||0;_gw1._xv1=_Ik._xv1||0;_gw1._Bv1=_Ik._Bv1||false;_gw1._Dv1=_Ik._Dv1||false;_gw1._Cv1=_Ik._Cv1||false;_gw1._yv1=_Ik._yv1||false;_gw1._wv1=_AN1(_Ik._wv1);_gw1._Ev1=typeof(_Ik._Ev1)!=='undefined'?_Ik._Ev1:1;var _KN1=new _zm1();_KN1._Am1=_Ik['massData-mass']||0;_KN1._em1=_AN1(_Ik['massData-center']);_KN1._Bm1=_Ik['massData-I']||0;
_gw1.position=_AN1(_Ik.position);var body=_Gv1._4_(_gw1);body.name=_Ik.name;body._Rw1(_KN1);if(_Ik._AZ)for(var i=0;i<_Ik._AZ.length;++i)_FN1(_Ik._AZ[i],body);if(_Ik._IN1)for(i=0;i<_Ik._IN1.length;++i)_DN1(_Ik,body);return body;}var _LN1={'revolute':_mI1,'distance':_DJ1,'prismatic':_PJ1,'wheel':_AK1,'rope':_FM1,'motor':_WL1,'weld':_yK1,'friction':_mK1};function _MN1(_Ik,_Gv1,_gA1){if(!_LN1[_Ik.type])throw new Error("unknown joint type");var _NN1=new _LN1[_Ik.type]();switch(_NN1.type){case _6z1._4I1:_NN1._nI1=_AN1(_Ik._lM1);
_NN1._oI1=_AN1(_Ik._mM1);_NN1._uI1=_Ik._uI1||false;_NN1._vI1=_Ik._vI1||false;_NN1._qI1=_Ik._ON1||0;_NN1._sI1=_Ik._sI1||0;_NN1._tI1=_Ik._tI1||0;_NN1._pI1=_Ik._PN1||0;_NN1._rI1=_Ik._QN1||0;break;case _6z1._oA1:_NN1._nI1=_AN1(_Ik._lM1);_NN1._oI1=_AN1(_Ik._mM1);_NN1._mJ1=_Ik._mJ1||0;_NN1._lJ1=_Ik._RN1||0;_NN1.length=_Ik.length||0;break;case _6z1._5I1:_NN1._nI1=_AN1(_Ik._lM1);_NN1._oI1=_AN1(_Ik._mM1);_NN1._uI1=_Ik._uI1||false;_NN1._vI1=_Ik._vI1||false;_NN1._QJ1=_AN1(_Ik._QJ1);_NN1._RJ1=_Ik._ON1||0;_NN1._TJ1=_Ik._TJ1||0;
_NN1._tI1=_Ik._tI1||0;_NN1._pI1=_Ik._PN1||0;_NN1._SJ1=_Ik._QN1||0;break;case _6z1._7I1:_NN1._nI1=_AN1(_Ik._lM1);_NN1._oI1=_AN1(_Ik._mM1);_NN1._vI1=_Ik._vI1||false;_NN1._QJ1=_AN1(_Ik._QJ1);_NN1._sI1=_Ik._sI1||0;_NN1._tI1=_Ik._tI1||0;_NN1._mJ1=_Ik._SN1||0;_NN1._lJ1=_Ik._TN1||0;break;case _6z1._aI1:_NN1._nI1=_AN1(_Ik._lM1);_NN1._oI1=_AN1(_Ik._mM1);_NN1._GM1=_Ik._GM1||0;break;case _6z1._uA1:_NN1._XL1=_AN1(_Ik._lM1);_NN1._YL1=_Ik._PN1||0;_NN1._kJ1=_Ik._kJ1||0;_NN1._nK1=_Ik._nK1||0;_NN1._ZL1=_Ik._ZL1||0;
break;case _6z1._8I1:_NN1._nI1=_AN1(_Ik._lM1);_NN1._oI1=_AN1(_Ik._mM1);_NN1._pI1=_Ik._PN1||0;_NN1._mJ1=_Ik._mJ1||0;_NN1._lJ1=_Ik._lJ1||0;break;case _6z1._9I1:_NN1._nI1=_AN1(_Ik._lM1);_NN1._oI1=_AN1(_Ik._mM1);_NN1._kJ1=_Ik._kJ1||0;_NN1._nK1=_Ik._nK1||0;break;default :throw new Error("wat?");}_NN1._bz1=_gA1[_Ik._bz1||0];_NN1._cz1=_gA1[_Ik._cz1||0];_NN1._dz1=_Ik._dz1||false;var _h_=_Gv1._5z1(_NN1);_h_.name=_Ik.name;if(_Ik._IN1)for(var i=0;i<_Ik._IN1.length;++i)_DN1(_Ik,_h_);return _h_;}function _UN1(){this._Gv1=null;
this._iy1=0;this._hy1=0;this._VN1=0;this._oN1={};this._gA1={};this._XH1={};Object.seal(this);}function _WN1(_Ik,_Gv1){var _kt=new _UN1();_kt._Gv1=_Gv1=_Gv1||new _rw1(new _vk1(0,0));_kt._iy1=_Ik._iy1||0;_kt._hy1=_Ik._hy1||0;_kt._VN1=_Ik._VN1||0;if(_Ik.gravity)_Gv1._tZ(_AN1(_Ik.gravity));_Gv1._zz1(_Ik._Av1||false);_Gv1._Mz1(_Ik._XN1||false);_Gv1._Bz1(_Ik._jy1||false);_Gv1._Dz1(_Ik._YN1||false);_Gv1._Fz1(_Ik._ZN1||false);var _gA1=[];var __N1=_Ik.body;if(__N1){for(var i=0;i<__N1.length;++i){var body=_JN1(__N1[i],
_Gv1);_gA1.push(body);for(var _nv=body._kx1();_nv;_nv=_nv._nx1()){if(!_kt._oN1[_nv.name])_kt._oN1[_nv.name]=[];_kt._oN1[_nv.name].push(_nv);}if(!_kt._gA1[body.name])_kt._gA1[body.name]=[];_kt._gA1[body.name].push(body);}}var _XH1=[];var _0O1=_Ik._h_;if(_0O1){for(i=0;i<_0O1.length;++i){var _h_=_MN1(_0O1[i],_Gv1,_gA1);_XH1.push(_h_);if(!_kt._XH1[_h_.name])_kt._XH1[_h_.name]=[];_kt._XH1[_h_.name].push(_h_);}}return _kt;}var _95={_WN1:_WN1};return _95;})();var _1O1=[{"trimmed":"version","name":"b2_version",
"def":_kk1},{"trimmed":"Vec2","name":"b2Vec2","def":_vk1},{"trimmed":"Vec3","name":"b2Vec3","def":_Lk1},{"trimmed":"Mat22","name":"b2Mat22","def":_Nk1},{"trimmed":"Mat33","name":"b2Mat33","def":_Zk1},{"trimmed":"Rot","name":"b2Rot","def":_bl1},{"trimmed":"Transform","name":"b2Transform","def":_fl1},{"trimmed":"Sweep","name":"b2Sweep","def":_hl1},{"trimmed":"Dot_v2_v2","name":"b2Dot_v2_v2","def":_rl1},{"trimmed":"Cross_v2_v2","name":"b2Cross_v2_v2","def":_sl1},{"trimmed":"Cross_v2_f","name":"b2Cross_v2_f",
"def":_tl1},{"trimmed":"Cross_f_v2","name":"b2Cross_f_v2","def":_ul1},{"trimmed":"Mul_m22_v2","name":"b2Mul_m22_v2","def":_vl1},{"trimmed":"MulT_m22_v2","name":"b2MulT_m22_v2","def":_wl1},{"trimmed":"Distance","name":"b2Distance","def":_xl1},{"trimmed":"DistanceSquared","name":"b2DistanceSquared","def":_yl1},{"trimmed":"Dot_v3_v3","name":"b2Dot_v3_v3","def":_2l1},{"trimmed":"Cross_v3_v3","name":"b2Cross_v3_v3","def":_3l1},{"trimmed":"Mul_m22_m22","name":"b2Mul_m22_m22","def":_zl1},{"trimmed":"MulT_m22_m22",
"name":"b2MulT_m22_m22","def":_Al1},{"trimmed":"Mul_m33_v3","name":"b2Mul_m33_v3","def":_Bl1},{"trimmed":"Mul22_m33_v2","name":"b2Mul22_m33_v2","def":_Cl1},{"trimmed":"Mul_r_r","name":"b2Mul_r_r","def":_Dl1},{"trimmed":"MulT_r_r","name":"b2MulT_r_r","def":_Fl1},{"trimmed":"Mul_r_v2","name":"b2Mul_r_v2","def":_Gl1},{"trimmed":"MulT_r_v2","name":"b2MulT_r_v2","def":_Hl1},{"trimmed":"Mul_t_v2","name":"b2Mul_t_v2","def":_Il1},{"trimmed":"Min_v2","name":"b2Min_v2","def":_Ul1},{"trimmed":"Max_v2","name":"b2Max_v2",
"def":_Wl1},{"trimmed":"Clamp","name":"b2Clamp","def":_Xl1},{"trimmed":"MulT_t_v2","name":"b2MulT_t_v2","def":_Kl1},{"trimmed":"Mul_t_t","name":"b2Mul_t_t","def":_Ll1},{"trimmed":"MulT_t_t","name":"b2MulT_t_t","def":_Nl1},{"trimmed":"Clamp_v2","name":"b2Clamp_v2","def":_Yl1},{"trimmed":"NextPowerOfTwo","name":"b2NextPowerOfTwo","def":_Zl1},{"trimmed":"Abs_v2","name":"b2Abs_v2","def":_Rl1},{"trimmed":"Abs_m22","name":"b2Abs_m22","def":_Sl1},{"trimmed":"IsPowerOfTwo","name":"b2IsPowerOfTwo","def":__l1}
,{"trimmed":"RandomFloat","name":"b2RandomFloat","def":_1m1},{"trimmed":"Timer","name":"b2Timer","def":_wm1},{"trimmed":"Color","name":"b2Color","def":_3m1},{"trimmed":"Draw","name":"b2Draw","def":_4m1},{"trimmed":"ContactID","name":"b2ContactID","def":_eq1},{"trimmed":"ManifoldPoint","name":"b2ManifoldPoint","def":_jq1},{"trimmed":"Manifold","name":"b2Manifold","def":_oq1},{"trimmed":"WorldManifold","name":"b2WorldManifold","def":_zq1},{"trimmed":"GetPointStates","name":"b2GetPointStates","def":_Sq1}
,{"trimmed":"ClipVertex","name":"b2ClipVertex","def":_Xq1},{"trimmed":"RayCastInput","name":"b2RayCastInput","def":_Yq1},{"trimmed":"RayCastOutput","name":"b2RayCastOutput","def":_Zq1},{"trimmed":"AABB","name":"b2AABB","def":__q1},{"trimmed":"CollideCircles","name":"b2CollideCircles","def":_er1},{"trimmed":"CollidePolygonAndCircle","name":"b2CollidePolygonAndCircle","def":_ir1},{"trimmed":"FindMaxSeparation","name":"b2FindMaxSeparation","def":_ur1},{"trimmed":"FindIncidentEdge","name":"b2FindIncidentEdge",
"def":_Jr1},{"trimmed":"CollidePolygons","name":"b2CollidePolygons","def":_Tr1},{"trimmed":"CollideEdgeAndCircle","name":"b2CollideEdgeAndCircle","def":_ns1},{"trimmed":"EPAxis","name":"b2EPAxis","def":_Bs1},{"trimmed":"TempPolygon","name":"b2TempPolygon","def":_Fs1},{"trimmed":"ReferenceFace","name":"b2ReferenceFace","def":_Gs1},{"trimmed":"EPCollider","name":"b2EPCollider","def":_Js1},{"trimmed":"CollideEdgeAndPolygon","name":"b2CollideEdgeAndPolygon","def":_ot1},{"trimmed":"ClipSegmentToLine",
"name":"b2ClipSegmentToLine","def":_ks1},{"trimmed":"TestShapeOverlap","name":"b2TestShapeOverlap","def":_xt1},{"trimmed":"TestOverlap","name":"b2TestOverlap","def":_yo1},{"trimmed":"Shape","name":"b2Shape","def":_Cm1},{"trimmed":"MassData","name":"b2MassData","def":_zm1},{"trimmed":"CircleShape","name":"b2CircleShape","def":_Um1},{"trimmed":"EdgeShape","name":"b2EdgeShape","def":_1n1},{"trimmed":"ChainShape","name":"b2ChainShape","def":_fn1},{"trimmed":"PolygonShape","name":"b2PolygonShape","def":_xn1}
,{"trimmed":"Pair","name":"b2Pair","def":_6o1},{"trimmed":"PairLessThan","name":"b2PairLessThan","def":_9o1},{"trimmed":"BroadPhase","name":"b2BroadPhase","def":_co1},{"trimmed":"DistanceProxy","name":"b2DistanceProxy","def":_Ro1},{"trimmed":"SimplexCache","name":"b2SimplexCache","def":_Wo1},{"trimmed":"DistanceInput","name":"b2DistanceInput","def":__o1},{"trimmed":"DistanceOutput","name":"b2DistanceOutput","def":_5p1},{"trimmed":"SimplexVertex","name":"b2SimplexVertex","def":_8p1},{"trimmed":"Simplex",
"name":"b2Simplex","def":_bp1},{"trimmed":"DistanceFunc","name":"b2DistanceFunc","def":_Yp1},{"trimmed":"TreeNode","name":"b2TreeNode","def":_Bt1},{"trimmed":"DynamicTree","name":"b2DynamicTree","def":_eo1},{"trimmed":"TOIInput","name":"b2TOIInput","def":_Hu1},{"trimmed":"TOIOutput","name":"b2TOIOutput","def":_Lu1},{"trimmed":"SeparationFunction","name":"b2SeparationFunction","def":_Qu1},{"trimmed":"TimeOfImpact","name":"b2TimeOfImpact","def":_bv1},{"trimmed":"BodyDef","name":"b2BodyDef","def":_tv1}
,{"trimmed":"Body","name":"b2Body","def":_uv1},{"trimmed":"Filter","name":"b2Filter","def":_ux1},{"trimmed":"FixtureDef","name":"b2FixtureDef","def":_iw1},{"trimmed":"Fixture","name":"b2Fixture","def":_jw1},{"trimmed":"DestructionListener","name":"b2DestructionListener","def":_Tx1},{"trimmed":"ContactFilter","name":"b2ContactFilter","def":_Yx1},{"trimmed":"ContactImpulse","name":"b2ContactImpulse","def":_1y1},{"trimmed":"ContactListener","name":"b2ContactListener","def":_4y1},{"trimmed":"QueryCallback",
"name":"b2QueryCallback","def":_ay1},{"trimmed":"RayCastCallback","name":"b2RayCastCallback","def":_dy1},{"trimmed":"TimeStep","name":"b2TimeStep","def":_ey1},{"trimmed":"Position","name":"b2Position","def":_ky1},{"trimmed":"Velocity","name":"b2Velocity","def":_ly1},{"trimmed":"SolverData","name":"b2SolverData","def":_my1},{"trimmed":"World","name":"b2World","def":_rw1},{"trimmed":"MixFriction","name":"b2MixFriction","def":_6F1},{"trimmed":"MixRestitution","name":"b2MixRestitution","def":_9F1},{
"trimmed":"ContactRegister","name":"b2ContactRegister","def":_cF1},{"trimmed":"ContactEdge","name":"b2ContactEdge","def":_eF1},{"trimmed":"Contact","name":"b2Contact","def":_Pz1},{"trimmed":"CircleContact","name":"b2CircleContact","def":_DF1},{"trimmed":"PolygonContact","name":"b2PolygonContact","def":_MF1},{"trimmed":"ChainAndCircleContact","name":"b2ChainAndCircleContact","def":_HF1},{"trimmed":"ChainAndPolygonContact","name":"b2ChainAndPolygonContact","def":_IF1},{"trimmed":"EdgeAndCircleContact",
"name":"b2EdgeAndCircleContact","def":_JF1},{"trimmed":"EdgeAndPolygonContact","name":"b2EdgeAndPolygonContact","def":_KF1},{"trimmed":"PolygonAndCircleContact","name":"b2PolygonAndCircleContact","def":_LF1},{"trimmed":"defaultFilter","name":"b2_defaultFilter","def":_WF1},{"trimmed":"defaultListener","name":"b2_defaultListener","def":_XF1},{"trimmed":"ContactManager","name":"b2ContactManager","def":_uy1},{"trimmed":"VelocityConstraintPoint","name":"b2VelocityConstraintPoint","def":_1G1},{"trimmed":"ContactPositionConstraint",
"name":"b2ContactPositionConstraint","def":_5G1},{"trimmed":"ContactVelocityConstraint","name":"b2ContactVelocityConstraint","def":_dG1},{"trimmed":"PositionSolverManifold","name":"b2PositionSolverManifold","def":_hG1},{"trimmed":"ContactSolverDef","name":"b2ContactSolverDef","def":_kG1},{"trimmed":"ContactSolver","name":"b2ContactSolver","def":_mG1},{"trimmed":"Island","name":"b2Island","def":_Ky1},{"trimmed":"Jacobian","name":"b2Jacobian","def":_RH1},{"trimmed":"JointEdge","name":"b2JointEdge",
"def":_UH1},{"trimmed":"JointDef","name":"b2JointDef","def":_VH1},{"trimmed":"Joint","name":"b2Joint","def":_6z1},{"trimmed":"RevoluteJointDef","name":"b2RevoluteJointDef","def":_mI1},{"trimmed":"RevoluteJoint","name":"b2RevoluteJoint","def":_eI1},{"trimmed":"MouseJointDef","name":"b2MouseJointDef","def":_jJ1},{"trimmed":"MouseJoint","name":"b2MouseJoint","def":_cI1},{"trimmed":"DistanceJointDef","name":"b2DistanceJointDef","def":_DJ1},{"trimmed":"DistanceJoint","name":"b2DistanceJoint","def":_bI1}
,{"trimmed":"PrismaticJointDef","name":"b2PrismaticJointDef","def":_PJ1},{"trimmed":"PrismaticJoint","name":"b2PrismaticJoint","def":_dI1},{"trimmed":"FrictionJointDef","name":"b2FrictionJointDef","def":_mK1},{"trimmed":"FrictionJoint","name":"b2FrictionJoint","def":_jI1},{"trimmed":"WeldJointDef","name":"b2WeldJointDef","def":_yK1},{"trimmed":"WeldJoint","name":"b2WeldJoint","def":_iI1},{"trimmed":"WheelJointDef","name":"b2WheelJointDef","def":_AK1},{"trimmed":"WheelJoint","name":"b2WheelJoint",
"def":_hI1},{"trimmed":"GearJointDef","name":"b2GearJointDef","def":_QK1},{"trimmed":"GearJoint","name":"b2GearJoint","def":_gI1},{"trimmed":"MotorJointDef","name":"b2MotorJointDef","def":_WL1},{"trimmed":"MotorJoint","name":"b2MotorJoint","def":_lI1},{"trimmed":"PulleyJointDef","name":"b2PulleyJointDef","def":_eM1},{"trimmed":"PulleyJoint","name":"b2PulleyJoint","def":_fI1},{"trimmed":"RopeJointDef","name":"b2RopeJointDef","def":_FM1},{"trimmed":"RopeJoint","name":"b2RopeJoint","def":_kI1},{"trimmed":"RopeDef",
"name":"b2RopeDef","def":_PM1},{"trimmed":"Rope","name":"b2Rope","def":_TM1},{"trimmed":"maxManifoldPoints","name":"b2_maxManifoldPoints","def":_Mj1},{"trimmed":"maxPolygonVertices","name":"b2_maxPolygonVertices","def":_Nj1},{"trimmed":"aabbExtension","name":"b2_aabbExtension","def":_Oj1},{"trimmed":"aabbMultiplier","name":"b2_aabbMultiplier","def":_Pj1},{"trimmed":"linearSlop","name":"b2_linearSlop","def":_Qj1},{"trimmed":"angularSlop","name":"b2_angularSlop","def":_Rj1},{"trimmed":"polygonRadius",
"name":"b2_polygonRadius","def":_Sj1},{"trimmed":"maxSubSteps","name":"b2_maxSubSteps","def":_Tj1},{"trimmed":"maxTOIContacts","name":"b2_maxTOIContacts","def":_Uj1},{"trimmed":"velocityThreshold","name":"b2_velocityThreshold","def":_Vj1},{"trimmed":"maxLinearCorrection","name":"b2_maxLinearCorrection","def":_Wj1},{"trimmed":"maxAngularCorrection","name":"b2_maxAngularCorrection","def":_Xj1},{"trimmed":"maxTranslation","name":"b2_maxTranslation","def":_Yj1},{"trimmed":"maxTranslationSquared","name":"b2_maxTranslationSquared",
"def":_Zj1},{"trimmed":"maxRotation","name":"b2_maxRotation","def":__j1},{"trimmed":"maxRotationSquared","name":"b2_maxRotationSquared","def":_0k1},{"trimmed":"baumgarte","name":"b2_baumgarte","def":_1k1},{"trimmed":"toiBaugarte","name":"b2_toiBaugarte","def":_2k1},{"trimmed":"timeToSleep","name":"b2_timeToSleep","def":_3k1},{"trimmed":"linearSleepTolerance","name":"b2_linearSleepTolerance","def":_4k1},{"trimmed":"angularSleepTolerance","name":"b2_angularSleepTolerance","def":_5k1},{"trimmed":"epsilon",
"name":"b2_epsilon","def":_Kj1},{"trimmed":"JsonSerializer","name":"b2JsonSerializer","def":_jN1},{"trimmed":"RUBELoader","name":"b2RUBELoader","def":_zN1},{"trimmed":"Profiler","name":"b2Profiler","def":_qj1},{"trimmed":"ParticleDef","name":"b2ParticleDef","def":_DB1},{"trimmed":"ParticleColor","name":"b2ParticleColor","def":_vB1},{"trimmed":"ParticleGroupDef","name":"b2ParticleGroupDef","def":_OB1},{"trimmed":"ParticleGroup","name":"b2ParticleGroup","def":_RB1},{"trimmed":"ParticleSystem","name":"b2ParticleSystem",
"def":_My1}];if(typeof(b2_compatibility)!=="undefined"&&typeof(window)!=="undefined"){for(var i=0;i<_1O1.length;++i)window[_1O1[i]["name"]]=_1O1[i]["def"];}else {var _xh={};for(var i=0;i<_1O1.length;++i)_xh[_1O1[i]["trimmed"]]=_1O1[i]["def"];if(typeof(module)!=="undefined")module._2O1=_xh;else window["b2"]=_xh;}})();_Yg:/*
 * This class lets you encode animated GIF files
 * Base class :  http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm
 * @author Kevin Weiner (original Java version - kweiner@fmsware.com)
 * @author Thibault Imbert (AS3 version - bytearray.org)
 * @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif)
 * @version 0.1 AS3 implementation
 */_3O1=function(){
for(var i=0,chr={};i<256;i++)chr[i]=String.fromCharCode(i);function _4O1(){this._5O1=[];};_4O1.prototype._6O1=function(){for(var _H5='',_p7=this._5O1.length,i=0;i<_p7;i++)_H5+=chr[this._5O1[i]];return _H5;};_4O1.prototype._7O1=function(_Je){this._5O1.push(_Je);};_4O1.prototype._8O1=function(string){for(var _p7=string.length,i=0;i<_p7;i++)this._7O1(string.charCodeAt(i));};_4O1.prototype._9O1=function(_tc,offset,length){for(var _p7=length||_tc.length,i=offset||0;i<_p7;i++)this._7O1(_tc[i]);};var _2O1={};
var width;var height;var transparent=null;var _aO1;var repeat=-1;var _bO1=0;var _cO1=false;var out;var _B5;var _dO1;var _eO1;var colorDepth;var _fO1;var _gO1=[];var _hO1=7;var dispose=-1;var _iO1=false;var _jO1=true;var _kO1=false;var _H91=10;var _lO1="Generated by jsgif (https://github.com/antimatter15/jsgif/)";/*
	 * Sets the delay time between each frame, or changes it for subsequent frames
	 * (applies to last frame added)
	 * int delay time in milliseconds
	 * @param ms
	 */var _mO1=_2O1._mO1=function _mO1(_nO1){
_bO1=Math.round(_nO1/10);};/*
	 * Sets the GIF frame disposal code for the last added frame and any
	 *
	 * subsequent frames. Default is 0 if no transparent color has been set,
	 * otherwise 2.
	 * @param code
	 * int disposal code.
	 */var _oO1=_2O1._oO1=function _oO1(_gc1){if(_gc1>=0)dispose=_gc1;};/*
	 * Sets the number of times the set of GIF frames should be played. Default is
	 * 1; 0 means play indefinitely. Must be invoked before the first image is
	 * added.
	 *
	 * @param iter
	 * int number of iterations.
	 * @return
	 */var _pO1=_2O1._pO1=function _pO1(_zc1){
if(_zc1>=0)repeat=_zc1;};/*
	 * Sets the transparent color for the last added frame and any subsequent
	 * frames. Since all colors are subject to modification in the quantization
	 * process, the color in the final palette for each frame closest to the given
	 * color becomes the transparent color for that frame. May be set to null to
	 * indicate no transparent color.
	 * @param
	 * Color to be treated as transparent on display.
	 */var _qO1=_2O1._qO1=function _qO1(c){transparent=c;};/*
	 * Sets the comment for the block comment
	 * @param
	 * string to be insterted as comment
	 */var _rO1=_2O1._rO1=function _rO1(c){
_lO1=c;};/*
	 * The addFrame method takes an incoming BitmapData object to create each frames
	 * @param
	 * BitmapData object to be treated as a GIF's frame
	 */var _sO1=_2O1._sO1=function _sO1(_Mb,_tO1){if((_Mb===null)||!_cO1||out===null){throw new Error("Please call start method before calling addFrame");}var _lx=true;try{if(!_tO1){_B5=_Mb.getImageData(0,0,_Mb.canvas.width,_Mb.canvas.height).data;if(!_kO1)_uO1(_Mb.canvas.width,_Mb.canvas.height);}else {if(_Mb instanceof ImageData){_B5=_Mb.data;if(!_vO1||width!=_Mb.width||height!=_Mb.height){
_uO1(_Mb.width,_Mb.height);}else {}}else if(_Mb instanceof Uint8ClampedArray){if(_Mb.length==(width*height*4)){_B5=_Mb;}else {console.log("Please set the correct size: ImageData length mismatch");_lx=false;}}else {console.log("Please provide correct input");_lx=false;}}_wO1();if(_H91==0)_xO1();else _yO1();if(_jO1){_zO1();_AO1();if(repeat>=0){_BO1();}}_CO1();if(_lO1!==''){_DO1();}_EO1();if(!_jO1)_AO1();_FO1();_jO1=false;}catch(e){_lx=false;}return _lx;};/*
	* @description: Downloads the encoded gif with the given name
	* No need of any conversion from the stream data (out) to base64
	* Solves the issue of large file sizes when there are more frames
	* and does not involve in creation of any temporary data in the process
	* so no wastage of memory, and speeds up the process of downloading
	* to just calling this function.
	* @parameter {String} filename filename used for downloading the gif
	*/var download=_2O1.download=function download(filename){
if(out===null||_iO1==false){console.log("Please call start method and add frames and call finish method before calling download");}else {filename=filename!==undefined?(filename.endsWith(".gif")?filename:filename+".gif"):"download.gif";var _GO1=document.createElement("a");_GO1.download=filename;_GO1.href=URL.createObjectURL(new Blob([new Uint8Array(out._5O1)],{type:"image/gif"}));_GO1.click();}};var _HO1=_2O1._HO1=function _HO1(){if(!_cO1)return false;var _lx=true;_cO1=false;try{out._7O1(0x3b);_iO1=true;
}catch(e){_lx=false;}return _lx;};var _w81=function _w81(){_aO1=0;_B5=null;_dO1=null;_eO1=null;_fO1=null;_iO1=false;_jO1=true;};/*
	 * * Sets frame rate in frames per second. Equivalent to
	 * <code>setDelay(1000/fps)</code>.
	 * @param fps
	 * float frame rate (frames per second)
	 */var _IO1=_2O1._IO1=function _IO1(fps){if(fps!=0xf)_bO1=Math.round(100/fps);};/*
	 * Sets quality of color quantization (conversion of images to the maximum 256
	 * colors allowed by the GIF specification). Lower values (minimum = 1)
	 * produce better colors, but slow processing significantly. 10 is the
	 * default, and produces good color mapping at reasonable speeds. Values
	 * greater than 20 do not yield significant improvements in speed.
	 * @param quality
	 * int greater than 0.
	 * @return
	 */var _JO1=_2O1._JO1=function _JO1(_KO1){
_H91=_KO1;};/*
	 * Sets the GIF frame size. The default size is the size of the first frame
	 * added if this method is not invoked.
	 * @param w
	 * int frame width.
	 * @param h
	 * int frame width.
	 */var _uO1=_2O1._uO1=function _uO1(w,h){if(_cO1&&!_jO1)return;width=w;height=h;if(width<1)width=320;if(height<1)height=240;_kO1=true;};/*
	 * Initiates GIF file creation on the given stream.
	 * @param os
	 * OutputStream on which GIF images are written.
	 * @return false if initial write failed.
	 */var start=_2O1.start=function start(){
_w81();var _lx=true;_iO1=false;out=new _4O1();try{out._8O1("GIF89a");}catch(e){_lx=false;}return _cO1=_lx;};var _LO1=_2O1._LO1=function _LO1(){_w81();var _lx=true;_iO1=false;out=new _4O1();return _cO1=_lx;};var _yO1=function _yO1(){var _Ai=_dO1.length;var _MO1=_Ai/3;_eO1=[];var _NO1=new _OO1(_dO1,_Ai,_H91);_fO1=_NO1.process();var _0l=0;for(var _J6=0;_J6<_MO1;_J6++){var index=_NO1.map(_dO1[_0l++]&0xff,_dO1[_0l++]&0xff,_dO1[_0l++]&0xff);_gO1[index]=true;_eO1[_J6]=index;}_dO1=null;colorDepth=8;_hO1=7;if(transparent!==null){
_aO1=_PO1(transparent);}};var _xO1=function _xO1(){var _Ai=_dO1.length;var _MO1=_Ai/3;_eO1=[];_fO1=[];for(var _Y4=0;_Y4<8;_Y4++){for(var _Z4=0;_Z4<8;_Z4++){for(var __4=0;__4<4;__4++){var index=32*_Y4+4*_Z4+__4;_fO1[index*3+0]=floor((__4+0.5)*255/4);_fO1[index*3+2]=floor((_Y4+0.5)*255/8);_fO1[index*3+1]=floor((_Z4+0.5)*255/8);}}}var _0l=0;for(var _J6=0;_J6<_MO1;_J6++){var __4=floor((4*(_dO1[_0l++]&0xff)/256));var _Z4=floor((8*(_dO1[_0l++]&0xff)/256));var _Y4=floor((8*(_dO1[_0l++]&0xff)/256));var index=_Y4*32+_Z4*4+__4;
_gO1[index]=true;_eO1[_J6]=index;}_dO1=null;colorDepth=8;_hO1=7;if(transparent!==null){_aO1=0;}};var _PO1=function _PO1(c){if(_fO1===null)return -1;var _Y4=(c&0xFF0000)>>16;var _Z4=(c&0x00FF00)>>8;var __4=(c&0x0000FF);var _QO1=0;var _RO1=256*256*256;var _Ai=_fO1.length;for(var i=0;i<_Ai;){var _OE1=_Y4-(_fO1[i++]&0xff);var _PE1=_Z4-(_fO1[i++]&0xff);var _QE1=__4-(_fO1[i]&0xff);var _Xo=_OE1*_OE1+_PE1*_PE1+_QE1*_QE1;var index=i/3;if(_gO1[index]&&(_Xo<_RO1)){_RO1=_Xo;_QO1=index;}i++;}return _QO1;};var getWidth=_2O1.getWidth=function getWidth(){
return width;};var getHeight=_2O1.getHeight=function getHeight(){return height;};var _wO1=function _wO1(){var w=width;var h=height;_dO1=[];var data=_B5;var _c9=0;for(var i=0;i<h;i++){for(var _J6=0;_J6<w;_J6++){var __4=(i*w*4)+_J6*4;_dO1[_c9++]=data[__4];_dO1[_c9++]=data[__4+1];_dO1[_c9++]=data[__4+2];}}};var _CO1=function _CO1(){out._7O1(0x21);out._7O1(0xf9);out._7O1(4);var _SO1;var _TO1;if(transparent===null){_SO1=0;_TO1=0;}else {_SO1=1;_TO1=2;}if(dispose>=0){_TO1=dispose&7;}_TO1<<=2;out._7O1(0|_TO1|0|_SO1);_UO1(_bO1);
out._7O1(_aO1);out._7O1(0);};var _DO1=function _DO1(){out._7O1(0x21);out._7O1(0xfe);out._7O1(_lO1.length);out._8O1(_lO1);out._7O1(0);};var _EO1=function _EO1(){out._7O1(0x2c);_UO1(0);_UO1(0);_UO1(width);_UO1(height);if(_jO1){out._7O1(0);}else {out._7O1(0x80|0|0|0|_hO1);}};var _zO1=function _zO1(){_UO1(width);_UO1(height);out._7O1((0x80|0x70|0x00|_hO1));out._7O1(0);out._7O1(0);};var _BO1=function _BO1(){out._7O1(0x21);out._7O1(0xff);out._7O1(11);out._8O1("NETSCAPE"+"2.0");out._7O1(3);out._7O1(1);_UO1(repeat);
out._7O1(0);};var _AO1=function _AO1(){out._9O1(_fO1);var _c7=(3*256)-_fO1.length;for(var i=0;i<_c7;i++)out._7O1(0);};var _UO1=function _UO1(_VO1){out._7O1(_VO1&0xFF);out._7O1((_VO1>>8)&0xFF);};var _FO1=function _FO1(){var _WO1=new _XO1(width,height,_eO1,colorDepth);_WO1.encode(out);};var _2a1=_2O1._2a1=function _2a1(){return out;};var _YO1=_2O1._YO1=function _YO1(_ZO1,__O1){_cO1=_ZO1;_jO1=__O1;};return _2O1;};/*
 * This class handles LZW encoding
 * Adapted from Jef Poskanzer's Java port by way of J. M. G. Elliott.
 * @author Kevin Weiner (original Java version - kweiner@fmsware.com)
 * @author Thibault Imbert (AS3 version - bytearray.org)
 * @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif)
 * @version 0.1 AS3 implementation
 */_XO1=function(){
var _2O1={};var _0P1=-1;var _1P1;var _2P1;var _3P1;var _4P1;var _5P1;var _6P1;var _7P1=12;var _8P1=5003;var _9P1;var _aP1=_7P1;var _bP1;var _cP1=1<<_7P1;var _dP1=[];var _eP1=[];var _fP1=_8P1;var _gP1=0;var _hP1=false;var _iP1;var _jP1;var _kP1;var _lP1=0;var _mP1=0;var _nP1=[0x0000,0x0001,0x0003,0x0007,0x000F,0x001F,0x003F,0x007F,0x00FF,0x01FF,0x03FF,0x07FF,0x0FFF,0x1FFF,0x3FFF,0x7FFF,0xFFFF];var _oP1;var _pP1=[];var _XO1=_2O1._XO1=function _XO1(width,height,_dO1,_qP1){_1P1=width;_2P1=height;_3P1=_dO1;_4P1=Math.max(2,_qP1);
};var _rP1=function _rP1(c,_sP1){_pP1[_oP1++]=c;if(_oP1>=254)_tP1(_sP1);};var _uP1=function _uP1(_sP1){_vP1(_fP1);_gP1=_jP1+2;_hP1=true;output(_jP1,_sP1);};var _vP1=function _vP1(_fP1){for(var i=0;i<_fP1;++i)_dP1[i]=-1;};var compress=_2O1.compress=function compress(_wP1,_sP1){var _xP1;var i;var c;var _yP1;var _TO1;var _zP1;var _AP1;_iP1=_wP1;_hP1=false;_9P1=_iP1;_bP1=_BP1(_9P1);_jP1=1<<(_wP1-1);_kP1=_jP1+1;_gP1=_jP1+2;_oP1=0;_yP1=_CP1();_AP1=0;for(_xP1=_fP1;_xP1<65536;_xP1*=2)++_AP1;_AP1=8-_AP1;_zP1=_fP1;_vP1(_zP1);
output(_jP1,_sP1);_DP1:while((c=_CP1())!=_0P1){_xP1=(c<<_aP1)+_yP1;i=(c<<_AP1)^_yP1;if(_dP1[i]==_xP1){_yP1=_eP1[i];continue;}else if(_dP1[i]>=0){_TO1=_zP1-i;if(i===0)_TO1=1;do {if((i-=_TO1)<0)i+=_zP1;if(_dP1[i]==_xP1){_yP1=_eP1[i];continue _DP1;}}while(_dP1[i]>=0);}output(_yP1,_sP1);_yP1=c;if(_gP1<_cP1){_eP1[i]=_gP1++;_dP1[i]=_xP1;}else _uP1(_sP1);}output(_yP1,_sP1);output(_kP1,_sP1);};var encode=_2O1.encode=function encode(_EP1){_EP1._7O1(_4P1);_5P1=_1P1*_2P1;_6P1=0;compress(_4P1+1,_EP1);_EP1._7O1(0);
};var _tP1=function _tP1(_sP1){if(_oP1>0){_sP1._7O1(_oP1);_sP1._9O1(_pP1,0,_oP1);_oP1=0;}};var _BP1=function _BP1(_9P1){return(1<<_9P1)-1;};var _CP1=function _CP1(){if(_5P1===0)return _0P1;--_5P1;var _FP1=_3P1[_6P1++];return _FP1&0xff;};var output=function output(_gc1,_sP1){_lP1&=_nP1[_mP1];if(_mP1>0)_lP1|=(_gc1<<_mP1);else _lP1=_gc1;_mP1+=_9P1;while(_mP1>=8){_rP1((_lP1&0xff),_sP1);_lP1>>=8;_mP1-=8;}if(_gP1>_bP1||_hP1){if(_hP1){_bP1=_BP1(_9P1=_iP1);_hP1=false;}else {++_9P1;if(_9P1==_aP1)_bP1=_cP1;else _bP1=_BP1(_9P1);
}}if(_gc1==_kP1){while(_mP1>0){_rP1((_lP1&0xff),_sP1);_lP1>>=8;_mP1-=8;}_tP1(_sP1);}};_XO1.apply(this,arguments);return _2O1;};/* * This class handles Neural-Net quantization algorithm
 * @author Kevin Weiner (original Java version - kweiner@fmsware.com)
 * @author Thibault Imbert (AS3 version - bytearray.org)
 * @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif)
 * @version 0.1 AS3 implementation
 */_OO1=function(){var _2O1={};var _GP1=256;var _HP1=499;var _IP1=491;
var _JP1=487;var _KP1=503;var _LP1=(3*_KP1);var _MP1=(_GP1-1);var _NP1=4;var _OP1=100;var _PP1=16;var _QP1=(1<<_PP1);var _RP1=10;var _SP1=(1<<_RP1);var _TP1=10;var _ol1=(_QP1>>_TP1);var _UP1=(_QP1<<(_RP1-_TP1));var _VP1=(_GP1>>3);var _WP1=6;var _XP1=(1<<_WP1);var _YP1=(_VP1*_XP1);var _ZP1=30;var __P1=10;var _0Q1=(1<<__P1);var _1Q1;var _2Q1=8;var _3Q1=(1<<_2Q1);var _4Q1=(__P1+_2Q1);var _5Q1=(1<<_4Q1);var _6Q1;var _7Q1;var _8Q1;var _9Q1;var _aQ1=[];var _gu=[];var freq=[];var _bQ1=[];var _OO1=_2O1._OO1=function _OO1(_cQ1,_Ai,_H91){var i;
var _2z;_6Q1=_cQ1;_7Q1=_Ai;_8Q1=_H91;_9Q1=new Array(_GP1);for(i=0;i<_GP1;i++){_9Q1[i]=new Array(4);_2z=_9Q1[i];_2z[0]=_2z[1]=_2z[2]=(i<<(_NP1+8))/_GP1;freq[i]=_QP1/_GP1;_gu[i]=0;}};var _dQ1=function _dQ1(){var map=[];var index=new Array(_GP1);for(var i=0;i<_GP1;i++)index[_9Q1[i][3]]=i;var _0l=0;for(var _p7=0;_p7<_GP1;_p7++){var _J6=index[_p7];map[_0l++]=(_9Q1[_J6][0]);map[_0l++]=(_9Q1[_J6][1]);map[_0l++]=(_9Q1[_J6][2]);}return map;};var _eQ1=function _eQ1(){var i;var _J6;var _fQ1;var _gQ1;var _2z;var q;var _hQ1;var _iQ1;
_hQ1=0;_iQ1=0;for(i=0;i<_GP1;i++){_2z=_9Q1[i];_fQ1=i;_gQ1=_2z[1];for(_J6=i+1;_J6<_GP1;_J6++){q=_9Q1[_J6];if(q[1]<_gQ1){_fQ1=_J6;_gQ1=q[1];}}q=_9Q1[_fQ1];if(i!=_fQ1){_J6=q[0];q[0]=_2z[0];_2z[0]=_J6;_J6=q[1];q[1]=_2z[1];_2z[1]=_J6;_J6=q[2];q[2]=_2z[2];_2z[2]=_J6;_J6=q[3];q[3]=_2z[3];_2z[3]=_J6;}if(_gQ1!=_hQ1){_aQ1[_hQ1]=(_iQ1+i)>>1;for(_J6=_hQ1+1;_J6<_gQ1;_J6++)_aQ1[_J6]=i;_hQ1=_gQ1;_iQ1=i;}}_aQ1[_hQ1]=(_iQ1+_MP1)>>1;for(_J6=_hQ1+1;_J6<256;_J6++)_aQ1[_J6]=_MP1;};var _jQ1=function _jQ1(){var i;var _J6;
var __4;var _Z4;var _Y4;var _K01;var _2p;var alpha;var step;var _2i;var _kQ1;var _2z;var _FP1;var _lQ1;if(_7Q1<_LP1)_8Q1=1;_1Q1=30+((_8Q1-1)/3);_2z=_6Q1;_FP1=0;_lQ1=_7Q1;_kQ1=_7Q1/(3*_8Q1);_2i=(_kQ1/_OP1)|0;alpha=_0Q1;_K01=_YP1;_2p=_K01>>_WP1;if(_2p<=1)_2p=0;for(i=0;i<_2p;i++)_bQ1[i]=alpha*(((_2p*_2p-i*i)*_3Q1)/(_2p*_2p));if(_7Q1<_LP1)step=3;else if((_7Q1%_HP1)!==0)step=3*_HP1;else {if((_7Q1%_IP1)!==0)step=3*_IP1;else {if((_7Q1%_JP1)!==0)step=3*_JP1;else step=3*_KP1;}}i=0;while(i<_kQ1){__4=(_2z[_FP1+0]&0xff)<<_NP1;
_Z4=(_2z[_FP1+1]&0xff)<<_NP1;_Y4=(_2z[_FP1+2]&0xff)<<_NP1;_J6=_mQ1(__4,_Z4,_Y4);_nQ1(alpha,_J6,__4,_Z4,_Y4);if(_2p!==0)_oQ1(_2p,_J6,__4,_Z4,_Y4);_FP1+=step;if(_FP1>=_lQ1)_FP1-=_7Q1;i++;if(_2i===0)_2i=1;if(i%_2i===0){alpha-=alpha/_1Q1;_K01-=_K01/_ZP1;_2p=_K01>>_WP1;if(_2p<=1)_2p=0;for(_J6=0;_J6<_2p;_J6++)_bQ1[_J6]=alpha*(((_2p*_2p-_J6*_J6)*_3Q1)/(_2p*_2p));}}};var map=_2O1.map=function map(__4,_Z4,_Y4){var i;var _J6;var _ho;var _05;var _pQ1;var _2z;var _qQ1;_pQ1=1000;_qQ1=-1;i=_aQ1[_Z4];_J6=i-1;while((i<_GP1)||(_J6>=0)){
if(i<_GP1){_2z=_9Q1[i];_ho=_2z[1]-_Z4;if(_ho>=_pQ1)i=_GP1;else {i++;if(_ho<0)_ho=-_ho;_05=_2z[0]-__4;if(_05<0)_05=-_05;_ho+=_05;if(_ho<_pQ1){_05=_2z[2]-_Y4;if(_05<0)_05=-_05;_ho+=_05;if(_ho<_pQ1){_pQ1=_ho;_qQ1=_2z[3];}}}}if(_J6>=0){_2z=_9Q1[_J6];_ho=_Z4-_2z[1];if(_ho>=_pQ1)_J6=-1;else {_J6--;if(_ho<0)_ho=-_ho;_05=_2z[0]-__4;if(_05<0)_05=-_05;_ho+=_05;if(_ho<_pQ1){_05=_2z[2]-_Y4;if(_05<0)_05=-_05;_ho+=_05;if(_ho<_pQ1){_pQ1=_ho;_qQ1=_2z[3];}}}}}return(_qQ1);};var process=_2O1.process=function process(){
_jQ1();_rQ1();_eQ1();return _dQ1();};var _rQ1=function _rQ1(){var i;var _J6;for(i=0;i<_GP1;i++){_9Q1[i][0]>>=_NP1;_9Q1[i][1]>>=_NP1;_9Q1[i][2]>>=_NP1;_9Q1[i][3]=i;}};var _oQ1=function _oQ1(_2p,i,__4,_Z4,_Y4){var _J6;var _0l;var _2m1;var _jc1;var _05;var _e7;var _2z;_2m1=i-_2p;if(_2m1<-1)_2m1=-1;_jc1=i+_2p;if(_jc1>_GP1)_jc1=_GP1;_J6=i+1;_0l=i-1;_e7=1;while((_J6<_jc1)||(_0l>_2m1)){_05=_bQ1[_e7++];if(_J6<_jc1){_2z=_9Q1[_J6++];try{_2z[0]-=(_05*(_2z[0]-__4))/_5Q1;_2z[1]-=(_05*(_2z[1]-_Z4))/_5Q1;_2z[2]-=(_05*(_2z[2]-_Y4))/_5Q1;
}catch(e){}}if(_0l>_2m1){_2z=_9Q1[_0l--];try{_2z[0]-=(_05*(_2z[0]-__4))/_5Q1;_2z[1]-=(_05*(_2z[1]-_Z4))/_5Q1;_2z[2]-=(_05*(_2z[2]-_Y4))/_5Q1;}catch(e){}}}};var _nQ1=function _nQ1(alpha,i,__4,_Z4,_Y4){var _c7=_9Q1[i];_c7[0]-=(alpha*(_c7[0]-__4))/_0Q1;_c7[1]-=(alpha*(_c7[1]-_Z4))/_0Q1;_c7[2]-=(alpha*(_c7[2]-_Y4))/_0Q1;};var _mQ1=function _mQ1(__4,_Z4,_Y4){var i;var _ho;var _05;var _sQ1;var _tQ1;var _uQ1;var _vQ1;var _pQ1;var _wQ1;var _c7;_pQ1=~(1<<31);_wQ1=_pQ1;_uQ1=-1;_vQ1=_uQ1;for(i=0;i<_GP1;i++){_c7=_9Q1[i];_ho=_c7[0]-__4;
if(_ho<0)_ho=-_ho;_05=_c7[1]-_Z4;if(_05<0)_05=-_05;_ho+=_05;_05=_c7[2]-_Y4;if(_05<0)_05=-_05;_ho+=_05;if(_ho<_pQ1){_pQ1=_ho;_uQ1=i;}_sQ1=_ho-((_gu[i])>>(_PP1-_NP1));if(_sQ1<_wQ1){_wQ1=_sQ1;_vQ1=i;}_tQ1=(freq[i]>>_TP1);freq[i]-=_tQ1;_gu[i]+=(_tQ1<<_RP1);}freq[_uQ1]+=_ol1;_gu[_uQ1]-=_UP1;return(_vQ1);};_OO1.apply(this,arguments);return _2O1;};_Yg:function _xQ1(){var _yQ1="#define MATRIX_VIEW 0\n"+"#define MATRIX_PROJECTION 1\n"+"#define MATRIX_WORLD 2\n"+"#define MATRIX_WORLD_VIEW 3\n"+"#define MATRIX_WORLD_VIEW_PROJECTION 4\n"+"#define MATRICES_MAX 5\n"+"#define FOG_SETTINGS 0\n"+"#define FOG_COLOUR 1\n"+"\n"+"uniform mat4 matrices[MATRICES_MAX];\n"+"uniform vec4 fogParameters[2];\n"+"\n"+"attribute vec3 vertex;\n"+"attribute vec4 color;\n"+"attribute vec2 UV;\n"+"\n"+"varying vec4 fcolor;\n"+"varying vec2 texc;\n"+"varying vec4 fogColor;\n"+"varying float fogFactor;\n"+"\n"+"float CalcFogFactor(vec4 pos)\n"+"{\n"+"	vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n"+"   vec4 fogParams = fogParameters[FOG_SETTINGS];\n"+"	return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n"+"}\n"+"\n"+"void main(void)\n"+"{\n"+"    fcolor = color;\n"+"    texc   = UV;\n"+"    vec4 pos = vec4(vertex.xyz, 1);\n"+"    fogFactor = CalcFogFactor(pos);\n"+"    fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n"+"    gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n"+"    gl_PointSize = 1.0;\n"+"}";
return _yQ1;}function _zQ1(){var _AQ1="precision highp float;\n"+"uniform sampler2D pTexure;\n"+"uniform bool alphaTestEnabled;\n"+"uniform float alphaRefValue;"+"\n"+"varying vec4 fcolor;\n"+"varying vec2 texc;\n"+"varying vec4 fogColor;\n"+"varying float fogFactor;\n"+"\n"+"void DoAlphaTest(vec4 SrcColour)\n"+"{\n"+"    if (alphaTestEnabled)\n"+"    {\n"+"        if (SrcColour.a <= alphaRefValue)\n"+"        {\n"+"	        discard;\n"+"        }\n"+"    }\n"+"}\n"+"\n"+"void main(void)\n"+"{\n"+"    vec4 color   = texture2D(pTexure, texc).rgba * fcolor.rgba;\n"+"    DoAlphaTest(color);\n"+"    gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n"+"}\n";
return _AQ1;}function _BQ1(){var _CQ1="#define LIGHTS_MAX 8\n"+"#define MATRIX_VIEW 0\n"+"#define MATRIX_PROJECTION 1\n"+"#define MATRIX_WORLD 2\n"+"#define MATRIX_WORLD_VIEW 3\n"+"#define MATRIX_WORLD_VIEW_PROJECTION 4\n"+"#define MATRICES_MAX 5\n"+"#define FOG_SETTINGS 0\n"+"#define FOG_COLOUR 1\n"+"\n"+"uniform mat4 matrices[MATRICES_MAX];\n"+"uniform vec4 fogParameters[2];\n"+"\n"+"uniform vec4 dirlightdir[LIGHTS_MAX];\n"+"uniform vec4 pointlightpos[LIGHTS_MAX];\n"+"uniform vec4 lightcol[LIGHTS_MAX];\n"+"uniform vec4 ambientcol;\n"+"\n"+"attribute vec3 vertex;\n"+"attribute vec3 normal;\n"+"attribute vec4 color;\n"+"attribute vec2 UV;\n"+"\n"+"varying vec4 fcolor;\n"+"varying vec2 texc;\n"+"varying vec4 fogColor;\n"+"varying float fogFactor;\n"+"\n"+"float CalcFogFactor(vec4 pos)\n"+"{\n"+"	vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n"+"   vec4 fogParams = fogParameters[FOG_SETTINGS];\n"+"	return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n"+"}\n"+"\n"+"vec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n"+"{\n"+"    float dotresult = dot(ws_normal, dir.xyz);\n"+"    dotresult = max(0.0, dotresult);\n"+"    return dotresult * diffusecol;\n"+"}\n"+"\n"+"vec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n"+"{\n"+"	float atten = 0.0;\n"+"\n"+"	vec3 diffvec = ws_pos - posrange.xyz;\n"+"	float veclen = length(diffvec);\n"+"	if (veclen <= posrange.w)\n"+"	{\n"+"        atten = 1.0 / (1.0 + (veclen / posrange.w));\n"+"	}\n"+"\n"+"	diffvec /= veclen;\n"+"	float dotresult = dot(ws_normal, diffvec);\n"+"	dotresult = max(0.0, dotresult);\n"+"\n"+"	return (diffusecol * dotresult * atten);\n"+"}\n"+"\n"+"vec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n"+"{\n"+"    vec3 ws_normal;\n"+"    vec3 ws_pos;\n"+"    vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n"+"\n"+"    ws_normal = (matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n"+"    ws_normal = -normalize(ws_normal);\n"+"    ws_pos = (matrices[MATRIX_WORLD] * objectspacepos).xyz;\n"+"\n"+"    vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0);\n"+"    for(int i = 0; i < LIGHTS_MAX; i++)\n"+"    {\n"+"    	accumcol += DoDirLight(ws_normal, dirlightdir[i], lightcol[i]);\n"+"    }\n"+"    for(int i = 0; i < LIGHTS_MAX; i++)\n"+"    {\n"+"    	accumcol += DoPointLight(ws_pos, ws_normal, pointlightpos[i], lightcol[i]);\n"+"    }\n"+"    accumcol *= vertexcolour;\n"+"    accumcol += ambientcol;\n"+"    return min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n"+"}\n"+"\n"+"void main(void)\n"+"{\n"+"    vec4 pos = vec4(vertex.xyz, 1);\n"+"    vec4 lcolor = DoLighting(color, pos, normal);\n"+"    fcolor = vec4(lcolor.xyz, 1);\n"+"    fogFactor = CalcFogFactor(pos);\n"+"    fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n"+"    texc = UV;\n"+"    gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n"+"    gl_PointSize = 1.0;\n"+"}";
return _CQ1;}function _DQ1(){var _AQ1="precision highp float;\n"+"uniform sampler2D pTexure;\n"+"uniform bool alphaTestEnabled;\n"+"uniform float alphaRefValue;"+"\n"+"varying vec4 fcolor;\n"+"varying vec2 texc;\n"+"varying vec4 fogColor;\n"+"varying float fogFactor;\n"+"\n"+"void DoAlphaTest(vec4 SrcColour)\n"+"{\n"+"    if (alphaTestEnabled)\n"+"    {\n"+"        if (SrcColour.a <= alphaRefValue)\n"+"        {\n"+"	        discard;\n"+"        }\n"+"    }\n"+"}\n"+"\n"+"\n"+"void main(void)\n"+"{\n"+"    vec4 color   = texture2D( pTexure, texc ).rgba * fcolor.rgba;\n"+"    DoAlphaTest(color);\n"+"    gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n"+"}\n";
return _AQ1;}/*@constructor */function _EQ1(_FQ1,_9V){var _Pz=null;var _GQ1=null,_Pu=null,_HQ1=null;var _IQ1=0;var _JQ1,_KQ1,_LQ1;var _MQ1,_NQ1,_OQ1=[];var _PQ1,_QQ1,_RQ1,_SQ1;var _TQ1,_UQ1;var _VQ1=0;Object.defineProperties(this,{_uh1:{get :function(){return _Pz;}},_WQ1:{get :function(){return(_Pz!==null&&_Pz!==undefined);}},_7b:{get :function(){return _HQ1;}},_rb:{get :function(){return _MQ1;}},_XQ1:{get :function(){return _NQ1;}},_YQ1:{get :function(){return _JQ1;}},_ZQ1:{get :function(){return _KQ1;}},__Q1:{get :function(){
return _PQ1;}},_0R1:{get :function(){return _QQ1;}},_1R1:{get :function(){return _RQ1;},set :function(_Je){_RQ1=_Je;}},_2R1:{get :function(){return _SQ1;},set :function(_Je){_SQ1=_Je;}},_Yt:{get :function(){return _TQ1;}}});(function(){_Pz=_3R1(_FQ1,_9V);if(_Pz){_4R1(_Pz);var _5R1=_Pz.getParameter(_Pz.MAX_TEXTURE_IMAGE_UNITS);_TQ1=(_5R1<_Wa._6R1)?_5R1:_Wa._6R1;_UQ1=_Pz.getParameter(_Pz.MAX_TEXTURE_SIZE);_Pu=new _7R1(_9V._8R1);_HQ1=new _9R1(_TQ1,32,_Pu,_9V._8R1);_GQ1=new _aR1(_Pu,_HQ1);_bR1();_cR1();_dR1();_Pu._Ar(_JQ1);
_eR1();}})();function _eR1(){_fR1=(_Pz.getExtension('EXT_texture_filter_anisotropic')||_Pz.getExtension('MOZ_EXT_texture_filter_anisotropic')||_Pz.getExtension('WEBKIT_EXT_texture_filter_anisotropic'));_gR1=_Pz.getExtension('OES_texture_half_float');_hR1=_Pz.getExtension('OES_texture_half_float_linear');_iR1=_Pz.getExtension('EXT_color_buffer_half_float');_jR1=_Pz.getExtension('OES_texture_float');_kR1=_Pz.getExtension('OES_texture_float_linear');_lR1=_Pz.getExtension('EXT_color_buffer_float');if(!(typeof WebGL2RenderingContext===typeof undefined)&&(_Pz instanceof WebGL2RenderingContext)){
_mR1=true;}if(_mR1){_nR1=true;_oR1=true;_pR1=true;_qR1=true;}else {_nR1=false;_oR1=false;_pR1=false;_qR1=false;}if(_iR1||_lR1){if(_mR1){_rR1=true;_sR1=true;}else {if((_gR1&&_hR1)||(_jR1&&_kR1)){_rR1=true;_sR1=false;}}}if(_lR1){if(_mR1){if(_kR1){_tR1=true;_uR1=true;}}else {if(_jR1&&_kR1){_tR1=true;_uR1=true;}}}_vR1=_Pz.getExtension('OES_standard_derivatives');if(_mR1||_vR1){_wR1=true;if(_vR1){_xR1=true;}}_yR1=_Pz.getExtension('WEBGL_depth_texture');_zd1=(_yR1!=null);}function _4R1(_zR1){_7R1.prototype._zR1=_zR1;
_aR1.prototype._zR1=_zR1;__c.prototype._zR1=_zR1;_Dd1.prototype._zR1=_zR1;_AR1.prototype._zR1=_zR1;_BR1.prototype._zR1=_zR1;};function _CR1(){var userAgent=navigator.userAgent.toString().toLowerCase();var _DR1=userAgent.indexOf("trident/");if(_DR1>=0){var version=parseFloat(userAgent.slice(_DR1+"trident/".length));if(version==7){return true;}}return false;};function _3R1(_FQ1,_9V){var _ER1=null;var _FR1=["webgl","experimental-webgl","moz-webgl","webkit-3d"];{for(var i=0;i<_FR1.length;i++){try{var _GR1={alpha:true,
stencil:_9V._HR1,antialias:false,premultipliedAlpha:false,preserveDrawingBuffer:_9V._IR1};_ER1=_FQ1.getContext(_FR1[i],_GR1);if(_ER1){break;}}catch(_Oj){return null;}}}if(_ER1){_PQ1=_FQ1.width;_QQ1=_FQ1.height;_RQ1=_PQ1;_SQ1=_QQ1;}return _ER1;};function _bR1(){var _JR1=new _AR1(),_KR1=new _AR1();_JR1._LR1();_JR1._MR1();_JR1._NR1();_KR1._LR1();_KR1._MR1();_KR1._NR1();_KR1._OR1();_MQ1=_OQ1.push(_JR1)-1;_NQ1=_OQ1.push(_KR1)-1;_GQ1._PR1(_MQ1);_GQ1._PR1(_NQ1);_JR1._QR1=_KR1._QR1=true;};/*@this {yyWebGL} */this._RR1=function(_y91){
for(var i in _OQ1){if(!_OQ1.hasOwnProperty(i))continue;if(_OQ1[i]._Kk1(_y91)){return i;}}var _SR1=_OQ1.push(_y91)-1;_GQ1._PR1(_SR1);return _SR1;};/*@this {yyWebGL} */this._1d=function(_Ld){return _OQ1[_Ld];};function _TR1(_ZG){while(((_ZG&0x1)==0)&&(_ZG>1)){_ZG>>=1;}return(_ZG==1);};/*@this {yyWebGL} */this._UR1=function(){return _UQ1;};/*@this {yyWebGL} */this._VR1=function(_WR1,_XR1,_YR1,_ZR1){_GQ1._we1();_Pu._VR1(_WR1,_XR1,_YR1,_ZR1);};/*@this {yyWebGL} */this._Ru=function(_96,_a6,_Xi,_Yi){_GQ1._we1();
_Pu._Ru(_96,_a6,_Xi,_Yi);};function __R1(_0S1,type,source){var _1S1=(type=='vertex')?_Pz.VERTEX_SHADER:_Pz.FRAGMENT_SHADER;var __h=_Pz.createShader(_1S1);var _2S1=source;if((_1S1==_Pz.FRAGMENT_SHADER)&&_xR1){_2S1="#extension GL_OES_standard_derivatives : enable\n"+source;}_Pz.shaderSource(__h,_2S1);_Pz.compileShader(__h);if(!_Pz.getShaderParameter(__h,_Pz.COMPILE_STATUS)){console.log("Could not compile "+type+" shader:\n\n"+_Pz.getShaderInfoLog(__h));console.log("----------------Shader Begin----------------");
console.log(_2S1);console.log("-----------------Shader END----------------");return;}_Pz.attachShader(_0S1,__h);};function _cR1(){var _CQ1=_xQ1();var _AQ1=_zQ1();var _3S1=_Pz.createProgram();var error=_Pz.getError();__R1(_3S1,"vertex",_CQ1);__R1(_3S1,"fragment",_AQ1);_Pz.linkProgram(_3S1);error=_Pz.getError();if(!_Pz.getProgramParameter(_3S1,_Pz.LINK_STATUS)){alert("Could not initialise shaders\n\n");return false;}_Pz.useProgram(_3S1);_JQ1=_3S1;_3S1._4S1=_Pz.getAttribLocation(_3S1,"vertex");_3S1._5S1=_Pz.getAttribLocation(_3S1,
"normal");_3S1._6S1=_Pz.getAttribLocation(_3S1,"color");_3S1._7S1=_Pz.getAttribLocation(_3S1,"UV");_3S1._8S1=_Pz.getUniformLocation(_3S1,"pTexure");_3S1._9S1=_Pz.getUniformLocation(_3S1,"matrices");_3S1._aS1=_Pz.getUniformLocation(_3S1,"fogParameters");_3S1._bS1=_Pz.getUniformLocation(_3S1,"alphaTestEnabled");_3S1._cS1=_Pz.getUniformLocation(_3S1,"alphaRefValue");_3S1._dS1=[];_3S1._dS1.push(_Pz.getAttribLocation(_3S1,"vertex"));_3S1._dS1.push(_Pz.getAttribLocation(_3S1,"color"));_3S1._dS1.push(_Pz.getAttribLocation(_3S1,
"UV"));_3S1._dS1=[];_3S1._eS1=[];_3S1._fS1=[];if(_3S1._4S1!=-1){_3S1._dS1.push(_3S1._4S1);_3S1._eS1.push("vertex");_3S1._fS1.push(_Wa._Sd);}if(_3S1._5S1!=-1){_3S1._dS1.push(_3S1._5S1);_3S1._eS1.push("normal");_3S1._fS1.push(_Wa._7e);}if(_3S1._6S1!=-1){_3S1._dS1.push(_3S1._6S1);_3S1._eS1.push("color");_3S1._fS1.push(_Wa._Yd);}if(_3S1._7S1!=-1){_3S1._dS1.push(_3S1._7S1);_3S1._eS1.push("UV");_3S1._fS1.push(_Wa._5e);}_3S1._gS1=_VQ1++;return true;};function _dR1(){var _yQ1=_BQ1();var _AQ1=_DQ1();var _3S1=_Pz.createProgram();
var error=_Pz.getError();__R1(_3S1,"vertex",_yQ1);__R1(_3S1,"fragment",_AQ1);_Pz.linkProgram(_3S1);error=_Pz.getError();if(!_Pz.getProgramParameter(_3S1,_Pz.LINK_STATUS)){alert("Could not initialise 3D shader\n\n");return false;}_Pz.useProgram(_3S1);_3S1._hS1=_Pz.getUniformLocation(_3S1,"ViewMatrix");_KQ1=_3S1;_3S1._4S1=_Pz.getAttribLocation(_3S1,"vertex");_3S1._5S1=_Pz.getAttribLocation(_3S1,"normal");_3S1._6S1=_Pz.getAttribLocation(_3S1,"color");_3S1._7S1=_Pz.getAttribLocation(_3S1,"UV");_3S1._8S1=_Pz.getUniformLocation(_3S1,
"pTexure");_3S1._9S1=_Pz.getUniformLocation(_3S1,"matrices");_3S1._iS1=_Pz.getUniformLocation(_3S1,"dirlightdir");_3S1._jS1=_Pz.getUniformLocation(_3S1,"pointlightpos");_3S1._kS1=_Pz.getUniformLocation(_3S1,"lightcol");_3S1._lS1=_Pz.getUniformLocation(_3S1,"ambientcol");_3S1._aS1=_Pz.getUniformLocation(_3S1,"fogParameters");_3S1._bS1=_Pz.getUniformLocation(_3S1,"alphaTestEnabled");_3S1._cS1=_Pz.getUniformLocation(_3S1,"alphaRefValue");_3S1._dS1=[];_3S1._eS1=[];_3S1._fS1=[];if(_3S1._4S1!=-1){_3S1._dS1.push(_3S1._4S1);
_3S1._eS1.push("vertex");_3S1._fS1.push(_Wa._Sd);}if(_3S1._5S1!=-1){_3S1._dS1.push(_3S1._5S1);_3S1._eS1.push("normal");_3S1._fS1.push(_Wa._7e);}if(_3S1._6S1!=-1){_3S1._dS1.push(_3S1._6S1);_3S1._eS1.push("color");_3S1._fS1.push(_Wa._Yd);}if(_3S1._7S1!=-1){_3S1._dS1.push(_3S1._7S1);_3S1._eS1.push("UV");_3S1._fS1.push(_Wa._5e);}_3S1._gS1=_VQ1++;return true;};/*@this {yyWebGL} */this._mS1=function(_nS1,_oS1,_pS1){if(_nS1=="None"||_oS1=="None"){var _qS1={_rS1:null,_sS1:null};return _qS1;}var _3S1=_Pz.createProgram();
var error=_Pz.getError();__R1(_3S1,"vertex",_nS1);__R1(_3S1,"fragment",_oS1);_Pz.linkProgram(_3S1);error=_Pz.getError();if(!_Pz.getProgramParameter(_3S1,_Pz.LINK_STATUS)){var _qS1={_rS1:null,_sS1:null};return _qS1;}_Pz.useProgram(_3S1);_3S1._9S1=_Pz.getUniformLocation(_3S1,"gm_Matrices");_3S1._iS1=_Pz.getUniformLocation(_3S1,"gm_Lights_Direction");_3S1._jS1=_Pz.getUniformLocation(_3S1,"gm_Lights_PosRange");_3S1._kS1=_Pz.getUniformLocation(_3S1,"gm_Lights_Colour");_3S1._lS1=_Pz.getUniformLocation(_3S1,
"gm_AmbientColour");_3S1._4S1=_Pz.getAttribLocation(_3S1,"in_Position");_3S1._5S1=_Pz.getAttribLocation(_3S1,"in_Normal");_3S1._6S1=_Pz.getAttribLocation(_3S1,"in_Colour");_3S1._7S1=_Pz.getAttribLocation(_3S1,"in_TextureCoord");_3S1._dS1=[];_3S1._fS1=[];for(var _tS1=0;_tS1<_pS1.length;_tS1++){_3S1._dS1.push(_Pz.getAttribLocation(_3S1,_pS1[_tS1]));switch(_pS1[_tS1]){case "in_Position":_3S1._fS1.push(_Wa._Sd);break;case "in_Normal":_3S1._fS1.push(_Wa._7e);break;case "in_Colour":_3S1._fS1.push(_Wa._Yd);
break;case "in_TextureCoord":_3S1._fS1.push(_Wa._5e);break;default :_3S1._fS1.push(_Wa._5e);break;}}_3S1._eS1=_pS1;var _uS1="gm_BaseTexture";var _Xt=[_uS1];var _eu=0;var _141=[];var _vS1=_Pz.getUniformLocation(_3S1,_uS1);_Pz.uniform1iv(_vS1,[_eu++]);_3S1._8S1=_vS1;_3S1._wS1={_Ef1:[]};for(var _G5=0,_xS1=_Pz.getProgramParameter(_3S1,_Pz.ACTIVE_UNIFORMS);_G5<_xS1;_G5++){var _yS1=1;var _zS1=_Pz.getActiveUniform(_3S1,_G5),_AS1=_zS1["name"];if(_zS1["size"]>1){var _6a=_AS1.indexOf('[');if(_6a>0){_AS1=_AS1.substring(0,
_6a);}}if((_zS1["type"]==_Pz.SAMPLER_2D)||(_zS1["type"]==_Pz.SAMPLER_CUBE)){if(_AS1!=_uS1){_Xt[_eu]=_AS1;var _tS1=_Pz.getUniformLocation(_3S1,_AS1);_Pz.uniform1iv(_tS1,[_eu++]);}}else {switch(_zS1["type"]){case _Pz.FLOAT:_yS1=1;break;case _Pz.BOOL:_yS1=1;break;case _Pz.INT:_yS1=1;break;case _Pz._BS1:_yS1=1;break;case _Pz.FLOAT_VEC2:_yS1=2;break;case _Pz.FLOAT_VEC3:_yS1=3;break;case _Pz.FLOAT_VEC4:_yS1=4;break;case _Pz.INT_VEC2:_yS1=2;break;case _Pz.INT_VEC3:_yS1=3;break;case _Pz.INT_VEC4:_yS1=4;break;case _Pz.BOOL_VEC2:_yS1=2;
break;case _Pz.BOOL_VEC3:_yS1=3;break;case _Pz.BOOL_VEC4:_yS1=4;break;case _Pz.FLOAT_MAT2:_yS1=4;break;case _Pz.FLOAT_MAT3:_yS1=9;break;case _Pz.FLOAT_MAT4:_yS1=16;break;default :_yS1=1;}}_3S1._wS1._Ef1[_G5]=_AS1;_3S1._wS1[_AS1]={index:_G5,location:_Pz.getUniformLocation(_3S1,_AS1),_CS1:_zS1,width:_yS1,size:_zS1.size};_3S1._wS1[_G5]=_3S1._wS1[_AS1];_3S1._5q1=_nS1;_3S1._DS1=_oS1;}_3S1._gS1=_VQ1++;_qS1={_rS1:_3S1,_sS1:_Xt};return _qS1;};/*@this {yyWebGL} */this._ES1=function(){_IQ1++;};/*@this {yyWebGL} */this._FS1=function(){
_GQ1._we1();_Pu._84=_IQ1;_Pu._GS1();_Pu._JC();_Pz.clearColor(1,1,1,1);_Pz.colorMask(false,false,false,true);_Pz.clear(_Pz.COLOR_BUFFER_BIT);_Pz.colorMask(true,true,true,true);};/*@this {yyWebGL} */this._HS1=function(){_GQ1._we1();_Pu._GS1();};/*@this {yyWebGL} */this._IS1=function(_0j,_1k){_HQ1._nb(_Wa._9b,_0j);_HQ1._nb(_Wa._ab,_1k);_HQ1._nb(_Wa._bb,_0j);_HQ1._nb(_Wa._cb,_1k);};this._JS1=function(_xr){_HQ1._nb(_Wa._et,_xr);};/*@this {yyWebGL} */this._KS1=function(_0F){_HQ1._nb(_Wa._ft,_0F);};/*@this {yyWebGL} */this._LS1=function(_0F){
_HQ1._nb(_Wa._qt,_0F?_Wa._MS1:_Wa._NS1);};/*@this {yyWebGL} */this._OS1=function(_PS1){};/*@this {yyWebGL} */this._QS1=function(_0F){_HQ1._nb(_Wa._ht,_0F);};/*@this {yyWebGL} *//*@this {yyWebGL} */this._wr=function(_RS1,_SS1,_TS1,_US1){var _Qt={_sr:_RS1,_tr:_SS1,_ur:_TS1,alpha:_US1};_HQ1._nb(_Wa._Rt,_Qt);};/*@this {yyWebGL} */this._Xr=function(_c5,_VS1,_WS1,_XS1){_GQ1._we1();_Pu._Xr(_c5,_VS1,_WS1,_XS1);};/*@this {yyWebGL} */this._1s=function(_c5,_0F,_YS1){_GQ1._we1();_Pu._1s(_c5,_0F,_YS1);};/*@this {yyWebGL} */this._2s=function(_YS1){
_GQ1._we1();_Pu._ZS1(_YS1);};/*@this {yyWebGL} */this._4s=function(__S1){var _0T1=__S1[0];var end=__S1[2];var start=end;if(__S1[1]!=0.0)start=end-(1.0/__S1[1]);var colour=(__S1[4]*255)|((__S1[5]*255)<<8)|((__S1[6]*255)<<16)|((__S1[7]*255)<<24);_HQ1._nb(_Wa._lt,_0T1);_HQ1._nb(_Wa._nt,start);_HQ1._nb(_Wa._ot,end);_HQ1._nb(_Wa._mt,colour);};/*@this {yyWebGL} */this._1T1=function(_xr,_2T1){_HQ1._nb(_Wa._Tt,_xr);_HQ1._nb(_Wa._Vt,(_2T1*255)|0);};/*@this {yyWebGL} */this._3T1=function(_Z31,_4P){if(_4P){_HQ1._Zt(_Z31,
_Wa._7u,_Wa._8u);_HQ1._Zt(_Z31,_Wa._9u,_Wa._8u);}else {_HQ1._Zt(_Z31,_Wa._7u,_Wa._au);_HQ1._Zt(_Z31,_Wa._9u,_Wa._au);}};/*@this {yyWebGL} */this._4T1=function(_Z31,_bu){_HQ1._Zt(_Z31,_Wa.__t,_bu);_HQ1._Zt(_Z31,_Wa._1u,_bu);};/*@this {yyWebGL} */this._5T1=function(){return _TQ1;};/*@this {yyWebGL} */this._6T1=function(_xr){_HQ1._nb(_Wa._2t,_xr);};/*@this {yyWebGL} */this._7T1=function(_ak){_HQ1._nb(_Wa._4t,_ak);};/*@this {yyWebGL} */this._8T1=function(_9T1){_HQ1._nb(_Wa._dt,_9T1);};/*@this {yyWebGL} */this._aT1=function(_5t){
_HQ1._nb(_Wa._6t,_5t);};/*@this {yyWebGL} */this._Ar=function(_bT1){_GQ1._we1();_Pu._Ar(_bT1);_LQ1=_bT1;};/*@this {yyWebGL} */this._cT1=function(_bT1,_dT1){var _eT1=_bT1._wS1[_dT1];if(_eT1){return _eT1.index;}return -1;};/*@this {yyWebGL} */this._fT1=function(_441,_gT1){if(_441!=-1){_GQ1._we1();_Pu._fT1(_441,_gT1);}};/*@this {yyWebGL} */this._hT1=function(_441,_gT1){if(_441!=-1){_GQ1._we1();_Pu._hT1(_441,_gT1);}};/*@this {yyWebGL} */this._iT1=function(_441,_gT1){if(_441!=-1){_GQ1._we1();_Pu._iT1(_441,
_gT1);}};/*@this {yyWebGL} */this._jT1=function(_441,_gT1){var width=_LQ1._wS1[_441].width;var size=_LQ1._wS1[_441].size;var _141;var _p7=_gT1.length;var _kT1=(_p7+width)-((_p7+width)%width);if(_kT1>(width*size))_kT1=width*size;if(_p7==_kT1){_141=new Float32Array(_gT1);}else {_141=new Float32Array(_kT1);if(_kT1<_p7)_p7=_kT1;for(var i=0;i<_p7;i++){_141[i]=_gT1[i];}}return _141;};/*@this {yyWebGL} */this._lT1=function(_441,_gT1){if(_441!=-1){_GQ1._we1();_gT1=this._jT1(_441,_gT1);_Pu._lT1(_441,_gT1);}};/*@this {yyWebGL} */this._mT1=function(_441,
_gT1){if(_441!=-1){_GQ1._we1();_gT1=this._jT1(_441,_gT1);_Pu._mT1(_441,_gT1);}};/*@this {yyWebGL} */this._nT1=function(_Uw){_GQ1._we1();_Pu._nT1(_Uw);};this._we1=function(){_GQ1._we1();};/*@this {yyWebGL} */this._oT1=function(_me,_96,_a6,_Xi,_Yi,_FQ1,_y91){_Pu._oT1(_me,_96,_a6,_Xi,_Yi,_FQ1,_y91);};/*@this {yyWebGL} */this._pT1=function(_Z31,_me){if(_me!=null){_Wa._qT1(_me instanceof _Dd1,"Texture is not a yyGLTexture",_Wa._rT1);}_GQ1._we1();_Pu._pT1(_Z31,_me);};/*@this {yyWebGL} */this._Jr=function(_7s){
_GQ1._we1();_Pu._sT1(_7s);};/*@this {yyWebGL} */this._Kr=function(_7s){_GQ1._we1();_Pu._tT1(_7s);};/*@this {yyWebGL} */this._uT1=function(_7s){_GQ1._we1();_Pu._vT1(_7s);};/*@this {yyWebGL} */this._wT1=function(_xT1){var _95=new _Dd1(undefined,_xT1.width,_xT1.height,_TR1(_xT1.width)&&_TR1(_xT1.height),_xT1,_xT1._yT1,0,_cm);return _95;};this._zT1=function(_y91){switch(_y91){case _3f1:return "surface_unknown";case _cm:return "surface_rgba8unorm";case _Ve1:return "surface_r16float";case _We1:return "surface_r32float";
case _Xe1:return "surface_rgba4unorm";case _Ye1:return "surface_r8unorm";case _Ze1:return "surface_rg8unorm";case __e1:return "surface_rgba16float";case _0f1:return "surface_rgba32float";default :return "surface_unknown";}};this._AT1=function(_y91){var _BT1={_CT1:_Pz.RGBA,_gh:_Pz.RGBA,type:_Pz.UNSIGNED_BYTE};switch(_y91){case _3f1:return _BT1;case _cm:_BT1._CT1=_Pz.RGBA;_BT1._gh=_Pz.RGBA;_BT1.type=_Pz.UNSIGNED_BYTE;return _BT1;case _Xe1:_BT1._CT1=_Pz.RGBA;_BT1._gh=_Pz.RGBA;_BT1.type=_Pz.UNSIGNED_SHORT_4_4_4_4;return _BT1;
case _DT1:return _BT1;case _ET1:return _BT1;case _FT1:return _BT1;case _GT1:return _BT1;case _HT1:return _BT1;case _IT1:return _BT1;case _JT1:if(!_zd1)return _BT1;_BT1._CT1=_Pz.DEPTH_STENCIL;_BT1._gh=_Pz.DEPTH_STENCIL;_BT1.type=_yR1.UNSIGNED_INT_24_8_WEBGL;return _BT1;case _Ve1:if(!_rR1||!_sR1)return _BT1;_BT1._CT1=_nR1?_Pz.R16F:_Pz.RED;_BT1._gh=_Pz.RED;_BT1.type=_nR1?_Pz.HALF_FLOAT:_Pz.HALF_FLOAT_OES;return _BT1;case _We1:if(!_tR1||!_uR1)return _BT1;_BT1._CT1=_oR1?_Pz.R32F:_Pz.RED;_BT1._gh=_Pz.RED;_BT1.type=_Pz.FLOAT;
return _BT1;case _Ye1:if(!_pR1)return _BT1;_BT1._CT1=_qR1?_Pz.R8:_Pz.RED;_BT1._gh=_Pz.RED;_BT1.type=_Pz.UNSIGNED_BYTE;return _BT1;case _Ze1:if(!_pR1)return _BT1;_BT1._CT1=_qR1?_Pz.RG8:_Pz.RG;_BT1._gh=_Pz.RG;_BT1.type=_Pz.UNSIGNED_BYTE;return _BT1;case __e1:if(!_rR1)return _BT1;_BT1._CT1=_mR1?_Pz.RGBA16F:_Pz.RGBA;_BT1._gh=_Pz.RGBA;_BT1.type=_mR1?_Pz.HALF_FLOAT:_gR1.HALF_FLOAT_OES;return _BT1;case _0f1:if(!_tR1)return _BT1;_BT1._CT1=_oR1?_Pz.RGBA32F:_Pz.RGBA;_BT1._gh=_Pz.RGBA;_BT1.type=_Pz.FLOAT;return _BT1;default :_BT1._CT1=_Pz.RGBA;
_BT1._gh=_Pz.RGBA;_BT1.type=_Pz.UNSIGNED_BYTE;return true;}return _BT1;};this._KT1=function(_LT1,_MT1){var _NT1=_Pz.getParameter(_Pz.TEXTURE_BINDING_2D);var _BT1=this._AT1(_LT1._zd);var _ed=_Pz.createTexture();_Pz.bindTexture(_Pz.TEXTURE_2D,_ed);if(_LT1.Image==null){_Pz.texImage2D(_Pz.TEXTURE_2D,0,_BT1._CT1,_LT1._OT1,_LT1._PT1,0,_BT1._gh,_BT1.type,null);}else if(_LT1.Image instanceof Uint8Array){_Pz.texImage2D(_Pz.TEXTURE_2D,0,_Pz.RGBA,_LT1._OT1,_LT1._PT1,0,_Pz.RGBA,_Pz.UNSIGNED_BYTE,_LT1.Image);}else {_Pz.texImage2D(_Pz.TEXTURE_2D,
0,_Pz.RGBA,_Pz.RGBA,_Pz.UNSIGNED_BYTE,_LT1.Image);}if(_MT1!==undefined&&(_MT1==_Wa._QT1)||(_MT1==_Wa._RT1)&&((_LT1._Og!==undefined&&(_LT1._Og&_ST1._TT1)!==0))){_Pz.generateMipmap(_Pz.TEXTURE_2D);var _UT1=_LT1._Og;_UT1|=_ST1._VT1;_LT1._Og=_UT1;}_LT1._8e1=_ed;_LT1._WT1._XT1(_Pz.TEXTURE_2D);_Pz.bindTexture(_Pz.TEXTURE_2D,_NT1);_LT1._YT1=true;};this._2f1=function(_y91){switch(_y91){case _cm:return true;case _Ve1:if(_rR1&&_sR1)return true;else return false;case _We1:if(_tR1&&_uR1)return true;else return false;case _Xe1:return true;
case _Ye1:if(_pR1)return true;else return false;case _Ze1:if(_pR1)return true;else return false;case __e1:if(_rR1)return true;else return false;case _0f1:if(_tR1)return true;else return false;default :return false;}};/*@this {yyWebGL} */this._ZT1=function(_5d,_el,__T1,_0U1,_1U1,_2U1){var _ah=0;if(_5d){_ah|=_Pz.COLOR_BUFFER_BIT;}if(_el){_ah|=_Pz.DEPTH_BUFFER_BIT;}if(__T1){_ah|=_Pz.STENCIL_BUFFER_BIT;}_0U1=(_0U1!==undefined)?_0U1:0;_1U1=(_1U1!==undefined)?_1U1:1.0;_2U1=(_2U1!==undefined)?_2U1:0;_Pu._ZT1(_ah,_0U1,_1U1,
_2U1);};/*@this {yyWebGL} */this._9e1=function(_Sm,_el){_GQ1._we1();_Pu._9e1(_Sm,_el);};function _3U1(_4U1,_Xi,_Yi){if((_Xi==0)||(_Yi==0)){return;}var _5U1=_4U1[(_Yi-1)*_Xi]&0xffffff;for(var i=0;i<(_Xi*_Yi);i++){if((_4U1[i]&0xffffff)==_5U1){_4U1[i]=_4U1[i]&0xffffff;}}};function _6U1(_id){var max=_UQ1;var size=1;while(size<=max){if(_id<=size)return size;size=size<<1;}return max;};/*@this {yyWebGL} */this._7U1=function(_xT1,_96,_a6,_Xi,_Yi,_9m,_am,_8U1){this._we1();var _9U1=new Uint8Array(_Xi*_Yi*4);_Pz.readPixels(_96,
_SQ1-(_a6+_Yi),_Xi,_Yi,_Pz.RGBA,_Pz.UNSIGNED_BYTE,_9U1);var _aU1;if(_8U1){var _Li=new ArrayBuffer(_Xi*_Yi*4);_aU1=new Uint8Array(_Li);for(var _H5=0;_H5<_Yi;_H5++){var _bU1=_9U1.subarray(_H5*_Xi*4,(_H5+1)*_Xi*4);var _cU1=_aU1.subarray((_Yi-1-_H5)*_Xi*4,(_Yi-_H5)*_Xi*4);_cU1.set(_bU1);}if(_9m){_3U1(new Int32Array(_Li),_Xi,_Yi);}}else {_aU1=_9U1;}var w=_6U1(_Xi);var h=_6U1(_Yi);var _NT1=_Pz.getParameter(_Pz.TEXTURE_BINDING_2D);var _95=new _Dd1(undefined,w,h,(w==_Xi)&&(h==_Yi),_aU1);_xT1.width=w;_xT1.height=h;_Pz.bindTexture(_Pz.TEXTURE_2D,
_NT1);_Pu._JC();return _95;};/*@this {yyWebGL} */this._dU1=function(_xT1,_eU1,_96,_a6,_Xi,_Yi,_9m,_am,_fU1=true){this._HS1();var _gU1=_Pz.getParameter(_Pz.FRAMEBUFFER_BINDING);var _Li=new ArrayBuffer(_Xi*_Yi*4);var _aU1=new Uint8Array(_Li);_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_eU1);_Pz.readPixels(_96,_a6,_Xi,_Yi,_Pz.RGBA,_Pz.UNSIGNED_BYTE,_aU1);_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_gU1);if(_9m){_3U1(new Int32Array(_Li),_Xi,_Yi);}var w=_Xi;var h=_Yi;if(_fU1){w=_6U1(_Xi);h=_6U1(_Yi);}var _NT1=_Pz.getParameter(_Pz.TEXTURE_BINDING_2D);
var _hU1=new ArrayBuffer(w*h*4);var _iU1=new Uint8Array(_hU1);var y;var _zk=0;var _jU1=0;for(y=0;y<_Yi;y++){var x;for(x=0;x<_Xi;x++){_iU1[_zk++]=_aU1[_jU1++];_iU1[_zk++]=_aU1[_jU1++];_iU1[_zk++]=_aU1[_jU1++];_iU1[_zk++]=_aU1[_jU1++];}for(;x<w;x++){_iU1[_zk++]=0;_iU1[_zk++]=0;_iU1[_zk++]=0;_iU1[_zk++]=0;}}for(;y<h;y++){var x;for(x=0;x<w;x++){_iU1[_zk++]=0;_iU1[_zk++]=0;_iU1[_zk++]=0;_iU1[_zk++]=0;}}var _95=new _Dd1(undefined,w,h,(w==_Xi)&&(h==_Yi),_iU1);_xT1.width=w;_xT1.height=h;_Pz.bindTexture(_Pz.TEXTURE_2D,
_NT1);this._HS1();_Pu._JC();return _95;};/*@this {yyWebGL} */this._kU1=function(_xT1,_lU1,_Xi,_Yi){var w=_6U1(_Xi);var h=_6U1(_Yi);var _NT1=_Pz.getParameter(_Pz.TEXTURE_BINDING_2D);var _95=new _Dd1(undefined,w,h,(w==_Xi)&&(h==_Yi),_lU1);_xT1.width=w;_xT1.height=h;_Pz.bindTexture(_Pz.TEXTURE_2D,_NT1);_Pu._JC();return _95;};/*@this {yyWebGL} */this._mU1=function(_xT1,_lU1,_Xi,_Yi){var _Li=new ArrayBuffer(_Xi*_Yi*4);var _nU1=new DataView(_Li);for(var _c7=0;_c7<_Xi*_Yi;_c7++){_nU1.setUint32(_c7*4,~~_lU1[_c7],true);
}return this._kU1(_xT1,new Uint8Array(_Li),_Xi,_Yi);};/*@this {yyWebGL} */this._oU1=function(_me,_ga){_Wa._qT1(_me instanceof _Dd1,"Texture is not a yyGLTexture",_Wa._rT1);if(!_pU1(_me,_Wa._qU1)){_on(_me);_A9(_me);}var _ed=_me._8e1;var w=_me._OT1;var h=_me._PT1;var _gU1=_Pz.getParameter(_Pz.FRAMEBUFFER_BINDING);var _rU1=_Pz.createFramebuffer();_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_rU1);_Pz.framebufferTexture2D(_Pz.FRAMEBUFFER,_Pz.COLOR_ATTACHMENT0,_Pz.TEXTURE_2D,_ed,0);var _aU1=new Uint8Array(w*h*4);_Pz.readPixels(0,
0,w,h,_Pz.RGBA,_Pz.UNSIGNED_BYTE,_aU1);_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_gU1);_Pz.deleteFramebuffer(_rU1);for(var i=0;i<(w*h);i++){_aU1[(i*4)+3]=_ga[i];}var _up1=_6U1(w);var _7h=_6U1(h);var _NT1=_Pz.getParameter(_Pz.TEXTURE_BINDING_2D);var _95=new _Dd1(undefined,_up1,_7h,(_up1==w)&&(_7h==h),_aU1);_Pz.deleteTexture(_me._8e1);_Pz.bindTexture(_Pz.TEXTURE_2D,_NT1);return _95;};/*@this {yyWebGL} */this._sU1=function(_96,_a6,_Xi,_Yi,_y91){var _aU1=null;var _BT1=this._AT1(_y91);switch(_y91){case _cm:_aU1=new Uint8Array(_Xi*_Yi*4);
break;case _Xe1:_aU1=new Uint16Array(_Xi*_Yi);break;case _Ve1:_aU1=new Uint16Array(_Xi*_Yi);break;case _We1:_aU1=new Float32Array(_Xi*_Yi);break;case _Ye1:_aU1=new Uint8Array(_Xi*_Yi);break;case _Ze1:_aU1=new Uint8Array(_Xi*_Yi*2);break;case __e1:_aU1=new Uint16Array(_Xi*_Yi*4);break;case _0f1:_aU1=new Float32Array(_Xi*_Yi*4);break;default :return null;}_Pz.readPixels(_96,_a6,_Xi,_Yi,_BT1._gh,_BT1.type,_aU1);return _aU1;};function _tU1(_uU1){var _95=0.0;var _vU1=(_uU1&0x7C00)>>10;var _R11=_uU1&0x03FF;var sign=1.0;if((_uU1>>15)!=0){
sign=-1.0;}if(_vU1!=0){if(_vU1===0x1f){if(_R11!=0)_95=NaN;else _95=Infinity;}else {_95=sign*(Math.pow(2,_vU1-15)*(1+(_R11/0x400)));}}else {_95=sign*(0.00006103515625*(_R11/0x400));}return _95;}/*@this {yyWebGL} */this._wU1=function(_xU1,_y91){var _95=0;if(_xU1==null)return 0;switch(_y91){case _cm:{_95=(_xU1[0])|(_xU1[1]<<8)|(_xU1[2]<<16)|(_xU1[3]<<24);}break;case _Xe1:{var _Y4,_Z4,__4,_05;var _yU1=_xU1[0];_Y4=(((_yU1&0xf000)>>12)/15.0)*255.0;_Z4=(((_yU1&0xf00)>>8)/15.0)*255.0;__4=(((_yU1&0xf0)>>4)/15.0)*255.0;
_05=((_yU1&0xf)/15.0)*255.0;_Y4=_r7(_Y4,255);_Z4=_r7(_Z4,255);__4=_r7(__4,255);_05=_r7(_05,255);_95=_Y4|(_Z4<<8)|(__4<<16)|(_05<<24);}break;case _Ve1:{var _Y4=_tU1(_xU1[0]);_95=new Array(_Y4,0.0,0.0,0.0);}break;case _We1:{var _Y4=_xU1[0];_95=new Array(_Y4,0.0,0.0,0.0);}break;case _Ye1:{_95=_xU1[0];}break;case _Ze1:{_95=(_xU1[0])|(_xU1[1]<<8);}break;case __e1:{var _Y4,_Z4,__4,_05;_Y4=_tU1(_xU1[0]);_Z4=_tU1(_xU1[1]);__4=_tU1(_xU1[2]);_05=_tU1(_xU1[3]);_95=new Array(_Y4,_Z4,__4,_05);}break;case _0f1:{var _Y4,_Z4,
__4,_05;_Y4=_xU1[0];_Z4=_xU1[1];__4=_xU1[2];_05=_xU1[3];_95=new Array(_Y4,_Z4,__4,_05);}break;}return _95;};/*@this {yyWebGL} */this._zU1=function(_96,_a6,_y91){this._HS1();var _aU1=this._sU1(_96,_SQ1-_a6,1,1,_y91);var _55=this._wU1(_aU1,_y91);_Pu._JC();return _55;};/*@this {yyWebGL} */this._AU1=function(_eU1,_96,_a6,_y91){this._HS1();var _gU1=_Pz.getParameter(_Pz.FRAMEBUFFER_BINDING);var _aU1=new Uint8Array(16);_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_eU1);var _aU1=this._sU1(_96,_a6,1,1,_y91);var _55=this._wU1(_aU1,
_y91);_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_gU1);_Pu._JC();return new Long(_55);};/*@this {yyWebGL} */this._BU1=function(_eU1,_96,_a6,_Xi,_Yi,_y91){this._HS1();var _gU1=_Pz.getParameter(_Pz.FRAMEBUFFER_BINDING);_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_eU1);var _aU1=this._sU1(_96,_a6,_Xi,_Yi,_y91);if(!(_aU1 instanceof Uint8Array)){var _CU1=new Uint8Array(_aU1.buffer);_aU1=_CU1;}_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_gU1);_Pu._JC();return _aU1;};/*@this {yyWebGL} */this._DU1=function(_Xi,_Yi,_y91){var _NT1=_Pz.getParameter(_Pz.TEXTURE_BINDING_2D);
var _gU1=_Pz.getParameter(_Pz.FRAMEBUFFER_BINDING);var _EU1=_Pz.getParameter(_Pz.RENDERBUFFER_BINDING);var _FU1=null;var _GU1=null;{var _HU1=_Pz.createFramebuffer();_HU1.width=_Xi;_HU1.height=_Yi;_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_HU1);var _IU1=new _Dd1(undefined,_Xi,_Yi,_TR1(_Xi)&&_TR1(_Yi),null,0,0,_y91);this._KT1(_IU1);_Pz.framebufferTexture2D(_Pz.FRAMEBUFFER,_Pz.COLOR_ATTACHMENT0,_Pz.TEXTURE_2D,_IU1._8e1,0);if(_rd1){if(_zd1){_FU1=new _Dd1(undefined,_Xi,_Yi,_TR1(_Xi)&&_TR1(_Yi),null,0,0,_JT1);this._KT1(_FU1);
}else {_GU1=_Pz.createRenderbuffer();_Pz.bindRenderbuffer(_Pz.RENDERBUFFER,_GU1);_Pz.renderbufferStorage(_Pz.RENDERBUFFER,_Pz.DEPTH_STENCIL,_HU1.width,_HU1.height);}}}_Pz.bindTexture(_Pz.TEXTURE_2D,_NT1);_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_gU1);_Pz.bindRenderbuffer(_Pz.RENDERBUFFER,_EU1);var _JU1={_Vd1:_HU1,_Bd1:_GU1,_8e1:_IU1,_Cd1:_FU1,};return _JU1;};/*@this {yyWebGL} */this._KU1=function(_eU1){_09._7b._LU1(_eU1._8e1);_Pz.deleteFramebuffer(_eU1._Vd1);if(_eU1._Bd1!=null){_Pz.deleteRenderbuffer(_eU1._Bd1);
}_Pz.deleteTexture(_eU1._8e1._8e1);if(_eU1._Cd1!=null&&_eU1._Cd1 instanceof _Dd1){_Pz.deleteTexture(_eU1._Cd1._8e1);}_eU1._8e1=null;_eU1._Cd1=null;};/*@this {yyWebGL} */this._MU1=function(_NU1){_Pz.deleteTexture(_NU1);};/*@this {yyWebGL} */this._OU1=function(_me){_Wa._qT1(_me instanceof _Dd1,"NULL texture is not a yyGLTexture",_Wa._rT1);_Pu._PU1=_me;};/*@this {yyWebGL} */this._pb=function(_Cc,_me,_Ld,_QU1){_Wa._qT1((_me==null)||(_me instanceof _Dd1),"Texture is not a yyGLTexture",_Wa._rT1);return _GQ1._pb(_Cc,
_me,_Ld,_QU1,_OQ1[_Ld],_IQ1);};/*@this {yyWebGL} */this._pe=function(_Cc,_me,_RU1,_SU1,_TU1){_Wa._qT1((_me==null)||(_me instanceof _Dd1),"Texture is not a yyGLTexture",_Wa._rT1);_GQ1._UU1(_Cc,_me,_RU1,_SU1,_TU1);};/*@this {yyWebGL} */this._VU1=function(_Bb1){var texture=_Bb1.texture._z9;if(!_pU1(texture,_Wa._qU1)){_on(texture);_A9(texture);}var _ed=texture._8e1;var w=texture._OT1;var h=texture._PT1;var _gU1=_Pz.getParameter(_Pz.FRAMEBUFFER_BINDING);var _rU1=_Pz.createFramebuffer();_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,
_rU1);_Pz.framebufferTexture2D(_Pz.FRAMEBUFFER,_Pz.COLOR_ATTACHMENT0,_Pz.TEXTURE_2D,_ed,0);var data=new Uint8Array(w*h*4);_Pz.readPixels(0,0,w,h,_Pz.RGBA,_Pz.UNSIGNED_BYTE,data);_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_gU1);_Pz.deleteFramebuffer(_rU1);return data;};}var _Wa={_WU1:8,_6R1:8,_XU1:-1,_qb:0,_Hc:1,_Gc:2,_Ec:3,_Fc:4,_Dc:5,_Sd:1,_Yd:2,_7e:3,_5e:4,_YU1:5,_ZU1:6,__U1:7,_0V1:8,_1V1:9,_2V1:10,_3V1:11,_4V1:12,_5V1:13,_6V1:14,_7V1:14,_9e:1,_Td:2,_Vd:3,_de:4,_Zd:5,_fe:6,_8V1:6,_9V1:1,__a:2,_aV1:3,_1b:4,
_Xa:5,_Za:6,_bV1:7,_cV1:8,_0b:9,_dV1:10,_eV1:11,_fV1:12,_gV1:13,_hV1:14,_iV1:15,_jV1:16,_kV1:16,_tt:1,_lV1:2,_vt:3,_wt:4,_xt:5,_mV1:0,_ft:1,_nV1:2,_oV1:3,_ht:4,_Tt:5,_9b:6,_ab:7,_qt:8,_gt:9,_Vt:10,_Fu:11,_et:12,_lt:13,_pV1:14,_mt:15,_qV1:16,_nt:17,_ot:18,_rV1:19,_sV1:20,_tV1:21,_uV1:22,_vV1:23,_Rt:24,_2t:25,_bt:26,_ct:27,_dt:28,_4t:29,_6t:30,_8t:31,_9t:32,_db:33,_bb:34,_cb:35,_wV1:36,_st:37,_ut:38,_xV1:39,_yV1:1,_zV1:2,_AV1:3,_BV1:4,_CV1:5,_DV1:6,_EV1:7,_FV1:8,_GV1:1,_HV1:2,_IV1:3,_JV1:4,_KV1:5,
_LV1:6,_MV1:7,_NV1:8,_8u:0,_au:1,__t:0,_1u:1,_7u:2,_9u:3,_cu:4,_ku:5,_nu:6,_hu:7,_qu:8,_ru:9,_OV1:10,_2u:0,_0u:1,_PV1:2,_QV1:3,_NS1:0,_RV1:1,_MS1:2,_SV1:0,_TV1:1,_UV1:2,_VV1:0,_WV1:1,_XV1:0,_YV1:1,_ZV1:0,__V1:1,_0W1:2,_1W1:3,_2W1:0,_3W1:1,_4W1:2,_5W1:4,_6W1:8,_qU1:-1,_7W1:0,_QT1:1,_RT1:2,_8W1:0,_9W1:1,_rT1:2,_aW1:1,_qT1:function(_bW1,_cW1,_dW1){if(!_bW1){throw new Error(_cW1);}}};Object.freeze(_Wa);/*@constructor */function _7R1(_eW1){var _Pz=this._zR1;var _fW1=_Pz.getExtension("EXT_blend_minmax");if(_fW1==null){
debug("Extension EXT_blend_minmax not found! Min and Max blend modes will not be available!");}var _gW1=0,_hW1=1,_iW1=2,_jW1=3,_kW1=4,_lW1=5,_mW1=6,_nW1=7,_oW1=8,_pW1=9,_qW1=10,_rW1=11,_sW1=12,_tW1=13,_uW1=14,_vW1=15,_wW1=16,_xW1=17,_yW1=18,_zW1=19,_AW1=20,_BW1=21,_CW1=22,_DW1=23,_EW1=24,_FW1=25,_GW1=26,_HW1=27,_IW1=28;var _JW1=0,_KW1=1,_LW1=2,_MW1=3,_NW1=4,_OW1=5;var _PW1=1,_QW1=2,_RW1=4,_SW1=8;var _TW1=[];var _UW1=[],_VW1,_WW1;var _XW1,_YW1=[],_ZW1=[],__W1=[],_0X1=new Float32Array(_Wa._WU1*4),_1X1=new Float32Array(_Wa._WU1*4),
_2X1=new Float32Array(_Wa._WU1*4),_3X1=new Float32Array(4),_4X1=new Float32Array(8),_5X1=0.0,_6X1=0.0,_7X1=false,_8X1=0.0,_9X1,_aX1=_Pz.SRC_ALPHA,_bX1=_Pz.ONE_MINUS_SRC_ALPHA,_cX1=_Pz.SRC_ALPHA,_dX1=_Pz.ONE_MINUS_SRC_ALPHA;_eX1=_Pz.FUNC_ADD;_fX1=_Pz.FUNC_ADD;var _gX1,_hX1,_iX1;var _IQ1=0,_jX1;Object.defineProperties(this,{_84:{get :function(){return _IQ1;},set :function(_Je){_IQ1=_Je;}},_PU1:{get :function(){return _jX1;},set :function(_Je){_jX1=_Je;}}});(function(){_kX1();var _5R1=_Pz.getParameter(_Pz.MAX_TEXTURE_IMAGE_UNITS);
if(_5R1>_Wa._6R1){_5R1=_Wa._6R1;}for(var _eu=0;_eu<_5R1;_eu++){__W1[_eu]=new _BR1(_eW1);}var _lX1=_mX1(_Wa._yV1);_9X1={_go:0,_nX1:0xffffffff,_oX1:0xffffffff,_ZQ:_pX1(_Wa._NV1),_qX1:_lX1,_rX1:_lX1,_sX1:_lX1};for(var i=0;i<_OW1;i++){_ZW1[i]=new _qr();}_Pz.enable(_Pz.SCISSOR_TEST);})();function _kX1(){_UW1=[];_WW1=undefined;_VW1=undefined;_Qu={x:0,y:0,w:0,h:0};_UW1[0]=1;_UW1[1]=1;};/*@this {yyCommandBuilder} */this._JC=function(){_kX1();};/*@this {yyCommandBuilder} */this._Ar=function(_tX1){if(_tX1!=_VW1){
_WW1=null;_TW1.push(_xW1);_TW1.push(_tX1);_VW1=_tX1;}};/*@this {yyCommandBuilder} */this._pT1=function(_Z31,_me){_09._7b._pT1(_Z31,_me);if(_UW1[_Z31]==_me){return;}_UW1[_Z31]=_me;_TW1.push(_hW1);_TW1.push(_me);_TW1.push(_Z31);};/*@this {yyCommandBuilder} */this._nT1=function(_uw){_TW1.push(_uw);};this._oT1=function(_me,_96,_a6,_Xi,_Yi,_uX1,_y91){_TW1.push(_HW1);_TW1.push(_me);_TW1.push(_96);_TW1.push(_a6);_TW1.push(_Xi);_TW1.push(_Yi);_TW1.push(_uX1);_TW1.push(_y91);};/*@this {yyCommandBuilder} */this._vX1=function(_wX1){
if(_WW1==_wX1)return;_WW1=_wX1;_TW1.push(_sW1);_TW1.push(_wX1);};/*@this {yyCommandBuilder} */this._xX1=function(_it,_yX1){_TW1.push(_iW1);_TW1.push(_it);_TW1.push(_yX1);};/*@this {yyCommandBuilder} */this._zX1=function(_it,_yX1){_TW1.push(_jW1);_TW1.push(_it);_TW1.push(_yX1);};/*@this {yyCommandBuilder} */this._AX1=function(_it,_yX1){_TW1.push(_kW1);_TW1.push(_it);_TW1.push(_yX1);};/*@this {yyCommandBuilder} */this._BX1=function(_it,_yX1){_TW1.push(_lW1);_TW1.push(_it);_TW1.push(_yX1);};/*@this {yyCommandBuilder} */this._CX1=function(_it,
_yX1){_TW1.push(_mW1);_TW1.push(_it);_TW1.push(_yX1);};/*@this {yyCommandBuilder} */this._vA1=function(_it,_yX1){_TW1.push(_nW1);_TW1.push(_it);_TW1.push(_yX1);};/*@this {yyCommandBuilder} */this._tT1=function(_7s){_TW1.push(_pW1);_TW1.push(new _qr(_7s));};/*@this {yyCommandBuilder} */this._sT1=function(_7s){_TW1.push(_qW1);_TW1.push(new _qr(_7s));};/*@this {yyCommandBuilder} */this._vT1=function(_7s){_TW1.push(_oW1);_TW1.push(new _qr(_7s));};/*@this {yyCommandBuilder} */this._VR1=function(_96,_a6,
_Xi,_Yi){_TW1.push(_rW1);_TW1.push(_96);_TW1.push(_a6);_TW1.push(_Xi);_TW1.push(_Yi);};/*@this {yyCommandBuilder} */this._Ru=function(_96,_a6,_Xi,_Yi){_TW1.push(_IW1);_TW1.push(_96);_TW1.push(_a6);_TW1.push(_Xi);_TW1.push(_Yi);};/*@this {yyCommandBuilder} */this._ZT1=function(_7t,_0U1,_1U1,_2U1){_TW1.push(_tW1);_TW1.push(_7t);_TW1.push(Math.floor(_0U1));_TW1.push(_1U1);_TW1.push(_2U1);};/*@this {yyCommandBuilder} */this._9e1=function(_Sm,_el){_TW1.push(_uW1);_TW1.push(_Sm);_TW1.push(_el);};/*@this {yyCommandBuilder} */this._DX1=function(_ga,
_Jt,_Kt,_Lt){_TW1.push(_vW1);_TW1.push(_ga);_TW1.push(_Jt);_TW1.push(_Kt);_TW1.push(_Lt);};/*@this {yyCommandBuilder} */this._IS1=function(_0j,_1k){_TW1.push(_wW1);_TW1.push(_0j);_TW1.push(_1k);};/*@this {yyCommandBuilder} */this._fT1=function(_EX1,_gT1){_TW1.push(_yW1);_TW1.push(_EX1);_TW1.push(_gT1);};/*@this {yyCommandBuilder} */this._hT1=function(_EX1,_gT1){_TW1.push(_zW1);_TW1.push(_EX1);_TW1.push(_gT1);};/*@this {yyCommandBuilder} */this._lT1=function(_EX1,_gT1){_TW1.push(_yW1);_TW1.push(_EX1);
_TW1.push(_gT1);};/*@this {yyCommandBuilder} */this._mT1=function(_EX1,_gT1){_TW1.push(_zW1);_TW1.push(_EX1);_TW1.push(_gT1);};/*@this {yyCommandBuilder} */this._iT1=function(_EX1,_gT1){_TW1.push(_zW1);_TW1.push(_EX1);_TW1.push(_gT1);};/*@this {yyCommandBuilder} */this._nb=function(_FX1,_GX1){_TW1.push(_AW1);_TW1.push(_FX1);_TW1.push(_GX1);};/*@this {yyCommandBuilder} */this._Zt=function(_Z31,_r61,_HX1){_TW1.push(_BW1);_TW1.push(_Z31);_TW1.push(_r61);_TW1.push(_HX1);};/*@this {yyCommandBuilder} */this._Xr=function(_6a,
_IX1,_JX1,_KX1){_TW1.push(_CW1);_TW1.push(_6a);_TW1.push(new Float32Array(_IX1));_TW1.push(new Float32Array(_JX1));_TW1.push(new Float32Array(_KX1));};/*@this {yyCommandBuilder} */this._ZS1=function(colour){_TW1.push(_DW1);_TW1.push(new Float32Array(colour));};/*@this {yyCommandBuilder} */this._LX1=function(_MX1){_TW1.push(_EW1);_TW1.push(new Float32Array(_MX1));};/*@this {yyCommandBuilder} */this._1s=function(_6a,enable,colour){_TW1.push(_FW1);_TW1.push(_6a);_TW1.push(enable);_TW1.push(colour);};/*@this {yyCommandBuilder} */this._1T1=function(_xr,
_NX1){_TW1.push(_GW1);_TW1.push(_xr);_TW1.push(_NX1);};function _OX1(_Ol){switch(_Ol){case _Wa._9V1:return _Pz.ZERO;case _Wa.__a:return _Pz.ONE;case _Wa._aV1:return _Pz.SRC_COLOR;case _Wa._1b:return _Pz.ONE_MINUS_SRC_COLOR;case _Wa._Xa:return _Pz.SRC_ALPHA;case _Wa._Za:return _Pz.ONE_MINUS_SRC_ALPHA;case _Wa._bV1:return _Pz.DST_ALPHA;case _Wa._cV1:return _Pz.ONE_MINUS_DST_ALPHA;case _Wa._0b:return _Pz.DST_COLOR;case _Wa._dV1:return _Pz.ONE_MINUS_DST_COLOR;case _Wa._eV1:return _Pz.SRC_ALPHA_SATURATE;case _Wa._fV1:return 0;
case _Wa._gV1:return 0;case _Wa._hV1:return 0;case _Wa._iV1:return 0;case _Wa._jV1:return 0;case _Wa._kV1:return 0;}return 0;}function _PX1(_Ol){switch(_Ol){case _Wa._tt:return _Pz.FUNC_ADD;case _Wa._vt:return _Pz.FUNC_REVERSE_SUBTRACT;case _Wa._xt:return _Pz.FUNC_SUBTRACT;case _Wa._lV1:if(_fW1==null){debug("Trying to set BlendEquation_Max but EXT_blend_minmax is not supported by device!");return _Pz.FUNC_ADD;}else {return _fW1.MAX_EXT;}break;case _Wa._wt:if(_fW1==null){debug("Trying to set BlendEquation_Min but EXT_blend_minmax is not supported by device!");
return _Pz.FUNC_ADD;}else {return _fW1.MIN_EXT;}break;}return _Pz.FUNC_ADD;}function _mX1(_Ol){switch(_Ol){case _Wa._yV1:return _Pz.KEEP;case _Wa._zV1:return _Pz.ZERO;case _Wa._AV1:return _Pz.REPLACE;case _Wa._BV1:return _Pz.INCR;case _Wa._CV1:return _Pz.DECR;case _Wa._DV1:return _Pz.INVERT;case _Wa._EV1:return _Pz.INCR;case _Wa._FV1:return _Pz.DECR;default :return _Pz.KEEP;}}function _pX1(_Ol){switch(_Ol){case _Wa._GV1:return _Pz.NEVER;case _Wa._HV1:return _Pz.LESS;case _Wa._IV1:return _Pz.EQUAL;case _Wa._JV1:return _Pz.LEQUAL;
case _Wa._KV1:return _Pz.GREATER;case _Wa._LV1:return _Pz.NOTEQUAL;case _Wa._MV1:return _Pz.GEQUAL;case _Wa._NV1:default :return _Pz.ALWAYS;}}function _QX1(_FX1,_GX1){switch(_FX1){case _Wa._ft:if(_GX1){_Pz.enable(_Pz.DEPTH_TEST);}else {_Pz.disable(_Pz.DEPTH_TEST);}break;case _Wa._ht:_RX1(_GX1);break;case _Wa._Tt:_7X1=_GX1;_SX1(_SW1);break;case _Wa._9b:_aX1=_OX1(_GX1);_Pz.blendFuncSeparate(_aX1,_bX1,_cX1,_dX1);break;case _Wa._ab:_bX1=_OX1(_GX1);_Pz.blendFuncSeparate(_aX1,_bX1,_cX1,_dX1);break;case _Wa._st:_eX1=_PX1(_GX1);
_Pz.blendEquationSeparate(_eX1,_fX1);break;case _Wa._ut:_fX1=_PX1(_GX1);_Pz.blendEquationSeparate(_eX1,_fX1);break;case _Wa._qt:if(_GX1!=_Wa._NS1){_Pz.enable(_Pz.CULL_FACE);_Pz.frontFace((_GX1===_Wa._RV1)?_Pz.CW:_Pz.CCW);}else {_Pz.disable(_Pz.CULL_FACE);}break;case _Wa._gt:_Pz.depthFunc(_pX1(_GX1));break;case _Wa._Vt:_8X1=_GX1/255.0;_SX1(_SW1);break;case _Wa._Fu:break;case _Wa._et:if(_GX1){_Pz.enable(_Pz.BLEND);}else {_Pz.disable(_Pz.BLEND);}break;case _Wa._lt:_4X1[0]=_GX1;_SX1(_PW1);break;case _Wa._pV1:break;
case _Wa._mt:_4X1[4]=(_GX1&0xff)/255.0;_4X1[5]=((_GX1>>8)&0xff)/255.0;_4X1[6]=((_GX1>>16)&0xff)/255.0;_4X1[7]=((_GX1>>24)&0xff)/255.0;_SX1(_PW1);break;case _Wa._qV1:break;case _Wa._nt:_5X1=_GX1;var __r=_6X1-_5X1;_4X1[1]=(__r==0.0)?0.0:(1.0/__r);_SX1(_PW1);break;case _Wa._ot:_6X1=_GX1;_4X1[2]=_GX1;var __r=_6X1-_5X1;_4X1[1]=(__r==0.0)?0.0:(1.0/__r);_SX1(_PW1);break;case _Wa._rV1:break;case _Wa._sV1:break;case _Wa._tV1:break;case _Wa._uV1:break;case _Wa._vV1:break;case _Wa._Rt:_TX1(_GX1._sr,_GX1._tr,_GX1._ur,_GX1.alpha);
break;case _Wa._2t:if(_GX1){_Pz.enable(_Pz.STENCIL_TEST);}else {_Pz.disable(_Pz.STENCIL_TEST);}break;case _Wa._bt:_9X1._qX1=_mX1(_GX1);_Pz.stencilOp(_9X1._qX1,_9X1._rX1,_9X1._sX1);break;case _Wa._ct:_9X1._rX1=_mX1(_GX1);_Pz.stencilOp(_9X1._qX1,_9X1._rX1,_9X1._sX1);break;case _Wa._dt:_9X1._sX1=_mX1(_GX1);_Pz.stencilOp(_9X1._qX1,_9X1._rX1,_9X1._sX1);break;case _Wa._4t:_9X1._ZQ=_pX1(_GX1);_Pz.stencilFunc(_9X1._ZQ,_9X1._go,_9X1._nX1);break;case _Wa._6t:_9X1._go=_GX1;_Pz.stencilFunc(_9X1._ZQ,_9X1._go,_9X1._nX1);
break;case _Wa._8t:_9X1._nX1=_GX1;_Pz.stencilFunc(_9X1._ZQ,_9X1._go,_9X1._nX1);break;case _Wa._9t:_hX1=_GX1;_Pz.stencilMask(_GX1);break;case _Wa._db:break;case _Wa._bb:_cX1=_OX1(_GX1);_Pz.blendFuncSeparate(_aX1,_bX1,_cX1,_dX1);break;case _Wa._cb:_dX1=_OX1(_GX1);_Pz.blendFuncSeparate(_aX1,_bX1,_cX1,_dX1);break;case _Wa._wV1:if(_GX1!=_Wa._NS1){_Pz.enable(_Pz.CULL_FACE);_Pz.frontFace((_GX1===_Wa._RV1)?_Pz.CW:_Pz.CCW);}else {_Pz.disable(_Pz.CULL_FACE);}break;}}function _UX1(){if(_XW1&&_XW1._9S1){_ZW1[_MW1].Multiply(_ZW1[_LW1],
_ZW1[_JW1]);_ZW1[_NW1].Multiply(_ZW1[_MW1],_ZW1[_KW1]);var _VX1=new Float32Array(16*_OW1);for(var i=0;i<_OW1;i++){_VX1.set(_ZW1[i]._e7,i*16);}_Pz.uniformMatrix4fv(_XW1._9S1,_Pz._WX1,_VX1);}}function _SX1(_XX1){if(_XX1&_SW1){if(_XW1._bS1!==undefined){_Pz.uniform1i(_XW1._bS1,_7X1);}if(_XW1._cS1!==undefined){_Pz.uniform1f(_XW1._cS1,_8X1);}}if((_XX1&_PW1)&&(_XW1._aS1!==undefined)){_Pz.uniform4fv(_XW1._aS1,_4X1);}if(_XX1&_QW1){if(_XW1._jS1!==undefined){_Pz.uniform4fv(_XW1._jS1,_0X1);}if(_XW1._iS1!==undefined){
_Pz.uniform4fv(_XW1._iS1,_1X1);}if(_XW1._kS1!==undefined){_Pz.uniform4fv(_XW1._kS1,_2X1);}}if((_XX1&_RW1)&&(_XW1._lS1!==undefined)){_Pz.uniform4fv(_XW1._lS1,_3X1);}}var _YX1=[_Pz.NEAREST_MIPMAP_NEAREST,_Pz.LINEAR_MIPMAP_NEAREST,_Pz.LINEAR_MIPMAP_NEAREST,_Pz.NEAREST_MIPMAP_LINEAR,_Pz.LINEAR_MIPMAP_LINEAR,_Pz.LINEAR_MIPMAP_LINEAR,_Pz.NEAREST_MIPMAP_LINEAR,_Pz.LINEAR_MIPMAP_LINEAR,_Pz.LINEAR_MIPMAP_LINEAR,];function _ZX1(_3R,__X1){return _YX1[(__X1*_Wa._QV1)+_3R];}function _0Y1(_me,_Z31){if(_me===null||_me===undefined){
return;}var _1Y1=false;if(_me._Og!==undefined){_1Y1=(_me._Og&_ST1._VT1)!==0;}var _2Y1=__W1[_Z31];if(_2Y1===null||_2Y1===undefined){return;}var _3Y1=_2Y1._4Y1;var _5Y1=_me._WT1._4Y1;if(_me._YT1===true||_3Y1[_Wa.__t]!=_5Y1[_Wa.__t]){_Pz.texParameteri(_Pz.TEXTURE_2D,_Pz.TEXTURE_MAG_FILTER,(_3Y1[_Wa.__t]==_Wa._0u)?_Pz.LINEAR:_Pz.NEAREST);_5Y1[_Wa.__t]=_3Y1[_Wa.__t];}if(!_1Y1){if(_me._YT1===true||_3Y1[_Wa._1u]!=_5Y1[_Wa._1u]){_Pz.texParameteri(_Pz.TEXTURE_2D,_Pz.TEXTURE_MIN_FILTER,(_3Y1[_Wa._1u]==_Wa._0u)?_Pz.LINEAR:_Pz.NEAREST);
_5Y1[_Wa._1u]=_3Y1[_Wa._1u];}}else {if(_me._YT1===true||_3Y1[_Wa._cu]!=_5Y1[_Wa._cu]||_3Y1[_Wa._1u]!=_5Y1[_Wa._1u]){var _6Y1=_ZX1(_3Y1[_Wa._1u],_3Y1[_Wa._cu]);_Pz.texParameteri(_Pz.TEXTURE_2D,_Pz.TEXTURE_MIN_FILTER,_6Y1);_5Y1[_Wa._cu]=_3Y1[_Wa._cu];_5Y1[_Wa._1u]=_3Y1[_Wa._1u];}if(_fR1){if(_3Y1[_Wa._cu]==_Wa._PV1){if(_5Y1[_Wa._qu]!=_3Y1[_Wa._qu]){_5Y1[_Wa._qu]=_3Y1[_Wa._qu];var _7Y1=_Pz.getParameter(_fR1.MAX_TEXTURE_MAX_ANISOTROPY_EXT);var _8Y1=_5Y1[_Wa._qu];_8Y1=Math.min(_8Y1,_7Y1);_Pz.texParameterf(_Pz.TEXTURE_2D,
_fR1.TEXTURE_MAX_ANISOTROPY_EXT,_8Y1);}}else {if(_5Y1[_Wa._qu]!=1.0){_5Y1[_Wa._qu]=1.0;_Pz.texParameterf(_Pz.TEXTURE_2D,_fR1.TEXTURE_MAX_ANISOTROPY_EXT,1.0);}}}}if(_3Y1[_Wa._7u]!=_5Y1[_Wa._7u]){if(_me._9Y1){var _aY1=(_3Y1[_Wa._7u]==_Wa._au)?_Pz.CLAMP_TO_EDGE:_Pz.REPEAT;_Pz.texParameteri(_Pz.TEXTURE_2D,_Pz.TEXTURE_WRAP_S,_aY1);}_5Y1[_Wa._7u]=_3Y1[_Wa._7u];}if(_3Y1[_Wa._9u]!=_5Y1[_Wa._9u]){if(_me._9Y1){var _aY1=(_3Y1[_Wa._9u]==_Wa._au)?_Pz.CLAMP_TO_EDGE:_Pz.REPEAT;_Pz.texParameteri(_Pz.TEXTURE_2D,_Pz.TEXTURE_WRAP_T,
_aY1);}_5Y1[_Wa._9u]=_3Y1[_Wa._9u];}_me._YT1=false;}var _bY1=null;function _vX1(_cY1){_Pz.bindBuffer(_Pz.ARRAY_BUFFER,_cY1._dY1);if(_bY1!=null){if(_bY1._QR1===true){var _eY1,_fY1,_gY1=_bY1._zd.length;;for(_eY1=0;_eY1<_gY1;++_eY1){switch(_eY1){case 0:_fY1=_XW1._4S1;break;case 1:_fY1=_XW1._6S1;break;case 2:_fY1=_XW1._7S1;break;case 3:_fY1=_XW1._5S1;break;default :_fY1=-1;break;}if(_fY1>=0){_Pz.disableVertexAttribArray(_fY1);}}}else {var _eY1,_fY1,_gY1=_bY1._zd.length;;for(_eY1=0;_eY1<_gY1;++_eY1){_fY1=_XW1._dS1[_eY1];
if(_fY1>=0){_Pz.disableVertexAttribArray(_fY1);}}}}var _hY1=_cY1._iY1;_bY1=_hY1;if(_hY1._QR1===true){var _eY1,_fY1,_jY1,_gY1=_hY1._zd.length;for(_eY1=0;_eY1<_gY1;++_eY1){_jY1=_hY1._zd[_eY1];switch(_eY1){case 0:_fY1=_XW1._4S1;break;case 1:_fY1=_XW1._6S1;break;case 2:_fY1=_XW1._7S1;break;case 3:_fY1=_XW1._5S1;break;default :_fY1=-1;break;}if(_fY1>=0){_Pz.enableVertexAttribArray(_fY1);_Pz.vertexAttribPointer(_fY1,_jY1._kY1,_jY1._lY1,_jY1._mY1,_hY1._Fd,_jY1.offset);}}}else {{var _eY1,_fY1,_jY1,_gY1=_hY1._zd.length;
var _nY1=_XW1._dS1.length;var _oY1=_hY1._oY1[_XW1._gS1];if(_oY1===undefined){_oY1=[];var _pY1=[];for(_eY1=0;_eY1<_gY1;++_eY1){_jY1=_hY1._zd[_eY1];var _Bd=_jY1._Bd;_fY1=-1;for(var _qY1=0;_qY1<_nY1;_qY1++){if(_pY1[_qY1]===undefined){var _rY1=_XW1._dS1[_qY1];if(_XW1._fS1[_qY1]==_Bd){_fY1=_rY1;_pY1[_qY1]=1;break;}else if(_XW1._fS1[_qY1]==4&&_Bd==2){_XW1._fS1[_qY1]=_Pz.UNSIGNED_BYTE;_fY1=_rY1;_pY1[_qY1]=1;break;}}}_oY1.push(_fY1);}_hY1._oY1[_XW1._gS1]=_oY1;}for(_eY1=0;_eY1<_gY1;++_eY1){_jY1=_hY1._zd[_eY1];_fY1=_oY1[_eY1];
if(_fY1>=0){_Pz.enableVertexAttribArray(_fY1);_Pz.vertexAttribPointer(_fY1,_jY1._kY1,_jY1._lY1,_jY1._mY1,_hY1._Fd,_jY1.offset);}}}}}function _RX1(_Ol){_Pz.depthMask(_Ol);_gX1=_Ol;}function _sY1(_Ol){_Pz.stencilMask(_Ol);_hX1=_Ol;}function _TX1(_lj,_tY1,_7I,_wQ){_Pz.colorMask(_lj,_tY1,_7I,_wQ);_iX1=[_lj,_tY1,_7I,_wQ];}function _uY1(){return(_gX1!==null&&_gX1!==undefined)?_gX1:(_gX1=_Pz.getParameter(_Pz.DEPTH_WRITEMASK));}function _vY1(){return(_hX1!==null&&_hX1!==undefined)?_hX1:(_hX1=_Pz.getParameter(_Pz._wY1));
}function _xY1(){return(_iX1!==null&&_iX1!==undefined)?_iX1:(_iX1=_Pz.getParameter(_Pz.COLOR_WRITEMASK));}/*@this {yyCommandBuilder} */this._GS1=function(){var i,error,_1R,_141,_yY1,_eu,texture,_ob,_6a,_55,enable,_zY1,_eT1;i=0;while(i<_TW1.length){switch(_TW1[i]){case _xW1:{_XW1=_TW1[i+1];_zY1=_XW1._wS1;i+=2;_Pz.useProgram(_XW1);_UX1();_SX1(0xff);break;}case _rW1:{_Pz.viewport(_TW1[i+1],_TW1[i+2],_TW1[i+3],_TW1[i+4]);_Pz.scissor(_TW1[i+1],_TW1[i+2],_TW1[i+3],_TW1[i+4]);_Qu={x:_TW1[i+1],y:_TW1[i+2],w:_TW1[i+3],
h:_TW1[i+4]};i+=5;break;}case _IW1:{_Pz.scissor(_TW1[i+1],_TW1[i+2],_TW1[i+3],_TW1[i+4]);_Qu={x:_TW1[i+1],y:_TW1[i+2],w:_TW1[i+3],h:_TW1[i+4]};i+=5;break;}case _tW1:{var depthMask=_uY1();var colorMask=_xY1();var stencilMask=_vY1();_Pz.depthMask(true);_Pz.colorMask(true,true,true,true);var _55=_TW1[i+2];_Pz.clearColor((_55&0xff)/255.0,((_55>>8)&0xff)/255.0,((_55>>16)&0xff)/255.0,((_55>>24)&0xff)/255.0);_Pz.clearDepth(_TW1[i+3]);_Pz.clearStencil(_TW1[i+4]);_Pz.clear(_TW1[i+1]);_RX1(depthMask);_TX1(colorMask[0],
colorMask[1],colorMask[2],colorMask[3]);_sY1(stencilMask);i+=5;break;}case _pW1:{_ZW1[_KW1]=_TW1[i+1];_UX1();i+=2;break;}case _qW1:{_ZW1[_JW1]=_TW1[i+1];_UX1();i+=2;break;}case _oW1:{_ZW1[_LW1]=_TW1[i+1];_UX1();i+=2;break;}case _hW1:{texture=_TW1[i+1];_eu=_TW1[i+2];i+=3;if(texture===null){texture=_jX1;_Pz.activeTexture(_Pz.TEXTURE0+_eu);if(!_pU1(texture,_ir())){_on(texture,_ir());_A9(texture,_ir());}_Pz.bindTexture(_Pz.TEXTURE_2D,texture._8e1);_Pz.uniform1i(_XW1._8S1,0);_YW1[_eu]=null;}else {_Pz.activeTexture(_Pz.TEXTURE0+_eu);
if(!_pU1(texture,_ir())){_on(texture,_ir());_A9(texture,_ir());}_Pz.bindTexture(_Pz.TEXTURE_2D,texture._8e1);_Pz.uniform1i(_XW1._8S1,0);_0Y1(texture,_eu);_YW1[_eu]=texture;}break;}case _sW1:{_ob=_TW1[i+1];i+=2;if(_ob._AY1){_ob._BY1();}_ob._CY1=this._84;_vX1(_ob);}break;case _iW1:{_Pz.drawArrays(_Pz.TRIANGLES,_TW1[i+1],_TW1[i+2]);i+=3;break;}case _jW1:{_Pz.drawArrays(_Pz.TRIANGLE_FAN,_TW1[i+1],_TW1[i+2]);i+=3;break;}case _kW1:{_Pz.drawArrays(_Pz.TRIANGLE_STRIP,_TW1[i+1],_TW1[i+2]);i+=3;break;}case _lW1:{
_Pz.drawArrays(_Pz.LINES,_TW1[i+1],_TW1[i+2]);i+=3;break;}case _mW1:{_Pz.drawArrays(_Pz.LINE_STRIP,_TW1[i+1],_TW1[i+2]);i+=3;break;}case _nW1:{_Pz.drawArrays(_Pz.POINTS,_TW1[i+1],_TW1[i+2]);i+=3;break;}case _uW1:{var _rU1=_TW1[i+1];_Pz.bindFramebuffer(_Pz.FRAMEBUFFER,_rU1);if(_rU1!=null){if(_zd1){_Pz.framebufferTexture2D(_Pz.FRAMEBUFFER,_Pz.DEPTH_STENCIL_ATTACHMENT,_Pz.TEXTURE_2D,_TW1[i+2],0);}else {_Pz.framebufferRenderbuffer(_Pz.FRAMEBUFFER,_Pz.DEPTH_STENCIL_ATTACHMENT,_Pz.RENDERBUFFER,_TW1[i+2]);}
}i+=3;break;}case _vW1:{_TX1(_TW1[i+2],_TW1[i+3],_TW1[i+4],_TW1[i+1]);i+=5;break;}case _wW1:{_Pz.blendFunc(_OX1(_TW1[i+1]),_OX1(_TW1[i+2]));i+=3;break;}case _AW1:{_QX1(_TW1[i+1],_TW1[i+2]);i+=3;break;}case _yW1:{_1R=_TW1[i+1];_141=_TW1[i+2];i+=3;_eT1=_zY1[_zY1._Ef1[_1R]];switch(_eT1._CS1["type"]){case _Pz.INT:_Pz.uniform1iv(_eT1.location,_141);break;case _Pz.INT_VEC2:_Pz.uniform2iv(_eT1.location,_141);break;case _Pz.INT_VEC3:_Pz.uniform3iv(_eT1.location,_141);break;case _Pz.INT_VEC4:_Pz.uniform4iv(_eT1.location,
_141);break;case _Pz.BOOL:_Pz.uniform1iv(_eT1.location,_141);break;case _Pz.BOOL_VEC2:_Pz.uniform2iv(_eT1.location,_141);break;case _Pz.BOOL_VEC3:_Pz.uniform3iv(_eT1.location,_141);break;case _Pz.BOOL_VEC4:_Pz.uniform4iv(_eT1.location,_141);break;}break;}case _zW1:{_1R=_TW1[i+1];_141=_TW1[i+2];i+=3;_eT1=_zY1[_zY1._Ef1[_1R]];switch(_eT1._CS1["type"]){case _Pz.FLOAT:_Pz.uniform1fv(_eT1.location,_141);break;case _Pz.FLOAT_VEC2:_Pz.uniform2fv(_eT1.location,_141);break;case _Pz.FLOAT_VEC3:_Pz.uniform3fv(_eT1.location,
_141);break;case _Pz.FLOAT_VEC4:_Pz.uniform4fv(_eT1.location,_141);break;case _Pz.FLOAT_MAT2:_Pz.uniformMatrix2fv(_eT1.location,false,_141);break;case _Pz.FLOAT_MAT3:_Pz.uniformMatrix3fv(_eT1.location,false,_141);break;case _Pz.FLOAT_MAT4:_Pz.uniformMatrix4fv(_eT1.location,false,_141);break;}break;}case _BW1:{_eu=_TW1[i+1];var state=_TW1[i+2];var _DY1=_TW1[i+3];i+=4;var _2Y1=__W1[_eu];_2Y1._4Y1[state]=_DY1;if(_YW1[_eu]!=null){_Pz.activeTexture(_Pz.TEXTURE0+_eu);if(!_pU1(_YW1[_eu],_ir())){_on(_YW1[_eu],_ir());
_A9(_YW1[_eu],_ir());}_Pz.bindTexture(_Pz.TEXTURE_2D,_YW1[_eu]._8e1);}_0Y1(_YW1[_eu],_eu);break;}case _CW1:{_6a=_TW1[i+1];_0X1.set(_TW1[i+2],_6a*4);_1X1.set(_TW1[i+3],_6a*4);_2X1.set(_TW1[i+4],_6a*4);i+=5;_SX1(_QW1);break;}case _DW1:{_3X1.set(_TW1[i+1]);i+=2;_SX1(_RW1);break;}case _EW1:{_4X1.set(_TW1[i+1]);i+=2;_SX1(_PW1);break;}case _FW1:{_6a=_TW1[i+1];enable=_TW1[i+2];_55=_TW1[i+3];i+=4;if(enable){_2X1.set(_55,_6a*4);}else {var _Or=_6a*4;_2X1[_Or+0]=0;_2X1[_Or+1]=0;_2X1[_Or+2]=0;_2X1[_Or+3]=0;}_SX1(_QW1);
break;}case _GW1:{_7X1=_TW1[i+1];_8X1=_TW1[i+2];i+=3;_SX1(_SW1);break;}case _HW1:{texture=_TW1[i+1];var _w7=_TW1[i+2];var _y7=_TW1[i+3];var _N7=_TW1[i+4];var _O7=_TW1[i+5];var canvas=_TW1[i+6];var _gh=_TW1[i+7];i+=8;var _BT1=_09._AT1(_gh);switch(_gh){case _cm:break;case _Xe1:{var _CU1=new Uint16Array(canvas.buffer);canvas=_CU1;}break;case _Ve1:{var _CU1=new Uint16Array(canvas.buffer);canvas=_CU1;}break;case _We1:{var _CU1=new Float32Array(canvas.buffer);canvas=_CU1;}break;case _Ye1:break;case _Ze1:break;case __e1:{var _CU1=new Uint16Array(canvas.buffer);
canvas=_CU1;}break;case _0f1:{var _CU1=new Float32Array(canvas.buffer);canvas=_CU1;}break;}if(!_pU1(texture,_ir())){_on(texture,_ir());_A9(texture,_ir());}_Pz.activeTexture(_Pz.TEXTURE0);_Pz.bindTexture(_Pz.TEXTURE_2D,texture._8e1);_Pz.texSubImage2D(_Pz.TEXTURE_2D,0,_w7,_y7,_N7,_O7,_BT1._gh,_BT1.type,canvas);if(_YW1.length>0){if(_YW1[0]!=null){_Pz.bindTexture(_Pz.TEXTURE_2D,_YW1[0]._8e1);}}break;}}}_TW1.length=0;};}/*@constructor */function _Dd1(_EY1,_89,_99,_FY1,_xT1,_GY1,_pZ,_y91){var _Pz=this._zR1;
var _HY1,_IY1,_EN,_GN,_JY1,_KY1,_LY1,_Iv1,_MY1;var _NY1;Object.defineProperties(this,{_WT1:{get :function(){return _HY1;}},_8e1:{get :function(){return _IY1;},set :function(_k4){_IY1=_k4;}},_OT1:{get :function(){return _EN;}},_PT1:{get :function(){return _GN;}},_9Y1:{get :function(){return _JY1;}},Image:{get :function(){return _KY1;}},_OY1:{get :function(){return _LY1;}},_Og:{get :function(){return _Iv1;},set :function(_k4){_Iv1=_k4;}},_YT1:{get :function(){return _NY1;},set :function(_k4){_NY1=_k4;}},_zd:{get :function(){
return _MY1;}},});(function(){_IY1=_EY1;_EN=_89;_GN=_99;_JY1=_FY1;_KY1=_xT1;_LY1=_GY1;_Iv1=_pZ;_MY1=_y91;_NY1=false;if(_MY1==undefined)_MY1=_cm;_HY1=new _BR1();if(_IY1){_HY1._XT1(_Pz.TEXTURE_2D);}_Iv1=_ST1._PY1;if(_LY1!==undefined&&_LY1!==0){_Iv1|=(_ST1._TT1|_ST1._QY1);}})();}var _RY1={_PY1:0,_AY1:1,_SY1:2,_Xd1:4,_TY1:8,_UY1:16,_TT1:32,_VY1:64};Object.freeze(_RY1);var _WY1={_AY1:0,_XY1:1,_YY1:2,_SY1:3,_TT1:4,_VT1:5,_QY1:6,_ZY1:7,_VY1:8,_Xd1:9,__Y1:16,};Object.freeze(_WY1);var _ST1={_PY1:0,_AY1:(1<<_WY1._AY1),
_XY1:(1<<_WY1._XY1),_YY1:(1<<_WY1._YY1),_SY1:(1<<_WY1._SY1),_TT1:(1<<_WY1._TT1),_VT1:(1<<_WY1._VT1),_QY1:(1<<_WY1._QY1),_ZY1:(1<<_WY1._ZY1),_VY1:(1<<_WY1._VY1)};Object.freeze(_ST1);function _0Z1(_1Z1){var _2Z1=[];var _3Z1;var _4Z1;var _5Z1;var _6Z1=function(){var _7Z1=_5Z1-((_3Z1-1)*32);_4Z1=0xffffffff;for(var i=0;i<_7Z1;i++){_4Z1<<=1;}_4Z1=~_4Z1;};(function(){if(_1Z1==undefined)_1Z1=32;_5Z1=_1Z1;_3Z1=~~((_5Z1+31)/32);_2Z1=new Array(_3Z1);for(var i=0;i<_3Z1;i++){_2Z1[i]=0x0;}_6Z1();})();this._8Z1=function(){
return _5Z1;};this._9Z1=function(){return _2Z1;};this._RP=function(_aZ1){if(_aZ1>=_5Z1)return;var _Vk=~~(_aZ1/32);var _bZ1=_aZ1-(_Vk*32);_2Z1[_Vk]|=1<<_bZ1;};this._cZ1=function(_aZ1){if(_aZ1>=_5Z1)return;var _Vk=~~(_aZ1/32);var _bZ1=_aZ1-(_Vk*32);_2Z1[_Vk]&=~(1<<_bZ1);};this._dZ1=function(_aZ1){if(_aZ1>=_5Z1)return 0;var _Vk=~~(_aZ1/32);var _eZ1=_aZ1-(_Vk*32);var _Je=(_2Z1[_Vk]>>_eZ1)&0x1;return _Je;};this._fZ1=function(){var i;for(i=0;i<_3Z1;i++){_2Z1[i]=0xffffffff;}_2Z1[_3Z1-1]&=_4Z1;};this._gZ1=function(){
for(var i=0;i<_3Z1;i++){_2Z1[i]=0x0;}};this._hZ1=function(){var i;for(i=0;i<_3Z1;i++){if(_2Z1[i]!=0)return 1;}return 0;};this._iZ1=function(_pA){var _jZ1;if(this._8Z1()<_pA._8Z1()){_jZ1=new _0Z1(_pA._8Z1());var i;for(i=0;i<_3Z1;i++){_jZ1._2Z1[i]=_2Z1[i]|_pA._9Z1()[i];}for(;i<_pA._3Z1;i++){_jZ1._2Z1[i]=_pA._9Z1()[i];}}else {_jZ1=new _0Z1(this._8Z1());var i;for(i=0;i<_pA._3Z1;i++){_jZ1._2Z1[i]=_2Z1[i]|_pA._9Z1()[i];}for(;i<_3Z1;i++){_jZ1._2Z1[i]=_2Z1[i];}}return _jZ1;};this._kZ1=function(_pA){var _jZ1;if(this._8Z1()<_pA._8Z1()){
_jZ1=new _0Z1(_pA._8Z1());for(var i=0;i<_3Z1;i++){_jZ1._2Z1[i]=_2Z1[i]&_pA._9Z1()[i];}}else {_jZ1=new _0Z1(this._8Z1());for(var i=0;i<_pA._3Z1;i++){_jZ1._2Z1[i]=_2Z1[i]&_pA._9Z1()[i];}}return _jZ1;};this._lZ1=function(){var _jZ1=new _0Z1(_1Z1);for(i=0;i<_3Z1;i++){_jZ1._2Z1[i]=~(_2Z1[i]);}_jZ1._Je[_3Z1-1]&=_jZ1._4Z1;return _jZ1;};this._mZ1=function(_pA){if(_pA._8Z1()==this._8Z1()){for(var i=0;i<_3Z1;i++){_2Z1[i]|=_pA._9Z1()[i];}}else {if(this._8Z1()<_pA._8Z1()){var _nZ1=_pA._3Z1;var _471=new Array(_nZ1);var i;for(i=0;
i<_3Z1;i++){_471[i]=_2Z1[i]|_pA._9Z1()[i];}for(;i<_nZ1;i++){_471[i]=_pA._9Z1()[i];}_3Z1=_nZ1;_2Z1=_471;_6Z1();}else {var _oZ1=_pA._3Z1;var i;for(i=0;i<_oZ1;i++){_2Z1[i]|=_pA._9Z1()[i];}}}};this._pZ1=function(_pA){if(_pA._8Z1()==this._8Z1()){for(var i=0;i<_3Z1;i++){_2Z1[i]&=_pA._9Z1()[i];}}else {if(this._8Z1()<_pA._8Z1()){var _nZ1=_pA._3Z1;var _471=new Array(_nZ1);var i;for(i=0;i<_3Z1;i++){_471[i]=_2Z1[i]&_pA._9Z1()[i];}for(;i<_nZ1;i++){_471[i]=0;}_3Z1=_nZ1;_2Z1=_471;_6Z1();}else {var _oZ1=_pA._3Z1;var i;for(i=0;
i<_oZ1;i++){_2Z1[i]&=_pA._9Z1()[i];}for(;i<_3Z1;i++){_2Z1[i]=0;}}}};}function _GK(){this._qZ1=0;this._rZ1=0;}_GK.prototype._RP=function(_aZ1){if(_aZ1>31){this._qZ1|=1<<(_aZ1-32);}else {this._rZ1|=1<<_aZ1;}};_GK.prototype._cZ1=function(_aZ1){if(_aZ1>31){this._qZ1&=~(1<<(_aZ1-32));}else {this._rZ1&=~(1<<_aZ1);}};_GK.prototype._dZ1=function(_aZ1){if(_aZ1>31){return(this._qZ1>>(_aZ1-32))&0x1;}else {return(this._rZ1>>_aZ1)&0x1;}};_GK.prototype._fZ1=function(){this._qZ1=0xffffffff;this._rZ1=0xffffffff;};_GK.prototype._gZ1=function(){
this._qZ1=0;this._rZ1=0;};_GK.prototype._hZ1=function(){return(this._qZ1|this._rZ1)?1:0;};_GK.prototype._iZ1=function(_pA){var _jZ1=new _GK();_jZ1._qZ1=this._qZ1|_pA._qZ1;_jZ1._rZ1=this._rZ1|_pA._rZ1;return _jZ1;};_GK.prototype._kZ1=function(_pA){var _jZ1=new _GK();_jZ1._qZ1=this._qZ1&_pA._qZ1;_jZ1._rZ1=this._rZ1&_pA._rZ1;return _jZ1;};_GK.prototype._lZ1=function(){var _jZ1=new _GK();_jZ1._qZ1=~this._qZ1;_jZ1._rZ1=~this._rZ1;return _jZ1;};_GK.prototype._mZ1=function(_pA){this._qZ1|=_pA._qZ1;this._rZ1|=_pA._rZ1;
};_GK.prototype._pZ1=function(_pA){this._qZ1&=_pA._qZ1;this._rZ1&=_pA._rZ1;};function _sZ1(_tZ1,_uZ1,_vZ1){var _wZ1=[];var _xZ1=[];var _yZ1=[];(function(){_wZ1=new Array(_tZ1);_xZ1=new Array(_uZ1*_vZ1);_yZ1=new Array(_uZ1);})();Object.defineProperties(this,{_zZ1:{get :function(){return _wZ1;},set :function(_Je){_wZ1=_Je;}},_AZ1:{get :function(){return _xZ1;},set :function(_Je){_xZ1=_Je;}},_BZ1:{get :function(){return _yZ1;},set :function(_Je){_yZ1=_Je;}},});}/*@constructor */function _9R1(_CZ1,_DZ1,_EZ1,_eW1){var _Pz=this._zR1;
var _FZ1=null;var _Uv1=null;var _GZ1=[];var _HZ1;var _IZ1=null;var _JZ1=null;var _KZ1=false;var _LZ1=_EZ1;(function(){_IZ1=new _0Z1(64);_JZ1=new _0Z1(64);_FZ1=new _sZ1(_Wa._xV1,_CZ1,_Wa._OV1);_Uv1=new _sZ1(_Wa._xV1,_CZ1,_Wa._OV1);_GZ1=new Array(_DZ1);for(var i=0;i<_DZ1;i++){_GZ1[i]=new _sZ1(_Wa._xV1,_CZ1,_Wa._OV1);}_kX1();})();function _kX1(){_IZ1._fZ1();_JZ1._fZ1();_KZ1=true;_HZ1=0;_FZ1._zZ1[_Wa._ft]=false;_FZ1._zZ1[_Wa._nV1]=_Wa._UV1;_FZ1._zZ1[_Wa._oV1]=_Wa._WV1;_FZ1._zZ1[_Wa._ht]=true;_FZ1._zZ1[_Wa._Tt]=false;
_FZ1._zZ1[_Wa._9b]=_Wa._Xa;_FZ1._zZ1[_Wa._ab]=_Wa._Za;_FZ1._zZ1[_Wa._qt]=_Wa._NS1;_FZ1._zZ1[_Wa._gt]=_Wa._JV1;_FZ1._zZ1[_Wa._Vt]=0;_FZ1._zZ1[_Wa._Fu]=_Wa._KV1;_FZ1._zZ1[_Wa._et]=true;_FZ1._zZ1[_Wa._lt]=false;_FZ1._zZ1[_Wa._pV1]=false;_FZ1._zZ1[_Wa._mt]=0x00000000;_FZ1._zZ1[_Wa._qV1]=_Wa._1W1;_FZ1._zZ1[_Wa._nt]=0.0;_FZ1._zZ1[_Wa._ot]=1.0;_FZ1._zZ1[_Wa._rV1]=0;_FZ1._zZ1[_Wa._sV1]=false;_FZ1._zZ1[_Wa._tV1]=false;_FZ1._zZ1[_Wa._uV1]=0x00000000;_FZ1._zZ1[_Wa._vV1]=_Wa._1W1;_FZ1._zZ1[_Wa._Rt]=_Wa._3W1|_Wa._5W1|_Wa._4W1|_Wa._6W1;
_FZ1._zZ1[_Wa._2t]=false;_FZ1._zZ1[_Wa._bt]=_Wa._yV1;_FZ1._zZ1[_Wa._ct]=_Wa._yV1;_FZ1._zZ1[_Wa._dt]=_Wa._yV1;_FZ1._zZ1[_Wa._4t]=_Wa._NV1;_FZ1._zZ1[_Wa._6t]=0;_FZ1._zZ1[_Wa._8t]=0xff;_FZ1._zZ1[_Wa._9t]=0xff;_FZ1._zZ1[_Wa._db]=false;_FZ1._zZ1[_Wa._bb]=_Wa._Xa;_FZ1._zZ1[_Wa._cb]=_Wa._Za;_FZ1._zZ1[_Wa._wV1]=0;var i;for(i=0;i<_Wa._xV1;i++){_Uv1._zZ1[i]=_FZ1._zZ1[i];}var index=0;for(i=0;i<_CZ1;i++){_FZ1._AZ1[index+_Wa.__t]=_eW1==true?_Wa._0u:_Wa._2u;_FZ1._AZ1[index+_Wa._1u]=_eW1==true?_Wa._0u:_Wa._2u;_FZ1._AZ1[index+_Wa._cu]=_eW1==true?_Wa._0u:_Wa._2u;
_FZ1._AZ1[index+_Wa._7u]=_Wa._au;_FZ1._AZ1[index+_Wa._9u]=_Wa._au;_FZ1._AZ1[index+_Wa._ku]=0;_FZ1._AZ1[index+_Wa._nu]=0;_FZ1._AZ1[index+_Wa._hu]=0;_FZ1._AZ1[index+_Wa._qu]=0;_FZ1._AZ1[index+_Wa._ru]=_Wa._RT1;index+=_Wa._OV1;}for(i=0;i<(_Wa._OV1*_CZ1);i++){_Uv1._AZ1[i]=_FZ1._AZ1[i];}for(i=0;i<_CZ1;i++){_FZ1._BZ1[i]=null;}_HZ1=0;};this._JC=function(){_kX1();};this._MZ1=function(){return _IZ1;};this._NZ1=function(){return _JZ1;};this._OZ1=function(){return _KZ1;};this._nb=function(_r61,_Ol){if(_Uv1._zZ1[_r61]==_Ol)return;
if(_FZ1._zZ1[_r61]!=_Ol){_IZ1._RP(_r61);}else {_IZ1._cZ1(_r61);}_Uv1._zZ1[_r61]=_Ol;_KZ1=_IZ1._hZ1()||_JZ1._hZ1();};this._PZ1=function(_r61){if(_HZ1<=0)return 0;if((_r61<0)||(_r61>=_Wa._xV1))return 0;return _GZ1[_HZ1-1]._zZ1[_r61];};this._Zt=function(_Z31,_r61,_Ol){var index=(_Z31*_Wa._OV1)+_r61;if(_Uv1._AZ1[index]==_Ol)return;if(_FZ1._AZ1[index]!=_Ol){_JZ1._RP(index);}else {_JZ1._cZ1(index);}_Uv1._AZ1[index]=_Ol;_KZ1=_IZ1._hZ1()||_JZ1._hZ1();};this._pT1=function(_Z31,_me){if((_Z31<0)||(_Z31>=_CZ1))return;
_FZ1._BZ1[_Z31]=_me;};this._LU1=function(_me){if(_me!=null){for(var i=0;i<_CZ1;i++){if(_FZ1._BZ1[i]==_me){_FZ1._BZ1[i]=null;}for(var _J6=0;_J6<_HZ1;_J6++){if(_GZ1[_J6]._BZ1[i]==_me){_GZ1[_J6]._BZ1[i]=null;}}}}};this._8b=function(_r61){return _Uv1._zZ1[_r61];};this._zu=function(_Z31,_r61){return _Uv1._AZ1[(_Z31*_Wa._OV1)+_r61];};this._QZ1=function(_Z31){if((_Z31<0)||(_Z31>=_CZ1))return null;return _FZ1._yZ1[_Z31];};this._Au=function(){_GZ1[_HZ1]._zZ1=_Uv1._zZ1.slice();_GZ1[_HZ1]._AZ1=_Uv1._AZ1.slice();
_GZ1[_HZ1]._BZ1=_FZ1._BZ1.slice();if(_HZ1<_DZ1){_HZ1++;}else {debug("GPU state stack has run out of space");}};this._Bu=function(_RZ1){if(_HZ1>0){_HZ1--;}else {debug("Attempting to drop below bottom of GPU state stack");}var i;for(i=0;i<_Wa._xV1;i++){this._nb(i,_GZ1[_HZ1]._zZ1[i]);}for(i=0;i<_CZ1;i++){var _J6;for(_J6=0;_J6<_Wa._OV1;_J6++){this._Zt(i,_J6,_GZ1[_HZ1]._AZ1[(i*_CZ1)+_J6]);}}if((_RZ1!=undefined)&&(_RZ1==true)){if(_09){for(i=0;i<_CZ1;i++){_09._pT1(i,_GZ1[_HZ1]._BZ1[i]);}}}};this._we1=function(){
var i;if(_IZ1._hZ1()){for(i=0;i<_Wa._xV1;i++){if(_IZ1._dZ1(i)!=0){_LZ1._nb(i,_Uv1._zZ1[i]);_FZ1._zZ1[i]=_Uv1._zZ1[i];}}_IZ1._gZ1();}if(_JZ1._hZ1()){for(i=0;i<(_CZ1*_Wa._OV1);i++){if(_JZ1._dZ1(i)!=0){var _eu=~~(i/_Wa._OV1);var state=i-(_eu*_Wa._OV1);_LZ1._Zt(_eu,state,_Uv1._AZ1[i]);_FZ1._AZ1[i]=_Uv1._AZ1[i];}}_JZ1._gZ1();}_KZ1=false;};}/*@constructor */function _BR1(_eW1){var _Pz=this._zR1;var _SZ1=[];Object.defineProperties(this,{_4Y1:{get :function(){return _SZ1;}}});(function(){if(_eW1){_SZ1[_Wa.__t]=_Wa._0u;
_SZ1[_Wa._1u]=_Wa._0u;_SZ1[_Wa._cu]=_Wa._0u;}else {_SZ1[_Wa.__t]=_Wa._2u;_SZ1[_Wa._1u]=_Wa._2u;_SZ1[_Wa._cu]=_Wa._2u;}_SZ1[_Wa._7u]=_Wa._au;_SZ1[_Wa._9u]=_Wa._au;})();/*@this {yyTextureSamplerState} */this._XT1=function(_wn){var _TZ1=_SZ1;_Pz.texParameteri(_wn,_Pz.TEXTURE_MAG_FILTER,(_TZ1[_Wa.__t]==_Wa._0u)?_Pz.LINEAR:_Pz.NEAREST);_Pz.texParameteri(_wn,_Pz.TEXTURE_MIN_FILTER,(_TZ1[_Wa._1u]==_Wa._0u)?_Pz.LINEAR:_Pz.NEAREST);_Pz.texParameteri(_wn,_Pz.TEXTURE_WRAP_S,(_TZ1[_Wa._7u]==_Wa._au)?_Pz.CLAMP_TO_EDGE:_Pz.REPEAT);
_Pz.texParameteri(_wn,_Pz.TEXTURE_WRAP_T,(_TZ1[_Wa._9u]==_Wa._au)?_Pz.CLAMP_TO_EDGE:_Pz.REPEAT);};}/*@constructor */function __c(_id,_UZ1,_VZ1){var _Pz=this._zR1;this._WZ1=null;this._dd=null;this._dY1=null;this._wb=null;this._yb=null;this._XZ1=null;this._Ab=null;this._iY1=_UZ1;this._CY1=-1;this._ub=0;this._YZ1=_id;this._AY1=false;_ZZ1(this);function _ZZ1(_6l){__Z1(_6l);_0_1(_6l);if(_VZ1){_1_1(_6l);}}function __Z1(_6l){var _2_1=_6l._iY1._Fd;_6l._WZ1=new ArrayBuffer(_id*_2_1);_6l._dd=new Int8Array(_6l._WZ1);
}function _1_1(_6l){_6l._dY1=_Pz.createBuffer();_Pz.bindBuffer(_Pz.ARRAY_BUFFER,_6l._dY1);_Pz.bufferData(_Pz.ARRAY_BUFFER,_6l._dd,_Pz.DYNAMIC_DRAW);}function _0_1(_6l){var _3_1=_6l._iY1._zd;for(var _c7=0;_c7<_3_1.length;_c7++){var _jY1=_3_1[_c7];switch(_jY1._Bd){case _Wa._Sd:_6l._wb=_4_1(_jY1._lY1,_6l._WZ1,_jY1.offset);break;case _Wa._Yd:_6l._yb=_4_1(_jY1._lY1,_6l._WZ1,_jY1.offset);break;case _Wa._7e:_6l._XZ1=_4_1(_jY1._lY1,_6l._WZ1,_jY1.offset);break;case _Wa._5e:_6l._Ab=_4_1(_jY1._lY1,_6l._WZ1,_jY1.offset);
break;}}}function _4_1(_5_1,_6_1,_7_1){switch(_5_1){case _Pz.UNSIGNED_BYTE:return(new Int32Array(_6_1,_7_1));break;case _Pz.FLOAT:return(new Float32Array(_6_1,_7_1));break;}return false;}/*@this {yyVBuffer} */this._8_1=function(_RU1){if(_RU1._tb()===this._tb()){var _ie=_RU1._ub*_RU1._tb();var offset=this._ub*this._tb();if((offset+_ie)>this._dd.length){var _9_1=new ArrayBuffer(this._dd.length*2);var _cd=new Int8Array(_9_1);_cd.set(this._dd);this._dd=_cd;this._WZ1=_9_1;_0_1(this);}this._dd.set(_RU1._dd.subarray(0,
_ie),offset);this._ub+=_RU1._ub;}};/*@this {yyVBuffer} */this._ge=function(){if(this._ub<this.max){var _ie=this._ub*this._tb();var _a_1=new ArrayBuffer(_ie);var _b_1=new Int8Array(_a_1);_b_1.set(this._dd.subarray(0,_ie));this._dd=_b_1;this._WZ1=_a_1;}this._dY1=_Pz.createBuffer();_Pz.bindBuffer(_Pz.ARRAY_BUFFER,this._dY1);_Pz.bufferData(_Pz.ARRAY_BUFFER,this._dd,_Pz.STATIC_DRAW);this._wb=null;this._yb=null;this._XZ1=null;this._Ab=null;};/*@this {yyVBuffer} */this._2d=function(_c_1){if((this._ub+_c_1)>this.max){
var _d_1=this.max*2;this.max=_d_1;var _Hd=new ArrayBuffer(_d_1);var _Jd=new Int8Array(_Hd);_Jd.set(this._dd);this._WZ1=_Hd;_0_1(this);}this._ub+=_c_1;};/*@this {yyVBuffer} */this._tb=function(){return this._iY1._Fd;};/*@this {yyVBuffer} */this._BY1=function(){_Pz.bindBuffer(_Pz.ARRAY_BUFFER,this._dY1);var _e_1=new Int8Array(this._WZ1,0,this._ub*this._iY1._Fd);_Pz.bufferSubData(_Pz.ARRAY_BUFFER,0,_e_1);this._ub=0;this._AY1=false;};}/*@constructor */function _aR1(_EZ1,_f_1){var _Pz=this._zR1;var _g_1=[];var _h_1=0,
_UW1=null,_i_1=null,_j_1=_Wa._XU1,_VW1=null;var _LZ1=_EZ1;var _k_1=_f_1;/*@this {yyVBufferManager} */this._PR1=function(_Ld){if(_g_1[_Ld]){debug("WARNING: Vertex format has already been registered\n");}else {_g_1[_Ld]=new _ek();}};/*@this {yyVBufferManager} */this._UU1=function(_Cc,_me,_RU1,_SU1,_TU1){var size=(_TU1===undefined)?_RU1._ub-_SU1:_TU1;switch(_Cc){case _Wa._qb:_LZ1._pT1(0,_me);_LZ1._vX1(_RU1);_LZ1._xX1(_SU1,size);break;case _Wa._Hc:_LZ1._pT1(0,_me);_LZ1._vX1(_RU1);_LZ1._zX1(_SU1,size);break;
case _Wa._Gc:_LZ1._pT1(0,_me);_LZ1._vX1(_RU1);_LZ1._AX1(_SU1,size);break;case _Wa._Ec:_LZ1._pT1(0,null);_LZ1._vX1(_RU1);_LZ1._BX1(_SU1,size);break;case _Wa._Fc:_LZ1._pT1(0,null);_LZ1._vX1(_RU1);_LZ1._CX1(_SU1,size);break;case _Wa._Dc:_LZ1._pT1(0,null);_LZ1._vX1(_RU1);_LZ1._vA1(_SU1,size);break;}};/*@this {yyVBufferManager} */this._we1=function(){if(_i_1==null){_k_1._we1();return;}this._UU1(_j_1,_UW1,_i_1,_h_1);_i_1=_UW1=null;_j_1=_Wa._XU1;_k_1._we1();};/*@this {yyVBufferManager} */this._pb=function(_Cc,
_l_1,_Ld,_m_1,_UZ1,_n_1){var i,_o_1,_ob,_n5;_n5=_l_1;if(_i_1!=null){if((_i_1._SR1==_Ld)&&((_i_1._ub+_m_1)<=_i_1._YZ1)&&(_UW1==_n5)&&(_j_1==_Cc)&&((_Cc!=_Wa._Fc)&&(_Cc!=_Wa._Gc)&&(_Cc!=_Wa._Hc))&&(_k_1._OZ1()==false)){return _i_1;}else {var _p_1=_i_1;_09._we1();if((_p_1._SR1==_Ld)&&((_p_1._ub+_m_1)<=_p_1._YZ1)){_i_1=_p_1;_h_1=_p_1._ub;_j_1=_Cc;_UW1=_n5;return _i_1;}}}else this._we1();_j_1=_Cc;_UW1=_n5;_o_1=_g_1[_Ld]._yk;for(i=_o_1.length-1;i>=0;i--){_ob=_o_1[i];if(((_ob._CY1+1)<_n_1)&&(_ob._ub+_m_1)<=_ob._YZ1){
_ob._AY1=true;_h_1=_ob._ub;_i_1=_ob;return _ob;}}if(_m_1<_0d){_m_1=_0d;}_ob=new __c(_m_1,_UZ1,true);_ob._SR1=_Ld;_ob._AY1=true;_h_1=_ob._ub;_i_1=_ob;_g_1[_Ld]._Vf(_ob);return _ob;};}/*@constructor */function _AR1(){var _Pz=this._zR1;var _q_1=1,_r_1=false,_MY1=[],_s_1=0,_t_1=0;this._oY1=[];Object.defineProperties(this,{_zd:{get :function(){return _MY1;},set :function(_Je){_MY1=_Je;}},_Ed:{get :function(){return _t_1;},set :function(_Je){_t_1=_Je;}},_Fd:{get :function(){return _s_1;},set :function(_Je){_s_1=_Je;
}},_QR1:{get :function(){return _r_1;},set :function(_Je){_r_1=_Je;}}});function _u_1(_wd,_vd,_v_1){var _Ad={offset:_s_1,type:_wd,_Bd:_vd,_Cd:_v_1,_lY1:0,_kY1:0,_mY1:false};return _Ad;}function _Vf(_wd,_vd,_v_1){_t_1|=_v_1;var _jY1=_u_1(_wd,_vd,_v_1);switch(_wd){case _Wa._Zd:case _Wa._fe:_s_1+=4;_jY1._lY1=_Pz.UNSIGNED_BYTE;_jY1._kY1=4;_jY1._mY1=true;break;case _Wa._9e:_s_1+=4;_jY1._lY1=_Pz.FLOAT;_jY1._kY1=1;_jY1._mY1=false;break;case _Wa._Td:_s_1+=8;_jY1._lY1=_Pz.FLOAT;_jY1._kY1=2;_jY1._mY1=false;break;case _Wa._Vd:_s_1+=12;
_jY1._lY1=_Pz.FLOAT;_jY1._kY1=3;_jY1._mY1=false;break;case _Wa._de:_s_1+=16;_jY1._lY1=_Pz.FLOAT;_jY1._kY1=4;_jY1._mY1=false;break;}_MY1.push(_jY1);}/*@this {yyVertexFormat} */this._w_1=function(){_Vf(_Wa._Td,_Wa._Sd,_q_1);_q_1=_q_1<<1;};/*@this {yyVertexFormat} */this._LR1=function(){_Vf(_Wa._Vd,_Wa._Sd,_q_1);_q_1=_q_1<<1;};/*@this {yyVertexFormat} */this._MR1=function(){_Vf(_Wa._Zd,_Wa._Yd,_q_1);_q_1=_q_1<<1;};/*@this {yyVertexFormat} */this._OR1=function(){_Vf(_Wa._Vd,_Wa._7e,_q_1);_q_1=_q_1<<1;
};/*@this {yyVertexFormat} */this._NR1=function(){_Vf(_Wa._Td,_Wa._5e,_q_1);_q_1=_q_1<<1;};/*@this {yyVertexFormat} */this._x_1=function(_wd,_vd){if((_wd<_Wa._9e)||(_wd>_Wa._8V1)){debug("ERROR vertex_format_add_custom: illegal types");return;}if((_vd<_Wa._Sd)||(_vd>_Wa._7V1)){debug("ERROR vertex_format_add_custom: illegal usage");return;}_Vf(_wd,_vd,_q_1);_q_1=_q_1<<1;};/*@this {yyVertexFormat} */this._Kk1=function(_y91){if(_MY1.length!==_y91._zd.length){return false;}for(var i=0;i<_MY1.length;i++){
var _y_1=_MY1[i];var _z_1=_y91._zd[i];if((_y_1.offset!==_z_1.offset)||(_y_1.type!==_z_1.type)||(_y_1._Bd!==_z_1._Bd)||(_y_1._Cd!==_z_1._Cd)||(_y_1._lY1!==_z_1._lY1)||(_y_1._kY1!==_z_1._kY1)){return false;}}return true;};/*@this {yyVertexFormat} */this._A_1=function(_wd){switch(_wd){case _Wa._9e:return 4;case _Wa._Td:return 8;case _Wa._Vd:return 12;case _Wa._de:return 16;case _Wa._Zd:return 4;case _Wa._fe:return 4;default :return 0;}};/*@this {yyVertexFormat} */this._B_1=function(_wd){switch(_wd){case _Wa._9e:return 1;
case _Wa._Td:return 2;case _Wa._Vd:return 3;case _Wa._de:return 4;case _Wa._Zd:return 1;case _Wa._fe:return 1;default :return 0;};};/*@this {yyVertexFormat} */this._C_1=function(_wd){switch(_wd){case _Wa._9e:return 4;case _Wa._Td:return 4;case _Wa._Vd:return 4;case _Wa._de:return 4;case _Wa._Zd:return 4;case _Wa._fe:return 4;default :return 0;};};}var _D_1=null;try{_D_1=new _E_1._F_1(new _E_1._G_1(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,
109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,
167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{})._2O1;}catch(e){}/*
 * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.
 *  See the from* functions below for more convenient ways of constructing Longs.
 * @exports Long
 * @class A Long class for representing a 64 bit two's-complement integer value.
 * @param {number} low The low (signed) 32 bits of the long
 * @param {number} high The high (signed) 32 bits of the long
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @constructor
 */function Long(_kc1,
_Kc1,_H_1){/*
     * The low 32 bits as a signed value.
     * @type {number}
     */this._kc1=_kc1|0;/*
     * The high 32 bits as a signed value.
     * @type {number}
     */this._Kc1=_Kc1|0;/*
     * Whether unsigned or not.
     * @type {boolean}
     */this._H_1=!!_H_1;}/*
 * An indicator used to reliably determine if an object is a Long or not.
 * @type {boolean}
 * @const
 * @private
 */Long.prototype.__isLong__;Object.defineProperty(Long.prototype,"__isLong__",{value:true});/*
 * @function
 * @param {*} obj Object
 * @returns {boolean}
 * @inner
 */function _I_1(_Ik){
return(_Ik&&_Ik["__isLong__"])===true;}/*
 * Tests if the specified object is a Long.
 * @function
 * @param {*} obj Object
 * @returns {boolean}
 */Long._I_1=_I_1;/*
 * A cache of the Long representations of small integer values.
 * @type {!Object}
 * @inner
 */var _J_1={};/*
 * A cache of the Long representations of small unsigned integer values.
 * @type {!Object}
 * @inner
 */var _K_1={};/*
 * @param {number} value
 * @param {boolean=} unsigned
 * @returns {!Long}
 * @inner
 */function _L_1(value,
_H_1){var _Ik,_M_1,_b9;if(_H_1){value>>>=0;if(_b9=(0<=value&&value<256)){_M_1=_K_1[value];if(_M_1)return _M_1;}_Ik=_N_1(value,(value|0)<0?-1:0,true);if(_b9)_K_1[value]=_Ik;return _Ik;}else {value|=0;if(_b9=(-128<=value&&value<128)){_M_1=_J_1[value];if(_M_1)return _M_1;}_Ik=_N_1(value,value<0?-1:0,false);if(_b9)_J_1[value]=_Ik;return _Ik;}}/*
 * Returns a Long representing the given 32 bit integer value.
 * @function
 * @param {number} value The 32 bit integer in question
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {!Long} The corresponding Long value
 */Long._L_1=_L_1;
/*
 * @param {number} value
 * @param {boolean=} unsigned
 * @returns {!Long}
 * @inner
 */function _O_1(value,_H_1){if(isNaN(value))return _H_1?_P_1:ZERO;if(_H_1){if(value<0)return _P_1;if(value>=_Q_1)return _R_1;}else {if(value<=-_S_1)return MIN_VALUE;if(value+1>=_S_1)return MAX_VALUE;}if(value<0)return _O_1(-value,_H_1)._T_1();return _N_1((value%_U_1)|0,(value/_U_1)|0,_H_1);}/*
 * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.
 * @function
 * @param {number} value The number in question
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {!Long} The corresponding Long value
 */Long._O_1=_O_1;
/*
 * @param {number} lowBits
 * @param {number} highBits
 * @param {boolean=} unsigned
 * @returns {!Long}
 * @inner
 */function _N_1(_ic1,_hc1,_H_1){return new Long(_ic1,_hc1,_H_1);}/*
 * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is
 *  assumed to use 32 bits.
 * @function
 * @param {number} lowBits The low 32 bits
 * @param {number} highBits The high 32 bits
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {!Long} The corresponding Long value
 */Long._N_1=_N_1;
/*
 * @function
 * @param {number} base
 * @param {number} exponent
 * @returns {number}
 * @inner
 */var _V_1=Math.pow;/*
 * @param {string} str
 * @param {(boolean|number)=} unsigned
 * @param {number=} radix
 * @returns {!Long}
 * @inner
 */function _W_1(_xl,_H_1,_X_1){if(_xl.includes('.')){_xl=_xl.split('.')[0];}if(_xl.length===0)throw Error('empty string');if(_xl==="NaN"||_xl==="Infinity"||_xl==="+Infinity"||_xl==="-Infinity")return ZERO;if(!_6R.test(_xl))_q5("int64 : unable to convert string \""+_xl+"\" to int64");
if(typeof _H_1==='number'){_X_1=_H_1,_H_1=false;}else {_H_1=!!_H_1;}_X_1=_X_1||10;if(_X_1<2||36<_X_1)throw _Lw('radix');var _2z;if((_2z=_xl.indexOf('-'))>0)throw Error('interior hyphen');else if(_2z===0){return _W_1(_xl.substring(1),_H_1,_X_1)._T_1();}var _Y_1=_O_1(_V_1(_X_1,8));var result=ZERO;for(var i=0;i<_xl.length;i+=8){var size=Math.min(8,_xl.length-i),value=parseInt(_xl.substring(i,i+size),_X_1);if(size<8){var power=_O_1(_V_1(_X_1,size));result=result._aR(power).add(_O_1(value));}else {result=result._aR(_Y_1);
result=result.add(_O_1(value));}}result._H_1=_H_1;return result;}/*
 * Returns a Long representation of the given string, written using the specified radix.
 * @function
 * @param {string} str The textual representation of the Long
 * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed
 * @param {number=} radix The radix in which the text is written (2-36), defaults to 10
 * @returns {!Long} The corresponding Long value
 */Long._W_1=_W_1;/*
 * @function
 * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val
 * @param {boolean=} unsigned
 * @returns {!Long}
 * @inner
 */function _0R(_Je,
_H_1){if(typeof _Je==='number')return _O_1(_Je,_H_1);if(typeof _Je==='string')return _W_1(_Je,_H_1);return _N_1(_Je._kc1,_Je._Kc1,typeof _H_1==='boolean'?_H_1:_Je._H_1);}/*
 * Converts the specified value to a Long using the appropriate from* function for its type.
 * @function
 * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val Value
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {!Long}
 */Long._0R=_0R;/*
 * @type {number}
 * @const
 * @inner
 */var _Z_1=1<<16;
/*
 * @type {number}
 * @const
 * @inner
 */var ___1=1<<24;/*
 * @type {number}
 * @const
 * @inner
 */var _U_1=_Z_1*_Z_1;/*
 * @type {number}
 * @const
 * @inner
 */var _Q_1=_U_1*_U_1;/*
 * @type {number}
 * @const
 * @inner
 */var _S_1=_Q_1/2;/*
 * @type {!Long}
 * @const
 * @inner
 */var _002=_L_1(___1);/*
 * @type {!Long}
 * @inner
 */var ZERO=_L_1(0);/*
 * Signed zero.
 * @type {!Long}
 */Long.ZERO=ZERO;/*
 * @type {!Long}
 * @inner
 */var _P_1=_L_1(0,true);/*
 * Unsigned zero.
 * @type {!Long}
 */Long._P_1=_P_1;
/*
 * @type {!Long}
 * @inner
 */var ONE=_L_1(1);/*
 * Signed one.
 * @type {!Long}
 */Long.ONE=ONE;/*
 * @type {!Long}
 * @inner
 */var _102=_L_1(1,true);/*
 * Unsigned one.
 * @type {!Long}
 */Long._102=_102;/*
 * @type {!Long}
 * @inner
 */var _202=_L_1(-1);/*
 * Signed negative one.
 * @type {!Long}
 */Long._202=_202;/*
 * @type {!Long}
 * @inner
 */var MAX_VALUE=_N_1(0xFFFFFFFF|0,0x7FFFFFFF|0,false);/*
 * Maximum signed value.
 * @type {!Long}
 */Long.MAX_VALUE=MAX_VALUE;/*
 * @type {!Long}
 * @inner
 */var _R_1=_N_1(0xFFFFFFFF|0,
0xFFFFFFFF|0,true);/*
 * Maximum unsigned value.
 * @type {!Long}
 */Long._R_1=_R_1;/*
 * @type {!Long}
 * @inner
 */var MIN_VALUE=_N_1(0,0x80000000|0,false);/*
 * Minimum signed value.
 * @type {!Long}
 */Long.MIN_VALUE=MIN_VALUE;/*
 * @alias Long.prototype
 * @inner
 */var _302=Long.prototype;/*
 * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.
 * @returns {number}
 */_302._402=function _402(){return this._H_1?this._kc1>>>0:this._kc1;};/*
 * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).
 * @returns {number}
 */_302._9R=function _9R(){
if(this._H_1)return((this._Kc1>>>0)*_U_1)+(this._kc1>>>0);return this._Kc1*_U_1+(this._kc1>>>0);};/*
 * Converts the Long to a string written in the specified radix.
 * @param {number=} radix Radix (2-36), defaults to 10
 * @returns {string}
 * @override
 * @throws {RangeError} If `radix` is out of range
 */_302.toString=function toString(_X_1){_X_1=_X_1||10;if(_X_1<2||36<_X_1)throw _Lw('radix');if(this._502())return '0';if(this._602()){if(this._702(MIN_VALUE)){var _802=_O_1(_X_1),_0x=this._0x(_802),
_902=_0x._aR(_802).sub(this);return _0x.toString(_X_1)+_902._402().toString(_X_1);}else return '-'+this._T_1().toString(_X_1);}var _Y_1=_O_1(_V_1(_X_1,6),this._H_1),_a02=this;var result='';while(true){var _b02=_a02._0x(_Y_1),_c02=_a02.sub(_b02._aR(_Y_1))._402()>>>0,_d02=_c02.toString(_X_1);_a02=_b02;if(_a02._502())return _d02+result;else {while(_d02.length<6)_d02='0'+_d02;result=''+_d02+result;}}};/*
 * Gets the high 32 bits as a signed integer.
 * @returns {number} Signed high bits
 */_302._e02=function _e02(){
return this._Kc1;};/*
 * Gets the high 32 bits as an unsigned integer.
 * @returns {number} Unsigned high bits
 */_302._f02=function _f02(){return this._Kc1>>>0;};/*
 * Gets the low 32 bits as a signed integer.
 * @returns {number} Signed low bits
 */_302._g02=function _g02(){return this._kc1;};/*
 * Gets the low 32 bits as an unsigned integer.
 * @returns {number} Unsigned low bits
 */_302._h02=function _h02(){return this._kc1>>>0;};/*
 * Gets the number of bits needed to represent the absolute value of this Long.
 * @returns {number}
 */_302._i02=function _i02(){
if(this._602())return this._702(MIN_VALUE)?64:this._T_1()._i02();var _Je=this._Kc1!=0?this._Kc1:this._kc1;for(var _Cd=31;_Cd>0;_Cd--)if((_Je&(1<<_Cd))!=0)break;return this._Kc1!=0?_Cd+33:_Cd+1;};/*
 * Tests if this Long's value equals zero.
 * @returns {boolean}
 */_302._502=function _502(){return this._Kc1===0&&this._kc1===0;};/*
 * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.
 * @returns {boolean}
 */_302._j02=_302._502;/*
 * Tests if this Long's value is negative.
 * @returns {boolean}
 */_302._602=function _602(){
return !this._H_1&&this._Kc1<0;};/*
 * Tests if this Long's value is positive.
 * @returns {boolean}
 */_302._k02=function _k02(){return this._H_1||this._Kc1>=0;};/*
 * Tests if this Long's value is odd.
 * @returns {boolean}
 */_302._l02=function _l02(){return(this._kc1&1)===1;};/*
 * Tests if this Long's value is even.
 * @returns {boolean}
 */_302._m02=function _m02(){return(this._kc1&1)===0;};/*
 * Tests if this Long's value equals the specified's.
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._n02=function _n02(other){
if(!_I_1(other))other=_0R(other);if(this._H_1!==other._H_1&&(this._Kc1>>>31)===1&&(other._Kc1>>>31)===1)return false;return this._Kc1===other._Kc1&&this._kc1===other._kc1;};/*
 * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._702=_302._n02;/*
 * Tests if this Long's value differs from the specified's.
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._o02=function _o02(other){
return !this._702(other);};/*
 * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._p02=_302._o02;/*
 * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._q02=_302._o02;/*
 * Tests if this Long's value is less than the specified's.
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._r02=function _r02(other){
return this._s02(other)<0;};/*
 * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._t02=_302._r02;/*
 * Tests if this Long's value is less than or equal the specified's.
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._u02=function _u02(other){return this._s02(other)<=0;};/*
 * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._v02=_302._u02;
/*
 * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._w02=_302._u02;/*
 * Tests if this Long's value is greater than the specified's.
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._x02=function _x02(other){return this._s02(other)>0;};/*
 * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._y02=_302._x02;
/*
 * Tests if this Long's value is greater than or equal the specified's.
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._z02=function _z02(other){return this._s02(other)>=0;};/*
 * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._A02=_302._z02;/*
 * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */_302._Oz=_302._z02;
/*
 * Compares this Long's value with the specified's.
 * @param {!Long|number|string} other Other value
 * @returns {number} 0 if they are the same, 1 if the this is greater and -1
 *  if the given one is greater
 */_302._B02=function _B02(other){if(!_I_1(other))other=_0R(other);if(this._702(other))return 0;var _C02=this._602(),_D02=other._602();if(_C02&&!_D02)return -1;if(!_C02&&_D02)return 1;if(!this._H_1)return this.sub(other)._602()?-1:1;return(other._Kc1>>>0)>(this._Kc1>>>0)||(other._Kc1===this._Kc1&&(other._kc1>>>0)>(this._kc1>>>0))?-1:1;
};/*
 * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {number} 0 if they are the same, 1 if the this is greater and -1
 *  if the given one is greater
 */_302._s02=_302._B02;/*
 * Negates this Long's value.
 * @returns {!Long} Negated Long
 */_302._E02=function _E02(){if(!this._H_1&&this._702(MIN_VALUE))return MIN_VALUE;return this.not().add(ONE);};/*
 * Negates this Long's value. This is an alias of {@link Long#negate}.
 * @function
 * @returns {!Long} Negated Long
 */_302._T_1=_302._E02;
/*
 * Returns the sum of this and the specified Long.
 * @param {!Long|number|string} addend Addend
 * @returns {!Long} Sum
 */_302.add=function add(_F02){if(!_I_1(_F02))_F02=_0R(_F02);var _G02=this._Kc1>>>16;var _H02=this._Kc1&0xFFFF;var _I02=this._kc1>>>16;var _J02=this._kc1&0xFFFF;var _K02=_F02._Kc1>>>16;var _L02=_F02._Kc1&0xFFFF;var _M02=_F02._kc1>>>16;var _N02=_F02._kc1&0xFFFF;var _O02=0,_P02=0,_Q02=0,_R02=0;_R02+=_J02+_N02;_Q02+=_R02>>>16;_R02&=0xFFFF;_Q02+=_I02+_M02;_P02+=_Q02>>>16;_Q02&=0xFFFF;
_P02+=_H02+_L02;_O02+=_P02>>>16;_P02&=0xFFFF;_O02+=_G02+_K02;_O02&=0xFFFF;return _N_1((_Q02<<16)|_R02,(_O02<<16)|_P02,this._H_1);};/*
 * Returns the difference of this and the specified Long.
 * @param {!Long|number|string} subtrahend Subtrahend
 * @returns {!Long} Difference
 */_302.subtract=function subtract(_S02){if(!_I_1(_S02))_S02=_0R(_S02);return this.add(_S02._T_1());};/*
 * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.
 * @function
 * @param {!Long|number|string} subtrahend Subtrahend
 * @returns {!Long} Difference
 */_302.sub=_302.subtract;
/*
 * Returns the product of this and the specified Long.
 * @param {!Long|number|string} multiplier Multiplier
 * @returns {!Long} Product
 */_302._T02=function _T02(_U02){if(this._502())return ZERO;if(!_I_1(_U02))_U02=_0R(_U02);if(_D_1){var _kc1=_D_1._aR(this._kc1,this._Kc1,_U02._kc1,_U02._Kc1);return _N_1(_kc1,_D_1._V02(),this._H_1);}if(_U02._502())return ZERO;if(this._702(MIN_VALUE))return _U02._l02()?MIN_VALUE:ZERO;if(_U02._702(MIN_VALUE))return this._l02()?MIN_VALUE:ZERO;if(this._602()){if(_U02._602())return this._T_1()._aR(_U02._T_1());
else return this._T_1()._aR(_U02)._T_1();}else if(_U02._602())return this._aR(_U02._T_1())._T_1();if(this._t02(_002)&&_U02._t02(_002))return _O_1(this._9R()*_U02._9R(),this._H_1);var _G02=this._Kc1>>>16;var _H02=this._Kc1&0xFFFF;var _I02=this._kc1>>>16;var _J02=this._kc1&0xFFFF;var _K02=_U02._Kc1>>>16;var _L02=_U02._Kc1&0xFFFF;var _M02=_U02._kc1>>>16;var _N02=_U02._kc1&0xFFFF;var _O02=0,_P02=0,_Q02=0,_R02=0;_R02+=_J02*_N02;_Q02+=_R02>>>16;_R02&=0xFFFF;_Q02+=_I02*_N02;_P02+=_Q02>>>16;_Q02&=0xFFFF;_Q02+=_J02*_M02;
_P02+=_Q02>>>16;_Q02&=0xFFFF;_P02+=_H02*_N02;_O02+=_P02>>>16;_P02&=0xFFFF;_P02+=_I02*_M02;_O02+=_P02>>>16;_P02&=0xFFFF;_P02+=_J02*_L02;_O02+=_P02>>>16;_P02&=0xFFFF;_O02+=_G02*_N02+_H02*_M02+_I02*_L02+_J02*_K02;_O02&=0xFFFF;return _N_1((_Q02<<16)|_R02,(_O02<<16)|_P02,this._H_1);};/*
 * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.
 * @function
 * @param {!Long|number|string} multiplier Multiplier
 * @returns {!Long} Product
 */_302._aR=_302._T02;
/*
 * Returns this Long divided by the specified. The result is signed if this Long is signed or
 *  unsigned if this Long is unsigned.
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Quotient
 */_302._W02=function _W02(_lB){if(!_I_1(_lB))_lB=_0R(_lB);if(_lB._502())throw Error('division by zero');if(_D_1){if(!this._H_1&&this._Kc1===-0x80000000&&_lB._kc1===-1&&_lB._Kc1===-1){return this;}var _kc1=(this._H_1?_D_1._X02:_D_1._Y02)(this._kc1,this._Kc1,_lB._kc1,_lB._Kc1);return _N_1(_kc1,
_D_1._V02(),this._H_1);}if(this._502())return this._H_1?_P_1:ZERO;var _Z02,_a02,_bc;if(!this._H_1){if(this._702(MIN_VALUE)){if(_lB._702(ONE)||_lB._702(_202))return MIN_VALUE;else if(_lB._702(MIN_VALUE))return ONE;else {var __02=this._012(1);_Z02=__02._0x(_lB)._112(1);if(_Z02._702(ZERO)){return _lB._602()?ONE:_202;}else {_a02=this.sub(_lB._aR(_Z02));_bc=_Z02.add(_a02._0x(_lB));return _bc;}}}else if(_lB._702(MIN_VALUE))return this._H_1?_P_1:ZERO;if(this._602()){if(_lB._602())return this._T_1()._0x(_lB._T_1());
return this._T_1()._0x(_lB)._T_1();}else if(_lB._602())return this._0x(_lB._T_1())._T_1();_bc=ZERO;}else {if(!_lB._H_1)_lB=_lB._212();if(_lB._y02(this))return _P_1;if(_lB._y02(this._312(1)))return _102;_bc=_P_1;}_a02=this;while(_a02._A02(_lB)){_Z02=Math.max(1,Math.floor(_a02._9R()/_lB._9R()));var log2=Math.ceil(Math.log(_Z02)/Math.LN2),_2i=(log2<=48)?1:_V_1(2,log2-48),_412=_O_1(_Z02),_512=_412._aR(_lB);while(_512._602()||_512._y02(_a02)){_Z02-=_2i;_412=_O_1(_Z02,this._H_1);_512=_412._aR(_lB);}if(_412._502())_412=ONE;
_bc=_bc.add(_412);_a02=_a02.sub(_512);}return _bc;};/*
 * Returns this Long divided by the specified. This is an alias of {@link Long#divide}.
 * @function
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Quotient
 */_302._0x=_302._W02;/*
 * Returns this Long modulo the specified.
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Remainder
 */_302._612=function _612(_lB){if(!_I_1(_lB))_lB=_0R(_lB);if(_D_1){var _kc1=(this._H_1?_D_1._712:_D_1._812)(this._kc1,
this._Kc1,_lB._kc1,_lB._Kc1);return _N_1(_kc1,_D_1._V02(),this._H_1);}return this.sub(this._0x(_lB)._aR(_lB));};/*
 * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
 * @function
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Remainder
 */_302._bR=_302._612;/*
 * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
 * @function
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Remainder
 */_302._a02=_302._612;
/*
 * Returns the bitwise NOT of this Long.
 * @returns {!Long}
 */_302.not=function not(){return _N_1(~this._kc1,~this._Kc1,this._H_1);};/*
 * Returns the bitwise AND of this Long and the specified.
 * @param {!Long|number|string} other Other Long
 * @returns {!Long}
 */_302._eR=function _eR(other){if(!_I_1(other))other=_0R(other);return _N_1(this._kc1&other._kc1,this._Kc1&other._Kc1,this._H_1);};/*
 * Returns the bitwise OR of this Long and the specified.
 * @param {!Long|number|string} other Other Long
 * @returns {!Long}
 */_302._fR=function _fR(other){
if(!_I_1(other))other=_0R(other);return _N_1(this._kc1|other._kc1,this._Kc1|other._Kc1,this._H_1);};/*
 * Returns the bitwise XOR of this Long and the given one.
 * @param {!Long|number|string} other Other Long
 * @returns {!Long}
 */_302._gR=function _gR(other){if(!_I_1(other))other=_0R(other);return _N_1(this._kc1^other._kc1,this._Kc1^other._Kc1,this._H_1);};/*
 * Returns this Long with bits shifted to the left by the given amount.
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */_302._iR=function _iR(_912){
if(_I_1(_912))_912=_912._402();if((_912&=63)===0)return this;else if(_912<32)return _N_1(this._kc1<<_912,(this._Kc1<<_912)|(this._kc1>>>(32-_912)),this._H_1);else return _N_1(0,this._kc1<<(_912-32),this._H_1);};/*
 * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */_302._112=_302._iR;/*
 * Returns this Long with bits arithmetically shifted to the right by the given amount.
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */_302._jR=function _jR(_912){
if(_I_1(_912))_912=_912._402();if((_912&=63)===0)return this;else if(_912<32)return _N_1((this._kc1>>>_912)|(this._Kc1<<(32-_912)),this._Kc1>>_912,this._H_1);else return _N_1(this._Kc1>>(_912-32),this._Kc1>=0?0:-1,this._H_1);};/*
 * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */_302._012=_302._jR;/*
 * Returns this Long with bits logically shifted to the right by the given amount.
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */_302._a12=function _a12(_912){
if(_I_1(_912))_912=_912._402();_912&=63;if(_912===0)return this;else {var _Kc1=this._Kc1;if(_912<32){var _kc1=this._kc1;return _N_1((_kc1>>>_912)|(_Kc1<<(32-_912)),_Kc1>>>_912,this._H_1);}else if(_912===32)return _N_1(_Kc1,0,this._H_1);else return _N_1(_Kc1>>>(_912-32),0,this._H_1);}};/*
 * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */_302._312=_302._a12;
/*
 * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */_302._b12=_302._a12;/*
 * Converts this Long to signed.
 * @returns {!Long} Signed long
 */_302._c12=function _c12(){if(!this._H_1)return this;return _N_1(this._kc1,this._Kc1,false);};/*
 * Converts this Long to unsigned.
 * @returns {!Long} Unsigned long
 */_302._212=function _212(){
if(this._H_1)return this;return _N_1(this._kc1,this._Kc1,true);};/*
 * Converts this Long to its byte representation.
 * @param {boolean=} le Whether little or big endian, defaults to big endian
 * @returns {!Array.<number>} Byte representation
 */_302._d12=function _d12(_w02){return _w02?this._e12():this._f12();};/*
 * Converts this Long to its little endian byte representation.
 * @returns {!Array.<number>} Little endian byte representation
 */_302._e12=function _e12(){var _jc1=this._Kc1,_2m1=this._kc1;
return [_2m1&0xff,_2m1>>>8&0xff,_2m1>>>16&0xff,_2m1>>>24,_jc1&0xff,_jc1>>>8&0xff,_jc1>>>16&0xff,_jc1>>>24];};/*
 * Converts this Long to its big endian byte representation.
 * @returns {!Array.<number>} Big endian byte representation
 */_302._f12=function _f12(){var _jc1=this._Kc1,_2m1=this._kc1;return [_jc1>>>24,_jc1>>>16&0xff,_jc1>>>8&0xff,_jc1&0xff,_2m1>>>24,_2m1>>>16&0xff,_2m1>>>8&0xff,_2m1&0xff];};/*
 * Creates a Long from its byte representation.
 * @param {!Array.<number>} bytes Byte representation
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @param {boolean=} le Whether little or big endian, defaults to big endian
 * @returns {Long} The corresponding Long value
 */Long._g12=function _g12(_h12,
_H_1,_w02){return _w02?Long._i12(_h12,_H_1):Long._j12(_h12,_H_1);};/*
 * Creates a Long from its little endian byte representation.
 * @param {!Array.<number>} bytes Little endian byte representation
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {Long} The corresponding Long value
 */Long._i12=function _i12(_h12,_H_1){return new Long(_h12[0]|_h12[1]<<8|_h12[2]<<16|_h12[3]<<24,_h12[4]|_h12[5]<<8|_h12[6]<<16|_h12[7]<<24,_H_1);};/*
 * Creates a Long from its big endian byte representation.
 * @param {!Array.<number>} bytes Big endian byte representation
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {Long} The corresponding Long value
 */Long._j12=function _j12(_h12,
_H_1){return new Long(_h12[4]<<24|_h12[5]<<16|_h12[6]<<8|_h12[7],_h12[0]<<24|_h12[1]<<16|_h12[2]<<8|_h12[3],_H_1);};_Yg:function _k12(color){return(((color._Y4*255)&0xff)<<0)|(((color._Z4*255)&0xff)<<8)|(((color.__4*255)&0xff)<<16);}/*@this {yyPhysicsDebugDraw} */function _l12(vertices,vertexCount,color){draw_set_color(_k12(color));var scale=1.0/this._m12._TZ;for(var _c7=0;_c7<vertexCount;++_c7){var _n12=vertices[_c7];var _o12=vertices[(_c7+1)%vertexCount];draw_line(_n12.x*scale,_n12.y*scale,_o12.x*scale,
_o12.y*scale);}}/*@this {yyPhysicsDebugDraw} */function _p12(vertices,vertexCount,color){draw_set_color(_k12(color));var scale=1.0/this._m12._TZ;var _n12=vertices[0];for(var _c7=2;_c7<vertexCount;++_c7){var _o12=vertices[_c7-1];var _q12=vertices[_c7];draw_triangle(_n12.x*scale,_n12.y*scale,_o12.x*scale,_o12.y*scale,_q12.x*scale,_q12.y*scale,false);}}/*@this {yyPhysicsDebugDraw} */function _r12(_em1,_K01,color){draw_set_color(_k12(color));var scale=1.0/this._m12._TZ;draw_ellipse((_em1.x-_K01)*scale,(_em1.y-_K01)*scale,
(_em1.x+_K01)*scale,(_em1.y+_K01)*scale,true);}/*@this {yyPhysicsDebugDraw} */function _s12(_em1,_K01,_bp,color){draw_set_color(_k12(color));var scale=1.0/this._m12._TZ;draw_ellipse((_em1.x-_K01)*scale,(_em1.y-_K01)*scale,(_em1.x+_K01)*scale,(_em1.y+_K01)*scale,false);}/*@this {yyPhysicsDebugDraw} */function _t12(_ap,_hm1,color){draw_set_color(_k12(color));var scale=1.0/this._m12._TZ;draw_line(_ap.x*scale,_ap.y*scale,_hm1.x*scale,_hm1.y*scale);}/*@this {yyPhysicsDebugDraw} */function _u12(_gl1){var _v12=0.4;
var scale=1.0/this._m12._TZ;var _ap=_gl1._2z,_hm1=new _w12._x12();_hm1.x=_ap.x+_v12*_gl1.q._dl1().x;_hm1.y=_ap.y+_v12*_gl1.q._dl1().y;draw_set_color(_y12);draw_line(_ap.x*scale,_ap.y*scale,_hm1.x*scale,_hm1.y*scale);_hm1.x=_ap.x+_v12*_gl1.q._el1().x;_hm1.y=_ap.y+_v12*_gl1.q._el1().y;draw_set_color(_z12);draw_line(_ap.x*scale,_ap.y*scale,_hm1.x*scale,_hm1.y*scale);}/*@this {yyPhysicsDebugDraw} */function _A12(_jm1,_K01,_km1,_c9){for(var _c7=0;_c7<_c9;_c7++){var scale=1.0/this._m12._TZ;draw_set_color(((_km1[_c7]._Y4&0xff)<<0)|((_km1[_c7]._Z4&0xff)<<8)|((_km1[_c7].__4&0xff)<<16));
draw_ellipse((_jm1[_c7].x-_K01)*scale,(_jm1[_c7].y-_K01)*scale,(_jm1[_c7].x+_K01)*scale,(_jm1[_c7].y+_K01)*scale,true);}}/*@constructor */function _yZ(){this._Xv1=0;this._Yv1=0;this._B12=false;this._C12=true;this._D12=false;this._E12=new _w12._F12();this._gn1=null;};_yZ.prototype._SZ=function(_to){this._gn1=null;this._E12.shape=new _w12._G12();this._E12.shape._Dm1=_to;};_yZ.prototype._WZ=function(_UZ,_VZ){this._gn1=null;this._E12.shape=new _w12._H12();this._E12.shape._An1(_UZ,_VZ);};_yZ.prototype._YZ=function(){
this._gn1=[];this._E12.shape=new _w12._H12();};_yZ.prototype._ZZ=function(_x4){this._gn1=[];this._D12=_x4;this._E12.shape=new _w12._I12();};_yZ.prototype._XZ=function(_ec,_fc,_gc,_hc){var _3c=new _w12._x12(_ec,_fc);var _J5=new _w12._x12(_gc,_hc);this._gn1=null;this._E12.shape=new _w12._J12();this._E12.shape.Set(_3c,_J5);};_yZ.prototype._1_=function(_96,_a6){var vertexCount=this._gn1.length;this._gn1[vertexCount]=new _w12._x12(_96,_a6);};_yZ.prototype._K12=function(){if(this._gn1===null||this._gn1===undefined){
return true;}if(this._E12.shape._nH===_w12._L12._Rm1){if(this._gn1.length>2){this._E12.shape.Set(this._gn1,this._gn1.length);return true;}}else if(this._E12.shape._nH===_w12._L12._Sm1){if(this._D12){if(this._gn1.length>=3){this._E12.shape._nn1(this._gn1,this._gn1.length);return true;}}else {if(this._gn1.length>=2){this._E12.shape._on1(this._gn1,this._gn1.length);return true;}}}return false;};_yZ.prototype._JZ=function(_IZ){this._E12.filter._xx1=_IZ;};_yZ.prototype._HZ=function(_GZ){this._E12.friction=_GZ;
};_yZ.prototype._FZ=function(_EZ){this._E12._yx1=_EZ;};_yZ.prototype._DZ=function(_CZ){this._E12._h11=_CZ;};_yZ.prototype._LZ=function(_M12){this._E12._zx1=_M12;};_yZ.prototype._NZ=function(_MZ){this._Xv1=_MZ;};_yZ.prototype._OZ=function(_MZ){this._Yv1=_MZ;};_yZ.prototype._OZ=function(_MZ){this._Yv1=_MZ;};_yZ.prototype._QZ=function(_PZ){this._C12=_PZ;};_yZ.prototype._BZ=function(){this._B12=true;};var _N12=0,_O12=1,_P12=2,_Q12=3,_R12=4,_S12=5,_T12=6,_U12=7,_V12=8,_W12=9,_X12=10,_Y12=11,_Z12=12,__12=13,
_022=14,_122=15,_222=16,_322=17,_422=18,_522=19,_622=20,_722=21,_822=22,_922=23,_a22=24;/*@constructor */function _b22(_c22){this._d22=_c22;};_b22.prototype._101=function(___){if((this._d22 instanceof _w12._e22)||(this._d22 instanceof _w12._f22)||(this._d22 instanceof _w12._g22)){this._d22._kA1()._QZ(true);this._d22._lA1()._QZ(true);this._d22._101(___);}};_b22.prototype._301=function(_201){switch(_201){case _N12:return this._d22._mA1().x;case _O12:return this._d22._mA1().y;case _P12:return this._d22._nA1().x;
case _Q12:return this._d22._nA1().y;case _R12:return this._d22._YH1(1.0/_c4._lZ._h22).x;case _S12:return this._d22._YH1(1.0/_c4._lZ._h22).y;case _T12:return this._d22._ZH1(1.0/_c4._lZ._h22);case _U12:{if((this._d22 instanceof _w12._e22)||(this._d22 instanceof _w12._f22)||(this._d22 instanceof _w12._g22)){return this._d22._2J1();}}break;case _V12:{if(this._d22 instanceof _w12._e22){return this._d22._UI1();}else if(this._d22 instanceof _w12._i22){return this._d22._TI1();}}break;case _W12:{if((this._d22 instanceof _w12._e22)||(this._d22 instanceof _w12._g22)){
return this._d22._5J1(1.0/_c4._lZ._h22);}}break;case _X12:{if((this._d22 instanceof _w12._e22)||(this._d22 instanceof _w12._g22)){return this._d22._4J1();}}break;case _Y12:{if((this._d22 instanceof _w12._f22)||(this._d22 instanceof _w12._g22)){return this._d22._5K1();}}break;case _Z12:{if((this._d22 instanceof _w12._f22)||(this._d22 instanceof _w12._g22)){return this._d22._VI1();}}break;case __12:{if(this._d22 instanceof _w12._f22){return this._d22._8K1(1.0/_c4._lZ._h22);}}break;case _022:{if(this._d22 instanceof _w12._f22){
return this._d22._7K1();}}break;case _122:{if(this._d22 instanceof _w12._j22){return this._d22._vM1();}if(this._d22 instanceof _w12._k22){return this._d22._JJ1();}}break;case _222:{if(this._d22 instanceof _w12._j22){return this._d22._wM1();}}break;case _322:{if((this._d22 instanceof _w12._k22)||(this._d22 instanceof _w12._i22)){this._d22._CJ1();}else if(this._d22 instanceof _w12._g22){return this._d22._MK1();}}break;case _422:{if((this._d22 instanceof _w12._k22)||(this._d22 instanceof _w12._i22)){return this._d22._AJ1();}
else if(this._d22 instanceof _w12._g22){return this._d22._KK1();}}break;case _522:{if(this._d22 instanceof _w12._e22){return((this._d22._YI1()*180.0)/Math.PI);}}break;case _622:{if(this._d22 instanceof _w12._e22){return((this._d22._ZI1()*180.0)/Math.PI);}}break;case _722:{if(this._d22 instanceof _w12._e22){return this._d22._WI1();}}break;case _822:{if(this._d22 instanceof _w12._l22){return this._d22._KM1();}}break;case _922:{if(this._d22 instanceof _w12._m22){return this._d22._uK1();}}break;case _a22:{if(this._d22 instanceof _w12._m22){
return this._d22._xJ1();}}}return 0;};_b22.prototype._401=function(_201,_Ol){switch(_201){case _U12:{if((this._d22 instanceof _w12._e22)||(this._d22 instanceof _w12._f22)||(this._d22 instanceof _w12._g22)){this._d22._kA1()._QZ(true);this._d22._lA1()._QZ(true);this._d22._1J1(_Ol);}}break;case _X12:{if((this._d22 instanceof _w12._e22)||(this._d22 instanceof _w12._g22)){this._d22._kA1()._QZ(true);this._d22._lA1()._QZ(true);this._d22._3J1(_Ol);}}break;case _022:{if(this._d22 instanceof _w12._f22){this._d22._6K1(_Ol);
}}break;case _122:{if(this._d22 instanceof _w12._k22){this._d22._IJ1(_Ol);}}break;case _322:{if((this._d22 instanceof _w12._k22)||(this._d22 instanceof _w12._i22)){this._d22._BJ1(_Ol);}else if(this._d22 instanceof _w12._g22){this._d22._LK1(_Ol);}}break;case _422:{if((this._d22 instanceof _w12._k22)||(this._d22 instanceof _w12._i22)){this._d22._yJ1(_Ol);}else if(this._d22 instanceof _w12._g22){this._d22._JK1(_Ol);}}break;case _522:{if(this._d22 instanceof _w12._e22){var angle=(_Ol*Math.PI)/180.0;this._d22.__I1(angle,this._d22._ZI1());
}}break;case _622:{if(this._d22 instanceof _w12._e22){var angle=(_Ol*Math.PI)/180.0;this._d22.__I1(this._d22._YI1(),angle);}}break;case _722:{if(this._d22 instanceof _w12._e22){this._d22._XI1((_Ol>0.5)?true:false);}}break;case _822:{if(this._d22 instanceof _w12._l22){this._d22._JM1(_Ol);}}break;case _922:{if(this._d22 instanceof _w12._m22){this._d22._tK1(_Ol);}}break;case _a22:{if(this._d22 instanceof _w12._m22){this._d22._wJ1(_Ol);}}break;}};/*@constructor */function _n22(_o22,_p22,_d5,_e5){this._q22=_o22;this._r22=_p22;
this._s22=new _w12._x12(_d5,_e5);this._t22=[];};_n22.prototype._e01=function(_u22,_v22,_w22,_x22){this._q22._Mw1(new _w12._x12(_w22,_x22),new _w12._x12(_u22,_v22),true);};_n22.prototype._b01=function(_u22,_v22,_w22,_x22){this._q22._b01(new _w12._x12(_w22,_x22),new _w12._x12(_u22,_v22),true);};_n22.prototype._l01=function(_y22,_z22,_A22,_B22){var _C22=this._q22._Tw1(new _w12._x12(_A22,_B22));var _D22=this._q22._Sw1(new _w12._x12(_y22,_z22));this._q22._b01(_C22,_D22,true);};_n22.prototype._o01=function(_y22,
_z22,_A22,_B22){var _C22=this._q22._Tw1(new _w12._x12(_A22,_B22));var _D22=this._q22._Sw1(new _w12._x12(_y22,_z22));this._q22._Mw1(_C22,_D22,true);};_n22.prototype._q01=function(_p01){this._q22._q01(_p01,true);};_n22.prototype._s01=function(_r01){this._q22._s01(_r01,true);};_n22.prototype._x01=function(_t01,_E22,_F22,_w01){var _Lm1=new _w12._G22();_Lm1._Am1=_t01;_Lm1._Bm1=_w01;_Lm1._em1=new _w12._x12(_E22,_F22);this._q22._Rw1(_Lm1);};_n22.prototype._H22=function(_I22){var position=this._q22._4Z();this._q22._Aw1(position,
(_I22*Math.PI)/180.0);this._q22._QZ(true);};_n22.prototype._J22=function(_tk){var angle=this._q22._cl1();var _Ib=this._q22._4Z().y;this._q22._Aw1(new _w12._x12(_tk,_Ib),angle);this._q22._QZ(true);};_n22.prototype._K22=function(_tk){var angle=this._q22._cl1();var _Hb=this._q22._4Z().x;this._q22._Aw1(new _w12._x12(_Hb,_tk),angle);this._q22._QZ(true);};_n22.prototype._Gw1=function(_L22){this._q22._Gw1((_L22*Math.PI)/180.0);this._q22._QZ(true);};_n22.prototype._M22=function(_N22){var _O22=this._q22._Fw1();
this._q22._Ew1(new _w12._x12(_N22,_O22.y));this._q22._QZ(true);};_n22.prototype._P22=function(_N22){var _O22=this._q22._Fw1();this._q22._Ew1(new _w12._x12(_O22.x,_N22));this._q22._QZ(true);};_n22.prototype._ax1=function(_Q22){this._q22._ax1(_Q22);};_n22.prototype._ix1=function(_R22){this._q22._ix1(_R22);};_n22.prototype._gx1=function(_S22){this._q22._gx1(_S22);};_n22.prototype._qZ=function(_T22){if(this._q22){this._U22(_T22);this._V22(_T22);}};_n22.prototype._U22=function(_En){var _AZ=this._q22._kx1();
while((_AZ!=null)&&(_AZ!=undefined)){var shape=_AZ._Gx1();var transform=this._q22._nl1();if(shape instanceof _w12._G12){var _em1=_w12._W22(transform,shape._Vm1);draw_ellipse((_em1.x-shape._Dm1)*_En,(_em1.y-shape._Dm1)*_En,(_em1.x+shape._Dm1)*_En,(_em1.y+shape._Dm1)*_En,true);}else if(shape instanceof _w12._H12){var _X22=Math.sin(this._q22._cl1());var _Y22=Math.cos(this._q22._cl1());for(var _c7=0;_c7<shape._hn1;++_c7){var _n12=shape._gn1[_c7];var _o12=shape._gn1[(_c7+1)%shape._hn1];var _Z22=_w12._W22(transform,
_n12);var __22=_w12._W22(transform,_o12);draw_line(_Z22.x*_En,_Z22.y*_En,__22.x*_En,__22.y*_En);}}_AZ=_AZ._Uv1;}};_n22.prototype._V22=function(_En){var _sx1=this._q22._Rv1;while((_sx1!=null)&&(_sx1!=undefined)){var _h_=_sx1._h_;if(_h_ instanceof _w12._e22){this._032(_h_,_En);}else if(_h_ instanceof _w12._f22){this._132(_h_,_En);}else if(_h_ instanceof _w12._k22){this._232(_h_,_En);}else if(_h_ instanceof _w12._j22){this._332(_h_,_En);}else if(_h_ instanceof _w12._432){if(_h_._532!=null){this._032(_h_._532,_En);}
if(_h_._632!=null){this._032(_h_._632,_En);}if(_h_._732!=null){this._132(_h_._732,_En);}if(_h_._832!=null){this._132(_h_._832,_En);}}_sx1=_sx1._Uv1;}};_n22.prototype._232=function(_Z_,_En){var _EJ1=_Z_._mA1();var _FJ1=_Z_._nA1();draw_line(_EJ1.x*_En,_EJ1.y*_En,_FJ1.x*_En,_FJ1.y*_En);};_n22.prototype._032=function(_Z_,_En){var anchor=_Z_._mA1();draw_line((anchor.x*_En)-2,(anchor.y*_En)-2,(anchor.x*_En)+2,(anchor.y*_En)+2);draw_line((anchor.x*_En)-2,(anchor.y*_En)+2,(anchor.x*_En)+2,(anchor.y*_En)-2);
};_n22.prototype._132=function(_Z_,_En){var _EJ1=_Z_._mA1();var _FJ1=this._q22._4Z();draw_line(_EJ1.x*_En,_EJ1.y*_En,_FJ1.x*_En,_FJ1.y*_En);};_n22.prototype._332=function(_Z_,_En){var anchor,_932;if(_Z_._a32()==this._q22){anchor=_Z_._mA1();_932=_Z_._rA1();}else {anchor=_Z_._nA1();_932=_Z_._sA1();}draw_line(anchor.x*_En,anchor.y*_En,_932.x*_En,_932.y*_En);draw_line(_Z_._rA1().x*_En,_Z_._rA1().y*_En,_Z_._sA1().x*_En,_Z_._sA1().y*_En);};_n22.prototype._b32=function(_c32){for(var i=0;i<this._t22.length;i++){
if(this._t22[i]==null||this._t22[i]==undefined){this._t22[i]=_c32;return i;}}return(this._t22.push(_c32)-1);};_n22.prototype._A01=function(_z01){if(this._t22[_z01]){this._q22._tw1(this._t22[_z01]);this._t22[_z01]=undefined;}};_n22.prototype._B01=function(_z01){if(this._t22[_z01]){return this._t22[_z01]._B01();}return 0.0;};_n22.prototype._C01=function(_z01){if(this._t22[_z01]){return this._t22[_z01]._C01();}return 0.0;};_n22.prototype._D01=function(_z01){if(this._t22[_z01]){return this._t22[_z01]._D01();
}return 0.0;};_n22.prototype._HZ=function(_z01,_k4){if(this._t22[_z01]){this._t22[_z01]._HZ(_k4);}};_n22.prototype._DZ=function(_z01,_k4){if(this._t22[_z01]){this._t22[_z01]._DZ(_k4);this._q22._qw1();}};_n22.prototype._FZ=function(_z01,_k4){if(this._t22[_z01]){this._t22[_z01]._FZ(_k4);}};_n22.prototype._P11=function(_H11,_I11,_J11,_K11,_M11){var _95=undefined;var _d32=_c4._lZ._TZ;var input=new _w12._e32();input._ap.x=_H11*_d32;input._ap.y=_I11*_d32;input._hm1.x=_J11*_d32;input._hm1.y=_K11*_d32;input._M11=_M11;
var _f32=false;var _g32=Number.MAX_VALUE;var _h32=-1;var _i32=-1;var output=new _w12._j32();for(var _nv=this._q22._kx1();_nv;_nv=_nv._Uv1){if(_nv._Gm1(output,input,0)){if(output._R11<_g32){_g32=output._R11;_h32=output._Om1.x;_i32=output._Om1.y;_f32=true;}}}if(_f32){_95={};_95.__yyIsGMLObject=true;variable_struct_set(_95,"normalX",_h32);variable_struct_set(_95,"normalY",_i32);variable_struct_set(_95,"fraction",_g32);variable_struct_set(_95,"hitpointX",_H11+_g32*(_J11-_H11));variable_struct_set(_95,"hitpointY",
_I11+_g32*(_K11-_I11));}return _95;};var _k32=10,_l32=32,_m32=(1<<0),_n32=(1<<1),_o32=(1<<2),_p32=(1<<3),_q32=(1<<4),_r32=(1<<5),_s32=(1<<6);var _w12=null;function _t32(){if(_w12===null){var _xh=window["b2"];_w12={};_w12.version=_xh["version"];_w12._x12=_xh["Vec2"];_w12._u32=_xh["Vec3"];_w12._v32=_xh["Mat22"];_w12._w32=_xh["Mat33"];_w12._x32=_xh["Rot"];_w12._y32=_xh["Transform"];_w12._z32=_xh["Sweep"];_w12._A32=_xh["Dot_v2_v2"];_w12._B32=_xh["Cross_v2_v2"];_w12._C32=_xh["Cross_v2_f"];_w12._D32=_xh["Cross_f_v2"];
_w12._E32=_xh["Mul_m22_v2"];_w12._F32=_xh["MulT_m22_v2"];_w12._G32=_xh["Distance"];_w12._H32=_xh["DistanceSquared"];_w12._I32=_xh["Dot_v3_v3"];_w12._J32=_xh["Cross_v3_v3"];_w12._K32=_xh["Mul_m22_m22"];_w12._L32=_xh["MulT_m22_m22"];_w12._M32=_xh["Mul_m33_v3"];_w12._N32=_xh["Mul22_m33_v2"];_w12._O32=_xh["Mul_r_r"];_w12._P32=_xh["MulT_r_r"];_w12._Q32=_xh["Mul_r_v2"];_w12._R32=_xh["MulT_r_v2"];_w12._W22=_xh["Mul_t_v2"];_w12._S32=_xh["Min_v2"];_w12._T32=_xh["Max_v2"];_w12._U32=_xh["Clamp"];_w12._V32=_xh["MulT_t_v2"];
_w12._W32=_xh["Mul_t_t"];_w12._X32=_xh["MulT_t_t"];_w12._Y32=_xh["Clamp_v2"];_w12._Z32=_xh["NextPowerOfTwo"];_w12.__32=_xh["Abs_v2"];_w12._042=_xh["Abs_m22"];_w12._142=_xh["IsPowerOfTwo"];_w12._242=_xh["RandomFloat"];_w12._342=_xh["Timer"];_w12._15=_xh["Color"];_w12._O9=_xh["Draw"];_w12._442=_xh["ContactID"];_w12._542=_xh["ManifoldPoint"];_w12._642=_xh["Manifold"];_w12._742=_xh["WorldManifold"];_w12._842=_xh["GetPointStates"];_w12._942=_xh["ClipVertex"];_w12._e32=_xh["RayCastInput"];_w12._j32=_xh["RayCastOutput"];
_w12._a42=_xh["AABB"];_w12._b42=_xh["CollideCircles"];_w12._c42=_xh["CollidePolygonAndCircle"];_w12._d42=_xh["FindMaxSeparation"];_w12._e42=_xh["FindIncidentEdge"];_w12._f42=_xh["CollidePolygons"];_w12._g42=_xh["CollideEdgeAndCircle"];_w12._h42=_xh["EPAxis"];_w12._i42=_xh["TempPolygon"];_w12._j42=_xh["ReferenceFace"];_w12._k42=_xh["EPCollider"];_w12._l42=_xh["CollideEdgeAndPolygon"];_w12._m42=_xh["ClipSegmentToLine"];_w12._n42=_xh["TestShapeOverlap"];_w12._y01=_xh["TestOverlap"];_w12._L12=_xh["Shape"];
_w12._G22=_xh["MassData"];_w12._G12=_xh["CircleShape"];_w12._J12=_xh["EdgeShape"];_w12._I12=_xh["ChainShape"];_w12._H12=_xh["PolygonShape"];_w12._PC1=_xh["Pair"];_w12._o42=_xh["PairLessThan"];_w12._p42=_xh["BroadPhase"];_w12._q42=_xh["DistanceProxy"];_w12._r42=_xh["SimplexCache"];_w12._s42=_xh["DistanceInput"];_w12._t42=_xh["DistanceOutput"];_w12._u42=_xh["SimplexVertex"];_w12._v42=_xh["Simplex"];_w12._w42=_xh["DistanceFunc"];_w12._x42=_xh["TreeNode"];_w12._y42=_xh["DynamicTree"];_w12._z42=_xh["TOIInput"];
_w12._A42=_xh["TOIOutput"];_w12._B42=_xh["SeparationFunction"];_w12._C42=_xh["TimeOfImpact"];_w12._D42=_xh["BodyDef"];_w12._E42=_xh["Body"];_w12._F42=_xh["Filter"];_w12._F12=_xh["FixtureDef"];_w12._G42=_xh["Fixture"];_w12._H42=_xh["DestructionListener"];_w12._I42=_xh["ContactFilter"];_w12._J42=_xh["ContactImpulse"];_w12._K42=_xh["ContactListener"];_w12._Qo1=_xh["QueryCallback"];_w12._Wt1=_xh["RayCastCallback"];_w12._L42=_xh["TimeStep"];_w12._M42=_xh["Position"];_w12._N42=_xh["Velocity"];_w12._O42=_xh["SolverData"];
_w12._P42=_xh["World"];_w12._Q42=_xh["MixFriction"];_w12._R42=_xh["MixRestitution"];_w12._S42=_xh["ContactRegister"];_w12._T42=_xh["ContactEdge"];_w12._U42=_xh["Contact"];_w12._V42=_xh["CircleContact"];_w12._W42=_xh["PolygonContact"];_w12._X42=_xh["ChainAndCircleContact"];_w12._Y42=_xh["ChainAndPolygonContact"];_w12._Z42=_xh["EdgeAndCircleContact"];_w12.__42=_xh["EdgeAndPolygonContact"];_w12._052=_xh["PolygonAndCircleContact"];_w12._152=_xh["defaultFilter"];_w12._252=_xh["defaultListener"];_w12._352=_xh["ContactManager"];
_w12._452=_xh["VelocityConstraintPoint"];_w12._552=_xh["ContactPositionConstraint"];_w12._652=_xh["ContactVelocityConstraint"];_w12._752=_xh["PositionSolverManifold"];_w12._852=_xh["ContactSolverDef"];_w12._952=_xh["ContactSolver"];_w12._a52=_xh["Island"];_w12._b52=_xh["Jacobian"];_w12._c52=_xh["JointEdge"];_w12._d52=_xh["JointDef"];_w12._e52=_xh["Joint"];_w12._f52=_xh["RevoluteJointDef"];_w12._e22=_xh["RevoluteJoint"];_w12._g52=_xh["MouseJointDef"];_w12._h52=_xh["MouseJoint"];_w12._i52=_xh["DistanceJointDef"];
_w12._k22=_xh["DistanceJoint"];_w12._j52=_xh["PrismaticJointDef"];_w12._f22=_xh["PrismaticJoint"];_w12._k52=_xh["FrictionJointDef"];_w12._m22=_xh["FrictionJoint"];_w12._l52=_xh["WeldJointDef"];_w12._i22=_xh["WeldJoint"];_w12._m52=_xh["WheelJointDef"];_w12._g22=_xh["WheelJoint"];_w12._n52=_xh["GearJointDef"];_w12._432=_xh["GearJoint"];_w12._o52=_xh["MotorJointDef"];_w12._p52=_xh["MotorJoint"];_w12._q52=_xh["PulleyJointDef"];_w12._j22=_xh["PulleyJoint"];_w12._r52=_xh["RopeJointDef"];_w12._l22=_xh["RopeJoint"];
_w12._s52=_xh["RopeDef"];_w12._t52=_xh["Rope"];_w12._u52=_xh["maxManifoldPoints"];_w12._v52=_xh["maxPolygonVertices"];_w12._w52=_xh["aabbExtension"];_w12._x52=_xh["aabbMultiplier"];_w12._y52=_xh["linearSlop"];_w12._z52=_xh["angularSlop"];_w12._A52=_xh["polygonRadius"];_w12._B52=_xh["maxSubSteps"];_w12._C52=_xh["maxTOIContacts"];_w12._D52=_xh["velocityThreshold"];_w12._E52=_xh["maxLinearCorrection"];_w12._F52=_xh["maxAngularCorrection"];_w12._G52=_xh["maxTranslation"];_w12._H52=_xh["maxTranslationSquared"];
_w12._I52=_xh["maxRotation"];_w12._J52=_xh["maxRotationSquared"];_w12._K52=_xh["baumgarte"];_w12._L52=_xh["toiBaugarte"];_w12._M52=_xh["timeToSleep"];_w12._N52=_xh["linearSleepTolerance"];_w12._O52=_xh["angularSleepTolerance"];_w12._P52=_xh["epsilon"];_w12._Q52=_xh["JsonSerializer"];_w12._R52=_xh["RUBELoader"];_w12._S52=_xh["Profiler"];_w12._T52=_xh["ParticleDef"];_w12._U52=_xh["ParticleColor"];_w12._V52=_xh["ParticleGroupDef"];_w12._W52=_xh["ParticleGroup"];_w12._X52=_xh["ParticleSystem"];}}/*@constructor */function _Y52(_Z52){
var _pF1=new _w12._742();_Z52._oF1(_pF1);this.__52=_Z52._ww1();this._062=_Z52._yw1();this._162=[];this._262=[];this._162[0]=_Z52._nF1();this._262[0]=_pF1;};/*@constructor */function _362(_462,_562,_662){this._762=_462;this._vx1=_562;this._wx1=_662;};/*@constructor */function _oZ(_kZ,_862){_t32();if(_w12===null){_w12=window["b2"];}this._TZ=_kZ;this._962=_862;this._a62=_k32;this._Sv1=[];this._b62=[];this._c62=new _w12._V52();this.__y1=null;this._GC=false;this._d62=[];for(var i=0;i<_l32;i++){this._d62[i]=new _362(-1,
0,0);}var gravity=new _w12._x12(0,10);this._Ov1=new _w12._P42(gravity);this._e62();this._f62();this._511=_09?this._g62:this._h62;this._611=_09?this._i62:this._j62;};_oZ.prototype._KC=function(){this._GC=true;};_oZ.prototype._wZ=function(){this._GC=false;};_oZ.prototype._e62=function(){var _Lb=document.getElementById("canvas").getContext("2d");if(_Lb){this.__y1=new _w12._O9();this.__y1._5m1(_w12._O9._lm1|_w12._O9._mm1);this.__y1._m12=this;this.__y1._bm1=_l12;this.__y1._cm1=_p12;this.__y1._dm1=_r12;this.__y1._fm1=_s12;
this.__y1._gm1=_t12;this.__y1._im1=_u12;this.__y1._511=_A12;this._Ov1._Zy1(this.__y1);}};_oZ.prototype._f62=function(){var _k62=new _w12._K42();_k62._l62=this;_k62._5y1=function(_uw1){if(_uw1._ww1()._Ix1()||_uw1._yw1()._Ix1()){this._l62._m62(_uw1);}};_k62._7y1=function(_uw1,_8y1){};_k62._6y1=function(_uw1){};_k62._9y1=function(_uw1,_n62){this._l62._m62(_uw1);};this._Ov1._Xy1(_k62);};_oZ.prototype._m62=function(_Z52){for(var _c7=0;_c7<this._Sv1.length;_c7++){var _o62=this._Sv1[_c7];if((_o62.__52==_Z52._ww1()&&_o62._062==_Z52._yw1())||(_o62.__52==_Z52._yw1()&&_o62._062==_Z52._ww1())){
var _pF1=new _w12._742();_Z52._oF1(_pF1);_o62._162[_o62._162.length]=_Z52._nF1();_o62._262[_o62._262.length]=_pF1;return;}}this._Sv1[this._Sv1.length]=new _Y52(_Z52);};_oZ.prototype._nZ=function(_xI){this._962=_xI;};_oZ.prototype._uZ=function(_mT){this._a62=_mT;};_oZ.prototype._mZ=function(_En){this._TZ=_En;};_oZ.prototype._tZ=function(_rZ,_sZ){this._Ov1._Fy1.x=_rZ;this._Ov1._Fy1.y=_sZ;if((_rZ!=0.0)||(_sZ!=0.0)){var _p62=this._Ov1._yz1();while((_p62!=null)&&(_p62!=undefined)){if(_p62._8g1()===_w12._E42._2w1){
_p62._QZ(true);}_p62=_p62._nx1();}}};_oZ.prototype._q62=function(){var _yk=_c4._0H._yk;for(var index=0;index<_yk.length;index++){var _9o=_yk[index];if(_9o.path_index>=0){var physicsObject=_9o._j_;if(physicsObject!==null&&physicsObject!==undefined){var _p62=physicsObject._q22;if(_p62._8g1()!==_w12._E42._2w1){if(_9o._r62()){_9o._w6(_s62,0,_9o,_9o);}_p62._Aw1(new _w12._x12(_9o.x*this._TZ,_9o.y*this._TZ),_p62._cl1());}}else {if(_9o._r62()){_9o._w6(_s62,0,_9o,_9o);}}}}};_oZ.prototype._t62=function(){var _u62=1.0/this._TZ;
var _p62=this._Ov1._yz1();while((_p62!=null)&&(_p62!=undefined)){var _9o=_p62._vo1();if((_9o!=null)&&(_9o!=undefined)){_9o._v62(_p62);var _zk=_p62._4Z();_9o.phy_position_xprevious=_zk.x*_u62;_9o.phy_position_yprevious=_zk.y*_u62;}_p62=_p62._nx1();}};_oZ.prototype._bg=function(_w62){if(_w62<=0){return;}this._q62();if(this._GC==true){return;}this._t62();var _x62=1.0/this._962;var _y62=this._962/_w62;var _z62=_y62;while(_z62>0.0){var _A62=(_z62>1.0)?_x62:(_x62*_z62);this._Ov1._ez1(_A62,this._a62,this._a62);
_z62-=1.0;}this._Ov1._iz1();this._B62();this._C62();};_oZ.prototype._B62=function(){var _u62=1.0/this._TZ;var _p62=this._Ov1._yz1();while((_p62!=null)&&(_p62!=undefined)){var _9o=_p62._vo1();if((_9o!=null)&&(_9o!=undefined)){if(_9o.marked&&_9o._j_){this._0z1(_9o._j_);_9o._j_=null;}else {_9o._v62(_p62);}}_p62=_p62._nx1();}};_oZ.prototype._C62=function(){var _u62=1.0/this._TZ;for(var i=0;i<this._Sv1.length;i++){if(this._Sv1[i].__52&&this._Sv1[i]._062&&this._Sv1[i].__52._Nx1()&&this._Sv1[i]._062._Nx1()){
var _D62=this._Sv1[i].__52._Nx1()._vo1();var _E62=this._Sv1[i]._062._Nx1()._vo1();_D62.phy_collision_points=0;_D62.phy_collision_x=undefined;_D62.phy_collision_y=undefined;_D62.phy_col_normal_x=undefined;_D62.phy_col_normal_y=undefined;_E62.phy_collision_points=0;_E62.phy_collision_x=undefined;_E62.phy_collision_y=undefined;_E62.phy_col_normal_x=undefined;_E62.phy_col_normal_y=undefined;var _F62=0;for(var _G62=0;_G62<this._Sv1[i]._162.length;_G62++){var _pF1=this._Sv1[i]._262[_G62];for(var _J6 in _pF1.points){
if(!_pF1.points.hasOwnProperty(_J6))continue;if(_F62==0){_D62.phy_collision_x=_pF1.points[_J6].x*_u62;_D62.phy_collision_y=_pF1.points[_J6].y*_u62;_E62.phy_collision_x=_pF1.points[_J6].x*_u62;_E62.phy_collision_y=_pF1.points[_J6].y*_u62;_D62.phy_col_normal_x=_pF1._Om1.x;_D62.phy_col_normal_y=_pF1._Om1.y;_E62.phy_col_normal_x=_pF1._Om1.x;_E62.phy_col_normal_y=_pF1._Om1.y;}_D62.phy_collision_points++;_E62.phy_collision_points++;_F62++;}}if(!_D62.marked&&!_E62.marked){_D62._w6(_H62,_E62.object_index,
_D62,_E62);_E62._w6(_H62,_D62.object_index,_E62,_D62);}_D62.phy_collision_points=0;_D62.phy_collision_x=undefined;_D62.phy_collision_y=undefined;_D62.phy_col_normal_x=undefined;_D62.phy_col_normal_y=undefined;_E62.phy_collision_points=0;_E62.phy_collision_x=undefined;_E62.phy_collision_y=undefined;_E62.phy_col_normal_x=undefined;_E62.phy_col_normal_y=undefined;}}this._Sv1=[];};function _I62(_J62,_K62){switch(_J62.shape._8g1()){case _w12._L12._Pm1:{var _So1=_J62.shape;_So1._Vm1.x+=_K62.x;_So1._Vm1.y+=_K62.y;
}break;case _w12._L12._Rm1:{var _17=_J62.shape;for(var i=0;i<_17._hn1;i++){_17._gn1[i].x+=_K62.x;_17._gn1[i].y+=_K62.y;}}break;case _w12._L12._Sm1:{var _To1=_J62.shape;for(var i=0;i<_To1._hn1;i++){_To1._gn1[i].x+=_K62.x;_To1._gn1[i].y+=_K62.y;}}break;case _w12._L12._Qm1:{var _un1=_J62.shape;_un1._3n1.x+=_K62.x;_un1._3n1.y+=_K62.y;_un1._4n1.x+=_K62.x;_un1._4n1.y+=_K62.y;}break;default :break;}}_oZ.prototype._4_=function(_L62,_Pn,_6_,_7_,_M62){if(_M62===undefined)_M62=true;var _N62=-1;if(!_L62._K12())return;
var _J62=_L62._E12;if(_J62.shape==null){var err="No fixture shape data present for "+_Pn._O62()._P62()+"\n";_q5(err,true);}else {var _Q62=this._R62(_UO(_Pn.object_index,_521,undefined,undefined,true));if(_Q62!=-1){_J62.filter._vx1=this._d62[_Q62]._vx1;_J62.filter._wx1=this._d62[_Q62]._wx1;}else {_J62.filter._vx1=0;_J62.filter._wx1=0;}var _S62=(_L62._E12._h11>0)?_w12._E42._2w1:(_L62._B12?_w12._E42._aw1:_w12._E42._vv1);if(_Pn._j_!=null){var _T62=_Pn._j_._q22;if(_T62._kx1()==null){_T62._4x1(_S62);}var _K62=_Pn._U62(-_Pn.image_angle*_u7/180.0,
{x:_6_*this._TZ,y:_7_*this._TZ});_I62(_J62,_K62);var _V62=_T62._fw1(_J62);_N62=_Pn._j_._b32(_V62);_K62.x=-_K62.x;_K62.y=-_K62.y;_I62(_J62,_K62);}else {var _W62=new _w12._D42();_W62.type=_S62;_W62.angle=-_Pn.image_angle*_u7/180.0;_W62._yv1=_L62._Xv1;_W62._zv1=_L62._Yv1;_W62._Bv1=_L62._C12;var _X62;if(_M62)_X62=_Pn._U62(_W62.angle,{x:_6_,y:_7_});else _X62=_Pn._U62(_W62.angle,{x:0,y:0});_W62.position.x=(_Pn.x-_X62.x)*this._TZ;_W62.position.y=(_Pn.y-_X62.y)*this._TZ;_W62._mo1=_Pn;var _T62=this._Ov1._4_(_W62);
if(!_M62){_X62=_Pn._U62(_W62.angle,{x:_6_*this._TZ,y:_7_*this._TZ});_I62(_J62,_X62);_6_=0;_7_=0;}var _V62=_T62._fw1(_J62);var physicsObject=new _n22(_T62,_Q62,_6_,_7_);_Pn._j_=physicsObject;_Pn._v62(_T62);_N62=physicsObject._b32(_V62);if(!_M62){_X62.x=-_X62.x;_X62.y=-_X62.y;_I62(_J62,_X62);}this._Y62();}}return _N62;};_oZ.prototype._0z1=function(_Z62){this._Ov1._0z1(_Z62._q22);};_oZ.prototype._601=function(__62){this._Ov1._601(__62._d22);};_oZ.prototype._qZ=function(_pZ){if(this.__y1==null){return;}
var _072=0;if(_pZ&_m32){_072=_072|_w12._O9._lm1;}if(_pZ&_n32){_072=_072|_w12._O9._mm1;}if(_pZ&_o32){_072=_072|_w12._O9._om1;}if(_pZ&_p32){_072=_072|_w12._O9._nm1;}if(_pZ&_s32){_072=_072|_w12._O9._vm1;}this.__y1._5m1(_072);this._Ov1._jz1();};_oZ.prototype._i_=function(_172,_272,_372,_472,_572,_672,_772){_172._q22._QZ(true);_272._q22._QZ(true);var scale=this._TZ;var _872=new _w12._x12(_372*scale,_472*scale);var _972=new _w12._x12(_572*scale,_672*scale);var _yN1=new _w12._i52();_yN1._Bq1(_172._q22,_272._q22,
_872,_972);_yN1._dz1=_772;var _a72=this._Ov1._5z1(_yN1);var _b72=new _b22(_a72);return _b72;};_oZ.prototype._l_=function(_172,_272,_372,_472,_572,_672,_k_,_772){var _bz1=_172._q22;var _cz1=_272._q22;_bz1._QZ(true);_cz1._QZ(true);var scale=this._TZ;var _nI1=_bz1._Vw1(new _w12._x12(_372*scale,_472*scale));var _oI1=_cz1._Vw1(new _w12._x12(_572*scale,_672*scale));var _yN1=new _w12._r52();_yN1._bz1=_bz1;_yN1._cz1=_cz1;_yN1._nI1=_nI1;_yN1._oI1=_oI1;_yN1._GM1=_k_*scale;_yN1._dz1=_772;var _c72=this._Ov1._5z1(_yN1);var _b72=new _b22(_c72);
return _b72;};_oZ.prototype._u_=function(_172,_272,_d72,_e72,_f72,_g72,_h72,_i72,_j72,_k72,_772){_172._q22._QZ(true);_272._q22._QZ(true);var scale=this._TZ;var anchor=new _w12._x12(_d72*scale,_e72*scale);var _yN1=new _w12._f52();_yN1._Bq1(_172._q22,_272._q22,anchor);_yN1._qI1=_f72;_yN1._rI1=_g72;_yN1._uI1=_h72;_yN1._sI1=_i72;_yN1._tI1=_j72;_yN1._vI1=_k72;_yN1._dz1=_772;var _l72=this._Ov1._5z1(_yN1);var _b72=new _b22(_l72);return _b72;};_oZ.prototype._A_=function(_172,_272,_d72,_e72,_m72,_n72,_o72,_p72,_h72,
_q72,_j72,_k72,_772){_172._q22._QZ(true);_272._q22._QZ(true);var scale=this._TZ;var anchor=new _w12._x12(_d72*scale,_e72*scale);var _bp=new _w12._x12(_m72,_n72);_bp._Ek1();var _yN1=new _w12._j52();_yN1._Bq1(_172._q22,_272._q22,anchor,_bp);_yN1._RJ1=_o72*scale;_yN1._SJ1=_p72*scale;_yN1._uI1=_h72;_yN1._TJ1=_q72;_yN1._tI1=_j72;_yN1._vI1=_k72;_yN1._dz1=_772;var _r72=this._Ov1._5z1(_yN1);var _b72=new _b22(_r72);return _b72;};_oZ.prototype._G_=function(_172,_272,_s72,_t72,_u72,_v72,_w72,_x72,_y72,_z72,_F_,_772){
_172._q22._QZ(true);_272._q22._QZ(true);var scale=this._TZ;var _yN1=new _w12._q52();_yN1._Bq1(_172._q22,_272._q22,new _w12._x12(_s72*scale,_t72*scale),new _w12._x12(_u72*scale,_v72*scale),_172._q22._Sw1(new _w12._x12(_w72*scale,_x72*scale)),_272._q22._Sw1(new _w12._x12(_y72*scale,_z72*scale)),_F_);_yN1._dz1=_772;var _A72=this._Ov1._5z1(_yN1);var _b72=new _b22(_A72);return _b72;};_oZ.prototype._O_=function(_172,_272,_H_,_I_,_J_,_K_,_L_,_i72,_B72,_C72,_D72,_772){_172._q22._QZ(true);_272._q22._QZ(true);var scale=this._TZ;
var _yN1=new _w12._m52();_yN1._Bq1(_172._q22,_272._q22,new _w12._x12(_H_*scale,_I_*scale),new _w12._x12(_J_,_K_));_yN1._vI1=_L_;_yN1._sI1=_i72;_yN1._tI1=_B72;_yN1._lJ1=_C72;_yN1._mJ1=_D72;_yN1._dz1=_772;var _E72=this._Ov1._5z1(_yN1);var _b72=new _b22(_E72);return _b72;};_oZ.prototype._Q_=function(_172,_272,_H_,_I_,_F72,_C72,_D72,_772){_172._q22._QZ(true);_272._q22._QZ(true);var scale=this._TZ;var _yN1=new _w12._l52();_yN1._Bq1(_172._q22,_272._q22,new _w12._x12(_H_*scale,_I_*scale));_yN1._pI1=(-_F72*180.0)/Math.PI;
_yN1._lJ1=_C72;_yN1._mJ1=_D72;_yN1._dz1=_772;var _G72=this._Ov1._5z1(_yN1);var _b72=new _b22(_G72);return _b72;};_oZ.prototype._T_=function(_172,_272,_H_,_I_,_H72,_I72,_772){_172._q22._QZ(true);_272._q22._QZ(true);var scale=this._TZ;var _yN1=new _w12._k52();_yN1._Bq1(_172._q22,_272._q22,new _w12._x12(_H_*scale,_I_*scale));_yN1._kJ1=_H72;_yN1._nK1=_I72;_yN1._dz1=_772;var _J72=this._Ov1._5z1(_yN1);var _b72=new _b22(_J72);return _b72;};_oZ.prototype._Y_=function(_172,_272,_K72,_L72,_F_){if((_K72._d22._nH!==_w12._e52._4I1)&&(_K72._d22._nH!==_w12._e52._5I1)&&(_L72._d22._nH!==_w12._e52._4I1)&&(_L72._d22._nH!==_w12._e52._5I1)){
return -1;}_172._q22._QZ(true);_272._q22._QZ(true);var _yN1=new _w12._n52();_yN1._bz1=_172._q22;_yN1._cz1=_272._q22;_yN1._RK1=_K72._d22;_yN1._SK1=_L72._d22;_yN1.ratio=_F_;var _A72=this._Ov1._5z1(_yN1);var _b72=new _b22(_A72);return _b72;};_oZ.prototype._M72=function(_462){for(var _c7=0;_c7<_l32;_c7++){if(this._d62[_c7]._762==_462){return _c7;}}return -1;};_oZ.prototype._N72=function(_462){var _O72=this._M72(_462);if(_O72!=-1){return _O72;}for(var _c7=0;_c7<_l32;_c7++){if(this._d62[_c7]._762==-1){this._d62[_c7]._762=_462;
this._d62[_c7]._vx1=(1<<_c7);this._d62[_c7]._wx1=0;return _c7;}}return -1;};_oZ.prototype._P72=function(_462,_Q72){var _R72=_462;var _S72=_14._n6(_462);while((_S72._XI>=0)&&_14._n6(_S72._XI)){_S72=_14._n6(_S72._XI);var _T72=_S72._ZI;var _U72=0;for(var _V72 in _W72){if(!_W72.hasOwnProperty(_V72))continue;for(var _AF1 in _W72[_V72]){if(!_W72[_V72].hasOwnProperty(_AF1))continue;var _X72=-1;if(_V72==_462){_X72=_AF1;}else if(_AF1==_462){_X72=_V72;}if(_X72!=-1){_U72++;}}}if(_U72!==_Q72.length){break;}_R72=_T72;}return _R72;
};_oZ.prototype._Y72=function(_462){var _Z72=[];for(var _V72 in _W72){if(!_W72.hasOwnProperty(_V72))continue;for(var _AF1 in _W72[_V72]){if(!_W72[_V72].hasOwnProperty(_AF1))continue;var _X72=-1;if(_V72==_462){_X72=_AF1;}else if(_AF1==_462){_X72=_V72;}if(_X72!==-1){_Z72[_Z72.length]=_X72;}}}return _Z72;};_oZ.prototype.__72=function(_ck,_Q72){for(var _Dx in _14._082){if(!_14._082.hasOwnProperty(_Dx))continue;var _182=_14._082[_Dx];if(_182._XI===_ck._ZI){if(this._Y72(_182._ZI).length!==0){_Q72[_Q72.length]=_182._ZI;
}this.__72(_182,_Q72);}}};_oZ.prototype._282=function(_462){var _Z72=this._Y72(_462);var _R72=_462;var _S72=_14._n6(_462);while((_S72._XI>=0)&&_14._n6(_S72._XI)){_S72=_14._n6(_S72._XI);_Z72=_Z72.concat(this._Y72(_S72._ZI));}for(var _c7=0;_c7<_Z72.length;_c7++){var _382=_Z72[_c7];var _Dx=_14._n6(_382);this.__72(_Dx,_Z72);}return _Z72;};_oZ.prototype._482=function(_462,_p22){var _Z72=this._282(_462);for(var _582=0;_582<_Z72.length;++_582){for(var _682=0;_682<_l32;++_682){if(this._d62[_682]._762==_Z72[_582]){
this._d62[_p22]._wx1|=this._d62[_682]._vx1;this._d62[_682]._wx1|=this._d62[_p22]._vx1;}}}};_oZ.prototype._R62=function(_462){var _Q62=this._M72(_462);if(_Q62!==-1){return _Q62;}var _Z72=this._Y72(_462);var _762=_462;if(_Z72.length===0){var _R72=_462;var _S72=_14._n6(_462);while((_S72._XI>=0)&&_14._n6(_S72._XI)){_S72=_14._n6(_S72._XI);_762=_S72._ZI;_Z72=this._Y72(_762);if(_Z72.length!==0){_Q62=this._M72(_762);break;}}if(_Z72.length===0){return -1;}}if(_Q62===-1){_Q62=this._N72(_762);if(_Q62===-1){return -1;
}}this._482(_462,_Q62);return _Q62;};_oZ.prototype._Y62=function(){var _p62=this._Ov1._yz1();while((_p62!=null)&&(_p62!=undefined)){var _9o=_p62._vo1();if((_9o!=null)&&(_9o!=undefined)){var _H01=_9o._j_._r22;if(_H01!=-1){var _782=new _w12._F42();_782._vx1=this._d62[_H01]._vx1;_782._wx1=this._d62[_H01]._wx1;var _AZ=_p62._kx1();while((_AZ!=null)&&(_AZ!=undefined)){_782._xx1=_AZ._Lx1()._xx1;_AZ._Jx1(_782);_AZ=_AZ._Uv1;}}}_p62=_p62._nx1();}};_oZ.prototype._y01=function(_Z7,_pA,_96,_a6,_d6){var _882=new _w12._y32();
_882.Set(new _w12._x12(_96,_a6),_d6);if((_Z7._j_===null)||(_Z7._j_===undefined)||(_pA._j_===null)||(_pA._j_===undefined)){return;}var _982=_Z7._j_._q22;var _a82=_pA._j_._q22;var _b82;for(_b82=_982._kx1();_b82;_b82=_b82._nx1()){var _c82;for(_c82=_a82._kx1();_c82;_c82=_b82._nx1()){if(_w12._n42(_b82._Gx1(),0,_c82._Gx1(),0,_882,_a82._nl1())){return true;}}}return false;};_oZ.prototype._I01=function(_pZ,_96,_a6,_d82,_e82,_Xd,_ga,_o11){var _gw1=new _w12._T52();_gw1._Ai1=_pZ;_gw1.position.Set(_96*this._TZ,_a6*this._TZ);
_gw1._851.Set(_d82*this._TZ,_e82*this._TZ);_gw1.color.Set((_Xd&0xff),(_Xd&0xff00)>>8,(_Xd&0xff0000)>>16,(_ga*255.0));_gw1._mo1=_o11;return this._Ov1._I01(_gw1);};_oZ.prototype._J01=function(_f82){this._Ov1._xA1(_f82);};_oZ.prototype._V01=function(_m11,_g82,_96,_a6,_h82,_d82,_e82,_i82,_Xd,_ga,_j82,_o11){this._c62._Ai1=_m11;this._c62._PB1=_g82;this._c62.angle=(-_h82*_u7)/180.0;this._c62._xv1=(_i82*_u7)/180.0;this._c62.position.Set(_96*this._TZ,_a6*this._TZ);this._c62._wv1.Set(_d82*this._TZ,_e82*this._TZ);
this._c62.color.Set((_Xd&0xff),(_Xd&0xff00)>>8,(_Xd&0xff0000)>>16,(_ga*255.0));this._c62._U01=_j82;this._c62._QB1=true;this._c62._mo1=_o11;};_oZ.prototype._W01=function(_to){var shape=new _w12._G12();shape._Dm1=Math.abs(_to*this._TZ);this._c62.shape=shape;};_oZ.prototype._X01=function(_UZ,_VZ){if(_UZ==0.0){_UZ=1.0;}if(_VZ==0.0){_VZ=1.0;}var shape=new _w12._H12();shape._An1(_UZ*this._TZ,_VZ*this._TZ);this._c62.shape=shape;};_oZ.prototype._Y01=function(){var shape=new _w12._H12();this._c62.shape=shape;}
;_oZ.prototype._Z01=function(_96,_a6){if((this._c62.shape!==null)&&(this._c62.shape._nH===_w12._L12._Rm1)){var shape=this._c62.shape;if(shape._hn1<_w12._v52){shape._gn1[shape._hn1++]=new _w12._x12(_96*this._TZ,_a6*this._TZ);}}};_oZ.prototype._k82=function(){for(var _c7=0;_c7<this._b62.length;_c7++){var _t11=this._b62[_c7];if(_t11===null||_t11===undefined){return _c7;}}var slot=this._b62.length;return slot;};_oZ.prototype._l82=function(_f91){if(_f91>=0&&_f91<this._b62.length){return this._b62[_f91];}return null;
};_oZ.prototype.__01=function(){if((this._c62.shape!==null)&&(this._c62.shape._nH===_w12._L12._Rm1)){var vertices=[];var shape=this._c62.shape;for(var _c7=0;_c7<shape._hn1;_c7++){vertices[_c7]=new _w12._x12(shape._gn1[_c7].x,shape._gn1[_c7].y);}shape.Set(vertices,shape._hn1);}var _991=this._Ov1._AA1(this._c62);var _xx1=this._k82();this._b62[_xx1]=_991;return _xx1;};_oZ.prototype._BA1=function(_m82,_n82){var _o82=this._l82(_m82);var _p82=this._l82(_n82);if((_o82!==null)&&(_p82!==null)){this._Ov1._BA1(_o82,
_p82);this._b62[_n82]=null;}};_oZ.prototype._211=function(_f91){var _991=this._l82(_f91);if(_991!==null){this._Ov1._EA1(_991);this._b62[_f91]=null;}};_oZ.prototype._L01=function(_96,_a6,_to){var shape=new _w12._G12();shape._Dm1=_to*this._TZ;var _q82=new _w12._y32();_q82._2z.Set(_96*this._TZ,_a6*this._TZ);_q82.q._Qk1();this._Ov1._zA1(shape,_q82);};_oZ.prototype._O01=function(_96,_a6,_UZ,_VZ){var shape=new _w12._H12();shape._An1(_UZ*this._TZ,_VZ*this._TZ);var _q82=new _w12._y32();_q82._2z.Set(_96*this._TZ,
_a6*this._TZ);_q82.q._Qk1();this._Ov1._zA1(shape,_q82);};_oZ.prototype._Q01=function(_r82,_te){if(_te>_w12._v52){_te=_w12._v52;}var points=[];for(var _c7=0;_c7<_te;_c7++){points[_c7]=new _w12._x12(_r82[(_c7*2)+0]*this._TZ,_r82[(_c7*2)+1]*this._TZ);}var _s82=new _w12._H12();_s82.Set(points,_te);var _q82=new _w12._y32();_q82._Qk1();this._Ov1._zA1(_s82,_q82);};_oZ.prototype._t82=function(_6l,_u82,_v82,_w82){var _c9=this._Ov1._711();if(_v82<0||_v82>=_c9)return;if(_w82<_v82)return;if(_w82>_c9)return;var _Ai1=this._Ov1._FA1();
var _ny1=this._Ov1._GA1();var _oy1=this._Ov1._HA1();var _x82=this._Ov1._IA1();var _mo1=this._Ov1._JA1();var _361=_6l._xG;var _y82=1.0/this._TZ;for(var _c7=_v82;_c7<_w82;_c7++){if(_u82&(1<<0)){_6l._BG(_Ij,_Ai1[_c7]);}if(_u82&(1<<1)){_6l._BG(_z82,_ny1[_c7].x*_y82);_6l._BG(_z82,_ny1[_c7].y*_y82);}if(_u82&(1<<2)){_6l._BG(_z82,_oy1[_c7].x*_y82);_6l._BG(_z82,_oy1[_c7].y*_y82);}if(_u82&(1<<3)){_6l._BG(_Ij,(_x82[_c7]._05<<24)|(_x82[_c7]._Y4<<16)|(_x82[_c7]._Z4<<8)|_x82[_c7].__4);}if(_u82&(1<<4)){_6l._BG(_Rj,_mo1[_c7]);
}}_6l._lU(_Qj,_361);};_oZ.prototype._911=function(_6l,_u82){this._t82(_6l,_u82,0,this._Ov1._711());};_oZ.prototype._s11=function(_c5,_cY1,_u82){this._t82(_cY1,_u82,_c5,_c5+1);};_oZ.prototype._n11=function(_c5,_m11){if(_c5>=0&&_c5<this._Ov1._711()){var _Ai1=this._Ov1._FA1();_Ai1[_c5]=_m11;}};_oZ.prototype._p11=function(_o11,_m11){var _c9=this._Ov1._711();var _Ai1=this._Ov1._FA1();var _mo1=this._Ov1._JA1();for(var _c7=0;_c7<_c9;_c7++){if((_o11===0)||(_o11===_mo1[_c7])){_Ai1[_c7]=_m11;}}};_oZ.prototype._q11=function(_f91,
_pZ){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){_t11._q11(_pZ);}};_oZ.prototype._r11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._r11();}return 0;};_oZ.prototype._u11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._711();}return 0;};_oZ.prototype._v11=function(_f91,_cY1,_u82){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){var start=_t11._3C1();var end=start+_t11._711();this._t82(_cY1,_u82,start,end);
}};_oZ.prototype._w11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._Ow1();}};_oZ.prototype._x11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._Pw1();}};_oZ.prototype._y11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._1r1().x/this._TZ;}};_oZ.prototype._z11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._1r1().y/this._TZ;}};_oZ.prototype._A11=function(_f91){
var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._Fw1().x/this._TZ;}};_oZ.prototype._B11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._Fw1().y/this._TZ;}};_oZ.prototype._C11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return(_t11._Hw1()*180.0)/Math.PI;}};_oZ.prototype._D11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._4Z().x/this._TZ;}};_oZ.prototype._E11=function(_f91){
var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){return _t11._4Z().y/this._TZ;}};_oZ.prototype._F11=function(_f91){var _t11=this._l82(_f91);if(_t11!==null&&_t11!==undefined){var angle=_t11._cl1();return(angle*180.0)/Math.PI;}};_oZ.prototype._h62=function(_A82,_o11,_l6,_bX){var _c9=this._Ov1._711();var _Ai1=this._Ov1._FA1();var _ny1=this._Ov1._GA1();var _x82=this._Ov1._IA1();var _mo1=this._Ov1._JA1();var _y82=1.0/this._TZ;for(var _c7=0;_c7<_c9;_c7++){if(((_Ai1[_c7]===0)||((_Ai1[_c7]&_A82)!==0))&&((_o11===0)||(_o11===_mo1[_c7]))){
var _55=(_x82[_c7].__4&0xff)|((_x82[_c7]._Z4<<8)&0xff00)|((_x82[_c7]._Y4<<16)&0xff0000);_l6._O9(_c7,_ny1[_c7].x*_y82,_ny1[_c7].y*_y82,1.0,1.0,0,_55,_x82[_c7]._05/255.0);}}};_oZ.prototype._j62=function(_A82,_o11,_l6,_bX,_Qm,_Rm,_d6,_Xd,_ga){var _c9=this._Ov1._711();var _Ai1=this._Ov1._FA1();var _ny1=this._Ov1._GA1();var _mo1=this._Ov1._JA1();var _y82=1.0/this._TZ;for(var _c7=0;_c7<_c9;_c7++){if(((_Ai1[_c7]===0)||((_Ai1[_c7]&_A82)!==0))&&((_o11===0)||(_o11===_mo1[_c7]))){_l6._O9(_c7,_ny1[_c7].x*_y82,_ny1[_c7].y*_y82,
_Qm,_Rm,_d6,_Xd,_ga);}}};_oZ.prototype._g62=function(_A82,_o11,_l6,_bX){var _k5=_l6._l5[_bX%_l6._m5()];if(!_k5){return;}if(!_k5.texture.complete){return;}if(!_k5.texture._z9){_y9(_k5);}var _c9=this._Ov1._711();var _Ai1=this._Ov1._FA1();var _ny1=this._Ov1._GA1();var _x82=this._Ov1._IA1();var _mo1=this._Ov1._JA1();var _y82=1.0/this._TZ;var _B82=0;for(var _c7=0;_c7<_c9;_c7++){if(((_Ai1[_c7]===0)||((_Ai1[_c7]&_A82)!==0))&&((_o11===0)||(_o11===_mo1[_c7]))){_B82++;}}if(_B82===0){return;}var _ob=_09._pb(_Wa._qb,
_k5.texture._z9,_09._rb,_B82*6);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_B82*6;var _vb=_ob._wb;var _xb=_ob._yb;var _zb=_ob._Ab;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;var _f7=-(_l6.xOrigin-_k5.XOffset);var _g7=-(_l6.yOrigin-_k5.YOffset);var _h7=_f7+_k5.CropWidth;var _i7=_g7+_k5.CropHeight;var _C82=0;for(var _c7=0;_c7<_c9;_c7++){if(((_Ai1[_c7]===0)||((_Ai1[_c7]&_A82)!==0))&&((_o11===0)||(_o11===_mo1[_c7]))){var x=_ny1[_c7].x*_y82;var y=_ny1[_c7].y*_y82;
_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=x+_f7;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=y+_g7;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=x+_h7;_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=y+_i7;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;var _55=(_x82[_c7].__4&0xff)|((_x82[_c7]._Z4<<8)&0xff00)|((_x82[_c7]._Y4<<16)&0xff0000)|((_x82[_c7]._05<<24)&0xff000000);var _sE=_55;var _D82=_55;var _E82=_55;if(_F82){_55&=0xfffefffe;_sE&=0xfffefffe;_D82&=0xfffefffe;_E82&=0xfffefffe;_sE|=0x00000001;_D82|=0x00010000;_E82|=0x00010001;
}_xb[_Bb]=_xb[_6c]=_55;_xb[_3c]=_sE;_xb[_J5]=_xb[_4c]=_D82;_xb[_5c]=_E82;_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=_k5.x/_k5.texture.width;_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=_k5.y/_k5.texture.height;_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_k5.x+_k5.w)/_k5.texture.width;_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_k5.y+_k5.h)/_k5.texture.height;var _G82=_sb*6;_Bb+=_G82;_3c+=_G82;_J5+=_G82;_4c+=_G82;_5c+=_G82;_6c+=_G82;}}};_oZ.prototype._i62=function(_A82,_o11,_l6,_bX,_Qm,_Rm,_d6,_Xd,_ga){_d6=(_d6*Math.PI)/180.0;var _k5=_l6._l5[_bX%_l6._m5()];
if(!_k5){return;}if(!_k5.texture.complete){return;}if(!_k5.texture._z9){_y9(_k5);}var _c9=this._Ov1._711();var _Ai1=this._Ov1._FA1();var _ny1=this._Ov1._GA1();var _mo1=this._Ov1._JA1();var _y82=1.0/this._TZ;var _B82=0;for(var _c7=0;_c7<_c9;_c7++){if(((_Ai1[_c7]===0)||((_Ai1[_c7]&_A82)!==0))&&((_o11===0)||(_o11===_mo1[_c7]))){_B82++;}}if(_B82===0){return;}var _ob=_09._pb(_Wa._qb,_k5.texture._z9,_09._rb,_B82*6);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_B82*6;var _vb=_ob._wb;var _xb=_ob._yb;var _zb=_ob._Ab;
var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;var _55=_Xd|(((_ga*255)&0xff)<<24);var _sE=_55;var _D82=_55;var _E82=_55;if(_F82){_55&=0xfffefffe;_sE&=0xfffefffe;_D82&=0xfffefffe;_E82&=0xfffefffe;_sE|=0x00000001;_D82|=0x00010000;_E82|=0x00010001;}var _f7=-_Qm*(_l6.xOrigin-_k5.XOffset);var _g7=-_Rm*(_l6.yOrigin-_k5.YOffset);var _h7=_f7+(_Qm*_k5.CropWidth);var _i7=_g7+(_Rm*_k5.CropHeight);var _C82=0;if(Math.abs(_d6)<0.0001){for(var _c7=0;_c7<_c9;_c7++){if(((_Ai1[_c7]===0)||((_Ai1[_c7]&_A82)!==0))&&((_o11===0)||(_o11===_mo1[_c7]))){
var x=_ny1[_c7].x*_y82;var y=_ny1[_c7].y*_y82;_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=x+_f7;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=y+_g7;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=x+_h7;_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=y+_i7;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;_xb[_Bb]=_xb[_6c]=_55;_xb[_3c]=_sE;_xb[_J5]=_xb[_4c]=_D82;_xb[_5c]=_E82;_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=_k5.x/_k5.texture.width;_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=_k5.y/_k5.texture.height;_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_k5.x+_k5.w)/_k5.texture.width;
_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_k5.y+_k5.h)/_k5.texture.height;var _G82=_sb*6;_Bb+=_G82;_3c+=_G82;_J5+=_G82;_4c+=_G82;_5c+=_G82;_6c+=_G82;}}}else {var _P7=Math.sin(_d6);var _Q7=Math.cos(_d6);var _H82=_f7*_Q7;var _I82=_h7*_Q7;var _J82=_g7*_Q7;var _K82=_i7*_Q7;var _L82=_f7*_P7;var _M82=_h7*_P7;var _N82=_g7*_P7;var _O82=_i7*_P7;for(var _c7=0;_c7<_c9;_c7++){if(((_Ai1[_c7]===0)||((_Ai1[_c7]&_A82)!==0))&&((_o11===0)||(_o11===_mo1[_c7]))){var x=_ny1[_c7].x*_y82;var y=_ny1[_c7].y*_y82;_vb[_Bb+0]=_vb[_6c+0]=x+_H82+_N82;
_vb[_Bb+1]=_vb[_6c+1]=y-_L82+_J82;_vb[_J5+0]=_vb[_4c+0]=x+_I82+_O82;_vb[_J5+1]=_vb[_4c+1]=y-_M82+_K82;_vb[_3c+1]=y-_M82+_J82;_vb[_3c+0]=x+_I82+_N82;_vb[_5c+0]=x+_H82+_O82;_vb[_5c+1]=y-_L82+_K82;_xb[_Bb]=_xb[_3c]=_xb[_J5]=_xb[_4c]=_xb[_5c]=_xb[_6c]=_55;_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=_k5.x/_k5.texture.width;_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=_k5.y/_k5.texture.height;_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_k5.x+_k5.w)/_k5.texture.width;_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_k5.y+_k5.h)/_k5.texture.height;var _G82=_sb*6;
_Bb+=_G82;_3c+=_G82;_J5+=_G82;_4c+=_G82;_5c+=_G82;_6c+=_G82;}}}};_oZ.prototype._711=function(){return this._Ov1._711();};_oZ.prototype._a11=function(){return this._Ov1._a11();};_oZ.prototype._b11=function(){return this._Ov1._b11()*(1.0/this._TZ);};_oZ.prototype._c11=function(){return this._Ov1._c11();};_oZ.prototype._d11=function(){return this._Ov1._d11();};_oZ.prototype._e11=function(){return this._Ov1._e11();};_oZ.prototype._f11=function(_te){this._Ov1._f11(_te);};_oZ.prototype._g11=function(_to){this._Ov1._g11(_to*this._TZ);
};_oZ.prototype._i11=function(_CZ){this._Ov1._i11(_CZ);};_oZ.prototype._k11=function(_MZ){this._Ov1._k11(_MZ);};_oZ.prototype._l11=function(_En){this._Ov1._l11(_En);};function _P82(_xn){_6a1.call(this,_Q82._R82._S82);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlgain:{enumerable:true,get :()=>{return this._kt[_P82._U82._V82];},set :(_O61)=>{const _Je=this._W82(_P82._U82._V82,_O61);this._6u1.forEach((_X82)=>{const gain=_X82.parameters.get("gain");gain.setTargetAtTime(_Je,
0,_Q82._Y82);});}},gmlfactor:{enumerable:true,get :()=>{return this._kt[_P82._U82._Z82];},set :(_3S)=>{const _Je=this._W82(_P82._U82._Z82,_3S);this._6u1.forEach((_X82)=>{const factor=_X82.parameters.get("factor");factor.value=_Je;});}},gmlresolution:{enumerable:true,get :()=>{return this._kt[_P82._U82.__82];},set :(_092)=>{const _Je=this._W82(_P82._U82.__82,_092);this._6u1.forEach((_X82)=>{const resolution=_X82.parameters.get("resolution");resolution.value=_Je;});}},gmlmix:{enumerable:true,get :()=>{return this._kt[_P82._U82._192];
},set :(_292)=>{const _Je=this._W82(_P82._U82._192,_292);this._6u1.forEach((_X82)=>{const mix=_X82.parameters.get("mix");mix.setTargetAtTime(_Je,0,_Q82._Y82);});}}});}_P82._U82={_392:0,_V82:1,_Z82:2,__82:3,_192:4};_P82._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"gain",_592:false,defaultValue:1.0,minValue:0.0,maxValue:Number.MAX_VALUE},{name:"factor",_592:true,defaultValue:20,minValue:1,maxValue:100},{name:"resolution",_592:true,defaultValue:8,minValue:2,maxValue:16},
{name:"mix",_592:false,defaultValue:0.8,minValue:0.0,maxValue:1.0}];function _692(_xn){_6a1.call(this,_Q82._R82._792);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlingain:{enumerable:true,get :()=>{return this._kt[_692._U82._892];},set :(_992)=>{const _Je=this._W82(_692._U82._892,_992);this._6u1.forEach((_X82)=>{const ingain=_X82.parameters.get("ingain");ingain.value=_Je;});}},gmlthreshold:{enumerable:true,get :()=>{return this._kt[_692._U82._a92];},set :(_7g)=>{
const _Je=this._W82(_692._U82._a92,_7g);this._6u1.forEach((_X82)=>{const threshold=_X82.parameters.get("threshold");threshold.value=_Je;});}},gmlratio:{enumerable:true,get :()=>{return this._kt[_692._U82._b92];},set :(_F_)=>{const _Je=this._W82(_692._U82._b92,_F_);this._6u1.forEach((_X82)=>{const ratio=_X82.parameters.get("ratio");ratio.value=_Je;});}},gmlattack:{enumerable:true,get :()=>{return this._kt[_692._U82._c92];},set :(_d92)=>{const _Je=this._W82(_692._U82._c92,_d92);this._6u1.forEach((_X82)=>{const attack=_X82.parameters.get("attack");
attack.value=_Je;});}},gmlrelease:{enumerable:true,get :()=>{return this._kt[_692._U82._e92];},set :(_f92)=>{const _Je=this._W82(_692._U82._e92,_f92);this._6u1.forEach((_X82)=>{const release=_X82.parameters.get("release");release.value=_Je;});}},gmloutgain:{enumerable:true,get :()=>{return this._kt[_692._U82._g92];},set :(_h92)=>{const _Je=this._W82(_692._U82._g92,_h92);this._6u1.forEach((_X82)=>{const outgain=_X82.parameters.get("outgain");outgain.value=_Je;});}}});}_692._U82={_392:0,_892:1,_a92:2,_b92:3,
_c92:4,_e92:5,_g92:6};_692._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"ingain",_592:false,defaultValue:1,minValue:1e-6,maxValue:Number.MAX_VALUE},{name:"threshold",_592:false,defaultValue:0.125,minValue:1e-3,maxValue:1},{name:"ratio",_592:false,defaultValue:4,minValue:1,maxValue:Number.MAX_VALUE},{name:"attack",_592:false,defaultValue:0.05,minValue:1e-3,maxValue:1e-1},{name:"release",_592:false,defaultValue:0.25,minValue:1e-2,maxValue:1},{name:"outgain",_592:false,
defaultValue:1,minValue:1e-6,maxValue:Number.MAX_VALUE}];function _i92(_xn){_6a1.call(this,_Q82._R82._j92);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmltime:{enumerable:true,get :()=>{return this._kt[_i92._U82.Time];},set :(_T6)=>{const _Je=this._W82(_i92._U82.Time,_T6);this._6u1.forEach((_X82)=>{const time=_X82.parameters.get("time");time.setTargetAtTime(_Je,0,_Q82._Y82);});}},gmlfeedback:{enumerable:true,get :()=>{return this._kt[_i92._U82._k92];},set :(_l92)=>{
const _Je=this._W82(_i92._U82._k92,_l92);this._6u1.forEach((_X82)=>{const feedback=_X82.parameters.get("feedback");feedback.setTargetAtTime(_Je,0,_Q82._Y82);});}},gmlmix:{enumerable:true,get :()=>{return this._kt[_i92._U82._192];},set :(_292)=>{const _Je=this._W82(_i92._U82._192,_292);this._6u1.forEach((_X82)=>{const mix=_X82.parameters.get("mix");mix.setTargetAtTime(_Je,0,_Q82._Y82);});}}});}_i92._U82={_392:0,Time:1,_k92:2,_192:3};_i92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1}
,{name:"time",_592:false,defaultValue:0.2,minValue:0.0,maxValue:5.0},{name:"feedback",_592:false,defaultValue:0.5,minValue:0.0,maxValue:1.0},{name:"mix",_592:false,defaultValue:0.35,minValue:0.0,maxValue:1.0}];function _m92(_xn){_6a1.call(this,_Q82._R82._n92);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);const _o92=(_xn!==undefined);if(_o92===false){_xn={};}this.locut=new _p92(_xn.gmllocut);this.loshelf=new _q92(_xn.gmlloshelf);this.eq1=new _r92(_xn.gmleq1);this.eq2=new _r92(_xn.gmleq2);this.eq3=new _r92(_xn.gmleq3);
this.eq4=new _r92(_xn.gmleq4);this.hishelf=new _s92(_xn.gmlhishelf);this.hicut=new _t92(_xn.gmlhicut);if(_xn.gmllocut===undefined){this.locut.gmlcutoff=10;this.locut.gmlq=1;}if(_xn.gmlloshelf===undefined){this.loshelf.gmlfreq=200;this.loshelf.gmlgain=(_o92===true)?db_to_lin(0):db_to_lin(12)}if(_xn.gmleq1===undefined){this.eq1.gmlfreq=500;this.eq1.gmlgain=(_o92===true)?db_to_lin(0):db_to_lin(-24);}if(_xn.gmleq2===undefined){this.eq2.gmlfreq=1000;this.eq2.gmlgain=db_to_lin(0);}if(_xn.gmleq3===undefined){
this.eq3.gmlfreq=2000;this.eq3.gmlgain=db_to_lin(0);}if(_xn.gmleq4===undefined){this.eq4.gmlfreq=3000;this.eq4.gmlgain=db_to_lin(0);}if(_xn.gmlhishelf===undefined){this.hishelf.gmlfreq=5000;this.hishelf.gmlgain=(_o92===true)?db_to_lin(0):db_to_lin(18);}if(_xn.gmlhicut===undefined){this.hicut.gmlcutoff=_t92._492[_t92._U82._u92].maxValue;this.hicut.gmlq=1;}Object.defineProperties(this,{gmllocut:{enumerable:true,get :()=>{return this.locut;},set :(_v92)=>{}},gmlloshelf:{enumerable:true,get :()=>{return this.loshelf;
},set :(_v92)=>{}},gmleq1:{enumerable:true,get :()=>{return this.eq1;},set :(_v92)=>{}},gmleq2:{enumerable:true,get :()=>{return this.eq2;},set :(_v92)=>{}},gmleq3:{enumerable:true,get :()=>{return this.eq3;},set :(_v92)=>{}},gmleq4:{enumerable:true,get :()=>{return this.eq4;},set :(_v92)=>{}},gmlhishelf:{enumerable:true,get :()=>{return this.hishelf;},set :(_v92)=>{}},gmlhicut:{enumerable:true,get :()=>{return this.hicut;},set :(_v92)=>{}}});this._w92=function(){const _x92=g_WebAudioContext.destination.channelCount;
const _y92=new AudioWorkletNode(g_WebAudioContext,"eq-input",{numberOfInputs:1,numberOfOutputs:2,outputChannelCount:[_x92,_x92],channelCount:_x92,channelCountMode:"explicit"});const _z92=this.locut._w92();const _A92=this.loshelf._w92();const _B92=this.eq1._w92();const _C92=this.eq2._w92();const _D92=this.eq3._w92();const _E92=this.eq4._w92();const _F92=this.hishelf._w92();const _G92=this.hicut._w92();const _5a1=new AudioWorkletNode(g_WebAudioContext,"eq-output",{numberOfInputs:2,numberOfOutputs:1,outputChannelCount:[_x92],
channelCount:_x92,channelCountMode:"explicit"});this._6u1.push(_5a1);_y92.connect(_5a1,1,1);_y92.connect(_z92.input,0,0);_z92.output.connect(_A92.input,0,0);_A92.output.connect(_B92.input,0,0);_B92.output.connect(_C92.input,0,0);_C92.output.connect(_D92.input,0,0);_D92.output.connect(_E92.input,0,0);_E92.output.connect(_F92.input,0,0);_F92.output.connect(_G92.input,0,0);_G92.output.connect(_5a1,0,0);_H92._6u1.push({_I92:new WeakRef(this),_nl:_y92});_H92._6u1.push({_I92:new WeakRef(this),_nl:_5a1});
const _95={input:_y92,output:_5a1};return _95;};}_m92._U82={_392:0};_m92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1}];function _J92(_xn){_6a1.call(this,_Q82._R82._V82);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlgain:{enumerable:true,get :()=>{return this._kt[_J92._U82._V82];},set :(_O61)=>{const _Je=this._W82(_J92._U82._V82,_O61);this._6u1.forEach((_X82)=>{const gain=_X82.parameters.get("gain");gain.value=_Je;});}}});}_J92._U82={_392:0,
_V82:1};_J92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"gain",_592:false,defaultValue:0.5,minValue:0.0,maxValue:Number.MAX_VALUE}];function _s92(_xn){_6a1.call(this,_Q82._R82._K92);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlfreq:{enumerable:true,get :()=>{return this._kt[_s92._U82._L92];},set :(_M92)=>{const _Je=this._W82(_s92._U82._L92,_M92);this._6u1.forEach((_X82)=>{const freq=_X82.parameters.get("freq");freq.value=_Je;
});}},gmlq:{enumerable:true,get :()=>{return this._kt[_s92._U82._os1];},set :(_N92)=>{const _Je=this._W82(_s92._U82._os1,_N92);this._6u1.forEach((_X82)=>{const q=_X82.parameters.get("q");q.value=_Je;});}},gmlgain:{enumerable:true,get :()=>{return this._kt[_s92._U82._V82];},set :(_O61)=>{const _Je=this._W82(_s92._U82._V82,_O61);this._6u1.forEach((_X82)=>{const gain=_X82.parameters.get("gain");gain.value=_Je;});}}});}_s92._U82={_392:0,_L92:1,_os1:2,_V82:3};_s92._492=[{name:"bypass",_592:true,defaultValue:0,
minValue:0,maxValue:1},{name:"freq",_592:false,defaultValue:5000.0,minValue:10.0,maxValue:20000.0},{name:"q",_592:false,defaultValue:1.0,minValue:1.0,maxValue:100.0},{name:"gain",_592:false,defaultValue:1e-2,minValue:1e-6,maxValue:Number.MAX_VALUE}];function _p92(_xn){_6a1.call(this,_Q82._R82._O92);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlcutoff:{enumerable:true,get :()=>{return this._kt[_p92._U82._u92];},set :(_P92)=>{const _Je=this._W82(_p92._U82._u92,
_P92);this._6u1.forEach((_X82)=>{const cutoff=_X82.parameters.get("cutoff");cutoff.value=_Je;});}},gmlq:{enumerable:true,get :()=>{return this._kt[_p92._U82._os1];},set :(_N92)=>{const _Je=this._W82(_p92._U82._os1,_N92);this._6u1.forEach((_X82)=>{const q=_X82.parameters.get("q");q.value=_Je;});}}});}_p92._U82={_392:0,_u92:1,_os1:2};_p92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"cutoff",_592:false,defaultValue:1500.0,minValue:10.0,maxValue:20000.0},{name:"q",_592:false,
defaultValue:1.5,minValue:1.0,maxValue:100.0}];function _q92(_xn){_6a1.call(this,_Q82._R82._Q92);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlfreq:{enumerable:true,get :()=>{return this._kt[_q92._U82._L92];},set :(_M92)=>{const _Je=this._W82(_q92._U82._L92,_M92);this._6u1.forEach((_X82)=>{const freq=_X82.parameters.get("freq");freq.value=_Je;});}},gmlq:{enumerable:true,get :()=>{return this._kt[_q92._U82._os1];},set :(_N92)=>{const _Je=this._W82(_q92._U82._os1,
_N92);this._6u1.forEach((_X82)=>{const q=_X82.parameters.get("q");q.value=_Je;});}},gmlgain:{enumerable:true,get :()=>{return this._kt[_q92._U82._V82];},set :(_O61)=>{const _Je=this._W82(_q92._U82._V82,_O61);this._6u1.forEach((_X82)=>{const gain=_X82.parameters.get("gain");gain.value=_Je;});}}});}_q92._U82={_392:0,_L92:1,_os1:2,_V82:3};_q92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"freq",_592:false,defaultValue:500.0,minValue:10.0,maxValue:20000.0},{name:"q",_592:false,
defaultValue:1.0,minValue:1.0,maxValue:100.0},{name:"gain",_592:false,defaultValue:1e-2,minValue:1e-6,maxValue:Number.MAX_VALUE}];function _t92(_xn){_6a1.call(this,_Q82._R82._R92);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlcutoff:{enumerable:true,get :()=>{return this._kt[_t92._U82._u92];},set :(_P92)=>{const _Je=this._W82(_t92._U82._u92,_P92);this._6u1.forEach((_X82)=>{const cutoff=_X82.parameters.get("cutoff");cutoff.value=_Je;});}},gmlq:{enumerable:true,
get :()=>{return this._kt[_t92._U82._os1];},set :(_N92)=>{const _Je=this._W82(_t92._U82._os1,_N92);this._6u1.forEach((_X82)=>{const q=_X82.parameters.get("q");q.value=_Je;});}}});}_t92._U82={_392:0,_u92:1,_os1:2};_t92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"cutoff",_592:false,defaultValue:500.0,minValue:10.0,maxValue:20000.0},{name:"q",_592:false,defaultValue:1.5,minValue:1.0,maxValue:100.0}];function _r92(_xn){_6a1.call(this,_Q82._R82._S92);Object.setPrototypeOf(this,
_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlfreq:{enumerable:true,get :()=>{return this._kt[_r92._U82._L92];},set :(_M92)=>{const _Je=this._W82(_r92._U82._L92,_M92);this._6u1.forEach((_X82)=>{const freq=_X82.parameters.get("freq");freq.value=_Je;});}},gmlq:{enumerable:true,get :()=>{return this._kt[_r92._U82._os1];},set :(_N92)=>{const _Je=this._W82(_r92._U82._os1,_N92);this._6u1.forEach((_X82)=>{const q=_X82.parameters.get("q");q.value=_Je;});}},gmlgain:{enumerable:true,get :()=>{return this._kt[_r92._U82._V82];
},set :(_O61)=>{const _Je=this._W82(_r92._U82._V82,_O61);this._6u1.forEach((_X82)=>{const gain=_X82.parameters.get("gain");gain.value=_Je;});}}});}_r92._U82={_392:0,_L92:1,_os1:2,_V82:3};_r92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"freq",_592:false,defaultValue:1500.0,minValue:10.0,maxValue:20000.0},{name:"q",_592:false,defaultValue:1.0,minValue:1.0,maxValue:100.0},{name:"gain",_592:false,defaultValue:1e-2,minValue:1e-6,maxValue:Number.MAX_VALUE}];function _T92(_xn){
_6a1.call(this,_Q82._R82._U92);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlsize:{enumerable:true,get :()=>{return this._kt[_T92._U82._V92];},set :(_id)=>{const _Je=this._W82(_T92._U82._V92,_id);this._6u1.forEach((_X82)=>{const size=_X82.parameters.get("size");size.value=_Je;});}},gmldamp:{enumerable:true,get :()=>{return this._kt[_T92._U82._W92];},set :(_X92)=>{const _Je=this._W82(_T92._U82._W92,_X92);this._6u1.forEach((_X82)=>{const damp=_X82.parameters.get("damp");
damp.value=_Je;});}},gmlmix:{enumerable:true,get :()=>{return this._kt[_T92._U82._192];},set :(_292)=>{const _Je=this._W82(_T92._U82._192,_292);this._6u1.forEach((_X82)=>{const mix=_X82.parameters.get("mix");mix.setTargetAtTime(_Je,0,_Q82._Y82);});}}});}_T92._U82={_392:0,_V92:1,_W92:2,_192:3};_T92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"size",_592:false,defaultValue:0.7,minValue:0.0,maxValue:1.0},{name:"damp",_592:false,defaultValue:0.1,minValue:0.0,maxValue:1.0},{
name:"mix",_592:false,defaultValue:0.35,minValue:0.0,maxValue:1.0}];function _Y92(_xn){_6a1.call(this,_Q82._R82._Z92);Object.setPrototypeOf(this,_6a1.prototype);this._T82(_xn);Object.defineProperties(this,{gmlrate:{enumerable:true,get :()=>{return this._kt[_Y92._U82.__92];},set :(_0a2)=>{const _Je=this._W82(_Y92._U82.__92,_0a2);this._6u1.forEach((_X82)=>{const rate=_X82.parameters.get("rate");rate.value=_Je;});}},gmlintensity:{enumerable:true,get :()=>{return this._kt[_Y92._U82._1a2];},set :(_2a2)=>{const _Je=this._W82(_Y92._U82._1a2,
_2a2);this._6u1.forEach((_X82)=>{const intensity=_X82.parameters.get("intensity");intensity.setTargetAtTime(_Je,0,_Q82._Y82);});}},gmloffset:{enumerable:true,get :()=>{return this._kt[_Y92._U82._3a2];},set :(_ne)=>{const _Je=this._W82(_Y92._U82._3a2,_ne);this._6u1.forEach((_X82)=>{const offset=_X82.parameters.get("offset");offset.value=_Je;});}},gmlshape:{enumerable:true,get :()=>{return this._kt[_Y92._U82._L12];},set :(_5X)=>{const _Je=this._W82(_Y92._U82._L12,_5X);this._6u1.forEach((_X82)=>{const shape=_X82.parameters.get("shape");
shape.value=_Je;});}}});}_Y92._U82={_392:0,__92:1,_1a2:2,_3a2:3,_L12:4};_Y92._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"rate",_592:false,defaultValue:5.0,minValue:0.0,maxValue:20.0},{name:"intensity",_592:false,defaultValue:1.0,minValue:0.0,maxValue:1.0},{name:"offset",_592:false,defaultValue:0.0,minValue:0.0,maxValue:1.0},{name:"shape",_592:true,defaultValue:0,minValue:0,maxValue:4}];function _t51(){this.__type="[AudioBus]";this.__yyIsGMLObject=true;this._y92=_H92._4a2(this);
this._5a1=_H92._5a2(this);this._y92.connect(this._5a1,0,0);this._y92.connect(this._5a1,1,1);this.bypass=false;this.gain=1.0;this.effects=Array(_t51._6a2).fill(undefined);this._6u1=Array(_t51._6a2).fill(undefined);this._Qx1=new Proxy(this.effects,{set :(_wn,_7a2,_Ol,_8a2)=>{const _9a2=parseInt(_7a2);if(_t51._aa2(_9a2))this._ba2(_9a2,this._ca2(_Ol));_wn[_7a2]=_Ol;}});Object.defineProperties(this,{gmlbypass:{enumerable:true,get :()=>{return this.bypass;},set :(_r61)=>{this.bypass=yyGetBool(_r61);const bypass=this._y92.parameters.get("bypass");
bypass.value=this.bypass;}},gmlgain:{enumerable:true,get :()=>{return this.gain;},set :(_O61)=>{this.gain=max(0.0,_O61);const gain=this._5a1.parameters.get("gain");gain.value=this.gain;}},gmleffects:{enumerable:true,get :()=>{return this._Qx1;},set :(_da2)=>{}}});}_t51._6a2=8;_t51.prototype._E71=function(_4j,_ea2,_fa2){_4j.connect(this._y92,_ea2,_fa2);};_t51.prototype._x51=function(_Re1,_ea2,_fa2){this._5a1.connect(_Re1,_ea2,_fa2);};_t51.prototype._ga2=function(_ha2){const _6u1=this._6u1.slice(_ha2+1,_t51._6a2);
const _ia2=_6u1.find((_X82)=>_X82!==undefined);return(_ia2!==undefined)?_ia2.input:this._5a1;};_t51.prototype._ja2=function(_ha2){const _6u1=this._6u1.slice(0,_ha2);const _ka2=_6u1.slice().reverse().find((_X82)=>_X82!==undefined);return(_ka2!==undefined)?_ka2.output:this._y92;};_t51.prototype._ba2=function(_ha2,_la2){const _ma2=this._6u1[_ha2];if(_ma2===undefined&&_la2===undefined)return;const _ka2=this._ja2(_ha2);const _ia2=this._ga2(_ha2);if(_ma2!==undefined){_ka2.disconnect(_ma2.input);_ma2.output.disconnect();
this.effects[_ha2]._na2(_ma2.output);}else {_ka2.disconnect(_ia2,0,0);}if(_la2===undefined){_ka2.connect(_ia2,0,0);}else {_ka2.connect(_la2.input,0,0);_la2.output.connect(_ia2,0,0);}this._6u1[_ha2]=_la2;};_t51.prototype._ca2=function(_Ol){if(_Ol instanceof _6a1){return _Ol._w92();}if(_Ol===undefined){return _Ol;}throw new Error("Value must be Struct.AudioEffect or undefined");};_t51._aa2=function(_Fz){if(_Fz>=0&&_Fz<_t51._6a2)return true;return false;};_t51.prototype._oa2=function(){return _t51._492;};_t51.prototype._pa2=function(_ha2){
return _t51._492[_ha2];};_t51._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1},{name:"gain",_592:false,defaultValue:1,minValue:0,maxValue:Number.MAX_VALUE}];function _s51(){this._5a1=_751(g_WebAudioContext);this.bypass=false;this.gain=1.0;this.effects=Array(_t51._6a2).fill(undefined);this._Qx1=new Proxy(this.effects,{set :(_wn,_7a2,_Ol,_8a2)=>{const _9a2=parseInt(_7a2);if(_t51._aa2(_9a2))_Ol=this._ca2(_Ol);_wn[_7a2]=_Ol;}});Object.defineProperties(this,{gmlbypass:{enumerable:true,
get :()=>{return this.bypass;},set :(_r61)=>{this.bypass=yyGetBool(_r61);}},gmlgain:{enumerable:true,get :()=>{return this.gain;},set :(_O61)=>{this.gain=max(0.0,_O61);const gain=this._5a1.gain;gain.setTargetAtTime(this.gain,0,_Q82._Y82);}},gmleffects:{enumerable:true,get :()=>{return this._Qx1;},set :(_da2)=>{}}});}_s51.prototype._E71=function(_4j,_ea2,_fa2){_4j.connect(this._5a1);};_s51.prototype._x51=function(_Re1,_ea2,_fa2){this._5a1.connect(_Re1,_ea2,_fa2);};_s51.prototype._ca2=function(_Ol){if(_Ol instanceof _6a1)return _Ol;
if(_Ol===undefined)return _Ol;throw new Error("Value must be Struct.AudioEffect or undefined");};function _Q82(){}_Q82._Y82=0.005;_Q82._R82={_S82:0,_j92:1,_V82:2,_O92:3,_R92:4,_U92:5,_Z92:6,_S92:7,_K92:8,_Q92:9,_n92:10,_792:11};_Q82._qa2=function(_wd){switch(_wd){case _Q82._R82._S82:return "bitcrusher-processor";case _Q82._R82._j92:return "delay-processor";case _Q82._R82._V82:return "gain-processor";case _Q82._R82._O92:return "hpf2-processor";case _Q82._R82._R92:return "lpf2-processor";case _Q82._R82._U92:return "reverb1-processor";
case _Q82._R82._Z92:return "tremolo-processor";case _Q82._R82._S92:return "peak-eq-processor";case _Q82._R82._K92:return "hi-shelf-processor";case _Q82._R82._Q92:return "lo-shelf-processor";case _Q82._R82._n92:return null;case _Q82._R82._792:return "compressor-processor";default :return null;}};function _6a1(_wd){this.__type="[AudioEffect]";this.__yyIsGMLObject=true;this._6u1=[];this.type=_wd;this._kt=[];Object.defineProperties(this,{gmltype:{enumerable:true,get :()=>{return this.type;},set :(_wd)=>{throw new Error("Unable to set AudioEffect.type - property is read-only");
}},gmlbypass:{enumerable:true,get :()=>{return this._kt[_6a1._U82._392];},set :(_r61)=>{const _Je=this._W82(_6a1._U82._392,_r61);this._6u1.forEach((_X82)=>{const bypass=_X82.parameters.get("bypass");bypass.value=_Je;});}}});}_6a1._ra2=function(_wd){switch(_wd){case _Q82._R82._S82:return _P82;case _Q82._R82._j92:return _i92;case _Q82._R82._V82:return _J92;case _Q82._R82._O92:return _p92;case _Q82._R82._R92:return _t92;case _Q82._R82._U92:return _T92;case _Q82._R82._Z92:return _Y92;case _Q82._R82._S92:return _r92;case _Q82._R82._K92:return _s92;
case _Q82._R82._Q92:return _q92;case _Q82._R82._n92:return _m92;case _Q82._R82._792:return _692;default :return undefined;}};_6a1._7a1=function(_wd,_xn){const _sa2=_6a1._ra2(_wd);return(_sa2===undefined)?undefined:new _sa2(_xn);};_6a1._U82={_392:0};_6a1._492=[{name:"bypass",_592:true,defaultValue:0,minValue:0,maxValue:1}];_6a1.prototype._w92=function(){const _nl=_H92._ta2(this);this._6u1.push(_nl);const _95={input:_nl,output:_nl};return _95;};_6a1.prototype._T82=function(_xn){const _ua2=this._oa2();_ua2.forEach((_va2,
_ha2)=>{let _Je=_va2.defaultValue;if(_xn!==undefined&&_xn["gml"+_va2.name]!==undefined){_Je=_xn["gml"+_va2.name];}this._W82(_ha2,_Je);});};_6a1.prototype._W82=function(_ha2,_k4){const _sa2=_6a1._ra2(this.type);const _wa2=this._xa2(_sa2._492[_ha2]);_k4=clamp(_k4,_wa2.minValue,_wa2.maxValue);if(_wa2._592===true)_k4=~~_k4;this._kt[_ha2]=_k4;return _k4;};_6a1.prototype._oa2=function(){const _sa2=_6a1._ra2(this.type);return _sa2._492;};_6a1.prototype._pa2=function(_ha2){return this._oa2()[_ha2];};_6a1.prototype._na2=function(_X82){
const _jc=this._6u1.findIndex(_ya2=>_ya2===_X82);if(_jc!==-1){_H92._za2(this._6u1[_jc]);this._6u1.splice(_jc,1);}};_6a1.prototype._xa2=function(_va2){if(this._Aa2()===false){return _va2;}if(_va2.name!=="cutoff"&&_va2.name!=="freq"){return _va2;}_va2.maxValue=g_WebAudioContext?g_WebAudioContext.sampleRate*0.45:_va2.maxValue;_va2.defaultValue=Math.min(_va2.defaultValue,_va2.maxValue);return _va2;};_6a1.prototype._Aa2=function(){switch(this.type){case _Q82._R82._K92:case _Q82._R82._O92:case _Q82._R82._Q92:case _Q82._R82._R92:case _Q82._R82._S92:return true;
default :return false;}};_6a1.prototype._Ba2=function(){const map={};const _ua2=this._oa2();_ua2.forEach((_va2,_ha2)=>{map[_va2.name]=this._kt[_ha2]});return map;};class _G71{constructor(){if(_y51()===false){console.error("Cannot create audio emitters until audio engine is running - check audio_system_is_initialised()");return null;}this.gainnode=_751(g_WebAudioContext);this._681=_G71._Ca2();this._681.connect(this.gainnode);this._w81();}}_G71._Ca2=function(){if(typeof PannerNode==="undefined"){return g_WebAudioContext.createPanner();
}return new PannerNode(g_WebAudioContext);};_G71.prototype._w81=function(){this.setPosition(0.0,0.0,0.01);this._681.refDistance=100.0;this._681.maxDistance=100000.0;this._681.rolloffFactor=1.0;this._681._Da2=360.0;this._681._Ea2=0.0;this._681._Fa2=0.0;this._681.distanceModel=_181;this._681.panningModel="equalpower";this.gainnode.gain.value=1.0;_w51._E71(this.gainnode);this._4a1=_w51;this.pitch=1.0;if(_281===_p41._q41){this._681.rolloffFactor=0.0;this._781=1.0;}this.active=true;};_G71.prototype._J71=function(){
return this._681;};_G71.prototype.__71=function(){return this.active===true;};_G71.prototype._aa1=function(){return this._4a1;};_G71.prototype._9a1=function(_8a1){this.gainnode.disconnect();_8a1._E71(this.gainnode);this._4a1=_8a1;};_G71.prototype._H71=function(_x81,_y81,_z81){this._681.refDistance=_x81;this._681.maxDistance=_y81;this._681.rolloffFactor=_z81;this._681.distanceModel=_181;if(_281===_p41._q41){this._781=this._681.rolloffFactor;this._681.rolloffFactor=0.0;}};_G71.prototype._s81=function(){
return this._681.positionX.value;};_G71.prototype._t81=function(){return this._681.positionY.value;};_G71.prototype._u81=function(){return this._681.positionZ.value;};_G71.prototype.setPosition=function(_96,_a6,_As){this._681.positionX.value=_96;this._681.positionY.value=_a6;this._681.positionZ.value=_As;};var _C71={_D71:0,_F71:1,_I71:2};function _M71(_L51){if(this._Ga2(_L51,"sound",this,"asset_index",true,yyGetInt32,_Z51._Ha2)){this._961=_a61(this.asset_index);if(this._961!==null){this.loopStart=this._961.loopStart;
this.loopEnd=this._961.loopEnd;}}if(this._Ga2(_L51,"emitter",this,"emitter_index",true,yyGetInt32,_Z51._Ha2)){this.type=_C71._I71;this.emitter=_841[this.emitter_index];}this._Ga2(_L51,"priority",this,"priority",true,yyGetReal,_Z51._Ia2);this._Ga2(_L51,"loop",this,"loop",true,yyGetBool,_Z51._Ja2);this._Ga2(_L51,"gain",this,"gain",true,yyGetReal,_Z51._Ka2);this.gain=Math.max(0.0,this.gain);this._Ga2(_L51,"offset",this,"offset",true,yyGetReal,_Z51._La2);if(this.offset!==_Z51._La2)this.offset=Math.max(0.0,
this.offset);this._Ga2(_L51,"pitch",this,"pitch",true,yyGetReal,_Z51._Ma2);this.pitch=Math.max(0.0,this.pitch);this._Ga2(_L51,"position",this,"position",true,undefined,undefined);if(typeof this.position==="object"&&this.type===undefined){this.type=_C71._F71;const position=(_L51.position!==undefined)?_L51.position:_L51.gmlposition;this.position={};this._Ga2(position,"x",this.position,"x",false,yyGetReal,0);this._Ga2(position,"y",this.position,"y",false,yyGetReal,0);this._Ga2(position,"z",this.position,
"z",false,yyGetReal,0);this._Ga2(position,"falloff_ref",this.position,"falloff_ref",true,yyGetReal,0);this._Ga2(position,"falloff_max",this.position,"falloff_max",true,yyGetReal,1);this._Ga2(position,"falloff_factor",this.position,"falloff_factor",true,yyGetReal,1);}if(this.type===undefined){this.type=_C71._D71;}}_M71.prototype._Ga2=function(_Na2,_Oa2,_Pa2,_Qa2,_Ra2,_Sa2,_PG){if(_Sa2===undefined){_Sa2=(x)=>x;}if(_Na2[_Oa2]!==undefined){_Pa2[_Qa2]=_Sa2(_Na2[_Oa2]);return true;}if(_Ra2&&_Na2["gml"+_Oa2]!==undefined){
_Pa2[_Qa2]=_Sa2(_Na2["gml"+_Oa2]);return true;}_Pa2[_Qa2]=_PG;return false;};_M71.prototype._A71=function(){if(this._961==null){debug("Audio playback failed - invalid asset index: "+this.asset_index);return true;}if(!audio_group_is_loaded(this._961.groupId)){debug(audio_get_name(this.asset_index)+": Audio Group "+this._961.groupId+" is not loaded");return true;}if(_e71()===false){debug("Audio playback failed. WebAudio Context suspended (user must interact with the page before audio can be played).");
return true;}if(this.type===_C71._I71&&this.emitter===undefined){debug("Attempting to play sound on inactive emitter: "+this.emitter_index);return true;}return false;};function _Z51(){}_Z51._Ha2=-1;_Z51._La2=-1;_Z51._Ia2=0;_Z51._Ja2=false;_Z51._Ka2=1;_Z51._Ta2=0;_Z51._Ma2=1;_Z51.__51=function(_251){const _961=_Z51._Ua2(_251._U51);const _t11=_Z51._Va2(_251._U51);return _251.gain.get()*_961.gain.get()*_t11.gain.get();};_Z51._461=function(_251){if(_251._T51==_Z51._La2){const _961=_Z51._Ua2(_251._U51);return _961.offset;
}return _251._T51;};_Z51._761=function(_251){const _961=_Z51._Ua2(_251._U51);const emitter=_Z51._Wa2(_251._N51);return _251.pitch*_961.pitch*emitter.pitch;};_Z51._Ua2=function(_K71){const _961=_a61(_K71);if(_961!=null){return(()=>({gain:_961.gain,offset:_961._C51,pitch:_961.pitch}))();}return(()=>({gain:new _A51(_Z51._Ka2),offset:_Z51._Ta2,pitch:_Z51._Ma2}))();};_Z51._Wa2=function(_581){if(_581!=null){return(()=>({gain:_581.gainnode.gain.value,pitch:_581.pitch}))();}return(()=>({gain:_Z51._Ka2,pitch:_Z51._Ma2}
))();};_Z51._Va2=function(_891){const _961=_a61(_891);if(_961!=null){const _t11=_051[_961.groupId];if(_t11!==undefined){return(()=>({gain:_t11.gain,}))();}}return(()=>({gain:new _A51(_Z51._Ka2),}))();};function _Xa2(){this._6u1=[];this._1R=setInterval(()=>this.cleanup(),5000);}_Xa2.prototype._4a2=function(_Qy){const _x92=g_WebAudioContext.destination.channelCount;const _nl=new AudioWorkletNode(g_WebAudioContext,"audio-bus-input",{numberOfInputs:1,numberOfOutputs:2,outputChannelCount:[_x92,_x92],channelCount:_x92,
channelCountMode:"explicit"});this._6u1.push({_I92:new WeakRef(_Qy),_nl:_nl});return _nl;};_Xa2.prototype._5a2=function(_Qy){const _x92=g_WebAudioContext.destination.channelCount;const _nl=new AudioWorkletNode(g_WebAudioContext,"audio-bus-output",{numberOfInputs:2,numberOfOutputs:1,outputChannelCount:[_x92],channelCount:_x92,channelCountMode:"explicit"});this._6u1.push({_I92:new WeakRef(_Qy),_nl:_nl});return _nl;};_Xa2.prototype._ta2=function(_Qy){const _Ya2=_Q82._qa2(_Qy.type);const _x92=g_WebAudioContext.destination.channelCount;
const _nl=new AudioWorkletNode(g_WebAudioContext,_Ya2,{numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[_x92],parameterData:_Qy._Ba2(),channelCount:_x92,channelCountMode:"explicit"});this._6u1.push({_I92:new WeakRef(_Qy),_nl:_nl});return _nl;};_Xa2.prototype.cleanup=function(){this._6u1=this._6u1.filter((_Za2)=>{const _I92=_Za2._I92.deref();if(_I92===undefined){_Za2._nl.port.postMessage("kill");return false;}return true;});};_Xa2.prototype._za2=function(_X82){const _jc=this._6u1.findIndex(_Za2=>_Za2._nl===_X82);
if(_jc!==-1){this._6u1[_jc]._nl.port.postMessage("kill");this._6u1.splice(_jc,1);}};var _H92=new _Xa2();_Yg:var spine=(()=>{var __a2=Object.defineProperty;var _0b2=(target)=>__a2(target,"__esModule",{value:true});var _1b2=(target,all)=>{_0b2(target);for(var name in all)__a2(target,name,{get :all[name],enumerable:true});};var _2b2={};_1b2(_2b2,{_3b2:()=>_3b2,_4b2:()=>_4b2,_V3:()=>_V3,_5b2:()=>_5b2,_U3:()=>_U3,_6b2:()=>_6b2,_W5:()=>_W5,_7b2:()=>_7b2,_8b2:()=>_8b2,_9b2:()=>_9b2,_Va:()=>_Va,_ab2:()=>_ab2,_bb2:()=>_bb2,
_3a:()=>_3a,_cb2:()=>_cb2,_Ca:()=>_Ca,_15:()=>_15,_db2:()=>_db2,_eb2:()=>_eb2,_fb2:()=>_fb2,_gb2:()=>_gb2,_hb2:()=>_hb2,_ib2:()=>_ib2,_jb2:()=>_jb2,_kb2:()=>_kb2,Event:()=>Event,_lb2:()=>_lb2,_mb2:()=>_mb2,_w8:()=>_w8,_nb2:()=>_nb2,_ob2:()=>_ob2,_pb2:()=>_pb2,_qb2:()=>_qb2,_rb2:()=>_rb2,_sb2:()=>_sb2,_tb2:()=>_tb2,_ub2:()=>_ub2,_vb2:()=>_vb2,_wb2:()=>_wb2,_xb2:()=>_xb2,_yb2:()=>_yb2,_zb2:()=>_zb2,_1a:()=>_1a,_Ab2:()=>_Ab2,_Bb2:()=>_Bb2,_Cb2:()=>_Cb2,_Db2:()=>_Db2,_Eb2:()=>_Eb2,_Fb2:()=>_Fb2,_Gb2:()=>_Gb2,
_Hb2:()=>_Hb2,_Ib2:()=>_Ib2,_Jb2:()=>_Jb2,_Kb2:()=>_Kb2,_Lb2:()=>_Lb2,_Mb2:()=>_Mb2,_Nb2:()=>_Nb2,_Ob2:()=>_Ob2,_Pb2:()=>_Pb2,_Qb2:()=>_Qb2,__9:()=>__9,_Rb2:()=>_Rb2,_Sb2:()=>_Sb2,_Tb2:()=>_Tb2,_Ub2:()=>_Ub2,_Vb2:()=>_Vb2,_Wb2:()=>_Wb2,_Xb2:()=>_Xb2,_Yb2:()=>_Yb2,_Zb2:()=>_Zb2,__b2:()=>__b2,_T3:()=>_T3,_0c2:()=>_0c2,_74:()=>_74,_Da:()=>_Da,_1c2:()=>_1c2,_D9:()=>_D9,_e8:()=>_e8,_2c2:()=>_2c2,_3c2:()=>_3c2,_4c2:()=>_4c2,_5c2:()=>_5c2,_6c2:()=>_6c2,_7c2:()=>_7c2,_8e1:()=>_8e1,_S5:()=>_S5,_s5:()=>_s5,
_F5:()=>_F5,_v5:()=>_v5,_8c2:()=>_8c2,_y5:()=>_y5,_9c2:()=>_9c2,_ac2:()=>_ac2,_bc2:()=>_bc2,_cc2:()=>_cc2,_dc2:()=>_dc2,_ec2:()=>_ec2,_fc2:()=>_fc2,_gc2:()=>_gc2,_hc2:()=>_hc2,_ic2:()=>_ic2,_jc2:()=>_jc2,_kc2:()=>_kc2,_lc2:()=>_lc2,_mc2:()=>_mc2,_nc2:()=>_nc2});var _wb2=class {constructor(){this._tc=new Array();}add(value){let _oc2=this._oc2(value);this._tc[value|0]=value|0;return !_oc2;}_oc2(value){return this._tc[value|0]!=void 0;}remove(value){this._tc[value|0]=void 0;}clear(){this._tc.length=0;}};var _6c2=class {
constructor(){this._pc2={};this.size=0;}add(value){let _oc2=this._pc2[value];this._pc2[value]=true;if(!_oc2){this.size++;return true;}return false;}_qc2(values){let _rc2=this.size;for(var i=0,_c7=values.length;i<_c7;i++)this.add(values[i]);return _rc2!=this.size;}_oc2(value){return this._pc2[value];}clear(){this._pc2={};this.size=0;}};var _sc2=class {constructor(_Y4=0,_Z4=0,__4=0,_05=0){this._Y4=_Y4;this._Z4=_Z4;this.__4=__4;this._05=_05;}set(_Y4,_Z4,__4,_05){this._Y4=_Y4;this._Z4=_Z4;this.__4=__4;this._05=_05;
return this.clamp();}_16(c){this._Y4=c._Y4;this._Z4=c._Z4;this.__4=c.__4;this._05=c._05;return this;}_tc2(_uc2){_uc2=_uc2.charAt(0)=="#"?_uc2.substr(1):_uc2;this._Y4=parseInt(_uc2.substr(0,2),16)/255;this._Z4=parseInt(_uc2.substr(2,2),16)/255;this.__4=parseInt(_uc2.substr(4,2),16)/255;this._05=_uc2.length!=8?1:parseInt(_uc2.substr(6,2),16)/255;return this;}add(_Y4,_Z4,__4,_05){this._Y4+=_Y4;this._Z4+=_Z4;this.__4+=__4;this._05+=_05;return this.clamp();}clamp(){if(this._Y4<0)this._Y4=0;else if(this._Y4>1)this._Y4=1;
if(this._Z4<0)this._Z4=0;else if(this._Z4>1)this._Z4=1;if(this.__4<0)this.__4=0;else if(this.__4>1)this.__4=1;if(this._05<0)this._05=0;else if(this._05>1)this._05=1;return this;}static _vc2(color,value){color._Y4=((value&4278190080)>>>24)/255;color._Z4=((value&16711680)>>>16)/255;color.__4=((value&65280)>>>8)/255;color._05=(value&255)/255;}static _wc2(color,value){color._Y4=((value&16711680)>>>16)/255;color._Z4=((value&65280)>>>8)/255;color.__4=(value&255)/255;}static _W_1(_uc2){return new _sc2()._tc2(_uc2);
}};var _15=_sc2;_15._xc2=new _sc2(1,1,1,1);_15.RED=new _sc2(1,0,0,1);_15._yc2=new _sc2(0,1,0,1);_15._zc2=new _sc2(0,0,1,1);_15._Ac2=new _sc2(1,0,1,1);var _Bc2=class {static clamp(value,min,max){if(value<min)return min;if(value>max)return max;return value;}static _Cc2(_O5){return Math.cos(_O5*_Bc2._Dc2);}static _Ec2(_O5){return Math.sin(_O5*_Bc2._Dc2);}static _Fc2(value){return value>0?1:value<0?-1:0;}static _402(x){return x>0?Math.floor(x):Math.ceil(x);}static _Gc2(x){let y=Math.pow(Math.abs(x),1/3);return x<0?-y:y;}static _Hc2(min,
max){return _Bc2._Ic2(min,max,(min+max)*0.5);}static _Ic2(min,max,mode){let _G5=Math.random();let _Xo=max-min;if(_G5<=(mode-min)/_Xo)return min+Math.sqrt(_G5*_Xo*(mode-min));return max-Math.sqrt((1-_G5)*_Xo*(max-mode));}static _TR1(value){return value&&(value&value-1)===0;}};var _zb2=_Bc2;_zb2.PI=3.1415927;_zb2._Jc2=_Bc2.PI*2;_zb2._Kc2=180/_Bc2.PI;_zb2._Lc2=_Bc2._Kc2;_zb2._Mc2=_Bc2.PI/180;_zb2._Dc2=_Bc2._Mc2;var _xb2=class {apply(start,end,_05){return start+(end-start)*this._Nc2(_05);}};var _Lb2=class  extends _xb2{
constructor(power){super();this.power=2;this.power=power;}_Nc2(_05){if(_05<=0.5)return Math.pow(_05*2,this.power)/2;return Math.pow((_05-1)*2,this.power)/(this.power%2==0?-2:2)+1;}};var _Mb2=class  extends _Lb2{constructor(power){super(power);}_Nc2(_05){return Math.pow(_05-1,this.power)*(this.power%2==0?-1:1)+1;}};var _Oc2=class {static _Pc2(source,_Qc2,_Ya,_Rc2,_Sc2){for(let i=_Qc2,_J6=_Rc2;i<_Qc2+_Sc2;i++,_J6++){_Ya[_J6]=source[i];}}static _Tc2(_tc,_Uc2,_Vc2,value){for(let i=_Uc2;i<_Vc2;i++)_tc[i]=value;}static _Wc2(_tc,
size,value=0){let _rc2=_tc.length;if(_rc2==size)return _tc;_tc.length=size;if(_rc2<size){for(let i=_rc2;i<size;i++)_tc[i]=value;}return _tc;}static _Xc2(_tc,size,value=0){if(_tc.length>=size)return _tc;return _Oc2._Wc2(_tc,size,value);}static _Yc2(size,defaultValue){let _tc=new Array(size);for(let i=0;i<size;i++)_tc[i]=defaultValue;return _tc;}static _Zc2(size){if(_Oc2.__c2)return new Float32Array(size);else {let _tc=new Array(size);for(let i=0;i<_tc.length;i++)_tc[i]=0;return _tc;}}static _0d2(size){if(_Oc2.__c2)return new Int16Array(size);
else {let _tc=new Array(size);for(let i=0;i<_tc.length;i++)_tc[i]=0;return _tc;}}static _1d2(_tc){return _Oc2.__c2?new Float32Array(_tc):_tc;}static _2d2(value){return _Oc2.__c2?Math._3d2(value):value;}static _4d2(alpha,_QJ){}static _oc2(_tc,_Ad,identity=true){for(var i=0;i<_tc.length;i++)if(_tc[i]==_Ad)return true;return false;}static _5d2(type,name){return type[name[0].toUpperCase()+name.slice(1)];}};var _kc2=_Oc2;_kc2.__c2=typeof Float32Array!=="undefined";var _hb2=class {static _6d2(skeleton){for(let i=0;i<skeleton.bones.length;
i++){let bone=skeleton.bones[i];console.log(bone.data.name+", "+bone._05+", "+bone.__4+", "+bone.c+", "+bone._Xo+", "+bone._08+", "+bone._18);}}};var _Jb2=class {constructor(_7d2){this._8d2=new Array();this._7d2=_7d2;}_9d2(){return this._8d2.length>0?this._8d2.pop():this._7d2();}_ad2(_Yk){if(_Yk._w81)_Yk._w81();this._8d2.push(_Yk);}_bd2(_8d2){for(let i=0;i<_8d2.length;i++)this._ad2(_8d2[i]);}clear(){this._8d2.length=0;}};var _lc2=class {constructor(x=0,y=0){this.x=x;this.y=y;}set(x,y){this.x=x;this.y=y;
return this;}length(){let x=this.x;let y=this.y;return Math.sqrt(x*x+y*y);}_cd2(){let _Ai=this.length();if(_Ai!=0){this.x/=_Ai;this.y/=_Ai;}return this;}};var _9c2=class {constructor(){this._dd2=0.064;this._ed2=0;this._2i=0;this._vj1=0;this._fd2=Date.now()/1e3;this._o6=0;this._gd2=0;}_v6(){let now=Date.now()/1e3;this._2i=now-this._fd2;this._gd2+=this._2i;this._vj1+=this._2i;if(this._2i>this._dd2)this._2i=this._dd2;this._fd2=now;this._o6++;if(this._gd2>1){this._ed2=this._o6/this._gd2;this._gd2=0;this._o6=0;
}}};var _nc2=class {constructor(_hd2=32){this._id2=0;this._Te=0;this.mean=0;this._Yb1=true;this.values=new Array(_hd2);}_jd2(){return this._id2>=this.values.length;}_kd2(value){if(this._id2<this.values.length)this._id2++;this.values[this._Te++]=value;if(this._Te>this.values.length-1)this._Te=0;this._Yb1=true;}_ld2(){if(this._jd2()){if(this._Yb1){let mean=0;for(let i=0;i<this.values.length;i++)mean+=this.values[i];this.mean=mean/this.values.length;this._Yb1=false;}return this.mean;}return 0;}};var _7b2=class {
constructor(name){if(!name)throw new Error("name cannot be null.");this.name=name;}};var _md2=class  extends _7b2{constructor(name){super(name);this.id=_md2._nd2++;this._Ba=0;this._od2=this;}_va(slot,start,_c9,_pd2,offset,_sb){_c9=offset+(_c9>>1)*_sb;let skeleton=slot.bone.skeleton;let _qd2=slot.deform;let vertices=this.vertices;let bones=this.bones;if(!bones){if(_qd2.length>0)vertices=_qd2;let bone=slot.bone;let x=bone._08;let y=bone._18;let _05=bone._05,__4=bone.__4,c=bone.c,_Xo=bone._Xo;for(let _J5=start,w=offset;
w<_c9;_J5+=2,w+=_sb){let _Cb=vertices[_J5],_Db=vertices[_J5+1];_pd2[w]=_Cb*_05+_Db*__4+x;_pd2[w+1]=_Cb*c+_Db*_Xo+y;}return;}let _H5=0,_rd2=0;for(let i=0;i<start;i+=2){let _c7=bones[_H5];_H5+=_c7+1;_rd2+=_c7;}let _sd2=skeleton.bones;if(_qd2.length==0){for(let w=offset,__4=_rd2*3;w<_c9;w+=_sb){let _td2=0,_ud2=0;let _c7=bones[_H5++];_c7+=_H5;for(;_H5<_c7;_H5++,__4+=3){let bone=_sd2[bones[_H5]];let _Cb=vertices[__4],_Db=vertices[__4+1],_bC1=vertices[__4+2];_td2+=(_Cb*bone._05+_Db*bone.__4+bone._08)*_bC1;_ud2+=(_Cb*bone.c+_Db*bone._Xo+bone._18)*_bC1;
}_pd2[w]=_td2;_pd2[w+1]=_ud2;}}else {let deform=_qd2;for(let w=offset,__4=_rd2*3,_nv=_rd2<<1;w<_c9;w+=_sb){let _td2=0,_ud2=0;let _c7=bones[_H5++];_c7+=_H5;for(;_H5<_c7;_H5++,__4+=3,_nv+=2){let bone=_sd2[bones[_H5]];let _Cb=vertices[__4]+deform[_nv],_Db=vertices[__4+1]+deform[_nv+1],_bC1=vertices[__4+2];_td2+=(_Cb*bone._05+_Db*bone.__4+bone._08)*_bC1;_ud2+=(_Cb*bone.c+_Db*bone._Xo+bone._18)*_bC1;}_pd2[w]=_td2;_pd2[w+1]=_ud2;}}}_vd2(attachment){if(this.bones){attachment.bones=new Array(this.bones.length);
_kc2._Pc2(this.bones,0,attachment.bones,0,this.bones.length);}else attachment.bones=null;if(this.vertices){attachment.vertices=_kc2._Zc2(this.vertices.length);_kc2._Pc2(this.vertices,0,attachment.vertices,0,this.vertices.length);}else attachment.vertices=null;attachment._Ba=this._Ba;attachment._od2=this._od2;}};var _mc2=_md2;_mc2._nd2=0;var _4b2=class {constructor(name,_s6,duration){if(!name)throw new Error("name cannot be null.");this.name=name;this._wd2(_s6);this.duration=duration;}_wd2(_s6){if(!_s6)throw new Error("timelines cannot be null.");
this._s6=_s6;this._xd2=new _6c2();for(var i=0;i<_s6.length;i++)this._xd2._qc2(_s6[i]._yd2());}_zd2(ids){for(let i=0;i<ids.length;i++)if(this._xd2._oc2(ids[i]))return true;return false;}apply(skeleton,_fd2,time,loop,events,alpha,_QJ,direction){if(!skeleton)throw new Error("skeleton cannot be null.");if(loop&&this.duration!=0){time%=this.duration;if(_fd2>0)_fd2%=this.duration;}let _s6=this._s6;for(let i=0,_c7=_s6.length;i<_c7;i++)_s6[i].apply(skeleton,_fd2,time,events,alpha,_QJ,direction);}};var _Ab2;(function(_Ad2){
_Ad2[_Ad2["setup"]=0]="setup";_Ad2[_Ad2["first"]=1]="first";_Ad2[_Ad2["replace"]=2]="replace";_Ad2[_Ad2["add"]=3]="add";})(_Ab2||(_Ab2={}));var _Bb2;(function(_Bd2){_Bd2[_Bd2["mixIn"]=0]="mixIn";_Bd2[_Bd2["mixOut"]=1]="mixOut";})(_Bb2||(_Bb2={}));var _Cd2={rotate:0,x:1,y:2,scaleX:3,scaleY:4,shearX:5,shearY:6,rgb:7,alpha:8,rgb2:9,attachment:10,deform:11,event:12,drawOrder:13,ikConstraint:14,transformConstraint:15,pathConstraintPosition:16,pathConstraintSpacing:17,pathConstraintMix:18};var _ac2=class {
constructor(_o6,_Dd2){this._Dd2=_Dd2;this.frames=_kc2._Zc2(_o6*this._Ed2());}_yd2(){return this._Dd2;}_Ed2(){return 1;}_Fd2(){return this.frames.length/this._Ed2();}_Gd2(){return this.frames[this.frames.length-this._Ed2()];}static _Hd2(frames,time){let _c7=frames.length;for(let i=1;i<_c7;i++)if(frames[i]>time)return i-1;return _c7-1;}static search(frames,time,step){let _c7=frames.length;for(let i=step;i<_c7;i+=step)if(frames[i]>time)return i-step;return _c7-step;}};var _eb2=class  extends _ac2{constructor(_o6,_Id2,
_Dd2){super(_o6,_Dd2);this._Jd2=_kc2._Zc2(_o6+_Id2*18);this._Jd2[_o6-1]=1;}_Kd2(frame){this._Jd2[frame]=0;}_Ld2(frame){this._Jd2[frame]=1;}_Md2(_Id2){let size=this._Fd2()+_Id2*18;if(this._Jd2.length>size){let _Nd2=_kc2._Zc2(size);_kc2._Pc2(this._Jd2,0,_Nd2,0,size);this._Jd2=_Nd2;}}_Od2(_Pd2,frame,value,_Lv,_Qd2,_Rd2,_Sd2,_Td2,_Ud2,_Mv,_Vd2){let _Jd2=this._Jd2;let i=this._Fd2()+_Pd2*18;if(value==0)_Jd2[frame]=2+i;let _Wd2=(_Lv-_Rd2*2+_Td2)*0.03,_Xd2=(_Qd2-_Sd2*2+_Ud2)*0.03;let _Yd2=((_Rd2-_Td2)*3-_Lv+_Mv)*6e-3,
_Zd2=((_Sd2-_Ud2)*3-_Qd2+_Vd2)*6e-3;let __d2=_Wd2*2+_Yd2,_0e2=_Xd2*2+_Zd2;let __b=(_Rd2-_Lv)*0.3+_Wd2+_Yd2*0.16666667,_0c=(_Sd2-_Qd2)*0.3+_Xd2+_Zd2*0.16666667;let x=_Lv+__b,y=_Qd2+_0c;for(let _c7=i+18;i<_c7;i+=2){_Jd2[i]=x;_Jd2[i+1]=y;__b+=__d2;_0c+=_0e2;__d2+=_Yd2;_0e2+=_Zd2;x+=__b;y+=_0c;}}_1e2(time,_p4,_2e2,i){let _Jd2=this._Jd2;if(_Jd2[i]>time){let _h7=this.frames[_p4],_i7=this.frames[_p4+_2e2];return _i7+(time-_h7)/(_Jd2[i]-_h7)*(_Jd2[i+1]-_i7);}let _c7=i+18;for(i+=2;i<_c7;i+=2){if(_Jd2[i]>=time){let _h7=_Jd2[i-2],
_i7=_Jd2[i-1];return _i7+(time-_h7)/(_Jd2[i]-_h7)*(_Jd2[i+1]-_i7);}}_p4+=this._Ed2();let x=_Jd2[_c7-2],y=_Jd2[_c7-1];return y+(time-x)/(this.frames[_p4]-x)*(this.frames[_p4+_2e2]-y);}};var _fb2=class  extends _eb2{constructor(_o6,_Id2,_3e2){super(_o6,_Id2,[_3e2]);}_Ed2(){return 2;}_4e2(frame,time,value){frame<<=1;this.frames[frame]=time;this.frames[frame+1]=value;}_5e2(time){let frames=this.frames;let i=frames.length-2;for(let _Tx=2;_Tx<=i;_Tx+=2){if(frames[_Tx]>time){i=_Tx-2;break;}}let _6e2=this._Jd2[i>>1];
switch(_6e2){case 0:let _7e2=frames[i],value=frames[i+1];return value+(time-_7e2)/(frames[i+2]-_7e2)*(frames[i+2+1]-value);case 1:return frames[i+1];}return this._1e2(time,i,1,_6e2-2);}};var _gb2=class  extends _eb2{constructor(_o6,_Id2,_8e2,_9e2){super(_o6,_Id2,[_8e2,_9e2]);}_Ed2(){return 3;}_4e2(frame,time,_Qd2,_Vd2){frame*=3;this.frames[frame]=time;this.frames[frame+1]=_Qd2;this.frames[frame+2]=_Vd2;}};var _Sb2=class  extends _fb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.rotate+"|"+_ae2);this._ae2=0;this._ae2=_ae2;
}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:bone.rotation=bone.data.rotation;return;case 1:bone.rotation+=(bone.data.rotation-bone.rotation)*alpha;}return;}let _Y4=this._5e2(time);switch(_QJ){case 0:bone.rotation=bone.data.rotation+_Y4*alpha;break;case 1:case 2:_Y4+=bone.data.rotation-bone.rotation;case 3:bone.rotation+=_Y4*alpha;}}};var _gc2=class  extends _gb2{constructor(_o6,_Id2,
_ae2){super(_o6,_Id2,_Cd2.x+"|"+_ae2,_Cd2.y+"|"+_ae2);this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:bone.x=bone.data.x;bone.y=bone.data.y;return;case 1:bone.x+=(bone.data.x-bone.x)*alpha;bone.y+=(bone.data.y-bone.y)*alpha;}return;}let x=0,y=0;let i=_ac2.search(frames,time,3);let _6e2=this._Jd2[i/3];switch(_6e2){case 0:let _7e2=frames[i];x=frames[i+1];y=frames[i+2];
let _s7=(time-_7e2)/(frames[i+3]-_7e2);x+=(frames[i+3+1]-x)*_s7;y+=(frames[i+3+2]-y)*_s7;break;case 1:x=frames[i+1];y=frames[i+2];break;default :x=this._1e2(time,i,1,_6e2-2);y=this._1e2(time,i,2,_6e2+18-2);}switch(_QJ){case 0:bone.x=bone.data.x+x*alpha;bone.y=bone.data.y+y*alpha;break;case 1:case 2:bone.x+=(bone.data.x+x-bone.x)*alpha;bone.y+=(bone.data.y+y-bone.y)*alpha;break;case 3:bone.x+=x*alpha;bone.y+=y*alpha;}}};var _hc2=class  extends _fb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.x+"|"+_ae2);
this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:bone.x=bone.data.x;return;case 1:bone.x+=(bone.data.x-bone.x)*alpha;}return;}let x=this._5e2(time);switch(_QJ){case 0:bone.x=bone.data.x+x*alpha;break;case 1:case 2:bone.x+=(bone.data.x+x-bone.x)*alpha;break;case 3:bone.x+=x*alpha;}}};var _ic2=class  extends _fb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.y+"|"+_ae2);
this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:bone.y=bone.data.y;return;case 1:bone.y+=(bone.data.y-bone.y)*alpha;}return;}let y=this._5e2(time);switch(_QJ){case 0:bone.y=bone.data.y+y*alpha;break;case 1:case 2:bone.y+=(bone.data.y+y-bone.y)*alpha;break;case 3:bone.y+=y*alpha;}}};var _Vb2=class  extends _gb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.scaleX+"|"+_ae2,
_Cd2.scaleY+"|"+_ae2);this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:bone.scaleX=bone.data.scaleX;bone.scaleY=bone.data.scaleY;return;case 1:bone.scaleX+=(bone.data.scaleX-bone.scaleX)*alpha;bone.scaleY+=(bone.data.scaleY-bone.scaleY)*alpha;}return;}let x,y;let i=_ac2.search(frames,time,3);let _6e2=this._Jd2[i/3];switch(_6e2){case 0:let _7e2=frames[i];x=frames[i+1];
y=frames[i+2];let _s7=(time-_7e2)/(frames[i+3]-_7e2);x+=(frames[i+3+1]-x)*_s7;y+=(frames[i+3+2]-y)*_s7;break;case 1:x=frames[i+1];y=frames[i+2];break;default :x=this._1e2(time,i,1,_6e2-2);y=this._1e2(time,i,2,_6e2+18-2);}x*=bone.data.scaleX;y*=bone.data.scaleY;if(alpha==1){if(_QJ==3){bone.scaleX+=x-bone.data.scaleX;bone.scaleY+=y-bone.data.scaleY;}else {bone.scaleX=x;bone.scaleY=y;}}else {let _sB1=0,_tB1=0;if(direction==1){switch(_QJ){case 0:_sB1=bone.data.scaleX;_tB1=bone.data.scaleY;bone.scaleX=_sB1+(Math.abs(x)*_zb2._Fc2(_sB1)-_sB1)*alpha;
bone.scaleY=_tB1+(Math.abs(y)*_zb2._Fc2(_tB1)-_tB1)*alpha;break;case 1:case 2:_sB1=bone.scaleX;_tB1=bone.scaleY;bone.scaleX=_sB1+(Math.abs(x)*_zb2._Fc2(_sB1)-_sB1)*alpha;bone.scaleY=_tB1+(Math.abs(y)*_zb2._Fc2(_tB1)-_tB1)*alpha;break;case 3:bone.scaleX=(x-bone.data.scaleX)*alpha;bone.scaleY=(y-bone.data.scaleY)*alpha;}}else {switch(_QJ){case 0:_sB1=Math.abs(bone.data.scaleX)*_zb2._Fc2(x);_tB1=Math.abs(bone.data.scaleY)*_zb2._Fc2(y);bone.scaleX=_sB1+(x-_sB1)*alpha;bone.scaleY=_tB1+(y-_tB1)*alpha;break;
case 1:case 2:_sB1=Math.abs(bone.scaleX)*_zb2._Fc2(x);_tB1=Math.abs(bone.scaleY)*_zb2._Fc2(y);bone.scaleX=_sB1+(x-_sB1)*alpha;bone.scaleY=_tB1+(y-_tB1)*alpha;break;case 3:bone.scaleX+=(x-bone.data.scaleX)*alpha;bone.scaleY+=(y-bone.data.scaleY)*alpha;}}}}};var _Wb2=class  extends _fb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.scaleX+"|"+_ae2);this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;
if(time<frames[0]){switch(_QJ){case 0:bone.scaleX=bone.data.scaleX;return;case 1:bone.scaleX+=(bone.data.scaleX-bone.scaleX)*alpha;}return;}let x=this._5e2(time)*bone.data.scaleX;if(alpha==1){if(_QJ==3)bone.scaleX+=x-bone.data.scaleX;else bone.scaleX=x;}else {let _sB1=0;if(direction==1){switch(_QJ){case 0:_sB1=bone.data.scaleX;bone.scaleX=_sB1+(Math.abs(x)*_zb2._Fc2(_sB1)-_sB1)*alpha;break;case 1:case 2:_sB1=bone.scaleX;bone.scaleX=_sB1+(Math.abs(x)*_zb2._Fc2(_sB1)-_sB1)*alpha;break;case 3:bone.scaleX=(x-bone.data.scaleX)*alpha;
}}else {switch(_QJ){case 0:_sB1=Math.abs(bone.data.scaleX)*_zb2._Fc2(x);bone.scaleX=_sB1+(x-_sB1)*alpha;break;case 1:case 2:_sB1=Math.abs(bone.scaleX)*_zb2._Fc2(x);bone.scaleX=_sB1+(x-_sB1)*alpha;break;case 3:bone.scaleX+=(x-bone.data.scaleX)*alpha;}}}}};var _Xb2=class  extends _fb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.scaleY+"|"+_ae2);this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){
switch(_QJ){case 0:bone.scaleY=bone.data.scaleY;return;case 1:bone.scaleY+=(bone.data.scaleY-bone.scaleY)*alpha;}return;}let y=this._5e2(time)*bone.data.scaleY;if(alpha==1){if(_QJ==3)bone.scaleY+=y-bone.data.scaleY;else bone.scaleY=y;}else {let _tB1=0;if(direction==1){switch(_QJ){case 0:_tB1=bone.data.scaleY;bone.scaleY=_tB1+(Math.abs(y)*_zb2._Fc2(_tB1)-_tB1)*alpha;break;case 1:case 2:_tB1=bone.scaleY;bone.scaleY=_tB1+(Math.abs(y)*_zb2._Fc2(_tB1)-_tB1)*alpha;break;case 3:bone.scaleY=(y-bone.data.scaleY)*alpha;
}}else {switch(_QJ){case 0:_tB1=Math.abs(bone.data.scaleY)*_zb2._Fc2(y);bone.scaleY=_tB1+(y-_tB1)*alpha;break;case 1:case 2:_tB1=Math.abs(bone.scaleY)*_zb2._Fc2(y);bone.scaleY=_tB1+(y-_tB1)*alpha;break;case 3:bone.scaleY+=(y-bone.data.scaleY)*alpha;}}}}};var _Yb2=class  extends _gb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.shearX+"|"+_ae2,_Cd2.shearY+"|"+_ae2);this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;
if(time<frames[0]){switch(_QJ){case 0:bone.shearX=bone.data.shearX;bone.shearY=bone.data.shearY;return;case 1:bone.shearX+=(bone.data.shearX-bone.shearX)*alpha;bone.shearY+=(bone.data.shearY-bone.shearY)*alpha;}return;}let x=0,y=0;let i=_ac2.search(frames,time,3);let _6e2=this._Jd2[i/3];switch(_6e2){case 0:let _7e2=frames[i];x=frames[i+1];y=frames[i+2];let _s7=(time-_7e2)/(frames[i+3]-_7e2);x+=(frames[i+3+1]-x)*_s7;y+=(frames[i+3+2]-y)*_s7;break;case 1:x=frames[i+1];y=frames[i+2];break;default :x=this._1e2(time,
i,1,_6e2-2);y=this._1e2(time,i,2,_6e2+18-2);}switch(_QJ){case 0:bone.shearX=bone.data.shearX+x*alpha;bone.shearY=bone.data.shearY+y*alpha;break;case 1:case 2:bone.shearX+=(bone.data.shearX+x-bone.shearX)*alpha;bone.shearY+=(bone.data.shearY+y-bone.shearY)*alpha;break;case 3:bone.shearX+=x*alpha;bone.shearY+=y*alpha;}}};var _Zb2=class  extends _fb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.shearX+"|"+_ae2);this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];
if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:bone.shearX=bone.data.shearX;return;case 1:bone.shearX+=(bone.data.shearX-bone.shearX)*alpha;}return;}let x=this._5e2(time);switch(_QJ){case 0:bone.shearX=bone.data.shearX+x*alpha;break;case 1:case 2:bone.shearX+=(bone.data.shearX+x-bone.shearX)*alpha;break;case 3:bone.shearX+=x*alpha;}}};var __b2=class  extends _fb2{constructor(_o6,_Id2,_ae2){super(_o6,_Id2,_Cd2.shearY+"|"+_ae2);this._ae2=0;this._ae2=_ae2;}apply(skeleton,_fd2,
time,events,alpha,_QJ,direction){let bone=skeleton.bones[this._ae2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:bone.shearY=bone.data.shearY;return;case 1:bone.shearY+=(bone.data.shearY-bone.shearY)*alpha;}return;}let y=this._5e2(time);switch(_QJ){case 0:bone.shearY=bone.data.shearY+y*alpha;break;case 1:case 2:bone.shearY+=(bone.data.shearY+y-bone.shearY)*alpha;break;case 3:bone.shearY+=y*alpha;}}};var _Pb2=class  extends _eb2{constructor(_o6,_Id2,_S4){super(_o6,_Id2,[_Cd2.rgb+"|"+_S4,
_Cd2.alpha+"|"+_S4]);this._S4=0;this._S4=_S4;}_Ed2(){return 5;}_4e2(frame,time,_Y4,_Z4,__4,_05){frame*=5;this.frames[frame]=time;this.frames[frame+1]=_Y4;this.frames[frame+2]=_Z4;this.frames[frame+3]=__4;this.frames[frame+4]=_05;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let slot=skeleton.slots[this._S4];if(!slot.bone.active)return;let frames=this.frames;let color=slot.color;if(time<frames[0]){let setup=slot.data.color;switch(_QJ){case 0:color._16(setup);return;case 1:color.add((setup._Y4-color._Y4)*alpha,
(setup._Z4-color._Z4)*alpha,(setup.__4-color.__4)*alpha,(setup._05-color._05)*alpha);}return;}let _Y4=0,_Z4=0,__4=0,_05=0;let i=_ac2.search(frames,time,5);let _6e2=this._Jd2[i/5];switch(_6e2){case 0:let _7e2=frames[i];_Y4=frames[i+1];_Z4=frames[i+2];__4=frames[i+3];_05=frames[i+4];let _s7=(time-_7e2)/(frames[i+5]-_7e2);_Y4+=(frames[i+5+1]-_Y4)*_s7;_Z4+=(frames[i+5+2]-_Z4)*_s7;__4+=(frames[i+5+3]-__4)*_s7;_05+=(frames[i+5+4]-_05)*_s7;break;case 1:_Y4=frames[i+1];_Z4=frames[i+2];__4=frames[i+3];_05=frames[i+4];
break;default :_Y4=this._1e2(time,i,1,_6e2-2);_Z4=this._1e2(time,i,2,_6e2+18-2);__4=this._1e2(time,i,3,_6e2+18*2-2);_05=this._1e2(time,i,4,_6e2+18*3-2);}if(alpha==1)color.set(_Y4,_Z4,__4,_05);else {if(_QJ==0)color._16(slot.data.color);color.add((_Y4-color._Y4)*alpha,(_Z4-color._Z4)*alpha,(__4-color.__4)*alpha,(_05-color._05)*alpha);}}};var _Qb2=class  extends _eb2{constructor(_o6,_Id2,_S4){super(_o6,_Id2,[_Cd2.rgb+"|"+_S4]);this._S4=0;this._S4=_S4;}_Ed2(){return 4;}_4e2(frame,time,_Y4,_Z4,__4){frame<<=2;
this.frames[frame]=time;this.frames[frame+1]=_Y4;this.frames[frame+2]=_Z4;this.frames[frame+3]=__4;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let slot=skeleton.slots[this._S4];if(!slot.bone.active)return;let frames=this.frames;let color=slot.color;if(time<frames[0]){let setup=slot.data.color;switch(_QJ){case 0:color._Y4=setup._Y4;color._Z4=setup._Z4;color.__4=setup.__4;return;case 1:color._Y4+=(setup._Y4-color._Y4)*alpha;color._Z4+=(setup._Z4-color._Z4)*alpha;color.__4+=(setup.__4-color.__4)*alpha;
}return;}let _Y4=0,_Z4=0,__4=0;let i=_ac2.search(frames,time,4);let _6e2=this._Jd2[i>>2];switch(_6e2){case 0:let _7e2=frames[i];_Y4=frames[i+1];_Z4=frames[i+2];__4=frames[i+3];let _s7=(time-_7e2)/(frames[i+4]-_7e2);_Y4+=(frames[i+4+1]-_Y4)*_s7;_Z4+=(frames[i+4+2]-_Z4)*_s7;__4+=(frames[i+4+3]-__4)*_s7;break;case 1:_Y4=frames[i+1];_Z4=frames[i+2];__4=frames[i+3];break;default :_Y4=this._1e2(time,i,1,_6e2-2);_Z4=this._1e2(time,i,2,_6e2+18-2);__4=this._1e2(time,i,3,_6e2+18*2-2);}if(alpha==1){color._Y4=_Y4;color._Z4=_Z4;
color.__4=__4;}else {if(_QJ==0){let setup=slot.data.color;color._Y4=setup._Y4;color._Z4=setup._Z4;color.__4=setup.__4;}color._Y4+=(_Y4-color._Y4)*alpha;color._Z4+=(_Z4-color._Z4)*alpha;color.__4+=(__4-color.__4)*alpha;}}};var _3b2=class  extends _fb2{constructor(_o6,_Id2,_S4){super(_o6,_Id2,_Cd2.alpha+"|"+_S4);this._S4=0;this._S4=_S4;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let slot=skeleton.slots[this._S4];if(!slot.bone.active)return;let color=slot.color;if(time<this.frames[0]){let setup=slot.data.color;
switch(_QJ){case 0:color._05=setup._05;return;case 1:color._05+=(setup._05-color._05)*alpha;}return;}let _05=this._5e2(time);if(alpha==1)color._05=_05;else {if(_QJ==0)color._05=slot.data.color._05;color._05+=(_05-color._05)*alpha;}}};var _Ob2=class  extends _eb2{constructor(_o6,_Id2,_S4){super(_o6,_Id2,[_Cd2.rgb+"|"+_S4,_Cd2.alpha+"|"+_S4,_Cd2.rgb2+"|"+_S4]);this._S4=0;this._S4=_S4;}_Ed2(){return 8;}_4e2(frame,time,_Y4,_Z4,__4,_05,_9A,_bA,_xh){frame<<=3;this.frames[frame]=time;this.frames[frame+1]=_Y4;this.frames[frame+2]=_Z4;
this.frames[frame+3]=__4;this.frames[frame+4]=_05;this.frames[frame+5]=_9A;this.frames[frame+6]=_bA;this.frames[frame+7]=_xh;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let slot=skeleton.slots[this._S4];if(!slot.bone.active)return;let frames=this.frames;let light=slot.color,dark=slot._ib;if(time<frames[0]){let _be2=slot.data.color,_ce2=slot.data._ib;switch(_QJ){case 0:light._16(_be2);dark._Y4=_ce2._Y4;dark._Z4=_ce2._Z4;dark.__4=_ce2.__4;return;case 1:light.add((_be2._Y4-light._Y4)*alpha,(_be2._Z4-light._Z4)*alpha,
(_be2.__4-light.__4)*alpha,(_be2._05-light._05)*alpha);dark._Y4+=(_ce2._Y4-dark._Y4)*alpha;dark._Z4+=(_ce2._Z4-dark._Z4)*alpha;dark.__4+=(_ce2.__4-dark.__4)*alpha;}return;}let _Y4=0,_Z4=0,__4=0,_05=0,_9A=0,_bA=0,_xh=0;let i=_ac2.search(frames,time,8);let _6e2=this._Jd2[i>>3];switch(_6e2){case 0:let _7e2=frames[i];_Y4=frames[i+1];_Z4=frames[i+2];__4=frames[i+3];_05=frames[i+4];_9A=frames[i+5];_bA=frames[i+6];_xh=frames[i+7];let _s7=(time-_7e2)/(frames[i+8]-_7e2);_Y4+=(frames[i+8+1]-_Y4)*_s7;_Z4+=(frames[i+8+2]-_Z4)*_s7;
__4+=(frames[i+8+3]-__4)*_s7;_05+=(frames[i+8+4]-_05)*_s7;_9A+=(frames[i+8+5]-_9A)*_s7;_bA+=(frames[i+8+6]-_bA)*_s7;_xh+=(frames[i+8+7]-_xh)*_s7;break;case 1:_Y4=frames[i+1];_Z4=frames[i+2];__4=frames[i+3];_05=frames[i+4];_9A=frames[i+5];_bA=frames[i+6];_xh=frames[i+7];break;default :_Y4=this._1e2(time,i,1,_6e2-2);_Z4=this._1e2(time,i,2,_6e2+18-2);__4=this._1e2(time,i,3,_6e2+18*2-2);_05=this._1e2(time,i,4,_6e2+18*3-2);_9A=this._1e2(time,i,5,_6e2+18*4-2);_bA=this._1e2(time,i,6,_6e2+18*5-2);_xh=this._1e2(time,
i,7,_6e2+18*6-2);}if(alpha==1){light.set(_Y4,_Z4,__4,_05);dark._Y4=_9A;dark._Z4=_bA;dark.__4=_xh;}else {if(_QJ==0){light._16(slot.data.color);let _ce2=slot.data._ib;dark._Y4=_ce2._Y4;dark._Z4=_ce2._Z4;dark.__4=_ce2.__4;}light.add((_Y4-light._Y4)*alpha,(_Z4-light._Z4)*alpha,(__4-light.__4)*alpha,(_05-light._05)*alpha);dark._Y4+=(_9A-dark._Y4)*alpha;dark._Z4+=(_bA-dark._Z4)*alpha;dark.__4+=(_xh-dark.__4)*alpha;}}};var _Nb2=class  extends _eb2{constructor(_o6,_Id2,_S4){super(_o6,_Id2,[_Cd2.rgb+"|"+_S4,_Cd2.rgb2+"|"+_S4]);
this._S4=0;this._S4=_S4;}_Ed2(){return 7;}_4e2(frame,time,_Y4,_Z4,__4,_9A,_bA,_xh){frame*=7;this.frames[frame]=time;this.frames[frame+1]=_Y4;this.frames[frame+2]=_Z4;this.frames[frame+3]=__4;this.frames[frame+4]=_9A;this.frames[frame+5]=_bA;this.frames[frame+6]=_xh;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let slot=skeleton.slots[this._S4];if(!slot.bone.active)return;let frames=this.frames;let light=slot.color,dark=slot._ib;if(time<frames[0]){let _be2=slot.data.color,_ce2=slot.data._ib;switch(_QJ){
case 0:light._Y4=_be2._Y4;light._Z4=_be2._Z4;light.__4=_be2.__4;dark._Y4=_ce2._Y4;dark._Z4=_ce2._Z4;dark.__4=_ce2.__4;return;case 1:light._Y4+=(_be2._Y4-light._Y4)*alpha;light._Z4+=(_be2._Z4-light._Z4)*alpha;light.__4+=(_be2.__4-light.__4)*alpha;dark._Y4+=(_ce2._Y4-dark._Y4)*alpha;dark._Z4+=(_ce2._Z4-dark._Z4)*alpha;dark.__4+=(_ce2.__4-dark.__4)*alpha;}return;}let _Y4=0,_Z4=0,__4=0,_05=0,_9A=0,_bA=0,_xh=0;let i=_ac2.search(frames,time,7);let _6e2=this._Jd2[i/7];switch(_6e2){case 0:let _7e2=frames[i];_Y4=frames[i+1];
_Z4=frames[i+2];__4=frames[i+3];_9A=frames[i+4];_bA=frames[i+5];_xh=frames[i+6];let _s7=(time-_7e2)/(frames[i+7]-_7e2);_Y4+=(frames[i+7+1]-_Y4)*_s7;_Z4+=(frames[i+7+2]-_Z4)*_s7;__4+=(frames[i+7+3]-__4)*_s7;_9A+=(frames[i+7+4]-_9A)*_s7;_bA+=(frames[i+7+5]-_bA)*_s7;_xh+=(frames[i+7+6]-_xh)*_s7;break;case 1:_Y4=frames[i+1];_Z4=frames[i+2];__4=frames[i+3];_9A=frames[i+4];_bA=frames[i+5];_xh=frames[i+6];break;default :_Y4=this._1e2(time,i,1,_6e2-2);_Z4=this._1e2(time,i,2,_6e2+18-2);__4=this._1e2(time,i,
3,_6e2+18*2-2);_9A=this._1e2(time,i,4,_6e2+18*3-2);_bA=this._1e2(time,i,5,_6e2+18*4-2);_xh=this._1e2(time,i,6,_6e2+18*5-2);}if(alpha==1){light._Y4=_Y4;light._Z4=_Z4;light.__4=__4;dark._Y4=_9A;dark._Z4=_bA;dark.__4=_xh;}else {if(_QJ==0){let _be2=slot.data.color,_ce2=slot.data._ib;light._Y4=_be2._Y4;light._Z4=_be2._Z4;light.__4=_be2.__4;dark._Y4=_ce2._Y4;dark._Z4=_ce2._Z4;dark.__4=_ce2.__4;}light._Y4+=(_Y4-light._Y4)*alpha;light._Z4+=(_Z4-light._Z4)*alpha;light.__4+=(__4-light.__4)*alpha;dark._Y4+=(_9A-dark._Y4)*alpha;
dark._Z4+=(_bA-dark._Z4)*alpha;dark.__4+=(_xh-dark.__4)*alpha;}}};var _8b2=class  extends _ac2{constructor(_o6,_S4){super(_o6,[_Cd2.attachment+"|"+_S4]);this._S4=0;this._S4=_S4;this._qc=new Array(_o6);}_Fd2(){return this.frames.length;}_4e2(frame,time,_oc){this.frames[frame]=time;this._qc[frame]=_oc;}apply(skeleton,_fd2,time,events,alpha,_QJ,direction){let slot=skeleton.slots[this._S4];if(!slot.bone.active)return;if(direction==1){if(_QJ==0)this._R4(skeleton,slot,slot.data._oc);return;}if(time<this.frames[0]){
if(_QJ==0||_QJ==1)this._R4(skeleton,slot,slot.data._oc);return;}this._R4(skeleton,slot,this._qc[_ac2._Hd2(this.frames,time)]);}_R4(skeleton,slot,_oc){slot._R4(!_oc?null:skeleton._U4(this._S4,_oc));}};var _ib2=class  extends _eb2{constructor(_o6,_Id2,_S4,attachment){super(_o6,_Id2,[_Cd2.deform+"|"+_S4+"|"+attachment.id]);this._S4=0;this._S4=_S4;this.attachment=attachment;this.vertices=new Array(_o6);}_Fd2(){return this.frames.length;}_4e2(frame,time,vertices){this.frames[frame]=time;this.vertices[frame]=vertices;
}_Od2(_Pd2,frame,value,_Lv,_Qd2,_Rd2,_Sd2,_Td2,_Ud2,_Mv,_Vd2){let _Jd2=this._Jd2;let i=this._Fd2()+_Pd2*18;if(value==0)_Jd2[frame]=2+i;let _Wd2=(_Lv-_Rd2*2+_Td2)*0.03,_Xd2=_Ud2*0.03-_Sd2*0.06;let _Yd2=((_Rd2-_Td2)*3-_Lv+_Mv)*6e-3,_Zd2=(_Sd2-_Ud2+0.33333333)*0.018;let __d2=_Wd2*2+_Yd2,_0e2=_Xd2*2+_Zd2;let __b=(_Rd2-_Lv)*0.3+_Wd2+_Yd2*0.16666667,_0c=_Sd2*0.3+_Xd2+_Zd2*0.16666667;let x=_Lv+__b,y=_0c;for(let _c7=i+18;i<_c7;i+=2){_Jd2[i]=x;_Jd2[i+1]=y;__b+=__d2;_0c+=_0e2;__d2+=_Yd2;_0e2+=_Zd2;x+=__b;y+=_0c;}
}_de2(time,frame){let _Jd2=this._Jd2;let i=_Jd2[frame];switch(i){case 0:let _h7=this.frames[frame];return(time-_h7)/(this.frames[frame+this._Ed2()]-_h7);case 1:return 0;}i-=2;if(_Jd2[i]>time){let _h7=this.frames[frame];return _Jd2[i+1]*(time-_h7)/(_Jd2[i]-_h7);}let _c7=i+18;for(i+=2;i<_c7;i+=2){if(_Jd2[i]>=time){let _h7=_Jd2[i-2],_i7=_Jd2[i-1];return _i7+(time-_h7)/(_Jd2[i]-_h7)*(_Jd2[i+1]-_i7);}}let x=_Jd2[_c7-2],y=_Jd2[_c7-1];return y+(1-y)*(time-x)/(this.frames[frame+this._Ed2()]-x);}apply(skeleton,_fd2,time,
_ee2,alpha,_QJ,direction){let slot=skeleton.slots[this._S4];if(!slot.bone.active)return;let _fe2=slot._U4();if(!(_fe2 instanceof _mc2)||_fe2._od2!=this.attachment)return;let deform=slot.deform;if(deform.length==0)_QJ=0;let vertices=this.vertices;let vertexCount=vertices[0].length;let frames=this.frames;if(time<frames[0]){let _ge2=_fe2;switch(_QJ){case 0:deform.length=0;return;case 1:if(alpha==1){deform.length=0;return;}deform.length=vertexCount;if(!_ge2.bones){let _he2=_ge2.vertices;for(var i=0;i<vertexCount;
i++)deform[i]+=(_he2[i]-deform[i])*alpha;}else {alpha=1-alpha;for(var i=0;i<vertexCount;i++)deform[i]*=alpha;}}return;}deform.length=vertexCount;if(time>=frames[frames.length-1]){let _ie2=vertices[frames.length-1];if(alpha==1){if(_QJ==3){let _ge2=_fe2;if(!_ge2.bones){let _he2=_ge2.vertices;for(let _wn1=0;_wn1<vertexCount;_wn1++)deform[_wn1]+=_ie2[_wn1]-_he2[_wn1];}else {for(let _wn1=0;_wn1<vertexCount;_wn1++)deform[_wn1]+=_ie2[_wn1];}}else _kc2._Pc2(_ie2,0,deform,0,vertexCount);}else {switch(_QJ){case 0:{let _je2=_fe2;
if(!_je2.bones){let _he2=_je2.vertices;for(let _wn1=0;_wn1<vertexCount;_wn1++){let setup=_he2[_wn1];deform[_wn1]=setup+(_ie2[_wn1]-setup)*alpha;}}else {for(let _wn1=0;_wn1<vertexCount;_wn1++)deform[_wn1]=_ie2[_wn1]*alpha;}break;}case 1:case 2:for(let _wn1=0;_wn1<vertexCount;_wn1++)deform[_wn1]+=(_ie2[_wn1]-deform[_wn1])*alpha;break;case 3:let _ge2=_fe2;if(!_ge2.bones){let _he2=_ge2.vertices;for(let _wn1=0;_wn1<vertexCount;_wn1++)deform[_wn1]+=(_ie2[_wn1]-_he2[_wn1])*alpha;}else {for(let _wn1=0;_wn1<vertexCount;
_wn1++)deform[_wn1]+=_ie2[_wn1]*alpha;}}}return;}let frame=_ac2._Hd2(frames,time);let _ke2=this._de2(time,frame);let _le2=vertices[frame];let _me2=vertices[frame+1];if(alpha==1){if(_QJ==3){let _ge2=_fe2;if(!_ge2.bones){let _he2=_ge2.vertices;for(let _wn1=0;_wn1<vertexCount;_wn1++){let _Xk=_le2[_wn1];deform[_wn1]+=_Xk+(_me2[_wn1]-_Xk)*_ke2-_he2[_wn1];}}else {for(let _wn1=0;_wn1<vertexCount;_wn1++){let _Xk=_le2[_wn1];deform[_wn1]+=_Xk+(_me2[_wn1]-_Xk)*_ke2;}}}else {for(let _wn1=0;_wn1<vertexCount;_wn1++){let _Xk=_le2[_wn1];
deform[_wn1]=_Xk+(_me2[_wn1]-_Xk)*_ke2;}}}else {switch(_QJ){case 0:{let _je2=_fe2;if(!_je2.bones){let _he2=_je2.vertices;for(let _wn1=0;_wn1<vertexCount;_wn1++){let _Xk=_le2[_wn1],setup=_he2[_wn1];deform[_wn1]=setup+(_Xk+(_me2[_wn1]-_Xk)*_ke2-setup)*alpha;}}else {for(let _wn1=0;_wn1<vertexCount;_wn1++){let _Xk=_le2[_wn1];deform[_wn1]=(_Xk+(_me2[_wn1]-_Xk)*_ke2)*alpha;}}break;}case 1:case 2:for(let _wn1=0;_wn1<vertexCount;_wn1++){let _Xk=_le2[_wn1];deform[_wn1]+=(_Xk+(_me2[_wn1]-_Xk)*_ke2-deform[_wn1])*alpha;
}break;case 3:let _ge2=_fe2;if(!_ge2.bones){let _he2=_ge2.vertices;for(let _wn1=0;_wn1<vertexCount;_wn1++){let _Xk=_le2[_wn1];deform[_wn1]+=(_Xk+(_me2[_wn1]-_Xk)*_ke2-_he2[_wn1])*alpha;}}else {for(let _wn1=0;_wn1<vertexCount;_wn1++){let _Xk=_le2[_wn1];deform[_wn1]+=(_Xk+(_me2[_wn1]-_Xk)*_ke2)*alpha;}}}}}};var _ne2=class  extends _ac2{constructor(_o6){super(_o6,_ne2._Dd2);this.events=new Array(_o6);}_Fd2(){return this.frames.length;}_4e2(frame,event){this.frames[frame]=event.time;this.events[frame]=event;}apply(skeleton,
_fd2,time,_ee2,alpha,_QJ,direction){if(!_ee2)return;let frames=this.frames;let _o6=this.frames.length;if(_fd2>time){this.apply(skeleton,_fd2,Number.MAX_VALUE,_ee2,alpha,_QJ,direction);_fd2=-1;}else if(_fd2>=frames[_o6-1])return;if(time<frames[0])return;let i=0;if(_fd2<frames[0])i=0;else {i=_ac2._Hd2(frames,_fd2)+1;let _gd2=frames[i];while(i>0){if(frames[i-1]!=_gd2)break;i--;}}for(;i<_o6&&time>=frames[i];i++)_ee2.push(this.events[i]);}};var _w8=_ne2;_w8._Dd2=[""+_Cd2.event];var _oe2=class  extends _ac2{constructor(_o6){
super(_o6,_oe2._Dd2);this._pe2=new Array(_o6);}_Fd2(){return this.frames.length;}_4e2(frame,time,drawOrder){this.frames[frame]=time;this._pe2[frame]=drawOrder;}apply(skeleton,_fd2,time,_ee2,alpha,_QJ,direction){if(direction==1){if(_QJ==0)_kc2._Pc2(skeleton.slots,0,skeleton.drawOrder,0,skeleton.slots.length);return;}if(time<this.frames[0]){if(_QJ==0||_QJ==1)_kc2._Pc2(skeleton.slots,0,skeleton.drawOrder,0,skeleton.slots.length);return;}let _qe2=this._pe2[_ac2._Hd2(this.frames,time)];if(!_qe2)_kc2._Pc2(skeleton.slots,
0,skeleton.drawOrder,0,skeleton.slots.length);else {let drawOrder=skeleton.drawOrder;let slots=skeleton.slots;for(let i=0,_c7=_qe2.length;i<_c7;i++)drawOrder[i]=slots[_qe2[i]];}}};var _kb2=_oe2;_kb2._Dd2=[""+_Cd2.drawOrder];var _vb2=class  extends _eb2{constructor(_o6,_Id2,_re2){super(_o6,_Id2,[_Cd2.ikConstraint+"|"+_re2]);this._re2=_re2;}_Ed2(){return 6;}_4e2(frame,time,mix,_se2,_te2,compress,stretch){frame*=6;this.frames[frame]=time;this.frames[frame+1]=mix;this.frames[frame+2]=_se2;this.frames[frame+3]=_te2;
this.frames[frame+4]=compress?1:0;this.frames[frame+5]=stretch?1:0;}apply(skeleton,_fd2,time,_ee2,alpha,_QJ,direction){let _ue2=skeleton._ve2[this._re2];if(!_ue2.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:_ue2.mix=_ue2.data.mix;_ue2._se2=_ue2.data._se2;_ue2._te2=_ue2.data._te2;_ue2.compress=_ue2.data.compress;_ue2.stretch=_ue2.data.stretch;return;case 1:_ue2.mix+=(_ue2.data.mix-_ue2.mix)*alpha;_ue2._se2+=(_ue2.data._se2-_ue2._se2)*alpha;_ue2._te2=_ue2.data._te2;_ue2.compress=_ue2.data.compress;
_ue2.stretch=_ue2.data.stretch;}return;}let mix=0,_se2=0;let i=_ac2.search(frames,time,6);let _6e2=this._Jd2[i/6];switch(_6e2){case 0:let _7e2=frames[i];mix=frames[i+1];_se2=frames[i+2];let _s7=(time-_7e2)/(frames[i+6]-_7e2);mix+=(frames[i+6+1]-mix)*_s7;_se2+=(frames[i+6+2]-_se2)*_s7;break;case 1:mix=frames[i+1];_se2=frames[i+2];break;default :mix=this._1e2(time,i,1,_6e2-2);_se2=this._1e2(time,i,2,_6e2+18-2);}if(_QJ==0){_ue2.mix=_ue2.data.mix+(mix-_ue2.data.mix)*alpha;_ue2._se2=_ue2.data._se2+(_se2-_ue2.data._se2)*alpha;
if(direction==1){_ue2._te2=_ue2.data._te2;_ue2.compress=_ue2.data.compress;_ue2.stretch=_ue2.data.stretch;}else {_ue2._te2=frames[i+3];_ue2.compress=frames[i+4]!=0;_ue2.stretch=frames[i+5]!=0;}}else {_ue2.mix+=(mix-_ue2.mix)*alpha;_ue2._se2+=(_se2-_ue2._se2)*alpha;if(direction==0){_ue2._te2=frames[i+3];_ue2.compress=frames[i+4]!=0;_ue2.stretch=frames[i+5]!=0;}}}};var _ec2=class  extends _eb2{constructor(_o6,_Id2,_we2){super(_o6,_Id2,[_Cd2.transformConstraint+"|"+_we2]);this._we2=_we2;}_Ed2(){return 7;}
_4e2(frame,time,_xe2,_ye2,_ze2,_Ae2,_Be2,_Ce2){let frames=this.frames;frame*=7;frames[frame]=time;frames[frame+1]=_xe2;frames[frame+2]=_ye2;frames[frame+3]=_ze2;frames[frame+4]=_Ae2;frames[frame+5]=_Be2;frames[frame+6]=_Ce2;}apply(skeleton,_fd2,time,_ee2,alpha,_QJ,direction){let _ue2=skeleton._De2[this._we2];if(!_ue2.active)return;let frames=this.frames;if(time<frames[0]){let data=_ue2.data;switch(_QJ){case 0:_ue2._xe2=data._xe2;_ue2._ye2=data._ye2;_ue2._ze2=data._ze2;_ue2._Ae2=data._Ae2;_ue2._Be2=data._Be2;
_ue2._Ce2=data._Ce2;return;case 1:_ue2._xe2+=(data._xe2-_ue2._xe2)*alpha;_ue2._ye2+=(data._ye2-_ue2._ye2)*alpha;_ue2._ze2+=(data._ze2-_ue2._ze2)*alpha;_ue2._Ae2+=(data._Ae2-_ue2._Ae2)*alpha;_ue2._Be2+=(data._Be2-_ue2._Be2)*alpha;_ue2._Ce2+=(data._Ce2-_ue2._Ce2)*alpha;}return;}let rotate,x,y,scaleX,scaleY,shearY;let i=_ac2.search(frames,time,7);let _6e2=this._Jd2[i/7];switch(_6e2){case 0:let _7e2=frames[i];rotate=frames[i+1];x=frames[i+2];y=frames[i+3];scaleX=frames[i+4];scaleY=frames[i+5];shearY=frames[i+6];
let _s7=(time-_7e2)/(frames[i+7]-_7e2);rotate+=(frames[i+7+1]-rotate)*_s7;x+=(frames[i+7+2]-x)*_s7;y+=(frames[i+7+3]-y)*_s7;scaleX+=(frames[i+7+4]-scaleX)*_s7;scaleY+=(frames[i+7+5]-scaleY)*_s7;shearY+=(frames[i+7+6]-shearY)*_s7;break;case 1:rotate=frames[i+1];x=frames[i+2];y=frames[i+3];scaleX=frames[i+4];scaleY=frames[i+5];shearY=frames[i+6];break;default :rotate=this._1e2(time,i,1,_6e2-2);x=this._1e2(time,i,2,_6e2+18-2);y=this._1e2(time,i,3,_6e2+18*2-2);scaleX=this._1e2(time,i,4,_6e2+18*3-2);scaleY=this._1e2(time,
i,5,_6e2+18*4-2);shearY=this._1e2(time,i,6,_6e2+18*5-2);}if(_QJ==0){let data=_ue2.data;_ue2._xe2=data._xe2+(rotate-data._xe2)*alpha;_ue2._ye2=data._ye2+(x-data._ye2)*alpha;_ue2._ze2=data._ze2+(y-data._ze2)*alpha;_ue2._Ae2=data._Ae2+(scaleX-data._Ae2)*alpha;_ue2._Be2=data._Be2+(scaleY-data._Be2)*alpha;_ue2._Ce2=data._Ce2+(shearY-data._Ce2)*alpha;}else {_ue2._xe2+=(rotate-_ue2._xe2)*alpha;_ue2._ye2+=(x-_ue2._ye2)*alpha;_ue2._ze2+=(y-_ue2._ze2)*alpha;_ue2._Ae2+=(scaleX-_ue2._Ae2)*alpha;_ue2._Be2+=(scaleY-_ue2._Be2)*alpha;
_ue2._Ce2+=(shearY-_ue2._Ce2)*alpha;}}};var _Gb2=class  extends _fb2{constructor(_o6,_Id2,_Ee2){super(_o6,_Id2,_Cd2.pathConstraintPosition+"|"+_Ee2);this._Ee2=_Ee2;}apply(skeleton,_fd2,time,_ee2,alpha,_QJ,direction){let _ue2=skeleton._Fe2[this._Ee2];if(!_ue2.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:_ue2.position=_ue2.data.position;return;case 1:_ue2.position+=(_ue2.data.position-_ue2.position)*alpha;}return;}let position=this._5e2(time);if(_QJ==0)_ue2.position=_ue2.data.position+(position-_ue2.data.position)*alpha;
else _ue2.position+=(position-_ue2.position)*alpha;}};var _Hb2=class  extends _fb2{constructor(_o6,_Id2,_Ee2){super(_o6,_Id2,_Cd2.pathConstraintSpacing+"|"+_Ee2);this._Ee2=0;this._Ee2=_Ee2;}apply(skeleton,_fd2,time,_ee2,alpha,_QJ,direction){let _ue2=skeleton._Fe2[this._Ee2];if(!_ue2.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){case 0:_ue2.spacing=_ue2.data.spacing;return;case 1:_ue2.spacing+=(_ue2.data.spacing-_ue2.spacing)*alpha;}return;}let spacing=this._5e2(time);if(_QJ==0)_ue2.spacing=_ue2.data.spacing+(spacing-_ue2.data.spacing)*alpha;
else _ue2.spacing+=(spacing-_ue2.spacing)*alpha;}};var _Fb2=class  extends _eb2{constructor(_o6,_Id2,_Ee2){super(_o6,_Id2,[_Cd2.pathConstraintMix+"|"+_Ee2]);this._Ee2=0;this._Ee2=_Ee2;}_Ed2(){return 4;}_4e2(frame,time,_xe2,_ye2,_ze2){let frames=this.frames;frame<<=2;frames[frame]=time;frames[frame+1]=_xe2;frames[frame+2]=_ye2;frames[frame+3]=_ze2;}apply(skeleton,_fd2,time,_ee2,alpha,_QJ,direction){let _ue2=skeleton._Fe2[this._Ee2];if(!_ue2.active)return;let frames=this.frames;if(time<frames[0]){switch(_QJ){
case 0:_ue2._xe2=_ue2.data._xe2;_ue2._ye2=_ue2.data._ye2;_ue2._ze2=_ue2.data._ze2;return;case 1:_ue2._xe2+=(_ue2.data._xe2-_ue2._xe2)*alpha;_ue2._ye2+=(_ue2.data._ye2-_ue2._ye2)*alpha;_ue2._ze2+=(_ue2.data._ze2-_ue2._ze2)*alpha;}return;}let rotate,x,y;let i=_ac2.search(frames,time,4);let _6e2=this._Jd2[i>>2];switch(_6e2){case 0:let _7e2=frames[i];rotate=frames[i+1];x=frames[i+2];y=frames[i+3];let _s7=(time-_7e2)/(frames[i+4]-_7e2);rotate+=(frames[i+4+1]-rotate)*_s7;x+=(frames[i+4+2]-x)*_s7;y+=(frames[i+4+3]-y)*_s7;
break;case 1:rotate=frames[i+1];x=frames[i+2];y=frames[i+3];break;default :rotate=this._1e2(time,i,1,_6e2-2);x=this._1e2(time,i,2,_6e2+18-2);y=this._1e2(time,i,3,_6e2+18*2-2);}if(_QJ==0){let data=_ue2.data;_ue2._xe2=data._xe2+(rotate-data._xe2)*alpha;_ue2._ye2=data._ye2+(x-data._ye2)*alpha;_ue2._ze2=data._ze2+(y-data._ze2)*alpha;}else {_ue2._xe2+=(rotate-_ue2._xe2)*alpha;_ue2._ye2+=(x-_ue2._ye2)*alpha;_ue2._ze2+=(y-_ue2._ze2)*alpha;}}};var _V3=class {constructor(data){this.tracks=new Array();this._Ge2=1;
this._He2=0;this.events=new Array();this._Ie2=new Array();this._ul=new _mb2(this);this._Je2=new _6c2();this._Ke2=false;this._Le2=new _Jb2(()=>new _bc2());this.data=data;}static _Me2(){if(!_Ne2)_Ne2=new _4b2("<empty>",[],0);return _Ne2;}_v6(_2i){_2i*=this._Ge2;let tracks=this.tracks;for(let i=0,_c7=tracks.length;i<_c7;i++){let current=tracks[i];if(!current)continue;current._Oe2=current._Pe2;current._Qe2=current._Re2;let _Se2=_2i*current._Ge2;if(current._bO1>0){current._bO1-=_Se2;if(current._bO1>0)continue;_Se2=-current._bO1;
current._bO1=0;}let _Zk=current._Zk;if(_Zk){let _Te2=current._Qe2-_Zk._bO1;if(_Te2>=0){_Zk._bO1=0;_Zk._q4+=current._Ge2==0?0:(_Te2/current._Ge2+_2i)*_Zk._Ge2;current._q4+=_Se2;this._Ue2(i,_Zk,true);while(_Zk._Ve2){_Zk._We2+=_2i;_Zk=_Zk._Ve2;}continue;}}else if(current._Qe2>=current._Xe2&&!current._Ve2){tracks[i]=null;this._ul.end(current);this._Ye2(current);continue;}if(current._Ve2&&this._Ze2(current,_2i)){let from=current._Ve2;current._Ve2=null;if(from)from.__e2=null;while(from){this._ul.end(from);
from=from._Ve2;}}current._q4+=_Se2;}this._ul._0f2();}_Ze2(_011,_2i){let from=_011._Ve2;if(!from)return true;let _pN=this._Ze2(from,_2i);from._Oe2=from._Pe2;from._Qe2=from._Re2;if(_011._We2>0&&_011._We2>=_011._1f2){if(from._2f2==0||_011._1f2==0){_011._Ve2=from._Ve2;if(from._Ve2)from._Ve2.__e2=_011;_011._3f2=from._3f2;this._ul.end(from);}return _pN;}from._q4+=_2i*from._Ge2;_011._We2+=_2i;return false;}apply(skeleton){if(!skeleton)throw new Error("skeleton cannot be null.");if(this._Ke2)this._4f2();let events=this.events;
let tracks=this.tracks;let _5f2=false;for(let _wn1=0,_6f2=tracks.length;_wn1<_6f2;_wn1++){let current=tracks[_wn1];if(!current||current._bO1>0)continue;_5f2=true;let _QJ=_wn1==0?_Ab2.first:current._7f2;let mix=current.alpha;if(current._Ve2)mix*=this._8f2(current,skeleton,_QJ);else if(current._q4>=current._Xe2&&!current._Zk)mix=0;let _Oe2=current._Oe2,_9f2=current._af2(),_bf2=_9f2;let _cf2=events;if(current.reverse){_bf2=current._i4.duration-_bf2;_cf2=null;}let _s6=current._i4._s6;let _r6=_s6.length;if(_wn1==0&&mix==1||_QJ==_Ab2.add){
for(let _Tx=0;_Tx<_r6;_Tx++){_kc2._4d2(mix,_QJ);var _sA=_s6[_Tx];if(_sA instanceof _8b2)this._df2(_sA,skeleton,_bf2,_QJ,true);else _sA.apply(skeleton,_Oe2,_bf2,_cf2,mix,_QJ,_Bb2.mixIn);}}else {let _ef2=current._ef2;let _jO1=current._ff2.length!=_r6<<1;if(_jO1)current._ff2.length=_r6<<1;for(let _Tx=0;_Tx<_r6;_Tx++){let _gf2=_s6[_Tx];let _hf2=_ef2[_Tx]==_Ub2?_QJ:_Ab2.setup;if(_gf2 instanceof _Sb2){this._if2(_gf2,skeleton,_bf2,mix,_hf2,current._ff2,_Tx<<1,_jO1);}else if(_gf2 instanceof _8b2){this._df2(_gf2,skeleton,
_bf2,_QJ,true);}else {_kc2._4d2(mix,_QJ);_gf2.apply(skeleton,_Oe2,_bf2,_cf2,mix,_hf2,_Bb2.mixIn);}}}this._jf2(current,_9f2);events.length=0;current._Pe2=_9f2;current._Re2=current._q4;}var _kf2=this._He2+_Tb2;var slots=skeleton.slots;for(var i=0,_c7=skeleton.slots.length;i<_c7;i++){var slot=slots[i];if(slot._lf2==_kf2){var _oc=slot.data._oc;slot._R4(!_oc?null:skeleton._U4(slot.data.index,_oc));}}this._He2+=2;this._ul._0f2();return _5f2;}_8f2(_011,skeleton,_QJ){let from=_011._Ve2;if(from._Ve2)this._8f2(from,
skeleton,_QJ);let mix=0;if(_011._1f2==0){mix=1;if(_QJ==_Ab2.first)_QJ=_Ab2.setup;}else {mix=_011._We2/_011._1f2;if(mix>1)mix=1;if(_QJ!=_Ab2.first)_QJ=from._7f2;}let attachments=mix<from._mf2,drawOrder=mix<from._nf2;let _s6=from._i4._s6;let _r6=_s6.length;let _of2=from.alpha*_011._3f2,_pf2=_of2*(1-mix);let _Oe2=from._Oe2,_9f2=from._af2(),_bf2=_9f2;let events=null;if(from.reverse)_bf2=from._i4.duration-_bf2;else if(mix<from._qf2)events=this.events;if(_QJ==_Ab2.add){for(let i=0;i<_r6;i++)_s6[i].apply(skeleton,
_Oe2,_bf2,events,_pf2,_QJ,_Bb2.mixOut);}else {let _ef2=from._ef2;let _rf2=from._rf2;let _jO1=from._ff2.length!=_r6<<1;if(_jO1)from._ff2.length=_r6<<1;from._2f2=0;for(let i=0;i<_r6;i++){let _sA=_s6[i];let direction=_Bb2.mixOut;let _hf2;let alpha=0;switch(_ef2[i]){case _Ub2:if(!drawOrder&&_sA instanceof _kb2)continue;_hf2=_QJ;alpha=_pf2;break;case _ob2:_hf2=_Ab2.setup;alpha=_pf2;break;case _sb2:_hf2=_QJ;alpha=_of2;break;case _qb2:_hf2=_Ab2.setup;alpha=_of2;break;default :_hf2=_Ab2.setup;let _sf2=_rf2[i];alpha=_of2*Math.max(0,
1-_sf2._We2/_sf2._1f2);break;}from._2f2+=alpha;if(_sA instanceof _Sb2)this._if2(_sA,skeleton,_bf2,alpha,_hf2,from._ff2,i<<1,_jO1);else if(_sA instanceof _8b2)this._df2(_sA,skeleton,_bf2,_hf2,attachments);else {_kc2._4d2(alpha,_QJ);if(drawOrder&&_sA instanceof _kb2&&_hf2==_Ab2.setup)direction=_Bb2.mixIn;_sA.apply(skeleton,_Oe2,_bf2,events,alpha,_hf2,direction);}}}if(_011._1f2>0)this._jf2(from,_9f2);this.events.length=0;from._Pe2=_9f2;from._Re2=from._q4;return mix;}_df2(_sA,skeleton,time,_QJ,attachments){var slot=skeleton.slots[_sA._S4];
if(!slot.bone.active)return;if(time<_sA.frames[0]){if(_QJ==_Ab2.setup||_QJ==_Ab2.first)this._R4(skeleton,slot,slot.data._oc,attachments);}else this._R4(skeleton,slot,_sA._qc[_ac2._Hd2(_sA.frames,time)],attachments);if(slot._lf2<=this._He2)slot._lf2=this._He2+_Tb2;}_R4(skeleton,slot,_oc,attachments){slot._R4(!_oc?null:skeleton._U4(slot.data.index,_oc));if(attachments)slot._lf2=this._He2+_cb2;}_if2(_sA,skeleton,time,alpha,_QJ,_ff2,i,_jO1){if(_jO1)_ff2[i]=0;if(alpha==1){_sA.apply(skeleton,0,time,null,
1,_QJ,_Bb2.mixIn);return;}let bone=skeleton.bones[_sA._ae2];if(!bone.active)return;let frames=_sA.frames;let _8A=0,_9A=0;if(time<frames[0]){switch(_QJ){case _Ab2.setup:bone.rotation=bone.data.rotation;default :return;case _Ab2.first:_8A=bone.rotation;_9A=bone.data.rotation;}}else {_8A=_QJ==_Ab2.setup?bone.data.rotation:bone.rotation;_9A=bone.data.rotation+_sA._5e2(time);}let _M81=0,_9w=_9A-_8A;_9w-=(16384-(16384.499999999996-_9w/360|0))*360;if(_9w==0){_M81=_ff2[i];}else {let _tf2=0,_uf2=0;if(_jO1){_tf2=0;
_uf2=_9w;}else {_tf2=_ff2[i];_uf2=_ff2[i+1];}let current=_9w>0,dir=_tf2>=0;if(_zb2._Fc2(_uf2)!=_zb2._Fc2(_9w)&&Math.abs(_uf2)<=90){if(Math.abs(_tf2)>180)_tf2+=360*_zb2._Fc2(_tf2);dir=current;}_M81=_9w+_tf2-_tf2%360;if(dir!=current)_M81+=360*_zb2._Fc2(_tf2);_ff2[i]=_M81;}_ff2[i+1]=_9w;bone.rotation=_8A+_M81*alpha;}_jf2(_Vk,_9f2){let _vf2=_Vk._vf2,_wf2=_Vk._wf2;let duration=_wf2-_vf2;let _xf2=_Vk._Qe2%duration;let events=this.events;let i=0,_c7=events.length;for(;i<_c7;i++){let event=events[i];if(event.time<_xf2)break;
if(event.time>_wf2)continue;this._ul.event(_Vk,event);}let complete=false;if(_Vk.loop)complete=duration==0||_xf2>_Vk._q4%duration;else complete=_9f2>=_wf2&&_Vk._Oe2<_wf2;if(complete)this._ul.complete(_Vk);for(;i<_c7;i++){let event=events[i];if(event.time<_vf2)continue;this._ul.event(_Vk,event);}}_yf2(){let _zf2=this._ul._Af2;this._ul._Af2=true;for(let i=0,_c7=this.tracks.length;i<_c7;i++)this._o8(i);this.tracks.length=0;this._ul._Af2=_zf2;this._ul._0f2();}_o8(_Bf2){if(_Bf2>=this.tracks.length)return;
let current=this.tracks[_Bf2];if(!current)return;this._ul.end(current);this._Ye2(current);let _Vk=current;while(true){let from=_Vk._Ve2;if(!from)break;this._ul.end(from);_Vk._Ve2=null;_Vk.__e2=null;_Vk=from;}this.tracks[current._Bf2]=null;this._ul._0f2();}_Ue2(index,current,interrupt){let from=this._Cf2(index);this.tracks[index]=current;current._Df2=null;if(from){if(interrupt)this._ul.interrupt(from);current._Ve2=from;from.__e2=current;current._We2=0;if(from._Ve2&&from._1f2>0)current._3f2*=Math.min(1,
from._We2/from._1f2);from._ff2.length=0;}this._ul.start(current);}_A4(_Bf2,_Ef2,loop=false){let _i4=this.data._Ff2._z4(_Ef2);if(!_i4)throw new Error("Animation not found: "+_Ef2);return this._Gf2(_Bf2,_i4,loop);}_Gf2(_Bf2,_i4,loop=false){if(!_i4)throw new Error("animation cannot be null.");let interrupt=true;let current=this._Cf2(_Bf2);if(current){if(current._Re2==-1){this.tracks[_Bf2]=current._Ve2;this._ul.interrupt(current);this._ul.end(current);this._Ye2(current);current=current._Ve2;interrupt=false;
}else this._Ye2(current);}let _Vk=this._Hf2(_Bf2,_i4,loop,current);this._Ue2(_Bf2,_Vk,interrupt);this._ul._0f2();return _Vk;}_If2(_Bf2,_Ef2,loop=false,_bO1=0){let _i4=this.data._Ff2._z4(_Ef2);if(!_i4)throw new Error("Animation not found: "+_Ef2);return this._Jf2(_Bf2,_i4,loop,_bO1);}_Jf2(_Bf2,_i4,loop=false,_bO1=0){if(!_i4)throw new Error("animation cannot be null.");let last=this._Cf2(_Bf2);if(last){while(last._Zk)last=last._Zk;}let _Vk=this._Hf2(_Bf2,_i4,loop,last);if(!last){this._Ue2(_Bf2,_Vk,true);this._ul._0f2();
}else {last._Zk=_Vk;_Vk._Df2=last;if(_bO1<=0)_bO1+=last._Kf2()-_Vk._1f2;}_Vk._bO1=_bO1;return _Vk;}_n8(_Bf2,_1f2=0){let _Vk=this._Gf2(_Bf2,_V3._Me2(),false);_Vk._1f2=_1f2;_Vk._Xe2=_1f2;return _Vk;}_Lf2(_Bf2,_1f2=0,_bO1=0){let _Vk=this._Jf2(_Bf2,_V3._Me2(),false,_bO1);if(_bO1<=0)_Vk._bO1+=_Vk._1f2-_1f2;_Vk._1f2=_1f2;_Vk._Xe2=_1f2;return _Vk;}_Mf2(_1f2=0){let _zf2=this._ul._Af2;this._ul._Af2=true;for(let i=0,_c7=this.tracks.length;i<_c7;i++){let current=this.tracks[i];if(current)this._n8(current._Bf2,_1f2);
}this._ul._Af2=_zf2;this._ul._0f2();}_Cf2(index){if(index<this.tracks.length)return this.tracks[index];_kc2._Xc2(this.tracks,index+1,null);this.tracks.length=index+1;return null;}_Hf2(_Bf2,_i4,loop,last){let _Vk=this._Le2._9d2();_Vk._Bf2=_Bf2;_Vk._i4=_i4;_Vk.loop=loop;_Vk._Nf2=false;_Vk._qf2=0;_Vk._mf2=0;_Vk._nf2=0;_Vk._vf2=0;_Vk._wf2=_i4.duration;_Vk._Oe2=-1;_Vk._Pe2=-1;_Vk._bO1=0;_Vk._q4=0;_Vk._Qe2=-1;_Vk._Re2=-1;_Vk._Xe2=Number.MAX_VALUE;_Vk._Ge2=1;_Vk.alpha=1;_Vk._3f2=1;_Vk._We2=0;_Vk._1f2=!last?0:this.data._Of2(last._i4,
_i4);_Vk._7f2=_Ab2.replace;return _Vk;}_Ye2(_Vk){let _Zk=_Vk._Zk;while(_Zk){this._ul.dispose(_Zk);_Zk=_Zk._Zk;}_Vk._Zk=null;}_4f2(){this._Ke2=false;this._Je2.clear();let tracks=this.tracks;for(let i=0,_c7=tracks.length;i<_c7;i++){let _Vk=tracks[i];if(!_Vk)continue;while(_Vk._Ve2)_Vk=_Vk._Ve2;do {if(!_Vk.__e2||_Vk._7f2!=_Ab2.add)this._Pf2(_Vk);_Vk=_Vk.__e2;}while(_Vk);}}_Pf2(_Vk){let _011=_Vk.__e2;let _s6=_Vk._i4._s6;let _Qf2=_Vk._i4._s6.length;let _ef2=_Vk._ef2;_ef2.length=_Qf2;let _rf2=_Vk._rf2;_rf2.length=0;
let _Je2=this._Je2;if(_011&&_011._Nf2){for(let i=0;i<_Qf2;i++)_ef2[i]=_Je2._qc2(_s6[i]._yd2())?_qb2:_sb2;return;}_Rf2:for(let i=0;i<_Qf2;i++){let _sA=_s6[i];let ids=_sA._yd2();if(!_Je2._qc2(ids))_ef2[i]=_Ub2;else if(!_011||_sA instanceof _8b2||_sA instanceof _kb2||_sA instanceof _w8||!_011._i4._zd2(ids)){_ef2[i]=_ob2;}else {for(let _Zk=_011.__e2;_Zk;_Zk=_Zk.__e2){if(_Zk._i4._zd2(ids))continue;if(_Vk._1f2>0){_ef2[i]=_rb2;_rf2[i]=_Zk;continue _Rf2;}break;}_ef2[i]=_qb2;}}}_Sf2(_Bf2){if(_Bf2>=this.tracks.length)return null;
return this.tracks[_Bf2];}_44(listener){if(!listener)throw new Error("listener cannot be null.");this._Ie2.push(listener);}_Tf2(listener){let index=this._Ie2.indexOf(listener);if(index>=0)this._Ie2.splice(index,1);}_Uf2(){this._Ie2.length=0;}_Vf2(){this._ul.clear();}};var _bc2=class {constructor(){this._7f2=_Ab2.replace;this._ef2=new Array();this._rf2=new Array();this._ff2=new Array();}_w81(){this._Zk=null;this._Df2=null;this._Ve2=null;this.__e2=null;this._i4=null;this.listener=null;this._ef2.length=0;this._rf2.length=0;
this._ff2.length=0;}_af2(){if(this.loop){let duration=this._wf2-this._vf2;if(duration==0)return this._vf2;return this._q4%duration+this._vf2;}return Math.min(this._q4+this._vf2,this._wf2);}_Wf2(_Oe2){this._Oe2=_Oe2;this._Pe2=_Oe2;}_Xf2(){return this._q4>=this._wf2-this._vf2;}_Yf2(){this._ff2.length=0;}_Kf2(){let duration=this._wf2-this._vf2;if(duration!=0){if(this.loop)return duration*(1+(this._q4/duration|0));if(this._q4<duration)return duration;}return this._q4;}};var _mb2=class {constructor(_Zf2){this.__f2=[];
this._Af2=false;this._Zf2=_Zf2;}start(_Vk){this.__f2.push(_nb2.start);this.__f2.push(_Vk);this._Zf2._Ke2=true;}interrupt(_Vk){this.__f2.push(_nb2.interrupt);this.__f2.push(_Vk);}end(_Vk){this.__f2.push(_nb2.end);this.__f2.push(_Vk);this._Zf2._Ke2=true;}dispose(_Vk){this.__f2.push(_nb2.dispose);this.__f2.push(_Vk);}complete(_Vk){this.__f2.push(_nb2.complete);this.__f2.push(_Vk);}event(_Vk,event){this.__f2.push(_nb2.event);this.__f2.push(_Vk);this.__f2.push(event);}_0f2(){if(this._Af2)return;this._Af2=true;
let __f2=this.__f2;let _Ie2=this._Zf2._Ie2;for(let i=0;i<__f2.length;i+=2){let type=__f2[i];let _Vk=__f2[i+1];switch(type){case _nb2.start:if(_Vk.listener&&_Vk.listener.start)_Vk.listener.start(_Vk);for(let _Tx=0;_Tx<_Ie2.length;_Tx++)if(_Ie2[_Tx].start)_Ie2[_Tx].start(_Vk);break;case _nb2.interrupt:if(_Vk.listener&&_Vk.listener.interrupt)_Vk.listener.interrupt(_Vk);for(let _Tx=0;_Tx<_Ie2.length;_Tx++)if(_Ie2[_Tx].interrupt)_Ie2[_Tx].interrupt(_Vk);break;case _nb2.end:if(_Vk.listener&&_Vk.listener.end)_Vk.listener.end(_Vk);
for(let _Tx=0;_Tx<_Ie2.length;_Tx++)if(_Ie2[_Tx].end)_Ie2[_Tx].end(_Vk);case _nb2.dispose:if(_Vk.listener&&_Vk.listener.dispose)_Vk.listener.dispose(_Vk);for(let _Tx=0;_Tx<_Ie2.length;_Tx++)if(_Ie2[_Tx].dispose)_Ie2[_Tx].dispose(_Vk);this._Zf2._Le2._ad2(_Vk);break;case _nb2.complete:if(_Vk.listener&&_Vk.listener.complete)_Vk.listener.complete(_Vk);for(let _Tx=0;_Tx<_Ie2.length;_Tx++)if(_Ie2[_Tx].complete)_Ie2[_Tx].complete(_Vk);break;case _nb2.event:let event=__f2[i+++2];if(_Vk.listener&&_Vk.listener.event)_Vk.listener.event(_Vk,
event);for(let _Tx=0;_Tx<_Ie2.length;_Tx++)if(_Ie2[_Tx].event)_Ie2[_Tx].event(_Vk,event);break;}}this.clear();this._Af2=false;}clear(){this.__f2.length=0;}};var _nb2;(function(_0g2){_0g2[_0g2["start"]=0]="start";_0g2[_0g2["interrupt"]=1]="interrupt";_0g2[_0g2["end"]=2]="end";_0g2[_0g2["dispose"]=3]="dispose";_0g2[_0g2["complete"]=4]="complete";_0g2[_0g2["event"]=5]="event";})(_nb2||(_nb2={}));var _5b2=class {start(_Vk){}interrupt(_Vk){}end(_Vk){}dispose(_Vk){}complete(_Vk){}event(_Vk,event){}};var _Ub2=0;
var _ob2=1;var _sb2=2;var _qb2=3;var _rb2=4;var _Tb2=1;var _cb2=2;var _Ne2=null;var _U3=class {constructor(_Ff2){this._1g2={};this._2g2=0;if(!_Ff2)throw new Error("skeletonData cannot be null.");this._Ff2=_Ff2;}_M4(_3g2,_4g2,duration){let from=this._Ff2._z4(_3g2);if(!from)throw new Error("Animation not found: "+_3g2);let _011=this._Ff2._z4(_4g2);if(!_011)throw new Error("Animation not found: "+_4g2);this._5g2(from,_011,duration);}_5g2(from,_011,duration){if(!from)throw new Error("from cannot be null.");if(!_011)throw new Error("to cannot be null.");
let key=from.name+"."+_011.name;this._1g2[key]=duration;}_Of2(from,_011){let key=from.name+"."+_011.name;let value=this._1g2[key];return value===void 0?this._2g2:value;}};var _3a=class  extends _mc2{constructor(name){super(name);this.color=new _15(1,1,1,1);}_Am(){let _Am=new _3a(this.name);this._vd2(_Am);_Am.color._16(this.color);return _Am;}};var _Ca=class  extends _mc2{constructor(name){super(name);this.color=new _15(0.2275,0.2275,0.8078,1);}_Am(){let _Am=new _Ca(this.name);this._vd2(_Am);_Am._6g2=this._6g2;_Am.color._16(this.color);
return _Am;}};var _8e1=class {constructor(_B5){this._xT1=_B5;}_U8(){return this._xT1;}};var _v5;(function(_7g2){_7g2[_7g2["Nearest"]=9728]="Nearest";_7g2[_7g2["Linear"]=9729]="Linear";_7g2[_7g2["MipMap"]=9987]="MipMap";_7g2[_7g2["MipMapNearestNearest"]=9984]="MipMapNearestNearest";_7g2[_7g2["MipMapLinearNearest"]=9985]="MipMapLinearNearest";_7g2[_7g2["MipMapNearestLinear"]=9986]="MipMapNearestLinear";_7g2[_7g2["MipMapLinearLinear"]=9987]="MipMapLinearLinear";})(_v5||(_v5={}));var _y5;(function(_8g2){_8g2[_8g2["MirroredRepeat"]=33648]="MirroredRepeat";
_8g2[_8g2["ClampToEdge"]=33071]="ClampToEdge";_8g2[_8g2["Repeat"]=10497]="Repeat";})(_y5||(_y5={}));var _8c2=class {constructor(){this._G5=0;this._H5=0;this._I5=0;this._J5=0;this.width=0;this.height=0;this._O5=0;this._K5=0;this._L5=0;this._M5=0;this._N5=0;}};var _pb2=class  extends _8e1{_C5(_u5,_w5){}_D5(_x5,_z5){}dispose(){}};var _S5=class {constructor(_9g2){this._T5=new Array();this._U5=new Array();if(_9g2===null||_9g2===void 0)return;let _0V=new _ag2(_9g2);let _Vk=new Array(4);let _r5=null;let _E5=null;let _bg2={
};_bg2["size"]=()=>{_r5.width=parseInt(_Vk[1]);_r5.height=parseInt(_Vk[2]);};_bg2["format"]=()=>{};_bg2["filter"]=()=>{_r5._u5=_kc2._5d2(_v5,_Vk[1]);_r5._w5=_kc2._5d2(_v5,_Vk[2]);};_bg2["repeat"]=()=>{if(_Vk[1].indexOf("x")!=-1)_r5._x5=_y5.Repeat;if(_Vk[1].indexOf("y")!=-1)_r5._z5=_y5.Repeat;};_bg2["pma"]=()=>{_r5._cg2=_Vk[1]=="true";};var _dg2={};_dg2["xy"]=()=>{_E5.x=parseInt(_Vk[1]);_E5.y=parseInt(_Vk[2]);};_dg2["size"]=()=>{_E5.width=parseInt(_Vk[1]);_E5.height=parseInt(_Vk[2]);};_dg2["bounds"]=()=>{
_E5.x=parseInt(_Vk[1]);_E5.y=parseInt(_Vk[2]);_E5.width=parseInt(_Vk[3]);_E5.height=parseInt(_Vk[4]);};_dg2["offset"]=()=>{_E5._K5=parseInt(_Vk[1]);_E5._L5=parseInt(_Vk[2]);};_dg2["orig"]=()=>{_E5._M5=parseInt(_Vk[1]);_E5._N5=parseInt(_Vk[2]);};_dg2["offsets"]=()=>{_E5._K5=parseInt(_Vk[1]);_E5._L5=parseInt(_Vk[2]);_E5._M5=parseInt(_Vk[3]);_E5._N5=parseInt(_Vk[4]);};_dg2["rotate"]=()=>{let value=_Vk[1];if(value=="true")_E5._O5=90;else if(value!="false")_E5._O5=parseInt(value);};_dg2["index"]=()=>{_E5.index=parseInt(_Vk[1]);
};let _mw=_0V._eg2();while(_mw&&_mw.trim().length==0)_mw=_0V._eg2();while(true){if(!_mw||_mw.trim().length==0)break;if(_0V._fg2(_Vk,_mw)==0)break;_mw=_0V._eg2();}let _Ef1=null;let values=null;while(true){if(_mw===null)break;if(_mw.trim().length==0){_r5=null;_mw=_0V._eg2();}else if(!_r5){_r5=new _s5();_r5.name=_mw.trim();while(true){if(_0V._fg2(_Vk,_mw=_0V._eg2())==0)break;let _gg2=_bg2[_Vk[0]];if(_gg2)_gg2();}this._T5.push(_r5);}else {_E5=new _F5();_E5._r5=_r5;_E5.name=_mw;while(true){let _c9=_0V._fg2(_Vk,
_mw=_0V._eg2());if(_c9==0)break;let _gg2=_dg2[_Vk[0]];if(_gg2)_gg2();else {if(!_Ef1){_Ef1=[];values=[];}_Ef1.push(_Vk[0]);let _hg2=[];for(let i=0;i<_c9;i++)_hg2.push(parseInt(_Vk[i+1]));values.push(_hg2);}}if(_E5._M5==0&&_E5._N5==0){_E5._M5=_E5.width;_E5._N5=_E5.height;}if(_Ef1&&_Ef1.length>0){_E5._Ef1=_Ef1;_E5.values=values;_Ef1=null;values=null;}_E5._G5=_E5.x/_r5.width;_E5._H5=_E5.y/_r5.height;if(_E5._O5==90){_E5._I5=(_E5.x+_E5.height)/_r5.width;_E5._J5=(_E5.y+_E5.width)/_r5.height;}else {_E5._I5=(_E5.x+_E5.width)/_r5.width;
_E5._J5=(_E5.y+_E5.height)/_r5.height;}this._U5.push(_E5);}}}_ig2(name){for(let i=0;i<this._U5.length;i++){if(this._U5[i].name==name){return this._U5[i];}}return null;}_jg2(_kg2,_lg2=""){for(let _r5 of this._T5)_r5._C9(_kg2.get(_lg2+_r5.name));}dispose(){for(let i=0;i<this._T5.length;i++){this._T5[i].texture.dispose();}}};var _ag2=class {constructor(text){this.index=0;var _ww=text.replace("\r\n","\n");_ww=_ww.replace("\r","\n");this._hz=text.split("\n");}_eg2(){if(this.index>=this._hz.length)return null;return this._hz[this.index++];
}_fg2(_Vk,_mw){if(!_mw)return 0;_mw=_mw.trim();if(_mw.length==0)return 0;let _mg2=_mw.indexOf(":");if(_mg2==-1)return 0;_Vk[0]=_mw.substr(0,_mg2).trim();for(let i=1,_ng2=_mg2+1;;i++){let _og2=_mw.indexOf(",",_ng2);if(_og2==-1){_Vk[i]=_mw.substr(_ng2).trim();return i;}_Vk[i]=_mw.substr(_ng2,_og2-_ng2).trim();_ng2=_og2+1;if(i==4)return 4;}}};var _s5=class {constructor(){this._u5=_v5.Nearest;this._w5=_v5.Nearest;this._x5=_y5.ClampToEdge;this._z5=_y5.ClampToEdge;}_C9(texture){this.texture=texture;texture._C5(this._u5,
this._w5);texture._D5(this._x5,this._z5);}};var _F5=class  extends _8c2{};var _1a=class  extends _mc2{constructor(name){super(name);this.color=new _15(1,1,1,1);this._pg2=new _15(0,0,0,0);}_qg2(){let _rg2=this._rg2;if(!this.uvs||this.uvs.length!=_rg2.length)this.uvs=_kc2._Zc2(_rg2.length);let uvs=this.uvs;let _c7=this.uvs.length;let _G5=this._E5._G5,_H5=this._E5._H5,width=0,height=0;if(this._E5 instanceof _F5){let _E5=this._E5,_B5=_E5._r5.texture._U8();let _sg2=_B5.width,_tg2=_B5.height;switch(_E5._O5){case 90:_G5-=(_E5._N5-_E5._L5-_E5.height)/_sg2;
_H5-=(_E5._M5-_E5._K5-_E5.width)/_tg2;width=_E5._N5/_sg2;height=_E5._M5/_tg2;for(let i=0;i<_c7;i+=2){uvs[i]=_G5+_rg2[i+1]*width;uvs[i+1]=_H5+(1-_rg2[i])*height;}return;case 180:_G5-=(_E5._M5-_E5._K5-_E5.width)/_sg2;_H5-=_E5._L5/_tg2;width=_E5._M5/_sg2;height=_E5._N5/_tg2;for(let i=0;i<_c7;i+=2){uvs[i]=_G5+(1-_rg2[i])*width;uvs[i+1]=_H5+(1-_rg2[i+1])*height;}return;case 270:_G5-=_E5._L5/_sg2;_H5-=_E5._K5/_tg2;width=_E5._N5/_sg2;height=_E5._M5/_tg2;for(let i=0;i<_c7;i+=2){uvs[i]=_G5+(1-_rg2[i+1])*width;
uvs[i+1]=_H5+_rg2[i]*height;}return;}_G5-=_E5._K5/_sg2;_H5-=(_E5._N5-_E5._L5-_E5.height)/_tg2;width=_E5._M5/_sg2;height=_E5._N5/_tg2;}else if(!this._E5){_G5=_H5=0;width=height=1;}else {width=this._E5._I5-_G5;height=this._E5._J5-_H5;}for(let i=0;i<_c7;i+=2){uvs[i]=_G5+_rg2[i]*width;uvs[i+1]=_H5+_rg2[i+1]*height;}}_ug2(){return this._vg2;}_wg2(_vg2){this._vg2=_vg2;if(_vg2){this.bones=_vg2.bones;this.vertices=_vg2.vertices;this._Ba=_vg2._Ba;this._rg2=_vg2._rg2;this.triangles=_vg2.triangles;this._xg2=_vg2._xg2;
this._Ba=_vg2._Ba;}}_Am(){if(this._vg2)return this._yg2();let _Am=new _1a(this.name);_Am._E5=this._E5;_Am.path=this.path;_Am.color._16(this.color);this._vd2(_Am);_Am._rg2=new Array(this._rg2.length);_kc2._Pc2(this._rg2,0,_Am._rg2,0,this._rg2.length);_Am.uvs=new Array(this.uvs.length);_kc2._Pc2(this.uvs,0,_Am.uvs,0,this.uvs.length);_Am.triangles=new Array(this.triangles.length);_kc2._Pc2(this.triangles,0,_Am.triangles,0,this.triangles.length);_Am._xg2=this._xg2;if(this.edges){_Am.edges=new Array(this.edges.length);
_kc2._Pc2(this.edges,0,_Am.edges,0,this.edges.length);}_Am.width=this.width;_Am.height=this.height;return _Am;}_yg2(){let _Am=new _1a(this.name);_Am._E5=this._E5;_Am.path=this.path;_Am.color._16(this.color);_Am._od2=this._od2;_Am._wg2(this._vg2?this._vg2:this);_Am._qg2();return _Am;}};var _Cb2=class  extends _mc2{constructor(name){super(name);this.closed=false;this._zg2=false;this.color=new _15(1,1,1,1);}_Am(){let _Am=new _Cb2(this.name);this._vd2(_Am);_Am.lengths=new Array(this.lengths.length);_kc2._Pc2(this.lengths,
0,_Am.lengths,0,this.lengths.length);_Am.closed=closed;_Am._zg2=this._zg2;_Am.color._16(this.color);return _Am;}};var _Ib2=class  extends _mc2{constructor(name){super(name);this.color=new _15(0.38,0.94,0,1);}_Ag2(bone,_nq1){_nq1.x=this.x*bone._05+this.y*bone.__4+bone._08;_nq1.y=this.x*bone.c+this.y*bone._Xo+bone._18;return _nq1;}_Bg2(bone){let cos=_zb2._Cc2(this.rotation),sin=_zb2._Ec2(this.rotation);let x=cos*bone._05+sin*bone.__4;let y=cos*bone.c+sin*bone._Xo;return Math.atan2(y,x)*_zb2._Lc2;}_Am(){let _Am=new _Ib2(this.name);
_Am.x=this.x;_Am.y=this.y;_Am.rotation=this.rotation;_Am.color._16(this.color);return _Am;}};var _Cg2=class  extends _7b2{constructor(name){super(name);this.x=0;this.y=0;this.scaleX=1;this.scaleY=1;this.rotation=0;this.width=0;this.height=0;this.color=new _15(1,1,1,1);this.offset=_kc2._Zc2(8);this.uvs=_kc2._Zc2(8);this._pg2=new _15(1,1,1,1);}_26(){let _E5=this._E5;let _Dg2=this.width/this._E5._M5*this.scaleX;let _Eg2=this.height/this._E5._N5*this.scaleY;let _Fg2=-this.width/2*this.scaleX+this._E5._K5*_Dg2;
let _Gg2=-this.height/2*this.scaleY+this._E5._L5*_Eg2;let _Hg2=_Fg2+this._E5.width*_Dg2;let _Ig2=_Gg2+this._E5.height*_Eg2;let _Jg2=this.rotation*Math.PI/180;let cos=Math.cos(_Jg2);let sin=Math.sin(_Jg2);let x=this.x,y=this.y;let _Kg2=_Fg2*cos+x;let _Lg2=_Fg2*sin;let _Mg2=_Gg2*cos+y;let _Ng2=_Gg2*sin;let _Og2=_Hg2*cos+x;let _Pg2=_Hg2*sin;let _Qg2=_Ig2*cos+y;let _Rg2=_Ig2*sin;let offset=this.offset;offset[0]=_Kg2-_Ng2;offset[1]=_Mg2+_Lg2;offset[2]=_Kg2-_Rg2;offset[3]=_Qg2+_Lg2;offset[4]=_Og2-_Rg2;offset[5]=_Qg2+_Pg2;
offset[6]=_Og2-_Ng2;offset[7]=_Mg2+_Pg2;}_Sg2(_E5){this._E5=_E5;let uvs=this.uvs;if(_E5._O5==90){uvs[2]=_E5._G5;uvs[3]=_E5._J5;uvs[4]=_E5._G5;uvs[5]=_E5._H5;uvs[6]=_E5._I5;uvs[7]=_E5._H5;uvs[0]=_E5._I5;uvs[1]=_E5._J5;}else {uvs[0]=_E5._G5;uvs[1]=_E5._J5;uvs[2]=_E5._G5;uvs[3]=_E5._H5;uvs[4]=_E5._I5;uvs[5]=_E5._H5;uvs[6]=_E5._I5;uvs[7]=_E5._J5;}}_va(bone,_pd2,offset,_sb){let _Tg2=this.offset;let x=bone._08,y=bone._18;let _05=bone._05,__4=bone.__4,c=bone.c,_Xo=bone._Xo;let _K5=0,_L5=0;_K5=_Tg2[0];_L5=_Tg2[1];
_pd2[offset]=_K5*_05+_L5*__4+x;_pd2[offset+1]=_K5*c+_L5*_Xo+y;offset+=_sb;_K5=_Tg2[2];_L5=_Tg2[3];_pd2[offset]=_K5*_05+_L5*__4+x;_pd2[offset+1]=_K5*c+_L5*_Xo+y;offset+=_sb;_K5=_Tg2[4];_L5=_Tg2[5];_pd2[offset]=_K5*_05+_L5*__4+x;_pd2[offset+1]=_K5*c+_L5*_Xo+y;offset+=_sb;_K5=_Tg2[6];_L5=_Tg2[7];_pd2[offset]=_K5*_05+_L5*__4+x;_pd2[offset+1]=_K5*c+_L5*_Xo+y;}_Am(){let _Am=new _Cg2(this.name);_Am._E5=this._E5;_Am._t5=this._t5;_Am.path=this.path;_Am.x=this.x;_Am.y=this.y;_Am.scaleX=this.scaleX;_Am.scaleY=this.scaleY;
_Am.rotation=this.rotation;_Am.width=this.width;_Am.height=this.height;_kc2._Pc2(this.uvs,0,_Am.uvs,0,8);_kc2._Pc2(this.offset,0,_Am.offset,0,8);_Am.color._16(this.color);return _Am;}};var __9=_Cg2;__9._Ug2=0;__9._Vg2=1;__9._Wg2=2;__9._Xg2=3;__9._Yg2=4;__9._Zg2=5;__9.__g2=6;__9._0h2=7;__9._1h2=8;__9._2h2=9;__9._3h2=10;__9._4h2=11;__9._5h2=12;__9._6h2=13;__9._7h2=14;__9._8h2=15;__9._9h2=16;__9._ah2=17;__9._bh2=18;__9._ch2=19;__9._dh2=20;__9._eh2=21;__9._fh2=22;__9._gh2=23;__9._hh2=24;__9._ih2=25;__9._jh2=26;
__9._kh2=27;__9._lh2=28;__9._mh2=29;__9._nh2=30;__9._oh2=31;var _W5=class {constructor(_R5){this._R5=_R5;}_Y5(skin,name,path){let _E5=this._R5._ig2(path);if(!_E5)throw new Error("Region not found in atlas: "+path+" (region attachment: "+name+")");_E5._wa=_E5;let attachment=new __9(name);attachment._Sg2(_E5);return attachment;}_ph2(skin,name,path){let _E5=this._R5._ig2(path);if(!_E5)throw new Error("Region not found in atlas: "+path+" (mesh attachment: "+name+")");_E5._wa=_E5;let attachment=new _1a(name);attachment._E5=_E5;
return attachment;}_qh2(skin,name){return new _3a(name);}_rh2(skin,name){return new _Cb2(name);}_sh2(skin,name){return new _Ib2(name);}_th2(skin,name){return new _Ca(name);}};var _bb2=class {constructor(index,name,parent){this.x=0;this.y=0;this.rotation=0;this.scaleX=1;this.scaleY=1;this.shearX=0;this.shearY=0;this._6c1=_fc2.Normal;this._uh2=false;this.color=new _15();if(index<0)throw new Error("index must be >= 0.");if(!name)throw new Error("name cannot be null.");this.index=index;this.name=name;this.parent=parent;
}};var _fc2;(function(_vh2){_vh2[_vh2["Normal"]=0]="Normal";_vh2[_vh2["OnlyTranslation"]=1]="OnlyTranslation";_vh2[_vh2["NoRotationOrReflection"]=2]="NoRotationOrReflection";_vh2[_vh2["NoScale"]=3]="NoScale";_vh2[_vh2["NoScaleOrReflection"]=4]="NoScaleOrReflection";})(_fc2||(_fc2={}));var _ab2=class {constructor(data,skeleton,parent){this._jg1=new Array();this.x=0;this.y=0;this.rotation=0;this.scaleX=0;this.scaleY=0;this.shearX=0;this.shearY=0;this.ax=0;this.ay=0;this._68=0;this._wh2=0;this._xh2=0;this._yh2=0;
this._zh2=0;this._05=0;this.__4=0;this.c=0;this._Xo=0;this._18=0;this._08=0;this._Ah2=false;this.active=false;if(!data)throw new Error("data cannot be null.");if(!skeleton)throw new Error("skeleton cannot be null.");this.data=data;this.skeleton=skeleton;this.parent=parent;this._Bh2();}__71(){return this.active;}_v6(){this._Ch2(this.ax,this.ay,this._68,this._wh2,this._xh2,this._yh2,this._zh2);}_k6(){this._Ch2(this.x,this.y,this.rotation,this.scaleX,this.scaleY,this.shearX,this.shearY);}_Ch2(x,y,rotation,
scaleX,scaleY,shearX,shearY){this.ax=x;this.ay=y;this._68=rotation;this._wh2=scaleX;this._xh2=scaleY;this._yh2=shearX;this._zh2=shearY;let parent=this.parent;if(!parent){let skeleton=this.skeleton;let _Dh2=rotation+90+shearY;let _YS=skeleton.scaleX;let _ZS=skeleton.scaleY;this._05=_zb2._Cc2(rotation+shearX)*scaleX*_YS;this.__4=_zb2._Cc2(_Dh2)*scaleY*_YS;this.c=_zb2._Ec2(rotation+shearX)*scaleX*_ZS;this._Xo=_zb2._Ec2(_Dh2)*scaleY*_ZS;this._08=x*_YS+skeleton.x;this._18=y*_ZS+skeleton.y;return;}let _SC1=parent._05,
_TC1=parent.__4,_CB1=parent.c,_Eh2=parent._Xo;this._08=_SC1*x+_TC1*y+parent._08;this._18=_CB1*x+_Eh2*y+parent._18;switch(this.data._6c1){case _fc2.Normal:{let _Dh2=rotation+90+shearY;let _Fh2=_zb2._Cc2(rotation+shearX)*scaleX;let _Gh2=_zb2._Cc2(_Dh2)*scaleY;let _Xc1=_zb2._Ec2(rotation+shearX)*scaleX;let _Hh2=_zb2._Ec2(_Dh2)*scaleY;this._05=_SC1*_Fh2+_TC1*_Xc1;this.__4=_SC1*_Gh2+_TC1*_Hh2;this.c=_CB1*_Fh2+_Eh2*_Xc1;this._Xo=_CB1*_Gh2+_Eh2*_Hh2;return;}case _fc2.OnlyTranslation:{let _Dh2=rotation+90+shearY;
this._05=_zb2._Cc2(rotation+shearX)*scaleX;this.__4=_zb2._Cc2(_Dh2)*scaleY;this.c=_zb2._Ec2(rotation+shearX)*scaleX;this._Xo=_zb2._Ec2(_Dh2)*scaleY;break;}case _fc2.NoRotationOrReflection:{let __h=_SC1*_SC1+_CB1*_CB1;let _Ih2=0;if(__h>1e-4){__h=Math.abs(_SC1*_Eh2-_TC1*_CB1)/__h;_SC1/=this.skeleton.scaleX;_CB1/=this.skeleton.scaleY;_TC1=_CB1*__h;_Eh2=_SC1*__h;_Ih2=Math.atan2(_CB1,_SC1)*_zb2._Lc2;}else {_SC1=0;_CB1=0;_Ih2=90-Math.atan2(_Eh2,_TC1)*_zb2._Lc2;}let _Jh2=rotation+shearX-_Ih2;let _Kh2=rotation+shearY-_Ih2+90;
let _Fh2=_zb2._Cc2(_Jh2)*scaleX;let _Gh2=_zb2._Cc2(_Kh2)*scaleY;let _Xc1=_zb2._Ec2(_Jh2)*scaleX;let _Hh2=_zb2._Ec2(_Kh2)*scaleY;this._05=_SC1*_Fh2-_TC1*_Xc1;this.__4=_SC1*_Gh2-_TC1*_Hh2;this.c=_CB1*_Fh2+_Eh2*_Xc1;this._Xo=_CB1*_Gh2+_Eh2*_Hh2;break;}case _fc2.NoScale:case _fc2.NoScaleOrReflection:{let cos=_zb2._Cc2(rotation);let sin=_zb2._Ec2(rotation);let _Lh2=(_SC1*cos+_TC1*sin)/this.skeleton.scaleX;let _Mh2=(_CB1*cos+_Eh2*sin)/this.skeleton.scaleY;let __h=Math.sqrt(_Lh2*_Lh2+_Mh2*_Mh2);if(__h>1e-5)__h=1/__h;
_Lh2*=__h;_Mh2*=__h;__h=Math.sqrt(_Lh2*_Lh2+_Mh2*_Mh2);if(this.data._6c1==_fc2.NoScale&&_SC1*_Eh2-_TC1*_CB1<0!=(this.skeleton.scaleX<0!=this.skeleton.scaleY<0))__h=-__h;let _Y4=Math.PI/2+Math.atan2(_Mh2,_Lh2);let _Nh2=Math.cos(_Y4)*__h;let _Oh2=Math.sin(_Y4)*__h;let _Fh2=_zb2._Cc2(shearX)*scaleX;let _Gh2=_zb2._Cc2(90+shearY)*scaleY;let _Xc1=_zb2._Ec2(shearX)*scaleX;let _Hh2=_zb2._Ec2(90+shearY)*scaleY;this._05=_Lh2*_Fh2+_Nh2*_Xc1;this.__4=_Lh2*_Gh2+_Nh2*_Hh2;this.c=_Mh2*_Fh2+_Oh2*_Xc1;this._Xo=_Mh2*_Gh2+_Oh2*_Hh2;
break;}}this._05*=this.skeleton.scaleX;this.__4*=this.skeleton.scaleX;this.c*=this.skeleton.scaleY;this._Xo*=this.skeleton.scaleY;}_Bh2(){let data=this.data;this.x=data.x;this.y=data.y;this.rotation=data.rotation;this.scaleX=data.scaleX;this.scaleY=data.scaleY;this.shearX=data.shearX;this.shearY=data.shearY;}_28(){return Math.atan2(this.c,this._05)*_zb2._Lc2;}_38(){return Math.atan2(this._Xo,this.__4)*_zb2._Lc2;}_48(){return Math.sqrt(this._05*this._05+this.c*this.c);}_58(){return Math.sqrt(this.__4*this.__4+this._Xo*this._Xo);
}_Ph2(){let parent=this.parent;if(!parent){this.ax=this._08-this.skeleton.x;this.ay=this._18-this.skeleton.y;this._68=Math.atan2(this.c,this._05)*_zb2._Lc2;this._wh2=Math.sqrt(this._05*this._05+this.c*this.c);this._xh2=Math.sqrt(this.__4*this.__4+this._Xo*this._Xo);this._yh2=0;this._zh2=Math.atan2(this._05*this.__4+this.c*this._Xo,this._05*this._Xo-this.__4*this.c)*_zb2._Lc2;return;}let _SC1=parent._05,_TC1=parent.__4,_CB1=parent.c,_Eh2=parent._Xo;let _Qh2=1/(_SC1*_Eh2-_TC1*_CB1);let __b=this._08-parent._08,
_0c=this._18-parent._18;this.ax=__b*_Eh2*_Qh2-_0c*_TC1*_Qh2;this.ay=_0c*_SC1*_Qh2-__b*_CB1*_Qh2;let _Rh2=_Qh2*_Eh2;let id=_Qh2*_SC1;let _Sh2=_Qh2*_TC1;let _Th2=_Qh2*_CB1;let _Uh2=_Rh2*this._05-_Sh2*this.c;let _Vh2=_Rh2*this.__4-_Sh2*this._Xo;let _Wh2=id*this.c-_Th2*this._05;let _Xh2=id*this._Xo-_Th2*this.__4;this._yh2=0;this._wh2=Math.sqrt(_Uh2*_Uh2+_Wh2*_Wh2);if(this._wh2>1e-4){let _Tk1=_Uh2*_Xh2-_Vh2*_Wh2;this._xh2=_Tk1/this._wh2;this._zh2=Math.atan2(_Uh2*_Vh2+_Wh2*_Xh2,_Tk1)*_zb2._Lc2;this._68=Math.atan2(_Wh2,
_Uh2)*_zb2._Lc2;}else {this._wh2=0;this._xh2=Math.sqrt(_Vh2*_Vh2+_Xh2*_Xh2);this._zh2=0;this._68=90-Math.atan2(_Xh2,_Vh2)*_zb2._Lc2;}}_98(_Gv1){let _Yh2=1/(this._05*this._Xo-this.__4*this.c);let x=_Gv1.x-this._08,y=_Gv1.y-this._18;_Gv1.x=x*this._Xo*_Yh2-y*this.__4*_Yh2;_Gv1.y=y*this._05*_Yh2-x*this.c*_Yh2;return _Gv1;}_Zh2(_ci){let x=_ci.x,y=_ci.y;_ci.x=x*this._05+y*this.__4+this._08;_ci.y=x*this.c+y*this._Xo+this._18;return _ci;}__h2(_0i2){let sin=_zb2._Ec2(_0i2),cos=_zb2._Cc2(_0i2);return Math.atan2(this._05*sin-this.c*cos,
this._Xo*cos-this.__4*sin)*_zb2._Lc2+this.rotation-this.shearX;}_1i2(_2i2){_2i2-=this.rotation-this.shearX;let sin=_zb2._Ec2(_2i2),cos=_zb2._Cc2(_2i2);return Math.atan2(cos*this.c+sin*this._Xo,cos*this._05+sin*this.__4)*_zb2._Lc2;}_3i2(_O5){let _05=this._05,__4=this.__4,c=this.c,_Xo=this._Xo;let cos=_zb2._Cc2(_O5),sin=_zb2._Ec2(_O5);this._05=cos*_05-sin*c;this.__4=cos*__4-sin*_Xo;this.c=sin*_05+cos*c;this._Xo=sin*__4+cos*_Xo;}};var _db2=class {constructor(name,_4i2,_uh2){this.name=name;this._4i2=_4i2;
this._uh2=_uh2;}};var _6b2=class {constructor(_5i2,_lg2="",_6i2=null){this.assets={};this._7i2={};this._8i2=0;this._ph=0;this._5i2=_5i2;this._lg2=_lg2;this._6i2=_6i2||new _jb2();}start(path){this._8i2++;return this._lg2+path;}_WU(_zg1,path,_961){this._8i2--;this._ph++;this.assets[path]=_961;if(_zg1)_zg1(path,_961);}error(_zg1,path,message){this._8i2--;this._ph++;this._7i2[path]=message;if(_zg1)_zg1(path,message);}_9i2(path,data){this._6i2._ai2[this._lg2+path]=data;}_bi2(path,_WU=null,error=null){path=this.start(path);
this._6i2._ci2(path,(data)=>{this._WU(_WU,path,data);},(status,responseText)=>{this.error(error,path,"Couldn't load binary "+path+": status "+status+", "+responseText);});}_di2(path,_WU=null,error=null){path=this.start(path);this._6i2._ei2(path,(data)=>{this._WU(_WU,path,data);},(status,responseText)=>{this.error(error,path,"Couldn't load text "+path+": status "+status+", "+responseText);});}_fi2(path,_WU=null,error=null){path=this.start(path);this._6i2._gi2(path,(data)=>{this._WU(_WU,path,data);
},(status,responseText)=>{this.error(error,path,"Couldn't load JSON "+path+": status "+status+", "+responseText);});}_o9(path,_WU=null,error=null){path=this.start(path);let _hi2=!!(typeof window!=="undefined"&&typeof navigator!=="undefined"&&window.document);let _ii2=!_hi2;if(_ii2){_ji2(path,{mode:"cors"}).then((response)=>{if(response._lx)return response._ki2();this.error(error,path,"Couldn't load image: "+path);return null;}).then((_ki2)=>{return _ki2?_li2(_ki2,{_mi2:"none",_ni2:"none"}):null;}).then((_oi2)=>{
if(_oi2)this._WU(_WU,path,this._5i2(_oi2));});}else {let _B5=new Image();_B5.crossOrigin=_iG;_B5.onload=()=>{this._WU(_WU,path,this._5i2(_B5));};_B5.onerror=()=>{this.error(error,path,"Couldn't load image: "+path);};if(this._6i2._ai2[path])path=this._6i2._ai2[path];_B5.src=_zz(null,null,path);}}_pi2(path,_WU=null,error=null){let index=path.lastIndexOf("/");let parent=index>=0?path.substring(0,index+1):"";path=this.start(path);this._6i2._ei2(path,(_9g2)=>{try{let _R5=new _S5(_9g2);let _8i2=_R5._T5.length,
_qi2=false;for(let _r5 of _R5._T5){this._o9(parent+_r5.name,(_ri2,texture)=>{if(!_qi2){_r5._C9(texture);if(--_8i2==0)this._WU(_WU,path,_R5);}},(_ri2,message)=>{if(!_qi2)this.error(error,path,"Couldn't load texture atlas "+path+" page image: "+_ri2);_qi2=true;});}}catch(e){this.error(error,path,"Couldn't parse texture atlas "+path+": "+e.message);}},(status,responseText)=>{this.error(error,path,"Couldn't load texture atlas "+path+": status "+status+", "+responseText);});}get(path){return this.assets[this._lg2+path];
}require(path){path=this._lg2+path;let _961=this.assets[path];if(_961)return _961;let error=this._7i2[path];throw Error("Asset not found: "+path+(error?"\n"+error:""));}remove(path){path=this._lg2+path;let _961=this.assets[path];if(_961.dispose)_961.dispose();delete this.assets[path];return _961;}_si2(){for(let key in this.assets){let _961=this.assets[key];if(_961.dispose)_961.dispose();}this.assets={};}_ti2(){return this._8i2==0;}_ui2(){return this._8i2;}_vi2(){return this._ph;}dispose(){this._si2();}_wi2(){
return Object.keys(this._7i2).length>0;}_xi2(){return this._7i2;}};var _jb2=class {constructor(){this._yi2={};this._ai2={};}_zi2(_Ai2){if(!_Ai2.startsWith("data:")){throw new Error("Not a data URI.");}let _Bi2=_Ai2.indexOf("base64,");if(_Bi2!=-1){_Bi2+="base64,".length;return _Ci2(_Ai2.substr(_Bi2));}else {return _Ai2.substr(_Ai2.indexOf(",")+1);}}_Di2(_hh){var _Ei2=window._Ci2(_hh);var _Ai=_Ei2.length;var _h12=new Uint8Array(_Ai);for(var i=0;i<_Ai;i++){_h12[i]=_Ei2.charCodeAt(i);}return _h12;}_Fi2(_Ai2){if(!_Ai2.startsWith("data:")){
throw new Error("Not a data URI.");}let _Bi2=_Ai2.indexOf("base64,");if(_Bi2==-1)throw new Error("Not a binary data URI.");_Bi2+="base64,".length;return this._Di2(_Ai2.substr(_Bi2));}_ei2(_fh,_WU,error){if(this.start(_fh,_WU,error))return;if(this._ai2[_fh]){try{let _Ai2=this._ai2[_fh];this._HO1(_fh,200,this._zi2(_Ai2));}catch(e){this._HO1(_fh,400,JSON.stringify(e));}return;}let _g61=new XMLHttpRequest();_g61.overrideMimeType("text/html");_g61.open("GET",_fh,true);let _kv1=()=>{this._HO1(_fh,_g61.status,_g61.responseText);
};_g61.onload=_kv1;_g61.onerror=_kv1;_g61.send();}_gi2(_fh,_WU,error){this._ei2(_fh,(data)=>{_WU(JSON.parse(data));},error);}_ci2(_fh,_WU,error){if(this.start(_fh,_WU,error))return;if(this._ai2[_fh]){try{let _Ai2=this._ai2[_fh];this._HO1(_fh,200,this._Fi2(_Ai2));}catch(e){this._HO1(_fh,400,JSON.stringify(e));}return;}let _g61=new XMLHttpRequest();_g61.open("GET",_fh,true);_g61.responseType="arraybuffer";let onerror=()=>{this._HO1(_fh,_g61.status,_g61.response);};_g61.onload=()=>{if(_g61.status==200)this._HO1(_fh,
200,new Uint8Array(_g61.response));else onerror();};_g61.onerror=onerror;_g61.send();}start(_fh,_WU,error){let _yi2=this._yi2[_fh];try{if(_yi2)return true;this._yi2[_fh]=_yi2=[];}finally{_yi2.push(_WU,error);}}_HO1(_fh,status,data){let _yi2=this._yi2[_fh];delete this._yi2[_fh];let _lk=status==200?[data]:[status,data];for(let i=_lk.length-1,_c7=_yi2.length;i<_c7;i+=2)_yi2[i].apply(null,_lk);}};var Event=class {constructor(time,data){if(!data)throw new Error("data cannot be null.");this.time=time;this.data=data;
}};var _lb2=class {constructor(name){this.name=name;}};var _tb2=class {constructor(data,skeleton){this._te2=0;this.compress=false;this.stretch=false;this.mix=1;this._se2=0;this.active=false;if(!data)throw new Error("data cannot be null.");if(!skeleton)throw new Error("skeleton cannot be null.");this.data=data;this.mix=data.mix;this._se2=data._se2;this._te2=data._te2;this.compress=data.compress;this.stretch=data.stretch;this.bones=new Array();for(let i=0;i<data.bones.length;i++)this.bones.push(skeleton._U7(data.bones[i].name));
this.target=skeleton._U7(data.target.name);}__71(){return this.active;}_v6(){if(this.mix==0)return;let target=this.target;let bones=this.bones;switch(bones.length){case 1:this._Gi2(bones[0],target._08,target._18,this.compress,this.stretch,this.data._Hi2,this.mix);break;case 2:this._Ii2(bones[0],bones[1],target._08,target._18,this._te2,this.stretch,this.data._Hi2,this._se2,this.mix);break;}}_Gi2(bone,_Ji2,_Ki2,compress,stretch,_Hi2,alpha){let _2z=bone.parent;let _SC1=_2z._05,_TC1=_2z.__4,_CB1=_2z.c,_Eh2=_2z._Xo;
let _Li2=-bone._yh2-bone._68,_MT=0,_NT=0;switch(bone.data._6c1){case _fc2.OnlyTranslation:_MT=_Ji2-bone._08;_NT=_Ki2-bone._18;break;case _fc2.NoRotationOrReflection:let __h=Math.abs(_SC1*_Eh2-_TC1*_CB1)/(_SC1*_SC1+_CB1*_CB1);let _Mi2=_SC1/bone.skeleton.scaleX;let _Ni2=_CB1/bone.skeleton.scaleY;_TC1=-_Ni2*__h*bone.skeleton.scaleX;_Eh2=_Mi2*__h*bone.skeleton.scaleY;_Li2+=Math.atan2(_Ni2,_Mi2)*_zb2._Lc2;default :let x=_Ji2-_2z._08,y=_Ki2-_2z._18;let _Xo=_SC1*_Eh2-_TC1*_CB1;_MT=(x*_Eh2-y*_TC1)/_Xo-bone.ax;_NT=(y*_SC1-x*_CB1)/_Xo-bone.ay;
}_Li2+=Math.atan2(_NT,_MT)*_zb2._Lc2;if(bone._wh2<0)_Li2+=180;if(_Li2>180)_Li2-=360;else if(_Li2<-180)_Li2+=360;let _YS=bone._wh2,_ZS=bone._xh2;if(compress||stretch){switch(bone.data._6c1){case _fc2.NoScale:case _fc2.NoScaleOrReflection:_MT=_Ji2-bone._08;_NT=_Ki2-bone._18;}let __4=bone.data.length*_YS,_iE=Math.sqrt(_MT*_MT+_NT*_NT);if(compress&&_iE<__4||stretch&&_iE>__4&&__4>1e-4){let __h=(_iE/__4-1)*alpha+1;_YS*=__h;if(_Hi2)_ZS*=__h;}}bone._Ch2(bone.ax,bone.ay,bone._68+_Li2*alpha,_YS,_ZS,bone._yh2,bone._zh2);
}_Ii2(parent,_lg1,_Ji2,_Ki2,_Oi2,stretch,_Hi2,_se2,alpha){let _Jo=parent.ax,_Ko=parent.ay,_Pi2=parent._wh2,_Qi2=parent._xh2,_YS=_Pi2,_ZS=_Qi2,_Ri2=_lg1._wh2;let _Si2=0,_Ti2=0,_Ks=0;if(_Pi2<0){_Pi2=-_Pi2;_Si2=180;_Ks=-1;}else {_Si2=0;_Ks=1;}if(_Qi2<0){_Qi2=-_Qi2;_Ks=-_Ks;}if(_Ri2<0){_Ri2=-_Ri2;_Ti2=180;}else _Ti2=0;let _po=_lg1.ax,_qo=0,_Ui2=0,_Vi2=0,_05=parent._05,__4=parent.__4,c=parent.c,_Xo=parent._Xo;let _G5=Math.abs(_Pi2-_Qi2)<=1e-4;if(!_G5||stretch){_qo=0;_Ui2=_05*_po+parent._08;_Vi2=c*_po+parent._18;
}else {_qo=_lg1.ay;_Ui2=_05*_po+__4*_qo+parent._08;_Vi2=c*_po+_Xo*_qo+parent._18;}let _Wi2=parent.parent;_05=_Wi2._05;__4=_Wi2.__4;c=_Wi2.c;_Xo=_Wi2._Xo;let id=1/(_05*_Xo-__4*c),x=_Ui2-_Wi2._08,y=_Vi2-_Wi2._18;let __b=(x*_Xo-y*__4)*id-_Jo,_0c=(y*_05-x*c)*id-_Ko;let _Xi2=Math.sqrt(__b*__b+_0c*_0c),_kT1=_lg1.data.length*_Ri2,_Je1,_Ke1;if(_Xi2<1e-4){this._Gi2(parent,_Ji2,_Ki2,false,stretch,false,alpha);_lg1._Ch2(_po,_qo,0,_lg1._wh2,_lg1._xh2,_lg1._yh2,_lg1._zh2);return;}x=_Ji2-_Wi2._08;y=_Ki2-_Wi2._18;let _MT=(x*_Xo-y*__4)*id-_Jo,
_NT=(y*_05-x*c)*id-_Ko;let _iE=_MT*_MT+_NT*_NT;if(_se2!=0){_se2*=_Pi2*(_Ri2+1)*0.5;let _Yi2=Math.sqrt(_iE),_Zi2=_Yi2-_Xi2-_kT1*_Pi2+_se2;if(_Zi2>0){let _2z=Math.min(1,_Zi2/(_se2*2))-1;_2z=(_Zi2-_se2*(1-_2z*_2z))/_Yi2;_MT-=_2z*_MT;_NT-=_2z*_NT;_iE=_MT*_MT+_NT*_NT;}}_Rf2:if(_G5){_kT1*=_Pi2;let cos=(_iE-_Xi2*_Xi2-_kT1*_kT1)/(2*_Xi2*_kT1);if(cos<-1){cos=-1;_Ke1=Math.PI*_Oi2;}else if(cos>1){cos=1;_Ke1=0;if(stretch){_05=(Math.sqrt(_iE)/(_Xi2+_kT1)-1)*alpha+1;_YS*=_05;if(_Hi2)_ZS*=_05;}}else _Ke1=Math.acos(cos)*_Oi2;
_05=_Xi2+_kT1*cos;__4=_kT1*Math.sin(_Ke1);_Je1=Math.atan2(_NT*_05-_MT*__4,_MT*_05+_NT*__4);}else {_05=_Pi2*_kT1;__4=_Qi2*_kT1;let __i2=_05*_05,_qD=__4*__4,_0j2=Math.atan2(_NT,_MT);c=_qD*_Xi2*_Xi2+__i2*_iE-__i2*_qD;let _Ok1=-2*_qD*_Xi2,_Pk1=_qD-__i2;_Xo=_Ok1*_Ok1-4*_Pk1*c;if(_Xo>=0){let q=Math.sqrt(_Xo);if(_Ok1<0)q=-q;q=-(_Ok1+q)*0.5;let _CE1=q/_Pk1,_8A=c/q;let _Y4=Math.abs(_CE1)<Math.abs(_8A)?_CE1:_8A;if(_Y4*_Y4<=_iE){y=Math.sqrt(_iE-_Y4*_Y4)*_Oi2;_Je1=_0j2-Math.atan2(y,_Y4);_Ke1=Math.atan2(y/_Qi2,(_Y4-_Xi2)/_Pi2);
break _Rf2;}}let _1j2=_zb2.PI,_O6=_Xi2-_05,_2j2=_O6*_O6,_Q6=0;let _3j2=0,_P6=_Xi2+_05,_4j2=_P6*_P6,_R6=0;c=-_05*_Xi2/(__i2-_qD);if(c>=-1&&c<=1){c=Math.acos(c);x=_05*Math.cos(c)+_Xi2;y=__4*Math.sin(c);_Xo=x*x+y*y;if(_Xo<_2j2){_1j2=c;_2j2=_Xo;_O6=x;_Q6=y;}if(_Xo>_4j2){_3j2=c;_4j2=_Xo;_P6=x;_R6=y;}}if(_iE<=(_2j2+_4j2)*0.5){_Je1=_0j2-Math.atan2(_Q6*_Oi2,_O6);_Ke1=_1j2*_Oi2;}else {_Je1=_0j2-Math.atan2(_R6*_Oi2,_P6);_Ke1=_3j2*_Oi2;}}let _EP1=Math.atan2(_qo,_po)*_Ks;let rotation=parent._68;_Je1=(_Je1-_EP1)*_zb2._Lc2+_Si2-rotation;
if(_Je1>180)_Je1-=360;else if(_Je1<-180)_Je1+=360;parent._Ch2(_Jo,_Ko,rotation+_Je1*alpha,_YS,_ZS,0,0);rotation=_lg1._68;_Ke1=((_Ke1+_EP1)*_zb2._Lc2-_lg1._yh2)*_Ks+_Ti2-rotation;if(_Ke1>180)_Ke1-=360;else if(_Ke1<-180)_Ke1+=360;_lg1._Ch2(_po,_qo,rotation+_Ke1*alpha,_lg1._wh2,_lg1._xh2,_lg1._yh2,_lg1._zh2);}};var _ub2=class  extends _db2{constructor(name){super(name,0,false);this.bones=new Array();this._te2=1;this.compress=false;this.stretch=false;this._Hi2=false;this.mix=1;this._se2=0;}};var _Eb2=class  extends _db2{
constructor(name){super(name,0,false);this.bones=new Array();this._xe2=0;this._ye2=0;this._ze2=0;}};var _Kb2;(function(_5j2){_5j2[_5j2["Fixed"]=0]="Fixed";_5j2[_5j2["Percent"]=1]="Percent";})(_Kb2||(_Kb2={}));var _5c2;(function(_6j2){_6j2[_6j2["Length"]=0]="Length";_6j2[_6j2["Fixed"]=1]="Fixed";_6j2[_6j2["Percent"]=2]="Percent";_6j2[_6j2["Proportional"]=3]="Proportional";})(_5c2||(_5c2={}));var _Rb2;(function(_7j2){_7j2[_7j2["Tangent"]=0]="Tangent";_7j2[_7j2["Chain"]=1]="Chain";_7j2[_7j2["ChainScale"]=2]="ChainScale";
})(_Rb2||(_Rb2={}));var _8j2=class {constructor(data,skeleton){this.position=0;this.spacing=0;this._xe2=0;this._ye2=0;this._ze2=0;this._9j2=new Array();this._ny1=new Array();this._Gv1=new Array();this._Jd2=new Array();this.lengths=new Array();this._si=new Array();this.active=false;if(!data)throw new Error("data cannot be null.");if(!skeleton)throw new Error("skeleton cannot be null.");this.data=data;this.bones=new Array();for(let i=0,_c7=data.bones.length;i<_c7;i++)this.bones.push(skeleton._U7(data.bones[i].name));
this.target=skeleton._Q4(data.target.name);this.position=data.position;this.spacing=data.spacing;this._xe2=data._xe2;this._ye2=data._ye2;this._ze2=data._ze2;}__71(){return this.active;}_v6(){let attachment=this.target._U4();if(!(attachment instanceof _Cb2))return;let _xe2=this._xe2,_ye2=this._ye2,_ze2=this._ze2;if(_xe2==0&&_ye2==0&&_ze2==0)return;let data=this.data;let _aj2=data.rotateMode==_Rb2.Tangent,scale=data.rotateMode==_Rb2.ChainScale;let bones=this.bones;let _bj2=bones.length,_cj2=_aj2?_bj2:_bj2+1;
let _9j2=_kc2._Wc2(this._9j2,_cj2),lengths=scale?this.lengths=_kc2._Wc2(this.lengths,_bj2):null;let spacing=this.spacing;switch(data.spacingMode){case _5c2.Percent:if(scale){for(let i=0,_c7=_cj2-1;i<_c7;i++){let bone=bones[i];let _dj2=bone.data.length;if(_dj2<_8j2._P52)lengths[i]=0;else {let x=_dj2*bone._05,y=_dj2*bone.c;lengths[i]=Math.sqrt(x*x+y*y);}}}_kc2._Tc2(_9j2,1,_cj2,spacing);break;case _5c2._ej2:let _fj2=0;for(let i=0,_c7=_cj2-1;i<_c7;){let bone=bones[i];let _dj2=bone.data.length;if(_dj2<_8j2._P52){
if(scale)lengths[i]=0;_9j2[++i]=spacing;}else {let x=_dj2*bone._05,y=_dj2*bone.c;let length=Math.sqrt(x*x+y*y);if(scale)lengths[i]=length;_9j2[++i]=length;_fj2+=length;}}if(_fj2>0){_fj2=_cj2/_fj2*spacing;for(let i=1;i<_cj2;i++)_9j2[i]*=_fj2;}break;default :let _gj2=data.spacingMode==_5c2.Length;for(let i=0,_c7=_cj2-1;i<_c7;){let bone=bones[i];let _dj2=bone.data.length;if(_dj2<_8j2._P52){if(scale)lengths[i]=0;_9j2[++i]=spacing;}else {let x=_dj2*bone._05,y=_dj2*bone.c;let length=Math.sqrt(x*x+y*y);if(scale)lengths[i]=length;
_9j2[++i]=(_gj2?_dj2+spacing:spacing)*length/_dj2;}}}let _ny1=this._hj2(attachment,_cj2,_aj2);let _ij2=_ny1[0],_jj2=_ny1[1],_kj2=data._kj2;let _lj2=false;if(_kj2==0)_lj2=data.rotateMode==_Rb2.Chain;else {_lj2=false;let _2z=this.target.bone;_kj2*=_2z._05*_2z._Xo-_2z.__4*_2z.c>0?_zb2._Dc2:-_zb2._Dc2;}for(let i=0,_2z=3;i<_bj2;i++,_2z+=3){let bone=bones[i];bone._08+=(_ij2-bone._08)*_ye2;bone._18+=(_jj2-bone._18)*_ze2;let x=_ny1[_2z],y=_ny1[_2z+1],__b=x-_ij2,_0c=y-_jj2;if(scale){let length=lengths[i];if(length!=0){
let __h=(Math.sqrt(__b*__b+_0c*_0c)/length-1)*_xe2+1;bone._05*=__h;bone.c*=__h;}}_ij2=x;_jj2=y;if(_xe2>0){let _05=bone._05,__4=bone.__4,c=bone.c,_Xo=bone._Xo,_Y4=0,cos=0,sin=0;if(_aj2)_Y4=_ny1[_2z-1];else if(_9j2[i+1]==0)_Y4=_ny1[_2z+2];else _Y4=Math.atan2(_0c,__b);_Y4-=Math.atan2(c,_05);if(_lj2){cos=Math.cos(_Y4);sin=Math.sin(_Y4);let length=bone.data.length;_ij2+=(length*(cos*_05-sin*c)-__b)*_xe2;_jj2+=(length*(sin*_05+cos*c)-_0c)*_xe2;}else {_Y4+=_kj2;}if(_Y4>_zb2.PI)_Y4-=_zb2._Jc2;else if(_Y4<-_zb2.PI)_Y4+=_zb2._Jc2;
_Y4*=_xe2;cos=Math.cos(_Y4);sin=Math.sin(_Y4);bone._05=cos*_05-sin*c;bone.__4=cos*__4-sin*_Xo;bone.c=sin*_05+cos*c;bone._Xo=sin*__4+cos*_Xo;}bone._Ph2();}}_hj2(path,_cj2,_aj2){let target=this.target;let position=this.position;let _9j2=this._9j2,out=_kc2._Wc2(this._ny1,_cj2*3+2),_Gv1=null;let _mj2=path.closed;let _nj2=path._Ba,_oj2=_nj2/6,_pj2=_8j2._qj2;if(!path._zg2){let lengths=path.lengths;_oj2-=_mj2?1:2;let _rj2=lengths[_oj2];if(this.data._sj2==_Kb2.Percent)position*=_rj2;let _tj2;switch(this.data.spacingMode){
case _5c2.Percent:_tj2=_rj2;break;case _5c2._ej2:_tj2=_rj2/_cj2;break;default :_tj2=1;}_Gv1=_kc2._Wc2(this._Gv1,8);for(let i=0,_Dx=0,curve=0;i<_cj2;i++,_Dx+=3){let _uj2=_9j2[i]*_tj2;position+=_uj2;let _2z=position;if(_mj2){_2z%=_rj2;if(_2z<0)_2z+=_rj2;curve=0;}else if(_2z<0){if(_pj2!=_8j2._vj2){_pj2=_8j2._vj2;path._va(target,2,4,_Gv1,0,2);}this._wj2(_2z,_Gv1,0,out,_Dx);continue;}else if(_2z>_rj2){if(_pj2!=_8j2._xj2){_pj2=_8j2._xj2;path._va(target,_nj2-6,4,_Gv1,0,2);}this._yj2(_2z-_rj2,_Gv1,0,out,_Dx);continue;
}for(;;curve++){let length=lengths[curve];if(_2z>length)continue;if(curve==0)_2z/=length;else {let _Xk=lengths[curve-1];_2z=(_2z-_Xk)/(length-_Xk);}break;}if(curve!=_pj2){_pj2=curve;if(_mj2&&curve==_oj2){path._va(target,_nj2-4,4,_Gv1,0,2);path._va(target,0,4,_Gv1,4,2);}else path._va(target,curve*6+2,8,_Gv1,0,2);}this._zj2(_2z,_Gv1[0],_Gv1[1],_Gv1[2],_Gv1[3],_Gv1[4],_Gv1[5],_Gv1[6],_Gv1[7],out,_Dx,_aj2||i>0&&_uj2==0);}return out;}if(_mj2){_nj2+=2;_Gv1=_kc2._Wc2(this._Gv1,_nj2);path._va(target,2,_nj2-4,
_Gv1,0,2);path._va(target,0,2,_Gv1,_nj2-4,2);_Gv1[_nj2-2]=_Gv1[0];_Gv1[_nj2-1]=_Gv1[1];}else {_oj2--;_nj2-=4;_Gv1=_kc2._Wc2(this._Gv1,_nj2);path._va(target,2,_nj2,_Gv1,0,2);}let _Jd2=_kc2._Wc2(this._Jd2,_oj2);let _Aj2=0;let _f7=_Gv1[0],_g7=_Gv1[1],_Rd2=0,_Sd2=0,_Td2=0,_Ud2=0,_h7=0,_i7=0;let _Wd2=0,_Xd2=0,_Bj2=0,_Cj2=0,_Dj2=0,_Ej2=0,_Fj2=0,_Gj2=0;for(let i=0,w=2;i<_oj2;i++,w+=6){_Rd2=_Gv1[w];_Sd2=_Gv1[w+1];_Td2=_Gv1[w+2];_Ud2=_Gv1[w+3];_h7=_Gv1[w+4];_i7=_Gv1[w+5];_Wd2=(_f7-_Rd2*2+_Td2)*0.1875;_Xd2=(_g7-_Sd2*2+_Ud2)*0.1875;
_Bj2=((_Rd2-_Td2)*3-_f7+_h7)*0.09375;_Cj2=((_Sd2-_Ud2)*3-_g7+_i7)*0.09375;_Dj2=_Wd2*2+_Bj2;_Ej2=_Xd2*2+_Cj2;_Fj2=(_Rd2-_f7)*0.75+_Wd2+_Bj2*0.16666667;_Gj2=(_Sd2-_g7)*0.75+_Xd2+_Cj2*0.16666667;_Aj2+=Math.sqrt(_Fj2*_Fj2+_Gj2*_Gj2);_Fj2+=_Dj2;_Gj2+=_Ej2;_Dj2+=_Bj2;_Ej2+=_Cj2;_Aj2+=Math.sqrt(_Fj2*_Fj2+_Gj2*_Gj2);_Fj2+=_Dj2;_Gj2+=_Ej2;_Aj2+=Math.sqrt(_Fj2*_Fj2+_Gj2*_Gj2);_Fj2+=_Dj2+_Bj2;_Gj2+=_Ej2+_Cj2;_Aj2+=Math.sqrt(_Fj2*_Fj2+_Gj2*_Gj2);_Jd2[i]=_Aj2;_f7=_h7;_g7=_i7;}if(this.data._sj2==_Kb2.Percent)position*=_Aj2;
let _U02;switch(this.data.spacingMode){case _5c2.Percent:_U02=_Aj2;break;case _5c2._ej2:_U02=_Aj2/_cj2;break;default :_U02=1;}let _si=this._si;let _Hj2=0;for(let i=0,_Dx=0,curve=0,_Ij2=0;i<_cj2;i++,_Dx+=3){let _uj2=_9j2[i]*_U02;position+=_uj2;let _2z=position;if(_mj2){_2z%=_Aj2;if(_2z<0)_2z+=_Aj2;curve=0;}else if(_2z<0){this._wj2(_2z,_Gv1,0,out,_Dx);continue;}else if(_2z>_Aj2){this._yj2(_2z-_Aj2,_Gv1,_nj2-4,out,_Dx);continue;}for(;;curve++){let length=_Jd2[curve];if(_2z>length)continue;if(curve==0)_2z/=length;
else {let _Xk=_Jd2[curve-1];_2z=(_2z-_Xk)/(length-_Xk);}break;}if(curve!=_pj2){_pj2=curve;let _Tx=curve*6;_f7=_Gv1[_Tx];_g7=_Gv1[_Tx+1];_Rd2=_Gv1[_Tx+2];_Sd2=_Gv1[_Tx+3];_Td2=_Gv1[_Tx+4];_Ud2=_Gv1[_Tx+5];_h7=_Gv1[_Tx+6];_i7=_Gv1[_Tx+7];_Wd2=(_f7-_Rd2*2+_Td2)*0.03;_Xd2=(_g7-_Sd2*2+_Ud2)*0.03;_Bj2=((_Rd2-_Td2)*3-_f7+_h7)*6e-3;_Cj2=((_Sd2-_Ud2)*3-_g7+_i7)*6e-3;_Dj2=_Wd2*2+_Bj2;_Ej2=_Xd2*2+_Cj2;_Fj2=(_Rd2-_f7)*0.3+_Wd2+_Bj2*0.16666667;_Gj2=(_Sd2-_g7)*0.3+_Xd2+_Cj2*0.16666667;_Hj2=Math.sqrt(_Fj2*_Fj2+_Gj2*_Gj2);
_si[0]=_Hj2;for(_Tx=1;_Tx<8;_Tx++){_Fj2+=_Dj2;_Gj2+=_Ej2;_Dj2+=_Bj2;_Ej2+=_Cj2;_Hj2+=Math.sqrt(_Fj2*_Fj2+_Gj2*_Gj2);_si[_Tx]=_Hj2;}_Fj2+=_Dj2;_Gj2+=_Ej2;_Hj2+=Math.sqrt(_Fj2*_Fj2+_Gj2*_Gj2);_si[8]=_Hj2;_Fj2+=_Dj2+_Bj2;_Gj2+=_Ej2+_Cj2;_Hj2+=Math.sqrt(_Fj2*_Fj2+_Gj2*_Gj2);_si[9]=_Hj2;_Ij2=0;}_2z*=_Hj2;for(;;_Ij2++){let length=_si[_Ij2];if(_2z>length)continue;if(_Ij2==0)_2z/=length;else {let _Xk=_si[_Ij2-1];_2z=_Ij2+(_2z-_Xk)/(length-_Xk);}break;}this._zj2(_2z*0.1,_f7,_g7,_Rd2,_Sd2,_Td2,_Ud2,_h7,_i7,out,
_Dx,_aj2||i>0&&_uj2==0);}return out;}_wj2(_2z,_DD,i,out,_Dx){let _f7=_DD[i],_g7=_DD[i+1],__b=_DD[i+2]-_f7,_0c=_DD[i+3]-_g7,_Y4=Math.atan2(_0c,__b);out[_Dx]=_f7+_2z*Math.cos(_Y4);out[_Dx+1]=_g7+_2z*Math.sin(_Y4);out[_Dx+2]=_Y4;}_yj2(_2z,_DD,i,out,_Dx){let _f7=_DD[i+2],_g7=_DD[i+3],__b=_f7-_DD[i],_0c=_g7-_DD[i+1],_Y4=Math.atan2(_0c,__b);out[_Dx]=_f7+_2z*Math.cos(_Y4);out[_Dx+1]=_g7+_2z*Math.sin(_Y4);out[_Dx+2]=_Y4;}_zj2(_2z,_f7,_g7,_Rd2,_Sd2,_Td2,_Ud2,_h7,_i7,out,_Dx,_aj2){if(_2z==0||isNaN(_2z)){out[_Dx]=_f7;
out[_Dx+1]=_g7;out[_Dx+2]=Math.atan2(_Sd2-_g7,_Rd2-_f7);return;}let _kI=_2z*_2z,_Jj2=_kI*_2z,_G5=1-_2z,_Kj2=_G5*_G5,_Lj2=_Kj2*_G5;let _Mj2=_G5*_2z,_Nj2=_Mj2*3,_Oj2=_G5*_Nj2,_Pj2=_Nj2*_2z;let x=_f7*_Lj2+_Rd2*_Oj2+_Td2*_Pj2+_h7*_Jj2,y=_g7*_Lj2+_Sd2*_Oj2+_Ud2*_Pj2+_i7*_Jj2;out[_Dx]=x;out[_Dx+1]=y;if(_aj2){if(_2z<1e-3)out[_Dx+2]=Math.atan2(_Sd2-_g7,_Rd2-_f7);else out[_Dx+2]=Math.atan2(y-(_g7*_Kj2+_Sd2*_Mj2*2+_Ud2*_kI),x-(_f7*_Kj2+_Rd2*_Mj2*2+_Td2*_kI));}}};var _Db2=_8j2;_Db2._qj2=-1;_Db2._vj2=-2;_Db2._xj2=-3;
_Db2._P52=1e-5;var _3c2=class {constructor(data,bone){this.deform=new Array();if(!data)throw new Error("data cannot be null.");if(!bone)throw new Error("bone cannot be null.");this.data=data;this.bone=bone;this.color=new _15();this._ib=!data._ib?null:new _15();this._Bh2();}_Qj2(){return this.bone.skeleton;}_U4(){return this.attachment;}_R4(attachment){if(this.attachment==attachment)return;if(!(attachment instanceof _mc2)||!(this.attachment instanceof _mc2)||attachment._od2!=this.attachment._od2){this.deform.length=0;
}this.attachment=attachment;this._Rj2=this.bone.skeleton.time;}_Sj2(time){this._Rj2=this.bone.skeleton.time-time;}_Tj2(){return this.bone.skeleton.time-this._Rj2;}_Bh2(){this.color._16(this.data.color);if(this._ib)this._ib._16(this.data._ib);if(!this.data._oc)this.attachment=null;else {this.attachment=null;this._R4(this.bone.skeleton._U4(this.data.index,this.data._oc));}}};var _cc2=class {constructor(data,skeleton){this._xe2=0;this._ye2=0;this._ze2=0;this._Ae2=0;this._Be2=0;this._Ce2=0;this._DD=new _lc2();
this.active=false;if(!data)throw new Error("data cannot be null.");if(!skeleton)throw new Error("skeleton cannot be null.");this.data=data;this._xe2=data._xe2;this._ye2=data._ye2;this._ze2=data._ze2;this._Ae2=data._Ae2;this._Be2=data._Be2;this._Ce2=data._Ce2;this.bones=new Array();for(let i=0;i<data.bones.length;i++)this.bones.push(skeleton._U7(data.bones[i].name));this.target=skeleton._U7(data.target.name);}__71(){return this.active;}_v6(){if(this._xe2==0&&this._ye2==0&&this._ze2==0&&this._Ae2==0&&this._Ae2==0&&this._Ce2==0)return;
if(this.data._ci){if(this.data._TV)this._Uj2();else this._Vj2();}else {if(this.data._TV)this._Wj2();else this._Xj2();}}_Xj2(){let _xe2=this._xe2,_ye2=this._ye2,_ze2=this._ze2,_Ae2=this._Ae2,_Be2=this._Be2,_Ce2=this._Ce2;let translate=_ye2!=0||_ze2!=0;let target=this.target;let _0j2=target._05,_lI=target.__4,_Yj2=target.c,_Yi2=target._Xo;let _Zj2=_0j2*_Yi2-_lI*_Yj2>0?_zb2._Dc2:-_zb2._Dc2;let _kj2=this.data._kj2*_Zj2;let __j2=this.data.__j2*_Zj2;let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;i++){let bone=bones[i];
if(_xe2!=0){let _05=bone._05,__4=bone.__4,c=bone.c,_Xo=bone._Xo;let _Y4=Math.atan2(_Yj2,_0j2)-Math.atan2(c,_05)+_kj2;if(_Y4>_zb2.PI)_Y4-=_zb2._Jc2;else if(_Y4<-_zb2.PI)_Y4+=_zb2._Jc2;_Y4*=_xe2;let cos=Math.cos(_Y4),sin=Math.sin(_Y4);bone._05=cos*_05-sin*c;bone.__4=cos*__4-sin*_Xo;bone.c=sin*_05+cos*c;bone._Xo=sin*__4+cos*_Xo;}if(translate){let _DD=this._DD;target._Zh2(_DD.set(this.data._K5,this.data._L5));bone._08+=(_DD.x-bone._08)*_ye2;bone._18+=(_DD.y-bone._18)*_ze2;}if(_Ae2!=0){let __h=Math.sqrt(bone._05*bone._05+bone.c*bone.c);
if(__h!=0)__h=(__h+(Math.sqrt(_0j2*_0j2+_Yj2*_Yj2)-__h+this.data._0k2)*_Ae2)/__h;bone._05*=__h;bone.c*=__h;}if(_Be2!=0){let __h=Math.sqrt(bone.__4*bone.__4+bone._Xo*bone._Xo);if(__h!=0)__h=(__h+(Math.sqrt(_lI*_lI+_Yi2*_Yi2)-__h+this.data._1k2)*_Be2)/__h;bone.__4*=__h;bone._Xo*=__h;}if(_Ce2>0){let __4=bone.__4,_Xo=bone._Xo;let _tB1=Math.atan2(_Xo,__4);let _Y4=Math.atan2(_Yi2,_lI)-Math.atan2(_Yj2,_0j2)-(_tB1-Math.atan2(bone.c,bone._05));if(_Y4>_zb2.PI)_Y4-=_zb2._Jc2;else if(_Y4<-_zb2.PI)_Y4+=_zb2._Jc2;
_Y4=_tB1+(_Y4+__j2)*_Ce2;let __h=Math.sqrt(__4*__4+_Xo*_Xo);bone.__4=Math.cos(_Y4)*__h;bone._Xo=Math.sin(_Y4)*__h;}bone._Ph2();}}_Wj2(){let _xe2=this._xe2,_ye2=this._ye2,_ze2=this._ze2,_Ae2=this._Ae2,_Be2=this._Be2,_Ce2=this._Ce2;let translate=_ye2!=0||_ze2!=0;let target=this.target;let _0j2=target._05,_lI=target.__4,_Yj2=target.c,_Yi2=target._Xo;let _Zj2=_0j2*_Yi2-_lI*_Yj2>0?_zb2._Dc2:-_zb2._Dc2;let _kj2=this.data._kj2*_Zj2,__j2=this.data.__j2*_Zj2;let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;
i++){let bone=bones[i];if(_xe2!=0){let _05=bone._05,__4=bone.__4,c=bone.c,_Xo=bone._Xo;let _Y4=Math.atan2(_Yj2,_0j2)+_kj2;if(_Y4>_zb2.PI)_Y4-=_zb2._Jc2;else if(_Y4<-_zb2.PI)_Y4+=_zb2._Jc2;_Y4*=_xe2;let cos=Math.cos(_Y4),sin=Math.sin(_Y4);bone._05=cos*_05-sin*c;bone.__4=cos*__4-sin*_Xo;bone.c=sin*_05+cos*c;bone._Xo=sin*__4+cos*_Xo;}if(translate){let _DD=this._DD;target._Zh2(_DD.set(this.data._K5,this.data._L5));bone._08+=_DD.x*_ye2;bone._18+=_DD.y*_ze2;}if(_Ae2!=0){let __h=(Math.sqrt(_0j2*_0j2+_Yj2*_Yj2)-1+this.data._0k2)*_Ae2+1;
bone._05*=__h;bone.c*=__h;}if(_Be2!=0){let __h=(Math.sqrt(_lI*_lI+_Yi2*_Yi2)-1+this.data._1k2)*_Be2+1;bone.__4*=__h;bone._Xo*=__h;}if(_Ce2>0){let _Y4=Math.atan2(_Yi2,_lI)-Math.atan2(_Yj2,_0j2);if(_Y4>_zb2.PI)_Y4-=_zb2._Jc2;else if(_Y4<-_zb2.PI)_Y4+=_zb2._Jc2;let __4=bone.__4,_Xo=bone._Xo;_Y4=Math.atan2(_Xo,__4)+(_Y4-_zb2.PI/2+__j2)*_Ce2;let __h=Math.sqrt(__4*__4+_Xo*_Xo);bone.__4=Math.cos(_Y4)*__h;bone._Xo=Math.sin(_Y4)*__h;}bone._Ph2();}}_Vj2(){let _xe2=this._xe2,_ye2=this._ye2,_ze2=this._ze2,_Ae2=this._Ae2,
_Be2=this._Be2,_Ce2=this._Ce2;let target=this.target;let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;i++){let bone=bones[i];let rotation=bone._68;if(_xe2!=0){let _Y4=target._68-rotation+this.data._kj2;_Y4-=(16384-(16384.499999999996-_Y4/360|0))*360;rotation+=_Y4*_xe2;}let x=bone.ax,y=bone.ay;x+=(target.ax-x+this.data._K5)*_ye2;y+=(target.ay-y+this.data._L5)*_ze2;let scaleX=bone._wh2,scaleY=bone._xh2;if(_Ae2!=0&&scaleX!=0)scaleX=(scaleX+(target._wh2-scaleX+this.data._0k2)*_Ae2)/scaleX;if(_Be2!=0&&scaleY!=0)scaleY=(scaleY+(target._xh2-scaleY+this.data._1k2)*_Be2)/scaleY;
let shearY=bone._zh2;if(_Ce2!=0){let _Y4=target._zh2-shearY+this.data.__j2;_Y4-=(16384-(16384.499999999996-_Y4/360|0))*360;shearY+=_Y4*_Ce2;}bone._Ch2(x,y,rotation,scaleX,scaleY,bone._yh2,shearY);}}_Uj2(){let _xe2=this._xe2,_ye2=this._ye2,_ze2=this._ze2,_Ae2=this._Ae2,_Be2=this._Be2,_Ce2=this._Ce2;let target=this.target;let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;i++){let bone=bones[i];let rotation=bone._68+(target._68+this.data._kj2)*_xe2;let x=bone.ax+(target.ax+this.data._K5)*_ye2;let y=bone.ay+(target.ay+this.data._L5)*_ze2;
let scaleX=bone._wh2*((target._wh2-1+this.data._0k2)*_Ae2+1);let scaleY=bone._xh2*((target._xh2-1+this.data._1k2)*_Be2+1);let shearY=bone._zh2+(target._zh2+this.data.__j2)*_Ce2;bone._Ch2(x,y,rotation,scaleX,scaleY,bone._yh2,shearY);}}};var _T3=class {constructor(data){this._2k2=new Array();this.time=0;this.scaleX=1;this.scaleY=1;this.x=0;this.y=0;if(!data)throw new Error("data cannot be null.");this.data=data;this.bones=new Array();for(let i=0;i<data.bones.length;i++){let _E8=data.bones[i];let bone;if(!_E8.parent)bone=new _ab2(_E8,
this,null);else {let parent=this.bones[_E8.parent.index];bone=new _ab2(_E8,this,parent);parent._jg1.push(bone);}this.bones.push(bone);}this.slots=new Array();this.drawOrder=new Array();for(let i=0;i<data.slots.length;i++){let _3k2=data.slots[i];let bone=this.bones[_3k2._E8.index];let slot=new _3c2(_3k2,bone);this.slots.push(slot);this.drawOrder.push(slot);}this._ve2=new Array();for(let i=0;i<data._ve2.length;i++){let _4k2=data._ve2[i];this._ve2.push(new _tb2(_4k2,this));}this._De2=new Array();for(let i=0;i<data._De2.length;
i++){let _5k2=data._De2[i];this._De2.push(new _cc2(_5k2,this));}this._Fe2=new Array();for(let i=0;i<data._Fe2.length;i++){let _6k2=data._Fe2[i];this._Fe2.push(new _Db2(_6k2,this));}this.color=new _15(1,1,1,1);this._7k2();}_7k2(){let _7k2=this._2k2;_7k2.length=0;let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;i++){let bone=bones[i];bone._Ah2=bone.data._uh2;bone.active=!bone._Ah2;}if(this.skin){let _8k2=this.skin.bones;for(let i=0,_c7=this.skin.bones.length;i<_c7;i++){let bone=this.bones[_8k2[i].index];
do {bone._Ah2=false;bone.active=true;bone=bone.parent;}while(bone);}}let _ve2=this._ve2;let _De2=this._De2;let _Fe2=this._Fe2;let _9k2=_ve2.length,_ak2=_De2.length,_bk2=_Fe2.length;let _ck2=_9k2+_ak2+_bk2;_Rf2:for(let i=0;i<_ck2;i++){for(let _Tx=0;_Tx<_9k2;_Tx++){let _ue2=_ve2[_Tx];if(_ue2.data._4i2==i){this._dk2(_ue2);continue _Rf2;}}for(let _Tx=0;_Tx<_ak2;_Tx++){let _ue2=_De2[_Tx];if(_ue2.data._4i2==i){this._ek2(_ue2);continue _Rf2;}}for(let _Tx=0;_Tx<_bk2;_Tx++){let _ue2=_Fe2[_Tx];if(_ue2.data._4i2==i){this._fk2(_ue2);
continue _Rf2;}}}for(let i=0,_c7=bones.length;i<_c7;i++)this._gk2(bones[i]);}_dk2(_ue2){_ue2.active=_ue2.target.__71()&&(!_ue2.data._uh2||this.skin&&_kc2._oc2(this.skin._1a1,_ue2.data,true));if(!_ue2.active)return;let target=_ue2.target;this._gk2(target);let _hk2=_ue2.bones;let parent=_hk2[0];this._gk2(parent);if(_hk2.length==1){this._2k2.push(_ue2);this._ik2(parent._jg1);}else {let _lg1=_hk2[_hk2.length-1];this._gk2(_lg1);this._2k2.push(_ue2);this._ik2(parent._jg1);_lg1._Ah2=true;}}_fk2(_ue2){_ue2.active=_ue2.target.bone.__71()&&(!_ue2.data._uh2||this.skin&&_kc2._oc2(this.skin._1a1,
_ue2.data,true));if(!_ue2.active)return;let slot=_ue2.target;let _S4=slot.data.index;let _jk2=slot.bone;if(this.skin)this._kk2(this.skin,_S4,_jk2);if(this.data._D4&&this.data._D4!=this.skin)this._kk2(this.data._D4,_S4,_jk2);for(let i=0,_c7=this.data.skins.length;i<_c7;i++)this._kk2(this.data.skins[i],_S4,_jk2);let attachment=slot._U4();if(attachment instanceof _Cb2)this._lk2(attachment,_jk2);let _hk2=_ue2.bones;let _bj2=_hk2.length;for(let i=0;i<_bj2;i++)this._gk2(_hk2[i]);this._2k2.push(_ue2);for(let i=0;
i<_bj2;i++)this._ik2(_hk2[i]._jg1);for(let i=0;i<_bj2;i++)_hk2[i]._Ah2=true;}_ek2(_ue2){_ue2.active=_ue2.target.__71()&&(!_ue2.data._uh2||this.skin&&_kc2._oc2(this.skin._1a1,_ue2.data,true));if(!_ue2.active)return;this._gk2(_ue2.target);let _hk2=_ue2.bones;let _bj2=_hk2.length;if(_ue2.data._ci){for(let i=0;i<_bj2;i++){let _lg1=_hk2[i];this._gk2(_lg1.parent);this._gk2(_lg1);}}else {for(let i=0;i<_bj2;i++){this._gk2(_hk2[i]);}}this._2k2.push(_ue2);for(let i=0;i<_bj2;i++)this._ik2(_hk2[i]._jg1);for(let i=0;
i<_bj2;i++)_hk2[i]._Ah2=true;}_kk2(skin,_S4,_jk2){let attachments=skin.attachments[_S4];if(!attachments)return;for(let key in attachments){this._lk2(attachments[key],_jk2);}}_lk2(attachment,_jk2){if(!(attachment instanceof _Cb2))return;let _mk2=attachment.bones;if(!_mk2)this._gk2(_jk2);else {let bones=this.bones;for(let i=0,_c7=_mk2.length;i<_c7;){let _nk2=_mk2[i++];_nk2+=i;while(i<_nk2)this._gk2(bones[_mk2[i++]]);}}}_gk2(bone){if(bone._Ah2)return;let parent=bone.parent;if(parent)this._gk2(parent);bone._Ah2=true;
this._2k2.push(bone);}_ik2(bones){for(let i=0,_c7=bones.length;i<_c7;i++){let bone=bones[i];if(!bone.active)continue;if(bone._Ah2)this._ik2(bone._jg1);bone._Ah2=false;}}_k6(){let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;i++){let bone=bones[i];bone.ax=bone.x;bone.ay=bone.y;bone._68=bone.rotation;bone._wh2=bone.scaleX;bone._xh2=bone.scaleY;bone._yh2=bone.shearX;bone._zh2=bone.shearY;}let _7k2=this._2k2;for(let i=0,_c7=_7k2.length;i<_c7;i++)_7k2[i]._v6();}_Ch2(parent){let _ok2=this._g6();let _SC1=parent._05,
_TC1=parent.__4,_CB1=parent.c,_Eh2=parent._Xo;_ok2._08=_SC1*this.x+_TC1*this.y+parent._08;_ok2._18=_CB1*this.x+_Eh2*this.y+parent._18;let _Dh2=_ok2.rotation+90+_ok2.shearY;let _Fh2=_zb2._Cc2(_ok2.rotation+_ok2.shearX)*_ok2.scaleX;let _Gh2=_zb2._Cc2(_Dh2)*_ok2.scaleY;let _Xc1=_zb2._Ec2(_ok2.rotation+_ok2.shearX)*_ok2.scaleX;let _Hh2=_zb2._Ec2(_Dh2)*_ok2.scaleY;_ok2._05=(_SC1*_Fh2+_TC1*_Xc1)*this.scaleX;_ok2.__4=(_SC1*_Gh2+_TC1*_Hh2)*this.scaleX;_ok2.c=(_CB1*_Fh2+_Eh2*_Xc1)*this.scaleY;_ok2._Xo=(_CB1*_Gh2+_Eh2*_Hh2)*this.scaleY;
let _7k2=this._2k2;for(let i=0,_c7=_7k2.length;i<_c7;i++){let _pk2=_7k2[i];if(_pk2!=_ok2)_pk2._v6();}}_Bh2(){this._qk2();this._G4();}_qk2(){let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;i++)bones[i]._Bh2();let _ve2=this._ve2;for(let i=0,_c7=_ve2.length;i<_c7;i++){let _ue2=_ve2[i];_ue2.mix=_ue2.data.mix;_ue2._se2=_ue2.data._se2;_ue2._te2=_ue2.data._te2;_ue2.compress=_ue2.data.compress;_ue2.stretch=_ue2.data.stretch;}let _De2=this._De2;for(let i=0,_c7=_De2.length;i<_c7;i++){let _ue2=_De2[i];let data=_ue2.data;
_ue2._xe2=data._xe2;_ue2._ye2=data._ye2;_ue2._ze2=data._ze2;_ue2._Ae2=data._Ae2;_ue2._Be2=data._Be2;_ue2._Ce2=data._Ce2;}let _Fe2=this._Fe2;for(let i=0,_c7=_Fe2.length;i<_c7;i++){let _ue2=_Fe2[i];let data=_ue2.data;_ue2.position=data.position;_ue2.spacing=data.spacing;_ue2._xe2=data._xe2;_ue2._ye2=data._ye2;_ue2._ze2=data._ze2;}}_G4(){let slots=this.slots;_kc2._Pc2(slots,0,this.drawOrder,0,slots.length);for(let i=0,_c7=slots.length;i<_c7;i++)slots[i]._Bh2();}_g6(){if(this.bones.length==0)return null;return this.bones[0];
}_U7(_rk2){if(!_rk2)throw new Error("boneName cannot be null.");let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;i++){let bone=bones[i];if(bone.data.name==_rk2)return bone;}return null;}_Q4(_sk2){if(!_sk2)throw new Error("slotName cannot be null.");let slots=this.slots;for(let i=0,_c7=slots.length;i<_c7;i++){let slot=slots[i];if(slot.data.name==_sk2)return slot;}return null;}_H4(_tk2){let skin=this.data._g8(_tk2);if(!skin)throw new Error("Skin not found: "+_tk2);this._F4(skin);}_F4(_d8){if(_d8==this.skin)return;
if(_d8){if(this.skin)_d8._uk2(this,this.skin);else {let slots=this.slots;for(let i=0,_c7=slots.length;i<_c7;i++){let slot=slots[i];let name=slot.data._oc;if(name){let attachment=_d8._U4(i,name);if(attachment)slot._R4(attachment);}}}}this.skin=_d8;this._7k2();}_vk2(_sk2,_oc){return this._U4(this.data._Q4(_sk2).index,_oc);}_U4(_S4,_oc){if(!_oc)throw new Error("attachmentName cannot be null.");if(this.skin){let attachment=this.skin._U4(_S4,_oc);if(attachment)return attachment;}if(this.data._D4)return this.data._D4._U4(_S4,
_oc);return null;}_R4(_sk2,_oc){if(!_sk2)throw new Error("slotName cannot be null.");let slots=this.slots;for(let i=0,_c7=slots.length;i<_c7;i++){let slot=slots[i];if(slot.data.name==_sk2){let attachment=null;if(_oc){attachment=this._U4(i,_oc);if(!attachment)throw new Error("Attachment not found: "+_oc+", for slot: "+_sk2);}slot._R4(attachment);return;}}throw new Error("Slot not found: "+_sk2);}_wk2(_xk2){if(!_xk2)throw new Error("constraintName cannot be null.");let _ve2=this._ve2;for(let i=0,_c7=_ve2.length;
i<_c7;i++){let ikConstraint=_ve2[i];if(ikConstraint.data.name==_xk2)return ikConstraint;}return null;}_yk2(_xk2){if(!_xk2)throw new Error("constraintName cannot be null.");let _De2=this._De2;for(let i=0,_c7=_De2.length;i<_c7;i++){let _ue2=_De2[i];if(_ue2.data.name==_xk2)return _ue2;}return null;}_zk2(_xk2){if(!_xk2)throw new Error("constraintName cannot be null.");let _Fe2=this._Fe2;for(let i=0,_c7=_Fe2.length;i<_c7;i++){let _ue2=_Fe2[i];if(_ue2.data.name==_xk2)return _ue2;}return null;}getBounds(offset,size,_DD=new Array(2)){
if(!offset)throw new Error("offset cannot be null.");if(!size)throw new Error("size cannot be null.");let drawOrder=this.drawOrder;let _O6=Number.POSITIVE_INFINITY,_Q6=Number.POSITIVE_INFINITY,_P6=Number.NEGATIVE_INFINITY,_R6=Number.NEGATIVE_INFINITY;for(let i=0,_c7=drawOrder.length;i<_c7;i++){let slot=drawOrder[i];if(!slot.bone.active)continue;let _nj2=0;let vertices=null;let attachment=slot._U4();if(attachment instanceof __9){_nj2=8;vertices=_kc2._Wc2(_DD,_nj2,0);attachment._va(slot.bone,vertices,0,2);}else if(attachment instanceof _1a){
let _Aa=attachment;_nj2=_Aa._Ba;vertices=_kc2._Wc2(_DD,_nj2,0);_Aa._va(slot,0,_nj2,vertices,0,2);}if(vertices){for(let _Tx=0,_nk2=vertices.length;_Tx<_nk2;_Tx+=2){let x=vertices[_Tx],y=vertices[_Tx+1];_O6=Math.min(_O6,x);_Q6=Math.min(_Q6,y);_P6=Math.max(_P6,x);_R6=Math.max(_R6,y);}}}offset.set(_O6,_Q6);size.set(_P6-_O6,_R6-_Q6);}_v6(_2i){this.time+=_2i;}};var _1c2=class {constructor(){this.bones=new Array();this.slots=new Array();this.skins=new Array();this.events=new Array();this.animations=new Array();this._ve2=new Array();
this._De2=new Array();this._Fe2=new Array();this.fps=0;}_U7(_rk2){if(!_rk2)throw new Error("boneName cannot be null.");let bones=this.bones;for(let i=0,_c7=bones.length;i<_c7;i++){let bone=bones[i];if(bone.name==_rk2)return bone;}return null;}_Q4(_sk2){if(!_sk2)throw new Error("slotName cannot be null.");let slots=this.slots;for(let i=0,_c7=slots.length;i<_c7;i++){let slot=slots[i];if(slot.name==_sk2)return slot;}return null;}_g8(_tk2){if(!_tk2)throw new Error("skinName cannot be null.");let skins=this.skins;for(let i=0,
_c7=skins.length;i<_c7;i++){let skin=skins[i];if(skin.name==_tk2)return skin;}return null;}_Ak2(_Bk2){if(!_Bk2)throw new Error("eventDataName cannot be null.");let events=this.events;for(let i=0,_c7=events.length;i<_c7;i++){let event=events[i];if(event.name==_Bk2)return event;}return null;}_z4(_Ef2){if(!_Ef2)throw new Error("animationName cannot be null.");let animations=this.animations;for(let i=0,_c7=animations.length;i<_c7;i++){let _i4=animations[i];if(_i4.name==_Ef2)return _i4;}return null;}_wk2(_xk2){if(!_xk2)throw new Error("constraintName cannot be null.");
let _ve2=this._ve2;for(let i=0,_c7=_ve2.length;i<_c7;i++){let _ue2=_ve2[i];if(_ue2.name==_xk2)return _ue2;}return null;}_yk2(_xk2){if(!_xk2)throw new Error("constraintName cannot be null.");let _De2=this._De2;for(let i=0,_c7=_De2.length;i<_c7;i++){let _ue2=_De2[i];if(_ue2.name==_xk2)return _ue2;}return null;}_zk2(_xk2){if(!_xk2)throw new Error("constraintName cannot be null.");let _Fe2=this._Fe2;for(let i=0,_c7=_Fe2.length;i<_c7;i++){let _ue2=_Fe2[i];if(_ue2.name==_xk2)return _ue2;}return null;}};var _2c2=class {constructor(_S4,
name,attachment){this._S4=_S4;this.name=name;this.attachment=attachment;}};var _e8=class {constructor(name){this.attachments=new Array();this.bones=Array();this._1a1=new Array();if(!name)throw new Error("name cannot be null.");this.name=name;}_R4(_S4,name,attachment){if(!attachment)throw new Error("attachment cannot be null.");let attachments=this.attachments;if(_S4>=attachments.length)attachments.length=_S4+1;if(!attachments[_S4])attachments[_S4]={};attachments[_S4][name]=attachment;}_Ck2(skin){for(let i=0;
i<skin.bones.length;i++){let bone=skin.bones[i];let _Dk2=false;for(let _Tx=0;_Tx<this.bones.length;_Tx++){if(this.bones[_Tx]==bone){_Dk2=true;break;}}if(!_Dk2)this.bones.push(bone);}for(let i=0;i<skin._1a1.length;i++){let _ue2=skin._1a1[i];let _Dk2=false;for(let _Tx=0;_Tx<this._1a1.length;_Tx++){if(this._1a1[_Tx]==_ue2){_Dk2=true;break;}}if(!_Dk2)this._1a1.push(_ue2);}let attachments=skin._Ek2();for(let i=0;i<attachments.length;i++){var attachment=attachments[i];this._R4(attachment._S4,attachment.name,attachment.attachment);
}}_h8(skin){for(let i=0;i<skin.bones.length;i++){let bone=skin.bones[i];let _Dk2=false;for(let _Tx=0;_Tx<this.bones.length;_Tx++){if(this.bones[_Tx]==bone){_Dk2=true;break;}}if(!_Dk2)this.bones.push(bone);}for(let i=0;i<skin._1a1.length;i++){let _ue2=skin._1a1[i];let _Dk2=false;for(let _Tx=0;_Tx<this._1a1.length;_Tx++){if(this._1a1[_Tx]==_ue2){_Dk2=true;break;}}if(!_Dk2)this._1a1.push(_ue2);}let attachments=skin._Ek2();for(let i=0;i<attachments.length;i++){var attachment=attachments[i];if(!attachment.attachment)continue;
if(attachment.attachment instanceof _1a){attachment.attachment=attachment.attachment._yg2();this._R4(attachment._S4,attachment.name,attachment.attachment);}else {attachment.attachment=attachment.attachment._Am();this._R4(attachment._S4,attachment.name,attachment.attachment);}}}_U4(_S4,name){let _Fk2=this.attachments[_S4];return _Fk2?_Fk2[name]:null;}_Gk2(_S4,name){let _Fk2=this.attachments[_S4];if(_Fk2)_Fk2[name]=null;}_Ek2(){let _pc2=new Array();for(var i=0;i<this.attachments.length;i++){let _Hk2=this.attachments[i];
if(_Hk2){for(let name in _Hk2){let attachment=_Hk2[name];if(attachment)_pc2.push(new _2c2(i,name,attachment));}}}return _pc2;}_sc(_S4,attachments){let _Hk2=this.attachments[_S4];if(_Hk2){for(let name in _Hk2){let attachment=_Hk2[name];if(attachment)attachments.push(new _2c2(_S4,name,attachment));}}}clear(){this.attachments.length=0;this.bones.length=0;this._1a1.length=0;}_uk2(skeleton,_Ik2){let _S4=0;for(let i=0;i<skeleton.slots.length;i++){let slot=skeleton.slots[i];let _fe2=slot._U4();if(_fe2&&_S4<_Ik2.attachments.length){
let _Fk2=_Ik2.attachments[_S4];for(let key in _Fk2){let _Jk2=_Fk2[key];if(_fe2==_Jk2){let attachment=this._U4(_S4,key);if(attachment)slot._R4(attachment);break;}}}_S4++;}}};var _4c2=class {constructor(index,name,_E8){this.color=new _15(1,1,1,1);if(index<0)throw new Error("index must be >= 0.");if(!name)throw new Error("name cannot be null.");if(!_E8)throw new Error("boneData cannot be null.");this.index=index;this.name=name;this._E8=_E8;}};var _Va;(function(_Kk2){_Kk2[_Kk2["Normal"]=0]="Normal";_Kk2[_Kk2["Additive"]=1]="Additive";
_Kk2[_Kk2["Multiply"]=2]="Multiply";_Kk2[_Kk2["Screen"]=3]="Screen";})(_Va||(_Va={}));var _dc2=class  extends _db2{constructor(name){super(name,0,false);this.bones=new Array();this._xe2=0;this._ye2=0;this._ze2=0;this._Ae2=0;this._Be2=0;this._Ce2=0;this._kj2=0;this._K5=0;this._L5=0;this._0k2=0;this._1k2=0;this.__j2=0;this._TV=false;this._ci=false;}};var _0c2=class {constructor(_V5){this.scale=1;this._Lk2=new Array();this._V5=_V5;}_E9(_Mk2){let scale=this.scale;let _Ff2=new _1c2();_Ff2.name="";let input=new _9b2(_Mk2);
let _Nk2=input._Ok2();let _Pk2=input._Ok2();_Ff2.hash=_Pk2==0&&_Nk2==0?null:_Pk2.toString(16)+_Nk2.toString(16);_Ff2.version=input._Qk2();_Ff2.x=input._Rk2();_Ff2.y=input._Rk2();_Ff2.width=input._Rk2();_Ff2.height=input._Rk2();let _Sk2=input._Tk2();if(_Sk2){_Ff2.fps=input._Rk2();_Ff2._Uk2=input._Qk2();_Ff2._Vk2=input._Qk2();}let _c7=0;_c7=input._Wk2(true);for(let i=0;i<_c7;i++)input._6x.push(input._Qk2());_c7=input._Wk2(true);for(let i=0;i<_c7;i++){let name=input._Qk2();let parent=i==0?null:_Ff2.bones[input._Wk2(true)];
let data=new _bb2(i,name,parent);data.rotation=input._Rk2();data.x=input._Rk2()*scale;data.y=input._Rk2()*scale;data.scaleX=input._Rk2();data.scaleY=input._Rk2();data.shearX=input._Rk2();data.shearY=input._Rk2();data.length=input._Rk2()*scale;data._6c1=input._Wk2(true);data._uh2=input._Tk2();if(_Sk2)_15._vc2(data.color,input._Ok2());_Ff2.bones.push(data);}_c7=input._Wk2(true);for(let i=0;i<_c7;i++){let _sk2=input._Qk2();let _E8=_Ff2.bones[input._Wk2(true)];let data=new _4c2(i,_sk2,_E8);_15._vc2(data.color,
input._Ok2());let _ib=input._Ok2();if(_ib!=-1)_15._wc2(data._ib=new _15(),_ib);data._oc=input._Xk2();data._lb=input._Wk2(true);_Ff2.slots.push(data);}_c7=input._Wk2(true);for(let i=0,_nk2;i<_c7;i++){let data=new _ub2(input._Qk2());data._4i2=input._Wk2(true);data._uh2=input._Tk2();_nk2=input._Wk2(true);for(let _Tx=0;_Tx<_nk2;_Tx++)data.bones.push(_Ff2.bones[input._Wk2(true)]);data.target=_Ff2.bones[input._Wk2(true)];data.mix=input._Rk2();data._se2=input._Rk2()*scale;data._te2=input._Yk2();data.compress=input._Tk2();
data.stretch=input._Tk2();data._Hi2=input._Tk2();_Ff2._ve2.push(data);}_c7=input._Wk2(true);for(let i=0,_nk2;i<_c7;i++){let data=new _dc2(input._Qk2());data._4i2=input._Wk2(true);data._uh2=input._Tk2();_nk2=input._Wk2(true);for(let _Tx=0;_Tx<_nk2;_Tx++)data.bones.push(_Ff2.bones[input._Wk2(true)]);data.target=_Ff2.bones[input._Wk2(true)];data._ci=input._Tk2();data._TV=input._Tk2();data._kj2=input._Rk2();data._K5=input._Rk2()*scale;data._L5=input._Rk2()*scale;data._0k2=input._Rk2();data._1k2=input._Rk2();
data.__j2=input._Rk2();data._xe2=input._Rk2();data._ye2=input._Rk2();data._ze2=input._Rk2();data._Ae2=input._Rk2();data._Be2=input._Rk2();data._Ce2=input._Rk2();_Ff2._De2.push(data);}_c7=input._Wk2(true);for(let i=0,_nk2;i<_c7;i++){let data=new _Eb2(input._Qk2());data._4i2=input._Wk2(true);data._uh2=input._Tk2();_nk2=input._Wk2(true);for(let _Tx=0;_Tx<_nk2;_Tx++)data.bones.push(_Ff2.bones[input._Wk2(true)]);data.target=_Ff2.slots[input._Wk2(true)];data._sj2=input._Wk2(true);data.spacingMode=input._Wk2(true);
data.rotateMode=input._Wk2(true);data._kj2=input._Rk2();data.position=input._Rk2();if(data._sj2==_Kb2.Fixed)data.position*=scale;data.spacing=input._Rk2();if(data.spacingMode==_5c2.Length||data.spacingMode==_5c2.Fixed)data.spacing*=scale;data._xe2=input._Rk2();data._ye2=input._Rk2();data._ze2=input._Rk2();_Ff2._Fe2.push(data);}let _D4=this._Zk2(input,_Ff2,true,_Sk2);if(_D4){_Ff2._D4=_D4;_Ff2.skins.push(_D4);}{let i=_Ff2.skins.length;_kc2._Wc2(_Ff2.skins,_c7=i+input._Wk2(true));for(;i<_c7;i++)_Ff2.skins[i]=this._Zk2(input,
_Ff2,false,_Sk2);}_c7=this._Lk2.length;for(let i=0;i<_c7;i++){let __k2=this._Lk2[i];let skin=!__k2.skin?_Ff2._D4:_Ff2._g8(__k2.skin);let parent=skin._U4(__k2._S4,__k2.parent);__k2._Aa._od2=__k2._0l2?parent:__k2._Aa;__k2._Aa._wg2(parent);__k2._Aa._qg2();}this._Lk2.length=0;_c7=input._Wk2(true);for(let i=0;i<_c7;i++){let data=new _lb2(input._Xk2());data._Z3=input._Wk2(false);data.__3=input._Rk2();data._04=input._Qk2();data._Vk2=input._Qk2();if(data._Vk2){data.volume=input._Rk2();data._2u1=input._Rk2();}_Ff2.events.push(data);
}_c7=input._Wk2(true);for(let i=0;i<_c7;i++)_Ff2.animations.push(this._1l2(input,input._Qk2(),_Ff2));return _Ff2;}_Zk2(input,_Ff2,_D4,_Sk2){let skin=null;let _2l2=0;if(_D4){_2l2=input._Wk2(true);if(_2l2==0)return null;skin=new _e8("default");}else {skin=new _e8(input._Xk2());skin.bones.length=input._Wk2(true);for(let i=0,_c7=skin.bones.length;i<_c7;i++)skin.bones[i]=_Ff2.bones[input._Wk2(true)];for(let i=0,_c7=input._Wk2(true);i<_c7;i++)skin._1a1.push(_Ff2._ve2[input._Wk2(true)]);for(let i=0,_c7=input._Wk2(true);
i<_c7;i++)skin._1a1.push(_Ff2._De2[input._Wk2(true)]);for(let i=0,_c7=input._Wk2(true);i<_c7;i++)skin._1a1.push(_Ff2._Fe2[input._Wk2(true)]);_2l2=input._Wk2(true);}for(let i=0;i<_2l2;i++){let _S4=input._Wk2(true);for(let _Tx=0,_nk2=input._Wk2(true);_Tx<_nk2;_Tx++){let name=input._Xk2();let attachment=this._3l2(input,_Ff2,skin,_S4,name,_Sk2);if(attachment)skin._R4(_S4,name,attachment);}}return skin;}_3l2(input,_Ff2,skin,_S4,_oc,_Sk2){let scale=this.scale;let name=input._Xk2();if(!name)name=_oc;switch(input._Yk2()){
case _4l2.Region:{let path=input._Xk2();let rotation=input._Rk2();let x=input._Rk2();let y=input._Rk2();let scaleX=input._Rk2();let scaleY=input._Rk2();let width=input._Rk2();let height=input._Rk2();let color=input._Ok2();if(!path)path=name;let _E5=this._V5._Y5(skin,name,path);if(!_E5)return null;_E5.path=path;_E5.x=x*scale;_E5.y=y*scale;_E5.scaleX=scaleX;_E5.scaleY=scaleY;_E5.rotation=rotation;_E5.width=width*scale;_E5.height=height*scale;_15._vc2(_E5.color,color);_E5._26();return _E5;}case _4l2.BoundingBox:{
let vertexCount=input._Wk2(true);let vertices=this._5l2(input,vertexCount);let color=_Sk2?input._Ok2():0;let _6l2=this._V5._qh2(skin,name);if(!_6l2)return null;_6l2._Ba=vertexCount<<1;_6l2.vertices=vertices.vertices;_6l2.bones=vertices.bones;if(_Sk2)_15._vc2(_6l2.color,color);return _6l2;}case _4l2.Mesh:{let path=input._Xk2();let color=input._Ok2();let vertexCount=input._Wk2(true);let uvs=this._7l2(input,vertexCount<<1,1);let triangles=this._8l2(input);let vertices=this._5l2(input,vertexCount);let _xg2=input._Wk2(true);
let edges=null;let width=0,height=0;if(_Sk2){edges=this._8l2(input);width=input._Rk2();height=input._Rk2();}if(!path)path=name;let _Aa=this._V5._ph2(skin,name,path);if(!_Aa)return null;_Aa.path=path;_15._vc2(_Aa.color,color);_Aa.bones=vertices.bones;_Aa.vertices=vertices.vertices;_Aa._Ba=vertexCount<<1;_Aa.triangles=triangles;_Aa._rg2=uvs;_Aa._qg2();_Aa._xg2=_xg2<<1;if(_Sk2){_Aa.edges=edges;_Aa.width=width*scale;_Aa.height=height*scale;}return _Aa;}case _4l2.LinkedMesh:{let path=input._Xk2();let color=input._Ok2();
let _tk2=input._Xk2();let parent=input._Xk2();let _0l2=input._Tk2();let width=0,height=0;if(_Sk2){width=input._Rk2();height=input._Rk2();}if(!path)path=name;let _Aa=this._V5._ph2(skin,name,path);if(!_Aa)return null;_Aa.path=path;_15._vc2(_Aa.color,color);if(_Sk2){_Aa.width=width*scale;_Aa.height=height*scale;}this._Lk2.push(new LinkedMesh(_Aa,_tk2,_S4,parent,_0l2));return _Aa;}case _4l2.Path:{let _mj2=input._Tk2();let _zg2=input._Tk2();let vertexCount=input._Wk2(true);let vertices=this._5l2(input,vertexCount);
let lengths=_kc2._Yc2(vertexCount/3,0);for(let i=0,_c7=lengths.length;i<_c7;i++)lengths[i]=input._Rk2()*scale;let color=_Sk2?input._Ok2():0;let path=this._V5._rh2(skin,name);if(!path)return null;path.closed=_mj2;path._zg2=_zg2;path._Ba=vertexCount<<1;path.vertices=vertices.vertices;path.bones=vertices.bones;path.lengths=lengths;if(_Sk2)_15._vc2(path.color,color);return path;}case _4l2.Point:{let rotation=input._Rk2();let x=input._Rk2();let y=input._Rk2();let color=_Sk2?input._Ok2():0;let _nq1=this._V5._sh2(skin,
name);if(!_nq1)return null;_nq1.x=x*scale;_nq1.y=y*scale;_nq1.rotation=rotation;if(_Sk2)_15._vc2(_nq1.color,color);return _nq1;}case _4l2._9l2:{let _al2=input._Wk2(true);let vertexCount=input._Wk2(true);let vertices=this._5l2(input,vertexCount);let color=_Sk2?input._Ok2():0;let clip=this._V5._th2(skin,name);if(!clip)return null;clip._6g2=_Ff2.slots[_al2];clip._Ba=vertexCount<<1;clip.vertices=vertices.vertices;clip.bones=vertices.bones;if(_Sk2)_15._vc2(clip.color,color);return clip;}}return null;}_5l2(input,
vertexCount){let scale=this.scale;let _nj2=vertexCount<<1;let vertices=new _bl2();if(!input._Tk2()){vertices.vertices=this._7l2(input,_nj2,scale);return vertices;}let _cl2=new Array();let _4c1=new Array();for(let i=0;i<vertexCount;i++){let _bj2=input._Wk2(true);_4c1.push(_bj2);for(let _Tx=0;_Tx<_bj2;_Tx++){_4c1.push(input._Wk2(true));_cl2.push(input._Rk2()*scale);_cl2.push(input._Rk2()*scale);_cl2.push(input._Rk2());}}vertices.vertices=_kc2._1d2(_cl2);vertices.bones=_4c1;return vertices;}_7l2(input,_c7,scale){
let _tc=new Array(_c7);if(scale==1){for(let i=0;i<_c7;i++)_tc[i]=input._Rk2();}else {for(let i=0;i<_c7;i++)_tc[i]=input._Rk2()*scale;}return _tc;}_8l2(input){let _c7=input._Wk2(true);let _tc=new Array(_c7);for(let i=0;i<_c7;i++)_tc[i]=input._dl2();return _tc;}_1l2(input,name,_Ff2){input._Wk2(true);let _s6=new Array();let scale=this.scale;let _el2=new _15();let _fl2=new _15();for(let i=0,_c7=input._Wk2(true);i<_c7;i++){let _S4=input._Wk2(true);for(let _Tx=0,_nk2=input._Wk2(true);_Tx<_nk2;_Tx++){let _gl2=input._Yk2();let _o6=input._Wk2(true);
let _q6=_o6-1;switch(_gl2){case _hl2:{let _sA=new _8b2(_o6,_S4);for(let frame=0;frame<_o6;frame++)_sA._4e2(frame,input._Rk2(),input._Xk2());_s6.push(_sA);break;}case _il2:{let _Id2=input._Wk2(true);let _sA=new _Pb2(_o6,_Id2,_S4);let time=input._Rk2();let _Y4=input._jl2()/255;let _Z4=input._jl2()/255;let __4=input._jl2()/255;let _05=input._jl2()/255;for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,_Y4,_Z4,__4,_05);if(frame==_q6)break;let _Mv=input._Rk2();let _9A=input._jl2()/255;let _bA=input._jl2()/255;let _xh=input._jl2()/255;
let _Ke1=input._jl2()/255;switch(input._Yk2()){case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,_Y4,_9A,1);_Od2(input,_sA,_Pd2++,frame,1,time,_Mv,_Z4,_bA,1);_Od2(input,_sA,_Pd2++,frame,2,time,_Mv,__4,_xh,1);_Od2(input,_sA,_Pd2++,frame,3,time,_Mv,_05,_Ke1,1);}time=_Mv;_Y4=_9A;_Z4=_bA;__4=_xh;_05=_Ke1;}_s6.push(_sA);break;}case _ml2:{let _Id2=input._Wk2(true);let _sA=new _Qb2(_o6,_Id2,_S4);let time=input._Rk2();let _Y4=input._jl2()/255;let _Z4=input._jl2()/255;let __4=input._jl2()/255;
for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,_Y4,_Z4,__4);if(frame==_q6)break;let _Mv=input._Rk2();let _9A=input._jl2()/255;let _bA=input._jl2()/255;let _xh=input._jl2()/255;switch(input._Yk2()){case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,_Y4,_9A,1);_Od2(input,_sA,_Pd2++,frame,1,time,_Mv,_Z4,_bA,1);_Od2(input,_sA,_Pd2++,frame,2,time,_Mv,__4,_xh,1);}time=_Mv;_Y4=_9A;_Z4=_bA;__4=_xh;}_s6.push(_sA);break;}case _nl2:{let _Id2=input._Wk2(true);let _sA=new _Ob2(_o6,_Id2,
_S4);let time=input._Rk2();let _Y4=input._jl2()/255;let _Z4=input._jl2()/255;let __4=input._jl2()/255;let _05=input._jl2()/255;let _9A=input._jl2()/255;let _bA=input._jl2()/255;let _xh=input._jl2()/255;for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,_Y4,_Z4,__4,_05,_9A,_bA,_xh);if(frame==_q6)break;let _Mv=input._Rk2();let _ol2=input._jl2()/255;let _pl2=input._jl2()/255;let _ql2=input._jl2()/255;let _rl2=input._jl2()/255;let _sl2=input._jl2()/255;let _tl2=input._jl2()/255;let _ul2=input._jl2()/255;switch(input._Yk2()){
case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,_Y4,_ol2,1);_Od2(input,_sA,_Pd2++,frame,1,time,_Mv,_Z4,_pl2,1);_Od2(input,_sA,_Pd2++,frame,2,time,_Mv,__4,_ql2,1);_Od2(input,_sA,_Pd2++,frame,3,time,_Mv,_05,_rl2,1);_Od2(input,_sA,_Pd2++,frame,4,time,_Mv,_9A,_sl2,1);_Od2(input,_sA,_Pd2++,frame,5,time,_Mv,_bA,_tl2,1);_Od2(input,_sA,_Pd2++,frame,6,time,_Mv,_xh,_ul2,1);}time=_Mv;_Y4=_ol2;_Z4=_pl2;__4=_ql2;_05=_rl2;_9A=_sl2;_bA=_tl2;_xh=_ul2;}_s6.push(_sA);break;}case _vl2:{
let _Id2=input._Wk2(true);let _sA=new _Nb2(_o6,_Id2,_S4);let time=input._Rk2();let _Y4=input._jl2()/255;let _Z4=input._jl2()/255;let __4=input._jl2()/255;let _9A=input._jl2()/255;let _bA=input._jl2()/255;let _xh=input._jl2()/255;for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,_Y4,_Z4,__4,_9A,_bA,_xh);if(frame==_q6)break;let _Mv=input._Rk2();let _ol2=input._jl2()/255;let _pl2=input._jl2()/255;let _ql2=input._jl2()/255;let _sl2=input._jl2()/255;let _tl2=input._jl2()/255;let _ul2=input._jl2()/255;switch(input._Yk2()){
case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,_Y4,_ol2,1);_Od2(input,_sA,_Pd2++,frame,1,time,_Mv,_Z4,_pl2,1);_Od2(input,_sA,_Pd2++,frame,2,time,_Mv,__4,_ql2,1);_Od2(input,_sA,_Pd2++,frame,3,time,_Mv,_9A,_sl2,1);_Od2(input,_sA,_Pd2++,frame,4,time,_Mv,_bA,_tl2,1);_Od2(input,_sA,_Pd2++,frame,5,time,_Mv,_xh,_ul2,1);}time=_Mv;_Y4=_ol2;_Z4=_pl2;__4=_ql2;_9A=_sl2;_bA=_tl2;_xh=_ul2;}_s6.push(_sA);break;}case _wl2:{let _sA=new _3b2(_o6,input._Wk2(true),_S4);let time=input._Rk2(),
_05=input._jl2()/255;for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,_05);if(frame==_q6)break;let _Mv=input._Rk2();let _Ke1=input._jl2()/255;switch(input._Yk2()){case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,_05,_Ke1,1);}time=_Mv;_05=_Ke1;}_s6.push(_sA);break;}}}}for(let i=0,_c7=input._Wk2(true);i<_c7;i++){let _ae2=input._Wk2(true);for(let _Tx=0,_nk2=input._Wk2(true);_Tx<_nk2;_Tx++){let type=input._Yk2(),_o6=input._Wk2(true),_Id2=input._Wk2(true);switch(type){case _xl2:_s6.push(_yl2(input,
new _Sb2(_o6,_Id2,_ae2),1));break;case _zl2:_s6.push(_Al2(input,new _gc2(_o6,_Id2,_ae2),scale));break;case _Bl2:_s6.push(_yl2(input,new _hc2(_o6,_Id2,_ae2),scale));break;case _Cl2:_s6.push(_yl2(input,new _ic2(_o6,_Id2,_ae2),scale));break;case _Dl2:_s6.push(_Al2(input,new _Vb2(_o6,_Id2,_ae2),1));break;case _El2:_s6.push(_yl2(input,new _Wb2(_o6,_Id2,_ae2),1));break;case _Fl2:_s6.push(_yl2(input,new _Xb2(_o6,_Id2,_ae2),1));break;case _Gl2:_s6.push(_Al2(input,new _Yb2(_o6,_Id2,_ae2),1));break;case _Hl2:_s6.push(_yl2(input,
new _Zb2(_o6,_Id2,_ae2),1));break;case _Il2:_s6.push(_yl2(input,new __b2(_o6,_Id2,_ae2),1));}}}for(let i=0,_c7=input._Wk2(true);i<_c7;i++){let index=input._Wk2(true),_o6=input._Wk2(true),_q6=_o6-1;let _sA=new _vb2(_o6,input._Wk2(true),index);let time=input._Rk2(),mix=input._Rk2(),_se2=input._Rk2()*scale;for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,mix,_se2,input._Yk2(),input._Tk2(),input._Tk2());if(frame==_q6)break;let _Mv=input._Rk2(),_Jl2=input._Rk2(),_Kl2=input._Rk2()*scale;switch(input._Yk2()){
case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,mix,_Jl2,1);_Od2(input,_sA,_Pd2++,frame,1,time,_Mv,_se2,_Kl2,scale);}time=_Mv;mix=_Jl2;_se2=_Kl2;}_s6.push(_sA);}for(let i=0,_c7=input._Wk2(true);i<_c7;i++){let index=input._Wk2(true),_o6=input._Wk2(true),_q6=_o6-1;let _sA=new _ec2(_o6,input._Wk2(true),index);let time=input._Rk2(),_xe2=input._Rk2(),_ye2=input._Rk2(),_ze2=input._Rk2(),_Ae2=input._Rk2(),_Be2=input._Rk2(),_Ce2=input._Rk2();for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,
time,_xe2,_ye2,_ze2,_Ae2,_Be2,_Ce2);if(frame==_q6)break;let _Mv=input._Rk2(),_Ll2=input._Rk2(),_Ml2=input._Rk2(),_Nl2=input._Rk2(),_Ol2=input._Rk2(),_Pl2=input._Rk2(),_Ql2=input._Rk2();switch(input._Yk2()){case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,_xe2,_Ll2,1);_Od2(input,_sA,_Pd2++,frame,1,time,_Mv,_ye2,_Ml2,1);_Od2(input,_sA,_Pd2++,frame,2,time,_Mv,_ze2,_Nl2,1);_Od2(input,_sA,_Pd2++,frame,3,time,_Mv,_Ae2,_Ol2,1);_Od2(input,_sA,_Pd2++,frame,4,time,_Mv,_Be2,_Pl2,
1);_Od2(input,_sA,_Pd2++,frame,5,time,_Mv,_Ce2,_Ql2,1);}time=_Mv;_xe2=_Ll2;_ye2=_Ml2;_ze2=_Nl2;_Ae2=_Ol2;_Be2=_Pl2;_Ce2=_Ql2;}_s6.push(_sA);}for(let i=0,_c7=input._Wk2(true);i<_c7;i++){let index=input._Wk2(true);let data=_Ff2._Fe2[index];for(let _Tx=0,_nk2=input._Wk2(true);_Tx<_nk2;_Tx++){switch(input._Yk2()){case _Rl2:_s6.push(_yl2(input,new _Gb2(input._Wk2(true),input._Wk2(true),index),data._sj2==_Kb2.Fixed?scale:1));break;case _Sl2:_s6.push(_yl2(input,new _Hb2(input._Wk2(true),input._Wk2(true),index),
data.spacingMode==_5c2.Length||data.spacingMode==_5c2.Fixed?scale:1));break;case _Tl2:let _sA=new _Fb2(input._Wk2(true),input._Wk2(true),index);let time=input._Rk2(),_xe2=input._Rk2(),_ye2=input._Rk2(),_ze2=input._Rk2();for(let frame=0,_Pd2=0,_q6=_sA._Fd2()-1;;frame++){_sA._4e2(frame,time,_xe2,_ye2,_ze2);if(frame==_q6)break;let _Mv=input._Rk2(),_Ll2=input._Rk2(),_Ml2=input._Rk2(),_Nl2=input._Rk2();switch(input._Yk2()){case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,_xe2,
_Ll2,1);_Od2(input,_sA,_Pd2++,frame,1,time,_Mv,_ye2,_Ml2,1);_Od2(input,_sA,_Pd2++,frame,2,time,_Mv,_ze2,_Nl2,1);}time=_Mv;_xe2=_Ll2;_ye2=_Ml2;_ze2=_Nl2;}_s6.push(_sA);}}}for(let i=0,_c7=input._Wk2(true);i<_c7;i++){let skin=_Ff2.skins[input._Wk2(true)];for(let _Tx=0,_nk2=input._Wk2(true);_Tx<_nk2;_Tx++){let _S4=input._Wk2(true);for(let _Ul2=0,_Vl2=input._Wk2(true);_Ul2<_Vl2;_Ul2++){let _oc=input._Xk2();let attachment=skin._U4(_S4,_oc);let _Wl2=attachment.bones;let vertices=attachment.vertices;let _Xl2=_Wl2?vertices.length/3*2:vertices.length;
let _o6=input._Wk2(true);let _q6=_o6-1;let _Id2=input._Wk2(true);let _sA=new _ib2(_o6,_Id2,_S4,attachment);let time=input._Rk2();for(let frame=0,_Pd2=0;;frame++){let deform;let end=input._Wk2(true);if(end==0)deform=_Wl2?_kc2._Zc2(_Xl2):vertices;else {deform=_kc2._Zc2(_Xl2);let start=input._Wk2(true);end+=start;if(scale==1){for(let _H5=start;_H5<end;_H5++)deform[_H5]=input._Rk2();}else {for(let _H5=start;_H5<end;_H5++)deform[_H5]=input._Rk2()*scale;}if(!_Wl2){for(let _H5=0,_vE1=deform.length;_H5<_vE1;_H5++)deform[_H5]+=vertices[_H5];
}}_sA._4e2(frame,time,deform);if(frame==_q6)break;let _Mv=input._Rk2();switch(input._Yk2()){case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,0,1,1);}time=_Mv;}_s6.push(_sA);}}}let _Yl2=input._Wk2(true);if(_Yl2>0){let _sA=new _kb2(_Yl2);let _2l2=_Ff2.slots.length;for(let i=0;i<_Yl2;i++){let time=input._Rk2();let _Zl2=input._Wk2(true);let drawOrder=_kc2._Yc2(_2l2,0);for(let _Tx=_2l2-1;_Tx>=0;_Tx--)drawOrder[_Tx]=-1;let __l2=_kc2._Yc2(_2l2-_Zl2,0);let _0m2=0,_1m2=0;for(let _Tx=0;_Tx<_Zl2;
_Tx++){let _S4=input._Wk2(true);while(_0m2!=_S4)__l2[_1m2++]=_0m2++;drawOrder[_0m2+input._Wk2(true)]=_0m2++;}while(_0m2<_2l2)__l2[_1m2++]=_0m2++;for(let _Tx=_2l2-1;_Tx>=0;_Tx--)if(drawOrder[_Tx]==-1)drawOrder[_Tx]=__l2[--_1m2];_sA._4e2(i,time,drawOrder);}_s6.push(_sA);}let _2m2=input._Wk2(true);if(_2m2>0){let _sA=new _w8(_2m2);for(let i=0;i<_2m2;i++){let time=input._Rk2();let _uA=_Ff2.events[input._Wk2(true)];let event=new Event(time,_uA);event._Z3=input._Wk2(false);event.__3=input._Rk2();event._04=input._Tk2()?input._Qk2():_uA._04;
if(event.data._Vk2){event.volume=input._Rk2();event._2u1=input._Rk2();}_sA._4e2(i,event);}_s6.push(_sA);}let duration=0;for(let i=0,_c7=_s6.length;i<_c7;i++)duration=Math.max(duration,_s6[i]._Gd2());return new _4b2(name,_s6,duration);}};var _9b2=class {constructor(data,_6x=new Array(),index=0,buffer=new DataView(data.buffer)){this._6x=_6x;this.index=index;this.buffer=buffer;}_Yk2(){return this.buffer.getInt8(this.index++);}_jl2(){return this.buffer.getUint8(this.index++);}_dl2(){let value=this.buffer.getInt16(this.index);
this.index+=2;return value;}_Ok2(){let value=this.buffer.getInt32(this.index);this.index+=4;return value;}_Wk2(_3m2){let __4=this._Yk2();let result=__4&127;if((__4&128)!=0){__4=this._Yk2();result|=(__4&127)<<7;if((__4&128)!=0){__4=this._Yk2();result|=(__4&127)<<14;if((__4&128)!=0){__4=this._Yk2();result|=(__4&127)<<21;if((__4&128)!=0){__4=this._Yk2();result|=(__4&127)<<28;}}}}return _3m2?result:result>>>1^-(result&1);}_Xk2(){let index=this._Wk2(true);return index==0?null:this._6x[index-1];}_Qk2(){let _4m2=this._Wk2(true);
switch(_4m2){case 0:return null;case 1:return "";}_4m2--;let _5m2="";let _6m2=0;for(let i=0;i<_4m2;){let __4=this._Yk2();switch(__4>>4){case 12:case 13:_5m2+=String.fromCharCode((__4&31)<<6|this._Yk2()&63);i+=2;break;case 14:_5m2+=String.fromCharCode((__4&15)<<12|(this._Yk2()&63)<<6|this._Yk2()&63);i+=3;break;default :_5m2+=String.fromCharCode(__4);i++;}}return _5m2;}_Rk2(){let value=this.buffer.getFloat32(this.index);this.index+=4;return value;}_Tk2(){return this._Yk2()!=0;}};var LinkedMesh=class {constructor(_Aa,
skin,_S4,parent,_0l2){this._Aa=_Aa;this.skin=skin;this._S4=_S4;this.parent=parent;this._0l2=_0l2;}};var _bl2=class {constructor(bones=null,vertices=null){this.bones=bones;this.vertices=vertices;}};var _4l2;(function(_7m2){_7m2[_7m2["Region"]=0]="Region";_7m2[_7m2["BoundingBox"]=1]="BoundingBox";_7m2[_7m2["Mesh"]=2]="Mesh";_7m2[_7m2["LinkedMesh"]=3]="LinkedMesh";_7m2[_7m2["Path"]=4]="Path";_7m2[_7m2["Point"]=5]="Point";_7m2[_7m2["Clipping"]=6]="Clipping";})(_4l2||(_4l2={}));function _yl2(input,_sA,scale){
let time=input._Rk2(),value=input._Rk2()*scale;for(let frame=0,_Pd2=0,_q6=_sA._Fd2()-1;;frame++){_sA._4e2(frame,time,value);if(frame==_q6)break;let _Mv=input._Rk2(),_Vd2=input._Rk2()*scale;switch(input._Yk2()){case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,value,_Vd2,scale);}time=_Mv;value=_Vd2;}return _sA;}function _Al2(input,_sA,scale){let time=input._Rk2(),_Qd2=input._Rk2()*scale,_Vd2=input._Rk2()*scale;for(let frame=0,_Pd2=0,_q6=_sA._Fd2()-1;;frame++){_sA._4e2(frame,
time,_Qd2,_Vd2);if(frame==_q6)break;let _Mv=input._Rk2(),_8m2=input._Rk2()*scale,_9m2=input._Rk2()*scale;switch(input._Yk2()){case _kl2:_sA._Ld2(frame);break;case _ll2:_Od2(input,_sA,_Pd2++,frame,0,time,_Mv,_Qd2,_8m2,scale);_Od2(input,_sA,_Pd2++,frame,1,time,_Mv,_Vd2,_9m2,scale);}time=_Mv;_Qd2=_8m2;_Vd2=_9m2;}return _sA;}function _Od2(input,_sA,_Pd2,frame,value,_Lv,_Mv,_Qd2,_Vd2,scale){_sA._Od2(_Pd2,frame,value,_Lv,_Qd2,input._Rk2(),input._Rk2()*scale,input._Rk2(),input._Rk2()*scale,_Mv,_Vd2);}var _xl2=0;
var _zl2=1;var _Bl2=2;var _Cl2=3;var _Dl2=4;var _El2=5;var _Fl2=6;var _Gl2=7;var _Hl2=8;var _Il2=9;var _hl2=0;var _il2=1;var _ml2=2;var _nl2=3;var _vl2=4;var _wl2=5;var _Rl2=0;var _Sl2=1;var _Tl2=2;var _kl2=1;var _ll2=2;var _74=class {constructor(){this._O6=0;this._Q6=0;this._P6=0;this._R6=0;this._Y6=new Array();this._H6=new Array();this._am2=new _Jb2(()=>{return _kc2._Zc2(16);});}_v6(skeleton,_bm2){if(!skeleton)throw new Error("skeleton cannot be null.");let _Y6=this._Y6;let _H6=this._H6;let _am2=this._am2;let slots=skeleton.slots;
let _2l2=slots.length;_Y6.length=0;_am2._bd2(_H6);_H6.length=0;for(let i=0;i<_2l2;i++){let slot=slots[i];if(!slot.bone.active)continue;let attachment=slot._U4();if(attachment instanceof _3a){let _ic=attachment;_Y6.push(_ic);let _17=_am2._9d2();if(_17.length!=_ic._Ba){_17=_kc2._Zc2(_ic._Ba);}_H6.push(_17);_ic._va(slot,0,_ic._Ba,_17,0,2);}}if(_bm2){this._cm2();}else {this._O6=Number.POSITIVE_INFINITY;this._Q6=Number.POSITIVE_INFINITY;this._P6=Number.NEGATIVE_INFINITY;this._R6=Number.NEGATIVE_INFINITY;}}_cm2(){
let _O6=Number.POSITIVE_INFINITY,_Q6=Number.POSITIVE_INFINITY,_P6=Number.NEGATIVE_INFINITY,_R6=Number.NEGATIVE_INFINITY;let _H6=this._H6;for(let i=0,_c7=_H6.length;i<_c7;i++){let _17=_H6[i];let vertices=_17;for(let _Tx=0,_nk2=_17.length;_Tx<_nk2;_Tx+=2){let x=vertices[_Tx];let y=vertices[_Tx+1];_O6=Math.min(_O6,x);_Q6=Math.min(_Q6,y);_P6=Math.max(_P6,x);_R6=Math.max(_R6,y);}}this._O6=_O6;this._Q6=_Q6;this._P6=_P6;this._R6=_R6;}_dm2(x,y){return x>=this._O6&&x<=this._P6&&y>=this._Q6&&y<=this._R6;}_em2(_f7,
_g7,_h7,_i7){let _O6=this._O6;let _Q6=this._Q6;let _P6=this._P6;let _R6=this._R6;if(_f7<=_O6&&_h7<=_O6||_g7<=_Q6&&_i7<=_Q6||_f7>=_P6&&_h7>=_P6||_g7>=_R6&&_i7>=_R6)return false;let _e7=(_i7-_g7)/(_h7-_f7);let y=_e7*(_O6-_f7)+_g7;if(y>_Q6&&y<_R6)return true;y=_e7*(_P6-_f7)+_g7;if(y>_Q6&&y<_R6)return true;let x=(_Q6-_g7)/_e7+_f7;if(x>_O6&&x<_P6)return true;x=(_R6-_g7)/_e7+_f7;if(x>_O6&&x<_P6)return true;return false;}_fm2(_ni){return this._O6<_ni._P6&&this._P6>_ni._O6&&this._Q6<_ni._R6&&this._R6>_ni._Q6;}_D7(x,y){
let _H6=this._H6;for(let i=0,_c7=_H6.length;i<_c7;i++)if(this._gm2(_H6[i],x,y))return this._Y6[i];return null;}_gm2(_17,x,y){let vertices=_17;let _nk2=_17.length;let _hm2=_nk2-2;let _im2=false;for(let _Tx=0;_Tx<_nk2;_Tx+=2){let _jm2=vertices[_Tx+1];let _km2=vertices[_hm2+1];if(_jm2<y&&_km2>=y||_km2<y&&_jm2>=y){let _lm2=vertices[_Tx];if(_lm2+(y-_jm2)/(_km2-_jm2)*(vertices[_hm2]-_lm2)<x)_im2=!_im2;}_hm2=_Tx;}return _im2;}_k7(_f7,_g7,_h7,_i7){let _H6=this._H6;for(let i=0,_c7=_H6.length;i<_c7;i++)if(this._mm2(_H6[i],
_f7,_g7,_h7,_i7))return this._Y6[i];return null;}_mm2(_17,_f7,_g7,_h7,_i7){let vertices=_17;let _nk2=_17.length;let _nm2=_f7-_h7,_om2=_g7-_i7;let _pm2=_f7*_i7-_g7*_h7;let _1c=vertices[_nk2-2],_2c=vertices[_nk2-1];for(let _Tx=0;_Tx<_nk2;_Tx+=2){let _qm2=vertices[_Tx],_rm2=vertices[_Tx+1];let _sm2=_1c*_rm2-_2c*_qm2;let _tm2=_1c-_qm2,_um2=_2c-_rm2;let _vm2=_nm2*_um2-_om2*_tm2;let x=(_pm2*_tm2-_nm2*_sm2)/_vm2;if((x>=_1c&&x<=_qm2||x>=_qm2&&x<=_1c)&&(x>=_f7&&x<=_h7||x>=_h7&&x<=_f7)){let y=(_pm2*_um2-_om2*_sm2)/_vm2;
if((y>=_2c&&y<=_rm2||y>=_rm2&&y<=_2c)&&(y>=_g7&&y<=_i7||y>=_i7&&y<=_g7))return true;}_1c=_qm2;_2c=_rm2;}return false;}_wm2(_ic){if(!_ic)throw new Error("boundingBox cannot be null.");let index=this._Y6.indexOf(_ic);return index==-1?null:this._H6[index];}getWidth(){return this._P6-this._O6;}getHeight(){return this._R6-this._Q6;}};var _jc2=class {constructor(){this._xm2=new Array();this._ym2=new Array();this._zm2=new Array();this._Am2=new Array();this.triangles=new Array();this._am2=new _Jb2(()=>{return new Array();
});this._Bm2=new _Jb2(()=>{return new Array();});}_Cm2(_Dm2){let vertices=_Dm2;let vertexCount=_Dm2.length>>1;let _oa=this._zm2;_oa.length=0;for(let i=0;i<vertexCount;i++)_oa[i]=i;let _Em2=this._Am2;_Em2.length=0;for(let i=0,_c7=vertexCount;i<_c7;++i)_Em2[i]=_jc2._Em2(i,vertexCount,vertices,_oa);let triangles=this.triangles;triangles.length=0;while(vertexCount>3){let _Df2=vertexCount-1,i=0,_Zk=1;while(true){_Rf2:if(!_Em2[i]){let _ap=_oa[_Df2]<<1,_hm1=_oa[i]<<1,_5o1=_oa[_Zk]<<1;let _Fm2=vertices[_ap],_Gm2=vertices[_ap+1];
let _Hm2=vertices[_hm1],_Im2=vertices[_hm1+1];let _Jm2=vertices[_5o1],_Km2=vertices[_5o1+1];for(let _Tx=(_Zk+1)%vertexCount;_Tx!=_Df2;_Tx=(_Tx+1)%vertexCount){if(!_Em2[_Tx])continue;let _H5=_oa[_Tx]<<1;let _Cb=vertices[_H5],_Db=vertices[_H5+1];if(_jc2._Lm2(_Jm2,_Km2,_Fm2,_Gm2,_Cb,_Db)){if(_jc2._Lm2(_Fm2,_Gm2,_Hm2,_Im2,_Cb,_Db)){if(_jc2._Lm2(_Hm2,_Im2,_Jm2,_Km2,_Cb,_Db))break _Rf2;}}}break;}if(_Zk==0){do {if(!_Em2[i])break;i--;}while(i>0);break;}_Df2=i;i=_Zk;_Zk=(_Zk+1)%vertexCount;}triangles.push(_oa[(vertexCount+i-1)%vertexCount]);
triangles.push(_oa[i]);triangles.push(_oa[(i+1)%vertexCount]);_oa.splice(i,1);_Em2.splice(i,1);vertexCount--;let _Mm2=(vertexCount+i-1)%vertexCount;let _Nm2=i==vertexCount?0:i;_Em2[_Mm2]=_jc2._Em2(_Mm2,vertexCount,vertices,_oa);_Em2[_Nm2]=_jc2._Em2(_Nm2,vertexCount,vertices,_oa);}if(vertexCount==3){triangles.push(_oa[2]);triangles.push(_oa[0]);triangles.push(_oa[1]);}return triangles;}_Om2(_Dm2,triangles){let vertices=_Dm2;let _xm2=this._xm2;this._am2._bd2(_xm2);_xm2.length=0;let _ym2=this._ym2;this._Bm2._bd2(_ym2);
_ym2.length=0;let _Pm2=this._Bm2._9d2();_Pm2.length=0;let _17=this._am2._9d2();_17.length=0;let _Qm2=-1,_Rm2=0;for(let i=0,_c7=triangles.length;i<_c7;i+=3){let _cr1=triangles[i]<<1,_dr1=triangles[i+1]<<1,_Sm2=triangles[i+2]<<1;let _f7=vertices[_cr1],_g7=vertices[_cr1+1];let _h7=vertices[_dr1],_i7=vertices[_dr1+1];let _1c=vertices[_Sm2],_2c=vertices[_Sm2+1];let _Tm2=false;if(_Qm2==_cr1){let _Dx=_17.length-4;let _Um2=_jc2._Vm2(_17[_Dx],_17[_Dx+1],_17[_Dx+2],_17[_Dx+3],_1c,_2c);let _Wm2=_jc2._Vm2(_1c,_2c,_17[0],
_17[1],_17[2],_17[3]);if(_Um2==_Rm2&&_Wm2==_Rm2){_17.push(_1c);_17.push(_2c);_Pm2.push(_Sm2);_Tm2=true;}}if(!_Tm2){if(_17.length>0){_xm2.push(_17);_ym2.push(_Pm2);}else {this._am2._ad2(_17);this._Bm2._ad2(_Pm2);}_17=this._am2._9d2();_17.length=0;_17.push(_f7);_17.push(_g7);_17.push(_h7);_17.push(_i7);_17.push(_1c);_17.push(_2c);_Pm2=this._Bm2._9d2();_Pm2.length=0;_Pm2.push(_cr1);_Pm2.push(_dr1);_Pm2.push(_Sm2);_Rm2=_jc2._Vm2(_f7,_g7,_h7,_i7,_1c,_2c);_Qm2=_cr1;}}if(_17.length>0){_xm2.push(_17);_ym2.push(_Pm2);
}for(let i=0,_c7=_xm2.length;i<_c7;i++){_Pm2=_ym2[i];if(_Pm2.length==0)continue;let _sD1=_Pm2[0];let lastIndex=_Pm2[_Pm2.length-1];_17=_xm2[i];let _Dx=_17.length-4;let _Xm2=_17[_Dx],_Ym2=_17[_Dx+1];let _Zm2=_17[_Dx+2],_km2=_17[_Dx+3];let __m2=_17[0],_0n2=_17[1];let _1n2=_17[2],_2n2=_17[3];let _Vm2=_jc2._Vm2(_Xm2,_Ym2,_Zm2,_km2,__m2,_0n2);for(let _Tx=0;_Tx<_c7;_Tx++){if(_Tx==i)continue;let _3n2=_ym2[_Tx];if(_3n2.length!=3)continue;let _4n2=_3n2[0];let _5n2=_3n2[1];let _6n2=_3n2[2];let _7n2=_xm2[_Tx];let _1c=_7n2[_7n2.length-2],
_2c=_7n2[_7n2.length-1];if(_4n2!=_sD1||_5n2!=lastIndex)continue;let _Um2=_jc2._Vm2(_Xm2,_Ym2,_Zm2,_km2,_1c,_2c);let _Wm2=_jc2._Vm2(_1c,_2c,__m2,_0n2,_1n2,_2n2);if(_Um2==_Vm2&&_Wm2==_Vm2){_7n2.length=0;_3n2.length=0;_17.push(_1c);_17.push(_2c);_Pm2.push(_6n2);_Xm2=_Zm2;_Ym2=_km2;_Zm2=_1c;_km2=_2c;_Tx=0;}}}for(let i=_xm2.length-1;i>=0;i--){_17=_xm2[i];if(_17.length==0){_xm2.splice(i,1);this._am2._ad2(_17);_Pm2=_ym2[i];_ym2.splice(i,1);this._Bm2._ad2(_Pm2);}}return _xm2;}static _Em2(index,vertexCount,vertices,
_oa){let _Df2=_oa[(vertexCount+index-1)%vertexCount]<<1;let current=_oa[index]<<1;let _Zk=_oa[(index+1)%vertexCount]<<1;return !this._Lm2(vertices[_Df2],vertices[_Df2+1],vertices[current],vertices[current+1],vertices[_Zk],vertices[_Zk+1]);}static _Lm2(_Fm2,_Gm2,_Hm2,_Im2,_Jm2,_Km2){return _Fm2*(_Km2-_Im2)+_Hm2*(_Gm2-_Km2)+_Jm2*(_Im2-_Gm2)>=0;}static _Vm2(_Fm2,_Gm2,_Hm2,_Im2,_Jm2,_Km2){let _Jo=_Hm2-_Fm2,_Ko=_Im2-_Gm2;return _Jm2*_Ko-_Km2*_Jo+_Jo*_Gm2-_Fm2*_Ko>=0?1:-1;}};var _Da=class {constructor(){this._8n2=new _jc2();
this._9n2=new Array();this._an2=new Array();this._Ga=new Array();this._Ha=new Array();this._bn2=new Array();}_Ea(slot,clip){if(this._cn2)return 0;this._cn2=clip;let _c7=clip._Ba;let vertices=_kc2._Wc2(this._9n2,_c7);clip._va(slot,0,_c7,vertices,0,2);let _9n2=this._9n2;_Da._dn2(_9n2);let _en2=this._en2=this._8n2._Om2(_9n2,this._8n2._Cm2(_9n2));for(let i=0,_6f2=_en2.length;i<_6f2;i++){let _17=_en2[i];_Da._dn2(_17);_17.push(_17[0]);_17.push(_17[1]);}return _en2.length;}_Pa(slot){if(this._cn2&&this._cn2._6g2==slot.data)this._Qa();
}_Qa(){if(!this._cn2)return;this._cn2=null;this._en2=null;this._Ga.length=0;this._Ha.length=0;this._9n2.length=0;}_ua(){return this._cn2!=null;}_Fa(vertices,_nj2,triangles,_fn2,uvs,light,dark,twoColor){let _an2=this._an2,_Ga=this._Ga;let _Ha=this._Ha;let _H6=this._en2;let _gn2=this._en2.length;let _2_1=twoColor?12:8;let index=0;_Ga.length=0;_Ha.length=0;_Rf2:for(let i=0;i<_fn2;i+=3){let _Tg2=triangles[i]<<1;let _f7=vertices[_Tg2],_g7=vertices[_Tg2+1];let _qr1=uvs[_Tg2],_3c=uvs[_Tg2+1];_Tg2=triangles[i+1]<<1;
let _h7=vertices[_Tg2],_i7=vertices[_Tg2+1];let _I5=uvs[_Tg2],_J5=uvs[_Tg2+1];_Tg2=triangles[i+2]<<1;let _1c=vertices[_Tg2],_2c=vertices[_Tg2+1];let _hn2=uvs[_Tg2],_4c=uvs[_Tg2+1];for(let _2z=0;_2z<_gn2;_2z++){let __h=_Ga.length;if(this.clip(_f7,_g7,_h7,_i7,_1c,_2c,_H6[_2z],_an2)){let _in2=_an2.length;if(_in2==0)continue;let _jn2=_i7-_2c,_Jv=_1c-_h7,_Kv=_f7-_1c,_kn2=_2c-_g7;let _Xo=1/(_jn2*_Kv+_Jv*(_g7-_2c));let _ln2=_in2>>1;let _mn2=this._an2;let _nn2=_kc2._Wc2(_Ga,__h+_ln2*_2_1);for(let _Tx=0;_Tx<_in2;_Tx+=2){
let x=_mn2[_Tx],y=_mn2[_Tx+1];_nn2[__h]=x;_nn2[__h+1]=y;_nn2[__h+2]=light._Y4;_nn2[__h+3]=light._Z4;_nn2[__h+4]=light.__4;_nn2[__h+5]=light._05;let _jl1=x-_1c,_Ok1=y-_2c;let _05=(_jn2*_jl1+_Jv*_Ok1)*_Xo;let __4=(_kn2*_jl1+_Kv*_Ok1)*_Xo;let c=1-_05-__4;_nn2[__h+6]=_qr1*_05+_I5*__4+_hn2*c;_nn2[__h+7]=_3c*_05+_J5*__4+_4c*c;if(twoColor){_nn2[__h+8]=dark._Y4;_nn2[__h+9]=dark._Z4;_nn2[__h+10]=dark.__4;_nn2[__h+11]=dark._05;}__h+=_2_1;}__h=_Ha.length;let _on2=_kc2._Wc2(_Ha,__h+3*(_ln2-2));_ln2--;for(let _Tx=1;
_Tx<_ln2;_Tx++){_on2[__h]=index;_on2[__h+1]=index+_Tx;_on2[__h+2]=index+_Tx+1;__h+=3;}index+=_ln2+1;}else {let _nn2=_kc2._Wc2(_Ga,__h+3*_2_1);_nn2[__h]=_f7;_nn2[__h+1]=_g7;_nn2[__h+2]=light._Y4;_nn2[__h+3]=light._Z4;_nn2[__h+4]=light.__4;_nn2[__h+5]=light._05;if(!twoColor){_nn2[__h+6]=_qr1;_nn2[__h+7]=_3c;_nn2[__h+8]=_h7;_nn2[__h+9]=_i7;_nn2[__h+10]=light._Y4;_nn2[__h+11]=light._Z4;_nn2[__h+12]=light.__4;_nn2[__h+13]=light._05;_nn2[__h+14]=_I5;_nn2[__h+15]=_J5;_nn2[__h+16]=_1c;_nn2[__h+17]=_2c;_nn2[__h+18]=light._Y4;
_nn2[__h+19]=light._Z4;_nn2[__h+20]=light.__4;_nn2[__h+21]=light._05;_nn2[__h+22]=_hn2;_nn2[__h+23]=_4c;}else {_nn2[__h+6]=_qr1;_nn2[__h+7]=_3c;_nn2[__h+8]=dark._Y4;_nn2[__h+9]=dark._Z4;_nn2[__h+10]=dark.__4;_nn2[__h+11]=dark._05;_nn2[__h+12]=_h7;_nn2[__h+13]=_i7;_nn2[__h+14]=light._Y4;_nn2[__h+15]=light._Z4;_nn2[__h+16]=light.__4;_nn2[__h+17]=light._05;_nn2[__h+18]=_I5;_nn2[__h+19]=_J5;_nn2[__h+20]=dark._Y4;_nn2[__h+21]=dark._Z4;_nn2[__h+22]=dark.__4;_nn2[__h+23]=dark._05;_nn2[__h+24]=_1c;_nn2[__h+25]=_2c;
_nn2[__h+26]=light._Y4;_nn2[__h+27]=light._Z4;_nn2[__h+28]=light.__4;_nn2[__h+29]=light._05;_nn2[__h+30]=_hn2;_nn2[__h+31]=_4c;_nn2[__h+32]=dark._Y4;_nn2[__h+33]=dark._Z4;_nn2[__h+34]=dark.__4;_nn2[__h+35]=dark._05;}__h=_Ha.length;let _on2=_kc2._Wc2(_Ha,__h+3);_on2[__h]=index;_on2[__h+1]=index+1;_on2[__h+2]=index+2;index+=3;continue _Rf2;}}}}clip(_f7,_g7,_h7,_i7,_1c,_2c,_pn2,output){let _qn2=output;let _rn2=false;let input=null;if(_pn2.length%4>=2){input=output;output=this._bn2;}else input=this._bn2;input.length=0;
input.push(_f7);input.push(_g7);input.push(_h7);input.push(_i7);input.push(_1c);input.push(_2c);input.push(_f7);input.push(_g7);output.length=0;let _sn2=_pn2;let _tn2=_pn2.length-4;for(let i=0;;i+=2){let _un2=_sn2[i],_vn2=_sn2[i+1];let _wn2=_sn2[i+2],_xn2=_sn2[i+3];let _yn2=_un2-_wn2,_zn2=_vn2-_xn2;let _An2=input;let _Bn2=input.length-2,_Cn2=output.length;for(let _Tx=0;_Tx<_Bn2;_Tx+=2){let _Dn2=_An2[_Tx],_En2=_An2[_Tx+1];let _Fn2=_An2[_Tx+2],_Gn2=_An2[_Tx+3];let _Hn2=_yn2*(_Gn2-_xn2)-_zn2*(_Fn2-_wn2)>0;if(_yn2*(_En2-_xn2)-_zn2*(_Dn2-_wn2)>0){
if(_Hn2){output.push(_Fn2);output.push(_Gn2);continue;}let _jl1=_Gn2-_En2,_Pk1=_Fn2-_Dn2;let __h=_jl1*(_wn2-_un2)-_Pk1*(_xn2-_vn2);if(Math.abs(__h)>1e-6){let _In2=(_Pk1*(_vn2-_En2)-_jl1*(_un2-_Dn2))/__h;output.push(_un2+(_wn2-_un2)*_In2);output.push(_vn2+(_xn2-_vn2)*_In2);}else {output.push(_un2);output.push(_vn2);}}else if(_Hn2){let _jl1=_Gn2-_En2,_Pk1=_Fn2-_Dn2;let __h=_jl1*(_wn2-_un2)-_Pk1*(_xn2-_vn2);if(Math.abs(__h)>1e-6){let _In2=(_Pk1*(_vn2-_En2)-_jl1*(_un2-_Dn2))/__h;output.push(_un2+(_wn2-_un2)*_In2);
output.push(_vn2+(_xn2-_vn2)*_In2);}else {output.push(_un2);output.push(_vn2);}output.push(_Fn2);output.push(_Gn2);}_rn2=true;}if(_Cn2==output.length){_qn2.length=0;return true;}output.push(output[0]);output.push(output[1]);if(i==_tn2)break;let _DD=output;output=input;output.length=0;input=_DD;}if(_qn2!=output){_qn2.length=0;for(let i=0,_c7=output.length-2;i<_c7;i++)_qn2[i]=output[i];}else _qn2.length=_qn2.length-2;return _rn2;}static _dn2(_17){let vertices=_17;let _Jn2=_17.length;let _Ln1=vertices[_Jn2-2]*vertices[1]-vertices[0]*vertices[_Jn2-1],
_Fm2=0,_Gm2=0,_Hm2=0,_Im2=0;for(let i=0,_c7=_Jn2-3;i<_c7;i+=2){_Fm2=vertices[i];_Gm2=vertices[i+1];_Hm2=vertices[i+2];_Im2=vertices[i+3];_Ln1+=_Fm2*_Im2-_Hm2*_Gm2;}if(_Ln1<0)return;for(let i=0,_Kn2=_Jn2-2,_c7=_Jn2>>1;i<_c7;i+=2){let x=vertices[i],y=vertices[i+1];let other=_Kn2-i;vertices[i]=vertices[other];vertices[i+1]=vertices[other+1];vertices[other]=x;vertices[other+1]=y;}}};var _D9=class {constructor(_V5){this.scale=1;this._Lk2=new Array();this._V5=_V5;}_E9(json){let scale=this.scale;let _Ff2=new _1c2();
let _f6=typeof json==="string"?JSON.parse(json):json;let _Ln2=_f6.skeleton;if(_Ln2){_Ff2.hash=_Ln2.hash;_Ff2.version=_Ln2.spine;_Ff2.x=_Ln2.x;_Ff2.y=_Ln2.y;_Ff2.width=_Ln2.width;_Ff2.height=_Ln2.height;_Ff2.fps=_Ln2.fps;_Ff2._Uk2=_Ln2.images;}if(_f6.bones){for(let i=0;i<_f6.bones.length;i++){let _Mn2=_f6.bones[i];let parent=null;let _Nn2=_On2(_Mn2,"parent",null);if(_Nn2)parent=_Ff2._U7(_Nn2);let data=new _bb2(_Ff2.bones.length,_Mn2.name,parent);data.length=_On2(_Mn2,"length",0)*scale;data.x=_On2(_Mn2,"x",
0)*scale;data.y=_On2(_Mn2,"y",0)*scale;data.rotation=_On2(_Mn2,"rotation",0);data.scaleX=_On2(_Mn2,"scaleX",1);data.scaleY=_On2(_Mn2,"scaleY",1);data.shearX=_On2(_Mn2,"shearX",0);data.shearY=_On2(_Mn2,"shearY",0);data._6c1=_kc2._5d2(_fc2,_On2(_Mn2,"transform","Normal"));data._uh2=_On2(_Mn2,"skin",false);let color=_On2(_Mn2,"color",null);if(color)data.color._tc2(color);_Ff2.bones.push(data);}}if(_f6.slots){for(let i=0;i<_f6.slots.length;i++){let _Pn2=_f6.slots[i];let _E8=_Ff2._U7(_Pn2.bone);let data=new _4c2(_Ff2.slots.length,
_Pn2.name,_E8);let color=_On2(_Pn2,"color",null);if(color)data.color._tc2(color);let dark=_On2(_Pn2,"dark",null);if(dark)data._ib=_15._W_1(dark);data._oc=_On2(_Pn2,"attachment",null);data._lb=_kc2._5d2(_Va,_On2(_Pn2,"blend","normal"));_Ff2.slots.push(data);}}if(_f6.ik){for(let i=0;i<_f6.ik.length;i++){let _Qn2=_f6.ik[i];let data=new _ub2(_Qn2.name);data._4i2=_On2(_Qn2,"order",0);data._uh2=_On2(_Qn2,"skin",false);for(let _Tx=0;_Tx<_Qn2.bones.length;_Tx++)data.bones.push(_Ff2._U7(_Qn2.bones[_Tx]));data.target=_Ff2._U7(_Qn2.target);
data.mix=_On2(_Qn2,"mix",1);data._se2=_On2(_Qn2,"softness",0)*scale;data._te2=_On2(_Qn2,"bendPositive",true)?1:-1;data.compress=_On2(_Qn2,"compress",false);data.stretch=_On2(_Qn2,"stretch",false);data._Hi2=_On2(_Qn2,"uniform",false);_Ff2._ve2.push(data);}}if(_f6.transform){for(let i=0;i<_f6.transform.length;i++){let _Qn2=_f6.transform[i];let data=new _dc2(_Qn2.name);data._4i2=_On2(_Qn2,"order",0);data._uh2=_On2(_Qn2,"skin",false);for(let _Tx=0;_Tx<_Qn2.bones.length;_Tx++)data.bones.push(_Ff2._U7(_Qn2.bones[_Tx]));
let _Rn2=_Qn2.target;data.target=_Ff2._U7(_Rn2);data._ci=_On2(_Qn2,"local",false);data._TV=_On2(_Qn2,"relative",false);data._kj2=_On2(_Qn2,"rotation",0);data._K5=_On2(_Qn2,"x",0)*scale;data._L5=_On2(_Qn2,"y",0)*scale;data._0k2=_On2(_Qn2,"scaleX",0);data._1k2=_On2(_Qn2,"scaleY",0);data.__j2=_On2(_Qn2,"shearY",0);data._xe2=_On2(_Qn2,"mixRotate",1);data._ye2=_On2(_Qn2,"mixX",1);data._ze2=_On2(_Qn2,"mixY",data._ye2);data._Ae2=_On2(_Qn2,"mixScaleX",1);data._Be2=_On2(_Qn2,"mixScaleY",data._Ae2);data._Ce2=_On2(_Qn2,
"mixShearY",1);_Ff2._De2.push(data);}}if(_f6.path){for(let i=0;i<_f6.path.length;i++){let _Qn2=_f6.path[i];let data=new _Eb2(_Qn2.name);data._4i2=_On2(_Qn2,"order",0);data._uh2=_On2(_Qn2,"skin",false);for(let _Tx=0;_Tx<_Qn2.bones.length;_Tx++)data.bones.push(_Ff2._U7(_Qn2.bones[_Tx]));let _Rn2=_Qn2.target;data.target=_Ff2._Q4(_Rn2);data._sj2=_kc2._5d2(_Kb2,_On2(_Qn2,"positionMode","Percent"));data.spacingMode=_kc2._5d2(_5c2,_On2(_Qn2,"spacingMode","Length"));data.rotateMode=_kc2._5d2(_Rb2,_On2(_Qn2,"rotateMode",
"Tangent"));data._kj2=_On2(_Qn2,"rotation",0);data.position=_On2(_Qn2,"position",0);if(data._sj2==_Kb2.Fixed)data.position*=scale;data.spacing=_On2(_Qn2,"spacing",0);if(data.spacingMode==_5c2.Length||data.spacingMode==_5c2.Fixed)data.spacing*=scale;data._xe2=_On2(_Qn2,"mixRotate",1);data._ye2=_On2(_Qn2,"mixX",1);data._ze2=_On2(_Qn2,"mixY",data._ye2);_Ff2._Fe2.push(data);}}if(_f6.skins){for(let i=0;i<_f6.skins.length;i++){let _Sn2=_f6.skins[i];let skin=new _e8(_Sn2.name);if(_Sn2.bones){for(let _Tx=0;_Tx<_Sn2.bones.length;
_Tx++)skin.bones.push(_Ff2._U7(_Sn2.bones[_Tx]));}if(_Sn2.ik){for(let _Tx=0;_Tx<_Sn2.ik.length;_Tx++)skin._1a1.push(_Ff2._wk2(_Sn2.ik[_Tx]));}if(_Sn2.transform){for(let _Tx=0;_Tx<_Sn2.transform.length;_Tx++)skin._1a1.push(_Ff2._yk2(_Sn2.transform[_Tx]));}if(_Sn2.path){for(let _Tx=0;_Tx<_Sn2.path.length;_Tx++)skin._1a1.push(_Ff2._zk2(_Sn2.path[_Tx]));}for(let _sk2 in _Sn2.attachments){let slot=_Ff2._Q4(_sk2);let _Pn2=_Sn2.attachments[_sk2];for(let _Tn2 in _Pn2){let attachment=this._3l2(_Pn2[_Tn2],skin,slot.index,
_Tn2,_Ff2);if(attachment)skin._R4(slot.index,_Tn2,attachment);}}_Ff2.skins.push(skin);if(skin.name=="default")_Ff2._D4=skin;}}for(let i=0,_c7=this._Lk2.length;i<_c7;i++){let __k2=this._Lk2[i];let skin=!__k2.skin?_Ff2._D4:_Ff2._g8(__k2.skin);let parent=skin._U4(__k2._S4,__k2.parent);__k2._Aa._od2=__k2._0l2?parent:__k2._Aa;__k2._Aa._wg2(parent);__k2._Aa._qg2();}this._Lk2.length=0;if(_f6.events){for(let _Un2 in _f6.events){let _Vn2=_f6.events[_Un2];let data=new _lb2(_Un2);data._Z3=_On2(_Vn2,"int",0);data.__3=_On2(_Vn2,
"float",0);data._04=_On2(_Vn2,"string","");data._Vk2=_On2(_Vn2,"audio",null);if(data._Vk2){data.volume=_On2(_Vn2,"volume",1);data._2u1=_On2(_Vn2,"balance",0);}_Ff2.events.push(data);}}if(_f6.animations){for(let _Ef2 in _f6.animations){let _Wn2=_f6.animations[_Ef2];this._1l2(_Wn2,_Ef2,_Ff2);}}return _Ff2;}_3l2(map,skin,_S4,name,_Ff2){let scale=this.scale;name=_On2(map,"name",name);switch(_On2(map,"type","region")){case "region":{let path=_On2(map,"path",name);let _E5=this._V5._Y5(skin,name,path);if(!_E5)return null;
_E5.path=path;_E5.x=_On2(map,"x",0)*scale;_E5.y=_On2(map,"y",0)*scale;_E5.scaleX=_On2(map,"scaleX",1);_E5.scaleY=_On2(map,"scaleY",1);_E5.rotation=_On2(map,"rotation",0);_E5.width=map.width*scale;_E5.height=map.height*scale;let color=_On2(map,"color",null);if(color)_E5.color._tc2(color);_E5._26();return _E5;}case "boundingbox":{let _6l2=this._V5._qh2(skin,name);if(!_6l2)return null;this._5l2(map,_6l2,map.vertexCount<<1);let color=_On2(map,"color",null);if(color)_6l2.color._tc2(color);return _6l2;}case "mesh":case "linkedmesh":{
let path=_On2(map,"path",name);let _Aa=this._V5._ph2(skin,name,path);if(!_Aa)return null;_Aa.path=path;let color=_On2(map,"color",null);if(color)_Aa.color._tc2(color);_Aa.width=_On2(map,"width",0)*scale;_Aa.height=_On2(map,"height",0)*scale;let parent=_On2(map,"parent",null);if(parent){this._Lk2.push(new _Xn2(_Aa,_On2(map,"skin",null),_S4,parent,_On2(map,"deform",true)));return _Aa;}let uvs=map.uvs;this._5l2(map,_Aa,uvs.length);_Aa.triangles=map.triangles;_Aa._rg2=uvs;_Aa._qg2();_Aa.edges=_On2(map,"edges",
null);_Aa._xg2=_On2(map,"hull",0)*2;return _Aa;}case "path":{let path=this._V5._rh2(skin,name);if(!path)return null;path.closed=_On2(map,"closed",false);path._zg2=_On2(map,"constantSpeed",true);let vertexCount=map.vertexCount;this._5l2(map,path,vertexCount<<1);let lengths=_kc2._Yc2(vertexCount/3,0);for(let i=0;i<map.lengths.length;i++)lengths[i]=map.lengths[i]*scale;path.lengths=lengths;let color=_On2(map,"color",null);if(color)path.color._tc2(color);return path;}case "point":{let _nq1=this._V5._sh2(skin,name);
if(!_nq1)return null;_nq1.x=_On2(map,"x",0)*scale;_nq1.y=_On2(map,"y",0)*scale;_nq1.rotation=_On2(map,"rotation",0);let color=_On2(map,"color",null);if(color)_nq1.color._tc2(color);return _nq1;}case "clipping":{let clip=this._V5._th2(skin,name);if(!clip)return null;let end=_On2(map,"end",null);if(end)clip._6g2=_Ff2._Q4(end);let vertexCount=map.vertexCount;this._5l2(map,clip,vertexCount<<1);let color=_On2(map,"color",null);if(color)clip.color._tc2(color);return clip;}}return null;}_5l2(map,attachment,_nj2){
let scale=this.scale;attachment._Ba=_nj2;let vertices=map.vertices;if(_nj2==vertices.length){let _Yn2=_kc2._1d2(vertices);if(scale!=1){for(let i=0,_c7=vertices.length;i<_c7;i++)_Yn2[i]*=scale;}attachment.vertices=_Yn2;return;}let _cl2=new Array();let bones=new Array();for(let i=0,_c7=vertices.length;i<_c7;){let _bj2=vertices[i++];bones.push(_bj2);for(let _nk2=i+_bj2*4;i<_nk2;i+=4){bones.push(vertices[i]);_cl2.push(vertices[i+1]*scale);_cl2.push(vertices[i+2]*scale);_cl2.push(vertices[i+3]);}}attachment.bones=bones;
attachment.vertices=_kc2._1d2(_cl2);}_1l2(map,name,_Ff2){let scale=this.scale;let _s6=new Array();if(map.slots){for(let _sk2 in map.slots){let _Pn2=map.slots[_sk2];let _S4=_Ff2._Q4(_sk2).index;for(let _Zn2 in _Pn2){let __n2=_Pn2[_Zn2];if(!__n2)continue;let frames=__n2.length;if(_Zn2=="attachment"){let _sA=new _8b2(frames,_S4);for(let frame=0;frame<frames;frame++){let _0o2=__n2[frame];_sA._4e2(frame,_On2(_0o2,"time",0),_0o2.name);}_s6.push(_sA);}else if(_Zn2=="rgba"){let _sA=new _Pb2(frames,frames<<2,_S4);let _0o2=__n2[0];
let time=_On2(_0o2,"time",0);let color=_15._W_1(_0o2.color);for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,color._Y4,color._Z4,color.__4,color._05);let _1o2=__n2[frame+1];if(!_1o2){_sA._Md2(_Pd2);break;}let _Mv=_On2(_1o2,"time",0);let _2o2=_15._W_1(_1o2.color);let curve=_0o2.curve;if(curve){_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,color._Y4,_2o2._Y4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,1,time,_Mv,color._Z4,_2o2._Z4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,2,time,_Mv,color.__4,_2o2.__4,1);_Pd2=_3o2(curve,_sA,
_Pd2,frame,3,time,_Mv,color._05,_2o2._05,1);}time=_Mv;color=_2o2;_0o2=_1o2;}_s6.push(_sA);}else if(_Zn2=="rgb"){let _sA=new _Qb2(frames,frames*3,_S4);let _0o2=__n2[0];let time=_On2(_0o2,"time",0);let color=_15._W_1(_0o2.color);for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,color._Y4,color._Z4,color.__4);let _1o2=__n2[frame+1];if(!_1o2){_sA._Md2(_Pd2);break;}let _Mv=_On2(_1o2,"time",0);let _2o2=_15._W_1(_1o2.color);let curve=_0o2.curve;if(curve){_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,color._Y4,_2o2._Y4,
1);_Pd2=_3o2(curve,_sA,_Pd2,frame,1,time,_Mv,color._Z4,_2o2._Z4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,2,time,_Mv,color.__4,_2o2.__4,1);}time=_Mv;color=_2o2;_0o2=_1o2;}_s6.push(_sA);}else if(_Zn2=="alpha"){_s6.push(_4o2(__n2,new _3b2(frames,frames,_S4),0,1));}else if(_Zn2=="rgba2"){let _sA=new _Ob2(frames,frames*7,_S4);let _0o2=__n2[0];let time=_On2(_0o2,"time",0);let color=_15._W_1(_0o2.light);let _rz1=_15._W_1(_0o2.dark);for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,color._Y4,color._Z4,color.__4,color._05,
_rz1._Y4,_rz1._Z4,_rz1.__4);let _1o2=__n2[frame+1];if(!_1o2){_sA._Md2(_Pd2);break;}let _Mv=_On2(_1o2,"time",0);let _2o2=_15._W_1(_1o2.light);let _5o2=_15._W_1(_1o2.dark);let curve=_0o2.curve;if(curve){_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,color._Y4,_2o2._Y4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,1,time,_Mv,color._Z4,_2o2._Z4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,2,time,_Mv,color.__4,_2o2.__4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,3,time,_Mv,color._05,_2o2._05,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,4,time,_Mv,_rz1._Y4,
_5o2._Y4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,5,time,_Mv,_rz1._Z4,_5o2._Z4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,6,time,_Mv,_rz1.__4,_5o2.__4,1);}time=_Mv;color=_2o2;_rz1=_5o2;_0o2=_1o2;}_s6.push(_sA);}else if(_Zn2=="rgb2"){let _sA=new _Nb2(frames,frames*6,_S4);let _0o2=__n2[0];let time=_On2(_0o2,"time",0);let color=_15._W_1(_0o2.light);let _rz1=_15._W_1(_0o2.dark);for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,color._Y4,color._Z4,color.__4,_rz1._Y4,_rz1._Z4,_rz1.__4);let _1o2=__n2[frame+1];if(!_1o2){_sA._Md2(_Pd2);
break;}let _Mv=_On2(_1o2,"time",0);let _2o2=_15._W_1(_1o2.light);let _5o2=_15._W_1(_1o2.dark);let curve=_0o2.curve;if(curve){_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,color._Y4,_2o2._Y4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,1,time,_Mv,color._Z4,_2o2._Z4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,2,time,_Mv,color.__4,_2o2.__4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,3,time,_Mv,_rz1._Y4,_5o2._Y4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,4,time,_Mv,_rz1._Z4,_5o2._Z4,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,5,time,_Mv,_rz1.__4,_5o2.__4,1);
}time=_Mv;color=_2o2;_rz1=_5o2;_0o2=_1o2;}_s6.push(_sA);}}}}if(map.bones){for(let _rk2 in map.bones){let _Mn2=map.bones[_rk2];let _ae2=_Ff2._U7(_rk2).index;for(let _Zn2 in _Mn2){let __n2=_Mn2[_Zn2];let frames=__n2.length;if(frames==0)continue;if(_Zn2==="rotate"){_s6.push(_4o2(__n2,new _Sb2(frames,frames,_ae2),0,1));}else if(_Zn2==="translate"){let _sA=new _gc2(frames,frames<<1,_ae2);_s6.push(_6o2(__n2,_sA,"x","y",0,scale));}else if(_Zn2==="translatex"){let _sA=new _hc2(frames,frames,_ae2);_s6.push(_4o2(__n2,_sA,
0,scale));}else if(_Zn2==="translatey"){let _sA=new _ic2(frames,frames,_ae2);_s6.push(_4o2(__n2,_sA,0,scale));}else if(_Zn2==="scale"){let _sA=new _Vb2(frames,frames<<1,_ae2);_s6.push(_6o2(__n2,_sA,"x","y",1,1));}else if(_Zn2==="scalex"){let _sA=new _Wb2(frames,frames,_ae2);_s6.push(_4o2(__n2,_sA,1,1));}else if(_Zn2==="scaley"){let _sA=new _Xb2(frames,frames,_ae2);_s6.push(_4o2(__n2,_sA,1,1));}else if(_Zn2==="shear"){let _sA=new _Yb2(frames,frames<<1,_ae2);_s6.push(_6o2(__n2,_sA,"x","y",0,1));}else if(_Zn2==="shearx"){
let _sA=new _Zb2(frames,frames,_ae2);_s6.push(_4o2(__n2,_sA,0,1));}else if(_Zn2==="sheary"){let _sA=new __b2(frames,frames,_ae2);_s6.push(_4o2(__n2,_sA,0,1));}}}}if(map.ik){for(let _xk2 in map.ik){let _Qn2=map.ik[_xk2];let _0o2=_Qn2[0];if(!_0o2)continue;let _ue2=_Ff2._wk2(_xk2);let _7o2=_Ff2._ve2.indexOf(_ue2);let _sA=new _vb2(_Qn2.length,_Qn2.length<<1,_7o2);let time=_On2(_0o2,"time",0);let mix=_On2(_0o2,"mix",1);let _se2=_On2(_0o2,"softness",0)*scale;for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,mix,_se2,
_On2(_0o2,"bendPositive",true)?1:-1,_On2(_0o2,"compress",false),_On2(_0o2,"stretch",false));let _1o2=_Qn2[frame+1];if(!_1o2){_sA._Md2(_Pd2);break;}let _Mv=_On2(_1o2,"time",0);let _Jl2=_On2(_1o2,"mix",1);let _Kl2=_On2(_1o2,"softness",0)*scale;let curve=_0o2.curve;if(curve){_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,mix,_Jl2,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,1,time,_Mv,_se2,_Kl2,scale);}time=_Mv;mix=_Jl2;_se2=_Kl2;_0o2=_1o2;}_s6.push(_sA);}}if(map.transform){for(let _xk2 in map.transform){let __n2=map.transform[_xk2];
let _0o2=__n2[0];if(!_0o2)continue;let _ue2=_Ff2._yk2(_xk2);let _7o2=_Ff2._De2.indexOf(_ue2);let _sA=new _ec2(__n2.length,__n2.length*6,_7o2);let time=_On2(_0o2,"time",0);let _xe2=_On2(_0o2,"mixRotate",1);let _ye2=_On2(_0o2,"mixX",1);let _ze2=_On2(_0o2,"mixY",_ye2);let _Ae2=_On2(_0o2,"mixScaleX",1);let _Be2=_On2(_0o2,"mixScaleY",_Ae2);let _Ce2=_On2(_0o2,"mixShearY",1);for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,_xe2,_ye2,_ze2,_Ae2,_Be2,_Ce2);let _1o2=__n2[frame+1];if(!_1o2){_sA._Md2(_Pd2);break;}let _Mv=_On2(_1o2,
"time",0);let _Ll2=_On2(_1o2,"mixRotate",1);let _Ml2=_On2(_1o2,"mixX",1);let _Nl2=_On2(_1o2,"mixY",_Ml2);let _Ol2=_On2(_1o2,"mixScaleX",1);let _Pl2=_On2(_1o2,"mixScaleY",_Ol2);let _Ql2=_On2(_1o2,"mixShearY",1);let curve=_0o2.curve;if(curve){_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,_xe2,_Ll2,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,1,time,_Mv,_ye2,_Ml2,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,2,time,_Mv,_ze2,_Nl2,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,3,time,_Mv,_Ae2,_Ol2,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,4,time,_Mv,_Be2,
_Pl2,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,5,time,_Mv,_Ce2,_Ql2,1);}time=_Mv;_xe2=_Ll2;_ye2=_Ml2;_ze2=_Nl2;_Ae2=_Ol2;_Be2=_Pl2;_Ae2=_Ol2;_0o2=_1o2;}_s6.push(_sA);}}if(map.path){for(let _xk2 in map.path){let _Qn2=map.path[_xk2];let _ue2=_Ff2._zk2(_xk2);let _7o2=_Ff2._Fe2.indexOf(_ue2);for(let _Zn2 in _Qn2){let __n2=_Qn2[_Zn2];let _0o2=__n2[0];if(!_0o2)continue;let frames=__n2.length;if(_Zn2==="position"){let _sA=new _Gb2(frames,frames,_7o2);_s6.push(_4o2(__n2,_sA,0,_ue2._sj2==_Kb2.Fixed?scale:1));}else if(_Zn2==="spacing"){
let _sA=new _Hb2(frames,frames,_7o2);_s6.push(_4o2(__n2,_sA,0,_ue2.spacingMode==_5c2.Length||_ue2.spacingMode==_5c2.Fixed?scale:1));}else if(_Zn2==="mix"){let _sA=new _Fb2(frames,frames*3,_7o2);let time=_On2(_0o2,"time",0);let _xe2=_On2(_0o2,"mixRotate",1);let _ye2=_On2(_0o2,"mixX",1);let _ze2=_On2(_0o2,"mixY",_ye2);for(let frame=0,_Pd2=0;;frame++){_sA._4e2(frame,time,_xe2,_ye2,_ze2);let _1o2=__n2[frame+1];if(!_1o2){_sA._Md2(_Pd2);break;}let _Mv=_On2(_1o2,"time",0);let _Ll2=_On2(_1o2,"mixRotate",1);let _Ml2=_On2(_1o2,
"mixX",1);let _Nl2=_On2(_1o2,"mixY",_Ml2);let curve=_0o2.curve;if(curve){_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,_xe2,_Ll2,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,1,time,_Mv,_ye2,_Ml2,1);_Pd2=_3o2(curve,_sA,_Pd2,frame,2,time,_Mv,_ze2,_Nl2,1);}time=_Mv;_xe2=_Ll2;_ye2=_Ml2;_ze2=_Nl2;_0o2=_1o2;}_s6.push(_sA);}}}}if(map.deform){for(let _8o2 in map.deform){let _9o2=map.deform[_8o2];let skin=_Ff2._g8(_8o2);for(let _sk2 in _9o2){let _Pn2=_9o2[_sk2];let _S4=_Ff2._Q4(_sk2).index;for(let _Zn2 in _Pn2){let __n2=_Pn2[_Zn2];let _0o2=__n2[0];
if(!_0o2)continue;let attachment=skin._U4(_S4,_Zn2);let _Wl2=attachment.bones;let vertices=attachment.vertices;let _Xl2=_Wl2?vertices.length/3*2:vertices.length;let _sA=new _ib2(__n2.length,__n2.length,_S4,attachment);let time=_On2(_0o2,"time",0);for(let frame=0,_Pd2=0;;frame++){let deform;let _ao2=_On2(_0o2,"vertices",null);if(!_ao2)deform=_Wl2?_kc2._Zc2(_Xl2):vertices;else {deform=_kc2._Zc2(_Xl2);let start=_On2(_0o2,"offset",0);_kc2._Pc2(_ao2,0,deform,start,_ao2.length);if(scale!=1){for(let i=start,_c7=i+_ao2.length;
i<_c7;i++)deform[i]*=scale;}if(!_Wl2){for(let i=0;i<_Xl2;i++)deform[i]+=vertices[i];}}_sA._4e2(frame,time,deform);let _1o2=__n2[frame+1];if(!_1o2){_sA._Md2(_Pd2);break;}let _Mv=_On2(_1o2,"time",0);let curve=_0o2.curve;if(curve)_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,0,1,1);time=_Mv;_0o2=_1o2;}_s6.push(_sA);}}}}if(map.drawOrder){let _sA=new _kb2(map.drawOrder.length);let _2l2=_Ff2.slots.length;let frame=0;for(let i=0;i<map.drawOrder.length;i++,frame++){let _bo2=map.drawOrder[i];let drawOrder=null;let _co2=_On2(_bo2,
"offsets",null);if(_co2){drawOrder=_kc2._Yc2(_2l2,-1);let __l2=_kc2._Yc2(_2l2-_co2.length,0);let _0m2=0,_1m2=0;for(let _Tx=0;_Tx<_co2.length;_Tx++){let _do2=_co2[_Tx];let _S4=_Ff2._Q4(_do2.slot).index;while(_0m2!=_S4)__l2[_1m2++]=_0m2++;drawOrder[_0m2+_do2.offset]=_0m2++;}while(_0m2<_2l2)__l2[_1m2++]=_0m2++;for(let _Tx=_2l2-1;_Tx>=0;_Tx--)if(drawOrder[_Tx]==-1)drawOrder[_Tx]=__l2[--_1m2];}_sA._4e2(frame,_On2(_bo2,"time",0),drawOrder);}_s6.push(_sA);}if(map.events){let _sA=new _w8(map.events.length);let frame=0;
for(let i=0;i<map.events.length;i++,frame++){let _Vn2=map.events[i];let _uA=_Ff2._Ak2(_Vn2.name);let event=new Event(_kc2._2d2(_On2(_Vn2,"time",0)),_uA);event._Z3=_On2(_Vn2,"int",_uA._Z3);event.__3=_On2(_Vn2,"float",_uA.__3);event._04=_On2(_Vn2,"string",_uA._04);if(event.data._Vk2){event.volume=_On2(_Vn2,"volume",1);event._2u1=_On2(_Vn2,"balance",0);}_sA._4e2(frame,event);}_s6.push(_sA);}let duration=0;for(let i=0,_c7=_s6.length;i<_c7;i++)duration=Math.max(duration,_s6[i]._Gd2());_Ff2.animations.push(new _4b2(name,
_s6,duration));}};var _Xn2=class {constructor(_Aa,skin,_S4,parent,_0l2){this._Aa=_Aa;this.skin=skin;this._S4=_S4;this.parent=parent;this._0l2=_0l2;}};function _4o2(keys,_sA,defaultValue,scale){let _0o2=keys[0];let time=_On2(_0o2,"time",0);let value=_On2(_0o2,"value",defaultValue)*scale;let _Pd2=0;for(let frame=0;;frame++){_sA._4e2(frame,time,value);let _1o2=keys[frame+1];if(!_1o2){_sA._Md2(_Pd2);return _sA;}let _Mv=_On2(_1o2,"time",0);let _Vd2=_On2(_1o2,"value",defaultValue)*scale;if(_0o2.curve)_Pd2=_3o2(_0o2.curve,
_sA,_Pd2,frame,0,time,_Mv,value,_Vd2,scale);time=_Mv;value=_Vd2;_0o2=_1o2;}}function _6o2(keys,_sA,_eo2,_fo2,defaultValue,scale){let _0o2=keys[0];let time=_On2(_0o2,"time",0);let _Qd2=_On2(_0o2,_eo2,defaultValue)*scale;let _Vd2=_On2(_0o2,_fo2,defaultValue)*scale;let _Pd2=0;for(let frame=0;;frame++){_sA._4e2(frame,time,_Qd2,_Vd2);let _1o2=keys[frame+1];if(!_1o2){_sA._Md2(_Pd2);return _sA;}let _Mv=_On2(_1o2,"time",0);let _8m2=_On2(_1o2,_eo2,defaultValue)*scale;let _9m2=_On2(_1o2,_fo2,defaultValue)*scale;let curve=_0o2.curve;
if(curve){_Pd2=_3o2(curve,_sA,_Pd2,frame,0,time,_Mv,_Qd2,_8m2,scale);_Pd2=_3o2(curve,_sA,_Pd2,frame,1,time,_Mv,_Vd2,_9m2,scale);}time=_Mv;_Qd2=_8m2;_Vd2=_9m2;_0o2=_1o2;}}function _3o2(curve,_sA,_Pd2,frame,value,_Lv,_Mv,_Qd2,_Vd2,scale){if(curve=="stepped"){_sA._Ld2(frame);return _Pd2;}let i=value<<2;let _Rd2=curve[i];let _Sd2=curve[i+1]*scale;let _Td2=curve[i+2];let _Ud2=curve[i+3]*scale;_sA._Od2(_Pd2,frame,value,_Lv,_Qd2,_Rd2,_Sd2,_Td2,_Ud2,_Mv,_Vd2);return _Pd2+1;}function _On2(map,_yi,defaultValue){return map[_yi]!==void 0?map[_yi]:defaultValue;
}(()=>{if(typeof Math._3d2==="undefined"){Math._3d2=function(_tc){return function(x){return _tc[0]=x,_tc[0];};}(new Float32Array(1));}})();var _yb2=class {constructor(_go2,_ho2){this._go2=0;this._ho2=0;this._go2=_go2;this._ho2=_ho2;}_io2(skeleton){}transform(position,_9d,light,dark){position.x+=_zb2._Hc2(-this._go2,this._ho2);position.y+=_zb2._Hc2(-this._go2,this._ho2);}end(){}};var _jo2=class {constructor(_K01){this._ko2=0;this._lo2=0;this._K01=0;this.angle=0;this._08=0;this._18=0;this._K01=_K01;}_io2(skeleton){
this._08=skeleton.x+this._ko2;this._18=skeleton.y+this._lo2;}transform(position,_9d,light,dark){let _mo2=this.angle*_zb2._Mc2;let x=position.x-this._08;let y=position.y-this._18;let _ho=Math.sqrt(x*x+y*y);if(_ho<this._K01){let _no2=_jo2.interpolation.apply(0,_mo2,(this._K01-_ho)/this._K01);let cos=Math.cos(_no2);let sin=Math.sin(_no2);position.x=cos*x-sin*y+this._08;position.y=sin*x+cos*y+this._18;}}end(){}};var _7c2=_jo2;_7c2.interpolation=new _Mb2(2);return _2b2;})();var _oo2=0,_po2=1,_qo2=2,_ro2=3,_so2=4,
_to2=5,_uo2=6,_vo2=7,_wo2=8,_xo2=9;var _yo2=0,_zo2=1,_Ao2=2,_Bo2=3;/*@constructor */function _Co2(_wd,_yg){this.type=_wd;this.id=_yg;this._n5=null;this._Do2=-1;};_Co2.prototype._Eo2=function(_6_1,_Fo2,_Go2,_Ho2,_Io2){var _Jo2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var width=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var height=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;this._Do2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;return _Go2;};_Co2.prototype._Ko2=function(_wQ,_7I){var __4=new ArrayBuffer(4);var _05=new Uint32Array(__4);var c=new Uint8Array(__4);
_05[0]=0xdeadbeef;if(c[0]==0xef){return(((_wQ&0xff)<<8)|(_7I&0xff));}if(c[0]==0xde){return(((_7I&0xff)<<8)|(_wQ&0xff));}};_Co2.prototype._Lo2=function(_Mo2){try{do {if(_Mo2[1]==0xd9){_Mo2=_Mo2.subarray(2);}else if(_Mo2[1]==0xd8){if((_Mo2[6]===0x4a)&&(_Mo2[7]===0x46)&&(_Mo2[8]===0x49)&&(_Mo2[9]===0x46)){var w=this._Ko2(_Mo2[14],_Mo2[15]);var h=this._Ko2(_Mo2[16],_Mo2[17]);var _No2={width:w,height:h,body:_Mo2};return _No2;}_Mo2=_Mo2.subarray(4+this._Ko2(_Mo2[4],_Mo2[5]));}else {_Mo2=_Mo2.subarray(2+this._Ko2(_Mo2[2],
_Mo2[3]));}}while((_Mo2.byteLength>=0)&&(_Mo2[0]==0xff));}catch(e){debug(e.message);}var _No2={width:w,height:h,body:_Mo2};return _No2;};_Co2.prototype._Oo2=function(_wd,_89,_99,_Mo2,_Po2,_Qo2,_Ro2){switch(_wd){case _so2:{this._n5=this._So2(_89,_99,_Mo2,"gif");}break;case _ro2:{this._n5=this._So2(_89,_99,_Mo2,"png");}break;case _po2:case _oo2:{this._n5=this._So2(_89,_99,_Mo2,"jpeg");}break;case _qo2:{var _No2=this._Lo2(_Mo2);this._n5=this._So2(_No2.width,_No2.height,_No2.body,"jpeg",function(_Bb1){var _To2=String.fromCharCode.apply(null,
new Uint16Array(_Po2));var _To2=_To2.split('').map(function(e){return e.charCodeAt(0);});var Zlib=window["Zlib"];var _Uo2=new Zlib["Inflate"](_To2);var _Vo2=_Uo2["decompress"]();this._n5=_oU1(_Bb1,_Vo2);});}break;case _to2:case _wo2:{this._n5=null;}break;case _uo2:case _vo2:case _xo2:{var _n5=new Image();var _ed=_09._kU1(_n5,_Mo2,_89,_99);_n5._z9=_ed;_n5._fd=_89;_n5._gd=_99;this._n5=_n5;}break;default :break;}};_Co2.prototype._So2=function(_89,_99,_Mo2,_Wo2,_UF,_Xo2){var _5m2=new Uint16Array(_Mo2);var _rG="";for(var i=0,
_p7=_5m2.length;i<_p7;i++){_rG+=String.fromCharCode(_5m2[i]);}var _Yo2=window.btoa(_rG);var _Zo2="data:image/"+_Wo2+";base64,"+_Yo2;var img=new Image();img.onload=function(){var _k5={texture:img};_y9(_k5);if(_UF){_UF(_k5);}};img.onerror=function(e){debug(e);if(_Xo2){_Xo2(e);}};img.src=_zz(null,null,_Zo2);return img;};function _oU1(_Bb1,_ga){var _ed=_09._oU1(_Bb1.texture._z9,_ga);_Bb1.texture._z9=_ed;_Bb1.texture._fd=_ed._OT1;_Bb1.texture._gd=_ed._PT1;return _Bb1.texture;}var __o2=0,_0p2=1,_1p2=2;var _2p2=0,
_3p2=1,_4p2=2,_5p2=3;var _6p2=0,_7p2=1;var _8p2={_hk1:0,_ik1:0,version:1};/*@constructor */function _9p2(_wd,_yg){this.type=_wd;this.id=_yg;};_9p2.prototype._ap2=function(_Fo2,_Go2,_Ho2,_bp2){this._O6=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;this._P6=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;this._Q6=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;this._R6=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;var _cp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;this._dp2=[];for(var i=0;i<_cp2;i++){var _ep2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var _fp2=_Fo2.getInt32(_Go2,
_Ho2);_Go2+=4;var _gp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var _hp2={_ep2:_ep2,_fp2:_fp2,_gp2:_gp2};_hp2._ip2=(_ep2>0)?[]:null;_hp2._jp2=(_fp2>0)?[]:null;_hp2._kp2=(_gp2>0)?[]:null;_Go2=this._lp2(_hp2,_Fo2,_Go2,_Ho2,_bp2);_Go2=this._mp2(_hp2,_Fo2,_Go2,_Ho2);_Go2=this._np2(_hp2,_Fo2,_Go2,_Ho2);this._dp2.push(_hp2);}return _Go2;};_9p2.prototype._lp2=function(_op2,_Fo2,_Go2,_Ho2,_bp2){_op2._ip2=[];for(var i=0;i<_op2._ep2;i++){var _pp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var _qp2=null;switch(_pp2){case _3p2:{_qp2={
type:_3p2};var _sr=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var _tr=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var _ur=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var alpha=_Fo2.getUint8(_Go2,_Ho2);_Go2++;_qp2._55=(_sr|(_tr<<8)|(_ur<<16)|(alpha<<24));}break;case _4p2:{_qp2={type:_4p2};_qp2._rp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_qp2._Do2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var _sp2=[];for(var _e7=0;_e7<9;_e7++){_sp2[_e7]=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;}_qp2._sp2=new _qr();_qp2._sp2._e7[_Ns]=_sp2[0];_qp2._sp2._e7[_Os]=_sp2[1];_qp2._sp2._e7[_Qs]=_sp2[2];
_qp2._sp2._e7[_Rs]=_sp2[3];_qp2._sp2._e7[_gs]=_sp2[4];_qp2._sp2._e7[_Ts]=_sp2[5];_qp2._tp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_qp2._up2=[];for(var _e7=0;_e7<_qp2._tp2;_e7++){var ratio=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var _sr=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var _tr=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var _ur=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var alpha=_Fo2.getUint8(_Go2,_Ho2);_Go2++;_qp2._up2.push({ratio:ratio,_55:(_sr|(_tr<<8)|(_ur<<16)|(alpha<<24))});}_qp2._Zc=null;}break;case _5p2:{_qp2={type:_5p2};_qp2._vp2=_Fo2.getInt32(_Go2,
_Ho2);_Go2+=4;_qp2._wp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_qp2._xp2=-1;for(var index=0;index<_bp2.length;index++){if(_bp2[index].id===_qp2._wp2){_qp2._xp2=index;break;}}var _sp2=[];for(var _e7=0;_e7<9;_e7++){_sp2[_e7]=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;}_qp2._sp2=new _qr();_qp2._sp2._e7[_Ns]=_sp2[0];_qp2._sp2._e7[_Os]=_sp2[1];_qp2._sp2._e7[_Qs]=_sp2[2];_qp2._sp2._e7[_Rs]=_sp2[3];_qp2._sp2._e7[_gs]=_sp2[4];_qp2._sp2._e7[_Ts]=_sp2[5];}break;}_op2._ip2.push(_qp2);}return _Go2;};_9p2.prototype._yp2=function(_zp2){
if((_zp2===null)||(_zp2===undefined)){return;}var _Ap2=256,_Bp2=1,_Cp2=64,_Dp2=64;var _Ep2=[];var width,height;switch(_zp2._rp2){default :return;case _6p2:{width=_Ap2;height=_Bp2;for(var i=0;i<_Ap2;i++){_Ep2[i]=this._Fp2(_zp2,i);}}break;case _7p2:{width=_Cp2;height=_Dp2;var _Gp2=(_Cp2-1)/2;var _Hp2=(_Dp2-1)/2;var _K01=_r7(_Gp2,_Hp2);for(var _J6=0;_J6<_Dp2;_J6++){for(var i=0;i<_Cp2;i++){var _Hb=i-_Gp2;var _Ib=_J6-_Hp2;var _ho=Math.sqrt(_Hb*_Hb+_Ib*_Ib);_ho/=_K01;var ratio=255*_ho;_Ep2[(_J6*_Cp2)+i]=this._Fp2(_zp2,
ratio);}}}break;}_zp2._Zc=_Ip2(width,height,_Ep2);};function _Ip2(_Xi,_Yi,_lU1){var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);var _ed=_09._mU1(_Va1,_lU1,_Xi,_Yi);var _k5=new _im();_k5.x=0;_k5.y=0;_k5.w=_ed._OT1;_k5.h=_ed._PT1;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_Xi;_k5.oh=_Yi;_k5.tp=_Bm(_Va1);_k5.texture=_o5[_k5.tp];_k5.texture._z9=_ed;_k5.texture._fd=_Va1.width;_k5.texture._gd=_Va1.height;_k5.texture.complete=true;return _k5;}_9p2.prototype._Fp2=function(_zp2,
_F_){if(_zp2._tp2<=0){return 0;}_F_=(_F_<0)?0:(_F_>255)?255:_F_;if(_F_<_zp2._up2[0].ratio){return _zp2._up2[0]._55;}for(var i=1;i<_zp2._tp2;i++){var _Jp2=_zp2._up2[i];if(_Jp2.ratio>=_F_){var _Kp2=_zp2._up2[i-1];var _Lp2=0;if(_Jp2.ratio!=_Kp2.ratio){_Lp2=((_F_-_Kp2.ratio)<<8)/(_Jp2.ratio-_Kp2.ratio);}var _Mp2=256-_Lp2;var _55=_Jp2._55;var _Np2=_Kp2._55;var _Op2=[];_Op2[0]=((_55&0xff)*_Lp2)>>8;_Op2[1]=(((_55>>8)&0xff)*_Lp2)>>8;_Op2[2]=(((_55>>16)&0xff)*_Lp2)>>8;_Op2[3]=(((_55>>24)&0xff)*_Lp2)>>8;_Op2[0]+=((_Np2&0xff)*_Mp2)>>8;
_Op2[1]+=(((_Np2>>8)&0xff)*_Mp2)>>8;_Op2[2]+=(((_Np2>>16)&0xff)*_Mp2)>>8;_Op2[3]+=(((_Np2>>24)&0xff)*_Mp2)>>8;var _Pp2=_Op2[0]|(_Op2[1]<<8)|(_Op2[2]<<16)|(_Op2[3]<<24);return _Pp2;}}return _zp2._up2[_zp2._tp2-1]._55;};_9p2.prototype._mp2=function(_op2,_Fo2,_Go2,_Ho2){_op2._jp2=[];for(var i=0;i<_op2._fp2;i++){var _sr=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var _tr=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var _ur=_Fo2.getUint8(_Go2,_Ho2);_Go2++;var alpha=_Fo2.getUint8(_Go2,_Ho2);_Go2++;_op2._jp2.push({_55:(_sr|(_tr<<8)|(_ur<<16)|(alpha<<24))}
);}return _Go2;};_9p2.prototype._np2=function(_op2,_Fo2,_Go2,_Ho2){var i,_e7;_op2._kp2=[];for(i=0;i<_op2._gp2;i++){var _Qp2={};_op2._kp2.push(_Qp2);_Qp2._Rp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._Sp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._Tp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._Up2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._Di=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._Vp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._Wp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._Xp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;if(_8p2.version>=2){
_Qp2._Yp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._Zp2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;}if(_8p2.version>=3){_Qp2.__p2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Qp2._0q2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;}_Qp2._1q2=(_Qp2._Up2>0)?[]:null;_Qp2._2q2=(_Qp2._Di>0)?[]:null;_Qp2._3q2=(_Qp2._Vp2>0)?[]:null;_Qp2._4q2=(_Qp2._Wp2>0)?[]:null;_Qp2._5q2=(_Qp2._Xp2>0)?[]:null;_Qp2._6q2=(_Qp2._Yp2)?[]:null;_Qp2._7q2=(_Qp2._Zp2)?[]:null;_Qp2._8q2=(_Qp2.__p2)?[]:null;_Qp2._9q2=(_Qp2._0q2)?[]:null;for(_e7=0;_e7<_Qp2._Up2*2;_e7++){
_Qp2._1q2[_e7]=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;}for(_e7=0;_e7<_Qp2._Di*2;_e7++){_Qp2._aq2[_e7]=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;}for(_e7=0;_e7<_Qp2._Vp2*3;_e7++){_Qp2._3q2[_e7]=_Fo2.getUint32(_Go2,_Ho2);_Go2+=4;}for(_e7=0;_e7<_Qp2._Wp2*2;_e7++){_Qp2._4q2[_e7]=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;}for(_e7=0;_e7<_Qp2._Xp2*3;_e7++){_Qp2._5q2[_e7]=_Fo2.getUint32(_Go2,_Ho2);_Go2+=4;}if(_8p2.version>=2){for(_e7=0;_e7<_Qp2._Yp2*2;_e7++){_Qp2._6q2[_e7]=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;}for(_e7=0;_e7<_Qp2._Zp2*2;
_e7++){_Qp2._7q2[_e7]=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;}}if(_8p2.version>=3){for(_e7=0;_e7<_Qp2.__p2*2;_e7++){_Qp2._8q2[_e7]=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;}for(_e7=0;_e7<_Qp2._0q2*2;_e7++){_Qp2._9q2[_e7]=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;}}}return _Go2;};var _bq2=1.0/20.0;/*@constructor */function _cq2(){this._dq2=0;this._eq2=0;this._O6=0;this._P6=0;this._Q6=0;this._R6=0;this._fq2=null;};_cq2.prototype._gq2=function(_Fo2,_Go2,_Ho2){this._dq2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;this._eq2=_Fo2.getInt32(_Go2,
_Ho2);_Go2+=4;this._O6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;this._P6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;this._Q6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;this._R6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;var _hq2,_iq2,_jq2;_hq2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_iq2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_jq2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;this._fq2={_hq2:_hq2,_iq2:_iq2,_jq2:_jq2};this._kq2=[];for(var i=0;i<this._eq2;i++){var _lq2={};this._kq2.push(_lq2);_lq2._mq2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;
_lq2._O6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;_lq2._P6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;_lq2._Q6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;_lq2._R6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;_lq2._nq2=[];for(var _J6=0;_J6<_lq2._mq2;_J6++){var _Nx={};_lq2._nq2.push(_Nx);_Nx._ZI=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Nx.index=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Nx.depth=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;_Nx._oq2=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var _pq2=[];for(var _0l=0;_0l<4;_0l++){_pq2[_0l]=_Fo2.getInt32(_Go2,
_Ho2);_Go2+=4;}var _qq2=[];for(var _0l=0;_0l<4;_0l++){_qq2[_0l]=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;}_Nx._rq2=[];_Nx._sq2=[];_Nx._tq2=[];_Nx._rq2[0]=_pq2[2];_Nx._sq2[0]=_qq2[2];_Nx._tq2[0]=0;_Nx._rq2[1]=_pq2[1];_Nx._sq2[1]=_qq2[1];_Nx._tq2[1]=_qq2[1];_Nx._rq2[2]=_pq2[0];_Nx._sq2[2]=_qq2[0];_Nx._tq2[2]=_qq2[0];_Nx._rq2[3]=_pq2[3];_Nx._sq2[3]=_qq2[3];_Nx._tq2[3]=_qq2[3];_Nx._O6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;_Nx._P6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;_Nx._Q6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;
_Go2+=4;_Nx._R6=_Fo2.getFloat32(_Go2,_Ho2)*_bq2;_Go2+=4;var _sp2=[];for(var _0l=0;_0l<9;_0l++){_sp2[_0l]=_Fo2.getFloat32(_Go2,_Ho2);_Go2+=4;}_Nx._sp2=new _qr();_Nx._sp2._e7[_Ns]=_sp2[0];_Nx._sp2._e7[_Os]=_sp2[1];_Nx._sp2._e7[_Qs]=_sp2[2];_Nx._sp2._e7[_Rs]=_sp2[3];_Nx._sp2._e7[_gs]=_sp2[4];_Nx._sp2._e7[_Ts]=_sp2[5];}}return _Go2;};function _A51(_uq2){this._vq2=_uq2;this._wq2=_uq2;this._xq2=_uq2;this._yq2=0;this._zq2=0;this._Aq2=0;this._Bq2=0;}_A51.prototype.get =function(){return this._vq2;};_A51.prototype.set =function(_wn,
_U71=0){_U71=Math.max(0,_U71);if(_U71==0){this._vq2=_wn;this._xq2=_wn;this._Aq2=performance.now();}else {this._wq2=this._vq2;this._xq2=_wn;this._yq2=this._xq2-this._wq2;this._zq2=performance.now();this._Aq2=this._zq2+_U71;this._Bq2=1/(this._Aq2-this._zq2);}};_A51.prototype._v6=function(){const currentTime=performance.now();if(currentTime>=this._Aq2){this._vq2=this._xq2;}else {let frac=(currentTime-this._zq2)*this._Bq2;frac=Math.max(0,Math.min(frac,1));this._vq2=this._wq2+(this._yq2*frac);}return this._vq2;
};///NO_OBFUSCATE_START
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({"/yoga-wasm-base64-csm.js":[function(require,module,exports){
(function (__filename){(function (){
'use strict';

var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
var loadYoga = (() => {
  var _scriptDir = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('yoga-wasm-base64-csm.js', document.baseURI).href));
  
  return (
function(loadYoga) {
  loadYoga = loadYoga || {};


var h;h||(h=typeof loadYoga !== 'undefined' ? loadYoga : {});var aa,ca;h.ready=new Promise(function(a,b){aa=a;ca=b;});var da=Object.assign({},h),q="";"undefined"!=typeof document&&document.currentScript&&(q=document.currentScript.src);_scriptDir&&(q=_scriptDir);0!==q.indexOf("blob:")?q=q.substr(0,q.replace(new RegExp("[?#].*"),"").lastIndexOf("/")+1):q="";var ea=h.print||console.log.bind(console),v=h.printErr||console.warn.bind(console);Object.assign(h,da);da=null;var w;h.wasmBinary&&(w=h.wasmBinary);
h.noExitRuntime||!0;"object"!=typeof WebAssembly&&x("no native wasm support detected");var fa,ha=!1;function z(a,b,c){c=b+c;for(var d="";!(b>=c);){var e=a[b++];if(!e)break;if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else {var g=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|g:(e&7)<<18|f<<12|g<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023));}}else d+=String.fromCharCode(e);}return d}
var ia,ja,A,C,ka,D,E,la,ma;function na(){var a=fa.buffer;ia=a;h.HEAP8=ja=new Int8Array(a);h.HEAP16=C=new Int16Array(a);h.HEAP32=D=new Int32Array(a);h.HEAPU8=A=new Uint8Array(a);h.HEAPU16=ka=new Uint16Array(a);h.HEAPU32=E=new Uint32Array(a);h.HEAPF32=la=new Float32Array(a);h.HEAPF64=ma=new Float64Array(a);}var oa,pa=[],qa=[],ra=[];function sa(){var a=h.preRun.shift();pa.unshift(a);}var F=0,G=null;
function x(a){if(h.onAbort)h.onAbort(a);a="Aborted("+a+")";v(a);ha=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ca(a);throw a;}function ua(a){return a.startsWith("data:application/octet-stream;base64,")}var H;H="data:application/octet-stream;base64, ";if(!ua(H)){var va=H;H=h.locateFile?h.locateFile(va,q):q+va;}
function wa(){var a=H;try{if(a==H&&w)return new Uint8Array(w);if(ua(a))try{var b=xa(a.slice(37)),c=new Uint8Array(b.length);for(a=0;a<b.length;++a)c[a]=b.charCodeAt(a);var d=c;}catch(f){throw Error("Converting base64 string to bytes failed.");}else d=void 0;var e=d;if(e)return e;throw "both async and sync fetching of the wasm failed";}catch(f){x(f);}}
function ya(){return w||"function"!=typeof fetch?Promise.resolve().then(function(){return wa()}):fetch(H,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw "failed to load wasm binary file at '"+H+"'";return a.arrayBuffer()}).catch(function(){return wa()})}function za(a){for(;0<a.length;)a.shift()(h);}function Aa(a){if(void 0===a)return "_unknown";a=a.replace(new RegExp("[^a-zA-Z0-9_]", "g"),"$");var b=a.charCodeAt(0);return 48<=b&&57>=b?"_"+a:a}
function Ba(a,b){a=Aa(a);return function(){return b.apply(this,arguments)}}var J=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Ca=[];function Da(a){var b=Error,c=Ba(a,function(d){this.name=a;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(new RegExp("^Error(:[^\n]*)?\n"),""));});c.prototype=Object.create(b.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message};return c}var K=void 0;
function L(a){throw new K(a);}var M=a=>{a||L("Cannot use deleted val. handle = "+a);return J[a].value},Ea=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:var b=Ca.length?Ca.pop():J.length;J[b]={ga:1,value:a};return b}},Fa=void 0,Ga=void 0;function N(a){for(var b="";A[a];)b+=Ga[A[a++]];return b}var O=[];function Ha(){for(;O.length;){var a=O.pop();a.M.$=!1;a["delete"]();}}var P=void 0,Q={};
function Ia(a,b){for(void 0===b&&L("ptr should not be undefined");a.R;)b=a.ba(b),a=a.R;return b}var R={};function Ja(a){a=Ka(a);var b=N(a);S(a);return b}function La(a,b){var c=R[a];void 0===c&&L(b+" has unknown type "+Ja(a));return c}function Ma(){}var Na=!1;function Oa(a){--a.count.value;0===a.count.value&&(a.T?a.U.W(a.T):a.P.N.W(a.O));}function Pa(a,b,c){if(b===c)return a;if(void 0===c.R)return null;a=Pa(a,b,c.R);return null===a?null:c.na(a)}var Qa={};function Ra(a,b){b=Ia(a,b);return Q[b]}
var Sa=void 0;function Ta(a){throw new Sa(a);}function Ua(a,b){b.P&&b.O||Ta("makeClassHandle requires ptr and ptrType");!!b.U!==!!b.T&&Ta("Both smartPtrType and smartPtr must be specified");b.count={value:1};return T(Object.create(a,{M:{value:b}}))}function T(a){if("undefined"===typeof FinalizationRegistry)return T=b=>b,a;Na=new FinalizationRegistry(b=>{Oa(b.M);});T=b=>{var c=b.M;c.T&&Na.register(b,{M:c},b);return b};Ma=b=>{Na.unregister(b);};return T(a)}var Va={};
function Wa(a){for(;a.length;){var b=a.pop();a.pop()(b);}}function Xa(a){return this.fromWireType(D[a>>2])}var U={},Ya={};function V(a,b,c){function d(k){k=c(k);k.length!==a.length&&Ta("Mismatched type converter count");for(var m=0;m<a.length;++m)W(a[m],k[m]);}a.forEach(function(k){Ya[k]=b;});var e=Array(b.length),f=[],g=0;b.forEach((k,m)=>{R.hasOwnProperty(k)?e[m]=R[k]:(f.push(k),U.hasOwnProperty(k)||(U[k]=[]),U[k].push(()=>{e[m]=R[k];++g;g===f.length&&d(e);}));});0===f.length&&d(e);}
function Za(a){switch(a){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+a);}}
function W(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");var d=b.name;a||L('type "'+d+'" must have a positive integer typeid pointer');if(R.hasOwnProperty(a)){if(c.ua)return;L("Cannot register type '"+d+"' twice");}R[a]=b;delete Ya[a];U.hasOwnProperty(a)&&(b=U[a],delete U[a],b.forEach(e=>e()));}function $a(a){L(a.M.P.N.name+" instance already deleted");}function X(){}
function ab(a,b,c){if(void 0===a[b].S){var d=a[b];a[b]=function(){a[b].S.hasOwnProperty(arguments.length)||L("Function '"+c+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+a[b].S+")!");return a[b].S[arguments.length].apply(this,arguments)};a[b].S=[];a[b].S[d.Z]=d;}}
function bb(a,b){h.hasOwnProperty(a)?(L("Cannot register public name '"+a+"' twice"),ab(h,a,a),h.hasOwnProperty(void 0)&&L("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),h[a].S[void 0]=b):h[a]=b;}function cb(a,b,c,d,e,f,g,k){this.name=a;this.constructor=b;this.X=c;this.W=d;this.R=e;this.pa=f;this.ba=g;this.na=k;this.ja=[];}
function db(a,b,c){for(;b!==c;)b.ba||L("Expected null or instance of "+c.name+", got an instance of "+b.name),a=b.ba(a),b=b.R;return a}function eb(a,b){if(null===b)return this.ea&&L("null is not a valid "+this.name),0;b.M||L('Cannot pass "'+fb(b)+'" as a '+this.name);b.M.O||L("Cannot pass deleted object as a pointer of type "+this.name);return db(b.M.O,b.M.P.N,this.N)}
function gb(a,b){if(null===b){this.ea&&L("null is not a valid "+this.name);if(this.da){var c=this.fa();null!==a&&a.push(this.W,c);return c}return 0}b.M||L('Cannot pass "'+fb(b)+'" as a '+this.name);b.M.O||L("Cannot pass deleted object as a pointer of type "+this.name);!this.ca&&b.M.P.ca&&L("Cannot convert argument of type "+(b.M.U?b.M.U.name:b.M.P.name)+" to parameter type "+this.name);c=db(b.M.O,b.M.P.N,this.N);if(this.da)switch(void 0===b.M.T&&L("Passing raw pointer to smart pointer is illegal"),
this.Ba){case 0:b.M.U===this?c=b.M.T:L("Cannot convert argument of type "+(b.M.U?b.M.U.name:b.M.P.name)+" to parameter type "+this.name);break;case 1:c=b.M.T;break;case 2:if(b.M.U===this)c=b.M.T;else {var d=b.clone();c=this.xa(c,Ea(function(){d["delete"]();}));null!==a&&a.push(this.W,c);}break;default:L("Unsupporting sharing policy");}return c}
function hb(a,b){if(null===b)return this.ea&&L("null is not a valid "+this.name),0;b.M||L('Cannot pass "'+fb(b)+'" as a '+this.name);b.M.O||L("Cannot pass deleted object as a pointer of type "+this.name);b.M.P.ca&&L("Cannot convert argument of type "+b.M.P.name+" to parameter type "+this.name);return db(b.M.O,b.M.P.N,this.N)}
function Y(a,b,c,d){this.name=a;this.N=b;this.ea=c;this.ca=d;this.da=!1;this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0;void 0!==b.R?this.toWireType=gb:(this.toWireType=d?eb:hb,this.V=null);}function ib(a,b){h.hasOwnProperty(a)||Ta("Replacing nonexistant public symbol");h[a]=b;h[a].Z=void 0;}
function jb(a,b){var c=[];return function(){c.length=0;Object.assign(c,arguments);if(a.includes("j")){var d=h["dynCall_"+a];d=c&&c.length?d.apply(null,[b].concat(c)):d.call(null,b);}else d=oa.get(b).apply(null,c);return d}}function Z(a,b){a=N(a);var c=a.includes("j")?jb(a,b):oa.get(b);"function"!=typeof c&&L("unknown function pointer with signature "+a+": "+b);return c}var mb=void 0;
function nb(a,b){function c(f){e[f]||R[f]||(Ya[f]?Ya[f].forEach(c):(d.push(f),e[f]=!0));}var d=[],e={};b.forEach(c);throw new mb(a+": "+d.map(Ja).join([", "]));}
function ob(a,b,c,d,e){var f=b.length;2>f&&L("argTypes array size mismatch! Must at least get return value and 'this' types!");var g=null!==b[1]&&null!==c,k=!1;for(c=1;c<b.length;++c)if(null!==b[c]&&void 0===b[c].V){k=!0;break}var m="void"!==b[0].name,l=f-2,n=Array(l),p=[],r=[];return function(){arguments.length!==l&&L("function "+a+" called with "+arguments.length+" arguments, expected "+l+" args!");r.length=0;p.length=g?2:1;p[0]=e;if(g){var u=b[1].toWireType(r,this);p[1]=u;}for(var t=0;t<l;++t)n[t]=
b[t+2].toWireType(r,arguments[t]),p.push(n[t]);t=d.apply(null,p);if(k)Wa(r);else for(var y=g?1:2;y<b.length;y++){var B=1===y?u:n[y-2];null!==b[y].V&&b[y].V(B);}u=m?b[0].fromWireType(t):void 0;return u}}function pb(a,b){for(var c=[],d=0;d<a;d++)c.push(E[b+4*d>>2]);return c}function qb(a){4<a&&0===--J[a].ga&&(J[a]=void 0,Ca.push(a));}function fb(a){if(null===a)return "null";var b=typeof a;return "object"===b||"array"===b||"function"===b?a.toString():""+a}
function rb(a,b){switch(b){case 2:return function(c){return this.fromWireType(la[c>>2])};case 3:return function(c){return this.fromWireType(ma[c>>3])};default:throw new TypeError("Unknown float type: "+a);}}
function sb(a,b,c){switch(b){case 0:return c?function(d){return ja[d]}:function(d){return A[d]};case 1:return c?function(d){return C[d>>1]}:function(d){return ka[d>>1]};case 2:return c?function(d){return D[d>>2]}:function(d){return E[d>>2]};default:throw new TypeError("Unknown integer type: "+a);}}function tb(a,b){for(var c="",d=0;!(d>=b/2);++d){var e=C[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e);}return c}
function ub(a,b,c){void 0===c&&(c=2147483647);if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e)C[b>>1]=a.charCodeAt(e),b+=2;C[b>>1]=0;return b-d}function vb(a){return 2*a.length}function wb(a,b){for(var c=0,d="";!(c>=b/4);){var e=D[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e);}return d}
function xb(a,b,c){void 0===c&&(c=2147483647);if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var g=a.charCodeAt(++e);f=65536+((f&1023)<<10)|g&1023;}D[b>>2]=f;b+=4;if(b+4>c)break}D[b>>2]=0;return b-d}function yb(a){for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4;}return b}var zb={};function Ab(a){var b=zb[a];return void 0===b?N(a):b}var Bb=[];function Cb(a){var b=Bb.length;Bb.push(a);return b}
function Db(a,b){for(var c=Array(a),d=0;d<a;++d)c[d]=La(E[b+4*d>>2],"parameter "+d);return c}var Eb=[],Fb=[null,[],[]];K=h.BindingError=Da("BindingError");h.count_emval_handles=function(){for(var a=0,b=5;b<J.length;++b)void 0!==J[b]&&++a;return a};h.get_first_emval=function(){for(var a=5;a<J.length;++a)if(void 0!==J[a])return J[a];return null};Fa=h.PureVirtualError=Da("PureVirtualError");for(var Gb=Array(256),Hb=0;256>Hb;++Hb)Gb[Hb]=String.fromCharCode(Hb);Ga=Gb;h.getInheritedInstanceCount=function(){return Object.keys(Q).length};
h.getLiveInheritedInstances=function(){var a=[],b;for(b in Q)Q.hasOwnProperty(b)&&a.push(Q[b]);return a};h.flushPendingDeletes=Ha;h.setDelayFunction=function(a){P=a;O.length&&P&&P(Ha);};Sa=h.InternalError=Da("InternalError");X.prototype.isAliasOf=function(a){if(!(this instanceof X&&a instanceof X))return !1;var b=this.M.P.N,c=this.M.O,d=a.M.P.N;for(a=a.M.O;b.R;)c=b.ba(c),b=b.R;for(;d.R;)a=d.ba(a),d=d.R;return b===d&&c===a};
X.prototype.clone=function(){this.M.O||$a(this);if(this.M.aa)return this.M.count.value+=1,this;var a=T,b=Object,c=b.create,d=Object.getPrototypeOf(this),e=this.M;a=a(c.call(b,d,{M:{value:{count:e.count,$:e.$,aa:e.aa,O:e.O,P:e.P,T:e.T,U:e.U}}}));a.M.count.value+=1;a.M.$=!1;return a};X.prototype["delete"]=function(){this.M.O||$a(this);this.M.$&&!this.M.aa&&L("Object already scheduled for deletion");Ma(this);Oa(this.M);this.M.aa||(this.M.T=void 0,this.M.O=void 0);};X.prototype.isDeleted=function(){return !this.M.O};
X.prototype.deleteLater=function(){this.M.O||$a(this);this.M.$&&!this.M.aa&&L("Object already scheduled for deletion");O.push(this);1===O.length&&P&&P(Ha);this.M.$=!0;return this};Y.prototype.qa=function(a){this.ka&&(a=this.ka(a));return a};Y.prototype.ha=function(a){this.W&&this.W(a);};Y.prototype.argPackAdvance=8;Y.prototype.readValueFromPointer=Xa;Y.prototype.deleteObject=function(a){if(null!==a)a["delete"]();};
Y.prototype.fromWireType=function(a){function b(){return this.da?Ua(this.N.X,{P:this.wa,O:c,U:this,T:a}):Ua(this.N.X,{P:this,O:a})}var c=this.qa(a);if(!c)return this.ha(a),null;var d=Ra(this.N,c);if(void 0!==d){if(0===d.M.count.value)return d.M.O=c,d.M.T=a,d.clone();d=d.clone();this.ha(a);return d}d=this.N.pa(c);d=Qa[d];if(!d)return b.call(this);d=this.ca?d.la:d.pointerType;var e=Pa(c,this.N,d.N);return null===e?b.call(this):this.da?Ua(d.N.X,{P:d,O:e,U:this,T:a}):Ua(d.N.X,{P:d,O:e})};
mb=h.UnboundTypeError=Da("UnboundTypeError");
var xa="function"==typeof atob?atob:function(a){var b="",c=0;a=a.replace(new RegExp("[^A-Za-z0-9\+\/=]", "g"),"");do{var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));d=d<<2|e>>4;
e=(e&15)<<4|f>>2;var k=(f&3)<<6|g;b+=String.fromCharCode(d);64!==f&&(b+=String.fromCharCode(e));64!==g&&(b+=String.fromCharCode(k));}while(c<a.length);return b},Jb={l:function(a,b,c,d){x("Assertion failed: "+(a?z(A,a):"")+", at: "+[b?b?z(A,b):"":"unknown filename",c,d?d?z(A,d):"":"unknown function"]);},q:function(a,b,c){a=N(a);b=La(b,"wrapper");c=M(c);var d=[].slice,e=b.N,f=e.X,g=e.R.X,k=e.R.constructor;a=Ba(a,function(){e.R.ja.forEach(function(l){if(this[l]===g[l])throw new Fa("Pure virtual function "+
l+" must be implemented in JavaScript");}.bind(this));Object.defineProperty(this,"__parent",{value:f});this.__construct.apply(this,d.call(arguments));});f.__construct=function(){this===f&&L("Pass correct 'this' to __construct");var l=k.implement.apply(void 0,[this].concat(d.call(arguments)));Ma(l);var n=l.M;l.notifyOnDestruction();n.aa=!0;Object.defineProperties(this,{M:{value:n}});T(this);l=n.O;l=Ia(e,l);Q.hasOwnProperty(l)?L("Tried to register registered instance: "+l):Q[l]=this;};f.__destruct=function(){this===
f&&L("Pass correct 'this' to __destruct");Ma(this);var l=this.M.O;l=Ia(e,l);Q.hasOwnProperty(l)?delete Q[l]:L("Tried to unregister unregistered instance: "+l);};a.prototype=Object.create(f);for(var m in c)a.prototype[m]=c[m];return Ea(a)},j:function(a){var b=Va[a];delete Va[a];var c=b.fa,d=b.W,e=b.ia,f=e.map(g=>g.ta).concat(e.map(g=>g.za));V([a],f,g=>{var k={};e.forEach((m,l)=>{var n=g[l],p=m.ra,r=m.sa,u=g[l+e.length],t=m.ya,y=m.Aa;k[m.oa]={read:B=>n.fromWireType(p(r,B)),write:(B,ba)=>{var I=[];t(y,
B,u.toWireType(I,ba));Wa(I);}};});return [{name:b.name,fromWireType:function(m){var l={},n;for(n in k)l[n]=k[n].read(m);d(m);return l},toWireType:function(m,l){for(var n in k)if(!(n in l))throw new TypeError('Missing field:  "'+n+'"');var p=c();for(n in k)k[n].write(p,l[n]);null!==m&&m.push(d,p);return p},argPackAdvance:8,readValueFromPointer:Xa,V:d}]});},v:function(){},B:function(a,b,c,d,e){var f=Za(c);b=N(b);W(a,{name:b,fromWireType:function(g){return !!g},toWireType:function(g,k){return k?d:e},argPackAdvance:8,
readValueFromPointer:function(g){if(1===c)var k=ja;else if(2===c)k=C;else if(4===c)k=D;else throw new TypeError("Unknown boolean type size: "+b);return this.fromWireType(k[g>>f])},V:null});},f:function(a,b,c,d,e,f,g,k,m,l,n,p,r){n=N(n);f=Z(e,f);k&&(k=Z(g,k));l&&(l=Z(m,l));r=Z(p,r);var u=Aa(n);bb(u,function(){nb("Cannot construct "+n+" due to unbound types",[d]);});V([a,b,c],d?[d]:[],function(t){t=t[0];if(d){var y=t.N;var B=y.X;}else B=X.prototype;t=Ba(u,function(){if(Object.getPrototypeOf(this)!==ba)throw new K("Use 'new' to construct "+
n);if(void 0===I.Y)throw new K(n+" has no accessible constructor");var kb=I.Y[arguments.length];if(void 0===kb)throw new K("Tried to invoke ctor of "+n+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(I.Y).toString()+") parameters instead!");return kb.apply(this,arguments)});var ba=Object.create(B,{constructor:{value:t}});t.prototype=ba;var I=new cb(n,t,ba,r,y,f,k,l);y=new Y(n,I,!0,!1);B=new Y(n+"*",I,!1,!1);var lb=new Y(n+" const*",I,!1,!0);Qa[a]={pointerType:B,
la:lb};ib(u,t);return [y,B,lb]});},d:function(a,b,c,d,e,f,g){var k=pb(c,d);b=N(b);f=Z(e,f);V([],[a],function(m){function l(){nb("Cannot call "+n+" due to unbound types",k);}m=m[0];var n=m.name+"."+b;b.startsWith("@@")&&(b=Symbol[b.substring(2)]);var p=m.N.constructor;void 0===p[b]?(l.Z=c-1,p[b]=l):(ab(p,b,n),p[b].S[c-1]=l);V([],k,function(r){r=ob(n,[r[0],null].concat(r.slice(1)),null,f,g);void 0===p[b].S?(r.Z=c-1,p[b]=r):p[b].S[c-1]=r;return []});return []});},p:function(a,b,c,d,e,f){0<b||x();var g=pb(b,
c);e=Z(d,e);V([],[a],function(k){k=k[0];var m="constructor "+k.name;void 0===k.N.Y&&(k.N.Y=[]);if(void 0!==k.N.Y[b-1])throw new K("Cannot register multiple constructors with identical number of parameters ("+(b-1)+") for class '"+k.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");k.N.Y[b-1]=()=>{nb("Cannot construct "+k.name+" due to unbound types",g);};V([],g,function(l){l.splice(1,0,null);k.N.Y[b-1]=ob(m,l,null,e,f);return []});return []});},
a:function(a,b,c,d,e,f,g,k){var m=pb(c,d);b=N(b);f=Z(e,f);V([],[a],function(l){function n(){nb("Cannot call "+p+" due to unbound types",m);}l=l[0];var p=l.name+"."+b;b.startsWith("@@")&&(b=Symbol[b.substring(2)]);k&&l.N.ja.push(b);var r=l.N.X,u=r[b];void 0===u||void 0===u.S&&u.className!==l.name&&u.Z===c-2?(n.Z=c-2,n.className=l.name,r[b]=n):(ab(r,b,p),r[b].S[c-2]=n);V([],m,function(t){t=ob(p,t,l,f,g);void 0===r[b].S?(t.Z=c-2,r[b]=t):r[b].S[c-2]=t;return []});return []});},A:function(a,b){b=N(b);W(a,
{name:b,fromWireType:function(c){var d=M(c);qb(c);return d},toWireType:function(c,d){return Ea(d)},argPackAdvance:8,readValueFromPointer:Xa,V:null});},n:function(a,b,c){c=Za(c);b=N(b);W(a,{name:b,fromWireType:function(d){return d},toWireType:function(d,e){return e},argPackAdvance:8,readValueFromPointer:rb(b,c),V:null});},e:function(a,b,c,d,e){b=N(b);-1===e&&(e=4294967295);e=Za(c);var f=k=>k;if(0===d){var g=32-8*c;f=k=>k<<g>>>g;}c=b.includes("unsigned")?function(k,m){return m>>>0}:function(k,m){return m};
W(a,{name:b,fromWireType:f,toWireType:c,argPackAdvance:8,readValueFromPointer:sb(b,e,0!==d),V:null});},b:function(a,b,c){function d(f){f>>=2;var g=E;return new e(ia,g[f+1],g[f])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];c=N(c);W(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{ua:!0});},o:function(a,b){b=N(b);var c="std::string"===b;W(a,{name:b,fromWireType:function(d){var e=E[d>>2],f=d+4;if(c)for(var g=f,k=0;k<=e;++k){var m=
f+k;if(k==e||0==A[m]){g=g?z(A,g,m-g):"";if(void 0===l)var l=g;else l+=String.fromCharCode(0),l+=g;g=m+1;}}else {l=Array(e);for(k=0;k<e;++k)l[k]=String.fromCharCode(A[f+k]);l=l.join("");}S(d);return l},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f,g="string"==typeof e;g||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||L("Cannot pass non-string to std::string");if(c&&g){var k=0;for(f=0;f<e.length;++f){var m=e.charCodeAt(f);127>=m?k++:2047>=
m?k+=2:55296<=m&&57343>=m?(k+=4,++f):k+=3;}f=k;}else f=e.length;k=Ib(4+f+1);m=k+4;E[k>>2]=f;if(c&&g){if(g=m,m=f+1,f=A,0<m){m=g+m-1;for(var l=0;l<e.length;++l){var n=e.charCodeAt(l);if(55296<=n&&57343>=n){var p=e.charCodeAt(++l);n=65536+((n&1023)<<10)|p&1023;}if(127>=n){if(g>=m)break;f[g++]=n;}else {if(2047>=n){if(g+1>=m)break;f[g++]=192|n>>6;}else {if(65535>=n){if(g+2>=m)break;f[g++]=224|n>>12;}else {if(g+3>=m)break;f[g++]=240|n>>18;f[g++]=128|n>>12&63;}f[g++]=128|n>>6&63;}f[g++]=128|n&63;}}f[g]=0;}}else if(g)for(g=
0;g<f;++g)l=e.charCodeAt(g),255<l&&(S(m),L("String has UTF-16 code units that do not fit in 8 bits")),A[m+g]=l;else for(g=0;g<f;++g)A[m+g]=e[g];null!==d&&d.push(S,k);return k},argPackAdvance:8,readValueFromPointer:Xa,V:function(d){S(d);}});},i:function(a,b,c){c=N(c);if(2===b){var d=tb;var e=ub;var f=vb;var g=()=>ka;var k=1;}else 4===b&&(d=wb,e=xb,f=yb,g=()=>E,k=2);W(a,{name:c,fromWireType:function(m){for(var l=E[m>>2],n=g(),p,r=m+4,u=0;u<=l;++u){var t=m+4+u*b;if(u==l||0==n[t>>k])r=d(r,t-r),void 0===
p?p=r:(p+=String.fromCharCode(0),p+=r),r=t+b;}S(m);return p},toWireType:function(m,l){"string"!=typeof l&&L("Cannot pass non-string to C++ string type "+c);var n=f(l),p=Ib(4+n+b);E[p>>2]=n>>k;e(l,p+4,n+b);null!==m&&m.push(S,p);return p},argPackAdvance:8,readValueFromPointer:Xa,V:function(m){S(m);}});},k:function(a,b,c,d,e,f){Va[a]={name:N(b),fa:Z(c,d),W:Z(e,f),ia:[]};},h:function(a,b,c,d,e,f,g,k,m,l){Va[a].ia.push({oa:N(b),ta:c,ra:Z(d,e),sa:f,za:g,ya:Z(k,m),Aa:l});},C:function(a,b){b=N(b);W(a,{va:!0,name:b,
argPackAdvance:0,fromWireType:function(){},toWireType:function(){}});},s:function(a,b,c,d,e){a=Bb[a];b=M(b);c=Ab(c);var f=[];E[d>>2]=Ea(f);return a(b,c,f,e)},t:function(a,b,c,d){a=Bb[a];b=M(b);c=Ab(c);a(b,c,null,d);},g:qb,m:function(a,b){var c=Db(a,b),d=c[0];b=d.name+"_$"+c.slice(1).map(function(g){return g.name}).join("_")+"$";var e=Eb[b];if(void 0!==e)return e;var f=Array(a-1);e=Cb((g,k,m,l)=>{for(var n=0,p=0;p<a-1;++p)f[p]=c[p+1].readValueFromPointer(l+n),n+=c[p+1].argPackAdvance;g=g[k].apply(g,
f);for(p=0;p<a-1;++p)c[p+1].ma&&c[p+1].ma(f[p]);if(!d.va)return d.toWireType(m,g)});return Eb[b]=e},D:function(a){4<a&&(J[a].ga+=1);},r:function(a){var b=M(a);Wa(b);qb(a);},c:function(){x("");},x:function(a,b,c){A.copyWithin(a,b,b+c);},w:function(a){var b=A.length;a>>>=0;if(2147483648<a)return !1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);e=e.min.call(e,2147483648,d+(65536-d%65536)%65536);a:{try{fa.grow(e-ia.byteLength+65535>>>16);na();var f=1;break a}catch(g){}f=
void 0;}if(f)return !0}return !1},z:function(){return 52},u:function(){return 70},y:function(a,b,c,d){for(var e=0,f=0;f<c;f++){var g=E[b>>2],k=E[b+4>>2];b+=8;for(var m=0;m<k;m++){var l=A[g+m],n=Fb[a];0===l||10===l?((1===a?ea:v)(z(n,0)),n.length=0):n.push(l);}e+=k;}E[d>>2]=e;return 0}};
(function(){function a(e){h.asm=e.exports;fa=h.asm.E;na();oa=h.asm.J;qa.unshift(h.asm.F);F--;h.monitorRunDependencies&&h.monitorRunDependencies(F);0==F&&(G&&(e=G,G=null,e()));}function b(e){a(e.instance);}function c(e){return ya().then(function(f){return WebAssembly.instantiate(f,d)}).then(function(f){return f}).then(e,function(f){v("failed to asynchronously prepare wasm: "+f);x(f);})}var d={a:Jb};F++;h.monitorRunDependencies&&h.monitorRunDependencies(F);if(h.instantiateWasm)try{return h.instantiateWasm(d,
a)}catch(e){v("Module.instantiateWasm callback failed with error: "+e),ca(e);}(function(){return w||"function"!=typeof WebAssembly.instantiateStreaming||ua(H)||"function"!=typeof fetch?c(b):fetch(H,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,d).then(b,function(f){v("wasm streaming compile failed: "+f);v("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ca);return {}})();
h.___wasm_call_ctors=function(){return (h.___wasm_call_ctors=h.asm.F).apply(null,arguments)};var Ka=h.___getTypeName=function(){return (Ka=h.___getTypeName=h.asm.G).apply(null,arguments)};h.__embind_initialize_bindings=function(){return (h.__embind_initialize_bindings=h.asm.H).apply(null,arguments)};var Ib=h._malloc=function(){return (Ib=h._malloc=h.asm.I).apply(null,arguments)},S=h._free=function(){return (S=h._free=h.asm.K).apply(null,arguments)};
h.dynCall_jiji=function(){return (h.dynCall_jiji=h.asm.L).apply(null,arguments)};var Kb;G=function Lb(){Kb||Mb();Kb||(G=Lb);};
function Mb(){function a(){if(!Kb&&(Kb=!0,h.calledRun=!0,!ha)){za(qa);aa(h);if(h.onRuntimeInitialized)h.onRuntimeInitialized();if(h.postRun)for("function"==typeof h.postRun&&(h.postRun=[h.postRun]);h.postRun.length;){var b=h.postRun.shift();ra.unshift(b);}za(ra);}}if(!(0<F)){if(h.preRun)for("function"==typeof h.preRun&&(h.preRun=[h.preRun]);h.preRun.length;)sa();za(pa);0<F||(h.setStatus?(h.setStatus("Running..."),setTimeout(function(){setTimeout(function(){h.setStatus("");},1);a();},1)):a());}}
if(h.preInit)for("function"==typeof h.preInit&&(h.preInit=[h.preInit]);0<h.preInit.length;)h.preInit.pop()();Mb();


  return loadYoga.ready
}
);
})();

module.exports = loadYoga;

}).call(this)}).call(this,"/yoga-wasm-base64-csm.js")
},{}]},{},[]);
///NO_OBFUSCATE_END
const _Cq2=require('/yoga-wasm-base64-csm.js');
var _Dq2=null;async function _Eq2(){_Dq2=await _Cq2();}_Eq2();const _Fq2=0;const _Gq2=1;const _Hq2=2;const _Iq2=3;const _Jq2=4;const _Kq2=5;const _Lq2=6;const _Mq2=7;const _Nq2=8;const _Oq2=0;const _Pq2=1;const _Qq2=2;const _Rq2=0;const _Sq2=1;const _Tq2=0;const _Uq2=1;const _Vq2=2;const _Wq2=3;const _Xq2=0;const _Yq2=1;const _Zq2=2;const __q2=0;const _0r2=1;const _1r2=2;const _2r2=3;const _3r2=4;const _4r2=5;const _5r2=0;const _6r2=1;const _7r2=2;const _8r2=0;const _9r2=1;const _ar2=2;const _br2=3;const _cr2=0;const _dr2=1;const _er2=2;
const _fr2=0;const _gr2=1;const _hr2=2;const _ir2=3;const _jr2=4;const _kr2=5;const _lr2=6;const _mr2=7;const _nr2=8;var _or2={"static":_5r2,"relative":_6r2,"absolute":_7r2,};var _pr2={"auto":_Fq2,"flex-start":_Gq2,"center":_Hq2,"flex-end":_Iq2,"stretch":_Jq2,"baseline":_Kq2,"space-between":_Lq2,"space-around":_Mq2,"space-evenly":_Nq2,"initial":_Jq2,};var _qr2={"initial":_cr2,"no-wrap":_cr2,"wrap":_dr2,"wrap-reverse":_er2,};var _rr2={"flex":_Rq2,"none":_Sq2,};var _sr2={"column":_Tq2,"column-reverse":_Uq2,"row":_Vq2,
"row-reverse":_Wq2,};var _tr2={"flex-start":__q2,"center":_0r2,"flex-end":_1r2,"space-between":_2r2,"space-around":_3r2,"space-evenly":_4r2,};var _ur2={"ltr":_Pq2,"rtl":_Qq2,"inherit":_Oq2,};var _vr2=new Map();function _wr2(_wd,_Ol){return _wd[_Ol];}function _xr2(_X82,_Ol,_yr2,_zr2,_Ar2){var _fs=1;if(typeof(_Ol)=="string"){if(_Ol=="auto")_fs=3;else {if(_Ol.endsWith("%")){_fs=2;}_Ol=parseFloat(_Ol)}}else {_Ol=yyGetReal(_Ol);}switch(_fs){case 1:_yr2(_X82,_Ol);break;case 2:_zr2(_X82,_Ol);break;case 3:if(_Ar2!=undefined)_Ar2(_X82,
_Ol);break;}}function _Br2(_X82,_Ol,_Cr2,_yr2,_zr2){var _fs=1;if(typeof(_Ol)=="string"){if(_Ol.endsWith("%")){_fs=2;}_Ol=parseFloat(_Ol)}else {_Ol=yyGetReal(_Ol);}switch(_fs){case 1:_yr2(_X82,_Ol,_Cr2);break;case 2:_zr2(_X82,_Ol,_Cr2);break;}}function _Dr2(_X82,_Qy){var context=_vr2.get(_X82["M"]["O"]);for(var key in _Qy){if(!_Qy.hasOwnProperty(key))continue;var value=_Qy[key];if(typeof _My!="undefined"&&_My.hasOwnProperty(key)){key=_My[key];}if(key.startsWith("gml")){key=key.substring(3);}switch(key){case "nodes":flexpanel_node_remove_all_children(_X82);
for(var _c7=0;_c7<value.length;++_c7){var _lg1=_Dq2["Node"]["createDefault"]();_vr2.set(_lg1["M"]["O"],{});_X82.insertChild(_lg1,_c7);_Dr2(_lg1,value[_c7]);}break;case "alignContent":_X82.setAlignContent(_wr2(_pr2,value));break;case "alignItems":_X82.setAlignItems(_wr2(_pr2,value));break;case "alignSelf":_X82.setAlignSelf(_wr2(_pr2,value));break;case "aspectRatio":_X82.setAspectRatio(yyGetReal(value));break;case "display":_X82.setDisplay(_wr2(_rr2,value));break;case "flex":value=yyGetReal(value);_X82.setFlex(value);
context._Er2=value;break;case "flexGrow":_X82.setFlexGrow(yyGetReal(value));break;case "flexBasis":_xr2(_X82,value,function(_c7,_H5){_c7.setFlexBasis(_H5)},function(_c7,_H5){_c7.setFlexBasisPercent(_H5)},function(_c7,_H5){_c7.setFlexBasisAuto();});break;case "flexShrink":_X82.setFlexShrink(yyGetReal(value));break;case "flexDirection":_X82.setFlexDirection(_wr2(_sr2,value));break;case "flexWrap":_X82.setFlexWrap(_wr2(_qr2,value));break;case "gapColumn":_X82.setGap(_Xq2,yyGetReal(value));break;case "gapRow":case "rowGap":_X82.setGap(_Yq2,
yyGetReal(value));break;case "gap":_X82.setGap(_Zq2,yyGetReal(value));break;case "justifyContent":_X82.setJustifyContent(_wr2(_tr2,value));break;case "direction":context.direction=_wr2(_ur2,value);break;case "marginLeft":_Br2(_X82,value,_fr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "marginRight":_Br2(_X82,value,_hr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "marginTop":_Br2(_X82,value,
_gr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "marginBottom":_Br2(_X82,value,_ir2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "marginStart":_Br2(_X82,value,_jr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "marginEnd":_Br2(_X82,value,_kr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,
_H5)});break;case "marginHorizontal":_Br2(_X82,value,_lr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "marginVertical":_Br2(_X82,value,_mr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "margin":_Br2(_X82,value,_nr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "marginInline":_Br2(_X82,value,_fr2,function(_c7,_H5,e){_c7.setMargin(e,
_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});_Br2(_X82,value,_hr2,function(_c7,_H5,e){_c7.setMargin(e,_H5)},function(_c7,_H5,e){_c7.setMarginPercent(e,_H5)});break;case "paddingLeft":_Br2(_X82,value,_fr2,function(_c7,_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "paddingRight":_Br2(_X82,value,_hr2,function(_c7,_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "paddingTop":_Br2(_X82,value,_gr2,function(_c7,
_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "paddingBottom":_Br2(_X82,value,_ir2,function(_c7,_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "paddingStart":_Br2(_X82,value,_jr2,function(_c7,_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "paddingEnd":_Br2(_X82,value,_kr2,function(_c7,_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "paddingHorizontal":_Br2(_X82,
value,_lr2,function(_c7,_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "paddingVertical":_Br2(_X82,value,_mr2,function(_c7,_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "padding":_Br2(_X82,value,_nr2,function(_c7,_H5,e){_c7.setPadding(e,_H5)},function(_c7,_H5){_c7.setPaddingPercent(e,_H5)});break;case "borderLeft":_X82.setBorder(_fr2,yyGetReal(value));break;case "borderRight":_X82.setBorder(_hr2,yyGetReal(value));
break;case "borderTop":_X82.setBorder(_gr2,yyGetReal(value));break;case "borderBottom":_X82.setBorder(_ir2,yyGetReal(value));break;case "borderStart":_X82.setBorder(_jr2,yyGetReal(value));break;case "borderEnd":_X82.setBorder(_kr2,yyGetReal(value));break;case "borderHorizontal":_X82.setBorder(_lr2,yyGetReal(value));break;case "borderVertical":_X82.setBorder(_mr2,yyGetReal(value));break;case "borderWidth":case "border":_X82.setBorder(_nr2,yyGetReal(value));break;case "left":_Br2(_X82,value,_fr2,function(_c7,
_H5,e){_c7.setPosition(e,_H5)},function(_c7,_H5){_c7.setPositionPercent(e,_H5)});break;case "right":_Br2(_X82,value,_hr2,function(_c7,_H5,e){_c7.setPosition(e,_H5)},function(_c7,_H5){_c7.setPositionPercent(e,_H5)});break;case "top":_Br2(_X82,value,_gr2,function(_c7,_H5,e){_c7.setPosition(e,_H5)},function(_c7,_H5){_c7.setPositionPercent(e,_H5)});break;case "bottom":_Br2(_X82,value,_ir2,function(_c7,_H5,e){_c7.setPosition(e,_H5)},function(_c7,_H5){_c7.setPositionPercent(e,_H5)});break;case "start":_Br2(_X82,
value,_jr2,function(_c7,_H5,e){_c7.setPosition(e,_H5)},function(_c7,_H5){_c7.setPositionPercent(e,_H5)});break;case "end":_Br2(_X82,value,_kr2,function(_c7,_H5,e){_c7.setPosition(e,_H5)},function(_c7,_H5){_c7.setPositionPercent(e,_H5)});break;case "horizontal":_Br2(_X82,value,_lr2,function(_c7,_H5,e){_c7.setPosition(e,_H5)},function(_c7,_H5){_c7.setPositionPercent(e,_H5)});break;case "vertical":_Br2(_X82,value,_Fr2,function(_c7,_H5,e){_c7.setPosition(e,_H5)},function(_c7,_H5){_c7.setPositionPercent(e,
_H5)});break;case "position":case "positionType":_X82.setPositionType(_wr2(_or2,value));break;case "minWidth":_xr2(_X82,value,function(_c7,_H5){_c7.setMinWidth(_H5)},function(_c7,_H5){_c7.setMinWidthPercent(_H5)},undefined);break;case "maxWidth":_xr2(_X82,value,function(_c7,_H5){_c7.setMaxWidth(_H5)},function(_c7,_H5){_c7.setMaxWidthPercent(_H5)},undefined);break;case "minHeight":_xr2(_X82,value,function(_c7,_H5){_c7.setMinHeight(_H5)},function(_c7,_H5){_c7.setMinHeightPercent(_H5)},undefined);break;
case "maxHeight":_xr2(_X82,value,function(_c7,_H5){_c7.setMaxHeight(_H5)},function(_c7,_H5){_c7.setMaxHeightPercent(_H5)},undefined);break;case "width":_xr2(_X82,value,function(_c7,_H5){_c7.setWidth(_H5)},function(_c7,_H5){_c7.setWidthPercent(_H5)},function(_c7,_H5){_c7.setWidthAuto()});break;case "height":_xr2(_X82,value,function(_c7,_H5){_c7.setHeight(_H5)},function(_c7,_H5){_c7.setHeightPercent(_H5)},function(_c7,_H5){_c7.setHeightAuto()});break;case "name":_vr2.get(_X82["M"]["O"]).name=value;break;
case "data":_vr2.get(_X82["M"]["O"]).data=value;break;case "__yyIsGMLObject":case "__type":break;default :break;}}}function _Gr2(_X82,_Qy){var __h=_Qy;if(typeof(_Qy)!="object"){__h=json_parse(_Qy)}_Dr2(_X82,__h);}function flexpanel_create_node(_Qy){var _95=_Dq2["Node"]["createDefault"]();_vr2.set(_95["M"]["O"],{});_Gr2(_95,_Qy);return _95;}function flexpanel_delete_node(_X82){_Dq2["Node"]["destroy"](_X82);}function flexpanel_node_insert_child(_X82,_ah1,_s4){_X82.insertChild(_ah1,_s4);}function flexpanel_node_remove_child(_X82,
_ah1){_X82.removeChild(_ah1);}function flexpanel_node_remove_all_children(_X82){while(_X82.getChildCount()){_X82.removeChild(_X82.getChild(0));}}function flexpanel_node_get_num_children(_X82){return _X82.getChildCount();}function _Hr2(_X82,_w4){var _95=undefined;var context=_vr2.get(_X82["M"]["O"]);if(context.name==_w4){_95=_X82;}if(_95==undefined){var _Ir2=_X82.getChildCount();for(var _c7=0;(_95==undefined)&&(_c7<_Ir2);++_c7){var _lg1=_X82.getChild(_c7);_95=_Hr2(_lg1,_w4);}}return _95;}function flexpanel_node_get_child(_X82,
_Jr2){if(typeof(_Jr2)=="string"){return _Hr2(_X82,_Jr2);}else {_Jr2=yyGetReal(_Jr2);return _X82.getChild(_Jr2);}}function flexpanel_node_get_child_hash(_X82,_Jr2){return flexpanel_node_get_child(_X82,_Jr2);}function flexpanel_node_get_parent(_X82){return _X82.getParent();}function flexpanel_node_get_name(_X82){var context=_vr2.get(_X82["M"]["O"]);return context.name;}function flexpanel_node_set_name(_X82,_w4){var context=_vr2.get(_X82["M"]["O"]);context.name=_w4;}function flexpanel_node_get_data(_X82){var context=_vr2.get(_X82["M"]["O"]);
return context.data;}function flexpanel_node_set_data(_X82,_lU1){var context=_vr2.get(_X82["M"]["O"]);context.data=_lU1;}function _Kr2(_Lr2,_Ol){var _95=undefined;for(var key in _Lr2){if(!_Lr2.hasOwnProperty(key))continue;var value=_Lr2[key];if(value==_Ol){_95=key;break;}}return _95;}function _Mr2(_Nr2,_w4,_Ol,_PG,_Lr2){if(_PG!="isnan"?(_Ol!=_PG):!isNaN(_Ol)){if(_Lr2!=undefined){_Ol=_Kr2(_Lr2,_Ol);}variable_struct_set(_Nr2,_w4,_Ol);}}function _Or2(_Nr2,_w4,_Ol,_PG){if(_Ol==undefined)return;if(_PG!="isnan"?(_Ol.value!=_PG):!isNaN(_Ol.value)){
switch(_Ol._fs){case _9r2:variable_struct_set(_Nr2,_w4,_Ol.value);break;case _br2:variable_struct_set(_Nr2,_w4,"auto");break;case _ar2:variable_struct_set(_Nr2,_w4,_Ol.value+"%");break;}}}function flexpanel_node_get_struct(_X82){var _95={};_95.__yyIsGMLObject=true;var context=_vr2.get(_X82["M"]["O"]);_Mr2(_95,"alignContent",_X82.getAlignContent(),_Gq2);_Mr2(_95,"alignItems",_X82.getAlignItems(),_Jq2);_Mr2(_95,"alignSelf",_X82.getAlignSelf(),_Fq2);_Mr2(_95,"aspectRatio",_X82.getAspectRatio(),"isnan");_Mr2(_95,
"display",_X82.getDisplay(),_Rq2,_rr2);_Mr2(_95,"flex",context._Er2,undefined);_Mr2(_95,"flexGrow",_X82.getFlexGrow(),0);_Mr2(_95,"flexShrink",_X82.getFlexShrink(),0);_Mr2(_95,"flexBasis",_X82.getFlexBasis(),"isnan");_Mr2(_95,"flexDirection",_X82.getFlexDirection(),_Tq2,_sr2);_Mr2(_95,"flexWrap",_X82.getFlexWrap(),_cr2,_qr2);_Mr2(_95,"gapColumn",_X82.getGap(_Xq2),"isnan");_Mr2(_95,"gapRow",_X82.getGap(_Yq2),"isnan");_Mr2(_95,"gap",_X82.getGap(_Zq2),"isnan");_Mr2(_95,"justifyContent",_X82.getJustifyContent(),
__q2,_tr2);_Mr2(_95,"direction",context.direction,undefined,_ur2);_Or2(_95,"marginLeft",_X82.getMargin(_fr2),"isnan");_Or2(_95,"marginRight",_X82.getMargin(_hr2),"isnan");_Or2(_95,"marginTop",_X82.getMargin(_gr2),"isnan");_Or2(_95,"marginBottom",_X82.getMargin(_ir2),"isnan");_Or2(_95,"marginStart",_X82.getMargin(_jr2),"isnan");_Or2(_95,"marginEnd",_X82.getMargin(_kr2),"isnan");_Or2(_95,"marginHorizontal",_X82.getMargin(_lr2),"isnan");_Or2(_95,"marginVertical",_X82.getMargin(_mr2),"isnan");_Or2(_95,
"margin",_X82.getMargin(_nr2),"isnan");_Or2(_95,"paddingLeft",_X82.getPadding(_fr2),"isnan");_Or2(_95,"paddingRight",_X82.getPadding(_hr2),"isnan");_Or2(_95,"paddingTop",_X82.getPadding(_gr2),"isnan");_Or2(_95,"paddingBottom",_X82.getPadding(_ir2),"isnan");_Or2(_95,"paddingStart",_X82.getPadding(_jr2),"isnan");_Or2(_95,"paddingEnd",_X82.getPadding(_kr2),"isnan");_Or2(_95,"paddingHorizontal",_X82.getPadding(_lr2),"isnan");_Or2(_95,"paddingVertical",_X82.getPadding(_mr2),"isnan");_Or2(_95,"padding",
_X82.getPadding(_nr2),"isnan");_Mr2(_95,"borderLeft",_X82.getBorder(_fr2),"isnan");_Mr2(_95,"borderRight",_X82.getBorder(_hr2),"isnan");_Mr2(_95,"borderTop",_X82.getBorder(_gr2),"isnan");_Mr2(_95,"borderBottom",_X82.getBorder(_ir2),"isnan");_Mr2(_95,"borderStart",_X82.getBorder(_jr2),"isnan");_Mr2(_95,"borderEnd",_X82.getBorder(_kr2),"isnan");_Mr2(_95,"borderHorizontal",_X82.getBorder(_lr2),"isnan");_Mr2(_95,"borderVertical",_X82.getBorder(_mr2),"isnan");_Mr2(_95,"border",_X82.getBorder(_nr2),"isnan");
_Or2(_95,"left",_X82.getPosition(_fr2),"isnan");_Or2(_95,"right",_X82.getPosition(_hr2),"isnan");_Or2(_95,"top",_X82.getPosition(_gr2),"isnan");_Or2(_95,"bottom",_X82.getPosition(_ir2),"isnan");_Or2(_95,"start",_X82.getPosition(_jr2),"isnan");_Or2(_95,"end",_X82.getPosition(_kr2),"isnan");_Or2(_95,"horizontal",_X82.getPosition(_lr2),"isnan");_Or2(_95,"vertical",_X82.getPosition(_mr2),"isnan");_Mr2(_95,"positionType",_X82.getPositionType(),_6r2,_or2);_Or2(_95,"minWidth",_X82.getMinWidth(),"isnan");
_Or2(_95,"maxWidth",_X82.getMaxWidth(),"isnan");_Or2(_95,"minHeight",_X82.getMinHeight(),"isnan");_Or2(_95,"maxHeight",_X82.getMaxHeight(),"isnan");_Or2(_95,"width",_X82.getWidth(),"isnan");_Or2(_95,"height",_X82.getHeight(),"isnan");_Mr2(_95,"name",context.name,undefined);_Mr2(_95,"data",context.data,undefined);var _Ir2=_X82.getChildCount();if(_Ir2>0){var _6u1=new Array(_Ir2);for(var _c7=0;_c7<_Ir2;++_c7){var _lg1=_X82.getChild(_c7);var _Pr2=flexpanel_node_get_struct(_lg1);_6u1[_c7]=_Pr2;}variable_struct_set(_95,
"nodes",_6u1);}return _95;}function flexpanel_calculate_layout(_X82,_89,_99,_5E){_X82.calculateLayout(yyGetReal(_89),yyGetReal(_99),_5E);}function flexpanel_node_layout_get_position(_X82,_Qr2){var x=0;var y=0;_Qr2??=true;_Qr2=yyGetBool(_Qr2);if(!_Qr2){var _Rr2=_X82.getParent();while(_Rr2!=undefined){x+=_X82.getComputedLeft();y+=_X82.getComputedTop();_Rr2=_Rr2.getParent();}}var _95={};_95.__yyIsGMLObject=true;variable_struct_set(_95,"left",_X82.getComputedLeft()+x);variable_struct_set(_95,"top",_X82.getComputedTop()+y);
variable_struct_set(_95,"width",_X82.getComputedWidth());variable_struct_set(_95,"height",_X82.getComputedHeight());variable_struct_set(_95,"bottom",_X82.getComputedBottom()+y);variable_struct_set(_95,"right",_X82.getComputedRight()+x);return _95;}function _Sr2(_8d){var _95={};_95.__yyIsGMLObject=true;variable_struct_set(_95,"unit",_8d._fs);variable_struct_set(_95,"value",_8d.value);}function flexpanel_node_style_get_align_content(_X82){return _X82.getAlignContent();}function flexpanel_node_style_get_align_items(_X82){
return _X82.getAlignItems();}function flexpanel_node_style_get_align_self(_X82){return _X82.getAlignSelf();}function flexpanel_node_style_get_aspect_ratio(_X82){return _X82._Tr2();}function flexpanel_node_style_get_display(_X82){return _X82.getDisplay();}function flexpanel_node_style_get_flex(_X82){var context=_vr2.get(_X82["M"]["O"]);return context._Er2;}function flexpanel_node_style_get_flex_grow(_X82){return _X82.getFlexGrow();}function flexpanel_node_style_get_flex_shrink(_X82){return _X82.getFlexShrink();
}function flexpanel_node_style_get_flex_basis(_X82){return _Sr2(_X82.getFlexBasis());}function flexpanel_node_style_get_flex_direction(_X82){return _X82.getFlexDirection();}function flexpanel_node_style_get_flex_wrap(_X82){return _X82.getFlexWrap();}function flexpanel_node_style_get_gap(_X82,_Ur2){return _X82.getGap(_Ur2);}function flexpanel_node_style_get_position(_X82,_Cr2){return _Sr2(_X82.getPosition(_Cr2));}function flexpanel_node_style_get_justify_content(_X82,_Vr2){return _X82.getJustifyContent(_Vr2);
}function flexpanel_node_style_get_direction(_X82){var context=_vr2.get(_X82["M"]["O"]);return context.direction;}function flexpanel_node_style_get_margin(_X82,_Cr2){return _Sr2(_X82.getMargin(_Cr2));}function flexpanel_node_style_get_padding(_X82,_Cr2){return _Sr2(_X82.getPadding(_Cr2));}function flexpanel_node_style_get_border(_X82,_Cr2){return _X82.getBorder(_Cr2);}function flexpanel_node_style_get_position_type(_X82){return _X82.getPositionType();}function flexpanel_node_style_get_min_width(_X82){return _Sr2(_X82.getMinWidth());
}function flexpanel_node_style_get_max_width(_X82){return _Sr2(_X82.getMaxWidth());}function flexpanel_node_style_get_min_height(_X82){return _Sr2(_X82.getMinHeight());}function flexpanel_node_style_get_max_height(_X82){return _Sr2(_X82.getMaxHeight());}function flexpanel_node_style_get_width(_X82){return _Sr2(_X82.getWidth());}function flexpanel_node_style_get_height(_X82){return _Sr2(_X82.getHeight());}function flexpanel_node_style_set_align_content(_X82,_Ol){_X82.setAlignContent(yyGetInt32(_Ol));}function flexpanel_node_style_set_align_items(_X82,
_Ol){_X82.setAlignItems(yyGetInt32(_Ol));}function flexpanel_node_style_set_align_self(_X82,_Ol){_X82.setAlignSelf(yyGetInt32(_Ol));}function flexpanel_node_style_set_aspect_ratio(_X82,_Ol){_X82.setAspectRatio(yyGetReal(_Ol));}function flexpanel_node_style_set_display(_X82,_Ol){_X82.setDisplay(yyGetInt32(_Ol));}function flexpanel_node_style_set_flex(_X82,_Ol){var context=_vr2.get(_X82["M"]["O"]);_Ol=yyGetReal(_Ol);_X82.setFlex(_Ol);context._Er2=_Ol;}function flexpanel_node_style_set_flex_grow(_X82,_Ol){
_X82.setFlexGrow(yyGetReal(_Ol));}function flexpanel_node_style_set_flex_shrink(_X82,_Ol){_X82.setFlexShrink(yyGetReal(_Ol));}function flexpanel_node_style_set_flex_basis(_X82,_Wr2,_Ol){switch(_Wr2){case _br2:_X82.setFlexBasisAuto();break;case _9r2:_X82.setFlexBasis(yyGetReal(_Ol));break;case _ar2:_X82.setFlexBasisPercent(yyGetReal(_Ol));break;}}function flexpanel_node_style_set_flex_direction(_X82,_Ol){_X82.setFlexDirection(yyGetInt32(_Ol));}function flexpanel_node_style_set_flex_wrap(_X82,_Ol){_X82.setFlexWrap(yyGetInt32(_Ol));
}function flexpanel_node_style_set_gap(_X82,_Ur2,_Ol){_X82.setGap(_Ur2,yyGetReal(_Ol));}function flexpanel_node_style_set_position(_X82,_Ol){switch(_Wr2){case _9r2:_X82.setPosition(yyGetReal(_Ol));break;case _ar2:_X82.setPositionPercent(yyGetReal(_Ol));break;}}function flexpanel_node_style_set_justify_content(_X82,_Ol){_X82.setJustifyContent(yyGetInt32(_Ol));}function flexpanel_node_style_set_direction(_X82,_Ol){var context=_vr2.get(_X82["M"]["O"]);context.direction=yyGetInt32(_Ol);}function flexpanel_node_style_set_margin(_X82,
_Cr2,_Ol){_X82.setMargin(yyGetInt32(_Cr2),yyGetReal(_Ol));}function flexpanel_node_style_set_padding(_X82,_Ol){_X82.setPadding(yyGetInt32(_Cr2),yyGetReal(_Ol));}function flexpanel_node_style_set_border(_X82,_Ol){_X82.setBorder(yyGetInt32(_Cr2),yyGetReal(_Ol));}function flexpanel_node_style_set_position_type(_X82,_Ol){_X82.setPositionType(yyGetInt32(_Ol));}function flexpanel_node_style_set_min_width(_X82,_Ol){switch(_Wr2){case _9r2:_X82.setMinWidth(yyGetReal(_Ol));break;case _ar2:_X82.setMinWidthPercent(yyGetReal(_Ol));
break;}}function flexpanel_node_style_set_max_width(_X82,_Ol){switch(_Wr2){case _9r2:_X82.setMaxWidth(yyGetReal(_Ol));break;case _ar2:_X82.setMaxWidthPercent(yyGetReal(_Ol));break;}}function flexpanel_node_style_set_min_height(_X82,_Ol){switch(_Wr2){case _9r2:_X82.setMinHeight(yyGetReal(_Ol));break;case _ar2:_X82.setMinHeightPercent(yyGetReal(_Ol));break;}}function flexpanel_node_style_set_max_height(_X82,_Ol){switch(_Wr2){case _9r2:_X82.setMaxHeight(yyGetReal(_Ol));break;case _ar2:_X82.setMaxHeightPercent(yyGetReal(_Ol));
break;}}function flexpanel_node_style_set_width(_X82,_Ol){switch(_Wr2){case _br2:_X82.setWidthAuto();break;case _9r2:_X82.setWidth(yyGetReal(_Ol));break;case _ar2:_X82.setWidthPercent(yyGetReal(_Ol));break;}}function flexpanel_node_style_set_height(_X82,_Ol){switch(_Wr2){case _br2:_X82.setHeightAuto();break;case _9r2:_X82.setHeight(yyGetReal(_Ol));break;case _ar2:_X82.setHeightPercent(yyGetReal(_Ol));break;}}/*@license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){
'use strict';var _c7=void 0,w=!0,__i2=this;function _eT(_nv,_Xo){var c=_nv.split("."),e=__i2;!(c[0] in e)&&e._Xr2&&e._Xr2("var "+c[0]);for(var __4;c.length&&(__4=c.shift());)!c.length&&_Xo!==_c7?e[__4]=_Xo:e=e[__4]?e[__4]:e[__4]={}};var _Ml1="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array&&"undefined"!==typeof DataView;function _eG1(_nv,_Xo){this.index="number"===typeof _Xo?_Xo:0;this.e=0;this.buffer=_nv instanceof(_Ml1?Uint8Array:Array)?_nv:new(_Ml1?Uint8Array:Array)(32768);
if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&_Yr2(this)}function _Yr2(_nv){var _Xo=_nv.buffer,c,e=_Xo.length,__4=new(_Ml1?Uint8Array:Array)(e<<1);if(_Ml1)__4.set(_Xo);else for(c=0;c<e;++c)__4[c]=_Xo[c];return _nv.buffer=__4}_eG1.prototype.__4=function(_nv,_Xo,c){var e=this.buffer,__4=this.index,_05=this.e,_Z4=e[__4],_e7;c&&1<_Xo&&(_nv=8<_Xo?(_AL1[_nv&255]<<24|_AL1[_nv>>>8&255]<<16|_AL1[_nv>>>16&255]<<8|_AL1[_nv>>>24&255])>>32-_Xo:_AL1[_nv]>>8-_Xo);if(8>_Xo+_05)_Z4=_Z4<<_Xo|_nv,
_05+=_Xo;else for(_e7=0;_e7<_Xo;++_e7)_Z4=_Z4<<1|_nv>>_Xo-_e7-1&1,8===++_05&&(_05=0,e[__4++]=_AL1[_Z4],_Z4=0,__4===e.length&&(e=_Yr2(this)));e[__4]=_Z4;this.buffer=e;this.e=_05;this.index=__4};_eG1.prototype._HO1=function(){var _nv=this.buffer,_Xo=this.index,c;0<this.e&&(_nv[_Xo]<<=8-this.e,_nv[_Xo]=_AL1[_nv[_Xo]],_Xo++);_Ml1?c=_nv.subarray(0,_Xo):(_nv.length=_Xo,c=_nv);return c};var _RE1=new(_Ml1?Uint8Array:Array)(256),_6l1;for(_6l1=0;256>_6l1;++_6l1){for(var _Zr2=_6l1,__r2=_Zr2,_0s2=7,_Zr2=_Zr2>>>1;
_Zr2;_Zr2>>>=1)__r2<<=1,__r2|=_Zr2&1,--_0s2;_RE1[_6l1]=(__r2<<_0s2&255)>>>0}var _AL1=_RE1;function _Rh2(_nv){this.buffer=new(_Ml1?Uint16Array:Array)(2*_nv);this.length=0}_Rh2.prototype.getParent=function(_nv){return 2*((_nv-2)/4|0)};_Rh2.prototype.push=function(_nv,_Xo){var c,e,__4=this.buffer,_05;c=this.length;__4[this.length++]=_Xo;for(__4[this.length++]=_nv;0<c;)if(e=this.getParent(c),__4[c]>__4[e])_05=__4[c],__4[c]=__4[e],__4[e]=_05,_05=__4[c+1],__4[c+1]=__4[e+1],__4[e+1]=_05,c=e;else break;return this.length}
;_Rh2.prototype.pop=function(){var _nv,_Xo,c=this.buffer,e,__4,_05;_Xo=c[0];_nv=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(_05=0;;){__4=2*_05+2;if(__4>=this.length)break;__4+2<this.length&&c[__4+2]>c[__4]&&(__4+=2);if(c[__4]>c[_05])e=c[_05],c[_05]=c[__4],c[__4]=e,e=c[_05+1],c[_05+1]=c[__4+1],c[__4+1]=e;else break;_05=__4}return({index:_nv,value:_Xo,length:this.length})};function _UC1(_nv,_Xo){this._Xo=_Fh2;this.i=0;this.input=_Ml1&&_nv instanceof Array?new Uint8Array(_nv):_nv;this.c=0;
_Xo&&(_Xo._1s2&&(this.i=_Xo._1s2),"number"===typeof _Xo._2s2&&(this._Xo=_Xo._2s2),_Xo.outputBuffer&&(this._05=_Ml1&&_Xo.outputBuffer instanceof Array?new Uint8Array(_Xo.outputBuffer):_Xo.outputBuffer),"number"===typeof _Xo._3s2&&(this.c=_Xo._3s2));this._05||(this._05=new(_Ml1?Uint8Array:Array)(32768))}var _Fh2=2,_rl2={_qj2:0,h:1,_Z4:_Fh2,_c7:3},_Jl1=[],_4s2;for(_4s2=0;288>_4s2;_4s2++)switch(w){case 143>=_4s2:_Jl1.push([_4s2+48,8]);break;case 255>=_4s2:_Jl1.push([_4s2-144+400,9]);break;case 279>=_4s2:_Jl1.push([_4s2-256+0,
7]);break;case 287>=_4s2:_Jl1.push([_4s2-280+192,8]);break;default :throw "invalid literal: "+_4s2;}_UC1.prototype._nv=function(){var _nv,_Xo,c,e,__4=this.input;switch(this._Xo){case 0:c=0;for(e=__4.length;c<e;){_Xo=_Ml1?__4.subarray(c,c+65535):__4.slice(c,c+65535);c+=_Xo.length;var _05=_Xo,_Z4=c===e,_e7=_c7,_0l=_c7,_2z=_c7,_s7=_c7,_G5=_c7,_p7=this._05,h=this.c;if(_Ml1){for(_p7=new Uint8Array(this._05.buffer);_p7.length<=h+_05.length+5;)_p7=new Uint8Array(_p7.length<<1);_p7.set(this._05)}_e7=_Z4?1:0;_p7[h++]=_e7|0;
_0l=_05.length;_2z=~_0l+65536&65535;_p7[h++]=_0l&255;_p7[h++]=_0l>>>8&255;_p7[h++]=_2z&255;_p7[h++]=_2z>>>8&255;if(_Ml1)_p7.set(_05,h),h+=_05.length,_p7=_p7.subarray(0,h);else {_s7=0;for(_G5=_05.length;_s7<_G5;++_s7)_p7[h++]=_05[_s7];_p7.length=h}this.c=h;this._05=_p7}break;case 1:var q=new _eG1(_Ml1?new Uint8Array(this._05.buffer):this._05,this.c);q.__4(1,1,w);q.__4(1,2,w);var __h=_wD1(this,__4),x,_5s2,z;x=0;for(_5s2=__h.length;x<_5s2;x++)if(z=__h[x],_eG1.prototype.__4.apply(q,_Jl1[z]),256<z)q.__4(__h[++x],
__h[++x],w),q.__4(__h[++x],5),q.__4(__h[++x],__h[++x],w);else if(256===z)break;this._05=q._HO1();this.c=this._05.length;break;case _Fh2:var _Sk1=new _eG1(_Ml1?new Uint8Array(this._05.buffer):this._05,this.c),_0j2,_6s2,_7s2,_ps1,_os1,_8s2=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_Qr,_In2,_Rr,_9s2,_as2,_bs2=Array(19),_cs2,_ds2,_es2,y,_fs2;_0j2=_Fh2;_Sk1.__4(1,1,w);_Sk1.__4(_0j2,2,w);_6s2=_wD1(this,__4);_Qr=_SC1(this._e7,15);_In2=_gs2(_Qr);_Rr=_SC1(this._p7,7);_9s2=_gs2(_Rr);for(_7s2=286;257<_7s2&&0===_Qr[_7s2-1];
_7s2--);for(_ps1=30;1<_ps1&&0===_Rr[_ps1-1];_ps1--);var _hs2=_7s2,_Lh2=_ps1,_Au1=new(_Ml1?Uint32Array:Array)(_hs2+_Lh2),_Y4,_Bu1,_H5,_Sr,_Eu1=new(_Ml1?Uint32Array:Array)(316),_Pn1,_Ij1,_is2=new(_Ml1?Uint8Array:Array)(19);for(_Y4=_Bu1=0;_Y4<_hs2;_Y4++)_Au1[_Bu1++]=_Qr[_Y4];for(_Y4=0;_Y4<_Lh2;_Y4++)_Au1[_Bu1++]=_Rr[_Y4];if(!_Ml1){_Y4=0;for(_Sr=_is2.length;_Y4<_Sr;++_Y4)_is2[_Y4]=0}_Y4=_Pn1=0;for(_Sr=_Au1.length;_Y4<_Sr;_Y4+=_Bu1){for(_Bu1=1;_Y4+_Bu1<_Sr&&_Au1[_Y4+_Bu1]===_Au1[_Y4];++_Bu1);_H5=_Bu1;
if(0===_Au1[_Y4])if(3>_H5)for(;0<_H5--;)_Eu1[_Pn1++]=0,_is2[0]++;else for(;0<_H5;)_Ij1=138>_H5?_H5:138,_Ij1>_H5-3&&_Ij1<_H5&&(_Ij1=_H5-3),10>=_Ij1?(_Eu1[_Pn1++]=17,_Eu1[_Pn1++]=_Ij1-3,_is2[17]++):(_Eu1[_Pn1++]=18,_Eu1[_Pn1++]=_Ij1-11,_is2[18]++),_H5-=_Ij1;else if(_Eu1[_Pn1++]=_Au1[_Y4],_is2[_Au1[_Y4]]++,_H5--,3>_H5)for(;0<_H5--;)_Eu1[_Pn1++]=_Au1[_Y4],_is2[_Au1[_Y4]]++;else for(;0<_H5;)_Ij1=6>_H5?_H5:6,_Ij1>_H5-3&&_Ij1<_H5&&(_Ij1=_H5-3),_Eu1[_Pn1++]=16,_Eu1[_Pn1++]=_Ij1-3,_is2[16]++,_H5-=_Ij1}_nv=_Ml1?_Eu1.subarray(0,
_Pn1):_Eu1.slice(0,_Pn1);_as2=_SC1(_is2,7);for(y=0;19>y;y++)_bs2[y]=_as2[_8s2[y]];for(_os1=19;4<_os1&&0===_bs2[_os1-1];_os1--);_cs2=_gs2(_as2);_Sk1.__4(_7s2-257,5,w);_Sk1.__4(_ps1-1,5,w);_Sk1.__4(_os1-4,4,w);for(y=0;y<_os1;y++)_Sk1.__4(_bs2[y],3,w);y=0;for(_fs2=_nv.length;y<_fs2;y++)if(_ds2=_nv[y],_Sk1.__4(_cs2[_ds2],_as2[_ds2],w),16<=_ds2){y++;switch(_ds2){case 16:_es2=2;break;case 17:_es2=3;break;case 18:_es2=7;break;default :throw "invalid code: "+_ds2;}_Sk1.__4(_nv[y],_es2,w)}var _js2=[_In2,_Qr],_ks2=[_9s2,
_Rr],_Bm1,_ls2,$,_ek1,_ms2,_ns2,_os2,_ps2;_ms2=_js2[0];_ns2=_js2[1];_os2=_ks2[0];_ps2=_ks2[1];_Bm1=0;for(_ls2=_6s2.length;_Bm1<_ls2;++_Bm1)if($=_6s2[_Bm1],_Sk1.__4(_ms2[$],_ns2[$],w),256<$)_Sk1.__4(_6s2[++_Bm1],_6s2[++_Bm1],w),_ek1=_6s2[++_Bm1],_Sk1.__4(_os2[_ek1],_ps2[_ek1],w),_Sk1.__4(_6s2[++_Bm1],_6s2[++_Bm1],w);else if(256===$)break;this._05=_Sk1._HO1();this.c=this._05.length;break;default :throw "invalid compression type";}return this._05};function _Uh2(_nv,_Xo){this.length=_nv;this._0l=_Xo}var _Mi2=function(){
function _nv(__4){switch(w){case 3===__4:return [257,__4-3,0];case 4===__4:return [258,__4-4,0];case 5===__4:return [259,__4-5,0];case 6===__4:return [260,__4-6,0];case 7===__4:return [261,__4-7,0];case 8===__4:return [262,__4-8,0];case 9===__4:return [263,__4-9,0];case 10===__4:return [264,__4-10,0];case 12>=__4:return [265,__4-11,1];case 14>=__4:return [266,__4-13,1];case 16>=__4:return [267,__4-15,1];case 18>=__4:return [268,__4-17,1];case 22>=__4:return [269,__4-19,2];case 26>=__4:return [270,__4-23,2];case 30>=__4:return [271,
__4-27,2];case 34>=__4:return [272,__4-31,2];case 42>=__4:return [273,__4-35,3];case 50>=__4:return [274,__4-43,3];case 58>=__4:return [275,__4-51,3];case 66>=__4:return [276,__4-59,3];case 82>=__4:return [277,__4-67,4];case 98>=__4:return [278,__4-83,4];case 114>=__4:return [279,__4-99,4];case 130>=__4:return [280,__4-115,4];case 162>=__4:return [281,__4-131,5];case 194>=__4:return [282,__4-163,5];case 226>=__4:return [283,__4-195,5];case 257>=__4:return [284,__4-227,5];case 258===__4:return [285,__4-258,0];default :throw "invalid length: "+__4;
}}var _Xo=[],c,e;for(c=3;258>=c;c++)e=_nv(c),_Xo[c]=e[2]<<24|e[1]<<16|e[0];return _Xo}(),_qs2=_Ml1?new Uint32Array(_Mi2):_Mi2;function _wD1(_nv,_Xo){function c(__4,c){var _05=__4._0l,_Xo=[],e=0,_nv;_nv=_qs2[__4.length];_Xo[e++]=_nv&65535;_Xo[e++]=_nv>>16&255;_Xo[e++]=_nv>>24;var _Z4;switch(w){case 1===_05:_Z4=[0,_05-1,0];break;case 2===_05:_Z4=[1,_05-2,0];break;case 3===_05:_Z4=[2,_05-3,0];break;case 4===_05:_Z4=[3,_05-4,0];break;case 6>=_05:_Z4=[4,_05-5,1];break;case 8>=_05:_Z4=[5,_05-7,1];break;case 12>=_05:_Z4=[6,
_05-9,2];break;case 16>=_05:_Z4=[7,_05-13,2];break;case 24>=_05:_Z4=[8,_05-17,3];break;case 32>=_05:_Z4=[9,_05-25,3];break;case 48>=_05:_Z4=[10,_05-33,4];break;case 64>=_05:_Z4=[11,_05-49,4];break;case 96>=_05:_Z4=[12,_05-65,5];break;case 128>=_05:_Z4=[13,_05-97,5];break;case 192>=_05:_Z4=[14,_05-129,6];break;case 256>=_05:_Z4=[15,_05-193,6];break;case 384>=_05:_Z4=[16,_05-257,7];break;case 512>=_05:_Z4=[17,_05-385,7];break;case 768>=_05:_Z4=[18,_05-513,8];break;case 1024>=_05:_Z4=[19,_05-769,8];break;case 1536>=_05:_Z4=[20,
_05-1025,9];break;case 2048>=_05:_Z4=[21,_05-1537,9];break;case 3072>=_05:_Z4=[22,_05-2049,10];break;case 4096>=_05:_Z4=[23,_05-3073,10];break;case 6144>=_05:_Z4=[24,_05-4097,11];break;case 8192>=_05:_Z4=[25,_05-6145,11];break;case 12288>=_05:_Z4=[26,_05-8193,12];break;case 16384>=_05:_Z4=[27,_05-12289,12];break;case 24576>=_05:_Z4=[28,_05-16385,13];break;case 32768>=_05:_Z4=[29,_05-24577,13];break;default :throw "invalid distance";}_nv=_Z4;_Xo[e++]=_nv[0];_Xo[e++]=_nv[1];_Xo[e++]=_nv[2];var _0l,_e7;_0l=0;for(_e7=_Xo.length;
_0l<_e7;++_0l)_p7[h++]=_Xo[_0l];__h[_Xo[0]]++;x[_Xo[3]]++;q=__4.length+c-1;_G5=null}var e,__4,_05,_Z4,_e7,_0l={},_2z,_s7,_G5,_p7=_Ml1?new Uint16Array(2*_Xo.length):[],h=0,q=0,__h=new(_Ml1?Uint32Array:Array)(286),x=new(_Ml1?Uint32Array:Array)(30),_5s2=_nv.i,z;if(!_Ml1){for(_05=0;285>=_05;)__h[_05++]=0;for(_05=0;29>=_05;)x[_05++]=0}__h[256]=1;e=0;for(__4=_Xo.length;e<__4;++e){_05=_e7=0;for(_Z4=3;_05<_Z4&&e+_05!==__4;++_05)_e7=_e7<<8|_Xo[e+_05];_0l[_e7]===_c7&&(_0l[_e7]=[]);_2z=_0l[_e7];if(!(0<q--)){
for(;0<_2z.length&&32768<e-_2z[0];)_2z.shift();if(e+3>=__4){_G5&&c(_G5,-1);_05=0;for(_Z4=__4-e;_05<_Z4;++_05)z=_Xo[e+_05],_p7[h++]=z,++__h[z];break }0<_2z.length?(_s7=_rs2(_Xo,e,_2z),_G5?_G5.length<_s7.length?(z=_Xo[e-1],_p7[h++]=z,++__h[z],c(_s7,0)):c(_G5,-1):_s7.length<_5s2?_G5=_s7:c(_s7,0)):_G5?c(_G5,-1):(z=_Xo[e],_p7[h++]=z,++__h[z])}_2z.push(e)}_p7[h++]=256;__h[256]++;_nv._e7=__h;_nv._p7=x;return _Ml1?_p7.subarray(0,h):_p7}function _rs2(_nv,_Xo,c){var e,__4,_05=0,_Z4,_e7,_0l,_2z,_s7=_nv.length;
_e7=0;_2z=c.length;_05:for(;_e7<_2z;_e7++){e=c[_2z-_e7-1];_Z4=3;if(3<_05){for(_0l=_05;3<_0l;_0l--)if(_nv[e+_0l-1]!==_nv[_Xo+_0l-1])continue _05;_Z4=_05}for(;258>_Z4&&_Xo+_Z4<_s7&&_nv[e+_Z4]===_nv[_Xo+_Z4];)++_Z4;_Z4>_05&&(__4=e,_05=_Z4);if(258===_Z4)break }return new _Uh2(_05,_Xo-__4)}function _SC1(_nv,_Xo){var c=_nv.length,e=new _Rh2(572),__4=new(_Ml1?Uint8Array:Array)(c),_05,_Z4,_e7,_0l,_2z;if(!_Ml1)for(_0l=0;_0l<c;_0l++)__4[_0l]=0;for(_0l=0;_0l<c;++_0l)0<_nv[_0l]&&e.push(_0l,_nv[_0l]);_05=Array(e.length/2);
_Z4=new(_Ml1?Uint32Array:Array)(e.length/2);if(1===_05.length)return __4[e.pop().index]=1,__4;_0l=0;for(_2z=e.length/2;_0l<_2z;++_0l)_05[_0l]=e.pop(),_Z4[_0l]=_05[_0l].value;_e7=_ss2(_Z4,_Z4.length,_Xo);_0l=0;for(_2z=_05.length;_0l<_2z;++_0l)__4[_05[_0l].index]=_e7[_0l];return __4}function _ss2(_nv,_Xo,c){function e(_05){var __4=_0l[_05][_2z[_05]];__4===_Xo?(e(_05+1),e(_05+1)):--_Z4[__4];++_2z[_05]}var __4=new(_Ml1?Uint16Array:Array)(c),_05=new(_Ml1?Uint8Array:Array)(c),_Z4=new(_Ml1?Uint8Array:Array)(_Xo),
_e7=Array(c),_0l=Array(c),_2z=Array(c),_s7=(1<<c)-_Xo,_G5=1<<c-1,_p7,h,q,__h,x;__4[c-1]=_Xo;for(h=0;h<c;++h)_s7<_G5?_05[h]=0:(_05[h]=1,_s7-=_G5),_s7<<=1,__4[c-2-h]=(__4[c-1-h]/2|0)+_Xo;__4[0]=_05[0];_e7[0]=Array(__4[0]);_0l[0]=Array(__4[0]);for(h=1;h<c;++h)__4[h]>2*__4[h-1]+_05[h]&&(__4[h]=2*__4[h-1]+_05[h]),_e7[h]=Array(__4[h]),_0l[h]=Array(__4[h]);for(_p7=0;_p7<_Xo;++_p7)_Z4[_p7]=c;for(q=0;q<__4[c-1];++q)_e7[c-1][q]=_nv[q],_0l[c-1][q]=q;for(_p7=0;_p7<c;++_p7)_2z[_p7]=0;1===_05[c-1]&&(--_Z4[0],
++_2z[c-1]);for(h=c-2;0<=h;--h){__h=_p7=0;x=_2z[h+1];for(q=0;q<__4[h];q++)__h=_e7[h+1][x]+_e7[h+1][x+1],__h>_nv[_p7]?(_e7[h][q]=__h,_0l[h][q]=_Xo,x+=2):(_e7[h][q]=_nv[_p7],_0l[h][q]=_p7,++_p7);_2z[h]=0;1===_05[h]&&e(h)}return _Z4}function _gs2(_nv){var _Xo=new(_Ml1?Uint16Array:Array)(_nv.length),c=[],e=[],__4=0,_05,_Z4,_e7,_0l;_05=0;for(_Z4=_nv.length;_05<_Z4;_05++)c[_nv[_05]]=(c[_nv[_05]]|0)+1;_05=1;for(_Z4=16;_05<=_Z4;_05++)e[_05]=__4,__4+=c[_05]|0,__4<<=1;_05=0;for(_Z4=_nv.length;_05<_Z4;_05++){
__4=e[_nv[_05]];e[_nv[_05]]+=1;_e7=_Xo[_05]=0;for(_0l=_nv[_05];_e7<_0l;_e7++)_Xo[_05]=_Xo[_05]<<1|__4&1,__4>>>=1}return _Xo};function _ts2(_nv,_Xo){this.input=_nv;this._05=new(_Ml1?Uint8Array:Array)(32768);this._Xo=_us2._Z4;var c={},e;if((_Xo||!(_Xo={}))&&"number"===typeof _Xo._2s2)this._Xo=_Xo._2s2;for(e in _Xo)c[e]=_Xo[e];c.outputBuffer=this._05;this._J6=new _UC1(this.input,c)}var _us2=_rl2;_ts2.prototype._nv=function(){var _nv,_Xo,c,e,__4,_05,_Z4=0;_05=this._05;switch(8){case 8:_nv=Math.LOG2E*Math.log(32768)-8;
break;default :throw Error("invalid compression method");}_Xo=_nv<<4|8;_05[_Z4++]=_Xo;switch(8){case 8:switch(this._Xo){case _us2._qj2:e=0;break;case _us2.h:e=1;break;case _us2._Z4:e=2;break;default :throw Error("unsupported compression type");}break;default :throw Error("invalid compression method");}c=e<<6|0;_05[_Z4++]=c|31-(256*_Xo+c)%31;var _e7=this.input;if("string"===typeof _e7){var _0l=_e7.split(""),_2z,_s7;_2z=0;for(_s7=_0l.length;_2z<_s7;_2z++)_0l[_2z]=(_0l[_2z].charCodeAt(0)&255)>>>0;_e7=_0l}for(var _G5=1,
_p7=0,h=_e7.length,q,__h=0;0<h;){q=1024<h?1024:h;h-=q;do _G5+=_e7[__h++],_p7+=_G5;while(--q);_G5%=65521;_p7%=65521}__4=(_p7<<16|_G5)>>>0;this._J6.c=_Z4;_05=this._J6._nv();_Z4=_05.length;_Ml1&&(_05=new Uint8Array(_05.buffer),_05.length<=_Z4+4&&(this._05=new Uint8Array(_05.length+4),this._05.set(_05),_05=this._05),_05=_05.subarray(0,_Z4+4));_05[_Z4++]=__4>>24&255;_05[_Z4++]=__4>>16&255;_05[_Z4++]=__4>>8&255;_05[_Z4++]=__4&255;return _05};_eT("Zlib.Deflate",_ts2);_eT("Zlib.Deflate.compress",function(_nv,
_Xo){return(new _ts2(_nv,_Xo))._nv()});_eT("Zlib.Deflate.prototype.compress",_ts2.prototype._nv);var _vs2={_qj2:_us2._qj2,FIXED:_us2.h,_ws2:_us2._Z4},_xs2,_ys2,_zs2,_As2;if(Object.keys)_xs2=Object.keys(_vs2);else for(_ys2 in _xs2=[],_zs2=0,_vs2)_xs2[_zs2++]=_ys2;_zs2=0;for(_As2=_xs2.length;_zs2<_As2;++_zs2)_ys2=_xs2[_zs2],_eT("Zlib.Deflate.CompressionType."+_ys2,_vs2[_ys2]);}).call(this);;/*@license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){'use strict';function _e7(__4){
throw __4;}var _c7=void 0,_Y4=this;function __h(__4,_Xo){var _05=__4.split("."),c=_Y4;!(_05[0] in c)&&c._Xr2&&c._Xr2("var "+_05[0]);for(var _nv;_05.length&&(_nv=_05.shift());)!_05.length&&_Xo!==_c7?c[_nv]=_Xo:c=c[_nv]?c[_nv]:c[_nv]={}};var _G5="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function _H5(__4){var _Xo=__4.length,_05=0,c=Number.POSITIVE_INFINITY,_nv,e,_Z4,h,_0l,_p7,q,_2z,_s7;for(_2z=0;_2z<_Xo;++_2z)__4[_2z]>_05&&(_05=__4[_2z]),__4[_2z]<c&&(c=__4[_2z]);
_nv=1<<_05;e=new(_G5?Uint32Array:Array)(_nv);_Z4=1;h=0;for(_0l=2;_Z4<=_05;){for(_2z=0;_2z<_Xo;++_2z)if(__4[_2z]===_Z4){_p7=0;q=h;for(_s7=0;_s7<_Z4;++_s7)_p7=_p7<<1|q&1,q>>=1;for(_s7=_p7;_s7<_nv;_s7+=_0l)e[_s7]=_Z4<<16|_2z;++h}++_Z4;h<<=1;_0l<<=1}return [e,_05,c]};function w(__4,_Xo){this._Z4=[];this.h=32768;this._Xo=this._nv=this._05=this._p7=0;this.input=_G5?new Uint8Array(__4):__4;this._e7=!1;this.i=x;this._Y4=!1;if(_Xo||!(_Xo={}))_Xo.index&&(this._05=_Xo.index),_Xo._R91&&(this.h=_Xo._R91),_Xo._Bs2&&(this.i=_Xo._Bs2),
_Xo._Cs2&&(this._Y4=_Xo._Cs2);switch(this.i){case y:this.__4=32768;this.c=new(_G5?Uint8Array:Array)(32768+this.h+258);break;case x:this.__4=0;this.c=new(_G5?Uint8Array:Array)(this.h);this.e=this.z;this._c7=this._H5;this._J6=this.w;break;default :_e7(Error("invalid inflate mode"))}}var y=0,x=1,z={_s7:y,__h:x};w.prototype._0l=function(){for(;!this._e7;){var __4=_Ij1(this,3);__4&1&&(this._e7=!0);__4>>>=1;switch(__4){case 0:var _Xo=this.input,_05=this._05,c=this.c,_nv=this.__4,e=_c7,_Z4=_c7,h=_c7,_0l=c.length,
_p7=_c7;this._Xo=this._nv=0;e=_Xo[_05++];e===_c7&&_e7(Error("invalid uncompressed block header: LEN (first byte)"));_Z4=e;e=_Xo[_05++];e===_c7&&_e7(Error("invalid uncompressed block header: LEN (second byte)"));_Z4|=e<<8;e=_Xo[_05++];e===_c7&&_e7(Error("invalid uncompressed block header: NLEN (first byte)"));h=e;e=_Xo[_05++];e===_c7&&_e7(Error("invalid uncompressed block header: NLEN (second byte)"));h|=e<<8;_Z4===~h&&_e7(Error("invalid uncompressed block header: length verify"));_05+_Z4>_Xo.length&&_e7(Error("input buffer is broken"));
switch(this.i){case y:for(;_nv+_Z4>c.length;){_p7=_0l-_nv;_Z4-=_p7;if(_G5)c.set(_Xo.subarray(_05,_05+_p7),_nv),_nv+=_p7,_05+=_p7;else for(;_p7--;)c[_nv++]=_Xo[_05++];this.__4=_nv;c=this.e();_nv=this.__4}break;case x:for(;_nv+_Z4>c.length;)c=this.e({_2z:2});break;default :_e7(Error("invalid inflate mode"))}if(_G5)c.set(_Xo.subarray(_05,_05+_Z4),_nv),_nv+=_Z4,_05+=_Z4;else for(;_Z4--;)c[_nv++]=_Xo[_05++];this._05=_05;this.__4=_nv;this.c=c;break;case 1:this._J6(_Sk1,_Ml1);break;case 2:__i2(this);break;default :_e7(Error("unknown BTYPE: "+__4))}
}return this._c7()};var _Pn1=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_Eu1=_G5?new Uint16Array(_Pn1):_Pn1,_Au1=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],_Bu1=_G5?new Uint16Array(_Au1):_Au1,_is2=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],_Bm1=_G5?new Uint8Array(_is2):_is2,_6s2=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],_eG1=_G5?new Uint16Array(_6s2):_6s2,
_AL1=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_6l1=_G5?new Uint8Array(_AL1):_AL1,_Zr2=new(_G5?Uint8Array:Array)(288),_7s2,_ps1;_7s2=0;for(_ps1=_Zr2.length;_7s2<_ps1;++_7s2)_Zr2[_7s2]=143>=_7s2?8:255>=_7s2?9:279>=_7s2?7:8;var _Sk1=_H5(_Zr2),_os1=new(_G5?Uint8Array:Array)(30),_ds2,__r2;_ds2=0;for(__r2=_os1.length;_ds2<__r2;++_ds2)_os1[_ds2]=5;var _Ml1=_H5(_os1);function _Ij1(__4,_Xo){for(var _05=__4._nv,c=__4._Xo,_nv=__4.input,e=__4._05,_Z4;c<_Xo;)_Z4=_nv[e++],_Z4===_c7&&_e7(Error("input buffer is broken")),
_05|=_Z4<<c,c+=8;_Z4=_05&(1<<_Xo)-1;__4._nv=_05>>>_Xo;__4._Xo=c-_Xo;__4._05=e;return _Z4}function _Jl1(__4,_Xo){for(var _05=__4._nv,c=__4._Xo,_nv=__4.input,e=__4._05,_Z4=_Xo[0],h=_Xo[1],_0l,_p7,q;c<h;){_0l=_nv[e++];if(_0l===_c7)break;_05|=_0l<<c;c+=8}_p7=_Z4[_05&(1<<h)-1];q=_p7>>>16;__4._nv=_05>>q;__4._Xo=c-q;__4._05=e;return _p7&65535}function __i2(__4){function _Xo(_05,__4,c){var _Xo,e,_nv,_Z4;for(_Z4=0;_Z4<_05;)switch(_Xo=_Jl1(this,__4),_Xo){case 16:for(_nv=3+_Ij1(this,2);_nv--;)c[_Z4++]=e;break;case 17:for(_nv=3+_Ij1(this,
3);_nv--;)c[_Z4++]=0;e=0;break;case 18:for(_nv=11+_Ij1(this,7);_nv--;)c[_Z4++]=0;e=0;break;default :e=c[_Z4++]=_Xo}return c}var _05=_Ij1(__4,5)+257,c=_Ij1(__4,5)+1,_nv=_Ij1(__4,4)+4,e=new(_G5?Uint8Array:Array)(_Eu1.length),_Z4,h,_0l,_p7;for(_p7=0;_p7<_nv;++_p7)e[_Eu1[_p7]]=_Ij1(__4,3);_Z4=_H5(e);h=new(_G5?Uint8Array:Array)(_05);_0l=new(_G5?Uint8Array:Array)(c);__4._J6(_H5(_Xo.call(__4,_05,_Z4,h)),_H5(_Xo.call(__4,c,_Z4,_0l)))}w.prototype._J6=function(__4,_Xo){var _05=this.c,c=this.__4;this._Dx=__4;for(var _nv=_05.length-258,
e,_Z4,h,_0l;256!==(e=_Jl1(this,__4));)if(256>e)c>=_nv&&(this.__4=c,_05=this.e(),c=this.__4),_05[c++]=e;else {_Z4=e-257;_0l=_Bu1[_Z4];0<_Bm1[_Z4]&&(_0l+=_Ij1(this,_Bm1[_Z4]));e=_Jl1(this,_Xo);h=_eG1[e];0<_6l1[e]&&(h+=_Ij1(this,_6l1[e]));c>=_nv&&(this.__4=c,_05=this.e(),c=this.__4);for(;_0l--;)_05[c]=_05[c++-h]}for(;8<=this._Xo;)this._Xo-=8,this._05--;this.__4=c};w.prototype.w=function(__4,_Xo){var _05=this.c,c=this.__4;this._Dx=__4;for(var _nv=_05.length,e,_Z4,h,_0l;256!==(e=_Jl1(this,__4));)if(256>e)c>=_nv&&(_05=this.e(),
_nv=_05.length),_05[c++]=e;else {_Z4=e-257;_0l=_Bu1[_Z4];0<_Bm1[_Z4]&&(_0l+=_Ij1(this,_Bm1[_Z4]));e=_Jl1(this,_Xo);h=_eG1[e];0<_6l1[e]&&(h+=_Ij1(this,_6l1[e]));c+_0l>_nv&&(_05=this.e(),_nv=_05.length);for(;_0l--;)_05[c]=_05[c++-h]}for(;8<=this._Xo;)this._Xo-=8,this._05--;this.__4=c};w.prototype.e=function(){var __4=new(_G5?Uint8Array:Array)(this.__4-32768),_Xo=this.__4-32768,_05,c,_nv=this.c;if(_G5)__4.set(_nv.subarray(32768,__4.length));else {_05=0;for(c=__4.length;_05<c;++_05)__4[_05]=_nv[_05+32768]}
this._Z4.push(__4);this._p7+=__4.length;if(_G5)_nv.set(_nv.subarray(_Xo,_Xo+32768));else for(_05=0;32768>_05;++_05)_nv[_05]=_nv[_Xo+_05];this.__4=32768;return _nv};w.prototype.z=function(__4){var _Xo,_05=this.input.length/this._05+1|0,c,_nv,e,_Z4=this.input,h=this.c;__4&&("number"===typeof __4._2z&&(_05=__4._2z),"number"===typeof __4._G5&&(_05+=__4._G5));2>_05?(c=(_Z4.length-this._05)/this._Dx[2],e=258*(c/2)|0,_nv=e<h.length?h.length+e:h.length<<1):_nv=h.length*_05;_G5?(_Xo=new Uint8Array(_nv),_Xo.set(h)):_Xo=h;
return this.c=_Xo};w.prototype._c7=function(){var __4=0,_Xo=this.c,_05=this._Z4,c,_nv=new(_G5?Uint8Array:Array)(this._p7+(this.__4-32768)),e,_Z4,h,_0l;if(0===_05.length)return _G5?this.c.subarray(32768,this.__4):this.c.slice(32768,this.__4);e=0;for(_Z4=_05.length;e<_Z4;++e){c=_05[e];h=0;for(_0l=c.length;h<_0l;++h)_nv[__4++]=c[h]}e=32768;for(_Z4=this.__4;e<_Z4;++e)_nv[__4++]=_Xo[e];this._Z4=[];return this.buffer=_nv};w.prototype._H5=function(){var __4,_Xo=this.__4;_G5?this._Y4?(__4=new Uint8Array(_Xo),
__4.set(this.c.subarray(0,_Xo))):__4=this.c.subarray(0,_Xo):(this.c.length>_Xo&&(this.c.length=_Xo),__4=this.c);return this.buffer=__4};function _4s2(__4,_Xo){var _05,c;this.input=__4;this._05=0;if(_Xo||!(_Xo={}))_Xo.index&&(this._05=_Xo.index),_Xo._Ds2&&(this._Ij1=_Xo._Ds2);_05=__4[this._05++];c=__4[this._05++];switch(_05&15){case _us2:this.method=_us2;break;default :_e7(Error("unsupported compression method"))}0!==((_05<<8)+c)%31&&_e7(Error("invalid fcheck flag:"+((_05<<8)+c)%31));c&32&&_e7(Error("fdict flag is not supported"));
this.q=new w(__4,{index:this._05,_R91:_Xo._R91,_Bs2:_Xo._Bs2,_Cs2:_Xo._Cs2})}_4s2.prototype._0l=function(){var __4=this.input,_Xo,_05;_Xo=this.q._0l();this._05=this.q._05;if(this._Ij1){_05=(__4[this._05++]<<24|__4[this._05++]<<16|__4[this._05++]<<8|__4[this._05++])>>>0;var c=_Xo;if("string"===typeof c){var _nv=c.split(""),e,_Z4;e=0;for(_Z4=_nv.length;e<_Z4;e++)_nv[e]=(_nv[e].charCodeAt(0)&255)>>>0;c=_nv}for(var h=1,_0l=0,_p7=c.length,q,_2z=0;0<_p7;){q=1024<_p7?1024:_p7;_p7-=q;do h+=c[_2z++],_0l+=h;while(--q);
h%=65521;_0l%=65521}_05!==(_0l<<16|h)>>>0&&_e7(Error("invalid adler-32 checksum"))}return _Xo};var _us2=8;__h("Zlib.Inflate",_4s2);__h("Zlib.Inflate.prototype.decompress",_4s2.prototype._0l);var _zs2={_Es2:z.__h,_Fs2:z._s7},_Qr,_Rr,_Sr,$;if(Object.keys)_Qr=Object.keys(_zs2);else for(_Rr in _Qr=[],_Sr=0,_zs2)_Qr[_Sr++]=_Rr;_Sr=0;for($=_Qr.length;_Sr<$;++_Sr)_Rr=_Qr[_Sr],__h("Zlib.Inflate.BufferType."+_Rr,_zs2[_Rr]);}).call(this);_Yg:/*@constructor */function _Gs2(){this._Hs2=0;this._Is2=null;this._Js2=0;
this._Ks2=null;this._Ls2=new _ek();this._Ms2=null;};/*@constructor */function _Ns2(){this._Ce=0;this._te1=new _qr();this._re1=new _qr();this._Os2=new _qr();this._Ps2=new _qr();this._Qs2=new _qr();this._Rs2=new _qr();this._he1=0;this._je1=0;this._le1=0;this._ne1=0;this._Ss2=0;this._Ts2=0;this._Us2=0;this._Vs2=0;this._pe1=0;this._Ws2=-1;this._YJ=null;this._ZJ=null;this._Xs2=null;this._Ys2=true;this._Zs2=false;this.__s2=false;};_Ns2.prototype._0t2=function(_1t2){this._Zs2=_1t2;};_Ns2.prototype._2t2=function(){
return this._Zs2;};_Ns2.prototype._3t2=function(_IY){this.__s2=_IY;};_Ns2.prototype._4t2=function(){return this.__s2;};_Gs2.prototype._5t2=function(_yg){var _6t2=this._7t2(_yg);if(!_6t2)return -1;var _8t2=this._9t2();var _at2=this._7t2(_8t2);_at2._he1=_6t2._he1;_at2._je1=_6t2._je1;_at2._le1=_6t2._le1;_at2._ne1=_6t2._ne1;_at2._Ss2=_6t2._Ss2;_at2._Ts2=_6t2._Ts2;_at2._Us2=_6t2._Us2;_at2._Vs2=_6t2._Vs2;_at2._pe1=_6t2._pe1;_at2._Ws2=_6t2._Ws2;_at2._YJ=_6t2._YJ;_at2._ZJ=_6t2._ZJ;_at2._Xs2=_6t2._Xs2;var _bt2=new _qr(_6t2._re1);
var _ct2=new _qr(_6t2._te1);var _xF=new _qr(_6t2._Os2);var _dt2=new _qr(_6t2._Ps2);var _et2=new _qr(_6t2._Qs2);var _ft2=new _qr(_6t2._Rs2);_at2._te1=_ct2;_at2._re1=_bt2;_at2._Os2=_xF;_at2._Ps2=_dt2;_at2._Qs2=_et2;_at2._Rs2=_ft2;_at2.__s2=_6t2.__s2;_at2._0t2(true);return _8t2;};_Ns2.prototype._gt2=function(){if(this._te1._e7[11]==0)return true;return false;};_Ns2.prototype._ht2=function(){if(this._gt2()){if((this._te1._e7[4]==0.0)&&(this._te1._e7[8]==0.0)&&(this._te1._e7[1]==0.0)&&(this._te1._e7[9]==0.0)&&(this._te1._e7[2]==0.0)&&(this._te1._e7[6]==0.0)){
if((this._re1._e7[2]==0.0)&&(this._re1._e7[6]==0.0)){this._Ys2=true;return;}}}this._Ys2=false;};_Ns2.prototype._Ee1=function(_it2){this._re1=_it2;this._Qs2._cF(_it2);this._Os2.Multiply(this._re1,this._te1);this._Rs2._cF(this._Os2);this._ht2();};_Ns2.prototype._Fe1=function(_it2){this._te1=_it2;this._Ps2._cF(_it2);this._Os2.Multiply(this._re1,this._te1);this._Rs2._cF(this._Os2);this._ht2();};_Gs2.prototype._jt2=function(){this._Hs2=this._Ls2.length;};_Gs2.prototype._9t2=function(){var _kt2=new _Ns2();
_kt2._Ce=this._Js2;this._Js2++;this._Ls2._Vf(_kt2);return _kt2._Ce;};_Gs2.prototype._7t2=function(_lt2){for(var i=0;i<this._Ls2.length;i++){if(this._Ls2._n6(i)!=null)if(this._Ls2._n6(i)._Ce==_lt2)return this._Ls2._n6(i);}return null;};_Gs2.prototype._mt2=function(_lt2){for(var i=0;i<this._Ls2.length;i++){var _nt2=this._Ls2._n6(i);if(_nt2){if(_nt2._Ce===_lt2){if(this._Ms2==_nt2)this._Ms2=null;this._Ls2._yL(_nt2);return;}}}return;};_Gs2.prototype._ot2=function(){this._Ls2._ag();_Hs2=0;};_Gs2.prototype._pt2=function(_qt2){
if(_qt2==null)return null;var _rt2=this._9t2();var _at2=this._7t2(_rt2);if(_at2!=null){_at2._st2(_qt2._0e1);_at2._tt2(_qt2._1e1);_at2._ut2(_qt2._2e1);_at2._vt2(_qt2._3e1);_at2._wt2(_qt2.hspeed);_at2._xt2(_qt2.vspeed);_at2._yt2(_qt2.hborder);_at2._zt2(_qt2.vborder);_at2._At2(0.0);_at2._Bt2(_qt2._Ct2);_at2._Dt2(_at2._Et2()+_at2._Ft2()*0.5,_at2._Gt2()+_at2._Ht2()*0.5);}return _at2;};_Gs2.prototype._It2=function(){if(this._Is2===null){this._Is2=new _BI(0,0,0,0,false,true);}};_Gs2.prototype._Jt2=function(){
if(this._Is2!=null){this._Is2=null;}for(var i=this._Hs2;i<this._Ls2.length;i++){var _Kt2=this._Ls2._n6(i);if(_Kt2!==null){if(_Kt2._2t2()&&!_Kt2._4t2()){this._mt2(_Kt2._Ce);}}}};_Gs2.prototype._Lt2=function(){this._Mt2=0;this._Ks2=null;this._Nt2=0;this._Ot2=0;this._Ms2=null;};_Gs2.prototype._ee1=function(){return this._Ks2;};_Gs2.prototype._Pt2=function(){if(this._Ms2==null)this._Ms2=this._7t2(this._9t2());return this._Ms2;};_Gs2.prototype._Qt2=function(_AC){if(typeof(_AC)==_Ns2){this._Ks2=_AC;}else {
this._Ks2=this._7t2(_AC);}};_Ns2.prototype._Rt2=function(){return this._Ws2;};_Ns2.prototype._Bt2=function(_AC){this._Ws2=_AC;};_Ns2.prototype._St2=function(_AC){this._Xs2=_AC;};_Ns2.prototype._Tt2=function(_AC){this._YJ=_AC;};_Ns2.prototype._Ut2=function(_AC){this._ZJ=_AC;};_Ns2.prototype._Vt2=function(){return this._Xs2;};_Ns2.prototype._Wt2=function(){return this._YJ;};_Ns2.prototype._Xt2=function(){return this._ZJ;};_Ns2.prototype._Yt2=function(){return this._re1;};_Ns2.prototype._Zt2=function(){
if(_Ir==-1){return this._te1;}else {var _es=new _qr();_es._e7[_gs]=-1;var _ep=new _qr();_ep.Multiply(this._te1,_es);return _ep;}};_Ns2.prototype.__t2=function(){return this._Os2;};_Ns2.prototype._0u2=function(){return this._Ps2;};_Ns2.prototype._1u2=function(){return this._Qs2;};_Ns2.prototype._2u2=function(){return this._Rs2;};_Ns2.prototype._st2=function(_AC){this._he1=_AC;};_Ns2.prototype._Et2=function(){return this._he1;};_Ns2.prototype._tt2=function(_AC){this._je1=_AC;};_Ns2.prototype._Gt2=function(){return this._je1;
};_Ns2.prototype._3u2=function(_AC){this._Ce=_AC;};_Ns2.prototype._4u2=function(){return this._Ce;};_Ns2.prototype._ut2=function(_AC){this._le1=_AC;};_Ns2.prototype._Ft2=function(){return this._le1;};_Ns2.prototype._vt2=function(_AC){this._ne1=_AC;};_Ns2.prototype._Ht2=function(){return this._ne1;};_Ns2.prototype._wt2=function(_AC){this._Ss2=_AC;};_Ns2.prototype._5u2=function(){return this._Ss2;};_Ns2.prototype._xt2=function(_AC){this._Ts2=_AC;};_Ns2.prototype._6u2=function(){return this._Ts2;};_Ns2.prototype._yt2=function(_AC){
this._Us2=_AC;};_Ns2.prototype._7u2=function(){return this._Us2;};_Ns2.prototype._zt2=function(_AC){this._Vs2=_AC;};_Ns2.prototype._8u2=function(){return this._Vs2;};_Ns2.prototype._At2=function(_AC){this._pe1=_AC;};_Ns2.prototype._9u2=function(){return this._pe1;};_Ns2.prototype._Kd=function(){if(this._YJ!==null){this._YJ(this._Is2,this._Is2);}};_Ns2.prototype._Md=function(){if(this._ZJ!==null){this._ZJ(this._Is2,this._Is2);}};_Ns2.prototype._au2=function(){var _bu2=new _Er();_bu2._Qr=this._Qs2._e7[_Qs];
_bu2._Rr=this._Qs2._e7[_Ts];_bu2._Sr=this._Qs2._e7[_Ys];return _bu2;};_Ns2.prototype._cu2=function(){var _du2=new _Er();_du2._Qr=this._re1._e7[_Vs];_du2._Rr=this._re1._e7[_Ws];_du2._Sr=this._re1._e7[_Xs];_du2._Nr();return _du2;};_Ns2.prototype._eu2=function(){var _hF=new _Er();_hF._Qr=this._re1._e7[_Rs];_hF._Rr=this._re1._e7[_gs];_hF._Sr=this._re1._e7[_Ss];_hF._Nr();return _hF;};_Ns2.prototype._fu2=function(){var _gF=new _Er();_gF._Qr=this._re1._e7[_Ns];_gF._Rr=this._re1._e7[_Os];_gF._Sr=this._re1._e7[_Ps];
_gF._Nr();return _gF;};_Ns2.prototype._Ge1=function(){_hs(this._re1,this._te1,this._Qs2,this._Rs2);if(_09!=null){_8s(_9s,this._re1);}else {_8s(_9s,this._re1);var _gu2=_kD/_nF;var _hu2=_lD/_oF;_iu2[0]=this._re1._e7[_Ns]*_gu2;_iu2[1]=this._re1._e7[_Os]*_gu2;_iu2[2]=(this._re1._e7[_Qs]+(_nF*0.5))*_gu2+_iD;_iu2[3]=this._re1._e7[_Rs]*_hu2;_iu2[4]=this._re1._e7[_gs]*_hu2;_iu2[5]=(this._re1._e7[_Ts]+(_oF*0.5))*_hu2+_jD;_Oa._hD(_iu2[0],_iu2[3],_iu2[1],_iu2[4],_iu2[2],_iu2[5]);}if(_Ir==-1){_8s(_ds,this._te1);
}else {var _es=new _qr();_es._e7[_gs]=-1;var _ep=new _qr();_ep.Multiply(this._te1,_es);_8s(_ds,_ep);}};_Ns2.prototype._bg=function(){if(this._Xs2!=null){this._Xs2(_ju2,_ju2);}else {if((this._Ws2>=0)&&(this._Ys2)){var _Hx=null;if(this._Ws2<10000){var _By=_14._n6(this._Ws2);var _yk=_By._5_();for(var _Tx=0;_Tx<_yk.length;_Tx++){var _9o=_yk[_Tx];if(_9o.marked)continue;if(!_9o.active)continue;_Hx=_9o;break;}}else {_Hx=_Fx._n6(this._Ws2);if(_Hx!=null){if(_Hx.marked||(!_Hx.active))_Hx=null;}}if(_Hx!=null){var _ku2=this._le1*0.5;
var _lu2=this._ne1*0.5;var _p7,_s7;var _mj,_mu2;_p7=this._he1;_s7=this._je1;if(_Hx._dI)_Hx._eI();_mj=Math.floor(_Hx.x);_mu2=Math.floor(_Hx.y);if(2*this._Us2>=this._le1){_p7=_mj-_ku2;}else if(_mj-this._Us2<this._he1){_p7=_mj-this._Us2;}else if(_mj+this._Us2>(this._he1+this._le1)){_p7=_mj+this._Us2-this._le1;}if(2*this._Vs2>=this._ne1){_s7=_mu2-_lu2;}else if(_mu2-this._Vs2<this._je1){_s7=_mu2-this._Vs2;}else if(_mu2+this._Vs2>(this._je1+this._ne1)){_s7=_mu2+this._Vs2-this._ne1;}if(_p7<0)_p7=0;if(_p7+this._le1>_c4._tF())_p7=_c4._tF()-this._le1;
if(_s7<0)_s7=0;if(_s7+this._ne1>_c4._uF())_s7=_c4._uF()-this._ne1;if(this._Ss2>=0){if((_p7<this._he1)&&(this._he1-_p7>this._Ss2))_p7=this._he1-this._Ss2;if((_p7>this._he1)&&(_p7-this._he1>this._Ss2))_p7=this._he1+this._Ss2;}if(this._Ts2>=0){if((_s7<this._je1)&&(this._je1-_s7>this._Ts2))_s7=this._je1-this._Ts2;if((_s7>this._je1)&&(_s7-this._je1>this._Ts2))_s7=this._je1+this._Ts2;}this._he1=_p7;this._je1=_s7;this._Dt2(_p7+_ku2,_s7+_lu2);}}}};_Ns2.prototype._Dt2=function(_AC,_0h){var _0h2=new _Er();var _8h2=new _Er();
var _gh2=new _Er();_0h2._Qr=_AC;_0h2._Rr=_0h;_0h2._Sr=-16000.0;_8h2._Qr=_AC;_8h2._Rr=_0h;_8h2._Sr=0.0;_gh2._Qr=Math.sin(-this._pe1*(Math.PI/180.0));_gh2._Rr=Math.cos(-this._pe1*(Math.PI/180.0));_gh2._Sr=0.0;var _nu2=new _qr();_nu2._Fr(_0h2,_8h2,_gh2);var _ou2=new _qr();_ou2._Hr(this._le1,this._ne1,1,32000.0);this._Ee1(_nu2);this._Fe1(_ou2);};_Ns2.prototype._pu2=function(_AC,_0h){var _0h2=new _Er();var _8h2=new _Er();var _gh2=new _Er();_0h2._Qr=_AC;_0h2._Rr=_0h;_0h2._Sr=-(this._le1);_8h2._Qr=_AC;_8h2._Rr=_0h;
_8h2._Sr=0.0;_gh2._Qr=Math.sin(-this._pe1*(Math.PI/180.0));_gh2._Rr=Math.cos(-this._pe1*(Math.PI/180.0));_gh2._Sr=0.0;var _nu2=new _qr();_nu2._Fr(_0h2,_8h2,_gh2);var _ou2=new _qr();_ou2._ws(1.0,-(this._ne1)/(this._le1),1,32000.0);this._Ee1(_nu2);this._Fe1(_ou2);};function camera_create(){return _de1._9t2();};function camera_create_view(_qu2,_ru2,_89,_99,_d6,_wn,_su2,_tu2,_uu2,_vu2){var _wu2=_de1._9t2();var _xu2=_de1._7t2(_wu2);if(_xu2!=null){_xu2._st2(yyGetReal(_qu2));_xu2._tt2(yyGetReal(_ru2));_xu2._ut2(yyGetReal(_89));
_xu2._vt2(yyGetReal(_99));var angle=0;var target=-1;var _yu2=-1;var _zu2=-1;var _Au2=0;var _Bu2=0;var _Cu2=arguments.length;if(_Cu2>4)angle=yyGetReal(_d6);if(_Cu2>5)target=yyGetInt32(_wn);if(_Cu2>6)_yu2=yyGetReal(_su2);if(_Cu2>7)_zu2=yyGetReal(_tu2);if(_Cu2>8)_Au2=yyGetReal(_uu2);if(_Cu2>9)_Bu2=yyGetReal(_vu2);_xu2._At2(angle);_xu2._Bt2(target);_xu2._wt2(_yu2);_xu2._xt2(_zu2);_xu2._yt2(_Au2);_xu2._zt2(_Bu2);if(_xu2._gt2()){_xu2._Dt2(_xu2._Et2()+(_xu2._Ft2()*0.5),_xu2._Gt2()+(_xu2._Ht2()*0.5));}else {_xu2._pu2(_xu2._Et2()+(_xu2._Ft2()*0.5),
_xu2._Gt2()+(_xu2._Ht2()*0.5));}}return _xu2._Ce;}function camera_destroy(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){if(_de1._ee1()===_nt2){_de1._Qt2(null);}_de1._mt2(_nt2._Ce);}};function camera_apply(_AC){var _xu2=_de1._7t2(yyGetInt32(_AC));if(_xu2!=null){_xu2._Ge1();}}function camera_copy_transforms(_AC,_0h){var _Ya=_de1._7t2(yyGetInt32(_AC));var src=_de1._7t2(yyGetInt32(_0h));if(_Ya==null){_Du2._Eu2("camera_copy_settings() - camera to copy to doesn't exist\n");return;}if(src==null){_Du2._Eu2("camera_copy_settings() - camera to copy from doesn't exist\n");
return;}if(src==_Ya){_Du2._Eu2("camera_copy_settings() - source and destination cameras are the same\n");return;}_Ya._he1=src._he1;_Ya._je1=src._je1;_Ya._le1=src._le1;_Ya._ne1=src._ne1;_Ya._Ss2=src._Ss2;_Ya._Ts2=src._Ts2;_Ya._Us2=src._Us2;_Ya._Vs2=src._Vs2;_Ya._pe1=src._pe1;var _bt2=new _qr(src._re1);var _ct2=new _qr(src._te1);var _xF=new _qr(src._Os2);var _dt2=new _qr(src._Ps2);var _et2=new _qr(src._Qs2);var _ft2=new _qr(src._Rs2);_Ya._te1=_ct2;_Ya._re1=_bt2;_Ya._Os2=_xF;_Ya._Ps2=_dt2;_Ya._Qs2=_et2;_Ya._Rs2=_ft2;
}function camera_get_active(){var _xu2=_de1._ee1();if(_xu2!=null)return _xu2._Ce;else return -1;}function camera_get_default(){var _xu2=_de1._7t2(_Fu2);if(_xu2!=null){return _xu2._Ce;}else return -1;}function camera_set_default(_AC){var _xu2=_de1._7t2(yyGetInt32(_AC));if(_xu2!=null){_Fu2=_xu2._Ce;}}function camera_set_view_mat(_AC,_0h){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){var _Gu2=new _qr();for(var i=0;i<16;i++)_Gu2._e7[i]=_0h[i];_nt2._Ee1(_Gu2);}};function camera_set_proj_mat(_AC,_0h){var _nt2=_de1._7t2(yyGetInt32(_AC));
if(_nt2!=null){var _Gu2=new _qr();for(var i=0;i<16;i++)_Gu2._e7[i]=_0h[i];_nt2._Fe1(_Gu2);}};function camera_set_view_target(_AC,_0h){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){_nt2._Bt2(yyGetInt32(_0h));}};function camera_set_update_script(_AC,_0h){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){switch(typeof _0h){case "number":var _6a=yyGetInt32(_0h);if(_6a>=100000)_6a-=100000;_nt2._St2(_aw.Scripts[_6a]);break;case "function":_nt2._St2(_0h);break;default :_q5("camera_set_end_script : argument0 is not a function or a script");
}}};function camera_set_begin_script(_AC,_0h){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){switch(typeof _0h){case "number":var _6a=yyGetInt32(_0h);if(_6a>=100000)_6a-=100000;_nt2._Tt2(_aw.Scripts[_6a]);break;case "function":_nt2._Tt2(_0h);break;default :_q5("camera_set_begin_script : argument0 is not a function or a script");}}};function camera_set_end_script(_AC,_0h){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){switch(typeof _0h){case "number":var _6a=yyGetInt32(_0h);if(_6a>=100000)_6a-=100000;
_nt2._Ut2(_aw.Scripts[_6a]);break;case "function":_nt2._Ut2(_0h);break;default :_q5("camera_set_end_script : argument0 is not a function or a script");}}};function _Hu2(_AC,_0h,_oO,_EO,_FO,_7P,_8P,_Iu2,_Ju2,_Ku2,_Lu2){var _nt2=_de1._7t2(_AC);if(_nt2!=null){_nt2._st2(_0h);_nt2._tt2(_oO);_nt2._ut2(_EO);_nt2._vt2(_FO);_nt2._wt2(_7P);_nt2._xt2(_8P);_nt2._yt2(_Iu2);_nt2._zt2(_Ju2);_nt2._At2(_Ku2);_nt2._Bt2(_Lu2);_nt2._Dt2(_nt2._Et2()+_nt2._Ft2()*0.5,_nt2._Gt2()+_nt2._Ht2()*0.5);}};function camera_set_view_pos(_AC,
_0h,_oO){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){_nt2._st2(yyGetReal(_0h));_nt2._tt2(yyGetReal(_oO));_nt2._Dt2(_nt2._Et2()+_nt2._Ft2()*0.5,_nt2._Gt2()+_nt2._Ht2()*0.5);}};function camera_set_view_size(_AC,_0h,_oO){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){_nt2._ut2(yyGetReal(_0h));_nt2._vt2(yyGetReal(_oO));_nt2._Dt2(_nt2._Et2()+_nt2._Ft2()*0.5,_nt2._Gt2()+_nt2._Ht2()*0.5);}};function camera_set_view_speed(_AC,_0h,_oO){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){_nt2._wt2(yyGetReal(_0h));
_nt2._xt2(yyGetReal(_oO));}};function camera_set_view_border(_AC,_0h,_oO){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){_nt2._yt2(yyGetReal(_0h));_nt2._zt2(yyGetReal(_oO));}};function camera_set_view_angle(_AC,_0h){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){_nt2._At2(yyGetReal(_0h));_nt2._Dt2(_nt2._Et2()+_nt2._Ft2()*0.5,_nt2._Gt2()+_nt2._Ht2()*0.5);}};function camera_get_view_mat(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._Yt2()._e7;}return -1;};function camera_get_proj_mat(_AC){
var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._Zt2()._e7;}return -1;};function camera_get_view_target(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){var _pO=_nt2._Rt2();return(_pO<0)?_pO:_Wn(_Xn,_pO);}return -1;};function camera_get_update_script(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){var _lw=_nt2._Vt2();if(typeof _lw==="number"){return method_get_index(_lw);}else if(typeof _lw=="function"){return _lw;}}return -1;};function camera_get_begin_script(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));
if(_nt2!=null){var _lw=_nt2._Wt2();if(typeof _lw==="number"){return method_get_index(_lw);}else if(typeof _lw=="function"){return _lw;}}return -1;};function camera_get_end_script(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){var _lw=_nt2._Xt2();if(typeof _lw==="number"){return method_get_index(_lw);}else if(typeof _lw=="function"){return _lw;}}return -1;};function camera_get_view_x(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._Et2();}return -1;};function camera_get_view_y(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));
if(_nt2!=null){return _nt2._Gt2();}return -1;};function camera_get_view_width(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._Ft2();}return -1;};function camera_get_view_height(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._Ht2();}return -1;};function camera_get_view_speed_x(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._5u2();}return -1;};function camera_get_view_speed_y(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._6u2();}return -1;
};function camera_get_view_border_x(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._7u2();}return -1;};function camera_get_view_border_y(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._8u2();}return -1;};function camera_get_view_angle(_AC){var _nt2=_de1._7t2(yyGetInt32(_AC));if(_nt2!=null){return _nt2._9u2();}return -1;};var _Mu2=false,_EY=-1,_HY=-1,_Nu2=0,_Ou2=1,_Pu2=2,_Qu2=3,_Ru2=4,_Su2=5,_Tu2=6,_Uu2=7,_Vu2=8,_Wu2=9,_Xu2=10,_Yu2=11,_Zu2=[0,0,0],__u2=[0,0,0],_0v2=[0,
0,0,0,0,0],_1v2=[0,0,0],_2v2=[0,0,0],_3v2=[0,0,0],_4v2=[0,0,0],_5v2=[0,0,0],_6v2=[0,0,0],_7v2=[0,0,0],_8v2=0,_9v2=0;function _av2(){if((_g4._h4()<=30)||(_bv2<=30)){return 1.0;}if((_g4._h4()/_bv2)<1.2){return 30.0/_g4._h4();}else {return 30.0/_bv2;}}function _FY(){if(!_AW(_EY)){_EY=_xW();if(_e4){_EW(_EY,50);}else {_EW(_EY,100000);}}if(!_AW(_HY)){_HY=_xW();if(_e4){_EW(_HY,-15000);}else {_EW(_HY,-100000);}}if(!_Mu2){_cv2();}}function _cv2(){var i;_Mu2=true;for(i=0;i<=5;i++){_0v2[i]=_1X();}for(i=0;i<=2;i++){_1v2[i]=_1X();
_Zu2[i]=_1X();_2v2[i]=_1X();__u2[i]=_1X();_3v2[i]=_1X();_4v2[i]=_1X();_5v2[i]=_1X();_6v2[i]=_1X();_7v2[i]=_1X();}_8v2=_1X();_9v2=_1X();}function _dv2(_yV,_96,_a6,_id,_Xd){var _nv=_av2();if(_id===0){_6X(_0v2[0],_ev2);_hX(_0v2[0],0.1,0.1,0.05*_nv,0);_3Y(_0v2[0],0,360,0,0,false);_dY(_0v2[0],0,360,0,0);_8Y(_0v2[0],2*_nv,2*_nv,-0.1*_nv,0);_NX(_0v2[0],0.6,0);_SX(_0v2[0],_Ak(10.0/_nv),_Ak(15.0/_nv));_YW(_yV,_96,_a6,_0v2[0],_Xd,20);_6X(_0v2[1],_ev2);_hX(_0v2[1],0.1,0.1,0.1*_nv,0);_3Y(_0v2[1],0,360,0,0,false);
_NX(_0v2[1],0.8,0);_SX(_0v2[1],_Ak(15/_nv),_Ak(15/_nv));_YW(_yV,_96,_a6,_0v2[1],0x000000,1);}else if(_id==2){_6X(_0v2[4],_ev2);_hX(_0v2[4],0.4,0.4,0.2*_nv,0);_3Y(_0v2[4],0,360,0,0,false);_dY(_0v2[4],0,360,0,0);_8Y(_0v2[4],7*_nv,7*_nv,-0.2*_nv,0);_NX(_0v2[4],0.6,0);_SX(_0v2[4],_Ak(15/_nv),_Ak(20/_nv));_YW(_yV,_96,_a6,_0v2[4],_Xd,20);_6X(_0v2[5],_ev2);_hX(_0v2[5],0.4,0.4,0.4*_nv,0);_3Y(_0v2[5],0,360,0,0,false);_NX(_0v2[5],0.8,0);_SX(_0v2[5],_Ak(20/_nv),_Ak(20/_nv));_YW(_yV,_96,_a6,_0v2[5],0x000000,
1);}else {_6X(_0v2[2],_ev2);_hX(_0v2[2],0.3,0.3,0.1*_nv,0);_3Y(_0v2[2],0,360,0,0,false);_dY(_0v2[2],0,360,0,0);_8Y(_0v2[2],4*_nv,4*_nv,-0.18*_nv,0);_NX(_0v2[2],0.6,0);_SX(_0v2[2],_Ak(12/_nv),_Ak(17/_nv));_YW(_yV,_96,_a6,_0v2[2],_Xd,20);_6X(_0v2[3],_ev2);_hX(_0v2[3],0.3,0.3,0.2*_nv,0);_3Y(_0v2[3],0,360,0,0,false);_NX(_0v2[3],0.8,0);_SX(_0v2[3],_Ak(17/_nv),_Ak(17/_nv));_YW(_yV,_96,_a6,_0v2[3],0x000000,1);}}function _fv2(_yV,_96,_a6,_id,_Xd){var _nv=_av2();if(_id===0){_6X(_1v2[0],_gv2);_NX(_1v2[0],1,0);
_hX(_1v2[0],0.0,0.0,0.15*_nv,0.0);_SX(_1v2[0],_Ak(10.0/_nv),_Ak(12.0/_nv));_YW(_yV,_96,_a6,_1v2[0],_Xd,1);}else if(_id==2){_6X(_1v2[2],_gv2);_NX(_1v2[2],1,0);_hX(_1v2[2],0,0,0.4*_nv,0);_SX(_1v2[2],_Ak(18.0/_nv),_Ak(20.0/_nv));_YW(_yV,_96,_a6,_1v2[2],_Xd,1);}else {_6X(_1v2[1],_gv2);_NX(_1v2[1],1,0);_hX(_1v2[1],0,0,0.25*_nv,0);_SX(_1v2[1],_Ak(13.0/_nv),_Ak(15.0/_nv));_YW(_yV,_96,_a6,_1v2[1],_Xd,1);}}function _hv2(_yV,_96,_a6,_id,_Xd){var _nv=_av2();if(_id===0){_6X(_Zu2[0],_gv2);_NX(_Zu2[0],1,0);_hX(_Zu2[0],
0,0,0.2*_nv,0);_kX(_Zu2[0],1,0.5);_SX(_Zu2[0],_Ak(10.0/_nv),_Ak(12.0/_nv));_YW(_yV,_96,_a6,_Zu2[0],_Xd,1);}else if(_id==2){_6X(_Zu2[2],_gv2);_NX(_Zu2[2],1,0);_hX(_Zu2[2],0,0,0.6*_nv,0);_kX(_Zu2[2],1,0.5);_SX(_Zu2[2],_Ak(18.0/_nv),_Ak(20.0/_nv));_YW(_yV,_96,_a6,_Zu2[2],_Xd,1);}else {_6X(_Zu2[1],_gv2);_NX(_Zu2[1],1,0);_hX(_Zu2[1],0,0,0.35*_nv,0);_kX(_Zu2[1],1,0.5);_SX(_Zu2[1],_Ak(13.0/_nv),_Ak(15.0/_nv));_YW(_yV,_96,_a6,_Zu2[1],_Xd,1);}}function _iv2(_yV,_96,_a6,_id,_Xd){var _nv=_av2();if(_id===0){_6X(_2v2[1],
_jv2);_hX(_2v2[1],0.1,0.2,0,0);_8Y(_2v2[1],0.5*_nv,3.0*_nv,0.0,0.0);_dY(_2v2[1],0,360,0,0);_NX(_2v2[1],1,0.4);_SX(_2v2[1],_Ak(15.0/_nv),_Ak(25.0/_nv));_gY(_2v2[1],0.10*_nv,270);_YW(_yV,_96,_a6,_2v2[1],_Xd,75);}else if(_id==2){_6X(_2v2[1],_jv2);_hX(_2v2[1],0.1,0.2,0,0);_8Y(_2v2[1],0.5*_nv,8.0*_nv,0.0,0.0);_dY(_2v2[1],0,360,0,0);_NX(_2v2[1],1,0.4);_SX(_2v2[1],_Ak(30.0/_nv),_Ak(40.0/_nv));_gY(_2v2[1],0.17*_nv,270);_YW(_yV,_96,_a6,_2v2[1],_Xd,250);}else {_6X(_2v2[1],_jv2);_hX(_2v2[1],0.1,0.2,0,0);_8Y(_2v2[1],
0.5*_nv,6.0*_nv,0.0,0.0);_dY(_2v2[1],0,360,0,0);_NX(_2v2[1],1,0.4);_SX(_2v2[1],_Ak(20.0/_nv),_Ak(30.0/_nv));_gY(_2v2[1],0.15*_nv,270);_YW(_yV,_96,_a6,_2v2[1],_Xd,150);}}function _kv2(_yV,_96,_a6,_id,_Xd){var i;var _nv=_av2();if(_id===0){_6X(__u2[0],_ev2);_hX(__u2[0],0.2,0.4,-0.01*_nv,0);_NX(__u2[0],0.4,0);_SX(__u2[0],_Ak(25.0/_nv),_Ak(25.0/_nv));for(i=0;i<=5;i++){_YW(_yV,_96-5+_0T(10),_a6-5+_0T(10),__u2[0],_Xd,1);}}else if(_id===2){_6X(__u2[2],_ev2);_hX(__u2[2],0.4,1,-0.01*_nv,0);_NX(__u2[2],0.4,0);
_SX(__u2[2],_Ak(50.0/_nv),_Ak(50.0/_nv));for(i=0;i<=15;i++){_YW(_yV,_96-30+_0T(60),_a6-30+_0T(60),__u2[2],_Xd,1);}}else {_6X(__u2[1],_ev2);_hX(__u2[1],0.4,0.7,-0.01*_nv,0);_NX(__u2[1],0.4,0);_SX(__u2[1],_Ak(30.0/_nv),_Ak(30.0/_nv));for(i=0;i<=10;i++){_YW(_yV,_96-15+_0T(30),_a6-15+_0T(30),__u2[1],_Xd,1);}}}function _lv2(_yV,_96,_a6,_id,_Xd){var i;var _nv=_av2();if(_id===0){_6X(_3v2[0],_ev2);_hX(_3v2[0],0.2,0.4,-0.01*_nv,0);_NX(_3v2[0],0.4,0);_8Y(_3v2[0],3.0*_nv,4.0*_nv,0,0);_dY(_3v2[0],90,90,0,0);_SX(_3v2[0],
_Ak(25.0/_nv),_Ak(25.0/_nv));for(i=0;i<=5;i++){_YW(_yV,_96-5+_0T(10),_a6-5+_0T(10),_3v2[0],_Xd,1);}}else if(_id===2){_6X(_3v2[2],_ev2);_hX(_3v2[2],0.4,1,-0.01*_nv,0);_NX(_3v2[2],0.4,0);_8Y(_3v2[2],6.0*_nv,7.0*_nv,0,0);_dY(_3v2[2],90,90,0,0);_SX(_3v2[2],_Ak(50.0/_nv),_Ak(50.0/_nv));for(i=0;i<=15;i++){_YW(_yV,_96-30+_0T(60),_a6-30+_0T(60),_3v2[2],_Xd,1);}}else {_6X(_3v2[1],_ev2);_hX(_3v2[1],0.4,0.7,-0.01*_nv,0);_NX(_3v2[1],0.4,0);_8Y(_3v2[1],5.0*_nv,6.0*_nv,0,0);_dY(_3v2[1],90,90,0,0);_SX(_3v2[1],_Ak(30.0/_nv),
_Ak(30.0/_nv));for(i=0;i<=10;i++){_YW(_yV,_96-15+_0T(30),_a6-15+_0T(30),_3v2[1],_Xd,1);}}}function _mv2(_yV,_96,_a6,_id,_Xd){var _nv=_av2();if(_id===0){_6X(_4v2[0],_nv2);_hX(_4v2[0],0.4,0.3,-0.02*_nv,0);_3Y(_4v2[0],0,360,0,0,false);_SX(_4v2[0],_Ak(20/_nv),_Ak(20/_nv));_YW(_yV,_96,_a6,_4v2[0],_Xd,1);}else if(_id===2){_6X(_4v2[2],_nv2);_hX(_4v2[2],1.2,1.2,-0.04*_nv,0);_3Y(_4v2[2],0,360,0,0,false);_SX(_4v2[2],_Ak(30/_nv),_Ak(30/_nv));_YW(_yV,_96,_a6,_4v2[2],_Xd,1);}else {_6X(_4v2[1],_nv2);_hX(_4v2[1],0.75,
0.75,-0.03*_nv,0);_3Y(_4v2[1],0,360,0,0,false);_SX(_4v2[1],_Ak(25/_nv),_Ak(25/_nv));_YW(_yV,_96,_a6,_4v2[1],_Xd,1);}}function _ov2(_yV,_96,_a6,_id,_Xd){var _nv=_av2();if(_id===0){_6X(_5v2[0],_pv2);_hX(_5v2[0],0.4,0.4,-0.02*_nv,0);_3Y(_5v2[0],0,360,0,0,false);_SX(_5v2[0],_Ak(20/_nv),_Ak(20/_nv));_YW(_yV,_96,_a6,_5v2[0],_Xd,1);}else if(_id===2){_6X(_5v2[2],_pv2);_hX(_5v2[2],1.2,1.2,-0.04*_nv,0);_3Y(_5v2[2],0,360,0,0,false);_SX(_5v2[2],_Ak(30/_nv),_Ak(30/_nv));_YW(_yV,_96,_a6,_5v2[2],_Xd,1);}else {_6X(_5v2[1],
_pv2);_hX(_5v2[1],0.75,0.75,-0.03*_nv,0);_3Y(_5v2[1],0,360,0,0,false);_SX(_5v2[1],_Ak(25/_nv),_Ak(25/_nv));_YW(_yV,_96,_a6,_5v2[1],_Xd,1);}}function _qv2(_yV,_96,_a6,_id,_Xd){var _nv=_av2();if(_id===0){_6X(_6v2[0],_jv2);_hX(_6v2[0],0.4,0.4,-0.02*_nv,0);_3Y(_6v2[0],0,360,0,0,false);_SX(_6v2[0],_Ak(20/_nv),_Ak(20/_nv));_YW(_yV,_96,_a6,_6v2[0],_Xd,1);}else if(_id===2){_6X(_6v2[2],_jv2);_hX(_6v2[2],1.2,1.2,-0.04*_nv,0);_3Y(_6v2[2],0,360,0,0,false);_SX(_6v2[2],_Ak(30/_nv),_Ak(30/_nv));_YW(_yV,_96,_a6,_6v2[2],
_Xd,1);}else {_6X(_6v2[1],_jv2);_hX(_6v2[1],0.75,0.75,-0.03*_nv,0);_3Y(_6v2[1],0,360,0,0,false);_SX(_6v2[1],_Ak(25/_nv),_Ak(25/_nv));_YW(_yV,_96,_a6,_6v2[1],_Xd,1);}}function _rv2(_yV,_96,_a6,_id,_Xd){var _nv=_av2();if(_id===0){_6X(_7v2[0],_ev2);_hX(_7v2[0],2,2,0,0);_kX(_7v2[0],1,0.5);_PX(_7v2[0],0,0.3,0);_SX(_7v2[0],_Ak(100.0/_nv),_Ak(100.0/_nv));_YW(_yV,_96,_a6,_7v2[0],_Xd,1);}else if(_id===2){_6X(_7v2[2],_ev2);_hX(_7v2[2],8,8,0,0);_kX(_7v2[2],1,0.5);_PX(_7v2[2],0,0.3,0);_SX(_7v2[2],_Ak(100.0/_nv),
_Ak(100.0/_nv));_YW(_yV,_96,_a6,_7v2[2],_Xd,1);}else {_6X(_7v2[1],_ev2);_hX(_7v2[1],4,4,0,0);_kX(_7v2[1],1,0.5);_PX(_7v2[1],0,0.3,0);_SX(_7v2[1],_Ak(100.0/_nv),_Ak(100.0/_nv));_YW(_yV,_96,_a6,_7v2[1],_Xd,1);}}function _sv2(_yV,_96,_a6,_id,_Xd){var i;var _nv=_av2();_6X(_8v2,_tv2);_hX(_8v2,0.2,0.3,0.0,0.0);_3Y(_8v2,0,0,0,0,true);_8Y(_8v2,7*_nv,7*_nv,0,0);_dY(_8v2,260,260,0,0);_LX(_8v2,0.4);_SX(_8v2,_Ak(0.2*_c4._uF()/_nv),_Ak(0.2*_c4._uF()/_nv));if(_id===0){for(i=0;i<=1;i++){_YW(_yV,_0T(1)*1.2*_c4._tF(),
-30.0+_0T(20),_8v2,_Xd,1);}}else if(_id==2){for(i=0;i<=8;i++){_YW(_yV,_0T(1)*1.2*_c4._tF(),-30.0+_0T(20),_8v2,_Xd,1);}}else {for(i=0;i<=4;i++){_YW(_yV,_0T(1)*1.2*_c4._tF(),-30.0+_0T(20),_8v2,_Xd,1);}}}function _uv2(_yV,_96,_a6,_id,_Xd){var i;var _nv=_av2();_6X(_9v2,_vv2);_hX(_9v2,0.1,0.25,0.0,0.0);_LX(_9v2,0.6);_3Y(_9v2,0,360,0,0,false);_8Y(_9v2,2.5*_nv,3.0*_nv,0.0,0.0);_dY(_9v2,240,300,0,20);_SX(_9v2,_Ak(0.5*_c4._uF()/_nv),_Ak(0.5*_c4._uF()/_nv));if(_id===0){for(i=0;i<=0;i++){_YW(_yV,_0T(1)*1.2*_c4._tF()-60,
-30.0+_0T(20),_9v2,_Xd,1);}}else if(_id===2){for(i=0;i<=6;i++){_YW(_yV,_0T(1)*1.2*_c4._tF()-60,-30.0+_0T(20),_9v2,_Xd,1);}}else {for(i=0;i<=2;i++){_YW(_yV,_0T(1)*1.2*_c4._tF()-60,-30.0+_0T(20),_9v2,_Xd,1);}}}function _GY(_yV,_Xc,_96,_a6,_id,_Xd){_FY();switch(_Xc){case _Nu2:_dv2(_yV,_96,_a6,_id,_Xd);break;case _Ou2:_fv2(_yV,_96,_a6,_id,_Xd);break;case _Pu2:_hv2(_yV,_96,_a6,_id,_Xd);break;case _Qu2:_iv2(_yV,_96,_a6,_id,_Xd);break;case _Ru2:_kv2(_yV,_96,_a6,_id,_Xd);break;case _Su2:_lv2(_yV,_96,_a6,_id,_Xd);
break;case _Tu2:_mv2(_yV,_96,_a6,_id,_Xd);break;case _Uu2:_ov2(_yV,_96,_a6,_id,_Xd);break;case _Vu2:_qv2(_yV,_96,_a6,_id,_Xd);break;case _Wu2:_rv2(_yV,_96,_a6,_id,_Xd);break;case _Xu2:_sv2(_yV,_96,_a6,_id,_Xd);break;case _Yu2:_uv2(_yV,_96,_a6,_id,_Xd);break;}}var _wv2=false,_Xi1=false,_xv2=true;function _yv2(_vZ){if(_vZ){_wv2=true;}else {_Xi1=false;_wv2=false;if(_xv2){_zv2=false;}}}function _Av2(){if(window["page"]===undefined){_xv2=false;window.addEventListener("focus",function(){_yv2(false);});window.addEventListener("blur",
function(){_yv2(true);});window.addEventListener("click",function(){_yv2(false);});}}function _Bv2(){if(_wv2){_Xi1=true;_wv2=false;}else if(_Xi1){_Xi1=false;if(_xv2){_zv2=true;}}}function _Cv2(){var _XH,i,_Dv2;var _kg=null;if(_c4._lg){_kg=_c4._ng;}var _yk=_c4._0H._yk;var _c9=_Ev2++;for(var _Fv2=0;_Fv2<_yk.length;_Fv2++){var _Hx=_yk[_Fv2];var _Nx=_Hx._Nx;if(!_Hx.marked&&(_Hx._Gv2<=_c9)){if(_Nx._Hv2[_Iv2]){var _1J=false;if(sprite_exists(_Hx.sprite_index)||sprite_exists(_Hx.mask_index)){_XH=_Hx.__S();_1J=((_XH.right<0)||(_XH.left>_c4._tF())||(_XH.bottom<0)||(_XH.top>_c4._uF()));
}else {_1J=((_Hx.x<0)||(_Hx.x>_c4._tF())||(_Hx.y<0)||(_Hx.y>_c4._uF()));}if(_1J){if(!_Hx._Jv2){_Hx._w6(_Iv2,_nA,_Hx,_Hx);}}_Hx._Jv2=_1J;}if(_Nx._Hv2[_Kv2]){if(sprite_exists(_Hx.sprite_index)||sprite_exists(_Hx.mask_index)){_XH=_Hx.__S();if((_XH.left<0)||(_XH.right>_c4._tF())||(_XH.top<0)||(_XH.bottom>_c4._uF())){_Hx._w6(_Kv2,_nA,_Hx,_Hx);}}else {if((_Hx.x<0)||(_Hx.x>_c4._tF())||(_Hx.y<0)||(_Hx.y>_c4._uF())){_Hx._w6(_Kv2,_nA,_Hx,_Hx);}}}if(_kg){for(_Dv2=0;_Dv2<_kg.length;_Dv2++){var _Lv2=_kg[_Dv2];if(_Lv2.visible){
var _Mv2=_Lv2._0e1;var _Nv2=_Lv2._1e1;var _Ov2=_Lv2._0e1+_Lv2._2e1;var _Pv2=_Lv2._1e1+_Lv2._3e1;var _nt2=_de1._7t2(_Lv2._621);if(_nt2!=null){_Mv2=_nt2._Et2();_Nv2=_nt2._Gt2();_Ov2=_nt2._Et2()+_nt2._Ft2();_Pv2=_nt2._Gt2()+_nt2._Ht2();}if(_Nx._Hv2[_Qv2+_Dv2]){if(sprite_exists(_Hx.sprite_index)||sprite_exists(_Hx.mask_index)){_XH=_Hx.__S();if((_XH.right<_Mv2)||(_XH.left>_Ov2)||(_XH.bottom<_Nv2)||(_XH.top>_Pv2)){_Hx._w6(_Qv2+_Dv2,_nA,_Hx,_Hx);}}else {if((_Hx.x<_Mv2)||(_Hx.x>_Ov2)||(_Hx.y<_Nv2)||(_Hx.y>_Pv2)){
_Hx._w6(_Qv2+_Dv2,_nA,_Hx,_Hx);}}}if(_Nx._Hv2[_Rv2+_Dv2]){if(sprite_exists(_Hx.sprite_index)||sprite_exists(_Hx.mask_index)){var _Sv2=true;_XH=_Hx.__S();if((_XH.right<_Mv2)||(_XH.left>_Ov2)||(_XH.bottom<_Nv2)||(_XH.top>_Pv2)){_Sv2=false;}if((_XH.right<_Ov2)&&(_XH.left>_Mv2)&&(_XH.bottom<_Pv2)&&(_XH.top>_Nv2)){_Sv2=false;}if(_Sv2){_Hx._w6(_Rv2+_Dv2,_nA,_Hx,_Hx);}}else {}}}}}}}}function _Tv2(){for(var _V72 in _W72){if(!_W72.hasOwnProperty(_V72))continue;var _Uv2=_14._n6(_V72);var _Vv2=_Uv2._5_();var _c9=_Ev2++;
for(var _D62=0;_D62<_Vv2.length;_D62++){var _Wv2=_Vv2[_D62];if(!_Wv2.marked&&_Wv2.active&&(_Wv2._Gv2<=_c9)){var _Xv2=_W72[_V72];for(var _Yv2 in _Xv2){if(!_Xv2.hasOwnProperty(_Yv2))continue;var _AF1=_Xv2[_Yv2];var _Zv2=_14._n6(_AF1);var __v2=_Zv2._5_();for(var _E62=0;_E62<__v2.length;_E62++){var _0w2=__v2[_E62];if(!_0w2.marked&&_0w2.active&&(_0w2._Gv2<=_c9)){if((_Wv2._Nx==_0w2._Nx)&&(_E62<_D62))continue;if(_Wv2._RS(_0w2,true)){if((_Wv2.solid)||(_0w2.solid)){_Wv2.x=_Wv2.xprevious;_Wv2.y=_Wv2.yprevious;_Wv2._dI=true;
_Wv2.path_position=_Wv2.path_positionprevious;_0w2.x=_0w2.xprevious;_0w2.y=_0w2.yprevious;_0w2._dI=true;_0w2.path_position=_0w2.path_positionprevious;}_Wv2._w6(_H62,_0w2._Nx._ZI,_Wv2,_0w2);_0w2._w6(_H62,_Wv2._Nx._ZI,_0w2,_Wv2);if(_lS){if((_Wv2.solid)||(_0w2.solid)){_Wv2._r62();_0w2._r62();_Wv2._Rd(_Wv2.x+_Wv2.hspeed,_Wv2.y+_Wv2.vspeed);_0w2._Rd(_0w2.x+_0w2.hspeed,_0w2.y+_0w2.vspeed);if(_Wv2._RS(_0w2,true)){_Wv2.x=_Wv2.xprevious;_Wv2.y=_Wv2.yprevious;_Wv2._dI=true;_Wv2.path_position=_Wv2.path_positionprevious;
_0w2.x=_0w2.xprevious;_0w2.y=_0w2.yprevious;_0w2._dI=true;_0w2.path_position=_0w2.path_positionprevious;}}}}}}}}}}}function _1w2(){if(_c4){var _6a;var _c9=_Ev2;var _2w2=window_views_mouse_get_x();var _3w2=window_views_mouse_get_y();var _4w2=_14._QS();for(var _Dx=0;_Dx<_4w2.length;_Dx++){var _By=_4w2[_Dx];if(_By==undefined)continue;var _5w2=_By._Hv2;if(_5w2[_6w2]||_5w2[_7w2]||_5w2[_8w2]||_5w2[_9w2]||_5w2[_aw2]||_5w2[_bw2]||_5w2[_cw2]||_5w2[_dw2]||_5w2[_ew2]||_5w2[_fw2]||_5w2[_gw2]||_5w2[_hw2]||_5w2[_iw2]||_5w2[_jw2]){
if(_By._kw2.length>0){var _lw2=_By._kw2._yk.slice(0);for(var i=_lw2.length-1;i>=0;i--){var _9o=_lw2[i];if(!_9o.marked&&(_9o._Gv2<=_c9)){if(_9o._dI)_9o._eI();if(_9o._Vn(_2w2,_3w2,true)){var _mw2=true;for(_6a=0;_6a<3;_6a++){if(_Jg._Ve[_6a]){if(_5w2[_6w2+_6a]){_9o._w6(_6w2+_6a,0,_9o,_9o);}_mw2=false;}}for(_6a=0;_6a<3;_6a++){if(_Jg._Qe[_6a]===1){if(_5w2[_9w2+_6a]){_9o._w6(_9w2+_6a,0,_9o,_9o);}_mw2=false;}}for(_6a=0;_6a<3;_6a++){if(_Jg._Ue[_6a]===1){if(_5w2[_cw2+_6a]){_9o._w6(_cw2+_6a,0,_9o,_9o);}}}if(_mw2){
_9o._w6(_fw2,0,_9o,_9o);}if(!_9o._nw2){_9o._w6(_gw2,0,_9o,_9o);_9o._nw2=true;}}else {if(_9o._nw2){_9o._w6(_hw2,0,_9o,_9o);_9o._nw2=false;}}}}}}}for(_6a=0;_6a<3;_6a++){if(_Jg._Ve[_6a]){_Fx._w6(_ow2+_6a,0);}}for(_6a=0;_6a<3;_6a++){if(_Jg._Qe[_6a]===1){_Fx._w6(_pw2+_6a,0);}}for(_6a=0;_6a<3;_6a++){if(_Jg._Ue[_6a]===1){_Fx._w6(_qw2+_6a,0);}}if(_hJ){_Fx._w6(_iw2,0);}if(_iJ){_Fx._w6(_jw2,0);}}}function _rw2(){var _Ka,_La,_J6;var _yk=_c4._0H._yk;var _c9=_Ev2++;for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];
if(!_9o.marked&&(_9o.timeline_index>=0)&&(_9o._Gv2<=_c9)){if(!_9o._sw2){var _sA=_tA._n6(_9o.timeline_index);if((_sA!==null)&&(_sA!==undefined)){if(_9o.timeline_speed>0){_Ka=_sA._tw2(_9o.timeline_position);_9o.timeline_position+=_9o.timeline_speed;_La=_sA._tw2(_9o.timeline_position);for(_J6=_Ka;_J6<_La;_J6++){_oA(_9o,_9o,_9o.timeline_index,_J6);}if(_9o._uw2&&(_9o.timeline_position>_sA._rh1())){_9o.timeline_position=0;}}else {_Ka=_sA._vw2(_9o.timeline_position);_9o.timeline_position+=_9o.timeline_speed;
_La=_sA._vw2(_9o.timeline_position);for(_J6=_Ka;_J6>_La;_J6--){_oA(_9o,_9o,_9o.timeline_index,_J6);}if(_9o._uw2&&(_9o.timeline_position<0)){_9o.timeline_position=_sA._rh1();}}}}}}}function _ww2(){_xw2._yw2();_ih1._yw2();_zw2._Aw2(g_pBuiltIn.delta_time);_zw2._yw2();_xw2._Bw2();_ih1._Bw2();_zw2._Bw2();}function _Cw2(){var _yk=_c4._0H._yk;var _c9=_Ev2++;for(var _Hx=0;_Hx<_yk.length;_Hx++){var _9o=_yk[_Hx];if(!_9o.marked&&(_9o._Gv2<=_c9)){for(var _05=0;_05<_Dw2;_05++){var event=_Ew2|(_05+1);var _By=_9o._Nx;if(_By._Hv2[event]){
var _Fw2;_Fw2=~~(_9o.alarm[_05]);if(_Fw2>=0){_Fw2--;_9o.alarm[_05]=_Fw2;}if(_Fw2===0){_9o._w6(_Ew2|(_05+1),0,_9o,_9o);}}}}}}function _jA(_Y3,_gA){switch(_Y3){case _Gw2:return _II;case _Hw2:return _KI;case _Iw2:return _rI;case _Jw2:switch(_gA){case 0:return _Kw2;case 1:return _Lw2;case 2:return _Mw2;case 3:return _Nw2;case 4:return _Ow2;case 5:return _Pw2;case 6:return _Qw2;case 7:return _Rw2;case 8:return _Sw2;case 9:return _Tw2;case 10:return _Uw2;case 11:return _Vw2;default :return _Kw2;}break;case _Ww2:switch(_gA){case _Xw2:return _Yw2;
case _Zw2:return __w2;case _0x2:return _1x2;default :return __w2;}break;case _2x2:return _H62;case _3x2:switch(_gA){case _4x2:return _6w2;case _5x2:return _8w2;case _6x2:return _7w2;case _7x2:return _fw2;case _8x2:return _9w2;case _9x2:return _bw2;case _ax2:return _aw2;case _bx2:return _cw2;case _cx2:return _ew2;case _dx2:return _dw2;case _ex2:return _gw2;case _fx2:return _hw2;case _gx2:return 0;case _hx2:return 0;case _ix2:return 0;case _jx2:return 0;case _kx2:return 0;case _lx2:return 0;case _mx2:return 0;case _nx2:return 0;case _ox2:return 0;
case _px2:return 0;case _qx2:return 0;case _rx2:return 0;case _sx2:return 0;case _tx2:return 0;case _ux2:return 0;case _vx2:return 0;case _wx2:return 0;case _xx2:return 0;case _yx2:return 0;case _zx2:return 0;case _Ax2:return 0;case _Bx2:return 0;case _Cx2:return 0;case _Dx2:return 0;case _Ex2:return _ow2;case _Fx2:return _Gx2;case _Hx2:return _Ix2;case _Jx2:return _pw2;case _Kx2:return _Lx2;case _Mx2:return _Nx2;case _Ox2:return _qw2;case _Px2:return _Qx2;case _Rx2:return _Sx2;case _Tx2:return _iw2;case _Ux2:return _jw2;default :return 0;}break;case _EA:{
switch(_gA){case _Vx2:return _Iv2;case _Wx2:return _Kv2;case _Xx2:return _Yx2;case _Zx2:return __x2;case _0y2:return _1y2;case _2y2:return _3y2;case _4y2:return _5y2;case _6y2:return _7y2;case _8y2:return _s62;case _9y2:return _ay2;case _by2:return _cy2;case _dy2:return _Qv2;case _ey2:return _fy2;case _gy2:return _hy2;case _iy2:return _jy2;case _ky2:return _ly2;case _my2:return _ny2;case _oy2:return _py2;case _qy2:return _ry2;case _sy2:return _Rv2;case _ty2:return _uy2;case _vy2:return _wy2;case _xy2:return _yy2;case _zy2:return _Ay2;case _By2:return _Cy2;
case _Dy2:return _Ey2;case _Fy2:return _Gy2;case _DA:return _Hy2;case _Iy2:return _Jy2;case _Ky2:return _Ly2;case _My2:return _Ny2;case _Oy2:return _Py2;case _Qy2:return _Ry2;case _Sy2:return _Ty2;case _Uy2:return _Vy2;case _Wy2:return _Xy2;case _Yy2:return _Zy2;case __y2:return _0z2;case _1z2:return _2z2;case _3z2:return _4z2;case _5z2:return _6z2;case _7z2:return _8z2;case _9z2:return _az2;case _bz2:return _x6;case _cz2:return _34;case _dz2:return _ez2;case _fz2:return _gz2;case _hz2:return _iz2;case _jz2:return _kz2;case _lz2:return _mz2;case _nz2:return _oz2;
case _pz2:return _qz2;case _rz2:return _sz2;case _tz2:return _691;case _uz2:return _vz2;case _wz2:return _xz2;case _yz2:return _n71;case _zz2:return _Az2;default :return 0;}}case _Bz2:return _Cz2|_gA;case _Dz2:return _Ez2;case _Fz2:return _Gz2;case _Hz2:return _Iz2;case _Jz2:return _Kz2;case _Lz2:switch(_gA){case _Mz2:return _Nz2;case _Oz2:return _Pz2;case _Qz2:return _Rz2;case _Sz2:return _Tz2;case _Uz2:return _Vz2;case _Wz2:return _Xz2;case _Yz2:return _Zz2;case __z2:return _0A2;case _1A2:return _2A2;case _3A2:return _4A2;case _5A2:return _6A2;
case _7A2:return _8A2;case _9A2:return _aA2;case _bA2:return _cA2;case _dA2:return _eA2;case _fA2:return _gA2;case _hA2:return _iA2;case _jA2:return _kA2;case _lA2:return _mA2;case _nA2:return _oA2;case _pA2:return _qA2;case _rA2:return _sA2;case _tA2:return _uA2;case _vA2:return _wA2;case _xA2:return _yA2;case _zA2:return _AA2;default :return 0;}break;case _BA2:return _HI;default :return 0;}}function _kA(_Y3,_gA){switch(_Y3){case _2x2:case _Jz2:case _Dz2:case _Fz2:case _Hz2:{return _gA;}}return 0;}var _CA2=0;var _DA2=1;var _EA2=2;var _FA2=3;
var _GA2=4;var _HA2=5;function _IA2(){this._JA2=[new _KA2(),new _KA2(),new _KA2(),new _KA2(),new _KA2(),new _KA2(),];}/*
 * Initializes frustum planes from a view-projection matrix.
 * 
 * @param {Matrix} vp The view-projection matrix.
 */_IA2.prototype._zF=function(_LA2){var __D=new _Er(_LA2._e7[0],_LA2._e7[4],_LA2._e7[8]);var _sE=new _Er(_LA2._e7[1],_LA2._e7[5],_LA2._e7[9]);var _D82=new _Er(_LA2._e7[2],_LA2._e7[6],_LA2._e7[10]);var _E82=new _Er(_LA2._e7[3],_LA2._e7[7],_LA2._e7[11]);this._JA2[_CA2].Normal=_E82._Vf(__D);
this._JA2[_DA2].Normal=_E82._lF(__D);this._JA2[_FA2].Normal=_E82._Vf(_sE);this._JA2[_EA2].Normal=_E82._lF(_sE);this._JA2[_GA2].Normal=_D82;this._JA2[_HA2].Normal=_E82._lF(_D82);var _MA2=_LA2._e7[12];var _NA2=_LA2._e7[13];var _OA2=_LA2._e7[14];var _PA2=_LA2._e7[15];this._JA2[_CA2]._G32=_PA2+_MA2;this._JA2[_DA2]._G32=_PA2-_MA2;this._JA2[_FA2]._G32=_PA2+_NA2;this._JA2[_EA2]._G32=_PA2-_NA2;this._JA2[_GA2]._G32=_OA2;this._JA2[_HA2]._G32=_PA2-_OA2;for(var i=0;i<6;++i){this._JA2[i]._Nr();}};/*
 * Tests whether a sphere intersects with the frustum.
 * @param {Vector3} position The origin of the sphere.
 * @param {Number} radius The sphere's radius.
 * @returns True if the sphere intersects with the frustum.
 */_IA2.prototype._QA2=function(position,
_K01){for(var i=0;i<6;++i){var _RA2=this._JA2[i];var _ho=(position._SA2(_RA2.Normal))+_RA2._G32;if(_ho<-_K01){return false;}}return true;};function _TA2(){this.__type="global";}var _u7=3.14159265,_UA2=true,_VA2=false,_Q81=true,_WA2=0,_XA2=-1,_YA2=0,_ZA2=1,__A2=2,_eG=0,_0B2=-1,_1B2=0,_fG=1,_2B2=2,_3B2=3,_4B2=4,_q51=5,_5B2=6,_6B2=7,_7B2=8,_8B2=9,_9B2=10,_aB2=11,_d51=0,_bB2=-1,_cB2=0,_dB2=0,_eB2=1,_fB2=2,_e51=3,_gB2=4,_hB2=5,_iB2=6,_jB2=7,_kB2=8,_lB2=9,_mB2=0,_nB2=-1,_D21=-100,_E21=-200,_oB2=-300,_pB2=-400,
_rT=-1,_qB2=-2,__I=-3,_Sn=-4,_rB2=-5,_sB2=-7,_tB2=-6,_II=0x000,_KI=0x100,_Ew2=0x200,_uB2=0x300,_H62=0x400,_Ez2=0x500,_vB2=0x600,_nA=0x700,_Cz2=0x800,_Gz2=0x900,_Iz2=0xA00,_Kz2=0xB00,_rI=0xC00,_wB2=0xD00,_HI=0xE00,_xB2=0xF00,__w2=_uB2|1,_Yw2=_uB2|2,_1x2=_uB2|3,_Iv2=_nA|1,_Kv2=_nA|2,_Yx2=_nA|3,__x2=_nA|4,_1y2=_nA|5,_3y2=_nA|6,_5y2=_nA|7,_7y2=_nA|8,_s62=_nA|9,_ay2=_nA|10,_cy2=_nA|11,_Hy2=_nA|14,_Jy2=_nA|15,_Ly2=_nA|16,_Ny2=_nA|17,_Py2=_nA|18,_Ry2=_nA|19,_Ty2=_nA|20,_Vy2=_nA|21,_Xy2=_nA|22,_Zy2=_nA|23,
_0z2=_nA|24,_2z2=_nA|25,_4z2=_nA|26,_6z2=_nA|27,_8z2=_nA|28,_az2=_nA|29,_Qv2=_nA|30,_fy2=_nA|31,_hy2=_nA|32,_jy2=_nA|33,_ly2=_nA|34,_ny2=_nA|35,_py2=_nA|36,_ry2=_nA|37,_Rv2=_nA|40,_uy2=_nA|41,_wy2=_nA|42,_yy2=_nA|43,_Ay2=_nA|44,_Cy2=_nA|45,_Ey2=_nA|46,_Gy2=_nA|47,_x6=_nA|58,_34=_nA|59,_ez2=_nA|60,_gz2=_nA|61,_iz2=_nA|62,_kz2=_nA|63,_oz2=_nA|68,_yB2=_Cz2|64,_zB2=_Cz2|65,_AB2=_Cz2|72,_BB2=_Cz2|73,_CB2=_Cz2|74,_DB2=_Cz2|75,_EB2=_Cz2|76,_FB2=_Cz2|77,_mz2=_nA|66,_qz2=_nA|70,_sz2=_nA|71,_691=_nA|72,_0a1=_nA|73,
_vz2=_nA|74,_xz2=_nA|80,_n71=_nA|75,_Az2=_nA|76,_6w2=_vB2|1,_8w2=_vB2|2,_7w2=_vB2|3,_9w2=_vB2|4,_bw2=_vB2|5,_aw2=_vB2|6,_cw2=_vB2|7,_ew2=_vB2|8,_dw2=_vB2|9,_ow2=_vB2|10,_Gx2=_vB2|11,_Ix2=_vB2|12,_pw2=_vB2|13,_Lx2=_vB2|14,_Nx2=_vB2|15,_qw2=_vB2|16,_Qx2=_vB2|17,_Sx2=_vB2|18,_fw2=_vB2|19,_gw2=_vB2|20,_hw2=_vB2|21,_iw2=_vB2|22,_jw2=_vB2|23,_Kw2=_Ew2|1,_Lw2=_Ew2|2,_Mw2=_Ew2|3,_Nw2=_Ew2|4,_Ow2=_Ew2|5,_Pw2=_Ew2|6,_Qw2=_Ew2|7,_Rw2=_Ew2|8,_Sw2=_Ew2|9,_Tw2=_Ew2|10,_Uw2=_Ew2|11,_Vw2=_Ew2|12,_Nz2=_wB2|1,_Pz2=_wB2|2,
_Rz2=_wB2|3,_Tz2=_wB2|4,_Vz2=_wB2|5,_Xz2=_wB2|6,_Zz2=_wB2|7,_0A2=_wB2|8,_2A2=_wB2|9,_4A2=_wB2|10,_6A2=_wB2|11,_8A2=_wB2|12,_aA2=_wB2|13,_cA2=_wB2|65,_eA2=_wB2|66,_gA2=_wB2|67,_iA2=_wB2|68,_kA2=_wB2|69,_mA2=_wB2|70,_oA2=_wB2|71,_qA2=_wB2|72,_sA2=_wB2|73,_uA2=_wB2|74,_wA2=_wB2|75,_yA2=_wB2|76,_AA2=_wB2|77,_Gw2=0,_Hw2=1,_Jw2=2,_Ww2=3,_2x2=4,_Dz2=5,_3x2=6,_EA=7,_Bz2=8,_Fz2=9,_Hz2=10,_Jz2=11,_Iw2=12,_Lz2=13,_BA2=14,_DA=10,_Iy2=11,_Ky2=12,_My2=13,_Oy2=14,_Qy2=15,_Sy2=16,_Uy2=17,_Wy2=18,_Yy2=19,__y2=20,
_1z2=21,_3z2=22,_5z2=23,_7z2=24,_9z2=25,_4x2=0,_5x2=1,_6x2=2,_7x2=3,_8x2=4,_9x2=5,_ax2=6,_bx2=7,_cx2=8,_dx2=9,_ex2=10,_fx2=11,_gx2=16,_hx2=17,_ix2=18,_jx2=19,_kx2=21,_lx2=22,_mx2=23,_nx2=24,_ox2=25,_px2=26,_qx2=27,_rx2=28,_sx2=31,_tx2=32,_ux2=33,_vx2=34,_wx2=36,_xx2=37,_yx2=38,_zx2=39,_Ax2=40,_Bx2=41,_Cx2=42,_Dx2=43,_Ex2=50,_Fx2=51,_Hx2=52,_Jx2=53,_Kx2=54,_Mx2=55,_Ox2=56,_Px2=57,_Rx2=58,_Tx2=60,_Ux2=61,_Mz2=0,_Oz2=1,_Qz2=2,_Sz2=3,_Uz2=4,_Wz2=5,_Yz2=6,__z2=7,_1A2=8,_3A2=9,_5A2=10,_7A2=11,_9A2=12,
_bA2=64,_dA2=65,_fA2=66,_hA2=67,_jA2=68,_lA2=69,_nA2=70,_pA2=71,_rA2=72,_tA2=73,_vA2=74,_xA2=75,_zA2=76,_Zw2=0,_Xw2=1,_0x2=2,_Vx2=0,_Wx2=1,_Xx2=2,_Zx2=3,_0y2=4,_2y2=5,_4y2=6,_6y2=7,_8y2=8,_9y2=9,_by2=30,_dy2=40,_ey2=41,_gy2=42,_iy2=43,_ky2=44,_my2=45,_oy2=46,_qy2=47,_sy2=50,_ty2=51,_vy2=52,_xy2=53,_zy2=54,_By2=55,_Dy2=56,_Fy2=57,_bz2=58,_cz2=59,_dz2=60,_fz2=61,_hz2=62,_jz2=63,_GB2=64,_HB2=65,_lz2=66,_nz2=68,_pz2=70,_rz2=71,_tz2=72,_uz2=74,_wz2=80,_yz2=75,_zz2=76,_IB2=_Gz2|0,_JB2=_Gz2|1,_KB2=_Gz2|1,
_LB2=_Gz2|8,_MB2=_Gz2|9,_NB2=_Gz2|13,_OB2=_Gz2|16,_PB2=_Gz2|17,_QB2=_Gz2|18,_RB2=_Gz2|19,_SB2=_Gz2|27,_TB2=_Gz2|32,_UB2=_Gz2|33,_VB2=_Gz2|34,_WB2=_Gz2|35,_XB2=_Gz2|36,_YB2=_Gz2|37,_ZB2=_Gz2|38,__B2=_Gz2|39,_0C2=_Gz2|40,_1C2=_Gz2|45,_2C2=_Gz2|46,_3C2=_Gz2|48,_4C2=_Gz2|49,_5C2=_Gz2|50,_6C2=_Gz2|51,_7C2=_Gz2|52,_8C2=_Gz2|53,_9C2=_Gz2|54,_aC2=_Gz2|55,_bC2=_Gz2|56,_cC2=_Gz2|57,_dC2=_Gz2|65,_eC2=_Gz2|66,_fC2=_Gz2|67,_gC2=_Gz2|68,_hC2=_Gz2|69,_iC2=_Gz2|70,_jC2=_Gz2|71,_kC2=_Gz2|72,_lC2=_Gz2|73,_mC2=_Gz2|74,
_nC2=_Gz2|75,_oC2=_Gz2|76,_pC2=_Gz2|77,_qC2=_Gz2|78,_rC2=_Gz2|79,_sC2=_Gz2|80,_tC2=_Gz2|81,_uC2=_Gz2|82,_vC2=_Gz2|83,_wC2=_Gz2|84,_xC2=_Gz2|85,_yC2=_Gz2|86,_zC2=_Gz2|87,_AC2=_Gz2|88,_BC2=_Gz2|89,_CC2=_Gz2|90,_DC2=_Gz2|112,_EC2=_Gz2|113,_FC2=_Gz2|114,_GC2=_Gz2|115,_HC2=_Gz2|116,_IC2=_Gz2|117,_JC2=_Gz2|118,_KC2=_Gz2|119,_LC2=_Gz2|120,_MC2=_Gz2|121,_NC2=_Gz2|122,_OC2=_Gz2|123,_PC2=_Gz2|145,_QC2=_Gz2|186,_RC2=_Gz2|187,_SC2=_Gz2|188,_TC2=_Gz2|189,_UC2=_Gz2|190,_VC2=_Gz2|191,_WC2=_Gz2|192,_XC2=_Gz2|219,
_YC2=_Gz2|220,_ZC2=_Gz2|221,__C2=_Gz2|222,_0D2=_Gz2|223,_1D2=_Gz2|144,_2D2=_Gz2|96,_3D2=_Gz2|97,_4D2=_Gz2|98,_5D2=_Gz2|99,_6D2=_Gz2|100,_7D2=_Gz2|101,_8D2=_Gz2|102,_9D2=_Gz2|103,_aD2=_Gz2|104,_bD2=_Gz2|105,_cD2=_Gz2|106,_dD2=_Gz2|107,_eD2=_Gz2|109,_fD2=_Gz2|110,_gD2=_Gz2|111,_hD2=_Ez2|0,_iD2=_Ez2|1,_jD2=_Ez2|1,_kD2=_Ez2|8,_lD2=_Ez2|9,_mD2=_Ez2|13,_nD2=_Ez2|16,_oD2=_Ez2|17,_pD2=_Ez2|18,_qD2=_Ez2|19,_rD2=_Ez2|27,_sD2=_Ez2|32,_tD2=_Ez2|33,_uD2=_Ez2|34,_vD2=_Ez2|35,_wD2=_Ez2|36,_xD2=_Ez2|37,_yD2=_Ez2|38,
_zD2=_Ez2|39,_AD2=_Ez2|40,_BD2=_Ez2|45,_CD2=_Ez2|46,_DD2=_Ez2|48,_ED2=_Ez2|49,_FD2=_Ez2|50,_GD2=_Ez2|51,_HD2=_Ez2|52,_ID2=_Ez2|53,_JD2=_Ez2|54,_KD2=_Ez2|55,_LD2=_Ez2|56,_MD2=_Ez2|57,_ND2=_Ez2|65,_OD2=_Ez2|66,_PD2=_Ez2|67,_QD2=_Ez2|68,_RD2=_Ez2|69,_SD2=_Ez2|70,_TD2=_Ez2|71,_UD2=_Ez2|72,_VD2=_Ez2|73,_WD2=_Ez2|74,_XD2=_Ez2|75,_YD2=_Ez2|76,_ZD2=_Ez2|77,__D2=_Ez2|78,_0E2=_Ez2|79,_1E2=_Ez2|80,_2E2=_Ez2|81,_3E2=_Ez2|82,_4E2=_Ez2|83,_5E2=_Ez2|84,_6E2=_Ez2|85,_7E2=_Ez2|86,_8E2=_Ez2|87,_9E2=_Ez2|88,_aE2=_Ez2|89,
_bE2=_Ez2|90,_cE2=_Ez2|112,_dE2=_Ez2|113,_eE2=_Ez2|114,_fE2=_Ez2|115,_gE2=_Ez2|116,_hE2=_Ez2|117,_iE2=_Ez2|118,_jE2=_Ez2|119,_kE2=_Ez2|120,_lE2=_Ez2|121,_mE2=_Ez2|122,_nE2=_Ez2|123,_oE2=_Ez2|145,_pE2=_Ez2|186,_qE2=_Ez2|187,_rE2=_Ez2|188,_sE2=_Ez2|189,_tE2=_Ez2|190,_uE2=_Ez2|191,_vE2=_Ez2|192,_wE2=_Ez2|219,_xE2=_Ez2|220,_yE2=_Ez2|221,_zE2=_Ez2|222,_AE2=_Ez2|223,_BE2=_Ez2|144,_CE2=_Ez2|96,_DE2=_Ez2|97,_EE2=_Ez2|98,_FE2=_Ez2|99,_GE2=_Ez2|100,_HE2=_Ez2|101,_IE2=_Ez2|102,_JE2=_Ez2|103,_KE2=_Ez2|104,_LE2=_Ez2|105,
_ME2=_Ez2|106,_NE2=_Ez2|107,_OE2=_Ez2|109,_PE2=_Ez2|110,_QE2=_Ez2|111,_RE2=_Iz2|0,_SE2=_Iz2|1,_TE2=_Iz2|1,_UE2=_Iz2|8,_VE2=_Iz2|9,_WE2=_Iz2|13,_XE2=_Iz2|16,_YE2=_Iz2|17,_ZE2=_Iz2|18,__E2=_Iz2|19,_0F2=_Iz2|27,_1F2=_Iz2|32,_2F2=_Iz2|33,_3F2=_Iz2|34,_4F2=_Iz2|35,_5F2=_Iz2|36,_6F2=_Iz2|37,_7F2=_Iz2|38,_8F2=_Iz2|39,_9F2=_Iz2|40,_aF2=_Iz2|45,_bF2=_Iz2|46,_cF2=_Iz2|48,_dF2=_Iz2|49,_eF2=_Iz2|50,_fF2=_Iz2|51,_gF2=_Iz2|52,_hF2=_Iz2|53,_iF2=_Iz2|54,_jF2=_Iz2|55,_kF2=_Iz2|56,_lF2=_Iz2|57,_mF2=_Iz2|65,_nF2=_Iz2|66,
_oF2=_Iz2|67,_pF2=_Iz2|68,_qF2=_Iz2|69,_rF2=_Iz2|70,_sF2=_Iz2|71,_tF2=_Iz2|72,_uF2=_Iz2|73,_vF2=_Iz2|74,_wF2=_Iz2|75,_xF2=_Iz2|76,_yF2=_Iz2|77,_zF2=_Iz2|78,_AF2=_Iz2|79,_BF2=_Iz2|80,_CF2=_Iz2|81,_DF2=_Iz2|82,_EF2=_Iz2|83,_FF2=_Iz2|84,_GF2=_Iz2|85,_HF2=_Iz2|86,_IF2=_Iz2|87,_JF2=_Iz2|88,_KF2=_Iz2|89,_LF2=_Iz2|90,_MF2=_Iz2|112,_NF2=_Iz2|113,_OF2=_Iz2|114,_PF2=_Iz2|115,_QF2=_Iz2|116,_RF2=_Iz2|117,_SF2=_Iz2|118,_TF2=_Iz2|119,_UF2=_Iz2|120,_VF2=_Iz2|121,_WF2=_Iz2|122,_XF2=_Iz2|123,_YF2=_Iz2|145,_ZF2=_Iz2|186,
__F2=_Iz2|187,_0G2=_Iz2|188,_1G2=_Iz2|189,_2G2=_Iz2|190,_3G2=_Iz2|191,_4G2=_Iz2|192,_5G2=_Iz2|219,_6G2=_Iz2|220,_7G2=_Iz2|221,_8G2=_Iz2|222,_9G2=_Iz2|223,_aG2=_Iz2|144,_bG2=_Iz2|96,_cG2=_Iz2|97,_dG2=_Iz2|98,_eG2=_Iz2|99,_fG2=_Iz2|100,_gG2=_Iz2|101,_hG2=_Iz2|102,_iG2=_Iz2|103,_jG2=_Iz2|104,_kG2=_Iz2|105,_lG2=_Iz2|106,_mG2=_Iz2|107,_nG2=_Iz2|109,_oG2=_Iz2|110,_pG2=_Iz2|111,_qG2=0,_rG2=1,_sG2=2,_tG2=[],_Dw2=12,_uG2=8,_vG2=8,_wG2=8,__z=10,_cE=0x000000,_xG2=0x000080,_yG2=0x008000,_zG2=0x008080,_AG2=0x800000,
_BG2=0x800080,_CG2=0x808000,_DG2=0x808080,_EG2=0xC0C0C0,_y12=0x0000FF,_FG2=0x00FF00,_GG2=0x00FFFF,_z12=0xFF0000,_HG2=0xFF00FF,_IG2=0xFFFF00,_JG2=0xC0C0C0,_KG2=0x808080,_Om=0xFFFFFF,_LG2=0xC0DCC0,_MG2=0xF0CAA6,_NG2=0xF0FBFF,_OG2=0xA4A0A0,_PG2=-1,_da1=0,__41=1,_3f1=0,_DT1=1,_ET1=2,_FT1=3,_GT1=4,_HT1=5,_cm=6,_IT1=7,_JT1=8,_Ve1=9,_We1=10,_Xe1=11,_Ye1=12,_Ze1=13,__e1=14,_0f1=15,global=null,_14=null,_Fx=null,_Jg=null,_uC=null,g_pBuiltIn=null,_aw=null,_QG2=null,_yC=null,_Fw=null,_0m=null,_m6=null,_RG2=null,
_bo=null,_aQ=null,_de1=null,_W72=null,_vC=null,_tA=null,_Cl=null,_xC=null,_Of1=null,_Uf=null,_SG2=null,_c4=null,_TG2=null,_mg=null,_UG2=null,_VG2=null,_CV=null,_wV=null,_2j=null,_il=null,_wG=null,_gk=null,_wl=null,_4k=null,_W7=null,_vl=null,_dm=null,_WG2=null,_Fi1=null,_1A=null,_3A=null,_XG2=null,_JA=null,_KA=null,_u9=null,_3y=null,_qg=null,_5F=null,_FF=null,_YG2=null,_ZG2=null,__G2=null,_0H2=null,_1H2=null,_ju2=null,_Ce1=null,_2H2=null,_Wd1=null,_Yd1=null,_Nd1=-1,_Od1=-1,_Pd1=[],_Qd1=[],g_gmlConst=null,
_w51=null;_651=null,g_WebAudioContext=null,_sx=null,_1x=null,_3H2=null,_ri1=null,_4H2=null,g_GameMakerHTML5Dir=undefined,_5H2=undefined,_6H2=undefined,gml_Script_gmcallback_html5_set_load_location=undefined,_7H2="",g_yyPrePostObject__=undefined,_Z41=_da1,_EE=true,_9y=false,_zv2=false,_xh1=false,_b71=false,_a71=false,_F81=false,_6w=false,_8H2=false,_9H2=false,_aH2=false,_bH2=false,_iA=false,_cH2=false,_3x=false,_dH2=false,_eH2=false,_fH2=false,_gH2=0,_z21=0,_hH2=0,_iH2=0,_jH2=0,_kH2=0,_Yh1=0,_Zh1=0,
_0i1=0,_1i1=0,__h1=0,_2i1=0,_Ui=0,_CI=0,_lH2=0,_3d=0,_4d=0,_dz=0,_xD=0,_wD=0,_TD=0,_VD=0,_3i1=0,_4i1=0,_mH2=0,_nH2=0,_oH2=0,_Tw=0,_pH2=0,_GA=0,_HA=0,_IA=0,_lz=0,_mz=0,_1G=0,_qH2=0,_rH2=0,_sH2=0,_tH2=0,_Th1=0,_uH2=0,_Ir=0,_lS=false,_Sh1=0,_vH2=0,_wH2=0,_1D=0,_ZC=0,_3D=false,_4D=-1,_5D=-1,_2D=1,__C=1,_BF=true,_wF=true,_yF=new _IA2(),cr_default=0,cr_none=0,cr_arrow=0,cr_cross=0,cr_beam=0,cr_size_nesw=0,cr_size_ns=0,cr_size_nwse=0,cr_size_we=0,cr_uparrow=0,cr_hourglass=0,cr_drag=0,_Lh1=0,_Mh1=0,_Nh1=0,
_Oh1=0,_Ph1=0,_Qh1=0,cr_appstart=0,_Rh1=0,cr_handpoint=0,cr_size_all=0,c_black=0,c_white=0,c_red=0,c_green=0,c_blue=0,_xH2=0,_yH2=0,_zH2=0,_AH2=0,_BH2=0,_e4=0,_CH2=[],_Zw='canvas',_DH2='0123456789ABCDEF';function compile_if_used(){}function compile_if_weak_ref(_EH2,_FH2){}function _GH2(){var debug=false;if((_aw.Options)&&(_aw.Options.debugMode)&&(_aw.Options.debugMode===true)){debug=true;}}function _HH2(){_CH2=[];var _IH2=0xEDB88320;for(var i=0;i<256;++i){var _JH2=~~i;for(var _J6=8;_J6>0;--_J6){if((_JH2&1)!==0){
_JH2=((_JH2>>1)&0x7fffffff)^_IH2;}else {_JH2>>=1;_JH2&=0x7fffffff;}}_CH2[i]=_JH2;}}function _KH2(_xU1){var _LH2=0xffffffff;for(var i=0;i<_xU1.length;i++){_LH2=((_LH2>>8)&0x00ffffff)^_CH2[(_LH2^_xU1[i])&0xff];}return _LH2;}function _MH2(){_HH2();_NH2();if(_Z41!=_PG2){try{var _OH2=new Audio();_OH2.controls=false;_b71=!!_OH2.canPlayType&&_OH2.canPlayType('audio/mpeg')!=="";_a71=!!_OH2.canPlayType&&_OH2.canPlayType('audio/ogg; codecs="vorbis"')!=="";_OH2=null;}catch(e){_b71=false;_a71=false;}}if(_b71)debug("Browser CAN play MP3");
if(_a71)debug("Browser CAN play OGG");_GH2();_3H2=_gH2=0;_c4=null;_zv2=false;_z21=-1;_ZG2=new _PH2();__G2=new _PH2();_TG2=new _PH2();_4H2=new _PH2();_0H2=new _PH2();_FF=new _yx();_5F=new _yx();_YG2=new _yx();_TG2.visible=true;_4H2.visible=true;_mg=[];_mg[0]=_TG2;_QH2=[];_VG2=[];_CV=[];_wV=[];_2j=new _hZ(5);_il=new _hZ(5);_wG=new _hZ(5);_gk=new _hZ(5);_wl=new _hZ(5);_4k=new _hZ(5);_W7=new _hZ(5);_dm=new _hZ(5);_vl=new _hZ(5);_WG2=new _im();_3y=new _hZ(5);_qg=new _yx();_ju2=new _BI(0,0,0,0,false,true);_ju2._RH2="DUMMY INSTANCE";
_tG2[0]=-1;_tG2[1]=0;_tG2[2]=0x00000000;_tG2[3]=1;_tG2[4]=0;_tG2[5]=0x00000000;_tG2[6]=0;_tG2[7]=-1;_tG2[8]=0x00000000;_tG2[9]=0;_tG2[10]=1;_tG2[11]=0x00000000;_tG2[12]=0;_tG2[13]=0;_tG2[14]=0xffffffff;_Zw="canvas";_u9="html5game/";if(typeof(g_GameMakerHTML5Dir)!="undefined"){_u9=g_GameMakerHTML5Dir;}else {if(_aw.Options&&_aw.Options.GameDir){_u9=_aw.Options.GameDir+'/';}}_Fi1=[];_1A=[];_0A=[];_3A="<Nobody>";highscore_clear();_1D=-1;_ZC=-1;_dm._SH2();_Ui=0.0000001;_tH2=512;_sx=[];_9H2=_eH2=false;
_EE=true;_3x=false;_Wd1=_Yd1=_pH2=null;_GA=_HA=-1;_1G=0;_lH2=1.0;_hH2=0;_iH2=-1;_jH2=0;_Tw=0;_kH2=0;_oH2=10000000;_CI=100000;_3d=1.0;draw_set_color(_aw.Options.DrawColour);c_black=_yD(0x000000);c_white=_yD(0xffffff);c_red=_yD(0x0000ff);c_green=_yD(0x00ff00);c_blue=_yD(0xff0000);_xH2=_yD(0xff000000);_yH2=_yD(0xffffffff);_zH2=_yD(0xff0000ff);_AH2=_yD(0xff00ff00);_BH2=_yD(0xffff0000);cr_default=0;cr_none=-1;cr_arrow=-2;cr_cross=-3;cr_beam=-4;cr_size_nesw=-6;cr_size_ns=-7;cr_size_nwse=-8;cr_size_we=-9;
cr_uparrow=-10;cr_hourglass=-11;cr_drag=-12;_Lh1=-13;_Mh1=-14;_Nh1=-15;_Oh1=-16;_Ph1=-17;_Qh1=-18;cr_appstart=-19;_Rh1=-20;cr_handpoint=-21;cr_size_all=-22;_vH2=-1;_Sh1=_aw.Options.showCursor?cr_default:cr_none;_wH2=0;_TH2();if(_aw.Options&&_aw.Options.showCursor===false){canvas.style.cursor="none";}_bH2=false;if(_aw.Options&&_aw.Options.CreateEventOrder===true){_bH2=true;}if(typeof gmlGlobalInit=='function'){gmlGlobalInit();}}function _UH2(_VH2){return((_VH2*Math.PI)/180.0);}function _WH2(_96,_a6){
if(_96===0)return 0;var _s7=((_96*0x1000000)%(_a6*0x1000000));_s7=_s7/0x1000000;return _s7;}function _CQ(_96){return _96*_96;}function _yD(_Xd){var _55="rgb("+((_Xd>>16)&0xff).toString()+","+((_Xd>>8)&0xff).toString()+","+(_Xd&0xff).toString()+")";return _55;}function _om(_Xd,_ga){var _55="rgba("+((_Xd>>16)&0xff).toString()+","+((_Xd>>8)&0xff).toString()+","+(_Xd&0xff).toString()+","+((_ga*255.0)&0xff).toString()+")";return _55;}function _XH2(_VH2){return _u7*_VH2/180.0;}function _6d(_Xd){return(((_Xd&0xff)<<16)|(_Xd&0xff00)|((_Xd&0xff0000)>>16));
}function _Uz(_YH2){var _ZH2=get_timer();while(_YH2>0){var __H2=get_timer();_YH2-=(__H2-_ZH2);_ZH2=__H2;}}function _Rn(_Pn,_ck,_Qn,_3_){var _yk,_9o,_Hx,_Y4;var _05=arguments;var _mk=arguments.length;var _0I2=_05[_mk-1];_ck=~~_ck;if(_ck==_Sn)return _3_;if(_ck==__I){_yk=_Fx._QS();for(_Hx=0;_Hx<_yk.length;_Hx++){_9o=_yk[_Hx];if((_Qn)&&(_9o==_Pn))continue;if(_9o.marked)continue;if(!_9o.active)continue;_Y4=_0I2(_9o);if(_Y4 instanceof _Zn)_Y4=yyGetInt32(_Y4);if(_Y4>0)return _Y4;}}else if(_ck<100000){var _By=_14._n6(_ck);
if(_By===null){return _3_;}_yk=_By._5_();for(_Hx=0;_Hx<_yk.length;_Hx++){_9o=_yk[_Hx];if((_Qn)&&(_Pn==_9o))continue;if(_9o.marked)continue;if(!_9o.active)continue;_Y4=_0I2(_9o);if(_Y4 instanceof _Zn)_Y4=yyGetInt32(_Y4);if(_Y4>0)return _Y4;}}else {_9o=_Fx._1I2(_ck);if((_Qn)&&(_Pn==_9o)){return _3_;}if(_9o.marked){return _3_;}if(!_9o.active){return _3_;}_Y4=_0I2(_9o);if(_Y4 instanceof _Zn)_Y4=yyGetInt32(_Y4);return _Y4;}return _3_;}function _3H(_Pn,_ck,_Qn,_3_){var _yk,_9o,_Hx,_Xo;var _05=arguments;var _mk=arguments.length;
var _0I2=_05[_mk-1];var _ho=10000000000;var id=-1;_ck=~~_ck;if(_ck==_Sn)return _3_;if(_ck==__I){_yk=_Fx._QS();for(_Hx=0;_Hx<_yk.length;_Hx++){_9o=_yk[_Hx];if((_Qn)&&(_9o==_Pn))continue;if(_9o.marked)continue;if(!_9o.active)continue;_Xo=_0I2(_9o);if(_Xo<_ho){_ho=_Xo;}}if(_ho!=10000000000)return _ho;}else if(_ck<100000){var _By=_14._n6(_ck);if(_By===null){return _3_;}_yk=_By._5_();for(_Hx=0;_Hx<_yk.length;_Hx++){_9o=_yk[_Hx];if((_Qn)&&(_Pn==_9o))continue;if(_9o.marked)continue;if(!_9o.active)continue;_Xo=_0I2(_9o);
if(_Xo<_ho){_ho=_Xo;}}if(_ho!=10000000000)return _ho;}else {_9o=_Fx._1I2(_ck);if((_Qn)&&(_Pn==_9o)){return _3_;}if(_9o.marked){return _3_;}if(!_9o.active)return _3_;return _0I2(_9o);}return _3_;}/*@constructor */function _2I2(){/*@this {BrowserDetect} */this.init=function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this._hG=this._3I2();this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this._4I2=this._5I2(this.browser);
this.os_version=this._6I2();},/*@this {BrowserDetect} */this._3I2=function(){var _7I2=navigator.userAgent.toString().toLowerCase();if(_7I2.indexOf("trident/5")>-1){return 9.0;}else if(_7I2.indexOf("trident/6")>-1){return 10.0;}else if(_7I2.indexOf("trident/7")>-1){return 11.0;}return -1;},this._5I2=function(_8I2){const _EP1=this.searchString(this.dataOS)||"an unknown OS";if(_8I2==="Safari"&&_EP1==="Mac"&&navigator["maxTouchPoints"]&&navigator["maxTouchPoints"]>1)return "iPad";return _EP1;},/*@this {BrowserDetect} */this._6I2=function(){
if(navigator.appVersion.indexOf("CPU OS 5_")!=-1){return 5.0;}else if(navigator.appVersion.indexOf("CPU OS 4_")!=-1){return 4.0;}else if(navigator.appVersion.indexOf("CPU OS 3_")!=-1){return 3.0;}else if(navigator.appVersion.indexOf("Android 4")!=-1){return 4.0;}else if(navigator.appVersion.indexOf("Android 3")!=-1){return 3.0;}else if(navigator.appVersion.indexOf("Android 2")!=-1){return 2.0;}else {return _nB2;}},/*@this {BrowserDetect} */this.searchString=function(data){for(var i=0;i<data.length;i++){var _9I2=data[i].string;
var _aI2=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(_9I2){if(_9I2.indexOf(data[i]._bI2)!=-1){return data[i].identity;}}else if(_aI2){return data[i].identity;}}},/*@this {BrowserDetect} */this.searchVersion=function(_9I2){var index=_9I2.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(_9I2.substring(index+this.versionSearchString.length+1));},this.dataBrowser=[{string:navigator.userAgent,_bI2:"Tizen",identity:"Tizen"},{string:navigator.userAgent,
_bI2:"Edge",identity:"Edge"},{string:navigator.userAgent,_bI2:"OPR",versionSearch:"OPR",identity:"Opera"},{string:navigator.userAgent,_bI2:"Chrome",identity:"Chrome"},{string:navigator.userAgent,_bI2:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,_bI2:"Apple",identity:"Safari",versionSearch:"Version"},{string:navigator.userAgent,_bI2:"KHTML",identity:"KHTML",versionSearch:"Mozilla/"},{string:navigator.vendor,_bI2:"iCab",identity:"iCab"},{string:navigator.vendor,_bI2:"KDE",
identity:"Konqueror"},{string:navigator.userAgent,_bI2:"Firefox",identity:"Firefox"},{string:navigator.userAgent,_bI2:"IceWeasel",identity:"IceWeasel"},{string:navigator.vendor,_bI2:"Camino",identity:"Camino"},{string:navigator.userAgent,_bI2:"Netscape",identity:"Netscape"},{string:navigator.userAgent,_bI2:"IEMobile",identity:"IEMobile"},{string:navigator.userAgent,_bI2:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,_bI2:"Trident/",identity:"Explorer",versionSearch:"rv"}
,{string:navigator.userAgent,_bI2:"Gecko",identity:"Mozilla",versionSearch:"rv"}],this.dataOS=[{string:navigator.userAgent,_bI2:"Phone 8",identity:"WindowsPhone8"},{string:navigator.platform,_bI2:"Win",identity:"Windows"},{string:navigator.platform,_bI2:"Mac",identity:"Mac"},{string:navigator.userAgent,_bI2:"iPhone",identity:"iPhone"},{string:navigator.userAgent,_bI2:"iPod",identity:"iPhone"},{string:navigator.userAgent,_bI2:"iPad",identity:"iPad"},{string:navigator.userAgent,_bI2:"Android",identity:"Android"}
,{string:navigator.userAgent,_bI2:"Tizen",identity:"Tizen"},{string:navigator.platform,_bI2:"Linux",identity:"Linux"}]};var _gG=new _2I2();function _NH2(){_gG.init();if(_gG._4I2=="Windows"){_d51=_cB2;}else if(_gG._4I2=="Mac"){_d51=_eB2;}else if(_gG._4I2=="iPhone"){_d51=_e51;}else if(_gG._4I2=="iPad"){_d51=_e51;}else if(_gG._4I2=="Android"){_d51=_gB2;}else if(_gG._4I2=="Linux"){_d51=_iB2;}else if(_gG._4I2=="Tizen"){_d51=_kB2;}else if(_gG._4I2=="WindowsPhone8"){_d51=_jB2;}else {_d51=_bB2;}if(_gG._4I2!==""){debug(_gG._4I2+" Detected("+_d51+")");
}_mB2=_gG.os_version;_eG=_1B2;_WA2=_XA2;if(_gG.browser=="Explorer"){debug("Internet Explorer detected");_eG=_fG;}else if(_gG.browser=="Explorer"){debug("Internet Explorer detected");_eG=_fG;}else if(_gG.browser=="Edge"){debug("Microsoft Edge detected");_eG=_aB2;}else if(_gG.browser=="IEMobile"){debug("IE Mobile detected");_eG=_9B2;}else if(_gG.browser=="Firefox"){debug("Firefox detected");_eG=_2B2;}else if(_gG.browser=="Chrome"){debug("Chrome detected");_eG=_3B2;}else if(_gG.browser=="Safari"){if(_d51==_e51){
_eG=_q51;_WA2=_YA2;if(_gG._4I2=="iPad")_WA2=__A2;debug("Safari mobile detected");}else {debug("Safari detected");_eG=_4B2;}}else if(_gG.browser=="Opera"){debug("BrowserDetect: "+_2I2._4I2);debug("Opera detected");_eG=_5B2;}else if(_gG.browser=="KHTML"){debug("Default Android browser detected");debug("OS: "+_mB2);_eG=_6B2;}else if(_gG.browser=="Tizen"){_eG=_0B2;}else {debug("Unknown Browser - Please report these strings");debug("----------------------------------------------");if(navigator.userAgent)debug("userAgent: "+navigator.userAgent);
debug("---");if(navigator.vendor)debug("vendor: "+navigator.vendor);debug("---");if(navigator.platform)debug("platform: "+navigator.platform);debug("----------------------------------------------");}if(true==_aw.Options.LocalRunAlert){if(document.URL.substring(0,5)=="file:"){alert("WARNING:  Running this via a file and not a web server is not advised as the browser will enable additional security, and things like files and colours won't work correctly.\r\rPlease check the FAQ for more details.\r\rhttps://help.yoyogames.com/hc/en-us/articles/360011372851");
}}}function _cI2(){_Oa.fillText("userAgent: "+navigator.userAgent,10,10);_Oa.fillText("vendor: "+navigator.vendor,10,30);_Oa.fillText("platform: "+navigator.platform,10,50);}var _dI2=0;var _D81=0;var _eI2=0;var _fI2=0;var _gI2=null;var _hI2=null;var _iI2=0,_jI2=1,_kI2=2,_lI2=3;function _mI2(){global=new _TA2();g_pBuiltIn=new _nI2();_Jg=new _oI2();_xe=new _2f();g_pBuiltIn.pointer_null=new ArrayBuffer(1);g_pBuiltIn.pointer_invalid=new ArrayBuffer(1);g_pBuiltIn.NaN=Number.NaN;g_pBuiltIn.infinity=Number.POSITIVE_INFINITY;
_pI2(canvas);_Fx=new _qI2();_14=new _rI2();_uC=new _sI2();_m6=new _tI2();_RG2=new _uI2();_0m=new _vI2();_yC=new _wI2();_Fw=new _xI2();_W72=[];_vC=new _yI2();_tA=new _zI2();_Cl=new _AI2();_xC=new _BI2();_Of1=new _4f1();_Uf=new _CI2();_bo=new _bL();_aQ=new _DI2();_de1=new _Gs2();_MH2();_a51();_de1._Lt2();_EI2();}function _FI2(_kd1){switch(_kd1){case 1:return "MEDIA_ERR_ABORTED";case 2:return "MEDIA_ERR_NETWORK";case 3:return "MEDIA_ERR_DECODE";case 4:return "MEDIA_ERR_SRC_NOT_SUPPORTED";}return "Unknown Error";}function _GI2(_kd1){
switch(_kd1){case _iI2:return "NETWORK_EMPTY";case _jI2:return "NETWORK_IDLE";case _kI2:return "NETWORK_LOADING";case _lI2:return "NETWORK_NO_SOURCE";}return "Unknown Error";}/*@this {XMLHttpRequest} */function _HI2(_Y3){debug("ImageLoaded: "+this.src);_D81++;}/*@this {XMLHttpRequest} */function _II2(_Y3){debug("ImageError: "+this.src);_D81++;}/*@this {XMLHttpRequest} */function _JI2(_Y3){_fI2++;debug("ExtensionLoaded: ");}/*@this {XMLHttpRequest} */function _KI2(_Y3){_fI2++;debug("ExtensionError: ");}function ClearEventListeners(_LI2){
_LI2.removeEventListener('canplaythrough',_MI2,false);_LI2.removeEventListener('error',_NI2,false);_LI2.removeEventListener("loadstart",_OI2,false);_LI2.removeEventListener("suspend",_PI2,false);_LI2.removeEventListener("stalled",_QI2,false);_LI2.removeEventListener("stall",_QI2,false);}/*@this {XMLHttpRequest} */function _MI2(_Y3){this.completed=true;if(_hI2[this.URL]!==null){_hI2[this.URL]=null;_D81++;}ClearEventListeners(this);debug("SoundLoaded: "+this.URL);}/*@this {XMLHttpRequest} */function _NI2(_Y3){
debug("SoundError: "+this.URL+"   NetworkError: "+_FI2(this.error["code"]));this.completed=false;if(_hI2[this.URL]!==null){_hI2[this.URL]=null;_D81++;}ClearEventListeners(this);}/*@this {XMLHttpRequest} */function _OI2(_Y3){this._RI2=true;}/*@this {XMLHttpRequest} */function _PI2(_Y3){debug("SoundSuspended: "+this.URL);this.completed=true;if(_hI2[this.URL]!==null){_hI2[this.URL]=null;_D81++;}ClearEventListeners(this);}function _QI2(_Y3){}function _SI2(_1l){debug("Loading: "+_1l);var index=_t9(_1l);var _k5=new _im();
_k5.x=0;_k5.y=0;_k5.w=63;_k5.h=63;_k5.XOffset=-32;_k5.YOffset=-32;_k5.CropWidth=63;_k5.CropHeight=63;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=index;_k5.texture=_o5[index];_k5._b9=[];_k5._d9=32;_k5._c9=0;var _TI2=_VG2.length;_VG2[_TI2]=_k5;return _TI2;}function _UI2(_PF){debug("Loading: "+_u9+_PF);var e=window.document.createElement('script');e.setAttribute('src',_u9+_PF);e.setAttribute('type',"text/javascript");e.onload=_JI2;e.onerror=_KI2;window.document.body.appendChild(e);_eI2++;}function _VI2(_WI2){if(_WI2.Extensions!==undefined){
for(var i=0;i<_WI2.Extensions.length;i++){var _XI2=_WI2.Extensions[i];if(_XI2.jsFiles){for(var _YI2=0;_YI2<_XI2.jsFiles.length;_YI2++){_UI2(_XI2.jsFiles[_YI2]);}}}}}function _ZI2(_WI2){_hI2=[];_eI2=0;_fI2=0;_VI2(_WI2);}function __I2(_1l){_dI2++;var _g61=new XMLHttpRequest();_g61.open('GET',_871(_1l),true);_g61.send();_g61.onload=function(_0J2){_D81++;_m6._1J2(_g61.responseText);};_g61.onerror=function(_0J2){_D81++;};}function _2J2(_1l){_dI2++;var _g61=new XMLHttpRequest();_g61.open('GET',_871(_1l),true);_g61.responseType='arraybuffer';
_g61.send();_g61.onload=function(_0J2){_D81++;_m6._3J2(_g61.response||_g61.responseText);};_g61.onerror=function(_0J2){_D81++;};}var _zz;function _4J2(self,other,_5J2){return _5J2;};var _6J2=[];function _7J2(_WI2){var _s7,id;if(_WI2._Ox)document.title=_WI2._Ox;if(typeof(gml_Script_gmcallback_html5_set_load_location)!='undefined'){_zz=gml_Script_gmcallback_html5_set_load_location;}else _zz=_4J2;_gI2=document.getElementById('GM4HTML5_loadingscreen');_ZI2(_WI2);_7H2=_8J2;_D81=0;for(var index=0;index<_WI2.Textures.length;
index++){_dI2++;debug("Loading: "+_u9+_WI2.Textures[index]);_s7=_t9(_u9+_WI2.Textures[index]);_o5[_s7].onload=_HI2;_o5[_s7].onerror=_II2;_o5[_s7].URL=_WI2.Textures[index];_o5[_s7]._yT1=_WI2.TexturesBlocks[index].MipsToGenerate;_6J2[index]=_s7;}if((_WI2.Swfs!==null)&&(_WI2.Swfs!==undefined)){_2J2(_WI2.Swfs);}if((_WI2.Skel!==null)&&(_WI2.Skel!==undefined)){__I2(_WI2.Skel);}if(true==_aw.Options.UseParticles){for(var i=2;i<16;i++){_dI2++;var _2z=_SI2(_u9+"particles/IDR_GIF"+i+".png");_s7=_VG2[_2z].tp;
_o5[_s7].onload=_HI2;_o5[_s7].onerror=_II2;_o5[_s7].URL="particles/IDR_GIF"+i+".png";}}if(_Z41==__41){for(index=0;index<_WI2.Sounds.length;index++){if(_WI2.Sounds[index]&&(_WI2.Sounds[index]!==null)){var groupId=0;if(_WI2.Sounds[index].groupId!==undefined){groupId=_WI2.Sounds[index].groupId;}if(groupId==0){_dI2++;debug("Loading: "+_u9+_WI2.Sounds[index].origName);if(_WI2.Sounds[index].kind===0){id=_O81(_u9+_WI2.Sounds[index].origName,index,_WI2.Sounds[index].pName,_WI2.Sounds[index].extension);if(id===undefined){
_dI2--;}}else if((_WI2.Sounds[index].kind==3)||(_WI2.Sounds[index].kind==1)){_H81(_u9+_WI2.Sounds[index].origName,index,_WI2.Sounds[index].pName,_WI2.Sounds[index].extension);_dI2--;}else {debug("Attempting to load sound with unknown type: "+_WI2.Sounds[index].kind);_dI2--;}}}}}else if(_Z41==_da1){var _9J2,_aJ2;for(index=0;index<_WI2.Sounds.length;index++){if(_WI2.Sounds[index]!==null){_dI2++;_9J2=_WI2.Sounds[index].pName;_aJ2=_d61[_9J2];debug("Loading: "+_u9+_WI2.Sounds[index].origName);id=_ya1(_u9+_WI2.Sounds[index].origName,
_WI2.Sounds[index].pName,_WI2.Sounds[index].extension,_MI2,_NI2);if((id!==undefined)&&(_aJ2)&&(_aJ2.URL)){_hI2[_aJ2.URL]=_aJ2;}else {_dI2--;}}}}}function _bJ2(){for(var i in _hI2){if(!_hI2.hasOwnProperty(i))continue;var _cJ2=_hI2[i];if(_cJ2){if((_cJ2.networkState!==null&&_cJ2.networkState!==undefined)&&(_cJ2.readyState!==null&&_cJ2.readyState!==undefined)){if((_cJ2.networkState==_jI2||_cJ2.networkState==_lI2)&&(_cJ2._RI2)&&(_cJ2.readyState!=4)){if(_cJ2.completed!==true){_cJ2.completed=false;_D81++;_hI2[i]=null;
ClearEventListeners(_cJ2);debug("SoundError: "+_cJ2.URL+"   NetworkState: "+_GI2(_cJ2.networkState));}}}}}}function _dJ2(_eJ2,_By){if(_By._fJ2)return;if(_By.__w!==null){_dJ2(_By.__w._ZI,_By.__w);}for(var _gJ2 in _By._hJ2){if(!_By._hJ2.hasOwnProperty(_gJ2))continue;if(_W72[_gJ2]){if(_W72[_gJ2][_eJ2]){continue;}}var _Lu=false;var _iJ2=_By;while(_iJ2!==null){var id=_iJ2._ZI;var _jJ2=_14._n6(_gJ2);while(_jJ2!==null){var _kJ2=_jJ2._ZI;if(_W72[_kJ2]&&_W72[_kJ2][id]){_Lu=true;break;}_jJ2=_jJ2.__w;}_iJ2=_iJ2.__w;
}if(!_Lu){if(!_W72[_eJ2]){_W72[_eJ2]=[];}_W72[_eJ2][_gJ2]=_gJ2;}}_By._fJ2=true;}function _lJ2(){var _yk=_14._QS();for(var _eJ2=0;_eJ2<_yk.length;_eJ2++){var _By=_yk[_eJ2];if(_By===undefined)continue;if(_By.__w!==null){_dJ2(_By.__w._ZI,_By.__w);}_dJ2(_eJ2,_By);}}function _mJ2(_WI2){var index,_ao,i;_CI=1000000;g_pBuiltIn.game_id=_WI2.Options.gameId;_Th1=_WI2.Options.ViewColour;_8H2=_WI2.Options.allowFullScreenKey;_ri1=_WI2.Options.Config;g_pBuiltIn.game_save_id=_nJ2();g_pBuiltIn.game_display_name=_WI2.Options.DisplayName;
g_pBuiltIn.game_project_name=_WI2.Options.ProjectName;g_pBuiltIn.working_directory=_u9;g_pBuiltIn._oJ2=_nJ2();if(_09)g_pBuiltIn.webgl_enabled=true;_1H2=new _pJ2(_WI2.Triggers);_rH2=_WI2.Options.md5;var id=0;for(var index=0;index<_WI2.GMObjects.length;index++){var _UB=_WI2.GMObjects[index];if((_UB!==null)&&(_UB!==undefined)){var _Nx=_qJ2(id,_UB);_14._Vf(_Nx);}id++;}_14._rJ2();_lJ2();_sJ2(_WI2.TPageEntries);for(index=0;index<_WI2.Sprites.length;index++){if(!_WI2.Sprites[index]||(_WI2.Sprites[index]===null)){
_m6._3b1(null);}else {var _tJ2=_uJ2(_WI2.Sprites[index]);_m6._3b1(_tJ2);}}for(index=0;index<_WI2.Backgrounds.length;index++){if(!_WI2.Backgrounds[index]){_0m._vJ2(null);}else {var _Mb=_0m._vJ2(_WI2.Backgrounds[index]);var _ym=_0m._1m(_Mb);if(_ym!==null)_ym._Am=_wJ2;}}for(index=0;index<_WI2.Fonts.length;index++){_Fw._Vf(_WI2.Fonts[index]);}if(_WI2.EmbeddedFonts){for(index=0;index<_WI2.EmbeddedFonts.length;++index){_Fw._xJ2(_WI2.EmbeddedFonts[index]);}}for(var index=0;index<_WI2.GMRooms.length;index++){
var _yJ2=_WI2.GMRooms[index];if(_yJ2&&(_yJ2!==null)){_ao=new _s21();if(_yJ2.LayerCount!=undefined){if(_yJ2.LayerCount>0){_bo._BN(_ao,_yJ2.layers);}}_ao._U11=_yJ2;_uC._Vf(_ao);}else {_gH2++;_uC._Vf(null);}}_rH2=_WI2.Options.crc;_uC._zJ2(_WI2.RoomOrder);for(i=0;i<_WI2.RoomOrder.length;i++){_ao=_uC._A21(i);_ao._x21=i;}g_pBuiltIn.room_first=_uC._A21(0).id;g_pBuiltIn.room_last=_uC._A21(_uC._C21.length-1).id;_de1._jt2();for(index=0;index<_WI2.Paths.length;index++){var _NR=_AJ2(_WI2.Paths[index]);_vC._Vf(_NR);
}for(index=0;index<_WI2.Sounds.length;index++){_yC._Vf(_WI2.Sounds[index]);}if(_WI2.Timelines!==undefined){for(index=0;index<_WI2.Timelines.length;index++){_tA._Vf(_WI2.Timelines[index]);}}if(_WI2.AnimCurves!==undefined){for(index=0;index<_WI2.AnimCurves.length;index++){_Cl._Vf(_WI2.AnimCurves[index]);}}if(_WI2.Sequences!==undefined){for(index=0;index<_WI2.Sequences.length;index++){_xC._Vf(_WI2.Sequences[index]);}}if(_WI2.PSEmitters!==undefined){_BJ2(_WI2);}if(_WI2.ParticleSystems!==undefined){for(index=0;
index<_WI2.ParticleSystems.length;index++){_eC._CJ2(_WI2.ParticleSystems[index]);}}if(_WI2.FiltersAndEffectDefs!==undefined){for(index=0;index<_WI2.FiltersAndEffectDefs.length;index++){var _gw1=_WI2.FiltersAndEffectDefs[index];_aQ._DJ2(_gw1.name,_gw1.json);}}if(Tags!==undefined&&IDToTagList!==undefined){_Of1._af1(Tags,IDToTagList);}if(_WI2.TextureGroupInfo!==undefined){for(index=0;index<_WI2.TextureGroupInfo.length;index++){var _bc1=_WI2.TextureGroupInfo[index];var _EJ2=new _FJ2();if(_bc1.pName!==undefined)_EJ2.pName=_bc1.pName;
if(_bc1.TextureIDs!==undefined){for(var i=0;i<_bc1.TextureIDs.length;i++){_EJ2._yZ1[i]=_6J2[_bc1.TextureIDs[i]];}}if(_bc1.SpriteIDs!==undefined){for(var i=0;i<_bc1.SpriteIDs.length;i++){_EJ2.sprites[i]=_bc1.SpriteIDs[i];}}if(_bc1.SpineSpriteIDs!==undefined){for(var i=0;i<_bc1.SpineSpriteIDs.length;i++){_EJ2._GJ2[i]=_bc1.SpineSpriteIDs[i];}}if(_bc1.FontIDs!==undefined){for(var i=0;i<_bc1.FontIDs.length;i++){_EJ2._HJ2[i]=_bc1.FontIDs[i];}}if(_bc1.TilesetIDs!==undefined){for(var i=0;i<_bc1.TilesetIDs.length;
i++){_EJ2._IJ2[i]=_bc1.TilesetIDs[i];}}_RG2._JJ2(_EJ2);}}highscore_clear();_Xz();if(typeof gmlConst=='function'){g_gmlConst=new gmlConst();}if(typeof gmlInitGlobal=='function'){gmlInitGlobal();}if(_WI2.Extensions!==undefined){for(i=0;i<_WI2.Extensions.length;i++){var _XI2=_WI2.Extensions[i];if(_XI2.init!=undefined){try{var pFunc=eval(_XI2.init);if(pFunc)pFunc();}catch(_Oj){_q5("Error calling extension initialisation function: "+_XI2.init+" exception: "+_Oj.toString());}}else if(_XI2.initfuncs!=undefined){
for(var _J6=0;_J6<_XI2.initfuncs.length;_J6++){try{var pFunc=eval(_XI2.initfuncs[_J6]);if(pFunc)pFunc();}catch(_Oj){_q5("Error calling extension initialisation function: "+_XI2.initfuncs[_J6]+" exceptio: "+_Oj.toString());}}}}}}function _TH2(){try{if(('localStorage' in window)&&(window['localStorage']!==null)){_9y=true;}}catch(e){_9y=false;}return _9y;}function _nJ2(){let _KJ2=(_aw.Options.DisplayName||"").replace(new RegExp("[^\\w]","g"),"");return(_KJ2||"GameMaker")+"."+g_pBuiltIn.game_id+".";}function _ay(_4y){
return(g_pBuiltIn._oJ2+_4y);}var _Ns=0;var _Rs=1;var _Vs=2;var _Zs=3;var _Os=4;var _gs=5;var _Ws=6;var __s=7;var _Ps=8;var _Ss=9;var _Xs=10;var _0t=11;var _Qs=12;var _Ts=13;var _Ys=14;var _1t=15;var _LJ2=0;var _MJ2=1;var _NJ2=2;var _OJ2=3;var _PJ2=4;var _QJ2=5;var _RJ2=6;var _SJ2=7;var _TJ2=8;var _UJ2=9;var _VJ2=10;var _WJ2=11;var _XJ2=12;var _YJ2=13;var _ZJ2=14;var __J2=15;/*@constructor 
  * @param {Object=} _matrix Some value (optional).
*/function _qr(_7s){this._e7=new Float32Array(16);if(arguments.length>0){var _0K2=_7s._e7||_7s;
for(var i=0;i<16;i++){this._e7[i]=_0K2[i];}}else {this._fs();}}_qr.prototype.identity=function(_J5){this._e7[1]=this._e7[2]=this._e7[3]=this._e7[4]=this._e7[6]=this._e7[7]=this._e7[8]=this._e7[9]=this._e7[11]=this._e7[12]=this._e7[13]=this._e7[14]=0.0;this._e7[0]=this._e7[5]=this._e7[10]=this._e7[15]=1.0;};_qr.prototype._fs=function(_J5){this._e7[1]=this._e7[2]=this._e7[3]=this._e7[4]=this._e7[6]=this._e7[7]=this._e7[8]=this._e7[9]=this._e7[11]=this._e7[12]=this._e7[13]=this._e7[14]=0.0;this._e7[0]=this._e7[5]=this._e7[10]=this._e7[15]=1.0;
};_qr.prototype.__i=function(_1K2){for(var i=0;i<16;i++){this._e7[i]=_1K2._e7[i];}};_qr.prototype._Fr=function(_2K2,_3K2,_4K2){var _5K2=new _Er(_4K2);var _6K2=new _Er();var _7K2=_3K2._lF(_2K2);_7K2._Nr();_5K2._Nr();_6K2._8K2(_5K2,_7K2);_6K2._Nr();_5K2._8K2(_7K2,_6K2);_5K2._Nr();var _Qr=_2K2._9K2(_6K2);var _Rr=_2K2._9K2(_5K2);var _Sr=_2K2._9K2(_7K2);this._e7[_Ns]=_6K2._Qr;this._e7[_Rs]=_5K2._Qr;this._e7[_Vs]=_7K2._Qr;this._e7[_Zs]=0.0;this._e7[_Os]=_6K2._Rr;this._e7[_gs]=_5K2._Rr;this._e7[_Ws]=_7K2._Rr;this._e7[__s]=0.0;
this._e7[_Ps]=_6K2._Sr;this._e7[_Ss]=_5K2._Sr;this._e7[_Xs]=_7K2._Sr;this._e7[_0t]=0.0;this._e7[_Qs]=-_Qr;this._e7[_Ts]=-_Rr;this._e7[_Ys]=-_Sr;this._e7[_1t]=1;};_qr.prototype._zs=function(_aK2,_bK2,_cK2,_dK2){if((_aK2==0.0)||(_bK2==0.0)||(_cK2==_dK2)){this._fs();return;}var _05=_UH2(_aK2);var _eK2=1.0/Math.tan(_05*0.5);var _5D1=_eK2/_bK2;this._e7[_Ns]=_5D1;this._e7[_Rs]=this._e7[_Vs]=this._e7[_Zs]=0.0;this._e7[_gs]=_eK2;this._e7[_Os]=this._e7[_Ws]=this._e7[__s]=0.0;this._e7[_Ps]=this._e7[_Ss]=0.0;
this._e7[_0t]=1.0;this._e7[_Xs]=_dK2/(_dK2-_cK2);this._e7[_Qs]=this._e7[_Ts]=this._e7[_1t]=0.0;this._e7[_Ys]=-_cK2*_dK2/(_dK2-_cK2);};_qr.prototype._ws=function(_Xi,_Yi,_cK2,_dK2){if((_Xi==0.0)||(_Yi==0.0)||(_cK2==_dK2)){this._fs();return;}this._e7[_Ns]=2*_cK2/_Xi;this._e7[_Rs]=this._e7[_Vs]=this._e7[_Zs]=0.0;this._e7[_gs]=2*_cK2/_Yi;this._e7[_Os]=this._e7[_Ws]=this._e7[__s]=0.0;this._e7[_Ps]=this._e7[_Ss]=0.0;this._e7[_0t]=1.0;this._e7[_Xs]=_dK2/(_dK2-_cK2);this._e7[_Qs]=this._e7[_Ts]=this._e7[_1t]=0.0;
this._e7[_Ys]=-_cK2*_dK2/(_dK2-_cK2);};_qr.prototype._Hr=function(_Xi,_Yi,_cK2,_dK2){if((_Xi==0.0)||(_Yi==0.0)||(_cK2==_dK2)){this._fs();return;}this._e7[_Ns]=2.0/_Xi;this._e7[_Rs]=this._e7[_Vs]=0.0;this._e7[_Zs]=0;this._e7[_gs]=2.0/_Yi;this._e7[_Os]=this._e7[_Ws]=0.0;this._e7[__s]=0;this._e7[_Ps]=this._e7[_Ss]=0.0;this._e7[_Xs]=1.0/(_dK2-_cK2);this._e7[_0t]=0;this._e7[_Qs]=this._e7[_Ts]=0.0;this._e7[_Ys]=_cK2/(_cK2-_dK2);this._e7[_1t]=1.0;};_qr.prototype.Multiply=function(_fK2,_gK2){this._e7[_Ns]=(_fK2._e7[_Ns]*_gK2._e7[_Ns])+(_fK2._e7[_Rs]*_gK2._e7[_Os])+(_fK2._e7[_Vs]*_gK2._e7[_Ps])+(_fK2._e7[_Zs]*_gK2._e7[_Qs]);
this._e7[_Rs]=(_fK2._e7[_Ns]*_gK2._e7[_Rs])+(_fK2._e7[_Rs]*_gK2._e7[_gs])+(_fK2._e7[_Vs]*_gK2._e7[_Ss])+(_fK2._e7[_Zs]*_gK2._e7[_Ts]);this._e7[_Vs]=(_fK2._e7[_Ns]*_gK2._e7[_Vs])+(_fK2._e7[_Rs]*_gK2._e7[_Ws])+(_fK2._e7[_Vs]*_gK2._e7[_Xs])+(_fK2._e7[_Zs]*_gK2._e7[_Ys]);this._e7[_Zs]=(_fK2._e7[_Ns]*_gK2._e7[_Zs])+(_fK2._e7[_Rs]*_gK2._e7[__s])+(_fK2._e7[_Vs]*_gK2._e7[_0t])+(_fK2._e7[_Zs]*_gK2._e7[_1t]);this._e7[_Os]=(_fK2._e7[_Os]*_gK2._e7[_Ns])+(_fK2._e7[_gs]*_gK2._e7[_Os])+(_fK2._e7[_Ws]*_gK2._e7[_Ps])+(_fK2._e7[__s]*_gK2._e7[_Qs]);
this._e7[_gs]=(_fK2._e7[_Os]*_gK2._e7[_Rs])+(_fK2._e7[_gs]*_gK2._e7[_gs])+(_fK2._e7[_Ws]*_gK2._e7[_Ss])+(_fK2._e7[__s]*_gK2._e7[_Ts]);this._e7[_Ws]=(_fK2._e7[_Os]*_gK2._e7[_Vs])+(_fK2._e7[_gs]*_gK2._e7[_Ws])+(_fK2._e7[_Ws]*_gK2._e7[_Xs])+(_fK2._e7[__s]*_gK2._e7[_Ys]);this._e7[__s]=(_fK2._e7[_Os]*_gK2._e7[_Zs])+(_fK2._e7[_gs]*_gK2._e7[__s])+(_fK2._e7[_Ws]*_gK2._e7[_0t])+(_fK2._e7[__s]*_gK2._e7[_1t]);this._e7[_Ps]=(_fK2._e7[_Ps]*_gK2._e7[_Ns])+(_fK2._e7[_Ss]*_gK2._e7[_Os])+(_fK2._e7[_Xs]*_gK2._e7[_Ps])+(_fK2._e7[_0t]*_gK2._e7[_Qs]);
this._e7[_Ss]=(_fK2._e7[_Ps]*_gK2._e7[_Rs])+(_fK2._e7[_Ss]*_gK2._e7[_gs])+(_fK2._e7[_Xs]*_gK2._e7[_Ss])+(_fK2._e7[_0t]*_gK2._e7[_Ts]);this._e7[_Xs]=(_fK2._e7[_Ps]*_gK2._e7[_Vs])+(_fK2._e7[_Ss]*_gK2._e7[_Ws])+(_fK2._e7[_Xs]*_gK2._e7[_Xs])+(_fK2._e7[_0t]*_gK2._e7[_Ys]);this._e7[_0t]=(_fK2._e7[_Ps]*_gK2._e7[_Zs])+(_fK2._e7[_Ss]*_gK2._e7[__s])+(_fK2._e7[_Xs]*_gK2._e7[_0t])+(_fK2._e7[_0t]*_gK2._e7[_1t]);this._e7[_Qs]=(_fK2._e7[_Qs]*_gK2._e7[_Ns])+(_fK2._e7[_Ts]*_gK2._e7[_Os])+(_fK2._e7[_Ys]*_gK2._e7[_Ps])+(_fK2._e7[_1t]*_gK2._e7[_Qs]);
this._e7[_Ts]=(_fK2._e7[_Qs]*_gK2._e7[_Rs])+(_fK2._e7[_Ts]*_gK2._e7[_gs])+(_fK2._e7[_Ys]*_gK2._e7[_Ss])+(_fK2._e7[_1t]*_gK2._e7[_Ts]);this._e7[_Ys]=(_fK2._e7[_Qs]*_gK2._e7[_Vs])+(_fK2._e7[_Ts]*_gK2._e7[_Ws])+(_fK2._e7[_Ys]*_gK2._e7[_Xs])+(_fK2._e7[_1t]*_gK2._e7[_Ys]);this._e7[_1t]=(_fK2._e7[_Qs]*_gK2._e7[_Zs])+(_fK2._e7[_Ts]*_gK2._e7[__s])+(_fK2._e7[_Ys]*_gK2._e7[_0t])+(_fK2._e7[_1t]*_gK2._e7[_1t]);};_qr.prototype._PW=function(_d6){this._fs();var _05=_UH2(_d6);var __h=Math.sin(_05);var c=Math.cos(_05);
this._e7[_Ns]=c;this._e7[_Rs]=-__h;this._e7[_Os]=__h;this._e7[_gs]=c;};_qr.prototype._hK2=function(_d6){this._fs();var _05=_UH2(_d6);var __h=Math.sin(_05);var c=Math.cos(_05);this._e7[_Ns]=c;this._e7[_Vs]=__h;this._e7[_Ps]=-__h;this._e7[_Xs]=c;};_qr.prototype._iK2=function(_d6){this._fs();var _05=_UH2(_d6);var __h=Math.sin(_05);var c=Math.cos(_05);this._e7[_gs]=c;this._e7[_Ws]=-__h;this._e7[_Ss]=__h;this._e7[_Xs]=c;};_qr.prototype._RW=function(_96,_a6,_As){this._fs();this._e7[_Qs]=_96;this._e7[_Ts]=_a6;
this._e7[_Ys]=_As;};_qr.prototype._TW=function(_96,_a6,_As){this._e7[_Qs]+=_96;this._e7[_Ts]+=_a6;this._e7[_Ys]+=_As;};_qr.prototype._jK2=function(_f5,_g5,_kK2){this._fs();this._e7[_Ns]=_f5;this._e7[_gs]=_g5;this._e7[_Xs]=_kK2;};_qr.prototype._lK2=function(){var scaleX=Math.sqrt((this._e7[_Ns]*this._e7[_Ns])+(this._e7[_Os]*this._e7[_Os])+(this._e7[_Ps]*this._e7[_Ps]));var scaleY=Math.sqrt((this._e7[_Rs]*this._e7[_Rs])+(this._e7[_gs]*this._e7[_gs])+(this._e7[_Ss]*this._e7[_Ss]));var _mK2=Math.sqrt((this._e7[_Vs]*this._e7[_Vs])+(this._e7[_Ws]*this._e7[_Ws])+(this._e7[_Xs]*this._e7[_Xs]));
return Math.max(scaleX,scaleY,_mK2);};_qr.prototype._nK2=function(_8d,_d6){_8d._Nr();var _05=_UH2(_d6);var c=Math.cos(_05);var __h=Math.sin(_05);var _oK2=1.0-c;this._fs();this._e7[0]=(_oK2*_8d._Qr*_8d._Qr+c);this._e7[1]=(_oK2*_8d._Qr*_8d._Rr+__h*_8d._Sr);this._e7[2]=(_oK2*_8d._Qr*_8d._Sr-__h*_8d._Rr);this._e7[4]=(_oK2*_8d._Qr*_8d._Rr-__h*_8d._Sr);this._e7[5]=(_oK2*_8d._Rr*_8d._Rr+c);this._e7[6]=(_oK2*_8d._Rr*_8d._Sr+__h*_8d._Qr);this._e7[8]=(_oK2*_8d._Qr*_8d._Sr+__h*_8d._Rr);this._e7[9]=(_oK2*_8d._Rr*_8d._Sr-__h*_8d._Qr);
this._e7[10]=(_oK2*_8d._Sr*_8d._Sr+c);};_qr.prototype._pK2=function(_96,_a6,_f5,_g5,_h5){this._fs();var _05=_UH2(_h5);var __h=Math.sin(_05);var c=Math.cos(_05);this._e7[_Ns]=c;this._e7[_Rs]=-__h;this._e7[_Os]=__h;this._e7[_gs]=c;this._e7[_Ns]*=_f5;this._e7[_gs]*=_g5;this._e7[_Qs]=_96;this._e7[_Ts]=_a6;};_qr.prototype._Gs=function(_96,_a6,_As,_Bs,_Cs,_Ds,_Qm,_Rm,_Es){var _qK2=Math.sin(_Bs);var _rK2=Math.cos(_Bs);var _sK2=Math.sin(_Cs);var _tK2=Math.cos(_Cs);var _uK2=Math.sin(_Ds);var _vK2=Math.cos(_Ds);var _wK2=-_uK2*-_qK2;
var _xK2=_vK2*-_qK2;this._e7[0]=((_vK2*_tK2)+(_wK2*-_sK2))*_Qm;this._e7[4]=(-_uK2*_rK2)*_Qm;this._e7[8]=((_vK2*_sK2)+(_wK2*_tK2))*_Qm;this._e7[12]=_96;this._e7[1]=((_uK2*_tK2)+(_xK2*-_sK2))*_Rm;this._e7[5]=(_vK2*_rK2)*_Rm;this._e7[9]=((_uK2*_sK2)+(_xK2*_tK2))*_Rm;this._e7[13]=_a6;this._e7[2]=(_rK2*-_sK2)*_Es;this._e7[6]=_qK2*_Es;this._e7[10]=(_rK2*_tK2)*_Es;this._e7[14]=_As;this._e7[3]=this._e7[7]=this._e7[11]=0.0;this._e7[15]=1.0;};_qr.prototype._cF=function(_yK2){var _zK2=_yK2._e7[_LJ2]*_yK2._e7[_QJ2]-_yK2._e7[_PJ2]*_yK2._e7[_MJ2];
var _Js=_yK2._e7[_LJ2]*_yK2._e7[_RJ2]-_yK2._e7[_PJ2]*_yK2._e7[_NJ2];var _Ks=_yK2._e7[_LJ2]*_yK2._e7[_SJ2]-_yK2._e7[_PJ2]*_yK2._e7[_OJ2];var _Ls=_yK2._e7[_MJ2]*_yK2._e7[_RJ2]-_yK2._e7[_QJ2]*_yK2._e7[_NJ2];var _AK2=_yK2._e7[_MJ2]*_yK2._e7[_SJ2]-_yK2._e7[_QJ2]*_yK2._e7[_OJ2];var _BK2=_yK2._e7[_NJ2]*_yK2._e7[_SJ2]-_yK2._e7[_RJ2]*_yK2._e7[_OJ2];var _CK2=_yK2._e7[_VJ2]*_yK2._e7[__J2]-_yK2._e7[_ZJ2]*_yK2._e7[_WJ2];var _DK2=_yK2._e7[_UJ2]*_yK2._e7[__J2]-_yK2._e7[_YJ2]*_yK2._e7[_WJ2];var __k1=_yK2._e7[_UJ2]*_yK2._e7[_ZJ2]-_yK2._e7[_YJ2]*_yK2._e7[_VJ2];
var _Pk1=_yK2._e7[_TJ2]*_yK2._e7[__J2]-_yK2._e7[_XJ2]*_yK2._e7[_WJ2];var _Ok1=_yK2._e7[_TJ2]*_yK2._e7[_ZJ2]-_yK2._e7[_XJ2]*_yK2._e7[_VJ2];var _jl1=_yK2._e7[_TJ2]*_yK2._e7[_YJ2]-_yK2._e7[_XJ2]*_yK2._e7[_UJ2];var _Tk1=(_zK2*_CK2-_Js*_DK2+_Ks*__k1+_Ls*_Pk1-_AK2*_Ok1+_BK2*_jl1);if(_Tk1!=0){var _EK2=1.0/_Tk1;var __4=new Float32Array(16);__4[_LJ2]=(_yK2._e7[_QJ2]*_CK2-_yK2._e7[_RJ2]*_DK2+_yK2._e7[_SJ2]*__k1)*_EK2;__4[_MJ2]=(-_yK2._e7[_MJ2]*_CK2+_yK2._e7[_NJ2]*_DK2-_yK2._e7[_OJ2]*__k1)*_EK2;__4[_NJ2]=(_yK2._e7[_YJ2]*_BK2-_yK2._e7[_ZJ2]*_AK2+_yK2._e7[__J2]*_Ls)*_EK2;
__4[_OJ2]=(-_yK2._e7[_UJ2]*_BK2+_yK2._e7[_VJ2]*_AK2-_yK2._e7[_WJ2]*_Ls)*_EK2;__4[_PJ2]=(-_yK2._e7[_PJ2]*_CK2+_yK2._e7[_RJ2]*_Pk1-_yK2._e7[_SJ2]*_Ok1)*_EK2;__4[_QJ2]=(_yK2._e7[_LJ2]*_CK2-_yK2._e7[_NJ2]*_Pk1+_yK2._e7[_OJ2]*_Ok1)*_EK2;__4[_RJ2]=(-_yK2._e7[_XJ2]*_BK2+_yK2._e7[_ZJ2]*_Ks-_yK2._e7[__J2]*_Js)*_EK2;__4[_SJ2]=(_yK2._e7[_TJ2]*_BK2-_yK2._e7[_VJ2]*_Ks+_yK2._e7[_WJ2]*_Js)*_EK2;__4[_TJ2]=(_yK2._e7[_PJ2]*_DK2-_yK2._e7[_QJ2]*_Pk1+_yK2._e7[_SJ2]*_jl1)*_EK2;__4[_UJ2]=(-_yK2._e7[_LJ2]*_DK2+_yK2._e7[_MJ2]*_Pk1-_yK2._e7[_OJ2]*_jl1)*_EK2;
__4[_VJ2]=(_yK2._e7[_XJ2]*_AK2-_yK2._e7[_YJ2]*_Ks+_yK2._e7[__J2]*_zK2)*_EK2;__4[_WJ2]=(-_yK2._e7[_TJ2]*_AK2+_yK2._e7[_UJ2]*_Ks-_yK2._e7[_WJ2]*_zK2)*_EK2;__4[_XJ2]=(-_yK2._e7[_PJ2]*__k1+_yK2._e7[_QJ2]*_Ok1-_yK2._e7[_RJ2]*_jl1)*_EK2;__4[_YJ2]=(_yK2._e7[_LJ2]*__k1-_yK2._e7[_MJ2]*_Ok1+_yK2._e7[_NJ2]*_jl1)*_EK2;__4[_ZJ2]=(-_yK2._e7[_XJ2]*_Ls+_yK2._e7[_YJ2]*_Js-_yK2._e7[_ZJ2]*_zK2)*_EK2;__4[__J2]=(_yK2._e7[_TJ2]*_Ls-_yK2._e7[_UJ2]*_Js+_yK2._e7[_VJ2]*_zK2)*_EK2;this._e7=__4;}};_qr.prototype._jF=function(_FK2){
var _GK2=new _Er(0.0,0.0,0.0);if(_FK2!=undefined){_GK2._Qr=(this._e7[_Ns]*_FK2._Qr)+(this._e7[_Os]*_FK2._Rr)+(this._e7[_Ps]*_FK2._Sr)+this._e7[_Qs];_GK2._Rr=(this._e7[_Rs]*_FK2._Qr)+(this._e7[_gs]*_FK2._Rr)+(this._e7[_Ss]*_FK2._Sr)+this._e7[_Ts];_GK2._Sr=(this._e7[_Vs]*_FK2._Qr)+(this._e7[_Ws]*_FK2._Rr)+(this._e7[_Xs]*_FK2._Sr)+this._e7[_Ys];}return _GK2;};function _KA2(){this.Normal=new _Er(0.0,0.0,1.0);this._G32=0.0;}_KA2.prototype._Nr=function(){var length=this.Normal.Length();this.Normal._Qr/=length;
this.Normal._Rr/=length;this.Normal._Sr/=length;this._G32/=length;};/*@constructor */function _im(){this.x=0;this.y=0;this.w=0;this.h=0;this.XOffset=0;this.YOffset=0;this.CropWidth=0;this.CropHeight=0;this.ow=0;this.oh=0;this.tp=0;this._Am=_wJ2;}function _Nb1(){}/*@constructor */function _wJ2(_Bb1){this.x=_Bb1.x;this.y=_Bb1.y;this.w=_Bb1.w;this.h=_Bb1.h;this.XOffset=_Bb1.XOffset;this.YOffset=_Bb1.YOffset;this.CropWidth=_Bb1.CropWidth;this.CropHeight=_Bb1.CropHeight;this.ow=_Bb1.ow;this.oh=_Bb1.oh;this.tp=_Bb1.tp;
}/*@constructor */function _HK2(){this.pName="";this.width=0;this.height=0;this.bboxLeft=0;this.bboxRight=0;this.bboxBottom=0;this.bboxTop=0;this.transparent=0;this.smooth=0;this.preload=0;this.bboxMode=0;this.colCheck=0;this.xOrigin=0;this.yOrigin=0;this._IK2=[];}/*@constructor */function _JK2(){this.pName="<object>";this.spriteIndex=0;this.visible=true;this.solid=true;this.depth=0;this.persistent=false;this.parent=-1;this.spritemask=false;}/*@constructor */function _KK2(){this.x=0;this.y=0;this.index=0;
this.id=0;this.pCode=null;}/*@constructor */function _LK2(){this.visible=false;this.xview=0;this.yview=0;this.wview=0;this.hview=0;this.xport=0;this.yport=0;this.wport=0;this.hport=0;this.hborder=0;this.vborder=0;this.hspeed=0;this.vspeed=0;this.index=0;}/*@constructor */function _MK2(){this.visible=false;this.foreground=0;this.index=0;this.x=0;this.y=0;this._NK2=0;this._OK2=0;this._PK2=0;this._QK2=0;this.stretch=0;}/*@constructor */function _RK2(){this.pName="<room>";this.pCaption="Game Maker Room";
this.width=640;this.height=480;this.speed=30;this.persistent=false;this.colour=0;this.showColour=false;this.pCode=null;this.enableViews=false;this.pInstances=[];this._SK2=[];this._kg=[];this._TK2=[];}/*@constructor */function _UK2(){this.GMObjects=[];this.GMRooms=[];this.Textures=[];this.Sprites=[];}function game_save(name){_Jc("game_save()");}function game_load(name){_Jc("game_load()");}function game_save_buffer(buffer){_Jc("game_save_buffer()");}function game_load_buffer(buffer){_Jc("game_load_buffer()");
}function os_set_orientation_lock(){_Jc("os_set_orientation_lock()");}function screen_save(_VA){_Aw("screen_save()");}function screen_save_part(_VA,x,y,w,h){_Aw("screen_save_part()");}function display_reset(_VK2){_Jc("display_reset()");}function display_mouse_set(x,y){_Jc("display_mouse_set()");}var _WK2=[];var _XK2=false;var _YK2=false;function _ZK2(){if(!_XK2&&navigator.clipboard){if(!_YK2){_YK2=true;navigator.permissions.query({"name":'clipboard-read',"allowWithoutGesture":true}).then(function(result){
if((result.state=='granted')||(result.state=='prompt')){_XK2=true;_YK2=false;for(var _c7=0;_c7<_WK2.length;++_c7){navigator.clipboard.writeText(_WK2[_c7]);}_WK2=[];navigator.clipboard.readText().then(__K2=>{if(__K2!="")_WK2.push(__K2);}).catch(()=>{});}});}}}function clipboard_has_text(){if(!_XK2){_ZK2();return false;}navigator.clipboard.readText().then(__K2=>{if(__K2!="")_WK2.push(__K2);}).catch(()=>{});return _WK2.length>0;}function clipboard_get_text(){var _95="";if(!_XK2){_ZK2();}else if(_WK2.length>0){
_95=_WK2.pop();}return _95;}function clipboard_set_text(_xl){var _0L2=yyGetString(_xl);if(!_XK2){_ZK2();_WK2.push(_0L2);}else {if(navigator.clipboard)navigator.clipboard.writeText(_0L2);}}function keyboard_get_numlock(){_Jc("keyboard_get_numlock()");}function keyboard_set_numlock(on){_Jc("keyboard_set_numlock()");}function sprite_save_strip(_6a,_VA){_Jc("sprite_save_strip()");}function get_open_filename(filter,_VA){_Jc("get_open_filename()");}function get_save_filename(filter,_VA){_Jc("get_save_filename()");
}function get_open_filename_ext(filter,_VA,dir,title){_Jc("get_open_filename_ext()");}function get_save_filename_ext(filter,_VA,dir,title){_Jc("get_save_filename_ext()");}function _1L2(_xl){_Jc("MCI_command()");}function _2L2(_3L2){_Jc("texture_preload()");}function _4L2(_3L2,_5L2){_Jc("texture_set_priority()");}function texture_get_width(_3L2){_Jc("texture_get_width()");}function texture_get_height(_3L2){_Jc("texture_get_height()");}function _6L2(_QJ){_Jc("texture_set_blending()");}function _7L2(repeat){
_Jc("texture_set_repeat()");}function _8L2(){_Jc("texture_get_repeat()");}function _9L2(repeat){_Jc("texture_set_repeat_ext()");}function _aL2(_eu,_5u){_Jc("texture_set_interpolation_ext()");}function texture_get_uvs(_a9){_Jc("texture_get_uvs()");}function texture_global_scale(_bL2){_Jc("texture_global_scale()");}function _cL2(){_Jc("draw_set_alpha_test()");}function _dL2(){_Jc("draw_set_alpha_test_ref_value()");}function _eL2(){_Jc("draw_get_alpha_test()");return 0;}function _fL2(){_Jc("draw_get_alpha_test_ref_value()");
return 0;}function zip_unzip(){_Jc("zip_unzip()");}function zip_create(){_Jc("zip_create()");}function zip_add_file(){_Jc("zip_add_file()");}function zip_save(){_Jc("zip_save()");}function game_change(){_Jc("game_change()");}function winphone_license_trial_version(){_Jc("winphone_license_trial_version()");}function winphone_tile_title(){_Jc("winphone_tile_title()");}function winphone_tile_count(){_Jc("winphone_tile_count()");}function winphone_tile_back_title(){_Jc("winphone_tile_back_title()");}function winphone_tile_back_content(){
_Jc("winphone_tile_back_content()");}function winphone_tile_back_content_wide(){_Jc("winphone_tile_back_content_wide()");}function winphone_tile_front_image(){_Jc("winphone_tile_front_image()");}function winphone_tile_front_image_small(){_Jc("winphone_tile_front_image_small()");}function winphone_tile_front_image_wide(){_Jc("winphone_tile_front_image_wide()");}function winphone_tile_back_image(){_Jc("winphone_tile_back_image()");}function winphone_tile_back_image_wide(){_Jc("winphone_tile_back_image_wide()");
}function winphone_tile_background_colour(){_Jc("winphone_tile_background_colour()");}function winphone_tile_background_color(){_Jc("winphone_tile_background_color()");}function winphone_tile_icon_image(){_Jc("winphone_tile_icon_image()");}function winphone_tile_small_icon_image(){_Jc("winphone_tile_small_icon_image()");}function winphone_tile_wide_content(){_Jc("winphone_tile_wide_content()");}function winphone_tile_cycle_images(){_Jc("winphone_tile_cycle_images()");}function winphone_tile_small_background_image(){
_Jc("winphone_tile_small_background_image()");}function push_local_notification(){_Jc("push_local_notification()");}function push_get_first_local_notification(){_Jc("push_get_first_local_notification()");return -1;}function push_get_next_local_notification(){_Jc("push_get_next_local_notification()");return -1;}function push_cancel_local_notification(){_Jc("push_cancel_local_notification()");return -1;}function push_get_application_badge_number(){_Jc("push_get_application_badge_number()");return -1;}function push_set_application_badge_number(){
_Jc("push_set_application_badge_number()");return -1;}function surface_set_target_ext(){_Jc("surface_set_target_ext()");return 0;}function surface_get_target_ext(){_Jc("surface_set_target_ext()");return -1;}function audio_emitter_velocity(){_Jc("audio_emitter_velocity()");}function audio_emitter_get_vx(){_Jc("audio_emitter_get_vx()");return 0.0;}function audio_emitter_get_vy(){_Jc("audio_emitter_get_vy()");return 0.0;}function audio_emitter_get_vz(){_Jc("audio_emitter_get_vz()");return 0.0;}function audio_set_listener_mask(){
_Jc("audio_set_listener_mask()");}function audio_sound_set_listener_mask(){_Jc("audio_sound_set_listener_mask()");}function audio_emitter_set_listener_mask(){_Jc("audio_emitter_set_listener_mask()");}function audio_destroy_sync_group(){_Jc("audio_destroy_sync_group()");return -1;}function audio_create_sync_group(){_Jc("audio_create_sync_group()");return -1;}function audio_play_in_sync_group(){_Jc("audio_play_in_sync_group()");}function audio_start_sync_group(){_Jc("audio_start_sync_group()");}function audio_pause_sync_group(){
_Jc("audio_pause_sync_group()");}function audio_resume_sync_group(){_Jc("audio_resume_sync_group()");}function audio_stop_sync_group(){_Jc("audio_stop_sync_group()");}function audio_sync_group_get_track_pos(){_Jc("audio_sync_group_get_track_pos()");return -1;}function audio_sync_group_is_playing(){_Jc("audio_sync_group_is_playing()");return -1;}function audio_sync_group_is_paused(){_Jc("audio_sync_group_is_paused()");return -1;}function audio_sync_group_debug(){_Jc("audio_sync_group_debug()");}function _gL2(){
_Jc("GPIO is not supported");}function _hL2(){_Jc("GPIO is not supported");}function _iL2(){_Jc("GPIO is not supported");return 0;}function _jL2(){_Jc("GPIO is not supported");}function win8_livetile_tile_notification(){_Jc("win8_livetile_tile_notification()");return -1;}function win8_livetile_tile_clear(){_Jc("win8_livetile_tile_clear()");return -1;}function win8_livetile_badge_notification(){_Jc("win8_livetile_badge_notification()");return -1;}function win8_livetile_badge_clear(){_Jc("win8_livetile_badge_clear()");
return -1;}function win8_livetile_queue_enable(){_Jc("win8_livetile_queue_enable()");return -1;}function win8_secondarytile_pin(){_Jc("win8_secondarytile_pin()");return -1;}function win8_secondarytile_badge_notification(){_Jc("win8_secondarytile_badge_notification()");return -1;}function win8_secondarytile_delete(){_Jc("win8_secondarytile_delete()");return -1;}function win8_settingscharm_add_xaml_entry(){_Jc("win8_settingscharm_add_xaml_entry()");}function win8_settingscharm_set_xaml_property(){_Jc("win8_settingscharm_set_xaml_property()");
}function win8_settingscharm_get_xaml_property(){_Jc("win8_settingscharm_get_xaml_property()");}function win8_livetile_notification_begin(){_Jc("win8_livetile_notification_begin()");return -1;}function win8_livetile_notification_secondary_begin(){_Jc("win8_livetile_notification_secondary_begin()");return -1;}function win8_livetile_notification_expiry(){_Jc("win8_livetile_notification_expiry()");return -1;}function win8_livetile_notification_tag(){_Jc("win8_livetile_notification_tag()");return -1;}function win8_livetile_notification_text_add(){
_Jc("win8_livetile_notification_text_add()");return -1;}function win8_livetile_notification_image_add(){_Jc("win8_livetile_notification_image_add()");return -1;}function win8_livetile_notification_end(){_Jc("win8_livetile_notification_end()");return -1;}function win8_appbar_enable(){_Jc("win8_appbar_enable()");return -1;}function win8_appbar_add_element(){_Jc("win8_appbar_add_element()");return -1;}function win8_appbar_remove_element(){_Jc("win8_appbar_remove_element()");return -1;}function win8_settingscharm_add_entry(){
_Jc("win8_settingscharm_add_entry()");return -1;}function win8_settingscharm_add_html_entry(){_Jc("win8_settingscharm_add_html_entry()");return -1;}function win8_settingscharm_remove_entry(){_Jc("win8_settingscharm_remove_entry()");return -1;}function win8_share_image(){_Jc("win8_share_image()");return -1;}function win8_share_screenshot(){_Jc("win8_share_screenshot()");return -1;}function win8_share_file(){_Jc("win8_share_file()");return -1;}function win8_share_url(){_Jc("win8_share_url()");return -1;}function win8_share_text(){
_Jc("win8_share_text()");return -1;}function win8_search_enable(){_Jc("win8_search_enable()");return -1;}function win8_search_disable(){_Jc("win8_search_disable()");return -1;}function win8_search_add_suggestions(){_Jc("win8_search_add_suggestions()");return -1;}function win8_device_touchscreen_available(){_Jc("win8_device_touchscreen_available()");return -1;}function win8_license_initialize_sandbox(){_Jc("win8_license_initialize_sandbox()");return -1;}function win8_license_trial_version(){_Jc("win8_license_trial_version()");
return -1;}function uwp_livetile_tile_clear(){_Jc("uwp_livetile_tile_clear()");return -1;}function uwp_livetile_badge_notification(){_Jc("uwp_livetile_badge_notification()");return -1;}function uwp_livetile_badge_clear(){_Jc("uwp_livetile_badge_clear()");return -1;}function uwp_livetile_queue_enable(){_Jc("uwp_livetile_queue_enable()");return -1;}function uwp_secondarytile_pin(){_Jc("uwp_secondarytile_pin()");return -1;}function uwp_secondarytile_badge_notification(){_Jc("uwp_secondarytile_badge_notification()");
return -1;}function uwp_secondarytile_delete(){_Jc("uwp_secondarytile_delete()");return -1;}function uwp_secondarytile_tile_clear(){_Jc("uwp_secondarytile_tile_clear()");return -1;}function uwp_secondarytile_badge_clear(){_Jc("uwp_seondarytile_badge_clear()");return -1;}function uwp_livetile_notification_begin(){_Jc("uwp_livetile_notification_begin()");return -1;}function uwp_livetile_notification_secondary_begin(){_Jc("uwp_livetile_notification_secondary_begin()");return -1;}function uwp_livetile_notification_expiry(){
_Jc("uwp_livetile_notification_expiry()");return -1;}function uwp_livetile_notification_tag(){_Jc("uwp_livetile_notification_tag()");return -1;}function uwp_livetile_notification_text_add(){_Jc("uwp_livetile_notification_text_add()");return -1;}function uwp_livetile_notification_image_add(){_Jc("uwp_livetile_notification_image_add()");return -1;}function uwp_livetile_notification_end(){_Jc("uwp_livetile_notification_end()");return -1;}function uwp_livetile_notification_template_add(){_Jc("uwp_livetile_notification_template_add()");
return -1;}function uwp_appbar_enable(){_Jc("uwp_appbar_enable()");return -1;}function uwp_appbar_add_element(){_Jc("uwp_appbar_add_element()");return -1;}function uwp_appbar_remove_element(){_Jc("uwp_appbar_remove_element()");return -1;}function uwp_device_touchscreen_available(){_Jc("uwp_device_touchscreen_available()");return -1;}function external_define(){_Jc("external_define()");return -1;}function external_call(){_Jc("external_call()");return -1;}function external_free(){_Jc("external_free()");return -1;
}/*@constructor */function _Er(_kL2,_lL2,_mL2){if(arguments.length>0){if(arguments.length==3){this._Qr=_kL2;this._Rr=_lL2;this._Sr=_mL2;}else {this._Qr=_kL2._Qr;this._Rr=_kL2._Rr;this._Sr=_kL2._Sr;}}else {this._Qr=1.0;this._Rr=0.0;this._Sr=0.0;}}_Er.prototype._nL2=function(_J5){return this._Qr==_J5._Qr&&this._Rr==_J5._Rr&&this._Sr==_J5._Sr;};_Er.prototype._Vf=function(_J5){return new _Er(this._Qr+_J5._Qr,this._Rr+_J5._Rr,this._Sr+_J5._Sr);};_Er.prototype._oL2=function(){return new _Er(-this._Qr,-this._Rr,
-this._Sr);};_Er.prototype._lF=function(_J5){return new _Er(this._Qr-_J5._Qr,this._Rr-_J5._Rr,this._Sr-_J5._Sr);};_Er.prototype._SA2=function(_J5){return this._Qr*_J5._Qr+this._Rr*_J5._Rr+this._Sr*_J5._Sr;};_Er.prototype._6Z=function(_nv){return new _Er(_nv*this._Qr,_nv*this._Rr,_nv*this._Sr);};_Er.prototype._Nr=function(){var _Ai=1.0/Math.sqrt((this._Qr*this._Qr)+(this._Rr*this._Rr)+(this._Sr*this._Sr));this._Qr=this._Qr*_Ai;this._Rr=this._Rr*_Ai;this._Sr=this._Sr*_Ai;};_Er.prototype._pL2=function(){
var _qL2=(this._Qr*this._Qr)+(this._Rr*this._Rr)+(this._Sr*this._Sr);return _qL2;};_Er.prototype.Length=function(){var _qL2=this._pL2();if(_qL2>0.0){return Math.sqrt(_qL2);}else {return 0.0;}};_Er.prototype._rL2=function(_sL2){var x,y,z;x=(this._Rr*_sL2._Sr)-(this._Sr*_sL2._Rr);y=(this._Sr*_sL2._Qr)-(this._Qr*_sL2._Sr);z=(this._Qr*_sL2._Rr)-(this._Rr*_sL2._Qr);return new _Er(x,y,z);};_Er.prototype._8K2=function(_tL2,_uL2){this._Qr=(_tL2._Rr*_uL2._Sr)-(_tL2._Sr*_uL2._Rr);this._Rr=(_tL2._Sr*_uL2._Qr)-(_tL2._Qr*_uL2._Sr);
this._Sr=(_tL2._Qr*_uL2._Rr)-(_tL2._Rr*_uL2._Qr);};_Er.prototype._9K2=function(_sL2){return(this._Qr*_sL2._Qr)+(this._Rr*_sL2._Rr)+(this._Sr*_sL2._Sr);};/*@constructor */function _hZ(_vL2){var _lk=arguments;var _mk=arguments.length;this._yk=[];this.stack=[];this.length=0;this._c9=0;if(_mk>0){for(var i=0;i<_mk;i++){this._yk[i]=null;this.stack.push(i);}}}_hZ.prototype._SH2=function(){var _c7;if(this.stack.length===0){_c7=this._yk.length;this._yk[_c7]=null;return _c7;}return this.stack.pop();};_hZ.prototype._Vf=function(_wL2){
var index=this._SH2();this._yk[index]=_wL2;this._c9++;this.length=this._yk.length;return index;};_hZ.prototype._n6=function(_wP){var _xL2=null;if(_wP>=0&&_wP<this._yk.length){_xL2=this._yk[_wP];}if(_xL2===undefined)_xL2=null;return _xL2;};_hZ.prototype._5N=function(_yL2){for(var _p7=0;_p7<this._yk.length;_p7++){if(this._yk[_p7]==_yL2)return _p7;}return -1;};_hZ.prototype._yL=function(_yL2){var index=this._5N(_yL2);if(index<0)return;this._yk[index]=null;this.stack.push(index);this._c9--;};_hZ.prototype._3j=function(_wP){
if(_wP<0||_wP>=this._yk.length)return;this._yk[_wP]=null;this.stack.push(_wP);this._c9--;};_hZ.prototype._ag=function(){this._yk=[];this.stack=[];this._c9=0;this.length=this._yk.length;};_hZ.prototype.Set=function(_s4,_k4){if(_s4<0||_s4>=this._yk.length)return;this._yk[_s4]=_k4;};/*@constructor */function _Xl(_zL2){_AL2.call(this);this.__type="[CurvePoint]";this._zH=0;this._BL2=0;this._CL2=0;this._DL2=0;this._EL2=0;this._FL2=0;if((_zL2!=null)&&(_zL2!=undefined)){this._zH=_zL2.x;this._BL2=_zL2.value;
this._CL2=_zL2.tx0;this._DL2=_zL2.ty0;this._EL2=_zL2.tx1;this._FL2=_zL2.ty1;}this._GL2();Object.defineProperties(this,{gmlposx:{enumerable:true,get :function(){return this._zH;},set :function(_k4){this._zH=yyGetReal(_k4);this._GL2();}},gmlvalue:{enumerable:true,get :function(){return this._BL2;},set :function(_k4){this._BL2=yyGetReal(_k4);this._GL2();}}});}var _HL2=[];/*@constructor */function _Pl(_zL2){_AL2.call(this);this.__type="[AnimCurveChannel]";this._Kl="";this._IL2=0;this._JL2=0;this._KL2=0;this._LL2=[];
this._ML2=0;this._NL2=[];if((_zL2!=null)&&(_zL2!=undefined)){this._Kl=_zL2.name;this._IL2=_zL2.function;this._JL2=_zL2.iterations;this._KL2=_zL2.points.length;this._LL2=[];for(var _F62=0;_F62<this._KL2;++_F62){this._LL2[_F62]=new _Xl(_zL2.points[_F62]);}}this._GL2();Object.defineProperties(this,{gmlname:{enumerable:true,get :function(){return this._Kl;},set :function(_k4){this._Kl=yyGetString(_k4);}},gmltype:{enumerable:true,get :function(){return this._IL2;},set :function(_k4){_k4=yyGetInt32(_k4);_k4=_q7(_k4,
0);this._IL2=_k4;this._OL2();this._PL2=_QL2();}},gmliterations:{enumerable:true,get :function(){return this._JL2;},set :function(_k4){_k4=yyGetInt32(_k4);_k4=_q7(_k4,0);this._JL2=_k4;this._OL2();this._PL2=_QL2();}},gmlnumPoints:{enumerable:true,get :function(){return this._KL2;}},gmlpoints:{enumerable:true,get :function(){return this._LL2;},set :function(_k4){if(_k4 instanceof Array){this._LL2=_k4;this._KL2=_k4.length;this._OL2();this._PL2=_QL2();}else {throw new Error("value must be an array of channels");}
}}});this._Ql=function(_96){if(this._RL2()){this._SL2();this._PL2=_TL2();}if(_96<0.0)_96=0.0;if(_96>1.0)_96=1.0;var start=0;var end=this._ML2-1;var _Bi=end>>1;while(_Bi!=start){if(this._NL2[_Bi]._zH>_96){end=_Bi;}else {start=_Bi;}_Bi=(start+end)>>1;}var _f7=this._NL2[_Bi]._zH;var _h7=this._NL2[_Bi+1]._zH;if(_f7==_h7){return this._NL2[_Bi]._BL2;}var _QQ=this._NL2[_Bi]._BL2;var _cA=this._NL2[_Bi+1]._BL2;var ratio=(_96-_f7)/(_h7-_f7);var _Je=((_cA-_QQ)*ratio)+_QQ;return _Je;};this._SL2=function(_QY,_UL2,_VL2){
if(_QY==undefined)_QY=false;if(_UL2==undefined)_UL2=true;if(_VL2==undefined)_VL2=true;this._OL2();if(this._IL2==_WL2){this._XL2(_QY,_UL2,_VL2);}else if(this._IL2==_YL2){this._ZL2();}else {var _Up2=this._KL2;for(var _J6=0;_J6<_Up2;_J6++){var __L2=this._0M2();__L2._zH=this._LL2[_J6]._zH;__L2._BL2=this._LL2[_J6]._BL2;}}for(var i=0;i<_Up2;i++){this._PL2=_q7(this._PL2,this._LL2[i]._PL2);}};this._XL2=function(_QY,_UL2,_VL2){var _Up2=this._KL2;if(_Up2<2){_q5("Cannot evaluate catmull-rom animation curve, a minimum of 2 points is required");
return;}var _1M2=_Up2+2;var scale=1.0;var offset=0.0;if(_VL2){var _qi=this._LL2[0]._BL2;var _ri=_qi;for(var i=1;i<_Up2;i++){_qi=_r7(_qi,this._LL2[i]._BL2);_ri=_q7(_ri,this._LL2[i]._BL2);}var __r=_ri-_qi;offset=_qi;if(__r>1.0)scale=__r;var _2M2=1.0/scale;var _mj=2;for(var i=0;i<_Up2;i++){_HL2[_mj++]=this._LL2[i]._zH;_HL2[_mj++]=(this._LL2[i]._BL2-offset)*_2M2;}}else {_mj=2;for(var i=0;i<_Up2;i++){_HL2[_mj++]=this._LL2[i]._zH;_HL2[_mj++]=this._LL2[i]._BL2;}}_HL2[0]=_HL2[2];_HL2[1]=_HL2[3];var c=_1M2*2;_HL2[c-2]=_HL2[c-4];
_HL2[c-1]=_HL2[c-3];var alpha=0.5;var end=(_QY==true)?_1M2:_1M2-3;for(var i=0;i<end;++i){var _Dn1=i,_vn1=i+1,_wn1=i+2,_3M2=i+3;var _4M2=_HL2[_Dn1*2];var _Fm2=_HL2[_vn1*2];var _Hm2=_HL2[_wn1*2];var _Jm2=_HL2[_3M2*2];var _5M2=_HL2[_Dn1*2+1];var _Gm2=_HL2[_vn1*2+1];var _Im2=_HL2[_wn1*2+1];var _Km2=_HL2[_3M2*2+1];var _cr1=_6M2(0,_4M2,_5M2,_Fm2,_Gm2,alpha);var _dr1=_6M2(_cr1,_Fm2,_Gm2,_Hm2,_Im2,alpha);var _Sm2=_6M2(_dr1,_Hm2,_Im2,_Jm2,_Km2,alpha);var step=(_dr1-_cr1)/this._JL2;var _O6=_Fm2;var _P6=_Hm2;for(var _s7=_cr1;
_s7<=_dr1;_s7+=step){var _7M2=(_cr1-_s7)/(_cr1)*_4M2+(_s7)/(_cr1)*_Fm2;var _8M2=(_cr1-_s7)/(_cr1)*_5M2+(_s7)/(_cr1)*_Gm2;var _9M2=(_dr1-_s7)/(_dr1-_cr1)*_Fm2+(_s7-_cr1)/(_dr1-_cr1)*_Hm2;var _aM2=(_dr1-_s7)/(_dr1-_cr1)*_Gm2+(_s7-_cr1)/(_dr1-_cr1)*_Im2;var _bM2=(_Sm2-_s7)/(_Sm2-_dr1)*_Hm2+(_s7-_dr1)/(_Sm2-_dr1)*_Jm2;var _cM2=(_Sm2-_s7)/(_Sm2-_dr1)*_Im2+(_s7-_dr1)/(_Sm2-_dr1)*_Km2;var _dM2=(_dr1-_s7)/(_dr1)*_7M2+(_s7)/(_dr1)*_9M2;var _eM2=(_dr1-_s7)/(_dr1)*_8M2+(_s7)/(_dr1)*_aM2;var _fM2=(_Sm2-_s7)/(_Sm2-_cr1)*_9M2+(_s7-_cr1)/(_Sm2-_cr1)*_bM2;
var _gM2=(_Sm2-_s7)/(_Sm2-_cr1)*_aM2+(_s7-_cr1)/(_Sm2-_cr1)*_cM2;var _po=(_dr1-_s7)/(_dr1-_cr1)*_dM2+(_s7-_cr1)/(_dr1-_cr1)*_fM2;var _qo=(_dr1-_s7)/(_dr1-_cr1)*_eM2+(_s7-_cr1)/(_dr1-_cr1)*_gM2;if(_UL2){_po=_q7(_po,_O6);_po=_r7(_po,_P6);_O6=_po;}var __L2=this._0M2();__L2._zH=_po;__L2._BL2=(_qo*scale)+offset;}}if(_QY==false){var __L2=this._0M2();__L2._zH=this._LL2[_Up2-1]._zH;__L2._BL2=this._LL2[_Up2-1]._BL2;}};this._ZL2=function(){var _Up2=this._KL2;if(_Up2<2){_q5("Cannot evaluate bezier animation curve, a minimum of 2 points is required");
return;}var _mT=this._JL2*2;var _zc1=1.0/_mT;for(var i=0;i<_Up2-1;++i){var _fp=this._LL2[i];var _hM2=this._LL2[i+1];var _4M2=_fp._zH;var _5M2=_fp._BL2;var _Fm2=_fp._zH+_fp._EL2;var _Gm2=_fp._BL2+_fp._FL2;var _Hm2=_hM2._zH+_hM2._CL2;var _Im2=_hM2._BL2+_hM2._DL2;var _Jm2=_hM2._zH;var _Km2=_hM2._BL2;for(var _J6=0;_J6<_mT;++_J6){var _s7=_J6*_zc1;var _dr1=_s7*_s7;var _Sm2=_dr1*_s7;var _iM2=1-_s7;var _jM2=_iM2*_iM2;var _kM2=_jM2*_iM2;var _Cb=(_4M2*_kM2)+(3*_Fm2*_jM2*_s7)+(3*_Hm2*_iM2*_dr1)+(_Jm2*_Sm2);var _Db=(_5M2*_kM2)+(3*_Gm2*_jM2*_s7)+(3*_Im2*_iM2*_dr1)+(_Km2*_Sm2);
var __L2=this._0M2();__L2._zH=_Cb;__L2._BL2=_Db;}}var _lM2=this._LL2[_Up2-1];var __L2=this._0M2();__L2._zH=_lM2._zH;__L2._BL2=_lM2._BL2;};this._OL2=function(){this._ML2=0;};this._mM2=function(_nM2){if(this._RL2()){this._SL2();this._PL2=_TL2();}_nM2._Up2=this._ML2;_nM2._NL2=this._NL2;return _nM2;};this._0M2=function(){var _oM2=new _Xl();if(this._NL2==undefined){this._NL2=[];}this._NL2[this._ML2]=_oM2;this._ML2=this._ML2+1;return _oM2;};this._RL2=function(){if(this._ML2==0){return true;}else {if(this._pM2<_TL2()){
var _Yb1=false;for(var i=0;i<this._Up2;i++){if((this._LL2[i]!=null)&&(this._LL2[i]._YT1(this._PL2))){_Yb1=true;break;}}this._pM2=_TL2();return _Yb1;}else {return false;}}};this._qM2=function(){var _Yb1=false;for(var i=0;i<this._Up2;i++){if((this._LL2[i]!=null)&&(this._LL2[i]._YT1(this._PL2))){_Yb1=true;break;}}if(_Yb1){this._SL2();}};}/*@constructor */function _Vl(_zL2){_AL2.call(this);this.__type="[AnimCurve]";this.pName="";this._rM2=0;this._Hl=0;this._Jl=[];this._Sl=false;if((_zL2!=null)&&(_zL2!=undefined)){
this.pName=_zL2.pName;this._rM2=_zL2.graphType;this._Hl=_zL2.channels.length;this._Jl=[];for(var _sM2=0;_sM2<this._Hl;++_sM2){this._Jl[_sM2]=new _Pl(_zL2.channels[_sM2]);}this._Sl=true;}this._GL2();Object.defineProperties(this,{gmlname:{enumerable:true,get :function(){return this.pName;},set :function(_k4){this.pName=yyGetString(_k4);this._YT1(this._PL2);this._PL2=_QL2();}},gmlnumChannels:{enumerable:true,get :function(){return this._Hl;}},gmlgraphType:{enumerable:true,get :function(){return this._rM2;},
set :function(_k4){this._rM2=yyGetInt32(_k4);}},gmlchannels:{enumerable:true,get :function(){return this._Jl;},set :function(_k4){if(_k4 instanceof Array){this._Jl=_k4;this._Hl=_k4.length;this._YT1(this._PL2);this._PL2=_QL2();}else {throw new Error("value must be an array of channels");}}}});this._qM2=function(){var _tM2=this._PL2;for(var i=0;i<this._Hl;i++){if((this._Jl[i]!=null)&&(this._Jl[i]._YT1(_tM2))){this._PL2=_q7(this._PL2,this._Jl[i]._PL2);}}};}function _6M2(_6I,_F7,_G7,_77,_87,_ga){var _05=(_77-_F7)*(_77-_F7)+(_87-_G7)*(_87-_G7);
if(_05==0.0)_05=0.0001;var __4=Math.sqrt(_05);var c=Math.pow(__4,_ga);return c+_6I;}_Vl.prototype._Ql=function(_a4,_uM2,_vM2,_wM2,_xM2,_yM2){if(_yM2==undefined)_yM2=1.0;var _zM2=this._Jl[_uM2];var _AM2={_Up2:0,_NL2:[]};_zM2._mM2(_AM2);var _27=_AM2._Up2;var _BM2=_AM2._NL2;for(var i=0;i<_27;i++){if(_BM2[i]!=null){var __L2=_a4._0M2(_vM2);__L2._zH=_wM2+_BM2[i]._zH*_xM2;__L2._BL2=_BM2[i]._BL2*_yM2;}}};/*@constructor */function _AI2(){this.AnimCurves=[];}_AI2.prototype._Vf=function(_zL2){var _3m=null;if(_zL2!=null){
_3m=new _Vl(_zL2);}this.AnimCurves[this.AnimCurves.length]=_3m;};_AI2.prototype._Rl=function(){var _3m=new _Vl();var i;for(i=0;i<this.AnimCurves.length;i++){if(this.AnimCurves[i]==null){this.AnimCurves[i]=_3m;return _3m;}}this.AnimCurves[this.AnimCurves.length]=_3m;return _3m;};_AI2.prototype._Tl=function(_CM2){if(typeof(_CM2)=="object"){var i;for(i=0;i<this.AnimCurves.length;i++){if(this.AnimCurves[i]==_CM2){this.AnimCurves[i]=null;return;}}}else {if((_CM2>=0)&&(_DM2<this.AnimCurves.length)){this.AnimCurves[_CM2]=null;
return;}}};_AI2.prototype._n6=function(_c5){if((_c5<0)||(_c5>=this.AnimCurves.length)){return undefined;}return this.AnimCurves[_c5];};_AI2.prototype._Dl=function(_c5){if((_c5<0)||(_c5>=this.AnimCurves.length)){return undefined;}return this.AnimCurves[_c5];};_AI2.prototype._Wl=function(_CM2){if((typeof(_CM2)=="object")&&(_CM2 instanceof _Vl)){var i;for(i=0;i<this.AnimCurves.length;i++){if(this.AnimCurves[i]==_CM2){return true;}}}return false;};_AI2.prototype._fC=function(_w4){for(var i=0;i<this.AnimCurves.length;
i++){if(this.AnimCurves[i].pName==_w4){return i;}}return -1;};_AI2.prototype._tC=function(){var ids=[];for(var i=0;i<this.AnimCurves.length;++i){if(this.AnimCurves[i]){ids.push(i);}}return ids;};function _oC(_s4){var _Al=_Cl._n6(_s4);if(_Al!==undefined&&_Al!==null)return true;return false;}function _pC(_s4){var _Al=_Cl._n6(_s4);if(_Al!==undefined&&_Al!==null)return _Al.pName;return "";}var _EM2=0,_FM2=1,_gb1=2,_9n=3,_Aa1=4,_2G=5,_hx=6,_GM2=7,_gU=8,_L91=9,_Wf=10,_X61=11,_HM2=0,_bx=1,_fx=-1,_RF=0,_IM2=1,_QF=-1;
var _JM2=[];var _KM2=[];function _LM2(_ck,_lU1){_JM2.push(_ck);_KM2.push(_lU1);}function _ax(_ck){var i=0;for(i=0;i<_JM2.length;i++){if(_JM2[i]==_ck){var _Tf=_KM2[i];_KM2.splice(i,1);_JM2.splice(i,1);return _Tf;}}return undefined;}/*@constructor */function _MM2(){this._NM2="";this._OM2=-1;this._Yf=0;this._gl=null;this._PM2=_EM2;this._Zf=false;}function _7n(_Y3){var _k5,_n5,_Tf=_ax(_Y3.currentTarget);if(!_Tf)return;_Tf._Zf=true;_Tf._Yf=_bx;if(_Tf._PM2==_gb1){var _Px=_m6._n6(_Tf._OM2);if(_Px==undefined){_Tf._Yf=_fx;
return;}if(_Px===null){_Tf._Yf=_fx;return;}if(!_Px._l5){_Tf._Yf=_fx;return;}if(!_Px._l5[0]){_Tf._Yf=_fx;return;}if(!_Px._l5[0].texture){_Tf._Yf=_fx;return;}_n5=_Px._l5[0].texture;_n5._z9=undefined;var w=_n5.width;var h=_n5.height;var _QM2=Math.floor(w/_Px._n7);var x=0;_Px.width=_QM2;_Px.height=h;_Px._XH.right=_QM2;_Px._XH.bottom=h;_Px._La1();for(var i=0;i<_Px._n7;i++){_k5=_Px._l5[i];_k5.x=x;_k5.w=_QM2;_k5.h=h;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5._b9=[];_k5._c9=0;_k5._d9=4;
x+=_QM2;}if(_09){if(_Px._w9!=undefined){if(_Px._w9==true){for(var i=0;i<_Px._n7;i++){_y9(_Px._l5[i]);if(_Px._l5[i].texture._z9){_A9(_k5.texture._z9);}}}}}return;}if(_Tf._PM2==_9n){var _3m=_0m._1m(_Tf._OM2);if(_3m===null)return;_k5=_3m._6m;_n5=_k5.texture;_n5._z9=undefined;_k5.w=_n5.width;_k5.h=_n5.height;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5._b9=[];_k5._c9=0;_k5._d9=4;return;}if(_Tf._PM2==_Aa1){_Tf._gl.complete=true;var _za1=_yC._n6(_Tf._OM2);_za1._291(_d61[_Tf._NM2]);
return;}if(_Tf._PM2==_GM2){var _Qr=_Tf._gl;if(_Qr.status!=200){_Tf._Yf=_Qr.status;}else {var _ob=_wG._n6(_Tf._gl._RM2);var offset=_Tf._gl._SM2;var _TM2=false;var size=_Tf._gl._UM2;var _ii=_Tf._gl.response;if(_ii){var _VM2=new Uint8Array(_ii);var _wd=0;if(size==-1){size=_VM2.byteLength;_TM2=true;_wd=_ob._PM2;_ob._PM2=_Hj;}if(size>_VM2.byteLength)size=_VM2.byteLength;var _WM2=buffer_tell(_Tf._gl._RM2);_ob._lU(_Qj,offset);for(var i=0;i<_VM2.byteLength;i++){var _05=_VM2[i];_ob._BG(_CG,_05);}_ob._lU(_Qj,_WM2);if(_TM2)_ob._PM2=_wd;
}}return;}}function _8n(_Y3){var _Tf=_ax(_Y3.currentTarget);if(!_Tf)return;_Tf._Zf=true;_Tf._Yf=_fx;}/*@constructor */function _CI2(){this._ul=[];this._XM2=0;}_CI2.prototype._Vf=function(_yg,_1l,_wd,_YM2){var _Tf=new _MM2();_Tf._OM2=_yg;_Tf._NM2=_1l;_Tf._gl=_YM2;_Tf._PM2=_wd;this._ul[this._XM2++]=_Tf;_LM2(_YM2,_Tf);return _Tf;};_CI2.prototype._ZM2=function(){var map=ds_map_create();g_pBuiltIn.async_load=map;var _ul=this._ul;for(var i=0;i<this._XM2;i++){var _Tf=_ul[i];if(_Tf!==null){if(_Tf._Zf){ds_map_clear(map);
if(_Tf._PM2==_gU){var _Nx=_Tf._gl;for(var prop in _Nx){if(_Nx.hasOwnProperty(prop)){ds_map_add(map,prop,_Nx[prop]);}}}else if(_Tf._PM2==_GM2){ds_map_add(map,"filename",_Tf._NM2);ds_map_add(map,"url",_Tf._NM2);}else if(_Tf._PM2==_2G){ds_map_add(map,"filename","");ds_map_add(map,"url",_Tf._NM2);ds_map_add(map,"result",_Tf._SF);ds_map_add(map,"http_status",_Tf._VF);ds_map_add(map,"response_headers",_Tf._WF);}else if(_Tf._PM2==_hx){ds_map_add(map,"username",_Tf._7x);ds_map_add(map,"password",_Tf._8x);ds_map_add(map,
"url","");ds_map_add(map,"result",_Tf.result);ds_map_add(map,"value",_Tf.value);ds_map_add(map,"http_status",0);}else if(_Tf._PM2==_L91){ds_map_add(map,"queue_id",_Tf._i61);ds_map_add(map,"buffer_id",_Tf._M91);ds_map_add(map,"queue_shutdown",_Tf._O91);}else if(_Tf._PM2==_X61){ds_map_add(map,"sound_id",_Tf._Y61);ds_map_add(map,"asset_id",_Tf._Z61);ds_map_add(map,"was_stopped",_Tf.__61);}else if(_Tf._PM2==_Wf){ds_map_add(map,"event_type",_Tf.event_type);ds_map_add(map,"pad_index",_Tf._Xf);}else {ds_map_add(map,
"url","");ds_map_add(map,"result","");ds_map_add(map,"http_status",0);ds_map_add(map,"filename",_Tf._NM2);}if(_Tf._PM2!=_gU){ds_map_add(map,"id",_Tf._OM2);ds_map_add(map,"status",_Tf._Yf);}if(_Tf._PM2==_FM2)_14._24(_ez2,0,true);else if(_Tf._PM2==_gb1)_14._24(_ez2,0,true);else if(_Tf._PM2==_9n)_14._24(_ez2,0,true);else if(_Tf._PM2==_Aa1)_14._24(_gz2,0,true);else if(_Tf._PM2==_2G)_14._24(_iz2,0,true);else if(_Tf._PM2==_hx)_14._24(_kz2,0,true);else if(_Tf._PM2==_GM2)_14._24(_691,0,true);else if(_Tf._PM2==_gU)_14._24(_oz2,
0,true);else if(_Tf._PM2==_L91)_14._24(_vz2,0,true);else if(_Tf._PM2==_X61)_14._24(_xz2,0,true);else if(_Tf._PM2==_Wf)_14._24(_n71,0,true);this._ul.splice(i,1);i--;this._XM2--;if(_Tf._PM2==_2G){ds_map_destroy(_Tf._WF);}if(_Tf._PM2==_gU&&_Tf._gl.type==_WT){buffer_delete(_Tf._gl.buffer);}}}}ds_map_destroy(map);g_pBuiltIn.async_load=-1;};/*@constructor */function _hm(){this.__type="[Background]";this.pName="";this.transparent=false;this.smooth=false;this.preload=false;this._6m=null;this.tilewidth=0;this.tileheight=0;
this.tilehsep=0;this.tilevsep=0;this.tilecolumns=0;this.frames=0;this.tilecount=0;this._sH=0;this.framelength=0;this.framedata=[];}function __M2(_zL2){var _ym=new _hm();_ym.pName=_zL2.pName;if(_zL2.transparent!=undefined)_ym.transparent=_zL2.transparent;if(_zL2.smooth!=undefined)_ym.smooth=_zL2.smooth;if(_zL2.preload!=undefined)_ym.preload=_zL2.preload;_ym._6m=_0N2(_zL2.TPEntryIndex);if(_zL2.tilewidth!=undefined)_ym.tilewidth=_zL2.tilewidth;if(_zL2.tileheight!=undefined)_ym.tileheight=_zL2.tileheight;
if(_zL2.tilehsep!=undefined)_ym.tilehsep=_zL2.tilehsep;if(_zL2.tilevsep!=undefined)_ym.tilevsep=_zL2.tilevsep;if(_zL2.tilecolumns!=undefined)_ym.tilecolumns=_zL2.tilecolumns;if(_zL2.frames!=undefined)_ym.frames=_zL2.frames;if(_zL2.tilecount!=undefined)_ym.tilecount=_zL2.tilecount;if(_zL2._sH!=undefined)_ym._sH=_zL2._sH;if(_zL2.framelength!=undefined)_ym.framelength=_zL2.framelength;for(var i=0;i<_zL2.frames*_zL2.tilecount;i++){if(_zL2.framedata[i]!=undefined)_ym.framedata[i]=_zL2.framedata[i];}return _ym;
}_hm.prototype._NH=function(_1N2,_YE){return this.framedata[(_1N2*this.frames)+_YE]};/*@constructor */function _2N2(_zL2){this._ag();if(_zL2.visible!=undefined)this.visible=_zL2.visible;if(_zL2.foreground!=undefined)this.foreground=_zL2.foreground;if(_zL2.index!=undefined)this.index=_zL2.index;if(_zL2.x!=undefined)this.x=_zL2.x;if(_zL2.y!=undefined)this.y=_zL2.y;if(_zL2.htiled!=undefined)this._NK2=_zL2.htiled;if(_zL2.vtiled!=undefined)this._OK2=_zL2.vtiled;if(_zL2.hspeed!=undefined)this._PK2=_zL2.hspeed;
if(_zL2.vspeed!=undefined)this._QK2=_zL2.vspeed;if(_zL2.stretch!=undefined)this.stretch=_zL2.stretch;if(_zL2.alpha!=undefined)this.alpha=_zL2.alpha;if(_zL2._QJ!=undefined)this._QJ=_zL2._QJ;if(_zL2.tilewidth!=undefined)this.tilewidth=_zL2.tilewidth;if(_zL2.tileheight!=undefined)this.tileheight=_zL2.tileheight;if(_zL2.tilehsep!=undefined)this.tilehsep=_zL2.tilehsep;if(_zL2.tilevsep!=undefined)this.tilevsep=_zL2.tilevsep;if(_zL2.tilecolumns!=undefined)this.tilecolumns=_zL2.tilecolumns;if(_zL2.frames!=undefined)this.frames=_zL2.frames;
if(_zL2.tilecount!=undefined)this.tilecount=_zL2.tilecount;if(_zL2._sH!=undefined)this._sH=_zL2._sH;if(_zL2._3N2!=undefined)this._3N2=_zL2._3N2;if(_zL2._4N2!=undefined)this._4N2=_zL2._4N2;}_2N2.prototype._ag=function(){this.visible=false;this.foreground=false;this.index=-1;this.x=0;this.y=0;this._NK2=true;this._OK2=true;this._PK2=0;this._QK2=0;this._OJ=1;this._PJ=1;this.stretch=false;this.alpha=1.0;this._QJ=0xffffff;};/*@constructor */function _vI2(){this.images=[];this.__l=[];}_vI2.prototype._1m=function(_s4){
return this.images[_s4];};_vI2.prototype._n6=function(_s4){return this.__l[_s4];};_vI2.prototype._tC=function(){var ids=[];for(var i=0;i<this.images.length;++i){if(this.images[i]){ids.push(i);}}return ids;};_vI2.prototype._vm=function(_s4){if(this.images[_s4]!=undefined){this.images[_s4]=undefined;}};_vI2.prototype._ag=function(){this.__l=[];};_vI2.prototype._vJ2=function(_zL2){var _3m=null;if(_zL2!=null){_3m=__M2(_zL2);}return this._jm(_3m);};_vI2.prototype._jm=function(_5N2){var i=this.images.length;this.images[i]=_5N2;
return i;};_vI2.prototype._Dm=function(_s4,_5N2){this.images[_s4]=_5N2;};_vI2.prototype._Vf=function(_zL2){var _3m=null;if(_zL2!=null){_3m=new _2N2(_zL2);}this.__l[this.__l.length]=_3m;};var _6N2=-1,_7N2=-2,_8N2=-3,_9N2=-4,_aN2=-5;var _kU=0,_Hj=1,_bN2=2,_S91=3,_cN2=4;var _dN2=0,_CG=1,_eN2=2,_T91=3,_s91=4,_Ij=5,_Rj=6,_fN2=7,_z82=8,_gN2=9,_hN2=10,_iN2=11,_jN2=12,_kN2=13;var _Qj=0,_lN2=1,_Q91=2;function _mN2(data,_nN2,_xU1,_oN2,_pN2,_qN2){var _2h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var _3h,_4h,_5h,_6h,_7h,_8h,_9h,_ah;var i=0;var _bh=_oN2;var _RA="";var _rN2=Math.floor(_qN2/3);i=_rN2*4;var _sN2=_qN2%3;if(!data){return data;}data+='';do {_6h=_7h=_8h=_9h=-1;while(_6h<0){_6h=_2h.indexOf(data.charAt(i++));}while(_7h<0){_7h=_2h.indexOf(data.charAt(i++));}while(_8h<0){_8h=_2h.indexOf(data.charAt(i++));}while(_9h<0){_9h=_2h.indexOf(data.charAt(i++));}var _tN2=(_6h<<2)|(_7h>>4);var _uN2=((_7h&15)<<4)|(_8h>>2);var _vN2=((_8h&3)<<6)|_9h;_xU1[_bh++]=_tN2;if(_bh>=_nN2)return _xU1;if(_8h!=64){_xU1[_bh++]=_uN2;
if(_bh>=_nN2)return _xU1;}if(_9h!=64){_xU1[_bh++]=_vN2;if(_bh>=_nN2)return _xU1;}}while(i<data.length);var _wN2=_bh;if(_pN2&&_wN2<_nN2){_xU1[_wN2++]='\0';}return _xU1;}function _xN2(input,length){var _yN2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var _tN2,_uN2,_vN2="";var _zN2,_AN2,_BN2,_CN2="";var i=0;do {_tN2=input.charCodeAt(i++);_uN2=input.charCodeAt(i++);_vN2=input.charCodeAt(i++);_zN2=_tN2>>2;_AN2=((_tN2&3)<<4)|(_uN2>>4);_BN2=((_uN2&15)<<2)|(_vN2>>6);_CN2=_vN2&63;
if(isNaN(_uN2)){_BN2=_CN2=64;}else if(isNaN(_vN2)){_CN2=64;}output=output+_yN2.charAt(_zN2)+_yN2.charAt(_AN2)+_yN2.charAt(_BN2)+_yN2.charAt(_CN2);_tN2=_uN2=_vN2="";_zN2=_AN2=_BN2=_CN2="";}while(i<length);return output;}function _6U1(_id){var size=1;while(size<=1024){if(_id<=size)return size;size=size<<1;}return 1024;}/*@constructor */function _DN2(_id,_wd,_EN2,_FN2){_EN2=_6U1(_EN2&0x1ff);this._GN2=_id+_EN2;this._PM2=_wd;this._HN2=_id;this._IN2=_EN2;this._JN2=0;this._xG=0;this._KN2=0;this._zG=new ArrayBuffer(_id);
this._6V=new DataView(this._zG);if(_FN2!=undefined&&_FN2.length>0){var _LN2=_r7(_FN2.length,_id);this._KN2=_LN2;var _MN2=new Uint8Array(this._zG);for(var i=0;i<_LN2;i++){_MN2[i]=_FN2[i];}}}DataView.prototype._NN2=function(byteOffset,_ON2){const _PN2=this.getUint16(byteOffset,_ON2);const sign=(_PN2&0x8000)?-1:1;const _vU1=(_PN2>>10)&0x1F;const _QN2=_PN2&0x3FF;if(_vU1===0){if(_QN2===0){return sign*0.0;}else {return sign*Math.pow(2,-14)*(_QN2/1024);}}else if(_vU1===31){if(_QN2===0){return(sign===1)?Infinity:-Infinity;
}else {return NaN;}}else {return sign*Math.pow(2,_vU1-15)*(1+_QN2/1024);}};DataView.prototype._RN2=function(offset,value,_ON2=true){let sign=0;let _vU1=0;let _QN2=0;if(isNaN(value)){_QN2=0x200;_vU1=0x1F;}else if(value===Infinity||value===-Infinity){_vU1=0x1F;}else if(value===0){sign=(1/value===-Infinity)?0x8000:0;}else {sign=value<0?0x8000:0;value=Math.abs(value);if(value>=Math.pow(2,-14)){let _SN2=Math.floor(Math.log2(value)+15);_vU1=_SN2;_QN2=Math.floor((value/Math.pow(2,_vU1-15)-1)*1024);if(_QN2===1024){
_SN2+=1;_vU1=_SN2;_QN2=0;}if(_SN2>30){_vU1=0x1F;_QN2=0;}}else {_QN2=Math.floor(value/Math.pow(2,-24));}}const _TN2=sign|(_vU1<<10)|_QN2;this.setUint16(offset,_TN2,_ON2);};function _UN2(_wd){switch(_wd){case _CG:case _eN2:case _hN2:return 1;case _T91:case _s91:case _fN2:return 2;case _Ij:case _Rj:case _z82:return 4;case _gN2:return 8;}return -1;}_DN2.prototype._VN2=function(_d_1){var _WN2=new ArrayBuffer(_d_1);var _XN2=new Uint8Array(this._zG);var _YN2=new Uint8Array(_WN2);if(this._zG.byteLength>_d_1){for(var i=0;i<_d_1;
i++){_YN2[i]=_XN2[i];}}else {_YN2.set(_XN2);}this._zG=_WN2;this._6V=new DataView(this._zG);this._HN2=_d_1;this._ZN2(-1);};_DN2.prototype._ZN2=function(_id,_l8){if(_id==undefined)_id=-1;if(_l8==undefined)_l8=false;var size=_id;if(size==-1)size=this._xG;if(_l8){this._KN2=size;}else {this._KN2=_q7(this._KN2,size);this._KN2=_r7(this._KN2,this._HN2);}};function _OA(_Uw){var _ww="";for(var i=0;i<_Uw.length;i++){var _Nc1=_Uw.charCodeAt(i);if(_Nc1<0x80){_ww+=String.fromCharCode(_Nc1&0x7f);}else if(_Nc1<0x0800){_ww+=String.fromCharCode((((_Nc1>>6)&0x1f)|0xc0));
_ww+=String.fromCharCode((_Nc1&0x3f)|0x80);}else if(_Nc1<0x10000){_ww+=String.fromCharCode(((_Nc1>>12)&0x0f)|0xe0);_ww+=String.fromCharCode(((_Nc1>>6)&0x3f)|0x80);_ww+=String.fromCharCode((_Nc1&0x3f)|0x80);}else {_ww+=String.fromCharCode(((_Nc1>>18)&0x07)|0xf0);_ww+=String.fromCharCode(((_Nc1>>12)&0x3f)|0x80);_ww+=String.fromCharCode(((_Nc1>>6)&0x3f)|0x80);_ww+=String.fromCharCode((_Nc1&0x3f)|0x80);}}return _ww;}_DN2.prototype.__N2=function(_wd){this._xG=(((this._xG+this._JN2)+(this._IN2-1))&~(this._IN2-1))-this._JN2;
if(this._xG>=this._HN2&&this._PM2==_bN2){while(this._xG>=this._HN2){this._0O2();this._xG-=this._HN2;}}if(this._xG>=this._HN2)return(_wd==_iN2)?"":_8N2;var _bc;switch(_wd){case _hN2:_bc=this._6V.getUint8(this._xG++);if(_bc==1){_bc=true;}else {_bc=false;}break;case _CG:{_bc=this._6V.getUint8(this._xG++);}break;case _iN2:case _kN2:{_bc="";var chr;var _QA=0;while(this._xG<this._KN2){var _H5=0;chr=-1;_QA=this._6V.getUint8(this._xG++,true);if((_QA&0x80)==0){_H5=_QA;}else if((_QA&0xe0)==0xc0){_H5=(_QA&0x1f)<<6;_QA=this._6V.getUint8(this._xG++,
true);_H5|=(_QA&0x3f);}else if((_QA&0xf0)==0xe0){_H5=(_QA&0x0f)<<12;_QA=this._6V.getUint8(this._xG++,true);_H5|=(_QA&0x3f)<<6;_QA=this._6V.getUint8(this._xG++,true);_H5|=(_QA&0x3f);}else {_H5=(_QA&0x07)<<18;_QA=this._6V.getUint8(this._xG++,true);_H5|=(_QA&0x3f)<<12;_QA=this._6V.getUint8(this._xG++,true);_H5|=(_QA&0x3f)<<6;_QA=this._6V.getUint8(this._xG++,true);_H5|=(_QA&0x3f);chr=String.fromCharCode((_H5>>10)+0xD7C0)+String.fromCharCode((_H5&0x3FF)|0xDC00);}if(_H5==0x00)break;if(chr<0)chr=String.fromCharCode(_H5);
_bc+=chr;}}break;case _eN2:_bc=this._6V.getInt8(this._xG++);break;case _T91:_bc=this._6V.getUint16(this._xG,true);this._xG+=2;break;case _s91:_bc=this._6V.getInt16(this._xG,true);this._xG+=2;break;case _Rj:_bc=this._6V.getInt32(this._xG,true);this._xG+=4;break;case _Ij:_bc=new Long(this._6V.getUint32(this._xG,true),0);this._xG+=4;break;case _fN2:_bc=this._6V._NN2(this._xG,true);this._xG+=2;break;case _z82:_bc=this._6V.getFloat32(this._xG,true);this._xG+=4;break;case _gN2:_bc=this._6V.getFloat64(this._xG,
true);this._xG+=8;break;case _jN2:var _kc1=this._6V.getUint32(this._xG,true);this._xG+=4;var _Kc1=this._6V.getUint32(this._xG,true);this._xG+=4;_bc=new Long(_kc1,_Kc1);break;}return _bc;};_DN2.prototype._0O2=function(){this._JN2=(this._JN2+this._HN2)%this._IN2;};function _1O2(_wd){var _2O2=0;switch(_wd){case _hN2:case _CG:case _eN2:_2O2=1;break;case _T91:case _s91:_2O2=2;break;case _Rj:case _Ij:case _z82:_2O2=4;break;case _gN2:case _jN2:_2O2=8;break;}return _2O2;}function _3O2(){this.i=new Uint32Array(2);this._4O2=new Uint32Array(4);
this._Go=new Uint8Array(64);this._5O2=new Uint8Array(16);this.i[0]=this.i[1]=0;this._4O2[0]=this._4O2[1]=this._4O2[2]=this._4O2[3]=0;for(var i=0;i<64;i++)this._Go[i]=0;for(var i=0;i<16;i++)this._5O2[i]=0;}_3O2.prototype._6O2=function(){var _O7="0123456789abcdef";var __h="";for(var h=0;h<16;h++){var __4=this._5O2[h];__h+=_O7[((__4>>4)&0xf)];__h+=_O7[(__4&0xf)];}return __h;};function _7O2(){var _8O2=new _3O2();_8O2.i[0]=_8O2.i[1]=0;_8O2._4O2[0]=0x67452301;_8O2._4O2[1]=0xefcdab89;_8O2._4O2[2]=0x98badcfe;_8O2._4O2[3]=0x10325476;
return _8O2;}var _9O2=new Uint32Array(16);function _aO2(x,y,z){_9O2[0]=x;_9O2[1]=y;_9O2[2]=z;return(((_9O2[0])&(_9O2[1]))|((~_9O2[0])&(_9O2[2])));}function _bO2(x,y,z){_9O2[0]=x;_9O2[1]=y;_9O2[2]=z;return(((_9O2[0])&(_9O2[2]))|((_9O2[1])&(~_9O2[2])));}function _cO2(x,y,z){_9O2[0]=x;_9O2[1]=y;_9O2[2]=z;return((_9O2[0])^(_9O2[1])^(_9O2[2]));}function _dO2(x,y,z){_9O2[0]=x;_9O2[1]=y;_9O2[2]=z;return((_9O2[1])^((_9O2[0])|(~_9O2[2])));}var _eO2=new Uint32Array(2);function _fO2(x,_c7){_eO2[0]=x;_eO2[1]=((_eO2[0]<<_c7)&0xffffffff)|((_eO2[0]>>(32-_c7))&((1<<_c7)-1));
return _eO2[1];}var _gO2=new Uint32Array(7);function _hO2(_05,__4,c,_Xo,x,__h,_bh){_gO2[0]=_05;_gO2[1]=__4;_gO2[2]=c;_gO2[3]=_Xo;_gO2[4]=x;_gO2[5]=__h;_gO2[6]=_bh;_gO2[0]+=_aO2(_gO2[1],_gO2[2],_gO2[3])+_gO2[4]+(_gO2[6]);_gO2[0]=_fO2(_gO2[0],_gO2[5]);_gO2[0]+=_gO2[1];return _gO2[0];}function _iO2(_05,__4,c,_Xo,x,__h,_bh){_gO2[0]=_05;_gO2[1]=__4;_gO2[2]=c;_gO2[3]=_Xo;_gO2[4]=x;_gO2[5]=__h;_gO2[6]=_bh;_gO2[0]+=_bO2(_gO2[1],_gO2[2],_gO2[3])+_gO2[4]+(_gO2[6]);_gO2[0]=_fO2(_gO2[0],_gO2[5]);_gO2[0]+=_gO2[1];
return _gO2[0];}function _jO2(_05,__4,c,_Xo,x,__h,_bh){_gO2[0]=_05;_gO2[1]=__4;_gO2[2]=c;_gO2[3]=_Xo;_gO2[4]=x;_gO2[5]=__h;_gO2[6]=_bh;_gO2[0]+=_cO2(_gO2[1],_gO2[2],_gO2[3])+_gO2[4]+(_gO2[6]);_gO2[0]=_fO2(_gO2[0],_gO2[5]);_gO2[0]+=_gO2[1];return _gO2[0];}function _kO2(_05,__4,c,_Xo,x,__h,_bh){_gO2[0]=_05;_gO2[1]=__4;_gO2[2]=c;_gO2[3]=_Xo;_gO2[4]=x;_gO2[5]=__h;_gO2[6]=_bh;_gO2[0]+=_dO2(_gO2[1],_gO2[2],_gO2[3])+_gO2[4]+(_gO2[6]);_gO2[0]=_fO2(_gO2[0],_gO2[5]);_gO2[0]+=_gO2[1];return _gO2[0];}function _y32(_lO2,
_mO2){var _05=_lO2[0],__4=_lO2[1],c=_lO2[2],_Xo=_lO2[3];var _nO2=7;var _oO2=12;var _pO2=17;var _qO2=22;_05=_hO2(_05,__4,c,_Xo,_mO2[0],_nO2,0xD76AA478);_Xo=_hO2(_Xo,_05,__4,c,_mO2[1],_oO2,0xE8C7B756);c=_hO2(c,_Xo,_05,__4,_mO2[2],_pO2,0x242070DB);__4=_hO2(__4,c,_Xo,_05,_mO2[3],_qO2,0xC1BDCEEE);_05=_hO2(_05,__4,c,_Xo,_mO2[4],_nO2,0xF57C0FAF);_Xo=_hO2(_Xo,_05,__4,c,_mO2[5],_oO2,0x4787C62A);c=_hO2(c,_Xo,_05,__4,_mO2[6],_pO2,0xA8304613);__4=_hO2(__4,c,_Xo,_05,_mO2[7],_qO2,0xFD469501);_05=_hO2(_05,__4,c,_Xo,
_mO2[8],_nO2,0x698098D8);_Xo=_hO2(_Xo,_05,__4,c,_mO2[9],_oO2,0x8B44F7AF);c=_hO2(c,_Xo,_05,__4,_mO2[10],_pO2,0xFFFF5BB1);__4=_hO2(__4,c,_Xo,_05,_mO2[11],_qO2,0x895CD7BE);_05=_hO2(_05,__4,c,_Xo,_mO2[12],_nO2,0x6B901122);_Xo=_hO2(_Xo,_05,__4,c,_mO2[13],_oO2,0xFD987193);c=_hO2(c,_Xo,_05,__4,_mO2[14],_pO2,0xA679438E);__4=_hO2(__4,c,_Xo,_05,_mO2[15],_qO2,0x49B40821);var _rO2=5;var _sO2=9;var _tO2=14;var _uO2=20;_05=_iO2(_05,__4,c,_Xo,_mO2[1],_rO2,0xF61E2562);_Xo=_iO2(_Xo,_05,__4,c,_mO2[6],_sO2,0xC040B340);
c=_iO2(c,_Xo,_05,__4,_mO2[11],_tO2,0x265E5A51);__4=_iO2(__4,c,_Xo,_05,_mO2[0],_uO2,0xE9B6C7AA);_05=_iO2(_05,__4,c,_Xo,_mO2[5],_rO2,0xD62F105D);_Xo=_iO2(_Xo,_05,__4,c,_mO2[10],_sO2,0x02441453);c=_iO2(c,_Xo,_05,__4,_mO2[15],_tO2,0xD8A1E681);__4=_iO2(__4,c,_Xo,_05,_mO2[4],_uO2,0xE7D3FBC8);_05=_iO2(_05,__4,c,_Xo,_mO2[9],_rO2,0x21E1CDE6);_Xo=_iO2(_Xo,_05,__4,c,_mO2[14],_sO2,0xC33707D6);c=_iO2(c,_Xo,_05,__4,_mO2[3],_tO2,0xF4D50D87);__4=_iO2(__4,c,_Xo,_05,_mO2[8],_uO2,0x455A14ED);_05=_iO2(_05,__4,c,_Xo,
_mO2[13],_rO2,0xA9E3E905);_Xo=_iO2(_Xo,_05,__4,c,_mO2[2],_sO2,0xFCEFA3F8);c=_iO2(c,_Xo,_05,__4,_mO2[7],_tO2,0x676F02D9);__4=_iO2(__4,c,_Xo,_05,_mO2[12],_uO2,0x8D2A4C8A);var _vO2=4;var _wO2=11;var _xO2=16;var _yO2=23;_05=_jO2(_05,__4,c,_Xo,_mO2[5],_vO2,0xFFFA3942);_Xo=_jO2(_Xo,_05,__4,c,_mO2[8],_wO2,0x8771F681);c=_jO2(c,_Xo,_05,__4,_mO2[11],_xO2,0x6D9D6122);__4=_jO2(__4,c,_Xo,_05,_mO2[14],_yO2,0xFDE5380C);_05=_jO2(_05,__4,c,_Xo,_mO2[1],_vO2,0xA4BEEA44);_Xo=_jO2(_Xo,_05,__4,c,_mO2[4],_wO2,0x4BDECFA9);
c=_jO2(c,_Xo,_05,__4,_mO2[7],_xO2,0xF6BB4B60);__4=_jO2(__4,c,_Xo,_05,_mO2[10],_yO2,0xBEBFBC70);_05=_jO2(_05,__4,c,_Xo,_mO2[13],_vO2,0x289B7EC6);_Xo=_jO2(_Xo,_05,__4,c,_mO2[0],_wO2,0xEAA127FA);c=_jO2(c,_Xo,_05,__4,_mO2[3],_xO2,0xD4EF3085);__4=_jO2(__4,c,_Xo,_05,_mO2[6],_yO2,0x04881D05);_05=_jO2(_05,__4,c,_Xo,_mO2[9],_vO2,0xD9D4D039);_Xo=_jO2(_Xo,_05,__4,c,_mO2[12],_wO2,0xE6DB99E5);c=_jO2(c,_Xo,_05,__4,_mO2[15],_xO2,0x1FA27CF8);__4=_jO2(__4,c,_Xo,_05,_mO2[2],_yO2,0xC4AC5665);var _zO2=6;var _AO2=10;var _BO2=15;
var _CO2=21;_05=_kO2(_05,__4,c,_Xo,_mO2[0],_zO2,0xF4292244);_Xo=_kO2(_Xo,_05,__4,c,_mO2[7],_AO2,0x432AFF97);c=_kO2(c,_Xo,_05,__4,_mO2[14],_BO2,0xAB9423A7);__4=_kO2(__4,c,_Xo,_05,_mO2[5],_CO2,0xFC93A039);_05=_kO2(_05,__4,c,_Xo,_mO2[12],_zO2,0x655B59C3);_Xo=_kO2(_Xo,_05,__4,c,_mO2[3],_AO2,0x8F0CCC92);c=_kO2(c,_Xo,_05,__4,_mO2[10],_BO2,0xFFEFF47D);__4=_kO2(__4,c,_Xo,_05,_mO2[1],_CO2,0x85845DD1);_05=_kO2(_05,__4,c,_Xo,_mO2[8],_zO2,0x6FA87E4F);_Xo=_kO2(_Xo,_05,__4,c,_mO2[15],_AO2,0xFE2CE6E0);c=_kO2(c,
_Xo,_05,__4,_mO2[6],_BO2,0xA3014314);__4=_kO2(__4,c,_Xo,_05,_mO2[13],_CO2,0x4E0811A1);_05=_kO2(_05,__4,c,_Xo,_mO2[4],_zO2,0xF7537E82);_Xo=_kO2(_Xo,_05,__4,c,_mO2[11],_AO2,0xBD3AF235);c=_kO2(c,_Xo,_05,__4,_mO2[2],_BO2,0x2AD7D2BB);__4=_kO2(__4,c,_Xo,_05,_mO2[9],_CO2,0xEB86D391);_lO2[0]+=_05;_lO2[1]+=__4;_lO2[2]+=c;_lO2[3]+=_Xo;}function _DO2(_EO2,_FO2,_ne,_GO2){var _mO2=new Uint32Array(16);var _HO2;var i,_Tx;var _s4=0;_HO2=(_EO2.i[0]>>3)&0x3F;if((_EO2.i[0]+((_GO2<<3)&0xffffffff))<_EO2.i[0]){_EO2.i[1]++;
}_EO2.i[0]+=(_GO2<<3)&0xffffffff;_EO2.i[1]+=(_GO2>>29)&0xffffffff;while(_GO2--){_EO2._Go[_HO2++]=_FO2[_s4++];if(_HO2==0x40){for(i=0,_Tx=0;i<16;i++,_Tx+=4)_mO2[i]=(((0xffffffff&_EO2._Go[_Tx+3])<<24)|((0xffffffff&_EO2._Go[_Tx+2])<<16)|((0xffffffff&_EO2._Go[_Tx+1])<<8)|(0xffffffff&_EO2._Go[_Tx]));_y32(_EO2._4O2,_mO2);_HO2=0;}}}var _IO2=new Uint8Array(64);function _JO2(_EO2){var _mO2=new Uint32Array(16);var _HO2;var i,_Tx;var _KO2;_mO2[14]=_EO2.i[0];_mO2[15]=_EO2.i[1];_HO2=((_EO2.i[0]>>3)&0x3F);_KO2=(_HO2<56)?(56-_HO2):(120-_HO2);
_IO2[0]=0x80;_DO2(_EO2,_IO2,0,_KO2);for(i=0,_Tx=0;i<14;i++,_Tx+=4){_mO2[i]=((~~_EO2._Go[_Tx+3])<<24)|((~~_EO2._Go[_Tx+2])<<16)|((~~_EO2._Go[_Tx+1])<<8)|(~~_EO2._Go[_Tx]);}_y32(_EO2._4O2,_mO2);for(i=0,_Tx=0;i<4;i++,_Tx+=4){_EO2._5O2[_Tx]=(_EO2._4O2[i]&0xFF);_EO2._5O2[_Tx+1]=((_EO2._4O2[i]>>8)&0xFF);_EO2._5O2[_Tx+2]=((_EO2._4O2[i]>>16)&0xFF);_EO2._5O2[_Tx+3]=((_EO2._4O2[i]>>24)&0xFF);}}function _LO2(_MO2,_id,_ne){var _8O2=_7O2();var _NO2=_id;while(_NO2>0){var _OO2=_r7(_NO2,_id-_ne);_DO2(_8O2,_MO2,_ne,
_OO2);_ne=0;_NO2-=_OO2;}_JO2(_8O2);return _8O2._6O2();}function _PO2(){var _I6=-306674912;var _iB=new Array(256);for(var i=0;i<256;i++){var crc=i;var _QO2=8;while(--_QO2>=0){if((crc&1)!=0){crc=crc>>>1^_I6;}else crc>>>=1;}_iB[i]=crc;}return _iB;}var _RO2=_PO2();function _SO2(__4,_zk,_Ai){var crc=0xffffffff;var _iB=_RO2;var i=_zk;for(var _TO2=_zk+_Ai;i<_TO2;i++)crc=(_iB[(crc^__4[i])&255]^((crc>>>8)&0x00ffffff))>>>0;return crc;}_DN2.prototype._UO2=function(_ne,_id){if(this._HN2==0)return;if(_id<0)_id=this._HN2;if(this._PM2==_bN2){
while(_ne<0)_ne+=this._HN2;while(_ne>=this._HN2)_ne-=this._HN2;}else {if(_ne<0)_ne=0;if(_ne>=this._HN2)_ne=this._HN2-1;if((_ne+_id)>this._HN2)_id=this._HN2-_ne;}if(_id>this._HN2-_ne)return "";else {return _SO2(new Uint8Array(this._zG,_ne,_id),0,_id);}};_DN2.prototype._VO2=function(_ne,_id){if(this._HN2==0)return;if(_id<0)_id=this._HN2;if(this._PM2==_bN2){while(_ne<0)_ne+=this._HN2;while(_ne>=this._HN2)_ne-=this._HN2;}else {if(_ne<0)_ne=0;if(_ne>=this._HN2)_ne=this._HN2-1;if((_ne+_id)>this._HN2)_id=this._HN2-_ne;
}if(_id>this._HN2-_ne)return "";else {return _LO2(new Uint8Array(this._zG,_ne,_id),_id,0);}};_DN2.prototype._WO2=function(_ne,_id){if(this._HN2==0)return;if(_id<0)_id=this._HN2;if(this._PM2==_bN2){while(_ne<0)_ne+=this._HN2;while(_ne>=this._HN2)_ne-=this._HN2;}else {if(_ne<0)_ne=0;if(_ne>=this._HN2)_ne=this._HN2-1;if((_ne+_id)>this._HN2)_id=this._HN2-_ne;}if(_id>this._HN2-_ne)return "";else return sha1_string_utf8(String.fromCharCode.apply(null,new Uint8Array(this._zG,_ne,_id)));};_DN2.prototype._XO2=function(filename,
offset,size){_5l(filename,this._YO2(offset,size));};_DN2.prototype._ZO2=function(_ne,_id){if(this._HN2==0)return;if(_id<0)_id=this._HN2;_ne=clamp(_ne,0,this._HN2-1);_id=clamp(_id,0,this._HN2-_ne);if(_id<=0)return;var __O2=new Uint8Array(this._zG,_ne,_id);var _0P2=new Zlib.Deflate(__O2);var _1P2=_0P2.compress();return _1P2;};_DN2.prototype._2P2=function(){result=undefined;try{var _lU1=new Uint8Array(this._zG,0,this._KN2);var _Uo2=new Zlib.Inflate(_lU1);var result=_Uo2.decompress();}catch(_jw){show_debug_message("buffer decompress exception: "+_jw.message);
}return result;};_DN2.prototype._YO2=function(_ne,_id){if(this._HN2==0)return;if(_id<0)_id=this._HN2;if(_id==0)return "";if(this._PM2==_bN2){while(_ne<0)_ne+=this._HN2;while(_ne>=this._HN2)_ne-=this._HN2;}else {if(_ne<0)_ne=0;if(_ne>=this._HN2)_ne=this._HN2-1;if((_ne+_id)>this._HN2)_id=this._HN2-_ne;}if(_id>this._HN2-_ne){return "";}else {var __O2=new Uint8Array(this._zG,_ne,_id);var _rG="";for(var i=0;i<_id;i++){_rG+=String.fromCharCode(__O2[i]);}return _xN2(_rG,_id);}};_DN2.prototype._3P2=function(_4P2,
_ne){var _MN2=new Uint8Array(this._zG);return _mN2(_4P2,_MN2.length-_ne,_MN2,_ne,false,0);};_DN2.prototype._BG=function(_wd,_Ol){var _5P2;var size=0;this._xG=(((this._xG+this._JN2)+(this._IN2-1))&~(this._IN2-1))-this._JN2;if(this._xG>=this._HN2&&this._PM2==_bN2){while(this._xG>=this._HN2){this._0O2();this._xG-=this._HN2;}}if((this._xG>=this._HN2)&&(this._PM2!=_Hj)){return _7N2;}var _2O2=_1O2(_wd);if((_wd===_iN2)||(_wd===_kN2)){_5P2=_OA(_Ol);_2O2=_5P2.length;if(_wd===_iN2)_2O2++;}if((this._xG+_2O2)>this._HN2){
if(this._PM2==_Hj){var _6P2=this._HN2;var _d_1=this._HN2;if(_d_1<4)_d_1=4;while((this._xG+_2O2)>_d_1){_d_1=(_d_1<<1);}this._VN2(_d_1);}else {if(this._PM2!=_bN2){return _7N2;}}}switch(_wd){case _hN2:if(_Ol==true){_Ol=1;}else {_Ol=0;}case _CG:{this._6V.setUint8(this._xG,_Ol);this._xG++;}break;case _iN2:case _kN2:{for(var i=0;i<_5P2.length;i++){var _Nc1=_5P2.charCodeAt(i)&0xff;this._6V.setUint8(this._xG++,_Nc1,true);}if(_wd===_iN2){this._6V.setUint8(this._xG++,0,true);}}break;case _eN2:this._6V.setInt8(this._xG,
_Ol);this._xG++;break;case _T91:this._6V.setUint16(this._xG,_Ol,true);this._xG+=2;break;case _s91:this._6V.setInt16(this._xG,_Ol,true);this._xG+=2;break;case _Rj:this._6V.setInt32(this._xG,_Ol,true);this._xG+=4;break;case _Ij:this._6V.setUint32(this._xG,_Ol,true);this._xG+=4;break;case _fN2:this._6V._RN2(this._xG,_Ol,true);this._xG+=2;break;case _z82:this._6V.setFloat32(this._xG,_Ol,true);this._xG+=4;break;case _gN2:this._6V.setFloat64(this._xG,_Ol,true);this._xG+=8;break;case _jN2:var _7P2=yyGetInt64(_Ol);
this._6V.setUint32(this._xG,_7P2._kc1,true);this._xG+=4;this._6V.setUint32(this._xG,_7P2._Kc1,true);this._xG+=4;break;}this._ZN2(-1);return 0;};_DN2.prototype._8P2=function(_wd,_ne){var size=_1O2(_wd);if(_ne<0)return undefined;if(this._PM2!=_bN2){if(_ne>(this._HN2-size))return undefined;}else {while(_ne>=this._HN2){_ne-=this._HN2;}}var _bc;switch(_wd){case _hN2:_bc=this._6V.getUint8(_ne);if(_bc==1){_bc=true;}else {_bc=false;}break;case _CG:{_bc=this._6V.getUint8(_ne);}break;case _eN2:_bc=this._6V.getInt8(_ne);
break;case _T91:_bc=this._6V.getUint16(_ne,true);break;case _s91:_bc=this._6V.getInt16(_ne,true);break;case _Rj:_bc=this._6V.getInt32(_ne,true);break;case _Ij:_bc=this._6V.getUint32(_ne,true);break;case _fN2:_bc=this._6V._NN2(_ne,true);break;case _z82:_bc=this._6V.getFloat32(_ne,true);break;case _gN2:_bc=this._6V.getFloat64(_ne,true);break;case _jN2:var _kc1=this._6V.getUint32(_ne,true);var _Kc1=this._6V.getUint32(_ne+4,true);_bc=new Long(_kc1,_Kc1);break;case _iN2:case _kN2:{_bc="";var chr;var _QA=0;var _9P2=_ne;
while(_9P2<this._KN2){var _H5=0;chr=-1;_QA=this._6V.getUint8(_9P2++,true);if((_QA&0x80)==0){_H5=_QA;}else if((_QA&0xe0)==0xc0){_H5=(_QA&0x1f)<<6;_QA=this._6V.getUint8(_9P2++,true);_H5|=(_QA&0x3f);}else if((_QA&0xf0)==0xe0){_H5=(_QA&0x0f)<<12;_QA=this._6V.getUint8(_9P2++,true);_H5|=(_QA&0x3f)<<6;_QA=this._6V.getUint8(_9P2++,true);_H5|=(_QA&0x3f);}else {_H5=(_QA&0x07)<<18;_QA=this._6V.getUint8(_9P2++,true);_H5|=(_QA&0x3f)<<12;_QA=this._6V.getUint8(_9P2++,true);_H5|=(_QA&0x3f)<<6;_QA=this._6V.getUint8(_9P2++,
true);_H5|=(_QA&0x3f);chr=String.fromCharCode((_H5>>10)+0xD7C0)+String.fromCharCode((_H5&0x3FF)|0xDC00);}if(_H5==0x00)break;if(chr<0)chr=String.fromCharCode(_H5);_bc+=chr;}}break;}return _bc;};_DN2.prototype._aP2=function(_ne,_id,_wd,_Ol,_bP2,_cP2){if(this._HN2==0)return;if(_id<0)_id=this._HN2;if(this._PM2==_bN2){while(_ne<0)_ne+=this._HN2;while(_ne>=this._HN2)_ne-=this._HN2;}else {if(_ne<0)return;if(_ne>=this._HN2)return;if((_ne+_id)>this._HN2)_id=this._HN2-_ne;}var _MN2=new Uint8Array(this._zG);var _dP2=_ne;
var _eP2=_ne;var _fP2=_dP2;var _gP2=0;var _hP2=_ne+_id;var _iP2=_1O2(_wd);if((_wd===_iN2)||(_wd===_kN2)){_5P2=_OA(_Ol);_iP2=_5P2.length;if(_wd===_iN2)_iP2++;}var _jP2;if(_bP2<=0)_jP2=true;else {_jP2=false;_iP2=_r7(_iP2,_bP2);}var _kP2;if(((_jP2&&((_dP2%this._IN2)==0))||!_jP2)&&(_iP2<=_id)){_kP2=true;}else {_kP2=false;}var i;while(_gP2<_id){_eP2=_dP2%this._HN2;if(_kP2){if((_eP2+_iP2)<=this._HN2){this._lP2(_wd,_eP2,_Ol);_eP2+=_iP2;_dP2+=_iP2;this._ZN2(_eP2);}else {this._lP2(_wd,_eP2,_Ol);_eP2+=_iP2;if(_eP2>=this._HN2){
this._ZN2(this._HN2);_eP2=0;}_dP2+=_iP2;}_gP2+=_iP2;_kP2=false;}else {var _mP2;if(_jP2)_mP2=(_dP2+(this._IN2-1))&~(this._IN2-1);else _mP2=_fP2+_bP2;if(_mP2>_hP2){_mP2=_hP2;}var _nP2=_mP2-_dP2;if(_cP2){if((_eP2+_nP2)<=this._HN2){for(i=0;i<_nP2;i++){_MN2[_eP2+i]=0;}_eP2+=_nP2;this._ZN2(_eP2);}else {var _oP2=_nP2;while(_oP2>0){var _pP2=_r7(_oP2,this._HN2-_eP2);for(i=0;i<_pP2;i++){_MN2[_eP2+i]=0;}_eP2+=_pP2;this._ZN2(_eP2);_eP2=_eP2%this._HN2;_oP2-=_pP2;}}}else {_eP2+=_nP2;this._ZN2(_eP2);}_dP2+=_nP2;_gP2+=_nP2;
_fP2=_dP2;if((_gP2+_iP2)<=_id){_kP2=true;}}}return;};_DN2.prototype._lP2=function(_wd,_ne,_Ol){if(_ne<0)return;var size=_1O2(_wd);if(this._PM2!=_bN2){if(_ne>(this._HN2-size))return 0;}else {while(_ne>=this._HN2){_ne-=this._HN2;}}switch(_wd){case _hN2:if(_Ol==true){_Ol=1;}else {_Ol=0;}case _CG:this._6V.setUint8(_ne,_Ol);this._ZN2(_ne+1);return;case _eN2:this._6V.setInt8(_ne,_Ol);this._ZN2(_ne+1);return;case _T91:this._6V.setUint16(_ne,_Ol,true);break;case _s91:this._6V.setInt16(_ne,_Ol,true);break;case _Rj:this._6V.setInt32(_ne,
_Ol,true);break;case _Ij:this._6V.setUint32(_ne,_Ol,true);break;case _z82:this._6V.setFloat32(_ne,_Ol,true);break;case _gN2:this._6V.setFloat64(_ne,_Ol,true);break;case _jN2:var _7P2=yyGetInt64(_Ol);this._6V.setUint32(_ne,_7P2._kc1,true);this._6V.setUint32(_ne+4,_7P2._Kc1,true);break;case _iN2:case _kN2:{for(var i=0;i<_Ol.length;i++){var _Nc1=_Ol.charCodeAt(i)&0xff;this._6V.setUint8(_ne++,_Nc1,true);}if(_wd===_iN2){this._6V.setUint8(_ne++,0,true);}this._ZN2(_ne);}return;}this._ZN2(_ne+size);};_DN2.prototype._lU=function(_OE,
_ne){switch(_OE){case _Qj:if(_ne<0)_ne=0;this._xG=_ne;break;case _lN2:this._xG+=_ne;if(this._xG<0)this._xG=0;break;case _Q91:this._xG=this._HN2-_ne;if(this._xG>this._HN2)this._xG=this._HN2;break;}return this._xG;};function buffer_seek(buffer,_qP2,offset){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return 0;return _ob._lU(yyGetInt32(_qP2),yyGetInt32(offset));}function buffer_read(buffer,type){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return 0;return _ob.__N2(yyGetInt32(type));}function buffer_peek(buffer,offset,
type){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return 0;return _ob._8P2(yyGetInt32(type),yyGetInt32(offset));}function buffer_poke(buffer,offset,type,value){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return 0;return _ob._lP2(yyGetInt32(type),yyGetInt32(offset),value);}function buffer_create_from_vertex_buffer(_rP2,_wd,_EN2){_rP2=yyGetInt32(_rP2);if(_rP2>=_sP2.length||_rP2<0){console.log("buffer_create_from_vertex_buffer: Specified vertex buffer doesn't exist.");return -1;}_EN2=yyGetInt32(_EN2);var _tP2=_sP2[_rP2];
if(_tP2){if(_tP2._md){console.log("buffer_create_from_vertex_buffer: Can't create buffer from frozen vertex buffer.");return -1;}if(_tP2._ue()==0||_tP2._Qd()==null){console.log("buffer_create_from_vertex_buffer: Can't create buffer from empty vertex buffer.");return -1;}if(_EN2<1||_EN2>1024){console.log("buffer_create_from_vertex_buffer: Illegal alignment size");return -1;}var size=_tP2._ue()*_tP2._Qd()._Fd;var _uP2=buffer_create(size,yyGetInt32(_wd),_EN2);if(_uP2>=0){var _vP2=_wG._n6(_uP2);var _iU=new Int8Array(_tP2._ve(),
0,_tP2._ue()*_tP2._Qd()._Fd);var _wP2=new Int8Array(_vP2._zG);for(var i=0;i<size;i++)_wP2[i]=_iU[i];_vP2._KN2=size;return _uP2;}else {console.log("buffer_create_from_vertex_buffer: unable to create buffer");}}return -1;}function buffer_create_from_vertex_buffer_ext(_rP2,_wd,_EN2,_xP2,_QU1){_rP2=yyGetInt32(_rP2);if(_rP2>=_sP2.length||_rP2<0){console.log("buffer_create_from_vertex_buffer_ext: Specified vertex buffer doesn't exist.");return -1;}_EN2=yyGetInt32(_EN2);var _tP2=_sP2[_rP2];if(_tP2){if(_tP2._md){
console.log("buffer_create_from_vertex_buffer_ext: Can't create buffer from frozen vertex buffer.");return -1;}if(_tP2._ue()==0||_tP2._Qd()==null){console.log("buffer_create_from_vertex_buffer_ext: Can't create buffer from empty vertex buffer.");return -1;}if(_EN2<1||_EN2>1024){console.log("buffer_create_from_vertex_buffer: Illegal alignment size");return -1;}var size=yyGetInt32(_QU1)*_tP2._Qd()._Fd;var offset=yyGetInt32(_xP2)*_tP2._Qd()._Fd;var _uP2=buffer_create(size,yyGetInt32(_wd),_EN2);if(_uP2>=0){
var _vP2=_wG._n6(_uP2);var _iU=new Int8Array(_tP2._ve(),offset,size);var _wP2=new Int8Array(_vP2._zG);for(var i=0;i<size;i++)_wP2[i]=_iU[i];_vP2._KN2=size;return _uP2;}else {console.log("buffer_create_from_vertex_buffer: unable to create buffer");}}return -1;}function buffer_copy_from_vertex_buffer(_rP2,_xP2,_QU1,_yP2,_zP2){_rP2=yyGetInt32(_rP2);if(_rP2>=_sP2.length||_rP2<0){console.log("buffer_copy_from_vertex_buffer: Specified vertex buffer doesn't exist.");return -1;}var _tP2=_sP2[_rP2];if(_tP2){if(_tP2._md){
console.log("buffer_copy_from_vertex_buffer: Can't create buffer from frozen vertex buffer.");return -1;}if(_tP2._ue()==0||_tP2._Qd()==null){console.log("buffer_copy_from_vertex_buffer: Can't create buffer from empty vertex buffer.");return -1;}var _ra=yyGetInt32(_QU1);var _AP2=yyGetInt32(_xP2);if(_ra<=0){console.log("buffer_copy_from_vertex_buffer: specified number of vertices is invalid");return -1;}if((_AP2<0)||(_AP2>=_tP2._ue())){console.log("buffer_copy_from_vertex_buffer: specified start vertex is out of range");
return -1;}if((_AP2+_ra)>_tP2._ue()){_ra=_tP2._ue()-_AP2;}var _ob=_wG._n6(yyGetInt32(_yP2));if(!_ob){console.log("buffer_copy_from_vertex_buffer: specified buffer does not exist");return -1;}if((_zP2<0)||(_zP2>_ob._HN2)){console.log("buffer_copy_from_vertex_buffer: destination offset is out of range of the destination buffer");return -1;}var size=_ra*_tP2._Qd()._Fd;var offset=_AP2*_tP2._Qd()._Fd;var _iU=new Int8Array(_tP2._ve(),offset,size);var _wP2=new Int8Array(_ob._zG);for(var i=0;i<size;i++)_wP2[i+_zP2]=_iU[i];
return _yP2;}return -1;}function buffer_create(_id,_wd,_EN2){try{return _wG._Vf(new _DN2(yyGetInt32(_id),yyGetInt32(_wd),yyGetInt32(_EN2)));}catch(e){alert("ArrayBuffer Error : This functionality requires at least IE10 "+e);return -1;}}function _BP2(_CP2){try{return _wG._Vf(new _DN2(_CP2.length,_kU,1,_CP2));}catch(e){alert("ArrayBuffer Error : This functionality requires at least IE10 "+e);return -1;}}function buffer_exists(_441){var _ob=_wG._n6(yyGetInt32(_441));if(!_ob)return 0;return 1;}function buffer_write(_s4,
_wd,_Ol){var _ob=_wG._n6(yyGetInt32(_s4));if(!_ob)return _aN2;return _ob._BG(yyGetInt32(_wd),_Ol);}function buffer_tell(_s4){var _ob=_wG._n6(yyGetInt32(_s4));if(!_ob)return _aN2;return _ob._xG;}function _DP2(_EP2,_FP2,_GP2,_HP2,_IP2,_JP2,_KP2,_4P,_LP2){if(_GP2<=0)return 0;if(_IP2<0)_IP2=_GP2;if(_LP2){while(_HP2<0)_HP2+=_GP2;while(_HP2>=_GP2)_HP2-=_GP2;if((_HP2+_IP2)<=_GP2)_LP2=false;}else {if(_HP2<0)_HP2=0;if(_HP2>=_GP2)_HP2=_GP2-1;if((_HP2+_IP2)>_GP2)_IP2=_GP2-_HP2;}var _MP2=_IP2;if(!_KP2){if(_EP2._HN2<=0){
return 0;}if(_4P){while(_JP2<0)_JP2+=_EP2._HN2;while(_JP2>=_EP2._HN2)_JP2-=_EP2._HN2;if((_JP2+_MP2)<=_EP2._HN2)_4P=false;}else {if(_JP2<0)_JP2=0;if(_JP2>=_EP2._HN2)_JP2=_EP2._HN2-1;if((_JP2+_MP2)>_EP2._HN2)_MP2=_EP2._HN2-_JP2;}}else {if(_JP2<0)_JP2=0;if((_JP2+_MP2)>_EP2._HN2){var _NP2=_JP2+_MP2;_EP2._VN2(_NP2);}}var _OP2=new Uint8Array(_FP2._zG);var _MN2=new Uint8Array(_EP2._zG);var i;if(_4P||_LP2){var _PP2=_MP2;while(_PP2>0){var _QP2=_r7(_PP2,(_EP2._HN2-_JP2));_QP2=_r7(_QP2,_GP2-_HP2);for(i=0;i<_QP2;i++){
_MN2[_JP2+i]=_OP2[_HP2+i];}_JP2+=_QP2;this._ZN2(_JP2);_HP2+=_QP2;_JP2=_JP2%_EP2._HN2;_HP2=_HP2%_GP2;_PP2-=_QP2;}}else {for(i=0;i<_GP2;i++){_MN2[_JP2+i]=_OP2[_HP2+i];}_EP2._ZN2(_JP2+_MP2);}return 1;}function buffer_copy(_RP2,_SP2,size,_TP2,_UP2){var _ob=_wG._n6(yyGetInt32(_RP2));if(!_ob)return _aN2;var _VP2=_wG._n6(yyGetInt32(_TP2));if(!_VP2)return _aN2;var _WP2;if((_VP2._PM2==_Hj)||(_VP2._HN2==0))_WP2=true;else _WP2=false;var wrap;if(_VP2._PM2==_bN2)wrap=true;else wrap=false;var _XP2;if(_ob._PM2==_bN2)_XP2=true;
else _XP2=false;var _WU=_DP2(_VP2,_ob,_ob._HN2,yyGetInt32(_SP2),yyGetInt32(size),yyGetInt32(_UP2),_WP2,wrap,_XP2);}function _YP2(index,size){return(index%size+size)%size;}function buffer_copy_stride(_ZP2,_HP2,_IP2,__P2,_0Q2,_1Q2,_JP2,_2Q2){var _3Q2=yyGetInt32(_ZP2);var _4Q2=_wG._n6(_3Q2);if(!_4Q2){_q5("Illegal Source Buffer Index "+_3Q2);return;}_HP2=yyGetInt32(_HP2);if(_HP2<0){_SP2=_YP2(_HP2,_4Q2._HN2);}_IP2=yyGetInt32(_IP2);if(_IP2<0){_q5("Size cannot be a negative number");return;}__P2=yyGetInt32(__P2);
_0Q2=yyGetInt32(_0Q2);if(_0Q2<0){_q5("Count cannot be a negative number");return;}var _5Q2=yyGetInt32(_1Q2);var _6Q2=_wG._n6(_5Q2);if(!_6Q2){_q5("Illegal Destination Buffer Index "+_5Q2);return;}if(_4Q2==_6Q2){_q5("Source and Destination buffers can't be the same");return;}if(_IP2==0||_0Q2==0){return;}_JP2=yyGetInt32(_JP2);if(_JP2<0){_JP2=_YP2(_JP2,_6Q2._HN2);}_2Q2=yyGetInt32(_2Q2);if(_6Q2._PM2==_Hj){var _7Q2=Math.max(_JP2+_IP2,_JP2+(_2Q2*(_0Q2-1))+_IP2);if(_6Q2._HN2<_7Q2){_6Q2._VN2(_7Q2);}}var _8Q2=new Uint8Array(_4Q2._zG);
var _9Q2=new Uint8Array(_6Q2._zG);var _aQ2=_4Q2._HN2;var _bQ2=_6Q2._HN2;for(var i=0;i<_0Q2;++i){for(var _J6=0;_J6<_IP2;++_J6){var _cQ2=_HP2+_J6;if((_cQ2<0)||(_cQ2>=_aQ2)){if(_4Q2._PM2!=_bN2){return;}_cQ2=_YP2(_cQ2,_aQ2);}var _dQ2=_JP2+_J6;if((_dQ2<0)||(_dQ2>=_bQ2)){if(_6Q2._PM2!=_bN2){return;}_dQ2=_YP2(_dQ2,_bQ2);}_9Q2[_dQ2]=_8Q2[_cQ2];_6Q2._KN2=Math.max(_6Q2._KN2,_dQ2+1);}_HP2+=__P2;_JP2+=_2Q2;}}function buffer_get_type(_s4){var _ob=_wG._n6(yyGetInt32(_s4));if(!_ob)return _aN2;return _ob._PM2;}function buffer_get_alignment(_s4){
var _ob=_wG._n6(yyGetInt32(_s4));if(!_ob)return _aN2;return _ob._IN2;}function buffer_get_size(_s4){var _ob=_wG._n6(yyGetInt32(_s4));if(!_ob)return _aN2;return _ob._HN2;}function buffer_resize(_s4,_eQ2){var _ob=_wG._n6(yyGetInt32(_s4));if(!_ob)return _aN2;return _ob._VN2(yyGetInt32(_eQ2));}function buffer_sizeof(_wd){return _1O2(yyGetInt32(_wd));}function buffer_fill(buffer,offset,type,value,size){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;return _ob._aP2(yyGetInt32(offset),yyGetInt32(size),yyGetInt32(type),
value,-1,true);}function buffer_md5(buffer,offset,size){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;return _ob._VO2(yyGetInt32(offset),yyGetInt32(size));}function buffer_crc32(buffer,offset,size){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;return _ob._UO2(yyGetInt32(offset),yyGetInt32(size));}function buffer_sha1(buffer,offset,size){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;return _ob._WO2(yyGetInt32(offset),yyGetInt32(size));}function buffer_base64_encode(buffer,offset,
size){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;return _ob._YO2(yyGetInt32(offset),yyGetInt32(size));}function _fQ2(c){return(_gQ2(c)||(c=='+')||(c=='/'));}function _hQ2(_iQ2){var _jQ2=_iQ2.length;var _kQ2=((_jQ2+3)&~3)-4;var _lQ2=0;if(_kQ2>0){var _re=_kQ2+1;while((_re<=_jQ2)&&(_iQ2.charAt(_re)!='=')&&_fQ2(_iQ2.charAt(_re))){_lQ2++;_re++;}}var _mQ2=(_kQ2/4)*3;_mQ2+=_lQ2;return _mQ2;};function buffer_base64_decode(_iQ2){_iQ2=yyGetString(_iQ2);var _nQ2=_hQ2(_iQ2);var _oQ2=buffer_create(_nQ2,_kU,1);
var _ob=_wG._n6(_oQ2);if(!_ob)return _aN2;_ob._3P2(_iQ2,0);_ob._ZN2(_nQ2,true);return _oQ2;}function buffer_compress(_pQ2,_ne,_id){var _ob=_wG._n6(yyGetInt32(_pQ2));if(!_ob)return _aN2;var _1P2=_ob._ZO2(yyGetInt32(_ne),yyGetInt32(_id));if(_1P2!=undefined&&_1P2.length>0){var index=_BP2(_1P2);return index;}return -1;}function buffer_decompress(_l91){var _ob=_wG._n6(yyGetInt32(_l91));if(!_ob)return _aN2;var _qQ2=_ob._2P2();if(_qQ2!=undefined&&_qQ2.length>0){var index=_BP2(_qQ2);return index;}return -1;}function buffer_base64_decode_ext(buffer,
_iQ2,offset){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;var _nQ2=_hQ2(_iQ2);if((offset+_nQ2)>_ob._HN2){_ob._VN2(offset+_nQ2);}_ob._ZN2(offset+_nQ2);_ob._3P2(yyGetString(_iQ2),yyGetInt32(offset));}function buffer_save(buffer,filename){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;return _ob._XO2(yyGetString(filename),0,_ob._HN2);}function buffer_delete(_s4){_s4=yyGetInt32(_s4);var _ob=_wG._n6(_s4);if(!_ob)return _aN2;_ob._zG=null;_ob._6V=null;_wG._3j(_s4);return 0;}function buffer_async_group_begin(){
_Jc("buffer_async_group_begin()");}function buffer_async_group_option(){_Jc("buffer_async_group_option()");}function buffer_async_group_end(){return _rQ2;}var _rQ2=-1;function buffer_load_async(_6l,_4y,_ne,_id){_6l=yyGetInt32(_6l);_4y=yyGetString(_4y);_ne=yyGetInt32(_ne);_id=yyGetInt32(_id);var _ob=_wG._n6(_6l);if(!_ob)return -1;var _5y=_sQ2(_4y,true);if(_5y){var _tQ2=buffer_base64_decode(_5y);if(_tQ2>=0){if(_id>=0&&buffer_get_size(_tQ2)>_id){buffer_resize(_tQ2,_id);}buffer_copy(_tQ2,0,buffer_get_size(_tQ2),
_6l,_ne);buffer_delete(_tQ2);_tQ2=-1;var _Tf=_Uf._Vf(_6l,_4y,_GM2,undefined);_Tf._Zf=true;_Tf._Yf=200;_uQ2=0;return _6l;}}try{_4y=_871(_4y);var _Qr=new XMLHttpRequest();_Qr.open("GET",_4y,true);_Qr.responseType="arraybuffer";_Qr.onload=_7n;_Qr._SM2=_ne;_Qr._UM2=_id;_Qr._vQ2=_4y;_Qr._RM2=_6l;_Uf._Vf(_6l,_4y,_GM2,_Qr);_Qr.send(null);_uQ2=_Qr.status;}catch(e){return -1;}_rQ2=_6l;return _6l;}function buffer_load(_4y){_4y=yyGetString(_4y);var _wQ2=true;var _5y=_sQ2(_4y,true);if(_5y==null){_5y=_sQ2(_4y,false);
_wQ2=false;}if(_5y==null)return -1;if(_wQ2){return buffer_base64_decode(_5y);}else {var _95=new ArrayBuffer(_5y.length);var _xQ2=new Uint8Array(_95);for(var i=0;i<_5y.length;++i){_xQ2[i]=_5y.charCodeAt(i)&0xff;}return _BP2(_xQ2);}}function buffer_save_ext(buffer,filename,offset,size){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;return _ob._XO2(yyGetString(filename),yyGetInt32(offset),yyGetInt32(size));}function buffer_save_async(buffer,filename,offset,size){buffer=yyGetInt32(buffer);filename=yyGetString(filename);
buffer_save_ext(buffer,filename,yyGetInt32(offset),yyGetInt32(size));var _Tf=_Uf._Vf(buffer,filename,_GM2,undefined);_uQ2=0;_Tf._Zf=true;_Tf._Yf=200;return buffer;}function buffer_load_ext(buffer,filename,offset){var _ob=_wG._n6(yyGetInt32(buffer));var _MN2=new Uint8Array(_ob._zG);buffer_load_partial(buffer,filename,0,_MN2.length-offset,offset)}function buffer_load_partial(buffer,filename,_SP2,_Ai,_yQ2){var _ob=_wG._n6(yyGetInt32(buffer));if(!_ob)return _aN2;filename=yyGetString(filename);_yQ2=yyGetInt32(_yQ2);
var _wQ2=true;var _5y=_sQ2(filename,true);if(_5y==null){_5y=_sQ2(filename,false);_wQ2=false;}if(_5y==null)return -1;var _MN2=new Uint8Array(_ob._zG);if(_wQ2){var _nQ2=_hQ2(_5y);if((_yQ2+_nQ2)>_ob._HN2){_ob._VN2(_yQ2+_nQ2);_MN2=new Uint8Array(_ob._zG);}_ob._ZN2(_yQ2+_nQ2);_mN2(_5y,_Ai,_MN2,_yQ2,false,yyGetInt32(_SP2));}else {var _95=new ArrayBuffer(_5y.length);var _xQ2=new Uint8Array(_95);for(var i=0;i<_5y.length;++i){_xQ2[i]=_5y.charCodeAt(i)&0xff;}var i,_J6;if((_yQ2+_Ai)>_ob._HN2){_ob._VN2(_yQ2+_Ai);_MN2=new Uint8Array(_ob._zG);
}_ob._ZN2(_yQ2+_Ai);for(i=_yQ2,_J6=_SP2;i<_MN2.length&&_J6<_xQ2.length;i++,_J6++){_MN2[i]=_xQ2[_J6];}}}function buffer_get_address(_s4){var _ob=_wG._n6(yyGetInt32(_s4));if(!_ob)return undefined;return _ob._zG;}function buffer_get_surface(_6l,_zQ2,_ne){var _ob=_wG._n6(yyGetInt32(_6l));var _nm=_dm._n6(yyGetInt32(_zQ2));if(!_ob||!_nm)return false;var data=null;var _em=_nm._Oa;try{data=_em._He1(0,0,_nm._fd,_nm._gd);}catch(_Oj){return false;}var _AQ2=data.data;_ob._lU(_Qj,yyGetInt32(_ne));for(var i=0;i<_AQ2.length;
i++){_ob._lP2(_CG,i,_AQ2[i]);}return true;}function buffer_get_surface_depth(_6l,_zQ2,_ne){var _ob=_wG._n6(yyGetInt32(_6l));var _nm=_dm._n6(yyGetInt32(_zQ2));_ne=yyGetInt32(_ne);if(!_ob){_q5("buffer_get_surface_depth() - illegal buffer index "+yyGetInt32(_6l));return false;}if(!_nm){_q5("buffer_get_surface_depth() - surface does not exist "+yyGetInt32(_zQ2));return false;}return false;}function buffer_set_used_size(_s4,_id){var _ob=_wG._n6(yyGetInt32(_s4));if(!_ob)return false;_ob._ZN2(yyGetInt32(_id));}function buffer_set_surface(_6l,
_zQ2,_ne){var _ob=_wG._n6(yyGetInt32(_6l));var _nm=_dm._n6(yyGetInt32(_zQ2));if(!_ob||!_nm)return false;var data=null;var _em=_nm._Oa;try{var _BQ2=_em.createImageData(_nm._fd,_nm._gd);var data=_BQ2.data;var _nU1=_ob._6V;var _Ai=_nm._fd*_nm._gd*4;for(var i=0;i<_Ai;i++){data[i]=_nU1.getUint8(i+_ne);}_em._CQ2(_BQ2,0,0);}catch(_Oj){return false;}return true;}function buffer_set_surface_depth(_6l,_zQ2,_ne){var _ob=_wG._n6(yyGetInt32(_6l));var _nm=_dm._n6(yyGetInt32(_zQ2));_ne=yyGetInt32(_ne);if(!_ob){_q5("buffer_set_surface_depth() - illegal buffer index "+yyGetInt32(_6l));
return false;}if(!_nm){_q5("buffer_set_surface_depth() - surface does not exist "+yyGetInt32(_zQ2));return false;}return false;}var _sP2=[];var vertex_create_buffer,vertex_create_buffer_ext,vertex_delete_buffer,vertex_begin,vertex_end,vertex_position,vertex_position_3d,vertex_colour,vertex_color,_DQ2,vertex_argb,vertex_texcoord,vertex_normal,vertex_float1,vertex_float2,vertex_float3,vertex_float4,vertex_ubyte4,vertex_freeze,vertex_submit,vertex_submit_ext,vertex_get_number,vertex_get_buffer_size,vertex_create_buffer_from_buffer,
vertex_create_buffer_from_buffer_ext,vertex_update_buffer_from_buffer,vertex_update_buffer_from_vertex,draw_flush;(()=>{let _Ic=(_w4,_k4)=>()=>_Jc(_w4,_k4);vertex_create_buffer=_Ic("vertex_create_buffer",-1);vertex_create_buffer_ext=_Ic("vertex_create_buffer_ext",-1);vertex_delete_buffer=_Ic("vertex_delete_buffer");vertex_begin=_Ic("vertex_begin");vertex_end=_Ic("vertex_end");vertex_position=_Ic("vertex_position");vertex_position_3d=_Ic("vertex_position_3d");vertex_colour=_Ic("vertex_colour");vertex_color=vertex_colour;
_DQ2=_Ic("vertex_rgba");vertex_argb=_Ic("vertex_argb");vertex_texcoord=_Ic("vertex_texcoord");vertex_normal=_Ic("vertex_normal");vertex_float1=_Ic("vertex_float1");vertex_float2=_Ic("vertex_float2");vertex_float3=_Ic("vertex_float3");vertex_float4=_Ic("vertex_float4");vertex_ubyte4=_Ic("vertex_ubyte4");vertex_freeze=_Ic("vertex_freeze");vertex_submit=_Ic("vertex_submit");vertex_submit_ext=_Ic("vertex_submit_ext");vertex_get_number=_Ic("vertex_get_number");vertex_get_buffer_size=_Ic("vertex_get_buffer_size");
vertex_create_buffer_from_buffer=_Ic("vertex_create_buffer_from_buffer",-1);vertex_create_buffer_from_buffer_ext=_Ic("vertex_create_buffer_from_buffer_ext",-1);vertex_update_buffer_from_buffer=_Ic("vertex_update_buffer_from_buffer",-1);vertex_update_buffer_from_vertex=_Ic("vertex_update_buffer_from_vertex",-1);draw_flush=()=>{};})();var _EQ2=8*1024;function _FQ2(){vertex_create_buffer=_GQ2;vertex_create_buffer_ext=_HQ2;vertex_create_buffer_from_buffer=_IQ2;vertex_create_buffer_from_buffer_ext=_JQ2;
vertex_update_buffer_from_buffer=_KQ2;vertex_update_buffer_from_vertex=_LQ2;vertex_delete_buffer=_MQ2;vertex_begin=_NQ2;vertex_end=_OQ2;vertex_position=_PQ2;vertex_position_3d=_QQ2;vertex_colour=_RQ2;vertex_color=_RQ2;_DQ2=_SQ2;vertex_argb=_TQ2;vertex_texcoord=_UQ2;vertex_normal=_VQ2;vertex_float1=_WQ2;vertex_float2=_XQ2;vertex_float3=_YQ2;vertex_float4=_ZQ2;vertex_ubyte4=__Q2;vertex_freeze=_0R2;vertex_submit=_1R2;vertex_submit_ext=_2R2;vertex_get_number=_3R2;vertex_get_buffer_size=_4R2;draw_flush=_5R2;
}function _JQ2(_6l,_y91,_HP2,_6R2){_y91=yyGetInt32(_y91);_HP2=yyGetInt32(_HP2);_6R2=yyGetInt32(_6R2);var _M81=0;var _iY1=_09._1d(_y91);var _ob=_wG._n6(yyGetInt32(_6l));if(!_ob||!_iY1)return -1;if(_6R2==-1){_HP2=0;_M81=_ob._KN2;_6R2=_M81/_iY1._Fd;}else {_M81=_6R2*_iY1._Fd;if((_M81+_HP2)>_ob._KN2){_M81=(_ob._KN2-_HP2);_6R2=~~(_M81/_iY1._Fd);_M81=_6R2*_iY1._Fd;}}var _7R2=vertex_create_buffer_ext(_M81);var _8R2=_sP2[_7R2];var _OP2=new Uint8Array(_ob._zG);var _MN2=new Uint8Array(_8R2._ve());_8R2._Kd(_y91);var src=_HP2;
for(var i=0;i<_M81;i++){_MN2[i]=_OP2[src++];}_8R2._se(_6R2);_8R2._Md();return _7R2;}function _IQ2(_6l,_y91){return _JQ2(_6l,_y91,0,-1);}function _9R2(_8R2,_aR2,_bR2){var _cR2=_8R2._Qd();if(!_cR2){return false;}var _dR2=~~(_aR2/_cR2._Fd);var _eR2=_aR2-(_dR2*_cR2._Fd);for(var i=0;i<_cR2._zd.length;++i){var _Ad=_cR2._zd[i];var _fR2=_cR2._A_1(_Ad.type);if(_eR2>=_Ad.offset&&_eR2<_Ad.offset+_fR2){var _gR2=_cR2._C_1(_Ad.type);var _hR2=_eR2-_Ad.offset;if(_hR2%_gR2==0){if(_bR2!==undefined){_bR2._dR2=_dR2;_bR2._ya2=i;_bR2._iR2=~~(_hR2/_gR2);
}return true;}}}return false;}function _KQ2(_jR2,_JP2,_ZP2,_HP2,_IP2){if(arguments.length<3||arguments>5){_q5("vertex_update_buffer_from_buffer: Illegal argument count");return;}_jR2=yyGetInt32(_jR2);_JP2=yyGetInt32(_JP2);_ZP2=yyGetInt32(_ZP2);_HP2=(_HP2!==undefined)?yyGetInt32(_HP2):0;_IP2=(_IP2!==undefined)?yyGetInt32(_IP2):-1;var _8R2=_sP2[_jR2];if(!_8R2){_q5("vertex_update_buffer_from_buffer: Vertex Buffer index is out of range");return;}if(_JP2<0){_q5("vertex_update_buffer_from_buffer: destination offset must be a positive number");
return;}var _ob=_wG._n6(_ZP2);if(!_ob){_q5("vertex_update_buffer_from_buffer: specified buffer doesn't exists");return;}if(_HP2<0){_q5("vertex_update_buffer_from_buffer: source offset must be a positive number");return;}if(_8R2._md){_q5("vertex_update_buffer_from_buffer: cannot update a frozen vertex buffer");return;}var _cR2=_8R2._Qd();if(!_cR2){_q5("vertex_update_buffer_from_buffer: unknown vertex buffer format");return;}if(_IP2<0){_IP2=_ob._KN2;}_IP2=Math.min(_IP2,_ob._KN2-_HP2);if(_IP2==0){return;
}var _kR2=_JP2+_IP2;if(!_9R2(_8R2,_JP2)){_q5("vertex_update_buffer_from_buffer: destination offset must be aligned to a vertex element");return;}if(!_9R2(_8R2,_kR2)){_q5("vertex_update_buffer_from_buffer: destination size must be aligned to a vertex element");return;}if(_8R2._KN2<_kR2){_8R2._Gd(_kR2);}var _lR2=new Uint8Array(_ob._zG);var _mR2=new Uint8Array(_8R2._ve());var src=_HP2;var _Ya=_JP2;for(var i=0;i<_IP2;i++){_mR2[_Ya++]=_lR2[src++];}_8R2._se(Math.max(_8R2._ue(),~~(_kR2/_cR2._Fd)));}function _LQ2(_jR2,
_nR2,_oR2,_pR2,_qR2){if(arguments.length<3||arguments>5){_q5("vertex_update_buffer_from_vertex: Illegal argument count");return;}_jR2=yyGetInt32(_jR2);_nR2=yyGetInt32(_nR2);_oR2=yyGetInt32(_oR2);_pR2=(_pR2!==undefined)?yyGetInt32(_pR2):0;_qR2=(_qR2!==undefined)?yyGetInt32(_qR2):-1;var _rR2=_sP2[_jR2];if(!_rR2){_q5("vertex_update_buffer_from_vertex: destination vertex buffer index is out of range");return;}if(_nR2<0){_q5("vertex_update_buffer_from_vertex: destination vertex must be a positive number");
return;}var _sR2=_sP2[_oR2];if(!_sR2){_q5("vertex_update_buffer_from_vertex: source vertex buffer index is out of range");return;}if(_rR2==_sR2){_q5("vertex_update_buffer_from_vertex: source and destination cannot be the same vertex buffer");return;}if(_rR2._md){_q5("vertex_update_buffer_from_vertex: destination vertex buffer cannot be frozen");return;}if(_sR2._md){_q5("vertex_update_buffer_from_vertex: source vertex buffer cannot be frozen");return;}var _tR2=_sR2._Qd();if(!_tR2){_q5("vertex_update_buffer_from_vertex: unknown source vertex buffer format");
return;}var _uR2=_rR2._Qd();if(!_uR2){_uR2=_tR2;_rR2._Od(_sR2._Nd());}else if(!_uR2._Kk1(_tR2)){_q5("vertex_update_buffer_from_vertex: source and destination vertex buffers must use the same vertex format");return;}if(_pR2<0){_q5("vertex_update_buffer_from_vertex: source vertex must be a positive number");return;}var _vR2=_uR2._Fd;var _wR2=_pR2*_vR2;var _xR2=_qR2;if(_xR2<0){_xR2=_ob._ue();}_xR2*=_vR2;_xR2=Math.min(_xR2,(_sR2._ue()*_vR2)-_wR2);if(_xR2==0){return;}var _aR2=_nR2*_vR2;var _kR2=_aR2+_xR2;if(_sR2._KN2<_kR2){
_sR2._Gd(_kR2);}var _lR2=new Uint8Array(_sR2._ve());var _mR2=new Uint8Array(_rR2._ve());var src=_wR2;var _Ya=_aR2;for(var i=0;i<_xR2;i++){_mR2[_Ya++]=_lR2[src++];}_rR2._se(Math.max(_rR2._ue(),~~(_kR2/_vR2)));}function _GQ2(){return vertex_create_buffer_ext(_EQ2);}function _HQ2(_id){var _yR2=new _hd(yyGetInt32(_id));var _zR2=_sP2.length;for(var i=0;i<_sP2;i++){if((_sP2[i]===null)||(_sP2[i]===undefined)){_zR2=i;break;}}_sP2[_zR2]=_yR2;return _zR2;}function _MQ2(_6l){_sP2[yyGetInt32(_6l)]=null;}function _NQ2(_6l,_y91){
_sP2[yyGetInt32(_6l)]._Kd(yyGetInt32(_y91));}function _OQ2(_6l){_sP2[yyGetInt32(_6l)]._Md();}function _PQ2(_6l,x,y){_sP2[yyGetInt32(_6l)]._Rd(yyGetReal(x),yyGetReal(y));}function _QQ2(_6l,x,y,z){_sP2[yyGetInt32(_6l)]._Ud(yyGetReal(x),yyGetReal(y),yyGetReal(z));}function _RQ2(_6l,_55,alpha){_sP2[yyGetInt32(_6l)]._Wd(yyGetInt32(_55),yyGetReal(alpha));}function _SQ2(_6l,_1e){_sP2[yyGetInt32(_6l)]._0e(yyGetInt32(_1e));}function _TQ2(_6l,_3e){_sP2[yyGetInt32(_6l)]._2e(yyGetInt32(_3e));}function _UQ2(_6l,_G5,
_H5){_sP2[yyGetInt32(_6l)]._4e(yyGetReal(_G5),yyGetReal(_H5));}function _VQ2(_6l,x,y,z){_sP2[yyGetInt32(_6l)]._6e(yyGetReal(x),yyGetReal(y),yyGetReal(z));}function _WQ2(_6l,x){_sP2[yyGetInt32(_6l)]._8e(yyGetReal(x));}function _XQ2(_6l,x,y){_sP2[yyGetInt32(_6l)]._ae(yyGetReal(x),yyGetReal(y));}function _YQ2(_6l,x,y,z){_sP2[yyGetInt32(_6l)]._be(yyGetReal(x),yyGetReal(y),yyGetReal(z));}function _ZQ2(_6l,x,y,z,w){_sP2[yyGetInt32(_6l)]._ce(yyGetReal(x),yyGetReal(y),yyGetReal(z),yyGetReal(w));}function __Q2(_6l,
x,y,z,w){_sP2[yyGetInt32(_6l)]._ee(yyGetInt32(x),yyGetInt32(y),yyGetInt32(z),yyGetInt32(w));}function _0R2(_6l){var _yR2=_sP2[yyGetInt32(_6l)];if(_yR2&&!_yR2._we()){_yR2._ge();return 0;}return -1;}function _5R2(){_09._we1();}function _1R2(_6l,_le,_me){_09._we1();var _bd,_yR2=_sP2[yyGetInt32(_6l)];if(_yR2){if(_gb!=-1){var _qS1=_wC[_gb]._rS1;var _hY1=_yR2._Qd();if(_hY1._zd.length<_qS1._dS1.length){_ai("Trying to use a vertex buffer with too few inputs for the seleted shader.");}}_yR2._ke(_Bc(yyGetInt32(_le)),
_me);}}function _2R2(_6l,_le,_me,_ne,_oe){_09._we1();var _bd,_yR2=_sP2[yyGetInt32(_6l)];if(_yR2){if(_gb!=-1){var _qS1=_wC[_gb]._rS1;var _hY1=_yR2._Qd();if(_hY1._zd.length<_qS1._dS1.length){_ai("Trying to use a vertex buffer with too few inputs for the seleted shader.");}}_yR2._ke(_Bc(yyGetInt32(_le)),_me,yyGetInt32(_ne),yyGetInt32(_oe));}}function _3R2(_6l){var _yR2=_sP2[yyGetInt32(_6l)];if(_yR2){return _yR2._ue();}return 0;}function _4R2(_6l){var _yR2=_sP2[yyGetInt32(_6l)];if(_yR2){return _yR2._ve().byteLength;
}return 0;}/*@constructor */function _nI2(){this.__type="[BuiltIn]";this.room=0;this.room_first=0;this.room_last=0;this.transition_kind=0;this.transition_steps=0;this.score=0;this.lives=0;this.health=100;this.game_id=0;this.working_directory="/";this.temp_directory="/";this.program_directory="/";this.cache_directory="/";this.delta_time=0;this._AR2=0;this.room_width=0;this.room_height=0;this.room_caption="room";this.room_speed=30;this.room_persistent=false;this._BR2=0x00000000;this._CR2=false;this._DR2=false;
this._ER2=false;this._FR2=0;this._GR2=0;this._HR2=0;this._IR2=0;this._JR2=0;this._KR2=0;this._LR2=0;this._MR2=1.0;this._NR2=1.0;this._OR2=0;this._PR2=0;this._QR2=0;this._RR2=1.0;this.view_enabled=false;this.view_current=0;this.view_visible=0;this.view_xview=0;this.view_yview=0;this.view_wview=0;this.view_hview=0;this.view_xport=0;this.view_yport=0;this.view_wport=0;this.view_hport=0;this.view_angle=0;this.view_hborder=0;this.view_vborder=0;this.view_hspeed=0;this.view_vspeed=0;this.view_object=0;
this.mouse_x=0;this.mouse_y=0;this.mouse_button=0;this.mouse_lastbutton=0;this.keyboard_key=0;this.keyboard_lastkey=0;this.keyboard_lastchar="";this.keyboard_string="";this.webgl_enabled=false;this.show_score=false;this.show_lives=false;this.show_health=false;this.caption_score="score";this.caption_lives="lives";this.caption_health="health";this.fps=0;this.fps_real=0;this.current_time=0;this.current_year=0;this.current_month=0;this.current_day=0;this.current_weekday=0;this.current_hour=0;this.current_minute=0;
this.current_second=0;this.event_action=0;this._SR2=0;this.error_occurred=0;this.error_last=0;this.gamemaker_registered=true;this.gamemaker_pro=true;this._TR2=8.2;this.async_load=-1;this.event_data=-1;this._UR2=-1;this.debug_mode=false;this.application_surface=-1;this.view_visible=[];this.view_xview=[];this.view_yview=[];this.view_wview=[];this.view_hview=[];this.view_xport=[];this.view_yport=[];this.view_wport=[];this.view_hport=[];this.view_angle=[];this.view_hborder=[];this.view_vborder=[];this.view_hspeed=[];
this.view_vspeed=[];this.view_object=[];this.view_surface_id=[];this.view_camera=[];this._DR2=[];this._ER2=[];this._FR2=[];this._GR2=[];this._HR2=[];this._IR2=[];this._JR2=[];this._KR2=[];this._LR2=[];this._MR2=[];this._NR2=[];this._OR2=[];this._PR2=[];this._QR2=[];this._RR2=[];}_nI2.prototype.get_argument_relative=function(_s4){return _yl;};_nI2.prototype.get_instance_id=function(_s4){return _c4._0H._n6(_s4).id;};_nI2.prototype.get_instance_count=function(){return _c4._0H.length;};_nI2.prototype.set_view_enable=function(_DE){
_c4._lg=yyGetBool(_DE);};_nI2.prototype.get_view_enable=function(){return _c4._lg;};_nI2.prototype.get_browser_width=function(){return _cD();};_nI2.prototype.get_browser_height=function(){return _dD();};_nI2.prototype.get_delta_time=function(){return this.delta_time;};_nI2.prototype.get_os_type=function(){return _d51;};_nI2.prototype.get_os_device=function(){return _WA2;};_nI2.prototype.get_os_browser=function(){return _eG;};_nI2.prototype.get_os_version=function(){return _mB2;};_nI2.prototype.get_async_load=function(){
return this.async_load;};_nI2.prototype.get_event_data=function(){return this.event_data;};_nI2.prototype.get_display_aa=function(){return 0;};_nI2.prototype.get_iap_data=function(){return this._UR2;};_nI2.prototype.set_current_room=function(_KL){room_goto(yyGetInt32(_KL));};_nI2.prototype.get_current_room=function(){return _c4.id;};_nI2.prototype._VR2=function(_k4){_c4._WR2=this._BR2=yyGetInt32(_k4);};_nI2.prototype._XR2=function(){return this._BR2;};_nI2.prototype._YR2=function(){return g_pBuiltIn.application_surface;
};_nI2.prototype._ZR2=function(_k4){g_pBuiltIn.view_visible[0]=~~_k4;};_nI2.prototype.__R2=function(_k4){g_pBuiltIn.view_xview[0]=~~_k4;};_nI2.prototype._0S2=function(_k4){g_pBuiltIn.view_yview[0]=~~_k4;};_nI2.prototype._1S2=function(_k4){g_pBuiltIn.view_wview[0]=~~_k4;};_nI2.prototype._2S2=function(_k4){g_pBuiltIn.view_hview[0]=~~_k4;};_nI2.prototype._3S2=function(_k4){g_pBuiltIn.view_xport[0]=~~_k4;};_nI2.prototype._4S2=function(_k4){g_pBuiltIn.view_yport[0]=~~_k4;};_nI2.prototype._5S2=function(_k4){
g_pBuiltIn.view_wport[0]=~~_k4;};_nI2.prototype._6S2=function(_k4){g_pBuiltIn.view_hport[0]=~~_k4;};_nI2.prototype._7S2=function(_k4){g_pBuiltIn.view_angle[0]=_k4;};_nI2.prototype._8S2=function(_k4){g_pBuiltIn.view_hborder[0]=~~_k4;};_nI2.prototype._9S2=function(_k4){g_pBuiltIn.view_vborder[0]=~~_k4;};_nI2.prototype._aS2=function(_k4){g_pBuiltIn.view_hspeed[0]=~~_k4;};_nI2.prototype._bS2=function(_k4){g_pBuiltIn.view_vspeed[0]=~~_k4;};_nI2.prototype._cS2=function(_k4){g_pBuiltIn.view_object[0]=~~_k4;
};_nI2.prototype._dS2=function(_k4){g_pBuiltIn.view_surface_id[0]=~~_k4;};_nI2.prototype._eS2=function(_k4){return g_pBuiltIn.view_visible[0];};_nI2.prototype._fS2=function(_k4){return g_pBuiltIn.view_xview[0];};_nI2.prototype._gS2=function(_k4){return g_pBuiltIn.view_yview[0];};_nI2.prototype._hS2=function(_k4){return g_pBuiltIn.view_wview[0];};_nI2.prototype._iS2=function(_k4){return g_pBuiltIn.view_hview[0];};_nI2.prototype._jS2=function(_k4){return g_pBuiltIn.view_xport[0];};_nI2.prototype._kS2=function(_k4){
return g_pBuiltIn.view_yport[0];};_nI2.prototype._lS2=function(_k4){return g_pBuiltIn.view_wport[0];};_nI2.prototype._mS2=function(_k4){return g_pBuiltIn.view_hport[0];};_nI2.prototype._nS2=function(_k4){return g_pBuiltIn.view_angle[0];};_nI2.prototype._oS2=function(_k4){return g_pBuiltIn.view_hborder[0];};_nI2.prototype._pS2=function(_k4){return g_pBuiltIn.view_vborder[0];};_nI2.prototype._qS2=function(_k4){return g_pBuiltIn.view_hspeed[0];};_nI2.prototype._rS2=function(_k4){return g_pBuiltIn.view_vspeed[0];
};_nI2.prototype._sS2=function(_k4){return g_pBuiltIn.view_object[0];};_nI2.prototype._tS2=function(_k4){return g_pBuiltIn.view_surface_id[0];};_nI2.prototype._uS2=function(_k4){g_pBuiltIn.view_camera[0]=_k4;};_nI2.prototype._vS2=function(_k4){return g_pBuiltIn.view_camera[0];};_nI2.prototype._wS2=function(_k4){g_pBuiltIn._DR2[0]=_k4;};_nI2.prototype._xS2=function(_k4){g_pBuiltIn._ER2[0]=_k4;};_nI2.prototype._yS2=function(_k4){g_pBuiltIn._FR2[0]=_k4;};_nI2.prototype._zS2=function(_k4){g_pBuiltIn._GR2[0]=~~_k4;
};_nI2.prototype._AS2=function(_k4){g_pBuiltIn._HR2[0]=~~_k4;};_nI2.prototype._BS2=function(_k4){g_pBuiltIn._IR2[0]=~~_k4;};_nI2.prototype._CS2=function(_k4){g_pBuiltIn._JR2[0]=~~_k4;};_nI2.prototype._DS2=function(_k4){g_pBuiltIn._KR2[0]=_k4;};_nI2.prototype._ES2=function(_k4){g_pBuiltIn._LR2[0]=_k4;};_nI2.prototype._FS2=function(_k4){g_pBuiltIn._MR2[0]=_k4;};_nI2.prototype._GS2=function(_k4){g_pBuiltIn._NR2[0]=_k4;};_nI2.prototype._HS2=function(_k4){g_pBuiltIn._OR2[0]=_k4;};_nI2.prototype._IS2=function(_k4){
g_pBuiltIn._PR2[0]=_k4;};_nI2.prototype._JS2=function(_k4){g_pBuiltIn._QR2[0]=_k4&0xffffff;};_nI2.prototype._KS2=function(_k4){_c4._LS2=yyGetBool(_k4);};_nI2.prototype._MS2=function(_k4){return _c4._LS2;};_nI2.prototype._NS2=function(_k4){if(_k4<0)_k4=0;if(_k4>1)_k4=1;g_pBuiltIn._RR2[0]=_k4;};_nI2.prototype._OS2=function(){return g_pBuiltIn._DR2[0];};_nI2.prototype._PS2=function(){return g_pBuiltIn._ER2[0];};_nI2.prototype._QS2=function(){return g_pBuiltIn._FR2[0];};_nI2.prototype._RS2=function(){return g_pBuiltIn._GR2[0];
};_nI2.prototype._SS2=function(){return g_pBuiltIn._HR2[0];};_nI2.prototype._TS2=function(){return g_pBuiltIn._IR2[0];};_nI2.prototype._US2=function(){return g_pBuiltIn._JR2[0];};_nI2.prototype._VS2=function(){return g_pBuiltIn._KR2[0];};_nI2.prototype._WS2=function(){return g_pBuiltIn._LR2[0];};_nI2.prototype._XS2=function(){return g_pBuiltIn._MR2[0];};_nI2.prototype._YS2=function(){return g_pBuiltIn._NR2[0];};_nI2.prototype._ZS2=function(){return g_pBuiltIn._OR2[0];};_nI2.prototype.__S2=function(){return g_pBuiltIn._PR2[0];
};_nI2.prototype._0T2=function(){return g_pBuiltIn._QR2[0];};_nI2.prototype._1T2=function(){return g_pBuiltIn._RR2[0];};_nI2.prototype.set_room_speed=function(_k4){_k4=yyGetReal(_k4);return _g4._BC(yyGetReal(_k4));};_nI2.prototype.get_room_speed=function(_k4){return _g4._h4(_k4);};_nI2.prototype.set_room_caption=function(_k4){return _c4._2T2(yyGetString(_k4));};_nI2.prototype.set_room_width=function(_k4){return _c4._3T2(yyGetReal(_k4));};_nI2.prototype.set_room_height=function(_k4){return _c4._4T2(yyGetReal(_k4));
};_nI2.prototype.set_room_persistent=function(_k4){return _c4._3t2(yyGetBool(_k4));};_nI2.prototype.set_cursor_sprite=function(_k4){_vH2=_k4;};_nI2.prototype.get_cursor_sprite=function(){return _vH2;};_nI2.prototype.get_current_time=function(){var _s7=get_timer();return ~~(_s7/1000);};_nI2.prototype.get_current_year=function(){var _Xo=new Date();return(_1v)?_Xo.getFullYear():_Xo.getUTCFullYear();};_nI2.prototype.get_current_month=function(){var _Xo=new Date();return(_1v)?_Xo.getMonth()+1:_Xo.getUTCMonth()+1;
};_nI2.prototype.get_current_day=function(){var _Xo=new Date();return(_1v)?_Xo.getDate():_Xo.getUTCDate();};_nI2.prototype.get_current_weekday=function(){var _Xo=new Date();return(_1v)?_Xo.getDay():_Xo.getUTCDay();};_nI2.prototype.get_current_hour=function(){var _Xo=new Date();return(_1v)?_Xo.getHours():_Xo.getUTCHours();};_nI2.prototype.get_current_minute=function(){var _Xo=new Date();return(_1v)?_Xo.getMinutes():_Xo.getUTCMinutes();};_nI2.prototype.get_current_second=function(){var _Xo=new Date();return(_1v)?_Xo.getSeconds():_Xo.getUTCSeconds();
};_nI2.prototype.get_current_event_type=function(){return _5T2(_yA);};_nI2.prototype.get_current_event_number=function(){return _6T2(_yA,_AA);};_nI2.prototype.get_current_event_object=function(){return _wA._ZI;};_nI2.prototype.set_lives_function=function(_7T2){var _8T2=this.lives;this.lives=_Ak(yyGetReal(_7T2));if((_8T2>0)&&(this.lives<=0)){_Fx._w6(_5y2,0);}};_nI2.prototype.set_health_function=function(_9T2){var _aT2=0.0;_aT2=this.health;this.health=yyGetReal(_9T2);if((_aT2>0)&&(this.health<=0)){_Fx._w6(_ay2,
0);}};_nI2.prototype.get_mouse_x=function(){return window_views_mouse_get_x();};_nI2.prototype.get_mouse_y=function(){return window_views_mouse_get_y();};_nI2.prototype.__i=function(_bT2){for(var _H5=0;_H5<_bT2.length;_H5++){var _2z=_bT2[_H5];this[_H5]=_2z;}};var _cT2="cleanup",_dT2="step",_eT2="layer_begin",_fT2="layer_end",_gT2="room_start",_hT2="room_end";var _jQ="gmAffectsSingleLayerOnly";var _iT2="effect_";var _jT2="_";var _kT2="filter_";var _lT2="_";var _mT2="_";var _nT2="_shader";var _oT2="_info";var _pT2=0,
_qT2=1,_kQ=2;var _rT2=0,_fO=1,_sT2=2,_pQ=3,_hO=4,_tT2=5;var _uT2=0;function _vT2(){if(_uT2>=Number.MAX_SAFE_INTEGER)_uT2=0;else _uT2++;return _uT2;}/*@constructor */function _wT2(){this.__type="[EffectParameterInfo]";this.pName=null;this._xT2=null;this.type=0;this.elements=0;this.arraysize=0;this._yT2=0.0;this._2L=null;this._zT2=null;this._AT2=null;this._BT2=false;this._CT2=false;}/*@constructor */function _DT2(_zL2){this.__type="[EffectInfo]";this.pName=null;this._xT2=null;this._ET2=null;this.type=0;this._FT2=0;
this._4L=[];}_DT2.prototype._GT2=function(_HT2){var _IT2=JSON.parse(_HT2);this.pName=_IT2.name;this._xT2=_IT2.displayname;this.type=_IT2.type=="filter"?_qT2:_kQ;if(this.type==_kQ){this._ET2=_IT2.name;}else {this._ET2=_IT2.name+_nT2;}var parameters=_IT2.parameters;this._FT2=parameters.length;this._4L=[];for(var i=0;i<parameters.length;i++){var _JT2=parameters[i];var _c21=new _wT2();_c21.pName=_JT2.name;_c21._xT2=_JT2.displayname;switch(_JT2.type){case "float":_c21.type=_fO;break;case "int":_c21.type=_sT2;
break;case "bool":_c21.type=_pQ;break;case "sampler":_c21.type=_hO;break;}_c21.elements=_JT2.elements;_c21.arraysize=_JT2.arraysize!==undefined?_JT2.arraysize:1;_c21._2L=[];var defaults=_JT2.defaults;if(defaults===undefined){defaults=_JT2.default;}if(defaults instanceof Array){for(var _J6=0;_J6<defaults.length;_J6++){_c21._2L.push(defaults[_J6]);}}else {_c21._2L.push(defaults);}_c21._zT2=[];if(_JT2.min instanceof Array){for(var _J6=0;_J6<_JT2.min.length;_J6++){_c21._zT2.push(_JT2.min[_J6]);}}else {_c21._zT2.push(_JT2.min);
}_c21._AT2=[];if(_JT2.max instanceof Array){for(var _J6=0;_J6<_JT2.max.length;_J6++){_c21._AT2.push(_JT2.max[_J6]);}}else {_c21._AT2.push(_JT2.max);}if(_JT2.options!=undefined){if(_c21.type==_hO){var _KT2=_JT2.options.split('|');for(var _J6=0;_J6<_KT2.length;_J6++){if(_KT2[_J6]=="repeat"){_c21._BT2=true;}else if(_KT2[_J6]=="filter"){_c21._CT2=true;}}}}if(_JT2.convertValueToTimeModulated!==undefined){_c21._yT2=_JT2.convertValueToTimeModulated;}this._4L.push(_c21);}};/*@constructor */function _LT2(_MT2,_NT2,
_OT2){this.__type="[FilterHost]";this._PT2=_MT2;this._QT2=_NT2;this._HN=_OT2;this._RT2=-1;this._tj1=-1;this._uj1=-1;this._ST2=-1;this._TT2=-1;this._UT2=-1;this._VT2=-1;this._WT2=-1;this._XT2=-1;this._YT2=[];this._ZT2=[];this.__T2=[];var _YQ="";_YQ="gml"+_cT2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_cT2]!=undefined)){_YQ=g_var2obf[_cT2];}this[_YQ]=this._0U2;_YQ="gml"+_dT2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_dT2]!=undefined)){_YQ=g_var2obf[_dT2];}this[_YQ]=this._ez1;_YQ="gml"+_eT2;
if((typeof g_var2obf!=="undefined")&&(g_var2obf[_eT2]!=undefined)){_YQ=g_var2obf[_eT2];}this[_YQ]=this._1U2;_YQ="gml"+_fT2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_fT2]!=undefined)){_YQ=g_var2obf[_fT2];}this[_YQ]=this._2U2;_YQ="gml"+_gT2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_gT2]!=undefined)){_YQ=g_var2obf[_gT2];}this[_YQ]=this._3U2;_YQ="gml"+_hT2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_hT2]!=undefined)){_YQ=g_var2obf[_hT2];}this[_YQ]=this._4U2;var _iQ=_jQ;this[_iQ]=false;
this._5U2();this._6U2();}_LT2.prototype._0U2=function(){this._RT2=-1;};_LT2.prototype._ez1=function(){if(this._tj1==-1){this._tj1=get_timer();}else {this._uj1=get_timer()-this._tj1;}};_LT2.prototype._1U2=function(_YM){if(_09==null)return -1;if((_yA!=_Cz2)||(_AA!=0))return;var _7U2=false;var _iQ=_jQ;var _xL2=this[_iQ];if(_xL2!==undefined){_7U2=_xL2;}if(_7U2){var _8U2=_td1;var _9U2=_Md1;var _aU2=surface_get_target();if(_aU2!=-1){_8U2=surface_get_width(_aU2);_9U2=surface_get_height(_aU2);}this._RT2=_aQ._bU2(_8U2,
_9U2);this._cU2=_cs(_EF);this._dU2=_cs(_9s);var _as=_cs(_ds);if(_Ir==-1){this._eU2=_as;}else {var _es=new _qr();_es._fs();_es._e7[_gs]=-1.0;this._eU2.Multiply(_as,_es);}surface_set_target(this._RT2);draw_clear_alpha(0,0.0);_8s(_EF,this._cU2);var _fU2=_de1._Pt2();_fU2._Ee1(this._dU2);_fU2._Fe1(this._eU2);_fU2._Ge1();_09._7b._Au();if((_09._7b._8b(_Wa._db)==false)&&(_09._7b._8b(_Wa._9b)==_Wa._Xa)&&(_09._7b._8b(_Wa._ab)==_Wa._Za)){_09._7b._nb(_Wa._db,true);_09._7b._nb(_Wa._bb,_Wa._cV1);_09._7b._nb(_Wa._cb,
_Wa.__a);}}};_LT2.prototype._2U2=function(_YM){if(_09==null)return -1;if((_yA!=_Cz2)||(_AA!=0))return;var _gU2=surface_get_target();if(_gU2==-1)return;var _8U2=surface_get_width(_gU2);var _9U2=surface_get_height(_gU2);var _hU2=-1;if(this._RT2!=-1){_09._7b._Bu(true);surface_reset_target();_8s(_EF,this._cU2);var _fU2=_de1._Pt2();_fU2._Ee1(this._dU2);_fU2._Fe1(this._eU2);_fU2._Ge1();}else {_hU2=_aQ._bU2(_8U2,_9U2);}var _iU2=_gb;_09._7b._Au();var _jU2=_cs(_EF);var _kU2=_cs(_9s);var _lU2=_cs(_ds);var _1N=_Fb;var _mU2=0.0;
var _nU2=0.0;var _nt2=_de1._ee1();if(_nt2!=null){_mU2=_nt2._Et2();_nU2=_nt2._Gt2();}if(this._RT2==-1){surface_set_target(_hU2);}shader_set(this._QT2);_09._7b._nb(_Wa._ft,false);_09._7b._nb(_Wa._ht,false);_09._7b._nb(_Wa._et,false);_09._7b._nb(_Wa._qt,_Wa._NS1);var _oU2=new _qr();var _pU2=new _qr();var _qU2=new _qr();_oU2._fs();_pU2._fs();_qU2._fs();_8s(_EF,_oU2);_8s(_9s,_pU2);_8s(_ds,_qU2);var _rU2=(this._uj1)/1000000.0;shader_set_uniform_f(this._ST2,_rU2);shader_set_uniform_f(this._TT2,_rU2);shader_set_uniform_f(this._UT2,
_8U2,_9U2);shader_set_uniform_f(this._VT2,(_8U2>0)?(1.0/_8U2):0.0,(_9U2>0)?(1.0/_9U2):0.0);shader_set_uniform_f(this._WT2,_mU2,_nU2);shader_set_uniform_f(this._XT2,(this._RT2!=-1)?1.0:0.0);if((this._HN!=null)&&(this._YT2!=null)){for(var i=0;i<this._HN._FT2;i++){var _sU2=this._HN._4L[i];var _xL2=this[_sU2.pName];if(_xL2!=null){if(_xL2 instanceof Array){switch(_sU2.type){case _fO:{var _tU2=_xL2.slice();if(_sU2._yT2>0.0){for(var _J6=0;_J6<_tU2.length;_J6++){if(abs(_tU2[_J6])>0.0){var __h=1.0;if(_tU2[_J6]<0.0){
__h=-1.0;}var _uU2=abs(_tU2[_J6]);var _vU2=_sU2._yT2/_uU2;_tU2[_J6]=((_rU2%_vU2)/_vU2)*__h;}}}shader_set_uniform_f_array(this._YT2[i],_tU2);}break;case _sT2:case _pQ:{shader_set_uniform_i_array(this._YT2[i],_xL2);}break;}}else {switch(_sU2.type){case _fO:{if(_sU2._yT2>0.0&&abs(_xL2)>0.0){var __h=1.0;if(_xL2<0.0){__h=-1.0;}var _uU2=abs(_xL2);var _vU2=_sU2._yT2/_uU2;_xL2=((_rU2%_vU2)/_vU2)*__h;}shader_set_uniform_f(this._YT2[i],_xL2);}break;case _sT2:case _pQ:{shader_set_uniform_f(this._YT2[i],_xL2);}break;case _hO:{
var _wU2=_xL2;var _tJ2=_m6._n6(_wU2);if((_tJ2!=null)&&(_tJ2._xU2===undefined)&&(_tJ2._ME===undefined)){var _yU2=this._YT2[i];texture_set_stage(_yU2,sprite_get_texture(_wU2,0));shader_set_uniform_f(this._ZT2[i],_tJ2.width,_tJ2.height);shader_set_uniform_f(this.__T2[i],(_tJ2.width>0)?(1.0/_tJ2.width):0.0,(_tJ2.height>0)?(1.0/_tJ2.height):0.0);if(_sU2._BT2){gpu_set_texrepeat_ext(_yU2,true);}else {gpu_set_texrepeat_ext(_yU2,false);}if(_sU2._CT2){gpu_set_tex_filter_ext(_yU2,true);}else {gpu_set_tex_filter_ext(_yU2,
false);}}}break;}}}}}if(this._RT2!=-1){_09._7b._nb(_Wa._et,true);_09._7b._nb(_Wa._db,false);_09._7b._nb(_Wa._9b,_Wa.__a);_09._7b._nb(_Wa._ab,_Wa._Za);}_Fb=0.0;draw_surface_stretched(_gU2,-1,-1,2,2,_Om,1.0);if(this._RT2!=-1){_aQ._zU2(this._RT2);this._RT2=-1;}else {surface_reset_target();_8s(_EF,_oU2);_8s(_9s,_pU2);_8s(_ds,_qU2);shader_set(-1);draw_surface_stretched(_hU2,-1,-1,2,2,_Om,1.0);_aQ._zU2(_hU2);}_09._7b._Bu(true);shader_set(_iU2);_Fb=_1N;_8s(_EF,_jU2);_8s(_9s,_kU2);_8s(_ds,_lU2);};_LT2.prototype._3U2=function(){
};_LT2.prototype._4U2=function(){surface_free(this._RT2);this._RT2=-1;};_LT2.prototype._5U2=function(){if(this._PT2==null)return;this._ST2=shader_get_uniform(this._QT2,"gm_vTime");this._TT2=shader_get_uniform(this._QT2,"gm_pTime");this._UT2=shader_get_uniform(this._QT2,"gm_pSurfaceDimensions");this._VT2=shader_get_uniform(this._QT2,"gm_pSurfaceTexelSize");this._WT2=shader_get_uniform(this._QT2,"gm_pCamOffset");this._XT2=shader_get_uniform(this._QT2,"gm_pPreMultiplyAlpha");};_LT2.prototype._6U2=function(){
if(this._PT2==null)return;if(this._HN==null)return;for(var i=0;i<this._HN._FT2;i++){if(this._HN._4L[i].type==_hO){this._YT2[i]=shader_get_sampler_index(this._QT2,this._HN._4L[i].pName);var _AU2=this._HN._4L[i].pName+"Dimensions";this._ZT2[i]=shader_get_uniform(this._QT2,_AU2);_AU2=this._HN._4L[i].pName+"TexelSize";this.__T2[i]=shader_get_uniform(this._QT2,_AU2);}else {this._YT2[i]=shader_get_uniform(this._QT2,this._HN._4L[i].pName);this._ZT2[i]=-1;this.__T2[i]=-1;}}};/*@constructor */function _BU2(_CU2){
this.__type="[EffectInstanceRef]";this.__yyIsGMLObject=true;this.instance=_CU2;}/*@constructor */function _DU2(_EU2,_OT2,_FU2){this.__type="[EffectInstance]";this._hQ=_EU2;this._HN=_OT2;this.id=_vT2();this._GU2=_FU2;this._HU2=-1;this._rC=[];}_DU2.prototype._cQ=function(){var _go=new _BU2(this);this._rC.push(new WeakRef(_go));return _go;};_DU2.prototype._IU2=function(){var _JU2=[];for(var i=0;i<this._rC.length;i++){if(this._rC[i].deref()!==undefined){_JU2.push(this._rC[i]);}}this._rC=_JU2;return this._rC.length>0;
};_DU2.prototype._KU2=function(){if(this._hQ==null)return;if(this._HN==null)return;for(var i=0;i<this._HN._FT2;i++){var _sU2=this._HN._4L[i];var _LU2=_sU2.elements*((_sU2.arraysize==0)?1:_sU2.arraysize);this._oQ(_sU2.pName,_sU2.type,_LU2,_sU2._2L);}};_DU2.prototype._oQ=function(_MU2,_wd,_NU2,_lU1){if(this._hQ==null)return;if(_MU2==null)return;if(_lU1==null)return;var _xL2=null;if(_NU2>1){_xL2=[];for(var _J6=0;_J6<_NU2;_J6++){var _OU2=null;switch(_wd){case _fO:_OU2=_lU1[_J6];break;case _sT2:_OU2=_lU1[_J6];
break;case _pQ:_OU2=_lU1[_J6]?1:0;break;case _hO:{var _wU2=_m6._PU2(_lU1[_J6]);_OU2=_wU2;break;}}_xL2.push(_OU2);}}else {switch(_wd){case _fO:_xL2=_lU1[0];break;case _sT2:_xL2=_lU1[0];break;case _pQ:_xL2=_lU1[0]?1:0;break;case _hO:{var _wU2=_m6._PU2(_lU1[0]);_xL2=_wU2;break;}}}var _iQ=_MU2;if(this._HN.type==_kQ){var _iQ="gml"+_MU2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_MU2]!=undefined)){_iQ=g_var2obf[_MU2];}}this._hQ[_iQ]=_xL2;};_DU2.prototype._fQ=function(_MU2){if(this._hQ==null)return null;if(this._HN==null)return null;
for(var i=0;i<this._HN._FT2;i++){var _sU2=this._HN._4L[i];if(_sU2.pName==_MU2){var _iQ=_MU2;if(this._HN.type==_kQ){var _iQ="gml"+_MU2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_MU2]!=undefined)){_iQ=g_var2obf[_MU2];}}return this._hQ[_iQ];}}return null;};_DU2.prototype._gQ=function(){if(this._hQ==null)return null;if(this._HN==null)return null;if(this._HN._FT2==0)return {};var _QU2={};_QU2.__yyIsGMLObject=true;for(var i=0;i<this._HN._FT2;i++){var _sU2=this._HN._4L[i];var _RU2=this._fQ(_sU2.pName);if(_RU2!=null){
var _iQ="gml"+_sU2.pName;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_sU2.pName]!=undefined)){_iQ=g_var2obf[_sU2.pName];}_QU2[_iQ]=_RU2;}}return _QU2;};_DU2.prototype._eQ=function(){var _bc=[];for(var i=0;i<this._HN._FT2;i++){var _sU2=this._HN._4L[i];_bc.push(_sU2.pName);}return _bc;};_DU2.prototype._lQ=function(_MU2,_SU2){if(this._hQ==null)return false;if(this._HN==null)return false;if(_SU2==null)return false;for(var i=0;i<this._HN._FT2;i++){var _sU2=this._HN._4L[i];if(_sU2.pName==_MU2){var _iQ=_MU2;if(this._HN.type==_kQ){
var _iQ="gml"+_MU2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_MU2]!=undefined)){_iQ=g_var2obf[_MU2];}}this._hQ[_iQ]=_SU2;return true;}}return false;};_DU2.prototype._nQ=function(_TU2){if(this._hQ==null)return false;if(this._HN==null)return false;if(this._HN._FT2==0)return false;if(_TU2==null)return false;for(var i=0;i<this._HN._FT2;i++){var _PN=this._HN._4L[i].pName;var _iQ="gml"+_PN;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_PN]!=undefined)){_iQ=g_var2obf[_PN];}var _xL2=_TU2[_iQ];if(_xL2!==null&&_xL2!==undefined){
this._lQ(_PN,_xL2);}}return true;};function _UU2(){this.width=0;this.height=0;this._VU2=-1;this._WU2=-1;this._XU2=false;}/*@constructor */function _DI2(){this.__type="[EffectManager]";this._YU2={};this._ZU2=0;this._Is2=null;this.__U2=[];}_DI2.prototype._uL=function(){if(this._Is2!==null){this._Is2=null;}this._Is2={};this._0V2();};_DI2.prototype._Lt2=function(){this._YU2={};if(this._Is2!==null){this._Is2=null;}var i;for(i=0;i<this.__U2.length;i++){var _1V2=__U2[i];if(_1V2!=null){surface_free(_1V2._VU2);
}}this.__U2=[];};_DI2.prototype._bQ=function(_8Q,_FU2){if(_8Q==null)return null;var _HN=this._2V2(_8Q);var _3V2=null;if(_HN.type==_kQ){var _4V2=_5V2(_HN._ET2);if((_4V2!=null)&&(_4V2!=-1)){_3V2=__yy_gml_object_create(null,_4V2);}}else if(_HN.type==_qT2){var _6V2=_Y31(_HN._ET2);if(_6V2!=-1){var _PT2=_aw.Shaders[_6V2];_3V2=new _LT2(_PT2,_6V2,_HN);}}if((_3V2!=null)&&(_HN!=null)){var _7V2=new _DU2(_3V2,_HN,_FU2);_7V2._KU2();var _5L=false;_7V2._oQ(_jQ,_pQ,1,[_5L]);return _7V2;}return null;};_DI2.prototype._8V2=function(_9V2){
if(_9V2==null)_9V2=_c4;if(_9V2==null)return;var _yk=_9V2._RL._yk;for(var i=_yk.length-1;i>=0;i--){var _kH=_yk[i];this._aV2(_9V2,_kH);}};_DI2.prototype._bV2=function(_9V2){if(_9V2==null)_9V2=_c4;if(_9V2==null)return;for(var i=0;i<_9V2._cV2;i++){var _kH=_bo._6J(_9V2,_9V2._dV2[i]);if(_kH!=null){_kH._8K();}}_9V2._eV2();};_DI2.prototype._aV2=function(_9V2,_fV2){if(_fV2==null)return;var _HN=_fV2._bK();if(_HN!=null){var _9Q=this._bQ(_HN.pName,true);if(_9Q!=null){_fV2._6K(_9Q._cQ());_9V2._rQ(_fV2._Ce);for(var i=0;
i<_HN._WA;i++){var _sU2=_HN._4L[i];_9Q._oQ(_sU2.pName,_sU2.type,_sU2.elements,_sU2._2L);}_9Q._oQ(_jQ,_pQ,1,[_HN._5L]);}}else {var _gV2=_fV2._XJ.substring(0,_iT2.length)==_iT2;var _hV2=_fV2._XJ.substring(0,_kT2.length)==_kT2;if(_gV2||_hV2){if(_fV2._9K()==null){var _iV2=_jT2+_fV2._XJ;var _9Q=this._bQ(_iV2,true);if(_9Q!=null){_fV2._6K(_9Q._cQ());_9V2._rQ(_fV2._Ce);_9Q._oQ(_jQ,_pQ,1,[false]);}}}}};_DI2.prototype._jV2=function(_9V2,_fV2){if(_fV2==null)return;_fV2._8K();};_DI2.prototype._kV2=function(_9V2){
if(_9V2==null)_9V2=_c4;if(_9V2==null)return;for(var i=0;i<_9V2._cV2;i++){var _kH=_bo._6J(_9V2,_9V2._dV2[i]);if(_kH!=null){_kH._1K=_kH._2K;if(_kH._VJ){var _9o=_kH._9K().instance;if(_9o._HU2!=this._ZU2){var _YQ="gml"+_dT2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_dT2]!=undefined)){_YQ=g_var2obf[_dT2];}if(_9o._hQ[_YQ]!==undefined){_9o._hQ[_YQ]();}_9o._HU2=this._ZU2;}if(!_9o._IU2()){var _YQ="gml"+_cT2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_cT2]!=undefined)){_YQ=g_var2obf[_cT2];}if(_9o._hQ[_YQ]!==undefined){
_9o._hQ[_YQ]();}}}}}this._lV2();this._ZU2++;};_DI2.prototype._mV2=function(_t8,_9V2,_nV2){if(_9V2==undefined)_9V2=null;if(_nV2==undefined)_nV2=false;if(_9V2==null)_9V2=_c4;if(_9V2==null)return;for(var i=0;i<_9V2._cV2;i++){var _kH=_bo._6J(_9V2,_9V2._dV2[i]);if((_kH!=null)&&(!_nV2||(_kH._VJ))){var _9o=_kH._9K().instance;var _YQ="gml"+_t8;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_t8]!=undefined)){_YQ=g_var2obf[_t8];}if(_9o._hQ[_YQ]!==undefined){_9o._hQ[_YQ]();}}}};_DI2.prototype._dQ=function(_oV2){
return _oV2.instance!==undefined&&_oV2.instance.__type=="[EffectInstance]";};_DI2.prototype._pV2=function(_oV2){return _oV2.instance._hQ;};_DI2.prototype._2V2=function(_8Q){var _qV2=this._YU2[_8Q];if(_qV2!=null){return _qV2;}var _rV2=null;var _sV2=_8Q+_oT2;var _tV2=variable_global_get(_sV2);if(_tV2!=null){_rV2=new _DT2();_rV2._GT2(_tV2);}if(_rV2==null){_rV2=new _DT2();_rV2.pName=_8Q;_rV2._xT2=_8Q;if((_8Q.substring(0,_iT2.length)==_iT2)||(_8Q.substring(0,(_jT2+_iT2).length)==(_jT2+_iT2))){_rV2.type=_kQ;_rV2._ET2=_8Q;
}else {_rV2.type=_qT2;_rV2._ET2=_8Q+_nT2;}}if(_rV2!=null){this._YU2[_8Q]=_rV2;}return _rV2;};_DI2.prototype._0V2=function(){var _uV2=_uC._y21.length;for(var i=0;i<_uV2;i++){var _ao=_uC._y21[i];if(_ao!=null){var _yk=_ao._RL._yk;for(var _vV2=_yk.length-1;_vV2>=0;_vV2--){var _kH=_yk[_vV2];if(_kH!=null){var _HN=_kH._bK();if(_HN!=null){this._aV2(_ao,_kH);}else {var _gV2=_kH._XJ.substring(0,_iT2.length)==_iT2;var _hV2=_kH._XJ.substring(0,_kT2.length)==_kT2;if(_gV2||_hV2){var _iV2=_jT2+_kH._XJ;this._2V2(_iV2);this._aV2(_ao,
_kH);}}}}}}};_DI2.prototype._DJ2=function(_8Q,_wV2){var _rV2=new _DT2();_rV2._GT2(_wV2);this._YU2[_8Q]=_rV2;};_DI2.prototype._bU2=function(_89,_99){var i;for(i=0;i<this.__U2.length;i++){var _xV2=this.__U2[i];if((_xV2!=null)&&(_xV2._XU2==false)){if((_xV2.width==_89)&&(_xV2.height==_99)){if(surface_exists(_xV2._VU2)){_xV2._XU2=true;return _xV2._VU2;}}}}var _nm=new _UU2();_nm.width=_89;_nm.height=_99;_nm._XU2=true;_nm._VU2=surface_create(_89,_99,_cm);_nm._WU2=-1;this.__U2[this.__U2.length]=_nm;return _nm._VU2;
};_DI2.prototype._zU2=function(_yg){var i;for(i=0;i<this.__U2.length;i++){var _xV2=this.__U2[i];if((_xV2!=null)&&(_xV2._VU2==_yg)){if(_xV2._XU2==false){_Du2._Eu2("Trying to release temp surface %s which isn't in use\n",_yg);}else {_xV2._XU2=false;_xV2._WU2=this._ZU2;}}}};_DI2.prototype._lV2=function(){var i;for(i=0;i<this.__U2.length;){var _xV2=this.__U2[i];if(_xV2==null){this.__U2.splice(i,1);}else {var _yV2=false;if((_xV2._XU2==false)&&((this._ZU2-_xV2._WU2)>1)){_yV2=true;}else if(!surface_exists(_xV2._VU2)){
_yV2=true;}if(_yV2){surface_free(_xV2._VU2);this.__U2.splice(i,1);}else {i++;}}}};/*@constructor */function _zV2(){this.enabled=false;this._AV2=0.0;this._BV2=0xffffffff;this._CV2=1.0;this._DV2=false;this._EV2=0.0;this._FV2=32.0;this._GV2=0xffffffff;this._HV2=1.0;this._IV2=false;this._JV2=1.0;this._KV2=0xffffffff;this._LV2=1.0;this._MV2=false;this._NV2=0;this.shadowOffsetX=0.0;this.shadowOffsetY=0.0;this._OV2=0xff000000;this._PV2=1.0;}/*@constructor */function _vz(){this.__type="[Font]";this._xz=false;
this._QV2=false;this.pName="";this._oz="";this.size=12;this.ascenderOffset=0;this.ascender=0;this.bold=false;this.italic=false;this.first=32;this.last=127;this._Az="";this.prop=false;this._RV2=0;this._SV2=null;this._Nz=null;this.antialias=0;this.charset=0;this._TV2=1;this._UV2=1;this._wz=0.0;this.glyphs=null;this._6m=null;this._Jz=null;this.spriteIndex=-1;this._VV2=0;this._Cz=false;this.sdfSpread=0;this._Dz=new _zV2();}_vz.prototype._Ez=function(_WV2){if((_WV2==undefined)||(_WV2==null))return;var _oV2=null;
_oV2=variable_struct_get(_WV2,"thickness");if((_oV2!=undefined)&&(_oV2!=null)){var _XV2=yyGetReal(_oV2);_XV2=_XV2<-32.0?-32.0:(_XV2>32.0?32.0:_XV2);this._Dz._AV2=_XV2;}_oV2=variable_struct_get(_WV2,"coreColour");if((_oV2==undefined)||(_oV2==null))_oV2=variable_struct_get(_WV2,"coreColor");if((_oV2!=undefined)&&(_oV2!=null)){this._Dz._BV2=yyGetInt32(_oV2);}_oV2=variable_struct_get(_WV2,"coreAlpha");if((_oV2!=undefined)&&(_oV2!=null)){var alpha=yyGetReal(_oV2);alpha=alpha<0.0?0.0:(alpha>1.0?1.0:alpha);
this._Dz._CV2=alpha;}_oV2=variable_struct_get(_WV2,"glowEnable");if((_oV2!=undefined)&&(_oV2!=null)){this._Dz._DV2=yyGetBool(_oV2);}_oV2=variable_struct_get(_WV2,"glowStart");if((_oV2!=undefined)&&(_oV2!=null)){var _Nm1=yyGetReal(_oV2);_Nm1=_Nm1<0.0?0.0:(_Nm1>64.0?64.0:_Nm1);this._Dz._EV2=_Nm1;}_oV2=variable_struct_get(_WV2,"glowEnd");if((_oV2!=undefined)&&(_oV2!=null)){var _Nm1=yyGetReal(_oV2);_Nm1=_Nm1<0.0?0.0:(_Nm1>64.0?64.0:_Nm1);this._Dz._FV2=_Nm1;}_oV2=variable_struct_get(_WV2,"glowColour");
if((_oV2==undefined)||(_oV2==null))_oV2=variable_struct_get(_WV2,"glowColor");if((_oV2!=undefined)&&(_oV2!=null)){this._Dz._GV2=yyGetInt32(_oV2);}_oV2=variable_struct_get(_WV2,"glowAlpha");if((_oV2!=undefined)&&(_oV2!=null)){var alpha=yyGetReal(_oV2);alpha=alpha<0.0?0.0:(alpha>1.0?1.0:alpha);this._Dz._HV2=alpha;}_oV2=variable_struct_get(_WV2,"outlineEnable");if((_oV2!=undefined)&&(_oV2!=null)){this._Dz._IV2=yyGetBool(_oV2);}_oV2=variable_struct_get(_WV2,"outlineDistance");if((_oV2!=undefined)&&(_oV2!=null)){
var _Nm1=yyGetReal(_oV2);_Nm1=_Nm1<0.0?0.0:(_Nm1>64.0?64.0:_Nm1);this._Dz._JV2=_Nm1;}_oV2=variable_struct_get(_WV2,"outlineColour");if((_oV2==undefined)||(_oV2==null))_oV2=variable_struct_get(_WV2,"outlineColor");if((_oV2!=undefined)&&(_oV2!=null)){this._Dz._KV2=yyGetInt32(_oV2);}_oV2=variable_struct_get(_WV2,"outlineAlpha");if((_oV2!=undefined)&&(_oV2!=null)){var alpha=yyGetReal(_oV2);alpha=alpha<0.0?0.0:(alpha>1.0?1.0:alpha);this._Dz._LV2=alpha;}_oV2=variable_struct_get(_WV2,"dropShadowEnable");
if((_oV2!=undefined)&&(_oV2!=null)){this._Dz._MV2=yyGetBool(_oV2);}_oV2=variable_struct_get(_WV2,"dropShadowSoftness");if((_oV2!=undefined)&&(_oV2!=null)){var width=yyGetReal(_oV2);width=width<0.0?0.0:(width>64.0?64.0:width);this._Dz._NV2=width;}_oV2=variable_struct_get(_WV2,"dropShadowOffsetX");if((_oV2!=undefined)&&(_oV2!=null)){var offset=yyGetReal(_oV2);this._Dz.shadowOffsetX=offset;}_oV2=variable_struct_get(_WV2,"dropShadowOffsetY");if((_oV2!=undefined)&&(_oV2!=null)){var offset=yyGetReal(_oV2);
this._Dz.shadowOffsetY=offset;}_oV2=variable_struct_get(_WV2,"dropShadowColour");if((_oV2==undefined)||(_oV2==null))_oV2=variable_struct_get(_WV2,"dropShadowColor");if((_oV2!=undefined)&&(_oV2!=null)){this._Dz._OV2=yyGetInt32(_oV2);}_oV2=variable_struct_get(_WV2,"dropShadowAlpha");if((_oV2!=undefined)&&(_oV2!=null)){var alpha=yyGetReal(_oV2);alpha=alpha<0.0?0.0:(alpha>1.0?1.0:alpha);this._Dz._PV2=alpha;}};_vz.prototype._Mz=function(){var _QU2=new _Lz();variable_struct_set(_QU2,"thickness",this._Dz._AV2);
variable_struct_set(_QU2,"coreColour",this._Dz._BV2);variable_struct_set(_QU2,"coreAlpha",this._Dz._CV2);variable_struct_set(_QU2,"glowEnable",this._Dz._DV2);variable_struct_set(_QU2,"glowStart",this._Dz._EV2);variable_struct_set(_QU2,"glowEnd",this._Dz._FV2);variable_struct_set(_QU2,"glowColour",this._Dz._GV2);variable_struct_set(_QU2,"glowAlpha",this._Dz._HV2);variable_struct_set(_QU2,"outlineEnable",this._Dz._IV2);variable_struct_set(_QU2,"outlineDistance",this._Dz._JV2);variable_struct_set(_QU2,
"outlineColour",this._Dz._KV2);variable_struct_set(_QU2,"outlineAlpha",this._Dz._LV2);variable_struct_set(_QU2,"dropShadowEnable",this._Dz._MV2);variable_struct_set(_QU2,"dropShadowSoftness",this._Dz._NV2);variable_struct_set(_QU2,"dropShadowOffsetX",this._Dz.shadowOffsetX);variable_struct_set(_QU2,"dropShadowOffsetY",this._Dz.shadowOffsetY);variable_struct_set(_QU2,"dropShadowColour",this._Dz._OV2);variable_struct_set(_QU2,"dropShadowAlpha",this._Dz._PV2);return _QU2;};_vz.prototype._YV2=function(_zL2){
this.spriteIndex=-1;this._Nz=null;this.pName=_zL2.pName;this._oz=_zL2.fontname;this.size=_zL2.size;this.bold=_zL2.bold;this.italic=_zL2.italic;this.first=_zL2.first&0xffff;this._xz=false;this.ascenderOffset=_zL2.ascenderOffset;this.ascender=_zL2.ascender;this.sdfSpread=_zL2.sdfSpread;this._VV2=_zL2.lineHeight;this._Cz=this.sdfSpread>0?true:false;this.antialias=0;this.charset=0;if(((_zL2.first>>16)&0xff)!==0)this.charset=(_zL2.first>>16)&0xff;if(((_zL2.first>>24)&0xff)!==0)this.antialias=((_zL2.first>>24)&0xff)-1;
this.last=_zL2.last;this._TV2=_zL2.scaleX;this._UV2=_zL2.scaleY;this.glyphs=[];var _nv=99999999;var _p7=-99999999;var maxHeight=0;for(var _ZV2=0;_ZV2<_zL2.glyphs.length;_ZV2++){var index=-2;var __V2=_zL2.glyphs[_ZV2];if(__V2.c!=undefined)index=__V2.c.charCodeAt(0);else if(__V2.i!=undefined)index=__V2.i;this.glyphs[index]=__V2;if(index<_nv)_nv=index;if(index>_p7)_p7=index;if(__V2.h>maxHeight)maxHeight=__V2.h;}if(this._VV2==0){this._VV2=maxHeight;}this.first=_nv;this.last=_p7;this._6m=_0N2(_zL2.TPageEntry);
};_vz.prototype._Gz=function(_l6,_sz,_Fz,_ez,_0W2){this.spriteIndex=_l6;this._Nz=null;this._xz=true;this._Jz=_m6._n6(_l6);this.pName="sprite_font: "+this._Jz.pName;this._oz="spritefont";this.size=_l6.width;this.bold=false;this.italic=false;this.first=_sz;this._SV2=_0W2;this._QV2=true;this.prop=_Fz;this.last=_sz+this._Jz._n7;this._RV2=_ez;this._Cz=false;this.sdfSpread=0;this.antialias=0;this.charset=10;this._TV2=1;this._UV2=1;this._wz=0.5;this.glyphs=null;this._6m=null;this._1W2=0;for(var i=0;i<this._Jz._l5.length;
i++){var _k5=this._Jz._l5[i];if(this.prop){this._1W2=_q7(this._1W2,_k5.CropWidth);}else {this._1W2=_q7(this._1W2,_k5.ow);}}this._Nz=[];if(_0W2){var _2W2=9999999999;var _3W2=-1;for(var i=0;i<_0W2.length;i++){var c=_0W2.charCodeAt(i);if(c<_2W2)_2W2=c;if(c>_3W2)_3W2=c;this._Nz[c]=i;}this.first=_2W2;this.last=_3W2;}else {for(var i=_sz;i<(_sz+this._Jz._n7);i++){this._Nz[i]=i-_sz;}}this._4W2();};_vz.prototype._4W2=function(){var height=0;for(var _c7=0;_c7<this._Jz._l5.length;_c7++){var _k5=this._Jz._l5[_c7];height=_q7(height,
_k5.oh);}this.size=height;};_vz.prototype._iz=function(_Uw){if((!_Uw)||(0===_Uw.length))return 0;if(this._xz){return this.size*this._TV2;}else {return this._VV2*this._TV2;}};_vz.prototype._jz=function(_Uw,_5W2){if((!_Uw)||(0===_Uw.length))return 0;var _hz;if(_5W2){_hz=[_Uw];}else {_hz=_Fw._Gw(_Uw,-1,this);}if(this._xz){if(this._QV2){var _6p=0;for(var i=0;i<_hz.length;i++){var _6W2=0;var _mw=_hz[i];for(var _J6=0;_J6<_mw.length;_J6++){_6W2+=this._7W2(_mw.charCodeAt(_J6));}_6p=_q7(_6p,_6W2);}return _6p;}else {var _6p=0;
_Oa.font=this._Az;if(_Oa.measureText){for(var i=0;i<_hz.length;i++){var _ih=_Oa.measureText(_hz[i]);_6p=_q7(_6p,_ih.width);}}return _6p;}}else {var _6p=0;for(var i=0;i<_hz.length;i++){var _6W2=0;var _mw=_hz[i];for(var _J6=0;_J6<_mw.length;_J6++){var c=_mw.charCodeAt(_J6);var __V2=this.glyphs[c];if(!__V2){__V2=this.glyphs[this.first];}_6W2+=__V2.shift*this._TV2;}_6p=_q7(_6p,_6W2);}return _6p;}};_vz.prototype._8W2=function(_Uw,_it,_9W2,_aW2){_it=_r7(_Uw.length,_it);var end=_r7(_Uw.length,(_it+_9W2));var _bW2=end-_it;
if((!_Uw)||(_it>=end))return 0;if(this._xz){if(this._QV2){var _6W2=0;for(var _J6=_it;_J6<end;_J6++){_6W2+=this._7W2(_Uw.charCodeAt(_J6));}_cW2+=_bW2*_aW2;return _6W2;}else {var _6W2=0;_Oa.font=this._Az;if(_Oa.measureText){var _dW2=_Uw.substring(_it,end);_6W2=_Oa.measureText(_dW2);_6W2+=_bW2*_aW2;}return _6W2;}}else {var _6W2=0;for(var _J6=_it;_J6<end;_J6++){var c=_Uw.charCodeAt(_J6);var __V2=this.glyphs[c];if(!__V2){__V2=this.glyphs[this.first];}_6W2+=__V2.shift*this._TV2;}_6W2+=_bW2*_aW2;return _6W2;}};_vz.prototype._7W2=function(_v91){
if(this._xz){if(this._QV2){var _6p=this._RV2;if((_v91>=this.first)&&(_v91<=this.last)){var _eW2=this._Nz[_v91];var _k5=this._Jz._l5[_eW2];if(!_k5){result=this._1W2;}else if(this.prop){_6p+=_k5.CropWidth;}else {_6p+=_k5.ow;}}else if(_v91===32){_6p+=this._1W2;}return _6p;}else {_Oa.font=this._Az;if(_Oa.measureText){var _ih=_Oa.measureText(String.fromCharCode(_v91));return _ih.width;}return 0;}}var __V2=this.glyphs[_v91];if(__V2){return __V2.shift*this._TV2;}else if(0x20>=this.first&&0x20<=this.last){return this.glyphs[0x20].shift*this._TV2;
}else {return this.glyphs[this.first].shift*this._TV2;}};function _fW2(_v91,__V2){var _95=undefined;var _kc1=0,_Kc1=(__V2._Rz.length/2)-1,_gW2=0;while(_kc1<=_Kc1){_gW2=_kc1+~~((_Kc1-_kc1)/2);var other=__V2._Rz[_gW2*2];if(_v91==other){_95=__V2._Rz[(_gW2*2)+1];break;}else if(_v91<other)_Kc1=_gW2-1;else _kc1=_gW2+1;}return _95;}_vz.prototype._hW2=function(_96,_a6,_iW2,_Qm,_Rm,_d6,_rm,_sm,_KD,_LD,_aW2,_jW2){var _kW2=this._6m;if(!_kW2.texture.complete)return;var _Ai=_iW2.length;var _lW2=0.0;var _mW2=0.0;if(_aW2!==undefined){
_lW2=_aW2;}if(_jW2!==undefined){_mW2=_jW2;}var _nW2=null;for(var i=0;i<_Ai;i++){var _v91=_iW2.charCodeAt(i);var __V2=this.glyphs[_v91];if(__V2){if((_nW2!=null)&&(__V2._Rz!=undefined)){var _Rz=_fW2(_nW2.i,__V2);if(_Rz!=undefined){_96+=_Qm*this._TV2*_Rz;}}_nW2=__V2;if((__V2.w*__V2.h)>0){var _J9=__V2.x;var _K9=__V2.y;var _SD=__V2.w;var _UD=__V2.h;if(Math.abs(_d6)<0.001){_Oa._Za1(_kW2,_J9+_kW2.x,_K9+_kW2.y,_SD,_UD,_96+(__V2.offset*_Qm),_a6,_SD*this._TV2*_Qm,_UD*this._UV2*_Rm,_rm,_sm,_KD,_LD);}else {_Oa._Za1(_kW2,
_J9+_kW2.x,_K9+_kW2.y,_SD,_UD,_96+(__V2.offset*_Qm),_a6,_SD,_UD,_rm,_sm,_KD,_LD);}}_96+=_Qm*this._TV2*this._7W2(_v91);_96+=_lW2;if(_iW2[i]==" ")_96+=_mW2;}}};_vz.prototype._oW2=function(_96,_a6,_d6){var _iM2=new _qr();_iM2._RW(-_96,-_a6,0);var _pW2=new _qr();_pW2._PW(_d6);var _fk1=new _qr();_fk1.Multiply(_iM2,_pW2);_iM2._RW(_96,_a6,0);var _qW2=new _qr();_qW2.Multiply(_fk1,_iM2);return _qW2;};_vz.prototype._rW2=function(_96,_a6,_iW2,_Qm,_Rm,_d6,_rm,_sm,_KD,_LD,_aW2,_jW2,_sW2){if(this._xz){this._hW2(_96,_a6,
_iW2,_Qm,_Rm,_d6,_rm,_sm,_KD,_LD,_aW2,_jW2);}var _lW2=0.0;var _mW2=0.0;if(_aW2!==undefined){_lW2=_aW2;}if(_jW2!==undefined){_mW2=_jW2;}var _tW2;var _kW2=this._6m;if(!_kW2.texture.complete)return;var _Ai=_iW2.length;if(_F82){_rm&=0xfffefffe;_sm&=0xfffefffe;_KD&=0xfffefffe;_LD&=0xfffefffe;_sm|=0x00000001;_KD|=0x00010000;_LD|=0x00010001;}var _ob,_vb,_xb,_zb;if(!_kW2.texture._z9)_y9(_kW2);var _uW2;if(Math.abs(_d6)>0.001){_uW2=_cs(_EF);_8s(_EF,this._oW2(_96,_a6,_d6));}var _vW2=0;if(this._Cz){_vW2=this.sdfSpread;
}var _ra=_Ai*6;_ob=_09._pb(_Wa._qb,_kW2.texture._z9,_09._rb,_ra);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_ra;var _Bb=index,_3c=_Bb+_sb,_J5=_3c+_sb,_4c=_J5+_sb,_5c=_4c+_sb,_6c=_5c+_sb;_vb=_ob._wb;_xb=_ob._yb;_zb=_ob._Ab;var scaleX,scaleY;scaleX=this._TV2*_Qm;scaleY=this._UV2*_Rm;var _rd2=0;var _wW2=this._wz,_xW2=1.0/_kW2.texture.width,_yW2=1.0/_kW2.texture.height;var _zW2=false;if((_rm!=_sm)||(_KD!=_LD)){var _AW2=this._jz(_iW2,true);var _BW2=1/_AW2;var alpha=_rm&0xff000000;_zW2=true;}var _nW2=null;
for(var i=0;i<_Ai;i++){var _v91=_iW2.charCodeAt(i);var __V2=this.glyphs[_v91];if(__V2){if((_nW2!=null)&&(__V2._Rz!=undefined)){var _Rz=_fW2(_nW2.i,__V2);if(_Rz!=undefined){_96+=scaleX*_Rz;}}_nW2=__V2;if((__V2.w*__V2.h)>0){var _SD=__V2.w+2,_UD=__V2.h+2;var x=_96+(((__V2.offset-1)-_vW2)*_Qm);var y=_a6-((1+_vW2)*_Rm);_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=x-_wW2;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=y-_wW2;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=x+_wW2+(_SD*scaleX);_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=y+_wW2+(_UD*scaleY);_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;
var _J9=__V2.x-1,_K9=__V2.y-1;_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=(_kW2.x+_J9-_wW2)*_xW2;_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=(_kW2.y+_K9-_wW2)*_yW2;_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_kW2.x+_J9+_SD+_wW2)*_xW2;_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_kW2.y+_K9+_UD+_wW2)*_yW2;if(_zW2){var _Nb=_vb[index];var _8A=Math.min(Math.abs((_vb[_Bb]-_Nb))*_BW2,1);var _9A=Math.min(Math.abs((_vb[_3c]-_Nb))*_BW2,1);var _Ok1=merge_color(_rm,_sm,_8A)|alpha;var _Pk1=merge_color(_rm,_sm,_9A)|alpha;var __k1=merge_color(_LD,_KD,_9A)|alpha;
var _DK2=merge_color(_LD,_KD,_8A)|alpha;_xb[_Bb]=_xb[_6c]=_Ok1;_xb[_3c]=_Pk1;_xb[_J5]=_xb[_4c]=__k1;_xb[_5c]=_DK2;}else {_xb[_Bb]=_xb[_6c]=_rm;_xb[_3c]=_sm;_xb[_J5]=_xb[_4c]=_KD;_xb[_5c]=_LD;}_Bb+=(_sb*6);_3c+=(_sb*6);_J5+=(_sb*6);_4c+=(_sb*6);_5c+=(_sb*6);_6c+=(_sb*6);}else {_rd2++;}_96+=scaleX*__V2.shift;}else {_rd2++;}_96+=_lW2;if(_iW2[i]==" ")_96+=_mW2;}_ob._ub-=_rd2*6;if(_uW2!=undefined){_8s(_EF,_uW2);}};_vz.prototype._CW2=function(_96,_a6,_iW2,_Qm,_Rm,_d6,_rm,_sm,_KD,_LD,_aW2,_jW2){var _tW2=null;
var _v91;var _kW2=_o5[this._6m.tp];if(!_kW2.complete)return;var _lW2=0.0;var _mW2=0.0;if(_aW2!==undefined){_lW2=_aW2;}if(_jW2!==undefined){_mW2=_jW2;}var _Fh2=_Oa.globalAlpha;_Oa.globalAlpha=((_rm>>24)&0xff)/255.0;var _Ai=_iW2.length;_rm=_rm&0xffffff;_d6=_XH2(_d6);var _nW2=null;if(Math.abs(_d6)>0.00001){_DW2(_96,_a6,this._TV2*_Qm,this._UV2*_Rm,-_d6);_96=0;_a6=0;if(_rm!=0xffffff){for(var i=0;i<_Ai;i++){_v91=_iW2.charCodeAt(i);var __V2=this.glyphs[_v91];if(__V2){if((_nW2!=null)&&(__V2._Rz!=undefined)){var _Rz=_fW2(_nW2.i,
__V2);if(_Rz!=undefined){_96+=_Rz;}}_nW2=__V2;var _SD=__V2.w;if(_SD!=99999){var _UD=__V2.h;_tW2=_EW2(_kW2,__V2,__V2.x+this._6m.x,__V2.y+this._6m.y,_SD+2,_UD+2,_rm);_Oa._Za1(_tW2,0,0,_SD,_UD,_96+__V2.offset,_a6,_SD,_UD);_96+=this._7W2(_v91);}}_96+=_lW2;if(_iW2[i]==" ")_96+=_mW2;}}else {for(var i=0;i<_Ai;i++){_v91=_iW2.charCodeAt(i);var __V2=this.glyphs[_v91];if(__V2){if((_nW2!=null)&&(__V2._Rz!=undefined)){var _Rz=_fW2(_nW2.i,__V2);if(_Rz!=undefined){_96+=_Rz;}}_nW2=__V2;var _SD=__V2.w;if(_SD!=99999){var _UD=__V2.h;
_Oa._Za1(_kW2,__V2.x+this._6m.x,__V2.y+this._6m.y,_SD,_UD,_96+__V2.offset,_a6,_SD,_UD);_96+=this._7W2(_v91);}}_96+=_lW2;if(_iW2[i]==" ")_96+=_mW2;}}_FW2();}else {_96=~~(_96+0.5);_a6=~~(_a6+0.5);var _GW2=this._TV2*_Qm;var _HW2=this._UV2*_Rm;if(_rm!=0xffffff){for(var i=0;i<_Ai;i++){_v91=_iW2.charCodeAt(i);var __V2=this.glyphs[_v91];if(__V2){if((_nW2!=null)&&(__V2._Rz!=undefined)){var _Rz=_fW2(_nW2.i,__V2);if(_Rz!=undefined){_96+=_GW2*_Rz;}}_nW2=__V2;var _SD=__V2.w;if(_SD!=99999){var _UD=__V2.h;_tW2=_EW2(_kW2,
__V2,__V2.x+this._6m.x,__V2.y+this._6m.y,_SD+2,_UD+2,_rm);_Oa._Za1(_tW2,0,0,_SD+1,_UD+1,_96+(__V2.offset*_GW2),_a6,(_SD+1)*_GW2,(_UD+1)*_HW2);_96+=_GW2*this._7W2(_v91);}}_96+=_GW2*_lW2;if(_iW2[i]==" ")_96+=_GW2*_mW2;}}else {for(var i=0;i<_Ai;i++){_v91=_iW2.charCodeAt(i);var __V2=this.glyphs[_v91];if(__V2){if((_nW2!=null)&&(__V2._Rz!=undefined)){var _Rz=_fW2(_nW2.i,__V2);if(_Rz!=undefined){_96+=_GW2*_Rz;}}_nW2=__V2;var _SD=__V2.w;if(_SD!=99999){var _UD=__V2.h;_Oa._Za1(_kW2,__V2.x+this._6m.x,__V2.y+this._6m.y,
_SD,_UD,_96+(__V2.offset*_GW2),_a6,_SD*_GW2,_UD*_HW2);_96+=_GW2*this._7W2(_v91);}}_96+=_GW2*_lW2;if(_iW2[i]==" ")_96+=_GW2*_mW2;}}}_Oa.globalAlpha=_Fh2;};_vz.prototype._IW2=function(_96,_a6,_iW2,_Qm,_Rm,_d6,_rm,_sm,_KD,_LD,_aW2,_jW2){if(this._Jz==null)return;var _lW2=0.0;var _mW2=0.0;if(_aW2!==undefined){_lW2=_aW2;}if(_jW2!==undefined){_mW2=_jW2;}var _05=((_rm>>24)&0xff)/255.0;var _Fh2=_Oa.globalAlpha;_Oa.globalAlpha=_05;_rm&=0xffffff;var _GW2=this._TV2*_Qm;var _HW2=this._UV2*_Rm;if(Math.abs(_d6)>=0.001){
_DW2(_96,_a6,1,1,-_XH2(_d6));_a6=_96=0;}var _Ai=_iW2.length;for(var i=0;i<_Ai;i++){var _v91=_iW2.charCodeAt(i);if(_v91!=0x20){if((_v91>=this.first)&&(_v91<=this.last)){var _eW2=this._Nz[_v91];if(_eW2!==undefined){var _k5=this._Jz._l5[_eW2];var _kW2=_o5[_k5.tp];if(_kW2.complete){var _mE=_k5.XOffset-this._Jz.xOrigin;var _nE=_k5.YOffset-this._Jz.yOrigin;if(this.prop)_mE=0;if(_rm!=0xffffff){var _tW2=_ya(_k5,_rm);_Oa._Za1(_tW2,0,0,_k5.CropWidth,_k5.CropHeight,_96+(_mE*_GW2),_a6+(_nE*_HW2),_k5.CropWidth*_GW2,_k5.CropHeight*_HW2);
}else {_Oa._Za1(_kW2,_k5.x,_k5.y,_k5.w,_k5.h,_96+(_mE*_GW2),_a6+(_nE*_HW2),_k5.CropWidth*_GW2,_k5.CropHeight*_HW2);}}}}}_96=_96+_GW2*this._7W2(_v91);_96+=_GW2*_lW2;if(_iW2[i]==" ")_96+=_GW2*_mW2;}if(Math.abs(_d6)>=0.001)_FW2();_Oa.globalAlpha=_Fh2;};_vz.prototype._JW2=function(_96,_a6,_iW2,_Qm,_Rm,_d6,_Ym,_Zm,__m,_0n,_aW2,_jW2){if(this._Jz==null)return;var _lW2=0.0;var _mW2=0.0;if(_aW2!==undefined){_lW2=_aW2;}if(_jW2!==undefined){_mW2=_jW2;}var _Ai=_iW2.length;var _GW2=this._TV2*_Qm;var _HW2=this._UV2*_Rm;
var _KW2=undefined;if(Math.abs(_d6)>=0.001){_KW2=_cs(_EF);_8s(_EF,this._oW2(_96,_a6,_d6));}var alpha=(_Ym&0xff000000);var _LW2=((_Zm&0xff0000)-(_Ym&0xff0000))/_Ai;var _MW2=((((_Zm&0xff00)<<8)-((_Ym&0xff00)<<8)))/_Ai;var _NW2=((((_Zm&0xff)<<16)-((_Ym&0xff)<<16)))/_Ai;var _OW2=((__m&0xff0000)-(_0n&0xff0000))/_Ai;var _PW2=((((__m&0xff00)<<8)-((_0n&0xff00)<<8)))/_Ai;var _QW2=((((__m&0xff)<<16)-((_0n&0xff)<<16)))/_Ai;var _RW2=_LW2;var _SW2=_MW2;var _TW2=_NW2;var _UW2=_OW2;var _VW2=_PW2;var _WW2=_QW2;var _Ok1=_Ym;var _DK2=_0n;
for(var i=0;i<_Ai;i++){var _Pk1=((_Ym&0xff0000)+(_RW2&0xff0000))&0xff0000;_Pk1|=((_Ym&0xff00)+(_SW2>>8)&0xff00)&0xff00;_Pk1|=((_Ym&0xff)+(_TW2>>16))&0xff;_Pk1|=alpha;var __k1=((_0n&0xff0000)+(_UW2&0xff0000))&0xff0000;__k1|=((_0n&0xff00)+(_VW2>>8)&0xff00)&0xff00;__k1|=((_0n&0xff)+(_WW2>>16))&0xff;__k1|=alpha;_RW2+=_LW2;_SW2+=_MW2;_TW2+=_NW2;_UW2+=_OW2;_VW2+=_PW2;_WW2+=_QW2;var _v91=_iW2.charCodeAt(i);if(_v91!=0x20){if(_v91<this.first||_v91>this.last){}else {var _eW2=this._Nz[_v91];if(_eW2!==undefined){
var _k5=this._Jz._l5[_eW2];var _kW2=_o5[_k5.tp];if(_kW2.complete){var _mE=_k5.XOffset-this._Jz.xOrigin;var _nE=_k5.YOffset-this._Jz.yOrigin;if(this.prop)_mE=0;_Oa._Za1(_k5,_k5.x,_k5.y,_k5.w,_k5.h,_96+(_mE*_GW2),_a6+(_nE*_HW2),_k5.CropWidth*_GW2,_k5.CropHeight*_HW2,_Ok1,_Pk1,__k1,_DK2);}}}}_DK2=__k1;_Ok1=_Pk1;_96+=_GW2*this._7W2(_v91);_96+=_GW2*_lW2;if(_iW2[i]==" ")_96+=_GW2*_mW2;}if(_KW2!==undefined){_8s(_EF,_KW2);}};var _XW2=-1,_YW2=0,_ZW2=1,__W2=2,_0X2=3;/*@constructor */function _xI2(){this.Fonts=[];
this.length=0;this._gz=null;this._9z=0;this._7z=0;this._6z=0;_uH2=-1;this._9z=_uH2;this._1X2=new Object();this._1X2._2X2=[];this._1X2._3X2=_XW2;this._1X2._4X2=-1;this._1X2._5X2=-1;this._1X2._6X2=-1;this._1X2._7X2=-1;this._1X2._8X2=-1;this._1X2._9X2=-1;this._1X2._aX2=-1;this._1X2._bX2=-1;this._1X2._cX2=-1;this._1X2._dX2=-1;this._1X2._eX2=-1;var i;for(i=0;i<_0X2;i++){this._1X2._2X2[i]=-1;}if(_09){this._1X2._2X2[_YW2]=asset_get_index("__yy_sdf_shader");this._1X2._2X2[_ZW2]=asset_get_index("__yy_sdf_effect_shader");
this._1X2._2X2[__W2]=asset_get_index("__yy_sdf_blur_shader");if(this._1X2._2X2[_ZW2]!=-1){var _fX2=this._1X2._2X2[_ZW2];this._1X2._4X2=shader_get_uniform(_fX2,"gm_SDF_DrawGlow");this._1X2._5X2=shader_get_uniform(_fX2,"gm_SDF_Glow_MinMax");this._1X2._6X2=shader_get_uniform(_fX2,"gm_SDF_Glow_Col");this._1X2._7X2=shader_get_uniform(_fX2,"gm_SDF_DrawOutline");this._1X2._8X2=shader_get_uniform(_fX2,"gm_SDF_Outline_Thresh");this._1X2._9X2=shader_get_uniform(_fX2,"gm_SDF_Outline_Col");this._1X2._aX2=shader_get_uniform(_fX2,
"gm_SDF_Core_Thresh");this._1X2._bX2=shader_get_uniform(_fX2,"gm_SDF_Core_Col");}if(this._1X2._2X2[__W2]!=-1){var _fX2=this._1X2._2X2[__W2];this._1X2._cX2=shader_get_uniform(_fX2,"gm_SDF_Blur_MinMax");this._1X2._dX2=shader_get_uniform(_fX2,"gm_SDF_Blur_Col");}}}_xI2.prototype._gX2=function(_hX2,_iX2,_jX2){if(_09){if(shader_current()!=-1)return;var _JN=_jX2;if((_JN==undefined)||(_JN==null)){_JN=_hX2._Dz;}var _kX2=_YW2;if(_JN.enabled){if(_iX2&&_JN._MV2){_kX2=__W2;}else {_kX2=_ZW2;}}var _lX2=this._1X2._2X2[_kX2];
if((_lX2==-1)||(!_mX2(_lX2)))return;if(this._1X2._3X2!=_XW2)return;_nX2(_lX2);if(_kX2==_ZW2){var _oX2=1.0/(_hX2.sdfSpread*2.0);var _pX2=0.5;var _qX2=_JN._AV2;var _rX2=1.0-(((_JN._FV2+_qX2)*_oX2)+_pX2);var _sX2=1.0-(((_JN._EV2+_qX2)*_oX2)+_pX2);_rX2=_rX2<0.001?0.001:(_rX2>0.9999?0.9999:_rX2);_sX2=_sX2<0.001?0.001:(_sX2>0.9999?0.9999:_sX2);shader_set_uniform_i(this._1X2._4X2,_JN._DV2?1:0);shader_set_uniform_f(this._1X2._5X2,_rX2,_sX2);var _tX2,_uX2,_vX2,_wX2;_tX2=(_JN._GV2&0xff)/255.0;_uX2=((_JN._GV2>>8)&0xff)/255.0;
_vX2=((_JN._GV2>>16)&0xff)/255.0;_wX2=_JN._HV2;shader_set_uniform_f(this._1X2._6X2,_tX2,_uX2,_vX2,_wX2);var _xX2=1.0-(((_JN._JV2+_qX2)*_oX2)+_pX2);_xX2=_xX2<0.001?0.001:(_xX2>0.9999?0.9999:_xX2);shader_set_uniform_i(this._1X2._7X2,_JN._IV2?1:0);shader_set_uniform_f(this._1X2._8X2,_xX2);var _yX2,_zX2,_AX2,_BX2;_yX2=(_JN._KV2&0xff)/255.0;_zX2=((_JN._KV2>>8)&0xff)/255.0;_AX2=((_JN._KV2>>16)&0xff)/255.0;_BX2=_JN._LV2;shader_set_uniform_f(this._1X2._9X2,_yX2,_zX2,_AX2,_BX2);var _CX2=1.0-((_qX2*_oX2)+_pX2);
_CX2=_CX2<0.001?0.001:(_CX2>0.9999?0.9999:_CX2);shader_set_uniform_f(this._1X2._aX2,_CX2);var _DX2,_EX2,_FX2,_GX2;_DX2=(_JN._BV2&0xff)/255.0;_EX2=((_JN._BV2>>8)&0xff)/255.0;_FX2=((_JN._BV2>>16)&0xff)/255.0;_GX2=_JN._CV2;shader_set_uniform_f(this._1X2._bX2,_DX2,_EX2,_FX2,_GX2);}else if(_kX2==__W2){var _oX2=1.0/(_hX2.sdfSpread*2.0);var _pX2=0.5;var _qX2=_JN._AV2;var _HX2=_JN._NV2*0.5;var _IX2=1.0-(((_qX2+_HX2)*_oX2)+_pX2);var _JX2=1.0-(((_qX2-_HX2)*_oX2)+_pX2);_IX2=_IX2<0.001?0.001:(_IX2>0.9999?0.9999:_IX2);
shader_set_uniform_f(this._1X2._cX2,_IX2,_JX2);var _KX2,_LX2,_MX2,_NX2;_KX2=(_JN._OV2&0xff)/255.0;_LX2=((_JN._OV2>>8)&0xff)/255.0;_MX2=((_JN._OV2>>16)&0xff)/255.0;_NX2=_JN._PV2;shader_set_uniform_f(this._1X2._dX2,_KX2,_LX2,_MX2,_NX2);}var _OX2=0;this._1X2._eX2=_5r(_OX2);_qq(_OX2,true);this._1X2._3X2=_kX2;}};_xI2.prototype._PX2=function(){if(_09){if(this._1X2._3X2!=_XW2){_nX2(-1);var _OX2=0;_qq(_OX2,this._1X2._eX2);this._1X2._3X2=_XW2;}}};_xI2.prototype._QX2=function(_hX2,_jX2){if((_hX2==undefined)||(_hX2==null))return false;
if(_09){var _JN=_jX2;if((_JN==undefined)||(_JN==null)){_JN=_hX2._Dz;}if((shader_current()==-1)&&(_hX2._Cz)&&(_JN.enabled)&&(_JN._MV2)){return true;}}return false;};_xI2.prototype._RX2=function(_s4){return this.Fonts[_s4];};_xI2.prototype._ag=function(){this.Fonts=[];this.Fonts.length=0;};_xI2.prototype._Vf=function(_zL2){var _nz=null;if(_zL2!=null){_nz=new _vz();_nz._YV2(_zL2);}this.Fonts[this.Fonts.length]=_nz;return this.Fonts.length-1;};_xI2.prototype._xJ2=function(_zL2){var _nz=null;if(_zL2!=null){_nz=new _vz();
_nz._YV2(_zL2);}this.Fonts[-1]=_nz;};_xI2.prototype._Bz=function(_hX2){this.Fonts[this.Fonts.length]=_hX2;return this.Fonts.length-1;};_xI2.prototype._fz=function(){if(this._9z>=0&&this._9z<=this.Fonts.length&&this.Fonts[this._9z]!=null){this._gz=this.Fonts[this._9z];}else {this._gz=this.Fonts[-1];if(!this._gz)_ai("Error: Failed to set font. Built-in fonts disabled with no current font set.");}};_xI2.prototype._n6=function(_yg){if(_yg>=0&&_yg<=this.Fonts.length&&this.Fonts[_yg]){return this.Fonts[_yg];
}return null;};_xI2.prototype._tC=function(){var ids=[];for(var i=0;i<this.Fonts.length;++i){if(this.Fonts[i]){ids.push(i);}}return ids;};function _SX2(_xl,_gz,_TX2){if(_TX2===undefined)_TX2=false;if(_TX2==false&&_e4)return _xl;if(_xl==null)return 0;var _UX2=_xl;var _dL1="";var i=0;var _sj=0;while(_sj<_UX2.length){var __h=_UX2[_sj];if(__h=="#"){if((i>0)&&(_UX2[_sj-1]=='\\')){_dL1=_dL1.substring(0,_dL1.length-1)+'#';}else {_dL1+=String.fromCharCode(0x0d);_dL1+=String.fromCharCode(0x0a);i++;}}else {_dL1+=__h;i++;
}_sj++;}return _dL1;}_xI2.prototype._Gw=function(_iW2,_VX2,_gz){if(_iW2==null)return;if(_VX2<0)_VX2=10000000;var _WX2=" ";var _8w=String.fromCharCode(0x0a);var _XX2=String.fromCharCode(0x0d);var _Ew=[];var _YX2=0;var _Ai=_iW2.length;var _gm=_iW2;var _ZX2=_gm[0];var start=0;var end=0;while(start<_Ai){var _M81=0;if(_VX2==10000000){while(end<_Ai&&_gm[end]!=_8w&&_gm[end]!=_XX2){end++;if(end<_Ai)_ZX2=_gm[end];else _ZX2=String.fromCharCode(0x0);}var c;if(end<_Ai)c=_gm[end];else c=String.fromCharCode(0x0);if((_8w==_ZX2)&&(_XX2==_gm[end])){
end++;continue;}if((_XX2==_ZX2)&&(_8w==_gm[end])){end++;continue;}_ZX2=_gm[end];_Ew[_YX2++]=_gm.substring(start,end);}else {while(end<_Ai&&_M81<_VX2){c=_gm[end];if(_gm[end]!=_WX2)break;_M81+=this._gz._7W2(c.charCodeAt(0));end++;}while(end<_Ai&&_M81<_VX2){c=_gm[end];if(c==_8w)break;_M81+=this._gz._7W2(c.charCodeAt(0));end++;}if(_M81>_VX2){end--;_M81-=this._gz._7W2(_gm.charCodeAt(end));}if(_gm[end]==_8w){_Ew[_YX2++]=_gm.substring(start,end);}else {if(end==start)return _Ew;if(end!=_Ai){if((_gm[end]!=_WX2)||(_gm[end]!=_WX2&&_gm[end+1]!=_WX2)){
var e=end;while(e>start){if(_gm[--e]==_WX2)break;}if(e!=start){end=e;}else {while(_gm[end]!=_WX2&&end<_Ai)end++;}}}var _jt=end;if(_jt>start){while(_gm[_jt-1]==_WX2&&_jt>0){_jt--;}}if(_jt!=start)_Ew[_YX2++]=_gm.substring(start,_jt);}}start=++end;}return _Ew;};_xI2.prototype.__X2=function(_iW2,_0Y2,_1Y2,_EN2,_4P,_aW2,_2Y2,_3Y2){if(_iW2==null)return;var _WX2=" ";var _8w=String.fromCharCode(0x0a);var _XX2=String.fromCharCode(0x0d);var _95=new Object();_95._4Y2=0.0;_95._5Y2=0.0;_95._Ew=null;var _Ew=[];var _Ai=_iW2.length;
var _gm=_iW2;var _6Y2=[];var start=0;var char=0;while(char!=_Ai){if((_gm[char]==_8w)||(_gm[char]==_XX2)){_6Y2[_6Y2.length]=_gm.substring(start,char);while((_gm[char]==_8w)||(_gm[char]==_XX2)){char++;}start=char;}else {char++;}}if((char>start)&&(start<_Ai)){_6Y2[_6Y2.length]=_gm.substring(start,char);}var _Gi=0.0;var _Kz=0.0;var lineHeight=this._gz._VV2;var _7Y2=0.0;var _8Y2=this._gz._7W2(32)*this._gz._TV2;for(var _2z=0;_2z<_6Y2.length;_2z++){var _xl=_6Y2[_2z];var _9Y2=null;if(_4P){var lineWidth=0.0;var _Rr2=0;
while(_Rr2<_xl.length){if(_xl[_Rr2]!=_WX2)break;_Rr2++;}if(_Rr2==_xl.length){_Kz+=lineHeight;_Kz+=_2Y2;_Kz+=_3Y2;}else {var _aY2=_Rr2;var _bY2=_Rr2;var _cY2=_Rr2;var _dY2=0;while(_Rr2<_xl.length){while((_Rr2<_xl.length)&&(_xl[_Rr2]!=_WX2)){_Rr2++;}var _eY2=this._gz._8W2(_xl,_aY2,_Rr2-_aY2,_aW2);var _fY2=(_dY2>0)?_8Y2:0.0;if((lineWidth+_eY2+_fY2)>_0Y2){if(_dY2==0){lineWidth=_eY2;_7Y2=_q7(_7Y2,lineWidth);_9Y2=new Object();_9Y2._gY2=_xl.substring(_cY2,_Rr2);_9Y2.x=_Gi;_9Y2.y=_Kz;_9Y2.lineWidth=lineWidth;_9Y2._mW2=0.0;
_9Y2._hY2=false;_9Y2._iY2=1;_Ew[_Ew.length]=_9Y2;_Rr2++;lineWidth=0.0;_dY2=0;_cY2=_Rr2;}else {_7Y2=_q7(_7Y2,lineWidth);_9Y2=new Object();_9Y2._gY2=_xl.substring(_cY2,_bY2);_9Y2.x=_Gi;_9Y2.y=_Kz;_9Y2.lineWidth=lineWidth;_9Y2._mW2=0.0;_9Y2._hY2=false;_9Y2._iY2=_dY2;_Ew[_Ew.length]=_9Y2;_bY2=_Rr2;lineWidth=_eY2;_dY2=1;_cY2=_aY2;}_Kz+=lineHeight;_Kz+=_2Y2;}else {_bY2=_Rr2;lineWidth+=_fY2;lineWidth+=_eY2;_dY2++;}var _jY2=_Rr2+1;while((_Rr2<_xl.length)&&(_xl[_Rr2]==_WX2)){_Rr2++;}if(_Rr2>_jY2){var _kY2=_xl.substring(0,
_jY2-1);var _lY2=_xl.substring(_Rr2,_xl.length);_xl=_kY2+_lY2;_Rr2=_jY2;}_aY2=_Rr2;}if(_cY2<(_xl.length)){lineWidth=this._gz._8W2(_xl,_cY2,(_xl.length)-_cY2,_aW2);_7Y2=_q7(_7Y2,lineWidth);_9Y2=new Object();_9Y2._gY2=_xl.substring(_cY2,_xl.length);_9Y2.x=_Gi;_9Y2.y=_Kz;_9Y2.lineWidth=lineWidth;_9Y2._mW2=0.0;_9Y2._hY2=false;_9Y2._iY2=_dY2;_Ew[_Ew.length]=_9Y2;_Kz+=lineHeight;_Kz+=_2Y2;}}}else {var lineWidth=this._gz._8W2(_xl,0,_xl.length,_aW2);_7Y2=_q7(_7Y2,lineWidth);_9Y2=new Object();_9Y2._gY2=_xl;_9Y2.x=_Gi;
_9Y2.y=_Kz;_9Y2.lineWidth=lineWidth;_9Y2._mW2=0.0;_9Y2._hY2=false;_9Y2._iY2=0;_Ew[_Ew.length]=_9Y2;if(_xl.length==0)_9Y2._hY2=true;_Kz+=lineHeight;_Kz+=_2Y2;}if(_9Y2!=null){_9Y2._hY2=(_4P)?true:(_2z==(_6Y2.length-1));if(_9Y2._hY2){_Kz+=_3Y2;}}}var _mY2=(_EN2>>8)&0xff;var _nY2=_EN2&0xff;var _oY2=_Kz-_2Y2-_3Y2;if(_4P){var _pY2=0.0;if(_mY2==_qY2)_pY2=(_1Y2-_oY2)*0.5;else if(_mY2==_rY2)_pY2=(_1Y2-_oY2);if(_pY2!=0.0){var _sY2=_Ew.length;for(var i=0;i<_sY2;i++){var _Hh2=_Ew[i];_Hh2.y+=_pY2;}}}if(_nY2!=_tY2){var _uY2=(_4P)?_0Y2:_7Y2;
var _sY2=_Ew.length;for(var i=0;i<_sY2;i++){var _Hh2=_Ew[i];var lineWidth=_Hh2.lineWidth;if(_nY2==_vY2){if(!_Hh2._hY2){if(_Hh2._iY2>1){var _wY2=(_uY2-lineWidth);_Hh2._mW2=_wY2/(_Hh2._iY2-1);}}}else if(_nY2==_xY2)_Hh2.x=(_uY2-lineWidth);else if(_nY2==_yY2)_Hh2.x=(_uY2-lineWidth)*0.5;}}_95._7Y2=_7Y2;_95._oY2=_oY2;_95._Ew=_Ew;return _95;};_xI2.prototype._az=function(_Uw,x,y,_zY2,_VX2,_d6,_Qm,_Rm,_Ym,_Zm,__m,_0n){var _OJ=_Qm;var _PJ=_Rm;var _nT=0.0;var _oT=0.0;var _Ew=[];var i=0;this._fz();var _gz=this._gz;if(_Ym===undefined){
_Ym=_4d|((_3d*255.0)<<24);_Zm=_4d|((_3d*255.0)<<24);__m=_4d|((_3d*255.0)<<24);_0n=_4d|((_3d*255.0)<<24);}else if(_Zm===undefined){_Zm=_Ym;__m=_Ym;_0n=_Ym;}var _xl=_Uw;_Ew=this._Gw(_xl,_VX2,_gz);var _S01=_XH2(_d6);var _P7=Math.sin(_S01);var _Q7=Math.cos(_S01);if(_zY2<0)_zY2=_gz?_gz._iz('M'):20;var _AY2=_P7*_OJ*_zY2;var _BY2=_Q7*_PJ*_zY2;if(this._7z==1){y=y-(_Ew.length*_BY2)/2;x=x-(_Ew.length*_AY2)/2;}if(this._7z==2){y=y-_Ew.length*_BY2;x=x-_Ew.length*_AY2;}if(!_gz){if(!_09){_Oa.fillStyle=_wD;_Oa.globalAlpha=_3d;
for(i=0;i<=_Ew.length-1;i++){var _CY2=_Ew[i];if(_CY2!=null){_Oa.fillText(_CY2,x,y+13);y=y+_BY2;x=x+_AY2;}}}else {if(this._9z!=-1)_ai("Error: Runtime canvas fonts are not supported in WebGL.");}}else {var _DY2=false;if(this._QX2(_gz)){_DY2=true;}var _EY2=_OJ*_gz._TV2;var _FY2=_PJ*_gz._UV2;for(var _J6=_DY2?0:1;_J6<2;_J6++){var _GY2=(_J6==0);if(_gz._Cz){this._gX2(_gz,_GY2);}var _HY2=x;var _IY2=y;if(_GY2){var shadowOffsetX=_EY2*_gz._Dz.shadowOffsetX;var shadowOffsetY=_FY2*_gz._Dz.shadowOffsetY;_HY2=_HY2+_Q7*shadowOffsetX+_P7*shadowOffsetY;
_IY2=_IY2-_P7*shadowOffsetX+_Q7*shadowOffsetY;}for(i=0;i<=_Ew.length-1;i++){_nT=0;_oT=0;if(_gz.ascenderOffset!=undefined){_oT-=_gz.ascenderOffset*_PJ;}var _CY2=_Ew[i];if(_CY2!=null){if(this._6z==1)_nT=-(_OJ*_gz._jz(_CY2,true)/2);if(this._6z==2)_nT=-(_OJ*_gz._jz(_CY2,true));var _w7=_HY2+(_Q7*_nT)+(_P7*_oT);var _y7=_IY2-(_P7*_nT)+(_Q7*_oT);if(_gz._xz){if(_gz._QV2){if(!_09){_gz._IW2(_w7,_y7,_CY2,_OJ,_PJ,_d6,_Ym,_Zm,__m,_0n);}else {_gz._JW2(_w7,_y7,_CY2,_OJ,_PJ,_d6,_Ym,_Zm,__m,_0n);}}else {if(_gz._ph){_JY2(_gz._Az,
_CY2,_w7,_y7,1,1,_S01,_Ym,_Zm,__m,_0n);}}}else {if(_09){_gz._rW2(_w7,_y7,_CY2,_OJ,_PJ,_d6,_Ym,_Zm,__m,_0n);}else {_gz._CW2(_w7,_y7,_CY2,_OJ,_PJ,_d6,_Ym,_Zm,__m,_0n);}}}_IY2=_IY2+_BY2;_HY2=_HY2+_AY2;}if(_gz._Cz){this._PX2();}}}};_xI2.prototype._KY2=function(_LY2,_96,_a6,_aW2,_MY2,_NY2,_sW2,_OY2){if(_LY2==null)return;var _OJ=1.0;var _PJ=1.0;var angle=0.0;var _Ew=_LY2;var i=0;this._fz();var _gz=this._gz;var _55=_4d|((_3d*255.0)<<24);var _uW2=null;if(!_09){_uW2=_6s[_EF];angle=Math.atan2(_uW2._e7[1],_uW2._e7[0])*(-180/Math.PI);
_OJ=Math.sqrt((_uW2._e7[0]*_uW2._e7[0])+(_uW2._e7[1]*_uW2._e7[1]));_PJ=Math.sqrt((_uW2._e7[4]*_uW2._e7[4])+(_uW2._e7[5]*_uW2._e7[5]));}if(!_gz){if(!_09){_Oa.fillStyle=_wD;_Oa.globalAlpha=_3d;for(i=0;i<=_Ew.length-1;i++){var _CY2=_Ew[i]._gY2;var _nT=_Ew[i].x;var _oT=_Ew[i].y;var _bu2=new _Er(_96+_nT,_a6+_oT+13,0);var _PY2=_uW2._jF(_bu2);if(_CY2!=null){_Oa.fillText(_CY2,_PY2._Qr,_PY2._Rr);}}}else {if(this._9z!=-1)_ai("Error: Runtime canvas fonts are not supported in WebGL.");}}else {var _QY2=_a6;if(_OY2){_QY2+=_gz._VV2;
if(_gz.ascenderOffset!=undefined){_QY2-=_gz.ascenderOffset;}if(_gz.ascender!=undefined){_QY2-=_gz.ascender;}}var _DY2=false;if(this._QX2(_gz,_sW2)){_DY2=true;}for(var _J6=_DY2?0:1;_J6<2;_J6++){var _GY2=(_J6==0);if(_gz._Cz){this._gX2(_gz,_GY2,_sW2);}var _HY2=_96;var _IY2=_QY2;if(_GY2){if((_sW2!=undefined)&&(_sW2!=null)){_HY2+=_sW2.shadowOffsetX;_IY2+=_sW2.shadowOffsetY;}else {_HY2+=_gz._Dz.shadowOffsetX;_IY2+=_gz._Dz.shadowOffsetY;}}for(i=0;i<=_Ew.length-1;i++){var _CY2=_Ew[i]._gY2;var _nT=_Ew[i].x;var _oT=_Ew[i].y;
var _mW2=_Ew[i]._mW2;if(_CY2!=null){if(_gz._QV2){_nT-=(_gz._Jz.xOrigin);_oT-=(_gz._Jz.yOrigin);}var _w7=_HY2+_nT;var _y7=_IY2+_oT;var _PY2=null;if(!_09){var _bu2=new _Er(_w7,_y7,0);_PY2=_uW2._jF(_bu2);}if(_gz._xz){if(_gz._QV2){if(!_09){_gz._IW2(_PY2._Qr,_PY2._Rr,_CY2,_OJ,_PJ,angle,_55,_55,_55,_55,_aW2,_mW2);}else {_gz._JW2(_w7,_y7,_CY2,_OJ,_PJ,angle,_55,_55,_55,_55,_aW2,_mW2);}}else {if(_gz._ph){_JY2(_gz._Az,_CY2,_w7,_y7,1,1,angle,_55,_55,_55,_55);}}}else {if(_09){_gz._rW2(_w7,_y7,_CY2,_OJ,_PJ,angle,_55,
_55,_55,_55,_aW2,_mW2,_sW2);}else {_gz._CW2(_PY2._Qr,_PY2._Rr,_CY2,_OJ,_PJ,angle,_55,_55,_55,_55,_aW2,_mW2);}}}}if(_gz._Cz){this._PX2();}}}};_xI2.prototype._kz=function(_Uw,x,y,_zY2,_VX2){_lz=_mz=0;var _Ew=[];var i=0;this._fz();var _gz=this._gz;if(!_gz)return 1;_Ew=this._Gw(_Uw,_VX2,_gz);if(_zY2<0){_zY2=_gz._iz("M");}var _CY2,w;if(_Ew.length>0){for(i=0;i<_Ew.length-1;i++){_CY2=_Ew[i];if(_CY2!=null){w=_gz._jz(_CY2,true);if(_lz<w){_lz=w;}}_mz+=_zY2;}_mz+=_gz._iz("M");}_CY2=_Ew[_Ew.length-1];w=_gz._jz(_CY2,
true);if(_lz<w)_lz=w;};var _RY2;var _o5;var _SY2=null;var _Ae1=1024;var _Be1=768;var _5i1=1;var _6i1=1;var _iD=0;var _jD=0;var _kD=0;var _lD=0;var _pF=0;var _qF=0;var _nF=0;var _oF=0;var _iu2=[];var _TY2=0;var _xa=0xffffff;var _Fm;var _Jm;var _ue1;var _UY2;var _FW2;var _eD;var _DW2;var _VY2;var _Nm;var _WY2;var _XY2;var _mD;var _fD;var _YY2;var _Tm;var _ZY2;var __Y2;var _0Z2;var _JY2;var _1Z2=true;function _2Z2(){return _Ae1;}function _3Z2(){return _Be1;}function _Xa1(_4Z2){if(!_4Z2)return;_4Z2._5Z2=_4Z2.transform;_4Z2._hD=_4Z2.setTransform;
_4Z2._6Z2=_4Z2.save;_4Z2._7Z2=_4Z2.restore;_4Z2._ID=_4Z2.fillRect;_4Z2._HD=_4Z2.strokeRect;_4Z2._MD=_4Z2.beginPath;_4Z2._vE=_4Z2.arc;_4Z2._QD=_4Z2.stroke;_4Z2._PD=_4Z2.closePath;_4Z2.lineWidth=_4Z2.lineWidth;_4Z2._ND=_4Z2.moveTo;_4Z2._OD=_4Z2.lineTo;_4Z2._YD=_4Z2.fill;_4Z2._Za1=_4Z2.drawImage;_4Z2._He1=_4Z2.getImageData;_4Z2._8Z2=_4Z2.createImageData;_4Z2._CQ2=_4Z2.putImageData;_4Z2._9Z2=_4Z2.clip;_4Z2._aZ2=_4Z2.rect;}function _bZ2(_4Z2,_xr){if((_4Z2.imageSmoothingEnabled==_xr)&&(_4Z2.msImageSmoothingEnabled==_xr))return;
_4Z2.imageSmoothingEnabled=_xr;_4Z2.webkitImageSmoothingEnabled=_xr;_4Z2.mozImageSmoothingEnabled=_xr;_4Z2.msImageSmoothingEnabled=_xr;_4Z2.oImageSmoothingEnabled=_xr;}function _ae1(_4Z2){if(!_09)_bZ2(_4Z2,_1Z2);}function _cZ2(_Wt){_Wt=_Wt>0.5;if(_1Z2!=_Wt){_1Z2=_Wt;_bZ2(_Oa,_Wt);}}function _pI2(_FQ1){_o5=[];_SY2=null;_iD=0;_jD=0;_kD=0;_lD=0;_pF=0;_qF=0;_nF=0;_oF=0;_iu2=[];_iu2[0]=1;_iu2[1]=0;_iu2[2]=0;_iu2[3]=0;_iu2[4]=1;_iu2[5]=0;if(!_09){if(_UA2){_Fm=_dZ2;}else {_Fm=_eZ2;}_Jm=_fZ2;_Tm=_gZ2;_ue1=_hZ2;
_UY2=_iZ2;_YY2=_jZ2;_FW2=_kZ2;_eD=_lZ2;_DW2=_mZ2;_VY2=_nZ2;_Nm=_oZ2;_fD=_pZ2;_mD=_qZ2;_JY2=_rZ2;_XY2=_sZ2;_ZY2=_tZ2;_WY2=_uZ2;__Y2=function(){};_0Z2=function(){};_1Z2=!(_aw.Options&&!_aw.Options.interpolatePixels);if(_VA2){if(_UA2){_xa=0x1ffffff;_Fm=_vZ2;}else {_Fm=_wZ2;}_Jm=_fZ2;_Tm=_xZ2;}}else {_yZ2();}_ue1(0,0,_Yh1,_Zh1);_UY2(0,0,_Yh1,_Zh1,0);}var _zZ2=[];var _AZ2=0;function _pZ2(){_Oa._6Z2();_zZ2.push({__k:_AZ2++,_BZ2:_iD,_CZ2:_jD,_DZ2:_kD,_EZ2:_lD});}function _qZ2(){_Oa._7Z2();var _Z4=_zZ2.pop();_iD=_Z4._BZ2;
_jD=_Z4._CZ2;_kD=_Z4._DZ2;_lD=_Z4._EZ2;--_AZ2;}function _9b1(_Bb1){_Bb1._b9=[];_Bb1._c9=0;_Bb1._d9=4;_Bb1._Id1=0;_Bb1._cn=null;_Bb1._Va1=null;_Bb1.texture=_o5[_Bb1.tp];}function _sJ2(_FZ2){_SY2=_FZ2;for(var i=0;i<_FZ2.length;i++){var _k5=_FZ2[i];_9b1(_k5);}}/*@constructor */function _GZ2(){this._ym=null;this._HZ2=0;}function _EW2(_me,_IZ2,_96,_a6,_Xi,_Yi,_5d){var _JZ2=null;if(_IZ2._b9!=undefined){_JZ2=_IZ2._b9[_5d];}else {_IZ2._b9=[];_IZ2._d9=4;_IZ2._c9=0;}if(_JZ2!=null){_JZ2._HZ2=_TY2;return _JZ2._ym;}var _KZ2=-9999999999;
_JZ2=null;if(_IZ2._c9<_IZ2._d9){_JZ2=new _GZ2();_IZ2._c9++;}else {var _LZ2=-1;for(var i in _IZ2._b9){if(!_IZ2._b9.hasOwnProperty(i))continue;var _MZ2=_IZ2._b9[i];if(_MZ2!=null){var _s7=_TY2-_MZ2._HZ2;if(_s7>_KZ2){_LZ2=i;_JZ2=_MZ2;_KZ2=_s7;}}}if(_LZ2>=0)delete _IZ2._b9[_LZ2];}_IZ2._b9[_5d]=_JZ2;_JZ2._HZ2=_TY2;_JZ2._ym=_NZ2(_me,_96,_a6,_Xi,_Yi,_5d);return _JZ2._ym;}function _ya(_Bb1,_5d){return _EW2(_Bb1.texture,_Bb1,_Bb1.x,_Bb1.y,_Bb1.w,_Bb1.h,_5d);}function _0N2(_s4){return _SY2[_s4];}function _kZ2(){_Oa._hD(_iu2[0],
_iu2[3],_iu2[1],_iu2[4],_iu2[2],_iu2[5]);}function _lZ2(_Xd){_fD();var _gD=[];_gD[0]=1;_gD[1]=0;_gD[2]=0;_gD[3]=1;_gD[4]=0;_gD[5]=0;_Oa._hD(_gD[0],_gD[1],_gD[2],_gD[3],_gD[4],_gD[5]);_Oa.fillStyle=_yD(_Xd|0xff000000);_Oa._ID(_iD,_jD,_kD,_lD);_mD();}function _hZ2(_WR1,_XR1,_YR1,_ZR1){_iD=_WR1;_jD=_XR1;_kD=_YR1;_lD=_ZR1;if(_e4){if((_iD===0&&_jD===0)&&(_kD==_Oa.canvas.width&&_lD===_Oa.canvas.height)){}else {_iu2[0]=1;_iu2[1]=0;_iu2[2]=0;_iu2[3]=1;_iu2[4]=0;_iu2[5]=0;_Oa._hD(_iu2[0],_iu2[1],_iu2[2],_iu2[3],
_iu2[4],_iu2[5]);_Oa.beginPath();_Oa.moveTo(_iD,_jD);_Oa.lineTo(_iD+_kD,_jD);_Oa.lineTo(_iD+_kD,_jD+_lD);_Oa.lineTo(_iD,_jD+_lD);if(!(_eG==_6B2&&_mB2==4.0)){_Oa.clip();}}}}function _OZ2(_96,_a6,_Xi,_Yi,_d6){var _0h2=new _Er((_96+_Xi/2.0),(_a6+_Yi/2.0),-16000.0);var _8h2=new _Er((_96+_Xi/2.0),(_a6+_Yi/2.0),0.0);var _gh2=new _Er(Math.sin(-_d6*(Math.PI/180.0)),Math.cos(-_d6*(Math.PI/180.0)),0.0);_2H2._Fr(_0h2,_8h2,_gh2);_Ce1._Hr(_Xi,-_Yi*_Ir,1.0,32000.0);}function _mZ2(_96,_a6,_f5,_g5,_d6){var _gD=[];_gD[0]=Math.cos(_d6);
_gD[3]=Math.sin(_d6);_gD[1]=-_gD[3];_gD[4]=_gD[0];_gD[0]*=_f5;_gD[3]*=_f5;_gD[1]*=_g5;_gD[4]*=_g5;_gD[2]=_96;_gD[5]=_a6;_Oa._5Z2(_gD[0],_gD[3],_gD[1],_gD[4],_gD[2],_gD[5]);}function _nZ2(_7s){_Oa._5Z2(_7s._e7[0],_7s._e7[1],_7s._e7[4],_7s._e7[5],_7s._e7[12],_7s._e7[13]);}function _jZ2(_PZ2,_QZ2,_RZ2,_SZ2){if((_iD===0&&_jD===0)&&(_kD==_Oa.canvas.width&&_lD===_Oa.canvas.height)){}else {_iu2[0]=1;_iu2[1]=0;_iu2[2]=0;_iu2[3]=1;_iu2[4]=0;_iu2[5]=0;_Oa._hD(_iu2[0],_iu2[1],_iu2[2],_iu2[3],_iu2[4],_iu2[5]);
_Oa.moveTo(_iD,_jD);_Oa.lineTo(_iD+_kD,_jD);_Oa.lineTo(_iD+_kD,_jD+_lD);_Oa.lineTo(_iD,_jD+_lD);if(!(_eG==_6B2&&_mB2==4.0)){_Oa.clip();}}_iu2[0]=_PZ2;_iu2[1]=0;_iu2[2]=_RZ2;_iu2[3]=0;_iu2[4]=_QZ2;_iu2[5]=_SZ2;_Oa._hD(_iu2[0],_iu2[3],_iu2[1],_iu2[4],_iu2[2],_iu2[5]);}function _iZ2(_TZ2,_UZ2,_VZ2,_WZ2,_d6){if((_iD===0&&_jD===0)&&(_kD==_Oa.canvas.width&&_lD===_Oa.canvas.height)){}else {_iu2[0]=1;_iu2[1]=0;_iu2[2]=0;_iu2[3]=1;_iu2[4]=0;_iu2[5]=0;_Oa._hD(_iu2[0],_iu2[1],_iu2[2],_iu2[3],_iu2[4],_iu2[5]);
_Oa.beginPath();_Oa.moveTo(_iD,_jD);_Oa.lineTo(_iD+_kD,_jD);_Oa.lineTo(_iD+_kD,_jD+_lD);_Oa.lineTo(_iD,_jD+_lD);if(!(_eG==_6B2&&_mB2==4.0)){_Oa.clip();}}var w=_kD/_VZ2;var h=_lD/_WZ2;_pF=_TZ2;_qF=_UZ2;_nF=_VZ2;_oF=_WZ2;_iu2[0]=w;_iu2[1]=0;_iu2[2]=-(_TZ2*w)+_iD;_iu2[3]=0;_iu2[4]=h;_iu2[5]=-(_UZ2*h)+_jD;_Oa._hD(_iu2[0],_iu2[3],_iu2[1],_iu2[4],_iu2[2],_iu2[5]);}function _t9(_w4){var i=_o5.length;var texture=new Image();_w4=_871(_w4);texture.crossOrigin=_iG;texture.src=_zz(null,null,_w4);_o5[i]=texture;return i;
}function _XZ2(_89,_99){var c=document.createElement("canvas");c.width=_89;c.height=_99;var i=_o5.length;var texture=new Image(_89,_99);texture.src=_zz(null,null,c.toDataURL());_o5[i]=texture;return i;}function _YZ2(_xT1){var i=_o5.length;_o5[i]=_xT1;return i;}function _ZZ2(_me,_96,_a6,_Xi,_Yi,_FQ1){var context=_me.getContext('2d');context.globalCompositeOperation='copy';context.drawImage(_FQ1,_96,_a6);}function _Bm(__Z2){var i=_o5.length;_o5[i]=__Z2;return i;}function _sZ2(){_TY2++;}function _tZ2(){}function _zm(_Bb1){
var _Va1=document.createElement(_Zw);var _em=_Va1.getContext('2d');_Xa1(_em);_Va1.width=_Bb1.w;_Va1.height=_Bb1.h;_em._Za1(_Bb1.texture,_Bb1.x,_Bb1.y,_Bb1.w,_Bb1.h,0,0,_Bb1.w,_Bb1.h);_Va1.complete=true;return _Va1;}function _Hb1(_Bb1){var _3z=[];var _dS=_Bb1.ow*_Bb1.oh*4;var _0_2;for(var i=0;i<_dS;i++)_3z[i]=0;if(_Bb1.texture._z9)_0_2=_09._VU1(_Bb1);else {var _Va1=document.createElement(_Zw);var _em=_Va1.getContext('2d');_Xa1(_em);_Va1.width=_Bb1.w;_Va1.height=_Bb1.h;_em._Za1(_Bb1.texture,_Bb1.x,_Bb1.y,_Bb1.w,
_Bb1.h,0,0,_Bb1.w,_Bb1.h);_Va1.complete=true;var data,_Ie1,_1_2,_2_2;try{data=_em.getImageData(0,0,_Bb1.w,_Bb1.h);}catch(_Oj){return _3z;}_0_2=data.data;}var _Kb1=(_Bb1.XOffset+(_Bb1.YOffset*_Bb1.ow))*4;var _N7=_Bb1.w*4;var x,y;for(y=0;y<_Bb1.h;y++){var bindex=_Kb1;var _3_2=y*_N7;for(x=0;x<_N7;x++){_3z[bindex++]=_0_2[_3_2++];}_Kb1+=_Bb1.ow*4;}return _3z;}function _dZ2(_Bb1,_96,_a6,_ga){if(!_Bb1)return;if(!_Bb1.texture)return;if(!_Bb1.texture.complete)return;if(_Bb1._Va1==null)_Bb1._Va1=_zm(_Bb1);_96+=_Bb1.XOffset;
_a6+=_Bb1.YOffset;_Oa.globalAlpha=_ga;_Oa._Za1(_Bb1._Va1,~~_96,~~_a6);}function _vZ2(_Bb1,_96,_a6,_ga){_dZ2(_Bb1,_96,_a6,_ga);}function _eZ2(_Bb1,_96,_a6,_ga){if(!_Bb1)return;if(!_Bb1.texture)return;if(!_Bb1.texture.complete)return;_Oa.globalAlpha=_ga;_Oa._Za1(_Bb1.texture,~~_Bb1.x,~~_Bb1.y,_Bb1.w,_Bb1.h,Math.floor(_96)+_Bb1.XOffset,Math.floor(_a6)+_Bb1.YOffset,_Bb1.CropWidth,_Bb1.CropHeight);}function _wZ2(_Bb1,_96,_a6,_ga){_eZ2(_Bb1,_96,_a6,_ga);}function _4_2(_FQ1){try{_Oa._Za1(_FQ1,0,0,_FQ1.width,
_FQ1.height,canvas.width,canvas.height,0,0);}catch(e){return false;}var _Lb=_FQ1.getContext('2d');_Lb.fillStyle="white";_Lb.fillRect(0,0,1,1);var _BQ2=_Lb.getImageData(0,0,1,1);return(_BQ2.data[0]===255);}function _fZ2(_Bb1,_96,_a6,_5_2,_6_2,_7_2,_8_2,_Xd,_ga){var _n5=_Bb1.texture;if(!_n5)return;if(!_n5.complete)return;if(_Bb1.w==0||_Bb1.h==0)return;var i=0;if(_7_2)i=1;if(_8_2)i|=2;if(i===0){_Oa.globalAlpha=_ga;_Oa._Za1(_n5,_Bb1.x,_Bb1.y,_Bb1.w,_Bb1.h,_96+_Bb1.XOffset,_a6+_Bb1.YOffset,(_Bb1.CropWidth*_5_2),
(_Bb1.CropHeight*_6_2));return;}var w=_Bb1.ow;var h=_Bb1.oh;if(_8_2){w=(((((_0H2._2e1+(_Bb1.ow-1))/_Bb1.ow)&0xffffffff)+2)*_Bb1.ow);_96=_pF+(((_96-_pF)%_Bb1.ow)-_Bb1.ow);}if(_7_2){h=(((((_0H2._3e1+(_Bb1.oh-1))/_Bb1.oh)&0xffffffff)+2)*_Bb1.oh);_a6=_qF+(((_a6-_qF)%_Bb1.oh)-_Bb1.oh);}if((_Bb1._cn!=null)&&(_Bb1._cn.width<(w*_Bb1._9_2)||_Bb1._cn.height<(h*_Bb1._9_2))){_Bb1._cn=null;_Bb1._dn=0;}if((_Bb1._Id1!=i)||(!_Bb1._cn)){_Bb1._Id1=i;var buffer=document.createElement(_Zw);var _em=buffer.getContext('2d');
_Xa1(_em);buffer.width=w;buffer.height=h;_Oa.globalAlpha=1;var _a_2=1;while((_4_2(buffer)===false)&&(buffer.width>=64)&&(buffer.height>=64)){debug("WARNING: Tiled image quality reduction");buffer.width/=2;buffer.height/=2;_a_2/=2;}var _YS=_Bb1.x;var _ZS=_Bb1.y;if(_Xd!=_xa){_n5=_ya(_Bb1,_Xd);_YS=0;_ZS=0;}var _po=w/_Bb1.ow;var _qo=h/_Bb1.oh;for(var y=0;y<_qo;y++){for(var x=0;x<_po;x++){_em._Za1(_n5,_YS,_ZS,_Bb1.w,_Bb1.h,_Bb1.XOffset+((x*_Bb1.ow)*_a_2),_Bb1.YOffset+((y*_Bb1.oh)*_a_2),_Bb1.CropWidth*_a_2,_Bb1.CropHeight*_a_2);
}}_Bb1._9_2=_a_2;_Bb1._cn=buffer;}_Oa.globalAlpha=_ga;_Oa._Za1(_Bb1._cn,_96,_a6,_Bb1._cn.width/_Bb1._9_2,_Bb1._cn.height/_Bb1._9_2);}function _gZ2(_Bb1,_0b1,_1b1,_96,_a6,_5_2,_6_2,_h5,_rm,_sm,_KD,_LD,_ga){if(!_Bb1.texture)return;if(!_Bb1.texture.complete)return;if((abs(_5_2)<=0.0001)||(abs(_6_2)<=0.0001)||(_ga<=0)){return;}_rm&=0xffffff;var _mE=-(_0b1-_Bb1.XOffset);var _nE=-(_1b1-_Bb1.YOffset);var _Fh2=_Oa.globalAlpha;_Oa.globalAlpha=_ga;if(_rm!=_xa){var _tW2=_ya(_Bb1,_rm);var _Y4=Math.abs(_h5);if((_Y4<0.0001)&&(_5_2==1)&&(_6_2==1)&&(_Bb1.w===_Bb1.CropWidth)&&(_Bb1.h===_Bb1.CropHeight)){
_Oa._Za1(_tW2,_96+_mE,_a6+_nE);}else {if((_5_2<0)||(_6_2<0)||(_Y4>0.0001)){_DW2(_96,_a6,_5_2,_6_2,-_h5);_Oa._Za1(_tW2,0,0,_Bb1.w,_Bb1.h,_mE,_nE,_Bb1.CropWidth,_Bb1.CropHeight);_FW2();}else {_Oa._Za1(_tW2,0,0,_Bb1.w,_Bb1.h,_96+(_mE*_5_2),_a6+(_nE*_6_2),_Bb1.CropWidth*_5_2,_Bb1.CropHeight*_6_2);}}}else {var _Y4=Math.abs(_h5);if((_Y4<0.0001)&&(_5_2==1)&&(_6_2==1)&&(_Bb1.w===_Bb1.CropWidth)&&(_Bb1.h===_Bb1.CropHeight)){if(_Bb1._Va1==null){_Bb1._Va1=_zm(_Bb1);}_Oa._Za1(_Bb1._Va1,_96+_mE,_a6+_nE);}else {if(_5_2<0||_6_2<0||_Y4>0.001){
_DW2(_96,_a6,_5_2,_6_2,-_h5);_Oa._Za1(_Bb1.texture,_Bb1.x,_Bb1.y,_Bb1.w,_Bb1.h,_mE,_nE,_Bb1.CropWidth,_Bb1.CropHeight);_FW2();}else {_Oa._Za1(_Bb1.texture,_Bb1.x,_Bb1.y,_Bb1.w,_Bb1.h,_96+(_mE*_5_2),_a6+(_nE*_6_2),_Bb1.CropWidth*_5_2,_Bb1.CropHeight*_6_2);}}}_Oa.globalAlpha=_Fh2;}function _xZ2(_Bb1,_0b1,_1b1,_96,_a6,_5_2,_6_2,_h5,_rm,_sm,_KD,_LD,_ga){try{_gZ2(_Bb1.texture,_0b1,_1b1,_96,_a6,_5_2,_6_2,_h5,_rm,_sm,_KD,_LD,_ga);}catch(_Oj){debug("error drawing image");}}function _NZ2(_me,_96,_a6,_Xi,_Yi,
_Xd){var buffer=document.createElement(_Zw);var _em=buffer.getContext('2d');_Xa1(_em);buffer.width=_Xi;buffer.height=_Yi;_em._Za1(_me,_96,_a6,_Xi,_Yi,0,0,_Xi,_Yi);if(~~_Xd!=0xffffff){var data,_Ie1,_1_2,_2_2;data=_em._He1(0,0,buffer.width,buffer.height);_Ie1=data.data;var _b_2=_em._8Z2(buffer.width,buffer.height);_2_2=_b_2.data;var _Y4=((_Xd>>16)&0xff)/255;var _Z4=((_Xd>>8)&0xff)/255;var __4=(_Xd&0xff)/255;var _M81=(data.height*data.width*4);for(var i=_M81-4;i>=0;i-=4){_2_2[i]=(_Ie1[i]*_Y4)|0;_2_2[i+1]=(_Ie1[i+1]*_Z4)|0;
_2_2[i+2]=(_Ie1[i+2]*__4)|0;_2_2[i+3]=(_Ie1[i+3]);}_b_2.data=_2_2;_em._CQ2(_b_2,0,0);}return buffer;}function _c_2(){}_c_2=function(_Bb1,_F7,_G7,_77,_87,_Ro,_So,_Xf1,_Yf1,_ga){var _n5=_Bb1.texture;if(!_n5)return;if(!_n5.complete)return;_Oa.globalAlpha=_ga;_d_2(_n5,_F7,_G7,_77,_87,_Ro,_So,_Bb1.x,_Bb1.y,_Bb1.x+_Bb1.w,_Bb1.y,_Bb1.x+_Bb1.w,_Bb1.y+_Bb1.h);_d_2(_n5,_Ro,_So,_Xf1,_Yf1,_F7,_G7,_Bb1.x+_Bb1.w,_Bb1.y+_Bb1.h,_Bb1.x,_Bb1.y+_Bb1.h,_Bb1.x,_Bb1.y);};function _d_2(_Mb,_Nb,_Ob,_f7,_g7,_h7,_i7,_Pb,_Qb,
_Rb,_Sb,_Tb,_Ub){_fD();_Oa._MD();_Oa._ND(_Nb,_Ob);_Oa._OD(_f7,_g7);_Oa._OD(_h7,_i7);_Oa._PD();_Oa._9Z2();var _Vb=_Pb*(_Ub-_Sb)-_Rb*_Ub+_Tb*_Sb+(_Rb-_Tb)*_Qb;if(_Vb==0)return;var _Wb=-(_Qb*(_h7-_f7)-_Sb*_h7+_Ub*_f7+(_Sb-_Ub)*_Nb)/_Vb;var _Xb=(_Sb*_i7+_Qb*(_g7-_i7)-_Ub*_g7+(_Ub-_Sb)*_Ob)/_Vb;var _Yb=(_Pb*(_h7-_f7)-_Rb*_h7+_Tb*_f7+(_Rb-_Tb)*_Nb)/_Vb;var _Zb=-(_Rb*_i7+_Pb*(_g7-_i7)-_Tb*_g7+(_Tb-_Rb)*_Ob)/_Vb;var __b=(_Pb*(_Ub*_f7-_Sb*_h7)+_Qb*(_Rb*_h7-_Tb*_f7)+(_Tb*_Sb-_Rb*_Ub)*_Nb)/_Vb;var _0c=(_Pb*(_Ub*_g7-_Sb*_i7)+_Qb*(_Rb*_i7-_Tb*_g7)+(_Tb*_Sb-_Rb*_Ub)*_Ob)/_Vb;
_Oa._5Z2(_Wb,_Xb,_Yb,_Zb,__b,_0c);_Oa._Za1(_Mb,0,0);_mD();}function _oZ2(_Bb1,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_Sm,_ga){if(!_Bb1)return;if(!_Bb1.texture)return;if(!_Bb1.texture.complete)return;_Sm&=0xffffff;_Oa.globalAlpha=_ga;if(_Lm<_Bb1.XOffset){var _e_2=_Bb1.XOffset-_Lm;_96+=_e_2*_Qm;_89-=_e_2;_Lm=0;}else {_Lm-=_Bb1.XOffset;}if(_Mm<_Bb1.YOffset){var _e_2=_Bb1.YOffset-_Mm;_a6+=_e_2*_Rm;_99-=_e_2;_Mm=0;}else {_Mm-=_Bb1.YOffset;}if(_89>(_Bb1.CropWidth-_Lm))_89=_Bb1.CropWidth-_Lm;if(_99>(_Bb1.CropHeight-_Mm))_99=_Bb1.CropHeight-_Mm;
if(_89<=0||_99<=0)return;_96=~~_96;_a6=~~_a6;if(_Sm!=_xa){var _tW2=_ya(_Bb1,_Sm);if(_Qm<0||_Rm<0){_DW2(_96,_a6,_Qm,_Rm,0);_Oa._Za1(_tW2,_Lm,_Mm,_89,_99,0,0,_89,_99);_FW2();}else {_Oa._Za1(_tW2,_Lm,_Mm,_89,_99,_96,_a6,_89*_Qm,_99*_Rm);}}else {if(_Qm<0||_Rm<0){_DW2(_96,_a6,_Qm,_Rm,0);_Oa._Za1(_Bb1.texture,_Lm+_Bb1.x,_Mm+_Bb1.y,_89,_99,0,0,_89,_99);_FW2();}else {_Oa._Za1(_Bb1.texture,_Lm+_Bb1.x,_Mm+_Bb1.y,_89,_99,_96,_a6,_89*_Qm,_99*_Rm);}}}function _Hm(_Bb1,_96,_a6,_Xi,_Yi,_Sm,_ga){if(!_Bb1)return;if(!_Bb1.texture)return;
if((_Bb1.texture instanceof HTMLImageElement)&&(!_Bb1.texture.complete))return;_96=~~_96;_a6=~~_a6;var _YS=_Xi/_Bb1.ow;var _ZS=_Yi/_Bb1.oh;_Tm(_Bb1,0,0,_96,_a6,_YS,_ZS,0,_Sm,_Sm,_Sm,_Sm,_ga);}function _1n(_Bb1,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_h5,_Ym,_Zm,__m,_0n,_ga){if(!_Bb1)return;if(!_Bb1.texture)return;if(!_Bb1.texture.complete)return;_Tm(_Bb1,_Lm,_Mm,_96,_a6,_Qm,_Rm,_h5,_Ym,_Zm,__m,_0n,_ga);}function _3n(){}function _f_2(_g_2,_h_2){if(_09)return false;var buffer=document.createElement(_Zw);var _em=buffer.getContext('2d');
_Xa1(_em);buffer.width=_g_2.w;buffer.height=_g_2.h;_em.drawImage(_h_2.texture,_h_2.x,_h_2.y,_h_2.w,_h_2.h,0,0,_g_2.w,_g_2.h);var _i_2,_j_2,_k_2,_l_2,_m_2;try{_j_2=_em.getImageData(0,0,_g_2.w,_g_2.h);_m_2=_g_2.texture.getContext('2d');_Xa1(_m_2);_k_2=_m_2.getImageData(_g_2.x,_g_2.y,_g_2.w,_g_2.h);}catch(_Oj){return false;}_i_2=_j_2.data;_l_2=_k_2.data;var _M81=(_k_2.height*_k_2.width*4);for(var i=_M81-4;i>=0;i-=4){var c=~~((_i_2[i]+_i_2[i+1]+_i_2[i+2])/3);_l_2[i+3]=c;}_k_2.data=_l_2;_m_2.putImageData(_k_2,
0,0);return true;}_3n=_f_2;function _rZ2(_8z,_Uw,_96,_a6,_Qm,_Rm,_d6,_Xd,_ga){_Oa.globalAlpha=_ga;_Oa.fillStyle=_om(_Xd,1.0);_Oa.font=_8z;_Oa.textBaseline="top";_DW2(_96,_a6,_Qm,_Rm,-_d6);_Oa.fillText(_Uw,0,0);_FW2();};function _fm(_n_2,_Xi,_Yi){try{var data,_Ie1,_1_2,_2_2;data=_n_2._He1(0,0,_Xi,_Yi);_Ie1=_2_2=data.data;var _o_2=(_Yi-1)*_Xi*4;var _Y4=_Ie1[_o_2+0];var _Z4=_Ie1[_o_2+1];var __4=_Ie1[_o_2+2];var _05=_Ie1[_o_2+3];var _M81=(data.height*data.width*4);for(var i=_M81-4;i>=0;i-=4){_2_2[i+0]=_Ie1[i+0];
_2_2[i+1]=_Ie1[i+1];_2_2[i+2]=_Ie1[i+2];if((_2_2[i+0]==_Y4)&&(_2_2[i+1]==_Z4)&&(_2_2[i+2]==__4)){_2_2[i+3]=0x0;}else {_2_2[i+3]=_Ie1[i+3];}}_n_2._CQ2(data,0,0);}catch(_Oj){return false;}return true;};function _uZ2(_uw){};var _p_2=[];function gif_open(width,height,_q_2){var _1V=new _3O1();_1V._pO1(0);_1V._uO1(yyGetInt32(width),yyGetInt32(height));_1V.start();for(var i=0;i<_p_2.length;i++){if(_p_2[i]==null){_p_2[i]=_1V;return i;}}var _95=_p_2.length;_p_2[_p_2.length]=_1V;return _95;};function gif_save_buffer(_r_2){
_r_2=yyGetInt32(_r_2);var _1V=_p_2[_r_2];if(_1V==null)return -1;_1V._HO1();var _s_2=_1V._2a1()._6O1();var _Gj=buffer_create(_s_2.length,_Hj,1);if(_Gj==null)return -1;for(var i=0;i<_s_2.length;i++)buffer_write(_Gj,_CG,_s_2[i]);_p_2[_r_2]=null;return _Gj;};function gif_save(_r_2,filename){_r_2=yyGetInt32(_r_2);var _1V=_p_2[_r_2];if(_1V==null)return;_1V._HO1();_1V.download(yyGetString(filename));_p_2[_r_2]=null;};function gif_add_surface(_r_2,_t_2,_u_2,_v_2,_w_2,_x_2){if(_x_2===undefined)_x_2=2;if(_v_2===undefined)_v_2=0;
if(_w_2===undefined)_w_2=0;var _nm=_dm._n6(yyGetInt32(_t_2));if(_nm!=null){if(_nm._Ad1._8e1._zd!=_cm){debug("Surface "+yyGetInt32(_yg)+" can't be used as a gif source as it uses unsupported format "+_09._zT1(_nm._Ad1._8e1._zd));return -1;}var _1V=_p_2[yyGetInt32(_r_2)];if(_1V==null)return;switch(yyGetInt32(_x_2)){default :_1V._JO1(1);break;case 0:_1V._JO1(0);break;case 1:_1V._JO1(30);break;case 2:_1V._JO1(10);break;}_1V._mO1(yyGetInt32(_u_2)*10);var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');
_Xa1(_Wa1);console.log(_1V.getWidth()+"-"+_1V.getHeight());var _ed=_09._dU1(_Va1,_nm._Vd1,yyGetInt32(_v_2),yyGetInt32(_w_2),_1V.getWidth(),_1V.getHeight(),false,false,false);_1V._sO1(Uint8ClampedArray.from(_ed.Image),true);}};function _G3(_y_2){this._z_2=_y_2;this._A_2=_y_2*Math.PI/180.0;this._B_2=Math.sin(this._A_2);this._C_2=Math.cos(this._A_2);}_G3.prototype={get _y_2(){return this._z_2;},get _D_2(){return this._A_2;},get _E_2(){return [[this._C_2,-this._B_2],[this._B_2,this._C_2],];},};function _L6(_F_2,
_G_2,angle){var _H_2=_F_2[0];var _I_2=_F_2[1];var _9a=_G_2[0];var _aa=_G_2[1];var _J_2=angle._E_2[0][0]*(_H_2-_9a)+angle._E_2[0][1]*(_I_2-_aa)+_9a;var _K_2=angle._E_2[1][0]*(_H_2-_9a)+angle._E_2[1][1]*(_I_2-_aa)+_aa;return [_J_2,_K_2];}var _L_2=0,_uQ2=0;function _MG(_M_2){this._N_2=false;this._WG=[];this._O_2=_M_2;this._P_2="";this._Q_2=0;this._R_2=0;}function _IG(_HG){var _S_2=new _MG(null);_S_2._P_2=_HG;_S_2._T_2();var _c9=0;for(var i in _S_2._WG){if(!_S_2._WG.hasOwnProperty(i))continue;_c9++;break;}return _S_2;
}function _LG(_U_2,_V_2){var _Tf=_9l(_U_2,_V_2);var _S_2=new _MG(_U_2);_S_2._P_2=_Tf;_S_2._T_2();var _c9=0;for(var i in _S_2._WG){if(!_S_2._WG.hasOwnProperty(i))continue;_c9++;break;}if(_c9==0)return null;return _S_2;}_MG.prototype._0y=function(){while((this._P_2.charCodeAt(this._Q_2)!=0x0a)&&(this._P_2.charCodeAt(this._Q_2)!=0x0d)&&(this._Q_2<this._HN2)){this._Q_2++;}this._R_2++;this._Q_2++;if(this._Q_2>=this._HN2)return;if((this._P_2.charCodeAt(this._Q_2)==0x0a)&&(this._P_2.charCodeAt(this._Q_2)==0x0d)){
this._Q_2++;}};_MG.prototype._W_2=function(){{if(this._Q_2>=this._HN2)return false;var c=this._P_2.charCodeAt(this._Q_2);if(c==0x20||c==0x09||c==0x0a||c==0x0d||c==ord('#')||c==ord(';')){return true;}else {return false;}}};_MG.prototype._1y=function(){{while(this._W_2()&&(this._Q_2<this._HN2)){var c=this._P_2.charCodeAt(this._Q_2);if(c==ord('#')||c==ord(';')){this._0y();}else if(c==0x0a){this._R_2++;}this._Q_2++;}if(this._Q_2>=this._HN2)return;}};_MG.prototype._X_2=function(){{this._1y();while((this._P_2.charAt(this._Q_2)!='[')&&(this._Q_2<this._HN2)){
this._Q_2++;}if(this._Q_2>=this._HN2)return null;this._Q_2++;var _Y_2=this._Q_2;while((this._P_2.charAt(this._Q_2)!=']')&&(this._Q_2<this._HN2)){this._Q_2++;}if(this._Q_2>=this._HN2)return null;var _Ai=this._Q_2-_Y_2;var _VG=[];_VG.__m_pIniFileName__=this._P_2.substr(_Y_2,_Ai);this._Q_2++;return _VG;}};_MG.prototype._Z_2=function(___2){{this._1y();if(this._Q_2>=this._HN2||this._P_2.charAt(this._Q_2)=='[')return false;var _Y_2=this._Q_2;var _003=-1;while((this._P_2.charAt(this._Q_2)!='=')&&(this._Q_2<this._HN2)){
if(this._W_2()){if(_003<0)_003=this._Q_2;}else {_003=-1;}this._Q_2++;}if(this._Q_2>=this._HN2)return false;if(_003<0)_003=this._Q_2;var _Ai=_003-_Y_2;var _TG=this._P_2.substr(_Y_2,_Ai);while((this._P_2.charAt(this._Q_2)!='=')&&(this._Q_2<this._HN2)){this._Q_2++;}if(this._Q_2>=this._HN2)return false;this._Q_2++;var _mw=this._R_2;this._1y();if(_mw!=this._R_2)return false;var _103=ord('#');var _203=ord(';');var _303=false;var _Q7=this._P_2.charCodeAt(this._Q_2);switch(_Q7){case 34:case 39:_103=_Q7;_203=_Q7;_303=true;
this._Q_2++;break;case 91:case 123:_103=-1;_203=-1;break;}_Y_2=this._Q_2;var _403=-1;var c=this._P_2.charCodeAt(this._Q_2);while((c!=0x0a)&&(c!=0x0d)&&(c!=_103)&&(c!=_203)&&(this._Q_2<this._HN2)){if(c==0x20||c==0x09){if(_403<0)_403=this._Q_2;}else {_403=-1;}if(c==ord('\\'))this._Q_2++;this._Q_2++;c=this._P_2.charCodeAt(this._Q_2);}if(_403>=0&&!_303){_Ai=_403-_Y_2;}else {_Ai=this._Q_2-_Y_2;}var _VO1=this._P_2.substr(_Y_2,_Ai);___2[_TG]=_VO1;if(_303){_Q7=this._P_2.charCodeAt(this._Q_2);if((_Q7==_103)&&(_Q7==_203)){
while((this._P_2.charCodeAt(this._Q_2)!=0x0a)&&(this._P_2.charCodeAt(this._Q_2)!=0x0d)&&(this._Q_2<this._HN2)){this._Q_2++;}}}return true;}};_MG.prototype._T_2=function(){{if(this._P_2==null)return false;this._HN2=this._P_2.length;this._Q_2=0;this._R_2=0;var _VG=this._X_2();if(_VG==null){this._P_2=null;return false;}this._WG[_VG.__m_pIniFileName__]=_VG;while(this._Q_2<this._HN2){var _Lu=this._Z_2(_VG);if(!_Lu){if(this._Q_2<this._HN2){if(this._P_2.charAt(this._Q_2)=='['){_VG=this._X_2();if(_VG==null){
this._P_2=null;return true;}this._WG[_VG.__m_pIniFileName__]=_VG;}}}}this._P_2=null;return true;}};_MG.prototype._UG=function(_503,_603){{var _VG=this._WG[_503];if(_VG!=null&&_VG!=undefined){var _VO1=_VG[_603];if(_VO1!=undefined)return _VO1;}return null;}};_MG.prototype._703=function(_503,_603,_PG){{var _TG=this._UG(_503,_603);if(_TG!=null){return this.parseInt(_TG,10);}else {return _PG;}}};_MG.prototype._RG=function(_503,_603,_PG){{var _TG=this._UG(_503,_603);if(_TG!=null){return parseFloat(_TG);}else {return parseFloat(_PG);
}}};_MG.prototype._QG=function(_503,_603,_PG){{var _TG=this._UG(_503,_603);if(_TG!=null){return _TG;}else {return _PG;}}};_MG.prototype._SG=function(_503,_603,_803){this._N_2=true;var _VG=this._WG[_503];if(_VG==null||_VG==undefined){_VG=[];_VG.__m_pIniFileName__=_503;this._WG[_VG.__m_pIniFileName__]=_VG;}_VG[_603]=_803;return true;};_MG.prototype._XG=function(_503,_603){var _VG=this._WG[_503];if(_VG==null||_VG==undefined)return false;var _TG=_VG[_603];if(_TG==null||_TG==undefined)return false;this._N_2=true;
_VG[_603]=null;return true;};_MG.prototype._YG=function(_503){var _VG=this._WG[_503];if(_VG==null||_VG==undefined)return false;this._N_2=true;this._WG[_503]=null;return true;};_MG.prototype._NG=function(){var _Tf="";var _8w=chr(0x0d)+chr(0x0a);for(var _903 in this._WG){if(!this._WG.hasOwnProperty(_903))continue;_Tf=_Tf+"["+_903+"]"+_8w;var _VG=this._WG[_903];for(var key in _VG){if(!_VG.hasOwnProperty(key))continue;if(key!="__m_pIniFileName__"){var _VO1=_VG[key];if(_VO1!=null){if(_VO1.indexOf('"')<0){_Tf+=key+'="'+_VO1+'"'+_8w;
}else if(_VO1.indexOf("'")<0){_Tf+=key+"='"+_VO1+"'"+_8w;}else {_Tf+=key+"="+_VO1+_8w;}}}}}if(this._N_2){_5l(this._O_2,_Tf);this._N_2=false;}return _Tf;};function _871(_U_2){if(_U_2.substring(0,5)=="file:")return _U_2;if(_U_2.substring(0,5)=="data:")return _U_2;if((_U_2.substring(0,7)=="http://")||(_U_2.substring(0,8)=="https://"))return _U_2;if(_U_2.substring(0,_u9.length)==_u9)return _zz(null,null,_U_2);return _zz(null,null,_u9+_U_2);}function _a03(_U_2){if(_U_2.substring(0,5)=="file:")return false;if(_U_2.substring(0,
4)=="ftp:")return false;if(_U_2.substring(0,7)=="gopher:")return false;if(_U_2.substring(0,7)=="mailto:")return false;if(_U_2.substring(0,5)=="news:")return false;if(_U_2.substring(0,5)=="nntp:")return false;if(_U_2.substring(0,7)=="telnet:")return false;if(_U_2.substring(0,5)=="wais:")return false;if(_U_2.substring(0,5)=="news:")return false;if(_U_2.substring(1,1)==":")return false;return true;}function _b03(__F){try{var _c03=new XMLHttpRequest();_c03.open('HEAD',__F,false);_c03.send();_uQ2=_c03.status;var _d03=(_c03.status!=404&&_c03.status!=0);
return _d03;}catch(e){return false;}}function _e03(_4s2,_us2){try{var _Qr=!window.XMLHttpRequest?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();_Qr.open(_us2?'PUT':'GET',_4s2,false);_Qr.overrideMimeType('text\/plain; charset=x-user-defined');_Qr.send(_us2?_us2:'');_uQ2=_Qr.status;return _Qr.responseText;}catch(e){return null;}}function _f03(_4s2,_us2){try{var _Qr=!window.XMLHttpRequest?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();_Qr.open(_us2?'PUT':'GET',_4s2,false);_Qr.send(_us2?_us2:'');
_uQ2=_Qr.status;return _Qr.responseText;}catch(e){return null;}}function _g03(_4s2){try{var _Qr=!window.XMLHttpRequest?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();_Qr.open("DELETE",_4s2,false);_Qr.send('');_uQ2=_Qr.status;return _Qr.status;}catch(e){return false;}}function _5l(_1l,_PF){if(_h03){return false;}else if(_9y){try{window.localStorage[_ay(_1l)]=_PF;return true;}catch(_Oj){return false;}}}function _9l(_U_2,_V_2){return _i03(_U_2,_V_2,_f03);}function _sQ2(_U_2,_V_2){return _i03(_U_2,_V_2,
_e03);}function _i03(_U_2,_V_2,_j03){var _Tf=null;if(_U_2.substring(0,5)=="file:")return null;if(_V_2){if((_U_2.substring(0,7)=="http://")||(_U_2.substring(0,8)=="https://"))return;if(_h03){return null;}else if(_9y){try{_Tf=window.localStorage[_ay(_U_2)];}catch(_Oj){return null;}if((_Tf==undefined)||(_Tf==null))return null;}}else {if(!_a03(_U_2))return null;_U_2=_871(_U_2);_Tf=_j03(_U_2,false);if((_Tf==null)||(_Tf==undefined))return null;if(_uQ2==404)return null;}return _Tf;}function _8y(_U_2,_V_2){var _Tf=null;
if(_U_2.substring(0,5)=="file:")return null;if(_V_2){if(_h03){return false;}else if(_9y){try{var name=_ay(_U_2);if(window.localStorage[name]!==undefined){return true;}return false;}catch(_Oj){return false;}}}else {if(!_a03(_U_2)){return false;}_U_2=_871(_U_2);return _b03(_U_2);}}var _k03=new _yx(0,0,0,0);var _wA=null;var _yA=-1;var _AA=-1;var _Ev2=0;function _BI(_aZ,_bZ,_yg,_l03,_m03,_n03){this.__type="[instance]";this._o03=_aZ;this._p03=_bZ;this._q03=_aZ;this._r03=_bZ;this._s03=_aZ;this._t03=_bZ;this._u03=0;this._v03=0;
this._w03=0;this._x03=0;this._y03=0;this._z03=0;this._A03=270;this._B03=_UO(_l03,_521,undefined,undefined,true);this.id=_yg;this.active=true;this.in_collision_tree=true;this.alarm=[];for(var i=0;i<=(_Dw2-1);i++){this.alarm[i]=-1;}this._C03=true;this._D03=true;this._E03=false;this._F03=0;this._XH=new _yx(0,0,0,0);this._G03=0;this._H03=0;this._GE=0;this.image_number=0;this.sprite_width=0;this.sprite_height=0;this.sprite_xoffset=0;this.sprite_yoffset=0;this._I03=1.0;this._J03=1.0;this._K03=0;this._L03=1.0;
this._M03=0xffffff;this._N03=1;this._O03=-1;this._P03=0;this._Q03=0;this._R03=1;this.path_index=-1;this._S03=0;this._T03=0;this._U03=0;this._V03=1;this._W03=0;this._X03=0;this._Rx=0;this._Sx=0;this._Y03=-1;this._Z03=0;this.__03=1;this._sw2=true;this._uw2=false;this._013=-1;this._113=false;this.marked=false;this._213=null;this._4b1=_5b1._6b1;this._dI=true;this._nw2=false;this._Nx=null;this._313=null;this._j_=null;this._ME=null;this._413=null;this._Jv2=false;this._513=false;this._613=false;this._713=null;
this._813=false;this._913=true;if(!_n03){this._Gv2=_Ev2;this._LI(_l03,_m03,true);this._MI(this._Nx._NI);}else {this._Gv2=0;this._B03=0;this.sprite_index=-1;this._a13=null;}this.__L=-1;this._FI=false;}_BI.prototype={get x(){return this._o03;},set x(_96){_96=yyGetReal(_96);if(this._o03===_96)return;this._o03=_96;this._dI=true;},get y(){return this._p03;},set y(_a6){_a6=yyGetReal(_a6);if(this._p03===_a6)return;this._p03=_a6;this._dI=true;},get xstart(){return this._s03;},set xstart(_pS){_pS=yyGetReal(_pS);if(this._s03===_pS)return;
this._s03=_pS;},get ystart(){return this._t03;},set ystart(_qS){_qS=yyGetReal(_qS);if(this._t03===_qS)return;this._t03=_qS;},get xprevious(){return this._q03;},set xprevious(_b13){_b13=yyGetReal(_b13);if(this._q03===_b13)return;this._q03=_b13;},get yprevious(){return this._r03;},set yprevious(_c13){_c13=yyGetReal(_c13);if(this._r03===_c13)return;this._r03=_c13;},get hspeed(){return this._u03;},set hspeed(_k4){_k4=yyGetReal(_k4);if(this._u03==_k4)return;this._u03=_k4;this._d13();},get vspeed(){return this._v03;
},set vspeed(_k4){_k4=yyGetReal(_k4);if(this._v03==_k4)return;this._v03=_k4;this._d13();},get direction(){return this._w03;},set direction(_k4){_k4=yyGetReal(_k4);while(_k4<0.0){_k4+=360.0;}while(_k4>360.0){_k4-=360.0;}this._w03=_WH2(_k4,360.0);this._e13();},get speed(){return this._x03;},set speed(_k4){_k4=yyGetReal(_k4);if(this._x03==_k4)return;this._x03=_k4;this._e13();},get friction(){return this._y03;},set friction(_k4){_k4=yyGetReal(_k4);if(this._y03==_k4)return;this._y03=_k4;},get gravity(){return this._z03;
},set gravity(_k4){_k4=yyGetReal(_k4);if(this._z03==_k4)return;this._z03=_k4;},get gravity_direction(){return this._A03;},set gravity_direction(_k4){_k4=yyGetReal(_k4);if(this._A03==_k4)return;this._A03=_k4;},get solid(){return this._C03;},set solid(_k4){_k4=yyGetBool(_k4);if(this._C03==_k4)return;this._C03=_k4;},get persistent(){return this._E03;},set persistent(_k4){_k4=yyGetBool(_k4);if(this._E03==_k4)return;this._E03=_k4;},get visible(){return this._D03;},set visible(_k4){_k4=yyGetBool(_k4);if(this._D03==_k4)return;
this._D03=_k4;},get depth(){return this._F03;},set depth(_el){_el=yyGetReal(_el);if(this._F03!=_el){this._F03=_el;_c4._f13[_c4._f13.length]=this;}},get path_position(){return this._S03;},set path_position(_k4){_k4=yyGetReal(_k4);if(this._S03==_k4)return;this._S03=_k4;},get path_positionprevious(){return this._T03;},set path_positionprevious(_k4){_k4=yyGetReal(_k4);if(this._T03==_k4)return;this._T03=_k4;},get path_speed(){return this._U03;},set path_speed(_k4){_k4=yyGetReal(_k4);if(this._U03==_k4)return;this._U03=_k4;
},get path_scale(){return this._V03;},set path_scale(_k4){_k4=yyGetReal(_k4);if(this._V03==_k4)return;this._V03=_k4;},get path_orientation(){return this._W03;},set path_orientation(_k4){_k4=yyGetReal(_k4);if(this._W03==_k4)return;this._W03=_k4;},get path_endaction(){return this._X03;},set path_endaction(_k4){_k4=yyGetInt32(_k4);if(this._X03==_k4)return;this._X03=_k4;},get timeline_index(){return this._Y03;},set timeline_index(_k4){_k4=yyGetInt32(_k4);if(this._Y03==_k4)return;this._Y03=_k4;},get timeline_position(){
return this._Z03;},set timeline_position(_k4){_k4=yyGetReal(_k4);if(this._Z03==_k4)return;this._Z03=_k4;},get timeline_speed(){return this.__03;},set timeline_speed(_k4){_k4=yyGetReal(_k4);if(this.__03==_k4)return;this.__03=_k4;},get bbox_left(){if(this._dI)this._eI();return this._XH.left;},get bbox_right(){if(this._dI)this._eI();return this._XH.right;},get bbox_top(){if(this._dI)this._eI();return this._XH.top;},get bbox_bottom(){if(this._dI)this._eI();return this._XH.bottom;},get sprite_index(){return this._G03;
},set sprite_index(_yg){_yg=yyGetInt32(_yg);this._G03=_yg;this._dI=true;this._a13=null;},get object_index(){return _Wn(_521,this._B03);},set object_index(_c5){this._B03=_UO(_c5,_521,undefined,undefined,true);},get image_index(){return this._H03;},set image_index(_YE){_YE=yyGetReal(_YE);var _mN=_m6._n6(this.sprite_index);if(_mN!=null){if(_mN.sequence!=null&&_mN.sequence._rN!=null&&_mN.sequence._rN[0]._nH==_sN){var _HO=_mN.sequence._rN[0];var keyframeStore=_HO._uN;var _IO=keyframeStore._JO;if(_IO>0){var _KO=_j4(_YE,
_IO);var _LO=_KO;var _MO=_KO-_LO;this._Q03=this._P03=(keyframeStore._NO[Math.floor(_LO)]._OO+(_MO*_IO));this._H03=_YE;}else {this._H03=_YE;}}else {this._H03=_YE;}}else {this._H03=_YE;}},get image_single(){if(this.image_speed==0){return this.image_index;}else {return -1;}},set image_single(_wQ){_wQ=yyGetInt32(_wQ);if(_wQ<0){this.image_speed=1;}else {this.image_speed=0;this.image_index=_wQ;}},get image_number(){var _tJ2=_m6._n6(this.sprite_index);if(_tJ2){var _FE=this._P9();if(_FE)return _FE._84(_tJ2);if(_tJ2._xU2!=null)return _tJ2._xU2._eq2;
return _tJ2._l5.length;}return 0;},get sprite_width(){var _tJ2=_m6._n6(this.sprite_index);if(_tJ2)return _tJ2.width*this.image_xscale;return 0;},get sprite_height(){var _tJ2=_m6._n6(this.sprite_index);if(_tJ2)return _tJ2.height*this.image_yscale;return 0;},get sprite_xoffset(){var _tJ2=_m6._n6(this.sprite_index);if(_tJ2)return _tJ2.xOrigin*this.image_xscale;return 0;},get sprite_yoffset(){var _tJ2=_m6._n6(this.sprite_index);if(_tJ2)return _tJ2.yOrigin*this.image_yscale;return 0;},get image_xscale(){return this._I03;
},set image_xscale(_En){_En=yyGetReal(_En);if(this._I03===_En)return;this._I03=_En;this._dI=true;},get image_yscale(){return this._J03;},set image_yscale(_En){_En=yyGetReal(_En);if(this._J03===_En)return;this._J03=_En;this._dI=true;},get image_angle(){return this._K03;},set image_angle(_h82){_h82=yyGetReal(_h82);if(this._K03===_h82)return;this._K03=_h82;this._dI=true;},get image_blend(){return _6d(this._M03);},set image_blend(_Xd){this._M03=yyGetInt32(_Xd);},get image_alpha(){return this._L03;},set image_alpha(_ga){
this._L03=yyGetReal(_ga);},get image_speed(){return this._N03;},set image_speed(_xI){_xI=yyGetReal(_xI);if(this._N03===_xI)return;this._N03=_xI;},get mask_index(){return this._O03;},set mask_index(_yg){this._O03=yyGetInt32(_yg);this._dI=true;this._413=null;},get timeline_running(){if(this._sw2){return 0;}else {return 1;}},set timeline_running(_g13){this._sw2=!yyGetBool(_g13);},get timeline_loop(){if(this._uw2){return 1;}else {return 0;}},set timeline_loop(_x4){this._uw2=yyGetBool(_x4);},get phy_rotation(){return this._h13;
},set phy_rotation(_I22){if(this._j_!=null){this._j_._H22(yyGetReal(_I22));this._v62(this._j_._q22);}},get phy_position_x(){return this._i13;},set phy_position_x(_tk){if(this._j_!=null&&_c4!=null){this._j_._J22(yyGetReal(_tk)*_c4._lZ._TZ);this._v62(this._j_._q22);}},get phy_position_y(){return this._j13;},set phy_position_y(_tk){if(this._j_!=null&&_c4!=null){this._j_._K22(yyGetReal(_tk)*_c4._lZ._TZ);this._v62(this._j_._q22);}},get phy_angular_velocity(){return this._k13;},set phy_angular_velocity(_L22){if(this._j_!=null){
this._j_._Gw1(yyGetReal(_L22));this._v62(this._j_._q22);}},get phy_linear_velocity_x(){return this._l13;},set phy_linear_velocity_x(_N22){if(this._j_!=null&&_c4!=null){this._j_._M22(yyGetReal(_N22)*_c4._lZ._TZ);this._v62(this._j_._q22);}},get phy_linear_velocity_y(){return this._m13;},set phy_linear_velocity_y(_N22){if(this._j_!=null&&_c4!=null){this._j_._P22(yyGetReal(_N22)*_c4._lZ._TZ);this._v62(this._j_._q22);}},get phy_speed(){if(this._j_!=null&&_c4!=null){var _n13=_g4._h4();var _d32=_c4._lZ._TZ;var _J9=(this._l13/_d32)/_n13;
var _K9=(this._m13/_d32)/_n13;return Math.sqrt((_J9*_J9)+(_K9*_K9));}else return undefined;},get phy_speed_x(){return this._o13;},set phy_speed_x(_xI){if(this._j_!=null&&_c4!=null){var _n13=_g4._h4();this._j_._M22(yyGetReal(_xI)*_c4._lZ._TZ*_n13);this._v62(this._j_._q22);}},get phy_speed_y(){return this._p13;},set phy_speed_y(_xI){if(this._j_!=null&&_c4!=null){var _n13=_g4._h4();this._j_._P22(yyGetReal(_xI)*_c4._lZ._TZ*_n13);this._v62(this._j_._q22);}},get phy_angular_damping(){return this._q13;},set phy_angular_damping(_MZ){
if(this._j_!=null){this._j_._q22._OZ(yyGetReal(_MZ));this._v62(this._j_._q22);}},get phy_linear_damping(){return this._r13;},set phy_linear_damping(_MZ){if(this._j_!=null){this._j_._q22._NZ(yyGetReal(_MZ));this._v62(this._j_._q22);}},get phy_bullet(){return this._s13;},set phy_bullet(_Q22){if(this._j_!=null){this._j_._ax1(yyGetBool(_Q22));this._v62(this._j_._q22);}},get phy_fixed_rotation(){return this._t13;},set phy_fixed_rotation(_R22){if(this._j_!=null){this._j_._ix1(yyGetBool(_R22));this._v62(this._j_._q22);
}},get phy_active(){return this._u13;},set phy_active(_S22){if(this._j_!=null){this._j_._gx1(yyGetBool(_S22));this._v62(this._j_._q22);}},get layer(){return this.__L;},set layer(_YM){_YM=yyGetInt32(_YM);_bo._RM(_c4,this);this.__L=_YM;var _kH=_bo._6J(_c4,_YM);if(_kH!=null){_bo._PM(_c4,_kH,this);this._F03=_kH.depth;}},get in_sequence(){return this._v13();},get sequence_instance(){return this._w13();},get drawn_by_sequence(){return this._x13();},set drawn_by_sequence(_y13){this._z13(_y13);}};_BI.prototype._r4=function(_YE){
this._H03=_YE;};_BI.prototype.SetImageIndexGML=function(_YE){this.image_index=_YE;this._GE=0;};_BI.prototype._A13=function(_bx1){this._dI=_bx1;};_BI.prototype._B13=function(){return this._dI;};_BI.prototype._C13=function(_bx1){this._513=_bx1;};_BI.prototype._v13=function(){return this._513;};_BI.prototype._D13=function(_bx1){this._613=_bx1;};_BI.prototype._E13=function(){return this._613;};_BI.prototype._F13=function(_G13){this._713=_G13;};_BI.prototype._w13=function(){return this._713;};_BI.prototype._H13=function(_bx1){
this._813=_bx1;};_BI.prototype._I13=function(){return this._813;};_BI.prototype._z13=function(_bx1){this._913=_bx1;};_BI.prototype._x13=function(){return this._913;};_BI.prototype._Rd=function(_J13,_lL2){if((this.x==_J13)&&(this.y==_lL2))return;this.x=_J13;this.y=_lL2;this._dI=true;};_BI.prototype._EI=function(_Pn,_K13){if(this._Nx!=null){this._Nx._RM(this);this._Nx=null;}for(var _H5 in _Pn){var _2z=_Pn[_H5];this[_H5]=_2z;}this._XH=new _yx();this._XH.__i(_Pn._XH);for(var i=0;i<=_Dw2-1;i++){var _05=_Pn.alarm[i];
this.alarm[i]=_05;}if(_K13&&this._Nx!=null){this._Nx._NM(this);}var _FE=this._P9();if(_FE){this._a13=_FE._Q3();}this.__L=_Pn.layer;};_BI.prototype._L13=function(){return _Wn(_521,this.object_index);};_BI.prototype._LI=function(_sI,_K13,_M13){this._B03=_sI;if(this._Nx!=null){this._Nx._RM(this);this._Nx=null;this._313=null;}if(_sI==-1)_sI=0;this._313=this._Nx=_14._n6(_sI);if(this._Nx!=null){if(_K13){this._Nx._NM(this);}this._Hv2=this._Nx._Hv2;this.mask_index=this._Nx._hV;this.solid=this._Nx._cV;this.visible=this._Nx._dV;
this.persistent=this._Nx._gV;this._dI=true;}};_BI.prototype._MI=function(_s4){var _tJ2=_m6._n6(_s4);if(_tJ2){this._XH.left=_tJ2._XH.left;this._XH.right=_tJ2._XH.right;this._XH.top=_tJ2._XH.top;this._XH.bottom=_tJ2._XH.bottom;}this.sprite_index=_s4;this._a13=null;if(this._Nx!==null){this._P9();}};_BI.prototype._OI=function(_KL){if(_KL&&this._j_){_KL._lZ._0z1(this._j_);}this._j_=null;if(this._Nx._iV.physicsObject){this._N13();this._dI=true;}};_BI.prototype._N13=function(){if(!this._Nx._iV.physicsObject){
return;}if(!sprite_exists(this.sprite_index)){return;}if(!_c4._lZ){return;}var _xZ=physics_fixture_create();var _O13=this._Nx._iV,_P13=0.0,_pY2=0.0;switch(_O13.physicsShape){case _Q13:{var _R13=1.0;if(Math.abs(this.image_xscale-this.image_yscale)<0.0001){_R13=this.image_xscale;}else {debug("Image scale for physics object using circle collision should not vary across axes: "+this._Nx._Ox);}_P13=-_O13.physicsShapeVertices[0]*_R13;_pY2=-_O13.physicsShapeVertices[1]*_R13;var _K01=_O13.physicsShapeVertices[2]*_R13;
physics_fixture_set_circle_shape(_xZ,_K01);}break;case _S13:case _T13:{physics_fixture_set_polygon_shape(_xZ);if((this.image_xscale*this.image_yscale)<0){for(var _c7=_O13.physicsShapeVertices.length-2;_c7>=0;_c7-=2){physics_fixture_add_point(_xZ,_O13.physicsShapeVertices[_c7+0]*this.image_xscale,_O13.physicsShapeVertices[_c7+1]*this.image_yscale);}}else {for(var _c7=0;_c7<_O13.physicsShapeVertices.length;_c7+=2){physics_fixture_add_point(_xZ,_O13.physicsShapeVertices[_c7+0]*this.image_xscale,_O13.physicsShapeVertices[_c7+1]*this.image_yscale);
}}}break;}physics_fixture_set_angular_damping(_xZ,_O13.physicsAngularDamping);physics_fixture_set_linear_damping(_xZ,_O13.physicsLinearDamping);physics_fixture_set_sensor(_xZ,_O13.physicsSensor);physics_fixture_set_collision_group(_xZ,_O13.physicsGroup);physics_fixture_set_density(_xZ,_O13.physicsDensity);physics_fixture_set_restitution(_xZ,_O13.physicsRestitution);if(_O13.physicsFriction!=undefined){physics_fixture_set_friction(_xZ,_O13.physicsFriction);}if(_O13.physicsAwake!=undefined){physics_fixture_set_awake(_xZ,
_O13.physicsAwake);}if(_O13.physicsKinematic!=undefined){physics_fixture_set_kinematic(_xZ,_O13.physicsKinematic);}physics_fixture_bind(this,_xZ,this.id,_P13,_pY2);};_BI.prototype._d13=function(){with(this){if(this.hspeed==0){if(this.vspeed>0){this._w03=270;}else if(this.vspeed<0){this._w03=90;}}else {var _iE=_U13(180*(Math.atan2(this.vspeed,this.hspeed))/_u7);if(_iE<=0){this._w03=-_iE;}else {this._w03=360.0-_iE;}}if(Math.abs(this._w03-_Ak(this._w03))<0.0001){this._w03=_Ak(this._w03);}this._w03=_WH2(this._w03,
360.0);this._x03=Math.sqrt(_CQ(this.hspeed)+_CQ(this.vspeed));if(Math.abs(this.speed-_Ak(this.speed))<0.0001)this._x03=_Ak(this._x03);}};_BI.prototype._e13=function(){this._u03=this.speed*_U13(Math.cos(this.direction*0.0174532925));this._v03=-this.speed*_U13(Math.sin(this.direction*0.0174532925));if(Math.abs(this._u03-_Ak(this._u03))<0.0001){this._u03=_Ak(this._u03);}if(Math.abs(this._v03-_Ak(this._v03))<0.0001){this._v03=_Ak(this._v03);}};function _U13(_V13){return(~~(_V13*1000000))/1000000.0;}_BI.prototype._yI=function(_wI,
_yv){this.hspeed+=_yv*_U13(Math.cos(_wI*0.0174532925));this.vspeed-=_yv*_U13(Math.sin(_wI*0.0174532925));this._d13();};_BI.prototype._W13=function(){if(this.friction!=0.0){var _X13;if(this.speed>0){_X13=this.speed-this.friction;}else {_X13=this.speed+this.friction;}if((this.speed>0)&&(_X13<0)){this.speed=0;}else if((this.speed<0)&&(_X13>0)){this.speed=0;}else if(this.speed!=0){this.speed=_X13;}}if(this.gravity!=0){this._yI(this.gravity_direction,this.gravity);}};_BI.prototype._Sf1=function(){var _FE=this._P9();
if(_FE){var _tJ2=_m6._n6(this.sprite_index);return _FE._84(_tJ2);}return _m6._Vf1(this.sprite_index);return 0;};_BI.prototype._w6=function(_Y3,_s4,_Pn,_fA,_Y13){if(_Y13==undefined){_Y13=_Pn._Nx;}var _vA=_wA;var _xA=_yA;var _zA=_AA;var result=false;var _Z13=false;if(_Y3==_H62){var __13=_14._n6(_s4);while(__13!=null&&!_Z13){var _By=_Y13;while(_By!=null&&!_Z13){if(_By.Event[_Y3]){if(_By._hJ2[__13._ZI]){_wA=_By;_yA=_Y3;_AA=__13._ZI;result=_By._w6(_Y3,__13._ZI,_Pn,_fA);_Z13=true;break;}}_By=_By.__w;}__13=__13.__w;
}}else {var _By=_Y13;var _023=_Y3|_s4;while(_By!=null){if(_By.Event[_023]){_wA=_By;_yA=_Y3;_AA=_s4;result=_By._w6(_Y3,_s4,_Pn,_fA);break;}_By=_By.__w;}}_wA=_vA;_yA=_xA;_AA=_zA;return result;};_BI.prototype._FA=function(_Y3,_s4,_fA){if(_wA!=null){if(_wA.__w!=null){this._w6(_Y3,_s4,this,_fA,_wA.__w);}}};_BI.prototype._123=function(_k4){_k4=yyGetReal(_k4);if(this.hspeed==_k4)return;this.hspeed=_k4;this._d13();};_BI.prototype._223=function(_k4){_k4=yyGetReal(_k4);if(this.vspeed==_k4)return;this.vspeed=_k4;
this._d13();};_BI.prototype._323=function(_k4){_k4=yyGetReal(_k4);this.direction=_WH2(_k4,360.0);while(this.direction<0.0){this.direction+=360.0;}this._e13();};_BI.prototype._423=function(_k4){_k4=yyGetReal(_k4);if(this.speed==_k4)return;this.speed=_k4;this._e13();};_BI.prototype._eI=function(){var _523=this._623();var _723=this._823();if(_523!==null&&_m6.Sprites[this.mask_index]._4b1==_5b1._sb1){if(!this._XH){this._XH=new _yx(0,0,0,0);}if(_523._U6(this._XH,this._923(false),this.x,this.y,this.image_xscale,
this.image_yscale,this.image_angle)){this._4b1=_5b1._sb1;}else {this._XH.left=this.x;this._XH.top=this.y;this._XH.right=this.x;this._XH.bottom=this.y;this._4b1=_5b1._6b1;}this._dI=false;return;}if(_723!==null&&_m6.Sprites[this.sprite_index]._4b1==_5b1._sb1){if(!this._XH){this._XH=new _yx(0,0,0,0);}if(_723._U6(this._XH,this._923(true),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle)){this._4b1=_5b1._sb1;}else {this._XH.left=this.x;this._XH.top=this.y;this._XH.right=this.x;this._XH.bottom=this.y;
this._4b1=_5b1._6b1;}this._dI=false;return;}var _rH,_s7;var _mj=(this.mask_index>=0)?this.mask_index:this.sprite_index;if(_mj<0||_mj>_m6.Sprites.length){if(!this._XH){this._XH=new _yx(0,0,0,0);}this._XH.left=this.x;this._XH.top=this.y;this._XH.right=this.x;this._XH.bottom=this.y;this._4b1=_5b1._6b1;}else {var _XH=this._XH;_rH=_m6.Sprites[_mj];if(this.image_angle==0){if((_rH._Vb1!=null)&&(_rH._Vb1._a23())){_XH=_rH._b23(this.image_xscale,this.image_yscale);_XH.left+=this.x;_XH.right+=this.x;_XH.top+=this.y;
_XH.bottom+=this.y;}else {var _c23=_rH._XH;var width=(_c23.right+1)-_c23.left;var height=(_c23.bottom+1)-_c23.top;if(_lS){_XH.left=_Ak(this.x+this.image_xscale*(_c23.left-_rH.xOrigin));_XH.right=_Ak(_XH.left+(this.image_xscale*width));}else {_XH.left=(this.x+this.image_xscale*(_c23.left-_rH.xOrigin));_XH.right=(_XH.left+(this.image_xscale*width));}if(_XH.left>_XH.right){_s7=_XH.left;_XH.left=_XH.right;_XH.right=_s7;}if(_lS){_XH.top=_Ak(this.y+this.image_yscale*(_c23.top-_rH.yOrigin));_XH.bottom=_Ak(_XH.top+(this.image_yscale*height));
}else {_XH.top=(this.y+this.image_yscale*(_c23.top-_rH.yOrigin));_XH.bottom=(_XH.top+(this.image_yscale*height));}if(_XH.top>_XH.bottom){_s7=_XH.top;_XH.top=_XH.bottom;_XH.bottom=_s7;}if(_lS){_XH.right-=1;_XH.bottom-=1;}}this._4b1=_rH._4b1;}else {var _US,_VS;var _WS,_XS;if((_rH._Vb1!=null)&&(_rH._Vb1._a23())){_XH=_rH._b23(this.image_xscale,this.image_yscale);_US=_XH.left;_VS=_XH.right;_WS=_XH.top;_XS=_XH.bottom;if(_lS){_XS+=1;_VS+=1;}}else {var _c23=_rH._XH;_US=this.image_xscale*(_c23.left-_rH.xOrigin);
_VS=this.image_xscale*(_c23.right-_rH.xOrigin+1);_WS=this.image_yscale*(_c23.top-_rH.yOrigin);_XS=this.image_yscale*(_c23.bottom-_rH.yOrigin+1);}var _Q7,_P7;_Q7=Math.cos(this.image_angle*_u7/180.0);_P7=Math.sin(this.image_angle*_u7/180.0);var _d23=_Q7*_VS;var _e23=_Q7*_US;var _f23=_P7*_XS;var _g23=_P7*_WS;var _s7;if(_d23<_e23){_s7=_e23;_e23=_d23;_d23=_s7;}if(_f23<_g23){_s7=_g23;_g23=_f23;_f23=_s7;}if(_lS){_XH.left=Math.floor((this.x+_e23+_g23)+0.5);_XH.right=Math.floor((this.x+_d23+_f23)-0.5);}else {_XH.left=(this.x+_e23+_g23);
_XH.right=(this.x+_d23+_f23);}var _h23=_Q7*_XS;var _i23=_Q7*_WS;var _j23=_P7*_VS;var _k23=_P7*_US;if(_h23<_i23){_s7=_i23;_i23=_h23;_h23=_s7;}if(_j23<_k23){_s7=_k23;_k23=_j23;_j23=_s7;}if(_lS){_XH.top=Math.floor((this.y+_i23-_j23)+0.5);_XH.bottom=Math.floor((this.y+_h23-_k23)-0.5);}else {_XH.top=((this.y+_i23-_j23));_XH.bottom=((this.y+_h23-_k23));}this._4b1=_rH._4b1;}this._XH=_XH;}this._dI=false;};_BI.prototype._l23=function(){this._623();if(this._dI){this._eI();return;}var _723=this._823();if(_723!==null){
var _mN=_l6=_m6._n6(this.sprite_index);if(_723._86(this._923(_723===this._a13),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,undefined,_mN)){this._eI();return;}}};_BI.prototype._Vn=function(_96,_a6,_Ti){if(this.marked)return false;this._l23();var _kS=-0.00001;if(_lS){_kS=1.0;}var _XH=this._XH;if(_96>=_XH.right+_kS)return false;if(_96<_XH.left)return false;if(_a6>=_XH.bottom+_kS)return false;if(_a6<_XH.top)return false;if(this._4b1===_5b1._m23){if(!_n23(this,_96,_a6)){return false;}}var _6p=false;
var _Px;if(this.mask_index<0){_Px=_m6._n6(this.sprite_index);}else {_Px=_m6._n6(this.mask_index);}if((_Px===null)||(_Px._n7===0))return false;if((!_Ti)||this._4b1===_5b1._6b1)return true;var _723=this._823();if(_723!==null){_6p=_723._E7(this._923(true),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_96,_a6);}else {_6p=_Px._o23(Math.floor(this.image_index),_XH,_Ak(this.x),_Ak(this.y),this.image_xscale,this.image_yscale,this.image_angle,_Ak(_96),_Ak(_a6));}return _6p;};_BI.prototype._mo=function(_F7,
_G7,_77,_87,_Ti){if(this.marked)return false;this._l23();var _6p=false;var _XH=this._XH;var _kS=0;if(_lS){_kS=1.0;}var __N1=_r7(_F7,_77);if(__N1>=_XH.right+_kS){return _6p;}var _p23=_q7(_F7,_77);if(_p23<_XH.left){return _6p;}var _q23=_r7(_G7,_87);if(_q23>=_XH.bottom+_kS){return _6p;}var _qD=_q7(_G7,_87);if(_qD<_XH.top){return _6p;}var _Px;if(this.mask_index<0){_Px=_m6._n6(this.sprite_index);}else {_Px=_m6._n6(this.mask_index);}if((_Px===null)||(_Px._n7==0))return false;if(this._4b1===_5b1._m23){if(!_r23(this,_F7,
_G7,_77,_87))return false;}if((!_Ti)||this._4b1===_5b1._6b1){if(!_lS){var _p7=(_q7(__N1,_XH.left));var _s7=(_q7(_q23,_XH.top));var _Y4=(_r7(_p23,_XH.right));var __4=(_r7(_qD,_XH.bottom));if(Math.floor(_p7+0.5)==Math.floor(_Y4+0.5))return false;if(Math.floor(_s7+0.5)==Math.floor(__4+0.5))return false;}return true;}var _723=this._823();if(_723!==null){_6p=_723._I7(this._923(true),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_F7,_G7,_77,_87);}else {_k03.left=_Ak(_r7(_F7,_77));_k03.top=_Ak(_r7(_G7,
_87));_k03.right=_Ak(_q7(_F7,_77));_k03.bottom=_Ak(_q7(_G7,_87));_6p=_Px._s23(Math.floor(this.image_index),_XH,_Ak(this.x),_Ak(this.y),this.image_xscale,this.image_yscale,this.image_angle,_k03);}return _6p;};function _t23(_F7,_G7,_77,_87,_6o,_7o){var _L7=(_F7+_77)*0.5;var _M7=(_G7+_87)*0.5;var _N7=(_77-_F7)*0.5;var _O7=(_87-_G7)*0.5;var _05=(_6o-_L7)/_N7;var __4=(_7o-_M7)/_O7;return((_05*_05)+(__4*__4)<=1)?true:false;};_BI.prototype._vo=function(_F7,_G7,_77,_87,_Ti){if(this.marked)return false;this._l23();
if(this._dI)this._eI();_F7=_Ak(_F7);_77=_Ak(_77);_G7=_Ak(_G7);_87=_Ak(_87);var _u23,_v23,_w23,_x23;if(_F7<_77){_w23=_F7;_u23=_77;}else {_w23=_77;_u23=_F7;}if(_G7<_87){_x23=_G7;_v23=_87;}else {_x23=_87;_v23=_G7;}var _XH=this._XH;if(_w23>=_XH.right)return false;if(_u23<_XH.left)return false;if(_x23>=_XH.bottom)return false;if(_v23<_XH.top)return false;if((_F7==_77)||(_G7==_87)){return this._mo(_F7,_G7,_77,_87,_Ti);}var _po=(_F7+_77)*0.5;var _qo=(_G7+_87)*0.5;if(!(_XH.left<=_po&&_XH.right>=_po)&&!(_XH.top<=_qo&&_XH.bottom>=_qo)){
var _Jo=(_XH.right<=_po)?_XH.right:_XH.left;var _Ko=(_XH.bottom<=_qo)?_XH.bottom:_XH.top;if(!_t23(_F7,_G7,_77,_87,_Jo,_Ko))return false;}var _Px;if(this.mask_index<0){_Px=_m6._n6(this.sprite_index);}else {_Px=_m6._n6(this.mask_index);}if((_Px===null)||(_Px._n7==0))return false;if(this._4b1===_5b1._m23){if(!_y23(this,_F7,_G7,_77,_87))return false;}if((!_Ti)||this._4b1===_5b1._6b1)return true;_k03.left=_w23;_k03.top=_x23;_k03.right=_u23;_k03.bottom=_v23;var _723=this._823();if(_723!==null){return _723._J7(this._923(true),
this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_k03);}else {return _Px._z23(Math.floor(this.image_index),_XH,_Ak(this.x),_Ak(this.y),this.image_xscale,this.image_yscale,this.image_angle,_k03);}return false;};_BI.prototype._zo=function(_F7,_G7,_77,_87,_Ti){if(this.marked)return false;this._l23();var _A23=this._XH;if(_r7(_F7,_77)>=_A23.right+1){return false;}if(_q7(_F7,_77)<_A23.left){return false;}if(_r7(_G7,_87)>=_A23.bottom+1){return false;}if(_q7(_G7,_87)<_A23.top){return false;}if(_77<_F7){
var _Je=_77;_77=_F7;_F7=_Je;_Je=_87;_87=_G7;_G7=_Je;}if(_F7<_A23.left){_G7=_G7+(_A23.left-_F7)*(_87-_G7)/(_77-_F7);_F7=_A23.left;}if(_77>(_A23.right+1)){_87=_87+(_A23.right+1-_77)*(_87-_G7)/(_77-_F7);_77=_A23.right+1;}if((_G7<_A23.top)&&(_87<_A23.top)){return false;}if((_G7>=_A23.bottom+1)&&(_87>=_A23.bottom+1)){return false;}var _Px;if(this.mask_index<0){_Px=_m6._n6(this.sprite_index);}else {_Px=_m6._n6(this.mask_index);}if((_Px==null)||(_Px==undefined)||(_Px._m5()==0))return false;if(this._4b1===_5b1._m23){
if(!_B23(this,_F7,_G7,_77,_87)){return false;}}if(!_Ti||this._4b1===_5b1._6b1){return true;}var _723=this._823();if(_723!==null){return _723._H7(this._923(true),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_F7,_G7,_77,_87);}return _Px._C23(this.image_index|0,_A23,_Ak(this.x),_Ak(this.y),this.image_xscale,this.image_yscale,this.image_angle,_Ak(_F7),_Ak(_G7),_Ak(_77),_Ak(_87));return false;};_BI.prototype._D23=function(_Hx,_jH){this._l23();_Hx._l23();if(_Hx._XH.left>=this._XH.right+1)return false;
if(_Hx._XH.right+1<=this._XH.left)return false;if(_Hx._XH.top>=this._XH.bottom+1)return false;if(_Hx._XH.bottom+1<=this._XH.top)return false;var _fI=(_Hx.mask_index<0)?_m6._n6(_Hx.sprite_index):_m6._n6(_Hx.mask_index);if(_fI===null)return false;if(!_jH)return true;var _E23=this._823();var _F23=_Hx._823();if(_F23!==null){return _E23._47(this._923(true),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_F23,_Hx._923(true),_Hx.x,_Hx.y,_Hx.image_xscale,_Hx.image_yscale,_Hx.image_angle);}else if(_fI._4b1==_5b1._pb1){
return _E23._l7(this._923(true),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_fI,_Hx._XH,_Hx._923(false),_Hx.x,_Hx.y,_Hx.image_xscale,_Hx.image_yscale,_Hx.image_angle);}return true;return false;};_BI.prototype._G23=function(){if(_e4){var _ym=_m6._n6(this.sprite_index);if(_ym!=null){if(_ym.sequence===null){if(_ym.playbackspeedtype==_f4){this._r4(this.image_index+this.image_speed*_ym.playbackspeed);}else {var fps=_g4._h4();this._r4(this.image_index+this.image_speed*_ym.playbackspeed/fps);
}}return;}}this.image_index+=this.image_speed;};function _H23(points){var _I23=[];for(var i=0;i<2;++i){var x=points[i+1].x-points[i].x;var y=points[i+1].y-points[i].y;var length=sqrt(x*x+y*y);x=x/length;y=y/length;_I23[i]={"x":-y,"y":x};}return _I23;};function _J23(_ap,_hm1){var _K23=_H23(_ap);var _L23=_H23(_hm1);for(var i=0;i<2;++i){var _M23=_N23(_ap,_K23[i]);var _O23=_N23(_hm1,_K23[i]);var _P23=((_M23.max<=_O23.min)||(_O23.max<=_M23.min));if(_P23)return false;}for(var i=0;i<2;++i){var _M23=_N23(_ap,_L23[i]);var _O23=_N23(_hm1,
_L23[i]);var _P23=((_M23.max<=_O23.min)||(_O23.max<=_M23.min));if(_P23)return false;}return true;};function _N23(points,_bp){var _qU2=points[0].x*_bp.x+points[0].y*_bp.y;var result={"min":_qU2,"max":_qU2};for(var i=1;i<4;++i){_qU2=points[i].x*_bp.x+_bp.y*points[i].y;if(_qU2<result.min)result.min=_qU2;else if(_qU2>result.max)result.max=_qU2;}return result;};function _Q23(_vn1){var _mj=(_vn1.mask_index>=0)?_vn1.mask_index:_vn1.sprite_index;var _rH=_m6.Sprites[_mj];var _US,_VS;var _WS,_XS;if((_rH._Vb1!=null)&&(_rH._Vb1._a23())){
var _XH=_rH._b23(_vn1.image_xscale,_vn1.image_yscale);_US=_XH.left;_VS=_XH.right+1;_WS=_XH.top;_XS=_XH.bottom+1;}else {var _c23=_rH._XH;_US=_vn1.image_xscale*(_c23.left-_rH.xOrigin);_VS=_vn1.image_xscale*(_c23.right-_rH.xOrigin+1);_WS=_vn1.image_yscale*(_c23.top-_rH.yOrigin);_XS=_vn1.image_yscale*(_c23.bottom-_rH.yOrigin+1);}var _Q7,_P7;_Q7=Math.cos(-_vn1.image_angle*_u7/180.0);_P7=Math.sin(-_vn1.image_angle*_u7/180.0);var _d23=_Q7*_VS;var _e23=_Q7*_US;var _f23=_P7*_XS;var _g23=_P7*_WS;var _h23=_Q7*_XS;var _i23=_Q7*_WS;
var _j23=_P7*_VS;var _k23=_P7*_US;var _I23=[];var _mj=_vn1.x-0.5;var _mu2=_vn1.y-0.5;_I23[0]={"x":(_mj+_e23-_g23),"y":(_mu2+_i23+_k23)};_I23[1]={"x":(_mj+_d23-_g23),"y":(_mu2+_i23+_j23)};_I23[2]={"x":(_mj+_d23-_f23),"y":(_mu2+_h23+_j23)};_I23[3]={"x":(_mj+_e23-_f23),"y":(_mu2+_h23+_k23)};return _I23;};function _R23(_vn1,_wn1){var _ap=_Q23(_vn1);var _hm1=_Q23(_wn1);return _J23(_ap,_hm1);};function _S23(points){var x=points[1].x-points[0].x;var y=points[1].y-points[0].y;var length=sqrt(x*x+y*y);x=x/length;y=y/length;
_I23={"x":-y,"y":x};return _I23;};function _T23(_ap,_hm1){var _K23=_H23(_ap);for(var i=0;i<2;++i){var _M23=_N23(_ap,_K23[i]);var _O23=_hm1.x*_K23[i].x+_hm1.y*_K23[i].y;var _P23=((_M23.max<=_O23)||(_O23<=_M23.min));if(_P23)return false;}return true;};function _U23(_ap,_V23,_Jh2,_Kh2){var _YS=Math.abs(_Kh2/_Jh2);for(var i=0;i<4;++i)_ap[i].x*=_YS;_V23.x*=_YS;var _Y4=Math.abs(_Kh2);var _K23=_H23(_ap);for(var i=0;i<2;++i){var _M23=_N23(_ap,_K23[i]);var _W23=_V23.x*_K23[i].x+_V23.y*_K23[i].y;var _O23={"min":_W23-_Y4,"max":_W23+_Y4}
;var _P23=((_M23.max<=_O23.min)||(_O23.max<=_M23.min));if(_P23)return false;}return true;}function _X23(_ap,_hm1){var _K23=_H23(_ap);var _Y23=_S23(_hm1);for(var i=0;i<2;++i){var _M23=_N23(_ap,_K23[i]);var _O23=_Z23(_hm1,_K23[i]);var _P23=((_M23.max<=_O23.min)||(_O23.max<=_M23.min));if(_P23)return false;}{var _M23=_N23(_ap,_Y23);var _O23=_Z23(_hm1,_Y23);var _P23=((_M23.max<=_O23.min)||(_O23.max<=_M23.min));if(_P23)return false;}return true;}function _Z23(points,_bp){var _qU2=points[0].x*_bp.x+points[0].y*_bp.y;var result={
"min":_qU2,"max":_qU2};for(var i=1;i<2;++i){_qU2=points[i].x*_bp.x+_bp.y*points[i].y;if(_qU2<result.min)result.min=_qU2;else if(_qU2>result.max)result.max=_qU2;}return result;}function __23(_F7,_G7,_77,_87){_I23=[];_I23[0]={"x":_F7,"y":_G7};_I23[1]={"x":_77,"y":_87};return _I23;};function _B23(_vn1,_F7,_G7,_77,_87){var _ap=_Q23(_vn1);var _hm1=__23(_F7,_G7,_77,_87);return _X23(_ap,_hm1);};function _n23(_vn1,_F7,_G7){var _ap=_Q23(_vn1);var _hm1={"x":_F7,"y":_G7};return _T23(_ap,_hm1);};function _y23(_vn1,_F7,_G7,
_77,_87){var _ap=_Q23(_vn1);var _V23={"x":(_F7+_77)*0.5,"y":(_G7+_87)*0.5};var _Jh2=Math.abs(_F7-_77)*0.5;var _Kh2=Math.abs(_G7-_87)*0.5;return _U23(_ap,_V23,_Jh2,_Kh2);};function _r23(_vn1,_F7,_G7,_77,_87){var _ap=_Q23(_vn1);var _hm1=[];_hm1[0]={"x":_F7,"y":_G7};_hm1[1]={"x":_77,"y":_G7};_hm1[2]={"x":_F7,"y":_87};_hm1[3]={"x":_77,"y":_87};return _J23(_ap,_hm1);};_BI.prototype._RS=function(_Pn,_Ti){if(this!=_Pn&&!this.marked&&!_Pn.marked){if(this._033()){return this._D23(_Pn,_Ti);}if(_Pn._033()){return _Pn._D23(this,
_Ti);}if(this._dI)this._eI();if(_Pn._dI)_Pn._eI();var _kS=0.0;if(_lS){_kS=1.0;}var _133=_Pn._XH;var _233=this._XH;if(_133.left>=(_233.right+_kS))return false;if((_133.right+_kS)<=_233.left)return false;if(_133.top>=(_233.bottom+_kS))return false;if((_133.bottom+_kS)<=_233.top)return false;if(this._4b1===_5b1._m23||_Pn._4b1===_5b1._m23){if(!_R23(this,_Pn)){return false;}}var _333=null;var _433=null;if(this.mask_index<0){_333=_m6._n6(this.sprite_index);}else {_333=_m6._n6(this.mask_index);}if((_333==null)||(_333._n7==0))return false;
if(_Pn.mask_index<0){_433=_m6._n6(_Pn.sprite_index);}else {_433=_m6._n6(_Pn.mask_index);}if((_433==null)||(_433._n7==0))return false;if(!_Ti||(this._4b1===_5b1._6b1&&_Pn._4b1===_5b1._6b1)){if(!_lS){var _p7=(_q7(_133.left,_233.left));var _s7=(_q7(_133.top,_233.top));var _Y4=(_r7(_133.right,_233.right));var __4=(_r7(_133.bottom,_233.bottom));if(Math.floor(_p7+0.5)==Math.floor(_Y4+0.5))return false;if(Math.floor(_s7+0.5)==Math.floor(__4+0.5))return false;}return true;}if(_lS){return _333._533(this.image_index|0,
this._XH,_Ak(this.x),_Ak(this.y),this.image_xscale,this.image_yscale,this.image_angle,_433,_Pn.image_index|0,_Pn._XH,_Ak(_Pn.x),_Ak(_Pn.y),_Pn.image_xscale,_Pn.image_yscale,_Pn.image_angle);}else {return _333._633(this.image_index|0,this._XH,_Ak(this.x),_Ak(this.y),this.image_xscale,this.image_yscale,this.image_angle,_433,_Pn.image_index|0,_Pn._XH,_Ak(_Pn.x),_Ak(_Pn.y),_Pn.image_xscale,_Pn.image_yscale,_Pn.image_angle);}}return false;};_BI.prototype._YY=function(_c5,_xI,_En,_733,_XY,_833){this.path_index=-1;
if(_c5<0)return;var _NR=_vC.Paths[_c5];if(!_NR)return;if(_NR.length<=0)return;if(_En<0)return;this.path_index=_c5;this.path_speed=_xI;if(this.path_speed>=0){this.path_position=0;}else {this.path_position=1;}this.path_positionprevious=this.path_position;this.path_scale=_En;this.path_orientation=_733;this.path_endaction=_833;if(_XY){if(this.path_speed>=0){this._Rd(_NR._NY(0),_NR._OY(0));}else {this._Rd(_NR._NY(1),_NR._OY(1));}}this._Rx=this.x;this._Sx=this.y;};_BI.prototype._r62=function(){var _1Z,_w7,
_y7;if(this.path_index<0)return false;var _NR=_vC.Paths[this.path_index];if(!_NR)return;if(_NR.length<=0)return;var _933=false;var _a33=this.path_orientation*Math.PI/180.0;var _ol=_NR._4Z(this.path_position);_w7=_ol.x;_y7=_ol.y;_1Z=_ol.speed;_ol=null;_1Z=_1Z/(100*this.path_scale);this.path_position=this.path_position+this.path_speed*_1Z/_NR.length;var _b33=_NR._4Z(0);if((this.path_position>=1)||(this.path_position<=0)){_933=(this.path_speed==0)?false:true;switch(this.path_endaction){case 0:{if(this.path_speed!=0){
this.path_position=1;this.path_index=-1;}break;}case 1:{if(this.path_position<0){this.path_position++;}else {this.path_position--;}break;}case 2:{var _c33=_NR._4Z(1);_w7=_c33.x-_b33.x;_y7=_c33.y-_b33.y;var _d33=this.path_scale*(_w7*Math.cos(_a33)+_y7*Math.sin(_a33));var _e33=this.path_scale*(_y7*Math.cos(_a33)-_w7*Math.sin(_a33));if(this.path_position<0){this._Rx=this._Rx-_d33;this._Sx=this._Sx-_e33;this.path_position++;}else {this._Rx=this._Rx+_d33;this._Sx=this._Sx+_e33;this.path_position--;}break;}case 3:{
if(this.path_position<0){this.path_position=-this.path_position;this.path_speed=Math.abs(this.path_speed);}else {this.path_position=2-this.path_position;this.path_speed=-Math.abs(this.path_speed);}break;}default :{this.path_position=1;this.path_index=-1;}}}_ol=_NR._4Z(this.path_position);_w7=_ol.x-_b33.x;_y7=_ol.y-_b33.y;var _wR=this._Rx+this.path_scale*(_w7*Math.cos(_a33)+_y7*Math.sin(_a33));var _xR=this._Sx+this.path_scale*(_y7*Math.cos(_a33)-_w7*Math.sin(_a33));this.hspeed=_wR-this.x;this.vspeed=_xR-this.y;
this.speed=0;this._Rd(_wR,_xR);return _933;};_BI.prototype.get_timer=function(_s4){var _6p=-1;if((_s4>=0)&&(_s4<_Dw2)){_6p=this.alarm[_s4];}return _6p;};_BI.prototype._f33=function(_s4,_k4){if((_s4>=0)&&(_s4<_Dw2)){this.alarm[_s4]=_k4;}};_BI.prototype.__S=function(){if(this._dI){this._eI();}return this._XH;};_BI.prototype.wrap=function(_1T,_2T){var w=0,h=0;if(sprite_exists(this.sprite_index)){var _Px=_m6._n6(this.sprite_index);w=_Px.width*this.image_xscale;h=_Px.height*this.image_yscale;}if(_1T){if((this.hspeed<0)&&(this.x<0)){
this._Rd(this.x+_c4._tF()+w,this.y);}if((this.hspeed>0)&&(this.x>=_c4._tF())){this._Rd(this.x-_c4._tF()-w,this.y);}}if(_2T){if((this.vspeed<0)&&(this.y<0)){this._Rd(this.x,this.y+_c4._uF()+h);}if((this.vspeed>0)&&(this.y>=_c4._uF())){this._Rd(this.x,this.y-_c4._uF()-h);}}};_BI.prototype._U62=function(_d6,_g33){var _K62={};if((_g33.x!=0.0)||(_g33.y!=0.0)){var _Ij1=_d6;var _h33=Math.cos(_Ij1);var _i33=Math.sin(_Ij1);_K62.x=((_g33.x*_h33)-(_g33.y*_i33));_K62.y=((_g33.y*_h33)+(_g33.x*_i33));}else {_K62.x=_g33.x;
_K62.y=_g33.y;}return _K62;};_BI.prototype._v62=function(_j33){var _n13=_g4._h4();var _u62=1.0/_c4._lZ._TZ;var _k33=this._U62(_j33._cl1(),this._j_._s22);this.x=(_j33._4Z().x*_u62)+_k33.x;this.y=(_j33._4Z().y*_u62)+_k33.y;this.image_angle=(-_j33._cl1()*180.0)/_u7;this._dI=true;this._h13=(_j33._cl1()*180.0)/Math.PI;this._i13=this.x-_k33.x;this._j13=this.y-_k33.y;this._k13=(_j33._Hw1()*180.0)/Math.PI;this._l13=_j33._Fw1().x*_u62;this._m13=_j33._Fw1().y*_u62;this._o13=this.phy_linear_velocity_x/_n13;this._p13=this.phy_linear_velocity_y/_n13;
this._s13=_j33._cx1();this.phy_mass=_j33._Ow1();this.phy_inertia=_j33._Pw1();this.phy_com_x=_j33._Cw1().x*_u62;this.phy_com_y=_j33._Cw1().y*_u62;this.phy_dynamic=(_j33._nH===_w12._E42._2w1);this.phy_kinematic=(_j33._nH===_w12._E42._aw1);this.phy_sleeping=!_j33._fx1();this._t13=_j33._jx1();this._u13=_j33._hx1();this._l33=Math.sqrt((this.phy_speed_x*this.phy_speed_x)+(this.phy_speed_y*this.phy_speed_y));this._q13=_j33._1x1();this._r13=_j33._0x1();if(this.phy_position_xprevious===undefined){this.phy_position_xprevious=_j33._4Z().x*_u62;
}if(this.phy_position_yprevious===undefined){this.phy_position_yprevious=_j33._4Z().y*_u62;}};_BI.prototype._m33=function(_tk){this._j_._J22(yyGetReal(_tk)*_c4._lZ._TZ);this._v62(this._j_._q22);};_BI.prototype._n33=function(_tk){this._j_._K22(yyGetReal(_tk)*_c4._lZ._TZ);this._v62(this._j_._q22);};_BI.prototype._o33=function(_N22){this._j_._M22(yyGetReal(_N22)*_c4._lZ._TZ);this._v62(this._j_._q22);};_BI.prototype._p33=function(_N22){this._j_._P22(yyGetReal(_N22)*_c4._lZ._TZ);this._v62(this._j_._q22);
};_BI.prototype._q33=function(_xI){var _n13=_g4._h4();this._j_._M22(yyGetReal(_xI)*_c4._lZ._TZ*_n13);this._v62(this._j_._q22);};_BI.prototype._r33=function(_xI){var _n13=_g4._h4();this._j_._P22(yyGetReal(_xI)*_c4._lZ._TZ*_n13);this._v62(this._j_._q22);};_BI.prototype._s33=function(_MZ){this._j_._q22._OZ(yyGetReal(_MZ));this._v62(this._j_._q22);};_BI.prototype._t33=function(_MZ){this._j_._q22._NZ(yyGetReal(_MZ));this._v62(this._j_._q22);};_BI.prototype._u33=function(_Q22){this._j_._ax1(yyGetBool(_Q22));
this._v62(this._j_._q22);};_BI.prototype._v33=function(_R22){this._j_._ix1(yyGetBool(_R22));this._v62(this._j_._q22);};_BI.prototype._w33=function(_S22){this._j_._gx1(yyGetBool(_S22));this._v62(this._j_._q22);};_BI.prototype._P9=function(){if(sprite_exists(this.sprite_index)){var _rH=_m6._n6(this.sprite_index);if(_rH._ME){if(!this._a13){this._a13=new _y3(_rH._ME);}}}return this._a13;};_BI.prototype._623=function(){var _x33=null;var _y33=false;if(this.mask_index>=0){_x33=_m6.Sprites[this.mask_index];_y33=_x33._4b1==_5b1._sb1;
}if(this._413!==null&&(!_y33||this._413._N3!=_x33._N3)){this._413=null;this._dI=true;}if(_y33&&this._413===null){this._413=new _y3(_x33._ME);this._dI=true;}return this._413;};_BI.prototype._823=function(){var skel=null;if(this.mask_index>=0){skel=this._623();}else {skel=this._P9();if(skel!==null){var _mN=_m6.Sprites[this.sprite_index];if(_mN._4b1!==_5b1._sb1){skel=null;}}}return skel;};_BI.prototype._923=function(_z33){if(this.mask_index>=0&&_m6.Sprites[this.mask_index]._4b1===_5b1._sb1){return 0.0;}var index=this.image_index;
if(_z33){index+=this._GE;this._GE=0;}return index;};_BI.prototype._033=function(){if(this.mask_index<0){return this._P9()&&_m6.Sprites[this.sprite_index]._4b1===_5b1._sb1;}else {return _m6.Sprites[this.mask_index]._4b1===_5b1._sb1}return false;};_BI.prototype._A33=function(){return this.__L;};_BI.prototype._B33=function(_YM){this.__L=_YM;};_BI.prototype._OM=function(){return this._FI;};_BI.prototype._BL=function(_C33){this._FI=_C33;};function _qI2(){this._D33=new _ek();this._D33._fk=true;this._Gx=[];}_qI2.prototype._ag=function(){
this._Gx=[];this._D33._ag();};_qI2.prototype._QS=function(){return this._D33._yk;};_qI2.prototype._Vf=function(_9o){this._Gx[_9o.id]=_9o;this._D33._Vf(_9o);};_qI2.prototype._1I2=function(_yg){return this._Gx[_yg];};_qI2.prototype._n6=function(_yg){var _9o=this._Gx[_yg];if(_9o!=undefined&&_9o!=null)return _9o;var _By=_14._n6(_yg);if(_By!=undefined&&_By!=null){var _E33=false;for(var i=0;i<_By._F33._yk.length;i++){_9o=_By._F33._yk[i];if(!_9o.marked){_E33=true;break;}}if(!_E33){_q5("Unable to find any instance for object index \'"+_yg+"\' name \'"+_By._Ox+"\'")}
else {if(_9o!=undefined&&_9o!=null)return _9o;}}return null;};_qI2.prototype._G33=function(_yg){if(_yg>=0){var _9o=this._Gx[_yg];if(_9o!=undefined&&_9o!=null)return _9o;}return null;};_qI2.prototype._H33=function(_Pn){this._D33._yL(_Pn);var id=_Pn.id;this._Gx[id]=null;};_qI2.prototype._I33=function(){var _yk=_c4._0H._yk;var room=_bo._co();for(var index=0;index<_yk.length;index++){var _9o=_yk[index];_9o.xprevious=_9o.x;_9o.yprevious=_9o.y;_9o.path_positionprevious=_9o.path_position;_9o._G23();}};_qI2.prototype._J33=function(){
var _yk=_c4._0H._yk;for(var index=0;index<_yk.length;index++){var _9o=_yk[index];_9o._W13();if(_9o._r62()){_9o._w6(_s62,0,_9o,_9o);}if(_9o.hspeed!==0||_9o.vspeed!==0){_9o.x+=_9o.hspeed;_9o.y+=_9o.vspeed;_9o._dI=true;}}};function _K33(_9o,_mN,_L33,_M33){var fps=_g4._h4();var _N33=_mN.sequence._Tb1;if(_mN.sequence._Ub1==_RJ)_N33/=fps;_9o._P03=_9o._Q03;_9o._Q03=_L33;var _K6={headPosition:_9o._Q03,_oN:_9o._R03,_pN:false};var _O33=_qN(_mN.sequence,_K6);_9o._Q03=_K6.headPosition;_9o._R03=_K6._oN;if((_mN.sequence._rN!=null)&&(_mN.sequence._rN[0]._nH==_sN)){
var _HO=_mN.sequence._rN[0];if(_HO!=null){_9o._r4(_HO._On2(_9o._Q03));}if(!_M33){var layer=_bo._6J(_c4,_9o.layer);var _P33=-1;for(var _Q33=0;_Q33<layer._7J._yk.length;++_Q33){var _lM=layer._7J._yk[_Q33];if(_lM!==null&&_lM!==undefined&&_lM._fK==_9o.id){_P33=_lM._Ce;break;}}if(_P33!==-1){_xN(_mN.sequence,_P33,fps,_N33,_9o._R03,_9o._P03,_9o._Q03);}}}if(_O33){_9o._w6(_7y2,0,_9o,_9o);}}function _R33(_9o,_mN,image_index){if(_mN.sequence!=null){if((_mN.sequence._rN!=null)&&(_mN.sequence._rN[0]._nH==_sN)){var _HO=_mN.sequence._rN[0];
var _IO=_HO._uN._JO;var _TG=_HO._uN._vN(_9o._Q03,_mN.sequence._wN);if(_TG!=null){var _S33=_HO._uN._NO[_IO-1]._OO+_HO._uN._NO[_IO-1]._wN;var _T33=_9o.image_number;var _U33=image_index/_T33;var _V33=_U33-Math.floor(_U33);if(_V33<0){_U33-=1.0;_V33+=1.0;}var _W33=Math.floor(_U33)*_S33;var _LO=Math.floor(_V33*_IO);var _X33=(_V33*_IO)-_LO;_LO=Math.max(0,Math.min(_IO-1,_LO));_W33+=_HO._uN._NO[_LO]._OO+(_X33*_HO._uN._NO[_LO]._wN);return _W33;}}}return image_index;}_qI2.prototype._Y33=function(){var _yk=_c4._0H._yk;
for(var index=0;index<_yk.length;index++){var _9o=_yk[index];if(_9o.marked)continue;if(!_9o.active)continue;var _mN=_m6._n6(_9o.sprite_index);if(_mN?.sequence!=null){var _Z33=_9o._Q03;if((_mN.sequence._rN!=null)&&(_mN.sequence._rN[0]._nH==_sN)){var _HO=_mN.sequence._rN[0];if(_HO!=null){_Z33=_HO._On2(_9o._Q03);if(Math.abs(_9o.image_index-_Z33)>g_GMLMathEpsilon){var _IO=_HO._uN._JO;if(_IO>0){var _LO=~~(_9o.image_index);var _MO=_9o.image_index-_LO;var __33=_9o.image_index;if(_LO>=_IO){__33=_HO._uN._NO[_IO-1]._OO+(_9o.image_index-(_IO-1));
}else if(_LO<0){__33=_9o.image_index;}else __33=(_HO._uN._NO[_LO]._OO+(_MO*_HO._uN._NO[_LO]._wN));__33=_R33(_9o,_mN,_9o.image_index);_K33(_9o,_mN,__33,true);}}}}var fps=_g4._h4();var length=_mN.sequence._wN;var _N33=_mN.sequence._Tb1;if(_mN.sequence._Ub1==_RJ)_N33/=fps;_K33(_9o,_mN,(_9o._Q03+(_9o._R03*_9o.image_speed*_N33)),false);}else {var _dp=_9o._Sf1();if(_9o.image_index>=_dp){_9o._GE+=_dp;_9o.image_index-=_dp;var _Nx=_9o._Nx;if(_Nx._Hv2[_7y2]){_9o._w6(_7y2,0,_9o,_9o);}}else if(_9o.image_index<0){_9o._GE-=_dp;
_9o.image_index+=_dp;var _Nx=_9o._Nx;if(_Nx._Hv2[_7y2]){_9o._w6(_7y2,0,_9o,_9o);}}}}};_qI2.prototype._w6=function(_Y3,_s4){var _kv1=true;if(_c4){var _023=_Y3;if(_023!=_H62)_023|=_s4;var _c9=_Ev2++;var _yk=_c4._0H._yk;for(var index=_yk.length-1;index>=0;index--){var _9o=_yk[index];if(_9o!==undefined&&!_9o.marked&&(_9o._Gv2<=_c9)){var _Nx=_9o._Nx;if(_Nx._Hv2[_023]){_kv1=_9o._w6(_Y3,_s4,_9o,_9o);}}}}return _kv1;};var yyInst=_4j1;function _3j1(_Z7,_pA,_yg){if(_yg instanceof _Zn){_yg=yyGetInt32(_yg);}else {if(typeof _yg==="object"||typeof _yg==="function")return _yg;
}if(_yg==-1)return _Z7;if(_yg==-2)return _pA;if(_yg==-3)return _Z7;var _9o=_Fx._n6(_yg);if(!_9o){_9o=_14._n6(_yg);if(_9o)_9o=_9o._kw2._n6(0);}return _9o;}function _4j1(_Z7,_pA,_yg){if(_yg instanceof _Zn){_yg=yyGetInt32(_yg);}else {if(typeof _yg==="object"||typeof _yg==="function")return _yg;}if(_yg==-1)return _Z7;if(_yg==-2)return _pA;if(_yg==-3)return _Z7;var _9o=_Fx._n6(_yg);if(!_9o){_9o=_14._n6(_yg);if(!_9o){_ai("Unknown instance ID: "+_yg);debug(_nw());return undefined;}_9o=_9o._kw2._n6(0);}return _9o;}function _qI(_Pn){
if(_Pn._043===undefined||_Pn._043===false){_Pn._043=true;_Pn._w6(_KI,0,_Pn,_Pn);_Pn._w6(_rI,0,_Pn,_Pn);_Pn.marked=true;}}function _143(_wP,_96,_a6,_el,_243){var _Hx=_c4._yP(_96,_a6,_el,_wP);if(_Hx!=null){if(_243!=undefined){_Hx._C13(true);_Hx._H13(true);_Hx._D13(true);_Hx._F13(_243);}_Hx._w6(_HI,0,_Hx,_Hx);_Hx._w6(_II,0,_Hx,_Hx);return _Hx;}return null;}function _343(_wP,_96,_a6,_CO,_243){var layer=_bo._6J(_c4,_CO);if(layer!=null){var _9o=_c4._zP(_96,_a6,layer,_wP);if(!_9o!=null){if(_243!=undefined){_9o._C13(true);
_9o._H13(true);_9o._D13(true);_9o._F13(_243);}_9o._w6(_HI,0,_9o,_9o);_9o._w6(_II,0,_9o,_9o);return _9o;}}return null;}function _443(_Z7){if(_Z7 instanceof _BI){return _Z7.depth;}return _Fb;}var _oJ=256;var _543=5;var _643=1024;var _Bi1=1;var _Gi1=2;var _743=4;var _Rg=1;var _Pg=2;var _Qg=0x80000000;var _843=128;var _Ug=0,_Mg=0,_Kg=0,_Lg=0,_Vg=-1,_943=0,_Wg=-1,_a43=0,_b43=0,_cJ=0,_Yi1=(typeof(document.hasFocus)=="function"?document.hasFocus():true),_hJ=0,_iJ=0,_c43=false,_d43=0,_bi1=false,_ci1=0,_di1=0;var _aJ=[];var _bJ=[];
var _dJ=[];var _Ci1=[];var _Wi1=[];var _Ng=[];var _e43=0;var _Dg=[];var _f43={8:String.fromCharCode(8),9:0,13:0,16:0,17:0,18:0,19:0,20:0,27:0,22:0,32:" ",34:0,35:0,36:0,37:0,38:0,39:0,40:0,45:0,46:0,47:0,48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",58:"0",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:0,92:0,93:0,96:"0",97:"1",98:"2",
99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,144:0,145:0,173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"'",219:"[",220:"\\",221:"]",222:"#",223:"`"};var _g43={8:String.fromCharCode(8),9:0,13:0,16:0,17:0,18:0,19:0,20:0,27:0,22:0,32:" ",34:0,35:0,36:0,37:0,38:0,39:0,40:0,45:0,46:0,47:0,48:")",49:"!",50:"\"",51:"£",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",58:")",59:":",
61:"+",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:0,92:0,93:0,96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,144:0,145:0,173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"@",219:"{",220:"|",221:"}",222:"~",
223:"¬"};function _h43(){_Yi1=true;}function _i43(){_Yi1=false;_j43();}function _k43(which){if(!document.getElementById)return;if(which.style.display=="block"){which.style.display="none";}else {which.style.display="block";}}function _l43(_m43,_n43){try{let _o43=_m43?.JSON_game?.Options?.gameGuid;if(_o43&&_o43==JSON_game.Options.gameGuid){_m43.focus();_n43.focus();return true;}}catch(err){}return false;}function _p43(){var _yn=document.getElementById(_Zw);var _q43;if((_eG==_3B2)||(_eG==_2B2)||(_eG==_4B2)||(_eG==_q51)){
_q43=_yn.parentNode.frames;if(!_q43){_l43(this,_yn);}else {for(var _r43=0;_r43<_q43.length;_r43++){var _s43=_q43[_r43];if(_l43(_s43,_yn))break;}}}else {if(!_yn._t43||!_yn._t43.document||!_yn.parentNode.document.getElementsByTagName("IFRAME")){_l43(this,_yn);}else {_q43=_yn.parentNode.document.getElementsByTagName("IFRAME");for(var _r43 in _q43){var _s43=_q43[_r43].contentWindow;if(_l43(_s43,_yn))break;}}}}var _u43;var _v43;var _w43;var _x43;var _y43;var _z43;var _A43;var _B43;var _C43;var _D43;var _E43;function _F43(){
var _ya2=document.getElementById("gm4html5_div_id");if(_ya2){_v43=_ya2.style.left;_w43=_ya2.style.top;_x43=_ya2.style.margin;var top=window.parent;if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _G43=top.chrome.app.window.current();if(_G43!=null){var _LO1=window.parent.document.getElementById("container");var _H43=window.parent.document.getElementById("game");if(_LO1!=null){_y43=_LO1.style.width;_z43=_LO1.style.height;_C43=_LO1.style.left;_A43=_LO1.style.margin;
_B43=_LO1.style.position;}if(_H43!=null){_D43=_H43.style.width;_E43=_H43.style.height;}_G43.fullscreen();var _I43=_G43.getBounds();if(_LO1!=null){_LO1.style.width="100%";_LO1.style.height="100%";_LO1.style.left="0";_LO1.style.margin='auto';_LO1.style.position='relative';}if(_H43!=null){_H43.style.width="100%";_H43.style.height="100%";canvas.style.width="100%";canvas.style.height="100%";}}}}_ya2.style.margin="0px";_ya2.style.top="0";_ya2.style.left="0";_ya2.style._J43="0px";_ya2.style._K43="0px";if(_ya2.mozRequestFullScreen){
document._L43=function(event){document._L43=_M43;};_ya2.mozRequestFullScreen();}else if(_ya2.webkitRequestFullScreen){_ya2.onwebkitfullscreenchange=function(e){_ya2.onwebkitfullscreenchange=_M43;};if(_eG==_4B2){_ya2.webkitRequestFullScreen();}else {_ya2.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);}}else if(document.documentElement.requestFullScreen){document.documentElement.requestFullScreen();}_fH2=true;return;}if(canvas.mozRequestFullScreen){canvas.style.margin="0px";canvas.style.top="";
canvas.style.left="";canvas.style._J43="0px";canvas.style._K43="0px";canvas.mozRequestFullScreen();}else if(canvas.webkitRequestFullScreen){canvas.style.margin="0px";canvas.style.top="";canvas.style.left="";canvas.style._J43="0px";canvas.style._K43="0px";canvas.onwebkitfullscreenchange=function(e){canvas.onwebkitfullscreenchange=_M43;};if(_eG==_4B2){canvas.webkitRequestFullScreen();}else {canvas.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);}}else if(document.documentElement.requestFullScreen){
canvas.style.margin="0px";canvas.style.top="";canvas.style.left="";canvas.style._J43="0px";canvas.style._K43="0px";document.documentElement.requestFullScreen();}_fH2=true;}function _M43(){if(_xh1){var _ya2=document.getElementById("gm4html5_div_id");if(_ya2){_ya2.style.left=_v43;_ya2.style.top=_w43;_ya2.style.margin=_x43;}var top=window.parent;if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _G43=top.chrome.app.window.current();if(_G43!=null)_G43.restore();}}_fH2=true;
}}function _N43(){var top=window.parent;if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _G43=top.chrome.app.window.current();if(_G43!=null){_G43.restore();_fH2=true;var _LO1=window.parent.document.getElementById("container");if(_LO1!=null){_LO1.style.width=_y43;_LO1.style.height=_z43;_LO1.style.left=_C43;_LO1.style.margin=_A43;_LO1.style.position=_B43;}var _H43=window.parent.document.getElementById("game");if(_H43!=null){_H43.style.width=_D43;_H43.style.height=_E43;
canvas.style.width=_D43;canvas.style.height=_E43;}}}}if(document.webkitCancelFullScreen){document.webkitCancelFullScreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();_M43();}else {_fH2=true;}}function _cx(){if(_cH2)return;window.onkeyup=function(){_O43(arguments[0]||window.event);};window.onkeydown=function(){var _hi=arguments[0]||window.event;if((_8H2)&&(_hi!=null)&&(_hi.which==121)&&(!_hi.repeat)&&(canvas.mozRequestFullScreen)){if(!document.mozFullScreen){_P43();_F43();}
else {_N43();}_hi.preventDefault();return false;}if(_Q43(_hi)==false){_hi.preventDefault();return false;}};window.onmouseup=_Kd1;_cH2=true;}function _2x(){if(_cH2==false)return;window.onkeydown=null;window.onkeyup=null;window.onmouseup=null;_cH2=false;}function _R43(_S43){if(_S43==121){return true;}if(window.chrome&&window.chrome.app){if(_S43==183)return true;}return false;}function _Q43(_hi){var _S43;if(_hi==null){_S43=window.event.which;if(_S43==122)return true;if(_S43!=121)window.event.preventDefault();
else _fH2=true;window.event.preventDefault();}else {_S43=_hi.which;if(_S43==122)return true;if(_S43==120){}else if(!_R43(_S43)){_hi.preventDefault();}else {if(_8H2){if(!_xh1){_P43();_F43();}else {_N43();}}}_hi.preventDefault();}if(!_aJ[_S43]){_bJ[_S43]=1;}_aJ[_S43]=1;_cJ=_S43;if(_eG==_fG){_b43=_hi.char;}else if(_hi.key){if(_hi.key.length==1){_b43=_hi.key;}else if(_S43==8){_b43=String.fromCharCode(8);}else if(_S43==13){_b43=String.fromCharCode(13);}else {_b43="";}}else {if(_hi.shiftKey){_b43=_g43[_S43];}else {
_b43=_f43[_S43];}}if(!_b43)_b43="";return false;}function _O43(_hi){var _S43;if(_hi==null){_S43=window.event.which;if(_S43==122)return;window.event.preventDefault();}else {_S43=_hi.which;if(_S43==122)return;_hi.preventDefault();}_dJ[_S43]=1;_aJ[_S43]=0;return false;}function _T43(_w4,_U43){var target,_y8;var _V43=canvas.style.display;canvas.style.display="none";target=document.elementFromPoint(_U43.clientX,_U43.clientY);canvas.style.display=_V43;target="canvas";_y8=document.createEvent('MouseEvents');_y8.initMouseEvent(_w4,
true,true,document.defaultView,1,_U43.screenX,_U43.screenY,_U43.clientX,_U43.clientY,false,false,false,false,_U43.button,null);_y8.target=target;target.dispatchEvent(_y8);}function _Cn(_U43){_Kg=_U43.clientX;_Lg=_U43.clientY;_ci1=_U43.movementX||_U43.mozMovementX||_U43.webkitMovementX||_U43.msMovementX||0;_di1=_U43.movementY||_U43.mozMovementY||_U43.webkitMovementY||_U43.msMovementY||0;_Ng[_U43.button].x=_Kg;_Ng[_U43.button].y=_Lg;}function _Jd1(_U43){if(!_Yi1){_p43();}_Ug=_U43.button;if(_Ug==2)_Ug=1;
else if(_Ug==1)_Ug=2;_Wg=_Ug;_Vg=_Ug;_Mg|=(1<<_Ug);_Ng[_U43.button]._Og=_Pg|_Qg|_Rg;_Ng[_U43.button].x=_U43.pageX;_Ng[_U43.button].y=_U43.pageY;return _U43;}function _Kd1(_U43){_Ug=_U43.button;if(_Ug==2)_Ug=1;else if(_Ug==1)_Ug=2;_a43=_943;_943=_Ug;_Mg&=~(1<<_Ug);_Vg=-1;_Ng[_U43.button]._Og=0;return false;}function _W43(_U43){_U43.preventDefault();if(_U43.detail){_d43=-_U43.detail;}else {_d43=_U43.wheelDelta;}}function _X43(){if(_Fx!=null){_Fx._w6(__x2,0);}return undefined;}function _oI2(){this._Y43="a";this._Z43=[];
this.__43=this._053=-1;this._jJ=[];this._lJ=[];this._kJ=[];this._153=this._253=0;this._Ve=[];this._Ue=[];this._Qe=[];this._353=this._453=false;this._pJ=[];this._553=this._gJ=this._653=this._753=this._mJ=this._nJ=this._84=0;for(var _p7=0;_p7<_643;_p7++){this._Z43[_p7]="";}for(var _p7=0;_p7<_oJ;_p7++){this._jJ[_p7]=this._lJ[_p7]=this._kJ[_p7]=false;this._pJ[_p7]=_p7;}for(var _p7=0;_p7<_543;_p7++){this._Ve[_p7]=this._Ue[_p7]=this._Qe[_p7]=false;}this._bg=_853;this._953=_a53;this._b53=_b53;this._c53=_c53;
this._d53=_d53;this._e53=_e53;this._f53=_f53;this._g53=_g53;this._h53=_h53;this._i53=_i53;this._j53=_j53;this._k53=_k53;this._l53=_l53;this._m53=_m53;this._n53=_n53;this._o53=_o53;this._p53=_p53;this._q53=_q53;this._r53=_r53;this._s53=_s53;this._t53=_t53;this._u53=_v53;this._w53=_x53;this._y53=_z53;this._A53=_A53;for(var _p7=0;_p7<_oJ;_p7++){_aJ[_p7]=_dJ[_p7]=false;}if(!_h03){window.onbeforeunload=_X43;}_Wi1=new Array(_843);_Ng=new Array(_843);for(var _B53=0;_B53<_843;_B53++){_Wi1[_B53]=new _C53();_Ng[_B53]=new _C53();
}browser_input_capture(true);}function _D53(){_bi1=(document.pointerLockElement===canvas||document.mozPointerLockElement===canvas||document.webkitPointerLockElement===canvas||document.msPointerLockElement===canvas);}function browser_input_capture(_xr){_xr=yyGetBool(_xr);if(_c43==_xr)return;_j43();_c43=_xr;if(_xr){canvas.onmousemove=_Cn;canvas.onmousedown=_Jd1;window.onmouseup=_Kd1;canvas.onmousewheel=_W43;canvas.onselectstart=function(){return false;};canvas.addEventListener("DOMMouseScroll",_W43,false);
var _p7=document.getElementById("loading_screen");if(_p7){_p7.onmousemove=_Cn;_p7.onmousedown=_Jd1;_p7.onmouseup=_Kd1;_p7.onmousewheel=_W43;_p7.addEventListener("DOMMouseScroll",_W43,false);}window.addEventListener("focus",_h43);window.addEventListener("blur",_i43);document.onpointerlockchange=_D53;document.onmozpointerlockchange=_D53;document.onwebkitpointerlockchange=_D53;document.onmspointerlockchange=_D53;_cx();}else {canvas.onmousemove=null;canvas.onmousedown=null;window.onmouseup=null;canvas.onmousewheel=null;
canvas.onselectstart=null;canvas.removeEventListener("DOMMouseScroll",_W43);var _p7=document.getElementById("loading_screen");if(_p7){_p7.onmousemove=null;_p7.onmousedown=null;_p7.onmouseup=null;_p7.onmousewheel=null;_p7.removeEventListener("DOMMouseScroll",_W43);}document.body.onfocusin=null;document.body.onfocusout=null;document.onfocusin=null;document.onfocusout=null;window.onfocus=null;window.onblur=null;document.onpointerlockchange=null;document.onmozpointerlockchange=null;document.onwebkitpointerlockchange=null;
document.onmspointerlockchange=null;_2x();}}function _C53(){this._Og=0;this.x=0;this.y=0;}function _j43(){_E53();_F53();g_pBuiltIn.keyboard_key=0;g_pBuiltIn.keyboard_key="";_cJ=0;_b43="";}_oI2.prototype._ag=function(){this._G53();this._t53();g_pBuiltIn.keyboard_key=0;g_pBuiltIn.keyboard_lastkey=0;g_pBuiltIn.keyboard_key="";_cJ=0;_b43="";g_pBuiltIn.keyboard_lastchar="";g_pBuiltIn.keyboard_string="";};/*@this {yyIOManager} */function _b53(){return this._Y43;}/*@this {yyIOManager} */function _c53(_H53){
this._Y43=_H53;}/*@this {yyIOManager} */function _d53(){return this._053;}/*@this {yyIOManager} */function _e53(){return this.__43;}/*@this {yyIOManager} */function _f53(_Tk){if(_Tk<0||_Tk>255)return false;this._053=_Tk;}/*@this {yyIOManager} */function _g53(_Tk){if(_Tk<0||_Tk>255)return false;this.__43=_Tk;}/*@this {yyIOManager} */function _h53(_Tk){if(_Tk<0||_Tk>255)return false;return this._jJ[_Tk];}/*@this {yyIOManager} */function _i53(_Tk){if(_Tk<0||_Tk>255)return false;return this._kJ[_Tk];}/*@this {yyIOManager} */function _j53(_Tk){
if(_Tk<0||_Tk>255)return false;return this._lJ[_Tk];}/*@this {yyIOManager} */function _k53(_Tk){if(_Tk<0||_Tk>255)return;this._jJ[_Tk]=0;this._kJ[_Tk]=0;this._lJ[_Tk]=0;}_oI2.prototype._G53=function(){this._053=0;this.__43=0;this._Y43=0;for(var i=0;i<=_oJ;i++){this._jJ[i]=0;this._kJ[i]=0;this._lJ[i]=0;}};function _E53(){for(var i=0;i<_oJ;i++){_bJ[i]=0;_dJ[i]=0;_aJ[i]=0;}}/*@this {yyIOManager} */function _l53(){return this._153;}/*@this {yyIOManager} */function _m53(){return this._253;}/*@this {yyIOManager} */function _n53(_Mn){
if((_Mn<1)||(_Mn>3))return;this._153=_Mn;}/*@this {yyIOManager} */function _o53(_Mn){if((_Mn<1)||(_Mn>3))return;this._253=_Mn;}/*@this {yyIOManager} */function _p53(_Mn){_Mn--;if(_Mn>=0&&_Mn<_543){return this._Ve[_Mn];}return false;}/*@this {yyIOManager} */function _q53(_Mn){_Mn--;if(_Mn>=0&&_Mn<_543){return this._Qe[_Mn];}}/*@this {yyIOManager} */function _r53(_Mn){_Mn--;if(_Mn>=0&&_Mn<_543){return this._Ue[_Mn];}return false;}/*@this {yyIOManager} */function _s53(_Mn){_Mn--;if(_Mn>=0&&_Mn<_543){this._Ve[_Mn]=false;
this._Qe[_Mn]=false;this._Ue[_Mn]=false;}}/*@this {yyIOManager} */function _t53(){this._153=0;this._253=0;for(var i=0;i<=_543;i++){this._Ve[i]=false;this._Qe[i]=false;this._Ue[i]=false;}this._453=false;this._353=false;for(var _Fg=0;_Fg<_Dg.length;_Fg++){_Dg[_Fg]._ag();}}function _F53(){_a43=-1;_943=-1;_Vg=-1;_Mg=0;_Ng[0]._Og=0;_Ng[0].x=0;_Ng[0].y=0;_Ug=-1;}/*@this {yyIOManager} */function _853(){for(var _Fg=0;_Fg<_Dg.length;_Fg++){var _Gg=_Dg[_Fg];if(_Gg._Ve){_Gg._Ue=0;_Gg._Qe=_Gg._ig^_Gg._Ve;}else {_Gg._Ue=_Gg._ig^_Gg._Ve;
_Gg._Qe=0;}_Gg._ig=_Gg._Ve;}for(var _B53=0;_B53<_Ng.length;_B53++){_Wi1[_B53]._Og=_Ng[_B53]._Og;_Wi1[_B53].x=_Ng[_B53].x;_Wi1[_B53].y=_Ng[_B53].y;_Ng[_B53]._Og&=~_Rg;}if(_cJ){if(_b43){if(_cJ==13){}else if(_cJ==8){g_pBuiltIn.keyboard_lastchar=_b43;if(g_pBuiltIn.keyboard_string.length>0){g_pBuiltIn.keyboard_string=g_pBuiltIn.keyboard_string.substring(0,g_pBuiltIn.keyboard_string.length-1);}}else {g_pBuiltIn.keyboard_lastchar=_b43;g_pBuiltIn.keyboard_string+=g_pBuiltIn.keyboard_lastchar;if(g_pBuiltIn.keyboard_string.length>1024){
g_pBuiltIn.keyboard_string=g_pBuiltIn.keyboard_string.substring(1,g_pBuiltIn.keyboard_string.length-1);}}}if(g_pBuiltIn.keyboard_key!=0){g_pBuiltIn.keyboard_lastkey=g_pBuiltIn.keyboard_key;}g_pBuiltIn.keyboard_key=_cJ;_cJ=0;}else if(!_Jg._jJ[g_pBuiltIn.keyboard_key]){g_pBuiltIn.keyboard_lastkey=g_pBuiltIn.keyboard_key;g_pBuiltIn.keyboard_key=0;}this._mJ=_Kg;this._nJ=_Lg;this._gJ=_Mg;if((this._gJ&1)!=0){this._Ve[0]=1;if(((this._653^this._gJ)&0x1)!=0){this._Qe[0]=1;}}else {this._Ve[0]=0;if(((this._653^this._gJ)&0x1)!=0){
this._Ue[0]=1;}}if((this._gJ&2)!=0){this._Ve[1]=1;if(((this._653^this._gJ)&0x2)!=0){this._Qe[1]=1;}}else {this._Ve[1]=0;if(((this._653^this._gJ)&0x2)!=0){this._Ue[1]=1;}}if((this._gJ&4)!=0){this._Ve[2]=1;if(((this._653^this._gJ)&0x4)!=0){this._Qe[2]=1;}}else {this._Ve[2]=0;if(((this._653^this._gJ)&0x4)!=0){this._Ue[2]=1;}}if((this._gJ&8)!=0){this._Ve[3]=1;if(((this._653^this._gJ)&0x8)!=0){this._Qe[3]=1;}}else {this._Ve[3]=0;if(((this._653^this._gJ)&0x8)!=0){this._Ue[3]=1;}}if((this._gJ&16)!=0){this._Ve[4]=1;
if(((this._653^this._gJ)&0x10)!=0){this._Qe[4]=1;}}else {this._Ve[4]=0;if(((this._653^this._gJ)&0x10)!=0){this._Ue[4]=1;}}this._653=this._gJ;g_pBuiltIn.mouse_x=this._mJ;g_pBuiltIn.mouse_y=this._nJ;g_pBuiltIn.mouse_button=_Vg+1;g_pBuiltIn.mouse_lastbutton=_Wg+1;this._A53();}/*@this {yyIOManager} */function _A53(){var _I53=0;var _Cd=0;var w=_1D;var h=_ZC;var _N7=window_get_width();var _Fb1=window_get_height();if(w<0)w=_N7;if(h<0)h=_Fb1;for(var _B53=0;_B53<_Wi1.length;_B53++){var _J53=_Wi1[_B53];if((_J53._Og&_Qg)!=0){
_Cd=1;for(var _K53=0;_K53<_Ci1.length;_K53++){var _yi1=_Ci1[_K53];if((_yi1._Ai1&_Bi1)!=0){var x=(w*(_J53.x-_qg.left))/_N7;var y=(h*(_J53.y-_qg.top))/_Fb1;if((x>=_yi1.x)&&(x<_yi1._h7)&&(y>=_yi1.y)&&(y<_yi1._i7)){_I53|=_Cd;}}_Cd<<=1;}_J53._Og=0;}}_Cd=1;var _L53=_e43^_I53;for(var _K53=0;_K53<_Ci1.length;_K53++){var _yi1=_Ci1[_K53];if((_yi1._Ai1&_Bi1)!=0){var _Rr2=_I53&_Cd;var _9w=_L53&_Cd;if(_yi1.key!=0){this._kJ[_yi1.key]|=(_Rr2&&_9w);this._jJ[_yi1.key]|=(_Rr2&&!_9w);this._lJ[_yi1.key]|=(!_Rr2&&_9w);}else {
this._Qe[_yi1.button-1]|=(_Rr2&&_9w);this._Ve[_yi1.button-1]|=(_Rr2&&!_9w);this._Ue[_yi1.button-1]|=(!_Rr2&&_9w);}}_Cd<<=1;}_e43=_I53;}function _u53(_M53){var _hi=_Ez2|_M53;var _yk=_c4._0H._yk;var _sU=_yk.length;for(var _Dx=0;_Dx<_sU;_Dx++){var _9o=_yk[_Dx];var _By=_9o._Nx;if(_By._Hv2[_hi]){_9o._w6(_Ez2,_M53,_9o,_9o);}}}function _N53(_O53){var _hi=_Gz2|_O53;var _yk=_c4._0H._yk;var _sU=_yk.length;for(var _Dx=0;_Dx<_sU;_Dx++){var _9o=_yk[_Dx];if(_9o.marked){continue;}var _By=_9o._Nx;if(_By._Hv2[_hi]){_9o._w6(_Gz2,
_O53,_9o,_9o);}}}function _y53(_P53){var _hi=_Iz2|_P53;var _yk=_c4._0H._yk;var _sU=_yk.length;for(var _Dx=0;_Dx<_sU;_Dx++){var _9o=_yk[_Dx];var _By=_9o._Nx;if(_By._Hv2[_hi]){_9o._w6(_Iz2,_P53,_9o,_9o);}}}/*@this {yyIOManager} */function _v53(){var _Q53=0;for(var i=2;i<_oJ;i++){if(this._jJ[i]){_Q53=1;_u53(i);}}_u53(_Q53);}/*@this {yyIOManager} */function _x53(){var _R53=0;for(var i=2;i<_oJ;i++){if(this._kJ[i]){_R53=1;_N53(i);}}_N53(_R53);}/*@this {yyIOManager} */function _z53(){var _S53=0;for(var i=2;i<_oJ;i++){
if(this._lJ[i]){_S53=1;_y53(i);}}_y53(_S53);}/*@this {yyIOManager} */function _a53(){var _T53=0,_U53=0,_V53=0;this._84++;for(var i=0;i<_oJ;i++){this._kJ[i]=this._lJ[i]=this._jJ[i]=0;}for(var i=0;i<_oJ;i++){var key=this._pJ[i];this._kJ[key]|=_bJ[i];this._lJ[key]|=_dJ[i];this._jJ[key]|=_aJ[i];_T53|=_bJ[i];_U53|=_aJ[i];_V53|=_dJ[i];_bJ[i]=0;_dJ[i]=0;}this._kJ[1]=_T53;this._jJ[1]=_U53;this._lJ[1]=_V53;this._kJ[0]=_T53^1;this._jJ[0]=_U53^1;this._lJ[0]=_V53^1;_hJ=_iJ=0;if(_d43>0){_hJ=1;}else if(_d43<0){_iJ=1;
}_d43=0;for(var i=0;i<=_543;i++){this._Qe[i]=false;this._Ue[i]=false;}this._453=false;this._353=false;this._bg();var _kg;if(!_c4._lg){_kg=_mg;}else {_kg=_c4._ng;}var _og;for(var _H5=0;_H5<=7;++_H5){_og=_kg[_H5];if(_og&&_og.visible){g_pBuiltIn.mouse_x=_og._vg(_Jg._mJ,_Jg._nJ);g_pBuiltIn.mouse_y=_og._wg(_Jg._mJ,_Jg._nJ);break;}}for(var _H5=7;_H5>=0;_H5--){_og=_kg[_H5];if(_og&&_og.visible){_pg(canvas,_qg);if(((this._mJ-_qg.left)>=_og._rg)&&((this._mJ-_qg.left)<_og._sg)&&((this._nJ-_qg.top)>=_og._tg)&&((this._nJ-_qg.top)<_og._ug)){
g_pBuiltIn.mouse_x=_og._vg(_Jg._mJ,_Jg._nJ);g_pBuiltIn.mouse_y=_og._wg(_Jg._mJ,_Jg._nJ);break;}}}}function _W53(){_Jg._u53();_Jg._w53();_Jg._y53();}function _X53(index){this._Ai1=0;this.index=index;this.x=0;this.y=0;this._h7=0;this._i7=0;this.w=0;this.h=0;this._G5=0;this._H5=0;this.key=0;this.button=0;}function _zi1(){for(var _p7=0;_p7<_Ci1.length;++_p7){if(_Ci1[_p7]._Ai1==0){return _Ci1[_p7];}}var i=_Ci1.length;_Ci1[i]=new _X53(i);return _Ci1[i];}function _Di1(_Y53){_Ci1[_Y53]._Ai1=0;}function _Z53(){for(var _p7=0;
_p7<_Ci1.length;++_p7){_Ci1[_p7]._Ai1=0;}}_oI2.prototype.__53=function(){_gx();_fD();var _gD=[];_gD[0]=1;_gD[1]=0;_gD[2]=0;_gD[3]=1;_gD[4]=0;_gD[5]=0;_FW2(_gD);var _bz=draw_get_alpha();var _063=draw_get_color();draw_set_color(0xffffff);for(var _p7=0;_p7<_Fi1.length;++_p7){var _TG=_Fi1[_p7];draw_rectangle(_TG.x,_TG.y,_TG.x+_TG.w-1,_TG.y+_TG.h-1,true);}draw_set_color(_063);draw_set_alpha(_bz);_mD();};function _ek(){this._163=[];this._yk=[];this._fk=false;this.length=0;this._c9=0;}_ek.prototype._SH2=function(){
if(this._163.length==0){return this._yk.length;}return this._163.pop();};_ek.prototype._Vf=function(_wL2){var index;if(this._fk){index=this._yk.length;}else {index=this._SH2();}this._yk[index]=_wL2;this._c9++;this.length=this._yk.length;return index;};_ek.prototype._n6=function(_wP){if(_wP<0||_wP>=this._yk.length)return null;return this._yk[_wP];};_ek.prototype._5N=function(_yL2){for(var _p7=0;_p7<this._yk.length;_p7++){if(this._yk[_p7]==_yL2)return _p7;}};_ek.prototype._yL=function(_yL2){for(var _p7=0;_p7<this._yk.length;
_p7++){if(this._yk[_p7]==_yL2){if(this._fk){this._yk.splice(_p7,1);}else {this._yk[_p7]=null;this._163.push(_p7);}this._c9--;this.length=this._yk.length;return true;}}return false;};_ek.prototype._3j=function(_wP){if(_wP<0||_wP>=this._yk.length)return false;if(this._fk){this._yk.splice(_wP,1);}else {this._yk[_wP]=null;this._163.push(_wP);}this._c9--;this.length=this._yk.length;return true;};_ek.prototype._ag=function(){var _yk=this._yk;for(var i=0;i<_yk.length;i++){var _H5=_yk[i];if(_H5!=null&&_H5.Object!==undefined)switch(_H5._Bk){
case _pk:ds_map_destroy(_H5.Object);break;case _rk:ds_list_destroy(_H5.Object);break;}}this._yk=[];this._163=[];this._c9=0;this.length=this._yk.length;};_ek.prototype._uk=function(_s4,_k4){if(_s4<0||_s4>this._yk.length)return;for(var i=0;i<this._163.length;i++){if(this._163[i]>=_s4){this._163[i]++;}}this._yk.splice(_s4,0,_k4);this._c9++;this.length=this._yk.length;};_ek.prototype.Set=function(_s4,_k4){if(_s4<0||_s4>=this._yk.length)return;this._yk[_s4]=_k4;};_ek.prototype._xk=function(_s4,_k4){if(_s4<0||_s4>=this._yk.length){
_q5("ds_list_replace :: Trying to access an out-of-bounds index [| "+_s4+"]");return;}this._yk[_s4]=_k4;};_ek.prototype._sk=function(_s4,_k4){if(_s4<0){_q5("index is negative "+_s4);return _k4;}if(_s4>=this._yk.length){var _p7=this._yk.length;while(_s4>=_p7){this._Vf(0);++_p7;}}var _95=this._yk[_s4];this._yk[_s4]=_k4;return _95;};_ek.prototype._263=function(_363){if(_363){this._yk.sort(function(_05,__4){return _05-__4;});}else {this._yk.sort(function(_05,__4){return __4-_05;});}this._163=[];for(var i=0;
i<this._yk.length;i++){if(this._yk[i]==null||this._yk[i]==undefined){this._163.push(i);}}};_ek.prototype._463=function(){this._yk.sort(function(){return 0.5-Math.random();});};_ek.prototype._Dk=function(){var _563=this._yk.length,_663,_763;while(0!==_563){_763=Math.floor(Math.random()*_563);_563-=1;_663=this._yk[_563];this._yk[_563]=this._yk[_763];this._yk[_763]=_663;}};_ek.prototype.__i=function(_0j){this._yk=_0j._yk.slice();this._163=_0j._163.slice();this._fk=_0j._fk;this.length=_0j.length;this._c9=_0j._c9;
};var _863=0,_963=1,_a63=2,_b63=3,_c63=4,_d63=5;var _e63=0,_f63=1,_g63=2,_h63=3,_i63=4,_j63=5;function _k63(){this._Yb1=true;this._l63=[];for(var i=0;i<_j63;i++){this._l63[i]=_863;}this.width=0;this.height=0;this._sH=-1;this._m63=0;this._n63=0.0;this._o63=0.0;this._na=[];this.uvs=[];}_k63.prototype._JC=function(_p63,_89,_99,_94,_c5){this._l63=[];for(var i=0;i<_j63;i++){this._l63[i]=_p63[i];}this.width=_89;this.height=_99;this._sH=_94;this._m63=_c5;this._na=[];this.uvs=[];this._Yb1=false;};_k63.prototype._q63=function(_96,
_a6,_7d,_8d){var _r63=this._na.length;this._na[_r63]=_96;this._na[_r63+1]=_a6;this.uvs[_r63]=_7d;this.uvs[_r63+1]=_8d;};/*@constructor */function _Wb1(_zL2){this.__type="[NineSliceData]";this.__yyIsGMLObject=true;this.pName="nineslicedata";if((_zL2!=null)&&(_zL2!=undefined)){this.left=_zL2.nLeft;this.top=_zL2.nTop;this.right=_zL2.nRight;this.bottom=_zL2.nBottom;this.enabled=_zL2.nEnabled;this._l63=[];for(i=0;i<_j63;i++){this._l63[i]=_zL2.nTilemode[i];}}else {this.left=0;this.top=0;this.right=0;this.bottom=0;
this.enabled=false;this._l63=[];for(i=0;i<_j63;i++){this._l63[i]=_863;}}this._b9=new _k63();Object.defineProperties(this,{gmlleft:{enumerable:true,get :function(){return this.left;},set :function(_k4){this.left=yyGetInt32(_k4);this._b9._Yb1=true;}},gmltop:{enumerable:true,get :function(){return this.top;},set :function(_k4){this.top=yyGetInt32(_k4);this._b9._Yb1=true;}},gmlright:{enumerable:true,get :function(){return this.right;},set :function(_k4){this.right=yyGetInt32(_k4);this._b9._Yb1=true;}},gmlbottom:{
enumerable:true,get :function(){return this.bottom;},set :function(_k4){this.bottom=yyGetInt32(_k4);this._b9._Yb1=true;}},gmlenabled:{enumerable:true,get :function(){return this.enabled;},set :function(_k4){this.enabled=yyGetBool(_k4);this._b9._Yb1=true;}},gmltilemode:{enumerable:true,get :function(){return this._l63;},set :function(_k4){if(_k4 instanceof Array){this._l63=_k4;}else {throw new Error("value must be an array of tilemodes");}}},});}_Wb1.prototype.toString=function(){return yyGetString(this);};_Wb1.prototype._s63=function(_k4){
this.left=_k4;this._b9._Yb1=true;};_Wb1.prototype._t63=function(_k4){this.top=_k4;this._b9._Yb1=true;};_Wb1.prototype._u63=function(_k4){this.right=_k4;this._b9._Yb1=true;};_Wb1.prototype._v63=function(_k4){this.bottom=_k4;this._b9._Yb1=true;};_Wb1.prototype._fA1=function(_w63){this.enabled=_w63;this._b9._Yb1=true;};_Wb1.prototype._x63=function(_y63,_rt){this._l63[_y63]=_rt;this._b9._Yb1=true;};_Wb1.prototype._z63=function(){return this.left;};_Wb1.prototype._A63=function(){return this.top;};_Wb1.prototype._B63=function(){
return this.right;};_Wb1.prototype._C63=function(){return this.bottom;};_Wb1.prototype._a23=function(){return this.enabled;};_Wb1.prototype._D63=function(_y63){return this._l63[_y63];};_Wb1.prototype._E63=function(_89,_99,_c5,_94){if(!_09)return;var _Px=_94;if(_Px==null){return;}this._b9._JC(this._l63,_89,_99,_94,_c5);var i;var _4s2=[];var _us2=[];var XOffset=0.0;var YOffset=0.0;var CropWidth=_Px.width;var CropHeight=_Px.height;var _F63=0;var _G63=0;var _Zc=_Px._l5[_c5];var _s9=_Zc.texture;if(!_s9.complete)return;
XOffset=_Zc.XOffset;YOffset=_Zc.YOffset;CropWidth=_Zc.CropWidth;CropHeight=_Zc.CropHeight;_F63=_Zc.x;_G63=_Zc.y;var _H63=CropWidth/_Zc.w;var _I63=CropHeight/_Zc.h;var _J63=this.left;var _K63=(_Px.width-this.right)-this.left;var _L63=this.right;var _M63=this.top;var _N63=(_Px.height-this.bottom)-this.top;var _O63=this.bottom;var _P63=(_89<0)?1:0;var _Q63=(_99<0)?1:0;var _R63=(_P63^_Q63)?true:false;var _S63=1.0;var _T63=1.0;if(_P63){_89=-_89;_S63=-1.0;}if(_Q63){_99=-_99;_T63=-1.0;}var _U63=(_89-_J63-_L63)/_K63;
var _V63=(_99-_M63-_O63)/_N63;if(_89<_J63){_J63=_89;_L63=0.0;_U63=0.0;}else if(_89<(_J63+_L63)){_L63=(_89-_J63);_U63=0.0;}if(_99<_M63){_M63=_99;_O63=0.0;_V63=0.0;}else if(_99<(_M63+_O63)){_O63=(_99-_M63);_V63=0.0;}var _Qr=[];var _Rr=[];_Qr[0]=0.0;_Qr[1]=_J63;_Qr[2]=_Qr[1]+_K63;_Qr[3]=_Qr[2]+_L63;_Rr[0]=0.0;_Rr[1]=_M63;_Rr[2]=_Rr[1]+_N63;_Rr[3]=_Rr[2]+_O63;for(i=0;i<4;i++){_4s2[i]=_Qr[i];_us2[i]=_Rr[i];}var xorigin=_Px.xOrigin;var yorigin=_Px.yOrigin;this._b9._n63=xorigin*(_89/_Px.width);this._b9._o63=yorigin*(_99/_Px.height);
this._b9._n63*=_S63;this._b9._o63*=_T63;var _ho=_Qr[3]-_Qr[2];_Qr[2]=_Qr[1]+((_Qr[2]-_Qr[1])*_U63);_Qr[3]=_Qr[2]+_ho;_ho=_Rr[3]-_Rr[2];_Rr[2]=_Rr[1]+((_Rr[2]-_Rr[1])*_V63);_Rr[3]=_Rr[2]+_ho;var _W63=[];_W63[0]=_863;_W63[1]=this._l63[_f63];_W63[2]=_863;_W63[3]=this._l63[_e63];_W63[4]=this._l63[_i63];_W63[5]=this._l63[_g63];_W63[6]=_863;_W63[7]=this._l63[_h63];_W63[8]=_863;var x,y;var _X63=[];var _Y63=[];var _Z63=[];var __63=[];for(y=0;y<3;y++){for(x=0;x<3;x++){var index=(y*3)+x;if(_W63[index]==_c63)continue;
_X63[0]=_Qr[x];_X63[1]=_Qr[x+1];_Y63[0]=_Rr[y];_Y63[1]=_Rr[y+1];_Z63[0]=_4s2[x];_Z63[1]=_4s2[x+1];__63[0]=_us2[y];__63[1]=_us2[y+1];if(_Z63[1]<=_Z63[0])continue;if(__63[1]<=__63[0])continue;if(XOffset>_Z63[1])continue;if(YOffset>__63[1])continue;if(_W63[index]==_863){if(XOffset>_Z63[0]){var _073=(XOffset-_Z63[0])/(_Z63[1]-_Z63[0]);_X63[0]=_X63[0]+((_X63[1]-_X63[0])*_073);if(_X63[0]>=_X63[1])continue;_Z63[0]=XOffset;}if(YOffset>__63[0]){var _ho=YOffset-__63[0];var _073=(YOffset-__63[0])/(__63[1]-__63[0]);
_Y63[0]=_Y63[0]+((_Y63[1]-_Y63[0])*_073);if(_Y63[0]>=_Y63[1])continue;__63[0]=YOffset;}_Z63[0]-=XOffset;_Z63[1]-=XOffset;__63[0]-=YOffset;__63[1]-=YOffset;if(_Z63[0]>CropWidth)continue;if(__63[0]>CropHeight)continue;if(_Z63[1]>CropWidth){var _073=(CropWidth-_Z63[0])/(_Z63[1]-_Z63[0]);_X63[1]=_X63[0]+((_X63[1]-_X63[0])*_073);if(_X63[0]>=_X63[1])continue;_Z63[1]=CropWidth;}if(__63[1]>CropHeight){var _073=(CropHeight-__63[0])/(__63[1]-__63[0]);_Y63[1]=_Y63[0]+((_Y63[1]-_Y63[0])*_073);if(_Y63[0]>=_Y63[1])continue;
__63[1]=CropHeight;}for(i=0;i<2;i++){_Z63[i]+=_F63*_H63;__63[i]+=_G63*_I63;_Z63[i]/=_s9.width*_H63;__63[i]/=_s9.height*_I63;}var _173=[];var _273=[];_173[0]=_173[2]=(_X63[0]*_S63);_173[1]=_173[3]=(_X63[1]*_S63);_273[0]=_273[1]=(_Y63[0]*_T63);_273[2]=_273[3]=(_Y63[1]*_T63);var _373=[0,1,2,2,1,3];var _473=[0,0,1,0,0,1,0,1,1,0,1,1];if(_R63){for(i=5;i>=0;i--){this._b9._q63(_173[_373[i]],_273[_373[i]],_Z63[_473[i*2]],__63[_473[i*2+1]]);}}else {for(i=0;i<6;i++){this._b9._q63(_173[_373[i]],_273[_373[i]],_Z63[_473[i*2]],
__63[_473[i*2+1]]);}}}else {var _573=1;var _673=1;if((_W63[index]==_963)||(_W63[index]==_a63))_573=Math.ceil((_X63[1]-_X63[0])/(_Z63[1]-_Z63[0]));if((_W63[index]==_963)||(_W63[index]==_a63))_673=Math.ceil((_Y63[1]-_Y63[0])/(__63[1]-__63[0]));var _773,_873;if(_W63[index]==_863)_773=_X63[1]-_X63[0];else _773=_Z63[1]-_Z63[0];if(_W63[index]==_863)_873=_Y63[1]-_Y63[0];else _873=__63[1]-__63[0];var _973=[];var _a73=[];var _b73=[];var _c73=[];_973[0]=0.0;_973[1]=_773;_a73[0]=0.0;_a73[1]=_873;_b73[0]=_Z63[0];_b73[1]=_Z63[1];
_c73[0]=__63[0];_c73[1]=__63[1];if(XOffset>_b73[0]){var _073=(XOffset-_b73[0])/(_b73[1]-_b73[0]);_973[0]=_973[0]+((_973[1]-_973[0])*_073);if(_973[0]>=_973[1])continue;_b73[0]=XOffset;}if(YOffset>_c73[0]){var _073=(YOffset-_c73[0])/(_c73[1]-_c73[0]);_a73[0]=_a73[0]+((_a73[1]-_a73[0])*_073);if(_a73[0]>=_a73[1])continue;_c73[0]=YOffset;}_b73[0]-=XOffset;_b73[1]-=XOffset;_c73[0]-=YOffset;_c73[1]-=YOffset;if(_b73[0]>CropWidth)continue;if(_c73[0]>CropHeight)continue;if(_b73[1]>CropWidth){var _073=(CropWidth-_b73[0])/(_b73[1]-_b73[0]);
_973[1]=_973[0]+((_973[1]-_973[0])*_073);if(_973[0]>=_973[1])continue;_b73[1]=CropWidth;}if(_c73[1]>CropHeight){var _073=(CropHeight-_c73[0])/(_c73[1]-_c73[0]);_a73[1]=_a73[0]+((_a73[1]-_a73[0])*_073);if(_a73[0]>=_a73[1])continue;_c73[1]=CropHeight;}var _d73;for(_d73=0;_d73<_673;_d73++){var _Kz=_Y63[0]+(_873*_d73);var _Gg2=[];var _e73=[];if((_W63[index]==_a63)&&(_d73&1)){_Gg2[0]=_873-_a73[1];_Gg2[1]=_873-_a73[0];_e73[0]=_c73[1];_e73[1]=_c73[0];}else {_Gg2[0]=_a73[0];_Gg2[1]=_a73[1];_e73[0]=_c73[0];_e73[1]=_c73[1];
}_Gg2[0]+=_Kz;_Gg2[1]+=_Kz;if(_Gg2[1]>_Y63[1]){var _073=(_Y63[1]-_Gg2[0])/(_Gg2[1]-_Gg2[0]);_e73[1]=_e73[0]+((_e73[1]-_e73[0])*_073);_Gg2[1]=_Y63[1];}for(i=0;i<2;i++){_e73[i]+=_G63*_I63;_e73[i]/=_s9.height*_I63;}var _f73;for(_f73=0;_f73<_573;_f73++){var _Gi=_X63[0]+(_773*_f73);var _Fg2=[];var _g73=[];if((_W63[index]==_a63)&&(_f73&1)){_Fg2[0]=_773-_973[1];_Fg2[1]=_773-_973[0];_g73[0]=_b73[1];_g73[1]=_b73[0];}else {_Fg2[0]=_973[0];_Fg2[1]=_973[1];_g73[0]=_b73[0];_g73[1]=_b73[1];}_Fg2[0]+=_Gi;_Fg2[1]+=_Gi;
if(_Fg2[1]>_X63[1]){var _073=(_X63[1]-_Fg2[0])/(_Fg2[1]-_Fg2[0]);_g73[1]=_g73[0]+((_g73[1]-_g73[0])*_073);_Fg2[1]=_X63[1];}for(i=0;i<2;i++){_g73[i]+=_F63*_H63;_g73[i]/=_s9.width*_H63;}var _173=[];var _273=[];_173[0]=_173[2]=(_Fg2[0]*_S63);_173[1]=_173[3]=(_Fg2[1]*_S63);_273[0]=_273[1]=(_Gg2[0]*_T63);_273[2]=_273[3]=(_Gg2[1]*_T63);var _373=[0,1,2,2,1,3];var _473=[0,0,1,0,0,1,0,1,1,0,1,1];if(_R63){for(i=5;i>=0;i--){this._b9._q63(_173[_373[i]],_273[_373[i]],_g73[_473[i*2]],_e73[_473[i*2+1]]);}}else {for(i=0;
i<6;i++){this._b9._q63(_173[_373[i]],_273[_373[i]],_g73[_473[i*2]],_e73[_473[i*2+1]]);}}}}}}}};_Wb1.prototype._h73=function(_96,_a6,_h5,_5d,_ga,_94,_i73){if(!_09)return;var _Zc=_94._l5[this._b9._m63];var _s9=_Zc.texture;if(!_s9.complete)return;if(_09)if(!_s9._z9)_y9(_Zc);var i;_5d&=0xffffff;var _05=(_ga*255.0)<<24;var _Xd=_05|_5d;var _j73=~~(_0d/3);var _k73=(this._b9._na.length/2)/3;var _l73=this._b9._na;var _m73=this._b9.uvs;var _n73=0;if(_h5==0.0){var _o73=_96;var _p73=_a6;if(!_i73){_o73-=this._b9._n63;_p73-=this._b9._o63;
}while(_k73>0){var _q73=(_k73<_j73)?_k73:_j73;_k73-=_q73;var _r73=_09._pb(_Wa._qb,_s9._z9,_09._rb,_q73*3);var _sb=_r73._tb()>>2;var bindex=_sb*_r73._ub;_r73._ub+=_q73*3;var _vb=_r73._wb;var _xb=_r73._yb;var _zb=_r73._Ab;for(;_q73>0;_q73--){_vb[bindex+0]=_l73[_n73]+_o73;_vb[bindex+1]=_l73[_n73+1]+_p73;_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_m73[_n73];_zb[bindex+1]=_m73[_n73+1];bindex+=_sb;_n73+=2;_vb[bindex+0]=_l73[_n73]+_o73;_vb[bindex+1]=_l73[_n73+1]+_p73;_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_m73[_n73];
_zb[bindex+1]=_m73[_n73+1];bindex+=_sb;_n73+=2;_vb[bindex+0]=_l73[_n73]+_o73;_vb[bindex+1]=_l73[_n73+1]+_p73;_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_m73[_n73];_zb[bindex+1]=_m73[_n73+1];bindex+=_sb;_n73+=2;}}}else {var _s73=new _qr();var _t73=new _qr();var _u73=new _qr();_s73._fs();_t73._fs();if(_i73){_s73._PW(_h5);}else {_s73._RW(-this._b9._n63,-this._b9._o63,0.0);_t73._PW(_h5);_u73.Multiply(_s73,_t73);_s73=new _qr(_u73);}_t73._fs();_t73._RW(_96,_a6,0.0);_u73.Multiply(_s73,_t73);_s73=_u73;while(_k73>0){
var _q73=(_k73<_j73)?_k73:_j73;_k73-=_q73;var _r73=_09._pb(_Wa._qb,_s9._z9,_09._rb,_q73*3);var _sb=_r73._tb()>>2;var bindex=_sb*_r73._ub;_r73._ub+=_q73*3;var _vb=_r73._wb;var _xb=_r73._yb;var _zb=_r73._Ab;for(;_q73>0;_q73--){for(i=0;i<3;i++){var _v73=_l73[_n73];var _w73=_l73[_n73+1];_vb[bindex+0]=(_s73._e7[_Ns]*_v73)+(_s73._e7[_Os]*_w73)+_s73._e7[_Qs];_vb[bindex+1]=(_s73._e7[_Rs]*_v73)+(_s73._e7[_gs]*_w73)+_s73._e7[_Ts];_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_m73[_n73];_zb[bindex+1]=_m73[_n73+1];
bindex+=_sb;_n73+=2;}}}}};_Wb1.prototype._x73=function(_96,_a6,_89,_99,_h5,_5d,_ga,_c5,_94,_i73){if(_09){var _y73=false;for(var i=0;i<_j63;i++){if(this._b9._l63[i]!=this._l63[i]){_y73=true;break;}}if((this._b9._Yb1)||(this._b9.width!=_89)||(this._b9.height!=_99)||(_y73==true)||(this._b9._sH!=_94)||(this._b9._m63!=_c5)){this._E63(_89,_99,_c5,_94);}this._h73(_96,_a6,_h5,_5d,_ga,_94,_i73);return;}var i;var _4s2=[];var _us2=[];var XOffset=0.0;var YOffset=0.0;var CropWidth=_94.width;var CropHeight=_94.height;
var _F63=0;var _G63=0;var _Zc=_94._l5[_c5];var _s9=_Zc.texture;if(!_s9.complete)return;if(_09)if(!_s9._z9)_y9({texture:_s9});XOffset=_Zc.XOffset;YOffset=_Zc.YOffset;CropWidth=_Zc.CropWidth;CropHeight=_Zc.CropHeight;_F63=_Zc.x;_G63=_Zc.y;var _J63=this.left;var _K63=(_94.width-this.right)-this.left;var _L63=this.right;var _M63=this.top;var _N63=(_94.height-this.bottom)-this.top;var _O63=this.bottom;var _P63=(_89<0)?1:0;var _Q63=(_99<0)?1:0;var _R63=(_P63^_Q63)?true:false;var _S63=1.0;var _T63=1.0;if(_P63){_89=-_89;
if(_09){_S63=-1.0;}}if(_Q63){_99=-_99;if(_09){_T63=-1.0;}}var _U63=(_89-_J63-_L63)/_K63;var _V63=(_99-_M63-_O63)/_N63;if(_89<_J63){_J63=_89;_L63=0.0;_U63=0.0;}else if(_89<(_J63+_L63)){_L63=(_89-_J63);_U63=0.0;}if(_99<_M63){_M63=_99;_O63=0.0;_V63=0.0;}else if(_99<(_M63+_O63)){_O63=(_99-_M63);_V63=0.0;}var _Qr=[];var _Rr=[];_Qr[0]=0.0;_Qr[1]=_J63;_Qr[2]=_Qr[1]+_K63;_Qr[3]=_Qr[2]+_L63;_Rr[0]=0.0;_Rr[1]=_M63;_Rr[2]=_Rr[1]+_N63;_Rr[3]=_Rr[2]+_O63;for(i=0;i<4;i++){_4s2[i]=_Qr[i];_us2[i]=_Rr[i];}var xorigin=_94.xOrigin;
var yorigin=_94.yOrigin;var _n63;var _o63;_n63=xorigin*(_89/_94.width);_o63=yorigin*(_99/_94.height);_n63*=_S63;_o63*=_T63;var _ho=_Qr[3]-_Qr[2];_Qr[2]=_Qr[1]+((_Qr[2]-_Qr[1])*_U63);_Qr[3]=_Qr[2]+_ho;_ho=_Rr[3]-_Rr[2];_Rr[2]=_Rr[1]+((_Rr[2]-_Rr[1])*_V63);_Rr[3]=_Rr[2]+_ho;var _W63=[];_W63[0]=_863;_W63[1]=this._l63[_f63];_W63[2]=_863;_W63[3]=this._l63[_e63];_W63[4]=this._l63[_i63];_W63[5]=this._l63[_g63];_W63[6]=_863;_W63[7]=this._l63[_h63];_W63[8]=_863;var _s73=undefined;if((_h5!=0.0)||(!_09&&(_P63||_Q63))){
_s73=new _qr();var _t73=new _qr();var _u73=new _qr();_s73._fs();_t73._fs();_s73._RW(-_n63,-_o63,0.0);_t73._PW(_h5);_u73.Multiply(_s73,_t73);_s73=new _qr(_u73);_t73._fs();_t73._RW(_96,_a6,0.0);_u73.Multiply(_s73,_t73);if(_09||(!_P63&&!_Q63))_s73=_u73;else {_t73._jK2(_P63?-1.0:1.0,_Q63?-1.0:1.0,1.0);_s73.Multiply(_t73,_u73);}}else {_s73=new _qr();_s73._RW(-_n63+_96,-_o63+_a6,0.0);}_5d&=0xffffff;var _05=(_ga*255.0)<<24;var _Xd=_05|_5d;var _tW2=undefined;if(!_09){_VY2(_s73);_Oa.globalAlpha=_ga;if(_5d!=_xa){_tW2=_ya(_Zc,
_5d);}}var x,y;var _X63=[];var _Y63=[];var _Z63=[];var __63=[];for(y=0;y<3;y++){for(x=0;x<3;x++){var index=(y*3)+x;if(_W63[index]==_c63)continue;_X63[0]=_Qr[x];_X63[1]=_Qr[x+1];_Y63[0]=_Rr[y];_Y63[1]=_Rr[y+1];_Z63[0]=_4s2[x];_Z63[1]=_4s2[x+1];__63[0]=_us2[y];__63[1]=_us2[y+1];if(_Z63[1]<=_Z63[0])continue;if(__63[1]<=__63[0])continue;if(XOffset>_Z63[1])continue;if(YOffset>__63[1])continue;if(_W63[index]==_863){if(XOffset>_Z63[0]){var _073=(XOffset-_Z63[0])/(_Z63[1]-_Z63[0]);_X63[0]=_X63[0]+((_X63[1]-_X63[0])*_073);
if(_X63[0]>=_X63[1])continue;_Z63[0]=XOffset;}if(YOffset>__63[0]){var _ho=YOffset-__63[0];var _073=(YOffset-__63[0])/(__63[1]-__63[0]);_Y63[0]=_Y63[0]+((_Y63[1]-_Y63[0])*_073);if(_Y63[0]>=_Y63[1])continue;__63[0]=YOffset;}_Z63[0]-=XOffset;_Z63[1]-=XOffset;__63[0]-=YOffset;__63[1]-=YOffset;if(_Z63[0]>CropWidth)continue;if(__63[0]>CropHeight)continue;if(_Z63[1]>CropWidth){var _073=(CropWidth-_Z63[0])/(_Z63[1]-_Z63[0]);_X63[1]=_X63[0]+((_X63[1]-_X63[0])*_073);if(_X63[0]>=_X63[1])continue;_Z63[1]=CropWidth;
}if(__63[1]>CropHeight){var _073=(CropHeight-__63[0])/(__63[1]-__63[0]);_Y63[1]=_Y63[0]+((_Y63[1]-_Y63[0])*_073);if(_Y63[0]>=_Y63[1])continue;__63[1]=CropHeight;}for(i=0;i<2;i++){_Z63[i]+=_F63;__63[i]+=_G63;}var _173=[];var _273=[];_173[0]=_173[2]=(_X63[0]*_S63);_173[1]=_173[3]=(_X63[1]*_S63);_273[0]=_273[1]=(_Y63[0]*_T63);_273[2]=_273[3]=(_Y63[1]*_T63);if(_09){for(i=0;i<4;i++){_Z63[i]/=_s9.width;__63[i]/=_s9.height;}for(i=0;i<4;i++){var _v73,_w73;_v73=(_s73._e7[_Ns]*_173[i])+(_s73._e7[_Os]*_273[i])+_s73._e7[_Qs];
_w73=(_s73._e7[_Rs]*_173[i])+(_s73._e7[_gs]*_273[i])+_s73._e7[_Ts];_173[i]=_v73;_273[i]=_w73;}var _r73=_09._pb(_Wa._qb,_s9._z9,_09._rb,6);var _sb=_r73._tb()>>2;var bindex=_sb*_r73._ub;_r73._ub+=6;var _vb=_r73._wb;var _xb=_r73._yb;var _zb=_r73._Ab;var _373=[0,1,2,2,1,3];var _473=[0,0,1,0,0,1,0,1,1,0,1,1];if(_R63){for(i=5;i>=0;i--){_vb[bindex+0]=_173[_373[i]];_vb[bindex+1]=_273[_373[i]];_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_Z63[_473[i*2]];_zb[bindex+1]=__63[_473[i*2+1]];bindex+=_sb;}}else {for(i=0;
i<6;i++){_vb[bindex+0]=_173[_373[i]];_vb[bindex+1]=_273[_373[i]];_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_Z63[_473[i*2]];_zb[bindex+1]=__63[_473[i*2+1]];bindex+=_sb;}}}else {if(_tW2!=undefined){_Oa._Za1(_tW2,_Z63[0]-_F63,__63[0]-_G63,_Z63[1]-_Z63[0],__63[1]-__63[0],_173[0],_273[0],_173[1]-_173[0],_273[2]-_273[0]);}else {_Oa._Za1(_s9,_Z63[0],__63[0],_Z63[1]-_Z63[0],__63[1]-__63[0],_173[0],_273[0],_173[1]-_173[0],_273[2]-_273[0]);}}}else {var _573=1;var _673=1;if((_W63[index]==_963)||(_W63[index]==_a63))_573=Math.ceil((_X63[1]-_X63[0])/(_Z63[1]-_Z63[0]));
if((_W63[index]==_963)||(_W63[index]==_a63))_673=Math.ceil((_Y63[1]-_Y63[0])/(__63[1]-__63[0]));var _773,_873;if(_W63[index]==_863)_773=_X63[1]-_X63[0];else _773=_Z63[1]-_Z63[0];if(_W63[index]==_863)_873=_Y63[1]-_Y63[0];else _873=__63[1]-__63[0];var _973=[];var _a73=[];var _b73=[];var _c73=[];_973[0]=0.0;_973[1]=_773;_a73[0]=0.0;_a73[1]=_873;_b73[0]=_Z63[0];_b73[1]=_Z63[1];_c73[0]=__63[0];_c73[1]=__63[1];if(XOffset>_b73[0]){var _073=(XOffset-_b73[0])/(_b73[1]-_b73[0]);_973[0]=_973[0]+((_973[1]-_973[0])*_073);
if(_973[0]>=_973[1])continue;_b73[0]=XOffset;}if(YOffset>_c73[0]){var _073=(YOffset-_c73[0])/(_c73[1]-_c73[0]);_a73[0]=_a73[0]+((_a73[1]-_a73[0])*_073);if(_a73[0]>=_a73[1])continue;_c73[0]=YOffset;}_b73[0]-=XOffset;_b73[1]-=XOffset;_c73[0]-=YOffset;_c73[1]-=YOffset;if(_b73[0]>CropWidth)continue;if(_c73[0]>CropHeight)continue;if(_b73[1]>CropWidth){var _073=(CropWidth-_b73[0])/(_b73[1]-_b73[0]);_973[1]=_973[0]+((_973[1]-_973[0])*_073);if(_973[0]>=_973[1])continue;_b73[1]=CropWidth;}if(_c73[1]>CropHeight){
var _073=(CropHeight-_c73[0])/(_c73[1]-_c73[0]);_a73[1]=_a73[0]+((_a73[1]-_a73[0])*_073);if(_a73[0]>=_a73[1])continue;_c73[1]=CropHeight;}var _d73;for(_d73=0;_d73<_673;_d73++){var _Kz=_Y63[0]+(_873*_d73);var _Gg2=[];var _e73=[];var _z73=false;if((_W63[index]==_a63)&&(_d73&1)){_Gg2[0]=_873-_a73[1];_Gg2[1]=_873-_a73[0];_e73[0]=_c73[1];_e73[1]=_c73[0];_z73=true;}else {_Gg2[0]=_a73[0];_Gg2[1]=_a73[1];_e73[0]=_c73[0];_e73[1]=_c73[1];}_Gg2[0]+=_Kz;_Gg2[1]+=_Kz;if(_Gg2[1]>_Y63[1]){var _073=(_Y63[1]-_Gg2[0])/(_Gg2[1]-_Gg2[0]);
_e73[1]=_e73[0]+((_e73[1]-_e73[0])*_073);_Gg2[1]=_Y63[1];}for(i=0;i<2;i++){_e73[i]+=_G63;if(_09){_e73[i]/=_s9.height;}}var _f73;for(_f73=0;_f73<_573;_f73++){var _Gi=_X63[0]+(_773*_f73);var _Fg2=[];var _g73=[];var _A73=false;if((_W63[index]==_a63)&&(_f73&1)){_Fg2[0]=_773-_973[1];_Fg2[1]=_773-_973[0];_g73[0]=_b73[1];_g73[1]=_b73[0];_A73=true;}else {_Fg2[0]=_973[0];_Fg2[1]=_973[1];_g73[0]=_b73[0];_g73[1]=_b73[1];}_Fg2[0]+=_Gi;_Fg2[1]+=_Gi;if(_Fg2[1]>_X63[1]){var _073=(_X63[1]-_Fg2[0])/(_Fg2[1]-_Fg2[0]);_g73[1]=_g73[0]+((_g73[1]-_g73[0])*_073);
_Fg2[1]=_X63[1];}for(i=0;i<2;i++){_g73[i]+=_F63;if(_09){_g73[i]/=_s9.width;}}var _173=[];var _273=[];_173[0]=_173[2]=(_Fg2[0]*_S63);_173[1]=_173[3]=(_Fg2[1]*_S63);_273[0]=_273[1]=(_Gg2[0]*_T63);_273[2]=_273[3]=(_Gg2[1]*_T63);if(_09){for(i=0;i<4;i++){var _v73,_w73;_v73=(_s73._e7[_Ns]*_173[i])+(_s73._e7[_Os]*_273[i])+_s73._e7[_Qs];_w73=(_s73._e7[_Rs]*_173[i])+(_s73._e7[_gs]*_273[i])+_s73._e7[_Ts];_173[i]=_v73;_273[i]=_w73;}var _r73=_09._pb(_Wa._qb,_s9._z9,_09._rb,6);var _sb=_r73._tb()>>2;var bindex=_sb*_r73._ub;
_r73._ub+=6;var _vb=_r73._wb;var _xb=_r73._yb;var _zb=_r73._Ab;var _373=[0,1,2,2,1,3];var _473=[0,0,1,0,0,1,0,1,1,0,1,1];if(_R63){for(i=5;i>=0;i--){_vb[bindex+0]=_173[_373[i]];_vb[bindex+1]=_273[_373[i]];_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_g73[_473[i*2]];_zb[bindex+1]=_e73[_473[i*2+1]];bindex+=_sb;}}else {for(i=0;i<6;i++){_vb[bindex+0]=_173[_373[i]];_vb[bindex+1]=_273[_373[i]];_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_g73[_473[i*2]];_zb[bindex+1]=_e73[_473[i*2+1]];bindex+=_sb;}}}else {
if(_A73||_z73){_Oa._5Z2(_A73?-1.0:1.0,0.0,0.0,_z73?-1.0:1.0,_A73?_173[1]:_173[0],_z73?_273[2]:_273[0]);if(_tW2!=undefined){_Oa._Za1(_tW2,_g73[0]-_F63,_e73[0]-_G63,_g73[1]-_g73[0],_e73[1]-_e73[0],0.0,0.0,_173[1]-_173[0],_273[2]-_273[0]);}else {_Oa._Za1(_s9,_g73[0],_e73[0],_g73[1]-_g73[0],_e73[1]-_e73[0],0.0,0.0,_173[1]-_173[0],_273[2]-_273[0]);}_FW2();_VY2(_s73);}else {if(_tW2!=undefined){_Oa._Za1(_tW2,_g73[0]-_F63,_e73[0]-_G63,_g73[1]-_g73[0],_e73[1]-_e73[0],_173[0],_273[0],_173[1]-_173[0],_273[2]-_273[0]);
}else {_Oa._Za1(_s9,_g73[0],_e73[0],_g73[1]-_g73[0],_e73[1]-_e73[0],_173[0],_273[0],_173[1]-_173[0],_273[2]-_273[0]);}}}}}}}}if(!_09){_FW2();}};_Wb1.prototype._O9=function(_96,_a6,_89,_99,_h5,_5d,_ga,_c5,_94,_i73){if(_i73==undefined)_i73=false;var _Px=_94;if(_Px!=null){if(_Px._n7<=0)return;_c5=(~~_c5)%_Px._n7;if(_c5<0)_c5=_c5+_Px._n7;_5d=_6d(_5d);var i;var _B73=0;var _C73=false;for(i=0;i<_j63;i++){_B73|=this._l63[i];}if((_B73!=_863)){this._x73(_96,_a6,_89,_99,_h5,_5d,_ga,_c5,_Px,_i73);return;}var _4s2=[];
var _us2=[];var XOffset=0.0;var YOffset=0.0;var CropWidth=_Px.width;var CropHeight=_Px.height;var _F63=0;var _G63=0;var _Zc=_Px._l5[_c5];var _s9=_Zc.texture;if(!_s9.complete)return;if(_09)if(!_s9._z9)_y9(_Zc);XOffset=_Zc.XOffset;YOffset=_Zc.YOffset;CropWidth=_Zc.CropWidth;CropHeight=_Zc.CropHeight;_F63=_Zc.x;_G63=_Zc.y;var _H63=CropWidth/_Zc.w;var _I63=CropHeight/_Zc.h;var _J63=this.left;var _K63=(_Px.width-this.right)-this.left;var _L63=this.right;var _M63=this.top;var _N63=(_Px.height-this.bottom)-this.top;var _O63=this.bottom;
var _P63=(_89<0)?1:0;var _Q63=(_99<0)?1:0;var _R63=(_P63^_Q63)?true:false;var _S63=1.0;var _T63=1.0;if(_P63){_89=-_89;if(_09){_S63=-1.0;}}if(_Q63){_99=-_99;if(_09){_T63=-1.0;}}var _U63=(_89-_J63-_L63)/_K63;var _V63=(_99-_M63-_O63)/_N63;if(_89<_J63){_J63=_89;_L63=0.0;_U63=0.0;}else if(_89<(_J63+_L63)){_L63=(_89-_J63);_U63=0.0;}if(_99<_M63){_M63=_99;_O63=0.0;_V63=0.0;}else if(_99<(_M63+_O63)){_O63=(_99-_M63);_V63=0.0;}var _Qr=[];var _Rr=[];_Qr[0]=0.0;_Qr[1]=_J63;_Qr[2]=_Qr[1]+_K63;_Qr[3]=_Qr[2]+_L63;_Rr[0]=0.0;
_Rr[1]=_M63;_Rr[2]=_Rr[1]+_N63;_Rr[3]=_Rr[2]+_O63;var _n63;var _o63;var xorigin;var yorigin;if(_i73){xorigin=0;yorigin=0;}else {xorigin=_Px.xOrigin;yorigin=_Px.yOrigin;}_n63=xorigin*(_89/_Px.width);_o63=yorigin*(_99/_Px.height);_n63*=_S63;_o63*=_T63;if(XOffset>0){for(i=0;i<4;i++){if(_Qr[i]<XOffset){_Qr[i]=XOffset;}}}if(YOffset>0){for(i=0;i<4;i++){if(_Rr[i]<YOffset){_Rr[i]=YOffset;}}}if(_Px.width>(XOffset+CropWidth)){var _D73=XOffset+CropWidth;for(i=0;i<4;i++){if(_Qr[i]>_D73){_Qr[i]=_D73;}}}if(_Px.height>(YOffset+CropHeight)){
var _D73=YOffset+CropHeight;for(i=0;i<4;i++){if(_Rr[i]>_D73){_Rr[i]=_D73;}}}for(i=0;i<4;i++){_4s2[i]=_Qr[i]-XOffset;_us2[i]=_Rr[i]-YOffset;_4s2[i]+=_F63*_H63;_us2[i]+=_G63*_I63;}var _ho=_Qr[3]-_Qr[2];_Qr[2]=_Qr[1]+((_Qr[2]-_Qr[1])*_U63);_Qr[3]=_Qr[2]+_ho;_ho=_Rr[3]-_Rr[2];_Rr[2]=_Rr[1]+((_Rr[2]-_Rr[1])*_V63);_Rr[3]=_Rr[2]+_ho;var _173=[];var _273=[];_173[0]=_173[4]=_173[8]=_173[12]=(_Qr[0]*_S63);_173[1]=_173[5]=_173[9]=_173[13]=(_Qr[1]*_S63);_173[2]=_173[6]=_173[10]=_173[14]=(_Qr[2]*_S63);_173[3]=_173[7]=_173[11]=_173[15]=(_Qr[3]*_S63);
_273[0]=_273[1]=_273[2]=_273[3]=(_Rr[0]*_T63);_273[4]=_273[5]=_273[6]=_273[7]=(_Rr[1]*_T63);_273[8]=_273[9]=_273[10]=_273[11]=(_Rr[2]*_T63);_273[12]=_273[13]=_273[14]=_273[15]=(_Rr[3]*_T63);var _s73=undefined;if((_h5!=0.0)||(!_09&&(_P63||_Q63))){_s73=new _qr();var _t73=new _qr();var _u73=new _qr();_s73._fs();_t73._fs();_s73._RW(-_n63,-_o63,0.0);_t73._PW(_h5);_u73.Multiply(_s73,_t73);_s73=new _qr(_u73);_t73._fs();_t73._RW(_96,_a6,0.0);_u73.Multiply(_s73,_t73);if(_09||(!_P63&&!_Q63))_s73=_u73;else {_t73._jK2(_P63?-1.0:1.0,
_Q63?-1.0:1.0,1.0);_s73.Multiply(_t73,_u73);}}else {var _o73=-_n63+_96;var _p73=-_o63+_a6;for(i=0;i<16;i++){var _v73,_w73;_v73=_173[i]+_o73;_w73=_273[i]+_p73;_173[i]=_v73;_273[i]=_w73;}}if(_09){for(i=0;i<4;i++){_4s2[i]/=_s9.width*_H63;_us2[i]/=_s9.height*_I63;}if(_h5!=0.0){for(i=0;i<16;i++){var _v73,_w73;_v73=(_s73._e7[_Ns]*_173[i])+(_s73._e7[_Os]*_273[i])+_s73._e7[_Qs];_w73=(_s73._e7[_Rs]*_173[i])+(_s73._e7[_gs]*_273[i])+_s73._e7[_Ts];_173[i]=_v73;_273[i]=_w73;}}var _r73=_09._pb(_Wa._qb,_s9._z9,_09._rb,
54);var _sb=_r73._tb()>>2;var bindex=_sb*_r73._ub;_r73._ub+=54;var _vb=_r73._wb;var _xb=_r73._yb;var _zb=_r73._Ab;var _05=(_ga*255.0)<<24;var _Xd=_05|(_5d&0xffffff);var _373=[0,1,4,4,1,5,1,2,5,5,2,6,2,3,6,6,3,7,4,5,8,8,5,9,5,6,9,9,6,10,6,7,10,10,7,11,8,9,12,12,9,13,9,10,13,13,10,14,10,11,14,14,11,15];var _473=[0,0,1,0,0,1,0,1,1,0,1,1,1,0,2,0,1,1,1,1,2,0,2,1,2,0,3,0,2,1,2,1,3,0,3,1,0,1,1,1,0,2,0,2,1,1,1,2,1,1,2,1,1,2,1,2,2,1,2,2,2,1,3,1,2,2,2,2,3,1,3,2,0,2,1,2,0,3,0,3,1,2,1,3,1,2,2,2,1,3,1,3,2,2,2,3,2,2,3,
2,2,3,2,3,3,2,3,3,];if(_R63){for(i=53;i>=0;i--){_vb[bindex+0]=_173[_373[i]];_vb[bindex+1]=_273[_373[i]];_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_4s2[_473[i*2]];_zb[bindex+1]=_us2[_473[i*2+1]];bindex+=_sb;}}else {for(i=0;i<54;i++){_vb[bindex+0]=_173[_373[i]];_vb[bindex+1]=_273[_373[i]];_vb[bindex+2]=_Fb;_xb[bindex]=_Xd;_zb[bindex+0]=_4s2[_473[i*2]];_zb[bindex+1]=_us2[_473[i*2+1]];bindex+=_sb;}}}else {_Oa.globalAlpha=_ga;if(_5d!=_xa){var _tW2=_ya(_Zc,_5d);if(_s73!=undefined){_VY2(_s73);}var _E73,
_F73;for(_F73=0;_F73<3;_F73++){for(_E73=0;_E73<3;_E73++){_Oa._Za1(_tW2,_4s2[_E73]-_F63,_us2[_F73]-_G63,_4s2[_E73+1]-_4s2[_E73],_us2[_F73+1]-_us2[_F73],_173[_E73],_273[_F73*4],_173[_E73+1]-_173[_E73],_273[_F73*4+4]-_273[_F73*4]);}}if(_s73!=undefined){_FW2();}}else {if(_s73!=undefined){_VY2(_s73);}var _E73,_F73;for(_F73=0;_F73<3;_F73++){for(_E73=0;_E73<3;_E73++){_Oa._Za1(_s9,_4s2[_E73],_us2[_F73],_4s2[_E73+1]-_4s2[_E73],_us2[_F73+1]-_us2[_F73],_173[_E73],_273[_F73*4],_173[_E73+1]-_173[_E73],_273[_F73*4+4]-_273[_F73*4]);
}}if(_s73!=undefined){_FW2();}}}}};var _Q13=0,_S13=1,_T13=2;function _G73(){this._H73=null;this._I73=0;this._J73=null;}function _K73(){this._H73=null;this._L73=false;this._gl=null;}function _M73(){this.physicsObject=false;}function _N73(_O73,_w4){this.__type="[Object]";this._Og=0;this._ZI=_O73;this._Ox=_w4;this._hV=-1;this._NI=0;this._fV=0;this._cV=false;this._dV=false;this._gV=false;this._XI=0;this.__w=null;this._P73=-1;this._fJ2=false;this._kw2=new _ek();this._F33=new _ek();this._kw2._fk=true;this._F33._fk=true;
this._Q73=[];for(var _05=0;_05<_Dw2;_05++){this._Q73[_05]=null;}this._R73=[];this._S73=[];this._T73=[];this._hJ2=[];this.Triggers=[];this.Event=[];this._Hv2=[];this._iV=new _M73();}_N73.prototype._QS=function(){return this._kw2._yk;};_N73.prototype._5_=function(){return this._F33._yk;};function _qJ2(_U73,_V73){var _By=new _N73(_U73,_V73.pName);{if(_V73.spriteIndex!=undefined)_By._NI=_V73.spriteIndex;if(_V73.visible!=undefined)_By._dV=_V73.visible;if(_V73.solid!=undefined)_By._cV=_V73.solid;if(_V73.depth!=undefined)_By._fV=_V73.depth;
if(_V73.persistent!=undefined)_By._gV=_V73.persistent;if(_V73.parent!=undefined)_By._XI=_V73.parent;if(_V73.spritemask!=undefined)_By._hV=_V73.spritemask;if(_V73.PreCreateEvent){_By.PreCreateEvent=_V73.PreCreateEvent;_By.Event[_HI]=true;}if(_V73.CreateEvent){_By.CreateEvent=_V73.CreateEvent;_By.Event[_II]=true;}if(_V73.DestroyEvent){_By.DestroyEvent=_V73.DestroyEvent;_By.Event[_KI]=true;}if(_V73.CleanUpEvent){_By.CleanUpEvent=_V73.CleanUpEvent;_By.Event[_rI]=true;}if(_V73.StepBeginEvent){_By.StepBeginEvent=_V73.StepBeginEvent;
_By.Event[_Yw2]=true;}if(_V73.StepNormalEvent){_By.StepNormalEvent=_V73.StepNormalEvent;_By.Event[__w2]=true;}if(_V73.StepEndEvent){_By.StepEndEvent=_V73.StepEndEvent;_By.Event[_1x2]=true;}if(_V73.DrawEvent){_By.DrawEvent=_V73.DrawEvent;_By.Event[_Cz2]=true;}if(_V73.DrawGUI){_By.DrawGUI=_V73.DrawGUI;_By.Event[_yB2]=true;}if(_V73.DrawEventBegin){_By.DrawEventBegin=_V73.DrawEventBegin;_By.Event[_AB2]=true;}if(_V73.DrawEventEnd){_By.DrawEventEnd=_V73.DrawEventEnd;_By.Event[_BB2]=true;}if(_V73.DrawGUIBegin){
_By.DrawGUIBegin=_V73.DrawGUIBegin;_By.Event[_CB2]=true;}if(_V73.DrawGUIEnd){_By.DrawGUIEnd=_V73.DrawGUIEnd;_By.Event[_DB2]=true;}if(_V73.DrawPre){_By.DrawPre=_V73.DrawPre;_By.Event[_EB2]=true;}if(_V73.DrawPost){_By.DrawPost=_V73.DrawPost;_By.Event[_FB2]=true;}if(_V73.DrawResize){_By.DrawResize=_V73.DrawResize;_By.Event[_zB2]=true;}if(_V73.NoButtonPressed){_By.NoButtonPressed=_V73.NoButtonPressed;_By.Event[_fw2]=true;}if(_V73.LeftButtonDown){_By.LeftButtonDown=_V73.LeftButtonDown;_By.Event[_6w2]=true;
}if(_V73.RightButtonDown){_By.RightButtonDown=_V73.RightButtonDown;_By.Event[_8w2]=true;}if(_V73.MiddleButtonDown){_By.MiddleButtonDown=_V73.MiddleButtonDown;_By.Event[_7w2]=true;}if(_V73.LeftButtonPressed){_By.LeftButtonPressed=_V73.LeftButtonPressed;_By.Event[_9w2]=true;}if(_V73.RightButtonPressed){_By.RightButtonPressed=_V73.RightButtonPressed;_By.Event[_bw2]=true;}if(_V73.MiddleButtonPressed){_By.MiddleButtonPressed=_V73.MiddleButtonPressed;_By.Event[_aw2]=true;}if(_V73.LeftButtonReleased){_By.LeftButtonReleased=_V73.LeftButtonReleased;
_By.Event[_cw2]=true;}if(_V73.RightButtonReleased){_By.RightButtonReleased=_V73.RightButtonReleased;_By.Event[_ew2]=true;}if(_V73.MiddleButtonReleased){_By.MiddleButtonReleased=_V73.MiddleButtonReleased;_By.Event[_dw2]=true;}if(_V73.MouseWheelUp){_By.MouseWheelUp=_V73.MouseWheelUp;_By.Event[_iw2]=true;}if(_V73.MouseWheelDown){_By.MouseWheelDown=_V73.MouseWheelDown;_By.Event[_jw2]=true;}if(_V73.GlobalLeftButtonDown){_By.GlobalLeftButtonDown=_V73.GlobalLeftButtonDown;_By.Event[_ow2]=true;}if(_V73.GlobalRightButtonDown){
_By.GlobalRightButtonDown=_V73.GlobalRightButtonDown;_By.Event[_Gx2]=true;}if(_V73.GlobalMiddleButtonDown){_By.GlobalMiddleButtonDown=_V73.GlobalMiddleButtonDown;_By.Event[_Ix2]=true;}if(_V73.GlobalLeftButtonPressed){_By.GlobalLeftButtonPressed=_V73.GlobalLeftButtonPressed;_By.Event[_pw2]=true;}if(_V73.GlobalRightButtonPressed){_By.GlobalRightButtonPressed=_V73.GlobalRightButtonPressed;_By.Event[_Lx2]=true;}if(_V73.GlobalMiddleButtonPressed){_By.GlobalMiddleButtonPressed=_V73.GlobalMiddleButtonPressed;
_By.Event[_Nx2]=true;}if(_V73.GlobalLeftButtonReleased){_By.GlobalLeftButtonReleased=_V73.GlobalLeftButtonReleased;_By.Event[_qw2]=true;}if(_V73.GlobalRightButtonReleased){_By.GlobalRightButtonReleased=_V73.GlobalRightButtonReleased;_By.Event[_Qx2]=true;}if(_V73.GlobalMiddleButtonReleased){_By.GlobalMiddleButtonReleased=_V73.GlobalMiddleButtonReleased;_By.Event[_Sx2]=true;}if(_V73.MouseEnter){_By.MouseEnter=_V73.MouseEnter;_By.Event[_gw2]=true;}if(_V73.MouseLeave){_By.MouseLeave=_V73.MouseLeave;
_By.Event[_hw2]=true;}if(_V73.GestureTapEvent){_By.GestureTapEvent=_V73.GestureTapEvent;_By.Event[_Nz2]=true;}if(_V73.GestureDoubleTapEvent){_By.GestureDoubleTapEvent=_V73.GestureDoubleTapEvent;_By.Event[_Pz2]=true;}if(_V73.GestureDragStartEvent){_By.GestureDragStartEvent=_V73.GestureDragStartEvent;_By.Event[_Rz2]=true;}if(_V73.GestureDragMoveEvent){_By.GestureDragMoveEvent=_V73.GestureDragMoveEvent;_By.Event[_Tz2]=true;}if(_V73.GestureDragEndEvent){_By.GestureDragEndEvent=_V73.GestureDragEndEvent;
_By.Event[_Vz2]=true;}if(_V73.GestureFlickEvent){_By.GestureFlickEvent=_V73.GestureFlickEvent;_By.Event[_Xz2]=true;}if(_V73.GestureGlobalTapEvent){_By.GestureGlobalTapEvent=_V73.GestureGlobalTapEvent;_By.Event[_cA2]=true;}if(_V73.GestureGlobalDoubleTapEvent){_By.GestureGlobalDoubleTapEvent=_V73.GestureGlobalDoubleTapEvent;_By.Event[_eA2]=true;}if(_V73.GestureGlobalDragStartEvent){_By.GestureGlobalDragStartEvent=_V73.GestureGlobalDragStartEvent;_By.Event[_gA2]=true;}if(_V73.GestureGlobalDragMoveEvent){
_By.GestureGlobalDragMoveEvent=_V73.GestureGlobalDragMoveEvent;_By.Event[_iA2]=true;}if(_V73.GestureGlobalDragEndEvent){_By.GestureGlobalDragEndEvent=_V73.GestureGlobalDragEndEvent;_By.Event[_kA2]=true;}if(_V73.GestureGlobalFlickEvent){_By.GestureGlobalFlickEvent=_V73.GestureGlobalFlickEvent;_By.Event[_mA2]=true;}if(_V73.OutsideEvent){_By.OutsideEvent=_V73.OutsideEvent;_By.Event[_Iv2]=true;}if(_V73.BoundaryEvent){_By.BoundaryEvent=_V73.BoundaryEvent;_By.Event[_Kv2]=true;}if(_V73.StartGameEvent){
_By.StartGameEvent=_V73.StartGameEvent;_By.Event[_Yx2]=true;}if(_V73.EndGameEvent){_By.EndGameEvent=_V73.EndGameEvent;_By.Event[__x2]=true;}if(_V73.StartRoomEvent){_By.StartRoomEvent=_V73.StartRoomEvent;_By.Event[_1y2]=true;}if(_V73.EndRoomEvent){_By.EndRoomEvent=_V73.EndRoomEvent;_By.Event[_3y2]=true;}if(_V73.NoLivesEvent){_By.NoLivesEvent=_V73.NoLivesEvent;_By.Event[_5y2]=true;}if(_V73.AnimationEndEvent){_By.AnimationEndEvent=_V73.AnimationEndEvent;_By.Event[_7y2]=true;}if(_V73.EndOfPathEvent){
_By.EndOfPathEvent=_V73.EndOfPathEvent;_By.Event[_s62]=true;}if(_V73.NoHealthEvent){_By.NoHealthEvent=_V73.NoHealthEvent;_By.Event[_ay2]=true;}if(_V73.CloseButtonEvent){_By.CloseButtonEvent=_V73.CloseButtonEvent;_By.Event[_cy2]=true;}if(_V73.OutsideView0Event){_By.OutsideView0Event=_V73.OutsideView0Event;_By.Event[_Qv2]=true;}if(_V73.OutsideView1Event){_By.OutsideView1Event=_V73.OutsideView1Event;_By.Event[_fy2]=true;}if(_V73.OutsideView2Event){_By.OutsideView2Event=_V73.OutsideView2Event;_By.Event[_hy2]=true;
}if(_V73.OutsideView3Event){_By.OutsideView3Event=_V73.OutsideView3Event;_By.Event[_jy2]=true;}if(_V73.OutsideView4Event){_By.OutsideView4Event=_V73.OutsideView4Event;_By.Event[_ly2]=true;}if(_V73.OutsideView5Event){_By.OutsideView5Event=_V73.OutsideView5Event;_By.Event[_ny2]=true;}if(_V73.OutsideView6Event){_By.OutsideView6Event=_V73.OutsideView6Event;_By.Event[_py2]=true;}if(_V73.OutsideView7Event){_By.OutsideView7Event=_V73.OutsideView7Event;_By.Event[_ry2]=true;}if(_V73.BoundaryView0Event){_By.BoundaryView0Event=_V73.BoundaryView0Event;
_By.Event[_Rv2]=true;}if(_V73.BoundaryView1Event){_By.BoundaryView1Event=_V73.BoundaryView1Event;_By.Event[_uy2]=true;}if(_V73.BoundaryView2Event){_By.BoundaryView2Event=_V73.BoundaryView2Event;_By.Event[_wy2]=true;}if(_V73.BoundaryView3Event){_By.BoundaryView3Event=_V73.BoundaryView3Event;_By.Event[_yy2]=true;}if(_V73.BoundaryView4Event){_By.BoundaryView4Event=_V73.BoundaryView4Event;_By.Event[_Ay2]=true;}if(_V73.BoundaryView5Event){_By.BoundaryView5Event=_V73.BoundaryView5Event;_By.Event[_Cy2]=true;
}if(_V73.BoundaryView6Event){_By.BoundaryView6Event=_V73.BoundaryView6Event;_By.Event[_Ey2]=true;}if(_V73.BoundaryView7Event){_By.BoundaryView7Event=_V73.BoundaryView7Event;_By.Event[_Gy2]=true;}if(_V73.AnimationUpdateEvent){_By.AnimationUpdateEvent=_V73.AnimationUpdateEvent;_By.Event[_x6]=true;}if(_V73.UserEvent0){_By.UserEvent0=_V73.UserEvent0;_By.Event[_Hy2]=true;}if(_V73.UserEvent1){_By.UserEvent1=_V73.UserEvent1;_By.Event[_Jy2]=true;}if(_V73.UserEvent2){_By.UserEvent2=_V73.UserEvent2;_By.Event[_Ly2]=true;
}if(_V73.UserEvent3){_By.UserEvent3=_V73.UserEvent3;_By.Event[_Ny2]=true;}if(_V73.UserEvent4){_By.UserEvent4=_V73.UserEvent4;_By.Event[_Py2]=true;}if(_V73.UserEvent5){_By.UserEvent5=_V73.UserEvent5;_By.Event[_Ry2]=true;}if(_V73.UserEvent6){_By.UserEvent6=_V73.UserEvent6;_By.Event[_Ty2]=true;}if(_V73.UserEvent7){_By.UserEvent7=_V73.UserEvent7;_By.Event[_Vy2]=true;}if(_V73.UserEvent8){_By.UserEvent8=_V73.UserEvent8;_By.Event[_Xy2]=true;}if(_V73.UserEvent9){_By.UserEvent9=_V73.UserEvent9;_By.Event[_Zy2]=true;
}if(_V73.UserEvent10){_By.UserEvent10=_V73.UserEvent10;_By.Event[_0z2]=true;}if(_V73.UserEvent11){_By.UserEvent11=_V73.UserEvent11;_By.Event[_2z2]=true;}if(_V73.UserEvent12){_By.UserEvent12=_V73.UserEvent12;_By.Event[_4z2]=true;}if(_V73.UserEvent13){_By.UserEvent13=_V73.UserEvent13;_By.Event[_6z2]=true;}if(_V73.UserEvent14){_By.UserEvent14=_V73.UserEvent14;_By.Event[_8z2]=true;}if(_V73.UserEvent15){_By.UserEvent15=_V73.UserEvent15;_By.Event[_az2]=true;}if(_V73.WebImageLoadedEvent){_By.WebImageLoadedEvent=_V73.WebImageLoadedEvent;
_By.Event[_ez2]=true;}if(_V73.WebSoundLoadedEvent){_By.WebSoundLoadedEvent=_V73.WebSoundLoadedEvent;_By.Event[_gz2]=true;}if(_V73.WebAsyncEvent){_By.WebAsyncEvent=_V73.WebAsyncEvent;_By.Event[_iz2]=true;}if(_V73.WebUserInteractionEvent){_By.WebUserInteractionEvent=_V73.WebUserInteractionEvent;_By.Event[_kz2]=true;}if(_V73.WebIAPEvent){_By.WebIAPEvent=_V73.WebIAPEvent;_By.Event[_mz2]=true;}if(_V73.SocialEvent){_By.SocialEvent=_V73.SocialEvent;_By.Event[_qz2]=true;}if(_V73.PushNotificationEvent){_By.PushNotificationEvent=_V73.PushNotificationEvent;
_By.Event[_sz2]=true;}if(_V73.AsyncSaveLoadEvent){_By.AsyncSaveLoadEvent=_V73.AsyncSaveLoadEvent;_By.Event[_691]=true;}if(_V73.NetworkingEvent){_By.NetworkingEvent=_V73.NetworkingEvent;_By.Event[_oz2]=true;}if(_V73.AudioPlaybackEvent){_By.AudioPlaybackEvent=_V73.AudioPlaybackEvent;_By.Event[_vz2]=true;}if(_V73.AudioPlaybackEndedEvent){_By.AudioPlaybackEndedEvent=_V73.AudioPlaybackEndedEvent;_By.Event[_xz2]=true;}if(_V73.AudioRecordingEvent){_By.AudioRecordingEvent=_V73.AudioRecordingEvent;_By.Event[_0a1]=true;
}if(_V73.AnimationEventEvent){_By.AnimationEventEvent=_V73.AnimationEventEvent;_By.Event[_34]=true;}if(_V73.SystemEvent){_By.SystemEvent=_V73.SystemEvent;_By.Event[_n71]=true;}if(_V73.BroadcastMessageEvent){_By.BroadcastMessageEvent=_V73.BroadcastMessageEvent;_By.Event[_Az2]=true;}if(_V73.ObjAlarm0){_By._Q73[0]=_V73.ObjAlarm0;_By.Event[_Kw2]=true;}if(_V73.ObjAlarm1){_By._Q73[1]=_V73.ObjAlarm1;_By.Event[_Lw2]=true;}if(_V73.ObjAlarm2){_By._Q73[2]=_V73.ObjAlarm2;_By.Event[_Mw2]=true;}if(_V73.ObjAlarm3){
_By._Q73[3]=_V73.ObjAlarm3;_By.Event[_Nw2]=true;}if(_V73.ObjAlarm4){_By._Q73[4]=_V73.ObjAlarm4;_By.Event[_Ow2]=true;}if(_V73.ObjAlarm5){_By._Q73[5]=_V73.ObjAlarm5;_By.Event[_Pw2]=true;}if(_V73.ObjAlarm6){_By._Q73[6]=_V73.ObjAlarm6;_By.Event[_Qw2]=true;}if(_V73.ObjAlarm7){_By._Q73[7]=_V73.ObjAlarm7;_By.Event[_Rw2]=true;}if(_V73.ObjAlarm8){_By._Q73[8]=_V73.ObjAlarm8;_By.Event[_Sw2]=true;}if(_V73.ObjAlarm9){_By._Q73[9]=_V73.ObjAlarm9;_By.Event[_Tw2]=true;}if(_V73.ObjAlarm10){_By._Q73[10]=_V73.ObjAlarm10;
_By.Event[_Uw2]=true;}if(_V73.ObjAlarm11){_By._Q73[11]=_V73.ObjAlarm11;_By.Event[_Vw2]=true;}if(_V73.KeyPressed_NOKEY){_By._S73[_IB2]=_V73.KeyPressed_NOKEY;_By.Event[_IB2]=true;}if(_V73.KeyPressed_ANYKEY){_By._S73[_KB2]=_V73.KeyPressed_ANYKEY;_By.Event[_KB2]=true;}if(_V73.KeyPressed_BACKSPACE){_By._S73[_LB2]=_V73.KeyPressed_BACKSPACE;_By.Event[_LB2]=true;}if(_V73.KeyPressed_TAB){_By._S73[_MB2]=_V73.KeyPressed_TAB;_By.Event[_MB2]=true;}if(_V73.KeyPressed_ENTER){_By._S73[_NB2]=_V73.KeyPressed_ENTER;
_By.Event[_NB2]=true;}if(_V73.KeyPressed_SHIFT){_By._S73[_OB2]=_V73.KeyPressed_SHIFT;_By.Event[_OB2]=true;}if(_V73.KeyPressed_CTRL){_By._S73[_PB2]=_V73.KeyPressed_CTRL;_By.Event[_PB2]=true;}if(_V73.KeyPressed_ALT){_By._S73[_QB2]=_V73.KeyPressed_ALT;_By.Event[_QB2]=true;}if(_V73.KeyPressed_PAUSE){_By._S73[_RB2]=_V73.KeyPressed_PAUSE;_By.Event[_RB2]=true;}if(_V73.KeyPressed_ESCAPE){_By._S73[_SB2]=_V73.KeyPressed_ESCAPE;_By.Event[_SB2]=true;}if(_V73.KeyPressed_SPACE){_By._S73[_TB2]=_V73.KeyPressed_SPACE;
_By.Event[_TB2]=true;}if(_V73.KeyPressed_PAGEUP){_By._S73[_UB2]=_V73.KeyPressed_PAGEUP;_By.Event[_UB2]=true;}if(_V73.KeyPressed_PAGEDOWN){_By._S73[_VB2]=_V73.KeyPressed_PAGEDOWN;_By.Event[_VB2]=true;}if(_V73.KeyPressed_END){_By._S73[_WB2]=_V73.KeyPressed_END;_By.Event[_WB2]=true;}if(_V73.KeyPressed_HOME){_By._S73[_XB2]=_V73.KeyPressed_HOME;_By.Event[_XB2]=true;}if(_V73.KeyPressed_LEFT){_By._S73[_YB2]=_V73.KeyPressed_LEFT;_By.Event[_YB2]=true;}if(_V73.KeyPressed_UP){_By._S73[_ZB2]=_V73.KeyPressed_UP;
_By.Event[_ZB2]=true;}if(_V73.KeyPressed_RIGHT){_By._S73[__B2]=_V73.KeyPressed_RIGHT;_By.Event[__B2]=true;}if(_V73.KeyPressed_DOWN){_By._S73[_0C2]=_V73.KeyPressed_DOWN;_By.Event[_0C2]=true;}if(_V73.KeyPressed_INSERT){_By._S73[_1C2]=_V73.KeyPressed_INSERT;_By.Event[_1C2]=true;}if(_V73.KeyPressed_DELETE){_By._S73[_2C2]=_V73.KeyPressed_DELETE;_By.Event[_2C2]=true;}if(_V73.KeyPressed_0){_By._S73[_3C2]=(_V73.KeyPressed_0);_By.Event[_3C2]=true;}if(_V73.KeyPressed_1){_By._S73[_4C2]=(_V73.KeyPressed_1);
_By.Event[_4C2]=true;}if(_V73.KeyPressed_2){_By._S73[_5C2]=(_V73.KeyPressed_2);_By.Event[_5C2]=true;}if(_V73.KeyPressed_3){_By._S73[_6C2]=(_V73.KeyPressed_3);_By.Event[_6C2]=true;}if(_V73.KeyPressed_4){_By._S73[_7C2]=(_V73.KeyPressed_4);_By.Event[_7C2]=true;}if(_V73.KeyPressed_5){_By._S73[_8C2]=(_V73.KeyPressed_5);_By.Event[_8C2]=true;}if(_V73.KeyPressed_6){_By._S73[_9C2]=(_V73.KeyPressed_6);_By.Event[_9C2]=true;}if(_V73.KeyPressed_7){_By._S73[_aC2]=(_V73.KeyPressed_7);_By.Event[_aC2]=true;}if(_V73.KeyPressed_8){
_By._S73[_bC2]=(_V73.KeyPressed_8);_By.Event[_bC2]=true;}if(_V73.KeyPressed_9){_By._S73[_cC2]=(_V73.KeyPressed_9);_By.Event[_cC2]=true;}if(_V73.KeyPressed_A){_By._S73[_dC2]=(_V73.KeyPressed_A);_By.Event[_dC2]=true;}if(_V73.KeyPressed_B){_By._S73[_eC2]=(_V73.KeyPressed_B);_By.Event[_eC2]=true;}if(_V73.KeyPressed_C){_By._S73[_fC2]=(_V73.KeyPressed_C);_By.Event[_fC2]=true;}if(_V73.KeyPressed_D){_By._S73[_gC2]=(_V73.KeyPressed_D);_By.Event[_gC2]=true;}if(_V73.KeyPressed_E){_By._S73[_hC2]=(_V73.KeyPressed_E);
_By.Event[_hC2]=true;}if(_V73.KeyPressed_F){_By._S73[_iC2]=(_V73.KeyPressed_F);_By.Event[_iC2]=true;}if(_V73.KeyPressed_G){_By._S73[_jC2]=(_V73.KeyPressed_G);_By.Event[_jC2]=true;}if(_V73.KeyPressed_H){_By._S73[_kC2]=(_V73.KeyPressed_H);_By.Event[_kC2]=true;}if(_V73.KeyPressed_I){_By._S73[_lC2]=(_V73.KeyPressed_I);_By.Event[_lC2]=true;}if(_V73.KeyPressed_J){_By._S73[_mC2]=(_V73.KeyPressed_J);_By.Event[_mC2]=true;}if(_V73.KeyPressed_K){_By._S73[_nC2]=(_V73.KeyPressed_K);_By.Event[_nC2]=true;}if(_V73.KeyPressed_L){
_By._S73[_oC2]=(_V73.KeyPressed_L);_By.Event[_oC2]=true;}if(_V73.KeyPressed_M){_By._S73[_pC2]=(_V73.KeyPressed_M);_By.Event[_pC2]=true;}if(_V73.KeyPressed_N){_By._S73[_qC2]=(_V73.KeyPressed_N);_By.Event[_qC2]=true;}if(_V73.KeyPressed_O){_By._S73[_rC2]=(_V73.KeyPressed_O);_By.Event[_rC2]=true;}if(_V73.KeyPressed_P){_By._S73[_sC2]=(_V73.KeyPressed_P);_By.Event[_sC2]=true;}if(_V73.KeyPressed_Q){_By._S73[_tC2]=(_V73.KeyPressed_Q);_By.Event[_tC2]=true;}if(_V73.KeyPressed_R){_By._S73[_uC2]=(_V73.KeyPressed_R);
_By.Event[_uC2]=true;}if(_V73.KeyPressed_S){_By._S73[_vC2]=(_V73.KeyPressed_S);_By.Event[_vC2]=true;}if(_V73.KeyPressed_T){_By._S73[_wC2]=(_V73.KeyPressed_T);_By.Event[_wC2]=true;}if(_V73.KeyPressed_U){_By._S73[_xC2]=(_V73.KeyPressed_U);_By.Event[_xC2]=true;}if(_V73.KeyPressed_V){_By._S73[_yC2]=(_V73.KeyPressed_V);_By.Event[_yC2]=true;}if(_V73.KeyPressed_W){_By._S73[_zC2]=(_V73.KeyPressed_W);_By.Event[_zC2]=true;}if(_V73.KeyPressed_X){_By._S73[_AC2]=(_V73.KeyPressed_X);_By.Event[_AC2]=true;}if(_V73.KeyPressed_Y){
_By._S73[_BC2]=(_V73.KeyPressed_Y);_By.Event[_BC2]=true;}if(_V73.KeyPressed_Z){_By._S73[_CC2]=(_V73.KeyPressed_Z);_By.Event[_CC2]=true;}if(_V73.KeyPressed_F1){_By._S73[_DC2]=(_V73.KeyPressed_F1);_By.Event[_DC2]=true;}if(_V73.KeyPressed_F2){_By._S73[_EC2]=(_V73.KeyPressed_F2);_By.Event[_EC2]=true;}if(_V73.KeyPressed_F3){_By._S73[_FC2]=(_V73.KeyPressed_F3);_By.Event[_FC2]=true;}if(_V73.KeyPressed_F4){_By._S73[_GC2]=(_V73.KeyPressed_F4);_By.Event[_GC2]=true;}if(_V73.KeyPressed_F5){_By._S73[_HC2]=(_V73.KeyPressed_F5);
_By.Event[_HC2]=true;}if(_V73.KeyPressed_F6){_By._S73[_IC2]=(_V73.KeyPressed_F6);_By.Event[_IC2]=true;}if(_V73.KeyPressed_F7){_By._S73[_JC2]=(_V73.KeyPressed_F7);_By.Event[_JC2]=true;}if(_V73.KeyPressed_F8){_By._S73[_KC2]=(_V73.KeyPressed_F8);_By.Event[_KC2]=true;}if(_V73.KeyPressed_F9){_By._S73[_LC2]=(_V73.KeyPressed_F9);_By.Event[_LC2]=true;}if(_V73.KeyPressed_F10){_By._S73[_MC2]=(_V73.KeyPressed_F10);_By.Event[_MC2]=true;}if(_V73.KeyPressed_F11){_By._S73[_NC2]=(_V73.KeyPressed_F11);_By.Event[_NC2]=true;
}if(_V73.KeyPressed_F12){_By._S73[_OC2]=(_V73.KeyPressed_F12);_By.Event[_OC2]=true;}if(_V73.KeyPressed_NUM_LOCK){_By._S73[_1D2]=(_V73.KeyPressed_NUM_LOCK);_By.Event[_1D2]=true;}if(_V73.KeyPressed_NUM_0){_By._S73[_2D2]=(_V73.KeyPressed_NUM_0);_By.Event[_2D2]=true;}if(_V73.KeyPressed_NUM_1){_By._S73[_3D2]=(_V73.KeyPressed_NUM_1);_By.Event[_3D2]=true;}if(_V73.KeyPressed_NUM_2){_By._S73[_4D2]=(_V73.KeyPressed_NUM_2);_By.Event[_4D2]=true;}if(_V73.KeyPressed_NUM_3){_By._S73[_5D2]=(_V73.KeyPressed_NUM_3);
_By.Event[_5D2]=true;}if(_V73.KeyPressed_NUM_4){_By._S73[_6D2]=(_V73.KeyPressed_NUM_4);_By.Event[_6D2]=true;}if(_V73.KeyPressed_NUM_5){_By._S73[_7D2]=(_V73.KeyPressed_NUM_5);_By.Event[_7D2]=true;}if(_V73.KeyPressed_NUM_6){_By._S73[_8D2]=(_V73.KeyPressed_NUM_6);_By.Event[_8D2]=true;}if(_V73.KeyPressed_NUM_7){_By._S73[_9D2]=(_V73.KeyPressed_NUM_7);_By.Event[_9D2]=true;}if(_V73.KeyPressed_NUM_8){_By._S73[_aD2]=(_V73.KeyPressed_NUM_8);_By.Event[_aD2]=true;}if(_V73.KeyPressed_NUM_9){_By._S73[_bD2]=(_V73.KeyPressed_NUM_9);
_By.Event[_bD2]=true;}if(_V73.KeyPressed_NUM_STAR){_By._S73[_cD2]=(_V73.KeyPressed_NUM_STAR);_By.Event[_cD2]=true;}if(_V73.KeyPressed_NUM_PLUS){_By._S73[_dD2]=(_V73.KeyPressed_NUM_PLUS);_By.Event[_dD2]=true;}if(_V73.KeyPressed_NUM_MINUS){_By._S73[_eD2]=(_V73.KeyPressed_NUM_MINUS);_By.Event[_eD2]=true;}if(_V73.KeyPressed_NUM_DOT){_By._S73[_fD2]=(_V73.KeyPressed_NUM_DOT);_By.Event[_fD2]=true;}if(_V73.KeyPressed_NUM_DIV){_By._S73[_gD2]=(_V73.KeyPressed_NUM_DIV);_By.Event[_gD2]=true;}if(_V73.Key_NOKEY){
_By._R73[_hD2]=(_V73.Key_NOKEY);_By.Event[_hD2]=true;}if(_V73.Key_ANYKEY){_By._R73[_jD2]=(_V73.Key_ANYKEY);_By.Event[_jD2]=true;}if(_V73.Key_BACKSPACE){_By._R73[_kD2]=(_V73.Key_BACKSPACE);_By.Event[_kD2]=true;}if(_V73.Key_TAB){_By._R73[_lD2]=(_V73.Key_TAB);_By.Event[_lD2]=true;}if(_V73.Key_ENTER){_By._R73[_mD2]=(_V73.Key_ENTER);_By.Event[_mD2]=true;}if(_V73.Key_SHIFT){_By._R73[_nD2]=(_V73.Key_SHIFT);_By.Event[_nD2]=true;}if(_V73.Key_CTRL){_By._R73[_oD2]=(_V73.Key_CTRL);_By.Event[_oD2]=true;}if(_V73.Key_ALT){
_By._R73[_pD2]=(_V73.Key_ALT);_By.Event[_pD2]=true;}if(_V73.Key_PAUSE){_By._R73[_qD2]=(_V73.Key_PAUSE);_By.Event[_qD2]=true;}if(_V73.Key_ESCAPE){_By._R73[_rD2]=(_V73.Key_ESCAPE);_By.Event[_rD2]=true;}if(_V73.Key_SPACE){_By._R73[_sD2]=(_V73.Key_SPACE);_By.Event[_sD2]=true;}if(_V73.Key_PAGEUP){_By._R73[_tD2]=(_V73.Key_PAGEUP);_By.Event[_tD2]=true;}if(_V73.Key_PAGEDOWN){_By._R73[_uD2]=(_V73.Key_PAGEDOWN);_By.Event[_uD2]=true;}if(_V73.Key_END){_By._R73[_vD2]=(_V73.Key_END);_By.Event[_vD2]=true;}if(_V73.Key_HOME){
_By._R73[_wD2]=(_V73.Key_HOME);_By.Event[_wD2]=true;}if(_V73.Key_LEFT){_By._R73[_xD2]=(_V73.Key_LEFT);_By.Event[_xD2]=true;}if(_V73.Key_UP){_By._R73[_yD2]=(_V73.Key_UP);_By.Event[_yD2]=true;}if(_V73.Key_RIGHT){_By._R73[_zD2]=(_V73.Key_RIGHT);_By.Event[_zD2]=true;}if(_V73.Key_DOWN){_By._R73[_AD2]=(_V73.Key_DOWN);_By.Event[_AD2]=true;}if(_V73.Key_INSERT){_By._R73[_BD2]=(_V73.Key_INSERT);_By.Event[_BD2]=true;}if(_V73.Key_DELETE){_By._R73[_CD2]=(_V73.Key_DELETE);_By.Event[_CD2]=true;}if(_V73.Key_0){
_By._R73[_DD2]=(_V73.Key_0);_By.Event[_DD2]=true;}if(_V73.Key_1){_By._R73[_ED2]=(_V73.Key_1);_By.Event[_ED2]=true;}if(_V73.Key_2){_By._R73[_FD2]=(_V73.Key_2);_By.Event[_FD2]=true;}if(_V73.Key_3){_By._R73[_GD2]=(_V73.Key_3);_By.Event[_GD2]=true;}if(_V73.Key_4){_By._R73[_HD2]=(_V73.Key_4);_By.Event[_HD2]=true;}if(_V73.Key_5){_By._R73[_ID2]=(_V73.Key_5);_By.Event[_ID2]=true;}if(_V73.Key_6){_By._R73[_JD2]=(_V73.Key_6);_By.Event[_JD2]=true;}if(_V73.Key_7){_By._R73[_KD2]=(_V73.Key_7);_By.Event[_KD2]=true;
}if(_V73.Key_8){_By._R73[_LD2]=(_V73.Key_8);_By.Event[_LD2]=true;}if(_V73.Key_9){_By._R73[_MD2]=(_V73.Key_9);_By.Event[_MD2]=true;}if(_V73.Key_A){_By._R73[_ND2]=(_V73.Key_A);_By.Event[_ND2]=true;}if(_V73.Key_B){_By._R73[_OD2]=(_V73.Key_B);_By.Event[_OD2]=true;}if(_V73.Key_C){_By._R73[_PD2]=(_V73.Key_C);_By.Event[_PD2]=true;}if(_V73.Key_D){_By._R73[_QD2]=(_V73.Key_D);_By.Event[_QD2]=true;}if(_V73.Key_E){_By._R73[_RD2]=(_V73.Key_E);_By.Event[_RD2]=true;}if(_V73.Key_F){_By._R73[_SD2]=(_V73.Key_F);_By.Event[_SD2]=true;
}if(_V73.Key_G){_By._R73[_TD2]=(_V73.Key_G);_By.Event[_TD2]=true;}if(_V73.Key_H){_By._R73[_UD2]=(_V73.Key_H);_By.Event[_UD2]=true;}if(_V73.Key_I){_By._R73[_VD2]=(_V73.Key_I);_By.Event[_VD2]=true;}if(_V73.Key_J){_By._R73[_WD2]=(_V73.Key_J);_By.Event[_WD2]=true;}if(_V73.Key_K){_By._R73[_XD2]=(_V73.Key_K);_By.Event[_XD2]=true;}if(_V73.Key_L){_By._R73[_YD2]=(_V73.Key_L);_By.Event[_YD2]=true;}if(_V73.Key_M){_By._R73[_ZD2]=(_V73.Key_M);_By.Event[_ZD2]=true;}if(_V73.Key_N){_By._R73[__D2]=(_V73.Key_N);_By.Event[__D2]=true;
}if(_V73.Key_O){_By._R73[_0E2]=(_V73.Key_O);_By.Event[_0E2]=true;}if(_V73.Key_P){_By._R73[_1E2]=(_V73.Key_P);_By.Event[_1E2]=true;}if(_V73.Key_Q){_By._R73[_2E2]=(_V73.Key_Q);_By.Event[_2E2]=true;}if(_V73.Key_R){_By._R73[_3E2]=(_V73.Key_R);_By.Event[_3E2]=true;}if(_V73.Key_S){_By._R73[_4E2]=(_V73.Key_S);_By.Event[_4E2]=true;}if(_V73.Key_T){_By._R73[_5E2]=(_V73.Key_T);_By.Event[_5E2]=true;}if(_V73.Key_U){_By._R73[_6E2]=(_V73.Key_U);_By.Event[_6E2]=true;}if(_V73.Key_V){_By._R73[_7E2]=(_V73.Key_V);_By.Event[_7E2]=true;
}if(_V73.Key_W){_By._R73[_8E2]=(_V73.Key_W);_By.Event[_8E2]=true;}if(_V73.Key_X){_By._R73[_9E2]=(_V73.Key_X);_By.Event[_9E2]=true;}if(_V73.Key_Y){_By._R73[_aE2]=(_V73.Key_Y);_By.Event[_aE2]=true;}if(_V73.Key_Z){_By._R73[_bE2]=(_V73.Key_Z);_By.Event[_bE2]=true;}if(_V73.Key_F1){_By._R73[_cE2]=(_V73.Key_F1);_By.Event[_cE2]=true;}if(_V73.Key_F2){_By._R73[_dE2]=(_V73.Key_F2);_By.Event[_dE2]=true;}if(_V73.Key_F3){_By._R73[_eE2]=(_V73.Key_F3);_By.Event[_eE2]=true;}if(_V73.Key_F4){_By._R73[_fE2]=(_V73.Key_F4);
_By.Event[_fE2]=true;}if(_V73.Key_F5){_By._R73[_gE2]=(_V73.Key_F5);_By.Event[_gE2]=true;}if(_V73.Key_F6){_By._R73[_hE2]=(_V73.Key_F6);_By.Event[_hE2]=true;}if(_V73.Key_F7){_By._R73[_iE2]=(_V73.Key_F7);_By.Event[_iE2]=true;}if(_V73.Key_F8){_By._R73[_jE2]=(_V73.Key_F8);_By.Event[_jE2]=true;}if(_V73.Key_F9){_By._R73[_kE2]=(_V73.Key_F9);_By.Event[_kE2]=true;}if(_V73.Key_F10){_By._R73[_lE2]=(_V73.Key_F10);_By.Event[_lE2]=true;}if(_V73.Key_F11){_By._R73[_mE2]=(_V73.Key_F11);_By.Event[_mE2]=true;}if(_V73.Key_F12){
_By._R73[_nE2]=(_V73.Key_F12);_By.Event[_nE2]=true;}if(_V73.Key_NUM_LOCK){_By._R73[_BE2]=(_V73.Key_NUM_LOCK);_By.Event[_BE2]=true;}if(_V73.Key_NUM_0){_By._R73[_CE2]=(_V73.Key_NUM_0);_By.Event[_CE2]=true;}if(_V73.Key_NUM_1){_By._R73[_DE2]=(_V73.Key_NUM_1);_By.Event[_DE2]=true;}if(_V73.Key_NUM_2){_By._R73[_EE2]=(_V73.Key_NUM_2);_By.Event[_EE2]=true;}if(_V73.Key_NUM_3){_By._R73[_FE2]=(_V73.Key_NUM_3);_By.Event[_FE2]=true;}if(_V73.Key_NUM_4){_By._R73[_GE2]=(_V73.Key_NUM_4);_By.Event[_GE2]=true;}if(_V73.Key_NUM_5){
_By._R73[_HE2]=(_V73.Key_NUM_5);_By.Event[_HE2]=true;}if(_V73.Key_NUM_6){_By._R73[_IE2]=(_V73.Key_NUM_6);_By.Event[_IE2]=true;}if(_V73.Key_NUM_7){_By._R73[_JE2]=(_V73.Key_NUM_7);_By.Event[_JE2]=true;}if(_V73.Key_NUM_8){_By._R73[_KE2]=(_V73.Key_NUM_8);_By.Event[_KE2]=true;}if(_V73.Key_NUM_9){_By._R73[_LE2]=(_V73.Key_NUM_9);_By.Event[_LE2]=true;}if(_V73.Key_NUM_STAR){_By._R73[_ME2]=(_V73.Key_NUM_STAR);_By.Event[_ME2]=true;}if(_V73.Key_NUM_PLUS){_By._R73[_NE2]=(_V73.Key_NUM_PLUS);_By.Event[_NE2]=true;
}if(_V73.Key_NUM_MINUS){_By._R73[_OE2]=(_V73.Key_NUM_MINUS);_By.Event[_OE2]=true;}if(_V73.Key_NUM_DOT){_By._R73[_PE2]=(_V73.Key_NUM_DOT);_By.Event[_PE2]=true;}if(_V73.Key_NUM_DIV){_By._R73[_QE2]=(_V73.Key_NUM_DIV);_By.Event[_QE2]=true;}if(_V73.KeyReleased_NOKEY){_By._T73[_RE2]=(_V73.KeyReleased_NOKEY);_By.Event[_RE2]=true;}if(_V73.KeyReleased_ANYKEY){_By._T73[_TE2]=(_V73.KeyReleased_ANYKEY);_By.Event[_TE2]=true;}if(_V73.KeyReleased_BACKSPACE){_By._T73[_UE2]=(_V73.KeyReleased_BACKSPACE);_By.Event[_UE2]=true;
}if(_V73.KeyReleased_TAB){_By._T73[_VE2]=(_V73.KeyReleased_TAB);_By.Event[_VE2]=true;}if(_V73.KeyReleased_ENTER){_By._T73[_WE2]=(_V73.KeyReleased_ENTER);_By.Event[_WE2]=true;}if(_V73.KeyReleased_SHIFT){_By._T73[_XE2]=(_V73.KeyReleased_SHIFT);_By.Event[_XE2]=true;}if(_V73.KeyReleased_CTRL){_By._T73[_YE2]=(_V73.KeyReleased_CTRL);_By.Event[_YE2]=true;}if(_V73.KeyReleased_ALT){_By._T73[_ZE2]=(_V73.KeyReleased_ALT);_By.Event[_ZE2]=true;}if(_V73.KeyReleased_PAUSE){_By._T73[__E2]=(_V73.KeyReleased_PAUSE);
_By.Event[__E2]=true;}if(_V73.KeyReleased_ESCAPE){_By._T73[_0F2]=(_V73.KeyReleased_ESCAPE);_By.Event[_0F2]=true;}if(_V73.KeyReleased_SPACE){_By._T73[_1F2]=(_V73.KeyReleased_SPACE);_By.Event[_1F2]=true;}if(_V73.KeyReleased_PAGEUP){_By._T73[_2F2]=(_V73.KeyReleased_PAGEUP);_By.Event[_2F2]=true;}if(_V73.KeyReleased_PAGEDOWN){_By._T73[_3F2]=(_V73.KeyReleased_PAGEDOWN);_By.Event[_3F2]=true;}if(_V73.KeyReleased_END){_By._T73[_4F2]=(_V73.KeyReleased_END);_By.Event[_4F2]=true;}if(_V73.KeyReleased_HOME){_By._T73[_5F2]=(_V73.KeyReleased_HOME);
_By.Event[_5F2]=true;}if(_V73.KeyReleased_LEFT){_By._T73[_6F2]=(_V73.KeyReleased_LEFT);_By.Event[_6F2]=true;}if(_V73.KeyReleased_UP){_By._T73[_7F2]=(_V73.KeyReleased_UP);_By.Event[_7F2]=true;}if(_V73.KeyReleased_RIGHT){_By._T73[_8F2]=(_V73.KeyReleased_RIGHT);_By.Event[_8F2]=true;}if(_V73.KeyReleased_DOWN){_By._T73[_9F2]=(_V73.KeyReleased_DOWN);_By.Event[_9F2]=true;}if(_V73.KeyReleased_INSERT){_By._T73[_aF2]=(_V73.KeyReleased_INSERT);_By.Event[_aF2]=true;}if(_V73.KeyReleased_DELETE){_By._T73[_bF2]=(_V73.KeyReleased_DELETE);
_By.Event[_bF2]=true;}if(_V73.KeyReleased_0){_By._T73[_cF2]=(_V73.KeyReleased_0);_By.Event[_cF2]=true;}if(_V73.KeyReleased_1){_By._T73[_dF2]=(_V73.KeyReleased_1);_By.Event[_dF2]=true;}if(_V73.KeyReleased_2){_By._T73[_eF2]=(_V73.KeyReleased_2);_By.Event[_eF2]=true;}if(_V73.KeyReleased_3){_By._T73[_fF2]=(_V73.KeyReleased_3);_By.Event[_fF2]=true;}if(_V73.KeyReleased_4){_By._T73[_gF2]=(_V73.KeyReleased_4);_By.Event[_gF2]=true;}if(_V73.KeyReleased_5){_By._T73[_hF2]=(_V73.KeyReleased_5);_By.Event[_hF2]=true;
}if(_V73.KeyReleased_6){_By._T73[_iF2]=(_V73.KeyReleased_6);_By.Event[_iF2]=true;}if(_V73.KeyReleased_7){_By._T73[_jF2]=(_V73.KeyReleased_7);_By.Event[_jF2]=true;}if(_V73.KeyReleased_8){_By._T73[_kF2]=(_V73.KeyReleased_8);_By.Event[_kF2]=true;}if(_V73.KeyReleased_9){_By._T73[_lF2]=(_V73.KeyReleased_9);_By.Event[_lF2]=true;}if(_V73.KeyReleased_A){_By._T73[_mF2]=(_V73.KeyReleased_A);_By.Event[_mF2]=true;}if(_V73.KeyReleased_B){_By._T73[_nF2]=(_V73.KeyReleased_B);_By.Event[_nF2]=true;}if(_V73.KeyReleased_C){
_By._T73[_oF2]=(_V73.KeyReleased_C);_By.Event[_oF2]=true;}if(_V73.KeyReleased_D){_By._T73[_pF2]=(_V73.KeyReleased_D);_By.Event[_pF2]=true;}if(_V73.KeyReleased_E){_By._T73[_qF2]=(_V73.KeyReleased_E);_By.Event[_qF2]=true;}if(_V73.KeyReleased_F){_By._T73[_rF2]=(_V73.KeyReleased_F);_By.Event[_rF2]=true;}if(_V73.KeyReleased_G){_By._T73[_sF2]=(_V73.KeyReleased_G);_By.Event[_sF2]=true;}if(_V73.KeyReleased_H){_By._T73[_tF2]=(_V73.KeyReleased_H);_By.Event[_tF2]=true;}if(_V73.KeyReleased_I){_By._T73[_uF2]=(_V73.KeyReleased_I);
_By.Event[_uF2]=true;}if(_V73.KeyReleased_J){_By._T73[_vF2]=(_V73.KeyReleased_J);_By.Event[_vF2]=true;}if(_V73.KeyReleased_K){_By._T73[_wF2]=(_V73.KeyReleased_K);_By.Event[_wF2]=true;}if(_V73.KeyReleased_L){_By._T73[_xF2]=(_V73.KeyReleased_L);_By.Event[_xF2]=true;}if(_V73.KeyReleased_M){_By._T73[_yF2]=(_V73.KeyReleased_M);_By.Event[_yF2]=true;}if(_V73.KeyReleased_N){_By._T73[_zF2]=(_V73.KeyReleased_N);_By.Event[_zF2]=true;}if(_V73.KeyReleased_O){_By._T73[_AF2]=(_V73.KeyReleased_O);_By.Event[_AF2]=true;
}if(_V73.KeyReleased_P){_By._T73[_BF2]=(_V73.KeyReleased_P);_By.Event[_BF2]=true;}if(_V73.KeyReleased_Q){_By._T73[_CF2]=(_V73.KeyReleased_Q);_By.Event[_CF2]=true;}if(_V73.KeyReleased_R){_By._T73[_DF2]=(_V73.KeyReleased_R);_By.Event[_DF2]=true;}if(_V73.KeyReleased_S){_By._T73[_EF2]=(_V73.KeyReleased_S);_By.Event[_EF2]=true;}if(_V73.KeyReleased_T){_By._T73[_FF2]=(_V73.KeyReleased_T);_By.Event[_FF2]=true;}if(_V73.KeyReleased_U){_By._T73[_GF2]=(_V73.KeyReleased_U);_By.Event[_GF2]=true;}if(_V73.KeyReleased_V){
_By._T73[_HF2]=(_V73.KeyReleased_V);_By.Event[_HF2]=true;}if(_V73.KeyReleased_W){_By._T73[_IF2]=(_V73.KeyReleased_W);_By.Event[_IF2]=true;}if(_V73.KeyReleased_X){_By._T73[_JF2]=(_V73.KeyReleased_X);_By.Event[_JF2]=true;}if(_V73.KeyReleased_Y){_By._T73[_KF2]=(_V73.KeyReleased_Y);_By.Event[_KF2]=true;}if(_V73.KeyReleased_Z){_By._T73[_LF2]=(_V73.KeyReleased_Z);_By.Event[_LF2]=true;}if(_V73.KeyReleased_F1){_By._T73[_MF2]=(_V73.KeyReleased_F1);_By.Event[_MF2]=true;}if(_V73.KeyReleased_F2){_By._T73[_NF2]=(_V73.KeyReleased_F2);
_By.Event[_NF2]=true;}if(_V73.KeyReleased_F3){_By._T73[_OF2]=(_V73.KeyReleased_F3);_By.Event[_OF2]=true;}if(_V73.KeyReleased_F4){_By._T73[_PF2]=(_V73.KeyReleased_F4);_By.Event[_PF2]=true;}if(_V73.KeyReleased_F5){_By._T73[_QF2]=(_V73.KeyReleased_F5);_By.Event[_QF2]=true;}if(_V73.KeyReleased_F6){_By._T73[_RF2]=(_V73.KeyReleased_F6);_By.Event[_RF2]=true;}if(_V73.KeyReleased_F7){_By._T73[_SF2]=(_V73.KeyReleased_F7);_By.Event[_SF2]=true;}if(_V73.KeyReleased_F8){_By._T73[_TF2]=(_V73.KeyReleased_F8);_By.Event[_TF2]=true;
}if(_V73.KeyReleased_F9){_By._T73[_UF2]=(_V73.KeyReleased_F9);_By.Event[_UF2]=true;}if(_V73.KeyReleased_F10){_By._T73[_VF2]=(_V73.KeyReleased_F10);_By.Event[_VF2]=true;}if(_V73.KeyReleased_F11){_By._T73[_WF2]=(_V73.KeyReleased_F11);_By.Event[_WF2]=true;}if(_V73.KeyReleased_F12){_By._T73[_XF2]=(_V73.KeyReleased_F12);_By.Event[_XF2]=true;}if(_V73.KeyReleased_NUM_LOCK){_By._T73[_aG2]=(_V73.KeyReleased_NUM_LOCK);_By.Event[_aG2]=true;}if(_V73.KeyReleased_NUM_0){_By._T73[_bG2]=(_V73.KeyReleased_NUM_0);
_By.Event[_bG2]=true;}if(_V73.KeyReleased_NUM_1){_By._T73[_cG2]=(_V73.KeyReleased_NUM_1);_By.Event[_cG2]=true;}if(_V73.KeyReleased_NUM_2){_By._T73[_dG2]=(_V73.KeyReleased_NUM_2);_By.Event[_dG2]=true;}if(_V73.KeyReleased_NUM_3){_By._T73[_eG2]=(_V73.KeyReleased_NUM_3);_By.Event[_eG2]=true;}if(_V73.KeyReleased_NUM_4){_By._T73[_fG2]=(_V73.KeyReleased_NUM_4);_By.Event[_fG2]=true;}if(_V73.KeyReleased_NUM_5){_By._T73[_gG2]=(_V73.KeyReleased_NUM_5);_By.Event[_gG2]=true;}if(_V73.KeyReleased_NUM_6){_By._T73[_hG2]=(_V73.KeyReleased_NUM_6);
_By.Event[_hG2]=true;}if(_V73.KeyReleased_NUM_7){_By._T73[_iG2]=(_V73.KeyReleased_NUM_7);_By.Event[_iG2]=true;}if(_V73.KeyReleased_NUM_8){_By._T73[_jG2]=(_V73.KeyReleased_NUM_8);_By.Event[_jG2]=true;}if(_V73.KeyReleased_NUM_9){_By._T73[_kG2]=(_V73.KeyReleased_NUM_9);_By.Event[_kG2]=true;}if(_V73.KeyReleased_NUM_STAR){_By._T73[_lG2]=(_V73.KeyReleased_NUM_STAR);_By.Event[_lG2]=true;}if(_V73.KeyReleased_NUM_PLUS){_By._T73[_mG2]=(_V73.KeyReleased_NUM_PLUS);_By.Event[_mG2]=true;}if(_V73.KeyReleased_NUM_MINUS){
_By._T73[_nG2]=(_V73.KeyReleased_NUM_MINUS);_By.Event[_nG2]=true;}if(_V73.KeyReleased_NUM_DOT){_By._T73[_oG2]=(_V73.KeyReleased_NUM_DOT);_By.Event[_oG2]=true;}if(_V73.KeyReleased_NUM_DIV){_By._T73[_pG2]=(_V73.KeyReleased_NUM_DIV);_By.Event[_pG2]=true;}if(_V73.TriggerEvents!=undefined){var i=0;while(i<_V73.TriggerEvents.length){var key=parseInt(_V73.TriggerEvents[i])+1;var pFunc=_V73.TriggerEvents[i+1];var _W73=_1H2._n6(key);_By.Event[_Kz2]=true;_By.Event[_Kz2|key]=true;var _X73=new _G73();_X73._H73=pFunc;
_X73._J73=_W73;_X73._I73=key;_By.Triggers[_Kz2|key]=_X73;i+=2;}}if(_V73.CollisionEvents!=undefined){var i=0;while(i<_V73.CollisionEvents.length){_By.Event[_H62]=true;var key=parseInt(_V73.CollisionEvents[i]);var _ZQ=_V73.CollisionEvents[i+1];var _Y73=new _K73();_Y73._H73=_ZQ;_Y73._Z73=false;_Y73._gl=this;_By._hJ2[key]=_Y73;i+=2;}}if(_V73.physicsObject!=undefined){_By._iV.physicsObject=_V73.physicsObject;_By._iV.physicsSensor=_V73.physicsSensor;_By._iV.physicsShape=_V73.physicsShape;_By._iV.physicsDensity=_V73.physicsDensity;
_By._iV.physicsRestitution=_V73.physicsRestitution;_By._iV.physicsGroup=_V73.physicsGroup;_By._iV.physicsLinearDamping=_V73.physicsLinearDamping;_By._iV.physicsAngularDamping=_V73.physicsAngularDamping;_By._iV.physicsFriction=_V73.physicsFriction;_By._iV.physicsAwake=_V73.physicsAwake;_By._iV.physicsKinematic=_V73.physicsKinematic;_By._iV.physicsShapeVertices=_V73.physicsShapeVertices;}}return _By;}_N73.prototype.__73=function(_Y3,_gA){if(this.Event[_Y3])return true;return false;};_N73.prototype._w6=function(_Y3,
index,_Pn,_fA,_083){var _183=_Y3&_xB2;if(!_083&&(_Y3!=_rI)&&_z21!=-1&&!((_Pn.persistent||_c4._283)&&(_183==_II||_183==_HI||_183==_KI||_183==_Ew2||_183==_nA))){return;}var _383=_GA;var _483=_HA;var _583=_pH2;var _683=_yl;_pH2=this;_GA=_Y3;_HA=index;_yl=false;var _kv1=true;switch(_Y3){case _HI:if(this.PreCreateEvent)this.PreCreateEvent(_Pn,_fA);else _kv1=false;break;case _II:if(this.CreateEvent)this.CreateEvent(_Pn,_fA);else _kv1=false;break;case _KI:if(this.DestroyEvent)this.DestroyEvent(_Pn,_fA);else _kv1=false;
break;case _rI:if(this.CleanUpEvent)this.CleanUpEvent(_Pn,_fA);else _kv1=false;break;case _Ew2:_kv1=false;break;case _uB2:_kv1=false;break;case _H62:if(this._hJ2[index])this._hJ2[index]._H73(_Pn,_fA);break;case _Ez2:if(this._R73[_Y3|index])this._R73[_Y3|index](_Pn,_fA);else _kv1=false;break;case _vB2:_kv1=false;break;case _nA:_kv1=false;break;case _Cz2:if(this.DrawEvent)this.DrawEvent(_Pn,_fA);else _kv1=false;break;case _Gz2:if(this._S73[_Y3|index])this._S73[_Y3|index](_Pn,_fA);else _kv1=false;break;case _Iz2:if(this._T73[_Y3|index])this._T73[_Y3|index](_Pn,
_fA);else _kv1=false;break;case _Kz2:if(this.Triggers[_Y3|index]){var _783=this.Triggers[_Y3|index];var _X73=_783._J73;var result=_X73.pFunc(_Pn,_fA);if(result|_iA){_783._H73(_Pn,_fA);}}break;case _yB2:if(this.DrawGUI)this.DrawGUI(_Pn,_fA);else _kv1=false;break;case _AB2:if(this.DrawEventBegin)this.DrawEventBegin(_Pn,_fA);else _kv1=false;break;case _BB2:if(this.DrawEventEnd)this.DrawEventEnd(_Pn,_fA);else _kv1=false;break;case _CB2:if(this.DrawGUIBegin)this.DrawGUIBegin(_Pn,_fA);else _kv1=false;break;case _DB2:if(this.DrawGUIEnd)this.DrawGUIEnd(_Pn,
_fA);else _kv1=false;break;case _EB2:if(this.DrawPre)this.DrawPre(_Pn,_fA);else _kv1=false;break;case _FB2:if(this.DrawPost)this.DrawPost(_Pn,_fA);else _kv1=false;break;case _zB2:if(this.DrawResize)this.DrawResize(_Pn,_fA);else _kv1=false;break;case _Yw2:if(this.StepBeginEvent)this.StepBeginEvent(_Pn,_fA);else _kv1=false;break;case __w2:if(this.StepNormalEvent)this.StepNormalEvent(_Pn,_fA);else _kv1=false;break;case _1x2:if(this.StepEndEvent)this.StepEndEvent(_Pn,_fA);else _kv1=false;break;case _Iv2:if(this.OutsideEvent)this.OutsideEvent(_Pn,
_fA);else _kv1=false;break;case _Kv2:if(this.BoundaryEvent)this.BoundaryEvent(_Pn,_fA);else _kv1=false;break;case _Yx2:if(this.StartGameEvent)this.StartGameEvent(_Pn,_fA);else _kv1=false;break;case __x2:if(this.EndGameEvent)this.EndGameEvent(_Pn,_fA);else _kv1=false;break;case _1y2:if(this.StartRoomEvent)this.StartRoomEvent(_Pn,_fA);else _kv1=false;break;case _3y2:if(this.EndRoomEvent)this.EndRoomEvent(_Pn,_fA);else _kv1=false;break;case _5y2:if(this.NoLivesEvent)this.NoLivesEvent(_Pn,_fA);else _kv1=false;break;
case _7y2:if(this.AnimationEndEvent)this.AnimationEndEvent(_Pn,_fA);else _kv1=false;break;case _s62:if(this.EndOfPathEvent)this.EndOfPathEvent(_Pn,_fA);else _kv1=false;break;case _ay2:if(this.NoHealthEvent)this.NoHealthEvent(_Pn,_fA);else _kv1=false;break;case _cy2:if(this.CloseButtonEvent)this.CloseButtonEvent(_Pn,_fA);else _kv1=false;break;case _Qv2:if(this.OutsideView0Event)this.OutsideView0Event(_Pn,_fA);else _kv1=false;break;case _fy2:if(this.OutsideView1Event)this.OutsideView1Event(_Pn,_fA);else _kv1=false;
break;case _hy2:if(this.OutsideView2Event)this.OutsideView2Event(_Pn,_fA);else _kv1=false;break;case _jy2:if(this.OutsideView3Event)this.OutsideView3Event(_Pn,_fA);else _kv1=false;break;case _ly2:if(this.OutsideView4Event)this.OutsideView4Event(_Pn,_fA);else _kv1=false;break;case _ny2:if(this.OutsideView5Event)this.OutsideView5Event(_Pn,_fA);else _kv1=false;break;case _py2:if(this.OutsideView6Event)this.OutsideView6Event(_Pn,_fA);else _kv1=false;break;case _ry2:if(this.OutsideView7Event)this.OutsideView7Event(_Pn,
_fA);else _kv1=false;break;case _Rv2:if(this.BoundaryView0Event)this.BoundaryView0Event(_Pn,_fA);else _kv1=false;break;case _uy2:if(this.BoundaryView1Event)this.BoundaryView1Event(_Pn,_fA);else _kv1=false;break;case _wy2:if(this.BoundaryView2Event)this.BoundaryView2Event(_Pn,_fA);else _kv1=false;break;case _yy2:if(this.BoundaryView3Event)this.BoundaryView3Event(_Pn,_fA);else _kv1=false;break;case _Ay2:if(this.BoundaryView4Event)this.BoundaryView4Event(_Pn,_fA);else _kv1=false;break;case _Cy2:if(this.BoundaryView5Event)this.BoundaryView5Event(_Pn,
_fA);else _kv1=false;break;case _Ey2:if(this.BoundaryView6Event)this.BoundaryView6Event(_Pn,_fA);else _kv1=false;break;case _Gy2:if(this.BoundaryView7Event)this.BoundaryView7Event(_Pn,_fA);else _kv1=false;break;case _x6:if(this.AnimationUpdateEvent)this.AnimationUpdateEvent(_Pn,_fA);else _kv1=false;break;case _34:if(this.AnimationEventEvent)this.AnimationEventEvent(_Pn,_fA);else _kv1=false;break;case _ez2:if(this.WebImageLoadedEvent)this.WebImageLoadedEvent(_Pn,_fA);else _kv1=false;break;case _gz2:if(this.WebSoundLoadedEvent)this.WebSoundLoadedEvent(_Pn,
_fA);else _kv1=false;break;case _iz2:if(this.WebAsyncEvent)this.WebAsyncEvent(_Pn,_fA);else _kv1=false;break;case _kz2:if(this.WebUserInteractionEvent)this.WebUserInteractionEvent(_Pn,_fA);else _kv1=false;break;case _mz2:if(this.WebIAPEvent)this.WebIAPEvent(_Pn,_fA);else _kv1=false;break;case _qz2:if(this.SocialEvent)this.SocialEvent(_Pn,_fA);else _kv1=false;break;case _sz2:if(this.PushNotificationEvent)this.PushNotificationEvent(_Pn,_fA);else _kv1=false;break;case _691:if(this.AsyncSaveLoadEvent)this.AsyncSaveLoadEvent(_Pn,
_fA);else _kv1=false;break;case _oz2:if(this.NetworkingEvent)this.NetworkingEvent(_Pn,_fA);else _kv1=false;break;case _vz2:if(this.AudioPlaybackEvent)this.AudioPlaybackEvent(_Pn,_fA);else _kv1=false;break;case _xz2:if(this.AudioPlaybackEndedEvent)this.AudioPlaybackEndedEvent(_Pn,_fA);else _kv1=false;break;case _0a1:if(this.AudioRecordingEvent)this.AudioRecordingEvent(_Pn,_fA);else _kv1=false;break;case _n71:if(this.SystemEvent)this.SystemEvent(_Pn,_fA);else _kv1=false;break;case _Az2:if(this.BroadcastMessageEvent)this.BroadcastMessageEvent(_Pn,
_fA);else _kv1=false;break;case _Hy2:if(this.UserEvent0)this.UserEvent0(_Pn,_fA);else _kv1=false;break;case _Jy2:if(this.UserEvent1)this.UserEvent1(_Pn,_fA);else _kv1=false;break;case _Ly2:if(this.UserEvent2)this.UserEvent2(_Pn,_fA);else _kv1=false;break;case _Ny2:if(this.UserEvent3)this.UserEvent3(_Pn,_fA);else _kv1=false;break;case _Py2:if(this.UserEvent4)this.UserEvent4(_Pn,_fA);else _kv1=false;break;case _Ry2:if(this.UserEvent5)this.UserEvent5(_Pn,_fA);else _kv1=false;break;case _Ty2:if(this.UserEvent6)this.UserEvent6(_Pn,
_fA);else _kv1=false;break;case _Vy2:if(this.UserEvent7)this.UserEvent7(_Pn,_fA);else _kv1=false;break;case _Xy2:if(this.UserEvent8)this.UserEvent8(_Pn,_fA);else _kv1=false;break;case _Zy2:if(this.UserEvent9)this.UserEvent9(_Pn,_fA);else _kv1=false;break;case _0z2:if(this.UserEvent10)this.UserEvent10(_Pn,_fA);else _kv1=false;break;case _2z2:if(this.UserEvent11)this.UserEvent11(_Pn,_fA);else _kv1=false;break;case _4z2:if(this.UserEvent12)this.UserEvent12(_Pn,_fA);else _kv1=false;break;case _6z2:if(this.UserEvent13)this.UserEvent13(_Pn,
_fA);else _kv1=false;break;case _8z2:if(this.UserEvent14)this.UserEvent14(_Pn,_fA);else _kv1=false;break;case _az2:if(this.UserEvent15)this.UserEvent15(_Pn,_fA);else _kv1=false;break;case _fw2:if(this.NoButtonPressed)this.NoButtonPressed(_Pn,_fA);else _kv1=false;break;case _6w2:if(this.LeftButtonDown)this.LeftButtonDown(_Pn,_fA);else _kv1=false;break;case _8w2:if(this.RightButtonDown)this.RightButtonDown(_Pn,_fA);else _kv1=false;break;case _7w2:if(this.MiddleButtonDown)this.MiddleButtonDown(_Pn,_fA);else _kv1=false;
break;case _9w2:if(this.LeftButtonPressed)this.LeftButtonPressed(_Pn,_fA);else _kv1=false;break;case _bw2:if(this.RightButtonPressed)this.RightButtonPressed(_Pn,_fA);else _kv1=false;break;case _aw2:if(this.MiddleButtonPressed)this.MiddleButtonPressed(_Pn,_fA);else _kv1=false;break;case _cw2:if(this.LeftButtonReleased)this.LeftButtonReleased(_Pn,_fA);else _kv1=false;break;case _ew2:if(this.RightButtonReleased)this.RightButtonReleased(_Pn,_fA);else _kv1=false;break;case _dw2:if(this.MiddleButtonReleased)this.MiddleButtonReleased(_Pn,
_fA);else _kv1=false;break;case _iw2:if(this.MouseWheelUp)this.MouseWheelUp(_Pn,_fA);else _kv1=false;break;case _jw2:if(this.MouseWheelDown)this.MouseWheelDown(_Pn,_fA);else _kv1=false;break;case _ow2:if(this.GlobalLeftButtonDown)this.GlobalLeftButtonDown(_Pn,_fA);else _kv1=false;break;case _Gx2:if(this.GlobalRightButtonDown)this.GlobalRightButtonDown(_Pn,_fA);else _kv1=false;break;case _Ix2:if(this.GlobalMiddleButtonDown)this.GlobalMiddleButtonDown(_Pn,_fA);else _kv1=false;break;case _pw2:if(this.GlobalLeftButtonPressed)this.GlobalLeftButtonPressed(_Pn,
_fA);else _kv1=false;break;case _Lx2:if(this.GlobalRightButtonPressed)this.GlobalRightButtonPressed(_Pn,_fA);else _kv1=false;break;case _Nx2:if(this.GlobalMiddleButtonPressed)this.GlobalMiddleButtonPressed(_Pn,_fA);else _kv1=false;break;case _qw2:if(this.GlobalLeftButtonReleased)this.GlobalLeftButtonReleased(_Pn,_fA);else _kv1=false;break;case _Qx2:if(this.GlobalRightButtonReleased)this.GlobalRightButtonReleased(_Pn,_fA);else _kv1=false;break;case _Sx2:if(this.GlobalMiddleButtonReleased)this.GlobalMiddleButtonReleased(_Pn,
_fA);else _kv1=false;break;case _gw2:if(this.MouseEnter)this.MouseEnter(_Pn,_fA);else _kv1=false;break;case _hw2:if(this.MouseLeave)this.MouseLeave(_Pn,_fA);else _kv1=false;break;case _Nz2:if(this.GestureTapEvent)this.GestureTapEvent(_Pn,_fA);else _kv1=false;break;case _Pz2:if(this.GestureDoubleTapEvent)this.GestureDoubleTapEvent(_Pn,_fA);else _kv1=false;break;case _Rz2:if(this.GestureDragStartEvent)this.GestureDragStartEvent(_Pn,_fA);else _kv1=false;break;case _Tz2:if(this.GestureDragMoveEvent)this.GestureDragMoveEvent(_Pn,
_fA);else _kv1=false;break;case _Vz2:if(this.GestureDragEndEvent)this.GestureDragEndEvent(_Pn,_fA);else _kv1=false;break;case _Xz2:if(this.GestureFlickEvent)this.GestureFlickEvent(_Pn,_fA);else _kv1=false;break;case _cA2:if(this.GestureGlobalTapEvent)this.GestureGlobalTapEvent(_Pn,_fA);else _kv1=false;break;case _eA2:if(this.GestureGlobalDoubleTapEvent)this.GestureGlobalDoubleTapEvent(_Pn,_fA);else _kv1=false;break;case _gA2:if(this.GestureGlobalDragStartEvent)this.GestureGlobalDragStartEvent(_Pn,_fA);else _kv1=false;
break;case _iA2:if(this.GestureGlobalDragMoveEvent)this.GestureGlobalDragMoveEvent(_Pn,_fA);else _kv1=false;break;case _kA2:if(this.GestureGlobalDragEndEvent)this.GestureGlobalDragEndEvent(_Pn,_fA);else _kv1=false;break;case _mA2:if(this.GestureGlobalFlickEvent)this.GestureGlobalFlickEvent(_Pn,_fA);else _kv1=false;break;case _Kw2:if(this._Q73[0]!=null)this._Q73[0](_Pn,_fA);else _kv1=false;break;case _Lw2:if(this._Q73[1]!=null)this._Q73[1](_Pn,_fA);else _kv1=false;break;case _Mw2:if(this._Q73[2]!=null)this._Q73[2](_Pn,
_fA);else _kv1=false;break;case _Nw2:if(this._Q73[3]!=null)this._Q73[3](_Pn,_fA);else _kv1=false;break;case _Ow2:if(this._Q73[4]!=null)this._Q73[4](_Pn,_fA);else _kv1=false;break;case _Pw2:if(this._Q73[5]!=null)this._Q73[5](_Pn,_fA);else _kv1=false;break;case _Qw2:if(this._Q73[6]!=null)this._Q73[6](_Pn,_fA);else _kv1=false;break;case _Rw2:if(this._Q73[7]!=null)this._Q73[7](_Pn,_fA);else _kv1=false;break;case _Sw2:if(this._Q73[8]!=null)this._Q73[8](_Pn,_fA);else _kv1=false;break;case _Tw2:if(this._Q73[9]!=null)this._Q73[9](_Pn,
_fA);else _kv1=false;break;case _Uw2:if(this._Q73[10]!=null)this._Q73[10](_Pn,_fA);else _kv1=false;break;case _Vw2:if(this._Q73[11]!=null)this._Q73[11](_Pn,_fA);else _kv1=false;break;default :_kv1=false;}_yl=_683;_GA=_383;_HA=_483;_pH2=_583;return _kv1;};function _5T2(_Y3){switch(_Y3){case _HI:return _BA2;case _II:return _Gw2;case _KI:return _Hw2;case _rI:return _Iw2;case _Ew2:return _Jw2;case _uB2:return _Ww2;case _H62:return _2x2;case _Ez2:return _Dz2;case _vB2:return _3x2;case _nA:return _EA;case _Cz2:return _Bz2;case _Gz2:return _Fz2;
case _Iz2:return _Hz2;case _Kz2:return _Jz2;case _yB2:return _Bz2;case _AB2:return _Bz2;case _BB2:return _Bz2;case _CB2:return _Bz2;case _DB2:return _Bz2;case _EB2:return _Bz2;case _FB2:return _Bz2;case _zB2:return _Bz2;case _Yw2:return _Ww2;case __w2:return _Ww2;case _1x2:return _Ww2;case _Iv2:return _EA;case _Kv2:return _EA;case _Yx2:return _EA;case __x2:return _EA;case _1y2:return _EA;case _3y2:return _EA;case _5y2:return _EA;case _7y2:return _EA;case _s62:return _EA;case _ay2:return _EA;case _cy2:return _EA;case _Qv2:return _EA;case _fy2:return _EA;
case _hy2:return _EA;case _jy2:return _EA;case _ly2:return _EA;case _ny2:return _EA;case _py2:return _EA;case _ry2:return _EA;case _Rv2:return _EA;case _uy2:return _EA;case _wy2:return _EA;case _yy2:return _EA;case _Ay2:return _EA;case _Cy2:return _EA;case _Ey2:return _EA;case _Gy2:return _EA;case _x6:return _EA;case _34:return _EA;case _ez2:return _EA;case _gz2:return _EA;case _iz2:return _EA;case _kz2:return _EA;case _mz2:return _EA;case _qz2:return _EA;case _sz2:return _EA;case _691:return _EA;case _oz2:return _EA;case _vz2:return _EA;case _xz2:return _EA;
case _0a1:return _EA;case _n71:return _EA;case _Hy2:return _EA;case _Jy2:return _EA;case _Ly2:return _EA;case _Ny2:return _EA;case _Py2:return _EA;case _Ry2:return _EA;case _Ty2:return _EA;case _Vy2:return _EA;case _Xy2:return _EA;case _Zy2:return _EA;case _0z2:return _EA;case _2z2:return _EA;case _4z2:return _EA;case _6z2:return _EA;case _8z2:return _EA;case _az2:return _EA;case _fw2:return _3x2;case _6w2:return _3x2;case _8w2:return _3x2;case _7w2:return _3x2;case _9w2:return _3x2;case _bw2:return _3x2;case _aw2:return _3x2;case _cw2:return _3x2;
case _ew2:return _3x2;case _dw2:return _3x2;case _iw2:return _3x2;case _jw2:return _3x2;case _ow2:return _3x2;case _Gx2:return _3x2;case _Ix2:return _3x2;case _pw2:return _3x2;case _Lx2:return _3x2;case _Nx2:return _3x2;case _qw2:return _3x2;case _Qx2:return _3x2;case _Sx2:return _3x2;case _gw2:return _3x2;case _hw2:return _3x2;case _Nz2:return _Lz2;case _Pz2:return _Lz2;case _Rz2:return _Lz2;case _Tz2:return _Lz2;case _Vz2:return _Lz2;case _Xz2:return _Lz2;case _cA2:return _Lz2;case _eA2:return _Lz2;case _gA2:return _Lz2;case _iA2:return _Lz2;
case _kA2:return _Lz2;case _mA2:return _Lz2;case _Kw2:return _Jw2;case _Lw2:return _Jw2;case _Mw2:return _Jw2;case _Nw2:return _Jw2;case _Ow2:return _Jw2;case _Pw2:return _Jw2;case _Qw2:return _Jw2;case _Rw2:return _Jw2;case _Sw2:return _Jw2;case _Tw2:return _Jw2;case _Uw2:return _Jw2;case _Vw2:return _Jw2;default :return -1;}}function _6T2(_Y3,_gA){if((_Y3&0xff00)==_Ez2){return _gA;}else if((_Y3&0xff00)==_Gz2){return _gA;}else if((_Y3&0xff00)==_Iz2){return _gA;}else if((_Y3&0xff00)==_H62){return _gA;}switch(_Y3){case _HI:return 0;case _II:return 0;
case _KI:return 0;case _rI:return 0;case _Ew2:return 0;case _uB2:return 0;case _H62:return 0;case _Ez2:return _gA;case _vB2:return 0;case _nA:return 0;case _Cz2:return 0;case _Gz2:return _gA;case _Iz2:return _gA;case _Kz2:return 0;case _yB2:return _GB2;case _AB2:return _AB2&0xff;case _BB2:return _BB2&0xff;case _CB2:return _CB2&0xff;case _DB2:return _DB2&0xff;case _EB2:return _EB2&0xff;case _FB2:return _FB2&0xff;case _zB2:return _HB2&0xff;case _Yw2:return _Xw2;case __w2:return _Zw2;case _1x2:return _0x2;case _Iv2:return _Vx2;case _Kv2:return _Wx2;
case _Yx2:return _Xx2;case __x2:return _Zx2;case _1y2:return _0y2;case _3y2:return _2y2;case _5y2:return _4y2;case _7y2:return _6y2;case _s62:return _8y2;case _ay2:return _9y2;case _cy2:return _by2;case _Qv2:return _dy2;case _fy2:return _ey2;case _hy2:return _gy2;case _jy2:return _iy2;case _ly2:return _ky2;case _ny2:return _my2;case _py2:return _oy2;case _ry2:return _qy2;case _Rv2:return _sy2;case _uy2:return _ty2;case _wy2:return _vy2;case _yy2:return _xy2;case _Ay2:return _zy2;case _Cy2:return _By2;case _Ey2:return _Dy2;case _Gy2:return _Fy2;
case _x6:return _bz2;case _34:return _cz2;case _ez2:return _dz2;case _gz2:return _fz2;case _iz2:return _tz2;case _kz2:return _jz2;case _mz2:return _lz2;case _qz2:return _pz2;case _sz2:return _rz2;case _691:return _tz2;case _oz2:return _nz2;case _vz2:return _uz2;case _xz2:return _wz2;case _0a1:return _0a1;case _n71:return _yz2;case _Az2:return _zz2;case _Hy2:return _DA;case _Jy2:return _Iy2;case _Ly2:return _Ky2;case _Ny2:return _My2;case _Py2:return _Oy2;case _Ry2:return _Qy2;case _Ty2:return _Sy2;case _Vy2:return _Uy2;case _Xy2:return _Wy2;case _Zy2:return _Yy2;
case _0z2:return __y2;case _2z2:return _1z2;case _4z2:return _3z2;case _6z2:return _5z2;case _8z2:return _7z2;case _az2:return _9z2;case _fw2:return _7x2;case _6w2:return _4x2;case _8w2:return _5x2;case _7w2:return _6x2;case _9w2:return _8x2;case _bw2:return _9x2;case _aw2:return _ax2;case _cw2:return _bx2;case _ew2:return _cx2;case _dw2:return _dx2;case _iw2:return _Tx2;case _jw2:return _Ux2;case _ow2:return _Ex2;case _Gx2:return _Fx2;case _Ix2:return _Hx2;case _pw2:return _Jx2;case _Lx2:return _Kx2;case _Nx2:return _Mx2;case _qw2:return _Ox2;
case _Qx2:return _Px2;case _Sx2:return _Rx2;case _gw2:return _ex2;case _hw2:return _fx2;case _Nz2:return _Mz2;case _Pz2:return _Oz2;case _Rz2:return _Qz2;case _Tz2:return _Sz2;case _Vz2:return _Uz2;case _Xz2:return _Wz2;case _cA2:return _bA2;case _eA2:return _dA2;case _gA2:return _fA2;case _iA2:return _hA2;case _kA2:return _jA2;case _mA2:return _lA2;case _Kw2:return 0;case _Lw2:return 1;case _Mw2:return 2;case _Nw2:return 3;case _Ow2:return 4;case _Pw2:return 5;case _Qw2:return 6;case _Rw2:return 7;case _Sw2:return 8;case _Tw2:return 9;case _Uw2:return 10;
case _Vw2:return 11;default :return 0;}}_N73.prototype._NM=function(_Tn){this._kw2._Vf(_Tn);var _By=this;while(_By!=null){_By._F33._Vf(_Tn);_By=_By.__w;}};_N73.prototype._RM=function(_Tn){this._kw2._yL(_Tn);var _883=this;while(_883!=null){_883._F33._yL(_Tn);_883=_883.__w;}};_N73.prototype._983=function(_Y3,_s4,_083){if(!this.Event[_Y3|_s4])return;var _yk=this._F33._yk;for(var i=0;i<_yk.length;i++){var _9o=_yk[i];this._w6(_Y3,_s4,_9o,_9o,_083);}};function _rI2(){this._a83=[];this._082=[];this.length=0;}_rI2.prototype._QS=function(){
return this._082;};_rI2.prototype._Vf=function(_EU2){this.length++;this._a83[_EU2._Ox]=_EU2;this._082[_EU2._ZI]=_EU2;};_rI2.prototype._n6=function(_U73){var index=_UO(_U73,_521,undefined,undefined,true);return this._082[index];};_rI2.prototype._QI=function(_yg){if(!this._082[_yg])return false;else return true;};_rI2.prototype._tC=function(){var ids=[];for(var i=0;i<this._082.length;++i){if(this._082[i]){ids.push(i);}}return ids;};_rI2.prototype._b83=function(_U73){var _By=this._082[_U73];if(!_By){return "<undefined>";
}else {return _By._Ox;}};_rI2.prototype._c83=function(_w4){var _By=this._a83[_w4];if(_By!=null)return _By._ZI;return -1;};_rI2.prototype._24=function(_Y3,_s4,_083){for(var _Dx=0;_Dx<_14._082.length;_Dx++){var _By=_14._082[_Dx];if(_By!==undefined){if(_By.Event[_Y3|_s4]){_By._983(_Y3,_s4,_083);}}}};_rI2.prototype._rJ2=function(){var _yk=this._082;for(var index=0;index<_yk.length;index++){var _By=_yk[index];if(_By===undefined)continue;_By.__w=_14._n6(_By._XI);if(!_By.__w)_By.__w=null;for(var e=0;e<_By.Event.length;
e++){var _hi=_By.Event[e];if(_hi){_By._Hv2[e]=true;}}}for(var index=0;index<_yk.length;index++){var _313=_yk[index];if(_313===undefined)continue;var _By=_313.__w;while(_By!=null){for(var e=0;e<_By.Event.length;e++){var _hi=_By.Event[e];if(_hi){_313._Hv2[e]=true;}}_By=_By.__w;}}};function GetWithArray(_U73){var _d83=[];if((typeof _U73==="object"&&!(_U73 instanceof _Zn))&&!((_U73 instanceof Array)||(_U73 instanceof ArrayBuffer))){_d83[0]=_U73;}else if(_U73===__I){_d83=_c4._QS();}else if((typeof _U73==="undefined")){
}else {_U73=yyGetInt32(_U73);var _By=_14._n6(_U73);if(_By!=null){_d83=_By._F33._yk;}else {var _9o=_Fx._n6(_U73);if(_9o!=null){_d83[0]=_9o;}}}var _95=[];for(var _c7=0;_c7<_d83.length;++_c7){var _Dx=_d83[_c7];if(_Dx instanceof _BI){if(!_Dx.marked&&_Dx.active){_95.push(_Dx);}}else {_95.push(_Dx);}}return _95;}function _hl(){this._yk=[];this.length=0;this._c9=0;this._e83=-1;}_hl.prototype._n6=function(_s4){return this._yk[_s4];};_hl.prototype._Vf=function(_wL2){for(var i=0;i<this._yk.length;i++){if(_wL2.depth<this._yk[i].depth){
this._yk.splice(i,0,_wL2);this._c9++;this.length=this._yk.length;return i;}}this._yk[this._yk.length]=_wL2;this._c9++;this.length=this._yk.length;return this.length-1;};_hl.prototype._f83=function(_wL2){if(this._e83<0){this._e83=this._yk.length;}this._yk[this._yk.length]=_wL2;this._c9++;this.length=this._yk.length;return this.length-1;};_hl.prototype._263=function(_wL2){var i=this._e83;if(i<0)return;var _ik=[];while(i<this._yk.length){_ik[_ik.length]=this._yk[i];i++;}this._yk.splice(this._e83,this._yk.length-this._e83);
for(i=0;i<_ik.length;i++){this._Vf(_ik[i]);}this._e83=-1;};_hl.prototype._pl=function(_wL2){for(var i=0;i<this._yk.length;i++){if(_wL2==this._yk[i]){this._yk.splice(i,1);this._c9--;this.length=this._yk.length;return true;}}return false;};_hl.prototype._ag=function(){this._yk=[];this.length=this._c9=0;};_hl.prototype._n6=function(_s4){return this._yk[_s4];};_hl.prototype._5N=function(_wL2){for(var i=0;i<this._yk.length;i++){if(_wL2==this._yk[i]){return i;}}return -1;};_hl.prototype.__i=function(_0j){this._yk=_0j._yk.slice();
this.length=_0j.length;this._c9=_0j._c9;this._e83=_0j._e83;};var _g83=-1,_h83=0,_i83=1,_j83=0,_k83=1,_l83=2,_tv2=3,_nv2=4,_m83=5,_gv2=6,_n83=7,_jv2=8,_pv2=9,_ev2=10,_o83=11,_p83=12,_vv2=13,_q83=14,_r83=0,_s83=1,_t83=2,_u83=3,_v83=4,_w83=5,_x83=0,_y83=1,_z83=2,_A83=0,_B83=1,_C83=2,_D83=3;var _E83=[];function _F83(){this._JC=_G83;this._ag=_G83;this._JC();}function _G83(){this.__type="[ParticleType]";this.id=-1;this._H83=true;this._mN=-1;this._YV=0;this._ZV=true;this.__V=false;this._0W=false;this.shape=_j83;
this.sizeMinX=1.0;this.sizeMaxX=1.0;this.sizeMinY=1.0;this.sizeMaxY=1.0;this._1W=0.0;this._2W=0.0;this._3W=0.0;this._4W=0.0;this._OJ=1.0;this._PJ=1.0;this._5W=100;this._6W=100;this._9W=0;this._aW=0;this._7W=0;this._8W=0;this._bW=0.0;this._cW=0.0;this._dW=0.0;this._eW=0.0;this._fW=0.0;this._gW=0.0;this._hW=0.0;this._iW=0.0;this._lW=0.0;this._mW=0.0;this._nW=0.0;this._oW=0.0;this._pW=0.0;this._jW=0.0;this._kW=270.0;this._I83=_r83;this._qW=[];this._qW[0]=_Om;this._qW[1]=_Om;this._qW[2]=_Om;this._rW=1.0;
this._sW=1.0;this._tW=1.0;this._uW=false;}function _J83(){this._ag=_K83;this._JC=_K83;this._JC();}function _K83(){this.particles=[];this._H83=true;this._L83=false;this.name=undefined;this.enabled=true;this.mode=_g83;this._Mk=0;this._TV=false;this.delayMin=0;this.delayMax=0;this._M83=0;this.delayUnit=1;this.intervalMin=0;this.intervalMax=0;this._N83=0;this.intervalUnit=1;this._XV=0;this._US=0.0;this._VS=0.0;this._WS=0.0;this._XS=0.0;this.shape=_A83;this._UV=_x83;}function _O83(){this._P83=false;this._XV=0;
this._Q83=0;this._R83=0;this.x=0;this.y=0;this.speed=0;this.dir=0;this._S01=0;this._I83=_r83;this._qW=[];this._qW[0]=_Om;this._qW[1]=_Om;this._qW[2]=_Om;this.color=0xffffff;this._S83=false;this.alpha=1.0;this._T83=0;this._U83=0;this._YV=0;this._411=0;this._V83=0;this.id=-1;}function _W83(){this._ag=_X83;this._JC=_X83;this._JC();}function _X83(){this._MV=-1;this._H83=false;this.emitters=[];this._PV=true;this.depth=0.0;this._NV=0.0;this._OV=0.0;this._Y83=true;this._Z83=true;this.color=_Om;this.alpha=1.0;
this.angle=0.0;this.globalSpaceParticles=false;this._E_2=new _qr();this.__83=-1;this._093=false;}function _eC(){this.name="";this.originX=0;this.originY=0;this.drawOrder=0;this.globalSpaceParticles=false;this.index=-1;this.emitters=[];}_eC._tV=[];_eC._7a1=function(){var __A1=new _eC();__A1.index=_eC._m5();_eC._tV.push(__A1);return __A1;};_eC._CJ2=function(json){var __A1=_eC._7a1();__A1.name=json.pName;__A1.originX=json.originX;__A1.originY=json.originY;__A1.drawOrder=json.drawOrder;__A1.globalSpaceParticles=json.globalSpaceParticles;
for(var i=0;i<json.emitters.length;++i){__A1.emitters.push(json.emitters[i]);}return __A1;};_eC._m5=function(){return _eC._tV.length;};_eC._n6=function(index){if(index<0||index>=_eC._m5()){return null;}return _eC._tV[index];};_eC._fC=function(name){for(var i=_eC._m5()-1;i>=0;--i){if(name==_eC._tV[i].name){return i;}}return -1;};_eC._tC=function(){var ids=Array(_eC._m5());for(var i=0;i<ids.length;++i){ids[i]=i;}return ids;};_eC.prototype._193=function(){return this.index;};_eC.prototype._4M=function(_YM,_IY,
_293){if(_YM===undefined)_YM=-1;if(_IY===undefined)_IY=true;if(_293===undefined)_293=null;var _qC=(_293==null)?_xW(_YM,_IY):_393(_YM,_IY,_293);if(_qC==-1){return _qC;}var __A1=_wV[_qC];__A1._MV=this.index;__A1._PV=(this.drawOrder==0);__A1.globalSpaceParticles=this.globalSpaceParticles;for(var i=this.emitters.length-1;i>=0;--i){var _493=this.emitters[i];var _593=_QV[_493];var _693=_hY(_qC);var _793=__A1.emitters[_693];_793.name=_593.name;_793.enabled=_593.enabled;_793.mode=_593.mode;_793._Mk=_593._Mk;_793._TV=_593._TV;
_793._UV=_593._UV;_793.shape=_593.shape;_793._US=_593._US;_793._WS=_593._WS;_793._VS=_593._VS;_793._XS=_593._XS;_793._XV=_593._XV;_yY(_qC,_693,_593.delayMin,_593.delayMax,_593.delayUnit);_CY(_qC,_693,_593.intervalMin,_593.intervalMax,_593.intervalUnit);if(!_793.enabled)continue;if(_793.mode==_h83){_uY(_qC,_693,_593._XV,_593._Mk);}else if(_793._M83<=0.0){_tY(_qC,_693,_593._XV,_593._Mk);}}return _qC;};function _0T(_8d){var _Y4=_OQ();return _Y4*_8d;}function _893(_993,_a93,_b93){var __r=_a93-_993;if(__r<=0)return _993;
var _w7=0.0;var _6p=0.0;switch(_b93){case _x83:_6p=_993+_0T(1)*__r;break;case _y83:{do {_w7=(_0T(1)-0.5)*6.0;}while((exp(-(_w7*_w7)*0.5)<=_0T(1)));_6p=_993+((_w7+3.0)*(1.0/6.0))*__r;}break;case _z83:{do {_w7=(_0T(1)-0.5)*6.0;}while(!(exp(-(_w7*_w7)*0.5)>_0T(1)));if(_w7<0.0)_w7+=6.0;_6p=_993+(_w7*(1.0/6.0))*__r;}break;default :_6p=_993+_0T(1)*__r;}return _6p;}function _c93(_Yi,_8d){var dir;if(_Yi==0){if(_8d>0){dir=270;}else if(_8d<0){dir=90;}else {dir=0;}}else {var _iE=180.0*(Math.atan2(_8d,_Yi))/Math.PI;if(_iE<=0){
dir=-_iE;}else {dir=360.0-_iE;}}return dir-360.0*Math.floor(dir/360.0);}function _d93(_wI,_e93){return _e93*Math.cos(_wI*Math.PI/180.0);}function _f93(_wI,_e93){return -_e93*Math.sin(_wI*Math.PI/180.0);}function _g93(_h93){if(_h93._Q83<=0||_h93._R83<=0){switch(_h93._I83){case _r83:_h93.color=_h93._qW[0];break;case _s83:_h93.color=_h93._qW[0];break;case _t83:_h93.color=_h93._qW[0];break;case _u83:{var _Y4=~~(_893(_h93._qW[0],_h93._qW[1],_x83));var _Z4=~~(_893(_h93._qW[2],_h93._qW[3],_x83));var __4=~~(_893(_h93._qW[4],
_h93._qW[5],_x83));_h93.color=(_Y4<<16)+(_Z4<<8)+__4;}break;case _v83:{var h=~~(_893(_h93._qW[0],_h93._qW[1],_x83));var __h=~~(_893(_h93._qW[2],_h93._qW[3],_x83));var _H5=~~(_893(_h93._qW[4],_h93._qW[5],_x83));_h93.color=make_color_hsv(h,__h,_H5);}break;case _w83:_h93.color=_6d(_dA(_h93._qW[0],_h93._qW[1],_0T(1)));break;}}else {switch(_h93._I83){case _r83:_h93.color=_h93._qW[0];break;case _s83:{var _Je=_h93._Q83/_h93._R83;if(_Je>1)_Je=1;_h93.color=_dA((_h93._qW[0]),(_h93._qW[1]),_Je);}break;case _t83:{var _Je=2.0*_h93._Q83/_h93._R83;
if(_Je>2)_Je=2;if(_Je<1){_h93.color=_dA(_h93._qW[0],_h93._qW[1],_Je);}else {_h93.color=_dA(_h93._qW[1],_h93._qW[2],_Je-1);}}break;}}}function _I01(_yW,_96,_a6,_WW){var _6p=new _O83;var _i93=_CV[_WW];if(_i93==null||_i93==undefined)return null;_6p._P83=true;_6p._XV=_WW;_6p.x=_96;_6p.y=_a6;_6p.speed=_893(_i93._bW,_i93._cW,0);_6p.dir=_893(_i93._fW,_i93._gW,0);_6p._S01=_893(_i93._lW,_i93._mW,0);_6p._R83=_893(_i93._5W,_i93._6W,0);_6p._Q83=0;_6p.color=0xffffff;_6p._I83=_i93._I83;_6p._qW=[];for(var i=0;i<_i93._qW.length;
++i){_6p._qW.push(_i93._qW[i]);}_g93(_6p);_6p.alpha=_i93._rW;var random=Math.random();_6p._T83=_i93.sizeMinX+((_i93.sizeMaxX-_i93.sizeMinX)*random);_6p._U83=_i93.sizeMinY+((_i93.sizeMaxY-_i93.sizeMinY)*random);_6p._uW=_i93._uW;if(_i93._0W){_6p._YV=_0T(10000);}else {_6p._YV=_i93._YV;}_6p._411=_6p._YV;if(_yW.globalSpaceParticles){_6p.dir+=_XH2(Math.atan2(_yW._E_2._e7[_Os],_yW._E_2._e7[_Ns]));}_6p._V83=_0T(100000);return _6p;}function _1X(){var _6a=_CV.length;_CV[_6a]=new _F83();return _6a;}function _2X(_c5){
_c5=yyGetInt32(_c5);var _j93=_CV[_c5];if(_j93==null||_j93==undefined)return false;_CV[_c5]=null;return true;}function _4X(_c5){_c5=yyGetInt32(_c5);var _j93=_CV[_c5];if(_j93==null||_j93==undefined)return false;_CV[_c5]._ag();return true;}function _k93(){_CV=[];}function _3X(_c5){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return false;return true;}function _6X(_c5,_5X){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93.shape=yyGetInt32(_5X);_j93._mN=-1;}function _aX(_c5,_94,
_q8,_8X,_l93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._mN=yyGetInt32(_94);_j93._ZV=yyGetBool(_q8);_j93.__V=yyGetBool(_8X);_j93._0W=yyGetBool(_l93);}function _cX(_c5,_bX){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._YV=yyGetInt32(_bX);}function _hX(_c5,_m93,_n93,_o93,_p93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93.sizeMinX=yyGetReal(_m93);_j93.sizeMaxX=yyGetReal(_n93);_j93._1W=yyGetReal(_o93);_j93._3W=yyGetReal(_p93);
_j93.sizeMinY=yyGetReal(_m93);_j93.sizeMaxY=yyGetReal(_n93);_j93._2W=yyGetReal(_o93);_j93._4W=yyGetReal(_p93);}function _iX(_c5,_m93,_n93,_o93,_p93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93.sizeMinX=yyGetReal(_m93);_j93.sizeMaxX=yyGetReal(_n93);_j93._1W=yyGetReal(_o93);_j93._3W=yyGetReal(_p93);}function _jX(_c5,_m93,_n93,_o93,_p93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93.sizeMinY=yyGetReal(_m93);_j93.sizeMaxY=yyGetReal(_n93);_j93._2W=yyGetReal(_o93);
_j93._4W=yyGetReal(_p93);}function _kX(_c5,_Qm,_Rm){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._OJ=yyGetReal(_Qm);_j93._PJ=yyGetReal(_Rm);}function _SX(_c5,_q93,_r93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._5W=yyGetInt32(_q93);_j93._6W=yyGetInt32(_r93);}function _VX(_c5,_s93,_t93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._aW=yyGetInt32(_s93);_j93._9W=yyGetInt32(_t93);}function _YX(_c5,_u93,_v93){var _j93=_CV[yyGetInt32(_c5)];
if(_j93==null||_j93==undefined)return;_j93._8W=yyGetInt32(_u93);_j93._7W=yyGetInt32(_v93);}function _8Y(_c5,_w93,_x93,_y93,_z93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._bW=yyGetReal(_w93);_j93._cW=yyGetReal(_x93);_j93._dW=yyGetReal(_y93);_j93._eW=yyGetReal(_z93);}function _dY(_c5,_A93,_B93,_C93,_D93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._fW=yyGetReal(_A93);_j93._gW=yyGetReal(_B93);_j93._hW=yyGetReal(_C93);_j93._iW=yyGetReal(_D93);
}function _3Y(_c5,_E93,_F93,_G93,_H93,_I93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._lW=yyGetReal(_E93);_j93._mW=yyGetReal(_F93);_j93._nW=yyGetReal(_G93);_j93._oW=yyGetReal(_H93);_j93._pW=yyGetBool(_I93);}function _gY(_c5,_J93,_K93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._jW=yyGetReal(_J93);_j93._kW=yyGetReal(_K93);}function _CX(_c5,_wX,_xX,_yX,_zX,_AX,_BX){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._I83=_u83;
_j93._qW[0]=yyGetInt32(_AX);_j93._qW[1]=yyGetInt32(_BX);_j93._qW[2]=yyGetInt32(_yX);_j93._qW[3]=yyGetInt32(_zX);_j93._qW[4]=yyGetInt32(_wX);_j93._qW[5]=yyGetInt32(_xX);}function _vX(_c5,_rm,_sm){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._I83=_w83;_j93._qW[0]=_6d(yyGetInt32(_rm));_j93._qW[1]=_6d(yyGetInt32(_sm));}function _JX(_c5,_DX,_EX,_FX,_GX,_HX,_IX){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._I83=_v83;_j93._qW[0]=yyGetInt32(_DX);_j93._qW[1]=yyGetInt32(_EX);
_j93._qW[2]=yyGetInt32(_FX);_j93._qW[3]=yyGetInt32(_GX);_j93._qW[4]=yyGetInt32(_HX);_j93._qW[5]=yyGetInt32(_IX);}function _oX(_c5,_L93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._I83=_r83;_j93._qW[0]=_6d(yyGetInt32(_L93));}function _qX(_c5,_L93,_M93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._I83=_s83;_j93._qW[0]=_6d(yyGetInt32(_L93));_j93._qW[1]=_6d(yyGetInt32(_M93));}function _sX(_c5,_L93,_N93,_M93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;
_j93._I83=(_09===null)?_r83:_t83;_j93._qW[0]=_6d(yyGetInt32(_L93));_j93._qW[1]=_6d(yyGetInt32(_N93));_j93._qW[2]=_6d(yyGetInt32(_M93));}function _LX(_c5,_O93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_O93=yyGetReal(_O93);_j93._rW=_O93;_j93._sW=_O93;_j93._tW=_O93;}function _NX(_c5,_O93,_P93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_O93=yyGetReal(_O93);_P93=yyGetReal(_P93);_j93._rW=_O93;_j93._sW=(_O93+_P93)/2.0;_j93._tW=_P93;}function _PX(_c5,_O93,
_Q93,_P93){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._rW=yyGetReal(_O93);_j93._sW=yyGetReal(_Q93);_j93._tW=yyGetReal(_P93);}function _mX(_c5,_lX){var _j93=_CV[yyGetInt32(_c5)];if(_j93==null||_j93==undefined)return;_j93._uW=yyGetReal(_lX);}var _QV=[];var _R93={};var _S93=_q83;function _BJ2(_WI2){var _HT2=_WI2.PSEmitters;for(var i=0;i<_HT2.length;++i){var _T93=_HT2[i];var _U93=_HT2[i];var _V93=_1X();var type=_CV[_V93];type._mN=_T93.spriteId;type._YV=_T93.headPosition;type._ZV=_T93.spriteAnimate;
type.__V=_T93.spriteStretch;type._0W=_T93.spriteRandom;type.shape=_T93.texture;type.sizeMinX=_T93.sizeMinX;type.sizeMaxX=_T93.sizeMaxX;type.sizeMinY=_T93.sizeMinY;type.sizeMaxY=_T93.sizeMaxY;type._1W=_T93.sizeIncreaseX;type._2W=_T93.sizeIncreaseY;type._3W=_T93.sizeWiggleX;type._4W=_T93.sizeWiggleY;type._OJ=_T93.scaleX;type._PJ=_T93.scaleY;type._5W=_T93.lifetimeMin;type._6W=_T93.lifetimeMax;type._7W=_T93.spawnOnDeath;type._8W=_T93.spawnOnDeathCount;type._9W=_T93.spawnOnUpdate;type._aW=_T93.spawnOnUpdateCount;
type._bW=_T93.speedMin;type._cW=_T93.speedMax;type._dW=_T93.speedIncrease;type._eW=_T93.speedWiggle;type._fW=_T93.directionMin;type._gW=_T93.directionMax;type._hW=_T93.directionIncrease;type._iW=_T93.directionWiggle;type._jW=_T93.gravityForce;type._kW=_T93.gravityDirection;type._lW=_T93.orientationMin;type._mW=_T93.orientationMax;type._nW=_T93.orientationIncrease;type._oW=_T93.orientationWiggle;type._pW=_T93.orientationRelative;type._I83=_t83;type._qW[0]=_T93.startColour;type._qW[1]=_T93.midColour;
type._qW[2]=_T93.endColour;type._rW=((_T93.startColour>>24)&0xFF)/255.0;type._sW=((_T93.midColour>>24)&0xFF)/255.0;type._tW=((_T93.endColour>>24)&0xFF)/255.0;type._uW=_T93.additiveBlend;var emitter=new _J83();emitter.name=_U93.pName;emitter.enabled=_U93.enabled;emitter.mode=_U93.mode;emitter._Mk=_U93.emitCount;emitter.delayMin=_U93.delayMin;emitter.delayMax=_U93.delayMax;emitter.delayUnit=_U93.delayUnit;emitter.intervalMin=_U93.intervalMin;emitter.intervalMax=_U93.intervalMax;emitter.intervalUnit=_U93.intervalUnit;
emitter._TV=_U93.emitRelative;emitter._UV=_U93.distribution;emitter.shape=_U93.shape;emitter._US=_U93.regionX-_U93.regionW*0.5;emitter._WS=_U93.regionY-_U93.regionH*0.5;emitter._VS=_U93.regionX+_U93.regionW*0.5;emitter._XS=_U93.regionY+_U93.regionH*0.5;emitter._XV=_V93;_QV[i]=emitter;}return true;}function _hY(_yV){_yV=yyGetInt32(_yV);if(!_AW(_yV))return -1;var _W93=_wV[_yV];var _6a=0;var emitter=null;while(_6a<_W93.emitters.length){var e=_W93.emitters[_6a];if(!e._H83&&!e._L83){emitter=e;break;}++_6a;}
if(!emitter){emitter=new _J83();_W93.emitters.push(emitter);}emitter._H83=true;_mY(_yV,_6a);return _6a;}function _iY(_yV,_c5){_yV=yyGetInt32(_yV);_c5=yyGetInt32(_c5);if(!_lY(_yV,_c5))return false;var emitter=_wV[_yV].emitters[_c5];emitter._H83=false;emitter._L83=true;return true;}function _jY(_yV){_yV=yyGetInt32(_yV);if(!_AW(_yV))return false;for(var i=_wV[_yV].emitters.length-1;i>=0;--i){_iY(_yV,i);}return true;}function _kY(_yV,_c5,_xr){_yV=yyGetInt32(_yV);_c5=yyGetInt32(_c5);if(!_AW(_yV))return;if(!_lY(_yV,
_c5))return;_wV[_yV].emitters[_c5].enabled=yyGetBool(_xr);}function _lY(_yV,_c5){_yV=yyGetInt32(_yV);_c5=yyGetInt32(_c5);if(!_AW(_yV))return false;var _W93=_wV[_yV];if(_c5<0||_c5>=_W93.emitters.length)return false;var _X93=_W93.emitters[_c5];if(!_X93._H83)return false;return true;}function _mY(_yV,_c5){_yV=yyGetInt32(_yV);_c5=yyGetInt32(_c5);if(!_lY(_yV,_c5))return false;_wV[_yV].emitters[_c5]._JC();}function _sY(_yV,_c5,_nY,_oY,_pY,_qY,_5X,_Y93){_yV=yyGetInt32(_yV);_c5=yyGetInt32(_c5);if(!_lY(_yV,_c5))return;
var _X93=_wV[_yV].emitters[_c5];_X93._US=yyGetReal(_nY);_X93._VS=yyGetReal(_oY);_X93._WS=yyGetReal(_pY);_X93._XS=yyGetReal(_qY);_X93.shape=yyGetInt32(_5X);_X93._UV=yyGetInt32(_Y93);}function _Z93(_yW,_581,_96,_a6,_WW,_4A,__93,_Xd){var particles=_581.particles;__93=(__93===undefined)?false:__93;_Xd=(_Xd===undefined)?0xFFFFFF:_Xd;if(__93){_Xd=_6d(yyGetInt32(_Xd));}_4A=yyGetInt32(_4A);_WW=yyGetInt32(_WW);for(var i=0;i<_4A;i++){var index=particles.length;particles[index]=_I01(_yW,yyGetReal(_96),yyGetReal(_a6),
_WW);if(__93){particles[index]._I83=_r83;particles[index]._qW[0]=_Xd;}}}function _0a3(_yW,_581,_96,_a6,_89,_99,_5X,_b93,_1a3,_4A){if(_581._TV){_4A=_89*_99*_4A*0.00003;}if(_4A<0){var _Y4=_0T(-_4A)|0;if(_Y4==0){_4A=1;}else {return;}}var _2a3=_4A-~~_4A;_4A=~~_4A;if(_2a3>0.0&&Math.random()<=_2a3){_4A+=1.0;}if(_4A==0.0)return;var _zk=new _Er(_96,_a6,0);var right=new _Er(_89,0,0);var _U53=new _Er(0,_99,0);if(_yW.globalSpaceParticles){_zk._Qr+=_yW._NV;_zk._Rr+=_yW._OV;_zk=_yW._E_2._jF(_zk);right._Qr=(_yW._E_2._e7[_Ns]*_89);
right._Rr=(_yW._E_2._e7[_Rs]*_89);right._Sr=(_yW._E_2._e7[_Vs]*_89);_U53._Qr=(_yW._E_2._e7[_Os]*_99);_U53._Rr=(_yW._E_2._e7[_gs]*_99);_U53._Sr=(_yW._E_2._e7[_Ws]*_99);}for(var i=0;i<_4A;++i){var _w7,_y7;var _3a3=false;while(!_3a3){_w7=_893(0.0,1.0,_b93);_y7=_893(0.0,1.0,_b93);if((_b93==_z83)&&(_5X!=_D83)){if(_0T()<0.5){_w7=_893(0.0,1.0,0);}else {_y7=_893(0.0,1.0,0);}}switch(_5X){case _B83:{var __b=_w7-0.5;var _0c=_y7-0.5;if((__b*__b+_0c*_0c)<=0.25){_3a3=true;}}break;case _C83:if((Math.abs(_w7-0.5)+Math.abs(_y7-0.5))<=0.5){
_3a3=true;}break;case _A83:case _D83:default :_3a3=true;break;}}var _4a3;var _5a3;if(_5X==_D83){_4a3=_zk._Qr+right._Qr*_w7+_U53._Qr*_w7;_5a3=_zk._Rr+right._Rr*_w7+_U53._Rr*_w7;}else {_4a3=_zk._Qr+right._Qr*_w7+_U53._Qr*_y7;_5a3=_zk._Rr+right._Rr*_w7+_U53._Rr*_y7;}_Z93(_yW,_581,_4a3,_5a3,_1a3,1);}}function _tY(_yV,_c5,_1a3,_4A){_yV=yyGetInt32(_yV);_c5=yyGetInt32(_c5);if(!_lY(_yV,_c5))return;var __A1=_wV[_yV];var emitter=__A1.emitters[_c5];if(!emitter.enabled)return;var _6a3=emitter._VS-emitter._US;var _7a3=emitter._XS-emitter._WS;
_1a3=yyGetInt32(_1a3);_4A=yyGetReal(_4A);_0a3(__A1,emitter,emitter._US,emitter._WS,_6a3,_7a3,emitter.shape,emitter._UV,_1a3,_4A);}function _uY(_yV,_c5,_1a3,_4A){_yV=yyGetInt32(_yV);_c5=yyGetInt32(_c5);if(!_lY(_yV,_c5))return;var _X93=_wV[_yV].emitters[_c5];_X93._XV=yyGetInt32(_1a3);_X93._Mk=yyGetReal(_4A);}function _8a3(_581){if(_581.delayMin==0&&_581.delayMax==0){_581._M83=0;return;}_581._M83=(_581.delayUnit==1)?irandom_range(~~_581.delayMin,~~_581.delayMax):random_range(_581.delayMin,_581.delayMax);
}function _yY(_yV,_c5,_vY,_wY,_xY){if(!_lY(_yV,_c5))return;var _X93=_wV[_yV].emitters[_c5];_X93.delayMin=yyGetInt32(_vY);_X93.delayMax=yyGetReal(_wY);_X93.delayUnit=yyGetReal(_xY);_8a3(_X93);}function _9a3(_581){if(_581.intervalMin==0&&_581.intervalMax==0){_581._N83=0;return;}_581._N83=(_581.intervalUnit==1)?irandom_range(~~_581.intervalMin,~~_581.intervalMax):random_range(_581.intervalMin,_581.intervalMax);}function _CY(_yV,_c5,_zY,_AY,_BY){if(!_lY(_yV,_c5))return;var _X93=_wV[_yV].emitters[_c5];_X93.intervalMin=yyGetInt32(_zY);
_X93.intervalMax=yyGetReal(_AY);_X93.intervalUnit=yyGetReal(_BY);_9a3(_X93);}function _DY(_yV,_c5,_xr){_yV=yyGetInt32(_yV);_c5=yyGetInt32(_c5);if(!_lY(_yV,_c5))return;_wV[_yV].emitters[_c5]._TV=yyGetBool(_xr);}function _XW(_yV,_96,_a6,_WW,_4A){var __A1=_wV[_yV];var _693=-1;for(var i=0;i<__A1.emitters.length;++i){var emitter=__A1.emitters[i];if(emitter.enabled&&emitter._H83){_693=i;break;}}if(_693==-1){_693=_hY(_yV);}_Z93(__A1,__A1.emitters[_693],_96,_a6,_WW,_4A);}function _YW(_yV,_96,_a6,_WW,_Xd,_4A){if(!_AW(_yV)){
console.log("part_particles_create :: particle system does not exist!");return;}if(!_3X(_WW)){console.log("part_particles_create :: particle type does not exist!");return;}var __A1=_wV[_yV];var _693=-1;for(var i=0;i<__A1.emitters.length;++i){var emitter=__A1.emitters[i];if(emitter.enabled&&emitter._H83){_693=i;break;}}if(_693==-1){_693=_hY(_yV);}_Z93(__A1,__A1.emitters[_693],_96,_a6,_WW,_4A,true,_Xd);}function _ZW(_yV,_96,_a6,_wW){if(!_AW(_yV)){console.log("part_particles_burst :: particle system does not exist!");
return;}var _961=_eC._n6(_wW);if(_961==null){console.log("part_particles_burst :: particle system asset does not exist!");return;}var __A1=_wV[_yV];var _aa3=_961.emitters.length;var _ba3=[];for(var i=0;i<__A1.emitters.length;++i){if(__A1.emitters[i].enabled)_ba3.push(i);}for(var i=_aa3-_ba3.length;i>0;--i)_ba3.push(_hY(_yV));for(var i=0;i<_aa3;++i){var _493=_961.emitters[_aa3-i-1];var emitter=_QV[_493];if(!emitter.enabled)continue;var _6a3=emitter._VS-emitter._US;var _7a3=emitter._XS-emitter._WS;_0a3(__A1,
__A1.emitters[_ba3[i]],_96+emitter._US,_a6+emitter._WS,_6a3,_7a3,emitter.shape,emitter._UV,emitter._XV,emitter._Mk);}}function __W(_yV){var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return false;for(var i=_W93.emitters.length-1;i>=0;--i){var _X93=_W93.emitters[i];_X93.particles=[];}return true;}function _ca3(_da3,_s4){_da3.splice(_s4,1);}function _0X(_yV){var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return 0;var _c9=0;for(var i=_W93.emitters.length-1;i>=0;--i){var _X93=_W93.emitters[i];
_c9+=_X93.particles.length;}return _c9;}function _ea3(_YM){var _fa3=null;if(_YM==-1){_fa3=new _HK();_bo._mM(_c4,0,_fa3,true,true);}else {var room=_bo._co();if(room!=null){layer=_bo._6J(room,_YM);if(layer!=null){_fa3=new _HK();if(room==_c4){var _bc=_bo._gM(_c4,layer,_fa3,true);if(_bc==-1){_bo._PL(_c4,_fa3._Ce,true);_fa3=null;}}else {_bo._mM(_c4,0,_fa3,true,true);}}}}return _fa3;}function _393(_YM,_IY,_ga3){var index;for(index=0;index<_wV.length;++index){if(_wV[index]==null){break;}}_wV[index]=new _W83();_wV[index].id=index;
_wV[index].__83=-1;_BW(index,false);_ga3._IK=index;_wV[index].__83=_ga3._Ce;_wV[index]._093=!_IY;if(_YM!=-1){_wV[index].depth=_ga3._mH.depth;}return index;}function _xW(_YM,_IY){if(_YM==undefined)_YM=-1;else _YM=yyGetInt32(_YM);if(_IY==undefined)_IY=true;else _IY=yyGetBool(_IY);var _fa3=_ea3(_YM);if(_fa3==null)return -1;return _393(_YM,_IY,_fa3);}function _AW(_yV){var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return false;return true;}function _zW(_yV){_yV=yyGetInt32(_yV);var _W93=_wV[_yV];if(_W93==null||_W93==undefined)return;
_BW(_yV,false);if(_e4){_bo._PL(_c4,_wV[_yV].__83,true);}_wV[_yV]=null;return true;}function _ha3(){for(var i=0;i<_wV.length;i++){_zW(i);}_wV=[];}function _BW(_yV,_ia3){_yV=yyGetInt32(_yV);var _W93=_wV[_yV];if(_W93==null||_W93==undefined)return;_W93.emitters=[];_W93._PV=true;_W93.depth=0.0;_W93._NV=0.0;_W93._OV=0.0;_W93._Y83=true;_W93._Z83=true;_W93.color=_Om;_W93.alpha=1.0;_W93.angle=0.0;_W93.globalSpaceParticles=false;_W93._E_2=new _qr();var _kH=null;var _ja3=null;var _do=_bo._WL(_c4,_W93.__83);if(_do!=null){
_kH=_do.layer;_ja3=_do._Ad;}if(!_ia3||(_kH!=null&&_kH.depth==0))return;_bo._PL(_c4,_W93.__83,true);var _fa3=new _HK();{_bo._mM(_c4,0,_fa3,true,true);_W93.__83=_fa3._Ce;_fa3._IK=_yV;}}function _JY(_yV){if(!_AW(_yV))return -1;var _kH=null;var _VL=_bo._WL(_c4,_wV[_yV].__83);if(_VL==null)return -1;_kH=_VL.layer;if(_kH==null){return -1;}return _kH._Ce;}function _KY(_yV,_YM){if(!_AW(_yV))return;if(_e4){_bo._PL(_c4,_wV[_yV].__83,true);var _fa3=new _HK();_fa3._IK=_yV;var room=_bo._co();if(room!=null){var layer=_bo._6J(room,
_YM);if(layer!=null){if(room==_c4){_wV[_yV].__83=_bo._gM(_c4,layer,_fa3,true);_wV[_yV].depth=layer.depth;if(_wV[_yV].__83==-1){_bo._PL(_c4,_fa3._Ce,true);}}}if(_wV[_yV].__83==-1){_wV[_yV].__83=_bo._mM(_c4,_wV[_yV].depth,_fa3,true,true);}}}}function _LY(_yV,_xr){if(!_AW(_yV))return;_wV[_yV].globalSpaceParticles=_xr;}function _ka3(){for(var _qC=0;_qC<_wV.length;_qC++){if(!_wV.hasOwnProperty(_qC))continue;var _W93=_wV[_qC];if(_W93){_W93.particles=[];}}}function _DW(_yV,_CW){var _W93=_wV[yyGetInt32(_yV)];
if(_W93==null||_W93==undefined)return;_W93._PV=_CW;}function _EW(_yV,_el){_yV=yyGetInt32(_yV);var _W93=_wV[_yV];if(_W93==null||_W93==undefined)return;_W93.id=_yV;_W93.depth=yyGetReal(_el);_QH2.push({_la3:_W93,type:0});}function _FW(_yV,_Sm,_ga){var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return;_W93.color=yyGetInt32(_Sm);_W93.alpha=yyGetReal(_ga);}function _GW(_yV,_96,_a6){var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return;_W93._NV=yyGetReal(_96);_W93._OV=yyGetReal(_a6);
}function _HW(_yV,_d6){var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return;_W93.angle=yyGetReal(_d6);}function _JW(_yV,_IW){var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return;_W93._Y83=yyGetBool(_IW);}function _KW(_yV,_IW){var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return;_W93._Z83=yyGetBool(_IW);}function _ma3(_yV,_na3){var i=0;var _n7=0;var _W93=_wV[_yV];var _X93=_W93.emitters[_na3];var _oa3=_X93.particles;while(i<_oa3.length){var _8O=_oa3[i];if(_8O!==null){
var _i93=_CV[_8O._XV];_8O._Q83++;if(_8O._Q83>=_8O._R83){if(_i93!==null){_n7=_i93._8W;if(_n7<0){if(~~_0T(-_n7)==0)_n7=1;}if(_n7>0){_Z93(_W93,_X93,_8O.x,_8O.y,_i93._7W,_n7);}}_oa3.splice(i,1);}else {if(_i93!==null){_n7=_i93._aW;if(_n7<0){if(~~_0T(-_n7)==0)_n7=1;}if(_n7>0){_Z93(_W93,_X93,_8O.x,_8O.y,_i93._9W,_n7);}}i++;}}else i++;}}function _pa3(_yV,_na3){var i=0;var _J6=0;var hspeed=0.0;var vspeed=0.0;var _7h=0.0;var _J5=0.0;var _qa3=0.0;var _rE1=0.0;var _ra3=0.0;var _sa3=0.0;var _ta3=0.0;var _Xh2=0.0;var _ua3=0.0;
var _W93=_wV[_yV];var _oa3=_W93.emitters[_na3].particles;for(i=0;i<_oa3.length;i++){var _8O=_oa3[i];if(_8O!==null){var _i93=_CV[_8O._XV];if(_i93===null)continue;_8O.speed=_8O.speed+_i93._dW;if(_8O.speed<0)_8O.speed=0;_8O.dir=_8O.dir+_i93._hW;_8O._S01=_8O._S01+_i93._nW;_sa3=0;_ta3=0;if((_i93._jW!=0)||(_W93.acount>0)){hspeed=_d93(_8O.dir,_8O.speed);vspeed=_f93(_8O.dir,_8O.speed);if(_i93._jW!=0){_7h=_d93(_i93._kW,_i93._jW);_J5=_f93(_i93._kW,_i93._jW);hspeed=hspeed+_7h;vspeed=vspeed+_J5;}_8O.dir=_c93(hspeed,
vspeed);_8O.speed=Math.sqrt(hspeed*hspeed+vspeed*vspeed);}_Xh2=((_8O._Q83+3*_8O._V83)%24)/6.0;if(_Xh2>2.0){_Xh2=4.0-_Xh2;}_Xh2=_Xh2-1.0;_ua3=((_8O._Q83+4*_8O._V83)%20)/5.0;if(_ua3>2.0){_ua3=4.0-_ua3;}_ua3=_ua3-1.0;hspeed=_d93(_8O.dir+_Xh2*_i93._iW,_8O.speed+_ua3*_i93._eW);vspeed=_f93(_8O.dir+_Xh2*_i93._iW,_8O.speed+_ua3*_i93._eW);_8O.x=_8O.x+hspeed+_sa3;_8O.y=_8O.y+vspeed+_ta3;}}}function _va3(_yV,_na3){var _W93=_wV[_yV];var _oa3=_W93.emitters[_na3].particles;for(var i=0;i<_oa3.length;i++){var _8O=_oa3[i];
if(_8O!==null){var _i93=_CV[_8O._XV];if(_i93===null)continue;_8O._T83=_8O._T83+_i93._1W;if(_8O._T83<0){_8O._T83=0;}_8O._U83=_8O._U83+_i93._2W;if(_8O._U83<0){_8O._U83=0;}_g93(_8O);var _wa3;if(_8O._R83>0){_wa3=2.0*_8O._Q83/_8O._R83;}else {_wa3=1;}if(_wa3<1){_8O.alpha=_i93._rW*(1.0-_wa3)+_i93._sW*_wa3;}else {_8O.alpha=_i93._sW*(2.0-_wa3)+_i93._tW*(_wa3-1);}}}}function _LW(_yV){_yV=yyGetReal(_yV);var _W93=_wV[_yV];if(_W93==null||_W93==undefined)return 0;var _xa3=_W93.emitters;if(_xa3){for(var i=0;i<_xa3.length;
i++){var _X93=_xa3[i];if(!_X93.enabled)continue;if(!_X93._H83&&!_X93._L83)continue;_ma3(_yV,i);_pa3(_yV,i);_va3(_yV,i);if(_X93._M83>0.0){_X93._M83-=(_X93.delayUnit==1)?1.0:(g_pBuiltIn.delta_time*0.000001);if(_X93._M83<=0.0){_tY(_yV,i,_X93._XV,_X93._Mk);}continue;}if(_X93.mode!=_i83){_X93._N83-=(_X93.intervalUnit==1)?1.0:(g_pBuiltIn.delta_time*0.000001);if(_X93._N83<=0.0){_tY(_yV,i,_X93._XV,_X93._Mk);_9a3(_X93);}}if(_X93.particles.length==0){_X93._L83=false;}}}}function _ya3(){for(var i=0;i<_wV.length;
i++){var _W93=_wV[i];if(_W93!=null){if(_W93._Y83){_LW(i);}}}}function _UW(_yV,_7s){if(!_AW(_yV))return;_wV[_yV]._E_2=new _qr(_7s);}function _za3(_Aa3,_h93,__Y,_0Z,_Sm,_ga){_Sm=(_Sm===undefined)?0xffffff:_Sm;_ga=(_ga===undefined)?1.0:_ga;var _Ba3=_Aa3.color;var _Ca3=_Aa3.alpha;var _rH=null;var _n5=null;if(_h93._R83<=0)return;var _i93=_CV[_h93._XV];if(_i93===null)return;_rH=_m6._n6(_i93._mN);if(_rH==null){var shape=_i93.shape;if((shape>=0)&&(shape<_VG2.length)){_n5=_VG2[shape];if(_n5==null){return;}}else {return;
}}if(_n5!=null){}else {if(_rH._dp<=0)return;if(!_i93._ZV){}else if(_i93.__V){var duration=(_rH._ME)?_rH._ME._N3.animations[0].duration:_rH._n7;_h93._411=_h93._YV+duration*_h93._Q83/_h93._R83;}else {var fps=(_rH._ME)?_g4._h4():1.0;if(fps>0.0){_h93._411+=1.0/fps;}}}var _Y4=((_h93._Q83+2*_h93._V83)%16)/4.0;if(_Y4>2.0)_Y4=4.0-_Y4;_Y4=_Y4-1.0;var __i2=_h93._S01;if(_i93._pW)__i2=__i2+_h93.dir;__i2=__i2+_Y4*_i93._oW;_Y4=((_h93._Q83+_h93._V83)%16)/4.0;if(_Y4>2.0)_Y4=4.0-_Y4;_Y4=_Y4-1.0;var _YS=_h93._T83+_Y4*_i93._3W;
var _ZS=_h93._U83+_Y4*_i93._4W;var _Da3=_eA(_Ba3,_eA(_h93.color,_Sm));var _Ea3=_Ca3*_h93.alpha*_ga;if(_n5!=null){var _OJ,_PJ,_S01;var _GW2=_i93._OJ*_YS;var _HW2=_i93._PJ*_ZS;var _fH=__i2;var _Fa3=~~(_h93.x+__Y);var _Ga3=~~(_h93.y+_0Z);if(_GW2==1&&_HW2==1&&_fH==0&&_Da3==0xffffff){_Fm(_n5,_Fa3,_Ga3,_Ea3);}else {_Tm(_n5,0,0,_Fa3,_Ga3,_GW2,_HW2,_fH*0.017453293,_Da3,_Da3,_Da3,_Da3,_Ea3);}}else {if(_rH._ME){_rH._ME._N9(null,null,_h93._411,_h93.x+__Y,_h93.y+_0Z,_CV[_h93._XV]._OJ*_YS,_CV[_h93._XV]._PJ*_ZS,__i2,_Da3,
_Ea3);}else {_rH._O9(_h93._411,_h93.x+__Y,_h93.y+_0Z,_CV[_h93._XV]._OJ*_YS,_CV[_h93._XV]._PJ*_ZS,__i2,_Da3,_Ea3);}}}function _VW(_yV,_Sm,_ga){_Sm=(_Sm===undefined)?0xffffff:_Sm;_ga=(_ga===undefined)?1.0:_ga;var _W93=_wV[yyGetInt32(_yV)];if(_W93==null||_W93==undefined)return;var src,_Ya;if(_09!=null){src=_Ha3;_Ya=_Ia3;}var additiveBlend=false;var _Ja3=function(_xr){if(_xr&&!additiveBlend){_zE(1);additiveBlend=true;}else if(!_xr&&additiveBlend){if(_09!=null){_BE(src,_Ya);}else {_zE(0);}additiveBlend=false;
}};var _nT,_oT,_Ka3;if(_W93.globalSpaceParticles){_nT=0;_oT=0;_Ka3=_cs(_EF);_8s(_EF,new _qr());}else {_nT=_W93._NV;_oT=_W93._OV;}for(var e=0;e<_W93.emitters.length;++e){var _X93=_W93.emitters[e];if(!_X93.enabled)continue;var _oa3=_X93.particles;if(_W93._PV){for(var i=0;i<_oa3.length;i++){var _8O=_oa3[i];if(_8O!==null){_Ja3(_8O._uW);_za3(_W93,_8O,_nT,_oT,_Sm,_ga);}}}else {for(var i=_oa3.length-1;i>=0;i--){var _8O=_oa3[i];if(_8O!==null){_Ja3(_8O._uW);_za3(_W93,_8O,_nT,_oT,_Sm,_ga);}}}}if(_W93.globalSpaceParticles){
_8s(_EF,_Ka3);}_Ja3(false);}function _La3(_VQ){for(var i=0;i<_wV.length;i++){var _W93=_wV[i];if(_W93!=null){if(_W93._Z83){if(Math.abs(_W93.depth-_VQ)<0.01)_VW(i);}}}}function _Ma3(){if(!_e4)return;if(_E83.length<_wV.length){var _Na3=_E83.length;for(var i=_Na3;i<_wV.length;i++){_E83[i]=null;}}for(var i=0;i<_wV.length;i++){var _MW=_wV[i];if(!_MW||_MW.__83!=-1)continue;var _Oa3=null;var _Pa3=_E83[i];if(_Pa3!=null){_Oa3=_bo._5J(_c4,_Pa3);if(_Oa3==null){_Oa3=_bo._WM(_c4,_MW.depth,_Pa3);}}var _fa3=new _HK();_fa3._IK=i;
if(_Oa3!=null){_MW.__83=_bo._gM(_c4,_Oa3,_fa3,true);}if(_MW.__83==-1){_MW.__83=_bo._mM(_c4,_MW.depth,_fa3,true,true);}}_E83=[];};function _Qa3(){if(!_e4)return;_E83=new Array(_wV.length).fill(null);for(var i=0;i<_wV.length;++i){var _MW=_wV[i];if(!_MW)continue;var _kH=null;var _Ra3=null;if(_MW.__83!=-1){var _Sa3=_bo._WL(_c4,_MW.__83);if(_Sa3!=null){_kH=_Sa3.layer;_Ra3=_Sa3._Ad;}}if(_MW._093){var _Ta3=(_kH&&!_kH._WJ&&_Ra3);if(_Ta3){_Ra3._IK=-1;_MW.__83=-1;}_zW(i);_E83[i]=null;continue;}_bo._PL(_c4,_MW.__83,
true);_MW.__83=-1;if(_kH&&_kH._XJ&&!_kH._WJ){_E83[i]=_kH._XJ;}else {_E83[i]=null;}}}function _Ua3(_yV){_yV=yyGetInt32(_yV);if(true==_AW(_yV)){var _W93=_wV[_yV];if(_W93!=null){if(_W93._Z83){_VW(_yV);}}}};function _Va3(){var _6p=-1000000000;for(var i=0;i<_wV.length;i++){var _W93=_wV[i];if(_W93!=null&&_W93.particles.length>0){if(_W93._Z83){if(_W93.depth>_6p)_6p=_W93.depth;}}}return _6p;}function _Wa3(_VQ){var _6p=-1000000000;for(var i=0;i<_wV.length;i++){var _W93=_wV[i];if(_W93!=null&&_W93.particles.length>0){
if(_W93._Z83){if((_W93.depth>_6p)&&(_W93.depth<_VQ))_6p=_W93.depth;}}}return _6p;}var _PR=0,_Xa3=1;var _Ya3=0;function _Za3(_96,_a6,_xI){this.x=_96;this.y=_a6;this.speed=_xI;this._p7=0;}function _SY(){this.__type="[Path]";this.name="";this.id=_Ya3++;this.kind=0;this.closed=1;this.precision=4;this._ag();}_SY.prototype._ag=function(){this.points=[];this.__a3=[];this._c9=0;this._0b3=0;this.length=0;};_SY.prototype._OR=function(_k4){if((_k4<0)||(_k4>1)){this.kind=0;}else {this.kind=_k4;}this._1b3();};_SY.prototype._QR=function(_k4){
this.closed=_k4;this._1b3();};_SY.prototype._RY=function(_k4){if(_k4<0)_k4=0;if(_k4>8)_k4=8;this.precision=_k4;this._1b3();};_SY.prototype._2b3=function(){var i=0;this.length=0;if(this._0b3<=0)return;this.__a3[0]._p7=0;for(i=1;i<this._0b3;i++){this.__a3[i]._p7=this.length=this.length+sqrt(_CQ(this.__a3[i].x-this.__a3[i-1].x)+_CQ(this.__a3[i].y-this.__a3[i-1].y));}};_SY.prototype._3b3=function(_aZ,_bZ,_4b3){this._0b3++;var _5b3=new _Za3();this.__a3[this._0b3-1]=_5b3;_5b3.x=_aZ;_5b3.y=_bZ;_5b3.speed=_4b3;
};_SY.prototype._6b3=function(){this._0b3=0;if(this._c9<=0)return;for(var i=0;i<this._c9;i++){this._3b3(this.points[i].x,this.points[i].y,this.points[i].speed);}if(this.closed){this._3b3(this.points[0].x,this.points[0].y,this.points[0].speed);}};_SY.prototype._7b3=function(_el,_F7,_G7,_Hs,_77,_87,_Is,_Ro,_So,_8b3){if(_el==0)return;var _L7=(_F7+_77+_77+_Ro)/4.0;var _M7=(_G7+_87+_87+_So)/4.0;var _nO1=(_Hs+_Is+_Is+_8b3)/4.0;if(_CQ(_77-_F7)+_CQ(_87-_G7)>16.0){this._7b3(_el-1,_F7,_G7,_Hs,(_77+_F7)/2.0,(_87+_G7)/2.0,
(_Is+_Hs)/2.0,_L7,_M7,_nO1);}this._3b3(_L7,_M7,_nO1);if(_CQ(_77-_Ro)+_CQ(_87-_So)>16.0){this._7b3(_el-1,_L7,_M7,_nO1,(_Ro+_77)/2.0,(_So+_87)/2.0,(_8b3+_Is)/2.0,_Ro,_So,_8b3);}};_SY.prototype._9b3=function(){var i=0;var _c7=0;this._0b3=0;if(this._c9<=0)return;if(!this.closed){this._3b3(this.points[0].x,this.points[0].y,this.points[0].speed);}if(this.closed){_c7=this._c9-1;}else {_c7=this._c9-3;}for(i=0;i<=_c7;i++){var _wz1=this.points[i%this._c9];var _xz1=this.points[(i+1)%this._c9];var _ab3=this.points[(i+2)%this._c9];
this._7b3(this.precision,(_wz1.x+_xz1.x)/2.0,(_wz1.y+_xz1.y)/2.0,(_wz1.speed+_xz1.speed)/2.0,_xz1.x,_xz1.y,_xz1.speed,(_xz1.x+_ab3.x)/2.0,(_xz1.y+_ab3.y)/2.0,(_xz1.speed+_ab3.speed)/2.0);}if(!this.closed){this._3b3(this.points[this._c9-1].x,this.points[this._c9-1].y,this.points[this._c9-1].speed);}else {this._3b3(this.__a3[0].x,this.__a3[0].y,this.__a3[0].speed);}};_SY.prototype._1b3=function(){if(this.kind==1){this._9b3();}else {this._6b3();}this._2b3();};function _AJ2(_zL2){var _NR=new _SY();if((_zL2!=undefined)&&(_zL2!=null)){
if(_zL2.precision!=undefined){_NR.precision=_zL2.precision;}if(_zL2.closed!=undefined){_NR.closed=_zL2.closed;}if(_zL2.kind!=undefined){_NR.kind=_zL2.kind;}if(_zL2.pName!=undefined){_NR.name=_zL2.pName;}if(_zL2.points!=undefined){_NR._c9=_zL2.points.length;}for(var _2z=0;_2z<_zL2.points.length;_2z++){var __L2=_zL2.points[_2z];var _bb3=new _Za3(__L2.x,__L2.y,__L2.speed);_NR.points[_NR.points.length]=_bb3;}_NR._1b3();}return _NR;}var _cb3=new _Za3(0,0,100);_SY.prototype._4Z=function(_c5){var _zk=0;if(this._0b3<=0){
_cb3.x=0;_cb3.y=0;_cb3.speed=0;return _cb3;}if((this._0b3==1)||(this.length==0)||(_c5<=0)){return this.__a3[0];}if(_c5>=1){return this.__a3[this._0b3-1];}var _p7=this.length*_c5;_zk=0;while((_zk<this._0b3-2)&&(_p7>=this.__a3[_zk+1]._p7)){_zk++;}var _ol=this.__a3[_zk];_p7=_p7-_ol._p7;var w=this.__a3[_zk+1]._p7-_ol._p7;if(w!=0){_zk++;_cb3.x=_ol.x+_p7*(this.__a3[_zk].x-_ol.x)/w;_cb3.y=_ol.y+_p7*(this.__a3[_zk].y-_ol.y)/w;_cb3.speed=_ol.speed+_p7*(this.__a3[_zk].speed-_ol.speed)/w;_ol=_cb3;}return _ol;};_SY.prototype._NY=function(_c5){
var _2z=this._4Z(_c5);return _2z.x;};_SY.prototype._OY=function(_c5){var _2z=this._4Z(_c5);return _2z.y;};_SY.prototype._PY=function(_c5){var _2z=this._4Z(_c5);return _2z.speed;};_SY.prototype._EI=function(_db3){this.points=null;this.__a3=null;this.name=_db3.name;this._c9=_db3._c9;this.kind=_db3.kind;this.closed=_db3.closed;this.precision=_db3.precision;this._0b3=_db3._0b3;this.length=_db3.length;this.points=[];var _eb3;var __L2;var _fb3=_db3.points;var _Ya=this.points;for(var _2z=0;_2z<_fb3.length;_2z++){
__L2=_fb3[_2z];_eb3=new _Za3(__L2.x,__L2.y,__L2.speed);_eb3._p7=__L2._p7;_Ya[_Ya.length]=_eb3;}this.__a3=[];var _gb3=_db3.__a3;var _Ya=this.__a3;for(var _2z=0;_2z<_gb3.length;_2z++){__L2=_gb3[_2z];_eb3=new _Za3(__L2.x,__L2.y,__L2.speed);_eb3._p7=__L2._p7;_Ya[_Ya.length]=_eb3;}};_SY.prototype._5Z=function(__Y,_0Z){for(var i=0;i<=this._c9-1;i++){this.points[i].x+=__Y;this.points[i].y+=_0Z;}this._1b3();};_SY.prototype._hb3=function(){var _US=100000000;var _VS=-100000000;var _WS=100000000;var _XS=-100000000;for(var i=0;
i<=this._c9-1;i++){if(this.points[i].x<_US)_US=this.points[i].x;if(this.points[i].x>_VS)_VS=this.points[i].x;if(this.points[i].y<_WS)_WS=this.points[i].y;if(this.points[i].y>_XS)_XS=this.points[i].y;}return new _Za3((_US+_VS)/2.0,(_WS+_XS)/2.0,0);};_SY.prototype._MS=function(){if(this._c9<=1)return;var _ib3=[];for(var i=this._c9-1;i>=0;i--){_ib3[_ib3.length]=this.points[i];}this.points=_ib3;this._1b3();};_SY.prototype._9Z=function(){var _jb3=this._hb3();this._5Z(-_jb3.x,-_jb3.y);for(var i=0;i<=this._c9-1;
i++){this.points[i].x=-this.points[i].x;}this._5Z(_jb3.x,_jb3.y);this._1b3();};_SY.prototype._8Z=function(){var _jb3=this._hb3();this._5Z(-_jb3.x,-_jb3.y);for(var i=0;i<=this._c9-1;i++){this.points[i].y=-this.points[i].y;}this._5Z(_jb3.x,_jb3.y);this._1b3();};_SY.prototype._7Z=function(_d6){var _jb3=this._hb3();this._5Z(-_jb3.x,-_jb3.y);for(var i=0;i<=this._c9-1;i++){var _w7=this.points[i].x;var _y7=this.points[i].y;var _cP=_d6*Math.PI/180.0;this.points[i].x=_w7*Math.cos(_cP)+_y7*Math.sin(_cP);this.points[i].y=_y7*Math.cos(_cP)-_w7*Math.sin(_cP);
}this._5Z(_jb3.x,_jb3.y);this._1b3();};_SY.prototype._6Z=function(_Qm,_Rm){var _jb3=this._hb3();this._5Z(-_jb3.x,-_jb3.y);for(var i=0;i<=this._c9-1;i++){this.points[i].x=this.points[i].x*_Qm;this.points[i].y=this.points[i].y*_Rm;}this._5Z(_jb3.x,_jb3.y);this._1b3();};_SY.prototype._cZ=function(_c5,_aZ,_bZ,_4b3){if(_c5<0||_c5>=this._c9)return;this.points[_c5].x=_aZ;this.points[_c5].y=_bZ;this.points[_c5].speed=_4b3;this._1b3();};_SY.prototype._fZ=function(_c5){if(_c5<0||_c5>=this._c9)return;this.points.splice(_c5,
1);this._c9--;this._1b3();};_SY.prototype._dZ=function(_db3){if(_db3._c9==0)return;for(var i=0;i<=_db3._c9-1;i++){this.points[this.points.length]=_db3.points[i];this._c9++;}this._1b3();};_SY.prototype._eZ=function(_c5,_aZ,_bZ,_4b3){if(_c5<0||_c5>this._c9)return;this._c9++;var __L2=new _Za3(_aZ,_bZ,_4b3);this.points.splice(_c5,0,__L2);this._1b3();};_SY.prototype._RR=function(_aZ,_bZ,_4b3){var __L2=new _Za3(_aZ,_bZ,_4b3);if(!this.points)this.points=[];this.points[this.points.length]=__L2;this._c9++;this._1b3();
};function _yI2(){this.Paths=[];_Ya3=0;}_yI2.prototype._Vf=function(_db3){this.Paths[_db3.id]=_db3;};_yI2.prototype._pl=function(_db3){this.Paths[_db3.id]=undefined;};_yI2.prototype._tC=function(){var ids=[];for(var i=0;i<this.Paths.length;++i){if(this.Paths[i]){ids.push(i);}}return ids;};function _HS(){this._ul=[];this.offset=0;this._KS=_HS.prototype._kb3;this._IS=_HS.prototype._lb3;};_HS.prototype.Length=function(){return(this._ul.length-this.offset);};_HS.prototype._JS=function(_te){return((this._ul.length-this.offset)>=_te);
};_HS.prototype._mb3=function(){return(this._ul.length==0);};_HS.prototype._lb3=function(_yL2){this._ul.push(_yL2);};_HS.prototype._kb3=function(){if(this._mb3())return undefined;var _Yk=this._ul[this.offset];if((++this.offset*2)>=this._ul.length){this._ul=this._ul.slice(this.offset);this.offset=0;}return _Yk;};_HS.prototype._nb3=function(){if(this._ul.length>0){return this._ul[this.offset];}else {return undefined;}};function _s21(){this.id=_gH2++;this._uL();};_s21.prototype._uL=function(){this.__type="[Room]";
this._ob3="";this._pb3="";this._qb3=30;this._EN=1024;this._GN=768;this._283=false;this._rb3=false;this._WR2=0xc0c0c0;this._LS2=true;this._sb3=true;this._tb3=true;this._ub3=[];for(var _s7=0;_s7<_uG2;_s7++){this._ub3[_s7]=null;}this._lg=false;this._vb3=null;this._0H=new _ek();this._0H._fk=true;this._SI=new _ek();this._SI._fk=true;this._f13=[];this._ng=[];this._wb3=[];this._5Q=[];this._U11=null;this._XJ="Room";this._lZ=null;this._RL=new _hl();this._dV2=[];this._cV2=0;};_s21.prototype._xb3=function(){return this._lg;
};_s21.prototype._tF=function(){return this._EN;};_s21.prototype._uF=function(){return this._GN;};_s21.prototype._d4=function(){return this._qb3;};_s21.prototype._P62=function(){return this._XJ;};_s21.prototype._yb3=function(){return this._pb3;};_s21.prototype._4t2=function(){return this._283;};_s21.prototype._QS=function(){return this._0H._yk;};_s21.prototype._3T2=function(_k4){this._EN=_k4;g_pBuiltIn.room_width=_k4;};_s21.prototype._4T2=function(_k4){this._GN=_k4;g_pBuiltIn.room_height=_k4;};_s21.prototype._zb3=function(_k4){
this._qb3=_k4;g_pBuiltIn.room_speed=_k4;};_s21.prototype._Ab3=function(_w4){this._XJ=_w4;};_s21.prototype._2T2=function(_Gh1){this._pb3=_Gh1;g_pBuiltIn.room_caption=_Gh1;};_s21.prototype._3t2=function(_k4){this._283=_k4;g_pBuiltIn.room_persistent=_k4;};_s21.prototype._t21=function(){this._U11={pName:"room_empty_"+this.id,width:640,height:480,backgrounds:[{},{},{},{},{},{},{},{}],views:[{},{},{},{},{},{},{},{}],pInstances:[],tiles:[]};this._Bb3(this._U11);};function _dO(_Cb3){var _Y4=[];for(var i=0;
i<_Cb3.length;){var c=_Cb3[i++];if(c&0x80000000){var __4=c&0x7fffffff;++__4;var _H5=_Cb3[i++];for(var _Q7=0;_Q7<__4;++_Q7){_Y4.push(_H5);}}else {var __4=c&0x7fffffff;for(var _Q7=0;_Q7<__4;++_Q7){_Y4.push(_Cb3[i++]);}}}return _Y4;}_s21.prototype._Db3=function(_zL2){if(_zL2!=null){this._U11.width=_zL2.width;this._U11.height=_zL2.height;this._U11.colour=_zL2.colour;this._U11.showColour=_zL2.showColour;this._U11.enableViews=_zL2.enableViews;this._U11.viewClearScreen=_zL2.viewClearScreen;this._U11.pCaption=_zL2.pCaption;
this._U11.speed=_zL2.speed;this._U11.persistent=_zL2.persistent;this._U11._121=_zL2._121;this._U11.LayerCount=_zL2.LayerCount;if(_zL2.pCode){this._U11.pCode=_zL2.pCode;}if(_zL2.physicsWorld){this._U11.physicsWorld=_zL2.physicsWorld;this._U11.physicsTop=_zL2.physicsTop;this._U11.physicsLeft=_zL2.physicsLeft;this._U11.physicsRight=_zL2.physicsRight;this._U11.physicsBottom=_zL2.physicsBottom;this._U11.physicsGravityX=_zL2.physicsGravityX;this._U11.physicsGravityY=_zL2.physicsGravityY;this._U11.physicsPixToMeters=_zL2.physicsPixToMeters;
}for(var i=0;i<_zL2.backgrounds.length;i++){var _Eb3=_zL2.backgrounds[i];if(_Eb3!=null){this._U11.backgrounds[i]={visible:_Eb3.visible,index:_Eb3.index,vspeed:_Eb3.vspeed,hspeed:_Eb3.hspeed,foreground:_Eb3.foreground,x:_Eb3.x,y:_Eb3.y,htiled:_Eb3.htiled,vtiled:_Eb3.vtiled,stretch:_Eb3.stretch,alpha:_Eb3.alpha,_QJ:_Eb3._QJ};}}for(var i=0;i<_zL2.views.length;i++){var _321=_zL2.views[i];if(_321){this._U11.views[i]={visible:_321.visible,xview:_321.xview,yview:_321.yview,wview:_321.wview,hview:_321.hview,
xport:_321.xport,yport:_321.yport,wport:_321.wport,hport:_321.hport,hborder:_321.hborder,vborder:_321.vborder,hspeed:_321.hspeed,vspeed:_321.vspeed,index:_321.index};}}this._U11.pInstances=new Array(_zL2.pInstances.length);for(var i=0;i<_zL2.pInstances.length;i++){var _721=_zL2.pInstances[i];if(_721){this._U11.pInstances[i]={x:_721.x,y:_721.y,index:_721.index,id:_721.id,rotation:_721.image_angle,scaleX:_721.scaleX,scaleY:_721.scaleY,imageSpeed:_721.imageSpeed,imageIndex:_721.imageIndex,colour:_721.image_blend,
pCode:_721.pCode,pPreCreateCode:_721.pPreCreateCode};}}this._U11.layers=new Array(_zL2.layers.length);for(var i=0;i<_zL2.layers.length;i++){var _821=_zL2.layers[i];if(_821!=null){var _921={pName:_821.pName,id:_821.id,type:_821.type,depth:_821.depth,x:_821.x,y:_821.y,hspeed:_821.hspeed,vspeed:_821.vspeed,visible:_821.visible,effectEnabled:_821.effectEnabled,effectType:_821.effectType};_921.effectProperties=new Array(_821.effectProperties.length);var _b21;for(_b21=0;_b21<_821.effectProperties.length;_b21++){
_921.effectProperties[_b21]={type:_821.effectProperties[_b21].type,name:_821.effectProperties[_b21].name,value:_821.effectProperties[_b21].value};}switch(_821.type){case _rJ:_921.bvisible=_821.bvisible;_921.bforeground=_821.bforeground;_921.bindex=_821.bindex;_921.bhtiled=_821.bhtiled;_921.bvtiled=_821.bvtiled;_921.bstretch=_821.bstretch;_921.bblend=_821.bblend;_921.playbackspeedtype=_821.playbackspeedtype;_921.bimage_index=_821.bimage_index;_921.bimage_speed=_821.bimage_speed;break;case _sJ:_921.icount=_821.icount;
_921.iinstIDs=_821.iinstIDs?_821.iinstIDs.slice(0):[];break;case _uJ:_921.tcount=_821.tcount;_921.tMapWidth=_821.tMapWidth;_921.tMapHeight=_821.tMapHeight;_921.tIndex=_821.tIndex;_921.ttiles=_821.ttiles?_821.ttiles.slice(0):[];break;case _tJ:var _f21;_921.acount=_821.acount;_921.assets=new Array(_821.assets.length);for(_f21=0;_f21<_821.assets.length;_f21++){_921.assets[_f21]={ax:_821.assets[_f21].ax,ay:_821.assets[_f21].ay,aindex:_821.assets[_f21].aindex,aXO:_821.assets[_f21].aXO,aYO:_821.assets[_f21].aYO,
aW:_821.assets[_f21].aW,aH:_821.assets[_f21].aH,aDepth:_821.assets[_f21].aDepth,aId:_821.assets[_f21].aId,aXScale:_821.assets[_f21].aXScale,aYScale:_821.assets[_f21].aYScale,aBlend:_821.assets[_f21].aBlend};}_921.scount=_821.scount;_921.sprites=new Array(_821.sprites.length);for(_f21=0;_f21<_821.sprites.length;_f21++){_921.sprites[_f21]={sName:_821.sprites[_f21].sName,sIndex:_821.sprites[_f21].sIndex,sX:_821.sprites[_f21].sX,sY:_821.sprites[_f21].sY,sXScale:_821.sprites[_f21].sXScale,sYScale:_821.sprites[_f21].sYScale,
sBlend:_821.sprites[_f21].sBlend,sPlaybackSpeedType:_821.sprites[_f21].sPlaybackSpeedType,sImageSpeed:_821.sprites[_f21].sImageSpeed,sImageIndex:_821.sprites[_f21].sImageIndex,sRotation:_821.sprites[_f21].sRotation};}_921.ecount=_821.ecount;_921.sequences=new Array(_821.sequences.length);for(_f21=0;_f21<_821.sequences.length;_f21++){_921.sequences[_f21]={sName:_821.sequences[_f21].sName,sIndex:_821.sequences[_f21].sIndex,sX:_821.sequences[_f21].sX,sY:_821.sequences[_f21].sY,sXScale:_821.sequences[_f21].sXScale,
sYScale:_821.sequences[_f21].sYScale,sBlend:_821.sequences[_f21].sBlend,sPlaybackSpeedType:_821.sequences[_f21].sPlaybackSpeedType,sImageSpeed:_821.sequences[_f21].sImageSpeed,sHeadPosition:_821.sequences[_f21].sHeadPosition,sRotation:_821.sequences[_f21].sRotation};}_921.pcount=_821.pcount;_921.particles=new Array(_821.particles.length);for(_f21=0;i<_821.particles.length;_f21++){var _h21=_821.particles[_f21];_921.particles[_f21]={sName:_h21.sName,sIndex:_h21.sIndex,sX:_h21.sX,sY:_h21.sY,sXScale:_h21.sXScale,
sYScale:_h21.sYScale,sBlend:_h21.sBlend,sRotation:_h21.sRotation,};}_921.tcount=_821.tcount;_921.textitems=new Array(_821.textitems.length);for(_f21=0;i<_821.textitems.length;_f21++){var _Fb3=_821.textitems[_f21];_921.textitems[_f21]={sX:_Fb3.sX,sY:_Fb3.sY,sFontIndex:_Fb3.sFontIndex,sXScale:_Fb3.sXScale,sYScale:_Fb3.sYScale,sRotation:_Fb3.sRotation,sBlend:_Fb3.sBlend,sXOrigin:_Fb3.sXOrigin,sYOrigin:_Fb3.sYOrigin,sText:_Fb3.sText,sAlignment:_Fb3.sAlignment,sCharSpacing:_Fb3.sCharSpacing,sLineSpacing:_Fb3.sLineSpacing,
sFrameW:_Fb3.sFrameW,sFrameH:_Fb3.sFrameH,sWrap:_Fb3.sWrap,sName:_Fb3.sName,};}break;case _wJ:_921._4K=_821._4K;break;}this._U11.layers[i]=_921;}}}};_s21.prototype._Bb3=function(_Gb3){this._uL();this._U11=_Gb3;if(_Gb3.pName!=undefined)this._Ab3(_Gb3.pName);if(_Gb3.pCaption!=undefined)this._2T2(_Gb3.pCaption);if(_Gb3.width!=undefined)this._3T2(_Gb3.width);if(_Gb3.height!=undefined)this._4T2(_Gb3.height);if(_Gb3.speed!=undefined)this._zb3(_Gb3.speed);if(_Gb3.persistent!=undefined)this._3t2(_Gb3.persistent);
if(_Gb3.colour!=undefined)this._WR2=_Gb3.colour;if(_Gb3.showColour!=undefined)this._LS2=_Gb3.showColour;if(_Gb3.enableViews!=undefined)this._lg=_Gb3.enableViews;if(_Gb3.viewClearScreen!=undefined)this._sb3=_Gb3.viewClearScreen;if(_Gb3._121!=undefined)this._tb3=_Gb3._121;this._3T2(this._EN);this._4T2(this._GN);this._zb3(this._qb3);this._2T2(this._pb3);this._3t2(this._283);this._ng=[];if(_Gb3.pCode!=undefined)this._vb3=_Gb3.pCode;for(var _H5=0;_H5<_Gb3.views.length;_H5++){this._ng[_H5]=_Hb3(_Gb3.views[_H5]);
}if(_Gb3.LayerCount!=undefined){if(_Gb3.LayerCount>0){_bo._BN(this,_Gb3.layers);}}};_s21.prototype._Ib3=function(){if(this._U11.physicsWorld){this._lZ=new _oZ(this._U11.physicsPixToMeters,_g4._h4());this._lZ._tZ(this._U11.physicsGravityX,this._U11.physicsGravityY);}};_s21.prototype._Jb3=function(_Kb3){var i;var _Lb3=0;var _Mb3=[];for(i=this._0H.length-1;i>=0;i--){var _Hx=this._0H._n6(0);if(_Kb3){_Hx._w6(_rI,0,_Hx,_Hx);}this._Nb3(_Hx);}for(i=this._SI.length-1;i>=0;i--){this._Nb3(this._SI._n6(0));}};_s21.prototype._w21=function(){
this._U11.pInstances=[];};_s21.prototype._4_1=function(index){if(this._ng!=undefined){var _Dr=this._ng[index];if(_Dr!=undefined)return _Dr;}return undefined;};_s21.prototype._Ob3=function(_96,_a6,_Pb3){return this._NM(_96,_a6,_CI++,_Pb3,false,0);};_s21.prototype._zP=function(_96,_a6,_wL,_Pb3){return this._Qb3(_96,_a6,_wL,_CI++,_Pb3,true);};_s21.prototype._yP=function(_96,_a6,_el,_Pb3){var _Hx=this._NM(_96,_a6,_CI++,_Pb3,true,_el);return _Hx;};_s21.prototype._Rb3=function(_96,_a6,_yg,_sI,_Sb3,_Tb3,_Ub3,
_Vb3,_I22,_5d){var _Wb3=new _BI(_96,_a6,_yg,_sI,true);this._0H._Vf(_Wb3);_Fx._Vf(_Wb3);if(_Ub3!=undefined)_Wb3.image_speed=_Ub3;if(_Vb3!=undefined)_Wb3.image_index=_Vb3;if(_Sb3!=undefined)_Wb3.image_xscale=_Sb3;if(_Tb3!=undefined)_Wb3.image_yscale=_Tb3;if(_I22!=undefined)_Wb3.image_angle=_I22;if(_5d!=undefined){_Wb3.image_blend=_5d&0xffffff;_Wb3.image_alpha=((_5d>>24)&0xff)/255.0;}if(_e4){_Wb3._Q03=_Wb3._P03=_Wb3.image_index;var _VL=_bo._hN(this,_yg);if(_VL==null){_bo._NM(this,_Wb3);}else {_bo._dM(this,
_VL.layer,_VL._Ad);}}_Wb3._N13();return _Wb3;};_s21.prototype._NM=function(_96,_a6,_yg,_sI,_Xb3,_el){var _Wb3=new _BI(_96,_a6,_yg,_sI,true);this._0H._Vf(_Wb3);_Fx._Vf(_Wb3);if(_Xb3){_Wb3.depth=_el;}if(_e4){var _VL=_bo._hN(this,_yg);if(_VL==null){_bo._NM(this,_Wb3);}else {_bo._dM(this,_VL.layer,_VL._Ad);}}_Wb3._N13();return _Wb3;};_s21.prototype._Qb3=function(_96,_a6,_wL,_yg,_sI){var _Wb3=new _BI(_96,_a6,_yg,_sI,true);_Wb3.depth=_wL.depth;this._0H._Vf(_Wb3);_Fx._Vf(_Wb3);_Wb3._N13();if(_e4)_bo._PM(this,_wL,
_Wb3);return _Wb3;};_s21.prototype._GI=function(_Pn){this._0H._Vf(_Pn);_Fx._Vf(_Pn);if(_e4){var _kH=_bo._6J(this,_Pn.__L);if(_kH!=null)_bo._PM(this,_kH,_Pn);}};_s21.prototype._Yb3=function(){var w=display_get_width();var h=display_get_height();for(var i=0;i<_vG2;i++){g_pBuiltIn.view_visible[i]=false;g_pBuiltIn.view_xview[i]=0;g_pBuiltIn.view_yview[i]=0;g_pBuiltIn.view_wview[i]=_c4._EN;g_pBuiltIn.view_hview[i]=_c4._GN;g_pBuiltIn.view_xport[i]=0;g_pBuiltIn.view_yport[i]=0;g_pBuiltIn.view_wport[i]=w;g_pBuiltIn.view_hport[i]=h;
g_pBuiltIn.view_angle[i]=0;g_pBuiltIn.view_hborder[i]=0;g_pBuiltIn.view_vborder[i]=0;g_pBuiltIn.view_hspeed[i]=0;g_pBuiltIn.view_vspeed[i]=0;g_pBuiltIn.view_object[i]=-1;g_pBuiltIn.view_surface_id[i]=-1;g_pBuiltIn.view_camera[i]=-1;}var index=0;for(var i=0;i<this._ng.length;i++){var _og=this._ng[i];g_pBuiltIn.view_visible[index]=_og.visible;g_pBuiltIn.view_xview[index]=_og._0e1;g_pBuiltIn.view_yview[index]=_og._1e1;g_pBuiltIn.view_wview[index]=_og._2e1;g_pBuiltIn.view_hview[index]=_og._3e1;g_pBuiltIn.view_xport[index]=_og._Zb3;
g_pBuiltIn.view_yport[index]=_og.__b3;g_pBuiltIn.view_wport[index]=_og._0c3;g_pBuiltIn.view_hport[index]=_og._1c3;g_pBuiltIn.view_angle[index]=_og.angle;g_pBuiltIn.view_hborder[index]=_og.hborder;g_pBuiltIn.view_vborder[index]=_og.vborder;g_pBuiltIn.view_hspeed[index]=_og.hspeed;g_pBuiltIn.view_vspeed[index]=_og.vspeed;g_pBuiltIn.view_object[index]=_og._Ct2;g_pBuiltIn.view_surface_id[index]=_og._JF;g_pBuiltIn.view_camera[index]=_og._621;index++;}};_s21.prototype._2c3=function(){var index=0;for(var i=0;
i<this._ng.length;i++){var _og=this._ng[i];_og.visible=g_pBuiltIn.view_visible[index];_og._0e1=g_pBuiltIn.view_xview[index];_og._1e1=g_pBuiltIn.view_yview[index];_og._2e1=g_pBuiltIn.view_wview[index];_og._3e1=g_pBuiltIn.view_hview[index];_og._Zb3=g_pBuiltIn.view_xport[index];_og.__b3=g_pBuiltIn.view_yport[index];_og._0c3=g_pBuiltIn.view_wport[index];_og._1c3=g_pBuiltIn.view_hport[index];_og.angle=g_pBuiltIn.view_angle[index];_og.hborder=g_pBuiltIn.view_hborder[index];_og.vborder=g_pBuiltIn.view_vborder[index];
_og.hspeed=g_pBuiltIn.view_hspeed[index];_og.vspeed=g_pBuiltIn.view_vspeed[index];_og._Ct2=g_pBuiltIn.view_object[index];_og._JF=g_pBuiltIn.view_surface_id[index];_og._621=g_pBuiltIn.view_camera[index];index++;}};_s21.prototype._3c3=function(){for(var i=0;i<_0m.__l.length;i++){var _3m=_0m._n6(i);_3m.hspeed=g_pBuiltIn._OR2[i];_3m.vspeed=g_pBuiltIn._PR2[i];_3m.x=g_pBuiltIn._GR2[i];_3m.y=g_pBuiltIn._HR2[i];_3m.x+=_3m.hspeed;_3m.y+=_3m.vspeed;g_pBuiltIn._GR2[i]=_3m.x;g_pBuiltIn._HR2[i]=_3m.y;}};_s21.prototype._4c3=function(){
var i;var _p7,_s7,_mj,_mu2;var _og;var _9o;if(!this._lg)return;this._2c3();for(i=0;i<this._ng.length;i++){_og=this._ng[i];if(!_og.visible)continue;if(_e4&&_09==null){if(_og._621!=-1){var _nt2=_de1._7t2(_og._621);if(_nt2!=null){_og._Ct2=_nt2._Ws2;}}}if(_e4){if(_og._621!=-1){var _nt2=_de1._7t2(_og._621);if(_nt2!=null){_nt2._bg();}}}}this._Yb3();var left,right,top,bottom;left=999999;right=-999999;top=999999;bottom=-999999;for(var i=0;i<_c4._ng.length;i++){_og=_c4._ng[i];if(_og.visible){if(left>_og._Zb3)left=_og._Zb3;
if(right<(_og._Zb3+_og._0c3))right=_og._Zb3+_og._0c3;if(top>_og.__b3)top=_og.__b3;if(bottom<(_og.__b3+_og._1c3))bottom=_og.__b3+_og._1c3;}}_5i1=_td1/(right-left);_6i1=_Md1/(bottom-top);};_s21.prototype._5c3=function(_aZ2,_wL,_LL){var _Hx=_LL._9J;if(_Hx!=null){if(!_Hx.marked&&_Hx.active&&_Hx.visible&&(!_Hx._I13()||!_Hx._x13())){var _Ik=_14._n6(_Hx.object_index);if(_Ik!=null){if(_Ik._Hv2[_Cz2]){_X6=_Hx;_Hx._w6(_Cz2,0,_Hx,_Hx);_X6=null;}else {var _ym=_m6._n6(_Hx.sprite_index);if(_ym!=null){_X6=_Hx;if((_Hx.image_xscale===1)&&(_Hx.image_yscale===1)&&(_Hx.image_angle===0)&&(_6d(_Hx.image_blend)===0xffffff)&&(_Hx.image_alpha===1)){
_ym._Wf1(_Hx.image_index,_Hx.x,_Hx.y,_Hx.image_alpha*_3d);}else {_ym._O9(_Hx.image_index,_Hx.x,_Hx.y,_Hx.image_xscale,_Hx.image_yscale,_Hx.image_angle,_6d(_Hx.image_blend),_Hx.image_alpha);}_X6=null;}}}}}};_s21.prototype._6c3=function(_aZ2,_wL,_LL){};_s21.prototype._7c3=function(_aZ2,_wL,_LL){var _yN=_LL._iK;if(!_yN.visible)return;if(_yN.foreground)return;var _8c3=_yN._QJ;if(sprite_exists(_yN.index)){var _ym=_m6._n6(_yN.index);if(!_ym)return;var _n73=(~~_yN.image_index)%_ym._l5.length;if(_ym._l5[_n73]!=undefined){
if(_yN.stretch){var _OJ=_c4._tF()/_ym.width;var _PJ=_c4._uF()/_ym.height;_Jm(_ym._l5[_n73],_wL._AH,_wL._CH,_OJ,_PJ,_yN.vtiled,_yN.htiled,_8c3,_yN.alpha);}else _Jm(_ym._l5[_n73],_wL._AH,_wL._CH,_yN._OJ,_yN._PJ,_yN.vtiled,_yN.htiled,_8c3,_yN.alpha);}}else {var _9c3=_3d;_3d=_yN.alpha;if(!_09)_8c3=_6d(_yN._QJ);draw_rectangle_color(_5F.left,_5F.top,_5F.right,_5F.bottom,_8c3,_8c3,_8c3,_8c3,false);_3d=_9c3;}};_s21.prototype._ac3=function(_aZ2,_wL,_LL){if(sprite_exists(_LL._oK)){var _ym=_m6._n6(_LL._oK);if(!_ym)return;
if(_ym._ME!==undefined){if((_LL._uK==1.0)&&(_LL._vK==1.0)&&(_LL._wK==0.0)&&(_LL._xK==0xffffff)){_ym._Wf1(_LL._tK,_LL._zH+_wL._AH,_LL._BH+_wL._CH,_LL._yK);}else {_ym._O9(_LL._tK,_LL._zH+_wL._AH,_LL._BH+_wL._CH,_LL._uK,_LL._vK,_LL._wK,_LL._xK,_LL._yK);}}else {if((_LL._uK==1.0)&&(_LL._vK==1.0)&&(_LL._wK==0.0)&&(_LL._xK==0xffffff)){_ym._Wf1(_LL._tK,_LL._zH+_wL._AH,_LL._BH+_wL._CH,_LL._yK);}else {_ym._O9(_LL._tK,_LL._zH+_wL._AH,_LL._BH+_wL._CH,_LL._uK,_LL._vK,_LL._wK,_LL._xK,_LL._yK);}}}};_s21.prototype._bc3=function(_aZ2,
_wL,_LL){var _Zy=_LL._VK;if(_Zy=="")return;var wrap=_LL._0L;var alignment=_LL._WK;var _cc3=_LL._QK;var _dc3=_LL._ZK;var _ec3=_LL.__K;var _lW2=_LL._XK;var _fc3=_LL._YK;var _gc3=0.0;var _hc3=_LL._RK;var _05=_LL._SK;var _ic3=null;var x=_LL._zH;var y=_LL._BH;var scaleX=_LL._DK;var scaleY=_LL._EK;var angle=_LL._E3;var originX=_LL._TK;var originY=_LL._UK;var _jc3=[];var _kc3=0;if((originX!=0.0)||(originY!=0.0)){_jc3[_kc3]=new _qr();_jc3[_kc3]._RW(-originX,-originY,0);_kc3++;}if((scaleX!=1.0)||(scaleY!=1.0)){_jc3[_kc3]=new _qr();
_jc3[_kc3]._jK2(scaleX,scaleY,1.0);_kc3++;}if(angle!=0.0){_jc3[_kc3]=new _qr();_jc3[_kc3]._PW(angle);_kc3++;}if((x!=0.0)||(y!=0.0)){_jc3[_kc3]=new _qr();_jc3[_kc3]._RW(x,y,0.0);_kc3++;}var _lc3=null;var _mc3=[];_mc3[0]=new _qr();_mc3[1]=new _qr();var _nc3=0;if(_kc3>0){_mc3[0]=_jc3[0];for(var i=1;i<_kc3;i++){_nc3=_nc3^1;_mc3[_nc3].Multiply(_mc3[_nc3^1],_jc3[i]);}_lc3=_cs(_EF);var _oc3=new _qr();_oc3.Multiply(_mc3[_nc3],_lc3);_8s(_EF,_oc3);}this._pc3(_Zy,_cc3,_hc3,_05,_dc3,_ec3,alignment,wrap,_lW2,_fc3,_gc3,
_ic3,false);if(_kc3>0){_8s(_EF,_lc3);}};var _Fu2=-1;function _EI2(){_Fu2=_de1._9t2();}function _De1(_96,_a6,_Xi,_Yi,_d6,_nt2){if(_nt2){_nt2._st2(_96);_nt2._tt2(_a6);_nt2._ut2(_Xi);_nt2._vt2(_Yi);_nt2._At2(_d6);if(_nt2._Ys2){_nt2._Dt2(_nt2._Et2()+(_nt2._Ft2()*0.5),_nt2._Gt2()+(_nt2._Ht2()*0.5));_nt2._Ge1();}else {_nt2._pu2(_nt2._Et2()+(_nt2._Ft2()*0.5),_nt2._Gt2()+(_nt2._Ht2()*0.5));_nt2._Ge1();_pF=_96;_qF=_a6;_nF=_Xi;_oF=_Yi;var _sF=_d6;_4F(_pF,_qF,_nF,_oF,_sF);}}}function _ve1(_96,_a6,_Xi,_Yi,_d6){var _qc3=_de1._7t2(_Fu2);
if(_qc3==null)_qc3=_de1._Pt2();_De1(_96,_a6,_Xi,_Yi,_d6,_qc3);_de1._Qt2(_qc3._4u2());}function _rc3(_aZ2,_xm,_sc3,_YE,_96,_a6,_el){if(_xm!=null){var _3m=_xm;var _tc3=null;var _uc3=1;var _vc3=1;var _wc3=false;var tilewidth=0;var tileheight=0;var _xc3=0,_yc3=0;var _zc3=0,_Ac3=0;_YE=_YE%_3m.framelength;if(_3m._6m===null||_3m._6m===undefined){}else {var _Zc=_3m._6m;var _s9=_Zc.texture;if(!_s9.complete)return;if(_09)if(!_s9._z9)_y9({texture:_s9});_uc3=_Zc.w/_Zc.ow;_vc3=_Zc.h/_Zc.oh;if(_Zc.XOffset!=0||_Zc.YOffset!=0||_Zc.CropWidth!=_Zc.ow||_Zc.CropHeight!=_Zc.oh){
_wc3=false;}else {_wc3=true;tilewidth=_3m.tilewidth*_uc3/_s9.width;tileheight=_3m.tileheight*_vc3/_s9.height;var tilehsep=_3m.tilehsep*_uc3/_s9.width;var tilevsep=_3m.tilevsep*_vc3/_s9.height;_zc3=tilehsep+_Zc.x/_s9.width;_Ac3=tilevsep+_Zc.y/_s9.height;_xc3=tilewidth+tilehsep*2;_yc3=tileheight+tilevsep*2;}}var _v_2,_w_2,depth;{_v_2=_96;_w_2=_a6;depth=_el;}if(_s9!=null){var _HH=_bo._IH();if(_wc3){var _Bc3=_3m.tilewidth;var _Cc3=_3m.tileheight;var tilecolumns=_3m.tilecolumns;var _r73=null;var _Dc3=null;var _sb,
bindex,_vb,_xb,_zb,_Bb,_3c,_J5,_4c,_5c,_6c;if(_09){var _55=~~((_3d*255.0)<<24)|(_4d&0xffffff);var _sE=_55;var _D82=_55;var _E82=_55;if(_F82){_55&=0xfffefffe;_sE&=0xfffefffe;_D82&=0xfffefffe;_E82&=0xfffefffe;_sE|=0x00000001;_D82|=0x00010000;_E82|=0x00010001;}var _8H=_sc3;_8H&=_HH;var _KH=(_8H>>_LH)&_MH;if(_KH===0)return;_KH=_3m.framedata[_KH*_3m.frames+_YE];if(_KH===0)return;_r73=_09._pb(_Wa._qb,_s9._z9,_09._rb,6);_sb=_r73._tb()>>2;bindex=_sb*_r73._ub;_r73._ub+=6;_vb=_r73._wb;_xb=_r73._yb;_zb=_r73._Ab;
_Bb=bindex;_3c=_Bb+_sb;_J5=_3c+_sb;_4c=_J5+_sb;_5c=_4c+_sb;_6c=_5c+_sb;var _Gi=_v_2;var _Kz=_w_2;var xo=((_KH%tilecolumns)*_xc3)+_zc3;var yo=(Math.floor(_KH/tilecolumns)*_yc3)+_Ac3;var _Ec3=_Gi;var _Fc3=_Kz;var _Gc3=_Gi+_Bc3;var _Hc3=_Kz;var _Ic3=_Gi;var _Jc3=_Kz+_Cc3;var _Kc3=_Gi+_Bc3;var _Lc3=_Kz+_Cc3;var _Mc3=xo;var _Nc3=yo;var _Oc3=xo+tilewidth;var _Pc3=yo;var _Qc3=xo;var _Rc3=yo+tileheight;var _Sc3=xo+tilewidth;var _Tc3=yo+tileheight;if(_8H&_9H){if(_8H&_aH){var _DD;_DD=_Mc3;_Mc3=_Oc3;_Oc3=_DD;_DD=_Qc3;_Qc3=_Sc3;
_Sc3=_DD;}if(_8H&_cH){var _DD;_DD=_Nc3;_Nc3=_Rc3;_Rc3=_DD;_DD=_Pc3;_Pc3=_Tc3;_Tc3=_DD;}if(_8H&_JJ){var _DD;_DD=_Mc3;_Mc3=_Qc3;_Qc3=_Sc3;_Sc3=_Oc3;_Oc3=_DD;_DD=_Nc3;_Nc3=_Rc3;_Rc3=_Tc3;_Tc3=_Pc3;_Pc3=_DD;}}_vb[_Bb+0]=_Ec3;_vb[_Bb+1]=_Fc3;_vb[_Bb+2]=depth;_vb[_3c+0]=_vb[_5c+0]=_Gc3;_vb[_3c+1]=_vb[_5c+1]=_Hc3;_vb[_3c+2]=_vb[_5c+2]=depth;_vb[_J5+0]=_vb[_4c+0]=_Ic3;_vb[_J5+1]=_vb[_4c+1]=_Jc3;_vb[_J5+2]=_vb[_4c+2]=depth;_vb[_6c+0]=_Kc3;_vb[_6c+1]=_Lc3;_vb[_6c+2]=depth;_xb[_Bb]=__D;_xb[_3c]=_xb[_5c]=_sE;
_xb[_6c]=_D82;_xb[_J5]=_xb[_4c]=_E82;_zb[_Bb+0]=_Mc3;_zb[_Bb+1]=_Nc3;_zb[_3c+0]=_zb[_5c+0]=_Oc3;_zb[_3c+1]=_zb[_5c+1]=_Pc3;_zb[_J5+0]=_zb[_4c+0]=_Qc3;_zb[_J5+1]=_zb[_4c+1]=_Rc3;_zb[_6c+0]=_Sc3;_zb[_6c+1]=_Tc3;}else {var _8H=_sc3;var _KH=(_8H>>_LH)&_MH;if(_KH===0)return;_KH=_3m.framedata[_KH*_3m.frames+_YE];if(_KH===0)return;var _Gi=_v_2;var _Kz=_w_2;var xo=((_KH%tilecolumns)*_xc3)+_zc3;var yo=(Math.floor(_KH/tilecolumns)*_yc3)+_Ac3;var _Ec3=_Gi;var _Fc3=_Kz;var _Gc3=_Gi+_Bc3;var _Hc3=_Kz;var _Ic3=_Gi;var _Jc3=_Kz+_Cc3;
var _Kc3=_Gi+_Bc3;var _Lc3=_Kz+_Cc3;var _Mc3=xo;var _Nc3=yo;var _Oc3=xo+tilewidth;var _Pc3=yo;var _Qc3=xo;var _Rc3=yo+tileheight;var _Sc3=xo+tilewidth;var _Tc3=yo+tileheight;var _bz=_Oa.globalAlpha;_Oa.globalAlpha=_3d;var _Uc3=_s9;var _Vc3=0;var _Wc3=0;var _55=_4d&0xffffff;if(_55!=0xffffff){_Uc3=_ya(_Zc,_55);_Vc3=-_Zc.x;_Wc3=-_Zc.y;}if(_8H&_9H){var _5_2=1;var _6_2=1;var _h5=0;if(_8H&_aH){_5_2=-_5_2;}if(_8H&_cH){_6_2=-_6_2;}if(_8H&_JJ){_h5=-1.5708;}_DW2(Math.floor(_Ec3)+_Bc3*0.5,Math.floor(_Fc3)+_Cc3*0.5,_5_2,_6_2,
-_h5);_Oa._Za1(_Uc3,Math.floor(_Mc3*_s9.width)+_Vc3,Math.floor(_Nc3*_s9.height)+_Wc3,Math.floor(tilewidth*_s9.width),Math.floor(tileheight*_s9.height),-_Bc3*0.5,-_Bc3*0.5,_Bc3,_Cc3);_FW2();}else {_Oa._Za1(_Uc3,Math.floor(_Mc3*_s9.width)+_Vc3,Math.floor(_Nc3*_s9.height)+_Wc3,Math.floor(tilewidth*_s9.width),Math.floor(tileheight*_s9.height),Math.floor(_Ec3),Math.floor(_Fc3),_Bc3,_Cc3);}_Oa.globalAlpha=_bz;}}}}};function draw_tile(_Z7,_xm,_Xc3,_YE,_96,_a6){if(_Yl(_xm)){var _Yc3=_5m(_xm);var _Zc3=_7m(_xm);
var _3m=_0m._1m(_xm);var _KH=((_Xc3>>_LH)&_MH);if(_3m!=null&&_KH>_3m.tilecount){return;}var x=yyGetReal(_96);var y=yyGetReal(_a6);var depth=_443(_Z7);_rc3(_5F,_3m,_Xc3,_YE,x,y,depth);}};_s21.prototype._qP=function(_aZ2,_wL,_LL,_pj,_qj,_el){if(_Yl(_LL._qH)){var _Yc3=_5m(_LL._qH);var _Zc3=_7m(_LL._qH);var _3m=_0m._1m(_LL._qH);var _tc3=null;var _uc3=1;var _vc3=1;var _wc3=false;var tilewidth=0;var tileheight=0;var _xc3=0,_yc3=0;var _zc3=0,_Ac3=0;var __D=0xffffffff;var _sE=0xffffffff;var _D82=0xffffffff;var _E82=0xffffffff;
if(_F82){__D=0xfffefffe;_sE=0xfffeffff;_D82=0xfffffffe;_E82=0xffffffff;}if(_3m._6m===null||_3m._6m===undefined){}else {var _Zc=_3m._6m;var _s9=_Zc.texture;if(!_s9.complete)return;if(_09)if(!_s9._z9)_y9({texture:_s9});_uc3=_Zc.w/_Zc.ow;_vc3=_Zc.h/_Zc.oh;if(_Zc.XOffset!=0||_Zc.YOffset!=0||_Zc.CropWidth!=_Zc.ow||_Zc.CropHeight!=_Zc.oh){_wc3=false;}else {_wc3=true;tilewidth=_3m.tilewidth*_uc3/_s9.width;tileheight=_3m.tileheight*_vc3/_s9.height;var tilehsep=_3m.tilehsep*_uc3/_s9.width;var tilevsep=_3m.tilevsep*_vc3/_s9.height;
_zc3=tilehsep+_Zc.x/_s9.width;_Ac3=tilevsep+_Zc.y/_s9.height;_xc3=tilewidth+tilehsep*2;_yc3=tileheight+tilevsep*2;}}var _v_2,_w_2,depth;if(_wL!=null){_v_2=_wL._AH+_LL._zH;_w_2=_wL._CH+_LL._BH;depth=_wL.depth;}else {_v_2=_pj;_w_2=_qj;depth=_el;}if(_s9!=null){var _HH=_bo._IH();_HH&=_LL._JH;if(_wc3){var __c3=2048;var _oi=Math.floor((_aZ2.left-_v_2)/_3m.tilewidth);var _pi=Math.floor(((_aZ2.right-_v_2)+_3m.tilewidth)/_3m.tilewidth);var _qi=Math.floor((_aZ2.top-_w_2)/_3m.tileheight);var _ri=Math.floor(((_aZ2.bottom-_w_2)+_3m.tileheight)/_3m.tileheight);
_oi=_q7(0,_oi);_pi=_r7(_LL._DH,_pi);_qi=_q7(0,_qi);_ri=_r7(_LL._EH,_ri);var _Bc3=_3m.tilewidth;var _Cc3=_3m.tileheight;var tilecolumns=_3m.tilecolumns;var _0d3=(_pi-_oi)*(_ri-_qi);var _1d3=0;var _r73=null;var _Dc3=null;var _sb,bindex,_vb,_xb,_zb,_Bb,_3c,_J5,_4c,_5c,_6c;if(_09){for(var y=_qi;y<_ri;y++){var index=y*_LL._DH+_oi;for(var x=_oi;x<_pi;x++,index++,_0d3--){var _8H=_LL._pH[index];_8H&=_HH;var _KH=(_8H>>_LH)&_MH;if(_KH===0)continue;_KH=_3m.framedata[_KH*_3m.frames+_LL._OH];if(_KH===0)continue;if(_1d3===0){
_1d3=_r7(_0d3,__c3);_r73=_09._pb(_Wa._qb,_s9._z9,_09._rb,_1d3*6);_sb=_r73._tb()>>2;bindex=_sb*_r73._ub;_r73._ub+=_1d3*6;_vb=_r73._wb;_xb=_r73._yb;_zb=_r73._Ab;_Bb=bindex;_3c=_Bb+_sb;_J5=_3c+_sb;_4c=_J5+_sb;_5c=_4c+_sb;_6c=_5c+_sb;}var _Gi=x*_Bc3+_v_2;var _Kz=y*_Cc3+_w_2;var xo=((_KH%tilecolumns)*_xc3)+_zc3;var yo=(Math.floor(_KH/tilecolumns)*_yc3)+_Ac3;var _Ec3=_Gi;var _Fc3=_Kz;var _Gc3=_Gi+_Bc3;var _Hc3=_Kz;var _Ic3=_Gi;var _Jc3=_Kz+_Cc3;var _Kc3=_Gi+_Bc3;var _Lc3=_Kz+_Cc3;var _Mc3=xo;var _Nc3=yo;var _Oc3=xo+tilewidth;
var _Pc3=yo;var _Qc3=xo;var _Rc3=yo+tileheight;var _Sc3=xo+tilewidth;var _Tc3=yo+tileheight;if(_8H&_9H){if(_8H&_aH){var _DD;_DD=_Mc3;_Mc3=_Oc3;_Oc3=_DD;_DD=_Qc3;_Qc3=_Sc3;_Sc3=_DD;}if(_8H&_cH){var _DD;_DD=_Nc3;_Nc3=_Rc3;_Rc3=_DD;_DD=_Pc3;_Pc3=_Tc3;_Tc3=_DD;}if(_8H&_JJ){var _DD;_DD=_Mc3;_Mc3=_Qc3;_Qc3=_Sc3;_Sc3=_Oc3;_Oc3=_DD;_DD=_Nc3;_Nc3=_Rc3;_Rc3=_Tc3;_Tc3=_Pc3;_Pc3=_DD;}}_vb[_Bb+0]=_Ec3;_vb[_Bb+1]=_Fc3;_vb[_Bb+2]=depth;_vb[_3c+0]=_vb[_5c+0]=_Gc3;_vb[_3c+1]=_vb[_5c+1]=_Hc3;_vb[_3c+2]=_vb[_5c+2]=depth;_vb[_J5+0]=_vb[_4c+0]=_Ic3;
_vb[_J5+1]=_vb[_4c+1]=_Jc3;_vb[_J5+2]=_vb[_4c+2]=depth;_vb[_6c+0]=_Kc3;_vb[_6c+1]=_Lc3;_vb[_6c+2]=depth;_xb[_Bb]=__D;_xb[_3c]=_xb[_5c]=_sE;_xb[_6c]=_D82;_xb[_J5]=_xb[_4c]=_E82;_zb[_Bb+0]=_Mc3;_zb[_Bb+1]=_Nc3;_zb[_3c+0]=_zb[_5c+0]=_Oc3;_zb[_3c+1]=_zb[_5c+1]=_Pc3;_zb[_J5+0]=_zb[_4c+0]=_Qc3;_zb[_J5+1]=_zb[_4c+1]=_Rc3;_zb[_6c+0]=_Sc3;_zb[_6c+1]=_Tc3;_Bb+=_sb*6;_3c+=_sb*6;_J5+=_sb*6;_4c+=_sb*6;_5c+=_sb*6;_6c+=_sb*6;_1d3--;}}if(_1d3>0)_r73._ub-=_1d3*6;}else {for(var y=_qi;y<_ri;y++){var index=y*_LL._DH+_oi;
for(var x=_oi;x<_pi;x++,index++,_0d3--){var _8H=_LL._pH[index];var _KH=(_8H>>_LH)&_MH;if(_KH===0)continue;_KH=_3m.framedata[_KH*_3m.frames+_LL._OH];if(_KH===0)continue;var _Gi=x*_Bc3+_v_2;var _Kz=y*_Cc3+_w_2;var xo=((_KH%tilecolumns)*_xc3)+_zc3;var yo=(Math.floor(_KH/tilecolumns)*_yc3)+_Ac3;var _Ec3=_Gi;var _Fc3=_Kz;var _Gc3=_Gi+_Bc3;var _Hc3=_Kz;var _Ic3=_Gi;var _Jc3=_Kz+_Cc3;var _Kc3=_Gi+_Bc3;var _Lc3=_Kz+_Cc3;var _Mc3=xo;var _Nc3=yo;var _Oc3=xo+tilewidth;var _Pc3=yo;var _Qc3=xo;var _Rc3=yo+tileheight;var _Sc3=xo+tilewidth;
var _Tc3=yo+tileheight;if(_8H&_9H){var _5_2=1;var _6_2=1;var _h5=0;if(_8H&_aH){_5_2=-_5_2;}if(_8H&_cH){_6_2=-_6_2;}if(_8H&_JJ){_h5=-1.5708;}_DW2(Math.floor(_Ec3)+_Bc3*0.5,Math.floor(_Fc3)+_Cc3*0.5,_5_2,_6_2,-_h5);_Oa._Za1(_s9,Math.floor(_Mc3*_s9.width),Math.floor(_Nc3*_s9.height),Math.floor(tilewidth*_s9.width),Math.floor(tileheight*_s9.height),-_Bc3*0.5,-_Bc3*0.5,_Bc3,_Cc3);_FW2();}else {_Oa._Za1(_s9,Math.floor(_Mc3*_s9.width),Math.floor(_Nc3*_s9.height),Math.floor(tilewidth*_s9.width),Math.floor(tileheight*_s9.height),
Math.floor(_Ec3),Math.floor(_Fc3),_Bc3,_Cc3);}}}}}}}};_s21.prototype._2d3=function(_aZ2,_wL,_LL){var _qC=_LL._IK;if(!_AW(_qC))return;var _MW=_wV[_qC];if(!_MW._Z83)return;var _NW=_cs(_EF);var _OW=new _qr();_OW._PW(_LL._wK+_MW.angle);var _3d3=new _qr();_3d3._jK2(_LL._uK,_LL._vK,1.0);var _4d3=new _qr();_4d3.Multiply(_3d3,_OW);var _QW=new _qr();_QW._RW(-_MW._NV,-_MW._OV,0.0);var _SW=new _qr();_SW.Multiply(_QW,_4d3);_SW._TW(_MW._NV+_LL._zH,_MW._OV+_LL._BH,0.0);_8s(_EF,_SW);_UW(_qC,_SW);_VW(_qC,_LL._xK,_LL._yK);_8s(_EF,
_NW);};_s21.prototype._5d3=function(_aZ2,_wL,_LL){if(!_LL._VJ)return false;var _ym=_m6._n6(_LL._Wx);if(_ym!=null){var _k5=_ym._l5[0];if((_k5.texture instanceof HTMLImageElement)&&(_k5.tp>=_o5.length))return;if((_o5[_k5.tp] instanceof HTMLImageElement)&&(!_o5[_k5.tp].complete))return;_Nm(_k5,_LL._NK,_LL._OK,_LL._LK,_LL._MK,_LL._zH,_LL._BH,_LL._uK,_LL._vK,_LL._xK,_LL._yK);}};_s21.prototype._6d3=function(_aZ2,_wL,_7d3){_xC._8d3(_7d3,true);var _9o=_xC._JM(_7d3._BK);if((_9o!=null)&&(_9o._9d3!=null)){var _G21=_xC._NP(_9o._AK);
if(_G21!=null){var _lc3=new _qr();var _ad3=_7d3._zH!=0||_7d3._BH!=0||_7d3._E3!=0||_7d3._DK!=1||_7d3._EK!=1;if(_ad3){_lc3=_cs(_EF);var _bd3=new _qr();var _cd3=new _qr();var _dd3=new _qr();var _ed3=new _qr();_bd3._jK2(_7d3._DK,_7d3._EK,1);_cd3._PW(_7d3._E3);_dd3._RW(-_G21._fd3*_7d3._DK,-_G21._gd3*_7d3._EK,0);_ed3._RW(_G21._fd3*_7d3._DK,_G21._gd3*_7d3._EK,0);var _5s=new _qr();_5s.Multiply(_dd3,_cd3);var _hd3=new _qr();_hd3.Multiply(_5s,_ed3);_5s.Multiply(_bd3,_hd3);_5s._e7[12]=_7d3._zH;_5s._e7[13]=_7d3._BH;var _oc3=new _qr();
_oc3.Multiply(_5s,_lc3);_8s(_EF,_oc3);_AF();}_G31.push(_G21);this._id3(_aZ2,_wL,_7d3,_9o._9d3,_9o._CK,_9o._YP,_9o.__P,_G21,false);_G31.pop();if(_ad3){_8s(_EF,_lc3);}}}};_s21.prototype._id3=function(_aZ2,_wL,_7d3,_jd3,_kd3,_ld3,_md3,_nd3,_od3,_pd3){if(_nd3==null){return;}var _lc3=new _qr();var _ad3=!_od3&&(_nd3._fd3!=0||_nd3._gd3!=0);if(_ad3){_lc3=_cs(_EF);var _sp2=new _qr();_sp2._Gs(-_nd3._fd3,-_nd3._gd3,0.0,0.0,0.0,0.0,1.0,1.0,1.0);var _oc3=new _qr();_oc3.Multiply(_sp2,_lc3);_8s(_EF,_oc3);_AF();}this._qd3(_aZ2,
_wL,_7d3,_jd3,_kd3,_ld3,_md3,_nd3._rN,_nd3);if(_ad3){_8s(_EF,_lc3);}};_s21.prototype._qd3=function(_aZ2,_wL,_7d3,_jd3,_kd3,_ld3,_md3,_rd3,_nd3){var _sd3=_jd3;var _td3=new _qr();var _ud3=new _qr();for(var _Bf2=0;_Bf2<_rd3.length;++_Bf2){var _v4=_rd3[_Bf2];if(_vd3(_v4._nH)||!_v4.enabled||!_v4.visible){if(!_vd3(_v4._nH)&&_v4.enabled){if(_sd3!=null){_sd3=_sd3._Uv1;}}continue;}_G31.push(_v4);switch(_v4._nH){default :break;case _w31:case _y31:if(_sd3!=null){_sd3=_sd3._Uv1;}_G31.pop();continue;}if(_sd3!=null){_td3=_cs(_EF);
_ud3.Multiply(_sd3.value._E_2,_td3);_8s(_EF,_ud3);}if(_sd3!=null){switch(_v4._nH){default :break;case _R21:this._wd3(_aZ2,_wL,_7d3,_sd3,_v4,_kd3,_ld3,_md3,_nd3);break;case _T21:this._xd3(_aZ2,_wL,_7d3,_sd3,_v4,_kd3,_ld3,_md3,_nd3);break;case _u31:if(_09){this._yd3(_aZ2,_wL,_7d3,_sd3,_v4,_kd3,_ld3,_md3,_nd3);}break;case _S21:this._zd3(_aZ2,_wL,_7d3,_sd3,_v4,_kd3,_ld3,_md3,_nd3);break;case _331:this._Ad3(_aZ2,_wL,_7d3,_sd3,_v4,_kd3,_ld3,_md3,_nd3);break;case _s31:this._Bd3(_aZ2,_wL,_7d3,_sd3,_v4,_kd3,_ld3,
_md3,_nd3);break;}}if(_sd3!=null&&_v4._rN.length>0){this._qd3(_aZ2,_wL,_7d3,_sd3._Cd3,_kd3,_ld3,_md3,_v4._rN,_nd3);}_8s(_EF,_td3);if(_sd3!=null){_sd3=_sd3._Uv1;}_G31.pop();}};_s21.prototype._wd3=function(_aZ2,_wL,_7d3,_X82,_a4,_kd3,_ld3,_md3,_nd3){var keyframeStore=_a4._uN;var _Dd3=keyframeStore._Ed3(_kd3,_nd3._wN);if(_Dd3==-1)return;var _tN=keyframeStore._NO[_Dd3];var spriteIndex=_tN._Jl[0]._oK;var _mN=_m6.Sprites[spriteIndex];var _3_2=0;if(_mN._m5()>1){var _Fd3=Math.max(_kd3,_tN._OO);_Fd3=Math.min(_Fd3,
_tN._OO+keyframeStore._Gd3(_Dd3,_nd3._wN));var _Hd3=_Fd3-_tN._OO;var _Id3=1.0;var _Jd3=_mN.sequence;if(_Jd3!=null){if(_Jd3._Ub1==_RJ)_Id3=_Jd3._Tb1/_nd3._Tb1;else _Id3=_Jd3._Tb1*(_g4._h4()/_nd3._Tb1);}else if(_mN.playbackspeed!=0.0){if(_mN.playbackspeedtype==_RJ)_Id3=_mN.playbackspeed/_nd3._Tb1;else _Id3=_mN.playbackspeed;}_Hd3*=_Id3;if(_X82.value._Kd3(_Ld3)){var _Md3=_X82.value._Nd3;if(_Md3>=0)_Hd3=_Md3*_Id3;}if(_X82.value._Kd3(_Od3)){_3_2=_X82.value.imageIndex;if(_3_2<0)_3_2=0;else if(_3_2>=_mN._m5())_3_2=_mN._m5()-1;
}else if(_Jd3!=null){var _Pd3=1.0;if(_ld3>_kd3)_Pd3=-1.0;var _K6={headPosition:_Hd3,_oN:_Pd3,_pN:false};_qN(_Jd3,_K6);_Hd3=_K6.headPosition;_Pd3=_K6._oN;if((_Jd3._rN!=null)&&(_Jd3._rN[0]._nH==_sN)){var _v4=_Jd3._rN[0];var _Qd3=_v4._uN._vN(_Hd3,_Jd3._wN);if(_Qd3==null)_3_2=-1;else _3_2=_Qd3._Jl[0]._tK;}}else {_3_2=_Hd3;if(_3_2<0){_3_2=-_3_2;_3_2=_3_2%_mN._m5();if(_3_2>0)_3_2=_mN._m5()-_3_2;}else if(_3_2>=_mN._m5()){_3_2=_3_2%_mN._m5();}}}var _aR=_X82.value._Rd3;var add=_X82.value._Sd3;var _Y4=Math.min(255,((_aR[0]+add[0])*(_7d3._xK&0xff)));
var _Z4=Math.min(255,((_aR[1]+add[1])*((_7d3._xK>>8)&0xff)));var __4=Math.min(255,((_aR[2]+add[2])*((_7d3._xK>>16)&0xff)));var _hc3=(Math.max(0,_Y4))|(Math.max(0,_Z4)<<8)|(Math.max(0,__4)<<16);var _05=Math.min(1,(_aR[3]+add[3])*_7d3._yK);var _OJ=1,_PJ=1;var _Td3=_mN.xOrigin,_Ud3=_mN.yOrigin;var _Vd3;var _Wd3=false;if((_09)&&(_mN._Vb1!=null)&&(_mN._Vb1.enabled==true)){var _Xd3=Math.sqrt((_X82.value._E_2._e7[0]*_X82.value._E_2._e7[0])+(_X82.value._E_2._e7[1]*_X82.value._E_2._e7[1]));var _Yd3=Math.sqrt((_X82.value._E_2._e7[4]*_X82.value._E_2._e7[4])+(_X82.value._E_2._e7[5]*_X82.value._E_2._e7[5]));
if((_Xd3<0.999)||(_Xd3>1.001)||(_Yd3<0.999)||(_Yd3>1.001)){_Wd3=true;_OJ=_Xd3;_PJ=_Yd3;_Td3*=_Xd3;_Ud3*=_Yd3;_Vd3=_cs(_EF);var _Zd3=new _qr(_Vd3);_Zd3._e7[0]/=_OJ;_Zd3._e7[1]/=_OJ;_Zd3._e7[4]/=_PJ;_Zd3._e7[5]/=_PJ;_8s(_EF,_Zd3);}}if(!_09){var _uW2=_6s[_EF];var __d3=Math.atan2(_uW2._e7[1],_uW2._e7[0])*(-180/Math.PI);var _Xd3=Math.sqrt(Math.pow(_uW2._e7[0],2)+Math.pow(_uW2._e7[1],2))*_OJ;var _Yd3=Math.sqrt(Math.pow(_uW2._e7[4],2)+Math.pow(_uW2._e7[5],2))*_PJ;var _bu2=new _Er(_Td3,_Ud3,0);var _PY2=_uW2._jF(_bu2);
var _0e3=_PY2._Qr;var _1e3=_PY2._Rr;_8s(_EF,new _qr());_mN._O9(_3_2,_0e3,_1e3,_Xd3,_Yd3,__d3,_hc3,Math.max(0,_05));_8s(_EF,_uW2);}else {_mN._O9(_3_2,_wL._AH+_Td3,_wL._CH+_Ud3,_OJ,_PJ,0,_hc3,Math.max(0,_05));}if(_Wd3){_8s(_EF,_Vd3);}};_s21.prototype._xd3=function(_aZ2,_wL,_7d3,_X82,_a4,_kd3,_ld3,_md3,_nd3){var keyframeStore=_a4._uN;var _2e3=[];var _3e3=[];var _4e3=1,offset=0;var _5e3=keyframeStore._Ed3(_kd3,_nd3._wN);if(_5e3==-1)return;_2e3[0]=_3e3[0]=_5e3;for(var _0l=offset;_0l<_4e3;_0l++){var _6e3=_2e3[_0l];
var _7e3=_3e3[_0l];for(var i=_6e3;i<=_7e3;i++){var _TG=keyframeStore._NO[i];var _8e3=_TG._Jl[0];var _9e3=_8e3._Wx;var _ae3=_xC._NP(_9e3);if(_ae3==null)continue;_G31.push(_TG);_G31.push(_8e3);_G31.push(_ae3);{var _Ai;if(_TG._be3){if(i>=keyframeStore._JO-1)_Ai=_nd3._wN-_TG._OO;else _Ai=keyframeStore._NO[i+1]._OO-_TG._OO;}else _Ai=_TG._wN;if((_kd3>=_TG._OO)&&(_kd3<(_TG._OO+_Ai)))if((Math.floor(_kd3)>=_TG._OO)&&(Math.floor(_kd3)<(_TG._OO+_Ai))){_AF();var _Fd3=Math.max(_kd3,_TG._OO);var _ce3=Math.max(_ld3,_TG._OO);
_Fd3=Math.min(_Fd3,_TG._OO+(_Ai-1));_ce3=Math.min(_ce3,_TG._OO+(_Ai-1));var _Hd3=_Fd3-_TG._OO;var _de3=_ce3-_TG._OO;var _Id3=1.0;if(_nd3._Tb1!=0.0){if(_nd3._Ub1==_RJ)_Id3=_ae3._Tb1/_nd3._Tb1;else _Id3=_ae3._Tb1;}if(_X82.value._Kd3(_Ld3)){_Id3*=_X82.value.imageSpeed;}_Hd3*=_Id3;_de3*=_Id3;var _Pd3=1.0;if(_ld3>_kd3)_Pd3=-1.0;var _K6={headPosition:_Hd3,_oN:_Pd3,_pN:false};_qN(_ae3,_K6);_Hd3=_K6.headPosition;_Pd3=_K6._oN;this._id3(_aZ2,_wL,_7d3,_X82._Cd3,_Hd3,_de3,_Pd3,_ae3,true);}}_G31.pop();_G31.pop();_G31.pop();
}}};function _ee3(){this._fe3=0xCAFEBABE;this._ge3=0xCAFEBABE;this._he3=0xCAFEBABE;this._ie3=0xCAFEBABE;this._je3=0xCAFEBABE;this._ke3=0xCAFEBABE;this._le3=0xCAFEBABE;this._me3=0xCAFEBABE;this._ne3=0xCAFEBABE;}_ee3.prototype._oe3=function(){if(this._fe3!=0xCAFEBABE)_09._7b._nb(_Wa._6t,this._fe3);if(this._ge3!=0xCAFEBABE)_09._7b._nb(_Wa._2t,this._ge3);if(this._he3!=0xCAFEBABE)_09._7b._nb(_Wa._4t,this._he3);if(this._ie3!=0xCAFEBABE)_09._7b._nb(_Wa._dt,this._ie3);if(this._je3!=0xCAFEBABE)_09._7b._nb(_Wa._Rt,
this._je3);if(this._ke3!=0xCAFEBABE)_09._7b._nb(_Wa._ht,this._ke3);if(this._le3!=0xCAFEBABE)_09._7b._nb(_Wa._Tt,this._le3);if(this._me3!=0xCAFEBABE)_09._7b._nb(_Wa._Vt,this._me3);if(this._ne3!=0xCAFEBABE)_09._7b._nb(_Wa._Fu,this._ne3);};_ee3.prototype._pe3=function(){this._fe3=_09._7b._8b(_Wa._6t);this._ge3=_09._7b._8b(_Wa._2t);this._he3=_09._7b._8b(_Wa._4t);this._ie3=_09._7b._8b(_Wa._dt);this._je3=_09._7b._8b(_Wa._Rt);this._ke3=_09._7b._8b(_Wa._ht);this._le3=_09._7b._8b(_Wa._Tt);this._me3=_09._7b._8b(_Wa._Vt);
this._ne3=_09._7b._8b(_Wa._Fu);};_qe3=[];_re3=null;_se3=0;_s21.prototype._yd3=function(_aZ2,_wL,_7d3,_X82,_a4,_kd3,_ld3,_md3,_nd3){var _te3=null;var _ue3=null;var _ve3=null;var _we3=null;var _xe3=_X82._Cd3==null?null:_X82._Cd3;for(var i=0;i<_a4._rN.length;i++){var _ye3=_a4._rN[i];if(_ye3._nH==_w31){_te3=_ye3;_ve3=_xe3;if(_ue3!=null)break;}else if(_ye3._nH==_y31){_ue3=_ye3;_we3=_xe3;if(_te3!=null)break;}_xe3=_xe3._Uv1;}if(_se3==0){_09._7b._Au();_09._7b._nb(_Wa._2t,true);}_09._7b._nb(_Wa._Tt,true);_09._7b._nb(_Wa._Vt,
0);_09._7b._nb(_Wa._Fu,_Wa._KV1);_09._7b._nb(_Wa._2t,true);_09._7b._nb(_Wa._4t,_Wa._IV1);_09._7b._nb(_Wa._Rt,0);_09._7b._nb(_Wa._ht,false);_09._7b._nb(_Wa._6t,_se3);_09._7b._nb(_Wa._dt,_Wa._EV1);_se3++;_G31.push(_te3);this._qd3(_aZ2,_wL,_7d3,_ve3._Cd3,_kd3,_ld3,_md3,_te3._rN,_nd3);_G31.pop();_se3--;if(_se3==0){_09._7b._nb(_Wa._Rt,_09._7b._PZ1(_Wa._Rt));_09._7b._nb(_Wa._ht,_09._7b._PZ1(_Wa._ht));_09._7b._nb(_Wa._Tt,_09._7b._PZ1(_Wa._Tt));_09._7b._nb(_Wa._Vt,_09._7b._PZ1(_Wa._Vt));_09._7b._nb(_Wa._Fu,
_09._7b._PZ1(_Wa._Fu));}_09._7b._nb(_Wa._6t,_se3+1);_09._7b._nb(_Wa._dt,_Wa._yV1);_G31.push(_ue3);this._qd3(_aZ2,_wL,_7d3,_we3._Cd3,_kd3,_ld3,_md3,_ue3._rN,_nd3);_G31.pop();_09._7b._nb(_Wa._dt,_Wa._FV1);_09._7b._nb(_Wa._Rt,0);_09._7b._nb(_Wa._ht,0);_09._7b._nb(_Wa._Tt,true);_09._7b._nb(_Wa._Vt,0);_09._7b._nb(_Wa._Fu,_Wa._KV1);_se3++;_G31.push(_te3);this._qd3(_aZ2,_wL,_7d3,_ve3._Cd3,_kd3,_ld3,_md3,_te3._rN,_nd3);_G31.pop();_se3--;if(_se3==0){_09._7b._Bu();}};_s21.prototype._zd3=function(_aZ2,_wL,
_7d3,_X82,_a4,_kd3,_ld3,_md3,_nd3){var keyframeStore=_a4._uN;var _ze3=keyframeStore._Ed3(_kd3,_nd3._wN);if(_ze3==-1)return;var _Ae3=keyframeStore._NO[_ze3];if(_Ae3!=null){_G31.push(_Ae3);var _F31=_xC._JM(_7d3._BK);if(_F31!=null){var _Vd3=_cs(_EF);var _Be3=new _qr();_Be3._fs();_8s(_EF,_Be3);for(var _Ce3 in _Ae3._Jl){var _De3=_Ae3._Jl[_Ce3];_G31.push(_De3);var _Ee3=_F31._Fe3[_Ge3(_G31)];if(_Ee3!=null){{var _9o=_Fx._G33(_Ee3._pO);if((_9o!=null)&&(_9o._x13())){if(!(_9o.marked||(!_9o.active)||(!_9o.visible))){if(!_9o._Hv2[_Cz2]){
var _tJ2=_m6._n6(_9o.sprite_index);if(_tJ2){if((_9o.image_xscale==1.0)&&(_9o.image_yscale==1.0)&&(_9o.image_angle==0.0)&&(_9o.image_blend==0xffffff)){_tJ2._Wf1(_9o.image_index,_9o.x,_9o.y,_9o.image_alpha*_3d);}else {_tJ2._O9(_9o.image_index,_9o.x,_9o.y,_9o.image_xscale,_9o.image_yscale,_9o.image_angle,_6d(_9o.image_blend),_9o.image_alpha*_3d);}}}else {_X6=_9o;_9o._w6(_Cz2,0,_9o,_9o);_X6=null;}}}}}_G31.pop();}_8s(_EF,_Vd3);}_G31.pop();}};_s21.prototype._Bd3=function(_aZ2,_wL,_7d3,_X82,_a4,_kd3,_ld3,
_md3,_nd3){var _NO=_a4._uN;var _He3=null;var index=_NO._Ed3(_kd3,_nd3._wN);if(index!=-1){var _Ie3=_NO._NO[index];if(_Ie3!=null){_He3=_Ie3._Jl[0];}}if(_7d3._BK==-1)return;var _Pn=_xC._JM(_7d3._BK);var _Je3=_Pn._Ke3[_a4.id];if(_Je3!==undefined&&_Je3!==_He3){var _Le3=_Pn._Me3[_a4.id];if(_Le3!==undefined&&_Le3!=-1){_zW(_Le3);}_Pn._Me3[_a4.id]=-1;}var _qC=-1;var _Ne3=_Pn._Me3[_a4.id];if(_Ne3===undefined||_Ne3===-1){if(_He3&&_He3.particleSystemIndex!=-1){_qC=_eC._n6(_He3.particleSystemIndex)._4M();_KW(_qC,false);
_JW(_qC,false);_Pn._Me3[_a4.id]=_qC;}}else {_qC=_Ne3;}if(_qC!=-1){var _aR=_X82.value._Rd3;var add=_X82.value._Sd3;var _Y4=Math.min(255,((_aR[0]+add[0])*(_7d3._xK&0xff)));var _Z4=Math.min(255,((_aR[1]+add[1])*((_7d3._xK>>8)&0xff)));var __4=Math.min(255,((_aR[2]+add[2])*((_7d3._xK>>16)&0xff)));var _hc3=(Math.max(0,_Y4))|(Math.max(0,_Z4)<<8)|(Math.max(0,__4)<<16);var _05=Math.min(1,(_aR[3]+add[3])*_7d3._yK);_VW(_qC,_hc3,_05);}_Pn._Ke3[_a4.id]=_He3;};_s21.prototype._pc3=function(_Oe3,_Pe3,_Qe3,_Re3,_Se3,_Te3,
_EN2,_4P,_aW2,_2Y2,_3Y2,_sW2,_OY2){var _Ue3=draw_get_font();var _Ve3=draw_get_color();var _9c3=draw_get_alpha();draw_set_font(_Pe3);draw_set_color(_Qe3);draw_set_alpha(_Re3);_Fw._fz();var _We3=_Fw.__X2(_Oe3,_Se3,_Te3,_EN2,_4P,_aW2,_2Y2,_3Y2);var _nX1=_4P&&((_We3._7Y2>_Se3+2)||(_We3._oY2>_Te3+2));if(_nX1){if(_09){if(_qe3==null||_qe3.length==0){if(_re3==null)_re3=new _ee3();_re3._pe3();_09._7b._nb(_Wa._2t,true);}var state=new _ee3();state._he3=_Wa._KV1;state._ie3=_Wa._AV1;state._je3=0;state._ke3=0;state._fe3=_qe3.length+1;
state._oe3();_qe3.push(state);if(_re3._le3==0){_09._7b._nb(_Wa._Tt,true);_09._7b._nb(_Wa._Vt,0);_09._7b._nb(_Wa._Fu,_Wa._KV1);}var _ra=4;var _ob=_09._pb(_Wa._Gc,null,_09._rb,_ra);var _sb=_ob._tb()>>2;var _Xe3=_sb*_ob._ub;_ob._ub+=_ra;var _vb=_ob._wb;var _xb=_ob._yb;_vb[_Xe3+0]=0.0;_vb[_Xe3+1]=0.0;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=0xffffffff;_Xe3+=_sb;_vb[_Xe3+0]=0.0;_vb[_Xe3+1]=_Te3;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=0xffffffff;_Xe3+=_sb;_vb[_Xe3+0]=_Se3;_vb[_Xe3+1]=0.0;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=0xffffffff;_Xe3+=_sb;_vb[_Xe3+0]=_Se3;
_vb[_Xe3+1]=_Te3;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=0xffffffff;_09._7b._nb(_Wa._dt,_Wa._EV1);_09._7b._nb(_Wa._4t,_qe3.length<2?_Wa._JV1:_Wa._IV1);_09._7b._nb(_Wa._Rt,_qe3.length<2?_re3._je3:0);_09._7b._nb(_Wa._ht,_qe3.length<2?_re3._ke3:0);if(_re3._le3==0){_09._7b._nb(_Wa._Tt,_re3._le3);_09._7b._nb(_Wa._Vt,_re3._me3);_09._7b._nb(_Wa._Fu,_re3._ne3);}}else {_uW2=_6s[_EF];_Oa.save();var _Ye3=new _Er(0,0,0);var _Ze3=new _Er(0,_Te3,0);var __e3=new _Er(_Se3,_Te3,0);var _0f3=new _Er(_Se3,0,0);var _1f3=_uW2._jF(_Ye3);var _2f3=_uW2._jF(_Ze3);
var _3f3=_uW2._jF(__e3);var _4f3=_uW2._jF(_0f3);_Oa.beginPath();_Oa.moveTo(_1f3._Qr,_1f3._Rr);_Oa.lineTo(_2f3._Qr,_2f3._Rr);_Oa.lineTo(_3f3._Qr,_3f3._Rr);_Oa.lineTo(_4f3._Qr,_4f3._Rr);_Oa.closePath();_Oa.clip();}}_Fw._KY2(_We3._Ew,0.0,0.0,_aW2,0.0,_We3._7Y2,_sW2,_OY2);if(_nX1){if(_09){if(_re3._le3==0){_09._7b._nb(_Wa._Tt,true);_09._7b._nb(_Wa._Vt,0);_09._7b._nb(_Wa._Fu,_Wa._KV1);}_09._7b._nb(_Wa._dt,_Wa._zV1);_09._7b._nb(_Wa._4t,_Wa._IV1);_09._7b._nb(_Wa._Rt,0);_09._7b._nb(_Wa._ht,0);var _ra=4;var _ob=_09._pb(_Wa._Gc,
null,_09._rb,_ra);var _sb=_ob._tb()>>2;var _Xe3=_sb*_ob._ub;_ob._ub+=_ra;var _vb=_ob._wb;var _xb=_ob._yb;_vb[_Xe3+0]=0.0;_vb[_Xe3+1]=0.0;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=0xffffffff;_Xe3+=_sb;_vb[_Xe3+0]=0.0;_vb[_Xe3+1]=_Te3+1;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=0xffffffff;_Xe3+=_sb;_vb[_Xe3+0]=_Se3+1;_vb[_Xe3+1]=0.0;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=0xffffffff;_Xe3+=_sb;_vb[_Xe3+0]=_Se3+1;_vb[_Xe3+1]=_Te3+1;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=0xffffffff;var restore=_qe3.pop();restore._oe3();if(_qe3.length==0){_re3._oe3();}}else {_Oa.restore();
}}draw_set_font(_Ue3);draw_set_color(_Ve3);draw_set_alpha(_9c3);};_s21.prototype._Ad3=function(_aZ2,_wL,_7d3,_X82,_a4,_kd3,_ld3,_md3,_nd3){var keyframeStore=_a4._uN;var _Dd3=keyframeStore._Ed3(_kd3,_nd3._wN);if(_Dd3==-1)return;var _5f3=keyframeStore._NO[_Dd3];var text=_5f3._Jl[0].text;if(text==null)return;var wrap=_5f3._Jl[0].wrap;var alignment=_5f3._Jl[0].alignment;var _cc3=_5f3._Jl[0].fontIndex;var _aR=_X82.value._Rd3;var add=_X82.value._Sd3;var _Y4=Math.min(255,((_aR[0]+add[0])*(_7d3._xK&0xff)));var _Z4=Math.min(255,
((_aR[1]+add[1])*((_7d3._xK>>8)&0xff)));var __4=Math.min(255,((_aR[2]+add[2])*((_7d3._xK>>16)&0xff)));var _hc3=(Math.max(0,_Y4))|(Math.max(0,_Z4)<<8)|(Math.max(0,__4)<<16);var _05=Math.min(1,(_aR[3]+add[3])*_7d3._yK);var _dc3=-1;var _ec3=-1;if(_X82.value._6f3._dZ1(_7f3)){_dc3=_X82.value._8f3;_ec3=_X82.value._9f3;}var _lW2=0.0;if(_X82.value._6f3._dZ1(_af3)){_lW2=_X82.value._bf3;}var _fc3=0.0;if(_X82.value._6f3._dZ1(_cf3)){_fc3=_X82.value._df3;}var _gc3=0.0;if(_X82.value._6f3._dZ1(_ef3)){_gc3=_X82.value._ff3;
}var _ic3=_X82.value._gf3;this._pc3(text,_cc3,_hc3,_05,_dc3,_ec3,alignment,wrap,_lW2,_fc3,_gc3,_ic3,true);};_s21.prototype._hf3=function(_aZ2){var _xA=_yA;var _zA=_AA;_yA=_Cz2;_AA=0;var _fM,_lH,i,_yk;_yk=this._RL._yk;for(i=_yk.length-1;i>=0;i--){_fM=_yk[i];if(_fM===null||_fM._VJ<=0){continue;}if(_bo._rL()){_Op(_bo._sL());}else {_Op(_fM.depth);}if(_fM._1K)_if3(_fM,_eT2,_Cz2,0);_jf3(_fM.__J);_kf3(_fM._Ce,_fM._YJ);for(var _J6=0;_J6<_fM._7J.length;_J6++){_lH=_fM._7J._n6(_J6);if(_lH!=null){if(_lH._nH===_yJ){
this._7c3(_aZ2,_fM,_lH);}else if(_lH._nH===_8J){this._5c3(_aZ2,_fM,_lH);}else if(_lH._nH===_AJ){this._ac3(_aZ2,_fM,_lH,0,0,0);}else if(_lH._nH===_oH){this._qP(_aZ2,_fM,_lH);}else if(_lH._nH===_BJ){this._2d3(_aZ2,_fM,_lH);}else if(_lH._nH===_CJ){this._5d3(_aZ2,_fM,_lH);}else if(_lH._nH===_DJ){this._6d3(_aZ2,_fM,_lH);}else if(_lH._nH===_EJ){this._bc3(_aZ2,_fM,_lH);}}}_kf3(_fM._Ce,_fM._ZJ);_lf3(_fM.__J);if(_fM._1K)_if3(_fM,_fT2,_Cz2,0);}_yA=_xA;_AA=_zA;};_s21.prototype._mf3=function(_aZ2){_5F=_aZ2;_AF();if(this._LS2){
_eD(_6d(g_pBuiltIn._BR2));}else if(this._RL!=null&&this._RL.length>0){_eD(_6d(0xfff7ffff));}this._nf3(_aZ2,_AB2);if(this._RL!=null&&this._RL.length>0){this._hf3(_aZ2);}this._nf3(_aZ2,_BB2);};_s21.prototype._of3=function(){if(_vH2>=0){var _Px=_m6._n6(_vH2);if(_Px!=null){_Px._O9(_wH2,_Jg._mJ-_qg.left,_Jg._nJ-_qg.top,1.0,1.0,0,0xffffff,1.0);}_wH2++;if(_wH2>_Px._n7)_wH2-=_Px._n7;}};_s21.prototype._rQ=function(_yg){var index=this._dV2.indexOf(_yg);if(index!=-1){return;}this._dV2.push(_yg);this._cV2++;};
_s21.prototype._tQ=function(_yg){var index=this._dV2.indexOf(_yg);if(index!=-1){this._dV2.splice(index,1);this._cV2--;return;}};_s21.prototype._eV2=function(){this._dV2.length=0;this._cV2=0;};function _if3(_fV2,_pf3,_qf3,_rf3){if(_fV2===null)return;if(_pf3===null)return;var _sf3=_fV2._9K();if(_sf3==null)return;var _hQ=_aQ._pV2(_sf3);if(_hQ==null)return;var _YQ="gml"+_pf3;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_pf3]!=undefined)){_YQ=g_var2obf[_pf3];}if(_hQ[_YQ]!==undefined){_hQ[_YQ](_fV2._Ce);
}};function _kf3(_tf3,_lw){if(_lw!=null){var _Hx=_bo._jO();if(_Hx===null){var _uO=new _BI(0,0,0,0,false,true);_bo._iO(_uO);_Hx=_bo._jO();}_Hx._BL(true);_Hx._B33(_tf3);_lw(_Hx,_Hx);_Hx._BL(false);}};function _jf3(_uf3){if(_uf3!=-1){shader_set(_uf3);}};function _lf3(_uf3){if(_uf3!=-1){shader_reset();}};_s21.prototype._nf3=function(_aZ2,_Y3){var _tJ2,_9o,i,_yk;_yA=_Y3;_5F=_aZ2;_AF();if((this._RL.length>0)){var _fM,_lH;_yk=this._RL._yk;for(i=_yk.length-1;i>=0;i--){_fM=_yk[i];if(_fM==null||_fM._VJ==false){continue;
}_AA=_AB2;if(_fM._1K)_if3(_fM,_eT2,_AB2,0);_jf3(_fM.__J);_kf3(_fM._Ce,_fM._YJ);for(var _J6=0;_J6<_fM._7J.length;_J6++){_lH=_fM._7J._n6(_J6);if(_lH!=null){if(_lH._nH===_8J){_9o=_lH._9J;if(_9o!=null){if(!(_9o.marked||(!_9o.active)||(!_9o.visible))){if(_9o._Hv2[_Y3]){_9o._w6(_Y3,0,_9o,_9o);}}}}}}_AA=_BB2;_kf3(_fM._Ce,_fM._ZJ);_lf3(_fM.__J);if(_fM._1K)_if3(_fM,_fT2,_AB2,0);}}else {_yk=this._0H._yk;for(i=_yk.length-1;i>=0;i--){_9o=_yk[i];if(_9o.marked||!_9o.visible)continue;if(_9o._Hv2[_Y3]){_9o._w6(_Y3,
0,_9o,_9o);}}}};_s21.prototype._vf3=function(_Y4){_0H2=_4H2;_0H2._rg=0;_0H2._tg=0;_0H2._wf3=_Y4.right;_0H2._xf3=_Y4.bottom;_0H2._sg=_Y4.right;_0H2._ug=_Y4.bottom;_0H2._yf3=1.0;_0H2._zf3=1.0;_fD();{_ue1(0,0,_Y4.right,_Y4.bottom);_UY2(0,0,_Y4.right,_Y4.bottom,0);if(this._tb3&&_cj1){_eD(_Th1);}this._nf3(_Y4,_EB2);}_mD();};_s21.prototype._Af3=function(){if(_cj1){if((_sd1<0)||!surface_exists(_sd1)){_sd1=surface_create(_td1,_Md1,_cm);g_pBuiltIn.application_surface=_sd1;debug("Application Surface created: w="+_td1+", h="+_Md1);
}if(_wd1){_wd1=false;surface_create(_ud1,_vd1,_cm,_sd1);_td1=_ud1;_Md1=_vd1;debug("Application Surface resized: w="+_td1+", h="+_Md1);_Bf3();}surface_set_target(_sd1);}};_s21.prototype._Cf3=function(_Y4){_fD();var _Df3=new _yx();_Df3.__i(_5F);if(_e4){_ve1(0,0,_Y4.right,_Y4.bottom,0);}_5i1=1;_6i1=1;this._Af3();this._4c3();var _kg;if(!this._lg){_kg=_mg;_ue1(0,0,_td1,_Md1);_TG2._621=_Fu2;_ve1(0,0,_c4._EN,_c4._GN,0);}else {_kg=this._ng;if(this._sb3){_ue1(0,0,_td1,_Md1);_UY2(0,0,_td1,_Md1,0);_eD(_Th1);}}
var _Ef3=_dj1.w/_td1;var _Ff3=_dj1.h/_Md1;var _YS=_5i1;var _ZS=_6i1;_3H2=0;for(var i=0;i<_kg.length;i++){_0H2=_kg[i];if(_0H2.visible){var _Gf3=_Hf3;_fD();{if(_0H2._JF!=-1){_Rd1(_0H2._JF);}_0H2._rg=_0H2._Zb3*_YS*_Ef3+_dj1.x;_0H2._tg=_0H2.__b3*_ZS*_Ff3+_dj1.y;_0H2._wf3=_0H2._0c3*_YS*_Ef3;_0H2._xf3=_0H2._1c3*_ZS*_Ff3;_0H2._sg=_0H2._rg+_0H2._wf3;_0H2._ug=_0H2._tg+_0H2._xf3;_0H2._yf3=_0H2._wf3/_0H2._2e1;_0H2._zf3=_0H2._xf3/_0H2._3e1;if(_0H2._JF!=-1){_ue1(0,0,surface_get_width(_0H2._JF),surface_get_height(_0H2._JF));
}else {_ue1(_0H2._Zb3*_YS,_0H2.__b3*_ZS,_0H2._0c3*_YS,_0H2._1c3*_ZS);}_de1._Qt2(_0H2._621);var _nt2=_de1._ee1();if(_nt2!=null){_nt2._Kd();_nt2._Ge1();}g_pBuiltIn.view_current=i;this._mf3(_5F);if(_0H2._JF!=-1){surface_reset_target();}_3H2++;var _nt2=_de1._ee1();if(_nt2!=null){_nt2._Md();}_de1._Qt2(-1);}_mD();}}_5F.__i(_Df3);_mD();};_s21.prototype._If3=function(_Y4){if(_5j1&&_cj1){_fD({_Jf3:true,_Kf3:true});_Y4.left=0;_Y4.top=0;_Y4.right=window_get_width();_Y4.bottom=window_get_height();var rect=_dj1;
var _Pz=_09;var _Lf3=_Pz&&gpu_get_alphatestenable();if(_Pz)gpu_set_alphatestenable(false);_ue1(0,0,_Y4.right,_Y4.bottom);_UY2(0,0,_Y4.right,_Y4.bottom,0);draw_surface_stretched(_sd1,rect.x,rect.y,rect.w,rect.h);if(_Pz)gpu_set_alphatestenable(_Lf3);_mD({_Mf3:true,_Nf3:true});}};_s21.prototype._Of3=function(_Y4){_Y4.left=0;_Y4.top=0;_Y4.right=window_get_width();_Y4.bottom=window_get_height();_0H2=_4H2;_0H2._rg=0;_0H2._tg=0;_0H2._wf3=_Y4.right;_0H2._xf3=_Y4.bottom;_0H2._sg=_Y4.right;_0H2._ug=_Y4.bottom;
_0H2._yf3=1.0;_0H2._zf3=1.0;_fD();{_ue1(0,0,_Y4.right,_Y4.bottom);_UY2(0,0,_Y4.right,_Y4.bottom,0);_ve1(0,0,_Y4.right,_Y4.bottom,0);this._nf3(_Y4,_FB2);}_mD();};_s21.prototype.DrawGUI=function(_Y4){var _Pf3=_5i1;var _Qf3=_6i1;var _0D=_1D;var _YC=_ZC;if(_0D<0)_0D=window_get_width();if(_YC<0)_YC=window_get_height();_fD({_Jf3:true});{_Y4.left=0;_Y4.top=0;_Y4.right=window_get_width();_Y4.bottom=window_get_height();_5i1=_Y4.right/_0D;_6i1=_Y4.bottom/_YC;_0H2=_4H2;_0H2._rg=0;_0H2._tg=0;_0H2._wf3=_Y4.right;
_0H2._xf3=_Y4.bottom;_0H2._sg=_Y4.right;_0H2._ug=_Y4.bottom;_0H2._yf3=_5i1;_0H2._zf3=_6i1;_6D=true;_ue1(0,0,_Y4.right,_Y4.bottom);_7D();var _Df3=new _yx();_Df3.__i(_5F);_5F.left=0;_5F.top=0;_5F.right=_0D;_5F.bottom=_YC;this._nf3(_Y4,_CB2);this._nf3(_Y4,_yB2);this._nf3(_Y4,_DB2);_6D=false;_5F.__i(_Df3);}_mD({_Mf3:true});_5i1=_Pf3;_6i1=_Qf3;};_s21.prototype._Rf3=function(_Y4){if(_vH2>=0){_fD();_ue1(0,0,_Y4.right,_Y4.bottom);_UY2(0,0,_Y4.right,_Y4.bottom,0);this._of3();_mD();}};_s21.prototype._O9=function(){
_fD();_iD=0;_jD=0;_kD=canvas.width;_lD=canvas.height;var _Y4=new _yx();if(this._lg){_Y4.left=0;_Y4.top=0;_Y4.right=window_get_width();_Y4.bottom=window_get_height();}else {_Y4.__i(_5F);}this._vf3(_Y4);this._Cf3(_Y4);if(_cj1){surface_reset_target();}if(_qd1.length!=0){_q5("Unbalanced surface stack. You MUST use surface_reset_target() for each set.");return;}this._Of3(_Y4);this._If3(_Y4);this.DrawGUI(_Y4);this._Rf3(_Y4);_mD();};function _7D(){var _0D=_1D;var _YC=_ZC;if(_0D<0)_0D=_Yh1;if(_YC<0)_YC=_Zh1;var _YS=1;
var _ZS=1;var _MT=0;var _NT=0;if(_3D){_YS=_2D;_ZS=__C;_MT=_4D;_NT=_5D;_YY2(_YS,_ZS,_MT,_NT);}else {_MT=_dj1.x;_NT=_dj1.y;if(_1D>0){_YS=_dj1.w/_0D;}if(_ZC>0){_ZS=_dj1.h/_YC;}_YY2(_YS,_ZS,_MT,_NT);}_AF();};_s21.prototype._Sf3=function(){var _K6=[];var __G=_Fx._D33._yk;for(var i=0;i<__G.length;i++){var _9o=__G[i];if(_9o.marked){_K6[_K6.length]=_9o;}}for(var i=0;i<_K6.length;i++){var _9o=_K6[i];this._Nb3(_9o);}};_s21.prototype._Nb3=function(_9o){if(this._lZ&&_9o._j_){this._lZ._0z1(_9o._j_);}_bo._RM(this,_9o);
_Fx._H33(_9o);this._0H._yL(_9o);this._SI._yL(_9o);_9o._Nx._RM(_9o);};_s21.prototype._TI=function(_Pn){if(_Pn.active){this._0H._yL(_Pn);_Pn._Nx._RM(_Pn);this._SI._Vf(_Pn);_Pn.active=false;}};_s21.prototype._UI=function(_Pn){if(!_Pn.active){this._SI._yL(_Pn);this._0H._Vf(_Pn);_Pn._Nx._NM(_Pn);_Pn.active=true;}};_s21.prototype._Tf3=function(){if(this._f13.length==0)return;var _ik=this._f13;for(var i=0;i<_ik.length;i++){var _9o=_ik[i];var room=_c4;if(room!=null){var _kH=_bo._6J(room,_9o.__L);if(_kH!=null){
if(floor(_kH.depth)!=floor(_9o.depth)){if(_kH._WJ&&_kH._7J.length==1){_bo._ZM(room,_kH,_9o.depth,true);}else {_bo._SM(room,_kH,_9o);_bo._NM(room,_9o);}}}}}this._f13=[];};_s21.prototype._Uf3=function(){if(_e4){var _Ai=_QH2.length;for(var i=0;i<_Ai;i++){var _Vf3=_QH2[i];var _W93=_Vf3._la3;var type=_Vf3.type;var id=_W93.id;if(type==0){_bo._PL(_c4,_W93.__83,true);var _fa3=new _HK();_fa3._IK=id;_W93.__83=_bo._mM(_c4,_W93.depth,_fa3,true,true);}}}if(_QH2.length!=0)_QH2=[];};_s21.prototype._aM=function(_yg){this._5Q[this._5Q.length]=_yg;
};_s21.prototype._IM=function(_yg){for(var i=0;i<this._5Q.length;i++){if(this._5Q[i]==_yg){this._5Q.splice(i,1);return;}}};function _sI2(){this._y21=[];this._C21=[];}_sI2.prototype._zJ2=function(_PS1){this._C21=_PS1;};_sI2.prototype._Vf=function(_9V2){return this._y21[this._y21.length]=_9V2;};_sI2.prototype._n6=function(_Wf3){if(_Wf3<0||_Wf3>=this._y21.length)return null;return this._y21[_Wf3];};_sI2.prototype._A21=function(_Wf3){return this._y21[this._C21[_Wf3]];};_sI2.prototype._tC=function(){var ids=[];
for(var i=0;i<this._y21.length;++i){if(this._y21[i]){ids.push(i);}}return ids;};_sI2.prototype._pl=function(_Wf3){this._y21[_Wf3]=null;};_sI2.prototype._u21=function(_Wf3){var _Xf3=_uC._n6(_Wf3);var _Yf3=new _s21();_Yf3._t21();_Yf3._Db3(_Xf3._U11);this._Vf(_Yf3);return _Yf3.id;};_sI2.prototype._v21=function(_1k,_4j){var _Zf3=this._y21[_1k];var __f3=this._y21[_4j];if(!_Zf3||!__f3){return;}_Zf3._Db3(__f3._U11);};_sI2.prototype._0g3=function(){_de1._ot2();_EI2();for(var _1g3 in this._y21){if(!this._y21.hasOwnProperty(_1g3))continue;
var room=this._y21[_1g3];for(var i=0;i<8;i++){var _2g3=room._4_1(i);if(_2g3){_2g3._621=-1;}}var _021=room._U11;if(_021){for(var i=0;i<8;i++){var _Dr=_021.views[i];if(_Dr){if(_Dr._621!==undefined){delete _021.views[i]._621;}}else {var __4=0;}}}}_de1._jt2();};_3g3=-0.0001;function _Ge3(_4g3){var hash="";for(var i=0;i<_4g3.length;i++){var _Je=_4g3[i];hash+=_Je.__type+_Je._5g3.toString();}return hash;}/*@constructor */function _AL2(){this._PL2=-1;this._pM2=-1;this._5g3=_6g3++;this.__yyIsGMLObject=true;this._qM2=function(){
};this._YT1=function(_7g3){if(this._pM2<_TL2()){this._qM2();this._pM2=_TL2();}if(_7g3<this._PL2)return true;else return false;};this._GL2=function(){this._PL2=_QL2();};}_8g3=0;_9g3=1;_ag3=2;_bg3=3;_cg3=0;_dg3=1;_eg3=0;_fg3=1;_gg3=2;_hg3=0;_ig3=1;_jg3=2;_kg3=3;_lg3=0;_R21=1;_U21=2;_X21=3;_Y21=4;_V21=5;_W21=6;_T21=7;_u31=8;_w31=9;_y31=10;_A31=11;_mg3=12;_sN=13;_S21=14;__21=15;_031=16;_331=17;_s31=18;_Z21=19;_ng3=20;function _vd3(type){return(type==_X21||type==_Y21||type==_V21||type==_W21||type==_Z21);
}_og3=0;_pg3=1;_qg3=2;_rg3=3;_sg3=4;_tg3=5;_ug3=6;_vg3=7;_UP=8;_wg3=9;_xg3=10;_yg3=11;_zg3=12;_Ag3=13;_SP=14;_VP=15;_Bg3=16;_Ld3=17;_Od3=18;_Cg3=19;_7f3=20;_af3=21;_cf3=22;_ef3=23;_Dg3=24;_Eg3=25;_Fg3=26;_Gg3=27;_Hg3=28;_Ig3=29;_Jg3=30;_Kg3=31;_Lg3=32;_Mg3=33;_Ng3=34;_Og3=35;_Pg3=36;_Qg3=37;_Rg3=38;_Sg3=39;_Tg3=40;_Ug3=41;_Vg3=42;_Wg3=43;_Xg3=44;_Yg3=45;_Zg3=46;__g3=47;_ZP=48;_0h3=0;_WL2=1;_YL2=2;_1h3=0;_2h3=0;_3h3=0;_4h3=1;_5h3=1;_6h3=2;_7h3=3;_8h3=0;_9h3=1;_tY2=0;_yY2=1;_xY2=2;_vY2=3;_ah3=0;_qY2=1;
_rY2=2;_bh3=-0.0001;_ch3=0;_dh3=0;_6g3=0;_G31=[];_eh3=0;function _fh3(){return _eh3++;}_gh3=1;function _TL2(){return _gh3;}function _QL2(){return _gh3++;}function _hh3(_E_2,x,y,_OJ,_PJ,rotation,_Td3,_Ud3){var _ih3=new _qr();var _jh3=new _qr();var _K6=new _qr();if(_Td3!=0||_Ud3!=0){_jh3._RW(-_Td3,-_Ud3,0);}else _jh3._fs();_ih3._jK2(_OJ,_PJ,1);_K6.Multiply(_jh3,_ih3);_jh3.__i(_K6);_ih3._PW(rotation);_K6.Multiply(_jh3,_ih3);_jh3.__i(_K6);_ih3._RW(x,y,0);_K6.Multiply(_jh3,_ih3);_jh3.__i(_K6);_K6.__i(_E_2);_E_2.Multiply(_K6,
_jh3);}function _kh3(_lh3,_mh3,_nh3,_oh3,_ph3,_qh3,_rh3,_sh3){if(_ph3==null)return false;if(_qh3==null)return false;var playbackspeed=_qh3._Tb1*_oh3;var _Pd3=_nh3;if(playbackspeed<0.0){playbackspeed=-playbackspeed;_Pd3=-_Pd3;}return _ph3._uN._th3(_qh3._uh3,playbackspeed,_qh3._wN,_mh3,_lh3,_Pd3,_rh3,_sh3,false);}function _vh3(_zL2){if((_zL2!=null)&&(_zL2!=undefined)){var modelName=_zL2.modelName;var _wh3;switch(modelName){case "GMSpriteFramesTrack":_wh3=new _C31(_zL2);break;case "GMRealTrack":_wh3=new _m31(_zL2);
break;case "GMGraphicTrack":_wh3=new _i31(_zL2);break;case "GMInstanceTrack":_wh3=new _j31(_zL2);break;case "GMParticleTrack":_wh3=new _t31(_zL2);break;case "GMColourTrack":_wh3=new _n31(_zL2);break;case "GMSequenceTrack":_wh3=new _r31(_zL2);break;case "GMAudioTrack":_wh3=new _k31(_zL2);break;case "GMTextTrack":_wh3=new _l31(_zL2);break;case "GMGroupTrack":_wh3=new _B31(_zL2);break;case "GMClipMaskTrack":_wh3=new _v31(_zL2);break;case "GMClipMask_Mask":_wh3=new _x31(_zL2);break;case "GMClipMask_Subject":_wh3=new _z31(_zL2);
break;case "GMStringTrack":_wh3=new _p31(_zL2);break;case "GMBoolTrack":_wh3=new _o31(_zL2);break;case "GMAudioEffectTrack":_wh3=new _q31(_zL2);break;}_wh3._uN=new _131(_wh3._nH,_zL2.keyframeStore);return _wh3;}}/*@constructor */function _m31(_zL2){_xh3.call(this,_zL2);this._nH=_X21;if((_zL2!=null)&&(_zL2!=undefined)){this._yh3=_zL2.interpolation;}Object.defineProperties(this,{gmlinterpolation:{enumerable:true,get :function(){return this._yh3;},set :function(_k4){var _Je=yyGetInt32(_k4);if((_Je>=0)&&(_Je<_gg3)){
this._yh3=_Je;}else {debug("Trying to set interpolation property of track to out-of-bounds value "+yyGetReal(_k4));}}}});this._On2=function(_zh3,_Tk,_Ah3){if(!this.enabled)return null;if(this._uN==null)return null;if(this._uN._JO==0)return null;return this._Bh3(_zh3,_Tk,_Ah3);};this._SL2=function(_zh3,_Ah3){_Ah3+=1;if(_zh3>this._ML2.length){var _Ch3=this._ML2.length;this._ML2.length=_zh3+1;for(var i=_Ch3;i<this._ML2.length;i++){this._ML2[i]=-1;}}this._ML2[_zh3]=0;for(var i=0;i<this._uN._JO;i++){var key=this._uN._NO[i];
var value=key._Jl[_zh3];if(value==null){value=key._Jl[0];if((value==null)||((value._Dh3==-1)&&(value._Eh3==null)))continue;}if((value._Dh3==-1)&&(value._Eh3==null)){var __L2=this._0M2(_zh3);__L2._zH=key._OO;__L2._BL2=value._Fh3;if(!key._be3&&key._wN>1){var __L2=this._0M2(_zh3);__L2._zH=(key._OO+(key._wN));__L2._BL2=value._Fh3;}else if(key._be3==true){if(i==(this._uN._JO-1)){if((_Ah3-key._OO)>1){var __L2=this._0M2(_zh3);__L2._zH=key._OO+(_Ah3-key._OO);__L2._BL2=value._Fh3;}}else {var _Gh3=this._uN._NO[i+1];
if(_Gh3._OO>(key._OO+1)){var __L2=this._0M2(_zh3);__L2._zH=_Gh3._OO;__L2._BL2=value._Fh3;}}}}else {var _Hh3=key._wN;if(key._be3==true){if(i==(this._uN._JO-1)){if(_Ah3<=0)continue;else {_Hh3=_Ah3-key._OO;}}else {var _Gh3=this._uN._NO[i+1];if(_Gh3._OO>key._OO){_Hh3=_Gh3._OO-key._OO;}}}var _Al=null;if(value._Ih3){_Al=value._Eh3;}else {_Al=_Cl._n6(value._Dh3);}if(_Al==null){continue;}var _Jh3=_zh3;if(_Jh3>=_Al._Hl){_Jh3=_Al._Hl-1;}_Al._Ql(this,_Jh3,_zh3,key._OO,_Hh3);}}};this._Kh3=function(_zh3,_Lh3,_Tk,_Ah3,
_Mh3){var _Nh3=null;if(!this.enabled)return null;if(this._uN==null)return null;if(this._uN._JO==0)return null;var _27=this._ML2[_zh3];if(_27==0){return null;}var _Oh3=_Tk-_Lh3;if(_Oh3<=0){_Nh3=0;return _Nh3;}var _fb3=this._NL2[_zh3];var _Ph3=0;if(_27==1){_Ph3=_fb3[0]._BL2*_Oh3;_Nh3=_Ph3;return _Nh3;}var _Qh3=this._yh3==_fg3;var _9p=_fb3[0];var _s7=_r7(_9p._zH,_Tk)-_Lh3;if(_s7>0)_Ph3=_9p._BL2*_s7;for(var i=1;i<_27;++i){if(_9p._zH>=_Tk)break;var _ap=_fb3[i];if(_ap._zH>_Lh3){_s7=_r7(_ap._zH,_Tk)-_9p._zH;if(_s7>0){
var _Xo;var offset=(_Lh3-_9p._zH);if(!_Qh3){if(offset>0)_s7-=offset;_Xo=_9p._BL2*_s7;}else {var _05=(_ap._BL2-_9p._BL2)/(_ap._zH-_9p._zH);var _Bb=_9p._BL2;if(offset>0){_s7-=offset;_Bb+=_05*offset;}_Xo=_Bb*_s7+(0.5*_05*_s7*_s7);}_Ph3+=_Xo;}}_9p=_ap;}var _a02=_Tk-_9p._zH;if(_a02>0){var _Xo=_9p._BL2*(_a02);_Ph3+=_Xo;}_Nh3=_q7(_Ph3,0);return _Nh3;};}/*@constructor */function _q31(_zL2){_xh3.call(this,_zL2);this._nH=_Z21;this._Rh3=null;if((_zL2!=null)&&(_zL2!=undefined)){this._yh3=_zL2.interpolation;}Object.defineProperties(this,
{gmlinterpolation:{enumerable:true,get :function(){return this._yh3;},set :function(_k4){var _Je=yyGetInt32(_k4);if((_Je>=0)&&(_Je<_gg3)){this._yh3=_Je;}else {debug("Trying to set interpolation property of track to out-of-bounds value "+yyGetReal(_k4));}}}});this._Bh3=function(_zh3,_Tk,_Ah3,_Sh3){var _Nh3=null;var _Yb1=false;var _Iw1=false;if(_zh3>=this._ML2.length||this._ML2[_zh3]==0){_Iw1=true;}else if(this._pM2<_TL2()){if(this._uN._YT1(this._PL2)){_Yb1=true;}this._pM2=_TL2();}if(_Yb1||_Iw1){var _Th3=_q7(this._ML2.length,
_zh3+1);for(var i=0;i<_Th3;i++){if((i>=this._ML2.length)||(this._ML2[i]!=-1)){this._SL2(i,_Ah3);}}this._PL2=_q7(this._PL2,this._uN._PL2);}var _27=this._ML2[_zh3];if(_27==0){return null;}var _fb3=this._NL2[_zh3];if(_fb3[_27-1]._zH<_Tk){_Nh3=_fb3[_27-1]._BL2;return _Nh3;}var start,end,_Bi;start=0;end=_27;_Bi=(start+end)>>1;while(_Bi!=start){if(_fb3[_Bi]._zH>_Tk){end=_Bi;}else {start=_Bi;}_Bi=(start+end)>>1;}if((this._yh3==_eg3)||(_Bi==(_27-1))){if(_fb3[0]._zH>_Tk){_Nh3=_Sh3.defaultValue;}else {_Nh3=_fb3[_Bi]._BL2;
}}else {let _Uh3=_fb3[_Bi];let _Vh3=_fb3[_Bi+1];if(_fb3[0]._zH>_Tk){_Vh3=_Uh3;_Uh3=new _Xl();_Uh3._zH=0;_Uh3._BL2=_Sh3.defaultValue;}if(_zh3==0){_Nh3=_Uh3._BL2;}else if((_Vh3._zH-_Uh3._zH)>0.0){const prop=(_Tk-_Uh3._zH)/(_Vh3._zH-_Uh3._zH);_Nh3=(_Vh3._BL2*prop)+(_Uh3._BL2*(1.0-prop));if(_Sh3._592){_Nh3=Math.floor(_Nh3);}}else {_Nh3=_Uh3._BL2;}}return _Nh3;};this._On2=function(_zh3,_Tk,_Ah3){const _Wh3=this._Xh3(_zh3);if(!this.enabled)return _Wh3.defaultValue;if(this._uN==null)return _Wh3.defaultValue;if(this._uN._JO==0)return _Wh3.defaultValue;
return this._Bh3(_zh3,_Tk,_Ah3,_Wh3);};this._SL2=function(_zh3,_Ah3){_Ah3+=1;if(_zh3>this._ML2.length){var _Ch3=this._ML2.length;this._ML2.length=_zh3+1;for(var i=_Ch3;i<this._ML2.length;i++){this._ML2[i]=-1;}}this._ML2[_zh3]=0;for(var i=0;i<this._uN._JO;i++){var key=this._uN._NO[i];var value=key._Jl[_zh3];if(value==null){value=key._Jl[0];if((value==null)||((value._Dh3==-1)&&(value._Eh3==null)))continue;}if((value._Dh3==-1)&&(value._Eh3==null)){var __L2=this._0M2(_zh3);__L2._zH=key._OO;__L2._BL2=value._Fh3;
if(!key._be3&&key._wN>1){var __L2=this._0M2(_zh3);__L2._zH=(key._OO+(key._wN));__L2._BL2=value._Fh3;}else if(key._be3==true){if(i==(this._uN._JO-1)){if((_Ah3-key._OO)>1){var __L2=this._0M2(_zh3);__L2._zH=key._OO+(_Ah3-key._OO);__L2._BL2=value._Fh3;}}else {var _Gh3=this._uN._NO[i+1];if(_Gh3._OO>(key._OO+1)){var __L2=this._0M2(_zh3);__L2._zH=_Gh3._OO;__L2._BL2=value._Fh3;}}}}else {var _Hh3=key._wN;if(key._be3==true){if(i==(this._uN._JO-1)){if(_Ah3<=0)continue;else {_Hh3=_Ah3-key._OO;}}else {var _Gh3=this._uN._NO[i+1];
if(_Gh3._OO>key._OO){_Hh3=_Gh3._OO-key._OO;}}}var _Al=null;if(value._Ih3){_Al=value._Eh3;}else {_Al=_Cl._n6(value._Dh3);}if(_Al==null){continue;}var _Jh3=_zh3;if(_Jh3>=_Al._Hl){_Jh3=_Al._Hl-1;}_Al._Ql(this,_Jh3,_zh3,key._OO,_Hh3);}}};this._Kh3=function(_zh3,_Lh3,_Tk,_Ah3,_Mh3){var _Nh3=null;if(!this.enabled)return null;if(this._uN==null)return null;if(this._uN._JO==0)return null;var _27=this._ML2[_zh3];if(_27==0){return null;}var _Oh3=_Tk-_Lh3;if(_Oh3<=0){_Nh3=0;return _Nh3;}var _fb3=this._NL2[_zh3];var _Ph3=0;
if(_27==1){_Ph3=_fb3[0]._BL2*_Oh3;_Nh3=_Ph3;return _Nh3;}var _Qh3=this._yh3==_fg3;var _9p=_fb3[0];var _s7=_r7(_9p._zH,_Tk)-_Lh3;if(_s7>0)_Ph3=_9p._BL2*_s7;for(var i=1;i<_27;++i){if(_9p._zH>=_Tk)break;var _ap=_fb3[i];if(_ap._zH>_Lh3){_s7=_r7(_ap._zH,_Tk)-_9p._zH;if(_s7>0){var _Xo;var offset=(_Lh3-_9p._zH);if(!_Qh3){if(offset>0)_s7-=offset;_Xo=_9p._BL2*_s7;}else {var _05=(_ap._BL2-_9p._BL2)/(_ap._zH-_9p._zH);var _Bb=_9p._BL2;if(offset>0){_s7-=offset;_Bb+=_05*offset;}_Xo=_Bb*_s7+(0.5*_05*_s7*_s7);}_Ph3+=_Xo;}
}_9p=_ap;}var _a02=_Tk-_9p._zH;if(_a02>0){var _Xo=_9p._BL2*(_a02);_Ph3+=_Xo;}_Nh3=_q7(_Ph3,0);return _Nh3;};this._Yh3=function(){if(this._Rh3===null){const effectType=this._Zh3();this._Rh3=audio_effect_create(effectType);this.__h3._0i3(this._Rh3);}return this._Rh3;};this._Zh3=function(){switch(this.builtinName){case _Og3:return _Q82._R82._S82;case _Pg3:return _Q82._R82._792;case _Qg3:return _Q82._R82._j92;case _Rg3:return _Q82._R82._V82;case _Sg3:return _Q82._R82._K92;case _Tg3:return _Q82._R82._O92;case _Ug3:return _Q82._R82._Q92;
case _Vg3:return _Q82._R82._R92;case _Wg3:return _Q82._R82._S92;case _Xg3:return _Q82._R82._U92;case _Yg3:return _Q82._R82._Z92;default :_q5("Unsupported audio effect track type");return undefined;}};this._1i3=function(){return(this.builtinName==_Ng3);};this._2i3=function(){if(this._1i3()){return this.__h3._3i3;}return this._Rh3;};this._Xh3=function(_zh3){const _I92=this._2i3();return _I92._pa2(_zh3);};}/*@constructor */function _xh3(_zL2){_4i3.call(this,_zL2);this._yh3=_eg3;this._ML2=[];this._NL2=[];this._5i3=function(_zh3,
_Tk,_Ah3){var _Ya=this._6i3();if(_Ya!=null){return _Ya._5i3(_zh3,_Tk,_Ah3);}return this._On2(_zh3,_Tk,_Ah3);};this._On2=function(_zh3,_Tk,_Ah3){throw new Error("Not Implemented");};this._0M2=function(_zh3){var _oM2=new _Xl();if(this._NL2[_zh3]==undefined){this._NL2[_zh3]=[];}this._NL2[_zh3][this._ML2[_zh3]]=_oM2;this._ML2[_zh3]=this._ML2[_zh3]+1;return _oM2;};this._Bh3=function(_zh3,_Tk,_Ah3){var _Nh3=null;var _Yb1=false;var _Iw1=false;if(_zh3>=this._ML2.length||this._ML2[_zh3]==0){_Iw1=true;}else if(this._pM2<_TL2()){
if(this._uN._YT1(this._PL2)){_Yb1=true;}this._pM2=_TL2();}if(_Yb1||_Iw1){var _Th3=_q7(this._ML2.length,_zh3+1);for(var i=0;i<_Th3;i++){if((i>=this._ML2.length)||(this._ML2[i]!=-1)){this._SL2(i,_Ah3);}}this._PL2=_q7(this._PL2,this._uN._PL2);}var _27=this._ML2[_zh3];if(_27==0){return null;}var _fb3=this._NL2[_zh3];if(_fb3[0]._zH>_Tk){_Nh3=_fb3[0]._BL2;return _Nh3;}else if(_fb3[_27-1]._zH<_Tk){_Nh3=_fb3[_27-1]._BL2;return _Nh3;}var start,end,_Bi;start=0;end=_27;_Bi=(start+end)>>1;while(_Bi!=start){if(_fb3[_Bi]._zH>_Tk){
end=_Bi;}else {start=_Bi;}_Bi=(start+end)>>1;}if((this._yh3==_eg3)||(_Bi==(_27-1))){_Nh3=_fb3[_Bi]._BL2;return _Nh3;}else {var _Uh3=(_fb3[_Bi]);var _Vh3=(_fb3[_Bi+1]);var prop=0.0;if((_Vh3._zH-_Uh3._zH)>0.0){prop=(_Tk-_Uh3._zH)/(_Vh3._zH-_Uh3._zH);}_Nh3=(_Vh3._BL2*prop)+(_Uh3._BL2*(1.0-prop));return _Nh3;}};}/*@constructor */function _i31(_zL2){_4i3.call(this,_zL2);this._nH=_R21;}/*@constructor */function _j31(_zL2){_4i3.call(this,_zL2);this._nH=_S21;}/*@constructor */function _t31(_zL2){_4i3.call(this,_zL2);
this._nH=_s31;}/*@constructor */function _n31(_zL2){_xh3.call(this,_zL2);this._nH=_Y21;if((_zL2!=null)&&(_zL2!=undefined)){this._yh3=_zL2.interpolation;}Object.defineProperties(this,{gmlinterpolation:{enumerable:true,get :function(){return this._yh3;},set :function(_k4){var _Je=yyGetInt32(_k4);if((_Je>=0)&&(_Je<_gg3)){this._yh3=_Je;}else {debug("Trying to set interpolation property of track to out-of-bounds value "+yyGetReal(_k4));}}}});this._On2=function(_zh3,_Tk,_Ah3){if(!this.enabled)return null;if(this._uN==null)return null;
if(this._uN._JO==0)return null;var _Nh3=null;var _Y4,_Z4,__4,_05;_Y4=_Z4=__4=_05=1.0;if((_05=this._Bh3(0,_Tk,_Ah3))==null)return null;if((_Y4=this._Bh3(1,_Tk,_Ah3))==null)return null;if((_Z4=this._Bh3(2,_Tk,_Ah3))==null)return null;if((__4=this._Bh3(3,_Tk,_Ah3))==null)return null;_Y4*=255.0;_Z4*=255.0;__4*=255.0;_05*=255.0;var _7i3=_r7(_Y4,255);var _8i3=_r7(_Z4,255);var _9i3=_r7(__4,255);var _ai3=_r7(_05,255);_Nh3=((_ai3<<24)&0xff000000)|((_9i3<<16)&0xff0000)|((_8i3<<8)&0xff00)|(_7i3&0xff);return _Nh3;};this._SL2=function(_zh3,
_Ah3){_Ah3+=1;if(_zh3>this._ML2.length){var _Ch3=this._ML2.length;this._ML2.length=_zh3+1;for(var i=_Ch3;i<this._ML2.length;i++){this._ML2[i]=-1;}}this._ML2[_zh3]=0;for(var i=0;i<this._uN._JO;i++){var key=this._uN._NO[i];var value=key._Jl[_zh3];if(value==null){value=key._Jl[0];if(value==null)continue;}if((value._Dh3==-1)&&(value._Eh3==null)){var __L2=this._0M2(_zh3);__L2._zH=key._OO;__L2._BL2=this._bi3(value._WR2,_zh3);if(!key._be3&&key._wN>1){var __L2=this._0M2(_zh3);__L2._zH=(key._OO+(key._wN-1));__L2._BL2=this._bi3(value._WR2,
_zh3);}else if(key._be3==true){if(i==(this._uN._JO-1)){if((_Ah3-key._OO)>1){var __L2=this._0M2(_zh3);__L2._zH=key._OO+(_Ah3-key._OO);__L2._BL2=this._bi3(value._WR2,_zh3);}}else {var _Gh3=this._uN._NO[i+1];if(_Gh3._OO>(key._OO+1)){var __L2=this._0M2(_zh3);__L2._zH=_Gh3._OO-1;__L2._BL2=this._bi3(value._WR2,_zh3);}}}}else {var _Hh3=key._wN;if(key._be3==true){if(i==(this._uN._JO-1)){if(_Ah3<=0)continue;else {_Hh3=_Ah3-key._OO;}}else {var _Gh3=this._uN._NO[i+1];if(_Gh3._OO>key._OO){_Hh3=_Gh3._OO-key._OO;}}}var _Al=null;
if(value._Ih3){_Al=value._Eh3;}else {_Al=_Cl._n6(value._Dh3);}if(_Al==null){continue;}var _Jh3=_zh3;if(_Jh3>=_Al._Hl){_Jh3=_Al._Hl-1;}_Al._Ql(this,_Jh3,_zh3,key._OO,_Hh3,1.0/255.0);}}};this._bi3=function(_Xd,_ci3){var _di3=0;switch(_ci3){case 0:_di3=_Xd>>24;break;case 1:_di3=_Xd;break;case 2:_di3=_Xd>>8;break;case 3:_di3=_Xd>>16;break;}_di3&=0xff;var _ei3=_di3/255.0;return _ei3;};this._fi3=function(left,right){var _Y4=_r7((left&0xff)+(right&0xff),255);var _Z4=_r7(((left>>8)&0xff)+((right>>8)&0xff),255);var __4=_r7(((left>>16)&0xff)+((right>>16)&0xff),
255);var _05=_r7(((left>>24)&0xff)+((right>>24)&0xff),255);return((_05<<24)&0xff000000)|((__4<<16)&0xff0000)|((_Z4<<8)&0xff00)|(_Y4&0xff);};this._gi3=function(left,right){var _Y4=((left&0xff)*(right&0xff)/255.0);var _Z4=(((left>>8)&0xff)*((right>>8)&0xff)/255.0);var __4=(((left>>16)&0xff)*((right>>16)&0xff)/255.0);var _05=(((left>>24)&0xff)*((right>>24)&0xff)/255.0);return((_05<<24)&0xff000000)|((__4<<16)&0xff0000)|((_Z4<<8)&0xff00)|(_Y4&0xff);};this._gi3=function(left,factor){factor=_q7(factor,0.0);
factor=_r7(factor,1.0);var _Y4=((left&0xff)*factor);var _Z4=(((left>>8)&0xff)*factor);var __4=(((left>>16)&0xff)*factor);var _05=(((left>>24)&0xff)*factor);return((_05<<24)&0xff000000)|((__4<<16)&0xff0000)|((_Z4<<8)&0xff00)|(_Y4&0xff);};}/*@constructor */function _C31(_zL2){_4i3.call(this,_zL2);this._nH=_sN;this._On2=function(_hi3){var _ii3=undefined;var _ji3=undefined;var _ki3=this._uN._li3(_hi3);_ii3=_ki3._mi3;_ji3=_ki3.post;var _ni3=(_ii3!==undefined);var _oi3=(_ji3!==undefined);if((!_ni3)&&(!_oi3))return -1.0;
if(!_ni3){return _ji3._tK;}if(!_oi3){var _pi3=_ii3._Jl[0]._tK;var _qi3=_pi3+1.0;var _ri3=_ii3._OO;var _si3=_ri3+_ii3._wN;if(_si3==_ri3){_si3+=1.0;}var _W33=_pi3+((_hi3-_ri3)/(_si3-_ri3))*(_qi3-_pi3);return _W33;}var _pi3=_ii3._Jl[0]._tK;var _qi3=_ji3._Jl[0]._tK;var _ri3=_ii3._OO;var _si3=_ji3._OO;var _W33=_pi3+((_hi3-_ri3)/(_si3-_ri3))*(_qi3-_pi3);return _W33;};}/*@constructor */function _r31(_zL2){_4i3.call(this,_zL2);this._nH=_T21;}/*@constructor */function _k31(_zL2){_4i3.call(this,_zL2);this._nH=_U21;this._3i3=null;
this._ti3=function(){if(this._3i3===null){this._3i3=audio_bus_create();}return this._3i3;};this._0i3=function(_ui3){const _vi3=this._ti3();for(let i=_t51._6a2-1;i>=0;--i){if(_vi3._Qx1[i]==undefined){_vi3._Qx1[i]=_ui3;return;}}_q5("Failed to push effect to bus. Audio tracks cannot hold more than "+_t51._6a2+" audio effect tracks");};this._wi3=function(){const _xi3=this._rN.filter(_a4=>_a4._Rh3 instanceof _6a1).map(_a4=>_a4._Rh3);if(_xi3.length==0&&this._3i3===null){return;}this._ti3();for(let i=0;i<_t51._6a2;
++i){if(_xi3[i]!==this._3i3.effects[_t51._6a2-1-i]){this._3i3._Qx1[_t51._6a2-1-i]=_xi3[i];}}if(_xi3.length>_t51._6a2){_q5("Failed to assign effect to bus. Audio tracks cannot hold more than "+_t51._6a2+" audio effect tracks");}}}/*@constructor */function _B31(_zL2){_4i3.call(this,_zL2);this._nH=_A31;}/*@constructor */function _l31(_zL2){_4i3.call(this,_zL2);this._nH=_331;}/*@constructor */function _v31(_zL2){_4i3.call(this,_zL2);this._nH=_u31;Object.defineProperties(this,{gmlmask:{enumerable:true,get :function(){
return this._yi3();},set :function(_k4){this._zi3(_k4);}},gmlsubject:{enumerable:true,get :function(){return this._Ai3();},set :function(_k4){this._Bi3(_k4);}}});}_v31.prototype._Ci3=function(_ph3,_Di3){for(var i=0;i<this._rN.length;i++){var _ye3=this._rN[i];if(_ye3._nH==_Di3){if(_ph3==null)this._rN.splice(i,1);else this._rN[i]=_ph3;return;}}if(_ph3!=_sT){this._rN[this._rN.length]=_ph3;}};_v31.prototype._zi3=function(_ph3){this._Ci3(_ph3,_w31);};_v31.prototype._Bi3=function(_ph3){this._Ci3(_ph3,_y31);};
_v31.prototype._yi3=function(){for(var i=0;i<this._rN.length;i++){var _ye3=this._rN[i];if(_ye3._nH==_w31){return _ye3;}}return null;};_v31.prototype._Ai3=function(){for(var i=0;i<this._rN.length;i++){var _ye3=this._rN[i];if(_ye3._nH==_y31){return _ye3;}}return null;};/*@constructor */function _x31(_zL2){_4i3.call(this,_zL2);this._nH=_w31;}/*@constructor */function _z31(_zL2){_4i3.call(this,_zL2);this._nH=_y31;}/*@constructor */function _p31(_zL2){_4i3.call(this,_zL2);this._nH=_W21;}/*@constructor */function _o31(_zL2){
_4i3.call(this,_zL2);this._nH=_V21;}/*@constructor */function _4i3(_zL2){_AL2.call(this);this.__type="[Track]";this.id=_fh3();this._Ei3="";this.pName="";this.builtinName=0;this._Fi3=0;this._Gi3=false;this._Hi3=[];this._Ii3=0;this._rN=[];this._Ji3=0;this._Ki3=[];this._uN=new _131();this.__h3=null;if((_zL2!=null)&&(_zL2!=undefined)){this._Ei3=_zL2.modelName;this.pName=_zL2.pName;this.builtinName=_zL2.builtinName;this._Gi3=_zL2.creationTrack==1?true:false;this._Fi3=_zL2.traits;if(_zL2.tags!==undefined&&_zL2.tags.length>0){
for(var _Li3=0;_Li3<_zL2.tags.length;_Li3++){this._Hi3[_zL2.tags[_Li3].UniqueTagTypeId]=_zL2.tags[_Li3];}}this._Ii3=_zL2.tracks.length;this._rN=[];for(var _Bf2=0;_Bf2<this._Ii3;++_Bf2){this._rN[_Bf2]=_vh3(_zL2.tracks[this._Ii3-1-_Bf2]);this._rN[_Bf2].__h3=this;}this._Ji3=_zL2.ownedResourceModels.length;this._Ki3=[];for(var _Mi3=0;_Mi3<this._Ji3;++_Mi3){var _Ni3=_zL2.ownedResourceModels[_Mi3];var _Oi3=_Ni3.type;var _Pi3=_Ni3.resource;if(_Oi3=="GMAnimCurve"){this._Ki3[_Mi3]=new _Vl(_Pi3);}}}Object.defineProperties(this,
{gmlname:{enumerable:true,get :function(){return this.pName;},set :function(_k4){this.pName=yyGetString(_k4);this._Qi3();}},gmltype:{enumerable:true,get :function(){return this._nH;}},gmltraits:{enumerable:true,get :function(){return this._Fi3;},set :function(_k4){this._Fi3=yyGetInt32(_k4);}},gmltracks:{enumerable:true,get :function(){return this._rN;},set :function(_k4){if(_k4 instanceof Array){_k4.forEach(_a4=>{_a4.__h3=this;});this._rN=_k4;}else {throw new Error("value must be an array of tracks");}}},gmlenabled:{
enumerable:true,get :function(){return this._Hi3==null||this._Hi3[_ag3]==undefined;},set :function(_k4){this._Hi3[_ag3]=yyGetBool(_k4)?undefined:true;}},gmlvisible:{enumerable:true,get :function(){return this._Hi3==null||this._Hi3[_9g3]==undefined;},set :function(_k4){this._Hi3[_9g3]=yyGetBool(_k4)?undefined:true;}},enabled:{get :function(){return this._Hi3==null||this._Hi3[_ag3]==undefined;},set :function(_k4){this._Hi3[_ag3]=yyGetBool(_k4)?undefined:true;}},visible:{get :function(){return this._Hi3==null||this._Hi3[_9g3]==undefined;
},set :function(_k4){this._Hi3[_9g3]=yyGetBool(_k4)?undefined:true;}},gmlembeddedAnimCurves:{enumerable:true,get :function(){return this._Ki3;},set :function(_k4){this._Ki3=_k4;}},gmllinkedTrack:{enumerable:true,get :function(){return this._Hi3==null?-1:(this._Hi3[_8g3]!=null?this._Hi3[_8g3]._v4:-1);},set :function(_k4){if(_k4==-1)_k4=null;if(this._Hi3[_ag3]==null)this._Hi3[_8g3]={};this._Hi3[_8g3]._v4=_k4;}},gmlkeyframes:{enumerable:true,get :function(){return this._uN._NO;},set :function(_k4){if(_k4 instanceof Array){
this._uN._NO=_k4;this._uN._JO=_k4.length;}else {throw new Error("value must be an array of keyframes");}}}});this._6i3=function(){if(this.tags!=null&&this.tags[_8g3]!=null){var _Ri3=this.tags[_8g3];if(_Ri3==null)return null;if(_Ri3._v4==null){var _v4=_xC._NP(_Ri3._Bf2);if(_v4!=null)_Ri3._v4=_v4;}return _Ri3._v4;}return null;};this._Si3=function(_Ti3,_o91,_Wc1,_Ui3){_Wc1.xOrigin=0.0;_Wc1.yOrigin=0.0;_Ui3._cZ1(_Bg3);_Wc1._6f3._gZ1();_Wc1._Vi3(_Ui3);_Wc1._Wi3();var _Xi3=_Wc1._Yi3;for(var _Bf2=0;_Bf2<this._rN.length;
++_Bf2){var _v4=this._rN[_Bf2];if(_vd3(_v4._nH)&&(_v4.enabled)){var _Zi3=_v4._Gi3;if(_Zi3){if(_Xi3._dZ1(_v4.builtinName)){continue;}if((_Wc1._6f3._dZ1(_v4.builtinName))==0){_Xi3._RP(_v4.builtinName);}}else {_Xi3._cZ1(_v4.builtinName);}switch(_v4.builtinName){case _UP:if(!_Zi3||!(_Wc1._6f3._dZ1(_UP))){_Wc1.rotation=_v4._5i3(_1h3,_Ti3,_o91);_Wc1._6f3._RP(_UP);}break;case _SP:if(!_Zi3||!(_Wc1._6f3._dZ1(_SP))){_Wc1.x=_v4._5i3(_1h3,_Ti3,_o91);_Wc1.y=_v4._5i3(_5h3,_Ti3,_o91);_Wc1._6f3._RP(_SP);}break;case _VP:if(!_Zi3||!(_Wc1._6f3._dZ1(_VP))){
_Wc1.scaleX=_v4._5i3(_1h3,_Ti3,_o91);_Wc1.scaleY=_v4._5i3(_5h3,_Ti3,_o91);_Wc1._6f3._RP(_VP);}break;case _xg3:if(!_Zi3||!(_Wc1._6f3._dZ1(_xg3))){var color=0xffffffff;var __i3=_v4._5i3(0,_Ti3,_o91);if(__i3!=null)color=__i3;_Wc1._Rd3[0]=(color&0xff)/255.0;_Wc1._Rd3[1]=((color>>8)&0xff)/255.0;_Wc1._Rd3[2]=((color>>16)&0xff)/255.0;_Wc1._Rd3[3]=((color>>24)&0xff)/255.0;_Wc1._6f3._RP(_xg3);}break;case _wg3:if(!_Zi3||!(_Wc1._6f3._dZ1(_wg3))){var color=0xffffffff;var __i3=_v4._5i3(0,_Ti3,_o91);if(__i3!=null)color=__i3;
_Wc1._Sd3[0]=(color&0xff)/255.0;_Wc1._Sd3[1]=((color>>8)&0xff)/255.0;_Wc1._Sd3[2]=((color>>16)&0xff)/255.0;_Wc1._Sd3[3]=((color>>24)&0xff)/255.0;_Wc1._6f3._RP(_wg3);}break;case _Bg3:if(!_Zi3||!(_Wc1._6f3._dZ1(_Bg3))){_Wc1.xOrigin=_v4._5i3(_1h3,_Ti3,_o91);_Wc1.yOrigin=_v4._5i3(_5h3,_Ti3,_o91);_Wc1._6f3._RP(_Bg3);}break;case _tg3:if(!_Zi3||!(_Wc1._6f3._dZ1(_tg3))){_Wc1.gain=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_tg3);}break;case _ug3:if(!_Zi3||!(_Wc1._6f3._dZ1(_ug3))){_Wc1.pitch=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_ug3);
}break;case _vg3:if(!_Zi3||!(_Wc1._6f3._dZ1(_vg3))){_Wc1._0j3=_v4._5i3(0,_Ti3,_o91);_Wc1._1j3=_v4._5i3(1,_Ti3,_o91);_Wc1._2j3=_v4._5i3(2,_Ti3,_o91);_Wc1._6f3._RP(_vg3);}break;case _Ld3:if(!_Zi3||!(_Wc1._6f3._dZ1(_Ld3))){var _bc=_v4._5i3(0,_Ti3,_o91);if(_bc!=null)_Wc1.imageSpeed=_bc;_Wc1._3j3(_Ld3,true);_Wc1._6f3._RP(_Ld3);if(_v4._nH==_X21){var _4j3=-1;var _5j3=false;if(this._nH==_R21||this._nH==_S21){var keyframeStore=this._uN;var _Dd3=keyframeStore._Ed3(_Ti3,_o91);if(_Dd3>=0){var _tN=keyframeStore._NO[_Dd3];
_4j3=_tN._OO;_5j3=true;}}_Wc1._Nd3=-1;if(_5j3){var _bc=_v4._Kh3(0,_4j3,_Ti3,_o91);if(_bc!=null)_Wc1._Nd3=_bc;}}}break;case _Od3:if(!_Zi3||!(_Wc1._6f3._dZ1(_Od3))){var _bc=_v4._5i3(0,_Ti3,_o91);if(_bc!=null)_Wc1.imageIndex=_bc;_Wc1._3j3(_Od3,true);_Wc1._6f3._RP(_Od3);}break;case _7f3:if(!_Zi3||!(_Wc1._6f3._dZ1(_7f3))){_Wc1._8f3=_v4._5i3(_1h3,_Ti3,_o91);_Wc1._9f3=_v4._5i3(_5h3,_Ti3,_o91);_Wc1._6f3._RP(_7f3);}break;case _af3:if(!_Zi3||!(_Wc1._6f3._dZ1(_af3))){_Wc1._bf3=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_af3);
}break;case _cf3:if(!_Zi3||!(_Wc1._6f3._dZ1(_cf3))){_Wc1._df3=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_cf3);}break;case _ef3:if(!_Zi3||!(_Wc1._6f3._dZ1(_ef3))){_Wc1._ff3=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_ef3);}break;case _Dg3:if(_v4._nH==_X21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Dg3))){_Wc1._gf3._AV2=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_Dg3);}}break;case _Eg3:if(_v4._nH==_Y21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Eg3))){var color=0xffffffff;var __i3=_v4._5i3(0,_Ti3,_o91);if(__i3!=null)color=__i3;_Wc1._gf3._BV2=__i3;_Wc1._gf3._CV2=((__i3>>24)&0xff)/255.0;
_Wc1._6f3._RP(_Eg3);}}break;case _Fg3:if(_v4._nH==_X21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Fg3))){_Wc1._gf3._EV2=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_Fg3);}}break;case _Gg3:if(_v4._nH==_X21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Gg3))){_Wc1._gf3._FV2=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_Gg3);}}break;case _Hg3:if(_v4._nH==_Y21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Hg3))){var color=0xffffffff;var __i3=_v4._5i3(0,_Ti3,_o91);if(__i3!=null)color=__i3;_Wc1._gf3._GV2=__i3;_Wc1._gf3._HV2=((__i3>>24)&0xff)/255.0;_Wc1._6f3._RP(_Hg3);}}
break;case _Ig3:if(_v4._nH==_X21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Ig3))){_Wc1._gf3._JV2=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_Ig3);}}break;case _Jg3:if(_v4._nH==_Y21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Jg3))){var color=0xffffffff;var __i3=_v4._5i3(0,_Ti3,_o91);if(__i3!=null)color=__i3;_Wc1._gf3._KV2=__i3;_Wc1._gf3._LV2=((__i3>>24)&0xff)/255.0;_Wc1._6f3._RP(_Jg3);}}break;case _Kg3:if(_v4._nH==_X21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Kg3))){_Wc1._gf3._NV2=_v4._5i3(0,_Ti3,_o91);_Wc1._6f3._RP(_Kg3);}}break;case _Lg3:if(_v4._nH==_X21){
if(!_Zi3||!(_Wc1._6f3._dZ1(_Lg3))){_Wc1._gf3.shadowOffsetX=_v4._5i3(_1h3,_Ti3,_o91);_Wc1._gf3.shadowOffsetY=_v4._5i3(_5h3,_Ti3,_o91);_Wc1._6f3._RP(_Lg3);}}break;case _Mg3:if(_v4._nH==_Y21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Mg3))){var color=0xffffffff;var __i3=_v4._5i3(0,_Ti3,_o91);if(__i3!=null)color=__i3;_Wc1._gf3._OV2=__i3;_Wc1._gf3._PV2=((__i3>>24)&0xff)/255.0;_Wc1._6f3._RP(_Mg3);}}break;case _Ng3:if(_v4._nH==_Z21){if(!_Zi3||!(_Wc1._6f3._dZ1(_Ng3))){const _6j3=_v4.__h3;const _vi3=_6j3._ti3();_vi3._oa2().forEach((_va2,
_ha2)=>{_vi3["gml"+_va2.name]=_v4._5i3(_ha2,_Ti3,_o91);});_Wc1._6f3._RP(_Ng3);}}break;case _Og3:case _Pg3:case _Qg3:case _Rg3:case _Sg3:case _Ug3:case _Wg3:case _Tg3:case _Vg3:case _Xg3:case _Yg3:if(_v4._nH==_Z21){if(!_Zi3||!(_Wc1._6f3._dZ1(_v4.builtinName))){const _7j3=_v4._Yh3();_7j3._oa2().forEach((_va2,_ha2)=>{_7j3["gml"+_va2.name]=_v4._5i3(_ha2,_Ti3,_o91);});_Wc1._6f3._RP(_v4.builtinName);}}break;}}}_Xi3._pZ1(_Ui3);_Wc1._Yi3=_Xi3;};this._Qi3=function(){if(this.pName==null){this.builtinName=_og3;return;
}if(this.pName=="position")this.builtinName=_SP;else if(this.pName=="scale")this.builtinName=_VP;else if(this.pName=="gain")this.builtinName=_tg3;else if(this.pName=="pitch")this.builtinName=_ug3;else if(this.pName=="falloff")this.builtinName=_vg3;else if(this.pName=="rotation")this.builtinName=_UP;else if(this.pName=="blend_add")this.builtinName=_wg3;else if(this.pName=="blend_multiply")this.builtinName=_xg3;else if(this.pName=="mask")this.builtinName=_zg3;else if(this.pName=="subject")this.builtinName=_Ag3;
else if(this.pName=="origin")this.builtinName=_Bg3;else if(this.pName=="image_speed")this.builtinName=_Ld3;else if(this.pName=="image_index")this.builtinName=_Od3;else if(this.pName=="image_angle")this.builtinName=_UP;else if(this.pName=="rotation")this.builtinName=_UP;else if(this.pName=="image_blend")this.builtinName=_xg3;else if(this.pName=="frameSize")this.builtinName=_7f3;else if(this.pName=="characterSpacing")this.builtinName=_af3;else if(this.pName=="lineSpacing")this.builtinName=_cf3;else if(this.pName=="paragraphSpacing")this.builtinName=_ef3;
else if(this.pName=="frame_size")this.builtinName=_7f3;else if(this.pName=="character_spacing")this.builtinName=_af3;else if(this.pName=="line_spacing")this.builtinName=_cf3;else if(this.pName=="paragraph_spacing")this.builtinName=_ef3;else if(this.pName=="texteffect_thickness")this.builtinName=_Dg3;else if(this.pName=="texteffect_coreColour")this.builtinName=_Eg3;else if(this.pName=="texteffect_glowStart")this.builtinName=_Fg3;else if(this.pName=="texteffect_glowEnd")this.builtinName=_Gg3;else if(this.pName=="texteffect_glowColour")this.builtinName=_Hg3;
else if(this.pName=="texteffect_outlineDist")this.builtinName=_Ig3;else if(this.pName=="texteffect_outlineColour")this.builtinName=_Jg3;else if(this.pName=="textEffect_shadowSoftness")this.builtinName=_Kg3;else if(this.pName=="textEffect_shadowOffset")this.builtinName=_Lg3;else if(this.pName=="textEffect_shadowColour")this.builtinName=_Mg3;else if(this.pName=="audioEffect_bus")this.builtinName=_Ng3;else if(this.pName=="audioEffect_bitcrusher")this.builtinName=_Og3;else if(this.pName=="audioEffect_compressor")this.builtinName=_Pg3;
else if(this.pName=="audioEffect_delay")this.builtinName=_Qg3;else if(this.pName=="audioEffect_gain")this.builtinName=_Rg3;else if(this.pName=="audioEffect_hishelf")this.builtinName=_Sg3;else if(this.pName=="audioEffect_hpf2")this.builtinName=_Tg3;else if(this.pName=="audioEffect_loshelf")this.builtinName=_Ug3;else if(this.pName=="audioEffect_lpf2")this.builtinName=_Vg3;else if(this.pName=="audioEffect_peakeq")this.builtinName=_Wg3;else if(this.pName=="audioEffect_reverb1")this.builtinName=_Xg3;else if(this.pName=="audioEffect_tremolo")this.builtinName=_Yg3;
else this.builtinName=_og3;};}/*@constructor */function _8j3(){_AL2.call(this);this._9j3=0;Object.defineProperties(this,{gmlchannel:{enumerable:true,get :function(){return this._9j3;},set :function(_k4){this._9j3=yyGetInt32(_k4);}},});this._qM2=function(){var _tM2=this._PL2;for(var _I91 in this._Jl){if(_I91._YT1(_tM2)){this._PL2=_q7(this._PL2,_I91._PL2);}}};}/*@constructor */function _g31(_zL2){_8j3.call(this);this.__type="[MessageEventTrackKey]";this._ec1=null;if((_zL2!=null)&&(_zL2!=undefined)){this._ec1=_zL2.events;
}Object.defineProperties(this,{gmlevents:{enumerable:true,get :function(){return this._ec1;},set :function(_k4){this._ec1=_k4;}},});}/*@constructor */function _h31(_zL2){_8j3.call(this);this.__type="[CodeEventTrackKey]";if((_zL2!=null)&&(_zL2!=undefined)){this._aj3=_zL2.event;this._aj3._bj3=this._aj3;}else {this._aj3=null;}Object.defineProperties(this,{gmlevent:{enumerable:true,get :function(){return this._aj3;},set :function(_k4){this._aj3=_k4;}},});}/*@constructor */function _cj3(_zL2){_8j3.call(this);
this.__type="[AssetTrackKey]";this._Wx=-1;if((_zL2!=null)&&(_zL2!=undefined)){this._Wx=_zL2.index;}Object.defineProperties(this,{gmlindex:{enumerable:true,get :function(){return this._Wx;},set :function(_k4){this._Wx=_k4;}},});}/*@constructor */function _531(_zL2){_8j3.call(this);this.__type="[GraphicTrackKey]";this._oK=-1;if((_zL2!=null)&&(_zL2!=undefined)){this._oK=_zL2.index;}Object.defineProperties(this,{gmlspriteIndex:{enumerable:true,get :function(){return this._oK;},set :function(_k4){this._oK=yyGetInt32(_k4);
}},});}/*@constructor */function _dj3(_zL2){_8j3.call(this);this.__type="[ParticleTrackKey]";this.particleSystemIndex=-1;if((_zL2!=null)&&(_zL2!=undefined)){this.particleSystemIndex=_zL2.index;}Object.defineProperties(this,{gmlparticleSystemIndex:{enumerable:true,get :function(){return this.particleSystemIndex;},set :function(_k4){this.particleSystemIndex=yyGetInt32(_k4);}},});}/*@constructor */function _631(_zL2){_8j3.call(this);this.__type="[InstanceTrackKey]";this._ej3=-1;if((_zL2!=null)&&(_zL2!=undefined)){
this._ej3=_zL2.index;}Object.defineProperties(this,{gmlobjectIndex:{enumerable:true,get :function(){return this._ej3;},set :function(_k4){this._ej3=yyGetInt32(_k4);}},});}/*@constructor */function _831(_zL2){_8j3.call(this);this.__type="[AudioTrackKey]";this._fj3=-1;this._gj3=0;this._hj3=0;if((_zL2!=null)&&(_zL2!=undefined)){this._fj3=_zL2.soundIndex;this._gj3=_zL2.emitters;this._hj3=_zL2.mode;}Object.defineProperties(this,{gmlsoundIndex:{enumerable:true,get :function(){return this._fj3;},set :function(_k4){
this._fj3=_k4;}},gmlemitters:{enumerable:true,get :function(){return this._gj3;},set :function(_k4){this._gj3=_k4;}},gmlmode:{enumerable:true,get :function(){return this._hj3;},set :function(_k4){this._hj3=_k4;}},});}/*@constructor */function _d31(_zL2){_8j3.call(this);this.__type="[RealTrackKey]";this._Fh3=0;this._Ih3=false;this._Dh3=-1;this._Eh3=null;if((_zL2!=null)&&(_zL2!=undefined)){this._Fh3=_zL2.realValue;this._Ih3=_zL2.hasEmbeddedCurve;this._Dh3=_zL2.curveIndex;if(_zL2.pEmbeddedCurve!=undefined){
this._Eh3=new _Vl(_zL2.pEmbeddedCurve);}}this._qM2=function(){var _tM2=this._PL2;for(var _I91 in this._Jl){var _Al=_Cl._Dl(_I91._Dh3);if((_Al!=null)&&(_Al._YT1(_tM2))){this._PL2=_q7(this._PL2,_Al._PL2);}}};Object.defineProperties(this,{gmlvalue:{enumerable:true,get :function(){return this._Fh3;},set :function(_k4){this._Fh3=yyGetReal(_k4);this._Dh3=-1;this._Ih3=false;this._Eh3=null;}},gmlhasEmbeddedCurve:{enumerable:true,get :function(){return this._Ih3;},set :function(_k4){this._Ih3=yyGetBool(_k4);}},gmlcurve:{
enumerable:true,get :function(){var _ij3=undefined;if((this._Ih3==true)&&(this._Eh3!=null)){_ij3=this._Eh3;}else {_ij3=_Cl._n6(this._Dh3);}if((_ij3==undefined)||(_ij3==null))return -1;else return _ij3;},set :function(_k4){if(typeof(_k4)=="object"){var _jc=_Cl.AnimCurves.indexOf(_k4);if(_jc==-1){this._Eh3=_k4;this._Ih3=true;this._Dh3=-1;}else {this._Dh3=_jc;this._Ih3=false;this._Eh3=null;}}else {if(_Cl._n6(this._Dh3)!=null){this._Dh3=_k4;this._Ih3=false;this._Eh3=null;}else {throw new Error("Invalid curve passed to curve property of keyframe channel");
}}}},});}/*@constructor */function _e31(_zL2){_8j3.call(this);this.__type="[ColorTrackKey]";this._WR2=0;this._Ih3=false;this._Dh3=-1;this._Eh3=null;if((_zL2!=null)&&(_zL2!=undefined)){this._WR2=_zL2.color;this._Ih3=_zL2.hasEmbeddedCurve;this._Dh3=_zL2.curveIndex;if(_zL2.pEmbeddedCurve!=undefined){this._Eh3=new _Vl(_zL2.pEmbeddedCurve);}}Object.defineProperties(this,{gmlcolor:{enumerable:true,get :function(){var _55=[];_55[1]=(this._WR2&0xff)/255.0;_55[2]=((this._WR2>>8)&0xff)/255.0;_55[3]=((this._WR2>>16)&0xff)/255.0;
_55[0]=((this._WR2>>24)&0xff)/255.0;return _55;},set :function(_k4){if(_k4 instanceof Array){var _55;_55=((yyGetReal(_k4[1])*255.0)&0xff);_55|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;_55|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;_55|=((yyGetReal(_k4[0])*255.0)&0xff)<<24;this._WR2=_55;}else {this._WR2=yyGetInt32(_k4);}this._Dh3=-1;this._Ih3=false;this._Eh3=null;}},gmlcolour:{enumerable:true,get :function(){var _55=[];_55[1]=(this._WR2&0xff)/255.0;_55[2]=((this._WR2>>8)&0xff)/255.0;_55[3]=((this._WR2>>16)&0xff)/255.0;
_55[0]=((this._WR2>>24)&0xff)/255.0;return _55;},set :function(_k4){if(_k4 instanceof Array){var _55;_55=((yyGetReal(_k4[1])*255.0)&0xff);_55|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;_55|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;_55|=((yyGetReal(_k4[0])*255.0)&0xff)<<24;this._WR2=_55;}else {this._WR2=yyGetInt32(_k4);}this._Dh3=-1;this._Ih3=false;this._Eh3=null;}},gmlcurve:{enumerable:true,get :function(){var _ij3=undefined;if((this._Ih3==true)&&(this._Eh3!=null)){_ij3=this._Eh3;}else {_ij3=_Cl._n6(this._Dh3);}if((_ij3==undefined)||(_ij3==null))return -1;
else return _ij3;},set :function(_k4){if(typeof(_k4)=="object"){var _jc=_Cl.AnimCurves.indexOf(_k4);if(_jc==-1){this._Eh3=_k4;this._Ih3=true;this._Dh3=-1;}else {this._Dh3=_jc;this._Ih3=false;this._Eh3=null;}}else {if(_Cl._n6(this._Dh3)!=null){this._Dh3=_k4;this._Ih3=false;this._Eh3=null;}else {throw new Error("Invalid curve passed to curve property of keyframe channel");}}}},});}/*@constructor */function _b31(_zL2){_8j3.call(this);this.__type="[BoolTrackKey]";this._BL2=false;if((_zL2!=null)&&(_zL2!=undefined)){
this._BL2=_zL2.value;}Object.defineProperties(this,{gmlvalue:{enumerable:true,get :function(){return this._BL2;},set :function(_k4){this._BL2=yyGetBool(_k4);}},});}/*@constructor */function _c31(_zL2){_8j3.call(this);this.__type="[StringTrackKey]";this._BL2="";if((_zL2!=null)&&(_zL2!=undefined)){this._BL2=_zL2.value;}Object.defineProperties(this,{gmlvalue:{enumerable:true,get :function(){return this._BL2;},set :function(_k4){this._BL2=yyGetString(_k4);}},});}/*@constructor */function _f31(_zL2){_8j3.call(this);
this.__type="[AudioEffectTrackKey]";this._Fh3=0;this._Ih3=false;this._Dh3=-1;this._Eh3=null;if((_zL2!=null)&&(_zL2!=undefined)){this._Fh3=_zL2.realValue;this._Ih3=_zL2.hasEmbeddedCurve;this._Dh3=_zL2.curveIndex;if(_zL2.pEmbeddedCurve!=undefined){this._Eh3=new _Vl(_zL2.pEmbeddedCurve);}}this._qM2=function(){var _tM2=this._PL2;for(var _I91 in this._Jl){var _Al=_Cl._Dl(_I91._Dh3);if((_Al!=null)&&(_Al._YT1(_tM2))){this._PL2=_q7(this._PL2,_Al._PL2);}}};Object.defineProperties(this,{gmlvalue:{enumerable:true,
get :function(){return this._Fh3;},set :function(_k4){this._Fh3=yyGetReal(_k4);this._Dh3=-1;this._Ih3=false;this._Eh3=null;}},gmlhasEmbeddedCurve:{enumerable:true,get :function(){return this._Ih3;},set :function(_k4){this._Ih3=yyGetBool(_k4);}},gmlcurve:{enumerable:true,get :function(){var _ij3=undefined;if((this._Ih3==true)&&(this._Eh3!=null)){_ij3=this._Eh3;}else {_ij3=_Cl._n6(this._Dh3);}if((_ij3==undefined)||(_ij3==null))return -1;else return _ij3;},set :function(_k4){if(typeof(_k4)=="object"){var _jc=_Cl.AnimCurves.indexOf(_k4);
if(_jc==-1){this._Eh3=_k4;this._Ih3=true;this._Dh3=-1;}else {this._Dh3=_jc;this._Ih3=false;this._Eh3=null;}}else {if(_Cl._n6(this._Dh3)!=null){this._Dh3=_k4;this._Ih3=false;this._Eh3=null;}else {throw new Error("Invalid curve passed to curve property of keyframe channel");}}}},});}/*@constructor */function _931(_zL2){_8j3.call(this);this.__type="[TextTrackKey]";this.text="";this.wrap=false;this.alignment=0;this.fontIndex=-1;if((_zL2!=null)&&(_zL2!=undefined)){this.text=_zL2.text;this.wrap=_zL2.wrap;this.alignment=_zL2.alignment;
this.fontIndex=_zL2.fontIndex;}Object.defineProperties(this,{gmltext:{enumerable:true,get :function(){return this.text;},set :function(_k4){this.text=yyGetString(_k4);}},gmlwrap:{enumerable:true,get :function(){return this.wrap;},set :function(_k4){this.wrap=yyGetBool(_k4);}},gmlalignmentV:{enumerable:true,get :function(){return(this.alignment>>8)&0xff;},set :function(_k4){this.alignment=(this.alignment&0xff)|((yyGetInt32(_k4)&0xff)<<8);}},gmlalignmentH:{enumerable:true,get :function(){return this.alignment&0xff;
},set :function(_k4){this.alignment=(this.alignment&~0xff)|(yyGetInt32(_k4)&0xff);}},gmlfontIndex:{enumerable:true,get :function(){return this.fontIndex;},set :function(_k4){this.fontIndex=yyGetInt32(_k4);}},});}/*@constructor */function _731(_zL2){_8j3.call(this);this._Wx=-1;if((_zL2!=null)&&(_zL2!=undefined)){this._Wx=_zL2.index;}Object.defineProperties(this,{gmlindex:{enumerable:true,get :function(){return this._Wx;},set :function(_k4){this._Wx=yyGetInt32(_k4);}},});this.__type="[SequenceTrackKey]";}
/*@constructor */function _a31(_zL2){_8j3.call(this);this.__type="[SpriteFramesTrackKey]";this._tK=-1;if((_zL2!=null)&&(_zL2!=undefined)){this._tK=_zL2.imageIndex;}Object.defineProperties(this,{gmlimageIndex:{enumerable:true,get :function(){return this._tK;},set :function(_k4){this._tK=yyGetInt32(_k4);}},});}/*@constructor */function _431(_wd,_zL2){_AL2.call(this);this.__type="[Keyframe]";this._OO=0;this._wN=0;this._be3=false;this._jj3=false;this._Jl={};if((_zL2!=null)&&(_zL2!=undefined)){this._OO=_zL2.key;
this._wN=_zL2.length;this._be3=_zL2.stretch;this._jj3=_zL2.disabled;this._Jl={};for(var _Ce3 in _zL2.channels){var data=_zL2.channels[_Ce3];var _kj3=null;switch(_wd){case _sN:_kj3=new _a31(data);break;case _R21:_kj3=new _531(data);break;case _S21:_kj3=new _631(data);break;case _U21:_kj3=new _831(data);break;case _331:_kj3=new _931(data);break;case _X21:_kj3=new _d31(data);break;case _Y21:_kj3=new _e31(data);break;case _V21:_kj3=new _b31(data);break;case _W21:_kj3=new _c31(data);break;case _Z21:_kj3=new _f31(data);break;
case _T21:_kj3=new _731(data);break;case _s31:_kj3=new _dj3(data);break;}if(_kj3!=null){_kj3.key=_Ce3;this._Jl[_Ce3]=_kj3;}else {throw new Error("Invalid sequence track channel type");}}}this._GL2();Object.defineProperties(this,{gmlframe:{enumerable:true,get :function(){return this._OO;},set :function(_k4){this._OO=yyGetInt32(_k4);}},gmllength:{enumerable:true,get :function(){return this._wN;},set :function(_k4){this._wN=yyGetInt32(_k4);}},gmlstretch:{enumerable:true,get :function(){return this._be3;},set :function(_k4){
this._be3=yyGetBool(_k4);}},gmldisabled:{enumerable:true,get :function(){return this._jj3;},set :function(_k4){this._jj3=yyGetBool(_k4);}},gmlchannels:{enumerable:true,get :function(){var _lj3=[];for(var _Ce3 in this._Jl){_lj3.push(this._Jl[_Ce3]);}_lj3.sort(function(_05,__4){return Number(_05.key)-Number(__4.key);});return _lj3;},set :function(_k4){if(_k4 instanceof Array){this._Jl={};for(var _sM2=0;_sM2<_k4.length;_sM2++){var key=_k4[_sM2]._9j3;this._Jl[key]=_k4[_sM2];}}else {throw new Error("value must be an array of keyframes");
}}}});}/*@constructor */function _131(_wd,_zL2){_AL2.call(this);this.__type="[KeyframeStore]";this._JO=0;this._NO=[];if((_zL2!=null)&&(_zL2!=undefined)){var _mj3=_zL2.length;for(var _Dd3=0;_Dd3<_mj3;++_Dd3){this._nj3(new _431(_wd,_zL2[_Dd3]));}}}_131.prototype._qM2=function(){var _tM2=this._PL2;for(var i=0;i<this._JO;i++){if(this._NO[i]._YT1(_tM2)){this._PL2=_q7(this._PL2,this._NO[i]._PL2);}}};_131.prototype._nj3=function(_oj3){var _LN=0;while(_LN<this._JO){if(this._NO[_LN].key>_oj3.key){break;}_LN++;}
this._NO.splice(_LN,0,_oj3);this._JO++;this._GL2();};_131.prototype._li3=function(_Tk){var _AM2={};if(this._JO==0)return;var start=0,end=this._JO;var index=(start+end)>>1;var length;while(index!=start){length=this._NO[index]._be3?(index+1<this._JO?this._NO[index+1]._OO:Number.MAX_SAFE_INTEGER):this._NO[index]._wN;if(this._NO[index]._OO<=_Tk&&this._NO[index]._OO+length>_Tk){_AM2._mi3=this._NO[index];if(index<this._JO-1)_AM2.post=this._NO[index+1];return _AM2;}if(this._NO[index]._OO>_Tk)end=index;else start=index;
index=(start+end)>>1;}length=this._NO[index]._be3?(index+1<this._JO?this._NO[index+1]._OO:Number.MAX_SAFE_INTEGER):this._NO[index]._wN;if(this._NO[index]._OO<=_Tk&&this._NO[index]._OO+length>_Tk){_AM2._mi3=this._NO[index];if(index<this._JO-1)_AM2.post=this._NO[index+1];}return _AM2;};_131.prototype._Ed3=function(_Tk,_Ah3){if(this._JO==0)return -1;var start=0;var end=this._JO;var index=(start+end)>>1;var length;while(index!=start){length=this._NO[index]._be3?(index+1<this._JO?this._NO[index+1]._OO:0x7fffffff):this._NO[index]._wN;
if(this._NO[index]._OO<=_Tk&&this._NO[index]._OO+length>_Tk)return index;if(this._NO[index]._OO>_Tk)end=index;else start=index;index=(start+end)>>1;}length=this._NO[index]._be3?(index+1<this._JO?this._NO[index+1]._OO:0x7fffffff):this._NO[index]._wN;if(this._NO[index]._OO<=_Tk&&this._NO[index]._OO+length>_Tk)return index;if((index==(this._JO-1))&&(_Tk==_Ah3)){if((this._NO[index]._OO+length)==_Ah3)return index;}return -1;};_131.prototype._vN=function(_Tk,_Ah3){var _pj3=this._Ed3(_Tk,_Ah3);if(_pj3==-1)return null;
return this._NO[_pj3];};_131.prototype._Gd3=function(_s4,_Ah3){if(_s4<0){return 0.0;}else if(_s4>this._JO){return 0.0;}if(this._NO[_s4]._be3){if(_s4<(this._JO-1)){var length=(this._NO[_s4+1]._OO-this._NO[_s4]._OO)-1.0;return length;}else {var length=(_Ah3-this._NO[_s4]._OO)-1.0;return length;}}else {return this._NO[_s4]._wN;}};_131.prototype._qj3=function(_it,_jt,_bd1,_nh3,_rj3,_o91){if(_rj3==undefined)_rj3=false;if(_o91==undefined)_o91=-1.0;if(this._JO==0)return false;var _sj3=false;if(_it>_jt){var _DD=_it;_it=_jt;
_jt=_DD;_sj3=true;}var _tj3=false;var _uj3=false;if(_nh3>0.0){_uj3=true;if(_rj3&&(_jt==_o91)){_tj3=true;}}else {_tj3=true;if(_rj3&&(_it==0.0)){_uj3=true;}}if((_tj3&&(this._NO[0]._OO>_jt))||((!_tj3)&&this._NO[0]._OO>=_jt))return false;var _vj3=this._NO[this._JO-1]._OO+this._NO[this._JO-1]._wN;if((this._NO[this._JO-1]._be3==false)&&((_vj3<_it)||(!_uj3&&((_vj3==_it)))))return false;var _6e3=0;var start,end,_Bi;var _TG=null;start=0;end=this._JO;_Bi=(start+end)>>1;while(_Bi!=start){if(this._NO[_Bi]._OO>_it){end=_Bi;
}else {start=_Bi;}_Bi=(start+end)>>1;}_TG=this._NO[_Bi];var _wj3=_TG._OO+_TG._wN;if((_wj3<_it)||(!_uj3&&(_wj3==_it))){_6e3=_Bi+1;}else {_6e3=_Bi;}var _7e3=0;start=0;end=this._JO;_Bi=(start+end)>>1;while(_Bi!=start){if((_tj3&&(this._NO[_Bi]._OO>_jt))||((!_tj3)&&(this._NO[_Bi]._OO>=_jt))){end=_Bi;}else {start=_Bi;}_Bi=(start+end)>>1;}_7e3=_Bi;if(_7e3<_6e3){return false;}else {if(_sj3){_bd1.start=_7e3;_bd1.end=_6e3;}else {_bd1.start=_6e3;_bd1.end=_7e3;}return true;}};_131.prototype._th3=function(_xj3,_xI,_o91,
_mh3,_lh3,_nh3,_rh3,_sh3,_yj3,_zj3){if(_yj3==undefined)_yj3=false;if(_zj3==undefined)_zj3=false;var _Aj3=0.99;_rh3[0]=_sh3[0]=_rh3[1]=_sh3[1]=-1;var out={start:-1,end:-1};var _Bj3=false;if(_xj3==_hg3){_Bj3=this._qj3(_mh3,_lh3,out,_nh3,_yj3,_o91);_rh3[0]=out.start;_sh3[0]=out.end;}else if(_xj3==_ig3){if(_nh3>0.0){if(_zj3||(_lh3<_mh3)){if(!_yj3||(_mh3!=_o91)){_Bj3=this._qj3(_mh3,_o91,out,_nh3,_yj3,_o91);_rh3[0]=out.start;_sh3[0]=out.end;}if(this._qj3(0,_lh3,out,_nh3,_yj3,_o91)){_Bj3=true;_rh3[1]=out.start;
_sh3[1]=out.end;}}else {_Bj3=this._qj3(_mh3,_lh3,out,_nh3,_yj3,_o91);_rh3[0]=out.start;_sh3[0]=out.end;}}else {if(_zj3||(_lh3>_mh3)){if(!_yj3||(_mh3!=0)){_Bj3=this._qj3(_mh3,0,out,_nh3,_yj3,_o91);_rh3[0]=out.start;_sh3[0]=out.end;}if(this._qj3(_o91,_lh3,out,_nh3,_yj3,_o91)){_Bj3=true;_rh3[1]=out.start;_sh3[1]=out.end;}}else {_Bj3=this._qj3(_mh3,_lh3,out,_nh3,_yj3,_o91);_rh3[0]=out.start;_sh3[0]=out.end;}}}else if(_xj3==_jg3){var _Cj3=0.0;if(_xI>0.0){_Cj3=1.0/_xI;}if(_nh3>0.0){if(_zj3||(_lh3<_mh3)||((_lh3-_mh3)<(_Cj3*_Aj3))){
if(!_yj3||(_mh3>0)){_Bj3=this._qj3(_mh3,0,out,_nh3*-1.0,false);_rh3[0]=out.start;_sh3[0]=out.end;}if(this._qj3(0,_lh3,out,_nh3,_yj3,_o91)){_Bj3=true;_rh3[1]=out.start;_sh3[1]=out.end;}}else {_Bj3=this._qj3(_mh3,_lh3,out,_nh3,false);_rh3[0]=out.start;_sh3[0]=out.end;}}else {if(_zj3||(_lh3>_mh3)||((_mh3-_lh3)<(_Cj3*_Aj3))){if(!_yj3||(_mh3<_o91)){_Bj3=this._qj3(_mh3,_o91,out,_nh3*-1.0,false);_rh3[0]=out.start;_sh3[0]=out.end;}if(this._qj3(_o91,_lh3,out,_nh3,_yj3,_o91)){_Bj3=true;_rh3[1]=out.start;_sh3[1]=out.end;
}}else {_Bj3=this._qj3(_mh3,_lh3,out,_nh3,false);_rh3[0]=out.start;_sh3[0]=out.end;}}}return _Bj3;};var typeToEventLut=["event_create","event_destroy","event_clean_up","event_step","event_step_begin","event_step_end","event_async_system"];/*@constructor */function _N21(_zL2){_AL2.call(this);this.__type="[Sequence]";this.pName="";this._uh3=0;this._Tb1=30.0;this._Ub1=0;this._wN=0;this._Dj3=1.0;this._fd3=0;this._gd3=0;this._cc1=new _131();this._cc1._JO=0;this._cc1._NO=[];this._Ej3=new _131();this._Ej3._JO=0;
this._Ej3._NO=[];this._Ii3=0;this._Fj3=0;this._rN=[];this["event_create"]=null;this["event_destroy"]=null;this["event_clean_up"]=null;this["event_step"]=null;this["event_step_begin"]=null;this["event_step_end"]=null;this["event_async_system"]=null;this["event_broadcast_message"]=null;this._Sl=false;if((_zL2!=null)&&(_zL2!=undefined)){this.pName=_zL2.pName;this._uh3=_zL2.playback;this._Tb1=_zL2.playbackSpeed;this._Ub1=_zL2.playbackSpeedType;this._wN=_zL2.length;this._Dj3=_zL2.volume;this._fd3=_zL2.xorigin;
this._gd3=_zL2.yorigin;this._cc1=new _131();this._cc1._JO=0;this._cc1._NO=[];for(var _Dd3=0;_Dd3<_zL2.keyframeStore.length;++_Dd3){var _Gj3=_zL2.keyframeStore[_Dd3];var _Ie3=new _431();_Ie3._OO=_Gj3.key;if((_Ie3._OO<this._wN)&&(_Ie3._OO>(this._wN+(_3g3*2.0))))_Ie3._OO=this._wN;_Ie3._wN=0;_Ie3._be3=_Gj3.stretch;_Ie3._jj3=_Gj3.disabled;_Ie3._Jl={};for(var _Ce3 in _Gj3.channels){var _w91=_Gj3.channels[_Ce3];_Ie3._Jl[_Ce3]=new _g31(_w91);}this._cc1._nj3(_Ie3);}this._Ej3=new _131();this._Ej3._JO=0;this._Ej3._NO=[];
this._Ii3=_zL2.tracks.length;this._rN=[];for(var _Bf2=0;_Bf2<this._Ii3;++_Bf2){this._rN[_Bf2]=_vh3(_zL2.tracks[this._Ii3-1-_Bf2]);this._rN[_Bf2].__h3=this;}this._Fj3=_zL2.sequenceEvents.length;for(var _B53=0;_B53<this._Fj3;++_B53){var _Ik=_zL2.sequenceEvents[_B53];var _183=typeToEventLut[_Ik.seqEventType];this[_183]=_Ik.seqEventFunction;_Ik.seqEventFunction._bj3=_Ik.seqEventFunction;}this._Ej3=new _131();this._Ej3._JO=0;this._Ej3._NO=[];for(var _Dd3=0;_Dd3<_zL2.momentsKeystore.length;++_Dd3){var _Gj3=_zL2.momentsKeystore[_Dd3];
var _Ie3=new _431();_Ie3._OO=_Gj3.key;if((_Ie3._OO<this._wN)&&(_Ie3._OO>(this._wN+(_3g3*2.0))))_Ie3._OO=this._wN;_Ie3._wN=0;_Ie3._be3=_Gj3.stretch;_Ie3._jj3=_Gj3.disabled;_Ie3._Jl={};for(var _Ce3 in _Gj3.channels){var _w91=_Gj3.channels[_Ce3];_Ie3._Jl[_Ce3]=new _h31(_w91);}this._Ej3._nj3(_Ie3);}this._Sl=true;}Object.defineProperties(this,{gmlname:{enumerable:true,get :function(){return this.pName;},set :function(_k4){this.pName=yyGetString(_k4);}},gmlloopmode:{enumerable:true,get :function(){return this._uh3;
},set :function(_k4){var _Je=yyGetInt32(_k4);if((_Je>=0)&&(_Je<_kg3)){this._uh3=_Je;}else {debug("Trying to set loopmode property of sequence to out-of-bounds value "+yyGetReal(_k4));}}},gmlplaybackSpeed:{enumerable:true,get :function(){return this._Tb1;},set :function(_k4){this._Tb1=yyGetReal(_k4);}},gmlplaybackSpeedType:{enumerable:true,get :function(){return this._Ub1;},set :function(_k4){var _Je=yyGetInt32(_k4);if(isFinite(_k4)&&(_Je>=0)&&(_Je<_Hj3)){this._Ub1=_Je;}else {debug("Trying to set playbackSpeedType property of sequence to out-of-bounds value "+yyGetReal(_k4));
}}},gmllength:{enumerable:true,get :function(){return this._wN;},set :function(_k4){_k4=yyGetReal(_k4);_k4=_q7(_k4,0.0);this._wN=_k4;}},gmlvolume:{enumerable:true,get :function(){return this._Dj3;},set :function(_k4){_k4=yyGetReal(_k4);_k4=_q7(_k4,0.0);this._Dj3=_k4;}},gmlxorigin:{enumerable:true,get :function(){return this._fd3;},set :function(_k4){this._fd3=yyGetReal(_k4);}},gmlyorigin:{enumerable:true,get :function(){return this._gd3;},set :function(_k4){this._gd3=yyGetReal(_k4);}},gmltracks:{enumerable:true,
get :function(){return this._rN;},set :function(_k4){if(_k4 instanceof Array){_k4.forEach(_a4=>{_a4.__h3=this;});this._rN=_k4;}else {throw new Error("value must be an array of tracks");}}},gmlmessageEventKeyframes:{enumerable:true,get :function(){return this._cc1._NO;},set :function(_k4){if(_k4 instanceof Array){this._cc1._NO=_k4;this._cc1._JO=_k4.length;}else {throw new Error("value must be an array of keyframes");}}},gmlmomentKeyframes:{enumerable:true,get :function(){return this._Ej3._NO;},set :function(_k4){if(_k4 instanceof Array){
this._Ej3._NO=_k4;this._Ej3._JO=_k4.length;}else {throw new Error("value must be an array of keyframes");}}},gmlevent_create:{enumerable:true,get :function(){return this["event_create"];},set :function(_k4){this["event_create"]=_k4;}},gmlevent_destroy:{enumerable:true,get :function(){return this["event_destroy"];},set :function(_k4){this["event_destroy"]=_k4;}},gmlevent_clean_up:{enumerable:true,get :function(){return this["event_clean_up"];},set :function(_k4){this["event_clean_up"]=_k4;}},gmlevent_step:{enumerable:true,
get :function(){return this["event_step"];},set :function(_k4){this["event_step"]=_k4;}},gmlevent_step_begin:{enumerable:true,get :function(){return this["event_step_begin"];},set :function(_k4){this["event_step_begin"]=_k4;}},gmlevent_step_end:{enumerable:true,get :function(){return this["event_step_end"];},set :function(_k4){this["event_step_end"]=_k4;}},gmlevent_async_system:{enumerable:true,get :function(){return this["event_async_system"];},set :function(_k4){this["event_async_system"]=_k4;}},gmlevent_broadcast_message:{
enumerable:true,get :function(){return this["event_broadcast_message"];},set :function(_k4){this["event_broadcast_message"]=_k4;}},});}_N21.prototype._D31=function(){var ids=[];this._Ij3(this._rN,ids);return ids;};_N21.prototype._Ij3=function(_rd3,_Jj3){for(var _Bf2=0;_Bf2<_rd3.length;++_Bf2){var _v4=_rd3[_Bf2];if(_v4._nH==_S21){var _Kj3=_v4;if(_Kj3._uN!=null){var _Lj3=_Kj3._uN._JO;for(var i=0;i<_Lj3;i++){var _TG=_Kj3._uN._NO[i];for(var _Ce3 in _TG._Jl){var _De3=_TG._Jl[_Ce3];if(_De3._ej3!=-1){if(_Jj3.indexOf(_De3._ej3)==-1){
_Jj3.push(_De3._ej3);}}}}}}else if(_v4._nH==_u31){var _Mj3=_v4;this._Ij3(_Mj3._yi3(),_Jj3);this._Ij3(_Mj3._Ai3(),_Jj3);}else if(_v4._nH==_T21){var _Nj3=_v4;if(_Nj3._uN!=null){var _Lj3=_Nj3._uN._JO;for(var i=0;i<_Lj3;i++){var _TG=_Nj3._uN._NO[i];for(var _Ce3 in _TG._Jl){var _De3=_TG._Jl[_Ce3];if(_De3._Wx!=-1){var _G21=_xC._NP(_De3._Wx);if(_G21!=null){this._Ij3(_G21._rN,_Jj3);}}}}}}this._Ij3(_v4._rN,_Jj3);}};/*@constructor */function _BI2(){this.Sequences=[];this._kw2=[];this._Oj3=new _GK();this._Oj3._RP(_Dg3);
this._Oj3._RP(_Eg3);this._Oj3._RP(_Fg3);this._Oj3._RP(_Gg3);this._Oj3._RP(_Hg3);this._Oj3._RP(_Ig3);this._Oj3._RP(_Jg3);this._Oj3._RP(_Kg3);this._Oj3._RP(_Lg3);this._Oj3._RP(_Mg3);}_BI2.prototype._Vf=function(_zL2){var _3m=null;if(_zL2!=null){_3m=new _N21(_zL2);}this.Sequences[this.Sequences.length]=_3m;};_BI2.prototype._I21=function(){var _3m=new _N21();var i;for(i=0;i<this.Sequences.length;i++){if(this.Sequences[i]==null){this.Sequences[i]=_3m;return _3m;}}this.Sequences[this.Sequences.length]=_3m;return _3m;
};_BI2.prototype._K21=function(_DM2){if(typeof(_DM2)=="object"){var i;for(i=0;i<this.Sequences.length;i++){if(this.Sequences[i]==_DM2){this.Sequences[i]=null;return;}}}else {if((_DM2>=0)&&(_DM2<this.Sequences.length)){this.Sequences[_DM2]=null;return;}}};_BI2.prototype._NP=function(_c5){if((_c5<0)||(_c5>=this.Sequences.length)){return undefined;}return this.Sequences[_c5];};_BI2.prototype._O21=function(_DM2){if((typeof(_DM2)=="object")&&(_DM2 instanceof _N21)){var i;for(i=0;i<this.Sequences.length;i++){
if(this.Sequences[i]==_DM2){return true;}}}return false;};function _mC(_s4){var _Pj3=_xC._n6(_s4);if(_Pj3!==undefined&&_Pj3!==null)return true;return false;}function _nC(_s4){var _Pj3=_xC._n6(_s4);if(_Pj3!==undefined&&_Pj3!==null)return _Pj3.pName;return "";}_BI2.prototype._JM=function(_c5){if((_c5<0)||(_c5>=this._kw2.length)){return undefined;}return this._kw2[_c5];};_BI2.prototype._Qj3=function(_c5){this._kw2[_c5]=null;};_BI2.prototype._KM=function(_Pn){if(_Pn==null)return;_Pn._Rj3();_Pn._Sj3();_Pn._Tj3();
this._Qj3(_Pn._BK);};_BI2.prototype._Uj3=function(_w4){for(var i=0;i<this.Sequences.length;i++){if(this.Sequences[i].pName==_w4){return i;}}return -1;};_BI2.prototype._tC=function(){var ids=[];for(var i=0;i<this.Sequences.length;++i){if(this.Sequences[i]){ids.push(i);}}return ids;};_BI2.prototype._8M=function(){var index;for(index=0;index<this._kw2.length;index++){if(this._kw2[index]==null){break;}}this._kw2[index]=new _E31(index);return this._kw2[index];};var _Vj3=[];var _Wj3=[];function _Xj3(_Yj3,_Zj3){var __j3=new Object();
__j3._TG=_Yj3;__j3._0k3=_Zj3;_Vj3[_Vj3.length]=__j3;}function _1k3(_Yj3,_G13){var __j3=new Object();__j3._TG=_Yj3;__j3._F31=_G13;_Wj3[_Wj3.length]=__j3;}function _2k3(_Yj3,_aN){var __j3=new Object();__j3._TG=_Yj3;__j3._3k3=_aN;_4k3[_4k3.length]=__j3;}var _4k3=[];function _5k3(){_4k3=[];}_BI2.prototype._8d3=function(_6k3,_7k3){if(_6k3==null)return;var instance=this._kw2[_6k3._BK];if(instance!=null){if((_6k3._FK._hZ1()==0)&&(_7k3||(instance._GC&&instance._8k3)||instance._1Q))return;var fps=_g4._h4();instance._9k3=false;
if(instance._8k3==false){var _G21=_xC._NP(instance._AK);if(_G21!=null){_G31.push(_G21);instance._H31(_G21._rN,-1,-1,_6k3._mH._Ce);instance._ak3(_G21._rN);_G31.pop();}instance._8k3=true;}var sequence=this.Sequences[instance._AK];if(sequence!=null){_G31.push(sequence);instance._YP=instance._CK;if(!_7k3&&!instance._GC&&!instance._1Q){var _bk3=sequence._Tb1;if(sequence._Ub1==_RJ){_bk3/=fps;}instance._CK+=instance.__P*instance._9M*_bk3;}var _K6={headPosition:instance._CK,_oN:instance.__P,_pN:instance._1Q}
;instance._9k3=_qN(sequence,_K6);instance._CK=_K6.headPosition;instance.__P=_K6._oN;var _ck3=new _qr();var _ad3=sequence._fd3!=0||sequence._gd3!=0||_6k3._zH!=0||_6k3._BH!=0||_6k3._E3!=0||_6k3._DK!=1||_6k3._EK!=1||_6k3._mH._AH!=0||_6k3._mH._CH!=0;if(_ad3){var _bd3=new _qr();var _cd3=new _qr();var _dd3=new _qr();var _ed3=new _qr();_bd3._jK2(_6k3._DK,_6k3._EK,1);_cd3._PW(_6k3._E3);_ed3._RW(-sequence._fd3,-sequence._gd3,0);_dd3._RW(_6k3._zH+_6k3._mH._AH,_6k3._BH+_6k3._mH._CH,0);var _dk3=new _qr();var _ek3=new _qr();
_dk3.Multiply(_ed3,_bd3);_ek3.Multiply(_dk3,_cd3);_dk3.Multiply(_ek3,_dd3);var _lc3=new _qr(_ck3);_ck3.Multiply(_dk3,_lc3);}this._fk3(_6k3,sequence,instance,instance._9d3,instance,_ck3,null,sequence._rN,instance._CK,instance._YP,instance.__P,false);if(!_7k3&&!instance._GC&&!instance._1Q){this._gk3(instance,sequence,_6k3._Ce,fps);this._hk3(instance,sequence,_6k3._Ce,fps);}if(_K6._pN){instance._ik3(false);instance._jk3();}instance._1Q=_K6._pN;_6k3._FK._gZ1();_G31.pop();}}};_BI2.prototype._kk3=function(_KL){
if(_KL==null){return;}_Vj3=[];_Wj3=[];var fps=_g4._h4();for(var _4Q=0;_4Q<_KL._5Q.length;++_4Q){var _6Q=_KL._5Q[_4Q];var _7Q=_bo._eo(_KL,_6Q);if(_7Q==null)continue;this._8d3(_7Q,false);}this._lk3();this._mk3();};_BI2.prototype._nk3=function(_KL,_ok3){if(_KL==null){return;}var _Un2;switch(_ok3){case __w2:_Un2="event_step";break;case _Yw2:_Un2="event_step_begin";break;case _1x2:_Un2="event_step_end";break;case _n71:_Un2="event_async_system";break;case _Az2:_Un2="event_broadcast_message";break;default :return;
}for(var _4Q=0;_4Q<_KL._5Q.length;++_4Q){var _6Q=_KL._5Q[_4Q];var _7Q=_bo._eo(_KL,_6Q);if(_7Q==null)continue;var instance=this._kw2[_7Q._BK];if(instance!=null){if(instance.paused||instance._pN)continue;var sequence=this.Sequences[instance._AK];if(sequence!=null){if(sequence[_Un2]!=null){sequence[_Un2]._bj3.call(instance,instance);}}}}};_BI2.prototype._bM=function(_pk3,_ok3){if(_pk3==null){return;}var _Un2;switch(_ok3){case __w2:_Un2="event_step";break;case _Yw2:_Un2="event_step_begin";break;case _1x2:_Un2="event_step_end";
break;case _II:_Un2="event_create";break;case _KI:_Un2="event_destroy";break;case _rI:_Un2="event_clean_up";break;default :return;}var sequence=this.Sequences[_pk3._AK];if(sequence!=null){if(sequence[_Un2]!=null){sequence[_Un2]._bj3.call(_pk3,_pk3);}}};_BI2.prototype._gk3=function(_G13,_qh3,_Zj3,_qk3){if(_G13==null)return;if(_qh3==null)return;if(_qh3._cc1._JO==0)return;var _2e3=[];var _3e3=[];var _N33=_qh3._Tb1;if(_qh3._Ub1==_RJ)_N33/=_qk3;if(_G13._9M!=0.0)_N33*=_G13._9M;var _Pd3=_G13.__P;if(_N33<0.0){_Pd3=-_Pd3;
_N33=-_N33;}var _Bj3=_qh3._cc1._th3(_qh3._uh3,1.0/_N33,_qh3._wN,_G13._YP,_G13._CK,_Pd3,_2e3,_3e3,true,_G13._9k3);if(!_Bj3)return;var _4e3=1,offset=0;if(_2e3[1]!=-1)_4e3=2;if(_2e3[0]==-1)offset=1;for(var _0l=offset;_0l<_4e3;_0l++){var _6e3=_2e3[_0l];var _7e3=_3e3[_0l];var _rk3=1;if(_6e3>_7e3)_rk3=-1;var i=_6e3;do {var _TG=_qh3._cc1._NO[i];_Xj3(_TG,_Zj3);if(i==_7e3)break;i+=_rk3;}while(true);}};_BI2.prototype._hk3=function(_G13,_qh3,_Zj3,_qk3){if(_G13==null)return;if(_qh3==null)return;if(_qh3._Ej3._JO==0)return;
var _2e3=[];var _3e3=[];var _N33=_qh3._Tb1;if(_qh3._Ub1==_RJ)_N33/=_qk3;if(_G13._9M!=0.0)_N33*=_G13._9M;var _Pd3=_G13.__P;if(_N33<0.0){_Pd3=-_Pd3;_N33=-_N33;}var _Bj3=_qh3._Ej3._th3(_qh3._uh3,1.0/_N33,_qh3._wN,_G13._YP,_G13._CK,_Pd3,_2e3,_3e3,true,_G13._9k3);if(!_Bj3)return;var _4e3=1,offset=0;if(_2e3[1]!=-1)_4e3=2;if(_2e3[0]==-1)offset=1;for(var _0l=offset;_0l<_4e3;_0l++){var _6e3=_2e3[_0l];var _7e3=_3e3[_0l];var _rk3=1;if(_6e3>_7e3)_rk3=-1;var i=_6e3;do {var _TG=_qh3._Ej3._NO[i];_1k3(_TG,_G13);if(i==_7e3)break;
i+=_rk3;}while(true);}};function _xN(_qh3,_aN,_qk3,_sk3,_md3,_ld3,_kd3){if(_qh3==null)return;if(_qh3._cc1._JO==0)return;var _2e3=[];var _3e3=[];var _N33=_qh3._Tb1;if(_qh3._Ub1==_RJ)_N33/=_qk3;if(_sk3!=0.0)_N33*=_sk3;var _Pd3=_md3;if(_N33<0.0){_Pd3=-_Pd3;_N33=-_N33;}var _Bj3=_qh3._cc1._th3(_qh3._uh3,1.0/_N33,_qh3._wN,_ld3,_kd3,_Pd3,_2e3,_3e3,true);if(!_Bj3)return;var _4e3=1,offset=0;if(_2e3[1]!=-1)_4e3=2;if(_2e3[0]==-1)offset=1;for(var _0l=offset;_0l<_4e3;_0l++){var _6e3=_2e3[_0l];var _7e3=_3e3[_0l];var _rk3=1;
if(_6e3>_7e3)_rk3=-1;var i=_6e3;do {var _TG=_qh3._cc1._NO[i];_2k3(_TG,_aN);if(i==_7e3)break;i+=_rk3;}while(true);}};_BI2.prototype._lk3=function(){for(var i=0;i<_Vj3.length;i++){var _TG=_Vj3[i]._TG;var _tk3=_TG._Jl[0];for(var _J6=0;_J6<_tk3._ec1.length;_J6++){var map=ds_map_create();g_pBuiltIn.event_data=map;ds_map_add(map,"event_type","sequence event");ds_map_add(map,"element_id",_Vj3[i]._0k3);ds_map_add(map,"message",_tk3._ec1[_J6]);_xC._nk3(_c4,_Az2);_14._24(_Az2,0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;
}}};_BI2.prototype._mk3=function(){for(var i=0;i<_Wj3.length;i++){var _TG=_Wj3[i]._TG;var _uk3=_TG._Jl[0];if(_uk3._aj3!=null){_uk3._aj3._bj3.call(_Wj3[i]._F31,_Wj3[i]._F31);}}};function _vk3(){for(var i=0;i<_4k3.length;i++){var _TG=_4k3[i]._TG;var _tk3=_TG._Jl[0];for(var _J6=0;_J6<_tk3._ec1.length;_J6++){var map=ds_map_create();g_pBuiltIn.event_data=map;ds_map_add(map,"event_type","sprite event");ds_map_add(map,"element_id",_4k3[i]._3k3);ds_map_add(map,"message",_tk3._ec1[_J6]);_xC._nk3(_c4,_Az2);_14._24(_Az2,
0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;}}};function _qN(_nd3,_wk3){if(_nd3==null){return false;}var end=_nd3._wN;var _O33=false;if(_nd3._uh3==_hg3){if(_wk3.headPosition<=0.0){_wk3.headPosition=0.0;if(_wk3._oN<0.0){_O33=true;_wk3._pN=true;}}else if(_wk3.headPosition>=end){_wk3.headPosition=end;if(_wk3._oN>0.0){_wk3._pN=true;_O33=true;}}}else if(_nd3._uh3==_ig3){if((_wk3.headPosition<0.0)||(_wk3.headPosition>=end)){_O33=true;}if(end>0){_wk3.headPosition=_j4(_wk3.headPosition,end);}}else if(_nd3._uh3==_jg3){
if((_wk3.headPosition<0.0)||(_wk3.headPosition>=end)){if(_wk3.headPosition<0.0){_wk3.headPosition*=-1.0;}var _xk3=(_wk3.headPosition/end);_wk3.headPosition=_j4(_wk3.headPosition,end);if(_xk3&1){_wk3.headPosition=end-_wk3.headPosition;_wk3._oN=-1.0;}else {_wk3._oN=1.0;}_O33=true;}}return _O33;}_BI2.prototype._fk3=function(_LL,_nd3,_S8,_jd3,_yk3,_7s,_zk3,_rd3,_kd3,_ld3,_md3,_Ak3){var _ud3=new _qr();var _Bk3=new _qr();var _Ck3=_jd3;var _nl=_jd3;for(var _Bf2=0;_Bf2<_rd3.length;++_Bf2){var _Dk3=_rd3[_Bf2];_G31.push(_Dk3);
if(!_vd3(_Dk3._nH)&&_Dk3.enabled){var _W33=_Ek3(_yk3,_Ck3,_nl);_nl=_W33._nl;_Ck3=_W33._Zk;_nl._Fk3=_Dk3;var _Yb1=_Ak3||_nl.value._Gk3!=_kd3;if(_Yb1){var _Hk3=new _GK();_Hk3._fZ1();if(_nl.__h3!=null){_Hk3=(_nl.__h3.value._6f3._kZ1(_nl.__h3.value._Yi3._lZ1()))._lZ1();}_Dk3._Si3(_kd3,_nd3._wN,_nl.value,_Hk3);_nl.value._Gk3=_kd3;}switch(_Dk3._nH){case _R21:this._Ik3(_nl,_nl.value,_S8,_Dk3,_bv2,_md3,_ld3,_kd3,_nd3._wN);break;case _T21:this._Jk3(_LL,_nd3,_S8,_nl.value,_nl._Cd3,_nl,_7s,_zk3,_Dk3,_kd3,_ld3,_md3,
false,_Yb1);break;}if(_Yb1){_nl.value._E_2._fs();_hh3(_nl.value._E_2,_nl.value.x,_nl.value.y,_nl.value.scaleX,_nl.value.scaleY,_nl.value.rotation,_nl.value.xOrigin,_nl.value.yOrigin);if(_nl.__h3!=null){if((_zk3._Fi3&_9h3)==0){_Bk3._RW(_nl.__h3.value.xOrigin,_nl.__h3.value.yOrigin,0);_ud3.Multiply(_nl.value._E_2,_Bk3);_nl.value._E_2.__i(_ud3);}var _Kk3=_nl.__h3.value._6f3._kZ1(_nl.value._6f3._lZ1());_nl.value._6f3._mZ1(_nl.__h3.value._6f3);if(_nl.value._6f3._dZ1(_xg3)){if(_Kk3._dZ1(_xg3)){_nl.value._Rd3[0]=_nl.__h3.value._Rd3[0];
_nl.value._Rd3[1]=_nl.__h3.value._Rd3[1];_nl.value._Rd3[2]=_nl.__h3.value._Rd3[2];_nl.value._Rd3[3]=_nl.__h3.value._Rd3[3];}else {_nl.value._Rd3[0]*=_nl.__h3.value._Rd3[0];_nl.value._Rd3[1]*=_nl.__h3.value._Rd3[1];_nl.value._Rd3[2]*=_nl.__h3.value._Rd3[2];_nl.value._Rd3[3]*=_nl.__h3.value._Rd3[3];}}if(_nl.value._6f3._dZ1(_wg3)){if(_Kk3._dZ1(_wg3)){_nl.value._Sd3[0]=_nl.__h3.value._Sd3[0];_nl.value._Sd3[1]=_nl.__h3.value._Sd3[1];_nl.value._Sd3[2]=_nl.__h3.value._Sd3[2];_nl.value._Sd3[3]=_nl.__h3.value._Sd3[3];
}else {_nl.value._Sd3[0]+=_nl.__h3.value._Sd3[0];_nl.value._Sd3[1]+=_nl.__h3.value._Sd3[1];_nl.value._Sd3[2]+=_nl.__h3.value._Sd3[2];_nl.value._Sd3[3]+=_nl.__h3.value._Sd3[3];}}if(_nl.value._6f3._dZ1(_tg3)){if(_Kk3._dZ1(_tg3)){_nl.value.gain=_nl.__h3.value.gain;}else {_nl.value.gain*=_nl.__h3.value.gain;}}if(_nl.value._6f3._dZ1(_ug3)){if(_Kk3._dZ1(_ug3)){_nl.value.pitch=_nl.__h3.value.pitch;}else {_nl.value.pitch*=_nl.__h3.value.pitch;}}if(_nl.value._6f3._dZ1(_vg3)){if(_Kk3._dZ1(_vg3)){_nl.value._0j3=_nl.__h3.value._0j3;
_nl.value._1j3=_nl.__h3.value._1j3;_nl.value._2j3=_nl.__h3.value._2j3;}else {_nl.value._0j3*=_nl.__h3.value._0j3;_nl.value._1j3*=_nl.__h3.value._1j3;_nl.value._2j3*=_nl.__h3.value._2j3;}}if(_nl.value._6f3._dZ1(_Ld3)){if(_Kk3._dZ1(_Ld3)){_nl.value.imageSpeed=_nl.__h3.value.imageSpeed;}else {_nl.value.imageSpeed*=_nl.__h3.value.imageSpeed;}}if(_nl.value._6f3._dZ1(_Od3)){if(_Kk3._dZ1(_Od3)){_nl.value.imageIndex=_nl.__h3.value.imageIndex;}else {_nl.value.imageIndex+=_nl.__h3.value.imageIndex;}}}}var _ck3=new _qr();
_ck3.__i(_7s);_ud3.Multiply(_nl.value._E_2,_7s);_7s.__i(_ud3);switch(_Dk3._nH){case _T21:this._Jk3(_LL,_nd3,_S8,_nl.value,_nl._Cd3,_nl,_7s,_zk3,_Dk3,_kd3,_ld3,_md3,true,_Yb1);break;case _U21:this._Lk3(_LL,_nd3,_S8,_nl.value,_7s,_Dk3,_kd3,_ld3,_md3);break;case _S21:this._Mk3(_LL,_nd3,_S8,_nl.value,_7s,_Dk3,_kd3,_ld3);break;case _s31:this._Nk3(_LL,_nd3,_S8,_nl.value,_7s,_Dk3,_kd3,_ld3);break;case _331:this._Ok3(_nl.value,_Dk3,_kd3,_nd3._wN);break;}if(_Dk3._rN.length>0){this._fk3(_LL,_nd3,_S8,_nl._Cd3,_nl,
_7s,_Dk3,_Dk3._rN,_kd3,_ld3,_md3,_Yb1);}_7s.__i(_ck3);}_G31.pop();}};_BI2.prototype._Ik3=function(_X82,_Pk3,_S8,_a4,_qk3,_nh3,_mh3,_kd3,_Ah3){_Pk3.spriteIndex=-1;var keyframeStore=_a4._uN;var _tN=keyframeStore._vN(_kd3,_Ah3);if(_tN==null)return;var spriteIndex=_tN._Jl[0]._oK;_Pk3.spriteIndex=spriteIndex;var _mN=_m6.Sprites[spriteIndex];if(!_Pk3._Kd3(_Zg3))_Pk3.xOrigin+=_mN.xOrigin;if(!_Pk3._Kd3(__g3))_Pk3.yOrigin+=_mN.yOrigin;_Qk3(_X82,_a4,_S8,_qk3,_kd3,_mh3,_nh3,_mN.sequence,_mN,_tN,keyframeStore);
};function _Qk3(_X82,_a4,_Z7,_qk3,_kd3,_ld3,_md3,_nd3,_94,_Rk3,_Sk3){if(_nd3===null){return;}if(_X82.value._Kd3(_Od3))return;var _Dd3=_Sk3._Ed3(_kd3,_nd3._wN);if(_Dd3==-1){return;}var _3_2=0;var _mN=_94;if(_mN._m5()>1){var _Fd3=Math.max(_kd3,_Rk3._OO);_Fd3=Math.min(_Fd3,_Rk3._OO+_Sk3._Gd3(_Dd3,_nd3._wN));var _Hd3=_Fd3-_Rk3._OO;var _Id3=1.0;var _Jd3=_mN.sequence;if(_Jd3!=null){if(_Jd3._Ub1==_RJ){_Id3=_Jd3._Tb1/_nd3._Tb1;}else {_Id3=_Jd3._Tb1*(_g4._h4()/_nd3._Tb1);}}else if(_mN.playbackspeed!=0.0){if(_mN.playbackspeedtype==_RJ){
_Id3=_mN.playbackspeed/_nd3._Tb1;}else {_Id3=_mN.playbackspeed;}}_Hd3*=_Id3;if(_X82.value._Kd3(_Ld3)){var _Md3=_X82.value._Nd3;if(_Md3>=0)_Hd3=_Md3*_Id3;}if(_Jd3!=null){var _Pd3=1.0;if(_ld3>_kd3){_Pd3=-1.0;}var _K6={headPosition:_Hd3,_oN:_Pd3,_pN:false};_qN(_Jd3,_K6);_Hd3=_K6.headPosition;_Pd3=_K6._oN;if((_Jd3._rN!=null)&&(_Jd3._rN[0]._nH==_sN)){_xN(_nd3,_Z7.id,_qk3,_nd3.playbackSpeed,_md3,_ld3,_Hd3);}}}}_BI2.prototype._Jk3=function(_LL,_qh3,_Pn,_Pk3,_Tk3,_yk3,_7s,_Uk3,_ph3,_lh3,_mh3,_nh3,_Vk3,_Ak3){
_Pk3._Wk3=-1;_Pk3._Pj3=null;var keyframeStore=_ph3._uN;var _2e3=[];var _3e3=[];var _Bj3=_kh3(_lh3,_mh3,_nh3,1.0,_ph3,_qh3,_2e3,_3e3);if(_Bj3){var _4e3=1,offset=0;if(_2e3[1]!=-1)_4e3=2;if(_2e3[0]==-1)offset=1;for(var _0l=offset;_0l<_4e3;_0l++){var _6e3=_2e3[_0l];var _7e3=_3e3[_0l];for(var i=_6e3;i<=_7e3;i++){var _TG=keyframeStore._NO[i];var _8e3=_TG._Jl[0];var _9e3=_8e3._Wx;var _ae3=_xC._NP(_9e3);if(_ae3==null)continue;_G31.push(_TG);_G31.push(_8e3);_G31.push(_ae3);{var _Ai;if(_TG._be3){if(i>=keyframeStore._JO-1)_Ai=_qh3._wN-_TG._OO;
else _Ai=keyframeStore._NO[i+1]._OO-_TG._OO;}else _Ai=_TG._wN;if((Math.floor(_lh3)>=_TG._OO)&&(Math.floor(_lh3)<(_TG._OO+_Ai))){if(!_Vk3){if(!_Pk3._Kd3(_Zg3))_Pk3.xOrigin+=_ae3._fd3;if(!_Pk3._Kd3(__g3))_Pk3.yOrigin+=_ae3._gd3;_G31.pop();_G31.pop();_G31.pop();continue;}_Pk3._Wk3=_9e3;_Pk3._Pj3=_ae3;var _Fd3=_q7(_lh3,_TG._OO);var _ce3=_q7(_mh3,_TG._OO);_Fd3=_r7(_Fd3,_TG._OO+_Ai);_ce3=_r7(_ce3,_TG._OO+_Ai);var _Hd3=_Fd3-_TG._OO;var _de3=_ce3-_TG._OO;var _Id3=1.0;if(_qh3._Tb1!=0.0){if(_qh3._Ub1==_RJ)_Id3=_ae3._Tb1/_qh3._Tb1;
else _Id3=_ae3._Tb1;}_Hd3*=_Id3;_de3*=_Id3;var _Pd3=1.0;if(_mh3>_lh3)_Pd3=-1.0;var _K6={headPosition:_Hd3,_oN:_Pd3,_pN:false};_qN(_ae3,_K6);_Hd3=_K6.headPosition;_Pd3=_K6._oN;this._fk3(_LL,_ae3,_Pn,_Tk3,_yk3,_7s,_ph3,_ae3._rN,_Hd3,_de3,_Pd3,_Ak3);}}_G31.pop();_G31.pop();_G31.pop();}}}};_BI2.prototype._Lk3=function(_Xk3,_qh3,_Pn,_Pk3,_7s,_ph3,_lh3,_mh3,_nh3){_Pk3._493=-1;_Pk3.soundIndex=-1;var keyframeStore=_ph3._uN;if(keyframeStore==null)return;var _Yk3=_7s._e7[12];var _Zk3=_7s._e7[13];var gain=_Pk3.gain*_Pn._Dj3*_qh3._Dj3;
var pitch=_Pk3.pitch;var _0j3=_Pk3._0j3;var _1j3=_Pk3._1j3;var __k3=_Pk3._2j3;var _0l3=keyframeStore._Ed3(_lh3,_qh3._wN);var _IO=keyframeStore._JO;if((_Pn._1Q)||(_Pn._GC)){_0l3=-1;}for(var i=0;i<_IO;i++){var _1l3=keyframeStore._NO[i];if(_1l3!=null){_G31.push(_1l3);for(var _Ce3 in _1l3._Jl){var _2l3=_1l3._Jl[_Ce3];_G31.push(_2l3);var _3l3=_Pn._4l3[_Ge3(_G31)];if(_3l3!=null){if(i!=_0l3){if(_3l3._5l3!=-1){audio_stop_sound(_3l3._5l3);_3l3._5l3=-1;if(_ph3._3i3!==null){audio_bus_clear_emitters(_ph3._3i3);}}}else {if(_3l3._5l3!=-1){
if(((_3l3._6l3*_nh3)<0)||(((_lh3-_mh3)*_3l3._6l3)<0)){audio_stop_sound(_3l3._5l3);_3l3._5l3=-1;if(_ph3._3i3!==null){audio_bus_clear_emitters(_ph3._3i3);}}}if(_3l3._5l3==-1){if(_ph3._3i3!==null){audio_emitter_bus(_3l3._7l3,_ph3._3i3);}_3l3._6l3=_nh3;var _8l3;if(_3l3._6l3>0){_8l3=_lh3-_1l3._OO;}else {_8l3=(_1l3._OO+(_1l3._wN-1))-_lh3;if(_8l3<0.0)_8l3=0.0;}if((_qh3._Tb1*_Pn._9M)>0.0){_8l3/=(_qh3._Tb1*_Pn._9M);}const _Jk={"sound":_2l3._fj3,"loop":(_2l3._hj3==_dg3),"priority":1,"emitter":_3l3._7l3,"offset":_8l3}
;audio_emitter_position(_3l3._7l3,_Yk3,_Zk3,0.0);_3l3._5l3=audio_play_sound_ext(_Jk);}if(_3l3._5l3!=-1&&audio_emitter_exists(_3l3._7l3)===true){audio_emitter_gain(_3l3._7l3,gain);audio_emitter_pitch(_3l3._7l3,pitch);audio_emitter_falloff(_3l3._7l3,_0j3,_1j3,__k3);audio_emitter_position(_3l3._7l3,_Yk3,_Zk3,0.0);_ph3._wi3();if(_ph3._3i3!=null&&audio_emitter_get_bus(_3l3._7l3)!==_ph3._3i3){audio_emitter_bus(_3l3._7l3,_ph3._3i3);}}_Pk3._493=_3l3._7l3;_Pk3.soundIndex=_3l3._5l3;}}_G31.pop();}_G31.pop();
}}};_BI2.prototype._Mk3=function(_Xk3,_qh3,_Pn,_Pk3,_7s,_ph3,_lh3,_mh3){_Pk3._pO=_Sn;var keyframeStore=_ph3._uN;if(keyframeStore==null)return;var __d3=Math.atan2(_7s._e7[1],_7s._e7[0])*-(180/Math.PI);var _Xd3=Math.sqrt((_7s._e7[0]*_7s._e7[0])+(_7s._e7[1]*_7s._e7[1]));var _Yd3=Math.sqrt((_7s._e7[4]*_7s._e7[4])+(_7s._e7[5]*_7s._e7[5]));var _0e3=_7s._e7[12];var _1e3=_7s._e7[13];var _9l3=[];_9l3[0]=_7s._e7[0];_9l3[1]=_7s._e7[1];var _al3=[];_al3[0]=_7s._e7[4];_al3[1]=_7s._e7[5];var _bl3=(_9l3[0]*_al3[1])-(_9l3[1]*_al3[0]);
if(_bl3<0.0){if(Math.abs(__d3-_Pk3.rotation)>0.0001){_Xd3*=-1.0;__d3-=180.0;}else {_Yd3*=-1.0;}}var _0l3=keyframeStore._Ed3(_lh3,_qh3._wN);var _IO=keyframeStore._JO;for(var i=0;i<_IO;i++){var _TG=keyframeStore._NO[i];if(_TG!=null){_G31.push(_TG);for(var _Ce3 in _TG._Jl){var _De3=_TG._Jl[_Ce3];_G31.push(_De3);var _Ee3=_Pn._Fe3[_Ge3(_G31)];if(_Ee3!=null){var _9o=_Fx._G33(_Ee3._pO);if(_9o!=null){_9o._C13(true);_9o._H13(true);_9o._F13(_Pn);if(i!=_0l3){if(_9o.visible==true)_9o.visible=false;}else {_Pk3._pO=_9o.id;
if(_9o.visible==false)_9o.visible=true;if((_Pk3._6f3._dZ1(_SP))||(_Xk3._FK._dZ1(_SP))||(_Xk3._mH._AH!=0.0)||(_Xk3._mH._CH!=0.0)){_9o.x=_0e3;_9o.y=_1e3;}if((_Pk3._6f3._dZ1(_UP))||(_Xk3._FK._dZ1(_UP))){_9o.image_angle=__d3;}if((_Pk3._6f3._dZ1(_VP))||(_Xk3._FK._dZ1(_VP))){_9o.image_xscale=_Xd3;_9o.image_yscale=_Yd3;}if((_Pk3._6f3._dZ1(_xg3))||((_Xk3._xK&0x00ffffff)!=0xffffff)||(_Xk3._yK!=1.0)){var _55=0;if((_Xk3._xK&0x00ffffff)!=0xffffff){var _Y4=(_Xk3._xK&0xff)/255.0;var _Z4=((_Xk3._xK>>8)&0xff)/255.0;
var __4=((_Xk3._xK>>16)&0xff)/255.0;_55=((_Pk3._Rd3[0]*_Y4*255.0)&0xff);_55|=((_Pk3._Rd3[1]*_Z4*255.0)&0xff)<<8;_55|=((_Pk3._Rd3[2]*__4*255.0)&0xff)<<16;}else {_55=((_Pk3._Rd3[0]*255.0)&0xff);_55|=((_Pk3._Rd3[1]*255.0)&0xff)<<8;_55|=((_Pk3._Rd3[2]*255.0)&0xff)<<16;}_9o.image_blend=_55;_9o.image_alpha=_Pk3._Rd3[3]*_Xk3._yK;}if(_Pk3._6f3._dZ1(_Ld3)){_9o.image_speed=_Pk3.imageSpeed;var _mN=_m6._n6(_9o.sprite_index);if(_mN!=null){var _Id3=1.0;var _Jd3=_mN.sequence;if(_Jd3!=null){if(_Jd3._Ub1==_RJ)_Id3=_Jd3._Tb1/_qh3._Tb1;
else _Id3=_Jd3._Tb1*(_g4._h4()/_qh3._Tb1);var _Md3=_Pk3._Nd3;if(_Md3>=0){_Hd3=_Md3*_Id3;var _Pd3=1.0;if(_mh3>_lh3)_Pd3=-1.0;var _K6={headPosition:_Hd3,_oN:_Pd3,_pN:false};_qN(_Jd3,_K6);_Hd3=_K6.headPosition;_Pd3=_K6._oN;if((_Jd3._rN!=null)&&(_Jd3._rN[0]._nH==_sN)){var _v4=_Jd3._rN[0];var _Qd3=_v4._uN._vN(_Hd3,_Jd3._wN);var _3_2;if(_Qd3==null)_3_2=-1;else _3_2=_Qd3._Jl[0]._tK;_9o.image_index=_3_2;}}}}}if(_Pk3._6f3._dZ1(_Od3)){_9o.image_index=_Pk3.imageIndex;}}}}_G31.pop();}_G31.pop();}}};_BI2.prototype._Nk3=function(_Xk3,
_qh3,_Pn,_Pk3,_7s,_ph3,_lh3,_mh3){var _NO=_ph3._uN;var _He3=null;var index=_NO._Ed3(_lh3,_qh3._wN);if(index!=-1){var _Ie3=_NO._NO[index];if(_Ie3!=null){_He3=_Ie3._Jl[0];}}if(_He3){var _Ne3=_Pn._Me3[_ph3.id];var _qC=(_Ne3!==undefined)?_Ne3:-1;if(_qC!=-1){_UW(_qC,_7s);if(_Pn._9k3){var _W93=_wV[_qC];var _xa3=_W93.emitters;if(_xa3){for(var i=0;i<_xa3.length;i++){var emitter=_xa3[i];_8a3(emitter);if(emitter._H83&&emitter.enabled&&emitter.mode==_i83&&emitter._M83<=0.0){_tY(_qC,i,emitter._XV,emitter._Mk);}}}}_LW(_qC);
}}};_BI2.prototype._Ok3=function(_Pk3,_a4,_lh3,_cl3){var keyframeStore=_a4._uN;var _dl3=keyframeStore._vN(_lh3,_cl3);if(_dl3==null)return;if(_Pk3._6f3._kZ1(this._Oj3)._hZ1()){var _6f3=_Pk3._6f3;_Pk3._gf3.enabled=false;if((_6f3._dZ1(_Dg3))&&(_Pk3._gf3._AV2!=0.0)){_Pk3._gf3.enabled=true;}if((_6f3._dZ1(_Eg3))&&(((_Pk3._gf3._BV2&0xffffff)!=0xffffff)||(_Pk3._gf3._CV2!=1.0))){_Pk3._gf3.enabled=true;}if(((_6f3._dZ1(_Fg3))&&(_Pk3._gf3._EV2!=0.0))||((_6f3._dZ1(_Gg3))&&(_Pk3._gf3._FV2!=0.0))){_Pk3._gf3._DV2=true;
_Pk3._gf3.enabled=true;}else {_Pk3._gf3._DV2=false;}if((_6f3._dZ1(_Ig3))&&(_Pk3._gf3._JV2!=0.0)){_Pk3._gf3._IV2=true;_Pk3._gf3.enabled=true;}else {_Pk3._gf3._IV2=false;}if(((_6f3._dZ1(_Kg3))&&(_Pk3._gf3._NV2!=0.0))||((_6f3._dZ1(_Lg3))&&((_Pk3._gf3.shadowOffsetX!=0.0)||(_Pk3._gf3.shadowOffsetY!=0.0)))){_Pk3._gf3._MV2=true;_Pk3._gf3.enabled=true;}else {_Pk3._gf3._MV2=false;}}else {_Pk3._gf3.enabled=false;}};/*@constructor */function _E31(_yg){_AL2.call(this);this.__type="[SequenceInstance]";this.id=_yg;
this._9d3=null;this._AK=-1;this._CK=0.0;this.__P=1.0;this._9M=1.0;this._Dj3=1.0;this._GC=false;this._1Q=false;this._8k3=false;this._9k3=false;this._YP=0.0;this._4l3={};this._Fe3={};this._Me3={};this._Ke3={};this._el3=-1;Object.defineProperties(this,{gmlsequence:{enumerable:true,get :function(){return _xC._NP(this._AK);},set :function(_k4){if(typeof(_k4)=="object"){this._AK=_xC.Sequences.indexOf(_k4);}else {this._AK=_k4;}}},gmlheadPosition:{enumerable:true,get :function(){return this._CK;},set :function(_k4){
var _k4=yyGetReal(_k4);_k4=_q7(_k4,0.0);var _WP=_xC._NP(this._AK);if(_WP!=null){var length=_WP._wN;_k4=_r7(_k4,length);}this._CK=_k4;this._YP=_k4;}},gmlheadDirection:{enumerable:true,get :function(){return this.__P;},set :function(_k4){_k4=yyGetReal(_k4);if(_k4!=0){this.__P=Math.sign(_k4);}}},gmlspeedScale:{enumerable:true,get :function(){return this._9M;},set :function(_k4){_k4=yyGetReal(_k4);this._9M=_k4;}},gmlvolume:{enumerable:true,get :function(){return this._Dj3;},set :function(_k4){_k4=yyGetReal(_k4);
_k4=_q7(_k4,0.0);this._Dj3=_k4;}},gmlpaused:{enumerable:true,get :function(){return this._GC;},},gmlfinished:{enumerable:true,get :function(){return this._1Q;},},gmlactiveTracks:{enumerable:true,get :function(){var _fl3=[];_gl3=this._9d3;while(_gl3!=null){_fl3.push(_gl3);_gl3=_gl3._Uv1;}return _fl3;}},gmlelementID:{enumerable:true,get :function(){if(_c4!=null){if(this._el3!=-1){var _lH=_bo._eo(_c4,this._el3);if((_lH!=null)&&(_lH._nH==_DJ)&&(_lH._BK==this.id)){return this._el3;}}for(var i=0;i<_c4._RL.length;
i++){var layer=_c4._RL._n6(i);for(var _J6=0;_J6<layer._7J.length;_J6++){var _lH=layer._7J._n6(_J6);if(_lH==null)continue;if((_lH._nH==_DJ)&&(_lH._BK==this.id)){this._el3=_lH._Ce;return this._el3;}}}}else {return -1;}}}});}_E31.prototype._KC=function(){if(!this._GC){this._GC=true;var _3l3=null;for(var key in this._4l3){_3l3=this._4l3[key];if(audio_is_paused(_3l3._5l3)==false){audio_pause_sound(_3l3._5l3);}_ik3(false);}}};_E31.prototype._0Q=function(){if(this._GC){this._GC=false;var _3l3=null;for(var key in this._4l3){
_3l3=this._4l3[key];if(audio_is_paused(_3l3._5l3)==true){audio_resume_sound(_3l3._5l3);}}}};_E31.prototype._jk3=function(){var _3l3=null;for(var key in this._4l3){_3l3=this._4l3[key];audio_stop_sound(_3l3._5l3);}this._4l3={};};_E31.prototype._H31=function(_rd3,_hl3,_rM,_YM){for(var _Bf2=0;_Bf2<_rd3.length;++_Bf2){var _v4=_rd3[_Bf2];_G31.push(_v4);if(_v4._nH==_S21){var _Kj3=_v4;if(_Kj3._uN!=null){var _Lj3=_Kj3._uN._JO;for(var i=0;i<_Lj3;i++){var _TG=_Kj3._uN._NO[i];_G31.push(_TG);for(var _Ce3 in _TG._Jl){var _De3=_TG._Jl[_Ce3];
if(_De3._ej3!=-1){_G31.push(_De3);var _Ee3=this._Fe3[_Ge3(_G31)];if((_hl3==__I)||(_hl3==_De3._ej3)){if(_Ee3!=null){if(_Ee3._il3==true){var _9o=_Fx._G33(_Ee3._pO);if(_9o!=null){_qI(_9o);}}delete this._Fe3[_Ge3(_G31)];}var _jl3=new _kl3();_jl3._ll3=_De3;if(_rM<10000){_jl3._ml3=_rM;_jl3._il3=true;}else {_jl3._pO=_rM;_jl3._il3=false;}this._Fe3[_Ge3(_G31)]=_jl3;}else {if(_Ee3==null){var _PS=null;if(_YM==-1){_PS=_143(_De3._ej3,0,0,0,this);}else {_PS=_343(_De3._ej3,0,0,_YM,this);}if(_PS!=null){var _jl3=new _kl3();
_jl3._ll3=_De3;_jl3._pO=_PS.id;_jl3._il3=true;this._Fe3[_Ge3(_G31)]=_jl3;}}else if((_Ee3._ml3!=-1)&&(_Ee3._pO==-1)){var _PS=null;if(_YM==-1){_PS=_143(_Ee3._ml3,0,0,0,this);}else {_PS=_343(_Ee3._ml3,0,0,_YM,this);}if(_PS!=null){_Ee3._pO=_PS.id;}}}_G31.pop();}}_G31.pop();}}}else if(_v4._nH==_u31){var _Mj3=_v4;this._H31(_Mj3._yi3(),_hl3,_rM,_YM);this._H31(_Mj3._Ai3(),_hl3,_rM,_YM);}else if(_v4._nH==_T21){var _Nj3=_v4;if(_Nj3._uN!=null){var _Lj3=_Nj3._uN._JO;for(var i=0;i<_Lj3;i++){var _TG=_Nj3._uN._NO[i];_G31.push(_TG);
for(var _Ce3 in _TG._Jl){var _De3=_TG._Jl[_Ce3];_G31.push(_De3);if(_De3._Wx!=-1){var _G21=_xC._NP(_De3._Wx);if(_G21!=null){_G31.push(_G21);this._H31(_G21._rN,_hl3,_rM,_YM);_G31.pop();}}_G31.pop();}_G31.pop();}}}this._H31(_v4._rN,_hl3,_rM,_YM);_G31.pop();}};_E31.prototype._nl3=function(){{for(var key in this._Fe3){var _Ee3=this._Fe3[key];if((_Ee3._il3==true)&&(_Ee3._pO>=0)){var _9o=_Fx._G33(_Ee3._pO);if(_9o!=null){_qI(_9o);_Ee3._pO=-1;}}}}};_E31.prototype._ak3=function(_rd3){for(var _Bf2=0;_Bf2<_rd3.length;
++_Bf2){var _v4=_rd3[_Bf2];_G31.push(_v4);if(_v4._nH==_U21){var _ol3=_v4;if(_ol3._uN!=null){var _Lj3=_ol3._uN._JO;for(var i=0;i<_Lj3;i++){var _TG=_ol3._uN._NO[i];_G31.push(_TG);for(var _Ce3 in _TG._Jl){var _De3=_TG._Jl[_Ce3];if(_De3._fj3!=-1){_G31.push(_De3);var _3l3=this._4l3[_Ge3(_G31)];if(_3l3==null){var emitter=audio_emitter_create();if(audio_emitter_exists(emitter)===true){var _pl3=new _ql3();_pl3._7l3=emitter;this._4l3[_Ge3(_G31)]=_pl3;}}_G31.pop();}}_G31.pop();}}}else if(_v4._nH==_u31){var _Mj3=_v4;this._ak3(_Mj3._yi3());
this._ak3(_Mj3._Ai3());}else if(_v4._nH==_T21){var _Nj3=_v4;if(_Nj3._uN!=null){var _Lj3=_Nj3._uN._JO;for(var i=0;i<_Lj3;i++){var _TG=_Nj3._uN._NO[i];_G31.push(_TG);for(var _Ce3 in _TG._Jl){var _De3=_TG._Jl[_Ce3];_G31.push(_De3);if(_De3._Wx!=-1){var _G21=_xC._NP(_De3._Wx);if(_G21!=null){_G31.push(_G21);this._ak3(_G21._rN);_G31.pop();}}_G31.pop();}_G31.pop();}}}this._ak3(_v4._rN);_G31.pop();}};_E31.prototype._Rj3=function(){{for(var key in this._Fe3){var _Ee3=this._Fe3[key];if(_Ee3._pO>=0){var _9o=_Fx._G33(_Ee3._pO);
if(_9o!=null){_9o._C13(false);_9o._H13(false);_9o._F13(null);if(_Ee3._il3==true){_qI(_9o);}_Ee3._pO=-1;}}}}};_E31.prototype._Sj3=function(){{for(var key in this._4l3){var _rV2=this._4l3[key];if(audio_emitter_exists(_rV2._7l3)===true){audio_stop_sound(_rV2._5l3);audio_emitter_free(_rV2._7l3);_rV2._7l3=-1;_rV2._5l3=-1;}}}};_E31.prototype._Tj3=function(){for(var _0l in this._Me3){var _qC=this._Me3[_0l];if(_qC!=-1){_zW(_qC);}}this._Me3={};this._Ke3={};};_E31.prototype._ik3=function(_rl3){{for(var key in this._Fe3){
var _Ee3=this._Fe3[key];if(_Ee3._pO>=0){var _9o=_Fx._G33(_Ee3._pO);if(_9o!=null){_9o._C13(_rl3);if(_rl3==true){_9o._F13(this);}else {_9o._F13(null);}}}}}};/*@constructor */function _ql3(){this._5l3=-1;this._6l3=1;this._7l3=-1;}/*@constructor */function _sl3(){this._E_2=new _qr();this._Gk3=-1;this._tl3=0;this._Yi3=new _GK();this._6f3=new _GK();this.x=0;this.y=0;this.rotation=0;this.scaleX=1;this.scaleY=1;this.xOrigin=0;this.yOrigin=0;this.gain=1;this.pitch=1;this._0j3=100;this._1j3=10000;this._2j3=1;this.imageIndex=0;
this.imageSpeed=1;this._Nd3=-1;this._Rd3=[];this._Rd3[0]=1;this._Rd3[1]=1;this._Rd3[2]=1;this._Rd3[3]=1;this._Sd3=[];this._Sd3[0]=0;this._Sd3[1]=0;this._Sd3[2]=0;this._Sd3[3]=0;this.spriteIndex=-1;this._pO=_Sn;this.particleSystemIndex=-1;this._493=-1;this.soundIndex=-1;this._Pj3=null;this._Wk3=-1;this._8f3=0;this._9f3=0;this._bf3=0;this._df3=0;this._ff3=0;this._gf3=new _zV2();}_sl3.prototype._Vi3=function(_Ui3){this._Yi3._pZ1(_Ui3);};_sl3.prototype._ul3=function(){this.x=0;this.y=0;this.rotation=0;
this.scaleX=1;this.scaleY=1;this.xOrigin=0;this.yOrigin=0;this.gain=1;this.pitch=1;this._0j3=100;this._1j3=10000;this._2j3=1;this.imageIndex=0;this.imageSpeed=1;this._Nd3=-1;this._Rd3[0]=1;this._Rd3[1]=1;this._Rd3[2]=1;this._Rd3[3]=1;this._Sd3[0]=0;this._Sd3[1]=0;this._Sd3[2]=0;this._Sd3[3]=0;this._8f3=0;this._9f3=0;this._bf3=0;this._df3=0;this._ff3=0;this._tl3=0;this._Yi3._gZ1();this._6f3._gZ1();};_sl3.prototype._Wi3=function(){this._tl3=0;};_sl3.prototype._3j3=function(_a4,_Ol){switch(_a4){case _Zg3:if(_Ol)this._tl3|=(1<<0);
else this._tl3&=~(1<<0);break;case __g3:if(_Ol)this._tl3|=(1<<1);else this._tl3&=~(1<<1);break;case _Ld3:if(_Ol)this._tl3|=(1<<2);else this._tl3&=~(1<<2);break;case _Od3:if(_Ol)this._tl3|=(1<<3);else this._tl3&=~(1<<3);break;}};_sl3.prototype._Kd3=function(_a4){switch(_a4){case _Zg3:return(this._tl3&(1<<0))!=0;case __g3:return(this._tl3&(1<<1))!=0;case _Ld3:return(this._tl3&(1<<2))!=0;case _Od3:return(this._tl3&(1<<3))!=0;}};/*@constructor */function _vl3(_pg1){_AL2.call(this);this.__type="[TrackEvalNode]";
this._Fk3=null;this.value=new _sl3();this.__h3=_pg1!==undefined?_pg1:null;this._Uv1=null;this._Cd3=null;Object.defineProperties(this,{gmlmatrix:{enumerable:true,get :function(){var _wl3=new _qr();_wl3.__i(this.value._E_2);return _wl3._e7;},set :function(_k4){if((_k4 instanceof Array||_k4 instanceof Float32Array)&&_k4.length==16){this.value._E_2._fs();for(var i=0;i<16;++i){this.value._E_2._e7[i]=yyGetReal(_k4[i]);}this.value._6f3._RP(_SP);this.value._6f3._RP(_UP);this.value._6f3._RP(_VP);}else {throw new Error("value must be an array of numbers and of length 16");
}}},gmlposx:{enumerable:true,get :function(){return this.value.x;},set :function(_k4){this.value.x=yyGetReal(_k4);this.value._E_2._fs();_hh3(this.value._E_2,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);this.value._6f3._RP(_SP);}},gmlposy:{enumerable:true,get :function(){return this.value.y;},set :function(_k4){this.value.y=yyGetReal(_k4);this.value._E_2._fs();_hh3(this.value._E_2,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,
this.value.rotation,this.value.xOrigin,this.value.yOrigin);this.value._6f3._RP(_SP);}},gmlrotation:{enumerable:true,get :function(){return this.value.rotation;},set :function(_k4){this.value.rotation=yyGetReal(_k4);this.value._E_2._fs();_hh3(this.value._E_2,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);this.value._6f3._RP(_UP);}},gmlscalex:{enumerable:true,get :function(){return this.value.scaleX;},set :function(_k4){this.value.scaleX=yyGetReal(_k4);
this.value._E_2._fs();_hh3(this.value._E_2,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);this.value._6f3._RP(_VP);}},gmlscaley:{enumerable:true,get :function(){return this.value.scaleY;},set :function(_k4){this.value.scaleY=yyGetReal(_k4);this.value._E_2._fs();_hh3(this.value._E_2,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);this.value._6f3._RP(_VP);
}},gmlxorigin:{enumerable:true,get :function(){return this.value.xOrigin;},set :function(_k4){this.value.xOrigin=yyGetReal(_k4);this.value._3j3(_Zg3,true);this.value._E_2._fs();_hh3(this.value._E_2,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);this.value._6f3._RP(_Zg3);}},gmlyorigin:{enumerable:true,get :function(){return this.value.yOrigin;},set :function(_k4){this.value.yOrigin=yyGetReal(_k4);this.value._3j3(__g3,true);this.value._E_2._fs();
_hh3(this.value._E_2,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);this.value._6f3._RP(__g3);}},gmlgain:{enumerable:true,get :function(){return this.value.gain;},set :function(_k4){this.value.gain=yyGetReal(_k4);this.value._6f3._RP(_tg3);}},gmlpitch:{enumerable:true,get :function(){return this.value.pitch;},set :function(_k4){this.value.pitch=yyGetReal(_k4);this.value._6f3._RP(_ug3);}},gmlfalloffRef:{enumerable:true,get :function(){
return this.value._0j3;},set :function(_k4){this.value._0j3=yyGetInt32(_k4);this.value._6f3._RP(_vg3);}},gmlfalloffMax:{enumerable:true,get :function(){return this.value._1j3;},set :function(_k4){this.value._1j3=yyGetInt32(_k4);this.value._6f3._RP(_vg3);}},gmlfalloffFactor:{enumerable:true,get :function(){return this.value._2j3;},set :function(_k4){this.value._2j3=yyGetInt32(_k4);this.value._6f3._RP(_vg3);}},gmlimageindex:{enumerable:true,get :function(){return this.value.imageIndex;},set :function(_k4){this.value.imageIndex=yyGetInt32(_k4);
this.value._3j3(_Od3,true);this.value._6f3._RP(_Od3);}},gmlimagespeed:{enumerable:true,get :function(){return this.value.imageSpeed;},set :function(_k4){this.value.imageSpeed=yyGetReal(_k4);this.value._3j3(_Ld3,true);this.value._6f3._RP(_Ld3);}},gmlcolormultiply:{enumerable:true,get :function(){_xl3=[];_xl3[0]=yyGetReal(this.value._Rd3[3]);_xl3[1]=yyGetReal(this.value._Rd3[0]);_xl3[2]=yyGetReal(this.value._Rd3[1]);_xl3[3]=yyGetReal(this.value._Rd3[2]);return _xl3;},set :function(_k4){if(_k4 instanceof Array){
this.value._Rd3[0]=yyGetReal(_k4[1]);this.value._Rd3[1]=yyGetReal(_k4[2]);this.value._Rd3[2]=yyGetReal(_k4[3]);this.value._Rd3[3]=yyGetReal(_k4[0]);}else {var _55=yyGetInt32(_k4);this.value._Rd3[0]=(_55&0xff)/255.0;this.value._Rd3[1]=((_55>>8)&0xff)/255.0;this.value._Rd3[2]=((_55>>16)&0xff)/255.0;this.value._Rd3[3]=((_55>>24)&0xff)/255.0;}this.value._6f3._RP(_xg3);}},gmlcolourmultiply:{enumerable:true,get :function(){_xl3=[];_xl3[0]=yyGetReal(this.value._Rd3[3]);_xl3[1]=yyGetReal(this.value._Rd3[0]);
_xl3[2]=yyGetReal(this.value._Rd3[1]);_xl3[3]=yyGetReal(this.value._Rd3[2]);return _xl3;},set :function(_k4){if(_k4 instanceof Array){this.value._Rd3[0]=yyGetReal(_k4[1]);this.value._Rd3[1]=yyGetReal(_k4[2]);this.value._Rd3[2]=yyGetReal(_k4[3]);this.value._Rd3[3]=yyGetReal(_k4[0]);}else {var _55=yyGetInt32(_k4);this.value._Rd3[0]=(_55&0xff)/255.0;this.value._Rd3[1]=((_55>>8)&0xff)/255.0;this.value._Rd3[2]=((_55>>16)&0xff)/255.0;this.value._Rd3[3]=((_55>>24)&0xff)/255.0;}this.value._6f3._RP(_xg3);}},gmlcoloradd:{
enumerable:true,get :function(){_xl3=[];_xl3[0]=yyGetReal(this.value._Sd3[3]);_xl3[1]=yyGetReal(this.value._Sd3[0]);_xl3[2]=yyGetReal(this.value._Sd3[1]);_xl3[3]=yyGetReal(this.value._Sd3[2]);return _xl3;},set :function(_k4){if(_k4 instanceof Array){this.value._Sd3[0]=yyGetReal(_k4[1]);this.value._Sd3[1]=yyGetReal(_k4[2]);this.value._Sd3[2]=yyGetReal(_k4[3]);this.value._Sd3[3]=yyGetReal(_k4[0]);}else {var _55=yyGetInt32(_k4);this.value._Sd3[0]=(_55&0xff)/255.0;this.value._Sd3[1]=((_55>>8)&0xff)/255.0;this.value._Sd3[2]=((_55>>16)&0xff)/255.0;
this.value._Sd3[3]=((_55>>24)&0xff)/255.0;}this.value._6f3._RP(_wg3);}},gmlcolouradd:{enumerable:true,get :function(){_xl3=[];_xl3[0]=yyGetReal(this.value._Sd3[3]);_xl3[1]=yyGetReal(this.value._Sd3[0]);_xl3[2]=yyGetReal(this.value._Sd3[1]);_xl3[3]=yyGetReal(this.value._Sd3[2]);return _xl3;},set :function(_k4){if(_k4 instanceof Array){this.value._Sd3[0]=yyGetReal(_k4[1]);this.value._Sd3[1]=yyGetReal(_k4[2]);this.value._Sd3[2]=yyGetReal(_k4[3]);this.value._Sd3[3]=yyGetReal(_k4[0]);}else {var _55=yyGetInt32(_k4);
this.value._Sd3[0]=(_55&0xff)/255.0;this.value._Sd3[1]=((_55>>8)&0xff)/255.0;this.value._Sd3[2]=((_55>>16)&0xff)/255.0;this.value._Sd3[3]=((_55>>24)&0xff)/255.0;}this.value._6f3._RP(_wg3);}},gmlspriteIndex:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_R21)){return this.value.spriteIndex;}else {return -1;}}},gmlinstanceID:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_S21)){return this.value._pO;}else {return _Sn;}}},gmlemitterIndex:{enumerable:true,get :function(){
if((this._Fk3!=null)&&(this._Fk3._nH==_U21)){return this.value._493;}else {return -1;}}},gmlsoundIndex:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_U21)){return this.value.soundIndex;}else {return -1;}}},gmlsequence:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_T21)){return this.value._Pj3;}else {return -1;}}},gmlsequenceID:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_T21)){return this.value._Wk3;}else {return -1;}}},gmlframeSizeX:{
enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){return this.value._8f3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){this.value._8f3=yyGetReal(_k4);this.value._6f3._RP(_7f3);}}},gmlframeSizeY:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){return this.value._9f3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){this.value._9f3=yyGetReal(_k4);this.value._6f3._RP(_7f3);}}},gmlcharacterSpacing:{
enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){return this.value._bf3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){this.value._bf3=yyGetReal(_k4);this.value._6f3._RP(_af3);}}},gmllineSpacing:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){return this.value._df3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){this.value._df3=yyGetReal(_k4);this.value._6f3._RP(_cf3);}}},gmlparagraphSpacing:{
enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){return this.value._ff3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){this.value._ff3=yyGetReal(_k4);this.value._6f3._RP(_ef3);}}},gmlthickness:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3._AV2;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();
this.value._gf3._AV2=yyGetReal(_k4);this.value._6f3._RP(_Dg3);}}},gmlcoreColor:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){_xl3=[];_xl3[0]=this.value._gf3._CV2;_xl3[1]=(this.value._gf3._BV2&0xff)/255.0;_xl3[2]=((this.value._gf3._BV2>>8)&0xff)/255.0;_xl3[3]=((this.value._gf3._BV2>>16)&0xff)/255.0;return _xl3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();
if(_k4 instanceof Array){this.value._gf3._CV2=yyGetReal(_k4[0]);this.value._gf3._BV2=(yyGetReal(_k4[1])*255.0)&0xff;this.value._gf3._BV2|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;this.value._gf3._BV2|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;}else {var _55=yyGetInt32(_k4);this.value._gf3._CV2=(_55&0xff)*255.0;this.value._gf3._BV2=((_55&0xff0000)>>16)|(_55&0x00ff00)|((_55&0x0000ff)<<16);}this.value._6f3._RP(_Eg3);}}},gmlcoreColour:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){
_xl3=[];_xl3[0]=this.value._gf3._CV2;_xl3[1]=(this.value._gf3._BV2&0xff)/255.0;_xl3[2]=((this.value._gf3._BV2>>8)&0xff)/255.0;_xl3[3]=((this.value._gf3._BV2>>16)&0xff)/255.0;return _xl3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();if(_k4 instanceof Array){this.value._gf3._CV2=yyGetReal(_k4[0]);this.value._gf3._BV2=(yyGetReal(_k4[1])*255.0)&0xff;this.value._gf3._BV2|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;
this.value._gf3._BV2|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;}else {var _55=yyGetInt32(_k4);this.value._gf3._CV2=(_55&0xff)*255.0;this.value._gf3._BV2=((_55&0xff0000)>>16)|(_55&0x00ff00)|((_55&0x0000ff)<<16);}this.value._6f3._RP(_Eg3);}}},gmlglowStart:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3._EV2;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();
this.value._gf3._EV2=yyGetReal(_k4);this.value._6f3._RP(_Fg3);}}},gmlglowEnd:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3._FV2;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();this.value._gf3._FV2=yyGetReal(_k4);this.value._6f3._RP(_Gg3);}}},gmlglowColor:{enumerable:true,get :function(){
if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){_xl3=[];_xl3[0]=this.value._gf3._HV2;_xl3[1]=(this.value._gf3._GV2&0xff)/255.0;_xl3[2]=((this.value._gf3._GV2>>8)&0xff)/255.0;_xl3[3]=((this.value._gf3._GV2>>16)&0xff)/255.0;return _xl3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();if(_k4 instanceof Array){this.value._gf3._HV2=yyGetReal(_k4[0]);
this.value._gf3._GV2=(yyGetReal(_k4[1])*255.0)&0xff;this.value._gf3._GV2|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;this.value._gf3._GV2|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;}else {var _55=yyGetInt32(_k4);this.value._gf3._HV2=(_55&0xff)*255.0;this.value._gf3._GV2=((_55&0xff0000)>>16)|(_55&0x00ff00)|((_55&0x0000ff)<<16);}this.value._6f3._RP(_Hg3);}}},gmlglowColour:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){_xl3=[];_xl3[0]=this.value._gf3._HV2;
_xl3[1]=(this.value._gf3._GV2&0xff)/255.0;_xl3[2]=((this.value._gf3._GV2>>8)&0xff)/255.0;_xl3[3]=((this.value._gf3._GV2>>16)&0xff)/255.0;return _xl3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();if(_k4 instanceof Array){this.value._gf3._HV2=yyGetReal(_k4[0]);this.value._gf3._GV2=(yyGetReal(_k4[1])*255.0)&0xff;this.value._gf3._GV2|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;this.value._gf3._GV2|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;
}else {var _55=yyGetInt32(_k4);this.value._gf3._HV2=(_55&0xff)*255.0;this.value._gf3._GV2=((_55&0xff0000)>>16)|(_55&0x00ff00)|((_55&0x0000ff)<<16);}this.value._6f3._RP(_Hg3);}}},gmloutlineDist:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3._JV2;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();
this.value._gf3._JV2=yyGetReal(_k4);this.value._6f3._RP(_Ig3);}}},gmloutlineColor:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){_xl3=[];_xl3[0]=this.value._gf3._LV2;_xl3[1]=(this.value._gf3._KV2&0xff)/255.0;_xl3[2]=((this.value._gf3._KV2>>8)&0xff)/255.0;_xl3[3]=((this.value._gf3._KV2>>16)&0xff)/255.0;return _xl3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();
if(_k4 instanceof Array){this.value._gf3._LV2=yyGetReal(_k4[0]);this.value._gf3._KV2=(yyGetReal(_k4[1])*255.0)&0xff;this.value._gf3._KV2|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;this.value._gf3._KV2|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;}else {var _55=yyGetInt32(_k4);this.value._gf3._LV2=(_55&0xff)*255.0;this.value._gf3._KV2=((_55&0xff0000)>>16)|(_55&0x00ff00)|((_55&0x0000ff)<<16);}this.value._6f3._RP(_Jg3);}}},gmloutlineColour:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){
_xl3=[];_xl3[0]=this.value._gf3._LV2;_xl3[1]=(this.value._gf3._KV2&0xff)/255.0;_xl3[2]=((this.value._gf3._KV2>>8)&0xff)/255.0;_xl3[3]=((this.value._gf3._KV2>>16)&0xff)/255.0;return _xl3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();if(_k4 instanceof Array){this.value._gf3._LV2=yyGetReal(_k4[0]);this.value._gf3._KV2=(yyGetReal(_k4[1])*255.0)&0xff;this.value._gf3._KV2|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;
this.value._gf3._KV2|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;}else {var _55=yyGetInt32(_k4);this.value._gf3._LV2=(_55&0xff)*255.0;this.value._gf3._KV2=((_55&0xff0000)>>16)|(_55&0x00ff00)|((_55&0x0000ff)<<16);}this.value._6f3._RP(_Jg3);}}},gmlshadowSoftness:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3._NV2;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();
this.value._gf3._NV2=yyGetReal(_k4);this.value._6f3._RP(_Kg3);}}},gmlshadowOffsetX:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3.shadowOffsetX;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();this.value._gf3.shadowOffsetX=yyGetReal(_k4);this.value._6f3._RP(_Lg3);}}},gmlshadowOffsetY:{
enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3.shadowOffsetY;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();this.value._gf3.shadowOffsetY=yyGetReal(_k4);this.value._6f3._RP(_Lg3);}}},gmlshadowColor:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){
_xl3=[];_xl3[0]=this.value._gf3._PV2;_xl3[1]=(this.value._gf3._OV2&0xff)/255.0;_xl3[2]=((this.value._gf3._OV2>>8)&0xff)/255.0;_xl3[3]=((this.value._gf3._OV2>>16)&0xff)/255.0;return _xl3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();if(_k4 instanceof Array){this.value._gf3._PV2=yyGetReal(_k4[0]);this.value._gf3._OV2=(yyGetReal(_k4[1])*255.0)&0xff;this.value._gf3._OV2|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;
this.value._gf3._OV2|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;}else {var _55=yyGetInt32(_k4);this.value._gf3._PV2=(_55&0xff)*255.0;this.value._gf3._OV2=((_55&0xff0000)>>16)|(_55&0x00ff00)|((_55&0x0000ff)<<16);}this.value._6f3._RP(_Mg3);}}},gmlshadowColour:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){_xl3=[];_xl3[0]=this.value._gf3._PV2;_xl3[1]=(this.value._gf3._OV2&0xff)/255.0;_xl3[2]=((this.value._gf3._OV2>>8)&0xff)/255.0;
_xl3[3]=((this.value._gf3._OV2>>16)&0xff)/255.0;return _xl3;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();if(_k4 instanceof Array){this.value._gf3._PV2=yyGetReal(_k4[0]);this.value._gf3._OV2=(yyGetReal(_k4[1])*255.0)&0xff;this.value._gf3._OV2|=((yyGetReal(_k4[2])*255.0)&0xff)<<8;this.value._gf3._OV2|=((yyGetReal(_k4[3])*255.0)&0xff)<<16;}else {var _55=yyGetInt32(_k4);this.value._gf3._PV2=(_55&0xff)*255.0;
this.value._gf3._OV2=((_55&0xff0000)>>16)|(_55&0x00ff00)|((_55&0x0000ff)<<16);}this.value._6f3._RP(_Mg3);}}},gmleffectsEnabled:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3.enabled;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();this.value._gf3.enabled=yyGetBool(_k4);}}},gmlglowEnabled:{
enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3._DV2;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();this.value._gf3._DV2=yyGetBool(_k4);}}},gmloutlineEnabled:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){
return this.value._gf3._IV2;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();this.value._gf3._IV2=yyGetBool(_k4);}}},gmldropShadowEnabled:{enumerable:true,get :function(){if((this._Fk3!=null)&&(this._Fk3._nH==_331)&&(this.value._gf3!=undefined)&&(this.value._gf3!=null)){return this.value._gf3._MV2;}else {return -1;}},set :function(_k4){if((this._Fk3!=null)&&(this._Fk3._nH==_331)){if((this.value._gf3==undefined)||(this.value._gf3==null))this.value._gf3=new _zV2();
this.value._gf3._MV2=yyGetBool(_k4);}}},gmltrack:{enumerable:true,get :function(){return this._Fk3;}},gmlparent:{enumerable:true,get :function(){return this.__h3;}},gmlactiveTracks:{enumerable:true,get :function(){var _fl3=[];_gl3=this._Cd3;while(_gl3!=null){_fl3.push(_gl3);_gl3=_gl3._Uv1;}return _fl3;}},});};/*@constructor */function _kl3(){this._ll3=null;this._ml3=-1;this._pO=-1;this._il3=false;};function _Ek3(_yk3,_yl3,_zl3){var _W33={};if(_yl3==null){var _nl=new _vl3();if(_zl3==null){if(_yk3 instanceof _E31){
_yk3._9d3=_nl;}else {_yk3._Cd3=_nl;}}else {_zl3._Uv1=_nl;}if(_yk3 instanceof _E31){_nl.__h3=null;}else {_nl.__h3=_yk3;}_W33._nl=_nl;_W33._Zk=null;}else {_W33._nl=_yl3;_W33._Zk=_yl3._Uv1;}return _W33;};var _d61=[];function _Al3(_Bl3){}function _Cl3(_zg1){try{var _Dl3=new Audio();if(_Dl3.canPlayType('audio/mpeg')=="probably")_zg1(true);_Dl3.addEventListener('canplaythrough',function(e){_zg1(true);},false);_Dl3.addEventListener('error',function(e){_zg1(false,this.error);},false);_Dl3.src="data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
_Dl3.load();}catch(e){_zg1(false,e);}}/*@constructor */function _El3(){this.__type="[sound]";this.pName="";this.kind=0;this.extension="";this.origName="";this.effects=0;this.volume=1;this.pan=0;this.preload=true;this._Fl3=1.0;this._5l3=0;this._Ca1=[];}_El3.prototype._Gl3=function(_zL2){this.pName=_zL2.pName;this.kind=_zL2.kind;this.extension=_zL2.extension;this.origName=_zL2.origName;this.effects=_zL2.effects;this.volume=_zL2.volume;this.pan=_zL2.pan;this.preload=_zL2.preload;this._Fl3=this.volume;
this._291(this.pName);};_El3.prototype._291=function(_LI2){this._5l3=0;this._Ca1=[];var _Hl3=_d61[this.pName];if(_Hl3){if(_wG2>1&&typeof _Hl3.cloneNode==="function"){for(var i=0;i<_wG2;i++)this._Ca1[i]=_Hl3.cloneNode(true);}else {_wG2=1;this._Ca1[0]=_Hl3;}}};var _Il3=false;function _ya1(__F,_yg,_I81,_UF,_Xo2){__F=_871(__F);if(_Q81==false){return undefined;}var _Jl3=false;var pName=__F;var _971;var index;index=__F.indexOf(_I81);if(index>0){__F=__F.substr(0,index);}if(_a71){_I81="ogg";}else if(_b71){_I81="mp3";
}else {_I81="ogg";}_Jl3=true;if(_Jl3){__F=__F+"."+_I81;try{var _Kl3=new Audio();_Kl3.URL=__F;_Kl3._Fl3=1.0;_Kl3.autobuffer=true;if(typeof _Kl3.loop=='boolean')_Kl3.loop=false;_Kl3.preload='auto';_Kl3._RI2=false;_Kl3._Ll3=false;var _kk=document.createElement('source');_kk.setAttribute("src",__F);if(_I81=="ogg"){_kk.setAttribute("type",'audio/ogg');_kk.setAttribute("codecs",'vorbis');}else {_kk.setAttribute("type",'audio/mpeg');}_Kl3.setAttribute("networkState",0);_Kl3.insertBefore(_kk,null);document.body.appendChild(_Kl3);
_d61[pName]=_Kl3;_Kl3.addEventListener('canplaythrough',_UF,false);_Kl3.addEventListener('error',_Xo2,false);_Kl3.addEventListener("loadstart",_OI2,false);_Kl3.addEventListener("suspend",_PI2,false);_Kl3.addEventListener("stalled",_QI2,false);_Kl3.addEventListener("stall",_QI2,false);_Kl3.load();}catch(e){if(_eG==_4B2&&_Il3==false){var _Ml3=navigator;_Il3=true;var _Nl3=_Ml3.userAgent.indexOf("Windows");if(_Nl3!=-1){alert("Audio Error: Please ensure that quicktime is installed");}}}}return _yg;}/*@constructor */function _wI2(){
this.Sounds=[];this.length=0;}_wI2.prototype._pl=function(_s4){if(this.Sounds[_s4]){this._ia1(_s4);this.Sounds[_s4]=undefined;}};/*@this {yySound} */function _Ol3(){this._Ll3=false;}_wI2.prototype._Pl3=function(_s4){try{var _Ql3=this.Sounds[_s4];if(!_Ql3)return null;var _Rl3=_Ql3._Ca1[this.Sounds[_s4]._5l3];this.Sounds[_s4]._5l3++;if(this.Sounds[_s4]._5l3>=_wG2){this.Sounds[_s4]._5l3=0;}return _Rl3;}catch(e){debug("Sound buffer unavailable for sound: "+_s4);}return null;};_wI2.prototype._ea1=function(_s4){
var _Ql3=this._Pl3(_s4);if(_Ql3!=null){try{if(_Ql3._Ll3)return;var buffered=_Ql3.buffered;var _Sl3=_Ql3.buffered.length;var i;for(i=0;i<_Sl3;i++){var start=_Ql3.buffered.start(i);var end=_Ql3.buffered.end(i);}_Ql3.removeEventListener('ended',_Tl3,false);_Ql3.removeEventListener('ended',_Ol3,false);if(typeof _Ql3.loop=='boolean'){_Ql3.loop=false;}try{if(_Ql3.currentTime!=0){_Ql3.currentTime=0;}}catch(_Oj){if(_F81)debug("Error setting current sound time: "+this.Sounds[_s4].pName);}_Ql3.volume=this.Sounds[_s4]._Fl3*_lH2;
_Ql3.addEventListener('ended',_Ol3,false);_Ql3._Ll3=true;_Ql3.play();}catch(_Oj){if(_F81)debug("Error playing sound: "+this.Sounds[_s4].pName);}}};_wI2.prototype._ia1=function(_wd){{var _Ul3=this.Sounds[_wd];if(!_Ul3)return;_Ul3=_Ul3._Ca1;for(var i=0;i<_Ul3.length;i++){var _Ql3=_Ul3[i];if(_Ql3!=null){try{_Ql3.pause();_Ql3._Ll3=false;}catch(_Oj){if(_F81)debug("Error stopping sound: "+this.Sounds[_wd].pName);}}}}};_wI2.prototype._ka1=function(){for(var _Vl3=0;_Vl3<this.Sounds.length;_Vl3++){if(this.Sounds[_Vl3]){
var _Ul3=this.Sounds[_Vl3]._Ca1;for(var i=0;i<_Ul3.length;i++){var _Ql3=_Ul3[i];if(_Ql3!=null){try{_Ql3.pause();_Ql3._Ll3=false;}catch(_Oj){if(_F81)debug("Error stopping sound: "+_Ql3.pName);}}}}}};_wI2.prototype._qa1=function(_Wl3){_lH2=_Wl3;for(var _Vl3=0;_Vl3<this.Sounds.length;_Vl3++){if(this.Sounds[_Vl3]){var _Ul3=this.Sounds[_Vl3]._Ca1;for(var i=0;i<_Ul3.length;i++){var _Ql3=_Ul3[i];if(_Ql3!=null){try{_Ql3.volume=_Ql3._Fl3*_lH2;}catch(_Oj){if(_F81)debug("Error setting volume: "+this.Sounds[_Vl3].pName);
}}}}}};/*@this {yySound} */function _Tl3(){try{this.currentTime=0;}catch(_Oj){if(_F81)debug("Error in Repeat_Sound_Callback: "+_Oj.message);}this.play();}_wI2.prototype._ga1=function(_s4){var _Ql3=this._Pl3(_s4);if(_Ql3!=null){try{if(typeof _Ql3.loop=='boolean'){_Ql3.loop=true;}else {_Ql3.removeEventListener('ended',_Tl3,false);_Ql3.removeEventListener('ended',_Ol3,false);_Ql3.addEventListener('ended',_Tl3,false);_Ql3.onended=null;}try{if(_Ql3.currentTime!=0){_Ql3.currentTime=0;}}catch(_Oj){if(_F81){
debug("Error setting current sound time: "+this.Sounds[_s4].pName);}}_Ql3.volume=this.Sounds[_s4]._Fl3*_lH2;_Ql3._Ll3=true;_Ql3.play();}catch(_Oj){if(_F81){debug("Error looping sound: "+this.Sounds[_s4].pName);}}}};_wI2.prototype._oa1=function(_wd,_Xl3){var _Ul3=this.Sounds[_wd];if(!_Ul3)return;_Ul3=_Ul3._Ca1;for(var i=0;i<_Ul3.length;i++){var _Ql3=_Ul3[i];if(_Ql3!=null){try{this.Sounds[_wd]._Fl3=_Xl3;_Ql3.volume=_Xl3*_lH2;}catch(_Oj){if(_F81)debug("Error volume: "+this.Sounds[_wd].pName);}}}};_wI2.prototype._sa1=function(_s4,
_Xl3,_T6){var _S71=this.Sounds[_s4];if(!_S71)return;var _Ul3=_S71._Ca1;for(var i=0;i<_Ul3.length;i++){var _Ql3=_Ul3[i];if(_Ql3!=null&&_Ql3._Ll3){try{var _Yl3=50;var _Zl3=_S71._Fl3;var __l3=_Xl3;var _0m3=Math.abs(_Zl3-__l3)/(_T6/_Yl3);function _1m3(_2m3){setTimeout(function(){var _3m3;if((_Zl3<__l3)&&(_Ql3.volume<__l3)){_3m3=_S71._Fl3+_0m3;}else if((_Zl3>__l3)&&(_Ql3.volume>__l3)){_3m3=_S71._Fl3-_0m3;}else {return;}if(_3m3<0){_3m3=0;}if(_3m3>1){_3m3=1;}_S71._Fl3=_3m3;_2m3.volume=_3m3*_lH2;_1m3(_2m3);},_Yl3);
}_1m3(_Ql3);}catch(_Oj){if(_F81)debug("Error volume: "+_S71.pName);}}}};_wI2.prototype._ma1=function(_wd){var _Ul3=this.Sounds[_wd];if(!_Ul3)return;_Ul3=_Ul3._Ca1;var playing=false;for(var i=0;i<_Ul3.length;i++){var _Ql3=_Ul3[i];if(_Ql3!=null){try{if(_Ql3._Ll3){playing=true;break;}}catch(_Oj){if(_F81)debug("Error checking play state: "+this.Sounds[_wd].pName);}}}return playing;};_wI2.prototype._n6=function(_s4){if(_s4<0||_s4>=this.Sounds.length)return null;return this.Sounds[_s4];};_wI2.prototype._tC=function(){
var ids=[];for(var i=0;i<this.Sounds.length;++i){if(this.Sounds[i]){ids.push(i);}}return ids;};_wI2.prototype._ag=function(){this.Sounds=[];this.Sounds.length=0;};_wI2.prototype._Vf=function(_zL2){var _3m=null;if(_zL2!=null){_3m=new _El3();_3m._Gl3(_zL2);}this.Sounds[this.Sounds.length]=_3m;};_wI2.prototype._7a1=function(){var _za1=new _El3();this.Sounds[this.Sounds.length]=_za1;return this.Sounds.length-1;};var _RJ=0,_f4=1,_Hj3=2;var _4m3=2147483647;var _5m3=false;function gpu_set_sprite_cull(_xr){_5m3=yyGetBool(_xr)?false:true;
}function gpu_get_sprite_cull(){return _5m3?false:true;}var _5b1={_6b1:0,_pb1:1,_m23:2,_sb1:3,};/*@constructor */function _QH(){this.x=0;this.y=0;};/*@constructor */function _bH(){this._G5=0;this._H5=0;};/*@constructor */function _yx(){this.left=0;this.top=0;this.right=0;this.bottom=0;};_yx.prototype.__i=function(_Cb1){this.left=_Cb1.left;this.right=_Cb1.right;this.top=_Cb1.top;this.bottom=_Cb1.bottom;};/*@constructor */function _2b1(){this.__type="[sprite]";this.pName="sprite";this.width=16;this.height=16;
this._XH=new _yx;this.transparent=true;this.smooth=true;this.preload=true;this._Ka1=0;this._4b1=_5b1._6b1;this.xOrigin=0;this.yOrigin=0;this._Am=false;this._n7=0;this._bb1=8;this._7b1=false;this._8b1=false;this._o7=[];this._6m3=[];this._l5=[];this.Masks=[];this.playbackspeedtype=_RJ;this.playbackspeed=30;this.sequence=null;this._Vb1=null;this._7m3=false;this._eb1=false;};_2b1.prototype._RH=function(){return this._4b1===_5b1._pb1;};_2b1.prototype._8m3=function(){return this.xOrigin;};_2b1.prototype._9m3=function(){
return this.yOrigin;};_2b1.prototype._Z6=function(){return this._XH;};_2b1.prototype._m5=function(){return this._n7;};_2b1.prototype._tF=function(){return this.width;};_2b1.prototype._uF=function(){return this.height;};var _am3=function(x){return ~~x;};/*
 * @param {spine.Skeleton} _skeleton
 *
 * @returns {[width: Number, height: Number]?}
 */_2b1.prototype._bm3=function(_7a){var _ni=new _yx();_7a._k6();if(this._cm3(_7a,_ni)){var width=_am3(_ni.right-_ni.left+0.5);var height=_am3(_ni.bottom-_ni.top+0.5);
return [width,height];}var skins=_7a.data.skins;for(var i=0;i<skins.length;++i){_7a._F4(skins[i]);_7a._k6();if(this._cm3(_7a,_ni)){var width=_am3(_ni.right-_ni.left+0.5);var height=_am3(_ni.bottom-_ni.top+0.5);return [width,height];}}return null;};_2b1.prototype._dm3=function(_7a){var _ni=new _yx();_7a._k6();if(this._cm3(_7a,_ni)){return _ni;}var skins=_7a.data.skins;for(var i=0;i<skins.length;++i){_7a._F4(skins[i]);_7a._k6();if(this._cm3(_7a,_ni)){return _ni;}}return null;};/*
 * @param {spine.Skeleton} _skeleton
 * @param {YYRECT} _bounds
 *
 * @returns {Boolean}
 */_2b1.prototype._cm3=function(_7a,
_C6){var _W33=false;_C6.left=Number.MAX_SAFE_INTEGER;_C6.top=Number.MAX_SAFE_INTEGER;_C6.right=Number.MIN_SAFE_INTEGER;_C6.bottom=Number.MIN_SAFE_INTEGER;var drawOrder=_7a.drawOrder;for(var i=0;i<drawOrder.length;++i){var slot=drawOrder[i];if(slot.attachment){if(slot.attachment instanceof spine.__9){var _E5=slot.attachment;var vertices=new Array(8);_E5._va(slot.bone,vertices,0,2);for(var _J6=0;_J6<4;++_J6){var _em3=vertices[(_J6*2)+0];var _fm3=vertices[(_J6*2)+1];_C6.left=_am3(Math.min(_C6.left,_em3));_C6.right=_am3(Math.max(_C6.right,
_em3));_C6.top=_am3(Math.min(_C6.top,_fm3));_C6.bottom=_am3(Math.max(_C6.bottom,_fm3));_W33=true;}}else if(slot.attachment instanceof spine._1a){var _Aa=slot.attachment;var vertices=new Array(_Aa._Ba);_Aa._va(slot,0,_Aa._Ba,vertices,0,2);var _ra=_Aa._Ba>>1;for(var _J6=0;_J6<_ra;++_J6){var _em3=vertices[(_J6*2)+0];var _fm3=vertices[(_J6*2)+1];_C6.left=_am3(Math.min(_C6.left,_em3));_C6.right=_am3(Math.max(_C6.right,_em3));_C6.top=_am3(Math.min(_C6.top,_fm3));_C6.bottom=_am3(Math.max(_C6.bottom,_fm3));_W33=true;
}}}}return _W33;};_2b1.prototype._qb1=function(_Ka1){if(_Ka1<0||_Ka1>3){return;}if(_Ka1==this._Ka1){return;}this._Ka1=_Ka1;this._U6();this._Qa1();};_2b1.prototype._rb1=function(_XH){if(this._Ka1!=2){return;}if(_XH.left!=this._XH.left||_XH.right!=this._XH.right||_XH.top!=this._XH.top||_XH.bottom!=this._XH.bottom){this._XH.left=_XH.left;this._XH.right=_XH.right;this._XH.top=_XH.top;this._XH.bottom=_XH.bottom;this._Qa1();}};_2b1.prototype._U6=function(){if(this._Ka1==0){var _gm3=100000;var _hm3=-100000;
var _im3=100000;var _jm3=-100000;for(var i=0;i<this._n7;i++){var _Bb1=this._l5[i];var _Gb1=_Hb1(_Bb1);var index=0;for(var _0l=0;_0l<_Bb1.oh;_0l++){for(var _J6=0;_J6<_Bb1.ow;_J6++){var index=((_0l*_Bb1.ow+_J6)*4)+3;if(index<_Gb1.length){if(_Gb1[index]>_ob1){if(_J6<_gm3)_gm3=_J6;if(_J6>_hm3)_hm3=_J6;if(_0l<_im3)_im3=_0l;if(_0l>_jm3)_jm3=_0l;}}}}}if(_gm3==0x7FFFFFFF){this._XH.left=0;this._XH.right=0;this._XH.top=0;this._XH.bottom=0;}else {this._XH.left=_gm3;this._XH.right=_hm3;this._XH.top=_im3;this._XH.bottom=_jm3;
}}else if(this._Ka1==1){if(this._ME){var _ni=this._dm3((new _y3(this._ME))._I3);if(_ni){this._XH=_ni;this._XH.top*=-1.0;this._XH.bottom*=-1.0;}}else {this._XH.left=0;this._XH.right=this.width;this._XH.top=0;this._XH.bottom=this.height;}}};_2b1.prototype._b23=function(_Qm,_Rm){var _km3=new _yx;var _lm3=Math.abs(_Qm);var _mm3=Math.abs(_Rm);var _nm3=new _yx;_nm3.left=this._XH.left;_nm3.right=this._XH.right+1;_nm3.top=this._XH.top;_nm3.bottom=this._XH.bottom+1;if((this._Vb1!=null)&&(this._Vb1._a23())){if((_nm3.left==0)&&(_nm3.top==0)&&(_nm3.right==this.width)&&(_nm3.bottom==this.height)){
_km3.left=0;_km3.top=0;_km3.right=_nm3.right*_lm3;_km3.bottom=_nm3.bottom*_mm3;}else {var _om3=this.width*_lm3;var _pm3=this.height*_mm3;var _qm3=this._Vb1._z63();var _rm3=(this.width-this._Vb1._B63())-this._Vb1._z63();var _sm3=_rm3;var _tm3=this._Vb1._B63();var _um3=this._Vb1._A63();var _vm3=(this.height-this._Vb1._C63())-this._Vb1._A63();var _wm3=_vm3;var _xm3=this._Vb1._C63();if(_om3<_qm3){_qm3=_om3;_sm3=0.0;_tm3=0.0;}else if(_om3<(_qm3+_tm3)){_sm3=0.0;_tm3=_om3-_qm3;}else {_sm3=_om3-(_qm3+_tm3);}if(_pm3<_um3){
_um3=_pm3;_wm3=0.0;_xm3=0.0;}else if(_pm3<(_um3+_xm3)){_wm3=0.0;_xm3=_pm3-_um3;}else {_wm3=_pm3-(_um3+_xm3);}if(_nm3.left<=this._Vb1._z63())_km3.left=_nm3.left;else if(_nm3.left>=((this.width-this._Vb1._B63())))_km3.left=_qm3+_sm3+(_nm3.left-(this.width-this._Vb1._B63()));else {var ratio=(_nm3.left-this._Vb1._z63())/_rm3;_km3.left=_qm3+(_sm3*ratio);}if(_nm3.right<=this._Vb1._z63())_km3.right=_nm3.right;else if(_nm3.right>=((this.width-this._Vb1._B63())))_km3.right=_qm3+_sm3+(_nm3.right-(this.width-this._Vb1._B63()));
else {var ratio=(_nm3.right-this._Vb1._z63())/_rm3;_km3.right=_qm3+(_sm3*ratio);}if(_nm3.top<=this._Vb1._A63())_km3.top=_nm3.top;else if(_nm3.top>=((this.height-this._Vb1._C63())))_km3.top=_um3+_wm3+(_nm3.top-(this.height-this._Vb1._C63()));else {var ratio=(_nm3.top-this._Vb1._A63())/_vm3;_km3.top=_um3+(_wm3*ratio);}if(_nm3.bottom<=this._Vb1._A63())_km3.bottom=_nm3.bottom;else if(_nm3.bottom>=((this.height-this._Vb1._C63())))_km3.bottom=_um3+_wm3+(_nm3.bottom-(this.height-this._Vb1._C63()));else {var ratio=(_nm3.bottom-this._Vb1._A63())/_vm3;
_km3.bottom=_um3+(_wm3*ratio);}_km3.left=_r7(_km3.left,_om3);_km3.right=_r7(_km3.right,_om3);_km3.top=_r7(_km3.top,_pm3);_km3.bottom=_r7(_km3.bottom,_pm3);}_km3.left-=this.xOrigin*_lm3;_km3.right-=this.xOrigin*_lm3;_km3.top-=this.yOrigin*_mm3;_km3.bottom-=this.yOrigin*_mm3;}else {_km3.left=(_nm3.left-this.xOrigin)*_lm3;_km3.right=(_nm3.right-this.xOrigin)*_lm3;_km3.top=(_nm3.top-this.yOrigin)*_mm3;_km3.bottom=(_nm3.bottom-this.yOrigin)*_mm3;}if(_Qm<0.0){_km3.left=-_km3.left;_km3.right=-_km3.right;
}if(_Rm<0.0){_km3.top=-_km3.top;_km3.bottom=-_km3.bottom;}if(_km3.left>_km3.right){var _UN=_km3.left;_km3.left=_km3.right;_km3.right=_UN;}if(_km3.top>_km3.bottom){var _UN=_km3.top;_km3.top=_km3.bottom;_km3.bottom=_UN;}_km3.right-=1;_km3.bottom-=1;return _km3;};_2b1.prototype._La1=function(){var _ym3=(this.yOrigin*this.yOrigin);var _zm3=(this.xOrigin*this.xOrigin);var _Am3=(this.width-this.xOrigin)*(this.width-this.xOrigin);var _Bm3=(this.height-this.yOrigin)*(this.height-this.yOrigin);var _Cm3=~~ceil(sqrt(_zm3+_ym3));
var _Dm3=~~ceil(sqrt(_Am3+_ym3));var _Em3=~~ceil(sqrt(_zm3+_Bm3));var _Fm3=~~ceil(sqrt(_Am3+_Bm3));this._bb1=_q7(_Cm3,_q7(_Dm3,_q7(_Em3,_Fm3)));};_2b1.prototype._Gm3=function(_Hm3,_d5,_e5){try{if(_m6._Im3!==undefined){var _ON2=true;var byteOffset=0;var _Jm3=_m6._Im3[_Hm3];var _nU1=new DataView(_Jm3);if(_nU1!==undefined){var _Km3=_nU1.getInt32(byteOffset,_ON2);var _Lm3=(1<<31);if((_Km3&_Lm3)!=0){_Km3&=(~_Lm3);byteOffset+=4;}byteOffset+=4;var _Mm3=null;if(_Km3>0){_Mm3=new Uint8Array(_Jm3,byteOffset,_Km3);byteOffset+=((_Km3+3)&~3);
}var _Nm3=_nU1.getUint32(byteOffset,_ON2);byteOffset+=4;this._LE=[];for(var i=0;i<_Nm3;i++){var type=_nU1.getInt32(byteOffset,_ON2);byteOffset+=4;var id=_nU1.getInt32(byteOffset,_ON2);byteOffset+=4;var _Om3=null;if(type===_0p2){_Om3=new _9p2(type,id);byteOffset=_Om3._ap2(_nU1,byteOffset,_ON2,this._LE);}else if(type===_1p2){_Om3=new _Co2(type,id);byteOffset=_Om3._Eo2(_Jm3,_nU1,byteOffset,_ON2,_Mm3);}else {_Om3={type:__o2,id:id};}this._LE.push(_Om3);}this._xU2=new _cq2();byteOffset=this._xU2._gq2(_nU1,byteOffset,
_ON2);if(this._xU2._fq2._hq2>0){byteOffset=this._Pm3(_nU1,byteOffset,_ON2);if(!this._7m3){this._4b1=_5b1._pb1;}}else {this.width=this._xU2._P6;this.height=this._xU2._R6;if(!this._7m3){this._4b1=_5b1._6b1;}}if(!this._7m3){this._Ka1=0;this.preload=true;}if(!this._7m3&&this._4b1===_5b1._6b1){this._XH.left=this._xU2._O6;this._XH.right=this._xU2._P6;this._XH.top=this._xU2._Q6;this._XH.bottom=this._xU2._R6;this.xOrigin=_d5;this.yOrigin=_e5;}this._La1();this._Qm3();}}}catch(e){debug("Cannot build SWF data "+e.message);
}};_2b1.prototype._Pm3=function(_Fo2,_Go2,_Ho2){if(this._4b1!==_5b1._pb1){return;}this._o7=[];this.width=this._xU2._fq2._iq2;this.height=this._xU2._fq2._jq2;var _hq2=this._xU2._fq2._hq2;for(var i=0;i<_hq2;i++){var _Rm3=_Fo2.getInt32(_Go2,_Ho2);_Go2+=4;var _Sm3=_Go2;var _Tm3=0;var _nX1=[];for(var _J6=0;_J6<_Rm3;_J6++){var _Um3=_Fo2.getUint8(_Go2,_Ho2);_Go2+=1;var _Vm3=((_Um3)&0x80)!=0?true:false;var _Wm3=((_Um3)&0x7f)+1;for(var _0l=0;_0l<_Wm3;_0l++){_nX1[_Tm3++]=_Vm3;}}var _Gb1=_nX1;var _Db1=this._XH.right-this._XH.left+1;
var _vb1=(_Db1+7)>>3;var _Eb1=this._XH.bottom-this._XH.top+1;var _Fb1=_Eb1*_vb1;var _3z=new Uint8Array(_Fb1);for(var _J6=0;_J6<_Fb1;_J6++)_3z[_J6]=0;var index=0;var _ob1=0;var _Ib1=_Gb1.length;for(var _0l=0;_0l<=_Eb1-1;_0l++){for(var _J6=0;_J6<_vb1;_J6++){var _Jb1=0;var _Kb1=(((_0l)*_Db1)+(_J6)*8);if((_Kb1+0<_Ib1)&&(_Gb1[_Kb1+0])>_ob1)_Jb1|=(1<<7);if((_Kb1+1<_Ib1)&&(_Gb1[_Kb1+1])>_ob1)_Jb1|=(1<<6);if((_Kb1+2<_Ib1)&&(_Gb1[_Kb1+2])>_ob1)_Jb1|=(1<<5);if((_Kb1+3<_Ib1)&&(_Gb1[_Kb1+3])>_ob1)_Jb1|=(1<<4);if((_Kb1+4<_Ib1)&&(_Gb1[_Kb1+4])>_ob1)_Jb1|=(1<<3);
if((_Kb1+5<_Ib1)&&(_Gb1[_Kb1+5])>_ob1)_Jb1|=(1<<2);if((_Kb1+6<_Ib1)&&(_Gb1[_Kb1+6])>_ob1)_Jb1|=(1<<1);if((_Kb1+7<_Ib1)&&(_Gb1[_Kb1+7])>_ob1)_Jb1|=(1<<0);_3z[_J6+(_0l*_vb1)]=_Jb1;}}this._o7[i]=_3z;_Go2=_Sm3+((_Rm3+3)&~3);}this._7b1=true;return _Go2;};_2b1.prototype._Qm3=function(){this._O9=function(_c5,_96,_a6,_Qm,_Rm,_d6,_5d,_ga){__Y2(this._LE,this._xU2,_c5,this.xOrigin,this.yOrigin,_96,_a6,_Qm,_Rm,_d6,_5d,_ga,this._l5);};this._Wf1=function(_c5,_96,_a6,_ga){__Y2(this._LE,this._xU2,_c5,this.xOrigin,
this.yOrigin,_96,_a6,1.0,1.0,0.0,0xffffffff,_ga,this._l5);};};_2b1.prototype._Xm3=function(_S3){if(_S3){this._ME=new _V8();this._ME._e9(this._eb1?'':(this.pName+'/'),this.pName,_S3.json,_S3._R5,_S3._l9,_S3._m9,this);}this._O9=function(_c5,_96,_a6,_Qm,_Rm,_d6,_5d,_ga){this._ME._O9(_c5,_96,_a6,_Qm,_Rm,_d6,_5d,_ga);};this._Wf1=function(_c5,_96,_a6,_ga){this._ME._O9(_c5,_96,_a6,1,1,0,0xffffff,_ga);};this._n7=_4m3;};_2b1.prototype._fb1=function(_1l,_sg1){var _Ym3=function(_1l,_sg1){var _Zm3='Could not load file contents!';
var _g61=new XMLHttpRequest();_g61.open('GET',_871(_1l),true);_g61.send();_g61.onload=function(){if(_sg1){_sg1((_g61.status==200)?null:_Zm3,_g61.response||_g61.responseText);}};_g61.onerror=function(){if(_sg1){_sg1(_Zm3);}};};var __m3=function(_0n3){var _hz=_0n3.split('\n');var _yZ1=[];var current=undefined;var _1n3=true;var _2n3=new RegExp('^size*:\\s*(\\d+)\\s*,\\s*(\\d+)$');for(var i=0;i<_hz.length;++i){var _mw=_hz[i].trim();if(_1n3){if(current!=undefined){if(current.width===undefined||current.height===undefined){
return undefined;}_yZ1.push(current);}current={name:_mw};_1n3=false;}else {if(_mw==''){_1n3=true;}else if(current!=undefined){var _e7=_mw.match(_2n3);if(_e7){current.width=parseInt(_e7[1]);current.height=parseInt(_e7[2]);}}}}if(current!=undefined){if(current.width===undefined||current.height===undefined){return undefined;}_yZ1.push(current);}return _yZ1;};var _mN=this;var _3n3=_1l.slice(0,-5)+'.atlas';var _4n3=2;var _5n3=false;var _R5;var _yZ1;var _6n3=function(err){if(_5n3){return;}if(err){_5n3=true;if(_sg1){
_sg1(err);}return;}if(--_4n3==0){var _Ff2={json:json,_R5:_R5,_l9:_yZ1.length,_m9:_yZ1,};_mN._Xm3(_Ff2);var size=_mN._bm3((new _y3(_mN._ME))._I3);if(size instanceof Array){_mN.width=size[0];_mN.height=size[1];}var _ni=_mN._dm3((new _y3(_mN._ME))._I3);if(_ni){_mN._Ka1=1;_mN._4b1=_5b1._6b1;_mN._XH=_ni;_mN._XH.top*=-1.0;_mN._XH.bottom*=-1.0;_mN._Qa1();}if(_sg1){_sg1();}}};_Ym3(_1l,function(_h51,_7n3){if(!_h51){json=_7n3;}_6n3(_h51);});_Ym3(_3n3,function(_h51,_7n3){if(!_h51){_R5=_7n3;_yZ1=__m3(_R5);if(_yZ1===undefined){
_6n3('Invalid atlas format!');return;}}_6n3(_h51);});};_2b1.prototype._8n3=function(_9n3){this.sequence=new _N21(_9n3);this.xOrigin=this.sequence._fd3;this.yOrigin=this.sequence._gd3;};_2b1.prototype._an3=function(_bn3){this._Vb1=new _Wb1(_bn3);};function _cn3(_dn3,_7t){if(_dn3.Masks[_7t]!=null){var _e7=[];var src=0;var _Ya=0;var _Xo;while(src<_dn3.Masks[_7t].length){var _en3=_dn3.Masks[_7t][src++];if(_en3&0x80){_en3=(_en3&0x7f)+1;_Xo=_dn3.Masks[_7t][src++];for(var _H5=0;_H5<_en3;_H5++){_e7[_Ya++]=_Xo;}}
else {_en3++;for(var _H5=0;_H5<_en3;_H5++){_e7[_Ya++]=_dn3.Masks[_7t][src++];}}}}_dn3._o7[_7t]=_e7;}function _uJ2(_fn3){var _tJ2=new _2b1();if(_fn3.pName!==undefined)_tJ2.pName=_fn3.pName;if(_fn3.width!==undefined)_tJ2.width=_fn3.width;if(_fn3.height!==undefined)_tJ2.height=_fn3.height;if(_fn3.bboxLeft!==undefined)_tJ2._XH.left=_fn3.bboxLeft;if(_fn3.bboxRight!==undefined)_tJ2._XH.right=_fn3.bboxRight;if(_fn3.bboxTop!==undefined)_tJ2._XH.top=_fn3.bboxTop;if(_fn3.bboxBottom!==undefined)_tJ2._XH.bottom=_fn3.bboxBottom;
if(_fn3.transparent!==undefined)_tJ2.transparent=_fn3.transparent;if(_fn3.smooth!==undefined)_tJ2.smooth=_fn3.smooth;if(_fn3.preload!==undefined)_tJ2.preload=_fn3.preload;if(_fn3.bboxMode!==undefined)_tJ2._Ka1=_fn3.bboxMode;if(_fn3.colCheck!==undefined)_tJ2._4b1=_fn3.colCheck;if(_fn3.xOrigin!==undefined)_tJ2.xOrigin=_fn3.xOrigin;if(_fn3.yOrigin!==undefined)_tJ2.yOrigin=_fn3.yOrigin;if(_fn3.playbackspeedtype!==undefined)_tJ2.playbackspeedtype=_fn3.playbackspeedtype;if(_fn3.playbackspeed!==undefined)_tJ2.playbackspeed=_fn3.playbackspeed;
_tJ2.Masks=null;if(_fn3.swf!==undefined){_tJ2._7m3=true;_tJ2._Gm3(_fn3.swf,_tJ2.xOrigin,_tJ2.yOrigin);}if(_fn3.sequence!==undefined){_tJ2._8n3(_fn3.sequence);}if(_fn3.nineslice!==undefined){_tJ2._an3(_fn3.nineslice);}if(_fn3.Masks!==undefined)_tJ2.Masks=_fn3.Masks;_tJ2._l5=[];for(var i=_fn3.TPEntryIndex.length-1;i>=0;i--){_tJ2._l5[i]=_fn3.TPEntryIndex[i];}if(_tJ2._n7==0){_tJ2._n7=_tJ2._l5.length;}for(var i=0;i<_tJ2._l5.length;i++){_tJ2._l5[i]=_0N2(_tJ2._l5[i]);if(_tJ2._l5[i]!=null){if(_tJ2._l5[i].CropWidth==0)_tJ2._l5[i].CropWidth=1;
if(_tJ2._l5[i].CropHeight==0)_tJ2._l5[i].CropHeight=1;}}if(_fn3.skel!==undefined){var _Ff2=_m6._1c2?_m6._1c2[_fn3.skel]:undefined;_tJ2._Xm3(_Ff2);}_tJ2._La1();if(_tJ2.Masks){for(var i=0;i<_fn3.Masks.length;i++){if(!_fn3._gn3)_cn3(_tJ2,i);_tJ2._7b1=true;}}_fn3._gn3=true;return _tJ2;}function _hn3(position,_K01){var _DF=_6s[_EF];var _in3=_DF._lK2();var _jn3=_vF();return _jn3._QA2(_DF._jF(position),_K01*_in3);}_2b1.prototype._Pa1=function(){var i=0;var _J6=0;var _0l=0;this._o7=[];if(this._4b1!=_5b1._pb1){return;
}if(this._n7==0){return;}if((this._l5!=null)&&(this._kn3==false))return;var _Px=this;var _l5=_Px._l5;_Px._o7=[];if(_Px._8b1){for(var i=0;i<_Px._n7;i++){_Px._o7[i]=_tb1(null,_Px._l5[i],0,_Px._XH,_Ea1,0);}}else {_Px._o7[0]=_tb1(_Px._o7[0],_Px._l5[0],0,_Px._XH,_Ea1,0);for(var i=1;i<_Px._n7;i++){_Px._o7[0]=_tb1(_Px._o7[0],_Px._l5[i],0,_Px._XH,_Ea1,0);}}_Px._7b1=true;};_2b1.prototype._Wf1=function(_ln3,_96,_a6,_ga){if(this._n7<=0)return;var _bb1=this._bb1;if(_5m3||_hn3(new _Er(_96,_a6,_Fb),_bb1)){_ln3=(~~_ln3)%this._n7;
if(_ln3<0)_ln3=_ln3+this._n7;if(!this._l5)return;var _k5=this._l5[_ln3];if(!_k5)return;if((this._Vb1!=null)&&(this._Vb1.enabled==true)){var _55=0xffffffff;this._Vb1._O9(_96,_a6,this.width,this.height,0,_55,1,_ln3,this);}else {if((_k5.w==_k5.CropWidth)&&(_k5.h==_k5.CropHeight)){_Fm(_k5,_96-this.xOrigin,_a6-this.yOrigin,_ga);}else {var _55=0xffffffff;_Tm(_k5,0,0,_96-this.xOrigin,_a6-this.yOrigin,1,1,0,_55,_55,_55,_55,1);}}}};_2b1.prototype._O9=function(_c5,_96,_a6,_Qm,_Rm,_d6,_5d,_ga){if(this._n7<=0)return;
if(this.sequence!=null){if(_c5<0){return;}}if(!this._l5)return;var _mn3=abs(this._bb1*_Qm);var _nn3=abs(this._bb1*_Rm);var _bb1;if(_mn3>_nn3){_bb1=_mn3;}else {_bb1=_nn3;}if(_5m3||_hn3(new _Er(_96,_a6,_Fb),_bb1)){_c5=(~~_c5)%this._n7;if(_c5<0)_c5+=this._n7;_d6=_WH2(_d6,360.0);if((this._Vb1!=null)&&(this._Vb1.enabled==true)){this._Vb1._O9(_96,_a6,this.width*_Qm,this.height*_Rm,_d6,_5d,_ga,_c5,this);}else {_Tm(this._l5[_c5],this.xOrigin,this.yOrigin,_96,_a6,_Qm,_Rm,_d6*Math.PI/180.0,_5d,undefined,undefined,
undefined,_ga);}}};_2b1.prototype.__E=function(_Z7,_96,_a6,_C8){if((this._ME===undefined)||(this._ME===null))return;var _OJ=_Z7.image_xscale;var _PJ=_Z7.image_yscale;var x=_Z7.x;var y=_Z7.y;var _6a=Math.floor(_Z7.image_index);if(this._n7>0){_6a=(~~_6a)%this._n7;}if(_6a<0)_6a+=this._n7;var angle=_Z7.image_angle;this._ME._S9(_Z7,undefined,undefined,_6a,x,y,_OJ,_PJ,angle,_96,_a6,_C8);};_2b1.prototype._Zf1=function(_ln3,_F7,_G7,_77,_87,_Ro,_So,_Xf1,_Yf1,_ga){if(this._n7<=0)return;_ln3=(~~_ln3)%this._n7;if(_ln3<0)_ln3=_ln3+this._n7;
if(!this._l5)return;_c_2(this._l5[_ln3],_F7,_G7,_77,_87,_Ro,_So,_Xf1,_Yf1,_ga);};_2b1.prototype._3I=function(_G5,_H5,_on3){if(_on3!==null&&_on3!==undefined){if((_G5<this._XH.left)||(_G5>this._XH.right))return false;if((_H5<this._XH.top)||(_H5>this._XH.bottom))return false;_G5-=this._XH.left;_H5-=this._XH.top;var _Db1=this._XH.right-this._XH.left+1;var _vb1=(_Db1+7)>>3;var _pn3=_G5>>3;var _nX1=_on3[_H5*_vb1+_pn3];var _qn3=7-(_G5&7);if(_nX1&(1<<_qn3)){return true;}else return false;}return true;};_2b1.prototype._UH=function(_rn3,
_sn3,_tn3,_un3,_vn3){if((_un3-_sn3==0)&&(_vn3-_tn3==0)){if((_sn3<_rn3[0].x)||(_sn3>=_rn3[1].x))return false;if((_vn3<_rn3[0].y)||(_vn3>=_rn3[2].y))return false;return true;}if(abs(_un3-_sn3)>=abs(_vn3-_tn3)){var _YS=~~_q7(_rn3[0].x,_sn3);var prop=(_YS-_sn3)/(_un3-_sn3);var _ZS=_tn3+prop*(_vn3-_tn3);var _Oj=~~_r7(_rn3[1].x,_un3);var _0c=(_tn3-_vn3)/(_sn3-_un3);for(var i=_YS;i<=_Oj;i++,_ZS+=_0c){if((_YS<_rn3[0].x)||(_YS>=_rn3[1].x))continue;if((_ZS<_rn3[0].y)||(_ZS>=_rn3[2].y))continue;return true;}}else {if(_vn3<_tn3){
var _Je=_vn3;_vn3=_tn3;_tn3=_Je;_Je=_un3;_un3=_sn3;_sn3=_Je;}var _ZS=~~_q7(_rn3[0].y,_tn3);var prop=(_ZS-_tn3)/(_vn3-_tn3);var _YS=_sn3+prop*(_un3-_sn3);var _6F=~~_r7(_rn3[2].y,_vn3);var __b=(_un3-_sn3)/(_vn3-_tn3);for(var i=_ZS;i<=_6F;i++,_YS+=__b){if((_YS<_rn3[0].x)||(_YS>=_rn3[1].x))continue;if((_ZS<_rn3[0].y)||(_ZS>=_rn3[2].y))continue;return true;}}return false;};_2b1.prototype._WH=function(_rn3,_sn3,_tn3,_un3,_vn3){var _p7=_q7(_sn3,_rn3[0].x);_p7=~~(Math.floor(_p7)+0.5);var _Y4=~~_r7(_un3,_rn3[2].x);
var _s7=_q7(_tn3,_rn3[0].y);_s7=~~(Math.floor(_s7)+0.5);var __4=~~_r7(_vn3,_rn3[2].y);var _L7=((_sn3+_un3)/2);var _M7=((_tn3+_vn3)/2);var _N7=((_un3-_sn3)/2);var _O7=((_vn3-_tn3)/2);for(var i=_p7;i<=_Y4;i++){for(var _J6=_s7;_J6<=__4;_J6++){if(_CQ((i-_L7)/_N7)+_CQ((_J6-_M7)/_O7)>1)continue;return true;}}return false;};_2b1.prototype._SH=function(_wn3,_rn3,_xn3,_sn3,_tn3,_un3,_vn3){var _p7=_q7(_sn3,_rn3[0].x);_p7=~~(Math.floor(_p7)+0.5);var _Y4=~~_r7(_un3,_rn3[2].x);var _s7=_q7(_tn3,_rn3[0].y);_s7=~~(Math.floor(_s7)+0.5);
var __4=~~_r7(_vn3,_rn3[2].y);var _yn3=_xn3[0]._G5;var _zn3=_xn3[0]._H5;var _An3=(_xn3[1]._G5-_xn3[0]._G5)/(_rn3[1].x-_rn3[0].x);var _Bn3=(_xn3[3]._G5-_xn3[0]._G5)/(_rn3[3].y-_rn3[0].y);var _Cn3=(_xn3[1]._H5-_xn3[0]._H5)/(_rn3[1].x-_rn3[0].x);var _Dn3=(_xn3[3]._H5-_xn3[0]._H5)/(_rn3[3].y-_rn3[0].y);var _En3=_r7(_xn3[0]._G5,_r7(_xn3[1]._G5,_xn3[2]._G5));var _Fn3=_q7(_xn3[0]._G5,_q7(_xn3[1]._G5,_xn3[2]._G5));var _Gn3=_r7(_xn3[0]._H5,_r7(_xn3[1]._H5,_xn3[2]._H5));var _Hn3=_q7(_xn3[0]._H5,_q7(_xn3[1]._H5,_xn3[2]._H5));
for(var i=_p7;i<_Y4;i+=1.0){var _I5=(((i)-_rn3[0].x)*_An3+_yn3)+(((_s7)-_rn3[0].y)*_Bn3);var _J5=(((_s7)-_rn3[0].y)*_Dn3+_zn3)+(((i)-_rn3[0].x)*_Cn3);for(var _J6=_s7;_J6<__4;_J6+=1.0,_J5+=_Dn3,_I5+=_Bn3){if(_wn3!=null){if((_J5<_Gn3)||(_J5>=_Hn3))continue;if((_I5<_En3)||(_I5>=_Fn3))continue;if(!this._3I(~~_I5,~~_J5,_wn3))continue;}return true;}}return false;};_2b1.prototype._TH=function(_wn3,_rn3,_xn3,_sn3,_tn3,_un3,_vn3){var _yn3=_xn3[0]._G5;var _zn3=_xn3[0]._H5;var _An3=(_xn3[1]._G5-_xn3[0]._G5)/(_rn3[1].x-_rn3[0].x);
var _Bn3=(_xn3[3]._G5-_xn3[0]._G5)/(_rn3[3].y-_rn3[0].y);var _Cn3=(_xn3[1]._H5-_xn3[0]._H5)/(_rn3[1].x-_rn3[0].x);var _Dn3=(_xn3[3]._H5-_xn3[0]._H5)/(_rn3[3].y-_rn3[0].y);var _En3=_r7(_xn3[0]._G5,_r7(_xn3[1]._G5,_xn3[2]._G5));var _Fn3=_q7(_xn3[0]._G5,_q7(_xn3[1]._G5,_xn3[2]._G5));var _Gn3=_r7(_xn3[0]._H5,_r7(_xn3[1]._H5,_xn3[2]._H5));var _Hn3=_q7(_xn3[0]._H5,_q7(_xn3[1]._H5,_xn3[2]._H5));if((_un3-_sn3==0)&&(_vn3-_tn3==0)){var _I5=(((_un3)-_rn3[0].x)*_An3+_yn3)+(((_vn3)-_rn3[0].y)*_Bn3);var _J5=(((_vn3)-_rn3[0].y)*_Dn3+_zn3)+(((_un3)-_rn3[0].x)*_Cn3);
if((_J5<_Gn3)||(_J5>=_Hn3))return false;if((_I5<_En3)||(_I5>=_Fn3))return false;if(this._3I(~~_I5,~~_J5,_wn3))return true;return false;}if(abs(_un3-_sn3)>=abs(_vn3-_tn3)){var _YS=~~_q7(_rn3[0].x,_sn3);var prop=(_YS-_sn3)/(_un3-_sn3);var _ZS=_tn3+prop*(_vn3-_tn3);var _Oj=~~_r7(_rn3[1].x,_un3);var _0c=(_tn3-_vn3)/(_sn3-_un3);for(var i=_YS;i<=_Oj;i++,_ZS+=_0c){var _I5=(((i)-_rn3[0].x)*_An3+_yn3)+(((_ZS)-_rn3[0].y)*_Bn3);var _J5=(((_ZS)-_rn3[0].y)*_Dn3+_zn3)+(((i)-_rn3[0].x)*_Cn3);if((_J5<_Gn3)||(_J5>=_Hn3))continue;
if((_I5<_En3)||(_I5>=_Fn3))continue;if(this._3I(~~_I5,~~_J5,_wn3))return true;}}else {if(_vn3<_tn3){var _Je=_vn3;_vn3=_tn3;_tn3=_Je;_Je=_un3;_un3=_sn3;_sn3=_Je;}var _ZS=~~_q7(_rn3[0].y,_tn3);var prop=(_ZS-_tn3)/(_vn3-_tn3);var _YS=_sn3+prop*(_un3-_sn3);var _6F=~~_r7(_rn3[2].y,_vn3);var __b=(_un3-_sn3)/(_vn3-_tn3);for(var i=_ZS;i<=_6F;i++,_YS+=__b){var _I5=(((_YS)-_rn3[0].x)*_An3+_yn3)+(((i)-_rn3[0].y)*_Bn3);var _J5=(((i)-_rn3[0].y)*_Dn3+_zn3)+(((_YS)-_rn3[0].x)*_Cn3);if((_J5<_Gn3)||(_J5>=_Hn3))continue;if((_I5<_En3)||(_I5>=_Fn3))continue;
if(this._3I(~~_I5,~~_J5,_wn3))return true;}}return false;};_2b1.prototype._VH=function(_wn3,_rn3,_xn3,_sn3,_tn3,_un3,_vn3){var _p7=_q7(_sn3,_rn3[0].x);_p7=~~(Math.floor(_p7)+0.5);var _Y4=~~_r7(_un3,_rn3[2].x);var _s7=_q7(_tn3,_rn3[0].y);_s7=~~(Math.floor(_s7)+0.5);var __4=~~_r7(_vn3,_rn3[2].y);var _yn3=_xn3[0]._G5;var _zn3=_xn3[0]._H5;var _An3=(_xn3[1]._G5-_xn3[0]._G5)/(_rn3[1].x-_rn3[0].x);var _Bn3=(_xn3[3]._G5-_xn3[0]._G5)/(_rn3[3].y-_rn3[0].y);var _Cn3=(_xn3[1]._H5-_xn3[0]._H5)/(_rn3[1].x-_rn3[0].x);var _Dn3=(_xn3[3]._H5-_xn3[0]._H5)/(_rn3[3].y-_rn3[0].y);
var _En3=_r7(_xn3[0]._G5,_r7(_xn3[1]._G5,_xn3[2]._G5));var _Fn3=_q7(_xn3[0]._G5,_q7(_xn3[1]._G5,_xn3[2]._G5));var _Gn3=_r7(_xn3[0]._H5,_r7(_xn3[1]._H5,_xn3[2]._H5));var _Hn3=_q7(_xn3[0]._H5,_q7(_xn3[1]._H5,_xn3[2]._H5));var _L7=((_sn3+_un3)/2);var _M7=((_tn3+_vn3)/2);var _N7=((_un3-_sn3)/2);var _O7=((_vn3-_tn3)/2);for(var i=_p7;i<=_Y4;i++){var _I5=(((i)-_rn3[0].x)*_An3+_yn3)+(((_s7)-_rn3[0].y)*_Bn3);var _J5=(((_s7)-_rn3[0].y)*_Dn3+_zn3)+(((i)-_rn3[0].x)*_Cn3);for(var _J6=_s7;_J6<=__4;_J6++,_J5+=_Dn3,_I5+=_Bn3){
if(_CQ((i-_L7)/_N7)+_CQ((_J6-_M7)/_O7)>1)continue;if((_J5<_Gn3)||(_J5>=_Hn3))continue;if((_I5<_En3)||(_I5>=_Fn3))continue;if(this._3I(~~_I5,~~_J5,_wn3))return true;}}return false;};_2b1.prototype._hI=function(_In3,_gI,_F7,_G7,_Jn3,_Kn3,_Ln3,_rn3,_xn3,_wn3,_rH){var _p7=_q7(_gI.left,_rn3[0].x);_p7=Math.floor(_p7)+0.5;var _Y4=_r7(_gI.right,_rn3[2].x);var _s7=_q7(_gI.top,_rn3[0].y);_s7=Math.floor(_s7)+0.5;var __4=_r7(_gI.bottom,_rn3[2].y);var _Mn3=this._XH.left;var _Nn3=this._XH.right+1.0;var _On3=this._XH.top;
var _Pn3=this._XH.bottom+1.0;if(this._4b1===_2b1._pb1){if(_Mn3<0)_Mn3=0;if(_Nn3>this.width)_Nn3=this.width;if(_On3<0)_On3=0;if(_Pn3>this.height)_Pn3=this.height;}var _Qn3=false;if(_Ln3>g_GMLMathEpsilon||_Ln3<-g_GMLMathEpsilon)_Qn3=true;var _yn3=_xn3[0]._G5;var _zn3=_xn3[0]._H5;_Jn3=1.0/_Jn3;_Kn3=1.0/_Kn3;var _An3=(_xn3[1]._G5-_xn3[0]._G5)/(_rn3[1].x-_rn3[0].x);var _Bn3=(_xn3[3]._G5-_xn3[0]._G5)/(_rn3[3].y-_rn3[0].y);var _Cn3=(_xn3[1]._H5-_xn3[0]._H5)/(_rn3[1].x-_rn3[0].x);var _Dn3=(_xn3[3]._H5-_xn3[0]._H5)/(_rn3[3].y-_rn3[0].y);
var _Rn3=null;var _Sn3=null;_Rn3=this._o7[_In3];_Sn3=_wn3;var _En3=_r7(_xn3[0]._G5,_r7(_xn3[1]._G5,_xn3[2]._G5));var _Fn3=_q7(_xn3[0]._G5,_q7(_xn3[1]._G5,_xn3[2]._G5));var _Gn3=_r7(_xn3[0]._H5,_r7(_xn3[1]._H5,_xn3[2]._H5));var _Hn3=_q7(_xn3[0]._H5,_q7(_xn3[1]._H5,_xn3[2]._H5));var _Tn3=this._tF();if(!_Qn3){var _Un3=_Jn3;var _Vn3=_An3;var _qr1=((_p7-_F7)*_Jn3+this._8m3());for(var i=_p7;i<_Y4;i+=1.0,_qr1+=_Un3){var _I5=(((i)-_rn3[0].x)*_An3+_yn3)+(((_s7)-_rn3[0].y)*_Bn3);var _J5=(((_s7)-_rn3[0].y)*_Dn3+_zn3)+(((i)-_rn3[0].x)*_Cn3);
if((_qr1<_Mn3)||(_qr1>=_Nn3))continue;var _Wn3=~~_qr1;for(var _J6=_s7;_J6<__4;_J6+=1.0,_J5+=_Dn3,_I5+=_Bn3){if(_Rn3!=null){var _3c=((_J6-_G7)*_Kn3+this._9m3());if((_3c<_On3)||(_3c>=_Pn3))continue;if(!this._3I(_Wn3,~~_3c,_Rn3))continue;}if(_Sn3!=null){if((_J5<_Gn3)||(_J5>=_Hn3))continue;if((_I5<_En3)||(_I5>=_Fn3))continue;if(!_rH._3I(~~_I5,~~_J5,_Sn3))continue;}return true;}}}else {var _Xn3,_Yn3,_qr1,_3c;if(_Qn3){_Xn3=Math.sin(-_Ln3*_u7/180.0);_Yn3=Math.cos(-_Ln3*_u7/180.0);}for(var i=_p7;i<_Y4;i+=1.0){
var _I5=(((i)-_rn3[0].x)*_An3+_yn3)+(((_s7)-_rn3[0].y)*_Bn3);var _J5=(((_s7)-_rn3[0].y)*_Dn3+_zn3)+(((i)-_rn3[0].x)*_Cn3);for(var _J6=_s7;_J6<__4;_J6+=1.0,_J5+=_Dn3,_I5+=_Bn3){_qr1=((_Yn3*(i-_F7)+_Xn3*(_J6-_G7))*_Jn3+this._8m3());if((_qr1<_Mn3)||(_qr1>=_Nn3))continue;_3c=((_Yn3*(_J6-_G7)-_Xn3*(i-_F7))*_Kn3+this._9m3());if((_3c<_On3)||(_3c>=_Pn3))continue;if(_Rn3!=null){if(!this._3I(~~_qr1,~~_3c,_Rn3))continue;}if(_Sn3!=null){if((_J5<_Gn3)||(_J5>=_Hn3))continue;if((_I5<_En3)||(_I5>=_Fn3))continue;if(!_rH._3I(~~_I5,
~~_J5,_Sn3))continue;}return true;}}}return false;};_2b1.prototype._o23=function(_Zn3,__n3,_F7,_G7,_b6,_c6,_d6,_96,_a6){var _w7,_y7;if(!this._7b1)return true;if(this._n7<=0)return false;_Zn3=_Zn3%this._o7.length;if(_Zn3<0)_Zn3=_Zn3+this._o7.length;_F7-=0.5;_G7-=0.5;if(Math.abs(_d6)<0.0001){_w7=Math.floor((_96-_F7)/_b6+this.xOrigin);_y7=Math.floor((_a6-_G7)/_c6+this.yOrigin);}else {var _P7=Math.sin(-_d6*Math.PI/180.0);var _Q7=Math.cos(-_d6*Math.PI/180.0);_w7=Math.floor((_Q7*(_96-_F7)+_P7*(_a6-_G7))/_b6+this.xOrigin);
_y7=Math.floor((_Q7*(_a6-_G7)-_P7*(_96-_F7))/_c6+this.yOrigin);}return this._3I(_w7,_y7,this._o7[_Zn3]);};_2b1.prototype._s23=function(_Zn3,__n3,_F7,_G7,_b6,_c6,_d6,_K7){if(!this._7b1)return true;if(this._n7<=0)return false;_Zn3=_Zn3%this._o7.length;if(_Zn3<0){_Zn3=_Zn3+this._o7.length;}var _p7=_q7(__n3.left,_K7.left);var _Y4=_r7(__n3.right,_K7.right);var _s7=_q7(__n3.top,_K7.top);var __4=_r7(__n3.bottom,_K7.bottom);_F7-=0.5;_G7-=0.5;if((_b6==1)&&(_c6==1)&&(Math.abs(_d6)<0.0001)){for(var i=_p7;i<=_Y4;i++){
for(var _J6=_s7;_J6<=__4;_J6++){var _w7=~~(i-_F7+this.xOrigin);var _y7=~~(_J6-_G7+this.yOrigin);if((_w7<0)||(_w7>=this.width))continue;if((_y7<0)||(_y7>=this.height))continue;if(this._3I(_w7,_y7,this._o7[_Zn3]))return true;}}}else {var _P7=Math.sin(-_d6*_u7/180.0);var _Q7=Math.cos(-_d6*_u7/180.0);var _0o3=1.0/_b6;var _1o3=1.0/_c6;for(var i=_p7;i<=_Y4;i++){for(var _J6=_s7;_J6<=__4;_J6++){var _w7=Math.floor((_Q7*(i-_F7)+_P7*(_J6-_G7))*_0o3+this.xOrigin);var _y7=Math.floor((_Q7*(_J6-_G7)-_P7*(i-_F7))*_1o3+this.yOrigin);
if((_w7<0)||(_w7>=this.width))continue;if((_y7<0)||(_y7>=this.height))continue;if(this._3I(_w7,_y7,this._o7[_Zn3]))return true;}}}return false;};_2b1.prototype._z23=function(_Zn3,__n3,_F7,_G7,_b6,_c6,_d6,_K7){var i,_J6;if(!this._7b1)return true;if(this._n7<=0)return false;_Zn3=_Zn3%this._o7.length;if(_Zn3<0)_Zn3=_Zn3+this._o7.length;var _p7=_q7(__n3.left,_K7.left);var _Y4=_r7(__n3.right,_K7.right);var _s7=_q7(__n3.top,_K7.top);var __4=_r7(__n3.bottom,_K7.bottom);var _L7=((_K7.right+_K7.left)/2);var _M7=((_K7.bottom+_K7.top)/2);
var _N7=1.0/((_K7.right-_K7.left)/2);var _O7=1.0/((_K7.bottom-_K7.top)/2);var _K6;if((_b6==1)&&(_c6==1)&&(Math.abs(_d6)<0.0001)){for(i=_p7;i<=_Y4;i++){_K6=(i-_L7)*_N7;var _2o3=_K6*_K6;var _w7=i-_F7+this.xOrigin;if((_w7<0)||(_w7>=this.width))continue;for(_J6=_s7;_J6<=__4;_J6++){_K6=(_J6-_M7)*_O7;if(_2o3+(_K6*_K6)>1)continue;var _y7=_J6-_G7+this.yOrigin;if((_y7<0)||(_y7>=this.height))continue;if(this._3I(_w7,_y7,this._o7[_Zn3]))return true;}}}else {var _P7=Math.sin(-_d6*Math.PI/180.0);var _Q7=Math.cos(-_d6*Math.PI/180.0);
var _0o3=1.0/_b6;var _1o3=1.0/_c6;for(i=_p7;i<=_Y4;i++){var _3o3=(i-_F7);var _4o3=_Q7*_3o3;var _5o3=_P7*_3o3;var _K6=(i-_L7)*_N7;var _6o3=_K6*_K6;for(_J6=_s7;_J6<=__4;_J6++){var _7o3=(_J6-_M7)*_O7;if((_6o3+(_7o3*_7o3))>1)continue;var _8o3=_J6-_G7;var _w7=~~(((_4o3+_P7*_8o3)*_0o3)+this.xOrigin);if((_w7<0)||(_w7>=this.width))continue;var _y7=~~(((_Q7*_8o3-_5o3)*_1o3)+this.yOrigin);if((_y7<0)||(_y7>=this.height))continue;if(this._3I(_w7,_y7,this._o7[_Zn3]))return true;}}}return false;};_2b1.prototype._633=function(_Zn3,
__n3,_F7,_G7,_9o3,_ao3,_bo3,_b5,_co3,_m7,_77,_87,_97,_a7,_b7){if(_b5==null)return false;if(this._n7<=0)return false;if(_b5._n7<=0)return false;if(this._o7.length>0)_Zn3=_Zn3%this._o7.length;if(_Zn3<0){_Zn3=_Zn3+this._o7.length;;}if(_b5._o7.length>0)_co3=_co3%_b5._o7.length;if(_co3<0){_co3=_co3+_b5._o7.length;}_9o3=1.0/_9o3;_ao3=1.0/_ao3;_97=1.0/_97;_a7=1.0/_a7;var _p7=_q7(__n3.left,_m7.left);_p7=Math.floor(_p7)+0.5;var _Y4=_r7(__n3.right,_m7.right);var _s7=_q7(__n3.top,_m7.top);_s7=Math.floor(_s7)+0.5;
var __4=_r7(__n3.bottom,_m7.bottom);var _Mn3=this._XH.left;var _Nn3=this._XH.right+1.0;var _On3=this._XH.top;var _Pn3=this._XH.bottom+1.0;if(this._4b1===_2b1._pb1){if(_Mn3<0)_Mn3=0;if(_Nn3>this.width)_Nn3=this.width;if(_On3<0)_On3=0;if(_Pn3>this.height)_Pn3=this.height;}var _yn3=_b5._XH.left;var _do3=_b5._XH.right+1.0;var _zn3=_b5._XH.top;var _eo3=_b5._XH.bottom+1.0;var _rH=_b5;if(_rH._4b1===_2b1._pb1){if(_yn3<0)_yn3=0;if(_do3>_rH.width)_do3=_rH.width;if(_zn3<0)_zn3=0;if(_eo3>_rH.height)_eo3=_rH.height;}var _Qn3=false;
var _fo3=false;if(_bo3>g_GMLMathEpsilon||_bo3<-g_GMLMathEpsilon)_Qn3=true;if(_b7>g_GMLMathEpsilon||_b7<-g_GMLMathEpsilon)_fo3=true;if(!_Qn3&&!_fo3){var _Un3=_9o3;var _Vn3=_97;var _qr1=((_p7-_F7)*_9o3+this.xOrigin);var _I5=((_p7-_77)*_97+_rH.xOrigin);for(var i=_p7;i<_Y4;i+=1.0,_qr1+=_Un3,_I5+=_Vn3){if((_qr1<_Mn3)||(_qr1>=_Nn3))continue;if((_I5<_yn3)||(_I5>=_do3))continue;var _Wn3=~~_qr1;var _go3=~~_I5;for(var _J6=_s7;_J6<__4;_J6+=1.0){if(this._4b1===_5b1._pb1){var _3c=((_J6-_G7)*_ao3+this.yOrigin);if((_3c<_On3)||(_3c>=_Pn3))continue;
if(this._7b1)if(!this._3I(_Wn3,~~_3c,this._o7[_Zn3]))continue;}if(_rH._4b1===_5b1._pb1){var _J5=((_J6-_87)*_a7+_rH.yOrigin);if((_J5<_zn3)||(_J5>=_eo3))continue;if(_rH._7b1){if(!_rH._3I(_go3,~~_J5,_rH._o7[_co3]))continue;}}return true;}}}else {var _Xn3,_Yn3,_t7,_v7,_qr1,_I5,_3c,_J5;if(_Qn3){_Xn3=Math.sin(-_bo3*_u7/180.0);_Yn3=Math.cos(-_bo3*_u7/180.0);}if(_fo3){_t7=Math.sin(-_b7*_u7/180.0);_v7=Math.cos(-_b7*_u7/180.0);}for(var i=_p7;i<_Y4;i+=1.0){if(!_Qn3){_qr1=((i-_F7)*_9o3+this.xOrigin);if((_qr1<_Mn3)||(_qr1>=_Nn3))continue;
}if(!_fo3){_I5=((i-_77)*_97+_rH.xOrigin);if((_I5<_yn3)||(_I5>=_do3))continue;}for(var _J6=_s7;_J6<__4;_J6+=1.0){if(_Qn3){_qr1=((_Yn3*(i-_F7)+_Xn3*(_J6-_G7))*_9o3+this.xOrigin);if((_qr1<_Mn3)||(_qr1>=_Nn3))continue;_3c=((_Yn3*(_J6-_G7)-_Xn3*(i-_F7))*_ao3+this.yOrigin);}else {_3c=((_J6-_G7)*_ao3+this.yOrigin);}if((_3c<_On3)||(_3c>=_Pn3))continue;if(this._4b1===_5b1._pb1){if(this._7b1){if(!this._3I(~~_qr1,~~_3c,this._o7[_Zn3]))continue;}}if(_fo3){_I5=((_v7*(i-_77)+_t7*(_J6-_87))*_97+_rH.xOrigin);if((_I5<_yn3)||(_I5>=_do3))continue;
_J5=((_v7*(_J6-_87)-_t7*(i-_77))*_a7+_rH.yOrigin);}else {_J5=((_J6-_87)*_a7+_rH.yOrigin);}if((_J5<_zn3)||(_J5>=_eo3))continue;if(_rH._4b1===_5b1._pb1){if(_rH._7b1){if(!_rH._3I(_I5,~~_J5,_rH._o7[_co3]))continue;}}return true;}}}return false;};_2b1.prototype._533=function(_Zn3,__n3,_F7,_G7,_9o3,_ao3,_bo3,_b5,_co3,_m7,_77,_87,_97,_a7,_b7){if(_b5==null)return false;if(this._n7<=0)return false;if(_b5._n7<=0)return false;if(this._o7.length>0)_Zn3=_Zn3%this._o7.length;if(_Zn3<0){_Zn3=_Zn3+this._o7.length;;}if(_b5._o7.length>0)_co3=_co3%_b5._o7.length;
if(_co3<0){_co3=_co3+_b5._o7.length;}_9o3=1.0/_9o3;_ao3=1.0/_ao3;_97=1.0/_97;_a7=1.0/_a7;var _p7=_q7(__n3.left,_m7.left);var _Y4=_r7(__n3.right,_m7.right);var _s7=_q7(__n3.top,_m7.top);var __4=_r7(__n3.bottom,_m7.bottom);if((_9o3==1)&&(_97==1)&&(_ao3==1)&&(_a7==1)&&(_bo3==0)&&(_b7==0)){for(var i=_p7;i<=_Y4;i++){for(var _J6=_s7;_J6<=__4;_J6++){var _w7=i-_F7+this.xOrigin;var _y7=_J6-_G7+this.yOrigin;if((_w7<0)||(_w7>=this.width))continue;if((_y7<0)||(_y7>=this.height))continue;if(this._7b1){if(!this._3I(_w7,
_y7,this._o7[_Zn3]))continue;}_w7=i-_77+_b5.xOrigin;_y7=_J6-_87+_b5.yOrigin;if((_w7<0)||(_w7>=_b5.width))continue;if((_y7<0)||(_y7>=_b5.height))continue;if(_b5._7b1){if(!_b5._3I(_w7,_y7,_b5._o7[_co3]))continue;}return true;}}}else if((_bo3==0)&&(_b7==0)){for(var i=_p7;i<=_Y4;i++){for(var _J6=_s7;_J6<=__4;_J6++){var _w7=Math.floor(((i-_F7)*_9o3+this.xOrigin));var _y7=Math.floor(((_J6-_G7)*_ao3+this.yOrigin));if((_w7<0)||(_w7>=this.width))continue;if((_y7<0)||(_y7>=this.height))continue;if(this._7b1){if(!this._3I(_w7,
_y7,this._o7[_Zn3]))continue;}_w7=Math.floor(((i-_77)*_97+_b5.xOrigin));_y7=Math.floor(((_J6-_87)*_a7+_b5.yOrigin));if((_w7<0)||(_w7>=_b5.width))continue;if((_y7<0)||(_y7>=_b5.height))continue;if(_b5._7b1){if(!_b5._3I(_w7,_y7,_b5._o7[_co3]))continue;}return true;}}}else {var _Xn3=Math.sin(-_bo3*_u7/180);var _Yn3=Math.cos(-_bo3*_u7/180);var _t7=Math.sin(-_b7*_u7/180);var _v7=Math.cos(-_b7*_u7/180);for(var i=_p7;i<=_Y4;i++){for(var _J6=_s7;_J6<=__4;_J6++){var _w7=Math.floor(((_Yn3*(i-_F7)+_Xn3*(_J6-_G7))*_9o3+this.xOrigin));
var _y7=Math.floor(((_Yn3*(_J6-_G7)-_Xn3*(i-_F7))*_ao3+this.yOrigin));if((_w7<0)||(_w7>=this.width))continue;if((_y7<0)||(_y7>=this.height))continue;if(this._7b1){if(!this._3I(_w7,_y7,this._o7[_Zn3]))continue;}_w7=Math.floor(((_v7*(i-_77)+_t7*(_J6-_87))*_97+_b5.xOrigin));_y7=Math.floor(((_v7*(_J6-_87)-_t7*(i-_77))*_a7+_b5.yOrigin));if((_w7<0)||(_w7>=_b5.width))continue;if((_y7<0)||(_y7>=_b5.height))continue;if(_b5._7b1){if(!_b5._3I(_w7,_y7,_b5._o7[_co3]))continue;}return true;}}}return false;};_2b1.prototype._C23=function(_Zn3,
__n3,_F7,_G7,_b6,_c6,_d6,_ho3,_io3,_jo3,_ko3){if(!this._7b1){return true;}if(this._n7<=0){return false;}_Zn3=_Zn3%this._o7.length;if(_Zn3<0){_Zn3=_Zn3+this._o7.length;}if((_ho3==_jo3)||(_io3==_ko3)){var _Wh2=new _yx();_Wh2.left=_ho3;_Wh2.top=_r7(_io3,_ko3);_Wh2.right=_jo3;_Wh2.bottom=_q7(_io3,_ko3);return this._s23(_Zn3,__n3,_F7,_G7,_b6,_c6,_d6,_Wh2);}var _P7=Math.sin(-_d6*Math.PI/180.0);var _Q7=Math.cos(-_d6*Math.PI/180.0);_F7-=0.5;_G7-=0.5;if(Math.abs(_jo3-_ho3)>=Math.abs(_ko3-_io3)){if(_jo3<_ho3){var _Je=_jo3;
_jo3=_ho3;_ho3=_Je;_Je=_ko3;_ko3=_io3;_io3=_Je;}var _iE=(_ko3-_io3)/(_jo3-_ho3);for(var i=_q7(__n3.left,_ho3);i<=_r7(__n3.right,_jo3);i++){var _w7=Math.floor((_Q7*(i-_F7)+_P7*(_io3+(i-_ho3)*_iE-_G7))/_b6+this.xOrigin);var _y7=Math.floor((_Q7*(_io3+(i-_ho3)*_iE-_G7)-_P7*(i-_F7))/_c6+this.yOrigin);if((_w7<0)||(_w7>=this.width))continue;if((_y7<0)||(_y7>=this.height))continue;if(this._o7[_Zn3][_w7+(_y7*this.width)])return true;}}else {if(_ko3<_io3){var _Je=_ko3;_ko3=_io3;_io3=_Je;_Je=_jo3;_jo3=_ho3;_ho3=_Je;
}var _iE=(_jo3-_ho3)/(_ko3-_io3);for(var i=_q7(__n3.top,_io3);i<=_r7(__n3.bottom,_ko3);i++){var _w7=Math.floor((_Q7*(_ho3+(i-_io3)*_iE-_F7)+_P7*(i-_G7))/_b6+this.xOrigin);var _y7=Math.floor((_Q7*(i-_G7)-_P7*(_ho3+(i-_io3)*_iE-_F7))/_c6+this.yOrigin);if((_w7<0)||(_w7>=this.width))continue;if((_y7<0)||(_y7>=this.height))continue;if(this._o7[_Zn3][_w7+(_y7*this.width)])return true;}}return false;};_2b1.prototype._Rb1=function(_c5){if(this._n7<=0){return null;}_c5=_c5%this._n7;if(_c5<0){_c5=_c5+this._n7;}if(this._l5){
return this._l5[_c5];}return null;};_2b1.prototype._Qa1=function(){var self=this;var _lo3=function(_ik){var _yk=_ik._yk;for(var i=0;i<_yk.length;i++){var _9o=_yk[i];var _mo3;if(_9o.mask_index>=0){_mo3=_m6._n6(_9o.mask_index);}else {_mo3=_m6._n6(_9o.sprite_index);}if(_mo3===self){_9o._dI=true;}}};_lo3(_c4._0H);_lo3(_c4._SI);};/*@constructor */function _tI2(){this.Sprites=[];}_tI2.prototype._3b1=function(_dn3){var _c7=this.Sprites.length;this.Sprites[_c7]=_dn3;return _c7;};_tI2.prototype._Vf1=function(_no3){var _mN=this.Sprites[_no3];
if(!_mN)return null;if((_mN._xU2!==null)&&(_mN._xU2!==undefined)){return _mN._xU2._eq2;}return _mN._l5.length;};_tI2.prototype._n6=function(_no3){if(Number.isNaN(_no3))return null;if(_no3<0||_no3>=this.Sprites.length)return null;return this.Sprites[_no3];};_tI2.prototype._PU2=function(_w4){for(var i=0;i<this.Sprites.length;i++){if((this.Sprites[i]!=null)&&(this.Sprites[i]!=undefined)&&(this.Sprites[i].pName==_w4)){return i;}}return -1;};_tI2.prototype._tC=function(){var ids=[];for(var i=0;i<this.Sprites.length;
++i){if(this.Sprites[i]){ids.push(i);}}return ids;};_tI2.prototype._pl=function(_yg){var _tJ2=this.Sprites[_yg];if(_tJ2!=undefined){var _oo3=true;for(var i=0;i<_tJ2._l5.length;i++){var _k5=_tJ2._l5[i];if(!_k5||!_k5.texture)continue;var _n5=_k5.texture;if(!_n5||!_n5._z9)continue;if(_oo3){_09._HS1();_oo3=false;}_09._7b._LU1(_n5._z9);_09._MU1(_n5._z9._8e1);_n5._z9=null;}this.Sprites[_yg]=undefined;}};_tI2.prototype._3J2=function(_lU1){try{var _po3={data:new Uint8Array(_lU1),offset:0};function _qo3(_ro3){var _5d1=";";
var _xl="";while(_po3.offset<_ro3.data.byteLength){if(_ro3.data[_po3.offset]===_5d1.charCodeAt(0)){_po3.offset++;break;}_xl=_xl+String.fromCharCode(_ro3.data[_po3.offset]);_po3.offset++;}return _xl;};var type=_qo3(_po3);if(type=="rswf"){var version=_qo3(_po3),_so3=version.split('.',3);_8p2._hk1=parseInt(_so3[0]);_8p2._ik1=parseInt(_so3[1]);_8p2.version=parseInt(_so3[2]);var _to3=parseInt(_qo3(_po3)),_uo3=parseInt(_qo3(_po3));this._Im3=[];var _Dd=_to3;for(var i=0;i<_uo3;i++){var _vo3=parseInt(_qo3(_po3));
this._Im3[i]=_lU1.slice(_Dd,_Dd+_vo3);_Dd+=_vo3;}}}catch(e){debug("Cannot parse SWF data "+e.message);}};_tI2.prototype._1J2=function(_wo3){function _xo3(_05,__4){var _qa3=(_05>>16)&0xffff,_Fw2=_05&0xffff;var _cT=(__4>>16)&0xffff,__N1=__4&0xffff;var _Kc1=((_qa3*__N1)+(_Fw2*_cT))&0xffff;return((_Kc1<<16)>>>0)+(_Fw2*__N1);};function _yo3(_lU1){var _bR=Math.pow(2,32);var decode=6*7;var _zo3="";for(var _J6=0;_J6<_lU1.length;_J6++){_zo3+=String.fromCharCode((_lU1.charCodeAt(_J6)-(decode&0xff))&0xff);decode=_xo3(decode,
(decode+1)%_bR)%_bR;}return _zo3;};this._1c2=[];try{var _Ao3=_wo3.split(';',4);if(_Ao3[0]=="skel"){var version=_Ao3[1];var _Dd=parseInt(_Ao3[2]);var _Bo3=parseInt(_Ao3[3]);var _Co3=4+_Bo3;_Ao3=_wo3.split(';',_Co3);for(var i=0;i<_Bo3;i++){var _Do3=parseInt(_Ao3[4+i]);var _Eo3=_wo3.substr(_Dd,_Do3);var _Fo3=_Eo3.split(';',2);var _6a=0;var _Go3=parseInt(_Fo3[_6a++]);var _l9=parseInt(_Fo3[_6a++]);var _m9=[];_Fo3=_Eo3.split(';',_l9*2+3);for(var _s7=0;_s7<_l9;_s7++){var _Ho3=new Object();_Ho3.width=parseInt(_Fo3[_6a++]);
_Ho3.height=parseInt(_Fo3[_6a++]);_m9[_s7]=_Ho3;}var _Io3=_Fo3[_6a].substr(0,_Go3);var _Jo3=_Fo3[_6a].substr(_Go3,_Fo3[_6a].length-_Go3);this._1c2.push({json:_yo3(_SA(_Io3)),_R5:_yo3(_SA(_Jo3)),_l9:_l9,_m9:_m9});_Dd+=_Do3;}}}catch(e){debug("Cannot parse Spine data "+e.message);}};/*@constructor */function _FJ2(){this.__type="[TextureGroupInfo]";this.pName="unknowntexturegroup";this._yZ1=[];this.sprites=[];this._GJ2=[];this._HJ2=[];this._IJ2=[];}/*@constructor */function _uI2(){this.TextureGroupInfo=[];
}_uI2.prototype._JJ2=function(_Ko3){var _c7=this.TextureGroupInfo.length;this.TextureGroupInfo[_c7]=_Ko3;return _c7;};_uI2.prototype._fC=function(_M_2){for(var i=0;i<this.TextureGroupInfo.length;i++){if(this.TextureGroupInfo[i].pName==_M_2){return this.TextureGroupInfo[i];}}return null;};_uI2.prototype._Lo3=function(_Mo3){for(var i=0;i<this.TextureGroupInfo.length;i++){var _EJ2=this.TextureGroupInfo[i];for(var _J6=0;_J6<_EJ2._yZ1.length;_J6++){if(_EJ2._yZ1[_J6]==_Mo3){return _EJ2;}}}return null;};_uI2.prototype._No3=function(_Oo3){
for(var i=0;i<this.TextureGroupInfo.length;i++){var _EJ2=this.TextureGroupInfo[i];for(var _J6=0;_J6<_EJ2._yZ1.length;_J6++){if(_o5[_EJ2._yZ1[_J6]]){var _s9=_o5[_EJ2._yZ1[_J6]];if(_s9._z9){if(_s9._z9===_Oo3){return _EJ2;}}}}}return null;};function _Po3(_Qo3){if(_o5[_Qo3]){if(_o5[_Qo3]._z9){return _o5[_Qo3]._z9;}}return null;}function texture_is_ready(_Ro3){if(_09==null)return -1;if((typeof(_Ro3)==="string")){var _EJ2=_RG2._fC(yyGetString(_Ro3));if(_EJ2==null){return 0;}for(var i=0;i<_EJ2._yZ1.length;i++){var _So3=_Po3(_EJ2._yZ1[i]);
if(_So3!=null){if(!_pU1(_So3,_Wa._qU1)){return 0;}}else {return 0;}}return 1;}else {var _So3=_Po3(yyGetInt32(_Ro3));if(_So3!=null){return _pU1(_So3,_Wa._qU1);}}return 0;}function texture_prefetch(_Ro3){if(_09==null)return -1;if((typeof(_Ro3)==="string")){var _EJ2=_RG2._fC(yyGetString(_Ro3));if(_EJ2==null){return -1;}for(var i=0;i<_EJ2._yZ1.length;i++){var _So3=_Po3(_EJ2._yZ1[i]);if(_So3!=null){_A9(_So3);}}}else {var _So3=_Po3(yyGetInt32(_Ro3));if(_So3!=null){_A9(_So3);}}}function texture_flush(_Ro3){if(_09==null)return -1;
if((typeof(_Ro3)==="string")){var _EJ2=_RG2._fC(yyGetString(_Ro3));if(_EJ2==null){return -1;}for(var i=0;i<_EJ2._yZ1.length;i++){var _So3=_Po3(_EJ2._yZ1[i]);if(_So3!=null){_on(_So3);}}}else {var _So3=_Po3(yyGetInt32(_Ro3));if(_So3!=null){_on(_So3);}}}function texturegroup_get_names(){var _95=[];for(var i=0;i<_RG2.TextureGroupInfo.length;i++){_95.push(_RG2.TextureGroupInfo[i].pName);}return _95;}function texturegroup_get_textures(_To3){var _EJ2=_RG2._fC(yyGetString(_To3));if(_EJ2==null){return -1;}var _95=new Array();
for(var i=0;i<_EJ2._yZ1.length;i++){_95.push(_EJ2._yZ1[i]);}return _95;}function texturegroup_get_sprites(_To3){var _EJ2=_RG2._fC(yyGetString(_To3));if(_EJ2==null){return -1;}var _95=new Array();for(var i=0;i<_EJ2.sprites.length;i++){_95.push(_EJ2.sprites[i]);}return _95;}function texturegroup_get_fonts(_To3){var _EJ2=_RG2._fC(yyGetString(_To3));if(_EJ2==null){return -1;}var _95=new Array();for(var i=0;i<_EJ2._HJ2.length;i++){_95.push(_EJ2._HJ2[i]);}return _95;}function texturegroup_get_tilesets(_To3){var _EJ2=_RG2._fC(yyGetString(_To3));
if(_EJ2==null){return -1;}var _95=new Array();for(var i=0;i<_EJ2._IJ2.length;i++){_95.push(_EJ2._IJ2[i]);}return _95;}function texturegroup_load(_To3,_db1){}function texturegroup_unload(_To3){}function texturegroup_get_status(_To3){return 3;}function texturegroup_set_mode(_Uo3,_Vo3,_Wo3){}var _Xo3=0;function texture_debug_messages(_xr){if(_09==null)return -1;if(yyGetBool(_xr))_Xo3=1;else _Xo3=0;}function _Yo3(_Oo3){if(_Xo3>0){var _3L2=-1;for(var i=0;i<_o5.length;i++){if(_o5[i]){if(_o5[i]._z9){if(_o5[i]._z9===_Oo3){
_3L2=0;break;}}}}var _EJ2=_RG2._No3(_Oo3);if(_EJ2!=null){show_debug_message("Texture unpacked - Group: "+_EJ2.pName+", Texture ID: "+String(_3L2)+", Width: "+_Oo3._OT1+", Height "+_Oo3._PT1);}else if(_Xo3>1){show_debug_message("Texture unpacked - Group: None, Texture ID: "+String(_3L2)+", Width: "+_Oo3._OT1+", Height "+_Oo3._PT1);}}}function _Zo3(_Oo3){if(_Xo3>0){var _3L2=-1;for(var i=0;i<_o5.length;i++){if(_o5[i]){if(_o5[i]._z9){if(_o5[i]._z9===_Oo3){_3L2=0;break;}}}}var _EJ2=_RG2._No3(_Oo3);if(_EJ2!=null){
show_debug_message("Texture flushed - Group: "+_EJ2.pName+", Texture ID: "+String(_3L2)+", Width: "+_Oo3._OT1+", Height "+_Oo3._PT1);}else if(_Xo3>1){show_debug_message("Texture flushed - Group: None, Texture ID: "+String(_3L2)+", Width: "+_Oo3._OT1+", Height "+_Oo3._PT1);}}}var _ng1=0,_og1=1,__o3=2;var _0p3=0,_1p3=1;var _2p3=0,_wg1=1;var _3p3=0,_4p3=1,_5p3=2,_6p3=3;var _7p3=0,_dg1=1,_9g1=2,_ag1=3;function _8p3(_9p3){return _9p3/1e6;}function _ap3(_oy){return _oy*1e6;}class _bp3{constructor(_yg){this.type=_7p3;
this._jv=0;this._jg1=[];if(_yg===undefined){this.id=_bp3._cp3++;}else {if(_yg<_bp3._cp3){throw new Error("Failed to assign the correct ID to a built-in time source.")}this.id=_yg;_bp3._cp3=_yg+1;}}_Mg1(_4j){if(_4j==this){this._jg1=[];}else {this._dp3(_4j);}}_Lg1(){return this;}_Kg1(_ep3){if(_ep3){for(let i=0;i<this._jg1.length;++i){const _lg1=this._jg1[i];if(_lg1!=null){_lg1._Kg1(true);}}}}_Aw2(_fp3){this._jv+=_fp3;}_yw2(){for(let i=0;i<this._jg1.length;++i){const _lg1=this._jg1[i];if(_lg1!=null){_lg1._Aw2(this._jv);
}}this._jv=0;}_Bw2(){const _jg1=this._jg1.slice();for(let i=0;i<_jg1.length;++i){const _gp3=_jg1[i];if(_gp3!=null){const _jc=this._jg1.indexOf(_gp3);if(_jc!=-1){const _lg1=this._jg1[_jc];if(!_lg1._hp3()){_lg1._ip3();}if(_lg1._hp3()){this._dp3(_lg1);}}}}}_Dg1(_qg1,_rg1,_sg1,_tg1,_ug1,_vg1){const _lg1=new _jp3(this,_qg1,_rg1,_sg1,_tg1,_ug1,_vg1);if(_lg1!=null){this._jg1.push(_lg1);return _lg1;}return null;}_jh1(_qg1,_rg1,_sg1,_6u){const _lg1=new _kp3(this,_qg1,_rg1,_sg1,_6u);if(_lg1!=null){this._jg1.push(_lg1);
return _lg1;}return null;}_dp3(_ah1){const _lg1=this._jg1.indexOf(_ah1);if(_lg1!=-1){this._jg1.splice(_lg1,1);}}_kg1(){return this._jg1;}_Ig1(){return this._jg1.length;}_mg1(){return this.id;}_lh1(_yg){if(this.id==_yg){return this;}for(let i=0;i<this._jg1.length;++i){const _lg1=this._jg1[i];if(_lg1!=null){const _fg1=_lg1._lh1(_yg);if(_fg1!=null){return _fg1;}}}return null;}_Ng1(){for(let i=0;i<this._jg1.length;++i){const _lg1=this._jg1[i];if(_lg1!=null){const _fg1=_lg1._Ng1();if(_fg1!=null){return _fg1;}}}return null;
}_8g1(){return this.type;}}_bp3._cp3=0;class _lp3 extends _bp3{constructor(_yg){super(_yg);this.type=_dg1;this.state=_4p3;}_KC(){if(this.state==_4p3){this.state=_5p3;}for(let i=0;i<this._jg1.length;++i){const _lg1=this._jg1[i];if(_lg1!=null){_lg1._KC();}}}_wZ(){if(this.state==_5p3){this.state=_4p3;}for(let i=0;i<this._jg1.length;++i){const _lg1=this._jg1[i];if(_lg1!=null){_lg1._wZ();}}}_Pg1(){this._mp3(_4p3);}_6h1(){return this.state;}_mp3(_r61){this.state=_r61;for(let i=0;i<this._jg1.length;++i){const _lg1=this._jg1[i];
if(_lg1!=null){_lg1._mp3(this.state);}}}}class _jp3 extends _lp3{constructor(_pg1,_qg1,_rg1,_sg1,_tg1,_ug1,_vg1){super();this.type=_9g1;this._np3=false;this._op3=false;this.parent=_pg1;this._xg1=1;this._yg1=_0p3;this._zg1=null;this._lk=null;this._pp3=0;this._qp3=0;this._rp3=0;this._Bg1=_wg1;this._s7=0;this.state=_3p3;this._Vg1(_qg1,_rg1,_sg1,_tg1,_ug1,_vg1);}_Mg1(_4j){this._dp3(_4j);}_Lg1(){return this.parent;}_Aw2(_fp3){this._jv=_fp3;if(this.state==_4p3){this._sp3();}this._yw2();}_ip3(){if(this.state==_4p3){
if(this._tp3()||this._up3()){this._vp3();}}this._Bw2();}_Pg1(){if(this._wp3()){this._xp3();}this._mp3(_4p3);}_ia1(){if(this.state!=_3p3&&!this._wp3()){this.state=_6p3;this._s7=0;}for(let i=0;i<this._jg1.length;++i){const _lg1=this._jg1[i];if(_lg1!=null){_lg1._ia1();}}}_xp3(){this.state=_3p3;this._s7=0;this._rp3=this._pp3;}_JC(){this._mp3(_3p3);this._s7=0;this._rp3=this._pp3;this._qp3=0;}_Vg1(_qg1,_rg1,_sg1,_tg1,_ug1,_vg1){this._yp3(_qg1,_rg1,_sg1,_tg1,_ug1,_vg1);this._xg1=this._zp3(_qg1,_rg1);this._yg1=_rg1;
this._zg1=(typeof _sg1==="number")?_0j1(_sg1):_sg1;this._lk=[global,global,..._tg1];this._pp3=_ug1;this._Bg1=_vg1;this._JC();}_Xg1(){if(this._yg1==_0p3){return _8p3(this._xg1);}return this._xg1;}_2h1(){return this._yg1;}_Zg1(){return this._qp3;}_0h1(){return this._rp3;}_4h1(){const _Ap3=_q7(this._xg1-this._s7,0);if(this._yg1==_0p3){return _8p3(_Ap3);}return _Ap3;}_8h1(){return this.parent;}_Jg1(){return this._np3;}_Ng1(){if(this._np3){return this;}const _lg1=super._Ng1();if(_lg1!=null){return _lg1;}return null;
}_Kg1(_ep3){this._op3=true;super._Kg1(_ep3);}_hp3(){return this._op3;}_sp3(){if(this._yg1==_0p3){this._s7+=this._jv;}else if(this._yg1==_1p3){++this._s7;}}_Bp3(){if(this._s7<this._xg1){this._s7-=this._xg1;}else {this._s7%=this._xg1;}}_Cp3(){++this._qp3;if(this._rp3>0){--this._rp3;}}_wp3(){return(this._rp3==0);}_tp3(){return(this._s7>=this._xg1);}_up3(){if(this._Bg1==_2p3&&this._yg1==_0p3){const _Dp3=this._xg1-this._s7;if(_Dp3>this._jv){return false;}const _Ep3=(this._s7+this._jv)-this._xg1;if(_Dp3<_Ep3){
return true;}}return false;}_vp3(){this._Cp3();if(this._wp3()){this._s7=this._xg1;this.state=_6p3;}else {this._Bp3();}this._Fp3();}_Fp3(){if(this._zg1!=null){this._np3=true;this._zg1(...this._lk);this._np3=false;}}_zp3(_qg1,_rg1){if(_rg1==_0p3){const _xg1=_q7(_qg1,1e-6);return Math.floor(_ap3(_xg1));}else {const _xg1=_q7(_qg1,1.0);return Math.floor(_xg1);}}_yp3(_qg1,_rg1,_sg1,_tg1,_ug1,_vg1){this._Gp3(_rg1);this._Hp3(_qg1,_rg1);this._Ip3(_sg1);this._Jp3(_tg1);this._Kp3(_ug1);this._Lp3(_vg1);}_Hp3(_qg1,_rg1){
switch(_rg1){case _0p3:{if(_qg1<1e-6){console.warn("Warning: Second-based time source period was too low and will be clipped (min: 1e-6).\n");}break;}case _1p3:{const frac=_qg1%1;if(_qg1<1.0){console.warn("Warning: Frame-based time source period was too low and will be clipped (min: 1).\n");}else if(frac!=0.0){console.warn("Warning: Non-integral period for a frame-based time source will be converted to an integer.\n");}break;}default :{_q5("Error: Illegal time source unit type: "+_rg1);break;}}}_Gp3(_rg1){
switch(_rg1){default :_q5("Error: Illegal time source unit type: "+_rg1);case _0p3:case _1p3:break;}}_Ip3(_sg1){if(typeof _sg1!='function'&&(typeof _sg1!='number'||_0j1(_sg1)===null)){_q5("Error: Time source callback must be a method or function");}}_Jp3(_tg1){if(!Array.isArray(_tg1)){_q5("Error: Time source callback arguments must be an array");}}_Kp3(_ug1){if(_ug1<-1){_q5("Error: Illegal time source repetition value: "+_ug1);}}_Lp3(_vg1){switch(_vg1){default :_q5("Error: Illegal time source expiry type: "+_vg1);
case _2p3:case _wg1:break;}}};class _kp3 extends _jp3{constructor(_pg1,_qg1,_rg1,_sg1,_6u){super(_pg1,_qg1,_rg1,_sg1,[],_6u==true?-1:1,_wg1);this.type=_ag1;this.state=_4p3;}_vp3(){this._Cp3();if(this._wp3()){this._s7=this._xg1;this._op3=true;}else {this._Bp3();}this._Fp3();}};const _xw2=new _bp3(_ng1);const _zw2=new _lp3(_og1);const _ih1=new _bp3(__o3);const _gg1=new Map([[_ng1,_xw2],[_og1,_zw2]]);/*@constructor */function _Mp3(_zL2){this.__type="[Timeline]";if((_zL2!=null)&&(_zL2!=undefined)){this.pName=_zL2.pName;
this.Events=_zL2.Events;}else {this.pName="";this.Events=[];}}_Mp3.prototype._tw2=function(_Np3){if(this.Events.length==0){return 0;}if(_Np3>this.Events[this.Events.length-1].Time){return this.Events.length;}for(var i=0;i<this.Events.length;i++){if(this.Events[i].Time>=_Np3){return i;}}return this.Events.length;};_Mp3.prototype._vw2=function(_Np3){if(this.Events.length==0){return 0;}if(_Np3<this.Events[0].Time){return -1;}for(var i=this.Events.length-1;i>=0;i--){if(this.Events[i].Time<=_Np3){return i;}}return -1;
};_Mp3.prototype._rh1=function(){return this.Events[this.Events.length-1].Time;};/*@constructor */function _zI2(){this.Timelines=[];}_zI2.prototype._Vf=function(_zL2){var _3m=null;if(_zL2!=null){_3m=new _Mp3(_zL2);}this.Timelines[this.Timelines.length]=_3m;};_zI2.prototype._n6=function(_c5){if((_c5<0)||(_c5>=this.Timelines.length)){return undefined;}return this.Timelines[_c5];};_zI2.prototype._fC=function(_w4){for(var i=0;i<this.Timelines.length;i++){if(this.Timelines[i].pName==_w4){return i;}}return -1;
};_zI2.prototype._tC=function(){var ids=[];for(var i=0;i<this.Timelines.length;++i){if(this.Timelines[i]){ids.push(i);}}return ids;};_zI2.prototype._ag=function(_c5){if((_c5>=0)||(_c5<this.Timelines.length)){this.Timelines[_c5].Events._ag();}};_zI2.prototype._nh1=function(){var index=this.Timelines.length;var _sA=new _Mp3(null);_sA.pName="__newtimeline"+index;this.Timelines[index]=_sA;return index;};_zI2.prototype._pl=function(_c5){if((_c5>=0)||(_c5<this.Timelines.length)){this.Timelines[_c5]=null;}};_zI2.prototype._qh1=function(_c5,
_Np3,_ph1){if((_c5>=0)||(_c5<this.Timelines.length)){var _sA=this.Timelines[_c5];var _B53=_sA._vw2(_Np3)+1;var _Ik=[];_Ik.Time=_Np3;_Ik.Event=_ph1;_sA.Events.splice(_B53,0,_Ik);}};_zI2.prototype._sh1=function(_c5,_Np3){if((_c5>=0)||(_c5<this.Timelines.length)){var _sA=this.Timelines[_c5];for(var i=0;i<_sA.Events.length;i++){if(_sA.Events[i].Time==_Np3){_sA.Events.splice(i,1);break;}}}};/*@constructor */function _Op3(){this.pName="";this.moment=0;this._Pp3="";this.pFunc=null;}/*@constructor */function _pJ2(_Qp3){
if(!_Qp3){this._yk=[];}else {this._yk=_Qp3;}}_pJ2.prototype._fC=function(_0I2){for(var i=1;i<this._yk.length;i++){if(this._yk[i].pFunc==_0I2){return i;}}return -1;};_pJ2.prototype._n6=function(_s4){return this._yk[_s4];};_pJ2.prototype._ZM2=function(_Rp3){for(var i=1;i<this._yk.length;i++){var _W73=this._yk[i];if(_W73.moment==_Rp3){_Fx._w6(_Kz2,i);}}};var _sC=-1,_2C=0,_3C=1,_5C=2,_4C=3,_7C=4,_aC=5,_8C=6,_9C=7,_bC=8,_cC=9,_dC=10,_gC=11,_Sp3=12,_6C=13;var _zC=0x01000000;var _Tp3=0x02000000;var _Up3=0x04000000;
var _Vp3=0x08000000;var _Xn=(0x00000001|_Up3);var _Wp3=(0x00000002|_Up3);var _vV=(0x00000004|_Up3);var _zV=(0x00000008|_Up3);var _BV=(0x00000010|_Up3);var _521=(_2C|_zC);var _d21=(_3C|_zC);var _Xp3=(_5C|_zC);var _Yp3=(_4C|_zC);var _Zp3=(_7C|_zC);var __p3=(_aC|_zC);var _VO=(_8C|_zC);var _0q3=(_9C|_zC);var _1q3=(_bC|_zC);var _g21=(_cC|_zC);var _2q3=(_dC|_zC);var _sV=(_gC|_zC);var _0o=(_Sp3|_zC);var _e21=(_6C|_zC);var _3q3=(0x00000001|_Tp3);var _4q3=(0x00000002|_Tp3);var _5q3=(0x00000004|_Tp3);var _6q3=(0x00000008|_Tp3);var _7q3=(0x00000010|_Tp3);
var _8q3=(0x00000020|_Tp3);var _9q3=(0x00000001|_Vp3);var _aq3=(0x00000002|_Vp3);var _bq3=(0x00000003|_Vp3);var _cq3=(0x00000004|_Vp3);var _dq3=(0x00000005|_Vp3);function _Zn(_wd,_Ol){this.type=_wd;this.value=_Ol;}function _Wn(_05,__4){return new _Zn(_05,__4);}function YYASSET_REF(_05){var index=_05&0x00ffffff;var type=(_05>>24)&0xff|_zC;switch(type){case _521:case _sV:return _Wn(type,index);default :return index;}}var _eq3=[{"name":"instance","type":_Xn},{"name":"ds_list","type":_3q3},{"name":"ds_map","type":_4q3}
,{"name":"ds_grid","type":_5q3},{"name":"ds_queue","type":_6q3},{"name":"ds_stack","type":_7q3},{"name":"ds_priority","type":_8q3},{"name":"object","type":_521},{"name":"sprite","type":_d21},{"name":"sound","type":_Xp3},{"name":"room","type":_Yp3},{"name":"path","type":_Zp3},{"name":"script","type":__p3},{"name":"font","type":_VO},{"name":"timeline","type":_0q3},{"name":"shader","type":_1q3},{"name":"sequence","type":_g21},{"name":"animcurve","type":_2q3},{"name":"particle system resource","type":_sV}
,{"name":"dbgref","type":_Wp3},{"name":"particle system instance","type":_vV},{"name":"particle emitter","type":_zV},{"name":"particle type","type":_BV},{"name":"buffer","type":_9q3},{"name":"vertex buffer","type":_aq3},{"name":"vertex format","type":_bq3},{"name":"surface","type":_cq3},{"name":"time source","type":_dq3},{"name":"tilemap","type":_0o},{"name":"tileset","type":_e21},];function _Ey(_5t){var _fq3="unknown";for(var _c7=0;_c7<_eq3.length;++_c7){if(_eq3[_c7].type==_5t){_fq3=_eq3[_c7].name;
break;}}return _fq3;}function _uy(_w4){var _fq3=-1;for(var _c7=0;_c7<_eq3.length;++_c7){if(_eq3[_c7].name==_w4){_fq3=_eq3[_c7].type;break;}}return _fq3;}function yyGetReal(_8d){if(_8d instanceof _Zn)return _8d.value;else if(typeof _8d==="number")return _8d;else if(typeof _8d==="boolean")return _8d?1:0;else if(typeof _8d==="string"){_8d=_8d.trim();var match=_8d.match(_6R);if(match!=null){return Number(match);}}else if(typeof _8d==="object"){if(_8d instanceof Long){return _8d._9R();}else if(!(_8d instanceof Array)&&!(_8d instanceof ArrayBuffer)){
if(_8d.id!==undefined){return _8d.id;}return Number(_8d);}}else if(typeof _8d==="function"){var _gq3=method_get_index(_8d);if(_gq3!==undefined){return _gq3;}}_q5("unable to convert "+string(_8d)+" to a number");return 0;}function yyGetInt64(_8d){if(_8d instanceof _Zn)return _8d.value;else if(typeof _8d==="number")return Long._0R(_8d,false);else if(typeof _8d==="boolean")return Long._0R(_8d?1:0,false);else if(typeof _8d==="string"){var match=_8d.match(_6R);if(match!=null){return Long._0R(Number(match),false);}}else if(typeof _8d==="object"){
if(_8d instanceof Long){return _8d;}else if(!(_8d instanceof Array)&&!(_8d instanceof ArrayBuffer)){if(_8d.id!==undefined){return Long._0R(_8d.id,false);}return Long._0R(Number(_8d),false);}}else if(typeof _8d==="function"){var _gq3=method_get_index(_8d);if(_gq3!==undefined){return _gq3;}}_q5("unable to convert "+string(_8d)+" to a number");return 0;}function yyGetInt32(_8d){if(_8d instanceof _Zn)return _8d.value;else if(typeof _8d==="number")return ~~_8d;else if(typeof _8d==="boolean")return _8d?1:0;else if(typeof _8d==="string"){
var match=_8d.match(_6R);if(match!=null){return ~~Number(match);}}else if(typeof _8d==="object"){if(_8d instanceof Long){return _8d._402();}else if(!(_8d instanceof Array)&&!(_8d instanceof ArrayBuffer)){if(_8d.id!==undefined){return _8d.id;}return ~~Number(_8d);}}else if(typeof _8d==="function"){var _gq3=method_get_index(_8d);if(_gq3!==undefined){return _gq3;}}_q5("unable to convert "+string(_8d)+" to a number");return 0;}function yyGetBool(_8d){if(_8d instanceof _Zn)return _8d.value>0;else if(typeof _8d==="boolean")return _8d;
else if(_8d===undefined)return false;else if(typeof _8d==="number")return _8d>0.5;else if(typeof _8d==="string"){if(_8d==="true"){return true;}else if(_8d==="false"){return false;}else {var match=_8d.match(_6R);if(match!=null){return Number(match)>0.5;}}}else if(typeof _8d==="object"){if(_8d instanceof Long){return _8d._9R()>0.5;}else if(_8d instanceof _BI){return true;}else if(_8d.__yyIsGMLObject)return true;else if(!(_8d instanceof Array)&&!(_8d instanceof ArrayBuffer)){return Number(_8d)>0.5;}else if(_8d instanceof ArrayBuffer){
return _8d!=g_pBuiltIn.pointer_null;}}else if(typeof _8d==="function"){return true;}_q5("unable to convert "+string(_8d)+" to a boolean");return false;}function _UO(_Ol,_5t,_hq3,_Wk,_iq3){var _95=-1;if(_Ol instanceof _Zn){var type=_Ol.type;if(type!=_5t){if(!_iq3)_q5("incorrect type ("+_Ey(type)+") expecting a "+_Ey(_5t));}else _95=_Ol.value;}else {_95=yyGetInt32(_Ol);}if(!_iq3){if(_95<0||_95>=_hq3||(_Wk&&!_Wk[_95])){_q5("invalid reference to ("+_Ey(_5t)+")");}}return _95;}var _jq3=0;var _kq3=1;var _lq3=1;var _mq3=0;
var _nq3=new Map();function _oq3(_8d){return _nq3.has(_8d);}function _pq3(_8d){_nq3.set(_8d,_8d);}function _qq3(_8d){_nq3.delete(_8d);}function yyGetString(_8d){if(_8d instanceof _Zn){return "ref "+_Ey(_8d.type)+" "+_8d.value;}else if(typeof _8d==="string"){var _95="";if(_mq3>0)_95+="\"";_95+=_8d;if(_mq3>0)_95+="\"";return _95;}else if(_8d===null){return "null";}else if(_8d===undefined){return "undefined";}else if(_8d===g_pBuiltIn.pointer_null){return "null";}else if(typeof _8d==="number"){if(isFinite(_8d)){if((~~_8d)!=_8d){
return _8d.toFixed(2);}else {return _8d.toString();}}else {if(Number.isNaN(_8d))return "NaN";else if(_8d<0)return "-inf";else return "inf";}}else if(typeof _8d==="boolean"){return(_8d)?"1":"0";}else if(typeof _8d==="object"){if(_8d instanceof Long){return _8d.toString(10);}else if(_8d instanceof Array){var _rq3="";++_mq3;if(!_oq3(_8d)){_pq3(_8d);_rq3="[ ";for(var _c7=0;_c7<_8d.length;++_c7){if(_c7!=0){_rq3+=",";}_rq3+=yyGetString(_8d[_c7]);}_rq3+=" ]";_qq3(_8d);}else {_rq3="\"Warning: Recursive array found\"";}--_mq3;
return _rq3;}else {var _rq3="";if(_8d["gmltoString"]!=undefined){_rq3=_8d.gmltoString(_8d,_8d);}else if((typeof g_var2obf!=="undefined")&&(g_var2obf["toString"]!=undefined)&&(_8d[g_var2obf["toString"]]!=undefined)){_rq3=_8d[g_var2obf["toString"]](_8d,_8d);}else {++_mq3;if(!_oq3(_8d)){_pq3(_8d);var _rq3="{ ";var _Ef1=_sq3(_8d,false);for(var _c7=0;_c7<_Ef1.length;_c7+=2){if(_c7!=0){_rq3+=", ";}_rq3+=_Ef1[_c7];_rq3+=" : ";_rq3+=yyGetString(_8d[_Ef1[_c7+1]]);}_rq3+=" }";_qq3(_8d);}else {_rq3="\"Warning: Recursive struct found\"";
}--_mq3;}return _rq3;}}else if(typeof _8d==="function"){var _gq3=method_get_index(_8d);if(_gq3!==undefined){return _gq3.toString();}}return _8d.toString();}var _tq3=0;var _uq3=1;var _vq3=2;var _wq3=6;var _xq3=7;var _yq3=5;var _zq3=3;var _Aq3=4;var _Bq3=8;var _Cq3=9;var _Dq3=10;var _Eq3=11;var _Fq3=12;var _Gq3=13;var _Hq3=14;var _Iq3=15;var _Jq3=0;/*@constructor */function _Kq3(_M_2){this.__type="[Array]";this._XJ=_M_2;this._Lq3=[];}function array_get_2D(_wQ,_Mq3,_Nq3){_Mq3=yyGetInt32(_Mq3);_Nq3=yyGetInt32(_Nq3);if(!(_wQ instanceof Array))_q5("array_get_2D() : argument 0 must be an array");
if(typeof _Mq3!="number")_q5("array_get_2D() : index 1 must be a number");if(typeof _Nq3!="number")_q5("array_get_2D() : index 2 must be a number");if((_Mq3<0)||(_Mq3>=_wQ.length))_q5("array_get_2D() : index 1 out of range");if(!(_wQ[_Mq3] instanceof Array))_q5("array_get_2D() : second dimension is not an array");if((_Nq3<0)||(_Nq3>=_wQ[_Mq3].length))_q5("array_get_2D() : index 2 out of range");return _wQ[_Mq3][_Nq3];}function array_set_2D(_wQ,_Mq3,_Nq3,_8d){if(!(_wQ instanceof Array))_q5("array_set_2D() : argument 0 must be an array");
if(typeof _Mq3!="number")_q5("array_set_2D() : index 1 must be a number");if(typeof _Nq3!="number")_q5("array_set_2D() : index 2 must be a number");if(!(_wQ[_Mq3] instanceof Array))_wQ[_Mq3]=[];_wQ[_Mq3][_Nq3]=_8d;}function array_set_2D_pre(_wQ,_Mq3,_Nq3,_8d){_Mq3=yyGetInt32(_Mq3);_Nq3=yyGetInt32(_Nq3);if(!(_wQ instanceof Array))_q5("array_set_2D_pre() : argument 0 must be an array");if(!(_wQ[_Mq3] instanceof Array))_wQ[_Mq3]=[];_wQ[_Mq3][_Nq3]=_8d;return _8d;}function array_set_2D_post(_wQ,_Mq3,_Nq3,_8d){
_Mq3=yyGetInt32(_Mq3);_Nq3=yyGetInt32(_Nq3);if(!(_wQ instanceof Array))_q5("array_set_2D_post() : argument 0 must be an array");if(!(_wQ[_Mq3] instanceof Array))_wQ[_Mq3]=[];var _95=_wQ[_Mq3][_Nq3];_wQ[_Mq3][_Nq3]=_8d;return _95;}function array_get(_wQ,_Mq3){_Mq3=yyGetInt32(_Mq3);if(!(_wQ instanceof Array))_q5("array_get() : argument 0 must be an array");if((_Mq3<0)||(_Mq3>=_wQ.length))_q5("array_get() : index out of range");return _wQ[_Mq3];}function array_set(_wQ,_Mq3,_8d){_Mq3=yyGetInt32(_Mq3);if(!(_wQ instanceof Array)){
_wQ=[];}_wQ[_Mq3]=_8d;}function array_set_pre(_wQ,_Mq3,_8d){if(!(_wQ instanceof Array)){_wQ=[];}_wQ[_Mq3]=_8d;return _8d;}function array_set_post(_wQ,_Mq3,_8d){if(!(_wQ instanceof Array)){_wQ=[];}var _95=_wQ[_Mq3];_wQ[_Mq3]=_8d;return _95;}function __yy_is_nullish(_8d){return(_8d==undefined)||(_8d==null);}function __yy_gml_array_create(_wQ){_wQ._Oq3=_Jq3;return _wQ;}function _Lz(){this.__type="Object";this.__yyIsGMLObject=true;}_Lz.prototype.toString=function(){return yyGetString(this);};_Lz.prototype.SetImageIndexGML=function(_YE){
this.image_index=_YE;};function __yy_gml_object_create(_1j1,_wQ){var _Y4=new _Lz();var _lk=[];_lk[0]=_Y4;_lk[1]=_1j1;for(var _c7=2;_c7<arguments.length;++_c7){_lk[_c7]=arguments[_c7];}if(typeof _wQ==="number"){_wQ=JSON_game.Scripts[_wQ-100000];}var _ZQ=_wQ._bj3?_wQ._bj3:_wQ;if(!_ZQ.__yyg__is_constructor){_q5("target function for 'new' must be a constructor");}_ZQ.apply(_Y4,_lk);return _Y4;}function is_method(_wQ){return(_wQ instanceof Function)&&(typeof _wQ._vP!=='undefined');}function is_callable(_8d){switch(typeof(_8d)){
case "function":return true;case "number":_8d=JSON_game.Scripts[_8d-100000];break;case "object":if(_8d instanceof Long)_8d=JSON_game.Scripts[_8d._9R()-100000];break;default :return false;}return is_method(_8d);}function is_handle(_8d){return _8d!=undefined&&_8d instanceof _Zn;}function __yyg_call_method(_ak){switch(typeof(_ak)){case "number":_ak=JSON_game.Scripts[_ak-100000];break;case "function":break;case "object":if(_ak instanceof Long)_ak=JSON_game.Scripts[_ak._9R()-100000];else _q5("unable to call function "+string(_ak)+" typeof="+typeof(_ak));
break;default :_q5("unable to call function "+string(_ak)+" typeof="+typeof(_ak));break;}return _ak;}function __yy_method(_Z7,_ak){_ak=_ak._bj3?_ak._bj3:_ak;var _95=_ak;if((_Z7==undefined)||(_Z7==null)){_95=_ak.bind(_Z7);}else {var _05={_ZQ:_ak,_Hx:_Z7};var _Pq3=function(){var _2j1=Array.prototype.slice.call(arguments);_2j1[0]=this._Hx;return this._ZQ.apply(null,_2j1);};_95=_Pq3.bind(_05);}_95._bj3=_ak;_95._dk=_Z7;_95._vP=true;_ak._vP=true;return _95;}function method(_Z7,_ak){if(typeof _ak==="number"){_ak=JSON_game.Scripts[_ak-100000];
}if((typeof _Z7=="number")||(_Z7 instanceof _Zn)){_Z7=yyInst(null,null,_Z7);}if(!(_ak instanceof Function))_q5("method : argument needs to be a function");if(_ak._vP){_ak=_ak._bj3?_ak._bj3:_ak;var _95=_ak;if((_Z7==undefined)||(_Z7==null)){_95=_ak.bind(_Z7);}else {var _05={_ZQ:_ak,_Hx:_Z7};var _Pq3=function(){var _2j1=Array.prototype.slice.call(arguments);_2j1[0]=this._Hx;return this._ZQ.apply(null,_2j1);};_95=_Pq3.bind(_05);}_95._dk=_Z7;_95._bj3=_ak._bj3===undefined?_ak:_ak._bj3;_95._vP=true;return _95;}else {
var _95=undefined;if(_ak._bj3)_ak=_ak._bj3;if(_ak.__yy_bothSelfAndOther){_95=_ak.bind(_Z7);}else {var _05={_ZQ:_ak};var _Pq3;if(_ak.__yy_onlySelfNoOther){_Pq3=function(){var _2j1=Array.prototype.slice.call(arguments);_2j1.splice(1,1);return this._ZQ.apply(null,_2j1);};}else {_Pq3=function(){var _2j1=Array.prototype.slice.call(arguments);return this._ZQ.apply(null,_2j1.slice(2));};}_95=_Pq3.bind(_05);_95._dk=_Z7;_95._bj3=_ak._bj3===undefined?_ak:_ak._bj3;}return _95;}}function _Qq3(){return this;}var __i1=[];
function _Zi1(){if(__i1._kv1===undefined){var _Z4=_Qq3();var _c9=0;for(var _nv in _Z4){if(_Z4.hasOwnProperty(_nv)&&(typeof _Z4[_nv]==="function")){__i1[_c9]=_Z4[_nv];_Z4[_nv]._Rq3=_c9;++_c9;}}__i1._kv1=true;}}function _5V2(name){var _Sq3=JSON_game.ScriptNames.indexOf("gml_Script_"+name);if(_Sq3!=-1){return _Sq3+100000;}_Zi1();_Sq3=JSON_game.ScriptNames.indexOf("gml_GlobalScript_"+name);if(_Sq3!=-1){return _Sq3+100000;}return null;}function method_get_self(_Vz){if((typeof _Vz==="function")&&(_Vz._dk!==undefined)){
for(var i=0;i<_14._082.length;++i){var _Ok=_14._082[i];var _Tq3=_Ok._kw2._c9;for(var _Tx=0;_Tx<_Tq3;++_Tx){if(_Ok._kw2._yk[_Tx]==_Vz._dk)return _Ok._kw2._yk[_Tx].id;}}return _Vz._dk;}return undefined;}function method_get_index(_Vz){if(typeof _Vz==="function"){if(_Vz._bj3!==undefined){if(_Vz._bj3._Rq3!==undefined){return _Vz._bj3._Rq3;}var _Sq3=JSON_game.Scripts.indexOf(_Vz._bj3);if(_Sq3!=-1){return _Sq3+100000;}}else {var _Sq3=JSON_game.Scripts.indexOf(_Vz);if(_Sq3!=-1){return _Sq3+100000;}}_Zi1();var _Uq3=__i1.indexOf(_Vz);
if(_Uq3!=-1){return _Uq3+100000;}}return undefined;}function _Vq3(_wQ){return _wQ instanceof Int8Array||_wQ instanceof Uint8Array||_wQ instanceof Uint8ClampedArray||_wQ instanceof Int16Array||_wQ instanceof Uint16Array||_wQ instanceof Int32Array||_wQ instanceof Uint32Array||_wQ instanceof Float32Array||_wQ instanceof Float64Array||_wQ instanceof BigInt64Array||_wQ instanceof BigUint64Array;}function __yy_gml_array_check(_wQ,_7I){if((Array.isArray(_wQ)&&_wQ._Oq3!=_Jq3)||_Vq3(_wQ)){_wQ=_wQ.slice();}else if(!(_wQ instanceof Array)){
_wQ=[];}_wQ._Oq3=_Jq3;return _wQ;}function __yy_gml_array_set_owner(_wQ){_Jq3=_wQ;}function __yy_gml_array_check_index(_wQ,_7I){if(!(_7I instanceof Array)&&!(_7I instanceof Float32Array)){_q5("trying to index variable which is not an array");}_wQ=yyGetInt32(_wQ);if((_wQ<0)||(_wQ>=_7I.length))_q5("index out of range");return _wQ;}function __yy_gml_array_check_index_set(_wQ){_wQ=yyGetInt32(_wQ);if(_wQ<0)_q5("index out of range");return _wQ;}function __yy_gml_array_check_index_chain(_wQ,_7I){if(!(_7I instanceof Array)){
_7I=[];_7I._Oq3=_Jq3;}_wQ=yyGetInt32(_wQ);if(_wQ<0)_q5("index out of range");var index=_wQ;if(!(_7I[index] instanceof Array)){_7I[index]=[];_7I[index]._Oq3=_Jq3;}else if(_7I[index]._Oq3!=_Jq3){_7I[index]=_7I[index].slice();_7I[index]._Oq3=_Jq3;}return index;}function __yy_gml_errCheck(_wQ){if(_wQ===undefined){_q5("undefined value in expression");}else if(_wQ instanceof ArrayBuffer){_q5("pointer value in expression");}return _wQ;}function _bk(_Wq3,_Xq3){switch(typeof _Wq3){case "function":return _Wq3;case "number":return JSON_game.Scripts[_Wq3-100000];
default :_q5("argument"+_Xq3+" is not a method or script");}}function _fd1(_k_,_Yq3,_Zq3){var _ne=Math.min(Math.max(_Yq3,-_k_),_k_-1);if(_ne<0)_ne=_k_+_ne;var _hd1=0,_gd1=0;if(_Zq3<0){_hd1=-1;_gd1=Math.min(_ne+1,Math.abs(_Zq3));}else {_hd1=1;_gd1=Math.min(_ne+_Zq3,_k_)-_ne;}return [_ne,_gd1,_hd1];}function array_equals(_wQ,_7I){if(!Array.isArray(_wQ)||!Array.isArray(_7I)){__q3("array_equals :  both arguments must be arrays");return false;}if(_wQ.length!==_7I.length)return false;for(var x=0;x<_wQ.length;x++){
if(Array.isArray(_wQ[x])||Array.isArray(_7I[x])){if(!array_equals(_wQ[x],_7I[x]))return false;}else if((typeof _wQ[x])=="number"&&(typeof _7I[x])=="number"){if(!yyfequal(_wQ[x],_7I[x]))return false;}else {if(_wQ[x]!==_7I[x])return false;}}return true;}function array_create(_id,_k4){if(_id===undefined){_id=0;}else {_id=yyGetInt32(_id);}var _H5=0;if(arguments.length==2)_H5=_k4;var _95=[];_95._Oq3=_Jq3;for(var i=0;i<_id;++i){_95[i]=_H5;}return _95;}function array_copy(_1k,_0r3,_0j,_1r3,_o91){if(!Array.isArray(_1k))_q5("array_copy : argument0 is not an array");
if(!Array.isArray(_0j))_q5("array_copy : argument2 is not an array");_0r3=yyGetInt32(_0r3);_1r3=isFinite(_1r3)?yyGetInt32(_1r3):yyGetReal(_1r3);_o91=isFinite(_o91)?yyGetInt32(_o91):yyGetReal(_o91);[_1r3,_o91,_hd1]=_fd1(_0j.length,_1r3,_o91);if(_o91==0)return;_0r3=Math.max(_0r3,-_1k.length);if(_0r3<0)_0r3=_1k.length+_0r3;if(_1k.length<_0r3){for(var index=_1k.length;index<_0r3+min(_0j.length-_1r3,_o91);++index){if(_1k[index]==null){_1k[index]=0;}}}_1r3=_1r3+((_o91-1)*_hd1);_0r3+=_o91;_hd1=-_hd1;while(_o91>0){
_1k[--_0r3]=_0j[_1r3];_1r3+=_hd1;_o91-=1;}}function array_resize(_Wk,_2r3){if(Array.isArray(_Wk)){_2r3=yyGetInt32(_2r3);var _rc2=_Wk.length;_Wk.length=_2r3;if(_2r3>_rc2){for(var _c7=_rc2;_c7<_2r3;++_c7){_Wk[_c7]=0;}}}else {_q5("array_resize : argument0 is not an array");}}function array_push(_Wk){if(Array.isArray(_Wk)){for(var _c7=1;_c7<arguments.length;++_c7){_Wk.push(arguments[_c7]);}}else {_q5("array_push : argument0 is not an array");}}function array_pop(_Wk){if(Array.isArray(_Wk)){return _Wk.pop();}
else {_q5("array_pop : argument0 is not an array");}}function array_shift(_Wk){if(Array.isArray(_Wk)){return _Wk.shift();}else {_q5("array_shift : argument0 is not an array");}}function array_insert(_Wk,_s4){if(Array.isArray(_Wk)){_s4=yyGetInt32(_s4);_o91=_Wk.length;for(_c7=_s4-1;_c7>=_o91;--_c7){_Wk[_c7]=0;}_Mw=Array.prototype.slice.call(arguments,2);Array.prototype.splice.apply(_Wk,[_s4,0].concat(_Mw));}else {_q5("array_insert : argument0 is not an array");}}function array_delete(_Wk,_s4,_oe){if(Array.isArray(_Wk)){
_s4=yyGetReal(_s4);_oe=yyGetReal(_oe);if(_oe<0){_s4+=_oe+1;_oe=-_oe;}_Wk.splice(_s4,_oe);}else {_q5("array_delete : argument0 is not an array");}}function array_sort(_Wk,_3r3){if(Array.isArray(_Wk)){switch(typeof _3r3){case "function":_Wk.sort(function(_05,__4){return _3r3(_3r3._dk,_3r3._dk,_05,__4);});break;case "number":var _ZQ=JSON_game.Scripts[_3r3-100000];var _Ik;if("boundObject" in _ZQ){_Ik=_ZQ._dk;}else {_Ik={};}_Wk.sort(function(_05,__4){return _ZQ(_Ik,_Ik,_05,__4);});break;default :if(yyGetBool(_3r3))_Wk.sort(function(_05,
__4){return yyCompareVal(_05,__4);});else _Wk.sort(function(_05,__4){return yyCompareVal(__4,_05);});break;}}else {_q5("array_sort : argument0 is not an array");}}const _4r3=(_Wk,_ne,_o91)=>{_ne=_ne!==undefined?_ne:0;_o91=_o91!==undefined?_o91:_Wk.length-_ne;for(let i=_o91-1;i>0;--i){const _J6=_ne+Math.floor(Math.random()*(i+1));const _DD=_Wk[_ne+i];_Wk[_ne+i]=_Wk[_J6];_Wk[_J6]=_DD;}};function array_shuffle(_Wk,_ne,_o91){_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>2?yyGetReal(_o91):_Wk.length;
var _95=undefined;if(Array.isArray(_Wk)){_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];if(_hd1<0)_ne-=(_gd1-1);_95=_Wk.slice(_ne,_ne+_gd1);_4r3(_95);}else {_q5("array_shuffle : argument0 is not an array");}return _95;}function array_shuffle_ext(_Wk,_ne,_o91){_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>2?yyGetReal(_o91):_Wk.length;var _95=undefined;if(Array.isArray(_Wk)){_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];if(_hd1<0)_ne-=(_gd1-1);
_95=_Wk;if(_gd1==0)return _95;_4r3(_95,_ne,_gd1);}else {_q5("array_shuffle_ext : argument0 is not an array");}return _gd1;}function array_first(_Wk){if(!Array.isArray(_Wk))_q5("array_first : argument0 is not an array");var _o91=_Wk.length;return _o91==0?undefined:_Wk[0];}function array_last(_Wk){if(!Array.isArray(_Wk))_q5("array_last : argument0 is not an array");var _o91=_Wk.length;return _o91==0?undefined:_Wk[_o91-1];}function array_create_ext(_id,_ak){_id=_id===undefined?0:yyGetReal(_id);_ak=_bk(_ak,1);
_ck="boundObject" in _ak?_ak._dk:{};var _95=new Array(_id);for(var i=0;i<_id;i++){_95[i]=_ak(_ck,_ck,i);}_95._Oq3=_Jq3;return _95;}function array_find_index(_Wk,_ak,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_find_index : argument0 is not an array");_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];while(_gd1>0){if(yyGetBool(_ak(_ck,_ck,_Wk[_ne],
_ne))){return _ne;}_ne+=_hd1;_gd1--;}return -1;}function array_get_index(_Wk,_Ol,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_get_index : argument0 is not an array");_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];while(_gd1>0){if(yyCompareVal(_Wk[_ne],_Ol,g_GMLMathEpsilon,false)==0){return _ne;}_ne+=_hd1;_gd1--;}return -1;}function array_contains(_Wk,_Ol,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_contains : argument0 is not an array");
_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];while(_gd1>0){if(yyCompareVal(_Wk[_ne],_Ol,g_GMLMathEpsilon,false)==0){return true;}_ne+=_hd1;_gd1--;}return false;}function array_contains_ext(_Wk,_Mw,_5r3,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_contains_ext : argument0 is not an array");if(!Array.isArray(_Mw))_q5("array_contains_ext : argument1 is not an array");var _6r3=_Mw.length;if(_6r3==0)return true;
_5r3=_5r3!=undefined?yyGetBool(_5r3):false;_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>4?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _7r3=0;while(_gd1>0){var _8r3=false;var current=_Wk[_ne];for(var i=0;i<_6r3;++i){if(yyCompareVal(current,_Mw[i],g_GMLMathEpsilon,false)==0){_8r3=true;_7r3+=1;break;}}if(_8r3&&!_5r3){return true;}_ne+=_hd1;_gd1--;}if(_7r3==_6r3){return true;}return false;}function array_any(_Wk,_ak,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_any : argument0 is not an array");
_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];while(_gd1>0){if(yyGetBool(_ak(_ck,_ck,_Wk[_ne],_ne))){return true;}_ne+=_hd1;_gd1--;}return false;}function array_all(_Wk,_ak,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_all : argument0 is not an array");_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;
_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];while(_gd1>0){if(!yyGetBool(_ak(_ck,_ck,_Wk[_ne],_ne))){return false;}_ne+=_hd1;_gd1--;}return true;}function array_foreach(_Wk,_ak,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_foreach : argument0 is not an array");_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];while(_gd1>0){
_ak(_ck,_ck,_Wk[_ne],_ne);_ne+=_hd1;_gd1--;}}function array_reduce(_Wk,_ak,_9r3,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_reduce : argument0 is not an array");_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>4?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];if(_9r3===undefined){_9r3=_Wk[_ne];_ne+=_hd1;_gd1--;}while(_gd1>0){_9r3=_ak(_ck,_ck,_9r3,_Wk[_ne],_ne);_ne+=_hd1;_gd1--;}return _9r3;
}function array_filter(_Wk,_ak,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_filter : argument0 is not an array");_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _Nr2=[],_ha2=0;_Nr2._Oq3=_Jq3;while(_gd1>0){if(yyGetBool(_ak(_ck,_ck,_Wk[_ne],_ne))){_Nr2[_ha2]=_Wk[_ne];_ha2++;}_ne+=_hd1;_gd1--;}return _Nr2;}function array_filter_ext(_Wk,_ak,
_ne,_o91){if(!Array.isArray(_Wk))_q5("array_filter_ext : argument0 is not an array");_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _Nr2=0,_ha2=_ne;while(_gd1>0){if(yyGetBool(_ak(_ck,_ck,_Wk[_ne],_ne))){_Wk[_ha2]=_Wk[_ne];_ha2+=_hd1;_Nr2++;}_ne+=_hd1;_gd1--;}return _Nr2;}function array_map(_Wk,_ak,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_map : argument0 is not an array");
_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _Nr2=[],_ha2=0;_Nr2._Oq3=_Jq3;while(_gd1>0){_Nr2[_ha2]=_ak(_ck,_ck,_Wk[_ne],_ne);_ha2++;_ne+=_hd1;_gd1--;}return _Nr2;}function array_map_ext(_Wk,_ak,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_map_ext : argument0 is not an array");_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;
_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _Nr2=0;while(_gd1>0){_Wk[_ne]=_ak(_ck,_ck,_Wk[_ne],_ne);_Nr2++;_ne+=_hd1;_gd1--;}return _Nr2;}function array_copy_while(_Wk,_ak,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_copy_while : argument0 is not an array");_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>3?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,
_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _Nr2=[],_ha2=0;_Nr2._Oq3=_Jq3;while(_gd1>0){if(yyGetBool(_ak(_ck,_ck,_Wk[_ne],_ne))){_Nr2[_ha2]=_Wk[_ne];_ha2++;}else return _Nr2;_ne+=_hd1;_gd1--;}return _Nr2;}function array_unique(_Wk,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_unique : argument0 is not an array");_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>2?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _yr2=new Set();while(_gd1>0){
_yr2.add(_Wk[_ne]);_ne+=_hd1;_gd1--;}_Nr2=Array.from(_yr2);_Nr2._Oq3=_Jq3;return _Nr2;}function array_unique_ext(_Wk,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_unique_ext : argument0 is not an array");_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>2?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _ha2=_ne,_yr2=new Set();while(_gd1>0){var _xL=_Wk[_ne];if(!_yr2.has(_xL)){_Wk[_ha2]=_xL;_ha2+=_hd1;}_yr2.add(_xL);_ne+=_hd1;_gd1--;}return _yr2.size;
}function array_reverse(_Wk,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_reverse : argument0 is not an array");_ne=_ne!=undefined?yyGetReal(_ne):0;_o91=arguments.length>2?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _Nr2=[],_ha2=_gd1-1;;_Nr2._Oq3=_Jq3;while(_gd1>0){_Nr2[_ha2]=_Wk[_ne];_ha2--;_ne+=_hd1;_gd1--;}return _Nr2;}function array_reverse_ext(_Wk,_ne,_o91){if(!Array.isArray(_Wk))_q5("array_reverse_ext : argument0 is not an array");_ne=_ne!=undefined?yyGetReal(_ne):0;
_o91=arguments.length>2?yyGetReal(_o91):_Wk.length;_ed1=_fd1(_Wk.length,_ne,_o91);_ne=_ed1[0];var _gd1=_ed1[1];var _hd1=_ed1[2];var _Nr2=_gd1,_v82=_ne,_w82=_ne+(_gd1-1)*_hd1;_gd1=Math.floor(_gd1*.5);while(_gd1>0){var _id1=_Wk[_v82];_Wk[_v82]=_Wk[_w82];_Wk[_w82]=_id1;_v82+=_hd1;_w82-=_hd1;_gd1--;}return _Nr2;}function array_concat(_Wk){if(!Array.isArray(_Wk))_q5("array_concat : argument0 is not an array");var _Nr2=_Wk;for(var _ha2=1;_ha2<arguments.length;_ha2++){if(!Array.isArray(arguments[_ha2]))_q5("array_concat : argument"+_ha2+" is not an array");
_Nr2=_Nr2.concat(arguments[_ha2]);}_Nr2._Oq3=_Jq3;return _Nr2;}function array_union(_Wk){if(!Array.isArray(_Wk))_q5("array_union : argument0 is not an array");var _Nr2=_Wk;for(var _ha2=1;_ha2<arguments.length;_ha2++){if(!Array.isArray(arguments[_ha2]))_q5("array_union : argument"+_ha2+" is not an array");_Nr2=_Nr2.concat(arguments[_ha2]);}var _yr2=new Set(_Nr2);_Nr2=Array.from(_yr2);_Nr2._Oq3=_Jq3;return _Nr2;}function array_intersection(_Wk){var _T7=new Map();for(var _ha2=0;_ha2<arguments.length;_ha2++){_Wk=arguments[_ha2];
if(!Array.isArray(arguments[_ha2]))_q5("array_intersection : argument"+_ha2+" is not an array");_Wk=Array.from(new Set(_Wk));_Wk.forEach(_lH=>{if(_T7.has(_lH))_T7.set(_lH,_T7.get(_lH)+1);else _T7.set(_lH,1);});}var _Nr2=[],_ha2=0;_Nr2._Oq3=_Jq3;_T7.forEach((_k4,_Tk)=>{if(_k4==arguments.length)_Nr2[_ha2++]=_Tk;});return _Nr2;}function _Lj(_xU1){var _Kj="";var size=buffer_tell(_xU1);for(var i=0;i<size;++i){var y=buffer_peek(_xU1,i,_CG);_Kj+=_DH2[y>>4]+_DH2[y&0xf];}return _Kj;}function _Jj(_xU1,_k4){if(typeof(_k4)=="boolean"){
buffer_write(_xU1,_Ij,_Gq3);var i=0;if(_k4)i=1;buffer_write(_xU1,_gN2,i);}else if(typeof(_k4)=="number"){buffer_write(_xU1,_Ij,_tq3);buffer_write(_xU1,_gN2,_k4);}else if(typeof(_k4)=="string"){buffer_write(_xU1,_Ij,_uq3);var _ar3=_OA(_k4);buffer_write(_xU1,_Ij,_ar3.length);buffer_write(_xU1,_kN2,_k4);}else if(_k4 instanceof Array){buffer_write(_xU1,_Ij,_vq3);var _Ai=_k4.length;buffer_write(_xU1,_Ij,_Ai);for(var i=0;i<_Ai;i++){_Jj(_xU1,_k4[i]);}}else {buffer_write(_xU1,_Ij,_yq3);}}function _br3(_FQ){return((_FQ>='0')&&(_FQ<='9'))||((_FQ>='A')&&(_FQ<='F'))||((_FQ>='a')&&(_FQ<='f'));
}function _cr3(_FQ){var __4=(_FQ&0x40)>>6;return(_FQ&0x0f)+(__4*9);}function _Pj(_Uw){var _Ai=_Uw.length;if(_Ai===0)return -1;var _dr3=0;for(var i=0;i<_Ai;i+=2){if(_br3(_Uw[i])&&_br3(_Uw[i+1])){_dr3+=2;}else {break;}}var _Gj=-1;if(_dr3>0){var _Gj=buffer_create(_dr3/2,_Hj,1);var index=0;for(var i=0;i<_dr3;i+=2){var _05=((_cr3(_Uw.charCodeAt(i))*16)+_cr3(_Uw.charCodeAt(i+1)));buffer_poke(_Gj,index++,_CG,_05);}return _Gj;}return -1;}function _Sj(_xU1,_er3){var _s7=buffer_read(_xU1,_Rj);if(_s7===_Gq3){var __4=buffer_read(_xU1,
_gN2);var _fr3=false;if(__4!=0)_fr3=true;return _fr3;}else if(_s7===_tq3){var __4=buffer_read(_xU1,_gN2);return __4;}else if(_s7===_xq3){var _H5=buffer_read(_xU1,_Rj);return _H5;}else if(_s7===_Dq3||_s7===_zq3){var _H5=buffer_read(_xU1,_Rj);var _J5=buffer_read(_xU1,_Rj);return(_J5<<32)|_H5;}else if(_s7===_uq3){var _p7=buffer_read(_xU1,_Rj);__h="";for(var i=0;i<_p7;i++){__h+=String.fromCharCode(buffer_read(_xU1,_CG));}return _PA(__h);}else if(_s7===_vq3){var _37=[];if(_er3==3){var _gr3=buffer_read(_xU1,_Rj);if(_gr3===1){
var _Ai=buffer_read(_xU1,_Rj);for(var i=0;i<_Ai;i++){_37[i]=_Sj(_xU1,_er3);}}else {for(var _Dx=0;_Dx<_gr3;_Dx++){var _Ai=buffer_read(_xU1,_Rj);for(var i=0;i<_Ai;i++){var __4=_Sj(_xU1,_er3);array_set_2D(_37,_Dx,i,__4);}}}}else {var _Ai=buffer_read(_xU1,_Rj);for(var i=0;i<_Ai;i++){_37[i]=_Sj(_xU1,_er3);}}return _37;}else {return undefined;}}function _hr3(_w4){return "\""+_w4.substr(5,_w4.length-7)+"\"";}function _ir3(_w4){return _w4.substr(5,_w4.length-7);}function variable_global_exists(_jr3){var _95=false;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){
_95=g_global_names[g_var2obf[_jr3]];}else {_95=g_global_names[_jr3];}if(_95==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){_95=global.hasOwnProperty(g_var2obf[_jr3]);}else {_95=global.hasOwnProperty("gml"+_jr3);}}else {_95=true;}return _95;}function variable_global_get(_jr3){_jr3=yyGetString(_jr3);var _95=false;var _nv;var _uP;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){_95=g_global_names[g_var2obf[_jr3]];}else {_uP=g_global_names[_jr3];}if(_uP==undefined){
if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){_95=global[g_var2obf[_jr3]];}else {_95=global["gml"+_jr3];}}else if(_uP[0]){if(_uP[4]!=null){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_uP[4]]!=undefined)){_nv=g_pBuiltIn[g_var2obf[_uP[4]]];}else {_nv=g_pBuiltIn[_uP[4]];}if(typeof _nv=='function'){_95=_nv.call(g_pBuiltIn);}}else {_95=g_pBuiltIn[_jr3];}}return _95;}function variable_global_set(_jr3,_k4){_jr3=yyGetString(_jr3);var _nv;var _uP=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){
_uP=g_global_names[g_var2obf[_jr3]];}else {_uP=g_global_names[_jr3];}if(_uP==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){global[g_var2obf[_jr3]]=_k4;}else {global["gml"+_jr3]=_k4;}}else if(_uP[1]){if(_uP[3]!=null){var _nv=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_uP[3]]!=undefined)){_nv=g_pBuiltIn[g_var2obf[_uP[3]]];}else {_nv=g_pBuiltIn[_uP[3]];}if(typeof _nv=='function'){_nv.call(g_pBuiltIn,_k4);}}else {g_pBuiltIn[_jr3]=_k4;}}}function variable_instance_get(_yg,
_jr3){var _By;if((typeof _yg=="object")&&_yg.__yyIsGMLObject){_By=[_yg];}else {_yg=yyGetInt32(_yg);if(_yg==_rB2){_By=[global];global.marked=false;global.active=true;_kr3=true;}else {_By=GetWithArray(_yg);}}_jr3=yyGetString(_jr3);var _95=undefined;if(_By!=null&&_By.length>0){for(var _Hx=0;_Hx<_By.length;_Hx++){var _9o=_By[_Hx];if(_9o.__yyIsGMLObject||(!_9o.marked&&_9o.active)){var _uP=undefined;if((typeof g_var2obf!=="undefined")&&g_var2obf.hasOwnProperty(_jr3)&&(g_var2obf[_jr3]!=undefined)){var _lr3=g_var2obf[_jr3];
if(g_instance_names.hasOwnProperty(_lr3)){_uP=g_instance_names[_lr3];}}else {if(g_instance_names.hasOwnProperty(_jr3)){_uP=g_instance_names[_jr3];}}if(_uP==undefined){var _lr3;if((typeof g_var2obf!=="undefined")&&g_var2obf.hasOwnProperty(_jr3)&&(g_var2obf[_jr3]!=undefined)){_lr3=g_var2obf[_jr3];if(_9o[_lr3]==undefined){_lr3="gml"+_jr3;}}else {_lr3="gml"+_jr3;}_95=_9o[_lr3];break;}else if(_uP[0]){if(_uP[4]!=null){var _nv=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_uP[4]]!=undefined)){_nv=_9o[g_var2obf[_uP[4]]];
}else {_nv=_9o[_uP[4]];}if(typeof _nv=='function'){_95=_nv.call(_9o);break;}}else {_95=_9o[_jr3];break;}}}}}return _95;}function variable_instance_set(_yg,_jr3,_k4){var _By;if((typeof _yg=="object")&&_yg.__yyIsGMLObject){_By=[_yg];}else {_yg=yyGetInt32(_yg);if(_yg==_rB2){_By=[global];global.marked=false;global.active=true;_kr3=true;}else {_By=GetWithArray(_yg);}}_jr3=yyGetString(_jr3);if(_By!=null&&_By.length>0){for(var _Hx=0;_Hx<_By.length;_Hx++){var _9o=_By[_Hx];if(_9o.__yyIsGMLObject||(!_9o.marked&&_9o.active)){
var _uP=undefined;if((typeof g_var2obf!=="undefined")&&g_var2obf.hasOwnProperty(_jr3)&&(g_var2obf[_jr3]!=undefined)){var _lr3=g_var2obf[_jr3];if(g_instance_names.hasOwnProperty(_lr3)){_uP=g_instance_names[_lr3];}}else {if(g_instance_names.hasOwnProperty(_jr3)){_uP=g_instance_names[_jr3];}}if(_uP==undefined){if((typeof g_var2obf!=="undefined")&&g_var2obf.hasOwnProperty(_jr3)&&(g_var2obf[_jr3]!=undefined)){_9o[g_var2obf[_jr3]]=_k4;}else {_9o["gml"+_jr3]=_k4;}}else if(_uP[1]){if(_uP[3]!=null){var _nv=undefined;
if((typeof g_var2obf!=="undefined")&&(g_var2obf[_uP[3]]!=undefined)){_nv=_9o[g_var2obf[_uP[3]]];}else {_nv=_9o[_uP[3]];}if(typeof _nv=='function'){_nv.call(_9o,_k4);}}else {_9o[_jr3]=_k4;}}return;}}}}function _mr3(_yg,_jr3,_k4){var _By;var _95;if((typeof _yg=="object")&&_yg.__yyIsGMLObject){_By=[_yg];}else {_yg=yyGetInt32(_yg);if(_yg==_rB2){_By=[global];global.marked=false;global.active=true;_kr3=true;}else {_By=GetWithArray(_yg);}}_jr3=yyGetString(_jr3);var _95=false;if(_By!=null&&_By.length>0){for(var _Hx=0;
_Hx<_By.length;_Hx++){var _9o=_By[_Hx];if(_9o.__yyIsGMLObject||(!_9o.marked&&_9o.active)){var _uP=undefined;if((typeof g_var2obf!=="undefined")&&g_var2obf.hasOwnProperty(_jr3)&&(g_var2obf[_jr3]!=undefined)){var _lr3=g_var2obf[_jr3];if(g_instance_names.hasOwnProperty(_lr3)){_uP=g_instance_names[_lr3];}}else {if(g_instance_names.hasOwnProperty(_jr3)){_uP=g_instance_names[_jr3];}}if(_uP==undefined){if((typeof g_var2obf!=="undefined")&&g_var2obf.hasOwnProperty(_jr3)&&(g_var2obf[_jr3]!=undefined)){_95=_9o[g_var2obf[_jr3]];
_9o[g_var2obf[_jr3]]=_k4;}else {_95=_9o["gml"+_jr3];_9o["gml"+_jr3]=_k4;}}else if(_uP[1]){if(_uP[3]!=null){var _nv=undefined;var _Z4=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_uP[3]]!=undefined)){_nv=_9o[g_var2obf[_uP[3]]];}else {_nv=_9o[_uP[3]];}if((typeof g_var2obf!=="undefined")&&(g_var2obf[_uP[4]]!=undefined)){_Z4=_9o[g_var2obf[_uP[4]]];}else {_Z4=_9o[_uP[4]];}if(_Z4!=null){if(typeof _Z4=='function'){_95=_Z4.call(_9o);}}if(typeof _nv=='function'){_nv.call(_9o,_k4);}}else {_95=_9o[_jr3];
_9o[_jr3]=_k4;}}return _95;}}}return _95;}function variable_instance_exists(_yg,_jr3){var _By;if((typeof _yg=="object")&&_yg.__yyIsGMLObject){_By=[_yg];}else {_yg=yyGetInt32(_yg);if(_yg==_rB2){_By=[global];global.marked=false;global.active=true;_kr3=true;}else {_By=GetWithArray(_yg);}}_jr3=yyGetString(_jr3);var _95=false;if(_By!=null&&_By.length>0){for(var _Hx=0;!_95&&(_Hx<_By.length);_Hx++){var _9o=_By[_Hx];if(_9o.__yyIsGMLObject||(!_9o.marked&&_9o.active)){var _uP=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){
var _lr3=g_var2obf[_jr3];if(g_instance_names.hasOwnProperty(_lr3)){_uP=g_instance_names[_lr3];}}else {_uP=g_instance_names[_jr3];if(g_instance_names.hasOwnProperty(_jr3)){_uP=g_instance_names[_jr3];}}if(_uP==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){_95=g_var2obf[_jr3] in _9o;}else {_95="gml"+_jr3 in _9o;}}else {if(_9o.__yyIsGMLObject)_95=_jr3 in _9o||"gml"+_jr3 in _9o;else _95=true;}break;}}}return _95;}function variable_instance_names_count(_yg){var _95=0;var _By=null;var _kr3=false;
if((typeof _yg=="object")&&_yg.__yyIsGMLObject){_By=[_yg];}else {_yg=yyGetInt32(_yg);if(_yg==_rB2){_By=[global];global.marked=false;global.active=true;_kr3=true;}else {_By=GetWithArray(_yg);}}if(_By!=null&&_By.length>0){for(var _Hx=0;_Hx<_By.length;_Hx++){var _9o=_By[_Hx];if(_9o.__yyIsGMLObject||(!_9o.marked&&_9o.active)){var _Ef1=_sq3(_9o,_kr3);return _Ef1.length/2;}}}return _95;}function _sq3(_Qy,_kr3){var _95=[];for(var _c7 in _Qy){if(_Qy.hasOwnProperty(_c7)){if(_c7.startsWith("gml")){_95.push(_c7.substring(3));
_95.push(_c7);}}}var _Jk=Object.getOwnPropertyNames(_Qy);for(var i=0;i<_Jk.length;i++){var prop=_Jk[i];var _nr3=prop;if(typeof _My!="undefined"&&_My.hasOwnProperty(prop)){_nr3=_My[prop];}var _or3=(_kr3)?g_global_names[_nr3]!=undefined:g_instance_names[_nr3]!=undefined;if(_Qy.__yyIsGMLObject){if(_nr3=="__type")continue;if(!_or3&&_nr3==prop)continue;}else {if(_or3)continue;if(_nr3.startsWith("__")){_or3=(_kr3)?g_global_names[_nr3.substring(2)]!=undefined:g_instance_names[_nr3.substring(2)]!=undefined;if(_or3)continue;
}if(!_or3&&_nr3==prop)continue;}if(!_nr3.startsWith("gml")){_95.push(_nr3);_95.push(prop);}}return _95;}function variable_instance_get_names(_yg){var _95=[];var _By=null;var _kr3=false;if((typeof _yg=="object")&&_yg.__yyIsGMLObject){_By=[_yg];}else {_yg=yyGetInt32(_yg);if(_yg==_rB2){_By=[global];global.marked=false;global.active=true;_kr3=true;}else {_By=GetWithArray(_yg);}}if(_By!=null){for(var _Hx=0;_Hx<_By.length;_Hx++){var _9o=_By[_Hx];if(_9o.__yyIsGMLObject||(!_9o.marked&&_9o.active)){var _Ef1=_sq3(_9o,
_kr3);for(var _c7=0;_c7<_Ef1.length;_c7+=2){if(_Ef1[_c7]!="constructor")_95.push(_Ef1[_c7]);}return _95;}}}return _95;}function __yy_gml_copy_prototype(_1k,_4j){Object.setPrototypeOf(_1k,_4j);}function variable_struct_exists(_yg,_w4){return variable_instance_exists(_yg,_w4);}function variable_struct_set(_yg,_w4,_k4){return variable_instance_set(_yg,_w4,_k4);}function variable_struct_set_pre(_yg,_w4,_k4){variable_instance_set(_yg,_w4,_k4);return _k4;}function variable_struct_set_post(_yg,_w4,_k4){return _mr3(_yg,
_w4,_k4);}function variable_struct_get(_yg,_w4){return variable_instance_get(_yg,_w4);}function variable_struct_get_names(_yg){return variable_instance_get_names(_yg);}function variable_struct_names_count(_yg){return variable_instance_names_count(_yg);}function variable_struct_remove(_yg,_jr3){var _By;if((typeof _yg=="object")&&_yg.__yyIsGMLObject){_By=[_yg];}else {_yg=yyGetInt32(_yg);if(_yg==_rB2){_By=[global];global.marked=false;global.active=true;_kr3=true;}else {_By=GetWithArray(_yg);}}_jr3=yyGetString(_jr3);
if(_By!=null&&_By.length>0){for(var _Hx=0;_Hx<_By.length;_Hx++){var _9o=_By[_Hx];if(_9o.__yyIsGMLObject||(!_9o.marked&&_9o.active)){var _lr3;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_jr3]!=undefined)){_lr3=g_var2obf[_jr3];}else {_lr3="gml"+_jr3;}if(Object.prototype.hasOwnProperty.call(_9o,_lr3)){delete _9o[_lr3];}else if(Object.prototype.hasOwnProperty.call(_9o,"gml"+_jr3)){delete _9o["gml"+_jr3];}else if(Object.prototype.hasOwnProperty.call(_9o,_jr3)){delete _9o[_jr3];}}}}}function struct_exists(_yg,
_w4){return variable_instance_exists(_yg,_w4);}function struct_set(_yg,_w4,_k4){return variable_instance_set(_yg,_w4,_k4);}function struct_get(_yg,_w4){return variable_instance_get(_yg,_w4);}function struct_get_names(_yg){return variable_instance_get_names(_yg);}function struct_names_count(_yg){return variable_instance_names_count(_yg);}function struct_remove(_yg,_jr3){return variable_struct_remove(_yg,_jr3);}function struct_foreach(_yg,_ak){_ak=_bk(_ak,1);_ck="boundObject" in _ak?_ak._dk:{};var _By=null;var _kr3=false;
if((typeof _yg=="object")&&_yg.__yyIsGMLObject){_By=[_yg];}else {_yg=yyGetInt32(_yg);if(_yg==_rB2){_By=[global];global.marked=false;global.active=true;_kr3=true;}else {_By=GetWithArray(_yg);}}if(_By!=null){for(var _Hx=0;_Hx<_By.length;_Hx++){var _9o=_By[_Hx];if(_9o.__yyIsGMLObject||(!_9o.marked&&_9o.active)){var _Ef1=_sq3(_9o,_kr3);for(var _c7=0;_c7<_Ef1.length;_c7+=2){_ak(_ck,_ck,_Ef1[_c7],_yg[_Ef1[_c7+1]]);}}}}}function struct_get_from_hash(_yg,_pr3){return variable_instance_get(_yg,_pr3);}function struct_set_from_hash(_yg,
_pr3,_k4){return variable_instance_set(_yg,_pr3,_k4);}function struct_remove_from_hash(_yg,_jr3){return variable_struct_remove(_yg,_jr3);}function struct_exists_from_hash(_yg,_jr3){return variable_struct_exists(_yg,_jr3);}function variable_get_hash(_w4){return _w4;}_qr3=new Map();function _rr3(_k4,_el){if(_qr3.has(_k4)){return _qr3.get(_k4);}if(typeof _k4==="object"){if(_k4 instanceof Long){return _k4;}if(_el<=0){return _k4;}if(_k4 instanceof Array){var _0r1=new Array(_k4.length);_qr3.set(_k4,_0r1);for(var _c7=0;_c7<_k4.length;
++_c7){_0r1[_c7]=_rr3(_k4[_c7],_el-1);}return _0r1;}var _0r1=new _Lz();_qr3.set(_k4,_0r1);for(var name in _k4){if(!_k4.hasOwnProperty(name)){continue;}var _H5=_rr3(_k4[name],_el-1);if((typeof _H5=='function')&&_H5._vP&&_H5._dk&&(_H5._dk==_k4)){_H5=method(_0r1,_H5);}Object.defineProperty(_0r1,name,{value:_H5,configurable:true,writable:true,enumerable:true});}return _0r1;}return _k4;}function variable_clone(_k4,_el){_el=arguments.length>1?Math.max(0,yyGetReal(_el)):128;var _0r1=_rr3(_k4,_el);_qr3.clear();return _0r1;
}var vertex_format_begin,vertex_format_end,vertex_format_delete,vertex_format_add_position,vertex_format_add_position_3d,vertex_format_add_colour,vertex_format_add_color,vertex_format_add_normal,vertex_format_add_texcoord,vertex_format_add_textcoord,vertex_format_add_custom,vertex_format_get_info;(()=>{let _Ic=(_w4,_k4)=>()=>_Jc(_w4,_k4);vertex_format_begin=_Ic("vertex_format_begin");vertex_format_end=_Ic("vertex_format_end",-1);vertex_format_delete=_Ic("vertex_format_delete");vertex_format_add_position=_Ic("vertex_format_add_position");
vertex_format_add_position_3d=_Ic("vertex_format_add_position_3d");vertex_format_add_colour=_Ic("vertex_format_add_colour");vertex_format_add_color=_Ic("vertex_format_add_color");vertex_format_add_normal=_Ic("vertex_format_add_normal");vertex_format_add_texcoord=_Ic("vertex_format_add_texcoord");vertex_format_add_textcoord=_Ic("vertex_format_add_textcoord");vertex_format_add_custom=_Ic("vertex_format_add_custom");vertex_format_get_info=_Ic("vertex_format_get_info");})();var _sr3=null;function _tr3(){
vertex_format_begin=_ur3;vertex_format_end=_vr3;vertex_format_delete=_wr3;vertex_format_add_position=_xr3;vertex_format_add_position_3d=_yr3;vertex_format_add_colour=_zr3;vertex_format_add_color=_zr3;vertex_format_add_normal=_Ar3;vertex_format_add_texcoord=_Br3;vertex_format_add_textcoord=_Br3;vertex_format_add_custom=_Cr3;vertex_format_get_info=_Dr3;}function _ur3(){if(_sr3!=null){debug("ERROR vertex_format_begin: Vertex format is already under construction");}else {_sr3=new _AR1();}}function _xr3(){
if(_sr3==null){debug("ERROR vertex_format_add_position: No vertex format is under construction");}else {_sr3._w_1();}}function _yr3(){if(_sr3==null){debug("ERROR vertex_format_add_position_3d: No vertex format is under construction");}else {_sr3._LR1();}}function _zr3(){if(_sr3==null){debug("ERROR vertex_format_add_colour: No vertex format is under construction");}else {_sr3._MR1();}}function _Ar3(){if(_sr3==null){debug("ERROR vertex_format_add_normal: No vertex format is under construction");}else {_sr3._OR1();
}}function _Br3(){if(_sr3==null){debug("ERROR vertex_format_add_textcoord: No vertex format is under construction");}else {_sr3._NR1();}}function _Cr3(_wd,_vd){if(_sr3==null){debug("ERROR vertex_format_add_normal: No vertex format is under construction");}else {_sr3._x_1(yyGetInt32(_wd),yyGetInt32(_vd));}}function _vr3(){if(_sr3==null){debug("ERROR vertex_format_end: No vertex format under construction");return -1;}var _eY1=_09._RR1(_sr3);_sr3=null;return _eY1;}function _wr3(_Er3){debug("WARNING vertex_format_delete not implemented on HTML5 (System shares vertex formats but doesn't reference count)");
}function _Dr3(_Er3){var _gh=_09._1d(yyGetInt32(_Er3));if(!_gh)return undefined;_Fr3=new _Lz();variable_struct_set(_Fr3,"stride",_gh._Fd);variable_struct_set(_Fr3,"num_elements",_gh._zd.length);var _Gr3=[];for(var i=0;i<_gh._zd.length;++i){var _Ad=_gh._zd[i];var _Hr3=new _Lz();variable_struct_set(_Hr3,"usage",_Ad._Bd);variable_struct_set(_Hr3,"type",_Ad.type);variable_struct_set(_Hr3,"size",_gh._A_1(_Ad.type));variable_struct_set(_Hr3,"offset",_Ad.offset);_Gr3.push(_Hr3);}variable_struct_set(_Fr3,"elements",
_Gr3);return _Fr3;}var _Ir3=false;function video_get_format(){var video_format_rgba=0;var video_format_yuv=1;return video_format_rgba;}function video_open(path){_Ir3=false;var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3==null){_Jr3._Kr3=document.createElement('video');}else {_Jr3._Kr3.pause();}const _Lr3=_Jr3._Kr3;var _Mr3=_871(path);var playing=false;var _Nr3=false;_Lr3.muted=false;_Lr3.src=_Mr3;_Lr3.addEventListener('ended',function(){var map=ds_map_create();ds_map_add(map,"type","video_end");g_pBuiltIn.async_load=map;
_14._24(_qz2,0);ds_map_destroy(map);});function _Or3(){var _j71="mousedown";var _k71="mouseup";if("ontouchstart" in window){_j71="touchstart";_k71="touchend";}if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){_j71="pointerdown";_k71="pointerup";}var _Pr3=function(){var _Jr3=document.querySelector("canvas");const _Lr3=_Jr3._Kr3;if(_Lr3!=null)_Lr3.muted=false;};document.body.addEventListener(_j71,_Pr3,{once:true});document.body.addEventListener(_k71,_Pr3,{once:true}
);}if(_Lr3.requestVideoFrameCallback===undefined){console.log("requestVideoFrameCallback not supported by browser, video playback likely to be poor");_Lr3.addEventListener('playing',function(){playing=true;console.log("Video playing event called");_Qr3();var map=ds_map_create();ds_map_add(map,"type","video_start");g_pBuiltIn.async_load=map;_14._24(_qz2,0);ds_map_destroy(map);},true);_Lr3.addEventListener('timeupdate',function(){_Nr3=true;_Qr3();},true);_Lr3.load();var _Rr3=_Lr3.play();if(_Rr3!==undefined){
_Rr3.then(_Uy=>{}).catch(error=>{debug("video_open failed. User must interact with the page before video with audio can be played. Attempting to play the video muted");_Lr3.muted=true;_Lr3.play();_Or3();});}function _Qr3(){if(playing&&_Nr3){if(_Jr3._Sr3==null){_Jr3._Sr3=document.createElement('canvas');_Jr3._Sr3.style.cssText="position:fixed; top:1px; left:1px; width:1px; height:1px";_Jr3._Sr3.width=_Lr3.videoWidth;_Jr3._Sr3.height=_Lr3.videoHeight;document.body.appendChild(_Jr3._Sr3);_Jr3._Tr3=_Jr3._Sr3.getContext('2d',
{alpha:false,_Ur3:true,antialias:true,_Vr3:'low-power',preserveDrawingBuffer:true});}else {_Jr3._Sr3.width=_Lr3.videoWidth;_Jr3._Sr3.height=_Lr3.videoHeight;}_Jr3._Tr3.drawImage(_Jr3._Kr3,0,0);}}}else {_Lr3.addEventListener('playing',function(){playing=true;console.log("Video playing event called");var map=ds_map_create();ds_map_add(map,"type","video_start");g_pBuiltIn.async_load=map;_14._24(_qz2,0);ds_map_destroy(map);},true);const _Wr3=(now,_Xr3)=>{if(_Jr3._Sr3==null){_Jr3._Sr3=document.createElement('canvas');
_Jr3._Sr3.style.cssText="position:fixed; top:1px; left:1px; width:1px; height:1px";_Jr3._Sr3.width=_Lr3.videoWidth;_Jr3._Sr3.height=_Lr3.videoHeight;document.body.appendChild(_Jr3._Sr3);_Jr3._Tr3=_Jr3._Sr3.getContext('2d',{alpha:false,_Ur3:true,antialias:true,_Vr3:'low-power',preserveDrawingBuffer:true});}else {_Jr3._Sr3.width=_Lr3.videoWidth;_Jr3._Sr3.height=_Lr3.videoHeight;}if((_Jr3._Kr3!=null)&&(_Jr3._Tr3!=null))_Jr3._Tr3.drawImage(_Jr3._Kr3,0,0);if(_Jr3._Kr3!=null){if(_Jr3._Kr3.src!=null)_Jr3._Kr3.requestVideoFrameCallback(_Wr3);
else console.log("stopping video player callback check");}};_Lr3.requestVideoFrameCallback(_Wr3);_Lr3.load();var _Rr3=_Lr3.play();if(_Rr3!==undefined){_Rr3.then(_Uy=>{}).catch(error=>{debug("video_open failed. User must interact with the page before video with audio can be played. Attempting to play the video muted");_Lr3.muted=true;_Lr3.play();_Or3();});}}}function video_close(){_Ir3=true;var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){_Jr3._Kr3.pause();console.log("Pausing video player");
_Jr3._Kr3.removeAttribute('src');_Jr3._Kr3.load();}}function _Yr3(){if(_Ir3)return -1;var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){if(_Jr3._Kr3.paused)return -1;if(!_Jr3._Kr3.ended)return 0;}return -1;}var _Zr3=-4;var __r3=-4;var _0s3=-4;var _1s3=-4;function _2s3(_3s3,width,height){var _Jr3=document.querySelector("canvas");if(_Jr3._Tr3!=null){var _In3=_Jr3._Tr3.getImageData(0,0,width,height);var _OP2=new Uint8Array(_In3.data.buffer);var _MN2=new Uint8Array(_3s3._zG);var _GP2=_OP2.byteLength;if(_MN2.byteLength>=_GP2){
var i;for(i=0;i<_GP2;i++){_MN2[i]=_OP2[i];}_3s3._ZN2(_GP2);}else return 0;return 1;}else console.log("Not rendering video as context is null");return 0;}function _4s3(){var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null)return _Jr3._Kr3.videoWidth;return 0;}function _5s3(){var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null)return _Jr3._Kr3.videoHeight;return 0;}function video_draw(){if(_Yr3()!=0){if(surface_exists(_Zr3))surface_free(_Zr3,true);_Zr3=-1;if(__r3>=0){buffer_delete(__r3);}__r3=-1;
_0s3=-1;_1s3=-1;var _95=[];_95[0]=_Yr3();_95[1]=-1;_95[2]=-1;return _95;}else {if(!surface_exists(_Zr3)){_0s3=1;_1s3=1;_Zr3=surface_create(1,1,_cm);if(__r3>=0){buffer_delete(__r3);}__r3=buffer_create(1*1*4,_kU,1);}if(_4s3()!=0&&_5s3()!=0){if(_0s3!=_4s3()||_1s3!=_5s3()){_0s3=_4s3();_1s3=_5s3();if(surface_exists(_Zr3)){surface_free(_Zr3,true);}if(__r3>=0){buffer_delete(__r3);}_Zr3=surface_create(_0s3,_1s3,_cm);__r3=buffer_create(_0s3*_1s3*4,_kU,1);}}var _ob=_wG._n6(__r3);if(!_2s3(_ob,_0s3,_1s3)){var _95=[];
_95[0]=-1;_95[1]=-1;_95[2]=-1;return _95;}buffer_set_surface(__r3,_Zr3,0);var _95=[];_95[0]=_Yr3();_95[1]=_Zr3;_95[2]=-1;return _95;}}function video_set_volume(_6s3){var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){_Jr3._Kr3.volume=_6s3;}}function video_pause(){var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){_Jr3._Kr3.pause();}}function video_resume(){var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){_Jr3._Kr3.play();}}function video_enable_loop(loop){var _Jr3=document.querySelector("canvas");
if(_Jr3._Kr3!=null)_Jr3._Kr3.loop=loop;}function video_seek_to(_zk){var _7s3=_zk/1000.0;var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){_Jr3._Kr3.currentTime=_7s3;}}function video_get_duration(){var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){if(!isNaN(_Jr3._Kr3.duration))return _Jr3._Kr3.duration*1000;}return 0;}function video_get_position(){var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){return _Jr3._Kr3.currentTime*1000;}return 0;}function video_get_status(){if(_Ir3)return 0;
var _Jr3=document.querySelector("canvas");var video_status_closed=0;var video_status_preparing=1;var video_status_playing=2;var video_status_paused=3;if(_Jr3._Kr3!=null){if(_Jr3._Kr3.ended)return video_status_closed;if(_Jr3._Kr3.paused)return video_status_paused;if(_Jr3._Kr3.readyState<_Jr3._Kr3._8s3)return video_status_preparing;return video_status_playing;}return video_status_closed;}function video_is_looping(){var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){return _Jr3._Kr3.loop;}return 0;}function video_get_volume(){
var _Jr3=document.querySelector("canvas");if(_Jr3._Kr3!=null){return _Jr3._Kr3.volume;}return 0;}/*@constructor */function _PH2(){this.__type="[View]";this.visible=false;this._0e1=0;this._1e1=0;this._2e1=640;this._3e1=480;this._Zb3=0;this.__b3=0;this._0c3=640;this._1c3=480;this.angle=0;this._rg=0;this._tg=0;this._sg=0;this._ug=0;this._wf3=640;this._xf3=480;this._yf3=1;this._zf3=1;this.hborder=32;this.vborder=32;this.hspeed=-1;this.vspeed=-1;this._Ct2=-1;this._JF=-1;this._621=-1;this._Ws2=-1;}_PH2.prototype.__i=function(_0j){
this.visible=_0j.visible;this._0e1=_0j._0e1;this._1e1=_0j._1e1;this._2e1=_0j._2e1;this._3e1=_0j._3e1;this._Zb3=_0j._Zb3;this.__b3=_0j.__b3;this._0c3=_0j._0c3;this._1c3=_0j._1c3;this.angle=_0j.angle;this._rg=_0j._rg;this._tg=_0j._tg;this._sg=_0j._sg;this._ug=_0j._ug;this._wf3=_0j._wf3;this._xf3=_0j._xf3;this._yf3=_0j._yf3;this._zf3=_0j._zf3;this.hborder=_0j.hborder;this.vborder=_0j.vborder;this.hspeed=_0j.hspeed;this.vspeed=_0j.vspeed;this._Ct2=_0j._Ct2;this._JF=_0j._JF;this._621=_0j._621;};_PH2.prototype._9s3=function(_96,
_a6,_as3){var _xu2=_de1._7t2(this._621);if(_xu2==null)return 0;var _c23=_qg;_96=(_96-_c23.left-this._rg)/(_c23.scaleX||1);_a6=(_a6-_c23.top-this._tg)/(_c23.scaleY||1);if(this._621==_Fu2){_96=(_96/this._yf3)+this._0e1;_a6=(_a6/this._zf3)+this._1e1;return Math.floor((_as3?_96:_a6));}var _bs3=_96/this._wf3;var _cs3=_a6/this._xf3;_bs3=_bs3*2.0-1.0;_cs3=_cs3*2.0-1.0;var _ds3=_xu2._2u2();var out;if(_as3){out=((_bs3*_ds3._e7[_Ns])+(_cs3*_ds3._e7[_Os])+_ds3._e7[_Qs]);}else {out=((_bs3*_ds3._e7[_Rs])+(_cs3*_ds3._e7[_gs])+_ds3._e7[_Ts]);
}return Math.floor(out);};_PH2.prototype._vg=function(_96,_a6){return this._9s3(_96,_a6,true);};_PH2.prototype._wg=function(_96,_a6){return this._9s3(_96,_a6,false);};function _Hb3(_es3){var _Dr=new _PH2();if(_es3.visible!=undefined)_Dr.visible=_es3.visible;if(_es3.xview!=undefined)_Dr._0e1=_es3.xview;if(_es3.yview!=undefined)_Dr._1e1=_es3.yview;if(_es3.wview!=undefined)_Dr._2e1=_es3.wview;if(_es3.hview!=undefined)_Dr._3e1=_es3.hview;if(_es3.xport!=undefined)_Dr._Zb3=_es3.xport;if(_es3.yport!=undefined)_Dr.__b3=_es3.yport;
if(_es3.wport!=undefined)_Dr._0c3=_es3.wport;if(_es3.hport!=undefined)_Dr._1c3=_es3.hport;if(_es3.angle!=undefined)_Dr._1c3=_es3.angle;if(_es3.hborder!=undefined)_Dr.hborder=_es3.hborder;if(_es3.vborder!=undefined)_Dr.vborder=_es3.vborder;if(_es3.hspeed!=undefined)_Dr.hspeed=_es3.hspeed;if(_es3.vspeed!=undefined)_Dr.vspeed=_es3.vspeed;if(_es3.index!=undefined)_Dr._Ct2=_es3.index;if(_es3._621!==undefined&&_es3._621>=0){_Dr._621=_de1._5t2(_es3._621);}else {var _nt2=_de1._pt2(_Dr);_nt2._0t2(true);_Dr._621=_nt2._4u2();
}return _Dr;}/*@constructor */function _fs3(){this.__yyIsGMLObject=true;this.__type="[weakref]";this._gs3=null;this._hs3=function(){if(this._gs3==null){return undefined;}else if(this._gs3.deref()==undefined){return false;}return true;};this._is3=function(_js3){if(typeof WeakRef==="undefined"){this._gs3=null;}else {this._gs3=new WeakRef(_js3);}};Object.defineProperties(this,{gmlref:{enumerable:true,get :function(){return(this._gs3==null)?undefined:((this._gs3.deref()==undefined)?undefined:this._gs3.deref());
}}});}function weak_ref_create(_js3){if(_js3!=undefined){if((typeof(_js3)=="object")||(typeof(_js3)=="function")){var _ks3=new _fs3();_ks3._is3(_js3);return _ks3;}else {_q5("invalid argument passed to weak_ref_create");}}else {_q5("incorrect number of arguments to weak_ref_create");}return undefined;}function weak_ref_alive(_ls3){if(_ls3!=undefined){if((typeof(_ls3)=="object")&&(_ls3.__type!=undefined)&&(_ls3.__type=="[weakref]")){return _ls3._hs3();}return undefined;}else {_q5("incorrect number of arguments to weak_ref_alive");
}}function weak_ref_any_alive(_Wk,_s4,_o91){if(_Wk==undefined){_q5("incorrect number of arguments to weak_ref_any_alive");}else if(Array.isArray(_Wk)==false){_q5("first argument to weak_ref_any_alive is not an array");}else {var index=0;var length=_Wk.length;if(_s4!=undefined){index=_s4;}if(_o91!=undefined){length=_o91;}if(index<0){length+=index;index=0;}if(index>=_Wk.length){return;}if((index+length)>=_Wk.length){length=_Wk.length-index;}if(length<=0){return;}if(length>0){var _bc=false;var end=index+length;
for(var i=index;i<end;i++){var _Vk=_Wk[i];if((typeof(_Vk)=="object")&&(_Vk.__type!=undefined)&&(_Vk.__type=="[weakref]")){var _ms3=_Vk._hs3();if(_ms3==undefined){return undefined;}else if(_Vk._hs3()==true){_bc=true;}}else {return undefined;}}return _bc;}}return undefined;}var _09=null;var _mR1=false;var _ns3=null;var _os3=null;var _yr=true;var _ps3=false,_zr=false,_Ha3=_Wa._Xa,_Ia3=_Wa._Za,_qs3=_Wa._tt,_rs3=_Wa._tt,_St=0,_Ut=0.0,_ss3=[],_vr={_sr:true,_tr:true,_ur:true,alpha:true};var _Fb=0.0,_ts3=true,_us3=true,
_vs3=true,_ws3=_Wa._RV1;var _Pr=null,_Wr=null,_Tr=null,_Yr=null,_3s=null,_Ur=[],_Zr=[];var _Vr=0;var _0s=1;var _F82=false,_1F=false,_3F=1.0;var _wC=[];var _6s=null;var _9s=0,_ds=1,_EF=2,_xs3=16;var _0d=16384;var _ys3=36,_zs3=[],_As3=[];var _Bs3=0.5;var _fR1=null;var _gR1=null;var _hR1=null;var _iR1=null;var _jR1=null;var _kR1=null;var _lR1=null;var _vR1=null;var _yR1=null;var _rR1=false;var _tR1=false;var _sR1=false;var _uR1=false;var _pR1=false;var _zd1=false;var _nR1=false;var _oR1=false;var _qR1=false;var _wR1=false;var _xR1=false;
function _yZ2(){_Np();_tr3();_FQ2();_Oc();_fE(_ys3);_6d=_Cs3;_UY2=_Ds3;_ue1=_Es3;_FW2=_Fs3;_YY2=_Gs3;_eD=_Hs3;_DW2=_Is3;_VY2=_Js3;_fD=_Ks3;_mD=_Ls3;_JY2=_Ms3;_XY2=_Ns3;_ZY2=_Os3;_WY2=_Ps3;_ZZ2=_Qs3;_Fm=_Rs3;_Jm=_Ss3;_Tm=_Ts3;_c_2=_Us3;__Y2=_Vs3;_0Z2=_Ws3;_Nm=_Xs3;draw_rectangle=_Ys3;draw_roundrect_color_ext=_Zs3;draw_rectangle_color=__s3;compile_if_used(draw_roundrect_colour_ext=_Zs3);compile_if_used(draw_rectangle_colour=__s3);compile_if_used(draw_point=_0t3);compile_if_used(draw_getpixel=_1t3);
compile_if_used(draw_getpixel_ext=_2t3);draw_triangle=_3t3;compile_if_used(draw_triangle_color=_4t3);draw_ellipse_color=_5t3;draw_circle_color=_6t3;compile_if_used(draw_point_color=_7t3);draw_triangle_colour=_4t3;compile_if_used(draw_ellipse_colour=_5t3);compile_if_used(draw_circle_colour=_6t3);compile_if_used(draw_point_colour=_7t3);draw_line=_8t3;draw_line_width=_9t3;draw_line_width_color=_at3;compile_if_used(draw_line_width_colour=_at3);draw_clear_alpha=_bt3;compile_if_used(draw_clear_depth=_ct3);
compile_if_used(draw_clear_stencil=_dt3);compile_if_used(draw_clear_ext=_et3);compile_if_used(draw_set_colour=_ft3);draw_set_alpha=_gt3;_BE=_ht3;_qi1=_it3;compile_if_used(draw_surface=_jt3);draw_path=_kt3;mp_grid_draw=_lt3;_09._Za1=_mt3;surface_create=_nt3;surface_free=_ot3;compile_if_used(surface_getpixel=_pt3);compile_if_used(surface_getpixel_ext=_qt3);compile_if_used(surface_copy=_rt3);compile_if_used(surface_copy_part=_st3);compile_if_used(_Ta1=_tt3);compile_if_used(sprite_create_from_surface=_ut3);
compile_if_used(sprite_add_from_surface=_vt3);compile_if_used(sprite_set_alpha_from_sprite,_3n=_wt3);_M31=_nX2;_I31=_xt3;_J31=_yt3;_K31=_zt3;_L31=_mX2;_N31=_At3;_O31=_Bt3;_P31=_Ct3;_Q31=_Dt3;_R31=_Et3;_S31=_Ft3;_T31=_Gt3;_U31=_Ht3;_V31=_It3;_W31=_Jt3;shaders_are_supported=_Kt3;_X31=_Lt3;_6L2=_Mt3;_7L2=_Nt3;_9L2=_Ot3;_cZ2=_Pt3;_aL2=_Qt3;_8L2=_Rt3;texture_get_width=_St3;texture_get_height=_Tt3;texture_get_uvs=_Ut3;_cL2=_Vt3;_dL2=_Wt3;compile_if_used(_eL2=_Xt3);compile_if_used(_fL2=_Yt3);compile_if_used(buffer_get_surface=_Zt3);
buffer_set_surface=__t3;compile_if_used(buffer_get_surface_depth=_0u3);compile_if_used(buffer_set_surface_depth=_1u3);_2u3();}function _3u3(_FQ1){var options={_HR1:((_aw.Swfs!==undefined)?true:false),_IR1:(_aw.Options.WebGLPreserveDrawingBuffer?true:false),_8R1:_dH2};_09=new _EQ1(_FQ1,options);if(!_09._WQ1){_09=null;return false;}if(!_4u3())return false;if(!_5u3())return false;if(!_6u3())return false;_Ir=1;_Ce1=new _qr();_2H2=new _qr();var _7u3=_09._5T1();for(var i=0;i<_7u3;i++){_ss3[i]=false;}return true;}
function _fE(_4A){var _c7=_4A;if(_c7<4)_c7=4;if(_c7>64)_c7=64;_c7=4*((_c7/4)|0);_ys3=_c7;_zs3[0]=1;_As3[0]=0;for(var i=1;i<_c7;i++){_zs3[i]=Math.cos(i*2*Math.PI/_c7);_As3[i]=Math.sin(i*2*Math.PI/_c7);}_zs3[_c7]=1;_As3[_c7]=0;}function _hE(){return _ys3;}function _2u3(){_rp(0,0xff000000,0,0);_cL2(0);_fL2(0);_8u3();}function _4u3(){return _9u3();}function _5u3(){var _au3=document.createElement(_Zw);_au3._fd=_au3.width=16;_au3._gd=_au3.height=16;_au3.complete=true;_au3._Gd1=false;_au3.name="";_au3._Oa=_au3.getContext('2d');
_au3._Oa.save();_au3._Oa.setTransform(1,0,0,1,0,0);_au3._Oa.globalAlpha=1;_au3._Oa.fillStyle='#ffffff';_au3._Oa.fillRect(0,0,16,16);_au3._Oa.restore();var _k5=new _im();_k5.x=0;_k5.y=0;_k5.w=15;_k5.h=15;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=15;_k5.CropHeight=15;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=-1;_k5.texture=_au3;_k5._b9=[];_k5._d9=1;_k5._c9=0;_y9(_k5);_09._OU1(_k5.texture._z9);return true;}function _6u3(){_Pr=new Float32Array(_Wa._WU1*4);_Wr=new Float32Array(_Wa._WU1*4);_Tr=new Float32Array(_Wa._WU1*4);
_Yr=new Float32Array(4);_Yr[0]=1;_Yr[1]=1;_Yr[2]=1;_Yr[3]=1;var _Or;for(var i=0;i<_Wa._WU1;i++){_Tr[i]=0;_Or=i*4;_Pr[_Or+0]=0;_Pr[_Or+1]=0;_Pr[_Or+2]=0;_Pr[_Or+3]=0;_Wr[_Or+0]=0;_Wr[_Or+1]=0;_Wr[_Or+2]=0;_Wr[_Or+3]=0;_Zr[i]=false;}return true;}function _8u3(){var _bu3=sprite_get_texture;sprite_get_texture=function(_Pb1,_cu3){var texture=_bu3(_Pb1,_cu3);if(texture&&!texture._Yc._z9){_y9(texture._Zc);}return texture;};_Ns3();}function _Ns3(){_09._ES1();_09._Ar(_Br());_09._1T1(_St,_Ut);_09._4s(_3s);_09._2s(_Yr);
_09._wr(_vr._sr,_vr._tr,_vr._ur,_vr.alpha);for(var i=0;i<_Wa._WU1;i++){_09._Xr(i,_Wr.subarray(i*4,(i+1)*4),_Pr.subarray(i*4,(i+1)*4),_Tr.subarray(i*4,(i+1)*4));}}function _Os3(){_09._FS1();}function _Ks3(_du3){if(_du3){_ns3={};if(_du3._Jf3){_ns3._ps3=_ps3;_ns3._zr=_zr;_ns3._3s=new Float32Array(_3s);_ns3._vs3=gpu_get_cullmode();_ns3._ts3=gpu_get_ztestenable();_ns3._us3=gpu_get_zwriteenable();_ps3=false;_zr=false;_rp(0,0xff000000,0,0);_09._KS1(false);_09._LS1(false);_09._QS1(false);_09._Ar(_Br());}if(_du3._Kf3){
_ns3._eu3=_09._7b._8b(_Wa._9b);_ns3._fu3=_09._7b._8b(_Wa._ab);_09._IS1(_Wa.__a,_Wa._9V1);}}}function _Ls3(_gu3){if(_ns3&&_gu3){if(_gu3._Mf3){_ps3=_ns3._ps3;_zr=_ns3._zr;_3s=new Float32Array(_ns3._3s);_09._4s(_3s);_09._LS1(_ns3._vs3);_09._KS1(_ns3._ts3);_09._QS1(_ns3._us3);_09._Ar(_Br());}if(_gu3._Nf3){_09._IS1(_ns3._eu3,_ns3._fu3);}_ns3=null;}}function _Br(){var _3S1=undefined;if(_zr){_3S1=_09._ZQ1;}else {_3S1=_09._YQ1;}return _3S1;}function _Gs3(_PZ2,_QZ2,_RZ2,_SZ2){var _hu3=_Yh1;var _iu3=_Zh1;_2H2._fs();
var w=_Yh1/_PZ2;var h=_Zh1/_QZ2;_2H2._RW((_hu3*-0.5+_RZ2)/_PZ2,(_iu3*-0.5+_SZ2)/_QZ2,16000);_Ce1._Hr(w,-h*_Ir,1.0,32000.0);_8s(_9s,_2H2);_8s(_ds,_Ce1);}function _Ds3(_TZ2,_UZ2,_VZ2,_WZ2,_d6){if(!_ps3){_OZ2(_TZ2,_UZ2,_VZ2,_WZ2,_d6);}else {var angle=-_d6*(Math.PI/180.0);var _0h2=new _Er((_TZ2+_VZ2/2.0),(_UZ2+_WZ2/2.0),-_VZ2);var _8h2=new _Er((_TZ2+_VZ2/2.0),(_UZ2+_WZ2/2.0),0.0);var _gh2=new _Er(Math.sin(angle),Math.cos(angle),0.0);_2H2._Fr(_0h2,_8h2,_gh2);if(false==_yr){_Ce1._Hr(_VZ2,-_WZ2*_Ir,1.0,32000.0);}
else {_Ce1._ws(1.0,_WZ2/_VZ2,1.0,32000.0);}_Ce1._e7[_gs]*=_Ir;}_8s(_9s,_2H2);_8s(_ds,_Ce1);_8s(_EF,_6s[_EF]);_pF=_TZ2;_qF=_UZ2;_nF=_VZ2;_oF=_WZ2;}function _Es3(_WR1,_XR1,_YR1,_ZR1){_iD=_WR1;_jD=_XR1;_kD=_YR1;_lD=_ZR1;var _y7=_XR1;if(_Ir==1){_y7=window_get_height()-(_ZR1+_XR1);}_09._VR1(_WR1,_y7,_YR1,_ZR1);_09._we1();}function _Hs3(_Xd){_09._we1();_09._ZT1(true,true,true,_6d(_Xd)|0xff000000);}function _bt3(_Xd,_ga){_09._we1();_ga=yyGetReal(_ga);if(_ga>1)_ga=1;if(_ga<0)_ga=0;var _55=((_ga*255.0)<<24)|_6d(yyGetInt32(_Xd));
_09._ZT1(true,true,false,_55);}function _ct3(_el){_09._ZT1(false,true,false,undefined,yyGetReal(_el)*0.5+0.5,undefined);}function _dt3(__T1){_09._ZT1(false,false,true,undefined,undefined,yyGetInt32(__T1),);}function _et3(_Sm,_ga,_el,__T1){var _ju3,_ku3,_lu3,_mu3;_ju3=_ku3=_lu3=_mu3=false;var _55,alpha,depth,stencil;if(_Sm!==undefined){_55=_6d(yyGetInt32(_Sm));_ju3=true;}if(_ga!==undefined){alpha=yyGetReal(_ga);_ku3=true;}if(_el!==undefined){depth=yyGetReal(_el)*0.5+0.5;_lu3=true;}if(__T1!==undefined){
stencil=yyGetInt32(__T1);_mu3=true;}if(_ju3&&!_ku3){_q5("draw_clear_ext() - argument alpha must be specified if argument col is not undefined");return;}if(_ku3&&!_ju3){_q5("draw_clear_ext() - argument col must be specified if argument alpha is not undefined");return;}_09._ZT1(_ju3,_lu3,_mu3,((alpha*255.0)<<24)|_55,depth,stencil,);}function _Cs3(_Xd){return(_Xd&0x00ffffff);}function _gt3(_ga){if(_ga<0){_ga=0;}if(_ga>1){_ga=1;}_3d=_ga;}function _Fs3(_qV){if(arguments.length>0){var _gD=arguments[0];}else {
}}function _Is3(_96,_a6,_f5,_g5,_d6){}function _Js3(_7s){}function _Ms3(_8z,_Uw,_96,_a6,_Qm,_Rm,_d6,_Xd,_ga){if(!_os3){var _N7=1024;var _O7=1024;var _B5=_XZ2(_N7,_O7);var _k5=new _im();_k5.x=0;_k5.y=0;_k5.w=_N7;_k5.h=_O7;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_B5;_k5.texture=_o5[_k5.tp];_os3=_k5;}var c=document.createElement("canvas");var _Lb=c.getContext("2d");_8z="20px arial";_Lb.font=_8z;_Lb.textBaseline="top";_Lb.textAlign="left";var _nu3=_Lb.measureText(_Uw);
var width=_nu3.width;var height=20;c.width=width;c.height=height;_Lb.globalAlpha=0.0;_Lb.globalCompositeOperation="copy";_Lb.fillStyle="black";_Lb.fillRect(0,0,c.width,c.height);_Lb.globalAlpha=1.0;_Lb.globalCompositeOperation="source-over";_Lb.fillStyle="white";_Lb.fillText(_Uw,0,0);}function _Rs3(_Bb1,_96,_a6,_ga){var _ob,_Rr2,_ou3,_vb,_xb,_zb,_55;if(!_Bb1.texture._z9){if(_Bb1.w==0||_Bb1.h==0)return;_y9(_Bb1);}_ob=_09._pb(_Wa._qb,_Bb1.texture._z9,_09._rb,6);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;
_ob._ub+=6;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;_vb=_ob._wb;_xb=_ob._yb;_zb=_ob._Ab;_96=_96+_Bb1.XOffset;_a6=_a6+_Bb1.YOffset;_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=_96;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=_a6;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=_96+_Bb1.CropWidth;_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=_a6+_Bb1.CropHeight;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=_Bb1.x/_Bb1.texture.width;_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=_Bb1.y/_Bb1.texture.height;
_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_Bb1.x+_Bb1.w)/_Bb1.texture.width;_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_Bb1.y+_Bb1.h)/_Bb1.texture.height;_55=((_ga*255.0)<<24)|0xffffff;var __D=_55,_sE=_55,_D82=_55,_E82=_55;if(_F82){__D&=0xfffefffe;_sE&=0xfffefffe;_D82&=0xfffefffe;_E82&=0xfffefffe;_sE|=0x00000001;_D82|=0x00010000;_E82|=0x00010001;}_xb[_Bb]=_xb[_6c]=__D;_xb[_3c]=_sE;_xb[_J5]=_xb[_4c]=_D82;_xb[_5c]=_E82;}function _mt3(_Bb1,_RZ2,_SZ2,_pu3,_qu3,_96,_a6,_Xi,_Yi,_rm,_sm,_KD,_LD){var _ob,_Rr2,_ou3,_vb,_xb,
_zb,_55;if(!_Bb1.texture._z9){if(_Bb1.w==0||_Bb1.h==0)return;_y9(_Bb1);}if(_rm==undefined){_rm=_sm=_KD=_LD=0xffffffff;}if(_sm==undefined){_sm=_KD=_LD=_rm;}_ob=_09._pb(_Wa._qb,_Bb1.texture._z9,_09._rb,6);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=6;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;_vb=_ob._wb;_xb=_ob._yb;_zb=_ob._Ab;_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=_96;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=_a6;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=_96+_Xi;_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=_a6+_Yi;
_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=_RZ2/_Bb1.texture.width;_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=_SZ2/_Bb1.texture.height;_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_RZ2+_pu3)/_Bb1.texture.width;_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_SZ2+_qu3)/_Bb1.texture.height;if(_F82){_rm&=0xfffefffe;_sm&=0xfffefffe;_KD&=0xfffefffe;_LD&=0xfffefffe;_sm|=0x00000001;_KD|=0x00010000;_LD|=0x00010001;}_xb[_Bb]=_xb[_6c]=_rm;_xb[_3c]=_sm;_xb[_J5]=_xb[_4c]=_KD;_xb[_5c]=_LD;
}function _Ss3(_Bb1,_96,_a6,_5_2,_6_2,vtiled,htiled,_Xd,_ga){var _ob,_Rr2,_ou3,_vb,_xb,_zb,w,h;if(!_Bb1.texture._z9){if(_Bb1.w==0||_Bb1.h==0)return;_y9(_Bb1);}var _ru3=abs(_5_2);var _su3=abs(_6_2);var ow=_Bb1.ow*_ru3;var oh=_Bb1.oh*_su3;var _un3=_5F.left;var _vn3=_5F.top;var _tu3=(_5F.right-_5F.left);var _uu3=(_5F.bottom-_5F.top);w=ow;h=oh;if(htiled){w=(((_tu3+(ow-1))/ow)+2)*ow;_96=_un3+_WH2(_96-_un3,ow)-ow;}if(vtiled){h=(((_uu3+(oh-1))/oh)+2)*oh;_a6=_vn3+_WH2(_a6-_vn3,oh)-oh;}if((ow<=0)||(oh<=0))return;var colour=_6d(_Xd)|(~~((_ga*255.0)<<24));
var __D=colour,_sE=colour,_D82=colour,_E82=colour;if(_F82){__D&=0xfffefffe;_sE&=0xfffefffe;_D82&=0xfffefffe;_E82&=0xfffefffe;_sE|=0x00000001;_D82|=0x00010000;_E82|=0x00010001;}var _vu3=1.0/_Bb1.texture.width;var _wu3=1.0/_Bb1.texture.height;var _G5=(_Bb1.x*_vu3);var _I5=(_Bb1.x+_Bb1.w)*_vu3;var _H5=(_Bb1.y*_wu3);var _J5=(_Bb1.y+_Bb1.h)*_wu3;var _xu3=_5_2*_Bb1.CropWidth;var _yu3=_6_2*_Bb1.CropHeight;var _MT=(w/ow);var _NT=(h/oh);var _y7=_a6+(_Bb1.YOffset*_su3);for(var _qo=0;_qo<_NT;_qo++,_y7+=(_Bb1.oh*_su3)){
var _w7=_96+(_Bb1.XOffset*_ru3);var _bE=_y7+_yu3;for(var _po=0;_po<_MT;_po++,_w7+=(_Bb1.ow*_ru3)){_ob=_09._pb(_Wa._qb,_Bb1.texture._z9,_09._rb,6);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=6;_vb=_ob._wb;_xb=_ob._yb;_zb=_ob._Ab;var _9E=_w7+_xu3;_xb[index]=__D;_vb[index+0]=_w7;_vb[index+1]=_y7;_vb[index+2]=_Fb;_zb[index+0]=_G5;_zb[index+1]=_H5;index+=_sb;_xb[index]=_sE;_vb[index+0]=_9E;_vb[index+1]=_y7;_vb[index+2]=_Fb;_zb[index+0]=_I5;_zb[index+1]=_H5;index+=_sb;_xb[index]=_D82;_vb[index+0]=_9E;
_vb[index+1]=_bE;_vb[index+2]=_Fb;_zb[index+0]=_I5;_zb[index+1]=_J5;index+=_sb;_xb[index]=_D82;_vb[index+0]=_9E;_vb[index+1]=_bE;_vb[index+2]=_Fb;_zb[index+0]=_I5;_zb[index+1]=_J5;index+=_sb;_xb[index]=_E82;_vb[index+0]=_w7;_vb[index+1]=_bE;_vb[index+2]=_Fb;_zb[index+0]=_G5;_zb[index+1]=_J5;index+=_sb;_xb[index]=__D;_vb[index+0]=_w7;_vb[index+1]=_y7;_vb[index+2]=_Fb;_zb[index+0]=_G5;_zb[index+1]=_H5;}}}function _Vs3(_zu3,_xU2,_6a,_Td3,_Ud3,x,y,_OJ,_PJ,angle,color,alpha,_Au3){var _Bu3=_vr;var _Cu3=_ps3;
_6a=~~_6a%(_xU2._eq2);if(_6a<0){_6a=_6a+(_xU2._eq2);}var _Du3=(color|((alpha*255)&0xff)<<24);var _Eu3=[];_Eu3[0]=_Du3&0xff;_Eu3[1]=(_Du3>>8)&0xff;_Eu3[2]=(_Du3>>16)&0xff;_Eu3[3]=(_Du3>>24)&0xff;var _Fu3=new _qr();_Fu3._RW(x,y,0.0);var _cd3=new _qr();_cd3._PW(angle);var _Gu3=new _qr();_Gu3._RW(-_Td3/_bq2,-_Ud3/_bq2,0.0);var _bd3=new _qr();_bd3._jK2(_bq2*_OJ,_bq2*_PJ,1.0);var _Hu3=new _qr();_Hu3.Multiply(_Gu3,_bd3);var _Iu3=new _qr();_Iu3.Multiply(_Hu3,_cd3);var _Ju3=new _qr();_Ju3.Multiply(_Iu3,_Fu3);var translate=new _qr();
translate._RW(0.5,0.5,0.0);var scale=new _qr();scale._jK2(1.0/32768.0,1.0/32768.0,1.0);var _Ku3=new _qr();_Ku3.Multiply(scale,translate);var _lq2=_xU2._kq2[_6a];var _Lu3=[],_Mu3=0,_Nu3=0,_Ou3=true;for(var i=0;i<_lq2._mq2;i++){var _Nx=_lq2._nq2[i];for(var _J6=0;_J6<_Mu3;){var _Pu3=_Lu3[_J6];if(_Pu3._oq2<_Nx.depth){_09._7T1(_Wa._NV1);_09._8T1(_Wa._FV1);_09._wr(false,false,false,false);_09._QS1(false);_Nu3+=_0Z2(_zu3,_Pu3,_Ju3,_Ku3,_Du3,_Eu3,false,_Au3);_09._aT1(_Mu3-1);_09._7T1(_Wa._IV1);_09._8T1(_Wa._yV1);
_09._wr(_Bu3._sr,_Bu3._tr,_Bu3._ur,_Bu3.alpha);_09._QS1(_Cu3);_Ou3=true;_Mu3--;for(var _0l=_J6;_0l<_Mu3;_0l++){_Lu3[_0l]=_Lu3[_0l+1];}}else {_J6++;}}if(_Nx._oq2>0){_Lu3[_Mu3++]=_Nx;_09._6T1(true);_09._7T1(_Wa._NV1);_09._8T1(_Wa._EV1);_09._wr(false,false,false,false);_09._QS1(false);_Ou3=false;}if(_Mu3==0){_09._6T1(false);_Ou3=true;}_Nu3+=_0Z2(_zu3,_Nx,_Ju3,_Ku3,_Du3,_Eu3,_Ou3?_1F:false,_Au3);if(_Nx._oq2>0){_09._aT1(_Mu3);_09._7T1(_Wa._IV1);_09._8T1(_Wa._yV1);_09._wr(_Bu3._sr,_Bu3._tr,_Bu3._ur,_Bu3.alpha);
_09._QS1(_Cu3);_Ou3=true;}}if(_Mu3>0){_09._7T1(_Wa._NV1);_09._8T1(_Wa._FV1);_09._wr(false,false,false,false);_09._QS1(false);for(var _J6=0;_J6<_Mu3;_J6++){var _Pu3=_Lu3[_J6];_Nu3+=_0Z2(_zu3,_Pu3,_Ju3,_Ku3,_Du3,_Eu3,false,_Au3);}}_09._6T1(false);_09._wr(_Bu3._sr,_Bu3._tr,_Bu3._ur,_Bu3.alpha);_09._QS1(_Cu3);}function _Ws3(_LE,_Qu3,_Ru3,_Su3,_Tu3,_Uu3,_Vu3,_Au3){var _Wu3=0;var _Xu3=[];_Xu3[0]=_Uu3[0],_Xu3[1]=_Uu3[1],_Xu3[2]=_Uu3[2],_Xu3[3]=0;var _Yu3=new _qr();_Yu3.Multiply(_Qu3._sp2,_Ru3);var _Zu3=1.0;if(_Vu3){
_Zu3=__u3(_Qu3,_Yu3)*_3F;}var _pq2=[],_qq2=[],_0v3=[];for(var i=0;i<4;i++){_pq2[i]=_Qu3._rq2[i];_qq2[i]=_Qu3._sq2[i];_0v3[i]=_Qu3._tq2[i];}if(_Qu3._ZI!==0){var _tl=_LE[_Qu3.index];if(_tl.type===_0p2){var _Om3=_tl;for(var _J6=0;_J6<_Om3._dp2.length;_J6++){var _991=_Om3._dp2[_J6];for(var _0l=0;_0l<_991._gp2;_0l++){var _Qp2=_991._kp2[_0l];if((_Qp2._Sp2>=0)&&(_Qp2._Vp2>0)){var _1v3=_991._ip2[_Qp2._Sp2];if((_1v3!==null)&&(_1v3!==undefined)){var _pp2=_1v3.type;if(_pp2===_3p2){_Wu3+=_2v3(_Qu3,_1v3,_Qp2,_Yu3,_Uu3,
_Xu3,_pq2,_qq2,_0v3,_Vu3);}else if((_pp2==_4p2)||(_pp2==_5p2)){_Wu3+=_3v3(_LE,_Qu3,_pp2,_1v3,_Qp2,_Su3,_Yu3,_Uu3,_Xu3,_Tu3,_pq2,_qq2,_0v3,_Vu3,_Au3);}}}if((_Qp2._Tp2>=0)&&(_Qp2._Xp2>0)){var _55=_991._jp2[_Qp2._Tp2]._55;var _Op2=[];_Op2[0]=((_55&0xff)*_Uu3[0])>>8;_Op2[1]=(((_55>>8)&0xff)*_Uu3[1])>>8;_Op2[2]=(((_55>>16)&0xff)*_Uu3[2])>>8;_Op2[3]=(((_55>>24)&0xff)*_Uu3[3])>>8;for(var _s7=0;_s7<4;_s7++){_Op2[_s7]=((_Op2[_s7]*_pq2[_s7])>>8)+_qq2[_s7];_Op2[_s7]=Math.max(0,Math.min(_Op2[_s7],255));}var _4v3=_Op2[0]|(_Op2[1]<<8)|(_Op2[2]<<16)|(_Op2[3]<<24);
var _5v3=[];_5v3[0]=((_55&0xff)*_Xu3[0])>>8;_5v3[1]=(((_55>>8)&0xff)*_Xu3[1])>>8;_5v3[2]=(((_55>>16)&0xff)*_Xu3[2])>>8;_5v3[3]=(((_55>>24)&0xff)*_Xu3[3])>>8;for(var _s7=0;_s7<4;_s7++){_5v3[_s7]=((_5v3[_s7]*_pq2[_s7])>>8)+_0v3[_s7];_5v3[_s7]=_q7(0,_r7(_5v3[_s7],255));}var _6v3=_5v3[0]|(_5v3[1]<<8)|(_5v3[2]<<16)|(_5v3[3]<<24);if(_Vu3&&(_Qp2.__p2>0)){var _ra=_Qp2.__p2*6;var _ob=_09._pb(_Wa._qb,null,_09._rb,_ra);var _sb=_ob._tb()>>2;var _Xe3=_sb*_ob._ub;_ob._ub+=_ra;var _vb=_ob._wb;var _xb=_ob._yb;var _zb=_ob._Ab;
_Wu3+=_Qp2.__p2*2;for(var _s7=0;_s7<_Qp2.__p2;_s7++){var _du1=_Qp2._8q2[(_s7*2)+0],_eu1=_Qp2._8q2[(_s7*2)+1];var _7v3=_Qp2._4q2[(_du1*2)+0],_8v3=_Qp2._4q2[(_du1*2)+1];var _9v3=_Qp2._9q2[(_du1*2)+0],_av3=_Qp2._9q2[(_du1*2)+1];var _bv3=_Qp2._4q2[(_eu1*2)+0],_cv3=_Qp2._4q2[(_eu1*2)+1];var _dv3=_Qp2._9q2[(_eu1*2)+0],_ev3=_Qp2._9q2[(_eu1*2)+1];var _f7=(_7v3*_Yu3._e7[_Ns])+(_8v3*_Yu3._e7[_Os])+_Yu3._e7[_Qs],_g7=(_7v3*_Yu3._e7[_Rs])+(_8v3*_Yu3._e7[_gs])+_Yu3._e7[_Ts],_h7=(_bv3*_Yu3._e7[_Ns])+(_cv3*_Yu3._e7[_Os])+_Yu3._e7[_Qs],
_i7=(_bv3*_Yu3._e7[_Rs])+(_cv3*_Yu3._e7[_gs])+_Yu3._e7[_Ts];_9v3*=_Zu3;_av3*=_Zu3;_dv3*=_Zu3;_ev3*=_Zu3;var _1c=(_9v3*_Yu3._e7[_Ns])+(_av3*_Yu3._e7[_Os])+_f7,_2c=(_9v3*_Yu3._e7[_Rs])+(_av3*_Yu3._e7[_gs])+_g7,_qm2=(_dv3*_Yu3._e7[_Ns])+(_ev3*_Yu3._e7[_Os])+_h7,_rm2=(_dv3*_Yu3._e7[_Rs])+(_ev3*_Yu3._e7[_gs])+_i7;_vb[_Xe3+0]=_f7;_vb[_Xe3+1]=_g7;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_4v3;_Xe3+=_sb;_vb[_Xe3+0]=_h7;_vb[_Xe3+1]=_i7;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_4v3;_Xe3+=_sb;_vb[_Xe3+0]=_1c;_vb[_Xe3+1]=_2c;_vb[_Xe3+2]=_Fb;
_xb[_Xe3]=_6v3;_Xe3+=_sb;_vb[_Xe3+0]=_1c;_vb[_Xe3+1]=_2c;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_6v3;_Xe3+=_sb;_vb[_Xe3+0]=_h7;_vb[_Xe3+1]=_i7;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_4v3;_Xe3+=_sb;_vb[_Xe3+0]=_qm2;_vb[_Xe3+1]=_rm2;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_6v3;_Xe3+=_sb;}}var _ra=_Qp2._Xp2*3;var _ob=_09._pb(_Wa._qb,null,_09._rb,_ra);var _sb=_ob._tb()>>2;var _Xe3=_sb*_ob._ub;_ob._ub+=_ra;_vb=_ob._wb;_xb=_ob._yb;_zb=_ob._Ab;_Wu3+=_Qp2._Xp2;var _fv3=0;for(var _s7=_Qp2._Xp2*3;_s7>0;--_s7){var index=_Qp2._5q2[_fv3++];var _gv3=_Qp2._4q2[index*2];
var _hv3=_Qp2._4q2[(index*2)+1];var x=(_gv3*_Yu3._e7[_Ns])+(_hv3*_Yu3._e7[_Os])+_Yu3._e7[_Qs];var y=(_gv3*_Yu3._e7[_Rs])+(_hv3*_Yu3._e7[_gs])+_Yu3._e7[_Ts];_vb[_Xe3+0]=x;_vb[_Xe3+1]=y;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_4v3;_Xe3+=_sb;}}}}}}return _Wu3;}function _3v3(_LE,_Qu3,_iv3,_jv3,_kv3,_Su3,_lv3,_Uu3,_mv3,_Tu3,_nv3,_ov3,_pv3,_Vu3,_Au3){var _Wu3=0;var _vb,_xb,_zb,_k5=null,_Zu3=1.0,_qv3=new _qr();if(_Vu3){_Zu3=__u3(_Qu3,_lv3)*_3F;}if(_iv3===_4p2){var _rv3=_jv3;if(_rv3._Do2>-1){_k5=_Au3[_rv3._Do2];var _sv3=new _qr();
var _tv3=new _qr();var _uv3=new _qr();var _vv3=new _qr();_tv3._RW(_k5.x/_k5.texture.width,_k5.y/_k5.texture.height,0);_sv3._jK2(_k5.w/_k5.texture.width,_k5.h/_k5.texture.height,1.0);_uv3.Multiply(_sv3,_tv3);_vv3.Multiply(_Su3,_uv3);_qv3.Multiply(_rv3._sp2,_vv3);}else {_k5=_rv3._Zc;_qv3.Multiply(_rv3._sp2,_Su3);}}else if(_iv3===_5p2){var _rv3=_jv3;if(_rv3._xp2!==-1){var _wv3=_LE[_rv3._xp2];if(_wv3._Do2>-1){_k5=_Au3[_wv3._Do2];var _TV2=_k5.w/_k5.ow;var _UV2=_k5.h/_k5.oh;var _tv3=new _qr();var _sv3=new _qr();var _uv3=new _qr();
_tv3._RW(_k5.x/_TV2,_k5.y/_UV2,0);_sv3._jK2((1.0/_k5.texture.width)*_TV2,(1.0/_k5.texture.height)*_UV2,1.0);_uv3.Multiply(_tv3,_sv3);_qv3.Multiply(_rv3._sp2,_uv3);if((_rv3._vp2===_yo2)||(_rv3._vp2===_Ao2)){_09._3T1(0,true);}else {_09._3T1(0,false);}}else {var _n5=_wv3._n5;_k5={texture:_n5};if(_n5!==null){var _sv3=new _qr();_sv3._jK2(1.0/_n5.width,1.0/_n5.height,1.0);_qv3.Multiply(_rv3._sp2,_sv3);if((_rv3._vp2===_yo2)||(_rv3._vp2===_Ao2)){_09._3T1(0,true);}else {_09._3T1(0,false);}}}}}if(_k5!==null){if(!_k5.texture._z9){
if(_k5.w==0||_k5.h==0)return;_y9(_k5);}_Wu3+=_kv3._Vp2;if(_Vu3&&(_kv3._Yp2>0)){_Wu3+=_kv3._Yp2*2;var _Op2=[];for(var _s7=0;_s7<4;_s7++){_Op2[_s7]=((_Uu3[_s7]*_nv3[_s7])>>8)+_ov3[_s7];_Op2[_s7]=Math.max(0,Math.min(_Op2[_s7],255));}var _4v3=_Op2[0]|(_Op2[1]<<8)|(_Op2[2]<<16)|(_Op2[3]<<24);var _5v3=[];for(var _s7=0;_s7<4;_s7++){_5v3[_s7]=((_mv3[_s7]*_nv3[_s7])>>8)+_pv3[_s7];_5v3[_s7]=Math.max(0,Math.min(_5v3[_s7],255));}var _6v3=_5v3[0]|(_5v3[1]<<8)|(_5v3[2]<<16)|(_5v3[3]<<24);var _ra=_kv3._Yp2*6;var _ob=_09._pb(_Wa._qb,
_k5.texture._z9,_09._rb,_ra);var _sb=_ob._tb()>>2;var _Xe3=_sb*_ob._ub;_ob._ub+=_ra;var _vb=_ob._wb;var _xb=_ob._yb;var _zb=_ob._Ab;var _xv3=0;for(_s7=_kv3._Yp2;_s7>0;_s7--){var _du1=_kv3._6q2[_xv3++],_eu1=_kv3._6q2[_xv3++];var _yv3=_du1*2,_zv3=_du1*2;var _7v3=_kv3._1q2[_yv3];_yv3++;var _8v3=_kv3._1q2[_yv3];var _9v3=_kv3._7q2[_zv3];_zv3++;var _av3=_kv3._7q2[_zv3];_yv3=_eu1*2;_zv3=_eu1*2;var _bv3=_kv3._1q2[_yv3];_yv3++;var _cv3=_kv3._1q2[_yv3];var _dv3=_kv3._7q2[_zv3];_zv3++;var _ev3=_kv3._7q2[_zv3];var _f7=(_7v3*_lv3._e7[_Ns])+(_8v3*_lv3._e7[_Os])+_lv3._e7[_Qs],
_g7=(_7v3*_lv3._e7[_Rs])+(_8v3*_lv3._e7[_gs])+_lv3._e7[_Ts],_h7=(_bv3*_lv3._e7[_Ns])+(_cv3*_lv3._e7[_Os])+_lv3._e7[_Qs],_i7=(_bv3*_lv3._e7[_Rs])+(_cv3*_lv3._e7[_gs])+_lv3._e7[_Ts];_9v3*=_Zu3;_av3*=_Zu3;_dv3*=_Zu3;_ev3*=_Zu3;var _1c=(_9v3*_lv3._e7[_Ns])+(_av3*_lv3._e7[_Os])+_f7,_2c=(_9v3*_lv3._e7[_Rs])+(_av3*_lv3._e7[_gs])+_g7,_qm2=(_dv3*_lv3._e7[_Ns])+(_ev3*_lv3._e7[_Os])+_h7,_rm2=(_dv3*_lv3._e7[_Rs])+(_ev3*_lv3._e7[_gs])+_i7;_9v3+=_7v3;_av3+=_8v3;_dv3+=_bv3;_ev3+=_cv3;_vb[_Xe3+0]=_f7;_vb[_Xe3+1]=_g7;
_vb[_Xe3+2]=_Fb;_zb[_Xe3+0]=(_7v3*_qv3._e7[_Ns])+(_8v3*_qv3._e7[_Os])+_qv3._e7[_Qs];_zb[_Xe3+1]=(_7v3*_qv3._e7[_Rs])+(_8v3*_qv3._e7[_gs])+_qv3._e7[_Ts];_xb[_Xe3]=_4v3;_Xe3+=_sb;_vb[_Xe3+0]=_h7;_vb[_Xe3+1]=_i7;_vb[_Xe3+2]=_Fb;_zb[_Xe3+0]=(_bv3*_qv3._e7[_Ns])+(_cv3*_qv3._e7[_Os])+_qv3._e7[_Qs];_zb[_Xe3+1]=(_bv3*_qv3._e7[_Rs])+(_cv3*_qv3._e7[_gs])+_qv3._e7[_Ts];_xb[_Xe3]=_4v3;_Xe3+=_sb;_vb[_Xe3+0]=_1c;_vb[_Xe3+1]=_2c;_vb[_Xe3+2]=_Fb;_zb[_Xe3+0]=(_9v3*_qv3._e7[_Ns])+(_av3*_qv3._e7[_Os])+_qv3._e7[_Qs];
_zb[_Xe3+1]=(_9v3*_qv3._e7[_Rs])+(_av3*_qv3._e7[_gs])+_qv3._e7[_Ts];_xb[_Xe3]=_6v3;_Xe3+=_sb;_vb[_Xe3+0]=_1c;_vb[_Xe3+1]=_2c;_vb[_Xe3+2]=_Fb;_zb[_Xe3+0]=(_9v3*_qv3._e7[_Ns])+(_av3*_qv3._e7[_Os])+_qv3._e7[_Qs];_zb[_Xe3+1]=(_9v3*_qv3._e7[_Rs])+(_av3*_qv3._e7[_gs])+_qv3._e7[_Ts];_xb[_Xe3]=_6v3;_Xe3+=_sb;_vb[_Xe3+0]=_h7;_vb[_Xe3+1]=_i7;_vb[_Xe3+2]=_Fb;_zb[_Xe3+0]=(_bv3*_qv3._e7[_Ns])+(_cv3*_qv3._e7[_Os])+_qv3._e7[_Qs];_zb[_Xe3+1]=(_bv3*_qv3._e7[_Rs])+(_cv3*_qv3._e7[_gs])+_qv3._e7[_Ts];_xb[_Xe3]=_4v3;
_Xe3+=_sb;_vb[_Xe3+0]=_qm2;_vb[_Xe3+1]=_rm2;_vb[_Xe3+2]=_Fb;_zb[_Xe3+0]=(_dv3*_qv3._e7[_Ns])+(_ev3*_qv3._e7[_Os])+_qv3._e7[_Qs];_zb[_Xe3+1]=(_dv3*_qv3._e7[_Rs])+(_ev3*_qv3._e7[_gs])+_qv3._e7[_Ts];_xb[_Xe3]=_6v3;_Xe3+=_sb;}}var _ra=_kv3._Vp2*3;var _ob=_09._pb(_Wa._qb,_k5.texture._z9,_09._rb,_ra);var _sb=_ob._tb()>>2;var _Xe3=_sb*_ob._ub;_ob._ub+=_ra;_vb=_ob._wb,_xb=_ob._yb,_zb=_ob._Ab;var _fv3=0;for(var _s7=_kv3._Vp2*3;_s7>0;--_s7){var index=_kv3._3q2[_fv3++];var _gv3=_kv3._1q2[index*2];var _hv3=_kv3._1q2[(index*2)+1];
var x=(_gv3*_lv3._e7[_Ns])+(_hv3*_lv3._e7[_Os])+_lv3._e7[_Qs];var y=(_gv3*_lv3._e7[_Rs])+(_hv3*_lv3._e7[_gs])+_lv3._e7[_Ts];_vb[_Xe3+0]=x;_vb[_Xe3+1]=y;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_Tu3;_zb[_Xe3+0]=(_gv3*_qv3._e7[_Ns])+(_hv3*_qv3._e7[_Os])+_qv3._e7[_Qs];_zb[_Xe3+1]=(_gv3*_qv3._e7[_Rs])+(_hv3*_qv3._e7[_gs])+_qv3._e7[_Ts];_Xe3+=_sb;}}return _Wu3;}function _2v3(_Qu3,_jv3,_kv3,_lv3,_Uu3,_mv3,_nv3,_ov3,_pv3,_Vu3){var _Wu3=0;var _Zu3=1.0;if(_Vu3){_Zu3=__u3(_Qu3,_lv3)*_3F;}var _Av3=false;var _rv3=_jv3,_55=_rv3._55,
_s7=0;var _Op2=[];var _Y4=(_55&0xff),_Z4=((_55>>8)&0xff),__4=((_55>>16)&0xff),_05=((_55>>24)&0xff);_Op2[0]=(_Y4*_Uu3[0])>>8;_Op2[1]=(_Z4*_Uu3[1])>>8;_Op2[2]=(__4*_Uu3[2])>>8;_Op2[3]=(_05*_Uu3[3])>>8;for(_s7=0;_s7<4;_s7++){_Op2[_s7]=((_Op2[_s7]*_nv3[_s7])>>8)+_ov3[_s7];_Op2[_s7]=_q7(0,_r7(_Op2[_s7],255));}var _4v3=_Op2[0]|(_Op2[1]<<8)|(_Op2[2]<<16)|(_Op2[3]<<24);var _5v3=[];_5v3[0]=((_55&0xff)*_mv3[0])>>8;_5v3[1]=(((_55>>8)&0xff)*_mv3[1])>>8;_5v3[2]=(((_55>>16)&0xff)*_mv3[2])>>8;_5v3[3]=(((_55>>24)&0xff)*_mv3[3])>>8;
for(_s7=0;_s7<4;_s7++){_5v3[_s7]=((_5v3[_s7]*_nv3[_s7])>>8)+_pv3[_s7];_5v3[_s7]=_q7(0,_r7(_5v3[_s7],255));}var _6v3=_5v3[0]|(_5v3[1]<<8)|(_5v3[2]<<16)|(_5v3[3]<<24);if(_Av3){}else if(_Vu3&&(_kv3._Yp2>0)){_Wu3+=_kv3._Yp2*2;var _ra=_kv3._Yp2*6;var _ob=_09._pb(_Wa._qb,null,_09._rb,_ra);var _sb=_ob._tb()>>2;var _Xe3=_sb*_ob._ub;_ob._ub+=_ra;var _vb=_ob._wb;var _xb=_ob._yb;var _xv3=0;for(_s7=_kv3._Yp2;_s7>0;_s7--){var _du1=_kv3._6q2[_xv3++],_eu1=_kv3._6q2[_xv3++];var _yv3=_du1*2,_zv3=_du1*2;var _7v3=_kv3._1q2[_yv3];
_yv3++;var _8v3=_kv3._1q2[_yv3];var _9v3=_kv3._7q2[_zv3];_zv3++;var _av3=_kv3._7q2[_zv3];_yv3=_eu1*2;_zv3=_eu1*2;var _bv3=_kv3._1q2[_yv3];_yv3++;var _cv3=_kv3._1q2[_yv3];var _dv3=_kv3._7q2[_zv3];_zv3++;var _ev3=_kv3._7q2[_zv3];var _f7=(_7v3*_lv3._e7[_Ns])+(_8v3*_lv3._e7[_Os])+_lv3._e7[_Qs],_g7=(_7v3*_lv3._e7[_Rs])+(_8v3*_lv3._e7[_gs])+_lv3._e7[_Ts],_h7=(_bv3*_lv3._e7[_Ns])+(_cv3*_lv3._e7[_Os])+_lv3._e7[_Qs],_i7=(_bv3*_lv3._e7[_Rs])+(_cv3*_lv3._e7[_gs])+_lv3._e7[_Ts];_9v3*=_Zu3;_av3*=_Zu3;_dv3*=_Zu3;_ev3*=_Zu3;
var _1c=(_9v3*_lv3._e7[_Ns])+(_av3*_lv3._e7[_Os])+_f7,_2c=(_9v3*_lv3._e7[_Rs])+(_av3*_lv3._e7[_gs])+_g7,_qm2=(_dv3*_lv3._e7[_Ns])+(_ev3*_lv3._e7[_Os])+_h7,_rm2=(_dv3*_lv3._e7[_Rs])+(_ev3*_lv3._e7[_gs])+_i7;_vb[_Xe3+0]=_f7;_vb[_Xe3+1]=_g7;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_4v3;_Xe3+=_sb;_vb[_Xe3+0]=_h7;_vb[_Xe3+1]=_i7;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_4v3;_Xe3+=_sb;_vb[_Xe3+0]=_1c;_vb[_Xe3+1]=_2c;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_6v3;_Xe3+=_sb;_vb[_Xe3+0]=_1c;_vb[_Xe3+1]=_2c;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_6v3;_Xe3+=_sb;_vb[_Xe3+0]=_h7;
_vb[_Xe3+1]=_i7;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_4v3;_Xe3+=_sb;_vb[_Xe3+0]=_qm2;_vb[_Xe3+1]=_rm2;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_6v3;_Xe3+=_sb;}}var _ra=_kv3._Vp2*3;var _ob=_09._pb(_Wa._qb,null,_09._rb,_ra);var _sb=_ob._tb()>>2;var _Xe3=_sb*_ob._ub;_ob._ub+=_ra;_vb=_ob._wb;_xb=_ob._yb;_Wu3+=_kv3._Vp2;var _fv3=0;for(var _s7=_kv3._Vp2*3;_s7>0;--_s7){var index=_kv3._3q2[_fv3++];var _gv3=_kv3._1q2[index*2];var _hv3=_kv3._1q2[(index*2)+1];var x=(_gv3*_lv3._e7[_Ns])+(_hv3*_lv3._e7[_Os])+_lv3._e7[_Qs];var y=(_gv3*_lv3._e7[_Rs])+(_hv3*_lv3._e7[_gs])+_lv3._e7[_Ts];
_vb[_Xe3+0]=x;_vb[_Xe3+1]=y;_vb[_Xe3+2]=_Fb;_xb[_Xe3]=_4v3;_Xe3+=_sb;}return _Wu3;}function __u3(_Qu3,_lv3){if(_1F){if(_Qu3._Zu3!==undefined){return _Qu3._Zu3;}var _KW2=_cs(_EF);var _bt2=_cs(_9s);var _ct2=_cs(_ds);var _Bv3=new _qr();_Bv3.Multiply(_KW2,_bt2);var _Cv3=new _qr();_Cv3.Multiply(_Bv3,_ct2);var _Dv3=new _qr();_Dv3.Multiply(_lv3,_Cv3);var _Ev3=_09.__Q1,_Fv3=_09._0R1;var _Gv3=[];_Gv3[0]=0.0;_Gv3[1]=0.0;_Gv3[2]=1.0;_Gv3[3]=0.0;_Gv3[4]=0.0;_Gv3[5]=1.0;var _Hv3=[];for(var i=0;i<3;i++){var _zs2=(_Gv3[i*2]*_Dv3._e7[_Zs])+(_Gv3[(i*2)+1]*_Dv3._e7[__s])+(_Fb*_Dv3._e7[_0t])+_Dv3._e7[_1t];
var index=(i*2)+0;_Hv3[index]=(_Gv3[i*2]*_Dv3._e7[_Ns])+(_Gv3[(i*2)+1]*_Dv3._e7[_Os])+(_Fb*_Dv3._e7[_Ps])+_Dv3._e7[_Qs];_Hv3[index]=_Hv3[index]/_zs2;_Hv3[index]=_Hv3[index]*_Ev3;index++;_Hv3[index]=(_Gv3[i*2]*_Dv3._e7[_Rs])+(_Gv3[(i*2)+1]*_Dv3._e7[_gs])+(_Fb*_Dv3._e7[_Ss])+_Dv3._e7[_Ts];_Hv3[index]=_Hv3[index]/_zs2;_Hv3[index]=_Hv3[index]*_Fv3;}var _Iv3=[];_Iv3[0]=_Hv3[2]-_Hv3[0];_Iv3[1]=_Hv3[3]-_Hv3[1];_Iv3[2]=_Hv3[4]-_Hv3[0];_Iv3[3]=_Hv3[5]-_Hv3[1];var _Jv3=0.0,_Zu3=1.0,index=0;for(var i=0;i<2;i++){
var length=_Iv3[index]*_Iv3[index];index++;length+=_Iv3[index]*_Iv3[index];index++;if(length>0.0){length=Math.sqrt(length);}_Jv3=Math.max(length,_Jv3);}_Jv3*=0.5;if(_Jv3>0.0){_Zu3=1.0/_Jv3;}_Qu3._Zu3=_Zu3;return _Zu3;}return 1.0;}function _Ts3(_Bb1,_0b1,_1b1,_96,_a6,_5_2,_6_2,_h5,_Xd,_sm,_KD,_LD,_ga){var _ob,_Rr2,_ou3,_vb,_xb,_zb;if(_Bb1===undefined){debug("Attempting to draw texture that is not loaded");return;}if(!_Bb1.texture._z9){if(_Bb1.w==0||_Bb1.h==0)return;_y9(_Bb1);}_ob=_09._pb(_Wa._qb,_Bb1.texture._z9,
_09._rb,6);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=6;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;_vb=_ob._wb;_xb=_ob._yb;_zb=_ob._Ab;var _f7=-_5_2*(_0b1-_Bb1.XOffset);var _g7=-_6_2*(_1b1-_Bb1.YOffset);var _h7=_f7+(_5_2*_Bb1.CropWidth);var _i7=_g7+(_6_2*_Bb1.CropHeight);if(Math.abs(_h5)<0.001){_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=_96+_f7;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=_a6+_g7;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=_96+_h7;_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=_a6+_i7;
_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;}else {var _P7=Math.sin(_h5);var _Q7=Math.cos(_h5);var _H82=_f7*_Q7;var _I82=_h7*_Q7;var _J82=_g7*_Q7;var _K82=_i7*_Q7;var _L82=_f7*_P7;var _M82=_h7*_P7;var _N82=_g7*_P7;var _O82=_i7*_P7;_vb[_Bb+0]=_vb[_6c+0]=_96+_H82+_N82;_vb[_Bb+1]=_vb[_6c+1]=_a6-_L82+_J82;_vb[_J5+0]=_vb[_4c+0]=_96+_I82+_O82;_vb[_J5+1]=_vb[_4c+1]=_a6-_M82+_K82;_vb[_3c+1]=_a6-_M82+_J82;_vb[_3c+0]=_96+_I82+_N82;_vb[_5c+0]=_96+_H82+_O82;_vb[_5c+1]=_a6-_L82+_K82;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;
}_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=_Bb1.x/_Bb1.texture.width;_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=_Bb1.y/_Bb1.texture.height;_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_Bb1.x+_Bb1.w)/_Bb1.texture.width;_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_Bb1.y+_Bb1.h)/_Bb1.texture.height;var _05=~~(_ga*255.0);_05=_05-((_05-255)&((255-_05)>>31));_05=_05-(_05&(_05>>31));_05=(_05<<24);_Xd=_05|(_Xd&0xffffff);if(_sm==undefined){_sm=_Xd;_KD=_Xd;_LD=_Xd;}else {_sm=(_sm&0xffffff)|_05;_KD=(_KD&0xffffff)|_05;_LD=(_LD&0xffffff)|_05;}if(_F82){
_Xd&=0xfffefffe;_sm&=0xfffefffe;_KD&=0xfffefffe;_LD&=0xfffefffe;_sm|=0x00000001;_KD|=0x00010000;_LD|=0x00010001;}_xb[_Bb]=_xb[_6c]=_Xd;_xb[_3c]=_sm;_xb[_J5]=_xb[_4c]=_KD;_xb[_5c]=_LD;}function _Us3(_Bb1,_F7,_G7,_77,_87,_Ro,_So,_Xf1,_Yf1,_ga){var _55=~~((_ga*255.0)<<24)|0xffffff;var _sE=_55;var _D82=_55;var _E82=_55;var _ob,_Rr2,_ou3,_vb,_xb,_zb;if(!_Bb1.texture._z9){if(_Bb1.w==0||_Bb1.h==0)return;_y9(_Bb1);}_ob=_09._pb(_Wa._qb,_Bb1.texture._z9,_09._rb,6);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=6;
var _Bb=index,_3c=_Bb+_sb,_J5=_3c+_sb,_4c=_J5+_sb,_5c=_4c+_sb,_6c=_5c+_sb;_vb=_ob._wb;_xb=_ob._yb;_zb=_ob._Ab;_vb[_Bb+0]=_vb[_6c+0]=_F7;_vb[_Bb+1]=_vb[_6c+1]=_G7;_vb[_3c+0]=_77;_vb[_3c+1]=_87;_vb[_J5+0]=_vb[_4c+0]=_Ro;_vb[_J5+1]=_vb[_4c+1]=_So;_vb[_5c+0]=_Xf1;_vb[_5c+1]=_Yf1;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=_Bb1.x/_Bb1.texture.width;_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=_Bb1.y/_Bb1.texture.height;_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_Bb1.x+_Bb1.w)/_Bb1.texture.width;
_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_Bb1.y+_Bb1.h)/_Bb1.texture.height;if(_F82){_55&=0xfffefffe;_sE&=0xfffefffe;_D82&=0xfffefffe;_E82&=0xfffefffe;_sE|=0x00000001;_D82|=0x00010000;_E82|=0x00010001;}_xb[_Bb]=_xb[_6c]=_55;_xb[_3c]=_sE;_xb[_J5]=_xb[_4c]=_D82;_xb[_5c]=_E82;}function _Kv3(_Bb1,_0b1,_1b1,_89,_99,_96,_a6,_5_2,_6_2,_h5,_Xd,_sm,_KD,_LD,_ga){var _ob,_Rr2,_ou3,_vb,_xb,_zb;if(!_Bb1.texture._z9){if(_Bb1.w==0||_Bb1.h==0)return;_y9(_Bb1);}_ob=_09._pb(_Wa._qb,_Bb1.texture._z9,_09._rb,6);var _sb=_ob._tb()>>2;
var index=_sb*_ob._ub;_ob._ub+=6;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;_vb=_ob._wb;_xb=_ob._yb;_zb=_ob._Ab;var _f7=-_5_2*(_0b1-_Bb1.XOffset);var _g7=-_6_2*(_1b1-_Bb1.YOffset);var _h7=_f7+(_5_2*_89);var _i7=_g7+(_6_2*_99);if(Math.abs(_h5)<0.001){_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=_96+_f7;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=_a6+_g7;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=_96+_h7;_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=_a6+_i7;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;
}else {var _P7=Math.sin(_h5);var _Q7=Math.cos(_h5);var _H82=_f7*_Q7;var _I82=_h7*_Q7;var _J82=_g7*_Q7;var _K82=_i7*_Q7;var _L82=_f7*_P7;var _M82=_h7*_P7;var _N82=_g7*_P7;var _O82=_i7*_P7;_vb[_Bb+0]=_vb[_6c+0]=_96+_H82+_N82;_vb[_Bb+1]=_vb[_6c+1]=_a6-_L82+_J82;_vb[_J5+0]=_vb[_4c+0]=_96+_I82+_O82;_vb[_J5+1]=_vb[_4c+1]=_a6-_M82+_K82;_vb[_3c+1]=_a6-_M82+_J82;_vb[_3c+0]=_96+_I82+_N82;_vb[_5c+0]=_96+_H82+_O82;_vb[_5c+1]=_a6-_L82+_K82;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;}_zb[_Bb+0]=_zb[_5c+0]=_zb[_6c+0]=_Bb1.x/_Bb1.texture.width;
_zb[_Bb+1]=_zb[_3c+1]=_zb[_6c+1]=_Bb1.y/_Bb1.texture.height;_zb[_3c+0]=_zb[_J5+0]=_zb[_4c+0]=(_Bb1.x+_89)/_Bb1.texture.width;_zb[_J5+1]=_zb[_4c+1]=_zb[_5c+1]=(_Bb1.y+_99)/_Bb1.texture.height;var _05=(_ga*255.0)<<24;_Xd=_05|(_Xd&0xffffff);if(_sm==undefined){_sm=_Xd;_KD=_Xd;_LD=_Xd;}else {_sm=_sm|_05;_KD=_KD|_05;_LD=_LD|_05;}if(_F82){_Xd&=0xfffefffe;_sm&=0xfffefffe;_KD&=0xfffefffe;_LD&=0xfffefffe;_sm|=0x00000001;_KD|=0x00010000;_LD|=0x00010001;}_xb[_Bb]=_xb[_6c]=_Xd;_xb[_3c]=_sm;_xb[_J5]=_xb[_4c]=_KD;
_xb[_5c]=_LD;}function _Qs3(_me,_96,_a6,_Xi,_Yi,_FQ1,_y91){_09._oT1(_me,_96,_a6,_Xi,_Yi,_FQ1,_y91);}function _Xs3(_Bb1,_Lm,_Mm,_89,_99,_96,_a6,_Qm,_Rm,_Sm,_ga){if(!_Bb1)return;if(!_Bb1.texture)return;_Sm&=0xffffff;_Sm|=(_ga*255)<<24;if(_Lm<_Bb1.XOffset){var _e_2=_Bb1.XOffset-_Lm;_96+=_e_2*_Qm;_89-=_e_2;_Lm=0;}else {_Lm-=_Bb1.XOffset;}if(_Mm<_Bb1.YOffset){var _e_2=_Bb1.YOffset-_Mm;_a6+=_e_2*_Rm;_99-=_e_2;_Mm=0;}else {_Mm-=_Bb1.YOffset;}if(_89>(_Bb1.CropWidth-_Lm))_89=_Bb1.CropWidth-_Lm;if(_99>(_Bb1.CropHeight-_Mm))_99=_Bb1.CropHeight-_Mm;
if(_89<=0||_99<=0)return;_mt3(_Bb1,_Lm+_Bb1.x,_Mm+_Bb1.y,_89,_99,_96,_a6,_89*_Qm,_99*_Rm,_Sm);}function _Ys3(_F7,_G7,_77,_87,_zD){var _ob,_Rr2,_ou3,_vb,_xb,_zb;_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_zD=yyGetBool(_zD);var _gh=_Wa._qb;var _c9=6;if(_zD){_gh=_Wa._Ec;_c9=8;}_ob=_09._pb(_gh,null,_09._rb,_c9);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_c9;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;var _Lv3=_6c+_sb;var _Mv3=_Lv3+_sb;
_vb=_ob._wb;_xb=_ob._yb;var _55=~~((_3d*255.0)<<24)|(_4d&0xffffff);var _sE=_55;var _D82=_55;var _E82=_55;if(_F82){_55&=0xfffefffe;_sE&=0xfffefffe;_D82&=0xfffefffe;_E82&=0xfffefffe;_sE|=0x00000001;_D82|=0x00010000;_E82|=0x00010001;}if(!_zD){if(_Bs3!=0.0){_77+=_Bs3;_87+=_Bs3;}_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=_F7;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=_G7;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=_77;_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=_87;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;_xb[_Bb]=_xb[_6c]=_55;
_xb[_3c]=_sE;_xb[_J5]=_xb[_4c]=_D82;_xb[_5c]=_E82;}else {if(_Bs3!=0.0){_F7+=_Bs3;_G7+=_Bs3;_77+=_Bs3;_87+=_Bs3;}_xb[_Bb]=_xb[_3c]=_xb[_J5]=_xb[_4c]=_xb[_5c]=_xb[_6c]=_xb[_Lv3]=_xb[_Mv3]=_55;_vb[_6c+0]=_vb[_Mv3+0]=_vb[_Lv3+0]=_vb[_Bb+0]=_F7;_vb[_Mv3+1]=_vb[_J5+1]=_vb[_3c+1]=_vb[_Bb+1]=_G7;_vb[_5c+0]=_vb[_4c+0]=_vb[_J5+0]=_vb[_3c+0]=_77;_vb[_4c+1]=_vb[_5c+1]=_vb[_6c+1]=_vb[_Lv3+1]=_87;_vb[_Mv3+1]=_G7;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_vb[_Lv3+2]=_vb[_Mv3+2]=_Fb;}}function _Zs3(_F7,
_G7,_77,_87,_AD,_BD,_rm,_sm,_zD){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_AD=yyGetReal(_AD);_BD=yyGetReal(_BD);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);_zD=yyGetBool(_zD);if(_Bs3!=0.0){_F7+=_Bs3;_G7+=_Bs3;_77+=_Bs3;_87+=_Bs3;}var i,w,h;w=_AD;h=_BD;if(w>Math.abs(_77-_F7)){w=Math.abs(_77-_F7);}if(h>Math.abs(_87-_G7)){h=Math.abs(_87-_G7);}var _Ok1=(_6d(_rm)&0xffffff)|((_3d*255.0)<<24);var _Pk1=(_6d(_sm)&0xffffff)|((_3d*255.0)<<24);var _Nv3=_ys3/4;var _gh=_Wa._Hc;var _c9=((_Nv3+1)*4)+2;
if(_zD){_gh=_Wa._Fc;}var _qE=(_F7+_77)*0.5;var _rE=(_G7+_87)*0.5;var _Jh2=Math.abs(_77-_F7)*0.5-w*0.5;var _Kh2=Math.abs(_87-_G7)*0.5-h*0.5;var _ob=_09._pb(_gh,null,_09._rb,_c9);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;var _Jc1=index;_ob._ub+=_c9;var _vb=_ob._wb;var _xb=_ob._yb;_vb[index]=_qE;_vb[index+1]=_rE;_vb[index+2]=_Fb;_xb[index]=_Ok1;index+=_sb;for(i=0;i<=_Nv3;i++){_vb[index]=(_qE+_Jh2+w*_zs3[i]/2);_vb[index+1]=(_rE+_Kh2+h*_As3[i]/2);_vb[index+2]=_Fb;_xb[index]=_Pk1;index+=_sb;}for(i=_Nv3;i<=(_Nv3*2);
i++){_vb[index]=(_qE-_Jh2+w*_zs3[i]/2);_vb[index+1]=(_rE+_Kh2+h*_As3[i]/2);_vb[index+2]=_Fb;_xb[index]=_Pk1;index+=_sb;}for(i=(_Nv3*2);i<=(_Nv3*3);i++){_vb[index]=(_qE-_Jh2+w*_zs3[i]/2);_vb[index+1]=(_rE-_Kh2+h*_As3[i]/2);_vb[index+2]=_Fb;_xb[index]=_Pk1;index+=_sb;}for(i=(_Nv3*3);i<=(_Nv3*4);i++){_vb[index]=(_qE+_Jh2+w*_zs3[i]/2);_vb[index+1]=(_rE-_Kh2+h*_As3[i]/2);_vb[index+2]=_Fb;_xb[index]=_Pk1;index+=_sb;}_vb[index]=_vb[_Jc1+_sb];_vb[index+1]=_vb[_Jc1+_sb+1];_vb[index+2]=_Fb;_xb[index]=_Pk1;
if(_zD){_vb[_Jc1]=_vb[_Jc1+_sb];_vb[_Jc1+1]=_vb[_Jc1+_sb+1];_vb[_Jc1+2]=_Fb;_xb[_Jc1]=_xb[_Jc1+_sb];}}function __s3(_F7,_G7,_77,_87,_rm,_sm,_KD,_LD,_zD){var _ob,_Rr2,_ou3,_vb,_xb,_zb;_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);_KD=yyGetInt32(_KD);_LD=yyGetInt32(_LD);_zD=yyGetBool(_zD);var _05=((_3d*255.0)<<24);_rm=_6d(_rm)|_05;_sm=_6d(_sm)|_05;_KD=_6d(_KD)|_05;_LD=_6d(_LD)|_05;var _gh=_Wa._qb;var _c9=6;if(_zD){_gh=_Wa._Ec;_c9=8;}
_ob=_09._pb(_gh,null,_09._rb,_c9);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_c9;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;var _Lv3=_6c+_sb;var _Mv3=_Lv3+_sb;var _vb=_ob._wb;var _xb=_ob._yb;_zb=_ob._Ab;var _55=~~((_3d*255.0)<<24)|(_4d&0xffffff);if(!_zD){_vb[_Bb+0]=_vb[_5c+0]=_vb[_6c+0]=_F7;_vb[_Bb+1]=_vb[_3c+1]=_vb[_6c+1]=_G7;_vb[_3c+0]=_vb[_J5+0]=_vb[_4c+0]=_77+1.0;_vb[_J5+1]=_vb[_4c+1]=_vb[_5c+1]=_87+1.0;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;
_xb[_Bb]=_xb[_6c]=_rm;_xb[_J5]=_xb[_4c]=_KD;_xb[_3c]=_sm;_xb[_5c]=_LD;}else {if(_Bs3!=0.0){_F7+=_Bs3;_G7+=_Bs3;_77+=_Bs3;_87+=_Bs3;}_xb[_Bb]=_xb[_Mv3]=_rm;_xb[_3c]=_xb[_J5]=_sm;_xb[_4c]=_xb[_5c]=_KD;_xb[_6c]=_xb[_Lv3]=_LD;_vb[_6c+0]=_vb[_Mv3+0]=_vb[_Lv3+0]=_vb[_Bb+0]=_F7;_vb[_Mv3+1]=_vb[_J5+1]=_vb[_3c+1]=_vb[_Bb+1]=_G7;_vb[_5c+0]=_vb[_4c+0]=_vb[_J5+0]=_vb[_3c+0]=_77;_vb[_4c+1]=_vb[_5c+1]=_vb[_6c+1]=_vb[_Lv3+1]=_87;_vb[_Mv3+1]=_G7;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_vb[_Lv3+2]=_vb[_Mv3+2]=_Fb;
}}function _7t3(_96,_a6,_Xd){_96=yyGetReal(_96);_a6=yyGetReal(_a6);_Xd=yyGetInt32(_Xd);if(_Bs3!=0.0){_96+=_Bs3;_a6+=_Bs3;}var _ob,_vb,_xb;_ob=_09._pb(_Wa._Dc,null,_09._rb,1);var _sb=_ob._tb()>>2;var _Bb=_sb*_ob._ub;_ob._ub++;_vb=_ob._wb;_xb=_ob._yb;var _55=~~((_3d*255.0)<<24)|_6d(_Xd);_vb[_Bb+0]=~~_96+0.5;_vb[_Bb+1]=~~_a6+0.5;_vb[_Bb+2]=_Fb;_xb[_Bb]=_55;}function _3t3(_F7,_G7,_77,_87,_Ro,_So,_zD){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ro=yyGetReal(_Ro);_So=yyGetReal(_So);
_zD=yyGetBool(_zD);if(_Bs3!=0.0){_F7+=_Bs3;_G7+=_Bs3;_77+=_Bs3;_87+=_Bs3;_Ro+=_Bs3;_So+=_Bs3;}var _ob,_vb,_xb,_zb;if(_zD){_ob=_09._pb(_Wa._Fc,null,_09._rb,4);}else {_ob=_09._pb(_Wa._qb,null,_09._rb,3);}var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=3;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _vb=_ob._wb;var _xb=_ob._yb;_vb[_Bb+0]=_F7;_vb[_Bb+1]=_G7;_vb[_Bb+2]=_Fb;_vb[_3c+0]=_77;_vb[_3c+1]=_87;_vb[_3c+2]=_Fb;_vb[_J5+0]=_Ro;_vb[_J5+1]=_So;_vb[_J5+2]=_Fb;if(_zD){_vb[_4c+0]=_F7;_vb[_4c+1]=_G7;
_vb[_4c+2]=_Fb;_ob._ub++;}_xb[_Bb]=_xb[_3c]=_xb[_J5]=_xb[_4c]=((_3d*255.0)<<24)|_4d;}function _0t3(_96,_a6){_7t3(_96,_a6,_dz);}function _1t3(_96,_a6){var _95=_2t3(_96,_a6);if(Array.isArray(_95)){_95.splice(3);return _95;}else {return _95&0x00ffffff;}}function _2t3(_96,_a6){var _gh=_cm;if((_Nd1!=null)&&(_Nd1!=-1)){var _nm=_dm._n6(_Nd1);if(_nm!=null){_gh=_nm._Ad1._8e1._zd;}}_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);if(_Ir<0){_a6=_09._2R1-_a6;}return _09._zU1(_96,_a6,_gh);}function _4t3(_F7,_G7,_77,_87,_Ro,_So,
_Ym,_Zm,__m,_zD){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Ro=yyGetReal(_Ro);_So=yyGetReal(_So);_Ym=yyGetInt32(_Ym);_Zm=yyGetInt32(_Zm);__m=yyGetInt32(__m);_zD=yyGetBool(_zD);if(_Bs3!=0.0){_F7+=_Bs3;_G7+=_Bs3;_77+=_Bs3;_87+=_Bs3;_Ro+=_Bs3;_So+=_Bs3;}var _ob,_vb,_xb,_zb;var _05=((_3d*255.0)<<24);_Ym=_05|_6d(_Ym);_Zm=_05|_6d(_Zm);__m=_05|_6d(__m);if(_zD){_ob=_09._pb(_Wa._Fc,null,_09._rb,4);}else {_ob=_09._pb(_Wa._qb,null,_09._rb,3);}var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;
_ob._ub+=3;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;_vb=_ob._wb;_xb=_ob._yb;_vb[_Bb+0]=_F7;_vb[_Bb+1]=_G7;_vb[_Bb+2]=_Fb;_vb[_3c+0]=_77;_vb[_3c+1]=_87;_vb[_3c+2]=_Fb;_vb[_J5+0]=_Ro;_vb[_J5+1]=_So;_vb[_J5+2]=_Fb;if(_zD){_vb[_4c+0]=_F7;_vb[_4c+1]=_G7;_vb[_4c+2]=_Fb;_ob._ub++;}_xb[_Bb]=_Ym;_xb[_3c]=_Zm;_xb[_J5]=__m;_xb[_4c]=_Ym;}function _5t3(_F7,_G7,_77,_87,_rm,_sm,_zD){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);
_zD=yyGetBool(_zD);if(_Bs3!=0.0){_F7+=_Bs3;_G7+=_Bs3;_77+=_Bs3;_87+=_Bs3;}var _qE=(_F7+_77)/2;var _rE=(_G7+_87)/2;var _Jh2=Math.abs((_F7-_77)/2);var _Kh2=Math.abs((_G7-_87)/2);var _05=((_3d*255.0)<<24);_rm=_05|_6d(_rm);_sm=_05|_6d(_sm);var _r73,_ob,_vb,_xb;var _H5;if(_zD){var _Ov3=_ys3+1;_ob=_09._pb(_Wa._Fc,null,_09._rb,_Ov3);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_Ov3;_vb=_ob._wb;_xb=_ob._yb;for(var i=0;i<=_ys3;i++){_vb[index]=(_qE+(_Jh2*_zs3[i]));_vb[index+1]=(_rE+(_Kh2*_As3[i]));_vb[index+2]=_Fb;
_xb[index]=_sm;index+=_sb;}}else {var _Pv3=_ys3*3;_ob=_09._pb(_Wa._qb,null,_09._rb,_Pv3);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=_Pv3;_vb=_ob._wb;_xb=_ob._yb;for(var i=0;i<_ys3;i++){_vb[index]=_qE;_vb[index+1]=_rE;_vb[index+2]=_Fb;_xb[index]=_rm;index+=_sb;_vb[index]=(_qE+_Jh2*_zs3[i]);_vb[index+1]=(_rE+_Kh2*_As3[i]);_vb[index+2]=_Fb;_xb[index]=_sm;index+=_sb;_vb[index]=(_qE+_Jh2*_zs3[i+1]);_vb[index+1]=(_rE+_Kh2*_As3[i+1]);_vb[index+2]=_Fb;_xb[index]=_sm;index+=_sb;}}}function _6t3(_96,_a6,
_lj,_rm,_sm,_zD){_5t3(_96-_lj,_a6-_lj,_96+_lj,_a6+_lj,_rm,_sm,_zD);}function _8t3(_F7,_G7,_77,_87){_at3(_F7,_G7,_77,_87,1.0,_dz,_dz);}function _9t3(_F7,_G7,_77,_87,_Xi){_at3(_F7,_G7,_77,_87,_Xi,_dz,_dz);}function _at3(_F7,_G7,_77,_87,_Xi,_rm,_sm){_F7=yyGetReal(_F7);_G7=yyGetReal(_G7);_77=yyGetReal(_77);_87=yyGetReal(_87);_Xi=yyGetReal(_Xi);_rm=yyGetInt32(_rm);_sm=yyGetInt32(_sm);if(_Bs3!=0.0){_F7+=_Bs3;_G7+=_Bs3;_77+=_Bs3;_87+=_Bs3;}var _05=((_3d*255.0)<<24);_rm=_05|_6d(_rm);_sm=_05|_6d(_sm);var _w7=(_77-_F7);
var _y7=(_87-_G7);var _p7=(_w7*_w7)+(_y7*_y7);if(_p7<0.0001)return;_p7=Math.sqrt(_p7);if(_p7<0.0001)return;_w7=0.5*_Xi*_w7/_p7;_y7=0.5*_Xi*_y7/_p7;var _ob=_09._pb(_Wa._qb,null,_09._rb,6);var _sb=_ob._tb()>>2;var index=_sb*_ob._ub;_ob._ub+=6;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;var _vb=_ob._wb;var _xb=_ob._yb;_vb[_Bb+0]=(_F7-_y7);_vb[_Bb+1]=(_G7+_w7);_vb[_3c+0]=(_77-_y7);_vb[_3c+1]=(_87+_w7);_vb[_J5+0]=(_77+_y7);_vb[_J5+1]=(_87-_w7);_vb[_4c+0]=(_77+_y7);
_vb[_4c+1]=(_87-_w7);_vb[_5c+0]=(_F7+_y7);_vb[_5c+1]=(_G7-_w7);_vb[_6c+0]=(_F7-_y7);_vb[_6c+1]=(_G7+_w7);_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;_xb[_Bb]=_xb[_5c]=_xb[_6c]=_rm;_xb[_3c]=_xb[_J5]=_xb[_4c]=_sm;}function _Qv3(_Bb1,_Xi,_Yi,_y91){var _JU1=_09._DU1(_Xi,_Yi,_y91);_Bb1._Ad1=_JU1;_Bb1._Vd1=_JU1._Vd1;_Bb1.texture._z9=_JU1._8e1;_Bb1._Cd1._z9=_JU1._Cd1;}function _nt3(_Xi,_Yi,_y91,_Fd1){_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);if(_Xi<=0||_Yi<=0){_q5("create_surface : Trying to create a surface with size equal to or less than zero.");
}if(_Fd1!=undefined){_Fd1=yyGetInt32(_Fd1);}var _k5=new _im();_k5.texture=document.createElement("surf");_k5.texture.width=_Xi;_k5.texture.height=_Yi;_k5.texture._fd=_Xi;_k5.texture._gd=_Yi;_k5._Cd1=document.createElement("surf");_k5._Cd1.width=_Xi;_k5._Cd1.height=_Yi;_k5._Cd1._fd=_Xi;_k5._Cd1._gd=_Yi;if(_Fd1!=undefined){var _nm=_dm._n6(_Fd1);if(_nm&&_nm._Ad1){_09._KU1(_nm._Ad1);}}_Qv3(_k5,_Xi,_Yi,_y91);_k5.x=0;_k5.y=0;_k5.w=_Xi;_k5.h=_Yi;_k5._fd=_Xi;_k5._gd=_Yi;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;
_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;if(_Fd1!=undefined){_dm.Set(_Fd1,_k5);_k5.tp=_Fd1;}else {_k5.tp=_dm._Vf(_k5);}_k5._Hd1=_k5;_k5.texture.complete=true;_k5._Cd1.complete=true;_k5._b9=[];_k5._c9=0;_k5._d9=4;_k5._Id1=0;_k5._cn=null;_k5._Va1=_k5.texture;return _k5.tp;}function _ot3(_yg){_yg=yyGetInt32(_yg);if(_yg<0){return;}var _nm=_dm._n6(_yg);if(_nm&&_nm._Ad1){if(_xd1(_yg)){_ai("Error: Surface in use via surface_set_target(). It can not be freed until it has been removed from the surface stack.");
return;}_09._HS1();_09._KU1(_nm._Ad1);_nm.texture._z9=undefined;_nm._Cd1._z9=undefined;_dm._3j(_yg);}else if(!_nm){return 0;}}function _pt3(_yg,_96,_a6){var _95=_qt3(_yg,_96,_a6);if(Array.isArray(_95)){_95.splice(3);return _95;}else {return _95&0x00ffffff;}}function _qt3(_yg,_96,_a6){var _95=0;var _nm=_dm._n6(yyGetInt32(_yg));if(_nm!=null){_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);_95=_09._AU1(_nm._Vd1,_96,_a6,_nm._Ad1._8e1._zd);}return new Long(_95);}function _jt3(_yg,_96,_a6){var _nm=_dm._n6(yyGetInt32(_yg));
if(!_nm)return;_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);var colour=((_3d*255.0)<<24)|0x00ffffff;_Oa._Za1(_nm,0,0,_nm._fd,_nm._gd,_96,_a6,_nm._fd,_nm._gd,colour);}function _Rv3(_s9,_f7,_g7,_h7,_i7,_1c,_2c,_qm2,_rm2,_qr1,_Sv3,_I5,_Tv3,_Ok1,_Pk1,__k1,_DK2){var z=(_Fb);var _bd=_Wa._Gc;var _Uv3=_09._pb(_bd,_s9,_09._rb,6);var _sb=_Uv3._tb()>>2;var index=_sb*_Uv3._ub;_Uv3._ub+=6;var _vb=_Uv3._wb;var _xb=_Uv3._yb;var _zb=_Uv3._Ab;var _Bb=index;var _3c=_Bb+_sb;var _J5=_3c+_sb;var _4c=_J5+_sb;var _5c=_4c+_sb;var _6c=_5c+_sb;
_vb[_Bb+0]=_vb[_6c+0]=_f7;_vb[_Bb+1]=_vb[_6c+1]=_g7;_vb[_3c+0]=_h7;_vb[_3c+1]=_i7;_vb[_J5+0]=_vb[_4c+0]=_1c;_vb[_J5+1]=_vb[_4c+1]=_2c;_vb[_5c+0]=_qm2;_vb[_5c+1]=_rm2;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=z;_xb[_Bb]=_xb[_6c]=_Ok1;_xb[_3c]=_Pk1;_xb[_J5]=_xb[_4c]=__k1;_xb[_5c]=_DK2;_zb[_Bb+0]=_zb[_6c+0]=_qr1;_zb[_Bb+1]=_zb[_6c+1]=_Sv3;_zb[_3c+0]=_I5;_zb[_3c+1]=_Sv3;_zb[_J5+0]=_zb[_4c+0]=_I5;_zb[_J5+1]=_zb[_4c+1]=_Tv3;_zb[_5c+0]=_qr1;_zb[_5c+1]=_Tv3;return true;}function _rt3(_Re1,
_Vv3,_Wv3,_4j){_Re1=yyGetInt32(_Re1);_Vv3=yyGetInt32(_Vv3);_Wv3=yyGetInt32(_Wv3);_4j=yyGetInt32(_4j);_09._we1();_09._7b._Au();_be1(_Re1);_Cr(0,0,surface_get_width(_Re1),surface_get_height(_Re1),0);var _Yi=surface_get_height(_4j);var _Xi=surface_get_width(_4j);var _96=0;var _a6=0;var _Xv3=_Wv3;var _Yv3=(_Wv3+_Yi);var _g7=_a6;var _i7=(_a6+_Yi);var _G5=(1/_Xi);var _H5=(1/_Yi);_Rv3(surface_get_texture(_4j)._Yc._z9,_Vv3,_Xv3,_Vv3+_Xi,_Xv3,_Vv3+_Xi,_Yv3,_Vv3,_Yv3,_G5*_96,_H5*_g7,_G5*(_96+_Xi),_H5*_i7,0xffffffff,
0xffffffff,0xffffffff,0xffffffff);_09._we1();_xe1();_09._7b._Bu();}function _st3(_Re1,_Vv3,_Wv3,_4j,_f5,_g5,_Se1,_Te1){_Re1=yyGetInt32(_Re1);_Vv3=yyGetInt32(_Vv3);_Wv3=yyGetInt32(_Wv3);_4j=yyGetInt32(_4j);_f5=yyGetInt32(_f5);_g5=yyGetInt32(_g5);_Se1=yyGetInt32(_Se1);_Te1=yyGetInt32(_Te1);_09._HS1();_09._7b._Au();_be1(_Re1);_Cr(0,0,surface_get_width(_Re1),surface_get_height(_Re1),0);var _Yi=_Te1;var _Xi=_Se1;var _96=_f5;var _a6=_g5;var _Xv3=_Wv3;var _Yv3=(_Wv3+_Yi);var _g7=_a6;var _i7=(_a6+_Yi);var _G5=(1/surface_get_width(_4j));
var _H5=(1/surface_get_height(_4j));_Rv3(surface_get_texture(_4j)._Yc._z9,_Vv3,_Xv3,_Vv3+_Xi,_Xv3,_Vv3+_Xi,_Yv3,_Vv3,_Yv3,_G5*_96,_H5*_g7,_G5*(_96+_Xi),_H5*_i7,0xffffffff,0xffffffff,0xffffffff,0xffffffff);_09._HS1();_xe1();_09._7b._Bu();_09._HS1();}function _tt3(_c5,_96,_a6,_Xi,_Yi,_9m,_am){_Aw("sprite_add_from_screen() (WebGL)");return -1;}function _Zv3(_yg,_96,_a6,_Xi,_Yi,_9m,_am){var _nm=_dm._n6(_yg);if(_nm!=null){if(_nm._Ad1._8e1._zd!=_cm){debug("Surface "+yyGetInt32(_yg)+" can't be used as a background source as it uses unsupported format "+_09._zT1(_nm._Ad1._8e1._zd));
return -1;}_96=~~_96;_a6=~~_a6;_Xi=~~_Xi;_Yi=~~_Yi;var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);var _ed=_09._dU1(_Va1,_nm._Vd1,_96,_a6,_Xi,_Yi,_9m,_am);var _k5=new _im();_k5.x=0;_k5.y=0;_k5.w=_ed._OT1;_k5.h=_ed._PT1;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_Xi;_k5.oh=_Yi;_k5.tp=_Bm(_Va1);_k5.texture=_o5[_k5.tp];_k5.texture._z9=_ed;_k5.texture._fd=_Va1.width;_k5.texture._gd=_Va1.height;_k5.texture.complete=true;var _gm=new _hm();_gm._6m=_k5;
return _0m._jm(_gm);}debug("Surface "+_yg+" does not exist");return -1;}function __v3(_96,_a6,_Xi,_Yi,_9m,_am){_96=~~_96;_a6=~~_a6;var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);var _ed=_09._7U1(_Va1,_96,_a6,_Xi,_Yi,_9m,_am,(_Ir>0));var _k5=new _im();_k5.x=0;_k5.y=0;_k5.w=_ed._OT1;_k5.h=_ed._PT1;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_Xi;_k5.oh=_Yi;_k5.tp=_Bm(_Va1);_k5.texture=_o5[_k5.tp];_k5.texture._z9=_ed;_k5.texture.width=_Xi;_k5.texture.height=_Yi;
_k5.texture._fd=_Xi;_k5.texture._gd=_Yi;_k5.texture.complete=true;var _gm=new _hm();_gm._6m=_k5;return _0m._jm(_gm);}function _ut3(_yg,_96,_a6,_Xi,_Yi,_9m,_am,_0b1,_1b1){var _nm=_dm._n6(yyGetInt32(_yg));if(_nm!=null){if(_nm._Ad1._8e1._zd!=_cm){debug("Surface "+yyGetInt32(_yg)+" can't be used as a sprite source as it uses unsupported format "+_09._zT1(_nm._Ad1._8e1._zd));return -1;}_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);_9m=yyGetBool(_9m);_am=yyGetBool(_am);_0b1=yyGetInt32(_0b1);
_1b1=yyGetInt32(_1b1);var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);var _ed=_09._dU1(_Va1,_nm._Vd1,_96,_a6,_Xi,_Yi,_9m,_am);var _k5=new _im();_k5.x=0;_k5.y=0;_k5.w=_ed._OT1;_k5.h=_ed._PT1;_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_Xi;_k5.oh=_Yi;_k5.tp=_Bm(_Va1);_k5.texture=_o5[_k5.tp];_k5.texture._z9=_ed;_k5.texture._fd=_Va1.width;_k5.texture._gd=_Va1.height;_k5.texture.complete=true;var _Ya1=new _2b1();_Ya1.pName="surface.copy";_Ya1.width=_Xi;
_Ya1.height=_Yi;_Ya1._XH=new _yx();_Ya1._XH.right=_Ya1.width;_Ya1._XH.bottom=_Ya1.height;_Ya1.transparent=true;_Ya1.smooth=true;_Ya1.preload=true;_Ya1._Ka1=0;_Ya1._4b1=_5b1._6b1;_Ya1.xOrigin=_0b1;_Ya1.yOrigin=_1b1;_Ya1._Am=true;_Ya1._n7=1;_Ya1._bb1=0;_Ya1._7b1=false;_Ya1._8b1=false;_Ya1._o7=[];_Ya1._l5=[];_Ya1.Masks=[];_Ya1._La1();_Ya1._l5[0]=_k5;var _rP=_m6._3b1(_Ya1);return _rP;}debug("Surface "+yyGetInt32(_yg)+" does not exist");return -1;}function _vt3(_c5,_yg,_96,_a6,_Xi,_Yi,_9m,_am){var _nm=_dm._n6(yyGetInt32(_yg));
if(_nm!=null){if(_nm._Ad1._8e1._zd!=_cm){debug("Surface "+yyGetInt32(_yg)+" can't be used as a sprite source as it uses unsupported format "+_09._zT1(_nm._Ad1._8e1._zd));return -1;}_c5=yyGetInt32(_c5);_96=yyGetInt32(_96);_a6=yyGetInt32(_a6);_Xi=yyGetInt32(_Xi);_Yi=yyGetInt32(_Yi);_9m=yyGetBool(_9m);_am=yyGetBool(_am);var _Va1=document.createElement(_Zw);var _Wa1=_Va1.getContext('2d');_Xa1(_Wa1);var _ed=_09._dU1(_Va1,_nm._Vd1,_96,_a6,_Xi,_Yi,_9m,_am);var _k5=new _im();_k5.x=0;_k5.y=0;_k5.w=_Xi;_k5.h=_Yi;
_k5.XOffset=0;_k5.YOffset=0;_k5.CropWidth=_k5.w;_k5.CropHeight=_k5.h;_k5.ow=_k5.w;_k5.oh=_k5.h;_k5.tp=_Bm(_Va1);_k5.texture=_o5[_k5.tp];_k5.texture._z9=_ed;_k5.texture._fd=_Va1.width;_k5.texture._gd=_Va1.height;_k5.texture.complete=true;var _Px=_m6._n6(_c5);_Px._l5[_Px._l5.length]=_k5;_Px._n7++;return _c5;}debug("Surface "+yyGetInt32(_yg)+" does not exist");return -1;}function _wt3(_g_2,_h_2){var _i_2,_l_2;_i_2=_09._VU1(_h_2);_l_2=_09._VU1(_g_2);var _M81=(_g_2.h*_g_2.w*4);for(var i=_M81-4;i>=0;i-=4){var c=~~((_i_2[i]+_i_2[i+1]+_i_2[i+2])/3);
_l_2[i+3]=c;}var _BQ2=new Image();_09._MU1(_g_2.texture._z9._8e1);_g_2.texture._z9=_09._kU1(_BQ2,_l_2,_g_2.w,_g_2.h);return true;}function _lt3(_yg){var _jS=_4k._n6(yyGetInt32(_yg));if(_jS){var _ob,_sb,index,_Rr2,_ou3,_vb,_xb,_zb,_F7,_G7,_77,_87;var _sr=~~((_3d*255.0)<<24)|0x0000ff;var _tr=~~((_3d*255.0)<<24)|0x00ff00;var _c9=6*(_jS._6k*_jS._5k);_ob=_09._pb(_Wa._qb,null,_09._rb,_c9);_sb=_ob._tb()>>2;index=_sb*_ob._ub;_ou3=_ob._ub;_ob._ub+=_c9;var _vb=_ob._wb;var _xb=_ob._yb;for(var y=0;y<_jS._6k;y++){for(var x=0;
x<_jS._5k;x++,index+=_sb*6){var _55=_tr;var _Bb=index,_3c=_Bb+_sb,_J5=_3c+_sb,_4c=_J5+_sb,_5c=_4c+_sb,_6c=_5c+_sb;if(_jS._9k[(_jS._6k*x)+y]<0)_55=_sr;_F7=~~(_jS._9S+x*_jS._bS);_G7=~~(_jS._aS+y*_jS._cS);_77=_F7+_jS._bS;_87=_G7+_jS._cS;_vb[_6c+0]=_vb[_5c+0]=_vb[_Bb+0]=_F7;_vb[_6c+1]=_vb[_3c+1]=_vb[_Bb+1]=_G7;_vb[_4c+0]=_vb[_J5+0]=_vb[_3c+0]=_77;_vb[_5c+1]=_vb[_4c+1]=_vb[_J5+1]=_87;_vb[_Bb+2]=_vb[_3c+2]=_vb[_J5+2]=_vb[_4c+2]=_vb[_5c+2]=_vb[_6c+2]=_Fb;_xb[_Bb]=_xb[_3c]=_xb[_J5]=_xb[_4c]=_xb[_5c]=_xb[_6c]=_55;
}}return;}_q5("Error: invalid mp_grid ID (mp_grid_draw)");}function _kt3(_yg,__Y,_0Z,_XY){var _NR=_vC.Paths[yyGetInt32(_yg)];if(!_NR)return;__Y=yyGetInt32(__Y);_0Z=yyGetInt32(_0Z);_XY=yyGetBool(_XY);var _ob,_Xe3,_vb,_xb,_zb,_sb;var _55=~~((_3d*255.0)<<24)|(_4d&0xffffff);var _w7,_y7,_1Z;var _2Z=0;var _3Z=_NR._4Z(0);if(!_XY){__Y=__Y-_3Z.x;_0Z=_0Z-_3Z.y;}else {__Y=0;_0Z=0;}_2Z=_Ak(_NR.length/4.0);if(_2Z==0)return;var _c9=_2Z*2;_ob=_09._pb(_Wa._Ec,null,_09._rb,_c9);_sb=_ob._tb()>>2;_Xe3=_sb*_ob._ub;_ob._ub+=_c9;
var _vb=_ob._wb;var _xb=_ob._yb;for(var i=0;i<_2Z;i++){_3Z=_NR._4Z(i/_2Z);var _F7=~~(__Y+_3Z.x);var _G7=~~(_0Z+_3Z.y);_xb[_Xe3+0]=_55;_vb[_Xe3+0]=_F7;_vb[_Xe3+1]=_G7;_vb[_Xe3+2]=_Fb;_Xe3+=_sb;_3Z=_NR._4Z((i+1)/_2Z);var _77=~~(__Y+_3Z.x);var _87=~~(_0Z+_3Z.y);_xb[_Xe3+0]=_55;_vb[_Xe3+0]=_77;_vb[_Xe3+1]=_87;_vb[_Xe3+2]=_Fb;_Xe3+=_sb;}}function _Ps3(_uw){_09._nT1(_uw);}function _ht3(_0j,_1k){_Ha3=_0j;_Ia3=_1k;_09._IS1(_Ha3,_Ia3);}function _it3(_0w3){if(_0w3){_zE(0);}else {_BE(_uu,_wu);}}function _xt3(_a9){if(_a9){
return 1.0/_a9._Yc.width;}return 1.0;}function _yt3(_a9){if(_a9){return 1.0/_a9._Yc.height;}return 1;}function _zt3(_Z31,_me){_09._pT1(yyGetInt32(_Z31),_me._Yc._z9);}function _mX2(__31){return _wC[yyGetInt32(__31)]?._rS1?1:0;}function _nX2(__31){__31=yyGetInt32(__31);var _3S1=(__31==-1)?_Br():_wC[__31]._rS1;if(_3S1){_09._Ar(_3S1);}}function _Lt3(__31){__31=yyGetInt32(__31);var _3S1=(__31==-1)?_Br():_wC[__31]._rS1;if(_3S1){return _3S1.name;}return "";}function _At3(__31,_041){__31=yyGetInt32(__31);var _3S1=(__31==-1)?_Br():_wC[__31]._rS1;
if(_3S1){return _09._cT1(_3S1,yyGetString(_041));}return undefined;}function _Bt3(_441,_gT1){_441=yyGetInt32(_441);if(_441!=-1){_09._fT1(_441,_gT1);}}function _Ct3(_441,_gT1){_441=yyGetInt32(_441);if(_441!=-1){_09._hT1(_441,_gT1);}}function _Dt3(_441,_gT1){_441=yyGetInt32(_441);if(_441!=-1){var _1w3=_cs(_EF);_09._iT1(_441,new Float32Array(_1w3._e7));}}function _Et3(__31,_me){var _3S1=_wC[yyGetInt32(__31)];if(_3S1){for(var i=0;i<_3S1._sS1.length;i++){if(_3S1._sS1[i]==_me){return Number(i);}}}return 0;}function _Ft3(_341){
_F82=yyGetBool(_341);}function _Gt3(_441,_Wk){if(_Wk instanceof Array){_09._lT1(yyGetInt32(_441),_Wk);}else {alert('ERROR: shader_set_uniform_i_array() Data is not an array');}}function _Ht3(_441,_Wk){if(_Wk instanceof Array){_09._mT1(yyGetInt32(_441),_Wk);}else {alert('ERROR: shader_set_uniform_f_array() Data is not an array');}}function _It3(_441,_6l,_ne,_te){var _ob=_wG._n6(yyGetInt32(_6l));if(!_ob){alert('ERROR: shader_set_uniform_f_buffer() Data is not a buffer');return;}_ne=yyGetInt32(_ne);if(_ne<0){
alert('ERROR: shader_set_uniform_f_buffer() Invalid offset '+_ne);return;}_te=yyGetInt32(_te);if(_te<=0||((_ne+_te*4)>_ob._HN2)){alert('ERROR: shader_set_uniform_f_buffer() Invalid count '+_te+'. Trying to read outside of the buffer.');return;}var _Wk=new Array(_te);for(var i=0;i<_te;++i){_Wk[i]=_ob._8P2(_z82,_ne);_ne+=4;}_09._mT1(yyGetInt32(_441),_Wk);}function _Jt3(_441,_Wk){if(_Wk instanceof Array){var _141=new Float32Array(_Wk);_09._iT1(yyGetInt32(_441),_141);}else {alert('ERROR: shader_set_uniform_matrix_array() Data is not an array');
}}function _Mt3(_AE){}function _Nt3(_2w3){var _Xt=_09._5T1();for(var _eu=0;_eu<_Xt;_eu++){_9L2(_eu,_2w3);}}function _Ot3(_Z31,_2w3){_ss3[_Z31]=_2w3?true:false;_09._3T1(_Z31,_ss3[_Z31]);}function _Pt3(_Wt){var _Xt=_09._5T1();for(var _eu=0;_eu<_Xt;_eu++){_aL2(_eu,_Wt);}}function _Qt3(_Z31,_Wt){_09._4T1(_Z31,_Wt?_Wa._0u:_Wa._2u);}function _Rt3(){return _ss3[0];};function _St3(_a9){if(typeof(_a9)=="object"){return 1.0;}else if((yyGetInt32(_a9)!=-1)&&_o5[yyGetInt32(_a9)]){return 1.0;}return 0;}function _Tt3(_a9){if(typeof(_a9)=="object"){
return 1.0;}else if((yyGetInt32(_a9)!=-1)&&_o5[yyGetInt32(_a9)]){return 1.0;}return 0;}function _Ut3(_a9){if((_a9==-1)||(_a9===undefined))return [0,0,1,1];var _k5=_a9._Zc;var texture=_k5.texture;if(_k5===undefined||texture===undefined)return [0,0,1,1];var _gn=1.0/texture.width;var _hn=1.0/texture.height;var _in=[];_in.push(_k5.x*_gn,_k5.y*_hn,(_k5.x+_k5.CropWidth)*_gn,(_k5.y+_k5.CropHeight)*_hn);return _in;}function _Kt3(){return 1;}function _Vt3(_xr){_St=(_xr>0.5)?true:false;_09._1T1(_St,_Ut);}function _Wt3(_Ol){
_Ut=_Ol/255.0;_09._1T1(_St,_Ut);}function _Xt3(){return(_St?1.0:0.0);}function _Yt3(){return _Ut;}function _8s(_wd,_7s){_6s[_wd]=new _qr(_7s);_AF();_wF|=(_wd==_9s||_wd==_ds);if(_09==null)return;switch(_wd){case _ds:_09._Kr(_6s[_wd]);break;case _9s:_09._Jr(_6s[_wd]);break;case _EF:_09._uT1(_6s[_wd]);break;}_09._we1();}function _cs(_wd){switch(_wd){case _ds:case _9s:case _EF:return _6s[_wd];break;}}function _9u3(){if(_aw.Shaders){for(var i=0;i<_aw.Shaders.length;i++){var _qS1=_aw.Shaders[i];if(_qS1===undefined)continue;
_wC[i]=_09._mS1(_qS1.Vertex,_qS1.Fragment,_qS1.Attributes);if(_wC[i]._rS1==null){debug("Shader "+_qS1.name+" can't be compiled. Please check the shader for errors");}}}return true;}function _ft3(_5d){_dz=_5d;_4d=_6d(_5d);}function _y9(_Bb1){if(!_Bb1.texture._z9){var _ed=_09._wT1(_Bb1.texture);_Bb1.texture._z9=_ed;_Bb1.texture._fd=_Bb1.texture.width;_Bb1.texture._gd=_Bb1.texture.height;}}function _A9(_a9,_MT1){if(_a9._8e1)return;if(_MT1===_Wa._QT1||((_MT1===_Wa._RT1)&&(_a9.Image._yT1!==undefined&&_a9.Image._yT1!==0))){
_a9._Og|=(_ST1._QY1|_ST1._TT1);}_09._KT1(_a9,_MT1);_Yo3(_a9);}function _on(_a9,_MT1){if(_a9._8e1){_09._MU1(_a9._8e1);_a9._8e1=undefined;_a9._Og&=~_ST1._VT1;_Zo3(_a9);}}function _CE(){_09._HS1();var _3w3=_o5.length;var i;for(i=0;i<_3w3;i++){if(_o5[i]){if(_o5[i]._z9){_on(_o5[i]._z9);}}}}function _pU1(_a9,_MT1){if(_a9._8e1!=undefined){var _4w3=true;if(_MT1!==_Wa._qU1&&(((_MT1==_Wa._QT1)&&(((_a9._Og&_ST1._VT1)==0)&&((_a9._Og&_ST1._QY1)!=0)))||(((_MT1==_Wa._7W1)&&((_a9._Og&_ST1._VT1)!=0)))||(((_MT1==_Wa._RT1)&&(((_a9._Og&_ST1._TT1)&&((_a9._Og&_ST1._VT1)==0))||(((_a9._Og&_ST1._TT1)==0)&&((_a9._Og&_ST1._VT1)!=0))))))){
_4w3=false;}return _4w3;}else {return false;}}function _qe(_a9){if(_a9.Image==undefined||_a9.Image==null){return false;}if(_a9.Image instanceof HTMLImageElement||_a9.Image instanceof HTMLCanvasElement||_a9.Image instanceof HTMLVideoElement||_a9.Image instanceof ImageData||_a9.Image instanceof Uint8Array){return true;}return false;}function _Zt3(_6l,_zQ2,_rt,_ne,_5w3){var _ob=_wG._n6(yyGetInt32(_6l));var _nm=_dm._n6(yyGetInt32(_zQ2));if(!_ob||!_nm)return false;if(_ne===undefined)_ne=0;var _dO1=_09._BU1(_nm._Vd1,0,0,_nm._fd,
_nm._gd,_nm._Ad1._8e1._zd);if(_ob._PM2==_Hj&&_ne+_dO1.length>_ob._HN2){_ob._VN2(_ne+_dO1.length);}for(var i=0;i<_dO1.length;i++){_ob._lP2(_CG,i,_dO1[i]);}_dO1=null;}function _0u3(_6l,_zQ2,_ne){var _ob=_wG._n6(yyGetInt32(_6l));var _nm=_dm._n6(yyGetInt32(_zQ2));_ne=yyGetInt32(_ne);if(!_ob){_q5("buffer_get_surface_depth() - illegal buffer index "+yyGetInt32(_6l));return false;}if(!_nm){_q5("buffer_get_surface_depth() - surface does not exist "+yyGetInt32(_zQ2));return false;}return false;}function __t3(_6l,
_zQ2,_rt,_ne,_5w3){var _ob=_wG._n6(yyGetInt32(_6l));var _nm=_dm._n6(yyGetInt32(_zQ2));if(!_ob||!_nm)return false;var data=new Uint8Array(_ob._zG);_Qs3(_nm.texture._z9,0,0,_nm._fd,_nm._gd,data,_nm._Ad1._8e1._zd);data=null;}function _1u3(_6l,_zQ2,_ne){var _ob=_wG._n6(yyGetInt32(_6l));var _nm=_dm._n6(yyGetInt32(_zQ2));_ne=yyGetInt32(_ne);if(!_ob){_q5("buffer_set_surface_depth() - illegal buffer index "+yyGetInt32(_6l));return false;}if(!_nm){_q5("buffer_set_surface_depth() - surface does not exist "+yyGetInt32(_zQ2));
return false;}return false;}var _6w3=0;var _7w3=100;var canvas=null;var _8w3,_9w3,_aw3,_bw3,_cw3,_dw3,_ew3,_fw3;var _h03=false;var _Oa=null;var g_CurrentGraphics;var _gw3=null;var _Hf3=null;var _hw3=0;var _iw3=false;var _jw3=0;var _kw3=0;var _bv2=60;if(!Date.now)Date.now=function(){return new Date().getTime();};var _lw3=Date.now();var _mw3=_lw3;var _nw3=_lw3;var _iG="anonymous";var _FG=60000;var _sd1=-1;var _td1=-1;var _Md1=-1;var _5j1=true;var _6j1=true;var _cj1=true;var _7j1=-1;var _8j1=-1;var _ud1=-1;var _vd1=-1;var _wd1=false;
var _bj1=true;var _dj1={x:0,y:0,w:0,h:0};var _6D=false;var _ow3=false;var _pw3=1;var _qw3=1;var _rw3=1;var _sw3=0;var _tw3=0;var _uw3=0;if(window.chrome&&window.chrome.app){_h03=true;try{if(window&&window['localStorage']){_h03=false;}}catch(e){}}if(Number.isNaN===undefined){Number.isNaN=function(_Dx){return typeof(_Dx)==='number'&&isNaN(_Dx);};}window._vw3=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;
if(!window._vw3){window.addEventListener("message",function(e){if(e.source==window&&e.data=="yyRequestAnimationFrame"){e._ww3();_xw3();}},true);}window.requestAnimFrame=(function(){return window._vw3||function(_zg1){window.setTimeout(_zg1,1000/60);};})();var _yw3=undefined;function _zw3(_0F){return(_aw.FeatureFlags!==undefined)&&(_aw.FeatureFlags[_0F]!==undefined);}function exception_unhandled_handler(_ZQ){var _95=_yw3;if((_ZQ instanceof Function)||(_ZQ==undefined)){_yw3=_ZQ;}else if(typeof _ZQ=="number"){
var _lw=_0j1(_ZQ);if(_lw!=null){_yw3=_lw;}else {_q5("exception_unhandled_handler : argument should be a function");}}else {_q5("exception_unhandled_handler : argument should be a function");}return _95;}function _Aw3(event){if((_yw3==undefined)||!(_yw3 instanceof Function)){var string="Unhandled Exception - "+event.message+" in file "+event.filename+" at line "+event.lineno;_5w(string);game_end(-1);}else {let error=event.error;let _Bw3={};_Bw3.__type="___struct___";_Bw3.__yyIsGMLObject=true;_Bw3.gmlmessage=error.message;
_Bw3.gmlstacktrace=error.stack;var _95=_yw3(undefined,undefined,_Bw3);game_end(_95);}debugger;return false;}function _Cw3(error){var string="Unhandled Rejection - "+error.message;_5w(string);if(error&&error['promise']){error['promise'].catch(function(err){var _Dw3=true;try{if(!err['stack']){_Dw3=false;}else {var _Ew3=err['stack'].indexOf("https://");if(_Ew3<0)_Ew3=err['stack'].indexOf("http://");if(_Ew3>=0){var _Fw3=new RegExp("\\r\\n|\\r|\\n","g");var _Gw3=err['stack'].slice(_Ew3).split(_Fw3);if(_Gw3.length>0){
var __F=_Gw3[0];_Ew3=__F.lastIndexOf("/");if(_Ew3>0){var _Hw3=new URL(__F.slice(0,_Ew3+1));if((_Hw3['hostname']!=window['location']['hostname'])||(_Hw3['pathname'].indexOf(_aw.Options.GameDir)<0)){_Dw3=false;}}}}}}catch(e){console.error("Unhandled Rejection | Promise Processing Error - "+e.message);}if(_Dw3){game_end(-2);debugger;}});}else {game_end(-2);debugger;}return false;}window.addEventListener("error",_Aw3);window.addEventListener("unhandledrejection",_Cw3);var GMS_API={"debug_msg":show_debug_message,
"ds_list_size":ds_list_size,"ds_list_find_value":ds_list_find_value,"json_encode":json_encode,"json_decode":json_decode,"extension_get_option_value":extension_get_option_value,"send_async_event_social":_Iw3,"get_facebook_app_id":_Jw3,"get_app_version_string":_Kw3};function _Jw3(){return _aw.Options.Facebook;}function _Kw3(){var appVersion=_aw.Options.MajorVersion+"."+_aw.Options.MinorVersion+"."+_aw.Options.BuildVersion+" r"+_aw.Options.RevisionVersion;return appVersion;}function _Iw3(_Lw3){var _Mw3=JSON.stringify(_Lw3);
var _Nw3=json_decode(_Mw3);g_pBuiltIn.async_load=_Nw3;_14._24(_qz2,0);ds_map_destroy(_Nw3);}var _7w=null;function _Ow3(){if(_7w){_7w.document.getElementById("debug_console").value="";}}function _Pw3(){if(_7w){if(_zv2){_zv2=false;}else {_zv2=true;}}}function CreateDebugConsole(){try{_7w=window.open('','gamemakerstudio_debugconsole_window','width=990,height=600,titlebar=yes,scrollbars,resizable');if(_7w){if(!_7w.document.getElementById("debug_console")){{_7w.document.write('<!DOCTYPE html><html>'+'<header>'+'<title>GameMaker - DEBUG console</title>'+'</header>'+'<body>'+'<table border="0"><tr>'+'<td>Debug Output</td><td>Instances</td><td>InstanceData</td></tr>'+'<tr><td><textarea id="debug_console" wrap="off" style="width: 450px; height:500px;  display: block;" cols="70"></textarea></td>'+'<td>'+'<select id="debug_instances" size=31 style="width: 120px; height: 500px; font-family: monospace;" > '+'</select>'+'</td>'+'<td ALIGN="left" VALIGN="top" style="min-width:350px; width:300px; height:500px; font-family: monospace; border:solid 1px #666"><div id="debug_Instance_Data"  style="width:100%; height:500px;overflow: auto;"></div></td>'+'</tr></table>'+'<br><button type="button" id="clear_console_button" onclick="ClearConsoleCallback()">Clear Console</button>'+'<button type="button" id="gm_pause_button" onclick="ToggleDebugPause()">Pause/Resume</button>'+'</body>'+'</html>');
}var _Qw3=_7w.document.getElementById("clear_console_button");_Qw3.onclick=function(){_Ow3();};_Qw3=_7w.document.getElementById("gm_pause_button");_Qw3.onclick=function(){_Pw3();};}}_oi1=0x71562;}catch(e){debug(e.message);}}function _Rw3(){var c=document.getElementById(_Zw);var _Ik=c.parentNode;var load=document.createElement('canvas');_pg(canvas,_qg);load.style.position="absolute";load.style.left=_qg.left+"px";load.style.top=_qg.top+"px";load.width=c.width;load.height=c.height;load.setAttribute("id",
"loading_screen");_Ik.insertBefore(load,c.nextSibling);_gw3=load.getContext('2d');_Xa1(_gw3);}function _Sw3(_Uw){var __h="";var _p7=_Uw.length;for(var i=0;i<_p7;i++){__h=__h+String.fromCharCode(_Uw.charCodeAt(i)^0x1a);}return __h;}function _Tw3(){var c=document.getElementById(_Zw);var _p7=document.getElementById("loading_screen");var _Ik=c.parentNode;if(_p7!=null){_Ik.removeChild(_p7);}_gw3=null;_iw3=false;}function _pg(_FQ1,_aZ2){var rect=_FQ1.getBoundingClientRect();_aZ2.left=rect.left;_aZ2.top=rect.top;
_aZ2.right=_aZ2.left+_Yh1;_aZ2.bottom=_aZ2.top+_Zh1;_aZ2.scaleX=(_FQ1.clientWidth/_FQ1.width)||1;_aZ2.scaleY=(_FQ1.clientHeight/_FQ1.height)||1;}function _Uw3(__F){_XG2=[];_JA=[];_KA=[];_IA=0;var _kt=__F.search;var _fh=__F.protocol+"//"+__F.host+__F.pathname;_JA[0]=_fh;_KA[0]=null;if(_kt[0]=="?")_kt=_kt.substring(1,_kt.length);var index=0;var start=0;var _FV="";var _Je=null;while(index<_kt.length){var c=_kt[index];if(c=="&"){if(_FV!=""){if(start!=index)_Je=_kt.substring(start,index);_JA[_JA.length]=_FV;
_KA[_KA.length]=_Je;_XG2[_FV]=_Je;_IA++;_FV="";_Je=null;}start=index+1;}else if(c=="="){_FV=_kt.substring(start,index);_Je=null;start=index+1;}index++;}if(_FV!=""){if(start!=index)_Je=_kt.substring(start,index);_JA[_JA.length]=_FV;_KA[_KA.length]=_Je;_XG2[_FV]=_Je;_IA++;_FV=_Je="";}}function _P43(){_8w3=canvas.style.position;_9w3=canvas.style.left;_aw3=canvas.style.top;_bw3=canvas.style.cssText;_cw3=canvas.parentNode;_dw3=canvas.nextSibling;_ew3=false;_fw3=canvas.margin;if((_cw3==document.body)||(canvas.mozRequestFullScreen)||(canvas.webkitRequestFullScreen)){
_ew3=true;}}window['GameMaker_Init']=GameMaker_Init;var _My=undefined;function GameMaker_Init(){debug('------- GameMaker_Init -------------');if(!document.getElementById||!document.createElement)return;canvas=document.getElementById(_Zw);_Oa=null;if(!canvas)return;_Uw3(window.location);_aw=JSON_game;if(typeof g_var2obf!=="undefined"){_My=Object.getOwnPropertyNames(g_var2obf).reduce((_Vw3,prop)=>{_Vw3[g_var2obf[prop]]=prop;return _Vw3;},{});}if(_aw.Options.outputDebugToDiv){var _Ww3=document.createElement('div');
_Ww3.id="yyDebugDiv";_Ww3.style.display="none";document.body.appendChild(_Ww3);}_NH2();if((_aw.Options&&_aw.Options.debugMode)||(_aw.Options&&_aw.Options.debugMode==undefined)){_6w=true;}if((_aw.Options!=undefined)&&(_aw.Options.AssetCompilerMajorVersion!=undefined)&&(_aw.Options.AssetCompilerMajorVersion>1)){_e4=true;if(_aw.Options.GameSpeed!=undefined){_g4._BC(_aw.Options.GameSpeed);}}_Av2();_aH2=false;_6s=[];_6s[_ds]=new _qr();_6s[_9s]=new _qr();_6s[_EF]=new _qr();if((_aw.Options.WebGL)&&(_aw.Options.WebGL!=0)){
_dH2=_aw.Options.interpolatePixels;var _Xw3=undefined;_Xw3=_3u3(canvas);if(_Xw3){_Oa=_09;}else {if(_aw.Options.WebGL==1){_aH2=true;}_Oa=canvas.getContext('2d');}}else {_Oa=canvas.getContext('2d');}g_CurrentGraphics=_Oa;_lS=_aw.Options.CollisionCompatibility;_mH2=canvas.width;_nH2=canvas.height;if((_aw.Options.UseNewAudio==true)||_e4){_Z41=__41;}document.body.style._Yw3="hidden";_Hf3=_Oa;_TD=canvas.width;_VD=canvas.height;_Yh1=_TD;_Zh1=_VD;_td1=_Yh1;_Md1=_Zh1;_bj1=(_aw.Options.scale!=0);_pw3=window.devicePixelRatio||1;
_qw3=(_Oa.webkitBackingStorePixelRatio||_Oa.mozBackingStorePixelRatio||_Oa.msBackingStorePixelRatio||_Oa.oBackingStorePixelRatio||_Oa.backingStorePixelRatio||1);_rw3=_pw3/_qw3;_qg=new _yx();_pg(canvas,_qg);__h1=_qg.top;_0i1=_qg.left;_1i1=_qg.right;_2i1=_qg.bottom;if(_aw.Options.Facebook&&!_aw.Options.UseFBExtension){console.log("using internal runtime facebook");_Zw3(_aw.Options.Facebook);}else if(_aw.Options&&_aw.Options.debugMode){CreateDebugConsole();}_P43();_Xa1(_Oa);document.body.oncontextmenu=function(){
return false;};_Xg();_gI2=document.getElementById('GM4HTML5_loadingscreen');if(_09&&_6w){debug("WebGL Enabled!");debug("Max Texture Size="+_09._UR1());}_mI2();_Ti1();if(_aH2){_hw3=-2;}else {if(_6w)g_pBuiltIn.debug_mode=_aw.Options.debugMode;_7H2="";_5H2="";_6H2=function(){};{_7J2(_aw);_hw3=0;}}window.focus();canvas.addEventListener("click",function(e){window.focus();});document.addEventListener('touchstart',e=>{e.preventDefault();},{__w3:false});_nw3=Date.now();window.requestAnimFrame(_xw3);}function _xw3(){
if(_hw3!=3)window.requestAnimFrame(_xw3);if(_iw3){_pg(canvas,_qg);var load=document.getElementById("loading_screen");load.style.position="absolute";load.style.left=_qg.left+"px";load.style.top=_qg.top+"px";}var _kv1=false;while(!_kv1){_kv1=true;switch(_hw3){case -2:{if(_iw3)_Tw3();_0x3(_Oa,_Yh1,_Zh1);break;}case -1:if(_eI2==_fI2){_7J2(_aw);_hw3=0;if(!_iw3){_Rw3();_iw3=true;}_bJ2();_7H2(_gw3,_Yh1,_Zh1,_dI2,_D81,_gI2);}break;case 0:if(!_iw3){_Rw3();_iw3=true;}if(_D81>=_dI2){_D81=_dI2;_hw3=1;_kv1=false;
}_bJ2();var _1x3=_7H2;if(_aw.Options.loadingBarCallback){if(_eI2==_fI2){try{_1x3=eval(_aw.Options.loadingBarCallback);_5H2=_1x3;}catch(_h51){console.error('Invalid loading bar extension "'+_aw.Options.loadingBarCallback+'", using default!');console.dir(_h51);}}}_1x3(_gw3,_Yh1,_Zh1,_dI2,_D81,_gI2);break;case 1:if(_eI2==_fI2){_Tw3();_mJ2(_aw);_hw3=2;_kv1=false;}break;case 2:_6H2();debug("Entering main loop...");_2x3();_hw3=3;g_pBuiltIn._AR2=new Date().getTime();_kv1=false;break;case 3:_3x3();break;}}}function _4x3(_4Z2,
x,y,colour,text){_4Z2.fillStyle=colour;_4Z2.lineStyle=colour;_4Z2.font="14px Verdana";;_4Z2.textAlign="center";_4Z2.fillText(text,x,y);_4Z2.textAlign="left";}function _0x3(_4Z2,_89,_99){_4Z2.fillStyle=_om(0x151515,1.0);_4Z2.fillRect(0,0,_89,_99);_4x3(_4Z2,_89/2,(_99/2),_om(0x8d8f90,1.0),"WebGL is required to run this application.");}function _8J2(_Oa,_89,_99,_5x3,_yl3,_6x3){_Oa.globalAlpha=1;if(_6x3){try{_Oa.save();_Oa.fillStyle=_om(0,1);_Oa.globalCompositeOperation='copy';_Oa.fillRect(0,0,_89,_99);
_Oa.restore();_Oa.drawImage(_gI2,0,0,_89,_99);}catch(e){show_message(e.message);}}else {var _7x3=(_89/100)*50;var _8x3=2;var x=(_89-_7x3)/2;var y=10+(_99-_8x3)/2;_Oa.fillStyle=_om(0x151515,1.0);_Oa.fillRect(0,0,_89,_99);if(_yl3!=0){var w=(_7x3/_5x3)*_yl3;_Oa.fillStyle=_om(0x404040,1.0);_Oa.fillRect(x,y,_7x3,_8x3);_Oa.fillStyle=_om(0x8d8f90,1.0);_Oa.fillRect(x,y,w,_8x3);}_4x3(_Oa,_89/2,(_99/2),_om(0x8d8f90,1.0),"Loading");}}function _9x3(_9V2){_0m._ag();var _SK2=_9V2._U11.backgrounds;for(var i=0;i<_SK2.length;
i++){_0m._Vf(_SK2[i]);var _3m=_0m._n6(i);var _ax3=_0m._1m(i);g_pBuiltIn._DR2[i]=_3m.visible;g_pBuiltIn._ER2[i]=_3m.foreground;g_pBuiltIn._FR2[i]=_3m.index;g_pBuiltIn._GR2[i]=_3m.x;g_pBuiltIn._HR2[i]=_3m.y;if((_ax3!==null)&&(_ax3!==undefined)&&(_ax3._6m!==null)&&(_ax3._6m!==undefined)){g_pBuiltIn._IR2[i]=_ax3._6m.w;g_pBuiltIn._JR2[i]=_ax3._6m.h;}else {g_pBuiltIn._IR2[i]=0;g_pBuiltIn._JR2[i]=0;}g_pBuiltIn._KR2[i]=_3m._NK2;g_pBuiltIn._LR2[i]=_3m._OK2;g_pBuiltIn._MR2[i]=_3m._OJ;g_pBuiltIn._NR2[i]=_3m._PJ;
g_pBuiltIn._PR2[i]=_3m._QK2;g_pBuiltIn._OR2[i]=_3m._PK2;g_pBuiltIn._QR2[i]=_3m._QJ;g_pBuiltIn._RR2[i]=_3m.alpha;}g_pBuiltIn._BR2=_9V2._WR2;}function _bx3(_Ok){var _cx3=[];var stack=[_Ok];var _h12=0;while(stack.length){var value=stack.pop();if(typeof value==='boolean'){_h12+=4;}else if(typeof value==='string'){_h12+=value.length*2;}else if(typeof value==='number'){_h12+=8;}else if(typeof value==='object'&&_cx3.indexOf(value)===-1){_cx3.push(value);for(var i in value){stack.push(value[i]);}}}return _h12;}function _It2(_4A,
_dx3){if(_c4){_c4._Sf3();var _ex3=_c4._4t2();for(var i=0;i<8;i++){var _og=_c4._4_1(i);if(_og){var _fx3=_og._621;if(_fx3!=-1){var _nt2=_de1._7t2(_fx3);if(_nt2){if(_ex3){_nt2._3t2(true);}else {_nt2._3t2(false);}}}}}if(_e4){if(_de1!=null){_de1._Jt2();}}}var _gx3=_c4;_z21=-1;effect_clear();_aQ._mV2(_hT2,_c4);_Fx._w6(_3y2,0);_Qa3();_Z53();var persistent=[];var _hx3=[];if(_gx3!=null){for(var i=_gx3._0H.length-1;i>=0;i--){var _9o=_gx3._0H._n6(i);if(_9o.persistent){persistent[persistent.length]=_9o;_9o._ix3=true;var layer=_bo._6J(_gx3,
_9o.layer);if(layer!=null){if(layer._WJ){_hx3[_hx3.length]=null;}else {_hx3[_hx3.length]=layer._XJ;}}else {_hx3[_hx3.length]=null;}}}for(var i=persistent.length-1;i>=0;i--){_gx3._0H._yL(persistent[i]);}if(_gx3._283===false){_gx3._Jb3(true);_bo._zN(_gx3);}else {for(var i=_gx3._0H.length-1;i>=0;i--){var _9o=_gx3._0H._n6(i);_9o._Nx._RM(_9o);}_bo._AN(_gx3);}}_xe._ag();if(_c4&&!_c4._283){var _jx3=_c4._U11;_c4._uL();_c4._U11=_jx3;}_c4=_uC._n6(_4A);var _kx3=_c4._283;if(_kx3===true&&(_c4._rb3===false||_dx3===true)){
_kx3=false;}if(_kx3===false){_c4._Bb3(_c4._U11);_c4._Yb3();}else {_c4._3T2(_c4._EN);_c4._4T2(_c4._GN);_c4._zb3(_c4._qb3);_c4._2T2(_c4._pb3);_c4._3t2(_c4._283);_c4._Yb3();for(i=_c4._0H.length-1;i>=0;i--){var _9o=_c4._0H._n6(i);_9o._Nx._NM(_9o);}}g_pBuiltIn.room=_c4.id;_Bf3();var _YS=_dj1.w/(_5F.right-_5F.left);var _ZS=_dj1.h/(_5F.bottom-_5F.top);var _kg=(_c4._lg)?_c4._ng:_mg;for(var i=0;i<_kg.length;i++){var _og=_kg[i];_og._rg=_og._Zb3*_YS+_dj1.x;_og._tg=_og.__b3*_ZS+_dj1.y;_og._wf3=_og._0c3*_YS;_og._xf3=_og._1c3*_ZS;
_og._sg=_og._rg+_og._wf3;_og._ug=_og._tg+_og._xf3;}_9x3(_c4);_aQ._uL();if(_bo!=null)_bo._eM(_c4);_Ma3();if(_kx3===false){_c4._Ib3();_c4._Jb3(false);var _lx3=_c4._U11.pInstances;for(var _p7=0;_p7<_c4._U11.pInstances.length;_p7++){var _Lu=false;var _mx3=_c4._U11.pInstances[_p7];if(_mx3.index>=0){for(var _G5=persistent.length-1;_G5>=0;_G5--){if(_mx3.id==persistent[_G5].id){_Lu=true;_bo._UM(_c4,persistent[_G5].id);break;}}if(!_Lu){var _PS=_c4._Rb3(_mx3.x,_mx3.y,_mx3.id,_mx3.index,_mx3.scaleX,_mx3.scaleY,_mx3.imageSpeed,
_mx3.imageIndex,_mx3.rotation,_mx3.colour);_PS._ix3=false;}}}var _lx3=_c4._U11.pInstances;for(var _p7=0;_p7<_c4._U11.pInstances.length;_p7++){var _mx3=_c4._U11.pInstances[_p7];var _PS=_Fx._n6(_mx3.id);if(_PS&&(_PS._ix3==false)){_PS._ix3=true;if(!_bH2&&!_e4){if(_mx3.pCode)_mx3.pCode(_PS,_PS);_PS._w6(_HI,0,_PS,_PS);if(_mx3.pPreCreateCode)_mx3.pPreCreateCode(_PS,_PS);_PS._w6(_II,0,_PS,_PS);}else {_PS._w6(_HI,0,_PS,_PS);if(_mx3.pPreCreateCode)_mx3.pPreCreateCode(_PS,_PS);_PS._w6(_II,0,_PS,_PS);if(_mx3.pCode)_mx3.pCode(_PS,
_PS);}}}}else {for(var _G5=persistent.length-1;_G5>=0;_G5--){_bo._TM(_c4,persistent[_G5]);}}for(var _G5=0;_G5<persistent.length;_G5++){_c4._0H._Vf(persistent[_G5]);persistent[_G5]._OI();if(_e4){var _nx3=-1;if(_hx3[_G5]!=null){var _8N=_bo._5J(_c4,_hx3[_G5]);if(_8N==null){_8N=_bo._WM(_c4,persistent[_G5].depth,_hx3[_G5]);}if(_8N!=null){_nx3=_8N._Ce;}}persistent[_G5]._BL(false);persistent[_G5].layer=_nx3;_bo._NM(_c4,persistent[_G5]);var _ox3=_bo._6J(_c4,persistent[_G5].layer);if(_ox3!=null){persistent[_G5].depth=_ox3.depth;
}}}if(_e4){if(_de1!=null){_de1._It2();}}if(_dx3){_Fx._w6(_Yx2,0);}if((_kx3==false)&&(_c4._vb3!=null)){var _px3=new _BI(0,0,0,0,false,true);_c4._vb3(_px3,_px3);_px3=null;}_Fx._w6(_1y2,0);_aQ._mV2(_gT2,_c4);_c4._rb3=true;}function _qx3(_rx3){_It2(_rx3,false);}function _2x3(){g_pBuiltIn.score=0;g_pBuiltIn.lives=-1;_hH2=0;_iH2=-1;_jH2=0;_kH2=0;_It2(_uC._A21(0).id,true);_nw3=Date.now();_jw3=_nw3;g_pBuiltIn.fps=_bv2;g_pBuiltIn.fps_real=_bv2;if(_Z41==__41){_b51();}}function _sx3(_l8){_CV=[];_wV=[];_Mu2=0;_c4._0H._ag();
_c4._SI._ag();var _yk=_14._082;for(var i=0;i<_yk.length;i++){var _By=_yk[i];_By._kw2._ag();_By._F33._ag();}_Fx._ag();if(_l8){audio_stop_all();}else {_n51();}}function _tx3(){_Jg.__53();}function _ux3(){if(_c4._f13.length>0)_c4._Tf3();if(_QH2.length>0)_c4._Uf3();}function _vx3(){if(_c4._lZ){if(_e4){_c4._lZ._bg(_g4._h4());}else _c4._lZ._bg(_c4._qb3);}else _Fx._J33();}function _wx3(){if((_c4._lZ==null)||(_c4._lZ==undefined)){_Tv2();}}function _xx3(){g_pBuiltIn.delta_time=(_mw3-g_pBuiltIn._AR2)*1000;g_pBuiltIn._AR2=_mw3;
_5k3();_Jg._953();_Bv2();_xe._bg();_Fx._I33();_Fx._Y33();_ux3();if(_z21!=-1)return;_bo._jN();_xC._nk3(_c4,_Yw2);_Fx._w6(_Yw2,0);_ux3();if(_z21!=-1)return;if(_eH2){_eH2=false;_Fx._w6(_zB2,0);}_Uf._ZM2();_ux3();if(_z21!=-1)return;_rw2();_ux3();if(_z21!=-1)return;_ww2();_ux3();if(_z21!=-1)return;_Cw2();_ux3();if(_z21!=-1)return;_W53();_ux3();if(_z21!=-1)return;_1w2();_ux3();if(_z21!=-1)return;_aQ._kV2(_c4);_xC._kk3(_c4);_xC._nk3(_c4,__w2);_Fx._w6(__w2,0);_ux3();if(_z21!=-1)return;_vk3();_vx3();_Cv2();
_ux3();if(_z21!=-1)return;_pi1();_ux3();if(_z21!=-1)return;_wx3();_ux3();if(_z21!=-1)return;_xC._nk3(_c4,_1x2);_Fx._w6(_1x2,0);_ux3();if(_z21!=-1)return;_ya3();if(_c4!=null){_c4._Sf3();if(_EE){_c4._O9();_ux3();}}_c4._3c3();_tx3();_Y41();}function _Bf3(){var left,right,top,bottom;left=0;right=-999999;top=0;bottom=-999999;if(_c4._lg){for(var i=0;i<_c4._ng.length;i++){var _og=_c4._ng[i];if(_og.visible){if(right<_og._Zb3+_og._0c3)right=_og._Zb3+_og._0c3;if(bottom<_og.__b3+_og._1c3)bottom=_og.__b3+_og._1c3;
}}}else {left=0;right=_c4._EN;top=0;bottom=_c4._GN;_TG2._0c3=_TG2._2e1=right;_TG2._1c3=_TG2._3e1=bottom;}if(_6j1){if(!_cj1){_td1=_7j1;_Md1=_8j1;}}else {_td1=_Yh1;_Md1=_Zh1;if(surface_exists(_sd1)){surface_free(_sd1);_sd1=-1;}}_cj1=_6j1;_Ae1=_Yh1;_Be1=_Zh1;_5i1=_td1/(right-left);_6i1=_Md1/(bottom-top);var _Y4=new _yx();_Y4.left=left;_Y4.top=top;_Y4.right=right;_Y4.bottom=bottom;_5F=_Y4;_pF=_Y4.left;_qF=_Y4.top;_nF=_Y4.right-_Y4.left;_oF=_Y4.bottom-_Y4.top;_9j1();}function _yx3(){var w=640;if(typeof(_7w.window.innerWidth)=='number'){
w=_7w.window.innerWidth;}else if(_7w.document.documentElement&&_7w.document.documentElement.clientWidth){w=_7w.document.documentElement.clientWidth;}else if(_7w.document.body&&document.body.clientWidth){w=_7w.document.body.clientWidth;}return w;}function _zx3(){var h=480;if(typeof(_7w.window.innerHeight)=='number'){h=_7w.window.innerHeight;}else if(_7w.document.documentElement&&_7w.document.documentElement.clientHeight){h=_7w.document.documentElement.clientHeight;}else if(_7w.document.body&&document.body.clientHeight){
h=_7w.document.body.clientHeight;}return h;}function _cD(){var w=640;if(typeof(window.innerWidth)=='number'){w=window.innerWidth;}else if(document.documentElement&&document.documentElement.clientWidth){w=document.documentElement.clientWidth;}else if(document.body&&document.body.clientWidth){w=document.body.clientWidth;}return w;}function _dD(){var h=480;if(typeof(window.innerHeight)=='number'){h=window.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){h=document.documentElement.clientHeight;
}else if(document.body&&document.body.clientHeight){h=document.body.clientHeight;}return h;}function _Ax3(string){string=string.replace(String.fromCharCode(0x0a)+String.fromCharCode(0x0d)+String.fromCharCode(0x0a),"\n");var _Bx3="";for(var _c7=0;_c7<string.length;_c7++){var c=string.charCodeAt(_c7);if(c<128){_Bx3+=String.fromCharCode(c);}else if((c>127)&&(c<2048)){_Bx3+=String.fromCharCode((c>>6)|192);_Bx3+=String.fromCharCode((c&63)|128);}else if((c>2047)&&(c<32768)){_Bx3+=String.fromCharCode((c>>12)|224);
_Bx3+=String.fromCharCode(((c>>6)&63)|128);_Bx3+=String.fromCharCode((c&63)|128);}else {_Bx3+=String.fromCharCode(((c>>18)&7)|240);_Bx3+=String.fromCharCode(((c>>12)&63)|128);_Bx3+=String.fromCharCode(((c>>6)&63)|128);_Bx3+=String.fromCharCode((c&63)|128);}}return _Bx3;}function _gQ2(_Cx3){return(_Dx3(_Cx3)||_Ex3(_Cx3));}function _Dx3(_Cx3){var _Fx3=_Cx3.charCodeAt(0);if((_Fx3>47)&&(_Fx3<58)){return true;}return false;}function _Ex3(_Cx3){var _Fx3=_Cx3.charCodeAt(0);if(((_Fx3>64)&&(_Fx3<91))||((_Fx3>96)&&(_Fx3<123))){
return true;}return false;}function _Gx3(_xU1){var __h="";for(var i=0;i<_xU1.length;i++){var __4=_xU1[i]&0xff;__h=__h+_DH2[__4>>4]+_DH2[__4&0xf];}return __h;}function _Hx3(_k4){var __h="";for(var i=0;i<8;i++){__h=__h+_DH2[((_k4>>28)&0xf)];_k4=_k4<<4;}return __h;}function _Ix3(_xl){var _LU=new Uint8Array(_xl.length);for(var i=0,_Jx3=_xl.length;i<_Jx3;i++){_LU[i]=_xl.charAt(i);}return _LU;};function _Kx3(_4O2){return String.fromCharCode.apply(null,new Uint8Array(_4O2));};function _Lx3(_4O2){return String.fromCharCode.apply(null,
new Uint16Array(_4O2));};function _Mx3(_xl){var _4O2=new ArrayBuffer(_xl.length*2);var _LU=new Uint16Array(_4O2);for(var i=0,_Jx3=_xl.length;i<_Jx3;i++){_LU[i]=_xl.charCodeAt(i);}return _4O2;};function _Nx3(){_pg(canvas,_qg);__h1=_qg.top;_0i1=_qg.left;_1i1=_qg.right;_2i1=_qg.bottom;_ae1(_Oa);if((_mH2!=canvas.width)||(_nH2!=canvas.height)){_eH2=true;}_mH2=canvas.width;_nH2=canvas.height;var w=_cD();var h=_dD();if((_xh1)&&(!_fH2)){if((_3i1!=w)||(_4i1!=h)){_fH2=true;_xh1=false;}}if(_fH2){_fH2=false;if(_xh1){w=_TD;
h=_VD;_xh1=false;canvas.style.position=_8w3;canvas.style.left=_9w3;canvas.style.top=_aw3;canvas.style.margin=_fw3;canvas.style.cssText=_bw3;if(!_ew3){if(canvas.parentNode!=_cw3){_cw3.insertBefore(canvas,_dw3);}}}else {_xh1=true;window_set_position(0,0);if(!_ew3){if(canvas.parentNode==_cw3){_cw3.removeChild(canvas);document.body.insertBefore(canvas,null);}}}canvas.width=w;canvas.height=h;_Yh1=canvas.width;_Zh1=canvas.height;_0i1=canvas.offsetLeft;_1i1=_0i1+_Yh1;__h1=canvas.offsetTop;_2i1=_0i1+_Zh1;
_3i1=_Yh1;_4i1=_Zh1;_Ae1=w;_Be1=h;_5i1=1;_6i1=1;_Bf3();}}var _Ox3=0;var _Px3=0;function _3x3(){if(_09){_09._we1();}_g4._bg();var _n13=_g4._h4();const _Qx3=_mw3;_mw3=Date.now();const _Rx3=(_mw3-_Qx3)*1000;_xw2._Aw2(_Rx3);_ih1._Aw2(_Rx3);if(_mw3>=_jw3+1000){if(_mw3-_nw3<2000){_bv2=_kw3;g_pBuiltIn.fps=_bv2;}_kw3=0;_jw3=_mw3;}_kw3++;var _Sx3=_nw3+1000/_n13;var now=Date.now();var _bO1=_nw3+1000/_n13-now;if(_bO1<0)_bO1=0;_nw3=now+_bO1;if(_bO1>4){setTimeout(function(){if(window._vw3){window._vw3(_xw3);}else {}},
_bO1);}else {if(window._vw3){window._vw3(_xw3);}else {window.postMessage("yyRequestAnimationFrame","*");}}if(!_zv2){_Nx3();var _Tx3=10;var _kv1=false;while(!_kv1){_kv1=true;if(_c4===null){_TG2._sg=_TG2._wf3=_TG2._0c3=_TG2._2e1=_Yh1;_TG2._ug=_TG2._xf3=_TG2._1c3=_TG2._3e1=_Zh1;}else {_Bf3();}_XY2();_xx3();_ZY2();switch(_z21){case -1:break;case _D21:case _pB2:_sx3(false);return;case _E21:_sx3(true);_uC._0g3();_2x3();break;case _oB2:_mJ2();break;default :_qx3(_z21);_kv1=false;break;}_Tx3--;if(_Tx3<=0)break;}_ci1=0;
_di1=0;}if(_aw.Options&&_aw.Options.debugMode){UpdateDebugWindow();}}