Files
monkeygg2.github.io/games/retro-bowl/html5game/RetroBowl.js
T
2023-08-25 13:31:04 +05:30

11195 lines
5.2 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Array.prototype.__yy_owner=0;var JSON_game={Extensions:[{jsFiles:["uph_poki.js"],initfuncs:[]},{init:"gml_Script_poki_init"}],ExtensionOptions:{iOS_IAPs:{},GooglePlayBillingExtension:{},Poki:{}},Sounds:[{pName:"snd_audience_dis",kind:0,extension:"",origName:"snd_audience_dis",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_audience_fg",kind:0,extension:"",origName:"snd_audience_fg",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_beep",kind:0,extension:"",origName:"snd_beep",
effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_beep2",kind:0,extension:"",origName:"snd_beep2",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_bounce",kind:0,extension:"",origName:"snd_bounce",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_click",kind:0,extension:"",origName:"snd_click",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_kick",kind:0,extension:"",origName:"snd_kick",effects:0,volume:0.5,pan:0,preload:false,groupId:0},{pName:"snd_oof1",
kind:0,extension:"",origName:"snd_oof1",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_oof2",kind:0,extension:"",origName:"snd_oof2",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_error",kind:0,extension:"",origName:"snd_error",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_oof3",kind:0,extension:"",origName:"snd_oof3",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_post",kind:0,extension:"",origName:"snd_post",effects:0,volume:1,pan:0,preload:false,
groupId:0},{pName:"snd_throw",kind:0,extension:"",origName:"snd_throw",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_tackle",kind:0,extension:"",origName:"snd_tackle",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_music",kind:1,extension:"",origName:"snd_music",effects:0,volume:1,pan:0,preload:false,groupId:0,duration:0},{pName:"snd_audible",kind:0,extension:"",origName:"snd_audible",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_timeout",kind:0,extension:"",
origName:"snd_timeout",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_purchase",kind:0,extension:"",origName:"snd_purchase",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_audience_idle",kind:0,extension:"",origName:"snd_audience_idle",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_success",kind:0,extension:"",origName:"snd_success",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_drink",kind:0,extension:"",origName:"snd_drink",effects:0,volume:1,
pan:0,preload:false,groupId:0},{pName:"snd_starrating",kind:0,extension:"",origName:"snd_starrating",effects:0,volume:1,pan:0,preload:false,groupId:0}],AudioGroups:[{name:"audiogroup_default",enabled:true,}],Sprites:[{pName:"spr_credit_rec",width:9,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:3,yOrigin:4,bboxRight:8,bboxBottom:8,playbackspeed:0,TPEntryIndex:[651],sequence:{pName:"spr_credit_rec",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:3,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_field",width:1300,height:237,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:1299,bboxBottom:236,playbackspeed:0,TPEntryIndex:[3,6,2,7,8,4,9,5],sequence:{pName:"",playback:1,playbackSpeed:0,
playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"spr_fieldfans",width:1300,height:33,transparent:false,
smooth:false,preload:false,colCheck:!1,bboxRight:1299,bboxBottom:32,playbackspeed:15,TPEntryIndex:[28,26,27],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball",width:40,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:20,yOrigin:10,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:0,TPEntryIndex:[343,342,345,344,346,341],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:6,xorigin:20,yorigin:10,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_ball1",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[703,701,702,704],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball2",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,
yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[707,705,708,706],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball3",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[709,711,712,710],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,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}}}]}],sequenceEvents:[],momentsKeystore:[]}
},{pName:"spr_ball4",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[713,714,715,716],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball5",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,
TPEntryIndex:[717,719,720,718],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball6",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[721,722,723,724],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_bg_signed1",width:480,height:270,transparent:false,
smooth:false,preload:false,colCheck:!1,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[15],sequence:{pName:"spr_bg_signed1",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_ball7",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[727,728,726,725],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_blur",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:1,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:7,TPEntryIndex:[699],
sequence:{pName:"",playback:1,playbackSpeed:7,playbackSpeedType:0,length:1,xorigin:5,yorigin:1,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_chains",width:32,height:27,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:26,
bboxLeft:6,bboxRight:26,bboxBottom:26,playbackspeed:15,TPEntryIndex:[296,295],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:16,yorigin:26,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_cheerleaders",width:100,height:25,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:50,yOrigin:24,bboxLeft:5,bboxRight:94,bboxTop:1,bboxBottom:23,playbackspeed:2,TPEntryIndex:[124,120],sequence:{pName:"",playback:1,playbackSpeed:2,playbackSpeedType:0,length:2,xorigin:50,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_dummy",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:13,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[482,612,526],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:13,
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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cone",width:7,height:4,transparent:false,smooth:false,
preload:false,colCheck:!1,xOrigin:3,yOrigin:2,bboxRight:6,bboxBottom:3,playbackspeed:15,TPEntryIndex:[689],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:3,yorigin:2,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_goal_stand",
width:10,height:37,transparent:false,smooth:false,preload:false,colCheck:!1,yOrigin:32,bboxRight:9,bboxTop:5,bboxBottom:36,playbackspeed:0,TPEntryIndex:[326,325],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:0,yorigin:32,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_tag_yb_b",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:21,yOrigin:14,bboxLeft:9,bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[334],sequence:{pName:"spr_tag_yb_b",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:21,yorigin:14,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_adNSS",width:480,height:270,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[12],sequence:{pName:"spr_adNSS",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_goal_post",width:17,height:90,transparent:false,smooth:false,preload:false,colCheck:!1,yOrigin:85,bboxLeft:10,bboxRight:16,bboxBottom:61,playbackspeed:0,TPEntryIndex:[362,327,313],sequence:{pName:"",playback:1,playbackSpeed:0,
playbackSpeedType:0,length:3,xorigin:0,yorigin:85,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_goal_shadow",
width:32,height:35,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:3,yOrigin:17,bboxLeft:7,bboxRight:24,bboxBottom:34,playbackspeed:0,TPEntryIndex:[283],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:3,yorigin:17,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_rain",width:2,height:8,transparent:false,smooth:false,preload:false,colCheck:!1,yOrigin:7,bboxRight:1,bboxBottom:7,playbackspeed:8,TPEntryIndex:[732,736],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:2,xorigin:0,yorigin:7,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_jacket_black",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:1,bboxRight:29,bboxTop:7,bboxBottom:24,playbackspeed:30,TPEntryIndex:[287],sequence:{pName:"spr_jacket_black",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_splash",width:13,height:12,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:6,yOrigin:9,bboxLeft:2,bboxRight:11,bboxTop:6,bboxBottom:11,playbackspeed:3,TPEntryIndex:[738,683,669,670,737],sequence:{pName:"",
playback:1,playbackSpeed:3,playbackSpeedType:0,length:5,xorigin:6,yorigin:9,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_snow",width:3,height:3,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:1,yOrigin:1,bboxRight:2,bboxBottom:2,playbackspeed:9,TPEntryIndex:[733],sequence:{pName:"",playback:1,playbackSpeed:9,playbackSpeedType:0,length:1,xorigin:1,yorigin:1,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_grass",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:31,bboxBottom:31,playbackspeed:15,TPEntryIndex:[136],sequence:{pName:"",playback:1,playbackSpeed:15,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_coach",width:10,height:21,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:19,bboxRight:9,bboxTop:1,bboxBottom:19,playbackspeed:15,TPEntryIndex:[439],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,
length:1,xorigin:5,yorigin:19,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_sideline_crew",width:299,height:27,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:298,bboxBottom:26,playbackspeed:15,TPEntryIndex:[76],sequence:{
pName:"",playback:1,playbackSpeed:15,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_endzone",width:100,height:169,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:99,bboxBottom:168,
playbackspeed:15,TPEntryIndex:[45,43,46,44,42,739,740],sequence:{pName:"",playback:1,playbackSpeed:15,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:"spr_stand_highlight",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:22,
bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[429,438,428],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:8,yorigin:22,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[546,559,545],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:8,yorigin:15,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_ball",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,
playbackspeed:0,TPEntryIndex:[547,560,548],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:15,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_ball2",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[549,561,550],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:15,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_walk",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[529,
445],sequence:{pName:"",playback:1,playbackSpeed:6,playbackSpeedType:0,length:2,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}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_aim_old",width:15,
height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[384],sequence:{pName:"spr_qb_aim_old",playback:1,playbackSpeed:6,playbackSpeedType:0,length:1,xorigin:7,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_qb_aim",width:15,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[377,382,380,383,378,379,381],sequence:{pName:"spr_qb_aim",playback:1,playbackSpeed:6,playbackSpeedType:0,length:7,xorigin:7,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_throw",width:12,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:6,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:1,TPEntryIndex:[415],sequence:{pName:"",playback:1,playbackSpeed:1,playbackSpeedType:0,length:1,xorigin:6,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_handoff",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[518,540],sequence:{pName:"",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:8,
yorigin:15,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_run",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:16,bboxLeft:4,
bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[572,446,417,571,447,416],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_ball",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,
playbackspeed:8,TPEntryIndex:[582,510,461,583,511,462],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,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_run_ball2",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[585,
513,463,584,512,464],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,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_getup",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[556,539],sequence:{pName:"",playback:1,
playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,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_getup_ball",bboxMode:2,transparent:false,smooth:false,preload:false,
colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[557,537],sequence:{pName:"",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,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_getup_ball2",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[558,538],sequence:{pName:"",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,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_stiffarm",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[551,419,418,552,420,421],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,
length:6,xorigin:7,yorigin:15,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_stiffarm2",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[554,424,423,553,425,422],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,
yorigin:15,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_jump_catch",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[621,574,581,573,624],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,
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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_ball",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[622,577,576,575,610],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,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}}}]}],sequenceEvents:[],momentsKeystore:[]}
},{pName:"spr_jump_catch_ball2",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[623,579,578,580,611],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,
xOrigin:7,yOrigin:22,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[410,456,409],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:7,yorigin:22,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump2",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:22,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[412,457,411],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:7,yorigin:22,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jockey",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:4,
bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[569,444,568,443],sequence:{pName:"spr_jockey",playback:1,playbackSpeed:8,playbackSpeedType:0,length:4,xorigin:7,yorigin:15,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_wrestle",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:9,yOrigin:15,bboxLeft:2,bboxRight:14,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[520,566],sequence:{pName:"",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:9,yorigin:15,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_falling",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,
bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[615,626],sequence:{pName:"",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,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_arrowD",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:16,bboxLeft:8,bboxRight:22,bboxTop:7,bboxBottom:22,playbackspeed:15,TPEntryIndex:[387],sequence:{pName:"spr_arrowD",playback:1,playbackSpeed:15,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_falling_ball",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[613,660],sequence:{pName:"",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,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_falling_ball2",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,
TPEntryIndex:[614,661],sequence:{pName:"",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,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_dive",
width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:25,bboxLeft:11,bboxRight:24,bboxTop:20,bboxBottom:24,playbackspeed:8,TPEntryIndex:[514,440,488],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_ball",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:25,bboxLeft:13,bboxRight:24,bboxTop:10,bboxBottom:13,playbackspeed:8,TPEntryIndex:[483,441,480],sequence:{pName:"",playback:1,playbackSpeed:8,
playbackSpeedType:0,length:3,xorigin:16,yorigin:25,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_ball2",
width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:25,bboxLeft:13,bboxRight:24,bboxTop:10,bboxBottom:13,playbackspeed:8,TPEntryIndex:[484,442,481],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kick1",height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:17,bboxRight:12,bboxTop:3,bboxBottom:19,playbackspeed:8,TPEntryIndex:[413,570,398],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:8,
yorigin:17,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kick2",height:20,transparent:false,smooth:false,
preload:false,colCheck:!1,xOrigin:8,yOrigin:17,bboxLeft:1,bboxRight:14,bboxTop:3,bboxBottom:19,playbackspeed:9,TPEntryIndex:[414,399,519,485,541],sequence:{pName:"",playback:1,playbackSpeed:9,playbackSpeedType:0,length:5,xorigin:8,yorigin:17,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_place",height:13,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:6,yOrigin:11,bboxLeft:2,bboxRight:14,bboxBottom:11,playbackspeed:0,TPEntryIndex:[521,
609],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:6,yorigin:11,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_spike",height:20,transparent:false,
smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:19,bboxRight:13,bboxBottom:19,playbackspeed:9,TPEntryIndex:[363,458,562],sequence:{pName:"",playback:1,playbackSpeed:9,playbackSpeedType:0,length:3,xorigin:8,yorigin:19,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_flex_fill",transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[366],sequence:{pName:"spr_box_flex_fill",playback:1,playbackSpeed:0,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:[]},nineslice:{nLeft:4,nTop:4,nRight:4,nBottom:4,nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_spike2",height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:19,bboxRight:13,bboxBottom:19,playbackspeed:9,TPEntryIndex:[364,459,563],sequence:{pName:"",playback:1,
playbackSpeed:9,playbackSpeedType:0,length:3,xorigin:8,yorigin:19,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}}}]}],sequenceEvents:[],momentsKeystore:[]}
},{pName:"spr_celebrate",height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:19,bboxLeft:3,bboxRight:11,bboxTop:1,bboxBottom:19,playbackspeed:2,TPEntryIndex:[567,535],sequence:{pName:"spr_celebrate",playback:1,playbackSpeed:2,playbackSpeedType:0,length:2,xorigin:8,yorigin:19,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_route_pointR",bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:7,bboxLeft:-1,bboxRight:5,bboxTop:-1,bboxBottom:3,playbackspeed:15,TPEntryIndex:[620],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:8,yorigin:7,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_bouncespot",transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:3,bboxLeft:1,bboxRight:7,bboxTop:1,bboxBottom:5,playbackspeed:15,TPEntryIndex:[685],sequence:{pName:"spr_bouncespot",playback:1,playbackSpeed:15,
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_kickpoint",width:25,height:7,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:6,yOrigin:3,bboxLeft:12,bboxRight:24,bboxBottom:6,playbackspeed:15,
TPEntryIndex:[632],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:6,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_highlight",transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:7,
bboxRight:15,bboxBottom:14,playbackspeed:15,TPEntryIndex:[391],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:8,yorigin:7,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_aim",width:7,height:7,transparent:false,
smooth:false,preload:false,colCheck:!1,xOrigin:2,yOrigin:3,bboxLeft:1,bboxRight:4,bboxTop:1,bboxBottom:4,playbackspeed:15,TPEntryIndex:[729],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:2,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_wind",width:22,height:21,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:9,yOrigin:10,bboxRight:21,bboxBottom:20,playbackspeed:15,TPEntryIndex:[289],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:9,yorigin:10,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_pointer",width:9,height:12,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:6,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[616,617],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:4,yorigin:6,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_star_s",width:5,height:4,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:2,yOrigin:2,bboxRight:4,bboxBottom:3,playbackspeed:15,TPEntryIndex:[700],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,
length:1,xorigin:2,yorigin:2,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_attitude_s",width:5,height:5,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:2,yOrigin:2,bboxRight:4,bboxBottom:4,playbackspeed:15,TPEntryIndex:[698,
694,692,695,693,696,697],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:7,xorigin:2,yorigin:2,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:"spr_press_conf",width:100,height:40,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:99,bboxBottom:39,playbackspeed:15,
TPEntryIndex:[82],sequence:{pName:"",playback:1,playbackSpeed:15,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_team_celebration",width:100,height:40,transparent:false,smooth:false,preload:false,
colCheck:!1,bboxRight:99,bboxBottom:39,playbackspeed:15,TPEntryIndex:[83],sequence:{pName:"",playback:1,playbackSpeed:15,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_audible",width:96,height:32,
bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:0,TPEntryIndex:[97,94,98,95,96],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:5,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_fieldgoalbtn",width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,
playbackspeed:0,TPEntryIndex:[104],sequence:{pName:"spr_fieldgoalbtn",playback:1,playbackSpeed:0,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_workrate",width:96,height:32,bboxMode:2,transparent:false,
smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:0,TPEntryIndex:[107,108,106],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dice",width:18,height:18,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:9,yOrigin:9,bboxLeft:2,bboxRight:15,bboxTop:2,bboxBottom:15,playbackspeed:15,TPEntryIndex:[434],sequence:{pName:"spr_dice",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:9,yorigin:9,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_clock",width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:15,TPEntryIndex:[99,101,100],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_presnap",width:140,height:59,
transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[53],sequence:{pName:"spr_controls_presnap",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_clock2",width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:15,TPEntryIndex:[103,102],sequence:{pName:"",playback:1,playbackSpeed:15,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_controls_touchback",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[59],sequence:{pName:"spr_controls_touchback",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,
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_helmet",width:60,height:60,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:30,yOrigin:30,bboxLeft:6,bboxRight:56,bboxTop:6,bboxBottom:56,playbackspeed:0,TPEntryIndex:[113,114],sequence:{
pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:30,yorigin:30,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_matchline_dot",width:32,transparent:false,
smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:8,bboxLeft:4,bboxRight:28,bboxTop:2,bboxBottom:15,playbackspeed:15,TPEntryIndex:[318],sequence:{pName:"",playback:1,playbackSpeed:15,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_star",width:7,height:7,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:3,yOrigin:4,bboxRight:6,bboxBottom:6,playbackspeed:15,TPEntryIndex:[677],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:3,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_connect",width:7,height:7,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:3,yOrigin:3,bboxRight:6,bboxBottom:6,playbackspeed:15,TPEntryIndex:[676],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:3,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_star_b",width:9,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:7,bboxRight:8,bboxBottom:8,playbackspeed:15,TPEntryIndex:[654],sequence:{pName:"spr_star_b",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:4,yorigin:7,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_xp",width:14,height:7,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:3,bboxRight:13,bboxBottom:6,playbackspeed:15,TPEntryIndex:[625],sequence:{pName:"spr_xp",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,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_credit",width:9,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:4,bboxRight:8,bboxBottom:8,playbackspeed:0,TPEntryIndex:[649,645,648,647,646,650],sequence:{pName:"spr_credit",playback:1,playbackSpeed:0,
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_credit2",width:14,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:6,yOrigin:4,bboxRight:8,bboxBottom:8,playbackspeed:0,TPEntryIndex:[652],sequence:{pName:"spr_credit2",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:6,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_attitude",width:11,height:11,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10,playbackspeed:15,TPEntryIndex:[590,596,595,591,593,594,592],sequence:{pName:"",
playback:1,playbackSpeed:15,playbackSpeedType:0,length:7,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}}},{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:"spr_trade",width:11,height:11,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10,playbackspeed:15,TPEntryIndex:[606],sequence:{pName:"",
playback:1,playbackSpeed:15,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_rookie",width:11,height:11,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10,
playbackspeed:0,TPEntryIndex:[602],sequence:{pName:"",playback:1,playbackSpeed:0,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_condition",width:11,height:11,transparent:false,smooth:false,preload:false,
colCheck:!1,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10,playbackspeed:15,TPEntryIndex:[599,601,600,598,597],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:5,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}}},{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_morale",width:9,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:4,bboxRight:8,bboxBottom:8,playbackspeed:15,TPEntryIndex:[653],sequence:{pName:"spr_morale",playback:1,
playbackSpeed:15,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_heart",width:9,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:5,bboxRight:8,bboxTop:1,bboxBottom:8,
playbackspeed:15,TPEntryIndex:[662],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:4,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_star_rating",width:39,height:7,transparent:false,smooth:false,preload:false,
colCheck:!1,yOrigin:3,bboxRight:38,bboxBottom:6,playbackspeed:15,TPEntryIndex:[741,691,678,643,618,564,516,437,403,386,355],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:0,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}}},{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_star_rating_b",width:41,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,yOrigin:4,bboxRight:40,bboxBottom:8,playbackspeed:15,TPEntryIndex:[742,672,655,586,530,430,394,358,336,320,314],sequence:{pName:"",playback:1,playbackSpeed:15,
playbackSpeedType:0,length:11,xorigin:0,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}}},{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_star_rating_bn",width:41,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,yOrigin:4,bboxRight:40,bboxBottom:8,playbackspeed:15,TPEntryIndex:[743,673,656,587,531,431,395,359,337,321,315],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:0,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}}},{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_star_rating_c",width:39,height:7,transparent:false,smooth:false,preload:false,
colCheck:!1,xOrigin:19,yOrigin:3,bboxRight:38,bboxBottom:6,playbackspeed:15,TPEntryIndex:[744,690,679,644,619,565,517,436,404,385,356],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:19,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}}},{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_star_rating_cb",width:41,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:20,yOrigin:4,bboxRight:40,bboxBottom:8,playbackspeed:15,TPEntryIndex:[745,674,657,588,532,432,396,360,338,322,316],sequence:{
pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:20,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}}},{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_star_rating_cbn",width:41,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:20,yOrigin:4,bboxRight:40,bboxBottom:8,playbackspeed:15,TPEntryIndex:[682,675,658,589,533,433,397,361,339,323,317],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:20,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}}},{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_cup",width:15,height:15,transparent:false,
smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:7,bboxLeft:1,bboxRight:13,bboxTop:1,bboxBottom:13,playbackspeed:15,TPEntryIndex:[487],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,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_store",width:15,height:15,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:7,bboxLeft:1,bboxRight:11,bboxTop:2,bboxBottom:12,playbackspeed:15,TPEntryIndex:[605],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,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_spangle",width:23,height:7,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:11,yOrigin:4,bboxRight:22,bboxBottom:6,playbackspeed:15,TPEntryIndex:[515],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:11,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_fans",width:12,height:14,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:6,yOrigin:7,bboxRight:11,bboxBottom:13,playbackspeed:15,TPEntryIndex:[489],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:6,yorigin:7,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_box_208x64",width:208,height:64,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:207,bboxBottom:63,playbackspeed:15,TPEntryIndex:[50],sequence:{pName:"",playback:1,playbackSpeed:15,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_button_90",width:90,height:34,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:89,bboxBottom:33,playbackspeed:0,TPEntryIndex:[109,110,116],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,
length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_74",width:74,
height:34,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:73,bboxBottom:33,playbackspeed:0,TPEntryIndex:[115,118,123],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_104",width:106,height:34,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:105,bboxBottom:33,playbackspeed:0,TPEntryIndex:[87,93,111],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_32",width:33,height:34,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:32,bboxBottom:33,playbackspeed:0,
TPEntryIndex:[133,145,281],sequence:{pName:"spr_button_32",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"spr_button_64",width:68,height:34,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:67,bboxBottom:33,playbackspeed:0,TPEntryIndex:[117,119,126],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_50",width:54,height:34,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:53,bboxBottom:33,playbackspeed:0,
TPEntryIndex:[125,128,131],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_40",width:41,height:34,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:40,bboxBottom:33,playbackspeed:0,TPEntryIndex:[129,132,146],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_thin",width:41,height:18,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:40,bboxBottom:17,playbackspeed:0,TPEntryIndex:[282,284,294],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,
length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_208x80",width:208,
height:80,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:207,bboxBottom:79,playbackspeed:15,TPEntryIndex:[47],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_208x32",width:208,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:207,bboxBottom:31,playbackspeed:15,TPEntryIndex:[77],sequence:{pName:"",playback:1,playbackSpeed:15,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_meter",width:192,height:20,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:191,bboxBottom:19,playbackspeed:15,TPEntryIndex:[84,85],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_416x144",width:416,height:144,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:415,bboxBottom:143,playbackspeed:15,TPEntryIndex:[23],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_416x144_fill",width:416,height:144,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:413,bboxTop:2,bboxBottom:141,playbackspeed:15,TPEntryIndex:[24],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_448x80",width:448,height:80,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:447,bboxBottom:79,playbackspeed:15,TPEntryIndex:[31],sequence:{pName:"",playback:1,playbackSpeed:15,
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_box_288x160",width:288,height:160,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:287,bboxBottom:159,playbackspeed:15,TPEntryIndex:[25],
sequence:{pName:"",playback:1,playbackSpeed:15,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_details",width:32,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,
yOrigin:16,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:15,TPEntryIndex:[310],sequence:{pName:"",playback:1,playbackSpeed:15,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_arrowL",
width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:16,bboxLeft:9,bboxRight:24,bboxTop:8,bboxBottom:22,playbackspeed:15,TPEntryIndex:[388],sequence:{pName:"",playback:1,playbackSpeed:15,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_arrowU",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:16,bboxLeft:9,bboxRight:23,bboxTop:9,bboxBottom:24,playbackspeed:15,TPEntryIndex:[390],sequence:{pName:"spr_arrowU",playback:1,playbackSpeed:15,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_arrowL2",width:8,height:15,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:7,bboxRight:7,bboxBottom:14,playbackspeed:15,TPEntryIndex:[607],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,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_arrowR",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:16,bboxLeft:7,bboxRight:22,bboxTop:8,bboxBottom:22,playbackspeed:15,TPEntryIndex:[389],sequence:{pName:"",playback:1,playbackSpeed:15,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_arrowR2",width:8,height:15,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:2,yOrigin:7,bboxRight:7,bboxBottom:14,playbackspeed:15,TPEntryIndex:[608],sequence:{
pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:2,yorigin:7,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_arrowR3",width:6,height:13,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:2,yOrigin:6,bboxRight:5,
bboxTop:1,bboxBottom:11,playbackspeed:15,TPEntryIndex:[667],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:2,yorigin:6,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_edit",width:14,height:14,transparent:false,
smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:7,bboxRight:13,bboxBottom:13,playbackspeed:15,TPEntryIndex:[435],sequence:{pName:"spr_edit",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,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_tick",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:16,bboxLeft:6,bboxRight:25,bboxTop:8,bboxBottom:26,playbackspeed:15,TPEntryIndex:[312],sequence:{pName:"",playback:1,playbackSpeed:15,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_cross",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:15,yOrigin:16,bboxLeft:8,bboxRight:22,bboxTop:9,bboxBottom:23,playbackspeed:15,TPEntryIndex:[393],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,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_profile",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:16,yOrigin:16,bboxLeft:8,bboxRight:22,bboxTop:6,bboxBottom:25,playbackspeed:15,TPEntryIndex:[330],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_208x176",width:208,height:176,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:207,bboxBottom:175,playbackspeed:15,TPEntryIndex:[30],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_224x176",width:224,height:176,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:223,bboxBottom:175,playbackspeed:15,TPEntryIndex:[29],sequence:{pName:"",playback:1,
playbackSpeed:15,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_box_160x160",width:160,height:160,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:159,bboxBottom:159,playbackspeed:15,
TPEntryIndex:[35],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_160x128",width:160,height:128,transparent:false,smooth:false,preload:false,colCheck:!1,
bboxRight:159,bboxBottom:127,playbackspeed:15,TPEntryIndex:[36],sequence:{pName:"",playback:1,playbackSpeed:15,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_box",width:4,height:4,transparent:false,
smooth:false,preload:false,colCheck:!1,bboxRight:3,bboxBottom:3,playbackspeed:15,TPEntryIndex:[730,731,734,735],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kneel",width:18,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:13,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[502],sequence:{pName:"spr_kneel",playback:1,playbackSpeed:6,playbackSpeedType:0,length:1,
xorigin:8,yorigin:13,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_spanner",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:15,yOrigin:15,bboxLeft:7,bboxRight:23,bboxTop:7,bboxBottom:23,playbackspeed:15,TPEntryIndex:[340],
sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:15,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_home",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:15,yOrigin:15,
bboxLeft:7,bboxRight:23,bboxTop:8,bboxBottom:25,playbackspeed:15,TPEntryIndex:[328],sequence:{pName:"spr_home",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:15,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_trophy",
width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:15,yOrigin:15,bboxLeft:4,bboxRight:13,bboxTop:5,bboxBottom:26,playbackspeed:15,TPEntryIndex:[402],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:15,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_msg_bg",width:64,height:64,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:63,bboxBottom:63,playbackspeed:15,TPEntryIndex:[81],sequence:{pName:"",playback:1,playbackSpeed:15,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_textbox64",width:64,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:32,yOrigin:8,bboxRight:63,bboxBottom:15,playbackspeed:15,TPEntryIndex:[143],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:32,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_textbox48",width:48,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:24,yOrigin:8,bboxRight:47,bboxBottom:15,playbackspeed:15,TPEntryIndex:[279],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:24,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_box_176x176",width:176,height:176,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:175,bboxBottom:175,playbackspeed:15,TPEntryIndex:[34],sequence:{pName:"",playback:1,playbackSpeed:15,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_training",height:23,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:11,bboxLeft:2,bboxRight:13,bboxTop:2,bboxBottom:20,playbackspeed:15,TPEntryIndex:[392],sequence:{pName:"",playback:1,playbackSpeed:15,
playbackSpeedType:0,length:1,xorigin:8,yorigin:11,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_controls_tut_1",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,
TPEntryIndex:[60],sequence:{pName:"spr_controls_tut_1",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_box_128x128",width:128,height:128,transparent:false,smooth:false,
preload:false,colCheck:!1,bboxRight:127,bboxBottom:127,playbackspeed:15,TPEntryIndex:[48],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_64x64",
width:64,height:64,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:63,bboxBottom:63,playbackspeed:15,TPEntryIndex:[79],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_64x32",width:64,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:63,bboxBottom:31,playbackspeed:15,TPEntryIndex:[121],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_64x80",width:64,height:80,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:63,bboxBottom:79,playbackspeed:15,TPEntryIndex:[78],sequence:{pName:"",playback:1,playbackSpeed:15,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_box_64x41",width:64,height:41,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:63,bboxBottom:40,playbackspeed:15,TPEntryIndex:[112],sequence:{pName:"",playback:1,playbackSpeed:15,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_info",transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:15,bboxBottom:15,playbackspeed:15,TPEntryIndex:[375],sequence:{pName:"",playback:1,playbackSpeed:15,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_checkbox",transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[367,368],sequence:{pName:"spr_checkbox",playback:1,playbackSpeed:0,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_scanlines",width:64,height:60,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:63,bboxBottom:57,playbackspeed:15,TPEntryIndex:[86],sequence:{pName:"",playback:1,playbackSpeed:15,
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_square",transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:15,bboxBottom:15,playbackspeed:15,TPEntryIndex:[376],sequence:{pName:"",
playback:1,playbackSpeed:15,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_weather",width:9,height:9,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:4,bboxRight:8,bboxBottom:8,
playbackspeed:15,TPEntryIndex:[680,684,681,659],sequence:{pName:"spr_weather",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_uniform_select",width:46,height:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:23,yOrigin:1,bboxRight:45,bboxBottom:1,playbackspeed:15,TPEntryIndex:[627,630,631,628,629],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:5,xorigin:23,yorigin:1,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}}}]}],sequenceEvents:[],
momentsKeystore:[]}},{pName:"spr_uniform_select2",width:36,height:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:18,yOrigin:1,bboxLeft:10,bboxRight:25,bboxBottom:1,playbackspeed:15,TPEntryIndex:[687,688],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:18,yorigin:1,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_uniform_select4",width:36,height:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:18,yOrigin:1,bboxRight:35,bboxBottom:1,playbackspeed:15,TPEntryIndex:[665,664,663,666],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:18,yorigin:1,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_player_edit",
width:15,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:10,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[329,400],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:7,yorigin:10,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_col_picker",width:391,height:262,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:195,yOrigin:131,bboxRight:390,bboxBottom:261,playbackspeed:15,TPEntryIndex:[18],sequence:{pName:"spr_col_picker",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:195,yorigin:131,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_tag_hof",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:9,bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[465,332,353],sequence:{pName:"spr_tag_hof",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_hof_s",width:7,height:8,transparent:false,
smooth:false,preload:false,colCheck:!1,xOrigin:3,bboxRight:6,bboxBottom:7,playbackspeed:15,TPEntryIndex:[686,671],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:3,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_medals",width:7,height:12,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:6,bboxBottom:11,playbackspeed:15,TPEntryIndex:[634,633,635,636,642],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:5,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_medals_c",width:7,height:12,transparent:false,smooth:false,preload:false,
colCheck:!1,xOrigin:3,yOrigin:5,bboxRight:6,bboxBottom:11,playbackspeed:15,TPEntryIndex:[640,637,638,639,641],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:5,xorigin:3,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}}},{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_watermark",width:960,height:540,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:480,yOrigin:270,bboxRight:959,bboxBottom:539,playbackspeed:15,TPEntryIndex:[1],sequence:{pName:"",
playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:480,yorigin:270,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_iconRG",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:31,bboxBottom:31,playbackspeed:30,
TPEntryIndex:[141],sequence:{pName:"spr_iconRG",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_sb_ring",width:11,height:11,transparent:false,smooth:false,preload:false,
colCheck:!1,bboxRight:10,bboxBottom:10,playbackspeed:15,TPEntryIndex:[603],sequence:{pName:"",playback:1,playbackSpeed:15,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_sb_ring_c",width:11,height:11,
transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10,playbackspeed:15,TPEntryIndex:[604],sequence:{pName:"",playback:1,playbackSpeed:15,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_jacket",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:27,bboxTop:7,bboxBottom:24,playbackspeed:15,TPEntryIndex:[291],sequence:{pName:"",playback:1,playbackSpeed:15,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_button_74s",width:74,height:26,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:73,bboxBottom:25,playbackspeed:15,TPEntryIndex:[122,127,130],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_scoreboard",width:208,height:88,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:207,bboxBottom:87,playbackspeed:15,TPEntryIndex:[37],sequence:{pName:"",playback:1,playbackSpeed:15,
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_light_001",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,
TPEntryIndex:[273,272,251,215,214,249,252,250],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_002",width:32,height:36,transparent:false,
smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[254,216,220,274,253,218,217,219],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}
}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_003",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[255,260,259,221,257,258,256,275],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_mix_001",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[222,224,157,261,171,223,262,172],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_001",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[189,236,149,188,266,235,267,190],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,
length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_002",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,
TPEntryIndex:[191,162,164,165,150,192,237,163],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_003",width:32,height:36,transparent:false,
smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxBottom:35,playbackspeed:15,TPEntryIndex:[240,239,193,238,152,194,147,151],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}
}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_004",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[197,199,241,268,242,196,198,195],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_005",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[201,200,167,154,166,153,202,243],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_006",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[269,245,206,207,203,205,244,204],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,
length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_007",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,
TPEntryIndex:[209,246,169,210,208,155,170,168],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_008",width:32,height:36,transparent:false,
smooth:false,preload:false,colCheck:!1,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[247,211,156,270,212,248,271,213],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}
}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coaches_01",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[227,173,226,228,225,229,174,175,263],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:9,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coaches_02",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[178,176,158,231,232,230,177,264,276],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,
length:9,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coaches_03",width:32,height:36,transparent:false,smooth:false,preload:false,
colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[180,179,148,181,160,233,182,159,277],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:9,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,
stretch:false,disabled:false,channels:{0:{imageIndex:8}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coaches_04",width:32,height:36,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[161,187,186,185,265,234,184,183,278],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:9,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}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_app_apple",width:110,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:109,bboxBottom:31,playbackspeed:15,TPEntryIndex:[88],sequence:{pName:"",playback:1,playbackSpeed:15,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_app_google",width:110,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:109,bboxBottom:31,playbackspeed:15,TPEntryIndex:[90],sequence:{pName:"",
playback:1,playbackSpeed:15,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_tag_hof_b",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:21,yOrigin:14,bboxLeft:9,
bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[331],sequence:{pName:"spr_tag_hof_b",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:21,yorigin:14,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_app_discord",width:110,
height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:109,bboxBottom:31,playbackspeed:0,TPEntryIndex:[89],sequence:{pName:"",playback:1,playbackSpeed:0,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_app_twitter",width:110,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:109,bboxBottom:31,playbackspeed:0,TPEntryIndex:[92],sequence:{pName:"",playback:1,playbackSpeed:0,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_app_reddit",width:110,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:109,bboxBottom:31,playbackspeed:15,TPEntryIndex:[91],sequence:{pName:"",playback:1,playbackSpeed:15,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_gamepad_any",width:20,height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:12,yOrigin:7,bboxRight:19,bboxBottom:19,playbackspeed:15,TPEntryIndex:[301,298,299,300],sequence:{pName:"spr_gamepad_any",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:12,yorigin:7,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gamepad_xbox1",width:20,height:20,transparent:false,smooth:false,preload:false,
colCheck:!1,xOrigin:12,yOrigin:7,bboxRight:19,bboxBottom:19,playbackspeed:15,TPEntryIndex:[307,308,309,306],sequence:{pName:"spr_gamepad_xbox1",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:12,yorigin:7,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_aim",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[51],sequence:{pName:"spr_controls_aim",playback:1,playbackSpeed:15,playbackSpeedType:0,
length:1,xorigin:70,yorigin:29,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_controls_run_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[58],
sequence:{pName:"spr_controls_run_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_controls_run",width:140,height:59,transparent:false,smooth:false,preload:false,
colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[57],sequence:{pName:"spr_controls_run",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_cross2",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:15,yOrigin:16,bboxLeft:9,bboxRight:21,bboxTop:10,bboxBottom:22,playbackspeed:15,TPEntryIndex:[486],sequence:{pName:"spr_cross2",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,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_co_shield",width:23,height:23,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:11,yOrigin:4,bboxLeft:1,bboxRight:21,bboxTop:1,bboxBottom:21,playbackspeed:15,TPEntryIndex:[292],sequence:{pName:"spr_co_shield",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:11,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_cheerleaders3",width:20,height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:19,playbackspeed:4,TPEntryIndex:[478,477,501,352,499,479,476,500,351,498],sequence:{pName:"spr_cheerleaders3",playback:1,playbackSpeed:4,playbackSpeedType:0,
length:10,xorigin:10,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_LozAdNSS",
width:211,height:84,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30,TPEntryIndex:[40],sequence:{pName:"spr_LozAdNSS",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,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_cheerleaders1",width:20,height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:19,playbackspeed:4,TPEntryIndex:[471,469,491,348,490,470,468,493,347,492],sequence:{pName:"spr_cheerleaders1",playback:1,playbackSpeed:4,playbackSpeedType:0,length:10,xorigin:10,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_commentary_bg2",width:20,height:20,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:19,bboxBottom:19,playbackspeed:0,
TPEntryIndex:[297],sequence:{pName:"spr_commentary_bg2",playback:1,playbackSpeed:0,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:[]},nineslice:{nLeft:4,nTop:4,nRight:4,nBottom:4,nEnabled:true,nTilemode:[0,0,0,
0,0]}},{pName:"spr_bouncespot2",transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:3,bboxRight:8,bboxBottom:6,playbackspeed:15,TPEntryIndex:[668],sequence:{pName:"spr_bouncespot2",playback:1,playbackSpeed:15,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_bg_news",width:480,height:270,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:10,bboxRight:469,bboxTop:10,bboxBottom:259,playbackspeed:30,TPEntryIndex:[17],sequence:{pName:"spr_bg_news",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_iconDiscord",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[137],sequence:{pName:"spr_iconDiscord",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_bengrams",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:15,yOrigin:15,bboxLeft:3,bboxRight:28,bboxTop:4,bboxBottom:26,playbackspeed:15,TPEntryIndex:[311,288,286,357,290,324],sequence:{pName:"spr_bengrams",playback:1,playbackSpeed:15,playbackSpeedType:0,
length:6,xorigin:15,yorigin:15,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_firstdown",width:20,height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:10,yOrigin:19,bboxLeft:4,bboxRight:18,bboxTop:3,bboxBottom:19,playbackspeed:4,TPEntryIndex:[555,536,528,408,406,407],sequence:{pName:"spr_firstdown",playback:1,playbackSpeed:4,playbackSpeedType:0,length:6,
xorigin:10,yorigin:19,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_iconTwitter",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[142],sequence:{pName:"spr_iconTwitter",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_co_year",width:14,height:11,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:5,yOrigin:5,bboxRight:13,bboxBottom:10,playbackspeed:30,TPEntryIndex:[524,525,522,523],sequence:{pName:"spr_co_year",playback:1,playbackSpeed:30,playbackSpeedType:0,length:4,
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}}},{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}}}]}],sequenceEvents:[],
momentsKeystore:[]}},{pName:"spr_controls_tut_2b",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[64],sequence:{pName:"spr_controls_tut_2b",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_pause",width:12,height:12,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:6,yOrigin:6,bboxRight:11,bboxBottom:11,playbackspeed:30,TPEntryIndex:[544,543],sequence:{pName:"spr_pause",playback:1,playbackSpeed:30,playbackSpeedType:0,length:2,xorigin:6,yorigin:6,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_tag_yb",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:9,bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[467,335,354],sequence:{pName:"spr_tag_yb",playback:1,playbackSpeed:0,playbackSpeedType:0,
length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gradient",width:64,
height:64,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:63,bboxBottom:63,playbackspeed:30,TPEntryIndex:[80],sequence:{pName:"spr_gradient",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_training_target",width:24,height:18,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:12,yOrigin:9,bboxRight:23,bboxBottom:17,playbackspeed:30,TPEntryIndex:[293],sequence:{pName:"spr_training_target",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:12,yorigin:9,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_controls_aim_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:30,TPEntryIndex:[52],sequence:{pName:"spr_controls_aim_xbox",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_controls_replay_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[56],sequence:{pName:"spr_controls_replay_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,
xorigin:70,yorigin:29,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_LozAdNSM",width:211,height:84,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30,TPEntryIndex:[39],
sequence:{pName:"spr_LozAdNSM",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,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_iconReddit",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,
bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[140],sequence:{pName:"spr_iconReddit",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_firstdown_kneel",height:20,
transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:10,yOrigin:19,bboxRight:15,bboxTop:5,bboxBottom:19,playbackspeed:4,TPEntryIndex:[527,405,452,455,453,454,451],sequence:{pName:"spr_firstdown_kneel",playback:1,playbackSpeed:4,playbackSpeedType:0,length:7,xorigin:10,yorigin:19,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:"spr_iconNSM",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[138],sequence:{pName:"spr_iconNSM",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_checkbox012",transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[370,369,371],sequence:{pName:"spr_checkbox012",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_negotiate_num",width:23,height:15,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:11,yOrigin:7,bboxRight:22,bboxBottom:14,playbackspeed:30,TPEntryIndex:[319],sequence:{pName:"spr_negotiate_num",playback:1,playbackSpeed:30,
playbackSpeedType:0,length:1,xorigin:11,yorigin:7,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_controls_tut_2",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,
TPEntryIndex:[62],sequence:{pName:"spr_controls_tut_2",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_box_flex",transparent:false,smooth:false,preload:false,colCheck:!1,
bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[365],sequence:{pName:"spr_box_flex",playback:1,playbackSpeed:0,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:[]},nineslice:{nLeft:4,nTop:4,nRight:4,nBottom:4,
nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_gpa",width:21,height:7,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:10,yOrigin:3,bboxRight:20,bboxBottom:6,playbackspeed:15,TPEntryIndex:[534],sequence:{pName:"spr_gpa",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:10,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_adNSM",width:480,height:270,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[11],sequence:{pName:"spr_adNSM",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_adRG",width:480,height:270,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[13],sequence:{pName:"spr_adRG",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_LozAdRG",width:211,height:84,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30,TPEntryIndex:[41],sequence:{pName:"spr_LozAdRG",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,
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_controls_tut_3b_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[69],sequence:{pName:"spr_controls_tut_3b_xbox",
playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_controls_tut_3",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,
bboxBottom:58,playbackspeed:15,TPEntryIndex:[66],sequence:{pName:"spr_controls_tut_3",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_controls_replay",width:140,height:59,
transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[55],sequence:{pName:"spr_controls_replay",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_controls_tut_4",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[72],sequence:{pName:"spr_controls_tut_4",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_controls_tut_4b",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[74],sequence:{pName:"spr_controls_tut_4b",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_title",width:480,height:270,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[16],sequence:{pName:"spr_title",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_controls_tut_2b_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[65],sequence:{pName:"spr_controls_tut_2b_xbox",
playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_star_16",transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:7,bboxLeft:1,bboxRight:13,bboxBottom:13,
playbackspeed:15,TPEntryIndex:[460],sequence:{pName:"spr_star_16",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,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_button_32_9",width:33,height:34,transparent:false,smooth:false,
preload:false,colCheck:!1,bboxRight:32,bboxBottom:33,playbackspeed:0,TPEntryIndex:[134,144,280],sequence:{pName:"spr_button_32_9",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,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}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:6,nTop:6,nRight:6,nBottom:6,nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_controls_tut_3c_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[71],sequence:{pName:"spr_controls_tut_3c_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,
length:1,xorigin:70,yorigin:29,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_adSWITCH",width:480,height:270,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[14],sequence:{pName:"spr_adSWITCH",
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_skiptime",width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:2,bboxRight:29,
bboxTop:2,bboxBottom:28,playbackspeed:0,TPEntryIndex:[105],sequence:{pName:"spr_skiptime",playback:1,playbackSpeed:0,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_controls_tut_4b_xbox",width:140,
height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[75],sequence:{pName:"spr_controls_tut_4b_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_col_picker2",width:391,height:262,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:195,yOrigin:131,bboxRight:390,bboxBottom:261,playbackspeed:15,TPEntryIndex:[19],sequence:{pName:"spr_col_picker2",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:195,yorigin:131,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_controls_tut_3b",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[68],sequence:{pName:"spr_controls_tut_3b",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_taunt",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[450,427,449,401,448,426],sequence:{pName:"spr_taunt",playback:1,playbackSpeed:8,
playbackSpeedType:0,length:6,xorigin:7,yorigin:15,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_nrg",width:18,height:8,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:9,yOrigin:4,bboxRight:17,bboxBottom:7,playbackspeed:15,TPEntryIndex:[542],sequence:{pName:"spr_nrg",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:9,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_bg_signed2",width:480,height:270,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:128,bboxRight:295,bboxTop:172,bboxBottom:263,playbackspeed:30,TPEntryIndex:[49],sequence:{pName:"spr_bg_signed2",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_controls_tut_3_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,
bboxBottom:58,playbackspeed:15,TPEntryIndex:[67],sequence:{pName:"spr_controls_tut_3_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_controls_tut_1_xbox",width:140,
height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[61],sequence:{pName:"spr_controls_tut_1_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_gamepad_switch",width:20,height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:12,yOrigin:7,bboxRight:19,bboxBottom:19,playbackspeed:15,TPEntryIndex:[302,305,303,304],sequence:{pName:"spr_gamepad_switch",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:12,yorigin:7,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_presnap_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,
yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[54],sequence:{pName:"spr_controls_presnap_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_controls_tut_2_xbox",
width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[63],sequence:{pName:"spr_controls_tut_2_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_qb_slide",width:20,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:7,yOrigin:19,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[503,509,507,506,505,508,504],sequence:{pName:"spr_qb_slide",playback:1,playbackSpeed:6,playbackSpeedType:0,length:7,xorigin:7,yorigin:19,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:"spr_gown",width:40,height:40,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:4,yOrigin:12,bboxLeft:5,bboxRight:33,bboxTop:1,bboxBottom:36,playbackspeed:30,TPEntryIndex:[135],sequence:{pName:"spr_gown",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:4,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_tag_kr",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxLeft:9,bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[466,333],sequence:{pName:"spr_tag_kr",playback:1,playbackSpeed:0,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_iconNSS",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:31,bboxBottom:31,playbackspeed:30,
TPEntryIndex:[139],sequence:{pName:"spr_iconNSS",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_commentary_bg",transparent:false,smooth:false,preload:false,colCheck:!1,
bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[373,374],sequence:{pName:"spr_commentary_bg",playback:1,playbackSpeed:0,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:[]},nineslice:{nLeft:3,nTop:3,nRight:3,nBottom:3,nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_watch_ad",width:32,height:32,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:15,yOrigin:15,bboxLeft:3,bboxRight:27,bboxTop:3,bboxBottom:26,playbackspeed:15,TPEntryIndex:[285],sequence:{pName:"spr_watch_ad",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:15,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_adNSB",width:480,height:270,transparent:false,smooth:false,preload:false,colCheck:!1,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[10],sequence:{pName:"spr_adNSB",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_controls_tut_3c",width:140,height:59,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[70],sequence:{pName:"spr_controls_tut_3c",
playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_LozAdNSB",width:211,height:84,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:105,yOrigin:42,bboxRight:210,
bboxBottom:83,playbackspeed:30,TPEntryIndex:[38],sequence:{pName:"spr_LozAdNSB",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,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_controls_tut_4_xbox",width:140,height:59,
transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[73],sequence:{pName:"spr_controls_tut_4_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,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_col_cursor",transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:8,yOrigin:8,bboxRight:15,bboxBottom:15,playbackspeed:15,TPEntryIndex:[372],sequence:{pName:"spr_col_cursor",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,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}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cheerleaders2",width:20,height:20,transparent:false,smooth:false,preload:false,colCheck:!1,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:19,playbackspeed:4,TPEntryIndex:[474,473,497,350,495,475,472,496,349,494],sequence:{pName:"spr_cheerleaders2",playback:1,playbackSpeed:4,playbackSpeedType:0,length:10,xorigin:10,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}}}]}],sequenceEvents:[],momentsKeystore:[]}}],EmbeddedEntries:{"fallbacktexture":0},Backgrounds:[],Paths:[{pName:"route_flat",kind:0,closed:false,precision:1,points:[{
x:0,y:0,speed:100},{x:32,y:-64,speed:100},{x:64,y:-64,speed:100}]},{pName:"route_slant",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:96,y:0,speed:100},{x:160,y:96,speed:100}]},{pName:"route_slant2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:128,y:0,speed:100},{x:192,y:96,speed:100}]},{pName:"route_curl",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:224,y:0,speed:100},{x:160,y:32,speed:100}]},{pName:"route_comeback",kind:0,closed:false,precision:1,
points:[{x:0,y:0,speed:100},{x:256,y:0,speed:100},{x:192,y:-32,speed:100}]},{pName:"route_out1",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:96,y:0,speed:100},{x:96,y:-32,speed:100}]},{pName:"route_out2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:160,y:0,speed:100},{x:160,y:-32,speed:100}]},{pName:"route_out3",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:224,y:0,speed:100},{x:224,y:-32,speed:100}]},{pName:"route_dig1",kind:0,closed:false,precision:1,
points:[{x:0,y:0,speed:100},{x:128,y:0,speed:100},{x:128,y:32,speed:100}]},{pName:"route_dig2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:192,y:0,speed:100},{x:192,y:32,speed:100}]},{pName:"route_dig3",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:208,y:0,speed:100},{x:208,y:32,speed:100}]},{pName:"route_post",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:192,y:0,speed:100},{x:256,y:32,speed:100}]},{pName:"route_corner",kind:0,closed:false,precision:1,
points:[{x:0,y:0,speed:100},{x:192,y:0,speed:100},{x:256,y:-32,speed:100}]},{pName:"route_streak",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:224,y:0,speed:100},{x:256,y:0,speed:100}]},{pName:"route_fb_1",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:32,y:-32,speed:100},{x:128,y:-32,speed:100}]},{pName:"route_fb_2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:128,y:0,speed:100}]},{pName:"route_fb_3",kind:0,closed:false,precision:1,points:[{x:0,
y:0,speed:100},{x:32,y:32,speed:100},{x:128,y:32,speed:100}]},{pName:"route_fb_4",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:64,y:-32,speed:100},{x:96,y:-32,speed:100}]},{pName:"route_fb_5_notused",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:128,y:0,speed:100},{x:128,y:-32,speed:100}]},{pName:"route_fb_flat",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:32,y:-48,speed:100},{x:64,y:-48,speed:100}]},{pName:"route_fb_flat2",kind:0,closed:false,
precision:1,points:[{x:0,y:0,speed:100},{x:64,y:-48,speed:100},{x:96,y:-48,speed:100}]},{pName:"route_te_block",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:32,y:0,speed:100}]},{pName:"route_qb",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:-64,y:0,speed:100}]},{pName:"route_hitch",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:108,y:0,speed:100},{x:88,y:20,speed:100}]}],Shaders:[{name:"sh_ColorReplaceBlend",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\nvarying vec2 v_vTexcoord;\n\nuniform vec3 colorHelmet;\nuniform vec3 colorLogo;\nuniform vec3 colorShirt;\nuniform vec3 colorSleeve;\nuniform vec3 colorPants;\nuniform vec3 colorPants_b;\nuniform vec3 colorStripe;\nuniform vec3 colorSocks;\nuniform vec3 colorSocks_b;\nuniform vec3 colorSkin;\nuniform vec3 colorCleats;\n\nuniform vec3 replaceHelmet;\nuniform vec3 replaceLogo;\nuniform vec3 replaceShirt;\nuniform vec3 replaceSleeve;\nuniform vec3 replacePants;\nuniform vec3 replacePants_b;\nuniform vec3 replaceStripe;\nuniform vec3 replaceSocks;\nuniform vec3 replaceSocks_b;\nuniform vec3 replaceSkin;\nuniform vec3 replaceCleats;\n\nvoid main()\n{\n vec4 pixel = texture2D( gm_BaseTexture, v_vTexcoord );\n \n if (pixel.a == 1.0)\n { \n vec3 eps = vec3(0.010, 0.010, 0.010);\n // vec3 eps = vec3(0.009, 0.009, 0.009);\n \n if( all( greaterThanEqual(pixel, vec4(colorShirt - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorShirt + eps, 1.0)) ) )\n pixel = vec4(replaceShirt, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorSkin - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorSkin + eps, 1.0)) ) )\n pixel = vec4(replaceSkin, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorHelmet - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorHelmet + eps, 1.0)) ) )\n pixel = vec4(replaceHelmet, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorPants - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorPants + eps, 1.0)) ) )\n pixel = vec4(replacePants, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorPants_b - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorPants_b + eps, 1.0)) ) )\n pixel = vec4(replacePants_b, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorStripe - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorStripe + eps, 1.0)) ) )\n pixel = vec4(replaceStripe, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorSocks - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorSocks + eps, 1.0)) ) )\n pixel = vec4(replaceSocks, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorSocks_b - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorSocks_b + eps, 1.0)) ) )\n pixel = vec4(replaceSocks_b, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorCleats - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorCleats + eps, 1.0)) ) )\n pixel = vec4(replaceCleats, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorSleeve - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorSleeve + eps, 1.0)) ) )\n pixel = vec4(replaceSleeve, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorLogo - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorLogo + eps, 1.0)) ) )\n pixel = vec4(replaceLogo, 1.0);\n \n }\n \n gl_FragColor = pixel;\n}\n\n\n/* sh_ColorReplaceBlend\n//\n// Replaces one color with another. Can replace \n// similar colors while preserving shading.\n//\n// colorIn color to replace (vec4)\n// colorOut replacement color (vec4)\n//\n// GMLscripts.com\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nuniform vec4 colorIn;\nuniform vec4 colorOut;\n\nvoid main()\n{\n vec4 colorPixel = texture2D( gm_BaseTexture, v_vTexcoord );\n \n if (colorPixel.r == 255.0)\n {\n gl_FragColor = v_vColour * colorOut;\n }\n else\n {\n gl_FragColor = v_vColour * colorPixel;\n }\n}\n\n/*\n// Simple passthrough fragment shader\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\nuniform float pixelW;\nuniform float pixelH;\n\nvoid main()\n{\n vec2 offsetx;\n offsetx.x = pixelW;\n vec2 offsety;\n offsety.y = pixelH;\n \n float alpha = texture2D( gm_BaseTexture, v_vTexcoord ).a;\n \n alpha = max(alpha, texture2D( gm_BaseTexture, v_vTexcoord + offsetx ).a);\n alpha = max(alpha, texture2D( gm_BaseTexture, v_vTexcoord - offsetx ).a);\n alpha = max(alpha, texture2D( gm_BaseTexture, v_vTexcoord + offsety ).a);\n alpha = max(alpha, texture2D( gm_BaseTexture, v_vTexcoord - offsetx ).a);\n \n gl_FragColor = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord );\n gl_FragColor.a = alpha;\n}\n*/\n",
Attributes:["in_Position","in_Colour","in_TextureCoord"]}],Fonts:[{pName:"fnt_restart_big",size:11,bold:false,italic:false,first:32,last:255,charset:0,antialias:0,fontname:"Press Start 2P",ascenderOffset:0,ascender:0,TPageEntry:20,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:15,h:15,shift:15,offset:0},{i:33,c:"!",x:163,y:104,w:6,h:15,shift:15,offset:4},{i:34,c:"\"",x:171,y:104,w:9,h:15,shift:15,offset:2},{i:35,c:"#",x:182,y:104,w:13,h:15,shift:15,offset:0},{i:36,c:"$",x:197,y:104,w:13,h:15,shift:15,
offset:0},{i:37,c:"%",x:212,y:104,w:13,h:15,shift:15,offset:0},{i:38,c:"&",x:227,y:104,w:13,h:15,shift:15,offset:0},{i:39,c:"'",x:242,y:104,w:4,h:15,shift:15,offset:4},{i:40,c:"(",x:2,y:121,w:8,h:15,shift:15,offset:4},{i:41,c:")",x:12,y:121,w:8,h:15,shift:15,offset:2},{i:42,c:"*",x:37,y:121,w:13,h:15,shift:15,offset:0},{i:43,c:"+",x:167,y:121,w:11,h:15,shift:15,offset:2},{i:44,c:",",x:52,y:121,w:6,h:15,shift:15,offset:2},{i:45,c:"-",x:60,y:121,w:11,h:15,shift:15,offset:2},{i:46,c:".",x:73,y:121,
w:4,h:15,shift:15,offset:4},{i:47,c:"/",x:79,y:121,w:13,h:15,shift:15,offset:0},{i:48,c:"0",x:94,y:121,w:13,h:15,shift:15,offset:0},{i:49,c:"1",x:109,y:121,w:11,h:15,shift:15,offset:2},{i:50,c:"2",x:122,y:121,w:13,h:15,shift:15,offset:0},{i:51,c:"3",x:137,y:121,w:13,h:15,shift:15,offset:0},{i:52,c:"4",x:152,y:121,w:13,h:15,shift:15,offset:0},{i:53,c:"5",x:148,y:104,w:13,h:15,shift:15,offset:0},{i:54,c:"6",x:22,y:121,w:13,h:15,shift:15,offset:0},{i:55,c:"7",x:133,y:104,w:13,h:15,shift:15,offset:0}
,{i:56,c:"8",x:187,y:87,w:13,h:15,shift:15,offset:0},{i:57,c:"9",x:76,y:87,w:13,h:15,shift:15,offset:0},{i:58,c:":",x:91,y:87,w:4,h:15,shift:15,offset:4},{i:59,c:";",x:97,y:87,w:6,h:15,shift:15,offset:2},{i:60,c:"<",x:105,y:87,w:9,h:15,shift:15,offset:2},{i:61,c:"=",x:116,y:87,w:13,h:15,shift:15,offset:0},{i:62,c:">",x:131,y:87,w:9,h:15,shift:15,offset:2},{i:63,c:"?",x:142,y:87,w:13,h:15,shift:15,offset:0},{i:64,c:"@",x:157,y:87,w:13,h:15,shift:15,offset:0},{i:65,c:"A",x:172,y:87,w:13,h:15,shift:15,
offset:0},{i:66,c:"B",x:202,y:87,w:13,h:15,shift:15,offset:0},{i:67,c:"C",x:103,y:104,w:13,h:15,shift:15,offset:0},{i:68,c:"D",x:217,y:87,w:13,h:15,shift:15,offset:0},{i:69,c:"E",x:232,y:87,w:13,h:15,shift:15,offset:0},{i:70,c:"F",x:2,y:104,w:13,h:15,shift:15,offset:0},{i:71,c:"G",x:17,y:104,w:13,h:15,shift:15,offset:0},{i:72,c:"H",x:32,y:104,w:13,h:15,shift:15,offset:0},{i:73,c:"I",x:47,y:104,w:11,h:15,shift:15,offset:2},{i:74,c:"J",x:60,y:104,w:13,h:15,shift:15,offset:0},{i:75,c:"K",x:75,y:104,
w:13,h:15,shift:15,offset:0},{i:76,c:"L",x:90,y:104,w:11,h:15,shift:15,offset:2},{i:77,c:"M",x:118,y:104,w:13,h:15,shift:15,offset:0},{i:78,c:"N",x:180,y:121,w:13,h:15,shift:15,offset:0},{i:79,c:"O",x:195,y:121,w:13,h:15,shift:15,offset:0},{i:80,c:"P",x:210,y:121,w:13,h:15,shift:15,offset:0},{i:81,c:"Q",x:58,y:155,w:13,h:15,shift:15,offset:0},{i:82,c:"R",x:73,y:155,w:13,h:15,shift:15,offset:0},{i:83,c:"S",x:88,y:155,w:13,h:15,shift:15,offset:0},{i:84,c:"T",x:103,y:155,w:11,h:15,shift:15,offset:2}
,{i:85,c:"U",x:116,y:155,w:13,h:15,shift:15,offset:0},{i:86,c:"V",x:131,y:155,w:12,h:15,shift:15,offset:0},{i:87,c:"W",x:145,y:155,w:13,h:15,shift:15,offset:0},{i:88,c:"X",x:160,y:155,w:13,h:15,shift:15,offset:0},{i:89,c:"Y",x:175,y:155,w:11,h:15,shift:15,offset:2},{i:90,c:"Z",x:188,y:155,w:13,h:15,shift:15,offset:0},{i:91,c:"[",x:203,y:155,w:8,h:15,shift:15,offset:4},{i:92,c:"\\",x:213,y:155,w:13,h:15,shift:15,offset:0},{i:93,c:"]",x:228,y:155,w:7,h:15,shift:15,offset:2},{i:94,c:"^",x:237,y:155,
w:9,h:15,shift:15,offset:2},{i:95,c:"_",x:2,y:172,w:13,h:15,shift:15,offset:0},{i:96,c:"`",x:17,y:172,w:4,h:15,shift:15,offset:5},{i:97,c:"a",x:23,y:172,w:13,h:15,shift:15,offset:0},{i:98,c:"b",x:38,y:172,w:13,h:15,shift:15,offset:0},{i:99,c:"c",x:53,y:172,w:13,h:15,shift:15,offset:0},{i:100,c:"d",x:68,y:172,w:13,h:15,shift:15,offset:0},{i:101,c:"e",x:83,y:172,w:13,h:15,shift:15,offset:0},{i:102,c:"f",x:45,y:155,w:11,h:15,shift:15,offset:2},{i:103,c:"g",x:30,y:155,w:13,h:15,shift:15,offset:0},{i:104,
c:"h",x:15,y:155,w:13,h:15,shift:15,offset:0},{i:105,c:"i",x:103,y:138,w:11,h:15,shift:15,offset:2},{i:106,c:"j",x:225,y:121,w:9,h:15,shift:15,offset:2},{i:107,c:"k",x:236,y:121,w:13,h:15,shift:15,offset:0},{i:108,c:"l",x:2,y:138,w:11,h:15,shift:15,offset:2},{i:109,c:"m",x:15,y:138,w:13,h:15,shift:15,offset:0},{i:110,c:"n",x:30,y:138,w:13,h:15,shift:15,offset:0},{i:111,c:"o",x:45,y:138,w:13,h:15,shift:15,offset:0},{i:112,c:"p",x:60,y:138,w:13,h:15,shift:15,offset:0},{i:113,c:"q",x:75,y:138,w:13,
h:15,shift:15,offset:0},{i:114,c:"r",x:90,y:138,w:11,h:15,shift:15,offset:2},{i:115,c:"s",x:116,y:138,w:13,h:15,shift:15,offset:0},{i:116,c:"t",x:2,y:155,w:11,h:15,shift:15,offset:2},{i:117,c:"u",x:131,y:138,w:13,h:15,shift:15,offset:0},{i:118,c:"v",x:146,y:138,w:11,h:15,shift:15,offset:2},{i:119,c:"w",x:159,y:138,w:13,h:15,shift:15,offset:0},{i:120,c:"x",x:174,y:138,w:13,h:15,shift:15,offset:0},{i:121,c:"y",x:189,y:138,w:13,h:15,shift:15,offset:0},{i:122,c:"z",x:204,y:138,w:13,h:15,shift:15,offset:0}
,{i:123,c:"{",x:219,y:138,w:8,h:15,shift:15,offset:4},{i:124,c:"|",x:229,y:138,w:4,h:15,shift:15,offset:5},{i:125,c:"}",x:235,y:138,w:8,h:15,shift:15,offset:2},{i:126,c:"~",x:61,y:87,w:13,h:15,shift:15,offset:0},{i:127,x:50,y:87,w:9,h:15,shift:15,offset:2},{i:160,c:" ",x:48,y:87,w:0,h:15,shift:15,offset:0},{i:161,c:"¡",x:103,y:36,w:6,h:15,shift:15,offset:4},{i:162,c:"¢",x:107,y:19,w:13,h:15,shift:15,offset:0},{i:163,c:"£",x:122,y:19,w:13,h:15,shift:15,offset:0},{i:164,c:"¤",x:137,y:19,w:11,h:15,
shift:15,offset:2},{i:165,c:"¥",x:150,y:19,w:11,h:15,shift:15,offset:2},{i:166,c:"¦",x:163,y:19,w:4,h:15,shift:15,offset:5},{i:167,c:"§",x:169,y:19,w:11,h:15,shift:15,offset:2},{i:168,c:"¨",x:182,y:19,w:9,h:15,shift:15,offset:2},{i:169,c:"©",x:193,y:19,w:15,h:15,shift:15,offset:0},{i:170,c:"ª",x:210,y:19,w:9,h:15,shift:15,offset:2},{i:171,c:"«",x:227,y:19,w:13,h:15,shift:15,offset:0},{i:172,c:"¬",x:90,y:36,w:11,h:15,shift:15,offset:2},{i:173,x:242,y:19,w:11,h:15,shift:15,offset:2},{i:174,c:"®",x:2,
y:36,w:15,h:15,shift:15,offset:0},{i:175,c:"¯",x:19,y:36,w:9,h:15,shift:15,offset:2},{i:176,c:"°",x:30,y:36,w:6,h:15,shift:15,offset:4},{i:177,c:"±",x:38,y:36,w:11,h:15,shift:15,offset:2},{i:178,c:"²",x:51,y:36,w:7,h:15,shift:15,offset:4},{i:179,c:"³",x:60,y:36,w:7,h:15,shift:15,offset:4},{i:180,c:"´",x:69,y:36,w:4,h:15,shift:15,offset:5},{i:181,c:"µ",x:75,y:36,w:13,h:15,shift:15,offset:0},{i:182,c:"¶",x:94,y:19,w:11,h:15,shift:15,offset:2},{i:183,c:"·",x:221,y:19,w:4,h:15,shift:15,offset:4},{i:184,
c:"¸",x:86,y:19,w:6,h:15,shift:15,offset:4},{i:185,c:"¹",x:149,y:2,w:7,h:15,shift:15,offset:4},{i:186,c:"º",x:19,y:2,w:9,h:15,shift:15,offset:2},{i:187,c:"»",x:30,y:2,w:13,h:15,shift:15,offset:0},{i:188,c:"¼",x:45,y:2,w:13,h:15,shift:15,offset:0},{i:189,c:"½",x:60,y:2,w:13,h:15,shift:15,offset:0},{i:190,c:"¾",x:75,y:2,w:13,h:15,shift:15,offset:0},{i:191,c:"¿",x:90,y:2,w:13,h:15,shift:15,offset:0},{i:192,c:"À",x:105,y:2,w:12,h:15,shift:15,offset:0},{i:193,c:"Á",x:119,y:2,w:13,h:15,shift:15,offset:0}
,{i:194,c:"Â",x:134,y:2,w:13,h:15,shift:15,offset:0},{i:195,c:"Ã",x:158,y:2,w:13,h:15,shift:15,offset:0},{i:196,c:"Ä",x:58,y:19,w:13,h:15,shift:15,offset:0},{i:197,c:"Å",x:173,y:2,w:13,h:15,shift:15,offset:0},{i:198,c:"Æ",x:188,y:2,w:13,h:15,shift:15,offset:0},{i:199,c:"Ç",x:203,y:2,w:13,h:15,shift:15,offset:0},{i:200,c:"È",x:218,y:2,w:13,h:15,shift:15,offset:0},{i:201,c:"É",x:233,y:2,w:13,h:15,shift:15,offset:0},{i:202,c:"Ê",x:2,y:19,w:13,h:15,shift:15,offset:0},{i:203,c:"Ë",x:17,y:19,w:13,h:15,
shift:15,offset:0},{i:204,c:"Ì",x:32,y:19,w:11,h:15,shift:15,offset:2},{i:205,c:"Í",x:45,y:19,w:11,h:15,shift:15,offset:2},{i:206,c:"Î",x:73,y:19,w:11,h:15,shift:15,offset:2},{i:207,c:"Ï",x:111,y:36,w:11,h:15,shift:15,offset:2},{i:208,c:"Ð",x:195,y:53,w:13,h:15,shift:15,offset:0},{i:209,c:"Ñ",x:124,y:36,w:13,h:15,shift:15,offset:0},{i:210,c:"Ò",x:240,y:53,w:13,h:15,shift:15,offset:0},{i:211,c:"Ó",x:2,y:70,w:13,h:15,shift:15,offset:0},{i:212,c:"Ô",x:17,y:70,w:13,h:15,shift:15,offset:0},{i:213,c:"Õ",
x:32,y:70,w:13,h:15,shift:15,offset:0},{i:214,c:"Ö",x:47,y:70,w:13,h:15,shift:15,offset:0},{i:215,c:"×",x:62,y:70,w:9,h:15,shift:15,offset:2},{i:216,c:"Ø",x:73,y:70,w:13,h:15,shift:15,offset:0},{i:217,c:"Ù",x:88,y:70,w:13,h:15,shift:15,offset:0},{i:218,c:"Ú",x:103,y:70,w:13,h:15,shift:15,offset:0},{i:219,c:"Û",x:133,y:70,w:13,h:15,shift:15,offset:0},{i:220,c:"Ü",x:33,y:87,w:13,h:15,shift:15,offset:0},{i:221,c:"Ý",x:148,y:70,w:11,h:15,shift:15,offset:2},{i:222,c:"Þ",x:161,y:70,w:13,h:15,shift:15,
offset:0},{i:223,c:"ß",x:176,y:70,w:11,h:15,shift:15,offset:2},{i:224,c:"à",x:189,y:70,w:13,h:15,shift:15,offset:0},{i:225,c:"á",x:204,y:70,w:13,h:15,shift:15,offset:0},{i:226,c:"â",x:219,y:70,w:13,h:15,shift:15,offset:0},{i:227,c:"ã",x:234,y:70,w:13,h:15,shift:15,offset:0},{i:228,c:"ä",x:2,y:87,w:13,h:15,shift:15,offset:0},{i:229,c:"å",x:17,y:87,w:14,h:15,shift:15,offset:0},{i:230,c:"æ",x:225,y:53,w:13,h:15,shift:15,offset:0},{i:231,c:"ç",x:118,y:70,w:13,h:15,shift:15,offset:0},{i:232,c:"è",x:210,
y:53,w:13,h:15,shift:15,offset:0},{i:233,c:"é",x:17,y:53,w:13,h:15,shift:15,offset:0},{i:234,c:"ê",x:139,y:36,w:13,h:15,shift:15,offset:0},{i:235,c:"ë",x:154,y:36,w:13,h:15,shift:15,offset:0},{i:236,c:"ì",x:169,y:36,w:11,h:15,shift:15,offset:2},{i:237,c:"í",x:182,y:36,w:11,h:15,shift:15,offset:2},{i:238,c:"î",x:195,y:36,w:11,h:15,shift:15,offset:2},{i:239,c:"ï",x:208,y:36,w:11,h:15,shift:15,offset:2},{i:240,c:"ð",x:221,y:36,w:13,h:15,shift:15,offset:0},{i:241,c:"ñ",x:236,y:36,w:13,h:15,shift:15,
offset:0},{i:242,c:"ò",x:2,y:53,w:13,h:15,shift:15,offset:0},{i:243,c:"ó",x:32,y:53,w:13,h:15,shift:15,offset:0},{i:244,c:"ô",x:180,y:53,w:13,h:15,shift:15,offset:0},{i:245,c:"õ",x:47,y:53,w:13,h:15,shift:15,offset:0},{i:246,c:"ö",x:62,y:53,w:13,h:15,shift:15,offset:0},{i:247,c:"÷",x:77,y:53,w:11,h:15,shift:15,offset:2},{i:248,c:"ø",x:90,y:53,w:13,h:15,shift:15,offset:0},{i:249,c:"ù",x:105,y:53,w:13,h:15,shift:15,offset:0},{i:250,c:"ú",x:120,y:53,w:13,h:15,shift:15,offset:0},{i:251,c:"û",x:135,y:53,
w:13,h:15,shift:15,offset:0},{i:252,c:"ü",x:150,y:53,w:13,h:15,shift:15,offset:0},{i:253,c:"ý",x:165,y:53,w:13,h:15,shift:15,offset:0},{i:254,c:"þ",x:98,y:172,w:13,h:15,shift:15,offset:0},{i:255,c:"ÿ",x:113,y:172,w:13,h:15,shift:15,offset:0},],},{pName:"fnt_tecmo_small",size:9,bold:true,italic:false,first:32,last:8595,charset:0,antialias:0,fontname:"8-bit Operator+ 8",ascenderOffset:0,ascender:0,TPageEntry:33,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:4,h:14,shift:4,offset:0},{i:33,c:"!",x:210,
y:50,w:2,h:14,shift:4,offset:1},{i:34,c:"\"",x:214,y:50,w:7,h:14,shift:9,offset:1},{i:35,c:"#",x:223,y:50,w:8,h:14,shift:10,offset:1},{i:36,c:"$",x:233,y:50,w:6,h:14,shift:8,offset:1},{i:37,c:"%",x:241,y:50,w:6,h:14,shift:8,offset:1},{i:38,c:"&",x:2,y:66,w:6,h:14,shift:8,offset:1},{i:39,c:"'",x:10,y:66,w:3,h:14,shift:5,offset:1},{i:40,c:"(",x:15,y:66,w:4,h:14,shift:6,offset:1},{i:41,c:")",x:21,y:66,w:4,h:14,shift:6,offset:1},{i:42,c:"*",x:35,y:66,w:8,h:14,shift:10,offset:1},{i:43,c:"+",x:105,y:66,
w:6,h:14,shift:8,offset:1},{i:44,c:",",x:45,y:66,w:3,h:14,shift:5,offset:1},{i:45,c:"-",x:50,y:66,w:4,h:14,shift:6,offset:1},{i:46,c:".",x:56,y:66,w:2,h:14,shift:4,offset:1},{i:47,c:"/",x:60,y:66,w:5,h:14,shift:7,offset:1},{i:48,c:"0",x:67,y:66,w:6,h:14,shift:8,offset:1},{i:49,c:"1",x:75,y:66,w:4,h:14,shift:6,offset:1},{i:50,c:"2",x:81,y:66,w:6,h:14,shift:8,offset:1},{i:51,c:"3",x:89,y:66,w:6,h:14,shift:8,offset:1},{i:52,c:"4",x:97,y:66,w:6,h:14,shift:8,offset:1},{i:53,c:"5",x:202,y:50,w:6,h:14,
shift:8,offset:1},{i:54,c:"6",x:194,y:50,w:6,h:14,shift:8,offset:1},{i:55,c:"7",x:186,y:50,w:6,h:14,shift:8,offset:1},{i:56,c:"8",x:178,y:50,w:6,h:14,shift:8,offset:1},{i:57,c:"9",x:35,y:50,w:6,h:14,shift:8,offset:1},{i:58,c:":",x:43,y:50,w:2,h:14,shift:4,offset:1},{i:59,c:";",x:47,y:50,w:3,h:14,shift:5,offset:1},{i:60,c:"<",x:52,y:50,w:5,h:14,shift:7,offset:1},{i:61,c:"=",x:59,y:50,w:6,h:14,shift:8,offset:1},{i:62,c:">",x:67,y:50,w:5,h:14,shift:7,offset:1},{i:63,c:"?",x:74,y:50,w:6,h:14,shift:8,
offset:1},{i:64,c:"@",x:82,y:50,w:8,h:14,shift:10,offset:1},{i:65,c:"A",x:92,y:50,w:6,h:14,shift:8,offset:1},{i:66,c:"B",x:100,y:50,w:6,h:14,shift:8,offset:1},{i:67,c:"C",x:108,y:50,w:6,h:14,shift:8,offset:1},{i:68,c:"D",x:116,y:50,w:6,h:14,shift:8,offset:1},{i:69,c:"E",x:124,y:50,w:6,h:14,shift:8,offset:1},{i:70,c:"F",x:132,y:50,w:6,h:14,shift:8,offset:1},{i:71,c:"G",x:140,y:50,w:6,h:14,shift:8,offset:1},{i:72,c:"H",x:148,y:50,w:6,h:14,shift:8,offset:1},{i:73,c:"I",x:156,y:50,w:4,h:14,shift:6,offset:1}
,{i:74,c:"J",x:162,y:50,w:6,h:14,shift:8,offset:1},{i:75,c:"K",x:170,y:50,w:6,h:14,shift:8,offset:1},{i:76,c:"L",x:27,y:66,w:6,h:14,shift:8,offset:1},{i:77,c:"M",x:117,y:66,w:7,h:14,shift:9,offset:1},{i:78,c:"N",x:139,y:82,w:6,h:14,shift:8,offset:1},{i:79,c:"O",x:126,y:66,w:6,h:14,shift:8,offset:1},{i:80,c:"P",x:66,y:82,w:6,h:14,shift:8,offset:1},{i:81,c:"Q",x:74,y:82,w:6,h:14,shift:8,offset:1},{i:82,c:"R",x:82,y:82,w:6,h:14,shift:8,offset:1},{i:83,c:"S",x:90,y:82,w:6,h:14,shift:8,offset:1},{i:84,
c:"T",x:98,y:82,w:6,h:14,shift:8,offset:1},{i:85,c:"U",x:106,y:82,w:6,h:14,shift:8,offset:1},{i:86,c:"V",x:114,y:82,w:6,h:14,shift:8,offset:1},{i:87,c:"W",x:122,y:82,w:7,h:14,shift:9,offset:1},{i:88,c:"X",x:131,y:82,w:6,h:14,shift:8,offset:1},{i:89,c:"Y",x:147,y:82,w:6,h:14,shift:8,offset:1},{i:90,c:"Z",x:217,y:82,w:6,h:14,shift:8,offset:1},{i:91,c:"[",x:155,y:82,w:4,h:14,shift:6,offset:1},{i:92,c:"\\",x:161,y:82,w:5,h:14,shift:7,offset:1},{i:93,c:"]",x:168,y:82,w:4,h:14,shift:6,offset:1},{i:94,
c:"^",x:174,y:82,w:6,h:14,shift:8,offset:1},{i:95,c:"_",x:182,y:82,w:4,h:14,shift:4,offset:0},{i:96,c:"`",x:188,y:82,w:3,h:14,shift:5,offset:1},{i:97,c:"a",x:193,y:82,w:6,h:14,shift:8,offset:1},{i:98,c:"b",x:201,y:82,w:6,h:14,shift:8,offset:1},{i:99,c:"c",x:209,y:82,w:6,h:14,shift:8,offset:1},{i:100,c:"d",x:58,y:82,w:6,h:14,shift:8,offset:1},{i:101,c:"e",x:50,y:82,w:6,h:14,shift:8,offset:1},{i:102,c:"f",x:43,y:82,w:5,h:14,shift:7,offset:1},{i:103,c:"g",x:35,y:82,w:6,h:14,shift:8,offset:1},{i:104,
c:"h",x:134,y:66,w:6,h:14,shift:8,offset:1},{i:105,c:"i",x:142,y:66,w:4,h:14,shift:6,offset:1},{i:106,c:"j",x:148,y:66,w:6,h:14,shift:8,offset:1},{i:107,c:"k",x:156,y:66,w:6,h:14,shift:8,offset:1},{i:108,c:"l",x:164,y:66,w:4,h:14,shift:6,offset:1},{i:109,c:"m",x:170,y:66,w:8,h:14,shift:10,offset:1},{i:110,c:"n",x:180,y:66,w:6,h:14,shift:8,offset:1},{i:111,c:"o",x:188,y:66,w:6,h:14,shift:8,offset:1},{i:112,c:"p",x:196,y:66,w:6,h:14,shift:8,offset:1},{i:113,c:"q",x:204,y:66,w:6,h:14,shift:8,offset:1}
,{i:114,c:"r",x:212,y:66,w:6,h:14,shift:8,offset:1},{i:115,c:"s",x:220,y:66,w:6,h:14,shift:8,offset:1},{i:116,c:"t",x:228,y:66,w:5,h:14,shift:7,offset:1},{i:117,c:"u",x:235,y:66,w:6,h:14,shift:8,offset:1},{i:118,c:"v",x:243,y:66,w:6,h:14,shift:8,offset:1},{i:119,c:"w",x:2,y:82,w:7,h:14,shift:9,offset:1},{i:120,c:"x",x:11,y:82,w:6,h:14,shift:8,offset:1},{i:121,c:"y",x:19,y:82,w:6,h:14,shift:8,offset:1},{i:122,c:"z",x:27,y:82,w:6,h:14,shift:8,offset:1},{i:123,c:"{",x:27,y:50,w:6,h:14,shift:8,offset:1}
,{i:124,c:"|",x:113,y:66,w:2,h:14,shift:4,offset:1},{i:125,c:"}",x:19,y:50,w:6,h:14,shift:8,offset:1},{i:126,c:"~",x:124,y:18,w:7,h:14,shift:9,offset:1},{i:160,c:" ",x:207,y:2,w:1,h:14,shift:4,offset:0},{i:161,c:"¡",x:210,y:2,w:2,h:14,shift:4,offset:1},{i:162,c:"¢",x:214,y:2,w:6,h:14,shift:8,offset:1},{i:163,c:"£",x:222,y:2,w:7,h:14,shift:9,offset:1},{i:165,c:"¥",x:231,y:2,w:6,h:14,shift:8,offset:1},{i:166,c:"¦",x:239,y:2,w:2,h:14,shift:4,offset:1},{i:168,c:"¨",x:243,y:2,w:6,h:14,shift:8,offset:1}
,{i:169,c:"©",x:2,y:18,w:8,h:14,shift:10,offset:1},{i:171,c:"«",x:12,y:18,w:8,h:14,shift:10,offset:1},{i:172,c:"¬",x:30,y:18,w:6,h:14,shift:8,offset:1},{i:174,c:"®",x:114,y:18,w:8,h:14,shift:10,offset:1},{i:176,c:"°",x:38,y:18,w:4,h:14,shift:6,offset:1},{i:177,c:"±",x:44,y:18,w:6,h:14,shift:8,offset:1},{i:178,c:"²",x:52,y:18,w:13,h:14,shift:15,offset:1},{i:179,c:"³",x:67,y:18,w:12,h:14,shift:14,offset:1},{i:180,c:"´",x:81,y:18,w:3,h:14,shift:5,offset:1},{i:181,c:"µ",x:86,y:18,w:6,h:14,shift:8,offset:1}
,{i:182,c:"¶",x:94,y:18,w:7,h:14,shift:9,offset:1},{i:183,c:"·",x:103,y:18,w:2,h:14,shift:4,offset:1},{i:184,c:"¸",x:107,y:18,w:5,h:14,shift:7,offset:1},{i:185,c:"¹",x:193,y:2,w:12,h:14,shift:14,offset:1},{i:186,c:"º",x:179,y:2,w:12,h:14,shift:14,offset:1},{i:187,c:"»",x:169,y:2,w:8,h:14,shift:10,offset:1},{i:191,c:"¿",x:161,y:2,w:6,h:14,shift:8,offset:1},{i:192,c:"À",x:8,y:2,w:6,h:14,shift:8,offset:1},{i:193,c:"Á",x:16,y:2,w:6,h:14,shift:8,offset:1},{i:194,c:"Â",x:24,y:2,w:6,h:14,shift:8,offset:1}
,{i:195,c:"Ã",x:32,y:2,w:7,h:14,shift:8,offset:1},{i:196,c:"Ä",x:41,y:2,w:6,h:14,shift:8,offset:1},{i:197,c:"Å",x:49,y:2,w:6,h:14,shift:8,offset:1},{i:198,c:"Æ",x:57,y:2,w:8,h:14,shift:10,offset:1},{i:199,c:"Ç",x:67,y:2,w:6,h:14,shift:8,offset:1},{i:200,c:"È",x:75,y:2,w:6,h:14,shift:8,offset:1},{i:201,c:"É",x:83,y:2,w:6,h:14,shift:8,offset:1},{i:202,c:"Ê",x:91,y:2,w:6,h:14,shift:8,offset:1},{i:203,c:"Ë",x:99,y:2,w:6,h:14,shift:8,offset:1},{i:204,c:"Ì",x:107,y:2,w:4,h:14,shift:6,offset:1},{i:205,
c:"Í",x:113,y:2,w:4,h:14,shift:6,offset:1},{i:206,c:"Î",x:119,y:2,w:6,h:14,shift:6,offset:0},{i:207,c:"Ï",x:127,y:2,w:6,h:14,shift:6,offset:0},{i:208,c:"Ð",x:135,y:2,w:7,h:14,shift:8,offset:0},{i:209,c:"Ñ",x:144,y:2,w:7,h:14,shift:8,offset:1},{i:210,c:"Ò",x:153,y:2,w:6,h:14,shift:8,offset:1},{i:211,c:"Ó",x:22,y:18,w:6,h:14,shift:8,offset:1},{i:212,c:"Ô",x:133,y:18,w:6,h:14,shift:8,offset:1},{i:213,c:"Õ",x:160,y:34,w:7,h:14,shift:8,offset:1},{i:214,c:"Ö",x:141,y:18,w:6,h:14,shift:8,offset:1},{i:215,
c:"×",x:86,y:34,w:6,h:14,shift:8,offset:1},{i:216,c:"Ø",x:94,y:34,w:8,h:14,shift:8,offset:0},{i:217,c:"Ù",x:104,y:34,w:6,h:14,shift:8,offset:1},{i:218,c:"Ú",x:112,y:34,w:6,h:14,shift:8,offset:1},{i:219,c:"Û",x:120,y:34,w:6,h:14,shift:8,offset:1},{i:220,c:"Ü",x:128,y:34,w:6,h:14,shift:8,offset:1},{i:221,c:"Ý",x:136,y:34,w:6,h:14,shift:8,offset:1},{i:222,c:"Þ",x:144,y:34,w:6,h:14,shift:8,offset:1},{i:223,c:"ß",x:152,y:34,w:6,h:14,shift:8,offset:1},{i:224,c:"à",x:169,y:34,w:6,h:14,shift:8,offset:1}
,{i:225,c:"á",x:2,y:50,w:6,h:14,shift:8,offset:1},{i:226,c:"â",x:177,y:34,w:6,h:14,shift:8,offset:1},{i:227,c:"ã",x:185,y:34,w:7,h:14,shift:8,offset:1},{i:228,c:"ä",x:194,y:34,w:6,h:14,shift:8,offset:1},{i:229,c:"å",x:202,y:34,w:6,h:14,shift:8,offset:1},{i:230,c:"æ",x:210,y:34,w:8,h:14,shift:10,offset:1},{i:231,c:"ç",x:220,y:34,w:7,h:14,shift:8,offset:0},{i:232,c:"è",x:229,y:34,w:6,h:14,shift:8,offset:1},{i:233,c:"é",x:237,y:34,w:6,h:14,shift:8,offset:1},{i:234,c:"ê",x:245,y:34,w:6,h:14,shift:8,
offset:1},{i:235,c:"ë",x:78,y:34,w:6,h:14,shift:8,offset:1},{i:236,c:"ì",x:72,y:34,w:4,h:14,shift:6,offset:1},{i:237,c:"í",x:66,y:34,w:4,h:14,shift:6,offset:1},{i:238,c:"î",x:58,y:34,w:6,h:14,shift:6,offset:0},{i:239,c:"ï",x:149,y:18,w:6,h:14,shift:6,offset:0},{i:240,c:"ð",x:157,y:18,w:7,h:14,shift:8,offset:1},{i:241,c:"ñ",x:166,y:18,w:7,h:14,shift:8,offset:1},{i:242,c:"ò",x:175,y:18,w:6,h:14,shift:8,offset:1},{i:243,c:"ó",x:183,y:18,w:6,h:14,shift:8,offset:1},{i:244,c:"ô",x:191,y:18,w:6,h:14,shift:8,
offset:1},{i:245,c:"õ",x:199,y:18,w:7,h:14,shift:8,offset:1},{i:246,c:"ö",x:208,y:18,w:6,h:14,shift:8,offset:1},{i:247,c:"÷",x:216,y:18,w:6,h:14,shift:8,offset:1},{i:248,c:"ø",x:224,y:18,w:6,h:14,shift:8,offset:1},{i:249,c:"ù",x:232,y:18,w:6,h:14,shift:8,offset:1},{i:250,c:"ú",x:240,y:18,w:6,h:14,shift:8,offset:1},{i:251,c:"û",x:2,y:34,w:6,h:14,shift:8,offset:1},{i:252,c:"ü",x:10,y:34,w:6,h:14,shift:8,offset:1},{i:253,c:"ý",x:18,y:34,w:6,h:14,shift:8,offset:1},{i:254,c:"þ",x:26,y:34,w:6,h:14,shift:8,
offset:1},{i:255,c:"ÿ",x:34,y:34,w:6,h:14,shift:8,offset:1},{i:8592,c:"←",x:42,y:34,w:7,h:14,shift:9,offset:1},{i:8593,c:"↑",x:51,y:34,w:5,h:14,shift:9,offset:2},{i:8594,c:"→",x:10,y:50,w:7,h:14,shift:9,offset:1},{i:8595,c:"↓",x:225,y:82,w:5,h:14,shift:9,offset:2},],},{pName:"fnt_tecmo",size:11,bold:false,italic:false,first:32,last:126,charset:0,antialias:0,fontname:"Emulogic",ascenderOffset:0,ascender:0,TPageEntry:22,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:15,h:19,shift:15,offset:0},{i:33,
c:"!",x:176,y:65,w:5,h:19,shift:15,offset:6},{i:34,c:"\"",x:165,y:65,w:9,h:19,shift:15,offset:4},{i:35,c:"#",x:150,y:65,w:13,h:19,shift:15,offset:2},{i:36,c:"$",x:135,y:65,w:13,h:19,shift:15,offset:2},{i:37,c:"%",x:120,y:65,w:13,h:19,shift:15,offset:2},{i:38,c:"&",x:105,y:65,w:13,h:19,shift:15,offset:2},{i:39,c:"'",x:99,y:65,w:4,h:19,shift:15,offset:4},{i:40,c:"(",x:90,y:65,w:7,h:19,shift:15,offset:4},{i:41,c:")",x:81,y:65,w:7,h:19,shift:15,offset:6},{i:42,c:"*",x:183,y:65,w:9,h:19,shift:15,offset:4}
,{i:43,c:"+",x:70,y:65,w:9,h:19,shift:15,offset:4},{i:44,c:",",x:48,y:65,w:5,h:19,shift:15,offset:4},{i:45,c:"-",x:37,y:65,w:9,h:19,shift:15,offset:4},{i:46,c:".",x:32,y:65,w:3,h:19,shift:15,offset:6},{i:47,c:"/",x:17,y:65,w:13,h:19,shift:15,offset:2},{i:48,c:"0",x:2,y:65,w:13,h:19,shift:15,offset:2},{i:49,c:"1",x:236,y:44,w:11,h:19,shift:15,offset:4},{i:50,c:"2",x:221,y:44,w:13,h:19,shift:15,offset:2},{i:51,c:"3",x:206,y:44,w:13,h:19,shift:15,offset:2},{i:52,c:"4",x:191,y:44,w:13,h:19,shift:15,
offset:2},{i:53,c:"5",x:55,y:65,w:13,h:19,shift:15,offset:2},{i:54,c:"6",x:209,y:65,w:13,h:19,shift:15,offset:2},{i:55,c:"7",x:120,y:86,w:13,h:19,shift:15,offset:2},{i:56,c:"8",x:224,y:65,w:13,h:19,shift:15,offset:2},{i:57,c:"9",x:240,y:86,w:13,h:19,shift:15,offset:2},{i:58,c:":",x:235,y:86,w:3,h:19,shift:15,offset:6},{i:59,c:";",x:228,y:86,w:5,h:19,shift:15,offset:4},{i:60,c:"<",x:217,y:86,w:9,h:19,shift:15,offset:4},{i:61,c:"=",x:206,y:86,w:9,h:19,shift:15,offset:4},{i:62,c:">",x:195,y:86,w:9,
h:19,shift:15,offset:4},{i:63,c:"?",x:180,y:86,w:13,h:19,shift:15,offset:2},{i:64,c:"@",x:165,y:86,w:13,h:19,shift:15,offset:2},{i:65,c:"A",x:150,y:86,w:13,h:19,shift:15,offset:2},{i:66,c:"B",x:2,y:107,w:13,h:19,shift:15,offset:2},{i:67,c:"C",x:135,y:86,w:13,h:19,shift:15,offset:2},{i:68,c:"D",x:105,y:86,w:13,h:19,shift:15,offset:2},{i:69,c:"E",x:90,y:86,w:13,h:19,shift:15,offset:2},{i:70,c:"F",x:75,y:86,w:13,h:19,shift:15,offset:2},{i:71,c:"G",x:60,y:86,w:13,h:19,shift:15,offset:2},{i:72,c:"H",
x:45,y:86,w:13,h:19,shift:15,offset:2},{i:73,c:"I",x:32,y:86,w:11,h:19,shift:15,offset:4},{i:74,c:"J",x:17,y:86,w:13,h:19,shift:15,offset:2},{i:75,c:"K",x:2,y:86,w:13,h:19,shift:15,offset:2},{i:76,c:"L",x:239,y:65,w:13,h:19,shift:15,offset:2},{i:77,c:"M",x:176,y:44,w:13,h:19,shift:15,offset:2},{i:78,c:"N",x:194,y:65,w:13,h:19,shift:15,offset:2},{i:79,c:"O",x:161,y:44,w:13,h:19,shift:15,offset:2},{i:80,c:"P",x:62,y:23,w:13,h:19,shift:15,offset:2},{i:81,c:"Q",x:32,y:23,w:13,h:19,shift:15,offset:2}
,{i:82,c:"R",x:17,y:23,w:13,h:19,shift:15,offset:2},{i:83,c:"S",x:2,y:23,w:13,h:19,shift:15,offset:2},{i:84,c:"T",x:233,y:2,w:11,h:19,shift:15,offset:4},{i:85,c:"U",x:218,y:2,w:13,h:19,shift:15,offset:2},{i:86,c:"V",x:203,y:2,w:13,h:19,shift:15,offset:2},{i:87,c:"W",x:188,y:2,w:13,h:19,shift:15,offset:2},{i:88,c:"X",x:173,y:2,w:13,h:19,shift:15,offset:2},{i:89,c:"Y",x:160,y:2,w:11,h:19,shift:15,offset:4},{i:90,c:"Z",x:47,y:23,w:13,h:19,shift:15,offset:2},{i:91,c:"[",x:151,y:2,w:7,h:19,shift:15,offset:6}
,{i:92,c:"\\",x:121,y:2,w:13,h:19,shift:15,offset:2},{i:93,c:"]",x:112,y:2,w:7,h:19,shift:15,offset:4},{i:94,c:"^",x:101,y:2,w:9,h:19,shift:15,offset:4},{i:95,c:"_",x:86,y:2,w:13,h:19,shift:15,offset:2},{i:96,c:"`",x:79,y:2,w:5,h:19,shift:15,offset:8},{i:97,c:"a",x:64,y:2,w:13,h:19,shift:15,offset:2},{i:98,c:"b",x:49,y:2,w:13,h:19,shift:15,offset:2},{i:99,c:"c",x:34,y:2,w:13,h:19,shift:15,offset:2},{i:100,c:"d",x:19,y:2,w:13,h:19,shift:15,offset:2},{i:101,c:"e",x:136,y:2,w:13,h:19,shift:15,offset:2}
,{i:102,c:"f",x:77,y:23,w:13,h:19,shift:15,offset:2},{i:103,c:"g",x:224,y:23,w:13,h:19,shift:15,offset:2},{i:104,c:"h",x:92,y:23,w:13,h:19,shift:15,offset:2},{i:105,c:"i",x:122,y:44,w:11,h:19,shift:15,offset:4},{i:106,c:"j",x:107,y:44,w:13,h:19,shift:15,offset:2},{i:107,c:"k",x:92,y:44,w:13,h:19,shift:15,offset:2},{i:108,c:"l",x:77,y:44,w:13,h:19,shift:15,offset:2},{i:109,c:"m",x:62,y:44,w:13,h:19,shift:15,offset:2},{i:110,c:"n",x:47,y:44,w:13,h:19,shift:15,offset:2},{i:111,c:"o",x:32,y:44,w:13,
h:19,shift:15,offset:2},{i:112,c:"p",x:17,y:44,w:13,h:19,shift:15,offset:2},{i:113,c:"q",x:2,y:44,w:13,h:19,shift:15,offset:2},{i:114,c:"r",x:135,y:44,w:13,h:19,shift:15,offset:2},{i:115,c:"s",x:239,y:23,w:13,h:19,shift:15,offset:2},{i:116,c:"t",x:211,y:23,w:11,h:19,shift:15,offset:4},{i:117,c:"u",x:196,y:23,w:13,h:19,shift:15,offset:2},{i:118,c:"v",x:181,y:23,w:13,h:19,shift:15,offset:2},{i:119,c:"w",x:166,y:23,w:13,h:19,shift:15,offset:2},{i:120,c:"x",x:151,y:23,w:13,h:19,shift:15,offset:2},{i:121,
c:"y",x:138,y:23,w:11,h:19,shift:15,offset:4},{i:122,c:"z",x:123,y:23,w:13,h:19,shift:15,offset:2},{i:123,c:"{",x:112,y:23,w:9,h:19,shift:15,offset:4},{i:124,c:"|",x:107,y:23,w:3,h:19,shift:15,offset:6},{i:125,c:"}",x:150,y:44,w:9,h:19,shift:15,offset:4},{i:126,c:"~",x:17,y:107,w:7,h:19,shift:9,offset:1},],},{pName:"fnt_tecmo_big",size:16,bold:true,italic:false,first:32,last:126,charset:0,antialias:0,fontname:"8-bit Operator+ SC",ascenderOffset:0,ascender:0,TPageEntry:21,scaleX:1,scaleY:1,glyphs:[{
i:32,c:" ",x:2,y:2,w:7,h:30,shift:7,offset:0},{i:33,c:"!",x:93,y:98,w:4,h:30,shift:8,offset:2},{i:34,c:"\"",x:78,y:98,w:13,h:30,shift:17,offset:2},{i:35,c:"#",x:61,y:98,w:15,h:30,shift:19,offset:2},{i:36,c:"$",x:48,y:98,w:11,h:30,shift:15,offset:2},{i:37,c:"%",x:33,y:98,w:13,h:30,shift:17,offset:2},{i:38,c:"&",x:20,y:98,w:11,h:30,shift:15,offset:2},{i:39,c:"'",x:12,y:98,w:6,h:30,shift:10,offset:2},{i:40,c:"(",x:2,y:98,w:8,h:30,shift:12,offset:2},{i:41,c:")",x:239,y:66,w:8,h:30,shift:12,offset:2}
,{i:42,c:"*",x:99,y:98,w:15,h:30,shift:19,offset:2},{i:43,c:"+",x:226,y:66,w:11,h:30,shift:15,offset:2},{i:44,c:",",x:205,y:66,w:6,h:30,shift:10,offset:2},{i:45,c:"-",x:196,y:66,w:7,h:30,shift:11,offset:2},{i:46,c:".",x:190,y:66,w:4,h:30,shift:8,offset:2},{i:47,c:"/",x:180,y:66,w:8,h:30,shift:12,offset:2},{i:48,c:"0",x:167,y:66,w:11,h:30,shift:15,offset:2},{i:49,c:"1",x:158,y:66,w:7,h:30,shift:11,offset:2},{i:50,c:"2",x:145,y:66,w:11,h:30,shift:15,offset:2},{i:51,c:"3",x:132,y:66,w:11,h:30,shift:15,
offset:2},{i:52,c:"4",x:119,y:66,w:11,h:30,shift:15,offset:2},{i:53,c:"5",x:213,y:66,w:11,h:30,shift:15,offset:2},{i:54,c:"6",x:129,y:98,w:11,h:30,shift:15,offset:2},{i:55,c:"7",x:15,y:130,w:11,h:30,shift:15,offset:2},{i:56,c:"8",x:142,y:98,w:11,h:30,shift:15,offset:2},{i:57,c:"9",x:133,y:130,w:11,h:30,shift:15,offset:2},{i:58,c:":",x:127,y:130,w:4,h:30,shift:8,offset:2},{i:59,c:";",x:119,y:130,w:6,h:30,shift:10,offset:2},{i:60,c:"<",x:108,y:130,w:9,h:30,shift:13,offset:2},{i:61,c:"=",x:95,y:130,
w:11,h:30,shift:15,offset:2},{i:62,c:">",x:84,y:130,w:9,h:30,shift:13,offset:2},{i:63,c:"?",x:71,y:130,w:11,h:30,shift:15,offset:2},{i:64,c:"@",x:54,y:130,w:15,h:30,shift:19,offset:2},{i:65,c:"A",x:41,y:130,w:11,h:30,shift:15,offset:2},{i:66,c:"B",x:146,y:130,w:11,h:30,shift:15,offset:2},{i:67,c:"C",x:28,y:130,w:11,h:30,shift:15,offset:2},{i:68,c:"D",x:2,y:130,w:11,h:30,shift:15,offset:2},{i:69,c:"E",x:242,y:98,w:11,h:30,shift:15,offset:2},{i:70,c:"F",x:229,y:98,w:11,h:30,shift:15,offset:2},{i:71,
c:"G",x:216,y:98,w:11,h:30,shift:15,offset:2},{i:72,c:"H",x:203,y:98,w:11,h:30,shift:15,offset:2},{i:73,c:"I",x:194,y:98,w:7,h:30,shift:11,offset:2},{i:74,c:"J",x:181,y:98,w:11,h:30,shift:15,offset:2},{i:75,c:"K",x:168,y:98,w:11,h:30,shift:15,offset:2},{i:76,c:"L",x:155,y:98,w:11,h:30,shift:15,offset:2},{i:77,c:"M",x:104,y:66,w:13,h:30,shift:17,offset:2},{i:78,c:"N",x:116,y:98,w:11,h:30,shift:15,offset:2},{i:79,c:"O",x:91,y:66,w:11,h:30,shift:15,offset:2},{i:80,c:"P",x:15,y:34,w:11,h:30,shift:15,
offset:2},{i:81,c:"Q",x:241,y:2,w:11,h:30,shift:15,offset:2},{i:82,c:"R",x:228,y:2,w:11,h:30,shift:15,offset:2},{i:83,c:"S",x:215,y:2,w:11,h:30,shift:15,offset:2},{i:84,c:"T",x:202,y:2,w:11,h:30,shift:15,offset:2},{i:85,c:"U",x:189,y:2,w:11,h:30,shift:15,offset:2},{i:86,c:"V",x:176,y:2,w:11,h:30,shift:15,offset:2},{i:87,c:"W",x:161,y:2,w:13,h:30,shift:17,offset:2},{i:88,c:"X",x:148,y:2,w:11,h:30,shift:15,offset:2},{i:89,c:"Y",x:135,y:2,w:11,h:30,shift:15,offset:2},{i:90,c:"Z",x:2,y:34,w:11,h:30,
shift:15,offset:2},{i:91,c:"[",x:125,y:2,w:8,h:30,shift:11,offset:2},{i:92,c:"\\",x:102,y:2,w:8,h:30,shift:12,offset:2},{i:93,c:"]",x:93,y:2,w:7,h:30,shift:11,offset:2},{i:94,c:"^",x:80,y:2,w:11,h:30,shift:15,offset:2},{i:95,c:"_",x:71,y:2,w:7,h:30,shift:7,offset:0},{i:96,c:"`",x:63,y:2,w:6,h:30,shift:10,offset:2},{i:97,c:"a",x:50,y:2,w:11,h:30,shift:15,offset:2},{i:98,c:"b",x:37,y:2,w:11,h:30,shift:15,offset:2},{i:99,c:"c",x:24,y:2,w:11,h:30,shift:15,offset:2},{i:100,c:"d",x:11,y:2,w:11,h:30,shift:15,
offset:2},{i:101,c:"e",x:112,y:2,w:11,h:30,shift:15,offset:2},{i:102,c:"f",x:28,y:34,w:11,h:30,shift:15,offset:2},{i:103,c:"g",x:166,y:34,w:11,h:30,shift:15,offset:2},{i:104,c:"h",x:41,y:34,w:11,h:30,shift:15,offset:2},{i:105,c:"i",x:56,y:66,w:7,h:30,shift:11,offset:2},{i:106,c:"j",x:43,y:66,w:11,h:30,shift:15,offset:2},{i:107,c:"k",x:30,y:66,w:11,h:30,shift:15,offset:2},{i:108,c:"l",x:17,y:66,w:11,h:30,shift:15,offset:2},{i:109,c:"m",x:2,y:66,w:13,h:30,shift:17,offset:2},{i:110,c:"n",x:231,y:34,
w:11,h:30,shift:15,offset:2},{i:111,c:"o",x:218,y:34,w:11,h:30,shift:15,offset:2},{i:112,c:"p",x:205,y:34,w:11,h:30,shift:15,offset:2},{i:113,c:"q",x:192,y:34,w:11,h:30,shift:15,offset:2},{i:114,c:"r",x:65,y:66,w:11,h:30,shift:15,offset:2},{i:115,c:"s",x:179,y:34,w:11,h:30,shift:15,offset:2},{i:116,c:"t",x:153,y:34,w:11,h:30,shift:15,offset:2},{i:117,c:"u",x:140,y:34,w:11,h:30,shift:15,offset:2},{i:118,c:"v",x:127,y:34,w:11,h:30,shift:15,offset:2},{i:119,c:"w",x:112,y:34,w:13,h:30,shift:17,offset:2}
,{i:120,c:"x",x:99,y:34,w:11,h:30,shift:15,offset:2},{i:121,c:"y",x:86,y:34,w:11,h:30,shift:15,offset:2},{i:122,c:"z",x:73,y:34,w:11,h:30,shift:15,offset:2},{i:123,c:"{",x:60,y:34,w:11,h:30,shift:15,offset:2},{i:124,c:"|",x:54,y:34,w:4,h:30,shift:8,offset:2},{i:125,c:"}",x:78,y:66,w:11,h:30,shift:15,offset:2},{i:126,c:"~",x:159,y:130,w:13,h:30,shift:17,offset:2},],},{pName:"fnt_restart",size:6,bold:false,italic:false,first:32,last:255,charset:0,antialias:0,fontname:"Press Start 2P",ascenderOffset:0,
ascender:0,TPageEntry:32,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:8,h:8,shift:8,offset:0},{i:33,c:"!",x:11,y:42,w:3,h:8,shift:8,offset:2},{i:34,c:"\"",x:16,y:42,w:5,h:8,shift:8,offset:1},{i:35,c:"#",x:23,y:42,w:7,h:8,shift:8,offset:0},{i:36,c:"$",x:32,y:42,w:7,h:8,shift:8,offset:0},{i:37,c:"%",x:41,y:42,w:7,h:8,shift:8,offset:0},{i:38,c:"&",x:50,y:42,w:7,h:8,shift:8,offset:0},{i:39,c:"'",x:59,y:42,w:2,h:8,shift:8,offset:2},{i:40,c:"(",x:63,y:42,w:4,h:8,shift:8,offset:2},{i:41,c:")",x:69,y:42,
w:4,h:8,shift:8,offset:1},{i:42,c:"*",x:84,y:42,w:7,h:8,shift:8,offset:0},{i:43,c:"+",x:163,y:42,w:6,h:8,shift:8,offset:1},{i:44,c:",",x:93,y:42,w:3,h:8,shift:8,offset:1},{i:45,c:"-",x:98,y:42,w:6,h:8,shift:8,offset:1},{i:46,c:".",x:106,y:42,w:2,h:8,shift:8,offset:2},{i:47,c:"/",x:110,y:42,w:7,h:8,shift:8,offset:0},{i:48,c:"0",x:119,y:42,w:7,h:8,shift:8,offset:0},{i:49,c:"1",x:128,y:42,w:6,h:8,shift:8,offset:1},{i:50,c:"2",x:136,y:42,w:7,h:8,shift:8,offset:0},{i:51,c:"3",x:145,y:42,w:7,h:8,shift:8,
offset:0},{i:52,c:"4",x:154,y:42,w:7,h:8,shift:8,offset:0},{i:53,c:"5",x:2,y:42,w:7,h:8,shift:8,offset:0},{i:54,c:"6",x:75,y:42,w:7,h:8,shift:8,offset:0},{i:55,c:"7",x:239,y:32,w:7,h:8,shift:8,offset:0},{i:56,c:"8",x:124,y:32,w:7,h:8,shift:8,offset:0},{i:57,c:"9",x:56,y:32,w:7,h:8,shift:8,offset:0},{i:58,c:":",x:65,y:32,w:2,h:8,shift:8,offset:2},{i:59,c:";",x:69,y:32,w:3,h:8,shift:8,offset:1},{i:60,c:"<",x:74,y:32,w:5,h:8,shift:8,offset:1},{i:61,c:"=",x:81,y:32,w:7,h:8,shift:8,offset:0},{i:62,c:">",
x:90,y:32,w:5,h:8,shift:8,offset:1},{i:63,c:"?",x:97,y:32,w:7,h:8,shift:8,offset:0},{i:64,c:"@",x:106,y:32,w:7,h:8,shift:8,offset:0},{i:65,c:"A",x:115,y:32,w:7,h:8,shift:8,offset:0},{i:66,c:"B",x:133,y:32,w:7,h:8,shift:8,offset:0},{i:67,c:"C",x:221,y:32,w:7,h:8,shift:8,offset:0},{i:68,c:"D",x:142,y:32,w:7,h:8,shift:8,offset:0},{i:69,c:"E",x:151,y:32,w:7,h:8,shift:8,offset:0},{i:70,c:"F",x:160,y:32,w:7,h:8,shift:8,offset:0},{i:71,c:"G",x:169,y:32,w:7,h:8,shift:8,offset:0},{i:72,c:"H",x:178,y:32,w:7,
h:8,shift:8,offset:0},{i:73,c:"I",x:187,y:32,w:6,h:8,shift:8,offset:1},{i:74,c:"J",x:195,y:32,w:7,h:8,shift:8,offset:0},{i:75,c:"K",x:204,y:32,w:7,h:8,shift:8,offset:0},{i:76,c:"L",x:213,y:32,w:6,h:8,shift:8,offset:1},{i:77,c:"M",x:230,y:32,w:7,h:8,shift:8,offset:0},{i:78,c:"N",x:171,y:42,w:7,h:8,shift:8,offset:0},{i:79,c:"O",x:180,y:42,w:7,h:8,shift:8,offset:0},{i:80,c:"P",x:189,y:42,w:7,h:8,shift:8,offset:0},{i:81,c:"Q",x:148,y:52,w:7,h:8,shift:8,offset:0},{i:82,c:"R",x:157,y:52,w:7,h:8,shift:8,
offset:0},{i:83,c:"S",x:166,y:52,w:7,h:8,shift:8,offset:0},{i:84,c:"T",x:175,y:52,w:6,h:8,shift:8,offset:1},{i:85,c:"U",x:183,y:52,w:7,h:8,shift:8,offset:0},{i:86,c:"V",x:192,y:52,w:7,h:8,shift:8,offset:0},{i:87,c:"W",x:201,y:52,w:7,h:8,shift:8,offset:0},{i:88,c:"X",x:210,y:52,w:7,h:8,shift:8,offset:0},{i:89,c:"Y",x:219,y:52,w:6,h:8,shift:8,offset:1},{i:90,c:"Z",x:227,y:52,w:7,h:8,shift:8,offset:0},{i:91,c:"[",x:236,y:52,w:4,h:8,shift:8,offset:2},{i:92,c:"\\",x:242,y:52,w:7,h:8,shift:8,offset:0}
,{i:93,c:"]",x:2,y:62,w:4,h:8,shift:8,offset:1},{i:94,c:"^",x:8,y:62,w:5,h:8,shift:8,offset:1},{i:95,c:"_",x:15,y:62,w:7,h:8,shift:8,offset:0},{i:96,c:"`",x:24,y:62,w:2,h:8,shift:8,offset:3},{i:97,c:"a",x:28,y:62,w:7,h:8,shift:8,offset:0},{i:98,c:"b",x:37,y:62,w:7,h:8,shift:8,offset:0},{i:99,c:"c",x:46,y:62,w:7,h:8,shift:8,offset:0},{i:100,c:"d",x:55,y:62,w:7,h:8,shift:8,offset:0},{i:101,c:"e",x:64,y:62,w:7,h:8,shift:8,offset:0},{i:102,c:"f",x:140,y:52,w:6,h:8,shift:8,offset:1},{i:103,c:"g",x:131,
y:52,w:7,h:8,shift:8,offset:0},{i:104,c:"h",x:122,y:52,w:7,h:8,shift:8,offset:0},{i:105,c:"i",x:28,y:52,w:6,h:8,shift:8,offset:1},{i:106,c:"j",x:198,y:42,w:5,h:8,shift:8,offset:1},{i:107,c:"k",x:205,y:42,w:7,h:8,shift:8,offset:0},{i:108,c:"l",x:214,y:42,w:6,h:8,shift:8,offset:1},{i:109,c:"m",x:222,y:42,w:7,h:8,shift:8,offset:0},{i:110,c:"n",x:231,y:42,w:7,h:8,shift:8,offset:0},{i:111,c:"o",x:240,y:42,w:7,h:8,shift:8,offset:0},{i:112,c:"p",x:2,y:52,w:7,h:8,shift:8,offset:0},{i:113,c:"q",x:11,y:52,
w:7,h:8,shift:8,offset:0},{i:114,c:"r",x:20,y:52,w:6,h:8,shift:8,offset:1},{i:115,c:"s",x:36,y:52,w:7,h:8,shift:8,offset:0},{i:116,c:"t",x:114,y:52,w:6,h:8,shift:8,offset:1},{i:117,c:"u",x:45,y:52,w:7,h:8,shift:8,offset:0},{i:118,c:"v",x:54,y:52,w:6,h:8,shift:8,offset:1},{i:119,c:"w",x:62,y:52,w:7,h:8,shift:8,offset:0},{i:120,c:"x",x:71,y:52,w:7,h:8,shift:8,offset:0},{i:121,c:"y",x:80,y:52,w:7,h:8,shift:8,offset:0},{i:122,c:"z",x:89,y:52,w:7,h:8,shift:8,offset:0},{i:123,c:"{",x:98,y:52,w:4,h:8,shift:8,
offset:2},{i:124,c:"|",x:104,y:52,w:2,h:8,shift:8,offset:3},{i:125,c:"}",x:108,y:52,w:4,h:8,shift:8,offset:1},{i:126,c:"~",x:47,y:32,w:7,h:8,shift:8,offset:0},{i:127,x:40,y:32,w:5,h:8,shift:8,offset:1},{i:160,c:" ",x:38,y:32,w:0,h:8,shift:8,offset:0},{i:161,c:"¡",x:118,y:12,w:3,h:8,shift:8,offset:2},{i:162,c:"¢",x:215,y:2,w:7,h:8,shift:8,offset:0},{i:163,c:"£",x:224,y:2,w:7,h:8,shift:8,offset:0},{i:164,c:"¤",x:233,y:2,w:6,h:8,shift:8,offset:1},{i:165,c:"¥",x:241,y:2,w:6,h:8,shift:8,offset:1},{i:166,
c:"¦",x:249,y:2,w:2,h:8,shift:8,offset:3},{i:167,c:"§",x:2,y:12,w:6,h:8,shift:8,offset:1},{i:168,c:"¨",x:10,y:12,w:5,h:8,shift:8,offset:1},{i:169,c:"©",x:17,y:12,w:8,h:8,shift:8,offset:0},{i:170,c:"ª",x:27,y:12,w:5,h:8,shift:8,offset:1},{i:171,c:"«",x:38,y:12,w:7,h:8,shift:8,offset:0},{i:172,c:"¬",x:110,y:12,w:6,h:8,shift:8,offset:1},{i:173,x:47,y:12,w:6,h:8,shift:8,offset:1},{i:174,c:"®",x:55,y:12,w:8,h:8,shift:8,offset:0},{i:175,c:"¯",x:65,y:12,w:5,h:8,shift:8,offset:1},{i:176,c:"°",x:72,y:12,
w:3,h:8,shift:8,offset:2},{i:177,c:"±",x:77,y:12,w:6,h:8,shift:8,offset:1},{i:178,c:"²",x:85,y:12,w:4,h:8,shift:8,offset:2},{i:179,c:"³",x:91,y:12,w:4,h:8,shift:8,offset:2},{i:180,c:"´",x:97,y:12,w:2,h:8,shift:8,offset:3},{i:181,c:"µ",x:101,y:12,w:7,h:8,shift:8,offset:0},{i:182,c:"¶",x:207,y:2,w:6,h:8,shift:8,offset:1},{i:183,c:"·",x:34,y:12,w:2,h:8,shift:8,offset:2},{i:184,c:"¸",x:202,y:2,w:3,h:8,shift:8,offset:2},{i:185,c:"¹",x:91,y:2,w:4,h:8,shift:8,offset:2},{i:186,c:"º",x:12,y:2,w:5,h:8,shift:8,
offset:1},{i:187,c:"»",x:19,y:2,w:7,h:8,shift:8,offset:0},{i:188,c:"¼",x:28,y:2,w:7,h:8,shift:8,offset:0},{i:189,c:"½",x:37,y:2,w:7,h:8,shift:8,offset:0},{i:190,c:"¾",x:46,y:2,w:7,h:8,shift:8,offset:0},{i:191,c:"¿",x:55,y:2,w:7,h:8,shift:8,offset:0},{i:192,c:"À",x:64,y:2,w:7,h:8,shift:8,offset:0},{i:193,c:"Á",x:73,y:2,w:7,h:8,shift:8,offset:0},{i:194,c:"Â",x:82,y:2,w:7,h:8,shift:8,offset:0},{i:195,c:"Ã",x:97,y:2,w:7,h:8,shift:8,offset:0},{i:196,c:"Ä",x:185,y:2,w:7,h:8,shift:8,offset:0},{i:197,c:"Å",
x:106,y:2,w:7,h:8,shift:8,offset:0},{i:198,c:"Æ",x:115,y:2,w:7,h:8,shift:8,offset:0},{i:199,c:"Ç",x:124,y:2,w:7,h:8,shift:8,offset:0},{i:200,c:"È",x:133,y:2,w:7,h:8,shift:8,offset:0},{i:201,c:"É",x:142,y:2,w:7,h:8,shift:8,offset:0},{i:202,c:"Ê",x:151,y:2,w:7,h:8,shift:8,offset:0},{i:203,c:"Ë",x:160,y:2,w:7,h:8,shift:8,offset:0},{i:204,c:"Ì",x:169,y:2,w:6,h:8,shift:8,offset:1},{i:205,c:"Í",x:177,y:2,w:6,h:8,shift:8,offset:1},{i:206,c:"Î",x:194,y:2,w:6,h:8,shift:8,offset:1},{i:207,c:"Ï",x:123,y:12,
w:6,h:8,shift:8,offset:1},{i:208,c:"Ð",x:73,y:22,w:7,h:8,shift:8,offset:0},{i:209,c:"Ñ",x:131,y:12,w:7,h:8,shift:8,offset:0},{i:210,c:"Ò",x:100,y:22,w:7,h:8,shift:8,offset:0},{i:211,c:"Ó",x:109,y:22,w:7,h:8,shift:8,offset:0},{i:212,c:"Ô",x:118,y:22,w:7,h:8,shift:8,offset:0},{i:213,c:"Õ",x:127,y:22,w:7,h:8,shift:8,offset:0},{i:214,c:"Ö",x:136,y:22,w:7,h:8,shift:8,offset:0},{i:215,c:"×",x:145,y:22,w:5,h:8,shift:8,offset:1},{i:216,c:"Ø",x:152,y:22,w:7,h:8,shift:8,offset:0},{i:217,c:"Ù",x:161,y:22,w:7,
h:8,shift:8,offset:0},{i:218,c:"Ú",x:170,y:22,w:7,h:8,shift:8,offset:0},{i:219,c:"Û",x:188,y:22,w:7,h:8,shift:8,offset:0},{i:220,c:"Ü",x:29,y:32,w:7,h:8,shift:8,offset:0},{i:221,c:"Ý",x:197,y:22,w:6,h:8,shift:8,offset:1},{i:222,c:"Þ",x:205,y:22,w:7,h:8,shift:8,offset:0},{i:223,c:"ß",x:214,y:22,w:6,h:8,shift:8,offset:1},{i:224,c:"à",x:222,y:22,w:7,h:8,shift:8,offset:0},{i:225,c:"á",x:231,y:22,w:7,h:8,shift:8,offset:0},{i:226,c:"â",x:240,y:22,w:7,h:8,shift:8,offset:0},{i:227,c:"ã",x:2,y:32,w:7,h:8,
shift:8,offset:0},{i:228,c:"ä",x:11,y:32,w:7,h:8,shift:8,offset:0},{i:229,c:"å",x:20,y:32,w:7,h:8,shift:8,offset:0},{i:230,c:"æ",x:91,y:22,w:7,h:8,shift:8,offset:0},{i:231,c:"ç",x:179,y:22,w:7,h:8,shift:8,offset:0},{i:232,c:"è",x:82,y:22,w:7,h:8,shift:8,offset:0},{i:233,c:"é",x:217,y:12,w:7,h:8,shift:8,offset:0},{i:234,c:"ê",x:140,y:12,w:7,h:8,shift:8,offset:0},{i:235,c:"ë",x:149,y:12,w:7,h:8,shift:8,offset:0},{i:236,c:"ì",x:158,y:12,w:6,h:8,shift:8,offset:1},{i:237,c:"í",x:166,y:12,w:6,h:8,shift:8,
offset:1},{i:238,c:"î",x:174,y:12,w:6,h:8,shift:8,offset:1},{i:239,c:"ï",x:182,y:12,w:6,h:8,shift:8,offset:1},{i:240,c:"ð",x:190,y:12,w:7,h:8,shift:8,offset:0},{i:241,c:"ñ",x:199,y:12,w:7,h:8,shift:8,offset:0},{i:242,c:"ò",x:208,y:12,w:7,h:8,shift:8,offset:0},{i:243,c:"ó",x:226,y:12,w:7,h:8,shift:8,offset:0},{i:244,c:"ô",x:64,y:22,w:7,h:8,shift:8,offset:0},{i:245,c:"õ",x:235,y:12,w:7,h:8,shift:8,offset:0},{i:246,c:"ö",x:244,y:12,w:7,h:8,shift:8,offset:0},{i:247,c:"÷",x:2,y:22,w:6,h:8,shift:8,offset:1}
,{i:248,c:"ø",x:10,y:22,w:7,h:8,shift:8,offset:0},{i:249,c:"ù",x:19,y:22,w:7,h:8,shift:8,offset:0},{i:250,c:"ú",x:28,y:22,w:7,h:8,shift:8,offset:0},{i:251,c:"û",x:37,y:22,w:7,h:8,shift:8,offset:0},{i:252,c:"ü",x:46,y:22,w:7,h:8,shift:8,offset:0},{i:253,c:"ý",x:55,y:22,w:7,h:8,shift:8,offset:0},{i:254,c:"þ",x:73,y:62,w:7,h:8,shift:8,offset:0},{i:255,c:"ÿ",x:82,y:62,w:7,h:8,shift:8,offset:0},],}],Timelines:[],Triggers:[{}],GMObjects:[{pName:"obj_rm_qb_postmatch",spriteIndex:-1,visible:true,parent:-100,
CreateEvent:gml_Object_obj_rm_qb_postmatch_Create_0,StepNormalEvent:gml_Object_obj_rm_qb_postmatch_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_rm_qb_contract",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_qb_contract_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_facility",spriteIndex:121,visible:true,parent:-100,DrawEvent:gml_Object_obj_facility_Draw_0,DrawGUI:gml_Object_obj_facility_Draw_64,PreCreateEvent:gml_Object_obj_facility_PreCreate_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_rm_qb_shopping",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_qb_shopping_Create_0,PreCreateEvent:gml_Object_obj_rm_qb_shopping_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_exhibition_postmatch",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_exhibition_postmatch_Create_0,PreCreateEvent:gml_Object_obj_exhibition_postmatch_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_negotiate_num",spriteIndex:231,
visible:true,parent:-100,CreateEvent:gml_Object_obj_negotiate_num_Create_0,StepNormalEvent:gml_Object_obj_negotiate_num_Step_0,DrawGUI:gml_Object_obj_negotiate_num_Draw_64,DrawEvent:gml_Object_obj_negotiate_num_Draw_0,PreCreateEvent:gml_Object_obj_negotiate_num_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_halloffame_rm",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_halloffame_rm_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_life",spriteIndex:-1,visible:true,
parent:-100,CreateEvent:gml_Object_obj_life_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_news_dyn",spriteIndex:147,visible:true,parent:78,CreateEvent:gml_Object_obj_news_dyn_Create_0,DrawGUI:gml_Object_obj_news_dyn_Draw_64,DrawEvent:gml_Object_obj_news_dyn_Draw_0,KeyPressed_ESCAPE:gml_Object_obj_news_dyn_KeyPress_27,CleanUpEvent:gml_Object_obj_news_dyn_CleanUp_0,PreCreateEvent:gml_Object_obj_news_dyn_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_happiness",spriteIndex:121,
visible:true,parent:23,CreateEvent:gml_Object_obj_meter_happiness_Create_0,StepNormalEvent:gml_Object_obj_meter_happiness_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_college_nfl_draft",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_college_nfl_draft_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_nx",spriteIndex:-1,visible:true,persistent:true,parent:-100,CreateEvent:gml_Object_obj_nx_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_goforit",
spriteIndex:80,visible:true,parent:33,CreateEvent:gml_Object_obj_btn_goforit_Create_0,StepNormalEvent:gml_Object_obj_btn_goforit_Step_0,DrawGUI:gml_Object_obj_btn_goforit_Draw_64,DrawEvent:gml_Object_obj_btn_goforit_Draw_0,DrawGUIEnd:gml_Object_obj_btn_goforit_Draw_75,PreCreateEvent:gml_Object_obj_btn_goforit_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_halloffame_pr_rm",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_halloffame_pr_rm_Create_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_options_controls",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_options_controls_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_conditionQB",spriteIndex:121,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_conditionQB_Create_0,StepNormalEvent:gml_Object_obj_meter_conditionQB_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_rm_exhibition",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_exhibition_Create_0,
DrawGUI:gml_Object_obj_rm_exhibition_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_lifestyle",spriteIndex:121,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_lifestyle_Create_0,StepNormalEvent:gml_Object_obj_meter_lifestyle_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_checkbox012",spriteIndex:230,visible:true,parent:33,StepNormalEvent:gml_Object_obj_checkbox012_Step_0,DrawGUI:gml_Object_obj_checkbox012_Draw_64,DrawEvent:gml_Object_obj_checkbox012_Draw_0,PreCreateEvent:gml_Object_obj_checkbox012_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_credit_rec",visible:true,parent:-100,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_9s",spriteIndex:246,visible:true,parent:33,CreateEvent:gml_Object_obj_button_9s_Create_0,StepNormalEvent:gml_Object_obj_button_9s_Step_0,DrawEvent:gml_Object_obj_button_9s_Draw_0,DrawGUI:gml_Object_obj_button_9s_Draw_64,PreCreateEvent:gml_Object_obj_button_9s_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_relationship",spriteIndex:155,visible:true,
parent:-100,CreateEvent:gml_Object_obj_box_relationship_Create_0,StepNormalEvent:gml_Object_obj_box_relationship_Step_0,DrawEvent:gml_Object_obj_box_relationship_Draw_0,DrawGUI:gml_Object_obj_box_relationship_Draw_64,PreCreateEvent:gml_Object_obj_box_relationship_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_roomtitle_special",spriteIndex:-1,visible:true,parent:70,StepNormalEvent:gml_Object_obj_roomtitle_special_Step_0,PreCreateEvent:gml_Object_obj_roomtitle_special_PreCreate_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_meter",spriteIndex:121,visible:true,parent:-100,DrawGUI:gml_Object_obj_meter_Draw_64,DrawEvent:gml_Object_obj_meter_Draw_0,PreCreateEvent:gml_Object_obj_meter_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_pause",spriteIndex:220,visible:true,parent:-100,StepNormalEvent:gml_Object_obj_btn_pause_Step_0,DrawEvent:gml_Object_obj_btn_pause_Draw_0,DrawGUI:gml_Object_obj_btn_pause_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_options_exh",spriteIndex:-1,
visible:true,parent:-100,CreateEvent:gml_Object_obj_options_exh_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_kb_key",spriteIndex:246,visible:true,parent:20,CreateEvent:gml_Object_obj_kb_key_Create_0,StepNormalEvent:gml_Object_obj_kb_key_Step_0,DrawGUI:gml_Object_obj_kb_key_Draw_64,GestureTapEvent:gml_Object_obj_kb_key_Gesture_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_coach",spriteIndex:121,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_coach_Create_0,StepNormalEvent:gml_Object_obj_meter_coach_Step_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_blank",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_blank_Create_0,StepNormalEvent:gml_Object_obj_blank_Step_0,DrawEvent:gml_Object_obj_blank_Draw_0,DrawGUI:gml_Object_obj_blank_Draw_64,PreCreateEvent:gml_Object_obj_blank_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_skiptime",spriteIndex:249,visible:true,parent:33,CreateEvent:gml_Object_obj_btn_skiptime_Create_0,StepNormalEvent:gml_Object_obj_btn_skiptime_Step_0,
DrawGUI:gml_Object_obj_btn_skiptime_Draw_64,DrawEvent:gml_Object_obj_btn_skiptime_Draw_0,DrawGUIEnd:gml_Object_obj_btn_skiptime_Draw_75,PreCreateEvent:gml_Object_obj_btn_skiptime_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_stats_player_rm",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_stats_player_rm_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_kickoff",spriteIndex:80,visible:true,parent:33,CreateEvent:gml_Object_obj_btn_kickoff_Create_0,StepNormalEvent:gml_Object_obj_btn_kickoff_Step_0,
DrawGUI:gml_Object_obj_btn_kickoff_Draw_64,DrawEvent:gml_Object_obj_btn_kickoff_Draw_0,PreCreateEvent:gml_Object_obj_btn_kickoff_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_recruitmentcredit",spriteIndex:121,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_recruitmentcredit_Create_0,StepNormalEvent:gml_Object_obj_box_recruitmentcredit_Step_0,DrawEvent:gml_Object_obj_box_recruitmentcredit_Draw_0,DrawGUI:gml_Object_obj_box_recruitmentcredit_Draw_64,PreCreateEvent:gml_Object_obj_box_recruitmentcredit_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"ui_selectable",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_ui_selectable_Create_0,ObjAlarm0:gml_Object_ui_selectable_Alarm_0,DrawGUIEnd:gml_Object_ui_selectable_Draw_75,PreCreateEvent:gml_Object_ui_selectable_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button",spriteIndex:112,visible:true,parent:33,CreateEvent:gml_Object_obj_button_Create_0,StepNormalEvent:gml_Object_obj_button_Step_0,DrawEvent:gml_Object_obj_button_Draw_0,
DrawGUI:gml_Object_obj_button_Draw_64,PreCreateEvent:gml_Object_obj_button_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_color",spriteIndex:117,visible:true,parent:34,CreateEvent:gml_Object_obj_button_color_Create_0,StepNormalEvent:gml_Object_obj_button_color_Step_0,DrawEvent:gml_Object_obj_button_color_Draw_0,DrawGUI:gml_Object_obj_button_color_Draw_64,PreCreateEvent:gml_Object_obj_button_color_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_sqr",spriteIndex:115,
visible:true,parent:34,DrawGUI:gml_Object_obj_button_sqr_Draw_64,PreCreateEvent:gml_Object_obj_button_sqr_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_thin",spriteIndex:119,visible:true,parent:34,DrawGUI:gml_Object_obj_button_thin_Draw_64,PreCreateEvent:gml_Object_obj_button_thin_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_small",spriteIndex:118,visible:true,parent:34,DrawGUI:gml_Object_obj_button_small_Draw_64,PreCreateEvent:gml_Object_obj_button_small_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_med",spriteIndex:113,visible:true,parent:33,CreateEvent:gml_Object_obj_button_med_Create_0,StepNormalEvent:gml_Object_obj_button_med_Step_0,DrawEvent:gml_Object_obj_button_med_Draw_0,DrawGUI:gml_Object_obj_button_med_Draw_64,PreCreateEvent:gml_Object_obj_button_med_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_med_slim",spriteIndex:177,visible:true,parent:33,CreateEvent:gml_Object_obj_button_med_slim_Create_0,StepNormalEvent:gml_Object_obj_button_med_slim_Step_0,
DrawEvent:gml_Object_obj_button_med_slim_Draw_0,DrawGUI:gml_Object_obj_button_med_slim_Draw_64,PreCreateEvent:gml_Object_obj_button_med_slim_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_big",spriteIndex:114,visible:true,parent:34,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_appstore_btn",spriteIndex:195,visible:true,parent:-100,CreateEvent:gml_Object_obj_appstore_btn_Create_0,StepNormalEvent:gml_Object_obj_appstore_btn_Step_0,PreCreateEvent:gml_Object_obj_appstore_btn_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_reddit_btn",spriteIndex:200,visible:true,parent:-100,CreateEvent:gml_Object_obj_reddit_btn_Create_0,StepNormalEvent:gml_Object_obj_reddit_btn_Step_0,PreCreateEvent:gml_Object_obj_reddit_btn_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_store",spriteIndex:115,visible:true,parent:36,CreateEvent:gml_Object_obj_btn_store_Create_0,StepNormalEvent:gml_Object_obj_btn_store_Step_0,PreCreateEvent:gml_Object_obj_btn_store_PreCreate_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_bossprofile",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_bossprofile_Create_0,DrawGUI:gml_Object_obj_bossprofile_Draw_64,KeyPressed_Z:gml_Object_obj_bossprofile_KeyPress_90,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_link_btn",spriteIndex:115,visible:true,parent:-100,CreateEvent:gml_Object_obj_link_btn_Create_0,StepNormalEvent:gml_Object_obj_link_btn_Step_0,PreCreateEvent:gml_Object_obj_link_btn_PreCreate_0,TriggerEvents:[],CollisionEvents:[]}
,{pName:"obj_btn_restore",spriteIndex:112,visible:true,parent:34,CreateEvent:gml_Object_obj_btn_restore_Create_0,ObjAlarm0:gml_Object_obj_btn_restore_Alarm_0,StepNormalEvent:gml_Object_obj_btn_restore_Step_0,PreCreateEvent:gml_Object_obj_btn_restore_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_buy",spriteIndex:112,visible:true,parent:34,ObjAlarm0:gml_Object_obj_btn_buy_Alarm_0,StepNormalEvent:gml_Object_obj_btn_buy_Step_0,PreCreateEvent:gml_Object_obj_btn_buy_PreCreate_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_player_profile",spriteIndex:156,visible:true,parent:34,CreateEvent:gml_Object_obj_player_profile_Create_0,StepNormalEvent:gml_Object_obj_player_profile_Step_0,DrawEvent:gml_Object_obj_player_profile_Draw_0,DrawGUI:gml_Object_obj_player_profile_Draw_64,PreCreateEvent:gml_Object_obj_player_profile_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_player_image",spriteIndex:156,visible:true,parent:-100,CreateEvent:gml_Object_obj_player_image_Create_0,DrawEvent:gml_Object_obj_player_image_Draw_0,
DrawGUI:gml_Object_obj_player_image_Draw_64,PreCreateEvent:gml_Object_obj_player_image_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_btn",spriteIndex:168,visible:true,parent:36,CreateEvent:gml_Object_obj_hof_btn_Create_0,DrawGUI:gml_Object_obj_hof_btn_Draw_64,PreCreateEvent:gml_Object_obj_hof_btn_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_info",spriteIndex:158,visible:true,parent:33,StepNormalEvent:gml_Object_obj_info_Step_0,DrawGUI:gml_Object_obj_info_Draw_64,
DrawEvent:gml_Object_obj_info_Draw_0,PreCreateEvent:gml_Object_obj_info_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_team",spriteIndex:-1,visible:true,parent:34,DrawGUIEnd:gml_Object_obj_button_team_Draw_75,PreCreateEvent:gml_Object_obj_button_team_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_fans",spriteIndex:121,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_fans_Create_0,StepNormalEvent:gml_Object_obj_meter_fans_Step_0,PreCreateEvent:gml_Object_obj_meter_fans_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_team",spriteIndex:121,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_team_Create_0,StepNormalEvent:gml_Object_obj_meter_team_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_condition",spriteIndex:121,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_condition_Create_0,StepNormalEvent:gml_Object_obj_meter_condition_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_facility_stadium",spriteIndex:121,visible:true,
parent:2,CreateEvent:gml_Object_obj_facility_stadium_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_facility_training",spriteIndex:121,visible:true,parent:2,CreateEvent:gml_Object_obj_facility_training_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_facility_rehab",spriteIndex:121,visible:true,parent:2,CreateEvent:gml_Object_obj_facility_rehab_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_schedulebox",spriteIndex:123,visible:true,parent:-100,CreateEvent:gml_Object_obj_schedulebox_Create_0,
DrawEvent:gml_Object_obj_schedulebox_Draw_0,DrawGUI:gml_Object_obj_schedulebox_Draw_64,PreCreateEvent:gml_Object_obj_schedulebox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_offense",spriteIndex:155,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_offense_Create_0,StepNormalEvent:gml_Object_obj_box_offense_Step_0,DrawEvent:gml_Object_obj_box_offense_Draw_0,DrawGUI:gml_Object_obj_box_offense_Draw_64,PreCreateEvent:gml_Object_obj_box_offense_PreCreate_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_ad_retrogoal",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_ad_retrogoal_Create_0,StepNormalEvent:gml_Object_obj_ad_retrogoal_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_defense",spriteIndex:155,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_defense_Create_0,DrawEvent:gml_Object_obj_box_defense_Draw_0,DrawGUI:gml_Object_obj_box_defense_Draw_64,PreCreateEvent:gml_Object_obj_box_defense_PreCreate_0,TriggerEvents:[],CollisionEvents:[]}
,{pName:"obj_box_coachcredit",spriteIndex:155,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_coachcredit_Create_0,StepNormalEvent:gml_Object_obj_box_coachcredit_Step_0,DrawEvent:gml_Object_obj_box_coachcredit_Draw_0,DrawGUI:gml_Object_obj_box_coachcredit_Draw_64,PreCreateEvent:gml_Object_obj_box_coachcredit_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_morale",spriteIndex:155,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_morale_Create_0,StepNormalEvent:gml_Object_obj_box_morale_Step_0,
DrawEvent:gml_Object_obj_box_morale_Draw_0,DrawGUI:gml_Object_obj_box_morale_Draw_64,PreCreateEvent:gml_Object_obj_box_morale_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_vbox",spriteIndex:141,visible:true,parent:33,DrawGUI:gml_Object_obj_vbox_Draw_64,DrawEvent:gml_Object_obj_vbox_Draw_0,PreCreateEvent:gml_Object_obj_vbox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_infobox",spriteIndex:111,visible:true,parent:-100,DrawEvent:gml_Object_obj_infobox_Draw_0,DrawGUI:gml_Object_obj_infobox_Draw_64,
PreCreateEvent:gml_Object_obj_infobox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_smallbox",spriteIndex:155,visible:true,parent:-100,DrawEvent:gml_Object_obj_smallbox_Draw_0,DrawGUI:gml_Object_obj_smallbox_Draw_64,PreCreateEvent:gml_Object_obj_smallbox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_checkbox",spriteIndex:159,visible:true,parent:33,StepNormalEvent:gml_Object_obj_checkbox_Step_0,DrawGUI:gml_Object_obj_checkbox_Draw_64,DrawEvent:gml_Object_obj_checkbox_Draw_0,
PreCreateEvent:gml_Object_obj_checkbox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_roomtitle",spriteIndex:-1,visible:true,parent:-100,DrawEvent:gml_Object_obj_roomtitle_Draw_0,DrawGUI:gml_Object_obj_roomtitle_Draw_64,PreCreateEvent:gml_Object_obj_roomtitle_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_input_box",spriteIndex:161,visible:true,parent:33,StepNormalEvent:gml_Object_obj_input_box_Step_0,DrawGUI:gml_Object_obj_input_box_Draw_64,DrawEvent:gml_Object_obj_input_box_Draw_0,
PreCreateEvent:gml_Object_obj_input_box_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_text_exp",spriteIndex:149,visible:true,parent:-100,DrawGUI:gml_Object_obj_text_exp_Draw_64,DrawEvent:gml_Object_obj_text_exp_Draw_0,PreCreateEvent:gml_Object_obj_text_exp_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_text_watermark",spriteIndex:149,visible:true,parent:-100,LeftButtonPressed:gml_Object_obj_text_watermark_Mouse_4,DrawGUI:gml_Object_obj_text_watermark_Draw_64,DrawEvent:gml_Object_obj_text_watermark_Draw_0,
PreCreateEvent:gml_Object_obj_text_watermark_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_text",spriteIndex:149,visible:true,parent:-100,DrawGUI:gml_Object_obj_text_Draw_64,DrawEvent:gml_Object_obj_text_Draw_0,PreCreateEvent:gml_Object_obj_text_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_txt_credit",spriteIndex:149,visible:true,parent:74,CreateEvent:gml_Object_obj_txt_credit_Create_0,StepNormalEvent:gml_Object_obj_txt_credit_Step_0,PreCreateEvent:gml_Object_obj_txt_credit_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_difficulty_watermark",spriteIndex:149,visible:true,parent:74,CreateEvent:gml_Object_obj_difficulty_watermark_Create_0,PreCreateEvent:gml_Object_obj_difficulty_watermark_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_picks",spriteIndex:149,visible:true,parent:74,CreateEvent:gml_Object_obj_picks_Create_0,DrawGUI:gml_Object_obj_picks_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_msgbg",spriteIndex:147,visible:true,parent:-100,
CreateEvent:gml_Object_obj_msgbg_Create_0,ObjAlarm0:gml_Object_obj_msgbg_Alarm_0,DrawGUI:gml_Object_obj_msgbg_Draw_64,DrawEvent:gml_Object_obj_msgbg_Draw_0,KeyPressed_ESCAPE:gml_Object_obj_msgbg_KeyPress_27,PreCreateEvent:gml_Object_obj_msgbg_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_messagebox",spriteIndex:124,visible:true,parent:-100,DrawEvent:gml_Object_obj_messagebox_Draw_0,DrawGUI:gml_Object_obj_messagebox_Draw_64,PreCreateEvent:gml_Object_obj_messagebox_PreCreate_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_rm_qb_negotiate",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_qb_negotiate_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_division",spriteIndex:120,visible:true,parent:34,StepNormalEvent:gml_Object_obj_division_Step_0,DrawEvent:gml_Object_obj_division_Draw_0,DrawGUI:gml_Object_obj_division_Draw_64,PreCreateEvent:gml_Object_obj_division_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_scoreboard",spriteIndex:178,visible:true,
parent:-100,DrawEvent:gml_Object_obj_scoreboard_Draw_0,DrawGUI:gml_Object_obj_scoreboard_Draw_64,PreCreateEvent:gml_Object_obj_scoreboard_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_conference",spriteIndex:141,visible:true,parent:-100,CreateEvent:gml_Object_obj_conference_Create_0,DestroyEvent:gml_Object_obj_conference_Destroy_0,DrawGUI:gml_Object_obj_conference_Draw_64,DrawEvent:gml_Object_obj_conference_Draw_0,PreCreateEvent:gml_Object_obj_conference_PreCreate_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_matchline",spriteIndex:88,visible:true,parent:-100,CreateEvent:gml_Object_obj_matchline_Create_0,StepNormalEvent:gml_Object_obj_matchline_Step_0,DrawEvent:gml_Object_obj_matchline_Draw_0,DrawGUI:gml_Object_obj_matchline_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_matchline_Gesture_69,PreCreateEvent:gml_Object_obj_matchline_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_headshot",spriteIndex:157,visible:true,parent:33,CreateEvent:gml_Object_obj_headshot_Create_0,
StepNormalEvent:gml_Object_obj_headshot_Step_0,DrawEvent:gml_Object_obj_headshot_Draw_0,DrawGUI:gml_Object_obj_headshot_Draw_64,PreCreateEvent:gml_Object_obj_headshot_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_attribute",spriteIndex:122,visible:true,parent:-100,DrawEvent:gml_Object_obj_attribute_Draw_0,DrawGUI:gml_Object_obj_attribute_Draw_64,PreCreateEvent:gml_Object_obj_attribute_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_xp_player",spriteIndex:121,visible:true,
parent:-100,DrawEvent:gml_Object_obj_xp_player_Draw_0,DrawGUI:gml_Object_obj_xp_player_Draw_64,PreCreateEvent:gml_Object_obj_xp_player_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_salarycap",spriteIndex:121,visible:true,parent:-100,CreateEvent:gml_Object_obj_salarycap_Create_0,DrawEvent:gml_Object_obj_salarycap_Draw_0,DrawGUI:gml_Object_obj_salarycap_Draw_64,PreCreateEvent:gml_Object_obj_salarycap_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_notification",spriteIndex:-1,
visible:true,persistent:true,parent:79,CreateEvent:gml_Object_obj_notification_Create_0,ObjAlarm0:gml_Object_obj_notification_Alarm_0,StepNormalEvent:gml_Object_obj_notification_Step_0,DrawGUI:gml_Object_obj_notification_Draw_64,PreCreateEvent:gml_Object_obj_notification_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_achievements",spriteIndex:140,visible:true,parent:66,CreateEvent:gml_Object_obj_hof_achievements_Create_0,StepNormalEvent:gml_Object_obj_hof_achievements_Step_0,DrawGUI:gml_Object_obj_hof_achievements_Draw_64,
GestureGlobalFlickEvent:gml_Object_obj_hof_achievements_Gesture_69,PreCreateEvent:gml_Object_obj_hof_achievements_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_retrobowl_wins",spriteIndex:140,visible:true,parent:66,CreateEvent:gml_Object_obj_hof_retrobowl_wins_Create_0,DestroyEvent:gml_Object_obj_hof_retrobowl_wins_Destroy_0,DrawGUI:gml_Object_obj_hof_retrobowl_wins_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_retrobowl_history",spriteIndex:140,visible:true,parent:66,
CreateEvent:gml_Object_obj_hof_retrobowl_history_Create_0,DestroyEvent:gml_Object_obj_hof_retrobowl_history_Destroy_0,StepNormalEvent:gml_Object_obj_hof_retrobowl_history_Step_0,DrawGUI:gml_Object_obj_hof_retrobowl_history_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_hof_retrobowl_history_Gesture_69,PreCreateEvent:gml_Object_obj_hof_retrobowl_history_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_history",spriteIndex:140,visible:true,parent:66,CreateEvent:gml_Object_obj_hof_history_Create_0,
StepNormalEvent:gml_Object_obj_hof_history_Step_0,DrawGUI:gml_Object_obj_hof_history_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_hof_history_Gesture_69,PreCreateEvent:gml_Object_obj_hof_history_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_records_coach",spriteIndex:140,visible:true,parent:66,CreateEvent:gml_Object_obj_hof_records_coach_Create_0,StepNormalEvent:gml_Object_obj_hof_records_coach_Step_0,DrawGUI:gml_Object_obj_hof_records_coach_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_hof_records_coach_Gesture_69,
PreCreateEvent:gml_Object_obj_hof_records_coach_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_records_player",spriteIndex:140,visible:true,parent:66,CreateEvent:gml_Object_obj_hof_records_player_Create_0,StepNormalEvent:gml_Object_obj_hof_records_player_Step_0,DrawGUI:gml_Object_obj_hof_records_player_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_hof_records_player_Gesture_69,PreCreateEvent:gml_Object_obj_hof_records_player_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_credits",
spriteIndex:-1,visible:true,parent:72,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_master",spriteIndex:-1,persistent:true,parent:-100,CreateEvent:gml_Object_obj_master_Create_0,ObjAlarm0:gml_Object_obj_master_Alarm_0,ObjAlarm1:gml_Object_obj_master_Alarm_1,StepNormalEvent:gml_Object_obj_master_Step_0,SystemEvent:gml_Object_obj_master_Other_75,StartRoomEvent:gml_Object_obj_master_Other_4,KeyPressed_C:gml_Object_obj_master_KeyPress_67,KeyPressed_S:gml_Object_obj_master_KeyPress_83,KeyPressed_0:gml_Object_obj_master_KeyPress_48,
KeyPressed_B:gml_Object_obj_master_KeyPress_66,KeyPressed_N:gml_Object_obj_master_KeyPress_78,KeyPressed_D:gml_Object_obj_master_KeyPress_68,KeyPressed_R:gml_Object_obj_master_KeyPress_82,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_camera",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_camera_Create_0,ObjAlarm0:gml_Object_obj_camera_Alarm_0,StepEndEvent:gml_Object_obj_camera_Step_2,StartRoomEvent:gml_Object_obj_camera_Other_4,EndRoomEvent:gml_Object_obj_camera_Other_5,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_scanlines",spriteIndex:-1,visible:true,persistent:true,parent:-100,CreateEvent:gml_Object_obj_scanlines_Create_0,DrawGUIEnd:gml_Object_obj_scanlines_Draw_75,PreCreateEvent:gml_Object_obj_scanlines_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_intercept_point",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_intercept_point_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_credit",spriteIndex:93,visible:true,parent:-100,CreateEvent:gml_Object_obj_credit_Create_0,
DestroyEvent:gml_Object_obj_credit_Destroy_0,StepNormalEvent:gml_Object_obj_credit_Step_0,DrawEvent:gml_Object_obj_credit_Draw_0,DrawGUIEnd:gml_Object_obj_credit_Draw_75,PreCreateEvent:gml_Object_obj_credit_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_kongregate",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_kongregate_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_store_async",spriteIndex:-1,visible:true,persistent:true,parent:-100,CreateEvent:gml_Object_obj_store_async_Create_0,
WebIAPEvent:gml_Object_obj_store_async_Other_66,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_controller",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_controller_Create_0,ObjAlarm0:gml_Object_obj_controller_Alarm_0,ObjAlarm1:gml_Object_obj_controller_Alarm_1,StepNormalEvent:gml_Object_obj_controller_Step_0,DrawGUI:gml_Object_obj_controller_Draw_64,DrawEventBegin:gml_Object_obj_controller_Draw_72,DrawEvent:gml_Object_obj_controller_Draw_0,KeyPressed_ENTER:gml_Object_obj_controller_KeyPress_13,
KeyPressed_F:gml_Object_obj_controller_KeyPress_70,KeyPressed_P:gml_Object_obj_controller_KeyPress_80,KeyPressed_SPACE:gml_Object_obj_controller_KeyPress_32,KeyPressed_T:gml_Object_obj_controller_KeyPress_84,KeyPressed_K:gml_Object_obj_controller_KeyPress_75,GestureGlobalFlickEvent:gml_Object_obj_controller_Gesture_69,GestureGlobalTapEvent:gml_Object_obj_controller_Gesture_64,GestureGlobalDragMoveEvent:gml_Object_obj_controller_Gesture_67,GestureGlobalDragStartEvent:gml_Object_obj_controller_Gesture_66,
GestureGlobalDragEndEvent:gml_Object_obj_controller_Gesture_68,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_matchob",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_matchob_Create_0,CleanUpEvent:gml_Object_obj_matchob_CleanUp_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_player",spriteIndex:-1,visible:true,parent:105,CreateEvent:gml_Object_obj_player_Create_0,DestroyEvent:gml_Object_obj_player_Destroy_0,StepNormalEvent:gml_Object_obj_player_Step_0,StepEndEvent:gml_Object_obj_player_Step_2,
AnimationEndEvent:gml_Object_obj_player_Other_7,DrawEvent:gml_Object_obj_player_Draw_0,DrawEventBegin:gml_Object_obj_player_Draw_72,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playerOF",spriteIndex:39,visible:true,parent:106,CreateEvent:gml_Object_obj_playerOF_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playerDF",spriteIndex:39,visible:true,parent:106,CreateEvent:gml_Object_obj_playerDF_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_dummy",spriteIndex:15,visible:true,
parent:-100,StepNormalEvent:gml_Object_obj_dummy_Step_0,DrawEvent:gml_Object_obj_dummy_Draw_0,DrawEventBegin:gml_Object_obj_dummy_Draw_72,PreCreateEvent:gml_Object_obj_dummy_PreCreate_0,TriggerEvents:[],CollisionEvents:[106,gml_Object_obj_dummy_Collision_obj_player]},{pName:"obj_ball",spriteIndex:3,visible:true,parent:105,CreateEvent:gml_Object_obj_ball_Create_0,ObjAlarm0:gml_Object_obj_ball_Alarm_0,ObjAlarm1:gml_Object_obj_ball_Alarm_1,StepNormalEvent:gml_Object_obj_ball_Step_0,StepEndEvent:gml_Object_obj_ball_Step_2,
DrawEvent:gml_Object_obj_ball_Draw_0,DrawGUI:gml_Object_obj_ball_Draw_64,TriggerEvents:[],CollisionEvents:[109,gml_Object_obj_ball_Collision_obj_dummy]},{pName:"obj_metaball",spriteIndex:-1,visible:true,parent:110,CreateEvent:gml_Object_obj_metaball_Create_0,StepNormalEvent:gml_Object_obj_metaball_Step_0,DrawEvent:gml_Object_obj_metaball_Draw_0,DrawEventEnd:gml_Object_obj_metaball_Draw_73,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_match_msg",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_match_msg_Create_0,
ObjAlarm0:gml_Object_obj_match_msg_Alarm_0,DrawGUI:gml_Object_obj_match_msg_Draw_64,PreCreateEvent:gml_Object_obj_match_msg_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_fieldtxt",spriteIndex:-1,visible:true,parent:-100,StepNormalEvent:gml_Object_obj_fieldtxt_Step_0,DrawEvent:gml_Object_obj_fieldtxt_Draw_0,PreCreateEvent:gml_Object_obj_fieldtxt_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_goal_stand",spriteIndex:17,visible:true,parent:-100,CreateEvent:gml_Object_obj_goal_stand_Create_0,
StepNormalEvent:gml_Object_obj_goal_stand_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_goal_post",spriteIndex:20,visible:true,parent:-100,CreateEvent:gml_Object_obj_goal_post_Create_0,StepNormalEvent:gml_Object_obj_goal_post_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_boundary",spriteIndex:16,visible:true,parent:-100,StepNormalEvent:gml_Object_obj_boundary_Step_0,DrawEvent:gml_Object_obj_boundary_Draw_0,PreCreateEvent:gml_Object_obj_boundary_PreCreate_0,TriggerEvents:[],CollisionEvents:[]}
,{pName:"obj_weather",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_weather_Create_0,StepNormalEvent:gml_Object_obj_weather_Step_0,DrawGUI:gml_Object_obj_weather_Draw_64,PreCreateEvent:gml_Object_obj_weather_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_raindrop",spriteIndex:22,visible:true,parent:-100,CreateEvent:gml_Object_obj_raindrop_Create_0,StepNormalEvent:gml_Object_obj_raindrop_Step_0,DrawEvent:gml_Object_obj_raindrop_Draw_0,TriggerEvents:[],CollisionEvents:[]}
,{pName:"obj_season_tally",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_season_tally_Create_0,StepNormalEvent:gml_Object_obj_season_tally_Step_0,DrawGUI:gml_Object_obj_season_tally_Draw_64,DrawGUIBegin:gml_Object_obj_season_tally_Draw_74,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_snowflake",spriteIndex:25,visible:true,parent:-100,CreateEvent:gml_Object_obj_snowflake_Create_0,StepNormalEvent:gml_Object_obj_snowflake_Step_0,DrawEventEnd:gml_Object_obj_snowflake_Draw_73,
DrawEvent:gml_Object_obj_snowflake_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_audible",spriteIndex:79,visible:true,parent:33,CreateEvent:gml_Object_obj_btn_audible_Create_0,StepNormalEvent:gml_Object_obj_btn_audible_Step_0,DrawGUI:gml_Object_obj_btn_audible_Draw_64,DrawEvent:gml_Object_obj_btn_audible_Draw_0,DrawGUIEnd:gml_Object_obj_btn_audible_Draw_75,PreCreateEvent:gml_Object_obj_btn_audible_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_timeout",spriteIndex:85,
visible:true,parent:33,CreateEvent:gml_Object_obj_btn_timeout_Create_0,StepNormalEvent:gml_Object_obj_btn_timeout_Step_0,DrawGUI:gml_Object_obj_btn_timeout_Draw_64,DrawEvent:gml_Object_obj_btn_timeout_Draw_0,PreCreateEvent:gml_Object_obj_btn_timeout_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_fieldgoal",spriteIndex:80,visible:true,parent:33,CreateEvent:gml_Object_obj_btn_fieldgoal_Create_0,StepNormalEvent:gml_Object_obj_btn_fieldgoal_Step_0,DrawGUI:gml_Object_obj_btn_fieldgoal_Draw_64,
DrawEvent:gml_Object_obj_btn_fieldgoal_Draw_0,DrawGUIEnd:gml_Object_obj_btn_fieldgoal_Draw_75,PreCreateEvent:gml_Object_obj_btn_fieldgoal_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_splash",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_splash_Create_0,PreCreateEvent:gml_Object_obj_splash_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_details",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_details_Create_0,PreCreateEvent:gml_Object_obj_details_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_choose_team",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_choose_team_Create_0,PreCreateEvent:gml_Object_obj_choose_team_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_choose_face",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_choose_face_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_team_editor",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_team_editor_Create_0,
PreCreateEvent:gml_Object_obj_team_editor_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_edit_team",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_edit_team_Create_0,StepNormalEvent:gml_Object_obj_edit_team_Step_0,PreCreateEvent:gml_Object_obj_edit_team_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_colbox",spriteIndex:161,visible:true,parent:-100,DrawGUI:gml_Object_obj_colbox_Draw_64,DrawEvent:gml_Object_obj_colbox_Draw_0,PreCreateEvent:gml_Object_obj_colbox_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_colpicker",spriteIndex:251,visible:true,parent:-100,CreateEvent:gml_Object_obj_colpicker_Create_0,StepNormalEvent:gml_Object_obj_colpicker_Step_0,DrawGUI:gml_Object_obj_colpicker_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_uniform",spriteIndex:166,visible:true,parent:-100,CreateEvent:gml_Object_obj_uniform_Create_0,DrawGUI:gml_Object_obj_uniform_Draw_64,DrawEvent:gml_Object_obj_uniform_Draw_0,PreCreateEvent:gml_Object_obj_uniform_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_frontoffice",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_frontoffice_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_freeagents2",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_freeagents2_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_viewhires",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_viewhires_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_home",
spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_home_Create_0,StepNormalEvent:gml_Object_obj_home_Step_0,DrawEvent:gml_Object_obj_home_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_options",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_options_Create_0,StepNormalEvent:gml_Object_obj_options_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_players",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_hof_players_Create_0,TriggerEvents:[],
CollisionEvents:[]},{pName:"obj_watermark",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_watermark_Create_0,StepNormalEvent:gml_Object_obj_watermark_Step_0,DrawGUI:gml_Object_obj_watermark_Draw_64,DrawGUIBegin:gml_Object_obj_watermark_Draw_74,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_league",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_league_Create_0,PreCreateEvent:gml_Object_obj_league_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playoffs",
spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_playoffs_Create_0,PreCreateEvent:gml_Object_obj_playoffs_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playoffs2",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_playoffs2_Create_0,PreCreateEvent:gml_Object_obj_playoffs2_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_prematch",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_prematch_Create_0,DrawGUI:gml_Object_obj_prematch_Draw_64,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_helmet",spriteIndex:87,visible:true,parent:-100,CreateEvent:gml_Object_obj_helmet_Create_0,DrawEvent:gml_Object_obj_helmet_Draw_0,DrawGUI:gml_Object_obj_helmet_Draw_64,PreCreateEvent:gml_Object_obj_helmet_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_postmatch",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_postmatch_Create_0,StepNormalEvent:gml_Object_obj_postmatch_Step_0,PreCreateEvent:gml_Object_obj_postmatch_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_xp_update",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_xp_update_Create_0,DestroyEvent:gml_Object_obj_xp_update_Destroy_0,StepNormalEvent:gml_Object_obj_xp_update_Step_0,DrawEvent:gml_Object_obj_xp_update_Draw_0,DrawGUI:gml_Object_obj_xp_update_Draw_64,PreCreateEvent:gml_Object_obj_xp_update_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playerprofile_rm",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_playerprofile_rm_Create_0,
StepNormalEvent:gml_Object_obj_playerprofile_rm_Step_0,DrawGUI:gml_Object_obj_playerprofile_rm_Draw_64,KeyPressed_X:gml_Object_obj_playerprofile_rm_KeyPress_88,KeyPressed_I:gml_Object_obj_playerprofile_rm_KeyPress_73,KeyPressed_M:gml_Object_obj_playerprofile_rm_KeyPress_77,KeyPressed_D:gml_Object_obj_playerprofile_rm_KeyPress_68,KeyPressed_O:gml_Object_obj_playerprofile_rm_KeyPress_79,KeyPressed_R:gml_Object_obj_playerprofile_rm_KeyPress_82,KeyPressed_Z:gml_Object_obj_playerprofile_rm_KeyPress_90,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_stats_player",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_stats_player_Create_0,DestroyEvent:gml_Object_obj_stats_player_Destroy_0,DrawEvent:gml_Object_obj_stats_player_Draw_0,DrawGUI:gml_Object_obj_stats_player_Draw_64,PreCreateEvent:gml_Object_obj_stats_player_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_tag_kr",spriteIndex:263,visible:true,parent:36,DrawGUI:gml_Object_obj_tag_kr_Draw_64,PreCreateEvent:gml_Object_obj_tag_kr_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meeting_player",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_meeting_player_Create_0,PreCreateEvent:gml_Object_obj_meeting_player_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_staffprofile",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_staffprofile_Create_0,StepNormalEvent:gml_Object_obj_staffprofile_Step_0,DrawGUI:gml_Object_obj_staffprofile_Draw_64,KeyPressed_X:gml_Object_obj_staffprofile_KeyPress_88,
KeyPressed_Z:gml_Object_obj_staffprofile_KeyPress_90,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_roster",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_roster_Create_0,PreCreateEvent:gml_Object_obj_roster_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_winners",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_winners_Create_0,ObjAlarm0:gml_Object_obj_winners_Alarm_0,DrawEvent:gml_Object_obj_winners_Draw_0,PreCreateEvent:gml_Object_obj_winners_PreCreate_0,
TriggerEvents:[],CollisionEvents:[]},{pName:"obj_draft",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_draft_Create_0,PreCreateEvent:gml_Object_obj_draft_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_freeagents",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_freeagents_Create_0,PreCreateEvent:gml_Object_obj_freeagents_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_starrating",spriteIndex:121,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_starrating_Create_0,
StepNormalEvent:gml_Object_obj_meter_starrating_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_training",spriteIndex:-1,visible:true,parent:-100,TriggerEvents:[],CollisionEvents:[]}],AnimCurves:[],Sequences:[],FiltersAndEffectDefs:[],GMRooms:[{pName:"rm_master",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,viewClearScreen:false,pCode:gml_Room_rm_master_Create,backgrounds:[],views:[{wview:960,wport:940},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,
wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:0,index:97,id:100002,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:0,index:99,id:100004,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:8,index:22,id:100003,pCode:gml_RoomCC_rm_master_2_Create,
pPreCreateCode:gml_RoomCC_rm_master_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:52,index:34,id:100006,pPreCreateCode:gml_RoomCC_rm_master_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:71,y:41,index:66,id:100005,pPreCreateCode:gml_RoomCC_rm_master_4_PreCreate,rotation:0,scaleX:2.1000001430511475,scaleY:1.671875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:92,index:34,id:100007,pPreCreateCode:gml_RoomCC_rm_master_5_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:132,index:34,id:100008,pPreCreateCode:gml_RoomCC_rm_master_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:52,index:66,id:100012,pPreCreateCode:gml_RoomCC_rm_master_7_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:52,index:36,id:100009,pPreCreateCode:gml_RoomCC_rm_master_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:80,y:88,index:36,id:100010,pPreCreateCode:gml_RoomCC_rm_master_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:132,index:36,id:100011,pPreCreateCode:gml_RoomCC_rm_master_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:91,index:66,id:100013,pPreCreateCode:gml_RoomCC_rm_master_11_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:127,
y:131,index:66,id:100014,pPreCreateCode:gml_RoomCC_rm_master_12_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:171,index:36,id:100016,pPreCreateCode:gml_RoomCC_rm_master_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:127,y:171,index:66,id:100017,pPreCreateCode:gml_RoomCC_rm_master_14_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:171,index:34,id:100018,pPreCreateCode:gml_RoomCC_rm_master_15_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:211,index:36,id:100019,pPreCreateCode:gml_RoomCC_rm_master_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:127,y:211,index:66,id:100020,pPreCreateCode:gml_RoomCC_rm_master_17_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:211,index:34,id:100021,pPreCreateCode:gml_RoomCC_rm_master_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:32,y:0,index:124,id:100015,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:124,index:20,id:100001,pCode:gml_RoomCC_rm_master_20_Create,pPreCreateCode:gml_RoomCC_rm_master_20_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1.470588207244873,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:116,index:66,id:100000,pCode:gml_RoomCC_rm_master_21_Create,pPreCreateCode:gml_RoomCC_rm_master_21_PreCreate,rotation:0,scaleX:0.6499999761581421,
scaleY:0.5,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:0,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Exhibition",id:1,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100000,100001]},{pName:"Instances",id:2,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],
icount:20,iinstIDs:[100002,100003,100004,100005,100006,100007,100008,100009,100010,100011,100012,100013,100014,100015,100016,100017,100018,100019,100020,100021]},{pName:"Background",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:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_title",width:480,height:270,speed:0,colour:0,LayerCount:2,showColour:false,
viewClearScreen:false,backgrounds:[],views:[{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},{wview:1366,hview:768,wport:1366,hport:768}],pInstances:[{x:0,y:0,index:28,id:100022,pPreCreateCode:gml_RoomCC_rm_title_0_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"Instances",id:4,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100022]},{pName:"Background",id:5,type:1,depth:100,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:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_details",
width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_details_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,
wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100023,pPreCreateCode:gml_RoomCC_rm_details_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:48,index:66,id:100024,pPreCreateCode:gml_RoomCC_rm_details_1_PreCreate,rotation:0,scaleX:1.7000000476837158,scaleY:0.5625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100027,pPreCreateCode:gml_RoomCC_rm_details_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:104,y:136,index:66,id:100029,pPreCreateCode:gml_RoomCC_rm_details_3_PreCreate,rotation:0,scaleX:1.7000000476837158,scaleY:0.625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:272,y:152,index:34,id:100030,pPreCreateCode:gml_RoomCC_rm_details_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:64,index:71,id:100025,pPreCreateCode:gml_RoomCC_rm_details_5_PreCreate,rotation:0,scaleX:9.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:208,y:88,index:71,id:100026,pPreCreateCode:gml_RoomCC_rm_details_6_PreCreate,rotation:0,scaleX:9.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:72,index:72,id:100032,pPreCreateCode:gml_RoomCC_rm_details_7_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:96,index:72,id:100033,pPreCreateCode:gml_RoomCC_rm_details_8_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:152,index:66,id:100028,pPreCreateCode:gml_RoomCC_rm_details_9_PreCreate,
rotation:0,scaleX:0.9000000953674316,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:168,index:74,id:100034,pPreCreateCode:gml_RoomCC_rm_details_10_PreCreate,rotation:0,scaleX:2.6666665077209473,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:48,index:66,id:100035,pPreCreateCode:gml_RoomCC_rm_details_11_PreCreate,rotation:0,scaleX:0.5,scaleY:0.5625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:192,index:69,id:100037,pPreCreateCode:gml_RoomCC_rm_details_12_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:200,index:72,id:100038,pPreCreateCode:gml_RoomCC_rm_details_13_PreCreate,rotation:0,scaleX:5.666666507720947,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:200,y:232,index:20,id:100039,pPreCreateCode:gml_RoomCC_rm_details_14_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:20,id:100040,pPreCreateCode:gml_RoomCC_rm_details_15_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:64,index:85,id:100036,pPreCreateCode:gml_RoomCC_rm_details_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:125,id:100031,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:6,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",
id:7,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:18,iinstIDs:[100023,100024,100025,100026,100027,100028,100029,100030,100031,100032,100033,100034,100035,100036,100037,100038,100039,100040]},{pName:"Background",id:8,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}
]},{pName:"rm_choose_team",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_choose_team_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,
hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100041,pPreCreateCode:gml_RoomCC_rm_choose_team_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100044,pPreCreateCode:gml_RoomCC_rm_choose_team_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:32,index:34,id:100043,pPreCreateCode:gml_RoomCC_rm_choose_team_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:248,y:32,index:34,id:100042,pPreCreateCode:gml_RoomCC_rm_choose_team_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:126,id:100045,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:9,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:10,type:2,depth:100,x:0,
y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100041,100042,100043,100044,100045]},{pName:"Background",id:11,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_choose_face",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,
viewClearScreen:false,pCode:gml_Room_rm_choose_face_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100046,pPreCreateCode:gml_RoomCC_rm_choose_face_0_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:20,index:36,id:100048,pPreCreateCode:gml_RoomCC_rm_choose_face_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:20,index:36,id:100049,pPreCreateCode:gml_RoomCC_rm_choose_face_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:36,index:74,id:100050,pPreCreateCode:gml_RoomCC_rm_choose_face_3_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:240,index:20,id:100051,pPreCreateCode:gml_RoomCC_rm_choose_face_4_PreCreate,rotation:0,scaleX:0.7575757503509521,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:127,id:100047,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:12,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]}
,{pName:"Instances",id:13,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100046,100047,100048,100049,100050,100051]},{pName:"Background",id:14,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_draft",width:480,height:270,speed:0,
colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_draft_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{
x:224,y:8,index:70,id:100052,pPreCreateCode:gml_RoomCC_rm_draft_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:232,index:36,id:100060,pPreCreateCode:gml_RoomCC_rm_draft_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:88,id:100053,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:396,y:236,index:74,id:100054,pPreCreateCode:gml_RoomCC_rm_draft_3_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:112,index:36,id:100055,pPreCreateCode:gml_RoomCC_rm_draft_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:112,index:36,id:100056,pPreCreateCode:gml_RoomCC_rm_draft_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:35,index:74,id:100057,pPreCreateCode:gml_RoomCC_rm_draft_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:0,y:-16,index:154,id:100058,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:232,index:34,id:100059,pPreCreateCode:gml_RoomCC_rm_draft_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:52,id:100061,pPreCreateCode:gml_RoomCC_rm_draft_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:-240,index:72,id:100062,pPreCreateCode:gml_RoomCC_rm_draft_10_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100063,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:396,y:253,index:77,id:100064,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:15,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:16,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,
visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:13,iinstIDs:[100052,100053,100054,100055,100056,100057,100058,100059,100060,100061,100062,100063,100064]},{pName:"Background",id:17,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_edit_team",width:480,height:270,speed:0,colour:0,LayerCount:5,
showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_edit_team_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,
index:70,id:100082,pPreCreateCode:gml_RoomCC_rm_edit_team_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100084,pPreCreateCode:gml_RoomCC_rm_edit_team_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100085,pPreCreateCode:gml_RoomCC_rm_edit_team_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:34,id:100086,pPreCreateCode:gml_RoomCC_rm_edit_team_3_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:40,index:66,id:100088,pPreCreateCode:gml_RoomCC_rm_edit_team_4_PreCreate,rotation:0,scaleX:1.149999976158142,scaleY:0.6875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:18,y:152,index:71,id:100089,pPreCreateCode:gml_RoomCC_rm_edit_team_5_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:130,y:152,index:71,id:100090,pPreCreateCode:gml_RoomCC_rm_edit_team_6_PreCreate,rotation:0,
scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:186,y:152,index:71,id:100091,pPreCreateCode:gml_RoomCC_rm_edit_team_7_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:74,y:152,index:71,id:100092,pPreCreateCode:gml_RoomCC_rm_edit_team_8_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:136,index:66,id:100083,pPreCreateCode:gml_RoomCC_rm_edit_team_9_PreCreate,rotation:0,scaleX:2.9000000953674316,
scaleY:0.6875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:242,y:152,index:71,id:100093,pPreCreateCode:gml_RoomCC_rm_edit_team_10_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:298,y:152,index:71,id:100094,pPreCreateCode:gml_RoomCC_rm_edit_team_11_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:354,y:152,index:71,id:100095,pPreCreateCode:gml_RoomCC_rm_edit_team_12_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:410,y:152,index:71,id:100096,pPreCreateCode:gml_RoomCC_rm_edit_team_13_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:176,index:35,id:100097,pPreCreateCode:gml_RoomCC_rm_edit_team_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:72,y:176,index:35,id:100098,pPreCreateCode:gml_RoomCC_rm_edit_team_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:128,y:176,index:35,id:100099,pPreCreateCode:gml_RoomCC_rm_edit_team_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:176,index:35,id:100100,pPreCreateCode:gml_RoomCC_rm_edit_team_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:176,index:35,id:100101,pPreCreateCode:gml_RoomCC_rm_edit_team_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:296,y:176,index:35,id:100102,
pPreCreateCode:gml_RoomCC_rm_edit_team_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:176,index:35,id:100103,pPreCreateCode:gml_RoomCC_rm_edit_team_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:408,y:176,index:35,id:100104,pPreCreateCode:gml_RoomCC_rm_edit_team_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:294,y:88,index:38,id:100105,pPreCreateCode:gml_RoomCC_rm_edit_team_22_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:338,y:88,index:38,id:100106,pPreCreateCode:gml_RoomCC_rm_edit_team_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:382,y:88,index:38,id:100107,pPreCreateCode:gml_RoomCC_rm_edit_team_24_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:314,y:65,index:132,id:100108,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:358,
y:65,index:132,id:100109,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:40,index:66,id:100074,pPreCreateCode:gml_RoomCC_rm_edit_team_27_PreCreate,rotation:0,scaleX:1.7000000476837158,scaleY:0.6875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:88,index:72,id:100075,pPreCreateCode:gml_RoomCC_rm_edit_team_28_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:112,index:72,id:100076,pPreCreateCode:gml_RoomCC_rm_edit_team_29_PreCreate,
rotation:0,scaleX:2.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:80,index:71,id:100077,pPreCreateCode:gml_RoomCC_rm_edit_team_30_PreCreate,rotation:0,scaleX:9.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:104,index:71,id:100078,pPreCreateCode:gml_RoomCC_rm_edit_team_31_PreCreate,rotation:0,scaleX:3,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:64,index:72,id:100079,pPreCreateCode:gml_RoomCC_rm_edit_team_32_PreCreate,rotation:0,scaleX:2.5,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:64,index:74,id:100080,pPreCreateCode:gml_RoomCC_rm_edit_team_33_PreCreate,rotation:0,scaleX:3.1666669845581055,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:104,index:37,id:100081,pPreCreateCode:gml_RoomCC_rm_edit_team_34_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:40,index:66,id:100065,pPreCreateCode:gml_RoomCC_rm_edit_team_35_PreCreate,rotation:0,scaleX:1.7000000476837158,scaleY:0.6875,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:104,index:37,id:100066,pPreCreateCode:gml_RoomCC_rm_edit_team_36_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:56,index:71,id:100069,pPreCreateCode:gml_RoomCC_rm_edit_team_37_PreCreate,rotation:0,scaleX:3,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:88,y:64,index:72,id:100067,pPreCreateCode:gml_RoomCC_rm_edit_team_38_PreCreate,rotation:0,scaleX:2.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:88,y:88,index:72,id:100068,pPreCreateCode:gml_RoomCC_rm_edit_team_39_PreCreate,rotation:0,scaleX:2.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:80,index:71,id:100070,pPreCreateCode:gml_RoomCC_rm_edit_team_40_PreCreate,rotation:0,scaleX:3,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:104,index:18,id:100071,pPreCreateCode:gml_RoomCC_rm_edit_team_41_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:162,y:56,index:71,id:100072,
pPreCreateCode:gml_RoomCC_rm_edit_team_42_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:80,index:35,id:100073,pPreCreateCode:gml_RoomCC_rm_edit_team_43_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:426,y:88,index:38,id:100110,pPreCreateCode:gml_RoomCC_rm_edit_team_44_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:402,y:65,index:132,id:100111,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:446,y:65,index:132,id:100112,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:129,id:100087,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:18,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_Details2",id:19,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:0,
effectEnabled:1,effectType:"",effectProperties:[],icount:9,iinstIDs:[100065,100066,100067,100068,100069,100070,100071,100072,100073]},{pName:"Instances_Details1",id:20,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:8,iinstIDs:[100074,100075,100076,100077,100078,100079,100080,100081]},{pName:"Instances",id:21,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:31,iinstIDs:[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]},{pName:"Background",id:22,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_freeagents",width:480,
height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_freeagents_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,
hport:768}],pInstances:[{x:48,y:232,index:88,id:100113,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100114,pPreCreateCode:gml_RoomCC_rm_freeagents_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:232,index:34,id:100115,pPreCreateCode:gml_RoomCC_rm_freeagents_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:8,index:70,id:100116,pPreCreateCode:gml_RoomCC_rm_freeagents_3_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:155,id:100117,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:52,id:100118,pPreCreateCode:gml_RoomCC_rm_freeagents_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100119,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:388,y:253,index:77,id:100120,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:388,y:237,index:72,id:100121,pPreCreateCode:gml_RoomCC_rm_freeagents_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:23,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:24,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:9,
iinstIDs:[100113,100114,100115,100116,100117,100118,100119,100120,100121]},{pName:"Background",id:25,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_freeagents2",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_freeagents2_Create,
backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:48,y:232,index:88,id:100122,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:8,y:232,index:36,id:100123,pPreCreateCode:gml_RoomCC_rm_freeagents2_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:232,index:34,id:100124,pPreCreateCode:gml_RoomCC_rm_freeagents2_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:8,index:70,id:100125,pPreCreateCode:gml_RoomCC_rm_freeagents2_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:-240,index:72,id:100126,
pPreCreateCode:gml_RoomCC_rm_freeagents2_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:81,y:117,index:74,id:100127,pPreCreateCode:gml_RoomCC_rm_freeagents2_5_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:161,y:117,index:74,id:100128,pPreCreateCode:gml_RoomCC_rm_freeagents2_6_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:117,index:74,
id:100129,pPreCreateCode:gml_RoomCC_rm_freeagents2_7_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:321,y:117,index:74,id:100130,pPreCreateCode:gml_RoomCC_rm_freeagents2_8_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:401,y:117,index:74,id:100131,pPreCreateCode:gml_RoomCC_rm_freeagents2_9_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:121,y:217,index:74,id:100132,pPreCreateCode:gml_RoomCC_rm_freeagents2_10_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:32,index:49,id:100133,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:32,index:49,id:100134,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:32,index:49,id:100135,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:288,y:32,index:49,id:100136,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:32,index:49,id:100137,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:88,y:132,index:49,id:100138,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:201,y:217,index:74,id:100139,pPreCreateCode:gml_RoomCC_rm_freeagents2_17_PreCreate,rotation:0,scaleX:1.0175440311431885,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:132,index:49,id:100140,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:281,y:217,index:74,id:100141,pPreCreateCode:gml_RoomCC_rm_freeagents2_19_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:132,index:49,id:100142,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:361,y:217,index:74,id:100143,
pPreCreateCode:gml_RoomCC_rm_freeagents2_21_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:328,y:132,index:49,id:100144,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-16,index:134,id:100148,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:52,id:100145,pPreCreateCode:gml_RoomCC_rm_freeagents2_24_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:440,y:232,index:44,id:100146,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100147,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:112,index:36,id:100149,pPreCreateCode:gml_RoomCC_rm_freeagents2_27_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:112,index:36,id:100150,pPreCreateCode:gml_RoomCC_rm_freeagents2_28_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:232,index:39,id:100151,pPreCreateCode:gml_RoomCC_rm_freeagents2_29_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:26,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:27,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],
icount:30,iinstIDs:[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]},{pName:"Background",id:28,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_frontoffice",
width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_frontoffice_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,
wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100152,pPreCreateCode:gml_RoomCC_rm_frontoffice_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100153,pPreCreateCode:gml_RoomCC_rm_frontoffice_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:89,index:57,id:100154,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:138,index:58,id:100155,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:187,index:59,id:100156,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:89,index:20,id:100157,pPreCreateCode:gml_RoomCC_rm_frontoffice_5_PreCreate,rotation:0,scaleX:1.9393939971923828,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:138,index:20,id:100158,pPreCreateCode:gml_RoomCC_rm_frontoffice_6_PreCreate,rotation:0,scaleX:1.9393939971923828,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:232,y:187,index:20,id:100159,pPreCreateCode:gml_RoomCC_rm_frontoffice_7_PreCreate,rotation:0,scaleX:1.9393939971923828,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:52,id:100161,pPreCreateCode:gml_RoomCC_rm_frontoffice_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:-288,index:52,id:100162,pPreCreateCode:gml_RoomCC_rm_frontoffice_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,
y:-240,index:52,id:100163,pPreCreateCode:gml_RoomCC_rm_frontoffice_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:312,y:134,index:49,id:100167,pPreCreateCode:gml_RoomCC_rm_frontoffice_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:134,index:49,id:100168,pPreCreateCode:gml_RoomCC_rm_frontoffice_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:496,y:176,index:61,id:100165,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:576,y:176,index:63,id:100166,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:40,index:66,id:100164,pPreCreateCode:gml_RoomCC_rm_frontoffice_15_PreCreate,rotation:0,scaleX:1,scaleY:1.3984375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:40,index:88,id:100169,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:412,y:248,index:74,id:100171,pPreCreateCode:gml_RoomCC_rm_frontoffice_17_PreCreate,
rotation:0,scaleX:1.1666666269302368,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:240,index:52,id:100172,pPreCreateCode:gml_RoomCC_rm_frontoffice_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:232,index:66,id:100170,pPreCreateCode:gml_RoomCC_rm_frontoffice_19_PreCreate,rotation:0,scaleX:0.6000000238418579,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:-256,index:72,id:100173,pPreCreateCode:gml_RoomCC_rm_frontoffice_20_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:40,index:65,id:100174,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:280,y:232,index:34,id:100175,pPreCreateCode:gml_RoomCC_rm_frontoffice_22_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:232,index:34,id:100176,pPreCreateCode:gml_RoomCC_rm_frontoffice_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:48,y:232,index:44,id:100177,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100178,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:88,y:232,index:34,id:100179,pCode:gml_RoomCC_rm_frontoffice_26_Create,pPreCreateCode:gml_RoomCC_rm_frontoffice_26_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:351,y:50,index:49,id:100180,pPreCreateCode:gml_RoomCC_rm_frontoffice_27_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-24,index:133,id:100160,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:29,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:30,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:29,iinstIDs:[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]},{pName:"Background",id:31,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_halloffame",width:480,height:270,speed:0,colour:0,
LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_halloffame_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{
x:232,y:8,index:70,id:100181,pPreCreateCode:gml_RoomCC_rm_halloffame_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100182,pPreCreateCode:gml_RoomCC_rm_halloffame_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:40,index:90,id:100183,pPreCreateCode:gml_RoomCC_rm_halloffame_2_PreCreate,rotation:0,scaleX:1.5999999046325684,scaleY:1.149999976158142,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:384,y:232,index:34,id:100184,pCode:gml_RoomCC_rm_halloffame_3_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:34,id:100185,pPreCreateCode:gml_RoomCC_rm_halloffame_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:512,y:-112,index:94,id:100186,pPreCreateCode:gml_RoomCC_rm_halloffame_5_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.550000011920929,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:512,y:-208,index:93,id:100187,pPreCreateCode:gml_RoomCC_rm_halloffame_6_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.550000011920929,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100188,pPreCreateCode:gml_RoomCC_rm_halloffame_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:34,id:100189,pPreCreateCode:gml_RoomCC_rm_halloffame_8_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:32,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:33,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:9,iinstIDs:[100181,100182,100183,100184,100185,100186,100187,100188,100189]},{pName:"Background",id:34,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_halloffame_retrobowls",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_halloffame_retrobowls_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,
hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100190,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100191,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_1_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:496,y:-120,index:91,id:100192,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_2_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.5,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:40,index:92,id:100193,rotation:0,scaleX:1.5999999046325684,scaleY:1.149999976158142,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100194,pCode:gml_RoomCC_rm_halloffame_retrobowls_4_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_4_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:34,id:100195,pCode:gml_RoomCC_rm_halloffame_retrobowls_5_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100196,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:34,id:100197,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_7_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:35,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:36,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:8,iinstIDs:[100190,100191,100192,100193,100194,100195,100196,100197]},{pName:"Background",id:37,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_halloffame_players",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_halloffame_players_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768}
,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100198,pPreCreateCode:gml_RoomCC_rm_halloffame_players_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:128,index:72,id:100200,pPreCreateCode:gml_RoomCC_rm_halloffame_players_1_PreCreate,
rotation:0,scaleX:8.666666984558105,scaleY:9,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:112,index:36,id:100201,pPreCreateCode:gml_RoomCC_rm_halloffame_players_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:112,index:36,id:100202,pPreCreateCode:gml_RoomCC_rm_halloffame_players_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:236,y:40,index:74,id:100203,pPreCreateCode:gml_RoomCC_rm_halloffame_players_4_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:138,id:100199,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100204,pPreCreateCode:gml_RoomCC_rm_halloffame_players_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100205,pCode:gml_RoomCC_rm_halloffame_players_7_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_players_7_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:34,id:100206,pPreCreateCode:gml_RoomCC_rm_halloffame_players_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100207,pPreCreateCode:gml_RoomCC_rm_halloffame_players_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:34,id:100208,pPreCreateCode:gml_RoomCC_rm_halloffame_players_10_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:38,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:39,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:11,iinstIDs:[100198,100199,100200,100201,100202,100203,100204,100205,100206,100207,100208]},{pName:"Background",id:40,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_halloffame_player_records",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_halloffame_player_records_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,
hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100209,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100210,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_1_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:40,index:95,id:100211,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_2_PreCreate,rotation:0,scaleX:2.9000000953674316,scaleY:1.149999976158142,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100212,pCode:gml_RoomCC_rm_halloffame_player_records_3_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:192,y:232,index:34,id:100213,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100214,pCode:gml_RoomCC_rm_halloffame_player_records_5_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:34,id:100215,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_6_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:4,index:20,id:100216,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_7_PreCreate,rotation:0,scaleX:1.7272727489471436,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:41,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:42,type:2,depth:100,x:0,y:0,hspeed:0,
vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:8,iinstIDs:[100209,100210,100211,100212,100213,100214,100215,100216]},{pName:"Background",id:43,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_home",width:480,height:270,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,
pCode:gml_Room_rm_home_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:240,y:72,index:84,id:100228,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100229,pPreCreateCode:gml_RoomCC_rm_home_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:128,index:81,id:100232,pPreCreateCode:gml_RoomCC_rm_home_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100230,pPreCreateCode:gml_RoomCC_rm_home_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:34,
id:100233,pPreCreateCode:gml_RoomCC_rm_home_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100234,pPreCreateCode:gml_RoomCC_rm_home_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:912,y:220,index:72,id:100235,pPreCreateCode:gml_RoomCC_rm_home_6_PreCreate,rotation:0,scaleX:18.166669845581055,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100236,pPreCreateCode:gml_RoomCC_rm_home_7_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:16,index:73,id:100238,pPreCreateCode:gml_RoomCC_rm_home_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:20,id:100239,pPreCreateCode:gml_RoomCC_rm_home_9_PreCreate,rotation:0,scaleX:1.2424242496490479,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:128,index:54,id:100223,pPreCreateCode:gml_RoomCC_rm_home_10_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:176,index:65,id:100224,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:176,index:61,id:100225,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:176,index:63,id:100226,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:-80,index:156,id:100217,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:176,index:21,id:100218,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:176,index:21,id:100219,pPreCreateCode:gml_RoomCC_rm_home_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:34,id:100227,pPreCreateCode:gml_RoomCC_rm_home_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:34,id:100220,pPreCreateCode:gml_RoomCC_rm_home_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:320,y:176,index:65,id:100221,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:8,index:70,id:100231,pPreCreateCode:gml_RoomCC_rm_home_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:136,id:100237,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:128,index:15,id:100222,pPreCreateCode:gml_RoomCC_rm_home_22_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:44,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_QB",id:45,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100217,100218,100219,100220,100221,100222]},{pName:"Instances_FM",id:46,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",
effectProperties:[],icount:5,iinstIDs:[100223,100224,100225,100226,100227]},{pName:"Instances",id:47,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100228,100229,100230,100231,100232,100233,100234,100235,100236,100237,100238,100239]},{pName:"Background",id:48,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:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_kongregate",width:960,height:540,speed:0,colour:0,LayerCount:2,showColour:false,viewClearScreen:false,backgrounds:[],views:[{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}
,{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:416,y:192,index:70,id:100240,pPreCreateCode:gml_RoomCC_rm_kongregate_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:352,index:42,id:100241,rotation:0,scaleX:2,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:544,y:352,index:42,id:100242,pPreCreateCode:gml_RoomCC_rm_kongregate_2_PreCreate,rotation:0,scaleX:2,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:32,index:79,
id:100243,pPreCreateCode:gml_RoomCC_rm_kongregate_3_PreCreate,rotation:0,scaleX:0.07692307978868484,scaleY:0.3333333134651184,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-32,index:102,id:100244,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"Instances",id:49,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100240,100241,100242,100243,100244]},{pName:"Background",id:50,
type:1,depth:100,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:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_league",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_league_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,
hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100250,pPreCreateCode:gml_RoomCC_rm_league_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100249,pPreCreateCode:gml_RoomCC_rm_league_1_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:136,index:81,id:100251,pPreCreateCode:gml_RoomCC_rm_league_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:136,index:81,id:100252,pPreCreateCode:gml_RoomCC_rm_league_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:40,index:81,id:100253,pPreCreateCode:gml_RoomCC_rm_league_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:248,y:40,index:81,id:100254,pPreCreateCode:gml_RoomCC_rm_league_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:34,id:100257,pPreCreateCode:gml_RoomCC_rm_league_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:34,id:100256,pPreCreateCode:gml_RoomCC_rm_league_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,
index:34,id:100258,pPreCreateCode:gml_RoomCC_rm_league_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:56,index:60,id:100245,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:112,index:36,id:100246,pPreCreateCode:gml_RoomCC_rm_league_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:112,index:36,id:100247,pPreCreateCode:gml_RoomCC_rm_league_11_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:20,id:100260,pPreCreateCode:gml_RoomCC_rm_league_12_PreCreate,rotation:0,scaleX:1.2424242496490479,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:140,id:100255,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100259,pPreCreateCode:gml_RoomCC_rm_league_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:24,index:20,id:100248,
pPreCreateCode:gml_RoomCC_rm_league_15_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:51,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances2",id:52,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100245,100246,100247,100248]},{pName:"Instances1",
id:53,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100249,100250,100251,100252,100253,100254,100255,100256,100257,100258,100259,100260]},{pName:"Background",id:54,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_match",width:2600,
height:540,speed:0,colour:0,LayerCount:6,showColour:false,enableViews:true,viewClearScreen:false,backgrounds:[],views:[{visible:true,wview:960,hview:540,wport:960,hport:540,hborder:320,vborder:320},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}
],pInstances:[{x:0,y:-64,index:98,id:100262,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-32,index:104,id:100261,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:55,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Text",id:56,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],
icount:0,iinstIDs:[]},{pName:"Weather",id:57,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Ball",id:58,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Players",id:59,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Shadows",id:60,type:2,depth:500,
x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100261,100262]}]},{pName:"rm_options",width:480,height:270,speed:0,colour:0,LayerCount:8,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_options_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,
hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100281,pPreCreateCode:gml_RoomCC_rm_options_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100283,pPreCreateCode:gml_RoomCC_rm_options_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:88,index:39,
id:100284,pPreCreateCode:gml_RoomCC_rm_options_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:464,y:24,index:74,id:100285,pPreCreateCode:gml_RoomCC_rm_options_3_PreCreate,rotation:0,scaleX:1,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:88,index:39,id:100286,pPreCreateCode:gml_RoomCC_rm_options_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:44,id:100287,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:79,y:128,index:39,id:100288,pPreCreateCode:gml_RoomCC_rm_options_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:79,y:88,index:39,id:100289,pPreCreateCode:gml_RoomCC_rm_options_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:1516,y:220,index:72,id:100290,pPreCreateCode:gml_RoomCC_rm_options_8_PreCreate,rotation:0,scaleX:43,scaleY:-1.5,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:79,y:168,index:39,id:100292,pPreCreateCode:gml_RoomCC_rm_options_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:232,index:42,id:100271,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:232,index:42,id:100272,pPreCreateCode:gml_RoomCC_rm_options_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:168,index:39,id:100293,pPreCreateCode:gml_RoomCC_rm_options_12_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:46,index:39,id:100294,pPreCreateCode:gml_RoomCC_rm_options_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:221,y:62,index:52,id:100295,pPreCreateCode:gml_RoomCC_rm_options_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:77,y:64,index:72,id:100297,pPreCreateCode:gml_RoomCC_rm_options_15_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:77,y:104,index:72,id:100298,pPreCreateCode:gml_RoomCC_rm_options_16_PreCreate,rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:77,y:144,index:72,id:100299,pPreCreateCode:gml_RoomCC_rm_options_17_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:104,index:72,id:100300,pPreCreateCode:gml_RoomCC_rm_options_18_PreCreate,rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:77,y:184,index:72,id:100301,pPreCreateCode:gml_RoomCC_rm_options_19_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:390,y:184,index:72,id:100302,pPreCreateCode:gml_RoomCC_rm_options_20_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:54,index:72,id:100303,pPreCreateCode:gml_RoomCC_rm_options_21_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:390,y:104,index:72,id:100304,pPreCreateCode:gml_RoomCC_rm_options_22_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:79,y:48,index:39,id:100282,pPreCreateCode:gml_RoomCC_rm_options_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:232,index:43,id:100273,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:232,index:46,id:100263,pPreCreateCode:gml_RoomCC_rm_options_25_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:232,index:46,id:100264,pPreCreateCode:gml_RoomCC_rm_options_26_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:232,index:46,id:100265,pPreCreateCode:gml_RoomCC_rm_options_27_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:20,id:100266,pPreCreateCode:gml_RoomCC_rm_options_28_PreCreate,rotation:0,scaleX:2.696969509124756,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:20,id:100267,pPreCreateCode:gml_RoomCC_rm_options_29_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:48,index:39,id:100296,pPreCreateCode:gml_RoomCC_rm_options_30_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:390,y:64,index:72,id:100305,pPreCreateCode:gml_RoomCC_rm_options_31_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:40,index:66,id:100280,pPreCreateCode:gml_RoomCC_rm_options_32_PreCreate,rotation:0,scaleX:0.949999988079071,scaleY:1.3125,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:144,index:72,id:100274,pPreCreateCode:gml_RoomCC_rm_options_33_PreCreate,rotation:0,scaleX:1.7321434020996094,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:128,index:39,id:100275,pPreCreateCode:gml_RoomCC_rm_options_34_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:390,y:64,index:72,id:100276,pPreCreateCode:gml_RoomCC_rm_options_35_PreCreate,rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:48,index:39,id:100277,pPreCreateCode:gml_RoomCC_rm_options_36_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:168,index:39,id:100278,pPreCreateCode:gml_RoomCC_rm_options_37_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:239,y:184,index:72,id:100279,pPreCreateCode:gml_RoomCC_rm_options_38_PreCreate,rotation:0,scaleX:1.7321434020996094,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:144,index:72,id:100268,pPreCreateCode:gml_RoomCC_rm_options_39_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:128,index:39,id:100269,pPreCreateCode:gml_RoomCC_rm_options_40_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:390,y:144,index:72,id:100306,pPreCreateCode:gml_RoomCC_rm_options_41_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:128,index:39,id:100307,pPreCreateCode:gml_RoomCC_rm_options_42_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-56,y:0,index:137,id:100291,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:20,id:100270,pCode:gml_RoomCC_rm_options_44_Create,
pPreCreateCode:gml_RoomCC_rm_options_44_PreCreate,rotation:0,scaleX:2.454545497894287,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:61,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Links_Mobile",id:62,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100263,100264,100265,100266,100267,100268,100269]}
,{pName:"Exhibition",id:63,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100270]},{pName:"Links_Browser",id:64,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100271,100272,100273]},{pName:"Instances_ConsoleBuild",id:65,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100274,100275,
100276,100277,100278,100279]},{pName:"Instances_Box",id:66,type:2,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100280]},{pName:"Instances",id:67,type:2,depth:600,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:27,iinstIDs:[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]},{pName:"Background",id:68,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_playoffs",width:480,height:270,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_playoffs_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,
wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:64,y:56,index:74,id:100313,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:64,y:88,index:74,id:100314,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:64,y:200,index:74,id:100315,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:64,y:168,index:74,id:100316,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:72,index:74,id:100317,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:104,index:74,id:100318,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:184,index:74,id:100319,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:152,index:74,id:100320,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:88,index:74,id:100321,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:168,index:74,id:100322,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:104,index:74,id:100323,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:152,index:74,
id:100334,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:56,index:74,id:100324,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:88,index:74,id:100325,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:200,index:74,id:100326,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:168,index:74,id:100327,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:360,y:72,index:74,id:100328,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:104,index:74,id:100329,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:184,index:74,id:100330,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:152,index:74,id:100331,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:88,index:74,id:100332,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:304,y:168,index:74,id:100333,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:128,index:74,id:100335,pPreCreateCode:gml_RoomCC_rm_playoffs_22_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100336,pPreCreateCode:gml_RoomCC_rm_playoffs_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:16,index:70,id:100337,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100338,pPreCreateCode:gml_RoomCC_rm_playoffs_25_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100339,pPreCreateCode:gml_RoomCC_rm_playoffs_26_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:40,index:66,id:100311,pPreCreateCode:gml_RoomCC_rm_playoffs_27_PreCreate,rotation:0,scaleX:1.100000023841858,scaleY:1.375,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:272,y:40,index:66,id:100312,pPreCreateCode:gml_RoomCC_rm_playoffs_28_PreCreate,rotation:0,scaleX:1.100000023841858,scaleY:1.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:40,index:83,id:100308,pPreCreateCode:gml_RoomCC_rm_playoffs_29_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:40,index:83,id:100309,pPreCreateCode:gml_RoomCC_rm_playoffs_30_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:1.4375,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:141,id:100310,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:69,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances2",id:70,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100308,100309]},{pName:"Instances1",id:71,
type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:26,iinstIDs:[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]},{pName:"Instances_Btn",id:72,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100336,100337,100338,100339]},{pName:"Background",
id:73,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_playoffs2",width:480,height:270,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_playoffs2_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,
wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:56,y:56,index:74,id:100344,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:80,index:74,id:100345,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:56,y:152,index:74,id:100346,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:128,index:74,id:100347,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:92,index:74,id:100348,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:68,index:74,id:100349,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:140,index:74,id:100350,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:56,y:184,index:74,id:100351,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:80,index:74,id:100352,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:168,index:74,id:100353,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:100,index:74,id:100354,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:148,index:74,id:100355,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:124,index:74,id:100356,pPreCreateCode:gml_RoomCC_rm_playoffs2_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100372,pPreCreateCode:gml_RoomCC_rm_playoffs2_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:16,index:70,id:100373,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100374,pPreCreateCode:gml_RoomCC_rm_playoffs2_15_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100375,pPreCreateCode:gml_RoomCC_rm_playoffs2_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:40,index:83,id:100340,pPreCreateCode:gml_RoomCC_rm_playoffs2_17_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:40,index:83,id:100341,pPreCreateCode:gml_RoomCC_rm_playoffs2_18_PreCreate,rotation:0,
scaleX:1.2000000476837158,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:196,index:74,id:100357,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:208,index:74,id:100358,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:40,index:66,id:100343,pPreCreateCode:gml_RoomCC_rm_playoffs2_21_PreCreate,rotation:0,scaleX:1.100000023841858,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:280,y:40,index:66,id:100359,
pPreCreateCode:gml_RoomCC_rm_playoffs2_22_PreCreate,rotation:0,scaleX:1.100000023841858,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:312,y:80,index:74,id:100360,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:80,index:74,id:100361,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:152,index:74,id:100362,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:128,index:74,id:100363,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:92,index:74,id:100364,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:68,index:74,id:100365,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:140,index:74,id:100366,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:184,index:74,id:100367,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:56,index:74,
id:100368,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:312,y:168,index:74,id:100369,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:196,index:74,id:100370,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:208,index:74,id:100371,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:142,id:100342,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
],tiles:[],layers:[{pName:"PopUps",id:74,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances2",id:75,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100340,100341]},{pName:"Instances1",id:76,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:30,iinstIDs:[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]},{pName:"Instances_Btn",id:77,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100372,100373,100374,100375]},{pName:"Background",id:78,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_pre_match",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_pre_match_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,
hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:8,y:232,index:36,id:100376,pPreCreateCode:gml_RoomCC_rm_pre_match_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100377,pPreCreateCode:gml_RoomCC_rm_pre_match_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:16,
index:70,id:100378,pPreCreateCode:gml_RoomCC_rm_pre_match_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:144,y:232,index:66,id:100379,pPreCreateCode:gml_RoomCC_rm_pre_match_3_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:248,index:74,id:100380,pPreCreateCode:gml_RoomCC_rm_pre_match_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:98,index:132,
id:100382,pPreCreateCode:gml_RoomCC_rm_pre_match_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:98,index:132,id:100383,pPreCreateCode:gml_RoomCC_rm_pre_match_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:198,y:112,index:66,id:100384,pPreCreateCode:gml_RoomCC_rm_pre_match_7_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:205,y:120,index:39,id:100386,
pPreCreateCode:gml_RoomCC_rm_pre_match_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:48,index:38,id:100387,pPreCreateCode:gml_RoomCC_rm_pre_match_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:48,index:38,id:100388,pPreCreateCode:gml_RoomCC_rm_pre_match_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:40,index:66,id:100385,pPreCreateCode:gml_RoomCC_rm_pre_match_11_PreCreate,
rotation:0,scaleX:0.699999988079071,scaleY:0.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:8,index:20,id:100389,pPreCreateCode:gml_RoomCC_rm_pre_match_12_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:143,id:100381,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:79,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",
effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:80,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:14,iinstIDs:[100376,100377,100378,100379,100380,100381,100382,100383,100384,100385,100386,100387,100388,100389]},{pName:"Background",id:81,type:1,depth:200,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:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_profile_player",width:480,height:270,speed:0,colour:0,LayerCount:12,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_profile_player_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,
wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:200,y:-32,index:70,id:100419,pPreCreateCode:gml_RoomCC_rm_profile_player_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:72,index:74,id:100423,pPreCreateCode:gml_RoomCC_rm_profile_player_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:104,index:74,id:100424,pPreCreateCode:gml_RoomCC_rm_profile_player_2_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:40,index:66,id:100421,pPreCreateCode:gml_RoomCC_rm_profile_player_3_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:1.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:66,id:100420,pPreCreateCode:gml_RoomCC_rm_profile_player_4_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:1.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:64,index:86,id:100426,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:256,y:144,index:86,id:100427,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:104,index:86,id:100428,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:88,index:74,id:100429,pPreCreateCode:gml_RoomCC_rm_profile_player_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:152,index:74,id:100430,pPreCreateCode:gml_RoomCC_rm_profile_player_9_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:56,index:74,id:100431,pPreCreateCode:gml_RoomCC_rm_profile_player_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:16,index:74,id:100422,pPreCreateCode:gml_RoomCC_rm_profile_player_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:184,index:86,id:100432,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:152,
index:74,id:100433,pPreCreateCode:gml_RoomCC_rm_profile_player_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:184,index:87,id:100434,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:104,index:36,id:100390,pPreCreateCode:gml_RoomCC_rm_profile_player_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:104,index:36,id:100391,pPreCreateCode:gml_RoomCC_rm_profile_player_16_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100413,pPreCreateCode:gml_RoomCC_rm_profile_player_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100414,pPreCreateCode:gml_RoomCC_rm_profile_player_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:232,index:34,id:100397,pPreCreateCode:gml_RoomCC_rm_profile_player_19_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:51,y:232,index:34,id:100393,pPreCreateCode:gml_RoomCC_rm_profile_player_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:243,y:232,index:34,id:100394,pPreCreateCode:gml_RoomCC_rm_profile_player_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:147,y:232,index:34,id:100395,pPreCreateCode:gml_RoomCC_rm_profile_player_22_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:339,y:232,index:34,id:100396,pPreCreateCode:gml_RoomCC_rm_profile_player_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100392,pPreCreateCode:gml_RoomCC_rm_profile_player_24_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:120,index:74,id:100435,pPreCreateCode:gml_RoomCC_rm_profile_player_25_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:40,y:136,index:74,id:100436,pPreCreateCode:gml_RoomCC_rm_profile_player_26_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:212,y:44,index:52,id:100437,pPreCreateCode:gml_RoomCC_rm_profile_player_27_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:46,index:52,id:100438,pPreCreateCode:gml_RoomCC_rm_profile_player_28_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:32,y:-40,index:72,id:100439,pPreCreateCode:gml_RoomCC_rm_profile_player_29_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:34,id:100415,pPreCreateCode:gml_RoomCC_rm_profile_player_30_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:34,id:100416,pPreCreateCode:gml_RoomCC_rm_profile_player_31_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:272,y:232,
index:34,id:100398,pPreCreateCode:gml_RoomCC_rm_profile_player_32_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:0,index:36,id:100417,pPreCreateCode:gml_RoomCC_rm_profile_player_33_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:51,id:100401,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:0,index:149,id:100402,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:48,y:232,index:34,id:100399,pPreCreateCode:gml_RoomCC_rm_profile_player_36_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100418,pPreCreateCode:gml_RoomCC_rm_profile_player_37_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:232,index:34,id:100400,pPreCreateCode:gml_RoomCC_rm_profile_player_38_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,
index:34,id:100403,pPreCreateCode:gml_RoomCC_rm_profile_player_39_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:0,index:36,id:100404,pPreCreateCode:gml_RoomCC_rm_profile_player_40_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100410,pPreCreateCode:gml_RoomCC_rm_profile_player_41_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100411,
pPreCreateCode:gml_RoomCC_rm_profile_player_42_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:0,index:36,id:100412,pPreCreateCode:gml_RoomCC_rm_profile_player_43_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100405,pPreCreateCode:gml_RoomCC_rm_profile_player_44_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:86,index:52,id:100440,pPreCreateCode:gml_RoomCC_rm_profile_player_45_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:126,index:52,id:100441,pPreCreateCode:gml_RoomCC_rm_profile_player_46_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:166,index:52,id:100442,pPreCreateCode:gml_RoomCC_rm_profile_player_47_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:66,id:100407,pPreCreateCode:gml_RoomCC_rm_profile_player_48_PreCreate,rotation:0,scaleX:1,
scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:248,index:74,id:100406,pPreCreateCode:gml_RoomCC_rm_profile_player_49_PreCreate,rotation:0,scaleX:0.6666666865348816,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:239,index:20,id:100408,pPreCreateCode:gml_RoomCC_rm_profile_player_50_PreCreate,rotation:0,scaleX:1.4848483800888062,scaleY:0.5882353186607361,imageSpeed:1,imageIndex:0,colour:4294967295},{x:152,y:239,index:20,id:100409,pPreCreateCode:gml_RoomCC_rm_profile_player_51_PreCreate,
rotation:0,scaleX:1.4848483800888062,scaleY:0.5882353186607361,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:147,id:100425,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:82,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Buttons_Navigate",id:83,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],
icount:2,iinstIDs:[100390,100391]},{pName:"Buttons_XP_Continue",id:84,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100392]},{pName:"Buttons_XP",id:85,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100393,100394,100395,100396]},{pName:"Buttons_Pick",id:86,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],
icount:4,iinstIDs:[100397,100398,100399,100400]},{pName:"HOF_Tag",id:87,type:2,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100401,100402]},{pName:"Buttons_Main_QB",id:88,type:2,depth:600,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100403,100404,100405,100406,100407,100408,100409]},{pName:"Buttons_Main_Teammate",id:89,type:2,depth:700,x:0,y:0,hspeed:0,vspeed:0,visible:0,
effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100410,100411,100412]},{pName:"Buttons_Main",id:90,type:2,depth:800,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100413,100414,100415,100416,100417]},{pName:"Buttons_Back",id:91,type:2,depth:900,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100418]},{pName:"Instances",id:92,type:2,depth:1000,x:0,y:0,hspeed:0,vspeed:0,
visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:24,iinstIDs:[100419,100420,100421,100422,100423,100424,100425,100426,100427,100428,100429,100430,100431,100432,100433,100434,100435,100436,100437,100438,100439,100440,100441,100442]},{pName:"Background",id:93,type:1,depth:1100,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:-499648,bimage_index:0,bimage_speed:15}
]},{pName:"rm_profile_staff",width:480,height:270,speed:0,colour:0,LayerCount:7,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_profile_staff_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,
hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100454,pPreCreateCode:gml_RoomCC_rm_profile_staff_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:54,index:74,id:100456,pPreCreateCode:gml_RoomCC_rm_profile_staff_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:86,index:74,id:100457,pPreCreateCode:gml_RoomCC_rm_profile_staff_2_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:70,index:74,id:100458,pPreCreateCode:gml_RoomCC_rm_profile_staff_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:366,y:40,index:52,id:100460,pPreCreateCode:gml_RoomCC_rm_profile_staff_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:116,y:46,index:49,id:100459,pPreCreateCode:gml_RoomCC_rm_profile_staff_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:52,y:104,index:36,id:100450,pPreCreateCode:gml_RoomCC_rm_profile_staff_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:396,y:104,index:36,id:100451,pPreCreateCode:gml_RoomCC_rm_profile_staff_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:72,id:100462,pPreCreateCode:gml_RoomCC_rm_profile_staff_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{
x:8,y:232,index:36,id:100452,pPreCreateCode:gml_RoomCC_rm_profile_staff_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:140,y:134,index:87,id:100463,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100449,pPreCreateCode:gml_RoomCC_rm_profile_staff_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:102,index:74,id:100464,pPreCreateCode:gml_RoomCC_rm_profile_staff_12_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:366,y:96,index:52,id:100465,pPreCreateCode:gml_RoomCC_rm_profile_staff_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:118,index:74,id:100466,pPreCreateCode:gml_RoomCC_rm_profile_staff_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:0,index:36,id:100453,pPreCreateCode:gml_RoomCC_rm_profile_staff_15_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:36,index:66,id:100455,pPreCreateCode:gml_RoomCC_rm_profile_staff_16_PreCreate,rotation:0,scaleX:1.850000023841858,scaleY:1.1171879768371582,imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:232,index:34,id:100448,pPreCreateCode:gml_RoomCC_rm_profile_staff_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:100,y:187,index:34,id:100443,pPreCreateCode:gml_RoomCC_rm_profile_staff_18_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:187,index:34,id:100444,pPreCreateCode:gml_RoomCC_rm_profile_staff_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:292,y:187,index:34,id:100445,pPreCreateCode:gml_RoomCC_rm_profile_staff_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:366,y:159,index:52,id:100446,pPreCreateCode:gml_RoomCC_rm_profile_staff_21_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:177,index:66,id:100447,pPreCreateCode:gml_RoomCC_rm_profile_staff_22_PreCreate,rotation:0,scaleX:1.850000023841858,scaleY:0.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:151,id:100461,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:94,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_Training",
id:95,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100443,100444,100445,100446,100447]},{pName:"Instances_Hire",id:96,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100448]},{pName:"Instances_XP_Continue",id:97,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100449]},{pName:"Instances_Nav",
id:98,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100450,100451,100452,100453]},{pName:"Instances",id:99,type:2,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:13,iinstIDs:[100454,100455,100456,100457,100458,100459,100460,100461,100462,100463,100464,100465,100466]},{pName:"Background",id:100,type:1,depth:600,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_post_match",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_post_match_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,
wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:384,y:232,index:34,id:100467,pPreCreateCode:gml_RoomCC_rm_post_match_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:34,id:100469,pPreCreateCode:gml_RoomCC_rm_post_match_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:224,y:8,index:70,id:100468,pPreCreateCode:gml_RoomCC_rm_post_match_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:136,index:54,id:100470,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:72,id:100471,pPreCreateCode:gml_RoomCC_rm_post_match_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:184,index:81,id:100473,pPreCreateCode:gml_RoomCC_rm_post_match_5_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:32,index:83,id:100472,rotation:0,scaleX:1.2999999523162842,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:32,index:82,id:100475,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:145,id:100474,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:232,index:20,id:100477,pPreCreateCode:gml_RoomCC_rm_post_match_9_PreCreate,rotation:0,
scaleX:1.2424242496490479,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:232,index:20,id:100476,pPreCreateCode:gml_RoomCC_rm_post_match_10_PreCreate,rotation:0,scaleX:1.4848484992980957,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:101,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:102,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,
effectType:"",effectProperties:[],icount:10,iinstIDs:[100467,100468,100469,100470,100471,100472,100473,100474,100475,100476]},{pName:"Poki_Layer",id:103,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100477]},{pName:"Background",id:104,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:-38868,
bimage_index:0,bimage_speed:15}]},{pName:"rm_roster",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_roster_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,
hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100478,pPreCreateCode:gml_RoomCC_rm_roster_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100479,pPreCreateCode:gml_RoomCC_rm_roster_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:88,id:100481,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,
y:232,index:61,id:100482,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:408,y:232,index:63,id:100483,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:52,id:100484,pPreCreateCode:gml_RoomCC_rm_roster_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:232,index:65,id:100485,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:-184,index:72,id:100486,pPreCreateCode:gml_RoomCC_rm_roster_7_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:192,index:36,id:100487,pPreCreateCode:gml_RoomCC_rm_roster_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100488,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:35,index:74,id:100489,pPreCreateCode:gml_RoomCC_rm_roster_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:152,
id:100480,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:105,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:106,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100478,100479,100480,100481,100482,100483,100484,100485,100486,100487,100488,100489]},{pName:"Background",
id:107,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_stats",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_stats_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,
hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:16,y:32,index:67,id:100490,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:104,index:67,id:100491,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,
y:8,index:70,id:100492,pPreCreateCode:gml_RoomCC_rm_stats_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100493,pPreCreateCode:gml_RoomCC_rm_stats_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:108,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:109,type:2,depth:100,
x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100490,100491,100492,100493]},{pName:"Background",id:110,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_stats_player",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,
viewClearScreen:false,pCode:gml_Room_rm_stats_player_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:8,y:232,index:36,id:100496,pPreCreateCode:gml_RoomCC_rm_stats_player_0_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:40,index:66,id:100497,pPreCreateCode:gml_RoomCC_rm_stats_player_1_PreCreate,rotation:0,scaleX:0.9000000953674316,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:40,index:66,id:100498,pPreCreateCode:gml_RoomCC_rm_stats_player_2_PreCreate,rotation:0,scaleX:0.9000000953674316,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:40,index:66,id:100499,pPreCreateCode:gml_RoomCC_rm_stats_player_3_PreCreate,
rotation:0,scaleX:0.9000000953674316,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:16,index:22,id:100501,pPreCreateCode:gml_RoomCC_rm_stats_player_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:40,index:148,id:100502,pPreCreateCode:gml_RoomCC_rm_stats_player_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:40,index:148,id:100503,pPreCreateCode:gml_RoomCC_rm_stats_player_6_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-1,y:0,index:36,id:100504,pPreCreateCode:gml_RoomCC_rm_stats_player_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:447,y:0,index:36,id:100505,pPreCreateCode:gml_RoomCC_rm_stats_player_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:0,index:51,id:100506,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:114,
y:255,index:74,id:100507,pPreCreateCode:gml_RoomCC_rm_stats_player_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:158,y:255,index:74,id:100508,pPreCreateCode:gml_RoomCC_rm_stats_player_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:202,y:255,index:74,id:100509,pPreCreateCode:gml_RoomCC_rm_stats_player_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:246,y:255,index:74,id:100510,
pPreCreateCode:gml_RoomCC_rm_stats_player_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:111,y:241,index:72,id:100511,pPreCreateCode:gml_RoomCC_rm_stats_player_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:155,y:241,index:72,id:100512,pPreCreateCode:gml_RoomCC_rm_stats_player_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:199,y:241,index:72,id:100513,pPreCreateCode:gml_RoomCC_rm_stats_player_16_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:243,y:241,index:72,id:100514,pPreCreateCode:gml_RoomCC_rm_stats_player_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:67,y:241,index:72,id:100515,pPreCreateCode:gml_RoomCC_rm_stats_player_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:70,y:255,index:74,id:100516,pPreCreateCode:gml_RoomCC_rm_stats_player_19_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:292,y:255,index:74,id:100517,pPreCreateCode:gml_RoomCC_rm_stats_player_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:289,y:241,index:72,id:100518,pPreCreateCode:gml_RoomCC_rm_stats_player_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:397,y:232,index:20,id:100494,pCode:gml_RoomCC_rm_stats_player_22_Create,pPreCreateCode:gml_RoomCC_rm_stats_player_22_PreCreate,
rotation:0,scaleX:2.3499999046325684,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:316,y:232,index:20,id:100495,pCode:gml_RoomCC_rm_stats_player_23_Create,pPreCreateCode:gml_RoomCC_rm_stats_player_23_PreCreate,rotation:0,scaleX:2.3499999046325684,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:40,index:148,id:100500,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:30,id:100519,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:111,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_StatType",id:112,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100494,100495]},{pName:"Instances",id:113,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:24,iinstIDs:[100496,
100497,100498,100499,100500,100501,100502,100503,100504,100505,100506,100507,100508,100509,100510,100511,100512,100513,100514,100515,100516,100517,100518,100519]},{pName:"Background",id:114,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_meeting_player",width:480,height:270,speed:0,colour:0,LayerCount:3,
showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_meeting_player_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:8,y:232,
index:36,id:100521,pPreCreateCode:gml_RoomCC_rm_meeting_player_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:56,index:66,id:100523,rotation:0,scaleX:1.100000023841858,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:96,index:66,id:100522,rotation:0,scaleX:1.100000023841858,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:136,index:66,id:100524,rotation:0,scaleX:1.100000023841858,scaleY:0.25,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:160,y:176,index:66,id:100525,rotation:0,scaleX:1.100000023841858,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:55,y:96,index:66,id:100526,pPreCreateCode:gml_RoomCC_rm_meeting_player_5_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:56,index:66,id:100527,pPreCreateCode:gml_RoomCC_rm_meeting_player_6_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:55,y:136,index:66,id:100528,pPreCreateCode:gml_RoomCC_rm_meeting_player_7_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:55,y:176,index:66,id:100529,pPreCreateCode:gml_RoomCC_rm_meeting_player_8_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:40,index:66,id:100520,pPreCreateCode:gml_RoomCC_rm_meeting_player_9_PreCreate,rotation:0,scaleX:2.5,scaleY:1.4375,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:240,y:8,index:70,id:100530,pPreCreateCode:gml_RoomCC_rm_meeting_player_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:56,index:39,id:100531,pPreCreateCode:gml_RoomCC_rm_meeting_player_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:96,index:39,id:100533,pPreCreateCode:gml_RoomCC_rm_meeting_player_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:352,y:136,index:39,id:100534,pPreCreateCode:gml_RoomCC_rm_meeting_player_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:176,index:39,id:100535,pPreCreateCode:gml_RoomCC_rm_meeting_player_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100536,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:248,index:72,id:100537,pPreCreateCode:gml_RoomCC_rm_meeting_player_16_PreCreate,
rotation:0,scaleX:7,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-40,y:-8,index:150,id:100532,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:104,index:36,id:100538,pPreCreateCode:gml_RoomCC_rm_meeting_player_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:104,index:36,id:100539,pPreCreateCode:gml_RoomCC_rm_meeting_player_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
],tiles:[],layers:[{pName:"PopUps",id:115,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:116,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:20,iinstIDs:[100520,100521,100522,100523,100524,100525,100526,100527,100528,100529,100530,100531,100532,100533,100534,100535,100536,100537,100538,100539]},{pName:"Background",id:117,type:1,depth:200,
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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_team_editor",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_team_editor_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768}
,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100540,pPreCreateCode:gml_RoomCC_rm_team_editor_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:32,index:34,id:100542,pPreCreateCode:gml_RoomCC_rm_team_editor_1_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:32,index:34,id:100541,pPreCreateCode:gml_RoomCC_rm_team_editor_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:32,index:34,id:100543,pPreCreateCode:gml_RoomCC_rm_team_editor_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:32,index:34,id:100545,pPreCreateCode:gml_RoomCC_rm_team_editor_4_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:34,id:100546,pPreCreateCode:gml_RoomCC_rm_team_editor_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:102,y:232,index:34,id:100547,pPreCreateCode:gml_RoomCC_rm_team_editor_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:22,y:82,index:72,id:100548,pPreCreateCode:gml_RoomCC_rm_team_editor_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:22,y:158,index:72,id:100549,pPreCreateCode:gml_RoomCC_rm_team_editor_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:22,y:196,index:72,id:100550,pPreCreateCode:gml_RoomCC_rm_team_editor_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:22,y:120,index:72,id:100551,pPreCreateCode:gml_RoomCC_rm_team_editor_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:6,index:66,id:100554,
rotation:0,scaleX:0.4000000059604645,scaleY:0.15000000596046448,imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:232,index:34,id:100552,pPreCreateCode:gml_RoomCC_rm_team_editor_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:290,y:232,index:34,id:100553,pPreCreateCode:gml_RoomCC_rm_team_editor_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100555,pPreCreateCode:gml_RoomCC_rm_team_editor_14_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-32,y:-32,index:128,id:100544,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:80,index:36,id:100556,pPreCreateCode:gml_RoomCC_rm_team_editor_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:118,index:36,id:100557,pPreCreateCode:gml_RoomCC_rm_team_editor_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,
y:156,index:36,id:100558,pPreCreateCode:gml_RoomCC_rm_team_editor_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:194,index:36,id:100559,pPreCreateCode:gml_RoomCC_rm_team_editor_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:32,index:36,id:100560,pPreCreateCode:gml_RoomCC_rm_team_editor_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:32,index:36,id:100561,
pPreCreateCode:gml_RoomCC_rm_team_editor_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:118,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:119,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:22,iinstIDs:[100540,100541,100542,100543,100544,100545,100546,100547,100548,
100549,100550,100551,100552,100553,100554,100555,100556,100557,100558,100559,100560,100561]},{pName:"Background",id:120,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_training",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_training_Create,
backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100562,pPreCreateCode:gml_RoomCC_rm_training_0_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:48,index:34,id:100564,pPreCreateCode:gml_RoomCC_rm_training_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:96,index:34,id:100566,pPreCreateCode:gml_RoomCC_rm_training_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100563,pPreCreateCode:gml_RoomCC_rm_training_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:0,y:0,index:157,id:100565,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:144,index:34,id:100567,pPreCreateCode:gml_RoomCC_rm_training_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:121,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:122,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,
effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100562,100563,100564,100565,100566,100567]},{pName:"Background",id:123,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_viewhires",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,
pCode:gml_Room_rm_viewhires_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100568,pPreCreateCode:gml_RoomCC_rm_viewhires_0_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:-192,index:72,id:100569,pPreCreateCode:gml_RoomCC_rm_viewhires_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:144,y:36,index:66,id:100570,pPreCreateCode:gml_RoomCC_rm_viewhires_2_PreCreate,rotation:0,scaleX:1.9500000476837158,scaleY:1.46875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:136,index:49,id:100571,pPreCreateCode:gml_RoomCC_rm_viewhires_3_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:136,index:49,id:100572,pPreCreateCode:gml_RoomCC_rm_viewhires_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:136,index:49,id:100573,pPreCreateCode:gml_RoomCC_rm_viewhires_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:136,index:49,id:100574,pPreCreateCode:gml_RoomCC_rm_viewhires_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100575,pPreCreateCode:gml_RoomCC_rm_viewhires_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:36,index:66,id:100577,pPreCreateCode:gml_RoomCC_rm_viewhires_8_PreCreate,rotation:0,scaleX:0.6000000238418579,scaleY:1.46875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:48,index:49,id:100578,pPreCreateCode:gml_RoomCC_rm_viewhires_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:40,y:136,index:49,id:100579,pPreCreateCode:gml_RoomCC_rm_viewhires_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:48,index:49,id:100580,pPreCreateCode:gml_RoomCC_rm_viewhires_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:48,index:49,id:100581,pPreCreateCode:gml_RoomCC_rm_viewhires_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:48,
index:49,id:100582,pPreCreateCode:gml_RoomCC_rm_viewhires_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:48,index:49,id:100583,pPreCreateCode:gml_RoomCC_rm_viewhires_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:135,id:100576,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:232,index:44,id:100584,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:32,y:16,index:75,id:100585,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:232,index:34,id:100586,pPreCreateCode:gml_RoomCC_rm_viewhires_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:124,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:125,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,
effectEnabled:1,effectType:"",effectProperties:[],icount:19,iinstIDs:[100568,100569,100570,100571,100572,100573,100574,100575,100576,100577,100578,100579,100580,100581,100582,100583,100584,100585,100586]},{pName:"Background",id:126,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_watermark",width:480,
height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_watermark_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,
hport:768}],pInstances:[{x:8,y:232,index:36,id:100587,pPreCreateCode:gml_RoomCC_rm_watermark_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:248,index:74,id:100588,pPreCreateCode:gml_RoomCC_rm_watermark_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:40,index:74,id:100589,pPreCreateCode:gml_RoomCC_rm_watermark_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,
index:36,id:100592,pPreCreateCode:gml_RoomCC_rm_watermark_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:472,y:262,index:74,id:100591,pPreCreateCode:gml_RoomCC_rm_watermark_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-64,y:-48,index:139,id:100590,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:24,index:36,id:100593,pPreCreateCode:gml_RoomCC_rm_watermark_6_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:24,index:36,id:100594,pPreCreateCode:gml_RoomCC_rm_watermark_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:127,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:128,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],
icount:5,iinstIDs:[100587,100588,100589,100590,100591]},{pName:"Instances_1",id:129,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100592,100593,100594]},{pName:"Background",id:130,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:-41166,bimage_index:0,bimage_speed:15}]},{pName:"rm_winners",
width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_winners_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,
wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100595,pPreCreateCode:gml_RoomCC_rm_winners_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100596,pPreCreateCode:gml_RoomCC_rm_winners_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:40,index:74,id:100597,pPreCreateCode:gml_RoomCC_rm_winners_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,
y:198,index:74,id:100598,pPreCreateCode:gml_RoomCC_rm_winners_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:64,index:74,id:100600,pPreCreateCode:gml_RoomCC_rm_winners_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,y:198,index:74,id:100601,pPreCreateCode:gml_RoomCC_rm_winners_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:152,y:198,index:74,id:100602,pPreCreateCode:gml_RoomCC_rm_winners_6_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:153,id:100599,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:131,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:132,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:8,iinstIDs:[100595,100596,
100597,100598,100599,100600,100601,100602]},{pName:"Background",id:133,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_xp",width:480,height:270,speed:0,colour:0,LayerCount:6,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_xp_Create,backgrounds:[],views:[{visible:true,wview:480,
hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:384,y:232,index:34,id:100609,pPreCreateCode:gml_RoomCC_rm_xp_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:224,y:8,index:70,id:100610,pPreCreateCode:gml_RoomCC_rm_xp_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:72,index:66,id:100611,pPreCreateCode:gml_RoomCC_rm_xp_2_PreCreate,rotation:0,scaleX:2.799999952316284,scaleY:1.1875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100612,pPreCreateCode:gml_RoomCC_rm_xp_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:32,index:56,id:100613,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100614,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:256,index:76,id:100615,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:34,id:100616,pPreCreateCode:gml_RoomCC_rm_xp_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:64,index:146,id:100617,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:144,y:232,index:34,id:100618,pPreCreateCode:gml_RoomCC_rm_xp_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:232,index:34,id:100619,pPreCreateCode:gml_RoomCC_rm_xp_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:32,index:65,id:100606,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:400,y:32,index:63,id:100607,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:320,y:32,index:61,id:100608,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:32,index:21,id:100603,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:32,index:21,id:100604,pPreCreateCode:gml_RoomCC_rm_xp_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:400,y:32,index:21,id:100605,pPreCreateCode:gml_RoomCC_rm_xp_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:336,y:232,index:34,id:100620,pPreCreateCode:gml_RoomCC_rm_xp_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:134,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_1",id:135,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Layer_QB",
id:136,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100603,100604,100605]},{pName:"Layer_FM",id:137,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100606,100607,100608]},{pName:"Instances",id:138,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100609,100610,100611,100612,100613,
100614,100615,100616,100617,100618,100619,100620]},{pName:"Background",id:139,type:1,depth:500,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:true,bblend:-16777216,bimage_index:0,bimage_speed:30}]},{pName:"rm_ad_retrogoal",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_ad_retrogoal_Create,backgrounds:[],
views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:-24,y:-16,index:62,id:100622,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:8,
index:36,id:100621,pPreCreateCode:gml_RoomCC_rm_ad_retrogoal_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:140,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:141,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100621,100622]},{pName:"Background",id:142,
type:1,depth:200,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:-1,bimage_index:0,bimage_speed:30}]},{pName:"rm_options2",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_options2_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,
hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100623,pPreCreateCode:gml_RoomCC_rm_options2_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100624,pPreCreateCode:gml_RoomCC_rm_options2_1_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:32,index:20,id:100625,pPreCreateCode:gml_RoomCC_rm_options2_2_PreCreate,rotation:0,scaleX:6.57575798034668,scaleY:2.6470587253570557,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:32,index:20,id:100626,pPreCreateCode:gml_RoomCC_rm_options2_3_PreCreate,rotation:0,scaleX:6.57575798034668,scaleY:2.6470587253570557,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:128,index:20,id:100627,pPreCreateCode:gml_RoomCC_rm_options2_4_PreCreate,
rotation:0,scaleX:6.57575798034668,scaleY:2.6470587253570557,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:128,index:20,id:100628,pPreCreateCode:gml_RoomCC_rm_options2_5_PreCreate,rotation:0,scaleX:6.57575798034668,scaleY:2.6470587253570557,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:20,id:100629,pPreCreateCode:gml_RoomCC_rm_options2_6_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:20,id:100630,pPreCreateCode:gml_RoomCC_rm_options2_7_PreCreate,
rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:20,id:100631,pPreCreateCode:gml_RoomCC_rm_options2_8_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:20,id:100632,pPreCreateCode:gml_RoomCC_rm_options2_9_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:143,type:2,depth:0,x:0,y:0,hspeed:0,
vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:144,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:10,iinstIDs:[100623,100624,100625,100626,100627,100628,100629,100630,100631,100632]},{pName:"Background",id:145,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_options_mapping",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_options_mapping_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,
hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100633,pPreCreateCode:gml_RoomCC_rm_options_mapping_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100634,pPreCreateCode:gml_RoomCC_rm_options_mapping_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:232,index:20,id:100635,pPreCreateCode:gml_RoomCC_rm_options_mapping_2_PreCreate,
rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:200,y:232,index:20,id:100636,pPreCreateCode:gml_RoomCC_rm_options_mapping_3_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:296,y:232,index:20,id:100637,pPreCreateCode:gml_RoomCC_rm_options_mapping_4_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-32,y:0,index:14,id:100638,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:146,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:147,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100633,100634,100635,100636,100637,100638]},{pName:"Background",id:148,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_season_tally",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_season_tally_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,
hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:472,y:240,index:74,id:100639,pPreCreateCode:gml_RoomCC_rm_season_tally_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100646,pPreCreateCode:gml_RoomCC_rm_season_tally_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:472,y:256,index:74,id:100640,pPreCreateCode:gml_RoomCC_rm_season_tally_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:104,index:36,id:100647,pPreCreateCode:gml_RoomCC_rm_season_tally_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:104,index:36,id:100648,pPreCreateCode:gml_RoomCC_rm_season_tally_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:49,y:232,index:66,id:100642,pPreCreateCode:gml_RoomCC_rm_season_tally_5_PreCreate,rotation:0,scaleX:0.4000000059604645,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:232,index:88,id:100643,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:66,id:100644,rotation:0,scaleX:2.5500001907348633,scaleY:1.625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:8,index:74,id:100645,pPreCreateCode:gml_RoomCC_rm_season_tally_8_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-48,y:-8,index:119,id:100641,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:149,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:150,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100639,100640,100641,
100642,100643,100644,100645]},{pName:"Instances_1",id:151,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100646,100647,100648]},{pName:"Background",id:152,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:-41166,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_life",width:480,height:270,
speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_life_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}
],pInstances:[{x:224,y:8,index:70,id:100649,pPreCreateCode:gml_RoomCC_rm_qb_life_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100650,pPreCreateCode:gml_RoomCC_rm_qb_life_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:52,id:100651,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100652,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:248,y:40,index:66,id:100654,pPreCreateCode:gml_RoomCC_rm_qb_life_4_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:1.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:40,index:156,id:100655,pPreCreateCode:gml_RoomCC_rm_qb_life_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:184,index:54,id:100656,pPreCreateCode:gml_RoomCC_rm_qb_life_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:248,y:136,index:55,id:100657,pPreCreateCode:gml_RoomCC_rm_qb_life_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:88,index:27,id:100658,pPreCreateCode:gml_RoomCC_rm_qb_life_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:88,index:15,id:100659,pPreCreateCode:gml_RoomCC_rm_qb_life_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:9,id:100661,pPreCreateCode:gml_RoomCC_rm_qb_life_10_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:88,index:66,id:100653,rotation:0,scaleX:1.2999999523162842,scaleY:0.625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:184,index:17,id:100662,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:128,index:20,id:100663,pPreCreateCode:gml_RoomCC_rm_qb_life_13_PreCreate,rotation:0,scaleX:1.727272629737854,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:128,index:66,id:100664,
pPreCreateCode:gml_RoomCC_rm_qb_life_14_PreCreate,rotation:0,scaleX:0.4000000059604645,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:128,index:20,id:100665,pPreCreateCode:gml_RoomCC_rm_qb_life_15_PreCreate,rotation:0,scaleX:1.727272629737854,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:20,id:100666,pPreCreateCode:gml_RoomCC_rm_qb_life_16_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,
index:34,id:100667,pPreCreateCode:gml_RoomCC_rm_qb_life_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:200,y:328,index:34,id:100668,pPreCreateCode:gml_RoomCC_rm_qb_life_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:64,y:144,index:74,id:100669,pPreCreateCode:gml_RoomCC_rm_qb_life_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:0,index:7,id:100660,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:153,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:154,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:21,iinstIDs:[100649,100650,100651,100652,100653,100654,100655,100656,100657,100658,100659,100660,100661,100662,100663,100664,100665,100666,100667,
100668,100669]},{pName:"Background",id:155,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_post_match",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_post_match_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,
wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100670,pPreCreateCode:gml_RoomCC_rm_qb_post_match_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:456,y:8,index:52,id:100671,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100672,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:48,index:74,id:100676,pPreCreateCode:gml_RoomCC_rm_qb_post_match_3_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:64,index:74,id:100677,pPreCreateCode:gml_RoomCC_rm_qb_post_match_4_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:240,y:80,index:74,id:100678,pPreCreateCode:gml_RoomCC_rm_qb_post_match_5_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:96,index:74,id:100679,pPreCreateCode:gml_RoomCC_rm_qb_post_match_6_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:192,index:74,id:100680,pPreCreateCode:gml_RoomCC_rm_qb_post_match_7_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},
{x:240,y:208,index:74,id:100681,pPreCreateCode:gml_RoomCC_rm_qb_post_match_8_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:32,index:66,id:100674,rotation:0,scaleX:1.2999999523162842,scaleY:0.625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:176,index:66,id:100673,pPreCreateCode:gml_RoomCC_rm_qb_post_match_10_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100682,
pPreCreateCode:gml_RoomCC_rm_qb_post_match_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:128,index:21,id:100683,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:128,index:21,id:100684,pPreCreateCode:gml_RoomCC_rm_qb_post_match_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:280,y:128,index:21,id:100685,pPreCreateCode:gml_RoomCC_rm_qb_post_match_14_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-16,index:0,id:100675,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:156,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:157,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:16,iinstIDs:[100670,100671,100672,100673,
100674,100675,100676,100677,100678,100679,100680,100681,100682,100683,100684,100685]},{pName:"Background",id:158,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_shopping",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_shopping_Create,
backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100686,pPreCreateCode:gml_RoomCC_rm_qb_shopping_0_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:112,index:36,id:100687,pPreCreateCode:gml_RoomCC_rm_qb_shopping_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:112,index:36,id:100688,pPreCreateCode:gml_RoomCC_rm_qb_shopping_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:35,index:74,id:100689,pPreCreateCode:gml_RoomCC_rm_qb_shopping_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:456,y:8,index:52,id:100690,pPreCreateCode:gml_RoomCC_rm_qb_shopping_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:-240,index:72,id:100691,pPreCreateCode:gml_RoomCC_rm_qb_shopping_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100692,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100693,pPreCreateCode:gml_RoomCC_rm_qb_shopping_7_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:232,index:20,id:100694,pPreCreateCode:gml_RoomCC_rm_qb_shopping_8_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:200,y:232,index:20,id:100695,pPreCreateCode:gml_RoomCC_rm_qb_shopping_9_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:296,y:232,index:20,id:100696,pPreCreateCode:gml_RoomCC_rm_qb_shopping_10_PreCreate,
rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-8,index:3,id:100697,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:159,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:160,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100686,
100687,100688,100689,100690,100691,100692,100693,100694,100695,100696,100697]},{pName:"Background",id:161,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_contract",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_contract_Create,
backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100698,pPreCreateCode:gml_RoomCC_rm_qb_contract_0_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100701,pPreCreateCode:gml_RoomCC_rm_qb_contract_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100702,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:72,index:72,id:100703,pPreCreateCode:gml_RoomCC_rm_qb_contract_3_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:56,
index:72,id:100704,pPreCreateCode:gml_RoomCC_rm_qb_contract_4_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:113,index:72,id:100705,pPreCreateCode:gml_RoomCC_rm_qb_contract_5_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:96,index:72,id:100706,pPreCreateCode:gml_RoomCC_rm_qb_contract_6_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:124,y:157,index:72,id:100707,pPreCreateCode:gml_RoomCC_rm_qb_contract_7_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:140,index:72,id:100708,pPreCreateCode:gml_RoomCC_rm_qb_contract_8_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:201,index:72,id:100709,pPreCreateCode:gml_RoomCC_rm_qb_contract_9_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:124,y:184,index:72,id:100710,pPreCreateCode:gml_RoomCC_rm_qb_contract_10_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:16,index:74,id:100712,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:40,index:66,id:100699,pPreCreateCode:gml_RoomCC_rm_qb_contract_12_PreCreate,rotation:0,scaleX:1.350000023841858,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:72,index:72,
id:100713,pPreCreateCode:gml_RoomCC_rm_qb_contract_13_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:56,index:72,id:100714,pPreCreateCode:gml_RoomCC_rm_qb_contract_14_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:112,index:72,id:100715,pPreCreateCode:gml_RoomCC_rm_qb_contract_15_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:356,y:96,index:72,id:100716,pPreCreateCode:gml_RoomCC_rm_qb_contract_16_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:156,index:72,id:100717,pPreCreateCode:gml_RoomCC_rm_qb_contract_17_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:140,index:72,id:100718,pPreCreateCode:gml_RoomCC_rm_qb_contract_18_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:356,y:200,index:72,id:100719,pPreCreateCode:gml_RoomCC_rm_qb_contract_19_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:184,index:72,id:100720,pPreCreateCode:gml_RoomCC_rm_qb_contract_20_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:66,id:100700,pPreCreateCode:gml_RoomCC_rm_qb_contract_21_PreCreate,rotation:0,scaleX:1.3500001430511475,scaleY:1.4375,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:100,index:20,id:100721,pPreCreateCode:gml_RoomCC_rm_qb_contract_22_PreCreate,rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:100,index:20,id:100722,pPreCreateCode:gml_RoomCC_rm_qb_contract_23_PreCreate,rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:144,index:20,id:100723,pPreCreateCode:gml_RoomCC_rm_qb_contract_24_PreCreate,rotation:0,scaleX:1,
scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:144,index:20,id:100724,pPreCreateCode:gml_RoomCC_rm_qb_contract_25_PreCreate,rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:188,index:20,id:100725,pPreCreateCode:gml_RoomCC_rm_qb_contract_26_PreCreate,rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:188,index:20,id:100726,pPreCreateCode:gml_RoomCC_rm_qb_contract_27_PreCreate,
rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:232,index:34,id:100727,pPreCreateCode:gml_RoomCC_rm_qb_contract_28_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:0,index:1,id:100711,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:232,index:34,id:100728,pPreCreateCode:gml_RoomCC_rm_qb_contract_30_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
],tiles:[],layers:[{pName:"PopUps",id:162,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:163,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:31,iinstIDs:[100698,100699,100700,100701,100702,100703,100704,100705,100706,100707,100708,100709,100710,100711,100712,100713,100714,100715,100716,100717,100718,100719,100720,100721,100722,100723,100724,
100725,100726,100727,100728]},{pName:"Background",id:164,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_negotiate",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_negotiate_Create,backgrounds:[],views:[{visible:true,
wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100729,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:8,y:232,index:36,id:100730,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:80,index:20,id:100731,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_2_PreCreate,rotation:0,scaleX:1.4848484992980957,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:192,index:20,id:100732,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_3_PreCreate,rotation:0,scaleX:1.4848484992980957,scaleY:0.7647058963775635,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:0,index:80,id:100733,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:248,index:72,id:100734,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:52,index:72,id:100735,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_6_PreCreate,rotation:0,scaleX:9.666666984558105,scaleY:1.5,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{
pName:"PopUps",id:165,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:166,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100729,100730,100731,100732,100733,100734,100735]},{pName:"Background",id:167,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_post_training",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_post_training_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,
hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100736,pPreCreateCode:gml_RoomCC_rm_qb_post_training_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:52,id:100737,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:75,id:100738,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:48,index:74,id:100742,pPreCreateCode:gml_RoomCC_rm_qb_post_training_3_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:64,index:74,id:100743,pPreCreateCode:gml_RoomCC_rm_qb_post_training_4_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:80,index:74,id:100744,pPreCreateCode:gml_RoomCC_rm_qb_post_training_5_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:240,y:96,index:74,id:100745,pPreCreateCode:gml_RoomCC_rm_qb_post_training_6_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:192,index:74,id:100746,pPreCreateCode:gml_RoomCC_rm_qb_post_training_7_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:208,index:74,id:100747,pPreCreateCode:gml_RoomCC_rm_qb_post_training_8_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:136,y:32,index:66,id:100740,rotation:0,scaleX:1.2999999523162842,scaleY:0.625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:176,index:66,id:100739,pPreCreateCode:gml_RoomCC_rm_qb_post_training_10_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100748,pPreCreateCode:gml_RoomCC_rm_qb_post_training_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,
y:128,index:21,id:100749,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:128,index:21,id:100750,pPreCreateCode:gml_RoomCC_rm_qb_post_training_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:280,y:128,index:21,id:100751,pPreCreateCode:gml_RoomCC_rm_qb_post_training_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-16,index:0,id:100741,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:168,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:169,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:16,iinstIDs:[100736,100737,100738,100739,100740,100741,100742,100743,100744,100745,100746,100747,100748,100749,100750,100751]},{pName:"Background",id:170,type:1,depth:200,
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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_draft_college",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,viewClearScreen:false,pCode:gml_Room_rm_draft_college_Create,backgrounds:[],views:[{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},{wview:1366,hview:768,wport:1366,hport:768}],pInstances:[{x:0,y:0,index:10,id:100752,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:171,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,
iinstIDs:[]},{pName:"Instances",id:172,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100752]},{pName:"Background",id:173,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_profile_boss",width:480,height:270,speed:0,colour:0,LayerCount:3,
showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_profile_boss_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:92,y:58,
index:74,id:100755,pPreCreateCode:gml_RoomCC_rm_profile_boss_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:115,index:74,id:100756,pPreCreateCode:gml_RoomCC_rm_profile_boss_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:100,index:74,id:100757,pPreCreateCode:gml_RoomCC_rm_profile_boss_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:112,index:52,id:100759,pPreCreateCode:gml_RoomCC_rm_profile_boss_3_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:48,index:49,id:100758,pPreCreateCode:gml_RoomCC_rm_profile_boss_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:72,id:100760,pPreCreateCode:gml_RoomCC_rm_profile_boss_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:257,index:74,id:100761,pPreCreateCode:gml_RoomCC_rm_profile_boss_6_PreCreate,rotation:0,scaleX:1,scaleY:-1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:40,index:66,id:100754,pPreCreateCode:gml_RoomCC_rm_profile_boss_7_PreCreate,rotation:0,scaleX:1.4500000476837158,scaleY:0.7421879172325134,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:144,index:93,id:100762,pPreCreateCode:gml_RoomCC_rm_profile_boss_8_PreCreate,rotation:0,scaleX:1.399999976158142,scaleY:0.5,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:94,id:100763,pPreCreateCode:gml_RoomCC_rm_profile_boss_9_PreCreate,rotation:0,
scaleX:1.399999976158142,scaleY:0.6000000238418579,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:144,index:91,id:100764,pPreCreateCode:gml_RoomCC_rm_profile_boss_10_PreCreate,rotation:0,scaleX:1.4499998092651367,scaleY:0.5,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100766,pPreCreateCode:gml_RoomCC_rm_profile_boss_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:0,index:36,id:100767,pPreCreateCode:gml_RoomCC_rm_profile_boss_12_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:72,index:74,id:100768,pPreCreateCode:gml_RoomCC_rm_profile_boss_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:86,index:74,id:100769,pPreCreateCode:gml_RoomCC_rm_profile_boss_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:8,index:70,id:100753,pPreCreateCode:gml_RoomCC_rm_profile_boss_15_PreCreate,rotation:0,scaleX:1,scaleY:1,
imageSpeed:1,imageIndex:0,colour:4294967295},{x:-24,y:0,index:45,id:100765,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:174,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:175,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:17,iinstIDs:[100753,100754,100755,100756,100757,100758,
100759,100760,100761,100762,100763,100764,100765,100766,100767,100768,100769]},{pName:"Background",id:176,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_exhibition",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_exhibition_Create,
backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:70,id:100770,pPreCreateCode:gml_RoomCC_rm_exhibition_0_PreCreate,rotation:0,scaleX:1,
scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:20,id:100771,pPreCreateCode:gml_RoomCC_rm_exhibition_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:98,index:132,id:100772,pPreCreateCode:gml_RoomCC_rm_exhibition_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:98,index:132,id:100773,pPreCreateCode:gml_RoomCC_rm_exhibition_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:198,y:112,index:66,id:100774,pPreCreateCode:gml_RoomCC_rm_exhibition_4_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:40,index:66,id:100775,pPreCreateCode:gml_RoomCC_rm_exhibition_5_PreCreate,rotation:0,scaleX:0.699999988079071,scaleY:0.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:205,y:120,index:39,id:100776,pPreCreateCode:gml_RoomCC_rm_exhibition_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,
imageIndex:0,colour:4294967295},{x:192,y:48,index:38,id:100777,pPreCreateCode:gml_RoomCC_rm_exhibition_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:48,index:38,id:100778,pPreCreateCode:gml_RoomCC_rm_exhibition_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:96,index:20,id:100779,pPreCreateCode:gml_RoomCC_rm_exhibition_9_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}
,{x:408,y:96,index:20,id:100780,pPreCreateCode:gml_RoomCC_rm_exhibition_10_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:48,index:20,id:100783,pPreCreateCode:gml_RoomCC_rm_exhibition_11_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:408,y:48,index:20,id:100784,pPreCreateCode:gml_RoomCC_rm_exhibition_12_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0,
colour:4294967295},{x:440,y:232,index:20,id:100785,pPreCreateCode:gml_RoomCC_rm_exhibition_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-24,y:-8,index:16,id:100781,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:36,id:100782,pPreCreateCode:gml_RoomCC_rm_exhibition_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:40,index:74,id:100786,pPreCreateCode:gml_RoomCC_rm_exhibition_16_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:40,index:74,id:100787,pPreCreateCode:gml_RoomCC_rm_exhibition_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:177,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:178,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",
effectProperties:[],icount:18,iinstIDs:[100770,100771,100772,100773,100774,100775,100776,100777,100778,100779,100780,100781,100782,100783,100784,100785,100786,100787]},{pName:"Background",id:179,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_options_exh",width:480,height:270,speed:0,colour:0,LayerCount:3,
showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_options_exh_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,
index:70,id:100788,pPreCreateCode:gml_RoomCC_rm_options_exh_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:36,id:100789,pPreCreateCode:gml_RoomCC_rm_options_exh_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:230,y:88,index:39,id:100790,pPreCreateCode:gml_RoomCC_rm_options_exh_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:230,y:46,index:39,id:100791,pPreCreateCode:gml_RoomCC_rm_options_exh_3_PreCreate,
rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:231,y:170,index:39,id:100792,pPreCreateCode:gml_RoomCC_rm_options_exh_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:220,y:104,index:72,id:100793,pPreCreateCode:gml_RoomCC_rm_options_exh_5_PreCreate,rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:221,y:186,index:72,id:100794,pPreCreateCode:gml_RoomCC_rm_options_exh_6_PreCreate,rotation:0,scaleX:1.5238100290298462,
scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:220,y:62,index:72,id:100795,pPreCreateCode:gml_RoomCC_rm_options_exh_7_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:221,y:144,index:72,id:100796,pPreCreateCode:gml_RoomCC_rm_options_exh_8_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:231,y:128,index:39,id:100797,pPreCreateCode:gml_RoomCC_rm_options_exh_9_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:0,index:25,id:100798,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:180,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:181,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:11,iinstIDs:[100788,100789,100790,
100791,100792,100793,100794,100795,100796,100797,100798]},{pName:"Background",id:182,type:1,depth:200,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:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_exhibition_postmatch",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_exhibition_postmatch_Create,
backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:70,id:100799,pPreCreateCode:gml_RoomCC_rm_exhibition_postmatch_0_PreCreate,rotation:0,
scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:72,index:82,id:100800,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:34,id:100801,pPreCreateCode:gml_RoomCC_rm_exhibition_postmatch_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:4,id:100802,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:183,type:2,depth:0,x:0,y:0,
hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:184,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100799,100800,100801,100802]},{pName:"Background",id:185,type:1,depth:200,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:-38868,
bimage_index:0,bimage_speed:15}]}],RoomOrder:[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],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:960,h:540,XOffset:0,YOffset:0,CropWidth:960,CropHeight:540,ow:960,oh:540,tp:1},{x:2,y:546,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:787,w:1300,h:237,XOffset:0,
YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:1028,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:1269,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:1510,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:1751,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:2,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,
CropHeight:237,ow:1300,oh:237,tp:2},{x:2,y:243,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:2},{x:1306,y:2,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:276,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:550,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:824,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,
tp:1},{x:1306,y:1098,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:1372,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:1646,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:2,y:484,w:460,h:250,XOffset:10,YOffset:10,CropWidth:460,CropHeight:250,ow:480,oh:270,tp:2},{x:2,y:738,w:391,h:262,XOffset:0,YOffset:0,CropWidth:391,CropHeight:262,ow:391,oh:262,tp:2},{x:466,y:484,w:391,h:262,
XOffset:0,YOffset:0,CropWidth:391,CropHeight:262,ow:391,oh:262,tp:2},{x:966,y:2,w:256,h:256,XOffset:0,YOffset:0,CropWidth:256,CropHeight:256,ow:256,oh:256,tp:1},{x:966,y:262,w:256,h:256,XOffset:0,YOffset:0,CropWidth:256,CropHeight:256,ow:256,oh:256,tp:1},{x:1790,y:2,w:256,h:256,XOffset:0,YOffset:0,CropWidth:256,CropHeight:256,ow:256,oh:256,tp:1},{x:861,y:484,w:416,h:144,XOffset:0,YOffset:0,CropWidth:416,CropHeight:144,ow:416,oh:144,tp:2},{x:397,y:750,w:412,h:140,XOffset:2,YOffset:2,CropWidth:412,
CropHeight:140,ow:416,oh:144,tp:2},{x:861,y:632,w:288,h:160,XOffset:0,YOffset:0,CropWidth:288,CropHeight:160,ow:288,oh:160,tp:2},{x:2,y:1992,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:33,ow:1300,oh:33,tp:1},{x:397,y:894,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:33,ow:1300,oh:33,tp:2},{x:397,y:931,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:33,ow:1300,oh:33,tp:2},{x:1790,y:262,w:224,h:176,XOffset:0,YOffset:0,CropWidth:224,CropHeight:176,ow:224,oh:176,tp:1}
,{x:1790,y:442,w:208,h:176,XOffset:0,YOffset:0,CropWidth:208,CropHeight:176,ow:208,oh:176,tp:1},{x:1306,y:1920,w:448,h:80,XOffset:0,YOffset:0,CropWidth:448,CropHeight:80,ow:448,oh:80,tp:1},{x:1790,y:622,w:256,h:128,XOffset:0,YOffset:0,CropWidth:256,CropHeight:128,ow:256,oh:128,tp:1},{x:1790,y:754,w:256,h:128,XOffset:0,YOffset:0,CropWidth:256,CropHeight:128,ow:256,oh:128,tp:1},{x:1790,y:886,w:176,h:176,XOffset:0,YOffset:0,CropWidth:176,CropHeight:176,ow:176,oh:176,tp:1},{x:1790,y:1066,w:160,h:160,
XOffset:0,YOffset:0,CropWidth:160,CropHeight:160,ow:160,oh:160,tp:1},{x:1790,y:1230,w:160,h:128,XOffset:0,YOffset:0,CropWidth:160,CropHeight:128,ow:160,oh:128,tp:1},{x:1790,y:1362,w:208,h:88,XOffset:0,YOffset:0,CropWidth:208,CropHeight:88,ow:208,oh:88,tp:1},{x:1790,y:1454,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84,ow:211,oh:84,tp:1},{x:1790,y:1542,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84,ow:211,oh:84,tp:1},{x:1790,y:1630,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,
CropHeight:84,ow:211,oh:84,tp:1},{x:1790,y:1718,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84,ow:211,oh:84,tp:1},{x:1790,y:1806,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:1},{x:1894,y:1806,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:1},{x:1153,y:632,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:2},{x:1257,y:632,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,
tp:2},{x:1306,y:2,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:2},{x:1410,y:2,w:208,h:80,XOffset:0,YOffset:0,CropWidth:208,CropHeight:80,ow:208,oh:80,tp:2},{x:1622,y:2,w:128,h:128,XOffset:0,YOffset:0,CropWidth:128,CropHeight:128,ow:128,oh:128,tp:2},{x:1754,y:2,w:168,h:92,XOffset:128,YOffset:172,CropWidth:168,CropHeight:92,ow:480,oh:270,tp:2},{x:1758,y:1979,w:208,h:64,XOffset:0,YOffset:0,CropWidth:208,CropHeight:64,ow:208,oh:64,tp:1},{x:1410,y:86,w:140,h:59,XOffset:0,
YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1754,y:98,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1898,y:98,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1554,y:134,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1410,y:149,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:212,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,
oh:59,tp:2},{x:1361,y:275,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:338,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:401,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:464,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:527,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:590,w:140,h:59,XOffset:0,
YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:653,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:716,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1361,y:779,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:813,y:805,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:813,y:805,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,
oh:59,tp:2},{x:957,y:805,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:957,y:805,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1101,y:805,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1505,y:212,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1649,y:197,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1793,y:161,w:140,h:59,XOffset:0,
YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1793,y:224,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1649,y:260,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1306,y:2004,w:299,h:27,XOffset:0,YOffset:0,CropWidth:299,CropHeight:27,ow:299,oh:27,tp:1},{x:1793,y:287,w:208,h:32,XOffset:0,YOffset:0,CropWidth:208,CropHeight:32,ow:208,oh:32,tp:2},{x:1970,y:886,w:64,h:80,XOffset:0,YOffset:0,CropWidth:64,CropHeight:80,ow:64,
oh:80,tp:1},{x:1954,y:1066,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:1970,y:1979,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:1954,y:1134,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:1609,y:2004,w:100,h:40,XOffset:0,YOffset:0,CropWidth:100,CropHeight:40,ow:100,oh:40,tp:1},{x:1937,y:161,w:100,h:40,XOffset:0,YOffset:0,CropWidth:100,CropHeight:40,ow:100,oh:40,tp:2},{x:966,y:522,w:192,h:20,XOffset:0,
YOffset:0,CropWidth:192,CropHeight:20,ow:192,oh:20,tp:1},{x:1505,y:323,w:192,h:20,XOffset:0,YOffset:0,CropWidth:192,CropHeight:20,ow:192,oh:20,tp:2},{x:1970,y:970,w:64,h:58,XOffset:0,YOffset:0,CropWidth:64,CropHeight:58,ow:64,oh:60,tp:1},{x:1505,y:275,w:106,h:34,XOffset:0,YOffset:0,CropWidth:106,CropHeight:34,ow:106,oh:34,tp:2},{x:1505,y:347,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1505,y:383,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,
oh:32,tp:2},{x:1505,y:419,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1505,y:455,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1505,y:491,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1937,y:205,w:104,h:32,XOffset:0,YOffset:2,CropWidth:104,CropHeight:32,ow:106,oh:34,tp:2},{x:1505,y:527,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1937,y:241,w:96,h:32,XOffset:0,
YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1505,y:563,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1505,y:599,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1505,y:635,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1505,y:671,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1505,y:707,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},
{x:1505,y:743,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1505,y:779,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1505,y:815,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1245,y:842,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1345,y:842,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1245,y:805,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,
CropHeight:32,ow:96,oh:32,tp:2},{x:1445,y:851,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1545,y:851,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1954,y:1202,w:90,h:34,XOffset:0,YOffset:0,CropWidth:90,CropHeight:34,ow:90,oh:34,tp:1},{x:1954,y:1240,w:88,h:32,XOffset:0,YOffset:2,CropWidth:88,CropHeight:32,ow:90,oh:34,tp:1},{x:1605,y:527,w:100,h:28,XOffset:4,YOffset:2,CropWidth:100,CropHeight:28,ow:106,oh:34,tp:2},{x:1954,y:1276,w:64,
h:41,XOffset:0,YOffset:0,CropWidth:64,CropHeight:41,ow:64,oh:41,tp:1},{x:1226,y:2,w:51,h:51,XOffset:6,YOffset:6,CropWidth:51,CropHeight:51,ow:60,oh:60,tp:1},{x:1226,y:57,w:51,h:51,XOffset:6,YOffset:6,CropWidth:51,CropHeight:51,ow:60,oh:60,tp:1},{x:1226,y:112,w:74,h:34,XOffset:0,YOffset:0,CropWidth:74,CropHeight:34,ow:74,oh:34,tp:1},{x:1954,y:1321,w:84,h:28,XOffset:4,YOffset:2,CropWidth:84,CropHeight:28,ow:90,oh:34,tp:1},{x:1226,y:150,w:68,h:34,XOffset:0,YOffset:0,CropWidth:68,CropHeight:34,ow:68,
oh:34,tp:1},{x:1226,y:188,w:72,h:32,XOffset:0,YOffset:2,CropWidth:72,CropHeight:32,ow:74,oh:34,tp:1},{x:1226,y:224,w:66,h:32,XOffset:0,YOffset:2,CropWidth:66,CropHeight:32,ow:68,oh:34,tp:1},{x:1619,y:347,w:90,h:23,XOffset:5,YOffset:1,CropWidth:90,CropHeight:23,ow:100,oh:25,tp:2},{x:1226,y:260,w:64,h:32,XOffset:0,YOffset:0,CropWidth:64,CropHeight:32,ow:64,oh:32,tp:1},{x:1226,y:296,w:74,h:26,XOffset:0,YOffset:0,CropWidth:74,CropHeight:26,ow:74,oh:26,tp:1},{x:1226,y:326,w:68,h:28,XOffset:4,YOffset:2,
CropWidth:68,CropHeight:28,ow:74,oh:34,tp:1},{x:1713,y:323,w:89,h:21,XOffset:6,YOffset:3,CropWidth:89,CropHeight:21,ow:100,oh:25,tp:2},{x:1226,y:358,w:54,h:34,XOffset:0,YOffset:0,CropWidth:54,CropHeight:34,ow:54,oh:34,tp:1},{x:1226,y:396,w:62,h:28,XOffset:4,YOffset:2,CropWidth:62,CropHeight:28,ow:68,oh:34,tp:1},{x:1226,y:428,w:72,h:24,XOffset:0,YOffset:2,CropWidth:72,CropHeight:24,ow:74,oh:26,tp:1},{x:1226,y:456,w:52,h:32,XOffset:0,YOffset:2,CropWidth:52,CropHeight:32,ow:54,oh:34,tp:1},{x:1226,y:492,
w:41,h:34,XOffset:0,YOffset:0,CropWidth:41,CropHeight:34,ow:41,oh:34,tp:1},{x:1970,y:1032,w:68,h:20,XOffset:4,YOffset:2,CropWidth:68,CropHeight:20,ow:74,oh:26,tp:1},{x:1998,y:1806,w:48,h:28,XOffset:4,YOffset:2,CropWidth:48,CropHeight:28,ow:54,oh:34,tp:1},{x:2005,y:1353,w:39,h:32,XOffset:0,YOffset:2,CropWidth:39,CropHeight:32,ow:41,oh:34,tp:1},{x:2005,y:1389,w:33,h:34,XOffset:0,YOffset:0,CropWidth:33,CropHeight:34,ow:33,oh:34,tp:1},{x:2005,y:1389,w:33,h:34,XOffset:0,YOffset:0,CropWidth:33,CropHeight:34,
ow:33,oh:34,tp:1},{x:2005,y:1427,w:29,h:36,XOffset:5,YOffset:1,CropWidth:29,CropHeight:36,ow:40,oh:40,tp:1},{x:2005,y:1467,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:2005,y:1503,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:2005,y:1539,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:2005,y:1575,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:1713,y:2004,w:32,h:32,XOffset:0,
YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:1998,y:1838,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:1998,y:1874,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:2,y:2029,w:64,h:16,XOffset:0,YOffset:0,CropWidth:64,CropHeight:16,ow:64,oh:16,tp:1},{x:1998,y:1910,w:31,h:32,XOffset:0,YOffset:2,CropWidth:31,CropHeight:32,ow:33,oh:34,tp:1},{x:1998,y:1910,w:31,h:32,XOffset:0,YOffset:2,CropWidth:31,CropHeight:32,ow:33,oh:34,tp:1}
,{x:1998,y:1946,w:35,h:28,XOffset:4,YOffset:2,CropWidth:35,CropHeight:28,ow:41,oh:34,tp:1},{x:1758,y:1920,w:27,h:36,XOffset:3,YOffset:0,CropWidth:27,CropHeight:36,ow:32,oh:36,tp:1},{x:1271,y:492,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2005,y:1611,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2005,y:1650,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2005,y:1689,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,
CropHeight:35,ow:32,oh:36,tp:1},{x:2005,y:1728,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2005,y:1767,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2018,y:262,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2018,y:301,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2018,y:340,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2018,y:379,w:27,h:35,
XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:1},{x:2018,y:418,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:1},{x:2002,y:456,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:1},{x:2002,y:494,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:1},{x:2002,y:532,w:27,h:34,XOffset:2,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:1},{x:2002,y:570,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,
tp:1},{x:1806,y:323,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1837,y:323,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1868,y:323,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1899,y:323,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1930,y:323,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1961,y:323,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,
CropHeight:34,ow:32,oh:36,tp:2},{x:1992,y:323,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2005,y:277,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1713,y:348,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1744,y:361,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1709,y:399,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1619,y:374,w:27,h:33,
XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1619,y:436,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1650,y:374,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1650,y:436,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1619,y:473,w:27,h:33,XOffset:2,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1650,y:473,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,
tp:2},{x:1681,y:436,w:27,h:33,XOffset:2,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1681,y:473,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1709,y:510,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1709,y:547,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1605,y:559,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:584,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,
CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:621,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:559,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1605,y:596,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:658,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:596,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1605,y:633,w:27,h:33,
XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:695,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:633,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1605,y:670,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:732,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:670,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,
tp:2},{x:1605,y:707,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:769,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:707,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1605,y:744,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:806,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:744,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,
CropHeight:33,ow:32,oh:36,tp:2},{x:1605,y:781,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:843,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:781,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:880,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:818,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:917,w:27,h:33,
XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1645,y:855,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:1701,y:954,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:397,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:428,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:459,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,
tp:2},{x:490,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:521,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:552,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:583,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:614,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:645,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,
CropHeight:33,ow:32,oh:36,tp:2},{x:676,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:707,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:738,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:769,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:800,y:968,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:831,y:968,w:27,h:32,XOffset:3,
YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:862,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:893,y:968,w:27,h:32,XOffset:2,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:924,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:955,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:986,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1017,
y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1048,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1079,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1110,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1141,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1172,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,
ow:32,oh:36,tp:2},{x:1203,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1234,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1265,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1296,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1327,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1358,y:968,w:27,h:32,XOffset:3,YOffset:4,
CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1389,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1420,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1451,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1482,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1513,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1544,y:968,
w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1575,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1606,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1637,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1668,y:968,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1712,y:436,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,
ow:32,oh:36,tp:2},{x:1732,y:584,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1712,y:472,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1740,y:399,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1732,y:620,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1740,y:508,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1732,y:656,w:27,h:32,XOffset:3,YOffset:4,
CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1740,y:544,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1743,y:435,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1732,y:692,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:1732,y:728,w:25,h:34,XOffset:4,YOffset:2,CropWidth:25,CropHeight:34,ow:32,oh:36,tp:2},{x:1699,y:991,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1743,y:471,
w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1732,y:766,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1730,y:991,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1732,y:801,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1732,y:836,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1732,y:871,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,
ow:32,oh:36,tp:2},{x:1732,y:906,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1732,y:941,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1775,y:348,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1806,y:361,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1837,y:361,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:1868,y:361,w:25,h:33,XOffset:4,YOffset:3,
CropWidth:25,CropHeight:33,ow:32,oh:36,tp:2},{x:1897,y:361,w:25,h:33,XOffset:4,YOffset:3,CropWidth:25,CropHeight:33,ow:32,oh:36,tp:2},{x:1926,y:361,w:25,h:33,XOffset:4,YOffset:3,CropWidth:25,CropHeight:33,ow:32,oh:36,tp:2},{x:70,y:2029,w:48,h:16,XOffset:0,YOffset:0,CropWidth:48,CropHeight:16,ow:48,oh:16,tp:1},{x:1955,y:361,w:27,h:28,XOffset:4,YOffset:2,CropWidth:27,CropHeight:28,ow:33,oh:34,tp:2},{x:1955,y:361,w:27,h:28,XOffset:4,YOffset:2,CropWidth:27,CropHeight:28,ow:33,oh:34,tp:2},{x:1162,y:522,
w:41,h:18,XOffset:0,YOffset:0,CropWidth:41,CropHeight:18,ow:41,oh:18,tp:1},{x:2022,y:1056,w:18,h:35,XOffset:7,YOffset:0,CropWidth:18,CropHeight:35,ow:32,oh:35,tp:1},{x:122,y:2029,w:39,h:16,XOffset:0,YOffset:2,CropWidth:39,CropHeight:16,ow:41,oh:18,tp:1},{x:1986,y:361,w:25,h:24,XOffset:3,YOffset:3,CropWidth:25,CropHeight:24,ow:32,oh:32,tp:2},{x:2015,y:361,w:25,h:22,XOffset:3,YOffset:4,CropWidth:25,CropHeight:22,ow:32,oh:32,tp:2},{x:831,y:1004,w:29,h:18,XOffset:1,YOffset:7,CropWidth:29,CropHeight:18,
ow:32,oh:32,tp:2},{x:1775,y:383,w:25,h:20,XOffset:4,YOffset:5,CropWidth:25,CropHeight:20,ow:32,oh:32,tp:2},{x:2022,y:1095,w:22,h:21,XOffset:0,YOffset:0,CropWidth:22,CropHeight:21,ow:22,oh:21,tp:1},{x:2022,y:1276,w:20,h:23,XOffset:6,YOffset:4,CropWidth:20,CropHeight:23,ow:32,oh:32,tp:1},{x:1804,y:396,w:25,h:18,XOffset:3,YOffset:7,CropWidth:25,CropHeight:18,ow:32,oh:32,tp:2},{x:2022,y:1120,w:21,h:21,XOffset:1,YOffset:1,CropWidth:21,CropHeight:21,ow:23,oh:23,tp:1},{x:2022,y:1145,w:24,h:18,XOffset:0,
YOffset:0,CropWidth:24,CropHeight:18,ow:24,oh:18,tp:1},{x:165,y:2029,w:35,h:12,XOffset:4,YOffset:2,CropWidth:35,CropHeight:12,ow:41,oh:18,tp:1},{x:1284,y:358,w:15,h:27,XOffset:12,YOffset:0,CropWidth:15,CropHeight:27,ow:32,oh:27,tp:1},{x:1282,y:456,w:15,h:27,XOffset:6,YOffset:0,CropWidth:15,CropHeight:27,ow:32,oh:27,tp:1},{x:2022,y:1167,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1281,y:2,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},
{x:1281,y:26,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1281,y:50,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1281,y:74,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1281,y:2,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1281,y:26,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1281,y:50,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,
ow:20,oh:20,tp:1},{x:1281,y:74,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1833,y:398,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:1774,y:422,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:1798,y:418,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:1822,y:422,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:1846,y:422,w:21,h:19,XOffset:6,YOffset:6,
CropWidth:21,CropHeight:19,ow:32,oh:32,tp:2},{x:1871,y:398,w:18,h:22,XOffset:6,YOffset:4,CropWidth:18,CropHeight:22,ow:32,oh:32,tp:2},{x:1893,y:398,w:20,h:19,XOffset:6,YOffset:8,CropWidth:20,CropHeight:19,ow:32,oh:32,tp:2},{x:2033,y:456,w:7,h:53,XOffset:10,YOffset:0,CropWidth:7,CropHeight:53,ow:17,oh:90,tp:1},{x:249,y:2029,w:41,h:9,XOffset:0,YOffset:0,CropWidth:41,CropHeight:9,ow:41,oh:9,tp:1},{x:204,y:2029,w:41,h:9,XOffset:0,YOffset:0,CropWidth:41,CropHeight:9,ow:41,oh:9,tp:1},{x:249,y:2029,w:41,
h:9,XOffset:0,YOffset:0,CropWidth:41,CropHeight:9,ow:41,oh:9,tp:1},{x:294,y:2029,w:41,h:9,XOffset:0,YOffset:0,CropWidth:41,CropHeight:9,ow:41,oh:9,tp:1},{x:339,y:2029,w:25,h:14,XOffset:4,YOffset:2,CropWidth:25,CropHeight:14,ow:32,oh:16,tp:1},{x:368,y:2029,w:23,h:15,XOffset:0,YOffset:0,CropWidth:23,CropHeight:15,ow:23,oh:15,tp:1},{x:395,y:2029,w:38,h:9,XOffset:0,YOffset:0,CropWidth:38,CropHeight:9,ow:41,oh:9,tp:1},{x:437,y:2029,w:38,h:9,XOffset:0,YOffset:0,CropWidth:38,CropHeight:9,ow:41,oh:9,tp:1}
,{x:479,y:2029,w:38,h:9,XOffset:1,YOffset:0,CropWidth:38,CropHeight:9,ow:41,oh:9,tp:1},{x:521,y:2035,w:38,h:9,XOffset:1,YOffset:0,CropWidth:38,CropHeight:9,ow:41,oh:9,tp:1},{x:1871,y:424,w:18,h:18,XOffset:6,YOffset:7,CropWidth:18,CropHeight:18,ow:32,oh:32,tp:2},{x:1292,y:389,w:10,h:32,XOffset:0,YOffset:5,CropWidth:10,CropHeight:32,ow:10,oh:37,tp:1},{x:2033,y:513,w:10,h:32,XOffset:0,YOffset:5,CropWidth:10,CropHeight:32,ow:10,oh:37,tp:1},{x:2033,y:549,w:6,h:53,XOffset:10,YOffset:0,CropWidth:6,CropHeight:53,
ow:17,oh:90,tp:1},{x:1917,y:398,w:17,h:18,XOffset:7,YOffset:8,CropWidth:17,CropHeight:18,ow:32,oh:32,tp:2},{x:1207,y:522,w:15,h:20,XOffset:0,YOffset:0,CropWidth:15,CropHeight:20,ow:15,oh:20,tp:1},{x:1893,y:421,w:15,h:20,XOffset:8,YOffset:6,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:1938,y:398,w:15,h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:1938,y:398,w:15,h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:1957,y:393,w:15,h:20,XOffset:9,YOffset:0,
CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:1917,y:420,w:15,h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:1917,y:420,w:15,h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:1226,y:530,w:33,h:9,XOffset:0,YOffset:0,CropWidth:33,CropHeight:9,ow:41,oh:9,tp:1},{x:1263,y:531,w:33,h:9,XOffset:0,YOffset:0,CropWidth:33,CropHeight:9,ow:41,oh:9,tp:1},{x:563,y:2035,w:33,h:9,XOffset:4,YOffset:0,CropWidth:33,CropHeight:9,ow:41,oh:9,tp:1},{x:600,y:2035,w:33,
h:9,XOffset:4,YOffset:0,CropWidth:33,CropHeight:9,ow:41,oh:9,tp:1},{x:637,y:2029,w:17,h:17,XOffset:7,YOffset:7,CropWidth:17,CropHeight:17,ow:32,oh:32,tp:1},{x:658,y:2029,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:686,y:2029,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:714,y:2029,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:742,y:2029,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,
oh:20,tp:1},{x:770,y:2029,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:798,y:2029,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:1976,y:393,w:16,h:18,XOffset:1,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1957,y:417,w:16,h:18,XOffset:4,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1996,y:389,w:16,h:18,XOffset:1,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1936,y:422,w:16,h:18,XOffset:4,YOffset:0,
CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1977,y:415,w:16,h:18,XOffset:1,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:2016,y:387,w:16,h:18,XOffset:4,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1997,y:411,w:14,h:20,XOffset:9,YOffset:0,CropWidth:14,CropHeight:20,ow:32,oh:32,tp:2},{x:1997,y:411,w:14,h:20,XOffset:9,YOffset:0,CropWidth:14,CropHeight:20,ow:32,oh:32,tp:2},{x:826,y:2035,w:39,h:7,XOffset:0,YOffset:0,CropWidth:39,CropHeight:7,ow:39,oh:7,tp:1},{x:826,y:2035,
w:39,h:7,XOffset:0,YOffset:0,CropWidth:39,CropHeight:7,ow:39,oh:7,tp:1},{x:869,y:2029,w:17,h:16,XOffset:7,YOffset:7,CropWidth:17,CropHeight:16,ow:32,oh:32,tp:1},{x:890,y:2035,w:30,h:9,XOffset:0,YOffset:0,CropWidth:30,CropHeight:9,ow:41,oh:9,tp:1},{x:924,y:2035,w:30,h:9,XOffset:0,YOffset:0,CropWidth:30,CropHeight:9,ow:41,oh:9,tp:1},{x:958,y:2035,w:30,h:9,XOffset:5,YOffset:0,CropWidth:30,CropHeight:9,ow:41,oh:9,tp:1},{x:992,y:2035,w:30,h:9,XOffset:5,YOffset:0,CropWidth:30,CropHeight:9,ow:41,oh:9,tp:1}
,{x:2036,y:1611,w:6,h:44,XOffset:10,YOffset:18,CropWidth:6,CropHeight:44,ow:17,oh:90,tp:1},{x:2033,y:1910,w:13,h:20,XOffset:1,YOffset:0,CropWidth:13,CropHeight:20,ow:16,oh:20,tp:1},{x:2016,y:409,w:13,h:20,XOffset:1,YOffset:0,CropWidth:13,CropHeight:20,ow:16,oh:20,tp:2},{x:1046,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1026,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1046,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,
CropHeight:16,ow:16,oh:16,tp:1},{x:1166,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1066,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1086,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1106,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1126,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1146,y:2029,w:16,
h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1166,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1186,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1206,y:2029,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1226,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1245,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,
ow:15,oh:17,tp:1},{x:1264,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1283,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:2015,y:433,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1977,y:437,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1956,y:439,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1912,y:444,w:15,h:17,XOffset:0,YOffset:0,
CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1302,y:2035,w:36,h:7,XOffset:1,YOffset:0,CropWidth:36,CropHeight:7,ow:39,oh:7,tp:1},{x:1342,y:2035,w:36,h:7,XOffset:0,YOffset:0,CropWidth:36,CropHeight:7,ow:39,oh:7,tp:1},{x:1893,y:445,w:15,h:16,XOffset:8,YOffset:7,CropWidth:15,CropHeight:16,ow:32,oh:32,tp:2},{x:1758,y:1960,w:16,h:15,XOffset:9,YOffset:8,CropWidth:16,CropHeight:15,ow:32,oh:32,tp:1},{x:1774,y:446,w:16,h:15,XOffset:7,YOffset:8,CropWidth:16,CropHeight:15,ow:32,oh:32,tp:2},{x:1794,y:446,
w:15,h:16,XOffset:9,YOffset:9,CropWidth:15,CropHeight:16,ow:32,oh:32,tp:2},{x:1774,y:466,w:16,h:15,XOffset:0,YOffset:0,CropWidth:16,CropHeight:15,ow:16,oh:16,tp:2},{x:2034,y:1838,w:12,h:19,XOffset:2,YOffset:2,CropWidth:12,CropHeight:19,ow:16,oh:23,tp:1},{x:2023,y:315,w:15,h:15,XOffset:8,YOffset:9,CropWidth:15,CropHeight:15,ow:32,oh:32,tp:2},{x:1382,y:2035,w:25,h:9,XOffset:0,YOffset:0,CropWidth:25,CropHeight:9,ow:41,oh:9,tp:1},{x:1411,y:2035,w:25,h:9,XOffset:0,YOffset:0,CropWidth:25,CropHeight:9,
ow:41,oh:9,tp:1},{x:1440,y:2035,w:25,h:9,XOffset:8,YOffset:0,CropWidth:25,CropHeight:9,ow:41,oh:9,tp:1},{x:1469,y:2035,w:25,h:9,XOffset:8,YOffset:0,CropWidth:25,CropHeight:9,ow:41,oh:9,tp:1},{x:2023,y:334,w:13,h:17,XOffset:0,YOffset:3,CropWidth:13,CropHeight:17,ow:16,oh:20,tp:2},{x:864,y:1004,w:13,h:17,XOffset:2,YOffset:3,CropWidth:13,CropHeight:17,ow:16,oh:20,tp:2},{x:881,y:1004,w:13,h:17,XOffset:1,YOffset:2,CropWidth:13,CropHeight:17,ow:15,oh:20,tp:2},{x:898,y:1004,w:13,h:17,XOffset:1,YOffset:0,
CropWidth:13,CropHeight:17,ow:16,oh:17,tp:2},{x:2034,y:1861,w:10,h:22,XOffset:4,YOffset:5,CropWidth:10,CropHeight:22,ow:32,oh:32,tp:1},{x:1498,y:2035,w:31,h:7,XOffset:0,YOffset:0,CropWidth:31,CropHeight:7,ow:39,oh:7,tp:1},{x:1533,y:2035,w:31,h:7,XOffset:4,YOffset:0,CropWidth:31,CropHeight:7,ow:39,oh:7,tp:1},{x:915,y:1004,w:14,h:15,XOffset:0,YOffset:5,CropWidth:14,CropHeight:15,ow:16,oh:20,tp:2},{x:2034,y:1887,w:12,h:17,XOffset:7,YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:1},{x:2034,y:1887,
w:12,h:17,XOffset:7,YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:1},{x:2034,y:1887,w:12,h:17,XOffset:7,YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:1},{x:933,y:1004,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:2},{x:949,y:1004,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:2},{x:965,y:1004,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:2},{x:981,y:1004,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,
ow:16,oh:24,tp:2},{x:997,y:1004,w:12,h:17,XOffset:1,YOffset:3,CropWidth:12,CropHeight:17,ow:16,oh:20,tp:2},{x:1013,y:1004,w:12,h:17,XOffset:1,YOffset:3,CropWidth:12,CropHeight:17,ow:16,oh:20,tp:2},{x:1029,y:1004,w:12,h:17,XOffset:0,YOffset:0,CropWidth:12,CropHeight:17,ow:12,oh:17,tp:2},{x:1045,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1061,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1077,y:1004,w:12,h:17,XOffset:1,
YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1093,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1109,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1125,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1141,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1157,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2}
,{x:1173,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1189,y:1004,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1205,y:1004,w:12,h:17,XOffset:2,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1205,y:1004,w:12,h:17,XOffset:2,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:2},{x:1221,y:1004,w:11,h:18,XOffset:3,YOffset:6,CropWidth:11,CropHeight:18,ow:16,oh:24,tp:2},{x:1236,y:1004,w:11,h:18,XOffset:2,YOffset:6,CropWidth:11,
CropHeight:18,ow:16,oh:24,tp:2},{x:2022,y:1303,w:22,h:9,XOffset:0,YOffset:0,CropWidth:22,CropHeight:9,ow:41,oh:9,tp:1},{x:1568,y:2035,w:22,h:9,XOffset:0,YOffset:0,CropWidth:22,CropHeight:9,ow:41,oh:9,tp:1},{x:2002,y:608,w:22,h:9,XOffset:9,YOffset:0,CropWidth:22,CropHeight:9,ow:41,oh:9,tp:1},{x:1251,y:1004,w:22,h:9,XOffset:9,YOffset:0,CropWidth:22,CropHeight:9,ow:41,oh:9,tp:2},{x:1277,y:1004,w:14,h:14,XOffset:2,YOffset:2,CropWidth:14,CropHeight:14,ow:18,oh:18,tp:2},{x:1295,y:1004,w:14,h:14,XOffset:0,
YOffset:0,CropWidth:14,CropHeight:14,ow:14,oh:14,tp:2},{x:1313,y:1004,w:28,h:7,XOffset:5,YOffset:0,CropWidth:28,CropHeight:7,ow:39,oh:7,tp:2},{x:1345,y:1004,w:28,h:7,XOffset:0,YOffset:0,CropWidth:28,CropHeight:7,ow:39,oh:7,tp:2},{x:1377,y:1004,w:15,h:13,XOffset:0,YOffset:11,CropWidth:15,CropHeight:13,ow:16,oh:24,tp:2},{x:2036,y:1659,w:10,h:19,XOffset:0,YOffset:1,CropWidth:10,CropHeight:19,ow:10,oh:21,tp:1},{x:1281,y:98,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:1},{x:1396,
y:1004,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:2},{x:1421,y:1004,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:2},{x:1446,y:1004,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:2},{x:1461,y:1004,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:2},{x:1476,y:1004,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:2},{x:1491,y:1004,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,
ow:16,oh:17,tp:2},{x:1506,y:1004,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:2},{x:1536,y:1004,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:2},{x:1521,y:1004,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:2},{x:1536,y:1004,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:2},{x:1551,y:1004,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:2},{x:1568,y:1004,w:13,h:14,XOffset:3,
YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:2},{x:1568,y:1004,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:2},{x:1551,y:1004,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:2},{x:1568,y:1004,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:2},{x:1585,y:1004,w:13,h:14,XOffset:1,YOffset:4,CropWidth:13,CropHeight:14,ow:16,oh:24,tp:2},{x:1602,y:1004,w:13,h:14,XOffset:1,YOffset:4,CropWidth:13,CropHeight:14,ow:16,oh:24,tp:2}
,{x:1619,y:1004,w:13,h:14,XOffset:0,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:2},{x:1636,y:1004,w:13,h:14,XOffset:0,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:2},{x:1653,y:1004,w:13,h:14,XOffset:1,YOffset:0,CropWidth:13,CropHeight:14,ow:16,oh:16,tp:2},{x:1670,y:1004,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:2},{x:2,y:1005,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:2},{x:18,y:1005,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,
CropHeight:15,ow:16,oh:16,tp:2},{x:34,y:1005,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:2},{x:69,y:1005,w:15,h:12,XOffset:9,YOffset:0,CropWidth:15,CropHeight:12,ow:32,oh:32,tp:2},{x:50,y:1005,w:15,h:12,XOffset:9,YOffset:0,CropWidth:15,CropHeight:12,ow:32,oh:32,tp:2},{x:69,y:1005,w:15,h:12,XOffset:9,YOffset:0,CropWidth:15,CropHeight:12,ow:32,oh:32,tp:2},{x:88,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:88,y:1005,w:11,h:16,XOffset:5,
YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:103,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:103,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:118,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:118,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:133,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},
{x:133,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:148,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:148,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:163,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:163,y:1005,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:2},{x:178,y:1005,w:22,h:8,XOffset:6,YOffset:18,CropWidth:22,
CropHeight:8,ow:32,oh:26,tp:2},{x:204,y:1005,w:22,h:8,XOffset:6,YOffset:18,CropWidth:22,CropHeight:8,ow:32,oh:26,tp:2},{x:230,y:1005,w:11,h:16,XOffset:2,YOffset:0,CropWidth:11,CropHeight:16,ow:16,oh:16,tp:2},{x:245,y:1005,w:19,h:9,XOffset:7,YOffset:13,CropWidth:19,CropHeight:9,ow:32,oh:26,tp:2},{x:268,y:1005,w:19,h:9,XOffset:7,YOffset:13,CropWidth:19,CropHeight:9,ow:32,oh:26,tp:2},{x:2036,y:1682,w:10,h:17,XOffset:5,YOffset:3,CropWidth:10,CropHeight:17,ow:16,oh:20,tp:1},{x:291,y:1005,w:13,h:13,XOffset:9,
YOffset:10,CropWidth:13,CropHeight:13,ow:32,oh:32,tp:2},{x:308,y:1005,w:13,h:13,XOffset:1,YOffset:1,CropWidth:13,CropHeight:13,ow:15,oh:15,tp:2},{x:325,y:1005,w:21,h:8,XOffset:6,YOffset:18,CropWidth:21,CropHeight:8,ow:32,oh:26,tp:2},{x:350,y:1005,w:12,h:14,XOffset:0,YOffset:0,CropWidth:12,CropHeight:14,ow:12,oh:14,tp:2},{x:366,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:366,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},
{x:366,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:366,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:381,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:381,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:381,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:381,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,
CropHeight:15,ow:20,oh:20,tp:2},{x:396,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:396,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:396,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:396,y:1005,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:2},{x:411,y:1005,w:11,h:15,XOffset:5,YOffset:1,CropWidth:11,CropHeight:15,ow:18,oh:16,tp:2},{x:426,y:1005,w:15,h:11,
XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:2},{x:426,y:1005,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:2},{x:426,y:1005,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:2},{x:426,y:1005,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:2},{x:426,y:1005,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:2},{x:426,y:1005,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,
tp:2},{x:426,y:1005,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:2},{x:445,y:1005,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:2},{x:460,y:1005,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:2},{x:475,y:1005,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:2},{x:490,y:1005,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:2},{x:2028,y:608,w:18,h:9,XOffset:7,YOffset:13,CropWidth:18,
CropHeight:9,ow:32,oh:26,tp:1},{x:2022,y:1191,w:23,h:7,XOffset:0,YOffset:0,CropWidth:23,CropHeight:7,ow:23,oh:7,tp:1},{x:1313,y:1015,w:23,h:7,XOffset:0,YOffset:0,CropWidth:23,CropHeight:7,ow:39,oh:7,tp:2},{x:505,y:1005,w:23,h:7,XOffset:8,YOffset:0,CropWidth:23,CropHeight:7,ow:39,oh:7,tp:2},{x:2036,y:1703,w:10,h:16,XOffset:4,YOffset:0,CropWidth:10,CropHeight:16,ow:16,oh:16,tp:1},{x:2036,y:1723,w:10,h:16,XOffset:5,YOffset:4,CropWidth:10,CropHeight:16,ow:16,oh:20,tp:1},{x:2036,y:1743,w:10,h:16,XOffset:1,
YOffset:0,CropWidth:10,CropHeight:16,ow:16,oh:16,tp:1},{x:532,y:1005,w:13,h:12,XOffset:2,YOffset:0,CropWidth:13,CropHeight:12,ow:16,oh:13,tp:2},{x:549,y:1005,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:2},{x:567,y:1005,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:2},{x:585,y:1005,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:2},{x:603,y:1005,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:2},
{x:621,y:1005,w:11,h:14,XOffset:2,YOffset:1,CropWidth:11,CropHeight:14,ow:16,oh:16,tp:2},{x:636,y:1005,w:11,h:14,XOffset:3,YOffset:6,CropWidth:11,CropHeight:14,ow:16,oh:20,tp:2},{x:2036,y:1763,w:9,h:17,XOffset:6,YOffset:3,CropWidth:9,CropHeight:17,ow:20,oh:20,tp:1},{x:2036,y:1784,w:9,h:17,XOffset:3,YOffset:0,CropWidth:9,CropHeight:17,ow:16,oh:17,tp:1},{x:651,y:1005,w:17,h:9,XOffset:0,YOffset:0,CropWidth:17,CropHeight:9,ow:41,oh:9,tp:2},{x:672,y:1005,w:17,h:9,XOffset:0,YOffset:0,CropWidth:17,CropHeight:9,
ow:41,oh:9,tp:2},{x:693,y:1005,w:17,h:9,XOffset:12,YOffset:0,CropWidth:17,CropHeight:9,ow:41,oh:9,tp:2},{x:714,y:1005,w:17,h:9,XOffset:12,YOffset:0,CropWidth:17,CropHeight:9,ow:41,oh:9,tp:2},{x:1340,y:1015,w:21,h:7,XOffset:0,YOffset:0,CropWidth:21,CropHeight:7,ow:21,oh:7,tp:2},{x:2037,y:1934,w:9,h:16,XOffset:3,YOffset:4,CropWidth:9,CropHeight:16,ow:16,oh:20,tp:1},{x:2037,y:1954,w:9,h:16,XOffset:7,YOffset:4,CropWidth:9,CropHeight:16,ow:20,oh:20,tp:1},{x:2037,y:241,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,
CropHeight:16,ow:16,oh:16,tp:2},{x:2036,y:277,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:1686,y:1004,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:802,y:1005,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:735,y:1005,w:9,h:16,XOffset:4,YOffset:4,CropWidth:9,CropHeight:16,ow:16,oh:20,tp:2},{x:748,y:1005,w:18,h:8,XOffset:0,YOffset:0,CropWidth:18,CropHeight:8,ow:18,oh:8,tp:2},{x:770,y:1005,w:12,h:12,XOffset:0,
YOffset:0,CropWidth:12,CropHeight:12,ow:12,oh:12,tp:2},{x:786,y:1005,w:12,h:12,XOffset:0,YOffset:0,CropWidth:12,CropHeight:12,ow:12,oh:12,tp:2},{x:1846,y:445,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:802,y:1005,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:815,y:1005,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:1846,y:445,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:1857,
y:398,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:1846,y:445,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:2},{x:1813,y:446,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:2},{x:1859,y:446,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:2},{x:1826,y:446,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:2},{x:1872,y:446,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,
oh:17,tp:2},{x:1839,y:465,w:13,h:11,XOffset:4,YOffset:9,CropWidth:13,CropHeight:11,ow:20,oh:20,tp:2},{x:1902,y:465,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:2},{x:1885,y:465,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:2},{x:1794,y:466,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:2},{x:1902,y:465,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:2},{x:1856,y:466,w:13,h:11,XOffset:1,YOffset:5,
CropWidth:13,CropHeight:11,ow:16,oh:16,tp:2},{x:1811,y:466,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:2},{x:1919,y:465,w:14,h:10,XOffset:0,YOffset:10,CropWidth:14,CropHeight:10,ow:16,oh:20,tp:2},{x:1937,y:444,w:14,h:10,XOffset:0,YOffset:10,CropWidth:14,CropHeight:10,ow:16,oh:20,tp:2},{x:1937,y:460,w:20,h:7,XOffset:0,YOffset:0,CropWidth:20,CropHeight:7,ow:39,oh:7,tp:2},{x:1961,y:460,w:20,h:7,XOffset:9,YOffset:0,CropWidth:20,CropHeight:7,ow:39,oh:7,tp:2},{x:1985,y:458,
w:9,h:15,XOffset:3,YOffset:0,CropWidth:9,CropHeight:15,ow:16,oh:16,tp:2},{x:2038,y:1427,w:7,h:19,XOffset:4,YOffset:1,CropWidth:7,CropHeight:19,ow:16,oh:20,tp:1},{x:2038,y:1974,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:1},{x:2038,y:1994,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:1},{x:2038,y:2014,w:8,h:16,XOffset:3,YOffset:4,CropWidth:8,CropHeight:16,ow:16,oh:20,tp:1},{x:2038,y:886,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,
oh:17,tp:1},{x:2038,y:906,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:1},{x:2038,y:926,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:1},{x:2038,y:926,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:1},{x:2038,y:976,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:1},{x:2038,y:951,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:1},{x:2038,y:976,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,
ow:7,oh:28,tp:1},{x:2038,y:1001,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:1},{x:1296,y:224,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:1},{x:1296,y:224,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:1},{x:1296,y:249,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:1},{x:2036,y:297,w:9,h:14,XOffset:3,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:2},{x:1998,y:435,w:9,h:14,XOffset:2,YOffset:2,CropWidth:9,
CropHeight:14,ow:16,oh:16,tp:2},{x:1998,y:454,w:9,h:14,XOffset:2,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:2},{x:2011,y:454,w:9,h:14,XOffset:3,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:2},{x:1937,y:471,w:14,h:9,XOffset:0,YOffset:0,CropWidth:14,CropHeight:9,ow:41,oh:9,tp:2},{x:1998,y:472,w:14,h:9,XOffset:0,YOffset:0,CropWidth:14,CropHeight:9,ow:41,oh:9,tp:2},{x:2024,y:454,w:14,h:9,XOffset:14,YOffset:0,CropWidth:14,CropHeight:9,ow:41,oh:9,tp:2},{x:1955,y:471,w:14,h:9,XOffset:14,YOffset:0,
CropWidth:14,CropHeight:9,ow:41,oh:9,tp:2},{x:1594,y:2035,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:1},{x:2024,y:467,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:2034,y:409,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:2034,y:424,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:2034,y:439,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1973,y:477,
w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1794,y:484,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1732,y:976,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1747,y:976,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1771,y:407,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1828,y:480,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,
ow:11,oh:11,tp:2},{x:1843,y:484,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1809,y:481,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1858,y:484,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1858,y:484,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1873,y:484,w:11,h:11,XOffset:1,YOffset:2,CropWidth:11,CropHeight:11,ow:15,oh:15,tp:2},{x:1888,y:484,w:11,h:11,XOffset:0,YOffset:0,
CropWidth:11,CropHeight:11,ow:11,oh:11,tp:2},{x:1778,y:1960,w:8,h:15,XOffset:0,YOffset:0,CropWidth:8,CropHeight:15,ow:8,oh:15,tp:1},{x:1294,y:274,w:8,h:15,XOffset:0,YOffset:0,CropWidth:8,CropHeight:15,ow:8,oh:15,tp:1},{x:1903,y:480,w:10,h:12,XOffset:2,YOffset:0,CropWidth:10,CropHeight:12,ow:16,oh:13,tp:2},{x:1762,y:976,w:7,h:17,XOffset:0,YOffset:11,CropWidth:7,CropHeight:17,ow:7,oh:28,tp:2},{x:1763,y:580,w:7,h:17,XOffset:0,YOffset:11,CropWidth:7,CropHeight:17,ow:7,oh:28,tp:2},{x:1761,y:997,w:7,h:16,
XOffset:4,YOffset:0,CropWidth:7,CropHeight:16,ow:16,oh:16,tp:2},{x:1763,y:601,w:7,h:16,XOffset:9,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:2},{x:1763,y:621,w:7,h:16,XOffset:9,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:2},{x:1763,y:641,w:7,h:16,XOffset:8,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:2},{x:1917,y:480,w:9,h:12,XOffset:0,YOffset:0,CropWidth:9,CropHeight:12,ow:9,oh:12,tp:2},{x:1930,y:484,w:9,h:12,XOffset:0,YOffset:0,CropWidth:9,CropHeight:12,ow:9,oh:12,tp:2},{x:1943,
y:492,w:15,h:7,XOffset:0,YOffset:0,CropWidth:15,CropHeight:7,ow:39,oh:7,tp:2},{x:1774,y:503,w:15,h:7,XOffset:12,YOffset:0,CropWidth:15,CropHeight:7,ow:39,oh:7,tp:2},{x:2038,y:1450,w:8,h:13,XOffset:8,YOffset:2,CropWidth:8,CropHeight:13,ow:16,oh:16,tp:1},{x:1793,y:499,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1793,y:499,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1793,y:499,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,
oh:28,tp:2},{x:1793,y:499,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1774,y:485,w:14,h:7,XOffset:0,YOffset:0,CropWidth:14,CropHeight:7,ow:14,oh:7,tp:2},{x:1970,y:1056,w:16,h:6,XOffset:4,YOffset:17,CropWidth:16,CropHeight:6,ow:24,oh:24,tp:1},{x:395,y:2042,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1},{x:521,y:2029,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1},{x:890,y:2029,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,
CropHeight:2,ow:46,oh:2,tp:1},{x:445,y:2042,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1},{x:571,y:2029,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1},{x:1803,y:500,w:13,h:7,XOffset:12,YOffset:0,CropWidth:13,CropHeight:7,ow:25,oh:7,tp:2},{x:2038,y:2034,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:1},{x:1842,y:500,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:2},{x:1820,y:500,w:7,h:12,XOffset:0,YOffset:0,
CropWidth:7,CropHeight:12,ow:7,oh:12,tp:2},{x:1831,y:500,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:2},{x:2038,y:2034,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:1},{x:1820,y:500,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:2},{x:1831,y:500,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:2},{x:1842,y:500,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:2},{x:1853,y:500,w:7,h:12,XOffset:0,
YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:2},{x:1853,y:500,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:2},{x:2002,y:442,w:12,h:7,XOffset:0,YOffset:0,CropWidth:12,CropHeight:7,ow:39,oh:7,tp:1},{x:1864,y:500,w:12,h:7,XOffset:14,YOffset:0,CropWidth:12,CropHeight:7,ow:39,oh:7,tp:2},{x:1880,y:500,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1906,y:500,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1906,y:500,w:9,h:9,
XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1906,y:500,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1893,y:500,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1906,y:500,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1919,y:500,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1932,y:503,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:14,oh:9,tp:2},{x:1945,y:503,w:9,h:9,XOffset:0,
YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1958,y:503,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1958,y:503,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:41,oh:9,tp:2},{x:1971,y:492,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:41,oh:9,tp:2},{x:1984,y:492,w:9,h:9,XOffset:16,YOffset:0,CropWidth:9,CropHeight:9,ow:41,oh:9,tp:2},{x:1971,y:505,w:9,h:9,XOffset:16,YOffset:0,CropWidth:9,CropHeight:9,ow:41,oh:9,tp:2},{x:1997,y:485,w:9,h:9,XOffset:0,
YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:1984,y:505,w:11,h:7,XOffset:6,YOffset:15,CropWidth:11,CropHeight:7,ow:24,oh:24,tp:2},{x:1984,y:505,w:11,h:7,XOffset:6,YOffset:15,CropWidth:11,CropHeight:7,ow:24,oh:24,tp:2},{x:2010,y:485,w:9,h:8,XOffset:0,YOffset:1,CropWidth:9,CropHeight:8,ow:9,oh:9,tp:2},{x:826,y:2029,w:36,h:2,XOffset:0,YOffset:0,CropWidth:36,CropHeight:2,ow:36,oh:2,tp:1},{x:940,y:2029,w:36,h:2,XOffset:0,YOffset:0,CropWidth:36,CropHeight:2,ow:36,oh:2,tp:1},{x:980,y:2029,w:36,
h:2,XOffset:0,YOffset:0,CropWidth:36,CropHeight:2,ow:36,oh:2,tp:1},{x:204,y:2042,w:36,h:2,XOffset:0,YOffset:0,CropWidth:36,CropHeight:2,ow:36,oh:2,tp:1},{x:1999,y:498,w:6,h:11,XOffset:0,YOffset:1,CropWidth:6,CropHeight:11,ow:6,oh:13,tp:2},{x:2010,y:497,w:9,h:7,XOffset:0,YOffset:0,CropWidth:9,CropHeight:7,ow:16,oh:16,tp:2},{x:1990,y:1056,w:10,h:6,XOffset:2,YOffset:6,CropWidth:10,CropHeight:6,ow:13,oh:12,tp:1},{x:2004,y:1056,w:10,h:6,XOffset:2,YOffset:6,CropWidth:10,CropHeight:6,ow:13,oh:12,tp:1},
{x:2023,y:482,w:7,h:8,XOffset:0,YOffset:0,CropWidth:7,CropHeight:8,ow:7,oh:8,tp:2},{x:2034,y:482,w:6,h:9,XOffset:0,YOffset:0,CropWidth:6,CropHeight:9,ow:41,oh:9,tp:2},{x:2039,y:467,w:6,h:9,XOffset:0,YOffset:0,CropWidth:6,CropHeight:9,ow:41,oh:9,tp:2},{x:2023,y:494,w:6,h:9,XOffset:17,YOffset:0,CropWidth:6,CropHeight:9,ow:41,oh:9,tp:2},{x:2033,y:495,w:6,h:9,XOffset:17,YOffset:0,CropWidth:6,CropHeight:9,ow:41,oh:9,tp:2},{x:2009,y:508,w:7,h:7,XOffset:0,YOffset:0,CropWidth:7,CropHeight:7,ow:7,oh:7,tp:2}
,{x:2020,y:508,w:7,h:7,XOffset:0,YOffset:0,CropWidth:7,CropHeight:7,ow:7,oh:7,tp:2},{x:2020,y:508,w:7,h:7,XOffset:0,YOffset:0,CropWidth:7,CropHeight:7,ow:39,oh:7,tp:2},{x:2031,y:508,w:7,h:7,XOffset:16,YOffset:0,CropWidth:7,CropHeight:7,ow:39,oh:7,tp:2},{x:1803,y:511,w:7,h:7,XOffset:1,YOffset:1,CropWidth:7,CropHeight:7,ow:9,oh:9,tp:2},{x:1814,y:516,w:7,h:7,XOffset:1,YOffset:1,CropWidth:7,CropHeight:7,ow:9,oh:9,tp:2},{x:1825,y:518,w:6,h:7,XOffset:17,YOffset:1,CropWidth:6,CropHeight:7,ow:41,oh:9,tp:2}
,{x:244,y:2042,w:10,h:4,XOffset:2,YOffset:6,CropWidth:10,CropHeight:4,ow:13,oh:12,tp:1},{x:2041,y:1467,w:5,h:8,XOffset:2,YOffset:1,CropWidth:5,CropHeight:8,ow:9,oh:9,tp:1},{x:1713,y:2040,w:7,h:5,XOffset:1,YOffset:1,CropWidth:7,CropHeight:5,ow:16,oh:16,tp:1},{x:1724,y:2040,w:7,h:5,XOffset:0,YOffset:0,CropWidth:7,CropHeight:5,ow:7,oh:8,tp:1},{x:1735,y:2040,w:16,h:2,XOffset:10,YOffset:0,CropWidth:16,CropHeight:2,ow:36,oh:2,tp:1},{x:258,y:2042,w:16,h:2,XOffset:10,YOffset:0,CropWidth:16,CropHeight:2,
ow:36,oh:2,tp:1},{x:495,y:2042,w:7,h:4,XOffset:0,YOffset:0,CropWidth:7,CropHeight:4,ow:7,oh:4,tp:1},{x:1749,y:2004,w:4,h:7,XOffset:17,YOffset:0,CropWidth:4,CropHeight:7,ow:39,oh:7,tp:1},{x:1749,y:2015,w:4,h:7,XOffset:0,YOffset:0,CropWidth:4,CropHeight:7,ow:39,oh:7,tp:1},{x:1749,y:2026,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:1},{x:2041,y:1479,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:1},{x:2041,y:1488,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,
ow:5,oh:5,tp:1},{x:2041,y:1497,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:1},{x:2041,y:1506,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:1},{x:2041,y:1515,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:1},{x:2041,y:1524,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:1},{x:506,y:2042,w:8,h:3,XOffset:1,YOffset:1,CropWidth:8,CropHeight:3,ow:10,oh:5,tp:1},{x:2041,y:1533,w:5,h:4,XOffset:0,YOffset:0,CropWidth:5,CropHeight:4,
ow:5,oh:4,tp:1},{x:278,y:2042,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:288,y:2042,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:298,y:2042,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:308,y:2042,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:318,y:2042,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:328,y:2042,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,
ow:10,oh:5,tp:1},{x:1954,y:1353,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1964,y:1353,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1974,y:1353,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1984,y:1353,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1994,y:1353,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1835,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,
ow:10,oh:5,tp:2},{x:1845,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1855,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1865,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1864,y:511,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1875,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1885,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,
ow:10,oh:5,tp:2},{x:1895,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1905,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1915,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1925,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1935,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1945,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,
ow:10,oh:5,tp:2},{x:1955,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1965,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1975,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:1985,y:519,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:2},{x:2041,y:1541,w:4,h:4,XOffset:1,YOffset:1,CropWidth:4,CropHeight:4,ow:7,oh:7,tp:1},{x:2041,y:1549,w:4,h:4,XOffset:0,YOffset:0,CropWidth:4,CropHeight:4,
ow:4,oh:4,tp:1},{x:2041,y:1557,w:4,h:4,XOffset:0,YOffset:0,CropWidth:4,CropHeight:4,ow:4,oh:4,tp:1},{x:2041,y:1565,w:2,h:8,XOffset:0,YOffset:0,CropWidth:2,CropHeight:8,ow:2,oh:8,tp:1},{x:2042,y:1389,w:3,h:3,XOffset:0,YOffset:0,CropWidth:3,CropHeight:3,ow:3,oh:3,tp:1},{x:2042,y:1396,w:4,h:2,XOffset:0,YOffset:0,CropWidth:4,CropHeight:2,ow:4,oh:4,tp:1},{x:2041,y:1577,w:2,h:4,XOffset:0,YOffset:0,CropWidth:2,CropHeight:4,ow:4,oh:4,tp:1},{x:2042,y:1402,w:2,h:4,XOffset:0,YOffset:4,CropWidth:2,CropHeight:4,
ow:2,oh:8,tp:1},{x:2042,y:1410,w:2,h:2,XOffset:6,YOffset:8,CropWidth:2,CropHeight:2,ow:13,oh:12,tp:1},{x:2042,y:1416,w:2,h:2,XOffset:6,YOffset:8,CropWidth:2,CropHeight:2,ow:13,oh:12,tp:1},{x:2022,y:1316,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:100,oh:169,tp:1},{x:2022,y:1316,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:100,oh:169,tp:1},{x:2022,y:1316,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:39,oh:7,tp:1},{x:2022,y:1316,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,
CropHeight:1,ow:41,oh:9,tp:1},{x:2022,y:1316,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:41,oh:9,tp:1},{x:2022,y:1316,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:39,oh:7,tp:1},{x:2022,y:1316,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:41,oh:9,tp:1}],Textures:["RetroBowl_texture_0.png","RetroBowl_texture_1.png","RetroBowl_texture_2.png"],TexturesBlocks:[{MipsToGenerate:0},{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,2],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,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,
124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,
249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272],SpineSpriteIDs:[],FontIDs:[0,1,2,3,4],TilesetIDs:[]}],FeatureFlags:{"filt+fx":"filt+fx","nullish":"nullish","login_sso":"login_sso","operagx-yyc":"operagx-yyc","mqtt":"mqtt","audio-fx":"audio-fx","intellisense":"intellisense","test":"test"},Options:{debugMode:false,AssetCompilerMajorVersion:2,AssetCompilerMinorVersion:0,AssetCompilerBuildVersion:0,GameSpeed:60,DrawColour:4294967295,xscreensize:480,yscreensize:270,
gameId:0,gameGuid:"42d81d57-e160-46ef-aff5-6f4d57769f79",fullScreen:false,interpolatePixels:false,showCursor:true,scale:1,allowFullScreenKey:true,freezeOnLostFocus:false,showLoadingBar:false,displayErrors:false,writeErrors:false,abortErrors:false,variableErrors:true,outputDebugToConsole:true,WebGL:1,WebGLPreserveDrawingBuffer:1,CollisionCompatibility:false,UseNewAudio:true,GameDir:"html5game",Config:"Default",ViewColour:0,CreateEventOrder:false,UseParticles:false,UseBuiltinFont:false,LocalRunAlert:true,
crc:0,ProjectName:"RetroBowl",md5:[16,171,7,0,0,0,0,0,0,0,0,0,0,0,0,0],MajorVersion:1,MinorVersion:5,BuildVersion:7,RevisionVersion:4,DisplayName:"Retro Bowl",UseFBExtension:false,tm:1675420403,AllowStatistics:"True",loadingBarCallback:"poki_loadbar"}};function gml_Script_poki_init(_inst,_other){if(yyGetBool(poki_init_raw())){{gml_Script_gmcallback_poki_closure(_inst,_other,0,0,0);};};}// /// @description (then:script[ok; custom], custom)
// /// @param then:script[ok; custom]
// /// @param custom
function gml_Script_poki_commercial_break(_inst,
_other){var $$args=Array.prototype.slice.call(arguments);{var gmll_script=$$args[__yy_gml_array_check_index(2+(0),$$args)];var gmll_custom;if(yyfgreater(($$args.length-2),1)){gmll_custom=$$args[__yy_gml_array_check_index(2+(1),$$args)];}else {gmll_custom=undefined;};poki_commercial_break_raw(gml_Script_poki_script_closure(_inst,_other,gmll_script,gmll_custom));}}// /// @description (then:script[ok; custom], custom)
// /// @param then:script[ok; custom]
// /// @param custom
function gml_Script_poki_rewarded_break(_inst,
_other){var $$args=Array.prototype.slice.call(arguments);{var gmll_script=$$args[__yy_gml_array_check_index(2+(0),$$args)];var gmll_custom;if(yyfgreater(($$args.length-2),1)){gmll_custom=$$args[__yy_gml_array_check_index(2+(1),$$args)];}else {gmll_custom=undefined;};poki_rewarded_break_raw(gml_Script_poki_script_closure(_inst,_other,gmll_script,gmll_custom));}}// /// @description (script, custom)~
// /// @param script
// /// @param custom
function gml_Script_poki_script_closure(_inst,_other,argument0,
argument1){var $$args=Array.prototype.slice.call(arguments);{return poki_script_closure_raw($$args[__yy_gml_array_check_index(2+((-2)),$$args)],$$args[__yy_gml_array_check_index(2+((-1)),$$args)],argument0,argument1);}}// /// @description (script, result, custom)~
// /// @param script
// /// @param result
// /// @param custom
function gml_Script_gmcallback_poki_closure(_inst,_other,argument0,argument1,argument2){script_execute(_inst,_other,argument0,argument1,argument2);}var gmcallback_poki_closure=gml_Script_gmcallback_poki_closure;
function gml_Script_poki_get_team(_inst,_other){return poki_get_team_raw();}function gml_Script_poki_set_team(_inst,_other,argument0){return poki_set_team_raw(argument0);}function gml_GlobalScript_s_update_shopping_buttons(_inst,_other){(_inst.gmls_update_shopping_buttons=__yy_method(_inst,gml_Script_s_update_shopping_buttons));(_inst.gmlbtn_click_shopping_next=__yy_method(_inst,gml_Script_btn_click_shopping_next));(_inst.gmlbtn_click_shopping_prev=__yy_method(_inst,gml_Script_btn_click_shopping_prev));
(_inst.gmlbtn_shopping_purchase=__yy_method(_inst,gml_Script_btn_shopping_purchase));(_inst.gmls_confirm_purchase=__yy_method(_inst,gml_Script_s_confirm_purchase));(_inst.gmls_count_shop_items_by_type=__yy_method(_inst,gml_Script_s_count_shop_items_by_type));(_inst.gmls_degrade_shop_items=__yy_method(_inst,gml_Script_s_degrade_shop_items));}function gml_Script_s_update_shopping_buttons(_inst,_other){{var gmlitem_count=gml_Script_s_count_shop_items_by_type(_inst,_other,yyInst(_inst,_other,97).gmlshopping_type);
var gmlmax_pages=ceil(yyfdivide(__yy_gml_errCheck(gmlitem_count),6));gml_Script_slog(_inst,_other,yyfplus("Max pages = ",__yy_gml_errCheck(string(gmlmax_pages))));{var __yy__v0=GetWithArray(97);for(var __yy__v1 in __yy__v0){if(!__yy__v0.hasOwnProperty(__yy__v1))continue;var __yy__v2=__yy__v0[__yy__v1];{__yy__v2.gmlshopping_page=clamp(__yy__v2.gmlshopping_page,1,gmlmax_pages);yyInst(_inst,_other,100687).visible=true;yyInst(_inst,_other,100688).visible=true;if(yyfequal(__yy__v2.gmlshopping_page,1)){yyInst(_inst,
_other,100687).visible=false;};if(yyfgreaterequal(__yy__v2.gmlshopping_page,gmlmax_pages)){yyInst(_inst,_other,100688).visible=false;};yyInst(_inst,_other,100689).gmltext="";if(yyfgreater(gmlmax_pages,1)){yyInst(_inst,_other,100689).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v2,_inst,"ui_Page"))," "),__yy_gml_errCheck(string(__yy__v2.gmlshopping_page))),"/"),__yy_gml_errCheck(string(gmlmax_pages)));};}}};var gmlfirst_item=yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlshopping_page),1)),6);var gmlitem_num=0;var gmlbx=32;var gmlby=48;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlshoppinglist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,97).gmlshoppinglist,gmli);gml_Script_slog(_inst,_other,ds_map_find_value(gmlmap,"name"));if(yyfequal(real(ds_map_find_value(gmlmap,"type")),yyInst(_inst,_other,97).gmlshopping_type)){
{if((yyGetBool(yyfgreaterequal(gmlitem_num,gmlfirst_item)))&&(yyGetBool(yyfless(gmlitem_num,yyfplus(__yy_gml_errCheck(gmlfirst_item),6))))){{var gmlbtn=instance_create_layer(gmlbx,gmlby,"Instances",20);yyInst(_inst,_other,gmlbtn).gmlonClickAction=kgml_Script_btn_shopping_purchase;yyInst(_inst,_other,gmlbtn).image_xscale=4;yyInst(_inst,_other,gmlbtn).image_yscale=2.5;yyInst(_inst,_other,gmlbtn).gmltext=ds_map_find_value(gmlmap,"name");if(yyGetBool(real(ds_map_find_value(gmlmap,"owned")))){{yyInst(_inst,
_other,gmlbtn).gmlactive=false;yyInst(_inst,_other,gmlbtn).gmltext=yyfplus(yyInst(_inst,_other,gmlbtn).gmltext,yyfplus(yyfplus("#",__yy_gml_errCheck(string(round(real(ds_map_find_value(gmlmap,"life")))))),"%"));};}else {yyInst(_inst,_other,gmlbtn).gmltext=yyfplus(yyInst(_inst,_other,gmlbtn).gmltext,yyfplus("#$",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"price")))));};yyInst(_inst,_other,gmlbtn).gmltext=string_hash_to_newline(yyInst(_inst,_other,gmlbtn).gmltext);yyInst(_inst,_other,gmlbtn).gmluid=gmli;
var gmlbw=yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlbtn).image_xscale),32);var gmlbh=yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlbtn).image_yscale),32);gmlbx=yyfplus(gmlbx,yyfplus(16,__yy_gml_errCheck(gmlbw)));if(yyfgreaterequal(gmlbx,yyfminus(480,__yy_gml_errCheck(gmlbw)))){{gmlbx=32;gmlby=yyfplus(gmlby,yyfplus(12,__yy_gml_errCheck(gmlbh)));};};};};(g_yyPrePostObject__=gmlitem_num,gmlitem_num=(g_yyPrePostObject__ instanceof Long?gmlitem_num.add(1):++gmlitem_num),g_yyPrePostObject__);};}
;}};}}function gml_Script_btn_click_shopping_next(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlshopping_page,yyInst(_inst,_other,97).gmlshopping_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlshopping_page.add(1):++yyInst(_inst,_other,97).gmlshopping_page),g_yyPrePostObject__);room_goto(41);}}function gml_Script_btn_click_shopping_prev(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlshopping_page,yyInst(_inst,_other,97).gmlshopping_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,
_other,97).gmlshopping_page.subtract(1):--yyInst(_inst,_other,97).gmlshopping_page),g_yyPrePostObject__);room_goto(41);}}function gml_Script_btn_shopping_purchase(_inst,_other){{{var __yy__v3=GetWithArray(97);for(var __yy__v4 in __yy__v3){if(!__yy__v3.hasOwnProperty(__yy__v4))continue;var __yy__v5=__yy__v3[__yy__v4];{__yy__v5.gmlshopping_item=_inst.gmluid;var gmlmap=ds_list_find_value(__yy__v5.gmlshoppinglist,__yy__v5.gmlshopping_item);gml_Script_slog(__yy__v5,_inst,ds_map_find_value(gmlmap,"name"));if(yyfless(__yy__v5.gmlcoach_credit,
ds_map_find_value(gmlmap,"price"))){{gml_Script_s_create_message(__yy__v5,_inst,"",gml_Script_s_str(__yy__v5,_inst,"msg_NotEnoughCash"),gml_Script_s_str(__yy__v5,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(__yy__v5,_inst,"msg_ConfirmPurchase");gmlmsg=string_replace(gmlmsg,"$price",string(ds_map_find_value(gmlmap,"price")));gmlmsg=string_replace(gmlmsg,"$itemname",string(ds_map_find_value(gmlmap,"name")));gml_Script_s_create_message(__yy__v5,
_inst,"",gmlmsg,gml_Script_s_str(__yy__v5,_inst,"ui_Yes"),gml_Script_s_str(__yy__v5,_inst,"ui_No"),kgml_Script_s_confirm_purchase,kgml_Script_s_msg_clear,global.gmlc_background,1);};};}}};}}function gml_Script_s_confirm_purchase(_inst,_other){{{var __yy__v6=GetWithArray(97);for(var __yy__v7 in __yy__v6){if(!__yy__v6.hasOwnProperty(__yy__v7))continue;var __yy__v8=__yy__v6[__yy__v7];{var gmlmap=ds_list_find_value(__yy__v8.gmlshoppinglist,__yy__v8.gmlshopping_item);ds_map_set(gmlmap,"owned",1);__yy__v8.gmlcoach_credit=yyfminus(__yy__v8.gmlcoach_credit,
ds_map_find_value(gmlmap,"price"));room_goto(41);}}};}}function gml_Script_s_count_shop_items_by_type(_inst,_other,argument0){{{var __yy__v9=GetWithArray(97);for(var __yy__v10 in __yy__v9){if(!__yy__v9.hasOwnProperty(__yy__v10))continue;var __yy__v11=__yy__v9[__yy__v10];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v11.gmlshoppinglist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v11.gmlshoppinglist,
gmli);if(yyfequal(real(ds_map_find_value(gmlmap,"type")),argument0)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_Script_s_degrade_shop_items(_inst,_other){{{var __yy__v12=GetWithArray(97);for(var __yy__v13 in __yy__v12){if(!__yy__v12.hasOwnProperty(__yy__v13))continue;var __yy__v14=__yy__v12[__yy__v13];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v14.gmlshoppinglist));(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v14.gmlshoppinglist,gmli);if(yyfequal(real(ds_map_find_value(gmlmap,"owned")),1)){{var ___sw2___=real(ds_map_find_value(gmlmap,"type"));var ___swc3___=-1;if(yyCompareVal(___sw2___,0,g_GMLMathEpsilon,false)==0){___swc3___=0;}else if(yyCompareVal(___sw2___,1,g_GMLMathEpsilon,false)==0){___swc3___=1;}else if(yyCompareVal(___sw2___,2,g_GMLMathEpsilon,false)==0){___swc3___=2;}switch(___swc3___){
case 0:{ds_map_set(gmlmap,"life",yyfminus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"life"))),__yy_gml_errCheck(irandom_range(2,10))));break;}case 1:{ds_map_set(gmlmap,"life",yyfminus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"life"))),__yy_gml_errCheck(irandom_range(1,5))));break;}case 2:{ds_map_set(gmlmap,"life",yyfminus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"life"))),__yy_gml_errCheck(irandom(2))));break;}};if(yyflessequal(ds_map_find_value(gmlmap,"life"),0)){{ds_map_set(gmlmap,
"owned",0);var gmlmsg=gml_Script_s_str(__yy__v14,_inst,"msg_ItemDegraded");gmlmsg=string_replace(gmlmsg,"$itemname",string(ds_map_find_value(gmlmap,"name")));gml_Script_s_add_news(__yy__v14,_inst,gmlmsg);};};};};}};}}};}}function gml_GlobalScript_s_count_simmed_games(_inst,_other){(_inst.gmls_count_simmed_games=__yy_method(_inst,gml_Script_s_count_simmed_games));}function gml_Script_s_count_simmed_games(_inst,_other,argument0){{var gmlwins=0;var gmllosses=0;var gmlties=0;{var __yy__v15=GetWithArray(97);
for(var __yy__v16 in __yy__v15){if(!__yy__v15.hasOwnProperty(__yy__v16))continue;var __yy__v17=__yy__v15[__yy__v16];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v17.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v17.gmlfixturelist,gmli);if(yyfnotequal(ds_map_find_value(gmlmap,"human_win"),"unplayed")){{if(yyGetBool(ds_map_exists(gmlmap,"difficulty"))){{var gmldif=ds_map_find_value(gmlmap,
"difficulty");if(yyfgreater(string_count(gml_Script_s_str(__yy__v17,_inst,"ui_Sim"),gmldif),0)){{var ___sw8___=ds_map_find_value(gmlmap,"human_win");var ___swc9___=-1;if(yyCompareVal(___sw8___,"win",g_GMLMathEpsilon,false)==0){___swc9___=0;}else if(yyCompareVal(___sw8___,"loss",g_GMLMathEpsilon,false)==0){___swc9___=1;}else if(yyCompareVal(___sw8___,"tie",g_GMLMathEpsilon,false)==0){___swc9___=2;}switch(___swc9___){case 0:{(g_yyPrePostObject__=gmlwins,gmlwins=(g_yyPrePostObject__ instanceof Long?gmlwins.add(1):++gmlwins),
g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=gmllosses,gmllosses=(g_yyPrePostObject__ instanceof Long?gmllosses.add(1):++gmllosses),g_yyPrePostObject__);break;}case 2:{(g_yyPrePostObject__=gmlties,gmlties=(g_yyPrePostObject__ instanceof Long?gmlties.add(1):++gmlties),g_yyPrePostObject__);break;}};};};};};};};}};}}};var ___sw10___=argument0;var ___swc11___=-1;if(yyCompareVal(___sw10___,(-1),g_GMLMathEpsilon,false)==0){___swc11___=0;}else if(yyCompareVal(___sw10___,0,g_GMLMathEpsilon,false)==0){
___swc11___=1;}else if(yyCompareVal(___sw10___,1,g_GMLMathEpsilon,false)==0){___swc11___=2;}switch(___swc11___){case 0:{return gmllosses;break;}case 1:{return gmlties;break;}case 2:{return gmlwins;break;}};return 0;}}function gml_GlobalScript_season_tally_scripts(_inst,_other){(_inst.gmls_draw_season_tally_header=__yy_method(_inst,gml_Script_s_draw_season_tally_header));}function gml_Script_s_draw_season_tally_header(_inst,_other,argument0,argument1,argument2,argument3){{var gmlcolx_1=yyfplus(__yy_gml_errCheck(argument1),
20);var gmlcolx_2=yyfplus(__yy_gml_errCheck(argument1),4);var gmlcolx_3=yyfplus(yyfplus(__yy_gml_errCheck(argument1),8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),2)));var gmlcolx_4=yyfplus(yyfplus(__yy_gml_errCheck(argument1),10),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),3)));var gmlcolx_5=yyfplus(yyfminus(__yy_gml_errCheck(argument1),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),4.5)));var gmlcolx_6=yyfplus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),
5.5)));var gmlcolx_7=yyfplus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),6.5)));var gmlcolx_8=yyfplus(yyfminus(__yy_gml_errCheck(argument1),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),7.5)));draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_1,argument2,gml_Script_s_str(_inst,_other,"ui_Name"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_1),1),yyfminus(__yy_gml_errCheck(argument2),1),
gml_Script_s_str(_inst,_other,"ui_Name"),16777215,16777215,16777215,16777215,1);draw_set_halign(1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(argument1),4),argument2,gml_Script_s_str(_inst,_other,"tla_Position"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(argument1),5),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"tla_Position"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,
gmlcolx_3,argument2,gml_Script_s_str(_inst,_other,"short_GamesCareer"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_3),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_GamesCareer"),16777215,16777215,16777215,16777215,1);var ___sw14___=argument0;var ___swc15___=-1;if(yyCompareVal(___sw14___,1,g_GMLMathEpsilon,false)==0){___swc15___=0;}else if(yyCompareVal(___sw14___,2,g_GMLMathEpsilon,false)==0){___swc15___=1;}else if(yyCompareVal(___sw14___,
3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw14___,4,g_GMLMathEpsilon,false)==0){___swc15___=2;}else if(yyCompareVal(___sw14___,5,g_GMLMathEpsilon,false)==0){___swc15___=3;}else if(yyCompareVal(___sw14___,10,g_GMLMathEpsilon,false)==0){___swc15___=4;}else if(yyCompareVal(___sw14___,6,g_GMLMathEpsilon,false)==0){___swc15___=5;}switch(___swc15___){case 0:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_AttemptsComplete"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,
_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_AttemptsComplete"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"short_YardsRush"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_YardsRush"),16777215,16777215,16777215,
16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_6,argument2,gml_Script_s_str(_inst,_other,"short_TdsRush"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_6),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_TdsRush"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_7,argument2,gml_Script_s_str(_inst,_other,"short_Turnovers"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,
_other,yyfplus(__yy_gml_errCheck(gmlcolx_7),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Turnovers"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_8,argument2,gml_Script_s_str(_inst,_other,"short_Sacks"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_8),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Sacks"),16777215,16777215,16777215,16777215,
1);break;}case 1:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_RecepCarries"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_RecepCarries"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"short_YardsRush"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,
_other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_YardsRush"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_6,argument2,gml_Script_s_str(_inst,_other,"short_TdsRush"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_6),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_TdsRush"),16777215,16777215,16777215,16777215,
1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_7,argument2,gml_Script_s_str(_inst,_other,"short_Fumbles"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_7),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Fumbles"),16777215,16777215,16777215,16777215,1);break;}case 2:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_Receptions"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,
_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Receptions"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"tla_Yards"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"tla_Yards"),16777215,16777215,16777215,16777215,1);
gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_6,argument2,gml_Script_s_str(_inst,_other,"short_Touchdowns"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_6),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Touchdowns"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_7,argument2,gml_Script_s_str(_inst,_other,"short_Fumbles"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,
yyfplus(__yy_gml_errCheck(gmlcolx_7),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Fumbles"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_8,argument2,gml_Script_s_str(_inst,_other,"short_Average"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_8),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Average"),16777215,16777215,16777215,16777215,1);break;
}case 3:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_Blocks"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Blocks"),16777215,16777215,16777215,16777215,1);break;}case 4:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_AttemptsComplete"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,
_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_AttemptsComplete"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"tla_Yards"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"tla_Yards"),16777215,16777215,16777215,16777215,
1);break;}case 5:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_Tackles"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Tackles"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"short_Sacks"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,
_other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Sacks"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_6,argument2,gml_Script_s_str(_inst,_other,"short_Interceptions"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_6),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Interceptions"),16777215,16777215,16777215,
16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_7,argument2,gml_Script_s_str(_inst,_other,"short_ForcedFumbles"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_7),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_ForcedFumbles"),16777215,16777215,16777215,16777215,1);break;}};}}function gml_GlobalScript_s_choose_mode_hc(_inst,_other){(_inst.gmls_choose_mode_HC=__yy_method(_inst,gml_Script_s_choose_mode_HC));(_inst.gmls_choose_mode_QB=__yy_method(_inst,
gml_Script_s_choose_mode_QB));(_inst.gmls_choose_mode_CO=__yy_method(_inst,gml_Script_s_choose_mode_CO));(_inst.gmls_setup_for_mode_CO=__yy_method(_inst,gml_Script_s_setup_for_mode_CO));(_inst.gmls_update_details_screen=__yy_method(_inst,gml_Script_s_update_details_screen));}function gml_Script_s_choose_mode_HC(_inst,_other){{gml_Script_slog(_inst,_other,"s_choose_mode_HC");ds_map_set(yyInst(_inst,_other,97).gmlstringmap,"game_Title","Retro Bowl");yyInst(_inst,_other,97).gmlfr_mode=1;yyInst(_inst,
_other,97).gmlqb_mode=0;yyInst(_inst,_other,97).gmlco_mode=0;gml_Script_s_msg_clear(_inst,_other);gml_Script_s_update_ui_colours(_inst,_other);gml_Script_btn_click_GenerateCharacter(_inst,_other);gml_Script_s_set_up_purchase_ids(_inst,_other);}}function gml_Script_s_choose_mode_QB(_inst,_other){{gml_Script_slog(_inst,_other,"s_choose_mode_QB");yyInst(_inst,_other,97).gmlfr_mode=0;yyInst(_inst,_other,97).gmlqb_mode=1;yyInst(_inst,_other,97).gmlco_mode=0;gml_Script_s_msg_clear(_inst,_other);gml_Script_s_update_ui_colours(_inst,
_other);gml_Script_s_refresh_strings(_inst,_other);gml_Script_btn_click_GenerateCharacter(_inst,_other);gml_Script_s_set_up_purchase_ids(_inst,_other);}}function gml_Script_s_choose_mode_CO(_inst,_other){{gml_Script_slog(_inst,_other,"s_choose_mode_CO");gml_Script_s_msg_clear(_inst,_other);gml_Script_s_setup_for_mode_CO(_inst,_other);gml_Script_s_regen_clean_save_mode_dependent_data(_inst,_other);gml_Script_btn_click_GenerateCharacter(_inst,_other);}}function gml_Script_s_setup_for_mode_CO(_inst,_other){
{yyInst(_inst,_other,97).gmlfr_mode=0;yyInst(_inst,_other,97).gmlqb_mode=0;yyInst(_inst,_other,97).gmlco_mode=2;gml_Script_s_update_ui_colours(_inst,_other);gml_Script_s_refresh_strings(_inst,_other);gml_Script_s_load_co_mode_files(_inst,_other);gml_Script_s_set_up_purchase_ids(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){global.gmldebug=true;};}}function gml_Script_s_update_details_screen(_inst,_other){{if(yyfequal(yyInst(_inst,_other,97).gmlqb_mode,1)){{yyInst(_inst,_other,
100035).visible=true;yyInst(_inst,_other,100036).visible=true;yyInst(_inst,_other,100036).gmlcoach_heads=false;yyInst(_inst,_other,100037).visible=false;yyInst(_inst,_other,100038).visible=true;return;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100035).visible=true;yyInst(_inst,_other,100036).visible=true;yyInst(_inst,_other,100036).gmlcoach_heads=true;yyInst(_inst,_other,100037).visible=false;yyInst(_inst,_other,100038).visible=true;return;};};if(yyfequal(yyInst(_inst,
_other,97).gmlfr_mode,1)){{yyInst(_inst,_other,100035).visible=true;yyInst(_inst,_other,100036).visible=true;yyInst(_inst,_other,100036).gmlcoach_heads=true;yyInst(_inst,_other,100037).visible=true;yyInst(_inst,_other,100038).visible=false;};};yyInst(_inst,_other,97).gmlface_type_coach=yyInst(_inst,_other,100036).gmlcoach_heads;}}function gml_GlobalScript_s_benched(_inst,_other){(_inst.gmls_player_benched=__yy_method(_inst,gml_Script_s_player_benched));}function gml_Script_s_player_benched(_inst,_other,
argument0){{if(yyGetBool(ds_map_find_value(argument0,"resting"))){{return true;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(ds_map_find_value(argument0,"suspended"))){{return true;};};};};return false;}}function gml_GlobalScript_s_cpu_is_kicking(_inst,_other){(_inst.gmls_cpu_is_kicking_off=__yy_method(_inst,gml_Script_s_cpu_is_kicking_off));(_inst.gmls_is_kickoff=__yy_method(_inst,gml_Script_s_is_kickoff));}function gml_Script_s_cpu_is_kicking_off(_inst,_other){{if(yyfequal(yyInst(_inst,
_other,104).gmlkicking,3)){return true;};}}function gml_Script_s_is_kickoff(_inst,_other,argument0){{if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){return false;};if((yyGetBool(argument0))&&(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldown,99)))){return true;};if(yyfequal(yyInst(_inst,_other,104).gmlkicking,3)){return true;}else {return false;};}}function gml_GlobalScript_nx_scripts(_inst,_other){(_inst.gmls_nx_init=__yy_method(_inst,gml_Script_s_nx_init));(_inst.gmls_nx_commit=__yy_method(_inst,
gml_Script_s_nx_commit));(_inst.gmls_nx_get_open_user=__yy_method(_inst,gml_Script_s_nx_get_open_user));}function gml_Script_s_nx_init(_inst,_other){{var ___sw20___=g_pBuiltIn.get_os_type();var ___swc21___=-1;if(yyCompareVal(___sw20___,21,g_GMLMathEpsilon,false)==0){___swc21___=0;}switch(___swc21___){case 0:{{var __yy__v18=GetWithArray(97);for(var __yy__v19 in __yy__v18){if(!__yy__v18.hasOwnProperty(__yy__v19))continue;var __yy__v20=__yy__v18[__yy__v19];{gml_Script_slog(__yy__v20,_inst,"Init switch save slot");
__yy__v20.gmlnx_player_id=gml_Script_s_nx_get_open_user(__yy__v20,_inst);gml_Script_slogf(__yy__v20,_inst,"User selected: %1 (%2)",switch_accounts_get_nickname(__yy__v20.gmlnx_player_id),switch_accounts_is_user_open(__yy__v20.gmlnx_player_id));switch_save_data_mount(__yy__v20.gmlnx_player_id);}}};break;}};}}function gml_Script_s_nx_commit(_inst,_other){{var ___sw22___=g_pBuiltIn.get_os_type();var ___swc23___=-1;if(yyCompareVal(___sw22___,21,g_GMLMathEpsilon,false)==0){___swc23___=0;}switch(___swc23___){
case 0:{gml_Script_slog(_inst,_other,"Commit data on switch save slot");switch_save_data_commit();break;}};}}function gml_Script_s_nx_get_open_user(_inst,_other){{var gmli=0;for(;yyfless(gmli,switch_accounts_get_accounts());(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_slogf(_inst,_other,"User %1 is %2",switch_accounts_get_nickname(gmli),switch_accounts_is_user_open(gmli));if(yyGetBool(switch_accounts_is_user_open(gmli))){return gmli;
};}};return(-4);}}function gml_GlobalScript_s_recruitment_credits(_inst,_other){(_inst.gmlrecruitment_credits_cap_total=__yy_method(_inst,gml_Script_recruitment_credits_cap_total));(_inst.gmlcan_fit_recruitment_credits=__yy_method(_inst,gml_Script_can_fit_recruitment_credits));(_inst.gmlrecruitment_credits_space=__yy_method(_inst,gml_Script_recruitment_credits_space));(_inst.gmlrecruitment_credits_add=__yy_method(_inst,gml_Script_recruitment_credits_add));(_inst.gmlrecruitment_credits_toggle_roster_size=__yy_method(_inst,
gml_Script_recruitment_credits_toggle_roster_size));(_inst.gmlrecruitment_credits_button_click_boost=__yy_method(_inst,gml_Script_recruitment_credits_button_click_boost));(_inst.gmlbtn_response_boost_recruitment_credits=__yy_method(_inst,gml_Script_btn_response_boost_recruitment_credits));}function gml_Script_recruitment_credits_cap_total(_inst,_other){{return yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlrecruitment_credits_cap),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlboost_recruitment_credits_cap));
}}function gml_Script_can_fit_recruitment_credits(_inst,_other,argument0){{var gmlmax_rc=gml_Script_recruitment_credits_cap_total(_inst,_other);var gmlnew_total=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlrecruitment_credits),__yy_gml_errCheck(argument0));if(yyflessequal(gmlnew_total,gmlmax_rc)){{return true;};}else {{return false;};};}}function gml_Script_recruitment_credits_space(_inst,_other){{return yyfminus(__yy_gml_errCheck(gml_Script_recruitment_credits_cap_total(_inst,_other)),__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlrecruitment_credits));}}function gml_Script_recruitment_credits_add(_inst,_other,argument0){{var gmlmax_rc=gml_Script_recruitment_credits_cap_total(_inst,_other);yyInst(_inst,_other,97).gmlrecruitment_credits=yyfplus(yyInst(_inst,_other,97).gmlrecruitment_credits,argument0);if(yyfgreater(yyInst(_inst,_other,97).gmlrecruitment_credits,gmlmax_rc)){{yyInst(_inst,_other,97).gmlrecruitment_credits=gmlmax_rc;};};if(yyfless(yyInst(_inst,_other,97).gmlrecruitment_credits,0)){{yyInst(_inst,_other,
97).gmlrecruitment_credits=0;};};}}function gml_Script_recruitment_credits_toggle_roster_size(_inst,_other){{var ___sw26___=yyInst(_inst,_other,97).gmlrecruitment_credits_cap;var ___swc27___=-1;if(yyCompareVal(___sw26___,25,g_GMLMathEpsilon,false)==0){___swc27___=0;}else if(yyCompareVal(___sw26___,30,g_GMLMathEpsilon,false)==0){___swc27___=1;}switch(___swc27___){case 0:{{yyInst(_inst,_other,97).gmlrecruitment_credits_cap=30;break;};}case 1:{{if(yyfgreater(ds_list_size(yyInst(_inst,_other,97).gmlroster),
10)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_SalaryCheckRoster"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{yyInst(_inst,_other,97).gmlrecruitment_credits_cap=25;};};break;};}};}}function gml_Script_recruitment_credits_button_click_boost(_inst,_other){{if(yyfgreater(100,yyInst(_inst,_other,97).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostSalaryNoCredit");gmlmsg=string_replace(gmlmsg,
"$num",string(yyfplus(__yy_gml_errCheck(gml_Script_recruitment_credits_cap_total(_inst,_other)),25)));gmlmsg=string_replace(gmlmsg,"$cost",string(100));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostSalaryCap");gmlmsg=string_replace(gmlmsg,"$num",string(yyfplus(__yy_gml_errCheck(gml_Script_recruitment_credits_cap_total(_inst,_other)),
25)));gmlmsg=string_replace(gmlmsg,"$cost",string(100));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_recruitment_credits,global.gmlc_background,1);};};}}function gml_Script_btn_response_boost_recruitment_credits(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v21=GetWithArray(97);for(var __yy__v22 in __yy__v21){if(!__yy__v21.hasOwnProperty(__yy__v22))continue;
var __yy__v23=__yy__v21[__yy__v22];{__yy__v23.gmlboost_recruitment_credits_cap=yyfplus(__yy__v23.gmlboost_recruitment_credits_cap,25);__yy__v23.gmlcoach_credit=yyfminus(__yy__v23.gmlcoach_credit,100);if(yyfless(__yy__v23.gmlcoach_credit,0)){__yy__v23.gmlcoach_credit=0;};}}};room_goto(9);}}function gml_GlobalScript_qb_contract_scripts(_inst,_other){(_inst.gmls_qb_mode_set_up_contract_screen=__yy_method(_inst,gml_Script_s_qb_mode_set_up_contract_screen));(_inst.gmls_qb_mode_new_contract=__yy_method(_inst,
gml_Script_s_qb_mode_new_contract));(_inst.gmlbtn_contract_negotiate=__yy_method(_inst,gml_Script_btn_contract_negotiate));(_inst.gmlbtn_contract_salary_minus=__yy_method(_inst,gml_Script_btn_contract_salary_minus));(_inst.gmlbtn_contract_salary_plus=__yy_method(_inst,gml_Script_btn_contract_salary_plus));(_inst.gmlbtn_contract_tdbonus_minus=__yy_method(_inst,gml_Script_btn_contract_tdbonus_minus));(_inst.gmlbtn_contract_tdbonus_plus=__yy_method(_inst,gml_Script_btn_contract_tdbonus_plus));(_inst.gmlbtn_contract_length_minus=__yy_method(_inst,
gml_Script_btn_contract_length_minus));(_inst.gmlbtn_contract_length_plus=__yy_method(_inst,gml_Script_btn_contract_length_plus));(_inst.gmlbtn_negotiate_higher=__yy_method(_inst,gml_Script_btn_negotiate_higher));(_inst.gmlbtn_negotiate_lower=__yy_method(_inst,gml_Script_btn_negotiate_lower));(_inst.gmls_check_negotiate=__yy_method(_inst,gml_Script_s_check_negotiate));(_inst.gmls_check_hilo_buttons=__yy_method(_inst,gml_Script_s_check_hilo_buttons));(_inst.gmls_accept_contract=__yy_method(_inst,
gml_Script_s_accept_contract));(_inst.gmls_reject_contract=__yy_method(_inst,gml_Script_s_reject_contract));}function gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other){{gml_Script_slog(_inst,_other,"s_qb_mode_set_up_contract_screen");{var __yy__v24=GetWithArray(97);for(var __yy__v25 in __yy__v24){if(!__yy__v24.hasOwnProperty(__yy__v25))continue;var __yy__v26=__yy__v24[__yy__v25];{var gmlpmap=gml_Script_s_get_qb_pmap(__yy__v26,_inst);yyInst(_inst,_other,100712).gmltext=gml_Script_s_get_string_year(__yy__v26,
_inst,true);yyInst(_inst,_other,100703).gmltext=ds_map_find_value(__yy__v26.gmlmyteam,"name");yyInst(_inst,_other,100705).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(string(__yy__v26.gmlqb_salary))," cc / "),__yy_gml_errCheck(gml_Script_s_str(__yy__v26,_inst,"ui_Game")));yyInst(_inst,_other,100707).gmltext=yyfplus(__yy_gml_errCheck(string(__yy__v26.gmlqb_tdbonus))," cc");var gmlexpiry=yyfplus(yyfminus(__yy_gml_errCheck(__yy__v26.gmlyear),1),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract")));
yyInst(_inst,_other,100709).gmltext=string_replace(gml_Script_s_str(__yy__v26,_inst,"ui_contract_expires"),"$year",gmlexpiry);yyInst(_inst,_other,100728).visible=false;if((yyGetBool(!yyGetBool(__yy__v26.gmlqb_new_offer)))&&(yyGetBool(__yy__v26.gmlnewteam))){__yy__v26.gmlqb_new_offer=gml_Script_s_qb_mode_new_contract(__yy__v26,_inst,__yy__v26.gmlnewteam);};if(!yyGetBool(__yy__v26.gmlqb_new_offer)){{yyInst(_inst,_other,100727).gmltext=gml_Script_s_str(__yy__v26,_inst,"ui_Request");yyInst(_inst,_other,
100713).gmltext="-";yyInst(_inst,_other,100715).gmltext="-";yyInst(_inst,_other,100717).gmltext="-";yyInst(_inst,_other,100719).gmltext="-";yyInst(_inst,_other,100721).gmlactive=false;yyInst(_inst,_other,100722).gmlactive=false;yyInst(_inst,_other,100724).gmlactive=false;yyInst(_inst,_other,100723).gmlactive=false;yyInst(_inst,_other,100726).gmlactive=false;yyInst(_inst,_other,100725).gmlactive=false;};}else {{yyInst(_inst,_other,100701).visible=false;if(yyfgreater(ds_map_find_value(gmlpmap,"contract"),
0)){yyInst(_inst,_other,100728).visible=true;};var gmltmap=gml_Script_s_get_team_by_id(__yy__v26,_inst,yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_teamid);yyInst(_inst,_other,100713).gmltext=ds_map_find_value(gmltmap,"name");var gmlinc=yyftime(__yy_gml_errCheck(ceil(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_salary),10))),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_salary_neg));yyInst(_inst,_other,100715).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,__yy__v26.gmlqb_new_offer).gml_salary),__yy_gml_errCheck(gmlinc))))," cc / "),__yy_gml_errCheck(gml_Script_s_str(__yy__v26,_inst,"ui_Game")));yyInst(_inst,_other,100717).gmltext=yyfplus(__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_tdbonus),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_tdbonus_neg))))," cc");yyInst(_inst,_other,100719).gmltext=string_replace(gml_Script_s_str(__yy__v26,_inst,"ui_contract_expires"),
"$year",yyfplus(yyfplus(yyfminus(__yy_gml_errCheck(__yy__v26.gmlyear),1),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_length)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_length_neg)));yyInst(_inst,_other,100715).gmltcolour=global.gmlc_primary;yyInst(_inst,_other,100717).gmltcolour=global.gmlc_primary;yyInst(_inst,_other,100719).gmltcolour=global.gmlc_primary;if(yyfgreater(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_salary),
__yy_gml_errCheck(gmlinc)),__yy__v26.gmlqb_salary)){yyInst(_inst,_other,100715).gmltcolour=65535;};if(yyfgreater(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_tdbonus),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_tdbonus_neg)),__yy__v26.gmlqb_tdbonus)){yyInst(_inst,_other,100717).gmltcolour=65535;};if(yyfgreater(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_length,ds_map_find_value(gmlpmap,"contract"))){yyInst(_inst,_other,100719).gmltcolour=65535;
};if(yyGetBool(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_locked)){{yyInst(_inst,_other,100721).gmlactive=false;yyInst(_inst,_other,100722).gmlactive=false;yyInst(_inst,_other,100724).gmlactive=false;yyInst(_inst,_other,100723).gmlactive=false;yyInst(_inst,_other,100726).gmlactive=false;yyInst(_inst,_other,100725).gmlactive=false;yyInst(_inst,_other,100727).gmltext=gml_Script_s_str(__yy__v26,_inst,"ui_Accept");};}else {{yyInst(_inst,_other,100721).gmlactive=true;yyInst(_inst,_other,100722).gmlactive=true;
if(yyfless(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_salary_neg,1)){yyInst(_inst,_other,100721).gmlactive=false;};if(yyfgreater(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_salary_neg,4)){yyInst(_inst,_other,100722).gmlactive=false;};yyInst(_inst,_other,100724).gmlactive=true;yyInst(_inst,_other,100723).gmlactive=true;if(yyfless(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_tdbonus_neg,1)){yyInst(_inst,_other,100724).gmlactive=false;};if(yyfgreater(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_tdbonus_neg,
2)){yyInst(_inst,_other,100723).gmlactive=false;};yyInst(_inst,_other,100726).gmlactive=true;yyInst(_inst,_other,100725).gmlactive=true;if(yyfless(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_length_neg,1)){yyInst(_inst,_other,100726).gmlactive=false;};if(yyfgreater(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_length),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_length_neg)),2)){yyInst(_inst,_other,100725).gmlactive=false;};if(yyfequal(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,__yy__v26.gmlqb_new_offer).gml_salary_neg),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_tdbonus_neg)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v26.gmlqb_new_offer).gml_length_neg)),0)){yyInst(_inst,_other,100727).gmltext=gml_Script_s_str(__yy__v26,_inst,"ui_Accept");}else {yyInst(_inst,_other,100727).gmltext=gml_Script_s_str(__yy__v26,_inst,"ui_Negotiate");};};};};};}}};}}function gml_Script____struct___0_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts(_inst,
_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___0_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___0_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gml_teamid=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gml_salary=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gml_tdbonus=$$args[__yy_gml_array_check_index(2+(2),
$$args)];_inst.gml_length=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gml_salary_neg=0;_inst.gml_tdbonus_neg=0;_inst.gml_length_neg=0;_inst.gml_locked=0;}}}}function gml_Script_s_qb_mode_new_contract(_inst,_other,argument0){{var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);var gmlprating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);var gmloffer=__yy_gml_object_create(_inst,(_inst.gml___struct___0=__yy_method(_inst,gml_Script____struct___0_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts)),
ds_map_find_value(argument0,"uid"),yyftime(__yy_gml_errCheck(gmlprating),10),gml_Script_s_get_player_rating(_inst,_other,gmlpmap),max(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract")),1),irandom_range(2,3)));if(yyfless(ds_map_find_value(gmlpmap,"contract"),1)){yyInst(_inst,_other,gmloffer).gml_length=1;};var gmltrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(argument0,"offense"))),__yy_gml_errCheck(real(ds_map_find_value(argument0,"defense"))))),
2);gml_Script_slog(_inst,_other,yyfplus("Team rating = ",__yy_gml_errCheck(string(gmltrating))));gml_Script_slog(_inst,_other,yyfplus("Player rating = ",__yy_gml_errCheck(string(gmlprating))));if(yyfgreater(gmltrating,gmlprating)){{while(yyfgreater(gmltrating,gmlprating)){{gmltrating=yyfminus(gmltrating,1);var ___sw34___=irandom(2);var ___swc35___=-1;if(yyCompareVal(___sw34___,0,g_GMLMathEpsilon,false)==0){___swc35___=0;}else if(yyCompareVal(___sw34___,1,g_GMLMathEpsilon,false)==0){___swc35___=1;}else if(yyCompareVal(___sw34___,
2,g_GMLMathEpsilon,false)==0){___swc35___=2;}switch(___swc35___){case 0:{yyInst(_inst,_other,gmloffer).gml_salary=yyfminus(yyInst(_inst,_other,gmloffer).gml_salary,1);break;}case 1:{yyInst(_inst,_other,gmloffer).gml_tdbonus=yyfminus(yyInst(_inst,_other,gmloffer).gml_tdbonus,1);break;}case 2:{break;}};gml_Script_slog(_inst,_other,"-");}};};}else {{while(yyfless(gmltrating,gmlprating)){{gmlprating=yyfminus(gmlprating,1);var ___sw36___=irandom(2);var ___swc37___=-1;if(yyCompareVal(___sw36___,0,g_GMLMathEpsilon,
false)==0){___swc37___=0;}else if(yyCompareVal(___sw36___,1,g_GMLMathEpsilon,false)==0){___swc37___=1;}else if(yyCompareVal(___sw36___,2,g_GMLMathEpsilon,false)==0){___swc37___=2;}switch(___swc37___){case 0:{yyInst(_inst,_other,gmloffer).gml_salary=yyfplus(yyInst(_inst,_other,gmloffer).gml_salary,1);break;}case 1:{yyInst(_inst,_other,gmloffer).gml_tdbonus=yyfplus(yyInst(_inst,_other,gmloffer).gml_tdbonus,1);break;}case 2:{break;}};gml_Script_slog(_inst,_other,"+");}};};};yyInst(_inst,_other,gmloffer).gml_salary=max(1,
yyInst(_inst,_other,gmloffer).gml_salary);yyInst(_inst,_other,gmloffer).gml_tdbonus=max(0,yyInst(_inst,_other,gmloffer).gml_tdbonus);return gmloffer;}}function gml_Script_btn_contract_negotiate(_inst,_other){{var gmlsz=0;{var __yy__v27=GetWithArray(97);for(var __yy__v28 in __yy__v27){if(!__yy__v27.hasOwnProperty(__yy__v28))continue;var __yy__v29=__yy__v27[__yy__v28];{if(!yyGetBool(__yy__v29.gmlqb_new_offer)){{if(yyfgreater(ds_map_find_value(gml_Script_s_get_qb_pmap(__yy__v29,_inst),"contract"),2)){{gml_Script_s_do_message(__yy__v29,
_inst,gml_Script_s_str(__yy__v29,_inst,"msg_NegotiateNo_TooLong"));return;};}else {if(yyfless(__yy__v29.gmlweek,9)){{gml_Script_s_do_message(__yy__v29,_inst,gml_Script_s_str(__yy__v29,_inst,"msg_NegotiateNo_TooEarly"));return;};};};__yy__v29.gmlqb_new_offer=gml_Script_s_qb_mode_new_contract(__yy__v29,_inst,__yy__v29.gmlmyteam);gml_Script_s_qb_mode_set_up_contract_screen(__yy__v29,_inst);return;};}else {gmlsz=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v29.gmlqb_new_offer).gml_salary_neg),
__yy_gml_errCheck(yyInst(_inst,_other,__yy__v29.gmlqb_new_offer).gml_tdbonus_neg)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v29.gmlqb_new_offer).gml_length_neg));};}}};if(yyfgreater(gmlsz,0)){room_goto(43);}else {gml_Script_s_accept_contract(_inst,_other);};}}function gml_Script_btn_contract_salary_minus(_inst,_other){{{var __yy__v30=GetWithArray(97);for(var __yy__v31 in __yy__v30){if(!__yy__v30.hasOwnProperty(__yy__v31))continue;var __yy__v32=__yy__v30[__yy__v31];yyInst(_inst,_other,__yy__v32.gmlqb_new_offer).gml_salary_neg=yyfminus(yyInst(_inst,
_other,__yy__v32.gmlqb_new_offer).gml_salary_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_contract_salary_plus(_inst,_other){{{var __yy__v33=GetWithArray(97);for(var __yy__v34 in __yy__v33){if(!__yy__v33.hasOwnProperty(__yy__v34))continue;var __yy__v35=__yy__v33[__yy__v34];yyInst(_inst,_other,__yy__v35.gmlqb_new_offer).gml_salary_neg=yyfplus(yyInst(_inst,_other,__yy__v35.gmlqb_new_offer).gml_salary_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,
_other);}}function gml_Script_btn_contract_tdbonus_minus(_inst,_other){{{var __yy__v36=GetWithArray(97);for(var __yy__v37 in __yy__v36){if(!__yy__v36.hasOwnProperty(__yy__v37))continue;var __yy__v38=__yy__v36[__yy__v37];yyInst(_inst,_other,__yy__v38.gmlqb_new_offer).gml_tdbonus_neg=yyfminus(yyInst(_inst,_other,__yy__v38.gmlqb_new_offer).gml_tdbonus_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_contract_tdbonus_plus(_inst,_other){{{var __yy__v39=GetWithArray(97);
for(var __yy__v40 in __yy__v39){if(!__yy__v39.hasOwnProperty(__yy__v40))continue;var __yy__v41=__yy__v39[__yy__v40];yyInst(_inst,_other,__yy__v41.gmlqb_new_offer).gml_tdbonus_neg=yyfplus(yyInst(_inst,_other,__yy__v41.gmlqb_new_offer).gml_tdbonus_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_contract_length_minus(_inst,_other){{{var __yy__v42=GetWithArray(97);for(var __yy__v43 in __yy__v42){if(!__yy__v42.hasOwnProperty(__yy__v43))continue;var __yy__v44=__yy__v42[__yy__v43];
yyInst(_inst,_other,__yy__v44.gmlqb_new_offer).gml_length_neg=yyfminus(yyInst(_inst,_other,__yy__v44.gmlqb_new_offer).gml_length_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_contract_length_plus(_inst,_other){{{var __yy__v45=GetWithArray(97);for(var __yy__v46 in __yy__v45){if(!__yy__v45.hasOwnProperty(__yy__v46))continue;var __yy__v47=__yy__v45[__yy__v46];yyInst(_inst,_other,__yy__v47.gmlqb_new_offer).gml_length_neg=yyfplus(yyInst(_inst,_other,__yy__v47.gmlqb_new_offer).gml_length_neg,
1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_negotiate_higher(_inst,_other){{gml_Script_s_check_negotiate(_inst,_other,true);}}function gml_Script_btn_negotiate_lower(_inst,_other){{gml_Script_s_check_negotiate(_inst,_other,false);}}function gml_Script_s_check_negotiate(_inst,_other,argument0){{var gmlcurrent_num=(-1);var gmlnext_num=(-1);{var __yy__v48=GetWithArray(5);for(var __yy__v49 in __yy__v48){if(!__yy__v48.hasOwnProperty(__yy__v49))continue;var __yy__v50=__yy__v48[__yy__v49];
{if(yyfequal(__yy__v50.gmlposition,(-1))){gmlcurrent_num=__yy__v50.gmlnumber;};if(yyfequal(__yy__v50.gmlposition,0)){gmlnext_num=__yy__v50.gmlnumber;};}}};var gmlcorrect=false;var ___sw38___=argument0;var ___swc39___=-1;if(yyCompareVal(___sw38___,true,g_GMLMathEpsilon,false)==0){___swc39___=0;}else if(yyCompareVal(___sw38___,false,g_GMLMathEpsilon,false)==0){___swc39___=1;}switch(___swc39___){case 0:{if(yyfgreater(gmlnext_num,gmlcurrent_num)){gmlcorrect=true;};break;}case 1:{if(yyfless(gmlnext_num,gmlcurrent_num)){
gmlcorrect=true;};break;}};if(yyGetBool(gmlcorrect)){{var gmlcomplete=true;{var __yy__v51=GetWithArray(5);for(var __yy__v52 in __yy__v51){if(!__yy__v51.hasOwnProperty(__yy__v52))continue;var __yy__v53=__yy__v51[__yy__v52];{if(yyfequal(__yy__v53.gmlposition,0)){{__yy__v53.gmlshirt=__yy_gml_array_check(__yy__v53.gmlshirt,2354466820);__yy__v53.gmlshirt[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(65280)),256);__yy__v53.gmlshirt[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(65280)),
256);__yy__v53.gmlshirt[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(65280)),256);};};__yy__v53.gmlposition=yyfminus(__yy__v53.gmlposition,1);if(yyfgreaterequal(__yy__v53.gmlposition,0)){gmlcomplete=false;};}}};if(yyGetBool(gmlcomplete)){{yyInst(_inst,_other,100730).visible=true;yyInst(_inst,_other,100731).gmlactive=false;yyInst(_inst,_other,100732).gmlactive=false;yyInst(_inst,_other,100734).gmltext=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Success")),
"!");yyInst(_inst,_other,100734).visible=true;gml_Script_s_sound(_inst,_other,21);{var __yy__v54=GetWithArray(5);for(var __yy__v55 in __yy__v54){if(!__yy__v54.hasOwnProperty(__yy__v55))continue;var __yy__v56=__yy__v54[__yy__v55];{__yy__v56.gmlposition=yyfplus(__yy__v56.gmlposition,1);__yy__v56.gmlrevealed=true;}}};{var __yy__v57=GetWithArray(97);for(var __yy__v58 in __yy__v57){if(!__yy__v57.hasOwnProperty(__yy__v58))continue;var __yy__v59=__yy__v57[__yy__v58];{yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_salary=yyfplus(yyInst(_inst,
_other,__yy__v59.gmlqb_new_offer).gml_salary,yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_salary_neg);yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_tdbonus=yyfplus(yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_tdbonus,yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_tdbonus_neg);yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_length=yyfplus(yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_length,yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_length_neg);yyInst(_inst,_other,
__yy__v59.gmlqb_new_offer).gml_salary_neg=0;yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_tdbonus_neg=0;yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_length_neg=0;yyInst(_inst,_other,__yy__v59.gmlqb_new_offer).gml_locked=true;}}};};}else {{gml_Script_s_sound(_inst,_other,19);gml_Script_s_check_hilo_buttons(_inst,_other);};};};}else {{yyInst(_inst,_other,100730).visible=true;yyInst(_inst,_other,100731).gmlactive=false;yyInst(_inst,_other,100732).gmlactive=false;yyInst(_inst,_other,100734).gmltext=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Failed")),"!");yyInst(_inst,_other,100734).gmltcolour=255;yyInst(_inst,_other,100734).visible=true;gml_Script_s_sound(_inst,_other,9);{var __yy__v60=GetWithArray(5);for(var __yy__v61 in __yy__v60){if(!__yy__v60.hasOwnProperty(__yy__v61))continue;var __yy__v62=__yy__v60[__yy__v61];{__yy__v62.gmlrevealed=true;if(yyfequal(__yy__v62.gmlposition,0)){{__yy__v62.gmlshirt=__yy_gml_array_check(__yy__v62.gmlshirt,3494495746);__yy__v62.gmlshirt[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(255)),
256);__yy__v62.gmlshirt[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(255)),256);__yy__v62.gmlshirt[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(255)),256);};};}}};{var __yy__v63=GetWithArray(97);for(var __yy__v64 in __yy__v63){if(!__yy__v63.hasOwnProperty(__yy__v64))continue;var __yy__v65=__yy__v63[__yy__v64];{yyInst(_inst,_other,__yy__v65.gmlqb_new_offer).gml_salary_neg=0;yyInst(_inst,_other,__yy__v65.gmlqb_new_offer).gml_tdbonus_neg=0;
yyInst(_inst,_other,__yy__v65.gmlqb_new_offer).gml_length_neg=0;yyInst(_inst,_other,__yy__v65.gmlqb_new_offer).gml_locked=true;}}};};};}}function gml_Script_s_check_hilo_buttons(_inst,_other){{yyInst(_inst,_other,100731).gmlactive=true;yyInst(_inst,_other,100732).gmlactive=true;{var __yy__v66=GetWithArray(5);for(var __yy__v67 in __yy__v66){if(!__yy__v66.hasOwnProperty(__yy__v67))continue;var __yy__v68=__yy__v66[__yy__v67];{if(yyfequal(__yy__v68.gmlposition,(-1))){{if(yyfequal(__yy__v68.gmlnumber,1)){yyInst(_inst,
_other,100732).gmlactive=false;}else {if(yyfequal(__yy__v68.gmlnumber,11)){yyInst(_inst,_other,100731).gmlactive=false;};};};};}}};}}function gml_Script_s_accept_contract(_inst,_other){{gml_Script_slog(_inst,_other,"s_accept_contract");var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);{var __yy__v69=GetWithArray(97);for(var __yy__v70 in __yy__v69){if(!__yy__v69.hasOwnProperty(__yy__v70))continue;var __yy__v71=__yy__v69[__yy__v70];{__yy__v71.gmlqb_salary=yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_salary;
__yy__v71.gmlqb_tdbonus=yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_tdbonus;ds_map_set(gmlpmap,"contract",yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_length);if(yyfnotequal(yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_teamid,ds_map_find_value(__yy__v71.gmlmyteam,"uid"))){{ds_map_set(gmlpmap,"teamid",yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_teamid);__yy__v71.gmlmyteam=gml_Script_s_get_team_by_id(__yy__v71,_inst,yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_teamid);
__yy__v71.gmlmyteam_id=yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_teamid;__yy__v71.gmlmyconference=ds_map_find_value(__yy__v71.gmlmyteam,"conference");__yy__v71.gmlmydivision=ds_map_find_value(__yy__v71.gmlmyteam,"division");__yy__v71.gmlnewteam=(-1);if(yyfequal(__yy__v71.gmlfavourite_team_id,yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_teamid)){gml_Script_s_add_news(__yy__v71,_inst,gml_Script_s_parse_player_message(__yy__v71,_inst,gml_Script_s_str(__yy__v71,_inst,"news_ContractNewTeamFavorite"),
gmlpmap));}else {gml_Script_s_add_news(__yy__v71,_inst,gml_Script_s_parse_player_message(__yy__v71,_inst,gml_Script_s_str(__yy__v71,_inst,"news_ContractNewTeam"),gmlpmap));};};}else {gml_Script_s_add_news(__yy__v71,_inst,gml_Script_s_parse_player_message(__yy__v71,_inst,gml_Script_s_str(__yy__v71,_inst,"news_ContractExtended"),gmlpmap));};__yy__v71.gmlqb_new_offer=(-1);}}};room_goto(14);}}function gml_Script_s_reject_contract(_inst,_other){{gml_Script_slog(_inst,_other,"s_reject_contract");{var __yy__v72=GetWithArray(97);
for(var __yy__v73 in __yy__v72){if(!__yy__v72.hasOwnProperty(__yy__v73))continue;var __yy__v74=__yy__v72[__yy__v73];{if(yyfequal(yyInst(_inst,_other,__yy__v74.gmlqb_new_offer).gml_teamid,ds_map_find_value(__yy__v74.gmlmyteam,"uid"))){{gml_Script_s_meter_change(__yy__v74,_inst,9,__yy__v74.gmlrelationship_boss,39,"");__yy__v74.gmlrelationship_boss=clamp(yyfminus(__yy_gml_errCheck(__yy__v74.gmlrelationship_boss),10),1,100);};}else {{ds_list_add(__yy__v74.gmllist_teams_rejected,yyInst(_inst,_other,__yy__v74.gmlqb_new_offer).gml_teamid);
room_goto(3);};};__yy__v74.gmlqb_new_offer=(-1);gml_Script_s_savegame(__yy__v74,_inst);}}};}}function gml_GlobalScript_s_draw_player_image(_inst,_other){(_inst.gmls_draw_player_image=__yy_method(_inst,gml_Script_s_draw_player_image));}function gml_Script_s_draw_player_image(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument2,(-4))){return;};if(yyfequal(_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],(-1))){{if(yyGetBool(_inst.gmluniform)){{gml_Script_s_load_uniform_file2(_inst,
_other,ds_map_find_value(argument2,"teamid"),_inst.gmluniform,0,"");gml_Script_s_set_up_uniform_profile(_inst,_other,_inst.gmluniform);};}else {gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));};};};shader_set(0);shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,
_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,
_inst.gmlpants)]);if(yyGetBool(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(argument2,"position")))){{var ___sw50___=ds_map_find_value(argument2,"face_y");var ___swc51___=-1;if(yyCompareVal(___sw50___,0,g_GMLMathEpsilon,false)==0){___swc51___=0;}else if(yyCompareVal(___sw50___,1,g_GMLMathEpsilon,false)==0){___swc51___=1;}else if(yyCompareVal(___sw50___,2,g_GMLMathEpsilon,false)==0){___swc51___=2;}else if(yyCompareVal(___sw50___,3,g_GMLMathEpsilon,false)==0){___swc51___=3;}switch(___swc51___){
case 0:{draw_sprite_ext(_inst,191,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,192,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,193,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,194,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,
0,16777215,1);break;}};};}else {{var ___sw52___=ds_map_find_value(argument2,"skin");var ___swc53___=-1;if(yyCompareVal(___sw52___,2,g_GMLMathEpsilon,false)==0){___swc53___=0;}else if(yyCompareVal(___sw52___,1,g_GMLMathEpsilon,false)==0){___swc53___=1;}else if(yyCompareVal(___sw52___,0,g_GMLMathEpsilon,false)==0){___swc53___=2;}switch(___swc53___){case 0:{var ___sw54___=ds_map_find_value(argument2,"face_y");var ___swc55___=-1;if(yyCompareVal(___sw54___,0,g_GMLMathEpsilon,false)==0){___swc55___=0;}else if(yyCompareVal(___sw54___,
1,g_GMLMathEpsilon,false)==0){___swc55___=1;}else if(yyCompareVal(___sw54___,2,g_GMLMathEpsilon,false)==0){___swc55___=2;}switch(___swc55___){case 0:{draw_sprite_ext(_inst,179,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,180,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,181,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,
argument3,0,16777215,1);break;}};break;}case 1:{var ___sw56___=ds_map_find_value(argument2,"face_y");var ___swc57___=-1;if(yyCompareVal(___sw56___,0,g_GMLMathEpsilon,false)==0){___swc57___=0;}switch(___swc57___){case 0:{draw_sprite_ext(_inst,182,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}};break;}case 2:{var ___sw58___=ds_map_find_value(argument2,"face_y");var ___swc59___=-1;if(yyCompareVal(___sw58___,0,g_GMLMathEpsilon,false)==0){___swc59___=0;}else if(yyCompareVal(___sw58___,
1,g_GMLMathEpsilon,false)==0){___swc59___=1;}else if(yyCompareVal(___sw58___,2,g_GMLMathEpsilon,false)==0){___swc59___=2;}else if(yyCompareVal(___sw58___,3,g_GMLMathEpsilon,false)==0){___swc59___=3;}else if(yyCompareVal(___sw58___,4,g_GMLMathEpsilon,false)==0){___swc59___=4;}else if(yyCompareVal(___sw58___,5,g_GMLMathEpsilon,false)==0){___swc59___=5;}else if(yyCompareVal(___sw58___,6,g_GMLMathEpsilon,false)==0){___swc59___=6;}else if(yyCompareVal(___sw58___,7,g_GMLMathEpsilon,false)==0){___swc59___=7;
}else if(yyCompareVal(___sw58___,8,g_GMLMathEpsilon,false)==0){___swc59___=8;}switch(___swc59___){case 0:{draw_sprite_ext(_inst,183,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,184,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,185,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 3:{
draw_sprite_ext(_inst,186,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 4:{draw_sprite_ext(_inst,187,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 5:{draw_sprite_ext(_inst,188,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 6:{draw_sprite_ext(_inst,188,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,
0,16777215,1);break;}case 7:{draw_sprite_ext(_inst,189,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 8:{draw_sprite_ext(_inst,190,ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}};break;}};};};shader_reset();}}function gml_GlobalScript_s_college_gui_helpers(_inst,_other){(_inst.gmlbuttons_college_custom=__yy_method(_inst,gml_Script_buttons_college_custom));(_inst.gmldraw_custom_increase_wallet=__yy_method(_inst,
gml_Script_draw_custom_increase_wallet));(_inst.gmldraw_custom_recruitment_credits_display=__yy_method(_inst,gml_Script_draw_custom_recruitment_credits_display));(_inst.gmlrm_player_profile_show_noncollege_elements=__yy_method(_inst,gml_Script_rm_player_profile_show_noncollege_elements));(_inst.gmlrm_player_profile_show_more=__yy_method(_inst,gml_Script_rm_player_profile_show_more));(_inst.gmlrm_player_profile_college_create_p1=__yy_method(_inst,gml_Script_rm_player_profile_college_create_p1));(_inst.gmlrm_player_profile_college_create_p2=__yy_method(_inst,
gml_Script_rm_player_profile_college_create_p2));(_inst.gmlrm_player_profile_college_create=__yy_method(_inst,gml_Script_rm_player_profile_college_create));(_inst.gmlbtn_rm_player_profile_college_showP1=__yy_method(_inst,gml_Script_btn_rm_player_profile_college_showP1));(_inst.gmlbtn_rm_player_profile_college_showP2=__yy_method(_inst,gml_Script_btn_rm_player_profile_college_showP2));(_inst.gmlrm_player_profile_college_step=__yy_method(_inst,gml_Script_rm_player_profile_college_step));(_inst.gmlbtn_click_Profile_College_Cut=__yy_method(_inst,
gml_Script_btn_click_Profile_College_Cut));(_inst.gmlbtn_rm_stats_player_showAwards=__yy_method(_inst,gml_Script_btn_rm_stats_player_showAwards));(_inst.gmlbtn_rm_stats_player_showEpilogue=__yy_method(_inst,gml_Script_btn_rm_stats_player_showEpilogue));(_inst.gmlstats_player_button_entry=__yy_method(_inst,gml_Script_stats_player_button_entry));(_inst.gmlrm_stats_player_configure_college=__yy_method(_inst,gml_Script_rm_stats_player_configure_college));}function gml_Script_buttons_college_custom(_inst,
_other){{draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,
1,0,4210752,1);draw_set_color(4210752);gml_Script_draw_custom_increase_wallet(_inst,_other,gmltx,gmlty,_inst.sprite_width,_inst.sprite_height);draw_set_color(16777215);};}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v75=GetWithArray(78);for(var __yy__v76 in __yy__v75){if(!__yy__v75.hasOwnProperty(__yy__v76))continue;var __yy__v77=__yy__v75[__yy__v76];if(yyfless(__yy__v77.depth,
_inst.depth)){gmlf=0;};}};draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,255,1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){
draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};gml_Script_draw_custom_increase_wallet(_inst,_other,gmltx,gmlty,_inst.sprite_width,_inst.sprite_height);};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),
2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};gml_Script_draw_custom_increase_wallet(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),_inst.sprite_width,_inst.sprite_height);
};};};}}function gml_Script_draw_custom_increase_wallet(_inst,_other,argument0,argument1,argument2,argument3){{var gmls1=string_upper(gml_Script_s_str(_inst,_other,"ui_increase"));var gmls2=string_upper(gml_Script_s_str(_inst,_other,"ui_wallet"));var gmlrcw=sprite_get_width(0);var gmls1H=gml_Script_string_hd_height(_inst,_other,gmls1);var gmls2W=gml_Script_string_hd_width(_inst,_other,gmls2);var gmltx=argument0;var gmlty=yyfplus(yyfplus(yyfminus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(argument3),
2))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmls1H),2))),4);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmls1);gmlty=yyfplus(gmlty,12);draw_sprite(_inst,0,0,yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmls2W),2))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlrcw),2))),gmlty);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmls2);}}function gml_Script_draw_custom_recruitment_credits_display(_inst,_other,argument0,argument1){{var gmltx=argument0;
var gmlty=argument1;draw_set_halign(0);var gmlrcw=sprite_get_width(0);var gmlcontentTxt=yyfplus(yyfplus("",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlrecruitment_credits)))," ");gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlcontentTxt);gmltx=yyfplus(gmltx,gml_Script_string_hd_width(_inst,_other,gmlcontentTxt));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(gmlrcw),2));draw_sprite(_inst,0,0,gmltx,gmlty);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(gmlrcw),2));gmlcontentTxt=yyfplus(yyfplus(" / ",
__yy_gml_errCheck(string(gml_Script_recruitment_credits_cap_total(_inst,_other))))," ");gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlcontentTxt);gmltx=yyfplus(gmltx,gml_Script_string_hd_width(_inst,_other,gmlcontentTxt));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(gmlrcw),2));draw_sprite(_inst,0,0,gmltx,gmlty);}}function gml_Script_rm_player_profile_show_noncollege_elements(_inst,_other,argument0){{yyInst(_inst,_other,100423).visible=argument0;yyInst(_inst,_other,100431).visible=argument0;
yyInst(_inst,_other,100429).visible=argument0;yyInst(_inst,_other,100424).visible=argument0;yyInst(_inst,_other,100435).visible=argument0;yyInst(_inst,_other,100436).visible=argument0;yyInst(_inst,_other,100430).visible=argument0;yyInst(_inst,_other,100433).visible=argument0;}}function gml_Script_rm_player_profile_show_more(_inst,_other,argument0){{var gmlshowMore=true;if((yyGetBool(yyfequal(ds_map_find_value(argument0,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))&&(yyGetBool(yyfgreater(yyInst(_inst,
_other,97).gmlcollege_admissions_draft_round,0)))){{gmlshowMore=false;};};return gmlshowMore;}}function gml_Script____struct___1_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___1_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___1_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);
{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___2_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___2_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,
gml_Script____struct___2_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___3_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___3_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___3_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___4_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___4_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___4_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___5_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___5_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___5_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___6_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___6_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___6_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___7_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___7_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___7_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___8_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___8_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___8_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script_rm_player_profile_college_create_p1(_inst,_other){{var gmltx=40;var gmlty=56;var gmlc=0;draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);
if(yyGetBool(gml_Script_rm_player_profile_show_more(_inst,_other,_inst.gmlpmap))){{yyInst(_inst,_other,147).gmlco_page1=__yy_gml_array_check(yyInst(_inst,_other,147).gmlco_page1,861061580);yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(176,152,"Instances",37,__yy_gml_object_create(_inst,(_inst.gml___struct___1=__yy_method(_inst,gml_Script____struct___1_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),
gml_Script_s_str(_inst,_other,"ui_More"),kgml_Script_btn_rm_player_profile_college_showP2));};};yyInst(_inst,_other,147).gmlco_page1=__yy_gml_array_check(yyInst(_inst,_other,147).gmlco_page1,861061580);yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___2=__yy_method(_inst,gml_Script____struct___2_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),
gml_Script_s_college_age_label(_inst,_other,ds_map_find_value(_inst.gmlpmap,"age"))));gmlty=yyfplus(gmlty,12);var gmlattitudeText=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")))));_inst.gmlco_attitude=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___3=__yy_method(_inst,gml_Script____struct___3_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),
gmlattitudeText));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=_inst.gmlco_attitude;_inst.gmlx_attitude=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlco_attitude).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlco_attitude).gmltext)," "))));_inst.gmly_attitude=yyInst(_inst,
_other,_inst.gmlco_attitude).y;var gmlconditionText=string_upper(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Condition")),": "));var gmlco_condition=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___4=__yy_method(_inst,gml_Script____struct___4_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gmlconditionText));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,
gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=gmlco_condition;_inst.gmlx_condition=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlco_condition).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmlconditionText)));_inst.gmly_condition=yyInst(_inst,_other,gmlco_condition).y;_inst.gmlx_condition2=yyfplus(__yy_gml_errCheck(_inst.gmlx_condition),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltxt_condition),
" "))));var gmlgpaText=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_GPA")),": "),__yy_gml_errCheck(string_format(gml_Script_s_gpa_from_percent_grade(_inst,_other,ds_map_find_value(_inst.gmlpmap,"percent_grade")),1,1)));yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___5=__yy_method(_inst,
gml_Script____struct___5_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gmlgpaText));gmlty=yyfplus(gmlty,12);var gmltraitText=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Trait")),": "),__yy_gml_errCheck(gml_Script_s_get_trait_name(_inst,_other,_inst.gmlpmap))));yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,
gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___6=__yy_method(_inst,gml_Script____struct___6_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gmltraitText));gmlty=yyfplus(gmlty,12);var gmlco_rating=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___7=__yy_method(_inst,gml_Script____struct___7_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Rating")),": ")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=gmlco_rating;_inst.gmlx_star_rating=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlco_rating).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,gmlco_rating).gmltext))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(105)),
10)),__yy_gml_errCheck(_inst.gmlstar_rating))),2)));_inst.gmly_star_rating=yyInst(_inst,_other,gmlco_rating).y;var gmlco_potential=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___8=__yy_method(_inst,gml_Script____struct___8_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Potential")),": ")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,
gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=gmlco_potential;_inst.gmlx_star_potential=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlco_potential).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,gmlco_potential).gmltext))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(106)),10)),__yy_gml_errCheck(_inst.gmlstar_potential))),2)));_inst.gmly_star_potential=yyInst(_inst,
_other,gmlco_potential).y;if(yyGetBool(ds_map_find_value(_inst.gmlpmap,"suspended"))){{_inst.gmlcol_condition=255;_inst.gmli_condition=4;};};}}function gml_Script____struct___9_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___9_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___9_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);
{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___10_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___10_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,
gml_Script____struct___10_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___11_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___11_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___11_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___12_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___12_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___12_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___13_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___13_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___13_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___14_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___14_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___14_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___15_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___15_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___15_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___16_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___16_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___16_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___17_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___17_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___17_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script_rm_player_profile_college_create_p2(_inst,_other){{var gmltx=40;var gmlty=56;var gmlc=0;draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);
yyInst(_inst,_other,147).gmlco_page2=__yy_gml_array_check(yyInst(_inst,_other,147).gmlco_page2,411013647);yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(176,152,"Instances",37,__yy_gml_object_create(_inst,(_inst.gml___struct___9=__yy_method(_inst,gml_Script____struct___9_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),
gml_Script_s_str(_inst,_other,"ui_Back"),kgml_Script_btn_rm_player_profile_college_showP1));yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___10=__yy_method(_inst,gml_Script____struct___10_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,
_other,"ui_Major")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),12),gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___11=__yy_method(_inst,gml_Script____struct___11_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_get_major_name(_inst,
_other,_inst.gmlpmap,true)));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___12=__yy_method(_inst,gml_Script____struct___12_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,_other,"ui_Minor")));gmlty=yyfplus(gmlty,
12);yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),12),gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___13=__yy_method(_inst,gml_Script____struct___13_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_get_minor_name(_inst,_other,_inst.gmlpmap,true)));gmlty=yyfplus(gmlty,
12);yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___14=__yy_method(_inst,gml_Script____struct___14_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,_other,"ui_OrientationWeek")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,
147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),12),gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___15=__yy_method(_inst,gml_Script____struct___15_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_get_hobby_name(_inst,_other,_inst.gmlpmap,true)));gmlty=yyfplus(gmlty,12);yyInst(_inst,
_other,147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___16=__yy_method(_inst,gml_Script____struct___16_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,_other,"ui_Hometown")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,
gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),12),gmlty,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___17=__yy_method(_inst,gml_Script____struct___17_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_get_hometown_name(_inst,_other,_inst.gmlpmap)));gmlty=yyfplus(gmlty,12);}}function gml_Script_rm_player_profile_college_create(_inst,_other){{gml_Script_rm_player_profile_show_noncollege_elements(_inst,
_other,false);gml_Script_rm_player_profile_college_create_p1(_inst,_other);gml_Script_rm_player_profile_college_create_p2(_inst,_other);if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlcollege_profile_page_num,2)))&&(yyGetBool(gml_Script_rm_player_profile_show_more(_inst,_other,_inst.gmlpmap)))){{gml_Script_btn_rm_player_profile_college_showP2(_inst,_other);};}else {{gml_Script_btn_rm_player_profile_college_showP1(_inst,_other);};};}}function gml_Script_btn_rm_player_profile_college_showP1(_inst,
_other){{gml_Script_slog(_inst,_other,"back");var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,147).gmlco_page1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{yyInst(_inst,_other,yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,147).gmlco_page1)]).visible=true;}};var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,147).gmlco_page2));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{yyInst(_inst,_other,yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,147).gmlco_page2)]).visible=false;}};yyInst(_inst,_other,147).gmlshow_spr_star_rating_cb=true;yyInst(_inst,_other,147).gmlshow_spr_star_rating_cbn=true;yyInst(_inst,_other,147).gmlshow_spr_attitude=true;yyInst(_inst,_other,147).gmlshow_spr_condition=true;yyInst(_inst,_other,97).gmlcollege_profile_page_num=1;}}function gml_Script_btn_rm_player_profile_college_showP2(_inst,
_other){{gml_Script_slog(_inst,_other,"more");var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,147).gmlco_page1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{yyInst(_inst,_other,yyInst(_inst,_other,147).gmlco_page1[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,147).gmlco_page1)]).visible=false;}};var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,147).gmlco_page2));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{yyInst(_inst,_other,yyInst(_inst,_other,147).gmlco_page2[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,147).gmlco_page2)]).visible=true;}};yyInst(_inst,_other,147).gmlshow_spr_star_rating_cb=false;yyInst(_inst,_other,147).gmlshow_spr_star_rating_cbn=false;yyInst(_inst,_other,147).gmlshow_spr_attitude=false;yyInst(_inst,_other,147).gmlshow_spr_condition=false;yyInst(_inst,_other,97).gmlcollege_profile_page_num=2;}}function gml_Script_rm_player_profile_college_step(_inst,
_other){{yyInst(_inst,_other,_inst.gmlco_attitude).gmltext=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")))));_inst.gmlx_attitude=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlco_attitude).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlco_attitude).gmltext)," "))));
_inst.gmly_attitude=yyInst(_inst,_other,_inst.gmlco_attitude).y;}}function gml_Script_btn_click_Profile_College_Cut(_inst,_other){{var gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CutPlayer");var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,
_other,ds_map_find_value(gmlpmap,"position")));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);}}function gml_Script_btn_rm_stats_player_showAwards(_inst,_other){{gml_Script_slog(_inst,_other,"showAwards");yyInst(_inst,_other,97).gmlco_stats_tab=1;room_goto(27);}}function gml_Script_btn_rm_stats_player_showEpilogue(_inst,
_other){{gml_Script_slog(_inst,_other,"showEpilogue");yyInst(_inst,_other,97).gmlco_stats_tab=2;room_goto(27);}}function gml_Script____struct___18_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___18_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___18_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers.prototype);
{var $$args=Array.prototype.slice.call(arguments);{_inst.image_xscale=2.35;_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_stats_player_button_entry(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5){{var gmlbtn=instance_create_layer(argument0,argument1,"Instances",20,__yy_gml_object_create(_inst,(_inst.gml___struct___18=__yy_method(_inst,gml_Script____struct___18_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers)),
gml_Script_s_str(_inst,_other,argument2),argument3));var ___sw66___=argument4;var ___swc67___=-1;if(yyCompareVal(___sw66___,0,g_GMLMathEpsilon,false)==0){___swc67___=0;}switch(___swc67___){case 0:{{if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlco_stats_tab,argument4)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlstat_view,argument5)))){{yyInst(_inst,_other,gmlbtn).gmlcolour=global.gmlc_primary;};};break;};}default :{{if(yyfequal(yyInst(_inst,_other,97).gmlco_stats_tab,argument4)){{yyInst(_inst,
_other,gmlbtn).gmlcolour=global.gmlc_primary;};};};}};}}function gml_Script____struct___19_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___19_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___19_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);
{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=1;}}}}function gml_Script____struct___20_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___20_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___20_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.prototype);
{var $$args=Array.prototype.slice.call(arguments);{_inst.image_xscale=1.6;_inst.image_yscale=1;_inst.gmluse_player_awards=true;_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_rm_stats_player_configure_college(_inst,_other){{yyInst(_inst,_other,100516).visible=false;yyInst(_inst,_other,100515).visible=false;yyInst(_inst,_other,100507).visible=false;yyInst(_inst,_other,100511).visible=false;yyInst(_inst,_other,100508).visible=false;yyInst(_inst,_other,100512).visible=false;
yyInst(_inst,_other,100509).visible=false;yyInst(_inst,_other,100513).visible=false;yyInst(_inst,_other,100510).visible=false;yyInst(_inst,_other,100514).visible=false;yyInst(_inst,_other,100517).visible=false;yyInst(_inst,_other,100518).visible=false;var gmlpx=397;var gmlpy=232;var gmldeltaX=81;_inst.gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;var gmlinRoster=yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmlroster,_inst.gmlpmap),0);var gmlhasLeft=(yyGetBool(yyfequal(yyInst(_inst,_other,
97).gmlviewing_hof_players,true)))&&(yyGetBool(yyfequal(gmlinRoster,false)));var gmlhasAwards=false;if((yyGetBool(ds_map_exists(_inst.gmlpmap,"awards")))&&(yyGetBool(yyfgreater(ds_list_size(ds_map_find_value(_inst.gmlpmap,"awards")),0)))){{gmlhasAwards=true;};};var gmlforceShowStatsTab=(yyGetBool(gmlhasAwards))||(yyGetBool(gmlhasLeft));var gmlpos=real(ds_map_find_value(_inst.gmlpmap,"position"));var ___sw68___=gmlpos;var ___swc69___=-1;if(yyCompareVal(___sw68___,1,g_GMLMathEpsilon,false)==0){___swc69___=0;
}else if(yyCompareVal(___sw68___,5,g_GMLMathEpsilon,false)==0){___swc69___=1;}else if(yyCompareVal(___sw68___,2,g_GMLMathEpsilon,false)==0){___swc69___=2;}else if(yyCompareVal(___sw68___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw68___,4,g_GMLMathEpsilon,false)==0){___swc69___=3;}else if(yyCompareVal(___sw68___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw68___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw68___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw68___,8,g_GMLMathEpsilon,false)==0){
___swc69___=4;}else if(yyCompareVal(___sw68___,10,g_GMLMathEpsilon,false)==0){___swc69___=5;}switch(___swc69___){case 0:{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Rushing",kgml_Script_btn_click_StatsView2,0,2);gmlpx=yyfminus(gmlpx,gmldeltaX);gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Passing",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);break;}case 1:{if(yyGetBool(gmlforceShowStatsTab)){{gml_Script_stats_player_button_entry(_inst,
_other,gmlpx,gmlpy,"ui_Blocking",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);};};break;}case 2:{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Rushing",kgml_Script_btn_click_StatsView2,0,2);gmlpx=yyfminus(gmlpx,gmldeltaX);gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Receiving",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);break;}case 3:{if(yyGetBool(gmlforceShowStatsTab)){{gml_Script_stats_player_button_entry(_inst,
_other,gmlpx,gmlpy,"ui_Receiving",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);};};break;}case 4:{if(yyGetBool(gmlforceShowStatsTab)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Defense",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);};};break;}case 5:{if(yyGetBool(gmlforceShowStatsTab)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Kicking",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);
};};break;}};if(yyGetBool(gmlhasAwards)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Awards",kgml_Script_btn_rm_stats_player_showAwards,1,0);gmlpx=yyfminus(gmlpx,gmldeltaX);};};if(yyGetBool(gmlhasLeft)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Epilogue",kgml_Script_btn_rm_stats_player_showEpilogue,2,0);gmlpx=yyfminus(gmlpx,gmldeltaX);};};yyInst(_inst,_other,100497).y=60;yyInst(_inst,_other,100498).y=60;yyInst(_inst,_other,100499).y=60;yyInst(_inst,
_other,100497).image_yscale=1.3;yyInst(_inst,_other,100498).image_yscale=1.3;yyInst(_inst,_other,100499).image_yscale=1.3;yyInst(_inst,_other,100500).y=60;yyInst(_inst,_other,100502).y=60;yyInst(_inst,_other,100503).y=60;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"class_of"))){{if((yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"),"graduated")))||(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"),"drafted")))){{if(yyfequal(ds_map_find_value(_inst.gmlpmap,
"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{instance_create_layer(248,40,"Instances",74,__yy_gml_object_create(_inst,(_inst.gml___struct___19=__yy_method(_inst,gml_Script____struct___19_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers)),yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_ClassOf")),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"class_of"))))));};};};};};};yyInst(_inst,_other,100497).visible=false;
yyInst(_inst,_other,100498).visible=false;yyInst(_inst,_other,100499).visible=false;yyInst(_inst,_other,100500).visible=false;yyInst(_inst,_other,100502).visible=false;yyInst(_inst,_other,100503).visible=false;var ___sw70___=yyInst(_inst,_other,97).gmlco_stats_tab;var ___swc71___=-1;if(yyCompareVal(___sw70___,0,g_GMLMathEpsilon,false)==0){___swc71___=0;}else if(yyCompareVal(___sw70___,1,g_GMLMathEpsilon,false)==0){___swc71___=1;}else if(yyCompareVal(___sw70___,2,g_GMLMathEpsilon,false)==0){___swc71___=2;
}switch(___swc71___){case 0:{{yyInst(_inst,_other,100497).visible=true;yyInst(_inst,_other,100498).visible=true;yyInst(_inst,_other,100499).visible=true;yyInst(_inst,_other,100500).visible=true;yyInst(_inst,_other,100502).visible=true;yyInst(_inst,_other,100503).visible=true;break;};}case 1:{{if(yyGetBool(ds_map_exists(_inst.gmlpmap,"awards"))){{yyInst(_inst,_other,97).gmlplayer_awards=ds_map_find_value(_inst.gmlpmap,"awards");};}else {{yyInst(_inst,_other,97).gmlplayer_awards=yyInst(_inst,_other,97).gmlplayer_awards_emtpy;
};};instance_create_layer(112,60,"Instances",90,__yy_gml_object_create(_inst,(_inst.gml___struct___20=__yy_method(_inst,gml_Script____struct___20_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,_other,"ui_Awards")));break;};}case 2:{{var gmlepi_text=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_No_Epilogue"))," ("),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"))),")");if((yyGetBool(ds_map_exists(_inst.gmlpmap,
"epilogue")))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"epilogue"),"")))){{gmlepi_text=gml_Script_s_epilogue_story_to_str(_inst,_other,ds_map_find_value(_inst.gmlpmap,"epilogue"));gmlepi_text=gml_Script_s_parse_player_message(_inst,_other,gmlepi_text,_inst.gmlpmap);};};var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus((-8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5))),"Instances",79);yyInst(_inst,_other,gmlmsg).gmltext=gmlepi_text;
yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;break;};}};var gmlsingleUnitView=false;if(yyfequal(yyInst(_inst,_other,97).gmlprofile_back_to,1)){{gmlsingleUnitView=true;};};if(yyfequal(yyInst(_inst,_other,97).gmlprofile_back_to,2)){{gmlsingleUnitView=true;};};if(yyGetBool(gml_Script_s_doing_college_draft(_inst,_other))){{gmlsingleUnitView=true;};};if(yyGetBool(gmlsingleUnitView)){{yyInst(_inst,_other,100504).visible=false;yyInst(_inst,_other,100505).visible=false;};};}}function gml_GlobalScript_s_load_profile_uni(_inst,
_other){(_inst.gmls_load_profile_uni=__yy_method(_inst,gml_Script_s_load_profile_uni));}function gml_Script_s_load_profile_uni(_inst,_other,argument0){{if((yyGetBool(argument0))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,argument0).gmlpmap,(-4))))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_load_profile_uni: ",__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,argument0).gmlpmap,"fname"))),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,argument0).gmlpmap,"lname"))));var gmltid=(-1);
if((yyGetBool(ds_map_exists(yyInst(_inst,_other,argument0).gmlpmap,"teamid")))&&(yyGetBool(yyfgreater(ds_map_find_value(yyInst(_inst,_other,argument0).gmlpmap,"teamid"),(-1))))){gmltid=ds_map_find_value(yyInst(_inst,_other,argument0).gmlpmap,"teamid");}else {if(yyfgreater(ds_list_find_index(yyInst(_inst,_other,97).gmlstafflist,yyInst(_inst,_other,argument0).gmlpmap),(-1))){gmltid=yyInst(_inst,_other,97).gmlmyteam_id;}else {if(yyfequal(yyInst(_inst,_other,argument0).gmlpmap,yyInst(_inst,_other,97).gmlboss_profile)){
gmltid=yyInst(_inst,_other,97).gmlmyteam_id;}else {gml_Script_slog(_inst,_other,"NOT FOUND");};};};if(yyfgreater(gmltid,(-1))){{var gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,gmltid,gmluniform,0,"");{var __yy__v78=GetWithArray(argument0);for(var __yy__v79 in __yy__v78){if(!__yy__v78.hasOwnProperty(__yy__v79))continue;var __yy__v80=__yy__v78[__yy__v79];gml_Script_s_set_up_uniform_profile(__yy__v80,_inst,
gmluniform);}};};};};};}}function gml_GlobalScript_s_get_lifestyle(_inst,_other){(_inst.gmls_get_lifestyle=__yy_method(_inst,gml_Script_s_get_lifestyle));}function gml_Script_s_get_lifestyle(_inst,_other){{{var __yy__v81=GetWithArray(97);for(var __yy__v82 in __yy__v81){if(!__yy__v81.hasOwnProperty(__yy__v82))continue;var __yy__v83=__yy__v81[__yy__v82];{var gmllif=50;return round(gmllif);}}};}}function gml_GlobalScript_btn_meet_teammate(_inst,_other){(_inst.gmlbtn_meet_teammate=__yy_method(_inst,gml_Script_btn_meet_teammate));
(_inst.gmls_confirm_teammate_meeting=__yy_method(_inst,gml_Script_s_confirm_teammate_meeting));}function gml_Script_btn_meet_teammate(_inst,_other){{{var __yy__v84=GetWithArray(97);for(var __yy__v85 in __yy__v84){if(!__yy__v84.hasOwnProperty(__yy__v85))continue;var __yy__v86=__yy__v84[__yy__v85];{var gmlpmap=gml_Script_s_get_qb_pmap(__yy__v86,_inst);var gmlteammate=__yy__v86.gmlplayer_profile;if(yyfgreater(ds_map_find_value(gmlteammate,"attitude"),90)){{gml_Script_s_create_message(__yy__v86,_inst,"",gml_Script_s_str(__yy__v86,
_inst,"msg_TeammateMoraleTooHigh"),gml_Script_s_str(__yy__v86,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfless(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),1),20)){{gml_Script_s_create_message(__yy__v86,_inst,"",gml_Script_s_str(__yy__v86,_inst,"msg_NotEnoughCondition"),gml_Script_s_str(__yy__v86,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v86,_inst,
"msg_MeetTeammate");gmlmsg=string_replace(gmlmsg,"$teammate",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteammate,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlteammate,"lname"))));gmlmsg=string_replace(gmlmsg,"$num",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),20));gml_Script_s_create_message(__yy__v86,_inst,"",gmlmsg,gml_Script_s_str(__yy__v86,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v86,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_teammate_meeting,
global.gmlc_background,1);}}};}}function gml_Script_s_confirm_teammate_meeting(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);var gmlteammate=yyInst(_inst,_other,97).gmlplayer_profile;ds_map_set(gmlpmap,"condition",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),20),1,100));ds_map_set(gmlteammate,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteammate,"attitude")),15),1,100));}}function gml_GlobalScript_s_check_qb_mode_benched(_inst,
_other){(_inst.gmls_qb_mode_benched_status=__yy_method(_inst,gml_Script_s_qb_mode_benched_status));}function gml_Script_s_qb_mode_benched_status(_inst,_other){{{var __yy__v87=GetWithArray(97);for(var __yy__v88 in __yy__v87){if(!__yy__v87.hasOwnProperty(__yy__v88))continue;var __yy__v89=__yy__v87[__yy__v88];{if(yyfless(__yy__v89.gmlrelationship_boss,15)){return 1;}else {if(yyfless(gml_Script_s_get_qb_energy(__yy__v89,_inst),40)){return 2;};};}}};return 0;}}function gml_GlobalScript_font_scripts(_inst,_other){
(_inst.gmls_data_path=__yy_method(_inst,gml_Script_s_data_path));(_inst.gmls_fonts_init=__yy_method(_inst,gml_Script_s_fonts_init));(_inst.gmldraw_hd_text=__yy_method(_inst,gml_Script_draw_hd_text));(_inst.gmldraw_hd_text_color=__yy_method(_inst,gml_Script_draw_hd_text_color));(_inst.gmldraw_hd_text_ext=__yy_method(_inst,gml_Script_draw_hd_text_ext));(_inst.gmldraw_hd_text_ext_color=__yy_method(_inst,gml_Script_draw_hd_text_ext_color));(_inst.gmldraw_hd_text_transformed=__yy_method(_inst,gml_Script_draw_hd_text_transformed));
(_inst.gmldraw_hd_text_transformed_color=__yy_method(_inst,gml_Script_draw_hd_text_transformed_color));(_inst.gmldraw_hd_text_ext_transformed=__yy_method(_inst,gml_Script_draw_hd_text_ext_transformed));(_inst.gmlstring_hd_width=__yy_method(_inst,gml_Script_string_hd_width));(_inst.gmlstring_hd_width_ext=__yy_method(_inst,gml_Script_string_hd_width_ext));(_inst.gmlstring_hd_height=__yy_method(_inst,gml_Script_string_hd_height));(_inst.gmlstring_hd_height_ext=__yy_method(_inst,gml_Script_string_hd_height_ext));
}function gml_Script_s_data_path(_inst,_other,argument0){{return yyfplus(__yy_gml_errCheck(g_pBuiltIn.working_directory),__yy_gml_errCheck(argument0));}}function gml_Script_s_fonts_init(_inst,_other){{gml_Script_slog(_inst,_other,"Load JAPAN ttf font");global.gmlfnt_small_flex=1;global.gmlfnt_flex=2;global.gmlfnt_restart_flex=4;global.gmlhd_fonts=false;if(yyfequal(os_get_config(),"Japan")){{gml_Script_slog(_inst,_other,"Load JAPAN ttf font");var gmljapFontPath=gml_Script_s_data_path(_inst,_other,"TT_DotGothic16-M.TTF");
font_add_enable_aa(false);global.gmlfnt_jp=font_add(gmljapFontPath,50.4,false,false,32,128);global.gmlfnt_small_jp=font_add(gmljapFontPath,28.8,false,false,32,128);global.gmlfnt_restart_jp=font_add(gmljapFontPath,50.4,false,false,32,128);global.gmlfnt_flex=global.gmlfnt_jp;global.gmlfnt_small_flex=global.gmlfnt_small_jp;global.gmlfnt_restart_flex=global.gmlfnt_restart_jp;global.gmlhd_fonts=true;gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("Load ttf font [",__yy_gml_errCheck(string(gmljapFontPath))),
"] done:["),__yy_gml_errCheck(string(global.gmlfnt_jp))),"]"));};};}}function gml_Script_draw_hd_text(_inst,_other,argument0,argument1,argument2){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_transformed(argument0,argument1,argument2,0.25,0.25,0);};}else {{draw_text(argument0,argument1,argument2);};};}}function gml_Script_draw_hd_text_color(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_transformed_color(argument0,
argument1,argument2,0.25,0.25,0,argument3,argument4,argument5,argument6,argument7);};}else {{draw_text_color(argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7);};};}}function gml_Script_draw_hd_text_ext(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_ext_transformed(argument0,argument1,argument2,yyftime(__yy_gml_errCheck(argument3),4),yyftime(__yy_gml_errCheck(argument4),4),0.25,0.25,0);};}else {{draw_text_ext(argument0,
argument1,argument2,argument3,argument4);};};}}function gml_Script_draw_hd_text_ext_color(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_ext_transformed(argument0,argument1,argument2,yyftime(__yy_gml_errCheck(argument3),4),yyftime(__yy_gml_errCheck(argument4),4),0.25,0.25,0);};}else {{draw_text_ext_color(argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,
argument9);};};}}function gml_Script_draw_hd_text_transformed(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_transformed(argument0,argument1,argument2,yyfdivide(__yy_gml_errCheck(argument3),4),yyfdivide(__yy_gml_errCheck(argument4),4),argument5);};}else {{draw_text_transformed(argument0,argument1,argument2,argument3,argument4,argument5);};};}}function gml_Script_draw_hd_text_transformed_color(_inst,_other,argument0,argument1,argument2,
argument3,argument4,argument5,argument6,argument7,argument8,argument9,argument10){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_transformed_color(argument0,argument1,argument2,yyfdivide(__yy_gml_errCheck(argument3),4),yyfdivide(__yy_gml_errCheck(argument4),4),argument5,argument6,argument7,argument8,argument9,argument10);};}else {{draw_text_transformed_color(argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9,argument10);};};}}function gml_Script_draw_hd_text_ext_transformed(_inst,
_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_ext_transformed(argument0,argument1,argument2,yyftime(__yy_gml_errCheck(argument3),4),yyftime(__yy_gml_errCheck(argument4),4),yyfdivide(__yy_gml_errCheck(argument5),4),yyfdivide(__yy_gml_errCheck(argument6),4),argument7);};}else {{draw_text_ext_transformed(argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7);};};}}function gml_Script_string_hd_width(_inst,
_other,argument0){{if(yyGetBool(global.gmlhd_fonts)){return yyfdivide(__yy_gml_errCheck(string_width(argument0)),4);}else {return string_width(argument0);};}}function gml_Script_string_hd_width_ext(_inst,_other,argument0,argument1,argument2){{if(yyGetBool(global.gmlhd_fonts)){return yyfdivide(__yy_gml_errCheck(string_width_ext(argument0,yyftime(__yy_gml_errCheck(argument1),4),yyftime(__yy_gml_errCheck(argument2),4))),4);}else {return string_width_ext(argument0,argument1,argument2);};}}function gml_Script_string_hd_height(_inst,
_other,argument0){{if(yyGetBool(global.gmlhd_fonts)){return yyfdivide(__yy_gml_errCheck(string_height(argument0)),4);}else {return string_height(argument0);};}}function gml_Script_string_hd_height_ext(_inst,_other,argument0,argument1,argument2){{if(yyGetBool(global.gmlhd_fonts)){return yyfdivide(__yy_gml_errCheck(string_height_ext(argument0,yyftime(__yy_gml_errCheck(argument1),4),yyftime(__yy_gml_errCheck(argument2),4))),4);}else {return string_height_ext(argument0,argument1,argument2);};}}function gml_GlobalScript_btn_click_Details_Back(_inst,
_other){(_inst.gmlbtn_click_Details_Back=__yy_method(_inst,gml_Script_btn_click_Details_Back));}function gml_Script_btn_click_Details_Back(_inst,_other){{gml_Script_s_destroy_master(_inst,_other);room_goto(0);}}function gml_GlobalScript_s_replay_controls(_inst,_other){(_inst.gmls_replay_controls=__yy_method(_inst,gml_Script_s_replay_controls));}function gml_Script_s_replay_controls(_inst,_other){{if((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))&&(yyGetBool(!yyGetBool(gamepad_button_check(global.gmlgp_slot,
global.gmlgp_back))))){{gml_Script_s_end_replay(_inst,_other);};}else {{var gmlsz=0;{var __yy__v90=GetWithArray(global.gmlmaster_ball);for(var __yy__v91 in __yy__v90){if(!__yy__v90.hasOwnProperty(__yy__v91))continue;var __yy__v92=__yy__v90[__yy__v91];gmlsz=ds_list_size(__yy__v92.gmlmy_replay);}};if(yyfless(gmlsz,1)){return;};if(yyGetBool(global.gmlgamepad)){{var gmlspd=1;if(yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_back))){gmlspd=0.5;};if(yyfgreater(global.gmlaxisl_h,0.2)){{global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,
yyfdivide(yyftime(__yy_gml_errCheck(gmlspd),2),4));global.gmlreplay_frame=min(global.gmlreplay_frame,yyfminus(__yy_gml_errCheck(gmlsz),1));};}else {if(yyfless(global.gmlaxisl_h,(-0.2))){global.gmlreplay_frame=yyfminus(global.gmlreplay_frame,yyfdivide(yyftime(__yy_gml_errCheck(gmlspd),2),4));}else {global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,yyfdivide(__yy_gml_errCheck(gmlspd),4));};};};}else {{if(yyfgreater(global.gmlreplay_drag_x,15)){{global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,
0.5);global.gmlreplay_frame=min(global.gmlreplay_frame,yyfminus(__yy_gml_errCheck(gmlsz),1));};}else {if(yyfless(global.gmlreplay_drag_x,(-15))){global.gmlreplay_frame=yyfminus(global.gmlreplay_frame,0.5);}else {if(yyGetBool(mouse_check_button(1))){global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,0.125);}else {global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,0.25);};};};};};{var __yy__v93=GetWithArray(105);for(var __yy__v94 in __yy__v93){if(!__yy__v93.hasOwnProperty(__yy__v94))continue;var __yy__v95=__yy__v93[__yy__v94];
gml_Script_s_replay_frame(__yy__v95,_inst);}};};};}}function gml_GlobalScript_nrg(_inst,_other){(_inst.gmlbtn_click_nrg_buy=__yy_method(_inst,gml_Script_btn_click_nrg_buy));(_inst.gmlbtn_click_nrg_drink=__yy_method(_inst,gml_Script_btn_click_nrg_drink));(_inst.gmls_drink_nrg=__yy_method(_inst,gml_Script_s_drink_nrg));(_inst.gmls_get_condition_colour=__yy_method(_inst,gml_Script_s_get_condition_colour));(_inst.gmls_get_condition_icon=__yy_method(_inst,gml_Script_s_get_condition_icon));}function gml_Script_btn_click_nrg_buy(_inst,
_other){{{var __yy__v96=GetWithArray(97);for(var __yy__v97 in __yy__v96){if(!__yy__v96.hasOwnProperty(__yy__v97))continue;var __yy__v98=__yy__v96[__yy__v97];{(g_yyPrePostObject__=__yy__v98.gmlqb_nrg,__yy__v98.gmlqb_nrg=(g_yyPrePostObject__ instanceof Long?__yy__v98.gmlqb_nrg.add(1):++__yy__v98.gmlqb_nrg),g_yyPrePostObject__);}}};gml_Script_s_savegame(_inst,_other);room_goto(g_pBuiltIn.get_current_room());}}function gml_Script_btn_click_nrg_drink(_inst,_other){{if(yyfgreater(yyInst(_inst,_other,97).gmlqb_nrg,
0)){{if(yyfgreater(gml_Script_s_get_qb_energy(_inst,_other),50)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_NRG_ConfirmDrink"),gml_Script_s_str(_inst,_other,"ui_Yes"),gml_Script_s_str(_inst,_other,"ui_Cancel"),kgml_Script_s_drink_nrg,kgml_Script_s_msg_clear,global.gmlc_background,1);}else {gml_Script_s_drink_nrg(_inst,_other);};};}else {gml_Script_s_msg(_inst,_other,gml_Script_s_str(_inst,_other,"msg_NRG_NoCans"));};}}function gml_Script_s_drink_nrg(_inst,_other){
{gml_Script_s_msg_clear(_inst,_other);(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlqb_nrg,yyInst(_inst,_other,97).gmlqb_nrg=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlqb_nrg.subtract(1):--yyInst(_inst,_other,97).gmlqb_nrg),g_yyPrePostObject__);gml_Script_s_sound(_inst,_other,20);var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);ds_map_set(gmlqb,"condition",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"condition")),100),1,100));gml_Script_s_qb_mode_update_resting(_inst,
_other);gml_Script_s_savegame(_inst,_other);room_goto(g_pBuiltIn.get_current_room());}}function gml_Script_s_get_condition_colour(_inst,_other,argument0,argument1){{if(yyflessequal(argument0,40)){return 255;}else {if(yyflessequal(argument0,60)){return 65535;}else {return argument1;};};}}function gml_Script_s_get_condition_icon(_inst,_other,argument0){{if(yyGetBool(ds_map_find_value(argument0,"resting"))){return 3;}else {if(yyflessequal(ds_map_find_value(argument0,"condition"),0)){return 0;}else {if(yyfless(ds_map_find_value(argument0,
"condition"),40)){return 1;}else {if(yyfless(ds_map_find_value(argument0,"condition"),60)){return 2;}else {return(-1);};};};};}}// slog("DELETING PLAYER @["+string(del_index)+"]: " + string(pmap[? "lname"]));
function gml_GlobalScript_s_college_draft(_inst,_other,argument0){(_inst.gmls_college_draft_ranking=__yy_method(_inst,gml_Script_s_college_draft_ranking));(_inst.gmls_college_draft_team_ranking=__yy_method(_inst,gml_Script_s_college_draft_team_ranking));(_inst.gmls_college_draft_team_pick=__yy_method(_inst,
gml_Script_s_college_draft_team_pick));(_inst.gmls_calculate_college_draft=__yy_method(_inst,gml_Script_s_calculate_college_draft));(_inst.gmls_destroy_college_draft=__yy_method(_inst,gml_Script_s_destroy_college_draft));(_inst.gmls_display_college_draft_debug=__yy_method(_inst,gml_Script_s_display_college_draft_debug));(_inst.gmls_message_college_draft_pick=__yy_method(_inst,gml_Script_s_message_college_draft_pick));(_inst.gmls_message_college_draft_notpick=__yy_method(_inst,gml_Script_s_message_college_draft_notpick));
(_inst.gmls_message_college_draft_nottrydraft_y3=__yy_method(_inst,gml_Script_s_message_college_draft_nottrydraft_y3));(_inst.gmls_message_college_draft_early_y3=__yy_method(_inst,gml_Script_s_message_college_draft_early_y3));(_inst.gmls_message_college_draft_pick_continue=__yy_method(_inst,gml_Script_s_message_college_draft_pick_continue));(_inst.gmls_message_college_earyly_yes=__yy_method(_inst,gml_Script_s_message_college_earyly_yes));(_inst.gmls_message_college_earyly_no=__yy_method(_inst,gml_Script_s_message_college_earyly_no));
(_inst.gmls_message_college_earyly_info=__yy_method(_inst,gml_Script_s_message_college_earyly_info));(_inst.gmls_college_draft_earyly_info_return=__yy_method(_inst,gml_Script_s_college_draft_earyly_info_return));(_inst.gmls_college_draft_refresh_current_attitude=__yy_method(_inst,gml_Script_s_college_draft_refresh_current_attitude));(_inst.gmls_doing_college_draft=__yy_method(_inst,gml_Script_s_doing_college_draft));(_inst.gmls_check_college_draft_start=__yy_method(_inst,gml_Script_s_check_college_draft_start));
(_inst.gmls_start_college_draft=__yy_method(_inst,gml_Script_s_start_college_draft));(_inst.gmls_draft_set_epilogue=__yy_method(_inst,gml_Script_s_draft_set_epilogue));(_inst.gmls_end_college_draft=__yy_method(_inst,gml_Script_s_end_college_draft));(_inst.gmls_end_college_draft_late_msg_clear=__yy_method(_inst,gml_Script_s_end_college_draft_late_msg_clear));(_inst.gmls_end_college_draft_late=__yy_method(_inst,gml_Script_s_end_college_draft_late));(_inst.gmlbtn_click_college_draft_next=__yy_method(_inst,
gml_Script_btn_click_college_draft_next));(_inst.gmls_college_draft_refresh=__yy_method(_inst,gml_Script_s_college_draft_refresh));(_inst.gmlbtn_click_college_draft_skip=__yy_method(_inst,gml_Script_btn_click_college_draft_skip));(_inst.gmlcollege_draft_do_skip=__yy_method(_inst,gml_Script_college_draft_do_skip));(_inst.gmls_college_draft_player_pick=__yy_method(_inst,gml_Script_s_college_draft_player_pick));(_inst.gmls_display_college_draft_roster=__yy_method(_inst,gml_Script_s_display_college_draft_roster));
(_inst.gmls_card_layout_pos=__yy_method(_inst,gml_Script_s_card_layout_pos));(_inst.gmls_load_pro_teams=__yy_method(_inst,gml_Script_s_load_pro_teams));}function gml_Script_s_college_draft_ranking(_inst,_other,argument0){{var gmlpmap=argument0;var gmlgames=ds_map_find_value(gmlpmap,"season_games");var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlyards=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_yards")),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_rush_yards")),
1.35)));var gmlavg_yds=yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlgames));var gmltds=ds_map_find_value(gmlpmap,"season_touchdowns");var gmlfumbles=ds_map_find_value(gmlpmap,"season_fumbles");var gmltackles=ds_map_find_value(gmlpmap,"season_tackles");var gmlints=ds_map_find_value(gmlpmap,"season_int");var gmlsacks=ds_map_find_value(gmlpmap,"season_sacks");var gmlatts=ds_map_find_value(gmlpmap,"season_attempts");var gmlcomp=ds_map_find_value(gmlpmap,"season_complete");var gmlcomp_prc=0;if(yyfgreater(gmlatts,
0)){gmlcomp_prc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlcomp),__yy_gml_errCheck(gmlatts))),100);};var gmlrating=0;var gmlyard_target=1;var ___sw74___=gmlpos;var ___swc75___=-1;if(yyCompareVal(___sw74___,1,g_GMLMathEpsilon,false)==0){___swc75___=0;}else if(yyCompareVal(___sw74___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw74___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw74___,4,g_GMLMathEpsilon,false)==0){___swc75___=1;}else if(yyCompareVal(___sw74___,5,g_GMLMathEpsilon,false)==0){
___swc75___=2;}else if(yyCompareVal(___sw74___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw74___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw74___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw74___,9,g_GMLMathEpsilon,false)==0){___swc75___=3;}else if(yyCompareVal(___sw74___,10,g_GMLMathEpsilon,false)==0){___swc75___=4;}switch(___swc75___){case 0:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),3300)),100),1,150);gmlrating=yyfplus(gmlrating,gmltds);gmlrating=yyfminus(gmlrating,
gmlints);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),0.5));gmlrating=round(gmlrating);break;}case 1:{if(yyfequal(gmlpos,2)){gmlyard_target=1750;};if(yyfequal(gmlpos,3)){gmlyard_target=1350;};if(yyfequal(gmlpos,4)){gmlyard_target=2100;};gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlyard_target))),100),1,150);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),5));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmltds),
1.25));gmlrating=round(gmlrating);break;}case 2:{gmlrating=gmltackles;break;}case 3:{gmlrating=yyftime(__yy_gml_errCheck(gmltackles),0.5);gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlints),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),3));gmlrating=round(gmlrating);break;}case 4:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),4000)),100),1,100);gmlrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlrating),
__yy_gml_errCheck(gmlcomp_prc))),2);gmlrating=round(gmlrating);break;}};return gmlrating;}}function gml_Script_s_college_draft_team_ranking(_inst,_other){{return irandom_range(1,25);}}function gml_Script_s_college_draft_team_pick(_inst,_other,argument0,argument1){{var gmlts=ds_list_size(argument1);return ds_list_find_value(argument1,irandom(yyfminus(__yy_gml_errCheck(gmlts),1)));}}function gml_Script_s_calculate_college_draft(_inst,_other){{var gmlproTeams=gml_Script_s_load_pro_teams(_inst,_other);yyInst(_inst,
_other,97).gmlcollege_draft=ds_list_create();{var __yy__v99=GetWithArray(97);for(var __yy__v100 in __yy__v99){if(!__yy__v99.hasOwnProperty(__yy__v100))continue;var __yy__v101=__yy__v99[__yy__v100];{var gmltR=gml_Script_s_college_draft_team_ranking(__yy__v101,_inst);var gmlsz=ds_list_size(__yy__v101.gmlroster);var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v101.gmlroster,gmli);
var gmlyear=yyfplus(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v101,_inst))),1);if(yyfless(gmlyear,3)){{};}else {{var gmlimap=ds_list_create();var gmls=yyfplus("",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname"))));ds_map_set(gmlimap,"index",gmli);ds_map_set(gmlimap,"year",gmlyear);gmls=yyfplus(gmls,yyfplus(" Y",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"year")))));ds_map_set(gmlimap,"rating",gml_Script_s_college_draft_ranking(__yy__v101,
_inst,gmlpmap));gmls=yyfplus(gmls,yyfplus(yyfplus(" Rating[",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"rating")))),"]"));ds_map_set(gmlimap,"skills",yyftime(__yy_gml_errCheck(gml_Script_s_get_player_rating(__yy__v101,_inst,gmlpmap)),4));gmls=yyfplus(gmls,yyfplus(yyfplus(" Skills[",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"skills")))),"]"));ds_map_set(gmlimap,"team_ranking",gmltR);gmls=yyfplus(gmls,yyfplus(yyfplus(" T.Rank[",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"team_ranking")))),
"]"));var gmldraftScore=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlimap,"rating")),__yy_gml_errCheck(ds_map_find_value(gmlimap,"skills"))),__yy_gml_errCheck(ds_map_find_value(gmlimap,"team_ranking")));ds_map_set(gmlimap,"draft_score",gmldraftScore);gmls=yyfplus(gmls,yyfplus(yyfplus(" DraftScore[",__yy_gml_errCheck(string(gmldraftScore))),"]"));var gmlpickRound=(-1);var gmlpickLabel=gml_Script_s_str(__yy__v101,_inst,"ui_co_Draft_NotPicked");ds_map_set(gmlimap,"pick_r1_rand",(-1));ds_map_set(gmlimap,
"pick_r2_rand",(-1));ds_map_set(gmlimap,"pick_r3_rand",(-1));ds_map_set(gmlimap,"credits",1);ds_map_set(gmlimap,"reveal_attitude",ds_map_find_value(gmlpmap,"attitude"));if(yyfless(gmlpickRound,0)){{var gmlrRand=irandom_range(100,200);ds_map_set(gmlimap,"pick_r1_rand",gmlrRand);if(yyfless(gmlrRand,gmldraftScore)){{gmlpickRound=1;gmlpickLabel=gml_Script_s_str(__yy__v101,_inst,"ui_co_Draft_R1");ds_map_set(gmlimap,"credits",30);ds_map_set(gmlimap,"reveal_attitude",90);if(yyfequal(gmlyear,3)){{ds_map_set(gmlimap,
"credits",60);gmlrRand=irandom_range(100,200);ds_map_set(gmlimap,"pick_r2_rand",gmlrRand);if(yyfless(gmlrRand,gmldraftScore)){{gmlpickRound=2;gmlpickLabel=gml_Script_s_str(__yy__v101,_inst,"ui_co_Draft_R2");ds_map_set(gmlimap,"credits",40);ds_map_set(gmlimap,"reveal_attitude",75);};};};};};};};};if((yyGetBool(yyfless(gmlpickRound,0)))&&(yyGetBool(yyfequal(gmlyear,4)))){{var gmlrRand=irandom_range(60,120);ds_map_set(gmlimap,"pick_r2_rand",gmlrRand);if(yyfless(gmlrRand,gmldraftScore)){{gmlpickRound=2;
gmlpickLabel=gml_Script_s_str(__yy__v101,_inst,"ui_co_Draft_R2");ds_map_set(gmlimap,"credits",20);ds_map_set(gmlimap,"reveal_attitude",75);};};};};if((yyGetBool(yyfless(gmlpickRound,0)))&&(yyGetBool(yyfequal(gmlyear,4)))){{var gmlrRand=irandom_range(4,100);ds_map_set(gmlimap,"pick_r3_rand",gmlrRand);if(yyfless(gmlrRand,gmldraftScore)){{gmlpickRound=3;gmlpickLabel=gml_Script_s_str(__yy__v101,_inst,"ui_co_Draft_R3");ds_map_set(gmlimap,"credits",10);ds_map_set(gmlimap,"reveal_attitude",75);};};};};if((yyGetBool(yyfless(gmlpickRound,
0)))&&(yyGetBool(yyfequal(gmlyear,4)))){{gmlpickRound=4;gmlpickLabel=gml_Script_s_str(__yy__v101,_inst,"ui_co_Draft_Graduate");ds_map_set(gmlimap,"credits",1);ds_map_set(gmlimap,"reveal_attitude",45);};};if((yyGetBool(yyfless(gmlpickRound,0)))&&(yyGetBool(yyfequal(gmlyear,3)))){{gmlpickLabel=gml_Script_s_str(__yy__v101,_inst,"ui_co_Draft_SrYear");ds_map_set(gmlimap,"credits",0);};};if((yyGetBool(yyfgreater(gmlpickRound,0)))&&(yyGetBool(yyfless(gmlpickRound,4)))){{var gmlteam=gml_Script_s_college_draft_team_pick(__yy__v101,
_inst,gmlpmap,gmlproTeams);ds_map_set(gmlimap,"team_pick",gmlteam);gmlpickLabel=yyfplus(gmlpickLabel,yyfplus(" - ",__yy_gml_errCheck(string(ds_map_find_value(gmlteam,"tla")))));};};ds_map_set(gmlimap,"pick_round",gmlpickRound);ds_map_set(gmlimap,"pick_label",gmlpickLabel);gmls=yyfplus(gmls,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("\n Pick: ",__yy_gml_errCheck(string(gmlpickLabel)))," | Chances (vs "),__yy_gml_errCheck(string(gmldraftScore))),"): R1["),__yy_gml_errCheck(string(ds_map_find_value(gmlimap,
"pick_r1_rand")))),"] R2["),__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"pick_r2_rand")))),"] R3["),__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"pick_r3_rand")))),"]"));ds_map_set(gmlimap,"debug_line",gmls);ds_list_add(__yy__v101.gmlcollege_draft,gmlimap);gml_Script_s_draft_set_epilogue(__yy__v101,_inst,gmlimap,gmlpmap);};};}};}}};ds_list_destroy(gmlproTeams);}}function gml_Script_s_destroy_college_draft(_inst,_other){{var gmlsz=ds_list_size(yyInst(_inst,_other,97).gmlcollege_draft);
var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_list_destroy(ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmli));}};ds_list_destroy(yyInst(_inst,_other,97).gmlcollege_draft);yyInst(_inst,_other,97).gmlcollege_draft=(-4);}}function gml_Script____struct___21_s_display_college_draft_debug_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___21_s_display_college_draft_debug_gml_GlobalScript_s_college_draft";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___21_s_display_college_draft_debug_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_display_college_draft_debug(_inst,_other){{var gmltxt_test=gml_Script_s_create_label(_inst,_other,10,10,"COLLEGE DRAFT - DEBUG STATS");yyInst(_inst,
_other,gmltxt_test).gmlhalign=0;var gmltx=10;var gmlty=30;{var __yy__v102=GetWithArray(97);for(var __yy__v103 in __yy__v102){if(!__yy__v102.hasOwnProperty(__yy__v103))continue;var __yy__v104=__yy__v102[__yy__v103];{var gmlsz=ds_list_size(__yy__v104.gmlcollege_draft);var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlimap=ds_list_find_value(__yy__v104.gmlcollege_draft,gmli);var gmlp_txt=gml_Script_s_create_label(__yy__v104,
_inst,gmltx,gmlty,yyfplus("",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"debug_line")))));yyInst(_inst,_other,gmlp_txt).gmlhalign=0;gmlty=yyfplus(gmlty,30);}};}}};instance_create_layer(376,224,"Instances",34,__yy_gml_object_create(_inst,(_inst.gml___struct___21=__yy_method(_inst,gml_Script____struct___21_s_display_college_draft_debug_gml_GlobalScript_s_college_draft)),gml_Script_s_str(_inst,_other,"ui_next"),kgml_Script_btn_click_college_draft_next));}}function gml_Script_s_message_college_draft_pick(_inst,
_other,argument0){{var gmlpick_i=argument0;gml_Script_slog(_inst,_other,yyfplus("btn_click_college_draft_next pick_i:",__yy_gml_errCheck(string(gmlpick_i))));var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,ds_map_find_value(gmlimap,"index"));var gmlteam=ds_map_find_value(gmlimap,"team_pick");var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_co_draft_pick"),"$playername",ds_map_find_value(gmlpmap,
"lname"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$round",string(ds_map_find_value(gmlimap,"pick_round")));gmlmsg=string_replace(gmlmsg,"$team",ds_map_find_value(gmlteam,"name"));gmlmsg=string_replace(gmlmsg,"$reccred",string(ds_map_find_value(gmlimap,"credits")));gml_Script_s_create_message(_inst,_other,string(ds_map_find_value(gmlpmap,"lname")),gmlmsg,gml_Script_s_str(_inst,_other,
"ui_Continue"),"",kgml_Script_s_message_college_draft_pick_continue,"",global.gmlc_background,1);}}function gml_Script_s_message_college_draft_notpick(_inst,_other,argument0){{var gmlpick_i=argument0;gml_Script_slog(_inst,_other,yyfplus("btn_click_college_draft_next pick_i:",__yy_gml_errCheck(string(gmlpick_i))));var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,ds_map_find_value(gmlimap,"index"));var gmlmsg=string_replace(gml_Script_s_str(_inst,
_other,"msg_co_draft_notpick"),"$playername",ds_map_find_value(gmlpmap,"lname"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$reccred",string(ds_map_find_value(gmlimap,"credits")));gmlmsg=yyfplus(gmlmsg,yyfplus("\n",__yy_gml_errCheck(gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_epilogue_story_to_str(_inst,_other,ds_map_find_value(gmlimap,"epilogue")),gmlpmap))));gml_Script_s_create_message(_inst,
_other,string(ds_map_find_value(gmlpmap,"lname")),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_message_college_draft_pick_continue,"",global.gmlc_background,1);}}function gml_Script_s_message_college_draft_nottrydraft_y3(_inst,_other,argument0){{var gmlpick_i=argument0;gml_Script_slog(_inst,_other,yyfplus("btn_click_college_draft_next pick_i:",__yy_gml_errCheck(string(gmlpick_i))));var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,
_other,97).gmlroster,ds_map_find_value(gmlimap,"index"));var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_co_draft_nottrydraft_y3"),"$playername",ds_map_find_value(gmlpmap,"lname"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(_inst,_other,yyInst(_inst,_other,97).gmlmyteam_id));gml_Script_s_create_message(_inst,_other,string(ds_map_find_value(gmlpmap,
"lname")),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_message_college_draft_pick_continue,"",global.gmlc_background,1);}}function gml_Script_s_message_college_draft_early_y3(_inst,_other,argument0){{var gmlpick_i=argument0;gml_Script_slog(_inst,_other,yyfplus("btn_click_college_draft_next pick_i:",__yy_gml_errCheck(string(gmlpick_i))));var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,
ds_map_find_value(gmlimap,"index"));var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_co_draft_early_y3"),"$playername",ds_map_find_value(gmlpmap,"lname"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));gml_Script_s_create_message3(_inst,_other,string(ds_map_find_value(gmlpmap,"lname")),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Info"),gml_Script_s_str(_inst,_other,"ui_Yes"),gml_Script_s_str(_inst,_other,"ui_No"),
kgml_Script_s_message_college_earyly_info,kgml_Script_s_message_college_earyly_yes,kgml_Script_s_message_college_earyly_no,global.gmlc_background,1);}}function gml_Script_s_message_college_draft_pick_continue(_inst,_other){{gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);gml_Script_s_college_draft_refresh(_inst,_other);gml_Script_s_msg_clear(_inst,_other);}}function gml_Script_s_message_college_earyly_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyGetBool(yyInst(_inst,
_other,97).gmlcollege_draft_skip)){{gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlcollege_draft_stage,yyInst(_inst,_other,97).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,97).gmlcollege_draft_stage),g_yyPrePostObject__);gml_Script_college_draft_do_skip(_inst,_other);};}else {{gml_Script_s_message_college_draft_pick(_inst,_other,gml_Script_s_college_draft_player_pick(_inst,
_other));};};}}function gml_Script_s_message_college_earyly_no(_inst,_other){{var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);ds_map_set(gmlimap,"pick_round",(-1));ds_map_set(gmlimap,"pick_label",gml_Script_s_str(_inst,_other,"ui_co_Draft_SrYear"));ds_map_set(gmlimap,"credits",0);ds_map_set(gmlimap,"reveal_attitude",gml_Script_s_attitude_reduce_step(_inst,_other,ds_map_find_value(gmlimap,"reveal_attitude")));
ds_map_set(gmlimap,"reveal_attitude",gml_Script_s_attitude_reduce_step(_inst,_other,ds_map_find_value(gmlimap,"reveal_attitude")));if(yyGetBool(yyInst(_inst,_other,97).gmlcollege_draft_skip)){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlcollege_draft_stage,yyInst(_inst,_other,97).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlcollege_draft_stage.add(1):++yyInst(_inst,
_other,97).gmlcollege_draft_stage),g_yyPrePostObject__);gml_Script_college_draft_do_skip(_inst,_other);};}else {{gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);gml_Script_s_college_draft_refresh(_inst,_other);gml_Script_s_msg_clear(_inst,_other);};};}}function gml_Script_s_message_college_earyly_info(_inst,_other){{var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,
_other,97).gmlroster,ds_map_find_value(gmlimap,"index"));yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;yyInst(_inst,_other,97).gmlprofile_back_to=3;room_goto(22);}}function gml_Script_s_college_draft_earyly_info_return(_inst,_other){{room_goto(45);yyInst(_inst,_other,97).gmlcollege_draft_queueY3Msg=1;}}function gml_Script_s_college_draft_refresh_current_attitude(_inst,_other){{var gmlsz=ds_list_size(yyInst(_inst,_other,97).gmlcollege_draft);var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,
_other);if((yyGetBool(yyfless(gmlpick_i,0)))||(yyGetBool(yyfgreaterequal(gmlpick_i,gmlsz)))){{return;};};var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,ds_map_find_value(gmlimap,"index"));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("New attitude: [",__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(gmlpmap,"attitude")))),"] -> ["),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,
_other,ds_map_find_value(gmlimap,"reveal_attitude")))),"]"));ds_map_set(gmlpmap,"attitude",ds_map_find_value(gmlimap,"reveal_attitude"));}}function gml_Script_s_doing_college_draft(_inst,_other){{if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(variable_instance_exists(97,"college_draft")))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,97).gmlcollege_draft,(-4))))){return true;};return false;}}function gml_Script_s_check_college_draft_start(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,
_other))){{return false;};};return yyfequal(yyInst(_inst,_other,97).gmlcollege_draft_stage,(-1));}}function gml_Script_s_start_college_draft(_inst,_other){{room_goto(45);yyInst(_inst,_other,97).gmlcollege_draft_stage=(-1);yyInst(_inst,_other,97).gmlcollege_draft_skip=0;yyInst(_inst,_other,97).gmlcollege_draft_queueY3Msg=0;gml_Script_s_calculate_college_draft(_inst,_other);}}function gml_Script_s_draft_set_epilogue(_inst,_other,argument0,argument1){{var gmlepilogue_tag="epi_graduated";var gmlreason="graduated";
if(yyfless(ds_map_find_value(argument0,"pick_round"),4)){{gmlreason="drafted";gmlepilogue_tag=yyfplus("epi_draftR",__yy_gml_errCheck(string(ds_map_find_value(argument0,"pick_round"))));if(yyfequal(ds_map_find_value(argument0,"year"),3)){{gmlepilogue_tag=yyfplus(gmlepilogue_tag,"Junior");};}else {{gmlepilogue_tag=yyfplus(gmlepilogue_tag,"Senior");};};};};ds_map_set(argument0,"epilogue",gml_Script_s_pick_epilogue_story(_inst,_other,gmlepilogue_tag));ds_map_set(argument0,"reason",gmlreason);ds_map_set(argument1,
"class_of",yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlyear)));}}function gml_Script_s_end_college_draft(_inst,_other){{var gmlshowMsg=false;var gmlsz=ds_list_size(yyInst(_inst,_other,97).gmlcollege_draft);var gmltotCred=0;var gmlr=0;for(;yyfless(gmlr,gmlsz);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,
gmlr);gmltotCred=yyfplus(gmltotCred,ds_map_find_value(gmlimap,"credits"));}};if(yyfequal(gml_Script_can_fit_recruitment_credits(_inst,_other,gmltotCred),false)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CollegeProDraftRC_NoSpace");var gmlrc_space=gml_Script_recruitment_credits_space(_inst,_other);gmlmsg=string_replace(gmlmsg,"$maxNum",gmltotCred);gmlmsg=string_replace(gmlmsg,"$num",gmlrc_space);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",
kgml_Script_s_end_college_draft_late_msg_clear,"",global.gmlc_background,1);gmlshowMsg=true;};};gml_Script_recruitment_credits_add(_inst,_other,gmltotCred);return gmlshowMsg;}}function gml_Script_s_end_college_draft_late_msg_clear(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_end_college_draft_late(_inst,_other);}}function gml_Script_s_end_college_draft_late(_inst,_other){{var gmlsz=ds_list_size(yyInst(_inst,_other,97).gmlcollege_draft);var gmlr=yyfminus(__yy_gml_errCheck(gmlsz),1);
for(;yyfgreaterequal(gmlr,0);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.subtract(1):--gmlr),g_yyPrePostObject__)){{var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlr);if(yyfgreater(ds_map_find_value(gmlimap,"pick_round"),0)){{var gmldel_index=ds_map_find_value(gmlimap,"index");var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,ds_map_find_value(gmlimap,"index"));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("DELETING PLAYER @[",
__yy_gml_errCheck(string(gmldel_index))),"]: "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname")))));ds_map_set(gmlpmap,"class_of",yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlyear)));if(yyfless(ds_map_find_value(gmlimap,"pick_round"),4)){{};};var gmldel=gml_Script_s_remove_player(_inst,_other,gmlpmap,ds_map_find_value(gmlimap,"reason"),ds_map_find_value(gmlimap,"epilogue"));if((yyGetBool(yyfequal(gmldel,false)))&&(yyGetBool(yyfnotequal(gmlpmap,
(-4))))){{if(yyfless(ds_map_find_value(gmlimap,"pick_round"),4)){{var gmlteam=ds_map_find_value(gmlimap,"team_pick");ds_map_set(gmlpmap,"uniform_record",gml_Script_s_extract_uniform_cols_to_record(_inst,_other,ds_map_find_value(gmlteam,"uid"),"uniforms_default.txt",true));ds_map_set(gmlpmap,"drafted_pro_team",ds_map_find_value(gmlteam,"uid"));};};};};};};}};gml_Script_s_destroy_college_draft(_inst,_other);yyInst(_inst,_other,97).gmlcollege_draft_stage=99;if(yyfgreater(gml_Script_s_count_joboffers(_inst,
_other),0)){{room_goto(3);return;};};gml_Script_s_start_new_season(_inst,_other,false);gml_Script_s_play(_inst,_other,0);return;}}function gml_Script_btn_click_college_draft_next(_inst,_other){{var gmld_count=ds_list_size(yyInst(_inst,_other,97).gmlcollege_draft);if(yyfgreaterequal(yyInst(_inst,_other,97).gmlcollege_draft_stage,gmld_count)){{var gmlshowMsg=gml_Script_s_end_college_draft(_inst,_other);if(yyfequal(gmlshowMsg,false)){{gml_Script_s_end_college_draft_late(_inst,_other);};};return;};};(g_yyPrePostObject__=yyInst(_inst,
_other,97).gmlcollege_draft_stage,yyInst(_inst,_other,97).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,97).gmlcollege_draft_stage),g_yyPrePostObject__);var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);if((yyGetBool(yyfgreaterequal(gmlpick_i,0)))&&(yyGetBool(yyfless(gmlpick_i,gmld_count)))){{var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);var gmlpick_round=ds_map_find_value(gmlimap,
"pick_round");if((yyGetBool(yyfgreater(gmlpick_round,0)))&&(yyGetBool(yyfless(gmlpick_round,4)))){{if(yyfequal(ds_map_find_value(gmlimap,"year"),3)){{gml_Script_s_message_college_draft_early_y3(_inst,_other,gmlpick_i);};}else {{gml_Script_s_message_college_draft_pick(_inst,_other,gmlpick_i);};};};}else {{if(yyfequal(ds_map_find_value(gmlimap,"year"),3)){{gml_Script_s_message_college_draft_nottrydraft_y3(_inst,_other,gmlpick_i);};}else {{gml_Script_s_message_college_draft_notpick(_inst,_other,gmlpick_i);
};};};};};};if(yyfequal(yyInst(_inst,_other,97).gmlcollege_draft_stage,0)){{gml_Script_s_college_draft_refresh(_inst,_other);};};}}function gml_Script_s_college_draft_refresh(_inst,_other){{if(yyfequal(yyInst(_inst,_other,97).gmlcollege_draft_stage,(-1))){{gml_Script_s_display_college_draft_debug(_inst,_other);};}else {{gml_Script_s_display_college_draft_roster(_inst,_other);};};}}function gml_Script_btn_click_college_draft_skip(_inst,_other){{var gmld_count=ds_list_size(yyInst(_inst,_other,97).gmlcollege_draft);
if(yyfequal(yyInst(_inst,_other,97).gmlcollege_draft_stage,gmld_count)){{return;};};yyInst(_inst,_other,97).gmlcollege_draft_skip=1;(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlcollege_draft_stage,yyInst(_inst,_other,97).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,97).gmlcollege_draft_stage),g_yyPrePostObject__);gml_Script_college_draft_do_skip(_inst,_other);}}function gml_Script_college_draft_do_skip(_inst,
_other){{var gmld_count=ds_list_size(yyInst(_inst,_other,97).gmlcollege_draft);var gmli=gml_Script_s_college_draft_player_pick(_inst,_other);for(;yyfless(gmli,gmld_count);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlpick_i);var gmlpick_round=ds_map_find_value(gmlimap,"pick_round");if((yyGetBool(yyfgreater(gmlpick_round,
0)))&&(yyGetBool(yyfless(gmlpick_round,4)))){{if(yyfequal(ds_map_find_value(gmlimap,"year"),3)){{gml_Script_s_message_college_draft_early_y3(_inst,_other,gmlpick_i);return;};};};};gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlcollege_draft_stage,yyInst(_inst,_other,97).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,97).gmlcollege_draft_stage),
g_yyPrePostObject__);}};gml_Script_s_display_college_draft_roster(_inst,_other);}}function gml_Script_s_college_draft_player_pick(_inst,_other){{return yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlcollege_draft_stage),1);}}function gml_Script____struct___22_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___22_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,
gml_Script____struct___22_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltitle="";}}}}function gml_Script____struct___23_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___23_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,
gml_Script____struct___23_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___24_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___24_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___24_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___25_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___25_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___25_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_display_college_draft_roster(_inst,_other){{gml_Script_slog2(_inst,_other,"s_display_college_draft_roster");{var __yy__v105=GetWithArray(49);
for(var __yy__v106 in __yy__v105){if(!__yy__v105.hasOwnProperty(__yy__v106))continue;var __yy__v107=__yy__v105[__yy__v106];instance_destroy(__yy__v107);}};{var __yy__v108=GetWithArray(74);for(var __yy__v109 in __yy__v108){if(!__yy__v108.hasOwnProperty(__yy__v109))continue;var __yy__v110=__yy__v108[__yy__v109];instance_destroy(__yy__v110);}};{var __yy__v111=GetWithArray(68);for(var __yy__v112 in __yy__v111){if(!__yy__v111.hasOwnProperty(__yy__v112))continue;var __yy__v113=__yy__v111[__yy__v112];instance_destroy(__yy__v113);
}};{var __yy__v114=GetWithArray(34);for(var __yy__v115 in __yy__v114){if(!__yy__v114.hasOwnProperty(__yy__v115))continue;var __yy__v116=__yy__v114[__yy__v115];instance_destroy(__yy__v116);}};var gmltitleTxt=gml_Script_s_create_label(_inst,_other,240,10,"Draft-Eligible Players");yyInst(_inst,_other,gmltitleTxt).gmlfont=global.gmlfnt_flex;var gmlsz=ds_list_size(yyInst(_inst,_other,97).gmlcollege_draft);var gmlcount=0;var gmltotCred=0;var gmlr=0;for(;yyfless(gmlr,gmlsz);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),
g_yyPrePostObject__)){{var gmlimap=ds_list_find_value(yyInst(_inst,_other,97).gmlcollege_draft,gmlr);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,ds_map_find_value(gmlimap,"index"));if(yyfless(ds_map_find_value(gmlimap,"year"),3)){{continue;};};var gmlpos=gml_Script_s_card_layout_pos(_inst,_other,gmlsz,gmlr);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(gmlcount)]=instance_create_layer(yyInst(_inst,_other,gmlpos).x,
yyInst(_inst,_other,gmlpos).y,"Instances",49);yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmlcount,_inst.gmlprofile)]).gmlpmap=gmlpmap;var gmlstr="?";if(yyfless(gmlcount,yyInst(_inst,_other,97).gmlcollege_draft_stage)){{gmlstr=yyfplus("",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"pick_label"))));gmltotCred=yyfplus(gmltotCred,ds_map_find_value(gmlimap,"credits"));};};var gmllabel=gml_Script_s_create_label(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlpos).x),
35),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlpos).y),85),string(gmlstr));yyInst(_inst,_other,gmllabel).gmlhalign=1;(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);}};instance_create_layer(296,224,"Instances",68,__yy_gml_object_create(_inst,(_inst.gml___struct___22=__yy_method(_inst,gml_Script____struct___22_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),string(gmltotCred)));if(yyfgreaterequal(yyInst(_inst,
_other,97).gmlcollege_draft_stage,gmlsz)){{instance_create_layer(376,224,"Instances",34,__yy_gml_object_create(_inst,(_inst.gml___struct___23=__yy_method(_inst,gml_Script____struct___23_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),gml_Script_s_str(_inst,_other,"ui_Continue"),kgml_Script_btn_click_college_draft_next));};}else {{instance_create_layer(376,224,"Instances",34,__yy_gml_object_create(_inst,(_inst.gml___struct___24=__yy_method(_inst,gml_Script____struct___24_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),
gml_Script_s_str(_inst,_other,"ui_next"),kgml_Script_btn_click_college_draft_next));instance_create_layer(8,224,"Instances",34,__yy_gml_object_create(_inst,(_inst.gml___struct___25=__yy_method(_inst,gml_Script____struct___25_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),gml_Script_s_str(_inst,_other,"ui_Skip"),kgml_Script_btn_click_college_draft_skip));};};if(yyGetBool(yyInst(_inst,_other,97).gmlcollege_draft_queueY3Msg)){{yyInst(_inst,_other,97).gmlcollege_draft_queueY3Msg=0;
var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);gml_Script_s_message_college_draft_early_y3(_inst,_other,gmlpick_i);};};}}function gml_Script____struct___26_s_card_layout_pos_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___26_s_card_layout_pos_gml_GlobalScript_s_college_draft";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___26_s_card_layout_pos_gml_GlobalScript_s_college_draft.prototype);
{_inst.x=1;_inst.y=2;}}}function gml_Script_s_card_layout_pos(_inst,_other,argument0,argument1){{var gmlpos=__yy_gml_object_create(_inst,(_inst.gml___struct___26=__yy_method(_inst,gml_Script____struct___26_s_card_layout_pos_gml_GlobalScript_s_college_draft)));var gmlsw=480;var gmlsh=270;var gmlcw=64;var gmlch=80;var gmlcw2=yyfdivide(__yy_gml_errCheck(gmlcw),2);var gmlch2=yyfdivide(__yy_gml_errCheck(gmlch),2);var gmllp=18;var gmltp=24;var gmlgap=12;var gmlyjump=100;var gmlcardsT=0;var gmlcardsB=0;if(yyflessequal(argument0,
3)){{gmlcardsT=argument0;};}else {{gmlcardsB=yyfdivide(__yy_gml_errCheck(argument0),2);gmlcardsT=yyfminus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(gmlcardsB));};};var gmlrow=0;var gmlrowIndex=0;var gmlcardsR=0;if(yyfless(argument1,gmlcardsT)){{gmlcardsR=gmlcardsT;gmlrowIndex=argument1;gmlrow=0;};}else {{gmlcardsR=gmlcardsB;gmlrowIndex=yyfminus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(gmlcardsT));gmlrow=1;};};var gmlrowW=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlcardsR),__yy_gml_errCheck(gmlcw))),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlcardsR),1)),__yy_gml_errCheck(gmlgap))));var gmlstartX=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsw),__yy_gml_errCheck(gmlrowW))),2)),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmllp),2)));yyInst(_inst,_other,gmlpos).x=yyfplus(yyfplus(__yy_gml_errCheck(gmlstartX),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrowIndex),__yy_gml_errCheck(gmlcw)))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlrowIndex),
1)),__yy_gml_errCheck(gmlgap))));yyInst(_inst,_other,gmlpos).y=yyfplus(__yy_gml_errCheck(gmltp),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrow),__yy_gml_errCheck(gmlyjump))));if(yyflessequal(argument0,3)){{yyInst(_inst,_other,gmlpos).y=yyfplus(yyInst(_inst,_other,gmlpos).y,gmlch2);};};return gmlpos;}}function gml_Script_s_load_pro_teams(_inst,_other){{gml_Script_slog(_inst,_other,"s_load_pro_teams");var gmllist=ds_list_create();var gmlfile=file_text_open_read("ProTeams_CO.txt");var gmlkeys=gml_Script_s_split_string(_inst,
_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,
gmlvalues)]);}};ds_list_add(gmllist,gmlmap);}};file_text_close(gmlfile);return gmllist;}}function gml_GlobalScript_s_check_ingame_control_change(_inst,_other){(_inst.gmls_check_ingame_control_change=__yy_method(_inst,gml_Script_s_check_ingame_control_change));}function gml_Script_s_check_ingame_control_change(_inst,_other){{if((yyGetBool(global.gmlconsole_build))&&(yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,32779)))&&(yyGetBool(global.gmlmaster_ball))&&(yyGetBool(yyfequal(yyInst(_inst,
_other,global.gmlmaster_ball).gmlstate,0)))){{{var __yy__v117=GetWithArray(97);for(var __yy__v118 in __yy__v117){if(!__yy__v117.hasOwnProperty(__yy__v118))continue;var __yy__v119=__yy__v117[__yy__v118];{ds_map_set(__yy__v119.gmlmap_options,"op_invert_throw",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v119.gmlmap_options,"op_invert_throw")),1));if(yyfgreater(ds_map_find_value(__yy__v119.gmlmap_options,"op_invert_throw"),3)){ds_map_set(__yy__v119.gmlmap_options,"op_invert_throw",0);};var ___sw78___=ds_map_find_value(__yy__v119.gmlmap_options,
"op_invert_throw");var ___swc79___=-1;if(yyCompareVal(___sw78___,0,g_GMLMathEpsilon,false)==0){___swc79___=0;}else if(yyCompareVal(___sw78___,1,g_GMLMathEpsilon,false)==0){___swc79___=1;}else if(yyCompareVal(___sw78___,2,g_GMLMathEpsilon,false)==0){___swc79___=2;}else if(yyCompareVal(___sw78___,3,g_GMLMathEpsilon,false)==0){___swc79___=3;}switch(___swc79___){case 0:{{var __yy__v120=GetWithArray(110);for(var __yy__v121 in __yy__v120){if(!__yy__v120.hasOwnProperty(__yy__v121))continue;var __yy__v122=__yy__v120[__yy__v121];
gml_Script_s_fieldtxt(__yy__v122,__yy__v119,gml_Script_s_str(__yy__v122,__yy__v119,"ui_Normal"));}};break;}case 1:{{var __yy__v123=GetWithArray(110);for(var __yy__v124 in __yy__v123){if(!__yy__v123.hasOwnProperty(__yy__v124))continue;var __yy__v125=__yy__v123[__yy__v124];gml_Script_s_fieldtxt(__yy__v125,__yy__v119,gml_Script_s_str(__yy__v125,__yy__v119,"ui_Inverted"));}};break;}case 2:{{var __yy__v126=GetWithArray(110);for(var __yy__v127 in __yy__v126){if(!__yy__v126.hasOwnProperty(__yy__v127))continue;var __yy__v128=__yy__v126[__yy__v127];
gml_Script_s_fieldtxt(__yy__v128,__yy__v119,gml_Script_s_str(__yy__v128,__yy__v119,"ui_AnalogueL"));}};break;}case 3:{{var __yy__v129=GetWithArray(110);for(var __yy__v130 in __yy__v129){if(!__yy__v129.hasOwnProperty(__yy__v130))continue;var __yy__v131=__yy__v129[__yy__v130];gml_Script_s_fieldtxt(__yy__v131,__yy__v119,gml_Script_s_str(__yy__v131,__yy__v119,"ui_AnalogueR"));}};break;}};}}};};};}}function gml_GlobalScript_s_remove_player(_inst,_other){(_inst.gmls_remove_player=__yy_method(_inst,gml_Script_s_remove_player));
}function gml_Script_s_remove_player(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2="";};}{{var __yy__v132=GetWithArray(97);for(var __yy__v133 in __yy__v132){if(!__yy__v132.hasOwnProperty(__yy__v133))continue;var __yy__v134=__yy__v132[__yy__v133];{if(yyfequal(argument0,(-4))){{gml_Script_slog(__yy__v134,_inst,"s_remove_player: Invalid pmap");return true;};};if(yyfequal(ds_exists(argument0,1),false)){{gml_Script_slog(__yy__v134,_inst,"s_remove_player: pmap not a map, direct delete (old version?)");
var gmldel_index=ds_list_find_index(__yy__v134.gmlroster,argument0);if(yyfnotequal(gmldel_index,(-1))){ds_list_delete(__yy__v134.gmlroster,gmldel_index);};return true;};};if((yyGetBool(ds_map_exists(argument0,"hof")))&&(yyGetBool(yyfequal(ds_map_find_value(argument0,"hof"),true)))){{gml_Script_slog(__yy__v134,_inst,yyfplus(yyfplus(yyfplus(yyfplus("s_remove_player[",__yy_gml_errCheck(string(ds_map_find_value(argument0,"lname")))),"]: Archived in HoF. Reason["),__yy_gml_errCheck(argument1)),"]"));ds_map_set(argument0,
"team_leave_reason",argument1);ds_map_set(argument0,"uniform_record",gml_Script_s_extract_uniform_cols_to_record(__yy__v134,_inst,ds_map_find_value(argument0,"teamid"),""));if(yyfnotequal(argument2,"")){{ds_map_set(argument0,"epilogue",argument2);};};ds_map_set(argument0,"class_of",yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlyear)));ds_list_add(__yy__v134.gmlhoflist,argument0);ds_list_delete(__yy__v134.gmlroster,ds_list_find_index(__yy__v134.gmlroster,
argument0));return false;};}else {{gml_Script_slog(__yy__v134,_inst,yyfplus(yyfplus(yyfplus(yyfplus("s_remove_player[",__yy_gml_errCheck(string(ds_map_find_value(argument0,"lname")))),"]: Destroyed. Reason["),__yy_gml_errCheck(argument1)),"]"));ds_list_delete(__yy__v134.gmlroster,ds_list_find_index(__yy__v134.gmlroster,argument0));ds_map_destroy(argument0);return true;};};}}};}}function gml_GlobalScript_btn_click_BengRams(_inst,_other){(_inst.gmlbtn_click_BengRams=__yy_method(_inst,gml_Script_btn_click_BengRams));
(_inst.gmls_update_btn_bengrams=__yy_method(_inst,gml_Script_s_update_btn_bengrams));(_inst.gmls_set_ui_colours=__yy_method(_inst,gml_Script_s_set_ui_colours));}function gml_Script_btn_click_BengRams(_inst,_other){{global.gmlui_skin=yyfplus(global.gmlui_skin,1);if(yyfgreater(global.gmlui_skin,2)){global.gmlui_skin=0;};gml_Script_s_set_ui_colours(_inst,_other,global.gmlui_skin);if(yyGetBool(global.gmlpoki)){{var ___sw86___=global.gmlui_skin;var ___swc87___=-1;if(yyCompareVal(___sw86___,1,g_GMLMathEpsilon,
false)==0){___swc87___=0;}else if(yyCompareVal(___sw86___,2,g_GMLMathEpsilon,false)==0){___swc87___=1;}switch(___swc87___){case 0:{gml_Script_poki_set_team(_inst,_other,1);break;}case 1:{gml_Script_poki_set_team(_inst,_other,2);break;}default :{gml_Script_poki_set_team(_inst,_other,0);break;}};};};room_goto(14);}}function gml_Script_s_update_btn_bengrams(_inst,_other){{if(!yyGetBool(global.gmlpoki)){{yyInst(_inst,_other,100239).visible=false;return;};};gml_Script_s_set_ui_colours(_inst,_other,global.gmlui_skin);
yyInst(_inst,_other,100239).gmlimage_num=global.gmlui_skin;var ___sw88___=global.gmlui_skin;var ___swc89___=-1;if(yyCompareVal(___sw88___,0,g_GMLMathEpsilon,false)==0){___swc89___=0;}else if(yyCompareVal(___sw88___,1,g_GMLMathEpsilon,false)==0){___swc89___=1;}else if(yyCompareVal(___sw88___,2,g_GMLMathEpsilon,false)==0){___swc89___=2;}switch(___swc89___){case 0:{yyInst(_inst,_other,100239).gmlcolour=make_color_rgb(44,104,255);break;}case 1:{yyInst(_inst,_other,100239).gmlcolour=make_color_rgb(0,76,84);
break;}case 2:{yyInst(_inst,_other,100239).gmlcolour=make_color_rgb(226,24,54);break;}};}}function gml_Script_s_set_ui_colours(_inst,_other,argument0){{var ___sw90___=argument0;var ___swc91___=-1;if(yyCompareVal(___sw90___,0,g_GMLMathEpsilon,false)==0){___swc91___=0;}else if(yyCompareVal(___sw90___,1,g_GMLMathEpsilon,false)==0){___swc91___=1;}else if(yyCompareVal(___sw90___,2,g_GMLMathEpsilon,false)==0){___swc91___=2;}switch(___swc91___){case 0:{global.gmlc_background=make_color_rgb(44,104,255);global.gmlc_primary=make_color_rgb(210,
210,10);global.gmlc_backfill=make_color_rgb(0,0,0);break;}case 1:{global.gmlc_background=make_color_rgb(0,76,84);global.gmlc_primary=make_color_rgb(220,220,220);global.gmlc_backfill=make_color_rgb(0,0,0);break;}case 2:{global.gmlc_background=make_color_rgb(226,24,54);global.gmlc_primary=make_color_rgb(252,205,21);global.gmlc_backfill=make_color_rgb(0,0,0);break;}};}}function gml_GlobalScript_btn_click_OptionsAutoRun(_inst,_other){(_inst.gmlbtn_click_OptionsAutoRun=__yy_method(_inst,gml_Script_btn_click_OptionsAutoRun));
}function gml_Script_btn_click_OptionsAutoRun(_inst,_other){{yyInst(_inst,_other,97).gmlop_autorun=!yyGetBool(yyInst(_inst,_other,97).gmlop_autorun);gml_Script_s_update_options(_inst,_other);}}function gml_GlobalScript_title_scripts(_inst,_other){(_inst.gmls_title_goto=__yy_method(_inst,gml_Script_s_title_goto));(_inst.gmls_title_create=__yy_method(_inst,gml_Script_s_title_create));(_inst.gmls_title_step=__yy_method(_inst,gml_Script_s_title_step));(_inst.gmls_title_draw_gui=__yy_method(_inst,gml_Script_s_title_draw_gui));
(_inst.gmls_title_exit=__yy_method(_inst,gml_Script_s_title_exit));}function gml_Script_s_title_goto(_inst,_other){{if(yyGetBool(global.gmlshow_title)){var ___sw94___=g_pBuiltIn.get_os_type();var ___swc95___=-1;if(yyCompareVal(___sw94___,21,g_GMLMathEpsilon,false)==0){___swc95___=0;}switch(___swc95___){case 0:{global.gmlshow_title=false;room_goto(1);break;}};};}}function gml_Script_s_title_create(_inst,_other){{_inst.gmlaction_step=kgml_Script_s_title_step;_inst.gmlaction_draw_gui=kgml_Script_s_title_draw_gui;
}}function gml_Script_s_title_step(_inst,_other){{gml_Script_s_update_gamepad(_inst,_other);if((yyGetBool(global.gmlgamepad_anybutton))||(yyGetBool(mouse_check_button_released(1)))||(yyGetBool(mouse_check_button_released(2)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};gml_Script_s_title_exit(_inst,_other);};};}}function gml_Script_s_title_draw_gui(_inst,_other){{draw_sprite(_inst,243,0,0,0);if(yyfgreater(yyfmod(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
1000),500)){{draw_set_font(global.gmlfnt_small_flex);draw_set_color(16777215);draw_set_halign(1);draw_set_valign(1);gml_Script_draw_hd_text(_inst,_other,240,242,string_upper(gml_Script_s_str(_inst,_other,(yyGetBool(global.gmlmobile_device)?"ui_PressStart_mob":"ui_PressStart"))));};};}}function gml_Script_s_title_exit(_inst,_other){{room_goto(0);}}function gml_GlobalScript_s_get_achievement(_inst,_other,argument0){(_inst.gmls_get_achievement=__yy_method(_inst,gml_Script_s_get_achievement));}function gml_Script_s_get_achievement(_inst,
_other,argument0){{var gmltag=argument0;{var __yy__v135=GetWithArray(97);for(var __yy__v136 in __yy__v135){if(!__yy__v135.hasOwnProperty(__yy__v136))continue;var __yy__v137=__yy__v135[__yy__v136];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v137.gmlachievements));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlach=ds_list_find_value(__yy__v137.gmlachievements,gmli);if(yyfequal(ds_map_find_value(gmlach,"tag"),gmltag)){return gmlach;};
}};}}};return(-4);}}function gml_GlobalScript_s_count_achievement(_inst,_other){(_inst.gmls_count_achievement=__yy_method(_inst,gml_Script_s_count_achievement));}function gml_Script_s_count_achievement(_inst,_other,argument0){{{var __yy__v138=GetWithArray(97);for(var __yy__v139 in __yy__v138){if(!__yy__v138.hasOwnProperty(__yy__v139))continue;var __yy__v140=__yy__v138[__yy__v139];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v140.gmlachievements));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlach=ds_list_find_value(__yy__v140.gmlachievements,gmli);if(yyfequal(ds_map_find_value(gmlach,"tag"),argument0)){return real(ds_map_find_value(gmlach,"achieved"));};}};}}};return 0;}}function gml_GlobalScript_s_get_achievement_percentage(_inst,_other){(_inst.gmls_get_achievement_percentage=__yy_method(_inst,gml_Script_s_get_achievement_percentage));}function gml_Script_s_get_achievement_percentage(_inst,_other){{{var __yy__v141=GetWithArray(97);for(var __yy__v142 in __yy__v141){
if(!__yy__v141.hasOwnProperty(__yy__v142))continue;var __yy__v143=__yy__v141[__yy__v142];{var gmlsz=ds_list_size(__yy__v143.gmlachievements);var gmlcount=0;var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlach=ds_list_find_value(__yy__v143.gmlachievements,gmli);if(!yyGetBool(is_undefined(ds_map_find_value(gmlach,"achieved")))){{if(yyfgreater(real(ds_map_find_value(gmlach,"achieved")),0)){(g_yyPrePostObject__=gmlcount,
gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};};}};}}};return round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlcount),__yy_gml_errCheck(gmlsz))),100));}}function gml_GlobalScript_s_complete_achievement(_inst,_other){(_inst.gmls_complete_achievement=__yy_method(_inst,gml_Script_s_complete_achievement));}function gml_Script_s_complete_achievement(_inst,_other,argument0){{if(yyGetBool(global.gmlexhibition)){return;};var gmlach=gml_Script_s_get_achievement(_inst,
_other,argument0);if(!yyGetBool(ds_exists(gmlach,1))){return;};{var __yy__v144=GetWithArray(104);for(var __yy__v145 in __yy__v144){if(!__yy__v144.hasOwnProperty(__yy__v145))continue;var __yy__v146=__yy__v144[__yy__v145];if((yyGetBool(yyfnotequal(__yy__v146.gmlcomm_stage,31)))&&(yyGetBool(gml_Script_s_simming_action(__yy__v146,_inst)))){return;};}};if(!yyGetBool(is_undefined(ds_map_find_value(gmlach,"achieved")))){{var gmlcount=real(ds_map_find_value(gmlach,"achieved"));if(yyfequal(gmlcount,0)){{gml_Script_s_notification(_inst,
_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Achievement")),"!"),ds_map_find_value(gmlach,"description"));};};ds_map_set(gmlach,"achieved",yyfplus(__yy_gml_errCheck(gmlcount),1));};};}}function gml_GlobalScript_s_sort_retrobowl_list(_inst,_other,argument0){(_inst.gmls_sort_retrobowl_list=__yy_method(_inst,gml_Script_s_sort_retrobowl_list));}function gml_Script_s_sort_retrobowl_list(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_sort_retrobowl_list");var gmlplist=argument0;
var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(gmlplist),0)){{var gmlbest=(-4);var gmlbestcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(gmlplist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlplist,gmli);var gmlcount=real(ds_map_find_value(gmlpmap,"count"));if((yyGetBool(!yyGetBool(gmlbest)))||(yyGetBool(yyfgreater(gmlcount,gmlbestcount)))){{gmlbest=gmlpmap;gmlbestcount=gmlcount;};};
}};ds_list_add(gmlsortedlist,gmlbest);var gmli=ds_list_find_index(gmlplist,gmlbest);ds_list_delete(gmlplist,gmli);}};ds_list_destroy(gmlplist);gmlplist=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_sort_retrobowl_history_list(_inst,_other){(_inst.gmls_sort_retrobowl_history_list=__yy_method(_inst,gml_Script_s_sort_retrobowl_history_list));}function gml_Script_s_sort_retrobowl_history_list(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_sort_retrobowl_winners_list");var gmlsortedlist=ds_list_create();
while(yyfgreater(ds_list_size(argument0),0)){{var gmlbest=(-4);var gmlbestcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);if(!yyGetBool(ds_map_exists(gmlpmap,"year"))){ds_map_set(gmlpmap,"year",0);};var gmlyear=real(ds_map_find_value(gmlpmap,"year"));if((yyGetBool(!yyGetBool(gmlbest)))||(yyGetBool(yyfless(gmlyear,gmlbestcount)))){{gmlbest=gmlpmap;
gmlbestcount=gmlyear;};};}};ds_list_add(gmlsortedlist,gmlbest);var gmli=ds_list_find_index(argument0,gmlbest);ds_list_delete(argument0,gmli);}};ds_list_destroy(argument0);argument0=(-1);return gmlsortedlist;}}function gml_GlobalScript_btn_click_EditAFC(_inst,_other){(_inst.gmlbtn_click_EditAFC=__yy_method(_inst,gml_Script_btn_click_EditAFC));}function gml_Script_btn_click_EditAFC(_inst,_other){{yyInst(_inst,_other,97).gmledit_conf=0;{var __yy__v147=GetWithArray(128);for(var __yy__v148 in __yy__v147){if(!__yy__v147.hasOwnProperty(__yy__v148))continue;
var __yy__v149=__yy__v147[__yy__v148];gml_Script_s_update_team_edit_buttons(__yy__v149,_inst);}};}}function gml_GlobalScript_btn_click_EditNFC(_inst,_other){(_inst.gmlbtn_click_EditNFC=__yy_method(_inst,gml_Script_btn_click_EditNFC));}function gml_Script_btn_click_EditNFC(_inst,_other){{yyInst(_inst,_other,97).gmledit_conf=1;{var __yy__v150=GetWithArray(128);for(var __yy__v151 in __yy__v150){if(!__yy__v150.hasOwnProperty(__yy__v151))continue;var __yy__v152=__yy__v150[__yy__v151];gml_Script_s_update_team_edit_buttons(__yy__v152,
_inst);}};}}function gml_GlobalScript_btn_click_EditTeam(_inst,_other){(_inst.gmlbtn_click_EditTeam=__yy_method(_inst,gml_Script_btn_click_EditTeam));}function gml_Script_btn_click_EditTeam(_inst,_other){{var gmlchoose_teamuid=_inst.gmluid;{var __yy__v153=GetWithArray(97);for(var __yy__v154 in __yy__v153){if(!__yy__v153.hasOwnProperty(__yy__v154))continue;var __yy__v155=__yy__v153[__yy__v154];{var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v155.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),
g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v155.gmlteamlist,gmlt);if(yyfequal(real(ds_map_find_value(gmlteam,"uid")),gmlchoose_teamuid)){{__yy__v155.gmledit_team=gmlteam;};};}};}}};room_goto(6);}}function gml_GlobalScript_s_round_to_decimal(_inst,_other){(_inst.gmls_round_to_decimal=__yy_method(_inst,gml_Script_s_round_to_decimal));}function gml_Script_s_round_to_decimal(_inst,_other,argument0,argument1){{var gmlmult=power(10,argument1);return yyfdivide(__yy_gml_errCheck(floor(yyftime(__yy_gml_errCheck(argument0),
__yy_gml_errCheck(gmlmult)))),__yy_gml_errCheck(gmlmult));}}function gml_GlobalScript_btn_click_TeamEditCancel(_inst,_other){(_inst.gmlbtn_click_TeamEditCancel=__yy_method(_inst,gml_Script_btn_click_TeamEditCancel));}function gml_Script_btn_click_TeamEditCancel(_inst,_other){{room_goto(29);}}function gml_GlobalScript_btn_click_TeamEditDone(_inst,_other){(_inst.gmlbtn_click_TeamEditDone=__yy_method(_inst,gml_Script_btn_click_TeamEditDone));}function gml_Script_btn_click_TeamEditDone(_inst,_other){{{var __yy__v156=GetWithArray(129);
for(var __yy__v157 in __yy__v156){if(!__yy__v156.hasOwnProperty(__yy__v157))continue;var __yy__v158=__yy__v156[__yy__v157];{gml_Script_s_update_uniform_name(__yy__v158,_inst);ds_map_set(yyInst(_inst,_other,97).gmledit_team,"name",yyInst(_inst,_other,__yy__v158.gmlcurrent_uni).gmlname);ds_map_set(yyInst(_inst,_other,97).gmledit_team,"tla",yyInst(_inst,_other,__yy__v158.gmlcurrent_uni).gmltla);ds_map_set(yyInst(_inst,_other,97).gmledit_team,"rainfall",yyInst(_inst,_other,__yy__v158.gmlcurrent_uni).gmlrainfall);
ds_map_set(yyInst(_inst,_other,97).gmledit_team,"snowfall",yyInst(_inst,_other,__yy__v158.gmlcurrent_uni).gmlsnowfall);ds_map_set(yyInst(_inst,_other,97).gmledit_team,"roof",yyInst(_inst,_other,__yy__v158.gmlcurrent_uni).gmlroof);gml_Script_s_save_uniform_file2(__yy__v158,_inst,__yy__v158.gmluid,__yy__v158.gmlcurrent_uni,__yy__v158.gmlkittype);gml_Script_s_savegame(__yy__v158,_inst);}}};room_goto(29);}}function gml_GlobalScript_btn_click_TeamEditRestore(_inst,_other){(_inst.gmlbtn_click_TeamEditRestore=__yy_method(_inst,
gml_Script_btn_click_TeamEditRestore));}function gml_Script_btn_click_TeamEditRestore(_inst,_other){{{var __yy__v159=GetWithArray(129);for(var __yy__v160 in __yy__v159){if(!__yy__v159.hasOwnProperty(__yy__v160))continue;var __yy__v161=__yy__v159[__yy__v160];{gml_Script_s_load_uniform_file2(__yy__v161,_inst,__yy__v161.gmluid,__yy__v161.gmlcurrent_uni,__yy__v161.gmlkittype,gml_Script_s_uniforms_default_file(__yy__v161,_inst));gml_Script_s_set_up_edit_screen(__yy__v161,_inst);}}};}}function gml_GlobalScript_btn_click_InputHelmet(_inst,
_other){(_inst.gmlbtn_click_InputHelmet=__yy_method(_inst,gml_Script_btn_click_InputHelmet));}function gml_Script_btn_click_InputHelmet(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v162=GetWithArray(129);for(var __yy__v163 in __yy__v162){if(!__yy__v162.hasOwnProperty(__yy__v163))continue;var __yy__v164=__yy__v162[__yy__v163];{yyInst(_inst,_other,__yy__v164.gmlcurrent_uni).gmlhex_helmet=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v164,
_inst,__yy__v164.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v164,_inst);}}};}}function gml_GlobalScript_btn_click_InputLogo(_inst,_other){(_inst.gmlbtn_click_InputLogo=__yy_method(_inst,gml_Script_btn_click_InputLogo));}function gml_Script_btn_click_InputLogo(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v165=GetWithArray(129);for(var __yy__v166 in __yy__v165){if(!__yy__v165.hasOwnProperty(__yy__v166))continue;var __yy__v167=__yy__v165[__yy__v166];
{yyInst(_inst,_other,__yy__v167.gmlcurrent_uni).gmlhex_logo=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v167,_inst,__yy__v167.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v167,_inst);}}};}}function gml_GlobalScript_btn_click_InputShirt(_inst,_other){(_inst.gmlbtn_click_InputShirt=__yy_method(_inst,gml_Script_btn_click_InputShirt));}function gml_Script_btn_click_InputShirt(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v168=GetWithArray(129);
for(var __yy__v169 in __yy__v168){if(!__yy__v168.hasOwnProperty(__yy__v169))continue;var __yy__v170=__yy__v168[__yy__v169];{yyInst(_inst,_other,__yy__v170.gmlcurrent_uni).gmlhex_shirt=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v170,_inst,__yy__v170.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v170,_inst);}}};}}function gml_GlobalScript_btn_click_InputSleeve(_inst,_other){(_inst.gmlbtn_click_InputSleeve=__yy_method(_inst,gml_Script_btn_click_InputSleeve));}function gml_Script_btn_click_InputSleeve(_inst,
_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v171=GetWithArray(129);for(var __yy__v172 in __yy__v171){if(!__yy__v171.hasOwnProperty(__yy__v172))continue;var __yy__v173=__yy__v171[__yy__v172];{yyInst(_inst,_other,__yy__v173.gmlcurrent_uni).gmlhex_sleeve=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v173,_inst,__yy__v173.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v173,_inst);}}};}}function gml_GlobalScript_btn_click_InputPants(_inst,
_other){(_inst.gmlbtn_click_InputPants=__yy_method(_inst,gml_Script_btn_click_InputPants));}function gml_Script_btn_click_InputPants(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v174=GetWithArray(129);for(var __yy__v175 in __yy__v174){if(!__yy__v174.hasOwnProperty(__yy__v175))continue;var __yy__v176=__yy__v174[__yy__v175];{yyInst(_inst,_other,__yy__v176.gmlcurrent_uni).gmlhex_pants=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v176,
_inst,__yy__v176.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v176,_inst);}}};}}function gml_GlobalScript_btn_click_InputStripe(_inst,_other){(_inst.gmlbtn_click_InputStripe=__yy_method(_inst,gml_Script_btn_click_InputStripe));}function gml_Script_btn_click_InputStripe(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v177=GetWithArray(129);for(var __yy__v178 in __yy__v177){if(!__yy__v177.hasOwnProperty(__yy__v178))continue;var __yy__v179=__yy__v177[__yy__v178];
{yyInst(_inst,_other,__yy__v179.gmlcurrent_uni).gmlhex_stripe=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v179,_inst,__yy__v179.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v179,_inst);}}};}}function gml_GlobalScript_btn_click_InputSocks1(_inst,_other){(_inst.gmlbtn_click_InputSocks1=__yy_method(_inst,gml_Script_btn_click_InputSocks1));}function gml_Script_btn_click_InputSocks1(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v180=GetWithArray(129);
for(var __yy__v181 in __yy__v180){if(!__yy__v180.hasOwnProperty(__yy__v181))continue;var __yy__v182=__yy__v180[__yy__v181];{yyInst(_inst,_other,__yy__v182.gmlcurrent_uni).gmlhex_socks1=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v182,_inst,__yy__v182.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v182,_inst);}}};}}function gml_GlobalScript_btn_click_InputSocks2(_inst,_other){(_inst.gmlbtn_click_InputSocks2=__yy_method(_inst,gml_Script_btn_click_InputSocks2));}function gml_Script_btn_click_InputSocks2(_inst,
_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v183=GetWithArray(129);for(var __yy__v184 in __yy__v183){if(!__yy__v183.hasOwnProperty(__yy__v184))continue;var __yy__v185=__yy__v183[__yy__v184];{yyInst(_inst,_other,__yy__v185.gmlcurrent_uni).gmlhex_socks2=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v185,_inst,__yy__v185.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v185,_inst);}}};}}function gml_GlobalScript_btn_click_InputEndzone(_inst,
_other){(_inst.gmlbtn_click_InputEndzone=__yy_method(_inst,gml_Script_btn_click_InputEndzone));}function gml_Script_btn_click_InputEndzone(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v186=GetWithArray(129);for(var __yy__v187 in __yy__v186){if(!__yy__v186.hasOwnProperty(__yy__v187))continue;var __yy__v188=__yy__v186[__yy__v187];{yyInst(_inst,_other,__yy__v188.gmlcurrent_uni).gmlhex_endzone=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v188,
_inst,__yy__v188.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v188,_inst);}}};}}function gml_GlobalScript_btn_click_EditHelmet(_inst,_other){(_inst.gmlbtn_click_EditHelmet=__yy_method(_inst,gml_Script_btn_click_EditHelmet));}function gml_Script_btn_click_EditHelmet(_inst,_other){{{var __yy__v189=GetWithArray(129);for(var __yy__v190 in __yy__v189){if(!__yy__v189.hasOwnProperty(__yy__v190))continue;var __yy__v191=__yy__v189[__yy__v190];{__yy__v191.gmlnewpick=0;gml_Script_s_color_picker(__yy__v191,
_inst);}}};}}function gml_GlobalScript_btn_click_EditLogo(_inst,_other){(_inst.gmlbtn_click_EditLogo=__yy_method(_inst,gml_Script_btn_click_EditLogo));}function gml_Script_btn_click_EditLogo(_inst,_other){{{var __yy__v192=GetWithArray(129);for(var __yy__v193 in __yy__v192){if(!__yy__v192.hasOwnProperty(__yy__v193))continue;var __yy__v194=__yy__v192[__yy__v193];{__yy__v194.gmlnewpick=1;gml_Script_s_color_picker(__yy__v194,_inst);}}};}}function gml_GlobalScript_btn_click_EditShirt(_inst,_other){(_inst.gmlbtn_click_EditShirt=__yy_method(_inst,
gml_Script_btn_click_EditShirt));}function gml_Script_btn_click_EditShirt(_inst,_other){{{var __yy__v195=GetWithArray(129);for(var __yy__v196 in __yy__v195){if(!__yy__v195.hasOwnProperty(__yy__v196))continue;var __yy__v197=__yy__v195[__yy__v196];{__yy__v197.gmlnewpick=2;gml_Script_s_color_picker(__yy__v197,_inst);}}};}}function gml_GlobalScript_btn_click_EditSleeve(_inst,_other){(_inst.gmlbtn_click_EditSleeve=__yy_method(_inst,gml_Script_btn_click_EditSleeve));}function gml_Script_btn_click_EditSleeve(_inst,
_other){{{var __yy__v198=GetWithArray(129);for(var __yy__v199 in __yy__v198){if(!__yy__v198.hasOwnProperty(__yy__v199))continue;var __yy__v200=__yy__v198[__yy__v199];{__yy__v200.gmlnewpick=3;gml_Script_s_color_picker(__yy__v200,_inst);}}};}}function gml_GlobalScript_btn_click_EditPants(_inst,_other){(_inst.gmlbtn_click_EditPants=__yy_method(_inst,gml_Script_btn_click_EditPants));}function gml_Script_btn_click_EditPants(_inst,_other){{{var __yy__v201=GetWithArray(129);for(var __yy__v202 in __yy__v201){if(!__yy__v201.hasOwnProperty(__yy__v202))continue;
var __yy__v203=__yy__v201[__yy__v202];{__yy__v203.gmlnewpick=4;gml_Script_s_color_picker(__yy__v203,_inst);}}};}}function gml_GlobalScript_btn_click_EditStripe(_inst,_other){(_inst.gmlbtn_click_EditStripe=__yy_method(_inst,gml_Script_btn_click_EditStripe));}function gml_Script_btn_click_EditStripe(_inst,_other){{{var __yy__v204=GetWithArray(129);for(var __yy__v205 in __yy__v204){if(!__yy__v204.hasOwnProperty(__yy__v205))continue;var __yy__v206=__yy__v204[__yy__v205];{__yy__v206.gmlnewpick=5;gml_Script_s_color_picker(__yy__v206,
_inst);}}};}}function gml_GlobalScript_btn_click_EditSocks1(_inst,_other){(_inst.gmlbtn_click_EditSocks1=__yy_method(_inst,gml_Script_btn_click_EditSocks1));}function gml_Script_btn_click_EditSocks1(_inst,_other){{{var __yy__v207=GetWithArray(129);for(var __yy__v208 in __yy__v207){if(!__yy__v207.hasOwnProperty(__yy__v208))continue;var __yy__v209=__yy__v207[__yy__v208];{__yy__v209.gmlnewpick=6;gml_Script_s_color_picker(__yy__v209,_inst);}}};}}function gml_GlobalScript_btn_click_EditSocks2(_inst,_other){(_inst.gmlbtn_click_EditSocks2=__yy_method(_inst,
gml_Script_btn_click_EditSocks2));}function gml_Script_btn_click_EditSocks2(_inst,_other){{{var __yy__v210=GetWithArray(129);for(var __yy__v211 in __yy__v210){if(!__yy__v210.hasOwnProperty(__yy__v211))continue;var __yy__v212=__yy__v210[__yy__v211];{__yy__v212.gmlnewpick=7;gml_Script_s_color_picker(__yy__v212,_inst);}}};}}function gml_GlobalScript_btn_click_EditEndzone(_inst,_other){(_inst.gmlbtn_click_EditEndzone=__yy_method(_inst,gml_Script_btn_click_EditEndzone));}function gml_Script_btn_click_EditEndzone(_inst,
_other){{{var __yy__v213=GetWithArray(129);for(var __yy__v214 in __yy__v213){if(!__yy__v213.hasOwnProperty(__yy__v214))continue;var __yy__v215=__yy__v213[__yy__v214];{__yy__v215.gmlnewpick=8;gml_Script_s_color_picker(__yy__v215,_inst);}}};}}function gml_GlobalScript_btn_click_Kit1(_inst,_other){(_inst.gmlbtn_click_Kit1=__yy_method(_inst,gml_Script_btn_click_Kit1));}function gml_Script_btn_click_Kit1(_inst,_other){{{var __yy__v216=GetWithArray(129);for(var __yy__v217 in __yy__v216){if(!__yy__v216.hasOwnProperty(__yy__v217))continue;
var __yy__v218=__yy__v216[__yy__v217];{gml_Script_s_save_uniform_file2(__yy__v218,_inst,__yy__v218.gmluid,__yy__v218.gmlcurrent_uni,__yy__v218.gmlkittype);__yy__v218.gmlkittype=0;__yy__v218.gmlcurrent_uni=100108;gml_Script_s_set_up_edit_screen(__yy__v218,_inst);}}};}}function gml_GlobalScript_btn_click_Kit2(_inst,_other){(_inst.gmlbtn_click_Kit2=__yy_method(_inst,gml_Script_btn_click_Kit2));}function gml_Script_btn_click_Kit2(_inst,_other){{{var __yy__v219=GetWithArray(129);for(var __yy__v220 in __yy__v219){
if(!__yy__v219.hasOwnProperty(__yy__v220))continue;var __yy__v221=__yy__v219[__yy__v220];{gml_Script_s_save_uniform_file2(__yy__v221,_inst,__yy__v221.gmluid,__yy__v221.gmlcurrent_uni,__yy__v221.gmlkittype);__yy__v221.gmlkittype=1;__yy__v221.gmlcurrent_uni=100109;gml_Script_s_set_up_edit_screen(__yy__v221,_inst);}}};}}function gml_GlobalScript_btn_click_Kit3(_inst,_other){(_inst.gmlbtn_click_Kit3=__yy_method(_inst,gml_Script_btn_click_Kit3));}function gml_Script_btn_click_Kit3(_inst,_other){{{var __yy__v222=GetWithArray(129);
for(var __yy__v223 in __yy__v222){if(!__yy__v222.hasOwnProperty(__yy__v223))continue;var __yy__v224=__yy__v222[__yy__v223];{gml_Script_s_save_uniform_file2(__yy__v224,_inst,__yy__v224.gmluid,__yy__v224.gmlcurrent_uni,__yy__v224.gmlkittype);__yy__v224.gmlkittype=2;__yy__v224.gmlcurrent_uni=100111;gml_Script_s_set_up_edit_screen(__yy__v224,_inst);}}};}}function gml_GlobalScript_btn_click_Kit4(_inst,_other){(_inst.gmlbtn_click_Kit4=__yy_method(_inst,gml_Script_btn_click_Kit4));}function gml_Script_btn_click_Kit4(_inst,
_other){{{var __yy__v225=GetWithArray(129);for(var __yy__v226 in __yy__v225){if(!__yy__v225.hasOwnProperty(__yy__v226))continue;var __yy__v227=__yy__v225[__yy__v226];{gml_Script_s_save_uniform_file2(__yy__v227,_inst,__yy__v227.gmluid,__yy__v227.gmlcurrent_uni,__yy__v227.gmlkittype);__yy__v227.gmlkittype=3;__yy__v227.gmlcurrent_uni=100112;gml_Script_s_set_up_edit_screen(__yy__v227,_inst);}}};}}function gml_GlobalScript_btn_click_RestoreAllTeams(_inst,_other){(_inst.gmlbtn_click_RestoreAllTeams=__yy_method(_inst,
gml_Script_btn_click_RestoreAllTeams));}function gml_Script_btn_click_RestoreAllTeams(_inst,_other){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_RestoreAllTeams"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_restore_uniforms_all,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_KR_Select(_inst,_other){(_inst.gmlbtn_click_KR_Select=__yy_method(_inst,gml_Script_btn_click_KR_Select));
}function gml_Script_btn_click_KR_Select(_inst,_other){{{var __yy__v228=GetWithArray(78);for(var __yy__v229 in __yy__v228){if(!__yy__v228.hasOwnProperty(__yy__v229))continue;var __yy__v230=__yy__v228[__yy__v229];return;}};if(yyfless(yyInst(_inst,_other,97).gmltag_kr_message_done,2)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TagMessageKR"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),kgml_Script_s_msg_clear,kgml_Script_s_msg_clear,global.gmlc_background,1);yyInst(_inst,
_other,97).gmltag_kr_message_done=2;};};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmli);ds_map_set(gmlpmap,"kr",0);}};_inst.gmlselected=!yyGetBool(_inst.gmlselected);ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"kr",_inst.gmlselected);if(yyGetBool(_inst.gmlselected)){ds_map_set(yyInst(_inst,
_other,97).gmlmap_options,"op_kickoffs",1);};}}function gml_GlobalScript_btn_click_EditCopySlotA(_inst,_other){(_inst.gmlbtn_click_EditCopySlotA=__yy_method(_inst,gml_Script_btn_click_EditCopySlotA));}function gml_Script_btn_click_EditCopySlotA(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",1);gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,
kgml_Script_s_copy_uniforms_slot_a,global.gmlc_background,1);}}function gml_GlobalScript_s_sound_audience_inc(_inst,_other){(_inst.gmls_sound_audience_inc=__yy_method(_inst,gml_Script_s_sound_audience_inc));}function gml_Script_s_sound_audience_inc(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice))){return;};var gmlsnd=audio_play_sound(0,1,false);audio_sound_pitch(gmlsnd,random_range(0.9,
1));audio_sound_gain(gmlsnd,0.5,0);}}function gml_GlobalScript_btn_click_EditCopySlotB(_inst,_other){(_inst.gmlbtn_click_EditCopySlotB=__yy_method(_inst,gml_Script_btn_click_EditCopySlotB));}function gml_Script_btn_click_EditCopySlotB(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",2);gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,
kgml_Script_s_copy_uniforms_slot_b,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_EditCopySlotC(_inst,_other){(_inst.gmlbtn_click_EditCopySlotC=__yy_method(_inst,gml_Script_btn_click_EditCopySlotC));}function gml_Script_btn_click_EditCopySlotC(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",3);gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),
kgml_Script_s_msg_clear,kgml_Script_s_copy_uniforms_slot_c,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_EditCopySlotD(_inst,_other){(_inst.gmlbtn_click_EditCopySlotD=__yy_method(_inst,gml_Script_btn_click_EditCopySlotD));}function gml_Script_btn_click_EditCopySlotD(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",4);gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,
_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_copy_uniforms_slot_d,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_EditCopySlotE(_inst,_other){(_inst.gmlbtn_click_EditCopySlotE=__yy_method(_inst,gml_Script_btn_click_EditCopySlotE));}function gml_Script_btn_click_EditCopySlotE(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",5);gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),
gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_copy_uniforms_slot_e,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_TeamEditMore(_inst,_other){(_inst.gmlbtn_click_TeamEditMore=__yy_method(_inst,gml_Script_btn_click_TeamEditMore));}function gml_Script_btn_click_TeamEditMore(_inst,_other){{layer_set_visible(layer_get_id("Instances_Details1"),false);layer_set_visible(layer_get_id("Instances_Details2"),true);}}function gml_GlobalScript_btn_click_TeamEditMoreDone(_inst,
_other){(_inst.gmlbtn_click_TeamEditMoreDone=__yy_method(_inst,gml_Script_btn_click_TeamEditMoreDone));}function gml_Script_btn_click_TeamEditMoreDone(_inst,_other){{layer_set_visible(layer_get_id("Instances_Details1"),true);layer_set_visible(layer_get_id("Instances_Details2"),false);}}function gml_GlobalScript_btn_click_FacilityStadium(_inst,_other){(_inst.gmlbtn_click_FacilityStadium=__yy_method(_inst,gml_Script_btn_click_FacilityStadium));}function gml_Script_btn_click_FacilityStadium(_inst,_other){
{{var __yy__v231=GetWithArray(97);for(var __yy__v232 in __yy__v231){if(!__yy__v231.hasOwnProperty(__yy__v232))continue;var __yy__v233=__yy__v231[__yy__v232];{if(yyfless(__yy__v233.gmlcoach_credit,yyfplus(__yy_gml_errCheck(__yy__v233.gmlfacility_stadium),1))){{gml_Script_s_create_message(__yy__v233,_inst,"",gml_Script_s_str(__yy__v233,_inst,"msg_NoCreditFacility"),gml_Script_s_str(__yy__v233,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v233.gmlfacility_upgraded_stadium,
__yy__v233.gmlweek)){{gml_Script_s_create_message(__yy__v233,_inst,"",gml_Script_s_str(__yy__v233,_inst,"msg_FacilityTooSoon"),gml_Script_s_str(__yy__v233,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v233,_inst,"msg_facility_Stadium");gmlmsg=string_replace(gmlmsg,"$num",yyfplus(__yy_gml_errCheck(__yy__v233.gmlfacility_stadium),1));gml_Script_s_create_message(__yy__v233,_inst,"",gmlmsg,gml_Script_s_str(__yy__v233,_inst,"ui_Cancel"),
gml_Script_s_str(__yy__v233,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_upgrade_stadium,global.gmlc_background,1);}}};}}function gml_GlobalScript_btn_click_FacilityTraining(_inst,_other){(_inst.gmlbtn_click_FacilityTraining=__yy_method(_inst,gml_Script_btn_click_FacilityTraining));}function gml_Script_btn_click_FacilityTraining(_inst,_other){{{var __yy__v234=GetWithArray(97);for(var __yy__v235 in __yy__v234){if(!__yy__v234.hasOwnProperty(__yy__v235))continue;var __yy__v236=__yy__v234[__yy__v235];
{if(yyfless(__yy__v236.gmlcoach_credit,yyfplus(__yy_gml_errCheck(__yy__v236.gmlfacility_training),1))){{gml_Script_s_create_message(__yy__v236,_inst,"",gml_Script_s_str(__yy__v236,_inst,"msg_NoCreditFacility"),gml_Script_s_str(__yy__v236,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v236.gmlfacility_upgraded_training,__yy__v236.gmlweek)){{gml_Script_s_create_message(__yy__v236,_inst,"",gml_Script_s_str(__yy__v236,_inst,"msg_FacilityTooSoon"),
gml_Script_s_str(__yy__v236,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v236,_inst,"msg_facility_Training");gmlmsg=string_replace(gmlmsg,"$num",yyfplus(__yy_gml_errCheck(__yy__v236.gmlfacility_training),1));gml_Script_s_create_message(__yy__v236,_inst,"",gmlmsg,gml_Script_s_str(__yy__v236,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v236,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_upgrade_training,global.gmlc_background,
1);}}};}}function gml_GlobalScript_btn_click_FacilityStaff(_inst,_other){(_inst.gmlbtn_click_FacilityStaff=__yy_method(_inst,gml_Script_btn_click_FacilityStaff));}function gml_Script_btn_click_FacilityStaff(_inst,_other){{{var __yy__v237=GetWithArray(97);for(var __yy__v238 in __yy__v237){if(!__yy__v237.hasOwnProperty(__yy__v238))continue;var __yy__v239=__yy__v237[__yy__v238];{if(yyfless(__yy__v239.gmlcoach_credit,yyfplus(__yy_gml_errCheck(__yy__v239.gmlfacility_rehab),1))){{gml_Script_s_create_message(__yy__v239,
_inst,"",gml_Script_s_str(__yy__v239,_inst,"msg_NoCreditFacility"),gml_Script_s_str(__yy__v239,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v239.gmlfacility_upgraded_rehab,__yy__v239.gmlweek)){{gml_Script_s_create_message(__yy__v239,_inst,"",gml_Script_s_str(__yy__v239,_inst,"msg_FacilityTooSoon"),gml_Script_s_str(__yy__v239,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v239,
_inst,"msg_facility_Rehab");gmlmsg=string_replace(gmlmsg,"$num",yyfplus(__yy_gml_errCheck(__yy__v239.gmlfacility_rehab),1));gml_Script_s_create_message(__yy__v239,_inst,"",gmlmsg,gml_Script_s_str(__yy__v239,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v239,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_upgrade_rehab,global.gmlc_background,1);}}};}}function gml_GlobalScript_btn_click_HOF_players(_inst,_other){(_inst.gmlbtn_click_HOF_players=__yy_method(_inst,gml_Script_btn_click_HOF_players));
}function gml_Script_btn_click_HOF_players(_inst,_other){{room_goto(12);}}function gml_GlobalScript_btn_click_HOF_player_records(_inst,_other){(_inst.gmlbtn_click_HOF_player_records=__yy_method(_inst,gml_Script_btn_click_HOF_player_records));}function gml_Script_btn_click_HOF_player_records(_inst,_other){{room_goto(13);}}function gml_GlobalScript_btn_click_HOF_Select(_inst,_other){(_inst.gmlbtn_click_HOF_Select=__yy_method(_inst,gml_Script_btn_click_HOF_Select));}function gml_Script_btn_click_HOF_Select(_inst,
_other){{{var __yy__v240=GetWithArray(78);for(var __yy__v241 in __yy__v240){if(!__yy__v240.hasOwnProperty(__yy__v241))continue;var __yy__v242=__yy__v240[__yy__v241];return;}};if(yyfequal(yyInst(_inst,_other,97).gmltag_hof_message_done,0)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TagMessageHOF"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),kgml_Script_s_msg_clear,kgml_Script_s_msg_clear,global.gmlc_background,1);yyInst(_inst,_other,97).gmltag_hof_message_done=1;
};};var gmlcount=gml_Script_s_count_hof_entries(_inst,_other);if((yyGetBool(!yyGetBool(_inst.gmlselected)))&&(yyGetBool(yyfgreaterequal(gmlcount,50)))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_HofListTooBig"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if((yyGetBool(yyInst(_inst,_other,97).gmlviewing_hof_players))&&(yyGetBool(yyfless(ds_list_find_index(yyInst(_inst,_other,97).gmlroster,yyInst(_inst,
_other,97).gmlplayer_profile),0)))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_RemoveFromHallOfFame"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Remove"),kgml_Script_s_msg_clear,kgml_Script_btn_response_hof_select,global.gmlc_background,1);};}else {{_inst.gmlselected=!yyGetBool(_inst.gmlselected);ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"hof",_inst.gmlselected);};};}}function gml_GlobalScript_btn_click_HofNext(_inst,
_other){(_inst.gmlbtn_click_HofNext=__yy_method(_inst,gml_Script_btn_click_HofNext));}function gml_Script_btn_click_HofNext(_inst,_other){{{var __yy__v243=GetWithArray(138);for(var __yy__v244 in __yy__v243){if(!__yy__v243.hasOwnProperty(__yy__v244))continue;var __yy__v245=__yy__v243[__yy__v244];{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlhof_page,yyInst(_inst,_other,97).gmlhof_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlhof_page.add(1):++yyInst(_inst,_other,97).gmlhof_page),
g_yyPrePostObject__);room_goto(12);}}};}}function gml_GlobalScript_btn_click_HofPrev(_inst,_other){(_inst.gmlbtn_click_HofPrev=__yy_method(_inst,gml_Script_btn_click_HofPrev));}function gml_Script_btn_click_HofPrev(_inst,_other){{{var __yy__v246=GetWithArray(138);for(var __yy__v247 in __yy__v246){if(!__yy__v246.hasOwnProperty(__yy__v247))continue;var __yy__v248=__yy__v246[__yy__v247];{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlhof_page,yyInst(_inst,_other,97).gmlhof_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,
_other,97).gmlhof_page.subtract(1):--yyInst(_inst,_other,97).gmlhof_page),g_yyPrePostObject__);room_goto(12);}}};}}function gml_GlobalScript_btn_click_HOF_Coach(_inst,_other){(_inst.gmlbtn_click_HOF_Coach=__yy_method(_inst,gml_Script_btn_click_HOF_Coach));}function gml_Script_btn_click_HOF_Coach(_inst,_other){{room_goto(11);}}function gml_GlobalScript_btn_click_Records_Reset(_inst,_other){(_inst.gmlbtn_click_Records_Reset=__yy_method(_inst,gml_Script_btn_click_Records_Reset));}function gml_Script_btn_click_Records_Reset(_inst,
_other){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_RecordsReset"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Reset"),kgml_Script_s_msg_clear,kgml_Script_btn_response_records_reset,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_League_Back(_inst,_other){(_inst.gmlbtn_click_League_Back=__yy_method(_inst,gml_Script_btn_click_League_Back));}function gml_Script_btn_click_League_Back(_inst,_other){{var ___sw98___=yyInst(_inst,
_other,97).gmlstage;var ___swc99___=-1;if(yyCompareVal(___sw98___,3,g_GMLMathEpsilon,false)==0){___swc99___=0;}else if(yyCompareVal(___sw98___,5,g_GMLMathEpsilon,false)==0){___swc99___=1;}switch(___swc99___){case 0:{room_goto(21);break;}case 1:{room_goto(24);break;}default :{room_goto(14);break;}};}}function gml_GlobalScript_btn_click_LeaguePanel(_inst,_other,argument0){(_inst.gmlbtn_click_LeaguePanel=__yy_method(_inst,gml_Script_btn_click_LeaguePanel));}function gml_Script_btn_click_LeaguePanel(_inst,
_other,argument0){{yyInst(_inst,_other,100253).visible=true;yyInst(_inst,_other,100254).visible=true;yyInst(_inst,_other,100251).visible=true;yyInst(_inst,_other,100252).visible=true;yyInst(_inst,_other,100245).visible=true;yyInst(_inst,_other,100246).visible=true;yyInst(_inst,_other,100247).visible=true;yyInst(_inst,_other,100257).gmltext=yyInst(_inst,_other,97).gmlname_conf1;yyInst(_inst,_other,100256).gmltext=yyInst(_inst,_other,97).gmlname_conf2;yyInst(_inst,_other,100260).gmlactive=true;{var __yy__v249=GetWithArray(140);
for(var __yy__v250 in __yy__v249){if(!__yy__v249.hasOwnProperty(__yy__v250))continue;var __yy__v251=__yy__v249[__yy__v250];{__yy__v251.gmlshow_panel=argument0;var ___sw102___=__yy__v251.gmlshow_panel;var ___swc103___=-1;if(yyCompareVal(___sw102___,0,g_GMLMathEpsilon,false)==0){___swc103___=0;}else if(yyCompareVal(___sw102___,1,g_GMLMathEpsilon,false)==0){___swc103___=1;}else if(yyCompareVal(___sw102___,2,g_GMLMathEpsilon,false)==0){___swc103___=2;}switch(___swc103___){case 0:{yyInst(_inst,_other,100257).gmlcolour=global.gmlc_primary;
yyInst(_inst,_other,100256).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100258).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100245).visible=false;yyInst(_inst,_other,100246).visible=false;yyInst(_inst,_other,100247).visible=false;yyInst(_inst,_other,100248).visible=false;break;}case 1:{yyInst(_inst,_other,100257).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100256).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100258).gmlcolour=global.gmlc_background;yyInst(_inst,_other,
100245).visible=false;yyInst(_inst,_other,100246).visible=false;yyInst(_inst,_other,100247).visible=false;yyInst(_inst,_other,100248).visible=false;break;}case 2:{yyInst(_inst,_other,100257).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100256).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100258).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100253).visible=false;yyInst(_inst,_other,100254).visible=false;yyInst(_inst,_other,100251).visible=false;yyInst(_inst,_other,100252).visible=false;
yyInst(_inst,_other,100260).gmlactive=false;yyInst(_inst,_other,100248).visible=true;break;}};gml_Script_s_populate_division(__yy__v251,_inst,100253,__yy__v251.gmlshow_panel,0);gml_Script_s_populate_division(__yy__v251,_inst,100254,__yy__v251.gmlshow_panel,1);gml_Script_s_populate_division(__yy__v251,_inst,100251,__yy__v251.gmlshow_panel,2);gml_Script_s_populate_division(__yy__v251,_inst,100252,__yy__v251.gmlshow_panel,3);gml_Script_s_populate_schedulebox(__yy__v251,_inst);{var __yy__v252=GetWithArray(81);
for(var __yy__v253 in __yy__v252){if(!__yy__v252.hasOwnProperty(__yy__v253))continue;var __yy__v254=__yy__v252[__yy__v253];__yy__v254.gmlmode=1;}};}}};}}function gml_GlobalScript_btn_click_LeagueNFC(_inst,_other){(_inst.gmlbtn_click_LeagueNFC=__yy_method(_inst,gml_Script_btn_click_LeagueNFC));}function gml_Script_btn_click_LeagueNFC(_inst,_other){{gml_Script_btn_click_LeaguePanel(_inst,_other,1);}}function gml_GlobalScript_btn_click_LeagueAFC(_inst,_other){(_inst.gmlbtn_click_LeagueAFC=__yy_method(_inst,
gml_Script_btn_click_LeagueAFC));}function gml_Script_btn_click_LeagueAFC(_inst,_other){{gml_Script_btn_click_LeaguePanel(_inst,_other,0);}}function gml_GlobalScript_keyboard_scripts(_inst,_other){(_inst.gmls_keyboard_custom_enabled=__yy_method(_inst,gml_Script_s_keyboard_custom_enabled));(_inst.gmls_keyboard_custom_init=__yy_method(_inst,gml_Script_s_keyboard_custom_init));(_inst.gmls_keyboard_custom_show=__yy_method(_inst,gml_Script_s_keyboard_custom_show));(_inst.gmls_keyboard_custom_hide=__yy_method(_inst,
gml_Script_s_keyboard_custom_hide));(_inst.gmls_keyboard_custom_layer=__yy_method(_inst,gml_Script_s_keyboard_custom_layer));(_inst.gmls_keyboard_custom_create=__yy_method(_inst,gml_Script_s_keyboard_custom_create));(_inst.gmls_keyboard_custom_destroy=__yy_method(_inst,gml_Script_s_keyboard_custom_destroy));(_inst.gmls_keyboard_custom_create_button=__yy_method(_inst,gml_Script_s_keyboard_custom_create_button));(_inst.gmls_custkb_base_draw_gui=__yy_method(_inst,gml_Script_s_custkb_base_draw_gui));
(_inst.gmls_custkb_base_step=__yy_method(_inst,gml_Script_s_custkb_base_step));(_inst.gmls_custkb_confirm=__yy_method(_inst,gml_Script_s_custkb_confirm));(_inst.gmls_custkb_delete=__yy_method(_inst,gml_Script_s_custkb_delete));(_inst.gmls_custkb_shift_toggle=__yy_method(_inst,gml_Script_s_custkb_shift_toggle));(_inst.gmls_custkb_add_text=__yy_method(_inst,gml_Script_s_custkb_add_text));(_inst.gmls_custkb_key_init=__yy_method(_inst,gml_Script_s_custkb_key_init));(_inst.gmls_custkb_key_draw_gui=__yy_method(_inst,
gml_Script_s_custkb_key_draw_gui));(_inst.gmls_custkb_key_step=__yy_method(_inst,gml_Script_s_custkb_key_step));(_inst.gmls_custkb_key_tap=__yy_method(_inst,gml_Script_s_custkb_key_tap));}function gml_Script_s_keyboard_custom_enabled(_inst,_other){{var ___sw114___=g_pBuiltIn.get_os_type();var ___swc115___=-1;if(yyCompareVal(___sw114___,21,g_GMLMathEpsilon,false)==0){___swc115___=0;}switch(___swc115___){case 0:{return true;}};return false;}}function gml_Script____struct___27_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts(_inst,
_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___27_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___27_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlbase=(-4);_inst.gmltype=0;_inst.gmlactive=false;_inst.gmlinput_id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmllayer_id=$$args[__yy_gml_array_check_index(2+(1),
$$args)];_inst.gmlcaps=true;_inst.gmlcaps_key=(-4);_inst.gmldefault_key=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script_s_keyboard_custom_init(_inst,_other){{global.gmlcustkb=__yy_gml_object_create(_inst,(_inst.gml___struct___27=__yy_method(_inst,gml_Script____struct___27_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts)),undefined,undefined,(-1));}}function gml_Script_s_keyboard_custom_show(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"Show custom keyboard");
{var __yy__v255=GetWithArray(global.gmlcustkb);for(var __yy__v256 in __yy__v255){if(!__yy__v255.hasOwnProperty(__yy__v256))continue;var __yy__v257=__yy__v255[__yy__v256];{__yy__v257.gmlactive=true;__yy__v257.gmlinput_id=argument0;__yy__v257.gmllayer_id=gml_Script_s_keyboard_custom_layer(__yy__v257,_inst);gml_Script_s_keyboard_custom_create(__yy__v257,_inst,__yy__v257.gmllayer_id);}}};}}function gml_Script_s_keyboard_custom_hide(_inst,_other){{gml_Script_slog(_inst,_other,"Hide custom keyboard");yyInst(_inst,
_other,global.gmlcustkb).gmlactive=false;gml_Script_s_keyboard_custom_destroy(_inst,_other);}}function gml_Script_s_keyboard_custom_layer(_inst,_other){{var gmllid=layer_get_id("Keyboard");if(yyfless(gmllid,0)){gmllid=layer_create((-1000),"Keyboard");};return gmllid;}}function gml_Script_s_keyboard_custom_create(_inst,_other,argument0){{var gmlkb_type=yyInst(_inst,_other,yyInst(_inst,_other,global.gmlcustkb).gmlinput_id).gmlcustom_keyboard_type;var gmlkb_cols,gmlkb_rows;var ___sw116___=gmlkb_type;var ___swc117___=-1;
if(yyCompareVal(___sw116___,2,g_GMLMathEpsilon,false)==0){___swc117___=0;}else if(yyCompareVal(___sw116___,1,g_GMLMathEpsilon,false)==0){___swc117___=1;}switch(___swc117___){case 0:{gmlkb_cols=8;gmlkb_rows=2;break;}case 1:{gmlkb_cols=11;gmlkb_rows=2;break;}default :{gmlkb_cols=13;gmlkb_rows=4;break;}};var gmlkey_default=(-1);var gmlkey_size=28;var gmlkey_step=30;var gmlmargin=8;var gmlkb_width=yyfplus(yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlkey_step),__yy_gml_errCheck(gmlkb_cols))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlmargin),
2))),2);var gmlkb_height=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlkey_step),__yy_gml_errCheck(gmlkb_rows))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlmargin),2)));var gmlkb_x=yyfdivide(__yy_gml_errCheck(yyfminus(480,__yy_gml_errCheck(gmlkb_width))),2);var gmlkb_y=yyfminus(yyfminus(270,__yy_gml_errCheck(gmlkb_height)),__yy_gml_errCheck(gmlmargin));var gmlkb_xo=0;var gmlkb_yo=0;var gmlkeys;gmlkeys=__yy_gml_array_check(gmlkeys,2112867822);gmlkeys[__yy_gml_array_check_index_set(0)]="0123456789\nABCDEFGHIJKLM\nNOPQRSTUVWXYZ\n!/*⇧ ,.-\r";
gmlkeys[__yy_gml_array_check_index_set(1)]="01234567\n89ABCDEF\r";gmlkeys[__yy_gml_array_check_index_set(2)]="01234\n56789\r";var gmlchar,gmlnl,gmlskip,gmlwidth,gmlimage;var gmlkey;var gmli=0;for(;yyfless(gmli,string_length(gmlkeys[__yy_gml_array_check_index(gmlkb_type,gmlkeys)]));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlchar=string_char_at(gmlkeys[__yy_gml_array_check_index(gmlkb_type,gmlkeys)],yyfplus(__yy_gml_errCheck(gmli),
1));gmlnl=false;gmlskip=false;gmlwidth=1;gmlimage=(-1);var ___sw118___=gmlchar;var ___swc119___=-1;if(yyCompareVal(___sw118___,"\n",g_GMLMathEpsilon,false)==0){___swc119___=0;}else if(yyCompareVal(___sw118___,"",g_GMLMathEpsilon,false)==0){___swc119___=1;}else if(yyCompareVal(___sw118___,"\r",g_GMLMathEpsilon,false)==0){___swc119___=2;}else if(yyCompareVal(___sw118___,"⇧",g_GMLMathEpsilon,false)==0){___swc119___=3;}else if(yyCompareVal(___sw118___," ",g_GMLMathEpsilon,false)==0){___swc119___=4;}switch(___swc119___){
case 0:{gmlnl=true;gmlskip=true;break;}case 1:{gmlimage=128;gmlwidth=3;break;}case 2:{gmlimage=131;gmlwidth=3;break;}case 3:{gmlimage=129;break;}case 4:{gmlwidth=3;break;}};if(!yyGetBool(gmlskip)){{gmlkey=gml_Script_s_keyboard_custom_create_button(_inst,_other,gmlchar,gmlchar,yyfplus(yyfplus(__yy_gml_errCheck(gmlkb_x),__yy_gml_errCheck(gmlkb_xo)),10),yyfplus(yyfplus(__yy_gml_errCheck(gmlkb_y),__yy_gml_errCheck(gmlkb_yo)),10),argument0);yyInst(_inst,_other,gmlkey).image_xscale=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlkey_step),
__yy_gml_errCheck(gmlwidth))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlkey_step),__yy_gml_errCheck(gmlkey_size))))),__yy_gml_errCheck(yyInst(_inst,_other,gmlkey).sprite_width));yyInst(_inst,_other,gmlkey).image_yscale=yyfdivide(__yy_gml_errCheck(gmlkey_size),__yy_gml_errCheck(yyInst(_inst,_other,gmlkey).sprite_height));yyInst(_inst,_other,gmlkey).gmlonClickAction=kgml_Script_s_custkb_key_tap;yyInst(_inst,_other,gmlkey).gmlgp_active_editing=true;if(yyfgreaterequal(gmlimage,0)){yyInst(_inst,
_other,gmlkey).gmlimage=gmlimage;};gmlkb_xo=yyfplus(gmlkb_xo,yyftime(__yy_gml_errCheck(gmlkey_step),__yy_gml_errCheck(gmlwidth)));if(yyfless(gmlkey_default,0)){gmlkey_default=gmlkey;};};};if((yyGetBool(yyfgreater(gmlkb_xo,gmlkb_width)))||(yyGetBool(gmlnl))){{gmlkb_xo=0;gmlkb_yo=yyfplus(gmlkb_yo,gmlkey_step);};};}};var gmlbase=instance_create_layer(gmlkb_x,gmlkb_y,argument0,28);yyInst(_inst,_other,gmlbase).sprite_index=65;yyInst(_inst,_other,gmlbase).image_xscale=yyfdivide(__yy_gml_errCheck(gmlkb_width),
16);yyInst(_inst,_other,gmlbase).image_yscale=yyfdivide(__yy_gml_errCheck(gmlkb_height),16);yyInst(_inst,_other,gmlbase).gmlaction_step=kgml_Script_s_custkb_base_step;yyInst(_inst,_other,gmlbase).gmlaction_draw_gui=kgml_Script_s_custkb_base_draw_gui;yyInst(_inst,_other,global.gmlcustkb).gmlbase=gmlbase;yyInst(_inst,_other,global.gmlcustkb).gmltype=gmlkb_type;yyInst(_inst,_other,global.gmlcustkb).gmlcaps=true;if(yyGetBool(global.gmlgamepad)){{yyInst(_inst,_other,global.gmlcustkb).gmldefault_key=gmlkey_default;
gml_Script_s_find_default_button(_inst,_other);};};return argument0;}}function gml_Script_s_keyboard_custom_destroy(_inst,_other){{{var __yy__v258=GetWithArray(global.gmlcustkb);for(var __yy__v259 in __yy__v258){if(!__yy__v258.hasOwnProperty(__yy__v259))continue;var __yy__v260=__yy__v258[__yy__v259];if(!yyGetBool(is_undefined(__yy__v260.gmllayer_id))){layer_destroy(__yy__v260.gmllayer_id);};}};if(yyGetBool(global.gmlgamepad)){{var __yy__v261=GetWithArray(yyInst(_inst,_other,global.gmlcustkb).gmlinput_id);
for(var __yy__v262 in __yy__v261){if(!__yy__v261.hasOwnProperty(__yy__v262))continue;var __yy__v263=__yy__v261[__yy__v262];gml_Script_s_save_last_selected(__yy__v263,_inst);}};};}}function gml_Script_s_keyboard_custom_create_button(_inst,_other,argument0,argument1,argument2,argument3,argument4){{var gmlkey=instance_create_layer(argument2,argument3,argument4,26);yyInst(_inst,_other,gmlkey).gmlsymbol=argument0;yyInst(_inst,_other,gmlkey).gmltext=argument1;return gmlkey;}}function gml_Script_s_custkb_base_draw_gui(_inst,
_other){{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);}}function gml_Script_s_custkb_base_step(_inst,_other){{if((yyGetBool((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),21)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))))&&(yyGetBool(global.gmlgamepad))){{if(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,32778))){gml_Script_s_custkb_confirm(_inst,_other);};if(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
global.gmlgp_back))){gml_Script_s_custkb_delete(_inst,_other);};};};}}function gml_Script_s_custkb_confirm(_inst,_other){{{var __yy__v264=GetWithArray(yyInst(_inst,_other,global.gmlcustkb).gmlinput_id);for(var __yy__v265 in __yy__v264){if(!__yy__v264.hasOwnProperty(__yy__v265))continue;var __yy__v266=__yy__v264[__yy__v265];{__yy__v266.gmltext=g_pBuiltIn.keyboard_string;__yy__v266.gmlediting=false;gml_Script_s_keyboard_custom_hide(__yy__v266,_inst);if(yyGetBool(script_exists(__yy__v266.gmlvalidate_script))){
script_execute(__yy__v266,_inst,__yy__v266.gmlvalidate_script);};}}};}}function gml_Script_s_custkb_delete(_inst,_other){{if(yyfgreater(string_length(g_pBuiltIn.keyboard_string),0)){{g_pBuiltIn.keyboard_string=string_delete(g_pBuiltIn.keyboard_string,string_length(g_pBuiltIn.keyboard_string),1);};};}}function gml_Script_s_custkb_shift_toggle(_inst,_other){{yyInst(_inst,_other,global.gmlcustkb).gmlcaps=!yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlcaps);}}function gml_Script_s_custkb_add_text(_inst,
_other){{g_pBuiltIn.keyboard_string=yyfplus(g_pBuiltIn.keyboard_string,_inst.gmltext);if(yyfequal(yyInst(_inst,_other,global.gmlcustkb).gmltype,0)){{var gmllc=string_copy(g_pBuiltIn.keyboard_string,string_length(g_pBuiltIn.keyboard_string),1);var ___sw120___=gmllc;var ___swc121___=-1;if(yyCompareVal(___sw120___,"",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw120___," ",g_GMLMathEpsilon,false)==0){___swc121___=0;}switch(___swc121___){case 0:{yyInst(_inst,_other,global.gmlcustkb).gmlcaps=true;break;}
default :{yyInst(_inst,_other,global.gmlcustkb).gmlcaps=false;break;}};};};}}function gml_Script_s_custkb_key_init(_inst,_other){{event_inherited(_inst,_other);}}function gml_Script_s_custkb_key_draw_gui(_inst,_other){{event_inherited(_inst,_other);}}function gml_Script_s_custkb_key_step(_inst,_other){{event_inherited(_inst,_other);_inst.gmltext=(yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlcaps)?string_upper(_inst.gmltext):string_lower(_inst.gmltext));if(yyfequal(_inst.gmltext,"⇧")){{_inst.gmlimage=(yyGetBool(yyInst(_inst,
_other,global.gmlcustkb).gmlcaps)?55:129);};};}}function gml_Script_s_custkb_key_tap(_inst,_other){{var ___sw122___=_inst.gmltext;var ___swc123___=-1;if(yyCompareVal(___sw122___,"",g_GMLMathEpsilon,false)==0){___swc123___=0;}else if(yyCompareVal(___sw122___,"\r",g_GMLMathEpsilon,false)==0){___swc123___=1;}else if(yyCompareVal(___sw122___,"⇧",g_GMLMathEpsilon,false)==0){___swc123___=2;}switch(___swc123___){case 0:{gml_Script_s_custkb_delete(_inst,_other);break;}case 1:{gml_Script_s_custkb_confirm(_inst,
_other);break;}case 2:{gml_Script_s_custkb_shift_toggle(_inst,_other);break;}default :{gml_Script_s_custkb_add_text(_inst,_other);break;}};}}// // slog("s_get_random_study_subject for insitution type["+string(insititutionType)+"] (num:"+string(num)+") selected @index["+string(index)+"] ("+string(chosenUID)+")"+(s_get_study_subject_name_from_uid(chosenUID)))
function gml_GlobalScript_s_college_tools(_inst,_other,argument0){(_inst.gmls_college_set_up_globals=__yy_method(_inst,gml_Script_s_college_set_up_globals));
(_inst.gmls_college_age_index=__yy_method(_inst,gml_Script_s_college_age_index));(_inst.gmls_college_age_label=__yy_method(_inst,gml_Script_s_college_age_label));(_inst.gmls_college_age_simple=__yy_method(_inst,gml_Script_s_college_age_simple));(_inst.gmls_college_age_simple_short=__yy_method(_inst,gml_Script_s_college_age_simple_short));(_inst.gmls_college_shorter_season=__yy_method(_inst,gml_Script_s_college_shorter_season));(_inst.gmls_college_correct_new_player=__yy_method(_inst,gml_Script_s_college_correct_new_player));
(_inst.gmls_get_random_hobby=__yy_method(_inst,gml_Script_s_get_random_hobby));(_inst.gmls_get_hobby_name=__yy_method(_inst,gml_Script_s_get_hobby_name));(_inst.gmls_get_hobby_from_uid=__yy_method(_inst,gml_Script_s_get_hobby_from_uid));(_inst.gmls_is_player_hobby_fraternity=__yy_method(_inst,gml_Script_s_is_player_hobby_fraternity));(_inst.gmls_get_random_trait=__yy_method(_inst,gml_Script_s_get_random_trait));(_inst.gmls_get_trait_name=__yy_method(_inst,gml_Script_s_get_trait_name));(_inst.gmls_get_trait_from_uid=__yy_method(_inst,
gml_Script_s_get_trait_from_uid));(_inst.gmls_get_random_study_subject=__yy_method(_inst,gml_Script_s_get_random_study_subject));(_inst.gmls_get_study_subject_from_uid=__yy_method(_inst,gml_Script_s_get_study_subject_from_uid));(_inst.gmls_get_study_subject_name_from_uid=__yy_method(_inst,gml_Script_s_get_study_subject_name_from_uid));(_inst.gmls_get_minor_name=__yy_method(_inst,gml_Script_s_get_minor_name));(_inst.gmls_get_major_name=__yy_method(_inst,gml_Script_s_get_major_name));(_inst.gmls_get_study_info=__yy_method(_inst,
gml_Script_s_get_study_info));(_inst.gmls_get_random_hometown=__yy_method(_inst,gml_Script_s_get_random_hometown));(_inst.gmls_get_hometown_name=__yy_method(_inst,gml_Script_s_get_hometown_name));(_inst.gmls_get_hometown_from_uid=__yy_method(_inst,gml_Script_s_get_hometown_from_uid));(_inst.gmls_pick_rand_epilogue_uid=__yy_method(_inst,gml_Script_s_pick_rand_epilogue_uid));(_inst.gmls_get_epilogue_name=__yy_method(_inst,gml_Script_s_get_epilogue_name));(_inst.gmls_epilogue_tests=__yy_method(_inst,
gml_Script_s_epilogue_tests));(_inst.gmls_pick_epilogue_story=__yy_method(_inst,gml_Script_s_pick_epilogue_story));(_inst.gmls_epilogue_story_to_str=__yy_method(_inst,gml_Script_s_epilogue_story_to_str));(_inst.gmlbtn_response_player_meeting_academic_coaching=__yy_method(_inst,gml_Script_btn_response_player_meeting_academic_coaching));(_inst.gmls_get_meeting_cost_academic_coaching=__yy_method(_inst,gml_Script_s_get_meeting_cost_academic_coaching));(_inst.gmls_is_co_mode=__yy_method(_inst,gml_Script_s_is_co_mode));
(_inst.gmls_is_co_real=__yy_method(_inst,gml_Script_s_is_co_real));(_inst.gmls_co_real_version_text=__yy_method(_inst,gml_Script_s_co_real_version_text));}function gml_Script_s_college_set_up_globals(_inst,_other){{_inst.gmlco_stats_tab=0;var gmlempty_pa=ds_map_create();ds_map_set(gmlempty_pa,"tag","ACH_DUMMY_EMPTY");ds_map_set(gmlempty_pa,"description",gml_Script_s_str(_inst,_other,"ui_No_Awards"));ds_map_set(gmlempty_pa,"achieved",1);_inst.gmlplayer_awards_emtpy=ds_list_create();ds_list_add(_inst.gmlplayer_awards_emtpy,
gmlempty_pa);}}function gml_Script_s_college_age_index(_inst,_other,argument0){{if(yyfequal(argument0,gml_Script_s_rookie_age_internal(_inst,_other))){{return 0;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return 1;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 2;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 3;
};};return 3;}}function gml_Script_s_college_age_label(_inst,_other,argument0){{var gmllabel=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Year")),":");if(yyfequal(argument0,gml_Script_s_rookie_age_internal(_inst,_other))){{gmllabel=yyfplus(gmllabel,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Freshman"))));};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{gmllabel=yyfplus(gmllabel,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Sophomore"))));};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{gmllabel=yyfplus(gmllabel,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Junior"))));};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{gmllabel=yyfplus(gmllabel,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Senior"))));};};return gmllabel;}}function gml_Script_s_college_age_simple(_inst,
_other,argument0){{var gmlage=ds_map_find_value(argument0,"age");if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return gml_Script_s_str(_inst,_other,"ui_Freshman");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return gml_Script_s_str(_inst,_other,"ui_Sophomore");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return gml_Script_s_str(_inst,_other,"ui_Junior");};};if(yyfequal(gmlage,
yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return gml_Script_s_str(_inst,_other,"ui_Senior");};};return "N/A";}}function gml_Script_s_college_age_simple_short(_inst,_other,argument0){{var gmlage=ds_map_find_value(argument0,"age");if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return gml_Script_s_str(_inst,_other,"ui_Freshman_Short");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return gml_Script_s_str(_inst,
_other,"ui_Sophomore_Short");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return gml_Script_s_str(_inst,_other,"ui_Junior_Short");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return gml_Script_s_str(_inst,_other,"ui_Senior_Short");};};return "N/A";}}function gml_Script_s_college_shorter_season(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};{var __yy__v267=GetWithArray(97);
for(var __yy__v268 in __yy__v267){if(!__yy__v267.hasOwnProperty(__yy__v268))continue;var __yy__v269=__yy__v267[__yy__v268];{}}};}}function gml_Script_s_college_correct_new_player(_inst,_other,argument0){{if(yyfequal(yyInst(_inst,_other,97).gmlco_mode,0)){{return;};};var gmlorigPG=ds_map_find_value(argument0,"percent_grade");var gmlminPG=yyfplus(79,__yy_gml_errCheck(gml_Script_s_my_team_academics(_inst,_other)));var gmlmaxPG=ds_map_find_value(argument0,"max_percent_grade");ds_map_set(argument0,"percent_grade",
irandom_range(gmlminPG,gmlmaxPG));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Player grade corrected [",__yy_gml_errCheck(string(gmlorigPG))),"]->["),__yy_gml_errCheck(string(ds_map_find_value(argument0,"percent_grade")))),"] (aca:"),__yy_gml_errCheck(string(gml_Script_s_my_team_academics(_inst,_other)))),", range:"),__yy_gml_errCheck(string(gmlminPG))),"|"),__yy_gml_errCheck(string(gmlmaxPG))),")"));gml_Script_s_refresh_suspended(_inst,
_other,argument0,false);}}function gml_Script_s_get_random_hobby(_inst,_other){{var gmlnum=ds_list_size(yyInst(_inst,_other,97).gmlhobbies);var gmlhobby=ds_list_find_value(yyInst(_inst,_other,97).gmlhobbies,irandom_range(1,yyfminus(__yy_gml_errCheck(gmlnum),1)));return ds_map_find_value(gmlhobby,"uid");}}function gml_Script_s_get_hobby_name(_inst,_other,argument0,argument1){{var gmluid=ds_map_find_value(argument0,"hobby");var gmlhobby=gml_Script_s_get_hobby_from_uid(_inst,_other,gmluid);if(yyGetBool(argument1)){
{if((yyGetBool(yyfequal(ds_map_find_value(argument0,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))&&(yyGetBool(yyfgreaterequal(gmluid,1000)))){{return gml_Script_s_str(_inst,_other,"ui_FraternityRush");};};};};return ds_map_find_value(gmlhobby,"Society");}}function gml_Script_s_get_hobby_from_uid(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlhobbies));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){
{var gmlhobby=ds_list_find_value(yyInst(_inst,_other,97).gmlhobbies,gmli);if(yyfequal(ds_map_find_value(gmlhobby,"uid"),argument0)){{return gmlhobby;};};}};return undefined;}}function gml_Script_s_is_player_hobby_fraternity(_inst,_other,argument0){{return yyfgreaterequal(ds_map_find_value(argument0,"hobby"),1000);}}function gml_Script_s_get_random_trait(_inst,_other){{var gmlnum=ds_list_size(yyInst(_inst,_other,97).gmltraits);var gmltrait=ds_list_find_value(yyInst(_inst,_other,97).gmltraits,irandom_range(0,
yyfminus(__yy_gml_errCheck(gmlnum),1)));return ds_map_find_value(gmltrait,"uid");}}function gml_Script_s_get_trait_name(_inst,_other,argument0){{var gmluid=ds_map_find_value(argument0,"trait");var gmltrait=gml_Script_s_get_trait_from_uid(_inst,_other,gmluid);return ds_map_find_value(gmltrait,"name");}}function gml_Script_s_get_trait_from_uid(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmltraits));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmltrait=ds_list_find_value(yyInst(_inst,_other,97).gmltraits,gmli);if(yyfequal(ds_map_find_value(gmltrait,"uid"),argument0)){{return gmltrait;};};}};return undefined;}}function gml_Script_s_get_random_study_subject(_inst,_other,argument0){{var gmlinsititutionType="Unknown";var gmltmap=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,yyInst(_inst,_other,97).gmlmyteam_id);if(yyfequal(is_undefined(gmltmap),false)){{var gmlteamType=ds_map_find_value(gmltmap,"type");if(yyfnotequal(gmlteamType,
"0")){{gmlinsititutionType=gmlteamType;};}else {{gmlinsititutionType="Unspecified";};};};};var gmlshortlist=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlmajorminor));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlstudy=ds_list_find_value(yyInst(_inst,_other,97).gmlmajorminor,gmli);if(yyfequal(ds_map_find_value(gmlstudy,"uid"),argument0)){{continue;};};var gmlweight=ds_map_find_value(gmlstudy,
gmlinsititutionType);var gmlw=0;for(;yyfless(gmlw,gmlweight);(g_yyPrePostObject__=gmlw,gmlw=(g_yyPrePostObject__ instanceof Long?gmlw.add(1):++gmlw),g_yyPrePostObject__)){{ds_list_add(gmlshortlist,ds_map_find_value(gmlstudy,"uid"));}};}};var gmlnum=ds_list_size(gmlshortlist);var gmlindex=irandom_range(0,yyfminus(__yy_gml_errCheck(gmlnum),1));var gmlchosenUID=ds_list_find_value(gmlshortlist,gmlindex);ds_list_destroy(gmlshortlist);return gmlchosenUID;}}function gml_Script_s_get_study_subject_from_uid(_inst,
_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlmajorminor));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlsubject=ds_list_find_value(yyInst(_inst,_other,97).gmlmajorminor,gmli);if(yyfequal(ds_map_find_value(gmlsubject,"uid"),argument0)){{return gmlsubject;};};}};return undefined;}}function gml_Script_s_get_study_subject_name_from_uid(_inst,_other,argument0){{var gmlsubject=gml_Script_s_get_study_subject_from_uid(_inst,
_other,argument0);return ds_map_find_value(gmlsubject,"Subject");}}function gml_Script_s_get_minor_name(_inst,_other,argument0,argument1){{var gmluid=ds_map_find_value(argument0,"minor");var gmlsubject=gml_Script_s_get_study_subject_from_uid(_inst,_other,gmluid);if(yyfequal(argument1,false)){{return ds_map_find_value(gmlsubject,"Subject");};};var gmlage=ds_map_find_value(argument0,"age");var gmlunveiled=false;var gmlY1=gml_Script_s_rookie_age_internal(_inst,_other);var gmlY2=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,
_other)),1);var gmlY3=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2);var gmlY4=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3);var ___sw128___=ds_map_find_value(argument0,"subject_reveal");var ___swc129___=-1;if(yyCompareVal(___sw128___,0,g_GMLMathEpsilon,false)==0){___swc129___=0;}else if(yyCompareVal(___sw128___,1,g_GMLMathEpsilon,false)==0){___swc129___=1;}else if(yyCompareVal(___sw128___,2,g_GMLMathEpsilon,false)==0){___swc129___=2;}else if(yyCompareVal(___sw128___,
3,g_GMLMathEpsilon,false)==0){___swc129___=3;}else if(yyCompareVal(___sw128___,4,g_GMLMathEpsilon,false)==0){___swc129___=4;}switch(___swc129___){case 0:{{break;};}case 1:{{if(yyfgreaterequal(gmlage,gmlY4)){{gmlunveiled=true;};};break;};}case 2:{{break;};}case 3:{{if(yyfgreaterequal(gmlage,gmlY3)){{gmlunveiled=true;};};break;};}case 4:{{if(yyfgreaterequal(gmlage,gmlY4)){{gmlunveiled=true;};};break;};}};if(yyGetBool(gmlunveiled)){{return ds_map_find_value(gmlsubject,"Subject");};};return gml_Script_s_str(_inst,
_other,"ui_Undeclared");}}function gml_Script_s_get_major_name(_inst,_other,argument0,argument1){{var gmluid=ds_map_find_value(argument0,"major");var gmlsubject=gml_Script_s_get_study_subject_from_uid(_inst,_other,gmluid);if(yyfequal(argument1,false)){{return ds_map_find_value(gmlsubject,"Subject");};};var gmlage=ds_map_find_value(argument0,"age");var gmlunveiled=false;var gmlY1=gml_Script_s_rookie_age_internal(_inst,_other);var gmlY2=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),
1);var gmlY3=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2);var gmlY4=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3);var ___sw130___=ds_map_find_value(argument0,"subject_reveal");var ___swc131___=-1;if(yyCompareVal(___sw130___,0,g_GMLMathEpsilon,false)==0){___swc131___=0;}else if(yyCompareVal(___sw130___,1,g_GMLMathEpsilon,false)==0){___swc131___=1;}else if(yyCompareVal(___sw130___,2,g_GMLMathEpsilon,false)==0){___swc131___=2;}else if(yyCompareVal(___sw130___,
3,g_GMLMathEpsilon,false)==0){___swc131___=3;}else if(yyCompareVal(___sw130___,4,g_GMLMathEpsilon,false)==0){___swc131___=4;}switch(___swc131___){case 0:{{if(yyfgreaterequal(gmlage,gmlY4)){{gmlunveiled=true;};};break;};}case 1:{{if(yyfgreaterequal(gmlage,gmlY4)){{gmlunveiled=true;};};break;};}case 2:{{if(yyfgreaterequal(gmlage,gmlY3)){{gmlunveiled=true;};};break;};}case 3:{{if(yyfgreaterequal(gmlage,gmlY3)){{gmlunveiled=true;};};break;};}case 4:{{if(yyfgreaterequal(gmlage,gmlY3)){{gmlunveiled=true;};}
;break;};}};if(yyGetBool(gmlunveiled)){{return ds_map_find_value(gmlsubject,"Subject");};};return gml_Script_s_str(_inst,_other,"ui_Undeclared");}}function gml_Script_s_get_study_info(_inst,_other,argument0){{return yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("M:",__yy_gml_errCheck(gml_Script_s_get_major_name(_inst,_other,argument0,false)))," / m:"),__yy_gml_errCheck(gml_Script_s_get_minor_name(_inst,_other,argument0,false)))," Subject reveal #"),__yy_gml_errCheck(string(ds_map_find_value(argument0,"subject_reveal"))));
}}function gml_Script_s_get_random_hometown(_inst,_other){{var gmlnum=ds_list_size(yyInst(_inst,_other,97).gmlcities);var gmlcity=ds_list_find_value(yyInst(_inst,_other,97).gmlcities,irandom_range(0,yyfminus(__yy_gml_errCheck(gmlnum),1)));return ds_map_find_value(gmlcity,"uid");}}function gml_Script_s_get_hometown_name(_inst,_other,argument0){{var gmluid=ds_map_find_value(argument0,"hometown");var gmlcity=gml_Script_s_get_hometown_from_uid(_inst,_other,gmluid);return yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlcity,
"city")),", "),__yy_gml_errCheck(ds_map_find_value(gmlcity,"state")));}}function gml_Script_s_get_hometown_from_uid(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlcities));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlcity=ds_list_find_value(yyInst(_inst,_other,97).gmlcities,gmli);if(yyfequal(ds_map_find_value(gmlcity,"uid"),argument0)){{return gmlcity;};};}};return undefined;}}function gml_Script_s_pick_rand_epilogue_uid(_inst,
_other,argument0){{var gmllist=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlepilogue));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlentry=ds_list_find_value(yyInst(_inst,_other,97).gmlepilogue,gmli);if(yyfequal(ds_map_find_value(gmlentry,"token"),argument0)){{ds_list_add(gmllist,ds_map_find_value(gmlentry,"uid"));};};}};var gmlres=(-4);if(yyfgreater(ds_list_size(gmllist),0)){{var gmlpick=irandom_range(0,
yyfminus(__yy_gml_errCheck(ds_list_size(gmllist)),1));gmlres=ds_list_find_value(gmllist,gmlpick);};};ds_list_destroy(gmllist);return gmlres;}}function gml_Script_s_get_epilogue_name(_inst,_other,argument0,argument1){{var gmlfallback=(-4);var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlepilogue));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlentry=ds_list_find_value(yyInst(_inst,_other,97).gmlepilogue,gmli);if(yyfequal(ds_map_find_value(gmlentry,
"token"),argument0)){{gmlfallback=gmlentry;if(yyfequal(ds_map_find_value(gmlentry,"uid"),argument1)){{return ds_map_find_value(gmlentry,"value");};};};};}};if(yyfnotequal(gmlfallback,(-4))){{return ds_map_find_value(gmlfallback,"value");};};return "UNKNOWN";}}function gml_Script_s_epilogue_tests(_inst,_other){{if(yyfequal(yyInst(_inst,_other,97).gmlepilogue,(-4))){{return;};};gml_Script_slog(_inst,_other,"EPILOGUE TESTS");var gmlres="";var gmlepi_cutStory=gml_Script_s_pick_epilogue_story(_inst,_other,
"epi_cut");gml_Script_slog(_inst,_other,yyfplus(yyfplus("epi_cutStory[",__yy_gml_errCheck(gmlepi_cutStory)),"]"));gmlres=gml_Script_s_epilogue_story_to_str(_inst,_other,gmlepi_cutStory);gml_Script_slog(_inst,_other,gmlres);var gmlepi_graduatedStory1=gml_Script_s_pick_epilogue_story(_inst,_other,"epi_graduated");gml_Script_slog(_inst,_other,yyfplus(yyfplus("epi_graduatedStory1[",__yy_gml_errCheck(gmlepi_graduatedStory1)),"]"));gmlres=gml_Script_s_epilogue_story_to_str(_inst,_other,gmlepi_graduatedStory1);
gml_Script_slog(_inst,_other,gmlres);var gmlepi_graduatedStory2=gml_Script_s_pick_epilogue_story(_inst,_other,"epi_graduated");gml_Script_slog(_inst,_other,yyfplus(yyfplus("epi_graduatedStory2[",__yy_gml_errCheck(gmlepi_graduatedStory2)),"]"));gmlres=gml_Script_s_epilogue_story_to_str(_inst,_other,gmlepi_graduatedStory2);gml_Script_slog(_inst,_other,gmlres);}}function gml_Script_s_pick_epilogue_story(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return "";};};var gmlfile=file_text_open_read(gml_Script_s_select_override_lang_file(_inst,
_other));if(yyfequal(gmlfile,(-1))){{return;};};var gmllist=ds_list_create();while(!yyGetBool(file_text_eof(gmlfile))){{var gmltxt=file_text_read_string(gmlfile);file_text_readln(gmlfile);if(yyGetBool(string_count(argument0,gmltxt))){{var gmlpos=string_pos(" ",gmltxt);gmltxt=string_copy(gmltxt,1,yyfminus(__yy_gml_errCheck(gmlpos),1));ds_list_add(gmllist,gmltxt);};};}};file_text_close(gmlfile);var gmllocKey="";if(yyfgreater(ds_list_size(gmllist),0)){{var gmlpick=irandom_range(0,yyfminus(__yy_gml_errCheck(ds_list_size(gmllist)),
1));gmllocKey=ds_list_find_value(gmllist,gmlpick);};};ds_list_destroy(gmllist);if(yyfequal(gmllocKey,"")){{return "";};};var gmllocStr=gml_Script_s_str(_inst,_other,gmllocKey);var gmlepi_tokens=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlepilogue));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlentry=ds_list_find_value(yyInst(_inst,_other,97).gmlepilogue,gmli);if(yyfequal(ds_list_find_index(gmlepi_tokens,
ds_map_find_value(gmlentry,"token")),(-1))){{ds_list_add(gmlepi_tokens,ds_map_find_value(gmlentry,"token"));};};}};var gmlparam="";var gmli=0;for(;yyfless(gmli,ds_list_size(gmlepi_tokens));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmltok=ds_list_find_value(gmlepi_tokens,gmli);if(yyfequal(string_pos(gmltok,gmllocStr),0)){{continue;};};var gmlparamUID=gml_Script_s_pick_rand_epilogue_uid(_inst,_other,gmltok);gmlparam=yyfplus("|",__yy_gml_errCheck(gmlparamUID));
gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_pick_epilogue_story picked for tag[",__yy_gml_errCheck(argument0)),"] with token["),__yy_gml_errCheck(gmltok)),"] the param["),__yy_gml_errCheck(gmlparamUID)),"] which is ["),__yy_gml_errCheck(gml_Script_s_get_epilogue_name(_inst,_other,gmltok,gmlparamUID))),"]"));break;}};ds_list_destroy(gmlepi_tokens);return yyfplus(__yy_gml_errCheck(gmllocKey),__yy_gml_errCheck(gmlparam));}}function gml_Script_s_epilogue_story_to_str(_inst,
_other,argument0){{if(yyfequal(argument0,"")){{return "";};};var gmlsep_pos=string_pos("|",argument0);if(yyfequal(gmlsep_pos,0)){{return gml_Script_s_str(_inst,_other,argument0);};};var gmllocKey=string_copy(argument0,1,yyfminus(__yy_gml_errCheck(gmlsep_pos),1));var gmlparamUID=string_copy(argument0,yyfplus(__yy_gml_errCheck(gmlsep_pos),1),string_length(argument0));var gmllocStr=gml_Script_s_str(_inst,_other,gmllocKey);var gmlepi_tokens=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,
_other,97).gmlepilogue));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlentry=ds_list_find_value(yyInst(_inst,_other,97).gmlepilogue,gmli);if(yyfequal(ds_list_find_index(gmlepi_tokens,ds_map_find_value(gmlentry,"token")),(-1))){{ds_list_add(gmlepi_tokens,ds_map_find_value(gmlentry,"token"));};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(gmlepi_tokens));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmltok=ds_list_find_value(gmlepi_tokens,gmli);if(yyfequal(string_pos(gmltok,gmllocStr),0)){{continue;};};var gmlparamStr=gml_Script_s_get_epilogue_name(_inst,_other,gmltok,real(gmlparamUID));gmllocStr=string_replace_all(gmllocStr,yyfplus("$",__yy_gml_errCheck(gmltok)),gmlparamStr);break;}};ds_list_destroy(gmlepi_tokens);return gmllocStr;}}function gml_Script_btn_response_player_meeting_academic_coaching(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v270=GetWithArray(97);
for(var __yy__v271 in __yy__v270){if(!__yy__v270.hasOwnProperty(__yy__v271))continue;var __yy__v272=__yy__v270[__yy__v271];{ds_map_set(__yy__v272.gmlplayer_profile,"meetingdone",1);var gmlmeetcost=gml_Script_s_get_meeting_cost_extend_contract(__yy__v272,_inst,__yy__v272.gmlplayer_profile);ds_map_set(__yy__v272.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v272.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));__yy__v272.gmlcoach_credit=yyfminus(__yy__v272.gmlcoach_credit,
gmlmeetcost);if(yyfless(__yy__v272.gmlcoach_credit,0)){__yy__v272.gmlcoach_credit=0;};var gmlnewGrade=yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v272.gmlplayer_profile,"percent_grade"))),10);if(yyfgreater(gmlnewGrade,100)){{gmlnewGrade=100;};};ds_map_set(__yy__v272.gmlplayer_profile,"percent_grade",gmlnewGrade);gml_Script_s_clear_party_meter(__yy__v272,_inst,__yy__v272.gmlplayer_profile);gml_Script_s_savegame(__yy__v272,_inst);room_goto(22);}}};}}function gml_Script_s_get_meeting_cost_academic_coaching(_inst,
_other,argument0){{var gmlpmap=argument0;var gmlgrade=ds_map_find_value(gmlpmap,"percent_grade");if(yyflessequal(gmlgrade,72)){{return 4;};};if(yyflessequal(gmlgrade,79)){{return 3;};};if(yyflessequal(gmlgrade,86)){{return 2;};};if(yyflessequal(gmlgrade,94)){{return 1;};};return 0;}}function gml_Script_s_is_co_mode(_inst,_other){{return yyfgreaterequal(yyInst(_inst,_other,97).gmlco_mode,1);}}function gml_Script_s_is_co_real(_inst,_other){{return yyfgreater(yyInst(_inst,_other,97).gmlco_mode,1);}}function gml_Script_s_co_real_version_text(_inst,
_other){{if(yyGetBool(gml_Script_s_is_co_real(_inst,_other))){return " (real)";};return "";}}function gml_GlobalScript_btn_click_LeagueSchedule(_inst,_other){(_inst.gmlbtn_click_LeagueSchedule=__yy_method(_inst,gml_Script_btn_click_LeagueSchedule));}function gml_Script_btn_click_LeagueSchedule(_inst,_other){{gml_Script_btn_click_LeaguePanel(_inst,_other,2);}}function gml_GlobalScript_btn_click_SchedulePrev(_inst,_other){(_inst.gmlbtn_click_SchedulePrev=__yy_method(_inst,gml_Script_btn_click_SchedulePrev));
}function gml_Script_btn_click_SchedulePrev(_inst,_other){{yyInst(_inst,_other,100245).gmlsweek=clamp(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,100245).gmlsweek),1),1,yyInst(_inst,_other,97).gmllast_week_regular);gml_Script_s_populate_schedulebox(_inst,_other);}}function gml_GlobalScript_btn_click_ScheduleNext(_inst,_other){(_inst.gmlbtn_click_ScheduleNext=__yy_method(_inst,gml_Script_btn_click_ScheduleNext));}function gml_Script_btn_click_ScheduleNext(_inst,_other){{yyInst(_inst,_other,100245).gmlsweek=clamp(yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,100245).gmlsweek),1),1,yyInst(_inst,_other,97).gmllast_week_regular);gml_Script_s_populate_schedulebox(_inst,_other);}}function gml_GlobalScript_btn_click_PlayOffs(_inst,_other){(_inst.gmlbtn_click_PlayOffs=__yy_method(_inst,gml_Script_btn_click_PlayOffs));}function gml_Script_btn_click_PlayOffs(_inst,_other){{if(yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){room_goto(19);}else {room_goto(20);};}}function gml_GlobalScript_btn_click_PlayOffs_Back(_inst,_other){(_inst.gmlbtn_click_PlayOffs_Back=__yy_method(_inst,
gml_Script_btn_click_PlayOffs_Back));}function gml_Script_btn_click_PlayOffs_Back(_inst,_other){{yyInst(_inst,_other,97).gmlplayoff_proceed=false;room_goto(16);}}function gml_GlobalScript_btn_click_PlayOffsPlay(_inst,_other){(_inst.gmlbtn_click_PlayOffsPlay=__yy_method(_inst,gml_Script_btn_click_PlayOffsPlay));}function gml_Script_btn_click_PlayOffsPlay(_inst,_other){{if(!yyGetBool(gml_Script_s_do_schedule(_inst,_other,false))){return;};yyInst(_inst,_other,97).gmlplayoff_proceed=false;yyInst(_inst,
_other,97).gmlstage=7;gml_Script_s_play(_inst,_other,1);}}function gml_GlobalScript_btn_click_PlayOffsSkip(_inst,_other){(_inst.gmlbtn_click_PlayOffsSkip=__yy_method(_inst,gml_Script_btn_click_PlayOffsSkip));}function gml_Script_btn_click_PlayOffsSkip(_inst,_other){{{var __yy__v273=GetWithArray(97);for(var __yy__v274 in __yy__v273){if(!__yy__v273.hasOwnProperty(__yy__v274))continue;var __yy__v275=__yy__v273[__yy__v274];{while((yyGetBool(!yyGetBool(gml_Script_s_get_human_fixture_by_week(__yy__v275,_inst,
__yy__v275.gmlweek))))&&(yyGetBool(yyflessequal(__yy__v275.gmlweek,gml_Script_s_get_week_superbowl(__yy__v275,_inst))))){{gml_Script_slog(__yy__v275,_inst,yyfplus("SKIP PLAY-OFFS wk=",__yy_gml_errCheck(string(__yy__v275.gmlweek))));if(!yyGetBool(gml_Script_s_do_schedule(__yy__v275,_inst,false))){return;};(g_yyPrePostObject__=__yy__v275.gmlweek,__yy__v275.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v275.gmlweek.add(1):++__yy__v275.gmlweek),g_yyPrePostObject__);}};(g_yyPrePostObject__=__yy__v275.gmlweek,
__yy__v275.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v275.gmlweek.subtract(1):--__yy__v275.gmlweek),g_yyPrePostObject__);var gmlsz=0;if(yyfgreaterequal(__yy__v275.gmlweek,gml_Script_s_get_week_superbowl(__yy__v275,_inst))){{gmlsz=1;if(yyfgreater(__yy__v275.gmlyear,1)){(g_yyPrePostObject__=gmlsz,gmlsz=(g_yyPrePostObject__ instanceof Long?gmlsz.add(1):++gmlsz),g_yyPrePostObject__);};};};if((yyGetBool(yyInst(_inst,_other,97).gmlfr_mode))||(yyGetBool(gml_Script_s_is_co_mode(__yy__v275,_inst)))){
{while(yyfgreater(ds_list_size(__yy__v275.gmlnewslist),gmlsz)){ds_list_delete(__yy__v275.gmlnewslist,0)};};}else {{while(yyfgreater(ds_list_size(__yy__v275.gmllist_news_dyn),gmlsz)){ds_list_delete(__yy__v275.gmllist_news_dyn,0)};};};__yy__v275.gmlplayoff_proceed=false;__yy__v275.gmlstage=7;gml_Script_s_play(__yy__v275,_inst,1);}}};}}function gml_GlobalScript_btn_click_Change_Favourite(_inst,_other){(_inst.gmlbtn_click_Change_Favourite=__yy_method(_inst,gml_Script_btn_click_Change_Favourite));}function gml_Script_btn_click_Change_Favourite(_inst,
_other){{{var __yy__v276=GetWithArray(97);for(var __yy__v277 in __yy__v276){if(!__yy__v276.hasOwnProperty(__yy__v277))continue;var __yy__v278=__yy__v276[__yy__v277];{__yy__v278.gmlfname=yyInst(_inst,_other,100025).gmltext;__yy__v278.gmllname=yyInst(_inst,_other,100026).gmltext;__yy__v278.gmlfave_team_check=yyInst(_inst,_other,100037).gmlstate;}}};room_goto(3);}}function gml_GlobalScript_btn_click_ChooseAFC(_inst,_other){(_inst.gmlbtn_click_ChooseAFC=__yy_method(_inst,gml_Script_btn_click_ChooseAFC));}
function gml_Script_btn_click_ChooseAFC(_inst,_other){{{var __yy__v279=GetWithArray(126);for(var __yy__v280 in __yy__v279){if(!__yy__v279.hasOwnProperty(__yy__v280))continue;var __yy__v281=__yy__v279[__yy__v280];{__yy__v281.gmlconference=0;if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlweek,1)))))||(yyGetBool(global.gmlexhibition))){gml_Script_s_update_team_buttons(__yy__v281,_inst);}else {gml_Script_s_update_job_offer_buttons(__yy__v281,
_inst);};}}};}}function gml_GlobalScript_btn_click_ChooseNFC(_inst,_other){(_inst.gmlbtn_click_ChooseNFC=__yy_method(_inst,gml_Script_btn_click_ChooseNFC));}function gml_Script_btn_click_ChooseNFC(_inst,_other){{{var __yy__v282=GetWithArray(126);for(var __yy__v283 in __yy__v282){if(!__yy__v282.hasOwnProperty(__yy__v283))continue;var __yy__v284=__yy__v282[__yy__v283];{__yy__v284.gmlconference=1;if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,
97).gmlweek,1)))))||(yyGetBool(global.gmlexhibition))){gml_Script_s_update_team_buttons(__yy__v284,_inst);}else {gml_Script_s_update_job_offer_buttons(__yy__v284,_inst);};}}};}}function gml_GlobalScript_btn_click_ChooseTeam(_inst,_other){(_inst.gmlbtn_click_ChooseTeam=__yy_method(_inst,gml_Script_btn_click_ChooseTeam));(_inst.gmlbtn_click_ChooseTeamExhibition=__yy_method(_inst,gml_Script_btn_click_ChooseTeamExhibition));}function gml_Script_btn_click_ChooseTeam(_inst,_other){{var gmlchoose_teamuid=_inst.gmluid;
{var __yy__v285=GetWithArray(97);for(var __yy__v286 in __yy__v285){if(!__yy__v285.hasOwnProperty(__yy__v286))continue;var __yy__v287=__yy__v285[__yy__v286];{var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v287.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v287.gmlteamlist,gmlt);if(yyfequal(real(ds_map_find_value(gmlteam,"uid")),gmlchoose_teamuid)){{__yy__v287.gmlmyteam=gmlteam;};};}};__yy__v287.gmlfavourite_team_id=ds_map_find_value(__yy__v287.gmlmyteam,
"uid");if((yyGetBool(__yy__v287.gmlfr_mode))&&(yyGetBool(yyfgreater(18,__yy__v287.gmlweek)))){{room_goto(2);return;};}else {if((yyGetBool(gml_Script_s_is_co_mode(__yy__v287,_inst)))&&(yyGetBool(yyfgreater(18,__yy__v287.gmlweek)))){{room_goto(2);return;};}else {{__yy__v287.gmlmyteam_id=real(ds_map_find_value(__yy__v287.gmlmyteam,"uid"));__yy__v287.gmlmyconference=real(ds_map_find_value(__yy__v287.gmlmyteam,"conference"));__yy__v287.gmlmydivision=real(ds_map_find_value(__yy__v287.gmlmyteam,"division"));
ds_list_destroy(__yy__v287.gmlfixturelist);__yy__v287.gmlfixturelist=(-1);__yy__v287.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v287,_inst);};};};}}};room_goto(14);}}function gml_Script_btn_click_ChooseTeamExhibition(_inst,_other){{var ___sw134___=global.gmlexh_choosing;var ___swc135___=-1;if(yyCompareVal(___sw134___,0,g_GMLMathEpsilon,false)==0){___swc135___=0;}else if(yyCompareVal(___sw134___,1,g_GMLMathEpsilon,false)==0){___swc135___=1;}switch(___swc135___){case 0:{ds_map_set(global.gmlexh_fix,
"away_team",_inst.gmluid);break;}case 1:{ds_map_set(global.gmlexh_fix,"home_team",_inst.gmluid);break;}};room_goto(47);}}function gml_GlobalScript_btn_click_ChooseTeamNew(_inst,_other){(_inst.gmlbtn_click_ChooseTeamNew=__yy_method(_inst,gml_Script_btn_click_ChooseTeamNew));(_inst.gmlbtn_click_qb_mode_ChooseTeamNew=__yy_method(_inst,gml_Script_btn_click_qb_mode_ChooseTeamNew));}function gml_Script_btn_click_ChooseTeamNew(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_ChooseTeamNew");var gmlchoose_teamuid=_inst.gmluid;
{var __yy__v288=GetWithArray(97);for(var __yy__v289 in __yy__v288){if(!__yy__v288.hasOwnProperty(__yy__v289))continue;var __yy__v290=__yy__v288[__yy__v289];{var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v290.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v290.gmlteamlist,gmlt);if(yyfequal(ds_map_find_value(gmlteam,"uid"),gmlchoose_teamuid)){{__yy__v290.gmlnewteam=gmlteam;var gmlmsg=gml_Script_s_str(__yy__v290,
_inst,"msg_ChooseNewTeam");gmlmsg=string_replace(gmlmsg,"$teamname",ds_map_find_value(gmlteam,"name"));gml_Script_s_create_message(__yy__v290,_inst,"",gmlmsg,gml_Script_s_str(__yy__v290,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v290,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_btn_response_confirm_new_team,global.gmlc_background,1);};};}};}}};}}function gml_Script_btn_click_qb_mode_ChooseTeamNew(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_qb_mode_ChooseTeamNew");var gmlchoose_teamuid=_inst.gmluid;
{var __yy__v291=GetWithArray(97);for(var __yy__v292 in __yy__v291){if(!__yy__v291.hasOwnProperty(__yy__v292))continue;var __yy__v293=__yy__v291[__yy__v292];{var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v293.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v293.gmlteamlist,gmlt);if(yyfequal(ds_map_find_value(gmlteam,"uid"),gmlchoose_teamuid)){{__yy__v293.gmlnewteam=gmlteam;room_goto(42);};};
}};}}};}}function gml_GlobalScript_btn_click_ChooseReject(_inst,_other){(_inst.gmlbtn_click_ChooseReject=__yy_method(_inst,gml_Script_btn_click_ChooseReject));}function gml_Script_btn_click_ChooseReject(_inst,_other){{gml_Script_s_start_new_season(_inst,_other,false);}}function gml_GlobalScript_btn_click_Continue(_inst,_other){(_inst.gmlbtn_click_Continue=__yy_method(_inst,gml_Script_btn_click_Continue));(_inst.gmlbtn_click_SimGame=__yy_method(_inst,gml_Script_btn_click_SimGame));}function gml_Script_btn_click_Continue(_inst,
_other){{gml_Script_s_play(_inst,_other,1);}}function gml_Script_btn_click_SimGame(_inst,_other){{yyInst(_inst,_other,97).gmlsim_action=true;gml_Script_s_play(_inst,_other,1);}}function gml_GlobalScript_btn_click_Details_Continue(_inst,_other){(_inst.gmlbtn_click_Details_Continue=__yy_method(_inst,gml_Script_btn_click_Details_Continue));}function gml_Script_btn_click_Details_Continue(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_Details_Continue");{var __yy__v294=GetWithArray(97);for(var __yy__v295 in __yy__v294){
if(!__yy__v294.hasOwnProperty(__yy__v295))continue;var __yy__v296=__yy__v294[__yy__v295];{__yy__v296.gmlfname=yyInst(_inst,_other,100025).gmltext;__yy__v296.gmllname=yyInst(_inst,_other,100026).gmltext;if(yyfequal(__yy__v296.gmlfname,"")){__yy__v296.gmlfname=gml_Script_s_get_random_first_name(__yy__v296,_inst,true);};if(yyfequal(__yy__v296.gmllname,"")){__yy__v296.gmllname=gml_Script_s_get_random_last_name(__yy__v296,_inst);};__yy__v296.gmlfname_coach=gml_Script_s_get_random_first_name(__yy__v296,
_inst,true);__yy__v296.gmllname_coach=gml_Script_s_get_random_last_name(__yy__v296,_inst);__yy__v296.gmlfavourite_team_id=real(ds_map_find_value(__yy__v296.gmlmyteam,"uid"));if(yyfequal(yyInst(_inst,_other,100037).gmlstate,true)){{gml_Script_slog(__yy__v296,_inst,"Choosing fave team!");__yy__v296.gmlmyteam_id=real(ds_map_find_value(__yy__v296.gmlmyteam,"uid"));__yy__v296.gmlmyconference=real(ds_map_find_value(__yy__v296.gmlmyteam,"conference"));__yy__v296.gmlmydivision=real(ds_map_find_value(__yy__v296.gmlmyteam,
"division"));ds_map_set(__yy__v296.gmlmyteam,"offense",1);ds_map_set(__yy__v296.gmlmyteam,"defense",1);if((yyGetBool(__yy__v296.gmlfr_mode))&&(yyGetBool(1))){gml_Script_s_skip_to_week(__yy__v296,_inst,18);};if((yyGetBool(gml_Script_s_is_co_mode(__yy__v296,_inst)))&&(yyGetBool(1))){gml_Script_s_skip_to_week(__yy__v296,_inst,18);};};}else {{if((yyGetBool(__yy__v296.gmlfr_mode))&&(yyGetBool(1))){gml_Script_s_skip_to_week(__yy__v296,_inst,18);};if((yyGetBool(gml_Script_s_is_co_mode(__yy__v296,_inst)))&&(yyGetBool(1))){
gml_Script_s_skip_to_week(__yy__v296,_inst,18);};gml_Script_slog(__yy__v296,_inst,"Choosing random team!");var gmlsorted_teams=ds_list_create();ds_list_copy(gmlsorted_teams,__yy__v296.gmlteamlist);gmlsorted_teams=gml_Script_s_sort_teams(__yy__v296,_inst,gmlsorted_teams,0,true);var gmli=0;for(;yyfless(gmli,ds_list_size(gmlsorted_teams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{__yy__v296.gmlmyteam=ds_list_find_value(gmlsorted_teams,
gmli);__yy__v296.gmlmyteam_id=real(ds_map_find_value(__yy__v296.gmlmyteam,"uid"));__yy__v296.gmlmyconference=real(ds_map_find_value(__yy__v296.gmlmyteam,"conference"));__yy__v296.gmlmydivision=real(ds_map_find_value(__yy__v296.gmlmyteam,"division"));if((yyGetBool(yyfnotequal(__yy__v296.gmlmyteam_id,__yy__v296.gmlfavourite_team_id)))&&(yyGetBool(!yyGetBool(irandom(1))))){break;};}};ds_list_destroy(gmlsorted_teams);gmlsorted_teams=(-1);};};gml_Script_s_set_team_morale(__yy__v296,_inst,60,90);var gmli=0;
for(;yyfless(gmli,ds_list_size(__yy__v296.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v296.gmlfixturelist,gmli));ds_list_set(__yy__v296.gmlfixturelist,gmli,(-1));}};ds_list_destroy(__yy__v296.gmlfixturelist);__yy__v296.gmlfixturelist=(-1);__yy__v296.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v296,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v296.gmlroster));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{__yy__v296.gmlpmap=ds_list_find_value(__yy__v296.gmlroster,gmli);ds_map_set(__yy__v296.gmlpmap,"teamid",__yy__v296.gmlmyteam_id);ds_map_set(__yy__v296.gmlpmap,"condition",irandom_range(80,100));}};var gmlweeks_rem=1;var gmlmsg=gml_Script_s_str(__yy__v296,_inst,"news_NewCareer");if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{gmlmsg=gml_Script_s_str(__yy__v296,_inst,"news_NewCareerQB");gmlmsg=string_replace_all(gmlmsg,
"$teamname",gml_Script_s_get_team_name_by_id(__yy__v296,_inst,__yy__v296.gmlmyteam_id));var gmlpick=irandom(95);var gmlrnd=floor(yyfdivide(__yy_gml_errCheck(gmlpick),32));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(__yy__v296.gmlfname)," "),__yy_gml_errCheck(__yy__v296.gmllname)));gmlmsg=string_replace(gmlmsg,"$coachname",yyfplus(yyfplus(__yy_gml_errCheck(__yy__v296.gmlfname_coach)," "),__yy_gml_errCheck(__yy__v296.gmllname_coach)));gmlmsg=string_replace(gmlmsg,"$num",
string(yyfplus(__yy_gml_errCheck(gmlpick),1)));gmlmsg=string_replace(gmlmsg,"$round",string(yyfplus(__yy_gml_errCheck(gmlrnd),1)));gml_Script_s_set_up_qb_pmap(__yy__v296,_inst);};}else {{gmlmsg=string_replace_all(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v296,_inst,__yy__v296.gmlmyteam_id));gmlmsg=string_replace(gmlmsg,"$coachname",yyfplus(yyfplus(__yy_gml_errCheck(__yy__v296.gmlfname)," "),__yy_gml_errCheck(__yy__v296.gmllname)));gmlmsg=string_replace(gmlmsg,"$num",string(gmlweeks_rem));
};};if(yyfgreater(gmlweeks_rem,1)){gmlmsg=string_replace(gmlmsg,"$weeks",string_lower(gml_Script_s_str(__yy__v296,_inst,"ui_Weeks")));}else {gmlmsg=string_replace(gmlmsg,"$weeks",string_lower(gml_Script_s_str(__yy__v296,_inst,"ui_Week")));};gmlmsg=string_replace(gmlmsg,"$lname",__yy__v296.gmllname);gmlmsg=string_replace(gmlmsg,"$randomcollegename",gml_Script_s_get_random_college_name(__yy__v296,_inst));gml_Script_s_add_news(__yy__v296,_inst,gmlmsg);}}};gml_Script_s_play(_inst,_other,0);}}function gml_GlobalScript_s_uniform_helpers(_inst,
_other){(_inst.gmls_uniforms_default_file=__yy_method(_inst,gml_Script_s_uniforms_default_file));(_inst.gmls_extract_uniform_cols_to_record=__yy_method(_inst,gml_Script_s_extract_uniform_cols_to_record));(_inst.gmls_uniform_cols_to_record=__yy_method(_inst,gml_Script_s_uniform_cols_to_record));(_inst.gmls_uniform_cols_from_record=__yy_method(_inst,gml_Script_s_uniform_cols_from_record));}function gml_Script_s_uniforms_default_file(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){
{return "uniforms_default_CO.txt";};};return "uniforms_default.txt";}}function gml_Script_s_extract_uniform_cols_to_record(_inst,_other,argument0,argument1){{var gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,argument0,gmluniform,0,argument1);var gmlrecord=gml_Script_s_uniform_cols_to_record(_inst,_other,gmluniform);instance_destroy(_inst,gmluniform);return gmlrecord;}}function gml_Script_s_uniform_cols_to_record(_inst,
_other,argument0){{return yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlhelmet[__yy_gml_array_check_index(2,yyInst(_inst,_other,argument0).gmlhelmet)])),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlhelmet[__yy_gml_array_check_index(1,yyInst(_inst,_other,argument0).gmlhelmet)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlhelmet[__yy_gml_array_check_index(0,
yyInst(_inst,_other,argument0).gmlhelmet)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlshirt[__yy_gml_array_check_index(2,yyInst(_inst,_other,argument0).gmlshirt)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlshirt[__yy_gml_array_check_index(1,yyInst(_inst,_other,argument0).gmlshirt)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlshirt[__yy_gml_array_check_index(0,yyInst(_inst,_other,argument0).gmlshirt)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,
_other,argument0).gmlpants[__yy_gml_array_check_index(2,yyInst(_inst,_other,argument0).gmlpants)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlpants[__yy_gml_array_check_index(1,yyInst(_inst,_other,argument0).gmlpants)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlpants[__yy_gml_array_check_index(0,yyInst(_inst,_other,argument0).gmlpants)]))),"|");}}function gml_Script_s_uniform_cols_from_record(_inst,_other,argument0){{var gmli,gmltext,gmlarrI;gmlarrI=0;
gmltext="";_inst.gmlarr=__yy_gml_array_create([]);gmli=1;for(;yyfless(gmli,yyfplus(__yy_gml_errCheck(string_length(argument0)),1));gmli=yyfplus(gmli,1)){{if(yyfnotequal(string_char_at(argument0,gmli),"|")){{gmltext=yyfplus(gmltext,string_char_at(argument0,gmli));};}else {{_inst.gmlarr=__yy_gml_array_check(_inst.gmlarr,4070340835);_inst.gmlarr[__yy_gml_array_check_index_set(gmlarrI)]=real(gmltext);(g_yyPrePostObject__=gmlarrI,gmlarrI=(g_yyPrePostObject__ instanceof Long?gmlarrI.add(1):++gmlarrI),g_yyPrePostObject__);
gmltext="";};};}};return _inst.gmlarr;}}function gml_GlobalScript_btn_click_FrontOffice(_inst,_other){(_inst.gmlbtn_click_FrontOffice=__yy_method(_inst,gml_Script_btn_click_FrontOffice));}function gml_Script_btn_click_FrontOffice(_inst,_other){{room_goto(9);}}function gml_GlobalScript_btn_click_FreeAgents2(_inst,_other){(_inst.gmlbtn_click_FreeAgents2=__yy_method(_inst,gml_Script_btn_click_FreeAgents2));}function gml_Script_btn_click_FreeAgents2(_inst,_other){{yyInst(_inst,_other,97).gmlroster_from_store=true;
room_goto(8);}}function gml_GlobalScript_btn_click_HallOfFame(_inst,_other){(_inst.gmlbtn_click_HallOfFame=__yy_method(_inst,gml_Script_btn_click_HallOfFame));}function gml_Script_btn_click_HallOfFame(_inst,_other){{room_goto(10);}}function gml_GlobalScript_btn_click_Home(_inst,_other){(_inst.gmlbtn_click_Home=__yy_method(_inst,gml_Script_btn_click_Home));(_inst.gmlbtn_click_Options_Exit=__yy_method(_inst,gml_Script_btn_click_Options_Exit));}function gml_Script_btn_click_Home(_inst,_other){{yyInst(_inst,
_other,97).gmlstage=1;room_goto(14);}}function gml_Script_btn_click_Options_Exit(_inst,_other){{gml_Script_s_save_options(_inst,_other);gml_Script_btn_click_Home(_inst,_other);}}function gml_GlobalScript_btn_click_League(_inst,_other){(_inst.gmlbtn_click_League=__yy_method(_inst,gml_Script_btn_click_League));}function gml_Script_btn_click_League(_inst,_other){{room_goto(16);}}function gml_GlobalScript_btn_click_Options(_inst,_other){(_inst.gmlbtn_click_Options=__yy_method(_inst,gml_Script_btn_click_Options));
}function gml_Script_btn_click_Options(_inst,_other){{room_goto(18);}}function gml_GlobalScript_btn_click_Profile(_inst,_other){(_inst.gmlbtn_click_Profile=__yy_method(_inst,gml_Script_btn_click_Profile));}function gml_Script_btn_click_Profile(_inst,_other){{room_goto(26);}}function gml_GlobalScript_btn_click_ChooseFace(_inst,_other){(_inst.gmlbtn_click_ChooseFace=__yy_method(_inst,gml_Script_btn_click_ChooseFace));(_inst.gmls_goto_rm_choose_face=__yy_method(_inst,gml_Script_s_goto_rm_choose_face));
}function gml_Script_btn_click_ChooseFace(_inst,_other){{yyInst(_inst,_other,97).gmlfname=yyInst(_inst,_other,100025).gmltext;yyInst(_inst,_other,97).gmllname=yyInst(_inst,_other,100026).gmltext;room_goto(4);}}function gml_Script_s_goto_rm_choose_face(_inst,_other){{gml_Script_s_edit_confirm_profile(_inst,_other);room_goto(4);}}function gml_GlobalScript_btn_click_ChooseFacePrev(_inst,_other){(_inst.gmlbtn_click_ChooseFacePrev=__yy_method(_inst,gml_Script_btn_click_ChooseFacePrev));}function gml_Script_btn_click_ChooseFacePrev(_inst,
_other){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlface_page,yyInst(_inst,_other,97).gmlface_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlface_page.subtract(1):--yyInst(_inst,_other,97).gmlface_page),g_yyPrePostObject__);if(yyfless(yyInst(_inst,_other,97).gmlface_page,1)){yyInst(_inst,_other,97).gmlface_page=1;};room_goto(4);}}function gml_GlobalScript_btn_click_ChooseFaceNext(_inst,_other){(_inst.gmlbtn_click_ChooseFaceNext=__yy_method(_inst,gml_Script_btn_click_ChooseFaceNext));
}function gml_Script_btn_click_ChooseFaceNext(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlface_page,yyInst(_inst,_other,97).gmlface_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlface_page.add(1):++yyInst(_inst,_other,97).gmlface_page),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,97).gmlface_page,yyInst(_inst,_other,127).gmlmax_pages)){yyInst(_inst,_other,97).gmlface_page=yyInst(_inst,_other,127).gmlmax_pages;};room_goto(4);}}function gml_GlobalScript_btn_click_ChooseFaceDone(_inst,
_other){(_inst.gmlbtn_click_ChooseFaceDone=__yy_method(_inst,gml_Script_btn_click_ChooseFaceDone));(_inst.gmlbtn_click_cancel_chooseface=__yy_method(_inst,gml_Script_btn_click_cancel_chooseface));}function gml_Script_btn_click_ChooseFaceDone(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlplayer_profile)){{ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"skin",_inst.gmlskin);ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"face_x",_inst.gmlface_x);ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,
"face_y",_inst.gmlface_y);var ___sw140___=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position");var ___swc141___=-1;if(yyCompareVal(___sw140___,100,g_GMLMathEpsilon,false)==0){___swc141___=0;}else if(yyCompareVal(___sw140___,102,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw140___,101,g_GMLMathEpsilon,false)==0){___swc141___=1;}switch(___swc141___){case 0:{yyInst(_inst,_other,97).gmlmyface_x=_inst.gmlface_x;yyInst(_inst,_other,97).gmlmyface_y=_inst.gmlface_y;gml_Script_btn_click_EditProfile(_inst,
_other);break;}case 1:{gml_Script_btn_click_EditProfile(_inst,_other);break;}default :{gml_Script_btn_click_EditProfile(_inst,_other);break;}};gml_Script_s_savegame(_inst,_other);};}else {{yyInst(_inst,_other,97).gmlmy_skin=_inst.gmlskin;yyInst(_inst,_other,97).gmlmyface_x=_inst.gmlface_x;yyInst(_inst,_other,97).gmlmyface_y=_inst.gmlface_y;gml_Script_slog(_inst,_other,yyfplus("skin = ",__yy_gml_errCheck(string(_inst.gmlskin))));gml_Script_slog(_inst,_other,yyfplus("face_x = ",__yy_gml_errCheck(string(_inst.gmlface_x))));
gml_Script_slog(_inst,_other,yyfplus("face_y = ",__yy_gml_errCheck(string(_inst.gmlface_y))));if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlweek,1)))){room_goto(2);}else {room_goto(14);};};};}}function gml_Script_btn_click_cancel_chooseface(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlplayer_profile)){{var ___sw142___=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position");var ___swc143___=-1;if(yyCompareVal(___sw142___,
100,g_GMLMathEpsilon,false)==0){___swc143___=0;}else if(yyCompareVal(___sw142___,102,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw142___,101,g_GMLMathEpsilon,false)==0){___swc143___=1;}switch(___swc143___){case 0:{gml_Script_btn_click_EditProfile(_inst,_other);break;}case 1:{gml_Script_btn_click_EditProfile(_inst,_other);break;}default :{gml_Script_btn_click_EditProfile(_inst,_other);break;}};};}else {{if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,
97).gmlweek,1)))){room_goto(2);}else {room_goto(14);};};};}}function gml_GlobalScript_btn_click_Uniforms(_inst,_other){(_inst.gmlbtn_click_Uniforms=__yy_method(_inst,gml_Script_btn_click_Uniforms));}function gml_Script_btn_click_Uniforms(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlforce_uniforms,yyInst(_inst,_other,97).gmlforce_uniforms=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlforce_uniforms.add(1):++yyInst(_inst,_other,97).gmlforce_uniforms),g_yyPrePostObject__);
if(yyfgreater(yyInst(_inst,_other,97).gmlforce_uniforms,3)){yyInst(_inst,_other,97).gmlforce_uniforms=0;};room_goto(21);}}function gml_GlobalScript_btn_click_Uniform_Away(_inst,_other){(_inst.gmlbtn_click_Uniform_Away=__yy_method(_inst,gml_Script_btn_click_Uniform_Away));}function gml_Script_btn_click_Uniform_Away(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlforce_uniform_sel1,yyInst(_inst,_other,97).gmlforce_uniform_sel1=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlforce_uniform_sel1.add(1):++yyInst(_inst,
_other,97).gmlforce_uniform_sel1),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,97).gmlforce_uniform_sel1,3)){yyInst(_inst,_other,97).gmlforce_uniform_sel1=0;};{var __yy__v297=GetWithArray(143);for(var __yy__v298 in __yy__v297){if(!__yy__v297.hasOwnProperty(__yy__v298))continue;var __yy__v299=__yy__v297[__yy__v298];instance_destroy(__yy__v299);}};{var __yy__v300=GetWithArray(16);for(var __yy__v301 in __yy__v300){if(!__yy__v300.hasOwnProperty(__yy__v301))continue;var __yy__v302=__yy__v300[__yy__v301];
instance_destroy(__yy__v302);}};if(yyfequal(g_pBuiltIn.get_current_room(),21)){instance_create_layer(0,0,"Instances",143);}else {instance_create_layer(0,0,"Instances",16);};}}function gml_GlobalScript_btn_click_Uniform_Home(_inst,_other){(_inst.gmlbtn_click_Uniform_Home=__yy_method(_inst,gml_Script_btn_click_Uniform_Home));}function gml_Script_btn_click_Uniform_Home(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlforce_uniform_sel2,yyInst(_inst,_other,97).gmlforce_uniform_sel2=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,
_other,97).gmlforce_uniform_sel2.add(1):++yyInst(_inst,_other,97).gmlforce_uniform_sel2),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,97).gmlforce_uniform_sel2,3)){yyInst(_inst,_other,97).gmlforce_uniform_sel2=0;};{var __yy__v303=GetWithArray(143);for(var __yy__v304 in __yy__v303){if(!__yy__v303.hasOwnProperty(__yy__v304))continue;var __yy__v305=__yy__v303[__yy__v304];instance_destroy(__yy__v305);}};{var __yy__v306=GetWithArray(16);for(var __yy__v307 in __yy__v306){if(!__yy__v306.hasOwnProperty(__yy__v307))continue;
var __yy__v308=__yy__v306[__yy__v307];instance_destroy(__yy__v308);}};if(yyfequal(g_pBuiltIn.get_current_room(),21)){instance_create_layer(0,0,"Instances",143);}else {instance_create_layer(0,0,"Instances",16);};}}function gml_GlobalScript__poki_rewarded_ad(_inst,_other){(_inst.gml_poki_rewarded_ad=__yy_method(_inst,gml_Script__poki_rewarded_ad));}function gml_Script__poki_rewarded_ad(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,"_poki_rewarded_ad");if(yyfequal(argument1,"rewarded_break")){
{if(yyGetBool(argument0)){{var gmlcx1=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100470).sprite_width),0.16)));var gmlcx2=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100470).sprite_width),0.5)));var gmlcx3=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100470).sprite_width),
0.82)));var gmlcy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100470).sprite_height),0.5)));var gmldx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100471).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100471).sprite_width),0.5)));var gmldy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100471).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100471).sprite_height),0.5)));var gmlcoins=1;
gml_Script_s_create_credit(_inst,_other,gmlcx1,gmlcy,gmldx,gmldy,1,1,(-4),true);if(yyfgreater(yyInst(_inst,_other,97).gmlfans,33)){{gmlcoins=2;gml_Script_s_create_credit(_inst,_other,gmlcx2,gmlcy,gmldx,gmldy,1,1,(-4),false);};};if(yyfgreater(yyInst(_inst,_other,97).gmlfans,66)){{gmlcoins=3;gml_Script_s_create_credit(_inst,_other,gmlcx3,gmlcy,gmldx,gmldy,1,1,(-4),false);};};ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlcoins)));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,gmlcoins);audio_play_sound(17,1,false);};};};};gml_Script_poki_resume(_inst,_other);}}function gml_GlobalScript_btn_click_BallStyle(_inst,_other){(_inst.gmlbtn_click_BallStyle=__yy_method(_inst,gml_Script_btn_click_BallStyle));}function gml_Script_btn_click_BallStyle(_inst,_other){{{var __yy__v309=GetWithArray(97);
for(var __yy__v310 in __yy__v309){if(!__yy__v309.hasOwnProperty(__yy__v310))continue;var __yy__v311=__yy__v309[__yy__v310];{__yy__v311.gmlop_ball=yyfplus(__yy_gml_errCheck(real(__yy__v311.gmlop_ball)),1);if(yyfgreater(__yy__v311.gmlop_ball,5)){__yy__v311.gmlop_ball=0;};{var __yy__v312=GetWithArray(100386);for(var __yy__v313 in __yy__v312){if(!__yy__v312.hasOwnProperty(__yy__v313))continue;var __yy__v314=__yy__v312[__yy__v313];__yy__v314.gmlimage_num=__yy__v311.gmlop_ball;}};{var __yy__v315=GetWithArray(100384);
for(var __yy__v316 in __yy__v315){if(!__yy__v315.hasOwnProperty(__yy__v316))continue;var __yy__v317=__yy__v315[__yy__v316];__yy__v317.gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v317,__yy__v311,"ui_Ball"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(__yy__v311.gmlop_ball),1))));}};{var __yy__v318=GetWithArray(100776);for(var __yy__v319 in __yy__v318){if(!__yy__v318.hasOwnProperty(__yy__v319))continue;var __yy__v320=__yy__v318[__yy__v319];__yy__v320.gmlimage_num=__yy__v311.gmlop_ball;
}};{var __yy__v321=GetWithArray(100774);for(var __yy__v322 in __yy__v321){if(!__yy__v321.hasOwnProperty(__yy__v322))continue;var __yy__v323=__yy__v321[__yy__v322];__yy__v323.gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v323,__yy__v311,"ui_Ball"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(__yy__v311.gmlop_ball),1))));}};}}};}}function gml_GlobalScript_btn_click_LeagueReportNext(_inst,_other){(_inst.gmlbtn_click_LeagueReportNext=__yy_method(_inst,gml_Script_btn_click_LeagueReportNext));
}function gml_Script_btn_click_LeagueReportNext(_inst,_other){{{var __yy__v324=GetWithArray(139);for(var __yy__v325 in __yy__v324){if(!__yy__v324.hasOwnProperty(__yy__v325))continue;var __yy__v326=__yy__v324[__yy__v325];{__yy__v326.gmlpage=clamp(yyfplus(__yy_gml_errCheck(__yy__v326.gmlpage),1),1,3);}}};{var __yy__v327=GetWithArray(119);for(var __yy__v328 in __yy__v327){if(!__yy__v327.hasOwnProperty(__yy__v328))continue;var __yy__v329=__yy__v327[__yy__v328];__yy__v329.gmlpage=2;}};}}function gml_GlobalScript_btn_click_LeagueReportPrev(_inst,
_other){(_inst.gmlbtn_click_LeagueReportPrev=__yy_method(_inst,gml_Script_btn_click_LeagueReportPrev));}function gml_Script_btn_click_LeagueReportPrev(_inst,_other){{{var __yy__v330=GetWithArray(139);for(var __yy__v331 in __yy__v330){if(!__yy__v330.hasOwnProperty(__yy__v331))continue;var __yy__v332=__yy__v330[__yy__v331];{__yy__v332.gmlpage=clamp(yyfminus(__yy_gml_errCheck(__yy__v332.gmlpage),1),1,3);}}};{var __yy__v333=GetWithArray(119);for(var __yy__v334 in __yy__v333){if(!__yy__v333.hasOwnProperty(__yy__v334))continue;
var __yy__v335=__yy__v333[__yy__v334];__yy__v335.gmlpage=1;}};}}function gml_GlobalScript_btn_click_OptionsNewGame(_inst,_other){(_inst.gmlbtn_click_OptionsNewGame=__yy_method(_inst,gml_Script_btn_click_OptionsNewGame));}function gml_Script_btn_click_OptionsNewGame(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyGetBool(global.gmlbrowser)){{gml_Script_s_save_options(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_NewGame"),gml_Script_s_str(_inst,
_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_btn_response_newgame_commit,global.gmlc_background,1);};}else {{gml_Script_s_savegame(_inst,_other);gml_Script_s_destroy_master(_inst,_other);room_goto(0);};};}}function gml_GlobalScript_btn_click_OptionsDriveLeft(_inst,_other){(_inst.gmlbtn_click_OptionsDriveLeft=__yy_method(_inst,gml_Script_btn_click_OptionsDriveLeft));(_inst.gmlbtn_click_OptionsDriveLeft_Exh=__yy_method(_inst,gml_Script_btn_click_OptionsDriveLeft_Exh));
}function gml_Script_btn_click_OptionsDriveLeft(_inst,_other){{{var __yy__v336=GetWithArray(97);for(var __yy__v337 in __yy__v336){if(!__yy__v336.hasOwnProperty(__yy__v337))continue;var __yy__v338=__yy__v336[__yy__v337];{var ___sw148___=ds_map_find_value(__yy__v338.gmlmap_options,"op_drivedir");var ___swc149___=-1;if(yyCompareVal(___sw148___,0,g_GMLMathEpsilon,false)==0){___swc149___=0;}else if(yyCompareVal(___sw148___,(-1),g_GMLMathEpsilon,false)==0){___swc149___=1;}else if(yyCompareVal(___sw148___,1,g_GMLMathEpsilon,
false)==0){___swc149___=2;}switch(___swc149___){case 0:{ds_map_set(__yy__v338.gmlmap_options,"op_drivedir",(-1));break;}case 1:{ds_map_set(__yy__v338.gmlmap_options,"op_drivedir",1);break;}case 2:{ds_map_set(__yy__v338.gmlmap_options,"op_drivedir",0);break;}};gml_Script_s_update_options(__yy__v338,_inst);}}};}}function gml_Script_btn_click_OptionsDriveLeft_Exh(_inst,_other){{{var __yy__v339=GetWithArray(97);for(var __yy__v340 in __yy__v339){if(!__yy__v339.hasOwnProperty(__yy__v340))continue;var __yy__v341=__yy__v339[__yy__v340];
{var ___sw150___=ds_map_find_value(__yy__v341.gmlmap_options,"exh_op_drivedir");var ___swc151___=-1;if(yyCompareVal(___sw150___,0,g_GMLMathEpsilon,false)==0){___swc151___=0;}else if(yyCompareVal(___sw150___,(-1),g_GMLMathEpsilon,false)==0){___swc151___=1;}else if(yyCompareVal(___sw150___,1,g_GMLMathEpsilon,false)==0){___swc151___=2;}switch(___swc151___){case 0:{ds_map_set(__yy__v341.gmlmap_options,"exh_op_drivedir",(-1));break;}case 1:{ds_map_set(__yy__v341.gmlmap_options,"exh_op_drivedir",1);break;}case 2:{
ds_map_set(__yy__v341.gmlmap_options,"exh_op_drivedir",0);break;}};gml_Script_s_update_options_exh(__yy__v341,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsDriveRight(_inst,_other){(_inst.gmlbtn_click_OptionsDriveRight=__yy_method(_inst,gml_Script_btn_click_OptionsDriveRight));}function gml_Script_btn_click_OptionsDriveRight(_inst,_other){{{var __yy__v342=GetWithArray(97);for(var __yy__v343 in __yy__v342){if(!__yy__v342.hasOwnProperty(__yy__v343))continue;var __yy__v344=__yy__v342[__yy__v343];
{ds_map_set(__yy__v344.gmlmap_options,"op_drivedir",1);gml_Script_s_update_options(__yy__v344,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsDriveBoth(_inst,_other){(_inst.gmlbtn_click_OptionsDriveBoth=__yy_method(_inst,gml_Script_btn_click_OptionsDriveBoth));}function gml_Script_btn_click_OptionsDriveBoth(_inst,_other){{{var __yy__v345=GetWithArray(97);for(var __yy__v346 in __yy__v345){if(!__yy__v345.hasOwnProperty(__yy__v346))continue;var __yy__v347=__yy__v345[__yy__v346];{ds_map_set(__yy__v347.gmlmap_options,
"op_drivedir",0);gml_Script_s_update_options(__yy__v347,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsScanlines(_inst,_other){(_inst.gmlbtn_click_OptionsScanlines=__yy_method(_inst,gml_Script_btn_click_OptionsScanlines));}function gml_Script_btn_click_OptionsScanlines(_inst,_other){{{var __yy__v348=GetWithArray(97);for(var __yy__v349 in __yy__v348){if(!__yy__v348.hasOwnProperty(__yy__v349))continue;var __yy__v350=__yy__v348[__yy__v349];{ds_map_set(__yy__v350.gmlmap_options,"op_scanlines",!yyGetBool(ds_map_find_value(__yy__v350.gmlmap_options,
"op_scanlines")));yyInst(_inst,_other,99).gmlon=ds_map_find_value(__yy__v350.gmlmap_options,"op_scanlines");gml_Script_s_update_options(__yy__v350,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsSoundFX(_inst,_other){(_inst.gmlbtn_click_OptionsSoundFX=__yy_method(_inst,gml_Script_btn_click_OptionsSoundFX));}function gml_Script_btn_click_OptionsSoundFX(_inst,_other){{{var __yy__v351=GetWithArray(97);for(var __yy__v352 in __yy__v351){if(!__yy__v351.hasOwnProperty(__yy__v352))continue;var __yy__v353=__yy__v351[__yy__v352];
{ds_map_set(__yy__v353.gmlmap_options,"op_soundfx",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v353.gmlmap_options,"op_soundfx")),1));if(yyfgreater(ds_map_find_value(__yy__v353.gmlmap_options,"op_soundfx"),2)){ds_map_set(__yy__v353.gmlmap_options,"op_soundfx",0);};gml_Script_s_update_options(__yy__v353,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsWeather(_inst,_other){(_inst.gmlbtn_click_OptionsWeather=__yy_method(_inst,gml_Script_btn_click_OptionsWeather));(_inst.gmlbtn_click_OptionsWeather_Exh=__yy_method(_inst,
gml_Script_btn_click_OptionsWeather_Exh));}function gml_Script_btn_click_OptionsWeather(_inst,_other){{{var __yy__v354=GetWithArray(97);for(var __yy__v355 in __yy__v354){if(!__yy__v354.hasOwnProperty(__yy__v355))continue;var __yy__v356=__yy__v354[__yy__v355];{if(yyfequal(ds_map_find_value(__yy__v356.gmlmap_options,"fullversion"),1)){{ds_map_set(__yy__v356.gmlmap_options,"op_weather",!yyGetBool(ds_map_find_value(__yy__v356.gmlmap_options,"op_weather")));gml_Script_s_update_options(__yy__v356,_inst);};}
else {{gml_Script_s_create_message(__yy__v356,_inst,"",gml_Script_s_str(__yy__v356,_inst,"msg_NeedUnlimited"),gml_Script_s_str(__yy__v356,_inst,"ui_No"),gml_Script_s_str(__yy__v356,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};}}};}}function gml_Script_btn_click_OptionsWeather_Exh(_inst,_other){{{var __yy__v357=GetWithArray(97);for(var __yy__v358 in __yy__v357){if(!__yy__v357.hasOwnProperty(__yy__v358))continue;var __yy__v359=__yy__v357[__yy__v358];{ds_map_set(__yy__v359.gmlmap_options,
"exh_op_weather",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v359.gmlmap_options,"exh_op_weather"))),1));if(yyfgreater(ds_map_find_value(__yy__v359.gmlmap_options,"exh_op_weather"),3)){ds_map_set(__yy__v359.gmlmap_options,"exh_op_weather",0);};gml_Script_s_update_options_exh(__yy__v359,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsReplays(_inst,_other){(_inst.gmlbtn_click_OptionsReplays=__yy_method(_inst,gml_Script_btn_click_OptionsReplays));}function gml_Script_btn_click_OptionsReplays(_inst,
_other){{{var __yy__v360=GetWithArray(97);for(var __yy__v361 in __yy__v360){if(!__yy__v360.hasOwnProperty(__yy__v361))continue;var __yy__v362=__yy__v360[__yy__v361];{ds_map_set(__yy__v362.gmlmap_options,"op_replays",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v362.gmlmap_options,"op_replays")),1));if(yyfgreater(ds_map_find_value(__yy__v362.gmlmap_options,"op_replays"),2)){ds_map_set(__yy__v362.gmlmap_options,"op_replays",0);};gml_Script_s_update_options(__yy__v362,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsZoom(_inst,
_other){(_inst.gmlbtn_click_OptionsZoom=__yy_method(_inst,gml_Script_btn_click_OptionsZoom));}function gml_Script_btn_click_OptionsZoom(_inst,_other){{{var __yy__v363=GetWithArray(97);for(var __yy__v364 in __yy__v363){if(!__yy__v363.hasOwnProperty(__yy__v364))continue;var __yy__v365=__yy__v363[__yy__v364];{ds_map_set(__yy__v365.gmlmap_options,"op_zoom",!yyGetBool(ds_map_find_value(__yy__v365.gmlmap_options,"op_zoom")));gml_Script_s_update_options(__yy__v365,_inst);}}};}}function gml_GlobalScript_btn_click_InvertedThrowing(_inst,
_other){(_inst.gmlbtn_click_InvertedThrowing=__yy_method(_inst,gml_Script_btn_click_InvertedThrowing));}function gml_Script_btn_click_InvertedThrowing(_inst,_other){{{var __yy__v366=GetWithArray(97);for(var __yy__v367 in __yy__v366){if(!__yy__v366.hasOwnProperty(__yy__v367))continue;var __yy__v368=__yy__v366[__yy__v367];{ds_map_set(__yy__v368.gmlmap_options,"op_invert_throw",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v368.gmlmap_options,"op_invert_throw")),1));if(yyfgreater(ds_map_find_value(__yy__v368.gmlmap_options,
"op_invert_throw"),1)){ds_map_set(__yy__v368.gmlmap_options,"op_invert_throw",0);};gml_Script_s_update_options(__yy__v368,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsMatchLength(_inst,_other){(_inst.gmlbtn_click_OptionsMatchLength=__yy_method(_inst,gml_Script_btn_click_OptionsMatchLength));(_inst.gmlbtn_click_OptionsMatchLength_Exh=__yy_method(_inst,gml_Script_btn_click_OptionsMatchLength_Exh));}function gml_Script_btn_click_OptionsMatchLength(_inst,_other){{{var __yy__v369=GetWithArray(97);
for(var __yy__v370 in __yy__v369){if(!__yy__v369.hasOwnProperty(__yy__v370))continue;var __yy__v371=__yy__v369[__yy__v370];{__yy__v371.gmlop_matchlength=yyfplus(__yy_gml_errCheck(__yy__v371.gmlop_matchlength),1);if(yyfgreater(__yy__v371.gmlop_matchlength,1)){__yy__v371.gmlop_matchlength=(-1);};gml_Script_s_update_options(__yy__v371,_inst);}}};}}function gml_Script_btn_click_OptionsMatchLength_Exh(_inst,_other){{{var __yy__v372=GetWithArray(97);for(var __yy__v373 in __yy__v372){if(!__yy__v372.hasOwnProperty(__yy__v373))continue;
var __yy__v374=__yy__v372[__yy__v373];{ds_map_set(__yy__v374.gmlmap_options,"exh_op_matchlength",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v374.gmlmap_options,"exh_op_matchlength"))),1));if(yyfgreater(ds_map_find_value(__yy__v374.gmlmap_options,"exh_op_matchlength"),1)){ds_map_set(__yy__v374.gmlmap_options,"exh_op_matchlength",(-1));};gml_Script_s_update_options_exh(__yy__v374,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsTeamEditor(_inst,_other){(_inst.gmlbtn_click_OptionsTeamEditor=__yy_method(_inst,
gml_Script_btn_click_OptionsTeamEditor));}function gml_Script_btn_click_OptionsTeamEditor(_inst,_other){{if(yyfequal(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"),1)){{gml_Script_s_save_options(_inst,_other);room_goto(29);};}else {{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_NeedUnlimited"),gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,
1);};};}}function gml_GlobalScript_btn_click_OptionsDifficulty(_inst,_other){(_inst.gmlbtn_click_OptionsDifficulty=__yy_method(_inst,gml_Script_btn_click_OptionsDifficulty));}function gml_Script_btn_click_OptionsDifficulty(_inst,_other){{yyInst(_inst,_other,97).gmlop_difficulty=yyfplus(yyInst(_inst,_other,97).gmlop_difficulty,1);if(yyfgreater(yyInst(_inst,_other,97).gmlop_difficulty,4)){yyInst(_inst,_other,97).gmlop_difficulty=0;};gml_Script_s_update_options(_inst,_other);}}function gml_GlobalScript_btn_click_OptionsSalaryCap(_inst,
_other){(_inst.gmlbtn_click_OptionsSalaryCap=__yy_method(_inst,gml_Script_btn_click_OptionsSalaryCap));(_inst.gmlsalary_cap_toggle_roster_size=__yy_method(_inst,gml_Script_salary_cap_toggle_roster_size));}function gml_Script_btn_click_OptionsSalaryCap(_inst,_other){{if(yyfequal(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"),1)){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_recruitment_credits_toggle_roster_size(_inst,_other);};}else {{gml_Script_salary_cap_toggle_roster_size(_inst,
_other);};};gml_Script_s_update_options(_inst,_other);};}else {{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_NeedUnlimited"),gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};}}function gml_Script_salary_cap_toggle_roster_size(_inst,_other){{var ___sw154___=yyInst(_inst,_other,97).gmlsalary_cap;var ___swc155___=-1;if(yyCompareVal(___sw154___,150,g_GMLMathEpsilon,
false)==0){___swc155___=0;}else if(yyCompareVal(___sw154___,200,g_GMLMathEpsilon,false)==0){___swc155___=1;}switch(___swc155___){case 0:{yyInst(_inst,_other,97).gmlsalary_cap=200;break;}case 1:{if(yyfgreater(ds_list_size(yyInst(_inst,_other,97).gmlroster),10)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_SalaryCheckRoster"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}else {yyInst(_inst,_other,97).gmlsalary_cap=150;
};break;}};}}function gml_GlobalScript_chk_click_gamepad(_inst,_other){(_inst.gmlchk_click_gamepad=__yy_method(_inst,gml_Script_chk_click_gamepad));}function gml_Script_chk_click_gamepad(_inst,_other){{gml_Script_slog(_inst,_other,"chk_click_gamepad");return;}}function gml_GlobalScript_btn_click_PlayerProfile(_inst,_other){(_inst.gmlbtn_click_PlayerProfile=__yy_method(_inst,gml_Script_btn_click_PlayerProfile));}function gml_Script_btn_click_PlayerProfile(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_PlayerProfile");
if(yyfequal(yyInst(_inst,_other,97).gmlprofile_back_to,(-1))){{if(yyfequal(g_pBuiltIn.get_current_room(),22)){return;};};};yyInst(_inst,_other,97).gmlplayer_profile=_inst.gmlpmap;if(yyfequal(g_pBuiltIn.get_current_room(),12)){gml_Script_btn_click_Profile_Stats(_inst,_other);}else {room_goto(22);};}}function gml_GlobalScript_btn_click_PlayerProfile_Back(_inst,_other){(_inst.gmlbtn_click_PlayerProfile_Back=__yy_method(_inst,gml_Script_btn_click_PlayerProfile_Back));}function gml_Script_btn_click_PlayerProfile_Back(_inst,
_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlviewing_hof_players)){room_goto(12);}else {room_goto(22);};}}function gml_GlobalScript_btn_click_ProfilePrev(_inst,_other){(_inst.gmlbtn_click_ProfilePrev=__yy_method(_inst,gml_Script_btn_click_ProfilePrev));}function gml_Script_btn_click_ProfilePrev(_inst,_other){{{var __yy__v375=GetWithArray(97);for(var __yy__v376 in __yy__v375){if(!__yy__v375.hasOwnProperty(__yy__v376))continue;var __yy__v377=__yy__v375[__yy__v376];{var gmllist=(-4);var gmlpos=ds_list_find_index(__yy__v377.gmlroster,
__yy__v377.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v377.gmlroster;};}else {{gmlpos=ds_list_find_index(__yy__v377.gmldraftlist,__yy__v377.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v377.gmldraftlist;};}else {{gmlpos=ds_list_find_index(__yy__v377.gmlfreeagentlist,__yy__v377.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v377.gmlfreeagentlist;};}else {{gmlpos=ds_list_find_index(__yy__v377.gmltradelist,__yy__v377.gmlplayer_profile);if(yyfgreaterequal(gmlpos,
0)){{gmllist=__yy__v377.gmltradelist;};}else {{gmlpos=ds_list_find_index(__yy__v377.gmlstorelist,__yy__v377.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v377.gmlstorelist;};};};};};};};};};};if(yyGetBool(gmllist)){{(g_yyPrePostObject__=gmlpos,gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.subtract(1):--gmlpos),g_yyPrePostObject__);if(yyfless(gmlpos,0)){gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(gmllist)),1);};__yy__v377.gmlplayer_profile=ds_list_find_value(gmllist,gmlpos);
};};}}};room_goto(22);}}function gml_GlobalScript_btn_click_MeetingPrev(_inst,_other){(_inst.gmlbtn_click_MeetingPrev=__yy_method(_inst,gml_Script_btn_click_MeetingPrev));}function gml_Script_btn_click_MeetingPrev(_inst,_other){{{var __yy__v378=GetWithArray(97);for(var __yy__v379 in __yy__v378){if(!__yy__v378.hasOwnProperty(__yy__v379))continue;var __yy__v380=__yy__v378[__yy__v379];{var gmlpos=ds_list_find_index(__yy__v380.gmlroster,__yy__v380.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{(g_yyPrePostObject__=gmlpos,
gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.subtract(1):--gmlpos),g_yyPrePostObject__);if(yyfless(gmlpos,0)){gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v380.gmlroster)),1);};__yy__v380.gmlplayer_profile=ds_list_find_value(__yy__v380.gmlroster,gmlpos);};};}}};room_goto(28);}}function gml_GlobalScript_btn_click_ProfileNext(_inst,_other){(_inst.gmlbtn_click_ProfileNext=__yy_method(_inst,gml_Script_btn_click_ProfileNext));}function gml_Script_btn_click_ProfileNext(_inst,_other){{{var __yy__v381=GetWithArray(97);
for(var __yy__v382 in __yy__v381){if(!__yy__v381.hasOwnProperty(__yy__v382))continue;var __yy__v383=__yy__v381[__yy__v382];{var gmllist=(-4);var gmlpos=ds_list_find_index(__yy__v383.gmlroster,__yy__v383.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v383.gmlroster;};}else {{gmlpos=ds_list_find_index(__yy__v383.gmldraftlist,__yy__v383.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v383.gmldraftlist;};}else {{gmlpos=ds_list_find_index(__yy__v383.gmlfreeagentlist,__yy__v383.gmlplayer_profile);
if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v383.gmlfreeagentlist;};}else {{gmlpos=ds_list_find_index(__yy__v383.gmltradelist,__yy__v383.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v383.gmltradelist;};}else {{gmlpos=ds_list_find_index(__yy__v383.gmlstorelist,__yy__v383.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v383.gmlstorelist;};};};};};};};};};};if(yyGetBool(gmllist)){{(g_yyPrePostObject__=gmlpos,gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.add(1):++gmlpos),
g_yyPrePostObject__);if(yyfgreaterequal(gmlpos,ds_list_size(gmllist))){gmlpos=0;};__yy__v383.gmlplayer_profile=ds_list_find_value(gmllist,gmlpos);};};}}};room_goto(22);}}function gml_GlobalScript_btn_click_MeetingNext(_inst,_other){(_inst.gmlbtn_click_MeetingNext=__yy_method(_inst,gml_Script_btn_click_MeetingNext));}function gml_Script_btn_click_MeetingNext(_inst,_other){{{var __yy__v384=GetWithArray(97);for(var __yy__v385 in __yy__v384){if(!__yy__v384.hasOwnProperty(__yy__v385))continue;var __yy__v386=__yy__v384[__yy__v385];
{var gmlpos=ds_list_find_index(__yy__v386.gmlroster,__yy__v386.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{(g_yyPrePostObject__=gmlpos,gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.add(1):++gmlpos),g_yyPrePostObject__);if(yyfgreaterequal(gmlpos,ds_list_size(__yy__v386.gmlroster))){gmlpos=0;};__yy__v386.gmlplayer_profile=ds_list_find_value(__yy__v386.gmlroster,gmlpos);};};}}};room_goto(28);}}function gml_GlobalScript_btn_click_Profile_Back(_inst,_other){(_inst.gmlbtn_click_Profile_Back=__yy_method(_inst,
gml_Script_btn_click_Profile_Back));}function gml_Script_btn_click_Profile_Back(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_Profile_Back");{var __yy__v387=GetWithArray(97);for(var __yy__v388 in __yy__v387){if(!__yy__v387.hasOwnProperty(__yy__v388))continue;var __yy__v389=__yy__v387[__yy__v388];{__yy__v389.gmlcollege_profile_page_num=1;if(yyfequal(__yy__v389.gmlprofile_back_to,1)){{__yy__v389.gmlprofile_back_to=(-1);{var __yy__v390=GetWithArray(97);for(var __yy__v391 in __yy__v390){if(!__yy__v390.hasOwnProperty(__yy__v391))continue;
var __yy__v392=__yy__v390[__yy__v391];{gml_Script_s_create_dilemma(__yy__v392,__yy__v389,__yy__v392.gmlmap_dilemma);}}};};}else {if(yyfequal(__yy__v389.gmlprofile_back_to,2)){{__yy__v389.gmlprofile_back_to=(-1);{var __yy__v393=GetWithArray(97);for(var __yy__v394 in __yy__v393){if(!__yy__v393.hasOwnProperty(__yy__v394))continue;var __yy__v395=__yy__v393[__yy__v394];{gml_Script_s_create_dilemma_news(__yy__v395,__yy__v389);}}};};}else {if(yyfequal(__yy__v389.gmlprofile_back_to,3)){{__yy__v389.gmlprofile_back_to=(-1);
{var __yy__v396=GetWithArray(97);for(var __yy__v397 in __yy__v396){if(!__yy__v396.hasOwnProperty(__yy__v397))continue;var __yy__v398=__yy__v396[__yy__v397];{gml_Script_s_college_draft_earyly_info_return(__yy__v398,__yy__v389);}}};};}else {if(yyGetBool(gml_Script_s_doing_college_draft(__yy__v389,_inst))){room_goto(45);}else {if(yyfgreaterequal(ds_list_find_index(__yy__v389.gmlstorelist,__yy__v389.gmlplayer_profile),0)){room_goto(8);}else {if(yyfgreaterequal(ds_list_find_index(__yy__v389.gmlroster,__yy__v389.gmlplayer_profile),
0)){room_goto(25);}else {if(yyfgreaterequal(ds_list_find_index(__yy__v389.gmldraftlist,__yy__v389.gmlplayer_profile),0)){room_goto(5);}else {if(yyfgreaterequal(ds_list_find_index(__yy__v389.gmlfreeagentlist,__yy__v389.gmlplayer_profile),0)){room_goto(7);}else {if(yyfgreaterequal(ds_list_find_index(__yy__v389.gmltradelist,__yy__v389.gmlplayer_profile),0)){room_goto(7);}else {room_goto(14);};};};};};};};};};}}};}}function gml_GlobalScript_btn_click_Profile_Pick(_inst,_other){(_inst.gmlbtn_click_Profile_Pick=__yy_method(_inst,
gml_Script_btn_click_Profile_Pick));}function gml_Script_btn_click_Profile_Pick(_inst,_other){{var gmllist=yyInst(_inst,_other,97).gmlroster;if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmlstorelist,yyInst(_inst,_other,97).gmlplayer_profile),0)){{gmllist=yyInst(_inst,_other,97).gmlstorelist;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmldraftlist,yyInst(_inst,_other,97).gmlplayer_profile),0)){{gmllist=yyInst(_inst,_other,97).gmldraftlist;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,
_other,97).gmlfreeagentlist,yyInst(_inst,_other,97).gmlplayer_profile),0)){{gmllist=yyInst(_inst,_other,97).gmlfreeagentlist;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmltradelist,yyInst(_inst,_other,97).gmlplayer_profile),0)){{gmllist=yyInst(_inst,_other,97).gmltradelist;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmlhoflist,yyInst(_inst,_other,97).gmlplayer_profile),0)){{gmllist=yyInst(_inst,_other,97).gmlhoflist;};};};};};};var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,97).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"lname")));var gmlmax_roster=10;if(yyfgreater(yyInst(_inst,_other,97).gmlsalary_cap,150)){gmlmax_roster=12;};if(yyfgreaterequal(ds_list_size(yyInst(_inst,_other,97).gmlroster),gmlmax_roster)){{var gmllimitMsg="msg_RosterLimit";if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlallAreFreshman=true;var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,97).gmlroster));
(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmlr);if((yyGetBool(gmlpmap))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))){{gmlallAreFreshman=false;break;};};}};if(yyGetBool(gmlallAreFreshman)){{gmllimitMsg="msg_RosterLimitAllFreshman";};};};};gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,
gmllimitMsg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"salary")),__yy_gml_errCheck(gml_Script_s_get_salary_total(_inst,_other))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlboost_salary_cap)))))){
{var gmlmsg=gml_Script_s_str(_inst,_other,"ui_ExceedSalaryCap");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$num",string(yyfminus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlboost_salary_cap)),__yy_gml_errCheck(gml_Script_s_get_salary_total(_inst,_other)))));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Roster"),
kgml_Script_s_msg_clear,kgml_Script_btn_click_Roster,global.gmlc_background,1);return;};}else {if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfgreater(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"rc_cost"),yyInst(_inst,_other,97).gmlrecruitment_credits)))){{var gmlmsg=gml_Script_s_str(_inst,_other,"ui_ExceedRecruitmentCredits");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$num",string(yyInst(_inst,_other,97).gmlrecruitment_credits));
gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {if((yyGetBool(yyfequal(gmllist,yyInst(_inst,_other,97).gmlfreeagentlist)))&&(yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"teamid"),yyInst(_inst,_other,97).gmlmyteam_id)))&&(yyGetBool(yyflessequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"attitude"),15)))){{var gmlmsg=gml_Script_s_str(_inst,
_other,"msg_CannotSignMoraleLow");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {{var gmlpos=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position");var gmlcount=gml_Script_s_count_players_by_position(_inst,_other,gmlpos);var gmlmaxpos=1;var ___sw158___=gmlpos;var ___swc159___=-1;if(yyCompareVal(___sw158___,1,
g_GMLMathEpsilon,false)==0){___swc159___=0;}else if(yyCompareVal(___sw158___,2,g_GMLMathEpsilon,false)==0){___swc159___=1;}else if(yyCompareVal(___sw158___,3,g_GMLMathEpsilon,false)==0){___swc159___=2;}else if(yyCompareVal(___sw158___,4,g_GMLMathEpsilon,false)==0){___swc159___=3;}else if(yyCompareVal(___sw158___,5,g_GMLMathEpsilon,false)==0){___swc159___=4;}else if(yyCompareVal(___sw158___,6,g_GMLMathEpsilon,false)==0){___swc159___=5;}else if(yyCompareVal(___sw158___,7,g_GMLMathEpsilon,false)==0){___swc159___=6;
}else if(yyCompareVal(___sw158___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw158___,8,g_GMLMathEpsilon,false)==0){___swc159___=7;}else if(yyCompareVal(___sw158___,10,g_GMLMathEpsilon,false)==0){___swc159___=8;}switch(___swc159___){case 0:{gmlmaxpos=2;break;}case 1:{gmlmaxpos=2;break;}case 2:{gmlmaxpos=3;break;}case 3:{gmlmaxpos=3;break;}case 4:{gmlmaxpos=5;break;}case 5:{gmlmaxpos=4;break;}case 6:{gmlmaxpos=3;break;}case 7:{gmlmaxpos=4;break;}case 8:{gmlmaxpos=2;break;}};if(yyfgreaterequal(gmlcount,gmlmaxpos)){
{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotSign1");if(yyfgreater(gmlmaxpos,1)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotSign2");};gmlmsg=string_replace(gmlmsg,"$num",gmlcount);gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,gmlpos));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,gmlpos));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,"",gmlmsg,
gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Roster"),kgml_Script_s_msg_clear,kgml_Script_btn_click_Roster,global.gmlc_background,1);return;};};};};};};};if(yyfequal(gmllist,yyInst(_inst,_other,97).gmltradelist)){{var gmlteam_id=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"teamid");var gmltmap=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteam_id);var gmlteamname=ds_map_find_value(gmltmap,"name");var gmlpick=gml_Script_s_get_trade_value(_inst,
_other,yyInst(_inst,_other,97).gmlplayer_profile);if(yyfgreater(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"intrade_pick"),0)){gmlpick=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"intrade_pick");};if(yyfless(yyInst(_inst,_other,97).gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(gmlpick),1),yyInst(_inst,_other,97).gmldraft_picks)],1)){{var gmlmsg=gml_Script_s_str(_inst,_other,"ui_NoMorePicksToTrade");gmlmsg=string_replace(gmlmsg,"$num",string(gmlpick));
gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"intrade_pick",gmlpick);var gmlmsg=gml_Script_s_str(_inst,_other,"msg_TradeOfferSign");gmlmsg=string_replace(gmlmsg,"$teamname",gmlteamname);gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,
"position")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$num",string(gmlpick));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_btn_response_in_trade_player_yes,global.gmlc_background,1);};}else {if(yyfequal(gmllist,yyInst(_inst,_other,97).gmlstorelist)){{var gmlcost=ds_map_find_value(yyInst(_inst,
_other,97).gmlplayer_profile,"creditcost");if(yyfless(yyInst(_inst,_other,97).gmlcoach_credit,gmlcost)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SignPlayerStoreNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(gmlcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_SignPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_store_cant_afford,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SignPlayerStore");
gmlmsg=string_replace(gmlmsg,"$num",string(gmlcost));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_SignPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_pick_player_yes,
global.gmlc_background,1);};}else {if(yyfequal(gmllist,yyInst(_inst,_other,97).gmlhoflist)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_ReinstatePlayer");gmlmsg=string_replace(gmlmsg,"$playername",string_upper(gmlplayername));gmlmsg=string_replace(gmlmsg,"$salary",string(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"salary")));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_SignPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,
_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_pick_player_yes,global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SignPlayer");if(yyfequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){gmlmsg=gml_Script_s_str(_inst,_other,"msg_SignRookie");};gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,
"position")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_SignPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_pick_player_yes,global.gmlc_background,1);};};};};}}function gml_GlobalScript_btn_click_Profile_Cut(_inst,_other){(_inst.gmlbtn_click_Profile_Cut=__yy_method(_inst,gml_Script_btn_click_Profile_Cut));(_inst.gmlbtn_click_Profile_JefeBoost=__yy_method(_inst,
gml_Script_btn_click_Profile_JefeBoost));(_inst.gmls_JefeBoost=__yy_method(_inst,gml_Script_s_JefeBoost));}function gml_Script_btn_click_Profile_Cut(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"lname")));var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_CutPlayer"),"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$position",
gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position")));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_CutPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);}}function gml_Script_btn_click_Profile_JefeBoost(_inst,_other){{var gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;
if(yyfequal(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina"))),40)){return;};gml_Script_s_create_message(_inst,_other,"Boost player","Do you want to give this player maximum stats?",gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_JefeBoost,
global.gmlc_background,1);}}function gml_Script_s_JefeBoost(_inst,_other){{var gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;if(yyfequal(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina"))),40)){{audio_play_sound(7,1,false);return;};};ds_map_set(gmlpmap,"skill",10);ds_map_set(gmlpmap,"speed",10);ds_map_set(gmlpmap,
"strength",10);ds_map_set(gmlpmap,"stamina",10);ds_map_set(gmlpmap,"max_skill",10);ds_map_set(gmlpmap,"max_speed",10);ds_map_set(gmlpmap,"max_strength",10);ds_map_set(gmlpmap,"max_stamina",10);room_goto(25);}}function gml_GlobalScript_btn_click_Profile_Trade(_inst,_other){(_inst.gmlbtn_click_Profile_Trade=__yy_method(_inst,gml_Script_btn_click_Profile_Trade));}function gml_Script_btn_click_Profile_Trade(_inst,_other){{var gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));var gmloffer=yyfgreater(ds_map_find_value(gmlpmap,"outtrade_pick"),0);if((yyGetBool(!yyGetBool(gmloffer)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlweek,8)))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotTradeWeek");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,
_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);};}else {if((yyGetBool(!yyGetBool(gmloffer)))&&(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotTradeInjured");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,
_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);};}else {if((yyGetBool(!yyGetBool(gmloffer)))&&(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotTradeToxic");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,
_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);};}else {{var gmltmap=gml_Script_s_get_offer_team(_inst,_other,gmlpmap);var gmlteamname=ds_map_find_value(gmltmap,"name");var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));if(yyfequal(ds_map_find_value(gmlpmap,"outtrade_pick"),0)){ds_map_set(gmlpmap,"outtrade_pick",gml_Script_s_get_trade_value(_inst,
_other,gmlpmap));};var gmlmsg=gml_Script_s_str(_inst,_other,"msg_TradePlayerThis");if(yyfless(ds_map_find_value(gmlpmap,"outtrade_pick"),yyInst(_inst,_other,97).gmldraft_round)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_TradePlayerNext");};gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$teamname",gmlteamname);gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,
"$num",string(ds_map_find_value(gmlpmap,"outtrade_pick")));if(yyfequal(ds_map_find_value(gmlpmap,"signed_year"),yyInst(_inst,_other,97).gmlyear)){{gmlmsg=string_hash_to_newline(yyfplus(yyfplus(__yy_gml_errCheck(gmlmsg),"##"),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"msg_TradeAwayRookie"))));};};gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Trade"),kgml_Script_btn_response_out_trade_player_no,
kgml_Script_btn_response_out_trade_player_yes,global.gmlc_background,1);};};};};}}function gml_GlobalScript_btn_click_Profile_Stats(_inst,_other){(_inst.gmlbtn_click_Profile_Stats=__yy_method(_inst,gml_Script_btn_click_Profile_Stats));}function gml_Script_btn_click_Profile_Stats(_inst,_other){{{var __yy__v399=GetWithArray(97);for(var __yy__v400 in __yy__v399){if(!__yy__v399.hasOwnProperty(__yy__v400))continue;var __yy__v401=__yy__v399[__yy__v400];{if(yyfequal(ds_map_find_value(__yy__v401.gmlplayer_profile,
"position"),1)){__yy__v401.gmlstat_view=1;};if(yyfequal(ds_map_find_value(__yy__v401.gmlplayer_profile,"position"),2)){__yy__v401.gmlstat_view=2;};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v401,_inst))){{yyInst(_inst,_other,97).gmlco_stats_tab=0;};};}}};room_goto(27);}}function gml_GlobalScript_btn_click_Profile_Rest(_inst,_other){(_inst.gmlbtn_click_Profile_Rest=__yy_method(_inst,gml_Script_btn_click_Profile_Rest));}function gml_Script_btn_click_Profile_Rest(_inst,_other){{gml_Script_slog(_inst,
_other,"btn_profile_rest");{var __yy__v402=GetWithArray(97);for(var __yy__v403 in __yy__v402){if(!__yy__v402.hasOwnProperty(__yy__v403))continue;var __yy__v404=__yy__v402[__yy__v403];{if(yyGetBool(gml_Script_s_is_co_mode(__yy__v404,_inst))){{if(yyGetBool(ds_map_find_value(__yy__v404.gmlplayer_profile,"suspended"))){{var gmlmsg=gml_Script_s_parse_player_message(__yy__v404,_inst,gml_Script_s_str(__yy__v404,_inst,"msg_suspended"),__yy__v404.gmlplayer_profile);gml_Script_s_create_message(__yy__v404,_inst,
gml_Script_s_str(__yy__v404,_inst,"ui_PlayerSuspended"),gmlmsg,gml_Script_s_str(__yy__v404,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,(-4),global.gmlc_background,1);return;};};};};var ___sw162___=ds_map_find_value(__yy__v404.gmlplayer_profile,"resting");var ___swc163___=-1;if(yyCompareVal(___sw162___,0,g_GMLMathEpsilon,false)==0){___swc163___=0;}else if(yyCompareVal(___sw162___,1,g_GMLMathEpsilon,false)==0){___swc163___=1;}switch(___swc163___){case 0:{var gmlmsg=gml_Script_s_parse_player_message(__yy__v404,
_inst,gml_Script_s_str(__yy__v404,_inst,"msg_Bench"),__yy__v404.gmlplayer_profile);gml_Script_s_create_message(__yy__v404,_inst,gml_Script_s_str(__yy__v404,_inst,"ui_BenchPlayer"),gmlmsg,gml_Script_s_str(__yy__v404,_inst,"ui_No"),gml_Script_s_str(__yy__v404,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_rest_player_yes,global.gmlc_background,1);break;}case 1:{if(yyfless(ds_map_find_value(__yy__v404.gmlplayer_profile,"condition"),40)){ds_map_set(__yy__v404.gmlplayer_profile,"attitude",
clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v404.gmlplayer_profile,"attitude")),15),1,100));};ds_map_set(__yy__v404.gmlplayer_profile,"resting",false);room_goto(22);break;}};}}};}}function gml_GlobalScript_btn_click_Profile_Not_Interested(_inst,_other){(_inst.gmlbtn_click_Profile_Not_Interested=__yy_method(_inst,gml_Script_btn_click_Profile_Not_Interested));}function gml_Script_btn_click_Profile_Not_Interested(_inst,_other){{{var __yy__v405=GetWithArray(97);for(var __yy__v406 in __yy__v405){
if(!__yy__v405.hasOwnProperty(__yy__v406))continue;var __yy__v407=__yy__v405[__yy__v406];{__yy__v407.gmlstage=1;var gmlpos=ds_list_find_index(__yy__v407.gmlfreeagentlist,__yy__v407.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{if((yyGetBool(ds_exists(__yy__v407.gmlplayer_profile,1)))&&(yyGetBool(ds_map_exists(__yy__v407.gmlplayer_profile,"hof")))&&(yyGetBool(yyfequal(ds_map_find_value(__yy__v407.gmlplayer_profile,"hof"),true)))){{ds_map_set(__yy__v407.gmlplayer_profile,"team_leave_reason","cut");
ds_list_add(__yy__v407.gmlhoflist,__yy__v407.gmlplayer_profile);};}else {{ds_map_destroy(ds_list_find_value(__yy__v407.gmlfreeagentlist,gmlpos));ds_list_set(__yy__v407.gmlfreeagentlist,gmlpos,(-1));};};ds_list_delete(__yy__v407.gmlfreeagentlist,gmlpos);if(yyfgreater(ds_list_size(__yy__v407.gmlfreeagentlist),0)){{room_goto(7);return;};};};};gmlpos=ds_list_find_index(__yy__v407.gmltradelist,__yy__v407.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{ds_map_destroy(ds_list_find_value(__yy__v407.gmltradelist,
gmlpos));ds_list_set(__yy__v407.gmltradelist,gmlpos,(-1));ds_list_delete(__yy__v407.gmltradelist,gmlpos);if(yyfgreater(ds_list_size(__yy__v407.gmltradelist),0)){{room_goto(7);return;};};};};}}};room_goto(14);}}function gml_GlobalScript_btn_click_Profile_ScoutPlayer(_inst,_other){(_inst.gmlbtn_click_Profile_ScoutPlayer=__yy_method(_inst,gml_Script_btn_click_Profile_ScoutPlayer));}function gml_Script_btn_click_Profile_ScoutPlayer(_inst,_other){{{var __yy__v408=GetWithArray(97);for(var __yy__v409 in __yy__v408){
if(!__yy__v408.hasOwnProperty(__yy__v409))continue;var __yy__v410=__yy__v408[__yy__v409];{ds_map_set(__yy__v410.gmlplayer_profile,"scouted",true);(g_yyPrePostObject__=__yy__v410.gmlinterviews,__yy__v410.gmlinterviews=(g_yyPrePostObject__ instanceof Long?__yy__v410.gmlinterviews.subtract(1):--__yy__v410.gmlinterviews),g_yyPrePostObject__);}}};room_goto(22);}}function gml_GlobalScript_btn_click_AddSkill(_inst,_other){(_inst.gmlbtn_click_AddSkill=__yy_method(_inst,gml_Script_btn_click_AddSkill));}function gml_Script_btn_click_AddSkill(_inst,
_other){{gml_Script_s_increase_player_attribute(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,1);{var __yy__v411=GetWithArray(147);for(var __yy__v412 in __yy__v411){if(!__yy__v411.hasOwnProperty(__yy__v412))continue;var __yy__v413=__yy__v411[__yy__v412];{yyInst(_inst,_other,100426).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(__yy__v413.gmlpmap,"skill")),10);yyInst(_inst,_other,100426).gmlflash=true;yyInst(_inst,_other,100427).gmlflash=false;yyInst(_inst,_other,100428).gmlflash=false;
yyInst(_inst,_other,100432).gmlflash=false;layer_set_visible(__yy__v413.gmllayer_back,false);layer_set_visible(__yy__v413.gmllayer_main,false);layer_set_visible(__yy__v413.gmllayer_pick,false);layer_set_visible(__yy__v413.gmllayer_xp,false);layer_set_visible(__yy__v413.gmllayer_xp_cont,true);gml_Script_s_sound(__yy__v413,_inst,21);}}};}}function gml_GlobalScript_btn_click_AddSpeed(_inst,_other){(_inst.gmlbtn_click_AddSpeed=__yy_method(_inst,gml_Script_btn_click_AddSpeed));}function gml_Script_btn_click_AddSpeed(_inst,
_other){{gml_Script_s_increase_player_attribute(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,2);{var __yy__v414=GetWithArray(147);for(var __yy__v415 in __yy__v414){if(!__yy__v414.hasOwnProperty(__yy__v415))continue;var __yy__v416=__yy__v414[__yy__v415];{yyInst(_inst,_other,100427).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(__yy__v416.gmlpmap,"speed")),10);yyInst(_inst,_other,100426).gmlflash=false;yyInst(_inst,_other,100427).gmlflash=true;yyInst(_inst,_other,100428).gmlflash=false;
yyInst(_inst,_other,100432).gmlflash=false;layer_set_visible(__yy__v416.gmllayer_back,false);layer_set_visible(__yy__v416.gmllayer_main,false);layer_set_visible(__yy__v416.gmllayer_pick,false);layer_set_visible(__yy__v416.gmllayer_xp,false);layer_set_visible(__yy__v416.gmllayer_xp_cont,true);gml_Script_s_sound(__yy__v416,_inst,21);}}};}}function gml_GlobalScript_btn_click_AddStrength(_inst,_other){(_inst.gmlbtn_click_AddStrength=__yy_method(_inst,gml_Script_btn_click_AddStrength));}function gml_Script_btn_click_AddStrength(_inst,
_other){{gml_Script_s_increase_player_attribute(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,3);{var __yy__v417=GetWithArray(147);for(var __yy__v418 in __yy__v417){if(!__yy__v417.hasOwnProperty(__yy__v418))continue;var __yy__v419=__yy__v417[__yy__v418];{yyInst(_inst,_other,100428).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"strength")),10);yyInst(_inst,_other,100426).gmlflash=false;yyInst(_inst,_other,100427).gmlflash=false;yyInst(_inst,
_other,100428).gmlflash=true;yyInst(_inst,_other,100432).gmlflash=false;layer_set_visible(__yy__v419.gmllayer_back,false);layer_set_visible(__yy__v419.gmllayer_main,false);layer_set_visible(__yy__v419.gmllayer_pick,false);layer_set_visible(__yy__v419.gmllayer_xp,false);layer_set_visible(__yy__v419.gmllayer_xp_cont,true);gml_Script_s_sound(__yy__v419,_inst,21);}}};}}function gml_GlobalScript_btn_click_AddStamina(_inst,_other){(_inst.gmlbtn_click_AddStamina=__yy_method(_inst,gml_Script_btn_click_AddStamina));
}function gml_Script_btn_click_AddStamina(_inst,_other){{gml_Script_s_increase_player_attribute(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,4);{var __yy__v420=GetWithArray(147);for(var __yy__v421 in __yy__v420){if(!__yy__v420.hasOwnProperty(__yy__v421))continue;var __yy__v422=__yy__v420[__yy__v421];{yyInst(_inst,_other,100432).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(__yy__v422.gmlpmap,"stamina")),10);yyInst(_inst,_other,100426).gmlflash=false;yyInst(_inst,_other,100427).gmlflash=false;
yyInst(_inst,_other,100428).gmlflash=false;yyInst(_inst,_other,100432).gmlflash=true;layer_set_visible(__yy__v422.gmllayer_back,false);layer_set_visible(__yy__v422.gmllayer_main,false);layer_set_visible(__yy__v422.gmllayer_pick,false);layer_set_visible(__yy__v422.gmllayer_xp,false);layer_set_visible(__yy__v422.gmllayer_xp_cont,true);gml_Script_s_sound(__yy__v422,_inst,21);}}};}}function gml_GlobalScript_btn_click_StatsNext(_inst,_other){(_inst.gmlbtn_click_StatsNext=__yy_method(_inst,gml_Script_btn_click_StatsNext));
}function gml_Script_btn_click_StatsNext(_inst,_other){{{var __yy__v423=GetWithArray(97);for(var __yy__v424 in __yy__v423){if(!__yy__v423.hasOwnProperty(__yy__v424))continue;var __yy__v425=__yy__v423[__yy__v424];{__yy__v425.gmlpos=yyfplus(__yy_gml_errCheck(ds_list_find_index(__yy__v425.gmlroster,__yy__v425.gmlplayer_profile)),1);if(yyfgreaterequal(__yy__v425.gmlpos,ds_list_size(__yy__v425.gmlroster))){__yy__v425.gmlpos=0;};__yy__v425.gmlplayer_profile=ds_list_find_value(__yy__v425.gmlroster,__yy__v425.gmlpos);
if(yyfequal(ds_map_find_value(__yy__v425.gmlplayer_profile,"position"),1)){__yy__v425.gmlstat_view=1;};if(yyfequal(ds_map_find_value(__yy__v425.gmlplayer_profile,"position"),2)){__yy__v425.gmlstat_view=2;};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v425,_inst))){{yyInst(_inst,_other,97).gmlco_stats_tab=0;};};}}};room_goto(27);}}function gml_GlobalScript_btn_click_StatsPrev(_inst,_other){(_inst.gmlbtn_click_StatsPrev=__yy_method(_inst,gml_Script_btn_click_StatsPrev));}function gml_Script_btn_click_StatsPrev(_inst,
_other){{{var __yy__v426=GetWithArray(97);for(var __yy__v427 in __yy__v426){if(!__yy__v426.hasOwnProperty(__yy__v427))continue;var __yy__v428=__yy__v426[__yy__v427];{__yy__v428.gmlpos=yyfminus(__yy_gml_errCheck(ds_list_find_index(__yy__v428.gmlroster,__yy__v428.gmlplayer_profile)),1);if(yyfless(__yy__v428.gmlpos,0)){__yy__v428.gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v428.gmlroster)),1);};__yy__v428.gmlplayer_profile=ds_list_find_value(__yy__v428.gmlroster,__yy__v428.gmlpos);if(yyfequal(ds_map_find_value(__yy__v428.gmlplayer_profile,
"position"),1)){__yy__v428.gmlstat_view=1;};if(yyfequal(ds_map_find_value(__yy__v428.gmlplayer_profile,"position"),2)){__yy__v428.gmlstat_view=2;};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v428,_inst))){{yyInst(_inst,_other,97).gmlco_stats_tab=0;};};}}};room_goto(27);}}function gml_GlobalScript_btn_click_StatsView1(_inst,_other){(_inst.gmlbtn_click_StatsView1=__yy_method(_inst,gml_Script_btn_click_StatsView1));}function gml_Script_btn_click_StatsView1(_inst,_other){{gml_Script_slog(_inst,_other,"showStats(2)");
yyInst(_inst,_other,97).gmlstat_view=1;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,97).gmlco_stats_tab=0;};};room_goto(27);}}function gml_GlobalScript_btn_click_StatsView2(_inst,_other){(_inst.gmlbtn_click_StatsView2=__yy_method(_inst,gml_Script_btn_click_StatsView2));}function gml_Script_btn_click_StatsView2(_inst,_other){{gml_Script_slog(_inst,_other,"showStats(2)");yyInst(_inst,_other,97).gmlstat_view=2;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,
_other,97).gmlco_stats_tab=0;};};room_goto(27);}}function gml_GlobalScript_btn_click_EditProfile(_inst,_other){(_inst.gmlbtn_click_EditProfile=__yy_method(_inst,gml_Script_btn_click_EditProfile));}function gml_Script_btn_click_EditProfile(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v429=GetWithArray(97);for(var __yy__v430 in __yy__v429){if(!__yy__v429.hasOwnProperty(__yy__v430))continue;var __yy__v431=__yy__v429[__yy__v430];{if(yyGetBool(__yy__v431.gmlplayer_profile)){{if((yyGetBool(yyfequal(ds_map_find_value(__yy__v431.gmlmap_options,
"fullversion"),1)))||(yyGetBool(yyfequal(ds_map_find_value(__yy__v431.gmlplayer_profile,"position"),100)))){{var gmlis_staff=gml_Script_s_is_staff(__yy__v431,_inst,ds_map_find_value(__yy__v431.gmlplayer_profile,"position"));__yy__v431.gmlface_type_coach=gmlis_staff;gml_Script_s_edit_field(__yy__v431,_inst,gml_Script_s_str(__yy__v431,_inst,"ui_FirstName"),gml_Script_s_str(__yy__v431,_inst,"ui_LastName"),ds_map_find_value(__yy__v431.gmlplayer_profile,"fname"),ds_map_find_value(__yy__v431.gmlplayer_profile,
"lname"),ds_map_find_value(__yy__v431.gmlplayer_profile,"skin"),ds_map_find_value(__yy__v431.gmlplayer_profile,"face_x"),ds_map_find_value(__yy__v431.gmlplayer_profile,"face_y"),gmlis_staff);};}else {{gml_Script_s_create_message(__yy__v431,_inst,"",gml_Script_s_str(__yy__v431,_inst,"msg_NeedUnlimited"),gml_Script_s_str(__yy__v431,_inst,"ui_No"),gml_Script_s_str(__yy__v431,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};};};}}};}}function gml_GlobalScript_btn_click_Meeting_Morale(_inst,
_other){(_inst.gmlbtn_click_Meeting_Morale=__yy_method(_inst,gml_Script_btn_click_Meeting_Morale));}function gml_Script_btn_click_Meeting_Morale(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"lname")));var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingMorale");var gmlmeetcost=gml_Script_s_get_meeting_cost_morale(_inst,_other,yyInst(_inst,
_other,97).gmlplayer_profile);if(yyfgreaterequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"attitude"),100)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingMoraleNotNeeded");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(gmlmeetcost,yyInst(_inst,_other,97).gmlcoach_credit)){
{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingNoCredit");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,
_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_morale_yes,global.gmlc_background,1);};};};}}function gml_GlobalScript_btn_click_Meeting_Condition(_inst,_other){(_inst.gmlbtn_click_Meeting_Condition=__yy_method(_inst,gml_Script_btn_click_Meeting_Condition));}function gml_Script_btn_click_Meeting_Condition(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,97).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"lname")));var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingCondition");var gmlmeetcost=gml_Script_s_get_meeting_cost_condition(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile);if(yyfgreaterequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"condition"),100)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingConditionNotNeeded");gmlmsg=string_replace(gmlmsg,
"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(gmlmeetcost,yyInst(_inst,_other,97).gmlcoach_credit)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingNoCredit");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,
gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_condition_yes,
global.gmlc_background,1);};};};}}function gml_GlobalScript_s_qb_mode_update_resting(_inst,_other){(_inst.gmls_qb_mode_update_resting=__yy_method(_inst,gml_Script_s_qb_mode_update_resting));}function gml_Script_s_qb_mode_update_resting(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);ds_map_set(gmlpmap,"resting",0);if(yyfnotequal(gml_Script_s_qb_mode_benched_status(_inst,_other),0)){ds_map_set(gmlpmap,"resting",1);};};};}}function gml_GlobalScript_btn_click_Meeting_LevelUp(_inst,
_other){(_inst.gmlbtn_click_Meeting_LevelUp=__yy_method(_inst,gml_Script_btn_click_Meeting_LevelUp));}function gml_Script_btn_click_Meeting_LevelUp(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"lname")));var gmli=string(yyfplus(1,__yy_gml_errCheck(yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlweek),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,97).gmlplayer_profile,"position")))),3))));var gmlmsg=gml_Script_s_str(_inst,_other,yyfplus("msg_MeetingLevelUp",__yy_gml_errCheck(gmli)));var gmlmeetcost=gml_Script_s_get_meeting_cost_levelup(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile);if(yyGetBool(gml_Script_s_player_at_max_potential(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile))){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingLevelUpNotNeeded");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,
_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(gmlmeetcost,yyInst(_inst,_other,97).gmlcoach_credit)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingNoCredit");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,
_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_levelup_yes,global.gmlc_background,1);};};};}}function gml_GlobalScript_btn_click_Meeting_ExtendContract(_inst,
_other){(_inst.gmlbtn_click_Meeting_ExtendContract=__yy_method(_inst,gml_Script_btn_click_Meeting_ExtendContract));}function gml_Script_btn_click_Meeting_ExtendContract(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"lname")));var gmlmeetcost=gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile);
if(yyGetBool(yyInst(_inst,_other,150).gmlretirement)){gmlmeetcost=max(gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile),gml_Script_s_get_meeting_cost_delay_retirement(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile));};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlmeetcost=gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile);};};if(yyfgreater(gmlmeetcost,yyInst(_inst,_other,97).gmlcoach_credit)){
{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingNoCredit");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfgreaterequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,
"percent_grade"),95)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingGPANotNeeded");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingExtendContract");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,
"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_academic_coaching,global.gmlc_background,1);return;};};};};if(yyflessequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"attitude"),45)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotSignMoraleLow");gmlmsg=string_replace(gmlmsg,
"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var ___sw166___=yyInst(_inst,_other,150).gmlretirement;var ___swc167___=-1;if(yyCompareVal(___sw166___,false,g_GMLMathEpsilon,false)==0){___swc167___=0;}else if(yyCompareVal(___sw166___,true,g_GMLMathEpsilon,false)==0){___swc167___=1;}switch(___swc167___){case 0:{var gmlmsg=gml_Script_s_str(_inst,
_other,"msg_MeetingExtendContract");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_extend_contract,global.gmlc_background,1);break;}case 1:{if(yyfgreaterequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,
"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_get_max_age(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile)),5))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingTooOld");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingDelayRetirement");
gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_extend_contract,global.gmlc_background,1);};};break;}};}}function gml_GlobalScript_btn_click_FieldGoal(_inst,_other){(_inst.gmlbtn_click_FieldGoal=__yy_method(_inst,
gml_Script_btn_click_FieldGoal));}function gml_Script_btn_click_FieldGoal(_inst,_other){{yyInst(_inst,_other,97).gmlgamepractice=1;gml_Script_s_set_up_uniforms_training(_inst,_other);room_goto(17);}}function gml_GlobalScript_btn_click_Running(_inst,_other){(_inst.gmlbtn_click_Running=__yy_method(_inst,gml_Script_btn_click_Running));}function gml_Script_btn_click_Running(_inst,_other){{yyInst(_inst,_other,97).gmlgamepractice=2;gml_Script_s_set_up_uniforms_training(_inst,_other);room_goto(17);}}function gml_GlobalScript_btn_click_Passing(_inst,
_other){(_inst.gmlbtn_click_Passing=__yy_method(_inst,gml_Script_btn_click_Passing));}function gml_Script_btn_click_Passing(_inst,_other){{yyInst(_inst,_other,97).gmlgamepractice=3;gml_Script_s_set_up_uniforms_training(_inst,_other);room_goto(17);}}function gml_GlobalScript_s_get_happiness(_inst,_other){(_inst.gmls_get_happiness=__yy_method(_inst,gml_Script_s_get_happiness));}function gml_Script_s_get_happiness(_inst,_other){{{var __yy__v432=GetWithArray(97);for(var __yy__v433 in __yy__v432){if(!__yy__v432.hasOwnProperty(__yy__v433))continue;
var __yy__v434=__yy__v432[__yy__v433];{var gmlhap=yyfplus(yyfplus(__yy_gml_errCheck(__yy__v434.gmlfans),__yy_gml_errCheck(__yy__v434.gmlrelationship_boss)),__yy_gml_errCheck(gml_Script_s_get_morale(__yy__v434,_inst)));return yyfdivide(__yy_gml_errCheck(gmlhap),3);}}};}}function gml_GlobalScript_btn_click_Training(_inst,_other){(_inst.gmlbtn_click_Training=__yy_method(_inst,gml_Script_btn_click_Training));}function gml_Script_btn_click_Training(_inst,_other){{room_goto(30);}}function gml_GlobalScript_btn_click_Roster(_inst,
_other){(_inst.gmlbtn_click_Roster=__yy_method(_inst,gml_Script_btn_click_Roster));}function gml_Script_btn_click_Roster(_inst,_other){{if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),14)))&&(yyGetBool(ds_list_size(yyInst(_inst,_other,97).gmlfreeagentlist)))){{_inst.gmlstage=1;room_goto(7);return;};};room_goto(25);}}function gml_GlobalScript_btn_click_Roster_Back(_inst,_other){(_inst.gmlbtn_click_Roster_Back=__yy_method(_inst,gml_Script_btn_click_Roster_Back));(_inst.gmlbtn_click_Profile_Back_To_Draft=__yy_method(_inst,
gml_Script_btn_click_Profile_Back_To_Draft));(_inst.gmlbtn_click_Profile_Back_To_Draft_Continue=__yy_method(_inst,gml_Script_btn_click_Profile_Back_To_Draft_Continue));}function gml_Script_btn_click_Roster_Back(_inst,_other){{{var __yy__v435=GetWithArray(97);for(var __yy__v436 in __yy__v435){if(!__yy__v435.hasOwnProperty(__yy__v436))continue;var __yy__v437=__yy__v435[__yy__v436];{if(yyGetBool(__yy__v437.gmlroster_from_store)){room_goto(8);}else {if(yyfgreater(ds_list_size(__yy__v437.gmldraftlist),0)){gml_Script_btn_click_Profile_Back_To_Draft(__yy__v437,
_inst);}else {if(yyfgreater(ds_list_size(__yy__v437.gmlfreeagentlist),0)){room_goto(7);}else {if(yyfgreater(ds_list_size(__yy__v437.gmltradelist),0)){room_goto(7);}else {room_goto(14);};};};};}}};}}function gml_Script_btn_click_Profile_Back_To_Draft(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_Profile_Back_To_Draft");if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{room_goto(5);return;};};if((yyGetBool(yyInst(_inst,_other,97).gmlcollege_admissions_warn_once))&&(yyGetBool(yyInst(_inst,
_other,97).gmlcollege_admissions_doing_player_draft_sign))){{gml_Script_slog(_inst,_other,"btn_click_Profile_Back_To_Draft - Warn");yyInst(_inst,_other,97).gmlcollege_admissions_warn_once=0;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"ui_Admissions_Warn_Once"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_btn_click_Profile_Back_To_Draft_Continue,global.gmlc_background,1);};}else {{gml_Script_slog(_inst,_other,"btn_click_Profile_Back_To_Draft - No Warn");
yyInst(_inst,_other,97).gmlcollege_admissions_doing_player_draft_sign=false;room_goto(5);};};}}function gml_Script_btn_click_Profile_Back_To_Draft_Continue(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,97).gmlcollege_admissions_doing_player_draft_sign=false;room_goto(5);}}function gml_GlobalScript_btn_click_DraftPrev(_inst,_other){(_inst.gmlbtn_click_DraftPrev=__yy_method(_inst,gml_Script_btn_click_DraftPrev));}function gml_Script_btn_click_DraftPrev(_inst,_other){{{var __yy__v438=GetWithArray(154);
for(var __yy__v439 in __yy__v438){if(!__yy__v438.hasOwnProperty(__yy__v439))continue;var __yy__v440=__yy__v438[__yy__v439];{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmldraft_page,yyInst(_inst,_other,97).gmldraft_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmldraft_page.subtract(1):--yyInst(_inst,_other,97).gmldraft_page),g_yyPrePostObject__);if(yyfless(yyInst(_inst,_other,97).gmldraft_page,1)){yyInst(_inst,_other,97).gmldraft_page=__yy__v440.gmlpage_max;};gml_Script_s_update_draft_page(__yy__v440,
_inst);}}};}}function gml_GlobalScript_btn_click_DraftNext(_inst,_other){(_inst.gmlbtn_click_DraftNext=__yy_method(_inst,gml_Script_btn_click_DraftNext));}function gml_Script_btn_click_DraftNext(_inst,_other){{{var __yy__v441=GetWithArray(154);for(var __yy__v442 in __yy__v441){if(!__yy__v441.hasOwnProperty(__yy__v442))continue;var __yy__v443=__yy__v441[__yy__v442];{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmldraft_page,yyInst(_inst,_other,97).gmldraft_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,
_other,97).gmldraft_page.add(1):++yyInst(_inst,_other,97).gmldraft_page),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,97).gmldraft_page,__yy__v443.gmlpage_max)){yyInst(_inst,_other,97).gmldraft_page=1;};gml_Script_s_update_draft_page(__yy__v443,_inst);}}};}}function gml_GlobalScript_btn_click_DraftDone(_inst,_other){(_inst.gmlbtn_click_DraftDone=__yy_method(_inst,gml_Script_btn_click_DraftDone));}function gml_Script_btn_click_DraftDone(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_DraftRound");
if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_college_admissions_draft_done(_inst,_other);return;};};var gmlpicks=yyInst(_inst,_other,97).gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmldraft_round),1),yyInst(_inst,_other,97).gmldraft_picks)];gml_Script_slog(_inst,_other,yyfplus("Picks = ",__yy_gml_errCheck(string(gmlpicks))));if(yyfgreater(gmlpicks,0)){{var gmlvalue=yyftime(__yy_gml_errCheck(gmlpicks),__yy_gml_errCheck(yyfminus(4,
__yy_gml_errCheck(yyInst(_inst,_other,97).gmldraft_round))));var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SkipDraft");if(yyfequal(gmlpicks,1)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_SkipDraft1");};gmlmsg=string_replace(gmlmsg,"$num",string(gmlpicks));gmlmsg=string_replace(gmlmsg,"$value",string(gmlvalue));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_skip_draft_yes,
global.gmlc_background,1);};}else {{gml_Script_s_end_draft_round(_inst,_other,false);};};}}function gml_GlobalScript_btn_click_FreeAgents(_inst,_other){(_inst.gmlbtn_click_FreeAgents=__yy_method(_inst,gml_Script_btn_click_FreeAgents));}function gml_Script_btn_click_FreeAgents(_inst,_other){{room_goto(7);}}function gml_GlobalScript_btn_click_FreeAgentsBack(_inst,_other){(_inst.gmlbtn_click_FreeAgentsBack=__yy_method(_inst,gml_Script_btn_click_FreeAgentsBack));}function gml_Script_btn_click_FreeAgentsBack(_inst,
_other){{gml_Script_slog(_inst,_other,"btn_click_FreeAgentBack");{var __yy__v444=GetWithArray(97);for(var __yy__v445 in __yy__v444){if(!__yy__v444.hasOwnProperty(__yy__v445))continue;var __yy__v446=__yy__v444[__yy__v445];{gml_Script_slog(__yy__v446,_inst,yyfplus("FreeAgents=",__yy_gml_errCheck(string(ds_list_size(__yy__v446.gmlfreeagentlist)))));gml_Script_slog(__yy__v446,_inst,yyfplus("TradeList=",__yy_gml_errCheck(string(ds_list_size(__yy__v446.gmltradelist)))));if(yyfgreater(ds_list_size(__yy__v446.gmlfreeagentlist),
0)){{var gmlmsg=gml_Script_s_str(__yy__v446,_inst,"msg_ClearFreeAgent");if(yyfgreater(ds_list_size(__yy__v446.gmlfreeagentlist),1)){gmlmsg=gml_Script_s_str(__yy__v446,_inst,"msg_ClearFreeAgents");};gml_Script_s_create_message(__yy__v446,_inst,"",gmlmsg,gml_Script_s_str(__yy__v446,_inst,"ui_No"),gml_Script_s_str(__yy__v446,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_clearfreeagents,global.gmlc_background,1);return;};}else {if(yyfgreater(ds_list_size(__yy__v446.gmltradelist),0)){
{var gmlmsg=gml_Script_s_str(__yy__v446,_inst,"msg_ClearTradeOffer");gml_Script_s_create_message(__yy__v446,_inst,"",gmlmsg,gml_Script_s_str(__yy__v446,_inst,"ui_No"),gml_Script_s_str(__yy__v446,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_clearfreeagents,global.gmlc_background,1);return;};};};}}};room_goto(14);}}function gml_GlobalScript_btn_click_RestAll(_inst,_other){(_inst.gmlbtn_click_RestAll=__yy_method(_inst,gml_Script_btn_click_RestAll));}function gml_Script_btn_click_RestAll(_inst,
_other){{gml_Script_s_rest_all_players(_inst,_other,!yyGetBool(gml_Script_s_all_players_resting(_inst,_other)));room_goto(34);}}function gml_GlobalScript_btn_click_FreeAgentsNext(_inst,_other){(_inst.gmlbtn_click_FreeAgentsNext=__yy_method(_inst,gml_Script_btn_click_FreeAgentsNext));}function gml_Script_btn_click_FreeAgentsNext(_inst,_other){{yyInst(_inst,_other,97).gmlfa_page=2;room_goto(8);}}function gml_GlobalScript_btn_click_FreeAgentsPrev(_inst,_other){(_inst.gmlbtn_click_FreeAgentsPrev=__yy_method(_inst,
gml_Script_btn_click_FreeAgentsPrev));}function gml_Script_btn_click_FreeAgentsPrev(_inst,_other){{yyInst(_inst,_other,97).gmlfa_page=1;room_goto(8);}}function gml_GlobalScript_btn_click_FreeAgentsReset(_inst,_other){(_inst.gmlbtn_click_FreeAgentsReset=__yy_method(_inst,gml_Script_btn_click_FreeAgentsReset));}function gml_Script_btn_click_FreeAgentsReset(_inst,_other){{{var __yy__v447=GetWithArray(97);for(var __yy__v448 in __yy__v447){if(!__yy__v447.hasOwnProperty(__yy__v448))continue;var __yy__v449=__yy__v447[__yy__v448];
{if(yyfless(__yy__v449.gmlcoach_credit,5)){{var gmlmsg=gml_Script_s_str(__yy__v449,_inst,"msg_ResetNoCredit");gmlmsg=string_replace(gmlmsg,"$num",5);gml_Script_s_create_message(__yy__v449,_inst,"",gmlmsg,gml_Script_s_str(__yy__v449,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v449.gmlfreeagent_reset_week,__yy__v449.gmlweek)){{gml_Script_s_create_message(__yy__v449,_inst,"",gml_Script_s_str(__yy__v449,_inst,"msg_ResetTooSoon"),gml_Script_s_str(__yy__v449,
_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v449,_inst,"msg_FreeAgentReset");gmlmsg=string_replace(gmlmsg,"$num",5);gml_Script_s_create_message(__yy__v449,_inst,"",gmlmsg,gml_Script_s_str(__yy__v449,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v449,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_freeagent_hire_reset,global.gmlc_background,1);}}};}}function gml_GlobalScript_btn_click_Boost_Morale(_inst,_other){
(_inst.gmlbtn_click_Boost_Morale=__yy_method(_inst,gml_Script_btn_click_Boost_Morale));}function gml_Script_btn_click_Boost_Morale(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlboost_morale_done)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_BoostMoraleAlreadyDone"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(25,yyInst(_inst,_other,97).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,
_other,"msg_BoostMoraleNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostMorale");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,
kgml_Script_btn_response_boost_morale,global.gmlc_background,1);};};};}}function gml_GlobalScript_btn_click_Boost_Condition(_inst,_other){(_inst.gmlbtn_click_Boost_Condition=__yy_method(_inst,gml_Script_btn_click_Boost_Condition));}function gml_Script_btn_click_Boost_Condition(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlboost_condition_done)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_BoostConditionAlreadyDone"),gml_Script_s_str(_inst,_other,"ui_Continue"),
"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(25,yyInst(_inst,_other,97).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostConditionNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostCondition");gmlmsg=string_replace(gmlmsg,"$num",
string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_condition,global.gmlc_background,1);};};};}}function gml_GlobalScript_btn_click_Boost_Salary_Cap(_inst,_other){(_inst.gmlbtn_click_Boost_Salary_Cap=__yy_method(_inst,gml_Script_btn_click_Boost_Salary_Cap));}function gml_Script_btn_click_Boost_Salary_Cap(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,
_other))){{gml_Script_recruitment_credits_button_click_boost(_inst,_other);return;};};if(yyfgreater(100,yyInst(_inst,_other,97).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostSalaryNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlboost_salary_cap)),25)));gmlmsg=string_replace(gmlmsg,"$cost",string(100));gml_Script_s_create_message(_inst,_other,"",gmlmsg,
gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostSalaryCap");gmlmsg=string_replace(gmlmsg,"$num",string(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlboost_salary_cap)),25)));gmlmsg=string_replace(gmlmsg,"$cost",string(100));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,
_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_salary_cap,global.gmlc_background,1);};};}}function gml_GlobalScript_btn_click_LoadSlot1(_inst,_other){(_inst.gmlbtn_click_LoadSlot1=__yy_method(_inst,gml_Script_btn_click_LoadSlot1));}function gml_Script_btn_click_LoadSlot1(_inst,_other){{ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"saveslot",1);gml_Script_s_save_options(_inst,_other);gml_Script_s_destroy_master(_inst,_other);if(yyGetBool(file_exists(global.gmlg_savename1))){
{instance_create_layer(0,0,"Instances",97);room_goto(14);};}else {{instance_create_layer(0,0,"Instances",97);room_goto(2);};};}}function gml_GlobalScript_btn_click_LoadSlot2(_inst,_other){(_inst.gmlbtn_click_LoadSlot2=__yy_method(_inst,gml_Script_btn_click_LoadSlot2));}function gml_Script_btn_click_LoadSlot2(_inst,_other){{ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"saveslot",2);gml_Script_s_save_options(_inst,_other);gml_Script_s_destroy_master(_inst,_other);if(yyGetBool(file_exists(global.gmlg_savename2))){
{instance_create_layer(0,0,"Instances",97);room_goto(14);};}else {{instance_create_layer(0,0,"Instances",97);room_goto(2);};};}}function gml_GlobalScript_s_set_up_button_kickoff(_inst,_other){(_inst.gmls_set_up_button_kickoff=__yy_method(_inst,gml_Script_s_set_up_button_kickoff));(_inst.gmlbtn_kick_off=__yy_method(_inst,gml_Script_btn_kick_off));(_inst.gmls_btn_kickoff_recenter=__yy_method(_inst,gml_Script_s_btn_kickoff_recenter));}function gml_Script_s_set_up_button_kickoff(_inst,_other){{gml_Script_slog(_inst,
_other,"s_set_up_button_kickoff");_inst.gmlbtn_kickoff=(-1);if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){return;};{var __yy__v450=GetWithArray(104);for(var __yy__v451 in __yy__v450){if(!__yy__v450.hasOwnProperty(__yy__v451))continue;var __yy__v452=__yy__v450[__yy__v451];{var gmlbx=yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(80)),2)));var gmlby=180;__yy__v452.gmlbtn_kickoff=instance_create_layer(gmlbx,
gmlby,"Text",31);yyInst(_inst,_other,__yy__v452.gmlbtn_kickoff).gmlgp_mapped_button=global.gmlgp_select;{var __yy__v453=GetWithArray(29);for(var __yy__v454 in __yy__v453){if(!__yy__v453.hasOwnProperty(__yy__v454))continue;var __yy__v455=__yy__v453[__yy__v454];instance_destroy(__yy__v455);}};gml_Script_slog(__yy__v452,_inst,gml_Script_s_get_string_commstage(__yy__v452,_inst,__yy__v452.gmlcomm_stage));gml_Script_slog(__yy__v452,_inst,yyfplus("Quarter = ",__yy_gml_errCheck(string(__yy__v452.gmlquarter))));
var gmlkickingoff=(-1);var ___sw172___=__yy__v452.gmlcomm_stage;var ___swc173___=-1;if(yyCompareVal(___sw172___,0,g_GMLMathEpsilon,false)==0){___swc173___=0;}else if(yyCompareVal(___sw172___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw172___,13,g_GMLMathEpsilon,false)==0){___swc173___=1;}switch(___swc173___){case 0:{if((yyGetBool(yyfequal(__yy__v452.gmlkickoffteam,__yy__v452.gmlhuman_team)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){gmlkickingoff=1;}else {gmlkickingoff=0;
};break;}case 1:{if(yyfequal(__yy__v452.gmlquarter,2)){{if((yyGetBool(yyfnotequal(__yy__v452.gmlkickoffteam,__yy__v452.gmlhuman_team)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){gmlkickingoff=1;}else {gmlkickingoff=0;};};};break;}};var ___sw174___=gmlkickingoff;var ___swc175___=-1;if(yyCompareVal(___sw174___,(-1),g_GMLMathEpsilon,false)==0){___swc175___=0;}else if(yyCompareVal(___sw174___,0,g_GMLMathEpsilon,false)==0){___swc175___=1;}else if(yyCompareVal(___sw174___,1,g_GMLMathEpsilon,
false)==0){___swc175___=2;}switch(___swc175___){case 0:{yyInst(_inst,_other,__yy__v452.gmlbtn_kickoff).gmltxt=gml_Script_s_str(__yy__v452,_inst,"ui_Continue");break;}case 1:{yyInst(_inst,_other,__yy__v452.gmlbtn_kickoff).gmltxt=gml_Script_s_str(__yy__v452,_inst,"match_Receive");break;}case 2:{yyInst(_inst,_other,__yy__v452.gmlbtn_kickoff).gmltxt=gml_Script_s_str(__yy__v452,_inst,"match_KickOff");break;}};}}};}}function gml_Script_btn_kick_off(_inst,_other){{gml_Script_slog(_inst,_other,"btn_kick_off");
instance_destroy(_inst);{var __yy__v456=GetWithArray(104);for(var __yy__v457 in __yy__v456){if(!__yy__v456.hasOwnProperty(__yy__v457))continue;var __yy__v458=__yy__v456[__yy__v457];__yy__v458.gmlcomm_proceed=true;}};if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};}}function gml_Script_s_btn_kickoff_recenter(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(80)),
2)));}}function gml_GlobalScript_btn_click_LoadSlot3(_inst,_other){(_inst.gmlbtn_click_LoadSlot3=__yy_method(_inst,gml_Script_btn_click_LoadSlot3));}function gml_Script_btn_click_LoadSlot3(_inst,_other){{ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"saveslot",3);gml_Script_s_save_options(_inst,_other);gml_Script_s_destroy_master(_inst,_other);if(yyGetBool(file_exists(global.gmlg_savename3))){{instance_create_layer(0,0,"Instances",97);room_goto(14);};}else {{instance_create_layer(0,0,"Instances",
97);room_goto(2);};};}}function gml_GlobalScript_btn_click_LoadSlot4(_inst,_other){(_inst.gmlbtn_click_LoadSlot4=__yy_method(_inst,gml_Script_btn_click_LoadSlot4));}function gml_Script_btn_click_LoadSlot4(_inst,_other){{ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"saveslot",4);gml_Script_s_save_options(_inst,_other);gml_Script_s_destroy_master(_inst,_other);if(yyGetBool(file_exists(global.gmlg_savename4))){{instance_create_layer(0,0,"Instances",97);room_goto(14);};}else {{instance_create_layer(0,
0,"Instances",97);room_goto(2);};};}}function gml_GlobalScript_btn_click_LoadSlot5(_inst,_other){(_inst.gmlbtn_click_LoadSlot5=__yy_method(_inst,gml_Script_btn_click_LoadSlot5));}function gml_Script_btn_click_LoadSlot5(_inst,_other){{ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"saveslot",5);gml_Script_s_save_options(_inst,_other);gml_Script_s_destroy_master(_inst,_other);if(yyGetBool(file_exists(global.gmlg_savename5))){{instance_create_layer(0,0,"Instances",97);room_goto(14);};}else {{instance_create_layer(0,
0,"Instances",97);room_goto(2);};};}}function gml_GlobalScript_btn_click_DeleteSlot1(_inst,_other){(_inst.gmlbtn_click_DeleteSlot1=__yy_method(_inst,gml_Script_btn_click_DeleteSlot1));}function gml_Script_btn_click_DeleteSlot1(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,1,false));gmlmsg=string_replace(gmlmsg,"$num","1");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,
gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame1,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_DeleteSlot2(_inst,_other){(_inst.gmlbtn_click_DeleteSlot2=__yy_method(_inst,gml_Script_btn_click_DeleteSlot2));}function gml_Script_btn_click_DeleteSlot2(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,
_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,2,false));gmlmsg=string_replace(gmlmsg,"$num","2");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame2,global.gmlc_background,
1);}}function gml_GlobalScript_btn_click_DeleteSlot3(_inst,_other){(_inst.gmlbtn_click_DeleteSlot3=__yy_method(_inst,gml_Script_btn_click_DeleteSlot3));}function gml_Script_btn_click_DeleteSlot3(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,3,false));gmlmsg=string_replace(gmlmsg,"$num","3");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,
"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame3,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_DeleteSlot4(_inst,_other){(_inst.gmlbtn_click_DeleteSlot4=__yy_method(_inst,gml_Script_btn_click_DeleteSlot4));}function gml_Script_btn_click_DeleteSlot4(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");
gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,4,false));gmlmsg=string_replace(gmlmsg,"$num","4");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame4,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_DeleteSlot5(_inst,
_other){(_inst.gmlbtn_click_DeleteSlot5=__yy_method(_inst,gml_Script_btn_click_DeleteSlot5));}function gml_Script_btn_click_DeleteSlot5(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,5,false));gmlmsg=string_replace(gmlmsg,"$num","5");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,
_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame5,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_StaffProfile(_inst,_other){(_inst.gmlbtn_click_StaffProfile=__yy_method(_inst,gml_Script_btn_click_StaffProfile));}function gml_Script_btn_click_StaffProfile(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),23)){return;};yyInst(_inst,_other,97).gmlplayer_profile=_inst.gmlpmap;
room_goto(23);}}function gml_GlobalScript_btn_click_StaffProfileNext(_inst,_other){(_inst.gmlbtn_click_StaffProfileNext=__yy_method(_inst,gml_Script_btn_click_StaffProfileNext));}function gml_Script_btn_click_StaffProfileNext(_inst,_other){{{var __yy__v459=GetWithArray(97);for(var __yy__v460 in __yy__v459){if(!__yy__v459.hasOwnProperty(__yy__v460))continue;var __yy__v461=__yy__v459[__yy__v460];{if(yyfgreater(ds_list_find_index(__yy__v461.gmlstafflist,__yy__v461.gmlplayer_profile),(-1))){{var gmlpos=yyfplus(__yy_gml_errCheck(ds_list_find_index(__yy__v461.gmlstafflist,
__yy__v461.gmlplayer_profile)),1);if(yyfgreaterequal(gmlpos,ds_list_size(__yy__v461.gmlstafflist))){gmlpos=0;};__yy__v461.gmlplayer_profile=ds_list_find_value(__yy__v461.gmlstafflist,gmlpos);};}else {if(yyfgreater(ds_list_find_index(__yy__v461.gmlhirelist,__yy__v461.gmlplayer_profile),(-1))){{var gmlshortlist=gml_Script_s_get_hire_shortlist(__yy__v461,_inst,ds_map_find_value(__yy__v461.gmlplayer_profile,"position"));var gmlpos=yyfplus(__yy_gml_errCheck(ds_list_find_index(gmlshortlist,__yy__v461.gmlplayer_profile)),
1);if(yyfgreaterequal(gmlpos,ds_list_size(gmlshortlist))){gmlpos=0;};__yy__v461.gmlplayer_profile=ds_list_find_value(gmlshortlist,gmlpos);ds_list_destroy(gmlshortlist);gmlshortlist=(-1);};};};}}};room_goto(23);}}function gml_GlobalScript_s_draw_gamepad_controls(_inst,_other){(_inst.gmls_draw_gamepad_controls=__yy_method(_inst,gml_Script_s_draw_gamepad_controls));}function gml_Script_s_draw_gamepad_controls(_inst,_other){{{var __yy__v462=GetWithArray(112);for(var __yy__v463 in __yy__v462){if(!__yy__v462.hasOwnProperty(__yy__v463))continue;
var __yy__v464=__yy__v462[__yy__v463];return;}};{var __yy__v465=GetWithArray(78);for(var __yy__v466 in __yy__v465){if(!__yy__v465.hasOwnProperty(__yy__v466))continue;var __yy__v467=__yy__v465[__yy__v466];return;}};var gmldw=display_get_gui_width();var gmlsx=(yyfequal(_inst.gmldrivedir,(-1))?yyfminus(__yy_gml_errCheck(gmldw),78):78);var gmlsy=(yyfequal(_inst.gmldrivedir,(-1))?232:220);if(yyfequal(yyInst(_inst,_other,104).gmlstate,3)){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_gamepad_guides"))){
draw_sprite_ext(_inst,(yyfequal(g_pBuiltIn.get_os_type(),21)?240:225),0,gmlsx,236,1,1,0,16777215,1);};return;};};var ___sw186___=yyInst(_inst,_other,97).gmlgamepractice;var ___swc187___=-1;if(yyCompareVal(___sw186___,4,g_GMLMathEpsilon,false)==0){___swc187___=0;}else if(yyCompareVal(___sw186___,3,g_GMLMathEpsilon,false)==0){___swc187___=1;}else if(yyCompareVal(___sw186___,2,g_GMLMathEpsilon,false)==0){___swc187___=2;}else if(yyCompareVal(___sw186___,1,g_GMLMathEpsilon,false)==0){___swc187___=3;}switch(___swc187___){
case 0:{break;}case 1:{{var __yy__v468=GetWithArray(global.gmlmaster_ball);for(var __yy__v469 in __yy__v468){if(!__yy__v468.hasOwnProperty(__yy__v469))continue;var __yy__v470=__yy__v468[__yy__v469];if(yyfgreater(__yy__v470.gmlstate,2)){return;};}};draw_sprite_ext(_inst,(yyfequal(g_pBuiltIn.get_os_type(),21)?152:257),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}case 2:{if(yyfequal(_inst.gmlpractice_success,0)){{{var __yy__v471=GetWithArray(global.gmlmaster_ball);for(var __yy__v472 in __yy__v471){if(!__yy__v471.hasOwnProperty(__yy__v472))continue;
var __yy__v473=__yy__v471[__yy__v472];{var ___sw188___=g_pBuiltIn.get_os_type();var ___swc189___=-1;if(yyCompareVal(___sw188___,21,g_GMLMathEpsilon,false)==0){___swc189___=0;}switch(___swc189___){case 0:{draw_sprite_ext(__yy__v473,(yyfequal(__yy__v473.gmlstate,0)?232:219),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}default :{draw_sprite_ext(__yy__v473,(yyfequal(__yy__v473.gmlstate,0)?260:244),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}};}}};};}else {{{var __yy__v474=GetWithArray(global.gmlmaster_ball);for(var __yy__v475 in __yy__v474){
if(!__yy__v474.hasOwnProperty(__yy__v475))continue;var __yy__v476=__yy__v474[__yy__v475];{var ___sw190___=__yy__v476.gmlstate;var ___swc191___=-1;if(yyCompareVal(___sw190___,0,g_GMLMathEpsilon,false)==0){___swc191___=0;}else if(yyCompareVal(___sw190___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw190___,1,g_GMLMathEpsilon,false)==0){___swc191___=1;}switch(___swc191___){case 0:{draw_sprite_ext(__yy__v476,(yyfequal(g_pBuiltIn.get_os_type(),21)?239:256),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(__yy__v476,
(yyfequal(g_pBuiltIn.get_os_type(),21)?252:238),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}default :{draw_sprite_ext(__yy__v476,(yyfequal(g_pBuiltIn.get_os_type(),21)?268:247),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}};}}};};};break;}case 3:{{var __yy__v477=GetWithArray(global.gmlmaster_ball);for(var __yy__v478 in __yy__v477){if(!__yy__v477.hasOwnProperty(__yy__v478))continue;var __yy__v479=__yy__v477[__yy__v478];{var ___sw192___=g_pBuiltIn.get_os_type();var ___swc193___=-1;if(yyCompareVal(___sw192___,21,g_GMLMathEpsilon,
false)==0){___swc193___=0;}switch(___swc193___){case 0:{if(yyflessequal(__yy__v479.gmlstate,2)){draw_sprite_ext(__yy__v479,(yyfequal(__yy__v479.gmlstate,0)?241:242),0,gmlsx,gmlsy,1,1,0,16777215,1);};break;}default :{if(yyflessequal(__yy__v479.gmlstate,2)){draw_sprite_ext(__yy__v479,(yyfequal(__yy__v479.gmlstate,0)?270:250),0,gmlsx,gmlsy,1,1,0,16777215,1);};break;}};}}};break;}default :{if(yyGetBool(_inst.gmlkicking)){return;};if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_gamepad_guides"))){
return;};{var __yy__v480=GetWithArray(global.gmlmaster_ball);for(var __yy__v481 in __yy__v480){if(!__yy__v480.hasOwnProperty(__yy__v481))continue;var __yy__v482=__yy__v480[__yy__v481];var ___sw194___=__yy__v482.gmlstate;var ___swc195___=-1;if(yyCompareVal(___sw194___,0,g_GMLMathEpsilon,false)==0){___swc195___=0;}else if(yyCompareVal(___sw194___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw194___,1,g_GMLMathEpsilon,false)==0){___swc195___=1;}else if(yyCompareVal(___sw194___,5,g_GMLMathEpsilon,false)==0){
___swc195___=2;}switch(___swc195___){case 0:{draw_sprite_ext(__yy__v482,(yyfequal(g_pBuiltIn.get_os_type(),21)?84:259),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(__yy__v482,(yyfequal(g_pBuiltIn.get_os_type(),21)?203:224),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}case 2:{if((yyGetBool(gml_Script_s_is_kickoff(__yy__v482,_inst,true)))&&(yyGetBool(gml_Script_s_can_touchback(__yy__v482,_inst)))){draw_sprite_ext(__yy__v482,86,0,gmlsx,gmlsy,1,1,0,16777215,1);}else {draw_sprite_ext(__yy__v482,
(yyfequal(g_pBuiltIn.get_os_type(),21)?205:204),0,gmlsx,gmlsy,1,1,0,16777215,1);};break;}};}};break;}};}}function gml_GlobalScript_s_team_helpers(_inst,_other){(_inst.gmls_teams_file=__yy_method(_inst,gml_Script_s_teams_file));}function gml_Script_s_teams_file(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return "Teams_CO.txt";};};return "Teams.txt";}}function gml_GlobalScript_btn_click_StaffProfilePrev(_inst,_other){(_inst.gmlbtn_click_StaffProfilePrev=__yy_method(_inst,gml_Script_btn_click_StaffProfilePrev));
}function gml_Script_btn_click_StaffProfilePrev(_inst,_other){{{var __yy__v483=GetWithArray(97);for(var __yy__v484 in __yy__v483){if(!__yy__v483.hasOwnProperty(__yy__v484))continue;var __yy__v485=__yy__v483[__yy__v484];{if(yyfgreater(ds_list_find_index(__yy__v485.gmlstafflist,__yy__v485.gmlplayer_profile),(-1))){{var gmlpos=yyfminus(__yy_gml_errCheck(ds_list_find_index(__yy__v485.gmlstafflist,__yy__v485.gmlplayer_profile)),1);if(yyfless(gmlpos,0)){gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v485.gmlstafflist)),
1);};__yy__v485.gmlplayer_profile=ds_list_find_value(__yy__v485.gmlstafflist,gmlpos);};}else {if(yyfgreater(ds_list_find_index(__yy__v485.gmlhirelist,__yy__v485.gmlplayer_profile),(-1))){{var gmlshortlist=gml_Script_s_get_hire_shortlist(__yy__v485,_inst,ds_map_find_value(__yy__v485.gmlplayer_profile,"position"));var gmlpos=yyfminus(__yy_gml_errCheck(ds_list_find_index(gmlshortlist,__yy__v485.gmlplayer_profile)),1);if(yyfless(gmlpos,0)){gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(gmlshortlist)),1);
};__yy__v485.gmlplayer_profile=ds_list_find_value(gmlshortlist,gmlpos);ds_list_destroy(gmlshortlist);gmlshortlist=(-1);};};};}}};room_goto(23);}}function gml_GlobalScript_btn_click_StaffProfileBack(_inst,_other){(_inst.gmlbtn_click_StaffProfileBack=__yy_method(_inst,gml_Script_btn_click_StaffProfileBack));}function gml_Script_btn_click_StaffProfileBack(_inst,_other){{{var __yy__v486=GetWithArray(97);for(var __yy__v487 in __yy__v486){if(!__yy__v486.hasOwnProperty(__yy__v487))continue;var __yy__v488=__yy__v486[__yy__v487];
{if((yyGetBool(yyfgreaterequal(ds_list_find_index(__yy__v488.gmlstafflist,__yy__v488.gmlplayer_profile),0)))||(yyGetBool(yyfequal(ds_map_find_value(__yy__v488.gmlplayer_profile,"position"),100)))){room_goto(9);}else {gml_Script_btn_click_ViewHires(__yy__v488,_inst);};}}};}}function gml_GlobalScript_btn_click_HireStaff(_inst,_other){(_inst.gmlbtn_click_HireStaff=__yy_method(_inst,gml_Script_btn_click_HireStaff));}function gml_Script_btn_click_HireStaff(_inst,_other){{var gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;
var gmlmsg=gml_Script_s_str(_inst,_other,"msg_HireStaff");var gmlcontract=2;var gmlcost=gml_Script_s_get_coach_cost(_inst,_other,gmlpmap);if(yyfless(ds_list_find_index(yyInst(_inst,_other,97).gmlstafflist,gmlpmap),0)){{if(yyfgreater(gmlcost,yyInst(_inst,_other,97).gmlcoach_credit)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_HireStaffNoCost");gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"lname"))));gmlmsg=string_replace(gmlmsg,"$num",gmlcost);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,
_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$year",string(gmlcontract));gmlmsg=string_replace(gmlmsg,"$num",gmlcost);yyInst(_inst,_other,97).gmlstaff_hire=gmlpmap;gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_hirestaff,global.gmlc_background,1);};}else {{gmlcost=round(yyftime(__yy_gml_errCheck(gmlcost),
0.5));if(yyfless(gmlcost,1)){gmlcost=1;};if(yyfgreaterequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(_inst,_other,gmlpmap))){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_StaffExtendNoAge");gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {if(yyfgreater(gmlcost,yyInst(_inst,_other,97).gmlcoach_credit)){{gmlmsg=gml_Script_s_str(_inst,
_other,"msg_StaffExtendNoCost");if(yyfless(gmlcost,2)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_StaffExtendNoCost1");};gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$num",gmlcost);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,
"",global.gmlc_background,1);return;};};};yyInst(_inst,_other,97).gmlstaff_hire=gmlpmap;gmlmsg=gml_Script_s_str(_inst,_other,"msg_StaffExtend");if(yyfless(gmlcost,2)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_StaffExtend1");};if(yyfless(ds_map_find_value(gmlpmap,"contract"),2)){gmlmsg=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"msg_StaffExpiring"))," "),__yy_gml_errCheck(gmlmsg));};gmlmsg=string_replace_all(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace_all(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace_all(gmlmsg,"$num",gmlcost);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_hirestaff,global.gmlc_background,
1);};};}}function gml_GlobalScript_btn_click_ViewHires(_inst,_other){(_inst.gmlbtn_click_ViewHires=__yy_method(_inst,gml_Script_btn_click_ViewHires));}function gml_Script_btn_click_ViewHires(_inst,_other){{room_goto(31);}}function gml_GlobalScript_btn_click_ViewHiresProfile(_inst,_other){(_inst.gmlbtn_click_ViewHiresProfile=__yy_method(_inst,gml_Script_btn_click_ViewHiresProfile));}function gml_Script_btn_click_ViewHiresProfile(_inst,_other){{yyInst(_inst,_other,97).gmlplayer_profile=_inst.gmlpmap;room_goto(23);
}}function gml_GlobalScript_btn_click_ViewHiresBack(_inst,_other){(_inst.gmlbtn_click_ViewHiresBack=__yy_method(_inst,gml_Script_btn_click_ViewHiresBack));}function gml_Script_btn_click_ViewHiresBack(_inst,_other){{room_goto(9);}}function gml_GlobalScript_btn_click_ViewHiresReset(_inst,_other){(_inst.gmlbtn_click_ViewHiresReset=__yy_method(_inst,gml_Script_btn_click_ViewHiresReset));}function gml_Script_btn_click_ViewHiresReset(_inst,_other){{{var __yy__v489=GetWithArray(97);for(var __yy__v490 in __yy__v489){
if(!__yy__v489.hasOwnProperty(__yy__v490))continue;var __yy__v491=__yy__v489[__yy__v490];{if(yyfless(__yy__v491.gmlcoach_credit,5)){{var gmlmsg=gml_Script_s_str(__yy__v491,_inst,"msg_ResetNoCredit");gmlmsg=string_replace(gmlmsg,"$num",5);gml_Script_s_create_message(__yy__v491,_inst,"",gmlmsg,gml_Script_s_str(__yy__v491,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v491.gmlstaff_reset_week,__yy__v491.gmlweek)){{gml_Script_s_create_message(__yy__v491,
_inst,"",gml_Script_s_str(__yy__v491,_inst,"msg_ResetTooSoon"),gml_Script_s_str(__yy__v491,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v491,_inst,"msg_StaffReset");gmlmsg=string_replace(gmlmsg,"$num",5);gml_Script_s_create_message(__yy__v491,_inst,"",gmlmsg,gml_Script_s_str(__yy__v491,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v491,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_staff_hire_reset,global.gmlc_background,
1);}}};}}function gml_GlobalScript_btn_click_TrainingLight(_inst,_other){(_inst.gmlbtn_click_TrainingLight=__yy_method(_inst,gml_Script_btn_click_TrainingLight));}function gml_Script_btn_click_TrainingLight(_inst,_other){{{var __yy__v492=GetWithArray(97);for(var __yy__v493 in __yy__v492){if(!__yy__v492.hasOwnProperty(__yy__v493))continue;var __yy__v494=__yy__v492[__yy__v493];{var ___sw198___=ds_map_find_value(__yy__v494.gmlplayer_profile,"position");var ___swc199___=-1;if(yyCompareVal(___sw198___,101,g_GMLMathEpsilon,
false)==0){___swc199___=0;}else if(yyCompareVal(___sw198___,102,g_GMLMathEpsilon,false)==0){___swc199___=1;}switch(___swc199___){case 0:{__yy__v494.gmltraining_reg_df=1;break;}case 1:{__yy__v494.gmltraining_reg_of=1;break;}};}}};room_goto(23);}}function gml_GlobalScript_btn_click_TrainingNormal(_inst,_other){(_inst.gmlbtn_click_TrainingNormal=__yy_method(_inst,gml_Script_btn_click_TrainingNormal));}function gml_Script_btn_click_TrainingNormal(_inst,_other){{{var __yy__v495=GetWithArray(97);for(var __yy__v496 in __yy__v495){
if(!__yy__v495.hasOwnProperty(__yy__v496))continue;var __yy__v497=__yy__v495[__yy__v496];{var ___sw202___=ds_map_find_value(__yy__v497.gmlplayer_profile,"position");var ___swc203___=-1;if(yyCompareVal(___sw202___,101,g_GMLMathEpsilon,false)==0){___swc203___=0;}else if(yyCompareVal(___sw202___,102,g_GMLMathEpsilon,false)==0){___swc203___=1;}switch(___swc203___){case 0:{__yy__v497.gmltraining_reg_df=2;break;}case 1:{__yy__v497.gmltraining_reg_of=2;break;}};}}};room_goto(23);}}function gml_GlobalScript_btn_click_TrainingHard(_inst,
_other){(_inst.gmlbtn_click_TrainingHard=__yy_method(_inst,gml_Script_btn_click_TrainingHard));}function gml_Script_btn_click_TrainingHard(_inst,_other){{{var __yy__v498=GetWithArray(97);for(var __yy__v499 in __yy__v498){if(!__yy__v498.hasOwnProperty(__yy__v499))continue;var __yy__v500=__yy__v498[__yy__v499];{var ___sw206___=ds_map_find_value(__yy__v500.gmlplayer_profile,"position");var ___swc207___=-1;if(yyCompareVal(___sw206___,101,g_GMLMathEpsilon,false)==0){___swc207___=0;}else if(yyCompareVal(___sw206___,
102,g_GMLMathEpsilon,false)==0){___swc207___=1;}switch(___swc207___){case 0:{__yy__v500.gmltraining_reg_df=3;break;}case 1:{__yy__v500.gmltraining_reg_of=3;break;}};}}};room_goto(23);}}function gml_GlobalScript_btn_click_XP_Continue(_inst,_other){(_inst.gmlbtn_click_XP_Continue=__yy_method(_inst,gml_Script_btn_click_XP_Continue));}function gml_Script_btn_click_XP_Continue(_inst,_other){{{var __yy__v501=GetWithArray(97);for(var __yy__v502 in __yy__v501){if(!__yy__v501.hasOwnProperty(__yy__v502))continue;
var __yy__v503=__yy__v501[__yy__v502];{{var __yy__v504=GetWithArray(101);for(var __yy__v505 in __yy__v504){if(!__yy__v504.hasOwnProperty(__yy__v505))continue;var __yy__v506=__yy__v504[__yy__v505];instance_destroy(__yy__v506);}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v503.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v503.gmlroster,gmli);if(!yyGetBool(gml_Script_s_has_xp_gain(__yy__v503,
_inst,gmlpmap))){{ds_map_set(gmlpmap,"xp",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")))));ds_map_set(gmlpmap,"xp_gain",0);};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v503.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v503.gmlstafflist,gmli);if(!yyGetBool(gml_Script_s_has_xp_gain(__yy__v503,_inst,gmlpmap))){
{ds_map_set(gmlpmap,"xp",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")))));ds_map_set(gmlpmap,"xp_gain",0);};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v503.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v503.gmlroster,gmli);if(yyGetBool(gml_Script_s_has_xp_gain(__yy__v503,_inst,gmlpmap))){{__yy__v503.gmlplayer_profile=gmlpmap;
room_goto(22);return;};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v503.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v503.gmlstafflist,gmli);if(yyGetBool(gml_Script_s_has_xp_gain(__yy__v503,_inst,gmlpmap))){{__yy__v503.gmlplayer_profile=gmlpmap;room_goto(23);return;};};}};}}};if(yyfequal(yyInst(_inst,_other,97).gmlstage,7)){gml_Script_s_play(_inst,_other,1);}else {if((yyGetBool(yyInst(_inst,
_other,97).gmlplayer_profile))&&(yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"meetingdone"),1)))){room_goto(22);}else {if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){room_goto(22);}else {room_goto(9);};};};}}function gml_GlobalScript_btn_click_XP_Back(_inst,_other){(_inst.gmlbtn_click_XP_Back=__yy_method(_inst,gml_Script_btn_click_XP_Back));}function gml_Script_btn_click_XP_Back(_inst,_other){{room_goto(25);}}function gml_GlobalScript_btn_response_quit_yes(_inst,
_other){(_inst.gmlbtn_response_quit_yes=__yy_method(_inst,gml_Script_btn_response_quit_yes));}function gml_Script_btn_response_quit_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);game_end();}}function gml_GlobalScript_btn_response_newgame_commit(_inst,_other){(_inst.gmlbtn_response_newgame_commit=__yy_method(_inst,gml_Script_btn_response_newgame_commit));}function gml_Script_btn_response_newgame_commit(_inst,_other){{file_delete(gml_Script_s_get_savename(_inst,_other));gml_Script_s_msg_clear(_inst,
_other);gml_Script_s_destroy_master(_inst,_other);room_goto(0);}}function gml_GlobalScript_btn_response_kick_no(_inst,_other){(_inst.gmlbtn_response_kick_no=__yy_method(_inst,gml_Script_btn_response_kick_no));}function gml_Script_btn_response_kick_no(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_punt_yes(_inst,_other){(_inst.gmlbtn_response_punt_yes=__yy_method(_inst,gml_Script_btn_response_punt_yes));}function gml_Script_btn_response_punt_yes(_inst,_other){
{gml_Script_s_action_result(_inst,_other,5);gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_fg_yes(_inst,_other){(_inst.gmlbtn_response_fg_yes=__yy_method(_inst,gml_Script_btn_response_fg_yes));}function gml_Script_btn_response_fg_yes(_inst,_other){{gml_Script_s_set_up_fieldgoal(_inst,_other,1);gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_1pt(_inst,_other){(_inst.gmlbtn_response_1pt=__yy_method(_inst,gml_Script_btn_response_1pt));}function gml_Script_btn_response_1pt(_inst,
_other){{gml_Script_s_set_up_fieldgoal(_inst,_other,2);gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_2pt(_inst,_other){(_inst.gmlbtn_response_2pt=__yy_method(_inst,gml_Script_btn_response_2pt));}function gml_Script_btn_response_2pt(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_onsidekick_no(_inst,_other){(_inst.gmlbtn_response_onsidekick_no=__yy_method(_inst,gml_Script_btn_response_onsidekick_no));}function gml_Script_btn_response_onsidekick_no(_inst,
_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v507=GetWithArray(104);for(var __yy__v508 in __yy__v507){if(!__yy__v507.hasOwnProperty(__yy__v508))continue;var __yy__v509=__yy__v507[__yy__v508];__yy__v509.gmlcomm_stage=26;}};}}function gml_GlobalScript_btn_response_onsidekick_yes(_inst,_other){(_inst.gmlbtn_response_onsidekick_yes=__yy_method(_inst,gml_Script_btn_response_onsidekick_yes));}function gml_Script_btn_response_onsidekick_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v510=GetWithArray(104);
for(var __yy__v511 in __yy__v510){if(!__yy__v510.hasOwnProperty(__yy__v511))continue;var __yy__v512=__yy__v510[__yy__v511];__yy__v512.gmlcomm_stage=27;}};}}function gml_GlobalScript_btn_response_cut_player_yes(_inst,_other){(_inst.gmlbtn_response_cut_player_yes=__yy_method(_inst,gml_Script_btn_response_cut_player_yes));}function gml_Script_btn_response_cut_player_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v513=GetWithArray(97);for(var __yy__v514 in __yy__v513){if(!__yy__v513.hasOwnProperty(__yy__v514))continue;
var __yy__v515=__yy__v513[__yy__v514];{var gmlpatt=ds_map_find_value(__yy__v515.gmlplayer_profile,"attitude");if(yyfequal(g_pBuiltIn.get_current_room(),22)){{var gmldel=gml_Script_s_remove_player(__yy__v515,_inst,__yy__v515.gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(__yy__v515,_inst,"epi_cut"));if(yyGetBool(gmldel)){{__yy__v515.gmlplayer_profile=(-1);};};};}else {{ds_list_delete(__yy__v515.gmlroster,ds_list_find_index(__yy__v515.gmlroster,__yy__v515.gmlplayer_profile));ds_map_destroy(__yy__v515.gmlplayer_profile);
__yy__v515.gmlplayer_profile=(-1);};};gml_Script_s_complete_achievement(__yy__v515,_inst,"ACH_CUT");if(yyfgreater(gmlpatt,15)){{gml_Script_s_meter_change(__yy__v515,_inst,4,gml_Script_s_get_morale(__yy__v515,_inst),25,"");var gmli=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_attitude_icon(__yy__v515,_inst,gmlpatt)));gml_Script_s_adjust_team_morale(__yy__v515,_inst,yyftime(__yy_gml_errCheck(gmli),2),gmli);if(yyfequal(g_pBuiltIn.get_current_room(),22)){return;};};};}}};room_goto(25);}}function gml_GlobalScript_btn_response_skip_draft_yes(_inst,
_other){(_inst.gmlbtn_response_skip_draft_yes=__yy_method(_inst,gml_Script_btn_response_skip_draft_yes));}function gml_Script_btn_response_skip_draft_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);var gmlpicks=yyInst(_inst,_other,97).gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmldraft_round),1),yyInst(_inst,_other,97).gmldraft_picks)];if(yyfgreater(gmlpicks,0)){{var gmlvalue=yyftime(__yy_gml_errCheck(gmlpicks),__yy_gml_errCheck(yyfminus(4,__yy_gml_errCheck(yyInst(_inst,
_other,97).gmldraft_round))));yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,gmlvalue);};};gml_Script_s_end_draft_round(_inst,_other,false);}}function gml_GlobalScript_btn_response_pick_player_yes(_inst,_other){(_inst.gmlbtn_response_pick_player_yes=__yy_method(_inst,gml_Script_btn_response_pick_player_yes));}function gml_Script_btn_response_pick_player_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v516=GetWithArray(97);for(var __yy__v517 in __yy__v516){
if(!__yy__v516.hasOwnProperty(__yy__v517))continue;var __yy__v518=__yy__v516[__yy__v517];{var gmlfrom_team_id=ds_map_find_value(__yy__v518.gmlplayer_profile,"teamid");gml_Script_slog(__yy__v518,_inst,yyfplus("Pick player yes. TeamId = ",__yy_gml_errCheck(string(gmlfrom_team_id))));ds_map_set(__yy__v518.gmlplayer_profile,"signed_year",yyInst(_inst,_other,97).gmlyear);ds_map_set(__yy__v518.gmlplayer_profile,"teamid",yyInst(_inst,_other,97).gmlmyteam_id);ds_map_set(__yy__v518.gmlplayer_profile,"flash_time",
g_pBuiltIn.get_current_time());ds_list_add(__yy__v518.gmlroster,__yy__v518.gmlplayer_profile);var gmlpos=ds_list_find_index(__yy__v518.gmlfreeagentlist,__yy__v518.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{var gmlmsg=gml_Script_s_str(__yy__v518,_inst,"news_SignFreeAgent");if(yyfequal(gmlfrom_team_id,__yy__v518.gmlmyteam_id)){gmlmsg=gml_Script_s_str(__yy__v518,_inst,"news_ResignedPlayer");};gmlmsg=gml_Script_s_parse_player_message(__yy__v518,_inst,gmlmsg,__yy__v518.gmlplayer_profile);gml_Script_s_add_news(__yy__v518,
_inst,gmlmsg);gml_Script_s_complete_achievement(__yy__v518,_inst,"ACH_FREEAGENT");if(yyfgreaterequal(gml_Script_s_get_player_rating(__yy__v518,_inst,__yy__v518.gmlplayer_profile),10)){gml_Script_s_complete_achievement(__yy__v518,_inst,"ACH_FREEAGENT5");};ds_list_delete(__yy__v518.gmlfreeagentlist,gmlpos);room_goto(25);return;};};gmlpos=ds_list_find_index(__yy__v518.gmltradelist,__yy__v518.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{var gmlmsg=gml_Script_s_str(__yy__v518,_inst,"news_SignTrade");
gmlmsg=gml_Script_s_parse_player_message(__yy__v518,_inst,gmlmsg,__yy__v518.gmlplayer_profile);gmlmsg=string_replace(gmlmsg,"$otherteamname",gml_Script_s_get_team_name_by_id(__yy__v518,_inst,gmlfrom_team_id));gml_Script_s_add_news(__yy__v518,_inst,gmlmsg);gml_Script_s_complete_achievement(__yy__v518,_inst,"ACH_TRADEIN");ds_list_delete(__yy__v518.gmltradelist,gmlpos);room_goto(25);return;};};gmlpos=ds_list_find_index(__yy__v518.gmldraftlist,__yy__v518.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){
{if(yyGetBool(gml_Script_s_is_co_mode(__yy__v518,_inst))){{gml_Script_s_college_admissions_pick_player(__yy__v518,_inst,gmlpos);};}else {{__yy__v518.gmldraft_picks=__yy_gml_array_check(__yy__v518.gmldraft_picks,3130593191);(g_yyPrePostObject__=__yy__v518.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v518.gmldraft_round),1))],__yy__v518.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v518.gmldraft_round),1))]=(g_yyPrePostObject__ instanceof Long?__yy__v518.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v518.gmldraft_round),
1))].subtract(1):--__yy__v518.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v518.gmldraft_round),1))]),g_yyPrePostObject__);ds_list_delete(__yy__v518.gmldraftlist,gmlpos);};};room_goto(25);gml_Script_s_complete_achievement(__yy__v518,_inst,"ACH_DRAFT");return;};};gmlpos=ds_list_find_index(__yy__v518.gmlstorelist,__yy__v518.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{var gmlmsg=gml_Script_s_str(__yy__v518,_inst,"news_SignTrade2");gmlmsg=gml_Script_s_parse_player_message(__yy__v518,
_inst,gmlmsg,__yy__v518.gmlplayer_profile);gml_Script_s_add_news(__yy__v518,_inst,gmlmsg);__yy__v518.gmlcoach_credit=yyfminus(__yy__v518.gmlcoach_credit,ds_map_find_value(__yy__v518.gmlplayer_profile,"creditcost"));ds_map_set(__yy__v518.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v518.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(ds_map_find_value(__yy__v518.gmlplayer_profile,"creditcost"))),0));ds_list_delete(__yy__v518.gmlstorelist,gmlpos);
__yy__v518.gmlroster_from_store=false;gml_Script_s_savegame(__yy__v518,_inst);room_goto(25);gml_Script_s_complete_achievement(__yy__v518,_inst,"ACH_FREEAGENT");if(yyfgreaterequal(gml_Script_s_get_player_rating(__yy__v518,_inst,__yy__v518.gmlplayer_profile),10)){gml_Script_s_complete_achievement(__yy__v518,_inst,"ACH_FREEAGENT5");};return;};};gmlpos=ds_list_find_index(__yy__v518.gmlhoflist,__yy__v518.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{ds_list_delete(__yy__v518.gmlhoflist,gmlpos);room_goto(25);
return;};};}}};room_goto(25);}}function gml_GlobalScript_btn_click_OptionsKickReturns(_inst,_other){(_inst.gmlbtn_click_OptionsKickReturns=__yy_method(_inst,gml_Script_btn_click_OptionsKickReturns));(_inst.gmlbtn_click_OptionsKickReturns_Exh=__yy_method(_inst,gml_Script_btn_click_OptionsKickReturns_Exh));}function gml_Script_btn_click_OptionsKickReturns(_inst,_other){{{var __yy__v519=GetWithArray(97);for(var __yy__v520 in __yy__v519){if(!__yy__v519.hasOwnProperty(__yy__v520))continue;var __yy__v521=__yy__v519[__yy__v520];
{if(yyfequal(ds_map_find_value(__yy__v521.gmlmap_options,"fullversion"),1)){{ds_map_set(__yy__v521.gmlmap_options,"op_kickoffs",!yyGetBool(ds_map_find_value(__yy__v521.gmlmap_options,"op_kickoffs")));gml_Script_s_update_options(__yy__v521,_inst);if(!yyGetBool(ds_map_find_value(__yy__v521.gmlmap_options,"op_kickoffs"))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v521.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_set(ds_list_find_value(__yy__v521.gmlroster,
gmli),"kr",0)};};};};}else {{ds_map_set(__yy__v521.gmlmap_options,"op_kickoffs",0);gml_Script_s_create_message(__yy__v521,_inst,"",gml_Script_s_str(__yy__v521,_inst,"msg_NeedUnlimited"),gml_Script_s_str(__yy__v521,_inst,"ui_No"),gml_Script_s_str(__yy__v521,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};}}};}}function gml_Script_btn_click_OptionsKickReturns_Exh(_inst,_other){{{var __yy__v522=GetWithArray(97);for(var __yy__v523 in __yy__v522){if(!__yy__v522.hasOwnProperty(__yy__v523))continue;
var __yy__v524=__yy__v522[__yy__v523];{ds_map_set(__yy__v524.gmlmap_options,"exh_op_kickoffs",!yyGetBool(ds_map_find_value(__yy__v524.gmlmap_options,"exh_op_kickoffs")));gml_Script_s_update_options_exh(__yy__v524,_inst);}}};}}function gml_GlobalScript_btn_response_in_trade_player_yes(_inst,_other){(_inst.gmlbtn_response_in_trade_player_yes=__yy_method(_inst,gml_Script_btn_response_in_trade_player_yes));}function gml_Script_btn_response_in_trade_player_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,
_other);{var __yy__v525=GetWithArray(97);for(var __yy__v526 in __yy__v525){if(!__yy__v525.hasOwnProperty(__yy__v526))continue;var __yy__v527=__yy__v525[__yy__v526];{var gmlpick=ds_map_find_value(__yy__v527.gmlplayer_profile,"intrade_pick");var gmlfrom_team_id=ds_map_find_value(__yy__v527.gmlplayer_profile,"teamid");__yy__v527.gmldraft_picks=__yy_gml_array_check(__yy__v527.gmldraft_picks,2359220796);(g_yyPrePostObject__=__yy__v527.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(gmlpick),
1))],__yy__v527.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(gmlpick),1))]=(g_yyPrePostObject__ instanceof Long?__yy__v527.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(gmlpick),1))].subtract(1):--__yy__v527.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(gmlpick),1))]),g_yyPrePostObject__);ds_map_set(__yy__v527.gmlplayer_profile,"signed_year",yyInst(_inst,_other,97).gmlyear);ds_map_set(__yy__v527.gmlplayer_profile,"teamid",
yyInst(_inst,_other,97).gmlmyteam_id);ds_map_set(__yy__v527.gmlplayer_profile,"intrade_pick",0);ds_map_set(__yy__v527.gmlplayer_profile,"flash_time",g_pBuiltIn.get_current_time());var gmlmsg=gml_Script_s_str(__yy__v527,_inst,"news_SignTrade");gmlmsg=gml_Script_s_parse_player_message(__yy__v527,_inst,gmlmsg,__yy__v527.gmlplayer_profile);gmlmsg=string_replace(gmlmsg,"$otherteamname",gml_Script_s_get_team_name_by_id(__yy__v527,_inst,gmlfrom_team_id));gml_Script_s_add_news(__yy__v527,_inst,gmlmsg);gml_Script_s_complete_achievement(__yy__v527,
_inst,"ACH_TRADEIN");ds_list_add(__yy__v527.gmlroster,__yy__v527.gmlplayer_profile);ds_list_delete(__yy__v527.gmltradelist,ds_list_find_index(__yy__v527.gmltradelist,__yy__v527.gmlplayer_profile));gml_Script_s_savegame(__yy__v527,_inst);room_goto(25);}}};}}function gml_GlobalScript_btn_response_out_trade_player_yes(_inst,_other){(_inst.gmlbtn_response_out_trade_player_yes=__yy_method(_inst,gml_Script_btn_response_out_trade_player_yes));}function gml_Script_btn_response_out_trade_player_yes(_inst,_other){
{gml_Script_s_msg_clear(_inst,_other);{var __yy__v528=GetWithArray(97);for(var __yy__v529 in __yy__v528){if(!__yy__v528.hasOwnProperty(__yy__v529))continue;var __yy__v530=__yy__v528[__yy__v529];{array_set_post(__yy__v530.gmldraft_picks,yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v530.gmlplayer_profile,"outtrade_pick")),1),yyfplus(__yy_gml_errCheck(array_get(__yy__v530.gmldraft_picks,yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v530.gmlplayer_profile,"outtrade_pick")),1))),1));ds_map_set(__yy__v530.gmlplayer_profile,
"outtrade_pick",0);var gmlorig_fans=__yy__v530.gmlfans;if(yyfequal(ds_map_find_value(__yy__v530.gmlplayer_profile,"signed_year"),__yy__v530.gmlyear)){{gml_Script_s_adjust_team_morale(__yy__v530,_inst,(-15),(-10));__yy__v530.gmlfans=clamp(yyftime(__yy_gml_errCheck(__yy__v530.gmlfans),0.85),1,100);};};var gmldel=gml_Script_s_remove_player(__yy__v530,_inst,__yy__v530.gmlplayer_profile,"trade");if(yyGetBool(gmldel)){{__yy__v530.gmlplayer_profile=(-1);};};gml_Script_s_complete_achievement(__yy__v530,_inst,
"ACH_TRADEOUT");gml_Script_s_savegame(__yy__v530,_inst);if(yyfless(__yy__v530.gmlfans,yyfminus(__yy_gml_errCheck(gmlorig_fans),2))){gml_Script_s_meter_change(__yy__v530,_inst,1,gmlorig_fans,25,"");}else {room_goto(25);};}}};}}function gml_GlobalScript_btn_response_out_trade_player_no(_inst,_other){(_inst.gmlbtn_response_out_trade_player_no=__yy_method(_inst,gml_Script_btn_response_out_trade_player_no));}function gml_Script_btn_response_out_trade_player_no(_inst,_other){{gml_Script_s_msg_clear(_inst,
_other);room_goto(22);}}function gml_GlobalScript_btn_response_player_meeting_morale_yes(_inst,_other){(_inst.gmlbtn_response_player_meeting_morale_yes=__yy_method(_inst,gml_Script_btn_response_player_meeting_morale_yes));}function gml_Script_btn_response_player_meeting_morale_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v531=GetWithArray(97);for(var __yy__v532 in __yy__v531){if(!__yy__v531.hasOwnProperty(__yy__v532))continue;var __yy__v533=__yy__v531[__yy__v532];{var gmlmeetcost=gml_Script_s_get_meeting_cost_morale(__yy__v533,
_inst,__yy__v533.gmlplayer_profile);var gmlpatt=ds_map_find_value(__yy__v533.gmlplayer_profile,"attitude");var gmlold_amount=gmlpatt;__yy__v533.gmlcoach_credit=yyfminus(__yy__v533.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v533.gmlcoach_credit,0)){__yy__v533.gmlcoach_credit=0;};ds_map_set(__yy__v533.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v533.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));gmlpatt=clamp(yyfplus(__yy_gml_errCheck(gmlpatt),
15),1,100);ds_map_set(__yy__v533.gmlplayer_profile,"attitude",gmlpatt);ds_map_set(__yy__v533.gmlplayer_profile,"meetingdone",1);var gmlnum=string(irandom_range(1,3));var gmlmsg=gml_Script_s_str(__yy__v533,_inst,yyfplus("msg_boost_morale",__yy_gml_errCheck(gmlnum)));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v533.gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(__yy__v533.gmlplayer_profile,"lname"))));gml_Script_s_meter_change(__yy__v533,
_inst,5,gmlold_amount,22,gmlmsg);gml_Script_s_clear_party_meter(__yy__v533,_inst,__yy__v533.gmlplayer_profile);}}};}}function gml_GlobalScript_btn_response_player_meeting_condition_yes(_inst,_other){(_inst.gmlbtn_response_player_meeting_condition_yes=__yy_method(_inst,gml_Script_btn_response_player_meeting_condition_yes));}function gml_Script_btn_response_player_meeting_condition_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v534=GetWithArray(97);for(var __yy__v535 in __yy__v534){
if(!__yy__v534.hasOwnProperty(__yy__v535))continue;var __yy__v536=__yy__v534[__yy__v535];{var gmlmeetcost=gml_Script_s_get_meeting_cost_condition(__yy__v536,_inst,__yy__v536.gmlplayer_profile);var gmlcon=ds_map_find_value(__yy__v536.gmlplayer_profile,"condition");var gmlold_amount=gmlcon;__yy__v536.gmlcoach_credit=yyfminus(__yy__v536.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v536.gmlcoach_credit,0)){__yy__v536.gmlcoach_credit=0;};ds_map_set(__yy__v536.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v536.gmlmap_options,
"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));ds_map_set(__yy__v536.gmlplayer_profile,"condition",100);ds_map_set(__yy__v536.gmlplayer_profile,"meetingdone",1);var gmlnum=string(irandom_range(1,3));var gmlmsg=gml_Script_s_str(__yy__v536,_inst,yyfplus("msg_boost_condition",__yy_gml_errCheck(gmlnum)));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v536.gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(__yy__v536.gmlplayer_profile,
"lname"))));gml_Script_s_meter_change(__yy__v536,_inst,3,gmlold_amount,22,gmlmsg);gml_Script_s_clear_party_meter(__yy__v536,_inst,__yy__v536.gmlplayer_profile);}}};}}function gml_GlobalScript_btn_response_player_meeting_levelup_yes(_inst,_other){(_inst.gmlbtn_response_player_meeting_levelup_yes=__yy_method(_inst,gml_Script_btn_response_player_meeting_levelup_yes));}function gml_Script_btn_response_player_meeting_levelup_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v537=GetWithArray(97);
for(var __yy__v538 in __yy__v537){if(!__yy__v537.hasOwnProperty(__yy__v538))continue;var __yy__v539=__yy__v537[__yy__v538];{var gmlmeetcost=gml_Script_s_get_meeting_cost_levelup(__yy__v539,_inst,__yy__v539.gmlplayer_profile);__yy__v539.gmlcoach_credit=yyfminus(__yy__v539.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v539.gmlcoach_credit,0)){__yy__v539.gmlcoach_credit=0;};ds_map_set(__yy__v539.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v539.gmlmap_options,
"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));ds_map_set(__yy__v539.gmlplayer_profile,"meetingdone",1);var gmlxp=ds_map_find_value(__yy__v539.gmlplayer_profile,"xp");ds_map_set(__yy__v539.gmlplayer_profile,"xp",yyftime(__yy_gml_errCheck(ds_map_find_value(__yy__v539.gmlplayer_profile,"xp_level")),100));ds_map_set(__yy__v539.gmlplayer_profile,"xp_gain",round(yyfplus(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v539.gmlplayer_profile,"xp_gain"))),10),__yy_gml_errCheck(gmlxp))));
gml_Script_s_clear_party_meter(__yy__v539,_inst,__yy__v539.gmlplayer_profile);room_goto(22);}}};}}function gml_GlobalScript_btn_response_player_meeting_extend_contract(_inst,_other){(_inst.gmlbtn_response_player_meeting_extend_contract=__yy_method(_inst,gml_Script_btn_response_player_meeting_extend_contract));}function gml_Script_btn_response_player_meeting_extend_contract(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v540=GetWithArray(97);for(var __yy__v541 in __yy__v540){if(!__yy__v540.hasOwnProperty(__yy__v541))continue;
var __yy__v542=__yy__v540[__yy__v541];{ds_map_set(__yy__v542.gmlplayer_profile,"meetingdone",1);var ___sw210___=yyInst(_inst,_other,150).gmlretirement;var ___swc211___=-1;if(yyCompareVal(___sw210___,false,g_GMLMathEpsilon,false)==0){___swc211___=0;}else if(yyCompareVal(___sw210___,true,g_GMLMathEpsilon,false)==0){___swc211___=1;}switch(___swc211___){case 0:{var gmlmeetcost=gml_Script_s_get_meeting_cost_extend_contract(__yy__v542,_inst,__yy__v542.gmlplayer_profile);ds_map_set(__yy__v542.gmlmap_options,
"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v542.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));__yy__v542.gmlcoach_credit=yyfminus(__yy__v542.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v542.gmlcoach_credit,0)){__yy__v542.gmlcoach_credit=0;};ds_map_set(__yy__v542.gmlplayer_profile,"contract",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v542.gmlplayer_profile,"contract"))),1));break;}case 1:{var gmlmeetcost=max(gml_Script_s_get_meeting_cost_extend_contract(__yy__v542,
_inst,__yy__v542.gmlplayer_profile),gml_Script_s_get_meeting_cost_delay_retirement(__yy__v542,_inst,__yy__v542.gmlplayer_profile));ds_map_set(__yy__v542.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v542.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));__yy__v542.gmlcoach_credit=yyfminus(__yy__v542.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v542.gmlcoach_credit,0)){__yy__v542.gmlcoach_credit=0;};if(yyGetBool(ds_map_exists(__yy__v542.gmlplayer_profile,
"delay_retirement"))){ds_map_set(__yy__v542.gmlplayer_profile,"delay_retirement",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v542.gmlplayer_profile,"delay_retirement"))),1));}else {ds_map_set(__yy__v542.gmlplayer_profile,"delay_retirement",1);};if(yyfless(real(ds_map_find_value(__yy__v542.gmlplayer_profile,"contract")),2)){ds_map_set(__yy__v542.gmlplayer_profile,"contract",2);};break;}};gml_Script_s_savegame(__yy__v542,_inst);room_goto(22);}}};}}function gml_GlobalScript_btn_response_boost_morale(_inst,
_other){(_inst.gmlbtn_response_boost_morale=__yy_method(_inst,gml_Script_btn_response_boost_morale));}function gml_Script_btn_response_boost_morale(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v543=GetWithArray(97);for(var __yy__v544 in __yy__v543){if(!__yy__v543.hasOwnProperty(__yy__v544))continue;var __yy__v545=__yy__v543[__yy__v544];{__yy__v545.gmlboost_morale_done=true;__yy__v545.gmlcoach_credit=yyfminus(__yy__v545.gmlcoach_credit,25);if(yyfless(__yy__v545.gmlcoach_credit,0)){__yy__v545.gmlcoach_credit=0;
};var gmlmor=gml_Script_s_get_morale(__yy__v545,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v545.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v545.gmlroster,gmli);ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),10),1,100));}};gml_Script_s_team_halve_all_party_meters(__yy__v545,_inst);gml_Script_s_meter_change(__yy__v545,_inst,
4,gmlmor,34,gml_Script_s_str(__yy__v545,_inst,yyfplus("msg_BoostMoraleEvent",__yy_gml_errCheck(string(irandom(9))))));}}};}}function gml_GlobalScript_btn_response_boost_condition(_inst,_other){(_inst.gmlbtn_response_boost_condition=__yy_method(_inst,gml_Script_btn_response_boost_condition));}function gml_Script_btn_response_boost_condition(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v546=GetWithArray(97);for(var __yy__v547 in __yy__v546){if(!__yy__v546.hasOwnProperty(__yy__v547))continue;
var __yy__v548=__yy__v546[__yy__v547];{__yy__v548.gmlboost_condition_done=true;__yy__v548.gmlcoach_credit=yyfminus(__yy__v548.gmlcoach_credit,25);if(yyfless(__yy__v548.gmlcoach_credit,0)){__yy__v548.gmlcoach_credit=0;};var gmlcon=gml_Script_s_get_condition_squad(__yy__v548,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v548.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v548.gmlroster,
gmli);if(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)){{ds_map_set(gmlpmap,"condition",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),20),1,100));};};}};gml_Script_s_team_halve_all_party_meters(__yy__v548,_inst);gml_Script_s_meter_change(__yy__v548,_inst,2,gmlcon,34,gml_Script_s_str(__yy__v548,_inst,yyfplus("msg_BoostConditionEvent",__yy_gml_errCheck(string(irandom(5))))));}}};}}function gml_GlobalScript_btn_response_boost_salary_cap(_inst,_other){(_inst.gmlbtn_response_boost_salary_cap=__yy_method(_inst,
gml_Script_btn_response_boost_salary_cap));}function gml_Script_btn_response_boost_salary_cap(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v549=GetWithArray(97);for(var __yy__v550 in __yy__v549){if(!__yy__v549.hasOwnProperty(__yy__v550))continue;var __yy__v551=__yy__v549[__yy__v550];{__yy__v551.gmlboost_salary_cap=yyfplus(__yy__v551.gmlboost_salary_cap,25);__yy__v551.gmlcoach_credit=yyfminus(__yy__v551.gmlcoach_credit,100);if(yyfless(__yy__v551.gmlcoach_credit,0)){__yy__v551.gmlcoach_credit=0;
};}}};room_goto(9);}}function gml_GlobalScript_s_confirm_upgrade_stadium(_inst,_other){(_inst.gmls_confirm_upgrade_stadium=__yy_method(_inst,gml_Script_s_confirm_upgrade_stadium));}function gml_Script_s_confirm_upgrade_stadium(_inst,_other){{{var __yy__v552=GetWithArray(97);for(var __yy__v553 in __yy__v552){if(!__yy__v552.hasOwnProperty(__yy__v553))continue;var __yy__v554=__yy__v552[__yy__v553];{gml_Script_s_msg_clear(__yy__v554,_inst);__yy__v554.gmlfacility_upgraded_stadium=__yy__v554.gmlweek;__yy__v554.gmlfacility_stadium=clamp(yyfplus(__yy_gml_errCheck(__yy__v554.gmlfacility_stadium),
1),1,10);__yy__v554.gmlcoach_credit=yyfminus(__yy__v554.gmlcoach_credit,__yy__v554.gmlfacility_stadium);if(yyfless(__yy__v554.gmlcoach_credit,0)){__yy__v554.gmlcoach_credit=0;};ds_map_set(__yy__v554.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v554.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(__yy__v554.gmlfacility_stadium)),0));gml_Script_s_complete_achievement(__yy__v554,_inst,"ACH_UPGRADE_STADIUM");if(yyfequal(__yy__v554.gmlfacility_stadium,
10)){gml_Script_s_complete_achievement(__yy__v554,_inst,"ACH_MAX_STADIUM");};var gmlorig=__yy__v554.gmlfans;var gmlamt=yyftime(__yy_gml_errCheck(yyfminus(100,__yy_gml_errCheck(__yy__v554.gmlfans))),0.1);__yy__v554.gmlfans=clamp(yyfplus(__yy_gml_errCheck(__yy__v554.gmlfans),__yy_gml_errCheck(gmlamt)),1,100);if(yyfgreater(__yy__v554.gmlfans,yyfplus(__yy_gml_errCheck(gmlorig),2))){{gml_Script_s_meter_change(__yy__v554,_inst,1,gmlorig,9,"");};}else {room_goto(9);};}}};}}function gml_GlobalScript_s_confirm_upgrade_training(_inst,
_other){(_inst.gmls_confirm_upgrade_training=__yy_method(_inst,gml_Script_s_confirm_upgrade_training));}function gml_Script_s_confirm_upgrade_training(_inst,_other){{{var __yy__v555=GetWithArray(97);for(var __yy__v556 in __yy__v555){if(!__yy__v555.hasOwnProperty(__yy__v556))continue;var __yy__v557=__yy__v555[__yy__v556];{gml_Script_s_msg_clear(__yy__v557,_inst);__yy__v557.gmlfacility_upgraded_training=__yy__v557.gmlweek;__yy__v557.gmlfacility_training=clamp(yyfplus(__yy_gml_errCheck(__yy__v557.gmlfacility_training),
1),1,10);__yy__v557.gmlcoach_credit=yyfminus(__yy__v557.gmlcoach_credit,__yy__v557.gmlfacility_training);if(yyfless(__yy__v557.gmlcoach_credit,0)){__yy__v557.gmlcoach_credit=0;};ds_map_set(__yy__v557.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v557.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(__yy__v557.gmlfacility_training)),0));gml_Script_s_complete_achievement(__yy__v557,_inst,"ACH_UPGRADE_TRAINING");if(yyfequal(__yy__v557.gmlfacility_training,
10)){gml_Script_s_complete_achievement(__yy__v557,_inst,"ACH_MAX_TRAINING");};var gmlmor=gml_Script_s_get_morale(__yy__v557,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v557.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v557.gmlroster,gmli);var gmlamt=yyftime(__yy_gml_errCheck(yyfminus(100,__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")))),0.1);ds_map_set(gmlpmap,"attitude",
clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(round(gmlamt))),1,100));}};if(yyfgreater(gml_Script_s_get_morale(__yy__v557,_inst),yyfplus(__yy_gml_errCheck(gmlmor),2))){{gml_Script_s_meter_change(__yy__v557,_inst,4,gmlmor,9,"");};}else {room_goto(9);};}}};}}function gml_GlobalScript_s_confirm_upgrade_rehab(_inst,_other){(_inst.gmls_confirm_upgrade_rehab=__yy_method(_inst,gml_Script_s_confirm_upgrade_rehab));}function gml_Script_s_confirm_upgrade_rehab(_inst,
_other){{{var __yy__v558=GetWithArray(97);for(var __yy__v559 in __yy__v558){if(!__yy__v558.hasOwnProperty(__yy__v559))continue;var __yy__v560=__yy__v558[__yy__v559];{gml_Script_s_msg_clear(__yy__v560,_inst);__yy__v560.gmlfacility_upgraded_rehab=__yy__v560.gmlweek;__yy__v560.gmlfacility_rehab=clamp(yyfplus(__yy_gml_errCheck(__yy__v560.gmlfacility_rehab),1),1,10);__yy__v560.gmlcoach_credit=yyfminus(__yy__v560.gmlcoach_credit,__yy__v560.gmlfacility_rehab);if(yyfless(__yy__v560.gmlcoach_credit,0)){__yy__v560.gmlcoach_credit=0;
};ds_map_set(__yy__v560.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v560.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(__yy__v560.gmlfacility_rehab)),0));gml_Script_s_complete_achievement(__yy__v560,_inst,"ACH_UPGRADE_REHAB");if(yyfequal(__yy__v560.gmlfacility_rehab,10)){gml_Script_s_complete_achievement(__yy__v560,_inst,"ACH_MAX_REHAB");};var gmlcond=gml_Script_s_get_condition_squad(__yy__v560,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v560.gmlroster));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v560.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)){{var gmlamt=yyftime(__yy_gml_errCheck(yyfminus(100,__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")))),0.1);ds_map_set(gmlpmap,"condition",clamp(round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),__yy_gml_errCheck(gmlamt))),1,100));};};}};if(yyfgreater(gml_Script_s_get_condition_squad(__yy__v560,
_inst),yyfplus(__yy_gml_errCheck(gmlcond),2))){{gml_Script_s_meter_change(__yy__v560,_inst,2,gmlcond,9,"");};}else {room_goto(9);};}}};}}function gml_GlobalScript_btn_response_hirestaff(_inst,_other){(_inst.gmlbtn_response_hirestaff=__yy_method(_inst,gml_Script_btn_response_hirestaff));}function gml_Script_btn_response_hirestaff(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v561=GetWithArray(97);for(var __yy__v562 in __yy__v561){if(!__yy__v561.hasOwnProperty(__yy__v562))continue;var __yy__v563=__yy__v561[__yy__v562];
{if(yyfless(ds_list_find_index(yyInst(_inst,_other,97).gmlstafflist,__yy__v563.gmlstaff_hire),0)){{var gmlrating=0;if(yyfequal(ds_map_find_value(__yy__v563.gmlstaff_hire,"position"),101)){{gmlrating=gml_Script_s_get_team_defense(__yy__v563,_inst,__yy__v563.gmlmyteam);gml_Script_s_fire_coach(__yy__v563,_inst,gml_Script_s_get_staff(__yy__v563,_inst,101));gml_Script_s_complete_achievement(__yy__v563,_inst,"ACH_HIRE_DF");if(yyfgreaterequal(ds_map_find_value(__yy__v563.gmlstaff_hire,"rating"),10)){gml_Script_s_complete_achievement(__yy__v563,
_inst,"ACH_HIRE_DF5");};if(yyfgreaterequal(gmlrating,10)){gml_Script_s_complete_achievement(__yy__v563,_inst,"ACH_DEFENSE5");};};}else {{gmlrating=gml_Script_s_get_team_offense(__yy__v563,_inst,__yy__v563.gmlmyteam);gml_Script_s_fire_coach(__yy__v563,_inst,gml_Script_s_get_staff(__yy__v563,_inst,102));gml_Script_s_complete_achievement(__yy__v563,_inst,"ACH_HIRE_OF");if(yyfgreaterequal(ds_map_find_value(__yy__v563.gmlstaff_hire,"rating"),10)){gml_Script_s_complete_achievement(__yy__v563,_inst,"ACH_HIRE_OF5");
};if(yyfgreaterequal(gmlrating,10)){gml_Script_s_complete_achievement(__yy__v563,_inst,"ACH_OFFENSE5");};};};ds_list_delete(__yy__v563.gmlhirelist,ds_list_find_index(__yy__v563.gmlhirelist,__yy__v563.gmlstaff_hire));ds_list_add(__yy__v563.gmlstafflist,__yy__v563.gmlstaff_hire);ds_map_set(__yy__v563.gmlstaff_hire,"contract",2);if(yyfgreater(__yy__v563.gmlweek,8)){ds_map_set(__yy__v563.gmlstaff_hire,"contract",3);};var gmlcost=gml_Script_s_get_coach_cost(__yy__v563,_inst,__yy__v563.gmlstaff_hire);__yy__v563.gmlcoach_credit=yyfminus(__yy__v563.gmlcoach_credit,
gmlcost);ds_map_set(__yy__v563.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v563.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlcost)),0));var ___sw214___=ds_map_find_value(__yy__v563.gmlstaff_hire,"trait");var ___swc215___=-1;if(yyCompareVal(___sw214___,1,g_GMLMathEpsilon,false)==0){___swc215___=0;}else if(yyCompareVal(___sw214___,3,g_GMLMathEpsilon,false)==0){___swc215___=1;}else if(yyCompareVal(___sw214___,2,g_GMLMathEpsilon,false)==0){
___swc215___=2;}switch(___swc215___){case 0:{gml_Script_s_coach_trait_experience(__yy__v563,_inst,__yy__v563.gmlstaff_hire);break;}case 1:{gml_Script_s_coach_trait_motivator(__yy__v563,_inst,__yy__v563.gmlstaff_hire);break;}case 2:{gml_Script_s_coach_trait_talentspotter(__yy__v563,_inst,__yy__v563.gmlstaff_hire);}default :{if(yyfequal(ds_map_find_value(__yy__v563.gmlstaff_hire,"position"),101)){{if(yyfnotequal(gmlrating,gml_Script_s_get_team_defense(__yy__v563,_inst,__yy__v563.gmlmyteam))){gml_Script_s_meter_change(__yy__v563,
_inst,7,gmlrating,9,"");}else {room_goto(9);};};}else {{if(yyfnotequal(gmlrating,gml_Script_s_get_team_offense(__yy__v563,_inst,__yy__v563.gmlmyteam))){gml_Script_s_meter_change(__yy__v563,_inst,6,gmlrating,9,"");}else {room_goto(9);};};};break;}};var gmlmsg=gml_Script_s_str(__yy__v563,_inst,"news_HireStaff");gmlmsg=string_replace(gmlmsg,"$teamname",ds_map_find_value(__yy__v563.gmlmyteam,"name"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v563,_inst,ds_map_find_value(__yy__v563.gmlstaff_hire,
"position")));gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v563.gmlstaff_hire,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(__yy__v563.gmlstaff_hire,"lname"))));gmlmsg=string_replace(gmlmsg,"$num",string(ds_map_find_value(__yy__v563.gmlstaff_hire,"contract")));gml_Script_s_add_news(__yy__v563,_inst,gmlmsg);};}else {{var gmlcost=round(yyftime(__yy_gml_errCheck(gml_Script_s_get_coach_cost(__yy__v563,_inst,__yy__v563.gmlstaff_hire)),0.5));if(yyfless(gmlcost,
1)){gmlcost=1;};__yy__v563.gmlcoach_credit=yyfminus(__yy__v563.gmlcoach_credit,gmlcost);ds_map_set(__yy__v563.gmlstaff_hire,"contract",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v563.gmlstaff_hire,"contract")),1));ds_map_set(__yy__v563.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v563.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlcost)),0));gml_Script_s_complete_achievement(__yy__v563,_inst,"ACH_COACHEXTEND");if(yyfgreaterequal(ds_map_find_value(__yy__v563.gmlstaff_hire,
"rating"),10)){{if(yyfequal(ds_map_find_value(__yy__v563.gmlstaff_hire,"position"),101)){gml_Script_s_complete_achievement(__yy__v563,_inst,"ACH_HIRE_DF5");}else {gml_Script_s_complete_achievement(__yy__v563,_inst,"ACH_HIRE_OF5");};};};room_goto(9);};};}}};}}function gml_GlobalScript_btn_response_clearfreeagents(_inst,_other){(_inst.gmlbtn_response_clearfreeagents=__yy_method(_inst,gml_Script_btn_response_clearfreeagents));}function gml_Script_btn_response_clearfreeagents(_inst,_other){{gml_Script_s_msg_clear(_inst,
_other);gml_Script_s_clear_freeagents(_inst,_other);room_goto(14);}}function gml_GlobalScript_btn_response_rest_player_yes(_inst,_other){(_inst.gmlbtn_response_rest_player_yes=__yy_method(_inst,gml_Script_btn_response_rest_player_yes));}function gml_Script_btn_response_rest_player_yes(_inst,_other){{{var __yy__v564=GetWithArray(97);for(var __yy__v565 in __yy__v564){if(!__yy__v564.hasOwnProperty(__yy__v565))continue;var __yy__v566=__yy__v564[__yy__v565];{ds_map_set(__yy__v566.gmlplayer_profile,"resting",
true);if(yyfless(ds_map_find_value(__yy__v566.gmlplayer_profile,"condition"),40)){ds_map_set(__yy__v566.gmlplayer_profile,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v566.gmlplayer_profile,"attitude")),15),1,100));};}}};room_goto(22);}}function gml_GlobalScript_btn_response_cointoss_kick(_inst,_other){(_inst.gmlbtn_response_cointoss_kick=__yy_method(_inst,gml_Script_btn_response_cointoss_kick));}function gml_Script_btn_response_cointoss_kick(_inst,_other){{yyInst(_inst,_other,
104).gmlpossession=yyInst(_inst,_other,104).gmlhuman_team;yyInst(_inst,_other,104).gmlcomm_stage=0;gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_cointoss_receive(_inst,_other){(_inst.gmlbtn_response_cointoss_receive=__yy_method(_inst,gml_Script_btn_response_cointoss_receive));}function gml_Script_btn_response_cointoss_receive(_inst,_other){{yyInst(_inst,_other,104).gmlpossession=!yyGetBool(yyInst(_inst,_other,104).gmlhuman_team);yyInst(_inst,_other,104).gmlcomm_stage=0;
gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_skip_tutorial(_inst,_other){(_inst.gmlbtn_response_skip_tutorial=__yy_method(_inst,gml_Script_btn_response_skip_tutorial));}function gml_Script_btn_response_skip_tutorial(_inst,_other){{gml_Script_slog(_inst,_other,"btn_skip_tutorial");gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,97).gmlintro=0;room_goto(14);}}function gml_GlobalScript_btn_response_confirm_new_team(_inst,_other){(_inst.gmlbtn_response_confirm_new_team=__yy_method(_inst,
gml_Script_btn_response_confirm_new_team));}function gml_Script_btn_response_confirm_new_team(_inst,_other){{{var __yy__v567=GetWithArray(97);for(var __yy__v568 in __yy__v567){if(!__yy__v567.hasOwnProperty(__yy__v568))continue;var __yy__v569=__yy__v567[__yy__v568];{var gmloldteamname=ds_map_find_value(__yy__v569.gmlmyteam,"name");ds_map_set(__yy__v569.gmlmyteam,"defense",gml_Script_s_get_team_defense(__yy__v569,_inst,__yy__v569.gmlmyteam));ds_map_set(__yy__v569.gmlmyteam,"offense",gml_Script_s_get_team_offense(__yy__v569,
_inst,__yy__v569.gmlmyteam));__yy__v569.gmlmyteam=__yy__v569.gmlnewteam;__yy__v569.gmlnewteam=(-4);__yy__v569.gmlmyteam_id=real(ds_map_find_value(__yy__v569.gmlmyteam,"uid"));__yy__v569.gmlmyconference=real(ds_map_find_value(__yy__v569.gmlmyteam,"conference"));__yy__v569.gmlmydivision=real(ds_map_find_value(__yy__v569.gmlmyteam,"division"));__yy__v569.gmlfacility_stadium=1;__yy__v569.gmlfacility_training=1;__yy__v569.gmlfacility_rehab=1;__yy__v569.gmlfans=yyfplus(10,__yy_gml_errCheck(irandom(10)));
for(var __yy__v570=0,__yy__v571=yyGetInt32(3);__yy__v570<__yy__v571;__yy__v570++){{var ___sw218___=irandom(3);var ___swc219___=-1;if(yyCompareVal(___sw218___,0,g_GMLMathEpsilon,false)==0){___swc219___=0;}else if(yyCompareVal(___sw218___,1,g_GMLMathEpsilon,false)==0){___swc219___=1;}else if(yyCompareVal(___sw218___,2,g_GMLMathEpsilon,false)==0){___swc219___=2;}else if(yyCompareVal(___sw218___,3,g_GMLMathEpsilon,false)==0){___swc219___=3;}switch(___swc219___){case 0:{(g_yyPrePostObject__=__yy__v569.gmlfacility_stadium,
__yy__v569.gmlfacility_stadium=(g_yyPrePostObject__ instanceof Long?__yy__v569.gmlfacility_stadium.add(1):++__yy__v569.gmlfacility_stadium),g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=__yy__v569.gmlfacility_training,__yy__v569.gmlfacility_training=(g_yyPrePostObject__ instanceof Long?__yy__v569.gmlfacility_training.add(1):++__yy__v569.gmlfacility_training),g_yyPrePostObject__);break;}case 2:{(g_yyPrePostObject__=__yy__v569.gmlfacility_rehab,__yy__v569.gmlfacility_rehab=(g_yyPrePostObject__ instanceof Long?__yy__v569.gmlfacility_rehab.add(1):++__yy__v569.gmlfacility_rehab),
g_yyPrePostObject__);break;}case 3:{__yy__v569.gmlfans=yyfplus(__yy__v569.gmlfans,10);break;}};}};__yy__v569.gmldraft_picks=__yy_gml_array_check(__yy__v569.gmldraft_picks,3033316751);__yy__v569.gmldraft_picks[__yy_gml_array_check_index_set(0)]=1;__yy__v569.gmldraft_picks[__yy_gml_array_check_index_set(1)]=1;__yy__v569.gmldraft_picks[__yy_gml_array_check_index_set(2)]=1;__yy__v569.gmlfacility_upgraded_stadium=0;__yy__v569.gmlfacility_upgraded_training=0;__yy__v569.gmlfacility_upgraded_rehab=0;gml_Script_s_create_new_roster_newteam(__yy__v569,
_inst);gml_Script_s_create_new_stafflist(__yy__v569,_inst);gml_Script_s_set_team_morale(__yy__v569,_inst,15,100);var gmlmsg=gml_Script_s_str(__yy__v569,_inst,yyfplus("news_NewJob",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(2)))))));if(yyfequal(__yy__v569.gmlmyteam_id,__yy__v569.gmlfavourite_team_id)){gmlmsg=yyfplus(gmlmsg,yyfplus("##",__yy_gml_errCheck(gml_Script_s_str(__yy__v569,_inst,yyfplus("news_FavoriteTeam",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(2))))))))));
};gmlmsg=string_replace_all(gmlmsg,"$oldteamname",gmloldteamname);gmlmsg=string_replace_all(gmlmsg,"$newteamname",ds_map_find_value(__yy__v569.gmlmyteam,"name"));gmlmsg=string_replace_all(gmlmsg,"$yourname",yyfplus(yyfplus(__yy_gml_errCheck(__yy__v569.gmlfname)," "),__yy_gml_errCheck(__yy__v569.gmllname)));gmlmsg=string_replace_all(gmlmsg,"$yourlastname",__yy__v569.gmllname);gmlmsg=string_hash_to_newline(gmlmsg);gml_Script_s_add_news(__yy__v569,_inst,gmlmsg);gml_Script_s_complete_achievement(__yy__v569,
_inst,"ACH_TEAMS2");gml_Script_s_start_new_season(__yy__v569,_inst,true);}}};}}function gml_GlobalScript_s_store_cant_afford(_inst,_other){(_inst.gmls_store_cant_afford=__yy_method(_inst,gml_Script_s_store_cant_afford));}function gml_Script_s_store_cant_afford(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);room_goto(8);}}function gml_GlobalScript_s_tip_continue(_inst,_other){(_inst.gmls_tip_continue=__yy_method(_inst,gml_Script_s_tip_continue));}function gml_Script_s_tip_continue(_inst,_other){
{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_play(_inst,_other,1);}}function gml_GlobalScript_s_qb_mode_auto_xp(_inst,_other){(_inst.gmls_qb_mode_auto_xp=__yy_method(_inst,gml_Script_s_qb_mode_auto_xp));}function gml_Script_s_qb_mode_auto_xp(_inst,_other,argument0,argument1,argument2,argument3){{while(yyGetBool(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(argument1)),__yy_gml_errCheck(argument2)),__yy_gml_errCheck(argument3)))){{var ___sw222___=irandom(3);var ___swc223___=-1;
if(yyCompareVal(___sw222___,0,g_GMLMathEpsilon,false)==0){___swc223___=0;}else if(yyCompareVal(___sw222___,1,g_GMLMathEpsilon,false)==0){___swc223___=1;}else if(yyCompareVal(___sw222___,2,g_GMLMathEpsilon,false)==0){___swc223___=2;}else if(yyCompareVal(___sw222___,3,g_GMLMathEpsilon,false)==0){___swc223___=3;}switch(___swc223___){case 0:{if(yyGetBool(argument0)){{gml_Script_btn_click_AddSkill(_inst,_other);return;};};break;}case 1:{if(yyGetBool(argument1)){{gml_Script_btn_click_AddSpeed(_inst,_other);
return;};};break;}case 2:{if(yyGetBool(argument2)){{gml_Script_btn_click_AddStrength(_inst,_other);return;};};break;}case 3:{if(yyGetBool(argument3)){{gml_Script_btn_click_AddStamina(_inst,_other);return;};};break;}};}};}}function gml_GlobalScript_s_confirm_staff_hire_reset(_inst,_other){(_inst.gmls_confirm_staff_hire_reset=__yy_method(_inst,gml_Script_s_confirm_staff_hire_reset));}function gml_Script_s_confirm_staff_hire_reset(_inst,_other){{{var __yy__v572=GetWithArray(97);for(var __yy__v573 in __yy__v572){
if(!__yy__v572.hasOwnProperty(__yy__v573))continue;var __yy__v574=__yy__v572[__yy__v573];{gml_Script_s_msg_clear(__yy__v574,_inst);__yy__v574.gmlstaff_reset_week=__yy__v574.gmlweek;__yy__v574.gmlcoach_credit=yyfminus(__yy__v574.gmlcoach_credit,5);if(yyfless(__yy__v574.gmlcoach_credit,0)){__yy__v574.gmlcoach_credit=0;};ds_map_set(__yy__v574.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v574.gmlmap_options,"op_credits_purchased")),5),0));gml_Script_s_reset_staff_hire_list(__yy__v574,
_inst,true);room_goto(31);gml_Script_s_savegame(__yy__v574,_inst);}}};}}function gml_GlobalScript_s_confirm_freeagent_hire_reset(_inst,_other){(_inst.gmls_confirm_freeagent_hire_reset=__yy_method(_inst,gml_Script_s_confirm_freeagent_hire_reset));}function gml_Script_s_confirm_freeagent_hire_reset(_inst,_other){{{var __yy__v575=GetWithArray(97);for(var __yy__v576 in __yy__v575){if(!__yy__v575.hasOwnProperty(__yy__v576))continue;var __yy__v577=__yy__v575[__yy__v576];{gml_Script_s_msg_clear(__yy__v577,_inst);
__yy__v577.gmlfreeagent_reset_week=__yy__v577.gmlweek;__yy__v577.gmlcoach_credit=yyfminus(__yy__v577.gmlcoach_credit,5);if(yyfless(__yy__v577.gmlcoach_credit,0)){__yy__v577.gmlcoach_credit=0;};ds_map_set(__yy__v577.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v577.gmlmap_options,"op_credits_purchased")),5),0));yyInst(_inst,_other,97).gmlfa_page=1;gml_Script_s_clear_storelist(__yy__v577,_inst);room_goto(8);}}};}}function gml_GlobalScript_btn_response_deletegame1(_inst,
_other){(_inst.gmlbtn_response_deletegame1=__yy_method(_inst,gml_Script_btn_response_deletegame1));}function gml_Script_btn_response_deletegame1(_inst,_other){{file_delete(global.gmlg_savename1);file_delete("uniforms_custom_1.txt");gml_Script_s_nx_commit(_inst,_other);room_goto(0);}}function gml_GlobalScript_btn_response_deletegame2(_inst,_other){(_inst.gmlbtn_response_deletegame2=__yy_method(_inst,gml_Script_btn_response_deletegame2));}function gml_Script_btn_response_deletegame2(_inst,_other){{file_delete(global.gmlg_savename2);
file_delete("uniforms_custom_2.txt");gml_Script_s_nx_commit(_inst,_other);room_goto(0);}}function gml_GlobalScript_btn_response_deletegame3(_inst,_other){(_inst.gmlbtn_response_deletegame3=__yy_method(_inst,gml_Script_btn_response_deletegame3));}function gml_Script_btn_response_deletegame3(_inst,_other){{file_delete(global.gmlg_savename3);file_delete("uniforms_custom_3.txt");gml_Script_s_nx_commit(_inst,_other);room_goto(0);}}function gml_GlobalScript_btn_response_deletegame4(_inst,_other){(_inst.gmlbtn_response_deletegame4=__yy_method(_inst,
gml_Script_btn_response_deletegame4));}function gml_Script_btn_response_deletegame4(_inst,_other){{file_delete(global.gmlg_savename4);file_delete("uniforms_custom_4.txt");gml_Script_s_nx_commit(_inst,_other);room_goto(0);}}function gml_GlobalScript_btn_response_deletegame5(_inst,_other){(_inst.gmlbtn_response_deletegame5=__yy_method(_inst,gml_Script_btn_response_deletegame5));}function gml_Script_btn_response_deletegame5(_inst,_other){{file_delete(global.gmlg_savename5);file_delete("uniforms_custom_5.txt");
gml_Script_s_nx_commit(_inst,_other);room_goto(0);}}function gml_GlobalScript_s_simming_action(_inst,_other){(_inst.gmls_simming_action=__yy_method(_inst,gml_Script_s_simming_action));}function gml_Script_s_simming_action(_inst,_other){{if((yyGetBool(yyInst(_inst,_other,97).gmlqb_mode))&&(yyGetBool(yyfgreater(gml_Script_s_qb_mode_benched_status(_inst,_other),0)))){return true;}else {return yyInst(_inst,_other,97).gmlsim_action;};}}function gml_GlobalScript_btn_response_hof_select(_inst,_other){(_inst.gmlbtn_response_hof_select=__yy_method(_inst,
gml_Script_btn_response_hof_select));}function gml_Script_btn_response_hof_select(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"hof",false);var gmlpos=ds_list_find_index(yyInst(_inst,_other,97).gmlhoflist,yyInst(_inst,_other,97).gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{ds_list_delete(yyInst(_inst,_other,97).gmlhoflist,gmlpos);ds_map_destroy(yyInst(_inst,_other,97).gmlplayer_profile);yyInst(_inst,_other,97).gmlplayer_profile=(-1);};
};room_goto(12);}}function gml_GlobalScript_btn_response_records_reset(_inst,_other){(_inst.gmlbtn_response_records_reset=__yy_method(_inst,gml_Script_btn_response_records_reset));}function gml_Script_btn_response_records_reset(_inst,_other){{{var __yy__v578=GetWithArray(97);for(var __yy__v579 in __yy__v578){if(!__yy__v578.hasOwnProperty(__yy__v579))continue;var __yy__v580=__yy__v578[__yy__v579];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v580.gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v580.gmlrecords,gmli));ds_list_set(__yy__v580.gmlrecords,gmli,(-1));}};ds_list_clear(__yy__v580.gmlrecords);ds_list_destroy(__yy__v580.gmlrecords);__yy__v580.gmlrecords=(-1);__yy__v580.gmlrecords=gml_Script_s_load_map_file(__yy__v580,_inst,"PlayerRecords.txt");__yy__v580.gmlplayer_record_msg_done=true;}}};gml_Script_s_msg_clear(_inst,_other);room_goto(13);}}function gml_GlobalScript_btn_match_kick(_inst,_other){(_inst.gmlbtn_match_kick=__yy_method(_inst,
gml_Script_btn_match_kick));(_inst.gmlbtn_match_goforit=__yy_method(_inst,gml_Script_btn_match_goforit));(_inst.gmlbtn_match_gofor1pt=__yy_method(_inst,gml_Script_btn_match_gofor1pt));}function gml_Script_btn_match_kick(_inst,_other){{mouse_clear(1);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){{audio_play_sound(5,1,false);audio_play_sound(15,1,false);};};{var __yy__v581=GetWithArray(104);for(var __yy__v582 in __yy__v581){if(!__yy__v581.hasOwnProperty(__yy__v582))continue;
var __yy__v583=__yy__v581[__yy__v582];{gml_Script_s_update_timeouts(__yy__v583,_inst,(-1));if(yyfgreater(__yy__v583.gmlscrimmage,0)){gml_Script_btn_response_fg_yes(__yy__v583,_inst);}else {gml_Script_btn_response_punt_yes(__yy__v583,_inst);};}}};}}function gml_Script_btn_match_goforit(_inst,_other){{mouse_clear(1);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){{audio_play_sound(5,1,false);audio_play_sound(15,1,false);};};{var __yy__v584=GetWithArray(104);for(var __yy__v585 in __yy__v584){
if(!__yy__v584.hasOwnProperty(__yy__v585))continue;var __yy__v586=__yy__v584[__yy__v585];{gml_Script_s_update_timeouts(__yy__v586,_inst,(-1));gml_Script_s_set_up_play(__yy__v586,_inst,true);}}};}}function gml_Script_btn_match_gofor1pt(_inst,_other){{mouse_clear(1);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){{audio_play_sound(5,1,false);audio_play_sound(15,1,false);};};{var __yy__v587=GetWithArray(104);for(var __yy__v588 in __yy__v587){if(!__yy__v587.hasOwnProperty(__yy__v588))continue;
var __yy__v589=__yy__v587[__yy__v588];{gml_Script_s_update_timeouts(__yy__v589,_inst,(-1));gml_Script_s_set_up_fieldgoal(__yy__v589,_inst,2);}}};}}function gml_GlobalScript_s_do_prematch_dilemma(_inst,_other){(_inst.gmls_do_prematch_dilemma=__yy_method(_inst,gml_Script_s_do_prematch_dilemma));(_inst.gmls_create_dilemma_news=__yy_method(_inst,gml_Script_s_create_dilemma_news));(_inst.gmls_clear_msg_and_back=__yy_method(_inst,gml_Script_s_clear_msg_and_back));(_inst.gmls_get_standard_dilemmas=__yy_method(_inst,
gml_Script_s_get_standard_dilemmas));(_inst.gmls_get_college_dilemmas=__yy_method(_inst,gml_Script_s_get_college_dilemmas));}function gml_Script_s_do_prematch_dilemma(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_do_prematch_dilemma START (chained count: ",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlprematch_dilemma_shown_count))),")"));{var __yy__v590=GetWithArray(97);for(var __yy__v591 in __yy__v590){if(!__yy__v590.hasOwnProperty(__yy__v591))continue;var __yy__v592=__yy__v590[__yy__v591];
{yyInst(_inst,_other,97).gmlprematch_dilemma_done=true;if(!yyGetBool(gml_Script_s_get_human_fixture_next(__yy__v592,_inst))){return false;};var gmlmsg="";var gmlpmap=gml_Script_s_get_random_player(__yy__v592,_inst,true,__yy__v592.gmlprematch_dilemma_chosen_players);var gmlsmap=gml_Script_s_get_staff(__yy__v592,_inst,101);var gmldilemmas=ds_list_create();if(yyfequal(gmlpmap,(-4))){{gml_Script_slog(__yy__v592,_inst,yyfplus(yyfplus(yyfplus(yyfplus("Invalid PMAP (likely we've run out of fresh players in test/chained dilemmas) Discarded/Roster: [",
__yy_gml_errCheck(string(ds_list_size(__yy__v592.gmlprematch_dilemma_chosen_players)))),"/"),__yy_gml_errCheck(string(ds_list_size(__yy__v592.gmlroster)))),"] - Refreshing discard pile and picking new."));ds_list_clear(__yy__v592.gmlprematch_dilemma_chosen_players);gmlpmap=gml_Script_s_get_random_player(__yy__v592,_inst,true,__yy__v592.gmlprematch_dilemma_chosen_players);};};if(yyfequal(gmlpmap,(-4))){{gml_Script_slog2(__yy__v592,_inst,"ERROR! Invalid PMAP! - Aborting s_do_prematch_dilemma");return false;
};};gml_Script_slog(__yy__v592,_inst,yyfplus(yyfplus(yyfplus("s_do_prematch_dilemma START chosen player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"]"));if((yyGetBool((yyGetBool(irandom(2)))&&(yyGetBool(yyfgreater(__yy__v592.gmlyear,1)))))||(yyGetBool(argument0))){{ds_list_add(__yy__v592.gmlprematch_dilemma_chosen_players,gmlpmap);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v592,_inst))){{gml_Script_s_get_college_dilemmas(__yy__v592,
_inst,gmlpmap,gmlsmap,gmldilemmas);};}else {{gml_Script_s_get_standard_dilemmas(__yy__v592,_inst,gmlpmap,gmlsmap,gmldilemmas);};};var gmli=0;for(;yyfless(gmli,ds_list_size(gmldilemmas));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_slog(__yy__v592,_inst,yyfplus("List: ",__yy_gml_errCheck(ds_list_find_value(gmldilemmas,gmli))));}};ds_list_shuffle(gmldilemmas);gmlmsg=gml_Script_s_choose_dilemma(__yy__v592,_inst,ds_list_find_value(gmldilemmas,
0));gml_Script_slog(__yy__v592,_inst,yyfplus("s_do_prematch_dilemma: ",__yy_gml_errCheck(gmlmsg)));};};if(yyGetBool(string_count("dilemma_",gmlmsg))){{ds_map_destroy(__yy__v592.gmlmap_dilemma);__yy__v592.gmlmap_dilemma=(-1);__yy__v592.gmlmap_dilemma=gml_Script_s_parse_dilemma(__yy__v592,_inst,gmlmsg,gmlpmap,"ui_Dilemma");yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;gml_Script_s_create_dilemma(__yy__v592,_inst,__yy__v592.gmlmap_dilemma);ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return true;
};}else {if(yyGetBool(string_count("news_",gmlmsg))){{yyInst(_inst,_other,97).gmlnews_dilemma=gmlmsg;yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;gml_Script_s_create_dilemma_news(__yy__v592,_inst);ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return true;};};};ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return false;}}};}}function gml_Script_s_create_dilemma_news(_inst,_other){{var gmlmsg=yyInst(_inst,_other,97).gmlnews_dilemma;var gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;if(yyGetBool(string_count("news_CharityWork",
gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);gml_Script_s_meter_change(_inst,_other,1,yyInst(_inst,_other,97).gmlfans,(-4),gmlmsg);yyInst(_inst,_other,97).gmlfans=yyfplus(yyInst(_inst,_other,97).gmlfans,2);};}else {if(yyGetBool(string_count("news_playerleaves_toxic",gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);yyInst(_inst,_other,97).gmlprofile_back_to=2;gml_Script_s_create_message(_inst,
_other,gml_Script_s_str(_inst,_other,"ui_News"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_cut_player_end_toxic_max,"",global.gmlc_background,1,gmlpmap);};}else {if(yyGetBool(string_count("news_playerleaves_party",gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);yyInst(_inst,_other,97).gmlprofile_back_to=2;gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_News"),gmlmsg,gml_Script_s_str(_inst,
_other,"ui_Continue"),"",kgml_Script_s_cut_player_end_party_max,"",global.gmlc_background,1,gmlpmap);};}else {{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_News"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_clear_msg_and_back,"",global.gmlc_background,1);};};};};}}function gml_Script_s_clear_msg_and_back(_inst,_other){{yyInst(_inst,_other,97).gmlprofile_back_to=(-1);
gml_Script_s_msg_clear(_inst,_other);}}function gml_Script_s_get_standard_dilemmas(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other," s_do_prematch_dilemma choosing standard dilemmas");{var __yy__v593=GetWithArray(97);for(var __yy__v594 in __yy__v593){if(!__yy__v593.hasOwnProperty(__yy__v594))continue;var __yy__v595=__yy__v593[__yy__v594];{ds_list_add(argument2,"dilemma_Owner");if(yyGetBool(argument0)){{if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v595,_inst,argument0))){
argument1=gml_Script_s_get_staff(__yy__v595,_inst,102);};if((yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v595,_inst,argument0))))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"condition"),0)))&&(yyGetBool(yyfless(ds_map_find_value(argument0,"condition"),20)))&&(yyGetBool(yyfless(__yy__v595.gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)))){ds_list_add(argument2,"dilemma_RestPlayer");};if(yyflessequal(ds_map_find_value(argument0,"attitude"),30)){ds_list_add(argument2,"dilemma_toxic");
};if((yyGetBool(argument1))&&(yyGetBool((yyGetBool(yyflessequal(ds_map_find_value(argument0,"attitude"),30)))||(yyGetBool(yyflessequal(ds_map_find_value(argument1,"attitude"),30)))))){ds_list_add(argument2,"dilemma_Coach_BustUp");};if(yyflessequal(ds_map_find_value(argument0,"attitude"),60)){ds_list_add(argument2,"dilemma_late");};if(yyfequal(ds_map_find_value(argument0,"age"),gml_Script_s_rookie_age_internal(__yy__v595,_inst))){ds_list_add(argument2,"dilemma_rookie");};if((yyGetBool(yyfgreater(ds_map_find_value(argument0,
"attitude"),90)))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlfans,98)))){ds_list_add(argument2,"news_CharityWork");}else {ds_list_add(argument2,"dilemma_random");};};};}}};}}function gml_Script_s_get_college_dilemmas(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other," s_do_prematch_dilemma choosing college dilemmas");{var __yy__v596=GetWithArray(97);for(var __yy__v597 in __yy__v596){if(!__yy__v596.hasOwnProperty(__yy__v597))continue;var __yy__v598=__yy__v596[__yy__v597];{ds_list_add(argument2,
"dilemma_Owner");ds_list_add(argument2,"dilemma_hobby");if(yyGetBool(argument0)){{if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v598,_inst,argument0))){argument1=gml_Script_s_get_staff(__yy__v598,_inst,102);};if((yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v598,_inst,argument0))))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"condition"),0)))&&(yyGetBool(yyfless(ds_map_find_value(argument0,"condition"),20)))&&(yyGetBool(yyfless(__yy__v598.gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)))){
ds_list_add(argument2,"dilemma_RestPlayer");};if(yyflessequal(ds_map_find_value(argument0,"attitude"),30)){{if(yyfgreaterequal(ds_map_find_value(argument0,"toxic_dilemmas"),5)){{ds_list_add(argument2,"news_playerleaves_toxic");};}else {if(yyfgreaterequal(ds_map_find_value(argument0,"toxic_dilemmas"),3)){{ds_list_add(argument2,"dilemma_leaverescue_toxic");};}else {{ds_list_add(argument2,"dilemma_toxic");};};};};};if(yyflessequal(ds_map_find_value(argument0,"attitude"),60)){{if(yyfgreaterequal(ds_map_find_value(argument0,
"party_meter"),70)){{ds_list_add(argument2,"dilemma_late_party");};}else {{ds_list_add(argument2,"dilemma_late");};};};};if(yyfequal(ds_map_find_value(argument0,"age"),gml_Script_s_rookie_age_internal(__yy__v598,_inst))){ds_list_add(argument2,"dilemma_rookie");};if((yyGetBool(yyfgreater(ds_map_find_value(argument0,"attitude"),90)))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlfans,98)))){{ds_list_add(argument2,"news_CharityWork");};}else {{ds_list_add(argument2,"dilemma_random");};};if(yyfequal(ds_map_find_value(argument0,
"suspended"),1)){{ds_list_add(argument2,"dilemma_leaverescue_gpa");};};if((yyGetBool(yyfgreaterequal(ds_map_find_value(argument0,"percent_grade"),68)))&&(yyGetBool(yyflessequal(ds_map_find_value(argument0,"percent_grade"),82)))){{ds_list_add(argument2,"dilemma_study");};};if(yyfgreaterequal(ds_map_find_value(argument0,"party_meter"),85)){{if(yyfgreaterequal(ds_map_find_value(argument0,"party_dilemmas"),5)){{ds_list_add(argument2,"news_playerleaves_party");};}else {if(yyfgreaterequal(ds_map_find_value(argument0,
"party_dilemmas"),3)){{ds_list_add(argument2,"dilemma_leaverescue_party");};}else {{ds_list_add(argument2,"dilemma_party");};};};};};};};}}};}}function gml_GlobalScript_s_do_postmatch_dilemma(_inst,_other){(_inst.gmls_do_postmatch_dilemma=__yy_method(_inst,gml_Script_s_do_postmatch_dilemma));}function gml_Script_s_do_postmatch_dilemma(_inst,_other){{{var __yy__v599=GetWithArray(97);for(var __yy__v600 in __yy__v599){if(!__yy__v599.hasOwnProperty(__yy__v600))continue;var __yy__v601=__yy__v599[__yy__v600];
{if((yyGetBool(__yy__v601.gmlqb_mode))&&(yyGetBool(gml_Script_s_qb_mode_benched_status(__yy__v601,_inst)))){{gml_Script_s_play(__yy__v601,_inst,1);return;};};var gmlpmap=gml_Script_s_get_random_player(__yy__v601,_inst,false);var gmlmsg="";var gmlfixture=gml_Script_s_get_human_fixture_by_week(__yy__v601,_inst,__yy__v601.gmlweek);if((yyGetBool(yyfgreater(__yy__v601.gmlweek,4)))&&(yyGetBool(yyfless(__yy__v601.gmlweek,gml_Script_s_get_week_superbowl(__yy__v601,_inst))))&&(yyGetBool(gmlpmap))&&(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,
"attitude"),15)))){gmlmsg=gml_Script_s_choose_dilemma(__yy__v601,_inst,"postmatch_toxic");}else {if((yyGetBool(gmlpmap))&&(yyGetBool(yyfgreater(gml_Script_s_get_match_rating(__yy__v601,_inst,gmlpmap),7)))){gmlmsg=gml_Script_s_choose_dilemma(__yy__v601,_inst,"postmatch_performance_good");}else {if((yyGetBool(yyfless(__yy__v601.gmlweek,gml_Script_s_get_week_superbowl(__yy__v601,_inst))))&&(yyGetBool(gmlpmap))&&(yyGetBool(yyfless(gml_Script_s_get_match_rating(__yy__v601,_inst,gmlpmap),4)))){gmlmsg=gml_Script_s_choose_dilemma(__yy__v601,
_inst,"postmatch_performance_bad");}else {if((yyGetBool(gmlpmap))&&(yyGetBool(!yyGetBool(irandom(4))))){{if(yyGetBool(irandom(4))){gmlmsg=gml_Script_s_choose_dilemma(__yy__v601,_inst,"postmatch_question_player");}else {{gmlpmap=gml_Script_s_get_random_coach(__yy__v601,_inst);gmlmsg=gml_Script_s_choose_dilemma(__yy__v601,_inst,"postmatch_question_staff");};};};}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){gmlmsg=gml_Script_s_choose_dilemma(__yy__v601,_inst,"postmatch_loss");}
else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){gmlmsg=gml_Script_s_choose_dilemma(__yy__v601,_inst,"postmatch_win");}else {if(yyGetBool(gmlpmap)){gmlmsg=gml_Script_s_choose_dilemma(__yy__v601,_inst,"postmatch_question_player");};};};};};};};if(yyfnotequal(gmlmsg,"")){{ds_map_clear(__yy__v601.gmlmap_dilemma);__yy__v601.gmlmap_dilemma=gml_Script_s_parse_dilemma(__yy__v601,_inst,gmlmsg,gmlpmap,"ui_PressInterview");yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;gml_Script_s_create_dilemma(__yy__v601,
_inst,__yy__v601.gmlmap_dilemma);};}else {{gml_Script_s_play(__yy__v601,_inst,1);};};}}};}}function gml_GlobalScript_s_parse_dilemma(_inst,_other,argument0,argument1,argument2){(_inst.gmls_parse_dilemma=__yy_method(_inst,gml_Script_s_parse_dilemma));}function gml_Script_s_parse_dilemma(_inst,_other,argument0,argument1,argument2){{var gmlmsg_key=argument0;var gmlmsg=gml_Script_s_str(_inst,_other,argument0);var gmlpmap=argument1;var gmlmap_dilemma=ds_map_create();gml_Script_slog(_inst,_other,gmlmsg);ds_map_set(gmlmap_dilemma,
"title",gml_Script_s_str(_inst,_other,argument2));ds_map_set(gmlmap_dilemma,"effect_on1","");ds_map_set(gmlmap_dilemma,"effect_on2","");ds_map_set(gmlmap_dilemma,"msg_key",gmlmsg_key);var gmlbtn="1";if(yyGetBool(string_count("-choice_DefendPlayer",gmlmsg))){{var gmlcc_cost=(-1);if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{gmlcc_cost=(-3);};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(string_pos("dilemma_leaverescue_gpa",gmlmsg_key))){{gmlcc_cost=gml_Script_s_str_real(_inst,
_other,"dlr_gpa_cost");};};if(yyGetBool(string_pos("dilemma_leaverescue_toxic",gmlmsg_key))){{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_toxic_cost");};};if(yyGetBool(string_pos("dilemma_leaverescue_party",gmlmsg_key))){{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_party_cost");};};};};ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_DefendPlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_DefendPlayer");
ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),gmlcc_cost);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)?"spr_fans":"spr_credit"));ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_DefendPlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraisePlayer",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),
gml_Script_s_str(_inst,_other,"choice_PraisePlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraisePlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),15);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_PraisePlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticisePlayer",
gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticisePlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticisePlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-15));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,
"-choice_CriticisePlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_SideWithPlayer",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_SideWithPlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_SideWithPlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),10);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,
yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_SideWithPlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_RestYes",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_RestYes"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_RestYes");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),15);ds_map_set(gmlmap_dilemma,
yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_RestYes","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_RestNo",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_RestNo"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_RestNo");ds_map_set(gmlmap_dilemma,
yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-5));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_RestNo","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FinePlayer",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FinePlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",
__yy_gml_errCheck(gmlbtn)),"choice_FinePlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-10));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_FinePlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_IgnoreFine",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),
gml_Script_s_str(_inst,_other,"choice_IgnoreFine"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_IgnoreFine");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-5));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_IgnoreFine","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraiseTeam",
gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraiseTeam"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseTeam");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),3);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,
"-choice_PraiseTeam","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseTeam",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticiseTeam"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseTeam");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-10));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,
yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseTeam","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusTeam",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusTeam"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusTeam");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),300);ds_map_set(gmlmap_dilemma,
yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_xp");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusTeam","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_MeetTeam",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_MeetTeam"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_MeetTeam");ds_map_set(gmlmap_dilemma,
yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),10);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_MeetTeam","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraiseFans",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraiseFans"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",
__yy_gml_errCheck(gmlbtn)),"choice_PraiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),3);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_fans");gmlmsg=string_replace_all(gmlmsg,"-choice_PraiseFans","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseFans",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticiseFans"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",
__yy_gml_errCheck(gmlbtn)),"choice_CriticiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-10));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_fans");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseFans","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusMedia",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusMedia"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",
__yy_gml_errCheck(gmlbtn)),"choice_FocusMedia");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),5);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_fans");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusMedia","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_MeetMedia",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_MeetMedia"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",
__yy_gml_errCheck(gmlbtn)),"choice_MeetMedia");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),5);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_fans");gmlmsg=string_replace_all(gmlmsg,"-choice_MeetMedia","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraiseCoaches",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraiseCoaches"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",
__yy_gml_errCheck(gmlbtn)),"choice_PraiseCoaches");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),15);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");gmlmsg=string_replace_all(gmlmsg,"-choice_PraiseCoaches","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseCoaches",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),
gml_Script_s_str(_inst,_other,"choice_CriticiseCoaches"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseCoaches");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-15));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseCoaches","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusCoaches",
gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusCoaches"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusCoaches");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),100);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_xp");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");if(yyGetBool(yyInst(_inst,
_other,97).gmlqb_mode)){ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"qb_self");};gmlmsg=string_replace_all(gmlmsg,"-choice_FocusCoaches","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_MeetCoaches",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_MeetCoaches"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_MeetCoaches");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",
__yy_gml_errCheck(gmlbtn)),15);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");gmlmsg=string_replace_all(gmlmsg,"-choice_MeetCoaches","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_SideWithCoach",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_SideWithCoach"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",
__yy_gml_errCheck(gmlbtn)),"choice_SideWithCoach");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),10);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");gmlmsg=string_replace_all(gmlmsg,"-choice_SideWithCoach","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseSelf",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),
gml_Script_s_str(_inst,_other,"choice_CriticiseSelf"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseSelf");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)?(-3):(-1)));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)?"spr_fans":"spr_credit"));ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),
"self");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseSelf","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraiseOwner",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraiseOwner"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseOwner");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),1);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),
"spr_credit");gmlmsg=string_replace_all(gmlmsg,"-choice_PraiseOwner","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusOwner",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusOwner"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusOwner");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),2);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),
"spr_credit");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusOwner","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_MeetOwner",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_MeetOwner"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_MeetOwner");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(yyGetBool(global.gmlconsole_build)?2:1));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",
__yy_gml_errCheck(gmlbtn)),"spr_credit");gmlmsg=string_replace_all(gmlmsg,"-choice_MeetOwner","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseOfficials",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticiseOfficials"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseOfficials");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,
_other,97).gmlqb_mode)?(-3):(-1)));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)?"spr_fans":"spr_credit"));gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseOfficials","");gmlbtn="2";};};if(yyGetBool(irandom(1))){{if(yyGetBool(string_count("-choice_qpos_correct",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));
ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),3);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"-1");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"fans");gmlmsg=string_replace_all(gmlmsg,"-choice_qpos_correct","");gmlbtn="2";};};};};if(yyGetBool(string_count("-choice_qpos_wrong",gmlmsg))){{var gmlpos=irandom_range(1,10);if(yyfequal(ds_map_find_value(gmlpmap,
"position"),101)){gmlpos=102;}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),102)){gmlpos=101;}else {{while((yyGetBool(yyfequal(gmlpos,real(ds_map_find_value(gmlpmap,"position")))))||(yyGetBool(yyfequal(gmlpos,8)))||(yyGetBool(yyfequal(gmlpos,9)))){gmlpos=irandom_range(1,10)};};};};ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_get_string_position(_inst,_other,gmlpos));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseFans");
ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-5));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"-1");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"fans");gmlmsg=string_replace_all(gmlmsg,"-choice_qpos_wrong","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_qpos_correct",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,
"position")));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),3);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"-1");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"fans");gmlmsg=string_replace_all(gmlmsg,"-choice_qpos_correct","");gmlbtn="2";};};var gmlreplaceCCWithTeam=yyflessequal(yyInst(_inst,_other,97).gmlcoach_credit,0);if((yyGetBool(gml_Script_s_is_co_mode(_inst,
_other)))&&(yyGetBool(string_pos("leaverescue",gmlmsg_key)))){{gmlreplaceCCWithTeam=false;};};if(yyGetBool(gmlreplaceCCWithTeam)){{if((yyGetBool(yyfequal(ds_map_find_value(gmlmap_dilemma,"cost_img1"),"spr_credit")))&&(yyGetBool(yyfless(ds_map_find_value(gmlmap_dilemma,"cost_amt1"),0)))){{ds_map_set(gmlmap_dilemma,"cost_typ1","choice_CriticiseTeam");ds_map_set(gmlmap_dilemma,"cost_amt1",(-10));ds_map_set(gmlmap_dilemma,"cost_img1","spr_attitude");ds_map_set(gmlmap_dilemma,"effect_on1","team");};}
;if((yyGetBool(yyfequal(ds_map_find_value(gmlmap_dilemma,"cost_img2"),"spr_credit")))&&(yyGetBool(yyfless(ds_map_find_value(gmlmap_dilemma,"cost_amt2"),0)))){{ds_map_set(gmlmap_dilemma,"cost_typ2","choice_CriticiseTeam");ds_map_set(gmlmap_dilemma,"cost_amt2",(-10));ds_map_set(gmlmap_dilemma,"cost_img2","spr_attitude");ds_map_set(gmlmap_dilemma,"effect_on2","team");};};};};if(yyGetBool(string_count("-choice_FocusNRG",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),
gml_Script_s_str(_inst,_other,"choice_FocusNRG"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusNRG");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),1);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_nrg");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"nrg");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusNRG","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_GPAUp",gmlmsg))){
{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_GPAUp"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_GPAUp");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),7);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_gpa");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_GPAUp","");
gmlbtn="2";};};if(yyGetBool(string_count("-choice_GPADrop",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_GPADrop"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_GPADrop");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-9));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_gpa");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),
"player");gmlmsg=string_replace_all(gmlmsg,"-choice_GPADrop","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CutPlayer",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CutPlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CutPlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),0);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"-1");
ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_CutPlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusGPA",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusGPA"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusGPA");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),7);ds_map_set(gmlmap_dilemma,
yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_gpa");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusGPA","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusRC",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusRC"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusRC");ds_map_set(gmlmap_dilemma,
yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str_real(_inst,_other,"choice_FocusRC_bonus"));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_credit_rec");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusRC","");gmlbtn="2";};};if(yyGetBool(gmlpmap)){{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gmlmsg,gmlpmap);gml_Script_slog(_inst,_other,yyfplus("Dilemma about: ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));if(yyGetBool(gml_Script_s_is_co_mode(_inst,
_other))){{if(yyGetBool(string_count("toxic",gmlmsg_key))){{ds_map_set(gmlpmap,"toxic_dilemmas",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"toxic_dilemmas")),1));};};if(yyGetBool(string_count("party",gmlmsg_key))){{ds_map_set(gmlpmap,"party_dilemmas",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"party_dilemmas")),1));};};};};};};ds_map_set(gmlmap_dilemma,"msg",gmlmsg);gml_Script_slog(_inst,_other,yyfplus("Dilemma: ",__yy_gml_errCheck(gmlmsg)));return gmlmap_dilemma;}}function gml_GlobalScript_s_create_dilemma(_inst,
_other){(_inst.gmls_create_dilemma=__yy_method(_inst,gml_Script_s_create_dilemma));}function gml_Script_s_create_dilemma(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_create_dilemma");var gmlallowProfileClick=false;if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlstage,2)))){{gmlallowProfileClick=true;};};if(yyGetBool(gmlallowProfileClick)){{yyInst(_inst,_other,97).gmlprofile_back_to=1;};};yyInst(_inst,_other,97).gmlstore_to_dilemma=false;
var gmltitle_txt=ds_map_find_value(argument0,"title");var gmlmsg_txt=ds_map_find_value(argument0,"msg");var gmlbtn_txt1=ds_map_find_value(argument0,"btn_txt1");var gmlbtn_txt2=ds_map_find_value(argument0,"btn_txt2");var gmlcost_txt1=string(ds_map_find_value(argument0,"cost_amt1"));var gmlcost_txt2=string(ds_map_find_value(argument0,"cost_amt2"));var gmlcost_img1=ds_map_find_value(argument0,"cost_img1");var gmlcost_img2=ds_map_find_value(argument0,"cost_img2");var gmlbg=instance_create_layer(0,0,"PopUps",
78);var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",70);var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5),"PopUps",79);var gmlbtn_1=instance_create_layer(104,224,"PopUps",41);var gmlbtn_2=instance_create_layer(272,224,"PopUps",41);var gmlcost_1=instance_create_layer(32,224,"PopUps",68);var gmlcost_2=instance_create_layer(384,224,"PopUps",68);var gmlcreds=instance_create_layer(32,
16,"PopUps",72);var gmlprof_1=instance_create_layer(32,136,"PopUps",49);var gmlprof_2=instance_create_layer(384,136,"PopUps",49);var gmlmorale_1=instance_create_layer(32,184,"PopUps",65);var gmlmorale_2=instance_create_layer(384,184,"PopUps",65);yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;yyInst(_inst,_other,gmltitle).gmlty=32;yyInst(_inst,_other,gmltitle).gmlshow_stars=false;yyInst(_inst,_other,gmltitle).gmltext=string(gmltitle_txt);yyInst(_inst,
_other,gmlmsg).gmltext=gmlmsg_txt;yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlmsg).gmlmsg_width=260;yyInst(_inst,_other,gmlbtn_1).gmltext=gmlbtn_txt1;yyInst(_inst,_other,gmlbtn_2).gmltext=gmlbtn_txt2;yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=kgml_Script_s_dilemma_choice_1;yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=kgml_Script_s_dilemma_choice_2;yyInst(_inst,_other,gmlcost_1).gmltitle=gml_Script_s_str(_inst,_other,"ui_Effect");yyInst(_inst,_other,gmlcost_2).gmltitle=gml_Script_s_str(_inst,
_other,"ui_Effect");yyInst(_inst,_other,gmlcost_1).gmltext=gmlcost_txt1;yyInst(_inst,_other,gmlcost_2).gmltext=gmlcost_txt2;yyInst(_inst,_other,gmlcost_1).gmlimage=gml_Script_s_convert_string_to_sprite(_inst,_other,gmlcost_img1);yyInst(_inst,_other,gmlcost_2).gmlimage=gml_Script_s_convert_string_to_sprite(_inst,_other,gmlcost_img2);yyInst(_inst,_other,gmlprof_1).gmlactive=false;yyInst(_inst,_other,gmlprof_2).gmlactive=false;yyInst(_inst,_other,gmlprof_1).gmlpmap=(-4);yyInst(_inst,_other,gmlprof_2).gmlpmap=(-4);
yyInst(_inst,_other,gmlmorale_1).visible=false;yyInst(_inst,_other,gmlmorale_2).visible=false;var ___sw232___=ds_map_find_value(argument0,"effect_on1");var ___swc233___=-1;if(yyCompareVal(___sw232___,"player",g_GMLMathEpsilon,false)==0){___swc233___=0;}else if(yyCompareVal(___sw232___,"coaches",g_GMLMathEpsilon,false)==0){___swc233___=1;}else if(yyCompareVal(___sw232___,"team",g_GMLMathEpsilon,false)==0){___swc233___=2;}else if(yyCompareVal(___sw232___,"self",g_GMLMathEpsilon,false)==0){___swc233___=3;
}switch(___swc233___){case 0:{yyInst(_inst,_other,gmlprof_1).gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;yyInst(_inst,_other,gmlprof_1).gmlactive=gmlallowProfileClick;gml_Script_slog(_inst,_other,yyfplus("DILEMMA1: ",__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlprof_1).gmlpmap,"lname"))));break;}case 1:{var gmlof=true;if((yyGetBool(yyInst(_inst,_other,97).gmlplayer_profile))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile))))){
gmlof=false;};var ___sw234___=gmlof;var ___swc235___=-1;if(yyCompareVal(___sw234___,true,g_GMLMathEpsilon,false)==0){___swc235___=0;}else if(yyCompareVal(___sw234___,false,g_GMLMathEpsilon,false)==0){___swc235___=1;}switch(___swc235___){case 0:{yyInst(_inst,_other,gmlprof_1).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);break;}case 1:{yyInst(_inst,_other,gmlprof_1).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);break;}};break;}case 2:{if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,95)){yyInst(_inst,
_other,gmlmorale_1).visible=true;};break;}case 3:{yyInst(_inst,_other,gmlprof_1).gmlpmap=gml_Script_s_get_staff(_inst,_other,100);break;}};if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,95)){{yyInst(_inst,_other,gmlcost_1).gmlimage_num=2;if(yyfgreater(ds_map_find_value(argument0,"cost_amt1"),0)){yyInst(_inst,_other,gmlcost_1).gmlimage_num=5;};yyInst(_inst,_other,gmlcost_1).gmltext="";};}else {if(yyfgreater(real(ds_map_find_value(argument0,"cost_amt1")),0)){yyInst(_inst,_other,gmlcost_1).gmltext=yyfplus("+",
__yy_gml_errCheck(yyInst(_inst,_other,gmlcost_1).gmltext));};};var ___sw236___=ds_map_find_value(argument0,"effect_on2");var ___swc237___=-1;if(yyCompareVal(___sw236___,"player",g_GMLMathEpsilon,false)==0){___swc237___=0;}else if(yyCompareVal(___sw236___,"coaches",g_GMLMathEpsilon,false)==0){___swc237___=1;}else if(yyCompareVal(___sw236___,"team",g_GMLMathEpsilon,false)==0){___swc237___=2;}else if(yyCompareVal(___sw236___,"self",g_GMLMathEpsilon,false)==0){___swc237___=3;}switch(___swc237___){case 0:{
yyInst(_inst,_other,gmlprof_2).gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;yyInst(_inst,_other,gmlprof_2).gmlactive=gmlallowProfileClick;gml_Script_slog(_inst,_other,yyfplus("DILEMMA2: ",__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlprof_2).gmlpmap,"lname"))));break;}case 1:{var gmlof=true;if((yyGetBool(yyInst(_inst,_other,97).gmlplayer_profile))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile))))){gmlof=false;};var ___sw238___=gmlof;
var ___swc239___=-1;if(yyCompareVal(___sw238___,true,g_GMLMathEpsilon,false)==0){___swc239___=0;}else if(yyCompareVal(___sw238___,false,g_GMLMathEpsilon,false)==0){___swc239___=1;}switch(___swc239___){case 0:{yyInst(_inst,_other,gmlprof_2).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);break;}case 1:{yyInst(_inst,_other,gmlprof_2).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);break;}};break;}case 2:{if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,95)){yyInst(_inst,_other,gmlmorale_2).visible=true;
};break;}case 3:{yyInst(_inst,_other,gmlprof_2).gmlpmap=gml_Script_s_get_staff(_inst,_other,100);break;}};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,95)){{yyInst(_inst,_other,gmlcost_2).gmlimage_num=2;if(yyfgreater(ds_map_find_value(argument0,"cost_amt2"),0)){yyInst(_inst,_other,gmlcost_2).gmlimage_num=5;};yyInst(_inst,_other,gmlcost_2).gmltext="";};}else {if(yyfgreater(real(ds_map_find_value(argument0,"cost_amt2")),0)){yyInst(_inst,_other,gmlcost_2).gmltext=yyfplus("+",__yy_gml_errCheck(yyInst(_inst,
_other,gmlcost_2).gmltext));};};yyInst(_inst,_other,gmlcreds).gmlicon=93;yyInst(_inst,_other,gmlcreds).gmltext=gml_Script_s_get_credit(_inst,_other);if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,92)){yyInst(_inst,_other,gmlcost_1).gmltext="+";};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,92)){yyInst(_inst,_other,gmlcost_2).gmltext="+";};if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,254)){yyInst(_inst,_other,gmlcost_1).gmltext=yyfplus(__yy_gml_errCheck(string(ds_map_find_value(argument0,
"cost_amt1"))),"x");};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,254)){yyInst(_inst,_other,gmlcost_2).gmltext=yyfplus(__yy_gml_errCheck(string(ds_map_find_value(argument0,"cost_amt2"))),"x");};if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,234)){{if(yyfgreater(ds_map_find_value(argument0,"cost_amt1"),0)){{yyInst(_inst,_other,gmlcost_1).gmltext="+";};}else {{yyInst(_inst,_other,gmlcost_1).gmltext="-";};};};};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,234)){{if(yyfgreater(ds_map_find_value(argument0,
"cost_amt2"),0)){{yyInst(_inst,_other,gmlcost_2).gmltext="+";};}else {{yyInst(_inst,_other,gmlcost_2).gmltext="-";};};};};if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,(-1))){{yyInst(_inst,_other,gmlcost_1).visible=false;yyInst(_inst,_other,gmlprof_1).visible=false;yyInst(_inst,_other,gmlmorale_1).visible=false;};};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,(-1))){{yyInst(_inst,_other,gmlcost_2).visible=false;yyInst(_inst,_other,gmlprof_2).visible=false;yyInst(_inst,_other,gmlmorale_2).visible=false;
};};yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlmsg).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlcost_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),
1);yyInst(_inst,_other,gmlcost_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlcreds).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlprof_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),2);yyInst(_inst,_other,gmlprof_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),2);yyInst(_inst,_other,gmlmorale_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),
2);yyInst(_inst,_other,gmlmorale_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),2);if(yyfequal(gmltitle_txt,"")){yyInst(_inst,_other,gmltitle).visible=false;};if(yyfequal(gmlbtn_txt1,"")){{yyInst(_inst,_other,gmlbtn_1).visible=false;yyInst(_inst,_other,gmlbtn_2).x=360;};};if(yyfequal(gmlbtn_txt2,"")){{yyInst(_inst,_other,gmlbtn_2).visible=false;yyInst(_inst,_other,gmlbtn_1).x=360;};};if(yyfequal(gmlcost_txt1,"")){yyInst(_inst,_other,gmlcost_1).visible=false;};if(yyfequal(gmlcost_txt2,
"")){yyInst(_inst,_other,gmlcost_2).visible=false;};gml_Script_s_load_profile_uni(_inst,_other,gmlprof_1);gml_Script_s_load_profile_uni(_inst,_other,gmlprof_2);}}function gml_GlobalScript_s_choose_dilemma(_inst,_other){(_inst.gmls_choose_dilemma=__yy_method(_inst,gml_Script_s_choose_dilemma));(_inst.gmls_extract_dilemma_from_pool=__yy_method(_inst,gml_Script_s_extract_dilemma_from_pool));(_inst.gmls_add_to_choose_dilemma_list=__yy_method(_inst,gml_Script_s_add_to_choose_dilemma_list));(_inst.gmls_reject_dilemma_not_enough_RC=__yy_method(_inst,
gml_Script_s_reject_dilemma_not_enough_RC));}function gml_Script_s_choose_dilemma(_inst,_other,argument0){{{var __yy__v602=GetWithArray(97);for(var __yy__v603 in __yy__v602){if(!__yy__v602.hasOwnProperty(__yy__v603))continue;var __yy__v604=__yy__v602[__yy__v603];{ds_list_shuffle(__yy__v604.gmldilemma_tags);var gmlres=gml_Script_s_extract_dilemma_from_pool(__yy__v604,_inst,argument0,true);if(yyfnotequal(gmlres,"")){{gml_Script_slog(__yy__v604,_inst,yyfplus(yyfplus("s_choose_dilemma.1: Existing list [",__yy_gml_errCheck(string(gmlres))),
"]"));return gmlres;};};gml_Script_slog(__yy__v604,_inst,"Repopulate dilemma_tags...");gml_Script_s_add_to_choose_dilemma_list(__yy__v604,_inst,__yy__v604.gmldilemma_tags,argument0,gml_Script_s_select_lang_file(__yy__v604,_inst));gml_Script_s_add_to_choose_dilemma_list(__yy__v604,_inst,__yy__v604.gmldilemma_tags,argument0,gml_Script_s_select_override_lang_file(__yy__v604,_inst));var gmlres=gml_Script_s_extract_dilemma_from_pool(__yy__v604,_inst,argument0,true);if(yyfnotequal(gmlres,"")){{gml_Script_slog(__yy__v604,
_inst,yyfplus(yyfplus("s_choose_dilemma.2: Fresh list [",__yy_gml_errCheck(string(gmlres))),"]"));return gmlres;};};var gmlres=gml_Script_s_extract_dilemma_from_pool(__yy__v604,_inst,argument0,false);if(yyfnotequal(gmlres,"")){{gml_Script_slog(__yy__v604,_inst,yyfplus(yyfplus("s_choose_dilemma.3: No constraints list [",__yy_gml_errCheck(string(gmlres))),"]"));return gmlres;};};gml_Script_slog(__yy__v604,_inst,"s_choose_dilemma.4: Failed");return "";}}};}}function gml_Script_s_extract_dilemma_from_pool(_inst,
_other,argument0,argument1){{var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(_inst.gmldilemma_tags)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{var gmlstr=ds_list_find_value(_inst.gmldilemma_tags,gmli);if(yyGetBool(string_count(argument0,gmlstr))){{ds_list_delete(_inst.gmldilemma_tags,gmli);if(yyGetBool(argument1)){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(gml_Script_s_reject_dilemma_not_enough_RC(_inst,
_other,gmlstr))){{continue;};};};};};};return gmlstr;};};}};return "";}}function gml_Script_s_add_to_choose_dilemma_list(_inst,_other,argument0,argument1,argument2){{var gmlfile=file_text_open_read(argument2);if(yyfequal(gmlfile,(-1))){{return;};};while(!yyGetBool(file_text_eof(gmlfile))){{var gmltxt=file_text_read_string(gmlfile);file_text_readln(gmlfile);if(yyfnotequal(string_pos("//",gmltxt),0)){{continue;};};if(yyGetBool(string_count(argument1,gmltxt))){{var gmlpos=string_pos(" ",gmltxt);gmltxt=string_copy(gmltxt,
1,yyfminus(__yy_gml_errCheck(gmlpos),1));if(yyfequal(ds_list_find_index(argument0,gmltxt),(-1))){{ds_list_add(argument0,gmltxt);gml_Script_slog(_inst,_other,gmltxt);};};};};}};file_text_close(gmlfile);}}function gml_Script_s_reject_dilemma_not_enough_RC(_inst,_other,argument0){{var gmlmsg=gml_Script_s_str(_inst,_other,argument0);if(yyGetBool(string_count("-choice_FocusRC",gmlmsg))){{var gmlbonus=gml_Script_s_str_real(_inst,_other,"choice_FocusRC_bonus");if(yyfequal(gml_Script_can_fit_recruitment_credits(_inst,
_other,gmlbonus),false)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_reject_dilemma_not_enough_RC rejected[",__yy_gml_errCheck(argument0)),"]"));return true;};};};};return false;}}function gml_GlobalScript_s_dilemma_choice_1(_inst,_other){(_inst.gmls_dilemma_choice_1=__yy_method(_inst,gml_Script_s_dilemma_choice_1));}function gml_Script_s_dilemma_choice_1(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_dilemma_choice(_inst,_other,1);}}function gml_GlobalScript_s_dilemma_choice_2(_inst,
_other){(_inst.gmls_dilemma_choice_2=__yy_method(_inst,gml_Script_s_dilemma_choice_2));}function gml_Script_s_dilemma_choice_2(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_dilemma_choice(_inst,_other,2);}}function gml_GlobalScript_s_dilemma_choice(_inst,_other,argument0){(_inst.gmls_dilemma_choice=__yy_method(_inst,gml_Script_s_dilemma_choice));(_inst.gmls_cut_player_end=__yy_method(_inst,gml_Script_s_cut_player_end));(_inst.gmls_cut_player_end_gpa=__yy_method(_inst,gml_Script_s_cut_player_end_gpa));
(_inst.gmls_cut_player_end_toxic=__yy_method(_inst,gml_Script_s_cut_player_end_toxic));(_inst.gmls_cut_player_end_party=__yy_method(_inst,gml_Script_s_cut_player_end_party));(_inst.gmls_cut_player_end_toxic_max=__yy_method(_inst,gml_Script_s_cut_player_end_toxic_max));(_inst.gmls_cut_player_end_party_max=__yy_method(_inst,gml_Script_s_cut_player_end_party_max));(_inst.gmls_dilemma_morecc_store=__yy_method(_inst,gml_Script_s_dilemma_morecc_store));(_inst.gmls_dilemma_morecc_back=__yy_method(_inst,
gml_Script_s_dilemma_morecc_back));(_inst.gmls_dilemma_end=__yy_method(_inst,gml_Script_s_dilemma_end));(_inst.gmls_dilemma_college_check_chained=__yy_method(_inst,gml_Script_s_dilemma_college_check_chained));}function gml_Script_s_dilemma_choice(_inst,_other,argument0){{var gmlbtn=string(argument0);{var __yy__v605=GetWithArray(97);for(var __yy__v606 in __yy__v605){if(!__yy__v605.hasOwnProperty(__yy__v606))continue;var __yy__v607=__yy__v605[__yy__v606];{gml_Script_slog(__yy__v607,_inst,yyfplus(yyfplus(yyfplus(yyfplus("s_dilemma_choice [",
__yy_gml_errCheck(string(gmlbtn))),"]::["),__yy_gml_errCheck(string(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)))))),"]"));var ___sw252___=ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)));var ___swc253___=-1;if(yyCompareVal(___sw252___,"spr_xp",g_GMLMathEpsilon,false)==0){___swc253___=0;}else if(yyCompareVal(___sw252___,"spr_credit",g_GMLMathEpsilon,false)==0){___swc253___=1;}else if(yyCompareVal(___sw252___,"spr_attitude",
g_GMLMathEpsilon,false)==0){___swc253___=2;}else if(yyCompareVal(___sw252___,"spr_fans",g_GMLMathEpsilon,false)==0){___swc253___=3;}else if(yyCompareVal(___sw252___,"-1",g_GMLMathEpsilon,false)==0){___swc253___=4;}else if(yyCompareVal(___sw252___,"spr_nrg",g_GMLMathEpsilon,false)==0){___swc253___=5;}else if(yyCompareVal(___sw252___,"spr_gpa",g_GMLMathEpsilon,false)==0){___swc253___=6;}else if(yyCompareVal(___sw252___,"spr_credit_rec",g_GMLMathEpsilon,false)==0){___swc253___=7;}switch(___swc253___){case 0:{
var ___sw254___=ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)));var ___swc255___=-1;if(yyCompareVal(___sw254___,"team",g_GMLMathEpsilon,false)==0){___swc255___=0;}else if(yyCompareVal(___sw254___,"coaches",g_GMLMathEpsilon,false)==0){___swc255___=1;}else if(yyCompareVal(___sw254___,"qb_self",g_GMLMathEpsilon,false)==0){___swc255___=2;}switch(___swc255___){case 0:{var gmlamt=yyfdivide(__yy_gml_errCheck(real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",
__yy_gml_errCheck(gmlbtn))))),__yy_gml_errCheck(clamp(ds_list_size(__yy__v607.gmlroster),1,10)));gmlamt=round(gmlamt);gml_Script_slog(__yy__v607,_inst,yyfplus("XP gain per player = ",__yy_gml_errCheck(string(gmlamt))));var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v607.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v607.gmlroster,gmli);ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"xp_gain")),__yy_gml_errCheck(gmlamt))));}};break;}case 1:{var gmlamt=yyfdivide(__yy_gml_errCheck(real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))))),__yy_gml_errCheck(ds_list_size(__yy__v607.gmlstafflist)));gml_Script_slog(__yy__v607,_inst,yyfplus("XP gain per coach = ",__yy_gml_errCheck(string(gmlamt))));var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v607.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v607.gmlstafflist,gmli);ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(gmlamt))));}};break;}case 2:{var gmlpmap=gml_Script_s_get_qb_pmap(__yy__v607,_inst);ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_level")),50)))));break;}};gml_Script_s_dilemma_end(__yy__v607,
_inst);break;}case 1:{if(yyfless(yyfplus(__yy_gml_errCheck(__yy__v607.gmlcoach_credit),__yy_gml_errCheck(real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))),0)){{var gmluseMoraleInsteadOfCC=true;if((yyGetBool(gml_Script_s_is_co_mode(__yy__v607,_inst)))&&(yyGetBool(string_pos("leaverescue",ds_map_find_value(__yy__v607.gmlmap_dilemma,"msg_key"))))){{gmluseMoraleInsteadOfCC=false;};};if(yyGetBool(gmluseMoraleInsteadOfCC)){{__yy__v607.gmlcoach_credit=0;var gmlold_morale=gml_Script_s_get_morale(__yy__v607,
_inst);gml_Script_s_adjust_team_morale(__yy__v607,_inst,(-5),(-10));gml_Script_s_meter_change(__yy__v607,_inst,4,gmlold_morale,(-4),"");};}else {{var ___sw256___=g_pBuiltIn.get_os_type();var ___swc257___=-1;if(yyCompareVal(___sw256___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw256___,3,g_GMLMathEpsilon,false)==0){___swc257___=0;}switch(___swc257___){case 0:{{gml_Script_s_create_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"ui_News"),gml_Script_s_str(__yy__v607,_inst,"msg_NotEnoughCCStore"),
gml_Script_s_str(__yy__v607,_inst,"ui_Yes"),gml_Script_s_str(__yy__v607,_inst,"ui_No"),kgml_Script_s_dilemma_morecc_store,kgml_Script_s_dilemma_morecc_back,global.gmlc_background,1);break;};}default :{{gml_Script_s_create_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"ui_News"),gml_Script_s_str(__yy__v607,_inst,"msg_NotEnoughCC"),"",gml_Script_s_str(__yy__v607,_inst,"ui_Continue"),"",kgml_Script_s_dilemma_morecc_back,global.gmlc_background,1);break;};}};};};return;};};if(yyfequal(ds_map_find_value(__yy__v607.gmlmap_dilemma,
yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_DefendPlayer")){{__yy__v607.gmlcoach_credit=yyfplus(__yy__v607.gmlcoach_credit,real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))));gmlpmap=__yy__v607.gmlplayer_profile;var gmlold_att=ds_map_find_value(gmlpmap,"attitude");ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),5),1,100));gml_Script_s_meter_change(__yy__v607,_inst,5,gmlold_att,(-4),"");return;
};}else {{gml_Script_s_meter_change(__yy__v607,_inst,8,__yy__v607.gmlcoach_credit,(-4),"");__yy__v607.gmlcoach_credit=yyfplus(__yy__v607.gmlcoach_credit,real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))));return;};};gml_Script_s_dilemma_end(__yy__v607,_inst);break;}case 2:{var gmlpmap=(-4);var ___sw258___=ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)));var ___swc259___=-1;if(yyCompareVal(___sw258___,"team",g_GMLMathEpsilon,
false)==0){___swc259___=0;}else if(yyCompareVal(___sw258___,"coaches",g_GMLMathEpsilon,false)==0){___swc259___=1;}else if(yyCompareVal(___sw258___,"player",g_GMLMathEpsilon,false)==0){___swc259___=2;}switch(___swc259___){case 0:{gml_Script_s_meter_change(__yy__v607,_inst,4,gml_Script_s_get_morale(__yy__v607,_inst),(-4),"");var gmlamt=real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))));gml_Script_s_adjust_team_morale(__yy__v607,_inst,gmlamt,gmlamt);break;}
case 1:{if(yyGetBool(yyInst(_inst,_other,97).gmlplayer_profile)){{if(yyfequal(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_SideWithCoach")){ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"attitude")),__yy_gml_errCheck(real(__yy_gml_errCheck(-__yy_gml_errCheck(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))))),
1,100));};var ___sw260___=gml_Script_s_is_offensive_player(__yy__v607,_inst,yyInst(_inst,_other,97).gmlplayer_profile);var ___swc261___=-1;if(yyCompareVal(___sw260___,true,g_GMLMathEpsilon,false)==0){___swc261___=0;}else if(yyCompareVal(___sw260___,false,g_GMLMathEpsilon,false)==0){___swc261___=1;}switch(___swc261___){case 0:{gmlpmap=gml_Script_s_get_staff(__yy__v607,_inst,102);break;}case 1:{gmlpmap=gml_Script_s_get_staff(__yy__v607,_inst,101);break;}};};};if(yyfequal(gmlpmap,(-4))){{gmlpmap=gml_Script_s_get_random_coach(__yy__v607,
_inst);};};yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;var gmlold_amount=ds_map_find_value(gmlpmap,"attitude");ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))),1,100));gml_Script_s_meter_change(__yy__v607,_inst,5,gmlold_amount,(-4),"");break;}case 2:{if(yyfequal(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),
"choice_SideWithPlayer")){{var gmlsmap=gml_Script_s_get_staff(__yy__v607,_inst,101);if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v607,_inst,__yy__v607.gmlplayer_profile))){gmlsmap=gml_Script_s_get_staff(__yy__v607,_inst,102);};ds_map_set(gmlsmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlsmap,"attitude")),__yy_gml_errCheck(real(__yy_gml_errCheck(-__yy_gml_errCheck(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))))),1,100));};
}else {if(yyfequal(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_RestYes")){{ds_map_set(__yy__v607.gmlplayer_profile,"resting",1);};};};gmlpmap=__yy__v607.gmlplayer_profile;var gmlold_amount=ds_map_find_value(gmlpmap,"attitude");ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))),1,
100));gml_Script_s_meter_change(__yy__v607,_inst,5,gmlold_amount,(-4),"");break;}};break;}case 3:{gml_Script_s_meter_change(__yy__v607,_inst,1,__yy__v607.gmlfans,(-4),"");__yy__v607.gmlfans=clamp(yyfplus(__yy_gml_errCheck(__yy__v607.gmlfans),__yy_gml_errCheck(real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))),1,100);break;}case 4:{if(yyfequal(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_CutPlayer")){
{if(yyGetBool(string_count("gpa",ds_map_find_value(__yy__v607.gmlmap_dilemma,"msg_key")))){{__yy__v607.gmlmsg=gml_Script_s_parse_player_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"news_playerleaves_gpa_norescue"),__yy__v607.gmlplayer_profile);gml_Script_s_create_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"ui_News"),__yy__v607.gmlmsg,gml_Script_s_str(__yy__v607,_inst,"ui_Continue"),"",kgml_Script_s_cut_player_end_gpa,"",global.gmlc_background,1);};}else {if(yyGetBool(string_count("toxic",
ds_map_find_value(__yy__v607.gmlmap_dilemma,"msg_key")))){{__yy__v607.gmlmsg=gml_Script_s_parse_player_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"news_playerleaves_toxic_norescue"),__yy__v607.gmlplayer_profile);gml_Script_s_create_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"ui_News"),__yy__v607.gmlmsg,gml_Script_s_str(__yy__v607,_inst,"ui_Continue"),"",kgml_Script_s_cut_player_end_toxic,"",global.gmlc_background,1);};}else {if(yyGetBool(string_count("party",ds_map_find_value(__yy__v607.gmlmap_dilemma,
"msg_key")))){{__yy__v607.gmlmsg=gml_Script_s_parse_player_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"news_playerleaves_party_norescue"),__yy__v607.gmlplayer_profile);gml_Script_s_create_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"ui_News"),__yy__v607.gmlmsg,gml_Script_s_str(__yy__v607,_inst,"ui_Continue"),"",kgml_Script_s_cut_player_end_party,"",global.gmlc_background,1);};}else {{__yy__v607.gmlmsg=gml_Script_s_parse_player_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,
_inst,"news_playerleaves_gpa_norescue"),__yy__v607.gmlplayer_profile);gml_Script_s_create_message(__yy__v607,_inst,gml_Script_s_str(__yy__v607,_inst,"ui_News"),__yy__v607.gmlmsg,gml_Script_s_str(__yy__v607,_inst,"ui_Continue"),"",kgml_Script_s_cut_player_end,"",global.gmlc_background,1);};};};};return;};}else {{var gmlamt=real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))));var gmlresult=gml_Script_s_str(__yy__v607,_inst,"ui_Correct");if(yyfless(gmlamt,0)){
gmlresult=gml_Script_s_str(__yy__v607,_inst,"ui_Wrong");};gml_Script_s_meter_change(__yy__v607,_inst,1,__yy__v607.gmlfans,(-4),yyfplus(__yy_gml_errCheck(gmlresult),"!"));__yy__v607.gmlfans=clamp(yyfplus(__yy_gml_errCheck(__yy__v607.gmlfans),__yy_gml_errCheck(gmlamt)),1,100);};};break;}case 5:{yyInst(_inst,_other,97).gmlqb_nrg=yyfplus(yyInst(_inst,_other,97).gmlqb_nrg,real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))));gml_Script_s_sound(__yy__v607,_inst,
19);gml_Script_s_dilemma_end(__yy__v607,_inst);break;}case 6:{var gmlgrade_boost=real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))));var ___sw262___=ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)));var ___swc263___=-1;if(yyCompareVal(___sw262___,"team",g_GMLMathEpsilon,false)==0){___swc263___=0;}else if(yyCompareVal(___sw262___,"player",g_GMLMathEpsilon,false)==0){___swc263___=1;}switch(___swc263___){case 0:{{var gmli=0;
for(;yyfless(gmli,ds_list_size(__yy__v607.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_s_add_percent_grade(__yy__v607,_inst,ds_list_find_value(__yy__v607.gmlroster,gmli),gmlgrade_boost);}};gml_Script_s_dilemma_end(__yy__v607,_inst);break;};}case 1:{{gmlpmap=__yy__v607.gmlplayer_profile;if(yyfgreater(gmlgrade_boost,0)){{gml_Script_s_add_percent_grade(__yy__v607,_inst,gmlpmap,gmlgrade_boost);var gmlold_morale=gml_Script_s_get_morale(__yy__v607,
_inst);gml_Script_s_adjust_team_morale(__yy__v607,_inst,(-5),(-10));gml_Script_s_meter_change(__yy__v607,_inst,4,gmlold_morale,(-4),gml_Script_s_str(__yy__v607,_inst,"choice_GPAUpResultMsg"));return;};}else {{gml_Script_s_add_percent_grade(__yy__v607,_inst,gmlpmap,gmlgrade_boost);gml_Script_s_dilemma_end(__yy__v607,_inst);return;};};break;};}};break;}case 7:{{var gmlold_rc=yyInst(_inst,_other,97).gmlrecruitment_credits;gml_Script_s_meter_change(__yy__v607,_inst,10,gmlold_rc,(-4),"");gml_Script_recruitment_credits_add(__yy__v607,
_inst,real(ds_map_find_value(__yy__v607.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))));break;};}};}}};}}function gml_Script_s_cut_player_end(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_cut"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_gpa(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,
_other,yyInst(_inst,_other,97).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_lowGPANoRescue"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_toxic(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_toxicNoRescue"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_party(_inst,
_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_partyNoRescue"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_toxic_max(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_maxToxic"));
gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_party_max(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_maxParty"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_dilemma_morecc_store(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v608=GetWithArray(97);for(var __yy__v609 in __yy__v608){if(!__yy__v608.hasOwnProperty(__yy__v609))continue;
var __yy__v610=__yy__v608[__yy__v609];{__yy__v610.gmlstore_to_dilemma=true;gml_Script_s_open_store(__yy__v610,_inst);}}};}}function gml_Script_s_dilemma_morecc_back(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v611=GetWithArray(97);for(var __yy__v612 in __yy__v611){if(!__yy__v611.hasOwnProperty(__yy__v612))continue;var __yy__v613=__yy__v611[__yy__v612];{gml_Script_s_create_dilemma(__yy__v613,_inst,__yy__v613.gmlmap_dilemma);}}};}}function gml_Script_s_dilemma_end(_inst,_other){{yyInst(_inst,
_other,97).gmlprofile_back_to=(-1);gml_Script_slog(_inst,_other,"s_dilemma_end");if(yyGetBool(gml_Script_s_dilemma_college_check_chained(_inst,_other))){{return;};};gml_Script_s_play(_inst,_other,1);}}function gml_Script_s_dilemma_college_check_chained(_inst,_other){{yyInst(_inst,_other,97).gmlprofile_back_to=(-1);if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlstage,2)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlstage,1)))))){
{yyInst(_inst,_other,97).gmlprematch_dilemma_shown_count=yyfplus(yyInst(_inst,_other,97).gmlprematch_dilemma_shown_count,1);var gmlr=random_range(0,1);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_dilemma_college_check_chained - Checking for chained dilemma. count:",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlprematch_dilemma_shown_count)))," r:"),__yy_gml_errCheck(string(gmlr)))," "));if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlprematch_dilemma_shown_count,1)))&&(yyGetBool(yyfless(gmlr,
0.5)))){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_do_prematch_dilemma(_inst,_other,true);return true;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlprematch_dilemma_shown_count,2)))&&(yyGetBool(yyfless(gmlr,0.05)))){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_do_prematch_dilemma(_inst,_other,true);return true;};};};}else {{gml_Script_slog(_inst,_other,"s_dilemma_college_check_chained ignored");};};return false;}}function gml_GlobalScript_s_convert_string_to_sprite(_inst,_other){
(_inst.gmls_convert_string_to_sprite=__yy_method(_inst,gml_Script_s_convert_string_to_sprite));}function gml_Script_s_convert_string_to_sprite(_inst,_other,argument0){{var ___sw266___=argument0;var ___swc267___=-1;if(yyCompareVal(___sw266___,"spr_attitude",g_GMLMathEpsilon,false)==0){___swc267___=0;}else if(yyCompareVal(___sw266___,"spr_star",g_GMLMathEpsilon,false)==0){___swc267___=1;}else if(yyCompareVal(___sw266___,"spr_credit",g_GMLMathEpsilon,false)==0){___swc267___=2;}else if(yyCompareVal(___sw266___,
"spr_fans",g_GMLMathEpsilon,false)==0){___swc267___=3;}else if(yyCompareVal(___sw266___,"spr_xp",g_GMLMathEpsilon,false)==0){___swc267___=4;}else if(yyCompareVal(___sw266___,"spr_nrg",g_GMLMathEpsilon,false)==0){___swc267___=5;}else if(yyCompareVal(___sw266___,"spr_gpa",g_GMLMathEpsilon,false)==0){___swc267___=6;}else if(yyCompareVal(___sw266___,"spr_credit_rec",g_GMLMathEpsilon,false)==0){___swc267___=7;}switch(___swc267___){case 0:{return 95;break;}case 1:{return 89;break;}case 2:{return 93;break;}case 3:{
return 110;break;}case 4:{return 92;break;}case 5:{return 254;break;}case 6:{return 234;break;}case 7:{return 0;break;}};return(-1);}}function gml_GlobalScript_s_sort_list_by_column(_inst,_other){(_inst.gmls_sort_maplist_by_numeric_field=__yy_method(_inst,gml_Script_s_sort_maplist_by_numeric_field));}function gml_Script_s_sort_maplist_by_numeric_field(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other,"s_sort_list_by_column");var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(argument0),
0)){{var gmlbestmap=(-1);var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(argument0,gmli);if(!yyGetBool(gmlbestmap)){gmlbestmap=gmlmap;}else {if(yyGetBool(argument2)){{if(yyfless(real(ds_map_find_value(gmlmap,argument1)),real(ds_map_find_value(gmlbestmap,argument1)))){gmlbestmap=gmlmap;};};}else {{if(yyfgreater(real(ds_map_find_value(gmlmap,argument1)),real(ds_map_find_value(gmlbestmap,
argument1)))){gmlbestmap=gmlmap;};};};};}};ds_list_add(gmlsortedlist,gmlbestmap);var gmli=ds_list_find_index(argument0,gmlbestmap);ds_list_delete(argument0,gmli);}};ds_list_destroy(argument0);argument0=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_check_draft(_inst,_other){(_inst.gmls_check_draft=__yy_method(_inst,gml_Script_s_check_draft));}function gml_Script_s_check_draft(_inst,_other){{{var __yy__v614=GetWithArray(97);for(var __yy__v615 in __yy__v614){if(!__yy__v614.hasOwnProperty(__yy__v615))continue;
var __yy__v616=__yy__v614[__yy__v615];{if(yyGetBool(__yy__v616.gmlqb_mode)){{gml_Script_s_check_draft_QB(__yy__v616,_inst);return;};};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v616,_inst))){{gml_Script_s_check_draft_CO(__yy__v616,_inst);return;};};gml_Script_slog(__yy__v616,_inst,"s_check_draft");gml_Script_slog(__yy__v616,_inst,yyfplus("Week = ",__yy_gml_errCheck(string(__yy__v616.gmlweek))));gml_Script_slog(__yy__v616,_inst,yyfplus("Draft = ",__yy_gml_errCheck(string(__yy__v616.gmldraft_round))));
if(yyfgreater(__yy__v616.gmlintro,0)){{};}else {if(yyfequal(__yy__v616.gmlweek,1)){{if(yyGetBool(ds_list_size(yyInst(_inst,_other,97).gmlfreeagentlist))){{__yy__v616.gmlstage=1;room_goto(7);return;};}else {{var ___sw272___=__yy__v616.gmldraft_round;var ___swc273___=-1;if(yyCompareVal(___sw272___,1,g_GMLMathEpsilon,false)==0){___swc273___=0;}else if(yyCompareVal(___sw272___,2,g_GMLMathEpsilon,false)==0){___swc273___=1;}else if(yyCompareVal(___sw272___,3,g_GMLMathEpsilon,false)==0){___swc273___=2;}switch(___swc273___){
case 0:{if(yyfless(ds_list_size(__yy__v616.gmldraftlist),50)){gml_Script_s_create_draftlist(__yy__v616,_inst);};room_goto(5);return;break;}case 1:{room_goto(5);return;break;}case 2:{room_goto(5);return;break;}};};};};}else {if((yyGetBool(yyfgreaterequal(ds_list_size(yyInst(_inst,_other,97).gmlroster),12)))||(yyGetBool((yyGetBool(yyfless(yyInst(_inst,_other,97).gmlsalary_cap,200)))&&(yyGetBool(yyfgreaterequal(ds_list_size(yyInst(_inst,_other,97).gmlroster),10)))))){{gml_Script_s_clear_freeagents(__yy__v616,
_inst);};}else {if((yyGetBool(yyfless(__yy__v616.gmlweek,8)))&&(yyGetBool(!yyGetBool(__yy__v616.gmloffers_done)))){{__yy__v616.gmloffers_done=true;if((yyGetBool(ds_list_size(yyInst(_inst,_other,97).gmlfreeagentlist)))||(yyGetBool(ds_list_size(yyInst(_inst,_other,97).gmltradelist)))){{room_goto(7);return;};};var ___sw274___=irandom(2);var ___swc275___=-1;if(yyCompareVal(___sw274___,0,g_GMLMathEpsilon,false)==0){___swc275___=0;}else if(yyCompareVal(___sw274___,1,g_GMLMathEpsilon,false)==0){___swc275___=1;
}else if(yyCompareVal(___sw274___,2,g_GMLMathEpsilon,false)==0){___swc275___=2;}switch(___swc275___){case 0:{gml_Script_s_create_freeagentlist(__yy__v616,_inst,1);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlfreeagentlist,0);if(yyGetBool(gmlpmap)){{if((yyGetBool(gml_Script_s_position_already_on_roster(__yy__v616,_inst,ds_map_find_value(gmlpmap,"position"))))||(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),__yy_gml_errCheck(gml_Script_s_get_salary_total(__yy__v616,
_inst))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlboost_salary_cap)))))){{gml_Script_s_clear_freeagents(__yy__v616,_inst);break;};};yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;var gmlstaffmap=(-4);var gmlmsg=gml_Script_s_str(__yy__v616,_inst,"msg_FreeAgentOffer");if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v616,_inst))){{gmlmsg=gml_Script_s_str(__yy__v616,_inst,"msg_FreeAgentOffer_Rookie");
if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v616,_inst,gmlpmap))){gmlstaffmap=gml_Script_s_get_staff(__yy__v616,_inst,102);}else {gmlstaffmap=gml_Script_s_get_staff(__yy__v616,_inst,101);};};};gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v616,_inst,ds_map_find_value(gmlpmap,"position")));
if(yyGetBool(gmlstaffmap)){gmlmsg=string_replace(gmlmsg,"$coachname",gml_Script_s_get_player_name(__yy__v616,_inst,gmlstaffmap,true));};gml_Script_s_create_message(__yy__v616,_inst,gml_Script_s_str(__yy__v616,_inst,"ui_FreeAgent"),gmlmsg,gml_Script_s_str(__yy__v616,_inst,"ui_Continue"),"",kgml_Script_btn_click_PlayerProfile_Back,"",global.gmlc_background,1);gml_Script_s_savegame(__yy__v616,_inst);return;};};break;}case 1:{gml_Script_s_create_tradelist(__yy__v616,_inst,1);var gmlpmap=ds_list_find_value(yyInst(_inst,
_other,97).gmltradelist,0);if(yyGetBool(gmlpmap)){{if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),__yy_gml_errCheck(gml_Script_s_get_salary_total(__yy__v616,_inst))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlboost_salary_cap)))){{gml_Script_s_clear_freeagents(__yy__v616,_inst);break;};};yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;var gmlrating=clamp(yyfminus(__yy_gml_errCheck(gml_Script_s_get_player_rating(__yy__v616,
_inst,gmlpmap)),4),1,10);if(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)){gmlrating=1;};var gmlpick=gml_Script_s_get_trade_value_by_rating(__yy__v616,_inst,gmlrating);if(yyfgreater(gml_Script_s_remaining_picks_by_round(__yy__v616,_inst,gmlpick),0)){{ds_map_set(gmlpmap,"intrade_pick",gmlpick);gml_Script_s_savegame(__yy__v616,_inst);var gmlmsg=gml_Script_s_str(__yy__v616,_inst,"msg_TradeOffer");gmlmsg=string_replace(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v616,_inst,ds_map_find_value(gmlpmap,
"teamid")));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v616,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$num",string(gmlpick));gml_Script_s_create_message(__yy__v616,_inst,gml_Script_s_str(__yy__v616,_inst,"ui_TradeOffer"),gmlmsg,gml_Script_s_str(__yy__v616,
_inst,"ui_Continue"),"",kgml_Script_btn_click_PlayerProfile_Back,"",global.gmlc_background,1);return;};}else {{gml_Script_s_clear_freeagents(__yy__v616,_inst);break;};};};};break;}case 2:{var gmlsize=ds_list_size(yyInst(_inst,_other,97).gmlroster);if(yyfless(gmlsize,4)){break;};var gmlpmap=gml_Script_s_get_random_player(__yy__v616,_inst,false);if(yyGetBool(gmlpmap)){{if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"age"),31)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"signed_year"),yyInst(_inst,
_other,97).gmlyear)))||(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)))){{break;};};yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;var gmlrating=clamp(yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(__yy__v616,_inst,gmlpmap)),4),1,10);ds_map_set(gmlpmap,"outtrade_pick",gml_Script_s_get_trade_value_by_rating(__yy__v616,_inst,gmlrating));gml_Script_s_savegame(__yy__v616,_inst);var gmltmap=gml_Script_s_get_offer_team(__yy__v616,_inst,gmlpmap);var gmlmsg=gml_Script_s_str(__yy__v616,
_inst,"msg_TradeRequest");gmlmsg=string_replace(gmlmsg,"$teamname",ds_map_find_value(gmltmap,"name"));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v616,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$num",string(ds_map_find_value(gmlpmap,"outtrade_pick")));
gml_Script_s_create_message(__yy__v616,_inst,gml_Script_s_str(__yy__v616,_inst,"ui_TradeRequest"),gmlmsg,gml_Script_s_str(__yy__v616,_inst,"ui_Continue"),"",kgml_Script_btn_click_PlayerProfile_Back,"",global.gmlc_background,1);return;};};break;}};};};};};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlprematch_dilemma_done)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_bye_week(__yy__v616,_inst,yyInst(_inst,_other,97).gmlweek))))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,
_other,97).gmllast_week_regular)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))){{if(yyGetBool(gml_Script_s_do_prematch_dilemma(__yy__v616,_inst,false))){return;};};};yyInst(_inst,_other,97).gmlprematch_dilemma_done=true;gml_Script_s_savegame(__yy__v616,_inst);gml_Script_s_play(__yy__v616,_inst,1);}}};}}function gml_GlobalScript_s_create_draftlist(_inst,_other){(_inst.gmls_create_draftlist=__yy_method(_inst,gml_Script_s_create_draftlist));}function gml_Script_s_create_draftlist(_inst,
_other){{gml_Script_slog(_inst,_other,"s_create_draftlist");{var __yy__v617=GetWithArray(97);for(var __yy__v618 in __yy__v617){if(!__yy__v617.hasOwnProperty(__yy__v618))continue;var __yy__v619=__yy__v617[__yy__v618];{__yy__v619.gmlinterviews=10;var ___sw278___=__yy__v619.gmlop_difficulty;var ___swc279___=-1;if(yyCompareVal(___sw278___,0,g_GMLMathEpsilon,false)==0){___swc279___=0;}else if(yyCompareVal(___sw278___,1,g_GMLMathEpsilon,false)==0){___swc279___=1;}else if(yyCompareVal(___sw278___,2,g_GMLMathEpsilon,
false)==0){___swc279___=2;}else if(yyCompareVal(___sw278___,3,g_GMLMathEpsilon,false)==0){___swc279___=3;}else if(yyCompareVal(___sw278___,4,g_GMLMathEpsilon,false)==0){___swc279___=4;}switch(___swc279___){case 0:{__yy__v619.gmlinterviews=yyfplus(10,__yy_gml_errCheck(round(yyfdivide(__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(__yy__v619.gmlsuppress_difficulty))),2))));break;}case 1:{__yy__v619.gmlinterviews=20;break;}case 2:{__yy__v619.gmlinterviews=15;break;}case 3:{__yy__v619.gmlinterviews=10;break;
}case 4:{__yy__v619.gmlinterviews=5;break;}};__yy__v619.gmlinterviews=yyfplus(__yy__v619.gmlinterviews,yyftime(__yy_gml_errCheck(gml_Script_s_count_trait_scout(__yy__v619,_inst)),3));var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v619.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v619.gmldraftlist,gmli));ds_list_set(__yy__v619.gmldraftlist,gmli,(-1));}};ds_list_clear(__yy__v619.gmldraftlist);
var gmlwins=0;var gmllosses=0;var gmlties=0;var gmlmap=ds_list_find_value(yyInst(_inst,_other,97).gmlhistory,yyfminus(__yy_gml_errCheck(ds_list_size(yyInst(_inst,_other,97).gmlhistory)),1));if((yyGetBool(gmlmap))&&(yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"wins")))){{gmlwins=real(ds_map_find_value(gmlmap,"wins"));gmllosses=real(ds_map_find_value(gmlmap,"losses"));gmlties=real(ds_map_find_value(gmlmap,"ties"));};};var gmlstr=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins)),
"-"),__yy_gml_errCheck(string(gmllosses))),"-"),__yy_gml_errCheck(string(gmlties)));gml_Script_slog(__yy__v619,_inst,gmlstr);var gmlnum_games=yyfplus(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(gmllosses)),__yy_gml_errCheck(gmlties));var gmlprc=0;if(yyfgreater(gmlnum_games,0)){gmlprc=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties),0.5)))),__yy_gml_errCheck(gmlnum_games));};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v619.gmlhistory));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v619.gmlhistory,gmli);if((yyGetBool(gmlmap))&&(yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"year")),yyfminus(__yy_gml_errCheck(__yy__v619.gmlyear),1))))){{if(yyfnotequal(ds_map_find_value(gmlmap,"tla"),ds_map_find_value(__yy__v619.gmlmyteam,"tla"))){{gmlprc=yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v619.gmlmyteam,
"offense")),__yy_gml_errCheck(ds_map_find_value(__yy__v619.gmlmyteam,"defense")))),0.05);};};break;};};}};var gmli=1;for(;yyflessequal(gmli,50);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmax_skill=lerp(8.5,5.5,gmlprc);if(yyfequal(__yy__v619.gmlyear,2)){gmlmax_skill=8;};if(yyfless(gmli,5)){gmlmax_skill=8;};__yy__v619.gmlpos=yyfmod(__yy_gml_errCheck(gmli),10);__yy__v619.gmlpos=yyfplus(__yy__v619.gmlpos,1);if((yyGetBool(irandom(1)))&&(yyGetBool((yyGetBool(yyfequal(__yy__v619.gmlpos,
8)))||(yyGetBool(yyfequal(__yy__v619.gmlpos,9)))))){__yy__v619.gmlpos=irandom_range(1,10);};if(yyfequal(__yy__v619.gmlpos,10)){gmlmax_skill=yyftime(gmlmax_skill,random_range(0.5,0.8));};var gmlpmap=gml_Script_s_create_player(__yy__v619,_inst,__yy__v619.gmlpos,gml_Script_s_rookie_age_internal(__yy__v619,_inst),2,round(gmlmax_skill));if((yyGetBool(yyfequal(__yy__v619.gmlpos,1)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"strength"),4)))){{ds_map_set(gmlpmap,"strength",4);ds_map_set(gmlpmap,"salary",
gml_Script_s_get_new_salary(__yy__v619,_inst,gmlpmap));if(yyGetBool(gml_Script_s_is_co_mode(__yy__v619,_inst))){{ds_map_set(gmlpmap,"rc_cost",gml_Script_s_create_player_get_RC_cost(__yy__v619,_inst,gmlpmap));};};};};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v619,_inst))){{if(yyfless(ds_map_find_value(gmlpmap,"percent_grade"),79)){{ds_map_set(gmlpmap,"percent_grade",79);gml_Script_s_refresh_suspended(__yy__v619,_inst,gmlpmap,false);};};};};ds_list_add(__yy__v619.gmldraftlist,gmlpmap);}};__yy__v619.gmldraftlist=gml_Script_s_sort_players(__yy__v619,
_inst,__yy__v619.gmldraftlist,2);gml_Script_s_savegame(__yy__v619,_inst);}}};}}function gml_GlobalScript_s_sound_audience_tck(_inst,_other){(_inst.gmls_sound_audience_tck=__yy_method(_inst,gml_Script_s_sound_audience_tck));}function gml_Script_s_sound_audience_tck(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice))){return;};var gmlsnd=audio_play_sound(0,1,false);audio_sound_gain(gmlsnd,
0.5,0);}}function gml_GlobalScript_s_create_freeagentlist(_inst,_other){(_inst.gmls_create_freeagentlist=__yy_method(_inst,gml_Script_s_create_freeagentlist));}function gml_Script_s_create_freeagentlist(_inst,_other,argument0){{{var __yy__v620=GetWithArray(97);for(var __yy__v621 in __yy__v620){if(!__yy__v620.hasOwnProperty(__yy__v621))continue;var __yy__v622=__yy__v620[__yy__v621];{while(yyfless(ds_list_size(__yy__v622.gmlfreeagentlist),argument0)){ds_list_add(__yy__v622.gmlfreeagentlist,gml_Script_s_create_freeagent(__yy__v622,
_inst))};__yy__v622.gmlfreeagentlist=gml_Script_s_sort_players(__yy__v622,_inst,__yy__v622.gmlfreeagentlist,2);}}};}}function gml_GlobalScript_s_create_freeagent(_inst,_other){(_inst.gmls_create_freeagent=__yy_method(_inst,gml_Script_s_create_freeagent));}function gml_Script_s_create_freeagent(_inst,_other){{var ___sw282___=irandom(2);var ___swc283___=-1;if(yyCompareVal(___sw282___,0,g_GMLMathEpsilon,false)==0){___swc283___=0;}else if(yyCompareVal(___sw282___,1,g_GMLMathEpsilon,false)==0){___swc283___=1;
}else if(yyCompareVal(___sw282___,2,g_GMLMathEpsilon,false)==0){___swc283___=2;}switch(___swc283___){case 0:{var gmlpmap=gml_Script_s_create_player(_inst,_other,gml_Script_s_get_required_position(_inst,_other,false),gml_Script_s_rookie_age_internal(_inst,_other),1,2);ds_map_set(gmlpmap,"attitude",irandom_range(15,90));return gmlpmap;break;}case 1:{var gmlpmap=gml_Script_s_create_player(_inst,_other,gml_Script_s_get_required_position(_inst,_other,false),irandom_range(33,40),1,3);ds_map_set(gmlpmap,"stamina",
1);ds_map_set(gmlpmap,"max_stamina",1);return gmlpmap;break;}case 2:{var gmlpmap=gml_Script_s_create_player(_inst,_other,gml_Script_s_get_required_position(_inst,_other,false),0,1,4);ds_map_set(gmlpmap,"attitude",irandom_range(5,15));return gmlpmap;break;}};}}function gml_GlobalScript_s_create_tradelist(_inst,_other,argument0){(_inst.gmls_create_tradelist=__yy_method(_inst,gml_Script_s_create_tradelist));}function gml_Script_s_create_tradelist(_inst,_other,argument0){{{var __yy__v623=GetWithArray(97);for(var __yy__v624 in __yy__v623){
if(!__yy__v623.hasOwnProperty(__yy__v624))continue;var __yy__v625=__yy__v623[__yy__v624];{while(yyfless(ds_list_size(__yy__v625.gmltradelist),argument0)){{var gmlpmap=gml_Script_s_create_player(__yy__v625,_inst,gml_Script_s_get_required_position(__yy__v625,_inst,false),irandom_range(yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v625,_inst)),1),40),1,10);do {{ds_map_set(gmlpmap,"teamid",irandom(31));}}while(!(yyfnotequal(ds_map_find_value(gmlpmap,"teamid"),yyInst(_inst,_other,97).gmlmyteam_id)));
ds_list_add(__yy__v625.gmltradelist,gmlpmap);}};__yy__v625.gmltradelist=gml_Script_s_sort_players(__yy__v625,_inst,__yy__v625.gmltradelist,2);}}};}}function gml_GlobalScript_s_create_storelist(_inst,_other,argument0){(_inst.gmls_create_storelist=__yy_method(_inst,gml_Script_s_create_storelist));}function gml_Script_s_create_storelist(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_create_storelist");var gmlrefresh=argument0;{var __yy__v626=GetWithArray(97);for(var __yy__v627 in __yy__v626){if(!__yy__v626.hasOwnProperty(__yy__v627))continue;
var __yy__v628=__yy__v626[__yy__v627];{var gmlsize=ds_list_size(__yy__v628.gmlstorelist);if(yyfgreater(gmlrefresh,0)){{for(var __yy__v629=0,__yy__v630=yyGetInt32(gmlrefresh);__yy__v629<__yy__v630;__yy__v629++){{if(yyfgreater(gmlsize,0)){{var gmli=irandom(yyfminus(__yy_gml_errCheck(gmlsize),1));ds_map_destroy(ds_list_find_value(__yy__v628.gmlstorelist,gmli));ds_list_set(__yy__v628.gmlstorelist,gmli,(-1));ds_list_delete(__yy__v628.gmlstorelist,gmli);gmlsize=yyfminus(gmlsize,1);};};}};};};var gmll=0;for(;
yyfless(gmll,2);(g_yyPrePostObject__=gmll,gmll=(g_yyPrePostObject__ instanceof Long?gmll.add(1):++gmll),g_yyPrePostObject__)){{var gmli=1;for(;yyflessequal(gmli,10);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfless(gml_Script_s_count_players_by_position_store(__yy__v628,_inst,gmli),2)){{if(yyfequal(gmli,9)){continue;};var gmllower_rating=false;if((yyGetBool(gmlrefresh))||(yyGetBool(yyfequal(gmll,1)))){gmllower_rating=true;};ds_list_add(__yy__v628.gmlstorelist,
gml_Script_s_create_player_storelist(__yy__v628,_inst,gmli,gmllower_rating));};};}};}};gml_Script_slog(__yy__v628,_inst,yyfplus("Storelist size = ",__yy_gml_errCheck(string(ds_list_size(__yy__v628.gmlstorelist)))));__yy__v628.gmlstorelist=gml_Script_s_sort_hirelist(__yy__v628,_inst,__yy__v628.gmlstorelist);}}};}}function gml_GlobalScript_s_create_player_storelist(_inst,_other,argument0,argument1){(_inst.gmls_create_player_storelist=__yy_method(_inst,gml_Script_s_create_player_storelist));}function gml_Script_s_create_player_storelist(_inst,
_other,argument0,argument1){{gml_Script_slog(_inst,_other,"s_create_player_storelist");var gmlpos=argument0;var gmllower_rating=argument1;var gmlmax_rating=10;if(yyGetBool(gmllower_rating)){{gmlmax_rating=yyfminus(8,__yy_gml_errCheck(floor(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlweek),3))));if(yyfless(gmlmax_rating,4)){gmlmax_rating=4;};};};var gmlpmap=gml_Script_s_create_player(_inst,_other,gmlpos,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1),__yy_gml_errCheck(irandom(6))),
yyfminus(__yy_gml_errCheck(gmlmax_rating),2),gmlmax_rating);ds_map_set(gmlpmap,"attitude",irandom_range(50,100));ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),0.8)));var ___sw286___=yyInst(_inst,_other,97).gmlop_difficulty;var ___swc287___=-1;if(yyCompareVal(___sw286___,0,g_GMLMathEpsilon,false)==0){___swc287___=0;}else if(yyCompareVal(___sw286___,1,g_GMLMathEpsilon,false)==0){___swc287___=1;}else if(yyCompareVal(___sw286___,2,g_GMLMathEpsilon,false)==0){
___swc287___=2;}else if(yyCompareVal(___sw286___,3,g_GMLMathEpsilon,false)==0){___swc287___=3;}else if(yyCompareVal(___sw286___,4,g_GMLMathEpsilon,false)==0){___swc287___=4;}switch(___swc287___){case 0:{ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),1)));break;}case 1:{break;}case 2:{ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),0.9)));break;}case 3:{ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"salary")),1)));break;}case 4:{ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),1.1)));break;}};ds_map_set(gmlpmap,"creditcost",round(yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlpmap)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),0.5)))));ds_map_set(gmlpmap,"contract",3);if(yyGetBool(gmllower_rating)){ds_map_set(gmlpmap,"attitude",irandom_range(20,90));};return gmlpmap;}}function gml_GlobalScript_s_count_hires_by_position(_inst,
_other,argument0){(_inst.gmls_count_hires_by_position=__yy_method(_inst,gml_Script_s_count_hires_by_position));}function gml_Script_s_count_hires_by_position(_inst,_other,argument0){{{var __yy__v631=GetWithArray(97);for(var __yy__v632 in __yy__v631){if(!__yy__v631.hasOwnProperty(__yy__v632))continue;var __yy__v633=__yy__v631[__yy__v632];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v633.gmlhirelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v633.gmlhirelist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_GlobalScript_s_count_players_by_position_store(_inst,_other,argument0){(_inst.gmls_count_players_by_position_store=__yy_method(_inst,gml_Script_s_count_players_by_position_store));}function gml_Script_s_count_players_by_position_store(_inst,
_other,argument0){{{var __yy__v634=GetWithArray(97);for(var __yy__v635 in __yy__v634){if(!__yy__v634.hasOwnProperty(__yy__v635))continue;var __yy__v636=__yy__v634[__yy__v635];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v636.gmlstorelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v636.gmlstorelist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){(g_yyPrePostObject__=gmlcount,
gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_GlobalScript_s_get_hire_shortlist(_inst,_other,argument0){(_inst.gmls_get_hire_shortlist=__yy_method(_inst,gml_Script_s_get_hire_shortlist));}function gml_Script_s_get_hire_shortlist(_inst,_other,argument0){{{var __yy__v637=GetWithArray(97);for(var __yy__v638 in __yy__v637){if(!__yy__v637.hasOwnProperty(__yy__v638))continue;var __yy__v639=__yy__v637[__yy__v638];{var gmlshortlist=ds_list_create();
var gmlstaffpos=argument0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v639.gmlhirelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v639.gmlhirelist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),gmlstaffpos)){ds_list_add(gmlshortlist,gmlpmap);};}};return gmlshortlist;}}};}}function gml_GlobalScript_s_reset_draft_picks(_inst,_other){(_inst.gmls_reset_draft_picks=__yy_method(_inst,gml_Script_s_reset_draft_picks));
}function gml_Script_s_reset_draft_picks(_inst,_other){{{var __yy__v640=GetWithArray(97);for(var __yy__v641 in __yy__v640){if(!__yy__v640.hasOwnProperty(__yy__v641))continue;var __yy__v642=__yy__v640[__yy__v641];{__yy__v642.gmldraft_picks=__yy_gml_array_check(__yy__v642.gmldraft_picks,3005438198);__yy__v642.gmldraft_picks[__yy_gml_array_check_index_set(0)]=yyfplus(__yy__v642.gmldraft_picks[__yy_gml_array_check_index_set(0)],1);__yy__v642.gmldraft_picks[__yy_gml_array_check_index_set(1)]=yyfplus(__yy__v642.gmldraft_picks[__yy_gml_array_check_index_set(1)],
1);__yy__v642.gmldraft_picks[__yy_gml_array_check_index_set(2)]=yyfplus(__yy__v642.gmldraft_picks[__yy_gml_array_check_index_set(2)],1);gml_Script_s_savegame(__yy__v642,_inst);}}};}}function gml_GlobalScript_poki_btn_click_CoinBoost(_inst,_other){(_inst.gmlpoki_btn_click_CoinBoost=__yy_method(_inst,gml_Script_poki_btn_click_CoinBoost));(_inst.gmlpoki_CoinBoost_No=__yy_method(_inst,gml_Script_poki_CoinBoost_No));(_inst.gmlpoki_CoinBoost_Yes=__yy_method(_inst,gml_Script_poki_CoinBoost_Yes));}function gml_Script_poki_btn_click_CoinBoost(_inst,
_other){{gml_Script_slog(_inst,_other,"poki_btn_click_CoinBoost");gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"poki_CoinBoostMsg"),gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_poki_CoinBoost_No,kgml_Script_poki_CoinBoost_Yes,global.gmlc_background,1);}}function gml_Script_poki_CoinBoost_No(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);layer_set_visible(layer_get_id("Poki_Layer"),false);}}function gml_Script_poki_CoinBoost_Yes(_inst,
_other){{global.gmlpoki_done_post_match_reward=true;gml_Script_poki_CoinBoost_No(_inst,_other);gml_Script_poki_pause(_inst,_other);gml_Script_poki_rewarded_break(_inst,_other,kgml_Script__poki_rewarded_ad,"rewarded_break");}}function gml_GlobalScript_s_update_draft_page(_inst,_other){(_inst.gmls_update_draft_page=__yy_method(_inst,gml_Script_s_update_draft_page));}function gml_Script_s_update_draft_page(_inst,_other){{{var __yy__v643=GetWithArray(49);for(var __yy__v644 in __yy__v643){if(!__yy__v643.hasOwnProperty(__yy__v644))continue;
var __yy__v645=__yy__v643[__yy__v644];instance_destroy(__yy__v645);}};var gmlrx=48;var gmlry=48;var gmlfirst=yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmldraft_page),1)),10);var gmllast=min(yyfplus(__yy_gml_errCheck(gmlfirst),10),ds_list_size(yyInst(_inst,_other,97).gmldraftlist));var gmlcount=0;var gmlr=gmlfirst;for(;yyfless(gmlr,gmllast);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,
4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(gmlcount)]=instance_create_layer(gmlrx,gmlry,"Instances",49);gmlrx=yyfplus(gmlrx,80);yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmlcount,_inst.gmlprofile)]).gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmldraftlist,gmlr);if(yyfequal((g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__),4)){{gmlrx=48;gmlry=yyfplus(gmlry,88);};};}};var gmlpg=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Page"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmldraft_page))),"/"),__yy_gml_errCheck(string(_inst.gmlpage_max)));if(yyflessequal(_inst.gmlpage_max,1)){gmlpg=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Page"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmldraft_page)));};yyInst(_inst,_other,100057).gmltext=gmlpg;yyInst(_inst,_other,100055).visible=true;yyInst(_inst,_other,100056).visible=true;if(yyfequal(yyInst(_inst,_other,97).gmldraft_page,
1)){yyInst(_inst,_other,100055).visible=false;};if(yyfequal(yyInst(_inst,_other,97).gmldraft_page,_inst.gmlpage_max)){yyInst(_inst,_other,100056).visible=false;};}}function gml_GlobalScript_s_update_freeagents_page(_inst,_other){(_inst.gmls_update_freeagents_page=__yy_method(_inst,gml_Script_s_update_freeagents_page));}function gml_Script_s_update_freeagents_page(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_freeagents");{var __yy__v646=GetWithArray(49);for(var __yy__v647 in __yy__v646){if(!__yy__v646.hasOwnProperty(__yy__v647))continue;
var __yy__v648=__yy__v646[__yy__v647];instance_destroy(__yy__v648);}};var gmllist=yyInst(_inst,_other,97).gmlfreeagentlist;var gmlsize=ds_list_size(gmllist);if(yyfless(gmlsize,1)){{gml_Script_slog(_inst,_other,"tradeoffer");gmllist=yyInst(_inst,_other,97).gmltradelist;gmlsize=ds_list_size(gmllist);yyInst(_inst,_other,100116).gmltext=gml_Script_s_str(_inst,_other,"ui_TradeOffer");};};var gmlgap=4;var gmlmax_roster=10;if(yyfgreater(gmlsize,10)){gmlmax_roster=12;};var gmlcards_per_row=yyfdivide(__yy_gml_errCheck(gmlmax_roster),
2);if(yyflessequal(gmlsize,10)){{gmlcards_per_row=5;gmlgap=8;};};if(yyflessequal(gmlsize,8)){gmlcards_per_row=4;};if(yyflessequal(gmlsize,6)){gmlcards_per_row=3;};var gmlpx=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5));var gmlpy=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_height),0.49));var gmlpw=yyfplus(__yy_gml_errCheck(sprite_get_width(156)),__yy_gml_errCheck(gmlgap));if(yyfgreater(gmlsize,gmlcards_per_row)){{gmlpy=yyfminus(gmlpy,44);gmlpx=yyfminus(gmlpx,yyftime(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlcards_per_row),
1)),__yy_gml_errCheck(gmlpw)),0.5));};}else {{gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsize),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));};};var gmli=0;for(;yyfless(gmli,gmlsize);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(0,0,"Instances",
49);yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmli,_inst.gmlprofile)]).gmlpmap=ds_list_find_value(gmllist,gmli);yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmli,_inst.gmlprofile)]).x=yyfminus(__yy_gml_errCheck(gmlpx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5)));yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmli,_inst.gmlprofile)]).y=yyfminus(__yy_gml_errCheck(gmlpy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,
_inst.gmlprofile[__yy_gml_array_check_index(0,_inst.gmlprofile)]).sprite_height),0.5)));gmlpx=yyfplus(gmlpx,gmlpw);if(yyfequal(gmli,yyfminus(__yy_gml_errCheck(gmlcards_per_row),1))){{var gmlsz=yyfminus(__yy_gml_errCheck(gmlsize),__yy_gml_errCheck(gmlcards_per_row));gmlpx=yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5);gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsz),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));gmlpy=yyfplus(gmlpy,88);};};}};
if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100121).visible=false;};};}}function gml_GlobalScript_s_college_admissions_draft(_inst,_other){(_inst.gmls_check_draft_CO=__yy_method(_inst,gml_Script_s_check_draft_CO));(_inst.gmls_college_free_agent_check=__yy_method(_inst,gml_Script_s_college_free_agent_check));(_inst.gmlbtn_respose_college_free_agent_yes=__yy_method(_inst,gml_Script_btn_respose_college_free_agent_yes));(_inst.gmls_college_dilemma_check=__yy_method(_inst,
gml_Script_s_college_dilemma_check));(_inst.gmls_college_admissions_check_trigger=__yy_method(_inst,gml_Script_s_college_admissions_check_trigger));(_inst.gmls_college_admissions_pick_player=__yy_method(_inst,gml_Script_s_college_admissions_pick_player));(_inst.gmls_college_admissions_players_lost_per_round=__yy_method(_inst,gml_Script_s_college_admissions_players_lost_per_round));(_inst.gmls_college_admissions_draft_done=__yy_method(_inst,gml_Script_s_college_admissions_draft_done));(_inst.gmlbtn_response_college_admissions_draft_done_yes=__yy_method(_inst,
gml_Script_btn_response_college_admissions_draft_done_yes));}function gml_Script_s_check_draft_CO(_inst,_other){{{var __yy__v649=GetWithArray(97);for(var __yy__v650 in __yy__v649){if(!__yy__v649.hasOwnProperty(__yy__v650))continue;var __yy__v651=__yy__v649[__yy__v650];{gml_Script_slog(__yy__v651,_inst,"s_check_draft_CO");gml_Script_slog(__yy__v651,_inst,yyfplus("Week = ",__yy_gml_errCheck(string(__yy__v651.gmlweek))));gml_Script_slog(__yy__v651,_inst,yyfplus("Draft = ",__yy_gml_errCheck(string(__yy__v651.gmlcollege_admissions_draft_round))));
if(yyfgreater(__yy__v651.gmlintro,0)){{gml_Script_slog(__yy__v651,_inst,"s_check_draft_CO... skip: Intro");return;};};if(yyGetBool(gml_Script_s_college_admissions_check_trigger(__yy__v651,_inst))){{return;};};if(yyGetBool(gml_Script_s_college_free_agent_check(__yy__v651,_inst))){{return;};};if(yyGetBool(gml_Script_s_college_dilemma_check(__yy__v651,_inst))){{return;};};yyInst(_inst,_other,97).gmlprematch_dilemma_done=true;gml_Script_s_savegame(__yy__v651,_inst);gml_Script_s_play(__yy__v651,_inst,
1);}}};}}function gml_Script_s_college_free_agent_check(_inst,_other){{var gmlforce=false;if((yyGetBool(yyfless(_inst.gmlweek,2)))||(yyGetBool(yyfgreater(_inst.gmlweek,7)))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_free_agent_check skip - Week(",__yy_gml_errCheck(string(_inst.gmlweek))),") Out of valid week range(2-7)"));return false;};};if(yyGetBool(_inst.gmloffers_done)){{gml_Script_slog(_inst,_other,"s_college_free_agent_check skip - Already checked this week");return false;};};var gmlrr=irandom(2);
if(yyfless(gmlrr,2)){{gml_Script_slog(_inst,_other,"s_college_free_agent_check skip - 30% Random change failed");_inst.gmloffers_done=true;return false;};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_free_agent_check passed 30% chance with r[",__yy_gml_errCheck(string(gmlrr))),"]"));};};var gmlless5=yyfless(ds_list_size(yyInst(_inst,_other,97).gmlroster),5);if(yyGetBool(gmlforce)){{gmlless5=true;};};var gmlhasQB=false;var gmlhasRB=false;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,
_other,97).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{gmlhasQB=true;};};if(yyfequal(ds_map_find_value(gmlpmap,"position"),2)){{gmlhasRB=true;};};}};var gmlcQB=0;var gmlcRB=0;var gmlcOther=0;if(yyGetBool(gmlless5)){{if((yyGetBool(!yyGetBool(gmlhasQB)))&&(yyGetBool(!yyGetBool(gmlhasRB)))){{gmlcQB=0.3;
gmlcRB=0.3;gmlcOther=0.4;};}else {if(!yyGetBool(gmlhasQB)){{gmlcQB=0.4;gmlcRB=0.1;gmlcOther=0.5;};}else {if(!yyGetBool(gmlhasRB)){{gmlcQB=0.1;gmlcRB=0.4;gmlcOther=0.5;};}else {{gmlcQB=0.1;gmlcRB=0.1;gmlcOther=0.8;};};};};};}else {{if((yyGetBool(!yyGetBool(gmlhasQB)))&&(yyGetBool(!yyGetBool(gmlhasRB)))){{gmlcQB=0.5;gmlcRB=0.5;gmlcOther=0;};}else {if(!yyGetBool(gmlhasQB)){{gmlcQB=1;gmlcRB=0;gmlcOther=0;};}else {if(!yyGetBool(gmlhasRB)){{gmlcQB=0;gmlcRB=1;gmlcOther=0;};}else {{gmlcQB=0;gmlcRB=0;gmlcOther=0;
};};};};};};var gmlcTotal=yyfplus(yyfplus(__yy_gml_errCheck(gmlcQB),__yy_gml_errCheck(gmlcRB)),__yy_gml_errCheck(gmlcOther));if(yyfequal(gmlcTotal,0)){{gml_Script_slog(_inst,_other,"s_college_free_agent_check skip - Position selection chance is 0");return false;};};var gmlr=random_range(0,gmlcTotal);var gmlpos=(-1);if(yyflessequal(gmlr,gmlcQB)){{gmlpos=1;};}else {if(yyflessequal(gmlr,yyfplus(__yy_gml_errCheck(gmlcQB),__yy_gml_errCheck(gmlcRB)))){{gmlpos=2;};}else {if(yyflessequal(gmlr,yyfplus(yyfplus(__yy_gml_errCheck(gmlcQB),
__yy_gml_errCheck(gmlcRB)),__yy_gml_errCheck(gmlcOther)))){{gmlpos=gml_Script_s_get_required_position_no_QB_RB(_inst,_other,false);};};};};if(yyfequal(gmlpos,(-1))){{gml_Script_slog(_inst,_other,"s_college_free_agent_check skip - Error. Failed pos select");return false;};};_inst.gmloffers_done=true;gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_college_free_agent_check: Trigger! [cQB:",__yy_gml_errCheck(string(gmlcQB)))," cRB:"),__yy_gml_errCheck(string(gmlcRB))),
" cOther:"),__yy_gml_errCheck(string(gmlcOther)))," r:"),__yy_gml_errCheck(string(gmlr))),"]"));gml_Script_s_clear_freeagents(_inst,_other);var gmlpmap=gml_Script_s_create_player(_inst,_other,gmlpos,gml_Script_s_rookie_age_internal(_inst,_other),1,2);ds_map_set(gmlpmap,"attitude",irandom_range(30,90));ds_map_set(gmlpmap,"rc_cost",0);ds_map_set(gmlpmap,"teamid",yyInst(_inst,_other,97).gmlmyteam_id);gml_Script_s_college_correct_new_player(_inst,_other,gmlpmap);ds_map_set(gmlpmap,"teamid",(-1));ds_list_add(_inst.gmlfreeagentlist,
gmlpmap);if((yyGetBool(yyfequal(gmlforce,false)))&&(yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,ds_map_find_value(gmlpmap,"position"))))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_free_agent_check skip - Already got one of these (",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"position")))),")"));return false;};};var gmlstaffmap=(-4);if(yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,gmlpmap))){{gmlstaffmap=gml_Script_s_get_staff(_inst,_other,102);};
}else {{gmlstaffmap=gml_Script_s_get_staff(_inst,_other,101);};};var gmlmsg=gml_Script_s_str(_inst,_other,"ui_WalkOnStudentOffer");gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlpmap,"position")));if(yyGetBool(gmlstaffmap)){gmlmsg=string_replace(gmlmsg,"$coachname",
gml_Script_s_get_player_name(_inst,_other,gmlstaffmap,true));};gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_WalkOnStudent"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_respose_college_free_agent_yes,global.gmlc_background,1);return true;}}function gml_Script_btn_respose_college_free_agent_yes(_inst,_other){{room_goto(7);}}function gml_Script_s_college_dilemma_check(_inst,_other){{if((yyGetBool(!yyGetBool(yyInst(_inst,
_other,97).gmlprematch_dilemma_done)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_bye_week(_inst,_other,yyInst(_inst,_other,97).gmlweek))))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))){{if(yyGetBool(gml_Script_s_do_prematch_dilemma(_inst,_other,false))){{return true;};};};};return false;}}function gml_Script_s_college_admissions_check_trigger(_inst,_other){{if(yyfequal(_inst.gmlweek,1)){{
if(yyfgreater(_inst.gmlcollege_admissions_draft_round,0)){{if(yyfequal(_inst.gmlcollege_admissions_draft_round,1)){{gml_Script_s_create_draftlist(_inst,_other);};};room_goto(5);return true;};};};};return false;}}function gml_Script_s_college_admissions_pick_player(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("s_college_admissions_pick_player -> Drafted player at pos #",__yy_gml_errCheck(string(argument0)))," during round "),__yy_gml_errCheck(string(_inst.gmlcollege_admissions_draft_round))));
gml_Script_recruitment_credits_add(_inst,_other,yyftime((-1),__yy_gml_errCheck(ds_map_find_value(_inst.gmlplayer_profile,"rc_cost"))));ds_list_delete(_inst.gmldraftlist,argument0);var gmlloseCount=gml_Script_s_college_admissions_players_lost_per_round(_inst,_other);var gmli=0;for(;yyfless(gmli,gmlloseCount);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmllPos=irandom_range(0,yyfminus(__yy_gml_errCheck(ds_list_size(_inst.gmldraftlist)),
1));gml_Script_slog(_inst,_other,yyfplus(".. another team picked player at pos #",__yy_gml_errCheck(string(gmllPos))));ds_list_delete(_inst.gmldraftlist,gmllPos);}};(g_yyPrePostObject__=_inst.gmlcollege_admissions_draft_round,_inst.gmlcollege_admissions_draft_round=(g_yyPrePostObject__ instanceof Long?_inst.gmlcollege_admissions_draft_round.add(1):++_inst.gmlcollege_admissions_draft_round),g_yyPrePostObject__);yyInst(_inst,_other,97).gmlcollege_admissions_doing_player_draft_sign=true;}}function gml_Script_s_college_admissions_players_lost_per_round(_inst,
_other){{var ___sw290___=_inst.gmlcollege_admissions_draft_round;var ___swc291___=-1;if(yyCompareVal(___sw290___,1,g_GMLMathEpsilon,false)==0){___swc291___=0;}else if(yyCompareVal(___sw290___,2,g_GMLMathEpsilon,false)==0){___swc291___=1;}else if(yyCompareVal(___sw290___,3,g_GMLMathEpsilon,false)==0){___swc291___=2;}else if(yyCompareVal(___sw290___,4,g_GMLMathEpsilon,false)==0){___swc291___=3;}else if(yyCompareVal(___sw290___,5,g_GMLMathEpsilon,false)==0){___swc291___=4;}else if(yyCompareVal(___sw290___,
6,g_GMLMathEpsilon,false)==0){___swc291___=5;}else if(yyCompareVal(___sw290___,7,g_GMLMathEpsilon,false)==0){___swc291___=6;}else if(yyCompareVal(___sw290___,8,g_GMLMathEpsilon,false)==0){___swc291___=7;}else if(yyCompareVal(___sw290___,9,g_GMLMathEpsilon,false)==0){___swc291___=8;}else if(yyCompareVal(___sw290___,10,g_GMLMathEpsilon,false)==0){___swc291___=9;}else if(yyCompareVal(___sw290___,11,g_GMLMathEpsilon,false)==0){___swc291___=10;}switch(___swc291___){case 0:{return 9;}case 1:{return 7;}case 2:{return 5;
}case 3:{return 3;}case 4:{return 1;}case 5:{return 1;}case 6:{return 1;}case 7:{return 1;}case 8:{return 1;}case 9:{return 1;}case 10:{return 1;}};return 0;}}function gml_Script_s_college_admissions_draft_done(_inst,_other){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"ui_AdmissionsDraftConfirm"),gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_college_admissions_draft_done_yes,global.gmlc_background,1);}
}function gml_Script_btn_response_college_admissions_draft_done_yes(_inst,_other){{{var __yy__v652=GetWithArray(97);for(var __yy__v653 in __yy__v652){if(!__yy__v652.hasOwnProperty(__yy__v653))continue;var __yy__v654=__yy__v652[__yy__v653];{__yy__v654.gmlcollege_admissions_draft_round=0;gml_Script_s_destroy_draftlist(__yy__v654,_inst);gml_Script_s_add_news(__yy__v654,_inst,gml_Script_s_str(__yy__v654,_inst,"news_DraftEnded"));__yy__v654.gmlstage=1;gml_Script_s_savegame(__yy__v654,_inst);room_goto(14);}
}};}}function gml_GlobalScript_s_remaining_picks(_inst,_other){(_inst.gmls_remaining_picks=__yy_method(_inst,gml_Script_s_remaining_picks));}function gml_Script_s_remaining_picks(_inst,_other){{{var __yy__v655=GetWithArray(97);for(var __yy__v656 in __yy__v655){if(!__yy__v655.hasOwnProperty(__yy__v656))continue;var __yy__v657=__yy__v655[__yy__v656];{if(yyfless(__yy__v657.gmldraft_round,1)){return 0;};if(yyfgreater(__yy__v657.gmldraft_round,3)){return 0;};return __yy__v657.gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(__yy__v657.gmldraft_round),
1),__yy__v657.gmldraft_picks)];}}};}}function gml_GlobalScript_s_remaining_picks_by_round(_inst,_other,argument0){(_inst.gmls_remaining_picks_by_round=__yy_method(_inst,gml_Script_s_remaining_picks_by_round));}function gml_Script_s_remaining_picks_by_round(_inst,_other,argument0){{var gmlpick_round=argument0;{var __yy__v658=GetWithArray(97);for(var __yy__v659 in __yy__v658){if(!__yy__v658.hasOwnProperty(__yy__v659))continue;var __yy__v660=__yy__v658[__yy__v659];{if(yyfless(gmlpick_round,1)){return 0;};if(yyfgreater(gmlpick_round,
3)){return 0;};return __yy__v660.gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(gmlpick_round),1),__yy__v660.gmldraft_picks)];}}};}}function gml_GlobalScript_s_get_trade_value(_inst,_other,argument0){(_inst.gmls_get_trade_value=__yy_method(_inst,gml_Script_s_get_trade_value));}function gml_Script_s_get_trade_value(_inst,_other,argument0){{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,argument0);if(yyfgreaterequal(gmlrating,8)){return 1;};if(yyfgreaterequal(gmlrating,4)){
return 2;};return 3;}}function gml_GlobalScript_s_get_trade_value_by_rating(_inst,_other,argument0){(_inst.gmls_get_trade_value_by_rating=__yy_method(_inst,gml_Script_s_get_trade_value_by_rating));}function gml_Script_s_get_trade_value_by_rating(_inst,_other,argument0){{var gmlrating=argument0;if(yyfgreaterequal(gmlrating,8)){return 1;};if(yyfgreaterequal(gmlrating,4)){return 2;};return 3;}}function gml_GlobalScript_s_get_offer_team(_inst,_other,argument0){(_inst.gmls_get_offer_team=__yy_method(_inst,gml_Script_s_get_offer_team));
}function gml_Script_s_get_offer_team(_inst,_other,argument0){{var gmlpmap=argument0;var gmlteam_id=yyfmod(__yy_gml_errCheck(round(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlweek),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age"))),
__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude"))))),32);if(yyfequal(gmlteam_id,yyInst(_inst,_other,97).gmlmyteam_id)){(g_yyPrePostObject__=gmlteam_id,gmlteam_id=(g_yyPrePostObject__ instanceof Long?gmlteam_id.add(1):++gmlteam_id),g_yyPrePostObject__);};if(yyfless(gmlteam_id,0)){gmlteam_id=31;};if(yyfgreater(gmlteam_id,31)){gmlteam_id=0;};return gml_Script_s_get_team_by_id(_inst,_other,gmlteam_id);}}function gml_GlobalScript_s_clear_trade_offers(_inst,_other){(_inst.gmls_clear_trade_offers=__yy_method(_inst,
gml_Script_s_clear_trade_offers));}function gml_Script_s_clear_trade_offers(_inst,_other){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmli);ds_map_set(gmlpmap,"outtrade_pick",0);ds_map_set(gmlpmap,"intrade_pick",0);}};gml_Script_s_savegame(_inst,_other);}}function gml_GlobalScript_s_clear_freeagents(_inst,
_other){(_inst.gmls_clear_freeagents=__yy_method(_inst,gml_Script_s_clear_freeagents));}function gml_Script_s_clear_freeagents(_inst,_other){{{var __yy__v661=GetWithArray(97);for(var __yy__v662 in __yy__v661){if(!__yy__v661.hasOwnProperty(__yy__v662))continue;var __yy__v663=__yy__v661[__yy__v662];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v663.gmltradelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v663.gmltradelist,
gmli));ds_list_set(__yy__v663.gmltradelist,gmli,(-1));}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v663.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v663.gmlfreeagentlist,gmli);if((yyGetBool(ds_exists(gmlpmap,1)))&&(yyGetBool(ds_map_exists(gmlpmap,"hof")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"hof"),true)))){{ds_map_set(gmlpmap,"team_leave_reason","cut");ds_list_add(__yy__v663.gmlhoflist,
gmlpmap);};}else {{ds_map_destroy(ds_list_find_value(__yy__v663.gmlfreeagentlist,gmli));ds_list_set(__yy__v663.gmlfreeagentlist,gmli,(-1));};};}};ds_list_clear(__yy__v663.gmltradelist);ds_list_clear(__yy__v663.gmlfreeagentlist);}}};gml_Script_s_savegame(_inst,_other);}}function gml_GlobalScript_s_clear_storelist(_inst,_other){(_inst.gmls_clear_storelist=__yy_method(_inst,gml_Script_s_clear_storelist));}function gml_Script_s_clear_storelist(_inst,_other){{{var __yy__v664=GetWithArray(97);for(var __yy__v665 in __yy__v664){
if(!__yy__v664.hasOwnProperty(__yy__v665))continue;var __yy__v666=__yy__v664[__yy__v665];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v666.gmlstorelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v666.gmlstorelist,gmli));ds_list_set(__yy__v666.gmlstorelist,gmli,(-1));}};ds_list_clear(__yy__v666.gmlstorelist);}}};}}function gml_GlobalScript_s_end_draft_round(_inst,_other){(_inst.gmls_end_draft_round=__yy_method(_inst,
gml_Script_s_end_draft_round));(_inst.gmls_destroy_draftlist=__yy_method(_inst,gml_Script_s_destroy_draftlist));}function gml_Script_s_end_draft_round(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_end_draft_round");{var __yy__v667=GetWithArray(97);for(var __yy__v668 in __yy__v667){if(!__yy__v667.hasOwnProperty(__yy__v668))continue;var __yy__v669=__yy__v667[__yy__v668];{var ___sw294___=__yy__v669.gmldraft_round;var ___swc295___=-1;if(yyCompareVal(___sw294___,1,g_GMLMathEpsilon,false)==0){___swc295___=0;
}else if(yyCompareVal(___sw294___,2,g_GMLMathEpsilon,false)==0){___swc295___=1;}else if(yyCompareVal(___sw294___,3,g_GMLMathEpsilon,false)==0){___swc295___=2;}switch(___swc295___){case 0:{while(yyfgreater(ds_list_size(__yy__v669.gmldraftlist),35)){{var gmli=irandom(5);ds_map_destroy(ds_list_find_value(__yy__v669.gmldraftlist,gmli));ds_list_set(__yy__v669.gmldraftlist,gmli,(-1));ds_list_delete(__yy__v669.gmldraftlist,gmli);}};break;}case 1:{while(yyfgreater(ds_list_size(__yy__v669.gmldraftlist),20)){{
var gmli=irandom(5);ds_map_destroy(ds_list_find_value(__yy__v669.gmldraftlist,gmli));ds_list_set(__yy__v669.gmldraftlist,gmli,(-1));ds_list_delete(__yy__v669.gmldraftlist,gmli);}};break;}case 2:{var gmlsize=ds_list_size(__yy__v669.gmldraftlist);if(yyfgreater(gmlsize,yyftime(__yy_gml_errCheck(__yy__v669.gmldraft_picks[__yy_gml_array_check_index(2,__yy__v669.gmldraft_picks)]),2))){{var gmli=irandom(yyfminus(__yy_gml_errCheck(gmlsize),1));ds_map_destroy(ds_list_find_value(__yy__v669.gmldraftlist,gmli));
ds_list_set(__yy__v669.gmldraftlist,gmli,(-1));ds_list_delete(__yy__v669.gmldraftlist,gmli);};};break;}};__yy__v669.gmldraft_picks=__yy_gml_array_check(__yy__v669.gmldraft_picks,3492595313);__yy__v669.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v669.gmldraft_round),1))]=0;(g_yyPrePostObject__=__yy__v669.gmldraft_round,__yy__v669.gmldraft_round=(g_yyPrePostObject__ instanceof Long?__yy__v669.gmldraft_round.add(1):++__yy__v669.gmldraft_round),g_yyPrePostObject__);__yy__v669.gmldraft_page=1;
if(yyGetBool(argument0)){__yy__v669.gmldraft_round=4;};if(yyfgreater(__yy__v669.gmldraft_round,3)){{gml_Script_s_destroy_draftlist(__yy__v669,_inst);gml_Script_s_add_news(__yy__v669,_inst,gml_Script_s_str(__yy__v669,_inst,"news_DraftEnded"));__yy__v669.gmlstage=1;room_goto(14);};}else {if(!yyGetBool(__yy__v669.gmlqb_mode)){{__yy__v669.gmldodraftbanner=true;room_goto(5);};};};}}};}}function gml_Script_s_destroy_draftlist(_inst,_other){{{var __yy__v670=GetWithArray(97);for(var __yy__v671 in __yy__v670){
if(!__yy__v670.hasOwnProperty(__yy__v671))continue;var __yy__v672=__yy__v670[__yy__v671];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v672.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v672.gmldraftlist,gmli));ds_list_set(__yy__v672.gmldraftlist,gmli,(-1));}};ds_list_clear(__yy__v672.gmldraftlist);}}};gml_Script_s_reset_draft_picks(_inst,_other);}}function gml_GlobalScript_s_received_AI_kickoff(_inst,
_other){(_inst.gmls_received_AI_kickoff=__yy_method(_inst,gml_Script_s_received_AI_kickoff));}function gml_Script_s_received_AI_kickoff(_inst,_other){{var gmlball=global.gmlmaster_ball;_inst.gmljforce=1;if(yyfequal(_inst.gmlfacing,(-1))){_inst.gmljdir=180;}else {_inst.gmljdir=0;};if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if(yyGetBool(global.gmlgamepad)){{if(!yyGetBool(yyInst(_inst,_other,97).gmlop_autorun)){_inst.gmljforce=0;};};};return;};};if(yyfequal(_inst.gmloffense,yyInst(_inst,
_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)){{if(yyfless(_inst.gmlnearest_opp_dist,100)){{gml_Script_s_aim_for_nearest_opponent(_inst,_other);_inst.gmljforce=1;};}else {{var gmlf=_inst.gmlfacing;if(yyfless(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlgoaldist,1200)){gmlf=yyftime(__yy_gml_errCheck(real(!yyGetBool(_inst.gmlfacing))),0.35);};var ___sw298___=_inst.gmlinum;var ___swc299___=-1;if(yyCompareVal(___sw298___,1,g_GMLMathEpsilon,false)==0){___swc299___=0;}else if(yyCompareVal(___sw298___,
2,g_GMLMathEpsilon,false)==0){___swc299___=1;}else if(yyCompareVal(___sw298___,3,g_GMLMathEpsilon,false)==0){___swc299___=2;}else if(yyCompareVal(___sw298___,4,g_GMLMathEpsilon,false)==0){___swc299___=3;}else if(yyCompareVal(___sw298___,5,g_GMLMathEpsilon,false)==0){___swc299___=4;}else if(yyCompareVal(___sw298___,6,g_GMLMathEpsilon,false)==0){___swc299___=5;}else if(yyCompareVal(___sw298___,7,g_GMLMathEpsilon,false)==0){___swc299___=6;}else if(yyCompareVal(___sw298___,8,g_GMLMathEpsilon,false)==0){___swc299___=7;
}else if(yyCompareVal(___sw298___,9,g_GMLMathEpsilon,false)==0){___swc299___=8;}else if(yyCompareVal(___sw298___,10,g_GMLMathEpsilon,false)==0){___swc299___=9;}else if(yyCompareVal(___sw298___,11,g_GMLMathEpsilon,false)==0){___swc299___=10;}switch(___swc299___){case 0:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(280,__yy_gml_errCheck(gmlf)))),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,
yyInst(_inst,_other,gmlball).gmlholder).y),80));break;}case 1:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(320,__yy_gml_errCheck(gmlf)))),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),50));break;}case 2:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(320,
__yy_gml_errCheck(gmlf)))),yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y);break;}case 3:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(320,__yy_gml_errCheck(gmlf)))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),50));break;}case 4:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,
_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(280,__yy_gml_errCheck(gmlf)))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),80));break;}case 5:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(220,__yy_gml_errCheck(gmlf)))),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),35));break;}case 6:{_inst.gmljdir=point_direction(_inst.x,
_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(260,__yy_gml_errCheck(gmlf)))),yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y);break;}case 7:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(220,__yy_gml_errCheck(gmlf)))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),
35));break;}case 8:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(gmlf)))),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),10));break;}case 9:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(gmlf)))),
yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y);break;}case 10:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(gmlf)))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),10));break;}};};};};}else {{if(yyfgreater(_inst.gmlballdist,400)){return;};gml_Script_s_intercept_object(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder);
};};}}function gml_GlobalScript_s_update_contracts(_inst,_other){(_inst.gmls_update_contracts=__yy_method(_inst,gml_Script_s_update_contracts));(_inst.gmls_check_staff_exist=__yy_method(_inst,gml_Script_s_check_staff_exist));}function gml_Script_s_update_contracts(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_contracts");{var __yy__v673=GetWithArray(97);for(var __yy__v674 in __yy__v673){if(!__yy__v673.hasOwnProperty(__yy__v674))continue;var __yy__v675=__yy__v673[__yy__v674];{gml_Script_s_clear_freeagents(__yy__v675,
_inst);var gmlretirements=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v675.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v675.gmlroster,gmli);ds_map_set(gmlpmap,"age",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age")),1));ds_map_set(gmlpmap,"contract",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract")),1));ds_map_set(gmlpmap,"condition",irandom_range(90,
100));ds_map_set(gmlpmap,"meetingdone",0);var gmlqb_is_me=false;if((yyGetBool(__yy__v675.gmlqb_mode))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),1)))){gmlqb_is_me=true;};if(yyfgreater(ds_map_find_value(gmlpmap,"age"),30)){ds_map_set(gmlpmap,"stamina",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina")),1),1,10));};if(yyfgreater(ds_map_find_value(gmlpmap,"age"),30)){{var gmlsp_st=irandom(1);if((yyGetBool((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),1)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,
"position"),10)))))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"age"),35)))){gmlsp_st=0;};var ___sw302___=gmlsp_st;var ___swc303___=-1;if(yyCompareVal(___sw302___,0,g_GMLMathEpsilon,false)==0){___swc303___=0;}else if(yyCompareVal(___sw302___,1,g_GMLMathEpsilon,false)==0){___swc303___=1;}switch(___swc303___){case 0:{ds_map_set(gmlpmap,"speed",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed")),1),1,10));break;}case 1:{ds_map_set(gmlpmap,"strength",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"strength")),1),1,10));break;}};};};if((yyGetBool(gmlqb_is_me))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"age"),30)))){gml_Script_s_add_news(__yy__v675,_inst,gml_Script_s_str(__yy__v675,_inst,"msg_QB_aging"));};var gmlmax_age=gml_Script_s_get_max_age(__yy__v675,_inst,gmlpmap);if(!yyGetBool(gmlqb_is_me)){{if(yyfgreater(ds_map_find_value(gmlpmap,"age"),gmlmax_age)){{ds_list_add(gmlretirements,gmlpmap);gml_Script_slog(__yy__v675,_inst,yyfplus(yyfplus(yyfplus(yyfplus("Retired: ",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,
"lname"))))," at age["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"age")))),"]"));var gmlmsg=gml_Script_s_str(__yy__v675,_inst,"news_PlayerRetired");gmlmsg=string_replace(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v675,_inst,__yy__v675.gmlmyteam_id));gmlmsg=gml_Script_s_parse_player_message(__yy__v675,_inst,gmlmsg,gmlpmap);gml_Script_s_add_news(__yy__v675,_inst,gmlmsg);};}else {if(yyfless(ds_map_find_value(gmlpmap,"contract"),1)){{ds_map_set(gmlpmap,"salary",gml_Script_s_get_new_salary(__yy__v675,
_inst,gmlpmap));ds_map_set(gmlpmap,"contract",irandom_range(2,3));var gmlmax_age=gml_Script_s_get_max_age(__yy__v675,_inst,gmlpmap);if(yyfgreater(ds_map_find_value(gmlpmap,"age"),yyfminus(__yy_gml_errCheck(gmlmax_age),3))){ds_map_set(gmlpmap,"contract",1);};if(yyfless(ds_map_find_value(gmlpmap,"age"),gmlmax_age)){{ds_list_add(__yy__v675.gmlfreeagentlist,gmlpmap);};};};};};};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v675.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{ds_list_delete(__yy__v675.gmlroster,ds_list_find_index(__yy__v675.gmlroster,ds_list_find_value(__yy__v675.gmlfreeagentlist,gmli)));}};var gmli=0;for(;yyfless(gmli,ds_list_size(gmlretirements));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlretirements,gmli);var gmldel=gml_Script_s_remove_player(__yy__v675,_inst,gmlpmap,"retired");if(yyGetBool(gmldel)){{ds_list_set(gmlretirements,gmli,
(-1));};};}};ds_list_destroy(gmlretirements);gmlretirements=(-1);__yy__v675.gmlexpiredcontract_msg_done=false;if(!yyGetBool(__yy__v675.gmlqb_mode)){{var gmlstaff_retirements=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v675.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v675.gmlstafflist,gmli);ds_map_set(gmlpmap,"age",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"age")),1));ds_map_set(gmlpmap,"contract",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract")),1));if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(__yy__v675,_inst,gmlpmap))))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"contract"),1)))){{var gmlmsg=gml_Script_s_str(__yy__v675,_inst,"msg_StaffRetired");gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v675,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,
"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gml_Script_s_add_news(__yy__v675,_inst,gmlmsg);ds_list_add(gmlstaff_retirements,gmlpmap);};}else {if(yyfless(ds_map_find_value(gmlpmap,"contract"),1)){{var gmlmsg=gml_Script_s_str(__yy__v675,_inst,"msg_StaffExpired");gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v675,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,
"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gml_Script_s_add_news(__yy__v675,_inst,gmlmsg);ds_list_add(gmlstaff_retirements,gmlpmap);};};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(gmlstaff_retirements));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpos=ds_list_find_index(__yy__v675.gmlstafflist,ds_list_find_value(gmlstaff_retirements,
gmli));ds_list_delete(__yy__v675.gmlstafflist,gmlpos);ds_map_destroy(ds_list_find_value(gmlstaff_retirements,gmli));ds_list_set(gmlstaff_retirements,gmli,(-1));}};ds_list_destroy(gmlstaff_retirements);gmlstaff_retirements=(-1);};};gml_Script_s_check_staff_exist(__yy__v675,_inst);}}};}}function gml_Script_s_check_staff_exist(_inst,_other){{{var __yy__v676=GetWithArray(97);for(var __yy__v677 in __yy__v676){if(!__yy__v676.hasOwnProperty(__yy__v677))continue;var __yy__v678=__yy__v676[__yy__v677];{if(yyfequal(gml_Script_s_get_staff(__yy__v678,
_inst,101),(-4))){ds_list_add(__yy__v678.gmlstafflist,gml_Script_s_create_staff(__yy__v678,_inst,101,1));};if(yyfequal(gml_Script_s_get_staff(__yy__v678,_inst,102),(-4))){ds_list_add(__yy__v678.gmlstafflist,gml_Script_s_create_staff(__yy__v678,_inst,102,1));};}}};}}function gml_GlobalScript_s_aim_AI_kickoff(_inst,_other){(_inst.gmls_aim_AI_kickoff=__yy_method(_inst,gml_Script_s_aim_AI_kickoff));}function gml_Script_s_aim_AI_kickoff(_inst,_other){{if(yyGetBool(global.gmldebug)){gml_Script_slog(_inst,
_other,"s_aim_AI_kickoff");};var ___sw310___=_inst.gmlposition;var ___swc311___=-1;if(yyCompareVal(___sw310___,1,g_GMLMathEpsilon,false)==0){___swc311___=0;}else if(yyCompareVal(___sw310___,12,g_GMLMathEpsilon,false)==0){___swc311___=1;}else if(yyCompareVal(___sw310___,13,g_GMLMathEpsilon,false)==0){___swc311___=2;}else if(yyCompareVal(___sw310___,14,g_GMLMathEpsilon,false)==0){___swc311___=3;}switch(___swc311___){case 0:{_inst.gmljforce=1;_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,
111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);break;}case 1:{_inst.gmljforce=1.2;_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,111).gmlbounce_x,_inst.y);var ___sw312___=_inst.gmlinum;var ___swc313___=-1;if(yyCompareVal(___sw312___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw312___,10,g_GMLMathEpsilon,false)==0){___swc313___=0;}else if(yyCompareVal(___sw312___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw312___,11,g_GMLMathEpsilon,false)==0){___swc313___=1;}switch(___swc313___){
case 0:{_inst.gmljforce=1.1;break;}case 1:{_inst.gmljforce=1.05;break;}};break;}case 2:{var gmlbdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);var gmlbdis=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(dcos(gmlbdir)),__yy_gml_errCheck(gmlbdis)),0.9))),
yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(dsin(gmlbdir)),__yy_gml_errCheck(gmlbdis)),0.9))));_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(gmlbdis),20),0.5,0.9);var ___sw314___=_inst.gmlinum;var ___swc315___=-1;if(yyCompareVal(___sw314___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw314___,11,g_GMLMathEpsilon,false)==0){___swc315___=0;}switch(___swc315___){case 0:{_inst.gmljforce=0.75;break;}};break;}case 3:{_inst.gmljdir=point_direction(_inst.x,_inst.y,
yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlbouncedist),20),0.1,1);break;}};}}function gml_GlobalScript_btn_click_SeasonReview(_inst,_other){(_inst.gmlbtn_click_SeasonReview=__yy_method(_inst,gml_Script_btn_click_SeasonReview));}function gml_Script_btn_click_SeasonReview(_inst,_other){{room_goto(38);}}function gml_GlobalScript_s_get_new_salary(_inst,_other,argument0){(_inst.gmls_get_new_salary=__yy_method(_inst,
gml_Script_s_get_new_salary));}function gml_Script_s_get_new_salary(_inst,_other,argument0){{var gmlpmap=argument0;var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);var gmlsalary=0;var ___sw318___=ds_map_find_value(gmlpmap,"position");var ___swc319___=-1;if(yyCompareVal(___sw318___,1,g_GMLMathEpsilon,false)==0){___swc319___=0;}else if(yyCompareVal(___sw318___,2,g_GMLMathEpsilon,false)==0){___swc319___=1;}else if(yyCompareVal(___sw318___,3,g_GMLMathEpsilon,false)==0){___swc319___=2;}else if(yyCompareVal(___sw318___,
4,g_GMLMathEpsilon,false)==0){___swc319___=3;}else if(yyCompareVal(___sw318___,5,g_GMLMathEpsilon,false)==0){___swc319___=4;}else if(yyCompareVal(___sw318___,6,g_GMLMathEpsilon,false)==0){___swc319___=5;}else if(yyCompareVal(___sw318___,7,g_GMLMathEpsilon,false)==0){___swc319___=6;}else if(yyCompareVal(___sw318___,8,g_GMLMathEpsilon,false)==0){___swc319___=7;}else if(yyCompareVal(___sw318___,9,g_GMLMathEpsilon,false)==0){___swc319___=8;}else if(yyCompareVal(___sw318___,10,g_GMLMathEpsilon,false)==0){___swc319___=9;
}switch(___swc319___){case 0:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),1.66);break;}case 1:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),1);break;}case 2:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.9);break;}case 3:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),1.1);break;}case 4:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.8);break;}case 5:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),1);break;}case 6:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.9);break;}case 7:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),
0.8);break;}case 8:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.75);break;}case 9:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.55);break;}};gmlsalary=yyftime(gmlsalary,3);var gmlage=ds_map_find_value(gmlpmap,"age");var gmlmax_age=gml_Script_s_get_max_age(_inst,_other,gmlpmap);if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){gmlsalary=yyftime(gmlsalary,0.6);}else {if(yyfgreater(gmlage,yyfminus(__yy_gml_errCheck(gmlmax_age),2))){gmlsalary=yyftime(gmlsalary,0.55);}else {if(yyfgreater(gmlage,
yyfminus(__yy_gml_errCheck(gmlmax_age),3))){gmlsalary=yyftime(gmlsalary,0.65);}else {if(yyfgreater(gmlage,yyfminus(__yy_gml_errCheck(gmlmax_age),4))){gmlsalary=yyftime(gmlsalary,0.75);}else {if(yyfgreater(gmlage,yyfminus(__yy_gml_errCheck(gmlmax_age),5))){gmlsalary=yyftime(gmlsalary,0.85);};};};};};return round(gmlsalary);}}function gml_GlobalScript_s_check_expired_contract_message(_inst,_other){(_inst.gmls_check_expired_contract_message=__yy_method(_inst,gml_Script_s_check_expired_contract_message));
}function gml_Script_s_check_expired_contract_message(_inst,_other){{{var __yy__v679=GetWithArray(97);for(var __yy__v680 in __yy__v679){if(!__yy__v679.hasOwnProperty(__yy__v680))continue;var __yy__v681=__yy__v679[__yy__v680];{if(!yyGetBool(__yy__v681.gmlexpiredcontract_msg_done)){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v681.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v681.gmlfreeagentlist,
gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"signed_year"),0)){{var gmlmsg=gml_Script_s_str(__yy__v681,_inst,"msg_OutOfContractPlayers");if(yyfequal(ds_list_size(__yy__v681.gmlfreeagentlist),1)){{gmlmsg=gml_Script_s_str(__yy__v681,_inst,"msg_OutOfContractPlayer");gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v681,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));};};gml_Script_s_create_message(__yy__v681,_inst,"",gmlmsg,gml_Script_s_str(__yy__v681,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);__yy__v681.gmlexpiredcontract_msg_done=true;return;};};}};};};}}};}}function gml_GlobalScript_s_get_salary_cap_space(_inst,_other){(_inst.gmls_get_salary_cap_space=__yy_method(_inst,gml_Script_s_get_salary_cap_space));}function gml_Script_s_get_salary_cap_space(_inst,
_other){{{var __yy__v682=GetWithArray(97);for(var __yy__v683 in __yy__v682){if(!__yy__v682.hasOwnProperty(__yy__v683))continue;var __yy__v684=__yy__v682[__yy__v683];{return yyfminus(yyfplus(__yy_gml_errCheck(__yy__v684.gmlsalary_cap),__yy_gml_errCheck(__yy__v684.gmlboost_salary_cap)),__yy_gml_errCheck(gml_Script_s_get_salary_total(__yy__v684,_inst)));}}};}}function gml_GlobalScript_s_create_new_save(_inst,_other){(_inst.gmls_create_new_save=__yy_method(_inst,gml_Script_s_create_new_save));(_inst.gmls_regen_clean_save_mode_dependent_data=__yy_method(_inst,
gml_Script_s_regen_clean_save_mode_dependent_data));(_inst.gmls_load_co_mode_files=__yy_method(_inst,gml_Script_s_load_co_mode_files));}function gml_Script_s_create_new_save(_inst,_other){{gml_Script_slog(_inst,_other,"s_create_new_save");{var __yy__v685=GetWithArray(97);for(var __yy__v686 in __yy__v685){if(!__yy__v685.hasOwnProperty(__yy__v686))continue;var __yy__v687=__yy__v685[__yy__v686];{__yy__v687.gmlnewslist=ds_list_create();__yy__v687.gmllist_news_dyn=ds_list_create();__yy__v687.gmldilemma_tags=ds_list_create();
__yy__v687.gmlnews_tags=ds_list_create();__yy__v687.gmlteamlist=gml_Script_s_load_teams(__yy__v687,_inst);__yy__v687.gmlachievements=gml_Script_s_load_map_file(__yy__v687,_inst,"Achievements.txt");__yy__v687.gmlrecords=gml_Script_s_load_map_file(__yy__v687,_inst,"PlayerRecords.txt");__yy__v687.gmlhistory=ds_list_create();__yy__v687.gmlschedule=gml_Script_s_load_schedule(__yy__v687,_inst);__yy__v687.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v687,_inst);__yy__v687.gmlplayoffs=ds_list_create();
__yy__v687.gmldraftlist=ds_list_create();__yy__v687.gmlhirelist=ds_list_create();__yy__v687.gmlstorelist=ds_list_create();__yy__v687.gmltradelist=ds_list_create();__yy__v687.gmlfreeagentlist=ds_list_create();__yy__v687.gmlroster=ds_list_create();__yy__v687.gmlstafflist=ds_list_create();__yy__v687.gmlhoflist=ds_list_create();__yy__v687.gmlrbhistorylist=ds_list_create();__yy__v687.gmlshoppinglist=gml_Script_s_load_map_file(__yy__v687,_inst,"Shopping.txt");__yy__v687.gmllist_teams_rejected=ds_list_create();
__yy__v687.gmlface_grid_L=ds_grid_create(8,3);__yy__v687.gmlface_grid_M=ds_grid_create(8,1);__yy__v687.gmlface_grid_D=ds_grid_create(8,8);__yy__v687.gmlface_grid_C=ds_grid_create(9,4);ds_grid_clear(__yy__v687.gmlface_grid_L,0);ds_grid_clear(__yy__v687.gmlface_grid_M,0);ds_grid_clear(__yy__v687.gmlface_grid_D,0);ds_grid_clear(__yy__v687.gmlface_grid_C,0);gml_Script_s_create_new_roster(__yy__v687,_inst);gml_Script_s_create_new_stafflist(__yy__v687,_inst);__yy__v687.gmldo_welcome_msg=true;}}};}}function gml_Script_s_regen_clean_save_mode_dependent_data(_inst,
_other){{yyInst(_inst,_other,97).gmlteamlist=gml_Script_s_load_teams(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{{var __yy__v688=GetWithArray(97);for(var __yy__v689 in __yy__v688){if(!__yy__v688.hasOwnProperty(__yy__v689))continue;var __yy__v690=__yy__v688[__yy__v689];{gml_Script_s_load_co_mode_files(__yy__v690,_inst);__yy__v690.gmlschedule=gml_Script_s_load_schedule(__yy__v690,_inst);__yy__v690.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v690,_inst);}}};};};gml_Script_s_create_new_roster(_inst,
_other);gml_Script_s_create_new_stafflist(_inst,_other);}}function gml_Script_s_load_co_mode_files(_inst,_other){{{var __yy__v691=GetWithArray(97);for(var __yy__v692 in __yy__v691){if(!__yy__v691.hasOwnProperty(__yy__v692))continue;var __yy__v693=__yy__v691[__yy__v692];{__yy__v693.gmlhobbies=gml_Script_s_load_map_file(__yy__v693,_inst,"Hobbies_CO.txt");__yy__v693.gmlmajorminor=gml_Script_s_load_map_file(__yy__v693,_inst,"MajorMinor_CO.txt");__yy__v693.gmlcities=gml_Script_s_load_map_file(__yy__v693,_inst,
"Cities_CO.txt");__yy__v693.gmltraits=gml_Script_s_load_map_file(__yy__v693,_inst,"Traits_CO.txt");__yy__v693.gmlepilogue=gml_Script_s_load_map_file(__yy__v693,_inst,"EpilogueValues_CO.txt");}}};}}function gml_GlobalScript_s_loadgame(_inst,_other){(_inst.gmls_loadgame=__yy_method(_inst,gml_Script_s_loadgame));(_inst.gmls_is_player_pmap_corrupt=__yy_method(_inst,gml_Script_s_is_player_pmap_corrupt));(_inst.gmls_check_for_return_stats=__yy_method(_inst,gml_Script_s_check_for_return_stats));(_inst.gmls_check_longest_records=__yy_method(_inst,
gml_Script_s_check_longest_records));(_inst.gmls_update_ui_colours=__yy_method(_inst,gml_Script_s_update_ui_colours));(_inst.gmls_update_game_title=__yy_method(_inst,gml_Script_s_update_game_title));}function gml_Script_s_loadgame(_inst,_other,argument0){{{var __yy__v694=GetWithArray(97);for(var __yy__v695 in __yy__v694){if(!__yy__v694.hasOwnProperty(__yy__v695))continue;var __yy__v696=__yy__v694[__yy__v695];{gml_Script_slog(__yy__v696,_inst,yyfplus("loading save data: ",__yy_gml_errCheck(argument0)));
ini_open(argument0);__yy__v696.gmlstart_year=ini_read_real("savegame","start_year",2022);__yy__v696.gmlyear_stagger=ini_read_real("savegame","year_stagger",irandom(12));__yy__v696.gmllast_week_regular=ini_read_real("savegame","last_week_regular",17);__yy__v696.gmlfirst_week_playoffs=ini_read_real("savegame","first_week_playoffs",18);__yy__v696.gmlyear=ini_read_real("savegame","year",1);__yy__v696.gmlweek=ini_read_real("savegame","week",1);__yy__v696.gmlstage=ini_read_real("savegame","stage",1);__yy__v696.gmlintro=ini_read_real("savegame",
"intro",1);__yy__v696.gmlfname=ini_read_string("savegame","fname","");__yy__v696.gmllname=ini_read_string("savegame","lname","");__yy__v696.gmlqb_mode=ini_read_real("savegame","qb_mode",0);__yy__v696.gmlco_mode=ini_read_real("savegame","co_mode",0);__yy__v696.gmlfr_mode=ini_read_real("savegame","fr_mode",1);__yy__v696.gmlfname_coach=ini_read_string("savegame","fname_coach","");__yy__v696.gmllname_coach=ini_read_string("savegame","lname_coach","");__yy__v696.gmlstarrating=ini_read_real("savegame",
"starrating",0);__yy__v696.gmlrelationship_boss=ini_read_real("savegame","relationship_boss",50);__yy__v696.gmlqb_salary=ini_read_real("savegame","qb_salary",1);__yy__v696.gmlqb_tdbonus=ini_read_real("savegame","qb_tdbonus",1);__yy__v696.gmlqb_training_hiscore=ini_read_real("savegame","qb_training_hiscore",0);__yy__v696.gmlqb_nrg=ini_read_real("savegame","qb_nrg",1);__yy__v696.gmlmyteam_id=ini_read_real("savegame","myteam_id",0);__yy__v696.gmlmyface_x=ini_read_real("savegame","myface_x",(-1));__yy__v696.gmlmyface_y=ini_read_real("savegame",
"myface_y",(-1));__yy__v696.gmlfavourite_team_id=ini_read_real("savegame","favourite_team_id",0);__yy__v696.gmlsuppress_difficulty=ini_read_real("savegame","suppress_difficulty",5);__yy__v696.gmlsalary_cap=ini_read_real("savegame","salary_cap",150);if(yyfless(__yy__v696.gmlsalary_cap,150)){__yy__v696.gmlsalary_cap=150;};if(yyGetBool(global.gmlconsole_build)){__yy__v696.gmlsalary_cap=200;};__yy__v696.gmlboost_salary_cap=abs(ini_read_real("savegame","boost_salary_cap",0));__yy__v696.gmlprematch_dilemma_done=ini_read_real("savegame",
"prematch_dilemma_done",0);__yy__v696.gmltip_count=ini_read_real("savegame","tip_count",0);__yy__v696.gmlmatchcount=ini_read_real("savegame","matchcount",0);__yy__v696.gmlgamestarts=ini_read_real("savegame","gamestarts",0);__yy__v696.gmltimeout_message_done=ini_read_real("savegame","timeout_message_done",0);__yy__v696.gmlbullet_throw_message_done=ini_read_real("savegame","bullet_throw_message_done",0);__yy__v696.gmltag_hof_message_done=ini_read_real("savegame","tag_hof_message_done",0);__yy__v696.gmltag_kr_message_done=ini_read_real("savegame",
"tag_kr_message_done",0);__yy__v696.gmlseason_credits_purchased=ini_read_real("savegame","season_credits_purchased",0);__yy__v696.gmlop_ball=ini_read_real("savegame","op_ball",0);__yy__v696.gmlcoach_credit=ini_read_real("savegame","coach_credit",0);__yy__v696.gmlpurchased_credit=ini_read_real("savegame","purchased_credit",0);__yy__v696.gmlcoach_rating=ini_read_real("savegame","coach_rating",1);__yy__v696.gmlfans=ini_read_real("savegame","fans",30);__yy__v696.gmlfacility_stadium=ini_read_real("savegame",
"facility_stadium",1);__yy__v696.gmlfacility_training=ini_read_real("savegame","facility_training",1);__yy__v696.gmlfacility_rehab=ini_read_real("savegame","facility_rehab",1);__yy__v696.gmlfacility_upgraded_stadium=ini_read_real("savegame","facility_upgraded_stadium",0);__yy__v696.gmlfacility_upgraded_training=ini_read_real("savegame","facility_upgraded_training",0);__yy__v696.gmlfacility_upgraded_rehab=ini_read_real("savegame","facility_upgraded_rehab",0);__yy__v696.gmltraining_reg_df=ini_read_real("savegame",
"training_reg_df",2);__yy__v696.gmltraining_reg_of=ini_read_real("savegame","training_reg_of",2);__yy__v696.gmldraft_round=ini_read_real("savegame","draft_round",0);__yy__v696.gmldraft_picks=__yy_gml_array_check(__yy__v696.gmldraft_picks,2336348355);__yy__v696.gmldraft_picks[__yy_gml_array_check_index_set(0)]=ini_read_real("savegame","draft_picks_0",0);__yy__v696.gmldraft_picks[__yy_gml_array_check_index_set(1)]=ini_read_real("savegame","draft_picks_1",0);__yy__v696.gmldraft_picks[__yy_gml_array_check_index_set(2)]=ini_read_real("savegame",
"draft_picks_2",0);__yy__v696.gmldraft_info_done=ini_read_real("savegame","draft_info_done",0);__yy__v696.gmlexpiredcontract_msg_done=ini_read_real("savegame","expiredcontract_msg_done",0);__yy__v696.gmloffers_done=ini_read_real("savegame","offers_done",0);__yy__v696.gmlop_difficulty=ini_read_real("savegame","op_difficulty",0);__yy__v696.gmlop_matchlength=ini_read_real("savegame","op_matchlength",0);__yy__v696.gmlop_autorun=ini_read_real("savegame","op_autorun",1);__yy__v696.gmlname_conf1=ini_read_string("savegame",
"name_conf1",gml_Script_s_str(__yy__v696,_inst,"conf_AFC"));gml_Script_slog(__yy__v696,_inst,yyfplus(">>>>>>>>>>>>>>>>>>>>>>> ",__yy_gml_errCheck(__yy__v696.gmlname_conf1)));__yy__v696.gmlname_conf2=ini_read_string("savegame","name_conf2",gml_Script_s_str(__yy__v696,_inst,"conf_NFC"));__yy__v696.gmlname_div1=ini_read_string("savegame","name_div1",gml_Script_s_str(__yy__v696,_inst,"division_East"));__yy__v696.gmlname_div2=ini_read_string("savegame","name_div2",gml_Script_s_str(__yy__v696,_inst,"division_West"));
__yy__v696.gmlname_div3=ini_read_string("savegame","name_div3",gml_Script_s_str(__yy__v696,_inst,"division_North"));__yy__v696.gmlname_div4=ini_read_string("savegame","name_div4",gml_Script_s_str(__yy__v696,_inst,"division_South"));__yy__v696.gmlname_div1b=ini_read_string("savegame","name_div1b",gml_Script_s_str(__yy__v696,_inst,"division_East"));__yy__v696.gmlname_div2b=ini_read_string("savegame","name_div2b",gml_Script_s_str(__yy__v696,_inst,"division_West"));__yy__v696.gmlname_div3b=ini_read_string("savegame",
"name_div3b",gml_Script_s_str(__yy__v696,_inst,"division_North"));__yy__v696.gmlname_div4b=ini_read_string("savegame","name_div4b",gml_Script_s_str(__yy__v696,_inst,"division_South"));__yy__v696.gmlnewslist=ds_list_create();__yy__v696.gmllist_news_dyn=ds_list_create();__yy__v696.gmldilemma_tags=ds_list_create();__yy__v696.gmlnews_tags=ds_list_create();__yy__v696.gmlteamlist=ds_list_create();__yy__v696.gmlachievements=ds_list_create();__yy__v696.gmlrecords=ds_list_create();__yy__v696.gmlhistory=ds_list_create();
__yy__v696.gmlschedule=ds_list_create();__yy__v696.gmlfixturelist=ds_list_create();__yy__v696.gmlplayoffs=ds_list_create();__yy__v696.gmldraftlist=ds_list_create();__yy__v696.gmlhirelist=ds_list_create();__yy__v696.gmlstorelist=ds_list_create();__yy__v696.gmltradelist=ds_list_create();__yy__v696.gmlfreeagentlist=ds_list_create();__yy__v696.gmlroster=ds_list_create();__yy__v696.gmlstafflist=ds_list_create();__yy__v696.gmlhoflist=ds_list_create();__yy__v696.gmlrbhistorylist=ds_list_create();__yy__v696.gmlshoppinglist=ds_list_create();
__yy__v696.gmllist_teams_rejected=ds_list_create();__yy__v696.gmlface_grid_L=ds_grid_create(8,3);__yy__v696.gmlface_grid_M=ds_grid_create(8,1);__yy__v696.gmlface_grid_D=ds_grid_create(8,8);__yy__v696.gmlface_grid_C=ds_grid_create(9,4);ds_grid_clear(__yy__v696.gmlface_grid_L,0);ds_grid_clear(__yy__v696.gmlface_grid_M,0);ds_grid_clear(__yy__v696.gmlface_grid_D,0);ds_grid_clear(__yy__v696.gmlface_grid_C,0);ds_list_read(__yy__v696.gmlnewslist,ini_read_string("savegame","news","0"));ds_list_read(__yy__v696.gmldilemma_tags,
ini_read_string("savegame","dilemma_tags","0"));ds_list_read(__yy__v696.gmlnews_tags,ini_read_string("savegame","news_tags","0"));__yy__v696.gmlsize=ini_read_real("savegame","news_dyn",0);gml_Script_slog(__yy__v696,_inst,yyfplus("news_dyn list size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlr=0;for(;yyfless(gmlr,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,
ini_read_string("savegame",yyfplus("news_dyn_",__yy_gml_errCheck(string(gmlr))),""));ds_list_add(__yy__v696.gmllist_news_dyn,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","teamlist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("teamlist size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,
ini_read_string("savegame",yyfplus("teamlist_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v696.gmlteamlist,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","achievements",0);gml_Script_slog(__yy__v696,_inst,yyfplus("achievements size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,
ini_read_string("savegame",yyfplus("achievements_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v696.gmlachievements,gmlmap);}};gml_Script_s_update_maplist_from_file(__yy__v696,_inst,__yy__v696.gmlachievements,"Achievements.txt");__yy__v696.gmlsize=ini_read_real("savegame","records",0);gml_Script_slog(__yy__v696,_inst,yyfplus("records size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));if(yyfequal(__yy__v696.gmlsize,0)){{__yy__v696.gmlrecords=gml_Script_s_load_map_file(__yy__v696,_inst,
"PlayerRecords.txt");__yy__v696.gmlsize=ds_list_size(__yy__v696.gmlrecords);gml_Script_slog(__yy__v696,_inst,yyfplus("new records size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));};}else {{var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("records_",__yy_gml_errCheck(string(gmlm))),""));if((yyGetBool(yyfequal(ds_map_find_value(gmlmap,
"tag"),"ui_MostSacksGame")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostSacksSeason")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostSacksCareer")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostTacklesGame")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostTacklesSeason")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostTacklesCareer")))){{if(yyfgreater(string_count(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v696,
_inst,5))," "),ds_map_find_value(gmlmap,"playername")),0)){{continue;};};};};ds_list_add(__yy__v696.gmlrecords,gmlmap);}};gml_Script_s_update_maplist_from_file(__yy__v696,_inst,__yy__v696.gmlrecords,"PlayerRecords.txt");};};__yy__v696.gmlsize=ini_read_real("savegame","history",0);gml_Script_slog(__yy__v696,_inst,yyfplus("history size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),
g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("history_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v696.gmlhistory,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","schedule",0);gml_Script_slog(__yy__v696,_inst,yyfplus("schedule size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){
{var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("schedule_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v696.gmlschedule,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","fixturelist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("fixture size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{
var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("fixture_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v696.gmlfixturelist,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","playoffs",0);gml_Script_slog(__yy__v696,_inst,yyfplus("play-off size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlmap=ds_map_create();
ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("playoff_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v696.gmlplayoffs,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","draftlist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("draft size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmld=0;for(;yyfless(gmld,__yy__v696.gmlsize);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,
ini_read_string("savegame",yyfplus("draftlist_",__yy_gml_errCheck(string(gmld))),""));gml_Script_s_check_for_return_stats(__yy__v696,_inst,gmlmap);ds_list_add(__yy__v696.gmldraftlist,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","hirelist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("hire list size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmld=0;for(;yyfless(gmld,__yy__v696.gmlsize);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){
{var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("hirelist_",__yy_gml_errCheck(string(gmld))),""));ds_list_add(__yy__v696.gmlhirelist,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","storelist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("storelist size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmld=0;for(;yyfless(gmld,__yy__v696.gmlsize);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{
var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("storelist_",__yy_gml_errCheck(string(gmld))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v696,_inst,gmlmap))){{ds_map_destroy(gmlmap);gmlmap=(-1);continue;};};gml_Script_s_check_for_return_stats(__yy__v696,_inst,gmlmap);ds_list_add(__yy__v696.gmlstorelist,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","tradelist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("tradelist size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));
var gmlr=0;for(;yyfless(gmlr,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("tradelist_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v696,_inst,gmlmap))){{ds_map_destroy(gmlmap);gmlmap=(-1);continue;};};gml_Script_s_check_for_return_stats(__yy__v696,_inst,gmlmap);ds_list_add(__yy__v696.gmltradelist,
gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","freeagentlist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("freeagentlist size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlr=0;for(;yyfless(gmlr,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("freeagentlist_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v696,
_inst,gmlmap))){{ds_map_destroy(gmlmap);gmlmap=(-1);continue;};};gml_Script_s_check_for_return_stats(__yy__v696,_inst,gmlmap);ds_list_add(__yy__v696.gmlfreeagentlist,gmlmap);}};__yy__v696.gmlsize=ini_read_real("savegame","roster",0);gml_Script_slog(__yy__v696,_inst,yyfplus("roster size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlr=0;for(;yyfless(gmlr,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_map_create();
ds_map_read(gmlpmap,ini_read_string("savegame",yyfplus("roster_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v696,_inst,gmlpmap))){{ds_map_destroy(gmlpmap);gmlpmap=(-1);continue;};};gml_Script_s_check_longest_records(__yy__v696,_inst,gmlpmap);ds_list_add(__yy__v696.gmlroster,gmlpmap);}};__yy__v696.gmlsize=ini_read_real("savegame","stafflist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("stafflist size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));
var gmlr=0;for(;yyfless(gmlr,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_map_create();ds_map_read(gmlpmap,ini_read_string("savegame",yyfplus("stafflist_",__yy_gml_errCheck(string(gmlr))),""));ds_map_set(gmlpmap,"flash_time",(-9999));if(!yyGetBool(ds_map_exists(gmlpmap,"randnum"))){ds_map_set(gmlpmap,"randnum",irandom(999));};if(!yyGetBool(ds_map_exists(gmlpmap,"xp_level"))){{ds_map_set(gmlpmap,"xp_level",
ds_map_find_value(gmlpmap,"rating"));ds_map_set(gmlpmap,"xp",0);ds_map_set(gmlpmap,"xp_gain",0);};};ds_list_add(__yy__v696.gmlstafflist,gmlpmap);}};__yy__v696.gmlsize=ini_read_real("savegame","hoflist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("hoflist size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlr=0;for(;yyfless(gmlr,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_map_create();ds_map_read(gmlpmap,
ini_read_string("savegame",yyfplus("hoflist_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v696,_inst,gmlpmap))){{ds_map_destroy(gmlpmap);gmlpmap=(-1);continue;};};ds_list_add(__yy__v696.gmlhoflist,gmlpmap);}};__yy__v696.gmlsize=ini_read_real("savegame","rbhistorylist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("rbhistorylist size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlr=0;for(;yyfless(gmlr,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlr,
gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlmap=ds_map_create();var gmlstr=ini_read_string("savegame",yyfplus("rbhistorylist_",__yy_gml_errCheck(string(gmlr))),"");gml_Script_slog(__yy__v696,_inst,gmlstr);ds_map_read(gmlmap,gmlstr);ds_list_add(__yy__v696.gmlrbhistorylist,gmlmap);}};ds_grid_read(__yy__v696.gmlface_grid_L,ini_read_string("savegame","face_grid_L","0"));ds_grid_read(__yy__v696.gmlface_grid_M,ini_read_string("savegame","face_grid_M","0"));ds_grid_read(__yy__v696.gmlface_grid_D,
ini_read_string("savegame","face_grid_D","0"));ds_grid_read(__yy__v696.gmlface_grid_C,ini_read_string("savegame","face_grid_C","0"));__yy__v696.gmlsize=ini_read_real("savegame","shoppinglist",0);gml_Script_slog(__yy__v696,_inst,yyfplus("shoppinglist size=",__yy_gml_errCheck(string(__yy__v696.gmlsize))));var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,
ini_read_string("savegame",yyfplus("shoppinglist_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v696.gmlshoppinglist,gmlmap);}};gml_Script_s_update_maplist_from_file(__yy__v696,_inst,__yy__v696.gmlshoppinglist,"Shopping.txt");__yy__v696.gmlsize=ini_read_real("savegame","list_teams_rejected",0);var gmlm=0;for(;yyfless(gmlm,__yy__v696.gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{ds_list_add(__yy__v696.gmllist_teams_rejected,
ini_read_real("savegame",yyfplus("list_teams_rejected_",__yy_gml_errCheck(string(gmlm))),(-1)));}};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v696,_inst))){{__yy__v696.gmlrecruitment_credits=ini_read_real("savegame","recruitment_credits",0);__yy__v696.gmlrecruitment_credits_cap=ini_read_real("savegame","recruitment_credits_cap",25);__yy__v696.gmlboost_recruitment_credits_cap=abs(ini_read_real("savegame","boost_recruitment_credits_cap",0));__yy__v696.gmlcollege_admissions_draft_round=ini_read_real("savegame",
"college_admissions_draft_round",0);__yy__v696.gmlcollege_admissions_warn_once=ini_read_real("savegame","college_admissions_warn_once",1);};};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v696,_inst))){global.gmldebug=true;};ini_close();__yy__v696.gmlstage=1;}}};gml_Script_s_update_human_playoff_fixtures(_inst,_other);gml_Script_s_check_staff_exist(_inst,_other);gml_Script_s_update_ui_colours(_inst,_other);gml_Script_s_refresh_strings(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){
{yyInst(_inst,_other,97).gmlhobbies=gml_Script_s_load_map_file(_inst,_other,"Hobbies_CO.txt");yyInst(_inst,_other,97).gmlmajorminor=gml_Script_s_load_map_file(_inst,_other,"MajorMinor_CO.txt");yyInst(_inst,_other,97).gmlcities=gml_Script_s_load_map_file(_inst,_other,"Cities_CO.txt");yyInst(_inst,_other,97).gmltraits=gml_Script_s_load_map_file(_inst,_other,"Traits_CO.txt");yyInst(_inst,_other,97).gmlepilogue=gml_Script_s_load_map_file(_inst,_other,"EpilogueValues_CO.txt");};};}}function gml_Script_s_is_player_pmap_corrupt(_inst,
_other,argument0){{if(!yyGetBool(ds_map_exists(argument0,"position"))){return true;};if(!yyGetBool(ds_map_exists(argument0,"lname"))){return true;};if(!yyGetBool(ds_map_exists(argument0,"condition"))){return true;};if(!yyGetBool(is_real(ds_map_find_value(argument0,"position")))){ds_map_set(argument0,"position",real(ds_map_find_value(argument0,"position")));};if(!yyGetBool(is_string(ds_map_find_value(argument0,"lname")))){ds_map_set(argument0,"lname",string(ds_map_find_value(argument0,"lname")));};if(!yyGetBool(is_real(ds_map_find_value(argument0,
"condition")))){ds_map_set(argument0,"condition",real(ds_map_find_value(argument0,"condition")));};if((yyGetBool(ds_map_exists(argument0,"strength")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"strength"),10)))){ds_map_set(argument0,"strength",10);};if((yyGetBool(ds_map_exists(argument0,"stamina")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stamina"),10)))){ds_map_set(argument0,"stamina",10);};if((yyGetBool(ds_map_exists(argument0,"speed")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,
"speed"),10)))){ds_map_set(argument0,"speed",10);};if((yyGetBool(ds_map_exists(argument0,"skill")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"skill"),10)))){ds_map_set(argument0,"skill",10);};ds_map_set(argument0,"flash_time",(-9999));if(!yyGetBool(ds_map_exists(argument0,"randnum"))){ds_map_set(argument0,"randnum",irandom(999));};gml_Script_s_check_for_return_stats(_inst,_other,argument0);return false;}}function gml_Script_s_check_for_return_stats(_inst,_other,argument0){{if(!yyGetBool(ds_map_exists(argument0,
"stat_return_attempts"))){ds_map_set(argument0,"stat_return_attempts",0);};if(!yyGetBool(ds_map_exists(argument0,"stat_return_yards"))){ds_map_set(argument0,"stat_return_yards",0);};if(!yyGetBool(ds_map_exists(argument0,"stat_return_tds"))){ds_map_set(argument0,"stat_return_tds",0);};if(!yyGetBool(ds_map_exists(argument0,"stat_return_longest"))){ds_map_set(argument0,"stat_return_longest",0);};if(!yyGetBool(ds_map_exists(argument0,"season_return_attempts"))){ds_map_set(argument0,"season_return_attempts",
0);};if(!yyGetBool(ds_map_exists(argument0,"season_return_yards"))){ds_map_set(argument0,"season_return_yards",0);};if(!yyGetBool(ds_map_exists(argument0,"season_return_tds"))){ds_map_set(argument0,"season_return_tds",0);};if(!yyGetBool(ds_map_exists(argument0,"season_return_longest"))){ds_map_set(argument0,"season_return_longest",0);};if(!yyGetBool(ds_map_exists(argument0,"career_return_attempts"))){ds_map_set(argument0,"career_return_attempts",0);};if(!yyGetBool(ds_map_exists(argument0,"career_return_yards"))){
ds_map_set(argument0,"career_return_yards",0);};if(!yyGetBool(ds_map_exists(argument0,"career_return_tds"))){ds_map_set(argument0,"career_return_tds",0);};if(!yyGetBool(ds_map_exists(argument0,"career_return_longest"))){ds_map_set(argument0,"career_return_longest",0);};if(yyfequal(ds_map_find_value(argument0,"position"),10)){{if(!yyGetBool(ds_map_exists(argument0,"stat_attempts_XP"))){ds_map_set(argument0,"stat_attempts_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"season_attempts_XP"))){ds_map_set(argument0,
"season_attempts_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"career_attempts_XP"))){ds_map_set(argument0,"career_attempts_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"stat_complete_XP"))){ds_map_set(argument0,"stat_complete_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"season_complete_XP"))){ds_map_set(argument0,"season_complete_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"career_complete_XP"))){ds_map_set(argument0,"career_complete_XP",0);};};};}}function gml_Script_s_check_longest_records(_inst,
_other,argument0){{var gmllmax=100;if(yyfequal(ds_map_find_value(argument0,"position"),10)){gmllmax=65;};if((yyGetBool(ds_map_exists(argument0,"stat_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"stat_longest")),gmllmax)))){ds_map_set(argument0,"stat_longest",0);};if((yyGetBool(ds_map_exists(argument0,"stat_rush_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"stat_rush_longest")),gmllmax)))){ds_map_set(argument0,"stat_rush_longest",0);};if((yyGetBool(ds_map_exists(argument0,
"season_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"season_longest")),gmllmax)))){ds_map_set(argument0,"season_longest",0);};if((yyGetBool(ds_map_exists(argument0,"season_rush_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"season_rush_longest")),gmllmax)))){ds_map_set(argument0,"season_rush_longest",0);};if((yyGetBool(ds_map_exists(argument0,"career_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"career_longest")),gmllmax)))){ds_map_set(argument0,
"career_longest",0);};if((yyGetBool(ds_map_exists(argument0,"career_rush_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"career_rush_longest")),gmllmax)))){ds_map_set(argument0,"career_rush_longest",0);};}}function gml_Script_s_update_ui_colours(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlfr_mode)){{global.gmlc_background=make_color_rgb(44,104,255);global.gmlc_primary=make_color_rgb(210,210,10);};};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{global.gmlc_background=make_color_rgb(128,
150,208);global.gmlc_buttons=make_color_rgb(170,200,255);};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{global.gmlc_background=make_color_rgb(5,50,110);global.gmlc_primary=make_color_rgb(160,30,50);};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlfr_mode)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))){yyInst(_inst,_other,97).gmlfr_mode=1;};gml_Script_slog(_inst,_other,yyfplus("fr_mode=",__yy_gml_errCheck(string(yyInst(_inst,
_other,97).gmlfr_mode))));gml_Script_slog(_inst,_other,yyfplus("qb_mode=",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlqb_mode))));gml_Script_slog(_inst,_other,yyfplus("co_mode=",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlco_mode))));gml_Script_s_update_game_title(_inst,_other);}}function gml_Script_s_update_game_title(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlfr_mode)){ds_map_set(yyInst(_inst,_other,97).gmlstringmap,"game_Title","Retro Bowl");}else {if(yyGetBool(yyInst(_inst,
_other,97).gmlqb_mode)){ds_map_set(yyInst(_inst,_other,97).gmlstringmap,"game_Title","Retro Bowl MVP");}else {if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){ds_map_set(yyInst(_inst,_other,97).gmlstringmap,"game_Title","Retro Bowl College");};};};}}function gml_GlobalScript_s_savegame(_inst,_other){(_inst.gmls_savegame=__yy_method(_inst,gml_Script_s_savegame));}function gml_Script_s_savegame(_inst,_other){{gml_Script_slog(_inst,_other,"<<< s_savegame >>>");if(yyGetBool(instance_exists(104))){return;
};if(yyfequal(yyInst(_inst,_other,97).gmlstage,4)){return;};if(yyGetBool(yyInst(_inst,_other,97).gmlfirst_load)){{yyInst(_inst,_other,97).gmlfirst_load=false;return;};};if(yyGetBool(global.gmlexhibition)){return;};gml_Script_s_save_options(_inst,_other);{var __yy__v697=GetWithArray(97);for(var __yy__v698 in __yy__v697){if(!__yy__v697.hasOwnProperty(__yy__v698))continue;var __yy__v699=__yy__v697[__yy__v698];{gml_Script_slog(__yy__v699,_inst,"Verify team data...");if((yyGetBool(yyfless(__yy__v699.gmlmyteam_id,
0)))||(yyGetBool(yyfgreater(__yy__v699.gmlmyteam_id,31)))){return;};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v699.gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmltmap=ds_list_find_value(__yy__v699.gmlteamlist,gmli);var gmluid=string(ds_map_find_value(gmltmap,"uid"));var gmlteam_name=ds_map_find_value(gmltmap,"name");var gmltla=ds_map_find_value(gmltmap,"tla");var gmlverify=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmluid)),
". "),__yy_gml_errCheck(gmltla))," - "),__yy_gml_errCheck(gmlteam_name)),"... Ok");gml_Script_slog(__yy__v699,_inst,gmlverify);}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v699.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v699.gmlroster,gmli);var gmlname=ds_map_find_value(gmlpmap,"lname");var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlskin=ds_map_find_value(gmlpmap,"skin");var gmlverify=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlname),
" - "),__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v699,_inst,gmlpos)))," Skin:"),__yy_gml_errCheck(string(gmlskin))),"... Ok");gml_Script_slog(__yy__v699,_inst,gmlverify);}};var gmltmap=ds_list_find_value(__yy__v699.gmlteamlist,__yy__v699.gmlmyteam_id);var gmlteam_name=ds_map_find_value(gmltmap,"name");if(yyGetBool(os_is_paused())){return;};gml_Script_slog(__yy__v699,_inst,yyfplus("My team=",__yy_gml_errCheck(gmlteam_name)));ini_open(gml_Script_s_get_savename(__yy__v699,_inst));ini_write_real("savegame",
"start_year",__yy__v699.gmlstart_year);ini_write_real("savegame","year_stagger",__yy__v699.gmlyear_stagger);ini_write_real("savegame","last_week_regular",__yy__v699.gmllast_week_regular);ini_write_real("savegame","first_week_playoffs",__yy__v699.gmlfirst_week_playoffs);ini_write_real("savegame","year",__yy__v699.gmlyear);ini_write_real("savegame","week",__yy__v699.gmlweek);ini_write_real("savegame","stage",__yy__v699.gmlstage);ini_write_real("savegame","intro",__yy__v699.gmlintro);ini_write_string("savegame",
"fname",__yy__v699.gmlfname);ini_write_string("savegame","lname",__yy__v699.gmllname);ini_write_real("savegame","qb_mode",__yy__v699.gmlqb_mode);ini_write_real("savegame","co_mode",__yy__v699.gmlco_mode);ini_write_real("savegame","fr_mode",__yy__v699.gmlfr_mode);ini_write_string("savegame","fname_coach",__yy__v699.gmlfname_coach);ini_write_string("savegame","lname_coach",__yy__v699.gmllname_coach);ini_write_string("savegame","starrating",__yy__v699.gmlstarrating);ini_write_string("savegame","relationship_boss",
__yy__v699.gmlrelationship_boss);ini_write_string("savegame","qb_salary",__yy__v699.gmlqb_salary);ini_write_string("savegame","qb_tdbonus",__yy__v699.gmlqb_tdbonus);ini_write_string("savegame","qb_training_hiscore",__yy__v699.gmlqb_training_hiscore);ini_write_string("savegame","qb_nrg",__yy__v699.gmlqb_nrg);ini_write_real("savegame","myteam_id",__yy__v699.gmlmyteam_id);ini_write_real("savegame","myface_x",__yy__v699.gmlmyface_x);ini_write_real("savegame","myface_y",__yy__v699.gmlmyface_y);ini_write_real("savegame",
"favourite_team_id",__yy__v699.gmlfavourite_team_id);ini_write_real("savegame","suppress_difficulty",__yy__v699.gmlsuppress_difficulty);ini_write_real("savegame","salary_cap",__yy__v699.gmlsalary_cap);ini_write_real("savegame","boost_salary_cap",__yy__v699.gmlboost_salary_cap);ini_write_real("savegame","prematch_dilemma_done",__yy__v699.gmlprematch_dilemma_done);ini_write_real("savegame","tip_count",__yy__v699.gmltip_count);ini_write_real("savegame","matchcount",__yy__v699.gmlmatchcount);ini_write_real("savegame",
"gamestarts",__yy__v699.gmlgamestarts);ini_write_real("savegame","timeout_message_done",__yy__v699.gmltimeout_message_done);ini_write_real("savegame","bullet_throw_message_done",__yy__v699.gmlbullet_throw_message_done);ini_write_real("savegame","tag_hof_message_done",__yy__v699.gmltag_hof_message_done);ini_write_real("savegame","tag_kr_message_done",__yy__v699.gmltag_kr_message_done);ini_write_real("savegame","season_credits_purchased",__yy__v699.gmlseason_credits_purchased);ini_write_real("savegame",
"op_ball",__yy__v699.gmlop_ball);ini_write_real("savegame","coach_credit",__yy__v699.gmlcoach_credit);ini_write_real("savegame","purchased_credit",__yy__v699.gmlpurchased_credit);ini_write_real("savegame","coach_rating",__yy__v699.gmlcoach_rating);ini_write_real("savegame","fans",__yy__v699.gmlfans);ini_write_real("savegame","facility_stadium",__yy__v699.gmlfacility_stadium);ini_write_real("savegame","facility_training",__yy__v699.gmlfacility_training);ini_write_real("savegame","facility_rehab",
__yy__v699.gmlfacility_rehab);ini_write_real("savegame","facility_upgraded_stadium",__yy__v699.gmlfacility_upgraded_stadium);ini_write_real("savegame","facility_upgraded_training",__yy__v699.gmlfacility_upgraded_training);ini_write_real("savegame","facility_upgraded_rehab",__yy__v699.gmlfacility_upgraded_rehab);ini_write_real("savegame","training_reg_df",__yy__v699.gmltraining_reg_df);ini_write_real("savegame","training_reg_of",__yy__v699.gmltraining_reg_of);ini_write_real("savegame","draft_round",
__yy__v699.gmldraft_round);ini_write_real("savegame","draft_picks_0",__yy__v699.gmldraft_picks[__yy_gml_array_check_index(0,__yy__v699.gmldraft_picks)]);ini_write_real("savegame","draft_picks_1",__yy__v699.gmldraft_picks[__yy_gml_array_check_index(1,__yy__v699.gmldraft_picks)]);ini_write_real("savegame","draft_picks_2",__yy__v699.gmldraft_picks[__yy_gml_array_check_index(2,__yy__v699.gmldraft_picks)]);ini_write_real("savegame","draft_info_done",__yy__v699.gmldraft_info_done);ini_write_real("savegame",
"expiredcontract_msg_done",__yy__v699.gmlexpiredcontract_msg_done);ini_write_real("savegame","offers_done",__yy__v699.gmloffers_done);ini_write_real("savegame","op_difficulty",__yy__v699.gmlop_difficulty);ini_write_real("savegame","op_matchlength",__yy__v699.gmlop_matchlength);ini_write_real("savegame","op_autorun",__yy__v699.gmlop_autorun);gml_Script_slog(__yy__v699,_inst,yyfplus(">>>>>>>>>>>>>>>>>>>>>>> ",__yy_gml_errCheck(__yy__v699.gmlname_conf1)));ini_write_string("savegame","name_conf1",__yy__v699.gmlname_conf1);
ini_write_string("savegame","name_conf2",__yy__v699.gmlname_conf2);ini_write_string("savegame","name_div1",__yy__v699.gmlname_div1);ini_write_string("savegame","name_div2",__yy__v699.gmlname_div2);ini_write_string("savegame","name_div3",__yy__v699.gmlname_div3);ini_write_string("savegame","name_div4",__yy__v699.gmlname_div4);ini_write_string("savegame","name_div1b",__yy__v699.gmlname_div1b);ini_write_string("savegame","name_div2b",__yy__v699.gmlname_div2b);ini_write_string("savegame","name_div3b",
__yy__v699.gmlname_div3b);ini_write_string("savegame","name_div4b",__yy__v699.gmlname_div4b);ini_write_string("savegame","news",ds_list_write(__yy__v699.gmlnewslist));ini_write_string("savegame","dilemma_tags",ds_list_write(__yy__v699.gmldilemma_tags));ini_write_string("savegame","news_tags",ds_list_write(__yy__v699.gmlnews_tags));gmlsize=ds_list_size(__yy__v699.gmllist_news_dyn);ini_write_real("savegame","news_dyn",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),
g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmllist_news_dyn,gmlr));ini_write_string("savegame",yyfplus("news_dyn_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmlsize=ds_list_size(__yy__v699.gmlteamlist);ini_write_real("savegame","teamlist",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmltmap=ds_list_find_value(__yy__v699.gmlteamlist,gmlm);ini_write_string("savegame",
yyfplus("teamlist_",__yy_gml_errCheck(string(gmlm))),ds_map_write(gmltmap));}};var gmlsize=ds_list_size(__yy__v699.gmlachievements);ini_write_real("savegame","achievements",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlval=ds_list_find_value(__yy__v699.gmlachievements,gmlm);ini_write_string("savegame",yyfplus("achievements_",__yy_gml_errCheck(string(gmlm))),ds_map_write(gmlval));}};var gmlsize=ds_list_size(__yy__v699.gmlrecords);
ini_write_real("savegame","records",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlval=ds_list_find_value(__yy__v699.gmlrecords,gmlm);ini_write_string("savegame",yyfplus("records_",__yy_gml_errCheck(string(gmlm))),ds_map_write(gmlval));}};var gmlsize=ds_list_size(__yy__v699.gmlhistory);ini_write_real("savegame","history",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,
gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlhistory,gmlm));ini_write_string("savegame",yyfplus("history_",__yy_gml_errCheck(string(gmlm))),gmlstr);}};gmlsize=ds_list_size(__yy__v699.gmlschedule);ini_write_real("savegame","schedule",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlschedule,
gmlm));ini_write_string("savegame",yyfplus("schedule_",__yy_gml_errCheck(string(gmlm))),gmlstr);}};gmlsize=ds_list_size(__yy__v699.gmlfixturelist);ini_write_real("savegame","fixturelist",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlfixturelist,gmlm));ini_write_string("savegame",yyfplus("fixture_",__yy_gml_errCheck(string(gmlm))),gmlstr);
}};gmlsize=ds_list_size(__yy__v699.gmlplayoffs);ini_write_real("savegame","playoffs",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlplayoffs,gmlm));ini_write_string("savegame",yyfplus("playoff_",__yy_gml_errCheck(string(gmlm))),gmlstr);}};gmlsize=ds_list_size(__yy__v699.gmldraftlist);ini_write_real("savegame","draftlist",gmlsize);var gmlr=0;
for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmldraftlist,gmlr));ini_write_string("savegame",yyfplus("draftlist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,50);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ini_key_delete("savegame",yyfplus("draftlist_",__yy_gml_errCheck(string(gmli))))}
;gmlsize=ds_list_size(__yy__v699.gmlhirelist);ini_write_real("savegame","hirelist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlhirelist,gmlr));ini_write_string("savegame",yyfplus("hirelist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};gmlsize=ds_list_size(__yy__v699.gmlstorelist);ini_write_real("savegame","storelist",gmlsize);var gmlr=0;
for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlstorelist,gmlr));ini_write_string("savegame",yyfplus("storelist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};gmlsize=ds_list_size(__yy__v699.gmltradelist);ini_write_real("savegame","tradelist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),
g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmltradelist,gmlr));ini_write_string("savegame",yyfplus("tradelist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,12);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ini_key_delete("savegame",yyfplus("tradelist_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v699.gmlfreeagentlist);ini_write_real("savegame","freeagentlist",
gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlfreeagentlist,gmlr));ini_write_string("savegame",yyfplus("freeagentlist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,12);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ini_key_delete("savegame",
yyfplus("freeagentlist_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v699.gmlroster);ini_write_real("savegame","roster",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v699.gmlroster,gmlr);var gmlstr=ds_map_write(gmlpmap);gml_Script_slog(__yy__v699,_inst,ds_map_find_value(gmlpmap,"lname"));ini_write_string("savegame",yyfplus("roster_",__yy_gml_errCheck(string(gmlr))),
gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,12);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ini_key_delete("savegame",yyfplus("roster_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v699.gmlstafflist);ini_write_real("savegame","stafflist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlstafflist,
gmlr));ini_write_string("savegame",yyfplus("stafflist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};gmlsize=ds_list_size(__yy__v699.gmlhoflist);ini_write_real("savegame","hoflist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlhoflist,gmlr));ini_write_string("savegame",yyfplus("hoflist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;
for(;yyfless(gmli,50);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ini_key_delete("savegame",yyfplus("hoflist_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v699.gmlrbhistorylist);ini_write_real("savegame","rbhistorylist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlstr=ds_map_write(ds_list_find_value(__yy__v699.gmlrbhistorylist,
gmlr));gml_Script_slog(__yy__v699,_inst,gmlstr);ini_write_string("savegame",yyfplus("rbhistorylist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};ini_write_string("savegame","face_grid_L",ds_grid_write(__yy__v699.gmlface_grid_L));ini_write_string("savegame","face_grid_M",ds_grid_write(__yy__v699.gmlface_grid_M));ini_write_string("savegame","face_grid_D",ds_grid_write(__yy__v699.gmlface_grid_D));ini_write_string("savegame","face_grid_C",ds_grid_write(__yy__v699.gmlface_grid_C));var gmlsize=ds_list_size(__yy__v699.gmlshoppinglist);
ini_write_real("savegame","shoppinglist",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlval=ds_list_find_value(__yy__v699.gmlshoppinglist,gmlm);ini_write_string("savegame",yyfplus("shoppinglist_",__yy_gml_errCheck(string(gmlm))),ds_map_write(gmlval));}};var gmlsize=ds_list_size(__yy__v699.gmllist_teams_rejected);ini_write_real("savegame","list_teams_rejected",gmlsize);var gmlm=0;for(;yyfless(gmlm,
gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlval=ds_list_find_value(__yy__v699.gmllist_teams_rejected,gmlm);ini_write_real("savegame",yyfplus("list_teams_rejected_",__yy_gml_errCheck(string(gmlm))),gmlval);}};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v699,_inst))){{ini_write_real("savegame","recruitment_credits",__yy__v699.gmlrecruitment_credits);ini_write_real("savegame","recruitment_credits_cap",__yy__v699.gmlrecruitment_credits_cap);
ini_write_real("savegame","boost_recruitment_credits_cap",__yy__v699.gmlboost_recruitment_credits_cap);ini_write_real("savegame","college_admissions_draft_round",__yy__v699.gmlcollege_admissions_draft_round);ini_write_real("savegame","college_admissions_warn_once",__yy__v699.gmlcollege_admissions_warn_once);};};ini_close();}}};gml_Script_s_nx_commit(_inst,_other);}}function gml_GlobalScript_s_create_map_options(_inst,_other){(_inst.gmls_create_map_options=__yy_method(_inst,gml_Script_s_create_map_options));
}function gml_Script_s_create_map_options(_inst,_other){{gml_Script_slog(_inst,_other,"creating options map...");{var __yy__v700=GetWithArray(97);for(var __yy__v701 in __yy__v700){if(!__yy__v700.hasOwnProperty(__yy__v701))continue;var __yy__v702=__yy__v700[__yy__v701];{__yy__v702.gmlmap_options=ds_map_create();ds_map_set(__yy__v702.gmlmap_options,"my_version",0);ds_map_set(__yy__v702.gmlmap_options,"fullversion",0);if((yyGetBool(global.gmlconsole_build))||(yyGetBool(global.gmlbrowser))){ds_map_set(__yy__v702.gmlmap_options,
"fullversion",1);};ds_map_set(__yy__v702.gmlmap_options,"op_drivedir",0);ds_map_set(__yy__v702.gmlmap_options,"op_scanlines",0);ds_map_set(__yy__v702.gmlmap_options,"op_weather",ds_map_find_value(__yy__v702.gmlmap_options,"fullversion"));ds_map_set(__yy__v702.gmlmap_options,"op_soundfx",2);ds_map_set(__yy__v702.gmlmap_options,"done_review_reward",0);ds_map_set(__yy__v702.gmlmap_options,"op_zoom",1);ds_map_set(__yy__v702.gmlmap_options,"op_music",1);ds_map_set(__yy__v702.gmlmap_options,"op_credits_purchased",
0);ds_map_set(__yy__v702.gmlmap_options,"saveslot",(-1));ds_map_set(__yy__v702.gmlmap_options,"op_replays",1);ds_map_set(__yy__v702.gmlmap_options,"done_ad_retrogoal",0);ds_map_set(__yy__v702.gmlmap_options,"op_kickoffs",ds_map_find_value(__yy__v702.gmlmap_options,"fullversion"));ds_map_set(__yy__v702.gmlmap_options,"op_invert_throw",0);ds_map_set(__yy__v702.gmlmap_options,"op_gamepad_guides",1);if(yyGetBool(global.gmlmobile_device)){ds_map_set(__yy__v702.gmlmap_options,"op_drivedir",(-1));};if(yyGetBool(global.gmlbrowser)){
{ds_map_set(__yy__v702.gmlmap_options,"op_zoom",0);ds_map_set(__yy__v702.gmlmap_options,"op_replays",0);ds_map_set(__yy__v702.gmlmap_options,"op_soundfx",1);};};ds_map_set(__yy__v702.gmlmap_options,"exh_op_weather",0);ds_map_set(__yy__v702.gmlmap_options,"exh_op_kickoffs",ds_map_find_value(__yy__v702.gmlmap_options,"fullversion"));ds_map_set(__yy__v702.gmlmap_options,"exh_op_drivedir",1);ds_map_set(__yy__v702.gmlmap_options,"exh_op_matchlength",0);gml_Script_s_save_options(__yy__v702,_inst);}}};
}}function gml_GlobalScript_s_count_full_seasons(_inst,_other){(_inst.gmls_count_full_seasons=__yy_method(_inst,gml_Script_s_count_full_seasons));(_inst.gmls_count_games_coached=__yy_method(_inst,gml_Script_s_count_games_coached));(_inst.gmls_count_games_simmed=__yy_method(_inst,gml_Script_s_count_games_simmed));(_inst.gmls_count_fixtures_played=__yy_method(_inst,gml_Script_s_count_fixtures_played));}function gml_Script_s_count_full_seasons(_inst,_other){{{var __yy__v703=GetWithArray(97);for(var __yy__v704 in __yy__v703){
if(!__yy__v703.hasOwnProperty(__yy__v704))continue;var __yy__v705=__yy__v703[__yy__v704];{var gmlseason_count=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v705.gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v705.gmlhistory,gmli);if((yyGetBool(gmlmap))&&(yyGetBool(ds_exists(gmlmap,1)))){{if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool((yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,
"year")),1)))||(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"year")),__yy__v705.gmlyear)))))){continue;};if((yyGetBool(ds_map_exists(gmlmap,"wins_sim")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"wins_sim")),0)))){continue;};if((yyGetBool(ds_map_exists(gmlmap,"losses_sim")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"losses_sim")),0)))){continue;};if((yyGetBool(ds_map_exists(gmlmap,"ties_sim")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"ties_sim")),0)))){continue;
};(g_yyPrePostObject__=gmlseason_count,gmlseason_count=(g_yyPrePostObject__ instanceof Long?gmlseason_count.add(1):++gmlseason_count),g_yyPrePostObject__);};};}};return gmlseason_count;}}};}}function gml_Script_s_count_games_coached(_inst,_other){{var gmlcount=0;var gmllast_map_year=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,
_other,97).gmlhistory,gmli);if(yyGetBool(ds_exists(gmlmap,1))){{if(yyGetBool(ds_map_exists(gmlmap,"wins"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"wins")));};if(yyGetBool(ds_map_exists(gmlmap,"losses"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"losses")));};if(yyGetBool(ds_map_exists(gmlmap,"ties"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"ties")));};if(yyGetBool(ds_map_exists(gmlmap,"wins_po"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,
"wins_po")));};if(yyGetBool(ds_map_exists(gmlmap,"losses_po"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"losses_po")));};if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"year")),gmllast_map_year)))){gmllast_map_year=ds_map_find_value(gmlmap,"year");};};};}};if(yyfless(gmllast_map_year,yyInst(_inst,_other,97).gmlyear)){gmlcount=yyfplus(gmlcount,gml_Script_s_count_fixtures_played(_inst,_other));};return gmlcount;}}function gml_Script_s_count_games_simmed(_inst,
_other){{var gmlcount=0;var gmllast_map_year=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,97).gmlhistory,gmli);if(yyGetBool(ds_exists(gmlmap,1))){{if(yyGetBool(ds_map_exists(gmlmap,"wins_sim"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"wins_sim")));};if(yyGetBool(ds_map_exists(gmlmap,"losses_sim"))){
gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"losses_sim")));};if(yyGetBool(ds_map_exists(gmlmap,"ties_sim"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"ties_sim")));};if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"year")),gmllast_map_year)))){gmllast_map_year=ds_map_find_value(gmlmap,"year");};};};}};if(yyfless(gmllast_map_year,yyInst(_inst,_other,97).gmlyear)){{gmlcount=yyfplus(gmlcount,gml_Script_s_count_simmed_games(_inst,
_other,(-1)));gmlcount=yyfplus(gmlcount,gml_Script_s_count_simmed_games(_inst,_other,0));gmlcount=yyfplus(gmlcount,gml_Script_s_count_simmed_games(_inst,_other,1));};};return gmlcount;}}function gml_Script_s_count_fixtures_played(_inst,_other){{var gmlcount=0;{var __yy__v706=GetWithArray(97);for(var __yy__v707 in __yy__v706){if(!__yy__v706.hasOwnProperty(__yy__v707))continue;var __yy__v708=__yy__v706[__yy__v707];{gmlcount=yyfplus(gmlcount,real(ds_map_find_value(__yy__v708.gmlmyteam,"wins")));gmlcount=yyfplus(gmlcount,
real(ds_map_find_value(__yy__v708.gmlmyteam,"losses")));gmlcount=yyfplus(gmlcount,real(ds_map_find_value(__yy__v708.gmlmyteam,"ties")));}}};return gmlcount;}}function gml_GlobalScript_s_load_options(_inst,_other){(_inst.gmls_load_options=__yy_method(_inst,gml_Script_s_load_options));}function gml_Script_s_load_options(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("loading options...",__yy_gml_errCheck(global.gmlg_optionsave)));{var __yy__v709=GetWithArray(97);for(var __yy__v710 in __yy__v709){if(!__yy__v709.hasOwnProperty(__yy__v710))continue;
var __yy__v711=__yy__v709[__yy__v710];{__yy__v711.gmlmap_options=ds_map_secure_load(global.gmlg_optionsave);if(!yyGetBool(ds_exists(__yy__v711.gmlmap_options,1))){{gml_Script_slog(__yy__v711,_inst,"map_options does not exist");gml_Script_s_create_map_options(__yy__v711,_inst);return;};};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"my_version")))){ds_map_set(__yy__v711.gmlmap_options,"my_version",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"fullversion")))){
ds_map_set(__yy__v711.gmlmap_options,"fullversion",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_soundfx")))){ds_map_set(__yy__v711.gmlmap_options,"op_soundfx",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_drivedir")))){ds_map_set(__yy__v711.gmlmap_options,"op_drivedir",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_scanlines")))){ds_map_set(__yy__v711.gmlmap_options,"op_scanlines",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,
"op_weather")))){ds_map_set(__yy__v711.gmlmap_options,"op_weather",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"done_review_reward")))){ds_map_set(__yy__v711.gmlmap_options,"done_review_reward",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_zoom")))){ds_map_set(__yy__v711.gmlmap_options,"op_zoom",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_music")))){ds_map_set(__yy__v711.gmlmap_options,"op_music",1);
};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_credits_purchased")))){ds_map_set(__yy__v711.gmlmap_options,"op_credits_purchased",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"saveslot")))){ds_map_set(__yy__v711.gmlmap_options,"saveslot",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_replays")))){ds_map_set(__yy__v711.gmlmap_options,"op_replays",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,
"done_ad_retrogoal")))){ds_map_set(__yy__v711.gmlmap_options,"done_ad_retrogoal",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_gamepad")))){ds_map_set(__yy__v711.gmlmap_options,"op_gamepad",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_kickoffs")))){ds_map_set(__yy__v711.gmlmap_options,"op_kickoffs",ds_map_find_value(__yy__v711.gmlmap_options,"fullversion"));};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_invert_throw")))){
ds_map_set(__yy__v711.gmlmap_options,"op_invert_throw",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"op_gamepad_guides")))){ds_map_set(__yy__v711.gmlmap_options,"op_gamepad_guides",1);};if(yyfequal(ds_map_find_value(__yy__v711.gmlmap_options,"op_weather"),"true")){ds_map_set(__yy__v711.gmlmap_options,"op_weather",1);};if(yyfequal(ds_map_find_value(__yy__v711.gmlmap_options,"op_weather"),"false")){ds_map_set(__yy__v711.gmlmap_options,"op_weather",0);};if(yyfgreater(ds_map_find_value(__yy__v711.gmlmap_options,
"op_music"),1)){ds_map_set(__yy__v711.gmlmap_options,"op_music",1);};if(!yyGetBool(global.gmlmobile_device)){ds_map_set(__yy__v711.gmlmap_options,"fullversion",1);};if(yyfless(ds_map_find_value(__yy__v711.gmlmap_options,"fullversion"),1)){{ds_map_set(__yy__v711.gmlmap_options,"op_weather",0);};};ds_map_set(__yy__v711.gmlmap_options,"op_invert_throw",clamp(ds_map_find_value(__yy__v711.gmlmap_options,"op_invert_throw"),0,1));if(!yyGetBool(global.gmlmobile_device)){ds_map_set(__yy__v711.gmlmap_options,
"op_scanlines",0);};if(yyfequal(ds_map_find_value(__yy__v711.gmlmap_options,"op_soundfx"),"false")){ds_map_set(__yy__v711.gmlmap_options,"op_soundfx",0);};if(yyfequal(ds_map_find_value(__yy__v711.gmlmap_options,"op_soundfx"),"true")){ds_map_set(__yy__v711.gmlmap_options,"op_soundfx",1);};if(yyGetBool(global.gmlbrowser)){ds_map_set(__yy__v711.gmlmap_options,"op_soundfx",clamp(ds_map_find_value(__yy__v711.gmlmap_options,"op_soundfx"),0,1));};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,
"exh_op_weather")))){ds_map_set(__yy__v711.gmlmap_options,"exh_op_weather",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"exh_op_kickoffs")))){ds_map_set(__yy__v711.gmlmap_options,"exh_op_kickoffs",ds_map_find_value(__yy__v711.gmlmap_options,"fullversion"));};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,"exh_op_drivedir")))){ds_map_set(__yy__v711.gmlmap_options,"exh_op_drivedir",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v711.gmlmap_options,
"exh_op_matchlength")))){ds_map_set(__yy__v711.gmlmap_options,"exh_op_matchlength",0);};}}};}}function gml_GlobalScript_s_save_options(_inst,_other){(_inst.gmls_save_options=__yy_method(_inst,gml_Script_s_save_options));}function gml_Script_s_save_options(_inst,_other){{gml_Script_slog(_inst,_other,"saving options...");if(yyGetBool(os_is_paused())){return;};{var __yy__v712=GetWithArray(97);for(var __yy__v713 in __yy__v712){if(!__yy__v712.hasOwnProperty(__yy__v713))continue;var __yy__v714=__yy__v712[__yy__v713];
{ds_map_set(__yy__v714.gmlmap_options,"my_version",global.gmlg_version);ds_map_secure_save(__yy__v714.gmlmap_options,global.gmlg_optionsave);}}};gml_Script_s_nx_commit(_inst,_other);}}function gml_GlobalScript_s_save_backup(_inst,_other){(_inst.gmls_save_backup=__yy_method(_inst,gml_Script_s_save_backup));}function gml_Script_s_save_backup(_inst,_other){{if(yyfequal(g_pBuiltIn.get_os_browser(),(-1))){{gml_Script_slog(_inst,_other,"s_save_backup");var gmlsave_name=gml_Script_s_get_savename(_inst,_other);
var gmlbackup_name=yyfplus("backup_",__yy_gml_errCheck(gmlsave_name));if(yyGetBool(file_exists(gmlbackup_name))){file_delete(gmlbackup_name);};file_copy(gmlsave_name,gmlbackup_name);gml_Script_s_nx_commit(_inst,_other);};};}}function gml_GlobalScript_s_load_map_file(_inst,_other){(_inst.gmls_load_map_file=__yy_method(_inst,gml_Script_s_load_map_file));}function gml_Script_s_load_map_file(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_load_mapfile:",__yy_gml_errCheck(argument0)));var gmllist=ds_list_create();
var gmlfile=file_text_open_read(argument0);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,
gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};ds_list_add(gmllist,gmlmap);}};file_text_close(gmlfile);gml_Script_slog(_inst,_other,yyfplus("Added items: ",__yy_gml_errCheck(string(ds_list_size(gmllist)))));return gmllist;}}function gml_GlobalScript_s_update_maplist_from_file(_inst,_other,argument0,argument1){(_inst.gmls_update_maplist_from_file=__yy_method(_inst,gml_Script_s_update_maplist_from_file));}function gml_Script_s_update_maplist_from_file(_inst,
_other,argument0,argument1){{var gmlmaplist=argument0;var gmlfname=argument1;gml_Script_slog(_inst,_other,yyfplus("s_update_maplist_from_file:",__yy_gml_errCheck(gmlfname)));gml_Script_slog(_inst,_other,yyfplus("Existing list = ",__yy_gml_errCheck(string(ds_list_size(gmlmaplist)))));var gmlfile=file_text_open_read(gmlfname);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();
var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};var gmlmapexists=false;var gmli=0;for(;yyfless(gmli,ds_list_size(gmlmaplist));(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmloldmap=ds_list_find_value(gmlmaplist,gmli);if(yyfequal(ds_map_find_value(gmloldmap,"tag"),ds_map_find_value(gmlmap,"tag"))){{gmlmapexists=true;ds_map_set(gmloldmap,"description",ds_map_find_value(gmlmap,"description"));break;};};}};if(!yyGetBool(gmlmapexists)){{ds_list_add(gmlmaplist,gmlmap);};};}};file_text_close(gmlfile);gml_Script_slog(_inst,_other,yyfplus("New list = ",__yy_gml_errCheck(string(ds_list_size(gmlmaplist)))));
}}function gml_GlobalScript_s_load_strings(_inst,_other,argument0,argument1){(_inst.gmls_refresh_strings=__yy_method(_inst,gml_Script_s_refresh_strings));(_inst.gmls_load_strings=__yy_method(_inst,gml_Script_s_load_strings));(_inst.gmls_select_lang=__yy_method(_inst,gml_Script_s_select_lang));(_inst.gmls_select_lang_file=__yy_method(_inst,gml_Script_s_select_lang_file));(_inst.gmls_select_override_lang_file=__yy_method(_inst,gml_Script_s_select_override_lang_file));(_inst.gmls_add_file_to_lang_strings=__yy_method(_inst,
gml_Script_s_add_file_to_lang_strings));}function gml_Script_s_refresh_strings(_inst,_other){{if(yyGetBool(ds_exists(yyInst(_inst,_other,97).gmlstringmap,1))){ds_map_destroy(yyInst(_inst,_other,97).gmlstringmap);};yyInst(_inst,_other,97).gmlstringmap=gml_Script_s_load_strings(_inst,_other);}}function gml_Script_s_load_strings(_inst,_other){{var gmlmap=ds_map_create();gml_Script_s_add_file_to_lang_strings(_inst,_other,gmlmap,gml_Script_s_select_lang_file(_inst,_other));gml_Script_s_add_file_to_lang_strings(_inst,
_other,gmlmap,gml_Script_s_select_override_lang_file(_inst,_other));return gmlmap;}}function gml_Script_s_select_lang(_inst,_other){{if(yyfequal(os_get_config(),"Japan")){{return "JP";};};return "US";}}function gml_Script_s_select_lang_file(_inst,_other){{return yyfplus(yyfplus("Language",__yy_gml_errCheck(gml_Script_s_select_lang(_inst,_other))),".txt");}}function gml_Script_s_select_override_lang_file(_inst,_other){{var gmlmode="FR";if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlmode="CO";};
};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{gmlmode="QB";};};return yyfplus(yyfplus(yyfplus(yyfplus("Language",__yy_gml_errCheck(gml_Script_s_select_lang(_inst,_other))),"_"),__yy_gml_errCheck(gmlmode)),".txt");}}function gml_Script_s_add_file_to_lang_strings(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_add_file_to_lang_strings [",__yy_gml_errCheck(string(argument1))),"]"));var gmlmap=argument0;var gmlfstr=argument1;if(!yyGetBool(file_exists(gmlfstr))){
{return;};};var gmlfile=file_text_open_read(gmlfstr);if(yyfequal(gmlfile,(-1))){{return;};};var gmlc=0;while(!yyGetBool(file_text_eof(gmlfile))){{var gmltxt=file_text_read_string(gmlfile);file_text_readln(gmlfile);var gmlpos=string_pos(" ",gmltxt);if(yyfequal(gmlpos,0)){{continue;};};var gmllen=string_length(gmltxt);(g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__);ds_map_replace(gmlmap,string_copy(gmltxt,1,yyfminus(__yy_gml_errCheck(gmlpos),1)),
string_copy(gmltxt,yyfplus(__yy_gml_errCheck(gmlpos),1),yyfminus(__yy_gml_errCheck(gmllen),1)));}};file_text_close(gmlfile);}}function gml_GlobalScript_s_load_teams(_inst,_other){(_inst.gmls_load_teams=__yy_method(_inst,gml_Script_s_load_teams));}function gml_Script_s_load_teams(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_load_teams co_mode:",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlco_mode)))," "));var gmllist=ds_list_create();var gmlfile=file_text_open_read(gml_Script_s_teams_file(_inst,
_other));var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,
gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};ds_list_add(gmllist,gmlmap);}};file_text_close(gmlfile);return gmllist;}}function gml_GlobalScript_s_load_team_detail(_inst,_other,argument0,argument1){(_inst.gmls_load_team_detail=__yy_method(_inst,gml_Script_s_load_team_detail));}function gml_Script_s_load_team_detail(_inst,_other,argument0,argument1){{var gmltid=argument0;var gmlfindkey=argument1;gml_Script_slog(_inst,_other,yyfplus("s_load_team:",__yy_gml_errCheck(string(gmltid))));
var gmlfile=file_text_open_read(gml_Script_s_teams_file(_inst,_other));var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],gmltid)){{var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{if(yyfequal(gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlfindkey)){{file_text_close(gmlfile);return gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)];};};}};};};}};file_text_close(gmlfile);return "";}}function gml_GlobalScript_s_load_retrobowl_hof(_inst,_other){(_inst.gmls_load_retrobowl_hof=__yy_method(_inst,gml_Script_s_load_retrobowl_hof));}function gml_Script_s_load_retrobowl_hof(_inst,_other){{gml_Script_slog(_inst,_other,"s_load_retrobowl_hof");var gmllist=ds_list_create();
var gmlfile=file_text_open_read("RetroBowlHOF.txt");var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){
{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};ds_list_add(gmllist,gmlmap);}};file_text_close(gmlfile);return gmllist;}}function gml_GlobalScript_s_load_retrobowl_history(_inst,_other){(_inst.gmls_load_retrobowl_history=__yy_method(_inst,gml_Script_s_load_retrobowl_history));}function gml_Script_s_load_retrobowl_history(_inst,_other){{gml_Script_slog(_inst,_other,"s_load_retrobowl_history");var gmllist=ds_list_create();var gmlfile=file_text_open_read("RetroBowl_History.txt");
var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,
gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};if(yyflessequal(real(ds_map_find_value(gmlmap,"year")),yyInst(_inst,_other,97).gmlstart_year)){ds_list_add(gmllist,gmlmap);}else {ds_map_destroy(gmlmap);};}};file_text_close(gmlfile);return gmllist;}}// // slog ("adding fix: "+string(map[? "week"])+":"+string(map[? "away_team"])+"@"+string(map[? "home_team"]));
function gml_GlobalScript_s_load_schedule(_inst,_other){(_inst.gmls_load_schedule=__yy_method(_inst,gml_Script_s_load_schedule));
}function gml_Script_s_load_schedule(_inst,_other){{var gmllist=ds_list_create();var gmlfilename="Schedule17.txt";if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlfilename="Schedule_CO.txt";};};var gmlfile=file_text_open_read(gmlfilename);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));
file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],real(gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]));}};if(yyfequal(yyfminus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"year"))),1),yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlyear),__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlyear_stagger))),12))){{ds_list_add(gmllist,gmlmap);};}else {{ds_map_destroy(gmlmap);gmlmap=(-1);};};}};file_text_close(gmlfile);return gmllist;}}function gml_GlobalScript_s_get_savename(_inst,_other){(_inst.gmls_get_savename=__yy_method(_inst,gml_Script_s_get_savename));}function gml_Script_s_get_savename(_inst,_other){{{var __yy__v715=GetWithArray(97);for(var __yy__v716 in __yy__v715){if(!__yy__v715.hasOwnProperty(__yy__v716))continue;var __yy__v717=__yy__v715[__yy__v716];{var gmlslot=ds_map_find_value(__yy__v717.gmlmap_options,
"saveslot");if(yyfequal(gmlslot,5)){return global.gmlg_savename5;};if(yyfequal(gmlslot,4)){return global.gmlg_savename4;};if(yyfequal(gmlslot,3)){return global.gmlg_savename3;};if(yyfequal(gmlslot,2)){return global.gmlg_savename2;};return global.gmlg_savename1;}}};}}function gml_GlobalScript_s_get_string_save_details(_inst,_other){(_inst.gmls_get_string_save_details=__yy_method(_inst,gml_Script_s_get_string_save_details));}function gml_Script_s_get_string_save_details(_inst,_other,argument0,argument1){
{var gmlfilename=global.gmlg_savename1;if(yyfequal(argument0,2)){gmlfilename=global.gmlg_savename2;};if(yyfequal(argument0,3)){gmlfilename=global.gmlg_savename3;};if(yyfequal(argument0,4)){gmlfilename=global.gmlg_savename4;};if(yyfequal(argument0,5)){gmlfilename=global.gmlg_savename5;};if(yyGetBool(argument1)){gmlfilename=yyfplus("backup_",__yy_gml_errCheck(gmlfilename));};gml_Script_slog(_inst,_other,yyfplus("Getting save details: ",__yy_gml_errCheck(gmlfilename)));if(yyGetBool(file_exists(gmlfilename))){
{gml_Script_slog(_inst,_other,yyfplus("Opening file: ",__yy_gml_errCheck(gmlfilename)));ini_open(gmlfilename);var gmlyear=ini_read_real("savegame","year",1);var gmlweek=ini_read_real("savegame","week",1);var gmlwk=yyfplus("W",__yy_gml_errCheck(string(gmlweek)));if(yyfgreater(gmlweek,18)){gmlwk="PS";};var gmlmy_tid=ini_read_real("savegame","myteam_id",0);ini_close();var gmlteam_name=gml_Script_s_load_teamname_from_uniform_file(_inst,_other,gmlmy_tid,yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(argument0))),
".txt"));var gmltxt=string_hash_to_newline(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlteam_name)," Y"),__yy_gml_errCheck(string(gmlyear)))," "),__yy_gml_errCheck(gmlwk)));return gmltxt;};};return "";}}function gml_GlobalScript_s_destroy_master(_inst,_other){(_inst.gmls_destroy_master=__yy_method(_inst,gml_Script_s_destroy_master));}function gml_Script_s_destroy_master(_inst,_other){{{var __yy__v718=GetWithArray(97);for(var __yy__v719 in __yy__v718){if(!__yy__v718.hasOwnProperty(__yy__v719))continue;
var __yy__v720=__yy__v718[__yy__v719];{ds_map_destroy(__yy__v720.gmlmap_options);ds_map_destroy(__yy__v720.gmlstringmap);__yy__v720.gmlmap_options=(-1);__yy__v720.gmlstringmap=(-1);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlteamlist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlachievements));(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlachievements,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlrecords,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlhistory,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlschedule,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){
ds_map_destroy(ds_list_find_value(__yy__v720.gmlfixturelist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlplayoffs));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlplayoffs,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmldraftlist,
gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlhirelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlhirelist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlstorelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlstorelist,gmli))};var gmli=0;for(;
yyfless(gmli,ds_list_size(__yy__v720.gmltradelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmltradelist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlfreeagentlist,gmli))};var gmli=0;for(;yyfless(gmli,
ds_list_size(__yy__v720.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlroster,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v720.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v720.gmlstafflist,gmli))};ds_list_destroy(__yy__v720.gmlnewslist);ds_list_destroy(__yy__v720.gmllist_news_dyn);
ds_list_destroy(__yy__v720.gmldilemma_tags);ds_list_destroy(__yy__v720.gmlnews_tags);ds_list_destroy(__yy__v720.gmlteamlist);ds_list_destroy(__yy__v720.gmlachievements);ds_list_destroy(__yy__v720.gmlrecords);ds_list_destroy(__yy__v720.gmlhistory);ds_list_destroy(__yy__v720.gmlschedule);ds_list_destroy(__yy__v720.gmlfixturelist);ds_list_destroy(__yy__v720.gmlplayoffs);ds_list_destroy(__yy__v720.gmldraftlist);ds_list_destroy(__yy__v720.gmlhirelist);ds_list_destroy(__yy__v720.gmlstorelist);ds_list_destroy(__yy__v720.gmltradelist);
ds_list_destroy(__yy__v720.gmlfreeagentlist);ds_list_destroy(__yy__v720.gmlroster);ds_list_destroy(__yy__v720.gmlstafflist);ds_list_destroy(__yy__v720.gmlhoflist);ds_list_destroy(__yy__v720.gmlrbhistorylist);__yy__v720.gmlnewslist=(-1);__yy__v720.gmllist_news_dyn=(-1);__yy__v720.gmldilemma_tags=(-1);__yy__v720.gmlnews_tags=(-1);__yy__v720.gmlteamlist=(-1);__yy__v720.gmlachievements=(-1);__yy__v720.gmlrecords=(-1);__yy__v720.gmlhistory=(-1);__yy__v720.gmlschedule=(-1);__yy__v720.gmlfixturelist=(-1);
__yy__v720.gmlplayoffs=(-1);__yy__v720.gmldraftlist=(-1);__yy__v720.gmlhirelist=(-1);__yy__v720.gmlstorelist=(-1);__yy__v720.gmltradelist=(-1);__yy__v720.gmlfreeagentlist=(-1);__yy__v720.gmlroster=(-1);__yy__v720.gmlstafflist=(-1);__yy__v720.gmlhoflist=(-1);__yy__v720.gmlrbhistorylist=(-1);instance_destroy(__yy__v720);}}};}}function gml_GlobalScript_s_save_uniform_file2(_inst,_other,argument0,argument1,argument2){(_inst.gmls_save_uniform_file2=__yy_method(_inst,gml_Script_s_save_uniform_file2));}
function gml_Script_s_save_uniform_file2(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other,"s_save_uniform_file2");var gmluid=argument0;var gmlobj_uni=argument1;var gmluniformtype=argument2;var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))),".txt");if(!yyGetBool(file_exists(gmlfile_name))){file_copy(gml_Script_s_uniforms_default_file(_inst,_other),gmlfile_name);};var gmlfile_old=file_text_open_read(gmlfile_name);
var gmllist=ds_list_create();var gmlcount=(-1);while(!yyGetBool(file_text_eof(gmlfile_old))){{ds_list_add(gmllist,file_text_readln(gmlfile_old));}};file_text_close(gmlfile_old);file_delete(gmlfile_name);var gmlfile_new=file_text_open_write(gmlfile_name);var gmlcount=0;for(;yyfless(gmlcount,ds_list_size(gmllist));(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__)){{if(yyfless(string_length(ds_list_find_value(gmllist,gmlcount)),10)){
continue;};var gmlvalues=gml_Script_s_split_string(_inst,_other,ds_list_find_value(gmllist,gmlcount));if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],gmluid)){{gmlvalues=__yy_gml_array_check(gmlvalues,691104900);gmlvalues[__yy_gml_array_check_index_set(1)]=yyInst(_inst,_other,gmlobj_uni).gmlname;gmlvalues[__yy_gml_array_check_index_set(2)]=yyInst(_inst,_other,gmlobj_uni).gmltla;var ___sw322___=gmluniformtype;var ___swc323___=-1;if(yyCompareVal(___sw322___,0,g_GMLMathEpsilon,false)==0){
___swc323___=0;}else if(yyCompareVal(___sw322___,1,g_GMLMathEpsilon,false)==0){___swc323___=1;}else if(yyCompareVal(___sw322___,2,g_GMLMathEpsilon,false)==0){___swc323___=2;}else if(yyCompareVal(___sw322___,3,g_GMLMathEpsilon,false)==0){___swc323___=3;}switch(___swc323___){case 0:{gmlvalues[__yy_gml_array_check_index_set(3)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_helmet;gmlvalues[__yy_gml_array_check_index_set(4)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_logo;gmlvalues[__yy_gml_array_check_index_set(5)]=yyInst(_inst,
_other,gmlobj_uni).gmlhex_shirt;gmlvalues[__yy_gml_array_check_index_set(6)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_sleeve;gmlvalues[__yy_gml_array_check_index_set(7)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_pants;gmlvalues[__yy_gml_array_check_index_set(8)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_stripe;gmlvalues[__yy_gml_array_check_index_set(9)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks1;gmlvalues[__yy_gml_array_check_index_set(10)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks2;break;}case 1:{
gmlvalues[__yy_gml_array_check_index_set(11)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_helmet;gmlvalues[__yy_gml_array_check_index_set(12)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_logo;gmlvalues[__yy_gml_array_check_index_set(13)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_shirt;gmlvalues[__yy_gml_array_check_index_set(14)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_sleeve;gmlvalues[__yy_gml_array_check_index_set(15)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_pants;gmlvalues[__yy_gml_array_check_index_set(16)]=yyInst(_inst,
_other,gmlobj_uni).gmlhex_stripe;gmlvalues[__yy_gml_array_check_index_set(17)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks1;gmlvalues[__yy_gml_array_check_index_set(18)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks2;break;}case 2:{gmlvalues[__yy_gml_array_check_index_set(19)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_helmet;gmlvalues[__yy_gml_array_check_index_set(20)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_logo;gmlvalues[__yy_gml_array_check_index_set(21)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_shirt;
gmlvalues[__yy_gml_array_check_index_set(22)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_sleeve;gmlvalues[__yy_gml_array_check_index_set(23)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_pants;gmlvalues[__yy_gml_array_check_index_set(24)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_stripe;gmlvalues[__yy_gml_array_check_index_set(25)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks1;gmlvalues[__yy_gml_array_check_index_set(26)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks2;break;}case 3:{gmlvalues[__yy_gml_array_check_index_set(27)]=yyInst(_inst,
_other,gmlobj_uni).gmlhex_helmet;gmlvalues[__yy_gml_array_check_index_set(28)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_logo;gmlvalues[__yy_gml_array_check_index_set(29)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_shirt;gmlvalues[__yy_gml_array_check_index_set(30)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_sleeve;gmlvalues[__yy_gml_array_check_index_set(31)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_pants;gmlvalues[__yy_gml_array_check_index_set(32)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_stripe;gmlvalues[__yy_gml_array_check_index_set(33)]=yyInst(_inst,
_other,gmlobj_uni).gmlhex_socks1;gmlvalues[__yy_gml_array_check_index_set(34)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks2;break;}};gmlvalues[__yy_gml_array_check_index_set(34)]=yyfplus("$",__yy_gml_errCheck(string_lettersdigits(gmlvalues[__yy_gml_array_check_index(34,gmlvalues)])));gmlvalues[__yy_gml_array_check_index_set(35)]=string(yyInst(_inst,_other,gmlobj_uni).gmlroof);gmlvalues[__yy_gml_array_check_index_set(36)]=string(yyInst(_inst,_other,gmlobj_uni).gmlrainfall);gmlvalues[__yy_gml_array_check_index_set(37)]=string(yyInst(_inst,
_other,gmlobj_uni).gmlsnowfall);gmlvalues[__yy_gml_array_check_index_set(38)]=string(yyInst(_inst,_other,gmlobj_uni).gmlhex_endzone);ds_list_set(gmllist,gmlcount,gmlvalues[__yy_gml_array_check_index(0,gmlvalues)]);var gmli=1;for(;yyfless(gmli,array_length_1d(gmlvalues));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_list_set(gmllist,gmlcount,yyfplus(__yy_gml_errCheck(ds_list_find_value(gmllist,gmlcount)),__yy_gml_errCheck(yyfplus(" ",
__yy_gml_errCheck(gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)])))));}};};};ds_list_set(gmllist,gmlcount,string_replace_all(ds_list_find_value(gmllist,gmlcount),"\n",""));ds_list_set(gmllist,gmlcount,yyfplus(__yy_gml_errCheck(ds_list_find_value(gmllist,gmlcount)),"\n"));file_text_write_string(gmlfile_new,ds_list_find_value(gmllist,gmlcount));}};file_text_close(gmlfile_new);}}function gml_GlobalScript_s_load_uniform_file2(_inst,_other){(_inst.gmls_load_uniform_file2=__yy_method(_inst,gml_Script_s_load_uniform_file2));
}function gml_Script_s_load_uniform_file2(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyfequal(argument4,_inst.undefined)){argument4=false;};}{if(yyfequal(argument4,false)){{if((yyGetBool(global.gmlbrowser))||(yyGetBool(global.gmlexhibition))){{argument3=gml_Script_s_uniforms_default_file(_inst,_other);};}else {{if(yyfequal(argument3,"")){argument3=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))),
".txt");};if(!yyGetBool(file_exists(argument3))){file_copy(gml_Script_s_uniforms_default_file(_inst,_other),argument3);};};};};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("s_load_uniform_file:",__yy_gml_errCheck(argument3)),": Team="),__yy_gml_errCheck(string(argument0))));var gmlfile=file_text_open_read(argument3);if(yyGetBool(gmlfile)){{var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){
{var gmlstr=file_text_read_string(gmlfile);var gmlvalues=gml_Script_s_split_string(_inst,_other,gmlstr);file_text_readln(gmlfile);if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],argument0)){{yyInst(_inst,_other,argument1).gmlname=gmlvalues[__yy_gml_array_check_index(1,gmlvalues)];yyInst(_inst,_other,argument1).gmltla=gmlvalues[__yy_gml_array_check_index(2,gmlvalues)];var ___sw326___=argument2;var ___swc327___=-1;if(yyCompareVal(___sw326___,0,g_GMLMathEpsilon,false)==0){___swc327___=0;
}else if(yyCompareVal(___sw326___,1,g_GMLMathEpsilon,false)==0){___swc327___=1;}else if(yyCompareVal(___sw326___,2,g_GMLMathEpsilon,false)==0){___swc327___=2;}else if(yyCompareVal(___sw326___,3,g_GMLMathEpsilon,false)==0){___swc327___=3;}switch(___swc327___){case 0:{yyInst(_inst,_other,argument1).gmlhex_helmet=gmlvalues[__yy_gml_array_check_index(3,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_logo=gmlvalues[__yy_gml_array_check_index(4,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_shirt=gmlvalues[__yy_gml_array_check_index(5,
gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_sleeve=gmlvalues[__yy_gml_array_check_index(6,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_pants=gmlvalues[__yy_gml_array_check_index(7,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_stripe=gmlvalues[__yy_gml_array_check_index(8,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks1=gmlvalues[__yy_gml_array_check_index(9,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks2=gmlvalues[__yy_gml_array_check_index(10,gmlvalues)];break;}case 1:{
yyInst(_inst,_other,argument1).gmlhex_helmet=gmlvalues[__yy_gml_array_check_index(11,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_logo=gmlvalues[__yy_gml_array_check_index(12,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_shirt=gmlvalues[__yy_gml_array_check_index(13,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_sleeve=gmlvalues[__yy_gml_array_check_index(14,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_pants=gmlvalues[__yy_gml_array_check_index(15,gmlvalues)];yyInst(_inst,_other,
argument1).gmlhex_stripe=gmlvalues[__yy_gml_array_check_index(16,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks1=gmlvalues[__yy_gml_array_check_index(17,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks2=gmlvalues[__yy_gml_array_check_index(18,gmlvalues)];break;}case 2:{yyInst(_inst,_other,argument1).gmlhex_helmet=gmlvalues[__yy_gml_array_check_index(19,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_logo=gmlvalues[__yy_gml_array_check_index(20,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_shirt=gmlvalues[__yy_gml_array_check_index(21,
gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_sleeve=gmlvalues[__yy_gml_array_check_index(22,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_pants=gmlvalues[__yy_gml_array_check_index(23,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_stripe=gmlvalues[__yy_gml_array_check_index(24,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks1=gmlvalues[__yy_gml_array_check_index(25,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks2=gmlvalues[__yy_gml_array_check_index(26,gmlvalues)];break;
}case 3:{yyInst(_inst,_other,argument1).gmlhex_helmet=gmlvalues[__yy_gml_array_check_index(27,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_logo=gmlvalues[__yy_gml_array_check_index(28,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_shirt=gmlvalues[__yy_gml_array_check_index(29,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_sleeve=gmlvalues[__yy_gml_array_check_index(30,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_pants=gmlvalues[__yy_gml_array_check_index(31,gmlvalues)];yyInst(_inst,
_other,argument1).gmlhex_stripe=gmlvalues[__yy_gml_array_check_index(32,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks1=gmlvalues[__yy_gml_array_check_index(33,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks2=gmlvalues[__yy_gml_array_check_index(34,gmlvalues)];break;}};if(yyfgreater(array_length_1d(gmlvalues),35)){{gml_Script_slog(_inst,_other,"loading 35");yyInst(_inst,_other,argument1).gmlroof=real(gmlvalues[__yy_gml_array_check_index(35,gmlvalues)]);yyInst(_inst,_other,argument1).gmlrainfall=gmlvalues[__yy_gml_array_check_index(36,
gmlvalues)];yyInst(_inst,_other,argument1).gmlsnowfall=gmlvalues[__yy_gml_array_check_index(37,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_endzone=gmlvalues[__yy_gml_array_check_index(38,gmlvalues)];};}else {{gml_Script_slog(_inst,_other,"pulling from tmap");var gmltmap=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,argument0);yyInst(_inst,_other,argument1).gmlroof=real(ds_map_find_value(gmltmap,"roof"));yyInst(_inst,_other,argument1).gmlrainfall=ds_map_find_value(gmltmap,"rainfall");
yyInst(_inst,_other,argument1).gmlsnowfall=ds_map_find_value(gmltmap,"snowfall");yyInst(_inst,_other,argument1).gmlhex_endzone=gml_Script_s_load_endzone_from_uniform_file(_inst,_other,argument0,gml_Script_s_uniforms_default_file(_inst,_other));};};break;};};}};file_text_close(gmlfile);};};gml_Script_slog(_inst,_other,"Uniform loaded");gml_Script_s_convert_uniform_colours_all(_inst,_other,argument1);}}function gml_GlobalScript_s_load_teamname_from_uniform_file(_inst,_other,argument0,argument1){(_inst.gmls_load_teamname_from_uniform_file=__yy_method(_inst,
gml_Script_s_load_teamname_from_uniform_file));}function gml_Script_s_load_teamname_from_uniform_file(_inst,_other,argument0,argument1){{var gmluid=argument0;var gmlfilename=argument1;gml_Script_slog(_inst,_other,yyfplus("s_load_teamname_from_uniform_file:",__yy_gml_errCheck(gmlfilename)));if(!yyGetBool(file_exists(gmlfilename))){{gml_Script_slog(_inst,_other,yyfplus(__yy_gml_errCheck(gmlfilename)," does not exist. Using default."));gmlfilename=gml_Script_s_uniforms_default_file(_inst,_other);};};if(yyGetBool(file_exists(gmlfilename))){
{var gmlfile=file_text_open_read(gmlfilename);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],gmluid)){{file_text_close(gmlfile);return string(gmlvalues[__yy_gml_array_check_index(1,gmlvalues)]);break;};};}};file_text_close(gmlfile);
};};return "Team name";}}function gml_GlobalScript_s_load_endzone_from_uniform_file(_inst,_other,argument0,argument1){(_inst.gmls_load_endzone_from_uniform_file=__yy_method(_inst,gml_Script_s_load_endzone_from_uniform_file));}function gml_Script_s_load_endzone_from_uniform_file(_inst,_other,argument0,argument1){{var gmluid=argument0;var gmlfilename=argument1;gml_Script_slog(_inst,_other,yyfplus("s_load_endzone_from_uniform_file:",__yy_gml_errCheck(gmlfilename)));if(!yyGetBool(file_exists(gmlfilename))){
{var gmltmap=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmluid);return string(ds_map_find_value(gmltmap,"colshirt"));};}else {{var gmlfile=file_text_open_read(gmlfilename);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],
gmluid)){{file_text_close(gmlfile);return string(gmlvalues[__yy_gml_array_check_index(38,gmlvalues)]);break;};};}};file_text_close(gmlfile);};};}}// // slog ("Week: "+string(fix[? "week"])+" team "+string(team_id1)+" @ "+string(team_id2));
function gml_GlobalScript_s_create_my_fixture_list(_inst,_other){(_inst.gmls_create_my_fixture_list=__yy_method(_inst,gml_Script_s_create_my_fixture_list));}function gml_Script_s_create_my_fixture_list(_inst,_other){{gml_Script_slog(_inst,_other,"s_create_my_fixture_list");
var gmlfixlist=ds_list_create();var gmlf=0;for(;yyfless(gmlf,ds_list_size(_inst.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(_inst.gmlschedule,gmlf);var gmlteam_id1=ds_map_find_value(gmlfix,"away_team");var gmlteam_id2=ds_map_find_value(gmlfix,"home_team");if((yyGetBool(yyfequal(gmlteam_id1,_inst.gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_id2,_inst.gmlmyteam_id)))){{var gmlmap=ds_map_create();
ds_map_set(gmlmap,"week",ds_map_find_value(gmlfix,"week"));ds_map_set(gmlmap,"away_team",gmlteam_id1);ds_map_set(gmlmap,"home_team",gmlteam_id2);ds_map_set(gmlmap,"away_score",ds_map_find_value(gmlfix,"away_score"));ds_map_set(gmlmap,"home_score",ds_map_find_value(gmlfix,"home_score"));ds_map_set(gmlmap,"human_win","unplayed");if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if(yyfequal(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){ds_map_set(gmlmap,
"human_win","tie");}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"away_team"),_inst.gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))))){ds_map_set(gmlmap,"human_win","win");}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"home_team"),_inst.gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"home_score"),ds_map_find_value(gmlfix,"away_score"))))){ds_map_set(gmlmap,"human_win","win");}else {ds_map_set(gmlmap,
"human_win","loss");};};};};};ds_list_add(gmlfixlist,gmlmap);};};}};return gmlfixlist;}}// slog("create fixture "+string(away_id)+" @ "+string(home_id));
function gml_GlobalScript_s_create_fixdata(_inst,_other){(_inst.gmls_create_fixdata=__yy_method(_inst,gml_Script_s_create_fixdata));}function gml_Script_s_create_fixdata(_inst,_other,argument0,argument1,argument2,argument3){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("create fixture ",__yy_gml_errCheck(string(argument2)))," @ "),__yy_gml_errCheck(string(argument3))));
var gmlfix=ds_map_create();ds_map_set(gmlfix,"week",argument1);ds_map_set(gmlfix,"away_team",argument2);ds_map_set(gmlfix,"home_team",argument3);ds_map_set(gmlfix,"away_score",(-1));ds_map_set(gmlfix,"home_score",(-1));ds_list_add(argument0,gmlfix);if((yyGetBool(yyfequal(argument2,yyInst(_inst,_other,97).gmlmyteam_id)))||(yyGetBool(yyfequal(argument3,yyInst(_inst,_other,97).gmlmyteam_id)))){{gml_Script_s_add_to_human_fixtures(_inst,_other,argument1,argument2,argument3);};};}}function gml_GlobalScript_s_do_schedule(_inst,
_other){(_inst.gmls_do_schedule=__yy_method(_inst,gml_Script_s_do_schedule));}function gml_Script_s_do_schedule(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_do_schedule");var gmlmyresult=0;{var __yy__v721=GetWithArray(97);for(var __yy__v722 in __yy__v721){if(!__yy__v721.hasOwnProperty(__yy__v722))continue;var __yy__v723=__yy__v721[__yy__v722];{if(yyfgreater(__yy__v723.gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)){{return gml_Script_s_do_playoff_schedule(__yy__v723,_inst,argument0);}
;};var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v723.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v723.gmlschedule,gmlf);if(yyfequal(ds_map_find_value(gmlfix,"week"),__yy__v723.gmlweek)){{var gmlteam_idAway=ds_map_find_value(gmlfix,"away_team");var gmlteam_idHome=ds_map_find_value(gmlfix,"home_team");var gmlteam_mapAway=ds_list_find_value(__yy__v723.gmlteamlist,gmlteam_idAway);var gmlteam_mapHome=ds_list_find_value(__yy__v723.gmlteamlist,
gmlteam_idHome);var gmlteam_strengthAway=real(ds_map_find_value(gmlteam_mapAway,"offense"));gmlteam_strengthAway=yyfplus(gmlteam_strengthAway,real(ds_map_find_value(gmlteam_mapAway,"defense")));var gmlteam_strengthHome=real(ds_map_find_value(gmlteam_mapHome,"offense"));gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,real(ds_map_find_value(gmlteam_mapHome,"defense")));gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,1);var gmlscoredataAway=gml_Script_s_get_random_scoredata(__yy__v723,_inst);var gmlscoredataHome=gml_Script_s_get_random_scoredata(__yy__v723,
_inst);if((yyGetBool(yyfequal(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))))&&(yyGetBool(irandom(2)))){{ds_map_set(gmlscoredataHome,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlscoredataHome,"points")),3));};};var gmldo_swap=false;var gmlupset_chance=99;gmlupset_chance=abs(yyfminus(__yy_gml_errCheck(gmlteam_strengthAway),__yy_gml_errCheck(gmlteam_strengthHome)));gmlupset_chance=round(yyftime(__yy_gml_errCheck(gmlupset_chance),0.25));if(yyfgreater(ds_map_find_value(gmlscoredataAway,
"points"),ds_map_find_value(gmlscoredataHome,"points"))){{if(yyfless(gmlteam_strengthAway,gmlteam_strengthHome)){gmldo_swap=irandom(gmlupset_chance);};};}else {{if(yyfgreater(gmlteam_strengthAway,gmlteam_strengthHome)){gmldo_swap=irandom(gmlupset_chance);};};};if(yyGetBool(gmldo_swap)){{var gmltemp_map=ds_map_create();ds_map_copy(gmltemp_map,gmlscoredataAway);ds_map_copy(gmlscoredataAway,gmlscoredataHome);ds_map_copy(gmlscoredataHome,gmltemp_map);ds_map_destroy(gmltemp_map);gmltemp_map=(-1);};};if(!yyGetBool(argument0)){
{if(yyfequal(gmlteam_idAway,yyInst(_inst,_other,97).gmlmyteam_id)){{ds_map_set(gmlscoredataAway,"points",yyInst(_inst,_other,97).gmltscore[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmltscore)]);ds_map_set(gmlscoredataHome,"points",yyInst(_inst,_other,97).gmltscore[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmltscore)]);if(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){gmlmyresult=1;};if(yyfless(ds_map_find_value(gmlscoredataAway,
"points"),ds_map_find_value(gmlscoredataHome,"points"))){gmlmyresult=(-1);};};}else {if(yyfequal(gmlteam_idHome,yyInst(_inst,_other,97).gmlmyteam_id)){{ds_map_set(gmlscoredataHome,"points",yyInst(_inst,_other,97).gmltscore[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmltscore)]);ds_map_set(gmlscoredataAway,"points",yyInst(_inst,_other,97).gmltscore[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmltscore)]);if(yyfless(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,
"points"))){gmlmyresult=1;};if(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){gmlmyresult=(-1);};};};};};}else {{};};ds_map_set(gmlfix,"away_score",ds_map_find_value(gmlscoredataAway,"points"));ds_map_set(gmlfix,"home_score",ds_map_find_value(gmlscoredataHome,"points"));if(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{ds_map_set(gmlteam_mapAway,"wins",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapAway,
"wins"))),1));ds_map_set(gmlteam_mapHome,"losses",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapHome,"losses"))),1));};}else {if(yyfless(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{ds_map_set(gmlteam_mapAway,"losses",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapAway,"losses"))),1));ds_map_set(gmlteam_mapHome,"wins",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapHome,"wins"))),1));};}else {{ds_map_set(gmlteam_mapAway,
"ties",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapAway,"ties"))),1));ds_map_set(gmlteam_mapHome,"ties",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapHome,"ties"))),1));};};};ds_map_destroy(gmlscoredataAway);ds_map_destroy(gmlscoredataHome);gmlscoredataAway=(-1);gmlscoredataHome=(-1);};};}};}}};{var __yy__v724=GetWithArray(97);for(var __yy__v725 in __yy__v724){if(!__yy__v724.hasOwnProperty(__yy__v725))continue;var __yy__v726=__yy__v724[__yy__v725];{if(yyfequal(__yy__v726.gmlweek,
yyInst(_inst,_other,97).gmllast_week_regular)){{if(yyfgreater(ds_map_find_value(__yy__v726.gmlmyteam,"wins"),ds_map_find_value(__yy__v726.gmlmyteam,"losses"))){gml_Script_s_complete_achievement(__yy__v726,_inst,"ACH_WINNING_SEASON");};if(yyfequal(ds_map_find_value(__yy__v726.gmlmyteam,"wins"),17)){gml_Script_s_complete_achievement(__yy__v726,_inst,"ACH_UNBEATEN_SEASON");};gml_Script_s_update_history(__yy__v726,_inst,gmlmyresult);};};}}};}}function gml_GlobalScript_s_create_playoffs(_inst,_other){
(_inst.gmls_create_playoffs=__yy_method(_inst,gml_Script_s_create_playoffs));}function gml_Script_s_create_playoffs(_inst,_other){{gml_Script_s_clear_playoff_fixtures(_inst,_other);var gmlafc_seed4=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,4);var gmlafc_seed5=gml_Script_s_get_team_by_seed(_inst,_other,0,5);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyInst(_inst,_other,97).gmlfirst_week_playoffs,ds_map_find_value(gmlafc_seed5,"uid"),ds_map_find_value(gmlafc_seed4,
"uid"));var gmlafc_seed3=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,3);var gmlafc_seed6=gml_Script_s_get_team_by_seed(_inst,_other,0,6);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1),ds_map_find_value(gmlafc_seed6,"uid"),ds_map_find_value(gmlafc_seed3,"uid"));var gmlnfc_seed4=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,4);var gmlnfc_seed5=gml_Script_s_get_team_by_seed(_inst,
_other,1,5);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2),ds_map_find_value(gmlnfc_seed5,"uid"),ds_map_find_value(gmlnfc_seed4,"uid"));var gmlnfc_seed3=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,3);var gmlnfc_seed6=gml_Script_s_get_team_by_seed(_inst,_other,1,6);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,
97).gmlfirst_week_playoffs),3),ds_map_find_value(gmlnfc_seed6,"uid"),ds_map_find_value(gmlnfc_seed3,"uid"));var gmlafc_seed1=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,1);var gmlafc_seed2=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,2);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4),(-1),ds_map_find_value(gmlafc_seed1,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,
_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5),(-1),ds_map_find_value(gmlafc_seed2,"uid"));var gmlnfc_seed1=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,1);var gmlnfc_seed2=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,2);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6),(-1),ds_map_find_value(gmlnfc_seed1,"uid"));gml_Script_s_create_fixdata(_inst,
_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7),(-1),ds_map_find_value(gmlnfc_seed2,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9),(-1),(-1));gml_Script_s_create_fixdata(_inst,
_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10),(-1),(-1));}}function gml_GlobalScript_s_create_playoffs2(_inst,_other){(_inst.gmls_create_playoffs2=__yy_method(_inst,gml_Script_s_create_playoffs2));}function gml_Script_s_create_playoffs2(_inst,_other){{gml_Script_s_clear_playoff_fixtures(_inst,_other);var gmlafc_seed4=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,4);var gmlafc_seed5=gml_Script_s_get_team_by_seed(_inst,
_other,0,5);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyInst(_inst,_other,97).gmlfirst_week_playoffs,ds_map_find_value(gmlafc_seed5,"uid"),ds_map_find_value(gmlafc_seed4,"uid"));var gmlafc_seed3=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,3);var gmlafc_seed6=gml_Script_s_get_team_by_seed(_inst,_other,0,6);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),
1),ds_map_find_value(gmlafc_seed6,"uid"),ds_map_find_value(gmlafc_seed3,"uid"));var gmlafc_seed2=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,2);var gmlafc_seed7=gml_Script_s_get_team_by_seed(_inst,_other,0,7);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2),ds_map_find_value(gmlafc_seed7,"uid"),ds_map_find_value(gmlafc_seed2,"uid"));var gmlnfc_seed4=gml_Script_s_get_division_winner_by_seed(_inst,
_other,1,4);var gmlnfc_seed5=gml_Script_s_get_team_by_seed(_inst,_other,1,5);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3),ds_map_find_value(gmlnfc_seed5,"uid"),ds_map_find_value(gmlnfc_seed4,"uid"));var gmlnfc_seed3=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,3);var gmlnfc_seed6=gml_Script_s_get_team_by_seed(_inst,_other,1,6);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,
_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4),ds_map_find_value(gmlnfc_seed6,"uid"),ds_map_find_value(gmlnfc_seed3,"uid"));var gmlnfc_seed2=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,2);var gmlnfc_seed7=gml_Script_s_get_team_by_seed(_inst,_other,1,7);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5),ds_map_find_value(gmlnfc_seed7,
"uid"),ds_map_find_value(gmlnfc_seed2,"uid"));var gmlafc_seed1=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,1);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6),(-1),ds_map_find_value(gmlafc_seed1,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7),(-1),(-1));var gmlnfc_seed1=gml_Script_s_get_division_winner_by_seed(_inst,
_other,1,1);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8),(-1),ds_map_find_value(gmlnfc_seed1,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),
10),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),11),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,97).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),12),(-1),(-1));}}function gml_GlobalScript_s_playoffs_12(_inst,_other){(_inst.gmls_playoffs_12=__yy_method(_inst,gml_Script_s_playoffs_12));}function gml_Script_s_playoffs_12(_inst,
_other){{if(yyGetBool(ds_exists(yyInst(_inst,_other,97).gmlplayoffs,2))){{if(yyfequal(ds_list_size(yyInst(_inst,_other,97).gmlplayoffs),11)){return true;};};};return false;}}function gml_GlobalScript_s_get_week_superbowl(_inst,_other){(_inst.gmls_get_week_superbowl=__yy_method(_inst,gml_Script_s_get_week_superbowl));}function gml_Script_s_get_week_superbowl(_inst,_other){{var gmlw=28;if(!yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){gmlw=30;};if(yyfequal(yyInst(_inst,_other,97).gmlfirst_week_playoffs,
19)){gmlw=yyfplus(gmlw,1);};return gmlw;}}function gml_GlobalScript_s_do_playoff_schedule(_inst,_other){(_inst.gmls_do_playoff_schedule=__yy_method(_inst,gml_Script_s_do_playoff_schedule));(_inst.gmls_get_retrobowl_mvp_winner=__yy_method(_inst,gml_Script_s_get_retrobowl_mvp_winner));}function gml_Script_s_do_playoff_schedule(_inst,_other,argument0){{var gmlweek_afc_champ=26;var gmlweek_nfc_champ=27;var gmlweek_superbowl=28;{var __yy__v727=GetWithArray(97);for(var __yy__v728 in __yy__v727){if(!__yy__v727.hasOwnProperty(__yy__v728))continue;
var __yy__v729=__yy__v727[__yy__v728];{if(!yyGetBool(gml_Script_s_playoffs_12(__yy__v729,_inst))){{gmlweek_afc_champ=yyfplus(gmlweek_afc_champ,2);gmlweek_nfc_champ=yyfplus(gmlweek_nfc_champ,2);gmlweek_superbowl=yyfplus(gmlweek_superbowl,2);};};if(yyfequal(__yy__v729.gmlfirst_week_playoffs,19)){{gmlweek_afc_champ=yyfplus(gmlweek_afc_champ,1);gmlweek_nfc_champ=yyfplus(gmlweek_nfc_champ,1);gmlweek_superbowl=yyfplus(gmlweek_superbowl,1);};};gml_Script_slog(__yy__v729,_inst,yyfplus("s_do_playoff_schedule:",
__yy_gml_errCheck(string(__yy__v729.gmlweek))));var gmlfix=gml_Script_s_get_playoff_fixture_by_week(__yy__v729,_inst,__yy__v729.gmlweek);if(!yyGetBool(ds_exists(gmlfix,1))){{gml_Script_slog(__yy__v729,_inst,"Fixture error! Trying to recreate playoffs");gml_Script_s_create_playoffs2(__yy__v729,_inst);gmlfix=gml_Script_s_get_playoff_fixture_by_week(__yy__v729,_inst,__yy__v729.gmlweek);if(!yyGetBool(ds_exists(gmlfix,1))){{gml_Script_slog(__yy__v729,_inst,"Fixture error! Skipping season");gml_Script_s_start_new_season(__yy__v729,
_inst,false);return false;};};};};var gmlteam_idAway=ds_map_find_value(gmlfix,"away_team");var gmlteam_idHome=ds_map_find_value(gmlfix,"home_team");var gmlteam_mapAway=ds_list_find_value(__yy__v729.gmlteamlist,gmlteam_idAway);var gmlteam_mapHome=ds_list_find_value(__yy__v729.gmlteamlist,gmlteam_idHome);var gmlteam_strengthAway=real(ds_map_find_value(gmlteam_mapAway,"offense"));gmlteam_strengthAway=yyfplus(gmlteam_strengthAway,real(ds_map_find_value(gmlteam_mapAway,"defense")));var gmlteam_strengthHome=real(ds_map_find_value(gmlteam_mapHome,
"offense"));gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,real(ds_map_find_value(gmlteam_mapHome,"defense")));gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,1);var gmlscoredataAway=gml_Script_s_get_random_scoredata(__yy__v729,_inst);var gmlscoredataHome=gml_Script_s_get_random_scoredata(__yy__v729,_inst);if(yyfequal(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{ds_map_set(gmlscoredataHome,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlscoredataHome,
"points")),3));};};if((yyGetBool(!yyGetBool(irandom(4))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))))&&(yyGetBool(yyfless(gmlteam_strengthAway,gmlteam_strengthHome)))){{var gmltemp_map=ds_map_create();ds_map_copy(gmltemp_map,gmlscoredataAway);ds_map_copy(gmlscoredataAway,gmlscoredataHome);ds_map_copy(gmlscoredataHome,gmltemp_map);ds_map_destroy(gmltemp_map);gmltemp_map=(-1);};};if((yyGetBool(yyfequal(gmlteam_idAway,yyInst(_inst,
_other,97).gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_idHome,yyInst(_inst,_other,97).gmlmyteam_id)))){{ds_map_set(gmlscoredataAway,"points",yyInst(_inst,_other,97).gmltscore[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmltscore)]);ds_map_set(gmlscoredataHome,"points",yyInst(_inst,_other,97).gmltscore[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmltscore)]);};};ds_map_set(gmlfix,"away_score",ds_map_find_value(gmlscoredataAway,"points"));ds_map_set(gmlfix,"home_score",ds_map_find_value(gmlscoredataHome,
"points"));var gmlwinning_team=gmlteam_mapAway;var gmllosing_team=gmlteam_mapHome;if(yyfless(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{gmlwinning_team=gmlteam_mapHome;gmllosing_team=gmlteam_mapAway;};};var gmlscr1=real(ds_map_find_value(gmlfix,"away_score"));var gmlscr2=real(ds_map_find_value(gmlfix,"home_score"));if(yyfgreater(gmlscr2,gmlscr1)){{gmlscr2=real(ds_map_find_value(gmlfix,"away_score"));gmlscr1=real(ds_map_find_value(gmlfix,"home_score"));
};};if(yyfequal(__yy__v729.gmlweek,gmlweek_superbowl)){{gml_Script_s_add_news(__yy__v729,_inst,gml_Script_s_parse_news(__yy__v729,_inst,"msg_SuperBowlWinner",gmlwinning_team,gmllosing_team,ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score")));var gmlmap=ds_map_create();ds_map_set(gmlmap,"year",yyfplus(__yy_gml_errCheck(__yy__v729.gmlstart_year),__yy_gml_errCheck(__yy__v729.gmlyear)));ds_map_set(gmlmap,"winner",ds_map_find_value(gmlwinning_team,"name"));ds_map_set(gmlmap,
"score",yyfplus(yyfplus(__yy_gml_errCheck(string(gmlscr1)),"-"),__yy_gml_errCheck(string(gmlscr2))));ds_map_set(gmlmap,"loser",ds_map_find_value(gmllosing_team,"tla"));ds_map_set(gmlmap,"human",0);if((yyGetBool(yyfequal(gmlteam_idAway,yyInst(_inst,_other,97).gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_idHome,yyInst(_inst,_other,97).gmlmyteam_id)))){{if(yyfequal(gmlwinning_team,yyInst(_inst,_other,97).gmlmyteam)){{yyInst(_inst,_other,97).gmlretrobowlwinner=1;ds_map_set(gmlmap,"human",1);gml_Script_s_get_retrobowl_mvp_winner(__yy__v729,
_inst);};}else {{yyInst(_inst,_other,97).gmlretrobowlwinner=(-1);ds_map_set(gmlmap,"human",(-1));};};};}else {{gml_Script_s_do_player_awards(__yy__v729,_inst);};};ds_list_add(__yy__v729.gmlrbhistorylist,gmlmap);};}else {{gml_Script_s_add_news(__yy__v729,_inst,gml_Script_s_parse_news(__yy__v729,_inst,"msg_PlayOffResult",gmlwinning_team,gmllosing_team,gmlscr1,gmlscr2));gml_Script_s_promote_playoff_winner(__yy__v729,_inst,__yy__v729.gmlweek,ds_map_find_value(gmlwinning_team,"uid"));if((yyGetBool(yyfequal(__yy__v729.gmlweek,
gmlweek_afc_champ)))||(yyGetBool(yyfequal(__yy__v729.gmlweek,gmlweek_nfc_champ)))){{var gmlstr=gml_Script_s_str(__yy__v729,_inst,"news_ConferenceChamps");gmlstr=string_replace(gmlstr,"$teamname",ds_map_find_value(gmlwinning_team,"name"));gmlstr=string_replace(gmlstr,"$conference",gml_Script_s_get_string_conference(__yy__v729,_inst,ds_map_find_value(gmlwinning_team,"conference")));gml_Script_s_add_news(__yy__v729,_inst,gmlstr);};};};};ds_map_destroy(gmlscoredataAway);ds_map_destroy(gmlscoredataHome);
gmlscoredataAway=(-1);gmlscoredataHome=(-1);}}};return true;}}function gml_Script_s_get_retrobowl_mvp_winner(_inst,_other){{{var __yy__v730=GetWithArray(97);for(var __yy__v731 in __yy__v730){if(!__yy__v730.hasOwnProperty(__yy__v731))continue;var __yy__v732=__yy__v730[__yy__v731];{var gmlmvp=(-4);var gmlqb=gml_Script_s_get_qb_pmap(__yy__v732,_inst);if((yyGetBool(gmlqb))&&(yyGetBool(yyfgreater(gml_Script_s_get_match_rating(__yy__v732,_inst,gmlqb),9)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlqb,"condition"),
0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v732,_inst,gmlqb))))){gmlmvp=gmlqb;}else {{var gmlrat=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v732.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v732.gmlroster,gmli);if((yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),0)))||(yyGetBool(gml_Script_s_player_benched(__yy__v732,_inst,gmlpmap)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,
"position"),10)))){continue;};var gmlmr=gml_Script_s_get_match_rating(__yy__v732,_inst,gmlpmap);if((yyGetBool(yyfgreater(gmlmr,gmlrat)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v732,_inst,gmlpmap)))){{gmlrat=gmlmr;gmlmvp=gmlpmap;};}else {if((yyGetBool(yyfgreater(yyfminus(__yy_gml_errCheck(gmlmr),1),gmlrat)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(__yy__v732,_inst,gmlpmap))))){{gmlrat=yyfminus(__yy_gml_errCheck(gmlmr),1);gmlmvp=gmlpmap;};}else {if((yyGetBool(yyfequal(gmlmr,
gmlrat)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v732,_inst,gmlpmap)))){{if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards"))),yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmvp,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlmvp,"stat_rush_yards"))))){{gmlrat=gmlmr;gmlmvp=gmlpmap;};};};};};};}};};};if(yyGetBool(gmlmvp)){{var gmlmsg=string_replace(gml_Script_s_str(__yy__v732,_inst,"msg_RetroBowlMVPWinner"),
"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmvp,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlmvp,"lname"))));gml_Script_s_add_news(__yy__v732,_inst,gmlmsg);if(!yyGetBool(ds_map_exists(gmlmvp,"rbmvp"))){ds_map_set(gmlmvp,"rbmvp",1);}else {ds_map_set(gmlmvp,"rbmvp",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmvp,"rbmvp"))),1));};};};}}};}}function gml_GlobalScript_s_get_random_scoredata(_inst,_other){(_inst.gmls_get_random_scoredata=__yy_method(_inst,gml_Script_s_get_random_scoredata));
}function gml_Script_s_get_random_scoredata(_inst,_other){{var gmlmap=ds_map_create();ds_map_set(gmlmap,"points",0);ds_map_set(gmlmap,"yards",0);ds_map_set(gmlmap,"tds",0);ds_map_set(gmlmap,"sacks",0);ds_map_set(gmlmap,"ints",0);var gmlchances=irandom_range(6,12);var gmls=0;for(;yyfless(gmls,gmlchances);(g_yyPrePostObject__=gmls,gmls=(g_yyPrePostObject__ instanceof Long?gmls.add(1):++gmls),g_yyPrePostObject__)){{var ___sw332___=irandom(2);var ___swc333___=-1;if(yyCompareVal(___sw332___,0,g_GMLMathEpsilon,
false)==0){___swc333___=0;}else if(yyCompareVal(___sw332___,1,g_GMLMathEpsilon,false)==0){___swc333___=1;}switch(___swc333___){case 0:{if(yyGetBool(irandom(1))){{ds_map_set(gmlmap,"tds",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"tds")),1));ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"yards")),__yy_gml_errCheck(yyfplus(40,__yy_gml_errCheck(irandom(40))))));};};ds_map_set(gmlmap,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),7));if(yyfgreater(irandom(99),
93)){ds_map_set(gmlmap,"points",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),1));};break;}case 1:{ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"yards")),__yy_gml_errCheck(irandom(20))));ds_map_set(gmlmap,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),3));if(yyfequal(irandom(5),0)){ds_map_set(gmlmap,"points",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),3));};break;}default :{ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,
"yards")),__yy_gml_errCheck(irandom(10))));var ___sw334___=irandom(2);var ___swc335___=-1;if(yyCompareVal(___sw334___,0,g_GMLMathEpsilon,false)==0){___swc335___=0;}else if(yyCompareVal(___sw334___,1,g_GMLMathEpsilon,false)==0){___swc335___=1;}else if(yyCompareVal(___sw334___,2,g_GMLMathEpsilon,false)==0){___swc335___=2;}switch(___swc335___){case 0:{ds_map_set(gmlmap,"sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"sacks")),1));break;}case 1:{ds_map_set(gmlmap,"ints",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,
"ints")),1));break;}case 2:{break;}};break;}};}};return gmlmap;}}// // Make sure Divisional rounds are seeded (#4 @ #1, #3 @ #2)
function gml_GlobalScript_s_promote_playoff_winner(_inst,_other){(_inst.gmls_promote_playoff_winner=__yy_method(_inst,gml_Script_s_promote_playoff_winner));(_inst.gmls_seed_divisional_round=__yy_method(_inst,gml_Script_s_seed_divisional_round));}function gml_Script_s_promote_playoff_winner(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus("s_promote_playoff_winner",
__yy_gml_errCheck(string(argument1))));var gmlnextround_fix;var gmlweek_afc_champ=26;var gmlweek_nfc_champ=27;if(yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){{if(yyfequal(argument0,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10));}else {return;};};};};};};};};};};};}else {{gmlweek_afc_champ=28;gmlweek_nfc_champ=29;if(yyfequal(yyInst(_inst,_other,97).gmlfirst_week_playoffs,19)){{gmlweek_afc_champ=yyfplus(gmlweek_afc_champ,1);gmlweek_nfc_champ=yyfplus(gmlweek_nfc_champ,1);};};if(yyfequal(argument0,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfirst_week_playoffs),6));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfirst_week_playoffs),7));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfirst_week_playoffs),9));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmlweek_afc_champ);}else {if(yyfequal(argument0,
yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmlweek_afc_champ);}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmlweek_nfc_champ);}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,gmlweek_nfc_champ);}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),12));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),11))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfirst_week_playoffs),12));}else {return;};};};};};};};};};};};};};};if(yyGetBool(gmlnextround_fix)){{gml_Script_slog(_inst,_other,yyfplus("Got next round fix: ",__yy_gml_errCheck(string(ds_map_find_value(gmlnextround_fix,"week")))));if(yyfequal(ds_map_find_value(gmlnextround_fix,"away_team"),(-1))){{ds_map_set(gmlnextround_fix,"away_team",argument1);};}else {if(yyfequal(ds_map_find_value(gmlnextround_fix,"home_team"),(-1))){{ds_map_set(gmlnextround_fix,"home_team",argument1);};};};if((yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,
"week")),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"away_team"),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"home_team"),(-1))))){{gml_Script_s_seed_divisional_round(_inst,_other,0);};}else {if((yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,"week")),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,
"away_team"),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"home_team"),(-1))))){{gml_Script_s_seed_divisional_round(_inst,_other,1);};};};if((yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,"week")),gmlweek_afc_champ)))||(yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,"week")),gmlweek_nfc_champ)))){{if((yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"away_team"),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"home_team"),(-1))))){
{var gmltmap1=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlnextround_fix,"away_team"));var gmltmap2=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlnextround_fix,"home_team"));if(yyfgreater(gml_Script_s_get_team_winpct(_inst,_other,gmltmap1),gml_Script_s_get_team_winpct(_inst,_other,gmltmap2))){{ds_map_set(gmlnextround_fix,"away_team",real(ds_map_find_value(gmltmap2,"uid")));ds_map_set(gmlnextround_fix,"home_team",real(ds_map_find_value(gmltmap1,"uid")));};};};};};};
if((yyGetBool(irandom(1)))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,"week")),yyfplus(__yy_gml_errCheck(gmlweek_nfc_champ),1))))){{var gmltmp=ds_map_find_value(gmlnextround_fix,"away_team");ds_map_set(gmlnextround_fix,"away_team",ds_map_find_value(gmlnextround_fix,"home_team"));ds_map_set(gmlnextround_fix,"home_team",gmltmp);};};};};gml_Script_s_update_human_playoff_fixtures(_inst,_other);}}function gml_Script_s_seed_divisional_round(_inst,_other,argument0){{var gmlfix1=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6));var gmlfix2=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7));if(yyfequal(argument0,1)){{gmlfix1=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8));gmlfix2=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,
97).gmlfirst_week_playoffs),9));};};var gmltmap2=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix1,"away_team"));var gmltmap3=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix2,"home_team"));var gmltmap4=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix2,"away_team"));var gmlpct2=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_team_seeding(_inst,_other,gmltmap2)));var gmlpct3=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_team_seeding(_inst,
_other,gmltmap3)));var gmlpct4=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_team_seeding(_inst,_other,gmltmap4)));var gmltgrid=ds_grid_create(2,3);ds_grid_set(gmltgrid,0,0,gmlpct2);ds_grid_set(gmltgrid,1,0,ds_map_find_value(gmltmap2,"uid"));ds_grid_set(gmltgrid,0,1,gmlpct3);ds_grid_set(gmltgrid,1,1,ds_map_find_value(gmltmap3,"uid"));ds_grid_set(gmltgrid,0,2,gmlpct4);ds_grid_set(gmltgrid,1,2,ds_map_find_value(gmltmap4,"uid"));ds_grid_sort(gmltgrid,0,true);ds_map_set(gmlfix1,"away_team",real(ds_grid_get(gmltgrid,
1,0)));ds_map_set(gmlfix2,"away_team",real(ds_grid_get(gmltgrid,1,1)));ds_map_set(gmlfix2,"home_team",real(ds_grid_get(gmltgrid,1,2)));ds_grid_destroy(gmltgrid);}}function gml_GlobalScript_s_add_to_human_fixtures(_inst,_other,argument0,argument1,argument2){(_inst.gmls_add_to_human_fixtures=__yy_method(_inst,gml_Script_s_add_to_human_fixtures));}function gml_Script_s_add_to_human_fixtures(_inst,_other,argument0,argument1,argument2){{var gmlmap=ds_map_create();ds_map_set(gmlmap,"week",argument0);ds_map_set(gmlmap,
"away_team",argument1);ds_map_set(gmlmap,"home_team",argument2);ds_map_set(gmlmap,"away_score",0);ds_map_set(gmlmap,"home_score",0);ds_map_set(gmlmap,"human_win","unplayed");ds_list_add(yyInst(_inst,_other,97).gmlfixturelist,gmlmap);}}// slog ("Team "+string(teamid_away)+" @ Team "+string(teamid_home));
function gml_GlobalScript_s_update_human_playoff_fixtures(_inst,_other){(_inst.gmls_update_human_playoff_fixtures=__yy_method(_inst,gml_Script_s_update_human_playoff_fixtures));(_inst.gmls_check_rearranged_human_playoff=__yy_method(_inst,
gml_Script_s_check_rearranged_human_playoff));(_inst.gmls_update_human_fixtures=__yy_method(_inst,gml_Script_s_update_human_fixtures));}function gml_Script_s_update_human_playoff_fixtures(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_human_playoff_fixtures");var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,97).gmlplayoffs));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlpo_fix=ds_list_find_value(yyInst(_inst,_other,
97).gmlplayoffs,gmlf);if((yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"away_team"),yyInst(_inst,_other,97).gmlmyteam_id)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"home_team"),yyInst(_inst,_other,97).gmlmyteam_id)))){{var gmlfixweek=real(ds_map_find_value(gmlpo_fix,"week"));var gmlmy_fix=gml_Script_s_get_human_fixture_by_week(_inst,_other,gmlfixweek);if(!yyGetBool(gmlmy_fix)){{gml_Script_s_add_to_human_fixtures(_inst,_other,gmlfixweek,ds_map_find_value(gmlpo_fix,"away_team"),ds_map_find_value(gmlpo_fix,
"home_team"));gml_Script_s_check_rearranged_human_playoff(_inst,_other,gmlfixweek);};}else {{ds_map_set(gmlmy_fix,"away_team",ds_map_find_value(gmlpo_fix,"away_team"));ds_map_set(gmlmy_fix,"home_team",ds_map_find_value(gmlpo_fix,"home_team"));if(yyfequal(ds_map_find_value(gmlmy_fix,"human_win"),"unplayed")){gml_Script_s_check_rearranged_human_playoff(_inst,_other,gmlfixweek);};};};};};}};}}function gml_Script_s_check_rearranged_human_playoff(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_check_rearranged_human_playoff: ",
__yy_gml_errCheck(string(argument0))));var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,97).gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(yyInst(_inst,_other,97).gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfix,"week"),argument0)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){{var gmlteamid_away=ds_map_find_value(gmlfix,
"away_team");var gmlteamid_home=ds_map_find_value(gmlfix,"home_team");gml_Script_slog(_inst,_other,yyfplus("Destroying human fixture week: ",__yy_gml_errCheck(string(ds_map_find_value(gmlfix,"week")))));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Team ",__yy_gml_errCheck(string(gmlteamid_away)))," @ Team "),__yy_gml_errCheck(string(gmlteamid_home))));ds_map_destroy(ds_list_find_value(yyInst(_inst,_other,97).gmlfixturelist,gmlf));ds_list_delete(yyInst(_inst,_other,97).gmlfixturelist,gmlf);
};};}};}}function gml_Script_s_update_human_fixtures(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_human_fixtures");var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,97).gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlpo_fix=ds_list_find_value(yyInst(_inst,_other,97).gmlschedule,gmlf);if((yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"away_team"),yyInst(_inst,_other,97).gmlmyteam_id)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,
"home_team"),yyInst(_inst,_other,97).gmlmyteam_id)))){{if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpo_fix,"away_score")),__yy_gml_errCheck(ds_map_find_value(gmlpo_fix,"home_score"))),(-1))){{var gmlfixweek=real(ds_map_find_value(gmlpo_fix,"week"));var gmlmy_fix=gml_Script_s_get_human_fixture_by_week(_inst,_other,gmlfixweek);if(yyGetBool(gmlmy_fix)){{ds_map_set(gmlmy_fix,"away_score",ds_map_find_value(gmlpo_fix,"away_score"));ds_map_set(gmlmy_fix,"home_score",ds_map_find_value(gmlpo_fix,
"home_score"));ds_map_set(gmlmy_fix,"away_team",ds_map_find_value(gmlpo_fix,"away_team"));ds_map_set(gmlmy_fix,"home_team",ds_map_find_value(gmlpo_fix,"home_team"));if(yyfequal(ds_map_find_value(gmlmy_fix,"human_win"),"unplayed")){{if(yyfequal(ds_map_find_value(gmlpo_fix,"away_score"),ds_map_find_value(gmlpo_fix,"home_score"))){ds_map_set(gmlmy_fix,"human_win","tie");}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"away_team"),yyInst(_inst,_other,97).gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpo_fix,
"away_score"),ds_map_find_value(gmlpo_fix,"home_score"))))){ds_map_set(gmlmy_fix,"human_win","win");}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"home_team"),yyInst(_inst,_other,97).gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpo_fix,"home_score"),ds_map_find_value(gmlpo_fix,"away_score"))))){ds_map_set(gmlmy_fix,"human_win","win");}else {ds_map_set(gmlmy_fix,"human_win","loss");};};};};};};};};};};};}};}}function gml_GlobalScript_s_get_playoff_fixture_by_week(_inst,_other,
argument0){(_inst.gmls_get_playoff_fixture_by_week=__yy_method(_inst,gml_Script_s_get_playoff_fixture_by_week));}function gml_Script_s_get_playoff_fixture_by_week(_inst,_other,argument0){{var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,97).gmlplayoffs));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(yyInst(_inst,_other,97).gmlplayoffs,gmlf);if((yyGetBool(ds_exists(gmlfix,1)))&&(yyGetBool(ds_map_exists(gmlfix,
"week")))){{if(yyfequal(real(ds_map_find_value(gmlfix,"week")),argument0)){return gmlfix;};};};}};return(-4);}}function gml_GlobalScript_s_get_human_fixture_by_week(_inst,_other){(_inst.gmls_get_human_fixture_by_week=__yy_method(_inst,gml_Script_s_get_human_fixture_by_week));}function gml_Script_s_get_human_fixture_by_week(_inst,_other,argument0){{{var __yy__v733=GetWithArray(97);for(var __yy__v734 in __yy__v733){if(!__yy__v733.hasOwnProperty(__yy__v734))continue;var __yy__v735=__yy__v733[__yy__v734];{var gmlf=0;
for(;yyfless(gmlf,ds_list_size(__yy__v735.gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v735.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(!yyGetBool(is_undefined(ds_map_find_value(gmlfix,"week")))))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlfix,"week")),argument0)))){return gmlfix;};}};}}};return(-4);}}function gml_GlobalScript_s_get_human_fixture_previous(_inst,_other){
(_inst.gmls_get_human_fixture_previous=__yy_method(_inst,gml_Script_s_get_human_fixture_previous));}function gml_Script_s_get_human_fixture_previous(_inst,_other){{{var __yy__v736=GetWithArray(97);for(var __yy__v737 in __yy__v736){if(!__yy__v736.hasOwnProperty(__yy__v737))continue;var __yy__v738=__yy__v736[__yy__v737];{var gmlprevfix=(-4);var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v738.gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){
{var gmlfix=ds_list_find_value(__yy__v738.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){return gmlprevfix;};gmlprevfix=gmlfix;}};return gmlprevfix;}}};}}// slog ("Team "+string(teamid_away)+" @ Team "+string(teamid_home));
// slog("create fixture "+string(away_id)+" @ "+string(home_id));
function gml_GlobalScript_exhibition_scripts(_inst,_other){(_inst.gmlbtn_click_exhibition_start=__yy_method(_inst,gml_Script_btn_click_exhibition_start));
(_inst.gmlbtn_click_exhibition_exit=__yy_method(_inst,gml_Script_btn_click_exhibition_exit));(_inst.gmls_set_up_uniforms_exhibition=__yy_method(_inst,gml_Script_s_set_up_uniforms_exhibition));(_inst.gmls_create_exhibition_fixture=__yy_method(_inst,gml_Script_s_create_exhibition_fixture));(_inst.gmlbtn_click_exhibition_controller_0=__yy_method(_inst,gml_Script_btn_click_exhibition_controller_0));(_inst.gmlbtn_click_exhibition_controller_1=__yy_method(_inst,gml_Script_btn_click_exhibition_controller_1));
(_inst.gmls_update_exhibition_controllers=__yy_method(_inst,gml_Script_s_update_exhibition_controllers));(_inst.gmlbtn_click_ChangeTeamAway=__yy_method(_inst,gml_Script_btn_click_ChangeTeamAway));(_inst.gmlbtn_click_ChangeTeamHome=__yy_method(_inst,gml_Script_btn_click_ChangeTeamHome));(_inst.gmlbtn_click_Exhibition_Play=__yy_method(_inst,gml_Script_btn_click_Exhibition_Play));(_inst.gmls_update_options_exh=__yy_method(_inst,gml_Script_s_update_options_exh));(_inst.gmls_force_kick_direction=__yy_method(_inst,
gml_Script_s_force_kick_direction));(_inst.gmls_count_audibles=__yy_method(_inst,gml_Script_s_count_audibles));(_inst.gmls_update_audibles=__yy_method(_inst,gml_Script_s_update_audibles));(_inst.gmls_set_audibles=__yy_method(_inst,gml_Script_s_set_audibles));(_inst.gmls_count_timeouts=__yy_method(_inst,gml_Script_s_count_timeouts));(_inst.gmls_update_timeouts=__yy_method(_inst,gml_Script_s_update_timeouts));(_inst.gmls_set_timeouts=__yy_method(_inst,gml_Script_s_set_timeouts));}function gml_Script_btn_click_exhibition_start(_inst,
_other){{global.gmlexhibition=true;gml_Script_s_create_new_save(_inst,_other);yyInst(_inst,_other,97).gmlop_difficulty=3;room_goto(47);}}function gml_Script_btn_click_exhibition_exit(_inst,_other){{gml_Script_s_destroy_master(_inst,_other);room_goto(0);}}function gml_Script_s_set_up_uniforms_exhibition(_inst,_other){{var gmlteamid_away=ds_map_find_value(global.gmlexh_fix,"away_team");var gmlteamid_home=ds_map_find_value(global.gmlexh_fix,"home_team");gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Team ",
__yy_gml_errCheck(string(gmlteamid_away)))," @ Team "),__yy_gml_errCheck(string(gmlteamid_home))));yyInst(_inst,_other,97).gmlteam=__yy_gml_array_check(yyInst(_inst,_other,97).gmlteam,2813691212);yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index_set(0)]=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteamid_away);yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index_set(1)]=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteamid_home);}}function gml_Script_s_create_exhibition_fixture(_inst,
_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("create fixture ",__yy_gml_errCheck(string(argument0)))," @ "),__yy_gml_errCheck(string(argument1))));var gmlfix=ds_map_create();ds_map_set(gmlfix,"week",(-1));ds_map_set(gmlfix,"away_team",argument0);ds_map_set(gmlfix,"home_team",argument1);ds_map_set(gmlfix,"away_score",(-1));ds_map_set(gmlfix,"home_score",(-1));return gmlfix;}}function gml_Script_btn_click_exhibition_controller_0(_inst,_other){{var ___sw364___=yyInst(_inst,
_other,97).gmlplayerteamindex;var ___swc365___=-1;if(yyCompareVal(___sw364___,(-1),g_GMLMathEpsilon,false)==0){___swc365___=0;}else if(yyCompareVal(___sw364___,0,g_GMLMathEpsilon,false)==0){___swc365___=1;}else if(yyCompareVal(___sw364___,1,g_GMLMathEpsilon,false)==0){___swc365___=2;}switch(___swc365___){case 0:{yyInst(_inst,_other,97).gmlplayerteamindex=1;break;}case 1:{yyInst(_inst,_other,97).gmlplayerteamindex=1;break;}case 2:{yyInst(_inst,_other,97).gmlplayerteamindex=(-1);break;}};gml_Script_s_update_exhibition_controllers(_inst,
_other);}}function gml_Script_btn_click_exhibition_controller_1(_inst,_other){{var ___sw366___=yyInst(_inst,_other,97).gmlplayerteamindex;var ___swc367___=-1;if(yyCompareVal(___sw366___,(-1),g_GMLMathEpsilon,false)==0){___swc367___=0;}else if(yyCompareVal(___sw366___,0,g_GMLMathEpsilon,false)==0){___swc367___=1;}else if(yyCompareVal(___sw366___,1,g_GMLMathEpsilon,false)==0){___swc367___=2;}switch(___swc367___){case 0:{yyInst(_inst,_other,97).gmlplayerteamindex=0;break;}case 1:{yyInst(_inst,_other,97).gmlplayerteamindex=(-1);
break;}case 2:{yyInst(_inst,_other,97).gmlplayerteamindex=0;break;}};gml_Script_s_update_exhibition_controllers(_inst,_other);}}function gml_Script_s_update_exhibition_controllers(_inst,_other){{yyInst(_inst,_other,100783).gmltext="CPU";yyInst(_inst,_other,100784).gmltext="CPU";var ___sw368___=yyInst(_inst,_other,97).gmlplayerteamindex;var ___swc369___=-1;if(yyCompareVal(___sw368___,(-1),g_GMLMathEpsilon,false)==0){___swc369___=0;}else if(yyCompareVal(___sw368___,0,g_GMLMathEpsilon,false)==0){___swc369___=1;
}else if(yyCompareVal(___sw368___,1,g_GMLMathEpsilon,false)==0){___swc369___=2;}switch(___swc369___){case 0:{yyInst(_inst,_other,100783).gmltext="HUMAN";yyInst(_inst,_other,100784).gmltext="HUMAN";break;}case 1:{yyInst(_inst,_other,100783).gmltext="HUMAN";break;}case 2:{yyInst(_inst,_other,100784).gmltext="HUMAN";break;}};}}function gml_Script_btn_click_ChangeTeamAway(_inst,_other){{global.gmlexh_choosing=0;room_goto(3);}}function gml_Script_btn_click_ChangeTeamHome(_inst,_other){{global.gmlexh_choosing=1;
room_goto(3);}}function gml_Script_btn_click_Exhibition_Play(_inst,_other){{{var __yy__v739=GetWithArray(97);for(var __yy__v740 in __yy__v739){if(!__yy__v739.hasOwnProperty(__yy__v740))continue;var __yy__v741=__yy__v739[__yy__v740];{yyInst(_inst,_other,97).gmlop_matchlength=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_matchlength");yyInst(_inst,_other,97).gmlstage=4;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v741.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v741.gmlroster,gmli))};ds_list_clear(__yy__v741.gmlroster);}}};room_goto(17);}}function gml_Script_s_update_options_exh(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_options_exh");var ___sw370___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_weather");var ___swc371___=-1;if(yyCompareVal(___sw370___,0,g_GMLMathEpsilon,false)==0){___swc371___=0;}else if(yyCompareVal(___sw370___,1,g_GMLMathEpsilon,false)==0){___swc371___=1;
}else if(yyCompareVal(___sw370___,2,g_GMLMathEpsilon,false)==0){___swc371___=2;}else if(yyCompareVal(___sw370___,3,g_GMLMathEpsilon,false)==0){___swc371___=3;}switch(___swc371___){case 0:{yyInst(_inst,_other,100791).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherRandom");break;}case 1:{yyInst(_inst,_other,100791).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherSun");break;}case 2:{yyInst(_inst,_other,100791).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherRain");break;}case 3:{yyInst(_inst,_other,
100791).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherSnow");break;}};var ___sw372___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_drivedir");var ___swc373___=-1;if(yyCompareVal(___sw372___,(-1),g_GMLMathEpsilon,false)==0){___swc373___=0;}else if(yyCompareVal(___sw372___,0,g_GMLMathEpsilon,false)==0){___swc373___=1;}else if(yyCompareVal(___sw372___,1,g_GMLMathEpsilon,false)==0){___swc373___=2;}switch(___swc373___){case 0:{yyInst(_inst,_other,100790).gmltext=gml_Script_s_str(_inst,
_other,"ui_driveLeft");break;}case 1:{yyInst(_inst,_other,100790).gmltext=gml_Script_s_str(_inst,_other,"ui_driveBoth");break;}case 2:{yyInst(_inst,_other,100790).gmltext=gml_Script_s_str(_inst,_other,"ui_driveRight");break;}};var ___sw374___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_matchlength");var ___swc375___=-1;if(yyCompareVal(___sw374___,(-1),g_GMLMathEpsilon,false)==0){___swc375___=0;}else if(yyCompareVal(___sw374___,0,g_GMLMathEpsilon,false)==0){___swc375___=1;}else if(yyCompareVal(___sw374___,
1,g_GMLMathEpsilon,false)==0){___swc375___=2;}switch(___swc375___){case 0:{yyInst(_inst,_other,100792).gmltext=gml_Script_s_str(_inst,_other,"ui_min1");break;}case 1:{yyInst(_inst,_other,100792).gmltext=gml_Script_s_str(_inst,_other,"ui_min2");break;}case 2:{yyInst(_inst,_other,100792).gmltext=gml_Script_s_str(_inst,_other,"ui_min3");break;}};var ___sw376___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_kickoffs");var ___swc377___=-1;if(yyCompareVal(___sw376___,false,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw376___,"false",g_GMLMathEpsilon,false)==0){___swc377___=0;}else if(yyCompareVal(___sw376___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw376___,"true",g_GMLMathEpsilon,false)==0){___swc377___=1;}switch(___swc377___){case 0:{yyInst(_inst,_other,100797).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,100797).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}};}}function gml_Script_s_force_kick_direction(_inst,_other){{{var __yy__v742=GetWithArray(104);
for(var __yy__v743 in __yy__v742){if(!__yy__v742.hasOwnProperty(__yy__v743))continue;var __yy__v744=__yy__v742[__yy__v743];{var ___sw378___=__yy__v744.gmlquarter;var ___swc379___=-1;if(yyCompareVal(___sw378___,1,g_GMLMathEpsilon,false)==0){___swc379___=0;}else if(yyCompareVal(___sw378___,2,g_GMLMathEpsilon,false)==0){___swc379___=1;}else if(yyCompareVal(___sw378___,3,g_GMLMathEpsilon,false)==0){___swc379___=2;}else if(yyCompareVal(___sw378___,4,g_GMLMathEpsilon,false)==0){___swc379___=3;}else if(yyCompareVal(___sw378___,
5,g_GMLMathEpsilon,false)==0){___swc379___=4;}switch(___swc379___){case 0:{__yy__v744.gmldrivedir=(yyfequal(__yy__v744.gmlpossession,0)?1:(-1));break;}case 1:{__yy__v744.gmldrivedir=(yyfequal(__yy__v744.gmlpossession,0)?(-1):1);break;}case 2:{__yy__v744.gmldrivedir=(yyfequal(__yy__v744.gmlpossession,0)?(-1):1);break;}case 3:{__yy__v744.gmldrivedir=(yyfequal(__yy__v744.gmlpossession,0)?1:(-1));break;}case 4:{__yy__v744.gmldrivedir=(yyfequal(__yy__v744.gmlpossession,0)?1:(-1));break;}};if(yyfnotequal(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"exh_op_drivedir"),0)){__yy__v744.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_drivedir");};if(yyGetBool(gml_Script_s_is_kickoff(__yy__v744,_inst,1))){gml_Script_s_switch_drivedirection(__yy__v744,_inst);};}}};}}function gml_Script_s_count_audibles(_inst,_other){{{var __yy__v745=GetWithArray(104);for(var __yy__v746 in __yy__v745){if(!__yy__v745.hasOwnProperty(__yy__v746))continue;var __yy__v747=__yy__v745[__yy__v746];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,
_other,97).gmlplayerteamindex,(-1))))){{var ___sw380___=__yy__v747.gmlpossession;var ___swc381___=-1;if(yyCompareVal(___sw380___,0,g_GMLMathEpsilon,false)==0){___swc381___=0;}else if(yyCompareVal(___sw380___,1,g_GMLMathEpsilon,false)==0){___swc381___=1;}switch(___swc381___){case 0:{return __yy__v747.gmlaudibles;break;}case 1:{return __yy__v747.gmlaudibles_p2;break;}};};}else {return __yy__v747.gmlaudibles;};}}};}}function gml_Script_s_update_audibles(_inst,_other,argument0){{{var __yy__v748=GetWithArray(104);
for(var __yy__v749 in __yy__v748){if(!__yy__v748.hasOwnProperty(__yy__v749))continue;var __yy__v750=__yy__v748[__yy__v749];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){{var ___sw382___=__yy__v750.gmlpossession;var ___swc383___=-1;if(yyCompareVal(___sw382___,0,g_GMLMathEpsilon,false)==0){___swc383___=0;}else if(yyCompareVal(___sw382___,1,g_GMLMathEpsilon,false)==0){___swc383___=1;}switch(___swc383___){case 0:{__yy__v750.gmlaudibles=yyfplus(__yy__v750.gmlaudibles,
argument0);break;}case 1:{__yy__v750.gmlaudibles_p2=yyfplus(__yy__v750.gmlaudibles_p2,argument0);break;}};};}else {__yy__v750.gmlaudibles=yyfplus(__yy__v750.gmlaudibles,argument0);};}}};}}function gml_Script_s_set_audibles(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_set_audibles:",__yy_gml_errCheck(string(argument0))));{var __yy__v751=GetWithArray(104);for(var __yy__v752 in __yy__v751){if(!__yy__v751.hasOwnProperty(__yy__v752))continue;var __yy__v753=__yy__v751[__yy__v752];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,
_other,97).gmlplayerteamindex,(-1))))){{var ___sw384___=__yy__v753.gmlpossession;var ___swc385___=-1;if(yyCompareVal(___sw384___,0,g_GMLMathEpsilon,false)==0){___swc385___=0;}else if(yyCompareVal(___sw384___,1,g_GMLMathEpsilon,false)==0){___swc385___=1;}switch(___swc385___){case 0:{__yy__v753.gmlaudibles=argument0;break;}case 1:{__yy__v753.gmlaudibles_p2=argument0;break;}};};}else {__yy__v753.gmlaudibles=argument0;};}}};}}function gml_Script_s_count_timeouts(_inst,_other){{{var __yy__v754=GetWithArray(104);
for(var __yy__v755 in __yy__v754){if(!__yy__v754.hasOwnProperty(__yy__v755))continue;var __yy__v756=__yy__v754[__yy__v755];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){{var ___sw386___=__yy__v756.gmlpossession;var ___swc387___=-1;if(yyCompareVal(___sw386___,0,g_GMLMathEpsilon,false)==0){___swc387___=0;}else if(yyCompareVal(___sw386___,1,g_GMLMathEpsilon,false)==0){___swc387___=1;}switch(___swc387___){case 0:{return __yy__v756.gmltimeouts;break;
}case 1:{return __yy__v756.gmltimeouts_p2;break;}};};}else {return __yy__v756.gmltimeouts;};}}};}}function gml_Script_s_update_timeouts(_inst,_other,argument0){{{var __yy__v757=GetWithArray(104);for(var __yy__v758 in __yy__v757){if(!__yy__v757.hasOwnProperty(__yy__v758))continue;var __yy__v759=__yy__v757[__yy__v758];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){{var ___sw388___=__yy__v759.gmlpossession;var ___swc389___=-1;if(yyCompareVal(___sw388___,
0,g_GMLMathEpsilon,false)==0){___swc389___=0;}else if(yyCompareVal(___sw388___,1,g_GMLMathEpsilon,false)==0){___swc389___=1;}switch(___swc389___){case 0:{__yy__v759.gmltimeouts=yyfplus(__yy__v759.gmltimeouts,argument0);break;}case 1:{__yy__v759.gmltimeouts_p2=yyfplus(__yy__v759.gmltimeouts_p2,argument0);break;}};};}else {__yy__v759.gmltimeouts=yyfplus(__yy__v759.gmltimeouts,argument0);};}}};}}function gml_Script_s_set_timeouts(_inst,_other,argument0){{{var __yy__v760=GetWithArray(104);for(var __yy__v761 in __yy__v760){
if(!__yy__v760.hasOwnProperty(__yy__v761))continue;var __yy__v762=__yy__v760[__yy__v761];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){{var ___sw390___=__yy__v762.gmlpossession;var ___swc391___=-1;if(yyCompareVal(___sw390___,0,g_GMLMathEpsilon,false)==0){___swc391___=0;}else if(yyCompareVal(___sw390___,1,g_GMLMathEpsilon,false)==0){___swc391___=1;}switch(___swc391___){case 0:{__yy__v762.gmltimeouts=argument0;break;}case 1:{__yy__v762.gmltimeouts_p2=argument0;
break;}};};}else {__yy__v762.gmltimeouts=argument0;};}}};}}function gml_GlobalScript_s_get_human_fixture_next(_inst,_other){(_inst.gmls_get_human_fixture_next=__yy_method(_inst,gml_Script_s_get_human_fixture_next));}function gml_Script_s_get_human_fixture_next(_inst,_other){{{var __yy__v763=GetWithArray(97);for(var __yy__v764 in __yy__v763){if(!__yy__v763.hasOwnProperty(__yy__v764))continue;var __yy__v765=__yy__v763[__yy__v764];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v765.gmlfixturelist));(g_yyPrePostObject__=gmlf,
gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v765.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){return gmlfix;};}};}}};return(-4);}}function gml_GlobalScript_s_count_remaining_fixtures(_inst,_other){(_inst.gmls_count_remaining_fixtures=__yy_method(_inst,gml_Script_s_count_remaining_fixtures));}function gml_Script_s_count_remaining_fixtures(_inst,_other){{{
var __yy__v766=GetWithArray(97);for(var __yy__v767 in __yy__v766){if(!__yy__v766.hasOwnProperty(__yy__v767))continue;var __yy__v768=__yy__v766[__yy__v767];{var gmlcount=0;var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v768.gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v768.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){
(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_GlobalScript_s_get_division_winner(_inst,_other,argument0,argument1){(_inst.gmls_get_division_winner=__yy_method(_inst,gml_Script_s_get_division_winner));}function gml_Script_s_get_division_winner(_inst,_other,argument0,argument1){{var gmlconf=argument0;var gmldivision=argument1;var gmlteams_div=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,
_other,97).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmli);if((yyGetBool(yyfequal(real(ds_map_find_value(gmlteam,"conference")),gmlconf)))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlteam,"division")),gmldivision)))){{ds_list_add(gmlteams_div,gmlteam);};};}};gmlteams_div=gml_Script_s_sort_teams(_inst,_other,gmlteams_div,0,false);var gmlteam=ds_list_find_value(gmlteams_div,
0);ds_list_destroy(gmlteams_div);gmlteams_div=(-1);return gmlteam;}}function gml_GlobalScript_s_get_team_position_by_id(_inst,_other,argument0){(_inst.gmls_get_team_position_by_id=__yy_method(_inst,gml_Script_s_get_team_position_by_id));}function gml_Script_s_get_team_position_by_id(_inst,_other,argument0){{var gmltmap=gml_Script_s_get_team_by_id(_inst,_other,argument0);var gmlconf=ds_map_find_value(gmltmap,"conference");var gmldivision=ds_map_find_value(gmltmap,"division");var gmlteams_div=ds_list_create();
var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmli);if((yyGetBool(yyfequal(real(ds_map_find_value(gmlteam,"conference")),gmlconf)))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlteam,"division")),gmldivision)))){{ds_list_add(gmlteams_div,gmlteam);};};}};gmlteams_div=gml_Script_s_sort_teams(_inst,
_other,gmlteams_div,0,false);var gmlretval=1;if(yyfequal(ds_list_find_value(gmlteams_div,0),gmltmap)){gmlretval=1;};if(yyfequal(ds_list_find_value(gmlteams_div,1),gmltmap)){gmlretval=2;};if(yyfequal(ds_list_find_value(gmlteams_div,2),gmltmap)){gmlretval=3;};if(yyfequal(ds_list_find_value(gmlteams_div,3),gmltmap)){gmlretval=4;};ds_list_destroy(gmlteams_div);gmlteams_div=(-1);return gmlretval;}}function gml_GlobalScript_s_get_division_winner_name(_inst,_other,argument0,argument1,argument2){(_inst.gmls_get_division_winner_name=__yy_method(_inst,
gml_Script_s_get_division_winner_name));}function gml_Script_s_get_division_winner_name(_inst,_other,argument0,argument1,argument2){{var gmlconf=argument0;var gmldivision=argument1;var gmltla=argument2;var gmlteam=gml_Script_s_get_division_winner(_inst,_other,gmlconf,gmldivision);var ___sw394___=gmltla;var ___swc395___=-1;if(yyCompareVal(___sw394___,false,g_GMLMathEpsilon,false)==0){___swc395___=0;}else if(yyCompareVal(___sw394___,true,g_GMLMathEpsilon,false)==0){___swc395___=1;}switch(___swc395___){case 0:{
return ds_map_find_value(gmlteam,"name");break;}case 1:{return ds_map_find_value(gmlteam,"tla");break;}};}}function gml_GlobalScript_s_get_division_winner_by_seed(_inst,_other){(_inst.gmls_get_division_winner_by_seed=__yy_method(_inst,gml_Script_s_get_division_winner_by_seed));}function gml_Script_s_get_division_winner_by_seed(_inst,_other,argument0,argument1){{var gmldiv_winners=ds_list_create();ds_list_add(gmldiv_winners,gml_Script_s_get_division_winner(_inst,_other,argument0,0));ds_list_add(gmldiv_winners,
gml_Script_s_get_division_winner(_inst,_other,argument0,1));ds_list_add(gmldiv_winners,gml_Script_s_get_division_winner(_inst,_other,argument0,2));ds_list_add(gmldiv_winners,gml_Script_s_get_division_winner(_inst,_other,argument0,3));gmldiv_winners=gml_Script_s_sort_teams(_inst,_other,gmldiv_winners,0,false);var gmlteam=ds_list_find_value(gmldiv_winners,yyfminus(__yy_gml_errCheck(argument1),1));ds_list_destroy(gmldiv_winners);gmldiv_winners=(-1);return gmlteam;}}function gml_GlobalScript_s_get_division_winner_name_by_seed(_inst,
_other,argument0,argument1,argument2){(_inst.gmls_get_division_winner_name_by_seed=__yy_method(_inst,gml_Script_s_get_division_winner_name_by_seed));}function gml_Script_s_get_division_winner_name_by_seed(_inst,_other,argument0,argument1,argument2){{var gmlconf=argument0;var gmlseed=argument1;var gmltla=argument2;var gmlteam=gml_Script_s_get_division_winner_by_seed(_inst,_other,gmlconf,gmlseed);var ___sw398___=gmltla;var ___swc399___=-1;if(yyCompareVal(___sw398___,false,g_GMLMathEpsilon,false)==0){___swc399___=0;
}else if(yyCompareVal(___sw398___,true,g_GMLMathEpsilon,false)==0){___swc399___=1;}switch(___swc399___){case 0:{return ds_map_find_value(gmlteam,"name");break;}case 1:{return ds_map_find_value(gmlteam,"tla");break;}};}}function gml_GlobalScript_s_skip_to_week(_inst,_other){(_inst.gmls_skip_to_week=__yy_method(_inst,gml_Script_s_skip_to_week));}function gml_Script_s_skip_to_week(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_skip_to_week ",__yy_gml_errCheck(string(argument0))),
" "));{var __yy__v769=GetWithArray(97);for(var __yy__v770 in __yy__v769){if(!__yy__v769.hasOwnProperty(__yy__v770))continue;var __yy__v771=__yy__v769[__yy__v770];{do {{gml_Script_s_do_schedule(__yy__v771,_inst,true);(g_yyPrePostObject__=__yy__v771.gmlweek,__yy__v771.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v771.gmlweek.add(1):++__yy__v771.gmlweek),g_yyPrePostObject__);}}while(!(yyfequal(__yy__v771.gmlweek,argument0)));__yy__v771.gmldraft_round=4;}}};}}function gml_GlobalScript_s_clear_playoff_fixtures(_inst,
_other){(_inst.gmls_clear_playoff_fixtures=__yy_method(_inst,gml_Script_s_clear_playoff_fixtures));}function gml_Script_s_clear_playoff_fixtures(_inst,_other){{if(yyGetBool(ds_exists(yyInst(_inst,_other,97).gmlplayoffs,2))){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlplayoffs));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(yyInst(_inst,_other,97).gmlplayoffs,gmli));ds_list_set(yyInst(_inst,
_other,97).gmlplayoffs,gmli,(-1));}};ds_list_clear(yyInst(_inst,_other,97).gmlplayoffs);};};}}function gml_GlobalScript_s_update_team_edit_buttons(_inst,_other){(_inst.gmls_update_team_edit_buttons=__yy_method(_inst,gml_Script_s_update_team_edit_buttons));}function gml_Script_s_update_team_edit_buttons(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("s_update_team_edit_buttons:",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmledit_conf))));var gmlb=0;var gmlt=0;for(;yyfless(gmlt,ds_list_size(yyInst(_inst,
_other,97).gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlt);if(yyfequal(real(ds_map_find_value(gmlteam,"conference")),yyInst(_inst,_other,97).gmledit_conf)){{yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmltext=ds_map_find_value(gmlteam,"name");yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmluid=real(ds_map_find_value(gmlteam,
"uid"));(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__);};};}};var ___sw402___=yyInst(_inst,_other,97).gmledit_conf;var ___swc403___=-1;if(yyCompareVal(___sw402___,0,g_GMLMathEpsilon,false)==0){___swc403___=0;}else if(yyCompareVal(___sw402___,1,g_GMLMathEpsilon,false)==0){___swc403___=1;}switch(___swc403___){case 0:{yyInst(_inst,_other,100542).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100541).gmlcolour=global.gmlc_background;yyInst(_inst,
_other,100548).gmltext=yyInst(_inst,_other,97).gmlname_div1;yyInst(_inst,_other,100551).gmltext=yyInst(_inst,_other,97).gmlname_div2;yyInst(_inst,_other,100549).gmltext=yyInst(_inst,_other,97).gmlname_div3;yyInst(_inst,_other,100550).gmltext=yyInst(_inst,_other,97).gmlname_div4;break;}case 1:{yyInst(_inst,_other,100542).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100541).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100548).gmltext=yyInst(_inst,_other,97).gmlname_div1b;yyInst(_inst,_other,
100551).gmltext=yyInst(_inst,_other,97).gmlname_div2b;yyInst(_inst,_other,100549).gmltext=yyInst(_inst,_other,97).gmlname_div3b;yyInst(_inst,_other,100550).gmltext=yyInst(_inst,_other,97).gmlname_div4b;break;}};yyInst(_inst,_other,100542).gmltext=yyInst(_inst,_other,97).gmlname_conf1;yyInst(_inst,_other,100541).gmltext=yyInst(_inst,_other,97).gmlname_conf2;}}function gml_GlobalScript_s_set_up_edit_screen(_inst,_other){(_inst.gmls_set_up_edit_screen=__yy_method(_inst,gml_Script_s_set_up_edit_screen));
}function gml_Script_s_set_up_edit_screen(_inst,_other){{{var __yy__v772=GetWithArray(129);for(var __yy__v773 in __yy__v772){if(!__yy__v772.hasOwnProperty(__yy__v773))continue;var __yy__v774=__yy__v772[__yy__v773];{yyInst(_inst,_other,100105).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100106).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100107).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100110).gmlcolour=global.gmlc_background;var ___sw406___=__yy__v774.gmlkittype;var ___swc407___=-1;
if(yyCompareVal(___sw406___,0,g_GMLMathEpsilon,false)==0){___swc407___=0;}else if(yyCompareVal(___sw406___,1,g_GMLMathEpsilon,false)==0){___swc407___=1;}else if(yyCompareVal(___sw406___,2,g_GMLMathEpsilon,false)==0){___swc407___=2;}else if(yyCompareVal(___sw406___,3,g_GMLMathEpsilon,false)==0){___swc407___=3;}switch(___swc407___){case 0:{yyInst(_inst,_other,100105).gmlcolour=global.gmlc_primary;break;}case 1:{yyInst(_inst,_other,100106).gmlcolour=global.gmlc_primary;break;}case 2:{yyInst(_inst,_other,
100107).gmlcolour=global.gmlc_primary;break;}case 3:{yyInst(_inst,_other,100110).gmlcolour=global.gmlc_primary;break;}};yyInst(_inst,_other,100082).gmltext=yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlname;yyInst(_inst,_other,100080).gmltext=gml_Script_s_load_team_detail(__yy__v774,_inst,ds_map_find_value(yyInst(_inst,_other,97).gmledit_team,"uid"),"name");yyInst(_inst,_other,100077).gmltext=yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlname;yyInst(_inst,_other,100078).gmltext=yyInst(_inst,
_other,__yy__v774.gmlcurrent_uni).gmltla;yyInst(_inst,_other,100069).gmltext=string(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlrainfall);yyInst(_inst,_other,100070).gmltext=string(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlsnowfall);yyInst(_inst,_other,100071).gmlstate=yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlroof;yyInst(_inst,_other,100089).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_helmet,"$",""));yyInst(_inst,_other,100092).gmltext=string_upper(string_replace_all(yyInst(_inst,
_other,__yy__v774.gmlcurrent_uni).gmlhex_logo,"$",""));yyInst(_inst,_other,100090).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_shirt,"$",""));yyInst(_inst,_other,100091).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_sleeve,"$",""));yyInst(_inst,_other,100093).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_pants,"$",""));yyInst(_inst,_other,100094).gmltext=string_upper(string_replace_all(yyInst(_inst,
_other,__yy__v774.gmlcurrent_uni).gmlhex_stripe,"$",""));yyInst(_inst,_other,100095).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_socks1,"$",""));yyInst(_inst,_other,100096).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_socks2,"$",""));yyInst(_inst,_other,100072).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_endzone,"$",""));yyInst(_inst,_other,100097).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,
_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_helmet));yyInst(_inst,_other,100098).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_logo));yyInst(_inst,_other,100099).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_shirt));yyInst(_inst,
_other,100100).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_sleeve));yyInst(_inst,_other,100101).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_pants));yyInst(_inst,_other,100102).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,
_other,__yy__v774.gmlcurrent_uni).gmlhex_stripe));yyInst(_inst,_other,100103).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_socks1));yyInst(_inst,_other,100104).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_socks2));yyInst(_inst,_other,100073).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v774,
_inst,gml_Script_s_hex_string_to_col(__yy__v774,_inst,yyInst(_inst,_other,__yy__v774.gmlcurrent_uni).gmlhex_endzone));}}};}}function gml_GlobalScript_s_color_picker(_inst,_other){(_inst.gmls_color_picker=__yy_method(_inst,gml_Script_s_color_picker));}function gml_Script_s_color_picker(_inst,_other){{var gmlbg=instance_create_layer(0,0,"PopUps",78);var gmlpicker=instance_create_layer(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2),yyfdivide(__yy_gml_errCheck(display_get_gui_height()),2),"PopUps",
131);yyInst(_inst,_other,gmlbg).gmlalpha=0.9;yyInst(_inst,_other,gmlpicker).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);}}// slog ("Team "+string(teamid_away)+" @ Team "+string(teamid_home));
function gml_GlobalScript_s_set_up_uniforms(_inst,_other){(_inst.gmls_set_up_uniforms=__yy_method(_inst,gml_Script_s_set_up_uniforms));}function gml_Script_s_set_up_uniforms(_inst,_other){{var gmlfixture=gml_Script_s_get_human_fixture_next(_inst,_other);var gmlteamid_away=ds_map_find_value(gmlfixture,
"away_team");var gmlteamid_home=ds_map_find_value(gmlfixture,"home_team");gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Team ",__yy_gml_errCheck(string(gmlteamid_away)))," @ Team "),__yy_gml_errCheck(string(gmlteamid_home))));yyInst(_inst,_other,97).gmlteam=__yy_gml_array_check(yyInst(_inst,_other,97).gmlteam,2813691212);yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index_set(0)]=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteamid_away);yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index_set(1)]=ds_list_find_value(yyInst(_inst,
_other,97).gmlteamlist,gmlteamid_home);yyInst(_inst,_other,97).gmlplayerteamindex=0;if(yyfequal(gmlteamid_home,yyInst(_inst,_other,97).gmlmyteam_id)){yyInst(_inst,_other,97).gmlplayerteamindex=1;};}}function gml_GlobalScript_s_set_up_uniforms_training(_inst,_other){(_inst.gmls_set_up_uniforms_training=__yy_method(_inst,gml_Script_s_set_up_uniforms_training));}function gml_Script_s_set_up_uniforms_training(_inst,_other){{var gmlteamid_away=irandom(31);var gmlteamid_home=yyInst(_inst,_other,97).gmlmyteam_id;
yyInst(_inst,_other,97).gmlteam=__yy_gml_array_check(yyInst(_inst,_other,97).gmlteam,2813691212);yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index_set(0)]=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteamid_away);yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index_set(1)]=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteamid_home);yyInst(_inst,_other,97).gmlplayerteamindex=1;var gmlstr_helmet1=ds_map_find_value(yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(0,
yyInst(_inst,_other,97).gmlteam)],"colhelmet");var gmlstr_shirt1=ds_map_find_value(yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlteam)],"colshirt");var gmlstr_pants1=ds_map_find_value(yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlteam)],"colpants");var gmlstr_helmet2=ds_map_find_value(yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlteam)],"colhelmet");var gmlstr_shirt2=ds_map_find_value(yyInst(_inst,
_other,97).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlteam)],"colshirt");var gmlstr_pants2=ds_map_find_value(yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlteam)],"colpants");if(yyfequal(gmlstr_helmet1,gmlstr_helmet2)){gmlstr_helmet1=gmlstr_shirt1;};if(yyfequal(gmlstr_shirt1,gmlstr_shirt2)){gmlstr_shirt1=gmlstr_pants1;};if(yyfequal(gmlstr_pants1,gmlstr_pants2)){gmlstr_pants1=gmlstr_helmet1;};var gmlcolhelmet=gml_Script_s_hex_string_to_col(_inst,
_other,gmlstr_helmet2);var gmlcolshirt=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_shirt2);var gmlcolpants=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_pants2);yyInst(_inst,_other,97).gmlcol_helmet_home=__yy_gml_array_check(yyInst(_inst,_other,97).gmlcol_helmet_home,2946034739);yyInst(_inst,_other,97).gmlcol_helmet_home[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolhelmet)),256);yyInst(_inst,_other,97).gmlcol_helmet_home[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolhelmet)),
256);yyInst(_inst,_other,97).gmlcol_helmet_home[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolhelmet)),256);yyInst(_inst,_other,97).gmlcol_shirt_home=__yy_gml_array_check(yyInst(_inst,_other,97).gmlcol_shirt_home,2655840632);yyInst(_inst,_other,97).gmlcol_shirt_home[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolshirt)),256);yyInst(_inst,_other,97).gmlcol_shirt_home[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolshirt)),
256);yyInst(_inst,_other,97).gmlcol_shirt_home[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolshirt)),256);yyInst(_inst,_other,97).gmlcol_sleeve_home=__yy_gml_array_check(yyInst(_inst,_other,97).gmlcol_sleeve_home,2023161664);yyInst(_inst,_other,97).gmlcol_sleeve_home[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolshirt)),300);yyInst(_inst,_other,97).gmlcol_sleeve_home[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolshirt)),
300);yyInst(_inst,_other,97).gmlcol_sleeve_home[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolshirt)),300);yyInst(_inst,_other,97).gmlcol_pants_home=__yy_gml_array_check(yyInst(_inst,_other,97).gmlcol_pants_home,3091588627);yyInst(_inst,_other,97).gmlcol_pants_home[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolpants)),256);yyInst(_inst,_other,97).gmlcol_pants_home[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolpants)),
256);yyInst(_inst,_other,97).gmlcol_pants_home[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolpants)),256);yyInst(_inst,_other,97).gmlcol_pants_home_b=__yy_gml_array_check(yyInst(_inst,_other,97).gmlcol_pants_home_b,1674756684);yyInst(_inst,_other,97).gmlcol_pants_home_b[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolpants)),300);yyInst(_inst,_other,97).gmlcol_pants_home_b[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolpants)),
300);yyInst(_inst,_other,97).gmlcol_pants_home_b[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolpants)),300);gmlcolhelmet=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_helmet1);gmlcolshirt=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_shirt1);gmlcolpants=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_pants1);yyInst(_inst,_other,97).gmlcol_helmet_away=__yy_gml_array_check(yyInst(_inst,_other,97).gmlcol_helmet_away,4092826891);yyInst(_inst,_other,
97).gmlcol_helmet_away[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolhelmet)),256);yyInst(_inst,_other,97).gmlcol_helmet_away[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolhelmet)),256);yyInst(_inst,_other,97).gmlcol_helmet_away[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolhelmet)),256);yyInst(_inst,_other,97).gmlcol_shirt_away=__yy_gml_array_check(yyInst(_inst,_other,97).gmlcol_shirt_away,
3257372736);yyInst(_inst,_other,97).gmlcol_shirt_away[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolshirt)),256);yyInst(_inst,_other,97).gmlcol_shirt_away[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolshirt)),256);yyInst(_inst,_other,97).gmlcol_shirt_away[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolshirt)),256);yyInst(_inst,_other,97).gmlcol_sleeve_away=__yy_gml_array_check(yyInst(_inst,
_other,97).gmlcol_sleeve_away,620594808);yyInst(_inst,_other,97).gmlcol_sleeve_away[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolshirt)),300);yyInst(_inst,_other,97).gmlcol_sleeve_away[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolshirt)),300);yyInst(_inst,_other,97).gmlcol_sleeve_away[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolshirt)),300);yyInst(_inst,_other,97).gmlcol_pants_away=__yy_gml_array_check(yyInst(_inst,
_other,97).gmlcol_pants_away,3828260651);yyInst(_inst,_other,97).gmlcol_pants_away[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolpants)),256);yyInst(_inst,_other,97).gmlcol_pants_away[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolpants)),256);yyInst(_inst,_other,97).gmlcol_pants_away[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolpants)),256);yyInst(_inst,_other,97).gmlcol_pants_away_b=__yy_gml_array_check(yyInst(_inst,
_other,97).gmlcol_pants_away_b,3921276526);yyInst(_inst,_other,97).gmlcol_pants_away_b[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolpants)),300);yyInst(_inst,_other,97).gmlcol_pants_away_b[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolpants)),300);yyInst(_inst,_other,97).gmlcol_pants_away_b[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolpants)),300);}}function gml_GlobalScript_s_set_up_uniform_profile(_inst,
_other){(_inst.gmls_set_up_uniform_profile=__yy_method(_inst,gml_Script_s_set_up_uniform_profile));}function gml_Script_s_set_up_uniform_profile(_inst,_other,argument0){{if(yyGetBool(argument0)){{_inst.gmlhelmet=yyInst(_inst,_other,argument0).gmlhelmet;_inst.gmlshirt=yyInst(_inst,_other,argument0).gmlshirt;_inst.gmlpants=yyInst(_inst,_other,argument0).gmlpants;};}else {{_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(8421504)),
256);_inst.gmlhelmet[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(8421504)),256);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(8421504)),256);_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(12632256)),256);_inst.gmlshirt[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(12632256)),
256);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(12632256)),256);_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(0)),256);_inst.gmlpants[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(0)),256);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(0)),256);};};}}function gml_GlobalScript_s_shader_get_uniforms(_inst,
_other){(_inst.gmls_shader_get_uniforms=__yy_method(_inst,gml_Script_s_shader_get_uniforms));}function gml_Script_s_shader_get_uniforms(_inst,_other){{return;global.gmlcolorHelmet=shader_get_uniform(0,"colorHelmet");global.gmlcolorLogo=shader_get_uniform(0,"colorLogo");global.gmlcolorShirt=shader_get_uniform(0,"colorShirt");global.gmlcolorSleeve=shader_get_uniform(0,"colorSleeve");global.gmlcolorPants=shader_get_uniform(0,"colorPants");global.gmlcolorPants_b=shader_get_uniform(0,"colorPants_b");global.gmlcolorStripe=shader_get_uniform(0,
"colorStripe");global.gmlcolorSocks=shader_get_uniform(0,"colorSocks");global.gmlcolorSocks_b=shader_get_uniform(0,"colorSocks_b");global.gmlcolorSkin=shader_get_uniform(0,"colorSkin");global.gmlcolorCleats=shader_get_uniform(0,"colorCleats");global.gmlreplaceHelmet=shader_get_uniform(0,"replaceHelmet");global.gmlreplaceLogo=shader_get_uniform(0,"replaceLogo");global.gmlreplaceShirt=shader_get_uniform(0,"replaceShirt");global.gmlreplaceSleeve=shader_get_uniform(0,"replaceSleeve");global.gmlreplacePants=shader_get_uniform(0,
"replacePants");global.gmlreplacePants_b=shader_get_uniform(0,"replacePants_b");global.gmlreplaceStripe=shader_get_uniform(0,"replaceStripe");global.gmlreplaceSocks=shader_get_uniform(0,"replaceSocks");global.gmlreplaceSocks_b=shader_get_uniform(0,"replaceSocks_b");global.gmlreplaceSkin=shader_get_uniform(0,"replaceSkin");global.gmlreplaceCleats=shader_get_uniform(0,"replaceCleats");}}function gml_GlobalScript_s_shader_set_uniforms(_inst,_other){(_inst.gmls_shader_set_uniforms=__yy_method(_inst,gml_Script_s_shader_set_uniforms));
}function gml_Script_s_shader_set_uniforms(_inst,_other){{shader_set(0);shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorLogo,0.5,0,0);shader_set_uniform_f(global.gmlcolorShirt,0.5,0.5,1);shader_set_uniform_f(global.gmlcolorSleeve,0.5,0.5,0.5);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlcolorPants_b,0.5,0,0.5);shader_set_uniform_f(global.gmlcolorStripe,0,0,0.5);shader_set_uniform_f(global.gmlcolorSocks,0,1,0);shader_set_uniform_f(global.gmlcolorSocks_b,
0,0.5,0);shader_set_uniform_f(global.gmlcolorSkin,0,0,1);shader_set_uniform_f(global.gmlcolorCleats,1,1,0);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceLogo,_inst.gmllogo[__yy_gml_array_check_index(2,_inst.gmllogo)],_inst.gmllogo[__yy_gml_array_check_index(1,_inst.gmllogo)],
_inst.gmllogo[__yy_gml_array_check_index(0,_inst.gmllogo)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplaceSleeve,_inst.gmlsleeve[__yy_gml_array_check_index(2,_inst.gmlsleeve)],_inst.gmlsleeve[__yy_gml_array_check_index(1,_inst.gmlsleeve)],_inst.gmlsleeve[__yy_gml_array_check_index(0,
_inst.gmlsleeve)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);shader_set_uniform_f(global.gmlreplacePants_b,_inst.gmlpants_b[__yy_gml_array_check_index(2,_inst.gmlpants_b)],_inst.gmlpants_b[__yy_gml_array_check_index(1,_inst.gmlpants_b)],_inst.gmlpants_b[__yy_gml_array_check_index(0,_inst.gmlpants_b)]);shader_set_uniform_f(global.gmlreplaceStripe,
_inst.gmlstripe[__yy_gml_array_check_index(2,_inst.gmlstripe)],_inst.gmlstripe[__yy_gml_array_check_index(1,_inst.gmlstripe)],_inst.gmlstripe[__yy_gml_array_check_index(0,_inst.gmlstripe)]);shader_set_uniform_f(global.gmlreplaceSocks,_inst.gmlsocks1[__yy_gml_array_check_index(2,_inst.gmlsocks1)],_inst.gmlsocks1[__yy_gml_array_check_index(1,_inst.gmlsocks1)],_inst.gmlsocks1[__yy_gml_array_check_index(0,_inst.gmlsocks1)]);shader_set_uniform_f(global.gmlreplaceSocks_b,_inst.gmlsocks2[__yy_gml_array_check_index(2,
_inst.gmlsocks2)],_inst.gmlsocks2[__yy_gml_array_check_index(1,_inst.gmlsocks2)],_inst.gmlsocks2[__yy_gml_array_check_index(0,_inst.gmlsocks2)]);shader_set_uniform_f(global.gmlreplaceSkin,_inst.gmlcol_skin_r,_inst.gmlcol_skin_g,_inst.gmlcol_skin_b);shader_set_uniform_f(global.gmlreplaceCleats,_inst.gmlcleats[__yy_gml_array_check_index(2,_inst.gmlcleats)],_inst.gmlcleats[__yy_gml_array_check_index(1,_inst.gmlcleats)],_inst.gmlcleats[__yy_gml_array_check_index(0,_inst.gmlcleats)]);}}function gml_GlobalScript_s_convert_uniform_colours_all(_inst,
_other){(_inst.gmls_convert_uniform_colours_all=__yy_method(_inst,gml_Script_s_convert_uniform_colours_all));}function gml_Script_s_convert_uniform_colours_all(_inst,_other,argument0){{{var __yy__v775=GetWithArray(argument0);for(var __yy__v776 in __yy__v775){if(!__yy__v775.hasOwnProperty(__yy__v776))continue;var __yy__v777=__yy__v775[__yy__v776];{__yy__v777.gmlhelmet=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlhelmet,__yy__v777.gmlhex_helmet,256);__yy__v777.gmllogo=gml_Script_s_convert_uniform_colour(__yy__v777,
_inst,__yy__v777.gmllogo,__yy__v777.gmlhex_logo,256);__yy__v777.gmlshirt=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlshirt,__yy__v777.gmlhex_shirt,256);__yy__v777.gmlsleeve=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlsleeve,__yy__v777.gmlhex_sleeve,256);__yy__v777.gmlpants=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlpants,__yy__v777.gmlhex_pants,256);__yy__v777.gmlpants_b=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlpants_b,
__yy__v777.gmlhex_pants,300);__yy__v777.gmlstripe=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlstripe,__yy__v777.gmlhex_stripe,256);__yy__v777.gmlsocks1=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlsocks1,__yy__v777.gmlhex_socks1,256);__yy__v777.gmlsocks2=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlsocks2,__yy__v777.gmlhex_socks2,256);__yy__v777.gmlendzone=gml_Script_s_convert_uniform_colour(__yy__v777,_inst,__yy__v777.gmlendzone,
__yy__v777.gmlhex_endzone,256);}}};}}function gml_GlobalScript_s_convert_uniform_colour(_inst,_other,argument0,argument1,argument2){(_inst.gmls_convert_uniform_colour=__yy_method(_inst,gml_Script_s_convert_uniform_colour));}function gml_Script_s_convert_uniform_colour(_inst,_other,argument0,argument1,argument2){{var gmlrgb_col=argument0;var gmlhex_col=argument1;var gmlamt=argument2;gmlrgb_col=__yy_gml_array_check(gmlrgb_col,2665157194);gmlrgb_col[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gml_Script_s_hex_string_to_col(_inst,
_other,gmlhex_col))),__yy_gml_errCheck(gmlamt));gmlrgb_col[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gml_Script_s_hex_string_to_col(_inst,_other,gmlhex_col))),__yy_gml_errCheck(gmlamt));gmlrgb_col[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gml_Script_s_hex_string_to_col(_inst,_other,gmlhex_col))),__yy_gml_errCheck(gmlamt));return gmlrgb_col;}}function gml_GlobalScript_s_restore_uniforms_all(_inst,_other){(_inst.gmls_restore_uniforms_all=__yy_method(_inst,
gml_Script_s_restore_uniforms_all));}function gml_Script_s_restore_uniforms_all(_inst,_other){{var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))),".txt");file_delete(gmlfile_name);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,gml_Script_s_uniforms_default_file(_inst,_other));room_goto(29);}}function gml_GlobalScript_s_copy_uniforms_slot_a(_inst,_other){
(_inst.gmls_copy_uniforms_slot_a=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_a));}function gml_Script_s_copy_uniforms_slot_a(_inst,_other){{var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))),".txt");file_delete(gmlfile_name);file_copy("uniforms_custom_1.txt",gmlfile_name);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,gmlfile_name);room_goto(29);}
}function gml_GlobalScript_s_copy_uniforms_slot_b(_inst,_other){(_inst.gmls_copy_uniforms_slot_b=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_b));}function gml_Script_s_copy_uniforms_slot_b(_inst,_other){{var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))),".txt");file_delete(gmlfile_name);file_copy("uniforms_custom_2.txt",gmlfile_name);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_copy_teamnames_from_uniform_file(_inst,
_other,gmlfile_name);room_goto(29);}}function gml_GlobalScript_s_copy_uniforms_slot_c(_inst,_other){(_inst.gmls_copy_uniforms_slot_c=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_c));}function gml_Script_s_copy_uniforms_slot_c(_inst,_other){{var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))),".txt");file_delete(gmlfile_name);file_copy("uniforms_custom_3.txt",gmlfile_name);gml_Script_s_msg_clear(_inst,
_other);gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,gmlfile_name);room_goto(29);}}function gml_GlobalScript_s_copy_uniforms_slot_d(_inst,_other){(_inst.gmls_copy_uniforms_slot_d=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_d));}function gml_Script_s_copy_uniforms_slot_d(_inst,_other){{var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))),".txt");file_delete(gmlfile_name);file_copy("uniforms_custom_4.txt",
gmlfile_name);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,gmlfile_name);room_goto(29);}}function gml_GlobalScript_s_set_up_kickoff(_inst,_other){(_inst.gmls_set_up_kickoff=__yy_method(_inst,gml_Script_s_set_up_kickoff));}function gml_Script_s_set_up_kickoff(_inst,_other){{show_debug_message("s_set_up_kickoff");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmldown=99;global.gmlreplay_do=false;{var __yy__v778=GetWithArray(104);for(var __yy__v779 in __yy__v778){
if(!__yy__v778.hasOwnProperty(__yy__v779))continue;var __yy__v780=__yy__v778[__yy__v779];{__yy__v780.alarm=__yy_gml_array_check(__yy__v780.alarm,1074215368);__yy__v780.alarm[__yy_gml_array_check_index_set(0)]=0;gml_Script_s_reset_wind(__yy__v780,_inst);__yy__v780.gmlkicking=3;__yy__v780.gmlscored_by=(-1);__yy__v780.gmlscrimmage=(-15);__yy__v780.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(__yy__v780.gmlscrimmage),20),__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v780.gmldrivedir))))));
__yy__v780.gmlx_yards=yyfplus(__yy_gml_errCheck(__yy__v780.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(__yy__v780.gmlyards),20),__yy_gml_errCheck(__yy__v780.gmldrivedir))));__yy__v780.gmly_scrim=300;__yy__v780.gmlkick_dist=0;gml_Script_s_destroy_match_objects(__yy__v780,_inst);var gmlo=1;for(;yyfless(gmlo,12);(g_yyPrePostObject__=gmlo,gmlo=(g_yyPrePostObject__ instanceof Long?gmlo.add(1):++gmlo),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",107);}};var gmld=1;for(;yyfless(gmld,
12);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",108);}};{var __yy__v781=GetWithArray(106);for(var __yy__v782 in __yy__v781){if(!__yy__v781.hasOwnProperty(__yy__v782))continue;var __yy__v783=__yy__v781[__yy__v782];gml_Script_s_set_skills_and_skin(__yy__v783,__yy__v780);}};global.gmlmaster_ball=instance_create_layer(0,0,"Ball",110);instance_create_layer(0,0,"Ball",111);}}};}}function gml_GlobalScript_s_copy_uniforms_slot_e(_inst,
_other){(_inst.gmls_copy_uniforms_slot_e=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_e));}function gml_Script_s_copy_uniforms_slot_e(_inst,_other){{var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))),".txt");file_delete(gmlfile_name);file_copy("uniforms_custom_5.txt",gmlfile_name);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,gmlfile_name);room_goto(29);
}}function gml_GlobalScript_s_update_uniform_name(_inst,_other){(_inst.gmls_update_uniform_name=__yy_method(_inst,gml_Script_s_update_uniform_name));}function gml_Script_s_update_uniform_name(_inst,_other){{{var __yy__v784=GetWithArray(129);for(var __yy__v785 in __yy__v784){if(!__yy__v784.hasOwnProperty(__yy__v785))continue;var __yy__v786=__yy__v784[__yy__v785];{if(yyfnotequal(string_letters(yyInst(_inst,_other,100077).gmltext),"")){yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmlname=yyInst(_inst,_other,
100077).gmltext;}else {yyInst(_inst,_other,100077).gmltext=yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmlname;};if(yyfnotequal(string_letters(yyInst(_inst,_other,100078).gmltext),"")){yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmltla=yyInst(_inst,_other,100078).gmltext;}else {yyInst(_inst,_other,100078).gmltext=yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmltla;};var gmlrain=real(string_digits(yyfplus("0",__yy_gml_errCheck(yyInst(_inst,_other,100069).gmltext))));yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmlrainfall=clamp(gmlrain,
0,100);yyInst(_inst,_other,100069).gmltext=string(yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmlrainfall);var gmlsnow=real(string_digits(yyfplus("0",__yy_gml_errCheck(yyInst(_inst,_other,100070).gmltext))));yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmlsnowfall=clamp(gmlsnow,0,100);yyInst(_inst,_other,100070).gmltext=string(yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmlsnowfall);yyInst(_inst,_other,__yy__v786.gmlcurrent_uni).gmlroof=yyInst(_inst,_other,100071).gmlstate;}}};}}function gml_GlobalScript_s_copy_teamnames_from_uniform_file(_inst,
_other,argument0){(_inst.gmls_copy_teamnames_from_uniform_file=__yy_method(_inst,gml_Script_s_copy_teamnames_from_uniform_file));}function gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,argument0){{var gmlfilename=argument0;gml_Script_slog(_inst,_other,yyfplus("s_copy_teamnames_from_uniform_file:",__yy_gml_errCheck(gmlfilename)));var gmlfile=file_text_open_read(gmlfilename);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){
{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmluid=gmlvalues[__yy_gml_array_check_index(0,gmlvalues)];var gmltmap=gml_Script_s_get_team_by_id(_inst,_other,gmluid);ds_map_set(gmltmap,"name",gmlvalues[__yy_gml_array_check_index(1,gmlvalues)]);ds_map_set(gmltmap,"tla",gmlvalues[__yy_gml_array_check_index(2,gmlvalues)]);}};file_text_close(gmlfile);}}function gml_GlobalScript_s_edit_name(_inst,_other){(_inst.gmls_edit_name=__yy_method(_inst,
gml_Script_s_edit_name));}function gml_Script_s_edit_name(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other,"s_edit_name");var gmlbg=instance_create_layer(0,0,"PopUps",78);yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",70);yyInst(_inst,_other,gmltitle).gmlty=16;yyInst(_inst,_other,gmltitle).gmltext=gml_Script_s_str(_inst,_other,
"ui_Editor");yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.4);var gmltxt_1=instance_create_layer(yyfminus(__yy_gml_errCheck(gmltx),10),72,"PopUps",74);yyInst(_inst,_other,gmltxt_1).gmltext=argument0;yyInst(_inst,_other,gmltxt_1).gmlhalign=2;yyInst(_inst,_other,gmltxt_1).gmldraw_box=false;yyInst(_inst,_other,gmltxt_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),
1);yyInst(_inst,_other,97).gmledit_box1=instance_create_layer(gmltx,64,"PopUps",71);yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box1).gmlmax_length=5;yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box1).image_xscale=10;yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box1).gmltext=argument1;var gmlbtn_1=instance_create_layer(yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),
0.33)),45),224,"PopUps",34);yyInst(_inst,_other,gmlbtn_1).gmltext=gml_Script_s_str(_inst,_other,"ui_Cancel");yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=kgml_Script_s_msg_clear;yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlbtn_2=instance_create_layer(yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.66)),45),224,"PopUps",34);yyInst(_inst,_other,gmlbtn_2).gmltext=gml_Script_s_str(_inst,_other,"ui_Confirm");
yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=argument2;yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);}}function gml_GlobalScript_btn_click_edit_div1(_inst,_other){(_inst.gmlbtn_click_edit_div1=__yy_method(_inst,gml_Script_btn_click_edit_div1));}function gml_Script_btn_click_edit_div1(_inst,_other){{var ___sw410___=yyInst(_inst,_other,97).gmledit_conf;var ___swc411___=-1;if(yyCompareVal(___sw410___,0,g_GMLMathEpsilon,false)==0){___swc411___=0;}else if(yyCompareVal(___sw410___,
1,g_GMLMathEpsilon,false)==0){___swc411___=1;}switch(___swc411___){case 0:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,97).gmlname_div1,kgml_Script_s_edit_confirm_div1);break;}case 1:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,97).gmlname_div1b,kgml_Script_s_edit_confirm_div1);break;}};}}function gml_GlobalScript_btn_click_edit_div2(_inst,_other){(_inst.gmlbtn_click_edit_div2=__yy_method(_inst,
gml_Script_btn_click_edit_div2));}function gml_Script_btn_click_edit_div2(_inst,_other){{var ___sw414___=yyInst(_inst,_other,97).gmledit_conf;var ___swc415___=-1;if(yyCompareVal(___sw414___,0,g_GMLMathEpsilon,false)==0){___swc415___=0;}else if(yyCompareVal(___sw414___,1,g_GMLMathEpsilon,false)==0){___swc415___=1;}switch(___swc415___){case 0:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,97).gmlname_div2,kgml_Script_s_edit_confirm_div2);break;}case 1:{
gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,97).gmlname_div2b,kgml_Script_s_edit_confirm_div2);break;}};}}function gml_GlobalScript_btn_click_edit_div3(_inst,_other){(_inst.gmlbtn_click_edit_div3=__yy_method(_inst,gml_Script_btn_click_edit_div3));}function gml_Script_btn_click_edit_div3(_inst,_other){{var ___sw418___=yyInst(_inst,_other,97).gmledit_conf;var ___swc419___=-1;if(yyCompareVal(___sw418___,0,g_GMLMathEpsilon,false)==0){___swc419___=0;
}else if(yyCompareVal(___sw418___,1,g_GMLMathEpsilon,false)==0){___swc419___=1;}switch(___swc419___){case 0:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,97).gmlname_div3,kgml_Script_s_edit_confirm_div3);break;}case 1:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,97).gmlname_div3b,kgml_Script_s_edit_confirm_div3);break;}};}}function gml_GlobalScript_btn_click_edit_div4(_inst,_other){(_inst.gmlbtn_click_edit_div4=__yy_method(_inst,
gml_Script_btn_click_edit_div4));}function gml_Script_btn_click_edit_div4(_inst,_other){{var ___sw422___=yyInst(_inst,_other,97).gmledit_conf;var ___swc423___=-1;if(yyCompareVal(___sw422___,0,g_GMLMathEpsilon,false)==0){___swc423___=0;}else if(yyCompareVal(___sw422___,1,g_GMLMathEpsilon,false)==0){___swc423___=1;}switch(___swc423___){case 0:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,97).gmlname_div4,kgml_Script_s_edit_confirm_div4);break;}case 1:{
gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,97).gmlname_div4b,kgml_Script_s_edit_confirm_div4);break;}};}}function gml_GlobalScript_btn_click_edit_conf1(_inst,_other){(_inst.gmlbtn_click_edit_conf1=__yy_method(_inst,gml_Script_btn_click_edit_conf1));}function gml_Script_btn_click_edit_conf1(_inst,_other){{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Conference"),yyInst(_inst,_other,97).gmlname_conf1,kgml_Script_s_edit_confirm_conf1);
}}function gml_GlobalScript_btn_click_edit_conf2(_inst,_other){(_inst.gmlbtn_click_edit_conf2=__yy_method(_inst,gml_Script_btn_click_edit_conf2));}function gml_Script_btn_click_edit_conf2(_inst,_other){{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Conference"),yyInst(_inst,_other,97).gmlname_conf2,kgml_Script_s_edit_confirm_conf2);}}function gml_GlobalScript_s_edit_confirm_div1(_inst,_other){(_inst.gmls_edit_confirm_div1=__yy_method(_inst,gml_Script_s_edit_confirm_div1));}function gml_Script_s_edit_confirm_div1(_inst,
_other){{{var __yy__v787=GetWithArray(97);for(var __yy__v788 in __yy__v787){if(!__yy__v787.hasOwnProperty(__yy__v788))continue;var __yy__v789=__yy__v787[__yy__v788];{var gmltxt1=yyInst(_inst,_other,__yy__v789.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1),0)){{var ___sw426___=__yy__v789.gmledit_conf;var ___swc427___=-1;if(yyCompareVal(___sw426___,0,g_GMLMathEpsilon,false)==0){___swc427___=0;}else if(yyCompareVal(___sw426___,1,g_GMLMathEpsilon,false)==0){___swc427___=1;}switch(___swc427___){case 0:{
__yy__v789.gmlname_div1=gmltxt1;break;}case 1:{__yy__v789.gmlname_div1b=gmltxt1;break;}};};};gml_Script_s_msg_clear(__yy__v789,_inst);room_goto(29);}}};}}function gml_GlobalScript_s_edit_confirm_div2(_inst,_other){(_inst.gmls_edit_confirm_div2=__yy_method(_inst,gml_Script_s_edit_confirm_div2));}function gml_Script_s_edit_confirm_div2(_inst,_other){{{var __yy__v790=GetWithArray(97);for(var __yy__v791 in __yy__v790){if(!__yy__v790.hasOwnProperty(__yy__v791))continue;var __yy__v792=__yy__v790[__yy__v791];{
var gmltxt1=yyInst(_inst,_other,__yy__v792.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1),0)){{var ___sw430___=__yy__v792.gmledit_conf;var ___swc431___=-1;if(yyCompareVal(___sw430___,0,g_GMLMathEpsilon,false)==0){___swc431___=0;}else if(yyCompareVal(___sw430___,1,g_GMLMathEpsilon,false)==0){___swc431___=1;}switch(___swc431___){case 0:{__yy__v792.gmlname_div2=gmltxt1;break;}case 1:{__yy__v792.gmlname_div2b=gmltxt1;break;}};};};gml_Script_s_msg_clear(__yy__v792,_inst);room_goto(29);}}};}}function gml_GlobalScript_s_edit_confirm_div3(_inst,
_other){(_inst.gmls_edit_confirm_div3=__yy_method(_inst,gml_Script_s_edit_confirm_div3));}function gml_Script_s_edit_confirm_div3(_inst,_other){{{var __yy__v793=GetWithArray(97);for(var __yy__v794 in __yy__v793){if(!__yy__v793.hasOwnProperty(__yy__v794))continue;var __yy__v795=__yy__v793[__yy__v794];{var gmltxt1=yyInst(_inst,_other,__yy__v795.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1),0)){{var ___sw434___=__yy__v795.gmledit_conf;var ___swc435___=-1;if(yyCompareVal(___sw434___,0,g_GMLMathEpsilon,
false)==0){___swc435___=0;}else if(yyCompareVal(___sw434___,1,g_GMLMathEpsilon,false)==0){___swc435___=1;}switch(___swc435___){case 0:{__yy__v795.gmlname_div3=gmltxt1;break;}case 1:{__yy__v795.gmlname_div3b=gmltxt1;break;}};};};gml_Script_s_msg_clear(__yy__v795,_inst);room_goto(29);}}};}}function gml_GlobalScript_s_edit_confirm_div4(_inst,_other){(_inst.gmls_edit_confirm_div4=__yy_method(_inst,gml_Script_s_edit_confirm_div4));}function gml_Script_s_edit_confirm_div4(_inst,_other){{{var __yy__v796=GetWithArray(97);
for(var __yy__v797 in __yy__v796){if(!__yy__v796.hasOwnProperty(__yy__v797))continue;var __yy__v798=__yy__v796[__yy__v797];{var gmltxt1=yyInst(_inst,_other,__yy__v798.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1),0)){{var ___sw438___=__yy__v798.gmledit_conf;var ___swc439___=-1;if(yyCompareVal(___sw438___,0,g_GMLMathEpsilon,false)==0){___swc439___=0;}else if(yyCompareVal(___sw438___,1,g_GMLMathEpsilon,false)==0){___swc439___=1;}switch(___swc439___){case 0:{__yy__v798.gmlname_div4=gmltxt1;break;
}case 1:{__yy__v798.gmlname_div4b=gmltxt1;break;}};};};gml_Script_s_msg_clear(__yy__v798,_inst);room_goto(29);}}};}}function gml_GlobalScript_s_edit_confirm_conf1(_inst,_other){(_inst.gmls_edit_confirm_conf1=__yy_method(_inst,gml_Script_s_edit_confirm_conf1));}function gml_Script_s_edit_confirm_conf1(_inst,_other){{{var __yy__v799=GetWithArray(97);for(var __yy__v800 in __yy__v799){if(!__yy__v799.hasOwnProperty(__yy__v800))continue;var __yy__v801=__yy__v799[__yy__v800];{var gmltxt1=yyInst(_inst,_other,__yy__v801.gmledit_box1).gmltext;
if(yyfgreater(string_length(gmltxt1),0)){__yy__v801.gmlname_conf1=gmltxt1;};gml_Script_s_msg_clear(__yy__v801,_inst);room_goto(29);}}};}}function gml_GlobalScript_s_edit_confirm_conf2(_inst,_other){(_inst.gmls_edit_confirm_conf2=__yy_method(_inst,gml_Script_s_edit_confirm_conf2));}function gml_Script_s_edit_confirm_conf2(_inst,_other){{{var __yy__v802=GetWithArray(97);for(var __yy__v803 in __yy__v802){if(!__yy__v802.hasOwnProperty(__yy__v803))continue;var __yy__v804=__yy__v802[__yy__v803];{var gmltxt1=yyInst(_inst,
_other,__yy__v804.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1),0)){__yy__v804.gmlname_conf2=gmltxt1;};gml_Script_s_msg_clear(__yy__v804,_inst);room_goto(29);}}};}}function gml_GlobalScript_s_populate_division(_inst,_other,argument0,argument1,argument2){(_inst.gmls_populate_division=__yy_method(_inst,gml_Script_s_populate_division));}function gml_Script_s_populate_division(_inst,_other,argument0,argument1,argument2){{var gmlinfobox=argument0;var gmlconference=argument1;var gmldivision=argument2;
if(yyfgreater(gmlconference,1)){return;};yyInst(_inst,_other,gmlinfobox).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,gmlconference))," "),__yy_gml_errCheck(gml_Script_s_get_string_division(_inst,_other,gmlconference,gmldivision)));var gmldivteams=ds_list_create();var gmlmyid=yyInst(_inst,_other,97).gmlmyteam_id;var gmlmyconf=yyInst(_inst,_other,97).gmlmyconference;var gmlmydiv=yyInst(_inst,_other,97).gmlmydivision;yyInst(_inst,_other,gmlinfobox).gmlalpha=0.6;
if((yyGetBool(yyfequal(gmlconference,gmlmyconf)))&&(yyGetBool(yyfequal(gmldivision,gmlmydiv)))){yyInst(_inst,_other,gmlinfobox).gmlalpha=1;};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlteam,"conference"),gmlconference)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlteam,
"division"),gmldivision)))){ds_list_add(gmldivteams,gmlteam);};}};gmldivteams=gml_Script_s_sort_teams(_inst,_other,gmldivteams,0,false);var gmli=0;for(;yyfless(gmli,ds_list_size(gmldivteams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmldivteams,gmli);var gmltxt=ds_map_find_value(gmlteam,"name");var gmlwins=string(ds_map_find_value(gmlteam,"wins"));var gmllosses=string(ds_map_find_value(gmlteam,"losses"));
var gmlties=string(ds_map_find_value(gmlteam,"ties"));var gmlpct=string_format(gml_Script_s_get_team_winpct(_inst,_other,gmlteam),0,3);gmlpct=string_replace(gmlpct,"0.",".");var gmlnet=gml_Script_s_get_team_net_points(_inst,_other,ds_map_find_value(gmlteam,"uid"));var gmlof=gml_Script_s_get_team_offense(_inst,_other,gmlteam);var gmldf=gml_Script_s_get_team_defense(_inst,_other,gmlteam);if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)))&&(yyGetBool(yyfnotequal(gmlteam,yyInst(_inst,_other,
97).gmlmyteam_id)))){{gmlof=real(ds_map_find_value(gmlteam,"offense"));gmldf=real(ds_map_find_value(gmlteam,"defense"));};};var gmloffense=string_format(yyfdivide(__yy_gml_errCheck(gmlof),2),1,1);var gmldefense=string_format(yyfdivide(__yy_gml_errCheck(gmldf),2),1,1);var gmltxt_col=16777215;if(yyfequal(ds_map_find_value(gmlteam,"uid"),gmlmyid)){gmltxt_col=global.gmlc_primary;};var ___sw442___=gmli;var ___swc443___=-1;if(yyCompareVal(___sw442___,0,g_GMLMathEpsilon,false)==0){___swc443___=0;}else if(yyCompareVal(___sw442___,
1,g_GMLMathEpsilon,false)==0){___swc443___=1;}else if(yyCompareVal(___sw442___,2,g_GMLMathEpsilon,false)==0){___swc443___=2;}else if(yyCompareVal(___sw442___,3,g_GMLMathEpsilon,false)==0){___swc443___=3;}switch(___swc443___){case 0:{yyInst(_inst,_other,gmlinfobox).gmlteam_name=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlteam_name,3121750312);yyInst(_inst,_other,gmlinfobox).gmlteam_name[__yy_gml_array_check_index_set(0)]=gmltxt;yyInst(_inst,_other,gmlinfobox).gmlcol_txt=__yy_gml_array_check(yyInst(_inst,
_other,gmlinfobox).gmlcol_txt,372587872);yyInst(_inst,_other,gmlinfobox).gmlcol_txt[__yy_gml_array_check_index_set(0)]=gmltxt_col;yyInst(_inst,_other,gmlinfobox).gmlwins=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlwins,1467464228);yyInst(_inst,_other,gmlinfobox).gmlwins[__yy_gml_array_check_index_set(0)]=gmlwins;yyInst(_inst,_other,gmlinfobox).gmllosses=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmllosses,3978844290);yyInst(_inst,_other,gmlinfobox).gmllosses[__yy_gml_array_check_index_set(0)]=gmllosses;
yyInst(_inst,_other,gmlinfobox).gmlties=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlties,251214534);yyInst(_inst,_other,gmlinfobox).gmlties[__yy_gml_array_check_index_set(0)]=gmlties;yyInst(_inst,_other,gmlinfobox).gmlpct=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlpct,387395751);yyInst(_inst,_other,gmlinfobox).gmlpct[__yy_gml_array_check_index_set(0)]=gmlpct;yyInst(_inst,_other,gmlinfobox).gmlnet=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlnet,195038352);yyInst(_inst,
_other,gmlinfobox).gmlnet[__yy_gml_array_check_index_set(0)]=gmlnet;yyInst(_inst,_other,gmlinfobox).gmloffense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmloffense,2228472908);yyInst(_inst,_other,gmlinfobox).gmloffense[__yy_gml_array_check_index_set(0)]=gmloffense;yyInst(_inst,_other,gmlinfobox).gmldefense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmldefense,3161793873);yyInst(_inst,_other,gmlinfobox).gmldefense[__yy_gml_array_check_index_set(0)]=gmldefense;break;}case 1:{yyInst(_inst,
_other,gmlinfobox).gmlteam_name=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlteam_name,3121750312);yyInst(_inst,_other,gmlinfobox).gmlteam_name[__yy_gml_array_check_index_set(1)]=gmltxt;yyInst(_inst,_other,gmlinfobox).gmlcol_txt=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlcol_txt,372587872);yyInst(_inst,_other,gmlinfobox).gmlcol_txt[__yy_gml_array_check_index_set(1)]=gmltxt_col;yyInst(_inst,_other,gmlinfobox).gmlwins=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlwins,
1467464228);yyInst(_inst,_other,gmlinfobox).gmlwins[__yy_gml_array_check_index_set(1)]=gmlwins;yyInst(_inst,_other,gmlinfobox).gmllosses=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmllosses,3978844290);yyInst(_inst,_other,gmlinfobox).gmllosses[__yy_gml_array_check_index_set(1)]=gmllosses;yyInst(_inst,_other,gmlinfobox).gmlties=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlties,251214534);yyInst(_inst,_other,gmlinfobox).gmlties[__yy_gml_array_check_index_set(1)]=gmlties;yyInst(_inst,
_other,gmlinfobox).gmlpct=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlpct,387395751);yyInst(_inst,_other,gmlinfobox).gmlpct[__yy_gml_array_check_index_set(1)]=gmlpct;yyInst(_inst,_other,gmlinfobox).gmlnet=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlnet,195038352);yyInst(_inst,_other,gmlinfobox).gmlnet[__yy_gml_array_check_index_set(1)]=gmlnet;yyInst(_inst,_other,gmlinfobox).gmloffense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmloffense,2228472908);yyInst(_inst,
_other,gmlinfobox).gmloffense[__yy_gml_array_check_index_set(1)]=gmloffense;yyInst(_inst,_other,gmlinfobox).gmldefense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmldefense,3161793873);yyInst(_inst,_other,gmlinfobox).gmldefense[__yy_gml_array_check_index_set(1)]=gmldefense;break;}case 2:{yyInst(_inst,_other,gmlinfobox).gmlteam_name=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlteam_name,3121750312);yyInst(_inst,_other,gmlinfobox).gmlteam_name[__yy_gml_array_check_index_set(2)]=gmltxt;
yyInst(_inst,_other,gmlinfobox).gmlcol_txt=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlcol_txt,372587872);yyInst(_inst,_other,gmlinfobox).gmlcol_txt[__yy_gml_array_check_index_set(2)]=gmltxt_col;yyInst(_inst,_other,gmlinfobox).gmlwins=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlwins,1467464228);yyInst(_inst,_other,gmlinfobox).gmlwins[__yy_gml_array_check_index_set(2)]=gmlwins;yyInst(_inst,_other,gmlinfobox).gmllosses=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmllosses,
3978844290);yyInst(_inst,_other,gmlinfobox).gmllosses[__yy_gml_array_check_index_set(2)]=gmllosses;yyInst(_inst,_other,gmlinfobox).gmlties=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlties,251214534);yyInst(_inst,_other,gmlinfobox).gmlties[__yy_gml_array_check_index_set(2)]=gmlties;yyInst(_inst,_other,gmlinfobox).gmlpct=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlpct,387395751);yyInst(_inst,_other,gmlinfobox).gmlpct[__yy_gml_array_check_index_set(2)]=gmlpct;yyInst(_inst,_other,
gmlinfobox).gmlnet=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlnet,195038352);yyInst(_inst,_other,gmlinfobox).gmlnet[__yy_gml_array_check_index_set(2)]=gmlnet;yyInst(_inst,_other,gmlinfobox).gmloffense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmloffense,2228472908);yyInst(_inst,_other,gmlinfobox).gmloffense[__yy_gml_array_check_index_set(2)]=gmloffense;yyInst(_inst,_other,gmlinfobox).gmldefense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmldefense,3161793873);yyInst(_inst,
_other,gmlinfobox).gmldefense[__yy_gml_array_check_index_set(2)]=gmldefense;break;}case 3:{yyInst(_inst,_other,gmlinfobox).gmlteam_name=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlteam_name,3121750312);yyInst(_inst,_other,gmlinfobox).gmlteam_name[__yy_gml_array_check_index_set(3)]=gmltxt;yyInst(_inst,_other,gmlinfobox).gmlcol_txt=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlcol_txt,372587872);yyInst(_inst,_other,gmlinfobox).gmlcol_txt[__yy_gml_array_check_index_set(3)]=gmltxt_col;
yyInst(_inst,_other,gmlinfobox).gmlwins=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlwins,1467464228);yyInst(_inst,_other,gmlinfobox).gmlwins[__yy_gml_array_check_index_set(3)]=gmlwins;yyInst(_inst,_other,gmlinfobox).gmllosses=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmllosses,3978844290);yyInst(_inst,_other,gmlinfobox).gmllosses[__yy_gml_array_check_index_set(3)]=gmllosses;yyInst(_inst,_other,gmlinfobox).gmlties=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlties,
251214534);yyInst(_inst,_other,gmlinfobox).gmlties[__yy_gml_array_check_index_set(3)]=gmlties;yyInst(_inst,_other,gmlinfobox).gmlpct=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlpct,387395751);yyInst(_inst,_other,gmlinfobox).gmlpct[__yy_gml_array_check_index_set(3)]=gmlpct;yyInst(_inst,_other,gmlinfobox).gmlnet=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlnet,195038352);yyInst(_inst,_other,gmlinfobox).gmlnet[__yy_gml_array_check_index_set(3)]=gmlnet;yyInst(_inst,_other,gmlinfobox).gmloffense=__yy_gml_array_check(yyInst(_inst,
_other,gmlinfobox).gmloffense,2228472908);yyInst(_inst,_other,gmlinfobox).gmloffense[__yy_gml_array_check_index_set(3)]=gmloffense;yyInst(_inst,_other,gmlinfobox).gmldefense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmldefense,3161793873);yyInst(_inst,_other,gmlinfobox).gmldefense[__yy_gml_array_check_index_set(3)]=gmldefense;break;}};}};ds_list_destroy(gmldivteams);gmldivteams=(-1);}}function gml_GlobalScript_s_populate_schedulebox(_inst,_other){(_inst.gmls_populate_schedulebox=__yy_method(_inst,
gml_Script_s_populate_schedulebox));}function gml_Script_s_populate_schedulebox(_inst,_other){{gml_Script_slog(_inst,_other,"s_populate_schedulebox");{var __yy__v805=GetWithArray(100245);for(var __yy__v806 in __yy__v805){if(!__yy__v805.hasOwnProperty(__yy__v806))continue;var __yy__v807=__yy__v805[__yy__v806];{__yy__v807.gmlhighlight=(-1);var gmlw=clamp(__yy__v807.gmlsweek,1,yyInst(_inst,_other,97).gmllast_week_regular);var gmlcount=0;var gmlf=0;for(;yyfless(gmlf,16);(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),
g_yyPrePostObject__)){{__yy__v807.gmlstr_fix_a=__yy_gml_array_check(__yy__v807.gmlstr_fix_a,793893633);__yy__v807.gmlstr_fix_a[__yy_gml_array_check_index_set(gmlf)]="";__yy__v807.gmlstr_fix_h=__yy_gml_array_check(__yy__v807.gmlstr_fix_h,4271071304);__yy__v807.gmlstr_fix_h[__yy_gml_array_check_index_set(gmlf)]="";__yy__v807.gmlstr_scr_a=__yy_gml_array_check(__yy__v807.gmlstr_scr_a,3733827075);__yy__v807.gmlstr_scr_a[__yy_gml_array_check_index_set(gmlf)]="";__yy__v807.gmlstr_scr_h=__yy_gml_array_check(__yy__v807.gmlstr_scr_h,
256841034);__yy__v807.gmlstr_scr_h[__yy_gml_array_check_index_set(gmlf)]="";__yy__v807.gmlstr_fix_vs=__yy_gml_array_check(__yy__v807.gmlstr_fix_vs,3250999391);__yy__v807.gmlstr_fix_vs[__yy_gml_array_check_index_set(gmlf)]="";__yy__v807.gmlstr_fix_alf=__yy_gml_array_check(__yy__v807.gmlstr_fix_alf,1933994082);__yy__v807.gmlstr_fix_alf[__yy_gml_array_check_index_set(gmlf)]=0.6;}};var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,97).gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),
g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(yyInst(_inst,_other,97).gmlschedule,gmlf);if(yyfequal(ds_map_find_value(gmlfix,"week"),gmlw)){{var gmlteam_id1=ds_map_find_value(gmlfix,"away_team");var gmlteam_id2=ds_map_find_value(gmlfix,"home_team");var gmlscore1=ds_map_find_value(gmlfix,"away_score");var gmlscore2=ds_map_find_value(gmlfix,"home_score");var gmlteam_map1=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteam_id1);var gmlteam_map2=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,
gmlteam_id2);var gmlteam_name1=ds_map_find_value(gmlteam_map1,"tla");var gmlteam_name2=ds_map_find_value(gmlteam_map2,"tla");if(yyGetBool(is_undefined(ds_map_find_value(gmlteam_map1,"tla")))){gmlteam_name1=string(gmlteam_id1);};if(yyGetBool(is_undefined(ds_map_find_value(gmlteam_map2,"tla")))){gmlteam_name2=string(gmlteam_id2);};var gmlconf_1=ds_map_find_value(gmlteam_map1,"conference");var gmlconf_2=ds_map_find_value(gmlteam_map2,"conference");var gmldiv_1=ds_map_find_value(gmlteam_map1,"division");
var gmldiv_2=ds_map_find_value(gmlteam_map2,"division");__yy__v807.gmlstr_fix_a=__yy_gml_array_check(__yy__v807.gmlstr_fix_a,793893633);__yy__v807.gmlstr_fix_a[__yy_gml_array_check_index_set(gmlcount)]=gmlteam_name1;__yy__v807.gmlstr_fix_h=__yy_gml_array_check(__yy__v807.gmlstr_fix_h,4271071304);__yy__v807.gmlstr_fix_h[__yy_gml_array_check_index_set(gmlcount)]=gmlteam_name2;__yy__v807.gmlstr_scr_a=__yy_gml_array_check(__yy__v807.gmlstr_scr_a,3733827075);__yy__v807.gmlstr_scr_a[__yy_gml_array_check_index_set(gmlcount)]="";
__yy__v807.gmlstr_scr_h=__yy_gml_array_check(__yy__v807.gmlstr_scr_h,256841034);__yy__v807.gmlstr_scr_h[__yy_gml_array_check_index_set(gmlcount)]="";__yy__v807.gmlstr_fix_vs=__yy_gml_array_check(__yy__v807.gmlstr_fix_vs,3250999391);__yy__v807.gmlstr_fix_vs[__yy_gml_array_check_index_set(gmlcount)]=yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v807,_inst,"tla_At"))," ");__yy__v807.gmlstr_fix_alf=__yy_gml_array_check(__yy__v807.gmlstr_fix_alf,1933994082);__yy__v807.gmlstr_fix_alf[__yy_gml_array_check_index_set(gmlcount)]=0.6;
if((yyGetBool(yyfequal(gmlconf_1,yyInst(_inst,_other,97).gmlmyconference)))&&(yyGetBool(yyfequal(gmldiv_1,yyInst(_inst,_other,97).gmlmydivision)))){__yy__v807.gmlstr_fix_alf[__yy_gml_array_check_index_set(gmlcount)]=1;}else {if((yyGetBool(yyfequal(gmldiv_2,yyInst(_inst,_other,97).gmlmydivision)))&&(yyGetBool(yyfequal(gmlconf_2,yyInst(_inst,_other,97).gmlmyconference)))){__yy__v807.gmlstr_fix_alf[__yy_gml_array_check_index_set(gmlcount)]=1;};};if(yyfgreater(gmlscore1,(-1))){{__yy__v807.gmlbuf=40;__yy__v807.gmlstr_fix_vs[__yy_gml_array_check_index_set(gmlcount)]="";
__yy__v807.gmlstr_scr_a[__yy_gml_array_check_index_set(gmlcount)]=string(gmlscore1);__yy__v807.gmlstr_scr_h[__yy_gml_array_check_index_set(gmlcount)]=string(gmlscore2);};};if((yyGetBool(yyfequal(gmlteam_id1,yyInst(_inst,_other,97).gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_id2,yyInst(_inst,_other,97).gmlmyteam_id)))){__yy__v807.gmlhighlight=gmlcount;};(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};}};}}};}}function gml_GlobalScript_s_create_credit(_inst,
_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6){(_inst.gmls_create_credit=__yy_method(_inst,gml_Script_s_create_credit));}function gml_Script_s_create_credit(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{var gmlcrd=instance_create_layer(0,0,"Instances",101);yyInst(_inst,_other,gmlcrd).x=argument0;yyInst(_inst,_other,gmlcrd).y=argument1;yyInst(_inst,_other,gmlcrd).gmldes_x=argument2;yyInst(_inst,_other,gmlcrd).gmldes_y=argument3;
yyInst(_inst,_other,gmlcrd).gmlvalue=argument4;yyInst(_inst,_other,gmlcrd).gmltype=argument5;yyInst(_inst,_other,gmlcrd).gmlpmap=argument6;var ___sw446___=yyInst(_inst,_other,gmlcrd).gmltype;var ___swc447___=-1;if(yyCompareVal(___sw446___,1,g_GMLMathEpsilon,false)==0){___swc447___=0;}else if(yyCompareVal(___sw446___,2,g_GMLMathEpsilon,false)==0){___swc447___=1;}switch(___swc447___){case 0:{yyInst(_inst,_other,gmlcrd).sprite_index=93;break;}case 1:{yyInst(_inst,_other,gmlcrd).sprite_index=89;break;}};
if(yyfgreater(yyInst(_inst,_other,gmlcrd).gmlvalue,1)){yyInst(_inst,_other,gmlcrd).gmldes_scale=yyftime(yyInst(_inst,_other,gmlcrd).gmldes_scale,2);};if(yyGetBool(argument7)){gml_Script_s_sound(_inst,_other,17);};}}function gml_GlobalScript_s_set_up_xp_headers(_inst,_other){(_inst.gmls_set_up_xp_headers=__yy_method(_inst,gml_Script_s_set_up_xp_headers));}function gml_Script_s_set_up_xp_headers(_inst,_other,argument0,argument1){{if(yyGetBool(argument0)){{ds_list_add(_inst.gmll_attitude,gml_Script_s_str(_inst,
_other,"tla_Attitude"));ds_list_add(_inst.gmll_names,gml_Script_s_str(_inst,_other,"ui_Name"));ds_list_add(_inst.gmll_pos,gml_Script_s_str(_inst,_other,"tla_Position"));ds_list_add(_inst.gmll_condition,gml_Script_s_str(_inst,_other,"tla_Condition"));ds_list_add(_inst.gmll_resting,"");ds_list_add(_inst.gmll_yards,gml_Script_s_str(_inst,_other,"tla_Skill"));ds_list_add(_inst.gmll_tds,gml_Script_s_str(_inst,_other,"tla_Strength"));ds_list_add(_inst.gmll_tackles,gml_Script_s_str(_inst,_other,"tla_Speed"));
ds_list_add(_inst.gmll_intsacks,gml_Script_s_str(_inst,_other,"tla_Stamina"));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_suspended,"");};};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){ds_list_add(_inst.gmll_fumbles,0);}else {ds_list_add(_inst.gmll_fumbles,gml_Script_s_str(_inst,_other,"tla_Salary"));};ds_list_add(_inst.gmll_rating,gml_Script_s_str(_inst,_other,"tla_Contract"));if(yyGetBool(argument1)){{ds_list_add(_inst.gmll_xp,yyfplus("+",__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_XP"))));ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"short_LevelUp"));};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_xp,gml_Script_s_str(_inst,_other,"ui_Year_Short"));};}else {{ds_list_add(_inst.gmll_xp,gml_Script_s_str(_inst,_other,"tla_Age"));};};ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"short_LevelXP"));};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_gpa,gml_Script_s_str(_inst,
_other,"ui_GPA"));};};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmli);ds_list_add(_inst.gmll_attitude,ds_map_find_value(gmlpmap,"attitude"));ds_list_add(_inst.gmll_names,gml_Script_s_get_player_name(_inst,_other,gmlpmap,true));ds_list_add(_inst.gmll_pos,ds_map_find_value(gmlpmap,"position"));
ds_list_add(_inst.gmll_condition,ds_map_find_value(gmlpmap,"condition"));ds_list_add(_inst.gmll_resting,ds_map_find_value(gmlpmap,"resting"));ds_list_add(_inst.gmll_yards,ds_map_find_value(gmlpmap,"skill"));ds_list_add(_inst.gmll_tds,ds_map_find_value(gmlpmap,"strength"));ds_list_add(_inst.gmll_tackles,ds_map_find_value(gmlpmap,"speed"));ds_list_add(_inst.gmll_intsacks,ds_map_find_value(gmlpmap,"stamina"));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_suspended,ds_map_find_value(gmlpmap,
"suspended"));};};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){ds_list_add(_inst.gmll_fumbles,gml_Script_s_get_player_rating(_inst,_other,gmlpmap));}else {ds_list_add(_inst.gmll_fumbles,yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"salary")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Million"))));};ds_list_add(_inst.gmll_rating,yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"contract"))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Year"))));
if(yyGetBool(argument1)){{ds_list_add(_inst.gmll_xp,ds_map_find_value(gmlpmap,"xp_gain"));if(yyGetBool(gml_Script_s_has_xp_gain(_inst,_other,gmlpmap))){ds_list_add(_inst.gmll_levelup,yyfplus("flash_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Yes"))));}else {ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"ui_No"));};};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_xp,gml_Script_s_college_age_simple_short(_inst,_other,gmlpmap));};}else {{ds_list_add(_inst.gmll_xp,
ds_map_find_value(gmlpmap,"age"));};};ds_list_add(_inst.gmll_levelup,ds_map_find_value(gmlpmap,"xp_level"));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_gpa,gml_Script_s_gpa_string(_inst,_other,gmlpmap));};};};};}};};}else {{ds_list_add(_inst.gmll_attitude,gml_Script_s_str(_inst,_other,"tla_Attitude"));ds_list_add(_inst.gmll_names,gml_Script_s_str(_inst,_other,"ui_Name"));ds_list_add(_inst.gmll_pos,gml_Script_s_str(_inst,_other,"tla_Position"));ds_list_add(_inst.gmll_condition,
gml_Script_s_str(_inst,_other,"tla_Condition"));ds_list_add(_inst.gmll_resting,"");ds_list_add(_inst.gmll_yards,gml_Script_s_str(_inst,_other,"ui_stat_yards"));ds_list_add(_inst.gmll_tds,gml_Script_s_str(_inst,_other,"ui_stat_touchdowns"));ds_list_add(_inst.gmll_tackles,gml_Script_s_str(_inst,_other,"ui_stat_tackles"));ds_list_add(_inst.gmll_intsacks,gml_Script_s_str(_inst,_other,"ui_stat_intsacks"));ds_list_add(_inst.gmll_fumbles,gml_Script_s_str(_inst,_other,"ui_stat_fumbles"));ds_list_add(_inst.gmll_rating,
gml_Script_s_str(_inst,_other,"tla_Rating"));ds_list_add(_inst.gmll_xp,yyfplus("+",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XP"))));ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"short_LevelUp"));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_suspended,"");};};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){
{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmli);var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlcon=ds_map_find_value(gmlpmap,"condition");var gmlrst=ds_map_find_value(gmlpmap,"resting");var gmlatt=ds_map_find_value(gmlpmap,"attitude");var gmlyds=string(round(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards")))));var gmltds=string(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds"))));var gmlfum=string(ds_map_find_value(gmlpmap,"stat_fumbles"));var gmltck=string(ds_map_find_value(gmlpmap,"stat_tackles"));var gmlintsck="-";var gmlxpg=ds_map_find_value(gmlpmap,"xp_gain");var ___sw450___=gmlpos;var ___swc451___=-1;if(yyCompareVal(___sw450___,1,g_GMLMathEpsilon,false)==0){___swc451___=0;}else if(yyCompareVal(___sw450___,6,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw450___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw450___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw450___,9,g_GMLMathEpsilon,false)==0){___swc451___=1;}else if(yyCompareVal(___sw450___,10,g_GMLMathEpsilon,false)==0){___swc451___=2;}switch(___swc451___){case 0:{gmltck="-";gmlintsck=yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"stat_int"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"stat_sacks"))));break;}case 1:{gmlintsck=yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,
"stat_int"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"stat_sacks"))));break;}case 2:{gmltck="-";gmltds="-";gmlfum="-";break;}};var gmlrat=string(gml_Script_s_get_match_rating(_inst,_other,gmlpmap));if((yyGetBool((yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlpmap,"injury_week"),yyInst(_inst,_other,97).gmlweek)))))||(yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap)))||(yyGetBool((yyGetBool(ds_map_exists(gmlpmap,
"backup")))&&(yyGetBool(ds_map_find_value(gmlpmap,"backup")))))){{gmlfum="-";gmltck="-";gmlintsck="-";if((yyGetBool(!yyGetBool(ds_map_exists(gmlpmap,"kr"))))||(yyGetBool(!yyGetBool(ds_map_find_value(gmlpmap,"kr"))))){{gmlyds="-";gmltds="-";gmlrat="-";};};};};ds_list_add(_inst.gmll_names,gml_Script_s_get_player_name(_inst,_other,gmlpmap,true));ds_list_add(_inst.gmll_attitude,gmlatt);ds_list_add(_inst.gmll_pos,gmlpos);ds_list_add(_inst.gmll_condition,gmlcon);ds_list_add(_inst.gmll_resting,gmlrst);
ds_list_add(_inst.gmll_yards,gmlyds);ds_list_add(_inst.gmll_tds,gmltds);ds_list_add(_inst.gmll_fumbles,gmlfum);ds_list_add(_inst.gmll_tackles,gmltck);ds_list_add(_inst.gmll_intsacks,gmlintsck);ds_list_add(_inst.gmll_rating,gmlrat);ds_list_add(_inst.gmll_xp,gmlxpg);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_suspended,ds_map_find_value(gmlpmap,"suspended"));};};if(yyGetBool(gml_Script_s_has_xp_gain(_inst,_other,gmlpmap))){ds_list_add(_inst.gmll_levelup,yyfplus("flash_",
__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Yes"))));}else {ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"ui_No"));};}};};};}}function gml_GlobalScript_s_count_hof_entries(_inst,_other){(_inst.gmls_count_hof_entries=__yy_method(_inst,gml_Script_s_count_hof_entries));}function gml_Script_s_count_hof_entries(_inst,_other){{{var __yy__v808=GetWithArray(97);for(var __yy__v809 in __yy__v808){if(!__yy__v808.hasOwnProperty(__yy__v809))continue;var __yy__v810=__yy__v808[__yy__v809];{var gmlcount=0;
var gmlr=0;for(;yyfless(gmlr,ds_list_size(__yy__v810.gmlroster));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v810.gmlroster,gmlr);if((yyGetBool(gmlpmap))&&(yyGetBool(ds_map_exists(gmlpmap,"hof")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"hof"),true)))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};gmlcount=yyfplus(gmlcount,
ds_list_size(__yy__v810.gmlhoflist));return gmlcount;}}};}}function gml_GlobalScript_s_set_up_hof_players_screen(_inst,_other){(_inst.gmls_set_up_hof_players_screen=__yy_method(_inst,gml_Script_s_set_up_hof_players_screen));}function gml_Script_s_set_up_hof_players_screen(_inst,_other){{yyInst(_inst,_other,100201).visible=false;yyInst(_inst,_other,100202).visible=false;yyInst(_inst,_other,100203).visible=false;var gmlhof_list=ds_list_create();var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,
97).gmlroster));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmlr);if((yyGetBool(gmlpmap))&&(yyGetBool(ds_map_exists(gmlpmap,"hof")))){{if(yyfequal(ds_map_find_value(gmlpmap,"hof"),true)){{ds_list_add(gmlhof_list,gmlpmap);};};};};}};var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,97).gmlhoflist));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlhoflist,gmlr);if((yyGetBool(ds_exists(gmlpmap,1)))&&(yyGetBool(ds_map_exists(gmlpmap,"hof")))){ds_list_add(gmlhof_list,ds_list_find_value(yyInst(_inst,_other,97).gmlhoflist,gmlr));};}};var gmlsize=ds_list_size(gmlhof_list);if(yyfequal(gmlsize,0)){{ds_list_destroy(gmlhof_list);gmlhof_list=(-1);return;};};gmlhof_list=gml_Script_s_sort_players(_inst,_other,gmlhof_list,3);yyInst(_inst,_other,100200).visible=false;gml_Script_slog(_inst,
_other,yyfplus("SIZE = ",__yy_gml_errCheck(string(ds_list_size(gmlhof_list)))));var gmlmax_pages=ceil(yyfdivide(__yy_gml_errCheck(gmlsize),10));if(yyfgreater(gmlmax_pages,1)){yyInst(_inst,_other,100203).visible=true;};if(yyfless(yyInst(_inst,_other,97).gmlhof_page,1)){yyInst(_inst,_other,97).gmlhof_page=1;}else {if(yyfgreater(yyInst(_inst,_other,97).gmlhof_page,gmlmax_pages)){yyInst(_inst,_other,97).gmlhof_page=gmlmax_pages;};};yyInst(_inst,_other,100201).visible=false;if(yyfgreater(yyInst(_inst,_other,
97).gmlhof_page,1)){yyInst(_inst,_other,100201).visible=true;};yyInst(_inst,_other,100202).visible=false;if(yyfless(yyInst(_inst,_other,97).gmlhof_page,gmlmax_pages)){yyInst(_inst,_other,100202).visible=true;};yyInst(_inst,_other,100203).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Page"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlhof_page))),"/"),__yy_gml_errCheck(string(gmlmax_pages)));if(yyfgreater(yyInst(_inst,_other,97).gmlhof_page,
1)){{var gmlr=0;for(;yyfless(gmlr,yyftime(10,__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlhof_page),1))));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{ds_list_delete(gmlhof_list,0);}};};};while(yyfgreater(ds_list_size(gmlhof_list),10)){{ds_list_delete(gmlhof_list,yyfminus(__yy_gml_errCheck(ds_list_size(gmlhof_list)),1));}};gmlsize=ds_list_size(gmlhof_list);var gmlpx=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),
0.5));var gmlpy=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_height),0.45));var gmlpw=yyfplus(__yy_gml_errCheck(sprite_get_width(156)),8);if(yyfgreater(gmlsize,5)){{gmlpy=yyfminus(gmlpy,24);gmlpx=yyfminus(gmlpx,yyftime(4,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));};}else {{gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsize),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));};};var gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,
_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst,_other,97).gmlmyteam_id,gmluniform,0,"");gml_Script_slog(_inst,_other,yyfplus("Hof list size = ",__yy_gml_errCheck(string(gmlsize))));var gmlproTeams=(-4);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlproTeams=gml_Script_s_load_pro_teams(_inst,_other);};};var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){
{var gmlpmap=ds_list_find_value(gmlhof_list,gmlr);if(!yyGetBool(gmlpmap)){continue;};_inst.gmlroster_profile=__yy_gml_array_check(_inst.gmlroster_profile,917944806);_inst.gmlroster_profile[__yy_gml_array_check_index_set(gmlr)]=instance_create_layer(0,0,"Instances",49);yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlpmap=gmlpmap;{var __yy__v811=GetWithArray(_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]);for(var __yy__v812 in __yy__v811){
if(!__yy__v811.hasOwnProperty(__yy__v812))continue;var __yy__v813=__yy__v811[__yy__v812];gml_Script_s_set_up_uniform_profile(__yy__v813,_inst,gmluniform);}};gml_Script_slog(_inst,_other,ds_map_find_value(gmlpmap,"lname"));var gmlteamid=ds_map_find_value(gmlpmap,"teamid");var gmlteam=gml_Script_s_get_team_by_id(_inst,_other,gmlteamid);if(yyGetBool(gmlteam)){yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlmy_tla=ds_map_find_value(gmlteam,"tla");
};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_map_exists(gmlpmap,"drafted_pro_team")))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlpmap,"drafted_pro_team"),"")))){{var gmli=0;for(;yyfless(gmli,ds_list_size(gmlproTeams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlproTeam=ds_list_find_value(gmlproTeams,gmli);if(yyfequal(ds_map_find_value(gmlproTeam,"uid"),ds_map_find_value(gmlpmap,"drafted_pro_team"))){
{yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlmy_tla=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"tla")),">"),__yy_gml_errCheck(ds_map_find_value(gmlproTeam,"tla")));break;};};}};};};yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).x=yyfminus(__yy_gml_errCheck(gmlpx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5)));yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,
_inst.gmlroster_profile)]).y=yyfminus(__yy_gml_errCheck(gmlpy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).sprite_height),0.5)));gmlpx=yyfplus(gmlpx,gmlpw);if(yyfequal(gmlr,4)){{var gmlsz=yyfminus(__yy_gml_errCheck(min(gmlsize,10)),5);gmlpx=yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5);gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsz),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),
0.5))));gmlpy=yyfplus(gmlpy,88);};};}};ds_list_destroy(gmlhof_list);gmlhof_list=(-1);}}function gml_GlobalScript_s_iap_init(_inst,_other){(_inst.gmls_iap_init=__yy_method(_inst,gml_Script_s_iap_init));}function gml_Script_s_iap_init(_inst,_other){{gml_Script_slog(_inst,_other,"_s_iap_init__________________");var ___sw454___=g_pBuiltIn.get_os_type();var ___swc455___=-1;if(yyCompareVal(___sw454___,4,g_GMLMathEpsilon,false)==0){___swc455___=0;}else if(yyCompareVal(___sw454___,3,g_GMLMathEpsilon,false)==0){
___swc455___=1;}switch(___swc455___){case 0:{gml_Script_slog(_inst,_other,"s_iap_android");global.gmlCurrentTokens=ds_list_create();global.gmlCurrentProducts=ds_list_create();var gml_init=extension_stubfunc_real();if(yyfequal(gml_init,(-1))){{gml_Script_slog(_inst,_other,"ERROR - Billing API Has Not Connected!");yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),
10);};};break;}case 1:{gml_Script_slog(_inst,_other,"s_iap_init: ios");if((yyGetBool(!yyGetBool(global.gmlIAP_Enabled)))&&(yyGetBool(extension_stubfunc_real()))){{gml_Script_slog(_inst,_other,"ios_iap_IsAuthorisedForPayment == true");extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,
global.gmlIAP_PurchaseID[~~1])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,
global.gmlIAP_PurchaseID[~~4])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(5,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~5])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(6,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~6])]);extension_stubfunc_real();};}else {{gml_Script_slog(_inst,_other,"ios_iap_IsAuthorisedForPayment == false");yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,
_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}};}}function gml_GlobalScript_s_set_up_purchase_ids(_inst,_other){(_inst.gmls_set_up_purchase_ids=__yy_method(_inst,gml_Script_s_set_up_purchase_ids));}function gml_Script_s_set_up_purchase_ids(_inst,_other){{gml_Script_slog(_inst,_other,"s_set_up_purchase_ids");global.gmlcredits_20="credits_20";global.gmlcredits_50="credits_50";global.gmlcredits_100="credits_100";
global.gmlcredits_250="credits_250";global.gmlcredits_25="credits_25";global.gmlcredits_75="credits_75";global.gmlrb_full_version="rb_full_version";if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{global.gmlcredits_20="college_credits_500";global.gmlcredits_50="college_credits_50";global.gmlcredits_100="college_credits_100";global.gmlcredits_250="college_credits_250";global.gmlcredits_25="college_credits_25";global.gmlcredits_75="college_credits_75";global.gmlrb_full_version="college_full_version";
};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_set_up_purchase_ids... using style (credits_20)->(",__yy_gml_errCheck(string(global.gmlcredits_20))),")"));global.gmlIAP_PurchaseID=__yy_gml_array_check(global.gmlIAP_PurchaseID,3134966082);global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlrb_full_version;global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_20;
global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_50;global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_100;global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_250;global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(5,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_25;
global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(6,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_75;var gmli=1;for(;yyfless(gmli,4);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";
global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(5,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";
global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(6,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";}};}}function gml_GlobalScript_s_iap_async_android(_inst,_other){(_inst.gmls_iap_async_android=__yy_method(_inst,gml_Script_s_iap_async_android));}function gml_Script_s_iap_async_android(_inst,_other){{gml_Script_slog(_inst,_other,"s_iap_async_android");var gml_eventId=ds_map_find_value(g_pBuiltIn.get_async_load(),"id");if(!yyGetBool(ds_exists(yyInst(_inst,_other,97).gmlmap_options,
1))){gml_Script_s_create_map_options(_inst,_other);};var ___sw458___=gml_eventId;var ___swc459___=-1;if(yyCompareVal(___sw458___,12005,g_GMLMathEpsilon,false)==0){___swc459___=0;}else if(yyCompareVal(___sw458___,12006,g_GMLMathEpsilon,false)==0){___swc459___=1;}else if(yyCompareVal(___sw458___,12003,g_GMLMathEpsilon,false)==0){___swc459___=2;}else if(yyCompareVal(___sw458___,12010,g_GMLMathEpsilon,false)==0){___swc459___=3;}else if(yyCompareVal(___sw458___,12001,g_GMLMathEpsilon,false)==0){___swc459___=4;
}else if(yyCompareVal(___sw458___,12007,g_GMLMathEpsilon,false)==0){___swc459___=5;}else if(yyCompareVal(___sw458___,12008,g_GMLMathEpsilon,false)==0){___swc459___=6;}switch(___swc459___){case 0:{gml_Script_slog(_inst,_other,"gpb_store_connect");extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,
global.gmlIAP_PurchaseID[~~1])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,
global.gmlIAP_PurchaseID[~~4])]);extension_stubfunc_real();break;}case 1:{gml_Script_slog(_inst,_other,"gpb_store_connect_failed");yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);break;}case 2:{gml_Script_slog(_inst,_other,"gpb_product_data_response");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_map=json_decode(gml_json);
if(yyfequal(ds_map_find_value(gml_map,"success"),true)){{global.gmlIAP_Enabled=true;var gml_plist=ds_map_find_value(gml_map,"skuDetails");gml_Script_slog(_inst,_other,yyfplus(yyfplus("gpb_product_data_response skuDetails count[",__yy_gml_errCheck(string(ds_list_size(gml_plist)))),"]"));var gmli=0;for(;yyfless(gmli,ds_list_size(gml_plist));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);var gml_num=0;while(yyfnotequal(ds_map_find_value(gml_pmap,"productId"),
global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~gml_num])])){{(gml_num=(gml_num instanceof Long?gml_num.add(1):++gml_num),gml_num);}};gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"productId"));gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"price"));gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"title"));gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"description"));
global.gmlIAP_PurchaseID=__yy_gml_array_check(global.gmlIAP_PurchaseID,3134966082);global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=ds_map_find_value(gml_pmap,"productId");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(1)]=ds_map_find_value(gml_pmap,"price");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(3)]=ds_map_find_value(gml_pmap,
"title");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(2)]=ds_map_find_value(gml_pmap,"description");}};extension_stubfunc_string("\"inapp\"");};};ds_map_destroy(gml_map);gml_map=(-1);break;}case 3:{gml_Script_slog(_inst,_other,"gpb_query_purchase_async");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_purchase_map=json_decode(gml_json);if(yyfequal(ds_map_find_value(gml_purchase_map,"success"),
true)){{var gml_list=ds_map_find_value(gml_purchase_map,"purchases");var gml_sz=ds_list_size(gml_list);var gmli=0;for(;yyfless(gmli,gml_sz);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_map=ds_list_find_value(gml_list,gmli);if(yyfequal(ds_map_find_value(gml_map,"purchaseState"),0)){{var gml_pid=ds_map_find_value(gml_map,"productId");var gml_token=ds_map_find_value(gml_map,"purchaseToken");var gml_add=false;gml_Script_slog(_inst,_other,yyfplus(yyfplus("gpb_query_purchase_async - [",__yy_gml_errCheck(string(gml_pid))),
"]"));if(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])])){{gml_Script_slog(_inst,_other,yyfplus("gpb_query_purchase_async - acknowledged = ",__yy_gml_errCheck(string(ds_map_find_value(gml_map,"acknowledged")))));if(yyfequal(ds_map_find_value(gml_map,"acknowledged"),0)){{extension_stubfunc_real(gml_token);};}else {if(yyfequal(ds_map_find_value(gml_map,"acknowledged"),1)){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"fullversion"))){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_replays",1);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_kickoffs",1);audio_play_sound(17,1,false);};};ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"fullversion",1);};};};gml_add=true;};}else {if((yyGetBool(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,
global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~1])])))||(yyGetBool(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])])))||(yyGetBool(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])])))||(yyGetBool(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,
global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~4])])))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("gpb_query_purchase_async - Trigger CONSUME [",__yy_gml_errCheck(string(gml_pid))),"]"));extension_stubfunc_real(gml_token);gml_add=true;};};};if(yyGetBool(gml_add)){{ds_list_add(global.gmlCurrentTokens,gml_token);ds_list_add(global.gmlCurrentProducts,gml_pid);};};};};}};};};ds_map_destroy(gml_purchase_map);gml_purchase_map=(-1);break;}case 4:{gml_Script_slog(_inst,
_other,"gpb_iap_receipt");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_map=json_decode(gml_json);if(yyfequal(ds_map_find_value(gml_map,"success"),true)){{if(yyGetBool(ds_map_exists(gml_map,"purchases"))){{var gml_plist=ds_map_find_value(gml_map,"purchases");var gmli=0;for(;yyfless(gmli,ds_list_size(gml_plist));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);gml_Script_slog(_inst,_other,yyfplus(yyfplus("gpb_iap_receipt for [",
__yy_gml_errCheck(string(ds_map_find_value(gml_pmap,"productId")))),"]"));var gml_ptoken=ds_map_find_value(gml_pmap,"purchaseToken");var gml_sig=extension_stubfunc_string(gml_ptoken);var gml_pjson=extension_stubfunc_string(gml_ptoken);if(yyGetBool(extension_stubfunc_real(gml_pjson,gml_sig))){{if(yyfequal(ds_map_find_value(gml_pmap,"productId"),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])])){extension_stubfunc_real(gml_ptoken);
}else {extension_stubfunc_real(gml_ptoken);};ds_list_add(global.gmlCurrentTokens,gml_ptoken);ds_list_add(global.gmlCurrentProducts,ds_map_find_value(gml_pmap,"productId"));};};}};};};};};gml_Script_s_unfreeze_purchase_buttons(_inst,_other);ds_map_destroy(gml_map);gml_map=(-1);break;}case 5:{gml_Script_slog(_inst,_other,"gpb_product_consume_response");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_map=json_decode(gml_json);var gml_num=(-1);if(yyGetBool(ds_map_exists(gml_map,
"purchaseToken"))){{var gmli=0;for(;yyfless(gmli,ds_list_size(global.gmlCurrentTokens));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{if(yyfequal(ds_map_find_value(gml_map,"purchaseToken"),ds_list_find_value(global.gmlCurrentTokens,gmli))){{if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~1])])){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,
_other,97).gmlcoach_credit,500);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),500));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,500);audio_play_sound(17,1,false);gml_num=gmli;break;};}else {if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,
global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])])){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,50);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),50));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,50);audio_play_sound(17,
1,false);gml_num=gmli;break;};}else {if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])])){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,100);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),
100));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,100);audio_play_sound(17,1,false);gml_num=gmli;break;};}else {if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~4])])){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,250);ds_map_set(yyInst(_inst,
_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),250));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,250);audio_play_sound(17,1,false);gml_num=gmli;break;};};};};};};};}};gml_Script_s_savegame(_inst,_other);if(yyfgreater(gml_num,(-1))){{ds_list_delete(global.gmlCurrentProducts,gml_num);ds_list_delete(global.gmlCurrentTokens,
gml_num);};};};}else {{};};gml_Script_s_unfreeze_purchase_buttons(_inst,_other);ds_map_destroy(gml_map);gml_map=(-1);break;}case 6:{gml_Script_slog(_inst,_other,"gpb_acknowledge_purchase_response");var gml_map=json_decode(ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json"));var gml_num=(-1);if(yyGetBool(ds_map_exists(gml_map,"responseCode"))){{if(yyfequal(ds_map_find_value(gml_map,"responseCode"),0)){{var gmli=0;for(;yyfless(gmli,ds_list_size(global.gmlCurrentProducts));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),
gmli)){{if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])])){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"))){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,
"op_replays",1);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_kickoffs",1);audio_play_sound(17,1,false);};};ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"fullversion",1);gml_num=gmli;break;};};}};gml_Script_s_savegame(_inst,_other);if(yyfgreater(gml_num,(-1))){{ds_list_delete(global.gmlCurrentProducts,gml_num);ds_list_delete(global.gmlCurrentTokens,gml_num);};};};}else {{};};};};gml_Script_s_unfreeze_purchase_buttons(_inst,_other);ds_map_destroy(gml_map);gml_map=(-1);break;}};}}function gml_GlobalScript_s_iap_async_ios(_inst,
_other){(_inst.gmls_iap_async_ios=__yy_method(_inst,gml_Script_s_iap_async_ios));}function gml_Script_s_iap_async_ios(_inst,_other){{gml_Script_slog(_inst,_other,"s_iap_async_ios");if(!yyGetBool(is_array(global.gmlIAP_PurchaseID))){gml_Script_s_set_up_purchase_ids(_inst,_other);};if(!yyGetBool(ds_exists(yyInst(_inst,_other,97).gmlmap_options,1))){gml_Script_s_create_map_options(_inst,_other);};var gml_eventId=ds_map_find_value(g_pBuiltIn.get_async_load(),"id");var ___sw468___=gml_eventId;var ___swc469___=-1;
if(yyCompareVal(___sw468___,23004,g_GMLMathEpsilon,false)==0){___swc469___=0;}else if(yyCompareVal(___sw468___,23000,g_GMLMathEpsilon,false)==0){___swc469___=1;}switch(___swc469___){case 0:{gml_Script_slog(_inst,_other,"s_iap_async: ios_product_update");global.gmlIAP_Enabled=true;var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_map=json_decode(gml_json);var gml_plist=ds_map_find_value(gml_map,"valid");var gml_sz=ds_list_size(gml_plist);var gmli=0;for(;yyfless(gmli,gml_sz);
(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"productId"));var gml_pid=(-1);var ___sw470___=ds_map_find_value(gml_pmap,"productId");var ___swc471___=-1;if(yyCompareVal(___sw470___,global.gmlrb_full_version,g_GMLMathEpsilon,false)==0){___swc471___=0;}else if(yyCompareVal(___sw470___,global.gmlcredits_20,g_GMLMathEpsilon,false)==0){___swc471___=1;}else if(yyCompareVal(___sw470___,global.gmlcredits_50,
g_GMLMathEpsilon,false)==0){___swc471___=2;}else if(yyCompareVal(___sw470___,global.gmlcredits_100,g_GMLMathEpsilon,false)==0){___swc471___=3;}else if(yyCompareVal(___sw470___,global.gmlcredits_250,g_GMLMathEpsilon,false)==0){___swc471___=4;}else if(yyCompareVal(___sw470___,global.gmlcredits_25,g_GMLMathEpsilon,false)==0){___swc471___=5;}else if(yyCompareVal(___sw470___,global.gmlcredits_75,g_GMLMathEpsilon,false)==0){___swc471___=6;}switch(___swc471___){case 0:{gml_pid=0;break;}case 1:{gml_pid=1;break;
}case 2:{gml_pid=2;break;}case 3:{gml_pid=3;break;}case 4:{gml_pid=4;break;}case 5:{gml_pid=5;break;}case 6:{gml_pid=6;break;}};if(yyfgreater(gml_pid,(-1))){{global.gmlIAP_PurchaseID=__yy_gml_array_check(global.gmlIAP_PurchaseID,3134966082);global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_pid,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(1)]=ds_map_find_value(gml_pmap,"price");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_pid,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(2)]=ds_map_find_value(gml_pmap,
"localizedDescription");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_pid,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(3)]=ds_map_find_value(gml_pmap,"localizedTitle");};};}};ds_map_destroy(gml_map);gml_map=(-1);var gml_json=extension_stubfunc_string();if(yyfnotequal(gml_json,"")){{gml_Script_slog(_inst,_other,"checking for purchases...");var gml_map=json_decode(gml_json);var gml_plist=ds_map_find_value(gml_map,"purchases");var gml_sz=ds_list_size(gml_plist);var gmli=0;for(;
yyfless(gmli,gml_sz);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);var gml_ptoken=ds_map_find_value(gml_pmap,"purchaseToken");if(yyfnotequal(ds_map_find_value(gml_pmap,"purchaseState"),23002)){{var gml_receipt=extension_stubfunc_string();{var ___sw472___=ds_map_find_value(gml_pmap,"productId");var ___swc473___=-1;if(yyCompareVal(___sw472___,global.gmlrb_full_version,g_GMLMathEpsilon,false)==0){___swc473___=0;}else if(yyCompareVal(___sw472___,global.gmlcredits_20,
g_GMLMathEpsilon,false)==0){___swc473___=1;}else if(yyCompareVal(___sw472___,global.gmlcredits_50,g_GMLMathEpsilon,false)==0){___swc473___=2;}else if(yyCompareVal(___sw472___,global.gmlcredits_100,g_GMLMathEpsilon,false)==0){___swc473___=3;}else if(yyCompareVal(___sw472___,global.gmlcredits_25,g_GMLMathEpsilon,false)==0){___swc473___=4;}else if(yyCompareVal(___sw472___,global.gmlcredits_75,g_GMLMathEpsilon,false)==0){___swc473___=5;}else if(yyCompareVal(___sw472___,global.gmlcredits_250,g_GMLMathEpsilon,
false)==0){___swc473___=6;}switch(___swc473___){case 0:{gml_Script_slog(_inst,_other,"receipt for: rb_full_version");if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"))){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_replays",1);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_kickoffs",1);audio_play_sound(17,
1,false);};};ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"fullversion",1);break;}case 1:{gml_Script_slog(_inst,_other,"receipt for: credits_20");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,500);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),500));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,
_other,97).gmlseason_credits_purchased,500);audio_play_sound(17,1,false);break;}case 2:{gml_Script_slog(_inst,_other,"receipt for: credits_50");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,50);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),50));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,
97).gmlseason_credits_purchased,50);audio_play_sound(17,1,false);break;}case 3:{gml_Script_slog(_inst,_other,"receipt for: credits_100");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,100);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),100));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,
100);audio_play_sound(17,1,false);break;}case 4:{gml_Script_slog(_inst,_other,"receipt for: credits_25");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),25));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,25);audio_play_sound(17,
1,false);break;}case 5:{gml_Script_slog(_inst,_other,"receipt for: credits_75");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,75);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),75));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,75);audio_play_sound(17,1,false);
break;}case 6:{gml_Script_slog(_inst,_other,"receipt for: credits_250");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,250);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),250));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,250);audio_play_sound(17,1,false);break;
}};gml_Script_s_savegame(_inst,_other);gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};}else {{gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};extension_stubfunc_real(gml_ptoken);ds_map_destroy(gml_pmap);gml_pmap=(-1);}};ds_map_destroy(gml_map);gml_map=(-1);};};break;}case 1:{gml_Script_slog(_inst,_other,"s_iap_async: ios_payment_queue_update");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");if(yyfnotequal(gml_json,"")){{gml_Script_slog(_inst,_other,gml_json);
var gml_map=json_decode(gml_json);var gml_plist=ds_map_find_value(gml_map,"purchases");var gml_sz=ds_list_size(gml_plist);var gmli=0;for(;yyfless(gmli,gml_sz);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);var gml_ptoken=ds_map_find_value(gml_pmap,"purchaseToken");if(yyfnotequal(ds_map_find_value(gml_pmap,"purchaseState"),23002)){{var gml_receipt=extension_stubfunc_string();{var ___sw474___=ds_map_find_value(gml_pmap,"productId");var ___swc475___=-1;
if(yyCompareVal(___sw474___,global.gmlrb_full_version,g_GMLMathEpsilon,false)==0){___swc475___=0;}else if(yyCompareVal(___sw474___,global.gmlcredits_20,g_GMLMathEpsilon,false)==0){___swc475___=1;}else if(yyCompareVal(___sw474___,global.gmlcredits_50,g_GMLMathEpsilon,false)==0){___swc475___=2;}else if(yyCompareVal(___sw474___,global.gmlcredits_100,g_GMLMathEpsilon,false)==0){___swc475___=3;}else if(yyCompareVal(___sw474___,global.gmlcredits_25,g_GMLMathEpsilon,false)==0){___swc475___=4;}else if(yyCompareVal(___sw474___,
global.gmlcredits_75,g_GMLMathEpsilon,false)==0){___swc475___=5;}else if(yyCompareVal(___sw474___,global.gmlcredits_250,g_GMLMathEpsilon,false)==0){___swc475___=6;}switch(___swc475___){case 0:{gml_Script_slog(_inst,_other,"receipt for: rb_full_version");if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"))){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst,
_other,97).gmlmap_options,"op_replays",1);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_kickoffs",1);audio_play_sound(17,1,false);};};ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"fullversion",1);break;}case 1:{gml_Script_slog(_inst,_other,"receipt for: credits_20");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,500);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_credits_purchased")),500));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,500);audio_play_sound(17,1,false);break;}case 2:{gml_Script_slog(_inst,_other,"receipt for: credits_50");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,50);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,
97).gmlmap_options,"op_credits_purchased")),50));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,50);audio_play_sound(17,1,false);break;}case 3:{gml_Script_slog(_inst,_other,"receipt for: credits_100");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,100);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,
"op_credits_purchased")),100));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,100);audio_play_sound(17,1,false);break;}case 4:{gml_Script_slog(_inst,_other,"receipt for: credits_25");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),
25));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,25);audio_play_sound(17,1,false);break;}case 5:{gml_Script_slog(_inst,_other,"receipt for: credits_75");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,75);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),75));yyInst(_inst,
_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,75);audio_play_sound(17,1,false);break;}case 6:{gml_Script_slog(_inst,_other,"receipt for: credits_250");yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,250);ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),250));yyInst(_inst,_other,
97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,250);audio_play_sound(17,1,false);break;}};gml_Script_s_savegame(_inst,_other);gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};}else {{gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};extension_stubfunc_real(gml_ptoken);ds_map_destroy(gml_pmap);gml_pmap=(-1);}};ds_map_destroy(gml_map);gml_map=(-1);};};break;}};}}function gml_GlobalScript_s_iap_purchase_FullVersion(_inst,_other){(_inst.gmls_iap_purchase_FullVersion=__yy_method(_inst,
gml_Script_s_iap_purchase_FullVersion));}function gml_Script_s_iap_purchase_FullVersion(_inst,_other){{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw478___=g_pBuiltIn.get_os_type();var ___swc479___=-1;
if(yyCompareVal(___sw478___,4,g_GMLMathEpsilon,false)==0){___swc479___=0;}else if(yyCompareVal(___sw478___,3,g_GMLMathEpsilon,false)==0){___swc479___=1;}switch(___swc479___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,
_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])]);};}else {yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),
10);};break;}};}}function gml_GlobalScript_s_set_position_kickoff(_inst,_other){(_inst.gmls_set_position_return_ko=__yy_method(_inst,gml_Script_s_set_position_return_ko));(_inst.gmls_set_position_take_ko=__yy_method(_inst,gml_Script_s_set_position_take_ko));}function gml_Script_s_set_position_return_ko(_inst,_other){{_inst.gmlposition=13;_inst.x=yyfminus(1300,__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var ___sw484___=_inst.gmlinum;var ___swc485___=-1;if(yyCompareVal(___sw484___,
1,g_GMLMathEpsilon,false)==0){___swc485___=0;}else if(yyCompareVal(___sw484___,2,g_GMLMathEpsilon,false)==0){___swc485___=1;}else if(yyCompareVal(___sw484___,3,g_GMLMathEpsilon,false)==0){___swc485___=2;}else if(yyCompareVal(___sw484___,4,g_GMLMathEpsilon,false)==0){___swc485___=3;}else if(yyCompareVal(___sw484___,5,g_GMLMathEpsilon,false)==0){___swc485___=4;}else if(yyCompareVal(___sw484___,6,g_GMLMathEpsilon,false)==0){___swc485___=5;}else if(yyCompareVal(___sw484___,7,g_GMLMathEpsilon,false)==0){___swc485___=6;
}else if(yyCompareVal(___sw484___,8,g_GMLMathEpsilon,false)==0){___swc485___=7;}else if(yyCompareVal(___sw484___,9,g_GMLMathEpsilon,false)==0){___swc485___=8;}else if(yyCompareVal(___sw484___,10,g_GMLMathEpsilon,false)==0){___swc485___=9;}else if(yyCompareVal(___sw484___,11,g_GMLMathEpsilon,false)==0){___swc485___=10;}switch(___swc485___){case 0:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),120);break;}case 1:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),
70);break;}case 2:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),20);break;}case 3:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),60);break;}case 4:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),120);break;}case 5:{_inst.x=yyfminus(_inst.x,yyftime(200,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),100);break;}case 6:{_inst.x=yyfminus(_inst.x,yyftime(200,__yy_gml_errCheck(_inst.gmlfacing)));
_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),20);break;}case 7:{_inst.x=yyfminus(_inst.x,yyftime(200,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),110);break;}case 8:{_inst.x=yyfminus(_inst.x,yyftime(400,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),100);break;}case 9:{_inst.gmlposition=14;_inst.x=yyfminus(_inst.x,yyftime(1000,__yy_gml_errCheck(_inst.gmlfacing)));
_inst.y=yyInst(_inst,_other,104).gmly_scrim;break;}case 10:{_inst.x=yyfminus(_inst.x,yyftime(400,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),100);break;}};_inst.x=yyfplus(_inst.x,random_range((-2),2));_inst.y=yyfplus(_inst.y,random_range((-2),2));}}function gml_Script_s_set_position_take_ko(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(irandom_range(8,
13)),__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlposition=12;var ___sw486___=_inst.gmlinum;var ___swc487___=-1;if(yyCompareVal(___sw486___,1,g_GMLMathEpsilon,false)==0){___swc487___=0;}else if(yyCompareVal(___sw486___,2,g_GMLMathEpsilon,false)==0){___swc487___=1;}else if(yyCompareVal(___sw486___,3,g_GMLMathEpsilon,false)==0){___swc487___=2;}else if(yyCompareVal(___sw486___,4,g_GMLMathEpsilon,false)==0){___swc487___=3;}else if(yyCompareVal(___sw486___,5,g_GMLMathEpsilon,false)==0){___swc487___=4;}else if(yyCompareVal(___sw486___,
6,g_GMLMathEpsilon,false)==0){___swc487___=5;}else if(yyCompareVal(___sw486___,7,g_GMLMathEpsilon,false)==0){___swc487___=6;}else if(yyCompareVal(___sw486___,8,g_GMLMathEpsilon,false)==0){___swc487___=7;}else if(yyCompareVal(___sw486___,9,g_GMLMathEpsilon,false)==0){___swc487___=8;}else if(yyCompareVal(___sw486___,10,g_GMLMathEpsilon,false)==0){___swc487___=9;}else if(yyCompareVal(___sw486___,11,g_GMLMathEpsilon,false)==0){___swc487___=10;}switch(___swc487___){case 0:{_inst.gmlposition=1;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,104).gmly_scrim;return;break;}case 1:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),160);break;}case 2:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),130);break;}case 3:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),100);break;}case 4:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),
70);break;}case 5:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),40);break;}case 6:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),40);break;}case 7:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),70);break;}case 8:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),100);break;}case 9:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),130);break;}case 10:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmly_scrim),160);break;}};_inst.y=yyfplus(_inst.y,irandom_range((-2),2));}}function gml_GlobalScript_s_iap_purchase_Credits_20(_inst,_other){(_inst.gmls_iap_purchase_Credits_20=__yy_method(_inst,gml_Script_s_iap_purchase_Credits_20));}function gml_Script_s_iap_purchase_Credits_20(_inst,_other){{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,
_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw490___=g_pBuiltIn.get_os_type();var ___swc491___=-1;if(yyCompareVal(___sw490___,4,g_GMLMathEpsilon,false)==0){___swc491___=0;}else if(yyCompareVal(___sw490___,3,g_GMLMathEpsilon,false)==0){___swc491___=1;}switch(___swc491___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,
global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~1])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,
global.gmlIAP_PurchaseID[~~1])]);};}else {yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};break;}};}}function gml_GlobalScript_s_iap_purchase_Credits_50(_inst,_other){(_inst.gmls_iap_purchase_Credits_50=__yy_method(_inst,gml_Script_s_iap_purchase_Credits_50));}function gml_Script_s_iap_purchase_Credits_50(_inst,_other){{if(!yyGetBool(os_is_network_connected())){
{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw494___=g_pBuiltIn.get_os_type();var ___swc495___=-1;if(yyCompareVal(___sw494___,4,g_GMLMathEpsilon,false)==0){___swc495___=0;}else if(yyCompareVal(___sw494___,3,g_GMLMathEpsilon,false)==0){___swc495___=1;
}switch(___swc495___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),
10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])]);};}else {yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};break;}};}}function gml_GlobalScript_s_iap_purchase_Credits_100(_inst,
_other){(_inst.gmls_iap_purchase_Credits_100=__yy_method(_inst,gml_Script_s_iap_purchase_Credits_100));}function gml_Script_s_iap_purchase_Credits_100(_inst,_other){{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);
var ___sw498___=g_pBuiltIn.get_os_type();var ___swc499___=-1;if(yyCompareVal(___sw498___,4,g_GMLMathEpsilon,false)==0){___swc499___=0;}else if(yyCompareVal(___sw498___,3,g_GMLMathEpsilon,false)==0){___swc499___=1;}switch(___swc499___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])]);if(yyfnotequal(gml_chk,
0)){{};};};}else {{yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])]);};}else {yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,
_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};break;}};}}function gml_GlobalScript_s_iap_purchase_Credits_250(_inst,_other){(_inst.gmls_iap_purchase_Credits_250=__yy_method(_inst,gml_Script_s_iap_purchase_Credits_250));}function gml_Script_s_iap_purchase_Credits_250(_inst,_other){{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,
_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw502___=g_pBuiltIn.get_os_type();var ___swc503___=-1;if(yyCompareVal(___sw502___,4,g_GMLMathEpsilon,false)==0){___swc503___=0;}else if(yyCompareVal(___sw502___,3,g_GMLMathEpsilon,false)==0){___swc503___=1;}switch(___swc503___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){
{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~4])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,
global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~4])]);};}else {yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};break;}};}}function gml_GlobalScript_s_iap_restore(_inst,_other){(_inst.gmls_iap_restore=__yy_method(_inst,gml_Script_s_iap_restore));}function gml_Script_s_iap_restore(_inst,_other){{var ___sw506___=g_pBuiltIn.get_os_type();
var ___swc507___=-1;if(yyCompareVal(___sw506___,4,g_GMLMathEpsilon,false)==0){___swc507___=0;}else if(yyCompareVal(___sw506___,3,g_GMLMathEpsilon,false)==0){___swc507___=1;}switch(___swc507___){case 0:{break;}case 1:{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {
{_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),4);gml_Script_s_freeze_purchase_buttons(_inst,_other);extension_stubfunc_real();};};break;}};}}function gml_GlobalScript_s_open_store(_inst,_other){(_inst.gmls_open_store=__yy_method(_inst,gml_Script_s_open_store));(_inst.gmls_btn_store_exit=__yy_method(_inst,gml_Script_s_btn_store_exit));}function gml_Script_s_open_store(_inst,_other){{gml_Script_s_msg_clear(_inst,
_other);if(yyGetBool(global.gmlmobile_device)){{if((yyGetBool(!yyGetBool(global.gmlIAP_Enabled)))||(yyGetBool(!yyGetBool(os_is_network_connected())))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};};};{var __yy__v814=GetWithArray(97);for(var __yy__v815 in __yy__v814){if(!__yy__v814.hasOwnProperty(__yy__v815))continue;var __yy__v816=__yy__v814[__yy__v815];
{var gmlbg=instance_create_layer(0,0,"PopUps",78);yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",70);yyInst(_inst,_other,gmltitle).gmltext=gml_Script_s_str(__yy__v816,_inst,"ui_Store");yyInst(_inst,_other,gmltitle).gmlshow_stars=true;yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlbtn_store_exit=instance_create_layer(8,
232,"PopUps",36);yyInst(_inst,_other,gmlbtn_store_exit).gmlimage=128;yyInst(_inst,_other,gmlbtn_store_exit).gmlonClickAction=kgml_Script_s_btn_store_exit;yyInst(_inst,_other,gmlbtn_store_exit).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_store_exit).gmlgp_mapped_hidden=global.gmlgp_back;var gmlbtn_store_restore=instance_create_layer(384,232,"PopUps",47);yyInst(_inst,_other,gmlbtn_store_restore).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,
gmlbg).depth),1);var gmlobj_cc=instance_create_layer(16,16,"PopUps",64);yyInst(_inst,_other,gmlobj_cc).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlby=52;var gmlbh=36;var gmli=0;for(;yyfless(gmli,5);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_name="";var gml_price=0;var gml_desc="";gml_Script_slog(__yy__v816,_inst,"_______________________");var ___sw512___=g_pBuiltIn.get_os_type();var ___swc513___=-1;if(yyCompareVal(___sw512___,4,g_GMLMathEpsilon,false)==0){
___swc513___=0;}else if(yyCompareVal(___sw512___,3,g_GMLMathEpsilon,false)==0){___swc513___=1;}switch(___swc513___){case 0:{gml_Script_slog(__yy__v816,_inst,"Get store details: android");gml_name=extension_stubfunc_string(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~gmli])]);gml_name=string_replace(gml_name," (Retro Bowl)","");gml_price=extension_stubfunc_string(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,
global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~gmli])]);gml_desc=extension_stubfunc_string(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~gmli])]);break;}case 1:{gml_Script_slog(__yy__v816,_inst,"Get store details: ios");gml_price=global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID[~~gmli])];
gml_name=global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID[~~gmli])];gml_desc=global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID[~~gmli])];break;}};gml_Script_slog(__yy__v816,_inst,yyfplus("Product name = ",__yy_gml_errCheck(string(gml_name))));gml_Script_slog(__yy__v816,_inst,yyfplus("Product price = ",__yy_gml_errCheck(string(gml_price))));
gml_Script_slog(__yy__v816,_inst,yyfplus("Product desc = ",__yy_gml_errCheck(string(gml_desc))));__yy__v816.gmlvbox_iap=__yy_gml_array_check(__yy__v816.gmlvbox_iap,1372162645);__yy__v816.gmlvbox_iap[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(80,gmlby,"PopUps",66);yyInst(_inst,_other,__yy__v816.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlvbox_iap)]).image_xscale=1.3;yyInst(_inst,_other,__yy__v816.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlvbox_iap)]).image_yscale=0.25;
yyInst(_inst,_other,__yy__v816.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlvbox_iap)]).gmltitle="";yyInst(_inst,_other,__yy__v816.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlvbox_iap)]).gmltext=gml_name;yyInst(_inst,_other,__yy__v816.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlvbox_iap)]).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);__yy__v816.gmlbtn_iap=__yy_gml_array_check(__yy__v816.gmlbtn_iap,4191512251);__yy__v816.gmlbtn_iap[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(294,
gmlby,"PopUps",48);yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).gmltext=gml_price;var ___sw514___=gmli;var ___swc515___=-1;if(yyCompareVal(___sw514___,0,g_GMLMathEpsilon,false)==0){___swc515___=0;}else if(yyCompareVal(___sw514___,1,g_GMLMathEpsilon,false)==0){___swc515___=1;}else if(yyCompareVal(___sw514___,
2,g_GMLMathEpsilon,false)==0){___swc515___=2;}else if(yyCompareVal(___sw514___,3,g_GMLMathEpsilon,false)==0){___swc515___=3;}else if(yyCompareVal(___sw514___,4,g_GMLMathEpsilon,false)==0){___swc515___=4;}switch(___swc515___){case 0:{yyInst(_inst,_other,__yy__v816.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlvbox_iap)]).gmltext=yyfplus(yyInst(_inst,_other,__yy__v816.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlvbox_iap)]).gmltext,gml_Script_s_str(__yy__v816,_inst,"info_UnlimitedVersion"));
yyInst(_inst,_other,__yy__v816.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlvbox_iap)]).image_yscale=0.5;yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_FullVersion;gmlby=yyfplus(gmlby,gmlbh);break;}case 1:{yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_Credits_20;break;}case 2:{yyInst(_inst,_other,
__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_Credits_50;break;}case 3:{yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_Credits_100;break;}case 4:{yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_Credits_250;break;}};yyInst(_inst,_other,
__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).gmlactive=false;yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v816.gmlbtn_iap)]).gmlstep_check=kgml_Script_btn_step_check_iaps;gmlby=yyfplus(gmlby,gmlbh);}};if(!yyGetBool(ds_map_find_value(__yy__v816.gmlmap_options,"fullversion"))){yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(0,__yy__v816.gmlbtn_iap)]).gmlactive=true;};yyInst(_inst,_other,__yy__v816.gmlbtn_iap[__yy_gml_array_check_index(0,
__yy__v816.gmlbtn_iap)]).gmlstep_check=kgml_Script_btn_step_check_fullversion;}}};}}function gml_Script_s_btn_store_exit(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyInst(_inst,_other,97).gmlstore_to_dilemma))){{{var __yy__v817=GetWithArray(97);for(var __yy__v818 in __yy__v817){if(!__yy__v817.hasOwnProperty(__yy__v818))continue;var __yy__v819=__yy__v817[__yy__v818];{gml_Script_s_create_dilemma(__yy__v819,_inst,__yy__v819.gmlmap_dilemma);
}}};};};}}function gml_GlobalScript_s_open_store_nag(_inst,_other){(_inst.gmls_open_store_nag=__yy_method(_inst,gml_Script_s_open_store_nag));}function gml_Script_s_open_store_nag(_inst,_other){{gml_Script_s_open_store(_inst,_other);if(!yyGetBool(global.gmlIAP_Enabled)){return;};}}function gml_GlobalScript_s_do_nag_message(_inst,_other){(_inst.gmls_do_nag_message=__yy_method(_inst,gml_Script_s_do_nag_message));(_inst.gmls_do_ad_retrogoal=__yy_method(_inst,gml_Script_s_do_ad_retrogoal));}function gml_Script_s_do_nag_message(_inst,
_other){{yyInst(_inst,_other,97).gmlnag=0;if(yyfequal(yyfmod(__yy_gml_errCheck((g_yyPrePostObject__=yyInst(_inst,_other,97).gmlad_tick,yyInst(_inst,_other,97).gmlad_tick=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlad_tick.add(1):++yyInst(_inst,_other,97).gmlad_tick),g_yyPrePostObject__)),3),0)){{gml_Script_s_do_ad_retrogoal(_inst,_other);return;};};gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,97).gmlstage=1;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,
_other,"msg_UnlimitedFeatures"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Upgrade"),kgml_Script_s_msg_clear,kgml_Script_s_open_store_nag,global.gmlc_background,1);}}function gml_Script_s_do_ad_retrogoal(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,97).gmlstage=1;ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"done_ad_retrogoal",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"done_ad_retrogoal"))),
1));gml_Script_s_save_options(_inst,_other);room_goto(35);}}function gml_GlobalScript_s_do_purchase_message(_inst,_other){(_inst.gmls_do_purchase_message=__yy_method(_inst,gml_Script_s_do_purchase_message));}function gml_Script_s_do_purchase_message(_inst,_other){{var ___sw518___=g_pBuiltIn.get_os_type();var ___swc519___=-1;if(yyCompareVal(___sw518___,4,g_GMLMathEpsilon,false)==0){___swc519___=0;}else if(yyCompareVal(___sw518___,3,g_GMLMathEpsilon,false)==0){___swc519___=1;}switch(___swc519___){case 0:{
if((yyGetBool(global.gmlIAP_Enabled))&&(yyGetBool(extension_stubfunc_real()))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_PurchaseUnlock");gmlmsg=string_replace(gmlmsg,"$price",global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID[~~0])]);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,
global.gmlc_background,1);};}else {{global.gmlIAP_Enabled=false;yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect_Unlock"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};break;}case 1:{
if(yyGetBool(global.gmlIAP_Enabled)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_PurchaseUnlock");gmlmsg=string_replace(gmlmsg,"$price",global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID[~~0])]);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};}else {{yyInst(_inst,
_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect_Unlock"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};break;}};}}function gml_GlobalScript_btn_step_check_fullversion(_inst,_other){(_inst.gmlbtn_step_check_fullversion=__yy_method(_inst,
gml_Script_btn_step_check_fullversion));}function gml_Script_btn_step_check_fullversion(_inst,_other){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"))){{_inst.gmlactive=false;_inst.gmltext=gml_Script_s_str(_inst,_other,"ui_Purchased");};};}}function gml_GlobalScript_btn_step_check_iaps(_inst,_other){(_inst.gmlbtn_step_check_iaps=__yy_method(_inst,gml_Script_btn_step_check_iaps));}function gml_Script_btn_step_check_iaps(_inst,_other){{if(!yyGetBool(_inst.alarm[__yy_gml_array_check_index(0,
_inst.alarm)])){{_inst.gmlactive=true;};};}}function gml_GlobalScript_s_freeze_purchase_buttons(_inst,_other){(_inst.gmls_freeze_purchase_buttons=__yy_method(_inst,gml_Script_s_freeze_purchase_buttons));}function gml_Script_s_freeze_purchase_buttons(_inst,_other){{gml_Script_slog(_inst,_other,"s_freeze_purchase_buttons");{var __yy__v820=GetWithArray(48);for(var __yy__v821 in __yy__v820){if(!__yy__v820.hasOwnProperty(__yy__v821))continue;var __yy__v822=__yy__v820[__yy__v821];{__yy__v822.gmlactive=false;
__yy__v822.alarm=__yy_gml_array_check(__yy__v822.alarm,2745557793);__yy__v822.alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),20);}}};{var __yy__v823=GetWithArray(47);for(var __yy__v824 in __yy__v823){if(!__yy__v823.hasOwnProperty(__yy__v824))continue;var __yy__v825=__yy__v823[__yy__v824];{__yy__v825.gmlactive=false;__yy__v825.alarm=__yy_gml_array_check(__yy__v825.alarm,3328723425);__yy__v825.alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),
20);}}};}}function gml_GlobalScript_s_unfreeze_purchase_buttons(_inst,_other){(_inst.gmls_unfreeze_purchase_buttons=__yy_method(_inst,gml_Script_s_unfreeze_purchase_buttons));}function gml_Script_s_unfreeze_purchase_buttons(_inst,_other){{gml_Script_slog(_inst,_other,"s_unfreeze_purchase_buttons");{var __yy__v826=GetWithArray(48);for(var __yy__v827 in __yy__v826){if(!__yy__v826.hasOwnProperty(__yy__v827))continue;var __yy__v828=__yy__v826[__yy__v827];{__yy__v828.alarm=__yy_gml_array_check(__yy__v828.alarm,
1905408442);__yy__v828.alarm[__yy_gml_array_check_index_set(0)]=(-1);}}};{var __yy__v829=GetWithArray(47);for(var __yy__v830 in __yy__v829){if(!__yy__v829.hasOwnProperty(__yy__v830))continue;var __yy__v831=__yy__v829[__yy__v830];{__yy__v831.alarm=__yy_gml_array_check(__yy__v831.alarm,1907119979);__yy__v831.alarm[__yy_gml_array_check_index_set(0)]=(-1);}}};}}function gml_GlobalScript_s_do_info_position(_inst,_other){(_inst.gmls_do_info_position=__yy_method(_inst,gml_Script_s_do_info_position));}function gml_Script_s_do_info_position(_inst,
_other){{var gmlmsg=yyfplus("info_",__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position"))));gmlmsg=gml_Script_s_str(_inst,_other,gmlmsg);if((yyGetBool(global.gmldebug))&&(yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))){{gmlmsg=yyfplus(gmlmsg,"\nDebug:");gmlmsg=yyfplus(gmlmsg,yyfplus("\nGRADE:",__yy_gml_errCheck(gml_Script_s_get_decay_info(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile))));gmlmsg=yyfplus(gmlmsg,
yyfplus("\nPARTY:",__yy_gml_errCheck(gml_Script_s_get_party_info(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile))));gmlmsg=yyfplus(gmlmsg,yyfplus("\nSTUDIES:",__yy_gml_errCheck(gml_Script_s_get_study_info(_inst,_other,yyInst(_inst,_other,97).gmlplayer_profile))));};};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}function gml_GlobalScript_s_do_info_skills(_inst,_other){(_inst.gmls_do_info_skills=__yy_method(_inst,
gml_Script_s_do_info_skills));}function gml_Script_s_do_info_skills(_inst,_other){{var gmlmsg="";var ___sw522___=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position");var ___swc523___=-1;if(yyCompareVal(___sw522___,1,g_GMLMathEpsilon,false)==0){___swc523___=0;}else if(yyCompareVal(___sw522___,10,g_GMLMathEpsilon,false)==0){___swc523___=1;}else if(yyCompareVal(___sw522___,5,g_GMLMathEpsilon,false)==0){___swc523___=2;}else if(yyCompareVal(___sw522___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw522___,
7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw522___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw522___,8,g_GMLMathEpsilon,false)==0){___swc523___=3;}switch(___swc523___){case 0:{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Throwing");break;}case 1:{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Kicking");break;}case 2:{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Blocking");break;}case 3:{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Tackling");break;}default :{gmlmsg=gml_Script_s_str(_inst,
_other,"info_Skill_Catching");break;}};if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gmlmsg=yyfplus(gmlmsg,yyfplus("\n\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"info_Skill_Buff"))));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}function gml_GlobalScript_s_do_info_coachtrait(_inst,_other){(_inst.gmls_do_info_coachtrait=__yy_method(_inst,gml_Script_s_do_info_coachtrait));}function gml_Script_s_do_info_coachtrait(_inst,
_other){{var gmlmsg=yyfplus("info_coachtrait_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"trait"))));gmlmsg=gml_Script_s_str(_inst,_other,gmlmsg);var ___sw526___=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position");var ___swc527___=-1;if(yyCompareVal(___sw526___,101,g_GMLMathEpsilon,false)==0){___swc527___=0;}else if(yyCompareVal(___sw526___,102,g_GMLMathEpsilon,false)==0){___swc527___=1;}switch(___swc527___){case 0:{gmlmsg=string_replace_all(gmlmsg,
"$pos",string_lower(gml_Script_s_str(_inst,_other,"ui_Defensive")));break;}case 1:{gmlmsg=string_replace_all(gmlmsg,"$pos",string_lower(gml_Script_s_str(_inst,_other,"ui_Offensive")));break;}};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}function gml_GlobalScript_s_do_info_draftpicks(_inst,_other){(_inst.gmls_do_info_draftpicks=__yy_method(_inst,gml_Script_s_do_info_draftpicks));}function gml_Script_s_do_info_draftpicks(_inst,
_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"info_DraftPicks");{var __yy__v832=GetWithArray(97);for(var __yy__v833 in __yy__v832){if(!__yy__v832.hasOwnProperty(__yy__v833))continue;var __yy__v834=__yy__v832[__yy__v833];{gmlmsg=string_replace(gmlmsg,"$num1",string(__yy__v834.gmldraft_picks[__yy_gml_array_check_index(0,__yy__v834.gmldraft_picks)]));gmlmsg=string_replace(gmlmsg,"$num2",string(__yy__v834.gmldraft_picks[__yy_gml_array_check_index(1,__yy__v834.gmldraft_picks)]));gmlmsg=string_replace(gmlmsg,
"$num3",string(__yy__v834.gmldraft_picks[__yy_gml_array_check_index(2,__yy__v834.gmldraft_picks)]));}}};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}function gml_GlobalScript_s_do_info(_inst,_other){(_inst.gmls_do_info=__yy_method(_inst,gml_Script_s_do_info));}function gml_Script_s_do_info(_inst,_other,argument0){{var ___sw530___=argument0;var ___swc531___=-1;if(yyCompareVal(___sw530___,"info_Position",
g_GMLMathEpsilon,false)==0){___swc531___=0;}else if(yyCompareVal(___sw530___,"info_Skills",g_GMLMathEpsilon,false)==0){___swc531___=1;}else if(yyCompareVal(___sw530___,"info_DraftPicks",g_GMLMathEpsilon,false)==0){___swc531___=2;}else if(yyCompareVal(___sw530___,"info_CoachTrait",g_GMLMathEpsilon,false)==0){___swc531___=3;}else if(yyCompareVal(___sw530___,"info_Skill_Strength",g_GMLMathEpsilon,false)==0){___swc531___=4;}else if(yyCompareVal(___sw530___,"info_Skill_Speed",g_GMLMathEpsilon,false)==0){___swc531___=5;
}else if(yyCompareVal(___sw530___,"info_Skill_Stamina",g_GMLMathEpsilon,false)==0){___swc531___=6;}switch(___swc531___){case 0:{gml_Script_s_do_info_position(_inst,_other);break;}case 1:{gml_Script_s_do_info_skills(_inst,_other);break;}case 2:{gml_Script_s_do_info_draftpicks(_inst,_other);break;}case 3:{gml_Script_s_do_info_coachtrait(_inst,_other);break;}case 4:{argument0=gml_Script_s_str(_inst,_other,argument0);if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){argument0=yyfplus(argument0,yyfplus("\n\n",
__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"info_Strength_Buff"))));};gml_Script_s_create_message(_inst,_other,"",argument0,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);break;}case 5:{argument0=gml_Script_s_str(_inst,_other,argument0);if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){argument0=yyfplus(argument0,yyfplus("\n\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"info_Speed_Buff"))));};gml_Script_s_create_message(_inst,_other,
"",argument0,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);break;}case 6:{argument0=gml_Script_s_str(_inst,_other,argument0);if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){argument0=yyfplus(argument0,yyfplus("\n\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"info_Stamina_Buff"))));};gml_Script_s_create_message(_inst,_other,"",argument0,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);
break;}default :{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,argument0),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);break;}};}}function gml_GlobalScript_s_create_camera(_inst,_other){(_inst.gmls_create_camera=__yy_method(_inst,gml_Script_s_create_camera));}function gml_Script_s_create_camera(_inst,_other){{{var __yy__v835=GetWithArray(98);for(var __yy__v836 in __yy__v835){if(!__yy__v835.hasOwnProperty(__yy__v836))continue;
var __yy__v837=__yy__v835[__yy__v836];{surface_depth_disable(true);if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))&&(yyGetBool(!yyGetBool(global.gmlbrowser)))){{__yy__v837.gmldisplay_width=yyftime(__yy_gml_errCheck(window_get_width()),2);__yy__v837.gmldisplay_height=yyftime(__yy_gml_errCheck(window_get_height()),2);};}else {{__yy__v837.gmldisplay_width=display_get_width();__yy__v837.gmldisplay_height=display_get_height();};};__yy__v837.gmlzoom=2;__yy__v837.gmlaspect_ratio=yyfdivide(__yy_gml_errCheck(__yy__v837.gmldisplay_width),
__yy_gml_errCheck(__yy__v837.gmldisplay_height));gml_Script_slog(__yy__v837,_inst,yyfplus("Aspect Ratio = ",__yy_gml_errCheck(string(__yy__v837.gmlaspect_ratio))));__yy__v837.gmlview_height=270;__yy__v837.gmlview_width=round(yyftime(__yy_gml_errCheck(__yy__v837.gmlview_height),__yy_gml_errCheck(__yy__v837.gmlaspect_ratio)));if(yyGetBool(yyfbitand(__yy_gml_errCheck(__yy__v837.gmlview_width),1))){(g_yyPrePostObject__=__yy__v837.gmlview_width,__yy__v837.gmlview_width=(g_yyPrePostObject__ instanceof Long?__yy__v837.gmlview_width.add(1):++__yy__v837.gmlview_width),
g_yyPrePostObject__);};if(yyGetBool(yyfbitand(__yy_gml_errCheck(__yy__v837.gmlview_height),1))){(g_yyPrePostObject__=__yy__v837.gmlview_height,__yy__v837.gmlview_height=(g_yyPrePostObject__ instanceof Long?__yy__v837.gmlview_height.add(1):++__yy__v837.gmlview_height),g_yyPrePostObject__);};if(yyGetBool(global.gmlbrowser)){__yy__v837.gmlmax_window_scale=min(yyfdivide(__yy_gml_errCheck(__yy__v837.gmldisplay_width),__yy_gml_errCheck(__yy__v837.gmlview_width)),yyfdivide(__yy_gml_errCheck(__yy__v837.gmldisplay_height),
__yy_gml_errCheck(__yy__v837.gmlview_height)));}else {{__yy__v837.gmlmax_window_scale=min(floor(yyfdivide(__yy_gml_errCheck(__yy__v837.gmldisplay_width),__yy_gml_errCheck(__yy__v837.gmlview_width))),floor(yyfdivide(__yy_gml_errCheck(__yy__v837.gmldisplay_height),__yy_gml_errCheck(__yy__v837.gmlview_height))));if(yyfequal(yyftime(__yy_gml_errCheck(__yy__v837.gmlview_height),__yy_gml_errCheck(__yy__v837.gmlmax_window_scale)),__yy__v837.gmldisplay_height)){(g_yyPrePostObject__=__yy__v837.gmlmax_window_scale,
__yy__v837.gmlmax_window_scale=(g_yyPrePostObject__ instanceof Long?__yy__v837.gmlmax_window_scale.subtract(1):--__yy__v837.gmlmax_window_scale),g_yyPrePostObject__);};};};window_set_size(yyftime(__yy_gml_errCheck(__yy__v837.gmlview_width),__yy_gml_errCheck(__yy__v837.gmlmax_window_scale)),yyftime(__yy_gml_errCheck(__yy__v837.gmlview_height),__yy_gml_errCheck(__yy__v837.gmlmax_window_scale)));display_set_gui_size(__yy__v837.gmlview_width,__yy__v837.gmlview_height);__yy__v837.alarm=__yy_gml_array_check(__yy__v837.alarm,
2305694941);__yy__v837.alarm[__yy_gml_array_check_index_set(0)]=1;surface_resize(g_pBuiltIn.application_surface,yyftime(__yy_gml_errCheck(__yy__v837.gmlview_width),__yy_gml_errCheck(__yy__v837.gmlmax_window_scale)),yyftime(__yy_gml_errCheck(__yy__v837.gmlview_height),__yy_gml_errCheck(__yy__v837.gmlmax_window_scale)));}}};}}function gml_GlobalScript_s_play(_inst,_other,argument0){(_inst.gmls_play=__yy_method(_inst,gml_Script_s_play));}function gml_Script_s_play(_inst,_other,argument0){{if(yyGetBool(argument0)){
yyInst(_inst,_other,97).gmlstage=yyfplus(yyInst(_inst,_other,97).gmlstage,1);};if(yyfgreater(yyInst(_inst,_other,97).gmlstage,8)){yyInst(_inst,_other,97).gmlstage=1;};show_debug_message(yyfplus(yyfplus(yyfplus("s_play(",__yy_gml_errCheck(string(argument0))),") STAGE = "),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlstage))));var ___sw534___=yyInst(_inst,_other,97).gmlstage;var ___swc535___=-1;if(yyCompareVal(___sw534___,1,g_GMLMathEpsilon,false)==0){___swc535___=0;}else if(yyCompareVal(___sw534___,
2,g_GMLMathEpsilon,false)==0){___swc535___=1;}else if(yyCompareVal(___sw534___,3,g_GMLMathEpsilon,false)==0){___swc535___=2;}else if(yyCompareVal(___sw534___,4,g_GMLMathEpsilon,false)==0){___swc535___=3;}else if(yyCompareVal(___sw534___,5,g_GMLMathEpsilon,false)==0){___swc535___=4;}else if(yyCompareVal(___sw534___,6,g_GMLMathEpsilon,false)==0){___swc535___=5;}else if(yyCompareVal(___sw534___,7,g_GMLMathEpsilon,false)==0){___swc535___=6;}else if(yyCompareVal(___sw534___,8,g_GMLMathEpsilon,false)==0){___swc535___=7;
}else if(yyCompareVal(___sw534___,(-10),g_GMLMathEpsilon,false)==0){___swc535___=8;}switch(___swc535___){case 0:{room_goto(14);break;}case 1:{gml_Script_s_check_draft(_inst,_other);break;}case 2:{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlnag,yyInst(_inst,_other,97).gmlnag=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlnag.add(1):++yyInst(_inst,_other,97).gmlnag),g_yyPrePostObject__);gml_Script_slog(_inst,_other,yyfplus("fullversion = ",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"fullversion")))));gml_Script_slog(_inst,_other,yyfplus("nag = ",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlnag))));if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)))&&(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion")))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmltag_kr_message_done)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))){{yyInst(_inst,_other,97).gmlstage=1;yyInst(_inst,_other,97).gmltag_kr_message_done=1;
gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_KickReturns"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,1);return;};}else {if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"done_ad_retrogoal"))))&&(yyGetBool(global.gmlmobile_device))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlweek,2)))){{gml_Script_s_do_ad_retrogoal(_inst,
_other);return;};}else {if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlnag,4)))){{gml_Script_s_do_nag_message(_inst,_other);return;};};};};gml_Script_s_pre_match(_inst,_other);break;}case 3:{if(!yyGetBool(gml_Script_s_get_human_fixture_by_week(_inst,_other,yyInst(_inst,_other,97).gmlweek))){{yyInst(_inst,_other,97).gmlstage=1;return;};};yyInst(_inst,_other,97).gmlstage=0;yyInst(_inst,_other,97).gmlgamestarts=yyfplus(yyInst(_inst,
_other,97).gmlgamestarts,1);gml_Script_s_savegame(_inst,_other);yyInst(_inst,_other,97).gmlstage=4;room_goto(17);break;}case 4:{gml_Script_s_do_schedule(_inst,_other,false);room_goto(24);break;}case 5:{if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlstage,yyInst(_inst,_other,97).gmlstage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlstage.add(1):++yyInst(_inst,_other,97).gmlstage),g_yyPrePostObject__);room_goto(34);};}else {room_goto(40);
};break;}case 6:{room_goto(34);break;}case 7:{gml_Script_s_do_next_week(_inst,_other);gml_Script_s_play(_inst,_other,1);break;}case 8:{gml_Script_s_start_college_draft(_inst,_other);break;}};}}function gml_GlobalScript_s_update_poki_scaling(_inst,_other){(_inst.gmls_update_poki_scaling=__yy_method(_inst,gml_Script_s_update_poki_scaling));}function gml_Script_s_update_poki_scaling(_inst,_other){{if(yyGetBool(global.gmlbrowser)){{{var __yy__v838=GetWithArray(97);for(var __yy__v839 in __yy__v838){if(!__yy__v838.hasOwnProperty(__yy__v839))continue;
var __yy__v840=__yy__v838[__yy__v839];{if((yyGetBool(yyfnotequal(g_pBuiltIn.get_browser_width(),__yy__v840.gmlcanvaswidth)))||(yyGetBool(yyfnotequal(g_pBuiltIn.get_browser_height(),__yy__v840.gmlcanvasheight)))){{__yy__v840.gmlcanvaswidth=g_pBuiltIn.get_browser_width();__yy__v840.gmlcanvasheight=g_pBuiltIn.get_browser_height();gml_Script_scale_canvas(__yy__v840,_inst,480,270,max(480,__yy__v840.gmlcanvaswidth),max(270,__yy__v840.gmlcanvasheight),true);};};return;if((yyGetBool(yyfnotequal(g_pBuiltIn.get_browser_width(),
__yy__v840.gmlcanvaswidth)))||(yyGetBool(yyfnotequal(g_pBuiltIn.get_browser_height(),__yy__v840.gmlcanvasheight)))){{var gmlscl=4;while(yyfgreaterequal(gmlscl,1)){{if(yyfgreaterequal(g_pBuiltIn.get_browser_height(),yyftime(270,__yy_gml_errCheck(gmlscl)))){{__yy__v840.gmlcanvaswidth=g_pBuiltIn.get_browser_width();__yy__v840.gmlcanvasheight=g_pBuiltIn.get_browser_height();gml_Script_scale_canvas(__yy__v840,_inst,480,270,max(480,yyftime(480,__yy_gml_errCheck(gmlscl))),max(270,yyftime(270,__yy_gml_errCheck(gmlscl))),
true);return;};};gmlscl=yyfminus(gmlscl,0.1);}};};};}}};};};}}function gml_GlobalScript_s_pre_match(_inst,_other){(_inst.gmls_pre_match=__yy_method(_inst,gml_Script_s_pre_match));(_inst.gmls_continue_time_for_draft_msg=__yy_method(_inst,gml_Script_s_continue_time_for_draft_msg));}function gml_Script_s_pre_match(_inst,_other){{gml_Script_slog(_inst,_other,"s_next_match");yyInst(_inst,_other,97).gmlgamepractice=0;var gmlweek=yyInst(_inst,_other,97).gmlweek;var gmlfix=gml_Script_s_get_human_fixture_by_week(_inst,
_other,gmlweek);if((yyGetBool(gmlfix))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmlweek=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlweek.add(1):++yyInst(_inst,_other,97).gmlweek),g_yyPrePostObject__);yyInst(_inst,_other,97).gmlstage=2;return;};};if(yyGetBool(gmlfix)){{room_goto(21);};}else {if(yyfless(gmlweek,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){{gml_Script_s_do_bye_week(_inst,
_other);};}else {if((yyGetBool(yyfequal(gmlweek,yyInst(_inst,_other,97).gmlfirst_week_playoffs)))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlmyteam,gml_Script_s_get_division_winner_by_seed(_inst,_other,0,1))))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlmyteam,gml_Script_s_get_division_winner_by_seed(_inst,_other,1,1))))))){{gml_Script_s_do_bye_week(_inst,_other);};}else {if(yyflessequal(gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))){{yyInst(_inst,_other,97).gmlplayoff_proceed=true;
gml_Script_btn_click_PlayOffs(_inst,_other);};}else {if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmldone_season_review)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))){{yyInst(_inst,_other,97).gmlstage=1;yyInst(_inst,_other,97).gmldone_season_review=true;room_goto(38);};}else {if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,97).gmlstage=(-11);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TimeForProDraft"),"",gml_Script_s_str(_inst,
_other,"ui_Continue"),"",kgml_Script_s_continue_time_for_draft_msg,global.gmlc_background,1);};}else {if(yyfgreater(gml_Script_s_count_joboffers(_inst,_other),0)){{room_goto(3);};}else {{gml_Script_s_start_new_season(_inst,_other,false);};};};};};};};};}}function gml_Script_s_continue_time_for_draft_msg(_inst,_other){{room_goto(14);gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_s_player_profile_qb_mode(_inst,_other){(_inst.gmls_player_profile_qb_mode=__yy_method(_inst,gml_Script_s_player_profile_qb_mode));
}function gml_Script_s_player_profile_qb_mode(_inst,_other){{yyInst(_inst,_other,100406).gmltext=string(yyInst(_inst,_other,97).gmlqb_nrg);if(yyfgreater(gml_Script_s_get_qb_energy(_inst,_other),99)){yyInst(_inst,_other,100409).gmlactive=false;};}}function gml_GlobalScript_s_do_next_week(_inst,_other){(_inst.gmls_do_next_week=__yy_method(_inst,gml_Script_s_do_next_week));}function gml_Script_s_do_next_week(_inst,_other){{gml_Script_slog(_inst,_other,"s_do_next_week");var gmlfacilities_week=9;var gmlcontracts_week=16;
if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{};};{var __yy__v841=GetWithArray(97);for(var __yy__v842 in __yy__v841){if(!__yy__v841.hasOwnProperty(__yy__v842))continue;var __yy__v843=__yy__v841[__yy__v842];{(g_yyPrePostObject__=__yy__v843.gmlweek,__yy__v843.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v843.gmlweek.add(1):++__yy__v843.gmlweek),g_yyPrePostObject__);__yy__v843.gmloffers_done=false;__yy__v843.gmlfans_done_update=false;__yy__v843.gmlprematch_dilemma_done=false;__yy__v843.gmlprematch_dilemma_shown_count=0;
ds_list_clear(__yy__v843.gmlprematch_dilemma_chosen_players);__yy__v843.gmlboost_morale_done=false;__yy__v843.gmlboost_condition_done=false;__yy__v843.gmlboost_gpa_done=false;if(yyGetBool(__yy__v843.gmlqb_mode)){{gml_Script_s_degrade_shop_items(__yy__v843,_inst);gml_Script_s_qb_mode_update_resting(__yy__v843,_inst);};};gml_Script_s_clear_trade_offers(__yy__v843,_inst);gml_Script_s_reset_player_meetings(__yy__v843,_inst);gml_Script_s_do_result_news(__yy__v843,_inst);gml_Script_s_post_match_gpa_refresh(__yy__v843,
_inst);if(yyfequal(__yy__v843.gmlweek,gmlfacilities_week)){gml_Script_s_decline_facilities(__yy__v843,_inst);};if(yyfequal(__yy__v843.gmlweek,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){gml_Script_s_create_playoffs2(__yy__v843,_inst);};gml_Script_s_create_hirelist(__yy__v843,_inst,true,false);gml_Script_s_create_storelist(__yy__v843,_inst,yyfplus(1,__yy_gml_errCheck(irandom(2))));if(!yyGetBool(__yy__v843.gmlqb_mode)){{if(yyfequal(__yy__v843.gmlweek,gmlcontracts_week)){gml_Script_s_check_contracts_expiring(__yy__v843,
_inst);};if((yyGetBool(yyfequal(__yy__v843.gmlweek,8)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(__yy__v843,_inst))))){gml_Script_s_add_news(__yy__v843,_inst,gml_Script_s_str(__yy__v843,_inst,"msg_TradeDeadline"));};};};gml_Script_s_savegame(__yy__v843,_inst);gml_Script_slog(__yy__v843,_inst,yyfplus(">>>>> NEW WEEK = ",__yy_gml_errCheck(string(__yy__v843.gmlweek))));}}};}}function gml_GlobalScript_s_start_new_season(_inst,_other){(_inst.gmls_start_new_season=__yy_method(_inst,gml_Script_s_start_new_season));
(_inst.gmls_renew_contracts_qb_mode=__yy_method(_inst,gml_Script_s_renew_contracts_qb_mode));}function gml_Script_s_start_new_season(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_start_new_season");{var __yy__v844=GetWithArray(97);for(var __yy__v845 in __yy__v844){if(!__yy__v844.hasOwnProperty(__yy__v845))continue;var __yy__v846=__yy__v844[__yy__v845];{gml_Script_s_reset_match_stats(__yy__v846,_inst,true);__yy__v846.gmljobofferdone=false;if(yyfgreater(__yy__v846.gmlyear,1)){gml_Script_s_complete_achievement(__yy__v846,
_inst,"ACH_SEASON1");};if(yyfgreaterequal(gml_Script_s_count_achievement(__yy__v846,_inst,"ACH_SEASON1"),5)){gml_Script_s_complete_achievement(__yy__v846,_inst,"ACH_SEASON5");};if(yyfgreaterequal(gml_Script_s_count_achievement(__yy__v846,_inst,"ACH_SEASON1"),10)){gml_Script_s_complete_achievement(__yy__v846,_inst,"ACH_SEASON10");};if(yyfgreaterequal(gml_Script_s_count_achievement(__yy__v846,_inst,"ACH_SEASON1"),20)){gml_Script_s_complete_achievement(__yy__v846,_inst,"ACH_SEASON20");};__yy__v846.gmlweek=1;
__yy__v846.gmllast_week_regular=18;__yy__v846.gmlfirst_week_playoffs=19;gml_Script_s_college_shorter_season(__yy__v846,_inst);__yy__v846.gmlyear=yyfplus(__yy__v846.gmlyear,1);__yy__v846.gmlgamestarts=0;__yy__v846.gmldone_season_review=false;__yy__v846.gmlqb_new_offer=(-1);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v846.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v846.gmlschedule,
gmli));ds_list_set(__yy__v846.gmlschedule,gmli,(-1));}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v846.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v846.gmlfixturelist,gmli));ds_list_set(__yy__v846.gmlfixturelist,gmli,(-1));}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v846.gmlplayoffs));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v846.gmlplayoffs,gmli));ds_list_set(__yy__v846.gmlplayoffs,gmli,(-1));}};ds_list_destroy(__yy__v846.gmlplayoffs);ds_list_destroy(__yy__v846.gmlschedule);ds_list_destroy(__yy__v846.gmlfixturelist);__yy__v846.gmlplayoffs=(-1);__yy__v846.gmlschedule=(-1);__yy__v846.gmlfixturelist=(-1);__yy__v846.gmlplayoffs=ds_list_create();__yy__v846.gmlschedule=gml_Script_s_load_schedule(__yy__v846,_inst);__yy__v846.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v846,
_inst);ds_list_clear(__yy__v846.gmllist_teams_rejected);var gmlmsg=gml_Script_s_str(__yy__v846,_inst,"msg_NewSeason");if(yyGetBool(gml_Script_s_is_co_mode(__yy__v846,_inst))){{var gmlrc_amount=5;if(yyGetBool(gml_Script_can_fit_recruitment_credits(__yy__v846,_inst,gmlrc_amount))){{gmlmsg=string_replace(gml_Script_s_str(__yy__v846,_inst,"msg_NewSeasonCollege"),"$num",gmlrc_amount);gml_Script_recruitment_credits_add(__yy__v846,_inst,gmlrc_amount);};}else {{var gmlrc_space=gml_Script_recruitment_credits_space(__yy__v846,
_inst);gmlmsg=string_replace(gml_Script_s_str(__yy__v846,_inst,"msg_NewSeasonCollege_NoSpace"),"$maxNum",gmlrc_amount);gmlmsg=string_replace(gmlmsg,"$num",gmlrc_space);gml_Script_recruitment_credits_add(__yy__v846,_inst,gmlrc_amount);};};};};gml_Script_s_add_news(__yy__v846,_inst,gmlmsg);__yy__v846.gmldraft_round=1;if(yyGetBool(gml_Script_s_is_co_mode(__yy__v846,_inst))){{__yy__v846.gmlcollege_admissions_draft_round=1;};};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v846.gmlteamlist));(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmli);ds_map_set(gmlteam,"wins",0);ds_map_set(gmlteam,"losses",0);ds_map_set(gmlteam,"ties",0);ds_map_set(gmlteam,"old_rating",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"offense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense"))));if(yyfless(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,
"offense"))),9)){{ds_map_set(gmlteam,"defense",clamp(yyfplus(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"defense"))),1),__yy_gml_errCheck(irandom(2))),1,10));ds_map_set(gmlteam,"offense",clamp(yyfplus(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"offense"))),1),__yy_gml_errCheck(irandom(2))),1,10));};}else {if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"offense"))),15)){{ds_map_set(gmlteam,"defense",
clamp(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"defense"))),__yy_gml_errCheck(irandom_range((-2),1))),1,10));ds_map_set(gmlteam,"offense",clamp(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"offense"))),__yy_gml_errCheck(irandom_range((-2),1))),1,10));};}else {{ds_map_set(gmlteam,"defense",clamp(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"defense"))),__yy_gml_errCheck(irandom_range((-2),2))),1,10));ds_map_set(gmlteam,"offense",clamp(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,
"offense"))),__yy_gml_errCheck(irandom_range((-2),2))),1,10));};};};}};gml_Script_s_refactor_team_strengths(__yy__v846,_inst);gml_Script_s_update_contracts(__yy__v846,_inst);if(yyGetBool(__yy__v846.gmlqb_mode)){gml_Script_s_renew_contracts_qb_mode(__yy__v846,_inst);};if((yyGetBool(!yyGetBool(argument0)))&&(yyGetBool(yyfgreater(__yy__v846.gmlyear,2)))){{gml_Script_s_decline_facilities(__yy__v846,_inst);if(yyfgreater(__yy__v846.gmlfans,80)){{__yy__v846.gmlfans=clamp(yyftime(__yy_gml_errCheck(__yy__v846.gmlfans),
0.75),10,100);gml_Script_s_add_news(__yy__v846,_inst,gml_Script_s_str(__yy__v846,_inst,yyfplus("msg_FansGood",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(2))))))));};}else {if(yyfgreater(__yy__v846.gmlfans,50)){{__yy__v846.gmlfans=clamp(yyftime(__yy_gml_errCheck(__yy__v846.gmlfans),0.85),10,100);gml_Script_s_add_news(__yy__v846,_inst,gml_Script_s_str(__yy__v846,_inst,yyfplus("msg_FansBad",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(2))))))));};};};if(yyfgreater(gml_Script_s_get_morale(__yy__v846,
_inst),65)){{gml_Script_s_adjust_team_morale(__yy__v846,_inst,(-5),(-15));gml_Script_s_add_news(__yy__v846,_inst,gml_Script_s_str(__yy__v846,_inst,"msg_MoraleDown"));};};};};gml_Script_s_clear_storelist(__yy__v846,_inst);gml_Script_s_create_storelist(__yy__v846,_inst,false);gml_Script_s_reset_staff_hire_list(__yy__v846,_inst,false);room_goto(14);__yy__v846.gmlstage=1;}}};}}function gml_Script_s_renew_contracts_qb_mode(_inst,_other){{{var __yy__v847=GetWithArray(97);for(var __yy__v848 in __yy__v847){if(!__yy__v847.hasOwnProperty(__yy__v848))continue;
var __yy__v849=__yy__v847[__yy__v848];{if(yyGetBool(ds_list_size(__yy__v849.gmlfreeagentlist))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v849.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v849.gmlfreeagentlist,gmli);if(!yyGetBool(irandom(2))){{gml_Script_s_do_contract_news(__yy__v849,_inst,gml_Script_s_str(__yy__v849,_inst,yyfplus("news_QB_contract_playerleaves",__yy_gml_errCheck(choose("1",
"2")))),gmlpmap);};}else {{gml_Script_s_do_contract_news(__yy__v849,_inst,gml_Script_s_str(__yy__v849,_inst,"news_QB_contract_playersigns"),gmlpmap);ds_list_add(__yy__v849.gmlroster,gmlpmap);ds_list_delete(__yy__v849.gmlfreeagentlist,ds_list_find_index(__yy__v849.gmlfreeagentlist,gmlpmap));};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v849.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v849.gmlfreeagentlist,
gmli));ds_list_set(__yy__v849.gmlfreeagentlist,gmli,(-1));}};ds_list_clear(__yy__v849.gmlfreeagentlist);};};}}};}}function gml_GlobalScript_s_update_team_buttons(_inst,_other){(_inst.gmls_update_team_buttons=__yy_method(_inst,gml_Script_s_update_team_buttons));}function gml_Script_s_update_team_buttons(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("s_update_team_buttons:",__yy_gml_errCheck(string(_inst.gmlconference))));var gmlteams=ds_list_create();var gmlt=0;for(;yyfless(gmlt,ds_list_size(yyInst(_inst,
_other,97).gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmltmap=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlt);if(yyfequal(ds_map_find_value(gmltmap,"conference"),_inst.gmlconference)){ds_list_add(gmlteams,gmltmap);};}};gmlteams=gml_Script_s_sort_teams(_inst,_other,gmlteams,1,true);var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){
{var gmlteam=ds_list_find_value(gmlteams,gmlb);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmltext=ds_map_find_value(gmlteam,"name");yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmluid=real(ds_map_find_value(gmlteam,"uid"));if(yyGetBool(global.gmlexhibition)){{yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmltext=string_hash_to_newline(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"name")),
"# "));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmloffense=real(ds_map_find_value(gmlteam,"offense"));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmldefense=real(ds_map_find_value(gmlteam,"defense"));};};}};ds_list_destroy(gmlteams);gmlteams=(-1);var ___sw538___=_inst.gmlconference;var ___swc539___=-1;if(yyCompareVal(___sw538___,0,g_GMLMathEpsilon,false)==0){___swc539___=0;}else if(yyCompareVal(___sw538___,1,g_GMLMathEpsilon,
false)==0){___swc539___=1;}switch(___swc539___){case 0:{yyInst(_inst,_other,100043).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100042).gmlcolour=global.gmlc_background;break;}case 1:{yyInst(_inst,_other,100043).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100042).gmlcolour=global.gmlc_primary;break;}};yyInst(_inst,_other,100043).gmltext=yyInst(_inst,_other,97).gmlname_conf1;yyInst(_inst,_other,100042).gmltext=yyInst(_inst,_other,97).gmlname_conf2;}}function gml_GlobalScript_s_update_job_offer_buttons(_inst,
_other){(_inst.gmls_update_job_offer_buttons=__yy_method(_inst,gml_Script_s_update_job_offer_buttons));}function gml_Script_s_update_job_offer_buttons(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("s_update_job_offer_buttons: ",__yy_gml_errCheck(string(_inst.gmlconference))));var gmlteams=ds_list_create();ds_list_copy(gmlteams,yyInst(_inst,_other,97).gmlteamlist);gmlteams=gml_Script_s_sort_teams(_inst,_other,gmlteams,1,true);var gmlt=0;for(;yyfless(gmlt,ds_list_size(gmlteams));(g_yyPrePostObject__=gmlt,
gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmlteams,gmlt);if(yyfnotequal(ds_map_find_value(gmlteam,"conference"),_inst.gmlconference)){ds_list_delete(gmlteams,(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.subtract(1):--gmlt),g_yyPrePostObject__));};}};var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmlteams,
gmlb);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmltext=string_hash_to_newline(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"name")),"# "));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlactive=true;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmluid=real(ds_map_find_value(gmlteam,"uid"));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmloffense=real(ds_map_find_value(gmlteam,
"offense"));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmldefense=real(ds_map_find_value(gmlteam,"defense"));if(!yyGetBool(gml_Script_s_team_interested(_inst,_other,gmlteam))){yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlactive=false;};}};random_set_seed(g_pBuiltIn.get_current_time());ds_list_destroy(gmlteams);gmlteams=(-1);var ___sw542___=_inst.gmlconference;var ___swc543___=-1;if(yyCompareVal(___sw542___,0,g_GMLMathEpsilon,
false)==0){___swc543___=0;}else if(yyCompareVal(___sw542___,1,g_GMLMathEpsilon,false)==0){___swc543___=1;}switch(___swc543___){case 0:{yyInst(_inst,_other,100043).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100042).gmlcolour=global.gmlc_background;break;}case 1:{yyInst(_inst,_other,100043).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100042).gmlcolour=global.gmlc_primary;break;}};}}function gml_GlobalScript_s_update_options(_inst,_other){(_inst.gmls_update_options=__yy_method(_inst,gml_Script_s_update_options));
}function gml_Script_s_update_options(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_options");if(yyGetBool(global.gmlconsole_build)){{yyInst(_inst,_other,100280).visible=false;};}else {if(yyGetBool(global.gmlbrowser)){{yyInst(_inst,_other,100282).gmlimage=136;yyInst(_inst,_other,100293).visible=false;yyInst(_inst,_other,100280).visible=false;yyInst(_inst,_other,100302).visible=false;};}else {{yyInst(_inst,_other,100293).gmlcolour=4235519;yyInst(_inst,_other,100286).gmlcolour=4235519;yyInst(_inst,
_other,100307).gmlcolour=4235519;yyInst(_inst,_other,100296).gmlcolour=4235519;};};};yyInst(_inst,_other,100284).gmlcolour=global.gmlc_background;var ___sw568___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir");var ___swc569___=-1;if(yyCompareVal(___sw568___,(-1),g_GMLMathEpsilon,false)==0){___swc569___=0;}else if(yyCompareVal(___sw568___,0,g_GMLMathEpsilon,false)==0){___swc569___=1;}else if(yyCompareVal(___sw568___,1,g_GMLMathEpsilon,false)==0){___swc569___=2;}switch(___swc569___){
case 0:{yyInst(_inst,_other,100284).gmltext=gml_Script_s_str(_inst,_other,"ui_driveLeft");break;}case 1:{yyInst(_inst,_other,100284).gmltext=gml_Script_s_str(_inst,_other,"ui_driveBoth");break;}case 2:{yyInst(_inst,_other,100284).gmltext=gml_Script_s_str(_inst,_other,"ui_driveRight");break;}};var ___sw570___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_scanlines");var ___swc571___=-1;if(yyCompareVal(___sw570___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw570___,"true",g_GMLMathEpsilon,
false)==0){___swc571___=0;}else if(yyCompareVal(___sw570___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw570___,"false",g_GMLMathEpsilon,false)==0){___swc571___=1;}switch(___swc571___){case 0:{yyInst(_inst,_other,100269).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,100269).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}default :{gml_Script_slog(_inst,_other,yyfplus("op_scanlines=",__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,
"op_scanlines"))));}};var ___sw572___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_weather");var ___swc573___=-1;if(yyCompareVal(___sw572___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw572___,"true",g_GMLMathEpsilon,false)==0){___swc573___=0;}else if(yyCompareVal(___sw572___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw572___,"false",g_GMLMathEpsilon,false)==0){___swc573___=1;}switch(___swc573___){case 0:{yyInst(_inst,_other,100286).gmltext=gml_Script_s_str(_inst,_other,
"btn_WeatherOn");break;}case 1:{yyInst(_inst,_other,100286).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherOff");break;}};var ___sw574___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx");var ___swc575___=-1;if(yyCompareVal(___sw574___,0,g_GMLMathEpsilon,false)==0){___swc575___=0;}else if(yyCompareVal(___sw574___,1,g_GMLMathEpsilon,false)==0){___swc575___=1;}else if(yyCompareVal(___sw574___,2,g_GMLMathEpsilon,false)==0){___swc575___=2;}switch(___swc575___){case 0:{yyInst(_inst,
_other,100288).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,100288).gmltext=gml_Script_s_str(_inst,_other,"ui_SoundFX");break;}case 2:{yyInst(_inst,_other,100288).gmltext=string_hash_to_newline(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_SoundFX")),"#& "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Music"))));break;}};var ___sw576___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_zoom");var ___swc577___=-1;if(yyCompareVal(___sw576___,
true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw576___,"true",g_GMLMathEpsilon,false)==0){___swc577___=0;}else if(yyCompareVal(___sw576___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw576___,"false",g_GMLMathEpsilon,false)==0){___swc577___=1;}switch(___swc577___){case 0:{yyInst(_inst,_other,100289).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,100289).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}};var ___sw578___=yyInst(_inst,_other,97).gmlop_matchlength;
var ___swc579___=-1;if(yyCompareVal(___sw578___,(-1),g_GMLMathEpsilon,false)==0){___swc579___=0;}else if(yyCompareVal(___sw578___,0,g_GMLMathEpsilon,false)==0){___swc579___=1;}else if(yyCompareVal(___sw578___,1,g_GMLMathEpsilon,false)==0){___swc579___=2;}switch(___swc579___){case 0:{yyInst(_inst,_other,100292).gmltext=gml_Script_s_str(_inst,_other,"ui_min1");break;}case 1:{yyInst(_inst,_other,100292).gmltext=gml_Script_s_str(_inst,_other,"ui_min2");break;}case 2:{yyInst(_inst,_other,100292).gmltext=gml_Script_s_str(_inst,
_other,"ui_min3");break;}};var ___sw580___=yyInst(_inst,_other,97).gmlop_difficulty;var ___swc581___=-1;if(yyCompareVal(___sw580___,0,g_GMLMathEpsilon,false)==0){___swc581___=0;}else if(yyCompareVal(___sw580___,1,g_GMLMathEpsilon,false)==0){___swc581___=1;}else if(yyCompareVal(___sw580___,2,g_GMLMathEpsilon,false)==0){___swc581___=2;}else if(yyCompareVal(___sw580___,3,g_GMLMathEpsilon,false)==0){___swc581___=3;}else if(yyCompareVal(___sw580___,4,g_GMLMathEpsilon,false)==0){___swc581___=4;}switch(___swc581___){
case 0:{yyInst(_inst,_other,100294).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty0");break;}case 1:{yyInst(_inst,_other,100294).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty1");break;}case 2:{yyInst(_inst,_other,100294).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty2");break;}case 3:{yyInst(_inst,_other,100294).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty3");break;}case 4:{yyInst(_inst,_other,100294).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty4");break;}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,
_other))){{var ___sw582___=yyInst(_inst,_other,97).gmlrecruitment_credits_cap;var ___swc583___=-1;if(yyCompareVal(___sw582___,25,g_GMLMathEpsilon,false)==0){___swc583___=0;}else if(yyCompareVal(___sw582___,30,g_GMLMathEpsilon,false)==0){___swc583___=1;}switch(___swc583___){case 0:{yyInst(_inst,_other,100296).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster10");break;}case 1:{yyInst(_inst,_other,100296).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster12");break;}};};}else {{var ___sw584___=yyInst(_inst,
_other,97).gmlsalary_cap;var ___swc585___=-1;if(yyCompareVal(___sw584___,150,g_GMLMathEpsilon,false)==0){___swc585___=0;}else if(yyCompareVal(___sw584___,200,g_GMLMathEpsilon,false)==0){___swc585___=1;}switch(___swc585___){case 0:{yyInst(_inst,_other,100296).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster10");break;}case 1:{yyInst(_inst,_other,100296).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster12");break;}};};};var ___sw586___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_invert_throw");
var ___swc587___=-1;if(yyCompareVal(___sw586___,0,g_GMLMathEpsilon,false)==0){___swc587___=0;}else if(yyCompareVal(___sw586___,1,g_GMLMathEpsilon,false)==0){___swc587___=1;}else if(yyCompareVal(___sw586___,2,g_GMLMathEpsilon,false)==0){___swc587___=2;}else if(yyCompareVal(___sw586___,3,g_GMLMathEpsilon,false)==0){___swc587___=3;}switch(___swc587___){case 0:{yyInst(_inst,_other,100275).gmltext=gml_Script_s_str(_inst,_other,"ui_Normal");break;}case 1:{yyInst(_inst,_other,100275).gmltext=gml_Script_s_str(_inst,
_other,"ui_Inverted");break;}case 2:{yyInst(_inst,_other,100275).gmltext=gml_Script_s_str(_inst,_other,"ui_AnalogueL");break;}case 3:{yyInst(_inst,_other,100275).gmltext=gml_Script_s_str(_inst,_other,"ui_AnalogueR");break;}};var ___sw588___=yyInst(_inst,_other,97).gmlop_autorun;var ___swc589___=-1;if(yyCompareVal(___sw588___,0,g_GMLMathEpsilon,false)==0){___swc589___=0;}else if(yyCompareVal(___sw588___,1,g_GMLMathEpsilon,false)==0){___swc589___=1;}switch(___swc589___){case 0:{yyInst(_inst,_other,100278).gmltext=gml_Script_s_str(_inst,
_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,100278).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}};var ___sw590___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_kickoffs");var ___swc591___=-1;if(yyCompareVal(___sw590___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw590___,"false",g_GMLMathEpsilon,false)==0){___swc591___=0;}else if(yyCompareVal(___sw590___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw590___,"true",g_GMLMathEpsilon,false)==0){___swc591___=1;
}switch(___swc591___){case 0:{yyInst(_inst,_other,100307).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,100307).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}};yyInst(_inst,_other,100285).gmltext="v1.5.7.4";if(!yyGetBool(yyInst(_inst,_other,97).gmlfr_mode)){yyInst(_inst,_other,100285).gmltext=yyfplus(yyInst(_inst,_other,100285).gmltext,yyfplus(yyfplus("\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Version_Mode"))),__yy_gml_errCheck(gml_Script_s_co_real_version_text(_inst,
_other))));};gml_Script_s_update_music(_inst,_other);}}function gml_GlobalScript_s_get_attitude_icon(_inst,_other){(_inst.gmls_get_attitude_icon=__yy_method(_inst,gml_Script_s_get_attitude_icon));(_inst.gmls_attitude_reduce_step=__yy_method(_inst,gml_Script_s_attitude_reduce_step));}function gml_Script_s_get_attitude_icon(_inst,_other,argument0){{if(yyflessequal(argument0,15)){return 0;};if(yyflessequal(argument0,30)){return 1;};if(yyflessequal(argument0,45)){return 2;};if(yyflessequal(argument0,60)){
return 3;};if(yyflessequal(argument0,75)){return 4;};if(yyflessequal(argument0,90)){return 5;};return 6;}}function gml_Script_s_attitude_reduce_step(_inst,_other,argument0){{if(yyflessequal(argument0,15)){return 15;};if(yyflessequal(argument0,30)){return 15;};if(yyflessequal(argument0,45)){return 30;};if(yyflessequal(argument0,60)){return 45;};if(yyflessequal(argument0,75)){return 60;};if(yyflessequal(argument0,90)){return 75;};return 90;}}function gml_GlobalScript_s_get_credit(_inst,_other){(_inst.gmls_get_credit=__yy_method(_inst,
gml_Script_s_get_credit));}function gml_Script_s_get_credit(_inst,_other){{return yyInst(_inst,_other,97).gmlcoach_credit;}}function gml_GlobalScript_s_decline_facilities(_inst,_other){(_inst.gmls_decline_facilities=__yy_method(_inst,gml_Script_s_decline_facilities));}function gml_Script_s_decline_facilities(_inst,_other){{{var __yy__v850=GetWithArray(97);for(var __yy__v851 in __yy__v850){if(!__yy__v850.hasOwnProperty(__yy__v851))continue;var __yy__v852=__yy__v850[__yy__v851];{var ___sw594___=irandom(2);var ___swc595___=-1;
if(yyCompareVal(___sw594___,0,g_GMLMathEpsilon,false)==0){___swc595___=0;}else if(yyCompareVal(___sw594___,1,g_GMLMathEpsilon,false)==0){___swc595___=1;}else if(yyCompareVal(___sw594___,2,g_GMLMathEpsilon,false)==0){___swc595___=2;}switch(___swc595___){case 0:{if((yyGetBool(yyfequal(__yy__v852.gmlfacility_upgraded_stadium,0)))&&(yyGetBool(yyfgreater(__yy__v852.gmlfacility_stadium,1)))){{(g_yyPrePostObject__=__yy__v852.gmlfacility_stadium,__yy__v852.gmlfacility_stadium=(g_yyPrePostObject__ instanceof Long?__yy__v852.gmlfacility_stadium.subtract(1):--__yy__v852.gmlfacility_stadium),
g_yyPrePostObject__);gml_Script_s_add_news(__yy__v852,_inst,gml_Script_s_str(__yy__v852,_inst,"msg_FacilityDeclineStadium"));};};break;}case 1:{if((yyGetBool(yyfequal(__yy__v852.gmlfacility_upgraded_training,0)))&&(yyGetBool(yyfgreater(__yy__v852.gmlfacility_training,1)))){{(g_yyPrePostObject__=__yy__v852.gmlfacility_training,__yy__v852.gmlfacility_training=(g_yyPrePostObject__ instanceof Long?__yy__v852.gmlfacility_training.subtract(1):--__yy__v852.gmlfacility_training),g_yyPrePostObject__);gml_Script_s_add_news(__yy__v852,
_inst,gml_Script_s_str(__yy__v852,_inst,"msg_FacilityDeclineTraining"));};};}case 2:{if((yyGetBool(yyfequal(__yy__v852.gmlfacility_upgraded_rehab,0)))&&(yyGetBool(yyfgreater(__yy__v852.gmlfacility_rehab,1)))){{(g_yyPrePostObject__=__yy__v852.gmlfacility_rehab,__yy__v852.gmlfacility_rehab=(g_yyPrePostObject__ instanceof Long?__yy__v852.gmlfacility_rehab.subtract(1):--__yy__v852.gmlfacility_rehab),g_yyPrePostObject__);gml_Script_s_add_news(__yy__v852,_inst,gml_Script_s_str(__yy__v852,_inst,"msg_FacilityDeclineRehab"));
};};}};__yy__v852.gmlfacility_upgraded_stadium=0;__yy__v852.gmlfacility_upgraded_training=0;__yy__v852.gmlfacility_upgraded_rehab=0;}}};}}function gml_GlobalScript_s_do_result_news_qb(_inst,_other){(_inst.gmls_do_result_news_qb=__yy_method(_inst,gml_Script_s_do_result_news_qb));(_inst.gmls_choose_news=__yy_method(_inst,gml_Script_s_choose_news));}function gml_Script_s_do_result_news_qb(_inst,_other){{var gmlfix=gml_Script_s_get_human_fixture_previous(_inst,_other);if(yyGetBool(gmlfix)){{var gmlpmap=gml_Script_s_get_qb_pmap(_inst,
_other);var gmlnews="";if((yyGetBool(yyfequal(_inst.gmlyear,1)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"week"),1)))){{var ___sw598___=ds_map_find_value(gmlfix,"human_win");var ___swc599___=-1;if(yyCompareVal(___sw598___,"win",g_GMLMathEpsilon,false)==0){___swc599___=0;}else if(yyCompareVal(___sw598___,"loss",g_GMLMathEpsilon,false)==0){___swc599___=1;}else if(yyCompareVal(___sw598___,"tie",g_GMLMathEpsilon,false)==0){___swc599___=2;}switch(___swc599___){case 0:{gmlnews="news_qb_postgame1_win";
break;}case 1:{gmlnews="news_qb_postgame1_loss";break;}case 2:{gmlnews="news_qb_postgame1_tie";break;}};};}else {if(yyfequal(ds_map_find_value(gmlfix,"human_win"),"win")){{if(yyfgreater(gml_Script_s_get_match_rating(_inst,_other,gmlpmap),0)){gmlnews=(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))?gml_Script_s_choose_news(_inst,_other,"news_starman_vet"):gml_Script_s_choose_news(_inst,_other,"news_starman_vet"));};};};};if(yyfnotequal(gmlnews,"")){gml_Script_s_add_news(_inst,
_other,gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlnews),gmlpmap));};};};}}function gml_Script_s_choose_news(_inst,_other,argument0){{{var __yy__v853=GetWithArray(97);for(var __yy__v854 in __yy__v853){if(!__yy__v853.hasOwnProperty(__yy__v854))continue;var __yy__v855=__yy__v853[__yy__v854];{ds_list_shuffle(__yy__v855.gmlnews_tags);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v855.gmlnews_tags));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlstr=ds_list_find_value(__yy__v855.gmlnews_tags,gmli);if(yyGetBool(string_count(argument0,gmlstr))){{ds_list_delete(__yy__v855.gmlnews_tags,gmli);return gmlstr;};};}};gml_Script_slog(__yy__v855,_inst,"Repopulate dilemma_tags...");gml_Script_s_add_to_choose_dilemma_list(__yy__v855,_inst,__yy__v855.gmlnews_tags,argument0,gml_Script_s_select_lang_file(__yy__v855,_inst));gml_Script_s_add_to_choose_dilemma_list(__yy__v855,_inst,__yy__v855.gmlnews_tags,argument0,gml_Script_s_select_override_lang_file(__yy__v855,
_inst));return gml_Script_s_choose_news(__yy__v855,_inst,argument0);}}};}}function gml_GlobalScript_s_reset_player_meetings(_inst,_other){(_inst.gmls_reset_player_meetings=__yy_method(_inst,gml_Script_s_reset_player_meetings));}function gml_Script_s_reset_player_meetings(_inst,_other){{{var __yy__v856=GetWithArray(97);for(var __yy__v857 in __yy__v856){if(!__yy__v856.hasOwnProperty(__yy__v857))continue;var __yy__v858=__yy__v856[__yy__v857];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v858.gmlroster));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v858.gmlroster,gmli);ds_map_set(gmlpmap,"meetingdone",0);}};}}};}}function gml_GlobalScript_s_has_xp_gain(_inst,_other){(_inst.gmls_has_xp_gain=__yy_method(_inst,gml_Script_s_has_xp_gain));}function gml_Script_s_has_xp_gain(_inst,_other,argument0){{if(yyfless(round(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"xp")),__yy_gml_errCheck(ds_map_find_value(argument0,
"xp_gain")))),yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"xp_level")),100))){return false;};return true;}}function gml_GlobalScript_s_is_bye_week(_inst,_other){(_inst.gmls_is_bye_week=__yy_method(_inst,gml_Script_s_is_bye_week));(_inst.gmls_get_bye_week=__yy_method(_inst,gml_Script_s_get_bye_week));}function gml_Script_s_is_bye_week(_inst,_other,argument0){{{var __yy__v859=GetWithArray(97);for(var __yy__v860 in __yy__v859){if(!__yy__v859.hasOwnProperty(__yy__v860))continue;var __yy__v861=__yy__v859[__yy__v860];
{var gmlfix=gml_Script_s_get_human_fixture_by_week(__yy__v861,_inst,argument0);if((yyGetBool(!yyGetBool(gmlfix)))&&(yyGetBool(yyfless(argument0,yyInst(_inst,_other,97).gmlfirst_week_playoffs)))){return true;};}}};return false;}}function gml_Script_s_get_bye_week(_inst,_other){{{var __yy__v862=GetWithArray(97);for(var __yy__v863 in __yy__v862){if(!__yy__v862.hasOwnProperty(__yy__v863))continue;var __yy__v864=__yy__v862[__yy__v863];{var gmlwk=1;var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v864.gmlfixturelist));
(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v864.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(!yyGetBool(is_undefined(ds_map_find_value(gmlfix,"week")))))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlfix,"week")),gmlwk)))){(g_yyPrePostObject__=gmlwk,gmlwk=(g_yyPrePostObject__ instanceof Long?gmlwk.add(1):++gmlwk),g_yyPrePostObject__);}else {return gmlwk;};if(yyfgreater(gmlwk,yyInst(_inst,
_other,97).gmlfirst_week_playoffs)){return yyInst(_inst,_other,97).gmlfirst_week_playoffs;};}};}}};}}function gml_GlobalScript_s_do_bye_week(_inst,_other){(_inst.gmls_do_bye_week=__yy_method(_inst,gml_Script_s_do_bye_week));}function gml_Script_s_do_bye_week(_inst,_other){{{var __yy__v865=GetWithArray(97);for(var __yy__v866 in __yy__v865){if(!__yy__v865.hasOwnProperty(__yy__v866))continue;var __yy__v867=__yy__v865[__yy__v866];{gml_Script_s_do_schedule(__yy__v867,_inst,false);gml_Script_s_rehab_effect(__yy__v867,
_inst,yyftime(__yy_gml_errCheck(__yy__v867.gmlfacility_rehab),10),false);gml_Script_s_injury_effect_on_attitude(__yy__v867,_inst);gml_Script_s_toxic_effect_on_morale(__yy__v867,_inst);gml_Script_s_add_xp_gain_all(__yy__v867,_inst,10,false);var gmlmsg="";if(yyGetBool(__yy__v867.gmlqb_mode)){gmlmsg=gml_Script_s_choose_dilemma(__yy__v867,_inst,"dilemma_ByeWeek_QB");}else {gmlmsg=gml_Script_s_choose_dilemma(__yy__v867,_inst,"dilemma_ByeWeek");};ds_map_clear(__yy__v867.gmlmap_dilemma);__yy__v867.gmlmap_dilemma=gml_Script_s_parse_dilemma(__yy__v867,
_inst,gmlmsg,(-4),"ui_ByeWeek");gml_Script_s_create_dilemma(__yy__v867,_inst,__yy__v867.gmlmap_dilemma);__yy__v867.gmlstage=5;}}};}}function gml_GlobalScript_s_do_postmatch_effects(_inst,_other){(_inst.gmls_do_postmatch_effects=__yy_method(_inst,gml_Script_s_do_postmatch_effects));}function gml_Script_s_do_postmatch_effects(_inst,_other){{{var __yy__v868=GetWithArray(97);for(var __yy__v869 in __yy__v868){if(!__yy__v868.hasOwnProperty(__yy__v869))continue;var __yy__v870=__yy__v868[__yy__v869];{gml_Script_s_rehab_effect(__yy__v870,
_inst,yyfplus(50,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v870.gmlfacility_rehab),1.5))),true);gml_Script_s_injury_effect_on_attitude(__yy__v870,_inst);var gmlfix=gml_Script_s_get_human_fixture_previous(__yy__v870,_inst);if((yyGetBool(gmlfix))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfix,"human_win"),"win")))){gml_Script_s_toxic_effect_on_morale(__yy__v870,_inst);};}}};}}function gml_GlobalScript_s_do_postmatch_fans(_inst,_other){(_inst.gmls_do_postmatch_fans=__yy_method(_inst,gml_Script_s_do_postmatch_fans));
(_inst.gmls_get_postmatch_fans_qb=__yy_method(_inst,gml_Script_s_get_postmatch_fans_qb));}function gml_Script_s_do_postmatch_fans(_inst,_other){{{var __yy__v871=GetWithArray(97);for(var __yy__v872 in __yy__v871){if(!__yy__v871.hasOwnProperty(__yy__v872))continue;var __yy__v873=__yy__v871[__yy__v872];{var gmlfixture=gml_Script_s_get_human_fixture_by_week(__yy__v873,_inst,__yy__v873.gmlweek);var gmlfans_inc=0;if(yyGetBool(gmlfixture)){{gmlfans_inc=yyfminus(__yy_gml_errCheck(__yy__v873.gmlfacility_stadium),
6);if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){{gmlfans_inc=yyfminus(gmlfans_inc,10);};}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){{gmlfans_inc=yyfplus(gmlfans_inc,8);};}else {gmlfans_inc=yyfminus(gmlfans_inc,3);};};gmlfans_inc=yyfplus(gmlfans_inc,gml_Script_s_count_trait_fanfavorite(__yy__v873,_inst));if(yyfless(__yy__v873.gmlsuppress_difficulty,5)){(g_yyPrePostObject__=gmlfans_inc,gmlfans_inc=(g_yyPrePostObject__ instanceof Long?gmlfans_inc.subtract(1):--gmlfans_inc),
g_yyPrePostObject__);};if(yyfless(__yy__v873.gmlsuppress_difficulty,1)){(g_yyPrePostObject__=gmlfans_inc,gmlfans_inc=(g_yyPrePostObject__ instanceof Long?gmlfans_inc.subtract(1):--gmlfans_inc),g_yyPrePostObject__);};};};gmlfans_inc=clamp(gmlfans_inc,(-15),15);__yy__v873.gmlfans=clamp(yyfplus(__yy_gml_errCheck(__yy__v873.gmlfans),__yy_gml_errCheck(gmlfans_inc)),1,100);__yy__v873.gmlfans_done_update=true;}}};}}function gml_Script_s_get_postmatch_fans_qb(_inst,_other){{{var __yy__v874=GetWithArray(97);
for(var __yy__v875 in __yy__v874){if(!__yy__v874.hasOwnProperty(__yy__v875))continue;var __yy__v876=__yy__v874[__yy__v875];{var gmlfixture=gml_Script_s_get_human_fixture_by_week(__yy__v876,_inst,__yy__v876.gmlweek);if(yyGetBool(gmlfixture)){{if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){return(-5);}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){return 3;}else {return(-2);};};};};}}};return 0;}}function gml_GlobalScript_s_check_intro(_inst,_other){(_inst.gmls_check_intro=__yy_method(_inst,
gml_Script_s_check_intro));}function gml_Script_s_check_intro(_inst,_other){{var gmlbg_alpha=0.85;{var __yy__v877=GetWithArray(97);for(var __yy__v878 in __yy__v877){if(!__yy__v877.hasOwnProperty(__yy__v878))continue;var __yy__v879=__yy__v877[__yy__v878];{gml_Script_slog(__yy__v879,_inst,yyfplus("s_check_intro: ",__yy_gml_errCheck(string(__yy__v879.gmlintro))));var ___sw602___=__yy__v879.gmlintro;var ___swc603___=-1;if(yyCompareVal(___sw602___,1,g_GMLMathEpsilon,false)==0){___swc603___=0;}else if(yyCompareVal(___sw602___,
2,g_GMLMathEpsilon,false)==0){___swc603___=1;}else if(yyCompareVal(___sw602___,3,g_GMLMathEpsilon,false)==0){___swc603___=2;}else if(yyCompareVal(___sw602___,4,g_GMLMathEpsilon,false)==0){___swc603___=3;}else if(yyCompareVal(___sw602___,5,g_GMLMathEpsilon,false)==0){___swc603___=4;}else if(yyCompareVal(___sw602___,6,g_GMLMathEpsilon,false)==0){___swc603___=5;}else if(yyCompareVal(___sw602___,7,g_GMLMathEpsilon,false)==0){___swc603___=6;}else if(yyCompareVal(___sw602___,8,g_GMLMathEpsilon,false)==0){___swc603___=7;
}switch(___swc603___){case 0:{if(yyfequal(g_pBuiltIn.get_current_room(),14)){{var gmlmsg=gml_Script_s_parse_intro(__yy__v879,_inst,"msg_Intro_1");gml_Script_s_create_message(__yy__v879,_inst,"",gmlmsg,gml_Script_s_str(__yy__v879,_inst,"ui_SkipTutorial"),gml_Script_s_str(__yy__v879,_inst,"ui_Ok"),kgml_Script_btn_response_skip_tutorial,kgml_Script_s_msg_clear,global.gmlc_background,gmlbg_alpha);(g_yyPrePostObject__=__yy__v879.gmlintro,__yy__v879.gmlintro=(g_yyPrePostObject__ instanceof Long?__yy__v879.gmlintro.add(1):++__yy__v879.gmlintro),
g_yyPrePostObject__);};};break;}case 1:{if(yyfequal(g_pBuiltIn.get_current_room(),9)){{var gmlmsg=gml_Script_s_parse_intro(__yy__v879,_inst,"msg_Intro_2");gml_Script_s_create_message(__yy__v879,_inst,"",gmlmsg,"",gml_Script_s_str(__yy__v879,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,gmlbg_alpha);(g_yyPrePostObject__=__yy__v879.gmlintro,__yy__v879.gmlintro=(g_yyPrePostObject__ instanceof Long?__yy__v879.gmlintro.add(1):++__yy__v879.gmlintro),g_yyPrePostObject__);yyInst(_inst,_other,
100153).gmlflash=true;};};break;}case 2:{if(yyfequal(g_pBuiltIn.get_current_room(),9)){yyInst(_inst,_other,100153).gmlflash=true;};if(yyfequal(g_pBuiltIn.get_current_room(),14)){{var gmlmsg=gml_Script_s_parse_intro(__yy__v879,_inst,"msg_Intro_3");gml_Script_s_create_message(__yy__v879,_inst,"",gmlmsg,"",gml_Script_s_str(__yy__v879,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,gmlbg_alpha);(g_yyPrePostObject__=__yy__v879.gmlintro,__yy__v879.gmlintro=(g_yyPrePostObject__ instanceof Long?__yy__v879.gmlintro.add(1):++__yy__v879.gmlintro),
g_yyPrePostObject__);};};break;}case 3:{if(yyfequal(g_pBuiltIn.get_current_room(),25)){{var gmlmsg=gml_Script_s_parse_intro(__yy__v879,_inst,"msg_Intro_4");gml_Script_s_create_message(__yy__v879,_inst,"",gmlmsg,"",gml_Script_s_str(__yy__v879,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,gmlbg_alpha);(g_yyPrePostObject__=__yy__v879.gmlintro,__yy__v879.gmlintro=(g_yyPrePostObject__ instanceof Long?__yy__v879.gmlintro.add(1):++__yy__v879.gmlintro),g_yyPrePostObject__);};};break;}case 4:{
if(yyfequal(g_pBuiltIn.get_current_room(),22)){{var gmlmsg=gml_Script_s_parse_intro(__yy__v879,_inst,"msg_Intro_5");gml_Script_s_create_message(__yy__v879,_inst,"",gmlmsg,"",gml_Script_s_str(__yy__v879,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,gmlbg_alpha);(g_yyPrePostObject__=__yy__v879.gmlintro,__yy__v879.gmlintro=(g_yyPrePostObject__ instanceof Long?__yy__v879.gmlintro.add(1):++__yy__v879.gmlintro),g_yyPrePostObject__);yyInst(_inst,_other,100418).gmlflash=true;};};break;}case 5:{
if(yyfequal(g_pBuiltIn.get_current_room(),14)){{var gmlmsg=gml_Script_s_parse_intro(__yy__v879,_inst,"msg_Intro_6");gml_Script_s_create_message(__yy__v879,_inst,"",gmlmsg,"",gml_Script_s_str(__yy__v879,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,gmlbg_alpha);(g_yyPrePostObject__=__yy__v879.gmlintro,__yy__v879.gmlintro=(g_yyPrePostObject__ instanceof Long?__yy__v879.gmlintro.add(1):++__yy__v879.gmlintro),g_yyPrePostObject__);};};break;}case 6:{if(yyfequal(g_pBuiltIn.get_current_room(),
21)){{gml_Script_btn_click_Passing(__yy__v879,_inst);(g_yyPrePostObject__=__yy__v879.gmlintro,__yy__v879.gmlintro=(g_yyPrePostObject__ instanceof Long?__yy__v879.gmlintro.add(1):++__yy__v879.gmlintro),g_yyPrePostObject__);};};break;}case 7:{if(yyfequal(g_pBuiltIn.get_current_room(),14)){{var gmlmsg=gml_Script_s_parse_intro(__yy__v879,_inst,"msg_Intro_8");gml_Script_s_create_message(__yy__v879,_inst,"",gmlmsg,"",gml_Script_s_str(__yy__v879,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,
gmlbg_alpha);__yy__v879.gmlintro=0;__yy__v879.gmlstage=1;};};break;}};}}};}}function gml_GlobalScript_s_do_result_news(_inst,_other){(_inst.gmls_do_result_news=__yy_method(_inst,gml_Script_s_do_result_news));}function gml_Script_s_do_result_news(_inst,_other){{gml_Script_slog(_inst,_other,"s_do_result_news");gml_Script_slog(_inst,_other,yyfplus("Year=",__yy_gml_errCheck(string(_inst.gmlyear))));gml_Script_slog(_inst,_other,yyfplus("Week=",__yy_gml_errCheck(string(_inst.gmlweek))));{var __yy__v880=GetWithArray(97);
for(var __yy__v881 in __yy__v880){if(!__yy__v880.hasOwnProperty(__yy__v881))continue;var __yy__v882=__yy__v880[__yy__v881];{if(yyGetBool(__yy__v882.gmlqb_mode)){{gml_Script_s_do_result_news_qb(__yy__v882,_inst);return;};};var gmlfix=gml_Script_s_get_human_fixture_previous(__yy__v882,_inst);if(yyGetBool(gmlfix)){{var gmlnews="";if((yyGetBool(yyfequal(__yy__v882.gmlyear,1)))&&(yyGetBool(yyfequal(__yy__v882.gmlweek,__yy__v882.gmlfirst_week_playoffs)))){{var ___sw606___=ds_map_find_value(gmlfix,"human_win");
var ___swc607___=-1;if(yyCompareVal(___sw606___,"win",g_GMLMathEpsilon,false)==0){___swc607___=0;}else if(yyCompareVal(___sw606___,"loss",g_GMLMathEpsilon,false)==0){___swc607___=1;}else if(yyCompareVal(___sw606___,"tie",g_GMLMathEpsilon,false)==0){___swc607___=2;}switch(___swc607___){case 0:{gmlnews="news_firstmatchWin";break;}case 1:{gmlnews="news_firstmatchLoss";break;}case 2:{gmlnews="news_firstmatchTie";break;}};};};var gmloppteamid=ds_map_find_value(gmlfix,"away_team");if(yyfequal(gmloppteamid,__yy__v882.gmlmyteam_id)){
gmloppteamid=ds_map_find_value(gmlfix,"home_team");};var gmloppteam=gml_Script_s_get_team_by_id(__yy__v882,_inst,gmloppteamid);if(yyfnotequal(gmlnews,"")){{gml_Script_s_add_news(__yy__v882,_inst,gml_Script_s_parse_news(__yy__v882,_inst,gmlnews,__yy__v882.gmlmyteam,gmloppteam,0,0));};};};};}}};}}function gml_GlobalScript_s_count_joboffers(_inst,_other){(_inst.gmls_count_joboffers=__yy_method(_inst,gml_Script_s_count_joboffers));}function gml_Script_s_count_joboffers(_inst,_other){{gml_Script_slog(_inst,
_other,"Count job offers");{var __yy__v883=GetWithArray(97);for(var __yy__v884 in __yy__v883){if(!__yy__v883.hasOwnProperty(__yy__v884))continue;var __yy__v885=__yy__v883[__yy__v884];{if(yyfequal(__yy__v885.gmlyear,1)){return 0;};var gmlcount=0;var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v885.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{if(yyGetBool(gml_Script_s_team_interested(__yy__v885,_inst,ds_list_find_value(__yy__v885.gmlteamlist,
gmlt)))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};random_set_seed(g_pBuiltIn.get_current_time());return gmlcount;}}};}}function gml_GlobalScript_s_refresh_save_slots(_inst,_other){(_inst.gmls_refresh_save_slots=__yy_method(_inst,gml_Script_s_refresh_save_slots));}function gml_Script_s_refresh_save_slots(_inst,_other){{if(yyGetBool(file_exists(global.gmlg_savename1))){yyInst(_inst,_other,100012).gmltext=gml_Script_s_get_string_save_details(_inst,
_other,1,false);}else {{yyInst(_inst,_other,100006).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100009).gmlactive=false;};};if(yyGetBool(file_exists(global.gmlg_savename2))){yyInst(_inst,_other,100013).gmltext=gml_Script_s_get_string_save_details(_inst,_other,2,false);}else {{yyInst(_inst,_other,100007).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100010).gmlactive=false;};};if(yyGetBool(file_exists(global.gmlg_savename3))){yyInst(_inst,_other,
100014).gmltext=gml_Script_s_get_string_save_details(_inst,_other,3,false);}else {{yyInst(_inst,_other,100008).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100011).gmlactive=false;};};if(yyGetBool(file_exists(global.gmlg_savename4))){yyInst(_inst,_other,100017).gmltext=gml_Script_s_get_string_save_details(_inst,_other,4,false);}else {{yyInst(_inst,_other,100018).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100016).gmlactive=false;};};if(yyGetBool(file_exists(global.gmlg_savename5))){
yyInst(_inst,_other,100020).gmltext=gml_Script_s_get_string_save_details(_inst,_other,5,false);}else {{yyInst(_inst,_other,100021).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100019).gmlactive=false;};};}}function gml_GlobalScript_s_show_backups(_inst,_other){(_inst.gmls_show_backups=__yy_method(_inst,gml_Script_s_show_backups));(_inst.gmls_restore_backup1=__yy_method(_inst,gml_Script_s_restore_backup1));(_inst.gmls_restore_backup2=__yy_method(_inst,gml_Script_s_restore_backup2));
(_inst.gmls_restore_backup3=__yy_method(_inst,gml_Script_s_restore_backup3));(_inst.gmls_restore_backup4=__yy_method(_inst,gml_Script_s_restore_backup4));(_inst.gmls_restore_backup5=__yy_method(_inst,gml_Script_s_restore_backup5));}function gml_Script_s_show_backups(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v886=GetWithArray(97);for(var __yy__v887 in __yy__v886){if(!__yy__v886.hasOwnProperty(__yy__v887))continue;var __yy__v888=__yy__v886[__yy__v887];{var gmlbg=instance_create_layer(0,
0,"PopUps",78);yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",70);yyInst(_inst,_other,gmltitle).gmltext=gml_Script_s_str(__yy__v888,_inst,"ui_RestoreSave");yyInst(_inst,_other,gmltitle).gmlshow_stars=true;yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlbtn_store_exit=instance_create_layer(8,
232,"PopUps",36);yyInst(_inst,_other,gmlbtn_store_exit).gmlimage=128;yyInst(_inst,_other,gmlbtn_store_exit).gmlonClickAction=kgml_Script_s_msg_clear;yyInst(_inst,_other,gmlbtn_store_exit).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlby=52;var gmlbh=36;var gmli=1;for(;yyfless(gmli,6);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{__yy__v888.gmlvbox_iap=__yy_gml_array_check(__yy__v888.gmlvbox_iap,925134765);
__yy__v888.gmlvbox_iap[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(80,gmlby,"PopUps",66);yyInst(_inst,_other,__yy__v888.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlvbox_iap)]).image_xscale=1.3;yyInst(_inst,_other,__yy__v888.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlvbox_iap)]).image_yscale=0.25;yyInst(_inst,_other,__yy__v888.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlvbox_iap)]).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),
1);yyInst(_inst,_other,__yy__v888.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlvbox_iap)]).gmltitle="";__yy__v888.gmlbtn_iap=__yy_gml_array_check(__yy__v888.gmlbtn_iap,701596542);__yy__v888.gmlbtn_iap[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(294,gmlby,"PopUps",34);yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlbtn_iap)]).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,
__yy__v888.gmlbtn_iap)]).gmltext="Restore";yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlbtn_iap)]).gmlactive=false;var gmlbackup_name="backup_";var ___sw610___=gmli;var ___swc611___=-1;if(yyCompareVal(___sw610___,1,g_GMLMathEpsilon,false)==0){___swc611___=0;}else if(yyCompareVal(___sw610___,2,g_GMLMathEpsilon,false)==0){___swc611___=1;}else if(yyCompareVal(___sw610___,3,g_GMLMathEpsilon,false)==0){___swc611___=2;}else if(yyCompareVal(___sw610___,4,g_GMLMathEpsilon,
false)==0){___swc611___=3;}else if(yyCompareVal(___sw610___,5,g_GMLMathEpsilon,false)==0){___swc611___=4;}switch(___swc611___){case 0:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename1);yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup1;break;}case 1:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename2);yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup2;
break;}case 2:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename3);yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup3;break;}case 3:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename4);yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup4;break;}case 4:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename5);
yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup5;break;}};if(yyGetBool(file_exists(gmlbackup_name))){{yyInst(_inst,_other,__yy__v888.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlvbox_iap)]).gmltext=gml_Script_s_get_string_save_details(__yy__v888,_inst,gmli,true);yyInst(_inst,_other,__yy__v888.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v888.gmlbtn_iap)]).gmlactive=true;};};gmlby=yyfplus(gmlby,
gmlbh);}};}}};}}function gml_Script_s_restore_backup1(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename1))))){{if(yyGetBool(file_exists(global.gmlg_savename1))){file_delete(global.gmlg_savename1);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename1)),global.gmlg_savename1);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_LoadSlot1(_inst,_other);yyInst(_inst,_other,97).gmlgamestarts=yyfplus(yyInst(_inst,_other,97).gmlgamestarts,
100);};};}}function gml_Script_s_restore_backup2(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename2))))){{if(yyGetBool(file_exists(global.gmlg_savename2))){file_delete(global.gmlg_savename2);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename2)),global.gmlg_savename2);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_LoadSlot2(_inst,_other);yyInst(_inst,_other,97).gmlgamestarts=yyfplus(yyInst(_inst,_other,97).gmlgamestarts,100);
};};}}function gml_Script_s_restore_backup3(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename3))))){{if(yyGetBool(file_exists(global.gmlg_savename3))){file_delete(global.gmlg_savename3);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename3)),global.gmlg_savename3);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_LoadSlot3(_inst,_other);yyInst(_inst,_other,97).gmlgamestarts=yyfplus(yyInst(_inst,_other,97).gmlgamestarts,100);};
};}}function gml_Script_s_restore_backup4(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename4))))){{if(yyGetBool(file_exists(global.gmlg_savename4))){file_delete(global.gmlg_savename4);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename4)),global.gmlg_savename4);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_LoadSlot4(_inst,_other);yyInst(_inst,_other,97).gmlgamestarts=yyfplus(yyInst(_inst,_other,97).gmlgamestarts,100);};};
}}function gml_Script_s_restore_backup5(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename5))))){{if(yyGetBool(file_exists(global.gmlg_savename5))){file_delete(global.gmlg_savename5);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename5)),global.gmlg_savename5);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_LoadSlot5(_inst,_other);yyInst(_inst,_other,97).gmlgamestarts=yyfplus(yyInst(_inst,_other,97).gmlgamestarts,100);};};}}
function gml_GlobalScript_s_team_interested(_inst,_other){(_inst.gmls_team_interested=__yy_method(_inst,gml_Script_s_team_interested));(_inst.gmls_qb_mode_team_interested=__yy_method(_inst,gml_Script_s_qb_mode_team_interested));}function gml_Script_s_team_interested(_inst,_other,argument0){{if(yyGetBool(global.gmldebug)){return true;};{var __yy__v889=GetWithArray(97);for(var __yy__v890 in __yy__v889){if(!__yy__v889.hasOwnProperty(__yy__v890))continue;var __yy__v891=__yy__v889[__yy__v890];{if(yyGetBool(__yy__v891.gmlqb_mode)){
return gml_Script_s_qb_mode_team_interested(__yy__v891,_inst,argument0);};var gmlteamrating=yyfplus(__yy_gml_errCheck(real(ds_map_find_value(argument0,"offense"))),__yy_gml_errCheck(real(ds_map_find_value(argument0,"defense"))));gml_Script_slog(__yy__v891,_inst,yyfplus("s_team_interested: ",__yy_gml_errCheck(ds_map_find_value(argument0,"name"))));gml_Script_slog(__yy__v891,_inst,yyfplus("coach_rating: ",__yy_gml_errCheck(string(__yy__v891.gmlcoach_rating))));gml_Script_slog(__yy__v891,_inst,yyfplus("team_rating: ",
__yy_gml_errCheck(string(gmlteamrating))));if(yyfequal(real(ds_map_find_value(argument0,"uid")),__yy__v891.gmlmyteam_id)){return false;};if(yyfless(__yy__v891.gmlcoach_rating,gmlteamrating)){return false;};if((yyGetBool(yyfless(__yy__v891.gmlyear,3)))&&(yyGetBool(yyfequal(real(ds_map_find_value(argument0,"uid")),__yy__v891.gmlfavourite_team_id)))){return false;};random_set_seed(yyfplus(yyfplus(__yy_gml_errCheck(__yy__v891.gmlyear),__yy_gml_errCheck(__yy__v891.gmlcoach_rating)),__yy_gml_errCheck(real(ds_map_find_value(argument0,
"uid")))));if(!yyGetBool(irandom(3))){return false;};}}};return true;}}function gml_Script_s_qb_mode_team_interested(_inst,_other,argument0){{var gmlteamrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(argument0,"offense"))),__yy_gml_errCheck(real(ds_map_find_value(argument0,"defense"))))),2);var gmlmyrating=10;{var __yy__v892=GetWithArray(97);for(var __yy__v893 in __yy__v892){if(!__yy__v892.hasOwnProperty(__yy__v893))continue;var __yy__v894=__yy__v892[__yy__v893];{if(yyfequal(real(ds_map_find_value(argument0,
"uid")),__yy__v894.gmlmyteam_id)){return false;};if(yyfless(gmlmyrating,gmlteamrating)){return false;};if((yyGetBool(yyfless(__yy__v894.gmlyear,3)))&&(yyGetBool(yyfequal(real(ds_map_find_value(argument0,"uid")),__yy__v894.gmlfavourite_team_id)))){return false;};if(yyfgreater(ds_list_find_index(__yy__v894.gmllist_teams_rejected,real(ds_map_find_value(argument0,"uid"))),(-1))){return false;};random_set_seed(yyfplus(yyfplus(__yy_gml_errCheck(__yy__v894.gmlyear),__yy_gml_errCheck(gmlmyrating)),__yy_gml_errCheck(real(ds_map_find_value(argument0,
"uid")))));if(!yyGetBool(irandom(3))){return false;};}}};return true;}}function gml_GlobalScript_s_update_history(_inst,_other){(_inst.gmls_update_history=__yy_method(_inst,gml_Script_s_update_history));}function gml_Script_s_update_history(_inst,_other,argument0){{{var __yy__v895=GetWithArray(97);for(var __yy__v896 in __yy__v895){if(!__yy__v895.hasOwnProperty(__yy__v896))continue;var __yy__v897=__yy__v895[__yy__v896];{var gmlmap=ds_map_create();ds_map_set(gmlmap,"year",__yy__v897.gmlyear);ds_map_set(gmlmap,
"uid",ds_map_find_value(__yy__v897.gmlmyteam,"uid"));ds_map_set(gmlmap,"name",ds_map_find_value(__yy__v897.gmlmyteam,"name"));ds_map_set(gmlmap,"tla",ds_map_find_value(__yy__v897.gmlmyteam,"tla"));if(yyfequal(__yy__v897.gmlyear,1)){{ds_map_set(gmlmap,"wins",0);ds_map_set(gmlmap,"losses",0);ds_map_set(gmlmap,"ties",0);var ___sw614___=argument0;var ___swc615___=-1;if(yyCompareVal(___sw614___,(-1),g_GMLMathEpsilon,false)==0){___swc615___=0;}else if(yyCompareVal(___sw614___,0,g_GMLMathEpsilon,false)==0){
___swc615___=1;}else if(yyCompareVal(___sw614___,1,g_GMLMathEpsilon,false)==0){___swc615___=2;}switch(___swc615___){case 0:{ds_map_set(gmlmap,"losses",1);break;}case 1:{ds_map_set(gmlmap,"ties",1);break;}case 2:{ds_map_set(gmlmap,"wins",1);break;}};};}else {{ds_map_set(gmlmap,"wins",ds_map_find_value(__yy__v897.gmlmyteam,"wins"));ds_map_set(gmlmap,"losses",ds_map_find_value(__yy__v897.gmlmyteam,"losses"));ds_map_set(gmlmap,"ties",ds_map_find_value(__yy__v897.gmlmyteam,"ties"));};};var gml_conf=string_copy(gml_Script_s_get_string_conference(__yy__v897,
_inst,__yy__v897.gmlmyconference),1,3);var gml_div=string_copy(gml_Script_s_get_string_division(__yy__v897,_inst,__yy__v897.gmlmyconference,__yy__v897.gmlmydivision),1,3);var gml_pos=gml_Script_s_get_team_position_by_id(__yy__v897,_inst,__yy__v897.gmlmyteam_id);ds_map_set(gmlmap,"finish",yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_conf)," "),__yy_gml_errCheck(gml_div))," "),__yy_gml_errCheck(gml_Script_s_str(__yy__v897,_inst,yyfplus("pos_",__yy_gml_errCheck(string(gml_pos)))))));ds_map_set(gmlmap,
"wins_sim",gml_Script_s_count_simmed_games(__yy__v897,_inst,1));ds_map_set(gmlmap,"losses_sim",gml_Script_s_count_simmed_games(__yy__v897,_inst,(-1)));ds_map_set(gmlmap,"ties_sim",gml_Script_s_count_simmed_games(__yy__v897,_inst,0));ds_list_add(__yy__v897.gmlhistory,gmlmap);}}};}}function gml_GlobalScript_s_update_history_finish(_inst,_other){(_inst.gmls_update_history_finish=__yy_method(_inst,gml_Script_s_update_history_finish));}function gml_Script_s_update_history_finish(_inst,_other,argument0){
{{var __yy__v898=GetWithArray(97);for(var __yy__v899 in __yy__v898){if(!__yy__v898.hasOwnProperty(__yy__v899))continue;var __yy__v900=__yy__v898[__yy__v899];{var gmlmap=gml_Script_s_get_history_by_year(__yy__v900,_inst,__yy__v900.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{var ___sw618___=argument0;var ___swc619___=-1;if(yyCompareVal(___sw618___,1,g_GMLMathEpsilon,false)==0){___swc619___=0;}else if(yyCompareVal(___sw618___,2,g_GMLMathEpsilon,false)==0){___swc619___=1;}else if(yyCompareVal(___sw618___,3,g_GMLMathEpsilon,
false)==0){___swc619___=2;}else if(yyCompareVal(___sw618___,4,g_GMLMathEpsilon,false)==0){___swc619___=3;}else if(yyCompareVal(___sw618___,5,g_GMLMathEpsilon,false)==0){___swc619___=4;}switch(___swc619___){case 0:{ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v900,_inst,"finish_WildCard"));break;}case 1:{ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v900,_inst,"finish_Divisional"));break;}case 2:{ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v900,_inst,"finish_Championship"));break;}case 3:{
ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v900,_inst,"finish_Champ_AFC"));if(yyfequal(__yy__v900.gmlmyconference,1)){ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v900,_inst,"finish_Champ_NFC"));};break;}case 4:{ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v900,_inst,"finish_SuperBowl"));break;}};};};ds_map_set(gmlmap,"wins_sim",gml_Script_s_count_simmed_games(__yy__v900,_inst,1));ds_map_set(gmlmap,"losses_sim",gml_Script_s_count_simmed_games(__yy__v900,_inst,(-1)));ds_map_set(gmlmap,
"ties_sim",gml_Script_s_count_simmed_games(__yy__v900,_inst,0));}}};}}function gml_GlobalScript_age_scripts(_inst,_other,argument0){(_inst.gmls_rookie_age_internal=__yy_method(_inst,gml_Script_s_rookie_age_internal));(_inst.gmls_max_age_player_internal=__yy_method(_inst,gml_Script_s_max_age_player_internal));(_inst.gmls_max_age_qb_internal=__yy_method(_inst,gml_Script_s_max_age_qb_internal));(_inst.gmls_get_max_age=__yy_method(_inst,gml_Script_s_get_max_age));}function gml_Script_s_rookie_age_internal(_inst,
_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 18;};};return 21;}}function gml_Script_s_max_age_player_internal(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 21;};};return 35;}}function gml_Script_s_max_age_qb_internal(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 21;};};return 40;}}function gml_Script_s_get_max_age(_inst,_other,argument0){{var gmlpmap=argument0;var gmlmax_age=gml_Script_s_max_age_player_internal(_inst,_other);
var ___sw622___=ds_map_find_value(gmlpmap,"position");var ___swc623___=-1;if(yyCompareVal(___sw622___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,10,g_GMLMathEpsilon,false)==0){___swc623___=0;}else if(yyCompareVal(___sw622___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,
7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,9,g_GMLMathEpsilon,false)==0){___swc623___=1;}else if(yyCompareVal(___sw622___,100,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,101,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw622___,102,g_GMLMathEpsilon,false)==0){___swc623___=2;}switch(___swc623___){case 0:{gmlmax_age=gml_Script_s_max_age_qb_internal(_inst,_other);break;}case 1:{break;}case 2:{gmlmax_age=65;break;}};if(yyGetBool(ds_map_exists(gmlpmap,
"delay_retirement"))){gmlmax_age=yyfplus(gmlmax_age,ds_map_find_value(gmlpmap,"delay_retirement"));};return gmlmax_age;}}function gml_GlobalScript_s_update_history_playoffs(_inst,_other){(_inst.gmls_update_history_playoffs=__yy_method(_inst,gml_Script_s_update_history_playoffs));}function gml_Script_s_update_history_playoffs(_inst,_other,argument0){{{var __yy__v901=GetWithArray(97);for(var __yy__v902 in __yy__v901){if(!__yy__v901.hasOwnProperty(__yy__v902))continue;var __yy__v903=__yy__v901[__yy__v902];
{var gmlmap=gml_Script_s_get_history_by_year(__yy__v903,_inst,__yy__v903.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{if(!yyGetBool(ds_map_exists(gmlmap,"wins_po"))){ds_map_set(gmlmap,"wins_po",0);};if(!yyGetBool(ds_map_exists(gmlmap,"losses_po"))){ds_map_set(gmlmap,"losses_po",0);};var ___sw626___=argument0;var ___swc627___=-1;if(yyCompareVal(___sw626___,0,g_GMLMathEpsilon,false)==0){___swc627___=0;}else if(yyCompareVal(___sw626___,1,g_GMLMathEpsilon,false)==0){___swc627___=1;}switch(___swc627___){
case 0:{ds_map_set(gmlmap,"losses_po",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"losses_po"))),1));break;}case 1:{ds_map_set(gmlmap,"wins_po",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"wins_po"))),1));break;}};};};}}};}}function gml_GlobalScript_s_get_history_by_year(_inst,_other,argument0){(_inst.gmls_get_history_by_year=__yy_method(_inst,gml_Script_s_get_history_by_year));}function gml_Script_s_get_history_by_year(_inst,_other,argument0){{var gmlyr=argument0;{var __yy__v904=GetWithArray(97);
for(var __yy__v905 in __yy__v904){if(!__yy__v904.hasOwnProperty(__yy__v905))continue;var __yy__v906=__yy__v904[__yy__v905];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v906.gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v906.gmlhistory,gmli);if(yyfequal(ds_map_find_value(gmlmap,"year"),gmlyr)){return gmlmap;};}};return(-4);}}};}}function gml_GlobalScript_s_update_music(_inst,_other){(_inst.gmls_update_music=__yy_method(_inst,
gml_Script_s_update_music));}function gml_Script_s_update_music(_inst,_other){{if((yyGetBool(global.gmlbrowser))&&(yyGetBool(!yyGetBool(audio_system_is_available())))){return;};var ___sw630___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx");var ___swc631___=-1;if(yyCompareVal(___sw630___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw630___,1,g_GMLMathEpsilon,false)==0){___swc631___=0;}else if(yyCompareVal(___sw630___,2,g_GMLMathEpsilon,false)==0){___swc631___=1;}switch(___swc631___){
case 0:{if(yyGetBool(audio_is_playing(14))){{audio_stop_sound(14);};};break;}case 1:{if((yyGetBool(instance_exists(104)))&&(yyGetBool(audio_is_playing(14)))){{audio_sound_gain(14,0,2500);return;};};if(!yyGetBool(audio_is_playing(14))){{audio_play_sound(14,0,true);audio_sound_gain(14,0.6,1);};}else {audio_sound_gain(14,0.6,5000);};break;}};}}// if (string_count("@", msg))
function gml_GlobalScript_s_get_ticker_text(_inst,_other){(_inst.gmls_get_ticker_text=__yy_method(_inst,gml_Script_s_get_ticker_text));
}function gml_Script_s_get_ticker_text(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,97).gmlticker_count,yyInst(_inst,_other,97).gmlticker_count=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,97).gmlticker_count.add(1):++yyInst(_inst,_other,97).gmlticker_count),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,97).gmlticker_count,3)){yyInst(_inst,_other,97).gmlticker_count=0;};var ___sw634___=yyInst(_inst,_other,97).gmlticker_count;var ___swc635___=-1;if(yyCompareVal(___sw634___,
0,g_GMLMathEpsilon,false)==0){___swc635___=0;}else if(yyCompareVal(___sw634___,2,g_GMLMathEpsilon,false)==0){___swc635___=1;}else if(yyCompareVal(___sw634___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw634___,3,g_GMLMathEpsilon,false)==0){___swc635___=2;}switch(___swc635___){case 0:{if(!yyGetBool(global.gmlconsole_build)){{return gml_Script_s_str(_inst,_other,"msg_TickerTwitter");break;};};}case 1:{if(!yyGetBool(global.gmlconsole_build)){{return gml_Script_s_str(_inst,_other,"msg_TickerReddit");break;
};};}case 2:{if(!yyGetBool(global.gmlconsole_build)){{if((yyGetBool(yyfgreaterequal(yyInst(_inst,_other,97).gmltip_count,32)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,97).gmltip_count,36)))){yyInst(_inst,_other,97).gmltip_count=1;};};};var gmlmsg=gml_Script_s_str(_inst,_other,yyfplus("tip_",__yy_gml_errCheck(string((yyInst(_inst,_other,97).gmltip_count=(yyInst(_inst,_other,97).gmltip_count instanceof Long?yyInst(_inst,_other,97).gmltip_count.add(1):++yyInst(_inst,_other,97).gmltip_count),yyInst(_inst,
_other,97).gmltip_count)))));if(yyGetBool(string_count("@",gmlmsg))){{yyInst(_inst,_other,97).gmltip_count=1;gmlmsg=gml_Script_s_str(_inst,_other,"tip_1");};};return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Tip")),"! "),__yy_gml_errCheck(gmlmsg));break;}};return gml_Script_s_get_ticker_text(_inst,_other);}}function gml_GlobalScript_s_choose_random_face_for_me(_inst,_other){(_inst.gmls_choose_random_face_for_me=__yy_method(_inst,gml_Script_s_choose_random_face_for_me));}function gml_Script_s_choose_random_face_for_me(_inst,
_other){{gml_Script_slog(_inst,_other,"s_choose_random_face_for_me");{var __yy__v907=GetWithArray(97);for(var __yy__v908 in __yy__v907){if(!__yy__v907.hasOwnProperty(__yy__v908))continue;var __yy__v909=__yy__v907[__yy__v908];{if(yyGetBool(__yy__v909.gmlqb_mode)){{__yy__v909.gmlmy_skin=choose(2,1,0);__yy__v909.gmlmyface_x=irandom(7);var ___sw638___=__yy__v909.gmlmy_skin;var ___swc639___=-1;if(yyCompareVal(___sw638___,2,g_GMLMathEpsilon,false)==0){___swc639___=0;}else if(yyCompareVal(___sw638___,1,g_GMLMathEpsilon,
false)==0){___swc639___=1;}else if(yyCompareVal(___sw638___,0,g_GMLMathEpsilon,false)==0){___swc639___=2;}switch(___swc639___){case 0:{__yy__v909.gmlmyface_y=irandom(2);break;}case 1:{__yy__v909.gmlmyface_y=0;break;}case 2:{__yy__v909.gmlmyface_y=irandom(8);break;}};gml_Script_slog(__yy__v909,_inst,yyfplus("new skin = ",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlmy_skin))));gml_Script_slog(__yy__v909,_inst,yyfplus("new face_x = ",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlmyface_x))));
gml_Script_slog(__yy__v909,_inst,yyfplus("new face_y = ",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlmyface_y))));};}else {{__yy__v909.gmlmyface_x=irandom(8);__yy__v909.gmlmyface_y=irandom(3);};};}}};}}function gml_GlobalScript_s_get_kick_direction(_inst,_other){(_inst.gmls_get_kick_direction=__yy_method(_inst,gml_Script_s_get_kick_direction));}function gml_Script_s_get_kick_direction(_inst,_other){{var gmlskl=yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_kick_skill),
3);var gmlsp=yyfminus(9,__yy_gml_errCheck(gmlskl));var gmldif=yyfdivide(__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(yyInst(_inst,_other,104).gmldifficulty))),5);gmlsp=yyfminus(gmlsp,gmldif);gmlsp=clamp(gmlsp,3,9);var gmlconewid=100;if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gmlsp=9;gmlconewid=200;};};_inst.gmlkicky=yyfplus(_inst.gmlkicky,yyftime(__yy_gml_errCheck(_inst.gmlkickflip),__yy_gml_errCheck(gmlsp)));if((yyGetBool(yyfgreater(_inst.gmlkicky,yyfplus(300,__yy_gml_errCheck(gmlconewid)))))||(yyGetBool(yyfless(_inst.gmlkicky,
yyfminus(300,__yy_gml_errCheck(gmlconewid)))))){_inst.gmlkickflip=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlkickflip));};return __yy_gml_errCheck(-__yy_gml_errCheck(point_direction(yyInst(_inst,_other,_inst.gmlholder).x,yyInst(_inst,_other,_inst.gmlholder).y,_inst.gmlkickx,_inst.gmlkicky)));}}function gml_GlobalScript_s_aiming(_inst,_other){(_inst.gmls_aiming=__yy_method(_inst,gml_Script_s_aiming));}function gml_Script_s_aiming(_inst,_other){{{var __yy__v910=GetWithArray(global.gmlmaster_ball);for(var __yy__v911 in __yy__v910){
if(!__yy__v910.hasOwnProperty(__yy__v911))continue;var __yy__v912=__yy__v910[__yy__v911];{var ___sw642___=__yy__v912.gmlstate;var ___swc643___=-1;if(yyCompareVal(___sw642___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw642___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw642___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw642___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw642___,19,g_GMLMathEpsilon,false)==0){___swc643___=0;}switch(___swc643___){case 0:{return true;}default :{return false;
}};}}};return false;}}function gml_GlobalScript_s_update_ball(_inst,_other){(_inst.gmls_update_ball=__yy_method(_inst,gml_Script_s_update_ball));}function gml_Script_s_update_ball(_inst,_other){{var gmlmx=device_mouse_x_to_gui(0);var gmlmy=device_mouse_y_to_gui(0);var gmlcont=104;if(!yyGetBool(mouse_check_button(1))){_inst.gmltouch_starty=(-1);}else {if(yyfequal(_inst.gmltouch_starty,(-1))){_inst.gmltouch_starty=gmlmy;};};if((yyGetBool(yyfgreaterequal(_inst.gmltouch_starty,250)))&&(yyGetBool(yyfequal(_inst.gmlstate,
0)))){return;};var gmlgp_axis=global.gmlaxisl_force;if(yyfequal(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_invert_throw"),3)){gmlgp_axis=global.gmlaxisr_force;};var ___sw652___=_inst.gmlstate;var ___swc653___=-1;if(yyCompareVal(___sw652___,18,g_GMLMathEpsilon,false)==0){___swc653___=0;}else if(yyCompareVal(___sw652___,0,g_GMLMathEpsilon,false)==0){___swc653___=1;}else if(yyCompareVal(___sw652___,1,g_GMLMathEpsilon,false)==0){___swc653___=2;}else if(yyCompareVal(___sw652___,2,g_GMLMathEpsilon,
false)==0){___swc653___=3;}else if(yyCompareVal(___sw652___,3,g_GMLMathEpsilon,false)==0){___swc653___=4;}else if(yyCompareVal(___sw652___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,11,g_GMLMathEpsilon,false)==0){___swc653___=5;}else if(yyCompareVal(___sw652___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,13,g_GMLMathEpsilon,false)==0){___swc653___=6;}else if(yyCompareVal(___sw652___,
19,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,5,g_GMLMathEpsilon,false)==0){___swc653___=7;}else if(yyCompareVal(___sw652___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw652___,16,g_GMLMathEpsilon,false)==0){___swc653___=8;}else if(yyCompareVal(___sw652___,17,g_GMLMathEpsilon,false)==0){___swc653___=9;}switch(___swc653___){
case 0:{if((yyGetBool(gml_Script_s_can_throw(_inst,_other)))&&(yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfless(point_distance(_inst.x,_inst.y,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y()),40)))){{_inst.gmlxtouch=gmlmx;_inst.gmlytouch=gmlmy;_inst.gmlstate=1;};};if(yyGetBool(_inst.gmlholder)){gml_Script_s_update_ball_offset(_inst,_other);};break;}case 1:{_inst.x=yyInst(_inst,_other,gmlcont).gmlx_scrim;_inst.y=yyInst(_inst,_other,gmlcont).gmly_scrim;var ___sw654___=yyInst(_inst,_other,97).gmlgamepractice;
var ___swc655___=-1;if(yyCompareVal(___sw654___,3,g_GMLMathEpsilon,false)==0){___swc655___=0;}else if(yyCompareVal(___sw654___,2,g_GMLMathEpsilon,false)==0){___swc655___=1;}switch(___swc655___){case 0:{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Throw1");break;}case 1:{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Throw3");if(yyfequal(yyInst(_inst,_other,104).gmlpractice_success,0)){{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,
_other,"training_Running1");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running1b");};};};break;}};if((yyGetBool(mouse_check_button(1)))||(yyGetBool((yyGetBool(global.gmlgamepad))&&(yyGetBool((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_handoff)))||(yyGetBool(gmlgp_axis))))&&(yyGetBool(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(_inst,
_other))))))){{{var __yy__v913=GetWithArray(107);for(var __yy__v914 in __yy__v913){if(!__yy__v913.hasOwnProperty(__yy__v914))continue;var __yy__v915=__yy__v913[__yy__v914];{if((yyGetBool(yyfequal(__yy__v915.gmlposition,2)))&&(yyGetBool((yyGetBool((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_handoff)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(__yy__v915,_inst))))))||(yyGetBool((yyGetBool(!yyGetBool(global.gmlgamepad)))&&(yyGetBool(yyfless(point_distance(__yy__v915.x,
__yy__v915.y,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y()),20)))))))){{gml_Script_slog(__yy__v915,_inst,"global.master_ball.state = BALL_HANDOFF;");yyInst(_inst,_other,global.gmlmaster_ball).gmlstate=19;yyInst(_inst,_other,104).gmlplay_start=g_pBuiltIn.get_current_time();yyInst(_inst,_other,104).gmlrunning_play=true;gml_Script_s_sound_throw(__yy__v915,_inst);instance_destroy(__yy__v915,121);instance_destroy(__yy__v915,123);break;};};}}};if((yyGetBool(yyfnotequal(yyInst(_inst,_other,97).gmlgamepractice,
2)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmlpractice_success,0)))){{if(yyfnotequal(_inst.gmlstate,19)){{_inst.gmlxtouch=gmlmx;_inst.gmlytouch=gmlmy;_inst.gmlstate=1;gml_Script_slog(_inst,_other,"state = BALL_AIM_DEADZONE");};};};};};};break;}case 2:{if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfgreater(gmlgp_axis,0.2)))){{_inst.gmlstate=2;gml_Script_s_sound_throw(_inst,_other);};}else {if(yyGetBool(mouse_check_button(1))){{_inst.gmldragdist=point_distance(_inst.gmlxtouch,_inst.gmlytouch,
gmlmx,gmlmy);if(yyfgreater(_inst.gmldragdist,20)){{_inst.gmlstate=2;gml_Script_s_sound_throw(_inst,_other);};};};}else {{_inst.gmlstate=0;return;};};};break;}case 3:{instance_destroy(_inst,121);instance_destroy(_inst,123);if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,3)){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Throw2");};if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmlpractice_success,
0)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Throw3");};{var __yy__v916=GetWithArray(_inst.gmlholder);for(var __yy__v917 in __yy__v916){if(!__yy__v916.hasOwnProperty(__yy__v917))continue;var __yy__v918=__yy__v916[__yy__v917];{if((yyGetBool(!yyGetBool(path_exists(__yy__v918.gmlmy_route))))&&(yyGetBool(!yyGetBool(gml_Script_s_is_falling(__yy__v918,_inst))))&&(yyGetBool(yyfless(__yy__v918.gmlballdist,10)))){gml_Script_s_set_anim(__yy__v918,_inst,11);};gml_Script_s_update_ball_offset(_inst,
__yy__v918);;}}};var ___sw656___=global.gmlgamepad;var ___swc657___=-1;if(yyCompareVal(___sw656___,true,g_GMLMathEpsilon,false)==0){___swc657___=0;}else if(yyCompareVal(___sw656___,false,g_GMLMathEpsilon,false)==0){___swc657___=1;}switch(___swc657___){case 0:{var ___sw658___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_invert_throw");var ___swc659___=-1;if(yyCompareVal(___sw658___,0,g_GMLMathEpsilon,false)==0){___swc659___=0;}else if(yyCompareVal(___sw658___,1,g_GMLMathEpsilon,false)==0){
___swc659___=1;}else if(yyCompareVal(___sw658___,2,g_GMLMathEpsilon,false)==0){___swc659___=2;}else if(yyCompareVal(___sw658___,3,g_GMLMathEpsilon,false)==0){___swc659___=3;}switch(___swc659___){case 0:{if(yyfgreater(gmlgp_axis,0.2)){{_inst.gmldragx=clamp(yyfplus(__yy_gml_errCheck(_inst.gmldragx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(global.gmlaxisl_h),2))),(-100),100);_inst.gmldragy=clamp(yyfplus(__yy_gml_errCheck(_inst.gmldragy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(global.gmlaxisl_v),
2))),(-100),100);_inst.gmldragdist=point_distance(0,0,_inst.gmldragx,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmldragy)));_inst.gmldirec=point_direction(0,0,_inst.gmldragx,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmldragy)));};};break;}case 1:{if(yyfgreater(gmlgp_axis,0.2)){{_inst.gmldragx=clamp(yyfminus(__yy_gml_errCheck(_inst.gmldragx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(global.gmlaxisl_h),2))),(-100),100);_inst.gmldragy=clamp(yyfminus(__yy_gml_errCheck(_inst.gmldragy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(global.gmlaxisl_v),
2))),(-100),100);_inst.gmldragdist=point_distance(0,0,_inst.gmldragx,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmldragy)));_inst.gmldirec=point_direction(0,0,_inst.gmldragx,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmldragy)));};};break;}case 2:{_inst.gmldes_drag=yyftime(__yy_gml_errCheck(gmlgp_axis),100);_inst.gmldragdist=lerp(_inst.gmldragdist,_inst.gmldes_drag,0.25);_inst.gmldragdist=clamp(_inst.gmldragdist,20,100);_inst.gmldes_direc=yyfplus(__yy_gml_errCheck(point_direction(0,0,global.gmlaxisl_h,
__yy_gml_errCheck(-__yy_gml_errCheck(global.gmlaxisl_v)))),180);_inst.gmldirec=yyfminus(_inst.gmldirec,yyftime(__yy_gml_errCheck(angle_difference(_inst.gmldirec,_inst.gmldes_direc)),0.1));break;}case 3:{_inst.gmldes_drag=yyftime(__yy_gml_errCheck(gmlgp_axis),100);_inst.gmldragdist=lerp(_inst.gmldragdist,_inst.gmldes_drag,0.25);_inst.gmldragdist=clamp(_inst.gmldragdist,20,100);_inst.gmldes_direc=yyfplus(__yy_gml_errCheck(point_direction(0,0,global.gmlaxisr_h,__yy_gml_errCheck(-__yy_gml_errCheck(global.gmlaxisr_v)))),
180);_inst.gmldirec=yyfminus(_inst.gmldirec,yyftime(__yy_gml_errCheck(angle_difference(_inst.gmldirec,_inst.gmldes_direc)),0.1));break;}};if((yyGetBool((yyGetBool((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)))))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,32771)))))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,32777)))){{{var __yy__v919=GetWithArray(_inst.gmlholder);for(var __yy__v920 in __yy__v919){
if(!__yy__v919.hasOwnProperty(__yy__v920))continue;var __yy__v921=__yy__v919[__yy__v920];if(yyGetBool(path_exists(__yy__v921.gmlmy_route))){path_delete(__yy__v921.gmlmy_route);};}};gml_Script_s_qb_run(_inst,_other,true);};}else {if((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_back)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(_inst,_other))))){{_inst.gmlbullet_throw_hold=false;_inst.gmlbullet_throw=!yyGetBool(_inst.gmlbullet_throw);};};};if(yyGetBool(global.gmltriggerl)){
{_inst.gmlbullet_throw_hold=true;_inst.gmlbullet_throw=true;};}else {if(yyGetBool(_inst.gmlbullet_throw_hold)){{_inst.gmlbullet_throw_hold=false;_inst.gmlbullet_throw=false;};};};if((yyGetBool(_inst.gmlbullet_throw))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))){{_inst.gmlvelocity=yyftime(yyftime(__yy_gml_errCheck(_inst.gmldragdist),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_throw_power)),1.2);_inst.gmlzvel=yyftime(yyftime(__yy_gml_errCheck(_inst.gmlvelocity),
0.35),0.5);};}else {{_inst.gmlvelocity=yyftime(__yy_gml_errCheck(_inst.gmldragdist),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_throw_power));_inst.gmlzvel=yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.35);};};if(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select))){gml_Script_s_throw_ball(_inst,_other);};break;}case 1:{_inst.gmldragdist=min(point_distance(_inst.gmlxtouch,_inst.gmlytouch,gmlmx,gmlmy),100);var gmlfinger_down=false;if((yyGetBool(global.gmlmobile_device))||(yyGetBool(global.gmlconsole_build))){
{if(yyGetBool(device_mouse_check_button(0,1))){{gmlfinger_down=true;if(yyGetBool(device_mouse_check_button_released(1,1))){_inst.gmlbullet_throw=!yyGetBool(_inst.gmlbullet_throw);};};};};}else {if(yyGetBool(mouse_check_button(1))){{gmlfinger_down=true;if(yyGetBool(mouse_check_button_released(2))){_inst.gmlbullet_throw=!yyGetBool(_inst.gmlbullet_throw);};};};};if(yyGetBool(gmlfinger_down)){{_inst.gmldirec=yyfplus(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(point_direction(_inst.gmlxtouch,
_inst.gmlytouch,gmlmx,gmlmy)))),180);if(yyGetBool(_inst.gmlbullet_throw)){{_inst.gmlvelocity=yyftime(yyftime(__yy_gml_errCheck(_inst.gmldragdist),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_throw_power)),1.2);_inst.gmlzvel=yyftime(yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.35),0.5);};}else {{_inst.gmlvelocity=yyftime(__yy_gml_errCheck(_inst.gmldragdist),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_throw_power));_inst.gmlzvel=yyftime(__yy_gml_errCheck(_inst.gmlvelocity),
0.35);};};};}else {if((yyGetBool(yyfless(_inst.gmldragdist,20)))||(yyGetBool(gml_Script_s_opposite_aim(_inst,_other,_inst.gmldirec)))){{{var __yy__v922=GetWithArray(_inst.gmlholder);for(var __yy__v923 in __yy__v922){if(!__yy__v922.hasOwnProperty(__yy__v923))continue;var __yy__v924=__yy__v922[__yy__v923];if(yyGetBool(path_exists(__yy__v924.gmlmy_route))){path_delete(__yy__v924.gmlmy_route);};}};gml_Script_s_qb_run(_inst,_other,false);};}else {gml_Script_s_throw_ball(_inst,_other);};};break;}};break;}case 4:{
yyInst(_inst,_other,gmlcont).gmltap_msg="";gml_Script_s_update_ball_movement(_inst,_other,false);break;}case 5:{if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(!yyGetBool(instance_exists(122))))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlminutes),__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlseconds)),0)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,5)))){{if((yyGetBool(_inst.gmlholder))&&(yyGetBool(yyInst(_inst,_other,
_inst.gmlholder).gmloffense))&&(yyGetBool(gml_Script_s_count_timeouts(_inst,_other)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlcont).gmltimeout_called)))){{var gmlbx=32;var gmlby=48;if(yyfequal(yyInst(_inst,_other,gmlcont).gmldrivedir,(-1))){gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),32),__yy_gml_errCheck(sprite_get_width(79)));};var gmlbtn_to=instance_create_layer(gmlbx,gmlby,"Text",122);yyInst(_inst,_other,gmlbtn_to).gmlgp_mapped_button=global.gmlgp_timeout;};};};};}case 6:{
if(yyGetBool(_inst.gmlholder)){gml_Script_s_update_ball_offset(_inst,_other);}else {gml_Script_s_update_ball_movement(_inst,_other,false);};break;}case 7:{if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)){{if(yyfequal(yyInst(_inst,_other,104).gmlpractice_success,0)){{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running2");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,
_other,"training_Running2b");};};}else {{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running3");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){{if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,1)){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running3D");}else {yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running3A");};};};};};};}else {if(yyfequal(yyInst(_inst,
_other,97).gmlgamepractice,3)){{yyInst(_inst,_other,gmlcont).gmltap_msg="";_inst.gmlstate=16;};}else {{};};};gml_Script_s_update_ball_offset(_inst,_other);break;}case 8:{if(yyGetBool(_inst.gmlholder)){{gml_Script_s_update_ball_offset(_inst,_other);return;};};}case 9:{gml_Script_s_update_ball_movement(_inst,_other,false);break;}};}}function gml_GlobalScript_s_do_touchback(_inst,_other){(_inst.gmls_do_touchback=__yy_method(_inst,gml_Script_s_do_touchback));}function gml_Script_s_do_touchback(_inst,_other){
{if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true)))&&(yyGetBool(gml_Script_s_can_touchback(_inst,_other)))){{var gmlddir=(-1);{var __yy__v925=GetWithArray(104);for(var __yy__v926 in __yy__v925){if(!__yy__v925.hasOwnProperty(__yy__v926))continue;var __yy__v927=__yy__v925[__yy__v926];gmlddir=__yy__v927.gmldrivedir;}};if((yyGetBool((yyGetBool(yyfless(_inst.x,300)))&&(yyGetBool(yyfequal(gmlddir,1)))))||(yyGetBool((yyGetBool(yyfgreater(_inst.x,2300)))&&(yyGetBool(yyfequal(gmlddir,(-1))))))){{gml_Script_s_set_anim(_inst,
_other,19);return true;};};};};return false;}}function gml_GlobalScript_s_update_ball_fieldgoal(_inst,_other){(_inst.gmls_update_ball_fieldgoal=__yy_method(_inst,gml_Script_s_update_ball_fieldgoal));}function gml_Script_s_update_ball_fieldgoal(_inst,_other){{var gmlcont=104;var ___sw664___=_inst.gmlstate;var ___swc665___=-1;if(yyCompareVal(___sw664___,0,g_GMLMathEpsilon,false)==0){___swc665___=0;}else if(yyCompareVal(___sw664___,1,g_GMLMathEpsilon,false)==0){___swc665___=1;}else if(yyCompareVal(___sw664___,
2,g_GMLMathEpsilon,false)==0){___swc665___=2;}else if(yyCompareVal(___sw664___,3,g_GMLMathEpsilon,false)==0){___swc665___=3;}else if(yyCompareVal(___sw664___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,13,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw664___,5,g_GMLMathEpsilon,false)==0){___swc665___=4;}else if(yyCompareVal(___sw664___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw664___,20,g_GMLMathEpsilon,false)==0){___swc665___=5;}switch(___swc665___){
case 0:{if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,1)){{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Kick1");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Kick1b");};};};_inst.x=yyInst(_inst,_other,gmlcont).gmlx_scrim;_inst.y=yyInst(_inst,_other,gmlcont).gmly_scrim;var gmlsp=yyfminus(1.4,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,
_other,_inst.gmlholder).gmlmy_kick_skill),0.05)));var ___sw666___=_inst.gmlkickflip;var ___swc667___=-1;if(yyCompareVal(___sw666___,(-1),g_GMLMathEpsilon,false)==0){___swc667___=0;}else if(yyCompareVal(___sw666___,1,g_GMLMathEpsilon,false)==0){___swc667___=1;}switch(___swc667___){case 0:{_inst.gmlkickpow=yyfminus(_inst.gmlkickpow,5);break;}case 1:{_inst.gmlkickpow=yyfplus(_inst.gmlkickpow,gmlsp);break;}};if(yyfgreaterequal(_inst.gmlkickpow,55)){{_inst.gmlkickpow=55;_inst.gmlkickflip=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlkickflip));
};};if(yyflessequal(_inst.gmlkickpow,0)){{_inst.gmlkickpow=0;_inst.gmlkickflip=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlkickflip));};};gml_Script_s_update_ball_offset(_inst,_other);if(yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other))){{if(yyfequal(yyInst(_inst,_other,97).gmltag_kr_message_done,3)){{_inst.gmlcpu_kickpow=55;yyInst(_inst,_other,97).gmltag_kr_message_done=4;};};if(yyfequal(round(_inst.gmlkickpow),round(_inst.gmlcpu_kickpow))){_inst.gmlstate=1;};break;};};if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,
global.gmlgp_select)))){_inst.gmlstate=1;}else {if(yyGetBool(mouse_check_button(1))){{{var __yy__v928=GetWithArray(12);for(var __yy__v929 in __yy__v928){if(!__yy__v928.hasOwnProperty(__yy__v929))continue;var __yy__v930=__yy__v928[__yy__v929];{if(yyfgreater(device_mouse_y_to_gui(0),yyfplus(__yy_gml_errCheck(__yy__v930.y),__yy_gml_errCheck(__yy__v930.sprite_height)))){_inst.gmlstate=1;};return;}}};_inst.gmlstate=1;};};};break;}case 1:{instance_destroy(_inst,12);if((yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,
_other)))||(yyGetBool((yyGetBool(!yyGetBool(mouse_check_button(1))))&&(yyGetBool((yyGetBool(!yyGetBool(global.gmlgamepad)))||(yyGetBool(!yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_select))))))))){{_inst.gmlstate=2;{var __yy__v931=GetWithArray(_inst.gmlholder);for(var __yy__v932 in __yy__v931){if(!__yy__v931.hasOwnProperty(__yy__v932))continue;var __yy__v933=__yy__v931[__yy__v932];gml_Script_s_set_anim(__yy__v933,_inst,14);}};};}else {_inst.gmldirec=gml_Script_s_get_kick_direction(_inst,
_other);};break;}case 2:{if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,1)){{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Kick2");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Kick2b");};};};if(yyGetBool(_inst.gmlholder)){{gml_Script_s_update_ball_offset(_inst,_other);var gmld=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,
_inst.gmlholder).x,yyInst(_inst,_other,_inst.gmlholder).y);if(yyfless(gmld,30)){{{var __yy__v934=GetWithArray(107);for(var __yy__v935 in __yy__v934){if(!__yy__v934.hasOwnProperty(__yy__v935))continue;var __yy__v936=__yy__v934[__yy__v935];if(yyfequal(__yy__v936.gmlposition,11)){__yy__v936.image_index=1;};}};};};if(yyfgreater(gmld,25)){break;};};};if(yyfless(_inst.gmlkickpow,15)){{_inst.gmldirec=random_range((-5),5);if(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlfacing,(-1))){_inst.gmldirec=yyfplus(180,
__yy_gml_errCheck(irandom_range((-5),5)));};_inst.gmlvelocity=yyftime(__yy_gml_errCheck(yyfplus(50,__yy_gml_errCheck(_inst.gmlkickpow))),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_kick_power));_inst.gmlzvel=yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.4);gml_Script_s_kick_ball(_inst,_other);break;};};_inst.gmldirec=gml_Script_s_get_kick_direction(_inst,_other);_inst.gmlvelocity=yyftime(__yy_gml_errCheck(yyfplus(50,__yy_gml_errCheck(_inst.gmlkickpow))),__yy_gml_errCheck(yyInst(_inst,
_other,_inst.gmlholder).gmlmy_kick_power));_inst.gmlzvel=yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.4);if(yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other))){gml_Script_s_kick_ball(_inst,_other);}else {if(yyGetBool(mouse_check_button(1))){gml_Script_s_kick_ball(_inst,_other);}else {if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_select)))){gml_Script_s_kick_ball(_inst,_other);};};};break;}case 3:{gml_Script_s_update_ball_movement(_inst,_other,
false);break;}case 4:{if(yyGetBool(_inst.gmlholder)){gml_Script_s_update_ball_offset(_inst,_other);}else {gml_Script_s_update_ball_movement(_inst,_other,false);};break;}case 5:{gml_Script_s_update_ball_movement(_inst,_other,false);break;}};}}function gml_GlobalScript_s_update_ball_movement(_inst,_other){(_inst.gmls_update_ball_movement=__yy_method(_inst,gml_Script_s_update_ball_movement));}function gml_Script_s_update_ball_movement(_inst,_other,argument0){{_inst.gmllast_x=_inst.x;_inst.gmllast_y=_inst.y;
var ___sw670___=yyInst(_inst,_other,104).gmlkicking;var ___swc671___=-1;if(yyCompareVal(___sw670___,0,g_GMLMathEpsilon,false)==0){___swc671___=0;}switch(___swc671___){case 0:{_inst.gmlvelocity=yyftime(_inst.gmlvelocity,0.986);_inst.gmlzvel=yyfminus(_inst.gmlzvel,0.08);break;}default :{_inst.gmlvelocity=yyftime(_inst.gmlvelocity,0.9995);_inst.gmlzvel=yyfminus(_inst.gmlzvel,0.03);break;}};_inst.x=yyfplus(_inst.x,yyftime(__yy_gml_errCheck(dcos(_inst.gmldirec)),__yy_gml_errCheck(_inst.gmlvelocity)));_inst.y=yyfplus(_inst.y,
yyftime(__yy_gml_errCheck(dsin(_inst.gmldirec)),__yy_gml_errCheck(_inst.gmlvelocity)));_inst.gmllastheight=_inst.gmlheight;_inst.gmlheight=yyfplus(_inst.gmlheight,_inst.gmlzvel);_inst.gmlrotation=yyfplus(_inst.gmlrotation,_inst.gmlroll);if(yyGetBool(argument0)){return;};if(yyflessequal(_inst.gmlheight,1)){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{if((yyGetBool(yyfless(_inst.x,300)))||(yyGetBool(yyfgreater(_inst.x,2300)))){{_inst.gmlstate=20;_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);
yyInst(_inst,_other,104).gmly_down=_inst.y;};};};}else {if(yyfnotequal(_inst.gmlstate,6)){{if(yyGetBool(_inst.gmllast_touched_by)){{if(yyGetBool(yyInst(_inst,_other,_inst.gmllast_touched_by).gmloffense)){{if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){_inst.gmlstate=13;};};}else {{gml_Script_s_set_ball_down(_inst,_other);};};};};};};};if(yyfless(_inst.gmlzvel,(-1))){gml_Script_s_sound_bounce(_inst,_other);};_inst.gmlbouncecount=yyfplus(_inst.gmlbouncecount,1);_inst.gmlheight=1;_inst.gmlzvel=yyftime(_inst.gmlzvel,
(-0.5));_inst.gmlvelocity=yyftime(_inst.gmlvelocity,random_range(0.2,0.5));_inst.gmldirec=yyfplus(_inst.gmldirec,random_range((-40),40));_inst.gmlroll=irandom(15);};};if(yyfless(_inst.gmlvelocity,0.1)){{_inst.gmlvelocity=0;_inst.gmlroll=0;_inst.gmlrotation=0;};};if((yyGetBool(yyfequal(_inst.gmlbouncecount,0)))&&(yyGetBool(yyInst(_inst,_other,104).gmlkicking))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))){{{var __yy__v937=GetWithArray(117);for(var __yy__v938 in __yy__v937){if(!__yy__v937.hasOwnProperty(__yy__v938))continue;
var __yy__v939=__yy__v937[__yy__v938];{if(yyfgreater(__yy__v939.gmlwind,0)){{__yy__v939.gmlwind_force=clamp(yyfplus(__yy_gml_errCheck(__yy__v939.gmlwind_force),0.008),0,__yy__v939.gmlwind);_inst.x=yyfplus(_inst.x,yyftime(__yy_gml_errCheck(dcos(yyftime(__yy_gml_errCheck(__yy__v939.gmlwind_dir),45))),__yy_gml_errCheck(__yy__v939.gmlwind_force)));_inst.y=yyfplus(_inst.y,yyftime(__yy_gml_errCheck(dsin(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v939.gmlwind_dir))),45))),__yy_gml_errCheck(__yy__v939.gmlwind_force)));
};};}}};};};gml_Script_s_check_dummy_collision(_inst,_other);}}function gml_GlobalScript_s_update_ball_offset(_inst,_other){(_inst.gmls_update_ball_offset=__yy_method(_inst,gml_Script_s_update_ball_offset));}function gml_Script_s_update_ball_offset(_inst,_other){{var gmloffsetx=0;var gmloffsety=0;_inst.gmlroll=0;_inst.gmlrotation=0;if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gmloffsetx=11;gmloffsety=1;_inst.gmlheight=1;_inst.gmlrotation=90;return;};};if((yyGetBool(yyInst(_inst,_other,
104).gmlkicking))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlposition,1)))){{gmloffsetx=11;gmloffsety=1;_inst.gmlheight=1;_inst.gmlrotation=90;};}else {{var ___sw678___=yyInst(_inst,_other,_inst.gmlholder).gmlanim;var ___swc679___=-1;if(yyCompareVal(___sw678___,0,g_GMLMathEpsilon,false)==0){___swc679___=0;}else if(yyCompareVal(___sw678___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw678___,1,g_GMLMathEpsilon,false)==0){___swc679___=1;}else if(yyCompareVal(___sw678___,7,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw678___,2,g_GMLMathEpsilon,false)==0){___swc679___=2;}else if(yyCompareVal(___sw678___,3,g_GMLMathEpsilon,false)==0){___swc679___=3;}else if(yyCompareVal(___sw678___,4,g_GMLMathEpsilon,false)==0){___swc679___=4;}else if(yyCompareVal(___sw678___,5,g_GMLMathEpsilon,false)==0){___swc679___=5;}else if(yyCompareVal(___sw678___,8,g_GMLMathEpsilon,false)==0){___swc679___=6;}else if(yyCompareVal(___sw678___,9,g_GMLMathEpsilon,false)==0){___swc679___=7;}else if(yyCompareVal(___sw678___,
10,g_GMLMathEpsilon,false)==0){___swc679___=8;}else if(yyCompareVal(___sw678___,18,g_GMLMathEpsilon,false)==0){___swc679___=9;}else if(yyCompareVal(___sw678___,19,g_GMLMathEpsilon,false)==0){___swc679___=10;}switch(___swc679___){case 0:{gmloffsetx=1;gmloffsety=2;_inst.gmlheight=yyftime(7,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));break;}case 1:{gmloffsetx=3;gmloffsety=(-2);_inst.gmlheight=0;break;}case 2:{gmloffsetx=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst,
_other,_inst.gmlholder).image_index),2)));gmloffsety=2;_inst.gmlheight=yyftime(10,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));break;}case 3:{gmloffsetx=4;gmloffsety=(-2);_inst.gmlheight=yyftime(8,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));break;}case 4:{if(yyfless(yyInst(_inst,_other,_inst.gmlholder).image_index,1)){{gmloffsetx=2;gmloffsety=(-2);_inst.gmlheight=yyftime(9,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));};}else {
{gmloffsetx=0;gmloffsety=(-2);_inst.gmlheight=yyftime(9,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));if(yyfless(yyInst(_inst,_other,_inst.gmlholder).speed,1)){_inst.gmlheight=0;};};};break;}case 5:{gmloffsetx=9;gmloffsety=(-2);_inst.gmlheight=0;if(yyfless(yyInst(_inst,_other,_inst.gmlholder).image_index,2)){{gmloffsety=(-3);_inst.gmlheight=4;};};break;}case 6:{gmloffsetx=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_index),
2)));gmloffsety=2;_inst.gmlheight=yyftime(10,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));var ___sw680___=yyInst(_inst,_other,_inst.gmlholder).image_index;var ___swc681___=-1;if(yyCompareVal(___sw680___,0,g_GMLMathEpsilon,false)==0){___swc681___=0;}else if(yyCompareVal(___sw680___,1,g_GMLMathEpsilon,false)==0){___swc681___=1;}else if(yyCompareVal(___sw680___,2,g_GMLMathEpsilon,false)==0){___swc681___=2;}switch(___swc681___){case 0:{_inst.gmlheight=yyfminus(_inst.gmlheight,1);
break;}case 1:{_inst.gmlheight=yyfminus(_inst.gmlheight,2);break;}case 2:{_inst.gmlheight=yyfminus(_inst.gmlheight,1);break;}};break;}case 7:{gmloffsetx=1;gmloffsety=2;_inst.gmlheight=yyftime(10,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));break;}case 8:{gmloffsetx=1;gmloffsety=0;var ___sw682___=yyInst(_inst,_other,_inst.gmlholder).image_index;var ___swc683___=-1;if(yyCompareVal(___sw682___,0,g_GMLMathEpsilon,false)==0){___swc683___=0;}else if(yyCompareVal(___sw682___,1,g_GMLMathEpsilon,
false)==0){___swc683___=1;}else if(yyCompareVal(___sw682___,2,g_GMLMathEpsilon,false)==0){___swc683___=2;}else if(yyCompareVal(___sw682___,4,g_GMLMathEpsilon,false)==0){___swc683___=3;}else if(yyCompareVal(___sw682___,5,g_GMLMathEpsilon,false)==0){___swc683___=4;}switch(___swc683___){case 0:{_inst.gmlheight=36;break;}case 1:{_inst.gmlheight=38;break;}case 2:{_inst.gmlheight=40;break;}case 3:{_inst.gmlheight=38;break;}case 4:{_inst.gmlheight=36;break;}};break;}case 9:{gmloffsetx=9;gmloffsety=(-2);_inst.gmlheight=0;
break;}case 10:{gmloffsetx=1;gmloffsety=2;_inst.gmlheight=0;break;}};};};gmloffsetx=yyftime(gmloffsetx,yyInst(_inst,_other,_inst.gmlholder).image_xscale);gmloffsety=yyftime(gmloffsety,yyInst(_inst,_other,_inst.gmlholder).image_yscale);var gmldist=distance_to_point(_inst,yyInst(_inst,_other,_inst.gmlholder).x,yyInst(_inst,_other,_inst.gmlholder).y);if((yyGetBool(yyfless(gmldist,3)))&&(yyGetBool(gml_Script_s_sprite_holding_ball(_inst,_other,yyInst(_inst,_other,_inst.gmlholder).sprite_index)))){{_inst.x=yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,_inst.gmlholder).x),__yy_gml_errCheck(gmloffsetx));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).y),__yy_gml_errCheck(gmloffsety));};}else {{_inst.x=lerp(_inst.x,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).x),__yy_gml_errCheck(gmloffsetx)),0.2);_inst.y=lerp(_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).y),__yy_gml_errCheck(gmloffsety)),0.2);};};}}function gml_GlobalScript_s_is_ball_dead(_inst,_other){(_inst.gmls_is_ball_dead=__yy_method(_inst,
gml_Script_s_is_ball_dead));}function gml_Script_s_is_ball_dead(_inst,_other){{{var __yy__v940=GetWithArray(global.gmlmaster_ball);for(var __yy__v941 in __yy__v940){if(!__yy__v940.hasOwnProperty(__yy__v941))continue;var __yy__v942=__yy__v940[__yy__v941];{__yy__v942.gmlis_dead=false;var ___sw688___=__yy__v942.gmlstate;var ___swc689___=-1;if(yyCompareVal(___sw688___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,10,g_GMLMathEpsilon,false)==0){___swc689___=0;}else if(yyCompareVal(___sw688___,18,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw688___,19,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,13,g_GMLMathEpsilon,false)==0){___swc689___=1;}else if(yyCompareVal(___sw688___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,
7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw688___,20,g_GMLMathEpsilon,false)==0){___swc689___=2;}switch(___swc689___){
case 0:{if(yyGetBool(__yy__v942.gmlholder)){{var ___sw690___=yyInst(_inst,_other,__yy__v942.gmlholder).gmlfacing;var ___swc691___=-1;if(yyCompareVal(___sw690___,(-1),g_GMLMathEpsilon,false)==0){___swc691___=0;}else if(yyCompareVal(___sw690___,1,g_GMLMathEpsilon,false)==0){___swc691___=1;}switch(___swc691___){case 0:{if(yyfgreaterequal(__yy__v942.x,2300)){__yy__v942.gmlis_dead=true;};return __yy__v942.gmlis_dead;break;}case 1:{if(yyflessequal(__yy__v942.x,300)){__yy__v942.gmlis_dead=true;};return __yy__v942.gmlis_dead;
break;}};};};}case 1:{__yy__v942.gmlis_dead=false;break;}case 2:{__yy__v942.gmlis_dead=true;break;}};return __yy__v942.gmlis_dead;}}};}}function gml_GlobalScript_s_check_ball_position(_inst,_other){(_inst.gmls_check_ball_position=__yy_method(_inst,gml_Script_s_check_ball_position));}function gml_Script_s_check_ball_position(_inst,_other){{if(!yyGetBool(gml_Script_s_is_ball_dead(_inst,_other))){{var gmlcont=104;var gmlby=_inst.y;if(yyGetBool(instance_exists(_inst.gmlholder))){{gmlby=yyInst(_inst,_other,
_inst.gmlholder).y;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmlkicking,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmlkicking,2)))){{if((yyGetBool(yyfgreater(_inst.gmlbouncecount,0)))||(yyGetBool(yyfless(_inst.y,132)))||(yyGetBool(yyfgreater(_inst.y,468)))){{_inst.gmlstate=15;};}else {if((yyGetBool(yyfless(_inst.x,100)))||(yyGetBool(yyfgreater(_inst.x,2500)))){{var gmlglx=100;if(yyfgreater(_inst.x,1300)){gmlglx=2500;};var gmlipoint=gml_Script_s_lines_intersect(_inst,_other,
_inst.gmllast_x,_inst.gmllast_y,_inst.x,_inst.y,gmlglx,270,gmlglx,336);gml_Script_slog(_inst,_other,yyfplus("intercept = ",__yy_gml_errCheck(string(yyInst(_inst,_other,gmlipoint).gmlintercept))));var gmltempx=_inst.x;var gmltxtx=yyfminus(__yy_gml_errCheck(_inst.x),80);if(yyfequal(yyInst(_inst,_other,gmlcont).gmldrivedir,(-1))){gmltxtx=yyfplus(__yy_gml_errCheck(_inst.x),80);};if(yyGetBool(yyInst(_inst,_other,gmlipoint).gmlintercept)){{if(yyfless(_inst.gmlheight,60)){{_inst.x=gmltxtx;gml_Script_s_fieldtxt(_inst,
_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_TooLow")),"!"));_inst.x=gmltempx;if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){gml_Script_s_sound_audience_dis(_inst,_other);};_inst.gmlstate=15;return;};}else {if(yyfless(_inst.gmlheight,140)){{if((yyGetBool(yyfless(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0.1)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0.9)))){{global.gmlreplay_do=true;_inst.x=gmltxtx;gml_Script_s_fieldtxt(_inst,_other,
yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Doink")),"!"));_inst.x=gmltempx;gml_Script_s_sound_post(_inst,_other);if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){gml_Script_s_sound_audience_dis(_inst,_other);};_inst.gmlstate=15;_inst.gmldirec=yyfplus(_inst.gmldirec,yyfplus(180,__yy_gml_errCheck(irandom_range((-35),35))));_inst.gmlvelocity=yyftime(_inst.gmlvelocity,0.1);_inst.gmlroll=yyftime(_inst.gmlroll,2);_inst.x=_inst.gmllast_x;_inst.y=_inst.gmllast_y;return;};}else {
if((yyGetBool(yyfless(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0.2)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0.8)))){{global.gmlreplay_do=true;_inst.x=gmltxtx;gml_Script_s_fieldtxt(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Doink")),"!"));_inst.x=gmltempx;gml_Script_s_complete_achievement(_inst,_other,"ACH_DOINK");gml_Script_s_sound_post(_inst,_other);{var __yy__v943=GetWithArray(117);for(var __yy__v944 in __yy__v943){if(!__yy__v943.hasOwnProperty(__yy__v944))continue;
var __yy__v945=__yy__v943[__yy__v944];__yy__v945.gmlwind_force=0;}};var gmlay=468;if(yyfless(_inst.y,300)){gmlay=132;};gml_Script_slog(_inst,_other,string(_inst.gmldirec));var ___sw698___=yyInst(_inst,_other,gmlcont).gmldrivedir;var ___swc699___=-1;if(yyCompareVal(___sw698___,(-1),g_GMLMathEpsilon,false)==0){___swc699___=0;}else if(yyCompareVal(___sw698___,1,g_GMLMathEpsilon,false)==0){___swc699___=1;}switch(___swc699___){case 0:{_inst.gmldirec=point_direction(_inst.x,_inst.y,yyfminus(__yy_gml_errCheck(gmlglx),
210),gmlay);break;}case 1:{_inst.gmldirec=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(gmlglx),210),gmlay);break;}};gml_Script_slog(_inst,_other,string(_inst.gmldirec));_inst.gmldirec=yyfplus(_inst.gmldirec,irandom_range((-5),5));_inst.gmlvelocity=yyftime(_inst.gmlvelocity,0.25);_inst.gmlroll=yyftime(_inst.gmlroll,2);_inst.x=_inst.gmllast_x;_inst.y=_inst.gmllast_y;};};};};};};if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{gml_Script_s_sound_audience_fg(_inst,_other);var gmlkicker=gml_Script_s_get_kicker(_inst,
_other);var ___sw700___=yyInst(_inst,_other,gmlcont).gmlkicking;var ___swc701___=-1;if(yyCompareVal(___sw700___,1,g_GMLMathEpsilon,false)==0){___swc701___=0;}else if(yyCompareVal(___sw700___,2,g_GMLMathEpsilon,false)==0){___swc701___=1;}switch(___swc701___){case 0:{if((yyGetBool(gmlkicker))&&(yyGetBool(yyInst(_inst,_other,gmlkicker).gmlpmap))){{ds_map_set(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_complete")),
1));ds_map_set(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_yards")),__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlkick_dist)));if(yyfgreater(yyInst(_inst,_other,gmlcont).gmlkick_dist,ds_map_find_value(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_longest"))){ds_map_set(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_longest",yyInst(_inst,_other,gmlcont).gmlkick_dist);};};};gml_Script_s_complete_achievement(_inst,
_other,"ACH_FIELDGOAL");if(yyfgreaterequal(yyInst(_inst,_other,gmlcont).gmlkick_dist,25)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FIELDGOAL25");};if(yyfgreaterequal(yyInst(_inst,_other,gmlcont).gmlkick_dist,50)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FIELDGOAL50");};if(yyfgreaterequal(yyInst(_inst,_other,gmlcont).gmlkick_dist,60)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FIELDGOAL60");};gml_Script_s_check_record(_inst,_other,"ui_LongFG",yyInst(_inst,_other,gmlcont).gmlkick_dist,
gml_Script_s_get_kicker_name(_inst,_other),"",gml_Script_s_get_opponent_team_tla(_inst,_other));break;}case 1:{if((yyGetBool(gmlkicker))&&(yyGetBool(yyInst(_inst,_other,gmlkicker).gmlpmap))){ds_map_set(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_complete_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_complete_XP")),1));};gml_Script_s_complete_achievement(_inst,_other,"ACH_POINTAFTER1");break;}};};};if(yyfgreaterequal(yyInst(_inst,_other,gmlcont).gmlkick_dist,
40)){global.gmlreplay_do=true;};yyInst(_inst,_other,104).gmlscored_by=yyInst(_inst,_other,104).gmlpossession;_inst.gmlstate=14;_inst.gmlxdead=yyInst(_inst,_other,gmlipoint).gmlpx;_inst.gmlydead=yyInst(_inst,_other,gmlipoint).gmlpy;return;};};if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){gml_Script_s_sound_audience_dis(_inst,_other);};_inst.gmlstate=15;};};};};}else {if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{if((yyGetBool(yyfless(gmlby,132)))||(yyGetBool(yyfgreater(gmlby,
468)))){{if((yyGetBool(yyfgreater(_inst.x,300)))&&(yyGetBool(yyfless(_inst.x,2300)))){{_inst.gmlstate=8;_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);yyInst(_inst,_other,gmlcont).gmly_down=gmlby;};}else {{_inst.gmlstate=20;_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);yyInst(_inst,_other,gmlcont).gmly_down=gmlby;};};};}else {if((yyGetBool(yyfless(_inst.x,100)))||(yyGetBool(yyfgreater(_inst.x,2500)))){{_inst.gmlstate=20;_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);
yyInst(_inst,_other,gmlcont).gmly_down=gmlby;};};};};}else {if((yyGetBool((yyGetBool(yyfless(_inst.x,300)))||(yyGetBool(yyfgreater(_inst.x,2300)))))&&(yyGetBool(_inst.gmlholder))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,_inst.gmlholder).gmlgoaldist,1000)))&&(yyGetBool((yyGetBool(yyfless(gmlby,132)))||(yyGetBool(yyfgreater(gmlby,468)))||(yyGetBool(yyfless(_inst.x,100)))||(yyGetBool(yyfgreater(_inst.x,2500)))))){{if(yyGetBool(gml_Script_s_can_touchback(_inst,_other))){_inst.gmlstate=20;}else {_inst.gmlstate=12;
};_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);yyInst(_inst,_other,gmlcont).gmly_down=gmlby;};}else {if((yyGetBool(yyfless(gmlby,132)))||(yyGetBool(yyfgreater(gmlby,468)))){{if((yyGetBool((yyGetBool(yyfless(yyInst(_inst,_other,gmlcont).gmldown,5)))||(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true)))))&&(yyGetBool((yyGetBool(_inst.gmlholder))||(yyGetBool(yyfequal(_inst.gmlstate,13)))))){{_inst.gmlstate=8;yyInst(_inst,_other,gmlcont).gmly_down=gmlby;gml_Script_s_update_yard_gain(_inst,
_other);};}else {{_inst.gmlstate=7;gml_Script_s_sound_audience_inc(_inst,_other);};};};}else {if((yyGetBool(yyfless(_inst.x,100)))||(yyGetBool(yyfgreater(_inst.x,2500)))){{_inst.gmlstate=7;gml_Script_s_sound_audience_inc(_inst,_other);};}else {if(yyGetBool(_inst.gmlholder)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldrivedir,(-1))))&&(yyGetBool(yyfgreater(_inst.x,1300)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)))){_inst.gmlstate=17;}else {if((yyGetBool(yyfequal(yyInst(_inst,
_other,gmlcont).gmldrivedir,1)))&&(yyGetBool(yyfless(_inst.x,1300)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)))){_inst.gmlstate=17;}else {if((yyGetBool((yyGetBool(yyfgreater(_inst.x,2300)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlfacing,1)))))||(yyGetBool((yyGetBool(yyfless(_inst.x,300)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlfacing,(-1))))))){{_inst.gmlstate=6;yyInst(_inst,_other,gmlcont).gmly_down=gmlby;yyInst(_inst,_other,gmlcont).gmltd_time=g_pBuiltIn.get_current_time();
if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)){{if(yyfequal(yyInst(_inst,_other,104).gmlpractice_success,0)){{yyInst(_inst,_other,gmlcont).gmltap_msg="";_inst.gmlstate=16;};}else {{yyInst(_inst,_other,gmlcont).gmltap_msg="";_inst.gmlstate=17;};};};}else {if(yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmloffense)){{yyInst(_inst,_other,104).gmlscored_by=yyInst(_inst,_other,104).gmlpossession;if((yyGetBool(yyfless(yyInst(_inst,_other,gmlcont).gmldown,6)))||(yyGetBool(yyfequal(yyInst(_inst,
_other,gmlcont).gmldown,99)))){{yyInst(_inst,_other,gmlcont).gmlscorer=yyInst(_inst,_other,_inst.gmlholder).gmlpos_name2;gml_Script_s_complete_achievement(_inst,_other,"ACH_TOUCHDOWN1");(g_yyPrePostObject__=yyInst(_inst,_other,gmlcont).gmltouchdowns,yyInst(_inst,_other,gmlcont).gmltouchdowns=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,gmlcont).gmltouchdowns.add(1):++yyInst(_inst,_other,gmlcont).gmltouchdowns),g_yyPrePostObject__);if(yyfequal(yyInst(_inst,_other,gmlcont).gmltouchdowns,
3)){gml_Script_s_complete_achievement(_inst,_other,"ACH_TOUCHDOWN3");};if(yyfequal(yyInst(_inst,_other,gmlcont).gmltouchdowns,5)){gml_Script_s_complete_achievement(_inst,_other,"ACH_TOUCHDOWN5");};var gmlcount=gml_Script_s_count_achievement(_inst,_other,"ACH_TOUCHDOWN1");if(yyfgreaterequal(gmlcount,50)){gml_Script_s_complete_achievement(_inst,_other,"ACH_CAREER_TD50");};if(yyfgreaterequal(gmlcount,100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_CAREER_TD100");};if(yyfgreaterequal(gmlcount,
250)){gml_Script_s_complete_achievement(_inst,_other,"ACH_CAREER_TD250");};if(yyfgreaterequal(gmlcount,500)){gml_Script_s_complete_achievement(_inst,_other,"ACH_CAREER_TD500");};};}else {{yyInst(_inst,_other,gmlcont).gmlscorer=yyInst(_inst,_other,_inst.gmlholder).gmlpos_name2;gml_Script_s_complete_achievement(_inst,_other,"ACH_POINTAFTER2");};};gml_Script_s_update_yard_gain(_inst,_other);gml_Script_s_sound_audience_fg(_inst,_other);};}else {{yyInst(_inst,_other,104).gmlscored_by=!yyGetBool(yyInst(_inst,
_other,104).gmlpossession);gml_Script_s_sound_audience_fg(_inst,_other);};};};if(yyGetBool(_inst.gmlholder)){{{var __yy__v946=GetWithArray(106);for(var __yy__v947 in __yy__v946){if(!__yy__v946.hasOwnProperty(__yy__v947))continue;var __yy__v948=__yy__v946[__yy__v947];{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,_inst.gmlholder).id,__yy__v948.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmloffense,__yy__v948.gmloffense)))){{if((yyGetBool(yyfequal(__yy__v948.gmlanim,2)))||(yyGetBool(yyfequal(__yy__v948.gmlanim,
0)))||(yyGetBool(yyfequal(__yy__v948.gmlanim,1)))){gml_Script_s_set_anim(__yy__v948,_inst,17);};};};}}};};};};}else {if(yyfless(_inst.gmlheight,1)){{gml_Script_s_set_ball_down(_inst,_other);};};};};};};}else {{if((yyGetBool(yyfgreater(_inst.gmlbouncecount,0)))&&(yyGetBool(yyfequal(_inst.gmlstate,3)))){{_inst.gmlstate=7;gml_Script_s_sound_audience_inc(_inst,_other);var ___sw702___=yyInst(_inst,_other,97).gmlgamepractice;var ___swc703___=-1;if(yyCompareVal(___sw702___,1,g_GMLMathEpsilon,false)==0){___swc703___=0;
}else if(yyCompareVal(___sw702___,2,g_GMLMathEpsilon,false)==0){___swc703___=1;}else if(yyCompareVal(___sw702___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw702___,4,g_GMLMathEpsilon,false)==0){___swc703___=2;}switch(___swc703___){case 0:{break;}case 1:{break;}case 2:{_inst.gmlstate=17;yyInst(_inst,_other,104).gmlpractice_chain_qb_mode=0;gml_Script_s_sound(_inst,_other,9);break;}};};};};};};};};};};if(yyGetBool(gml_Script_s_is_ball_dead(_inst,_other))){{gml_Script_s_update_xdead(_inst,_other);};}
;};};}}function gml_GlobalScript_s_check_ball_collision(_inst,_other){(_inst.gmls_check_ball_collision=__yy_method(_inst,gml_Script_s_check_ball_collision));}function gml_Script_s_check_ball_collision(_inst,_other){{if(yyfgreater(_inst.gmlballdist,20)){return false;};if(yyGetBool(_inst.gmldead)){return;};if(yyGetBool(_inst.gmltackling)){return;};if(yyfequal(_inst.gmlanim,4)){return;};if(yyfequal(_inst.gmlposition,5)){return;};if((yyGetBool(yyfless(_inst.y,132)))||(yyGetBool(yyfgreater(_inst.y,468)))){
return;};var gmlball=global.gmlmaster_ball;var gmlcont=104;if((yyGetBool(yyfequal(_inst.gmlposition,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,3)))){return;};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmldropped_time),750))){return;};if(yyGetBool(yyInst(_inst,_other,gmlball).gmlis_dead)){return;};if(yyGetBool(yyInst(_inst,_other,gmlball).gmlholder)){return;};var gmlair_yards=yyfdivide(__yy_gml_errCheck(point_distance(_inst.x,
_inst.y,yyInst(_inst,_other,gmlball).gmlxthrow,yyInst(_inst,_other,gmlball).gmlythrow)),20);var gmlthrow_distance=0;gmlthrow_distance=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlx_scrim))),20);if(yyfequal(_inst.gmlfacing,(-1))){gmlthrow_distance=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlx_scrim),__yy_gml_errCheck(_inst.x))),20);};var ___sw708___=_inst.gmlanim;var ___swc709___=-1;if(yyCompareVal(___sw708___,
10,g_GMLMathEpsilon,false)==0){___swc709___=0;}else if(yyCompareVal(___sw708___,5,g_GMLMathEpsilon,false)==0){___swc709___=1;}switch(___swc709___){case 0:{if(yyfgreater(yyInst(_inst,_other,gmlball).gmlheight,60)){return false;};break;}case 1:{if(yyfgreater(yyInst(_inst,_other,gmlball).gmlheight,15)){return false;};break;}default :{if(yyfgreater(yyInst(_inst,_other,gmlball).gmlheight,30)){return false;};break;}};var ___sw710___=_inst.gmloffense;var ___swc711___=-1;if(yyCompareVal(___sw710___,true,g_GMLMathEpsilon,
false)==0){___swc711___=0;}else if(yyCompareVal(___sw710___,false,g_GMLMathEpsilon,false)==0){___swc711___=1;}switch(___swc711___){case 0:{if(yyfgreater(distance_to_point(_inst,yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y),100)){return false;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_receive_ball(_inst,_other);yyInst(_inst,_other,104).gmlkicking=0;yyInst(_inst,_other,104).gmlpossession=!yyGetBool(yyInst(_inst,
_other,104).gmlpossession);yyInst(_inst,_other,104).gmlx_scrim=clamp(yyInst(_inst,_other,gmlball).x,300,2300);};}else {if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,13)){{yyInst(_inst,_other,gmlball).gmlholder=_inst.id;yyInst(_inst,_other,gmlball).gmlstate=5;gml_Script_s_fieldtxt(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Recovered")),"!"));if(yyfnotequal(_inst.gmlanim,5)){gml_Script_s_set_anim(_inst,_other,5);};gml_Script_s_sound_bounce(_inst,_other);};}else {
if((yyGetBool(yyflessequal(gmlthrow_distance,0)))||(yyGetBool(!yyGetBool(gml_Script_s_check_tipped(_inst,_other))))){{var gmlcatch_radius=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmldifficulty),5)),15);if((yyGetBool(yyfgreaterequal(yyInst(_inst,_other,97).gmlop_difficulty,3)))&&(yyGetBool(_inst.gmlpmap))){gmlcatch_radius=yyfdivide(__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill")),11);};var gmlcdif=lerp(0.75,1,gmlcatch_radius);if(yyfgreater(_inst.gmlballdist,
yyftime(20,__yy_gml_errCheck(gmlcdif)))){{gml_Script_slog(_inst,_other,"catch radius fail");return false;};};gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_receive_ball(_inst,_other);if((yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlcont).gmlrunning_play)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,5)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,104).gmldrop_happened)))){{{var __yy__v949=GetWithArray(107);for(var __yy__v950 in __yy__v949){
if(!__yy__v949.hasOwnProperty(__yy__v950))continue;var __yy__v951=__yy__v949[__yy__v950];if((yyGetBool(__yy__v951.gmlpmap))&&(yyGetBool((yyGetBool(yyfequal(__yy__v951.gmlposition,1)))||(yyGetBool(yyfequal(__yy__v951.gmlposition,5)))))){ds_map_set_post(__yy__v951.gmlpmap,"stat_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v951.gmlpmap,"stat_complete")),1));};}};};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlcont).gmlrunning_play)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlmaster_ball).gmldropped_time,
0)))){{gml_Script_s_complete_achievement(_inst,_other,"ACH_PASS");if(yyfgreater(gmlthrow_distance,0)){{gml_Script_s_fieldtxt(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Caught")),"!"));gml_Script_s_check_record(_inst,_other,"ui_LongPassAir",gmlair_yards,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));};};};};};};};};break;}case 1:{var gmlcatch_radius=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmldifficulty),5)),15);var gmlcdif=lerp(0.9,0.5,gmlcatch_radius);if(yyfgreaterequal(yyInst(_inst,_other,97).gmlop_difficulty,3)){gmlcdif=lerp(0.95,0.8,gmlcatch_radius);};if(yyfgreater(_inst.gmlballdist,yyftime(20,__yy_gml_errCheck(gmlcdif)))){return false;};if(yyfless(distance_to_point(_inst,yyInst(_inst,_other,gmlball).gmlxthrow,yyInst(_inst,_other,gmlball).gmlythrow),100)){return false;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gml_Script_s_sound_bounce(_inst,_other);
gml_Script_s_receive_ball(_inst,_other);yyInst(_inst,_other,104).gmlkicking=0;};}else {if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,13)){{yyInst(_inst,_other,gmlball).gmlholder=_inst.id;yyInst(_inst,_other,gmlball).gmlstate=10;gml_Script_s_create_match_message(_inst,_other,10);if(yyfnotequal(_inst.gmlanim,5)){gml_Script_s_set_anim(_inst,_other,5);};gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_sound_audience_dis(_inst,_other);};}else {if(!yyGetBool(gml_Script_s_check_tipped(_inst,_other))){
{gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_receive_ball(_inst,_other);if(yyfequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlfumble_time,0)){{yyInst(_inst,_other,gmlball).gmlstate=9;if((yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlcont).gmlrunning_play)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlcont).gmldown,5)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))){{var gmlqb=gml_Script_s_get_quarterback(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(yyInst(_inst,_other,
gmlqb).gmlpmap))){ds_map_set_post(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_int")),1));};};};gml_Script_s_create_match_message(_inst,_other,9);};};gml_Script_s_sound_audience_dis(_inst,_other);};};};};break;}};}}function gml_GlobalScript_s_check_tipped(_inst,_other){(_inst.gmls_check_tipped=__yy_method(_inst,gml_Script_s_check_tipped));}function gml_Script_s_check_tipped(_inst,_other){{if(yyGetBool(yyInst(_inst,
_other,97).gmlgamepractice)){return false;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return false;};var ___sw714___=_inst.gmlanim;var ___swc715___=-1;if(yyCompareVal(___sw714___,10,g_GMLMathEpsilon,false)==0){___swc715___=0;}else if(yyCompareVal(___sw714___,5,g_GMLMathEpsilon,false)==0){___swc715___=1;}switch(___swc715___){case 0:{break;}case 1:{return false;break;}default :{var gmllow_catch=lerp(0.5,0.4,yyftime(__yy_gml_errCheck(_inst.gmlskill),0.1));if(yyfgreaterequal(yyInst(_inst,_other,
97).gmlop_difficulty,3)){gmllow_catch=lerp(0.55,0.45,yyftime(__yy_gml_errCheck(_inst.gmlskill),0.1));};{var __yy__v952=GetWithArray(117);for(var __yy__v953 in __yy__v952){if(!__yy__v952.hasOwnProperty(__yy__v953))continue;var __yy__v954=__yy__v952[__yy__v953];if(yyfnotequal(__yy__v954.gmltype,0)){gmllow_catch=yyfplus(gmllow_catch,0.05);};}};var gmlch=30;if(yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlbullet_throw)){gmlch=yyfplus(gmlch,5);};if(yyfless(yyInst(_inst,_other,global.gmlmaster_ball).gmlheight,
yyftime(__yy_gml_errCheck(gmlch),__yy_gml_errCheck(gmllow_catch)))){{gml_Script_slog(_inst,_other,">>> Tipped: low");gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_drop_ball(_inst,_other,false);return true;};};break;}};if((yyGetBool(_inst.gmloffense))&&(yyGetBool(_inst.gmlintheclear))){return false;};if(!yyGetBool(_inst.gmlnearest_opp)){return false;};var gmloppballdist=yyInst(_inst,_other,_inst.gmlnearest_opp).gmlballdist;if(yyGetBool(_inst.gmloffense)){{if(!yyGetBool(_inst.gmlpmap)){gmloppballdist=yyfminus(gmloppballdist,
2);};if(yyfgreater(yyInst(_inst,_other,global.gmlmaster_ball).gmldropped_time,0)){gmloppballdist=yyfplus(gmloppballdist,5);};};}else {{gmloppballdist=yyfminus(gmloppballdist,5);};};if((yyGetBool(yyfless(gmloppballdist,_inst.gmlballdist)))||(yyGetBool(yyInst(_inst,_other,104).gmlkicking))){{gml_Script_slog(_inst,_other,">>> Tipped: pressure");gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_drop_ball(_inst,_other,false);return true;};};return false;}}function gml_GlobalScript_s_drop_ball(_inst,_other){
(_inst.gmls_drop_ball=__yy_method(_inst,gml_Script_s_drop_ball));}function gml_Script_s_drop_ball(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_drop_ball: Dropped!");{var __yy__v955=GetWithArray(global.gmlmaster_ball);for(var __yy__v956 in __yy__v955){if(!__yy__v955.hasOwnProperty(__yy__v956))continue;var __yy__v957=__yy__v955[__yy__v956];{__yy__v957.gmldirec=yyfplus(__yy_gml_errCheck(_inst.gmljdir),__yy_gml_errCheck(irandom_range((-20),20)));__yy__v957.gmlvelocity=yyfplus(1,__yy_gml_errCheck(random_range(0.1,
1)));__yy__v957.gmlzvel=clamp(random(yyftime(__yy_gml_errCheck(__yy__v957.gmlheight),0.1)),0.1,2);__yy__v957.gmlroll=yyfplus(5,__yy_gml_errCheck(irandom(5)));__yy__v957.gmldropped_time=yyfminus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(irandom(250)));if(yyGetBool(argument0)){__yy__v957.gmlfumble_time=g_pBuiltIn.get_current_time();};if((yyGetBool(argument0))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(__yy__v957.gmlholder))&&(yyGetBool(yyInst(_inst,
_other,__yy__v957.gmlholder).gmlpmap))){ds_map_set_post(yyInst(_inst,_other,__yy__v957.gmlholder).gmlpmap,"stat_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,__yy__v957.gmlholder).gmlpmap,"stat_fumbles")),1));};__yy__v957.gmlstate=3;__yy__v957.gmlholder=(-4);if(yyGetBool(argument0)){{gml_Script_s_fieldtxt(__yy__v957,_inst,yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v957,_inst,"match_Fumble")),"!"));yyInst(_inst,_other,104).gmldrop_happened=true;};};}}};}}function gml_GlobalScript_s_check_dummy_collision(_inst,
_other){(_inst.gmls_check_dummy_collision=__yy_method(_inst,gml_Script_s_check_dummy_collision));(_inst.gmls_sound_training_success=__yy_method(_inst,gml_Script_s_sound_training_success));}function gml_Script_s_check_dummy_collision(_inst,_other){{if((yyGetBool(yyfless(_inst.gmlheight,24)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlis_dead)))){{if(yyfless(distance_to_object(_inst,109),8)){{gml_Script_slog(_inst,_other,yyfplus("bheight:",__yy_gml_errCheck(string(_inst.gmlheight))));
gml_Script_s_sound_bounce(_inst,_other);if(yyfgreaterequal(_inst.gmllastheight,22)){{_other.gmlzvel=1;};}else {{_inst.gmldirec=yyfplus(_inst.gmldirec,yyfplus(180,__yy_gml_errCheck(random_range((-30),30))));};};var ___sw718___=yyInst(_inst,_other,97).gmlgamepractice;var ___swc719___=-1;if(yyCompareVal(___sw718___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw718___,4,g_GMLMathEpsilon,false)==0){___swc719___=0;}switch(___swc719___){case 0:{var gmlqb=gml_Script_s_get_quarterback(_inst,_other);var gmlscr=yyfdivide(__yy_gml_errCheck(yyfplus(1,
__yy_gml_errCheck(point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlqb).x,yyInst(_inst,_other,gmlqb).y)))),20);gmlscr=yyftime(gmlscr,yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlpractice_chain_qb_mode),5))));gmlscr=round(gmlscr);yyInst(_inst,_other,104).gmlpractice_score_qb_mode=yyfplus(yyInst(_inst,_other,104).gmlpractice_score_qb_mode,gmlscr);yyInst(_inst,_other,104).gmlpractice_chain_qb_mode=yyfplus(yyInst(_inst,_other,104).gmlpractice_chain_qb_mode,
1);yyInst(_inst,_other,104).gmltap_msg="";_inst.gmlstate=16;gml_Script_s_fieldtxt(_inst,_other,yyfplus("+",__yy_gml_errCheck(string(gmlscr))));gml_Script_s_sound_training_success(_inst,_other,yyInst(_inst,_other,104).gmlpractice_chain_qb_mode);gml_Script_slog(_inst,_other,yyfplus("Chain = ",__yy_gml_errCheck(string(yyInst(_inst,_other,104).gmlpractice_chain_qb_mode))));break;}default :{_inst.gmlstate=17;yyInst(_inst,_other,104).gmlpractice_chain_qb_mode=0;gml_Script_s_sound(_inst,_other,9);break;
}};};};};};}}function gml_Script_s_sound_training_success(_inst,_other,argument0){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){return;};var gmlsnd=audio_play_sound(19,1,false);var gmlp=lerp(0.5,1.5,yyfdivide(__yy_gml_errCheck(min(argument0,20)),20));audio_sound_pitch(gmlsnd,gmlp);}}function gml_GlobalScript_s_kick_ball(_inst,_other){(_inst.gmls_kick_ball=__yy_method(_inst,gml_Script_s_kick_ball));}function gml_Script_s_kick_ball(_inst,_other){{if((yyGetBool(!yyGetBool(yyInst(_inst,
_other,97).gmlgamepractice)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))))){{{var __yy__v958=GetWithArray(_inst.gmlholder);for(var __yy__v959 in __yy__v958){if(!__yy__v958.hasOwnProperty(__yy__v959))continue;var __yy__v960=__yy__v958[__yy__v959];{if(yyGetBool(__yy__v960.gmlpmap)){{if(yyfequal(yyInst(_inst,_other,104).gmlkicking,1)){ds_map_set(__yy__v960.gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v960.gmlpmap,"stat_attempts")),1));}else {ds_map_set(__yy__v960.gmlpmap,
"stat_attempts_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v960.gmlpmap,"stat_attempts_XP")),1));};};};}}};};};{var __yy__v961=GetWithArray(_inst.gmlholder);for(var __yy__v962 in __yy__v961){if(!__yy__v961.hasOwnProperty(__yy__v962))continue;var __yy__v963=__yy__v961[__yy__v962];gml_Script_s_set_anim(__yy__v963,_inst,15);}};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{if(yyfless(_inst.gmlkickpow,15)){{_inst.gmlvelocity=yyftime(_inst.gmlvelocity,1.5);_inst.gmlzvel=yyftime(_inst.gmlzvel,
0.5);};}else {{_inst.gmlvelocity=yyftime(_inst.gmlvelocity,0.7);_inst.gmlzvel=yyfplus(_inst.gmlzvel,2.2);};};};}else {{var gmlplacing=false;{var __yy__v964=GetWithArray(107);for(var __yy__v965 in __yy__v964){if(!__yy__v964.hasOwnProperty(__yy__v965))continue;var __yy__v966=__yy__v964[__yy__v965];if(yyfequal(__yy__v966.gmlanim,13)){gmlplacing=true;};}};if(!yyGetBool(gmlplacing)){_inst.gmlvelocity=yyftime(_inst.gmlvelocity,random_range(0.4,0.7));};};};_inst.gmlxthrow=_inst.x;_inst.gmlythrow=_inst.y;_inst.gmlstate=3;
_inst.gmlroll=yyfplus(9,__yy_gml_errCheck(irandom(9)));_inst.gmlholder=(-4);gml_Script_s_sound_kick(_inst,_other);if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlminutes,yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlop_matchlength)))))){gml_Script_s_sound_audience_fg(_inst,_other);};if(yyfnotequal(yyInst(_inst,_other,104).gmltap_msg,"")){gml_Script_slog(_inst,_other,
"s_kick_ball");};yyInst(_inst,_other,104).gmltap_msg="";}}function gml_GlobalScript_s_spike_ball(_inst,_other){(_inst.gmls_spike_ball=__yy_method(_inst,gml_Script_s_spike_ball));}function gml_Script_s_spike_ball(_inst,_other){{gml_Script_slog(_inst,_other,"s_spike_ball");{var __yy__v967=GetWithArray(global.gmlmaster_ball);for(var __yy__v968 in __yy__v967){if(!__yy__v967.hasOwnProperty(__yy__v968))continue;var __yy__v969=__yy__v967[__yy__v968];{if(yyGetBool(__yy__v969.gmlholder)){{__yy__v969.x=yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,__yy__v969.gmlholder).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v969.gmlholder).gmlfacing),4)));__yy__v969.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v969.gmlholder).y),2);__yy__v969.gmldirec=yyInst(_inst,_other,__yy__v969.gmlholder).gmljdir;};};__yy__v969.gmlheight=1;__yy__v969.gmlvelocity=4;__yy__v969.gmlzvel=(-5);__yy__v969.gmlholder=(-4);gml_Script_s_sound_bounce(__yy__v969,_inst);}}};}}function gml_GlobalScript_s_set_ball_down(_inst,_other){(_inst.gmls_set_ball_down=__yy_method(_inst,
gml_Script_s_set_ball_down));}function gml_Script_s_set_ball_down(_inst,_other){{gml_Script_slog(_inst,_other,"s_set_ball_down");{var __yy__v970=GetWithArray(global.gmlmaster_ball);for(var __yy__v971 in __yy__v970){if(!__yy__v970.hasOwnProperty(__yy__v971))continue;var __yy__v972=__yy__v970[__yy__v971];{__yy__v972.gmlstate=4;yyInst(_inst,_other,104).gmly_down=__yy__v972.y;if(yyGetBool(__yy__v972.gmlholder)){yyInst(_inst,_other,104).gmly_down=yyInst(_inst,_other,__yy__v972.gmlholder).y;};if(yyfequal(yyInst(_inst,
_other,97).gmlgamepractice,2)){{if(yyfequal(yyInst(_inst,_other,104).gmlpractice_success,0)){__yy__v972.gmlstate=17;}else {__yy__v972.gmlstate=16;};};}else {if(yyGetBool(__yy__v972.gmlholder)){{if(yyfequal(yyInst(_inst,_other,__yy__v972.gmlholder).gmlmin_x,(-1))){yyInst(_inst,_other,__yy__v972.gmlholder).gmlmin_x=yyInst(_inst,_other,global.gmlmaster_ball).x;};if(yyfequal(yyInst(_inst,_other,__yy__v972.gmlholder).gmlmax_x,(-1))){yyInst(_inst,_other,__yy__v972.gmlholder).gmlmax_x=yyInst(_inst,_other,
global.gmlmaster_ball).x;};var gmlbx=yyInst(_inst,_other,global.gmlmaster_ball).x;var gmlis_qb=(yyGetBool(__yy__v972.gmlholder))&&(yyGetBool(yyfequal(yyInst(_inst,_other,__yy__v972.gmlholder).gmlposition,1)));if((yyGetBool(gmlis_qb))&&(yyGetBool((yyGetBool((yyGetBool(yyfgreater(gmlbx,yyInst(_inst,_other,104).gmlx_scrim)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))))))||(yyGetBool((yyGetBool(yyfless(gmlbx,yyInst(_inst,_other,104).gmlx_scrim)))&&(yyGetBool(yyfequal(yyInst(_inst,
_other,104).gmldrivedir,1)))))))){{__yy__v972.gmlxdead=gmlbx;__yy__v972.gmlstate=11;if((yyGetBool(yyInst(_inst,_other,__yy__v972.gmlholder).gmlpmap))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,5)))){ds_map_set_post(yyInst(_inst,_other,__yy__v972.gmlholder).gmlpmap,"stat_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,__yy__v972.gmlholder).gmlpmap,"stat_sacks")),1));};{var __yy__v973=GetWithArray(107);for(var __yy__v974 in __yy__v973){if(!__yy__v973.hasOwnProperty(__yy__v974))continue;
var __yy__v975=__yy__v973[__yy__v974];if((yyGetBool(yyfequal(__yy__v975.gmlposition,5)))&&(yyGetBool(__yy__v975.gmlpmap))){ds_map_set_post(__yy__v975.gmlpmap,"stat_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v975.gmlpmap,"stat_sacks")),1));};}};gml_Script_slog(__yy__v972,_inst,yyfplus("SACKED! ball.xdead = ",__yy_gml_errCheck(string(yyInst(_inst,_other,global.gmlmaster_ball).x))));gml_Script_s_sound_audience_dis(__yy__v972,_inst);};};var ___sw722___=yyInst(_inst,_other,104).gmldrivedir;
var ___swc723___=-1;if(yyCompareVal(___sw722___,(-1),g_GMLMathEpsilon,false)==0){___swc723___=0;}else if(yyCompareVal(___sw722___,1,g_GMLMathEpsilon,false)==0){___swc723___=1;}switch(___swc723___){case 0:{if(yyfgreater(__yy__v972.x,2300)){{if((yyGetBool(gml_Script_s_is_kickoff(__yy__v972,_inst,true)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,__yy__v972.gmlholder).gmllast_tackled)))){{if(yyfgreaterequal(yyInst(_inst,_other,__yy__v972.gmlholder).gmlmin_x,2300)){__yy__v972.gmlstate=20;};__yy__v972.gmlydead=round(__yy__v972.y);
__yy__v972.gmlxdead=round(__yy__v972.x);};}else {__yy__v972.gmlstate=12;};gml_Script_s_sound_audience_dis(__yy__v972,_inst);return;};};break;}case 1:{if(yyfless(__yy__v972.x,300)){{if((yyGetBool(gml_Script_s_is_kickoff(__yy__v972,_inst,true)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,__yy__v972.gmlholder).gmllast_tackled)))){{if(yyflessequal(yyInst(_inst,_other,__yy__v972.gmlholder).gmlmax_x,300)){__yy__v972.gmlstate=20;};__yy__v972.gmlydead=round(__yy__v972.y);__yy__v972.gmlxdead=round(__yy__v972.x);
};}else {__yy__v972.gmlstate=12;};gml_Script_s_sound_audience_dis(__yy__v972,_inst);return;};};break;}};gml_Script_s_update_yard_gain(__yy__v972,_inst);};};};}}};}}function gml_GlobalScript_s_receive_ball(_inst,_other){(_inst.gmls_receive_ball=__yy_method(_inst,gml_Script_s_receive_ball));}function gml_Script_s_receive_ball(_inst,_other){{gml_Script_slog(_inst,_other,"s_receive_ball");{var __yy__v976=GetWithArray(global.gmlmaster_ball);for(var __yy__v977 in __yy__v976){if(!__yy__v976.hasOwnProperty(__yy__v977))continue;
var __yy__v978=__yy__v976[__yy__v977];{__yy__v978.gmlholder=_inst.id;__yy__v978.gmllast_touched_by=_inst.id;__yy__v978.gmlstate=5;__yy__v978.gmlxreceived=__yy__v978.x;__yy__v978.gmlyreceived=__yy__v978.y;}}};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{if(yyGetBool(_inst.gmlrewarded_route)){{gml_Script_s_sound(_inst,_other,19);if(yyGetBool(_inst.gmlpmap)){{ds_map_set(_inst.gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"attitude")),1),1,100));gml_Script_s_fieldimg(_inst,
_other,99,0,2);};}else {{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);ds_map_set(gmlqb,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"xp_gain")),2));gml_Script_s_fieldimg(_inst,_other,92,0,2);};};};};{var __yy__v979=GetWithArray(107);for(var __yy__v980 in __yy__v979){if(!__yy__v979.hasOwnProperty(__yy__v980))continue;var __yy__v981=__yy__v979[__yy__v980];__yy__v981.gmlrewarded_route=false;}};};};global.gmlflickVelX=0;global.gmlflickVelY=0;}}function gml_GlobalScript_s_opposite_aim(_inst,
_other,argument0){(_inst.gmls_opposite_aim=__yy_method(_inst,gml_Script_s_opposite_aim));}function gml_Script_s_opposite_aim(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("Direc = ",__yy_gml_errCheck(string(_inst.gmldirec))));var gmldir=argument0;while(yyfless(gmldir,0)){gmldir=yyfplus(gmldir,360)};while(yyfgreater(gmldir,359)){gmldir=yyfminus(gmldir,360)};var ___sw726___=yyInst(_inst,_other,104).gmldrivedir;var ___swc727___=-1;if(yyCompareVal(___sw726___,(-1),g_GMLMathEpsilon,false)==0){
___swc727___=0;}else if(yyCompareVal(___sw726___,1,g_GMLMathEpsilon,false)==0){___swc727___=1;}switch(___swc727___){case 0:{if((yyGetBool(yyfgreater(gmldir,280)))||(yyGetBool(yyfless(gmldir,80)))){return true;};break;}case 1:{if((yyGetBool(yyfgreater(gmldir,100)))&&(yyGetBool(yyfless(gmldir,260)))){return true;};break;}};}}function gml_GlobalScript_s_update_xdead(_inst,_other){(_inst.gmls_update_xdead=__yy_method(_inst,gml_Script_s_update_xdead));}function gml_Script_s_update_xdead(_inst,_other){{_inst.gmlydead=round(_inst.y);
_inst.gmlxdead=round(_inst.x);var gmlis_qb=false;if((yyGetBool(_inst.gmlholder))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlposition,1)))||(yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmlqb_rushing))))){gmlis_qb=true;};if((yyGetBool(_inst.gmlholder))&&(yyGetBool(!yyGetBool(gmlis_qb)))){{if(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlmin_x,(-1))){yyInst(_inst,_other,_inst.gmlholder).gmlmin_x=yyInst(_inst,_other,global.gmlmaster_ball).x;};if(yyfequal(yyInst(_inst,
_other,_inst.gmlholder).gmlmax_x,(-1))){yyInst(_inst,_other,_inst.gmlholder).gmlmax_x=yyInst(_inst,_other,global.gmlmaster_ball).x;};var ___sw730___=yyInst(_inst,_other,104).gmldrivedir;var ___swc731___=-1;if(yyCompareVal(___sw730___,(-1),g_GMLMathEpsilon,false)==0){___swc731___=0;}else if(yyCompareVal(___sw730___,1,g_GMLMathEpsilon,false)==0){___swc731___=1;}switch(___swc731___){case 0:{_inst.gmlxdead=yyInst(_inst,_other,_inst.gmlholder).gmlmin_x;if(yyfequal(_inst.gmlstate,6)){_inst.gmlxdead=300;};
if(!yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmloffense)){{_inst.gmlxdead=yyInst(_inst,_other,_inst.gmlholder).gmlmax_x;if(yyfequal(_inst.gmlstate,6)){_inst.gmlxdead=2300;};};};break;}case 1:{_inst.gmlxdead=yyInst(_inst,_other,_inst.gmlholder).gmlmax_x;if(yyfequal(_inst.gmlstate,6)){_inst.gmlxdead=2300;};if(!yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmloffense)){{_inst.gmlxdead=yyInst(_inst,_other,_inst.gmlholder).gmlmin_x;if(yyfequal(_inst.gmlstate,6)){_inst.gmlxdead=300;};};};break;}
};};};}}function gml_GlobalScript_s_set_skills_and_skin(_inst,_other){(_inst.gmls_set_skills_and_skin=__yy_method(_inst,gml_Script_s_set_skills_and_skin));}function gml_Script_s_set_skills_and_skin(_inst,_other){{gml_Script_slog(_inst,_other,"s_set_skills_and_skin");var gmlskin=irandom(2);if(yyfgreater(irandom(9),1)){gmlskin=0;};var gmlteam_offense=1;var gmloc=gml_Script_s_get_staff(_inst,_other,102);if(yyGetBool(gmloc)){gmlteam_offense=clamp(real(yyftime(__yy_gml_errCheck(ds_map_find_value(gmloc,"rating")),
0.5)),1,5);};var gmlteam_defense=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlteam_defense[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,104).gmlhuman_team)?1:0,yyInst(_inst,_other,104).gmlteam_defense)]),__yy_gml_errCheck(yyInst(_inst,_other,104).gmldifficulty));if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){gmlteam_defense=15;};gmlteam_defense=clamp(gmlteam_defense,2,15);var gmlspecialteams=1;var gmldc=gml_Script_s_get_staff(_inst,_other,101);if(yyGetBool(gmldc)){gmlspecialteams=clamp(real(yyftime(__yy_gml_errCheck(ds_map_find_value(gmloc,
"rating")),0.5)),1,5);};var gmlte_blockers=0;{var __yy__v982=GetWithArray(106);for(var __yy__v983 in __yy__v982){if(!__yy__v982.hasOwnProperty(__yy__v983))continue;var __yy__v984=__yy__v982[__yy__v983];{if(yyGetBool(__yy__v984.gmlte_blocking)){(g_yyPrePostObject__=gmlte_blockers,gmlte_blockers=(g_yyPrePostObject__ instanceof Long?gmlte_blockers.add(1):++gmlte_blockers),g_yyPrePostObject__);}else {if((yyGetBool(__yy__v984.gmlpmap))&&(yyGetBool(yyfequal(ds_map_find_value(__yy__v984.gmlpmap,"position"),5)))){
(g_yyPrePostObject__=gmlte_blockers,gmlte_blockers=(g_yyPrePostObject__ instanceof Long?gmlte_blockers.add(1):++gmlte_blockers),g_yyPrePostObject__);};};}}};_inst.gmlpmap=(-4);if(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{if(yyGetBool(_inst.gmloffense)){{var ___sw744___=_inst.gmlinum;var ___swc745___=-1;if(yyCompareVal(___sw744___,1,g_GMLMathEpsilon,false)==0){___swc745___=0;}else if(yyCompareVal(___sw744___,2,g_GMLMathEpsilon,false)==0){___swc745___=1;}else if(yyCompareVal(___sw744___,
9,g_GMLMathEpsilon,false)==0){___swc745___=2;}else if(yyCompareVal(___sw744___,11,g_GMLMathEpsilon,false)==0){___swc745___=3;}else if(yyCompareVal(___sw744___,10,g_GMLMathEpsilon,false)==0){___swc745___=4;}else if(yyCompareVal(___sw744___,8,g_GMLMathEpsilon,false)==0){___swc745___=5;}else if(yyCompareVal(___sw744___,3,g_GMLMathEpsilon,false)==0){___swc745___=6;}else if(yyCompareVal(___sw744___,4,g_GMLMathEpsilon,false)==0){___swc745___=7;}else if(yyCompareVal(___sw744___,5,g_GMLMathEpsilon,false)==0){
___swc745___=8;}else if(yyCompareVal(___sw744___,6,g_GMLMathEpsilon,false)==0){___swc745___=9;}else if(yyCompareVal(___sw744___,7,g_GMLMathEpsilon,false)==0){___swc745___=10;}switch(___swc745___){case 0:{if(yyGetBool(yyInst(_inst,_other,104).gmlkicking)){_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,10,1);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,1,1);};break;}case 1:{_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,1);break;
}case 2:{if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,4)))){_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,1);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,2);};break;}case 3:{if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,4)))){_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,
_other,_inst.gmlposition,2);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,1);};break;}case 4:{if(yyfequal(gml_Script_s_count_players_onfield_by_position(_inst,_other,3),1)){{if(!yyGetBool(_inst.gmlte_blocking)){_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,1);};};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,4)))){_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,
_other,_inst.gmlposition,1);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,2);};};break;}case 5:{if(yyfequal(gml_Script_s_count_players_onfield_by_position(_inst,_other,3),1)){{_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,1);{var __yy__v985=GetWithArray(106);for(var __yy__v986 in __yy__v985){if(!__yy__v985.hasOwnProperty(__yy__v986))continue;var __yy__v987=__yy__v985[__yy__v986];if((yyGetBool(yyfequal(__yy__v987.gmlinum,10)))&&(yyGetBool(__yy__v987.gmlpmap))){
_inst.gmlpmap=(-4);};}};};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlquarter,4)))){_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,2);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,1);};};break;}case 6:{_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,3);break;}case 7:{_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,
_other,_inst.gmlposition,1);break;}case 8:{_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,2);break;}case 9:{_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,4);break;}case 10:{_inst.gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,_inst.gmlposition,5);break;}};};};};}else {if(yyfequal(_inst.gmlposition,14)){{_inst.gmlpmap=gml_Script_s_get_player_kick_returner(_inst,_other);};};};if(yyGetBool(_inst.gmlpmap)){{_inst.gmlname=true;
gml_Script_slog(_inst,_other,yyfplus("pmap name = ",__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname"))));};};if(yyGetBool(global.gmlexhibition)){{_inst.gmlpmap=(-4);gmlteam_offense=yyInst(_inst,_other,104).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,_other,104).gmlpossession,yyInst(_inst,_other,104).gmlteam_offense)];gmlteam_defense=yyInst(_inst,_other,104).gmlteam_defense[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,104).gmlpossession)?1:0,yyInst(_inst,_other,104).gmlteam_defense)];
};};var ___sw746___=_inst.gmlposition;var ___swc747___=-1;if(yyCompareVal(___sw746___,12,g_GMLMathEpsilon,false)==0){___swc747___=0;}else if(yyCompareVal(___sw746___,13,g_GMLMathEpsilon,false)==0){___swc747___=1;}else if(yyCompareVal(___sw746___,14,g_GMLMathEpsilon,false)==0){___swc747___=2;}else if(yyCompareVal(___sw746___,1,g_GMLMathEpsilon,false)==0){___swc747___=3;}else if(yyCompareVal(___sw746___,11,g_GMLMathEpsilon,false)==0){___swc747___=4;}else if(yyCompareVal(___sw746___,10,g_GMLMathEpsilon,false)==0){
___swc747___=5;}else if(yyCompareVal(___sw746___,5,g_GMLMathEpsilon,false)==0){___swc747___=6;}else if(yyCompareVal(___sw746___,3,g_GMLMathEpsilon,false)==0){___swc747___=7;}else if(yyCompareVal(___sw746___,2,g_GMLMathEpsilon,false)==0){___swc747___=8;}else if(yyCompareVal(___sw746___,4,g_GMLMathEpsilon,false)==0){___swc747___=9;}else if(yyCompareVal(___sw746___,6,g_GMLMathEpsilon,false)==0){___swc747___=10;}else if(yyCompareVal(___sw746___,7,g_GMLMathEpsilon,false)==0){___swc747___=11;}else if(yyCompareVal(___sw746___,
9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw746___,8,g_GMLMathEpsilon,false)==0){___swc747___=12;}switch(___swc747___){case 0:{gmlteam_defense=min(gmlteam_defense,10);_inst.gmlcollsize=10;_inst.gmlstrength=yyfplus(__yy_gml_errCheck(random_range(2.1,2.5)),__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(random(gmlteam_defense)))));_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(21,__yy_gml_errCheck(gmlteam_defense))),__yy_gml_errCheck(irandom_range(3,5)));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,
__yy_gml_errCheck(random_range(0.03,0.04))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlstamina=clamp(yyfminus(__yy_gml_errCheck(gmlteam_defense),__yy_gml_errCheck(irandom(2))),1,8);gml_Script_s_set_anim(_inst,_other,1);break;}case 1:{_inst.gmlcollsize=10;_inst.gmlstrength=yyfplus(2.5,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(random(gmlspecialteams)))));_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(21,__yy_gml_errCheck(gmlteam_defense))),__yy_gml_errCheck(irandom_range(3,
5)));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.03,0.04))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlspecialteams))));_inst.gmlstamina=clamp(yyfminus(__yy_gml_errCheck(gmlspecialteams),__yy_gml_errCheck(irandom(2))),1,8);break;}case 2:{_inst.gmlcollsize=10;_inst.gmlstrength=yyfplus(2.5,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlmy_tackle_limit=yyfplus(20,__yy_gml_errCheck(gmlspecialteams));_inst.gmlmy_accel=yyfplus(0.10500000000000001,
__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlspecialteams))));_inst.gmlstamina=clamp(yyfminus(__yy_gml_errCheck(gmlspecialteams),__yy_gml_errCheck(irandom(2))),1,8);_inst.gmlstiff_arm=0;_inst.gmljumps=0;if(yyGetBool(_inst.gmlpmap)){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.10500000000000001,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,
_other,_inst.gmlpmap,"speed")))));if(yyfless(irandom(15),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strenth"))){(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.add(1):++_inst.gmlstiff_arm),g_yyPrePostObject__);};if(yyfless(irandom(15),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),
g_yyPrePostObject__);};};}else {{var ___sw748___=irandom(1);var ___swc749___=-1;if(yyCompareVal(___sw748___,0,g_GMLMathEpsilon,false)==0){___swc749___=0;}else if(yyCompareVal(___sw748___,1,g_GMLMathEpsilon,false)==0){___swc749___=1;}switch(___swc749___){case 0:{_inst.gmlstiff_arm=irandom(1);break;}case 1:{_inst.gmljumps=irandom(1);break;}};};};break;}case 3:{_inst.gmlcollsize=5;if(yyfnotequal(_inst.gmlpmap,(-4))){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,
_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.095,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));_inst.gmlskill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");yyInst(_inst,_other,104).gmlroute_alpha=yyfplus(1,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")));if((yyGetBool(!yyGetBool(yyInst(_inst,_other,104).gmlkicking)))&&(yyGetBool(yyfless(gml_Script_s_count_audibles(_inst,
_other),0)))){yyInst(_inst,_other,104).gmlaudibles=gml_Script_s_get_num_audibles(_inst,_other,_inst.gmlpmap);};};}else {{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_accel=yyfplus(0.065,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=1;if((yyGetBool(!yyGetBool(yyInst(_inst,_other,104).gmlkicking)))&&(yyGetBool(yyfless(gml_Script_s_count_audibles(_inst,_other),0)))&&(yyGetBool((yyGetBool(yyfgreater(yyInst(_inst,
_other,97).gmlyear,1)))||(yyGetBool(global.gmlexhibition))))){gml_Script_s_set_audibles(_inst,_other,3);};};};gml_Script_s_set_anim(_inst,_other,0);break;}case 4:{gml_Script_s_set_anim(_inst,_other,13);}case 5:{_inst.gmlcollsize=5;if(yyfnotequal(_inst.gmlpmap,(-4))){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.045,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,
_other,_inst.gmlpmap,"speed")))));_inst.gmlskill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");};}else {{_inst.gmlskill=1;_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlmy_accel=yyfplus(0.045,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));};};break;}case 6:{_inst.gmlcollsize=10;var gmlstr=yyfplus(4.75,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlte_blockers),0.85)));var gmltacklimit=yyfplus(yyfplus(20,
__yy_gml_errCheck(yyInst(_inst,_other,104).gmldifficulty)),__yy_gml_errCheck(yyftime(5.5,__yy_gml_errCheck(gmlte_blockers))));if(yyGetBool(_inst.gmlpmap)){{_inst.gmlstrength=yyfplus(__yy_gml_errCheck(gmlstr),__yy_gml_errCheck(yyftime(0.4,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.055,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmltacklimit),
__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill")))),5);};}else {{_inst.gmlstrength=yyfplus(__yy_gml_errCheck(gmlstr),__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(yyInst(_inst,_other,104).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,_other,104).gmlhuman_team,yyInst(_inst,_other,104).gmlteam_offense)]))));_inst.gmlmy_accel=yyfplus(0.035,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(yyInst(_inst,_other,104).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,
_other,104).gmlhuman_team,yyInst(_inst,_other,104).gmlteam_offense)]))));_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(gmltacklimit),__yy_gml_errCheck(irandom_range(3,4)));};};gml_Script_s_set_anim(_inst,_other,1);break;}case 7:{if(yyGetBool(_inst.gmlpmap)){{_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(yyfplus(20,__yy_gml_errCheck(yyInst(_inst,_other,104).gmldifficulty)),__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill")))),4);_inst.gmlmy_accel=yyfplus(0.095,
__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));};}else {_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(20,__yy_gml_errCheck(yyInst(_inst,_other,104).gmldifficulty))),__yy_gml_errCheck(irandom_range(2,3)));};}case 8:{_inst.gmlcollsize=5;if(yyfnotequal(_inst.gmlpmap,(-4))){{_inst.gmlstrength=yyfplus(2,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));if(yyfequal(_inst.gmlposition,
2)){_inst.gmlmy_accel=yyfplus(0.10500000000000001,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));};_inst.gmlskill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");_inst.gmlstiff_arm=irandom(1);if((yyGetBool(yyfequal(_inst.gmlstiff_arm,0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength"),6)))){_inst.gmlstiff_arm=1;};if(yyfless(irandom(10),gml_Script_s_get_attribute(_inst,
_other,_inst.gmlpmap,"strength"))){(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.add(1):++_inst.gmlstiff_arm),g_yyPrePostObject__);};_inst.gmljumps=irandom(1);if(yyfless(irandom(10),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),g_yyPrePostObject__);};if((yyGetBool(yyfequal(_inst.gmljumps,
0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"),10)))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),g_yyPrePostObject__);};if((yyGetBool(yyfequal(_inst.gmlposition,2)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,0)))){{_inst.gmlstiff_arm=yyfminus(_inst.gmlstiff_arm,irandom(1));_inst.gmljumps=yyfminus(_inst.gmljumps,irandom(1));};}else {if(yyfless(yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other))),irandom(10))){{var ___sw750___=irandom(1);var ___swc751___=-1;if(yyCompareVal(___sw750___,0,g_GMLMathEpsilon,false)==0){___swc751___=0;}else if(yyCompareVal(___sw750___,1,g_GMLMathEpsilon,false)==0){___swc751___=1;}switch(___swc751___){case 0:{(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.subtract(1):--_inst.gmlstiff_arm),g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=_inst.gmljumps,
_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.subtract(1):--_inst.gmljumps),g_yyPrePostObject__);break;}};};};};};}else {{_inst.gmlstrength=yyfplus(2,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_accel=yyfplus(0.09,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=1;_inst.gmlstiff_arm=irandom(1);_inst.gmljumps=irandom(1);if(yyGetBool(global.gmlexhibition)){{_inst.gmlmy_accel=yyfplus(0.1,__yy_gml_errCheck(yyftime(0.002,
__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=gmlteam_offense;_inst.gmlstiff_arm=yyfplus(_inst.gmlstiff_arm,irandom(1));_inst.gmljumps=yyfplus(_inst.gmljumps,irandom(1));};}else {if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){{_inst.gmlstiff_arm=0;_inst.gmljumps=0;};};};};};var gmlmax_stiff=2;if((yyGetBool(yyfless(yyInst(_inst,_other,104).gmldifficulty,0)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){gmlmax_stiff=1;};_inst.gmlstiff_arm=clamp(yyfminus(__yy_gml_errCheck(_inst.gmlstiff_arm),
__yy_gml_errCheck(irandom(1))),0,gmlmax_stiff);_inst.gmljumps=clamp(yyfminus(__yy_gml_errCheck(_inst.gmljumps),__yy_gml_errCheck(irandom(1))),0,gmlmax_stiff);if(yyGetBool(irandom(9))){gmlskin=0;};break;}case 9:{_inst.gmlcollsize=2.5;if(yyGetBool(_inst.gmlpmap)){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.115,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,
_other,_inst.gmlpmap,"speed")))));_inst.gmlskill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");_inst.gmlstiff_arm=irandom(1);if(yyfless(irandom(11),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength"))){(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.add(1):++_inst.gmlstiff_arm),g_yyPrePostObject__);};if((yyGetBool(yyfequal(_inst.gmlstiff_arm,0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_attribute(_inst,
_other,_inst.gmlpmap,"strength"),10)))){(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.add(1):++_inst.gmlstiff_arm),g_yyPrePostObject__);};_inst.gmljumps=irandom(1);if(yyfless(irandom(11),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),g_yyPrePostObject__);};if((yyGetBool(yyfequal(_inst.gmljumps,
0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"),10)))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),g_yyPrePostObject__);};if(yyfless(yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other))),irandom(10))){{var ___sw752___=irandom(1);var ___swc753___=-1;if(yyCompareVal(___sw752___,0,g_GMLMathEpsilon,
false)==0){___swc753___=0;}else if(yyCompareVal(___sw752___,1,g_GMLMathEpsilon,false)==0){___swc753___=1;}switch(___swc753___){case 0:{(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.subtract(1):--_inst.gmlstiff_arm),g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.subtract(1):--_inst.gmljumps),g_yyPrePostObject__);break;}};};};};}else {{_inst.gmlstrength=yyfplus(1,
__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_accel=yyfplus(0.10500000000000001,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=1;_inst.gmlstiff_arm=irandom(1);_inst.gmljumps=irandom(1);if(yyGetBool(global.gmlexhibition)){{_inst.gmlmy_accel=yyfplus(0.115,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=gmlteam_offense;_inst.gmlstiff_arm=yyfplus(_inst.gmlstiff_arm,irandom(1));_inst.gmljumps=yyfplus(_inst.gmljumps,
irandom(1));};}else {if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){{_inst.gmlstiff_arm=0;_inst.gmljumps=0;};};};};};if(!yyGetBool(global.gmlexhibition)){{if(yyfless(yyInst(_inst,_other,104).gmldifficulty,2)){{_inst.gmlstiff_arm=yyfminus(_inst.gmlstiff_arm,1);_inst.gmljumps=yyfminus(_inst.gmljumps,1);};}else {if(yyfless(yyInst(_inst,_other,104).gmldifficulty,5)){{_inst.gmlstiff_arm=yyfminus(_inst.gmlstiff_arm,irandom(1));_inst.gmljumps=yyfminus(_inst.gmljumps,irandom(1));};};};};};if(yyfless(_inst.gmlstiff_arm,
0)){_inst.gmlstiff_arm=0;};if(yyfless(_inst.gmljumps,0)){_inst.gmljumps=0;};if(yyGetBool(irandom(9))){gmlskin=0;};break;}case 10:{if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,0)){gmlteam_defense=clamp(yyfplus(__yy_gml_errCheck(gmlteam_defense),3),1,10);};if(yyfequal(yyInst(_inst,_other,104).gmldown,6)){gmlteam_defense=yyfplus(gmlteam_defense,3);};_inst.gmlcollsize=10;_inst.gmlstrength=yyfplus(3.5,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlteam_defense))));if(yyfgreaterequal(yyInst(_inst,
_other,97).gmlop_difficulty,3)){_inst.gmlstrength=yyfplus(4,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlteam_defense))));};_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(20,__yy_gml_errCheck(gmlteam_defense))),__yy_gml_errCheck(irandom_range(3,5)));_inst.gmlmy_accel=yyfplus(0.035,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));gml_Script_s_set_anim(_inst,_other,1);break;}case 11:{if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,0)){gmlteam_defense=clamp(yyfplus(__yy_gml_errCheck(gmlteam_defense),
3),1,10);};_inst.gmlcollsize=5;_inst.gmlstrength=yyfplus(2,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlmy_tackle_limit=yyfplus(20,__yy_gml_errCheck(gmlteam_defense));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random(0.005))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){_inst.gmlmy_accel=yyfplus(0.07,__yy_gml_errCheck(yyftime(0.003,__yy_gml_errCheck(gmlteam_defense))));
};break;}case 12:{_inst.gmlcollsize=5;_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlmy_tackle_limit=yyfplus(20,__yy_gml_errCheck(gmlteam_defense));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.04,0.055))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,3)){_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.05,0.06))),
__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));}else {if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){_inst.gmlmy_accel=yyfplus(0.135,__yy_gml_errCheck(yyftime(0.003,__yy_gml_errCheck(gmlteam_defense))));};};if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,104).gmlpossession,yyInst(_inst,_other,104).gmlhuman_team)))){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlspecialteams))));
_inst.gmlmy_tackle_limit=yyfplus(20,__yy_gml_errCheck(gmlspecialteams));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.04,0.055))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlspecialteams))));};};if(yyGetBool(irandom(9))){gmlskin=0;};break;}};if(yyGetBool(_inst.gmlpmap)){{var gmlstr=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength");_inst.gmlstamina=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"stamina");var gmlstam=yyftime(__yy_gml_errCheck(yyfminus(10,
__yy_gml_errCheck(_inst.gmlstamina))),0.05);var gmldep=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_attempts")),__yy_gml_errCheck(gmlstam));gmlstr=clamp(yyfminus(__yy_gml_errCheck(gmlstr),__yy_gml_errCheck(gmldep)),1,10);_inst.gmlmy_throw_power=yyfplus(0.08,__yy_gml_errCheck(yyftime(0.004,__yy_gml_errCheck(gmlstr))));gmlstr=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength");gmlstam=yyftime(__yy_gml_errCheck(yyfminus(11,__yy_gml_errCheck(_inst.gmlstamina))),0.2);gmldep=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"stat_attempts")),__yy_gml_errCheck(gmlstam));gmlstr=clamp(yyfminus(__yy_gml_errCheck(gmlstr),__yy_gml_errCheck(gmldep)),1,10);_inst.gmlmy_kick_power=yyfplus(0.065,__yy_gml_errCheck(yyftime(0.001235,__yy_gml_errCheck(gmlstr))));_inst.gmlmy_kick_skill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");var gmlstam=yyftime(__yy_gml_errCheck(yyfminus(10,__yy_gml_errCheck(_inst.gmlstamina))),0.05);var gmldep=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_attempts")),__yy_gml_errCheck(gmlstam));
var gmlyds=yyfdivide(__yy_gml_errCheck(clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_rush_yards"))),0,275)),275);gmlyds=lerp(yyftime(__yy_gml_errCheck(gmlyds),0.99),yyftime(__yy_gml_errCheck(gmlyds),0.5),yyftime(__yy_gml_errCheck(_inst.gmlstamina),0.1));_inst.gmlmy_accel=lerp(_inst.gmlmy_accel,yyftime(__yy_gml_errCheck(_inst.gmlmy_accel),0.8),gmlyds);gmlskin=ds_map_find_value(_inst.gmlpmap,"skin");};}else {if(!yyGetBool(gml_Script_s_is_kickoff(_inst,
_other,true))){{if(yyfequal(_inst.gmlposition,1)){gmlskin=yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(real(yyInst(_inst,_other,97).gmlmyteam_id)),__yy_gml_errCheck(real(yyInst(_inst,_other,97).gmlyear)))),3);};if(yyGetBool(global.gmlexhibition)){{_inst.gmlskill=gmlteam_offense;_inst.gmlmy_throw_power=yyfplus(0.08,__yy_gml_errCheck(yyftime(0.004,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_kick_power=yyfplus(0.065,__yy_gml_errCheck(yyftime(0.001235,__yy_gml_errCheck(gmlteam_offense))));
_inst.gmlmy_kick_skill=gmlteam_offense;};};if(yyGetBool(_inst.gmloffense)){{var gmlqtr=yyfdivide(__yy_gml_errCheck(clamp(yyInst(_inst,_other,104).gmlquarter,1,5)),5);_inst.gmlmy_accel=lerp(_inst.gmlmy_accel,yyftime(__yy_gml_errCheck(_inst.gmlmy_accel),0.7),gmlqtr);_inst.gmlstamina=gmlteam_offense;};}else {{var gmlqtr=yyfdivide(__yy_gml_errCheck(clamp(yyInst(_inst,_other,104).gmlquarter,1,5)),5);_inst.gmlmy_accel=lerp(_inst.gmlmy_accel,yyftime(__yy_gml_errCheck(_inst.gmlmy_accel),0.85),gmlqtr);_inst.gmlstamina=clamp(yyfminus(__yy_gml_errCheck(gmlteam_defense),
__yy_gml_errCheck(irandom(2))),1,8);};};};};};if((yyGetBool(yyfequal(_inst.gmlposition,1)))||(yyGetBool(yyfequal(_inst.gmlposition,10)))){gml_Script_slog(_inst,_other,yyfplus("My kick skill = ",__yy_gml_errCheck(string(_inst.gmlmy_kick_skill))));};if(!yyGetBool(_inst.gmlte_blocking)){_inst.gmlmy_route_alpha=yyInst(_inst,_other,104).gmlroute_alpha;};var gmlcolSkin=gml_Script_s_get_skin_colour_by_index(_inst,_other,gmlskin);_inst.gmlcol_skin_r=yyfdivide(__yy_gml_errCheck(color_get_red(gmlcolSkin)),
255);_inst.gmlcol_skin_g=yyfdivide(__yy_gml_errCheck(color_get_green(gmlcolSkin)),255);_inst.gmlcol_skin_b=yyfdivide(__yy_gml_errCheck(color_get_blue(gmlcolSkin)),255);if(yyGetBool(_inst.gmlte_blocking)){_inst.gmlposition=5;};if(yyGetBool(_inst.gmlpmap)){{_inst.gmlpos_name=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"fname"),1,1)),"."),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")))," ["),__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,
_other,ds_map_find_value(_inst.gmlpmap,"position")))),"]");_inst.gmlpos_name2=yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"fname"),1,1)),"."),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));if(yyfequal(_inst.gmlposition,4)){_inst.gmlpos_name3=yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"fname"),1,1)),"."),__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"lname"),1,1)));};if(yyfequal(_inst.gmlposition,3)){
_inst.gmlpos_name3=yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"fname"),1,1)),"."),__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"lname"),1,1)));};if(!yyGetBool(ds_map_exists(_inst.gmlpmap,"randnum"))){ds_map_set(_inst.gmlpmap,"randnum",irandom(999));};var ___sw754___=yyfmod(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"randnum")),3);var ___swc755___=-1;if(yyCompareVal(___sw754___,0,g_GMLMathEpsilon,false)==0){___swc755___=0;}else if(yyCompareVal(___sw754___,
1,g_GMLMathEpsilon,false)==0){___swc755___=1;}else if(yyCompareVal(___sw754___,2,g_GMLMathEpsilon,false)==0){___swc755___=2;}switch(___swc755___){case 0:{_inst.gmlcleats=_inst.gmlshirt;break;}case 1:{_inst.gmlcleats=_inst.gmlpants;break;}case 2:{_inst.gmlcleats=_inst.gmlstripe;break;}};if(yyfequal(yyfplus(yyfplus(__yy_gml_errCheck(_inst.gmlcleats[__yy_gml_array_check_index(0,_inst.gmlcleats)]),__yy_gml_errCheck(_inst.gmlcleats[__yy_gml_array_check_index(1,_inst.gmlcleats)])),__yy_gml_errCheck(_inst.gmlcleats[__yy_gml_array_check_index(2,
_inst.gmlcleats)])),0)){{_inst.gmlcleats=__yy_gml_array_check(_inst.gmlcleats,2556554615);_inst.gmlcleats[__yy_gml_array_check_index_set(0)]=255;_inst.gmlcleats[__yy_gml_array_check_index_set(1)]=255;_inst.gmlcleats[__yy_gml_array_check_index_set(2)]=255;};};};};}}function gml_GlobalScript_s_set_anim(_inst,_other,argument0){(_inst.gmls_set_anim=__yy_method(_inst,gml_Script_s_set_anim));}function gml_Script_s_set_anim(_inst,_other,argument0){{_inst.gmlanim=argument0;_inst.image_speed=1;var gmlball=global.gmlmaster_ball;
var ___sw758___=_inst.gmlanim;var ___swc759___=-1;if(yyCompareVal(___sw758___,0,g_GMLMathEpsilon,false)==0){___swc759___=0;}else if(yyCompareVal(___sw758___,1,g_GMLMathEpsilon,false)==0){___swc759___=1;}else if(yyCompareVal(___sw758___,2,g_GMLMathEpsilon,false)==0){___swc759___=2;}else if(yyCompareVal(___sw758___,3,g_GMLMathEpsilon,false)==0){___swc759___=3;}else if(yyCompareVal(___sw758___,4,g_GMLMathEpsilon,false)==0){___swc759___=4;}else if(yyCompareVal(___sw758___,5,g_GMLMathEpsilon,false)==0){___swc759___=5;
}else if(yyCompareVal(___sw758___,6,g_GMLMathEpsilon,false)==0){___swc759___=6;}else if(yyCompareVal(___sw758___,7,g_GMLMathEpsilon,false)==0){___swc759___=7;}else if(yyCompareVal(___sw758___,8,g_GMLMathEpsilon,false)==0){___swc759___=8;}else if(yyCompareVal(___sw758___,9,g_GMLMathEpsilon,false)==0){___swc759___=9;}else if(yyCompareVal(___sw758___,10,g_GMLMathEpsilon,false)==0){___swc759___=10;}else if(yyCompareVal(___sw758___,11,g_GMLMathEpsilon,false)==0){___swc759___=11;}else if(yyCompareVal(___sw758___,
12,g_GMLMathEpsilon,false)==0){___swc759___=12;}else if(yyCompareVal(___sw758___,13,g_GMLMathEpsilon,false)==0){___swc759___=13;}else if(yyCompareVal(___sw758___,14,g_GMLMathEpsilon,false)==0){___swc759___=14;}else if(yyCompareVal(___sw758___,15,g_GMLMathEpsilon,false)==0){___swc759___=15;}else if(yyCompareVal(___sw758___,16,g_GMLMathEpsilon,false)==0){___swc759___=16;}else if(yyCompareVal(___sw758___,17,g_GMLMathEpsilon,false)==0){___swc759___=17;}else if(yyCompareVal(___sw758___,18,g_GMLMathEpsilon,
false)==0){___swc759___=18;}else if(yyCompareVal(___sw758___,19,g_GMLMathEpsilon,false)==0){___swc759___=19;}switch(___swc759___){case 0:{_inst.sprite_index=31;{var __yy__v988=GetWithArray(gmlball);for(var __yy__v989 in __yy__v988){if(!__yy__v988.hasOwnProperty(__yy__v989))continue;var __yy__v990=__yy__v988[__yy__v989];if(yyfequal(__yy__v990.gmlholder,_inst.id)){_inst.sprite_index=32;};}};if((yyGetBool(yyfequal(_inst.gmlposition,1)))&&(yyGetBool(yyfequal(instance_number(110),0)))){_inst.image_index=2;}
else {_inst.image_index=0;};_inst.image_speed=0;_inst.gmltackling=(-4);break;}case 1:{_inst.sprite_index=31;_inst.image_index=1;_inst.image_speed=0;_inst.gmltackling=(-4);break;}case 2:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){_inst.sprite_index=40;}else {_inst.sprite_index=39;};_inst.image_index=0;_inst.image_speed=min(_inst.speed,1);_inst.gmltackling=(-4);break;}case 3:{_inst.sprite_index=53;_inst.image_index=0;break;}case 4:{gml_Script_s_sound_oof(_inst,_other);if((yyGetBool(yyfequal(_inst.sprite_index,
54)))||(yyGetBool(yyfequal(_inst.sprite_index,56)))||(yyGetBool(yyfequal(_inst.sprite_index,57)))){return;};_inst.sprite_index=54;if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlball).gmlis_dead)))){{var gmlfumble_chance=10;if(yyfgreater(yyInst(_inst,_other,97).gmlop_difficulty,2)){gmlfumble_chance=yyfminus(gmlfumble_chance,1);};if(yyfgreater(yyInst(_inst,_other,97).gmlop_difficulty,3)){gmlfumble_chance=yyfminus(gmlfumble_chance,
1);};{var __yy__v991=GetWithArray(117);for(var __yy__v992 in __yy__v991){if(!__yy__v991.hasOwnProperty(__yy__v992))continue;var __yy__v993=__yy__v991[__yy__v992];if(yyfnotequal(__yy__v993.gmltype,0)){gmlfumble_chance=yyfminus(gmlfumble_chance,2);};}};gml_Script_slog(_inst,_other,">>>>>>>>>>>>>>>>>>>>>>>>>");gml_Script_slog(_inst,_other,yyfplus("fumble_c = ",__yy_gml_errCheck(string(gmlfumble_chance))));gmlfumble_chance=irandom(gmlfumble_chance);if((yyGetBool(yyfless(_inst.x,400)))||(yyGetBool(yyfgreater(_inst.x,
2200)))){gmlfumble_chance=1;};if((yyGetBool(!yyGetBool(gmlfumble_chance)))&&(yyGetBool(_inst.gmloffense))&&(yyGetBool(yyfnotequal(_inst.gmlposition,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))){{gml_Script_slog(_inst,_other,">>>>>>>>>>>>>>>>>>>>>>>>> FUMBLE CHANCE!");var gmlcatching=yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gml_Script_s_get_morale(_inst,_other)),__yy_gml_errCheck(gml_Script_s_get_condition_squad(_inst,_other)))),0.5);if((yyGetBool(yyInst(_inst,
_other,gmlball).gmlholder))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap))){{var gmlskl=yyftime(__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"skill")),10);var gmlatt=real(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"attitude"));var gmlfmb=real(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_fumbles"));
gml_Script_slog(_inst,_other,yyfplus("player_skill = ",__yy_gml_errCheck(string(gmlskl))));gml_Script_slog(_inst,_other,yyfplus("player_attit = ",__yy_gml_errCheck(string(gmlatt))));gml_Script_slog(_inst,_other,yyfplus("stat_fumbles = ",__yy_gml_errCheck(string(gmlfmb))));gmlcatching=yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlskl),__yy_gml_errCheck(gmlatt))),0.5);if(yyfgreater(max(gml_Script_s_rookie_age_internal(_inst,_other),real(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,
gmlball).gmlholder).gmlpmap,"age"))),gml_Script_s_rookie_age_internal(_inst,_other))){gmlcatching=yyfplus(gmlcatching,yyftime(__yy_gml_errCheck(gmlfmb),50));};gml_Script_slog(_inst,_other,yyfplus("player catching = ",__yy_gml_errCheck(string(gmlcatching))));};}else {gml_Script_slog(_inst,_other,yyfplus("catching squad = ",__yy_gml_errCheck(string(gmlcatching))));};gmlcatching=yyfplus(gmlcatching,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,104).gmldifficulty),2));gmlcatching=clamp(gmlcatching,1,
100);gml_Script_slog(_inst,_other,yyfplus("final catching = ",__yy_gml_errCheck(string(gmlcatching))));var gmlcatch_dice=irandom_range((-100),85);gml_Script_slog(_inst,_other,yyfplus("catch_dice = ",__yy_gml_errCheck(string(gmlcatch_dice))));if((yyGetBool(yyfgreater(gmlcatch_dice,gmlcatching)))||(yyGetBool(!yyGetBool(irandom(49))))){gml_Script_s_drop_ball(_inst,_other,true);}else {_inst.sprite_index=56;};};}else {_inst.sprite_index=56;};};};_inst.image_index=0;_inst.gmltackling=(-4);_inst.gmltacklecount=0;
break;}case 5:{_inst.image_index=0;_inst.sprite_index=59;if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if(yyGetBool(gml_Script_s_do_touchback(_inst,_other))){return;};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlposition,1)))||(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlqb_rushing))))){{if(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,
gmlball).gmlholder).gmlgoaldist,100)){{if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),30))))))||(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldrivedir,1)))&&(yyGetBool(yyfless(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),30))))))){
{gml_Script_s_set_anim(_inst,_other,19);return;};}else {if((yyGetBool(yyfless(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlremaining_dist,0)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlremaining_dist,60)))){_inst.sprite_index=261;};};};};};};};};_inst.hspeed=yyftime(_inst.hspeed,1.9);_inst.vspeed=yyftime(_inst.vspeed,1.7);_inst.gmltackling=(-4);gml_Script_s_sound_dive(_inst,_other);break;}case 6:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,
_inst.id)){{if(yyfequal(_inst.sprite_index,143)){_inst.sprite_index=32;}else {_inst.sprite_index=43;};};}else {_inst.sprite_index=42;};_inst.image_index=0;_inst.gmltackling=(-4);break;}case 7:{if(yyGetBool(gml_Script_s_do_touchback(_inst,_other))){return;}else {if((yyGetBool(yyfless(_inst.gmlgoaldist,40)))&&(yyGetBool(_inst.gmlintheclear))){_inst.sprite_index=253;}else {_inst.sprite_index=52;};};_inst.image_index=0;_inst.hspeed=yyftime(_inst.hspeed,0.1);_inst.gmltackling=(-4);break;}case 8:{gml_Script_s_sound_dive(_inst,
_other);gml_Script_s_sound_audience_catch(_inst,_other);_inst.sprite_index=50;(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.subtract(1):--_inst.gmljumps),g_yyPrePostObject__);_inst.image_index=0;_inst.gmltackling=(-4);break;}case 9:{_inst.sprite_index=45;(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.subtract(1):--_inst.gmlstiff_arm),g_yyPrePostObject__);_inst.gmltackling=(-4);
global.gmlflickVelX=0;global.gmlflickVelY=0;break;}case 10:{gml_Script_s_sound_dive(_inst,_other);_inst.sprite_index=47;_inst.image_index=0;_inst.gmltackling=(-4);break;}case 11:{_inst.sprite_index=34;{var __yy__v994=GetWithArray(global.gmlmaster_ball);for(var __yy__v995 in __yy__v994){if(!__yy__v994.hasOwnProperty(__yy__v995))continue;var __yy__v996=__yy__v994[__yy__v995];{if(yyfgreater(__yy__v996.gmldragdist,85)){_inst.sprite_index=36;};}}};_inst.image_index=0;break;}case 12:{if(yyfequal(yyInst(_inst,
_other,gmlball).gmlstate,19)){_inst.sprite_index=38;}else {_inst.sprite_index=37;};_inst.image_index=0;gml_Script_s_sound_throw(_inst,_other);break;}case 13:{_inst.sprite_index=63;_inst.image_index=0;_inst.image_speed=0;break;}case 14:{_inst.hspeed=yyftime(__yy_gml_errCheck(_inst.image_xscale),0.85);_inst.sprite_index=61;_inst.image_index=0;break;}case 15:{_inst.sprite_index=62;_inst.image_index=0;break;}case 16:{_inst.sprite_index=64;_inst.image_index=0;break;}case 17:{_inst.sprite_index=67;_inst.image_index=irandom(1);
break;}case 18:{_inst.sprite_index=(yyGetBool(irandom(1))?216:228);_inst.image_index=0;break;}case 19:{_inst.sprite_index=143;_inst.image_index=0;_inst.hspeed=yyftime(_inst.hspeed,0.1);_inst.vspeed=yyftime(_inst.vspeed,0.1);break;}};}}function gml_GlobalScript_s_set_position_offense(_inst,_other){(_inst.gmls_set_position_offense=__yy_method(_inst,gml_Script_s_set_position_offense));}function gml_Script_s_set_position_offense(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),
__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var gmlQB_X=100;var ___sw770___=_inst.gmlinum;var ___swc771___=-1;if(yyCompareVal(___sw770___,1,g_GMLMathEpsilon,false)==0){___swc771___=0;}else if(yyCompareVal(___sw770___,2,g_GMLMathEpsilon,false)==0){___swc771___=1;}else if(yyCompareVal(___sw770___,3,g_GMLMathEpsilon,false)==0){___swc771___=2;}else if(yyCompareVal(___sw770___,4,g_GMLMathEpsilon,false)==0){___swc771___=3;}else if(yyCompareVal(___sw770___,5,g_GMLMathEpsilon,false)==0){
___swc771___=4;}else if(yyCompareVal(___sw770___,6,g_GMLMathEpsilon,false)==0){___swc771___=5;}else if(yyCompareVal(___sw770___,7,g_GMLMathEpsilon,false)==0){___swc771___=6;}else if(yyCompareVal(___sw770___,8,g_GMLMathEpsilon,false)==0){___swc771___=7;}else if(yyCompareVal(___sw770___,9,g_GMLMathEpsilon,false)==0){___swc771___=8;}else if(yyCompareVal(___sw770___,10,g_GMLMathEpsilon,false)==0){___swc771___=9;}else if(yyCompareVal(___sw770___,11,g_GMLMathEpsilon,false)==0){___swc771___=10;}switch(___swc771___){
case 0:{_inst.gmlposition=1;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlQB_X),__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,104).gmly_scrim;break;}case 1:{if((yyGetBool(irandom(1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)))){{_inst.gmlposition=2;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlQB_X),__yy_gml_errCheck(_inst.gmlfacing))));
_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),35);if(yyGetBool(irandom(1))){_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),35);};};}else {{_inst.gmlposition=2;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlQB_X),35)),__yy_gml_errCheck(_inst.gmlfacing))));var ___sw772___=irandom(2);var ___swc773___=-1;if(yyCompareVal(___sw772___,0,g_GMLMathEpsilon,false)==0){
___swc773___=0;}else if(yyCompareVal(___sw772___,1,g_GMLMathEpsilon,false)==0){___swc773___=1;}else if(yyCompareVal(___sw772___,2,g_GMLMathEpsilon,false)==0){___swc773___=2;}switch(___swc773___){case 0:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),17);break;}case 1:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),17);break;}case 2:{_inst.y=300;break;}};};};break;}case 2:{_inst.gmlposition=5;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),
__yy_gml_errCheck(yyftime(10,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,104).gmly_scrim;break;}case 3:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),15);break;}case 4:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),15);break;}case 5:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),30);break;}case 6:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmly_scrim),30);break;}case 7:{_inst.gmlposition=3;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(12,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),60);var gmlrb=false;{var __yy__v997=GetWithArray(107);for(var __yy__v998 in __yy__v997){if(!__yy__v997.hasOwnProperty(__yy__v998))continue;var __yy__v999=__yy__v997[__yy__v998];if((yyGetBool(yyfequal(__yy__v999.gmlposition,2)))&&(yyGetBool(yyfgreaterequal(__yy__v999.y,
300)))){gmlrb=true;};}};if((yyGetBool(gmlrb))&&(yyGetBool(1))){{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),45);_inst.gmlte_blocking=true;};};break;}case 8:{_inst.gmlposition=4;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(20,__yy_gml_errCheck(irandom_range(1,2))),__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),__yy_gml_errCheck(random_range(100,120)));
if((yyGetBool((yyGetBool(yyfgreater(_inst.y,300)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmly_scrim,300)))))||(yyGetBool((yyGetBool(yyfless(_inst.y,300)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmly_scrim,300)))))){_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),__yy_gml_errCheck(random_range(120,160)));};break;}case 9:{_inst.gmlposition=3;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(12,__yy_gml_errCheck(_inst.gmlfacing))));
_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),60);var gmlrb=false;{var __yy__v1000=GetWithArray(107);for(var __yy__v1001 in __yy__v1000){if(!__yy__v1000.hasOwnProperty(__yy__v1001))continue;var __yy__v1002=__yy__v1000[__yy__v1001];if((yyGetBool(yyfequal(__yy__v1002.gmlposition,2)))&&(yyGetBool(yyflessequal(__yy__v1002.y,300)))){gmlrb=true;};}};if(yyGetBool(gmlrb)){{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),45);_inst.gmlte_blocking=true;};};break;
}case 10:{_inst.gmlposition=4;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(20,__yy_gml_errCheck(irandom_range(1,2))),__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),__yy_gml_errCheck(random_range(100,120)));if((yyGetBool((yyGetBool(yyfgreater(_inst.y,300)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmly_scrim,300)))))||(yyGetBool((yyGetBool(yyfless(_inst.y,300)))&&(yyGetBool(yyfgreater(yyInst(_inst,
_other,104).gmly_scrim,300)))))){_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),__yy_gml_errCheck(random_range(120,160)));};break;}};_inst.gmlmy_route_name="";var ___sw774___=_inst.gmlposition;var ___swc775___=-1;if(yyCompareVal(___sw774___,1,g_GMLMathEpsilon,false)==0){___swc775___=0;}else if(yyCompareVal(___sw774___,4,g_GMLMathEpsilon,false)==0){___swc775___=1;}else if(yyCompareVal(___sw774___,3,g_GMLMathEpsilon,false)==0){___swc775___=2;}else if(yyCompareVal(___sw774___,2,g_GMLMathEpsilon,
false)==0){___swc775___=3;}switch(___swc775___){case 0:{if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{if((yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmlpractice_success,0)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,3)))){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlmy_route=path_duplicate(22);};};};}else {if(yyGetBool(irandom(1))){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlmy_route=path_duplicate(22);};};};break;}case 1:{if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,3)){{if(yyfequal(yyInst(_inst,_other,104).gmlpractice_success,0)){_inst.gmlmy_route=path_duplicate(9);}else {_inst.gmlmy_route=path_duplicate(11);};};}else {if((yyGetBool((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,15)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmlscrimmage,40)))))||(yyGetBool(yyfgreater(yyInst(_inst,
_other,104).gmlyards,10)))){{_inst.gmlmy_route_name=choose("route_slant","route_post","route_streak");};}else {if((yyGetBool(yyfless(_inst.y,200)))||(yyGetBool(yyfgreater(_inst.y,400)))){{if(yyfgreater(yyInst(_inst,_other,104).gmlscrimmage,40)){_inst.gmlmy_route_name=choose("route_hitch","route_slant","route_slant2","route_curl","route_dig1","route_dig2","route_dig3");}else {_inst.gmlmy_route_name=choose("route_hitch","route_slant","route_slant2","route_curl","route_dig1","route_dig2","route_dig3",
"route_post","route_streak");};};}else {{if(yyfgreater(yyInst(_inst,_other,104).gmlscrimmage,40)){_inst.gmlmy_route_name=choose("route_hitch","route_slant","route_slant2","route_out1","route_out2","route_out3","route_curl","route_comeback","route_dig1","route_dig2","route_dig3");}else {_inst.gmlmy_route_name=choose("route_hitch","route_slant","route_slant2","route_out1","route_out2","route_out3","route_curl","route_comeback","route_dig1","route_dig2","route_dig3","route_post","route_corner","route_streak");
};};};};};break;}case 2:{if(yyGetBool(_inst.gmlte_blocking)){{_inst.gmlmy_route=path_duplicate(21);};}else {if((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,15)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmlscrimmage,40)))){{_inst.gmlmy_route_name=choose("route_slant","route_post","route_streak");};}else {if(yyGetBool(irandom(1))){_inst.gmlmy_route_name=choose("route_fb_1","route_fb_2","route_fb_4","route_fb_flat");}else {_inst.gmlmy_route_name=choose("route_flat","route_slant","route_slant2",
"route_out1","route_out2","route_out3","route_curl","route_comeback","route_dig1","route_dig2","route_dig3","route_post","route_corner","route_streak");};};};break;}case 3:{var gmlshotgun=true;var gmlqby=0;{var __yy__v1003=GetWithArray(107);for(var __yy__v1004 in __yy__v1003){if(!__yy__v1003.hasOwnProperty(__yy__v1004))continue;var __yy__v1005=__yy__v1003[__yy__v1004];{if((yyGetBool(yyfequal(__yy__v1005.gmlposition,1)))&&(yyGetBool(path_exists(__yy__v1005.gmlmy_route)))){{gmlqby=__yy__v1005.y;gmlshotgun=false;
};};}}};if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)){_inst.gmlmy_route=path_duplicate(15);}else {if(yyGetBool(gmlshotgun)){_inst.gmlmy_route_name=choose("route_fb_1","route_fb_2","route_fb_3","route_fb_4","route_fb_flat","route_fb_flat2");}else {_inst.gmlmy_route_name=choose("route_fb_1","route_fb_2","route_fb_3","route_fb_4");};};break;}};if((yyGetBool(yyfnotequal(_inst.gmlmy_route_name,"")))&&(yyGetBool(yyfequal(_inst.gmlposition,4)))){{var gmldupe=false;{var __yy__v1006=GetWithArray(107);
for(var __yy__v1007 in __yy__v1006){if(!__yy__v1006.hasOwnProperty(__yy__v1007))continue;var __yy__v1008=__yy__v1006[__yy__v1007];{if(yyfnotequal(_inst.id,__yy__v1008.id)){{if((yyGetBool((yyGetBool(yyfequal(__yy__v1008.gmlmy_route_name,"route_slant")))||(yyGetBool(yyfequal(__yy__v1008.gmlmy_route_name,"route_slant2")))))&&(yyGetBool((yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_slant")))||(yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_slant2")))))){gmldupe=true;}else {if((yyGetBool((yyGetBool(yyfequal(__yy__v1008.gmlmy_route_name,
"route_dig1")))||(yyGetBool(yyfequal(__yy__v1008.gmlmy_route_name,"route_dig2")))||(yyGetBool(yyfequal(__yy__v1008.gmlmy_route_name,"route_dig3")))))&&(yyGetBool((yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_dig1")))||(yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_dig2")))||(yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_dig3")))))){gmldupe=true;}else {if((yyGetBool(yyfequal(__yy__v1008.gmlmy_route_name,"route_hitch")))&&(yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_hitch")))){gmldupe=true;
};};};};};}}};if(yyGetBool(gmldupe)){{var ___sw776___=_inst.gmlmy_route_name;var ___swc777___=-1;if(yyCompareVal(___sw776___,"route_slant",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw776___,"route_slant2",g_GMLMathEpsilon,false)==0){___swc777___=0;}else if(yyCompareVal(___sw776___,"route_dig1",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw776___,"route_dig2",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw776___,"route_dig3",g_GMLMathEpsilon,false)==0){___swc777___=1;}else if(yyCompareVal(___sw776___,
"route_hitch",g_GMLMathEpsilon,false)==0){___swc777___=2;}switch(___swc777___){case 0:{_inst.gmlmy_route_name=choose("route_curl","route_dig1","route_dig2","route_dig3","route_post","route_streak");break;}case 1:{_inst.gmlmy_route_name=choose("route_curl","route_slant","route_slant2","route_post","route_streak");break;}case 2:{_inst.gmlmy_route_name=choose("route_curl","route_slant","route_slant2","route_post","route_streak");break;}};};};};};var ___sw778___=_inst.gmlmy_route_name;var ___swc779___=-1;
if(yyCompareVal(___sw778___,"route_flat",g_GMLMathEpsilon,false)==0){___swc779___=0;}else if(yyCompareVal(___sw778___,"route_slant",g_GMLMathEpsilon,false)==0){___swc779___=1;}else if(yyCompareVal(___sw778___,"route_slant_fake",g_GMLMathEpsilon,false)==0){___swc779___=2;}else if(yyCompareVal(___sw778___,"route_slant2",g_GMLMathEpsilon,false)==0){___swc779___=3;}else if(yyCompareVal(___sw778___,"route_out1",g_GMLMathEpsilon,false)==0){___swc779___=4;}else if(yyCompareVal(___sw778___,"route_out2",g_GMLMathEpsilon,
false)==0){___swc779___=5;}else if(yyCompareVal(___sw778___,"route_out3",g_GMLMathEpsilon,false)==0){___swc779___=6;}else if(yyCompareVal(___sw778___,"route_curl",g_GMLMathEpsilon,false)==0){___swc779___=7;}else if(yyCompareVal(___sw778___,"route_comeback",g_GMLMathEpsilon,false)==0){___swc779___=8;}else if(yyCompareVal(___sw778___,"route_dig1",g_GMLMathEpsilon,false)==0){___swc779___=9;}else if(yyCompareVal(___sw778___,"route_dig2",g_GMLMathEpsilon,false)==0){___swc779___=10;}else if(yyCompareVal(___sw778___,
"route_dig3",g_GMLMathEpsilon,false)==0){___swc779___=11;}else if(yyCompareVal(___sw778___,"route_post",g_GMLMathEpsilon,false)==0){___swc779___=12;}else if(yyCompareVal(___sw778___,"route_corner",g_GMLMathEpsilon,false)==0){___swc779___=13;}else if(yyCompareVal(___sw778___,"route_streak",g_GMLMathEpsilon,false)==0){___swc779___=14;}else if(yyCompareVal(___sw778___,"route_fb_1",g_GMLMathEpsilon,false)==0){___swc779___=15;}else if(yyCompareVal(___sw778___,"route_fb_2",g_GMLMathEpsilon,false)==0){___swc779___=16;
}else if(yyCompareVal(___sw778___,"route_fb_3",g_GMLMathEpsilon,false)==0){___swc779___=17;}else if(yyCompareVal(___sw778___,"route_fb_4",g_GMLMathEpsilon,false)==0){___swc779___=18;}else if(yyCompareVal(___sw778___,"route_fb_flat",g_GMLMathEpsilon,false)==0){___swc779___=19;}else if(yyCompareVal(___sw778___,"route_fb_flat2",g_GMLMathEpsilon,false)==0){___swc779___=20;}else if(yyCompareVal(___sw778___,"route_hitch",g_GMLMathEpsilon,false)==0){___swc779___=21;}switch(___swc779___){case 0:{_inst.gmlmy_route=path_duplicate(0);
break;}case 1:{_inst.gmlmy_route=path_duplicate(1);break;}case 2:{_inst.gmlmy_route=path_duplicate(_inst.gmlroute_slant_fake);break;}case 3:{_inst.gmlmy_route=path_duplicate(2);break;}case 4:{_inst.gmlmy_route=path_duplicate(5);break;}case 5:{_inst.gmlmy_route=path_duplicate(6);break;}case 6:{_inst.gmlmy_route=path_duplicate(7);break;}case 7:{_inst.gmlmy_route=path_duplicate(3);break;}case 8:{_inst.gmlmy_route=path_duplicate(4);break;}case 9:{_inst.gmlmy_route=path_duplicate(8);break;}case 10:{_inst.gmlmy_route=path_duplicate(9);
break;}case 11:{_inst.gmlmy_route=path_duplicate(10);break;}case 12:{_inst.gmlmy_route=path_duplicate(11);break;}case 13:{_inst.gmlmy_route=path_duplicate(12);break;}case 14:{_inst.gmlmy_route=path_duplicate(13);break;}case 15:{_inst.gmlmy_route=path_duplicate(14);break;}case 16:{_inst.gmlmy_route=path_duplicate(15);break;}case 17:{_inst.gmlmy_route=path_duplicate(16);break;}case 18:{_inst.gmlmy_route=path_duplicate(17);break;}case 19:{_inst.gmlmy_route=path_duplicate(19);break;}case 20:{_inst.gmlmy_route=path_duplicate(20);
break;}case 21:{_inst.gmlmy_route=path_duplicate(23);break;}default :{break;}};if(yyfequal(_inst.gmlfacing,(-1))){{path_mirror(_inst.gmlmy_route);path_shift(_inst.gmlmy_route,__yy_gml_errCheck(-__yy_gml_errCheck(path_get_x(_inst.gmlmy_route,0))),0);};};_inst.gmlmy_route_startx=_inst.x;_inst.gmlmy_route_starty=_inst.y;}}function gml_GlobalScript_s_create_news_message(_inst,_other){(_inst.gmls_create_news_dyn_message=__yy_method(_inst,gml_Script_s_create_news_dyn_message));}function gml_Script_s_create_news_dyn_message(_inst,
_other,argument0){{var gmlbx=yyfminus(__yy_gml_errCheck(display_get_gui_width()),157);var gmlond=instance_create_layer(0,0,"PopUps",8);var gmlbtn_1=instance_create_layer(gmlbx,215,"PopUps",34);yyInst(_inst,_other,gmlond).gmlmsg_type=ds_map_find_value(argument0,"typ");yyInst(_inst,_other,gmlond).gmltext=string_hash_to_newline(ds_map_find_value(argument0,"txt"));var gml_pmap=ds_map_create();ds_map_set(gml_pmap,"teamid",real(ds_map_find_value(argument0,"pmap_teamid")));ds_map_set(gml_pmap,"position",real(ds_map_find_value(argument0,
"pmap_position")));ds_map_set(gml_pmap,"skin",real(ds_map_find_value(argument0,"pmap_skin")));ds_map_set(gml_pmap,"face_x",real(ds_map_find_value(argument0,"pmap_face_x")));ds_map_set(gml_pmap,"face_y",real(ds_map_find_value(argument0,"pmap_face_y")));yyInst(_inst,_other,gmlond).gmlpmap=gml_pmap;yyInst(_inst,_other,gmlbtn_1).gmltext=gml_Script_s_str(_inst,_other,"ui_Continue");yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=kgml_Script_s_news_clear;yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,gmlond).depth),1);}}function gml_GlobalScript_s_set_position_defense(_inst,_other){(_inst.gmls_set_position_defense=__yy_method(_inst,gml_Script_s_set_position_defense));}function gml_Script_s_set_position_defense(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var ___sw782___=_inst.gmlinum;var ___swc783___=-1;if(yyCompareVal(___sw782___,1,g_GMLMathEpsilon,false)==0){___swc783___=0;}else if(yyCompareVal(___sw782___,
2,g_GMLMathEpsilon,false)==0){___swc783___=1;}else if(yyCompareVal(___sw782___,3,g_GMLMathEpsilon,false)==0){___swc783___=2;}else if(yyCompareVal(___sw782___,4,g_GMLMathEpsilon,false)==0){___swc783___=3;}else if(yyCompareVal(___sw782___,5,g_GMLMathEpsilon,false)==0){___swc783___=4;}else if(yyCompareVal(___sw782___,6,g_GMLMathEpsilon,false)==0){___swc783___=5;}else if(yyCompareVal(___sw782___,7,g_GMLMathEpsilon,false)==0){___swc783___=6;}else if(yyCompareVal(___sw782___,8,g_GMLMathEpsilon,false)==0){___swc783___=7;
}else if(yyCompareVal(___sw782___,9,g_GMLMathEpsilon,false)==0){___swc783___=8;}else if(yyCompareVal(___sw782___,10,g_GMLMathEpsilon,false)==0){___swc783___=9;}else if(yyCompareVal(___sw782___,11,g_GMLMathEpsilon,false)==0){___swc783___=10;}switch(___swc783___){case 0:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),18);break;}case 1:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),18);break;}case 2:{_inst.gmlposition=6;
_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),36);break;}case 3:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),36);break;}case 4:{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(random_range(40,60)),__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),__yy_gml_errCheck(random_range(40,
50)));if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,3)){_inst.gmlposition=9;};if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,0)){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));};};break;}case 5:{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(random_range(40,60)),__yy_gml_errCheck(_inst.gmlfacing))));
_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),__yy_gml_errCheck(random_range(40,50)));if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,3)){_inst.gmlposition=9;};if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,0)){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));};};break;}case 6:{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),
__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),60);if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,3)))){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(180,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,104).gmly_scrim;};};if(yyfequal(yyInst(_inst,
_other,104).gmldefensive_cover,0)){{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),70);};};break;}case 7:{_inst.gmlposition=8;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,
104).gmly_scrim),100);if(yyfgreater(yyInst(_inst,_other,104).gmly_scrim,300)){{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),140);};};if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,3)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmlyards,3)))){{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(100,__yy_gml_errCheck(_inst.gmlfacing))));};};if(yyfgreaterequal(yyInst(_inst,_other,104).gmldown,
6)){_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));};break;}case 8:{_inst.gmlposition=8;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),100);if(yyfless(yyInst(_inst,_other,104).gmly_scrim,300)){{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,
104).gmly_scrim),140);};};if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,3)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmlyards,3)))){{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(100,__yy_gml_errCheck(_inst.gmlfacing))));};};if(yyfgreaterequal(yyInst(_inst,_other,104).gmldown,6)){_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));
};break;}case 9:{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(80,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,104).gmly_scrim;if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,0)){{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(80,__yy_gml_errCheck(_inst.gmlfacing))));};};break;}case 10:{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(160,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),20);if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,1)){{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(120,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(random_range((-1),
1)),20)));};};if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,3)){{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(random_range((-1),1)),20)));};};if(yyfequal(yyInst(_inst,_other,104).gmldefensive_cover,0)){{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),70);};};break;}};if(yyfnotequal(_inst.gmlposition,6)){_inst.y=yyfplus(_inst.y,_inst.gmlrandyards);};if(yyfless(_inst.x,280)){{var gmlyds_back=yyfminus(280,__yy_gml_errCheck(_inst.x));_inst.x=yyfminus(300,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyds_back),2)));};}else {if(yyfgreater(_inst.x,2320)){{var gmlyds_back=yyfminus(__yy_gml_errCheck(_inst.x),
2320);_inst.x=yyfplus(2300,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyds_back),2)));};};};}}function gml_GlobalScript_s_get_nearest_opponent_by_position(_inst,_other,argument0,argument1){(_inst.gmls_get_nearest_opponent_by_position=__yy_method(_inst,gml_Script_s_get_nearest_opponent_by_position));}function gml_Script_s_get_nearest_opponent_by_position(_inst,_other,argument0,argument1){{if(yyGetBool(yyInst(_inst,_other,argument0).gmltackling)){return yyInst(_inst,_other,argument0).gmltackling;
};var gmlpos=argument1;var gmllowest,gmllowest_val;gmllowest=(-4);gmllowest_val=(-1);{var __yy__v1009=GetWithArray(106);for(var __yy__v1010 in __yy__v1009){if(!__yy__v1009.hasOwnProperty(__yy__v1010))continue;var __yy__v1011=__yy__v1009[__yy__v1010];{if(yyfequal(__yy__v1011.gmloffense,yyInst(_inst,_other,argument0).gmloffense)){continue;};if((yyGetBool(yyfless(gmlpos,0)))&&(yyGetBool(yyfequal(__yy__v1011.gmlposition,abs(gmlpos))))){continue;};if((yyGetBool(yyfgreater(gmlpos,0)))&&(yyGetBool(yyfnotequal(__yy__v1011.gmlposition,
gmlpos)))){continue;};if((yyGetBool(!yyGetBool(__yy__v1011.gmldead)))&&(yyGetBool(yyfequal(__yy__v1011.gmltackling,(-4))))){{var gmlval=point_distance(__yy__v1011.x,__yy__v1011.y,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);if((yyGetBool(yyfequal(gmllowest,(-4))))||(yyGetBool(yyfless(gmlval,gmllowest_val)))){{gmllowest=__yy__v1011.id;gmllowest_val=gmlval;};};};};}}};return gmllowest;}}function gml_GlobalScript_s_set_position_defense_fg(_inst,_other){(_inst.gmls_set_position_defense_fg=__yy_method(_inst,
gml_Script_s_set_position_defense_fg));}function gml_Script_s_set_position_defense_fg(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var ___sw786___=_inst.gmlinum;var ___swc787___=-1;if(yyCompareVal(___sw786___,1,g_GMLMathEpsilon,false)==0){___swc787___=0;}else if(yyCompareVal(___sw786___,2,g_GMLMathEpsilon,false)==0){___swc787___=1;}else if(yyCompareVal(___sw786___,3,g_GMLMathEpsilon,false)==0){
___swc787___=2;}else if(yyCompareVal(___sw786___,4,g_GMLMathEpsilon,false)==0){___swc787___=3;}else if(yyCompareVal(___sw786___,5,g_GMLMathEpsilon,false)==0){___swc787___=4;}else if(yyCompareVal(___sw786___,6,g_GMLMathEpsilon,false)==0){___swc787___=5;}else if(yyCompareVal(___sw786___,7,g_GMLMathEpsilon,false)==0){___swc787___=6;}else if(yyCompareVal(___sw786___,8,g_GMLMathEpsilon,false)==0){___swc787___=7;}else if(yyCompareVal(___sw786___,9,g_GMLMathEpsilon,false)==0){___swc787___=8;}else if(yyCompareVal(___sw786___,
10,g_GMLMathEpsilon,false)==0){___swc787___=9;}else if(yyCompareVal(___sw786___,11,g_GMLMathEpsilon,false)==0){___swc787___=10;}switch(___swc787___){case 0:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),6);break;}case 1:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),6);break;}case 2:{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));
_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),12);break;}case 3:{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),12);break;}case 4:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),18);break;}case 5:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmly_scrim),18);break;}case 6:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),30);break;}case 7:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),30);break;}case 8:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),48);break;}case 9:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),48);break;}case 10:{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(60,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),22);break;}};}}function gml_GlobalScript_s_set_position_offense_fg(_inst,_other){(_inst.gmls_set_position_offense_fg=__yy_method(_inst,gml_Script_s_set_position_offense_fg));}function gml_Script_s_set_position_offense_fg(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(20,
__yy_gml_errCheck(_inst.gmlfacing))));var ___sw790___=_inst.gmlinum;var ___swc791___=-1;if(yyCompareVal(___sw790___,1,g_GMLMathEpsilon,false)==0){___swc791___=0;}else if(yyCompareVal(___sw790___,2,g_GMLMathEpsilon,false)==0){___swc791___=1;}else if(yyCompareVal(___sw790___,3,g_GMLMathEpsilon,false)==0){___swc791___=2;}else if(yyCompareVal(___sw790___,4,g_GMLMathEpsilon,false)==0){___swc791___=3;}else if(yyCompareVal(___sw790___,5,g_GMLMathEpsilon,false)==0){___swc791___=4;}else if(yyCompareVal(___sw790___,
6,g_GMLMathEpsilon,false)==0){___swc791___=5;}else if(yyCompareVal(___sw790___,7,g_GMLMathEpsilon,false)==0){___swc791___=6;}else if(yyCompareVal(___sw790___,8,g_GMLMathEpsilon,false)==0){___swc791___=7;}else if(yyCompareVal(___sw790___,9,g_GMLMathEpsilon,false)==0){___swc791___=8;}else if(yyCompareVal(___sw790___,10,g_GMLMathEpsilon,false)==0){___swc791___=9;}else if(yyCompareVal(___sw790___,11,g_GMLMathEpsilon,false)==0){___swc791___=10;}switch(___swc791___){case 0:{_inst.gmlposition=1;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(120,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,104).gmly_scrim;break;}case 1:{_inst.gmlposition=11;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(80,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,104).gmly_scrim;break;}case 2:{_inst.gmlposition=5;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(10,__yy_gml_errCheck(_inst.gmlfacing))));
_inst.y=yyInst(_inst,_other,104).gmly_scrim;break;}case 3:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),8);break;}case 4:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),8);break;}case 5:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),18);break;}case 6:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),18);break;}case 7:{_inst.gmlposition=5;
_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),28);break;}case 8:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),28);break;}case 9:{_inst.gmlposition=5;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),38);break;}case 10:{_inst.gmlposition=5;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmlx_scrim),__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmly_scrim),38);break;}};}}function gml_GlobalScript_s_get_skin_colour_by_index(_inst,_other,argument0){(_inst.gmls_get_skin_colour_by_index=__yy_method(_inst,gml_Script_s_get_skin_colour_by_index));}function gml_Script_s_get_skin_colour_by_index(_inst,_other,argument0){{var ___sw794___=argument0;var ___swc795___=-1;if(yyCompareVal(___sw794___,2,g_GMLMathEpsilon,
false)==0){___swc795___=0;}else if(yyCompareVal(___sw794___,1,g_GMLMathEpsilon,false)==0){___swc795___=1;}else if(yyCompareVal(___sw794___,0,g_GMLMathEpsilon,false)==0){___swc795___=2;}switch(___swc795___){case 0:{return make_color_rgb(238,195,154);break;}case 1:{return make_color_rgb(186,136,87);break;}case 2:{return make_color_rgb(93,51,36);break;}};return choose(2,1,0);}}function gml_GlobalScript_s_point_to_path(_inst,_other){(_inst.gmls_point_to_path=__yy_method(_inst,gml_Script_s_point_to_path));}function gml_Script_s_point_to_path(_inst,
_other){{_inst.gmlpx=yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_startx),__yy_gml_errCheck(path_get_point_x(_inst.gmlmy_route,_inst.gmlmy_route_point)));_inst.gmlpy=yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,_inst.gmlmy_route_point)));if(yyfgreater(_inst.gmlmy_route_starty,300)){_inst.gmlpy=yyfminus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,_inst.gmlmy_route_point)));};if(yyfless(point_distance(_inst.x,
_inst.y,_inst.gmlpx,_inst.gmlpy),20)){{_inst.gmlmy_route_point=yyfplus(_inst.gmlmy_route_point,1);};};if(yyfgreaterequal(_inst.gmlmy_route_point,path_get_number(_inst.gmlmy_route))){{path_delete(_inst.gmlmy_route);};};return point_direction(_inst.x,_inst.y,_inst.gmlpx,_inst.gmlpy);}}function gml_GlobalScript_s_intercept_object(_inst,_other){(_inst.gmls_intercept_object=__yy_method(_inst,gml_Script_s_intercept_object));}function gml_Script_s_intercept_object(_inst,_other,argument0){{var gmldist=point_distance(_inst.x,
_inst.y,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);var gmltimefactor=yyftime(__yy_gml_errCheck(gmldist),0.5);if(yyfless(abs(yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyInst(_inst,_other,argument0).y))),40)){gmltimefactor=yyftime(gmltimefactor,0.5);};_inst.gmldes_x=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).x),__yy_gml_errCheck(lengthdir_x(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,argument0).speed),__yy_gml_errCheck(gmltimefactor)),yyInst(_inst,
_other,argument0).direction)));_inst.gmldes_y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).y),__yy_gml_errCheck(lengthdir_y(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,argument0).speed),__yy_gml_errCheck(gmltimefactor)),yyInst(_inst,_other,argument0).direction)));if(yyfless(_inst.y,yyInst(_inst,_other,argument0).y)){_inst.gmldes_y=yyfminus(_inst.gmldes_y,2);}else {_inst.gmldes_y=yyfplus(_inst.gmldes_y,2);};_inst.gmljdir=point_direction(_inst.x,_inst.y,_inst.gmldes_x,_inst.gmldes_y);
_inst.gmljforce=1;}}function gml_GlobalScript_s_cover_object(_inst,_other,argument0,argument1){(_inst.gmls_cover_object=__yy_method(_inst,gml_Script_s_cover_object));}function gml_Script_s_cover_object(_inst,_other,argument0,argument1){{var gmltarget=argument0;var gmlrange=yyftime(180,__yy_gml_errCheck(argument1));if(yyfequal(yyInst(_inst,_other,gmltarget).gmlfacing,(-1))){_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmltarget).x),__yy_gml_errCheck(gmlrange)),
yyInst(_inst,_other,gmltarget).y);}else {_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmltarget).x),__yy_gml_errCheck(gmlrange)),yyInst(_inst,_other,gmltarget).y);};}}function gml_GlobalScript_s_get_nearest_opponent(_inst,_other,argument0){(_inst.gmls_get_nearest_opponent=__yy_method(_inst,gml_Script_s_get_nearest_opponent));}function gml_Script_s_get_nearest_opponent(_inst,_other,argument0){{if(yyGetBool(yyInst(_inst,_other,argument0).gmltackling)){return yyInst(_inst,
_other,argument0).gmltackling;};var gmllowest,gmllowest_val;gmllowest=(-4);gmllowest_val=(-1);{var __yy__v1012=GetWithArray(106);for(var __yy__v1013 in __yy__v1012){if(!__yy__v1012.hasOwnProperty(__yy__v1013))continue;var __yy__v1014=__yy__v1012[__yy__v1013];{if((yyGetBool(!yyGetBool(__yy__v1014.gmldead)))&&(yyGetBool(yyfnotequal(__yy__v1014.gmloffense,yyInst(_inst,_other,argument0).gmloffense)))&&(yyGetBool(yyfequal(__yy__v1014.gmltackling,(-4))))){{var gmlval=point_distance(__yy__v1014.x,__yy__v1014.y,
yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);if((yyGetBool(yyfequal(gmllowest,(-4))))||(yyGetBool(yyfless(gmlval,gmllowest_val)))){{gmllowest=__yy__v1014.id;gmllowest_val=gmlval;};};};};}}};return gmllowest;}}function gml_GlobalScript_s_aim_for_nearest_opponent(_inst,_other){(_inst.gmls_aim_for_nearest_opponent=__yy_method(_inst,gml_Script_s_aim_for_nearest_opponent));}function gml_Script_s_aim_for_nearest_opponent(_inst,_other){{if(yyGetBool(_inst.gmlnearest_opp)){{_inst.gmljdir=point_direction(_inst.x,
_inst.y,yyInst(_inst,_other,_inst.gmlnearest_opp).x,yyInst(_inst,_other,_inst.gmlnearest_opp).y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlnearest_opp_dist),20),0.5,1);};};return;var gmllowest,gmllowest_val;gmllowest=(-4);gmllowest_val=(-1);{var __yy__v1015=GetWithArray(106);for(var __yy__v1016 in __yy__v1015){if(!__yy__v1015.hasOwnProperty(__yy__v1016))continue;var __yy__v1017=__yy__v1015[__yy__v1016];{if((yyGetBool(!yyGetBool(__yy__v1017.gmldead)))&&(yyGetBool(yyfnotequal(__yy__v1017.gmloffense,
_inst.gmloffense)))&&(yyGetBool(yyfequal(_inst.gmltackling,(-4))))&&(yyGetBool(yyfequal(__yy__v1017.gmltackling,(-4))))){{var gmlval=point_distance(__yy__v1017.x,__yy__v1017.y,_inst.x,_inst.y);if((yyGetBool(yyfequal(gmllowest,(-4))))||(yyGetBool(yyfless(gmlval,gmllowest_val)))){{gmllowest=__yy__v1017.id;gmllowest_val=gmlval;};};};};}}};if(yyfnotequal(gmllowest,(-4))){{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,gmllowest).x,yyInst(_inst,_other,gmllowest).y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(gmllowest_val),
20),0.5,1);return;};};_inst.gmljforce=0;}}function gml_GlobalScript_s_get_distance_to_nearest_opponent(_inst,_other){(_inst.gmls_get_distance_to_nearest_opponent=__yy_method(_inst,gml_Script_s_get_distance_to_nearest_opponent));}function gml_Script_s_get_distance_to_nearest_opponent(_inst,_other){{var gmlnearest=1000;{var __yy__v1018=GetWithArray(106);for(var __yy__v1019 in __yy__v1018){if(!__yy__v1018.hasOwnProperty(__yy__v1019))continue;var __yy__v1020=__yy__v1018[__yy__v1019];{if((yyGetBool(yyfnotequal(__yy__v1020.gmloffense,
_inst.gmloffense)))&&(yyGetBool(!yyGetBool(__yy__v1020.gmldead)))){{var gmlval=point_distance(__yy__v1020.x,__yy__v1020.y,_inst.x,_inst.y);if(yyfless(gmlval,gmlnearest)){{gmlnearest=gmlval;};};};};}}};return gmlnearest;}}function gml_GlobalScript_s_get_distance_to_furthest_teammate(_inst,_other,argument0){(_inst.gmls_get_distance_to_furthest_teammate=__yy_method(_inst,gml_Script_s_get_distance_to_furthest_teammate));}function gml_Script_s_get_distance_to_furthest_teammate(_inst,_other,argument0){{var gmlfurthest=0;
{var __yy__v1021=GetWithArray(106);for(var __yy__v1022 in __yy__v1021){if(!__yy__v1021.hasOwnProperty(__yy__v1022))continue;var __yy__v1023=__yy__v1021[__yy__v1022];{if(yyfequal(__yy__v1023.gmloffense,yyInst(_inst,_other,argument0).gmloffense)){{var gmlval=point_distance(__yy__v1023.x,__yy__v1023.y,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);if(yyfgreater(gmlval,gmlfurthest)){gmlfurthest=gmlval;};};};}}};{var __yy__v1024=GetWithArray(109);for(var __yy__v1025 in __yy__v1024){if(!__yy__v1024.hasOwnProperty(__yy__v1025))continue;
var __yy__v1026=__yy__v1024[__yy__v1025];{var gmlval=point_distance(__yy__v1026.x,__yy__v1026.y,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);if(yyfgreater(gmlval,gmlfurthest)){gmlfurthest=gmlval;};}}};return gmlfurthest;}}function gml_GlobalScript_s_get_destination(_inst,_other){(_inst.gmls_get_destination=__yy_method(_inst,gml_Script_s_get_destination));}function gml_Script_s_get_destination(_inst,_other){{var gmlball=global.gmlmaster_ball;var ___sw798___=yyInst(_inst,_other,gmlball).gmlstate;
var ___swc799___=-1;if(yyCompareVal(___sw798___,0,g_GMLMathEpsilon,false)==0){___swc799___=0;}else if(yyCompareVal(___sw798___,18,g_GMLMathEpsilon,false)==0){___swc799___=1;}else if(yyCompareVal(___sw798___,19,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw798___,2,g_GMLMathEpsilon,false)==0){___swc799___=2;}else if(yyCompareVal(___sw798___,3,g_GMLMathEpsilon,false)==0){___swc799___=3;}else if(yyCompareVal(___sw798___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw798___,9,g_GMLMathEpsilon,false)==0){
___swc799___=4;}else if(yyCompareVal(___sw798___,13,g_GMLMathEpsilon,false)==0){___swc799___=5;}switch(___swc799___){case 0:{_inst.gmljforce=0;break;}case 1:{if(yyGetBool(_inst.gmloffense)){{gml_Script_s_aim_AI_offense(_inst,_other);};}else {{if(yyfequal(_inst.gmlposition,7)){gml_Script_s_received_AI_new(_inst,_other);}else {gml_Script_s_aim_AI_defense(_inst,_other);};};};break;}case 2:{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){return;};}case 3:{if(yyGetBool(_inst.gmloffense)){gml_Script_s_aim_AI_offense(_inst,
_other);}else {gml_Script_s_aim_AI_defense(_inst,_other);};break;}case 4:{if((yyGetBool(_inst.gmloffense))&&(yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder,_inst.id)))&&(yyGetBool(yyfgreater(global.gmlaxisl_force,0.2)))){{_inst.gmljdir=point_direction(0,0,global.gmlaxisl_h,global.gmlaxisl_v);_inst.gmljforce=global.gmlaxisl_force;};}else {gml_Script_s_received_AI_new(_inst,_other);};break;}case 5:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,
_other,gmlball).x,yyInst(_inst,_other,gmlball).y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlballdist),40),0.25,0.75);break;}default :{break;}};}}function gml_GlobalScript_s_check_human_control(_inst,_other){(_inst.gmls_check_human_control=__yy_method(_inst,gml_Script_s_check_human_control));(_inst.gmls_do_dive=__yy_method(_inst,gml_Script_s_do_dive));(_inst.gmls_do_stutterstep=__yy_method(_inst,gml_Script_s_do_stutterstep));}function gml_Script_s_check_human_control(_inst,_other){{
if(!yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder)){return;};if(yyfnotequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder,_inst.id)){return;};if(yyGetBool(gml_Script_s_can_run(_inst,_other))){{if(yyGetBool(global.gmlgamepad)){{if(!yyGetBool(global.gmlaxisr_flick)){{if(yyfless(global.gmlaxisr_v,(-0.75))){{global.gmlflickVelY=(-1);global.gmlaxisr_flick=true;};};if(yyfgreater(global.gmlaxisr_v,0.75)){{global.gmlflickVelY=1;global.gmlaxisr_flick=true;};};if(yyfless(global.gmlaxisr_h,
(-0.75))){{global.gmlflickVelX=(-1);global.gmlaxisr_flick=true;};};if(yyfgreater(global.gmlaxisr_h,0.75)){{global.gmlflickVelX=1;global.gmlaxisr_flick=true;};};if(!yyGetBool(global.gmlaxisr_flick)){{var gml_pressed=0;if(yyGetBool(gml_Script_s_can_touchback(_inst,_other))){gml_pressed=gamepad_button_check(global.gmlgp_slot,global.gmlgp_back);}else {gml_pressed=gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_back);};if((yyGetBool(gml_pressed))&&(yyGetBool(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(_inst,
_other))))){{global.gmlaxisr_flick=true;if((yyGetBool(yyfless(abs(global.gmlaxisl_v),0.2)))&&(yyGetBool(yyfless(abs(global.gmlaxisl_h),0.2)))){{if(yyfequal(_inst.gmlfacing,(-1))){global.gmlflickVelX=1;}else {global.gmlflickVelX=(-1);};};}else {if(yyfless(global.gmlaxisl_v,0)){global.gmlflickVelY=(-1);}else {global.gmlflickVelY=1;};};};};if(yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_select))){gml_Script_s_do_dive(_inst,_other);};};};};};};}else {{if(yyGetBool(keyboard_check_pressed(87))){
global.gmlflickVelY=(-2);};if(yyGetBool(keyboard_check_pressed(83))){global.gmlflickVelY=2;};if(yyGetBool(keyboard_check_pressed(65))){global.gmlflickVelX=(-2);};if(yyGetBool(keyboard_check_pressed(68))){global.gmlflickVelX=2;};if(yyGetBool(keyboard_check_pressed(38))){global.gmlflickVelY=(-2);};if(yyGetBool(keyboard_check_pressed(40))){global.gmlflickVelY=2;};if(yyGetBool(keyboard_check_pressed(37))){global.gmlflickVelX=(-2);};if(yyGetBool(keyboard_check_pressed(39))){global.gmlflickVelX=2;};};
};if(yyfgreater(abs(global.gmlflickVelY),yyftime(__yy_gml_errCheck(abs(global.gmlflickVelX)),0.85))){{_inst.hspeed=yyftime(_inst.hspeed,0.1);if(yyGetBool(global.gmlgamepad)){{if(yyfless(_inst.vspeed,0.2)){_inst.vspeed=yyftime(yyftime(__yy_gml_errCheck(sign(global.gmlflickVelY)),__yy_gml_errCheck(_inst.gmlmy_sidestep)),0.8);}else {if(yyfgreater(_inst.vspeed,0.2)){_inst.vspeed=yyftime(yyftime(__yy_gml_errCheck(sign(global.gmlflickVelY)),__yy_gml_errCheck(_inst.gmlmy_sidestep)),0.8);}else {_inst.vspeed=yyftime(__yy_gml_errCheck(sign(global.gmlflickVelY)),
__yy_gml_errCheck(_inst.gmlmy_sidestep));};};};}else {_inst.vspeed=yyftime(__yy_gml_errCheck(sign(global.gmlflickVelY)),__yy_gml_errCheck(_inst.gmlmy_sidestep));};global.gmlflickVelX=0;global.gmlflickVelY=0;_inst.gmljforce=0;if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{_inst.gmlmy_sidestep=yyftime(_inst.gmlmy_sidestep,0.925);};};};};if(yyGetBool(abs(global.gmlflickVelX))){{if((yyGetBool((yyGetBool(yyfgreater(global.gmlflickVelX,
0)))&&(yyGetBool(yyfequal(_inst.gmlfacing,(-1))))))||(yyGetBool((yyGetBool(yyfless(global.gmlflickVelX,0)))&&(yyGetBool(yyfequal(_inst.gmlfacing,1)))))){gml_Script_s_do_stutterstep(_inst,_other);}else {gml_Script_s_do_dive(_inst,_other);};_inst.gmljforce=0;if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};};};if(yyfless(_inst.gmlmy_sidestep,2.1)){_inst.gmlmy_sidestep=yyfplus(_inst.gmlmy_sidestep,0.003);};};};global.gmlflickVelX=0;global.gmlflickVelY=0;}}function gml_Script_s_do_dive(_inst,
_other){{if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmlpractice_success,0)))){{gml_Script_s_set_anim(_inst,_other,5);_inst.gmljforce=0;if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};};};}}function gml_Script_s_do_stutterstep(_inst,_other){{gml_Script_s_set_anim(_inst,_other,7);_inst.gmljforce=0;if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};}}function gml_GlobalScript_s_check_tackling(_inst,
_other){(_inst.gmls_check_tackling=__yy_method(_inst,gml_Script_s_check_tackling));}function gml_Script_s_check_tackling(_inst,_other){{if(yyGetBool(_inst.gmldead)){return;};if(yyfequal(_inst.gmlanim,4)){return;};if(yyfequal(_inst.gmlanim,8)){return;};if(yyfequal(_inst.gmlanim,10)){return;};var gmlball=global.gmlmaster_ball;var gmlcont=104;if((yyGetBool(!yyGetBool(_inst.gmltackling)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))){{{var __yy__v1027=GetWithArray(_inst.gmlnearest_opp);
for(var __yy__v1028 in __yy__v1027){if(!__yy__v1027.hasOwnProperty(__yy__v1028))continue;var __yy__v1029=__yy__v1027[__yy__v1028];{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,__yy__v1029.id)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,5)))&&(yyGetBool((yyGetBool(gml_Script_is_defensiveback(__yy__v1029,_inst,__yy__v1029.id)))||(yyGetBool(gml_Script_is_defensiveback(__yy__v1029,_inst,_inst.id)))))){{if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(__yy__v1029.gmltackle_time),
2000))){continue;};if((yyGetBool(!yyGetBool(path_exists(__yy__v1029.gmlmy_route))))&&(yyGetBool(!yyGetBool(path_exists(_inst.gmlmy_route))))){continue;};};};if(yyfequal(__yy__v1029.gmloffense,_inst.gmloffense)){continue;};var gmlodist=point_distance(__yy__v1029.x,__yy__v1029.y,_inst.x,_inst.y);if(yyfgreater(gmlodist,40)){continue;};if((yyGetBool(yyfnotequal(__yy__v1029.gmlanim,4)))&&(yyGetBool(yyfnotequal(__yy__v1029.gmlanim,5)))&&(yyGetBool(yyfnotequal(__yy__v1029.gmlanim,8)))&&(yyGetBool(yyfnotequal(__yy__v1029.gmlanim,
10)))&&(yyGetBool((yyGetBool(!yyGetBool(__yy__v1029.gmltackling)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,__yy__v1029.id)))))){{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,__yy__v1029.id)))&&(yyGetBool(yyfequal(_inst.gmlanim,5)))&&(yyGetBool(yyfgreater(_inst.speed,0.1)))&&(yyGetBool(place_meeting(__yy__v1029,__yy__v1029.x,__yy__v1029.y,_inst)))&&(yyGetBool(yyfless(abs(yyfminus(__yy_gml_errCheck(__yy__v1029.y),__yy_gml_errCheck(_inst.y))),10)))){{if((yyGetBool(yyfequal(yyInst(_inst,
_other,gmlcont).gmlkicking,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmlkicking,2)))){{yyInst(_inst,_other,gmlball).gmlstate=15;yyInst(_inst,_other,gmlball).gmlvelocity=0;yyInst(_inst,_other,gmlball).gmlzvel=0;return;};}else {if(yyfgreater(__yy__v1029.gmljumps,0)){{gml_Script_s_sound_tackle(__yy__v1029,_inst);__yy__v1029.hspeed=yyftime(__yy_gml_errCheck(_inst.hspeed),0.5);__yy__v1029.vspeed=yyftime(__yy_gml_errCheck(_inst.vspeed),0.5);gml_Script_s_set_anim(__yy__v1029,_inst,8);_inst.gmldead=g_pBuiltIn.get_current_time();
_inst.speed=yyftime(_inst.speed,0.9);return;};}else {{gml_Script_s_sound_tackle(__yy__v1029,_inst);gml_Script_s_set_anim(__yy__v1029,_inst,4);_inst.speed=yyftime(_inst.speed,0.75);__yy__v1029.hspeed=_inst.hspeed;__yy__v1029.vspeed=_inst.vspeed;return;};};};};}else {{if(yyfless(gmlodist,__yy__v1029.gmlcollsize)){{if(!yyGetBool(gml_Script_s_opponent_goalside(__yy__v1029,_inst,_inst))){{_inst.hspeed=yyfplus(_inst.hspeed,yyftime(__yy_gml_errCheck(__yy__v1029.hspeed),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(__yy__v1029.gmlstrength),
5))));_inst.vspeed=yyfplus(_inst.vspeed,yyftime(__yy_gml_errCheck(__yy__v1029.vspeed),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(__yy__v1029.gmlstrength),5))));};}else {{__yy__v1029.speed=yyftime(__yy__v1029.speed,0.5);_inst.speed=yyftime(_inst.speed,0.5);};};__yy__v1029.x=__yy__v1029.xprevious;__yy__v1029.y=__yy__v1029.yprevious;_inst.x=_inst.xprevious;_inst.y=_inst.yprevious;__yy__v1029.gmltackling=_inst.id;__yy__v1029.gmltackle_time=g_pBuiltIn.get_current_time();gml_Script_s_set_anim(__yy__v1029,
_inst,3);_inst.gmltackling=__yy__v1029.id;_inst.gmltackle_time=g_pBuiltIn.get_current_time();gml_Script_s_set_anim(_inst,__yy__v1029,3);;gml_Script_s_sound_tackle(__yy__v1029,_inst);};};};};};};}}};};}else {if((yyGetBool(!yyGetBool(_inst.gmldead)))&&(yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmltackling)))){{if(yyfless(point_distance(_inst.x,
_inst.y,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),5)){{yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).hspeed=yyftime(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).hspeed,(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))?0.5:0.9));if(yyfless(_inst.y,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y)){yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).vspeed=yyfplus(yyInst(_inst,
_other,yyInst(_inst,_other,gmlball).gmlholder).vspeed,0.06);}else {yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).vspeed=yyfminus(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).vspeed,0.06);};};};};};};if(yyfequal(_inst.gmlanim,5)){return;};if(yyGetBool(_inst.gmltackling)){{_inst.gmllast_tackled=_inst.gmltackling;var gmldist_tack=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,_inst.gmltackling).x,yyInst(_inst,_other,_inst.gmltackling).y);var gmldist_break=12;if(yyGetBool(gml_Script_s_is_kickoff(_inst,
_other,true))){gmldist_break=20;};if(yyGetBool(yyInst(_inst,_other,_inst.gmltackling).gmldead)){{yyInst(_inst,_other,_inst.gmltackling).gmltackling=(-4);gml_Script_s_set_anim(_inst,_other,0);};}else {if((yyGetBool(yyfgreater(gmldist_tack,gmldist_break)))||(yyGetBool((yyGetBool(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmltackle_time),100))))&&(yyGetBool(path_exists(_inst.gmlmy_route)))))){{{var __yy__v1030=GetWithArray(_inst.gmltackling);for(var __yy__v1031 in __yy__v1030){
if(!__yy__v1030.hasOwnProperty(__yy__v1031))continue;var __yy__v1032=__yy__v1030[__yy__v1031];gml_Script_s_set_anim(__yy__v1032,_inst,2);}};gml_Script_s_set_anim(_inst,_other,2);};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfgreater(_inst.gmlstiff_arm,0)))){{gml_Script_s_fieldtxt(_inst,_other,gml_Script_s_str(_inst,_other,"match_StiffArm"));gml_Script_s_sound_audience_catch(_inst,_other);if(yyfless(_inst.y,yyInst(_inst,_other,_inst.gmltackling).y)){
yyInst(_inst,_other,_inst.gmltackling).vspeed=1;}else {yyInst(_inst,_other,_inst.gmltackling).vspeed=(-1);};{var __yy__v1033=GetWithArray(_inst.gmltackling);for(var __yy__v1034 in __yy__v1033){if(!__yy__v1033.hasOwnProperty(__yy__v1034))continue;var __yy__v1035=__yy__v1033[__yy__v1034];gml_Script_s_set_anim(__yy__v1035,_inst,4);}};gml_Script_s_set_anim(_inst,_other,9);};}else {{if(yyfnotequal(_inst.id,yyInst(_inst,_other,gmlball).gmlholder)){yyInst(_inst,_other,_inst.gmltackling).gmltacklecount=yyfplus(yyInst(_inst,
_other,_inst.gmltackling).gmltacklecount,_inst.gmlstrength);};if((yyGetBool(yyfequal(_inst.gmlposition,12)))||(yyGetBool(yyfequal(_inst.gmlposition,13)))){{yyInst(_inst,_other,_inst.gmltackling).speed=yyftime(yyInst(_inst,_other,_inst.gmltackling).speed,0.9);if(yyfless(_inst.x,yyInst(_inst,_other,_inst.gmltackling).x)){yyInst(_inst,_other,_inst.gmltackling).x=yyfplus(yyInst(_inst,_other,_inst.gmltackling).x,0.05);}else {yyInst(_inst,_other,_inst.gmltackling).x=yyfplus(yyInst(_inst,_other,_inst.gmltackling).x,
(-0.05));};};}else {if((yyGetBool(yyfnotequal(_inst.gmlposition,6)))&&(yyGetBool(yyfnotequal(_inst.gmlposition,5)))){{if(yyfless(_inst.y,yyInst(_inst,_other,_inst.gmltackling).y)){yyInst(_inst,_other,_inst.gmltackling).vspeed=0.1;}else {yyInst(_inst,_other,_inst.gmltackling).vspeed=(-0.1);};};}else {{if(yyfless(_inst.x,yyInst(_inst,_other,_inst.gmltackling).x)){yyInst(_inst,_other,_inst.gmltackling).x=yyfplus(yyInst(_inst,_other,_inst.gmltackling).x,yyftime(0.025,__yy_gml_errCheck(_inst.gmlstrength)));
}else {yyInst(_inst,_other,_inst.gmltackling).x=yyfplus(yyInst(_inst,_other,_inst.gmltackling).x,yyftime((-0.025),__yy_gml_errCheck(_inst.gmlstrength)));};};};};if((yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmltackling).gmlposition,4)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.gmltackling)))){return;};if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmltackling).gmlposition,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))))||(yyGetBool(yyfgreater(yyInst(_inst,
_other,_inst.gmltackling).gmltacklecount,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmltackling).gmlstrength),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmltackling).gmlmy_tackle_limit)))))){{{var __yy__v1036=GetWithArray(_inst.gmltackling);for(var __yy__v1037 in __yy__v1036){if(!__yy__v1036.hasOwnProperty(__yy__v1037))continue;var __yy__v1038=__yy__v1036[__yy__v1037];{var gmld=yyfplus(__yy_gml_errCheck(__yy__v1038.gmljdir),180);__yy__v1038.hspeed=yyftime(__yy_gml_errCheck(dcos(gmld)),1.5);__yy__v1038.vspeed=yyftime(__yy_gml_errCheck(dsin(gmld)),
1.5);gml_Script_s_set_anim(__yy__v1038,_inst,4);}}};if((yyGetBool(_inst.gmlpmap))&&(yyGetBool(!yyGetBool(_inst.gmldone_tackle)))){{var gmldotacklestat=false;var ___sw806___=ds_map_find_value(_inst.gmlpmap,"position");var ___swc807___=-1;if(yyCompareVal(___sw806___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw806___,3,g_GMLMathEpsilon,false)==0){___swc807___=0;}else if(yyCompareVal(___sw806___,4,g_GMLMathEpsilon,false)==0){___swc807___=1;}else if(yyCompareVal(___sw806___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw806___,
1,g_GMLMathEpsilon,false)==0){___swc807___=2;}switch(___swc807___){case 0:{var ___sw808___=yyInst(_inst,_other,gmlcont).gmldrivedir;var ___swc809___=-1;if(yyCompareVal(___sw808___,(-1),g_GMLMathEpsilon,false)==0){___swc809___=0;}else if(yyCompareVal(___sw808___,1,g_GMLMathEpsilon,false)==0){___swc809___=1;}switch(___swc809___){case 0:{if(yyfgreater(yyInst(_inst,_other,gmlball).x,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlx_scrim),5))){gmldotacklestat=true;};break;}case 1:{if(yyfless(yyInst(_inst,
_other,gmlball).x,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlx_scrim),5))){gmldotacklestat=true;};break;}};break;}case 1:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,5)){{var ___sw810___=yyInst(_inst,_other,gmlcont).gmldrivedir;var ___swc811___=-1;if(yyCompareVal(___sw810___,(-1),g_GMLMathEpsilon,false)==0){___swc811___=0;}else if(yyCompareVal(___sw810___,1,g_GMLMathEpsilon,false)==0){___swc811___=1;}switch(___swc811___){case 0:{if(yyfless(yyInst(_inst,_other,gmlball).x,yyInst(_inst,
_other,gmlcont).gmlx_scrim)){gmldotacklestat=true;};break;}case 1:{if(yyfgreater(yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlcont).gmlx_scrim)){gmldotacklestat=true;};break;}};};};break;}case 2:{break;}default :{gmldotacklestat=true;break;}};if(yyGetBool(gmldotacklestat)){{ds_map_set_post(_inst.gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_tackles")),1));_inst.gmldone_tackle=true;};};};};gml_Script_s_set_anim(_inst,_other,2);};};};};};};};};}}function gml_GlobalScript_s_stop_tackling(_inst,
_other){(_inst.gmls_stop_tackling=__yy_method(_inst,gml_Script_s_stop_tackling));}function gml_Script_s_stop_tackling(_inst,_other){{if(!yyGetBool(_inst.gmltackling)){return;};_inst.gmltackling=(-4);if(yyfequal(_inst.gmlanim,3)){gml_Script_s_set_anim(_inst,_other,0);};}}function gml_GlobalScript_s_check_dive(_inst,_other){(_inst.gmls_check_dive=__yy_method(_inst,gml_Script_s_check_dive));}function gml_Script_s_check_dive(_inst,_other){{var gmlball=global.gmlmaster_ball;var gmlcont=104;if(yyfequal(yyInst(_inst,
_other,gmlball).gmlholder,(-4))){{if((yyGetBool(_inst.gmloffense))&&(yyGetBool((yyGetBool(!yyGetBool(_inst.gmlpmap)))||(yyGetBool(yyfless(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill"),4)))))){return;};if((yyGetBool(!yyGetBool(_inst.gmloffense)))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlop_difficulty,4)))){return;};var gmljump_max=12;if(!yyGetBool(_inst.gmloffense)){gmljump_max=6;};if((yyGetBool(yyfequal(_inst.gmlanim,2)))&&(yyGetBool(yyfless(_inst.gmlballdist,60)))&&(yyGetBool(yyfless(point_distance(_inst.x,
_inst.y,yyInst(_inst,_other,111).gmljump_x,yyInst(_inst,_other,111).gmljump_y),gmljump_max)))){{gml_Script_s_set_anim(_other,_inst,10);;};}else {if((yyGetBool((yyGetBool(yyfequal(_inst.gmlfacing,1)))&&(yyGetBool(yyfgreater(_inst.x,yyInst(_inst,_other,gmlcont).gmlx_scrim)))))||(yyGetBool((yyGetBool(yyfequal(_inst.gmlfacing,(-1))))&&(yyGetBool(yyfless(_inst.x,yyInst(_inst,_other,gmlcont).gmlx_scrim)))))){{if((yyGetBool(yyfequal(_inst.gmlanim,2)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlzvel,
0)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlheight,30)))&&(yyGetBool(yyfgreater(_inst.gmlbouncedist,_inst.gmlballdist)))&&(yyGetBool(yyfgreater(_inst.gmlballdist,20)))&&(yyGetBool(yyfless(_inst.gmlbouncedist,40)))){{{_other.gmljdir=point_direction(_other.x,_other.y,yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);gml_Script_s_set_anim(_other,_inst,5);};};};};};};};}else {{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense,
_inst.gmloffense)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmldead)))){{if((yyGetBool(yyfequal(_inst.gmlanim,2)))&&(yyGetBool(yyfgreater(abs(_inst.hspeed),0.05)))){{var gmlhardmode=false;if((yyGetBool(!yyGetBool(yyInst(_inst,_other,104).gmlrunning_play)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlposition,2)))){gmlhardmode=true;};if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldown,6)))||(yyGetBool(yyfequal(yyInst(_inst,
_other,104).gmldefensive_cover,0)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmlscrimmage,40)))||(yyGetBool(yyfless(yyInst(_inst,_other,104).gmlyards,3)))){gmlhardmode=true;};if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){{var ___sw814___=yyInst(_inst,_other,104).gmldrivedir;var ___swc815___=-1;if(yyCompareVal(___sw814___,(-1),g_GMLMathEpsilon,false)==0){___swc815___=0;}else if(yyCompareVal(___sw814___,1,g_GMLMathEpsilon,false)==0){___swc815___=1;}switch(___swc815___){case 0:{if(yyfless(yyInst(_inst,
_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),60))){gml_Script_slog(_inst,_other,"scrim_L");};break;}case 1:{if(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),60))){gml_Script_slog(_inst,_other,"scrim_R");};break;}};};};if((yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlintheclear))||(yyGetBool(!yyGetBool(yyInst(_inst,
_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)))||(yyGetBool(gmlhardmode))||(yyGetBool(yyfequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlposition,1)))||(yyGetBool(gml_Script_s_ball_holder_goalside(_inst,_other)))){{var gmloppdist=distance_to_point(_inst,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y);var gmlydist=abs(yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyInst(_inst,_other,
yyInst(_inst,_other,gmlball).gmlholder).y)));if((yyGetBool(yyfless(gmloppdist,20)))&&(yyGetBool(yyfless(gmlydist,5)))){{gml_Script_s_set_anim(_inst,_other,5);};};};};};};};};};};}}function gml_GlobalScript_s_get_quarterback(_inst,_other){(_inst.gmls_get_quarterback=__yy_method(_inst,gml_Script_s_get_quarterback));}function gml_Script_s_get_quarterback(_inst,_other){{{var __yy__v1039=GetWithArray(106);for(var __yy__v1040 in __yy__v1039){if(!__yy__v1039.hasOwnProperty(__yy__v1040))continue;var __yy__v1041=__yy__v1039[__yy__v1040];
if(yyfequal(__yy__v1041.gmlposition,1)){return __yy__v1041.id;};}};return(-4);}}function gml_GlobalScript_s_get_kicker(_inst,_other){(_inst.gmls_get_kicker=__yy_method(_inst,gml_Script_s_get_kicker));}function gml_Script_s_get_kicker(_inst,_other){{{var __yy__v1042=GetWithArray(107);for(var __yy__v1043 in __yy__v1042){if(!__yy__v1042.hasOwnProperty(__yy__v1043))continue;var __yy__v1044=__yy__v1042[__yy__v1043];if(yyfequal(__yy__v1044.gmlposition,1)){return __yy__v1044.id;};}};return(-4);}}function gml_GlobalScript_s_can_run(_inst,
_other){(_inst.gmls_can_run=__yy_method(_inst,gml_Script_s_can_run));}function gml_Script_s_can_run(_inst,_other){{if(yyGetBool(_inst.gmldead)){return false;};if(yyfequal(_inst.gmlposition,1)){return false;};var ___sw818___=_inst.gmlanim;var ___swc819___=-1;if(yyCompareVal(___sw818___,0,g_GMLMathEpsilon,false)==0){___swc819___=0;}else if(yyCompareVal(___sw818___,1,g_GMLMathEpsilon,false)==0){___swc819___=1;}else if(yyCompareVal(___sw818___,2,g_GMLMathEpsilon,false)==0){___swc819___=2;}else if(yyCompareVal(___sw818___,
3,g_GMLMathEpsilon,false)==0){___swc819___=3;}else if(yyCompareVal(___sw818___,4,g_GMLMathEpsilon,false)==0){___swc819___=4;}else if(yyCompareVal(___sw818___,5,g_GMLMathEpsilon,false)==0){___swc819___=5;}else if(yyCompareVal(___sw818___,6,g_GMLMathEpsilon,false)==0){___swc819___=6;}else if(yyCompareVal(___sw818___,7,g_GMLMathEpsilon,false)==0){___swc819___=7;}else if(yyCompareVal(___sw818___,8,g_GMLMathEpsilon,false)==0){___swc819___=8;}else if(yyCompareVal(___sw818___,9,g_GMLMathEpsilon,false)==0){___swc819___=9;
}else if(yyCompareVal(___sw818___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,18,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw818___,19,g_GMLMathEpsilon,false)==0){___swc819___=10;}switch(___swc819___){case 0:{return true;break;}case 1:{return true;break;}case 2:{return true;break;}case 3:{return false;break;}case 4:{return false;break;}case 5:{return false;break;}case 6:{return false;break;}case 7:{return true;break;}case 8:{return false;break;}case 9:{return true;break;}case 10:{return false;break;}};return false;}}function gml_GlobalScript_s_is_in_the_clear(_inst,_other){(_inst.gmls_is_in_the_clear=__yy_method(_inst,
gml_Script_s_is_in_the_clear));}function gml_Script_s_is_in_the_clear(_inst,_other){{if(yyfnotequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder,_other.id)){return false;};var ___sw822___=_inst.gmlfacing;var ___swc823___=-1;if(yyCompareVal(___sw822___,(-1),g_GMLMathEpsilon,false)==0){___swc823___=0;}else if(yyCompareVal(___sw822___,1,g_GMLMathEpsilon,false)==0){___swc823___=1;}switch(___swc823___){case 0:{{var __yy__v1045=GetWithArray(106);for(var __yy__v1046 in __yy__v1045){if(!__yy__v1045.hasOwnProperty(__yy__v1046))continue;
var __yy__v1047=__yy__v1045[__yy__v1046];if((yyGetBool(yyfnotequal(__yy__v1047.gmloffense,_inst.gmloffense)))&&(yyGetBool(yyfless(__yy__v1047.x,_inst.x)))){return false;};}};break;}case 1:{{var __yy__v1048=GetWithArray(106);for(var __yy__v1049 in __yy__v1048){if(!__yy__v1048.hasOwnProperty(__yy__v1049))continue;var __yy__v1050=__yy__v1048[__yy__v1049];if((yyGetBool(yyfnotequal(__yy__v1050.gmloffense,_inst.gmloffense)))&&(yyGetBool(yyfgreater(__yy__v1050.x,_inst.x)))){return false;};}};break;}};return true;
}}function gml_GlobalScript_s_ball_holder_goalside(_inst,_other){(_inst.gmls_ball_holder_goalside=__yy_method(_inst,gml_Script_s_ball_holder_goalside));}function gml_Script_s_ball_holder_goalside(_inst,_other){{var gmlmy_x=_inst.x;{var __yy__v1051=GetWithArray(global.gmlmaster_ball);for(var __yy__v1052 in __yy__v1051){if(!__yy__v1051.hasOwnProperty(__yy__v1052))continue;var __yy__v1053=__yy__v1051[__yy__v1052];{if(yyfequal(__yy__v1053.gmlholder,(-4))){return false;};var ___sw826___=yyInst(_inst,_other,__yy__v1053.gmlholder).gmlfacing;
var ___swc827___=-1;if(yyCompareVal(___sw826___,1,g_GMLMathEpsilon,false)==0){___swc827___=0;}else if(yyCompareVal(___sw826___,(-1),g_GMLMathEpsilon,false)==0){___swc827___=1;}switch(___swc827___){case 0:{if(yyfgreater(yyInst(_inst,_other,__yy__v1053.gmlholder).x,yyfplus(__yy_gml_errCheck(gmlmy_x),5))){return true;};break;}case 1:{if(yyfless(yyInst(_inst,_other,__yy__v1053.gmlholder).x,yyfminus(__yy_gml_errCheck(gmlmy_x),5))){return true;};break;}};}}};return false;}}function gml_GlobalScript_s_opponent_goalside(_inst,
_other,argument0){(_inst.gmls_opponent_goalside=__yy_method(_inst,gml_Script_s_opponent_goalside));}function gml_Script_s_opponent_goalside(_inst,_other,argument0){{var gmlopp=argument0;var ___sw830___=yyInst(_inst,_other,gmlopp).gmlfacing;var ___swc831___=-1;if(yyCompareVal(___sw830___,1,g_GMLMathEpsilon,false)==0){___swc831___=0;}else if(yyCompareVal(___sw830___,(-1),g_GMLMathEpsilon,false)==0){___swc831___=1;}switch(___swc831___){case 0:{if(yyfgreater(yyInst(_inst,_other,gmlopp).x,yyfplus(__yy_gml_errCheck(_inst.x),
5))){return true;};break;}case 1:{if(yyfless(yyInst(_inst,_other,gmlopp).x,yyfminus(__yy_gml_errCheck(_inst.x),5))){return true;};break;}};return false;}}function gml_GlobalScript_s_y_on_myside(_inst,_other,argument0){(_inst.gmls_y_on_myside=__yy_method(_inst,gml_Script_s_y_on_myside));}function gml_Script_s_y_on_myside(_inst,_other,argument0){{if(yyfless(_inst.y,300)){{{var __yy__v1054=GetWithArray(111);for(var __yy__v1055 in __yy__v1054){if(!__yy__v1054.hasOwnProperty(__yy__v1055))continue;var __yy__v1056=__yy__v1054[__yy__v1055];
if(yyfless(argument0,276)){return true;};}};};}else {{{var __yy__v1057=GetWithArray(111);for(var __yy__v1058 in __yy__v1057){if(!__yy__v1057.hasOwnProperty(__yy__v1058))continue;var __yy__v1059=__yy__v1057[__yy__v1058];if(yyfgreater(argument0,332)){return true;};}};};};return false;}}function gml_GlobalScript_s_aim_AI_offense(_inst,_other){(_inst.gmls_aim_AI_offense=__yy_method(_inst,gml_Script_s_aim_AI_offense));}function gml_Script_s_aim_AI_offense(_inst,_other){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,
_other,true))){return gml_Script_s_aim_AI_kickoff(_inst,_other);};if(yyGetBool(path_exists(_inst.gmlmy_route))){{if(yyGetBool(global.gmldebug)){gml_Script_slog(_inst,_other,"path_exists");};_inst.gmljforce=1;_inst.gmljdir=gml_Script_s_point_to_path(_inst,_other);};};if((yyGetBool(yyfequal(_inst.gmlposition,2)))&&(yyGetBool(_inst.gmlpmap))&&(yyGetBool(gml_Script_s_aiming(_inst,_other)))){{_inst.gmljforce=0.9;var gmlslowdown=false;{var __yy__v1060=GetWithArray(108);for(var __yy__v1061 in __yy__v1060){if(!__yy__v1060.hasOwnProperty(__yy__v1061))continue;
var __yy__v1062=__yy__v1060[__yy__v1061];if((yyGetBool(yyfequal(__yy__v1062.gmlposition,6)))&&(yyGetBool(yyfless(point_distance(__yy__v1062.x,__yy__v1062.y,_inst.x,_inst.y),40)))){{gmlslowdown=true;break;};};}};if(yyGetBool(gmlslowdown)){_inst.gmljforce=0.5;};};};var gmlball=global.gmlmaster_ball;var ___sw836___=_inst.gmlposition;var ___swc837___=-1;if(yyCompareVal(___sw836___,1,g_GMLMathEpsilon,false)==0){___swc837___=0;}else if(yyCompareVal(___sw836___,5,g_GMLMathEpsilon,false)==0){___swc837___=1;}
else if(yyCompareVal(___sw836___,2,g_GMLMathEpsilon,false)==0){___swc837___=2;}else if(yyCompareVal(___sw836___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw836___,4,g_GMLMathEpsilon,false)==0){___swc837___=3;}switch(___swc837___){case 0:{if(!yyGetBool(path_exists(_inst.gmlmy_route))){{_inst.gmljforce=0;if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,19)))&&(yyGetBool(yyfless(_inst.gmlballdist,5)))){{gml_Script_s_set_anim(_inst,
_other,12);{var __yy__v1063=GetWithArray(107);for(var __yy__v1064 in __yy__v1063){if(!__yy__v1063.hasOwnProperty(__yy__v1064))continue;var __yy__v1065=__yy__v1063[__yy__v1064];if(yyfequal(__yy__v1065.gmlposition,2)){{gml_Script_s_receive_ball(__yy__v1065,_inst);gml_Script_s_sound_bounce(__yy__v1065,_inst);};};}};};};};};break;}case 1:{if(yyGetBool(_inst.gmltackling)){{_inst.gmljforce=1;_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,_inst.gmltackling).x,yyInst(_inst,_other,_inst.gmltackling).y);
break;};}else {if((yyGetBool(!yyGetBool(_inst.gmllast_tackled)))||(yyGetBool((yyGetBool(_inst.gmlnearest_opp))&&(yyGetBool(yyfless(_inst.gmlnearest_opp_dist,20)))))){{gml_Script_s_aim_for_nearest_opponent(_inst,_other);};}else {{_inst.gmljforce=0;};};};break;}case 2:{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,19)))&&(yyGetBool(yyfless(_inst.gmlballdist,40)))){{{var __yy__v1066=GetWithArray(107);for(var __yy__v1067 in __yy__v1066){if(!__yy__v1066.hasOwnProperty(__yy__v1067))continue;var __yy__v1068=__yy__v1066[__yy__v1067];
{if(yyfequal(__yy__v1068.gmlposition,1)){gml_Script_s_set_anim(__yy__v1068,_inst,12);};}}};gml_Script_s_receive_ball(_inst,_other);gml_Script_s_sound_bounce(_inst,_other);return;};};}case 3:{if(yyGetBool(_inst.gmltackling)){{var ___sw838___=yyfmod(__yy_gml_errCheck(_inst.gmlstrength),2);var ___swc839___=-1;if(yyCompareVal(___sw838___,0,g_GMLMathEpsilon,false)==0){___swc839___=0;}else if(yyCompareVal(___sw838___,1,g_GMLMathEpsilon,false)==0){___swc839___=1;}switch(___swc839___){case 0:{_inst.gmljdir=90;
break;}case 1:{_inst.gmljdir=270;break;}};};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,3)))&&(yyGetBool(yyfless(_inst.gmlbouncedist,100)))){{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlbouncedist),40),0.25,1);};}else {if(!yyGetBool(path_exists(_inst.gmlmy_route))){{_inst.gmljforce=0;if((yyGetBool(yyfnotequal(_inst.gmlmy_route_end_dir,999)))&&(yyGetBool(!yyGetBool(yyInst(_inst,
_other,97).gmlgamepractice)))){{_inst.gmljdir=_inst.gmlmy_route_end_dir;_inst.gmljforce=1;};};};};};};break;}};if(!yyGetBool(path_exists(_inst.gmlmy_route))){{var gmlarmstrength=0;var gmlqb=gml_Script_s_get_quarterback(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(yyInst(_inst,_other,gmlqb).gmlpmap))){gmlarmstrength=gml_Script_s_get_attribute(_inst,_other,yyInst(_inst,_other,gmlqb).gmlpmap,"strength");}else {if(yyGetBool(global.gmlexhibition)){gmlarmstrength=yyInst(_inst,_other,104).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,
_other,104).gmlpossession,yyInst(_inst,_other,104).gmlteam_offense)];};};var gmldist=yyfplus(260,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlarmstrength),40)));if((yyGetBool(gmlqb))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,2)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,1)))))){{if(yyfgreater(_inst.gmlballdist,gmldist)){{_inst.gmljdir=_inst.gmlballdir;_inst.gmljforce=0.1;};};};};};};}}function gml_GlobalScript_s_aim_AI_defense(_inst,_other){(_inst.gmls_aim_AI_defense=__yy_method(_inst,
gml_Script_s_aim_AI_defense));}function gml_Script_s_aim_AI_defense(_inst,_other){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return gml_Script_s_aim_AI_kickoff(_inst,_other);};var gmlball=global.gmlmaster_ball;var gmlcont=104;var ___sw846___=_inst.gmlposition;var ___swc847___=-1;if(yyCompareVal(___sw846___,6,g_GMLMathEpsilon,false)==0){___swc847___=0;}else if(yyCompareVal(___sw846___,9,g_GMLMathEpsilon,false)==0){___swc847___=1;}else if(yyCompareVal(___sw846___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw846___,
7,g_GMLMathEpsilon,false)==0){___swc847___=2;}switch(___swc847___){case 0:{var gmlqb=(-4);{var __yy__v1069=GetWithArray(107);for(var __yy__v1070 in __yy__v1069){if(!__yy__v1069.hasOwnProperty(__yy__v1070))continue;var __yy__v1071=__yy__v1069[__yy__v1070];if(yyfequal(__yy__v1071.gmlposition,1)){gmlqb=__yy__v1071.id;};}};if(yyGetBool(gmlqb)){{_inst.gmljforce=1;_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,gmlqb).x,yyInst(_inst,_other,gmlqb).y);};}else {{_inst.gmljforce=0;};};break;}case 1:{
if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,3)))&&(yyGetBool(yyfless(_inst.gmlbouncedist,80)))){{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlbouncedist),40),0.25,0.75);};}else {{_inst.gmljdir=180;if(yyfequal(_inst.gmlfacing,(-1))){_inst.gmljdir=0;};_inst.gmljforce=0.3;var gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,4);
if((yyGetBool(yyfgreater(yyInst(_inst,_other,gmlcont).gmldefensive_cover,0)))||(yyGetBool(yyfless((yyGetBool(gmlopp))&&(yyGetBool(point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlopp).x,yyInst(_inst,_other,gmlopp).y))),80)))){{if(yyGetBool(gmlopp)){{gml_Script_s_cover_object(_inst,_other,gmlopp,1);_inst.gmljforce=0.5;};};};};};};break;}case 2:{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,3)))&&(yyGetBool(yyfless(_inst.gmlbouncedist,100)))){{_inst.gmljdir=point_direction(_inst.x,
_inst.y,yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlbouncedist),40),0.25,0.75);};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldefensive_cover,0)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldown,6)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(_inst.gmlrandyards),2),0)))){{_inst.gmlposition=9;};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldefensive_cover,0)))&&(yyGetBool(yyfequal(_inst.gmlposition,
8)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(_inst.gmlrandyards),2),0)))){{_inst.gmlposition=9;};}else {{var gmlopp=_inst.gmlnearest_opp;if(yyfequal(_inst.gmlposition,7)){{{var __yy__v1072=GetWithArray(107);for(var __yy__v1073 in __yy__v1072){if(!__yy__v1072.hasOwnProperty(__yy__v1073))continue;var __yy__v1074=__yy__v1072[__yy__v1073];if(yyfequal(__yy__v1074.gmlposition,2)){gmlopp=__yy__v1074.id;};}};var gmlclosest_dist=0;var gmlclosest_lb=(-4);{var __yy__v1075=GetWithArray(108);for(var __yy__v1076 in __yy__v1075){
if(!__yy__v1075.hasOwnProperty(__yy__v1076))continue;var __yy__v1077=__yy__v1075[__yy__v1076];{var gmldist=point_distance(__yy__v1077.x,__yy__v1077.y,yyInst(_inst,_other,gmlopp).x,yyInst(_inst,_other,gmlopp).y);if((yyGetBool(!yyGetBool(gmlclosest_lb)))||(yyGetBool(yyfless(gmldist,gmlclosest_dist)))){{gmlclosest_dist=gmldist;gmlclosest_lb=__yy__v1077.id;};};}}};if(yyfnotequal(gmlclosest_lb,_inst.id)){{gmlopp=_inst.gmlnearest_opp;if(yyfequal(yyInst(_inst,_other,gmlcont).gmldefensive_cover,0)){{{var __yy__v1078=GetWithArray(107);
for(var __yy__v1079 in __yy__v1078){if(!__yy__v1078.hasOwnProperty(__yy__v1079))continue;var __yy__v1080=__yy__v1078[__yy__v1079];if(yyfequal(__yy__v1080.gmlposition,1)){gmlopp=__yy__v1080.id;};}};};};};};};}else {if(!yyGetBool(gmlopp)){{if(yyfequal(_inst.gmlposition,8)){gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,4);};if(yyfequal(_inst.gmlposition,7)){gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,(-4));};};};};if((yyGetBool(gmlopp))&&(yyGetBool(!yyGetBool(yyInst(_inst,
_other,gmlopp).gmltackling)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlopp).gmlposition,5)))){{var gmldiff=yyfdivide(__yy_gml_errCheck(clamp(yyInst(_inst,_other,104).gmldifficulty,1,10)),10);var gmld=lerp(10,40,gmldiff);var gmloppdist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlopp).x,yyInst(_inst,_other,gmlopp).y);if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,yyInst(_inst,_other,gmlopp).id)))&&(yyGetBool(yyfgreater(gmloppdist,gmld)))){{gml_Script_s_cover_object(_inst,
_other,gmlopp,lerp(0.25,0.5,gmldiff));_inst.gmljforce=1;};}else {{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlopp).gmlposition,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_opponent_goalside(_inst,_other,gmlopp))))){{var gmloppdist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlopp).x,yyInst(_inst,_other,gmlopp).y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(gmloppdist),20),0.5,1);};}else {{gml_Script_s_intercept_object(_inst,_other,gmlopp);};};};};};}else {if(yyfequal(_inst.gmlposition,
7)){{var ___sw848___=yyfmod(__yy_gml_errCheck(_inst.gmlrandyards),2);var ___swc849___=-1;if(yyCompareVal(___sw848___,0,g_GMLMathEpsilon,false)==0){___swc849___=0;}switch(___swc849___){case 0:{_inst.gmljdir=180;if(yyfequal(_inst.gmlfacing,(-1))){_inst.gmljdir=0;};_inst.gmljforce=0.25;break;}default :{_inst.gmljforce=0.75;var gmlopp=(-4);var ___sw850___=_inst.gmlfacing;var ___swc851___=-1;if(yyCompareVal(___sw850___,(-1),g_GMLMathEpsilon,false)==0){___swc851___=0;}else if(yyCompareVal(___sw850___,1,g_GMLMathEpsilon,
false)==0){___swc851___=1;}switch(___swc851___){case 0:{_inst.gmljdir=180;if(yyfless(_inst.x,yyInst(_inst,_other,gmlcont).gmlx_scrim)){gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,1);};break;}case 1:{_inst.gmljdir=0;if(yyfgreater(_inst.x,yyInst(_inst,_other,gmlcont).gmlx_scrim)){gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,1);};}};if(yyGetBool(gmlopp)){gml_Script_s_intercept_object(_inst,_other,gmlopp);};break;}};};};};};};};};break;}};}}
function gml_GlobalScript_s_received_AI_new(_inst,_other){(_inst.gmls_received_AI_new=__yy_method(_inst,gml_Script_s_received_AI_new));}function gml_Script_s_received_AI_new(_inst,_other){{if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,3)))||(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)))&&(yyGetBool(yyfequal(_inst.gmlposition,5)))))){{_inst.gmljforce=0;return;};};if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};if(yyGetBool(gml_Script_s_is_kickoff(_inst,
_other,true))){return gml_Script_s_received_AI_kickoff(_inst,_other);};var gmlball=global.gmlmaster_ball;if(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if(yyfequal(_inst.gmlposition,1)){{_inst.gmljforce=0;return;};};var gmlbeyond_scrim=false;var ___sw856___=yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlfacing;var ___swc857___=-1;if(yyCompareVal(___sw856___,(-1),g_GMLMathEpsilon,false)==0){___swc857___=0;}else if(yyCompareVal(___sw856___,1,g_GMLMathEpsilon,false)==0){
___swc857___=1;}switch(___swc857___){case 0:{if(yyfless(yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,104).gmlx_scrim)){gmlbeyond_scrim=true;};break;}case 1:{if(yyfgreater(yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,104).gmlx_scrim)){gmlbeyond_scrim=true;};break;}};if((yyGetBool(!yyGetBool(gmlbeyond_scrim)))&&(yyGetBool(yyfgreater(_inst.gmlballdist,200)))){_inst.gmljforce=0.1;}else {if((yyGetBool(!yyGetBool(gmlbeyond_scrim)))&&(yyGetBool(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmlplay_start),1000))))){{var gmlt=yyfminus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(yyInst(_inst,_other,104).gmlplay_start));_inst.gmljforce=yyftime(__yy_gml_errCheck(gmlt),0.001);};}else {gml_Script_s_intercept_object(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder);};};};}else {if(yyfnotequal(_inst.gmlposition,1)){{if((yyGetBool(global.gmlgamepad))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlop_autorun)))&&(yyGetBool(_inst.gmloffense))){_inst.gmljforce=0;
}else {_inst.gmljforce=1;};return;};};};var ___sw858___=_inst.gmlposition;var ___swc859___=-1;if(yyCompareVal(___sw858___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw858___,4,g_GMLMathEpsilon,false)==0){___swc859___=0;}else if(yyCompareVal(___sw858___,5,g_GMLMathEpsilon,false)==0){___swc859___=1;}else if(yyCompareVal(___sw858___,6,g_GMLMathEpsilon,false)==0){___swc859___=2;}switch(___swc859___){case 0:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){break;};}case 1:{if(!yyGetBool(yyInst(_inst,
_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)){break;};}case 2:{gml_Script_s_aim_for_nearest_opponent(_inst,_other);break;}default :{break;}};if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(_inst.gmloffense,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)))){{if(yyfless(_inst.gmlnearest_opp_dist,_inst.gmlballdist)){{gml_Script_s_aim_for_nearest_opponent(_inst,_other);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlnearest_opp_dist),
20),0.5,1);};}else {{_inst.gmljforce=0.7;};};};};}}function gml_GlobalScript_s_can_throw(_inst,_other){(_inst.gmls_can_throw=__yy_method(_inst,gml_Script_s_can_throw));}function gml_Script_s_can_throw(_inst,_other){{{var __yy__v1081=GetWithArray(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder);for(var __yy__v1082 in __yy__v1081){if(!__yy__v1081.hasOwnProperty(__yy__v1082))continue;var __yy__v1083=__yy__v1081[__yy__v1082];{if(yyfnotequal(__yy__v1083.gmlposition,1)){return false;};var ___sw862___=__yy__v1083.gmlfacing;
var ___swc863___=-1;if(yyCompareVal(___sw862___,(-1),g_GMLMathEpsilon,false)==0){___swc863___=0;}else if(yyCompareVal(___sw862___,1,g_GMLMathEpsilon,false)==0){___swc863___=1;}switch(___swc863___){case 0:{if(yyfless(__yy__v1083.x,yyInst(_inst,_other,104).gmlx_scrim)){return false;};break;}case 1:{if(yyfgreater(__yy__v1083.x,yyInst(_inst,_other,104).gmlx_scrim)){return false;};break;}};return true;}}};return false;}}function gml_GlobalScript_s_sprite_holding_ball(_inst,_other,argument0){(_inst.gmls_sprite_holding_ball=__yy_method(_inst,
gml_Script_s_sprite_holding_ball));}function gml_Script_s_sprite_holding_ball(_inst,_other,argument0){{var ___sw866___=argument0;var ___swc867___=-1;if(yyCompareVal(___sw866___,32,g_GMLMathEpsilon,false)==0){___swc867___=0;}else if(yyCompareVal(___sw866___,33,g_GMLMathEpsilon,false)==0){___swc867___=1;}else if(yyCompareVal(___sw866___,36,g_GMLMathEpsilon,false)==0){___swc867___=2;}else if(yyCompareVal(___sw866___,34,g_GMLMathEpsilon,false)==0){___swc867___=3;}else if(yyCompareVal(___sw866___,261,g_GMLMathEpsilon,
false)==0){___swc867___=4;}else if(yyCompareVal(___sw866___,40,g_GMLMathEpsilon,false)==0){___swc867___=5;}else if(yyCompareVal(___sw866___,41,g_GMLMathEpsilon,false)==0){___swc867___=6;}else if(yyCompareVal(___sw866___,43,g_GMLMathEpsilon,false)==0){___swc867___=7;}else if(yyCompareVal(___sw866___,44,g_GMLMathEpsilon,false)==0){___swc867___=8;}else if(yyCompareVal(___sw866___,45,g_GMLMathEpsilon,false)==0){___swc867___=9;}else if(yyCompareVal(___sw866___,46,g_GMLMathEpsilon,false)==0){___swc867___=10;
}else if(yyCompareVal(___sw866___,48,g_GMLMathEpsilon,false)==0){___swc867___=11;}else if(yyCompareVal(___sw866___,49,g_GMLMathEpsilon,false)==0){___swc867___=12;}else if(yyCompareVal(___sw866___,50,g_GMLMathEpsilon,false)==0){___swc867___=13;}else if(yyCompareVal(___sw866___,51,g_GMLMathEpsilon,false)==0){___swc867___=14;}else if(yyCompareVal(___sw866___,52,g_GMLMathEpsilon,false)==0){___swc867___=15;}else if(yyCompareVal(___sw866___,56,g_GMLMathEpsilon,false)==0){___swc867___=16;}else if(yyCompareVal(___sw866___,
57,g_GMLMathEpsilon,false)==0){___swc867___=17;}else if(yyCompareVal(___sw866___,59,g_GMLMathEpsilon,false)==0){___swc867___=18;}else if(yyCompareVal(___sw866___,60,g_GMLMathEpsilon,false)==0){___swc867___=19;}else if(yyCompareVal(___sw866___,64,g_GMLMathEpsilon,false)==0){___swc867___=20;}else if(yyCompareVal(___sw866___,66,g_GMLMathEpsilon,false)==0){___swc867___=21;}else if(yyCompareVal(___sw866___,143,g_GMLMathEpsilon,false)==0){___swc867___=22;}else if(yyCompareVal(___sw866___,253,g_GMLMathEpsilon,
false)==0){___swc867___=23;}else if(yyCompareVal(___sw866___,228,g_GMLMathEpsilon,false)==0){___swc867___=24;}switch(___swc867___){case 0:{return true;break;}case 1:{return true;break;}case 2:{return true;break;}case 3:{return true;break;}case 4:{return true;break;}case 5:{return true;break;}case 6:{return true;break;}case 7:{return true;break;}case 8:{return true;break;}case 9:{return true;break;}case 10:{return true;break;}case 11:{return true;break;}case 12:{return true;break;}case 13:{return true;break;}case 14:{return true;
break;}case 15:{return true;break;}case 16:{return true;break;}case 17:{return true;break;}case 18:{return true;break;}case 19:{return true;break;}case 20:{return true;break;}case 21:{return true;break;}case 22:{return true;break;}case 23:{return true;break;}case 24:{return true;break;}};return false;}}function gml_GlobalScript_s_is_falling(_inst,_other){(_inst.gmls_is_falling=__yy_method(_inst,gml_Script_s_is_falling));}function gml_Script_s_is_falling(_inst,_other){{if((yyGetBool(yyfequal(_inst.sprite_index,54)))||(yyGetBool(yyfequal(_inst.sprite_index,
56)))||(yyGetBool(yyfequal(_inst.sprite_index,57)))){return true;};return false;}}function gml_GlobalScript_is_defensiveback(_inst,_other,argument0){(_inst.gmlis_defensiveback=__yy_method(_inst,gml_Script_is_defensiveback));}function gml_Script_is_defensiveback(_inst,_other,argument0){{{var __yy__v1084=GetWithArray(argument0);for(var __yy__v1085 in __yy__v1084){if(!__yy__v1084.hasOwnProperty(__yy__v1085))continue;var __yy__v1086=__yy__v1084[__yy__v1085];{var ___sw870___=__yy__v1086.gmlposition;var ___swc871___=-1;
if(yyCompareVal(___sw870___,8,g_GMLMathEpsilon,false)==0){___swc871___=0;}else if(yyCompareVal(___sw870___,7,g_GMLMathEpsilon,false)==0){___swc871___=1;}else if(yyCompareVal(___sw870___,9,g_GMLMathEpsilon,false)==0){___swc871___=2;}switch(___swc871___){case 0:{return true;break;}case 1:{return true;break;}case 2:{return true;break;}};}}};return false;}}function gml_GlobalScript_s_get_qb_name(_inst,_other){(_inst.gmls_get_qb_name=__yy_method(_inst,gml_Script_s_get_qb_name));}function gml_Script_s_get_qb_name(_inst,
_other){{var gmlqb=gml_Script_s_get_quarterback(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(yyInst(_inst,_other,gmlqb).gmlpmap))){return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"position")))," "),__yy_gml_errCheck(string_copy(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"fname"),1,1))),"."),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"lname")));};return "0";
}}function gml_GlobalScript_s_get_kicker_name(_inst,_other){(_inst.gmls_get_kicker_name=__yy_method(_inst,gml_Script_s_get_kicker_name));}function gml_Script_s_get_kicker_name(_inst,_other){{var gmlkk=gml_Script_s_get_kicker(_inst,_other);if((yyGetBool(gmlkk))&&(yyGetBool(yyInst(_inst,_other,gmlkk).gmlpmap))){return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"position")))," "),__yy_gml_errCheck(string_copy(ds_map_find_value(yyInst(_inst,
_other,gmlkk).gmlpmap,"fname"),1,1))),"."),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"lname")));};return "0";}}function gml_GlobalScript_s_get_holder_name(_inst,_other){(_inst.gmls_get_holder_name=__yy_method(_inst,gml_Script_s_get_holder_name));}function gml_Script_s_get_holder_name(_inst,_other){{{var __yy__v1087=GetWithArray(global.gmlmaster_ball);for(var __yy__v1088 in __yy__v1087){if(!__yy__v1087.hasOwnProperty(__yy__v1088))continue;var __yy__v1089=__yy__v1087[__yy__v1088];
{if((yyGetBool(__yy__v1089.gmlholder))&&(yyGetBool(yyInst(_inst,_other,__yy__v1089.gmlholder).gmlpmap))){return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1089,_inst,ds_map_find_value(yyInst(_inst,_other,__yy__v1089.gmlholder).gmlpmap,"position")))," "),__yy_gml_errCheck(string_copy(ds_map_find_value(yyInst(_inst,_other,__yy__v1089.gmlholder).gmlpmap,"fname"),1,1))),"."),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,__yy__v1089.gmlholder).gmlpmap,
"lname")));};}}};return "0";}}function gml_GlobalScript_s_get_opponent_team_tla(_inst,_other){(_inst.gmls_get_opponent_team_tla=__yy_method(_inst,gml_Script_s_get_opponent_team_tla));}function gml_Script_s_get_opponent_team_tla(_inst,_other){{{var __yy__v1090=GetWithArray(104);for(var __yy__v1091 in __yy__v1090){if(!__yy__v1090.hasOwnProperty(__yy__v1091))continue;var __yy__v1092=__yy__v1090[__yy__v1091];{var gmlmap=__yy__v1092.gmlteam[__yy_gml_array_check_index(!yyGetBool(__yy__v1092.gmlhuman_team)?1:0,
__yy__v1092.gmlteam)];if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"tla")))){return ds_map_find_value(gmlmap,"tla");};}}};return "0";}}function gml_GlobalScript_s_set_up_play(_inst,_other){(_inst.gmls_set_up_play=__yy_method(_inst,gml_Script_s_set_up_play));(_inst.gmls_btn_audible_reposition=__yy_method(_inst,gml_Script_s_btn_audible_reposition));(_inst.gmls_btn_fieldgoal_reposition=__yy_method(_inst,gml_Script_s_btn_fieldgoal_reposition));}function gml_Script_s_set_up_play(_inst,
_other,argument0){{show_debug_message(yyfplus("s_set_up_play: difficulty = ",__yy_gml_errCheck(string(yyfplus(5,__yy_gml_errCheck(yyInst(_inst,_other,104).gmldifficulty))))));if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){gml_Script_s_force_kick_direction(_inst,_other);};if((yyGetBool(global.gmlpoki))&&(yyGetBool(!yyGetBool(global.gmlpoki_gameplay)))){{gml_Script__poki_gameplay_start(_inst,_other);global.gmlpoki_gameplay=true;};};{var __yy__v1093=GetWithArray(97);
for(var __yy__v1094 in __yy__v1093){if(!__yy__v1093.hasOwnProperty(__yy__v1094))continue;var __yy__v1095=__yy__v1093[__yy__v1094];__yy__v1095.gmlroster=gml_Script_s_sort_players(__yy__v1095,_inst,__yy__v1095.gmlroster,4);}};global.gmlreplay_do=false;_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmltimeout_called=false;_inst.gmlkicking=0;_inst.gmlrunning_play=false;_inst.gmlscorer="";_inst.gmlscored_by=(-1);_inst.gmldrop_happened=false;_inst.gmlcheer_frame=0;_inst.gmldist_td=0;if(yyfequal(_inst.gmlquarter,
5)){{_inst.gmlhad_ot_possession=__yy_gml_array_check(_inst.gmlhad_ot_possession,1346804767);_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(_inst.gmlpossession)]=1;gml_Script_slog(_inst,_other,yyfplus(yyfplus("had_ot_possession[",__yy_gml_errCheck(string(_inst.gmlpossession))),"] = 1"));};};var ___sw874___=_inst.gmldown;var ___swc875___=-1;if(yyCompareVal(___sw874___,99,g_GMLMathEpsilon,false)==0){___swc875___=0;}else if(yyCompareVal(___sw874___,4,g_GMLMathEpsilon,false)==0){___swc875___=1;
}else if(yyCompareVal(___sw874___,5,g_GMLMathEpsilon,false)==0){___swc875___=2;}else if(yyCompareVal(___sw874___,6,g_GMLMathEpsilon,false)==0){___swc875___=3;}else if(yyCompareVal(___sw874___,7,g_GMLMathEpsilon,false)==0){___swc875___=4;}switch(___swc875___){case 0:{gml_Script_s_set_up_kickoff(_inst,_other);if(!yyGetBool(global.gmlexhibition)){{if((yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmltag_kr_message_done,0)))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmltag_kr_message_done,3)))){{yyInst(_inst,
_other,97).gmltag_kr_message_done=3;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TouchBack"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",16777215,0.7);};};};};return;}case 1:{if((yyGetBool(yyflessequal(yyInst(_inst,_other,104).gmlminutes,0)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,104).gmlseconds,0)))){{gml_Script_s_action_result(_inst,_other,9);return;};}else {if(!yyGetBool(argument0)){{if(yyfless(_inst.gmlscrimmage,(-2))){{if((yyGetBool(yyfequal(yyInst(_inst,
_other,104).gmlquarter,5)))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){break;}else {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"matchmsg_PlayPunt"),gml_Script_s_str(_inst,_other,"down_4"),gml_Script_s_str(_inst,_other,"Punt"),kgml_Script_btn_response_kick_no,kgml_Script_btn_response_punt_yes,16777215,0.7);};};}else {{var gmlstr_down=gml_Script_s_str(_inst,_other,yyfplus("down_",__yy_gml_errCheck(string(_inst.gmldown))));var gmlmsg=gml_Script_s_str(_inst,
_other,"matchmsg_PlayFG");gmlmsg=string_replace(gmlmsg,"$down",gmlstr_down);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gmlstr_down,gml_Script_s_str(_inst,_other,"Field Goal"),kgml_Script_btn_response_kick_no,kgml_Script_btn_response_fg_yes,16777215,0.7);};};};};};break;}case 2:{gml_Script_s_action_result(_inst,_other,4);return;break;}case 3:{_inst.gmlyards=2;_inst.gmlscrimmage=48;break;}case 4:{gml_Script_s_action_result(_inst,_other,4);return;break;}default :{if((yyGetBool(yyflessequal(yyInst(_inst,
_other,104).gmlminutes,0)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,104).gmlseconds,0)))){{gml_Script_s_action_result(_inst,_other,9);return;};}else {if((yyGetBool(!yyGetBool(argument0)))&&(yyGetBool(yyfgreaterequal(_inst.gmlscrimmage,(-2))))&&(yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,20)))){{var gmlstr_down=gml_Script_s_str(_inst,_other,yyfplus("down_",__yy_gml_errCheck(string(_inst.gmldown))));var gmlmsg=gml_Script_s_str(_inst,_other,"matchmsg_PlayFG");gmlmsg=string_replace(gmlmsg,
"$down",gmlstr_down);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gmlstr_down,gml_Script_s_str(_inst,_other,"Field Goal"),kgml_Script_btn_response_kick_no,kgml_Script_btn_response_fg_yes,16777215,0.7);};}else {if((yyGetBool(!yyGetBool(global.gmlexhibition)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmltimeout_message_done)))){{var gmlmsg="msg_Audibles";if(yyGetBool(global.gmlbrowser)){
gmlmsg="msg_AudiblesHtml";};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gmlmsg="msg_AudiblesQB";};gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,gmlmsg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_timeouts,"",16777215,0.7);};}else {if((yyGetBool(!yyGetBool(global.gmlexhibition)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlweek,1)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(!yyGetBool(yyInst(_inst,
_other,97).gmlbullet_throw_message_done)))){{var gmlmsg="msg_BulletThrow";if(yyGetBool(global.gmlgamepad)){gmlmsg="msg_BulletThrowGamepad";}else {if(!yyGetBool(global.gmlmobile_device)){gmlmsg="msg_BulletThrowHtml";};};yyInst(_inst,_other,97).gmlbullet_throw_message_done=1;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,gmlmsg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",16777215,0.7);};};};};};break;}};show_debug_message(yyfplus("Down = ",__yy_gml_errCheck(string(_inst.gmldown))));
show_debug_message(yyfplus("Scrimmage = ",__yy_gml_errCheck(string(_inst.gmlscrimmage))));_inst.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=276;if(yyfgreater(_inst.gmly_down,300)){_inst.gmly_scrim=332;};if(yyfequal(_inst.gmldown,
6)){_inst.gmly_scrim=300;};gml_Script_s_choose_defensive_formation(_inst,_other);(g_yyPrePostObject__=_inst.gmlsnaps,_inst.gmlsnaps=(g_yyPrePostObject__ instanceof Long?_inst.gmlsnaps.add(1):++_inst.gmlsnaps),g_yyPrePostObject__);gml_Script_s_destroy_match_objects(_inst,_other);gml_Script_slog(_inst,_other,"Create players");var gmlo=0;for(;yyfless(gmlo,11);(g_yyPrePostObject__=gmlo,gmlo=(g_yyPrePostObject__ instanceof Long?gmlo.add(1):++gmlo),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",
107);}};var gmld=0;for(;yyfless(gmld,11);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",108);}};{var __yy__v1096=GetWithArray(106);for(var __yy__v1097 in __yy__v1096){if(!__yy__v1096.hasOwnProperty(__yy__v1097))continue;var __yy__v1098=__yy__v1096[__yy__v1097];gml_Script_s_set_skills_and_skin(__yy__v1098,_inst);}};if((yyGetBool(yyInst(_inst,_other,97).gmlqb_mode))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,
5)))){gml_Script_s_set_rewarded_route(_inst,_other);};gml_Script_slog(_inst,_other,"Create ball");global.gmlmaster_ball=instance_create_layer(0,0,"Ball",110);instance_create_layer(0,0,"Ball",111);gml_Script_slog(_inst,_other,yyfplus("instance_number(obj_ball) == ",__yy_gml_errCheck(string(instance_number(110)))));yyInst(_inst,_other,104).gmlcontrol_alpha=5;var gmlauds=gml_Script_s_count_audibles(_inst,_other);if(yyGetBool(gmlauds)){{var gmlbx=32;var gmlby=48;if(yyfequal(_inst.gmldrivedir,(-1))){gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),
32),__yy_gml_errCheck(sprite_get_width(79)));};gml_Script_slog(_inst,_other,yyfplus("Create audible button: ",__yy_gml_errCheck(string(gmlauds))));var gmlbtn_aud=instance_create_layer(gmlbx,gmlby,"Text",121);yyInst(_inst,_other,gmlbtn_aud).gmlgp_mapped_button=global.gmlgp_timeout;};};if((yyGetBool((yyGetBool(yyfequal(_inst.gmldown,4)))||(yyGetBool(yyfequal(_inst.gmldown,6)))))&&(yyGetBool(gml_Script_s_count_timeouts(_inst,_other)))){{var gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),
32),__yy_gml_errCheck(sprite_get_width(79)));var gmlby=48;if(yyfequal(_inst.gmldrivedir,(-1))){gmlbx=32;};var gmlobj_btn_fg=instance_create_layer(gmlbx,gmlby,"Text",123);yyInst(_inst,_other,gmlobj_btn_fg).gmlgp_mapped_button=32772;yyInst(_inst,_other,gmlobj_btn_fg).gmlgp_mapped_hidden=32774;if(yyfequal(_inst.gmldown,6)){{yyInst(_inst,_other,gmlobj_btn_fg).gmltxt=gml_Script_s_str(_inst,_other,"btn_GoFor1");yyInst(_inst,_other,gmlobj_btn_fg).gmlonClickAction=kgml_Script_btn_match_gofor1pt;};};};};}}
function gml_Script_s_btn_audible_reposition(_inst,_other){{if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))){_inst.x=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),32),__yy_gml_errCheck(sprite_get_width(79)));}else {_inst.x=32;};}}function gml_Script_s_btn_fieldgoal_reposition(_inst,_other){{if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))){_inst.x=32;}else {_inst.x=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),32),__yy_gml_errCheck(sprite_get_width(79)));};
}}function gml_GlobalScript_s_update_commentary(_inst,_other){(_inst.gmls_update_commentary=__yy_method(_inst,gml_Script_s_update_commentary));(_inst.gmls_go_for_it_or_not=__yy_method(_inst,gml_Script_s_go_for_it_or_not));(_inst.gmls_check_skip_time_button=__yy_method(_inst,gml_Script_s_check_skip_time_button));(_inst.gmlbtn_skip_time=__yy_method(_inst,gml_Script_btn_skip_time));}function gml_Script_s_update_commentary(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("s_update_commentary: ",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,
_other,_inst.gmlcomm_stage))));_inst.gmlcomm_proceed=false;_inst.gmltap_msg="";_inst.gmllast_stage=_inst.gmlcomm_stage;if(yyGetBool(_inst.gmlskip_half)){_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=1;}else {_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=100;};instance_destroy(_inst,112);gml_Script_slog(_inst,_other,yyfplus("drives=",__yy_gml_errCheck(string(_inst.gmldrives))));if(yyGetBool(gml_Script_s_simming_action(_inst,
_other))){gml_Script_s_check_skip_time_button(_inst,_other);};var ___sw906___=_inst.gmlcomm_stage;var ___swc907___=-1;if(yyCompareVal(___sw906___,0,g_GMLMathEpsilon,false)==0){___swc907___=0;}else if(yyCompareVal(___sw906___,1,g_GMLMathEpsilon,false)==0){___swc907___=1;}else if(yyCompareVal(___sw906___,25,g_GMLMathEpsilon,false)==0){___swc907___=2;}else if(yyCompareVal(___sw906___,26,g_GMLMathEpsilon,false)==0){___swc907___=3;}else if(yyCompareVal(___sw906___,27,g_GMLMathEpsilon,false)==0){___swc907___=4;
}else if(yyCompareVal(___sw906___,28,g_GMLMathEpsilon,false)==0){___swc907___=5;}else if(yyCompareVal(___sw906___,29,g_GMLMathEpsilon,false)==0){___swc907___=6;}else if(yyCompareVal(___sw906___,2,g_GMLMathEpsilon,false)==0){___swc907___=7;}else if(yyCompareVal(___sw906___,3,g_GMLMathEpsilon,false)==0){___swc907___=8;}else if(yyCompareVal(___sw906___,24,g_GMLMathEpsilon,false)==0){___swc907___=9;}else if(yyCompareVal(___sw906___,4,g_GMLMathEpsilon,false)==0){___swc907___=10;}else if(yyCompareVal(___sw906___,
23,g_GMLMathEpsilon,false)==0){___swc907___=11;}else if(yyCompareVal(___sw906___,5,g_GMLMathEpsilon,false)==0){___swc907___=12;}else if(yyCompareVal(___sw906___,6,g_GMLMathEpsilon,false)==0){___swc907___=13;}else if(yyCompareVal(___sw906___,7,g_GMLMathEpsilon,false)==0){___swc907___=14;}else if(yyCompareVal(___sw906___,8,g_GMLMathEpsilon,false)==0){___swc907___=15;}else if(yyCompareVal(___sw906___,9,g_GMLMathEpsilon,false)==0){___swc907___=16;}else if(yyCompareVal(___sw906___,10,g_GMLMathEpsilon,false)==0){
___swc907___=17;}else if(yyCompareVal(___sw906___,11,g_GMLMathEpsilon,false)==0){___swc907___=18;}else if(yyCompareVal(___sw906___,12,g_GMLMathEpsilon,false)==0){___swc907___=19;}else if(yyCompareVal(___sw906___,13,g_GMLMathEpsilon,false)==0){___swc907___=20;}else if(yyCompareVal(___sw906___,14,g_GMLMathEpsilon,false)==0){___swc907___=21;}else if(yyCompareVal(___sw906___,15,g_GMLMathEpsilon,false)==0){___swc907___=22;}else if(yyCompareVal(___sw906___,16,g_GMLMathEpsilon,false)==0){___swc907___=23;}else if(yyCompareVal(___sw906___,
17,g_GMLMathEpsilon,false)==0){___swc907___=24;}else if(yyCompareVal(___sw906___,18,g_GMLMathEpsilon,false)==0){___swc907___=25;}else if(yyCompareVal(___sw906___,19,g_GMLMathEpsilon,false)==0){___swc907___=26;}else if(yyCompareVal(___sw906___,20,g_GMLMathEpsilon,false)==0){___swc907___=27;}else if(yyCompareVal(___sw906___,21,g_GMLMathEpsilon,false)==0){___swc907___=28;}else if(yyCompareVal(___sw906___,22,g_GMLMathEpsilon,false)==0){___swc907___=29;}else if(yyCompareVal(___sw906___,30,g_GMLMathEpsilon,
false)==0){___swc907___=30;}switch(___swc907___){case 0:{_inst.gmlcomm_stage=1;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=1;break;}case 1:{if(yyGetBool(gml_Script_s_is_quarter_over(_inst,_other))){{gml_Script_s_update_commentary(_inst,_other);break;};};var gmldeficit=abs(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)]),__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,
_inst.gmlteam_score)])));var gmlsecs_remaining=gml_Script_s_seconds_remaining(_inst,_other);var gmllsecs=100;if(yyfgreater(gmldeficit,8)){gmllsecs=160;};if((yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))&&(yyGetBool(gml_Script_s_simming_action(_inst,_other)))){{gml_Script_s_kick_off(_inst,_other);};}else {if((yyGetBool((yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))||(yyGetBool((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,
(-1))))))))&&(yyGetBool(yyfequal(_inst.gmlquarter,4)))&&(yyGetBool(yyflessequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,gmllsecs)))){{var gmlchance=9;var gmlkk=gml_Script_s_get_player_by_position(_inst,_other,10,1);if(yyGetBool(gmlkk)){gmlchance=yyfplus(gmlchance,gml_Script_s_get_attribute(_inst,
_other,gmlkk,"skill"));};var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_OnSideKick"),"$num",string(gmlchance));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_btn_response_onsidekick_no,kgml_Script_btn_response_onsidekick_yes,16777215,0.7);_inst.gmlcomm_stage=25;_inst.gmlscrimmage=(-15);};}else {if((yyGetBool(yyfnotequal(_inst.gmlpossession,_inst.gmlhuman_team)))&&(yyGetBool(yyfequal(_inst.gmlquarter,
4)))&&(yyGetBool(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])))&&(yyGetBool((yyGetBool((yyGetBool(yyflessequal(gmldeficit,8)))&&(yyGetBool(yyflessequal(gmlsecs_remaining,60)))))||(yyGetBool((yyGetBool(yyfgreater(gmldeficit,8)))&&(yyGetBool(yyflessequal(gmldeficit,16)))&&(yyGetBool(yyfgreater(gmlsecs_remaining,60)))))))){{_inst.gmlcomm_stage=27;
_inst.gmlscrimmage=(-15);gml_Script_s_update_commentary(_inst,_other);};}else {{gml_Script_s_kick_off(_inst,_other);};};};};break;}case 2:{break;}case 3:{gml_Script_s_kick_off(_inst,_other);gml_Script_s_sound_kick(_inst,_other);break;}case 4:{gml_Script_s_sound_kick(_inst,_other);var gmlchance=9;var gmlkk=(-1);if(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)){{gmlkk=gml_Script_s_get_player_by_position(_inst,_other,10,1);if(yyGetBool(gmlkk)){gmlchance=yyfplus(gmlchance,gml_Script_s_get_attribute(_inst,
_other,gmlkk,"skill"));};};};_inst.gmlcomm_stage=1;if(yyGetBool(gmlkk)){_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"match_OnsideKickingPlayer"),"$playername",ds_map_find_value(gmlkk,"lname"));}else {_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"match_OnsideKicking"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);};if(yyfless(irandom(99),gmlchance)){_inst.gmlcomm_stage=28;}else {_inst.gmlcomm_stage=29;};break;
}case 5:{gml_Script_s_sound_audience_fg(_inst,_other);_inst.gmldown=1;_inst.gmlyards=10;_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,irandom_range(10,15));gml_Script_s_subtract_time(_inst,_other,3,4,"COMM_STAGE_ONSIDEKICK_SUCCESS");_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"match_OnsideKickingSuccess"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);gml_Script_s_change_possession(_inst,_other);gml_Script_s_change_possession(_inst,
_other);_inst.gmllast_play=1;break;}case 6:{gml_Script_s_sound_audience_dis(_inst,_other);_inst.gmldown=1;_inst.gmlyards=10;_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,irandom_range(10,15));gml_Script_s_subtract_time(_inst,_other,3,4,"COMM_STAGE_ONSIDEKICK_FAIL");gml_Script_s_change_possession(_inst,_other);_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"match_OnsideKickingFail"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);
_inst.gmllast_play=1;break;}case 7:{_inst.gmlgoforit=false;_inst.gmlhailmary=false;_inst.gmlscored_by=(-1);if(yyfequal(_inst.gmlquarter,5)){{_inst.gmlhad_ot_possession=__yy_gml_array_check(_inst.gmlhad_ot_possession,1346804767);_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(_inst.gmlpossession)]=1;gml_Script_slog(_inst,_other,yyfplus(yyfplus("had_ot_possession[",__yy_gml_errCheck(string(_inst.gmlpossession))),"] = 1"));};};if(yyGetBool(gml_Script_s_is_quarter_over(_inst,_other))){{gml_Script_s_update_commentary(_inst,
_other);break;};};var gmlscr=round(_inst.gmlscrimmage);if(yyfgreater(gmlscr,40)){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_Possession_RedZone");}else {if(yyfless(gmlscr,(-40))){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_Possession_BackedUp");}else {if((yyGetBool(yyfgreaterequal(gmlscr,(-10))))&&(yyGetBool(yyflessequal(gmlscr,20)))){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_Possession_Halfway");}else {if(yyfless(gmlscr,(-10))){_inst.gmlcomm_txt=gml_Script_s_str(_inst,
_other,yyfplus("comm_stage_Possession_OwnHalf",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(yyfmod(__yy_gml_errCheck((g_yyPrePostObject__=_inst.gmlposs_txt,_inst.gmlposs_txt=(g_yyPrePostObject__ instanceof Long?_inst.gmlposs_txt.add(1):++_inst.gmlposs_txt),g_yyPrePostObject__)),3)))))));}else {_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Possession_OppHalf",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(yyfmod(__yy_gml_errCheck((g_yyPrePostObject__=_inst.gmlposs_txt,
_inst.gmlposs_txt=(g_yyPrePostObject__ instanceof Long?_inst.gmlposs_txt.add(1):++_inst.gmlposs_txt),g_yyPrePostObject__)),3)))))));};};};};var gmlyrd=yyfminus(50,__yy_gml_errCheck(abs(gmlscr)));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$num",string(gmlyrd));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=3;break;}case 8:{_inst.gmlphase=yyfplus(_inst.gmlphase,1);if((yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,
_other))))&&(yyGetBool((yyGetBool(yyfequal(_inst.gmlpossession,yyInst(_inst,_other,97).gmlplayerteamindex)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))))){{if((yyGetBool((yyGetBool(yyfequal(_inst.gmllast_play,5)))||(yyGetBool(yyfequal(_inst.gmllast_play,1)))))&&(yyGetBool(yyfless(_inst.gmlscrimmage,(-10))))&&(yyGetBool(yyfequal(_inst.gmlphase,1)))){{_inst.gmlcomm_gain=yyfplus(__yy_gml_errCheck(irandom_range(7,15)),__yy_gml_errCheck(irandom(yyInst(_inst,_other,104).gmldifficulty)));
_inst.gmlcomm_gain=clamp(_inst.gmlcomm_gain,7,30);_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);if(yyfgreater(_inst.gmlcomm_gain,10)){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_PuntReturnGood");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$num",_inst.gmlcomm_gain);};}else {_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_PuntReturnShort");};_inst.gmlcomm_stage=2;};}else {{_inst.gmlstate=2;};};};}else {{_inst.gmlcomm_stage=4;if(yyfnotequal(_inst.gmlpossession,
_inst.gmlhuman_team)){{{var __yy__v1099=GetWithArray(97);for(var __yy__v1100 in __yy__v1099){if(!__yy__v1099.hasOwnProperty(__yy__v1100))continue;var __yy__v1101=__yy__v1099[__yy__v1100];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1101.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1101.gmlroster,gmli);if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,
"backup"),true)))){continue;};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1101,_inst,gmlpmap))))){{var ___sw908___=ds_map_find_value(gmlpmap,"position");var ___swc909___=-1;if(yyCompareVal(___sw908___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw908___,7,g_GMLMathEpsilon,false)==0){___swc909___=0;}else if(yyCompareVal(___sw908___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw908___,8,g_GMLMathEpsilon,false)==0){
___swc909___=1;}switch(___swc909___){case 0:{if(yyfless(random(4),random(gml_Script_s_get_attribute(__yy__v1101,_inst,gmlpmap,"skill")))){ds_map_set_post(gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),1));};break;}case 1:{if(yyfless(random(6),random(gml_Script_s_get_attribute(__yy__v1101,_inst,gmlpmap,"skill")))){ds_map_set_post(gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),1));};break;}};};};}};}}};};};gml_Script_s_update_commentary(_inst,
_other);};};break;}case 9:{_inst.gmlgoforit=true;_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_GoForIt");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=4;break;}case 10:{_inst.gmlscored_by=(-1);var ___sw910___=irandom(2);var ___swc911___=-1;if(yyCompareVal(___sw910___,0,g_GMLMathEpsilon,false)==0){___swc911___=0;}else if(yyCompareVal(___sw910___,1,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw910___,2,g_GMLMathEpsilon,false)==0){___swc911___=1;}switch(___swc911___){case 0:{_inst.gmlrunorpass=1;break;}case 1:{_inst.gmlrunorpass=2;break;}};if(yyfgreaterequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)])){{if((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,45)))&&(yyGetBool(!yyGetBool(irandom(4))))){_inst.gmlrunorpass=1;};
};}else {{if((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,60)))&&(yyGetBool(!yyGetBool(irandom(4))))&&(yyGetBool(yyfgreater(_inst.gmlscrimmage,25)))){_inst.gmlrunorpass=2;};};};_inst.gmlcomm_gain=irandom_range(20,35);if(yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,30))){{_inst.gmlrunorpass=2;_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_DrivePass",__yy_gml_errCheck(string(irandom(4))))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,
_inst.gmlteam_name)]);if((yyGetBool(yyfless(_inst.gmlscrimmage,10)))&&(yyGetBool((yyGetBool((yyGetBool(yyfequal(_inst.gmlquarter,4)))&&(yyGetBool(yyfgreaterequal(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)],yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)]),6))))))||(yyGetBool((yyGetBool(yyfequal(_inst.gmlquarter,2)))&&(yyGetBool(yyfgreaterequal(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,
_inst.gmlteam_score)],yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)]),14))))))))){{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_DriveHailMary",__yy_gml_errCheck(string(irandom(2))))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_gain=yyfplus(_inst.gmlcomm_gain,yyfplus(5,__yy_gml_errCheck(irandom(30))));_inst.gmlhailmary=true;
gml_Script_s_subtract_time(_inst,_other,21,22,"comm_stage_DriveHailMary");};}else {if((yyGetBool(yyfgreater(_inst.gmlscrimmage,5)))&&(yyGetBool(yyfgreaterequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)]),3))))){{_inst.gmlcomm_stage=6;gml_Script_s_update_commentary(_inst,_other);break;};};};};}else {{var ___sw912___=_inst.gmlrunorpass;
var ___swc913___=-1;if(yyCompareVal(___sw912___,1,g_GMLMathEpsilon,false)==0){___swc913___=0;}else if(yyCompareVal(___sw912___,2,g_GMLMathEpsilon,false)==0){___swc913___=1;}switch(___swc913___){case 0:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_DriveRun",__yy_gml_errCheck(string(irandom(4))))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);break;}case 1:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,
_other,yyfplus("comm_stage_DrivePass",__yy_gml_errCheck(string(irandom(4))))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);break;}};};};if(yyfless(_inst.gmlscrimmage,(-40))){{if(yyfequal(_inst.gmlrunorpass,1)){gml_Script_s_subtract_time(_inst,_other,15,20,"Get out of red-zone RUN");}else {gml_Script_s_subtract_time(_inst,_other,10,15,"Get out of red-zone PASS");};_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);_inst.gmlcomm_stage=2;
break;};};_inst.gmlcomm_defender=(-4);if(yyGetBool(irandom(yyfplus(1,__yy_gml_errCheck(gml_Script_s_count_defenders(_inst,_other)))))){{if(yyGetBool(_inst.gmlhailmary)){_inst.gmlcomm_defender=gml_Script_s_get_random_player_by_position(_inst,_other,false,8);}else {_inst.gmlcomm_defender=gml_Script_s_get_random_player_by_position(_inst,_other,false,choose(6,7,choose(8,9)));};if(yyfequal(_inst.gmlcomm_defender,(-4))){_inst.gmlcomm_defender=gml_Script_s_get_random_player_by_position(_inst,_other,false,
choose(6,7,choose(8,9)));};};};var gmlrat_defense=0;var gmlrat_offense=0;var gmlboost_defense=0;var gmlboost_offense=0;if(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)){{_inst.gmlcomm_defender=(-1);gmlrat_defense=_inst.gmlteam_defense[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_defense)];gmlrat_offense=yyfplus(__yy_gml_errCheck(_inst.gmlteam_offense[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_offense)]),5);if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,
4)){gmlrat_defense=10;};};}else {{gmlrat_defense=_inst.gmlteam_defense[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_defense)];gmlrat_offense=_inst.gmlteam_offense[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_offense)];if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){gmlrat_offense=10;};gmlboost_defense=round(yyftime(__yy_gml_errCheck(clamp(yyInst(_inst,_other,104).gmldifficulty,0,10)),0.3));gmlboost_offense=1;if((yyGetBool(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,
_inst.gmlteam_score)],yyfplus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)]),7))))||(yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmldifficulty,7)))){gmlboost_offense=0;};if(yyfless(yyInst(_inst,_other,104).gmldifficulty,1)){(g_yyPrePostObject__=gmlboost_offense,gmlboost_offense=(g_yyPrePostObject__ instanceof Long?gmlboost_offense.add(1):++gmlboost_offense),g_yyPrePostObject__);};if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){
gmlboost_offense=yyfplus(gmlboost_offense,0.6);}else {if(yyfequal(yyInst(_inst,_other,104).gmldifficulty,(-5))){gmlboost_offense=yyfplus(gmlboost_offense,random_range(0.1,0.5));};};};};if(yyGetBool(_inst.gmlgoforit)){{gmlboost_offense=0;gmlrat_offense=yyftime(gmlrat_offense,0.7);};};var gmlresult_offense=yyfplus(__yy_gml_errCheck(gmlboost_offense),__yy_gml_errCheck(random(gmlrat_offense)));var gmlresult_defense=yyfplus(__yy_gml_errCheck(gmlboost_defense),__yy_gml_errCheck(random(max(2,gmlrat_defense))));
if(yyGetBool(_inst.gmlcomm_defender)){{gml_Script_slog(_inst,_other,yyfplus(">>>>>>>>>>>>>>>>>>>>>>> comm_defender = ",__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"lname"))));gml_Script_s_subtract_time(_inst,_other,7,12,"COMM_STAGE_DRIVE_1");var gmltmax=1.5;if(yyfgreater(yyInst(_inst,_other,97).gmlop_difficulty,3)){gmltmax=1;};var gmlteamskl=min(yyftime(__yy_gml_errCheck(gml_Script_s_get_defense_attribute(_inst,_other,"skill")),0.05),gmltmax);var gmlteamspd=min(yyftime(__yy_gml_errCheck(gml_Script_s_get_defense_attribute(_inst,
_other,"speed")),0.05),gmltmax);var gmlteamstr=min(yyftime(__yy_gml_errCheck(gml_Script_s_get_defense_attribute(_inst,_other,"strength")),0.05),gmltmax);var gmldef_skill=random(yyfplus(__yy_gml_errCheck(gmlteamskl),__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"skill"))));var gmldef_speed=random(yyfplus(__yy_gml_errCheck(gmlteamspd),__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"speed"))));var gmldef_strength=random(yyfplus(__yy_gml_errCheck(gmlteamstr),
__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"strength"))));if(yyfless(random(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"stamina")),random(9))){{var ___sw914___=irandom(2);var ___swc915___=-1;if(yyCompareVal(___sw914___,0,g_GMLMathEpsilon,false)==0){___swc915___=0;}else if(yyCompareVal(___sw914___,1,g_GMLMathEpsilon,false)==0){___swc915___=1;}else if(yyCompareVal(___sw914___,2,g_GMLMathEpsilon,false)==0){___swc915___=2;}switch(___swc915___){case 0:{
gmldef_skill=max(yyfminus(__yy_gml_errCheck(gmldef_skill),1),1);break;}case 1:{gmldef_speed=max(yyfminus(__yy_gml_errCheck(gmldef_speed),1),1);break;}case 2:{gmldef_strength=max(yyfminus(__yy_gml_errCheck(gmldef_strength),1),1);break;}};};};var ___sw916___=irandom(2);var ___swc917___=-1;if(yyCompareVal(___sw916___,0,g_GMLMathEpsilon,false)==0){___swc917___=0;}else if(yyCompareVal(___sw916___,1,g_GMLMathEpsilon,false)==0){___swc917___=1;}else if(yyCompareVal(___sw916___,2,g_GMLMathEpsilon,false)==0){___swc917___=2;
}switch(___swc917___){case 0:{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Skill of ",__yy_gml_errCheck(string(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"skill"))))," = r"),__yy_gml_errCheck(string(gmldef_skill))));if(yyfless(gmlresult_offense,gmldef_skill)){{if(yyGetBool(irandom(2))){_inst.gmlcomm_stage=23;}else {_inst.gmlcomm_stage=8;};};}else {_inst.gmlcomm_stage=19;};break;}case 1:{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Strength of ",__yy_gml_errCheck(string(gml_Script_s_get_attribute(_inst,
_other,_inst.gmlcomm_defender,"strength"))))," = r"),__yy_gml_errCheck(string(gmldef_strength))));if(yyfless(gmlresult_offense,gmldef_strength)){{if(yyGetBool(irandom(3))){_inst.gmlcomm_stage=23;}else {_inst.gmlcomm_stage=8;};};}else {_inst.gmlcomm_stage=20;};break;}case 2:{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Speed of ",__yy_gml_errCheck(string(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"speed"))))," = r"),__yy_gml_errCheck(string(gmldef_speed))));if(yyfless(gmlresult_offense,
gmldef_speed)){{if(yyGetBool(irandom(3))){_inst.gmlcomm_stage=23;}else {_inst.gmlcomm_stage=8;};};}else {_inst.gmlcomm_stage=21;};break;}};};}else {if(yyfgreater(gmlresult_offense,gmlresult_defense)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(">>>>>>>>>>>>>>>>>>>>>>> OFFENSE WIN: ",__yy_gml_errCheck(string(gmlresult_offense)))," > "),__yy_gml_errCheck(string(gmlresult_defense))));if(yyfgreaterequal(yyfplus(__yy_gml_errCheck(_inst.gmlscrimmage),__yy_gml_errCheck(_inst.gmlcomm_gain)),50)){
{gml_Script_s_subtract_time(_inst,_other,10,15,"COMM_STAGE_DRIVE_2");_inst.gmlcomm_stage=9;};}else {{gml_Script_s_subtract_time(_inst,_other,10,15,"COMM_STAGE_DRIVE_3");_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);_inst.gmlcomm_stage=2;if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){{var ___sw918___=_inst.gmlrunorpass;var ___swc919___=-1;if(yyCompareVal(___sw918___,2,g_GMLMathEpsilon,false)==0){___swc919___=0;
}else if(yyCompareVal(___sw918___,1,g_GMLMathEpsilon,false)==0){___swc919___=1;}switch(___swc919___){case 0:{gml_Script_s_sim_stat_pass(_inst,_other,_inst.gmlcomm_gain);break;}case 1:{gml_Script_s_sim_stat_run(_inst,_other,_inst.gmlcomm_gain);break;}};};};};};};}else {if(yyGetBool(irandom(3))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(">>>>>>>>>>>>>>>>>>>>>>> DEFENSE WIN - COMM_STAGE_INCOMPLETE: ",__yy_gml_errCheck(string(gmlresult_defense)))," > "),__yy_gml_errCheck(string(gmlresult_offense))));
gml_Script_s_subtract_time(_inst,_other,5,10,"COMM_STAGE_DRIVE_4");_inst.gmlcomm_stage=23;};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(">>>>>>>>>>>>>>>>>>>>>>> DEFENSE WIN - COMM_STAGE_TURNOVER: ",__yy_gml_errCheck(string(gmlresult_defense)))," > "),__yy_gml_errCheck(string(gmlresult_offense))));gml_Script_s_subtract_time(_inst,_other,5,10,"COMM_STAGE_DRIVE_5");_inst.gmlcomm_stage=8;};};};};break;}case 11:{var ___sw920___=_inst.gmlrunorpass;var ___swc921___=-1;if(yyCompareVal(___sw920___,
1,g_GMLMathEpsilon,false)==0){___swc921___=0;}else if(yyCompareVal(___sw920___,2,g_GMLMathEpsilon,false)==0){___swc921___=1;}switch(___swc921___){case 0:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_incomplete_Run");if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){gml_Script_s_sim_stat_run(_inst,_other,round(yyftime(__yy_gml_errCheck(_inst.gmlcomm_gain),0.5)));};break;}case 1:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,
_other,"comm_stage_incomplete_Pass");break;}};if((yyGetBool(_inst.gmlcomm_defender))&&(yyGetBool(yyfless(ds_map_find_value(_inst.gmlcomm_defender,"position"),8)))){ds_map_set_post(_inst.gmlcomm_defender,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),1));};if(yyGetBool(gml_Script_s_is_quarter_over(_inst,_other))){{gml_Script_s_update_commentary(_inst,_other);break;};}else {if(yyGetBool(_inst.gmlgoforit)){{_inst.gmlcomm_stage=8;gml_Script_s_update_commentary(_inst,
_other);};}else {gml_Script_s_go_for_it_or_not(_inst,_other);};};break;}case 12:{if(yyGetBool(gml_Script_s_is_quarter_over(_inst,_other))){{gml_Script_s_update_commentary(_inst,_other);break;};};gml_Script_s_punt(_inst,_other);break;}case 13:{_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,4);var gmlfg_dist=clamp(round(yyfplus(__yy_gml_errCheck(gml_Script_s_convert_scrimmage_to_goal_distance(_inst,_other)),10)),17,63);_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_FieldGoal1"),
"$num",gmlfg_dist);_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=7;if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){gml_Script_s_sim_stat_increment(_inst,_other,gml_Script_s_get_player_by_position(_inst,_other,10,1),"stat_attempts",1);};gml_Script_s_sound_kick(_inst,_other);break;}case 14:{gml_Script_s_subtract_time(_inst,
_other,4,5,"COMM_STAGE_FIELDGOAL2");var gmlfg_dist=clamp(round(yyfplus(__yy_gml_errCheck(gml_Script_s_convert_scrimmage_to_goal_distance(_inst,_other)),10)),17,63);if(yyfless(irandom(75),irandom(gmlfg_dist))){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_FieldGoal2_Missed");gml_Script_s_sound_audience_dis(_inst,_other);if(yyfgreater(_inst.gmlscrimmage,30)){_inst.gmlscrimmage=30;};gml_Script_s_change_possession(_inst,_other);if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,
_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){{gml_Script_slog(_inst,_other,"Overtime win 3");_inst.gmlcomm_stage=17;break;};};};}else {{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_FieldGoal2_Scored");gml_Script_s_sound_audience_fg(_inst,_other);if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,
_inst.gmlhuman_team)))){{var gmlpmap=gml_Script_s_get_player_by_position(_inst,_other,10,1);if(yyGetBool(gmlpmap)){{gml_Script_s_sim_stat_increment(_inst,_other,gmlpmap,"stat_complete",1);gml_Script_s_sim_stat_increment(_inst,_other,gmlpmap,"stat_yards",gmlfg_dist);if(yyfgreater(gmlfg_dist,ds_map_find_value(gmlpmap,"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlpmap,"stat_longest",gmlfg_dist);};};};};};_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)]=yyfplus(_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)],
3);if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){{if(yyflessequal(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)){{if(yyfgreater(_inst.gmldrives,1)){_inst.gmlcomm_stage=17;}else {_inst.gmlcomm_stage=1;
};};}else {{gml_Script_slog(_inst,_other,"Overtime win 2");_inst.gmlcomm_stage=17;};};break;};};_inst.gmlcomm_stage=1;};};break;}case 15:{if(yyfgreater(_inst.gmlscrimmage,49)){_inst.gmlscrimmage=yyfplus(40,__yy_gml_errCheck(irandom(9)));};if(!yyGetBool(_inst.gmlcomm_defender)){{var gmlsimstat=(yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)));var ___sw922___=_inst.gmlrunorpass;var ___swc923___=-1;if(yyCompareVal(___sw922___,1,g_GMLMathEpsilon,
false)==0){___swc923___=0;}else if(yyCompareVal(___sw922___,2,g_GMLMathEpsilon,false)==0){___swc923___=1;}switch(___swc923___){case 0:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_Turnover_Fumble"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);if(yyGetBool(gmlsimstat)){gml_Script_s_sim_stat_fumble(_inst,_other);};break;}case 1:{var ___sw924___=irandom(1);var ___swc925___=-1;if(yyCompareVal(___sw924___,0,g_GMLMathEpsilon,
false)==0){___swc925___=0;}else if(yyCompareVal(___sw924___,1,g_GMLMathEpsilon,false)==0){___swc925___=1;}switch(___swc925___){case 0:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_Turnover_Interception"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);if(yyGetBool(gmlsimstat)){gml_Script_s_sim_stat_interception(_inst,_other);};break;}case 1:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_Turnover_Sack"),
"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);if(yyGetBool(gmlsimstat)){gml_Script_s_sim_stat_sack(_inst,_other);};break;}};break;}};gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};}else {{var ___sw926___=_inst.gmlrunorpass;var ___swc927___=-1;if(yyCompareVal(___sw926___,1,g_GMLMathEpsilon,false)==0){___swc927___=0;}else if(yyCompareVal(___sw926___,2,g_GMLMathEpsilon,false)==0){___swc927___=1;}switch(___swc927___){
case 0:{var gmlfumble=irandom(1);if(!yyGetBool(gmlfumble)){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Turnover_Tackle",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(1)))))));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));ds_map_set_post(_inst.gmlcomm_defender,
"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),1));if((yyGetBool(_inst.gmlgoforit))||(yyGetBool(yyfequal(_inst.gmlquarter,5)))){{gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};}else {{_inst.gmlcomm_stage=5;if(yyfgreater(_inst.gmlscrimmage,0)){_inst.gmlcomm_stage=6;};};};};}else {{var gmlpunch=irandom(1);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Turnover_Fumble",__yy_gml_errCheck(string(yyfplus(1,
__yy_gml_errCheck(gmlpunch))))));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));ds_map_set_post(_inst.gmlcomm_defender,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),1));ds_map_set_post(_inst.gmlcomm_defender,"stat_fumbles",
yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_fumbles")),1));gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};};break;}case 1:{var gmlsack=false;if(yyfequal(ds_map_find_value(_inst.gmlcomm_defender,"position"),6)){gmlsack=true;};if((yyGetBool(irandom(1)))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlcomm_defender,"position"),7)))){gmlsack=true;};if(yyGetBool(gmlsack)){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Turnover_Sack",
__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(1)))))));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));ds_map_set_post(_inst.gmlcomm_defender,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),1));ds_map_set_post(_inst.gmlcomm_defender,
"stat_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_sacks")),1));if((yyGetBool(_inst.gmlgoforit))||(yyGetBool(yyfequal(_inst.gmlquarter,5)))){{gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};}else {{_inst.gmlcomm_stage=5;if(yyfgreater(_inst.gmlscrimmage,0)){_inst.gmlcomm_stage=6;};};};};}else {{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Turnover_Interception",__yy_gml_errCheck(string(yyfplus(1,
__yy_gml_errCheck(irandom(1)))))));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));ds_map_set_post(_inst.gmlcomm_defender,"stat_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_int")),1));gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,
_other);};};}};};};_inst.gmlcomm_defender=(-4);break;}case 16:{_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);_inst.gmlcomm_txt="";_inst.gmlcomm_stage=10;_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)]=yyfplus(_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)],6);_inst.gmlscored_by=_inst.gmlpossession;gml_Script_s_create_match_message(_inst,_other,6);gml_Script_s_sound_audience_fg(_inst,
_other);if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){gml_Script_s_sim_stat_touchdown(_inst,_other,_inst.gmlrunorpass,_inst.gmlcomm_gain);};if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,
_other)))){{gml_Script_slog(_inst,_other,"overtime win TOUCHDOWN");_inst.gmlcomm_stage=17;};};break;}case 17:{var gmlpt2=false;var gmlmargin=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)]),__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)]));if(yyfequal(yyfmod(__yy_gml_errCheck(abs(gmlmargin)),8),0)){gmlpt2=true;};if((yyGetBool(yyfequal(gmlmargin,1)))||(yyGetBool(yyfequal(gmlmargin,
5)))||(yyGetBool(yyfequal(gmlmargin,12)))||(yyGetBool(yyfequal(gmlmargin,(-2))))||(yyGetBool(yyfequal(gmlmargin,(-4))))||(yyGetBool(yyfequal(gmlmargin,(-5))))||(yyGetBool(yyfequal(gmlmargin,(-8))))||(yyGetBool(yyfequal(gmlmargin,(-10))))||(yyGetBool(yyfequal(gmlmargin,(-13))))||(yyGetBool(yyfequal(gmlmargin,(-15))))){gmlpt2=true;};if((yyGetBool(yyfgreater(_inst.gmlquarter,2)))&&(yyGetBool((yyGetBool(yyfequal(gmlmargin,7)))||(yyGetBool(yyfequal(gmlmargin,14)))||(yyGetBool(yyfequal(gmlmargin,(-9))))||(yyGetBool(yyfequal(gmlmargin,
(-12))))))&&(yyGetBool(!yyGetBool(irandom(2))))){gmlpt2=true;};if(yyfequal(gmlmargin,0)){gmlpt2=false;};var ___sw928___=gmlmargin;var ___swc929___=-1;if(yyCompareVal(___sw928___,(-1),g_GMLMathEpsilon,false)==0){___swc929___=0;}else if(yyCompareVal(___sw928___,(-2),g_GMLMathEpsilon,false)==0){___swc929___=1;}else if(yyCompareVal(___sw928___,(-3),g_GMLMathEpsilon,false)==0){___swc929___=2;}else if(yyCompareVal(___sw928___,(-4),g_GMLMathEpsilon,false)==0){___swc929___=3;}else if(yyCompareVal(___sw928___,
(-5),g_GMLMathEpsilon,false)==0){___swc929___=4;}else if(yyCompareVal(___sw928___,(-6),g_GMLMathEpsilon,false)==0){___swc929___=5;}else if(yyCompareVal(___sw928___,(-7),g_GMLMathEpsilon,false)==0){___swc929___=6;}else if(yyCompareVal(___sw928___,(-8),g_GMLMathEpsilon,false)==0){___swc929___=7;}else if(yyCompareVal(___sw928___,(-9),g_GMLMathEpsilon,false)==0){___swc929___=8;}else if(yyCompareVal(___sw928___,(-10),g_GMLMathEpsilon,false)==0){___swc929___=9;}else if(yyCompareVal(___sw928___,(-11),g_GMLMathEpsilon,
false)==0){___swc929___=10;}else if(yyCompareVal(___sw928___,(-12),g_GMLMathEpsilon,false)==0){___swc929___=11;}else if(yyCompareVal(___sw928___,(-13),g_GMLMathEpsilon,false)==0){___swc929___=12;}else if(yyCompareVal(___sw928___,(-14),g_GMLMathEpsilon,false)==0){___swc929___=13;}else if(yyCompareVal(___sw928___,(-15),g_GMLMathEpsilon,false)==0){___swc929___=14;}else if(yyCompareVal(___sw928___,(-16),g_GMLMathEpsilon,false)==0){___swc929___=15;}else if(yyCompareVal(___sw928___,(-17),g_GMLMathEpsilon,false)==0){
___swc929___=16;}else if(yyCompareVal(___sw928___,(-18),g_GMLMathEpsilon,false)==0){___swc929___=17;}else if(yyCompareVal(___sw928___,(-19),g_GMLMathEpsilon,false)==0){___swc929___=18;}else if(yyCompareVal(___sw928___,(-20),g_GMLMathEpsilon,false)==0){___swc929___=19;}else if(yyCompareVal(___sw928___,1,g_GMLMathEpsilon,false)==0){___swc929___=20;}else if(yyCompareVal(___sw928___,2,g_GMLMathEpsilon,false)==0){___swc929___=21;}else if(yyCompareVal(___sw928___,3,g_GMLMathEpsilon,false)==0){___swc929___=22;
}else if(yyCompareVal(___sw928___,4,g_GMLMathEpsilon,false)==0){___swc929___=23;}else if(yyCompareVal(___sw928___,5,g_GMLMathEpsilon,false)==0){___swc929___=24;}else if(yyCompareVal(___sw928___,6,g_GMLMathEpsilon,false)==0){___swc929___=25;}else if(yyCompareVal(___sw928___,7,g_GMLMathEpsilon,false)==0){___swc929___=26;}else if(yyCompareVal(___sw928___,8,g_GMLMathEpsilon,false)==0){___swc929___=27;}else if(yyCompareVal(___sw928___,9,g_GMLMathEpsilon,false)==0){___swc929___=28;}else if(yyCompareVal(___sw928___,
10,g_GMLMathEpsilon,false)==0){___swc929___=29;}else if(yyCompareVal(___sw928___,11,g_GMLMathEpsilon,false)==0){___swc929___=30;}else if(yyCompareVal(___sw928___,12,g_GMLMathEpsilon,false)==0){___swc929___=31;}else if(yyCompareVal(___sw928___,13,g_GMLMathEpsilon,false)==0){___swc929___=32;}else if(yyCompareVal(___sw928___,14,g_GMLMathEpsilon,false)==0){___swc929___=33;}else if(yyCompareVal(___sw928___,15,g_GMLMathEpsilon,false)==0){___swc929___=34;}else if(yyCompareVal(___sw928___,16,g_GMLMathEpsilon,
false)==0){___swc929___=35;}else if(yyCompareVal(___sw928___,17,g_GMLMathEpsilon,false)==0){___swc929___=36;}else if(yyCompareVal(___sw928___,18,g_GMLMathEpsilon,false)==0){___swc929___=37;}else if(yyCompareVal(___sw928___,19,g_GMLMathEpsilon,false)==0){___swc929___=38;}else if(yyCompareVal(___sw928___,20,g_GMLMathEpsilon,false)==0){___swc929___=39;}switch(___swc929___){case 0:{gmlpt2=false;break;}case 1:{gmlpt2=true;break;}case 2:{gmlpt2=false;break;}case 3:{gmlpt2=false;break;}case 4:{gmlpt2=true;break;
}case 5:{gmlpt2=false;break;}case 6:{gmlpt2=false;break;}case 7:{gmlpt2=false;break;}case 8:{gmlpt2=true;break;}case 9:{gmlpt2=true;break;}case 10:{gmlpt2=false;break;}case 11:{gmlpt2=true;break;}case 12:{gmlpt2=false;break;}case 13:{gmlpt2=false;break;}case 14:{gmlpt2=false;break;}case 15:{gmlpt2=true;break;}case 16:{gmlpt2=false;break;}case 17:{gmlpt2=false;break;}case 18:{gmlpt2=true;break;}case 19:{gmlpt2=false;break;}case 20:{gmlpt2=true;break;}case 21:{gmlpt2=false;break;}case 22:{gmlpt2=false;break;}case 23:{
gmlpt2=true;break;}case 24:{gmlpt2=true;break;}case 25:{gmlpt2=false;break;}case 26:{gmlpt2=false;break;}case 27:{gmlpt2=false;break;}case 28:{gmlpt2=false;break;}case 29:{gmlpt2=false;break;}case 30:{gmlpt2=false;break;}case 31:{gmlpt2=true;break;}case 32:{gmlpt2=false;break;}case 33:{gmlpt2=false;break;}case 34:{gmlpt2=true;break;}case 35:{gmlpt2=false;break;}case 36:{gmlpt2=false;break;}case 37:{gmlpt2=false;break;}case 38:{gmlpt2=true;break;}case 39:{gmlpt2=false;break;}};if(yyGetBool(gmlpt2)){{_inst.gmlcomm_stage=15;
gml_Script_s_update_commentary(_inst,_other);break;};};if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){gml_Script_s_sim_stat_increment(_inst,_other,gml_Script_s_get_player_by_position(_inst,_other,10,1),"stat_attempts_XP",1);};_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_PAT1"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=11;
gml_Script_s_sound_kick(_inst,_other);break;}case 18:{if(!yyGetBool(irandom(8))){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_PAT2_Missed");gml_Script_s_sound_audience_dis(_inst,_other);_inst.gmlscored_by=(-1);};}else {{if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){gml_Script_s_sim_stat_increment(_inst,_other,gml_Script_s_get_player_by_position(_inst,_other,10,1),"stat_complete_XP",1);};_inst.gmlcomm_txt=gml_Script_s_str(_inst,
_other,"comm_stage_PAT2_Scored");gml_Script_s_sound_audience_fg(_inst,_other);_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)]=yyfplus(_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)],1);_inst.gmlscored_by=_inst.gmlpossession;};};if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],
_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){{gml_Script_slog(_inst,_other,"Overtime win 2");_inst.gmlcomm_stage=17;break;};};_inst.gmlcomm_stage=1;break;}case 19:{gml_Script_s_set_up_button_kickoff(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_end_quarter",__yy_gml_errCheck(string(min(_inst.gmlquarter,4)))));if((yyGetBool(yyfequal(_inst.gmlquarter,
4)))||(yyGetBool((yyGetBool(yyfgreaterequal(_inst.gmlquarter,4)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)))))){{if(yyfgreater(_inst.gmlquarter,4)){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_overtime_over");};if(yyfequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){_inst.gmlcomm_txt=gml_Script_s_str(_inst,
_other,"comm_stage_overtime");};};};_inst.gmlcomm_stage=13;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=0;var ___sw930___=_inst.gmlquarter;var ___swc931___=-1;if(yyCompareVal(___sw930___,1,g_GMLMathEpsilon,false)==0){___swc931___=0;}else if(yyCompareVal(___sw930___,2,g_GMLMathEpsilon,false)==0){___swc931___=1;}else if(yyCompareVal(___sw930___,3,g_GMLMathEpsilon,false)==0){___swc931___=2;}else if(yyCompareVal(___sw930___,4,g_GMLMathEpsilon,false)==0){
___swc931___=3;}switch(___swc931___){case 0:{yyInst(_inst,_other,97).gmlqtr_scores0=__yy_gml_array_check(yyInst(_inst,_other,97).gmlqtr_scores0,1729737120);yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)];yyInst(_inst,_other,97).gmlqtr_scores1=__yy_gml_array_check(yyInst(_inst,_other,97).gmlqtr_scores1,2114093281);yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),
1))]=_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)];break;}case 1:{yyInst(_inst,_other,97).gmlqtr_scores0=__yy_gml_array_check(yyInst(_inst,_other,97).gmlqtr_scores0,1729737120);yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index(0,
yyInst(_inst,_other,97).gmlqtr_scores0)]));yyInst(_inst,_other,97).gmlqtr_scores1=__yy_gml_array_check(yyInst(_inst,_other,97).gmlqtr_scores1,2114093281);yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlqtr_scores1)]));
break;}case 2:{yyInst(_inst,_other,97).gmlqtr_scores0=__yy_gml_array_check(yyInst(_inst,_other,97).gmlqtr_scores0,1729737120);yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlqtr_scores0)])),__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlqtr_scores0[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlqtr_scores0)]));yyInst(_inst,_other,97).gmlqtr_scores1=__yy_gml_array_check(yyInst(_inst,_other,97).gmlqtr_scores1,2114093281);yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index(0,
yyInst(_inst,_other,97).gmlqtr_scores1)])),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlqtr_scores1)]));break;}case 3:{yyInst(_inst,_other,97).gmlqtr_scores0=__yy_gml_array_check(yyInst(_inst,_other,97).gmlqtr_scores0,1729737120);yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(0,
_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlqtr_scores0)])),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlqtr_scores0)])),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores0[__yy_gml_array_check_index(2,yyInst(_inst,_other,97).gmlqtr_scores0)]));yyInst(_inst,_other,97).gmlqtr_scores1=__yy_gml_array_check(yyInst(_inst,_other,97).gmlqtr_scores1,
2114093281);yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlqtr_scores1)])),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlqtr_scores1)])),
__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqtr_scores1[__yy_gml_array_check_index(2,yyInst(_inst,_other,97).gmlqtr_scores1)]));break;}};(g_yyPrePostObject__=_inst.gmlquarter,_inst.gmlquarter=(g_yyPrePostObject__ instanceof Long?_inst.gmlquarter.add(1):++_inst.gmlquarter),g_yyPrePostObject__);if((yyGetBool(yyfequal(_inst.gmlquarter,3)))||(yyGetBool(yyfequal(_inst.gmlquarter,5)))){gml_Script_s_update_audibles(_inst,_other,(-1));};var gmltos=clamp(yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlop_matchlength)),
2,3);if(yyfequal(_inst.gmlquarter,3)){gml_Script_s_set_timeouts(_inst,_other,gmltos);};if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfless(gml_Script_s_count_timeouts(_inst,_other),gmltos)))){gml_Script_s_update_timeouts(_inst,_other,1);};if(yyfequal(yyInst(_inst,_other,97).gmlyear,1)){gml_Script_s_set_timeouts(_inst,_other,0);};if(yyfnotequal(_inst.gmlquarter,3)){{gml_Script_s_switch_drivedirection(_inst,_other);if((yyGetBool(global.gmlpoki))&&(yyGetBool(!yyGetBool(gml_Script__poki_is_mobile(_inst,
_other))))&&(yyGetBool(yyfless(_inst.gmlquarter,5)))){{gml_Script_poki_pause(_inst,_other);gml_Script_poki_commercial_break(_inst,_other,kgml_Script_poki_resume,"poki_commercial_break");};};};};break;}case 20:{{var __yy__v1102=GetWithArray(104);for(var __yy__v1103 in __yy__v1102){if(!__yy__v1102.hasOwnProperty(__yy__v1103))continue;var __yy__v1104=__yy__v1102[__yy__v1103];{__yy__v1104.gmlskip_half=false;__yy__v1104.gmlminutes=yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlop_matchlength));__yy__v1104.gmlseconds=0;
__yy__v1104.gmltime_subtract=0;}}};var ___sw932___=_inst.gmlquarter;var ___swc933___=-1;if(yyCompareVal(___sw932___,2,g_GMLMathEpsilon,false)==0){___swc933___=0;}else if(yyCompareVal(___sw932___,3,g_GMLMathEpsilon,false)==0){___swc933___=1;}else if(yyCompareVal(___sw932___,4,g_GMLMathEpsilon,false)==0){___swc933___=2;}else if(yyCompareVal(___sw932___,5,g_GMLMathEpsilon,false)==0){___swc933___=3;}else if(yyCompareVal(___sw932___,6,g_GMLMathEpsilon,false)==0){___swc933___=4;}switch(___swc933___){case 0:{
_inst.gmlcomm_stage=_inst.gmlcomm_next_stage;gml_Script_s_update_commentary(_inst,_other);break;}case 1:{_inst.gmlcomm_stage=1;_inst.gmlpossession=!yyGetBool(_inst.gmlkickoffteam);gml_Script_s_update_commentary(_inst,_other);break;}case 2:{_inst.gmlcomm_stage=_inst.gmlcomm_next_stage;gml_Script_s_update_commentary(_inst,_other);break;}case 3:{_inst.gmlcomm_txt="";if(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,
_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,1);return;};};if(yyfless(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,(-1));return;};};_inst.gmlcomm_stage=1;_inst.gmlpossession=!yyGetBool(_inst.gmlhuman_team);var ___sw934___=yyInst(_inst,_other,97).gmlop_difficulty;var ___swc935___=-1;if(yyCompareVal(___sw934___,
1,g_GMLMathEpsilon,false)==0){___swc935___=0;}else if(yyCompareVal(___sw934___,0,g_GMLMathEpsilon,false)==0){___swc935___=1;}else if(yyCompareVal(___sw934___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw934___,3,g_GMLMathEpsilon,false)==0){___swc935___=2;}else if(yyCompareVal(___sw934___,4,g_GMLMathEpsilon,false)==0){___swc935___=3;}switch(___swc935___){case 0:{break;}case 1:{if(yyfgreater(yyInst(_inst,_other,97).gmlsuppress_difficulty,0)){break;};}case 2:{if(!yyGetBool(irandom(2))){_inst.gmlpossession=_inst.gmlhuman_team;
};break;}case 3:{if(!yyGetBool(irandom(1))){_inst.gmlpossession=_inst.gmlhuman_team;};break;}};_inst.gmldrives=0;gml_Script_s_update_commentary(_inst,_other);break;}case 4:{gml_Script_slog(_inst,_other,"End of OT: quarter == 6");if(yyflessequal(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)){{if(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,
_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,1);return;};}else {if(yyfless(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,(-1));return;};}else {{gml_Script_s_end_match(_inst,_other,0);return;};};};};};_inst.gmlquarter=5;(g_yyPrePostObject__=_inst.gmlot_count,_inst.gmlot_count=(g_yyPrePostObject__ instanceof Long?_inst.gmlot_count.add(1):++_inst.gmlot_count),
g_yyPrePostObject__);_inst.gmlcomm_stage=_inst.gmlcomm_next_stage;gml_Script_s_update_commentary(_inst,_other);break;}};break;}case 21:{_inst.gmlstate=2;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=1;break;}case 22:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_2pt_attempt",(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)?"QB":""))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,
_inst.gmlteam_name)]);_inst.gmlcomm_stage=16;break;}case 23:{if((yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,_other))))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){{_inst.gmlstate=2;_inst.gmldown=6;break;};};if(yyfgreater(irandom(99),60)){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_2pt_missed");_inst.gmlscored_by=(-1);};}else {{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_2pt_scored");_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,
4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)]=yyfplus(_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)],2);_inst.gmlscored_by=_inst.gmlpossession;};};if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,
_other)))){{gml_Script_slog(_inst,_other,"Overtime win 2pt fail");_inst.gmlcomm_stage=17;break;};};_inst.gmlcomm_stage=1;break;}case 24:{gml_Script_s_set_up_button_kickoff(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_overtime_over");_inst.gmlcomm_stage=18;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=0;break;}case 25:{_inst.gmlcomm_txt="";if(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,
_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,1);return;};};if(yyfless(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,(-1));return;};};if((yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,
_other,97).gmllast_week_regular)))||(yyGetBool(global.gmlexhibition))){{_inst.gmlquarter=5;_inst.gmlcomm_stage=_inst.gmlcomm_next_stage;gml_Script_s_update_commentary(_inst,_other);};}else {{gml_Script_s_end_match(_inst,_other,0);return;};};break;}case 26:{_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);gml_Script_s_tackle_failure(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_failed_skill");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",
ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));_inst.gmlcomm_defender=(-4);if(yyfgreaterequal(_inst.gmlscrimmage,50)){{_inst.gmlcomm_stage=9;};}else {_inst.gmlcomm_stage=2;};break;}case 27:{_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);gml_Script_s_tackle_failure(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,
_other,"comm_stage_failed_strength");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));_inst.gmlcomm_defender=(-4);if(yyfgreaterequal(_inst.gmlscrimmage,50)){{_inst.gmlcomm_stage=9;};}else {_inst.gmlcomm_stage=2;};break;}case 28:{_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);
gml_Script_s_tackle_failure(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_failed_speed");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));_inst.gmlcomm_defender=(-4);if(yyfgreaterequal(_inst.gmlscrimmage,50)){{_inst.gmlcomm_stage=9;};}else {_inst.gmlcomm_stage=2;
};break;}case 29:{if(yyfequal(_inst.gmldown,5)){_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_TurnoverHuman4th"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);}else {_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_TurnoverHuman"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);};gml_Script_s_change_possession(_inst,_other);break;}case 30:{
break;}};}}function gml_Script_s_go_for_it_or_not(_inst,_other){{if(yyfgreater(_inst.gmlscrimmage,0)){_inst.gmlcomm_stage=6;}else {_inst.gmlcomm_stage=5;};var gmldownby=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)]),__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)]));if(yyfequal(_inst.gmlquarter,5)){{if((yyGetBool(yyfgreater(_inst.gmlscrimmage,10)))&&(yyGetBool(yyfless(gmldownby,
4)))){_inst.gmlcomm_stage=6;}else {_inst.gmlcomm_stage=24;};return;};};if((yyGetBool(yyfgreater(gmldownby,16)))&&(yyGetBool(yyfless(_inst.gmlscrimmage,0)))){return;};if((yyGetBool(yyfequal(_inst.gmlquarter,4)))&&(yyGetBool(yyfgreater(gmldownby,7)))){{if((yyGetBool(yyfgreater(_inst.gmlscrimmage,10)))&&(yyGetBool(yyfgreater(gmldownby,8)))&&(yyGetBool(yyfless(gmldownby,12)))){_inst.gmlcomm_stage=6;}else {_inst.gmlcomm_stage=24;};return;};};if((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,60)))&&(yyGetBool(yyfgreater(gmldownby,
0)))&&(yyGetBool(yyfless(gmldownby,9)))){_inst.gmlcomm_stage=24;};}}function gml_Script_s_check_skip_time_button(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,104).gmlskip_half)){return;};{var __yy__v1105=GetWithArray(29);for(var __yy__v1106 in __yy__v1105){if(!__yy__v1105.hasOwnProperty(__yy__v1106))continue;var __yy__v1107=__yy__v1105[__yy__v1106];return;}};var gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),16),__yy_gml_errCheck(sprite_get_width(80)));var gmlby=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_height()),
16),__yy_gml_errCheck(sprite_get_height(80)));var gmlbtn_skiptime=instance_create_layer(gmlbx,gmlby,"Text",29);yyInst(_inst,_other,gmlbtn_skiptime).gmlgp_mapped_button=global.gmlgp_timeout;}}function gml_Script_btn_skip_time(_inst,_other){{yyInst(_inst,_other,104).gmlskip_half=true;yyInst(_inst,_other,104).gmlcomm_proceed=true;{var __yy__v1108=GetWithArray(29);for(var __yy__v1109 in __yy__v1108){if(!__yy__v1108.hasOwnProperty(__yy__v1109))continue;var __yy__v1110=__yy__v1108[__yy__v1109];instance_destroy(__yy__v1110);
}};}}function gml_GlobalScript_s_choose_defensive_formation(_inst,_other){(_inst.gmls_choose_defensive_formation=__yy_method(_inst,gml_Script_s_choose_defensive_formation));}function gml_Script_s_choose_defensive_formation(_inst,_other){{{var __yy__v1111=GetWithArray(104);for(var __yy__v1112 in __yy__v1111){if(!__yy__v1111.hasOwnProperty(__yy__v1112))continue;var __yy__v1113=__yy__v1111[__yy__v1112];{__yy__v1113.gmldefensive_cover=irandom(3);var gmldist=4;if(yyfless(__yy__v1113.gmlyards,8)){gmldist=3;};
if(yyflessequal(__yy__v1113.gmlyards,4)){gmldist=2;};if(yyfless(__yy__v1113.gmlyards,2)){gmldist=1;};var gmld43=2;var gmlblitz=1;var gmlc1=1;var gmlc4=1;var ___sw942___=__yy__v1113.gmldown;var ___swc943___=-1;if(yyCompareVal(___sw942___,1,g_GMLMathEpsilon,false)==0){___swc943___=0;}else if(yyCompareVal(___sw942___,2,g_GMLMathEpsilon,false)==0){___swc943___=1;}else if(yyCompareVal(___sw942___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw942___,4,g_GMLMathEpsilon,false)==0){___swc943___=2;}else if(yyCompareVal(___sw942___,
6,g_GMLMathEpsilon,false)==0){___swc943___=3;}switch(___swc943___){case 0:{break;}case 1:{var ___sw944___=gmldist;var ___swc945___=-1;if(yyCompareVal(___sw944___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw944___,2,g_GMLMathEpsilon,false)==0){___swc945___=0;}else if(yyCompareVal(___sw944___,3,g_GMLMathEpsilon,false)==0){___swc945___=1;}else if(yyCompareVal(___sw944___,4,g_GMLMathEpsilon,false)==0){___swc945___=2;}switch(___swc945___){case 0:{gmld43=1;gmlblitz=1;gmlc1=7;gmlc4=1;break;}case 1:{gmld43=4;
gmlblitz=1;gmlc1=4;gmlc4=1;break;}case 2:{gmld43=4;gmlblitz=1;gmlc1=4;gmlc4=1;break;}};break;}case 2:{var ___sw946___=gmldist;var ___swc947___=-1;if(yyCompareVal(___sw946___,1,g_GMLMathEpsilon,false)==0){___swc947___=0;}else if(yyCompareVal(___sw946___,2,g_GMLMathEpsilon,false)==0){___swc947___=1;}else if(yyCompareVal(___sw946___,3,g_GMLMathEpsilon,false)==0){___swc947___=2;}else if(yyCompareVal(___sw946___,4,g_GMLMathEpsilon,false)==0){___swc947___=3;}switch(___swc947___){case 0:{gmld43=1;gmlblitz=2;gmlc1=6;
gmlc4=1;break;}case 1:{gmld43=5;gmlblitz=3;gmlc1=1;gmlc4=1;break;}case 2:{gmld43=4;gmlblitz=3;gmlc1=1;gmlc4=2;break;}case 3:{gmld43=3;gmlblitz=4;gmlc1=1;gmlc4=4;break;}};break;}case 3:{gmld43=1;gmlblitz=5;gmlc1=1;gmlc4=1;break;}default :{break;}};var gmlplaycallroll=random_range(0,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmld43),__yy_gml_errCheck(gmlblitz)),__yy_gml_errCheck(gmlc1)),__yy_gml_errCheck(gmlc4)));gml_Script_slog(__yy__v1113,_inst,yyfplus("playcallroll = ",__yy_gml_errCheck(string(gmlplaycallroll))));
__yy__v1113.gmldefensive_cover=2;if(yyfgreater(gmlplaycallroll,gmld43)){__yy__v1113.gmldefensive_cover=0;};if(yyfgreater(gmlplaycallroll,yyfplus(__yy_gml_errCheck(gmld43),__yy_gml_errCheck(gmlblitz)))){__yy__v1113.gmldefensive_cover=1;};if(yyfgreater(gmlplaycallroll,yyfplus(yyfplus(__yy_gml_errCheck(gmld43),__yy_gml_errCheck(gmlblitz)),__yy_gml_errCheck(gmlc1)))){__yy__v1113.gmldefensive_cover=3;};}}};}}function gml_GlobalScript_s_set_up_fieldgoal(_inst,_other,argument0){(_inst.gmls_set_up_fieldgoal=__yy_method(_inst,
gml_Script_s_set_up_fieldgoal));}function gml_Script_s_set_up_fieldgoal(_inst,_other,argument0){{show_debug_message("s_set_up_fieldgoal");if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{if(yyfequal(argument0,2)){gml_Script_s_action_result(_inst,_other,11);}else {gml_Script_s_action_result(_inst,_other,10);};return;};};_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();global.gmlreplay_do=false;{var __yy__v1114=GetWithArray(104);for(var __yy__v1115 in __yy__v1114){if(!__yy__v1114.hasOwnProperty(__yy__v1115))continue;
var __yy__v1116=__yy__v1114[__yy__v1115];{__yy__v1116.alarm=__yy_gml_array_check(__yy__v1116.alarm,2866952012);__yy__v1116.alarm[__yy_gml_array_check_index_set(0)]=0;gml_Script_s_reset_wind(__yy__v1116,_inst);__yy__v1116.gmlkicking=argument0;__yy__v1116.gmlscored_by=(-1);if(yyfequal(__yy__v1116.gmlkicking,2)){__yy__v1116.gmlscrimmage=35;};__yy__v1116.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(__yy__v1116.gmlscrimmage),20),__yy_gml_errCheck(__yy__v1116.gmldrivedir))));
__yy__v1116.gmlx_yards=yyfplus(__yy_gml_errCheck(__yy__v1116.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(__yy__v1116.gmlyards),20),__yy_gml_errCheck(__yy__v1116.gmldrivedir))));__yy__v1116.gmly_scrim=300;(g_yyPrePostObject__=__yy__v1116.gmlkicks,__yy__v1116.gmlkicks=(g_yyPrePostObject__ instanceof Long?__yy__v1116.gmlkicks.add(1):++__yy__v1116.gmlkicks),g_yyPrePostObject__);if(yyfgreater(__yy__v1116.gmlsnaps,0)){(g_yyPrePostObject__=__yy__v1116.gmlsnaps,__yy__v1116.gmlsnaps=(g_yyPrePostObject__ instanceof Long?__yy__v1116.gmlsnaps.subtract(1):--__yy__v1116.gmlsnaps),
g_yyPrePostObject__);};if((yyGetBool(yyfnotequal(__yy__v1116.gmlkicking,2)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))){{__yy__v1116.gmly_scrim=276;if(yyfgreater(__yy__v1116.gmly_down,300)){__yy__v1116.gmly_scrim=332;};};};__yy__v1116.gmlkick_dist=yyfminus(__yy_gml_errCheck(__yy__v1116.gmlx_scrim),90);if(yyfequal(__yy__v1116.gmldrivedir,1)){__yy__v1116.gmlkick_dist=yyfminus(2510,__yy_gml_errCheck(__yy__v1116.gmlx_scrim));};__yy__v1116.gmlkick_dist=yyfplus(4,__yy_gml_errCheck(floor(yyfdivide(__yy_gml_errCheck(__yy__v1116.gmlkick_dist),
20))));gml_Script_s_destroy_match_objects(__yy__v1116,_inst);var gmlo=1;for(;yyfless(gmlo,12);(g_yyPrePostObject__=gmlo,gmlo=(g_yyPrePostObject__ instanceof Long?gmlo.add(1):++gmlo),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",107);if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,1)))&&(yyGetBool(yyfequal(gmlo,2)))){break;};}};if(yyfnotequal(yyInst(_inst,_other,97).gmlgamepractice,1)){{var gmld=1;for(;yyfless(gmld,12);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),
g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",108);}};};};{var __yy__v1117=GetWithArray(106);for(var __yy__v1118 in __yy__v1117){if(!__yy__v1117.hasOwnProperty(__yy__v1118))continue;var __yy__v1119=__yy__v1117[__yy__v1118];gml_Script_s_set_skills_and_skin(__yy__v1119,__yy__v1116);}};global.gmlmaster_ball=instance_create_layer(0,0,"Ball",110);instance_create_layer(0,0,"Ball",111);if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,1)){{__yy__v1116.gmlstate=1;__yy__v1116.gmlcomm_stage=14;__yy__v1116.gmlcomm_txt="";
__yy__v1116.gmlcomm_proceed=false;__yy__v1116.gmltap_msg=gml_Script_s_str(__yy__v1116,_inst,"training_Kick1");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){__yy__v1116.gmltap_msg=gml_Script_s_str(__yy__v1116,_inst,"training_Kick1b");};if(yyGetBool(global.gmlgamepad)){__yy__v1116.gmlcomm_proceed=true;};};};}}};if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldown,4)))||(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlkicking,2)))))&&(yyGetBool(gml_Script_s_count_timeouts(_inst,
_other)))){{var gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),8),__yy_gml_errCheck(sprite_get_width(79)));var gmlby=68;if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))){gmlbx=8;};var gmlobj_btn_g4i=instance_create_layer(gmlbx,gmlby,"Text",12);yyInst(_inst,_other,gmlobj_btn_g4i).gmlgp_mapped_button=32772;yyInst(_inst,_other,gmlobj_btn_g4i).gmlgp_mapped_hidden=32774;if(yyfequal(yyInst(_inst,_other,104).gmlkicking,2)){yyInst(_inst,_other,gmlobj_btn_g4i).gmltxt=gml_Script_s_str(_inst,
_other,"btn_GoFor2");};};};}}function gml_GlobalScript_s_subtract_time(_inst,_other){(_inst.gmls_subtract_time=__yy_method(_inst,gml_Script_s_subtract_time));}function gml_Script_s_subtract_time(_inst,_other,argument0,argument1,argument2){{if(yyfgreater(argument1,1)){gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(">>>>>>>>>>>>>>>>>>>> s_subtract_time(",__yy_gml_errCheck(string(argument0))),", "),__yy_gml_errCheck(string(argument1))),", "),__yy_gml_errCheck(argument2)));};var gmltm=irandom_range(argument0,
argument1);if(yyGetBool(_inst.gmlgoforit)){gmltm=yyfplus(1,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltm),0.5)));}else {if((yyGetBool(yyfgreater(argument1,1)))&&(yyGetBool(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],yyfplus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)]),7))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlop_matchlength,(-1))))){gmltm=yyftime(gmltm,
1.5);};};gml_Script_slog(_inst,_other,yyfplus(">>>>>>>>>>>>>>>>>>>> time - ",__yy_gml_errCheck(string(gmltm))));_inst.gmltime_subtract=yyfplus(_inst.gmltime_subtract,round(gmltm));}}function gml_GlobalScript_s_update_game_timer(_inst,_other){(_inst.gmls_update_game_timer=__yy_method(_inst,gml_Script_s_update_game_timer));}function gml_Script_s_update_game_timer(_inst,_other){{if((yyGetBool(yyflessequal(_inst.gmlminutes,0)))&&(yyGetBool(yyflessequal(_inst.gmlseconds,0)))){return;};if(yyfequal(_inst.gmlkicking,
2)){return;};if(yyGetBool(_inst.gmltimeout_called)){return;};if((yyGetBool(yyfgreater(_inst.gmldown,4)))&&(yyGetBool(yyfless(_inst.gmldown,99)))){return;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){return;};{var __yy__v1120=GetWithArray(global.gmlmaster_ball);for(var __yy__v1121 in __yy__v1120){if(!__yy__v1120.hasOwnProperty(__yy__v1121))continue;var __yy__v1122=__yy__v1120[__yy__v1121];{var ___sw950___=__yy__v1122.gmlstate;var ___swc951___=-1;if(yyCompareVal(___sw950___,0,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw950___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,17,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw950___,20,g_GMLMathEpsilon,false)==0){___swc951___=0;}switch(___swc951___){case 0:{return;break;}default :{if((yyGetBool(yyfequal(__yy__v1122.gmlstate,4)))&&(yyGetBool(__yy__v1122.gmlholder))){{if((yyGetBool(!yyGetBool(yyInst(_inst,_other,__yy__v1122.gmlholder).gmloffense)))||(yyGetBool(gml_Script_s_is_kickoff(__yy__v1122,_inst,true)))){return;}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldown,4)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,__yy__v1122.gmlholder).gmlremaining_dist,
0)))){return;};};};};if((yyGetBool(gml_Script_s_is_kickoff(__yy__v1122,_inst,true)))&&(yyGetBool((yyGetBool(yyfless(__yy__v1122.x,300)))||(yyGetBool(yyfgreater(__yy__v1122.x,2300)))))){return;};var gmlsec=700;if((yyGetBool(yyfequal(__yy__v1122.gmlstate,4)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlop_matchlength,(-1))))){gmlsec=yyftime(gmlsec,1.5);};{if(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlgametimer),__yy_gml_errCheck(gmlsec)))){{_inst.gmlgametimer=g_pBuiltIn.get_current_time();
gml_Script_s_subtract_time(_inst,__yy__v1122,1,1,"Tick");gml_Script_s_update_game_clock(_inst,__yy__v1122);};};};break;}};}}};}}function gml_GlobalScript_s_update_game_clock(_inst,_other){(_inst.gmls_update_game_clock=__yy_method(_inst,gml_Script_s_update_game_clock));}function gml_Script_s_update_game_clock(_inst,_other){{{var __yy__v1123=GetWithArray(104);for(var __yy__v1124 in __yy__v1123){if(!__yy__v1123.hasOwnProperty(__yy__v1124))continue;var __yy__v1125=__yy__v1123[__yy__v1124];{if(yyfgreater(__yy__v1125.gmltime_subtract,
0)){{(g_yyPrePostObject__=__yy__v1125.gmltime_subtract,__yy__v1125.gmltime_subtract=(g_yyPrePostObject__ instanceof Long?__yy__v1125.gmltime_subtract.subtract(1):--__yy__v1125.gmltime_subtract),g_yyPrePostObject__);(g_yyPrePostObject__=__yy__v1125.gmlseconds,__yy__v1125.gmlseconds=(g_yyPrePostObject__ instanceof Long?__yy__v1125.gmlseconds.subtract(1):--__yy__v1125.gmlseconds),g_yyPrePostObject__);if(yyfequal(__yy__v1125.gmlstate,2)){{if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{if(yyfequal(__yy__v1125.gmlminutes,
0)){{if(yyfless(__yy__v1125.gmlseconds,6)){gml_Script_s_sound(__yy__v1125,_inst,3);}else {gml_Script_s_sound(__yy__v1125,_inst,2);};};};};}else {if((yyGetBool(yyfequal(__yy__v1125.gmlquarter,2)))||(yyGetBool(yyfequal(__yy__v1125.gmlquarter,4)))){{if((yyGetBool(yyfequal(__yy__v1125.gmlminutes,0)))&&(yyGetBool(yyfequal(__yy__v1125.gmlseconds,20)))){gml_Script_s_sound(__yy__v1125,_inst,3);};if((yyGetBool(yyfequal(__yy__v1125.gmlminutes,0)))&&(yyGetBool(yyfless(__yy__v1125.gmlseconds,11)))){gml_Script_s_sound(__yy__v1125,
_inst,2);};};};};};};if(yyfless(__yy__v1125.gmlseconds,0)){{(g_yyPrePostObject__=__yy__v1125.gmlminutes,__yy__v1125.gmlminutes=(g_yyPrePostObject__ instanceof Long?__yy__v1125.gmlminutes.subtract(1):--__yy__v1125.gmlminutes),g_yyPrePostObject__);__yy__v1125.gmlseconds=yyfplus(__yy__v1125.gmlseconds,60);if(yyfless(__yy__v1125.gmlminutes,0)){{__yy__v1125.gmlminutes=0;__yy__v1125.gmlseconds=0;};};};};};};}}};}}function gml_GlobalScript_s_update_yard_gain(_inst,_other){(_inst.gmls_update_yard_gain=__yy_method(_inst,
gml_Script_s_update_yard_gain));}function gml_Script_s_update_yard_gain(_inst,_other){{gml_Script_s_update_xdead(_inst,_other);var gmlgain=0;var gmlbx=clamp(_inst.gmlxdead,300,2300);var gmlball=global.gmlmaster_ball;if((yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)))){return;};var ___sw956___=yyInst(_inst,_other,104).gmldrivedir;var ___swc957___=-1;if(yyCompareVal(___sw956___,(-1),g_GMLMathEpsilon,false)==0){
___swc957___=0;}else if(yyCompareVal(___sw956___,1,g_GMLMathEpsilon,false)==0){___swc957___=1;}switch(___swc957___){case 0:{gmlgain=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim),__yy_gml_errCheck(gmlbx))),20);break;}case 1:{gmlgain=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_scrim))),20);break;}};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(yyInst(_inst,
_other,gmlball).gmlholder))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap))&&(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true)))){{gml_Script_slog(_inst,_other,yyfplus("Check return record gain = ",__yy_gml_errCheck(string(gmlgain))));ds_map_set(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_attempts")),
1));if(yyfgreater(gmlgain,0)){{ds_map_set(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_yards")),__yy_gml_errCheck(gmlgain)));if(yyfgreater(gmlgain,ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_longest"))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_return_longest",
gmlgain);};gml_Script_s_check_record(_inst,_other,"ui_LongKickReturn",gmlgain,"",gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){{if(yyfgreaterequal(gmlgain,25)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RETURN_25");};if(yyfgreaterequal(gmlgain,50)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RETURN_50");};if(yyfgreaterequal(gmlgain,75)){gml_Script_s_complete_achievement(_inst,
_other,"ACH_RETURN_75");};};};if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)){{ds_map_set(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_tds",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_tds")),1));if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){gml_Script_s_complete_achievement(_inst,_other,"ACH_RETURN_TD");};};};if(yyfgreater(gmlgain,25)){global.gmlreplay_do=true;};
};};return;};};var gmlqb=gml_Script_s_get_quarterback(_inst,_other);if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(_inst.gmlholder))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,5)))){{var ___sw958___=yyInst(_inst,_other,_inst.gmlholder).gmlposition;var ___swc959___=-1;if(yyCompareVal(___sw958___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw958___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw958___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw958___,
4,g_GMLMathEpsilon,false)==0){___swc959___=0;}else if(yyCompareVal(___sw958___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw958___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw958___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw958___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw958___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw958___,10,g_GMLMathEpsilon,false)==0){___swc959___=1;}switch(___swc959___){case 0:{if(yyGetBool(yyInst(_inst,_other,104).gmlrunning_play)){{gml_Script_slog(_inst,
_other,">>> RUNNING_PLAY");if(yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmlpmap)){{if(yyfnotequal(_inst.gmlstate,11)){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_attempts")),1));};if((yyGetBool(yyfgreater(gmlgain,0)))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,_inst.gmlholder).gmlposition,1)))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_yards",
yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_yards")),__yy_gml_errCheck(gmlgain)));};if(yyfgreater(gmlgain,ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_longest"))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_longest",gmlgain);};if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)){{ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,_inst.gmlholder).gmlpmap,"stat_rush_touchdowns")),1));if((yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"position"),1)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,_other))))){gml_Script_s_complete_achievement(_inst,_other,"ACH_TD_QB");};};};};}else {{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlposition,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,
_other))))){gml_Script_s_complete_achievement(_inst,_other,"ACH_TD_QB");};};};if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){{if(yyfgreater(gmlgain,15)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RUN15");}else {if(yyfgreater(gmlgain,10)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RUN10");}else {if(yyfgreater(gmlgain,5)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RUN5");};};};};};if(yyfgreater(gmlgain,15)){global.gmlreplay_do=true;};gml_Script_s_check_record(_inst,
_other,"ui_LongRushingPlay",gmlgain,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,6)))){{gml_Script_s_check_record(_inst,_other,"ui_LongRushTD",gmlgain,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));yyInst(_inst,
_other,104).gmldist_td=round(gmlgain);};};};}else {{if(yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmlpmap)){{ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_attempts")),1));ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_yards")),__yy_gml_errCheck(gmlgain)));if(yyfgreater(gmlgain,
ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_longest"))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_longest",gmlgain);};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,6)))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_touchdowns")),1));};};};if((yyGetBool(gmlqb))&&(yyGetBool(yyInst(_inst,
_other,gmlqb).gmlpmap))){{ds_map_set(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_yards")),__yy_gml_errCheck(gmlgain)));if(yyfgreater(gmlgain,ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_longest"))){ds_map_set(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_longest",gmlgain);};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,6)))){ds_map_set(yyInst(_inst,
_other,gmlqb).gmlpmap,"stat_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_touchdowns")),1));};};};if((yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,_other))))){{if(yyfgreater(gmlgain,50)){gml_Script_s_complete_achievement(_inst,_other,"ACH_PASS50");}else {if(yyfgreater(gmlgain,25)){gml_Script_s_complete_achievement(_inst,_other,"ACH_PASS25");}else {if(yyfgreater(gmlgain,
10)){gml_Script_s_complete_achievement(_inst,_other,"ACH_PASS10");};};};};};if(yyfgreater(gmlgain,25)){global.gmlreplay_do=true;};gml_Script_s_check_record(_inst,_other,"ui_LongPassingPlay",gmlgain,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,6)))){{gml_Script_s_check_record(_inst,_other,"ui_LongPassTD",
gmlgain,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));yyInst(_inst,_other,104).gmldist_td=round(gmlgain);};};};};break;}case 1:{break;}};};};gml_Script_s_fieldtxt_yards(_inst,_other,gmlgain);}}function gml_GlobalScript_s_set_rewarded_route(_inst,_other){(_inst.gmls_set_rewarded_route=__yy_method(_inst,gml_Script_s_set_rewarded_route));}function gml_Script_s_set_rewarded_route(_inst,_other){{{var __yy__v1126=GetWithArray(107);
for(var __yy__v1127 in __yy__v1126){if(!__yy__v1126.hasOwnProperty(__yy__v1127))continue;var __yy__v1128=__yy__v1126[__yy__v1127];{if((yyGetBool(path_exists(__yy__v1128.gmlmy_route)))&&(yyGetBool(!yyGetBool(__yy__v1128.gmlte_blocking)))&&(yyGetBool(yyfnotequal(__yy__v1128.gmlposition,1)))){{if(!yyGetBool(irandom(4))){{if((yyGetBool(__yy__v1128.gmlpmap))&&(yyGetBool(yyfgreater(ds_map_find_value(__yy__v1128.gmlpmap,"attitude"),99)))){continue;}else {{__yy__v1128.gmlrewarded_route=true;return;};};};};};
};}}};}}function gml_GlobalScript_s_switch_drivedirection(_inst,_other){(_inst.gmls_switch_drivedirection=__yy_method(_inst,gml_Script_s_switch_drivedirection));}function gml_Script_s_switch_drivedirection(_inst,_other){{{var __yy__v1129=GetWithArray(104);for(var __yy__v1130 in __yy__v1129){if(!__yy__v1129.hasOwnProperty(__yy__v1130))continue;var __yy__v1131=__yy__v1129[__yy__v1130];{__yy__v1131.gmldrivedir=__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1131.gmldrivedir));var gmldd=ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_drivedir");if(yyGetBool(global.gmlexhibition)){gmldd=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_drivedir");};if(yyfnotequal(gmldd,0)){__yy__v1131.gmldrivedir=gmldd;};}}};{var __yy__v1132=GetWithArray(106);for(var __yy__v1133 in __yy__v1132){if(!__yy__v1132.hasOwnProperty(__yy__v1133))continue;var __yy__v1134=__yy__v1132[__yy__v1133];{__yy__v1134.gmlfacing=__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1134.gmlfacing));__yy__v1134.gmlgoalline_attack=2300;
if(yyfequal(__yy__v1134.gmlfacing,(-1))){__yy__v1134.gmlgoalline_attack=300;};}}};}}function gml_GlobalScript_s_destroy_match_objects(_inst,_other){(_inst.gmls_destroy_match_objects=__yy_method(_inst,gml_Script_s_destroy_match_objects));}function gml_Script_s_destroy_match_objects(_inst,_other){{gml_Script_slog(_inst,_other,"s_destroy_match_objects");{var __yy__v1135=GetWithArray(106);for(var __yy__v1136 in __yy__v1135){if(!__yy__v1135.hasOwnProperty(__yy__v1136))continue;var __yy__v1137=__yy__v1135[__yy__v1136];
layer_sprite_destroy(__yy__v1137.gmlmy_shadow);}};{var __yy__v1138=GetWithArray(global.gmlmaster_ball);for(var __yy__v1139 in __yy__v1138){if(!__yy__v1138.hasOwnProperty(__yy__v1139))continue;var __yy__v1140=__yy__v1138[__yy__v1139];layer_sprite_destroy(__yy__v1140.gmlmy_shadow);}};instance_destroy(_inst,106);instance_destroy(_inst,110);instance_destroy(_inst,111);instance_destroy(_inst,109);instance_destroy(_inst,116);instance_destroy(_inst,121);instance_destroy(_inst,122);instance_destroy(_inst,123);
instance_destroy(_inst,12);}}function gml_GlobalScript_s_action_result(_inst,_other){(_inst.gmls_action_result=__yy_method(_inst,gml_Script_s_action_result));}function gml_Script_s_action_result(_inst,_other,argument0){{gml_Script_s_destroy_match_objects(_inst,_other);gml_Script_slog(_inst,_other,yyfplus("s_action_result: ",__yy_gml_errCheck(gml_Script_s_get_string_action_result(_inst,_other,argument0))));{var __yy__v1141=GetWithArray(104);for(var __yy__v1142 in __yy__v1141){if(!__yy__v1141.hasOwnProperty(__yy__v1142))continue;
var __yy__v1143=__yy__v1141[__yy__v1142];{__yy__v1143.gmlscorer="";var ___sw962___=argument0;var ___swc963___=-1;if(yyCompareVal(___sw962___,1,g_GMLMathEpsilon,false)==0){___swc963___=0;}else if(yyCompareVal(___sw962___,2,g_GMLMathEpsilon,false)==0){___swc963___=1;}else if(yyCompareVal(___sw962___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw962___,4,g_GMLMathEpsilon,false)==0){___swc963___=2;}else if(yyCompareVal(___sw962___,5,g_GMLMathEpsilon,false)==0){___swc963___=3;}else if(yyCompareVal(___sw962___,
6,g_GMLMathEpsilon,false)==0){___swc963___=4;}else if(yyCompareVal(___sw962___,7,g_GMLMathEpsilon,false)==0){___swc963___=5;}else if(yyCompareVal(___sw962___,8,g_GMLMathEpsilon,false)==0){___swc963___=6;}else if(yyCompareVal(___sw962___,9,g_GMLMathEpsilon,false)==0){___swc963___=7;}else if(yyCompareVal(___sw962___,10,g_GMLMathEpsilon,false)==0){___swc963___=8;}else if(yyCompareVal(___sw962___,11,g_GMLMathEpsilon,false)==0){___swc963___=9;}switch(___swc963___){case 0:{gml_Script_slog(__yy__v1143,_inst,
yyfplus("quarter=",__yy_gml_errCheck(string(__yy__v1143.gmlquarter))));gml_Script_slog(__yy__v1143,_inst,yyfplus("drives=",__yy_gml_errCheck(string(__yy__v1143.gmldrives))));if((yyGetBool(yyfequal(__yy__v1143.gmlquarter,5)))&&(yyGetBool(yyfless(__yy__v1143.gmldown,6)))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(__yy__v1143.gmlteam_score[__yy_gml_array_check_index(__yy__v1143.gmlpossession,__yy__v1143.gmlteam_score)]),6),__yy__v1143.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1143.gmlpossession)?1:0,
__yy__v1143.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1143,_inst)))){{__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)],6);__yy__v1143.gmlcomm_stage=17;break;};}else {if((yyGetBool(yyfgreaterequal(__yy__v1143.gmldown,6)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(__yy__v1143,
_inst,true))))){{gml_Script_s_complete_achievement(__yy__v1143,_inst,"ACH_POINTAFTER2");if((yyGetBool(yyfequal(__yy__v1143.gmlquarter,5)))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(__yy__v1143.gmlteam_score[__yy_gml_array_check_index(__yy__v1143.gmlpossession,__yy__v1143.gmlteam_score)]),2),__yy__v1143.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1143.gmlpossession)?1:0,__yy__v1143.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1143,_inst)))){{__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,
174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)],2);__yy__v1143.gmlcomm_stage=17;break;};}else {{__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)],2);
__yy__v1143.gmlcomm_stage=1;break;};};};}else {{__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)],6);__yy__v1143.gmldown=6;if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){__yy__v1143.gmlcomm_stage=10;}else {{gml_Script_s_create_message(__yy__v1143,_inst,"",gml_Script_s_str(__yy__v1143,_inst,
"matchmsg_PATor2"),gml_Script_s_str(__yy__v1143,_inst,"match_1pt"),gml_Script_s_str(__yy__v1143,_inst,"match_2pt"),kgml_Script_btn_response_1pt,kgml_Script_btn_response_2pt,16777215,0.7);return;};};};};};break;}case 1:{if((yyGetBool(yyfequal(__yy__v1143.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1143.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1143.gmlteam_score)],__yy__v1143.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1143.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1143,
_inst)))){{gml_Script_s_change_possession(__yy__v1143,_inst);__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)],6);__yy__v1143.gmlcomm_stage=17;};}else {if(yyfgreaterequal(__yy__v1143.gmldown,6)){{__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1143.gmlpossession)?1:0)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1143.gmlpossession)?1:0)],
2);__yy__v1143.gmlcomm_stage=1;};}else {{gml_Script_s_change_possession(__yy__v1143,_inst);__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)],6);__yy__v1143.gmldown=6;if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){{gml_Script_s_create_message(__yy__v1143,
_inst,"",gml_Script_s_str(__yy__v1143,_inst,"matchmsg_PATor2"),gml_Script_s_str(__yy__v1143,_inst,"match_1pt"),gml_Script_s_str(__yy__v1143,_inst,"match_2pt"),kgml_Script_btn_response_1pt,kgml_Script_btn_response_2pt,16777215,0.7);return;};}else {__yy__v1143.gmlcomm_stage=10;};};};};break;}case 2:{if((yyGetBool(yyfequal(__yy__v1143.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1143.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1143.gmlteam_score)],__yy__v1143.gmlteam_score[__yy_gml_array_check_index(1,
__yy__v1143.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1143,_inst)))){__yy__v1143.gmlcomm_stage=17;}else {if(yyfgreaterequal(__yy__v1143.gmldown,6)){{gml_Script_slog(__yy__v1143,_inst,"Missed 2pt attempt");if((yyGetBool(yyfequal(__yy__v1143.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1143.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1143.gmlteam_score)],__yy__v1143.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1143.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1143,
_inst)))){__yy__v1143.gmlcomm_stage=17;}else {__yy__v1143.gmlcomm_stage=1;};};}else {__yy__v1143.gmlcomm_stage=22;};};break;}case 3:{__yy__v1143.gmlcomm_stage=5;break;}case 4:{if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,1)){{if(yyfequal(__yy__v1143.gmlpractice_success,0)){__yy__v1143.gmlpractice_success=__yy__v1143.gmlpractice_count;}else {__yy__v1143.gmlpractice_success=(-1);};gml_Script_s_set_up_practice(__yy__v1143,_inst);return;};};gml_Script_s_change_wind(__yy__v1143,_inst);if(yyfequal(__yy__v1143.gmlkicking,
2)){__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)],1);}else {__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1143.gmlpossession)],
3);};if((yyGetBool(yyfequal(__yy__v1143.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1143.gmlteam_score[__yy_gml_array_check_index(__yy__v1143.gmlpossession,__yy__v1143.gmlteam_score)],__yy__v1143.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1143.gmlpossession)?1:0,__yy__v1143.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1143,_inst)))){{if(yyfgreater(__yy__v1143.gmldrives,1)){{__yy__v1143.gmlcomm_stage=17;gml_Script_slog(__yy__v1143,_inst,"Overtime win 1");
};}else {__yy__v1143.gmlcomm_stage=1;};};}else {__yy__v1143.gmlcomm_stage=1;};break;}case 5:{if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,1)){{gml_Script_s_set_up_practice(__yy__v1143,_inst);return;};};if((yyGetBool(yyfequal(__yy__v1143.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1143.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1143.gmlteam_score)],__yy__v1143.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1143.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1143,
_inst)))){{gml_Script_slog(__yy__v1143,_inst,"Overtime win 4");__yy__v1143.gmlcomm_stage=17;};}else {if(yyfequal(__yy__v1143.gmlkicking,2)){__yy__v1143.gmlcomm_stage=1;}else {gml_Script_s_change_possession(__yy__v1143,_inst);};};gml_Script_s_change_wind(__yy__v1143,_inst);break;}case 6:{if((yyGetBool(yyfequal(__yy__v1143.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1143.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1143.gmlteam_score)],__yy__v1143.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1143.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1143,
_inst)))){{__yy__v1143.gmlcomm_stage=17;__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1143.gmlpossession)?1:0)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1143.gmlpossession)?1:0)],2);};}else {{__yy__v1143.gmlcomm_stage=1;__yy__v1143.gmlteam_score=__yy_gml_array_check(__yy__v1143.gmlteam_score,174389468);__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1143.gmlpossession)?1:0)]=yyfplus(__yy__v1143.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1143.gmlpossession)?1:0)],
2);};};break;}case 7:{__yy__v1143.gmlcomm_stage=2;break;}case 8:{__yy__v1143.gmlcomm_stage=6;break;}case 9:{__yy__v1143.gmlcomm_stage=10;break;}};__yy__v1143.gmlstate=1;__yy__v1143.gmlcomm_proceed=true;if(yyfnotequal(argument0,9)){__yy__v1143.gmldown=1;};}}};}}function gml_GlobalScript_s_is_quarter_over(_inst,_other){(_inst.gmls_is_quarter_over=__yy_method(_inst,gml_Script_s_is_quarter_over));}function gml_Script_s_is_quarter_over(_inst,_other){{var gmltime_up=(yyGetBool(yyflessequal(yyInst(_inst,_other,
104).gmlminutes,0)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,104).gmlseconds,0)));if(yyGetBool(gmltime_up)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("is_quarter_over = YES (",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,_other,_inst.gmlcomm_stage))),")"));_inst.gmlcomm_next_stage=_inst.gmlcomm_stage;_inst.gmlcomm_stage=12;if(yyfless(_inst.gmlquarter,5)){_inst.gmldrives=0;};return true;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("is_quarter_over = NO (",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,
_other,_inst.gmlcomm_stage))),")"));return false;}}function gml_GlobalScript_s_is_on_pitch(_inst,_other,argument0){(_inst.gmls_is_on_pitch=__yy_method(_inst,gml_Script_s_is_on_pitch));}function gml_Script_s_is_on_pitch(_inst,_other,argument0){{var gmlinclude_endzone=argument0;if(yyfless(_inst.y,132)){return false;};if(yyfgreater(_inst.y,468)){return false;};if((yyGetBool(yyfgreater(_inst.x,300)))&&(yyGetBool(yyfless(_inst.x,2300)))){return true;};if(yyGetBool(gmlinclude_endzone)){{if((yyGetBool(yyfgreater(_inst.x,
90)))&&(yyGetBool(yyfless(_inst.x,2510)))){return true;};};};return false;}}function gml_GlobalScript__poki_is_mobile(_inst,_other){(_inst.gml_poki_is_mobile=__yy_method(_inst,gml_Script__poki_is_mobile));}function gml_Script__poki_is_mobile(_inst,_other){{gml_Script_slog(_inst,_other,"_poki_is_mobile");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),4)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),3)))){return true;};return false;}}function gml_GlobalScript_s_is_on_pitch_xy(_inst,_other,argument0,argument1,
argument2){(_inst.gmls_is_on_pitch_xy=__yy_method(_inst,gml_Script_s_is_on_pitch_xy));}function gml_Script_s_is_on_pitch_xy(_inst,_other,argument0,argument1,argument2){{var gmlcx=argument0;var gmlcy=argument1;var gmlinclude_endzone=argument2;if(yyfless(gmlcy,132)){return false;};if(yyfgreater(gmlcy,468)){return false;};if((yyGetBool(yyfgreater(gmlcx,300)))&&(yyGetBool(yyfless(gmlcx,2300)))){return true;};if(yyGetBool(gmlinclude_endzone)){{if((yyGetBool(yyfgreater(gmlcx,90)))&&(yyGetBool(yyfless(gmlcx,2510)))){
return true;};};};return false;}}function gml_GlobalScript_s_end_match(_inst,_other){(_inst.gmls_end_match=__yy_method(_inst,gml_Script_s_end_match));}function gml_Script_s_end_match(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_end_match:",__yy_gml_errCheck(string(argument0))));audio_sound_gain(18,0,3000);yyInst(_inst,_other,104).gmlcomm_stage=31;{var __yy__v1144=GetWithArray(97);for(var __yy__v1145 in __yy__v1144){if(!__yy__v1144.hasOwnProperty(__yy__v1145))continue;var __yy__v1146=__yy__v1144[__yy__v1145];
{__yy__v1146.gmltscore=__yy_gml_array_check(__yy__v1146.gmltscore,620768878);__yy__v1146.gmltscore[__yy_gml_array_check_index_set(0)]=yyInst(_inst,_other,104).gmlteam_score[__yy_gml_array_check_index(0,yyInst(_inst,_other,104).gmlteam_score)];__yy__v1146.gmltscore[__yy_gml_array_check_index_set(1)]=yyInst(_inst,_other,104).gmlteam_score[__yy_gml_array_check_index(1,yyInst(_inst,_other,104).gmlteam_score)];if(yyGetBool(global.gmlexhibition)){{room_goto(49);return;};};gml_Script_s_update_stats(__yy__v1146,
_inst);gml_Script_s_match_rating_effect_on_morale(__yy__v1146,_inst);gml_Script_s_training_regime_effect_on_morale(__yy__v1146,_inst);if((yyGetBool(yyfequal(argument0,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(__yy__v1146,_inst))))){{if(!yyGetBool(yyInst(_inst,_other,104).gmlstarqb)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_NOSTARQB");};if(!yyGetBool(yyInst(_inst,_other,104).gmlstarplayer)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_NOSTAR");};}
;};var gmltmap1=yyInst(_inst,_other,104).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,104).gmlteam)];var gmltmap2=yyInst(_inst,_other,104).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,104).gmlteam)];var gmlstr=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltmap1,"tla"))," "),__yy_gml_errCheck(string(__yy__v1146.gmltscore[__yy_gml_array_check_index(0,__yy__v1146.gmltscore)]))),"-"),__yy_gml_errCheck(string(__yy__v1146.gmltscore[__yy_gml_array_check_index(1,
__yy__v1146.gmltscore)])))," "),__yy_gml_errCheck(ds_map_find_value(gmltmap2,"tla")));gml_Script_s_check_record_text(__yy__v1146,_inst,"ui_MostPointsGame",yyfplus(__yy_gml_errCheck(__yy__v1146.gmltscore[__yy_gml_array_check_index(0,__yy__v1146.gmltscore)]),__yy_gml_errCheck(__yy__v1146.gmltscore[__yy_gml_array_check_index(1,__yy__v1146.gmltscore)])),gmlstr);var gmldif=abs(yyfminus(__yy_gml_errCheck(__yy__v1146.gmltscore[__yy_gml_array_check_index(0,__yy__v1146.gmltscore)]),__yy_gml_errCheck(__yy__v1146.gmltscore[__yy_gml_array_check_index(1,
__yy__v1146.gmltscore)])));var ___sw976___=argument0;var ___swc977___=-1;if(yyCompareVal(___sw976___,(-1),g_GMLMathEpsilon,false)==0){___swc977___=0;}else if(yyCompareVal(___sw976___,1,g_GMLMathEpsilon,false)==0){___swc977___=1;}switch(___swc977___){case 0:{gml_Script_s_check_record_text(__yy__v1146,_inst,"ui_BiggestLoss",gmldif,gmlstr);break;}case 1:{gml_Script_s_check_record_text(__yy__v1146,_inst,"ui_BiggestWin",gmldif,gmlstr);if((yyGetBool(yyfequal(__yy__v1146.gmltscore[__yy_gml_array_check_index(0,
__yy__v1146.gmltscore)],0)))||(yyGetBool(yyfequal(__yy__v1146.gmltscore[__yy_gml_array_check_index(1,__yy__v1146.gmltscore)],0)))){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_SHUTOUT");};break;}};if((yyGetBool(yyfgreaterequal(__yy__v1146.gmltscore[__yy_gml_array_check_index(yyInst(_inst,_other,104).gmlhuman_team,__yy__v1146.gmltscore)],50)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(__yy__v1146,_inst))))){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_SCORE50");};
var gmltds=yyInst(_inst,_other,104).gmltouchdowns;gml_Script_s_check_record_text(__yy__v1146,_inst,"ui_MostTDsGame",gmltds,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlstr)," ("),__yy_gml_errCheck(string(gmltds))),")"));var gmlfixture=gml_Script_s_get_human_fixture_by_week(__yy__v1146,_inst,__yy__v1146.gmlweek);if(yyGetBool(gml_Script_s_simming_action(__yy__v1146,_inst))){{var ___sw978___=__yy__v1146.gmlop_difficulty;var ___swc979___=-1;if(yyCompareVal(___sw978___,0,g_GMLMathEpsilon,false)==0){___swc979___=0;
}else if(yyCompareVal(___sw978___,1,g_GMLMathEpsilon,false)==0){___swc979___=1;}else if(yyCompareVal(___sw978___,2,g_GMLMathEpsilon,false)==0){___swc979___=2;}else if(yyCompareVal(___sw978___,3,g_GMLMathEpsilon,false)==0){___swc979___=3;}else if(yyCompareVal(___sw978___,4,g_GMLMathEpsilon,false)==0){___swc979___=4;}switch(___swc979___){case 0:{ds_map_set(gmlfixture,"difficulty",yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1146,_inst,"ui_Sim"))," "),__yy_gml_errCheck(string(yyfminus(16,__yy_gml_errCheck(yyfplus(5,
__yy_gml_errCheck(__yy__v1146.gmlsuppress_difficulty))))))));break;}case 1:{ds_map_set(gmlfixture,"difficulty",yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1146,_inst,"ui_Sim"))," E"));break;}case 2:{ds_map_set(gmlfixture,"difficulty",yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1146,_inst,"ui_Sim"))," M"));break;}case 3:{ds_map_set(gmlfixture,"difficulty",yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1146,_inst,"ui_Sim"))," H"));break;}case 4:{ds_map_set(gmlfixture,"difficulty",yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1146,
_inst,"ui_Sim"))," X"));break;}};};}else {{var ___sw980___=__yy__v1146.gmlop_difficulty;var ___swc981___=-1;if(yyCompareVal(___sw980___,0,g_GMLMathEpsilon,false)==0){___swc981___=0;}else if(yyCompareVal(___sw980___,1,g_GMLMathEpsilon,false)==0){___swc981___=1;}else if(yyCompareVal(___sw980___,2,g_GMLMathEpsilon,false)==0){___swc981___=2;}else if(yyCompareVal(___sw980___,3,g_GMLMathEpsilon,false)==0){___swc981___=3;}else if(yyCompareVal(___sw980___,4,g_GMLMathEpsilon,false)==0){___swc981___=4;}switch(___swc981___){
case 0:{ds_map_set(gmlfixture,"difficulty",yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1146,_inst,"ui_Dynamic"))," "),__yy_gml_errCheck(string(yyfminus(16,__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(__yy__v1146.gmlsuppress_difficulty))))))));break;}case 1:{ds_map_set(gmlfixture,"difficulty",gml_Script_s_str(__yy__v1146,_inst,"ui_Easy"));break;}case 2:{ds_map_set(gmlfixture,"difficulty",gml_Script_s_str(__yy__v1146,_inst,"ui_Medium"));break;}case 3:{ds_map_set(gmlfixture,"difficulty",
gml_Script_s_str(__yy__v1146,_inst,"ui_Hard"));break;}case 4:{ds_map_set(gmlfixture,"difficulty",gml_Script_s_str(__yy__v1146,_inst,"ui_Extreme"));break;}};};};ds_map_set(gmlfixture,"op_matchlength",yyInst(_inst,_other,97).gmlop_matchlength);ds_map_set(gmlfixture,"away_score",__yy__v1146.gmltscore[__yy_gml_array_check_index(0,__yy__v1146.gmltscore)]);ds_map_set(gmlfixture,"home_score",__yy__v1146.gmltscore[__yy_gml_array_check_index(1,__yy__v1146.gmltscore)]);if(yyfequal(__yy__v1146.gmlweek,yyInst(_inst,
_other,97).gmllast_week_regular)){{gml_Script_slog(__yy__v1146,_inst,yyfplus("End of regular season. My rating was ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));if(yyfequal(gml_Script_s_get_division_winner(__yy__v1146,_inst,__yy__v1146.gmlmyconference,__yy__v1146.gmlmydivision),__yy__v1146.gmlmyteam)){{gml_Script_slog(__yy__v1146,_inst,"Divisional winner!");gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_DIVISION");};};if(yyfequal(gml_Script_s_get_team_id_by_seed(__yy__v1146,
_inst,__yy__v1146.gmlmyconference,1),__yy__v1146.gmlmyteam_id)){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,4);gml_Script_slog(__yy__v1146,_inst,yyfplus("1st seed. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};}else {if(yyfequal(gml_Script_s_get_team_id_by_seed(__yy__v1146,_inst,__yy__v1146.gmlmyconference,2),__yy__v1146.gmlmyteam_id)){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,3);gml_Script_slog(__yy__v1146,_inst,yyfplus("2nd seed. My rating is now ",
__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};}else {if(yyfequal(gml_Script_s_get_team_id_by_seed(__yy__v1146,_inst,__yy__v1146.gmlmyconference,3),__yy__v1146.gmlmyteam_id)){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,2);gml_Script_slog(__yy__v1146,_inst,yyfplus("3rd seed. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};}else {if(yyfequal(gml_Script_s_get_team_id_by_seed(__yy__v1146,_inst,__yy__v1146.gmlmyconference,4),__yy__v1146.gmlmyteam_id)){
{gml_Script_slog(__yy__v1146,_inst,yyfplus("4th seed. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};}else {{__yy__v1146.gmlcoach_rating=round(yyftime(__yy_gml_errCheck(__yy__v1146.gmlcoach_rating),0.5));gml_Script_slog(__yy__v1146,_inst,yyfplus("Unseeded. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};};};};};};};gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_PLAYGAME1");(g_yyPrePostObject__=__yy__v1146.gmlmatchcount,__yy__v1146.gmlmatchcount=(g_yyPrePostObject__ instanceof Long?__yy__v1146.gmlmatchcount.add(1):++__yy__v1146.gmlmatchcount),
g_yyPrePostObject__);var ___sw982___=argument0;var ___swc983___=-1;if(yyCompareVal(___sw982___,(-1),g_GMLMathEpsilon,false)==0){___swc983___=0;}else if(yyCompareVal(___sw982___,0,g_GMLMathEpsilon,false)==0){___swc983___=1;}else if(yyCompareVal(___sw982___,1,g_GMLMathEpsilon,false)==0){___swc983___=2;}switch(___swc983___){case 0:{ds_map_set(gmlfixture,"human_win","loss");__yy__v1146.gmlsuppress_difficulty=yyfplus(__yy__v1146.gmlsuppress_difficulty,1);if(yyfgreaterequal(__yy__v1146.gmlweek,yyInst(_inst,
_other,97).gmlfirst_week_playoffs)){gml_Script_s_update_history_playoffs(__yy__v1146,_inst,0);};if(yyGetBool(gml_Script_s_playoffs_12(__yy__v1146,_inst))){{if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,__yy__v1146.gmlfirst_week_playoffs)))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),3))))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,3);gml_Script_slog(__yy__v1146,_inst,yyfplus("Out in wild card round. My rating is now ",
__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));gml_Script_s_update_history_finish(__yy__v1146,_inst,1);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),4))))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),7))))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,4);gml_Script_slog(__yy__v1146,_inst,yyfplus("Out in divisional round. My rating is now ",
__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};}else {if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),8))))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),9))))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,5);gml_Script_slog(__yy__v1146,_inst,yyfplus("Out in wild championship round. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));
};}else {if(yyfequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),10))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,6);gml_Script_slog(__yy__v1146,_inst,yyfplus("Lost the superbowl. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};};};};};};}else {{if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,__yy__v1146.gmlfirst_week_playoffs)))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),
5))))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,3);gml_Script_slog(__yy__v1146,_inst,yyfplus("Out in wild card round. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));gml_Script_s_update_history_finish(__yy__v1146,_inst,1);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),6))))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),
9))))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,4);gml_Script_slog(__yy__v1146,_inst,yyfplus("Out in divisional round. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};}else {if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),10))))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),11))))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,
5);gml_Script_slog(__yy__v1146,_inst,yyfplus("Out in wild championship round. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};}else {if(yyfequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),12))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,6);gml_Script_slog(__yy__v1146,_inst,yyfplus("Lost the superbowl. My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));};};};};};};};break;}case 1:{ds_map_set(gmlfixture,
"human_win","tie");break;}case 2:{if(yyGetBool(global.gmlpoki)){poki_happy_time(1);};ds_map_set(gmlfixture,"human_win","win");__yy__v1146.gmlsuppress_difficulty=yyfminus(__yy__v1146.gmlsuppress_difficulty,1);if(yyfgreater(yyInst(_inst,_other,104).gmlteam_score[__yy_gml_array_check_index(yyInst(_inst,_other,104).gmlhuman_team,yyInst(_inst,_other,104).gmlteam_score)],yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlteam_score[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,104).gmlhuman_team)?1:0,
yyInst(_inst,_other,104).gmlteam_score)]),14))){__yy__v1146.gmlsuppress_difficulty=yyfminus(__yy__v1146.gmlsuppress_difficulty,1);};gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN1");var gmlcount=gml_Script_s_count_achievement(__yy__v1146,_inst,"ACH_WIN1");if(yyfgreaterequal(gmlcount,5)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN5");};if(yyfgreaterequal(gmlcount,10)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN10");};if(yyfgreaterequal(gmlcount,25)){
gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN25");};if(yyfgreaterequal(gmlcount,50)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN50");};if(yyfgreaterequal(gmlcount,100)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN100");};if(yyfgreaterequal(__yy__v1146.gmlweek,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){gml_Script_s_update_history_playoffs(__yy__v1146,_inst,1);};if(yyGetBool(gml_Script_s_playoffs_12(__yy__v1146,_inst))){{if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,
__yy__v1146.gmlfirst_week_playoffs)))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),3))))){{gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_PLAYOFF");gml_Script_s_update_history_finish(__yy__v1146,_inst,2);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),4))))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),
7))))){{gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_PLAYOFF");gml_Script_s_update_history_finish(__yy__v1146,_inst,3);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),8))))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),9))))){{var ___sw984___=yyInst(_inst,_other,97).gmlmyconference;var ___swc985___=-1;if(yyCompareVal(___sw984___,0,g_GMLMathEpsilon,false)==0){
___swc985___=0;}else if(yyCompareVal(___sw984___,1,g_GMLMathEpsilon,false)==0){___swc985___=1;}switch(___swc985___){case 0:{gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_AFC");break;}case 1:{gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_NFC");break;}};gml_Script_s_update_history_finish(__yy__v1146,_inst,4);};}else {if(yyfequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),10))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,
8);gml_Script_slog(__yy__v1146,_inst,yyfplus("Won the superbowl! My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));gml_Script_s_update_history_finish(__yy__v1146,_inst,5);gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_RETROBOWL1");var gmlcount=gml_Script_s_count_achievement(__yy__v1146,_inst,"ACH_WIN_RETROBOWL1");if(yyfequal(gmlcount,3)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_RETROBOWL3");};if(yyfequal(gmlcount,5)){gml_Script_s_complete_achievement(__yy__v1146,
_inst,"ACH_WIN_RETROBOWL5");};if(yyfequal(gmlcount,10)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_RETROBOWL10");};if(!yyGetBool(gml_Script_s_simming_action(__yy__v1146,_inst))){{if(!yyGetBool(yyInst(_inst,_other,104).gmlstarqb)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_RETROBOWL_NOSTARQB");};if(!yyGetBool(yyInst(_inst,_other,104).gmlstarplayer)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_RETROBOWL_NOSTAR");};};};gml_Script_s_check_repeat_retrobowls(__yy__v1146,
_inst);gml_Script_s_award_sb_rings(__yy__v1146,_inst);};};};};};};}else {{if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,__yy__v1146.gmlfirst_week_playoffs)))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),5))))){{gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_PLAYOFF");gml_Script_s_update_history_finish(__yy__v1146,_inst,2);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),
6))))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),9))))){{gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_PLAYOFF");gml_Script_s_update_history_finish(__yy__v1146,_inst,3);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),10))))&&(yyGetBool(yyflessequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),11))))){{var ___sw986___=yyInst(_inst,
_other,97).gmlmyconference;var ___swc987___=-1;if(yyCompareVal(___sw986___,0,g_GMLMathEpsilon,false)==0){___swc987___=0;}else if(yyCompareVal(___sw986___,1,g_GMLMathEpsilon,false)==0){___swc987___=1;}switch(___swc987___){case 0:{gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_AFC");break;}case 1:{gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_NFC");break;}};gml_Script_s_update_history_finish(__yy__v1146,_inst,4);};}else {if(yyfequal(__yy__v1146.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1146.gmlfirst_week_playoffs),
12))){{__yy__v1146.gmlcoach_rating=yyfplus(__yy__v1146.gmlcoach_rating,8);gml_Script_slog(__yy__v1146,_inst,yyfplus("Won the superbowl! My rating is now ",__yy_gml_errCheck(string(__yy__v1146.gmlcoach_rating))));gml_Script_s_update_history_finish(__yy__v1146,_inst,5);gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_RETROBOWL1");var gmlcount=gml_Script_s_count_achievement(__yy__v1146,_inst,"ACH_WIN_RETROBOWL1");if(yyfequal(gmlcount,3)){gml_Script_s_complete_achievement(__yy__v1146,_inst,
"ACH_WIN_RETROBOWL3");};if(yyfequal(gmlcount,5)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_RETROBOWL5");};if(yyfequal(gmlcount,10)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_WIN_RETROBOWL10");};if(!yyGetBool(gml_Script_s_simming_action(__yy__v1146,_inst))){{if(!yyGetBool(yyInst(_inst,_other,104).gmlstarqb)){gml_Script_s_complete_achievement(__yy__v1146,_inst,"ACH_RETROBOWL_NOSTARQB");};if(!yyGetBool(yyInst(_inst,_other,104).gmlstarplayer)){gml_Script_s_complete_achievement(__yy__v1146,
_inst,"ACH_RETROBOWL_NOSTAR");};};};gml_Script_s_check_repeat_retrobowls(__yy__v1146,_inst);gml_Script_s_award_sb_rings(__yy__v1146,_inst);};};};};};};};break;}};ds_map_set(gmlfixture,"weather",0);{var __yy__v1147=GetWithArray(117);for(var __yy__v1148 in __yy__v1147){if(!__yy__v1147.hasOwnProperty(__yy__v1148))continue;var __yy__v1149=__yy__v1147[__yy__v1148];ds_map_set(gmlfixture,"weather",__yy__v1149.gmltype);}};__yy__v1146.gmlcoach_rating=clamp(__yy__v1146.gmlcoach_rating,1,20);if(yyfgreater(gml_Script_s_count_achievement(__yy__v1146,
_inst,"ACH_WIN_RETROBOWL1"),0)){__yy__v1146.gmlsuppress_difficulty=clamp(__yy__v1146.gmlsuppress_difficulty,(-5),10);}else {__yy__v1146.gmlsuppress_difficulty=clamp(__yy__v1146.gmlsuppress_difficulty,(-1),10);};}}};gml_Script_s_save_backup(_inst,_other);gml_Script_s_update_music(_inst,_other);gml_Script_s_play(_inst,_other,1);}}function gml_GlobalScript_s_update_stats(_inst,_other){(_inst.gmls_update_stats=__yy_method(_inst,gml_Script_s_update_stats));}function gml_Script_s_update_stats(_inst,_other){
{{var __yy__v1150=GetWithArray(97);for(var __yy__v1151 in __yy__v1150){if(!__yy__v1150.hasOwnProperty(__yy__v1151))continue;var __yy__v1152=__yy__v1150[__yy__v1151];{gml_Script_slog(__yy__v1152,_inst,"s_update_stats");ds_list_shuffle(__yy__v1152.gmlroster);var gmlinjury_done=false;var gmloc=gml_Script_s_get_staff(__yy__v1152,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1152,_inst,101);if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{ds_map_set(gmloc,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmloc,
"xp_gain")),__yy_gml_errCheck(clamp(round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmloc,"attitude")),0.25)),1,25))));ds_map_set(gmldc,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmldc,"xp_gain")),__yy_gml_errCheck(clamp(round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmldc,"attitude")),0.25)),1,25))));};};var gmltotal_passing=0;var gmlqb_passing=0;var gmltotal_rushing=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1152.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1152.gmlroster,gmli);gml_Script_s_check_for_return_stats(__yy__v1152,_inst,gmlpmap);gml_Script_s_update_party_meter(__yy__v1152,_inst,gmlpmap);if(!yyGetBool(ds_map_exists(gmlpmap,"xp_dev"))){ds_map_set(gmlpmap,"xp_dev",random_range(0.75,1.5));};if((yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),0)))||(yyGetBool(gml_Script_s_player_benched(__yy__v1152,_inst,gmlpmap)))){continue;};if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(ds_map_find_value(gmlpmap,
"backup")))&&(yyGetBool((yyGetBool(!yyGetBool(ds_map_exists(gmlpmap,"kr"))))||(yyGetBool(!yyGetBool(ds_map_find_value(gmlpmap,"kr"))))))){{ds_map_set(gmlpmap,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(round(yyftime(10,__yy_gml_errCheck(real(ds_map_find_value(gmlpmap,"xp_dev"))))))));continue;};};ds_map_set_post(gmlpmap,"season_games",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_games")),1));ds_map_set(gmlpmap,"season_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"season_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts"))));ds_map_set(gmlpmap,"season_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_complete")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_complete"))));ds_map_set(gmlpmap,"season_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards"))));ds_map_set(gmlpmap,"season_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"season_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns"))));ds_map_set(gmlpmap,"season_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_fumbles")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles"))));ds_map_set(gmlpmap,"season_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_int")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_int"))));ds_map_set(gmlpmap,"season_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"season_sacks")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks"))));ds_map_set(gmlpmap,"season_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_tackles")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles"))));ds_map_set(gmlpmap,"season_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_rush_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts"))));ds_map_set(gmlpmap,"season_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"season_rush_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards"))));ds_map_set(gmlpmap,"season_rush_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_rush_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns"))));ds_map_set(gmlpmap,"season_return_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_return_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards"))));ds_map_set(gmlpmap,"season_return_tds",
yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_return_tds")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds"))));ds_map_set(gmlpmap,"season_return_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_return_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_attempts"))));if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{if(yyGetBool(ds_map_exists(gmlpmap,"stat_attempts_XP"))){ds_map_set(gmlpmap,"season_attempts_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"season_attempts_XP")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts_XP"))));};if(yyGetBool(ds_map_exists(gmlpmap,"stat_complete_XP"))){ds_map_set(gmlpmap,"season_complete_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_complete_XP")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_complete_XP"))));};};};if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){gmlqb_passing=ds_map_find_value(gmlpmap,"stat_yards");}else {if(yyfnotequal(ds_map_find_value(gmlpmap,"position"),
10)){gmltotal_passing=yyfplus(gmltotal_passing,ds_map_find_value(gmlpmap,"stat_yards"));};};gmltotal_rushing=yyfplus(gmltotal_rushing,ds_map_find_value(gmlpmap,"stat_rush_yards"));if(yyfgreater(ds_map_find_value(gmlpmap,"stat_longest"),ds_map_find_value(gmlpmap,"season_longest"))){ds_map_set(gmlpmap,"season_longest",ds_map_find_value(gmlpmap,"stat_longest"));};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_rush_longest"),ds_map_find_value(gmlpmap,"season_rush_longest"))){ds_map_set(gmlpmap,"season_rush_longest",
ds_map_find_value(gmlpmap,"stat_rush_longest"));};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_return_longest"),ds_map_find_value(gmlpmap,"season_return_longest"))){ds_map_set(gmlpmap,"season_return_longest",ds_map_find_value(gmlpmap,"stat_return_longest"));};ds_map_set_post(gmlpmap,"career_games",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_games")),1));ds_map_set(gmlpmap,"career_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_attempts"))));ds_map_set(gmlpmap,"career_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_complete")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_complete"))));ds_map_set(gmlpmap,"career_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards"))));ds_map_set(gmlpmap,"career_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_touchdowns"))));ds_map_set(gmlpmap,"career_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_fumbles")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles"))));ds_map_set(gmlpmap,"career_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_int")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_int"))));ds_map_set(gmlpmap,"career_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_sacks")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks"))));
ds_map_set(gmlpmap,"career_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_tackles")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles"))));ds_map_set(gmlpmap,"career_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_rush_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts"))));ds_map_set(gmlpmap,"career_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_rush_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_rush_yards"))));ds_map_set(gmlpmap,"career_rush_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_rush_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns"))));ds_map_set(gmlpmap,"career_return_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_return_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards"))));ds_map_set(gmlpmap,"career_return_tds",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_return_tds")),
__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds"))));ds_map_set(gmlpmap,"career_return_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_return_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_attempts"))));if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{if(yyGetBool(ds_map_exists(gmlpmap,"stat_attempts_XP"))){ds_map_set(gmlpmap,"career_attempts_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_attempts_XP")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_attempts_XP"))));};if(yyGetBool(ds_map_exists(gmlpmap,"stat_complete_XP"))){ds_map_set(gmlpmap,"career_complete_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_complete_XP")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_complete_XP"))));};};};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_longest"),ds_map_find_value(gmlpmap,"career_longest"))){ds_map_set(gmlpmap,"career_longest",ds_map_find_value(gmlpmap,"stat_longest"));};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_rush_longest"),
ds_map_find_value(gmlpmap,"career_rush_longest"))){ds_map_set(gmlpmap,"career_rush_longest",ds_map_find_value(gmlpmap,"stat_rush_longest"));};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_return_longest"),ds_map_find_value(gmlpmap,"career_return_longest"))){ds_map_set(gmlpmap,"career_return_longest",ds_map_find_value(gmlpmap,"stat_return_longest"));};if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestPassGame",ds_map_find_value(gmlpmap,"stat_yards"),
gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestPassSeason",ds_map_find_value(gmlpmap,"season_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestPassCareer",ds_map_find_value(gmlpmap,"career_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,
_inst,"ui_MostTDPassesGame",ds_map_find_value(gmlpmap,"stat_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTDPassesSeason",ds_map_find_value(gmlpmap,"season_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTDPassesCareer",ds_map_find_value(gmlpmap,"career_touchdowns"),
gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");if(!yyGetBool(gml_Script_s_simming_action(__yy__v1152,_inst))){{if(yyfgreater(ds_map_find_value(gmlpmap,"season_touchdowns"),50)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_TD_PASS50");};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"stat_attempts"),0)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"stat_attempts"),ds_map_find_value(gmlpmap,"stat_complete"))))){gml_Script_s_complete_achievement(__yy__v1152,
_inst,"ACH_GAME_COMPLETE_100");};};};};}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestFGDistGame",ds_map_find_value(gmlpmap,"stat_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestFGDistSeason",ds_map_find_value(gmlpmap,"season_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),
"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestFGDistCareer",ds_map_find_value(gmlpmap,"career_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostFGGame",ds_map_find_value(gmlpmap,"stat_complete"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostFGSeason",ds_map_find_value(gmlpmap,
"season_complete"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostFGCareer",ds_map_find_value(gmlpmap,"career_complete"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");};}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),4)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),3)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),2)))){{gml_Script_s_check_record(__yy__v1152,
_inst,"ui_BestRecGame",ds_map_find_value(gmlpmap,"stat_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestRecSeason",ds_map_find_value(gmlpmap,"season_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestRecCareer",ds_map_find_value(gmlpmap,"career_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,
_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTDRecGame",ds_map_find_value(gmlpmap,"stat_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTDRecSeason",ds_map_find_value(gmlpmap,"season_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTDRecCareer",
ds_map_find_value(gmlpmap,"career_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");};}else {if(yyfnotequal(ds_map_find_value(gmlpmap,"position"),5)){{gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTacklesGame",ds_map_find_value(gmlpmap,"stat_tackles"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTacklesSeason",ds_map_find_value(gmlpmap,
"season_tackles"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTacklesCareer",ds_map_find_value(gmlpmap,"career_tackles"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostSacksGame",ds_map_find_value(gmlpmap,"stat_sacks"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));
gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostSacksSeason",ds_map_find_value(gmlpmap,"season_sacks"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostSacksCareer",ds_map_find_value(gmlpmap,"career_sacks"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostIntGame",ds_map_find_value(gmlpmap,"stat_int"),gml_Script_s_get_player_name_for_record(__yy__v1152,
_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostIntSeason",ds_map_find_value(gmlpmap,"season_int"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostIntCareer",ds_map_find_value(gmlpmap,"career_int"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostFFGame",ds_map_find_value(gmlpmap,
"stat_fumbles"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostFFSeason",ds_map_find_value(gmlpmap,"season_fumbles"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostFFCareer",ds_map_find_value(gmlpmap,"career_fumbles"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");
};}else {{};};};};};gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestRushGame",ds_map_find_value(gmlpmap,"stat_rush_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestRushSeason",ds_map_find_value(gmlpmap,"season_rush_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_BestRushCareer",
ds_map_find_value(gmlpmap,"career_rush_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTDRushGame",ds_map_find_value(gmlpmap,"stat_rush_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTDRushSeason",ds_map_find_value(gmlpmap,"season_rush_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1152,
_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostTDRushCareer",ds_map_find_value(gmlpmap,"career_rush_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostReturnYardsGame",ds_map_find_value(gmlpmap,"stat_return_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1152,_inst));gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostReturnYardsSeason",
ds_map_find_value(gmlpmap,"season_return_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1152,_inst,"ui_MostReturnYardsCareer",ds_map_find_value(gmlpmap,"career_return_yards"),gml_Script_s_get_player_name_for_record(__yy__v1152,_inst,gmlpmap),"","");var gmlxp_lev=ds_map_find_value(gmlpmap,"xp_level");var gmlxp_g=yyftime(__yy_gml_errCheck(__yy__v1152.gmlfacility_training),2);var gmleffort=0;var ___sw990___=ds_map_find_value(gmlpmap,"position");
var ___swc991___=-1;if(yyCompareVal(___sw990___,1,g_GMLMathEpsilon,false)==0){___swc991___=0;}else if(yyCompareVal(___sw990___,2,g_GMLMathEpsilon,false)==0){___swc991___=1;}else if(yyCompareVal(___sw990___,4,g_GMLMathEpsilon,false)==0){___swc991___=2;}else if(yyCompareVal(___sw990___,3,g_GMLMathEpsilon,false)==0){___swc991___=3;}else if(yyCompareVal(___sw990___,10,g_GMLMathEpsilon,false)==0){___swc991___=4;}else if(yyCompareVal(___sw990___,5,g_GMLMathEpsilon,false)==0){___swc991___=5;}switch(___swc991___){
case 0:{gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),5),0.5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns")),5),0.5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),0.1));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards")),0.1));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_fumbles")),5));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_int")),2.5));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks")),2.5));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),100),0,10);gmleffort=yyfplus(gmleffort,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks")),2));break;
}case 1:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards")),0.1),3));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_yards")),0.1),2.5));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards")),0.1));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),50),0,10);break;}case 2:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_tackles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),0.1),2));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_return_yards")),0.1));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),50),0,10);break;}case 3:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_yards")),0.1),3));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),25),0,10);break;}case 4:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),0.4));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),50),0,10);break;}case 5:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),5));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks")),2.5));gmleffort=yyfplus(gmleffort,ds_map_find_value(gmlpmap,"stat_tackles"));break;}default :{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),5));gmlxp_g=yyfplus(gmlxp_g,
yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks")),2.5),2));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards")),0.1));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds")),5));gmleffort=yyfplus(gmleffort,ds_map_find_value(gmlpmap,"stat_tackles"));break;}};if((yyGetBool(yyfequal(ds_map_find_value(gmloc,
"trait"),7)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1152,_inst,gmlpmap)))){gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(gmlxp_lev),5));}else {if((yyGetBool(yyfequal(ds_map_find_value(gmldc,"trait"),7)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(__yy__v1152,_inst,gmlpmap))))){gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(gmlxp_lev),5));};};var gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1152,_inst,
gmlpmap))){gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_of;};if(yyfequal(gmltrainingreg,1)){gmlxp_g=yyftime(gmlxp_g,0.6);}else {if(yyfequal(gmltrainingreg,3)){gmlxp_g=yyftime(gmlxp_g,1.5);};};gmlxp_g=yyftime(gmlxp_g,real(ds_map_find_value(gmlpmap,"xp_dev")));gmlxp_g=clamp(gmlxp_g,0,yyftime(__yy_gml_errCheck(gmlxp_lev),200));ds_map_set(gmlpmap,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(round(gmlxp_g))));gmleffort=yyfplus(25,__yy_gml_errCheck(real(ds_map_find_value(gmlpmap,
"age"))));gmleffort=yyfplus(gmleffort,clamp(round(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlweek),0.6)),2,10));gmleffort=yyfplus(gmleffort,gml_Script_s_get_match_rating(__yy__v1152,_inst,gmlpmap));if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){gmleffort=yyftime(gmleffort,0.5);};ds_map_set(gmlpmap,"condition",clamp(round(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),__yy_gml_errCheck(gmleffort))),1,100));if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),
10)))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"stat_attempts"),1)))){continue;};if(!yyGetBool(gmlinjury_done)){gmlinjury_done=gml_Script_s_check_for_injury(__yy__v1152,_inst,gmlpmap);};}};if(!yyGetBool(gml_Script_s_simming_action(__yy__v1152,_inst))){{if(yyfgreaterequal(gmlqb_passing,200)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_PASS_200");};if(yyfgreaterequal(gmlqb_passing,300)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_PASS_300");};if(yyfgreaterequal(gmlqb_passing,
400)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_PASS_400");};if(yyfgreaterequal(gmlqb_passing,500)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_PASS_500");};if(yyfgreaterequal(gmltotal_passing,200)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_PASS_200");};if(yyfgreaterequal(gmltotal_passing,300)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_PASS_300");};if(yyfgreaterequal(gmltotal_passing,400)){gml_Script_s_complete_achievement(__yy__v1152,
_inst,"ACH_GAME_PASS_400");};if(yyfgreaterequal(gmltotal_passing,500)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_PASS_500");};if(yyfgreaterequal(gmltotal_rushing,50)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_RUSH_50");};if(yyfgreaterequal(gmltotal_rushing,100)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_RUSH_100");};if(yyfgreaterequal(gmltotal_rushing,150)){gml_Script_s_complete_achievement(__yy__v1152,_inst,"ACH_GAME_RUSH_150");};};};}
}};}}function gml_GlobalScript_s_convert_scrimmage_to_goal_distance(_inst,_other){(_inst.gmls_convert_scrimmage_to_goal_distance=__yy_method(_inst,gml_Script_s_convert_scrimmage_to_goal_distance));}function gml_Script_s_convert_scrimmage_to_goal_distance(_inst,_other){{{var __yy__v1153=GetWithArray(104);for(var __yy__v1154 in __yy__v1153){if(!__yy__v1153.hasOwnProperty(__yy__v1154))continue;var __yy__v1155=__yy__v1153[__yy__v1154];return yyfplus(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1155.gmlscrimmage))),
50);}};}}function gml_GlobalScript_s_kick_off(_inst,_other){(_inst.gmls_kick_off=__yy_method(_inst,gml_Script_s_kick_off));}function gml_Script_s_kick_off(_inst,_other){{gml_Script_slog(_inst,_other,"s_kick_off");{var __yy__v1156=GetWithArray(104);for(var __yy__v1157 in __yy__v1156){if(!__yy__v1156.hasOwnProperty(__yy__v1157))continue;var __yy__v1158=__yy__v1156[__yy__v1157];{__yy__v1158.gmlcomm_txt=string_replace(gml_Script_s_str(__yy__v1158,_inst,"comm_stage_KickOff"),"$teamname",__yy__v1158.gmlteam_name[__yy_gml_array_check_index(__yy__v1158.gmlpossession,
__yy__v1158.gmlteam_name)]);__yy__v1158.gmldown=1;__yy__v1158.gmlyards=10;__yy__v1158.gmlscrimmage=(-15);var gmlko=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_kickoffs");if(yyGetBool(global.gmlexhibition)){gmlko=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_kickoffs");};if((yyGetBool(gmlko))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(__yy__v1158,_inst))))&&(yyGetBool((yyGetBool(yyfnotequal(__yy__v1158.gmlpossession,
yyInst(_inst,_other,97).gmlplayerteamindex)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))))){{__yy__v1158.gmldown=99;__yy__v1158.gmlstate=2;__yy__v1158.gmllast_play=1;__yy__v1158.gmldrives=yyfplus(__yy__v1158.gmldrives,1);return;};};if(yyfequal(__yy__v1158.gmlpossession,__yy__v1158.gmlhuman_team)){{var gmlkk=gml_Script_s_get_player_by_position(__yy__v1158,_inst,10,1);if(yyGetBool(gmlkk)){{__yy__v1158.gmlcomm_txt=string_replace(gml_Script_s_str(__yy__v1158,_inst,"comm_stage_KickOffPlayer"),
"$teamname",__yy__v1158.gmlteam_name[__yy_gml_array_check_index(__yy__v1158.gmlpossession,__yy__v1158.gmlteam_name)]);__yy__v1158.gmlcomm_txt=string_replace(__yy__v1158.gmlcomm_txt,"$playername",ds_map_find_value(gmlkk,"lname"));__yy__v1158.gmlscrimmage=yyfplus(yyfplus(25,__yy_gml_errCheck(gml_Script_s_get_attribute(__yy__v1158,_inst,gmlkk,"strength"))),__yy_gml_errCheck(gml_Script_s_get_attribute(__yy__v1158,_inst,gmlkk,"skill")));};}else {__yy__v1158.gmlscrimmage=irandom_range(20,25);};};}else {
{__yy__v1158.gmlscrimmage=yyfplus(__yy__v1158.gmlscrimmage,irandom_range(45,70));if(yyfgreater(__yy__v1158.gmlscrimmage,40)){__yy__v1158.gmlscrimmage=25;};};};gml_Script_s_subtract_time(__yy__v1158,_inst,3,5,"COMM_STAGE_KICKOFF");gml_Script_s_change_possession(__yy__v1158,_inst);__yy__v1158.gmllast_play=1;}}};}}function gml_GlobalScript_s_punt(_inst,_other){(_inst.gmls_punt=__yy_method(_inst,gml_Script_s_punt));}function gml_Script_s_punt(_inst,_other){{gml_Script_slog(_inst,_other,"s_punt");_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,
irandom_range(40,60));if(yyfgreater(_inst.gmlscrimmage,49)){_inst.gmlscrimmage=25;};_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_Punt"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);gml_Script_s_sound_kick(_inst,_other);gml_Script_s_subtract_time(_inst,_other,5,10,"COMM_STAGE_PUNT");gml_Script_s_change_possession(_inst,_other);_inst.gmllast_play=5;}}function gml_GlobalScript_s_change_possession(_inst,_other){(_inst.gmls_change_possession=__yy_method(_inst,
gml_Script_s_change_possession));}function gml_Script_s_change_possession(_inst,_other){{gml_Script_slog(_inst,_other,"s_change_possession");{var __yy__v1159=GetWithArray(104);for(var __yy__v1160 in __yy__v1159){if(!__yy__v1159.hasOwnProperty(__yy__v1160))continue;var __yy__v1161=__yy__v1159[__yy__v1160];{__yy__v1161.gmlscorer="";__yy__v1161.gmldown=1;__yy__v1161.gmlyards=10;__yy__v1161.gmlscrimmage=__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1161.gmlscrimmage));__yy__v1161.gmlpossession=!yyGetBool(__yy__v1161.gmlpossession);
__yy__v1161.gmllast_play=__yy__v1161.gmlcomm_stage;__yy__v1161.gmlcomm_stage=2;__yy__v1161.gmlphase=0;__yy__v1161.gmldrives=yyfplus(__yy__v1161.gmldrives,1);gml_Script_slog(__yy__v1161,_inst,yyfplus("scrimmage = ",__yy_gml_errCheck(string(__yy__v1161.gmlscrimmage))));}}};}}function gml_GlobalScript_s_tackle_failure(_inst,_other){(_inst.gmls_tackle_failure=__yy_method(_inst,gml_Script_s_tackle_failure));}function gml_Script_s_tackle_failure(_inst,_other){{if(yyGetBool(_inst.gmlcomm_defender)){{var ___sw994___=ds_map_find_value(_inst.gmlcomm_defender,
"position");var ___swc995___=-1;if(yyCompareVal(___sw994___,6,g_GMLMathEpsilon,false)==0){___swc995___=0;}else if(yyCompareVal(___sw994___,7,g_GMLMathEpsilon,false)==0){___swc995___=1;}else if(yyCompareVal(___sw994___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw994___,8,g_GMLMathEpsilon,false)==0){___swc995___=2;}switch(___swc995___){case 0:{ds_map_set(_inst.gmlcomm_defender,"stat_tackles",yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),4));break;}case 1:{ds_map_set(_inst.gmlcomm_defender,
"stat_tackles",yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),3));break;}case 2:{ds_map_set(_inst.gmlcomm_defender,"stat_tackles",yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),2));break;}};if(yyfless(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles"),0)){ds_map_set(_inst.gmlcomm_defender,"stat_tackles",0);};};};}}function gml_GlobalScript_s_last_secs_of_half(_inst,_other,argument0){(_inst.gmls_last_secs_of_half=__yy_method(_inst,
gml_Script_s_last_secs_of_half));(_inst.gmls_seconds_remaining=__yy_method(_inst,gml_Script_s_seconds_remaining));}function gml_Script_s_last_secs_of_half(_inst,_other,argument0){{{var __yy__v1162=GetWithArray(104);for(var __yy__v1163 in __yy__v1162){if(!__yy__v1162.hasOwnProperty(__yy__v1163))continue;var __yy__v1164=__yy__v1162[__yy__v1163];{var gmlrsecs=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1164.gmlminutes),60)),__yy_gml_errCheck(__yy__v1164.gmlseconds));if((yyGetBool((yyGetBool(yyfequal(__yy__v1164.gmlquarter,
2)))||(yyGetBool(yyfequal(__yy__v1164.gmlquarter,4)))||(yyGetBool(yyfequal(__yy__v1164.gmlquarter,5)))))&&(yyGetBool(yyflessequal(gmlrsecs,argument0)))){return true;};}}};return false;}}function gml_Script_s_seconds_remaining(_inst,_other){{{var __yy__v1165=GetWithArray(104);for(var __yy__v1166 in __yy__v1165){if(!__yy__v1165.hasOwnProperty(__yy__v1166))continue;var __yy__v1167=__yy__v1165[__yy__v1166];{var gmlrsecs=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1167.gmlminutes),60)),__yy_gml_errCheck(__yy__v1167.gmlseconds));
if((yyGetBool(yyfequal(__yy__v1167.gmlquarter,1)))||(yyGetBool(yyfequal(__yy__v1167.gmlquarter,3)))){gmlrsecs=yyfplus(gmlrsecs,yyftime(__yy_gml_errCheck(yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlop_matchlength))),60));};return gmlrsecs;}}};}}function gml_GlobalScript_s_reset_wind(_inst,_other){(_inst.gmls_reset_wind=__yy_method(_inst,gml_Script_s_reset_wind));}function gml_Script_s_reset_wind(_inst,_other){{{var __yy__v1168=GetWithArray(117);for(var __yy__v1169 in __yy__v1168){if(!__yy__v1168.hasOwnProperty(__yy__v1169))continue;
var __yy__v1170=__yy__v1168[__yy__v1169];{__yy__v1170.gmlwind_force=0;if(yyfequal(__yy__v1170.gmltype,2)){{__yy__v1170.gmlwind=0;return;};};if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,1)){{__yy__v1170.gmlwind=5;if(yyfequal(yyInst(_inst,_other,104).gmlpractice_success,0)){__yy__v1170.gmlwind=0;};};};}}};}}function gml_GlobalScript_s_change_wind(_inst,_other){(_inst.gmls_change_wind=__yy_method(_inst,gml_Script_s_change_wind));}function gml_Script_s_change_wind(_inst,_other){{{var __yy__v1171=GetWithArray(117);
for(var __yy__v1172 in __yy__v1171){if(!__yy__v1171.hasOwnProperty(__yy__v1172))continue;var __yy__v1173=__yy__v1171[__yy__v1172];{if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,1)){return;};if(yyfequal(__yy__v1173.gmltype,2)){return;};var ___sw998___=irandom(4);var ___swc999___=-1;if(yyCompareVal(___sw998___,0,g_GMLMathEpsilon,false)==0){___swc999___=0;}else if(yyCompareVal(___sw998___,1,g_GMLMathEpsilon,false)==0){___swc999___=1;}else if(yyCompareVal(___sw998___,2,g_GMLMathEpsilon,false)==0){___swc999___=2;
}else if(yyCompareVal(___sw998___,3,g_GMLMathEpsilon,false)==0){___swc999___=3;}switch(___swc999___){case 0:{__yy__v1173.gmlwind=clamp(yyfplus(__yy_gml_errCheck(__yy__v1173.gmlwind),1),0,9);break;}case 1:{__yy__v1173.gmlwind=clamp(yyfminus(__yy_gml_errCheck(__yy__v1173.gmlwind),1),0,9);break;}case 2:{__yy__v1173.gmlwind_dir=yyfplus(__yy__v1173.gmlwind_dir,1);break;}case 3:{__yy__v1173.gmlwind_dir=yyfminus(__yy__v1173.gmlwind_dir,1);break;}default :{break;}};__yy__v1173.gmlwind=clamp(__yy__v1173.gmlwind,
0,9);if(yyfgreater(__yy__v1173.gmlwind_dir,7)){__yy__v1173.gmlwind_dir=0;};if(yyfless(__yy__v1173.gmlwind_dir,0)){__yy__v1173.gmlwind_dir=7;};}}};}}function gml_GlobalScript_s_force_quit(_inst,_other){(_inst.gmls_force_quit=__yy_method(_inst,gml_Script_s_force_quit));}function gml_Script_s_force_quit(_inst,_other){{{var __yy__v1174=GetWithArray(104);for(var __yy__v1175 in __yy__v1174){if(!__yy__v1174.hasOwnProperty(__yy__v1175))continue;var __yy__v1176=__yy__v1174[__yy__v1175];{show_debug_message("force quit match");
if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{room_goto(14);return;};};__yy__v1176.gmlteam_score=__yy_gml_array_check(__yy__v1176.gmlteam_score,244883275);__yy__v1176.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1176.gmlhuman_team)]=yyfplus(__yy__v1176.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1176.gmlhuman_team)],3);if(yyfgreater(__yy__v1176.gmlteam_score[__yy_gml_array_check_index(__yy__v1176.gmlhuman_team,__yy__v1176.gmlteam_score)],__yy__v1176.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1176.gmlhuman_team)?1:0,
__yy__v1176.gmlteam_score)])){gml_Script_s_end_match(__yy__v1176,_inst,1);}else {if(yyfless(__yy__v1176.gmlteam_score[__yy_gml_array_check_index(__yy__v1176.gmlhuman_team,__yy__v1176.gmlteam_score)],__yy__v1176.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1176.gmlhuman_team)?1:0,__yy__v1176.gmlteam_score)])){gml_Script_s_end_match(__yy__v1176,_inst,(-1));}else {gml_Script_s_end_match(__yy__v1176,_inst,0);};};}}};}}function gml_GlobalScript_s_do_audible(_inst,_other){(_inst.gmls_do_audible=__yy_method(_inst,
gml_Script_s_do_audible));}function gml_Script_s_do_audible(_inst,_other){{gml_Script_slog(_inst,_other,"s_do_audible");mouse_clear(1);{var __yy__v1177=GetWithArray(104);for(var __yy__v1178 in __yy__v1177){if(!__yy__v1177.hasOwnProperty(__yy__v1178))continue;var __yy__v1179=__yy__v1177[__yy__v1178];{if(yyfless(gml_Script_s_count_audibles(__yy__v1179,_inst),1)){{{var __yy__v1180=GetWithArray(global.gmlmaster_ball);for(var __yy__v1181 in __yy__v1180){if(!__yy__v1180.hasOwnProperty(__yy__v1181))continue;var __yy__v1182=__yy__v1180[__yy__v1181];
{{var __yy__v1183=GetWithArray(__yy__v1182.gmlholder);for(var __yy__v1184 in __yy__v1183){if(!__yy__v1183.hasOwnProperty(__yy__v1184))continue;var __yy__v1185=__yy__v1183[__yy__v1184];gml_Script_s_fieldtxt(__yy__v1185,__yy__v1182,yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1185,__yy__v1182,"match_AudiblesNone")),"!"));}};}}};};}else {{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){{audio_play_sound(5,1,false);audio_play_sound(15,1,false);};};gml_Script_s_update_audibles(__yy__v1179,
_inst,(-1));gml_Script_s_set_up_play(__yy__v1179,_inst,true);{var __yy__v1186=GetWithArray(106);for(var __yy__v1187 in __yy__v1186){if(!__yy__v1186.hasOwnProperty(__yy__v1187))continue;var __yy__v1188=__yy__v1186[__yy__v1187];if(yyfequal(__yy__v1188.gmlposition,1)){gml_Script_s_fieldtxt(__yy__v1188,__yy__v1179,yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1188,__yy__v1179,"match_Audible")),"!"));};}};};};}}};}}function gml_GlobalScript_s_do_timeout(_inst,_other){(_inst.gmls_do_timeout=__yy_method(_inst,
gml_Script_s_do_timeout));}function gml_Script_s_do_timeout(_inst,_other){{gml_Script_slog(_inst,_other,"s_do_timeout");mouse_clear(1);{var __yy__v1189=GetWithArray(104);for(var __yy__v1190 in __yy__v1189){if(!__yy__v1189.hasOwnProperty(__yy__v1190))continue;var __yy__v1191=__yy__v1189[__yy__v1190];{if(yyGetBool(gml_Script_s_count_timeouts(__yy__v1191,_inst))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){{audio_play_sound(5,1,false);audio_play_sound(16,1,false);
};};gml_Script_s_update_timeouts(__yy__v1191,_inst,(-1));__yy__v1191.gmltimeout_called=true;{var __yy__v1192=GetWithArray(110);for(var __yy__v1193 in __yy__v1192){if(!__yy__v1192.hasOwnProperty(__yy__v1193))continue;var __yy__v1194=__yy__v1192[__yy__v1193];gml_Script_s_fieldtxt(__yy__v1194,__yy__v1191,yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1194,__yy__v1191,"match_TimeOut")),"!"));}};instance_destroy(__yy__v1191,122);};};}}};}}function gml_GlobalScript_s_check_win_after_turnover(_inst,_other){
(_inst.gmls_check_win_after_turnover=__yy_method(_inst,gml_Script_s_check_win_after_turnover));(_inst.gmls_both_teams_had_possession=__yy_method(_inst,gml_Script_s_both_teams_had_possession));}function gml_Script_s_check_win_after_turnover(_inst,_other){{gml_Script_slog(_inst,_other,"s_check_win_after_turnover:");gml_Script_slog(_inst,_other,yyfplus("quarter = ",__yy_gml_errCheck(string(_inst.gmlquarter))));gml_Script_slog(_inst,_other,yyfplus("drives = ",__yy_gml_errCheck(string(_inst.gmldrives))));
gml_Script_slog(_inst,_other,yyfplus("Team 0 score = ",__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)]))));gml_Script_slog(_inst,_other,yyfplus("Team 1 score = ",__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]))));if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfgreater(_inst.gmldrives,1)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(1,
_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){{gml_Script_slog(_inst,_other,"winning after turnover");_inst.gmlcomm_stage=17;gml_Script_s_sound_audience_fg(_inst,_other);};};}}function gml_Script_s_both_teams_had_possession(_inst,_other){{gml_Script_slog(_inst,_other,"s_both_teams_had_possession:");gml_Script_slog(_inst,_other,yyfplus("week = ",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlweek))));gml_Script_slog(_inst,_other,yyfplus("last_week_regular = ",
__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmllast_week_regular))));gml_Script_slog(_inst,_other,yyfplus("Team 0 had possession = ",__yy_gml_errCheck(string(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(0,_inst.gmlhad_ot_possession)]))));gml_Script_slog(_inst,_other,yyfplus("Team 1 had possession = ",__yy_gml_errCheck(string(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(1,_inst.gmlhad_ot_possession)]))));if((yyGetBool(yyflessequal(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,
_other,97).gmllast_week_regular)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){{gml_Script_slog(_inst,_other,"regular season game: return true");return true;};}else {if((yyGetBool(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(0,_inst.gmlhad_ot_possession)]))&&(yyGetBool(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(1,_inst.gmlhad_ot_possession)]))){{gml_Script_slog(_inst,_other,"play off game: return true");return true;};}else {{gml_Script_slog(_inst,_other,"return false");return false;
};};};}}function gml_GlobalScript_s_clear_clock(_inst,_other){(_inst.gmls_clear_clock=__yy_method(_inst,gml_Script_s_clear_clock));}function gml_Script_s_clear_clock(_inst,_other){{{var __yy__v1195=GetWithArray(104);for(var __yy__v1196 in __yy__v1195){if(!__yy__v1195.hasOwnProperty(__yy__v1196))continue;var __yy__v1197=__yy__v1195[__yy__v1196];{while(yyfgreater(__yy__v1197.gmltime_subtract,0)){{(g_yyPrePostObject__=__yy__v1197.gmltime_subtract,__yy__v1197.gmltime_subtract=(g_yyPrePostObject__ instanceof Long?__yy__v1197.gmltime_subtract.subtract(1):--__yy__v1197.gmltime_subtract),
g_yyPrePostObject__);(g_yyPrePostObject__=__yy__v1197.gmlseconds,__yy__v1197.gmlseconds=(g_yyPrePostObject__ instanceof Long?__yy__v1197.gmlseconds.subtract(1):--__yy__v1197.gmlseconds),g_yyPrePostObject__);if(yyfless(__yy__v1197.gmlseconds,0)){{(g_yyPrePostObject__=__yy__v1197.gmlminutes,__yy__v1197.gmlminutes=(g_yyPrePostObject__ instanceof Long?__yy__v1197.gmlminutes.subtract(1):--__yy__v1197.gmlminutes),g_yyPrePostObject__);__yy__v1197.gmlseconds=yyfplus(__yy__v1197.gmlseconds,60);if(yyfless(__yy__v1197.gmlminutes,
0)){{__yy__v1197.gmlminutes=0;__yy__v1197.gmlseconds=0;};};};};}};}}};}}function gml_GlobalScript_s_fieldtxt(_inst,_other){(_inst.gmls_fieldtxt=__yy_method(_inst,gml_Script_s_fieldtxt));(_inst.gmls_fieldtxt_yards=__yy_method(_inst,gml_Script_s_fieldtxt_yards));(_inst.gmls_fieldimg=__yy_method(_inst,gml_Script_s_fieldimg));}function gml_Script_s_fieldtxt(_inst,_other,argument0){{{var __yy__v1198=GetWithArray(113);for(var __yy__v1199 in __yy__v1198){if(!__yy__v1198.hasOwnProperty(__yy__v1199))continue;var __yy__v1200=__yy__v1198[__yy__v1199];
{if(yyGetBool(__yy__v1200.gmlimg)){return;}else {instance_destroy(__yy__v1200);};}}};var gmlft=instance_create_layer(_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),48),"Text",113);yyInst(_inst,_other,gmlft).depth=(-10000);yyInst(_inst,_other,gmlft).gmltxt=argument0;}}function gml_Script_s_fieldtxt_yards(_inst,_other,argument0){{var gmlyds=round(argument0);if(yyfequal(gmlyds,0)){return;};{var __yy__v1201=GetWithArray(113);for(var __yy__v1202 in __yy__v1201){if(!__yy__v1201.hasOwnProperty(__yy__v1202))continue;
var __yy__v1203=__yy__v1201[__yy__v1202];{if(yyfgreater(string_count(gml_Script_s_str(__yy__v1203,_inst,"match_Recovered"),__yy__v1203.gmltxt),0)){return;};if(!yyGetBool(__yy__v1203.gmlimg)){instance_destroy(__yy__v1203);};}}};var gmlft=instance_create_layer(_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),32),"Text",113);yyInst(_inst,_other,gmlft).depth=(-10000);yyInst(_inst,_other,gmlft).gmltxt=yyfplus(__yy_gml_errCheck(string(gmlyds)),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_yards")));}}
function gml_Script_s_fieldimg(_inst,_other,argument0,argument1,argument2){{var gmlft=instance_create_layer(_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),48),"Text",113);yyInst(_inst,_other,gmlft).depth=(-10000);yyInst(_inst,_other,gmlft).gmlimg=argument0;yyInst(_inst,_other,gmlft).gmlsubimg=argument1;yyInst(_inst,_other,gmlft).gmlimgscl=argument2;}}function gml_GlobalScript_s_fieldtxt_yards(_inst,_other){}function gml_GlobalScript_s_sound_audience_idle(_inst,_other){(_inst.gmls_sound_audience_idle=__yy_method(_inst,
gml_Script_s_sound_audience_idle));}function gml_Script_s_sound_audience_idle(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice))){return;};if(yyGetBool(audio_is_playing(18))){audio_sound_gain(18,0.2,1000);}else {{var gmlsnd=audio_play_sound(18,1,true);audio_sound_gain(gmlsnd,0,0);audio_sound_gain(gmlsnd,0.2,1000);audio_sound_pitch(gmlsnd,1);};};}}function gml_GlobalScript_s_create_match_message(_inst,
_other){(_inst.gmls_create_match_message=__yy_method(_inst,gml_Script_s_create_match_message));(_inst.gmls_create_head2head_message=__yy_method(_inst,gml_Script_s_create_head2head_message));}function gml_Script_s_create_match_message(_inst,_other,argument0){{{var __yy__v1204=GetWithArray(112);for(var __yy__v1205 in __yy__v1204){if(!__yy__v1204.hasOwnProperty(__yy__v1205))continue;var __yy__v1206=__yy__v1204[__yy__v1205];instance_destroy(__yy__v1206);}};var gmltxt="";var gmlsub_txt="";var gmlflash=false;var gmlcol=16777215;
var ___sw1002___=argument0;var ___swc1003___=-1;if(yyCompareVal(___sw1002___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1002___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1002___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1002___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1002___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1002___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1002___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1002___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1002___,
19,g_GMLMathEpsilon,false)==0){___swc1003___=0;}else if(yyCompareVal(___sw1002___,6,g_GMLMathEpsilon,false)==0){___swc1003___=1;}else if(yyCompareVal(___sw1002___,7,g_GMLMathEpsilon,false)==0){___swc1003___=2;}else if(yyCompareVal(___sw1002___,8,g_GMLMathEpsilon,false)==0){___swc1003___=3;}else if(yyCompareVal(___sw1002___,9,g_GMLMathEpsilon,false)==0){___swc1003___=4;}else if(yyCompareVal(___sw1002___,10,g_GMLMathEpsilon,false)==0){___swc1003___=5;}else if(yyCompareVal(___sw1002___,11,g_GMLMathEpsilon,
false)==0){___swc1003___=6;}else if(yyCompareVal(___sw1002___,12,g_GMLMathEpsilon,false)==0){___swc1003___=7;}else if(yyCompareVal(___sw1002___,14,g_GMLMathEpsilon,false)==0){___swc1003___=8;}else if(yyCompareVal(___sw1002___,15,g_GMLMathEpsilon,false)==0){___swc1003___=9;}else if(yyCompareVal(___sw1002___,16,g_GMLMathEpsilon,false)==0){___swc1003___=10;}else if(yyCompareVal(___sw1002___,17,g_GMLMathEpsilon,false)==0){___swc1003___=11;}else if(yyCompareVal(___sw1002___,20,g_GMLMathEpsilon,false)==0){___swc1003___=12;
}switch(___swc1003___){case 0:{return;break;}case 1:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Touchdown")),"!!!");gmlflash=true;gmlcol=65535;if(yyfequal(yyInst(_inst,_other,104).gmldown,6)){{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Scored")),"!!!");};};if(yyGetBool(global.gmlpoki)){{{var __yy__v1207=GetWithArray(104);for(var __yy__v1208 in __yy__v1207){if(!__yy__v1207.hasOwnProperty(__yy__v1208))continue;var __yy__v1209=__yy__v1207[__yy__v1208];
if(yyfequal(__yy__v1209.gmlpossession,__yy__v1209.gmlhuman_team)){poki_happy_time(0.75);};}};};};gmlsub_txt=yyInst(_inst,_other,104).gmlscorer;if(yyfgreaterequal(yyInst(_inst,_other,104).gmldist_td,1)){gmlsub_txt=yyfplus(gmlsub_txt,yyfplus(yyfplus(yyfplus(" ",__yy_gml_errCheck(string(yyInst(_inst,_other,104).gmldist_td)))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_yards"))));};break;}case 2:{gmltxt=gml_Script_s_str(_inst,_other,"match_Incomplete");gmlflash=false;gmlcol=16777215;break;
}case 3:{gmltxt=gml_Script_s_str(_inst,_other,"match_OutOfBounds");gmlflash=false;gmlcol=16777215;break;}case 4:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Interception")),"!");gmlflash=true;gmlcol=255;break;}case 5:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Turnover")),"!");gmlflash=true;gmlcol=255;break;}case 6:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Sacked")),"!");gmlflash=true;gmlcol=255;break;}case 7:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"match_Safety")),"!");gmlflash=true;gmlcol=255;break;}case 8:{if(yyGetBool(global.gmlpoki)){{{var __yy__v1210=GetWithArray(104);for(var __yy__v1211 in __yy__v1210){if(!__yy__v1210.hasOwnProperty(__yy__v1211))continue;var __yy__v1212=__yy__v1210[__yy__v1211];if(yyfequal(__yy__v1212.gmlpossession,__yy__v1212.gmlhuman_team)){poki_happy_time(0.5);};}};};};gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_FG_Good")),"!");gmlflash=true;gmlcol=65535;{var __yy__v1213=GetWithArray(104);
for(var __yy__v1214 in __yy__v1213){if(!__yy__v1213.hasOwnProperty(__yy__v1214))continue;var __yy__v1215=__yy__v1213[__yy__v1214];{if(yyGetBool(__yy__v1215.gmlkicking)){{gmlsub_txt=yyfplus(yyfplus(__yy_gml_errCheck(string(__yy__v1215.gmlkick_dist))," "),__yy_gml_errCheck(gml_Script_s_str(__yy__v1215,_inst,"tla_yards")));var gmlkk=gml_Script_s_get_kicker(__yy__v1215,_inst);if(yyGetBool(gmlkk)){gmlsub_txt=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlkk).gmlpos_name2)," "),__yy_gml_errCheck(gmlsub_txt));
};};};}}};break;}case 9:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_FG_Bad")),"!");gmlflash=true;gmlcol=255;break;}case 10:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Success")),"!");gmlflash=true;gmlcol=65535;if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,4)){{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Hit")),"!");yyInst(_inst,_other,104).gmlpractice_success=yyfplus(yyInst(_inst,_other,104).gmlpractice_success,1);
};}else {if(yyfgreater(yyInst(_inst,_other,104).gmlpractice_success,0)){yyInst(_inst,_other,104).gmlpractice_success=(-1);}else {yyInst(_inst,_other,104).gmlpractice_success=yyInst(_inst,_other,104).gmlpractice_count;};};if(yyGetBool(global.gmlpoki)){{{var __yy__v1216=GetWithArray(104);for(var __yy__v1217 in __yy__v1216){if(!__yy__v1216.hasOwnProperty(__yy__v1217))continue;var __yy__v1218=__yy__v1216[__yy__v1217];if(yyfequal(__yy__v1218.gmlpossession,__yy__v1218.gmlhuman_team)){poki_happy_time(0.5);};}
};};};break;}case 11:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Fail")),"!");if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,4)){{yyInst(_inst,_other,104).gmlpractice_success=max(0,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlpractice_success),1));gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Miss")),"!");};};gmlflash=true;gmlcol=255;break;}case 12:{gmltxt=gml_Script_s_str(_inst,_other,"match_TouchBack");gmlflash=false;gmlcol=16777215;
break;}};var gmlmsg=instance_create_layer(0,0,"Text",112);yyInst(_inst,_other,gmlmsg).gmltext=string_upper(gmltxt);yyInst(_inst,_other,gmlmsg).gmlsub_text=string_upper(gmlsub_txt);yyInst(_inst,_other,gmlmsg).gmlflash=gmlflash;yyInst(_inst,_other,gmlmsg).gmlcol=gmlcol;yyInst(_inst,_other,gmlmsg).alarm=__yy_gml_array_check(yyInst(_inst,_other,gmlmsg).alarm,2633220098);yyInst(_inst,_other,gmlmsg).alarm[__yy_gml_array_check_index_set(0)]=100;yyInst(_inst,_other,104).gmltap_msg="";gml_Script_slog(_inst,
_other,gmltxt);}}function gml_Script_s_create_head2head_message(_inst,_other){{gml_Script_slog(_inst,_other,"s_create_head2head_message");if((yyGetBool(!yyGetBool(global.gmlexhibition)))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){return;};{var __yy__v1219=GetWithArray(79);for(var __yy__v1220 in __yy__v1219){if(!__yy__v1219.hasOwnProperty(__yy__v1220))continue;var __yy__v1221=__yy__v1219[__yy__v1220];return;}};var gmlps=0;{var __yy__v1222=GetWithArray(104);for(var __yy__v1223 in __yy__v1222){
if(!__yy__v1222.hasOwnProperty(__yy__v1223))continue;var __yy__v1224=__yy__v1222[__yy__v1223];{gmlps=__yy__v1224.gmlpossession;if(yyGetBool(gml_Script_s_is_kickoff(__yy__v1224,_inst,0))){gmlps=!yyGetBool(gmlps);};if(yyfequal(gmlps,__yy__v1224.gmllast_h2h_possession)){return;};__yy__v1224.gmllast_h2h_possession=gmlps;}}};var gmlmsg=instance_create_layer(0,0,"Text",112);gml_Script_s_sound_training_success(_inst,_other,1);yyInst(_inst,_other,gmlmsg).gmltext=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"head2head_Player"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmlps),1)))));yyInst(_inst,_other,gmlmsg).gmlsub_text=_inst.gmlteam_name[__yy_gml_array_check_index(gmlps,_inst.gmlteam_name)];yyInst(_inst,_other,gmlmsg).gmlflash=false;yyInst(_inst,_other,gmlmsg).gmlcol=65535;yyInst(_inst,_other,gmlmsg).alarm=__yy_gml_array_check(yyInst(_inst,_other,gmlmsg).alarm,2633220098);yyInst(_inst,_other,gmlmsg).alarm[__yy_gml_array_check_index_set(0)]=200;yyInst(_inst,_other,gmlmsg).gmlty=yyftime(__yy_gml_errCheck(yyInst(_inst,
_other,gmlmsg).gmlh),0.5);yyInst(_inst,_other,104).gmltap_msg="";gml_Script_slog(_inst,_other,yyInst(_inst,_other,gmlmsg).gmltext);gml_Script_slog(_inst,_other,yyInst(_inst,_other,gmlmsg).gmlsub_text);}}function gml_GlobalScript_s_draw_commentary(_inst,_other){(_inst.gmls_draw_commentary=__yy_method(_inst,gml_Script_s_draw_commentary));}function gml_Script_s_draw_commentary(_inst,_other){{var gmlbuf=8;if(yyfequal(_inst.gmlstate,2)){{_inst.gmlcomm_txt="";if((yyGetBool(instance_exists(110)))&&(yyGetBool(yyfequal(yyInst(_inst,
_other,global.gmlmaster_ball).gmlstate,0)))&&(yyGetBool(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlplaystart_time),2000))))){{if(yyGetBool(_inst.gmlkicking)){{var ___sw1008___=_inst.gmlkicking;var ___swc1009___=-1;if(yyCompareVal(___sw1008___,1,g_GMLMathEpsilon,false)==0){___swc1009___=0;}else if(yyCompareVal(___sw1008___,2,g_GMLMathEpsilon,false)==0){___swc1009___=1;}else if(yyCompareVal(___sw1008___,3,g_GMLMathEpsilon,false)==0){___swc1009___=2;}switch(___swc1009___){
case 0:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"match_FieldGoal");break;}case 1:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"match_PAT");break;}case 2:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"match_KickOff");break;}};};}else {if(yyfgreater(_inst.gmldown,0)){{_inst.gmlcomm_txt=gml_Script_s_get_string_downand(_inst,_other);};};};};};{var __yy__v1225=GetWithArray(79);for(var __yy__v1226 in __yy__v1225){if(!__yy__v1225.hasOwnProperty(__yy__v1226))continue;var __yy__v1227=__yy__v1225[__yy__v1226];
return;}};};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_set_alpha(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5);if(yyfequal(_inst.gmlstate,2)){gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.75);};if(yyfnotequal(_inst.gmlcomm_txt,"")){{var gmltw=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmlcomm_txt)),0.5)),
__yy_gml_errCheck(gmlbuf));var gmlcomm_col=_inst.gmlcomm_col_a;if(yyfequal(_inst.gmlpossession,1)){gmlcomm_col=_inst.gmlcomm_col_h;};var ___sw1010___=_inst.gmllast_stage;var ___swc1011___=-1;if(yyCompareVal(___sw1010___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,
18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,22,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,25,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,30,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,31,g_GMLMathEpsilon,false)==0){___swc1011___=0;}else if(yyCompareVal(___sw1010___,19,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,20,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1010___,21,g_GMLMathEpsilon,false)==0){___swc1011___=1;}else if(yyCompareVal(___sw1010___,
1,g_GMLMathEpsilon,false)==0){___swc1011___=2;}else if(yyCompareVal(___sw1010___,5,g_GMLMathEpsilon,false)==0){___swc1011___=3;}switch(___swc1011___){case 0:{gmlcomm_col=0;break;}case 1:{gmlcomm_col=_inst.gmlcomm_col_h;if(yyfequal(_inst.gmlpossession,1)){gmlcomm_col=_inst.gmlcomm_col_a;};break;}case 2:{if((yyGetBool(yyfnotequal(_inst.gmllast_stage,7)))&&(yyGetBool(yyfnotequal(_inst.gmllast_stage,16)))){{gmlcomm_col=_inst.gmlcomm_col_a;if(yyfequal(_inst.gmlpossession,0)){gmlcomm_col=_inst.gmlcomm_col_h;
};};};break;}case 3:{gmlcomm_col=_inst.gmlcomm_col_a;if(yyfequal(_inst.gmlpossession,0)){gmlcomm_col=_inst.gmlcomm_col_h;};break;}};if((yyGetBool(yyfequal(_inst.gmlcomm_stage,2)))&&(yyGetBool(yyfequal(_inst.gmllast_stage,7)))){{gmlcomm_col=_inst.gmlcomm_col_a;if(yyfequal(_inst.gmlpossession,0)){gmlcomm_col=_inst.gmlcomm_col_h;};};};if((yyGetBool(yyfequal(_inst.gmlstate,2)))||(yyGetBool(_inst.gmlskip_half))){gmlcomm_col=0;};draw_sprite_ext(_inst,265,0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),
yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlbuf)),yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmltw),16)),2),1.1,0,gmlcomm_col,1);if(yyGetBool(global.gmldebug)){{gml_Script_draw_hd_text(_inst,_other,gmltx,yyfplus(__yy_gml_errCheck(gmlty),22),yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,_other,_inst.gmlcomm_stage))));gml_Script_draw_hd_text(_inst,_other,gmltx,yyfplus(__yy_gml_errCheck(gmlty),32),yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,
_other,_inst.gmllast_stage))));};};gml_Script_draw_hd_text_ext_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),_inst.gmlcomm_txt,(-1),(-1),0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlcomm_txt);};};if((yyGetBool(!yyGetBool(global.gmlgamepad)))&&(yyGetBool(yyfnotequal(_inst.gmltap_msg,"")))&&(yyGetBool(!yyGetBool(instance_exists(34))))){{gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.75);var gmltw=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,_inst.gmltap_msg)),0.5)),__yy_gml_errCheck(gmlbuf));draw_sprite_ext(_inst,265,0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlbuf)),yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmltw),16)),2),1.1,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltap_msg);};};}}function gml_GlobalScript_s_draw_scoreboard(_inst,_other){(_inst.gmls_draw_scoreboard=__yy_method(_inst,gml_Script_s_draw_scoreboard));}function gml_Script_s_draw_scoreboard(_inst,
_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{gml_Script_s_draw_scoreboard_qb_training(_inst,_other);return;};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);draw_set_alpha(1);draw_rectangle_colour(0,0,display_get_gui_width(),16,0,0,0,0,0);var gmltx=16;var gmlty1=8;var gmlname1=ds_map_find_value(_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)],"tla");var gmlname2=ds_map_find_value(_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)],
"tla");var gmltxt=gmlname1;gmltxt=yyfplus(gmltxt,yyfplus(yyfplus(" ",__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)])))," "));var gmlto_len=gml_Script_string_hd_width(_inst,_other,gmltxt);gmltxt=yyfplus(gmltxt,yyfplus(yyfplus(__yy_gml_errCheck(gmlname2)," "),__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]))));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmltxt);{var __yy__v1228=GetWithArray(104);for(var __yy__v1229 in __yy__v1228){
if(!__yy__v1228.hasOwnProperty(__yy__v1229))continue;var __yy__v1230=__yy__v1228[__yy__v1229];{var gmlto_x=gmltx;var gmlto_y=yyfplus(__yy_gml_errCheck(gmlty1),6);if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){{var gmli=0;for(;yyfless(gmli,__yy__v1230.gmltimeouts);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_line_width(gmlto_x,gmlto_y,yyfplus(__yy_gml_errCheck(gmlto_x),6),
gmlto_y,2);gmlto_x=yyfplus(gmlto_x,8);}};gmlto_x=yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlto_len));var gmli=0;for(;yyfless(gmli,__yy__v1230.gmltimeouts_p2);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_line_width(gmlto_x,gmlto_y,yyfplus(__yy_gml_errCheck(gmlto_x),6),gmlto_y,2);gmlto_x=yyfplus(gmlto_x,8);}};};}else {{if(yyfequal(__yy__v1230.gmlhuman_team,1)){gmlto_x=yyfplus(gmlto_x,gmlto_len);};var gmli=0;for(;yyfless(gmli,
gml_Script_s_count_timeouts(__yy__v1230,_inst));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_line_width(gmlto_x,gmlto_y,yyfplus(__yy_gml_errCheck(gmlto_x),6),gmlto_y,2);gmlto_x=yyfplus(gmlto_x,8);}};};};}}};if(yyfnotequal(_inst.gmlcomm_stage,13)){{draw_set_halign(2);gmltx=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2);var gmlqtr=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,yyfplus("quarter_",__yy_gml_errCheck(string(_inst.gmlquarter))))),
" ");gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmlqtr);draw_set_halign(0);var gmltime=yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_string_time(_inst,_other,_inst.gmlminutes,_inst.gmlseconds)));if(yyfequal(_inst.gmlminutes,0)){{draw_set_color(65535);if(yyfless(_inst.gmlseconds,11)){draw_set_color(255);};};};if(yyGetBool(_inst.gmltimeout_called)){draw_set_color(4235519);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmltime);draw_set_color(16777215);if((yyGetBool(yyfequal(_inst.gmlstate,
2)))||(yyGetBool((yyGetBool(yyfequal(_inst.gmlstate_previous,2)))&&(yyGetBool(yyfequal(_inst.gmlstate,10)))))){{draw_set_halign(2);draw_set_colour(16777215);gmltx=yyfminus(__yy_gml_errCheck(display_get_gui_width()),16);if(yyGetBool(_inst.gmlkicking)){{if(yyGetBool(gml_Script_s_aiming(_inst,_other))){{var gmlkk=gml_Script_s_get_kicker(_inst,_other);var gmltxt=yyfplus(yyfplus(__yy_gml_errCheck(string(_inst.gmlkick_dist))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_yards")));if((yyGetBool(gmlkk))&&(yyGetBool(yyInst(_inst,
_other,gmlkk).gmlpmap))){{if(yyfgreater(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"stat_attempts"),0)){{gmltxt=yyfplus(gmltxt,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(" ",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"stat_complete")))),"/"),__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"stat_attempts"))))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Attempts"))));};};};};gml_Script_draw_hd_text(_inst,_other,
gmltx,gmlty1,gmltxt);};};};}else {if((yyGetBool(yyfgreater(_inst.gmldown,0)))&&(yyGetBool(yyfless(_inst.gmldown,5)))){{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gml_Script_s_get_string_downand(_inst,_other));};};};};}else {if(yyGetBool(global.gmldebug)){{draw_set_halign(2);draw_set_colour(0);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(display_get_gui_width()),16),yyfminus(__yy_gml_errCheck(display_get_gui_height()),80),yyfplus(__yy_gml_errCheck(string(round(gml_Script_s_convert_scrimmage_to_goal_distance(_inst,
_other)))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Yards"))));draw_set_colour(16777215);};};};};};{var __yy__v1231=GetWithArray(global.gmlmaster_ball);for(var __yy__v1232 in __yy__v1231){if(!__yy__v1231.hasOwnProperty(__yy__v1232))continue;var __yy__v1233=__yy__v1231[__yy__v1232];{if((yyGetBool(!yyGetBool(instance_exists(89))))&&(yyGetBool(!yyGetBool(instance_exists(112))))){{if((yyGetBool(__yy__v1233.gmlholder))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,__yy__v1233.gmlholder).gmlpos_name,
"")))){{var gmltxt=yyInst(_inst,_other,__yy__v1233.gmlholder).gmlpos_name;var gmlsx=22;var gmlsy=yyfminus(__yy_gml_errCheck(display_get_gui_height()),10);draw_sprite(__yy__v1233,95,gml_Script_s_get_attitude_icon(__yy__v1233,_inst,ds_map_find_value(yyInst(_inst,_other,__yy__v1233.gmlholder).gmlpmap,"attitude")),gmlsx,gmlsy);draw_set_halign(0);draw_set_colour(0);gml_Script_draw_hd_text(__yy__v1233,_inst,yyfplus(__yy_gml_errCheck(gmlsx),12),gmlsy,gmltxt);draw_set_colour(16777215);};};};};}}};}}function gml_GlobalScript_s_draw_scrimmage(_inst,
_other){(_inst.gmls_draw_scrimmage=__yy_method(_inst,gml_Script_s_draw_scrimmage));}function gml_Script_s_draw_scrimmage(_inst,_other){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return;};draw_set_alpha(0.6);draw_line_width_colour(_inst.gmlx_scrim,131,_inst.gmlx_scrim,470,2,16711680,16711680);if(yyfgreaterequal(_inst.gmlyards,1)){draw_sprite_ext(_inst,13,1,_inst.gmlx_scrim,126,2,2,0,16777215,1);};if((yyGetBool(yyfgreater(_inst.gmlx_yards,300)))&&(yyGetBool(yyfless(_inst.gmlx_yards,
2300)))){{draw_line_width_colour(_inst.gmlx_yards,131,_inst.gmlx_yards,470,2,65535,65535);draw_sprite_ext(_inst,13,0,_inst.gmlx_yards,126,2,2,0,16777215,1);};};draw_set_alpha(1);}}function gml_GlobalScript_s_draw_wind(_inst,_other){(_inst.gmls_draw_wind=__yy_method(_inst,gml_Script_s_draw_wind));}function gml_Script_s_draw_wind(_inst,_other){{if((yyGetBool(!yyGetBool(_inst.gmlkicking)))&&(yyGetBool(!yyGetBool(instance_exists(78))))){return;};if(!yyGetBool(gml_Script_s_aiming(_inst,_other))){return;
};if((yyGetBool(!yyGetBool(instance_exists(117))))||(yyGetBool(yyfequal(yyInst(_inst,_other,117).gmlwind,0)))){return;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);var gmlgw=display_get_gui_width();var gmlc=0;var gmlposx=48;var gmlposy=40;if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))){gmlposx=yyfminus(__yy_gml_errCheck(gmlgw),__yy_gml_errCheck(gmlposx));};if(yyGetBool(instance_exists(78))){gmlposx=yyfminus(__yy_gml_errCheck(gmlgw),
__yy_gml_errCheck(gmlposx));};var gmlrw=48;var gmlrx=yyfminus(__yy_gml_errCheck(gmlposx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrw),0.5)));var gmlry=yyfminus(__yy_gml_errCheck(gmlposy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrw),0.5)));draw_rectangle_color(gmlrx,gmlry,yyfplus(__yy_gml_errCheck(gmlrx),__yy_gml_errCheck(gmlrw)),yyfplus(yyfplus(__yy_gml_errCheck(gmlry),__yy_gml_errCheck(gmlrw)),16),gmlc,gmlc,gmlc,gmlc,0);gmlrx=gmlposx;gmlry=gmlposy;draw_sprite_ext(_inst,73,0,gmlrx,gmlry,
1.5,1.5,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,117).gmlwind_dir),45),16777215,1);gml_Script_draw_hd_text(_inst,_other,gmlrx,yyfplus(__yy_gml_errCheck(gmlry),30),yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Wind"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,117).gmlwind))));}}function gml_GlobalScript_s_draw_kicking_power(_inst,_other){(_inst.gmls_draw_kicking_power=__yy_method(_inst,gml_Script_s_draw_kicking_power));}function gml_Script_s_draw_kicking_power(_inst,
_other){{if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false)))&&(yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other)))){return;};var gmlc=0;var gmlgw=display_get_gui_width();var gmlrw=256;var gmlrx=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlgw),0.5)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrw),0.5)));draw_rectangle_color(gmlrx,32,yyfplus(__yy_gml_errCheck(gmlrx),__yy_gml_errCheck(gmlrw)),64,gmlc,gmlc,gmlc,gmlc,0);var gmlkickp=clamp(yyftime(__yy_gml_errCheck(_inst.gmlkickpow),
2),1,100);var gmlpow=yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlrw),2)),0.01);var gmlred_pow=yyftime(__yy_gml_errCheck(gmlpow),__yy_gml_errCheck(min(30,gmlkickp)));var gmlgrn_pow=yyftime(__yy_gml_errCheck(gmlpow),__yy_gml_errCheck(min(100,gmlkickp)));gmlc=65280;draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlrx),2),34,yyfplus(__yy_gml_errCheck(gmlrx),__yy_gml_errCheck(gmlgrn_pow)),62,gmlc,gmlc,gmlc,gmlc,0);gmlc=255;draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlrx),2),34,yyfplus(__yy_gml_errCheck(gmlrx),
__yy_gml_errCheck(gmlred_pow)),62,gmlc,gmlc,gmlc,gmlc,0);}}function gml_GlobalScript_s_draw_my_route(_inst,_other){(_inst.gmls_draw_my_route=__yy_method(_inst,gml_Script_s_draw_my_route));}function gml_Script_s_draw_my_route(_inst,_other){{draw_set_colour(0);draw_set_alpha(yyftime(__yy_gml_errCheck(_inst.gmlmy_route_alpha),0.5));var gmllastx=_inst.gmlmy_route_startx;var gmllasty=_inst.gmlmy_route_starty;var gmlnum=path_get_number(_inst.gmlmy_route);var gmlpt=0;for(;yyfless(gmlpt,gmlnum);gmlpt=yyfplus(gmlpt,
1)){{var gmlnextx=round(yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_startx),__yy_gml_errCheck(path_get_point_x(_inst.gmlmy_route,gmlpt))));var gmlnexty=round(yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,gmlpt))));if(yyfgreater(_inst.gmlmy_route_starty,300)){gmlnexty=yyfminus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,gmlpt)));};draw_line_width(gmllastx,yyfplus(__yy_gml_errCheck(gmllasty),
1),gmlnextx,yyfplus(__yy_gml_errCheck(gmlnexty),1),5);draw_circle(gmlnextx,yyfplus(__yy_gml_errCheck(gmlnexty),1),2.5,0);_inst.gmlmy_route_end_dir=999;var ___sw1014___=yyInst(_inst,_other,104).gmldrivedir;var ___swc1015___=-1;if(yyCompareVal(___sw1014___,(-1),g_GMLMathEpsilon,false)==0){___swc1015___=0;}else if(yyCompareVal(___sw1014___,1,g_GMLMathEpsilon,false)==0){___swc1015___=1;}switch(___swc1015___){case 0:{if(yyflessequal(gmlnextx,gmllastx)){_inst.gmlmy_route_end_dir=point_direction(gmllastx,gmllasty,
gmlnextx,gmlnexty);};break;}case 1:{if(yyfgreaterequal(gmlnextx,gmllastx)){_inst.gmlmy_route_end_dir=point_direction(gmllastx,gmllasty,gmlnextx,gmlnexty);};break;}};gmllastx=gmlnextx;gmllasty=gmlnexty;}};if(yyGetBool(_inst.gmlte_blocking)){{draw_set_colour(0);draw_set_alpha(yyftime(__yy_gml_errCheck(_inst.gmlmy_route_alpha),0.5));draw_line_width(gmllastx,yyfminus(__yy_gml_errCheck(gmllasty),5),gmlnextx,yyfplus(__yy_gml_errCheck(gmlnexty),7),5);};}else {if(yyfequal(_inst.gmlmy_route_end_dir,999)){{
draw_set_colour(0);draw_set_alpha(yyftime(__yy_gml_errCheck(_inst.gmlmy_route_alpha),0.5));draw_circle(gmllastx,yyfplus(__yy_gml_errCheck(gmllasty),1),5,0);};}else {{if(yyfgreaterequal(_inst.gmlmy_route_end_dir,270)){{gmllastx=yyfplus(gmllastx,1.5);gmllasty=yyfplus(gmllasty,1);};}else {if(yyfgreater(_inst.gmlmy_route_end_dir,90)){{gmllastx=yyfplus(gmllastx,1.5);gmllasty=yyfplus(gmllasty,2);};};};draw_sprite_ext(_inst,68,0,gmllastx,yyfplus(__yy_gml_errCheck(gmllasty),1),0.75,0.75,_inst.gmlmy_route_end_dir,
0,yyftime(__yy_gml_errCheck(_inst.gmlmy_route_alpha),0.5));};};};var gmlcol=global.gmlc_routes;if((yyGetBool(_inst.gmlte_blocking))||(yyGetBool(yyfequal(_inst.gmlposition,1)))){gmlcol=16777215;}else {if(yyfequal(_inst.gmlposition,2)){gmlcol=global.gmlc_routes_rb;};};if((yyGetBool(yyInst(_inst,_other,97).gmlqb_mode))&&(yyGetBool(_inst.gmlrewarded_route))){gmlcol=255;};draw_set_colour(gmlcol);draw_set_alpha(_inst.gmlmy_route_alpha);gmllastx=round(_inst.gmlmy_route_startx);gmllasty=round(_inst.gmlmy_route_starty);
var gmlpt=0;for(;yyfless(gmlpt,gmlnum);gmlpt=yyfplus(gmlpt,1)){{var gmlnextx=round(yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_startx),__yy_gml_errCheck(path_get_point_x(_inst.gmlmy_route,gmlpt))));var gmlnexty=round(yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,gmlpt))));if(yyfgreater(_inst.gmlmy_route_starty,300)){gmlnexty=yyfminus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,gmlpt)));};
draw_line_width(gmllastx,gmllasty,gmlnextx,gmlnexty,5);draw_circle(gmlnextx,gmlnexty,2.5,0);gmllastx=gmlnextx;gmllasty=gmlnexty;}};if(yyGetBool(_inst.gmlte_blocking)){{_inst.gmlmy_route_end_dir=999;draw_set_colour(16777215);draw_set_alpha(_inst.gmlmy_route_alpha);draw_line_width(gmllastx,yyfminus(__yy_gml_errCheck(gmllasty),6),gmlnextx,yyfplus(__yy_gml_errCheck(gmlnexty),6),5);};}else {if(yyfequal(_inst.gmlmy_route_end_dir,999)){{draw_set_colour(gmlcol);draw_set_alpha(_inst.gmlmy_route_alpha);draw_circle(gmllastx,
gmllasty,5,0);};}else {{if(yyfgreaterequal(_inst.gmlmy_route_end_dir,270)){{gmllastx=yyfplus(gmllastx,1.5);gmllasty=yyfplus(gmllasty,1);};}else {if(yyfgreater(_inst.gmlmy_route_end_dir,90)){{gmllastx=yyfplus(gmllastx,1.5);gmllasty=yyfplus(gmllasty,2);};};};draw_sprite_ext(_inst,68,0,gmllastx,gmllasty,0.75,0.75,_inst.gmlmy_route_end_dir,gmlcol,_inst.gmlmy_route_alpha);};};};draw_set_colour(16777215);draw_set_alpha(1);}}function gml_GlobalScript_s_draw_kick_cone(_inst,_other){(_inst.gmls_draw_kick_cone=__yy_method(_inst,
gml_Script_s_draw_kick_cone));}function gml_Script_s_draw_kick_cone(_inst,_other){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){return;};{var __yy__v1234=GetWithArray(117);for(var __yy__v1235 in __yy__v1234){if(!__yy__v1234.hasOwnProperty(__yy__v1235))continue;var __yy__v1236=__yy__v1234[__yy__v1235];{if(yyfequal(__yy__v1236.gmltype,2)){draw_set_color(0);}else {draw_set_color(16777215);};}}};draw_set_alpha(0.075);var gmlgl=90;if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,1)){gmlgl=2510;
};{var __yy__v1237=GetWithArray(global.gmlmaster_ball);for(var __yy__v1238 in __yy__v1237){if(!__yy__v1237.hasOwnProperty(__yy__v1238))continue;var __yy__v1239=__yy__v1237[__yy__v1238];{var ___sw1018___=__yy__v1239.gmlstate;var ___swc1019___=-1;if(yyCompareVal(___sw1018___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1018___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1018___,1,g_GMLMathEpsilon,false)==0){___swc1019___=0;}switch(___swc1019___){case 0:{{var __yy__v1240=GetWithArray(__yy__v1239.gmlholder);
for(var __yy__v1241 in __yy__v1240){if(!__yy__v1240.hasOwnProperty(__yy__v1241))continue;var __yy__v1242=__yy__v1240[__yy__v1241];draw_triangle(gmlgl,270,gmlgl,332,__yy__v1242.x,__yy__v1242.y,false);}};break;}};}}};draw_set_color(16777215);draw_set_alpha(1);}}function gml_GlobalScript_s_check_draft_qb(_inst,_other){(_inst.gmls_check_draft_QB=__yy_method(_inst,gml_Script_s_check_draft_QB));(_inst.gmls_do_qb_draft_round=__yy_method(_inst,gml_Script_s_do_qb_draft_round));(_inst.gmls_get_weakest_player_by_position=__yy_method(_inst,
gml_Script_s_get_weakest_player_by_position));(_inst.gmls_find_draft_player_by_position=__yy_method(_inst,gml_Script_s_find_draft_player_by_position));(_inst.gmls_get_player_by_position_for_qb_draft=__yy_method(_inst,gml_Script_s_get_player_by_position_for_qb_draft));(_inst.gmls_do_contract_news=__yy_method(_inst,gml_Script_s_do_contract_news));(_inst.gmls_goto_room_contract=__yy_method(_inst,gml_Script_s_goto_room_contract));(_inst.gmlbtn_qb_mode_interested_teams=__yy_method(_inst,gml_Script_btn_qb_mode_interested_teams));
}function gml_Script_s_check_draft_QB(_inst,_other){{if((yyGetBool(yyfgreater(_inst.gmlintro,0)))||(yyGetBool(yyfequal(_inst.gmlyear,1)))){{};}else {if(yyfless(ds_map_find_value(gml_Script_s_get_qb_pmap(_inst,_other),"contract"),1)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"news_QB_contract_expired"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_goto_room_contract,(-1),global.gmlc_background,1);_inst.gmlstage=1;return;};}else {if((yyGetBool(yyfequal(_inst.gmlweek,
1)))&&(yyGetBool(yyfequal(_inst.gmldraft_round,1)))){{gml_Script_s_do_qb_draft_round(_inst,_other);gml_Script_s_end_draft_round(_inst,_other,false);gml_Script_s_do_qb_draft_round(_inst,_other);gml_Script_s_end_draft_round(_inst,_other,false);gml_Script_s_do_qb_draft_round(_inst,_other);gml_Script_s_end_draft_round(_inst,_other,false);return;};};};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlprematch_dilemma_done)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_bye_week(_inst,_other,yyInst(_inst,
_other,97).gmlweek))))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)))&&(yyGetBool((yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))||(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode))))){{if(yyGetBool(gml_Script_s_do_prematch_dilemma_qb(_inst,_other))){return;};};};yyInst(_inst,_other,97).gmlprematch_dilemma_done=true;gml_Script_s_savegame(_inst,_other);gml_Script_s_play(_inst,_other,1);}}function gml_Script_s_do_qb_draft_round(_inst,_other){
{if(yyfless(ds_list_size(yyInst(_inst,_other,97).gmldraftlist),50)){gml_Script_s_create_draftlist(_inst,_other);};var gmlnew_pmap=(-4);var gmlremove_pmap=(-4);var gmlmax_roster=(yyfgreater(yyInst(_inst,_other,97).gmlsalary_cap,150)?12:10);if(yyfless(ds_list_size(yyInst(_inst,_other,97).gmlroster),gmlmax_roster)){{if(yyfless(gml_Script_s_count_players_by_position(_inst,_other,4),1)){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,0);}else {if(yyfless(gml_Script_s_count_players_by_position(_inst,
_other,2),1)){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,2,0);}else {if(yyfless(gml_Script_s_count_players_by_position(_inst,_other,4),2)){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,7);};};};if(yyfequal(gmlnew_pmap,(-4))){{var gmlcurrent_rb=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,2,1);if(yyGetBool(gmlcurrent_rb)){{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlcurrent_rb);gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,
_other,2,yyfplus(__yy_gml_errCheck(gmlrating),1));if(yyGetBool(gmlnew_pmap)){gmlremove_pmap=gmlcurrent_rb;};};};};};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,4),2)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,5);};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,3),1)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,
_other,3,5);};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,4),2)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,0);};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,3),1)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,3,0);};if(yyfequal(gmlnew_pmap,(-4))){{var gmlweakest_p=gml_Script_s_get_weakest_player_by_position(_inst,
_other,4);if(yyGetBool(gmlweakest_p)){{gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p)),1));if(yyGetBool(gmlnew_pmap)){gmlremove_pmap=gmlweakest_p;};};};};};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfgreater(gmlmax_roster,10)))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,3),2)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,3,
5);};if(yyfequal(gmlnew_pmap,(-4))){{var gmlweakest_p=gml_Script_s_get_weakest_player_by_position(_inst,_other,3);if(yyGetBool(gmlweakest_p)){{gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,3,yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p)),1));if(yyGetBool(gmlnew_pmap)){gmlremove_pmap=gmlweakest_p;};};};};};if(yyfequal(gmlnew_pmap,(-4))){{{var __yy__v1243=GetWithArray(97);for(var __yy__v1244 in __yy__v1243){if(!__yy__v1243.hasOwnProperty(__yy__v1244))continue;
var __yy__v1245=__yy__v1243[__yy__v1244];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1245.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1245.gmldraftlist,gmli);var gmlpos=ds_map_find_value(gmlpmap,"position");if(yyfless(gml_Script_s_count_players_by_position(__yy__v1245,_inst,gmlpos),1)){{gmlnew_pmap=gmlpmap;break;};};}};}}};};};if(yyfequal(gmlnew_pmap,(-4))){{{var __yy__v1246=GetWithArray(97);
for(var __yy__v1247 in __yy__v1246){if(!__yy__v1246.hasOwnProperty(__yy__v1247))continue;var __yy__v1248=__yy__v1246[__yy__v1247];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1248.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1248.gmldraftlist,gmli);var gmlpos=ds_map_find_value(gmlpmap,"position");var ___sw1022___=gmlpos;var ___swc1023___=-1;if(yyCompareVal(___sw1022___,6,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw1022___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1022___,5,g_GMLMathEpsilon,false)==0){___swc1023___=0;}switch(___swc1023___){case 0:{if(yyfless(gml_Script_s_count_players_by_position(__yy__v1248,_inst,gmlpos),2)){gmlnew_pmap=gmlpmap;};break;}default :{if(yyfless(gml_Script_s_count_players_by_position(__yy__v1248,_inst,gmlpos),1)){gmlnew_pmap=gmlpmap;};break;}};if(yyGetBool(gmlnew_pmap)){break;};}};}}};};};};}else {{var gmlplist=ds_list_create();ds_list_add(gmlplist,
2);ds_list_add(gmlplist,4);ds_list_add(gmlplist,3);ds_list_add(gmlplist,5);ds_list_add(gmlplist,6);ds_list_add(gmlplist,7);ds_list_add(gmlplist,choose(8,9));ds_list_add(gmlplist,10);while(yyfgreater(ds_list_size(gmlplist),0)){{ds_list_shuffle(gmlplist);var gmlpos=ds_list_find_value(gmlplist,0);var gmlweakest_p=gml_Script_s_get_weakest_player_by_position(_inst,_other,gmlpos);if(yyGetBool(gmlweakest_p)){{gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,gmlpos,yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,
_other,gmlweakest_p)),1));if(yyGetBool(gmlnew_pmap)){gmlremove_pmap=gmlweakest_p;};};};ds_list_delete(gmlplist,0);if(yyGetBool(gmlnew_pmap)){break;};}};ds_list_clear(gmlplist);};};{var __yy__v1249=GetWithArray(97);for(var __yy__v1250 in __yy__v1249){if(!__yy__v1249.hasOwnProperty(__yy__v1250))continue;var __yy__v1251=__yy__v1249[__yy__v1250];{if(yyGetBool(gmlnew_pmap)){{ds_map_set(gmlnew_pmap,"signed_year",__yy__v1251.gmlyear);ds_map_set(gmlnew_pmap,"teamid",__yy__v1251.gmlmyteam_id);ds_map_set(gmlnew_pmap,
"flash_time",g_pBuiltIn.get_current_time());ds_list_add(__yy__v1251.gmlroster,gmlnew_pmap);gml_Script_s_do_contract_news(__yy__v1251,_inst,gml_Script_s_str(__yy__v1251,_inst,"news_QB_draft_playerjoins"),gmlnew_pmap);ds_list_delete(__yy__v1251.gmldraftlist,ds_list_find_index(__yy__v1251.gmldraftlist,gmlnew_pmap));};};if(yyGetBool(gmlremove_pmap)){{gml_Script_s_do_contract_news(__yy__v1251,_inst,gml_Script_s_str(__yy__v1251,_inst,"news_QB_draft_playerleaves"),gmlremove_pmap);ds_list_delete(__yy__v1251.gmlroster,
ds_list_find_index(__yy__v1251.gmlroster,gmlremove_pmap));};};}}};}}function gml_Script_s_get_weakest_player_by_position(_inst,_other,argument0){{var gmlcurrent_p1=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,argument0,1);var gmlcurrent_p2=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,argument0,2);var gmlcurrent_p3=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,argument0,3);var gmlcurrent_p4=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,
argument0,4);var gmlweakest_p=gmlcurrent_p1;if((yyGetBool(gmlweakest_p))&&(yyGetBool(gmlcurrent_p2))&&(yyGetBool(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p),gml_Script_s_get_player_rating(_inst,_other,gmlcurrent_p2))))){gmlweakest_p=gmlcurrent_p2;};if((yyGetBool(gmlweakest_p))&&(yyGetBool(gmlcurrent_p3))&&(yyGetBool(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p),gml_Script_s_get_player_rating(_inst,_other,gmlcurrent_p3))))){gmlweakest_p=gmlcurrent_p3;
};if((yyGetBool(gmlweakest_p))&&(yyGetBool(gmlcurrent_p4))&&(yyGetBool(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p),gml_Script_s_get_player_rating(_inst,_other,gmlcurrent_p4))))){gmlweakest_p=gmlcurrent_p4;};return gmlweakest_p;}}function gml_Script_s_find_draft_player_by_position(_inst,_other,argument0,argument1){{{var __yy__v1252=GetWithArray(97);for(var __yy__v1253 in __yy__v1252){if(!__yy__v1252.hasOwnProperty(__yy__v1253))continue;var __yy__v1254=__yy__v1252[__yy__v1253];{var gmli=0;
for(;yyfless(gmli,ds_list_size(__yy__v1254.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1254.gmldraftlist,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_player_rating(__yy__v1254,_inst,gmlpmap),argument1)))){return gmlpmap;};}};}}};return(-4);}}function gml_Script_s_get_player_by_position_for_qb_draft(_inst,
_other,argument0,argument1){{{var __yy__v1255=GetWithArray(97);for(var __yy__v1256 in __yy__v1255){if(!__yy__v1255.hasOwnProperty(__yy__v1256))continue;var __yy__v1257=__yy__v1255[__yy__v1256];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1257.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1257.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1257,
_inst))){continue;};if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v1257,_inst)),1))))&&(yyGetBool(yyfgreater(gml_Script_s_get_player_potential(__yy__v1257,_inst,gmlpmap),7)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"attitude"),30)))){continue;};if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);
if(yyfequal(gmlcount,argument1)){return gmlpmap;};};};}};}}};return(-4);}}function gml_Script_s_do_contract_news(_inst,_other,argument0,argument1){{argument0=string_replace(argument0,"$myteam",ds_map_find_value(_inst.gmlmyteam,"name"));argument0=string_replace(argument0,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(argument1,"position")));argument0=string_replace(argument0,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument1,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(argument1,
"lname"))));argument0=string_replace(argument0,"$randomteamname",gml_Script_s_get_random_teamname(_inst,_other,false));argument0=string_replace(argument0,"$draftround",_inst.gmldraft_round);gml_Script_s_add_news(_inst,_other,argument0);}}function gml_Script_s_goto_room_contract(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);room_goto(42);}}function gml_Script_btn_qb_mode_interested_teams(_inst,_other){{room_goto(3);}}function gml_GlobalScript_s_update_my_shadow(_inst,_other){(_inst.gmls_update_my_shadow=__yy_method(_inst,
gml_Script_s_update_my_shadow));}function gml_Script_s_update_my_shadow(_inst,_other){{layer_sprite_change(_inst.gmlmy_shadow,_inst.sprite_index);layer_sprite_index(_inst.gmlmy_shadow,_inst.image_index);layer_sprite_xscale(_inst.gmlmy_shadow,_inst.image_xscale);layer_sprite_x(_inst.gmlmy_shadow,_inst.x);layer_sprite_y(_inst.gmlmy_shadow,_inst.y);}}function gml_GlobalScript_s_set_up_practice(_inst,_other){(_inst.gmls_set_up_practice=__yy_method(_inst,gml_Script_s_set_up_practice));}function gml_Script_s_set_up_practice(_inst,
_other){{gml_Script_slog(_inst,_other,"s_set_up_practice");{var __yy__v1258=GetWithArray(104);for(var __yy__v1259 in __yy__v1258){if(!__yy__v1258.hasOwnProperty(__yy__v1259))continue;var __yy__v1260=__yy__v1258[__yy__v1259];__yy__v1260.alarm=__yy_gml_array_check(__yy__v1260.alarm,1163876845);__yy__v1260.alarm[__yy_gml_array_check_index_set(0)]=0;}};{var __yy__v1261=GetWithArray(112);for(var __yy__v1262 in __yy__v1261){if(!__yy__v1261.hasOwnProperty(__yy__v1262))continue;var __yy__v1263=__yy__v1261[__yy__v1262];
instance_destroy(__yy__v1263);}};(g_yyPrePostObject__=_inst.gmlpractice_count,_inst.gmlpractice_count=(g_yyPrePostObject__ instanceof Long?_inst.gmlpractice_count.add(1):++_inst.gmlpractice_count),g_yyPrePostObject__);if(yyfequal(_inst.gmlpractice_success,(-1))){{if(yyfless(yyInst(_inst,_other,97).gmlintro,99)){{var ___sw1028___=yyInst(_inst,_other,97).gmlgamepractice;var ___swc1029___=-1;if(yyCompareVal(___sw1028___,3,g_GMLMathEpsilon,false)==0){___swc1029___=0;}else if(yyCompareVal(___sw1028___,2,g_GMLMathEpsilon,
false)==0){___swc1029___=1;}else if(yyCompareVal(___sw1028___,1,g_GMLMathEpsilon,false)==0){___swc1029___=2;}switch(___swc1029___){case 0:{yyInst(_inst,_other,97).gmlgamepractice=2;_inst.gmlpractice_count=1;_inst.gmlpractice_success=0;break;}case 1:{yyInst(_inst,_other,97).gmlgamepractice=1;_inst.gmlpractice_count=1;_inst.gmlpractice_success=0;break;}case 2:{room_goto(14);return;break;}};};};};};if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,4)))&&(yyGetBool(yyfgreater(_inst.gmlpractice_count,
1)))&&(yyGetBool(yyfless(_inst.gmlseconds,1)))){{gml_Script_s_end_qb_mode_practice(_inst,_other);return;};};_inst.gmlstate=2;var gmlmsg_ext="";if((yyGetBool(global.gmlbrowser))&&(yyGetBool((yyGetBool(yyfnotequal(g_pBuiltIn.get_os_type(),4)))&&(yyGetBool(yyfnotequal(g_pBuiltIn.get_os_type(),3)))))){gmlmsg_ext="Browser";}else {if(yyGetBool(global.gmlgamepad)){gmlmsg_ext="Gamepad";};};var ___sw1030___=yyInst(_inst,_other,97).gmlgamepractice;var ___swc1031___=-1;if(yyCompareVal(___sw1030___,1,g_GMLMathEpsilon,
false)==0){___swc1031___=0;}else if(yyCompareVal(___sw1030___,2,g_GMLMathEpsilon,false)==0){___swc1031___=1;}else if(yyCompareVal(___sw1030___,3,g_GMLMathEpsilon,false)==0){___swc1031___=2;}else if(yyCompareVal(___sw1030___,4,g_GMLMathEpsilon,false)==0){___swc1031___=3;}switch(___swc1031___){case 0:{var gmlmsg=gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_Kicking",__yy_gml_errCheck(gmlmsg_ext)));if(yyfequal(_inst.gmlpractice_count,1)){gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,
_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {if(yyfequal(_inst.gmlpractice_success,yyfminus(__yy_gml_errCheck(_inst.gmlpractice_count),1))){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_Intro_SuccessKick"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_KickingFail",__yy_gml_errCheck(gmlmsg_ext))),
"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};};_inst.gmlscrimmage=30;if(yyfequal(_inst.gmlpractice_success,0)){_inst.gmlscrimmage=40;};_inst.gmldrivedir=(-1);if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir"),0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir");};gml_Script_s_set_up_fieldgoal(_inst,_other,1);break;}case 1:{var gmlmsg=gml_Script_s_str(_inst,_other,
yyfplus("msg_Intro_Running",__yy_gml_errCheck(gmlmsg_ext)));_inst.gmlscrimmage=0;_inst.gmldrivedir=(-1);if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir"),0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir");};if(yyfequal(_inst.gmlpractice_count,1)){gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {if(yyfequal(_inst.gmlpractice_success,
yyfminus(__yy_gml_errCheck(_inst.gmlpractice_count),1))){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_SuccessRun",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {if(yyfequal(_inst.gmlpractice_success,0)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_RunningFail",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,
_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_ScrambleFail",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};};};if(yyfgreater(_inst.gmlpractice_success,0)){gml_Script_s_practice_running_qb(_inst,_other);}else {gml_Script_s_practice_running(_inst,_other);};break;}case 2:{if(yyfequal(_inst.gmlpractice_count,
1)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_Passing",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};}else {if(yyfequal(_inst.gmlpractice_success,yyfminus(__yy_gml_errCheck(_inst.gmlpractice_count),1))){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_Intro_SuccessPass"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,
global.gmlc_background,0.7);}else {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_PassingFail",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};};_inst.gmlscrimmage=0;_inst.gmldrivedir=(-1);if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir"),0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir");
};gml_Script_s_practice_passing(_inst,_other);break;}case 3:{if(yyfequal(_inst.gmlpractice_count,1)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_QB_Training"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};_inst.gmlscrimmage=0;_inst.gmldrivedir=(-1);_inst.gmlminutes=0;if(yyfequal(_inst.gmlpractice_count,1)){_inst.gmlseconds=30;};if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir"),
0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir");};gml_Script_s_practice_qb_mode(_inst,_other);break;}};}}function gml_GlobalScript_s_practice_passing(_inst,_other){(_inst.gmls_practice_passing=__yy_method(_inst,gml_Script_s_practice_passing));}function gml_Script_s_practice_passing(_inst,_other){{show_debug_message("s_practice_passing");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmlkicking=0;_inst.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),
20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=300;gml_Script_s_destroy_match_objects(_inst,_other);var gmlqb=instance_create_layer(0,0,"Players",107);var gmlrb=instance_create_layer(0,0,"Players",107);var gmlol1=instance_create_layer(0,0,"Players",107);var gmlol2=instance_create_layer(0,0,"Players",107);var gmlol3=instance_create_layer(0,
0,"Players",107);var gmlol4=instance_create_layer(0,0,"Players",107);var gmlol5=instance_create_layer(0,0,"Players",107);var gmlte=instance_create_layer(0,0,"Players",107);var gmlwr=instance_create_layer(0,0,"Players",107);instance_destroy(_inst,gmlrb);instance_destroy(_inst,gmlol2);instance_destroy(_inst,gmlol3);instance_destroy(_inst,gmlol4);instance_destroy(_inst,gmlol5);instance_destroy(_inst,gmlte);{var __yy__v1264=GetWithArray(106);for(var __yy__v1265 in __yy__v1264){if(!__yy__v1264.hasOwnProperty(__yy__v1265))continue;
var __yy__v1266=__yy__v1264[__yy__v1265];gml_Script_s_set_skills_and_skin(__yy__v1266,_inst);}};global.gmlmaster_ball=instance_create_layer(0,0,"Ball",110);instance_create_layer(0,0,"Ball",111);{var __yy__v1267=GetWithArray(104);for(var __yy__v1268 in __yy__v1267){if(!__yy__v1267.hasOwnProperty(__yy__v1268))continue;var __yy__v1269=__yy__v1267[__yy__v1268];{__yy__v1269.gmlstate=1;__yy__v1269.gmlcomm_stage=14;__yy__v1269.gmlcomm_txt="";__yy__v1269.gmlcomm_proceed=false;__yy__v1269.gmltap_msg=gml_Script_s_str(__yy__v1269,
_inst,"training_Throw1");if(yyGetBool(global.gmlgamepad)){__yy__v1269.gmlcomm_proceed=true;};}}};}}function gml_GlobalScript_s_reinstate_hof_player(_inst,_other){(_inst.gmls_reinstate_hof_player=__yy_method(_inst,gml_Script_s_reinstate_hof_player));}function gml_Script_s_reinstate_hof_player(_inst,_other){{return;{var __yy__v1270=GetWithArray(97);for(var __yy__v1271 in __yy__v1270){if(!__yy__v1270.hasOwnProperty(__yy__v1271))continue;var __yy__v1272=__yy__v1270[__yy__v1271];{if(yyGetBool(__yy__v1272.gmlviewing_hof_players)){
{gml_Script_slog(__yy__v1272,_inst,"s_reinstate_hof_player");if(yyGetBool(ds_list_find_index(__yy__v1272.gmlroster,__yy__v1272.gmlplayer_profile))){{gml_Script_s_create_message(__yy__v1272,_inst,"",gml_Script_s_str(__yy__v1272,_inst,"msg_Reinstate_OnRoster"),gml_Script_s_str(__yy__v1272,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,0.7);};}else {{ds_map_set(__yy__v1272.gmlplayer_profile,"salary",gml_Script_s_get_new_salary(__yy__v1272,_inst,__yy__v1272.gmlplayer_profile));
ds_map_set(__yy__v1272.gmlplayer_profile,"contract",1);gml_Script_btn_click_Profile_Pick(__yy__v1272,_inst);};};};};}}};}}function gml_GlobalScript_s_practice_running(_inst,_other){(_inst.gmls_practice_running=__yy_method(_inst,gml_Script_s_practice_running));}function gml_Script_s_practice_running(_inst,_other){{show_debug_message("s_practice_running");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmlkicking=0;_inst.gmlx_scrim=yyfminus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),
20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_scrim=yyfplus(_inst.gmlx_scrim,yyftime(500,__yy_gml_errCheck(_inst.gmldrivedir)));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=300;gml_Script_s_destroy_match_objects(_inst,_other);var gmlqb=instance_create_layer(0,0,"Players",107);var gmlol1=instance_create_layer(0,0,"Players",107);instance_create_layer(0,
0,"Players",107);var gmlsx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlqb).x),__yy_gml_errCheck(yyftime(60,__yy_gml_errCheck(_inst.gmldrivedir))));var gmlsy=yyInst(_inst,_other,gmlqb).y;var gmld=1;for(;yyfless(gmld,4);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{gmlsx=yyfplus(gmlsx,yyftime(120,__yy_gml_errCheck(_inst.gmldrivedir)));gml_Script_s_create_dummy(_inst,_other,gmlsx,gmlsy,random_range(1.5,1.5),0,40);}};gml_Script_s_create_boundary(_inst,
_other,2,300,250,2000);gml_Script_s_create_boundary(_inst,_other,3,300,350,2000);global.gmlmaster_ball=instance_create_layer(0,0,"Ball",110);instance_create_layer(0,0,"Ball",111);{var __yy__v1273=GetWithArray(106);for(var __yy__v1274 in __yy__v1273){if(!__yy__v1273.hasOwnProperty(__yy__v1274))continue;var __yy__v1275=__yy__v1273[__yy__v1274];gml_Script_s_set_skills_and_skin(__yy__v1275,_inst);}};{var __yy__v1276=GetWithArray(104);for(var __yy__v1277 in __yy__v1276){if(!__yy__v1276.hasOwnProperty(__yy__v1277))continue;
var __yy__v1278=__yy__v1276[__yy__v1277];{__yy__v1278.gmlstate=1;__yy__v1278.gmlcomm_stage=14;__yy__v1278.gmlcomm_txt="";__yy__v1278.gmlcomm_proceed=false;__yy__v1278.gmltap_msg=gml_Script_s_str(__yy__v1278,_inst,"training_Running1");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){__yy__v1278.gmltap_msg=gml_Script_s_str(__yy__v1278,_inst,"training_Running1b");};if(yyGetBool(global.gmlgamepad)){__yy__v1278.gmlcomm_proceed=true;};}}};}}function gml_GlobalScript_s_practice_running_qb(_inst,
_other){(_inst.gmls_practice_running_qb=__yy_method(_inst,gml_Script_s_practice_running_qb));}function gml_Script_s_practice_running_qb(_inst,_other){{show_debug_message("s_practice_running_qb");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmlkicking=0;_inst.gmlx_scrim=yyfminus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_scrim=yyfplus(_inst.gmlx_scrim,yyftime(600,__yy_gml_errCheck(_inst.gmldrivedir)));
_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=300;gml_Script_s_destroy_match_objects(_inst,_other);var gmlqb=instance_create_layer(0,0,"Players",107);var gmlrb=instance_create_layer(0,0,"Players",107);var gmlol1=instance_create_layer(0,0,"Players",107);var gmlol2=instance_create_layer(0,0,"Players",107);var gmlol3=instance_create_layer(0,0,"Players",107);var gmlol4=instance_create_layer(0,
0,"Players",107);var gmlol5=instance_create_layer(0,0,"Players",107);instance_destroy(_inst,gmlrb);instance_destroy(_inst,gmlol2);instance_destroy(_inst,gmlol3);instance_destroy(_inst,gmlol4);instance_destroy(_inst,gmlol5);{var __yy__v1279=GetWithArray(106);for(var __yy__v1280 in __yy__v1279){if(!__yy__v1279.hasOwnProperty(__yy__v1280))continue;var __yy__v1281=__yy__v1279[__yy__v1280];gml_Script_s_set_skills_and_skin(__yy__v1281,_inst);}};global.gmlmaster_ball=instance_create_layer(0,0,"Ball",110);instance_create_layer(0,
0,"Ball",111);{var __yy__v1282=GetWithArray(104);for(var __yy__v1283 in __yy__v1282){if(!__yy__v1282.hasOwnProperty(__yy__v1283))continue;var __yy__v1284=__yy__v1282[__yy__v1283];{__yy__v1284.gmlstate=1;__yy__v1284.gmlcomm_stage=14;__yy__v1284.gmlcomm_txt="";__yy__v1284.gmlcomm_proceed=false;__yy__v1284.gmltap_msg=gml_Script_s_str(__yy__v1284,_inst,"training_Throw3");if(yyGetBool(global.gmlgamepad)){__yy__v1284.gmlcomm_proceed=true;};}}};}}function gml_GlobalScript_s_create_dummy(_inst,_other){(_inst.gmls_create_dummy=__yy_method(_inst,
gml_Script_s_create_dummy));}function gml_Script_s_create_dummy(_inst,_other,argument0,argument1,argument2,argument3,argument4){{var gmldummy=instance_create_layer(0,0,"Players",109);yyInst(_inst,_other,gmldummy).x=argument0;yyInst(_inst,_other,gmldummy).y=argument1;yyInst(_inst,_other,gmldummy).gmlstart_x=argument0;yyInst(_inst,_other,gmldummy).gmlstart_y=argument1;yyInst(_inst,_other,gmldummy).gmlmove_speed=argument2;yyInst(_inst,_other,gmldummy).gmlrange_x=argument3;yyInst(_inst,_other,gmldummy).gmlrange_y=argument4;
yyInst(_inst,_other,gmldummy).gmledge_pause=yyfplus(250,__yy_gml_errCheck(irandom(1250)));}}function gml_GlobalScript_s_create_boundary(_inst,_other,argument0,argument1,argument2,argument3){(_inst.gmls_create_boundary=__yy_method(_inst,gml_Script_s_create_boundary));}function gml_Script_s_create_boundary(_inst,_other,argument0,argument1,argument2,argument3){{var gmltyp=argument0;var gmlbx=argument1;var gmlby=argument2;var gmllen=argument3;var gmlb=instance_create_layer(gmlbx,gmlby,"Shadows",116);yyInst(_inst,
_other,gmlb).gmlbound_type=gmltyp;yyInst(_inst,_other,gmlb).gmlbound_len=gmllen;}}function gml_GlobalScript_debug_scripts(_inst,_other){(_inst.gmls_debug_window_size=__yy_method(_inst,gml_Script_s_debug_window_size));}function gml_Script_s_debug_window_size(_inst,_other){{if(!yyGetBool(global.gmldebug)){return;};if(yyGetBool(keyboard_check_pressed(76))){{gml_Script_slogf(_inst,_other,"Force change resolution. Current %1p",window_get_height());if((yyGetBool(yyfequal(window_get_height(),480)))||(yyGetBool(yyfequal(window_get_height(),
810)))){window_set_size(1280,720);}else {window_set_size(640,480);};gml_Script_s_create_camera(_inst,_other);gml_Script_slogf(_inst,_other,"Window: %1x%2",window_get_width(),window_get_height());gml_Script_slogf(_inst,_other,"Screen: %1x%2",display_get_width(),display_get_height());};};}}function gml_GlobalScript_s_sound_kick(_inst,_other){(_inst.gmls_sound_kick=__yy_method(_inst,gml_Script_s_sound_kick));}function gml_Script_s_sound_kick(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_soundfx"))){return;};if(yyGetBool(audio_is_playing(6))){return;};var gmlsnd=audio_play_sound(6,1,false);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));}}function gml_GlobalScript_s_sound_throw(_inst,_other){(_inst.gmls_sound_throw=__yy_method(_inst,gml_Script_s_sound_throw));}function gml_Script_s_sound_throw(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){return;};var gmlsnd=audio_play_sound(12,1,false);audio_sound_pitch(gmlsnd,
random_range(0.8,1.2));}}function gml_GlobalScript_s_sound_post(_inst,_other){(_inst.gmls_sound_post=__yy_method(_inst,gml_Script_s_sound_post));}function gml_Script_s_sound_post(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){return;};var gmlsnd=audio_play_sound(11,1,false);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));}}function gml_GlobalScript_s_sound_audience_dis(_inst,_other){(_inst.gmls_sound_audience_dis=__yy_method(_inst,gml_Script_s_sound_audience_dis));
}function gml_Script_s_sound_audience_dis(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice))){return;};var gmlsnd=audio_play_sound(0,1,false);audio_sound_pitch(gmlsnd,random_range(0.8,1));}}function gml_GlobalScript_s_sound_audience_fg(_inst,_other){(_inst.gmls_sound_audience_fg=__yy_method(_inst,gml_Script_s_sound_audience_fg));}function gml_Script_s_sound_audience_fg(_inst,_other){{
if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice))){return;};var gmlsnd=audio_play_sound(1,1,false);audio_sound_pitch(gmlsnd,random_range(0.8,0.9));}}function gml_GlobalScript_s_sound_bounce(_inst,_other){(_inst.gmls_sound_bounce=__yy_method(_inst,gml_Script_s_sound_bounce));}function gml_Script_s_sound_bounce(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){
return;};gml_Script_slog(_inst,_other,"s_sound_bounce");var gmlsnd=audio_play_sound(4,1,false);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));}}function gml_GlobalScript_s_sound_tackle(_inst,_other){(_inst.gmls_sound_tackle=__yy_method(_inst,gml_Script_s_sound_tackle));}function gml_Script_s_sound_tackle(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){return;};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(global.gmlsnd_tackle_time),
50))){return;};var gmlball=global.gmlmaster_ball;var gmlsnd=audio_play_sound(13,1,false);var gmldist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);gmldist=clamp(yyfdivide(20,__yy_gml_errCheck(gmldist)),0,2);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));audio_sound_gain(gmlsnd,gmldist,0);global.gmlsnd_tackle_time=g_pBuiltIn.get_current_time();}}function gml_GlobalScript_s_sound_oof(_inst,_other){(_inst.gmls_sound_oof=__yy_method(_inst,gml_Script_s_sound_oof));
}function gml_Script_s_sound_oof(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){return;};var gmlsnd;var ___sw1034___=irandom(2);var ___swc1035___=-1;if(yyCompareVal(___sw1034___,0,g_GMLMathEpsilon,false)==0){___swc1035___=0;}else if(yyCompareVal(___sw1034___,1,g_GMLMathEpsilon,false)==0){___swc1035___=1;}else if(yyCompareVal(___sw1034___,2,g_GMLMathEpsilon,false)==0){___swc1035___=2;}switch(___swc1035___){case 0:{gmlsnd=audio_play_sound(7,1,false);
break;}case 1:{gmlsnd=audio_play_sound(8,1,false);break;}case 2:{gmlsnd=audio_play_sound(10,1,false);break;}};var gmlball=global.gmlmaster_ball;var gmldist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);gmldist=clamp(yyfdivide(20,__yy_gml_errCheck(gmldist)),0,2);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));audio_sound_gain(gmlsnd,gmldist,0);}}function gml_GlobalScript_s_sound_dive(_inst,_other){(_inst.gmls_sound_dive=__yy_method(_inst,gml_Script_s_sound_dive));
}function gml_Script_s_sound_dive(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){return;};var gmlball=global.gmlmaster_ball;var gmlsnd=audio_play_sound(12,1,false);var gmldist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);gmldist=clamp(yyfdivide(20,__yy_gml_errCheck(gmldist)),0,2);audio_sound_pitch(gmlsnd,1.5);audio_sound_gain(gmlsnd,gmldist,0);}}function gml_GlobalScript_s_sound_loop(_inst,_other,argument0){
(_inst.gmls_sound_loop=__yy_method(_inst,gml_Script_s_sound_loop));}function gml_Script_s_sound_loop(_inst,_other,argument0){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){return;};audio_play_sound(argument0,1,true);}}function gml_GlobalScript_s_qb_run(_inst,_other){(_inst.gmls_qb_run=__yy_method(_inst,gml_Script_s_qb_run));(_inst.gmls_qb_revert_throw=__yy_method(_inst,gml_Script_s_qb_revert_throw));}function gml_Script_s_qb_run(_inst,_other,argument0){{if((yyGetBool(yyfequal(yyInst(_inst,
_other,97).gmlgamepractice,3)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,4)))){_inst.gmlstate=0;}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlanim,11)))||(yyGetBool(argument0))){{global.gmlaxisr_flick=true;yyInst(_inst,_other,104).gmlplay_start=g_pBuiltIn.get_current_time();yyInst(_inst,_other,104).gmlrunning_play=true;_inst.gmlstate=5;_inst.gmllast_touched_by=_inst.gmlholder;_inst.gmlvelocity=0;_inst.gmlzvel=0;{var __yy__v1285=GetWithArray(_inst.gmlholder);
for(var __yy__v1286 in __yy__v1285){if(!__yy__v1285.hasOwnProperty(__yy__v1286))continue;var __yy__v1287=__yy__v1285[__yy__v1286];{__yy__v1287.gmlqb_rushing=true;__yy__v1287.gmlposition=2;gml_Script_s_set_anim(__yy__v1287,_inst,2);}}};};};};}}function gml_Script_s_qb_revert_throw(_inst,_other){{{var __yy__v1288=GetWithArray(_inst.gmlholder);for(var __yy__v1289 in __yy__v1288){if(!__yy__v1288.hasOwnProperty(__yy__v1289))continue;var __yy__v1290=__yy__v1288[__yy__v1289];{if((yyGetBool(yyfequal(__yy__v1290.gmlposition,
2)))&&(yyGetBool(__yy__v1290.gmlpmap))&&(yyGetBool(yyfequal(ds_map_find_value(__yy__v1290.gmlpmap,"position"),1)))){{__yy__v1290.hspeed=0;__yy__v1290.vspeed=0;__yy__v1290.gmlposition=1;gml_Script_s_set_anim(__yy__v1290,_inst,0);};}else {return;};}}};_inst.gmlstate=0;_inst.gmllast_touched_by=_inst.gmlholder;_inst.gmlvelocity=0;_inst.gmlzvel=0;}}function gml_GlobalScript_s_throw_ball(_inst,_other){(_inst.gmls_throw_ball=__yy_method(_inst,gml_Script_s_throw_ball));}function gml_Script_s_throw_ball(_inst,
_other){{var gmlcont=104;{var __yy__v1291=GetWithArray(_inst.gmlholder);for(var __yy__v1292 in __yy__v1291){if(!__yy__v1291.hasOwnProperty(__yy__v1292))continue;var __yy__v1293=__yy__v1291[__yy__v1292];{_inst.x=__yy__v1293.x;_inst.y=__yy__v1293.y;gml_Script_s_set_anim(__yy__v1293,_inst,12);if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlcont).gmldown,5)))){{if(yyGetBool(__yy__v1293.gmlpmap)){ds_map_set(__yy__v1293.gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1293.gmlpmap,
"stat_attempts")),1));};};};}}};if(yyGetBool(yyInst(_inst,_other,gmlcont).gmlrunning_play)){{gml_Script_slog(_inst,_other,yyfplus(__yy_gml_errCheck(string(_inst.gmldirec))," RUNNING PLAY"));};}else {{gml_Script_slog(_inst,_other,yyfplus(__yy_gml_errCheck(string(_inst.gmldirec))," PASSING PLAY"));{var __yy__v1294=GetWithArray(107);for(var __yy__v1295 in __yy__v1294){if(!__yy__v1294.hasOwnProperty(__yy__v1295))continue;var __yy__v1296=__yy__v1294[__yy__v1295];{if((yyGetBool(yyfequal(__yy__v1296.gmlposition,
2)))&&(yyGetBool(yyfless(yyInst(_inst,_other,104).gmldifficulty,0)))){{__yy__v1296.gmlstiff_arm=clamp(yyfminus(__yy_gml_errCheck(__yy__v1296.gmlstiff_arm),1),0,1);__yy__v1296.gmljumps=clamp(yyfminus(__yy_gml_errCheck(__yy__v1296.gmljumps),1),0,1);};};}}};};};_inst.gmlxthrow=_inst.x;_inst.gmlythrow=_inst.y;yyInst(_inst,_other,104).gmlplay_start=g_pBuiltIn.get_current_time();_inst.gmlstate=3;_inst.gmlholder=(-4);}}function gml_GlobalScript_s_record_frame(_inst,_other){(_inst.gmls_record_frame=__yy_method(_inst,
gml_Script_s_record_frame));}function gml_Script_s_record_frame(_inst,_other){{if(yyGetBool(global.gmlbrowser)){return;};var gmlframe=__yy_gml_array_create([_inst.x,_inst.y,_inst.gmlheight,_inst.sprite_index,_inst.image_index,_inst.image_xscale,_inst.depth,_inst.gmlhidden,_inst.gmlrotation]);ds_list_add(_inst.gmlmy_replay,gmlframe);if(yyfgreater(ds_list_size(_inst.gmlmy_replay),300)){ds_list_delete(_inst.gmlmy_replay,0);};}}function gml_GlobalScript_s_replay_frame(_inst,_other){(_inst.gmls_replay_frame=__yy_method(_inst,
gml_Script_s_replay_frame));}function gml_Script_s_replay_frame(_inst,_other){{if(yyGetBool(global.gmlbrowser)){return;};var gmlsz=ds_list_size(_inst.gmlmy_replay);if(yyfless(gmlsz,1)){return;};if((yyGetBool(yyfless(global.gmlreplay_frame,0)))||(yyGetBool(yyfgreaterequal(global.gmlreplay_frame,gmlsz)))){global.gmlreplay_frame=0;};var gmlframe=ds_list_find_value(_inst.gmlmy_replay,global.gmlreplay_frame);var gmllast_frame=ds_list_find_value(_inst.gmlmy_replay,global.gmlreplay_frame);if(yyfgreater(global.gmlreplay_frame,
0)){gmllast_frame=ds_list_find_value(_inst.gmlmy_replay,yyfminus(__yy_gml_errCheck(global.gmlreplay_frame),1));};_inst.x=lerp(gmllast_frame[__yy_gml_array_check_index(0,gmllast_frame)],gmlframe[__yy_gml_array_check_index(0,gmlframe)],frac(global.gmlreplay_frame));_inst.y=lerp(gmllast_frame[__yy_gml_array_check_index(1,gmllast_frame)],gmlframe[__yy_gml_array_check_index(1,gmlframe)],frac(global.gmlreplay_frame));_inst.gmlheight=lerp(gmllast_frame[__yy_gml_array_check_index(2,gmllast_frame)],gmlframe[__yy_gml_array_check_index(2,
gmlframe)],frac(global.gmlreplay_frame));_inst.sprite_index=gmlframe[__yy_gml_array_check_index(3,gmlframe)];_inst.image_index=gmlframe[__yy_gml_array_check_index(4,gmlframe)];_inst.image_xscale=gmlframe[__yy_gml_array_check_index(5,gmlframe)];_inst.depth=gmlframe[__yy_gml_array_check_index(6,gmlframe)];_inst.gmlhidden=gmlframe[__yy_gml_array_check_index(7,gmlframe)];_inst.gmlrotation=gmlframe[__yy_gml_array_check_index(8,gmlframe)];gml_Script_s_update_my_shadow(_inst,_other);if(yyGetBool(_inst.gmlhidden)){
layer_sprite_y(_inst.gmlmy_shadow,(-99999));};}}function gml_GlobalScript_s_start_replay(_inst,_other){(_inst.gmls_start_replay=__yy_method(_inst,gml_Script_s_start_replay));}function gml_Script_s_start_replay(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_start_replay");yyInst(_inst,_other,104).gmlstate=3;global.gmlreplay_frame=0;global.gmlreplay_end=argument0;{var __yy__v1297=GetWithArray(122);for(var __yy__v1298 in __yy__v1297){if(!__yy__v1297.hasOwnProperty(__yy__v1298))continue;var __yy__v1299=__yy__v1297[__yy__v1298];
instance_destroy(__yy__v1299);}};{var __yy__v1300=GetWithArray(105);for(var __yy__v1301 in __yy__v1300){if(!__yy__v1300.hasOwnProperty(__yy__v1301))continue;var __yy__v1302=__yy__v1300[__yy__v1301];gml_Script_s_replay_frame(__yy__v1302,_inst);}};if((yyGetBool(yyInst(_inst,_other,97).gmlgamepractice))||(yyGetBool(global.gmlbrowser))){{gml_Script_s_end_replay(_inst,_other);return;};};var ___sw1038___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_replays");var ___swc1039___=-1;if(yyCompareVal(___sw1038___,
0,g_GMLMathEpsilon,false)==0){___swc1039___=0;}else if(yyCompareVal(___sw1038___,1,g_GMLMathEpsilon,false)==0){___swc1039___=1;}else if(yyCompareVal(___sw1038___,2,g_GMLMathEpsilon,false)==0){___swc1039___=2;}switch(___swc1039___){case 0:{gml_Script_s_end_replay(_inst,_other);break;}case 1:{if(!yyGetBool(global.gmlreplay_do)){gml_Script_s_end_replay(_inst,_other);};break;}case 2:{break;}};}}function gml_GlobalScript_s_end_replay(_inst,_other){(_inst.gmls_end_replay=__yy_method(_inst,gml_Script_s_end_replay));
}function gml_Script_s_end_replay(_inst,_other){{gml_Script_slog(_inst,_other,"s_end_replay");yyInst(_inst,_other,104).gmlstate=2;var ___sw1042___=global.gmlreplay_end;var ___swc1043___=-1;if(yyCompareVal(___sw1042___,0,g_GMLMathEpsilon,false)==0){___swc1043___=0;}switch(___swc1043___){case 0:{gml_Script_s_set_up_play(_inst,_other,false);gml_Script_s_create_head2head_message(_inst,_other);break;}default :{gml_Script_s_action_result(_inst,_other,global.gmlreplay_end);break;}};}}function gml_GlobalScript_s_get_qb_pmap(_inst,
_other){(_inst.gmls_get_qb_pmap=__yy_method(_inst,gml_Script_s_get_qb_pmap));}function gml_Script_s_get_qb_pmap(_inst,_other){{{var __yy__v1303=GetWithArray(97);for(var __yy__v1304 in __yy__v1303){if(!__yy__v1303.hasOwnProperty(__yy__v1304))continue;var __yy__v1305=__yy__v1303[__yy__v1304];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1305.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1305.gmlroster,
gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){return gmlpmap;};}};}}};}}function gml_GlobalScript_s_create_message(_inst,_other){(_inst.gmls_create_message=__yy_method(_inst,gml_Script_s_create_message));(_inst.gmls_message_recenter=__yy_method(_inst,gml_Script_s_message_recenter));(_inst.gmls_create_message3=__yy_method(_inst,gml_Script_s_create_message3));(_inst.gmls_do_message=__yy_method(_inst,gml_Script_s_do_message));(_inst.gmls_msg=__yy_method(_inst,gml_Script_s_msg));}function gml_Script_s_create_message(_inst,
_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8){{if(yyfequal(argument8,_inst.undefined)){argument8=(-4);};}{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_create_message[",__yy_gml_errCheck(argument1)),"]"));var gmlbx1=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.33)),45);var gmlbx2=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.66)),45);var gmlbx3=yyfminus(__yy_gml_errCheck(display_get_gui_width()),
128);var gmlbg=instance_create_layer(0,0,"PopUps",78);var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),0,"PopUps",70);var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus((-8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5))),"PopUps",79);var gmlbtn_1=instance_create_layer(gmlbx1,224,"PopUps",34);var gmlbtn_2=instance_create_layer(gmlbx2,224,"PopUps",34);yyInst(_inst,_other,gmlbg).gmlinst_bg=gmlbg;
yyInst(_inst,_other,gmlbg).gmlinst_msg=gmlmsg;yyInst(_inst,_other,gmlbg).gmlinst_btn_1=gmlbtn_1;yyInst(_inst,_other,gmlbg).gmlinst_btn_2=gmlbtn_2;if((yyGetBool(yyfgreater(string_length(argument2),10)))||(yyGetBool(yyfgreater(string_length(argument3),10)))){{instance_destroy(_inst,gmlbtn_1);instance_destroy(_inst,gmlbtn_2);gmlbtn_1=instance_create_layer(gmlbx1,224,"PopUps",41);gmlbtn_2=instance_create_layer(gmlbx2,224,"PopUps",41);};};yyInst(_inst,_other,gmlbg).gmlcolour=argument6;yyInst(_inst,_other,
gmlbg).gmlalpha=argument7;yyInst(_inst,_other,gmltitle).gmlty=16;yyInst(_inst,_other,gmltitle).gmlshow_stars=false;if((yyGetBool(yyfequal(argument0,gml_Script_s_str(_inst,_other,"ui_News"))))||(yyGetBool(yyfequal(argument0,gml_Script_s_str(_inst,_other,"ui_Tip"))))){yyInst(_inst,_other,gmltitle).gmlshow_stars=true;};yyInst(_inst,_other,gmltitle).gmltext=string(argument0);yyInst(_inst,_other,gmlmsg).gmltext=argument1;yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;if(yyGetBool(instance_exists(98))){
yyInst(_inst,_other,gmlmsg).gmlmsg_width=260;};yyInst(_inst,_other,gmlbtn_1).gmltext=argument2;yyInst(_inst,_other,gmlbtn_2).gmltext=argument3;yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=argument4;yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=argument5;yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlmsg).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);if(yyfequal(argument0,"")){yyInst(_inst,_other,gmltitle).visible=false;};if(yyfequal(argument2,"")){{yyInst(_inst,_other,gmlbtn_1).visible=false;yyInst(_inst,_other,gmlbtn_2).x=gmlbx3;};};if(yyfequal(argument3,"")){{yyInst(_inst,_other,gmlbtn_2).visible=false;yyInst(_inst,_other,gmlbtn_1).x=gmlbx3;};};if(yyfnotequal(argument8,(-4))){{gml_Script_slog(_inst,_other,"Show profile for player");
var gmlprof_1=instance_create_layer(32,180,"PopUps",49);yyInst(_inst,_other,gmlprof_1).gmlpmap=argument8;yyInst(_inst,_other,gmlprof_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);};};}}function gml_Script_s_message_recenter(_inst,_other){{{var __yy__v1306=GetWithArray(_inst.gmlinst_bg);for(var __yy__v1307 in __yy__v1306){if(!__yy__v1306.hasOwnProperty(__yy__v1307))continue;var __yy__v1308=__yy__v1306[__yy__v1307];{__yy__v1308.image_xscale=1;__yy__v1308.image_yscale=1;__yy__v1308.image_xscale=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),
__yy_gml_errCheck(__yy__v1308.sprite_width));__yy__v1308.image_yscale=yyfdivide(__yy_gml_errCheck(display_get_gui_height()),__yy_gml_errCheck(__yy__v1308.sprite_height));}}};{var __yy__v1309=GetWithArray(_inst.gmlinst_msg);for(var __yy__v1310 in __yy__v1309){if(!__yy__v1309.hasOwnProperty(__yy__v1310))continue;var __yy__v1311=__yy__v1309[__yy__v1310];__yy__v1311.x=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);}};{var __yy__v1312=GetWithArray(_inst.gmlinst_btn_1);for(var __yy__v1313 in __yy__v1312){
if(!__yy__v1312.hasOwnProperty(__yy__v1313))continue;var __yy__v1314=__yy__v1312[__yy__v1313];__yy__v1314.x=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.33)),45);}};{var __yy__v1315=GetWithArray(_inst.gmlinst_btn_2);for(var __yy__v1316 in __yy__v1315){if(!__yy__v1315.hasOwnProperty(__yy__v1316))continue;var __yy__v1317=__yy__v1315[__yy__v1316];__yy__v1317.x=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.66)),45);}};}}function gml_Script_s_create_message3(_inst,
_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9){{var gmlbx1=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.25)),45);var gmlbx2=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5)),45);var gmlbx3=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.75)),45);var gmlbg=instance_create_layer(0,0,"PopUps",78);var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),
0.5),0,"PopUps",70);var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus((-8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5))),"PopUps",79);var gmlbtn_1=instance_create_layer(gmlbx1,224,"PopUps",34);var gmlbtn_2=instance_create_layer(gmlbx2,224,"PopUps",34);var gmlbtn_3=instance_create_layer(gmlbx3,224,"PopUps",34);if((yyGetBool(yyfgreater(string_length(argument2),10)))||(yyGetBool(yyfgreater(string_length(argument3),10)))||(yyGetBool(yyfgreater(string_length(argument4),
10)))){{instance_destroy(_inst,gmlbtn_1);instance_destroy(_inst,gmlbtn_2);instance_destroy(_inst,gmlbtn_3);gmlbtn_1=instance_create_layer(gmlbx1,224,"PopUps",41);gmlbtn_2=instance_create_layer(gmlbx2,224,"PopUps",41);gmlbtn_3=instance_create_layer(gmlbx3,224,"PopUps",41);};};yyInst(_inst,_other,gmlbg).gmlcolour=argument8;yyInst(_inst,_other,gmlbg).gmlalpha=argument9;yyInst(_inst,_other,gmltitle).gmlty=16;yyInst(_inst,_other,gmltitle).gmlshow_stars=false;if((yyGetBool(yyfequal(argument0,gml_Script_s_str(_inst,
_other,"ui_News"))))||(yyGetBool(yyfequal(argument0,gml_Script_s_str(_inst,_other,"ui_Tip"))))){yyInst(_inst,_other,gmltitle).gmlshow_stars=true;};yyInst(_inst,_other,gmltitle).gmltext=string(argument0);yyInst(_inst,_other,gmlmsg).gmltext=argument1;yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;if(yyGetBool(instance_exists(98))){yyInst(_inst,_other,gmlmsg).gmlmsg_width=260;};yyInst(_inst,_other,gmlbtn_1).gmltext=argument2;yyInst(_inst,_other,gmlbtn_2).gmltext=argument3;yyInst(_inst,
_other,gmlbtn_3).gmltext=argument4;yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=argument5;yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=argument6;yyInst(_inst,_other,gmlbtn_3).gmlonClickAction=argument7;yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlmsg).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),
1);yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_3).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);if(yyfequal(argument0,"")){yyInst(_inst,_other,gmltitle).visible=false;};}}function gml_Script_s_do_message(_inst,_other,argument0){{gml_Script_s_create_message(_inst,_other,"",argument0,gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,(-1),global.gmlc_background,1);}}function gml_Script_s_msg(_inst,
_other,argument0){{gml_Script_s_do_message(_inst,_other,argument0);}}function gml_GlobalScript_s_meter_change(_inst,_other){(_inst.gmls_meter_change=__yy_method(_inst,gml_Script_s_meter_change));}function gml_Script_s_meter_change(_inst,_other,argument0,argument1,argument2,argument3){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("s_meter_change: ",__yy_gml_errCheck(string(argument0)))," "),__yy_gml_errCheck(argument3)));var gmlbg=instance_create_layer(0,0,"PopUps",78);yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;
yyInst(_inst,_other,gmlbg).gmlalpha=1;yyInst(_inst,_other,gmlbg).alarm=__yy_gml_array_check(yyInst(_inst,_other,gmlbg).alarm,882480689);yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=100;yyInst(_inst,_other,gmlbg).gmlnew_room=argument2;var gmlobj=(-4);var ___sw1046___=argument0;var ___swc1047___=-1;if(yyCompareVal(___sw1046___,1,g_GMLMathEpsilon,false)==0){___swc1047___=0;}else if(yyCompareVal(___sw1046___,2,g_GMLMathEpsilon,false)==0){___swc1047___=1;}else if(yyCompareVal(___sw1046___,
3,g_GMLMathEpsilon,false)==0){___swc1047___=2;}else if(yyCompareVal(___sw1046___,4,g_GMLMathEpsilon,false)==0){___swc1047___=3;}else if(yyCompareVal(___sw1046___,5,g_GMLMathEpsilon,false)==0){___swc1047___=4;}else if(yyCompareVal(___sw1046___,6,g_GMLMathEpsilon,false)==0){___swc1047___=5;}else if(yyCompareVal(___sw1046___,7,g_GMLMathEpsilon,false)==0){___swc1047___=6;}else if(yyCompareVal(___sw1046___,8,g_GMLMathEpsilon,false)==0){___swc1047___=7;}else if(yyCompareVal(___sw1046___,9,g_GMLMathEpsilon,false)==0){
___swc1047___=8;}else if(yyCompareVal(___sw1046___,10,g_GMLMathEpsilon,false)==0){___swc1047___=9;}switch(___swc1047___){case 0:{gmlobj=instance_create_layer(0,0,"PopUps",54);yyInst(_inst,_other,gmlobj).gmlold_percent=argument1;break;}case 1:{gmlobj=instance_create_layer(0,0,"PopUps",56);yyInst(_inst,_other,gmlobj).gmlold_percent=argument1;break;}case 2:{gmlobj=instance_create_layer(0,0,"PopUps",49);yyInst(_inst,_other,gmlobj).gmlold_condition=argument1;yyInst(_inst,_other,gmlobj).gmlpmap=yyInst(_inst,
_other,97).gmlplayer_profile;gml_Script_s_load_profile_uni(_inst,_other,gmlobj);yyInst(_inst,_other,gmlobj).gmlactive=false;break;}case 3:{gmlobj=instance_create_layer(0,0,"PopUps",65);yyInst(_inst,_other,gmlobj).gmlold_percent=argument1;break;}case 4:{gmlobj=instance_create_layer(0,0,"PopUps",49);yyInst(_inst,_other,gmlobj).gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;gml_Script_s_load_profile_uni(_inst,_other,gmlobj);yyInst(_inst,_other,gmlobj).gmlflash_attitude=true;yyInst(_inst,_other,gmlobj).gmlactive=false;
if(yyfless(argument1,ds_map_find_value(yyInst(_inst,_other,gmlobj).gmlpmap,"attitude"))){yyInst(_inst,_other,gmlobj).gmlshow_arrow=1;}else {if(yyfgreater(argument1,ds_map_find_value(yyInst(_inst,_other,gmlobj).gmlpmap,"attitude"))){yyInst(_inst,_other,gmlobj).gmlshow_arrow=(-1);};};yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;break;}case 5:{gmlobj=instance_create_layer(0,0,"PopUps",61);yyInst(_inst,_other,gmlobj).gmlflash_rating=true;yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;
break;}case 6:{gmlobj=instance_create_layer(0,0,"PopUps",63);yyInst(_inst,_other,gmlobj).gmlflash_rating=true;yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;break;}case 7:{gmlobj=instance_create_layer(0,0,"PopUps",64);yyInst(_inst,_other,gmlobj).gmlflash=true;yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;break;}case 8:{gmlobj=instance_create_layer(0,0,"PopUps",27);yyInst(_inst,_other,gmlobj).gmlold_percent=argument1;break;}case 9:{gmlobj=instance_create_layer(0,
0,"PopUps",32);yyInst(_inst,_other,gmlobj).gmlflash=true;yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;break;}};yyInst(_inst,_other,gmlobj).x=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlobj).sprite_width),0.5)));yyInst(_inst,_other,gmlobj).y=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_height),0.5)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,
_other,gmlobj).sprite_height),0.5)));yyInst(_inst,_other,gmlobj).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);if(yyfnotequal(argument3,"")){{var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyftime(__yy_gml_errCheck(display_get_gui_height()),0.35),"PopUps",79);yyInst(_inst,_other,gmlmsg).gmltext=argument3;yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlmsg).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=0;draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);var gmlh=yyfplus(12,__yy_gml_errCheck(gml_Script_string_hd_height_ext(_inst,_other,argument3,(-1),yyInst(_inst,_other,gmlmsg).gmlmsg_width)));yyInst(_inst,_other,gmlobj).y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlmsg).y),__yy_gml_errCheck(gmlh));var gmlbtn_1=instance_create_layer(yyfminus(__yy_gml_errCheck(display_get_gui_width()),
128),224,"PopUps",34);yyInst(_inst,_other,gmlbtn_1).gmltext=gml_Script_s_str(_inst,_other,"ui_Continue");yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=kgml_Script_s_meter_change_end;yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);};};}}function gml_GlobalScript_s_meter_change_end(_inst,_other){(_inst.gmls_meter_change_end=__yy_method(_inst,gml_Script_s_meter_change_end));}function gml_Script_s_meter_change_end(_inst,_other){{if(yyfgreaterequal(gml_Script_s_get_morale(_inst,
_other),100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_MORALE100");};{var __yy__v1318=GetWithArray(78);for(var __yy__v1319 in __yy__v1318){if(!__yy__v1318.hasOwnProperty(__yy__v1319))continue;var __yy__v1320=__yy__v1318[__yy__v1319];{if(yyGetBool(__yy__v1320.gmlnew_room)){{gml_Script_slog(__yy__v1320,_inst,"s_meter_change_end 1 [new_room]");room_goto(__yy__v1320.gmlnew_room);};}else {if(yyfequal(yyInst(_inst,_other,97).gmlstage,2)){{gml_Script_slog(__yy__v1320,_inst,"s_meter_change_end 2 [STAGE_DRAFT]");
if(yyfequal(gml_Script_s_dilemma_college_check_chained(__yy__v1320,_inst),false)){{room_goto(14);gml_Script_s_msg_clear(__yy__v1320,_inst);};};};}else {{gml_Script_slog(__yy__v1320,_inst,"s_meter_change_end 3 [Other]");if(yyfequal(gml_Script_s_dilemma_college_check_chained(__yy__v1320,_inst),false)){{gml_Script_s_play(__yy__v1320,_inst,1);gml_Script_s_msg_clear(__yy__v1320,_inst);};};};};};}}};}}function gml_GlobalScript_s_notification(_inst,_other,argument0,argument1){(_inst.gmls_notification=__yy_method(_inst,
gml_Script_s_notification));}function gml_Script_s_notification(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus(">>> s_notification: ",__yy_gml_errCheck(argument0)));gml_Script_slog(_inst,_other,argument1);var gmltitle=argument0;var gmltext=argument1;if(yyfequal(window_get_cursor(),(-1))){return;};var gmlntf=instance_create_layer(0,0,"PopUps",89);yyInst(_inst,_other,gmlntf).depth=(-100);yyInst(_inst,_other,gmlntf).gmltitle=gmltitle;yyInst(_inst,_other,gmlntf).gmltext=gmltext;
yyInst(_inst,_other,gmlntf).gmltext_col=16777215;yyInst(_inst,_other,gmlntf).gmlcolour=make_color_rgb(79,143,35);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,gmlntf).gmlcolour=make_color_rgb(210,210,10);yyInst(_inst,_other,gmlntf).gmltext_shadow=true;};};if(yyfgreater(ds_list_size(yyInst(_inst,_other,97).gmllist_notifications),0)){yyInst(_inst,_other,gmlntf).visible=false;};ds_list_add(yyInst(_inst,_other,97).gmllist_notifications,gmlntf);gml_Script_slog(_inst,_other,
yyfplus("Notification count = ",__yy_gml_errCheck(string(ds_list_size(yyInst(_inst,_other,97).gmllist_notifications)))));}}function gml_GlobalScript_s_msg_clear(_inst,_other){(_inst.gmls_msg_clear=__yy_method(_inst,gml_Script_s_msg_clear));}function gml_Script_s_msg_clear(_inst,_other){{if(yyGetBool(instance_exists(104))){{{var __yy__v1321=GetWithArray(78);for(var __yy__v1322 in __yy__v1321){if(!__yy__v1321.hasOwnProperty(__yy__v1322))continue;var __yy__v1323=__yy__v1321[__yy__v1322];instance_destroy(__yy__v1323);
}};{var __yy__v1324=GetWithArray(70);for(var __yy__v1325 in __yy__v1324){if(!__yy__v1324.hasOwnProperty(__yy__v1325))continue;var __yy__v1326=__yy__v1324[__yy__v1325];if(yyfless(__yy__v1326.depth,0)){instance_destroy(__yy__v1326);};}};{var __yy__v1327=GetWithArray(79);for(var __yy__v1328 in __yy__v1327){if(!__yy__v1327.hasOwnProperty(__yy__v1328))continue;var __yy__v1329=__yy__v1327[__yy__v1328];if(yyfless(__yy__v1329.depth,0)){instance_destroy(__yy__v1329);};}};{var __yy__v1330=GetWithArray(34);for(var __yy__v1331 in __yy__v1330){
if(!__yy__v1330.hasOwnProperty(__yy__v1331))continue;var __yy__v1332=__yy__v1330[__yy__v1331];if(yyfless(__yy__v1332.depth,0)){instance_destroy(__yy__v1332);};}};{var __yy__v1333=GetWithArray(41);for(var __yy__v1334 in __yy__v1333){if(!__yy__v1333.hasOwnProperty(__yy__v1334))continue;var __yy__v1335=__yy__v1333[__yy__v1334];if(yyfless(__yy__v1335.depth,0)){instance_destroy(__yy__v1335);};}};{var __yy__v1336=GetWithArray(89);for(var __yy__v1337 in __yy__v1336){if(!__yy__v1336.hasOwnProperty(__yy__v1337))continue;
var __yy__v1338=__yy__v1336[__yy__v1337];if(yyfless(__yy__v1338.depth,0)){instance_destroy(__yy__v1338);};}};ds_list_clear(yyInst(_inst,_other,97).gmllist_notifications);};}else {{{var __yy__v1339=GetWithArray((-3));for(var __yy__v1340 in __yy__v1339){if(!__yy__v1339.hasOwnProperty(__yy__v1340))continue;var __yy__v1341=__yy__v1339[__yy__v1340];if(yyflessequal(__yy__v1341.depth,0)){instance_destroy(__yy__v1341);};}};ds_list_clear(yyInst(_inst,_other,97).gmllist_notifications);};};}}function gml_GlobalScript_s_msg_clear_info_draft(_inst,
_other){(_inst.gmls_msg_clear_info_draft=__yy_method(_inst,gml_Script_s_msg_clear_info_draft));}function gml_Script_s_msg_clear_info_draft(_inst,_other){{{var __yy__v1342=GetWithArray(70);for(var __yy__v1343 in __yy__v1342){if(!__yy__v1342.hasOwnProperty(__yy__v1343))continue;var __yy__v1344=__yy__v1342[__yy__v1343];if(yyfless(__yy__v1344.depth,0)){instance_destroy(__yy__v1344);};}};{var __yy__v1345=GetWithArray(78);for(var __yy__v1346 in __yy__v1345){if(!__yy__v1345.hasOwnProperty(__yy__v1346))continue;var __yy__v1347=__yy__v1345[__yy__v1346];
instance_destroy(__yy__v1347);}};{var __yy__v1348=GetWithArray(34);for(var __yy__v1349 in __yy__v1348){if(!__yy__v1348.hasOwnProperty(__yy__v1349))continue;var __yy__v1350=__yy__v1348[__yy__v1349];if(yyfless(__yy__v1350.depth,0)){instance_destroy(__yy__v1350);};}};{var __yy__v1351=GetWithArray(79);for(var __yy__v1352 in __yy__v1351){if(!__yy__v1351.hasOwnProperty(__yy__v1352))continue;var __yy__v1353=__yy__v1351[__yy__v1352];if(yyfless(__yy__v1353.depth,0)){instance_destroy(__yy__v1353);};}};gml_Script_s_do_banner_draft(_inst,
_other);}}function gml_GlobalScript_s_add_news(_inst,_other){(_inst.gmls_add_news=__yy_method(_inst,gml_Script_s_add_news));(_inst.gmls_add_news_if_new=__yy_method(_inst,gml_Script_s_add_news_if_new));(_inst.gmls_remove_news=__yy_method(_inst,gml_Script_s_remove_news));(_inst.gmls_add_news_dyn=__yy_method(_inst,gml_Script_s_add_news_dyn));}function gml_Script_s_add_news(_inst,_other,argument0){{if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gml_Script_s_add_news_dyn(_inst,_other,"web",argument0,
gml_Script_s_get_qb_pmap(_inst,_other),false);}else {ds_list_add(yyInst(_inst,_other,97).gmlnewslist,argument0);};}}function gml_Script_s_add_news_if_new(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlnewslist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmloldMsg=ds_list_find_value(yyInst(_inst,_other,97).gmlnewslist,gmli);if(yyfequal(gmloldMsg,argument0)){{gml_Script_slog(_inst,_other,
yyfplus(yyfplus("skip news[",__yy_gml_errCheck(string(argument0))),"]"));return;};};}};gml_Script_s_add_news(_inst,_other,argument0);}}function gml_Script_s_remove_news(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlnewslist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmloldMsg=ds_list_find_value(yyInst(_inst,_other,97).gmlnewslist,gmli);if(yyfequal(gmloldMsg,argument0)){{gml_Script_slog(_inst,
_other,yyfplus(yyfplus(yyfplus(yyfplus("s_remove_news [",__yy_gml_errCheck(string(gmloldMsg))),"] at #"),__yy_gml_errCheck(string(gmli)))," "));ds_list_delete(yyInst(_inst,_other,97).gmlnewslist,gmli);return;};};}};}}function gml_Script_s_add_news_dyn(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfnotequal(argument2,(-4))){argument1=gml_Script_s_parse_player_message(_inst,_other,argument1,argument2);};var gmlnews=ds_map_create();ds_map_set(gmlnews,"typ",argument0);ds_map_set(gmlnews,
"txt",argument1);ds_map_set(gmlnews,"pmap_teamid",(-1));ds_map_set(gmlnews,"pmap_position",(-1));ds_map_set(gmlnews,"pmap_skin",(-1));ds_map_set(gmlnews,"pmap_face_x",(-1));ds_map_set(gmlnews,"pmap_face_y",(-1));if(yyfnotequal(argument2,(-4))){{ds_map_set(gmlnews,"pmap_teamid",real(ds_map_find_value(argument2,"teamid")));ds_map_set(gmlnews,"pmap_position",real(ds_map_find_value(argument2,"position")));ds_map_set(gmlnews,"pmap_skin",real(ds_map_find_value(argument2,"skin")));ds_map_set(gmlnews,"pmap_face_x",
real(ds_map_find_value(argument2,"face_x")));ds_map_set(gmlnews,"pmap_face_y",real(ds_map_find_value(argument2,"face_y")));};};ds_list_add(yyInst(_inst,_other,97).gmllist_news_dyn,gmlnews);gml_Script_slog(_inst,_other,yyfplus("Added dynamic news: ",__yy_gml_errCheck(argument1)));if(yyGetBool(argument3)){gml_Script_s_check_for_news(_inst,_other);};}}function gml_GlobalScript_s_check_for_news(_inst,_other){(_inst.gmls_check_for_news=__yy_method(_inst,gml_Script_s_check_for_news));}function gml_Script_s_check_for_news(_inst,
_other){{{var __yy__v1354=GetWithArray(97);for(var __yy__v1355 in __yy__v1354){if(!__yy__v1354.hasOwnProperty(__yy__v1355))continue;var __yy__v1356=__yy__v1354[__yy__v1355];{if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{if(yyfgreater(ds_list_size(__yy__v1356.gmllist_news_dyn),0)){{var gmlnews=ds_list_find_value(__yy__v1356.gmllist_news_dyn,0);if(yyGetBool(gmlnews)){{if(yyfequal(ds_map_find_value(gmlnews,"typ"),"msg")){gml_Script_s_create_message(__yy__v1356,_inst,gml_Script_s_str(__yy__v1356,_inst,
"ui_News"),ds_map_find_value(gmlnews,"txt"),"",gml_Script_s_str(__yy__v1356,_inst,"ui_Continue"),"",kgml_Script_s_news_clear,global.gmlc_background,1);}else {gml_Script_s_create_news_dyn_message(__yy__v1356,_inst,gmlnews);};};};ds_list_delete(__yy__v1356.gmllist_news_dyn,0);return;};};};}else {{if(yyfgreater(ds_list_size(__yy__v1356.gmlnewslist),0)){{gml_Script_s_create_message(__yy__v1356,_inst,gml_Script_s_str(__yy__v1356,_inst,"ui_News"),ds_list_find_value(__yy__v1356.gmlnewslist,0),"",gml_Script_s_str(__yy__v1356,
_inst,"ui_Continue"),"",kgml_Script_s_news_clear,global.gmlc_background,1);ds_list_delete(__yy__v1356.gmlnewslist,0);return;};};};};}}};gml_Script_s_check_intro(_inst,_other);}}function gml_GlobalScript_s_news_clear(_inst,_other){(_inst.gmls_news_clear=__yy_method(_inst,gml_Script_s_news_clear));}function gml_Script_s_news_clear(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyfequal(yyInst(_inst,_other,97).gmlstage,1)){gml_Script_s_savegame(_inst,_other);};gml_Script_s_check_for_news(_inst,
_other);}}function gml_GlobalScript_s_do_banner_draft(_inst,_other){(_inst.gmls_do_banner_draft=__yy_method(_inst,gml_Script_s_do_banner_draft));(_inst.gmls_do_banner_season_review=__yy_method(_inst,gml_Script_s_do_banner_season_review));}function gml_Script_s_do_banner_draft(_inst,_other){{var gmlmsg=instance_create_layer(0,0,"PopUps",112);yyInst(_inst,_other,gmlmsg).gmlflash=false;yyInst(_inst,_other,gmlmsg).gmlcol=16777215;yyInst(_inst,_other,gmlmsg).alarm=__yy_gml_array_check(yyInst(_inst,_other,
gmlmsg).alarm,2633220098);yyInst(_inst,_other,gmlmsg).alarm[__yy_gml_array_check_index_set(0)]=80;var gmltxt=gml_Script_s_str(_inst,_other,"ui_DraftRound");gmltxt=string_replace(gmltxt,"$num",string(yyInst(_inst,_other,97).gmldraft_round));yyInst(_inst,_other,gmlmsg).gmltext=gmltxt;yyInst(_inst,_other,97).gmldodraftbanner=false;}}function gml_Script_s_do_banner_season_review(_inst,_other){{var gmlmsg=instance_create_layer(0,0,"PopUps",112);yyInst(_inst,_other,gmlmsg).gmlflash=false;yyInst(_inst,_other,
gmlmsg).gmlcol=16777215;yyInst(_inst,_other,gmlmsg).alarm=__yy_gml_array_check(yyInst(_inst,_other,gmlmsg).alarm,2633220098);yyInst(_inst,_other,gmlmsg).alarm[__yy_gml_array_check_index_set(0)]=80;var gmltxt=gml_Script_s_str(_inst,_other,"ui_SeasonReview");gmltxt=string_replace(gmltxt,"$num",string(yyInst(_inst,_other,97).gmldraft_round));yyInst(_inst,_other,gmlmsg).gmltext=gmltxt;}}function gml_GlobalScript_s_do_review_message(_inst,_other){(_inst.gmls_do_review_message=__yy_method(_inst,gml_Script_s_do_review_message));
}function gml_Script_s_do_review_message(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_StoreReview");gmlmsg=string_replace(gmlmsg,"$num",string(5));ds_map_set(yyInst(_inst,_other,97).gmlmap_options,"done_review_reward",1);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_btn_response_review_no,kgml_Script_btn_response_review_yes,global.gmlc_background,1);}}function gml_GlobalScript_btn_response_review_yes(_inst,
_other){(_inst.gmlbtn_response_review_yes=__yy_method(_inst,gml_Script_btn_response_review_yes));(_inst.gmlbtn_response_review_no=__yy_method(_inst,gml_Script_btn_response_review_no));}function gml_Script_btn_response_review_yes(_inst,_other){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,5);gml_Script_s_savegame(_inst,_other);gml_Script_s_msg_clear(_inst,_other);var ___sw1050___=g_pBuiltIn.get_os_type();var ___swc1051___=-1;if(yyCompareVal(___sw1050___,3,g_GMLMathEpsilon,
false)==0){___swc1051___=0;}else if(yyCompareVal(___sw1050___,4,g_GMLMathEpsilon,false)==0){___swc1051___=1;}switch(___swc1051___){case 0:{url_open("https://apps.apple.com/app/retrobowl/id1478902583");break;}case 1:{url_open("https://play.google.com/store/apps/details?id=com.newstargames.retrobowl");break;}default :{url_open("https://www.newstargames.com");break;}};}}function gml_Script_btn_response_review_no(_inst,_other){{gml_Script_s_save_options(_inst,_other);gml_Script_s_msg_clear(_inst,_other);
}}function gml_GlobalScript_s_edit_field(_inst,_other){(_inst.gmls_edit_field=__yy_method(_inst,gml_Script_s_edit_field));}function gml_Script_s_edit_field(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{gml_Script_slog(_inst,_other,"s_edit_text");var gmlbg=instance_create_layer(0,0,"PopUps",78);yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),
0.5),32,"PopUps",70);yyInst(_inst,_other,gmltitle).gmlty=16;yyInst(_inst,_other,gmltitle).gmltext=gml_Script_s_str(_inst,_other,"ui_Editor");yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.35);var gmltxt_1=instance_create_layer(yyfminus(__yy_gml_errCheck(gmltx),10),72,"PopUps",74);yyInst(_inst,_other,gmltxt_1).gmltext=argument0;yyInst(_inst,_other,gmltxt_1).gmlhalign=2;yyInst(_inst,_other,
gmltxt_1).gmldraw_box=false;yyInst(_inst,_other,gmltxt_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,97).gmledit_box1=instance_create_layer(gmltx,64,"PopUps",71);yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box1).image_xscale=10;yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box1).gmltext=argument2;var gmlvbox=instance_create_layer(64,
48,"PopUps",66);yyInst(_inst,_other,gmlvbox).image_xscale=2.22;yyInst(_inst,_other,gmlvbox).image_yscale=0.38;yyInst(_inst,_other,gmlvbox).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlvbox).gmltitle=gml_Script_s_str(_inst,_other,"ui_Details");if(yyfnotequal(argument1,"")){{var gmltxt_2=instance_create_layer(yyfminus(__yy_gml_errCheck(gmltx),10),104,"PopUps",74);yyInst(_inst,_other,gmltxt_2).gmltext=argument1;yyInst(_inst,_other,gmltxt_2).gmlhalign=2;
yyInst(_inst,_other,gmltxt_2).gmldraw_box=false;yyInst(_inst,_other,gmltxt_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,97).gmledit_box2=instance_create_layer(gmltx,96,"PopUps",71);yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box2).image_xscale=10;yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,yyInst(_inst,_other,97).gmledit_box2).gmltext=argument3;
yyInst(_inst,_other,gmlvbox).image_yscale=0.6;};};var gmlbtn_2=instance_create_layer(yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5)),45),224,"PopUps",34);yyInst(_inst,_other,gmlbtn_2).gmltext=gml_Script_s_str(_inst,_other,"ui_Confirm");yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=kgml_Script_s_edit_confirm_profile;yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlbtn_head=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),
0.71),70,"PopUps",85);yyInst(_inst,_other,gmlbtn_head).gmlskin=argument4;yyInst(_inst,_other,gmlbtn_head).gmlface_x=argument5;yyInst(_inst,_other,gmlbtn_head).gmlface_y=argument6;yyInst(_inst,_other,gmlbtn_head).gmlcoach_heads=argument7;yyInst(_inst,_other,gmlbtn_head).gmlonClickAction=kgml_Script_s_goto_rm_choose_face;yyInst(_inst,_other,gmlbtn_head).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);gml_Script_slog(_inst,_other,yyfplus("face_x=",__yy_gml_errCheck(string(argument5))));
gml_Script_slog(_inst,_other,yyfplus("face_y=",__yy_gml_errCheck(string(argument6))));}}function gml_GlobalScript_s_edit_cancel(_inst,_other){(_inst.gmls_edit_cancel=__yy_method(_inst,gml_Script_s_edit_cancel));}function gml_Script_s_edit_cancel(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_s_edit_confirm_profile(_inst,_other){(_inst.gmls_edit_confirm_profile=__yy_method(_inst,gml_Script_s_edit_confirm_profile));(_inst.gmls_update_boss_profile=__yy_method(_inst,gml_Script_s_update_boss_profile));
}function gml_Script_s_edit_confirm_profile(_inst,_other){{{var __yy__v1357=GetWithArray(97);for(var __yy__v1358 in __yy__v1357){if(!__yy__v1357.hasOwnProperty(__yy__v1358))continue;var __yy__v1359=__yy__v1357[__yy__v1358];{var gmltxt1=yyInst(_inst,_other,__yy__v1359.gmledit_box1).gmltext;var gmltxt2=yyInst(_inst,_other,__yy__v1359.gmledit_box2).gmltext;if(yyGetBool(__yy__v1359.gmlplayer_profile)){{if(yyfgreater(string_length(gmltxt1),0)){ds_map_set(__yy__v1359.gmlplayer_profile,"fname",gmltxt1);};if(yyfgreater(string_length(gmltxt1),
0)){ds_map_set(__yy__v1359.gmlplayer_profile,"lname",gmltxt2);};gml_Script_s_msg_clear(__yy__v1359,_inst);var ___sw1054___=ds_map_find_value(__yy__v1359.gmlplayer_profile,"position");var ___swc1055___=-1;if(yyCompareVal(___sw1054___,100,g_GMLMathEpsilon,false)==0){___swc1055___=0;}else if(yyCompareVal(___sw1054___,102,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1054___,101,g_GMLMathEpsilon,false)==0){___swc1055___=1;}switch(___swc1055___){case 0:{gml_Script_s_update_boss_profile(__yy__v1359,_inst);
room_goto(46);break;}case 1:{room_goto(23);break;}default :{room_goto(22);break;}};};};}}};}}function gml_Script_s_update_boss_profile(_inst,_other){{{var __yy__v1360=GetWithArray(97);for(var __yy__v1361 in __yy__v1360){if(!__yy__v1360.hasOwnProperty(__yy__v1361))continue;var __yy__v1362=__yy__v1360[__yy__v1361];{__yy__v1362.gmlfname=ds_map_find_value(__yy__v1362.gmlboss_profile,"fname");__yy__v1362.gmllname=ds_map_find_value(__yy__v1362.gmlboss_profile,"lname");}}};}}function gml_GlobalScript_s_msg_timeouts(_inst,
_other){(_inst.gmls_msg_timeouts=__yy_method(_inst,gml_Script_s_msg_timeouts));}function gml_Script_s_msg_timeouts(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,97).gmltimeout_message_done=true;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TimeOuts"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",16777215,0.7);}}function gml_GlobalScript_s_get_record(_inst,_other,argument0){(_inst.gmls_get_record=__yy_method(_inst,
gml_Script_s_get_record));}function gml_Script_s_get_record(_inst,_other,argument0){{var gmlmap_id=argument0;{var __yy__v1363=GetWithArray(97);for(var __yy__v1364 in __yy__v1363){if(!__yy__v1363.hasOwnProperty(__yy__v1364))continue;var __yy__v1365=__yy__v1363[__yy__v1364];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1365.gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v1365.gmlrecords,gmli);
if(yyGetBool(ds_exists(gmlmap,1))){{if((yyGetBool(ds_map_exists(gmlmap,"tag")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),gmlmap_id)))){{return gmlmap;};};};};}};return(-4);}}};}}function gml_GlobalScript_s_check_record(_inst,_other){(_inst.gmls_check_record=__yy_method(_inst,gml_Script_s_check_record));}function gml_Script_s_check_record(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){return;};if(yyGetBool(global.gmlexhibition)){
return;};var gmlmap=gml_Script_s_get_record(_inst,_other,argument0);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"stat")))&&(yyGetBool(yyfgreater(argument1,ds_map_find_value(gmlmap,"stat"))))){{if((yyGetBool(yyfgreater(ds_map_find_value(gmlmap,"stat"),0)))&&(yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),17)))&&(yyGetBool(instance_exists(110)))){{global.gmlreplay_do=true;gml_Script_s_notification(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_NewRecord")),
"!"),gml_Script_s_str(_inst,_other,ds_map_find_value(gmlmap,"tag")));};};ds_map_set(gmlmap,"stat",argument1);if(yyfnotequal(argument2,"")){ds_map_set(gmlmap,"qbname",argument2);};if(yyfnotequal(argument3,"")){ds_map_set(gmlmap,"playername",argument3);};ds_map_set(gmlmap,"year",yyInst(_inst,_other,97).gmlyear);ds_map_set(gmlmap,"week",yyInst(_inst,_other,97).gmlweek);ds_map_set(gmlmap,"team",ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,"tla"));if(yyfnotequal(argument4,"")){ds_map_set(gmlmap,
"opponent",argument4);};};};}}function gml_GlobalScript_s_check_record_text(_inst,_other){(_inst.gmls_check_record_text=__yy_method(_inst,gml_Script_s_check_record_text));}function gml_Script_s_check_record_text(_inst,_other,argument0,argument1,argument2){{if(yyGetBool(global.gmlexhibition)){return;};var gmlmap=gml_Script_s_get_record(_inst,_other,argument0);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"stat")))&&(yyGetBool(yyfgreater(argument1,ds_map_find_value(gmlmap,"stat"))))){
{ds_map_set(gmlmap,"stat",argument1);ds_map_set(gmlmap,"stat_text",argument2);ds_map_set(gmlmap,"year",yyInst(_inst,_other,97).gmlyear);ds_map_set(gmlmap,"week",yyInst(_inst,_other,97).gmlweek);};};}}function gml_GlobalScript_s_sort_record_list(_inst,_other){(_inst.gmls_sort_record_list=__yy_method(_inst,gml_Script_s_sort_record_list));}function gml_Script_s_sort_record_list(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_sort_record_list");var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(argument0),
0)){{var gmllowest=(-4);var gmllowestorder=0;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);var gmlorder=0;if((yyGetBool(ds_exists(gmlpmap,1)))&&(yyGetBool(ds_map_exists(gmlpmap,"order")))){gmlorder=real(ds_map_find_value(gmlpmap,"order"));};if((yyGetBool(!yyGetBool(gmllowest)))||(yyGetBool(yyfless(gmlorder,gmllowestorder)))){{gmllowest=gmlpmap;
gmllowestorder=gmlorder;};};}};ds_list_add(gmlsortedlist,gmllowest);var gmli=ds_list_find_index(argument0,gmllowest);ds_list_delete(argument0,gmli);}};ds_list_destroy(argument0);argument0=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_get_player_name_for_record(_inst,_other,argument0){(_inst.gmls_get_player_name_for_record=__yy_method(_inst,gml_Script_s_get_player_name_for_record));}function gml_Script_s_get_player_name_for_record(_inst,_other,argument0){{var gmlpmap=argument0;return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,
_other,ds_map_find_value(gmlpmap,"position")))," "),__yy_gml_errCheck(string_copy(ds_map_find_value(gmlpmap,"fname"),1,1))),"."),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));}}function gml_GlobalScript_s_check_repeat_retrobowls(_inst,_other){(_inst.gmls_check_repeat_retrobowls=__yy_method(_inst,gml_Script_s_check_repeat_retrobowls));}function gml_Script_s_check_repeat_retrobowls(_inst,_other){{{var __yy__v1366=GetWithArray(97);for(var __yy__v1367 in __yy__v1366){if(!__yy__v1366.hasOwnProperty(__yy__v1367))continue;
var __yy__v1368=__yy__v1366[__yy__v1367];{var gmlconseq=0;var gmlhighest_conseq=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1368.gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v1368.gmlhistory,gmli);if((yyGetBool(gmlmap))&&(yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(ds_map_exists(gmlmap,"finish")))){{if(yyfgreater(string_count(gml_Script_s_str(__yy__v1368,_inst,"finish_SuperBowl"),
ds_map_find_value(gmlmap,"finish")),0)){{(g_yyPrePostObject__=gmlconseq,gmlconseq=(g_yyPrePostObject__ instanceof Long?gmlconseq.add(1):++gmlconseq),g_yyPrePostObject__);if(yyfgreater(gmlconseq,gmlhighest_conseq)){gmlhighest_conseq=gmlconseq;};};}else {{gmlhighest_conseq=gmlconseq;gmlconseq=0;};};};};}};if(yyfgreater(gmlhighest_conseq,1)){gml_Script_s_complete_achievement(__yy__v1368,_inst,"ACH_BACKTOBACK");};if(yyfgreater(gmlhighest_conseq,2)){gml_Script_s_complete_achievement(__yy__v1368,_inst,"ACH_THREEPEAT");
};}}};}}function gml_GlobalScript_s_create_player(_inst,_other){(_inst.gmls_create_player_get_RC_cost=__yy_method(_inst,gml_Script_s_create_player_get_RC_cost));(_inst.gmls_create_player=__yy_method(_inst,gml_Script_s_create_player));}function gml_Script_s_create_player_get_RC_cost(_inst,_other,argument0){{return floor(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"salary")),3)),5));}}function gml_Script_s_create_player(_inst,_other,argument0,argument1,argument2,argument3){
{var gmllname=gml_Script_s_get_random_last_name(_inst,_other);while(yyGetBool(gml_Script_s_lastname_already_on_roster(_inst,_other,gmllname))){gmllname=gml_Script_s_get_random_last_name(_inst,_other)};var gmlpmap=ds_map_create();ds_map_set(gmlpmap,"randnum",irandom(999));ds_map_set(gmlpmap,"fname",gml_Script_s_get_random_first_name(_inst,_other,true));ds_map_set(gmlpmap,"lname",gmllname);ds_map_set(gmlpmap,"position",argument0);ds_map_set(gmlpmap,"hof",false);ds_map_set(gmlpmap,"kr",false);var gmlmax_age=gml_Script_s_get_max_age(_inst,
_other,gmlpmap);if(yyfequal(argument1,0)){{var gmlstartAge=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlstartAge=gml_Script_s_rookie_age_internal(_inst,_other);};};ds_map_set(gmlpmap,"age",irandom_range(gmlstartAge,gmlmax_age));};}else {{ds_map_set(gmlpmap,"age",clamp(argument1,gml_Script_s_rookie_age_internal(_inst,_other),gmlmax_age));};};var gmlmax_speed=10;var gmlmax_strength=10;var gmlmax_skill=10;var gmlmax_stamina=10;
var ___sw1062___=argument0;var ___swc1063___=-1;if(yyCompareVal(___sw1062___,1,g_GMLMathEpsilon,false)==0){___swc1063___=0;}else if(yyCompareVal(___sw1062___,2,g_GMLMathEpsilon,false)==0){___swc1063___=1;}else if(yyCompareVal(___sw1062___,3,g_GMLMathEpsilon,false)==0){___swc1063___=2;}else if(yyCompareVal(___sw1062___,4,g_GMLMathEpsilon,false)==0){___swc1063___=3;}else if(yyCompareVal(___sw1062___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1062___,6,g_GMLMathEpsilon,false)==0){___swc1063___=4;}else if(yyCompareVal(___sw1062___,
7,g_GMLMathEpsilon,false)==0){___swc1063___=5;}else if(yyCompareVal(___sw1062___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1062___,9,g_GMLMathEpsilon,false)==0){___swc1063___=6;}else if(yyCompareVal(___sw1062___,10,g_GMLMathEpsilon,false)==0){___swc1063___=7;}switch(___swc1063___){case 0:{gmlmax_speed=7;gmlmax_strength=10;gmlmax_skill=10;ds_map_set(gmlpmap,"speed",irandom_range(1,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(1,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,
gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 1:{gmlmax_speed=10;gmlmax_strength=9;gmlmax_skill=6;gmlmax_stamina=9;ds_map_set(gmlpmap,"speed",irandom_range(4,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 2:{gmlmax_speed=7;gmlmax_strength=8;gmlmax_skill=8;gmlmax_stamina=10;ds_map_set(gmlpmap,"speed",
irandom_range(4,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 3:{gmlmax_speed=10;gmlmax_strength=6;gmlmax_skill=10;gmlmax_stamina=8;ds_map_set(gmlpmap,"speed",irandom_range(5,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",
irandom_range(1,gmlmax_stamina));break;}case 4:{gmlmax_speed=5;gmlmax_strength=10;gmlmax_skill=10;ds_map_set(gmlpmap,"speed",irandom_range(1,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(5,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(4,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 5:{gmlmax_speed=7;gmlmax_strength=8;gmlmax_skill=8;ds_map_set(gmlpmap,"speed",irandom_range(2,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,
gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 6:{gmlmax_speed=9;gmlmax_strength=6;gmlmax_skill=8;ds_map_set(gmlpmap,"speed",irandom_range(4,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 7:{gmlmax_speed=7;gmlmax_strength=10;gmlmax_skill=10;
ds_map_set(gmlpmap,"speed",irandom_range(4,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}};var gmldes_rating=irandom_range(argument2,argument3);for(var __yy__v1369=0,__yy__v1370=yyGetInt32(5);__yy__v1369<__yy__v1370;__yy__v1369++){{if(yyfless(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"skill",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"skill")),1),1,gmlmax_skill));};if(yyfless(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"strength",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength")),1),1,gmlmax_strength));};if(yyfless(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"speed",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed")),1),1,gmlmax_speed));};if(yyfless(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){
ds_map_set(gmlpmap,"stamina",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina")),1),1,gmlmax_stamina));};if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"skill",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),1),1,gmlmax_skill));};if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"strength",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength")),
1),1,gmlmax_strength));};if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"speed",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed")),1),1,gmlmax_speed));};if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"stamina",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina")),1),1,gmlmax_stamina));};}};var gmlcontract=irandom_range(1,3);var gmlattitude=irandom_range(1,
100);if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){{gmlattitude=irandom_range(40,100);gmlcontract=2;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlcontract=8;};};ds_map_set(gmlpmap,"attitude",gmlattitude);ds_map_set(gmlpmap,"contract",gmlcontract);ds_map_set(gmlpmap,"salary",gml_Script_s_get_new_salary(_inst,_other,gmlpmap));ds_map_set(gmlpmap,"creditcost",0);ds_map_set(gmlpmap,"xp",0);if(yyfgreater(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,
_other))){ds_map_set(gmlpmap,"xp",irandom(99));};ds_map_set(gmlpmap,"xp_level",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other))),1,9));ds_map_set(gmlpmap,"xp_gain",0);ds_map_set(gmlpmap,"skill_points",0);var gmlpot=yyftime(__yy_gml_errCheck(clamp(yyfminus(31,__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age"))),0,10)),0.5);if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,
_other))))&&(yyGetBool(irandom(1)))){gmlpot=6;};ds_map_set(gmlpmap,"max_skill",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),__yy_gml_errCheck(irandom(gmlpot))),1,gmlmax_skill));ds_map_set(gmlpmap,"max_speed",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed")),__yy_gml_errCheck(irandom(gmlpot))),1,gmlmax_speed));ds_map_set(gmlpmap,"max_strength",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength")),__yy_gml_errCheck(irandom(gmlpot))),1,gmlmax_strength));
ds_map_set(gmlpmap,"max_stamina",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina")),__yy_gml_errCheck(irandom(gmlpot))),1,gmlmax_stamina));gml_Script_s_round_player_attributes(_inst,_other,gmlpmap);ds_map_set(gmlpmap,"condition",irandom_range(40,100));if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){ds_map_set(gmlpmap,"condition",irandom_range(80,100));};ds_map_set(gmlpmap,"injury_week",0);ds_map_set(gmlpmap,"resting",0);ds_map_set(gmlpmap,
"signed_year",0);ds_map_set(gmlpmap,"teamid",(-1));ds_map_set(gmlpmap,"outtrade_pick",0);ds_map_set(gmlpmap,"intrade_pick",0);ds_map_set(gmlpmap,"flash_time",0);ds_map_set(gmlpmap,"meetingdone",0);ds_map_set(gmlpmap,"scouted",0);ds_map_set(gmlpmap,"team_leave_reason","");ds_map_set(gmlpmap,"epilogue","");ds_map_set(gmlpmap,"drafted_pro_team","");ds_map_set(gmlpmap,"epilogue_story","");ds_map_set(gmlpmap,"stat_attempts",0);ds_map_set(gmlpmap,"stat_complete",0);ds_map_set(gmlpmap,"stat_yards",0);ds_map_set(gmlpmap,
"stat_longest",0);ds_map_set(gmlpmap,"stat_touchdowns",0);ds_map_set(gmlpmap,"stat_fumbles",0);ds_map_set(gmlpmap,"stat_int",0);ds_map_set(gmlpmap,"stat_sacks",0);ds_map_set(gmlpmap,"stat_tackles",0);ds_map_set(gmlpmap,"stat_rush_attempts",0);ds_map_set(gmlpmap,"stat_rush_yards",0);ds_map_set(gmlpmap,"stat_rush_longest",0);ds_map_set(gmlpmap,"stat_rush_touchdowns",0);ds_map_set(gmlpmap,"stat_return_yards",0);ds_map_set(gmlpmap,"stat_return_longest",0);ds_map_set(gmlpmap,"stat_return_tds",0);ds_map_set(gmlpmap,
"stat_return_attempts",0);ds_map_set(gmlpmap,"season_games",0);ds_map_set(gmlpmap,"season_attempts",0);ds_map_set(gmlpmap,"season_complete",0);ds_map_set(gmlpmap,"season_yards",0);ds_map_set(gmlpmap,"season_longest",0);ds_map_set(gmlpmap,"season_touchdowns",0);ds_map_set(gmlpmap,"season_fumbles",0);ds_map_set(gmlpmap,"season_int",0);ds_map_set(gmlpmap,"season_sacks",0);ds_map_set(gmlpmap,"season_tackles",0);ds_map_set(gmlpmap,"season_rush_attempts",0);ds_map_set(gmlpmap,"season_rush_yards",0);ds_map_set(gmlpmap,
"season_rush_longest",0);ds_map_set(gmlpmap,"season_rush_touchdowns",0);ds_map_set(gmlpmap,"season_return_yards",0);ds_map_set(gmlpmap,"season_return_longest",0);ds_map_set(gmlpmap,"season_return_tds",0);ds_map_set(gmlpmap,"season_return_attempts",0);ds_map_set(gmlpmap,"career_games",0);ds_map_set(gmlpmap,"career_attempts",0);ds_map_set(gmlpmap,"career_complete",0);ds_map_set(gmlpmap,"career_yards",0);ds_map_set(gmlpmap,"career_longest",0);ds_map_set(gmlpmap,"career_touchdowns",0);ds_map_set(gmlpmap,
"career_fumbles",0);ds_map_set(gmlpmap,"career_int",0);ds_map_set(gmlpmap,"career_sacks",0);ds_map_set(gmlpmap,"career_tackles",0);ds_map_set(gmlpmap,"career_rush_attempts",0);ds_map_set(gmlpmap,"career_rush_yards",0);ds_map_set(gmlpmap,"career_rush_longest",0);ds_map_set(gmlpmap,"career_rush_touchdowns",0);ds_map_set(gmlpmap,"career_return_yards",0);ds_map_set(gmlpmap,"career_return_longest",0);ds_map_set(gmlpmap,"career_return_tds",0);ds_map_set(gmlpmap,"career_return_attempts",0);if(yyfequal(ds_map_find_value(gmlpmap,
"position"),10)){{ds_map_set(gmlpmap,"stat_attempts_XP",0);ds_map_set(gmlpmap,"season_attempts_XP",0);ds_map_set(gmlpmap,"career_attempts_XP",0);ds_map_set(gmlpmap,"stat_complete_XP",0);ds_map_set(gmlpmap,"season_complete_XP",0);ds_map_set(gmlpmap,"career_complete_XP",0);};};ds_map_set(gmlpmap,"skin",irandom(2));var ___sw1064___=ds_map_find_value(gmlpmap,"position");var ___swc1065___=-1;if(yyCompareVal(___sw1064___,1,g_GMLMathEpsilon,false)==0){___swc1065___=0;}else if(yyCompareVal(___sw1064___,2,g_GMLMathEpsilon,
false)==0){___swc1065___=1;}else if(yyCompareVal(___sw1064___,3,g_GMLMathEpsilon,false)==0){___swc1065___=2;}else if(yyCompareVal(___sw1064___,4,g_GMLMathEpsilon,false)==0){___swc1065___=3;}else if(yyCompareVal(___sw1064___,5,g_GMLMathEpsilon,false)==0){___swc1065___=4;}else if(yyCompareVal(___sw1064___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1064___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1064___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1064___,9,g_GMLMathEpsilon,false)==0){___swc1065___=5;
}else if(yyCompareVal(___sw1064___,10,g_GMLMathEpsilon,false)==0){___swc1065___=6;}switch(___swc1065___){case 0:{break;}case 1:{if(yyGetBool(irandom(4))){ds_map_set(gmlpmap,"skin",0);};break;}case 2:{if(yyGetBool(irandom(1))){ds_map_set(gmlpmap,"skin",2);};break;}case 3:{if(yyGetBool(irandom(4))){ds_map_set(gmlpmap,"skin",0);};break;}case 4:{break;}case 5:{if(yyGetBool(irandom(4))){ds_map_set(gmlpmap,"skin",0);};break;}case 6:{if(yyGetBool(irandom(4))){ds_map_set(gmlpmap,"skin",2);};break;}};var gmlfgrid=yyInst(_inst,
_other,97).gmlface_grid_L;var ___sw1066___=ds_map_find_value(gmlpmap,"skin");var ___swc1067___=-1;if(yyCompareVal(___sw1066___,2,g_GMLMathEpsilon,false)==0){___swc1067___=0;}else if(yyCompareVal(___sw1066___,1,g_GMLMathEpsilon,false)==0){___swc1067___=1;}else if(yyCompareVal(___sw1066___,0,g_GMLMathEpsilon,false)==0){___swc1067___=2;}switch(___swc1067___){case 0:{gmlfgrid=yyInst(_inst,_other,97).gmlface_grid_L;break;}case 1:{gmlfgrid=yyInst(_inst,_other,97).gmlface_grid_M;break;}case 2:{gmlfgrid=yyInst(_inst,
_other,97).gmlface_grid_D;break;}};if(yyfequal(ds_grid_get_min(gmlfgrid,0,0,ds_grid_width(gmlfgrid),ds_grid_height(gmlfgrid)),1)){{gml_Script_slog(_inst,_other,"Clearing face grid");ds_grid_clear(gmlfgrid,0);};};gml_Script_s_choose_face(_inst,_other,gmlpmap,gmlfgrid);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlrand=random_range(0,1);gmlrand=yyftime(__yy_gml_errCheck(gmlrand),__yy_gml_errCheck(gmlrand));gmlrand=yyfminus(gmlrand,0.5);var gmlmax_grade=int64(yyfplus(86,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrand),
10))));var gmlnerd_factor=0.02;if(yyfless(random_range(0,1),gmlnerd_factor)){{gmlmax_grade=irandom_range(92,100);};};if(yyfless(gmlmax_grade,83)){{gmlmax_grade=83;};};ds_map_set(gmlpmap,"max_percent_grade",gmlmax_grade);ds_map_set(gmlpmap,"percent_grade",irandom_range(61,ds_map_find_value(gmlpmap,"max_percent_grade")));ds_map_set(gmlpmap,"suspended",0);ds_map_set(gmlpmap,"rc_cost",gml_Script_s_create_player_get_RC_cost(_inst,_other,gmlpmap));ds_map_set(gmlpmap,"toxic_dilemmas",0);ds_map_set(gmlpmap,
"party_dilemmas",0);ds_map_set(gmlpmap,"party_meter",0);ds_map_set(gmlpmap,"trait",gml_Script_s_get_random_trait(_inst,_other));ds_map_set(gmlpmap,"hobby",gml_Script_s_get_random_hobby(_inst,_other));ds_map_set(gmlpmap,"major",gml_Script_s_get_random_study_subject(_inst,_other,(-1)));ds_map_set(gmlpmap,"minor",gml_Script_s_get_random_study_subject(_inst,_other,ds_map_find_value(gmlpmap,"major")));ds_map_set(gmlpmap,"subject_reveal",irandom_range(0,4));ds_map_set(gmlpmap,"hometown",gml_Script_s_get_random_hometown(_inst,
_other));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Created player[",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"fname")))),"] with age:"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"age"))))," and percent_grade:"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"percent_grade"))))," and max_percent_grade(r:"),__yy_gml_errCheck(string(gmlrand))),"):"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,
"max_percent_grade")))),"( GPA "),__yy_gml_errCheck(string(gml_Script_s_gpa_from_percent_grade(_inst,_other,ds_map_find_value(gmlpmap,"percent_grade"))))),") - Trait: "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"trait")))));};};return gmlpmap;}}function gml_GlobalScript_s_sort_players(_inst,_other,argument0,argument1){(_inst.gmls_sort_players=__yy_method(_inst,gml_Script_s_sort_players));}function gml_Script_s_sort_players(_inst,_other,argument0,argument1){{var gmlplist=argument0;var gmlsortby=argument1;
var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(gmlplist),0)){{var gmlbestplayer=(-4);var gmlbestrating=0;var gmli=0;for(;yyfless(gmli,ds_list_size(gmlplist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlplist,gmli);var ___sw1070___=gmlsortby;var ___swc1071___=-1;if(yyCompareVal(___sw1070___,2,g_GMLMathEpsilon,false)==0){___swc1071___=0;}else if(yyCompareVal(___sw1070___,1,g_GMLMathEpsilon,
false)==0){___swc1071___=1;}else if(yyCompareVal(___sw1070___,3,g_GMLMathEpsilon,false)==0){___swc1071___=2;}else if(yyCompareVal(___sw1070___,4,g_GMLMathEpsilon,false)==0){___swc1071___=3;}else if(yyCompareVal(___sw1070___,5,g_GMLMathEpsilon,false)==0){___swc1071___=4;}switch(___swc1071___){case 0:{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfgreater(gmlrating,gmlbestrating)))){{gmlbestplayer=gmlpmap;gmlbestrating=gmlrating;
};}else {if(yyfequal(gmlrating,gmlbestrating)){{var gmlposition=ds_map_find_value(gmlpmap,"position");if(yyfless(gmlposition,ds_map_find_value(gmlbestplayer,"position"))){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlposition,ds_map_find_value(gmlbestplayer,"position"))){{var gmlpot=gml_Script_s_get_player_potential(_inst,_other,gmlpmap);var gmlpot_b=gml_Script_s_get_player_potential(_inst,_other,gmlpmap);if(yyfgreater(gmlpot,gmlpot_b)){{gmlbestplayer=gmlpmap;};};};};};};};};break;}case 1:{var gmlname=ds_map_find_value(gmlpmap,
"lname");if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfless(gmlname,ds_map_find_value(gmlbestplayer,"lname"))))){{gmlbestplayer=gmlpmap;};};break;}case 2:{var gmlposition=ds_map_find_value(gmlpmap,"position");if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfless(gmlposition,ds_map_find_value(gmlbestplayer,"position"))))){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlposition,ds_map_find_value(gmlbestplayer,"position"))){{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);
var gmlrating_b=gml_Script_s_get_player_rating(_inst,_other,gmlbestplayer);if(yyfgreater(gmlrating,gmlrating_b)){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlrating,gmlrating_b)){{if((yyGetBool(ds_map_exists(gmlpmap,"randnum")))&&(yyGetBool(ds_map_exists(gmlbestplayer,"randnum")))){{if(yyfgreater(real(ds_map_find_value(gmlpmap,"randnum")),real(ds_map_find_value(gmlbestplayer,"randnum")))){gmlbestplayer=gmlpmap;};};};};};};};};};break;}case 3:{var gmlposition=ds_map_find_value(gmlpmap,"position");if(yyGetBool(gml_Script_s_player_benched(_inst,
_other,gmlpmap))){gmlposition=yyfplus(gmlposition,100);}else {if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){gmlposition=yyfplus(gmlposition,100);}else {if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(ds_map_find_value(gmlpmap,"backup")))){gmlposition=yyfplus(gmlposition,100);};};};var gmlposition_b=0;if(yyGetBool(gmlbestplayer)){{gmlposition_b=ds_map_find_value(gmlbestplayer,"position");if((yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlbestplayer)))||(yyGetBool(yyfless(ds_map_find_value(gmlbestplayer,
"condition"),0)))||(yyGetBool((yyGetBool(ds_map_exists(gmlbestplayer,"backup")))&&(yyGetBool(ds_map_find_value(gmlbestplayer,"backup")))))){gmlposition_b=yyfplus(gmlposition_b,100);};};};if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfless(gmlposition,gmlposition_b)))){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlposition,ds_map_find_value(gmlbestplayer,"position"))){{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);var gmlrating_b=gml_Script_s_get_player_rating(_inst,_other,
gmlbestplayer);if(yyfgreater(gmlrating,gmlrating_b)){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlrating,gmlrating_b)){{if((yyGetBool(ds_map_exists(gmlpmap,"randnum")))&&(yyGetBool(ds_map_exists(gmlbestplayer,"randnum")))){{if(yyfgreater(real(ds_map_find_value(gmlpmap,"randnum")),real(ds_map_find_value(gmlbestplayer,"randnum")))){gmlbestplayer=gmlpmap;};};};};};};};};};break;}case 4:{var gmlsalary=ds_map_find_value(gmlpmap,"salary");if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfgreater(gmlsalary,
ds_map_find_value(gmlbestplayer,"salary"))))){{gmlbestplayer=gmlpmap;};};break;}};}};ds_list_add(gmlsortedlist,gmlbestplayer);var gmli=ds_list_find_index(gmlplist,gmlbestplayer);ds_list_delete(gmlplist,gmli);}};ds_list_destroy(gmlplist);gmlplist=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_create_new_roster(_inst,_other){(_inst.gmls_create_new_roster=__yy_method(_inst,gml_Script_s_create_new_roster));}function gml_Script_s_create_new_roster(_inst,_other){{{var __yy__v1371=GetWithArray(97);
for(var __yy__v1372 in __yy__v1371){if(!__yy__v1371.hasOwnProperty(__yy__v1372))continue;var __yy__v1373=__yy__v1371[__yy__v1372];{var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1373.gmlroster)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1373.gmlroster,gmli);gml_Script_s_remove_player(__yy__v1373,_inst,gmlpmap,"newroster",gml_Script_s_pick_epilogue_story(__yy__v1373,
_inst,"epi_newteam"));}};ds_list_destroy(__yy__v1373.gmlroster);__yy__v1373.gmlroster=(-1);__yy__v1373.gmlroster=ds_list_create();var gmlpmap=gml_Script_s_create_player(__yy__v1373,_inst,1,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1373.gmlmyteam_id);if(yyfequal(__yy__v1373.gmlyear,1)){{ds_map_set(gmlpmap,"skill",8);ds_map_set(gmlpmap,"strength",3);ds_map_set(gmlpmap,"speed",1);ds_map_set(gmlpmap,"stamina",5);ds_map_set(gmlpmap,"max_skill",ds_map_find_value(gmlpmap,
"skill"));ds_map_set(gmlpmap,"max_strength",ds_map_find_value(gmlpmap,"strength"));ds_map_set(gmlpmap,"max_speed",ds_map_find_value(gmlpmap,"speed"));ds_map_set(gmlpmap,"max_stamina",ds_map_find_value(gmlpmap,"stamina"));};};ds_list_add(__yy__v1373.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1373,_inst,2,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1373.gmlmyteam_id);ds_list_add(__yy__v1373.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1373,
_inst,4,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1373.gmlmyteam_id);ds_list_add(__yy__v1373.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1373,_inst,10,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1373.gmlmyteam_id);ds_list_add(__yy__v1373.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1373,_inst,6,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1373.gmlmyteam_id);
ds_list_add(__yy__v1373.gmlroster,gmlpmap);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1373,_inst))){{var gmli=0;for(;yyfless(gmli,3);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpos=choose(3,3,4,4,5);if(yyfgreater(gmli,0)){gmlpos=choose(6,7,9);};var gmlpmap=gml_Script_s_create_player(__yy__v1373,_inst,gmlpos,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1373.gmlmyteam_id);ds_list_add(__yy__v1373.gmlroster,
gmlpmap);}};var gmli=0;for(;yyfless(gmli,yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1373.gmlroster)),1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1373.gmlroster,gmli);ds_map_set(gmlpmap,"season_yards",irandom_range(300,500));ds_map_set(gmlpmap,"season_touchdowns",irandom_range(5,10));ds_map_set(gmlpmap,"season_fumbles",irandom_range(2,3));ds_map_set(gmlpmap,"season_tackles",irandom_range(20,
50));ds_map_set(gmlpmap,"season_int",irandom_range(3,5));ds_map_set(gmlpmap,"season_sacks",irandom_range(5,10));ds_map_set(gmlpmap,"season_attempts",irandom_range(6,9));ds_map_set(gmlpmap,"season_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_attempts")),__yy_gml_errCheck(irandom_range(4,5))));}};};};if((yyGetBool(yyfequal(__yy__v1373.gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlco_mode,0)))){{var gmli=0;for(;yyfless(gmli,yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1373.gmlroster)),
1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1373.gmlroster,gmli);var gmlmax_age=gml_Script_s_get_max_age(__yy__v1373,_inst,gmlpmap);if(yyfgreater(ds_map_find_value(gmlpmap,"age"),yyfminus(__yy_gml_errCheck(gmlmax_age),2))){ds_map_set(gmlpmap,"age",yyfminus(__yy_gml_errCheck(gmlmax_age),2));};if(yyfless(ds_map_find_value(gmlpmap,"contract"),2)){ds_map_set(gmlpmap,"contract",2);};}};};};}}};}}function gml_GlobalScript_s_create_new_roster_newteam(_inst,
_other){(_inst.gmls_create_new_roster_newteam=__yy_method(_inst,gml_Script_s_create_new_roster_newteam));}function gml_Script_s_create_new_roster_newteam(_inst,_other){{{var __yy__v1374=GetWithArray(97);for(var __yy__v1375 in __yy__v1374){if(!__yy__v1374.hasOwnProperty(__yy__v1375))continue;var __yy__v1376=__yy__v1374[__yy__v1375];{var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1376.gmlroster)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1376.gmlroster,gmli);gml_Script_s_remove_player(__yy__v1376,_inst,gmlpmap,"newteam",gml_Script_s_pick_epilogue_story(__yy__v1376,_inst,"epi_newteam"));}};ds_list_destroy(__yy__v1376.gmlroster);__yy__v1376.gmlroster=(-1);__yy__v1376.gmlroster=ds_list_create();var gmlmax_offense=ds_map_find_value(__yy__v1376.gmlmyteam,"offense");var gmlmax_defense=ds_map_find_value(__yy__v1376.gmlmyteam,"defense");var gmlpmap=gml_Script_s_create_player(__yy__v1376,
_inst,1,0,yyftime(__yy_gml_errCheck(gmlmax_offense),0.75),gmlmax_offense);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1376.gmlmyteam_id);ds_list_add(__yy__v1376.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1376,_inst,2,0,yyftime(__yy_gml_errCheck(gmlmax_offense),0.75),gmlmax_offense);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1376.gmlmyteam_id);ds_list_add(__yy__v1376.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1376,
_inst,4,0,yyftime(__yy_gml_errCheck(gmlmax_offense),0.75),gmlmax_offense);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1376.gmlmyteam_id);ds_list_add(__yy__v1376.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1376,_inst,10,0,yyftime(__yy_gml_errCheck(gmlmax_defense),0.75),gmlmax_defense);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1376.gmlmyteam_id);ds_list_add(__yy__v1376.gmlroster,gmlpmap);var gmli=0;for(;yyfless(gmli,4);
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpos=choose(3,3,4,4,5);if(yyfgreater(gmli,0)){gmlpos=choose(6,7,9);};var gmlpmap=gml_Script_s_create_player(__yy__v1376,_inst,gmlpos,0,yyftime(__yy_gml_errCheck(gmlmax_defense),0.75),gmlmax_defense);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1376.gmlmyteam_id);ds_list_add(__yy__v1376.gmlroster,gmlpmap);}};if(yyfgreaterequal(yyInst(_inst,_other,97).gmlop_difficulty,
3)){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1376.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1376.gmlroster,gmli);if(!yyGetBool(irandom(10))){ds_map_set(gmlpmap,"contract",0);};}};};};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1376,_inst))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1376.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1376.gmlroster,gmli);gml_Script_s_college_correct_new_player(__yy__v1376,_inst,gmlpmap);}};};};}}};}}function gml_GlobalScript_s_lastname_already_on_roster(_inst,_other,argument0){(_inst.gmls_lastname_already_on_roster=__yy_method(_inst,gml_Script_s_lastname_already_on_roster));}function gml_Script_s_lastname_already_on_roster(_inst,_other,argument0){{var gmlname=argument0;var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,97).gmlroster));
(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmlr);if(yyfequal(ds_map_find_value(gmlpmap,"lname"),gmlname)){return true;};}};var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,97).gmlstafflist));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlstafflist,
gmlr);if(yyfequal(ds_map_find_value(gmlpmap,"lname"),gmlname)){return true;};}};return false;}}function gml_GlobalScript_s_position_already_on_roster(_inst,_other,argument0){(_inst.gmls_position_already_on_roster=__yy_method(_inst,gml_Script_s_position_already_on_roster));}function gml_Script_s_position_already_on_roster(_inst,_other,argument0){{var gmlpos=argument0;var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,97).gmlroster));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmlr);if(yyfequal(ds_map_find_value(gmlpmap,"position"),gmlpos)){return true;};}};return false;}}function gml_GlobalScript_s_get_required_position(_inst,_other,argument0){(_inst.gmls_get_required_position=__yy_method(_inst,gml_Script_s_get_required_position));(_inst.gmls_get_required_position_no_QB_RB=__yy_method(_inst,gml_Script_s_get_required_position_no_QB_RB));}function gml_Script_s_get_required_position(_inst,
_other,argument0){{var gmlabsolute=argument0;if(yyGetBool(gmlabsolute)){{var gmli=1;for(;yyfless(gmli,11);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(!yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,gmli))){return;};}};};};var gmlpos=0;for(var __yy__v1377=0,__yy__v1378=yyGetInt32(9);__yy__v1377<__yy__v1378;__yy__v1377++){{gmlpos=irandom_range(1,10);if(!yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,gmlpos))){
return gmlpos;};}};return gmlpos;}}function gml_Script_s_get_required_position_no_QB_RB(_inst,_other,argument0){{var gmlabsolute=argument0;if(yyGetBool(gmlabsolute)){{var gmli=1;for(;yyfless(gmli,11);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(gmli,1)){{continue;};};if(yyfequal(gmli,2)){{continue;};};if(!yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,gmli))){return;};}};};};var gmlpos=0;for(var __yy__v1379=0,__yy__v1380=yyGetInt32(9);
__yy__v1379<__yy__v1380;__yy__v1379++){{gmlpos=irandom_range(1,10);if(yyfequal(gmlpos,1)){{continue;};};if(yyfequal(gmlpos,2)){{continue;};};if(!yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,gmlpos))){return gmlpos;};}};return gmlpos;}}function gml_GlobalScript_s_get_player_rating(_inst,_other){(_inst.gmls_get_player_rating=__yy_method(_inst,gml_Script_s_get_player_rating));}function gml_Script_s_get_player_rating(_inst,_other,argument0){{var gmlmax_rating=0;var gmlrating=0;var ___sw1074___=ds_map_find_value(argument0,
"position");var ___swc1075___=-1;if(yyCompareVal(___sw1074___,1,g_GMLMathEpsilon,false)==0){___swc1075___=0;}else if(yyCompareVal(___sw1074___,2,g_GMLMathEpsilon,false)==0){___swc1075___=1;}else if(yyCompareVal(___sw1074___,3,g_GMLMathEpsilon,false)==0){___swc1075___=2;}else if(yyCompareVal(___sw1074___,4,g_GMLMathEpsilon,false)==0){___swc1075___=3;}else if(yyCompareVal(___sw1074___,5,g_GMLMathEpsilon,false)==0){___swc1075___=4;}else if(yyCompareVal(___sw1074___,6,g_GMLMathEpsilon,false)==0){___swc1075___=5;
}else if(yyCompareVal(___sw1074___,7,g_GMLMathEpsilon,false)==0){___swc1075___=6;}else if(yyCompareVal(___sw1074___,8,g_GMLMathEpsilon,false)==0){___swc1075___=7;}else if(yyCompareVal(___sw1074___,9,g_GMLMathEpsilon,false)==0){___swc1075___=8;}else if(yyCompareVal(___sw1074___,10,g_GMLMathEpsilon,false)==0){___swc1075___=9;}switch(___swc1075___){case 0:{gmlmax_rating=37;break;}case 1:{gmlmax_rating=34;break;}case 2:{gmlmax_rating=33;break;}case 3:{gmlmax_rating=34;break;}case 4:{gmlmax_rating=35;break;}case 5:{
gmlmax_rating=35;break;}case 6:{gmlmax_rating=33;break;}case 7:{gmlmax_rating=33;break;}case 8:{gmlmax_rating=33;break;}case 9:{gmlmax_rating=37;break;}};var gmlstm=0;var gmlspd=0;var gmlstr=0;var gmlskl=0;if(yyGetBool(ds_map_exists(argument0,"stamina"))){gmlstm=real(ds_map_find_value(argument0,"stamina"));};if(yyGetBool(ds_map_exists(argument0,"speed"))){gmlspd=real(ds_map_find_value(argument0,"speed"));};if(yyGetBool(ds_map_exists(argument0,"strength"))){gmlstr=real(ds_map_find_value(argument0,"strength"));
};if(yyGetBool(ds_map_exists(argument0,"skill"))){gmlskl=real(ds_map_find_value(argument0,"skill"));};gmlrating=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlstm),__yy_gml_errCheck(gmlspd)),__yy_gml_errCheck(gmlstr)),__yy_gml_errCheck(gmlskl));gmlrating=round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlrating),__yy_gml_errCheck(gmlmax_rating))),10));return clamp(gmlrating,1,10);}}function gml_GlobalScript_s_get_player_potential(_inst,_other,argument0){(_inst.gmls_get_player_potential=__yy_method(_inst,
gml_Script_s_get_player_potential));}function gml_Script_s_get_player_potential(_inst,_other,argument0){{var gmlpmap=argument0;var gmlmax_rating=0;var gmlrating=0;var ___sw1078___=ds_map_find_value(gmlpmap,"position");var ___swc1079___=-1;if(yyCompareVal(___sw1078___,1,g_GMLMathEpsilon,false)==0){___swc1079___=0;}else if(yyCompareVal(___sw1078___,2,g_GMLMathEpsilon,false)==0){___swc1079___=1;}else if(yyCompareVal(___sw1078___,3,g_GMLMathEpsilon,false)==0){___swc1079___=2;}else if(yyCompareVal(___sw1078___,
4,g_GMLMathEpsilon,false)==0){___swc1079___=3;}else if(yyCompareVal(___sw1078___,5,g_GMLMathEpsilon,false)==0){___swc1079___=4;}else if(yyCompareVal(___sw1078___,6,g_GMLMathEpsilon,false)==0){___swc1079___=5;}else if(yyCompareVal(___sw1078___,7,g_GMLMathEpsilon,false)==0){___swc1079___=6;}else if(yyCompareVal(___sw1078___,8,g_GMLMathEpsilon,false)==0){___swc1079___=7;}else if(yyCompareVal(___sw1078___,9,g_GMLMathEpsilon,false)==0){___swc1079___=8;}else if(yyCompareVal(___sw1078___,10,g_GMLMathEpsilon,
false)==0){___swc1079___=9;}switch(___swc1079___){case 0:{gmlmax_rating=37;break;}case 1:{gmlmax_rating=34;break;}case 2:{gmlmax_rating=33;break;}case 3:{gmlmax_rating=34;break;}case 4:{gmlmax_rating=35;break;}case 5:{gmlmax_rating=35;break;}case 6:{gmlmax_rating=33;break;}case 7:{gmlmax_rating=33;break;}case 8:{gmlmax_rating=33;break;}case 9:{gmlmax_rating=37;break;}};var gmlmstm=0;var gmlmspd=0;var gmlmstr=0;var gmlmskl=0;if(yyGetBool(ds_map_exists(gmlpmap,"max_stamina"))){gmlmstm=real(ds_map_find_value(gmlpmap,
"max_stamina"));};if(yyGetBool(ds_map_exists(gmlpmap,"max_speed"))){gmlmspd=real(ds_map_find_value(gmlpmap,"max_speed"));};if(yyGetBool(ds_map_exists(gmlpmap,"max_strength"))){gmlmstr=real(ds_map_find_value(gmlpmap,"max_strength"));};if(yyGetBool(ds_map_exists(gmlpmap,"max_skill"))){gmlmskl=real(ds_map_find_value(gmlpmap,"max_skill"));};gmlrating=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlmstm),__yy_gml_errCheck(gmlmspd)),__yy_gml_errCheck(gmlmstr)),__yy_gml_errCheck(gmlmskl));return clamp(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlrating),
__yy_gml_errCheck(gmlmax_rating))),10)),1,10);}}function gml_GlobalScript_s_obj_player_draw_begin(_inst,_other){(_inst.gmls_obj_player_draw_begin=__yy_method(_inst,gml_Script_s_obj_player_draw_begin));}function gml_Script_s_obj_player_draw_begin(_inst,_other){{if(yyfequal(yyInst(_inst,_other,104).gmlstate,3)){return;};var gmlball=global.gmlmaster_ball;var ___sw1082___=yyInst(_inst,_other,gmlball).gmlstate;var ___swc1083___=-1;if(yyCompareVal(___sw1082___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1082___,
1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1082___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1082___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1082___,19,g_GMLMathEpsilon,false)==0){___swc1083___=0;}switch(___swc1083___){case 0:{if(yyGetBool(path_exists(_inst.gmlmy_route))){{gml_Script_s_draw_my_route(_inst,_other);};};break;}};if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
60))),1)),2);if(yyGetBool(_inst.gmldead)){gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),120))),1)),2);};if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,2)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlpractice_success,0)))){gmlf=0;};draw_sprite_ext(_inst,71,0,_inst.x,_inst.y,2,2,0,16777215,gmlf);};}else {if((yyGetBool(yyfequal(_inst.gmlposition,
2)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,0)))){{if(yyfnotequal(yyInst(_inst,_other,97).gmlgamepractice,2)){gmlf=1;};var gmls=yyfplus(2.5,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),100))),0.5)));draw_sprite_ext(_inst,71,0,_inst.x,_inst.y,gmls,gmls,0,global.gmlc_routes_rb,gmlf);};};};}}function gml_GlobalScript_s_get_player_by_position(_inst,_other){(_inst.gmls_get_player_by_position=__yy_method(_inst,gml_Script_s_get_player_by_position));
(_inst.gmls_get_player_kick_returner=__yy_method(_inst,gml_Script_s_get_player_kick_returner));}function gml_Script_s_get_player_by_position(_inst,_other,argument0,argument1){{{var __yy__v1381=GetWithArray(97);for(var __yy__v1382 in __yy__v1381){if(!__yy__v1381.hasOwnProperty(__yy__v1382))continue;var __yy__v1383=__yy__v1381[__yy__v1382];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1383.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1383.gmlroster,gmli);if(yyGetBool(ds_map_find_value(gmlpmap,"backup"))){continue;};if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1383,_inst,gmlpmap))){continue;};if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);if(yyfequal(gmlcount,argument1)){
return gmlpmap;};};};}};}}};return(-4);}}function gml_Script_s_get_player_kick_returner(_inst,_other){{{var __yy__v1384=GetWithArray(97);for(var __yy__v1385 in __yy__v1384){if(!__yy__v1384.hasOwnProperty(__yy__v1385))continue;var __yy__v1386=__yy__v1384[__yy__v1385];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1386.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1386.gmlroster,gmli);if(yyfless(ds_map_find_value(gmlpmap,
"condition"),0)){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1386,_inst,gmlpmap))){continue;};if((yyGetBool(ds_map_exists(gmlpmap,"kr")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"kr"),1)))){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_player_by_lname(_inst,_other,argument0){(_inst.gmls_get_player_by_lname=__yy_method(_inst,gml_Script_s_get_player_by_lname));}function gml_Script_s_get_player_by_lname(_inst,_other,argument0){{var gmllname=argument0;{var __yy__v1387=GetWithArray(97);
for(var __yy__v1388 in __yy__v1387){if(!__yy__v1387.hasOwnProperty(__yy__v1388))continue;var __yy__v1389=__yy__v1387[__yy__v1388];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1389.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1389.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"lname"),gmllname)){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_random_player(_inst,
_other){(_inst.gmls_get_random_player=__yy_method(_inst,gml_Script_s_get_random_player));}function gml_Script_s_get_random_player(_inst,_other,argument0,argument1){{{var __yy__v1390=GetWithArray(97);for(var __yy__v1391 in __yy__v1390){if(!__yy__v1390.hasOwnProperty(__yy__v1391))continue;var __yy__v1392=__yy__v1390[__yy__v1391];{if((yyGetBool(argument0))&&(yyGetBool(yyfequal(argument1,undefined)))){return ds_list_find_value(__yy__v1392.gmlroster,irandom(yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1392.gmlroster)),
1)));};ds_list_shuffle(__yy__v1392.gmlroster);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1392.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1392.gmlroster,gmli);if(!yyGetBool(argument0)){{if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(ds_map_find_value(gmlpmap,"backup")))){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1392,
_inst,gmlpmap))){continue;};};};if(yyfnotequal(argument1,undefined)){{if(yyfgreaterequal(ds_list_find_index(argument1,gmlpmap),0)){{continue;};};};};return gmlpmap;}};}}};return(-4);}}function gml_GlobalScript_s_get_random_player_by_position(_inst,_other){(_inst.gmls_get_random_player_by_position=__yy_method(_inst,gml_Script_s_get_random_player_by_position));}function gml_Script_s_get_random_player_by_position(_inst,_other,argument0,argument1){{{var __yy__v1393=GetWithArray(97);for(var __yy__v1394 in __yy__v1393){
if(!__yy__v1393.hasOwnProperty(__yy__v1394))continue;var __yy__v1395=__yy__v1393[__yy__v1394];{ds_list_shuffle(__yy__v1395.gmlroster);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1395.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1395.gmlroster,gmli);if(!yyGetBool(argument0)){{if((yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),0)))||(yyGetBool(gml_Script_s_player_benched(__yy__v1395,
_inst,gmlpmap)))){continue;};};};if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument1)){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_random_player_defensive(_inst,_other,argument0){(_inst.gmls_get_random_player_defensive=__yy_method(_inst,gml_Script_s_get_random_player_defensive));}function gml_Script_s_get_random_player_defensive(_inst,_other,argument0){{var gmlinc_injured=argument0;if(yyGetBool(gmlinc_injured)){return ds_list_find_value(yyInst(_inst,_other,97).gmlroster,
irandom(yyfminus(__yy_gml_errCheck(_inst.gmlsize),1)));};{var __yy__v1396=GetWithArray(97);for(var __yy__v1397 in __yy__v1396){if(!__yy__v1396.hasOwnProperty(__yy__v1397))continue;var __yy__v1398=__yy__v1396[__yy__v1397];{ds_list_shuffle(__yy__v1398.gmlroster);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1398.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1398.gmlroster,gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,
"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1398,_inst,gmlpmap))))&&(yyGetBool(gml_Script_s_is_defensive_player(__yy__v1398,_inst,gmlpmap)))){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_random_player_offensive(_inst,_other,argument0){(_inst.gmls_get_random_player_offensive=__yy_method(_inst,gml_Script_s_get_random_player_offensive));}function gml_Script_s_get_random_player_offensive(_inst,_other,argument0){{var gmlinc_injured=argument0;if(yyGetBool(gmlinc_injured)){
return ds_list_find_value(yyInst(_inst,_other,97).gmlroster,irandom(yyfminus(__yy_gml_errCheck(_inst.gmlsize),1)));};{var __yy__v1399=GetWithArray(97);for(var __yy__v1400 in __yy__v1399){if(!__yy__v1399.hasOwnProperty(__yy__v1400))continue;var __yy__v1401=__yy__v1399[__yy__v1400];{ds_list_shuffle(__yy__v1401.gmlroster);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1401.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1401.gmlroster,
gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1401,_inst,gmlpmap))))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1401,_inst,gmlpmap)))){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_random_coach(_inst,_other){(_inst.gmls_get_random_coach=__yy_method(_inst,gml_Script_s_get_random_coach));}function gml_Script_s_get_random_coach(_inst,_other){{{var __yy__v1402=GetWithArray(97);for(var __yy__v1403 in __yy__v1402){
if(!__yy__v1402.hasOwnProperty(__yy__v1403))continue;var __yy__v1404=__yy__v1402[__yy__v1403];return ds_list_find_value(__yy__v1404.gmlstafflist,irandom(yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1404.gmlstafflist)),1)));}};}}function gml_GlobalScript_btn_click_qb_items(_inst,_other){(_inst.gmlbtn_click_qb_items=__yy_method(_inst,gml_Script_btn_click_qb_items));(_inst.gmlbtn_click_qb_vehicles=__yy_method(_inst,gml_Script_btn_click_qb_vehicles));(_inst.gmlbtn_click_qb_property=__yy_method(_inst,
gml_Script_btn_click_qb_property));}function gml_Script_btn_click_qb_items(_inst,_other){{{var __yy__v1405=GetWithArray(97);for(var __yy__v1406 in __yy__v1405){if(!__yy__v1405.hasOwnProperty(__yy__v1406))continue;var __yy__v1407=__yy__v1405[__yy__v1406];{__yy__v1407.gmlshopping_type=0;__yy__v1407.gmlshopping_page=1;room_goto(41);}}};}}function gml_Script_btn_click_qb_vehicles(_inst,_other){{{var __yy__v1408=GetWithArray(97);for(var __yy__v1409 in __yy__v1408){if(!__yy__v1408.hasOwnProperty(__yy__v1409))continue;
var __yy__v1410=__yy__v1408[__yy__v1409];{__yy__v1410.gmlshopping_type=1;__yy__v1410.gmlshopping_page=1;room_goto(41);}}};}}function gml_Script_btn_click_qb_property(_inst,_other){{{var __yy__v1411=GetWithArray(97);for(var __yy__v1412 in __yy__v1411){if(!__yy__v1411.hasOwnProperty(__yy__v1412))continue;var __yy__v1413=__yy__v1411[__yy__v1412];{__yy__v1413.gmlshopping_type=2;__yy__v1413.gmlshopping_page=1;room_goto(41);}}};}}function gml_GlobalScript_s_count_players_by_position(_inst,_other){(_inst.gmls_count_players_by_position=__yy_method(_inst,
gml_Script_s_count_players_by_position));}function gml_Script_s_count_players_by_position(_inst,_other,argument0){{var gmlcount=0;{var __yy__v1414=GetWithArray(97);for(var __yy__v1415 in __yy__v1414){if(!__yy__v1414.hasOwnProperty(__yy__v1415))continue;var __yy__v1416=__yy__v1414[__yy__v1415];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1416.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1416.gmlroster,
gmli);if((yyGetBool(yyfequal(argument0,9)))||(yyGetBool(yyfequal(argument0,8)))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),9)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),8)))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),
g_yyPrePostObject__);};};};}};}}};return gmlcount;}}function gml_GlobalScript_s_count_players_onfield_by_position(_inst,_other,argument0){(_inst.gmls_count_players_onfield_by_position=__yy_method(_inst,gml_Script_s_count_players_onfield_by_position));}function gml_Script_s_count_players_onfield_by_position(_inst,_other,argument0){{var gmlpos=argument0;var gmlcount=0;{var __yy__v1417=GetWithArray(97);for(var __yy__v1418 in __yy__v1417){if(!__yy__v1417.hasOwnProperty(__yy__v1418))continue;var __yy__v1419=__yy__v1417[__yy__v1418];
{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1419.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1419.gmlroster,gmli);if(yyGetBool(ds_map_find_value(gmlpmap,"backup"))){continue;};if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1419,_inst,gmlpmap))){continue;};if((yyGetBool(yyfequal(gmlpos,9)))||(yyGetBool(yyfequal(gmlpos,
8)))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),9)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),8)))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),gmlpos)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};};}};}}};return gmlcount;}}function gml_GlobalScript_s_count_defenders(_inst,
_other){(_inst.gmls_count_defenders=__yy_method(_inst,gml_Script_s_count_defenders));}function gml_Script_s_count_defenders(_inst,_other){{var gmlcount=0;{var __yy__v1420=GetWithArray(97);for(var __yy__v1421 in __yy__v1420){if(!__yy__v1420.hasOwnProperty(__yy__v1421))continue;var __yy__v1422=__yy__v1420[__yy__v1421];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1422.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1422.gmlroster,
gmli);if(yyGetBool(gml_Script_s_is_defensive_player(__yy__v1422,_inst,gmlpmap))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};}}};return gmlcount;}}// with (obj_text) if (string_count("@", text)) visible = false;
function gml_GlobalScript_btn_click_OptionsControls(_inst,_other){(_inst.gmlbtn_click_OptionsControls=__yy_method(_inst,gml_Script_btn_click_OptionsControls));(_inst.gmlbtn_click_OptionsControls1=__yy_method(_inst,
gml_Script_btn_click_OptionsControls1));(_inst.gmlbtn_click_OptionsControls2=__yy_method(_inst,gml_Script_btn_click_OptionsControls2));(_inst.gmlbtn_click_OptionsControls3=__yy_method(_inst,gml_Script_btn_click_OptionsControls3));(_inst.gmls_update_control_screen=__yy_method(_inst,gml_Script_s_update_control_screen));}function gml_Script_btn_click_OptionsControls(_inst,_other){{room_goto(37);}}function gml_Script_btn_click_OptionsControls1(_inst,_other){{gml_Script_s_update_control_screen(_inst,_other,
1);}}function gml_Script_btn_click_OptionsControls2(_inst,_other){{gml_Script_s_update_control_screen(_inst,_other,2);}}function gml_Script_btn_click_OptionsControls3(_inst,_other){{gml_Script_s_update_control_screen(_inst,_other,3);}}function gml_Script_s_update_control_screen(_inst,_other,argument0){{yyInst(_inst,_other,100635).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100636).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100637).gmlcolour=global.gmlc_background;{var __yy__v1423=GetWithArray(74);
for(var __yy__v1424 in __yy__v1423){if(!__yy__v1423.hasOwnProperty(__yy__v1424))continue;var __yy__v1425=__yy__v1423[__yy__v1424];instance_destroy(__yy__v1425);}};var ___sw1086___=argument0;var ___swc1087___=-1;if(yyCompareVal(___sw1086___,1,g_GMLMathEpsilon,false)==0){___swc1087___=0;}else if(yyCompareVal(___sw1086___,2,g_GMLMathEpsilon,false)==0){___swc1087___=1;}else if(yyCompareVal(___sw1086___,3,g_GMLMathEpsilon,false)==0){___swc1087___=2;}switch(___swc1087___){case 0:{yyInst(_inst,_other,100635).gmlcolour=global.gmlc_primary;
break;}case 1:{yyInst(_inst,_other,100636).gmlcolour=global.gmlc_primary;break;}case 2:{yyInst(_inst,_other,100637).gmlcolour=global.gmlc_primary;break;}};var gmlc1=array_create(9);var gmlc2=array_create(9);var gmlc3=array_create(9);var gmli=0;for(;yyfless(gmli,9);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlc1=__yy_gml_array_check(gmlc1,4099452308);gmlc1[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(200,yyfplus(48,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmli),
20))),"Instances",74);yyInst(_inst,_other,gmlc1[__yy_gml_array_check_index(gmli,gmlc1)]).gmldraw_box=false;yyInst(_inst,_other,gmlc1[__yy_gml_array_check_index(gmli,gmlc1)]).gmlhalign=2;gmlc2=__yy_gml_array_check(gmlc2,3749051991);gmlc2[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(280,yyfplus(48,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmli),20))),"Instances",74);yyInst(_inst,_other,gmlc2[__yy_gml_array_check_index(gmli,gmlc2)]).gmldraw_box=false;yyInst(_inst,_other,gmlc2[__yy_gml_array_check_index(gmli,
gmlc2)]).gmlhalign=1;gmlc3=__yy_gml_array_check(gmlc3,3329150742);gmlc3[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(400,yyfplus(48,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmli),20))),"Instances",74);yyInst(_inst,_other,gmlc3[__yy_gml_array_check_index(gmli,gmlc3)]).gmldraw_box=false;yyInst(_inst,_other,gmlc3[__yy_gml_array_check_index(gmli,gmlc3)]).gmlhalign=1;yyInst(_inst,_other,gmlc1[__yy_gml_array_check_index(gmli,gmlc1)]).gmltext=gml_Script_s_str(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("Map_Tab",
__yy_gml_errCheck(string(argument0))),"_Line"),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmli),1)))),"_L"));yyInst(_inst,_other,gmlc2[__yy_gml_array_check_index(gmli,gmlc2)]).gmltext=gml_Script_s_str(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("Map_Tab",__yy_gml_errCheck(string(argument0))),"_Line"),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmli),1)))),"_B1"));yyInst(_inst,_other,gmlc3[__yy_gml_array_check_index(gmli,gmlc3)]).gmltext=gml_Script_s_str(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("Map_Tab",
__yy_gml_errCheck(string(argument0))),"_Line"),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmli),1)))),"_B2"));}};{var __yy__v1426=GetWithArray(74);for(var __yy__v1427 in __yy__v1426){if(!__yy__v1426.hasOwnProperty(__yy__v1427))continue;var __yy__v1428=__yy__v1426[__yy__v1427];if(yyGetBool(string_count("@",__yy__v1428.gmltext))){__yy__v1428.visible=false;};}};}}function gml_GlobalScript_s_get_position_colour(_inst,_other){(_inst.gmls_get_position_colour=__yy_method(_inst,gml_Script_s_get_position_colour));
}function gml_Script_s_get_position_colour(_inst,_other,argument0){{var ___sw1090___=argument0;var ___swc1091___=-1;if(yyCompareVal(___sw1090___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,4,g_GMLMathEpsilon,false)==0){___swc1091___=0;}else if(yyCompareVal(___sw1090___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,
7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,8,g_GMLMathEpsilon,false)==0){___swc1091___=1;}else if(yyCompareVal(___sw1090___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,10,g_GMLMathEpsilon,false)==0){___swc1091___=2;}else if(yyCompareVal(___sw1090___,100,g_GMLMathEpsilon,false)==0){___swc1091___=3;}else if(yyCompareVal(___sw1090___,101,g_GMLMathEpsilon,false)==0){___swc1091___=4;}else if(yyCompareVal(___sw1090___,102,g_GMLMathEpsilon,
false)==0){___swc1091___=5;}switch(___swc1091___){case 0:{return global.gmlc_offense;break;}case 1:{return global.gmlc_defense;break;}case 2:{return global.gmlc_specialteams;break;}case 3:{return global.gmlc_headcoach;break;}case 4:{return global.gmlc_defense;break;}case 5:{return global.gmlc_offense;break;}};return global.gmlc_primary;}}function gml_GlobalScript_s_increase_player_attribute(_inst,_other){(_inst.gmls_increase_player_attribute=__yy_method(_inst,gml_Script_s_increase_player_attribute));}function gml_Script_s_increase_player_attribute(_inst,
_other,argument0,argument1){{if(yyGetBool(gml_Script_s_player_at_max_potential(_inst,_other,argument0))){return;};var ___sw1094___=argument1;var ___swc1095___=-1;if(yyCompareVal(___sw1094___,1,g_GMLMathEpsilon,false)==0){___swc1095___=0;}else if(yyCompareVal(___sw1094___,2,g_GMLMathEpsilon,false)==0){___swc1095___=1;}else if(yyCompareVal(___sw1094___,3,g_GMLMathEpsilon,false)==0){___swc1095___=2;}else if(yyCompareVal(___sw1094___,4,g_GMLMathEpsilon,false)==0){___swc1095___=3;}switch(___swc1095___){case 0:{
if(yyfless(ds_map_find_value(argument0,"skill"),ds_map_find_value(argument0,"max_skill"))){{ds_map_set(argument0,"skill",yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill")),1));ds_map_set_post(argument0,"skill_points",yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill_points")),1));};};break;}case 1:{if(yyfless(ds_map_find_value(argument0,"speed"),ds_map_find_value(argument0,"max_speed"))){{ds_map_set(argument0,"speed",yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"speed")),
1));ds_map_set_post(argument0,"skill_points",yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill_points")),1));};};break;}case 2:{if(yyfless(ds_map_find_value(argument0,"strength"),ds_map_find_value(argument0,"max_strength"))){{ds_map_set(argument0,"strength",yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"strength")),1));ds_map_set_post(argument0,"skill_points",yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill_points")),1));};};break;}case 3:{if(yyfless(ds_map_find_value(argument0,
"stamina"),ds_map_find_value(argument0,"max_stamina"))){{ds_map_set(argument0,"stamina",yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"stamina")),1));ds_map_set_post(argument0,"skill_points",yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill_points")),1));};};break;}};}}function gml_GlobalScript_s_player_at_max_potential(_inst,_other){(_inst.gmls_player_at_max_potential=__yy_method(_inst,gml_Script_s_player_at_max_potential));}function gml_Script_s_player_at_max_potential(_inst,
_other,argument0){{gml_Script_s_round_player_attributes(_inst,_other,argument0);if(yyfless(ds_map_find_value(argument0,"skill"),ds_map_find_value(argument0,"max_skill"))){return false;};if(yyfless(ds_map_find_value(argument0,"speed"),ds_map_find_value(argument0,"max_speed"))){return false;};if(yyfless(ds_map_find_value(argument0,"strength"),ds_map_find_value(argument0,"max_strength"))){return false;};if(yyfless(ds_map_find_value(argument0,"stamina"),ds_map_find_value(argument0,"max_stamina"))){return false;
};return true;}}function gml_GlobalScript_s_is_offensive_player(_inst,_other){(_inst.gmls_is_offensive_player=__yy_method(_inst,gml_Script_s_is_offensive_player));(_inst.gmls_get_training_reg=__yy_method(_inst,gml_Script_s_get_training_reg));}function gml_Script_s_is_offensive_player(_inst,_other,argument0){{var ___sw1098___=ds_map_find_value(argument0,"position");var ___swc1099___=-1;if(yyCompareVal(___sw1098___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,
3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,102,g_GMLMathEpsilon,false)==0){___swc1099___=0;}else if(yyCompareVal(___sw1098___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,
101,g_GMLMathEpsilon,false)==0){___swc1099___=1;}switch(___swc1099___){case 0:{return true;}case 1:{return false;}};return false;}}function gml_Script_s_get_training_reg(_inst,_other,argument0){{var gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,argument0))){gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_of;};return gmltrainingreg;}}function gml_GlobalScript_s_is_defensive_player(_inst,_other,argument0){(_inst.gmls_is_defensive_player=__yy_method(_inst,
gml_Script_s_is_defensive_player));}function gml_Script_s_is_defensive_player(_inst,_other,argument0){{var gmlpmap=argument0;var ___sw1102___=ds_map_find_value(gmlpmap,"position");var ___swc1103___=-1;if(yyCompareVal(___sw1102___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1102___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1102___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1102___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1102___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1102___,
10,g_GMLMathEpsilon,false)==0){___swc1103___=0;}else if(yyCompareVal(___sw1102___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1102___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1102___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1102___,9,g_GMLMathEpsilon,false)==0){___swc1103___=1;}switch(___swc1103___){case 0:{return false;}case 1:{return true;}};return false;}}function gml_GlobalScript_s_get_average_yards(_inst,_other,argument0,argument1,argument2){(_inst.gmls_get_average_yards=__yy_method(_inst,
gml_Script_s_get_average_yards));}function gml_Script_s_get_average_yards(_inst,_other,argument0,argument1,argument2){{var gmlpmap=argument0;var gmltyp="stat_";var ___sw1108___=argument1;var ___swc1109___=-1;if(yyCompareVal(___sw1108___,0,g_GMLMathEpsilon,false)==0){___swc1109___=0;}else if(yyCompareVal(___sw1108___,1,g_GMLMathEpsilon,false)==0){___swc1109___=1;}else if(yyCompareVal(___sw1108___,2,g_GMLMathEpsilon,false)==0){___swc1109___=2;}switch(___swc1109___){case 0:{gmltyp="stat_";break;}case 1:{gmltyp="season_";
break;}case 2:{gmltyp="career_";break;}};if(yyGetBool(argument2)){gmltyp=yyfplus(gmltyp,"rush_");};var ___sw1110___=ds_map_find_value(gmlpmap,"position");var ___swc1111___=-1;if(yyCompareVal(___sw1110___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,4,g_GMLMathEpsilon,false)==0){___swc1111___=0;}switch(___swc1111___){case 0:{if(yyGetBool(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"attempts")))){return yyfdivide(__yy_gml_errCheck(round(ds_map_find_value(gmlpmap,
yyfplus(__yy_gml_errCheck(gmltyp),"yards")))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"attempts"))));};break;}default :{if(yyGetBool(argument2)){{if(yyGetBool(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"attempts")))){return yyfdivide(__yy_gml_errCheck(round(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"yards")))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"attempts"))));};};}else {if(yyGetBool(ds_map_find_value(gmlpmap,
yyfplus(__yy_gml_errCheck(gmltyp),"complete")))){return yyfdivide(__yy_gml_errCheck(round(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"yards")))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"complete"))));};};break;}};return 0;}}function gml_GlobalScript_s_get_player_name(_inst,_other,argument0,argument1){(_inst.gmls_get_player_name=__yy_method(_inst,gml_Script_s_get_player_name));}function gml_Script_s_get_player_name(_inst,_other,argument0,argument1){
{var gmlpmap=argument0;var gmlshort=argument1;var ___sw1114___=gmlshort;var ___swc1115___=-1;if(yyCompareVal(___sw1114___,false,g_GMLMathEpsilon,false)==0){___swc1115___=0;}else if(yyCompareVal(___sw1114___,true,g_GMLMathEpsilon,false)==0){___swc1115___=1;}switch(___swc1115___){case 0:{return yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));break;}case 1:{return yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(gmlpmap,
"fname"),1,1)),"."),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));break;}};}}function gml_GlobalScript_s_get_meeting_cost_morale(_inst,_other,argument0){(_inst.gmls_get_meeting_cost_morale=__yy_method(_inst,gml_Script_s_get_meeting_cost_morale));}function gml_Script_s_get_meeting_cost_morale(_inst,_other,argument0){{var ___sw1118___=gml_Script_s_get_attitude_icon(_inst,_other,ds_map_find_value(argument0,"attitude"));var ___swc1119___=-1;if(yyCompareVal(___sw1118___,0,g_GMLMathEpsilon,false)==0){
___swc1119___=0;}else if(yyCompareVal(___sw1118___,1,g_GMLMathEpsilon,false)==0){___swc1119___=1;}else if(yyCompareVal(___sw1118___,2,g_GMLMathEpsilon,false)==0){___swc1119___=2;}else if(yyCompareVal(___sw1118___,3,g_GMLMathEpsilon,false)==0){___swc1119___=3;}else if(yyCompareVal(___sw1118___,4,g_GMLMathEpsilon,false)==0){___swc1119___=4;}else if(yyCompareVal(___sw1118___,5,g_GMLMathEpsilon,false)==0){___swc1119___=5;}else if(yyCompareVal(___sw1118___,6,g_GMLMathEpsilon,false)==0){___swc1119___=6;}switch(___swc1119___){
case 0:{return 4;break;}case 1:{return 3;break;}case 2:{return 3;break;}case 3:{return 2;break;}case 4:{return 2;break;}case 5:{return 1;break;}case 6:{return 1;break;}};return 99;}}function gml_GlobalScript_s_get_meeting_cost_condition(_inst,_other,argument0){(_inst.gmls_get_meeting_cost_condition=__yy_method(_inst,gml_Script_s_get_meeting_cost_condition));}function gml_Script_s_get_meeting_cost_condition(_inst,_other,argument0){{var gmlcost=yyfdivide(__yy_gml_errCheck(yyfminus(100,__yy_gml_errCheck(ds_map_find_value(argument0,
"condition")))),5);return clamp(round(gmlcost),1,100);}}function gml_GlobalScript_s_get_meeting_cost_levelup(_inst,_other,argument0){(_inst.gmls_get_meeting_cost_levelup=__yy_method(_inst,gml_Script_s_get_meeting_cost_levelup));}function gml_Script_s_get_meeting_cost_levelup(_inst,_other,argument0){{return round(yyftime(__yy_gml_errCheck(real(ds_map_find_value(argument0,"xp_level"))),4));}}function gml_GlobalScript_s_get_meeting_cost_delay_retirement(_inst,_other,argument0){(_inst.gmls_get_meeting_cost_delay_retirement=__yy_method(_inst,
gml_Script_s_get_meeting_cost_delay_retirement));}function gml_Script_s_get_meeting_cost_delay_retirement(_inst,_other,argument0){{var gmlpmap=argument0;var gmlyears_over=yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age")),__yy_gml_errCheck(gml_Script_s_get_max_age(_inst,_other,gmlpmap)));return yyfplus(25,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(gmlyears_over),__yy_gml_errCheck(gmlyears_over)),25)));}}function gml_GlobalScript_s_get_meeting_cost_extend_contract(_inst,_other,argument0){
(_inst.gmls_get_meeting_cost_extend_contract=__yy_method(_inst,gml_Script_s_get_meeting_cost_extend_contract));}function gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,argument0){{var gmlpmap=argument0;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return gml_Script_s_get_meeting_cost_academic_coaching(_inst,_other,gmlpmap);};};var gmlcost=round(yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlpmap)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"salary")),0.5))));gmlcost=yyfplus(gmlcost,yyftime(5,__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract"))));return gmlcost;}}function gml_GlobalScript_s_get_match_rating(_inst,_other){(_inst.gmls_get_match_rating=__yy_method(_inst,gml_Script_s_get_match_rating));}function gml_Script_s_get_match_rating(_inst,_other,argument0){{var gmlmrating=0;var gmlpos=ds_map_find_value(argument0,"position");var ___sw1124___=gmlpos;var ___swc1125___=-1;if(yyCompareVal(___sw1124___,1,g_GMLMathEpsilon,false)==0){___swc1125___=0;
}else if(yyCompareVal(___sw1124___,5,g_GMLMathEpsilon,false)==0){___swc1125___=1;}else if(yyCompareVal(___sw1124___,4,g_GMLMathEpsilon,false)==0){___swc1125___=2;}else if(yyCompareVal(___sw1124___,3,g_GMLMathEpsilon,false)==0){___swc1125___=3;}else if(yyCompareVal(___sw1124___,2,g_GMLMathEpsilon,false)==0){___swc1125___=4;}else if(yyCompareVal(___sw1124___,10,g_GMLMathEpsilon,false)==0){___swc1125___=5;}else if(yyCompareVal(___sw1124___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1124___,7,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw1124___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1124___,9,g_GMLMathEpsilon,false)==0){___swc1125___=6;}switch(___swc1125___){case 0:{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_touchdowns"));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_rush_touchdowns"));gmlmrating=yyfminus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_int")),0.5));gmlmrating=yyfminus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,
"stat_sacks")),0.5));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_yards")),50));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_rush_yards")),25));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_fumbles"));break;}case 1:{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_tackles"));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_complete")),
0.25));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_sacks"));break;}case 2:{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_tackles"));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_touchdowns"));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_yards")),20));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_fumbles"));if(yyGetBool(ds_map_find_value(argument0,"stat_return_attempts"))){{gmlmrating=yyfplus(gmlmrating,
yyfdivide(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_yards")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_attempts")))),10));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_return_tds"));};};if((yyGetBool(yyfless(gmlmrating,5)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stat_touchdowns"),0)))){gmlmrating=5;};break;}case 3:{gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_tackles")),
2));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_touchdowns")),2));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_yards")),7.5));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_fumbles"));if((yyGetBool(yyfless(gmlmrating,5)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stat_touchdowns"),0)))){gmlmrating=5.5;};break;}case 4:{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_tackles"));
gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_touchdowns")),3));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_yards")),15));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_rush_touchdowns")),2));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_rush_yards")),15));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_fumbles"));
if(yyGetBool(ds_map_find_value(argument0,"stat_return_attempts"))){{gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_yards")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_attempts")))),10));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_return_tds"));};};if((yyGetBool(yyfless(gmlmrating,5)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stat_touchdowns"),0)))){gmlmrating=5;};break;}
case 5:{gmlmrating=5;if(yyGetBool(ds_map_find_value(argument0,"stat_attempts"))){{gmlmrating=4;gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_complete"));gmlmrating=yyfminus(gmlmrating,yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_attempts")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_complete"))));if(yyfgreater(ds_map_find_value(argument0,"stat_longest"),40)){gmlmrating=yyfplus(gmlmrating,2);}else {if(yyfgreater(ds_map_find_value(argument0,"stat_longest"),
30)){gmlmrating=yyfplus(gmlmrating,1);};};};};if((yyGetBool(ds_map_exists(argument0,"stat_attempts_XP")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stat_attempts_XP"),0)))){{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_complete_XP"));gmlmrating=yyfminus(gmlmrating,yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_attempts_XP")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_complete_XP"))));};};break;}case 6:{gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,
"stat_tackles")),1.5));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_int")),2));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_sacks")),2));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_fumbles")),2));if(yyGetBool(ds_map_find_value(argument0,"stat_return_attempts"))){{gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,
"stat_return_yards")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_attempts")))),10));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_return_tds"));};};break;}};if((yyGetBool(ds_map_exists(argument0,"kr")))&&(yyGetBool(ds_map_find_value(argument0,"kr")))){{if((yyGetBool(ds_map_exists(argument0,"backup")))&&(yyGetBool(ds_map_find_value(argument0,"backup")))){gmlmrating=yyfplus(gmlmrating,1);};};};var ___sw1126___=yyInst(_inst,_other,97).gmlop_matchlength;var ___swc1127___=-1;
if(yyCompareVal(___sw1126___,(-1),g_GMLMathEpsilon,false)==0){___swc1127___=0;}else if(yyCompareVal(___sw1126___,0,g_GMLMathEpsilon,false)==0){___swc1127___=1;}else if(yyCompareVal(___sw1126___,1,g_GMLMathEpsilon,false)==0){___swc1127___=2;}switch(___swc1127___){case 0:{gmlmrating=yyftime(gmlmrating,1.33);break;}case 1:{break;}case 2:{gmlmrating=yyftime(gmlmrating,0.66);break;}};if(yyfgreaterequal(gmlmrating,10)){{if((yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,argument0)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,
"stat_fumbles"),0)))){gmlmrating=9;};if(yyfequal(gmlpos,1)){{if(yyfgreater(ds_map_find_value(argument0,"stat_int"),0)){gmlmrating=9;};if(yyfgreater(ds_map_find_value(argument0,"stat_sacks"),0)){gmlmrating=9;};};}else {if(yyfequal(gmlpos,10)){{if(yyfgreater(ds_map_find_value(argument0,"stat_attempts"),ds_map_find_value(argument0,"stat_complete"))){gmlmrating=9;};};};};};};return clamp(round(gmlmrating),1,10);}}function gml_GlobalScript_s_reset_match_stats(_inst,_other){(_inst.gmls_reset_match_stats=__yy_method(_inst,
gml_Script_s_reset_match_stats));}function gml_Script_s_reset_match_stats(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_reset_match_stats");{var __yy__v1429=GetWithArray(97);for(var __yy__v1430 in __yy__v1429){if(!__yy__v1429.hasOwnProperty(__yy__v1430))continue;var __yy__v1431=__yy__v1429[__yy__v1430];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1431.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1431.gmlroster,
gmli);ds_map_set(gmlpmap,"stat_attempts",0);ds_map_set(gmlpmap,"stat_complete",0);ds_map_set(gmlpmap,"stat_yards",0);ds_map_set(gmlpmap,"stat_longest",0);ds_map_set(gmlpmap,"stat_touchdowns",0);ds_map_set(gmlpmap,"stat_fumbles",0);ds_map_set(gmlpmap,"stat_int",0);ds_map_set(gmlpmap,"stat_sacks",0);ds_map_set(gmlpmap,"stat_tackles",0);ds_map_set(gmlpmap,"stat_rush_attempts",0);ds_map_set(gmlpmap,"stat_rush_yards",0);ds_map_set(gmlpmap,"stat_rush_longest",0);ds_map_set(gmlpmap,"stat_rush_touchdowns",
0);ds_map_set(gmlpmap,"stat_return_yards",0);ds_map_set(gmlpmap,"stat_return_tds",0);ds_map_set(gmlpmap,"stat_return_longest",0);ds_map_set(gmlpmap,"stat_return_attempts",0);if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{ds_map_set(gmlpmap,"stat_attempts_XP",0);ds_map_set(gmlpmap,"stat_complete_XP",0);};};if(yyGetBool(argument0)){{ds_map_set(gmlpmap,"season_games",0);ds_map_set(gmlpmap,"season_attempts",0);ds_map_set(gmlpmap,"season_complete",0);ds_map_set(gmlpmap,"season_yards",0);ds_map_set(gmlpmap,
"season_longest",0);ds_map_set(gmlpmap,"season_touchdowns",0);ds_map_set(gmlpmap,"season_fumbles",0);ds_map_set(gmlpmap,"season_int",0);ds_map_set(gmlpmap,"season_sacks",0);ds_map_set(gmlpmap,"season_tackles",0);ds_map_set(gmlpmap,"season_rush_attempts",0);ds_map_set(gmlpmap,"season_rush_yards",0);ds_map_set(gmlpmap,"season_rush_longest",0);ds_map_set(gmlpmap,"season_rush_touchdowns",0);ds_map_set(gmlpmap,"season_return_yards",0);ds_map_set(gmlpmap,"season_return_tds",0);ds_map_set(gmlpmap,"season_return_longest",
0);ds_map_set(gmlpmap,"season_return_attempts",0);if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{ds_map_set(gmlpmap,"season_attempts_XP",0);ds_map_set(gmlpmap,"season_complete_XP",0);};};};};}};}}};}}function gml_GlobalScript_s_toxic_effect_on_morale(_inst,_other){(_inst.gmls_toxic_effect_on_morale=__yy_method(_inst,gml_Script_s_toxic_effect_on_morale));}function gml_Script_s_toxic_effect_on_morale(_inst,_other){{{var __yy__v1432=GetWithArray(97);for(var __yy__v1433 in __yy__v1432){if(!__yy__v1432.hasOwnProperty(__yy__v1433))continue;
var __yy__v1434=__yy__v1432[__yy__v1433];{var gmlof_coach=gml_Script_s_get_staff(__yy__v1434,_inst,102);var gmldf_coach=gml_Script_s_get_staff(__yy__v1434,_inst,101);var gmlof_negotiator=false;var gmldf_negotiator=false;if(yyfequal(ds_map_find_value(gmlof_coach,"trait"),4)){gmlof_negotiator=true;};if(yyfequal(ds_map_find_value(gmldf_coach,"trait"),4)){gmldf_negotiator=true;};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1434.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1434.gmlroster,gmli);if(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)){{if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1434,_inst,gmlpmap))){{if(!yyGetBool(gmlof_negotiator)){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1434.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap2=ds_list_find_value(__yy__v1434.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap2,
"attitude"),30)){ds_map_set(gmlpmap2,"attitude",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap2,"attitude")),__yy_gml_errCheck(irandom(3))));};}};};};};}else {{if(!yyGetBool(gmldf_negotiator)){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1434.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap2=ds_list_find_value(__yy__v1434.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap2,"attitude"),30)){ds_map_set(gmlpmap2,
"attitude",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap2,"attitude")),__yy_gml_errCheck(irandom(3))));};}};};};};};};};}};}}};}}function gml_GlobalScript_s_match_rating_effect_on_morale(_inst,_other){(_inst.gmls_match_rating_effect_on_morale=__yy_method(_inst,gml_Script_s_match_rating_effect_on_morale));}function gml_Script_s_match_rating_effect_on_morale(_inst,_other){{{var __yy__v1435=GetWithArray(97);for(var __yy__v1436 in __yy__v1435){if(!__yy__v1435.hasOwnProperty(__yy__v1436))continue;var __yy__v1437=__yy__v1435[__yy__v1436];
{gml_Script_slog(__yy__v1437,_inst,"s_match_rating_effect_on_morale");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1437.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1437.gmlroster,gmli);var gmlrat=gml_Script_s_get_match_rating(__yy__v1437,_inst,gmlpmap);if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"backup"),true)))){{ds_map_set(gmlpmap,
"attitude",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),5),1,100));};}else {if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1437,_inst,gmlpmap))))){{gml_Script_slog(__yy__v1437,_inst,yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))," Rating = "),__yy_gml_errCheck(string(gmlrat))));gml_Script_slog(__yy__v1437,_inst,yyfplus("Attitude was = ",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,
"attitude")))));var gmlamt=lerp((-5),2,yyftime(__yy_gml_errCheck(gmlrat),0.1));gml_Script_slog(__yy__v1437,_inst,yyfplus("Amt = ",__yy_gml_errCheck(string(gmlamt))));ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(gmlamt)),1,100));gml_Script_slog(__yy__v1437,_inst,yyfplus("Attitude now = ",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"attitude")))));};};};}};}}};}}function gml_GlobalScript_s_training_regime_effect_on_morale(_inst,
_other){(_inst.gmls_training_regime_effect_on_morale=__yy_method(_inst,gml_Script_s_training_regime_effect_on_morale));}function gml_Script_s_training_regime_effect_on_morale(_inst,_other){{{var __yy__v1438=GetWithArray(97);for(var __yy__v1439 in __yy__v1438){if(!__yy__v1438.hasOwnProperty(__yy__v1439))continue;var __yy__v1440=__yy__v1438[__yy__v1439];{gml_Script_slog(__yy__v1440,_inst,"s_training_regime_effect_on_morale");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1440.gmlroster));(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1440.gmlroster,gmli);var gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1440,_inst,gmlpmap))){gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_of;};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1440,_inst,gmlpmap))))){{gml_Script_slog(__yy__v1440,
_inst,yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")),"Attitude was = "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"attitude")))));var gmlamt=0;var ___sw1130___=gmltrainingreg;var ___swc1131___=-1;if(yyCompareVal(___sw1130___,1,g_GMLMathEpsilon,false)==0){___swc1131___=0;}else if(yyCompareVal(___sw1130___,2,g_GMLMathEpsilon,false)==0){___swc1131___=1;}else if(yyCompareVal(___sw1130___,3,g_GMLMathEpsilon,false)==0){___swc1131___=2;}switch(___swc1131___){case 0:{gmlamt=irandom(2);
}case 1:{break;}case 2:{gmlamt=irandom_range((-1),(-3));}};gml_Script_slog(__yy__v1440,_inst,yyfplus("Amt = ",__yy_gml_errCheck(string(gmlamt))));ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(gmlamt)),1,100));gml_Script_slog(__yy__v1440,_inst,yyfplus("Attitude now = ",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"attitude")))));};};}};}}};}}function gml_GlobalScript_s_injury_effect_on_attitude(_inst,_other){(_inst.gmls_injury_effect_on_attitude=__yy_method(_inst,
gml_Script_s_injury_effect_on_attitude));}function gml_Script_s_injury_effect_on_attitude(_inst,_other){{{var __yy__v1441=GetWithArray(97);for(var __yy__v1442 in __yy__v1441){if(!__yy__v1441.hasOwnProperty(__yy__v1442))continue;var __yy__v1443=__yy__v1441[__yy__v1442];{var gmloc=gml_Script_s_get_staff(__yy__v1443,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1443,_inst,101);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1443.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1443.gmlroster,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmloc,"trait"),8)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1443,_inst,gmlpmap)))){continue;}else {if((yyGetBool(yyfequal(ds_map_find_value(gmldc,"trait"),8)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(__yy__v1443,_inst,gmlpmap))))){continue;};};if((yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,
"attitude"),60)))){ds_map_set(gmlpmap,"attitude",clamp(yyfplus(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),1),__yy_gml_errCheck(irandom(5))),1,100));};}};}}};}}function gml_GlobalScript_s_rehab_effect(_inst,_other,argument0,argument1){(_inst.gmls_rehab_effect=__yy_method(_inst,gml_Script_s_rehab_effect));}function gml_Script_s_rehab_effect(_inst,_other,argument0,argument1){{var gmlamt=argument0;var gmlupdate_injuries=argument1;{var __yy__v1444=GetWithArray(97);for(var __yy__v1445 in __yy__v1444){
if(!__yy__v1444.hasOwnProperty(__yy__v1445))continue;var __yy__v1446=__yy__v1444[__yy__v1445];{var gmloc=gml_Script_s_get_staff(__yy__v1446,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1446,_inst,101);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1446.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1446.gmlroster,gmli);var gmlcon=ds_map_find_value(gmlpmap,"condition");if(yyfless(gmlcon,
0)){{if((yyGetBool(gmlupdate_injuries))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlpmap,"injury_week"),__yy__v1446.gmlweek)))){{gmlcon=yyfplus(gmlcon,1);if(yyfequal(gmlcon,0)){{ds_map_set(gmlpmap,"injury_week",0);gmlcon=irandom_range(85,100);var gmlmsg=gml_Script_s_str(__yy__v1446,_inst,"news_PlayerRecovered");gmlmsg=gml_Script_s_parse_player_message(__yy__v1446,_inst,gmlmsg,gmlpmap);gml_Script_s_add_news(__yy__v1446,_inst,gmlmsg);};};ds_map_set(gmlpmap,"condition",round(gmlcon));};};};}else {{if(yyGetBool(gml_Script_s_player_benched(__yy__v1446,
_inst,gmlpmap))){{gmlcon=yyfplus(gmlcon,yyftime(__yy_gml_errCheck(gmlamt),2));};}else {{gmlcon=yyfplus(gmlcon,gmlamt);var gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1446,_inst,gmlpmap))){gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_of;};if(yyfgreater(gmlamt,10)){{if(yyfequal(gmltrainingreg,1)){gmlcon=yyfplus(gmlcon,10);}else {if(yyfequal(gmltrainingreg,3)){gmlcon=yyfminus(gmlcon,10);};};};};};};if((yyGetBool(yyfequal(ds_map_find_value(gmloc,
"trait"),6)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1446,_inst,gmlpmap)))){gmlcon=yyfplus(gmlcon,5);}else {if((yyGetBool(yyfequal(ds_map_find_value(gmldc,"trait"),6)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(__yy__v1446,_inst,gmlpmap))))){gmlcon=yyfplus(gmlcon,5);};};ds_map_set(gmlpmap,"condition",round(clamp(gmlcon,1,100)));};};}};}}};}}function gml_GlobalScript_s_add_xp_gain_all(_inst,_other){(_inst.gmls_add_xp_gain_all=__yy_method(_inst,gml_Script_s_add_xp_gain_all));
}function gml_Script_s_add_xp_gain_all(_inst,_other,argument0,argument1){{{var __yy__v1447=GetWithArray(97);for(var __yy__v1448 in __yy__v1447){if(!__yy__v1447.hasOwnProperty(__yy__v1448))continue;var __yy__v1449=__yy__v1447[__yy__v1448];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1449.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1449.gmlroster,gmli);var gmlcon=ds_map_find_value(gmlpmap,
"condition");if((yyGetBool(argument1))||(yyGetBool(yyfgreater(gmlcon,0)))){ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(argument0))));};}};}}};}}function gml_GlobalScript_s_check_for_injury(_inst,_other,argument0){(_inst.gmls_check_for_injury=__yy_method(_inst,gml_Script_s_check_for_injury));}function gml_Script_s_check_for_injury(_inst,_other,argument0){{var gmlpmap=argument0;if(yyfequal(yyInst(_inst,_other,97).gmlyear,1)){return false;
};if(yyfequal(yyInst(_inst,_other,97).gmlweek,1)){return false;};if(yyfgreaterequal(yyInst(_inst,_other,97).gmlweek,yyfminus(__yy_gml_errCheck(gml_Script_s_get_week_superbowl(_inst,_other)),1))){return false;};if(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))){return false;};if(yyfless(gml_Script_s_count_remaining_fixtures(_inst,_other),2)){return false;};var gmltrainingreg=yyInst(_inst,_other,97).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,gmlpmap))){gmltrainingreg=yyInst(_inst,
_other,97).gmltraining_reg_of;};if((yyGetBool(yyfequal(gmltrainingreg,1)))&&(yyGetBool(irandom(9)))){return false;};if((yyGetBool(yyfequal(gmltrainingreg,2)))&&(yyGetBool(irandom(4)))){return false;};if(yyfgreater(yyfplus(5,__yy_gml_errCheck(irandom(gml_Script_s_max_age_qb_internal(_inst,_other)))),ds_map_find_value(gmlpmap,"age"))){return false;};var gmlsize=ds_list_size(yyInst(_inst,_other,97).gmlroster);if(yyfless(gmlsize,2)){return false;};var gmlnum_inj=gml_Script_s_count_injuries(_inst,_other);var gmlinj_weeks=gml_Script_s_count_injuries_weeks(_inst,
_other);if(yyfgreater(gmlnum_inj,2)){return false;};if(yyfless(yyInst(_inst,_other,97).gmlop_difficulty,3)){{if((yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlfacility_rehab,6)))&&(yyGetBool(yyfgreater(gmlnum_inj,1)))){return false;};if((yyGetBool(yyfless(gmlsize,7)))&&(yyGetBool(yyfgreater(gmlnum_inj,1)))){return false;};};};var gmlmax_weeks=yyfminus(11,__yy_gml_errCheck(floor(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfacility_rehab),0.5))));if(yyfgreaterequal(gmlinj_weeks,gmlmax_weeks)){
return false;};gmlmax_weeks=clamp(yyfminus(__yy_gml_errCheck(gmlmax_weeks),__yy_gml_errCheck(gmlinj_weeks)),1,5);var gmlinj=0;var gmlcon=ds_map_find_value(gmlpmap,"condition");var gmlfac=yyInst(_inst,_other,97).gmlfacility_rehab;var gmlchance_exh=4;var gmlchance_tir=8;var gmlchance_ok=12;if(yyflessequal(gmlcon,20)){{if(!yyGetBool(irandom(gmlchance_exh))){gmlinj=irandom_range(1,gmlmax_weeks);};};}else {if(yyflessequal(gmlcon,40)){{if(!yyGetBool(irandom(gmlchance_tir))){gmlinj=irandom_range(1,yyfminus(__yy_gml_errCheck(gmlmax_weeks),
1));};};}else {if(!yyGetBool(irandom(gmlchance_ok))){gmlinj=yyfplus(1,__yy_gml_errCheck(irandom(1)));};};};if(yyflessequal(gmlinj,0)){return false;};if(yyfgreater(ds_map_find_value(gmlpmap,"age"),29)){gmlinj=yyfplus(gmlinj,1);};gmlinj=yyfminus(gmlinj,irandom(round(yyftime(__yy_gml_errCheck(gmlfac),0.4))));gmlinj=clamp(gmlinj,1,10);if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),1)))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlyear,3)))){gmlinj=min(gmlinj,2);};var gmlmsg=gml_Script_s_str(_inst,
_other,"news_PlayerInjured");if(yyfequal(gmlinj,1)){gmlmsg=gml_Script_s_str(_inst,_other,"news_PlayerInjured1");};gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gmlmsg,gmlpmap);gmlmsg=string_replace(gmlmsg,"$num",gmlinj);gml_Script_s_add_news(_inst,_other,gmlmsg);ds_map_set(gmlpmap,"injury_week",yyInst(_inst,_other,97).gmlweek);ds_map_set(gmlpmap,"condition",__yy_gml_errCheck(-__yy_gml_errCheck(gmlinj)));return true;}}function gml_GlobalScript_s_count_injuries(_inst,_other){(_inst.gmls_count_injuries=__yy_method(_inst,
gml_Script_s_count_injuries));}function gml_Script_s_count_injuries(_inst,_other){{{var __yy__v1450=GetWithArray(97);for(var __yy__v1451 in __yy__v1450){if(!__yy__v1450.hasOwnProperty(__yy__v1451))continue;var __yy__v1452=__yy__v1450[__yy__v1451];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1452.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1452.gmlroster,gmli);if(yyflessequal(ds_map_find_value(gmlpmap,
"condition"),(-1))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_GlobalScript_s_count_injuries_weeks(_inst,_other){(_inst.gmls_count_injuries_weeks=__yy_method(_inst,gml_Script_s_count_injuries_weeks));}function gml_Script_s_count_injuries_weeks(_inst,_other){{{var __yy__v1453=GetWithArray(97);for(var __yy__v1454 in __yy__v1453){if(!__yy__v1453.hasOwnProperty(__yy__v1454))continue;var __yy__v1455=__yy__v1453[__yy__v1454];
{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1455.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1455.gmlroster,gmli);if(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))){gmlcount=yyfplus(gmlcount,abs(ds_map_find_value(gmlpmap,"condition")));};}};return gmlcount;}}};}}function gml_GlobalScript_s_choose_face(_inst,_other){(_inst.gmls_choose_face=__yy_method(_inst,
gml_Script_s_choose_face));}function gml_Script_s_choose_face(_inst,_other,argument0,argument1){{var gmlgw=ds_grid_width(argument1);var gmlgh=ds_grid_height(argument1);var gmlsx=irandom(yyfminus(__yy_gml_errCheck(gmlgw),1));var gmlsy=irandom(yyfminus(__yy_gml_errCheck(gmlgh),1));if(yyfequal(ds_grid_get_min(argument1,0,0,gmlgw,gmlgh),1)){{ds_grid_clear(argument1,0);{var __yy__v1456=GetWithArray(97);for(var __yy__v1457 in __yy__v1456){if(!__yy__v1456.hasOwnProperty(__yy__v1457))continue;var __yy__v1458=__yy__v1456[__yy__v1457];
{if((yyGetBool(yyfequal(argument1,__yy__v1458.gmlface_grid_C)))&&(yyGetBool(yyfgreaterequal(__yy__v1458.gmlmyface_x,0)))&&(yyGetBool(yyfgreaterequal(__yy__v1458.gmlmyface_y,0)))){ds_grid_set(argument1,__yy__v1458.gmlmyface_x,__yy__v1458.gmlmyface_y,1);};}}};};};var gmlfx=gmlsx;for(;yyfless(gmlfx,ds_grid_width(argument1));(g_yyPrePostObject__=gmlfx,gmlfx=(g_yyPrePostObject__ instanceof Long?gmlfx.add(1):++gmlfx),g_yyPrePostObject__)){{var gmlfy=gmlsy;for(;yyfless(gmlfy,ds_grid_height(argument1));(g_yyPrePostObject__=gmlfy,
gmlfy=(g_yyPrePostObject__ instanceof Long?gmlfy.add(1):++gmlfy),g_yyPrePostObject__)){{if(yyfequal(ds_grid_get(argument1,gmlfx,gmlfy),0)){{ds_grid_set(argument1,gmlfx,gmlfy,1);ds_map_set(argument0,"face_x",gmlfx);ds_map_set(argument0,"face_y",gmlfy);return argument0;};};}};}};var gmlfx=0;for(;yyfless(gmlfx,gmlgw);(g_yyPrePostObject__=gmlfx,gmlfx=(g_yyPrePostObject__ instanceof Long?gmlfx.add(1):++gmlfx),g_yyPrePostObject__)){{var gmlfy=0;for(;yyfless(gmlfy,gmlgh);(g_yyPrePostObject__=gmlfy,gmlfy=(g_yyPrePostObject__ instanceof Long?gmlfy.add(1):++gmlfy),
g_yyPrePostObject__)){{if(yyfequal(ds_grid_get(argument1,gmlfx,gmlfy),0)){{ds_grid_set(argument1,gmlfx,gmlfy,1);ds_map_set(argument0,"face_x",gmlfx);ds_map_set(argument0,"face_y",gmlfy);return argument0;};};}};}};gml_Script_slog(_inst,_other,yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"lname"))," no face!"));}}function gml_GlobalScript_s_get_max_age(_inst,_other){}function gml_GlobalScript_s_get_max_age_normal(_inst,_other,argument0){(_inst.gmls_get_max_age_normal=__yy_method(_inst,gml_Script_s_get_max_age_normal));
}function gml_Script_s_get_max_age_normal(_inst,_other,argument0){{var gmlpmap=argument0;var gmlmax_age=gml_Script_s_max_age_player_internal(_inst,_other);var ___sw1134___=ds_map_find_value(gmlpmap,"position");var ___swc1135___=-1;if(yyCompareVal(___sw1134___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,10,g_GMLMathEpsilon,false)==0){___swc1135___=0;}else if(yyCompareVal(___sw1134___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,
4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,9,g_GMLMathEpsilon,false)==0){___swc1135___=1;}else if(yyCompareVal(___sw1134___,100,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,101,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1134___,102,g_GMLMathEpsilon,false)==0){
___swc1135___=2;}switch(___swc1135___){case 0:{gmlmax_age=gml_Script_s_max_age_qb_internal(_inst,_other);break;}case 1:{break;}case 2:{gmlmax_age=65;break;}};return gmlmax_age;}}function gml_GlobalScript_s_get_num_audibles(_inst,_other){(_inst.gmls_get_num_audibles=__yy_method(_inst,gml_Script_s_get_num_audibles));}function gml_Script_s_get_num_audibles(_inst,_other,argument0){{if(yyfequal(yyInst(_inst,_other,97).gmlyear,1)){return 0;};if(yyfgreater(ds_map_find_value(argument0,"xp_level"),10)){return 5;
};if(yyfgreater(ds_map_find_value(argument0,"xp_level"),6)){return 4;};if(yyfgreater(ds_map_find_value(argument0,"xp_level"),3)){return 3;};if(yyfgreater(ds_map_find_value(argument0,"xp_level"),1)){return 2;};return 1;}}function gml_GlobalScript_s_get_morale(_inst,_other){(_inst.gmls_get_morale=__yy_method(_inst,gml_Script_s_get_morale));}function gml_Script_s_get_morale(_inst,_other){{var gmlmor=0;{var __yy__v1459=GetWithArray(97);for(var __yy__v1460 in __yy__v1459){if(!__yy__v1459.hasOwnProperty(__yy__v1460))continue;
var __yy__v1461=__yy__v1459[__yy__v1460];{var gmlsize=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1461.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1461.gmlroster,gmli);if(yyGetBool(is_undefined(ds_map_find_value(gmlpmap,"attitude")))){ds_map_set(gmlpmap,"attitude",50);};gmlmor=yyfplus(gmlmor,ds_map_find_value(gmlpmap,"attitude"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),
g_yyPrePostObject__);}};if(!yyGetBool(__yy__v1461.gmlqb_mode)){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1461.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1461.gmlstafflist,gmli);if(yyGetBool(is_undefined(ds_map_find_value(gmlpmap,"attitude")))){ds_map_set(gmlpmap,"attitude",50);};gmlmor=yyfplus(gmlmor,ds_map_find_value(gmlpmap,"attitude"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),
g_yyPrePostObject__);}};};};gmlmor=yyfdivide(gmlmor,gmlsize);gmlmor=round(yyfplus(1,__yy_gml_errCheck(gmlmor)));return clamp(gmlmor,1,100);}}};}}function gml_GlobalScript_s_get_condition_squad(_inst,_other){(_inst.gmls_get_condition_squad=__yy_method(_inst,gml_Script_s_get_condition_squad));}function gml_Script_s_get_condition_squad(_inst,_other){{var gmlcon=0;{var __yy__v1462=GetWithArray(97);for(var __yy__v1463 in __yy__v1462){if(!__yy__v1462.hasOwnProperty(__yy__v1463))continue;var __yy__v1464=__yy__v1462[__yy__v1463];
{var gmlsize=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1464.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1464.gmlroster,gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1464,_inst,gmlpmap))))){{gmlcon=yyfplus(gmlcon,ds_map_find_value(gmlpmap,"condition"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),
g_yyPrePostObject__);};};}};if(yyfgreater(gmlsize,0)){gmlcon=yyfdivide(gmlcon,gmlsize);};return round(gmlcon);}}};}}function gml_GlobalScript_s_adjust_team_morale(_inst,_other,argument0,argument1){(_inst.gmls_adjust_team_morale=__yy_method(_inst,gml_Script_s_adjust_team_morale));}function gml_Script_s_adjust_team_morale(_inst,_other,argument0,argument1){{var gmlamt_min=argument0;var gmlamt_max=argument1;{var __yy__v1465=GetWithArray(97);for(var __yy__v1466 in __yy__v1465){if(!__yy__v1465.hasOwnProperty(__yy__v1466))continue;
var __yy__v1467=__yy__v1465[__yy__v1466];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1467.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1467.gmlroster,gmli);ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(irandom_range(gmlamt_min,gmlamt_max))),1,100));}};}}};}}function gml_GlobalScript_s_set_team_morale(_inst,_other,
argument0,argument1){(_inst.gmls_set_team_morale=__yy_method(_inst,gml_Script_s_set_team_morale));}function gml_Script_s_set_team_morale(_inst,_other,argument0,argument1){{var gmlamt_min=argument0;var gmlamt_max=argument1;{var __yy__v1468=GetWithArray(97);for(var __yy__v1469 in __yy__v1468){if(!__yy__v1468.hasOwnProperty(__yy__v1469))continue;var __yy__v1470=__yy__v1468[__yy__v1469];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1470.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1470.gmlroster,gmli);ds_map_set(gmlpmap,"attitude",clamp(irandom_range(gmlamt_min,gmlamt_max),1,100));}};}}};}}function gml_GlobalScript_s_position_edit_name_btn(_inst,_other){(_inst.gmls_position_edit_name_btn=__yy_method(_inst,gml_Script_s_position_edit_name_btn));}function gml_Script_s_position_edit_name_btn(_inst,_other){{draw_set_font(yyInst(_inst,_other,100422).gmlfont);var gmlbx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100422).x),
__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100422).gmltext)),2)));yyInst(_inst,_other,100417).x=yyfplus(__yy_gml_errCheck(gmlbx),8);yyInst(_inst,_other,100412).x=yyfplus(__yy_gml_errCheck(gmlbx),8);yyInst(_inst,_other,100404).x=yyfplus(__yy_gml_errCheck(gmlbx),8);}}function gml_GlobalScript_s_update_rest_all_button(_inst,_other){(_inst.gmls_update_rest_all_button=__yy_method(_inst,gml_Script_s_update_rest_all_button));}function gml_Script_s_update_rest_all_button(_inst,
_other){{{var __yy__v1471=GetWithArray(97);for(var __yy__v1472 in __yy__v1471){if(!__yy__v1471.hasOwnProperty(__yy__v1472))continue;var __yy__v1473=__yy__v1471[__yy__v1472];{if((yyGetBool(yyfequal(__yy__v1473.gmlstage,7)))||(yyGetBool(__yy__v1473.gmlqb_mode))){{yyInst(_inst,_other,100616).visible=false;};}else {{yyInst(_inst,_other,100616).visible=true;yyInst(_inst,_other,100616).gmltext=gml_Script_s_str(__yy__v1473,_inst,"btn_RestAll");if(yyGetBool(gml_Script_s_all_players_resting(__yy__v1473,_inst))){
yyInst(_inst,_other,100616).gmltext=gml_Script_s_str(__yy__v1473,_inst,"btn_UnrestAll");};};};}}};}}function gml_GlobalScript_s_all_players_resting(_inst,_other){(_inst.gmls_all_players_resting=__yy_method(_inst,gml_Script_s_all_players_resting));}function gml_Script_s_all_players_resting(_inst,_other){{{var __yy__v1474=GetWithArray(97);for(var __yy__v1475 in __yy__v1474){if(!__yy__v1474.hasOwnProperty(__yy__v1475))continue;var __yy__v1476=__yy__v1474[__yy__v1475];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1476.gmlroster));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1476.gmlroster,gmli);if(!yyGetBool(ds_map_find_value(gmlpmap,"resting"))){{return false;};};}};}}};return true;}}function gml_GlobalScript_s_rest_all_players(_inst,_other,argument0){(_inst.gmls_rest_all_players=__yy_method(_inst,gml_Script_s_rest_all_players));}function gml_Script_s_rest_all_players(_inst,_other,argument0){{var gmlrest=argument0;var gmli=0;for(;
yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmli);var ___sw1138___=gmlrest;var ___swc1139___=-1;if(yyCompareVal(___sw1138___,true,g_GMLMathEpsilon,false)==0){___swc1139___=0;}else if(yyCompareVal(___sw1138___,false,g_GMLMathEpsilon,false)==0){___swc1139___=1;}switch(___swc1139___){case 0:{if((yyGetBool(!yyGetBool(ds_map_find_value(gmlpmap,
"resting"))))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),40)))){ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),15),1,100));};ds_map_set(gmlpmap,"resting",true);break;}case 1:{if((yyGetBool(ds_map_find_value(gmlpmap,"resting")))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),40)))){ds_map_set(gmlpmap,"attitude",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),15),1,100));};ds_map_set(gmlpmap,"resting",
false);break;}};}};}}function gml_GlobalScript_s_tag_backups(_inst,_other){(_inst.gmls_tag_backups=__yy_method(_inst,gml_Script_s_tag_backups));}function gml_Script_s_tag_backups(_inst,_other){{gml_Script_slog(_inst,_other,"s_tag_backups");{var __yy__v1477=GetWithArray(97);for(var __yy__v1478 in __yy__v1477){if(!__yy__v1477.hasOwnProperty(__yy__v1478))continue;var __yy__v1479=__yy__v1477[__yy__v1478];{__yy__v1479.gmlroster=gml_Script_s_sort_players(__yy__v1479,_inst,__yy__v1479.gmlroster,3);var gmlcount=array_create(11,
0);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1479.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1479.gmlroster,gmli);var gmlpos=clamp(real(ds_map_find_value(gmlpmap,"position")),1,10);ds_map_set(gmlpmap,"backup",false);if(yyGetBool(gml_Script_s_player_benched(__yy__v1479,_inst,gmlpmap))){continue;};if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};gmlcount=__yy_gml_array_check(gmlcount,
970830455);(g_yyPrePostObject__=gmlcount[__yy_gml_array_check_index_set(gmlpos)],gmlcount[__yy_gml_array_check_index_set(gmlpos)]=(g_yyPrePostObject__ instanceof Long?gmlcount[__yy_gml_array_check_index_set(gmlpos)].add(1):++gmlcount[__yy_gml_array_check_index_set(gmlpos)]),g_yyPrePostObject__);var gmlmaxpos=1;var ___sw1142___=gmlpos;var ___swc1143___=-1;if(yyCompareVal(___sw1142___,1,g_GMLMathEpsilon,false)==0){___swc1143___=0;}else if(yyCompareVal(___sw1142___,2,g_GMLMathEpsilon,false)==0){___swc1143___=1;
}else if(yyCompareVal(___sw1142___,3,g_GMLMathEpsilon,false)==0){___swc1143___=2;}else if(yyCompareVal(___sw1142___,4,g_GMLMathEpsilon,false)==0){___swc1143___=3;}else if(yyCompareVal(___sw1142___,5,g_GMLMathEpsilon,false)==0){___swc1143___=4;}else if(yyCompareVal(___sw1142___,6,g_GMLMathEpsilon,false)==0){___swc1143___=5;}else if(yyCompareVal(___sw1142___,7,g_GMLMathEpsilon,false)==0){___swc1143___=6;}else if(yyCompareVal(___sw1142___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1142___,8,g_GMLMathEpsilon,
false)==0){___swc1143___=7;}else if(yyCompareVal(___sw1142___,10,g_GMLMathEpsilon,false)==0){___swc1143___=8;}switch(___swc1143___){case 0:{gmlmaxpos=2;break;}case 1:{gmlmaxpos=2;break;}case 2:{gmlmaxpos=3;break;}case 3:{gmlmaxpos=3;break;}case 4:{gmlmaxpos=6;break;}case 5:{gmlmaxpos=5;break;}case 6:{gmlmaxpos=4;break;}case 7:{gmlmaxpos=5;break;}case 8:{gmlmaxpos=2;break;}};if(yyfgreaterequal(gmlcount[__yy_gml_array_check_index(gmlpos,gmlcount)],gmlmaxpos)){ds_map_set(gmlpmap,"backup",true);};}};}}};}}function gml_GlobalScript_s_is_backup(_inst,
_other){(_inst.gmls_is_backup=__yy_method(_inst,gml_Script_s_is_backup));}function gml_Script_s_is_backup(_inst,_other,argument0){{if(yyGetBool(ds_map_exists(argument0,"backup"))){{if(yyGetBool(ds_map_find_value(argument0,"backup"))){return true;};};};return false;}}function gml_GlobalScript_s_do_player_awards(_inst,_other){(_inst.gmls_do_player_awards=__yy_method(_inst,gml_Script_s_do_player_awards));}function gml_Script_s_do_player_awards(_inst,_other){{{var __yy__v1480=GetWithArray(97);for(var __yy__v1481 in __yy__v1480){
if(!__yy__v1480.hasOwnProperty(__yy__v1481))continue;var __yy__v1482=__yy__v1480[__yy__v1481];{gml_Script_slog(__yy__v1482,_inst,"s_do_player_awards");if(yyfequal(__yy__v1482.gmlyear,1)){return;};var gmlwon_div=yyfequal(gml_Script_s_get_division_winner(__yy__v1482,_inst,__yy__v1482.gmlmyconference,__yy__v1482.gmlmydivision),__yy__v1482.gmlmyteam);var gmlmvp_rating=90;var gmlopoy_rating=90;var gmldpoy_rating=85;var gmlroty_rating=85;var gmlmin_games=12;var gmlmvp=(-4);var gmlopoy=(-4);var gmldpoy=(-4);var gmlroty=(-4);
var gmldebug_msg=yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1482,_inst,"msg_SeasonRatings")),"##");var gmlsz=ds_list_size(__yy__v1482.gmlroster);if(yyfless(gmlsz,1)){return;};var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1482.gmlroster,gmli);var gmlgames=ds_map_find_value(gmlpmap,"season_games");var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlyards=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"season_yards")),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_rush_yards")),1.35)));var gmlavg_yds=yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlgames));var gmltds=ds_map_find_value(gmlpmap,"season_touchdowns");var gmlfumbles=ds_map_find_value(gmlpmap,"season_fumbles");var gmltackles=ds_map_find_value(gmlpmap,"season_tackles");var gmlints=ds_map_find_value(gmlpmap,"season_int");var gmlsacks=ds_map_find_value(gmlpmap,"season_sacks");var gmlatts=ds_map_find_value(gmlpmap,
"season_attempts");var gmlcomp=ds_map_find_value(gmlpmap,"season_complete");if((yyGetBool(ds_map_exists(gmlpmap,"season_attempts_XP")))&&(yyGetBool(ds_map_exists(gmlpmap,"season_complete_XP")))){{gmlatts=yyfplus(gmlatts,string(round(ds_map_find_value(gmlpmap,"season_attempts_XP"))));gmlcomp=yyfplus(gmlcomp,string(round(ds_map_find_value(gmlpmap,"season_complete_XP"))));};};var gmlcomp_prc=0;if(yyfgreater(gmlatts,0)){gmlcomp_prc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlcomp),__yy_gml_errCheck(gmlatts))),
100);};var gmlrating=0;var gmlyard_target=1;var ___sw1146___=gmlpos;var ___swc1147___=-1;if(yyCompareVal(___sw1146___,1,g_GMLMathEpsilon,false)==0){___swc1147___=0;}else if(yyCompareVal(___sw1146___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1146___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1146___,4,g_GMLMathEpsilon,false)==0){___swc1147___=1;}else if(yyCompareVal(___sw1146___,5,g_GMLMathEpsilon,false)==0){___swc1147___=2;}else if(yyCompareVal(___sw1146___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1146___,
7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1146___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1146___,9,g_GMLMathEpsilon,false)==0){___swc1147___=3;}else if(yyCompareVal(___sw1146___,10,g_GMLMathEpsilon,false)==0){___swc1147___=4;}switch(___swc1147___){case 0:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),3300)),100),1,150);gmlrating=yyfplus(gmlrating,gmltds);gmlrating=yyfminus(gmlrating,gmlints);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),
0.5));gmlrating=round(gmlrating);if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1482,_inst))))&&(yyGetBool(yyfgreaterequal(gmlrating,gmlroty_rating)))){{gmlroty_rating=gmlrating;gmlroty=gmlpmap;};}else {if(yyfgreaterequal(gmlrating,gmlmvp_rating)){{gmlmvp_rating=gmlrating;gmlmvp=gmlpmap;};};};};};break;}case 1:{if(yyfequal(gmlpos,2)){gmlyard_target=1750;};if(yyfequal(gmlpos,
3)){gmlyard_target=1350;};if(yyfequal(gmlpos,4)){gmlyard_target=2100;};gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlyard_target))),100),1,150);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),5));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmltds),1.25));gmlrating=round(gmlrating);if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1482,
_inst))))&&(yyGetBool(yyfgreaterequal(gmlrating,gmlroty_rating)))){{gmlroty_rating=gmlrating;gmlroty=gmlpmap;};}else {if(yyfgreaterequal(gmlrating,gmlmvp_rating)){{gmlmvp_rating=gmlrating;gmlmvp=gmlpmap;};}else {if(yyfgreaterequal(gmlrating,gmlopoy_rating)){{gmlopoy_rating=gmlrating;gmlopoy=gmlpmap;};};};};};};break;}case 2:{gmlrating=yyftime(__yy_gml_errCheck(gmltackles),1.25);break;if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if(yyfgreaterequal(gmlrating,gmlopoy_rating)){
{gmlopoy_rating=gmlrating;gmlopoy=gmlpmap;};};};};break;}case 3:{gmlrating=yyftime(__yy_gml_errCheck(gmltackles),0.5);gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlints),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),3));gmlrating=round(gmlrating);if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if(yyfgreaterequal(gmlrating,gmldpoy_rating)){{gmldpoy_rating=gmlrating;gmldpoy=gmlpmap;
};};};};break;}case 4:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),4000)),100),1,100);gmlrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlrating),__yy_gml_errCheck(gmlcomp_prc))),2);gmlrating=round(gmlrating);if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1482,_inst))))&&(yyGetBool(yyfgreaterequal(gmlrating,gmlroty_rating)))){
{gmlroty_rating=gmlrating;gmlroty=gmlpmap;};};};};break;}};gmldebug_msg=yyfplus(gmldebug_msg,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1482,_inst,gmlpos))," "),__yy_gml_errCheck(gml_Script_s_get_player_name(__yy__v1482,_inst,gmlpmap,true))),"... "),__yy_gml_errCheck(gml_Script_s_get_string_performance(__yy__v1482,_inst,gmlrating))),"#"));}};gmldebug_msg=string_hash_to_newline(gmldebug_msg);gml_Script_slog(__yy__v1482,_inst,gmldebug_msg);gml_Script_s_add_news(__yy__v1482,
_inst,gmldebug_msg);if(yyGetBool(gmlmvp)){{if(yyGetBool(ds_map_exists(gmlmvp,"mvp"))){ds_map_set(gmlmvp,"mvp",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmvp,"mvp")),1));}else {ds_map_set(gmlmvp,"mvp",1);};var gmlmsg=string_replace(gml_Script_s_str(__yy__v1482,_inst,"news_mvp"),"$playername",gml_Script_s_get_player_name(__yy__v1482,_inst,gmlmvp,false));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v1482,_inst,ds_map_find_value(gmlmvp,"position")));gml_Script_s_add_news(__yy__v1482,
_inst,gmlmsg);};};if(yyGetBool(gmlopoy)){{if(yyGetBool(ds_map_exists(gmlopoy,"opoy"))){ds_map_set(gmlopoy,"opoy",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlopoy,"opoy")),1));}else {ds_map_set(gmlopoy,"opoy",1);};var gmlmsg=string_replace(gml_Script_s_str(__yy__v1482,_inst,"news_opoy"),"$playername",gml_Script_s_get_player_name(__yy__v1482,_inst,gmlopoy,false));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v1482,_inst,ds_map_find_value(gmlopoy,"position")));
gml_Script_s_add_news(__yy__v1482,_inst,gmlmsg);};};if(yyGetBool(gmldpoy)){{if(yyGetBool(ds_map_exists(gmldpoy,"dpoy"))){ds_map_set(gmldpoy,"dpoy",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmldpoy,"dpoy")),1));}else {ds_map_set(gmldpoy,"dpoy",1);};var gmlmsg=string_replace(gml_Script_s_str(__yy__v1482,_inst,"news_dpoy"),"$playername",gml_Script_s_get_player_name(__yy__v1482,_inst,gmldpoy,false));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v1482,_inst,ds_map_find_value(gmldpoy,
"position")));gml_Script_s_add_news(__yy__v1482,_inst,gmlmsg);};};if(yyGetBool(gmlroty)){{if(yyGetBool(ds_map_exists(gmlroty,"roty"))){ds_map_set(gmlroty,"roty",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlroty,"roty")),1));}else {ds_map_set(gmlroty,"roty",1);};var gmlmsg=string_replace(gml_Script_s_str(__yy__v1482,_inst,"news_roty"),"$playername",gml_Script_s_get_player_name(__yy__v1482,_inst,gmlroty,false));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v1482,
_inst,ds_map_find_value(gmlroty,"position")));gml_Script_s_add_news(__yy__v1482,_inst,gmlmsg);};};}}};}}function gml_GlobalScript_s_award_sb_rings(_inst,_other){(_inst.gmls_award_sb_rings=__yy_method(_inst,gml_Script_s_award_sb_rings));}function gml_Script_s_award_sb_rings(_inst,_other){{{var __yy__v1483=GetWithArray(97);for(var __yy__v1484 in __yy__v1483){if(!__yy__v1483.hasOwnProperty(__yy__v1484))continue;var __yy__v1485=__yy__v1483[__yy__v1484];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1485.gmlroster));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1485.gmlroster,gmli);if(yyGetBool(ds_map_exists(gmlpmap,"rings"))){ds_map_set(gmlpmap,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"rings")),1));}else {ds_map_set(gmlpmap,"rings",1);};}};var gmloc=gml_Script_s_get_staff(__yy__v1485,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1485,_inst,101);if(yyGetBool(gmloc)){{if(yyGetBool(ds_map_exists(gmloc,
"rings"))){ds_map_set(gmloc,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmloc,"rings")),1));}else {ds_map_set(gmloc,"rings",1);};};};if(yyGetBool(gmldc)){{if(yyGetBool(ds_map_exists(gmldc,"rings"))){ds_map_set(gmldc,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmldc,"rings")),1));}else {ds_map_set(gmldc,"rings",1);};};};}}};}}function gml_GlobalScript_s_round_player_attributes(_inst,_other){(_inst.gmls_round_player_attributes=__yy_method(_inst,gml_Script_s_round_player_attributes));}
function gml_Script_s_round_player_attributes(_inst,_other,argument0){{ds_map_set(argument0,"skill",round(ds_map_find_value(argument0,"skill")));ds_map_set(argument0,"speed",round(ds_map_find_value(argument0,"speed")));ds_map_set(argument0,"strength",round(ds_map_find_value(argument0,"strength")));ds_map_set(argument0,"stamina",round(ds_map_find_value(argument0,"stamina")));ds_map_set(argument0,"max_skill",round(ds_map_find_value(argument0,"max_skill")));ds_map_set(argument0,"max_speed",round(ds_map_find_value(argument0,
"max_speed")));ds_map_set(argument0,"max_strength",round(ds_map_find_value(argument0,"max_strength")));ds_map_set(argument0,"max_stamina",round(ds_map_find_value(argument0,"max_stamina")));}}function gml_GlobalScript_s_get_store_player_by_position(_inst,_other,argument0,argument1){(_inst.gmls_get_store_player_by_position=__yy_method(_inst,gml_Script_s_get_store_player_by_position));}function gml_Script_s_get_store_player_by_position(_inst,_other,argument0,argument1){{var gmlpos=argument0;var gmlpage=argument1;
{var __yy__v1486=GetWithArray(97);for(var __yy__v1487 in __yy__v1486){if(!__yy__v1486.hasOwnProperty(__yy__v1487))continue;var __yy__v1488=__yy__v1486[__yy__v1487];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1488.gmlstorelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1488.gmlstorelist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),gmlpos)){{(g_yyPrePostObject__=gmlcount,
gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);if(yyfequal(gmlcount,gmlpage)){return gmlpmap;};};};}};}}};return(-4);}}function gml_GlobalScript_s_create_new_stafflist(_inst,_other){(_inst.gmls_create_new_stafflist=__yy_method(_inst,gml_Script_s_create_new_stafflist));}function gml_Script_s_create_new_stafflist(_inst,_other){{{var __yy__v1489=GetWithArray(97);for(var __yy__v1490 in __yy__v1489){if(!__yy__v1489.hasOwnProperty(__yy__v1490))continue;var __yy__v1491=__yy__v1489[__yy__v1490];
{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1491.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v1491.gmlstafflist,gmli));ds_list_set(__yy__v1491.gmlstafflist,gmli,(-1));}};ds_list_clear(__yy__v1491.gmlstafflist);ds_list_add(__yy__v1491.gmlstafflist,gml_Script_s_create_staff(__yy__v1491,_inst,101,1));ds_list_add(__yy__v1491.gmlstafflist,gml_Script_s_create_staff(__yy__v1491,_inst,
102,1));}}};}}function gml_GlobalScript_s_create_staff(_inst,_other){(_inst.gmls_create_staff=__yy_method(_inst,gml_Script_s_create_staff));(_inst.gmls_create_headcoach_pmap=__yy_method(_inst,gml_Script_s_create_headcoach_pmap));}function gml_Script_s_create_staff(_inst,_other,argument0,argument1){{var gmllname=gml_Script_s_get_random_last_name(_inst,_other);while(yyGetBool(gml_Script_s_lastname_already_on_roster(_inst,_other,gmllname))){gmllname=gml_Script_s_get_random_last_name(_inst,_other)};var gmlpmap=ds_map_create();
ds_map_set(gmlpmap,"randnum",irandom(999));ds_map_set(gmlpmap,"fname",gml_Script_s_get_random_first_name(_inst,_other,true));ds_map_set(gmlpmap,"lname",gmllname);ds_map_set(gmlpmap,"position",argument0);ds_map_set(gmlpmap,"age",irandom_range(35,59));ds_map_set(gmlpmap,"attitude",irandom_range(40,100));ds_map_set(gmlpmap,"rating",argument1);ds_map_set(gmlpmap,"contract",2);ds_map_set(gmlpmap,"teamid",(-1));ds_map_set(gmlpmap,"flash_time",0);ds_map_set(gmlpmap,"condition",100);ds_map_set(gmlpmap,"xp",
0);ds_map_set(gmlpmap,"xp_level",argument1);ds_map_set(gmlpmap,"xp_gain",0);ds_map_set(gmlpmap,"trait",0);if((yyGetBool(yyfgreater(argument1,1)))&&(yyGetBool(irandom(1)))){ds_map_set(gmlpmap,"trait",irandom(9));};if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"trait"),1)))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"age"),55)))){ds_map_set(gmlpmap,"trait",0);};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Created staff member: ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"fname")))," "),__yy_gml_errCheck(gmllname))," ("),__yy_gml_errCheck(gml_Script_s_get_string_position_full(_inst,_other,argument0))),")"));ds_map_set(gmlpmap,"skin",irandom(1));if(yyGetBool(ds_map_find_value(gmlpmap,"skin"))){ds_map_set(gmlpmap,"skin",yyfplus(1,__yy_gml_errCheck(irandom(1))));};var gmlfgrid=yyInst(_inst,_other,97).gmlface_grid_C;gmlpmap=gml_Script_s_choose_face(_inst,_other,gmlpmap,gmlfgrid);if(yyfequal(ds_map_find_value(gmlpmap,"face_x"),8)){ds_map_set(gmlpmap,"fname",gml_Script_s_get_random_first_name(_inst,
_other,false));};return gmlpmap;}}function gml_Script_s_create_headcoach_pmap(_inst,_other){{var gmlpmap=ds_map_create();ds_map_set(gmlpmap,"randnum",irandom(999));ds_map_set(gmlpmap,"fname",yyInst(_inst,_other,97).gmlfname);ds_map_set(gmlpmap,"lname",yyInst(_inst,_other,97).gmllname);ds_map_set(gmlpmap,"position",100);ds_map_set(gmlpmap,"age",yyfplus(35,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlyear)));ds_map_set(gmlpmap,"attitude",round(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfans),__yy_gml_errCheck(gml_Script_s_get_morale(_inst,_other)))),2)));ds_map_set(gmlpmap,"rating",ceil(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlcoach_rating),2)));ds_map_set(gmlpmap,"contract",9);ds_map_set(gmlpmap,"teamid",yyInst(_inst,_other,97).gmlmyteam_id);ds_map_set(gmlpmap,"flash_time",(-9999));ds_map_set(gmlpmap,"condition",100);ds_map_set(gmlpmap,"xp",0);ds_map_set(gmlpmap,"xp_level",yyInst(_inst,_other,97).gmlyear);ds_map_set(gmlpmap,"xp_gain",0);ds_map_set(gmlpmap,
"trait",0);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Created staff member: ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname")))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")))," ("),__yy_gml_errCheck(gml_Script_s_get_string_position_full(_inst,_other,100))),")"));ds_map_set(gmlpmap,"skin",1);ds_map_set(gmlpmap,"face_x",yyInst(_inst,_other,97).gmlmyface_x);ds_map_set(gmlpmap,"face_y",yyInst(_inst,_other,97).gmlmyface_y);return gmlpmap;}}function gml_GlobalScript_s_create_hirelist(_inst,
_other,argument0,argument1){(_inst.gmls_create_hirelist=__yy_method(_inst,gml_Script_s_create_hirelist));}function gml_Script_s_create_hirelist(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,"s_create_hirelist");var gmlrefresh=argument0;var gmlcurrent_of=gml_Script_s_get_staff(_inst,_other,102);var gmlcurrent_df=gml_Script_s_get_staff(_inst,_other,101);var gmlof_rat=ds_map_find_value(gmlcurrent_of,"rating");var gmldf_rat=ds_map_find_value(gmlcurrent_df,"rating");if(yyGetBool(argument1)){
{if(yyfless(gmlof_rat,5)){gmlof_rat=5;};if(yyfless(gmldf_rat,5)){gmldf_rat=5;};};};{var __yy__v1492=GetWithArray(97);for(var __yy__v1493 in __yy__v1492){if(!__yy__v1492.hasOwnProperty(__yy__v1493))continue;var __yy__v1494=__yy__v1492[__yy__v1493];{if(yyGetBool(gmlrefresh)){{var gmlsize=ds_list_size(__yy__v1494.gmlhirelist);if(yyGetBool(gmlsize)){{var gmli=irandom(yyfminus(__yy_gml_errCheck(gmlsize),1));ds_map_destroy(ds_list_find_value(__yy__v1494.gmlhirelist,gmli));ds_list_set(__yy__v1494.gmlhirelist,
gmli,(-1));ds_list_delete(__yy__v1494.gmlhirelist,gmli);};};};};while(yyfless(gml_Script_s_count_hires_by_position(__yy__v1494,_inst,102),4)){{ds_list_add(__yy__v1494.gmlhirelist,gml_Script_s_create_staff(__yy__v1494,_inst,102,clamp(yyfplus(__yy_gml_errCheck(gmlof_rat),__yy_gml_errCheck(irandom(6))),2,10)));}};while(yyfless(gml_Script_s_count_hires_by_position(__yy__v1494,_inst,101),4)){{ds_list_add(__yy__v1494.gmlhirelist,gml_Script_s_create_staff(__yy__v1494,_inst,101,clamp(yyfplus(__yy_gml_errCheck(gmldf_rat),
__yy_gml_errCheck(irandom(6))),2,10)));}};__yy__v1494.gmlhirelist=gml_Script_s_sort_hirelist(__yy__v1494,_inst,__yy__v1494.gmlhirelist);}}};}}function gml_GlobalScript_s_sort_hirelist(_inst,_other,argument0){(_inst.gmls_sort_hirelist=__yy_method(_inst,gml_Script_s_sort_hirelist));}function gml_Script_s_sort_hirelist(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_sort_hirelist");var gmlplist=argument0;var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(gmlplist),0)){{var gmlbestplayer=(-4);
var gmli=0;for(;yyfless(gmli,ds_list_size(gmlplist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlplist,gmli);if(!yyGetBool(gmlbestplayer)){gmlbestplayer=gmlpmap;}else {if(yyfless(ds_map_find_value(gmlpmap,"position"),ds_map_find_value(gmlbestplayer,"position"))){gmlbestplayer=gmlpmap;}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),ds_map_find_value(gmlbestplayer,"position"))){{if(yyGetBool(ds_map_exists(gmlpmap,
"rating"))){{if(yyfless(ds_map_find_value(gmlpmap,"rating"),ds_map_find_value(gmlbestplayer,"rating"))){gmlbestplayer=gmlpmap;};};}else {{if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gml_Script_s_get_player_rating(_inst,_other,gmlbestplayer))){gmlbestplayer=gmlpmap;};};};};};};};}};ds_list_add(gmlsortedlist,gmlbestplayer);var gmli=ds_list_find_index(gmlplist,gmlbestplayer);ds_list_delete(gmlplist,gmli);}};ds_list_destroy(gmlplist);gmlplist=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_reset_staff_hire_list(_inst,
_other,argument0){(_inst.gmls_reset_staff_hire_list=__yy_method(_inst,gml_Script_s_reset_staff_hire_list));}function gml_Script_s_reset_staff_hire_list(_inst,_other,argument0){{var gmlhighratings=argument0;{var __yy__v1495=GetWithArray(97);for(var __yy__v1496 in __yy__v1495){if(!__yy__v1495.hasOwnProperty(__yy__v1496))continue;var __yy__v1497=__yy__v1495[__yy__v1496];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1497.gmlhirelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v1497.gmlhirelist,gmli));ds_list_set(__yy__v1497.gmlhirelist,gmli,(-1));}};ds_list_clear(__yy__v1497.gmlhirelist);gml_Script_s_create_hirelist(__yy__v1497,_inst,false,gmlhighratings);gml_Script_s_savegame(__yy__v1497,_inst);}}};}}function gml_GlobalScript_s_get_staff(_inst,_other){(_inst.gmls_get_staff=__yy_method(_inst,gml_Script_s_get_staff));}function gml_Script_s_get_staff(_inst,_other,argument0){{{var __yy__v1498=GetWithArray(97);for(var __yy__v1499 in __yy__v1498){
if(!__yy__v1498.hasOwnProperty(__yy__v1499))continue;var __yy__v1500=__yy__v1498[__yy__v1499];{if(yyfequal(argument0,100)){{if(yyfnotequal(__yy__v1500.gmlboss_profile,(-4))){{ds_map_destroy(__yy__v1500.gmlboss_profile);__yy__v1500.gmlboss_profile=(-4);};};__yy__v1500.gmlboss_profile=gml_Script_s_create_headcoach_pmap(__yy__v1500,_inst);return __yy__v1500.gmlboss_profile;};}else {{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1500.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1500.gmlstafflist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){return gmlpmap;};}};};};}}};return(-4);}}function gml_GlobalScript_s_is_staff(_inst,_other){(_inst.gmls_is_staff=__yy_method(_inst,gml_Script_s_is_staff));}function gml_Script_s_is_staff(_inst,_other,argument0){{if(yyfless(argument0,100)){return false;};return true;}}function gml_GlobalScript_s_get_coach_cost(_inst,_other,argument0){(_inst.gmls_get_coach_cost=__yy_method(_inst,
gml_Script_s_get_coach_cost));}function gml_Script_s_get_coach_cost(_inst,_other,argument0){{var gmlpmap=argument0;var gmlval=yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"rating")),2.5);if(yyGetBool(ds_map_find_value(gmlpmap,"trait"))){gmlval=yyfplus(gmlval,5);};return round(gmlval);}}function gml_GlobalScript_s_coach_trait_experience(_inst,_other){(_inst.gmls_coach_trait_experience=__yy_method(_inst,gml_Script_s_coach_trait_experience));}function gml_Script_s_coach_trait_experience(_inst,_other,
argument0){{var gmlxpmap=(-4);{var __yy__v1501=GetWithArray(97);for(var __yy__v1502 in __yy__v1501){if(!__yy__v1501.hasOwnProperty(__yy__v1502))continue;var __yy__v1503=__yy__v1501[__yy__v1502];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1503.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1503.gmlroster,gmli);if(yyfequal(gml_Script_s_is_offensive_player(__yy__v1503,_inst,argument0),gml_Script_s_is_offensive_player(__yy__v1503,
_inst,gmlpmap))){{if(!yyGetBool(gmlxpmap)){gmlxpmap=gmlpmap;};ds_map_set(gmlpmap,"xp",yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_level")),100));ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlpmap,"xp_gain"))),10)));};};}};}}};if(yyGetBool(gmlxpmap)){{_inst.gmlplayer_profile=gmlxpmap;room_goto(22);};}else {{room_goto(9);};};}}function gml_GlobalScript_s_coach_trait_talentspotter(_inst,_other,argument0){(_inst.gmls_coach_trait_talentspotter=__yy_method(_inst,
gml_Script_s_coach_trait_talentspotter));}function gml_Script_s_coach_trait_talentspotter(_inst,_other,argument0){{var gmlsmap=argument0;{var __yy__v1504=GetWithArray(97);for(var __yy__v1505 in __yy__v1504){if(!__yy__v1504.hasOwnProperty(__yy__v1505))continue;var __yy__v1506=__yy__v1504[__yy__v1505];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1506.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1506.gmlroster,
gmli);if(yyfequal(gml_Script_s_is_offensive_player(__yy__v1506,_inst,gmlsmap),gml_Script_s_is_offensive_player(__yy__v1506,_inst,gmlpmap))){{var gmlcurrent_pot=gml_Script_s_get_player_potential(__yy__v1506,_inst,gmlpmap);gml_Script_slog(__yy__v1506,_inst,yyfplus("Player = ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gml_Script_slog(__yy__v1506,_inst,yyfplus("s_get_player_potential = ",__yy_gml_errCheck(string(gmlcurrent_pot))));if(yyfless(gmlcurrent_pot,10)){{while(yyflessequal(gml_Script_s_get_player_potential(__yy__v1506,
_inst,gmlpmap),gmlcurrent_pot)){{var ___sw1150___=irandom(3);var ___swc1151___=-1;if(yyCompareVal(___sw1150___,0,g_GMLMathEpsilon,false)==0){___swc1151___=0;}else if(yyCompareVal(___sw1150___,1,g_GMLMathEpsilon,false)==0){___swc1151___=1;}else if(yyCompareVal(___sw1150___,2,g_GMLMathEpsilon,false)==0){___swc1151___=2;}else if(yyCompareVal(___sw1150___,3,g_GMLMathEpsilon,false)==0){___swc1151___=3;}switch(___swc1151___){case 0:{ds_map_set(gmlpmap,"max_stamina",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"max_stamina")),1));break;}case 1:{ds_map_set(gmlpmap,"max_speed",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"max_speed")),1));break;}case 2:{ds_map_set(gmlpmap,"max_strength",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"max_strength")),1));break;}case 3:{ds_map_set(gmlpmap,"max_skill",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"max_skill")),1));break;}};if(yyfgreater(ds_map_find_value(gmlpmap,"max_stamina"),10)){ds_map_set(gmlpmap,"max_stamina",10);};if(yyfgreater(ds_map_find_value(gmlpmap,
"max_speed"),10)){ds_map_set(gmlpmap,"max_speed",10);};if(yyfgreater(ds_map_find_value(gmlpmap,"max_strength"),10)){ds_map_set(gmlpmap,"max_strength",10);};if(yyfgreater(ds_map_find_value(gmlpmap,"max_skill"),10)){ds_map_set(gmlpmap,"max_skill",10);};}};};};gml_Script_slog(__yy__v1506,_inst,yyfplus("now s_get_player_potential = ",__yy_gml_errCheck(string(gml_Script_s_get_player_potential(__yy__v1506,_inst,gmlpmap)))));};};}};}}};}}function gml_GlobalScript_s_coach_trait_motivator(_inst,_other,argument0){
(_inst.gmls_coach_trait_motivator=__yy_method(_inst,gml_Script_s_coach_trait_motivator));}function gml_Script_s_coach_trait_motivator(_inst,_other,argument0){{var gmlsmap=argument0;{var __yy__v1507=GetWithArray(97);for(var __yy__v1508 in __yy__v1507){if(!__yy__v1507.hasOwnProperty(__yy__v1508))continue;var __yy__v1509=__yy__v1507[__yy__v1508];{gml_Script_s_meter_change(__yy__v1509,_inst,4,gml_Script_s_get_morale(__yy__v1509,_inst),9,"");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1509.gmlroster));(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1509.gmlroster,gmli);if(yyGetBool(gmlpmap)){{if(yyfequal(gml_Script_s_is_offensive_player(__yy__v1509,_inst,gmlsmap),gml_Script_s_is_offensive_player(__yy__v1509,_inst,gmlpmap))){{ds_map_set(gmlpmap,"attitude",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlpmap,"attitude"))),15));if(yyfgreater(ds_map_find_value(gmlpmap,"attitude"),100)){ds_map_set(gmlpmap,"attitude",100);}
;};};};};}};}}};}}function gml_GlobalScript_btn_click_qb_training(_inst,_other){(_inst.gmlbtn_click_qb_training=__yy_method(_inst,gml_Script_btn_click_qb_training));(_inst.gmls_do_qb_training=__yy_method(_inst,gml_Script_s_do_qb_training));}function gml_Script_btn_click_qb_training(_inst,_other){{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);if(yyfless(ds_map_find_value(gmlqb,"condition"),40)){gml_Script_s_do_message(_inst,_other,gml_Script_s_str(_inst,_other,"msg_TrainingEnergyTooLow"));}else {if(yyflessequal(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlqb,
"condition")),40),40)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TrainingEnergyConfirm"),gml_Script_s_str(_inst,_other,"ui_Yes"),gml_Script_s_str(_inst,_other,"ui_Cancel"),kgml_Script_s_do_qb_training,kgml_Script_s_msg_clear,global.gmlc_background,1);}else {gml_Script_s_do_qb_training(_inst,_other);};};}}function gml_Script_s_do_qb_training(_inst,_other){{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);ds_map_set(gmlqb,"condition",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlqb,
"condition")),40),1,100));yyInst(_inst,_other,97).gmlplayer_profile=gmlqb;yyInst(_inst,_other,97).gmlgamepractice=4;gml_Script_s_set_up_uniforms_training(_inst,_other);room_goto(17);}}function gml_GlobalScript_btn_click_GenerateCharacter(_inst,_other){(_inst.gmlbtn_click_GenerateCharacter=__yy_method(_inst,gml_Script_btn_click_GenerateCharacter));}function gml_Script_btn_click_GenerateCharacter(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_GenerateCharacter");{var __yy__v1510=GetWithArray(97);
for(var __yy__v1511 in __yy__v1510){if(!__yy__v1510.hasOwnProperty(__yy__v1511))continue;var __yy__v1512=__yy__v1510[__yy__v1511];{__yy__v1512.gmlmyface_x=(-1);__yy__v1512.gmlmyface_y=(-1);gml_Script_s_choose_random_face_for_me(__yy__v1512,_inst);__yy__v1512.gmlfname=gml_Script_s_get_random_first_name(__yy__v1512,_inst,true);if(yyfequal(__yy__v1512.gmlmyface_x,8)){__yy__v1512.gmlfname=gml_Script_s_get_random_first_name(__yy__v1512,_inst,false);};__yy__v1512.gmllname=gml_Script_s_get_random_last_name(__yy__v1512,
_inst);__yy__v1512.gmlmyteam_id=irandom(31);__yy__v1512.gmlmyteam=ds_list_find_value(__yy__v1512.gmlteamlist,__yy__v1512.gmlmyteam_id);__yy__v1512.gmlmyconference=ds_map_find_value(__yy__v1512.gmlmyteam,"conference");__yy__v1512.gmlmydivision=ds_map_find_value(__yy__v1512.gmlmyteam,"division");if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1512,_inst))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1512.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1512.gmlroster,gmli);gml_Script_s_college_correct_new_player(__yy__v1512,_inst,gmlpmap);}};};};}}};room_goto(2);}}function gml_GlobalScript_s_count_trait_fanfavorite(_inst,_other){(_inst.gmls_count_trait_fanfavorite=__yy_method(_inst,gml_Script_s_count_trait_fanfavorite));}function gml_Script_s_count_trait_fanfavorite(_inst,_other){{var gmlcount=0;{var __yy__v1513=GetWithArray(97);for(var __yy__v1514 in __yy__v1513){if(!__yy__v1513.hasOwnProperty(__yy__v1514))continue;
var __yy__v1515=__yy__v1513[__yy__v1514];{if(!yyGetBool(__yy__v1515.gmlqb_mode)){return 0;};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1515.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1515.gmlstafflist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"trait"),5)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);
};}};}}};return gmlcount;}}function gml_GlobalScript_s_count_trait_scout(_inst,_other){(_inst.gmls_count_trait_scout=__yy_method(_inst,gml_Script_s_count_trait_scout));}function gml_Script_s_count_trait_scout(_inst,_other){{var gmlcount=0;{var __yy__v1516=GetWithArray(97);for(var __yy__v1517 in __yy__v1516){if(!__yy__v1516.hasOwnProperty(__yy__v1517))continue;var __yy__v1518=__yy__v1516[__yy__v1517];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1518.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1518.gmlstafflist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"trait"),9)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};}}};return gmlcount;}}function gml_GlobalScript_s_fire_coach(_inst,_other,argument0){(_inst.gmls_fire_coach=__yy_method(_inst,gml_Script_s_fire_coach));}function gml_Script_s_fire_coach(_inst,_other,argument0){{var gmlcoach=argument0;{var __yy__v1519=GetWithArray(97);
for(var __yy__v1520 in __yy__v1519){if(!__yy__v1519.hasOwnProperty(__yy__v1520))continue;var __yy__v1521=__yy__v1519[__yy__v1520];{if(yyfequal(ds_map_find_value(gmlcoach,"trait"),5)){__yy__v1521.gmlfans=clamp(yyfminus(__yy_gml_errCheck(__yy__v1521.gmlfans),10),0,100);};if(yyfequal(ds_map_find_value(gmlcoach,"trait"),7)){gml_Script_s_adjust_team_morale(__yy__v1521,_inst,(-10),0);};ds_list_delete(__yy__v1521.gmlstafflist,ds_list_find_index(__yy__v1521.gmlstafflist,gmlcoach));ds_map_destroy(gmlcoach);gmlcoach=(-1);
}}};}}function gml_GlobalScript_s_check_contracts_expiring(_inst,_other){(_inst.gmls_check_contracts_expiring=__yy_method(_inst,gml_Script_s_check_contracts_expiring));}function gml_Script_s_check_contracts_expiring(_inst,_other){{{var __yy__v1522=GetWithArray(97);for(var __yy__v1523 in __yy__v1522){if(!__yy__v1522.hasOwnProperty(__yy__v1523))continue;var __yy__v1524=__yy__v1522[__yy__v1523];{var gmlpmap=gml_Script_s_get_staff(__yy__v1524,_inst,101);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1524.gmlroster));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlpmap=ds_list_find_value(__yy__v1524.gmlroster,gmli);if((yyGetBool(gmlpmap))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(__yy__v1524,_inst,gmlpmap))))){{var gmlmsg=gml_Script_s_str(__yy__v1524,_inst,"news_PlayerRetiringNoTag");if((yyGetBool(ds_map_exists(gmlpmap,"hof")))&&(yyGetBool(ds_map_find_value(gmlpmap,"hof")))){gmlmsg=gml_Script_s_str(__yy__v1524,
_inst,"news_PlayerRetiringTag");};gmlmsg=string_replace(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v1524,_inst,__yy__v1524.gmlmyteam_id));gmlmsg=gml_Script_s_parse_player_message(__yy__v1524,_inst,gmlmsg,gmlpmap);gml_Script_s_add_news(__yy__v1524,_inst,gmlmsg);};};}};gmlpmap=gml_Script_s_get_staff(__yy__v1524,_inst,102);if((yyGetBool(gmlpmap))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(__yy__v1524,_inst,gmlpmap))))){{gml_Script_s_add_news(__yy__v1524,
_inst,gml_Script_s_parse_player_message(__yy__v1524,_inst,gml_Script_s_str(__yy__v1524,_inst,"msg_StaffRetiring"),gmlpmap));};}else {if((yyGetBool(gmlpmap))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"contract"),2)))){{gml_Script_s_add_news(__yy__v1524,_inst,gml_Script_s_parse_player_message(__yy__v1524,_inst,gml_Script_s_str(__yy__v1524,_inst,"msg_StaffExpiringTip"),gmlpmap));};};};gmlpmap=gml_Script_s_get_staff(__yy__v1524,_inst,101);if((yyGetBool(gmlpmap))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlpmap,
"age"),gml_Script_s_get_max_age(__yy__v1524,_inst,gmlpmap))))){{gml_Script_s_add_news(__yy__v1524,_inst,gml_Script_s_parse_player_message(__yy__v1524,_inst,gml_Script_s_str(__yy__v1524,_inst,"msg_StaffRetiring"),gmlpmap));};}else {if((yyGetBool(gmlpmap))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"contract"),2)))){{gml_Script_s_add_news(__yy__v1524,_inst,gml_Script_s_parse_player_message(__yy__v1524,_inst,gml_Script_s_str(__yy__v1524,_inst,"msg_StaffExpiringTip"),gmlpmap));};};};}}};}}// if (key == "@" or key == "") return "";
// if (is_undefined(txt)) {slog("@"+key); return "@"+key;}
// if (key == "@" or key == "") return 0;
// if (is_undefined(txt)) {slog("@"+key); return 0;}
function gml_GlobalScript_s_str(_inst,
_other){(_inst.gmls_str=__yy_method(_inst,gml_Script_s_str));(_inst.gmls_str_real=__yy_method(_inst,gml_Script_s_str_real));}function gml_Script_s_str(_inst,_other,argument0){{if((yyGetBool(yyfequal(argument0,"@")))||(yyGetBool(yyfequal(argument0,"")))){return "";};var gmltxt=ds_map_find_value(yyInst(_inst,_other,97).gmlstringmap,argument0);if(yyGetBool(is_undefined(gmltxt))){{gml_Script_slog(_inst,_other,yyfplus("@",__yy_gml_errCheck(argument0)));return yyfplus("@",__yy_gml_errCheck(argument0));};}
;return string_hash_to_newline(gmltxt);}}function gml_Script_s_str_real(_inst,_other,argument0){{if((yyGetBool(yyfequal(argument0,"@")))||(yyGetBool(yyfequal(argument0,"")))){return 0;};var gmltxt=ds_map_find_value(yyInst(_inst,_other,97).gmlstringmap,argument0);if(yyGetBool(is_undefined(gmltxt))){{gml_Script_slog(_inst,_other,yyfplus("@",__yy_gml_errCheck(argument0)));return 0;};};return real(gmltxt);}}function gml_GlobalScript_s_split_string(_inst,_other,argument0){(_inst.gmls_split_string=__yy_method(_inst,
gml_Script_s_split_string));}function gml_Script_s_split_string(_inst,_other,argument0){{var gmlmsg=argument0;var gmlsplitBy=" ";var gmlslot=0;var gmlsplits;var gmlstr2="";gmlsplits=__yy_gml_array_check(gmlsplits,3847160664);gmlsplits[__yy_gml_array_check_index_set(gmlslot)]="";var gmli=1;for(;yyfless(gmli,yyfplus(__yy_gml_errCheck(string_length(gmlmsg)),1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlcurrStr=string_copy(gmlmsg,gmli,
1);if(yyfequal(gmlcurrStr,gmlsplitBy)){{gmlsplits[__yy_gml_array_check_index_set(gmlslot)]=gmlstr2;(g_yyPrePostObject__=gmlslot,gmlslot=(g_yyPrePostObject__ instanceof Long?gmlslot.add(1):++gmlslot),g_yyPrePostObject__);gmlstr2="";};}else {{gmlstr2=yyfplus(__yy_gml_errCheck(gmlstr2),__yy_gml_errCheck(gmlcurrStr));gmlsplits[__yy_gml_array_check_index_set(gmlslot)]=gmlstr2;};};}};return gmlsplits;}}function gml_GlobalScript_s_parse_news(_inst,_other){(_inst.gmls_parse_news=__yy_method(_inst,gml_Script_s_parse_news));
}function gml_Script_s_parse_news(_inst,_other,argument0,argument1,argument2,argument3,argument4){{argument0=gml_Script_s_str(_inst,_other,argument0);if(yyGetBool(argument1)){argument0=string_replace_all(argument0,"$teamname1",ds_map_find_value(argument1,"name"));};if(yyGetBool(argument2)){argument0=string_replace_all(argument0,"$teamname2",ds_map_find_value(argument2,"name"));};argument0=string_replace_all(argument0,"$score1",string(argument3));argument0=string_replace_all(argument0,"$score2",string(argument4));
argument0=string_replace_all(argument0,"$yourname",yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfname)," "),__yy_gml_errCheck(yyInst(_inst,_other,97).gmllname)));argument0=string_replace_all(argument0,"$yourlastname",yyInst(_inst,_other,97).gmllname);argument0=string_replace_all(argument0,"$yourteamname",ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,"tla"));return string_hash_to_newline(argument0);}}function gml_GlobalScript_s_parse_intro(_inst,_other){(_inst.gmls_parse_intro=__yy_method(_inst,
gml_Script_s_parse_intro));}function gml_Script_s_parse_intro(_inst,_other,argument0){{if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfnotequal(g_pBuiltIn.get_os_type(),21)))&&(yyGetBool(!yyGetBool(is_undefined(ds_map_find_value(yyInst(_inst,_other,97).gmlstringmap,yyfplus(__yy_gml_errCheck(argument0),"_gp_xb"))))))){argument0=yyfplus(argument0,"_gp_xb");}else {if(!yyGetBool(is_undefined(ds_map_find_value(yyInst(_inst,_other,97).gmlstringmap,yyfplus(__yy_gml_errCheck(argument0),"_gp"))))){argument0=yyfplus(argument0,
"_gp");};};};};argument0=gml_Script_s_str(_inst,_other,argument0);{var __yy__v1525=GetWithArray(97);for(var __yy__v1526 in __yy__v1525){if(!__yy__v1525.hasOwnProperty(__yy__v1526))continue;var __yy__v1527=__yy__v1525[__yy__v1526];{var gmloc=gml_Script_s_get_staff(__yy__v1527,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1527,_inst,101);argument0=string_replace_all(argument0,"$teamname",ds_map_find_value(__yy__v1527.gmlmyteam,"name"));argument0=string_replace_all(argument0,"$coachname_of",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmloc,
"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmloc,"lname"))));argument0=string_replace_all(argument0,"$coachname_df",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmldc,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmldc,"lname"))));}}};return string_hash_to_newline(argument0);}}function gml_GlobalScript_s_parse_player_message(_inst,_other){(_inst.gmls_parse_player_message=__yy_method(_inst,gml_Script_s_parse_player_message));}function gml_Script_s_parse_player_message(_inst,_other,
argument0,argument1){{var gmltid=ds_map_find_value(argument1,"teamid");if(yyfless(gmltid,0)){gmltid=yyInst(_inst,_other,97).gmlmyteam_id;};gml_Script_slog(_inst,_other,yyfplus("Parse player. Team id = ",__yy_gml_errCheck(string(gmltid))));argument0=string_replace_all(argument0,"$teamname",gml_Script_s_get_team_name_by_id(_inst,_other,gmltid));argument0=string_replace_all(argument0,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(argument1,"position")));argument0=string_replace_all(argument0,
"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(argument1,"position")));argument0=string_replace_all(argument0,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument1,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(argument1,"lname"))));argument0=string_replace_all(argument0,"$playerlastname",ds_map_find_value(argument1,"lname"));argument0=string_replace_all(argument0,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument1,"fname")),
" "),__yy_gml_errCheck(ds_map_find_value(argument1,"lname"))));argument0=string_replace_all(argument0,"$age",ds_map_find_value(argument1,"age"));argument0=string_replace_all(argument0,"$contract",ds_map_find_value(argument1,"contract"));argument0=string_replace_all(argument0,"$salary",yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(argument1,"salary")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Million"))));argument0=string_replace_all(argument0,"$uniform",string_lower(gml_Script_s_str(_inst,
_other,yyfplus("uniformviolation_",__yy_gml_errCheck(string(irandom(9)))))));if(yyfequal(ds_map_find_value(argument1,"position"),10)){argument0=string_replace_all(argument0,"$injurytype",string_lower(gml_Script_s_str(_inst,_other,yyfplus("injurytype_",__yy_gml_errCheck(string(irandom_range(6,11)))))));}else {argument0=string_replace_all(argument0,"$injurytype",string_lower(gml_Script_s_str(_inst,_other,yyfplus("injurytype_",__yy_gml_errCheck(string(irandom(11)))))));};argument0=string_replace_all(argument0,
"$randomfname_female",gml_Script_s_get_random_first_name(_inst,_other,false));argument0=string_replace_all(argument0,"$randomcharity",gml_Script_s_get_random_charity(_inst,_other));argument0=string_replace_all(argument0,"$randomteamname",gml_Script_s_get_random_teamname(_inst,_other,false));var gmlsmap=gml_Script_s_get_staff(_inst,_other,101);if(yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,argument1))){gmlsmap=gml_Script_s_get_staff(_inst,_other,102);};if(yyGetBool(gmlsmap)){argument0=string_replace(argument0,
"$coachposition",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlsmap,"position")));};argument0=string_replace_all(argument0,"$myteamname",gml_Script_s_get_team_name_by_id(_inst,_other,yyInst(_inst,_other,97).gmlmyteam_id));if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{var gmlqb_map=gml_Script_s_get_qb_pmap(_inst,_other);if(yyGetBool(gmlqb_map)){{argument0=string_replace_all(argument0,"$mylastname",ds_map_find_value(gmlqb_map,"lname"));argument0=string_replace_all(argument0,
"$myname",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb_map,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlqb_map,"lname"))));};};};};var gmlhc_map=gml_Script_s_get_staff(_inst,_other,100);if(yyGetBool(gmlhc_map)){{argument0=string_replace_all(argument0,"$headcoachlastname",ds_map_find_value(gmlhc_map,"lname"));argument0=string_replace_all(argument0,"$headcoachname",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlhc_map,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlhc_map,
"lname"))));};};var gmlfix=gml_Script_s_get_human_fixture_next(_inst,_other);if(yyGetBool(gmlfix)){{if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"home_team"),yyInst(_inst,_other,97).gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"away_team"),(-1))))){argument0=string_replace_all(argument0,"$nextoppname",gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team")));}else {if(yyfgreater(ds_map_find_value(gmlfix,"home_team"),(-1))){argument0=string_replace_all(argument0,
"$nextoppname",gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team")));};};};};gmlfix=gml_Script_s_get_human_fixture_previous(_inst,_other);if(yyGetBool(gmlfix)){{if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"home_team"),yyInst(_inst,_other,97).gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"away_team"),(-1))))){argument0=string_replace_all(argument0,"$lastoppname",gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team")));
}else {if(yyfgreater(ds_map_find_value(gmlfix,"home_team"),(-1))){argument0=string_replace_all(argument0,"$lastoppname",gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team")));};};};};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfequal(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(argument1,"position")),false)))){{argument0=string_replace_all(argument0,"$HOBBY",gml_Script_s_get_hobby_name(_inst,_other,argument1,false));argument0=string_replace_all(argument0,
"$MAJOR",gml_Script_s_get_major_name(_inst,_other,argument1,false));argument0=string_replace_all(argument0,"$MINOR",gml_Script_s_get_minor_name(_inst,_other,argument1,false));argument0=string_replace_all(argument0,"$HOMETOWN",gml_Script_s_get_hometown_name(_inst,_other,argument1));argument0=string_replace_all(argument0,"$leaveyear",string(ds_map_find_value(argument1,"class_of")));if((yyGetBool(yyfnotequal(ds_map_find_value(argument1,"drafted_pro_team"),"")))&&(yyGetBool(string_pos("$draftedteamname",
argument0)))){{var gmlproTeams=gml_Script_s_load_pro_teams(_inst,_other);var gmli=0;for(;yyfless(gmli,ds_list_size(gmlproTeams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlproTeam=ds_list_find_value(gmlproTeams,gmli);if(yyfequal(ds_map_find_value(gmlproTeam,"uid"),ds_map_find_value(argument1,"drafted_pro_team"))){{argument0=string_replace_all(argument0,"$draftedteamname",ds_map_find_value(gmlproTeam,"name"));break;};};}};ds_list_destroy(gmlproTeams);
};};argument0=string_replace_all(argument0,"$academicyear",gml_Script_s_college_age_simple(_inst,_other,argument1));argument0=string_replace_all(argument0,"$gpa",gml_Script_s_gpa_string(_inst,_other,argument1));};};return string_hash_to_newline(argument0);}}function gml_GlobalScript_s_strP(_inst,_other,argument0){(_inst.gmls_strP=__yy_method(_inst,gml_Script_s_strP));}function gml_Script_s_strP(_inst,_other,argument0){{var gmlkey=argument0;var gmltxt=ds_map_find_value(yyInst(_inst,_other,97).gmlstringmap,
gmlkey);if(!yyGetBool(is_undefined(gmltxt))){{gmltxt=string_hash_to_newline(gmltxt);if(yyfgreater(string_count("$",gmltxt),0)){gmltxt=gml_Script_s_parse_string(_inst,_other,gmltxt);};};}else {{gmltxt="!";};};return gmltxt;}}function gml_GlobalScript_s_sim_stat_increment(_inst,_other){(_inst.gmls_sim_stat_increment=__yy_method(_inst,gml_Script_s_sim_stat_increment));(_inst.gmls_sim_stat_update=__yy_method(_inst,gml_Script_s_sim_stat_update));(_inst.gmls_sim_stat_touchdown=__yy_method(_inst,gml_Script_s_sim_stat_touchdown));
(_inst.gmls_sim_stat_pass=__yy_method(_inst,gml_Script_s_sim_stat_pass));(_inst.gmls_sim_stat_run=__yy_method(_inst,gml_Script_s_sim_stat_run));(_inst.gmls_sim_stat_fumble=__yy_method(_inst,gml_Script_s_sim_stat_fumble));(_inst.gmls_sim_stat_interception=__yy_method(_inst,gml_Script_s_sim_stat_interception));(_inst.gmls_sim_stat_sack=__yy_method(_inst,gml_Script_s_sim_stat_sack));}function gml_Script_s_sim_stat_increment(_inst,_other,argument0,argument1,argument2){{if((yyGetBool(argument0))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,
_other,argument0))))&&(yyGetBool(!yyGetBool(ds_map_find_value(argument0,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(argument0,"condition"),0)))){ds_map_set(argument0,argument1,yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,argument1)),__yy_gml_errCheck(argument2)));};}}function gml_Script_s_sim_stat_update(_inst,_other,argument0,argument1,argument2){{if((yyGetBool(argument0))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,argument0))))&&(yyGetBool(!yyGetBool(ds_map_find_value(argument0,
"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(argument0,"condition"),0)))){ds_map_set(argument0,argument1,argument2);};}}function gml_Script_s_sim_stat_touchdown(_inst,_other,argument0,argument1){{if(yyfequal(argument0,1)){gml_Script_slog(_inst,_other,yyfplus("s_sim_stat_touchdown RUN: ",__yy_gml_errCheck(string(argument1))));}else {gml_Script_slog(_inst,_other,yyfplus("s_sim_stat_touchdown PASS: ",__yy_gml_errCheck(string(argument1))));};argument1=clamp(argument1,1,100);var gmlpmap=gml_Script_s_get_random_player_by_position(_inst,
_other,false,4);if(yyfequal(argument0,1)){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,2);}else {{if(yyfless(argument1,30)){{if(!yyGetBool(irandom(3))){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,3);}else {if(!yyGetBool(random(4))){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,2);};};};};if(!yyGetBool(gmlpmap)){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);};};};if(yyGetBool(gmlpmap)){{if(yyfequal(argument0,
1)){{ds_map_set(gmlpmap,"stat_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlpmap,"stat_rush_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns")),1));ds_map_set(gmlpmap,"stat_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards")),__yy_gml_errCheck(argument1)));};}else {{ds_map_set(gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlpmap,"stat_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),1));ds_map_set(gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(argument1)));};};if(yyfgreater(argument1,ds_map_find_value(gmlpmap,"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlpmap,"stat_longest",argument1);};};};if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){
{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlqb))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlqb,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlqb,"condition"),0)))){{ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),1));ds_map_set(gmlqb,"stat_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_complete")),1));ds_map_set(gmlqb,
"stat_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_touchdowns")),1));ds_map_set(gmlqb,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_yards")),__yy_gml_errCheck(argument1)));ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlqb,"stat_complete",min(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_complete")),__yy_gml_errCheck(irandom_range(0,2))),
ds_map_find_value(gmlqb,"stat_attempts")));if(yyfgreater(argument1,ds_map_find_value(gmlqb,"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlqb,"stat_longest",argument1);};};};};};gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,5);if((yyGetBool(gmlpmap))&&(yyGetBool(irandom(1)))){ds_map_set(gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),1));};}}function gml_Script_s_sim_stat_pass(_inst,_other,argument0){{gml_Script_slog(_inst,
_other,yyfplus("s_sim_stat_pass: ",__yy_gml_errCheck(string(argument0))));argument0=round(yyftime(__yy_gml_errCheck(argument0),__yy_gml_errCheck(random_range(0.7,1))));var gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);if(yyfless(argument0,35)){{var gmlte=gml_Script_s_get_random_player_by_position(_inst,_other,false,3);if((yyGetBool(gmlte))&&(yyGetBool(yyfequal(ds_map_find_value(gmlte,"stat_yards"),0)))&&(yyGetBool(!yyGetBool(irandom(3))))){gmlpmap=gmlte;}else {if(!yyGetBool(irandom(3))){
gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,3);}else {if(!yyGetBool(random(3))){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,2);};};};if(!yyGetBool(gmlpmap)){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);};};};if(yyGetBool(gmlpmap)){{var gmlrat=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);if(yyfequal(ds_map_find_value(gmlpmap,"position"),4)){argument0=yyfplus(argument0,irandom(yyftime(__yy_gml_errCheck(gmlrat),2)));
};argument0=clamp(argument0,1,100);ds_map_set(gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(argument0)));if(yyfgreater(argument0,ds_map_find_value(gmlpmap,"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlpmap,"stat_longest",argument0);};};};if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){
{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlqb))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlqb,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlqb,"condition"),0)))){{argument0=clamp(argument0,1,100);ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),1));ds_map_set(gmlqb,"stat_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_complete")),
1));ds_map_set(gmlqb,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_yards")),__yy_gml_errCheck(argument0)));ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlqb,"stat_complete",min(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_complete")),__yy_gml_errCheck(irandom_range(0,2))),ds_map_find_value(gmlqb,"stat_attempts")));if(yyfgreater(argument0,ds_map_find_value(gmlqb,
"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlqb,"stat_longest",argument0);};};};};};gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,5);if((yyGetBool(gmlpmap))&&(yyGetBool(irandom(1)))){ds_map_set(gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),1));};}}function gml_Script_s_sim_stat_run(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_sim_stat_run: ",__yy_gml_errCheck(string(argument0))));var gmlpmap=gml_Script_s_get_random_player_by_position(_inst,
_other,false,2);if(yyGetBool(gmlpmap)){{var gmlrat=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);argument0=round(yyftime(__yy_gml_errCheck(argument0),__yy_gml_errCheck(random_range(0.6,yyfplus(0.7,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrat),0.03)))))));argument0=clamp(argument0,1,100);ds_map_set(gmlpmap,"stat_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts")),__yy_gml_errCheck(irandom_range(2,3))));ds_map_set(gmlpmap,"stat_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,
"stat_rush_yards")),__yy_gml_errCheck(argument0)));if(yyfgreater(argument0,ds_map_find_value(gmlpmap,"stat_rush_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlpmap,"stat_rush_longest",argument0);};};};}}function gml_Script_s_sim_stat_fumble(_inst,_other){{var gmlpmap=(-4);var ___sw1154___=irandom(4);var ___swc1155___=-1;if(yyCompareVal(___sw1154___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1154___,1,g_GMLMathEpsilon,false)==0){___swc1155___=0;}else if(yyCompareVal(___sw1154___,2,g_GMLMathEpsilon,
false)==0){___swc1155___=1;}else if(yyCompareVal(___sw1154___,3,g_GMLMathEpsilon,false)==0){___swc1155___=2;}switch(___swc1155___){case 0:{gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);break;}case 1:{gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,2);break;}case 2:{gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,3);break;}};if(yyGetBool(gmlpmap)){{if(yyfequal(ds_map_find_value(gmlpmap,"position"),2)){ds_map_set(gmlpmap,"stat_rush_attempts",
yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts")),1));}else {ds_map_set(gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts")),1));};ds_map_set(gmlpmap,"stat_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),1));};};}}function gml_Script_s_sim_stat_interception(_inst,_other){{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,
gmlqb))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlqb,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlqb,"condition"),0)))){{ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),1));ds_map_set(gmlqb,"stat_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_int")),1));};};}}function gml_Script_s_sim_stat_sack(_inst,_other){{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,
_other,gmlqb))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlqb,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlqb,"condition"),0)))){{ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),1));ds_map_set(gmlqb,"stat_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_sacks")),1));};};}}function gml_GlobalScript_s_parse_string(_inst,_other){(_inst.gmls_parse_string=__yy_method(_inst,gml_Script_s_parse_string));}function gml_Script_s_parse_string(_inst,
_other,argument0){{argument0=string_replace(argument0,"$random_argument",gml_Script_s_str(_inst,_other,yyfplus("argument_",__yy_gml_errCheck(string(irandom_range(1,14))))));argument0=string_replace(argument0,"$random_class",gml_Script_s_str(_inst,_other,yyfplus("class_",__yy_gml_errCheck(string(irandom_range(1,8))))));argument0=string_replace(argument0,"$aan_random_class",gml_Script_s_str(_inst,_other,yyfplus("aan_class_",__yy_gml_errCheck(string(irandom_range(1,8))))));argument0=string_replace(argument0,
"$teamname",ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,"name"));argument0=string_replace(argument0,"$teamdivision",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,"conference"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,"division"))));return argument0;}}function gml_GlobalScript_s_crop_text(_inst,_other,argument0,argument1){(_inst.gmls_crop_text=__yy_method(_inst,gml_Script_s_crop_text));}function gml_Script_s_crop_text(_inst,
_other,argument0,argument1){{var gmltxt=argument0;var gmlmaxchars=argument1;var gmllen=string_length(gmltxt);var gmldoublenewline=string_pos("##",gmltxt);var gmlbonus="";if(yyfnotequal(gmldoublenewline,0)){{gmlbonus=string_copy(gmltxt,gmldoublenewline,gmllen);gmltxt=string_copy(gmltxt,1,gmldoublenewline);gmllen=string_length(gmltxt);};};var gmlpos=gmlmaxchars;var gmlp=0;while(yyfless(gmlp,yyfminus(__yy_gml_errCheck(gmllen),__yy_gml_errCheck(gmlmaxchars)))){{gmlp=gmlpos;for(;yyfgreater(gmlp,yyfminus(__yy_gml_errCheck(gmlpos),
10));(g_yyPrePostObject__=gmlp,gmlp=(g_yyPrePostObject__ instanceof Long?gmlp.subtract(1):--gmlp),g_yyPrePostObject__)){{var gmlfoundspace=false;if(yyfequal(string_char_at(gmltxt,gmlp)," ")){{gmlfoundspace=true;break;};};}};if(yyGetBool(gmlfoundspace)){{gmltxt=string_insert("\n",gmltxt,gmlp);};}else {{gmlp=yyfminus(__yy_gml_errCheck(gmlpos),1);gmltxt=string_insert("-",gmltxt,(g_yyPrePostObject__=gmlp,gmlp=(g_yyPrePostObject__ instanceof Long?gmlp.add(1):++gmlp),g_yyPrePostObject__));gmltxt=string_insert("\n",
gmltxt,gmlp);};};gmlpos=yyfplus(__yy_gml_errCheck(gmlp),__yy_gml_errCheck(gmlmaxchars));gmllen=string_length(gmltxt);}};gmltxt=yyfplus(gmltxt,gmlbonus);return string_hash_to_newline(gmltxt);}}function gml_GlobalScript_s_get_string_ball_state(_inst,_other){(_inst.gmls_get_string_ball_state=__yy_method(_inst,gml_Script_s_get_string_ball_state));}function gml_Script_s_get_string_ball_state(_inst,_other){{{var __yy__v1528=GetWithArray(global.gmlmaster_ball);for(var __yy__v1529 in __yy__v1528){if(!__yy__v1528.hasOwnProperty(__yy__v1529))continue;
var __yy__v1530=__yy__v1528[__yy__v1529];{var ___sw1158___=__yy__v1530.gmlstate;var ___swc1159___=-1;if(yyCompareVal(___sw1158___,0,g_GMLMathEpsilon,false)==0){___swc1159___=0;}else if(yyCompareVal(___sw1158___,2,g_GMLMathEpsilon,false)==0){___swc1159___=1;}else if(yyCompareVal(___sw1158___,1,g_GMLMathEpsilon,false)==0){___swc1159___=2;}else if(yyCompareVal(___sw1158___,3,g_GMLMathEpsilon,false)==0){___swc1159___=3;}else if(yyCompareVal(___sw1158___,4,g_GMLMathEpsilon,false)==0){___swc1159___=4;}else if(yyCompareVal(___sw1158___,
5,g_GMLMathEpsilon,false)==0){___swc1159___=5;}else if(yyCompareVal(___sw1158___,6,g_GMLMathEpsilon,false)==0){___swc1159___=6;}else if(yyCompareVal(___sw1158___,7,g_GMLMathEpsilon,false)==0){___swc1159___=7;}else if(yyCompareVal(___sw1158___,8,g_GMLMathEpsilon,false)==0){___swc1159___=8;}else if(yyCompareVal(___sw1158___,9,g_GMLMathEpsilon,false)==0){___swc1159___=9;}else if(yyCompareVal(___sw1158___,10,g_GMLMathEpsilon,false)==0){___swc1159___=10;}else if(yyCompareVal(___sw1158___,11,g_GMLMathEpsilon,
false)==0){___swc1159___=11;}else if(yyCompareVal(___sw1158___,12,g_GMLMathEpsilon,false)==0){___swc1159___=12;}else if(yyCompareVal(___sw1158___,13,g_GMLMathEpsilon,false)==0){___swc1159___=13;}else if(yyCompareVal(___sw1158___,14,g_GMLMathEpsilon,false)==0){___swc1159___=14;}else if(yyCompareVal(___sw1158___,15,g_GMLMathEpsilon,false)==0){___swc1159___=15;}else if(yyCompareVal(___sw1158___,16,g_GMLMathEpsilon,false)==0){___swc1159___=16;}else if(yyCompareVal(___sw1158___,17,g_GMLMathEpsilon,false)==0){
___swc1159___=17;}else if(yyCompareVal(___sw1158___,18,g_GMLMathEpsilon,false)==0){___swc1159___=18;}else if(yyCompareVal(___sw1158___,19,g_GMLMathEpsilon,false)==0){___swc1159___=19;}else if(yyCompareVal(___sw1158___,20,g_GMLMathEpsilon,false)==0){___swc1159___=20;}switch(___swc1159___){case 0:{return "BALL_SET";}case 1:{return "BALL_AIM";}case 2:{return "BALL_AIM_DEADZONE";}case 3:{return "BALL_RELEASED";}case 4:{return "BALL_DOWN";}case 5:{return "BALL_RECEIVED";}case 6:{return "BALL_TOUCHDOWN";}case 7:{return "BALL_INCOMPLETE";
}case 8:{return "BALL_OUTOFBOUNDS";}case 9:{return "BALL_INTERCEPTED";}case 10:{return "BALL_TURNOVER";}case 11:{return "BALL_SACKED";}case 12:{return "BALL_SAFETY";}case 13:{return "BALL_FUMBLED";}case 14:{return "BALL_FIELD_GOAL_GOOD";}case 15:{return "BALL_FIELD_GOAL_BAD";}case 16:{return "BALL_PRACTICE_SUCCESS";}case 17:{return "BALL_PRACTICE_FAIL";}case 18:{return "BALL_RUN_QB";}case 19:{return "BALL_HANDOFF";}case 20:{return "BALL_TOUCHBACK";}};}}};return "ball.state == OTHER";}}function gml_GlobalScript_s_get_string_state(_inst,
_other){(_inst.gmls_get_string_state=__yy_method(_inst,gml_Script_s_get_string_state));}function gml_Script_s_get_string_state(_inst,_other){{{var __yy__v1531=GetWithArray(104);for(var __yy__v1532 in __yy__v1531){if(!__yy__v1531.hasOwnProperty(__yy__v1532))continue;var __yy__v1533=__yy__v1531[__yy__v1532];{var ___sw1162___=__yy__v1533.gmlstate;var ___swc1163___=-1;if(yyCompareVal(___sw1162___,2,g_GMLMathEpsilon,false)==0){___swc1163___=0;}else if(yyCompareVal(___sw1162___,1,g_GMLMathEpsilon,false)==0){___swc1163___=1;
}switch(___swc1163___){case 0:{return "ACTION";break;}case 1:{return "COMMENTARY";break;}};}}};return "state == OTHER";}}function gml_GlobalScript_s_get_string_sex(_inst,_other){(_inst.gmls_get_string_sex=__yy_method(_inst,gml_Script_s_get_string_sex));}function gml_Script_s_get_string_sex(_inst,_other){{var ___sw1166___=1;var ___swc1167___=-1;if(yyCompareVal(___sw1166___,0,g_GMLMathEpsilon,false)==0){___swc1167___=0;}else if(yyCompareVal(___sw1166___,1,g_GMLMathEpsilon,false)==0){___swc1167___=1;}switch(___swc1167___){
case 0:{return gml_Script_s_str(_inst,_other,"sex_0");break;}case 1:{return gml_Script_s_str(_inst,_other,"sex_1");break;}};}}function gml_GlobalScript_s_get_string_heshe(_inst,_other,argument0){(_inst.gmls_get_string_heshe=__yy_method(_inst,gml_Script_s_get_string_heshe));}function gml_Script_s_get_string_heshe(_inst,_other,argument0){{var ___sw1170___=argument0;var ___swc1171___=-1;if(yyCompareVal(___sw1170___,0,g_GMLMathEpsilon,false)==0){___swc1171___=0;}else if(yyCompareVal(___sw1170___,1,g_GMLMathEpsilon,
false)==0){___swc1171___=1;}switch(___swc1171___){case 0:{return gml_Script_s_str(_inst,_other,"person_She");break;}case 1:{return gml_Script_s_str(_inst,_other,"person_He");break;}};}}function gml_GlobalScript_s_get_string_time(_inst,_other,argument0,argument1){(_inst.gmls_get_string_time=__yy_method(_inst,gml_Script_s_get_string_time));}function gml_Script_s_get_string_time(_inst,_other,argument0,argument1){{var gmlmins=string(argument0);var gmlsecs=string(argument1);if(yyfless(string_length(gmlsecs),
2)){return yyfplus(yyfplus(__yy_gml_errCheck(gmlmins),":0"),__yy_gml_errCheck(gmlsecs));};return yyfplus(yyfplus(__yy_gml_errCheck(gmlmins),":"),__yy_gml_errCheck(gmlsecs));}}function gml_GlobalScript_s_string_rand(_inst,_other,argument0,argument1){(_inst.gmls_string_rand=__yy_method(_inst,gml_Script_s_string_rand));}function gml_Script_s_string_rand(_inst,_other,argument0,argument1){{return string(irandom_range(argument0,argument1));}}function gml_GlobalScript_s_get_string_downand(_inst,_other){(_inst.gmls_get_string_downand=__yy_method(_inst,
gml_Script_s_get_string_downand));}function gml_Script_s_get_string_downand(_inst,_other){{var gmltxt="";var ___sw1174___=_inst.gmldown;var ___swc1175___=-1;if(yyCompareVal(___sw1174___,1,g_GMLMathEpsilon,false)==0){___swc1175___=0;}else if(yyCompareVal(___sw1174___,2,g_GMLMathEpsilon,false)==0){___swc1175___=1;}else if(yyCompareVal(___sw1174___,3,g_GMLMathEpsilon,false)==0){___swc1175___=2;}else if(yyCompareVal(___sw1174___,4,g_GMLMathEpsilon,false)==0){___swc1175___=3;}switch(___swc1175___){case 0:{gmltxt=gml_Script_s_str(_inst,
_other,"down_1and");break;}case 1:{gmltxt=gml_Script_s_str(_inst,_other,"down_2and");break;}case 2:{gmltxt=gml_Script_s_str(_inst,_other,"down_3and");break;}case 3:{gmltxt=gml_Script_s_str(_inst,_other,"down_4and");break;}default :{return "";}};if((yyGetBool(yyfless(_inst.gmlx_yards,300)))||(yyGetBool(yyfgreater(_inst.gmlx_yards,2300)))){{gmltxt=yyfplus(gmltxt,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"Goal"))));};}else {if(yyfless(_inst.gmlyards,1)){{gmltxt=yyfplus(gmltxt,yyfplus(" ",
__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"Inches"))));};}else {{gmltxt=yyfplus(gmltxt,yyfplus(" ",__yy_gml_errCheck(string(round(_inst.gmlyards)))));};};};return gmltxt;}}function gml_GlobalScript_s_get_string_float(_inst,_other,argument0,argument1){(_inst.gmls_get_string_float=__yy_method(_inst,gml_Script_s_get_string_float));}function gml_Script_s_get_string_float(_inst,_other,argument0,argument1){{return string_replace_all(string_format(argument0,9,argument1)," ","");}}function gml_GlobalScript_s_get_string_division(_inst,
_other,argument0,argument1){(_inst.gmls_get_string_division=__yy_method(_inst,gml_Script_s_get_string_division));}function gml_Script_s_get_string_division(_inst,_other,argument0,argument1){{var gml_conf=argument0;var gml_div=argument1;var ___sw1182___=gml_conf;var ___swc1183___=-1;if(yyCompareVal(___sw1182___,0,g_GMLMathEpsilon,false)==0){___swc1183___=0;}else if(yyCompareVal(___sw1182___,1,g_GMLMathEpsilon,false)==0){___swc1183___=1;}switch(___swc1183___){case 0:{var ___sw1184___=gml_div;var ___swc1185___=-1;
if(yyCompareVal(___sw1184___,0,g_GMLMathEpsilon,false)==0){___swc1185___=0;}else if(yyCompareVal(___sw1184___,1,g_GMLMathEpsilon,false)==0){___swc1185___=1;}else if(yyCompareVal(___sw1184___,2,g_GMLMathEpsilon,false)==0){___swc1185___=2;}else if(yyCompareVal(___sw1184___,3,g_GMLMathEpsilon,false)==0){___swc1185___=3;}switch(___swc1185___){case 0:{return yyInst(_inst,_other,97).gmlname_div1;break;}case 1:{return yyInst(_inst,_other,97).gmlname_div2;break;}case 2:{return yyInst(_inst,_other,97).gmlname_div3;
break;}case 3:{return yyInst(_inst,_other,97).gmlname_div4;break;}};break;}case 1:{var ___sw1186___=gml_div;var ___swc1187___=-1;if(yyCompareVal(___sw1186___,0,g_GMLMathEpsilon,false)==0){___swc1187___=0;}else if(yyCompareVal(___sw1186___,1,g_GMLMathEpsilon,false)==0){___swc1187___=1;}else if(yyCompareVal(___sw1186___,2,g_GMLMathEpsilon,false)==0){___swc1187___=2;}else if(yyCompareVal(___sw1186___,3,g_GMLMathEpsilon,false)==0){___swc1187___=3;}switch(___swc1187___){case 0:{return yyInst(_inst,_other,97).gmlname_div1b;
break;}case 1:{return yyInst(_inst,_other,97).gmlname_div2b;break;}case 2:{return yyInst(_inst,_other,97).gmlname_div3b;break;}case 3:{return yyInst(_inst,_other,97).gmlname_div4b;break;}};break;}};}}function gml_GlobalScript_s_get_string_conference(_inst,_other,argument0){(_inst.gmls_get_string_conference=__yy_method(_inst,gml_Script_s_get_string_conference));}function gml_Script_s_get_string_conference(_inst,_other,argument0){{var ___sw1190___=argument0;var ___swc1191___=-1;if(yyCompareVal(___sw1190___,
0,g_GMLMathEpsilon,false)==0){___swc1191___=0;}else if(yyCompareVal(___sw1190___,1,g_GMLMathEpsilon,false)==0){___swc1191___=1;}switch(___swc1191___){case 0:{return yyInst(_inst,_other,97).gmlname_conf1;break;}case 1:{return yyInst(_inst,_other,97).gmlname_conf2;break;}};}}function gml_GlobalScript_s_get_string_week(_inst,_other,argument0){(_inst.gmls_get_string_week=__yy_method(_inst,gml_Script_s_get_string_week));}function gml_Script_s_get_string_week(_inst,_other,argument0){{var gmlwk=argument0;if(yyfequal(gmlwk,
0)){gmlwk=yyInst(_inst,_other,97).gmlweek;};if(yyfless(gmlwk,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Week"))," "),__yy_gml_errCheck(string(gmlwk)));};if(yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){{if(yyfequal(gmlwk,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_WildCard")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champion")));}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champion")));}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10))){return gml_Script_s_str(_inst,_other,"ui_SuperBowl");
};};};};};};};};};};};};}else {{if(yyfequal(gmlwk,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_WildCard")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 3");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 3");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champion")));}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),11))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champion")));}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),12))){return gml_Script_s_str(_inst,_other,"ui_SuperBowl");};};};};};};};};};};};};};};};return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Week"))," "),__yy_gml_errCheck(string(gmlwk)));}}function gml_GlobalScript_s_get_string_week_short(_inst,_other){(_inst.gmls_get_string_week_short=__yy_method(_inst,
gml_Script_s_get_string_week_short));}function gml_Script_s_get_string_week_short(_inst,_other,argument0){{if(yyfequal(argument0,0)){argument0=yyInst(_inst,_other,97).gmlweek;};if(yyfless(argument0,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Week"))," "),__yy_gml_errCheck(string(argument0)));};if(yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){{if(yyfequal(argument0,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){
return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfirst_week_playoffs),2))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 2");
}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"tla_PlayOff")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Champion")));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Champion")));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10))){return gml_Script_s_str(_inst,_other,"tla_SuperBowl");};};};};};};};};};};};};}else {{if(yyfequal(argument0,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard"))),
" 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),
__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 3");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 3");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,
_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Champion")));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),11))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Champion")));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),12))){return gml_Script_s_str(_inst,_other,"tla_SuperBowl");
};};};};};};};};};};};};};};};return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Week"))," "),__yy_gml_errCheck(string(argument0)));}}function gml_GlobalScript_s_get_string_year(_inst,_other,argument0){(_inst.gmls_get_string_year=__yy_method(_inst,gml_Script_s_get_string_year));}function gml_Script_s_get_string_year(_inst,_other,argument0){{var gmlshort=argument0;var ___sw1194___=gmlshort;var ___swc1195___=-1;if(yyCompareVal(___sw1194___,false,g_GMLMathEpsilon,false)==0){___swc1195___=0;
}else if(yyCompareVal(___sw1194___,true,g_GMLMathEpsilon,false)==0){___swc1195___=1;}switch(___swc1195___){case 0:{return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Year"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlyear)));break;}case 1:{return yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Year")),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlyear)));break;}};}}function gml_GlobalScript_s_get_string_commstage(_inst,_other){(_inst.gmls_get_string_commstage=__yy_method(_inst,
gml_Script_s_get_string_commstage));}function gml_Script_s_get_string_commstage(_inst,_other,argument0){{var ___sw1198___=argument0;var ___swc1199___=-1;if(yyCompareVal(___sw1198___,0,g_GMLMathEpsilon,false)==0){___swc1199___=0;}else if(yyCompareVal(___sw1198___,1,g_GMLMathEpsilon,false)==0){___swc1199___=1;}else if(yyCompareVal(___sw1198___,2,g_GMLMathEpsilon,false)==0){___swc1199___=2;}else if(yyCompareVal(___sw1198___,3,g_GMLMathEpsilon,false)==0){___swc1199___=3;}else if(yyCompareVal(___sw1198___,4,
g_GMLMathEpsilon,false)==0){___swc1199___=4;}else if(yyCompareVal(___sw1198___,5,g_GMLMathEpsilon,false)==0){___swc1199___=5;}else if(yyCompareVal(___sw1198___,6,g_GMLMathEpsilon,false)==0){___swc1199___=6;}else if(yyCompareVal(___sw1198___,7,g_GMLMathEpsilon,false)==0){___swc1199___=7;}else if(yyCompareVal(___sw1198___,8,g_GMLMathEpsilon,false)==0){___swc1199___=8;}else if(yyCompareVal(___sw1198___,9,g_GMLMathEpsilon,false)==0){___swc1199___=9;}else if(yyCompareVal(___sw1198___,10,g_GMLMathEpsilon,false)==0){
___swc1199___=10;}else if(yyCompareVal(___sw1198___,11,g_GMLMathEpsilon,false)==0){___swc1199___=11;}else if(yyCompareVal(___sw1198___,12,g_GMLMathEpsilon,false)==0){___swc1199___=12;}else if(yyCompareVal(___sw1198___,13,g_GMLMathEpsilon,false)==0){___swc1199___=13;}else if(yyCompareVal(___sw1198___,14,g_GMLMathEpsilon,false)==0){___swc1199___=14;}else if(yyCompareVal(___sw1198___,15,g_GMLMathEpsilon,false)==0){___swc1199___=15;}else if(yyCompareVal(___sw1198___,16,g_GMLMathEpsilon,false)==0){___swc1199___=16;
}else if(yyCompareVal(___sw1198___,17,g_GMLMathEpsilon,false)==0){___swc1199___=17;}else if(yyCompareVal(___sw1198___,19,g_GMLMathEpsilon,false)==0){___swc1199___=18;}else if(yyCompareVal(___sw1198___,20,g_GMLMathEpsilon,false)==0){___swc1199___=19;}else if(yyCompareVal(___sw1198___,21,g_GMLMathEpsilon,false)==0){___swc1199___=20;}else if(yyCompareVal(___sw1198___,18,g_GMLMathEpsilon,false)==0){___swc1199___=21;}else if(yyCompareVal(___sw1198___,22,g_GMLMathEpsilon,false)==0){___swc1199___=22;}else if(yyCompareVal(___sw1198___,
23,g_GMLMathEpsilon,false)==0){___swc1199___=23;}else if(yyCompareVal(___sw1198___,24,g_GMLMathEpsilon,false)==0){___swc1199___=24;}else if(yyCompareVal(___sw1198___,25,g_GMLMathEpsilon,false)==0){___swc1199___=25;}else if(yyCompareVal(___sw1198___,26,g_GMLMathEpsilon,false)==0){___swc1199___=26;}else if(yyCompareVal(___sw1198___,27,g_GMLMathEpsilon,false)==0){___swc1199___=27;}else if(yyCompareVal(___sw1198___,28,g_GMLMathEpsilon,false)==0){___swc1199___=28;}else if(yyCompareVal(___sw1198___,29,g_GMLMathEpsilon,
false)==0){___swc1199___=29;}else if(yyCompareVal(___sw1198___,30,g_GMLMathEpsilon,false)==0){___swc1199___=30;}else if(yyCompareVal(___sw1198___,31,g_GMLMathEpsilon,false)==0){___swc1199___=31;}switch(___swc1199___){case 0:{return "MATCH_START";}case 1:{return "KICKOFF";}case 2:{return "POSSESSION";}case 3:{return "ATTACK";}case 4:{return "DRIVE";}case 5:{return "PUNT";}case 6:{return "FIELDGOAL1";}case 7:{return "FIELDGOAL2";}case 8:{return "TURNOVER";}case 9:{return "TOUCHDOWN";}case 10:{return "PAT1";}case 11:{return "PAT2";
}case 12:{return "QUARTER_A";}case 13:{return "QUARTER_B";}case 14:{return "TRAINING_START";}case 15:{return "TWOPOINT1";}case 16:{return "TWOPOINT2";}case 17:{return "OVERTIME_WIN";}case 18:{return "FAILED_SKILL";}case 19:{return "FAILED_STRENGTH";}case 20:{return "FAILED_SPEED";}case 21:{return "OVERTIME_OVER";}case 22:{return "TURNOVER_HUMAN";}case 23:{return "INCOMPLETE";}case 24:{return "GOFORIT";}case 25:{return "ONSIDEKICK";}case 26:{return "ONSIDEKICK_NO";}case 27:{return "ONSIDEKICK_YES";}case 28:{return "ONSIDEKICK_SUCCESS";
}case 29:{return "ONSIDEKICK_FAIL";}case 30:{return "TRAINING_END";}case 31:{return "MATCH_END";}};return yyfplus("UNKNOWN COMM_STAGE: ",__yy_gml_errCheck(string(argument0)));}}function gml_GlobalScript_s_get_string_position(_inst,_other){(_inst.gmls_get_string_position=__yy_method(_inst,gml_Script_s_get_string_position));}function gml_Script_s_get_string_position(_inst,_other,argument0){{var ___sw1202___=argument0;var ___swc1203___=-1;if(yyCompareVal(___sw1202___,1,g_GMLMathEpsilon,false)==0){___swc1203___=0;
}else if(yyCompareVal(___sw1202___,5,g_GMLMathEpsilon,false)==0){___swc1203___=1;}else if(yyCompareVal(___sw1202___,3,g_GMLMathEpsilon,false)==0){___swc1203___=2;}else if(yyCompareVal(___sw1202___,2,g_GMLMathEpsilon,false)==0){___swc1203___=3;}else if(yyCompareVal(___sw1202___,4,g_GMLMathEpsilon,false)==0){___swc1203___=4;}else if(yyCompareVal(___sw1202___,6,g_GMLMathEpsilon,false)==0){___swc1203___=5;}else if(yyCompareVal(___sw1202___,7,g_GMLMathEpsilon,false)==0){___swc1203___=6;}else if(yyCompareVal(___sw1202___,
9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1202___,8,g_GMLMathEpsilon,false)==0){___swc1203___=7;}else if(yyCompareVal(___sw1202___,11,g_GMLMathEpsilon,false)==0){___swc1203___=8;}else if(yyCompareVal(___sw1202___,10,g_GMLMathEpsilon,false)==0){___swc1203___=9;}else if(yyCompareVal(___sw1202___,100,g_GMLMathEpsilon,false)==0){___swc1203___=10;}else if(yyCompareVal(___sw1202___,101,g_GMLMathEpsilon,false)==0){___swc1203___=11;}else if(yyCompareVal(___sw1202___,102,g_GMLMathEpsilon,false)==0){___swc1203___=12;
}switch(___swc1203___){case 0:{return gml_Script_s_str(_inst,_other,"pos_QB");break;}case 1:{return gml_Script_s_str(_inst,_other,"pos_OL");break;}case 2:{return gml_Script_s_str(_inst,_other,"pos_TE");break;}case 3:{return gml_Script_s_str(_inst,_other,"pos_RB");break;}case 4:{return gml_Script_s_str(_inst,_other,"pos_WR");break;}case 5:{return gml_Script_s_str(_inst,_other,"pos_DL");break;}case 6:{return gml_Script_s_str(_inst,_other,"pos_LB");break;}case 7:{return gml_Script_s_str(_inst,_other,"pos_DB");break;
}case 8:{return gml_Script_s_str(_inst,_other,"pos_KP");break;}case 9:{return gml_Script_s_str(_inst,_other,"pos_KK");break;}case 10:{return gml_Script_s_str(_inst,_other,"pos_STAFF_HC");break;}case 11:{return gml_Script_s_str(_inst,_other,"pos_STAFF_DF");break;}case 12:{return gml_Script_s_str(_inst,_other,"pos_STAFF_OF");break;}};return "";}}function gml_GlobalScript_s_get_string_position_full(_inst,_other){(_inst.gmls_get_string_position_full=__yy_method(_inst,gml_Script_s_get_string_position_full));}function gml_Script_s_get_string_position_full(_inst,
_other,argument0){{var ___sw1206___=argument0;var ___swc1207___=-1;if(yyCompareVal(___sw1206___,1,g_GMLMathEpsilon,false)==0){___swc1207___=0;}else if(yyCompareVal(___sw1206___,5,g_GMLMathEpsilon,false)==0){___swc1207___=1;}else if(yyCompareVal(___sw1206___,3,g_GMLMathEpsilon,false)==0){___swc1207___=2;}else if(yyCompareVal(___sw1206___,2,g_GMLMathEpsilon,false)==0){___swc1207___=3;}else if(yyCompareVal(___sw1206___,4,g_GMLMathEpsilon,false)==0){___swc1207___=4;}else if(yyCompareVal(___sw1206___,6,g_GMLMathEpsilon,
false)==0){___swc1207___=5;}else if(yyCompareVal(___sw1206___,7,g_GMLMathEpsilon,false)==0){___swc1207___=6;}else if(yyCompareVal(___sw1206___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1206___,8,g_GMLMathEpsilon,false)==0){___swc1207___=7;}else if(yyCompareVal(___sw1206___,11,g_GMLMathEpsilon,false)==0){___swc1207___=8;}else if(yyCompareVal(___sw1206___,10,g_GMLMathEpsilon,false)==0){___swc1207___=9;}else if(yyCompareVal(___sw1206___,100,g_GMLMathEpsilon,false)==0){___swc1207___=10;}else if(yyCompareVal(___sw1206___,
101,g_GMLMathEpsilon,false)==0){___swc1207___=11;}else if(yyCompareVal(___sw1206___,102,g_GMLMathEpsilon,false)==0){___swc1207___=12;}switch(___swc1207___){case 0:{return gml_Script_s_str(_inst,_other,"position_QB");break;}case 1:{return gml_Script_s_str(_inst,_other,"position_OL");break;}case 2:{return gml_Script_s_str(_inst,_other,"position_TE");break;}case 3:{return gml_Script_s_str(_inst,_other,"position_RB");break;}case 4:{return gml_Script_s_str(_inst,_other,"position_WR");break;}case 5:{return gml_Script_s_str(_inst,
_other,"position_DL");break;}case 6:{return gml_Script_s_str(_inst,_other,"position_LB");break;}case 7:{return gml_Script_s_str(_inst,_other,"position_DB");break;}case 8:{return gml_Script_s_str(_inst,_other,"position_KP");break;}case 9:{return gml_Script_s_str(_inst,_other,"position_KK");break;}case 10:{return gml_Script_s_str(_inst,_other,"position_STAFF_HC");break;}case 11:{return gml_Script_s_str(_inst,_other,"position_STAFF_DF");break;}case 12:{return gml_Script_s_str(_inst,_other,"position_STAFF_OF");break;
}};}}function gml_GlobalScript_s_get_string_attitude(_inst,_other,argument0){(_inst.gmls_get_string_attitude=__yy_method(_inst,gml_Script_s_get_string_attitude));}function gml_Script_s_get_string_attitude(_inst,_other,argument0){{return gml_Script_s_str(_inst,_other,yyfplus("attitude_",__yy_gml_errCheck(string(gml_Script_s_get_attitude_icon(_inst,_other,argument0)))));}}function gml_GlobalScript_s_get_string_trade_value(_inst,_other,argument0){(_inst.gmls_get_string_trade_value=__yy_method(_inst,gml_Script_s_get_string_trade_value));
}function gml_Script_s_get_string_trade_value(_inst,_other,argument0){{var gmltraderound=argument0;if(yyfgreater(gmltraderound,0)){return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Round"))," "),__yy_gml_errCheck(string(gmltraderound)))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Pick")));};return gml_Script_s_str(_inst,_other,"ui_None");}}function gml_GlobalScript_s_get_string_anim(_inst,_other,argument0){(_inst.gmls_get_string_anim=__yy_method(_inst,
gml_Script_s_get_string_anim));}function gml_Script_s_get_string_anim(_inst,_other,argument0){{var ___sw1210___=argument0;var ___swc1211___=-1;if(yyCompareVal(___sw1210___,0,g_GMLMathEpsilon,false)==0){___swc1211___=0;}else if(yyCompareVal(___sw1210___,1,g_GMLMathEpsilon,false)==0){___swc1211___=1;}else if(yyCompareVal(___sw1210___,2,g_GMLMathEpsilon,false)==0){___swc1211___=2;}else if(yyCompareVal(___sw1210___,3,g_GMLMathEpsilon,false)==0){___swc1211___=3;}else if(yyCompareVal(___sw1210___,4,g_GMLMathEpsilon,
false)==0){___swc1211___=4;}else if(yyCompareVal(___sw1210___,5,g_GMLMathEpsilon,false)==0){___swc1211___=5;}else if(yyCompareVal(___sw1210___,6,g_GMLMathEpsilon,false)==0){___swc1211___=6;}else if(yyCompareVal(___sw1210___,7,g_GMLMathEpsilon,false)==0){___swc1211___=7;}else if(yyCompareVal(___sw1210___,8,g_GMLMathEpsilon,false)==0){___swc1211___=8;}else if(yyCompareVal(___sw1210___,9,g_GMLMathEpsilon,false)==0){___swc1211___=9;}else if(yyCompareVal(___sw1210___,10,g_GMLMathEpsilon,false)==0){___swc1211___=10;
}else if(yyCompareVal(___sw1210___,11,g_GMLMathEpsilon,false)==0){___swc1211___=11;}else if(yyCompareVal(___sw1210___,12,g_GMLMathEpsilon,false)==0){___swc1211___=12;}else if(yyCompareVal(___sw1210___,13,g_GMLMathEpsilon,false)==0){___swc1211___=13;}else if(yyCompareVal(___sw1210___,14,g_GMLMathEpsilon,false)==0){___swc1211___=14;}else if(yyCompareVal(___sw1210___,15,g_GMLMathEpsilon,false)==0){___swc1211___=15;}else if(yyCompareVal(___sw1210___,16,g_GMLMathEpsilon,false)==0){___swc1211___=16;}else if(yyCompareVal(___sw1210___,
17,g_GMLMathEpsilon,false)==0){___swc1211___=17;}else if(yyCompareVal(___sw1210___,18,g_GMLMathEpsilon,false)==0){___swc1211___=18;}else if(yyCompareVal(___sw1210___,19,g_GMLMathEpsilon,false)==0){___swc1211___=19;}switch(___swc1211___){case 0:{return "ANIM_STAND";break;}case 1:{return "ANIM_CROUCH";break;}case 2:{return "ANIM_RUN";break;}case 3:{return "ANIM_TACKLING";break;}case 4:{return "ANIM_FALLING";break;}case 5:{return "ANIM_DIVE";break;}case 6:{return "ANIM_GETUP";break;}case 7:{return "ANIM_JOCKEY";break;
}case 8:{return "ANIM_JUMP";break;}case 9:{return "ANIM_STIFFARM";break;}case 10:{return "ANIM_JUMPCATCH";break;}case 11:{return "ANIM_AIM";break;}case 12:{return "ANIM_THROW";break;}case 13:{return "ANIM_PLACE";break;}case 14:{return "ANIM_KICK1";break;}case 15:{return "ANIM_KICK2";break;}case 16:{return "ANIM_SPIKE";break;}case 17:{return "ANIM_CELEBRATE";break;}case 18:{return "ANIM_FIRSTDOWN";break;}case 19:{return "ANIM_KNEEL";break;}};return "";}}function gml_GlobalScript_s_get_string_condition(_inst,_other,argument0){
(_inst.gmls_get_string_condition=__yy_method(_inst,gml_Script_s_get_string_condition));}function gml_Script_s_get_string_condition(_inst,_other,argument0){{var gmlcon=argument0;if(yyflessequal(gmlcon,(-1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"condition_0"))," ("),__yy_gml_errCheck(string(abs(gmlcon)))),")");}else {if(yyflessequal(gmlcon,20)){return gml_Script_s_str(_inst,_other,"condition_1");}else {if(yyflessequal(gmlcon,40)){return gml_Script_s_str(_inst,_other,
"condition_2");}else {if(yyflessequal(gmlcon,60)){return gml_Script_s_str(_inst,_other,"condition_3");}else {if(yyflessequal(gmlcon,80)){return gml_Script_s_str(_inst,_other,"condition_4");}else {if(yyflessequal(gmlcon,99)){return gml_Script_s_str(_inst,_other,"condition_5");}else {return gml_Script_s_str(_inst,_other,"condition_6");};};};};};};}}function gml_GlobalScript_s_get_string_record(_inst,_other,argument0,argument1){(_inst.gmls_get_string_record=__yy_method(_inst,gml_Script_s_get_string_record));
}function gml_Script_s_get_string_record(_inst,_other,argument0,argument1){{var gmltmap=argument0;var gmlalways_include_ties=argument1;var gmltxt=string(ds_map_find_value(gmltmap,"wins"));gmltxt=yyfplus(gmltxt,yyfplus("-",__yy_gml_errCheck(string(ds_map_find_value(gmltmap,"losses")))));if((yyGetBool(yyfgreater(ds_map_find_value(gmltmap,"ties"),0)))||(yyGetBool(gmlalways_include_ties))){gmltxt=yyfplus(gmltxt,yyfplus("-",__yy_gml_errCheck(string(ds_map_find_value(gmltmap,"ties")))));};return gmltxt;}}function gml_GlobalScript_s_get_string_trait(_inst,
_other,argument0){(_inst.gmls_get_string_trait=__yy_method(_inst,gml_Script_s_get_string_trait));}function gml_Script_s_get_string_trait(_inst,_other,argument0){{return gml_Script_s_str(_inst,_other,yyfplus("coachtrait_",__yy_gml_errCheck(string(argument0))));}}function gml_GlobalScript_s_get_string_action_result(_inst,_other,argument0){(_inst.gmls_get_string_action_result=__yy_method(_inst,gml_Script_s_get_string_action_result));}function gml_Script_s_get_string_action_result(_inst,_other,argument0){
{var ___sw1214___=argument0;var ___swc1215___=-1;if(yyCompareVal(___sw1214___,1,g_GMLMathEpsilon,false)==0){___swc1215___=0;}else if(yyCompareVal(___sw1214___,2,g_GMLMathEpsilon,false)==0){___swc1215___=1;}else if(yyCompareVal(___sw1214___,3,g_GMLMathEpsilon,false)==0){___swc1215___=2;}else if(yyCompareVal(___sw1214___,4,g_GMLMathEpsilon,false)==0){___swc1215___=3;}else if(yyCompareVal(___sw1214___,5,g_GMLMathEpsilon,false)==0){___swc1215___=4;}else if(yyCompareVal(___sw1214___,6,g_GMLMathEpsilon,false)==0){
___swc1215___=5;}else if(yyCompareVal(___sw1214___,7,g_GMLMathEpsilon,false)==0){___swc1215___=6;}else if(yyCompareVal(___sw1214___,8,g_GMLMathEpsilon,false)==0){___swc1215___=7;}else if(yyCompareVal(___sw1214___,9,g_GMLMathEpsilon,false)==0){___swc1215___=8;}switch(___swc1215___){case 0:{return "ACTION_RESULT_TOUCHDOWN";}case 1:{return "ACTION_RESULT_TOUCHDOWN_OPP";}case 2:{return "ACTION_RESULT_INTERCEPTED";}case 3:{return "ACTION_RESULT_TURNOVER";}case 4:{return "ACTION_RESULT_PUNT";}case 5:{return "ACTION_RESULT_FIELDGOAL_GOOD";
}case 6:{return "ACTION_RESULT_FIELDGOAL_BAD";}case 7:{return "ACTION_RESULT_SAFETY";}case 8:{return "ACTION_RESULT_TIMEUP";}};}}function gml_GlobalScript_s_can_touchback(_inst,_other){(_inst.gmls_can_touchback=__yy_method(_inst,gml_Script_s_can_touchback));}function gml_Script_s_can_touchback(_inst,_other){{{var __yy__v1534=GetWithArray(global.gmlmaster_ball);for(var __yy__v1535 in __yy__v1534){if(!__yy__v1534.hasOwnProperty(__yy__v1535))continue;var __yy__v1536=__yy__v1534[__yy__v1535];{if(!yyGetBool(__yy__v1536.gmlholder)){
return false;};if((yyGetBool(yyfgreater(__yy__v1536.x,300)))&&(yyGetBool(yyfless(__yy__v1536.x,2300)))){return false;};if(yyfless(yyInst(_inst,_other,__yy__v1536.gmlholder).gmlgoaldist,1000)){return false;};if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,__yy__v1536.gmlholder).gmlmin_x,(-1))))&&(yyGetBool(yyfless(yyInst(_inst,_other,__yy__v1536.gmlholder).gmlmin_x,2300)))){return false;};if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldrivedir,
1)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,__yy__v1536.gmlholder).gmlmin_x,(-1))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,__yy__v1536.gmlholder).gmlmax_x,300)))){return false;};return true;}}};return false;}}function gml_GlobalScript_s_get_string_performance(_inst,_other){(_inst.gmls_get_string_performance=__yy_method(_inst,gml_Script_s_get_string_performance));}function gml_Script_s_get_string_performance(_inst,_other,argument0){{if(yyfgreater(argument0,90)){return yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"rating_Incredible")),"!");};if(yyfgreater(argument0,75)){return gml_Script_s_str(_inst,_other,"rating_Great");};if(yyfgreater(argument0,60)){return gml_Script_s_str(_inst,_other,"rating_Good");};if(yyfgreater(argument0,45)){return gml_Script_s_str(_inst,_other,"rating_Ok");};if(yyfgreater(argument0,30)){return gml_Script_s_str(_inst,_other,"rating_Poor");};return yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"rating_Terrible")),"!");}}function gml_GlobalScript_s_get_random_teamname(_inst,
_other){(_inst.gmls_get_random_teamname=__yy_method(_inst,gml_Script_s_get_random_teamname));}function gml_Script_s_get_random_teamname(_inst,_other,argument0){{{var __yy__v1537=GetWithArray(97);for(var __yy__v1538 in __yy__v1537){if(!__yy__v1537.hasOwnProperty(__yy__v1538))continue;var __yy__v1539=__yy__v1537[__yy__v1538];{var gmltmap=(-4);if(yyGetBool(argument0)){gmltmap=ds_list_find_value(__yy__v1539.gmlteamlist,irandom(31));}else {{do {{gmltmap=ds_list_find_value(__yy__v1539.gmlteamlist,irandom(31));
}}while(!(yyfnotequal(gmltmap,__yy__v1539.gmlmyteam)));};};return ds_map_find_value(gmltmap,"name");}}};}}function gml_GlobalScript_btn_click_Roster_List(_inst,_other){(_inst.gmlbtn_click_Roster_List=__yy_method(_inst,gml_Script_btn_click_Roster_List));}function gml_Script_btn_click_Roster_List(_inst,_other){{room_goto(34);}}function gml_GlobalScript_s_get_string_picks(_inst,_other,argument0){(_inst.gmls_get_string_picks=__yy_method(_inst,gml_Script_s_get_string_picks));}function gml_Script_s_get_string_picks(_inst,
_other,argument0){{var gmlshort=argument0;var gmldraft_txt="";var gmlspacer=" - ";if(yyGetBool(gmlshort)){gmlspacer="-";};{var __yy__v1540=GetWithArray(97);for(var __yy__v1541 in __yy__v1540){if(!__yy__v1540.hasOwnProperty(__yy__v1541))continue;var __yy__v1542=__yy__v1540[__yy__v1541];{gmldraft_txt=yyfplus(gmldraft_txt,yyfplus(__yy_gml_errCheck(string(__yy__v1542.gmldraft_picks[__yy_gml_array_check_index(0,__yy__v1542.gmldraft_picks)])),__yy_gml_errCheck(gmlspacer)));gmldraft_txt=yyfplus(gmldraft_txt,yyfplus(__yy_gml_errCheck(string(__yy__v1542.gmldraft_picks[__yy_gml_array_check_index(1,
__yy__v1542.gmldraft_picks)])),__yy_gml_errCheck(gmlspacer)));gmldraft_txt=yyfplus(gmldraft_txt,string(__yy__v1542.gmldraft_picks[__yy_gml_array_check_index(2,__yy__v1542.gmldraft_picks)]));}}};return gmldraft_txt;}}function gml_GlobalScript_s_get_team_by_id(_inst,_other){(_inst.gmls_get_team_by_id=__yy_method(_inst,gml_Script_s_get_team_by_id));}function gml_Script_s_get_team_by_id(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlteamlist));(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmli);if(yyfequal(ds_map_find_value(gmlteam,"uid"),argument0)){return gmlteam;};}};var gmlteam=ds_map_create();ds_map_set(gmlteam,"uid",(-1));ds_map_set(gmlteam,"name","Null Team");ds_map_set(gmlteam,"tla","-");gml_Script_slog(_inst,_other,"RETURN DUMMY TEAM!");return gmlteam;}}function gml_GlobalScript_s_get_team_name_by_id(_inst,_other,argument0){(_inst.gmls_get_team_name_by_id=__yy_method(_inst,
gml_Script_s_get_team_name_by_id));}function gml_Script_s_get_team_name_by_id(_inst,_other,argument0){{var gmltmap=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,argument0);return ds_map_find_value(gmltmap,"name");}}function gml_GlobalScript_s_get_team_tla_by_id(_inst,_other,argument0){(_inst.gmls_get_team_tla_by_id=__yy_method(_inst,gml_Script_s_get_team_tla_by_id));}function gml_Script_s_get_team_tla_by_id(_inst,_other,argument0){{var gmltmap=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,
argument0);return ds_map_find_value(gmltmap,"tla");}}function gml_GlobalScript_s_sort_teams(_inst,_other){(_inst.gmls_sort_teams=__yy_method(_inst,gml_Script_s_sort_teams));}function gml_Script_s_sort_teams(_inst,_other,argument0,argument1,argument2){{var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(argument0),0)){{var gmlbestteam=(-4);var gmlbestpct=(-1);var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmltmap=ds_list_find_value(argument0,gmli);ds_map_set(gmltmap,"offense",real(ds_map_find_value(gmltmap,"offense")));ds_map_set(gmltmap,"defense",real(ds_map_find_value(gmltmap,"defense")));var ___sw1218___=argument1;var ___swc1219___=-1;if(yyCompareVal(___sw1218___,0,g_GMLMathEpsilon,false)==0){___swc1219___=0;}else if(yyCompareVal(___sw1218___,1,g_GMLMathEpsilon,false)==0){___swc1219___=1;}else if(yyCompareVal(___sw1218___,2,g_GMLMathEpsilon,false)==0){___swc1219___=2;}switch(___swc1219___){
case 0:{var gmlwins=real(ds_map_find_value(gmltmap,"wins"));var gmllosses=real(ds_map_find_value(gmltmap,"losses"));var gmlties=real(ds_map_find_value(gmltmap,"ties"));var gmlgames=yyfplus(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(gmllosses)),__yy_gml_errCheck(gmlties));var gmlwinpct=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties),0.5)))),__yy_gml_errCheck(gmlgames));gmlwinpct=gml_Script_s_round_to_decimal(_inst,_other,gmlwinpct,
3);if(!yyGetBool(argument2)){{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfgreater(gmlwins,real(ds_map_find_value(gmlbestteam,"wins")))))||(yyGetBool(yyfgreater(gmlwinpct,gmlbestpct)))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if((yyGetBool(yyfequal(gmlwinpct,gmlbestpct)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlweek,2)))){{var gmlhead2head=gml_Script_s_get_head_to_head(_inst,_other,ds_map_find_value(gmltmap,"uid"),ds_map_find_value(gmlbestteam,"uid"));if(yyfequal(gmlhead2head,
(-1))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmlhead2head,0)){{var gmlconfdiv="division";if(yyfnotequal(ds_map_find_value(gmltmap,"division"),ds_map_find_value(gmlbestteam,"division"))){gmlconfdiv="conference";};var gmldivpct1=gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,ds_map_find_value(gmltmap,"uid"),gmlconfdiv);var gmldivpct2=gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,ds_map_find_value(gmlbestteam,"uid"),gmlconfdiv);if(yyfgreater(gmldivpct1,gmldivpct2)){
{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmldivpct1,gmldivpct2)){{var gmlpoints1=gml_Script_s_get_points_season(_inst,_other,ds_map_find_value(gmltmap,"uid"));var gmlpoints2=gml_Script_s_get_points_season(_inst,_other,ds_map_find_value(gmlbestteam,"uid"));if(yyfgreater(gmlpoints1,gmlpoints2)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmlpoints1,gmlpoints2)){{if(yyfgreater(ds_map_find_value(gmltmap,"uid"),ds_map_find_value(gmlbestteam,"uid"))){{gmlbestteam=gmltmap;
gmlbestpct=gmlwinpct;};};};};};};};};};};};};};};};}else {{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfless(gmlwinpct,gmlbestpct)))||(yyGetBool((yyGetBool(yyfequal(gmlwinpct,gmlbestpct)))&&(yyGetBool(yyfless(gmlwins,ds_map_find_value(gmlbestteam,"wins"))))))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if((yyGetBool(yyfequal(gmlwinpct,gmlbestpct)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlweek,2)))){{var gmlhead2head=gml_Script_s_get_head_to_head(_inst,_other,ds_map_find_value(gmltmap,
"uid"),ds_map_find_value(gmlbestteam,"uid"));if(yyfequal(gmlhead2head,1)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmlhead2head,0)){{var gmlconfdiv="division";if(yyfnotequal(ds_map_find_value(gmltmap,"division"),ds_map_find_value(gmlbestteam,"division"))){gmlconfdiv="conference";};var gmldivpct1=gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,ds_map_find_value(gmltmap,"uid"),gmlconfdiv);var gmldivpct2=gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,ds_map_find_value(gmlbestteam,
"uid"),gmlconfdiv);if(yyfless(gmldivpct1,gmldivpct2)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmldivpct1,gmldivpct2)){{var gmlpoints1=gml_Script_s_get_points_season(_inst,_other,ds_map_find_value(gmltmap,"uid"));var gmlpoints2=gml_Script_s_get_points_season(_inst,_other,ds_map_find_value(gmlbestteam,"uid"));if(yyfless(gmlpoints1,gmlpoints2)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmlpoints1,gmlpoints2)){{if(yyfless(ds_map_find_value(gmltmap,"uid"),ds_map_find_value(gmlbestteam,
"uid"))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};};};};};};};};};};};};};};};};break;}case 1:{var gmlname=ds_map_find_value(gmltmap,"name");if(yyGetBool(argument2)){{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfless(gmlname,ds_map_find_value(gmlbestteam,"name"))))){gmlbestteam=gmltmap;};};}else {{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfgreater(gmlname,ds_map_find_value(gmlbestteam,"name"))))){gmlbestteam=gmltmap;};};};break;}case 2:{var gmlrating=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltmap,
"offense")),__yy_gml_errCheck(ds_map_find_value(gmltmap,"defense")));if(yyGetBool(argument2)){{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfless(gmlrating,yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlbestteam,"offense")),__yy_gml_errCheck(ds_map_find_value(gmlbestteam,"defense"))))))){gmlbestteam=gmltmap;};};}else {{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfgreater(gmlrating,yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlbestteam,"offense")),__yy_gml_errCheck(ds_map_find_value(gmlbestteam,
"defense"))))))){gmlbestteam=gmltmap;};};};break;}};}};ds_list_add(gmlsortedlist,gmlbestteam);ds_list_delete(argument0,ds_list_find_index(argument0,gmlbestteam));}};ds_list_destroy(argument0);argument0=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_get_team_by_seed(_inst,_other){(_inst.gmls_get_team_by_seed=__yy_method(_inst,gml_Script_s_get_team_by_seed));(_inst.gmls_get_team_seeding=__yy_method(_inst,gml_Script_s_get_team_seeding));}function gml_Script_s_get_team_by_seed(_inst,_other,argument0,
argument1){{var gmldiv_winner;gmldiv_winner=__yy_gml_array_check(gmldiv_winner,2664416060);gmldiv_winner[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_division_winner(_inst,_other,argument0,0);gmldiv_winner[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_division_winner(_inst,_other,argument0,1);gmldiv_winner[__yy_gml_array_check_index_set(2)]=gml_Script_s_get_division_winner(_inst,_other,argument0,2);gmldiv_winner[__yy_gml_array_check_index_set(3)]=gml_Script_s_get_division_winner(_inst,
_other,argument0,3);{var __yy__v1543=GetWithArray(97);for(var __yy__v1544 in __yy__v1543){if(!__yy__v1543.hasOwnProperty(__yy__v1544))continue;var __yy__v1545=__yy__v1543[__yy__v1544];{var gmlteams_conf=ds_list_create();if(yyflessequal(argument1,4)){{ds_list_add(gmlteams_conf,gmldiv_winner[__yy_gml_array_check_index(0,gmldiv_winner)]);ds_list_add(gmlteams_conf,gmldiv_winner[__yy_gml_array_check_index(1,gmldiv_winner)]);ds_list_add(gmlteams_conf,gmldiv_winner[__yy_gml_array_check_index(2,gmldiv_winner)]);
ds_list_add(gmlteams_conf,gmldiv_winner[__yy_gml_array_check_index(3,gmldiv_winner)]);};}else {{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1545.gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v1545.gmlteamlist,gmli);if(yyfequal(real(ds_map_find_value(gmlteam,"conference")),argument0)){{var gmlwinner=false;if(yyfgreater(argument1,4)){{var gmlr=0;for(;yyfless(gmlr,4);(g_yyPrePostObject__=gmlr,
gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{if(yyfequal(gmlteam,gmldiv_winner[__yy_gml_array_check_index(gmlr,gmldiv_winner)])){{gmlwinner=true;break;};};}};};};if(!yyGetBool(gmlwinner)){ds_list_add(gmlteams_conf,gmlteam);};};};}};};};gmlteams_conf=gml_Script_s_sort_teams(__yy__v1545,_inst,gmlteams_conf,0,false);if(yyfgreater(argument1,4)){argument1=yyfminus(argument1,4);};var gmlteam=ds_list_find_value(gmlteams_conf,yyfminus(__yy_gml_errCheck(argument1),1));
ds_list_destroy(gmlteams_conf);gmlteams_conf=(-1);return gmlteam;}}};}}function gml_Script_s_get_team_seeding(_inst,_other,argument0){{var gmlconf=ds_map_find_value(argument0,"conference");var gmls=1;for(;yyfless(gmls,8);(g_yyPrePostObject__=gmls,gmls=(g_yyPrePostObject__ instanceof Long?gmls.add(1):++gmls),g_yyPrePostObject__)){{var gmls_tmap=gml_Script_s_get_team_by_seed(_inst,_other,gmlconf,gmls);if((yyGetBool(gmls_tmap))&&(yyGetBool(yyfequal(ds_map_find_value(gmls_tmap,"uid"),ds_map_find_value(argument0,
"uid"))))){return gmls;};}};return 8;}}function gml_GlobalScript_s_get_team_id_by_seed(_inst,_other){(_inst.gmls_get_team_id_by_seed=__yy_method(_inst,gml_Script_s_get_team_id_by_seed));}function gml_Script_s_get_team_id_by_seed(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,"s_get_team_id_by_seed");var gmlteam=gml_Script_s_get_team_by_seed(_inst,_other,argument0,argument1);return ds_map_find_value(gmlteam,"uid");}}function gml_GlobalScript_s_get_team_name_by_seed(_inst,_other,argument0,
argument1,argument2){(_inst.gmls_get_team_name_by_seed=__yy_method(_inst,gml_Script_s_get_team_name_by_seed));}function gml_Script_s_get_team_name_by_seed(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other,"s_get_team_name_by_seed");var gmlconf=argument0;var gmlseed=argument1;var gmltla=argument2;var gmlteam=gml_Script_s_get_team_by_seed(_inst,_other,gmlconf,gmlseed);var ___sw1222___=gmltla;var ___swc1223___=-1;if(yyCompareVal(___sw1222___,false,g_GMLMathEpsilon,false)==0){___swc1223___=0;
}else if(yyCompareVal(___sw1222___,true,g_GMLMathEpsilon,false)==0){___swc1223___=1;}switch(___swc1223___){case 0:{return ds_map_find_value(gmlteam,"name");break;}case 1:{return ds_map_find_value(gmlteam,"tla");break;}};}}function gml_GlobalScript_s_get_team_offense(_inst,_other){(_inst.gmls_get_team_offense=__yy_method(_inst,gml_Script_s_get_team_offense));}function gml_Script_s_get_team_offense(_inst,_other,argument0){{{var __yy__v1546=GetWithArray(97);for(var __yy__v1547 in __yy__v1546){if(!__yy__v1546.hasOwnProperty(__yy__v1547))continue;
var __yy__v1548=__yy__v1546[__yy__v1547];{if(yyfequal(ds_map_find_value(argument0,"uid"),__yy__v1548.gmlmyteam_id)){{var gmlrating=0;var gmlpcount=1;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1548.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1548.gmlroster,gmli);if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"backup"),true)))){continue;
};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1548,_inst,gmlpmap))))){{var ___sw1226___=ds_map_find_value(gmlpmap,"position");var ___swc1227___=-1;if(yyCompareVal(___sw1226___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1226___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1226___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1226___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1226___,5,g_GMLMathEpsilon,
false)==0){___swc1227___=0;}switch(___swc1227___){case 0:{(g_yyPrePostObject__=gmlpcount,gmlpcount=(g_yyPrePostObject__ instanceof Long?gmlpcount.add(1):++gmlpcount),g_yyPrePostObject__);gmlrating=yyfplus(gmlrating,gml_Script_s_get_player_rating(__yy__v1548,_inst,gmlpmap));break;}default :{break;}};};};}};var gmlcoordinator=gml_Script_s_get_staff(__yy__v1548,_inst,102);if(yyGetBool(gmlcoordinator)){gmlrating=yyfplus(gmlrating,ds_map_find_value(gmlcoordinator,"rating"));};gmlrating=round(yyftime(__yy_gml_errCheck(gmlrating),
0.225));gmlrating=clamp(gmlrating,1,10);ds_map_set(argument0,"offense",gmlrating);return gmlrating;};}else {{if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){return 10;}else {return real(ds_map_find_value(argument0,"offense"));};};};}}};}}function gml_GlobalScript_s_get_defense_attribute(_inst,_other){(_inst.gmls_get_defense_attribute=__yy_method(_inst,gml_Script_s_get_defense_attribute));(_inst.gmls_get_attribute=__yy_method(_inst,gml_Script_s_get_attribute));(_inst.gmls_attribute_buff=__yy_method(_inst,
gml_Script_s_attribute_buff));}function gml_Script_s_get_defense_attribute(_inst,_other,argument0){{{var __yy__v1549=GetWithArray(97);for(var __yy__v1550 in __yy__v1549){if(!__yy__v1549.hasOwnProperty(__yy__v1550))continue;var __yy__v1551=__yy__v1549[__yy__v1550];{var gmlrating=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1551.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1551.gmlroster,
gmli);if(!yyGetBool(ds_map_exists(gmlpmap,argument0))){continue;};if(!yyGetBool(gml_Script_s_is_defensive_player(__yy__v1551,_inst,gmlpmap))){continue;};if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"backup"),true)))){continue;};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1551,_inst,gmlpmap))))){gmlrating=yyfplus(gmlrating,gml_Script_s_get_attribute(__yy__v1551,_inst,
gmlpmap,argument0));};}};return gmlrating;}}};}}function gml_Script_s_get_attribute(_inst,_other,argument0,argument1){{if(!yyGetBool(argument0)){return 0;};if(!yyGetBool(ds_map_exists(argument0,argument1))){return 0;};var ___sw1232___=argument1;var ___swc1233___=-1;if(yyCompareVal(___sw1232___,"skill",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1232___,"speed",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1232___,"strength",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1232___,"stamina",g_GMLMathEpsilon,
false)==0){___swc1233___=0;}switch(___swc1233___){case 0:{return min(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,argument1)),__yy_gml_errCheck(gml_Script_s_attribute_buff(_inst,_other,argument0,argument1))),10);break;}default :{return ds_map_find_value(argument0,argument1);break;}};return 0;}}function gml_Script_s_attribute_buff(_inst,_other,argument0,argument1){{if(!yyGetBool(ds_map_exists(argument0,argument1))){return 0;};if(yyfless(ds_map_find_value(argument0,"condition"),0)){return 0;};if(yyGetBool(gml_Script_s_is_co_mode(_inst,
_other))){return 0;};var ___sw1234___=argument1;var ___swc1235___=-1;if(yyCompareVal(___sw1234___,"skill",g_GMLMathEpsilon,false)==0){___swc1235___=0;}else if(yyCompareVal(___sw1234___,"speed",g_GMLMathEpsilon,false)==0){___swc1235___=1;}else if(yyCompareVal(___sw1234___,"strength",g_GMLMathEpsilon,false)==0){___swc1235___=2;}else if(yyCompareVal(___sw1234___,"stamina",g_GMLMathEpsilon,false)==0){___swc1235___=3;}switch(___swc1235___){case 0:{if(yyfgreater(ds_map_find_value(argument0,"attitude"),90)){return 1;
};break;}case 1:{if(yyfgreater(ds_map_find_value(argument0,"condition"),99)){return 1;};break;}case 2:{if(yyflessequal(ds_map_find_value(argument0,"attitude"),30)){return 1;};break;}case 3:{if(yyflessequal(ds_map_find_value(argument0,"attitude"),15)){return 1;};break;}};return 0;}}function gml_GlobalScript_s_get_team_defense(_inst,_other){(_inst.gmls_get_team_defense=__yy_method(_inst,gml_Script_s_get_team_defense));}function gml_Script_s_get_team_defense(_inst,_other,argument0){{{var __yy__v1552=GetWithArray(97);
for(var __yy__v1553 in __yy__v1552){if(!__yy__v1552.hasOwnProperty(__yy__v1553))continue;var __yy__v1554=__yy__v1552[__yy__v1553];{if(yyfequal(ds_map_find_value(argument0,"uid"),__yy__v1554.gmlmyteam_id)){{var gmlrating=0;var gmlpcount=1;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1554.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1554.gmlroster,gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,
"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1554,_inst,gmlpmap))))){{var ___sw1238___=ds_map_find_value(gmlpmap,"position");var ___swc1239___=-1;if(yyCompareVal(___sw1238___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1238___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1238___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1238___,9,g_GMLMathEpsilon,false)==0){___swc1239___=0;}switch(___swc1239___){case 0:{(g_yyPrePostObject__=gmlpcount,gmlpcount=(g_yyPrePostObject__ instanceof Long?gmlpcount.add(1):++gmlpcount),
g_yyPrePostObject__);gmlrating=yyfplus(gmlrating,gml_Script_s_get_player_rating(__yy__v1554,_inst,gmlpmap));break;}default :{break;}};};};}};var gmlcoordinator=gml_Script_s_get_staff(__yy__v1554,_inst,101);if(yyGetBool(gmlcoordinator)){gmlrating=yyfplus(gmlrating,ds_map_find_value(gmlcoordinator,"rating"));};gmlrating=round(yyftime(__yy_gml_errCheck(gmlrating),0.25));gmlrating=clamp(gmlrating,1,10);ds_map_set(argument0,"defense",gmlrating);return gmlrating;};}else {{if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,
4)){return 10;}else {return real(ds_map_find_value(argument0,"defense"));};};};}}};}}function gml_GlobalScript_s_get_salary_total(_inst,_other){(_inst.gmls_get_salary_total=__yy_method(_inst,gml_Script_s_get_salary_total));}function gml_Script_s_get_salary_total(_inst,_other){{var gmltotal=0;var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,97).gmlroster));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,
_other,97).gmlroster,gmlr);if(yyGetBool(gmlpmap)){{if(!yyGetBool(ds_map_exists(gmlpmap,"salary"))){ds_map_set(gmlpmap,"salary",0);};gmltotal=yyfplus(gmltotal,real(ds_map_find_value(gmlpmap,"salary")));};};}};return gmltotal;}}function gml_GlobalScript_s_refactor_team_strengths(_inst,_other){(_inst.gmls_refactor_team_strengths=__yy_method(_inst,gml_Script_s_refactor_team_strengths));}function gml_Script_s_refactor_team_strengths(_inst,_other){{gml_Script_slog(_inst,_other,"s_refactor_team_strengths");
{var __yy__v1555=GetWithArray(97);for(var __yy__v1556 in __yy__v1555){if(!__yy__v1555.hasOwnProperty(__yy__v1556))continue;var __yy__v1557=__yy__v1555[__yy__v1556];{var gmlsdrop=0.875;if((yyGetBool(yyfgreaterequal(__yy__v1557.gmlop_difficulty,3)))||(yyGetBool(yyfless(__yy__v1557.gmlsuppress_difficulty,0)))){gmlsdrop=0.8;};var gmlsort_teams=ds_list_create();ds_list_copy(gmlsort_teams,__yy__v1557.gmlteamlist);gmlsort_teams=gml_Script_s_sort_teams(__yy__v1557,_inst,gmlsort_teams,2,false);var gmlconf=0;for(;
yyfless(gmlconf,2);(g_yyPrePostObject__=gmlconf,gmlconf=(g_yyPrePostObject__ instanceof Long?gmlconf.add(1):++gmlconf),g_yyPrePostObject__)){{var gmltop_rating=20;if(yyGetBool(irandom(2))){gmltop_rating=19;};var gmli=0;for(;yyfless(gmli,ds_list_size(gmlsort_teams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmlsort_teams,gmli);if(yyfnotequal(ds_map_find_value(gmlteam,"conference"),gmlconf)){continue;};var gmlrating=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,
"offense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")));for(var __yy__v1558=0,__yy__v1559=yyGetInt32(10);__yy__v1558<__yy__v1559;__yy__v1558++){{if(yyfgreater(gmlrating,round(gmltop_rating))){{var ___sw1244___=irandom(1);var ___swc1245___=-1;if(yyCompareVal(___sw1244___,0,g_GMLMathEpsilon,false)==0){___swc1245___=0;}else if(yyCompareVal(___sw1244___,1,g_GMLMathEpsilon,false)==0){___swc1245___=1;}switch(___swc1245___){case 0:{ds_map_set_post(gmlteam,"offense",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlteam,
"offense")),1));break;}case 1:{ds_map_set_post(gmlteam,"defense",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")),1));break;}};};}else {if(yyfless(gmlrating,round(gmltop_rating))){{var ___sw1246___=irandom(1);var ___swc1247___=-1;if(yyCompareVal(___sw1246___,0,g_GMLMathEpsilon,false)==0){___swc1247___=0;}else if(yyCompareVal(___sw1246___,1,g_GMLMathEpsilon,false)==0){___swc1247___=1;}switch(___swc1247___){case 0:{ds_map_set_post(gmlteam,"offense",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,
"offense")),1));break;}case 1:{ds_map_set_post(gmlteam,"defense",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")),1));break;}};};};};ds_map_set(gmlteam,"offense",clamp(ds_map_find_value(gmlteam,"offense"),2,10));ds_map_set(gmlteam,"defense",clamp(ds_map_find_value(gmlteam,"defense"),2,10));gmlrating=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"offense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")));}};if(yyfequal(gmltop_rating,20)){gmltop_rating=19;}else {gmltop_rating=yyfminus(gmltop_rating,
gmlsdrop);};}};}};ds_list_destroy(gmlsort_teams);gmlsort_teams=(-1);}}};}}function gml_GlobalScript_s_get_team_winpct(_inst,_other,argument0){(_inst.gmls_get_team_winpct=__yy_method(_inst,gml_Script_s_get_team_winpct));}function gml_Script_s_get_team_winpct(_inst,_other,argument0){{var gmltmap=argument0;var gmlwins=real(ds_map_find_value(gmltmap,"wins"));var gmllosses=real(ds_map_find_value(gmltmap,"losses"));var gmlties=real(ds_map_find_value(gmltmap,"ties"));var gmlgames=real(yyfplus(yyfplus(__yy_gml_errCheck(gmlwins),
__yy_gml_errCheck(gmllosses)),__yy_gml_errCheck(gmlties)));if(yyfgreater(gmlgames,0)){return yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties),0.5)))),__yy_gml_errCheck(gmlgames));};return 0;}}function gml_GlobalScript_s_get_team_net_points(_inst,_other,argument0){(_inst.gmls_get_team_net_points=__yy_method(_inst,gml_Script_s_get_team_net_points));}function gml_Script_s_get_team_net_points(_inst,_other,argument0){{var gmluid1=argument0;
var gmlpoints=0;{var __yy__v1560=GetWithArray(97);for(var __yy__v1561 in __yy__v1560){if(!__yy__v1560.hasOwnProperty(__yy__v1561))continue;var __yy__v1562=__yy__v1560[__yy__v1561];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1562.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1562.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){
return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if(yyfequal(gmlteam_idAway,gmluid1)){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"away_score"));gmlpoints=yyfminus(gmlpoints,ds_map_find_value(gmlfix,"home_score"));};}else {if(yyfequal(gmlteam_idHome,gmluid1)){{gmlpoints=yyfplus(gmlpoints,
ds_map_find_value(gmlfix,"home_score"));gmlpoints=yyfminus(gmlpoints,ds_map_find_value(gmlfix,"away_score"));};};};};};}};}}};return gmlpoints;}}function gml_GlobalScript_s_get_points_versus(_inst,_other,argument0,argument1){(_inst.gmls_get_points_versus=__yy_method(_inst,gml_Script_s_get_points_versus));}function gml_Script_s_get_points_versus(_inst,_other,argument0,argument1){{var gmluid1=argument0;var gmluid2=argument1;var gmlpoints=0;{var __yy__v1563=GetWithArray(97);for(var __yy__v1564 in __yy__v1563){
if(!__yy__v1563.hasOwnProperty(__yy__v1564))continue;var __yy__v1565=__yy__v1563[__yy__v1564];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1565.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1565.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,
"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if((yyGetBool(yyfequal(gmlteam_idAway,gmluid1)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid2)))){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"away_score"));};}else {if((yyGetBool(yyfequal(gmlteam_idAway,gmluid2)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid1)))){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"home_score"));};};};};};}};}}};return gmlpoints;
}}function gml_GlobalScript_s_get_wins_versus(_inst,_other,argument0,argument1){(_inst.gmls_get_wins_versus=__yy_method(_inst,gml_Script_s_get_wins_versus));}function gml_Script_s_get_wins_versus(_inst,_other,argument0,argument1){{var gmluid1=argument0;var gmluid2=argument1;var gmlpoints=0;{var __yy__v1566=GetWithArray(97);for(var __yy__v1567 in __yy__v1566){if(!__yy__v1566.hasOwnProperty(__yy__v1567))continue;var __yy__v1568=__yy__v1566[__yy__v1567];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1568.gmlschedule));
(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1568.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),
(-1))){{if((yyGetBool(yyfequal(gmlteam_idAway,gmluid1)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid2)))){{if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlpoints,gmlpoints=(g_yyPrePostObject__ instanceof Long?gmlpoints.add(1):++gmlpoints),g_yyPrePostObject__);};};}else {if((yyGetBool(yyfequal(gmlteam_idAway,gmluid2)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid1)))){{if(yyfgreater(ds_map_find_value(gmlfix,"home_score"),ds_map_find_value(gmlfix,
"away_score"))){(g_yyPrePostObject__=gmlpoints,gmlpoints=(g_yyPrePostObject__ instanceof Long?gmlpoints.add(1):++gmlpoints),g_yyPrePostObject__);};};};};};};}};}}};return gmlpoints;}}function gml_GlobalScript_s_get_point_swing(_inst,_other,argument0,argument1){(_inst.gmls_get_point_swing=__yy_method(_inst,gml_Script_s_get_point_swing));(_inst.gmls_get_head_to_head=__yy_method(_inst,gml_Script_s_get_head_to_head));(_inst.gmls_get_win_pecentage_by_confdiv=__yy_method(_inst,gml_Script_s_get_win_pecentage_by_confdiv));
}function gml_Script_s_get_point_swing(_inst,_other,argument0,argument1){{var gmluid1=argument0;var gmluid2=argument1;var gmlwins=array_create(2,0);var gmlpoints=array_create(2,0);{var __yy__v1569=GetWithArray(97);for(var __yy__v1570 in __yy__v1569){if(!__yy__v1569.hasOwnProperty(__yy__v1570))continue;var __yy__v1571=__yy__v1569[__yy__v1570];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1571.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){
{var gmlfix=ds_list_find_value(__yy__v1571.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if((yyGetBool(yyfequal(gmlteam_idAway,gmluid1)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid2)))){
{gmlpoints=__yy_gml_array_check(gmlpoints,294728977);gmlpoints[__yy_gml_array_check_index_set(0)]=yyfplus(gmlpoints[__yy_gml_array_check_index_set(0)],ds_map_find_value(gmlfix,"away_score"));gmlpoints[__yy_gml_array_check_index_set(1)]=yyfplus(gmlpoints[__yy_gml_array_check_index_set(1)],ds_map_find_value(gmlfix,"home_score"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(0)],
gmlwins[__yy_gml_array_check_index_set(0)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(0)].add(1):++gmlwins[__yy_gml_array_check_index_set(0)]),g_yyPrePostObject__);};}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(1)],gmlwins[__yy_gml_array_check_index_set(1)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(1)].add(1):++gmlwins[__yy_gml_array_check_index_set(1)]),
g_yyPrePostObject__);};};};};}else {if((yyGetBool(yyfequal(gmlteam_idAway,gmluid2)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid1)))){{gmlpoints=__yy_gml_array_check(gmlpoints,294728977);gmlpoints[__yy_gml_array_check_index_set(0)]=yyfplus(gmlpoints[__yy_gml_array_check_index_set(0)],ds_map_find_value(gmlfix,"home_score"));gmlpoints[__yy_gml_array_check_index_set(1)]=yyfplus(gmlpoints[__yy_gml_array_check_index_set(1)],ds_map_find_value(gmlfix,"away_score"));if(yyfgreater(ds_map_find_value(gmlfix,
"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(1)],gmlwins[__yy_gml_array_check_index_set(1)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(1)].add(1):++gmlwins[__yy_gml_array_check_index_set(1)]),g_yyPrePostObject__);};}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,
3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(0)],gmlwins[__yy_gml_array_check_index_set(0)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(0)].add(1):++gmlwins[__yy_gml_array_check_index_set(0)]),g_yyPrePostObject__);};};};};};};};};}};}}};if(yyfgreater(gmlwins[__yy_gml_array_check_index(0,gmlwins)],gmlwins[__yy_gml_array_check_index(1,gmlwins)])){return(-1);};if(yyfless(gmlwins[__yy_gml_array_check_index(0,gmlwins)],gmlwins[__yy_gml_array_check_index(1,
gmlwins)])){return 1;};if(yyfgreater(gmlpoints[__yy_gml_array_check_index(0,gmlpoints)],gmlpoints[__yy_gml_array_check_index(1,gmlpoints)])){return(-1);};if(yyfless(gmlpoints[__yy_gml_array_check_index(0,gmlpoints)],gmlpoints[__yy_gml_array_check_index(1,gmlpoints)])){return 1;};return 0;}}function gml_Script_s_get_head_to_head(_inst,_other,argument0,argument1){{var gmlwins=array_create(2,0);var gmlpoints=array_create(2,0);{var __yy__v1572=GetWithArray(97);for(var __yy__v1573 in __yy__v1572){if(!__yy__v1572.hasOwnProperty(__yy__v1573))continue;
var __yy__v1574=__yy__v1572[__yy__v1573];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1574.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1574.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));
var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if((yyGetBool(yyfequal(gmlteam_idAway,argument0)))&&(yyGetBool(yyfequal(gmlteam_idHome,argument1)))){{if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(0)],gmlwins[__yy_gml_array_check_index_set(0)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(0)].add(1):++gmlwins[__yy_gml_array_check_index_set(0)]),
g_yyPrePostObject__);};}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(1)],gmlwins[__yy_gml_array_check_index_set(1)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(1)].add(1):++gmlwins[__yy_gml_array_check_index_set(1)]),g_yyPrePostObject__);};};};};}else {if((yyGetBool(yyfequal(gmlteam_idAway,argument1)))&&(yyGetBool(yyfequal(gmlteam_idHome,
argument0)))){{if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(1)],gmlwins[__yy_gml_array_check_index_set(1)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(1)].add(1):++gmlwins[__yy_gml_array_check_index_set(1)]),g_yyPrePostObject__);};}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,
"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(0)],gmlwins[__yy_gml_array_check_index_set(0)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(0)].add(1):++gmlwins[__yy_gml_array_check_index_set(0)]),g_yyPrePostObject__);};};};};};};};};}};}}};if(yyfgreater(gmlwins[__yy_gml_array_check_index(0,gmlwins)],gmlwins[__yy_gml_array_check_index(1,gmlwins)])){return(-1);};if(yyfless(gmlwins[__yy_gml_array_check_index(0,
gmlwins)],gmlwins[__yy_gml_array_check_index(1,gmlwins)])){return 1;};return 0;}}function gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,argument0,argument1){{var gmlwins=0;var gmllosses=0;var gmlties=0;{var __yy__v1575=GetWithArray(97);for(var __yy__v1576 in __yy__v1575){if(!__yy__v1575.hasOwnProperty(__yy__v1576))continue;var __yy__v1577=__yy__v1575[__yy__v1576];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1577.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),
g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1577.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if((yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))))&&(yyGetBool((yyGetBool(yyfequal(gmlteam_idAway,argument0)))||(yyGetBool(yyfequal(gmlteam_idHome,
argument0)))))){{var gmltmap1=gml_Script_s_get_team_by_id(__yy__v1577,_inst,gmlteam_idAway);var gmltmap2=gml_Script_s_get_team_by_id(__yy__v1577,_inst,gmlteam_idHome);if(yyfequal(ds_map_find_value(gmltmap1,argument1),ds_map_find_value(gmltmap2,argument1))){{if(yyfequal(gmlteam_idAway,argument0)){{if(yyfequal(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlties,gmlties=(g_yyPrePostObject__ instanceof Long?gmlties.add(1):++gmlties),g_yyPrePostObject__);
}else {if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlwins,gmlwins=(g_yyPrePostObject__ instanceof Long?gmlwins.add(1):++gmlwins),g_yyPrePostObject__);}else {(g_yyPrePostObject__=gmllosses,gmllosses=(g_yyPrePostObject__ instanceof Long?gmllosses.add(1):++gmllosses),g_yyPrePostObject__);};};};}else {{if(yyfequal(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlties,gmlties=(g_yyPrePostObject__ instanceof Long?gmlties.add(1):++gmlties),
g_yyPrePostObject__);}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlwins,gmlwins=(g_yyPrePostObject__ instanceof Long?gmlwins.add(1):++gmlwins),g_yyPrePostObject__);}else {(g_yyPrePostObject__=gmllosses,gmllosses=(g_yyPrePostObject__ instanceof Long?gmllosses.add(1):++gmllosses),g_yyPrePostObject__);};};};};};};};};}};}}};var gmlgames=yyfplus(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(gmllosses)),__yy_gml_errCheck(gmlties));
var gmlwinpct=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties),0.5)))),__yy_gml_errCheck(gmlgames));return gmlwinpct;}}function gml_GlobalScript_s_get_points_season(_inst,_other){(_inst.gmls_get_points_season=__yy_method(_inst,gml_Script_s_get_points_season));}function gml_Script_s_get_points_season(_inst,_other,argument0){{var gmlpoints=0;{var __yy__v1578=GetWithArray(97);for(var __yy__v1579 in __yy__v1578){if(!__yy__v1578.hasOwnProperty(__yy__v1579))continue;
var __yy__v1580=__yy__v1578[__yy__v1579];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1580.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1580.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));
var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if(yyfequal(gmlteam_idAway,argument0)){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"away_score"));};}else {if(yyfequal(gmlteam_idHome,argument0)){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"home_score"));};};};};};}};}}};return gmlpoints;}}function gml_GlobalScript_s_practice_qb_mode(_inst,_other){(_inst.gmls_practice_qb_mode=__yy_method(_inst,gml_Script_s_practice_qb_mode));
(_inst.gmls_end_qb_mode_practice=__yy_method(_inst,gml_Script_s_end_qb_mode_practice));(_inst.gmls_quit_qb_mode_practice=__yy_method(_inst,gml_Script_s_quit_qb_mode_practice));}function gml_Script_s_practice_qb_mode(_inst,_other){{show_debug_message("s_practice_qb_mode");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmlkicking=0;_inst.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),
__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=300;gml_Script_s_destroy_match_objects(_inst,_other);var gmlqb=instance_create_layer(0,0,"Players",107);var gmlrb=instance_create_layer(0,0,"Players",107);var gmlol1=instance_create_layer(0,0,"Players",107);instance_destroy(_inst,gmlrb);{var __yy__v1581=GetWithArray(106);for(var __yy__v1582 in __yy__v1581){if(!__yy__v1581.hasOwnProperty(__yy__v1582))continue;var __yy__v1583=__yy__v1581[__yy__v1582];
gml_Script_s_set_skills_and_skin(__yy__v1583,_inst);}};var gmldist=yyfplus(200,__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(_inst.gmlpractice_success))));var gmld=random_range((-30),30);var gmlsx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlqb).x),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(dcos(gmld)),__yy_gml_errCheck(gmldist)),__yy_gml_errCheck(_inst.gmldrivedir))));var gmlsy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlqb).y),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(dsin(gmld)),
__yy_gml_errCheck(gmldist)),__yy_gml_errCheck(_inst.gmldrivedir))));if((yyGetBool(yyfless(gmlsy,132)))||(yyGetBool(yyfgreater(gmlsy,468)))){gmlsy=irandom_range(132,468);};gml_Script_s_create_dummy(_inst,_other,gmlsx,gmlsy,0,0,0);global.gmlmaster_ball=instance_create_layer(0,0,"Ball",110);instance_create_layer(0,0,"Ball",111);{var __yy__v1584=GetWithArray(104);for(var __yy__v1585 in __yy__v1584){if(!__yy__v1584.hasOwnProperty(__yy__v1585))continue;var __yy__v1586=__yy__v1584[__yy__v1585];{__yy__v1586.gmlstate=2;
__yy__v1586.gmlcomm_stage=14;__yy__v1586.gmlcomm_txt="";__yy__v1586.gmlcomm_proceed=false;__yy__v1586.gmltap_msg="";if(yyGetBool(global.gmlgamepad)){__yy__v1586.gmlcomm_proceed=true;};}}};}}function gml_Script_s_end_qb_mode_practice(_inst,_other){{gml_Script_slog(_inst,_other,"s_end_qb_mode_practice");{var __yy__v1587=GetWithArray(104);for(var __yy__v1588 in __yy__v1587){if(!__yy__v1587.hasOwnProperty(__yy__v1588))continue;var __yy__v1589=__yy__v1587[__yy__v1588];{__yy__v1589.gmlstate=1;__yy__v1589.gmlcomm_stage=30;
__yy__v1589.gmlcomm_txt="";var gmlxp=round(yyftime(__yy_gml_errCheck(__yy__v1589.gmlpractice_score_qb_mode),0.6));var gmlmsg=gml_Script_s_str(__yy__v1589,_inst,"msg_TrainingResult");if(yyfgreater(__yy__v1589.gmlpractice_score_qb_mode,yyInst(_inst,_other,97).gmlqb_training_hiscore)){{yyInst(_inst,_other,97).gmlqb_training_hiscore=__yy__v1589.gmlpractice_score_qb_mode;gmlmsg=gml_Script_s_str(__yy__v1589,_inst,"msg_TrainingResultBest");};};gmlmsg=string_replace(gmlmsg,"$num",string(__yy__v1589.gmlpractice_score_qb_mode));
gmlmsg=string_replace(gmlmsg,"$xp",string(gmlxp));gml_Script_s_create_message(__yy__v1589,_inst,"",gmlmsg,"",gml_Script_s_str(__yy__v1589,_inst,"ui_Continue"),"",kgml_Script_s_quit_qb_mode_practice,global.gmlc_background,0.7);var gmlqb=gml_Script_s_get_qb_pmap(__yy__v1589,_inst);ds_map_set(gmlqb,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"xp_gain")),__yy_gml_errCheck(gmlxp)));}}};}}function gml_Script_s_quit_qb_mode_practice(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_savegame(_inst,
_other);room_goto(22);}}function gml_GlobalScript_s_col_hex_to_r(_inst,_other,argument0){(_inst.gmls_col_hex_to_r=__yy_method(_inst,gml_Script_s_col_hex_to_r));}function gml_Script_s_col_hex_to_r(_inst,_other,argument0){{return yyfbitand(__yy_gml_errCheck(argument0),255);}}function gml_GlobalScript_s_col_hex_to_g(_inst,_other,argument0){(_inst.gmls_col_hex_to_g=__yy_method(_inst,gml_Script_s_col_hex_to_g));}function gml_Script_s_col_hex_to_g(_inst,_other,argument0){{return yyfbitand(__yy_gml_errCheck(yyfdiv(__yy_gml_errCheck(argument0),
256)),255);}}function gml_GlobalScript_s_col_hex_to_b(_inst,_other,argument0){(_inst.gmls_col_hex_to_b=__yy_method(_inst,gml_Script_s_col_hex_to_b));}function gml_Script_s_col_hex_to_b(_inst,_other,argument0){{return yyfdiv(__yy_gml_errCheck(argument0),65536);}}function gml_GlobalScript_s_hex_string_to_col(_inst,_other,argument0){(_inst.gmls_hex_string_to_col=__yy_method(_inst,gml_Script_s_hex_string_to_col));}function gml_Script_s_hex_string_to_col(_inst,_other,argument0){{var gmlinput=string(argument0);
var gmlresult=0;var gmlZERO=48;var gmlNINE=57;var gmlA=65;var gmlF=70;var gmli=1;for(;yyflessequal(gmli,string_length(gmlinput));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlc=ord(string_char_at(string_upper(gmlinput),gmli));gmlresult=yyfbitshiftleft(__yy_gml_errCheck(gmlresult),4);if((yyGetBool(yyfgreaterequal(gmlc,gmlZERO)))&&(yyGetBool(yyflessequal(gmlc,gmlNINE)))){{gmlresult=yyfplus(__yy_gml_errCheck(gmlresult),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlc),
__yy_gml_errCheck(gmlZERO))));};}else {if((yyGetBool(yyfgreaterequal(gmlc,gmlA)))&&(yyGetBool(yyflessequal(gmlc,gmlF)))){{gmlresult=yyfplus(__yy_gml_errCheck(gmlresult),__yy_gml_errCheck(yyfplus(yyfminus(__yy_gml_errCheck(gmlc),__yy_gml_errCheck(gmlA)),10)));};};};}};return gmlresult;}}function gml_GlobalScript_s_rgb_to_bgr(_inst,_other,argument0){(_inst.gmls_rgb_to_bgr=__yy_method(_inst,gml_Script_s_rgb_to_bgr));}function gml_Script_s_rgb_to_bgr(_inst,_other,argument0){{return yyfbitor(yyfbitor(__yy_gml_errCheck(yyfbitshiftleft(__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(argument0),
255)),16)),__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(argument0),65280))),__yy_gml_errCheck(yyfbitshiftright(__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(argument0),16711680)),16)));}}function gml_GlobalScript_s_set_up_globals(_inst,_other){(_inst.gmls_set_up_globals=__yy_method(_inst,gml_Script_s_set_up_globals));(_inst.gmls_set_up_temp_variables=__yy_method(_inst,gml_Script_s_set_up_temp_variables));}function gml_Script_s_set_up_globals(_inst,_other){{global.gmlurl_apple="https://apps.apple.com/us/app/retro-bowl/id1478902583";
global.gmlurl_google="https://play.google.com/store/apps/details?id=com.newstargames.retrobowl";global.gmlurl_twitter="https://twitter.com/retro_bowl";global.gmlurl_discord="https://t.co/39hMkwwqet";global.gmlurl_reddit="https://www.reddit.com/r/RetroBowl";global.gmlurl_record_book="https://www.reddit.com/r/RetroBowl/comments/qiinp5/retro_bowl_record_book_volume_v";global.gmlurl_leagues="https://retrobitcoach.com/?page_id=16";global.gmlurl_apple_retrogoal="https://apple.co/3CtmZdv";global.gmlurl_google_retrogoal="https://bit.ly/3Ey2KgC";
global.gmlurl_switch_us="https://bit.ly/3B1aqqb";global.gmlurl_apple_nss="https://apple.co/3pHBbMP";global.gmlurl_google_nss="https://bit.ly/3bfcQW9";global.gmlurl_apple_nsm="https://apple.co/3bgpRyI";global.gmlurl_google_nsm="https://bit.ly/3vQAAcL";global.gmlurl_apple_nsb="https://apple.co/3nyyUSs";global.gmlurl_google_nsb="https://bit.ly/3qXwsHD";global.gmlurl_merch_tshirts="https://pixelpigskin.threadless.com";global.gmlurl_heatley_bros="https://youtu.be/TdXFHKjJopI";global.gmlurl_jefe_zhai="https://www.youtube.com/playlist?list=PLvoVcbkHypzIj1_9aIh6w_B2sIPnS3t6A";
global.gmlIAP_Enabled=false;global.gmlmobile_device=(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),4)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),3)));global.gmlconsole_build=yyfequal(g_pBuiltIn.get_os_type(),21);global.gmlmaster_ball=(-4);global.gmlbrowser=true;if(yyfequal(g_pBuiltIn.get_os_browser(),(-1))){global.gmlbrowser=false;}else {global.gmlmobile_device=false;};global.gmlpoki=false;if(!yyGetBool(global.gmlbrowser)){global.gmlpoki=false;};global.gmlpoki_gameplay=false;global.gmlpoki_done_post_match_reward=false;
global.gmldebug=false;if((yyGetBool(!yyGetBool(global.gmlbrowser)))&&(yyGetBool((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))))){global.gmldebug=true;};;;;;;;;;;;;;;;;;;;;;;global.gmlg_version=43;global.gmlg_savedelay=0;global.gmlg_optionsave="optiondata.dat";global.gmlg_savename1="savedata.ini";global.gmlg_savename2="savedata2.ini";global.gmlg_savename3="savedata3.ini";global.gmlg_savename4="savedata4.ini";global.gmlg_savename5="savedata5.ini";
global.gmlg_savename_exh="savedata_exh.ini";global.gmlc_background=make_color_rgb(44,104,255);global.gmlc_primary=make_color_rgb(210,210,10);global.gmlc_buttons=make_color_rgb(210,210,10);global.gmlc_backfill=make_color_rgb(0,0,0);global.gmlc_routes=make_color_rgb(86,216,86);global.gmlc_routes_rb=make_color_rgb(116,164,255);global.gmlc_headcoach=make_color_rgb(57,180,74);global.gmlc_offense=make_color_rgb(92,200,255);global.gmlc_defense=make_color_rgb(255,64,64);global.gmlc_specialteams=make_color_rgb(228,
92,16);global.gmlc_toxic=make_color_rgb(60,200,120);global.gmlui_skin=0;if(yyGetBool(global.gmlpoki)){{var ___sw1250___=gml_Script_poki_get_team(_inst,_other);var ___swc1251___=-1;if(yyCompareVal(___sw1250___,"0",g_GMLMathEpsilon,false)==0){___swc1251___=0;}else if(yyCompareVal(___sw1250___,0,g_GMLMathEpsilon,false)==0){___swc1251___=1;}else if(yyCompareVal(___sw1250___,"1",g_GMLMathEpsilon,false)==0){___swc1251___=2;}else if(yyCompareVal(___sw1250___,1,g_GMLMathEpsilon,false)==0){___swc1251___=3;}else if(yyCompareVal(___sw1250___,
"2",g_GMLMathEpsilon,false)==0){___swc1251___=4;}else if(yyCompareVal(___sw1250___,2,g_GMLMathEpsilon,false)==0){___swc1251___=5;}switch(___swc1251___){case 0:{global.gmlui_skin=0;break;}case 1:{global.gmlui_skin=0;break;}case 2:{global.gmlui_skin=1;break;}case 3:{global.gmlui_skin=1;break;}case 4:{global.gmlui_skin=2;break;}case 5:{global.gmlui_skin=2;break;}};};};_inst.gmlname_conf1="AFC";_inst.gmlname_conf2="NFC";_inst.gmlname_div1="EAST";_inst.gmlname_div2="WEST";_inst.gmlname_div3="NORTH";_inst.gmlname_div4="SOUTH";
_inst.gmlname_div1b="EAST";_inst.gmlname_div2b="WEST";_inst.gmlname_div3b="NORTH";_inst.gmlname_div4b="SOUTH";global.gmlgamepad=false;global.gmlgp_slot=0;global.gmlaxisr_h=0;global.gmlaxisr_v=0;global.gmlaxisr_force=0;global.gmlaxisr_flick=false;global.gmlaxisl_h=0;global.gmlaxisl_v=0;global.gmlaxisl_force=0;global.gmlaxisl_flick=false;global.gmlui_selected=(-4);global.gmltriggerl=0;global.gmltriggerr=0;global.gmltrigger=0;global.gmlgp_select=32769;global.gmlgp_back=32770;if(yyfequal(g_pBuiltIn.get_os_type(),
21)){{global.gmlgp_select=32770;global.gmlgp_back=32769;};};global.gmlgp_handoff=global.gmlgp_back;global.gmlgp_timeout=32771;;;;;;;;;;;;;;;;;;;;;;;global.gmlcolorHelmet=shader_get_uniform(0,"colorHelmet");global.gmlcolorLogo=shader_get_uniform(0,"colorLogo");global.gmlcolorShirt=shader_get_uniform(0,"colorShirt");global.gmlcolorSleeve=shader_get_uniform(0,"colorSleeve");global.gmlcolorPants=shader_get_uniform(0,"colorPants");global.gmlcolorPants_b=shader_get_uniform(0,"colorPants_b");global.gmlcolorStripe=shader_get_uniform(0,
"colorStripe");global.gmlcolorSocks=shader_get_uniform(0,"colorSocks");global.gmlcolorSocks_b=shader_get_uniform(0,"colorSocks_b");global.gmlcolorSkin=shader_get_uniform(0,"colorSkin");global.gmlcolorCleats=shader_get_uniform(0,"colorCleats");global.gmlreplaceHelmet=shader_get_uniform(0,"replaceHelmet");global.gmlreplaceLogo=shader_get_uniform(0,"replaceLogo");global.gmlreplaceShirt=shader_get_uniform(0,"replaceShirt");global.gmlreplaceSleeve=shader_get_uniform(0,"replaceSleeve");global.gmlreplacePants=shader_get_uniform(0,
"replacePants");global.gmlreplacePants_b=shader_get_uniform(0,"replacePants_b");global.gmlreplaceStripe=shader_get_uniform(0,"replaceStripe");global.gmlreplaceSocks=shader_get_uniform(0,"replaceSocks");global.gmlreplaceSocks_b=shader_get_uniform(0,"replaceSocks_b");global.gmlreplaceSkin=shader_get_uniform(0,"replaceSkin");global.gmlreplaceCleats=shader_get_uniform(0,"replaceCleats");random_set_seed(g_pBuiltIn.get_current_time());global.gmlexhibition=false;global.gmlexh_fix=gml_Script_s_create_exhibition_fixture(_inst,
_other,irandom(15),yyfplus(16,__yy_gml_errCheck(irandom(15))));global.gmlexh_choosing=0;}}function gml_Script_s_set_up_temp_variables(_inst,_other){{_inst.gmlmyteam=ds_list_find_value(_inst.gmlteamlist,clamp(_inst.gmlmyteam_id,0,31));_inst.gmlmyconference=ds_map_find_value(_inst.gmlmyteam,"conference");_inst.gmlmydivision=ds_map_find_value(_inst.gmlmyteam,"division");_inst.gmllist_notifications=ds_list_create();_inst.gmlnewteam=(-4);_inst.gmljobofferdone=false;_inst.gmlgamepractice=0;_inst.gmlplayoff_proceed=false;
_inst.gmlplayerteamindex=0;_inst.gmlteam=__yy_gml_array_check(_inst.gmlteam,2482654026);_inst.gmlteam[__yy_gml_array_check_index_set(0)]=(-4);_inst.gmlteam[__yy_gml_array_check_index_set(1)]=(-4);_inst.gmltscore=__yy_gml_array_check(_inst.gmltscore,4090671517);_inst.gmltscore[__yy_gml_array_check_index_set(0)]=0;_inst.gmltscore[__yy_gml_array_check_index_set(1)]=0;_inst.gmlqtr_scores0=__yy_gml_array_check(_inst.gmlqtr_scores0,2728284677);_inst.gmlqtr_scores0[__yy_gml_array_check_index_set(4)]=0;
_inst.gmlqtr_scores1=__yy_gml_array_check(_inst.gmlqtr_scores1,3146081092);_inst.gmlqtr_scores1[__yy_gml_array_check_index_set(4)]=0;var gmli=0;for(;yyfless(gmli,4);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{_inst.gmlcol_helmet_home=__yy_gml_array_check(_inst.gmlcol_helmet_home,1564342938);_inst.gmlcol_helmet_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_logo_home=__yy_gml_array_check(_inst.gmlcol_logo_home,198660047);_inst.gmlcol_logo_home[__yy_gml_array_check_index_set(gmli)]=0;
_inst.gmlcol_shirt_home=__yy_gml_array_check(_inst.gmlcol_shirt_home,1594035715);_inst.gmlcol_shirt_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_sleeve_home=__yy_gml_array_check(_inst.gmlcol_sleeve_home,2318658025);_inst.gmlcol_sleeve_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_pants_home=__yy_gml_array_check(_inst.gmlcol_pants_home,2030698856);_inst.gmlcol_pants_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_pants_home_b=__yy_gml_array_check(_inst.gmlcol_pants_home_b,
3905126936);_inst.gmlcol_pants_home_b[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_stripe_home=__yy_gml_array_check(_inst.gmlcol_stripe_home,1732467324);_inst.gmlcol_stripe_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_socks1_home=__yy_gml_array_check(_inst.gmlcol_socks1_home,2965037331);_inst.gmlcol_socks1_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_socks2_home=__yy_gml_array_check(_inst.gmlcol_socks2_home,3341038563);_inst.gmlcol_socks2_home[__yy_gml_array_check_index_set(gmli)]=0;
_inst.gmlcol_endzone_home=__yy_gml_array_check(_inst.gmlcol_endzone_home,2427579399);_inst.gmlcol_endzone_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_helmet_away=__yy_gml_array_check(_inst.gmlcol_helmet_away,22447010);_inst.gmlcol_helmet_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_logo_away=__yy_gml_array_check(_inst.gmlcol_logo_away,1471952631);_inst.gmlcol_logo_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_shirt_away=__yy_gml_array_check(_inst.gmlcol_shirt_away,
57177915);_inst.gmlcol_shirt_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_sleeve_away=__yy_gml_array_check(_inst.gmlcol_sleeve_away,3596128465);_inst.gmlcol_sleeve_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_pants_away=__yy_gml_array_check(_inst.gmlcol_pants_away,627144784);_inst.gmlcol_pants_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_pants_away_b=__yy_gml_array_check(_inst.gmlcol_pants_away_b,1655221818);_inst.gmlcol_pants_away_b[__yy_gml_array_check_index_set(gmli)]=0;
_inst.gmlcol_stripe_away=__yy_gml_array_check(_inst.gmlcol_stripe_away,992486212);_inst.gmlcol_stripe_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_socks1_away=__yy_gml_array_check(_inst.gmlcol_socks1_away,3973158955);_inst.gmlcol_socks1_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_socks2_away=__yy_gml_array_check(_inst.gmlcol_socks2_away,2605664987);_inst.gmlcol_socks2_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_endzone_away=__yy_gml_array_check(_inst.gmlcol_endzone_away,
3436877119);_inst.gmlcol_endzone_away[__yy_gml_array_check_index_set(gmli)]=0;}};_inst.gmlboss_profile=(-4);_inst.gmlplayer_profile=(-4);_inst.gmlstaff_hire=(-4);_inst.gmlstat_view=1;_inst.gmlface_page=1;_inst.gmlface_type_coach=false;_inst.gmldraft_page=1;_inst.gmlhof_page=1;_inst.gmlfa_page=1;_inst.gmldodraftbanner=false;_inst.gmlfans_done_update=false;_inst.gmlboost_morale_done=false;_inst.gmlboost_condition_done=false;_inst.gmlboost_gpa_done=false;_inst.gmlroster_from_store=false;_inst.gmlforce_uniform_sel1=0;
_inst.gmlforce_uniform_sel2=0;_inst.gmledit_box1=(-4);_inst.gmledit_box2=(-4);_inst.gmlmap_dilemma=ds_map_create();_inst.gmlnews_dilemma="";_inst.gmlstore_to_dilemma=false;_inst.gmlticker_count=0;_inst.gmlstaff_reset_week=0;_inst.gmlfreeagent_reset_week=0;_inst.gmlfave_team_check=false;_inst.gmledit_team=(-4);_inst.gmledit_conf=0;_inst.gmlnag=0;_inst.gmlad_tick=0;_inst.gmlviewing_hof_players=false;_inst.gmlplayer_record_msg_done=false;_inst.gmlretrobowlwinner=0;_inst.gmlinterviews=10;_inst.gmldone_season_review=false;
_inst.gmlprematch_team_morale_qb=0;_inst.gmlshopping_type=0;_inst.gmlshopping_page=1;_inst.gmlshopping_item=0;_inst.gmlqb_new_offer=(-1);_inst.gmlsim_action=false;_inst.gmlprofile_back_to=(-1);gml_Script_s_college_set_up_globals(_inst,_other);}}function gml_GlobalScript_slog(_inst,_other,argument0){(_inst.gmlslog=__yy_method(_inst,gml_Script_slog));(_inst.gmlslog2=__yy_method(_inst,gml_Script_slog2));(_inst.gmlslogf=__yy_method(_inst,gml_Script_slogf));}function gml_Script_slog(_inst,_other,argument0){
{show_debug_message(string(argument0));return argument0;}}function gml_Script_slog2(_inst,_other,argument0){{argument0=yyfplus(argument0,"\n\n ---------- Stack:");var gmlcs=debug_get_callstack();var gmli=0;for(;yyfless(gmli,array_length_1d(gmlcs));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{argument0=yyfplus(argument0,yyfplus("\n",__yy_gml_errCheck(string(gmlcs[__yy_gml_array_check_index(gmli,gmlcs)]))));}};argument0=yyfplus(argument0,
"\n---------------------");gml_Script_slog(_inst,_other,argument0);}}function gml_Script_slogf(_inst,_other){{var $$args=Array.prototype.slice.call(arguments);{var gmlstr=$$args[__yy_gml_array_check_index(2+(0),$$args)];var gmli=yyfminus(__yy_gml_errCheck(($$args.length-2)),1);for(;yyfgreater(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){gmlstr=string_replace_all(gmlstr,yyfplus("%",__yy_gml_errCheck(string(gmli))),string($$args[__yy_gml_array_check_index(2+(gmli),
$$args)]))};show_debug_message(gmlstr);}}}function gml_GlobalScript_s_sound(_inst,_other){(_inst.gmls_sound=__yy_method(_inst,gml_Script_s_sound));}function gml_Script_s_sound(_inst,_other,argument0){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){return;};audio_play_sound(argument0,1,false);}}function gml_GlobalScript_s_make_random_colour(_inst,_other){(_inst.gmls_make_random_colour=__yy_method(_inst,gml_Script_s_make_random_colour));}function gml_Script_s_make_random_colour(_inst,
_other){{return make_color_rgb(irandom(255),irandom(255),irandom(255));}}function gml_GlobalScript_s_lines_intersect(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){(_inst.gmls_lines_intersect=__yy_method(_inst,gml_Script_s_lines_intersect));}function gml_Script_s_lines_intersect(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{var gmlAx=argument0;var gmlAy=argument1;var gmlBx=argument2;var gmlBy=argument3;var gmlCx=argument4;
var gmlCy=argument5;var gmlDx=argument6;var gmlDy=argument7;var gmlipoint=instance_create_layer(0,0,"Players",100);var gmlRn=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlAy),__yy_gml_errCheck(gmlCy))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlDx),__yy_gml_errCheck(gmlCx))))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlAx),__yy_gml_errCheck(gmlCx))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlDy),__yy_gml_errCheck(gmlCy))))));
var gmlRd=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBx),__yy_gml_errCheck(gmlAx))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlDy),__yy_gml_errCheck(gmlCy))))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBy),__yy_gml_errCheck(gmlAy))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlDx),__yy_gml_errCheck(gmlCx))))));if(yyfequal(gmlRd,0)){{yyInst(_inst,_other,gmlipoint).gmlintercept=false;};}else {{yyInst(_inst,_other,gmlipoint).gmlintercept=true;
var gmlSn=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlAy),__yy_gml_errCheck(gmlCy))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBx),__yy_gml_errCheck(gmlAx))))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlAx),__yy_gml_errCheck(gmlCx))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBy),__yy_gml_errCheck(gmlAy))))));yyInst(_inst,_other,gmlipoint).gmlintercept_AB=yyfdivide(__yy_gml_errCheck(gmlRn),__yy_gml_errCheck(gmlRd));yyInst(_inst,
_other,gmlipoint).gmlintercept_CD=yyfdivide(__yy_gml_errCheck(gmlSn),__yy_gml_errCheck(gmlRd));yyInst(_inst,_other,gmlipoint).gmlpx=yyfplus(__yy_gml_errCheck(gmlAx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlipoint).gmlintercept_AB),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBx),__yy_gml_errCheck(gmlAx))))));yyInst(_inst,_other,gmlipoint).gmlpy=yyfplus(__yy_gml_errCheck(gmlAy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlipoint).gmlintercept_AB),
__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBy),__yy_gml_errCheck(gmlAy))))));if(yyfgreater(yyInst(_inst,_other,gmlipoint).gmlintercept_AB,1)){yyInst(_inst,_other,gmlipoint).gmlintercept=false;};if(yyfless(yyInst(_inst,_other,gmlipoint).gmlintercept_AB,0)){yyInst(_inst,_other,gmlipoint).gmlintercept=false;};if(yyfgreater(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,1)){yyInst(_inst,_other,gmlipoint).gmlintercept=false;};if(yyfless(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0)){yyInst(_inst,
_other,gmlipoint).gmlintercept=false;};};};return gmlipoint;}}function gml_GlobalScript_s_log_player(_inst,_other,argument0){(_inst.gmls_log_player=__yy_method(_inst,gml_Script_s_log_player));}function gml_Script_s_log_player(_inst,_other,argument0){{var gmlmap=argument0;var gmlk=ds_map_find_first(gmlmap);var gmlmaptext="";while(!yyGetBool(is_undefined(gmlk))){{gmlmaptext=yyfplus(gmlmaptext,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlk),": "),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,gmlk)))),
"\n"));gmlk=ds_map_find_next(gmlmap,gmlk);}};gml_Script_slog(_inst,_other,gmlmaptext);}}function gml_GlobalScript_s_get_random_college_name(_inst,_other){(_inst.gmls_get_random_college_name=__yy_method(_inst,gml_Script_s_get_random_college_name));}function gml_Script_s_get_random_college_name(_inst,_other){{var gmlfile=file_text_open_read("Colleges.txt");var gmlnames;var gmlnum=0;while(!yyGetBool(file_text_eof(gmlfile))){{file_text_readln(gmlfile);var gmln=file_text_read_string(gmlfile);gmlnames=__yy_gml_array_check(gmlnames,
2926361285);gmlnames[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlnum,gmlnum=(g_yyPrePostObject__ instanceof Long?gmlnum.add(1):++gmlnum),g_yyPrePostObject__))]=gmln;}};file_text_close(gmlfile);return gmlnames[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(gmlnum),1)),gmlnames)];}}function gml_GlobalScript_s_get_random_charity(_inst,_other){(_inst.gmls_get_random_charity=__yy_method(_inst,gml_Script_s_get_random_charity));}function gml_Script_s_get_random_charity(_inst,_other){
{var gmlfile=file_text_open_read("Charities.txt");var gmlnames;var gmlnum=0;while(!yyGetBool(file_text_eof(gmlfile))){{file_text_readln(gmlfile);var gmln=file_text_read_string(gmlfile);gmlnames=__yy_gml_array_check(gmlnames,2926361285);gmlnames[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlnum,gmlnum=(g_yyPrePostObject__ instanceof Long?gmlnum.add(1):++gmlnum),g_yyPrePostObject__))]=gmln;}};file_text_close(gmlfile);return gmlnames[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(gmlnum),
1)),gmlnames)];}}function gml_GlobalScript_s_get_aim_direction(_inst,_other,argument0,argument1,argument2,argument3){(_inst.gmls_get_aim_direction=__yy_method(_inst,gml_Script_s_get_aim_direction));}function gml_Script_s_get_aim_direction(_inst,_other,argument0,argument1,argument2,argument3){{_inst.gmldir=arctan2(yyfminus(__yy_gml_errCheck(argument3),__yy_gml_errCheck(argument1)),yyfminus(__yy_gml_errCheck(argument2),__yy_gml_errCheck(argument0)));return _inst.gmldir;}}function gml_GlobalScript_s_get_random_first_name(_inst,
_other){(_inst.gmls_get_random_first_name=__yy_method(_inst,gml_Script_s_get_random_first_name));}function gml_Script_s_get_random_first_name(_inst,_other,argument0){{var gmlf="Names_F1.txt";if(!yyGetBool(argument0)){gmlf="Names_F0.txt";};var gmlfile=file_text_open_read(gmlf);var gmlnames;var gmlnum=0;while(!yyGetBool(file_text_eof(gmlfile))){{file_text_readln(gmlfile);var gmln=file_text_read_string(gmlfile);if(yyfless(string_length(gmln),8)){gmlnames=__yy_gml_array_check(gmlnames,2926361285);gmlnames[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlnum,
gmlnum=(g_yyPrePostObject__ instanceof Long?gmlnum.add(1):++gmlnum),g_yyPrePostObject__))]=gmln;};}};file_text_close(gmlfile);return gmlnames[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(gmlnum),1)),gmlnames)];}}function gml_GlobalScript_s_get_random_last_name(_inst,_other){(_inst.gmls_get_random_last_name=__yy_method(_inst,gml_Script_s_get_random_last_name));}function gml_Script_s_get_random_last_name(_inst,_other){{var gmlfile=file_text_open_read("Names_L.txt");var gmlnames;var gmlnum=0;
while(!yyGetBool(file_text_eof(gmlfile))){{file_text_readln(gmlfile);var gmln=file_text_read_string(gmlfile);if(yyfless(string_length(gmln),8)){gmlnames=__yy_gml_array_check(gmlnames,2926361285);gmlnames[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlnum,gmlnum=(g_yyPrePostObject__ instanceof Long?gmlnum.add(1):++gmlnum),g_yyPrePostObject__))]=gmln;};}};file_text_close(gmlfile);return gmlnames[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(gmlnum),1)),gmlnames)];}}function gml_GlobalScript_s_format_hex_color(_inst,
_other,argument0){(_inst.gmls_format_hex_color=__yy_method(_inst,gml_Script_s_format_hex_color));}function gml_Script_s_format_hex_color(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_format_hex_color");var gmlcol=argument0;gmlcol=string_lettersdigits(gmlcol);gmlcol=string_upper(gmlcol);gmlcol=string_replace_all(gmlcol,"G","0");gmlcol=string_replace_all(gmlcol,"H","0");gmlcol=string_replace_all(gmlcol,"I","0");gmlcol=string_replace_all(gmlcol,"J","0");gmlcol=string_replace_all(gmlcol,"K",
"0");gmlcol=string_replace_all(gmlcol,"L","0");gmlcol=string_replace_all(gmlcol,"M","0");gmlcol=string_replace_all(gmlcol,"N","0");gmlcol=string_replace_all(gmlcol,"O","0");gmlcol=string_replace_all(gmlcol,"P","0");gmlcol=string_replace_all(gmlcol,"Q","0");gmlcol=string_replace_all(gmlcol,"R","0");gmlcol=string_replace_all(gmlcol,"S","0");gmlcol=string_replace_all(gmlcol,"T","0");gmlcol=string_replace_all(gmlcol,"U","0");gmlcol=string_replace_all(gmlcol,"V","0");gmlcol=string_replace_all(gmlcol,
"W","0");gmlcol=string_replace_all(gmlcol,"X","0");gmlcol=string_replace_all(gmlcol,"Y","0");gmlcol=string_replace_all(gmlcol,"Z","0");while(yyfless(string_length(gmlcol),6)){gmlcol=yyfplus(__yy_gml_errCheck(gmlcol),"0")};if(yyfequal(gmlcol,"FF0000")){gmlcol="FA0000";};if(yyfequal(gmlcol,"00FF00")){gmlcol="00FA00";};if(yyfequal(gmlcol,"0000FF")){gmlcol="0000FA";};if(yyfequal(gmlcol,"FF00FF")){gmlcol="FA00FA";};if(yyfequal(gmlcol,"FFFF00")){gmlcol="FAFA00";};if(yyfequal(gmlcol,"800000")){gmlcol="850000";
};if(yyfequal(gmlcol,"008000")){gmlcol="008500";};if(yyfequal(gmlcol,"000080")){gmlcol="000085";};if(yyfequal(gmlcol,"8080FF")){gmlcol="8080FA";};if(yyfequal(gmlcol,"808080")){gmlcol="858080";};return yyfplus("$",__yy_gml_errCheck(gmlcol));}}function gml_GlobalScript_s_color_to_hex(_inst,_other,argument0){(_inst.gmls_color_to_hex=__yy_method(_inst,gml_Script_s_color_to_hex));}function gml_Script_s_color_to_hex(_inst,_other,argument0){{{var gmlcolor,gmldec;gmlcolor=argument0;gmldec=yyfbitor(yyfbitor(__yy_gml_errCheck(yyfbitshiftright(__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(gmlcolor),
16711680)),16)),__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(gmlcolor),65280))),__yy_gml_errCheck(yyfbitshiftleft(__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(gmlcolor),255)),16)));return gml_Script_s_dec_to_hex(_inst,_other,gmldec);};}}function gml_GlobalScript_s_gui_helpers(_inst,_other){(_inst.gmls_create_label=__yy_method(_inst,gml_Script_s_create_label));}function gml_Script_s_create_label(_inst,_other,argument0,argument1,argument2){{var gmllabel=instance_create_layer(argument0,argument1,"Instances",
74);yyInst(_inst,_other,gmllabel).gmltext=argument2;yyInst(_inst,_other,gmllabel).gmldraw_box=false;return gmllabel;}}function gml_GlobalScript_btn_click_SeasonReviewBack(_inst,_other){(_inst.gmlbtn_click_SeasonReviewBack=__yy_method(_inst,gml_Script_btn_click_SeasonReviewBack));}function gml_Script_btn_click_SeasonReviewBack(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmldone_season_review)){room_goto(14);}else {room_goto(16);};}}function gml_GlobalScript_s_dec_to_hex(_inst,_other,argument0){
(_inst.gmls_dec_to_hex=__yy_method(_inst,gml_Script_s_dec_to_hex));}function gml_Script_s_dec_to_hex(_inst,_other,argument0){{{var gmldec,gmlhex,gmlh,gmlbyte,gmlhi,gmllo;gmldec=argument0;if(yyGetBool(gmldec)){gmlhex="";}else {gmlhex="00";};gmlh="0123456789ABCDEF";while(yyGetBool(gmldec)){{gmlbyte=yyfbitand(__yy_gml_errCheck(gmldec),255);gmlhi=string_char_at(gmlh,yyfplus(__yy_gml_errCheck(yyfdiv(__yy_gml_errCheck(gmlbyte),16)),1));gmllo=string_char_at(gmlh,yyfplus(__yy_gml_errCheck(yyfmod(__yy_gml_errCheck(gmlbyte),
16)),1));gmlhex=yyfplus(yyfplus(__yy_gml_errCheck(gmlhi),__yy_gml_errCheck(gmllo)),__yy_gml_errCheck(gmlhex));gmldec=yyfbitshiftright(__yy_gml_errCheck(gmldec),8);}};return gmlhex;};}}function gml_GlobalScript_s_roman_numerals(_inst,_other,argument0){(_inst.gmls_roman_numerals=__yy_method(_inst,gml_Script_s_roman_numerals));}function gml_Script_s_roman_numerals(_inst,_other,argument0){{_inst.gmlvalues=__yy_gml_array_check(_inst.gmlvalues,2525599607);_inst.gmlvalues[__yy_gml_array_check_index_set(0)]=1000;
_inst.gmlvalues[__yy_gml_array_check_index_set(1)]=900;_inst.gmlvalues[__yy_gml_array_check_index_set(2)]=500;_inst.gmlvalues[__yy_gml_array_check_index_set(3)]=400;_inst.gmlvalues[__yy_gml_array_check_index_set(4)]=100;_inst.gmlvalues[__yy_gml_array_check_index_set(5)]=90;_inst.gmlvalues[__yy_gml_array_check_index_set(6)]=50;_inst.gmlvalues[__yy_gml_array_check_index_set(7)]=40;_inst.gmlvalues[__yy_gml_array_check_index_set(8)]=10;_inst.gmlvalues[__yy_gml_array_check_index_set(9)]=9;_inst.gmlvalues[__yy_gml_array_check_index_set(10)]=5;
_inst.gmlvalues[__yy_gml_array_check_index_set(11)]=4;_inst.gmlvalues[__yy_gml_array_check_index_set(12)]=1;_inst.gmlnumerals=__yy_gml_array_check(_inst.gmlnumerals,3862562094);_inst.gmlnumerals[__yy_gml_array_check_index_set(0)]="M";_inst.gmlnumerals[__yy_gml_array_check_index_set(1)]="CM";_inst.gmlnumerals[__yy_gml_array_check_index_set(2)]="D";_inst.gmlnumerals[__yy_gml_array_check_index_set(3)]="CD";_inst.gmlnumerals[__yy_gml_array_check_index_set(4)]="C";_inst.gmlnumerals[__yy_gml_array_check_index_set(5)]="XC";
_inst.gmlnumerals[__yy_gml_array_check_index_set(6)]="L";_inst.gmlnumerals[__yy_gml_array_check_index_set(7)]="XL";_inst.gmlnumerals[__yy_gml_array_check_index_set(8)]="X";_inst.gmlnumerals[__yy_gml_array_check_index_set(9)]="IX";_inst.gmlnumerals[__yy_gml_array_check_index_set(10)]="V";_inst.gmlnumerals[__yy_gml_array_check_index_set(11)]="IV";_inst.gmlnumerals[__yy_gml_array_check_index_set(12)]="I";var gmlnumber=argument0;if((yyGetBool(yyfless(gmlnumber,0)))||(yyGetBool(yyfgreater(gmlnumber,3999)))){
return "";};var gmlstr="";var gmli=0;for(;yyfless(gmli,13);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{while(yyfgreaterequal(gmlnumber,_inst.gmlvalues[__yy_gml_array_check_index(gmli,_inst.gmlvalues)])){{gmlnumber=yyfminus(gmlnumber,_inst.gmlvalues[__yy_gml_array_check_index(gmli,_inst.gmlvalues)]);gmlstr=yyfplus(gmlstr,_inst.gmlnumerals[__yy_gml_array_check_index(gmli,_inst.gmlnumerals)]);}};}};return gmlstr;}}function gml_GlobalScript_s_get_watermark_color(_inst,
_other){(_inst.gmls_get_watermark_color=__yy_method(_inst,gml_Script_s_get_watermark_color));}function gml_Script_s_get_watermark_color(_inst,_other){{{var __yy__v1590=GetWithArray(97);for(var __yy__v1591 in __yy__v1590){if(!__yy__v1590.hasOwnProperty(__yy__v1591))continue;var __yy__v1592=__yy__v1590[__yy__v1591];{random_set_seed(g_pBuiltIn.get_current_time());var gmlcol=make_color_rgb(random(255),random(255),random(255));var gmlcol_h=clamp(color_get_hue(gmlcol),0,255);var gmlcol_s=clamp(color_get_saturation(gmlcol),
0,255);var gmlcol_v=clamp(color_get_value(gmlcol),100,220);return make_color_hsv(gmlcol_h,gmlcol_s,gmlcol_v);}}};}}function gml_GlobalScript_s_generate_uid(_inst,_other,argument0,argument1){(_inst.gmls_generate_uid=__yy_method(_inst,gml_Script_s_generate_uid));}function gml_Script_s_generate_uid(_inst,_other,argument0,argument1){{random_set_seed(argument0);var gmlnums=argument1;var gmlr="";var gmli=0;for(;yyfless(gmli,gmlnums);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{if((yyGetBool(yyfgreater(gmli,0)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(gmli),4),0)))){gmlr=yyfplus(gmlr,"-");};gmlr=yyfplus(gmlr,choose("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"));}};random_set_seed(g_pBuiltIn.get_current_time());return gmlr;}}function gml_GlobalScript_gmcallback_poki_loadbar(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6){(_inst.gmlgmcallback_poki_loadbar=__yy_method(_inst,gml_Script_gmcallback_poki_loadbar));
}function gml_Script_gmcallback_poki_loadbar(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6){{gml_Script_slog(_inst,_other,"gmcallback_poki_loadbar");var gmlr;var gmlpc=argument1;var gmlpt=argument2;var gmlcw=argument3;var gmlch=argument4;var gmliw=argument5;var gmlih=argument6;var ___sw1254___=argument0;var ___swc1255___=-1;if(yyCompareVal(___sw1254___,"image_rect",g_GMLMathEpsilon,false)==0){___swc1255___=0;}else if(yyCompareVal(___sw1254___,"background_color",g_GMLMathEpsilon,
false)==0){___swc1255___=1;}else if(yyCompareVal(___sw1254___,"bar_background_color",g_GMLMathEpsilon,false)==0){___swc1255___=2;}else if(yyCompareVal(___sw1254___,"bar_foreground_color",g_GMLMathEpsilon,false)==0){___swc1255___=3;}else if(yyCompareVal(___sw1254___,"bar_border_color",g_GMLMathEpsilon,false)==0){___swc1255___=4;}else if(yyCompareVal(___sw1254___,"bar_width",g_GMLMathEpsilon,false)==0){___swc1255___=5;}else if(yyCompareVal(___sw1254___,"bar_height",g_GMLMathEpsilon,false)==0){___swc1255___=6;
}else if(yyCompareVal(___sw1254___,"bar_border_width",g_GMLMathEpsilon,false)==0){___swc1255___=7;}else if(yyCompareVal(___sw1254___,"bar_offset",g_GMLMathEpsilon,false)==0){___swc1255___=8;}switch(___swc1255___){case 0:{gmlr=__yy_gml_array_check(gmlr,2556479103);gmlr[__yy_gml_array_check_index_set(0)]=yyftime(yyfmod(__yy_gml_errCheck(yyfdiv(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),500)),4),__yy_gml_errCheck(yyfdiv(__yy_gml_errCheck(gmliw),4)));gmlr[__yy_gml_array_check_index_set(1)]=0;gmlr[__yy_gml_array_check_index_set(2)]=0;
gmlr[__yy_gml_array_check_index_set(3)]=0;return gmlr;}case 1:{return "#000000";}case 2:{return "#000000";}case 3:{return "#D2D20A";}case 4:{return "#2C68FF";}case 5:{return round(yyftime(__yy_gml_errCheck(gmlcw),0.6));}case 6:{return 20;}case 7:{return 2;}case 8:{return 0;}};return undefined;}}function gml_GlobalScript_poki_pause(_inst,_other){(_inst.gmlpoki_pause=__yy_method(_inst,gml_Script_poki_pause));}function gml_Script_poki_pause(_inst,_other){{gml_Script_slog(_inst,_other,"poki_pause");audio_master_gain(0);
}}function gml_GlobalScript_s_set_up_qb_pmap(_inst,_other){(_inst.gmls_set_up_qb_pmap=__yy_method(_inst,gml_Script_s_set_up_qb_pmap));}function gml_Script_s_set_up_qb_pmap(_inst,_other){{{var __yy__v1593=GetWithArray(97);for(var __yy__v1594 in __yy__v1593){if(!__yy__v1593.hasOwnProperty(__yy__v1594))continue;var __yy__v1595=__yy__v1593[__yy__v1594];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1595.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){
{var gmlpmap=ds_list_find_value(__yy__v1595.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{ds_map_set(gmlpmap,"fname",__yy__v1595.gmlfname);ds_map_set(gmlpmap,"lname",__yy__v1595.gmllname);ds_map_set(gmlpmap,"age",21);ds_map_set(gmlpmap,"skill",1);ds_map_set(gmlpmap,"speed",1);ds_map_set(gmlpmap,"strength",1);ds_map_set(gmlpmap,"stamina",1);ds_map_set(gmlpmap,"max_skill",10);ds_map_set(gmlpmap,"max_speed",10);ds_map_set(gmlpmap,"max_strength",10);ds_map_set(gmlpmap,"max_stamina",
10);ds_map_set(gmlpmap,"contract",2);ds_map_set(gmlpmap,"attitude",50);ds_map_set(gmlpmap,"salary",gml_Script_s_get_new_salary(__yy__v1595,_inst,gmlpmap));ds_map_set(gmlpmap,"xp",0);ds_map_set(gmlpmap,"xp_level",1);ds_map_set(gmlpmap,"condition",100);ds_map_set(gmlpmap,"skin",__yy__v1595.gmlmy_skin);ds_map_set(gmlpmap,"face_x",__yy__v1595.gmlmyface_x);ds_map_set(gmlpmap,"face_y",__yy__v1595.gmlmyface_y);return;};};}};}}};}}function gml_GlobalScript_poki_resume(_inst,_other){(_inst.gmlpoki_resume=__yy_method(_inst,
gml_Script_poki_resume));}function gml_Script_poki_resume(_inst,_other,argument0,argument1){{audio_master_gain(1);}}// /// @function scale_canvas(base width, base height, current width, current height, center);
// /// @param {int} base width The base width for the game room
// /// @param {int} base height The base height for the game room
// /// @param {int} current width The current width of the game canvas
// /// @param {int} current height The current height of the game canvas
// /// @param {bool} center Set whether to center the game window on the canvas or not
function gml_GlobalScript_scale_canvas(_inst,
_other){(_inst.gmlscale_canvas=__yy_method(_inst,gml_Script_scale_canvas));}function gml_Script_scale_canvas(_inst,_other,argument0,argument1,argument2,argument3,argument4){{var gml_aspect=yyfdivide(__yy_gml_errCheck(argument0),__yy_gml_errCheck(argument1));if(yyfgreater(yyfdivide(__yy_gml_errCheck(argument2),__yy_gml_errCheck(gml_aspect)),argument3)){{var gmlvh=floor(yyftime(__yy_gml_errCheck(argument3),__yy_gml_errCheck(gml_aspect)));if(yyGetBool(yyfbitand(__yy_gml_errCheck(gmlvh),1))){(g_yyPrePostObject__=gmlvh,
gmlvh=(g_yyPrePostObject__ instanceof Long?gmlvh.add(1):++gmlvh),g_yyPrePostObject__);};window_set_size(gmlvh,argument3);};}else {{var gmlvw=floor(yyfdivide(__yy_gml_errCheck(argument2),__yy_gml_errCheck(gml_aspect)));if(yyGetBool(yyfbitand(__yy_gml_errCheck(gmlvw),1))){(g_yyPrePostObject__=gmlvw,gmlvw=(g_yyPrePostObject__ instanceof Long?gmlvw.add(1):++gmlvw),g_yyPrePostObject__);};window_set_size(argument2,gmlvw);};};if(yyGetBool(argument4)){window_center();};surface_resize(g_pBuiltIn.application_surface,
min(window_get_width(),argument0),min(window_get_height(),argument1));}}function gml_GlobalScript_s_update_camera(_inst,_other){(_inst.gmls_update_camera=__yy_method(_inst,gml_Script_s_update_camera));}function gml_Script_s_update_camera(_inst,_other){{var gmldes_zoom=0.6;{var __yy__v1596=GetWithArray(global.gmlmaster_ball);for(var __yy__v1597 in __yy__v1596){if(!__yy__v1596.hasOwnProperty(__yy__v1597))continue;var __yy__v1598=__yy__v1596[__yy__v1597];{if((yyGetBool(__yy__v1598.gmlholder))&&(yyGetBool(gml_Script_s_aiming(__yy__v1598,
_inst)))){{var gmldist=gml_Script_s_get_distance_to_furthest_teammate(__yy__v1598,_inst,__yy__v1598.gmlholder);gmldes_zoom=clamp(yyftime(__yy_gml_errCheck(gmldist),0.003),0.7,1);};};}}};var ___sw1264___=_inst.gmlstate;var ___swc1265___=-1;if(yyCompareVal(___sw1264___,1,g_GMLMathEpsilon,false)==0){___swc1265___=0;}switch(___swc1265___){case 0:{if(yyfnotequal(_inst.gmlcomm_stage,14)){{_inst.gmlbzoom=lerp(_inst.gmlbzoom,1,0.05);break;};};}default :{_inst.gmlbzoom=lerp(_inst.gmlbzoom,gmldes_zoom,0.025);if(yyGetBool(_inst.gmlkicking)){
_inst.gmlbzoom=1;};break;}};var ___sw1266___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_zoom");var ___swc1267___=-1;if(yyCompareVal(___sw1266___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1266___,"false",g_GMLMathEpsilon,false)==0){___swc1267___=0;}switch(___swc1267___){case 0:{_inst.gmlbzoom=1;break;}};camera_set_view_size(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],yyftime(960,__yy_gml_errCheck(_inst.gmlbzoom)),yyftime(540,__yy_gml_errCheck(_inst.gmlbzoom)));
var gmlcam_w=camera_get_view_width(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gmlcam_h=camera_get_view_height(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gmlcam_trackx=yyftime(__yy_gml_errCheck(gmlcam_w),0.5);var gmlcam_tracky=yyftime(__yy_gml_errCheck(gmlcam_h),0.5);var gmlcx=1300;var gmlcy=300;var gmllrp=0.05;var gmlball=global.gmlmaster_ball;if(yyGetBool(instance_exists(gmlball))){{gmlcx=yyInst(_inst,_other,gmlball).x;gmlcy=yyfplus(300,
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).y),300)),0.5)));if(yyGetBool(gml_Script_s_aiming(_inst,_other))){gmlcy=300;};if(yyGetBool(instance_exists(yyInst(_inst,_other,gmlball).gmlholder))){gmlcx=yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x;};gmlcam_trackx=yyftime(__yy_gml_errCheck(gmlcam_w),__yy_gml_errCheck(yyfminus(0.5,__yy_gml_errCheck(yyftime(0.15,__yy_gml_errCheck(_inst.gmldrivedir))))));if(yyGetBool(_inst.gmlkicking)){
gmlcam_trackx=yyftime(__yy_gml_errCheck(gmlcam_w),__yy_gml_errCheck(yyfminus(0.5,__yy_gml_errCheck(yyftime(0.25,__yy_gml_errCheck(_inst.gmldrivedir))))));};};}else {{gmlcy=0;gmllrp=0.025;var ___sw1268___=_inst.gmldrivedir;var ___swc1269___=-1;if(yyCompareVal(___sw1268___,(-1),g_GMLMathEpsilon,false)==0){___swc1269___=0;}else if(yyCompareVal(___sw1268___,1,g_GMLMathEpsilon,false)==0){___swc1269___=1;}switch(___swc1269___){case 0:{if(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)){gmlcx=yyfminus(gmlcx,
yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20));}else {gmlcx=yyfplus(gmlcx,yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20));};break;}case 1:{if(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)){gmlcx=yyfplus(gmlcx,yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20));}else {gmlcx=yyfminus(gmlcx,yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20));};break;}};var ___sw1270___=_inst.gmlcomm_stage;var ___swc1271___=-1;if(yyCompareVal(___sw1270___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1270___,
13,g_GMLMathEpsilon,false)==0){___swc1271___=0;}else if(yyCompareVal(___sw1270___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1270___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1270___,17,g_GMLMathEpsilon,false)==0){___swc1271___=1;}switch(___swc1271___){case 0:{if((yyGetBool(yyfnotequal(_inst.gmlquarter,3)))&&(yyGetBool(yyfnotequal(_inst.gmlquarter,5)))){break;};}case 1:{gmllrp=0.25;gmlcx=1300;break;}default :{break;}};};};gmlcy=yyfminus(gmlcy,10);var gmlnewpos_x=lerp(camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,
g_pBuiltIn.view_camera)]),yyfminus(__yy_gml_errCheck(gmlcx),__yy_gml_errCheck(gmlcam_trackx)),yyftime(__yy_gml_errCheck(gmllrp),0.5));var gmlnewpos_y=lerp(camera_get_view_y(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]),yyfminus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlcam_tracky)),yyftime(__yy_gml_errCheck(gmllrp),0.5));gmlnewpos_x=clamp(gmlnewpos_x,0,yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_width),__yy_gml_errCheck(gmlcam_w)));gmlnewpos_y=clamp(gmlnewpos_y,
0,yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_height),__yy_gml_errCheck(gmlcam_h)));camera_set_view_pos(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],gmlnewpos_x,gmlnewpos_y);}}function gml_GlobalScript__poki_gameplay_start(_inst,_other){(_inst.gml_poki_gameplay_start=__yy_method(_inst,gml_Script__poki_gameplay_start));}function gml_Script__poki_gameplay_start(_inst,_other){{gml_Script_slog(_inst,_other,"_poki_gameplay_start");poki_gameplay_start();}}function gml_GlobalScript__poki_gameplay_stop(_inst,
_other){(_inst.gml_poki_gameplay_stop=__yy_method(_inst,gml_Script__poki_gameplay_stop));}function gml_Script__poki_gameplay_stop(_inst,_other){{gml_Script_slog(_inst,_other,"_poki_gameplay_stop");poki_gameplay_stop();}}function gml_GlobalScript_s_find_gamepad(_inst,_other){(_inst.gmls_find_gamepad=__yy_method(_inst,gml_Script_s_find_gamepad));(_inst.gmls_gamepad_is_fingerprint_sensor=__yy_method(_inst,gml_Script_s_gamepad_is_fingerprint_sensor));}function gml_Script_s_find_gamepad(_inst,_other){{if(!yyGetBool(global.gmlbrowser)){
{var gmli=0;for(;yyfless(gmli,gamepad_get_device_count());(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyGetBool(gamepad_is_connected(gmli))){{if(yyGetBool(gml_Script_s_gamepad_is_fingerprint_sensor(_inst,_other,gmli))){return;};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gamepad_get_description(gmli))," connected ("),__yy_gml_errCheck(string(gmli))),")"));global.gmlgamepad=true;global.gmlgp_slot=gmli;{var __yy__v1599=GetWithArray(104);
for(var __yy__v1600 in __yy__v1599){if(!__yy__v1599.hasOwnProperty(__yy__v1600))continue;var __yy__v1601=__yy__v1599[__yy__v1600];__yy__v1601.gmlcontrol_alpha=5;}};gml_Script_s_update_gamepad(_inst,_other);return;};};}};};};}}function gml_Script_s_gamepad_is_fingerprint_sensor(_inst,_other,argument0){{var gmlstr=gamepad_get_description(argument0);if((yyGetBool(string_count("uinput-fpc",gmlstr)))||(yyGetBool(string_count("uinput-goodix",gmlstr)))){{gml_Script_slog(_inst,_other,"Ignoring fingerprint sensor");
return true;};};return false;}}function gml_GlobalScript_s_update_gamepad(_inst,_other){(_inst.gmls_update_gamepad=__yy_method(_inst,gml_Script_s_update_gamepad));(_inst.gmls_gamepad_activity=__yy_method(_inst,gml_Script_s_gamepad_activity));(_inst.gmls_clear_last_selected_history=__yy_method(_inst,gml_Script_s_clear_last_selected_history));(_inst.gmls_overwrite_last_selected=__yy_method(_inst,gml_Script_s_overwrite_last_selected));(_inst.gmls_save_last_selected=__yy_method(_inst,gml_Script_s_save_last_selected));
(_inst.gmls_get_last_selected=__yy_method(_inst,gml_Script_s_get_last_selected));}function gml_Script_s_update_gamepad(_inst,_other){{if(yyGetBool(global.gmlbrowser)){{global.gmlgamepad=false;return;};};var gmlpad=gml_Script_s_gamepad_activity(_inst,_other);if((yyGetBool(yyfgreaterequal(gmlpad,0)))&&(yyGetBool(yyfnotequal(gmlpad,global.gmlgp_slot)))){global.gmlgp_slot=gmlpad;};var ___sw1276___=global.gmlgamepad;var ___swc1277___=-1;if(yyCompareVal(___sw1276___,false,g_GMLMathEpsilon,false)==0){___swc1277___=0;
}else if(yyCompareVal(___sw1276___,true,g_GMLMathEpsilon,false)==0){___swc1277___=1;}switch(___swc1277___){case 0:{global.gmlaxisr_h=0;global.gmlaxisr_v=0;global.gmlaxisr_force=0;global.gmlaxisl_h=0;global.gmlaxisl_v=0;global.gmlaxisl_force=0;global.gmlui_selected=(-4);global.gmltrigger=0;global.gmlgamepad_anybutton=0;if(yyfgreaterequal(gmlpad,0)){global.gmlgamepad=true;};break;}case 1:{global.gmlaxisr_h=gamepad_axis_value(global.gmlgp_slot,32787);global.gmlaxisr_v=gamepad_axis_value(global.gmlgp_slot,
32788);global.gmlaxisr_force=max(abs(global.gmlaxisr_h),abs(global.gmlaxisr_v));if(yyfless(global.gmlaxisr_force,0.2)){global.gmlaxisr_flick=false;};global.gmlaxisl_h=gamepad_axis_value(global.gmlgp_slot,32785);global.gmlaxisl_v=gamepad_axis_value(global.gmlgp_slot,32786);if(yyGetBool(gamepad_button_check(global.gmlgp_slot,32783))){global.gmlaxisl_h=(-1);};if(yyGetBool(gamepad_button_check(global.gmlgp_slot,32784))){global.gmlaxisl_h=1;};if(yyGetBool(gamepad_button_check(global.gmlgp_slot,32781))){
global.gmlaxisl_v=(-1);};if(yyGetBool(gamepad_button_check(global.gmlgp_slot,32782))){global.gmlaxisl_v=1;};global.gmlaxisl_force=max(abs(global.gmlaxisl_h),abs(global.gmlaxisl_v));if(yyfless(global.gmlaxisl_force,0.2)){global.gmlaxisl_flick=false;};global.gmltriggerl=0;global.gmltriggerr=0;if((yyGetBool(gamepad_button_check(global.gmlgp_slot,32773)))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,32775)))){global.gmltriggerl=1;};if((yyGetBool(gamepad_button_check(global.gmlgp_slot,32774)))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,
32776)))){global.gmltriggerr=1;};global.gmltrigger=(yyGetBool(global.gmltriggerl))||(yyGetBool(global.gmltriggerr));global.gmlgamepad_anybutton=(yyGetBool(global.gmltrigger))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_back)))||(yyGetBool(gamepad_button_check_released(0,32771)))||(yyGetBool(gamepad_button_check_released(0,32772)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
32778)));if((yyGetBool(mouse_check_button(1)))||(yyGetBool(mouse_check_button(2)))){global.gmlgamepad=false;};break;}};var ___sw1278___=global.gmlgamepad;var ___swc1279___=-1;if(yyCompareVal(___sw1278___,false,g_GMLMathEpsilon,false)==0){___swc1279___=0;}else if(yyCompareVal(___sw1278___,true,g_GMLMathEpsilon,false)==0){___swc1279___=1;}switch(___swc1279___){case 0:{global.gmlui_selected=(-4);break;}case 1:{if(!yyGetBool(instance_exists(global.gmlui_selected))){global.gmlui_selected=(-4);};{var __yy__v1602=GetWithArray(global.gmlui_selected);
for(var __yy__v1603 in __yy__v1602){if(!__yy__v1602.hasOwnProperty(__yy__v1603))continue;var __yy__v1604=__yy__v1602[__yy__v1603];{if(!yyGetBool(__yy__v1604.visible)){global.gmlui_selected=(-4);}else {if((yyGetBool(__yy__v1604.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1604.layer))))){global.gmlui_selected=(-4);}else {if((yyGetBool(variable_instance_exists(__yy__v1604.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1604.gmlactive)))){global.gmlui_selected=(-4);};};};}}};{var __yy__v1605=GetWithArray(global.gmlui_selected);
for(var __yy__v1606 in __yy__v1605){if(!__yy__v1605.hasOwnProperty(__yy__v1606))continue;var __yy__v1607=__yy__v1605[__yy__v1606];{{var __yy__v1608=GetWithArray(78);for(var __yy__v1609 in __yy__v1608){if(!__yy__v1608.hasOwnProperty(__yy__v1609))continue;var __yy__v1610=__yy__v1608[__yy__v1609];if(yyfless(__yy__v1610.depth,__yy__v1607.depth)){global.gmlui_selected=(-4);};}};}}};if(yyfequal(global.gmlui_selected,(-4))){gml_Script_s_find_default_button(_inst,_other,false);};if((yyGetBool(yyfequal(global.gmlaxisl_flick,
false)))&&(yyGetBool(yyfgreater(global.gmlaxisl_force,0.9)))){{if((yyGetBool(!yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_select))))&&(yyGetBool(!yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_back))))&&(yyGetBool(!yyGetBool(gamepad_button_check(0,32771))))&&(yyGetBool(!yyGetBool(gamepad_button_check(0,32772))))){{global.gmlaxisl_flick=true;var gmlclosest_obj=(-4);var gmlclosest_dist=(-1);var gmlkb_alt_obj=(-4);var gmlkb_alt_dist=(-1);{var __yy__v1611=GetWithArray(global.gmlui_selected);
for(var __yy__v1612 in __yy__v1611){if(!__yy__v1611.hasOwnProperty(__yy__v1612))continue;var __yy__v1613=__yy__v1611[__yy__v1612];{{var __yy__v1614=GetWithArray(33);for(var __yy__v1615 in __yy__v1614){if(!__yy__v1614.hasOwnProperty(__yy__v1615))continue;var __yy__v1616=__yy__v1614[__yy__v1615];{if(!yyGetBool(__yy__v1616.visible)){continue;};if((yyGetBool(__yy__v1616.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1616.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1616.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1616.gmlactive)))){
continue;};if(yyfequal(__yy__v1616.id,global.gmlui_selected)){continue;};if((yyGetBool(instance_exists(78)))&&(yyGetBool(yyfgreater(__yy__v1616.depth,yyInst(_inst,_other,78).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1616.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1616.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1616.gmlgp_active_editing)))){continue;};var gmlsx=0;var gmlsy=0;
if(yyfless(global.gmlaxisl_h,(-0.5))){gmlsx=(-1);};if(yyfgreater(global.gmlaxisl_h,0.5)){gmlsx=1;};if(yyfless(global.gmlaxisl_v,(-0.5))){gmlsy=(-1);};if(yyfgreater(global.gmlaxisl_v,0.5)){gmlsy=1;};var gmlxdist=abs(yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1616.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1616.sprite_width),0.5)))),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1613.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1613.sprite_width),0.5))))));var gmlydist=abs(yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1616.y),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1616.sprite_height),0.5)))),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1613.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1613.sprite_height),0.5))))));if((yyGetBool((yyGetBool(yyfless(gmlsx,0)))&&(yyGetBool(yyfless(__yy__v1616.x,__yy__v1613.x)))))||(yyGetBool((yyGetBool(yyfgreater(gmlsx,0)))&&(yyGetBool(yyfgreater(__yy__v1616.x,__yy__v1613.x)))))){{if(!yyGetBool((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(yyfnotequal(gmlydist,
0))))){{var gmldist=yyfplus(__yy_gml_errCheck(gmlxdist),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlydist),5)));if((yyGetBool(yyfequal(gmlclosest_dist,(-1))))||(yyGetBool(yyfless(gmldist,gmlclosest_dist)))){{gmlclosest_dist=gmldist;gmlclosest_obj=__yy__v1616.id;};};};};};}else {if((yyGetBool((yyGetBool(yyfless(gmlsy,0)))&&(yyGetBool(yyfless(__yy__v1616.y,__yy__v1613.y)))))||(yyGetBool((yyGetBool(yyfgreater(gmlsy,0)))&&(yyGetBool(yyfgreater(__yy__v1616.y,__yy__v1613.y)))))){{gmlxdist=yyfdivide(gmlxdist,
yyfdivide(__yy_gml_errCheck(__yy__v1616.sprite_width),__yy_gml_errCheck(__yy__v1613.sprite_width)));var gmldist=yyfplus(__yy_gml_errCheck(gmlxdist),__yy_gml_errCheck(gmlydist));if((yyGetBool(yyfequal(gmlclosest_dist,(-1))))||(yyGetBool(yyfless(gmldist,gmlclosest_dist)))){{gmlclosest_dist=gmldist;gmlclosest_obj=__yy__v1616.id;};};};};};if(yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive)){{if(yyfnotequal(gmlsx,0)){{var gmldist=yyfplus(__yy_gml_errCheck(abs(yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1616.x),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1616.sprite_width),0.5)))),__yy_gml_errCheck(yyfminus(yyfminus(yyfplus(__yy_gml_errCheck(__yy__v1613.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1613.sprite_width),0.5))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,global.gmlcustkb).gmlbase).sprite_width)))),16))))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlydist),5)));if((yyGetBool(yyfequal(gmlkb_alt_dist,(-1))))||(yyGetBool(yyfless(gmldist,
gmlkb_alt_dist)))){{gmlkb_alt_dist=gmldist;gmlkb_alt_obj=__yy__v1616.id;};};};}else {if(yyfnotequal(gmlsy,0)){{var gmldist=yyfplus(__yy_gml_errCheck(abs(yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1616.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1616.sprite_height),0.5)))),__yy_gml_errCheck(yyfminus(yyfminus(yyfplus(__yy_gml_errCheck(__yy__v1613.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1613.sprite_height),0.5))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlsy),
__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,global.gmlcustkb).gmlbase).sprite_height)))),16))))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlxdist),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(__yy__v1616.sprite_width),__yy_gml_errCheck(__yy__v1613.sprite_width))))));if((yyGetBool(yyfequal(gmlkb_alt_dist,(-1))))||(yyGetBool(yyfless(gmldist,gmlkb_alt_dist)))){{gmlkb_alt_dist=gmldist;gmlkb_alt_obj=__yy__v1616.id;};};};};};};};}}};}}};if(yyGetBool(gmlclosest_obj)){global.gmlui_selected=gmlclosest_obj;
};if((yyGetBool(yyfequal(gmlclosest_obj,(-4))))&&(yyGetBool(yyfnotequal(gmlkb_alt_obj,(-4))))){global.gmlui_selected=gmlkb_alt_obj;};};};};};break;}};}}function gml_Script_s_gamepad_activity(_inst,_other){{var gml_slot;var gmli=0;for(;yyfless(gmli,gamepad_get_device_count());(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyGetBool(gamepad_is_connected(gmli))){{gml_slot=gmli;if(yyfgreater(yyfplus(__yy_gml_errCheck(gamepad_axis_value(gml_slot,
32785)),__yy_gml_errCheck(gamepad_axis_value(gml_slot,32786))),0.2)){return gml_slot;}else {if(yyfgreater(yyfplus(__yy_gml_errCheck(gamepad_axis_value(gml_slot,32787)),__yy_gml_errCheck(gamepad_axis_value(gml_slot,32788))),0.2)){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check(gml_slot,global.gmlgp_back)))||(yyGetBool(gamepad_button_check(gml_slot,32771)))||(yyGetBool(gamepad_button_check(gml_slot,32772)))){return gml_slot;}else {
if((yyGetBool(gamepad_button_check(gml_slot,32783)))||(yyGetBool(gamepad_button_check(gml_slot,32784)))||(yyGetBool(gamepad_button_check(gml_slot,32781)))||(yyGetBool(gamepad_button_check(gml_slot,32782)))){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,32773)))||(yyGetBool(gamepad_button_check(gml_slot,32775)))){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,32774)))||(yyGetBool(gamepad_button_check(gml_slot,32776)))){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,
32777)))||(yyGetBool(gamepad_button_check(gml_slot,32778)))){return gml_slot;};};};};};};};};};}};return(-1);}}function gml_Script_s_clear_last_selected_history(_inst,_other){{}}function gml_Script_s_overwrite_last_selected(_inst,_other){{gml_Script_s_get_last_selected(_inst,_other,g_pBuiltIn.get_current_room());gml_Script_s_save_last_selected(_inst,_other);}}function gml_Script____struct___28_s_save_last_selected_gml_GlobalScript_s_update_gamepad(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___28_s_save_last_selected_gml_GlobalScript_s_update_gamepad";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___28_s_save_last_selected_gml_GlobalScript_s_update_gamepad.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlrm=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlls=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_save_last_selected(_inst,_other){{if(yyfequal(_inst.object_index,26)){return;};var gmlls=__yy_gml_object_create(_inst,(_inst.gml___struct___28=__yy_method(_inst,
gml_Script____struct___28_s_save_last_selected_gml_GlobalScript_s_update_gamepad)),g_pBuiltIn.get_current_room(),_inst.id);ds_list_add(global.gmllsh,gmlls);}}function gml_Script_s_get_last_selected(_inst,_other,argument0){{var gmlls,gmllsid;var gmli=0;for(;yyfless(gmli,ds_list_size(global.gmllsh));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlls=ds_list_find_value(global.gmllsh,gmli);if(yyfequal(yyInst(_inst,_other,gmlls).gmlrm,argument0)){
{gmllsid=yyInst(_inst,_other,gmlls).gmlls;ds_list_delete(global.gmllsh,gmli);return gmllsid;};};}};return(-1);}}function gml_GlobalScript_s_find_default_button(_inst,_other){(_inst.gmls_find_default_button=__yy_method(_inst,gml_Script_s_find_default_button));}function gml_Script_s_find_default_button(_inst,_other,argument0){{if(!yyGetBool(global.gmlgamepad)){return;};if(yyGetBool(argument0)){global.gmlui_selected=(-4);};if((yyGetBool(yyfnotequal(g_pBuiltIn.get_current_room(),2)))&&(yyGetBool((yyGetBool(yyInst(_inst,
_other,97).gmlintro))||(yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),0)))))){{{var __yy__v1617=GetWithArray(34);for(var __yy__v1618 in __yy__v1617){if(!__yy__v1617.hasOwnProperty(__yy__v1618))continue;var __yy__v1619=__yy__v1617[__yy__v1618];{if(!yyGetBool(__yy__v1619.visible)){continue;};if((yyGetBool(__yy__v1619.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1619.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1619.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1619.gmlactive)))){
continue;};if((yyGetBool(instance_exists(78)))&&(yyGetBool(yyfgreater(__yy__v1619.depth,yyInst(_inst,_other,78).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1619.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1619.gmlgp_mapped_button,(-1))))){continue;};var gmlsname=script_get_name(__yy__v1619.gmlonClickAction);if(yyGetBool(__yy__v1619.gmlflash)){{global.gmlui_selected=__yy__v1619.id;return;};}else {{var ___sw1284___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,
"saveslot");var ___swc1285___=-1;if(yyCompareVal(___sw1284___,2,g_GMLMathEpsilon,false)==0){___swc1285___=1;}else if(yyCompareVal(___sw1284___,3,g_GMLMathEpsilon,false)==0){___swc1285___=2;}else if(yyCompareVal(___sw1284___,4,g_GMLMathEpsilon,false)==0){___swc1285___=3;}else if(yyCompareVal(___sw1284___,5,g_GMLMathEpsilon,false)==0){___swc1285___=4;}switch(___swc1285___){default :{if(yyGetBool(string_count("_LoadSlot1",gmlsname))){{global.gmlui_selected=__yy__v1619.id;return;};};break;}case 1:{if(yyGetBool(string_count("_LoadSlot2",
gmlsname))){{global.gmlui_selected=__yy__v1619.id;return;};};break;}case 2:{if(yyGetBool(string_count("_LoadSlot3",gmlsname))){{global.gmlui_selected=__yy__v1619.id;return;};};break;}case 3:{if(yyGetBool(string_count("_LoadSlot4",gmlsname))){{global.gmlui_selected=__yy__v1619.id;return;};};break;}case 4:{if(yyGetBool(string_count("_LoadSlot5",gmlsname))){{global.gmlui_selected=__yy__v1619.id;return;};};break;}};};};}}};};};var ___sw1286___=g_pBuiltIn.get_current_room();var ___swc1287___=-1;if(yyCompareVal(___sw1286___,
10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1286___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1286___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1286___,11,g_GMLMathEpsilon,false)==0){___swc1287___=0;}switch(___swc1287___){case 0:{{var __yy__v1620=GetWithArray(34);for(var __yy__v1621 in __yy__v1620){if(!__yy__v1620.hasOwnProperty(__yy__v1621))continue;var __yy__v1622=__yy__v1620[__yy__v1621];{if(yyfequal(__yy__v1622.gmlcolour,global.gmlc_primary)){{global.gmlui_selected=__yy__v1622.id;
return;};};}}};break;}};var gmllsi=gml_Script_s_get_last_selected(_inst,_other,g_pBuiltIn.get_current_room());if(yyfnotequal(gmllsi,(-1))){{gml_Script_slog(_inst,_other,yyfplus("last selected: ",__yy_gml_errCheck(string(gmllsi))));{var __yy__v1623=GetWithArray(34);for(var __yy__v1624 in __yy__v1623){if(!__yy__v1623.hasOwnProperty(__yy__v1624))continue;var __yy__v1625=__yy__v1623[__yy__v1624];{if(!yyGetBool(__yy__v1625.visible)){continue;};if((yyGetBool(__yy__v1625.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1625.layer))))){
continue;};if((yyGetBool(variable_instance_exists(__yy__v1625.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1625.gmlactive)))){continue;};if((yyGetBool(instance_exists(78)))&&(yyGetBool(yyfgreater(__yy__v1625.depth,yyInst(_inst,_other,78).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1625.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1625.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1625.gmlgp_active_editing)))){
continue;};if(yyfequal(gmllsi,__yy__v1625.id)){{global.gmlui_selected=__yy__v1625.id;return;};};}}};{var __yy__v1626=GetWithArray(71);for(var __yy__v1627 in __yy__v1626){if(!__yy__v1626.hasOwnProperty(__yy__v1627))continue;var __yy__v1628=__yy__v1626[__yy__v1627];{if(!yyGetBool(__yy__v1628.visible)){continue;};if((yyGetBool(__yy__v1628.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1628.layer))))){continue;};if(yyfequal(gmllsi,__yy__v1628.id)){{global.gmlui_selected=__yy__v1628.id;return;};}
;}}};{var __yy__v1629=GetWithArray(39);for(var __yy__v1630 in __yy__v1629){if(!__yy__v1629.hasOwnProperty(__yy__v1630))continue;var __yy__v1631=__yy__v1629[__yy__v1630];{if(!yyGetBool(__yy__v1631.visible)){continue;};if((yyGetBool(__yy__v1631.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1631.layer))))){continue;};if(yyfequal(gmllsi,__yy__v1631.id)){{global.gmlui_selected=__yy__v1631.id;return;};};}}};};};{var __yy__v1632=GetWithArray(20);for(var __yy__v1633 in __yy__v1632){if(!__yy__v1632.hasOwnProperty(__yy__v1633))continue;
var __yy__v1634=__yy__v1632[__yy__v1633];{if(!yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive)){continue;};if(yyfequal(yyInst(_inst,_other,global.gmlcustkb).gmldefault_key,__yy__v1634.id)){{global.gmlui_selected=__yy__v1634.id;return;};};}}};{var __yy__v1635=GetWithArray(34);for(var __yy__v1636 in __yy__v1635){if(!__yy__v1635.hasOwnProperty(__yy__v1636))continue;var __yy__v1637=__yy__v1635[__yy__v1636];{if(!yyGetBool(__yy__v1637.visible)){continue;};if((yyGetBool(__yy__v1637.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1637.layer))))){
continue;};if((yyGetBool(variable_instance_exists(__yy__v1637.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1637.gmlactive)))){continue;};if((yyGetBool(instance_exists(78)))&&(yyGetBool(yyfgreater(__yy__v1637.depth,yyInst(_inst,_other,78).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1637.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1637.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1637.gmlgp_active_editing)))){
continue;};var gmlsname=script_get_name(__yy__v1637.gmlonClickAction);if((yyGetBool(string_count("_Continue",gmlsname)))||(yyGetBool(string_count("_Back",gmlsname)))||(yyGetBool(string_count("s_do_postmatch_dilemma",gmlsname)))||(yyGetBool(yyfequal(__yy__v1637.gmlonClickAction,kgml_Script_btn_response_1pt)))){{global.gmlui_selected=__yy__v1637.id;return;};};}}};{var __yy__v1638=GetWithArray(34);for(var __yy__v1639 in __yy__v1638){if(!__yy__v1638.hasOwnProperty(__yy__v1639))continue;var __yy__v1640=__yy__v1638[__yy__v1639];
{if(!yyGetBool(__yy__v1640.visible)){continue;};if((yyGetBool(__yy__v1640.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1640.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1640.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1640.gmlactive)))){continue;};if((yyGetBool(instance_exists(78)))&&(yyGetBool(yyfgreater(__yy__v1640.depth,yyInst(_inst,_other,78).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1640.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1640.gmlgp_mapped_button,
(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1640.gmlgp_active_editing)))){continue;};var gmlsname=script_get_name(__yy__v1640.gmlonClickAction);if((yyGetBool(string_count("Home",gmlsname)))||(yyGetBool(string_count("Back",gmlsname)))||(yyGetBool(string_count("Done",gmlsname)))||(yyGetBool(string_count("btn_click_HallOfFame",gmlsname)))||(yyGetBool(string_count("s_msg_clear",gmlsname)))||(yyGetBool(string_count("_no",gmlsname)))||(yyGetBool(string_count("_ChooseAFC",
gmlsname)))){{global.gmlui_selected=__yy__v1640.id;return;};};}}};{var __yy__v1641=GetWithArray(34);for(var __yy__v1642 in __yy__v1641){if(!__yy__v1641.hasOwnProperty(__yy__v1642))continue;var __yy__v1643=__yy__v1641[__yy__v1642];{if(!yyGetBool(__yy__v1643.visible)){continue;};if((yyGetBool(__yy__v1643.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1643.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1643.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1643.gmlactive)))){continue;
};if((yyGetBool(instance_exists(78)))&&(yyGetBool(yyfgreater(__yy__v1643.depth,yyInst(_inst,_other,78).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1643.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1643.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1643.gmlgp_active_editing)))){continue;};global.gmlui_selected=__yy__v1643.id;return;}}};{var __yy__v1644=GetWithArray(33);for(var __yy__v1645 in __yy__v1644){
if(!__yy__v1644.hasOwnProperty(__yy__v1645))continue;var __yy__v1646=__yy__v1644[__yy__v1645];{if(!yyGetBool(__yy__v1646.visible)){continue;};if((yyGetBool(__yy__v1646.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1646.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1646.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1646.gmlactive)))){continue;};if((yyGetBool(instance_exists(78)))&&(yyGetBool(yyfgreater(__yy__v1646.depth,yyInst(_inst,_other,78).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1646.id,
"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1646.gmlgp_mapped_button,(-1))))){continue;};if(!yyGetBool(variable_instance_exists(__yy__v1646.id,"onClickAction"))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1646.gmlgp_active_editing)))){continue;};global.gmlui_selected=__yy__v1646.id;return;}}};}}function gml_GlobalScript_s_get_watermarked_stats(_inst,_other,argument0){(_inst.gmls_get_watermarked_stats=__yy_method(_inst,gml_Script_s_get_watermarked_stats));
}function gml_Script_s_get_watermarked_stats(_inst,_other,argument0){{var gmlpmap=argument0;var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlgms=string(ds_map_find_value(gmlpmap,"season_games"));var gmlcgms=string(ds_map_find_value(gmlpmap,"career_games"));var gmlatt=string(ds_map_find_value(gmlpmap,"season_attempts"));var gmlcmp=string(ds_map_find_value(gmlpmap,"season_complete"));var gmlyds=string(round(ds_map_find_value(gmlpmap,"season_yards")));var gmlavg=gml_Script_s_get_string_float(_inst,_other,
gml_Script_s_get_average_yards(_inst,_other,gmlpmap,1,false),1);var gmllng=string(round(ds_map_find_value(gmlpmap,"season_longest")));var gmltds=string(ds_map_find_value(gmlpmap,"season_touchdowns"));var gmlfum=string(ds_map_find_value(gmlpmap,"season_fumbles"));var gmltck=string(ds_map_find_value(gmlpmap,"season_tackles"));var gmlint=string(ds_map_find_value(gmlpmap,"season_int"));var gmlsck=string(ds_map_find_value(gmlpmap,"season_sacks"));var gmlr_att=string(ds_map_find_value(gmlpmap,"season_rush_attempts"));
var gmlr_yds=string(round(ds_map_find_value(gmlpmap,"season_rush_yards")));var gmlr_avg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,gmlpmap,1,true),1);var gmlr_lng=string(round(ds_map_find_value(gmlpmap,"season_rush_longest")));var gmlr_tds=string(ds_map_find_value(gmlpmap,"season_rush_touchdowns"));var gmlstr=yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")))," ");if(yyfequal(gmlpos,10)){gmlstr="KK ";
};gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus("G",__yy_gml_errCheck(gmlgms)),"/"),__yy_gml_errCheck(gmlcgms)));var ___sw1290___=gmlpos;var ___swc1291___=-1;if(yyCompareVal(___sw1290___,1,g_GMLMathEpsilon,false)==0){___swc1291___=0;}else if(yyCompareVal(___sw1290___,2,g_GMLMathEpsilon,false)==0){___swc1291___=1;}else if(yyCompareVal(___sw1290___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1290___,4,g_GMLMathEpsilon,false)==0){___swc1291___=2;}else if(yyCompareVal(___sw1290___,10,g_GMLMathEpsilon,
false)==0){___swc1291___=3;}else if(yyCompareVal(___sw1290___,5,g_GMLMathEpsilon,false)==0){___swc1291___=4;}switch(___swc1291___){case 0:{gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" AC:",__yy_gml_errCheck(gmlatt)),"/"),__yy_gml_errCheck(gmlcmp)));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" Y:",__yy_gml_errCheck(gmlyds)),"/"),__yy_gml_errCheck(gmlr_yds)));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" TD:",__yy_gml_errCheck(gmltds)),"/"),__yy_gml_errCheck(gmlr_tds)));gmlstr=yyfplus(gmlstr,
yyfplus(yyfplus(yyfplus(" TO:",__yy_gml_errCheck(gmlint)),"/"),__yy_gml_errCheck(gmlfum)));gmlstr=yyfplus(gmlstr,yyfplus(" SK:",__yy_gml_errCheck(gmlsck)));break;}case 1:{gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" TC:",__yy_gml_errCheck(gmlatt)),"/"),__yy_gml_errCheck(gmlr_att)));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" Y:",__yy_gml_errCheck(gmlyds)),"/"),__yy_gml_errCheck(gmlr_yds)));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" TD:",__yy_gml_errCheck(gmltds)),"/"),__yy_gml_errCheck(gmlr_tds)));
gmlstr=yyfplus(gmlstr,yyfplus(" FM:",__yy_gml_errCheck(gmlfum)));break;}case 2:{gmlstr=yyfplus(gmlstr,yyfplus(" R:",__yy_gml_errCheck(gmlatt)));gmlstr=yyfplus(gmlstr,yyfplus(" Y:",__yy_gml_errCheck(gmlyds)));gmlstr=yyfplus(gmlstr,yyfplus(" TD:",__yy_gml_errCheck(gmltds)));gmlstr=yyfplus(gmlstr,yyfplus(" AV:",__yy_gml_errCheck(gmlavg)));gmlstr=yyfplus(gmlstr,yyfplus(" FM:",__yy_gml_errCheck(gmlfum)));break;}case 3:{gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" AC:",__yy_gml_errCheck(gmlatt)),
"/"),__yy_gml_errCheck(gmlcmp)));gmlstr=yyfplus(gmlstr,yyfplus(" YD:",__yy_gml_errCheck(gmlyds)));break;}case 4:{gmlstr=yyfplus(gmlstr,yyfplus(" BL:",__yy_gml_errCheck(gmltck)));break;}default :{gmlstr=yyfplus(gmlstr,yyfplus(" TK:",__yy_gml_errCheck(gmltck)));gmlstr=yyfplus(gmlstr,yyfplus(" SK:",__yy_gml_errCheck(gmlsck)));gmlstr=yyfplus(gmlstr,yyfplus(" IN:",__yy_gml_errCheck(gmlint)));gmlstr=yyfplus(gmlstr,yyfplus(" FF:",__yy_gml_errCheck(gmlfum)));break;}};return gmlstr;}}function gml_GlobalScript_s_get_qb_energy(_inst,
_other){(_inst.gmls_get_qb_energy=__yy_method(_inst,gml_Script_s_get_qb_energy));}function gml_Script_s_get_qb_energy(_inst,_other){{if(yyfequal(yyInst(_inst,_other,97).gmlqb_mode,0)){{return 0;};};var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);if(yyGetBool(gmlpmap)){return real(ds_map_find_value(gmlpmap,"condition"));}else {return 0;};}}function gml_GlobalScript_btn_click_external_links(_inst,_other){(_inst.gmlbtn_click_BuyMerch=__yy_method(_inst,gml_Script_btn_click_BuyMerch));(_inst.gmlbtn_click_MusicBy=__yy_method(_inst,
gml_Script_btn_click_MusicBy));(_inst.gmlbtn_click_YouTube=__yy_method(_inst,gml_Script_btn_click_YouTube));(_inst.gmlbtn_click_RecordBook=__yy_method(_inst,gml_Script_btn_click_RecordBook));(_inst.gmlbtn_click_Leagues=__yy_method(_inst,gml_Script_btn_click_Leagues));(_inst.gmlbtn_click_ad_NSS=__yy_method(_inst,gml_Script_btn_click_ad_NSS));(_inst.gmlbtn_click_ad_NSM=__yy_method(_inst,gml_Script_btn_click_ad_NSM));(_inst.gmlbtn_click_ad_RG=__yy_method(_inst,gml_Script_btn_click_ad_RG));(_inst.gmlbtn_click_ad_NSB=__yy_method(_inst,
gml_Script_btn_click_ad_NSB));(_inst.gmlbtn_click_NewStarGames=__yy_method(_inst,gml_Script_btn_click_NewStarGames));}function gml_Script_btn_click_BuyMerch(_inst,_other){{url_open_ext(global.gmlurl_merch_tshirts,"_blank");}}function gml_Script_btn_click_MusicBy(_inst,_other){{url_open_ext(global.gmlurl_heatley_bros,"_blank");}}function gml_Script_btn_click_YouTube(_inst,_other){{url_open_ext(global.gmlurl_jefe_zhai,"_blank");}}function gml_Script_btn_click_RecordBook(_inst,_other){{url_open_ext(global.gmlurl_record_book,
"_blank");}}function gml_Script_btn_click_Leagues(_inst,_other){{url_open_ext(global.gmlurl_leagues,"_blank");}}function gml_Script_btn_click_ad_NSS(_inst,_other){{var ___sw1300___=g_pBuiltIn.get_os_type();var ___swc1301___=-1;if(yyCompareVal(___sw1300___,3,g_GMLMathEpsilon,false)==0){___swc1301___=0;}else if(yyCompareVal(___sw1300___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1300___,0,g_GMLMathEpsilon,false)==0){___swc1301___=1;}switch(___swc1301___){case 0:{url_open_ext(global.gmlurl_apple_nss,
"_blank");break;break;}case 1:{url_open_ext(global.gmlurl_google_nss,"_blank");break;break;}};}}function gml_Script_btn_click_ad_NSM(_inst,_other){{var ___sw1302___=g_pBuiltIn.get_os_type();var ___swc1303___=-1;if(yyCompareVal(___sw1302___,3,g_GMLMathEpsilon,false)==0){___swc1303___=0;}else if(yyCompareVal(___sw1302___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,0,g_GMLMathEpsilon,false)==0){___swc1303___=1;}switch(___swc1303___){case 0:{url_open_ext(global.gmlurl_apple_nsm,"_blank");break;
break;}case 1:{url_open_ext(global.gmlurl_google_nsm,"_blank");break;break;}};}}function gml_Script_btn_click_ad_RG(_inst,_other){{var ___sw1304___=g_pBuiltIn.get_os_type();var ___swc1305___=-1;if(yyCompareVal(___sw1304___,3,g_GMLMathEpsilon,false)==0){___swc1305___=0;}else if(yyCompareVal(___sw1304___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1304___,0,g_GMLMathEpsilon,false)==0){___swc1305___=1;}switch(___swc1305___){case 0:{url_open_ext(global.gmlurl_apple_retrogoal,"_blank");break;break;}case 1:{
url_open_ext(global.gmlurl_google_retrogoal,"_blank");break;break;}};}}function gml_Script_btn_click_ad_NSB(_inst,_other){{var ___sw1306___=g_pBuiltIn.get_os_type();var ___swc1307___=-1;if(yyCompareVal(___sw1306___,3,g_GMLMathEpsilon,false)==0){___swc1307___=0;}else if(yyCompareVal(___sw1306___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1306___,0,g_GMLMathEpsilon,false)==0){___swc1307___=1;}switch(___swc1307___){case 0:{url_open_ext(global.gmlurl_apple_nsb,"_blank");break;break;}case 1:{url_open_ext(global.gmlurl_google_nsb,
"_blank");break;break;}};}}function gml_Script_btn_click_NewStarGames(_inst,_other){{url_open_ext("https://www.newstargames.com","_blank");}}function gml_GlobalScript_s_do_prematch_dilemma_qb(_inst,_other){(_inst.gmls_do_prematch_dilemma_qb=__yy_method(_inst,gml_Script_s_do_prematch_dilemma_qb));}function gml_Script_s_do_prematch_dilemma_qb(_inst,_other){{{var __yy__v1647=GetWithArray(97);for(var __yy__v1648 in __yy__v1647){if(!__yy__v1647.hasOwnProperty(__yy__v1648))continue;var __yy__v1649=__yy__v1647[__yy__v1648];
{yyInst(_inst,_other,97).gmlprematch_dilemma_done=true;if(!yyGetBool(gml_Script_s_get_human_fixture_next(__yy__v1649,_inst))){return false;};if((yyGetBool(yyfequal(__yy__v1649.gmlyear,1)))&&(yyGetBool(yyfequal(__yy__v1649.gmlweek,1)))){{gml_Script_s_add_news_dyn(__yy__v1649,_inst,"web",gml_Script_s_str(__yy__v1649,_inst,"news_qb_pregame1"),gml_Script_s_get_qb_pmap(__yy__v1649,_inst),true);return true;};};var gmlmsg="";var gmlpmap=gml_Script_s_get_random_player(__yy__v1649,_inst,true);var gmlsmap=gml_Script_s_get_staff(__yy__v1649,
_inst,101);var gmldilemmas=ds_list_create();if((yyGetBool(irandom(2)))&&(yyGetBool(yyfgreater(__yy__v1649.gmlyear,1)))){{ds_list_add(gmldilemmas,"dilemma_Owner");if(yyGetBool(gmlpmap)){{if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1649,_inst,gmlpmap))){gmlsmap=gml_Script_s_get_staff(__yy__v1649,_inst,102);};if((yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1649,_inst,gmlpmap))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,
"condition"),20)))&&(yyGetBool(yyfless(__yy__v1649.gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)))){ds_list_add(gmldilemmas,"dilemma_RestPlayer");};if(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),30)){ds_list_add(gmldilemmas,"dilemma_toxic");};if((yyGetBool(gmlsmap))&&(yyGetBool((yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),30)))||(yyGetBool(yyflessequal(ds_map_find_value(gmlsmap,"attitude"),30)))))){ds_list_add(gmldilemmas,"dilemma_Coach_BustUp");};if(yyflessequal(ds_map_find_value(gmlpmap,
"attitude"),60)){ds_list_add(gmldilemmas,"dilemma_late");};if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1649,_inst))){ds_list_add(gmldilemmas,"dilemma_rookie");};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"attitude"),90)))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlfans,98)))){ds_list_add(gmldilemmas,"news_CharityWork");}else {ds_list_add(gmldilemmas,"dilemma_random");};};};var gmli=0;for(;yyfless(gmli,ds_list_size(gmldilemmas));(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_slog(__yy__v1649,_inst,yyfplus("List: ",__yy_gml_errCheck(ds_list_find_value(gmldilemmas,gmli))));}};ds_list_shuffle(gmldilemmas);gmlmsg=gml_Script_s_choose_dilemma(__yy__v1649,_inst,ds_list_find_value(gmldilemmas,0));gml_Script_slog(__yy__v1649,_inst,yyfplus("s_do_prematch_dilemma: ",__yy_gml_errCheck(gmlmsg)));};};if(yyGetBool(string_count("dilemma_",gmlmsg))){{ds_map_destroy(__yy__v1649.gmlmap_dilemma);
__yy__v1649.gmlmap_dilemma=(-1);__yy__v1649.gmlmap_dilemma=gml_Script_s_parse_dilemma(__yy__v1649,_inst,gmlmsg,gmlpmap,"ui_Dilemma");yyInst(_inst,_other,97).gmlplayer_profile=gmlpmap;gml_Script_s_create_dilemma(__yy__v1649,_inst,__yy__v1649.gmlmap_dilemma);ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return true;};}else {if(yyGetBool(string_count("news_",gmlmsg))){{if(yyGetBool(string_count("news_CharityWork",gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(__yy__v1649,_inst,gml_Script_s_str(__yy__v1649,
_inst,gmlmsg),gmlpmap);gml_Script_s_meter_change(__yy__v1649,_inst,1,yyInst(_inst,_other,97).gmlfans,g_pBuiltIn.get_current_room(),gmlmsg);yyInst(_inst,_other,97).gmlfans=yyfplus(yyInst(_inst,_other,97).gmlfans,2);};}else {{gmlmsg=gml_Script_s_parse_player_message(__yy__v1649,_inst,gml_Script_s_str(__yy__v1649,_inst,gmlmsg),gmlpmap);gml_Script_s_create_message(__yy__v1649,_inst,gml_Script_s_str(__yy__v1649,_inst,"ui_News"),gmlmsg,gml_Script_s_str(__yy__v1649,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,
"",global.gmlc_background,1);};};ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return true;};};};ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return false;}}};}}function gml_GlobalScript_s_sound_audience_catch(_inst,_other){(_inst.gmls_sound_audience_catch=__yy_method(_inst,gml_Script_s_sound_audience_catch));}function gml_Script_s_sound_audience_catch(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice))){
return;};var gmlsnd=audio_play_sound(1,1,false);audio_sound_pitch(gmlsnd,random_range(0.9,1));audio_sound_gain(gmlsnd,0,2000);}}function gml_GlobalScript_s_player_gpa(_inst,_other,argument0){(_inst.gmls_gpa_from_percent_grade=__yy_method(_inst,gml_Script_s_gpa_from_percent_grade));(_inst.gmls_gpa_string=__yy_method(_inst,gml_Script_s_gpa_string));(_inst.gmls_decay_percent_grade=__yy_method(_inst,gml_Script_s_decay_percent_grade));(_inst.gmls_post_match_gpa_refresh=__yy_method(_inst,gml_Script_s_post_match_gpa_refresh));
(_inst.gmls_add_percent_grade=__yy_method(_inst,gml_Script_s_add_percent_grade));(_inst.gmls_get_decay=__yy_method(_inst,gml_Script_s_get_decay));(_inst.gmls_get_decay_info=__yy_method(_inst,gml_Script_s_get_decay_info));(_inst.gmls_refresh_suspended=__yy_method(_inst,gml_Script_s_refresh_suspended));(_inst.gmls_get_percent_grade_squad=__yy_method(_inst,gml_Script_s_get_percent_grade_squad));(_inst.gmlbtn_click_Boost_GPA=__yy_method(_inst,gml_Script_btn_click_Boost_GPA));(_inst.gmlbtn_response_boost_gpa=__yy_method(_inst,
gml_Script_btn_response_boost_gpa));(_inst.gmls_my_team_academics=__yy_method(_inst,gml_Script_s_my_team_academics));(_inst.gmls_player_grade_suspend=__yy_method(_inst,gml_Script_s_player_grade_suspend));(_inst.gmls_player_grade_lift_suspension=__yy_method(_inst,gml_Script_s_player_grade_lift_suspension));}function gml_Script_s_gpa_from_percent_grade(_inst,_other,argument0){{if(yyfless(argument0,65)){{return 0;};};if(yyflessequal(argument0,66)){{return 1;};};if(yyflessequal(argument0,69)){{return 1.3;
};};if(yyflessequal(argument0,72)){{return 1.7;};};if(yyflessequal(argument0,76)){{return 2;};};if(yyflessequal(argument0,79)){{return 2.3;};};if(yyflessequal(argument0,82)){{return 2.7;};};if(yyflessequal(argument0,86)){{return 3;};};if(yyflessequal(argument0,89)){{return 3.3;};};if(yyflessequal(argument0,92)){{return 3.7;};};if(yyflessequal(argument0,96)){{return 4;};};return 4;}}function gml_Script_s_gpa_string(_inst,_other,argument0){{var gmlpmap=argument0;return string_format(gml_Script_s_gpa_from_percent_grade(_inst,
_other,ds_map_find_value(gmlpmap,"percent_grade")),1,1);}}function gml_Script_s_decay_percent_grade(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};gml_Script_s_add_percent_grade(_inst,_other,argument0,yyftime((-1),__yy_gml_errCheck(gml_Script_s_get_decay(_inst,_other,argument0))));}}function gml_Script_s_post_match_gpa_refresh(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlfinishedWeek=yyfminus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlweek),1);if(yyfgreater(gmlfinishedWeek,yyInst(_inst,_other,97).gmllast_week_regular)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_post_match_gpa_refresh - Skipped during playoffs w[",__yy_gml_errCheck(string(gmlfinishedWeek))),"] lwr["),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmllast_week_regular))),"]"));return;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_post_match_gpa_refresh w[",__yy_gml_errCheck(string(gmlfinishedWeek))),"] lwr["),
__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmllast_week_regular))),"]"));{var __yy__v1650=GetWithArray(97);for(var __yy__v1651 in __yy__v1650){if(!__yy__v1650.hasOwnProperty(__yy__v1651))continue;var __yy__v1652=__yy__v1650[__yy__v1651];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1652.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_s_decay_percent_grade(__yy__v1652,_inst,ds_list_find_value(__yy__v1652.gmlroster,
gmli));}};}}};}}function gml_Script_s_add_percent_grade(_inst,_other,argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlminPR=60;var gmlmaxPR=ds_map_find_value(argument0,"max_percent_grade");var gmlnewPG=clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"percent_grade")),__yy_gml_errCheck(argument1)),gmlminPR,gmlmaxPR);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_add_percent_grade . grade boost[",__yy_gml_errCheck(string(argument1))),
"] PG["),__yy_gml_errCheck(string(ds_map_find_value(argument0,"percent_grade")))),"]->["),__yy_gml_errCheck(string(gmlnewPG))),"]"));ds_map_set(argument0,"percent_grade",gmlnewPG);gml_Script_s_refresh_suspended(_inst,_other,argument0,true);}}function gml_Script_s_get_decay(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 0;};};var gmlpmap=argument0;var gmldecay=2;if((yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap)))||(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,
"condition"),(-1))))){{gmldecay=(-2);};}else {{var ___sw1316___=gml_Script_s_get_training_reg(_inst,_other,gmlpmap);var ___swc1317___=-1;if(yyCompareVal(___sw1316___,1,g_GMLMathEpsilon,false)==0){___swc1317___=0;}else if(yyCompareVal(___sw1316___,2,g_GMLMathEpsilon,false)==0){___swc1317___=1;}else if(yyCompareVal(___sw1316___,3,g_GMLMathEpsilon,false)==0){___swc1317___=2;}switch(___swc1317___){case 0:{gmldecay=yyftime(gmldecay,0);break;}case 1:{break;}case 2:{gmldecay=yyftime(gmldecay,1.5);break;}};};};
return gmldecay;}}function gml_Script_s_get_decay_info(_inst,_other,argument0){{var gmlpmap=argument0;var gmldecayExt="";if((yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap)))||(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))))){{gmldecayExt=yyfplus(yyfplus("Benched|Injured[",__yy_gml_errCheck(string((-2)))),"]");};}else {{gmldecayExt=yyfplus(yyfplus("Base[",__yy_gml_errCheck(string(2))),"] ");var ___sw1318___=gml_Script_s_get_training_reg(_inst,_other,gmlpmap);var ___swc1319___=-1;
if(yyCompareVal(___sw1318___,1,g_GMLMathEpsilon,false)==0){___swc1319___=0;}else if(yyCompareVal(___sw1318___,2,g_GMLMathEpsilon,false)==0){___swc1319___=1;}else if(yyCompareVal(___sw1318___,3,g_GMLMathEpsilon,false)==0){___swc1319___=2;}switch(___swc1319___){case 0:{gmldecayExt=yyfplus(gmldecayExt,yyfplus(yyfplus(" Train(L)[x",__yy_gml_errCheck(string(0))),"]"));break;}case 1:{break;}case 2:{gmldecayExt=yyfplus(gmldecayExt,yyfplus(yyfplus(" Train(H)[x",__yy_gml_errCheck(string(1.5))),"]"));break;}};
};};var gmlmsg=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Percent[",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"percent_grade")))),"%]->GPA["),__yy_gml_errCheck(string(gml_Script_s_gpa_from_percent_grade(_inst,_other,ds_map_find_value(gmlpmap,"percent_grade"))))),"] MAX Grade["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"max_percent_grade")))),"]");gmlmsg=yyfplus(gmlmsg,yyfplus(yyfplus(yyfplus(yyfplus(" Decay:",__yy_gml_errCheck(string(gml_Script_s_get_decay(_inst,_other,gmlpmap)))),
"("),__yy_gml_errCheck(gmldecayExt)),")"));gmlmsg=yyfplus(gmlmsg,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(" Suspend (Player):",__yy_gml_errCheck(string(gml_Script_s_player_grade_suspend(_inst,_other,gmlpmap)))),"% Lift Susp:"),__yy_gml_errCheck(string(gml_Script_s_player_grade_lift_suspension(_inst,_other,gmlpmap)))),"% ")," (Academics:"),__yy_gml_errCheck(string(gml_Script_s_my_team_academics(_inst,_other)))),")"));return gmlmsg;}}function gml_Script_s_refresh_suspended(_inst,_other,
argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlwasSus=ds_map_find_value(argument0,"suspended");if(yyflessequal(ds_map_find_value(argument0,"percent_grade"),gml_Script_s_player_grade_suspend(_inst,_other,argument0))){{gml_Script_slog(_inst,_other,"Suspended!");ds_map_set(argument0,"suspended",1);};};if(yyfgreaterequal(ds_map_find_value(argument0,"percent_grade"),gml_Script_s_player_grade_lift_suspension(_inst,_other,argument0))){{gml_Script_slog(_inst,
_other,"Un-Suspended!");ds_map_set(argument0,"suspended",0);};};if(yyGetBool(argument1)){{if((yyGetBool(yyfequal(gmlwasSus,0)))&&(yyGetBool(yyfequal(ds_map_find_value(argument0,"suspended"),1)))){{gml_Script_s_add_news_if_new(_inst,_other,gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,"msg_Suspended"),argument0));};};if((yyGetBool(yyfequal(gmlwasSus,1)))&&(yyGetBool(yyfequal(ds_map_find_value(argument0,"suspended"),0)))){{gml_Script_s_remove_news(_inst,_other,gml_Script_s_parse_player_message(_inst,
_other,gml_Script_s_str(_inst,_other,"msg_Suspended"),argument0));};};};};}}function gml_Script_s_get_percent_grade_squad(_inst,_other){{var gmlcon=0;{var __yy__v1653=GetWithArray(97);for(var __yy__v1654 in __yy__v1653){if(!__yy__v1653.hasOwnProperty(__yy__v1654))continue;var __yy__v1655=__yy__v1653[__yy__v1654];{var gmlsize=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1655.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1655.gmlroster,
gmli);if(yyfgreater(ds_map_find_value(gmlpmap,"percent_grade"),0)){{gmlcon=yyfplus(gmlcon,ds_map_find_value(gmlpmap,"percent_grade"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),g_yyPrePostObject__);};};}};if(yyfgreater(gmlsize,0)){gmlcon=yyfdivide(gmlcon,gmlsize);};return round(gmlcon);}}};}}function gml_Script_btn_click_Boost_GPA(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,97).gmlboost_gpa_done)){{gml_Script_s_create_message(_inst,_other,
"",gml_Script_s_str(_inst,_other,"msg_BoostGPAAlreadyDone"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(25,yyInst(_inst,_other,97).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostGPANoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {
{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostGPA");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_gpa,global.gmlc_background,1);};};};}}function gml_Script_btn_response_boost_gpa(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v1656=GetWithArray(97);for(var __yy__v1657 in __yy__v1656){if(!__yy__v1656.hasOwnProperty(__yy__v1657))continue;
var __yy__v1658=__yy__v1656[__yy__v1657];{__yy__v1658.gmlboost_gpa_done=true;__yy__v1658.gmlcoach_credit=yyfminus(__yy__v1658.gmlcoach_credit,25);if(yyfless(__yy__v1658.gmlcoach_credit,0)){__yy__v1658.gmlcoach_credit=0;};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1658.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_s_add_percent_grade(__yy__v1658,_inst,ds_list_find_value(__yy__v1658.gmlroster,gmli),20);}};gml_Script_s_team_halve_all_party_meters(__yy__v1658,
_inst);gml_Script_s_create_message(__yy__v1658,_inst,"",gml_Script_s_str(__yy__v1658,_inst,yyfplus("msg_BoostGPAEvent",__yy_gml_errCheck(string(irandom(5))))),gml_Script_s_str(__yy__v1658,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}};}}function gml_Script_s_my_team_academics(_inst,_other){{var gmltmap=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,yyInst(_inst,_other,97).gmlmyteam_id);if(yyGetBool(is_undefined(gmltmap))){{return 0;};};return ds_map_find_value(gmltmap,
"academics");}}function gml_Script_s_player_grade_suspend(_inst,_other,argument0){{var gmlacademics=gml_Script_s_my_team_academics(_inst,_other);var gmlage=ds_map_find_value(argument0,"age");var ___sw1320___=gmlacademics;var ___swc1321___=-1;if(yyCompareVal(___sw1320___,0,g_GMLMathEpsilon,false)==0){___swc1321___=0;}else if(yyCompareVal(___sw1320___,1,g_GMLMathEpsilon,false)==0){___swc1321___=1;}else if(yyCompareVal(___sw1320___,2,g_GMLMathEpsilon,false)==0){___swc1321___=2;}else if(yyCompareVal(___sw1320___,
3,g_GMLMathEpsilon,false)==0){___swc1321___=3;}switch(___swc1321___){case 0:{{if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return 64;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return 64;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 66;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 66;};};};}case 1:{
{if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return 64;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return 66;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 69;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 69;};};};}case 2:{{if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return 64;
};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return 69;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 72;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 72;};};};}case 3:{{if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return 66;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,
_other)),1))){{return 72;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 76;};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 76;};};};}};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("ERROR! Unexpected team academics(",__yy_gml_errCheck(string(gmlacademics))),") range is 0-3 or player age("),__yy_gml_errCheck(string(gmlage))),")"));return 60;}}function gml_Script_s_player_grade_lift_suspension(_inst,
_other,argument0){{var gmlacademics=gml_Script_s_my_team_academics(_inst,_other);var ___sw1322___=gmlacademics;var ___swc1323___=-1;if(yyCompareVal(___sw1322___,0,g_GMLMathEpsilon,false)==0){___swc1323___=0;}else if(yyCompareVal(___sw1322___,1,g_GMLMathEpsilon,false)==0){___swc1323___=1;}else if(yyCompareVal(___sw1322___,2,g_GMLMathEpsilon,false)==0){___swc1323___=2;}else if(yyCompareVal(___sw1322___,3,g_GMLMathEpsilon,false)==0){___swc1323___=3;}switch(___swc1323___){case 0:{return 70;}case 1:{return 73;
}case 2:{return 76;}case 3:{return 80;}};gml_Script_slog(_inst,_other,yyfplus(yyfplus("ERROR! Unexpected team academics(",__yy_gml_errCheck(string(gmlacademics))),") range is 0-3"));return 70;}}// /// @function canvas_fullscreen(base)
// /// @param {int} base The base value for scaling on both axis
function gml_GlobalScript_s_canvas_fullscreen(_inst,_other,argument0){(_inst.gmls_canvas_fullscreen=__yy_method(_inst,gml_Script_s_canvas_fullscreen));}function gml_Script_s_canvas_fullscreen(_inst,
_other){{var $$args=Array.prototype.slice.call(arguments);{var gml_base=$$args[2+0];var gml_bw=g_pBuiltIn.get_browser_width();var gml_bh=g_pBuiltIn.get_browser_height();g_pBuiltIn.view_wport[__yy_gml_array_check_index_set(0)]=gml_bw;g_pBuiltIn.view_hport[__yy_gml_array_check_index_set(0)]=gml_bh;window_set_size(gml_bw,gml_bh);window_center();var gml_aspect=yyfdivide(__yy_gml_errCheck(gml_bw),__yy_gml_errCheck(gml_bh));if(yyfless(gml_aspect,1)){{var gml_vw=yyftime(__yy_gml_errCheck(gml_base),__yy_gml_errCheck(gml_aspect));
var gml_vh=gml_base;};}else {{gml_vw=gml_base;gml_vh=yyfdivide(__yy_gml_errCheck(gml_base),__yy_gml_errCheck(gml_aspect));};};camera_set_view_size(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],gml_vw,gml_vh);surface_resize(g_pBuiltIn.application_surface,g_pBuiltIn.view_wport[__yy_gml_array_check_index(0,g_pBuiltIn.view_wport)],g_pBuiltIn.view_hport[__yy_gml_array_check_index(0,g_pBuiltIn.view_hport)]);}}}function gml_GlobalScript_s_player_party(_inst,_other){(_inst.gmls_update_party_meter=__yy_method(_inst,
gml_Script_s_update_party_meter));(_inst.gmls_get_party_info=__yy_method(_inst,gml_Script_s_get_party_info));(_inst.gmls_add_to_party_meter=__yy_method(_inst,gml_Script_s_add_to_party_meter));(_inst.gmls_clear_party_meter=__yy_method(_inst,gml_Script_s_clear_party_meter));(_inst.gmls_team_halve_all_party_meters=__yy_method(_inst,gml_Script_s_team_halve_all_party_meters));}function gml_Script_s_update_party_meter(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;
};};var gmlinc=6;var ___sw1328___=gml_Script_s_get_training_reg(_inst,_other,argument0);var ___swc1329___=-1;if(yyCompareVal(___sw1328___,1,g_GMLMathEpsilon,false)==0){___swc1329___=0;}else if(yyCompareVal(___sw1328___,2,g_GMLMathEpsilon,false)==0){___swc1329___=1;}else if(yyCompareVal(___sw1328___,3,g_GMLMathEpsilon,false)==0){___swc1329___=2;}switch(___swc1329___){case 0:{break;}case 1:{break;}case 2:{gmlinc=yyfplus(gmlinc,(-3));break;}};if((yyGetBool(yyflessequal(ds_map_find_value(argument0,"attitude"),
45)))||(yyGetBool(gml_Script_s_player_benched(_inst,_other,argument0)))){{gmlinc=yyfplus(gmlinc,3);};};if(yyGetBool(gml_Script_s_is_player_hobby_fraternity(_inst,_other,argument0))){{gmlinc=yyfplus(gmlinc,6);};};gml_Script_s_add_to_party_meter(_inst,_other,argument0,gmlinc);}}function gml_Script_s_get_party_info(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlpartyExt=yyfplus(yyfplus(" Meter: ",__yy_gml_errCheck(string(ds_map_find_value(argument0,"party_meter")))),
" Tick[");var gmlinc=6;gmlpartyExt=yyfplus(gmlpartyExt,yyfplus(yyfplus(" base(",__yy_gml_errCheck(string(6))),")"));var ___sw1330___=gml_Script_s_get_training_reg(_inst,_other,argument0);var ___swc1331___=-1;if(yyCompareVal(___sw1330___,1,g_GMLMathEpsilon,false)==0){___swc1331___=0;}else if(yyCompareVal(___sw1330___,2,g_GMLMathEpsilon,false)==0){___swc1331___=1;}else if(yyCompareVal(___sw1330___,3,g_GMLMathEpsilon,false)==0){___swc1331___=2;}switch(___swc1331___){case 0:{break;}case 1:{break;}case 2:{gmlpartyExt=yyfplus(gmlpartyExt,
yyfplus(yyfplus(" T.Hard(",__yy_gml_errCheck(string((-3)))),")"));gmlinc=yyfplus(gmlinc,(-3));break;}};if((yyGetBool(yyflessequal(ds_map_find_value(argument0,"attitude"),45)))||(yyGetBool(gml_Script_s_player_benched(_inst,_other,argument0)))){{gmlpartyExt=yyfplus(gmlpartyExt,yyfplus(yyfplus(" Attitude|Bench(",__yy_gml_errCheck(string(3))),")"));gmlinc=yyfplus(gmlinc,3);};};if(yyGetBool(gml_Script_s_is_player_hobby_fraternity(_inst,_other,argument0))){{gmlpartyExt=yyfplus(gmlpartyExt,yyfplus(yyfplus(" Frat(",
__yy_gml_errCheck(string(6))),")"));gmlinc=yyfplus(gmlinc,6);};};gmlpartyExt=yyfplus(gmlpartyExt,yyfplus("]: ",__yy_gml_errCheck(string(gmlinc))));return gmlpartyExt;}}function gml_Script_s_add_to_party_meter(_inst,_other,argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlnew_val=clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"party_meter")),__yy_gml_errCheck(argument1)),0,100);ds_map_set(argument0,"party_meter",gmlnew_val);}}function gml_Script_s_clear_party_meter(_inst,
_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};gml_Script_slog(_inst,_other,"s_clear_party_meter");ds_map_set(argument0,"party_meter",0);}}function gml_Script_s_team_halve_all_party_meters(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};gml_Script_slog(_inst,_other,"s_team_halve_all_party_meters");var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(_inst.gmlroster,gmli);var gmloldVal=ds_map_find_value(gmlpmap,"party_meter");ds_map_set(gmlpmap,"party_meter",int64(yyfdivide(__yy_gml_errCheck(gmloldVal),2)));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("... PartyMeter adjust for ",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname")))),":["),__yy_gml_errCheck(string(gmloldVal))),"]->["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"party_meter")))),
"]"));}};}}function gml_GlobalScript_btn_click_LeagueMode(_inst,_other){(_inst.gmlbtn_click_LeagueMode=__yy_method(_inst,gml_Script_btn_click_LeagueMode));}function gml_Script_btn_click_LeagueMode(_inst,_other){{{var __yy__v1659=GetWithArray(81);for(var __yy__v1660 in __yy__v1659){if(!__yy__v1659.hasOwnProperty(__yy__v1660))continue;var __yy__v1661=__yy__v1659[__yy__v1660];{(g_yyPrePostObject__=__yy__v1661.gmlmode,__yy__v1661.gmlmode=(g_yyPrePostObject__ instanceof Long?__yy__v1661.gmlmode.add(1):++__yy__v1661.gmlmode),
g_yyPrePostObject__);if(yyfgreater(__yy__v1661.gmlmode,2)){__yy__v1661.gmlmode=0;};}}};}}function gml_GlobalScript_pause_scripts(_inst,_other){(_inst.gmls_pause_toggle=__yy_method(_inst,gml_Script_s_pause_toggle));(_inst.gmls_pause_is_available=__yy_method(_inst,gml_Script_s_pause_is_available));(_inst.gmls_pause_step=__yy_method(_inst,gml_Script_s_pause_step));(_inst.gmls_is_paused_or_just_unpaused=__yy_method(_inst,gml_Script_s_is_paused_or_just_unpaused));(_inst.gmls_draw_pause=__yy_method(_inst,
gml_Script_s_draw_pause));(_inst.gmls_pause_btn_init=__yy_method(_inst,gml_Script_s_pause_btn_init));(_inst.gmls_pause_btn_step=__yy_method(_inst,gml_Script_s_pause_btn_step));(_inst.gmls_pause_btn_draw_gui=__yy_method(_inst,gml_Script_s_pause_btn_draw_gui));(_inst.gmls_pause_btn_recenter=__yy_method(_inst,gml_Script_s_pause_btn_recenter));(_inst.gmls_pause_options_init=__yy_method(_inst,gml_Script_s_pause_options_init));(_inst.gmls_pause_options_recenter=__yy_method(_inst,gml_Script_s_pause_options_recenter));
(_inst.gmls_pause_options_dismiss=__yy_method(_inst,gml_Script_s_pause_options_dismiss));(_inst.gmls_pause_options_draw_gui=__yy_method(_inst,gml_Script_s_pause_options_draw_gui));(_inst.gmls_pause_options_layer=__yy_method(_inst,gml_Script_s_pause_options_layer));(_inst.gmls_pause_options_add_button=__yy_method(_inst,gml_Script_s_pause_options_add_button));(_inst.gmls_pause_options_add_quit=__yy_method(_inst,gml_Script_s_pause_options_add_quit));(_inst.gmls_pause_options_update_buttons=__yy_method(_inst,
gml_Script_s_pause_options_update_buttons));(_inst.gmls_pause_options_button_action=__yy_method(_inst,gml_Script_s_pause_options_button_action));(_inst.gmls_pause_options_quit_game=__yy_method(_inst,gml_Script_s_pause_options_quit_game));(_inst.gmlbtn_response_quit_exhibution_cancel=__yy_method(_inst,gml_Script_btn_response_quit_exhibution_cancel));(_inst.gmlbtn_response_quit_exhibution_confirm=__yy_method(_inst,gml_Script_btn_response_quit_exhibution_confirm));}function gml_Script_s_pause_toggle(_inst,
_other){{{var __yy__v1662=GetWithArray(104);for(var __yy__v1663 in __yy__v1662){if(!__yy__v1662.hasOwnProperty(__yy__v1663))continue;var __yy__v1664=__yy__v1662[__yy__v1663];{if(!yyGetBool(gml_Script_s_pause_is_available(__yy__v1664,_inst))){return;};if(yyfnotequal(__yy__v1664.gmlstate,10)){{__yy__v1664.gmlstate_previous=__yy__v1664.gmlstate;if(yyfequal(__yy__v1664.gmlstate,2)){{{var __yy__v1665=GetWithArray(106);for(var __yy__v1666 in __yy__v1665){if(!__yy__v1665.hasOwnProperty(__yy__v1666))continue;var __yy__v1667=__yy__v1665[__yy__v1666];
{__yy__v1667.gmlhspeed_previous=__yy__v1667.hspeed;__yy__v1667.gmlvspeed_previous=__yy__v1667.vspeed;__yy__v1667.gmlimage_speed_previous=__yy__v1667.image_speed;__yy__v1667.hspeed=0;__yy__v1667.vspeed=0;__yy__v1667.image_speed=0;layer_sprite_speed(__yy__v1667.gmlmy_shadow,__yy__v1667.image_speed);}}};{var __yy__v1668=GetWithArray(110);for(var __yy__v1669 in __yy__v1668){if(!__yy__v1668.hasOwnProperty(__yy__v1669))continue;var __yy__v1670=__yy__v1668[__yy__v1669];{__yy__v1670.gmlimage_speed_previous=__yy__v1670.image_speed;
__yy__v1670.image_speed=0;}}};};};__yy__v1664.gmlstate=10;};}else {{gml_Script_s_save_options(__yy__v1664,_inst);__yy__v1664.gmlstate=__yy__v1664.gmlstate_previous;if(yyfequal(__yy__v1664.gmlstate,2)){{{var __yy__v1671=GetWithArray(106);for(var __yy__v1672 in __yy__v1671){if(!__yy__v1671.hasOwnProperty(__yy__v1672))continue;var __yy__v1673=__yy__v1671[__yy__v1672];{__yy__v1673.hspeed=__yy__v1673.gmlhspeed_previous;__yy__v1673.vspeed=__yy__v1673.gmlvspeed_previous;__yy__v1673.image_speed=__yy__v1673.gmlimage_speed_previous;
layer_sprite_speed(__yy__v1673.gmlmy_shadow,__yy__v1673.image_speed);}}};{var __yy__v1674=GetWithArray(110);for(var __yy__v1675 in __yy__v1674){if(!__yy__v1674.hasOwnProperty(__yy__v1675))continue;var __yy__v1676=__yy__v1674[__yy__v1675];{__yy__v1676.image_speed=__yy__v1676.gmlimage_speed_previous;}}};};};};};}}};}}function gml_Script_s_pause_is_available(_inst,_other){{{var __yy__v1677=GetWithArray(104);for(var __yy__v1678 in __yy__v1677){if(!__yy__v1677.hasOwnProperty(__yy__v1678))continue;var __yy__v1679=__yy__v1677[__yy__v1678];
{if(yyGetBool(global.gmlbrowser)){return false;};if(yyfequal(__yy__v1679.gmlstate,3)){return false;};if(yyGetBool(instance_exists(78))){return false;};if(yyfgreater(__yy__v1679.alarm[__yy_gml_array_check_index(0,__yy__v1679.alarm)],0)){return false;};var ___sw1352___=__yy__v1679.gmlcomm_stage;var ___swc1353___=-1;if(yyCompareVal(___sw1352___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1352___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1352___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1352___,
17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1352___,18,g_GMLMathEpsilon,false)==0){___swc1353___=0;}switch(___swc1353___){case 0:{return false;}};if(yyfgreater(yyInst(_inst,_other,97).gmlgamepractice,0)){return false;};if((yyGetBool(yyfequal(__yy__v1679.gmlstate,2)))&&(yyGetBool(__yy__v1679.gmlkicking))&&(yyGetBool(!yyGetBool(gml_Script_s_cpu_is_kicking_off(__yy__v1679,_inst))))){return false;};return true;}}};}}function gml_Script_s_pause_step(_inst,_other){{if(yyfnotequal(_inst.gmlstate,_inst.gmlpause_state_previous)){
{if(yyfequal(_inst.gmlpause_state_previous,10)){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){{if(yyGetBool(audio_is_paused(18))){audio_resume_sound(18);};audio_resume_all();};};gml_Script_s_pause_options_dismiss(_inst,_other);};};if(yyfequal(_inst.gmlstate,10)){{audio_pause_all();gml_Script_s_pause_options_init(_inst,_other);};};};};_inst.gmlpause_state_previous=_inst.gmlstate;if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
32778)))||(yyGetBool((yyGetBool(yyfequal(_inst.gmlstate,10)))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_back)))))){gml_Script_s_pause_toggle(_inst,_other);};};};}}function gml_Script_s_is_paused_or_just_unpaused(_inst,_other){{{var __yy__v1680=GetWithArray(104);for(var __yy__v1681 in __yy__v1680){if(!__yy__v1680.hasOwnProperty(__yy__v1681))continue;var __yy__v1682=__yy__v1680[__yy__v1681];{return(yyGetBool(yyfequal(__yy__v1682.gmlstate,10)))||(yyGetBool(yyfequal(__yy__v1682.gmlpause_state_previous,
10)));}}};}}function gml_Script_s_draw_pause(_inst,_other){{if(yyfnotequal(_inst.gmlstate,10)){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_set_alpha(1);var gmlpause_text=gml_Script_s_str(_inst,_other,"ui_GamePaused");var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.6);var gmltw=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmlpause_text)),
0.5)),8);draw_sprite_ext(_inst,265,0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfminus(__yy_gml_errCheck(gmlty),8),yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmltw),16)),2),1.1,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlpause_text);}}function gml_Script_s_pause_btn_init(_inst,_other){{var gmlbx=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),50);var gmlby=8;_inst.gmlis_paused=false;_inst.gmlis_avalable=false;instance_create_layer(gmlbx,
gmlby,"Text",24);}}function gml_Script_s_pause_btn_step(_inst,_other){{_inst.gmlis_available=gml_Script_s_pause_is_available(_inst,_other);if((yyGetBool(global.gmlgamepad))||(yyGetBool(!yyGetBool(_inst.gmlis_available)))){return;};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;_inst.gmloffset=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)),2);if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,yyfminus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(_inst.gmloffset)),yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmloffset)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.gmloffset)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmloffset))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_pressed(1)))){gml_Script_s_pause_toggle(_inst,_other);};}}function gml_Script_s_pause_btn_draw_gui(_inst,_other){{if((yyGetBool(global.gmlgamepad))||(yyGetBool(!yyGetBool(_inst.gmlis_available)))){
return;};_inst.gmlis_paused=(yyfequal(yyInst(_inst,_other,104).gmlstate,10)?1:0);draw_sprite_ext(_inst,_inst.sprite_index,_inst.gmlis_paused,_inst.x,_inst.y,1,1,0,16777215,1);}}function gml_Script_s_pause_btn_recenter(_inst,_other){{_inst.x=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),50);}}function gml_Script_s_pause_options_init(_inst,_other){{_inst.gmllayer_id=gml_Script_s_keyboard_custom_layer(_inst,_other);yyInst(_inst,_other,24).gmllayer_id=_inst.gmllayer_id;
var gmlgx=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2);var gmltxt=instance_create_layer(gmlgx,46,yyInst(_inst,_other,24).gmllayer_id,72);yyInst(_inst,_other,gmltxt).image_xscale=3;yyInst(_inst,_other,gmltxt).gmldraw_box=false;yyInst(_inst,_other,gmltxt).gmlhalign=1;yyInst(_inst,_other,gmltxt).gmltext=gml_Script_s_str(_inst,_other,"ui_GamePaused");gml_Script_s_pause_options_add_button(_inst,_other,0,"ui_Zoom",1);gml_Script_s_pause_options_add_button(_inst,_other,1,"ui_Replays",2);gml_Script_s_pause_options_add_button(_inst,
_other,2,"ui_AimingInvert",3);gml_Script_s_pause_options_add_button(_inst,_other,3,"ui_AutoRun",5);gml_Script_s_pause_options_add_button(_inst,_other,4,"ui_GamepadGuides",4);if(yyGetBool(global.gmlexhibition)){gml_Script_s_pause_options_add_quit(_inst,_other);};gml_Script_s_pause_options_update_buttons(_inst,_other);var gmlbase=instance_create_layer(yyfminus(__yy_gml_errCheck(gmlgx),100),30,_inst.gmllayer_id,28);yyInst(_inst,_other,gmlbase).sprite_index=65;yyInst(_inst,_other,gmlbase).image_xscale=12.5;
yyInst(_inst,_other,gmlbase).image_yscale=14.75;yyInst(_inst,_other,gmlbase).gmlaction_draw_gui=kgml_Script_s_pause_options_draw_gui;if(yyGetBool(global.gmlgamepad)){{var __yy__v1683=GetWithArray(yyInst(_inst,_other,24).gmloptions_btns[__yy_gml_array_check_index(0,yyInst(_inst,_other,24).gmloptions_btns)]);for(var __yy__v1684 in __yy__v1683){if(!__yy__v1683.hasOwnProperty(__yy__v1684))continue;var __yy__v1685=__yy__v1683[__yy__v1684];{gml_Script_s_save_last_selected(__yy__v1685,_inst);}}};};}}function gml_Script_s_pause_options_recenter(_inst,
_other){{gml_Script_s_pause_options_dismiss(_inst,_other);gml_Script_s_pause_options_init(_inst,_other);}}function gml_Script_s_pause_options_dismiss(_inst,_other){{if(!yyGetBool(is_undefined(yyInst(_inst,_other,24).gmllayer_id))){layer_destroy(yyInst(_inst,_other,24).gmllayer_id);};}}function gml_Script_s_pause_options_draw_gui(_inst,_other){{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);}}function gml_Script_s_pause_options_layer(_inst,
_other){{var gmllid=layer_get_id("PauseOptions");if(yyfless(gmllid,0)){gmllid=layer_create((-1000),"PauseOptions");};return gmllid;}}function gml_Script_s_pause_options_add_button(_inst,_other,argument0,argument1,argument2){{var gmltx=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2);var gmlty=yyfplus(60,__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(argument0))));var gmltxt=instance_create_layer(yyfminus(__yy_gml_errCheck(gmltx),10),yyfplus(__yy_gml_errCheck(gmlty),16),yyInst(_inst,_other,24).gmllayer_id,
72);var gmlbtn=instance_create_layer(gmltx,gmlty,yyInst(_inst,_other,24).gmllayer_id,39);yyInst(_inst,_other,gmltxt).gmldraw_box=false;yyInst(_inst,_other,gmltxt).gmlhalign=2;yyInst(_inst,_other,gmltxt).image_xscale=2;yyInst(_inst,_other,gmltxt).gmltext=gml_Script_s_str(_inst,_other,argument1);yyInst(_inst,_other,gmlbtn).gmlonClickAction=kgml_Script_s_pause_options_button_action;yyInst(_inst,_other,gmlbtn).gmltype=argument2;yyInst(_inst,_other,24).gmloptions_btns=__yy_gml_array_check(yyInst(_inst,
_other,24).gmloptions_btns,1225146459);yyInst(_inst,_other,24).gmloptions_btns[__yy_gml_array_check_index_set(argument0)]=gmlbtn;}}function gml_Script_s_pause_options_add_quit(_inst,_other){{var gmltx=10;var gmlty=30;var gmlbtn=instance_create_layer(gmltx,gmlty,yyInst(_inst,_other,24).gmllayer_id,34);yyInst(_inst,_other,gmlbtn).gmlonClickAction=kgml_Script_s_pause_options_quit_game;yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_QuitGame");}}function gml_Script_s_pause_options_update_buttons(_inst,
_other){{var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,24).gmloptions_btns));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlbtn=yyInst(_inst,_other,24).gmloptions_btns[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,24).gmloptions_btns)];var ___sw1354___=yyInst(_inst,_other,gmlbtn).gmltype;var ___swc1355___=-1;if(yyCompareVal(___sw1354___,1,g_GMLMathEpsilon,false)==0){___swc1355___=0;}else if(yyCompareVal(___sw1354___,
2,g_GMLMathEpsilon,false)==0){___swc1355___=1;}else if(yyCompareVal(___sw1354___,3,g_GMLMathEpsilon,false)==0){___swc1355___=2;}else if(yyCompareVal(___sw1354___,4,g_GMLMathEpsilon,false)==0){___swc1355___=3;}else if(yyCompareVal(___sw1354___,5,g_GMLMathEpsilon,false)==0){___swc1355___=4;}else if(yyCompareVal(___sw1354___,98,g_GMLMathEpsilon,false)==0){___swc1355___=5;}else if(yyCompareVal(___sw1354___,99,g_GMLMathEpsilon,false)==0){___swc1355___=6;}switch(___swc1355___){case 0:{var ___sw1356___=ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_zoom");var ___swc1357___=-1;if(yyCompareVal(___sw1356___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1356___,"true",g_GMLMathEpsilon,false)==0){___swc1357___=0;}else if(yyCompareVal(___sw1356___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1356___,"false",g_GMLMathEpsilon,false)==0){___swc1357___=1;}switch(___swc1357___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,
_other,"ui_Off");break;}};break;}case 1:{var ___sw1358___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_replays");var ___swc1359___=-1;if(yyCompareVal(___sw1358___,0,g_GMLMathEpsilon,false)==0){___swc1359___=0;}else if(yyCompareVal(___sw1358___,1,g_GMLMathEpsilon,false)==0){___swc1359___=1;}else if(yyCompareVal(___sw1358___,2,g_GMLMathEpsilon,false)==0){___swc1359___=2;}switch(___swc1359___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{
yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Dynamic");break;}case 2:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_EveryPlay");break;}};break;}case 2:{var ___sw1360___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_invert_throw");var ___swc1361___=-1;if(yyCompareVal(___sw1360___,0,g_GMLMathEpsilon,false)==0){___swc1361___=0;}else if(yyCompareVal(___sw1360___,1,g_GMLMathEpsilon,false)==0){___swc1361___=1;}else if(yyCompareVal(___sw1360___,
2,g_GMLMathEpsilon,false)==0){___swc1361___=2;}else if(yyCompareVal(___sw1360___,3,g_GMLMathEpsilon,false)==0){___swc1361___=3;}switch(___swc1361___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Normal");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Inverted");break;}case 2:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_AnalogueL");break;}case 3:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,
"ui_AnalogueR");break;}};if((yyGetBool(!yyGetBool(global.gmlconsole_build)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){yyInst(_inst,_other,gmlbtn).gmlactive=false;};break;}case 3:{var ___sw1362___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_gamepad_guides");var ___swc1363___=-1;if(yyCompareVal(___sw1362___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1362___,"true",g_GMLMathEpsilon,false)==0){___swc1363___=0;}else if(yyCompareVal(___sw1362___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1362___,
"false",g_GMLMathEpsilon,false)==0){___swc1363___=1;}switch(___swc1363___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}};if((yyGetBool(!yyGetBool(global.gmlconsole_build)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){yyInst(_inst,_other,gmlbtn).gmlactive=false;};break;}case 4:{var ___sw1364___=yyInst(_inst,_other,97).gmlop_autorun;var ___swc1365___=-1;if(yyCompareVal(___sw1364___,
true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1364___,"true",g_GMLMathEpsilon,false)==0){___swc1365___=0;}else if(yyCompareVal(___sw1364___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1364___,"false",g_GMLMathEpsilon,false)==0){___swc1365___=1;}switch(___swc1365___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}};if((yyGetBool(!yyGetBool(global.gmlconsole_build)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){
yyInst(_inst,_other,gmlbtn).gmlactive=false;};break;}case 5:{var ___sw1366___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx");var ___swc1367___=-1;if(yyCompareVal(___sw1366___,0,g_GMLMathEpsilon,false)==0){___swc1367___=0;}else if(yyCompareVal(___sw1366___,1,g_GMLMathEpsilon,false)==0){___swc1367___=1;}else if(yyCompareVal(___sw1366___,2,g_GMLMathEpsilon,false)==0){___swc1367___=2;}switch(___swc1367___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");
break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_SoundFX");break;}case 2:{yyInst(_inst,_other,gmlbtn).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_SoundFX")),"\n& "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Music")));break;}};break;}case 6:{var ___sw1368___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_scanlines");var ___swc1369___=-1;if(yyCompareVal(___sw1368___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1368___,
"true",g_GMLMathEpsilon,false)==0){___swc1369___=0;}else if(yyCompareVal(___sw1368___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1368___,"false",g_GMLMathEpsilon,false)==0){___swc1369___=1;}switch(___swc1369___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}};break;}};}};}}function gml_Script_s_pause_options_button_action(_inst,_other){{var ___sw1370___=_inst.gmltype;
var ___swc1371___=-1;if(yyCompareVal(___sw1370___,1,g_GMLMathEpsilon,false)==0){___swc1371___=0;}else if(yyCompareVal(___sw1370___,2,g_GMLMathEpsilon,false)==0){___swc1371___=1;}else if(yyCompareVal(___sw1370___,3,g_GMLMathEpsilon,false)==0){___swc1371___=2;}else if(yyCompareVal(___sw1370___,4,g_GMLMathEpsilon,false)==0){___swc1371___=3;}else if(yyCompareVal(___sw1370___,5,g_GMLMathEpsilon,false)==0){___swc1371___=4;}else if(yyCompareVal(___sw1370___,98,g_GMLMathEpsilon,false)==0){___swc1371___=5;}else if(yyCompareVal(___sw1370___,
99,g_GMLMathEpsilon,false)==0){___swc1371___=6;}switch(___swc1371___){case 0:{{var __yy__v1686=GetWithArray(97);for(var __yy__v1687 in __yy__v1686){if(!__yy__v1686.hasOwnProperty(__yy__v1687))continue;var __yy__v1688=__yy__v1686[__yy__v1687];ds_map_set(__yy__v1688.gmlmap_options,"op_zoom",!yyGetBool(ds_map_find_value(__yy__v1688.gmlmap_options,"op_zoom")));}};break;}case 1:{{var __yy__v1689=GetWithArray(97);for(var __yy__v1690 in __yy__v1689){if(!__yy__v1689.hasOwnProperty(__yy__v1690))continue;var __yy__v1691=__yy__v1689[__yy__v1690];
ds_map_set(__yy__v1691.gmlmap_options,"op_replays",yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1691.gmlmap_options,"op_replays")),1)),3));}};break;}case 2:{{var __yy__v1692=GetWithArray(97);for(var __yy__v1693 in __yy__v1692){if(!__yy__v1692.hasOwnProperty(__yy__v1693))continue;var __yy__v1694=__yy__v1692[__yy__v1693];ds_map_set(__yy__v1694.gmlmap_options,"op_invert_throw",yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1694.gmlmap_options,"op_invert_throw")),
1)),2));}};break;}case 3:{{var __yy__v1695=GetWithArray(97);for(var __yy__v1696 in __yy__v1695){if(!__yy__v1695.hasOwnProperty(__yy__v1696))continue;var __yy__v1697=__yy__v1695[__yy__v1696];ds_map_set(__yy__v1697.gmlmap_options,"op_gamepad_guides",!yyGetBool(ds_map_find_value(__yy__v1697.gmlmap_options,"op_gamepad_guides")));}};break;}case 4:{{var __yy__v1698=GetWithArray(97);for(var __yy__v1699 in __yy__v1698){if(!__yy__v1698.hasOwnProperty(__yy__v1699))continue;var __yy__v1700=__yy__v1698[__yy__v1699];__yy__v1700.gmlop_autorun=!yyGetBool(__yy__v1700.gmlop_autorun);
}};break;}case 5:{{var __yy__v1701=GetWithArray(97);for(var __yy__v1702 in __yy__v1701){if(!__yy__v1701.hasOwnProperty(__yy__v1702))continue;var __yy__v1703=__yy__v1701[__yy__v1702];ds_map_set(__yy__v1703.gmlmap_options,"op_soundfx",yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1703.gmlmap_options,"op_soundfx")),1)),3));}};break;}case 6:{{var __yy__v1704=GetWithArray(97);for(var __yy__v1705 in __yy__v1704){if(!__yy__v1704.hasOwnProperty(__yy__v1705))continue;var __yy__v1706=__yy__v1704[__yy__v1705];
{ds_map_set(__yy__v1706.gmlmap_options,"op_scanlines",!yyGetBool(ds_map_find_value(__yy__v1706.gmlmap_options,"op_scanlines")));yyInst(_inst,_other,99).gmlon=ds_map_find_value(__yy__v1706.gmlmap_options,"op_scanlines");}}};break;}};gml_Script_s_pause_options_update_buttons(_inst,_other);}}function gml_Script_s_pause_options_quit_game(_inst,_other){{gml_Script_s_pause_options_dismiss(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_QuitExhibition"),gml_Script_s_str(_inst,
_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_btn_response_quit_exhibution_cancel,kgml_Script_btn_response_quit_exhibution_confirm,global.gmlc_background,1);}}function gml_Script_btn_response_quit_exhibution_cancel(_inst,_other){{gml_Script_s_pause_options_init(_inst,_other);gml_Script_s_msg_clear(_inst,_other);}}function gml_Script_btn_response_quit_exhibution_confirm(_inst,_other){{room_goto(47);}}function gml_GlobalScript_s_draw_scoreboard_qb_training(_inst,_other){
(_inst.gmls_draw_scoreboard_qb_training=__yy_method(_inst,gml_Script_s_draw_scoreboard_qb_training));}function gml_Script_s_draw_scoreboard_qb_training(_inst,_other){{if(yyfnotequal(yyInst(_inst,_other,97).gmlgamepractice,4)){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);draw_set_alpha(1);draw_rectangle_colour(0,0,display_get_gui_width(),16,0,0,0,0,0);var gmltx=16;var gmlty1=8;var gmltxt=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Score")),
": "),__yy_gml_errCheck(string(_inst.gmlpractice_score_qb_mode)));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmltxt);gmltxt=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Best")),": "),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlqb_training_hiscore)));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),90),gmlty1,gmltxt);draw_set_halign(1);gmltx=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2);var gmltime=yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_string_time(_inst,
_other,_inst.gmlminutes,_inst.gmlseconds)));if(yyfequal(_inst.gmlminutes,0)){{draw_set_color(65535);if(yyfless(_inst.gmlseconds,6)){draw_set_color(255);};};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmltime);draw_set_color(16777215);}}function gml_GlobalScript_s_update_manual_gestures(_inst,_other){(_inst.gmls_update_manual_gestures=__yy_method(_inst,gml_Script_s_update_manual_gestures));}function gml_Script_s_update_manual_gestures(_inst,_other){{global.gmlflickVelX=0;global.gmlflickVelY=0;
{var __yy__v1707=GetWithArray(global.gmlmaster_ball);for(var __yy__v1708 in __yy__v1707){if(!__yy__v1707.hasOwnProperty(__yy__v1708))continue;var __yy__v1709=__yy__v1707[__yy__v1708];if(yyfequal(__yy__v1709.gmlstate,2)){{yyInst(_inst,_other,104).gmlmobbrow_start_time=0;return;};};}};var ___sw1374___=_inst.gmlmobbrow_start_time;var ___swc1375___=-1;if(yyCompareVal(___sw1374___,0,g_GMLMathEpsilon,false)==0){___swc1375___=0;}switch(___swc1375___){case 0:{if(yyGetBool(mouse_check_button(1))){{_inst.gmlmobbrow_start_time=g_pBuiltIn.get_current_time();
_inst.gmlmobbrow_start_x=g_pBuiltIn.get_mouse_x();_inst.gmlmobbrow_start_y=g_pBuiltIn.get_mouse_y();};};break;}default :{if(!yyGetBool(mouse_check_button(1))){{_inst.gmlmobbrow_start_time=0;if(yyfgreater(point_distance(_inst.gmlmobbrow_start_x,_inst.gmlmobbrow_start_y,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y()),20)){{var gmldir=point_direction(_inst.gmlmobbrow_start_x,_inst.gmlmobbrow_start_y,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y());global.gmlflickVelX=yyftime(__yy_gml_errCheck(dcos(gmldir)),
2);global.gmlflickVelY=yyftime(__yy_gml_errCheck(dsin(gmldir)),(-2));};};};};break;}};}}function gml_GlobalScript_s_obj_controller_draw_begin(_inst,_other){(_inst.gmls_obj_controller_draw_begin=__yy_method(_inst,gml_Script_s_obj_controller_draw_begin));}function gml_Script_s_obj_controller_draw_begin(_inst,_other){{if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{draw_sprite_ext(_inst,1,_inst.gmlfield_type,0,66,2,2,0,16777215,1);shader_set(0);shader_set_uniform_f(global.gmlcolorHelmet,1,0,
0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlcolorPants_b,0,1,1);shader_set_uniform_f(global.gmlcolorCleats,1,1,0);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlshd_helmet[__yy_gml_array_check_index(2,_inst.gmlshd_helmet)],_inst.gmlshd_helmet[__yy_gml_array_check_index(1,_inst.gmlshd_helmet)],_inst.gmlshd_helmet[__yy_gml_array_check_index(0,_inst.gmlshd_helmet)]);shader_set_uniform_f(global.gmlreplaceShirt,
_inst.gmlshd_shirt[__yy_gml_array_check_index(2,_inst.gmlshd_shirt)],_inst.gmlshd_shirt[__yy_gml_array_check_index(1,_inst.gmlshd_shirt)],_inst.gmlshd_shirt[__yy_gml_array_check_index(0,_inst.gmlshd_shirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlshd_pants[__yy_gml_array_check_index(2,_inst.gmlshd_pants)],_inst.gmlshd_pants[__yy_gml_array_check_index(1,_inst.gmlshd_pants)],_inst.gmlshd_pants[__yy_gml_array_check_index(0,_inst.gmlshd_pants)]);shader_set_uniform_f(global.gmlreplacePants_b,
0.9,0.9,0.9);shader_set_uniform_f(global.gmlreplaceCleats,0.1,0.1,0.1);draw_sprite_ext(_inst,2,0,0,0,2,2,0,16777215,1);draw_sprite_ext(_inst,28,0,998,64,2,2,0,16777215,1);var gmli=_inst.gmlcheer_frame;if(yyfless(camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]),1300)){{draw_sprite_ext(_inst,_inst.gmlspr_cl1,gmli,250,100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl3,yyfplus(__yy_gml_errCheck(gmli),2.5),220,110,2,2,0,16777215,1);draw_sprite_ext(_inst,
_inst.gmlspr_cl5,gmli,190,100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl2,yyfplus(__yy_gml_errCheck(gmli),7.5),160,110,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl4,yyfplus(__yy_gml_errCheck(gmli),5),130,100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl2,gmli,250,528,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl4,yyfplus(__yy_gml_errCheck(gmli),2.5),220,518,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl6,gmli,190,528,2,2,0,16777215,1);draw_sprite_ext(_inst,
_inst.gmlspr_cl1,yyfplus(__yy_gml_errCheck(gmli),7.5),160,518,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl3,yyfplus(__yy_gml_errCheck(gmli),5),130,528,2,2,0,16777215,1);};}else {{draw_sprite_ext(_inst,_inst.gmlspr_cl6,gmli,2350,100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl4,yyfplus(__yy_gml_errCheck(gmli),2.5),2380,110,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl2,gmli,2410,100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl1,yyfplus(__yy_gml_errCheck(gmli),
7.5),2440,110,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl3,yyfplus(__yy_gml_errCheck(gmli),5),2470,100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl5,gmli,2350,528,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl3,yyfplus(__yy_gml_errCheck(gmli),2.5),2380,518,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl1,gmli,2410,528,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl6,yyfplus(__yy_gml_errCheck(gmli),7.5),2440,518,2,2,0,16777215,1);draw_sprite_ext(_inst,
_inst.gmlspr_cl4,yyfplus(__yy_gml_errCheck(gmli),5),2470,528,2,2,0,16777215,1);};};shader_reset();};}else {if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{draw_sprite_ext(_inst,2,2,0,0,2,2,0,16777215,1);draw_sprite_ext(_inst,1,_inst.gmlfield_type,0,66,2,2,0,16777215,1);};}else {{draw_sprite_ext(_inst,2,1,0,0,2,2,0,16777215,1);draw_sprite_ext(_inst,1,_inst.gmlfield_type,0,66,2,2,0,16777215,1);};};};if((yyGetBool(yyfnotequal(_inst.gmlfield_type,5)))&&(yyGetBool(yyfnotequal(_inst.gmlfield_type,6)))){
{draw_sprite_ext(_inst,29,_inst.gmlfield_type,100,132,2,2,0,_inst.gmlc_endzone,1);draw_sprite_ext(_inst,29,_inst.gmlfield_type,2302,132,2,2,0,_inst.gmlc_endzone,1);};};var ___sw1378___=_inst.gmlstate;var ___swc1379___=-1;if(yyCompareVal(___sw1378___,10,g_GMLMathEpsilon,false)==0){___swc1379___=0;}else if(yyCompareVal(___sw1378___,2,g_GMLMathEpsilon,false)==0){___swc1379___=1;}else if(yyCompareVal(___sw1378___,3,g_GMLMathEpsilon,false)==0){___swc1379___=2;}switch(___swc1379___){case 0:{if(yyfequal(_inst.gmlstate_previous,
1)){break;};}case 1:{if(yyGetBool(_inst.gmlkicking)){gml_Script_s_draw_kick_cone(_inst,_other);}else {if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){gml_Script_s_draw_scrimmage(_inst,_other);};};break;}case 2:{if((yyGetBool(yyfnotequal(_inst.gmllast_play,1)))&&(yyGetBool(yyfnotequal(global.gmlreplay_end,6)))&&(yyGetBool(yyfnotequal(global.gmlreplay_end,7)))){gml_Script_s_draw_scrimmage(_inst,_other);};return;break;}default :{return;break;}};if(yyfnotequal(yyInst(_inst,_other,97).gmlgamepractice,
2)){{{var __yy__v1710=GetWithArray(global.gmlmaster_ball);for(var __yy__v1711 in __yy__v1710){if(!__yy__v1710.hasOwnProperty(__yy__v1711))continue;var __yy__v1712=__yy__v1710[__yy__v1711];{if(yyfgreater(__yy__v1712.gmlxdead,0)){{var gmlcol=255;if(yyfequal(__yy__v1712.gmlstate,14)){gmlcol=65280;};draw_sprite_ext(__yy__v1712,69,0,__yy__v1712.gmlxdead,__yy__v1712.gmlydead,2,2,0,gmlcol,1);};};}}};};}else {if((yyGetBool(yyfgreater(yyInst(_inst,_other,104).gmlpractice_success,0)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){
{{var __yy__v1713=GetWithArray(global.gmlmaster_ball);for(var __yy__v1714 in __yy__v1713){if(!__yy__v1713.hasOwnProperty(__yy__v1714))continue;var __yy__v1715=__yy__v1713[__yy__v1714];{if(yyfequal(__yy__v1715.gmlstate,2)){{var gmls=yyfplus(2.5,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),100))),0.5)));var gmlr=0;if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,1)){gmlr=180;};draw_sprite_ext(__yy__v1715,73,0,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,__yy__v1715.gmlholder).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,104).gmldrivedir),(-100)))),yyInst(_inst,_other,__yy__v1715.gmlholder).y,gmls,gmls,gmlr,16777215,0.5);};};}}};};};};}}function gml_Object_obj_rm_qb_postmatch_Create_0(_inst,_other){_inst.gmlstage_time=g_pBuiltIn.get_current_time();_inst.gmlstage=0;_inst.gmldelay=1000;_inst.gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);var gmlrating=gml_Script_s_get_match_rating(_inst,_other,_inst.gmlpmap);_inst.gmlcoach_effect=yyfminus(__yy_gml_errCheck(gmlrating),
7);_inst.gmlfan_effect=gml_Script_s_get_postmatch_fans_qb(_inst,_other);var gmlteam_effect=yyfminus(__yy_gml_errCheck(gml_Script_s_get_morale(_inst,_other)),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlprematch_team_morale_qb));_inst.gmlbonus=yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlqb_tdbonus),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_touchdowns")));if(yyfequal(gml_Script_s_get_human_fixture_by_week(_inst,_other,yyInst(_inst,_other,97).gmlweek),(-4))){{yyInst(_inst,_other,
100670).gmltext=gml_Script_s_str(_inst,_other,"ui_ByeWeek");yyInst(_inst,_other,100674).visible=false;{var __yy__v1716=GetWithArray(21);for(var __yy__v1717 in __yy__v1716){if(!__yy__v1716.hasOwnProperty(__yy__v1717))continue;var __yy__v1718=__yy__v1716[__yy__v1717];__yy__v1718.y=yyfminus(__yy__v1718.y,40);}};{var __yy__v1719=GetWithArray(66);for(var __yy__v1720 in __yy__v1719){if(!__yy__v1719.hasOwnProperty(__yy__v1720))continue;var __yy__v1721=__yy__v1719[__yy__v1720];__yy__v1721.y=yyfminus(__yy__v1721.y,
40);}};{var __yy__v1722=GetWithArray(74);for(var __yy__v1723 in __yy__v1722){if(!__yy__v1722.hasOwnProperty(__yy__v1723))continue;var __yy__v1724=__yy__v1722[__yy__v1723];__yy__v1724.y=yyfminus(__yy__v1724.y,40);}};gmlrating=0;_inst.gmlcoach_effect=0;_inst.gmlfan_effect=0;gmlteam_effect=0;_inst.gmlbonus=0;_inst.gmlstage=4;_inst.gmlstage_time=yyfminus(_inst.gmlstage_time,yyftime(__yy_gml_errCheck(_inst.gmlstage),__yy_gml_errCheck(_inst.gmldelay)));yyInst(_inst,_other,97).gmlprematch_team_morale_qb=gml_Script_s_get_morale(_inst,
_other);};};yyInst(_inst,_other,100676).visible=false;yyInst(_inst,_other,100677).visible=false;yyInst(_inst,_other,100678).visible=false;yyInst(_inst,_other,100679).visible=false;yyInst(_inst,_other,100680).visible=false;yyInst(_inst,_other,100681).visible=false;yyInst(_inst,_other,100676).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_GameRating"))," "),__yy_gml_errCheck(string(gmlrating)));yyInst(_inst,_other,100677).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Coach")),(yyfgreater(_inst.gmlcoach_effect,0)?" +":" ")),__yy_gml_errCheck(string(_inst.gmlcoach_effect)));yyInst(_inst,_other,100678).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Team")),(yyfgreaterequal(gmlteam_effect,0)?" +":" ")),__yy_gml_errCheck(string(gmlteam_effect)));yyInst(_inst,_other,100679).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Fans")),(yyfgreaterequal(_inst.gmlfan_effect,0)?" +":" ")),__yy_gml_errCheck(string(_inst.gmlfan_effect)));
yyInst(_inst,_other,100680).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Salary"))," +"),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlqb_salary)));yyInst(_inst,_other,100681).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_TouchdownBonus"))," ("),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"stat_touchdowns")))),") +"),__yy_gml_errCheck(string(_inst.gmlbonus)));yyInst(_inst,_other,100682).visible=false;
yyInst(_inst,_other,100684).gmlactive=false;yyInst(_inst,_other,100684).gmlpercent=yyInst(_inst,_other,97).gmlprematch_team_morale_qb;yyInst(_inst,_other,100684).gmltext=yyfplus(__yy_gml_errCheck(string(round(yyInst(_inst,_other,97).gmlprematch_team_morale_qb))),"%");}function gml_Object_obj_rm_qb_postmatch_Step_0(_inst,_other){{var __yy__v1725=GetWithArray(78);for(var __yy__v1726 in __yy__v1725){if(!__yy__v1725.hasOwnProperty(__yy__v1726))continue;var __yy__v1727=__yy__v1725[__yy__v1726];{if(yyfless(__yy__v1727.depth,
_inst.depth)){{__yy__v1727.gmlstage_time=g_pBuiltIn.get_current_time();return;};};}}};yyInst(_inst,_other,100672).gmltext=gml_Script_s_get_credit(_inst,_other);if(yyGetBool(mouse_check_button(1))){_inst.gmldelay=250;};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlstage_time),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlstage),1)),__yy_gml_errCheck(_inst.gmldelay)))))){return;};(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),
g_yyPrePostObject__);var gmldx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100672).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100672).sprite_width),0.5)));var gmldy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100672).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100672).sprite_height),0.5)));var ___sw1382___=_inst.gmlstage;var ___swc1383___=-1;if(yyCompareVal(___sw1382___,0,g_GMLMathEpsilon,false)==0){___swc1383___=0;}else if(yyCompareVal(___sw1382___,
1,g_GMLMathEpsilon,false)==0){___swc1383___=1;}else if(yyCompareVal(___sw1382___,2,g_GMLMathEpsilon,false)==0){___swc1383___=2;}else if(yyCompareVal(___sw1382___,3,g_GMLMathEpsilon,false)==0){___swc1383___=3;}else if(yyCompareVal(___sw1382___,4,g_GMLMathEpsilon,false)==0){___swc1383___=4;}else if(yyCompareVal(___sw1382___,5,g_GMLMathEpsilon,false)==0){___swc1383___=5;}else if(yyCompareVal(___sw1382___,6,g_GMLMathEpsilon,false)==0){___swc1383___=6;}else if(yyCompareVal(___sw1382___,7,g_GMLMathEpsilon,false)==0){
___swc1383___=7;}else if(yyCompareVal(___sw1382___,8,g_GMLMathEpsilon,false)==0){___swc1383___=8;}switch(___swc1383___){case 0:{break;}case 1:{yyInst(_inst,_other,100676).visible=true;break;}case 2:{yyInst(_inst,_other,100677).visible=true;yyInst(_inst,_other,97).gmlrelationship_boss=clamp(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlrelationship_boss),__yy_gml_errCheck(_inst.gmlcoach_effect)),1,100);break;}case 3:{yyInst(_inst,_other,100678).visible=true;yyInst(_inst,_other,100684).gmlactive=true;
break;}case 4:{yyInst(_inst,_other,100679).visible=true;yyInst(_inst,_other,97).gmlfans=clamp(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfans),__yy_gml_errCheck(_inst.gmlfan_effect)),1,100);if(yyfgreaterequal(yyInst(_inst,_other,97).gmlfans,100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FANS100");};break;}case 5:{yyInst(_inst,_other,100680).visible=true;var gmltob=100680;gml_Script_s_create_credit(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmltob).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,yyInst(_inst,_other,gmltob).gmltext)),0.5))),yyInst(_inst,_other,gmltob).y,gmldx,gmldy,yyInst(_inst,_other,97).gmlqb_salary,1,(-4),true);break;}case 6:{yyInst(_inst,_other,100681).visible=true;var gmltob=100681;gml_Script_s_create_credit(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmltob).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,gmltob).gmltext)),0.5))),yyInst(_inst,_other,gmltob).y,gmldx,gmldy,_inst.gmlbonus,1,
(-4),true);break;}case 7:{break;}case 8:{yyInst(_inst,_other,100682).visible=true;break;}};}function gml_Object_obj_rm_qb_contract_Create_0(_inst,_other){gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}function gml_Object_obj_facility_Draw_0(_inst,_other){}function gml_Object_obj_facility_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),
global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),16);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),8),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),8),__yy_gml_errCheck(gmlbw)),yyfplus(__yy_gml_errCheck(_inst.y),24),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,
global.gmlc_backfill,0);gmlbw=yyfminus(gmlbw,4);var gmlprc=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),10)),__yy_gml_errCheck(_inst.gmlpercent)),1,gmlbw);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),10),yyfplus(__yy_gml_errCheck(_inst.y),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),22),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);var gmlsw=yyfdivide(__yy_gml_errCheck(gmlbw),10);
var gmli=0;for(;yyfless(gmli,9);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_line_width_color(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(_inst.y),24),2,global.gmlc_backfill,global.gmlc_backfill);gmlsw=yyfplus(gmlsw,yyfdivide(__yy_gml_errCheck(gmlbw),10));}};}function gml_Object_obj_facility_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlpercent=0;_inst.gmlcolour=255;}function gml_Object_obj_rm_qb_shopping_Create_0(_inst,_other){{var __yy__v1728=GetWithArray(97);for(var __yy__v1729 in __yy__v1728){if(!__yy__v1728.hasOwnProperty(__yy__v1729))continue;var __yy__v1730=__yy__v1728[__yy__v1729];{yyInst(_inst,_other,100694).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100695).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100696).gmlcolour=global.gmlc_background;
var ___sw1386___=__yy__v1730.gmlshopping_type;var ___swc1387___=-1;if(yyCompareVal(___sw1386___,0,g_GMLMathEpsilon,false)==0){___swc1387___=0;}else if(yyCompareVal(___sw1386___,1,g_GMLMathEpsilon,false)==0){___swc1387___=1;}else if(yyCompareVal(___sw1386___,2,g_GMLMathEpsilon,false)==0){___swc1387___=2;}switch(___swc1387___){case 0:{yyInst(_inst,_other,100694).gmlcolour=global.gmlc_primary;break;}case 1:{yyInst(_inst,_other,100695).gmlcolour=global.gmlc_primary;break;}case 2:{yyInst(_inst,_other,100696).gmlcolour=global.gmlc_primary;
break;}};}}};gml_Script_s_update_shopping_buttons(_inst,_other);}function gml_Object_obj_rm_qb_shopping_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmllist_shop=0;}function gml_Object_obj_exhibition_postmatch_Create_0(_inst,_other){{var __yy__v1731=GetWithArray(97);for(var __yy__v1732 in __yy__v1731){if(!__yy__v1731.hasOwnProperty(__yy__v1732))continue;var __yy__v1733=__yy__v1731[__yy__v1732];{yyInst(_inst,_other,100800).gmlteamnames=__yy_gml_array_check(yyInst(_inst,_other,100800).gmlteamnames,
3991503169);yyInst(_inst,_other,100800).gmlteamnames[__yy_gml_array_check_index_set(0)]=ds_map_find_value(__yy__v1733.gmlteam[__yy_gml_array_check_index(0,__yy__v1733.gmlteam)],"tla");yyInst(_inst,_other,100800).gmlteamnames[__yy_gml_array_check_index_set(1)]=ds_map_find_value(__yy__v1733.gmlteam[__yy_gml_array_check_index(1,__yy__v1733.gmlteam)],"tla");yyInst(_inst,_other,100800).gmlratings1=__yy_gml_array_check(yyInst(_inst,_other,100800).gmlratings1,3007593930);yyInst(_inst,_other,100800).gmlratings1[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(__yy__v1733,
_inst,__yy__v1733.gmlteam[__yy_gml_array_check_index(0,__yy__v1733.gmlteam)]);yyInst(_inst,_other,100800).gmlratings1[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(__yy__v1733,_inst,__yy__v1733.gmlteam[__yy_gml_array_check_index(0,__yy__v1733.gmlteam)]);yyInst(_inst,_other,100800).gmlratings2=__yy_gml_array_check(yyInst(_inst,_other,100800).gmlratings2,2557046281);yyInst(_inst,_other,100800).gmlratings2[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(__yy__v1733,
_inst,__yy__v1733.gmlteam[__yy_gml_array_check_index(1,__yy__v1733.gmlteam)]);yyInst(_inst,_other,100800).gmlratings2[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(__yy__v1733,_inst,__yy__v1733.gmlteam[__yy_gml_array_check_index(1,__yy__v1733.gmlteam)]);yyInst(_inst,_other,100800).gmlscores1=__yy_gml_array_create([__yy__v1733.gmlqtr_scores0[__yy_gml_array_check_index(0,__yy__v1733.gmlqtr_scores0)],__yy__v1733.gmlqtr_scores0[__yy_gml_array_check_index(1,__yy__v1733.gmlqtr_scores0)],
__yy__v1733.gmlqtr_scores0[__yy_gml_array_check_index(2,__yy__v1733.gmlqtr_scores0)],__yy__v1733.gmlqtr_scores0[__yy_gml_array_check_index(3,__yy__v1733.gmlqtr_scores0)],__yy__v1733.gmltscore[__yy_gml_array_check_index(0,__yy__v1733.gmltscore)]]);yyInst(_inst,_other,100800).gmlscores2=__yy_gml_array_create([__yy__v1733.gmlqtr_scores1[__yy_gml_array_check_index(0,__yy__v1733.gmlqtr_scores1)],__yy__v1733.gmlqtr_scores1[__yy_gml_array_check_index(1,__yy__v1733.gmlqtr_scores1)],__yy__v1733.gmlqtr_scores1[__yy_gml_array_check_index(2,
__yy__v1733.gmlqtr_scores1)],__yy__v1733.gmlqtr_scores1[__yy_gml_array_check_index(3,__yy__v1733.gmlqtr_scores1)],__yy__v1733.gmltscore[__yy_gml_array_check_index(1,__yy__v1733.gmltscore)]]);}}};}function gml_Object_obj_exhibition_postmatch_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstage=0;_inst.gmlstage_time=0;}function gml_Object_obj_negotiate_num_Create_0(_inst,_other){_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=0;
_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(2)]=0;gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));}function gml_Object_obj_negotiate_num_Step_0(_inst,_other){var gmldes_scl=max(0,yyfminus(2,__yy_gml_errCheck(abs(yyftime(__yy_gml_errCheck(_inst.gmlposition),
0.4)))));_inst.gmlscl=lerp(_inst.gmlscl,gmldes_scl,0.1);var gmlbuf=yyfminus(78,__yy_gml_errCheck(abs(yyftime(__yy_gml_errCheck(_inst.gmlposition),5.5))));var gmldesx=yyfplus(240,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlbuf),__yy_gml_errCheck(_inst.gmlposition))));_inst.x=lerp(_inst.x,gmldesx,0.1);_inst.y=144;}function gml_Object_obj_negotiate_num_Draw_64(_inst,_other){shader_set(0);shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,
1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,
_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);draw_sprite_ext(_inst,231,0,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.gmlscl),1),yyfplus(__yy_gml_errCheck(_inst.gmlscl),1),0,16777215,1);shader_reset();draw_set_font(1);draw_set_halign(1);draw_set_valign(1);if((yyGetBool(yyfless(_inst.gmlposition,0)))||(yyGetBool(_inst.gmlrevealed))){gml_Script_draw_hd_text_transformed(_inst,
_other,_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(3,__yy_gml_errCheck(_inst.gmlscl)))),string(_inst.gmlnumber),_inst.gmlscl,_inst.gmlscl,0);}else {gml_Script_draw_hd_text_transformed(_inst,_other,_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(3,__yy_gml_errCheck(_inst.gmlscl)))),"?",_inst.gmlscl,_inst.gmlscl,0);};}function gml_Object_obj_negotiate_num_Draw_0(_inst,_other){}function gml_Object_obj_negotiate_num_PreCreate_0(_inst,_other){event_inherited(_inst,
_other);_inst.gmlnumber=0;_inst.gmlscl=2;_inst.gmlposition=0;_inst.gmlrevealed=false;}function gml_Object_obj_halloffame_rm_Create_0(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,_inst.gmlrm_halloffame_achievements_btn).x=yyInst(_inst,_other,_inst.gmlrm_halloffame_retrobowls_btn).x;yyInst(_inst,_other,_inst.gmlrm_halloffame_retrobowls_btn).visible=false;};};}function gml_Object_obj_life_Create_0(_inst,_other){yyInst(_inst,_other,100654).gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Happiness"))," "),__yy_gml_errCheck(string(round(gml_Script_s_get_happiness(_inst,_other))))),"%");yyInst(_inst,_other,100669).gmltext=string(yyInst(_inst,_other,97).gmlqb_nrg);if(yyfgreater(gml_Script_s_get_qb_energy(_inst,_other),99)){yyInst(_inst,_other,100665).gmlactive=false;};}function gml_Object_obj_news_dyn_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=(-1);
_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=(-1);_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=(-1);_inst.gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,_other,_inst.gmluniform).visible=false;}function gml_Object_obj_news_dyn_Draw_64(_inst,_other){draw_sprite_ext(_inst,147,0,0,0,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlbg_colour,_inst.gmlbg_alpha);
var ___sw1390___=_inst.gmlmsg_type;var ___swc1391___=-1;if(yyCompareVal(___sw1390___,"web",g_GMLMathEpsilon,false)==0){___swc1391___=0;}switch(___swc1391___){case 0:{draw_sprite(_inst,213,0,0,0);break;}};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_set_color(16777215);var gmlsep=(-1);if(yyfgreater(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width),80)){gmlsep=12;};gml_Script_draw_hd_text_ext(_inst,_other,270,160,_inst.gmltext,gmlsep,
_inst.gmlmsg_width);gml_Script_s_draw_player_image(_inst,_other,36,132,_inst.gmlpmap,2);}function gml_Object_obj_news_dyn_Draw_0(_inst,_other){}function gml_Object_obj_news_dyn_KeyPress_27(_inst,_other){room_goto(14);}function gml_Object_obj_news_dyn_CleanUp_0(_inst,_other){if(yyGetBool(ds_exists(_inst.gmlpmap,1))){{ds_map_destroy(_inst.gmlpmap);_inst.gmlpmap=(-1);};};}function gml_Object_obj_news_dyn_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext="0";_inst.gmlmsg_width=306;_inst.gmlmsg_type="";
_inst.gmlbg_colour=global.gmlc_background;_inst.gmlbg_alpha=0.8;_inst.gmlpmap=(-1);}function gml_Object_obj_meter_happiness_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_happiness(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Happiness"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_happiness_Step_0(_inst,
_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_happiness(_inst,_other),0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Happiness"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_college_nfl_draft_Create_0(_inst,_other){gml_Script_s_college_draft_refresh(_inst,_other);}function gml_Object_obj_nx_Create_0(_inst,
_other){gml_Script_s_nx_init(_inst,_other);}function gml_Object_obj_btn_goforit_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_GoForIt");}function gml_Object_obj_btn_goforit_Step_0(_inst,_other){{var __yy__v1734=GetWithArray(78);for(var __yy__v1735 in __yy__v1734){if(!__yy__v1734.hasOwnProperty(__yy__v1735))continue;var __yy__v1736=__yy__v1734[__yy__v1735];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;
if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){gml_Script_btn_match_goforit(_inst,_other);};};}else {{if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_released(1)))){gml_Script_btn_match_goforit(_inst,_other);};};};}function gml_Object_obj_btn_goforit_Draw_64(_inst,_other){if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};{var __yy__v1737=GetWithArray(78);for(var __yy__v1738 in __yy__v1737){if(!__yy__v1737.hasOwnProperty(__yy__v1738))continue;var __yy__v1739=__yy__v1737[__yy__v1738];return;}};draw_set_font(global.gmlfnt_small_flex);
draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_goforit_Draw_0(_inst,_other){}function gml_Object_obj_btn_goforit_Draw_75(_inst,_other){if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};event_inherited(_inst,_other);}function gml_Object_obj_btn_goforit_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_tos=0;}function gml_Object_obj_halloffame_pr_rm_Create_0(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,_inst.gmlhalloffame_pr_achievements_btn).x=yyInst(_inst,_other,_inst.gmlhalloffame_pr_retrobowl_btn).x;yyInst(_inst,_other,_inst.gmlhalloffame_pr_retrobowl_btn).visible=false;};};}function gml_Object_obj_options_controls_Create_0(_inst,_other){gml_Script_slog(_inst,
_other,"obj_options_controls.create");gml_Script_s_update_control_screen(_inst,_other,1);}function gml_Object_obj_meter_conditionQB_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_qb_energy(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Condition"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlcolour=gml_Script_s_get_condition_colour(_inst,_other,_inst.gmlold_percent,65280);}function gml_Object_obj_meter_conditionQB_Step_0(_inst,
_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_qb_energy(_inst,_other),0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Condition"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlcolour=gml_Script_s_get_condition_colour(_inst,_other,_inst.gmlold_percent,65280);}function gml_Object_obj_rm_exhibition_Create_0(_inst,_other){gml_Script_s_set_up_uniforms_exhibition(_inst,_other);yyInst(_inst,_other,97).gmlsim_action=false;
_inst.gmlteam0=yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlteam)];_inst.gmlteam1=yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlteam)];var ___sw1400___=yyInst(_inst,_other,97).gmlforce_uniform_sel1;var ___swc1401___=-1;if(yyCompareVal(___sw1400___,0,g_GMLMathEpsilon,false)==0){___swc1401___=0;}else if(yyCompareVal(___sw1400___,1,g_GMLMathEpsilon,false)==0){___swc1401___=1;}else if(yyCompareVal(___sw1400___,2,g_GMLMathEpsilon,
false)==0){___swc1401___=2;}else if(yyCompareVal(___sw1400___,3,g_GMLMathEpsilon,false)==0){___swc1401___=3;}switch(___swc1401___){case 0:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100772,1,"");break;}case 1:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100772,0,"");break;}case 2:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100772,2,"");break;}case 3:{gml_Script_s_load_uniform_file2(_inst,
_other,ds_map_find_value(_inst.gmlteam0,"uid"),100772,3,"");break;}};var ___sw1402___=yyInst(_inst,_other,97).gmlforce_uniform_sel2;var ___swc1403___=-1;if(yyCompareVal(___sw1402___,0,g_GMLMathEpsilon,false)==0){___swc1403___=0;}else if(yyCompareVal(___sw1402___,1,g_GMLMathEpsilon,false)==0){___swc1403___=1;}else if(yyCompareVal(___sw1402___,2,g_GMLMathEpsilon,false)==0){___swc1403___=2;}else if(yyCompareVal(___sw1402___,3,g_GMLMathEpsilon,false)==0){___swc1403___=3;}switch(___swc1403___){case 0:{gml_Script_s_load_uniform_file2(_inst,
_other,ds_map_find_value(_inst.gmlteam1,"uid"),100773,0,"");break;}case 1:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100773,1,"");break;}case 2:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100773,2,"");break;}case 3:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100773,3,"");break;}};var ___sw1404___=yyInst(_inst,_other,97).gmlforce_uniform_sel1;var ___swc1405___=-1;if(yyCompareVal(___sw1404___,
0,g_GMLMathEpsilon,false)==0){___swc1405___=0;}else if(yyCompareVal(___sw1404___,1,g_GMLMathEpsilon,false)==0){___swc1405___=1;}else if(yyCompareVal(___sw1404___,2,g_GMLMathEpsilon,false)==0){___swc1405___=2;}else if(yyCompareVal(___sw1404___,3,g_GMLMathEpsilon,false)==0){___swc1405___=3;}switch(___swc1405___){case 0:{yyInst(_inst,_other,100777).gmltext=gml_Script_s_str(_inst,_other,"ui_Away");break;}case 1:{yyInst(_inst,_other,100777).gmltext=gml_Script_s_str(_inst,_other,"ui_Home");break;}case 2:{yyInst(_inst,
_other,100777).gmltext=gml_Script_s_str(_inst,_other,"ui_Alternate");break;}case 3:{yyInst(_inst,_other,100777).gmltext=gml_Script_s_str(_inst,_other,"ui_Rush");break;}};var ___sw1406___=yyInst(_inst,_other,97).gmlforce_uniform_sel2;var ___swc1407___=-1;if(yyCompareVal(___sw1406___,0,g_GMLMathEpsilon,false)==0){___swc1407___=0;}else if(yyCompareVal(___sw1406___,1,g_GMLMathEpsilon,false)==0){___swc1407___=1;}else if(yyCompareVal(___sw1406___,2,g_GMLMathEpsilon,false)==0){___swc1407___=2;}else if(yyCompareVal(___sw1406___,
3,g_GMLMathEpsilon,false)==0){___swc1407___=3;}switch(___swc1407___){case 0:{yyInst(_inst,_other,100778).gmltext=gml_Script_s_str(_inst,_other,"ui_Home");break;}case 1:{yyInst(_inst,_other,100778).gmltext=gml_Script_s_str(_inst,_other,"ui_Away");break;}case 2:{yyInst(_inst,_other,100778).gmltext=gml_Script_s_str(_inst,_other,"ui_Alternate");break;}case 3:{yyInst(_inst,_other,100778).gmltext=gml_Script_s_str(_inst,_other,"ui_Rush");break;}};_inst.gmldefense=__yy_gml_array_check(_inst.gmldefense,2468049442);
_inst.gmldefense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam0);_inst.gmloffense=__yy_gml_array_check(_inst.gmloffense,2881329983);_inst.gmloffense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(_inst,_other,_inst.gmlteam0);_inst.gmldefense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam1);_inst.gmloffense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_offense(_inst,_other,_inst.gmlteam1);
{var __yy__v1740=GetWithArray(97);for(var __yy__v1741 in __yy__v1740){if(!__yy__v1740.hasOwnProperty(__yy__v1741))continue;var __yy__v1742=__yy__v1740[__yy__v1741];{__yy__v1742.gmlcol_helmet_home=yyInst(_inst,_other,100773).gmlhelmet;__yy__v1742.gmlcol_logo_home=yyInst(_inst,_other,100773).gmllogo;__yy__v1742.gmlcol_shirt_home=yyInst(_inst,_other,100773).gmlshirt;__yy__v1742.gmlcol_sleeve_home=yyInst(_inst,_other,100773).gmlsleeve;__yy__v1742.gmlcol_pants_home=yyInst(_inst,_other,100773).gmlpants;__yy__v1742.gmlcol_pants_home_b=yyInst(_inst,
_other,100773).gmlpants_b;__yy__v1742.gmlcol_stripe_home=yyInst(_inst,_other,100773).gmlstripe;__yy__v1742.gmlcol_socks1_home=yyInst(_inst,_other,100773).gmlsocks1;__yy__v1742.gmlcol_socks2_home=yyInst(_inst,_other,100773).gmlsocks2;__yy__v1742.gmlcol_endzone_home=yyInst(_inst,_other,100773).gmlendzone;__yy__v1742.gmlcol_helmet_away=yyInst(_inst,_other,100772).gmlhelmet;__yy__v1742.gmlcol_logo_away=yyInst(_inst,_other,100772).gmllogo;__yy__v1742.gmlcol_shirt_away=yyInst(_inst,_other,100772).gmlshirt;
__yy__v1742.gmlcol_sleeve_away=yyInst(_inst,_other,100772).gmlsleeve;__yy__v1742.gmlcol_pants_away=yyInst(_inst,_other,100772).gmlpants;__yy__v1742.gmlcol_pants_away_b=yyInst(_inst,_other,100772).gmlpants_b;__yy__v1742.gmlcol_stripe_away=yyInst(_inst,_other,100772).gmlstripe;__yy__v1742.gmlcol_socks1_away=yyInst(_inst,_other,100772).gmlsocks1;__yy__v1742.gmlcol_socks2_away=yyInst(_inst,_other,100772).gmlsocks2;__yy__v1742.gmlcol_endzone_away=yyInst(_inst,_other,100772).gmlendzone;}}};yyInst(_inst,
_other,100774).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Ball"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlop_ball),1))));yyInst(_inst,_other,100776).gmlimage_num=yyInst(_inst,_other,97).gmlop_ball;gml_Script_s_update_exhibition_controllers(_inst,_other);gml_Script_s_save_options(_inst,_other);}function gml_Object_obj_rm_exhibition_Draw_64(_inst,_other){draw_sprite(_inst,165,yyInst(_inst,_other,97).gmlforce_uniform_sel1,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,100777).x),21),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100777).y),40));draw_sprite(_inst,165,yyInst(_inst,_other,97).gmlforce_uniform_sel2,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100778).x),21),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100778).y),38));draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.24);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.65);gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,string_upper(ds_map_find_value(_inst.gmlteam0,"name")));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,2);draw_set_halign(2);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));var gmlsx=gmltx;draw_sprite_ext(_inst,102,_inst.gmldefense[__yy_gml_array_check_index(0,_inst.gmldefense)],yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,global.gmlc_defense,1);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));draw_sprite_ext(_inst,102,_inst.gmloffense[__yy_gml_array_check_index(0,_inst.gmloffense)],yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,global.gmlc_offense,1);draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.76);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.65);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(ds_map_find_value(_inst.gmlteam1,
"name")));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,2);draw_set_halign(0);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));var gmlsx=gmltx;draw_sprite_ext(_inst,102,_inst.gmloffense[__yy_gml_array_check_index(1,_inst.gmloffense)],yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,global.gmlc_offense,1);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,
_other,"ui_Defense")));draw_sprite_ext(_inst,102,_inst.gmldefense[__yy_gml_array_check_index(1,_inst.gmldefense)],yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,global.gmlc_defense,1);}function gml_Object_obj_meter_lifestyle_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_lifestyle(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Lifestyle"))," "),__yy_gml_errCheck(string(_inst.gmlold_percent))),"%");if(yyfgreater(_inst.gmlold_percent,
25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_lifestyle_Step_0(_inst,_other){_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Lifestyle"))," "),__yy_gml_errCheck(string(gml_Script_s_get_lifestyle(_inst,_other)))),"%");_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_lifestyle(_inst,_other),0.1);if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_checkbox012_Step_0(_inst,
_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v1743=GetWithArray(78);for(var __yy__v1744 in __yy__v1743){if(!__yy__v1743.hasOwnProperty(__yy__v1744))continue;var __yy__v1745=__yy__v1743[__yy__v1744];if(yyfless(__yy__v1745.depth,_inst.depth)){return;};}};_inst.gmlclicked=false;if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
global.gmlgp_select)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};(g_yyPrePostObject__=_inst.gmlstate,_inst.gmlstate=(g_yyPrePostObject__ instanceof Long?_inst.gmlstate.add(1):++_inst.gmlstate),g_yyPrePostObject__);if(yyfgreater(_inst.gmlstate,2)){_inst.gmlstate=0;};if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};if((yyGetBool(_inst.gmlstate))&&(yyGetBool(yyfnotequal(_inst.gmlclick_info,
"")))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,_inst.gmlclick_info),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{if(yyGetBool(mouse_check_button_released(1))){
{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};(g_yyPrePostObject__=_inst.gmlstate,_inst.gmlstate=(g_yyPrePostObject__ instanceof Long?_inst.gmlstate.add(1):++_inst.gmlstate),g_yyPrePostObject__);if(yyfgreater(_inst.gmlstate,2)){_inst.gmlstate=0;};if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};if((yyGetBool(_inst.gmlstate))&&(yyGetBool(yyfnotequal(_inst.gmlclick_info,"")))){{gml_Script_s_create_message(_inst,
_other,"",gml_Script_s_str(_inst,_other,_inst.gmlclick_info),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};};};};};}function gml_Object_obj_checkbox012_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);var gmlcol=16777215;if(yyfequal(_inst.id,global.gmlui_selected)){gmlcol=255;};draw_sprite_ext(_inst,_inst.sprite_index,_inst.gmlstate,
_inst.x,_inst.y,1,1,0,gmlcol,1);draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1);if(yyfequal(_inst.gmltxt_side,0)){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),8),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),_inst.gmltext);};}else {{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),18),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),
0.5))),_inst.gmltext);};};}function gml_Object_obj_checkbox012_Draw_0(_inst,_other){}function gml_Object_obj_checkbox012_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstate=0;_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlclick_info="";_inst.gmlactive=true;_inst.gmlonClickAction=(-4);_inst.gmltxt_side=0;}function gml_Object_obj_button_9s_Create_0(_inst,_other){event_inherited(_inst,_other);if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){_inst.gmlcolour=global.gmlc_buttons;
}else {_inst.gmlcolour=global.gmlc_background;};if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_9s_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v1746=GetWithArray(78);for(var __yy__v1747 in __yy__v1746){if(!__yy__v1746.hasOwnProperty(__yy__v1747))continue;var __yy__v1748=__yy__v1746[__yy__v1747];
if(yyfless(__yy__v1748.depth,_inst.depth)){return;};}};{var __yy__v1749=GetWithArray(71);for(var __yy__v1750 in __yy__v1749){if(!__yy__v1749.hasOwnProperty(__yy__v1750))continue;var __yy__v1751=__yy__v1749[__yy__v1750];if((yyGetBool(__yy__v1751.gmlediting))&&(yyGetBool(!yyGetBool(__yy__v1751.gmlcustom_keyboard)))){return;};}};_inst.gmlhover=false;_inst.image_index=0;if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,
global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){{_inst.image_index=1;_inst.gmlclicked=true;global.gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};gml_Script_s_save_last_selected(_inst,_other);if(yyGetBool(_inst.gmlgoto_room)){room_goto(_inst.gmlgoto_room);}else {script_execute(_inst,_other,_inst.gmlonClickAction);};};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),
yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};if(yyGetBool(_inst.gmlgoto_room)){room_goto(_inst.gmlgoto_room);}else {script_execute(_inst,
_other,_inst.gmlonClickAction);};_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};}function gml_Object_obj_button_9s_Draw_0(_inst,_other){}function gml_Object_obj_button_9s_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));
gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,4210752,1);draw_set_color(4210752);};}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v1752=GetWithArray(78);for(var __yy__v1753 in __yy__v1752){
if(!__yy__v1752.hasOwnProperty(__yy__v1753))continue;var __yy__v1754=__yy__v1752[__yy__v1753];if(yyfless(__yy__v1754.depth,_inst.depth)){gmlf=0;};}};draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,255,1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,
_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),
0.5))),1));};};}else {{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};gmltx=yyfminus(gmltx,2);gmlty=yyfplus(gmlty,2);};};};if(yyfequal(_inst.object_index,26)){{if(yyfnotequal(_inst.gmlimage,(-4))){draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);};};}else {{if((yyGetBool(yyfnotequal(_inst.gmlimage,(-4))))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,
gmltx,gmlty,string_upper(_inst.gmltext));gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,(yyGetBool(_inst.gmlactive)?16777215:4210752),1);};}else {if(yyfnotequal(_inst.gmlimage,(-4))){draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,(yyfequal(global.gmlui_selected,_inst.id)?255:16777215),1);}else {gml_Script_draw_hd_text(_inst,_other,
gmltx,gmlty,string_upper(_inst.gmltext));};};};};draw_set_color(16777215);}function gml_Object_obj_button_9s_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlimage_num=0;_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;_inst.gmluid=0;
_inst.gmlgp_selected=0;_inst.gmlgoto_room=(-1);}function gml_Object_obj_box_relationship_Create_0(_inst,_other){_inst.gmlimage=95;var ___sw1410___=_inst.gmlrelationship_type;var ___swc1411___=-1;if(yyCompareVal(___sw1410___,0,g_GMLMathEpsilon,false)==0){___swc1411___=0;}else if(yyCompareVal(___sw1410___,1,g_GMLMathEpsilon,false)==0){___swc1411___=1;}else if(yyCompareVal(___sw1410___,2,g_GMLMathEpsilon,false)==0){___swc1411___=2;}switch(___swc1411___){case 0:{_inst.gmltitle=gml_Script_s_str(_inst,_other,
"ui_Coach");_inst.gmlpercent=yyInst(_inst,_other,97).gmlrelationship_boss;break;}case 1:{_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Team");_inst.gmlpercent=gml_Script_s_get_morale(_inst,_other);break;}case 2:{_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Fans");_inst.gmlpercent=yyInst(_inst,_other,97).gmlfans;break;}};_inst.gmlimage_num=gml_Script_s_get_attitude_icon(_inst,_other,_inst.gmlpercent);_inst.gmltext=yyfplus(__yy_gml_errCheck(string(round(_inst.gmlpercent))),"%");}function gml_Object_obj_box_relationship_Step_0(_inst,
_other){if(!yyGetBool(_inst.gmlactive)){return;};var ___sw1414___=_inst.gmlrelationship_type;var ___swc1415___=-1;if(yyCompareVal(___sw1414___,0,g_GMLMathEpsilon,false)==0){___swc1415___=0;}else if(yyCompareVal(___sw1414___,1,g_GMLMathEpsilon,false)==0){___swc1415___=1;}else if(yyCompareVal(___sw1414___,2,g_GMLMathEpsilon,false)==0){___swc1415___=2;}switch(___swc1415___){case 0:{_inst.gmlpercent=lerp(_inst.gmlpercent,yyInst(_inst,_other,97).gmlrelationship_boss,0.1);break;}case 1:{_inst.gmlpercent=lerp(_inst.gmlpercent,
gml_Script_s_get_morale(_inst,_other),0.1);break;}case 2:{_inst.gmlpercent=lerp(_inst.gmlpercent,yyInst(_inst,_other,97).gmlfans,0.1);break;}};_inst.gmlimage_num=gml_Script_s_get_attitude_icon(_inst,_other,_inst.gmlpercent);_inst.gmltext=yyfplus(__yy_gml_errCheck(string(round(_inst.gmlpercent))),"%");}function gml_Object_obj_box_relationship_Draw_0(_inst,_other){}function gml_Object_obj_box_relationship_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);
var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),
yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));draw_set_halign(2);gmltx=yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),
0.5)));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,8);draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);}function gml_Object_obj_box_relationship_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=99;_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;_inst.gmlrelationship_type=0;_inst.gmlpercent=0;_inst.gmlactive=true;}function gml_Object_obj_roomtitle_special_Step_0(_inst,
_other){draw_set_font(global.gmlfnt_flex);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);var gmlth=yyftime(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltext)),0.5);if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfminus(__yy_gml_errCheck(_inst.gmlty),__yy_gml_errCheck(gmlth)),
yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfplus(__yy_gml_errCheck(_inst.gmlty),__yy_gml_errCheck(gmlth))))){{if(yyGetBool(mouse_check_button_released(1))){(g_yyPrePostObject__=_inst.gmltap_count,_inst.gmltap_count=(g_yyPrePostObject__ instanceof Long?_inst.gmltap_count.add(1):++_inst.gmltap_count),g_yyPrePostObject__);};if(yyfgreater(_inst.gmltap_count,4)){{script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmltap_count=0;};};};};if((yyGetBool(gamepad_button_check(global.gmlgp_slot,
32781)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,32776)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,32774)))))){{(g_yyPrePostObject__=_inst.gmltap_count,_inst.gmltap_count=(g_yyPrePostObject__ instanceof Long?_inst.gmltap_count.add(1):++_inst.gmltap_count),g_yyPrePostObject__);if(yyfgreater(_inst.gmltap_count,4)){{script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmltap_count=0;};};};};}function gml_Object_obj_roomtitle_special_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmltap_count=0;_inst.gmlonClickAction=0;}function gml_Object_obj_meter_Draw_64(_inst,_other){if(yyGetBool(_inst.gmldraw_box)){draw_self(_inst);};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,
_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,
gmltx,gmlty,string_upper(_inst.gmltitle));var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),32);if(!yyGetBool(_inst.gmldraw_icon)){gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),16);};var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlbw),4)),100)),__yy_gml_errCheck(_inst.gmlold_percent));gmlprc=clamp(gmlprc,1,gmlbw);var gmlxbuf=24;if(!yyGetBool(_inst.gmldraw_icon)){gmlxbuf=8;};draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),
yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),__yy_gml_errCheck(gmlbw)),yyfplus(__yy_gml_errCheck(_inst.y),24),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,0);draw_rectangle_color(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),2),yyfplus(__yy_gml_errCheck(_inst.y),10),yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),2),__yy_gml_errCheck(gmlprc)),
yyfplus(__yy_gml_errCheck(_inst.y),22),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);if(yyGetBool(_inst.gmldraw_icon)){draw_sprite(_inst,_inst.gmldraw_icon,0,yyfplus(__yy_gml_errCheck(_inst.x),14),yyfplus(__yy_gml_errCheck(_inst.y),16));};if(yyGetBool(_inst.gmldraw_segments)){{var gmlsw=yyfdivide(__yy_gml_errCheck(gmlbw),3);draw_line_width_color(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(_inst.y),
8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(_inst.y),24),2,global.gmlc_backfill,global.gmlc_backfill);draw_line_width_color(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),2),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlsw),2))),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),2),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlsw),
2))),yyfplus(__yy_gml_errCheck(_inst.y),24),2,global.gmlc_backfill,global.gmlc_backfill);};};}function gml_Object_obj_meter_Draw_0(_inst,_other){}function gml_Object_obj_meter_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlold_percent=0;_inst.gmlpercent=0;_inst.gmlcolour=global.gmlc_primary;_inst.gmldraw_box=true;_inst.gmldraw_icon=0;_inst.gmldraw_segments=false;}function gml_Object_obj_btn_pause_Step_0(_inst,_other){gml_Script_s_pause_btn_step(_inst,_other);
}function gml_Object_obj_btn_pause_Draw_0(_inst,_other){}function gml_Object_obj_btn_pause_Draw_64(_inst,_other){gml_Script_s_pause_btn_draw_gui(_inst,_other);}function gml_Object_obj_options_exh_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_options_exh.create");draw_set_font(global.gmlfnt_small_flex);gml_Script_s_update_options_exh(_inst,_other);}function gml_Object_obj_kb_key_Create_0(_inst,_other){gml_Script_s_custkb_key_init(_inst,_other);}function gml_Object_obj_kb_key_Step_0(_inst,_other){
gml_Script_s_custkb_key_step(_inst,_other);}function gml_Object_obj_kb_key_Draw_64(_inst,_other){gml_Script_s_custkb_key_draw_gui(_inst,_other);}function gml_Object_obj_kb_key_Gesture_0(_inst,_other){}function gml_Object_obj_meter_coach_Create_0(_inst,_other){_inst.gmlold_percent=yyInst(_inst,_other,97).gmlrelationship_boss;_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Coach"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,
25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_coach_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,yyInst(_inst,_other,97).gmlrelationship_boss,0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Coach"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_blank_Create_0(_inst,_other){if(yyGetBool(_inst.gmlaction_create)){
__yyg_call_method(_inst.gmlaction_create)(_inst,_other);};}function gml_Object_obj_blank_Step_0(_inst,_other){if(yyGetBool(_inst.gmlaction_step)){__yyg_call_method(_inst.gmlaction_step)(_inst,_other);};}function gml_Object_obj_blank_Draw_0(_inst,_other){if(yyGetBool(_inst.gmlaction_draw)){__yyg_call_method(_inst.gmlaction_draw)(_inst,_other);};}function gml_Object_obj_blank_Draw_64(_inst,_other){if(yyGetBool(_inst.gmlaction_draw_gui)){__yyg_call_method(_inst.gmlaction_draw_gui)(_inst,_other);};}function gml_Object_obj_blank_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlaction_create=0;_inst.gmlaction_step=0;_inst.gmlaction_draw=0;_inst.gmlaction_draw_gui=0;}function gml_Object_obj_btn_skiptime_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_SkipTime");}function gml_Object_obj_btn_skiptime_Step_0(_inst,_other){_inst.gmlnum_auds=gml_Script_s_count_audibles(_inst,_other);{var __yy__v1755=GetWithArray(78);for(var __yy__v1756 in __yy__v1755){if(!__yy__v1755.hasOwnProperty(__yy__v1756))continue;
var __yy__v1757=__yy__v1755[__yy__v1756];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){gml_Script_btn_skip_time(_inst,_other);};};}else {{if(yyGetBool(point_in_rectangle(_inst.gmlmx,
_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_pressed(1)))){{gml_Script_btn_skip_time(_inst,_other);};};};};}function gml_Object_obj_btn_skiptime_Draw_64(_inst,_other){if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};{var __yy__v1758=GetWithArray(78);for(var __yy__v1759 in __yy__v1758){
if(!__yy__v1758.hasOwnProperty(__yy__v1759))continue;var __yy__v1760=__yy__v1758[__yy__v1759];return;}};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_skiptime_Draw_0(_inst,_other){}function gml_Object_obj_btn_skiptime_Draw_75(_inst,_other){
if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};event_inherited(_inst,_other);}function gml_Object_obj_btn_skiptime_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_auds=0;}function gml_Object_obj_stats_player_rm_Create_0(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_rm_stats_player_configure_college(_inst,_other);};};}function gml_Object_obj_btn_kickoff_Create_0(_inst,_other){event_inherited(_inst,
_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_KickOff");}function gml_Object_obj_btn_kickoff_Step_0(_inst,_other){{var __yy__v1761=GetWithArray(78);for(var __yy__v1762 in __yy__v1761){if(!__yy__v1761.hasOwnProperty(__yy__v1762))continue;var __yy__v1763=__yy__v1761[__yy__v1762];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyGetBool(global.gmlgamepad)){{if(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_button))){
gml_Script_btn_kick_off(_inst,_other);};};}else {{if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if(yyGetBool(mouse_check_button_released(1))){gml_Script_btn_kick_off(_inst,_other);};};};}function gml_Object_obj_btn_kickoff_Draw_64(_inst,_other){{var __yy__v1764=GetWithArray(78);for(var __yy__v1765 in __yy__v1764){
if(!__yy__v1764.hasOwnProperty(__yy__v1765))continue;var __yy__v1766=__yy__v1764[__yy__v1765];return;}};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_kickoff_Draw_0(_inst,_other){}function gml_Object_obj_btn_kickoff_PreCreate_0(_inst,_other){
event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_tos=0;}function gml_Object_obj_box_recruitmentcredit_Create_0(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Recruitment_Credits");_inst.gmltext=yyInst(_inst,_other,97).gmlrecruitment_credits;}function gml_Object_obj_box_recruitmentcredit_Step_0(_inst,_other){_inst.gmltext=yyInst(_inst,_other,97).gmlrecruitment_credits;}function gml_Object_obj_box_recruitmentcredit_Draw_0(_inst,_other){}function gml_Object_obj_box_recruitmentcredit_Draw_64(_inst,
_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);if(yyGetBool(_inst.gmlshow_frame)){{draw_self(_inst);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),
1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));};};if((yyGetBool(!yyGetBool(_inst.gmlflash)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
200)),0.1)))){{var gmlimw=0;if(yyGetBool(_inst.gmlimage)){gmlimw=sprite_get_width(_inst.gmlimage);};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));gmltx=yyfminus(gmltx,yyfdivide(__yy_gml_errCheck(gmlimw),2));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),0.5));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),1),gmlty,1,1,0,_inst.gmlimg_colour,1);};};}function gml_Object_obj_box_recruitmentcredit_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=0;_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;_inst.gmlshow_frame=true;
_inst.gmlflash=false;}function gml_Object_ui_selectable_Create_0(_inst,_other){_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=1;}function gml_Object_ui_selectable_Alarm_0(_inst,_other){if(yyfequal(_inst.gmlgp_mapped_button,32771)){{_inst.gmlgp_mapped_hidden=32777;};};}function gml_Object_ui_selectable_Draw_75(_inst,_other){if(!yyGetBool(global.gmlgamepad)){return;};if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){
return;};if((yyGetBool(variable_instance_exists(_inst.id,"active")))&&(yyGetBool(!yyGetBool(_inst.gmlactive)))){return;};{var __yy__v1767=GetWithArray(78);for(var __yy__v1768 in __yy__v1767){if(!__yy__v1767.hasOwnProperty(__yy__v1768))continue;var __yy__v1769=__yy__v1767[__yy__v1768];if(yyfless(__yy__v1769.depth,_inst.depth)){return;};}};{var __yy__v1770=GetWithArray(71);for(var __yy__v1771 in __yy__v1770){if(!__yy__v1770.hasOwnProperty(__yy__v1771))continue;var __yy__v1772=__yy__v1770[__yy__v1771];if(yyGetBool(__yy__v1772.gmlediting)){
return;};}};var gmlbx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width));var gmlby=_inst.y;if(yyGetBool(_inst.gmlgp_flip_icons_position)){{gmlbx=yyfplus(__yy_gml_errCheck(_inst.x),6);gmlby=yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),6);};};if((yyGetBool(variable_instance_exists(_inst,"clicked")))&&(yyGetBool(_inst.gmlclicked))){{gmlbx=yyfminus(gmlbx,2);gmlby=yyfplus(gmlby,2);};};var gmlspr=201;var ___sw1420___=g_pBuiltIn.get_os_type();var ___swc1421___=-1;
if(yyCompareVal(___sw1420___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1420___,23,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1420___,0,g_GMLMathEpsilon,false)==0){___swc1421___=0;}else if(yyCompareVal(___sw1420___,21,g_GMLMathEpsilon,false)==0){___swc1421___=1;}switch(___swc1421___){case 0:{gmlspr=202;break;}case 1:{gmlspr=258;break;}};var gmlmb=_inst.gmlgp_mapped_button;if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),0)))&&(yyGetBool(global.gmlgamepad))){{if(yyfequal(global.gmlui_selected,
_inst.id)){gmlmb=global.gmlgp_select;}else {gmlmb=(-1);};};};var ___sw1422___=gmlmb;var ___swc1423___=-1;if(yyCompareVal(___sw1422___,(-1),g_GMLMathEpsilon,false)==0){___swc1423___=0;}else if(yyCompareVal(___sw1422___,global.gmlgp_select,g_GMLMathEpsilon,false)==0){___swc1423___=1;}else if(yyCompareVal(___sw1422___,global.gmlgp_back,g_GMLMathEpsilon,false)==0){___swc1423___=2;}else if(yyCompareVal(___sw1422___,32771,g_GMLMathEpsilon,false)==0){___swc1423___=3;}else if(yyCompareVal(___sw1422___,32772,g_GMLMathEpsilon,
false)==0){___swc1423___=4;}switch(___swc1423___){case 0:{break;}case 1:{draw_sprite(_inst,gmlspr,0,gmlbx,gmlby);break;}case 2:{draw_sprite(_inst,gmlspr,1,gmlbx,gmlby);break;}case 3:{draw_sprite(_inst,gmlspr,2,gmlbx,gmlby);break;}case 4:{draw_sprite(_inst,gmlspr,3,gmlbx,gmlby);break;}};}function gml_Object_ui_selectable_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlgp_mapped_button=(-1);_inst.gmlgp_mapped_hidden=(-1);_inst.gmlgp_active_editing=false;_inst.gmlgp_flip_icons_position=false;
}function gml_Object_obj_button_Create_0(_inst,_other){event_inherited(_inst,_other);if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){_inst.gmlcolour=global.gmlc_buttons;}else {_inst.gmlcolour=global.gmlc_background;};if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){
return;};{var __yy__v1773=GetWithArray(78);for(var __yy__v1774 in __yy__v1773){if(!__yy__v1773.hasOwnProperty(__yy__v1774))continue;var __yy__v1775=__yy__v1773[__yy__v1774];if(yyfless(__yy__v1775.depth,_inst.depth)){return;};}};{var __yy__v1776=GetWithArray(71);for(var __yy__v1777 in __yy__v1776){if(!__yy__v1776.hasOwnProperty(__yy__v1777))continue;var __yy__v1778=__yy__v1776[__yy__v1777];if(yyGetBool(__yy__v1778.gmlediting)){return;};}};_inst.gmlhover=false;_inst.image_index=0;if(yyGetBool(global.gmlgamepad)){
{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){{_inst.image_index=1;_inst.gmlclicked=true;global.gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};gml_Script_s_save_last_selected(_inst,_other);if(yyGetBool(_inst.gmlgoto_room)){room_goto(_inst.gmlgoto_room);}else {script_execute(_inst,_other,_inst.gmlonClickAction);};};};};}else {
{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};if(yyGetBool(_inst.gmlgoto_room)){room_goto(_inst.gmlgoto_room);}else {script_execute(_inst,_other,_inst.gmlonClickAction);};_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};}function gml_Object_obj_button_Draw_0(_inst,_other){}function gml_Object_obj_button_Draw_64(_inst,_other){if(yyfnotequal(_inst.gmlcustom_draw_gui,(-4))){{__yyg_call_method(_inst.gmlcustom_draw_gui)(_inst,_other);return;};};draw_set_font(global.gmlfnt_small_flex);
draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);draw_set_color(4210752);if(yyGetBool(_inst.gmlimage)){
draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};draw_set_color(16777215);};}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v1779=GetWithArray(78);for(var __yy__v1780 in __yy__v1779){if(!__yy__v1779.hasOwnProperty(__yy__v1780))continue;var __yy__v1781=__yy__v1779[__yy__v1780];
if(yyfless(__yy__v1781.depth,_inst.depth)){gmlf=0;};}};draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,255,1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);
};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if(yyGetBool(_inst.gmlimage)){draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};}else {{draw_sprite(_inst,_inst.sprite_index,
_inst.image_index,_inst.x,_inst.y);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if(yyGetBool(_inst.gmlimage)){{
draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2));};}else {{gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),string_upper(_inst.gmltext));};};};};};}function gml_Object_obj_button_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmlcolour=new Long(4294967295,
0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlimage_num=0;_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;_inst.gmluid=0;_inst.gmlgp_selected=0;_inst.gmlgoto_room=(-1);_inst.gmlcustom_draw_gui=(-4);}function gml_Object_obj_button_color_Create_0(_inst,_other){if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_color_Step_0(_inst,_other){event_inherited(_inst,_other);
return;if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v1782=GetWithArray(78);for(var __yy__v1783 in __yy__v1782){if(!__yy__v1782.hasOwnProperty(__yy__v1783))continue;var __yy__v1784=__yy__v1782[__yy__v1783];if(yyfless(__yy__v1784.depth,_inst.depth)){return;};}};{var __yy__v1785=GetWithArray(71);for(var __yy__v1786 in __yy__v1785){if(!__yy__v1785.hasOwnProperty(__yy__v1786))continue;
var __yy__v1787=__yy__v1785[__yy__v1786];if(yyGetBool(__yy__v1787.gmlediting)){return;};}};_inst.image_index=0;_inst.gmlhover=false;if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;
};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};}function gml_Object_obj_button_color_Draw_0(_inst,_other){}function gml_Object_obj_button_color_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);};}else {if(!yyGetBool(_inst.gmlclicked)){{draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,
1,1,0,_inst.gmlcolour,1);var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if(yyfequal(global.gmlui_selected,_inst.id)){{if(yyfgreater(gmlf,0.5)){draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,255,1);}else {draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,16777215,
1);};};};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);};}else {{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);gmltx=yyfminus(gmltx,2);gmlty=yyfplus(gmlty,2);};};};if(yyfless(color_get_value(_inst.gmlcolour),230)){{draw_set_color(0);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),string_upper(_inst.gmltext));draw_set_color(16777215);gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,string_upper(_inst.gmltext));};}else {{draw_set_color(16777215);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),string_upper(_inst.gmltext));draw_set_color(0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));draw_set_color(16777215);};};}function gml_Object_obj_button_color_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlonClickAction=kgml_Script_btn_click_Continue;
_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;}function gml_Object_obj_button_sqr_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{if(!yyGetBool(_inst.gmlimage_only)){draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);};if(yyGetBool(_inst.gmlimage)){draw_sprite_ext(_inst,_inst.gmlimage,
0,gmltx,yyfminus(__yy_gml_errCheck(gmlty),1),1,1,0,4210752,1);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};}else {if(!yyGetBool(_inst.gmlclicked)){{if(!yyGetBool(_inst.gmlimage_only)){{draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,255,1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,
1,0,_inst.gmlcolour,1);{var __yy__v1788=GetWithArray(78);for(var __yy__v1789 in __yy__v1788){if(!__yy__v1788.hasOwnProperty(__yy__v1789))continue;var __yy__v1790=__yy__v1788[__yy__v1789];if(yyfless(__yy__v1790.depth,_inst.depth)){gmlf=0;};}};if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};};};if(yyGetBool(_inst.gmlimage)){{draw_sprite_ext(_inst,_inst.gmlimage,0,yyfminus(__yy_gml_errCheck(gmltx),
1),yyfplus(__yy_gml_errCheck(gmlty),1),1,1,0,4210752,1);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.gmlimage,0,gmltx,gmlty,1,1,0,255,1);}else {draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);};};}else {{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};};}else {{if(!yyGetBool(_inst.gmlimage_only)){{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,16777215,1);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),
2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);};};if(yyGetBool(_inst.gmlimage)){{if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(yyfgreater(gmlf,0.5)))&&(yyGetBool(_inst.gmlimage_only))){draw_sprite_ext(_inst,_inst.gmlimage,0,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),1,1,0,255,1);}else {draw_sprite(_inst,_inst.gmlimage,0,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2));};};}else {{gml_Script_draw_hd_text(_inst,
_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),string_upper(_inst.gmltext));};};};};};}function gml_Object_obj_button_sqr_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlimage_only=false;}function gml_Object_obj_button_thin_Draw_64(_inst,_other){draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),
2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,255,1);};draw_sprite_ext(_inst,_inst.sprite_index,
2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);};}else {{draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);gmltx=yyfminus(gmltx,2);gmlty=yyfplus(gmlty,2);};};if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmltext,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);gmltx=yyfplus(gmltx,
yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,0,gmltx,gmlty,1,1,0,16777215,1);};}else {if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);};}else {{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext),_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};};};}function gml_Object_obj_button_thin_PreCreate_0(_inst,_other){event_inherited(_inst,
_other);_inst.gmltcolour=new Long(4294967295,0,false);}function gml_Object_obj_button_small_Draw_64(_inst,_other){draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);if(yyfequal(global.gmlui_selected,_inst.id)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,255,1);};};draw_set_font(global.gmlfnt_small_flex);
draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlclicked)){{draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);};}else {{draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),
2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);gmltx=yyfminus(gmltx,2);gmlty=yyfplus(gmlty,2);};};if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmltext,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,
0,gmltx,gmlty,1,1,0,16777215,1);};}else {if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);};}else {{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext),_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};};};}function gml_Object_obj_button_small_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltcolour=new Long(4294967295,0,false);}function gml_Object_obj_button_med_Create_0(_inst,_other){event_inherited(_inst,
_other);_inst.gmlcolour=global.gmlc_background;if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_med_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v1791=GetWithArray(78);for(var __yy__v1792 in __yy__v1791){if(!__yy__v1791.hasOwnProperty(__yy__v1792))continue;var __yy__v1793=__yy__v1791[__yy__v1792];
if(yyfless(__yy__v1793.depth,_inst.depth)){return;};}};{var __yy__v1794=GetWithArray(71);for(var __yy__v1795 in __yy__v1794){if(!__yy__v1794.hasOwnProperty(__yy__v1795))continue;var __yy__v1796=__yy__v1794[__yy__v1795];if(yyGetBool(__yy__v1796.gmlediting)){return;};}};_inst.gmlhover=false;_inst.image_index=0;if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,
_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){{_inst.image_index=1;_inst.gmlclicked=true;global.gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))))){
{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){
{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};}function gml_Object_obj_button_med_Draw_0(_inst,_other){}function gml_Object_obj_button_med_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);
draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);draw_set_color(4210752);if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,
"")))){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,4210752,1);};}else {if(yyGetBool(_inst.gmlimage)){draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,(yyfequal(global.gmlui_selected,_inst.id)?255:16777215),1);}else {gml_Script_draw_hd_text(_inst,_other,
gmltx,gmlty,string_upper(_inst.gmltext));};};draw_set_color(16777215);};}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v1797=GetWithArray(78);for(var __yy__v1798 in __yy__v1797){if(!__yy__v1797.hasOwnProperty(__yy__v1798))continue;var __yy__v1799=__yy__v1797[__yy__v1798];if(yyfless(__yy__v1799.depth,_inst.depth)){gmlf=0;};}};draw_sprite(_inst,_inst.sprite_index,
_inst.image_index,_inst.x,_inst.y);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,255,1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,
gmlty,1,1,0,16777215,1);};}else {if(yyGetBool(_inst.gmlimage)){draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,
0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,
_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,16777215,1);};}else {if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2));};}else {{gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),string_upper(_inst.gmltext));};};};};};};}function gml_Object_obj_button_med_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_btn_click_Continue;
_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlimage_num=0;_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;_inst.gmluid=0;_inst.gmlgp_selected=0;_inst.gmltext=gml_Script_s_str(_inst,_other,"");}function gml_Object_obj_button_med_slim_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcolour=global.gmlc_background;if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;
};}function gml_Object_obj_button_med_slim_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v1800=GetWithArray(78);for(var __yy__v1801 in __yy__v1800){if(!__yy__v1800.hasOwnProperty(__yy__v1801))continue;var __yy__v1802=__yy__v1800[__yy__v1801];if(yyfless(__yy__v1802.depth,_inst.depth)){return;};}};{var __yy__v1803=GetWithArray(71);for(var __yy__v1804 in __yy__v1803){
if(!__yy__v1803.hasOwnProperty(__yy__v1804))continue;var __yy__v1805=__yy__v1803[__yy__v1804];if(yyGetBool(__yy__v1805.gmlediting)){return;};}};_inst.gmlhover=false;_inst.image_index=0;if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,
_inst.gmlgp_mapped_hidden)))){{_inst.image_index=1;_inst.gmlclicked=true;global.gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,
"op_soundfx"))){audio_play_sound(5,1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;};}
;if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};}function gml_Object_obj_button_med_slim_Draw_0(_inst,_other){}function gml_Object_obj_button_med_slim_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);draw_set_color(4210752);if(yyGetBool(_inst.gmlimage)){draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);
}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};draw_set_color(16777215);};}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v1806=GetWithArray(78);for(var __yy__v1807 in __yy__v1806){if(!__yy__v1806.hasOwnProperty(__yy__v1807))continue;var __yy__v1808=__yy__v1806[__yy__v1807];if(yyfless(__yy__v1808.depth,_inst.depth)){gmlf=0;
};}};draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,255,1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,
_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if(yyGetBool(_inst.gmlimage)){draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_sprite_ext(_inst,
_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,0,yyfminus(__yy_gml_errCheck(gmltx),
2),yyfplus(__yy_gml_errCheck(gmlty),2));};}else {{gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),string_upper(_inst.gmltext));};};};};};}function gml_Object_obj_button_med_slim_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);
_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;_inst.gmluid=0;_inst.gmlgp_selected=0;}function gml_Object_obj_appstore_btn_Create_0(_inst,_other){if(yyGetBool(global.gmlpoki)){{instance_destroy(_inst);return;};};if(yyGetBool(global.gmlbrowser)){{if(yyGetBool(_inst.gmlgoogle)){_inst.sprite_index=196;};};}else {{if(yyGetBool(_inst.gmlgoogle)){_inst.sprite_index=198;}else {_inst.sprite_index=199;};};};}function gml_Object_obj_appstore_btn_Step_0(_inst,_other){
if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v1809=GetWithArray(78);for(var __yy__v1810 in __yy__v1809){if(!__yy__v1809.hasOwnProperty(__yy__v1810))continue;var __yy__v1811=__yy__v1809[__yy__v1810];if(yyfless(__yy__v1811.depth,_inst.depth)){return;};}};{var __yy__v1812=GetWithArray(71);for(var __yy__v1813 in __yy__v1812){if(!__yy__v1812.hasOwnProperty(__yy__v1813))continue;var __yy__v1814=__yy__v1812[__yy__v1813];
if(yyGetBool(__yy__v1814.gmlediting)){return;};}};_inst.gmlhover=false;if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){
{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};_inst.gmlclicked=false;if(yyGetBool(global.gmlbrowser)){{if(yyGetBool(_inst.gmlgoogle)){url_open_ext(global.gmlurl_google,"_blank");}else {url_open_ext(global.gmlurl_apple,"_blank");};};}else {{if(yyGetBool(_inst.gmlgoogle)){url_open_ext(global.gmlurl_discord,"_blank");}else {url_open_ext(global.gmlurl_twitter,"_blank");};};};};};};}else {{_inst.gmlclicked=false;};};}function gml_Object_obj_appstore_btn_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlgoogle=false;_inst.gmltwitter=false;_inst.gmldiscord=false;_inst.gmlhover=false;_inst.gmlclicked=false;}function gml_Object_obj_reddit_btn_Create_0(_inst,_other){if(yyGetBool(global.gmlpoki)){{instance_destroy(_inst);return;};};}function gml_Object_obj_reddit_btn_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v1815=GetWithArray(78);for(var __yy__v1816 in __yy__v1815){
if(!__yy__v1815.hasOwnProperty(__yy__v1816))continue;var __yy__v1817=__yy__v1815[__yy__v1816];if(yyfless(__yy__v1817.depth,_inst.depth)){return;};}};{var __yy__v1818=GetWithArray(71);for(var __yy__v1819 in __yy__v1818){if(!__yy__v1818.hasOwnProperty(__yy__v1819))continue;var __yy__v1820=__yy__v1818[__yy__v1819];if(yyGetBool(__yy__v1820.gmlediting)){return;};}};_inst.gmlhover=false;if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};_inst.gmlclicked=false;url_open_ext(global.gmlurl_reddit,"_blank");
};};};}else {{_inst.gmlclicked=false;};};}function gml_Object_obj_reddit_btn_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlgoogle=false;_inst.gmltwitter=false;_inst.gmldiscord=false;_inst.gmlhover=false;_inst.gmlclicked=false;}function gml_Object_obj_btn_store_Create_0(_inst,_other){event_inherited(_inst,_other);if(!yyGetBool(global.gmlIAP_Enabled)){{_inst.gmlactive=false;yyInst(_inst,_other,97).alarm=__yy_gml_array_check(yyInst(_inst,_other,97).alarm,1059191483);yyInst(_inst,_other,
97).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};if(yyGetBool(yyInst(_inst,_other,97).gmlintro)){_inst.visible=false;};if(!yyGetBool(global.gmlmobile_device)){instance_destroy(_inst);};}function gml_Object_obj_btn_store_Step_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlactive=global.gmlIAP_Enabled;if(yyGetBool(yyInst(_inst,_other,97).gmlintro)){_inst.visible=false;};}function gml_Object_obj_btn_store_PreCreate_0(_inst,_other){event_inherited(_inst,
_other);_inst.gmlonClickAction=kgml_Script_s_open_store;_inst.gmlimage=108;}function gml_Object_obj_bossprofile_Create_0(_inst,_other){_inst.gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,100758).gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;yyInst(_inst,_other,100758).gmlactive=false;yyInst(_inst,_other,100754).gmltitle=gml_Script_s_get_string_position_full(_inst,
_other,ds_map_find_value(_inst.gmlpmap,"position"));yyInst(_inst,_other,100755).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));yyInst(_inst,_other,100756).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Age")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"age"))));yyInst(_inst,_other,100757).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude"))));_inst.gmlattitude_img=gml_Script_s_get_attitude_icon(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude"));yyInst(_inst,_other,100767).visible=false;var gmlgame_count=gml_Script_s_count_games_coached(_inst,_other);var gmlsim_count=gml_Script_s_count_games_simmed(_inst,_other);var gmlsim_prc=round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlsim_count),
__yy_gml_errCheck(gmlgame_count))),100));yyInst(_inst,_other,100768).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_TotalGames")),": "),__yy_gml_errCheck(string(gmlgame_count)));yyInst(_inst,_other,100769).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_SimGames")),": "),__yy_gml_errCheck(string(gmlsim_count)))," ("),__yy_gml_errCheck(string(gmlsim_prc))),"%)");if(yyGetBool(global.gmldebug)){yyInst(_inst,_other,100761).gmltext=yyfplus("Rating:",
__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlcoach_rating)));}else {yyInst(_inst,_other,100761).visible=false;};yyInst(_inst,_other,100767).visible=true;if(yyfless(yyInst(_inst,_other,97).gmlmyface_x,0)){{yyInst(_inst,_other,97).gmlface_type_coach=true;room_goto(4);};};gml_Script_s_load_profile_uni(_inst,_other,100758);}function gml_Object_obj_bossprofile_Draw_64(_inst,_other){if(yyfless(_inst.gmlattitude_img,6)){draw_sprite(_inst,95,_inst.gmlattitude_img,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,100757).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100757).gmltext)," ")))),yyInst(_inst,_other,100757).y);};}function gml_Object_obj_bossprofile_KeyPress_90(_inst,_other){{var __yy__v1821=GetWithArray(71);for(var __yy__v1822 in __yy__v1821){if(!__yy__v1821.hasOwnProperty(__yy__v1822))continue;var __yy__v1823=__yy__v1821[__yy__v1822];return;}};if(yyGetBool(global.gmldebug)){gml_Script_s_complete_achievement(_inst,_other,"ACH_WIN_RETROBOWL1");
};}function gml_Object_obj_link_btn_Create_0(_inst,_other){_inst.sprite_index=_inst.gmlimage;}function gml_Object_obj_link_btn_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v1824=GetWithArray(78);for(var __yy__v1825 in __yy__v1824){if(!__yy__v1824.hasOwnProperty(__yy__v1825))continue;var __yy__v1826=__yy__v1824[__yy__v1825];if(yyfless(__yy__v1826.depth,_inst.depth)){return;};}};{var __yy__v1827=GetWithArray(71);
for(var __yy__v1828 in __yy__v1827){if(!__yy__v1827.hasOwnProperty(__yy__v1828))continue;var __yy__v1829=__yy__v1827[__yy__v1828];if(yyGetBool(__yy__v1829.gmlediting)){return;};}};_inst.gmlhover=false;if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){
{if(yyGetBool(mouse_check_button(1))){{_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};_inst.gmlclicked=false;var ___sw1426___=g_pBuiltIn.get_os_type();var ___swc1427___=-1;if(yyCompareVal(___sw1426___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1426___,4,g_GMLMathEpsilon,false)==0){___swc1427___=0;}else if(yyCompareVal(___sw1426___,
3,g_GMLMathEpsilon,false)==0){___swc1427___=1;}switch(___swc1427___){case 0:{url_open_ext(_inst.gmlurl_android,"_blank");break;}case 1:{url_open_ext(_inst.gmlurl_ios,"_blank");break;}};};};};}else {{_inst.gmlclicked=false;};};}function gml_Object_obj_link_btn_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=0;_inst.gmlurl_android="";_inst.gmlurl_ios="";}function gml_Object_obj_btn_restore_Create_0(_inst,_other){event_inherited(_inst,_other);
if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"))){_inst.visible=false;};if(yyfequal(g_pBuiltIn.get_os_type(),4)){{_inst.visible=false;};};}function gml_Object_obj_btn_restore_Alarm_0(_inst,_other){_inst.gmlactive=true;}function gml_Object_obj_btn_restore_Step_0(_inst,_other){event_inherited(_inst,_other);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"fullversion"))){_inst.visible=false;};}function gml_Object_obj_btn_restore_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"btn_RestorePurchases");_inst.gmlonClickAction=kgml_Script_s_iap_restore;}function gml_Object_obj_btn_buy_Alarm_0(_inst,_other){_inst.gmlactive=true;}function gml_Object_obj_btn_buy_Step_0(_inst,_other){event_inherited(_inst,_other);if(yyGetBool(script_exists(_inst.gmlstep_check))){script_execute(_inst,_other,_inst.gmlstep_check);};}function gml_Object_obj_btn_buy_PreCreate_0(_inst,_other){event_inherited(_inst,_other);
_inst.gmlstep_check=(-4);_inst.gmltext=gml_Script_s_str(_inst,_other,"btn_RestorePurchases");_inst.gmlonClickAction=kgml_Script_s_iap_restore;}function gml_Object_obj_player_profile_Create_0(_inst,_other){_inst.gmlpmap=(-4);_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,
3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshow_arrow=0;gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));}function gml_Object_obj_player_profile_Step_0(_inst,_other){{var __yy__v1830=GetWithArray(78);for(var __yy__v1831 in __yy__v1830){if(!__yy__v1830.hasOwnProperty(__yy__v1831))continue;var __yy__v1832=__yy__v1830[__yy__v1831];if(yyfless(__yy__v1832.depth,
_inst.depth)){return;};}};if(!yyGetBool(_inst.gmlpmap)){return;};if(yyfless(_inst.gmlold_condition,0)){_inst.gmlold_condition=real(ds_map_find_value(_inst.gmlpmap,"condition"));};_inst.gmlold_condition=lerp(_inst.gmlold_condition,real(ds_map_find_value(_inst.gmlpmap,"condition")),0.05);if(!yyGetBool(_inst.gmlactive)){return;};_inst.gmlhover=false;if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
global.gmlgp_select)))){{gml_Script_s_save_last_selected(_inst,_other);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);};};if(yyfnotequal(g_pBuiltIn.get_os_type(),21)){if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,32772)))){{if((yyGetBool(_inst.gmlonHoldAction))&&(yyGetBool(_inst.gmlpmap))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};yyInst(_inst,_other,97).gmlplayer_profile=_inst.gmlpmap;script_execute(_inst,_other,_inst.gmlonHoldAction);};};};};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){
{if(yyGetBool(mouse_check_button(1))){{if(!yyGetBool(_inst.gmlclicked)){_inst.gmlclicked=g_pBuiltIn.get_current_time();}else {if((yyGetBool(_inst.gmlonHoldAction))&&(yyGetBool(_inst.gmlpmap))&&(yyGetBool(yyfgreater(yyfminus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(_inst.gmlclicked)),3000)))&&(yyGetBool(yyfnotequal(g_pBuiltIn.get_os_type(),21)))){{_inst.gmlclicked=0;yyInst(_inst,_other,97).gmlplayer_profile=_inst.gmlpmap;script_execute(_inst,_other,_inst.gmlonHoldAction);
};};};};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=0;};};};}else {{_inst.gmlclicked=0;};};};};}function gml_Object_obj_player_profile_Draw_0(_inst,_other){}function gml_Object_obj_player_profile_Draw_64(_inst,_other){if(!yyGetBool(_inst.gmlpmap)){{return;};};if((yyGetBool(_inst.gmlflash))||(yyGetBool(yyfless(g_pBuiltIn.get_current_time(),
yyfplus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"flash_time"))),2550))))){{if(!yyGetBool(global.gmlgamepad)){{var gmlf=sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),120));if(yyfless(gmlf,0.1)){return;};};};};};var gmlpos=real(ds_map_find_value(_inst.gmlpmap,"position"));var gmlbx=yyfplus(__yy_gml_errCheck(_inst.x),2);var gmlby=yyfminus(__yy_gml_errCheck(_inst.y),2);if((yyGetBool(_inst.gmlclicked))||(yyGetBool(!yyGetBool(_inst.gmlactive)))){{gmlbx=_inst.x;gmlby=_inst.y;
};};draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,4210752,1);var gmlpos_col=gml_Script_s_get_position_colour(_inst,_other,gmlpos);if((yyGetBool(ds_map_exists(_inst.gmlpmap,"resting")))&&(yyGetBool(ds_map_find_value(_inst.gmlpmap,"resting")))){gmlpos_col=8421504;}else {if((yyGetBool(ds_map_exists(_inst.gmlpmap,"condition")))&&(yyGetBool(yyfless(ds_map_find_value(_inst.gmlpmap,"condition"),0)))){gmlpos_col=8421504;}else {if(yyGetBool(gml_Script_s_is_backup(_inst,_other,
_inst.gmlpmap))){gmlpos_col=8421504;}else {if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_map_exists(_inst.gmlpmap,"suspended")))&&(yyGetBool(ds_map_find_value(_inst.gmlpmap,"suspended")))){gmlpos_col=8421504;};};};};if(yyfequal(g_pBuiltIn.get_current_room(),12)){gmlpos_col=global.gmlc_primary;};draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlbx),2),yyfplus(__yy_gml_errCheck(gmlby),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),3),yyfplus(__yy_gml_errCheck(gmlby),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),gmlpos_col,gmlpos_col,gmlpos_col,gmlpos_col,0);if((yyGetBool(yyInst(_inst,_other,97).gmlqb_mode))&&(yyGetBool(_inst.gmlpmap))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"position"),1)))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby,1,1,0,65535,1);}else {draw_sprite(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby);};var gmlselectflash=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
60))),1)),2);if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(yyfgreater(gmlselectflash,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby,1,1,0,255,1);};shader_set(0);shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_map_exists(_inst.gmlpmap,"team_leave_reason")))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,
"team_leave_reason"),"drafted")))&&(yyGetBool(ds_map_exists(_inst.gmlpmap,"uniform_record")))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"uniform_record"),"")))){{var gmldraftUniform=gml_Script_s_uniform_cols_from_record(_inst,_other,ds_map_find_value(_inst.gmlpmap,"uniform_record"));shader_set_uniform_f(global.gmlreplaceHelmet,gmldraftUniform[__yy_gml_array_check_index(0,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(1,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(2,
gmldraftUniform)]);shader_set_uniform_f(global.gmlreplaceShirt,gmldraftUniform[__yy_gml_array_check_index(3,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(4,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(5,gmldraftUniform)]);shader_set_uniform_f(global.gmlreplacePants,gmldraftUniform[__yy_gml_array_check_index(6,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(7,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(8,gmldraftUniform)]);};}else {{shader_set_uniform_f(global.gmlreplaceHelmet,
_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,
_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);};};if(yyGetBool(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))){{var ___sw1440___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1441___=-1;if(yyCompareVal(___sw1440___,0,g_GMLMathEpsilon,false)==0){___swc1441___=0;}else if(yyCompareVal(___sw1440___,1,g_GMLMathEpsilon,false)==0){___swc1441___=1;}else if(yyCompareVal(___sw1440___,
2,g_GMLMathEpsilon,false)==0){___swc1441___=2;}else if(yyCompareVal(___sw1440___,3,g_GMLMathEpsilon,false)==0){___swc1441___=3;}switch(___swc1441___){case 0:{draw_sprite_ext(_inst,191,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,192,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{
draw_sprite_ext(_inst,193,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,194,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};};}else {{var ___sw1442___=ds_map_find_value(_inst.gmlpmap,"skin");var ___swc1443___=-1;if(yyCompareVal(___sw1442___,2,g_GMLMathEpsilon,false)==0){___swc1443___=0;
}else if(yyCompareVal(___sw1442___,1,g_GMLMathEpsilon,false)==0){___swc1443___=1;}else if(yyCompareVal(___sw1442___,0,g_GMLMathEpsilon,false)==0){___swc1443___=2;}switch(___swc1443___){case 0:{var ___sw1444___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1445___=-1;if(yyCompareVal(___sw1444___,0,g_GMLMathEpsilon,false)==0){___swc1445___=0;}else if(yyCompareVal(___sw1444___,1,g_GMLMathEpsilon,false)==0){___swc1445___=1;}else if(yyCompareVal(___sw1444___,2,g_GMLMathEpsilon,false)==0){___swc1445___=2;
}switch(___swc1445___){case 0:{draw_sprite_ext(_inst,179,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,180,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,181,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),
3),1,1,0,16777215,1);break;}};break;}case 1:{var ___sw1446___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1447___=-1;if(yyCompareVal(___sw1446___,0,g_GMLMathEpsilon,false)==0){___swc1447___=0;}switch(___swc1447___){case 0:{draw_sprite_ext(_inst,182,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}case 2:{var ___sw1448___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1449___=-1;if(yyCompareVal(___sw1448___,
0,g_GMLMathEpsilon,false)==0){___swc1449___=0;}else if(yyCompareVal(___sw1448___,1,g_GMLMathEpsilon,false)==0){___swc1449___=1;}else if(yyCompareVal(___sw1448___,2,g_GMLMathEpsilon,false)==0){___swc1449___=2;}else if(yyCompareVal(___sw1448___,3,g_GMLMathEpsilon,false)==0){___swc1449___=3;}else if(yyCompareVal(___sw1448___,4,g_GMLMathEpsilon,false)==0){___swc1449___=4;}else if(yyCompareVal(___sw1448___,5,g_GMLMathEpsilon,false)==0){___swc1449___=5;}else if(yyCompareVal(___sw1448___,6,g_GMLMathEpsilon,false)==0){
___swc1449___=6;}else if(yyCompareVal(___sw1448___,7,g_GMLMathEpsilon,false)==0){___swc1449___=7;}else if(yyCompareVal(___sw1448___,8,g_GMLMathEpsilon,false)==0){___swc1449___=8;}switch(___swc1449___){case 0:{draw_sprite_ext(_inst,183,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,184,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),
3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,185,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,186,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 4:{draw_sprite_ext(_inst,187,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),
3),1,1,0,16777215,1);break;}case 5:{draw_sprite_ext(_inst,188,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 6:{draw_sprite_ext(_inst,188,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 7:{draw_sprite_ext(_inst,189,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),
3),1,1,0,16777215,1);break;}case 8:{draw_sprite_ext(_inst,190,ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}};};};shader_reset();draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmlbx),6),yyfplus(__yy_gml_errCheck(gmlby),8),gml_Script_s_get_string_position(_inst,_other,gmlpos));draw_set_halign(2);var gmlatt=ds_map_find_value(_inst.gmlpmap,
"attitude");var gmlcon=ds_map_find_value(_inst.gmlpmap,"condition");var gmlage=real(ds_map_find_value(_inst.gmlpmap,"age"));if(yyfnotequal(g_pBuiltIn.get_current_room(),12)){{if((yyGetBool(!yyGetBool(_inst.gmlflash_attitude)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)))){{draw_sprite(_inst,95,gml_Script_s_get_attitude_icon(_inst,_other,gmlatt),yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),
8));var ___sw1450___=_inst.gmlshow_arrow;var ___swc1451___=-1;if(yyCompareVal(___sw1450___,(-1),g_GMLMathEpsilon,false)==0){___swc1451___=0;}else if(yyCompareVal(___sw1450___,0,g_GMLMathEpsilon,false)==0){___swc1451___=1;}else if(yyCompareVal(___sw1450___,1,g_GMLMathEpsilon,false)==0){___swc1451___=2;}switch(___swc1451___){case 0:{draw_sprite_ext(_inst,74,0,yyfplus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),8),1,1,0,255,1);break;}case 1:{
break;}case 2:{draw_sprite_ext(_inst,74,1,yyfplus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),8),1,1,0,65280,1);break;}};};};if(!yyGetBool(gml_Script_s_is_staff(_inst,_other,gmlpos))){{if((yyGetBool(ds_map_exists(_inst.gmlpmap,"kr")))&&(yyGetBool(ds_map_find_value(_inst.gmlpmap,"kr")))){draw_sprite(_inst,169,1,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),20),yyfplus(__yy_gml_errCheck(gmlby),2));};if((yyGetBool(gml_Script_s_is_co_mode(_inst,
_other)))&&(yyGetBool(ds_map_find_value(_inst.gmlpmap,"suspended")))){{draw_sprite(_inst,98,4,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),20));};}else {if(yyGetBool(ds_map_find_value(_inst.gmlpmap,"resting"))){draw_sprite(_inst,98,3,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),20));}else {if((yyGetBool(!yyGetBool(_inst.gmlflash_attitude)))&&(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
200)),0.1)))){{if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"outtrade_pick"),0)){draw_sprite(_inst,96,0,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),20));}else {if(yyfless(gmlcon,0)){draw_sprite(_inst,98,0,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),20));};};};};};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(!yyGetBool(gml_Script_s_is_staff(_inst,
_other,gmlpos))){draw_sprite(_inst,218,gml_Script_s_college_age_index(_inst,_other,gmlage),yyfplus(__yy_gml_errCheck(gmlbx),10),yyfplus(__yy_gml_errCheck(gmlby),19));};};}else {{if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){draw_sprite(_inst,97,0,yyfplus(__yy_gml_errCheck(gmlbx),10),yyfplus(__yy_gml_errCheck(gmlby),19));};};};};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfnotequal(ds_list_find_index(yyInst(_inst,_other,97).gmlroster,_inst.gmlpmap),(-1))){
{shader_set(0);shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],
_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);draw_sprite_ext(_inst,23,0,yyfplus(__yy_gml_errCheck(gmlbx),17),yyfplus(__yy_gml_errCheck(gmlby),14),1,1,0,16777215,1);shader_reset();};}else {if(yyfequal(ds_map_find_value(_inst.gmlpmap,
"team_leave_reason"),"drafted")){{};}else {if(yyfequal(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"),"graduated")){{var gmlskin=ds_map_find_value(_inst.gmlpmap,"skin");var gmlcolSkin=gml_Script_s_get_skin_colour_by_index(_inst,_other,gmlskin);var gmlcol_skin_r=yyfdivide(__yy_gml_errCheck(color_get_red(gmlcolSkin)),255);var gmlcol_skin_g=yyfdivide(__yy_gml_errCheck(color_get_green(gmlcolSkin)),255);var gmlcol_skin_b=yyfdivide(__yy_gml_errCheck(color_get_blue(gmlcolSkin)),255);shader_set(0);shader_set_uniform_f(global.gmlcolorSkin,
1,0,0);shader_set_uniform_f(global.gmlcolorCleats,0,0,1);shader_set_uniform_f(global.gmlreplaceSkin,gmlcol_skin_r,gmlcol_skin_g,gmlcol_skin_b);shader_set_uniform_f(global.gmlreplaceCleats,min(yyftime(__yy_gml_errCheck(gmlcol_skin_r),1.2),1),min(yyftime(__yy_gml_errCheck(gmlcol_skin_g),1.2),1),min(yyftime(__yy_gml_errCheck(gmlcol_skin_b),1.2),1));draw_sprite_ext(_inst,262,0,yyfplus(__yy_gml_errCheck(gmlbx),17),yyfplus(__yy_gml_errCheck(gmlby),14),1,1,0,16777215,1);shader_reset();};}else {{shader_set(0);
shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);if((yyGetBool(ds_map_exists(_inst.gmlpmap,"uniform_record")))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"uniform_record"),"")))){{var gmldraftUniform=gml_Script_s_uniform_cols_from_record(_inst,_other,ds_map_find_value(_inst.gmlpmap,"uniform_record"));shader_set_uniform_f(global.gmlreplaceHelmet,gmldraftUniform[__yy_gml_array_check_index(0,
gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(1,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(2,gmldraftUniform)]);shader_set_uniform_f(global.gmlreplaceShirt,gmldraftUniform[__yy_gml_array_check_index(3,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(4,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(5,gmldraftUniform)]);shader_set_uniform_f(global.gmlreplacePants,gmldraftUniform[__yy_gml_array_check_index(6,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(7,
gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(8,gmldraftUniform)]);};}else {{shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,
_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);};};draw_sprite_ext(_inst,23,0,yyfplus(__yy_gml_errCheck(gmlbx),17),yyfplus(__yy_gml_errCheck(gmlby),14),1,1,0,16777215,1);shader_reset();};};};};};}else {{draw_sprite_ext(_inst,176,0,yyfplus(__yy_gml_errCheck(gmlbx),17),yyfplus(__yy_gml_errCheck(gmlby),14),
1,1,0,16777215,1);};};};};draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));var gmlty=yyfplus(__yy_gml_errCheck(gmlby),48);var gmlname=string_copy(ds_map_find_value(_inst.gmlpmap,"lname"),1,7);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlname);gmlty=yyfplus(gmlty,12);if(yyGetBool(gml_Script_s_is_staff(_inst,_other,gmlpos))){{if((yyGetBool(yyfnotequal(gmlpos,100)))&&(yyGetBool(yyfequal(ds_list_find_index(yyInst(_inst,
_other,97).gmlstafflist,_inst.gmlpmap),(-1))))){{draw_sprite_ext(_inst,105,ds_map_find_value(_inst.gmlpmap,"rating"),gmltx,gmlty,1,1,0,65535,1);gmlty=yyfplus(gmlty,11);var gmlcost=gml_Script_s_get_coach_cost(_inst,_other,_inst.gmlpmap);var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmlcost)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(93)),0.5));gmltx=yyfminus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(93)),0.5));gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,gmlcost);draw_sprite(_inst,93,0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);};}else {{draw_sprite_ext(_inst,105,ds_map_find_value(_inst.gmlpmap,"rating"),gmltx,yyfplus(__yy_gml_errCheck(gmlty),5),1,1,0,65535,1);gmlty=yyfplus(gmlty,11);};};};}else {{draw_sprite_ext(_inst,105,gml_Script_s_get_player_rating(_inst,_other,_inst.gmlpmap),gmltx,gmlty,1,1,0,65535,1);gmlty=yyfplus(gmlty,11);var gmldrawNormalPlayer=(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmldraft_round,
3)))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"teamid"),yyInst(_inst,_other,97).gmlmyteam_id)))&&(yyGetBool(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmlroster,_inst.gmlpmap),0)));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(gml_Script_s_doing_college_draft(_inst,_other))){{gmldrawNormalPlayer=true;};};if((yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlcollege_admissions_draft_round,0)))&&(yyGetBool(yyfgreaterequal(ds_list_find_index(yyInst(_inst,
_other,97).gmlroster,_inst.gmlpmap),0)))){{gmldrawNormalPlayer=true;};};};};if(yyfequal(g_pBuiltIn.get_current_room(),12)){{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlmy_tla);};}else {if(yyGetBool(gmldrawNormalPlayer)){{var gmlcx=yyfplus(__yy_gml_errCheck(_inst.x),2);var gmlcy=yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),13);var gmlcw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),1);var gmlch=8;var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlcw),
4)),100)),__yy_gml_errCheck(clamp(_inst.gmlold_condition,0,100)));if((yyGetBool(_inst.gmlclicked))||(yyGetBool(!yyGetBool(_inst.gmlactive)))){{gmlcx=yyfminus(gmlcx,2);gmlcy=yyfplus(gmlcy,2);};};draw_set_color(16777215);if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(yyfgreater(gmlselectflash,0.5)))){draw_set_color(255);};draw_rectangle(gmlcx,gmlcy,yyfplus(__yy_gml_errCheck(gmlcx),__yy_gml_errCheck(gmlcw)),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);draw_set_color(8421504);
draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlcx),__yy_gml_errCheck(gmlcw)),2),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);if(yyflessequal(gmlcon,0)){{draw_set_color(0);draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),2),yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlcx),2),__yy_gml_errCheck(gmlcw)),4),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);};}
else {if(yyflessequal(gmlcon,20)){{draw_set_color(255);if(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),100)),0.1)){draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),2),yyfplus(yyfplus(__yy_gml_errCheck(gmlcx),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);};};}else {if(yyflessequal(gmlcon,40)){{draw_set_color(65535);draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),
2),yyfplus(yyfplus(__yy_gml_errCheck(gmlcx),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);};}else {{draw_set_color(65280);draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),2),yyfplus(yyfplus(__yy_gml_errCheck(gmlcx),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);};};};};draw_set_color(16777215);};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfequal(ds_list_find_index(yyInst(_inst,
_other,97).gmlroster,_inst.gmlpmap),(-1))){{var gmlrc_str=string(ds_map_find_value(_inst.gmlpmap,"rc_cost"));var gmlrc_str_w=gml_Script_string_hd_width(_inst,_other,gmlrc_str);if((yyGetBool(yyfequal(ds_list_find_index(yyInst(_inst,_other,97).gmlroster,_inst.gmlpmap),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"rc_cost"),yyInst(_inst,_other,97).gmlrecruitment_credits)))){draw_set_color(255);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlrc_str);draw_sprite(_inst,0,0,yyfminus(yyfminus(__yy_gml_errCheck(gmltx),
6),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sprite_get_width(0)),__yy_gml_errCheck(gmlrc_str_w))),2))),gmlty);};};};}else {{if((yyGetBool(yyfequal(ds_list_find_index(yyInst(_inst,_other,97).gmlroster,_inst.gmlpmap),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"salary"),gml_Script_s_get_salary_cap_space(_inst,_other))))){draw_set_color(255);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,
"salary")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Million"))));};};draw_set_color(16777215);};};};};};var gmlnum_roty=0;var gmlnum_mvp=0;var gmlnum_opoy=0;var gmlnum_dpoy=0;var gmlnum_rings=0;var gmlnum_rbmvp=0;var gmllim=5;if(yyGetBool(gml_Script_s_is_staff(_inst,_other,gmlpos))){gmllim=10;};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"roty"))){gmlnum_roty=min(real(ds_map_find_value(_inst.gmlpmap,"roty")),1);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"mvp"))){gmlnum_mvp=min(real(ds_map_find_value(_inst.gmlpmap,
"mvp")),gmllim);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"opoy"))){gmlnum_opoy=min(real(ds_map_find_value(_inst.gmlpmap,"opoy")),1);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"dpoy"))){gmlnum_dpoy=min(real(ds_map_find_value(_inst.gmlpmap,"dpoy")),gmllim);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"rings"))){gmlnum_rings=min(real(ds_map_find_value(_inst.gmlpmap,"rings")),gmllim);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"rbmvp"))){gmlnum_rbmvp=min(real(ds_map_find_value(_inst.gmlpmap,"rbmvp")),
1);};if(yyfequal(gmlpos,100)){{gmlnum_rings=min(gml_Script_s_count_achievement(_inst,_other,"ACH_WIN_RETROBOWL1"),gmllim);};};var gmlmx=yyfplus(__yy_gml_errCheck(gmlbx),3);var gmlmy=yyfplus(__yy_gml_errCheck(gmlby),26);if(yyGetBool(gmlnum_roty)){{draw_sprite_ext(_inst,170,0,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,8);};};var gmli=0;for(;yyfless(gmli,gmlnum_mvp);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,
170,1,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};if(yyfgreater(gmlnum_mvp,0)){gmlmx=yyfplus(gmlmx,6);};var gmli=0;for(;yyfless(gmli,gmlnum_opoy);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,170,2,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};if(yyfgreater(gmlnum_opoy,0)){gmlmx=yyfplus(gmlmx,6);};var gmli=0;for(;yyfless(gmli,gmlnum_dpoy);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{draw_sprite_ext(_inst,170,3,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};if(yyfgreater(gmlnum_dpoy,0)){gmlmx=yyfplus(gmlmx,6);};var gmli=0;for(;yyfless(gmli,gmlnum_rbmvp);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,170,4,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};gmlmy=yyfplus(gmlmy,1);gmlmx=yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),50),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlnum_rings),
1)),2)));var gmli=0;for(;yyfless(gmli,gmlnum_rings);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,174,0,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};}function gml_Object_obj_player_profile_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_btn_click_PlayerProfile;_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlflash_time=0;_inst.gmlactive=true;_inst.gmltutorial_flash=false;
_inst.gmlflash_attitude=false;_inst.gmlold_condition=(-99);_inst.gmlmy_tla="";_inst.gmlonHoldAction=(-1);}function gml_Object_obj_player_image_Create_0(_inst,_other){_inst.gmlpmap=(-4);_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=0;
_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshow_arrow=0;gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));_inst.gmlimw=sprite_get_width(179);}function gml_Object_obj_player_image_Draw_0(_inst,_other){}function gml_Object_obj_player_image_Draw_64(_inst,_other){if(yyfequal(_inst.gmlpmap,(-4))){{return;};};var gmlpos=real(ds_map_find_value(_inst.gmlpmap,"position"));var gmlbx=yyfminus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlimw),0.5),__yy_gml_errCheck(_inst.gmlscale))));var gmlby=_inst.y;shader_set(0);shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,
_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);if(yyGetBool(gml_Script_s_is_staff(_inst,
_other,ds_map_find_value(_inst.gmlpmap,"position")))){{var ___sw1462___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1463___=-1;if(yyCompareVal(___sw1462___,0,g_GMLMathEpsilon,false)==0){___swc1463___=0;}else if(yyCompareVal(___sw1462___,1,g_GMLMathEpsilon,false)==0){___swc1463___=1;}else if(yyCompareVal(___sw1462___,2,g_GMLMathEpsilon,false)==0){___swc1463___=2;}else if(yyCompareVal(___sw1462___,3,g_GMLMathEpsilon,false)==0){___swc1463___=3;}switch(___swc1463___){case 0:{draw_sprite_ext(_inst,
191,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,192,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,193,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,194,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,
0,16777215,1);break;}};};}else {{var ___sw1464___=ds_map_find_value(_inst.gmlpmap,"skin");var ___swc1465___=-1;if(yyCompareVal(___sw1464___,2,g_GMLMathEpsilon,false)==0){___swc1465___=0;}else if(yyCompareVal(___sw1464___,1,g_GMLMathEpsilon,false)==0){___swc1465___=1;}else if(yyCompareVal(___sw1464___,0,g_GMLMathEpsilon,false)==0){___swc1465___=2;}switch(___swc1465___){case 0:{var ___sw1466___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1467___=-1;if(yyCompareVal(___sw1466___,0,g_GMLMathEpsilon,false)==0){
___swc1467___=0;}else if(yyCompareVal(___sw1466___,1,g_GMLMathEpsilon,false)==0){___swc1467___=1;}else if(yyCompareVal(___sw1466___,2,g_GMLMathEpsilon,false)==0){___swc1467___=2;}switch(___swc1467___){case 0:{draw_sprite_ext(_inst,179,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,180,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,
181,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}};break;}case 1:{var ___sw1468___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1469___=-1;if(yyCompareVal(___sw1468___,0,g_GMLMathEpsilon,false)==0){___swc1469___=0;}switch(___swc1469___){case 0:{draw_sprite_ext(_inst,182,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}};break;}case 2:{var ___sw1470___=ds_map_find_value(_inst.gmlpmap,
"face_y");var ___swc1471___=-1;if(yyCompareVal(___sw1470___,0,g_GMLMathEpsilon,false)==0){___swc1471___=0;}else if(yyCompareVal(___sw1470___,1,g_GMLMathEpsilon,false)==0){___swc1471___=1;}else if(yyCompareVal(___sw1470___,2,g_GMLMathEpsilon,false)==0){___swc1471___=2;}else if(yyCompareVal(___sw1470___,3,g_GMLMathEpsilon,false)==0){___swc1471___=3;}else if(yyCompareVal(___sw1470___,4,g_GMLMathEpsilon,false)==0){___swc1471___=4;}else if(yyCompareVal(___sw1470___,5,g_GMLMathEpsilon,false)==0){___swc1471___=5;
}else if(yyCompareVal(___sw1470___,6,g_GMLMathEpsilon,false)==0){___swc1471___=6;}else if(yyCompareVal(___sw1470___,7,g_GMLMathEpsilon,false)==0){___swc1471___=7;}else if(yyCompareVal(___sw1470___,8,g_GMLMathEpsilon,false)==0){___swc1471___=8;}switch(___swc1471___){case 0:{draw_sprite_ext(_inst,183,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,184,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,
_inst.gmlscale,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,185,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,186,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 4:{draw_sprite_ext(_inst,187,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 5:{draw_sprite_ext(_inst,188,ds_map_find_value(_inst.gmlpmap,
"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 6:{draw_sprite_ext(_inst,188,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 7:{draw_sprite_ext(_inst,189,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 8:{draw_sprite_ext(_inst,190,ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}};break;}};};
};shader_reset();draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1);draw_set_halign(1);var gmltx=_inst.x;var gmlty=yyfplus(__yy_gml_errCheck(gmlby),60);var gmlname=string_copy(ds_map_find_value(_inst.gmlpmap,"lname"),1,7);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gmlname));}function gml_Object_obj_player_image_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlscale=1.5;}// /// @description Insert description here
function gml_Object_obj_hof_btn_Create_0(_inst,
_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.gmlbtn_image=221;};};event_inherited(_inst,_other);}function gml_Object_obj_hof_btn_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if(yyGetBool(_inst.gmlselected)){{if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,255,1);}else {draw_sprite(_inst,_inst.sprite_index,
1,_inst.x,_inst.y);};};}else {{if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,255,1);}else {draw_sprite(_inst,_inst.sprite_index,0,_inst.x,_inst.y);};};};}function gml_Object_obj_hof_btn_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlselected=false;_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Select;_inst.gmlbtn_image=168;}function gml_Object_obj_info_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){
return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v1833=GetWithArray(78);for(var __yy__v1834 in __yy__v1833){if(!__yy__v1833.hasOwnProperty(__yy__v1834))continue;var __yy__v1835=__yy__v1833[__yy__v1834];if(yyfless(__yy__v1835.depth,_inst.depth)){return;};}};_inst.gmlclicked=false;if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};gml_Script_s_do_info(_inst,_other,_inst.gmlinfo_msg);};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{if(yyGetBool(mouse_check_button_released(1))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,
"op_soundfx"))){audio_play_sound(5,1,false);};gml_Script_s_do_info(_inst,_other,_inst.gmlinfo_msg);};};};};};};}function gml_Object_obj_info_Draw_64(_inst,_other){if(yyfequal(_inst.id,global.gmlui_selected)){{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,255,1);};}else {draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);};}// /// @description Insert description here
function gml_Object_obj_info_Draw_0(_inst,_other){}function gml_Object_obj_info_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlinfo_msg="";_inst.gmlactive=true;}function gml_Object_obj_button_team_Draw_75(_inst,_other){{var __yy__v1836=GetWithArray(78);for(var __yy__v1837 in __yy__v1836){if(!__yy__v1836.hasOwnProperty(__yy__v1837))continue;var __yy__v1838=__yy__v1836[__yy__v1837];if(yyfless(__yy__v1838.depth,_inst.depth)){return;};}};{var __yy__v1839=GetWithArray(71);for(var __yy__v1840 in __yy__v1839){if(!__yy__v1839.hasOwnProperty(__yy__v1840))continue;var __yy__v1841=__yy__v1839[__yy__v1840];
if(yyGetBool(__yy__v1841.gmlediting)){return;};}};var gmlsx1=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.3)));var gmlsx2=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.7)));var gmlsy=yyfplus(__yy_gml_errCheck(_inst.y),22);{if(yyfgreater(_inst.gmloffense,0)){draw_sprite_ext(_inst,105,_inst.gmloffense,gmlsx1,gmlsy,1,1,0,global.gmlc_offense,1);};if(yyfgreater(_inst.gmldefense,0)){draw_sprite_ext(_inst,
105,_inst.gmldefense,gmlsx2,gmlsy,1,1,0,global.gmlc_defense,1);};};}function gml_Object_obj_button_team_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmloffense=0;_inst.gmldefense=0;}function gml_Object_obj_meter_fans_Create_0(_inst,_other){_inst.gmlold_percent=yyInst(_inst,_other,97).gmlfans;_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Fans"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,
25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_fans_Step_0(_inst,_other){_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Fans"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlold_percent=lerp(_inst.gmlold_percent,yyInst(_inst,_other,97).gmlfans,0.1);if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_fans_PreCreate_0(_inst,_other){event_inherited(_inst,
_other);_inst.gmldraw_segments=true;}function gml_Object_obj_meter_team_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_morale(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Team"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_team_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_morale(_inst,
_other),0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Team"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_condition_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_condition_squad(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_TeamCondition"))," "),
__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_condition_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_condition_squad(_inst,_other),0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_TeamCondition"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,
25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_facility_stadium_Create_0(_inst,_other){_inst.gmlpercent=yyInst(_inst,_other,97).gmlfacility_stadium;_inst.gmlold_percent=_inst.gmlpercent;_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Stadium");if(yyfgreater(_inst.gmlpercent,1)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_facility_training_Create_0(_inst,_other){_inst.gmlpercent=yyInst(_inst,_other,97).gmlfacility_training;_inst.gmlold_percent=_inst.gmlpercent;
_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_TrainingFacilities");if(yyfgreater(_inst.gmlpercent,1)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_facility_rehab_Create_0(_inst,_other){_inst.gmlpercent=yyInst(_inst,_other,97).gmlfacility_rehab;_inst.gmlold_percent=_inst.gmlpercent;_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_RehabFacilities");if(yyfgreater(_inst.gmlpercent,1)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_schedulebox_Create_0(_inst,_other){
_inst.gmlsweek=min(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular);_inst.gmlbuf=16;gml_Script_s_populate_schedulebox(_inst,_other);}function gml_Object_obj_schedulebox_Draw_0(_inst,_other){}function gml_Object_obj_schedulebox_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Week"))," "),__yy_gml_errCheck(string(_inst.gmlsweek)));var gmltx=_inst.x;
var gmlty=_inst.y;var gmlsw=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),
__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltitle);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.25)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),18);var gmlf=0;for(;yyfless(gmlf,8);(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),
g_yyPrePostObject__)){{draw_set_alpha(_inst.gmlstr_fix_alf[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_alf)]);draw_set_colour(16777215);if(yyfequal(gmlf,_inst.gmlhighlight)){draw_set_colour(global.gmlc_primary);};draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlstr_fix_vs[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_vs)]);draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(_inst.gmlbuf)),gmlty,_inst.gmlstr_fix_a[__yy_gml_array_check_index(gmlf,
_inst.gmlstr_fix_a)]);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),4),gmlty,_inst.gmlstr_scr_a[__yy_gml_array_check_index(gmlf,_inst.gmlstr_scr_a)]);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(_inst.gmlbuf)),gmlty,_inst.gmlstr_fix_h[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_h)]);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,_inst.gmlstr_scr_h[__yy_gml_array_check_index(gmlf,
_inst.gmlstr_scr_h)]);gmlty=yyfplus(gmlty,16);}};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.75)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),18);var gmlf=8;for(;yyfless(gmlf,16);(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{draw_set_alpha(_inst.gmlstr_fix_alf[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_alf)]);draw_set_colour(16777215);if(yyfequal(gmlf,_inst.gmlhighlight)){
draw_set_colour(global.gmlc_primary);};draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlstr_fix_vs[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_vs)]);draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(_inst.gmlbuf)),gmlty,_inst.gmlstr_fix_a[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_a)]);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),4),gmlty,_inst.gmlstr_scr_a[__yy_gml_array_check_index(gmlf,
_inst.gmlstr_scr_a)]);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(_inst.gmlbuf)),gmlty,_inst.gmlstr_fix_h[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_h)]);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,_inst.gmlstr_scr_h[__yy_gml_array_check_index(gmlf,_inst.gmlstr_scr_h)]);gmlty=yyfplus(gmlty,16);}};draw_set_colour(16777215);draw_set_alpha(1);}function gml_Object_obj_schedulebox_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlstr_fix_a=__yy_gml_array_check(_inst.gmlstr_fix_a,902856654);_inst.gmlstr_fix_a[__yy_gml_array_check_index_set(16)]="0";_inst.gmlstr_fix_h=__yy_gml_array_check(_inst.gmlstr_fix_h,3826435207);_inst.gmlstr_fix_h[__yy_gml_array_check_index_set(16)]="0";_inst.gmlsrt_fix_vs=__yy_gml_array_check(_inst.gmlsrt_fix_vs,32650191);_inst.gmlsrt_fix_vs[__yy_gml_array_check_index_set(16)]="0";_inst.gmlstr_scr_a=__yy_gml_array_check(_inst.gmlstr_scr_a,3289123532);_inst.gmlstr_scr_a[__yy_gml_array_check_index_set(16)]="0";
_inst.gmlstr_scr_h=__yy_gml_array_check(_inst.gmlstr_scr_h,365867397);_inst.gmlstr_scr_h[__yy_gml_array_check_index_set(16)]="0";_inst.gmlbuf=16;_inst.gmlhighlight=0;_inst.gmlstr_fix_alf=__yy_gml_array_check(_inst.gmlstr_fix_alf,1558393854);_inst.gmlstr_fix_alf[__yy_gml_array_check_index_set(16)]=1;}function gml_Object_obj_box_offense_Create_0(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Offense");_inst.gmlimage_num=gml_Script_s_get_team_offense(_inst,_other,yyInst(_inst,_other,
97).gmlmyteam);_inst.gmlimg_colour=global.gmlc_offense;}function gml_Object_obj_box_offense_Step_0(_inst,_other){_inst.gmlimage_num=gml_Script_s_get_team_offense(_inst,_other,yyInst(_inst,_other,97).gmlmyteam);}function gml_Object_obj_box_offense_Draw_0(_inst,_other){}function gml_Object_obj_box_offense_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,
global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));if(yyGetBool(_inst.gmlimage)){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));if((yyGetBool(!yyGetBool(_inst.gmlflash_rating)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
200)),0.1)))){draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);};};}else {{draw_set_halign(0);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),16);gmlty=yyfplus(__yy_gml_errCheck(_inst.y),16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));gmlty=yyfplus(gmlty,16);};};}function gml_Object_obj_box_offense_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle=gml_Script_s_str(_inst,_other,"");_inst.gmlimage=105;_inst.gmlimage_num=0;
_inst.gmlimg_colour=16777215;_inst.gmlflash_rating=false;}function gml_Object_obj_ad_retrogoal_Create_0(_inst,_other){var gmllay_id=layer_get_id("Background");var gmlback_id=layer_background_get_id(gmllay_id);var ___sw1474___=yyfmod(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"done_ad_retrogoal")),5);var ___swc1475___=-1;if(yyCompareVal(___sw1474___,0,g_GMLMathEpsilon,false)==0){___swc1475___=0;}else if(yyCompareVal(___sw1474___,1,g_GMLMathEpsilon,false)==0){___swc1475___=1;
}else if(yyCompareVal(___sw1474___,2,g_GMLMathEpsilon,false)==0){___swc1475___=2;}else if(yyCompareVal(___sw1474___,3,g_GMLMathEpsilon,false)==0){___swc1475___=3;}else if(yyCompareVal(___sw1474___,4,g_GMLMathEpsilon,false)==0){___swc1475___=4;}switch(___swc1475___){case 0:{layer_background_sprite(gmlback_id,248);break;}case 1:{layer_background_sprite(gmlback_id,236);break;}case 2:{layer_background_sprite(gmlback_id,19);break;}case 3:{layer_background_sprite(gmlback_id,267);break;}case 4:{layer_background_sprite(gmlback_id,
235);break;}};}function gml_Object_obj_ad_retrogoal_Step_0(_inst,_other){if(yyGetBool(mouse_check_button_released(1))){{var ___sw1482___=g_pBuiltIn.get_os_type();var ___swc1483___=-1;if(yyCompareVal(___sw1482___,3,g_GMLMathEpsilon,false)==0){___swc1483___=0;}else if(yyCompareVal(___sw1482___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1482___,0,g_GMLMathEpsilon,false)==0){___swc1483___=1;}switch(___swc1483___){case 0:{var ___sw1484___=yyfmod(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,
97).gmlmap_options,"done_ad_retrogoal")),5);var ___swc1485___=-1;if(yyCompareVal(___sw1484___,0,g_GMLMathEpsilon,false)==0){___swc1485___=0;}else if(yyCompareVal(___sw1484___,1,g_GMLMathEpsilon,false)==0){___swc1485___=1;}else if(yyCompareVal(___sw1484___,2,g_GMLMathEpsilon,false)==0){___swc1485___=2;}else if(yyCompareVal(___sw1484___,3,g_GMLMathEpsilon,false)==0){___swc1485___=3;}else if(yyCompareVal(___sw1484___,4,g_GMLMathEpsilon,false)==0){___swc1485___=4;}switch(___swc1485___){case 0:{url_open_ext(global.gmlurl_switch_us,
"_blank");break;}case 1:{url_open_ext(global.gmlurl_apple_retrogoal,"_blank");break;}case 2:{url_open_ext(global.gmlurl_apple_nss,"_blank");break;}case 3:{url_open_ext(global.gmlurl_apple_nsb,"_blank");break;}case 4:{url_open_ext(global.gmlurl_apple_nsm,"_blank");break;}};break;}case 1:{var ___sw1486___=yyfmod(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"done_ad_retrogoal")),5);var ___swc1487___=-1;if(yyCompareVal(___sw1486___,0,g_GMLMathEpsilon,false)==0){___swc1487___=0;
}else if(yyCompareVal(___sw1486___,1,g_GMLMathEpsilon,false)==0){___swc1487___=1;}else if(yyCompareVal(___sw1486___,2,g_GMLMathEpsilon,false)==0){___swc1487___=2;}else if(yyCompareVal(___sw1486___,3,g_GMLMathEpsilon,false)==0){___swc1487___=3;}else if(yyCompareVal(___sw1486___,4,g_GMLMathEpsilon,false)==0){___swc1487___=4;}switch(___swc1487___){case 0:{url_open_ext(global.gmlurl_switch_us,"_blank");break;}case 1:{url_open_ext(global.gmlurl_google_retrogoal,"_blank");break;}case 2:{url_open_ext(global.gmlurl_google_nss,
"_blank");break;}case 3:{url_open_ext(global.gmlurl_google_nsb,"_blank");break;}case 4:{url_open_ext(global.gmlurl_google_nsm,"_blank");break;}};break;}};room_goto(14);};};}function gml_Object_obj_box_defense_Create_0(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Defense");_inst.gmlimage_num=gml_Script_s_get_team_defense(_inst,_other,yyInst(_inst,_other,97).gmlmyteam);_inst.gmlimg_colour=global.gmlc_defense;}function gml_Object_obj_box_defense_Draw_0(_inst,_other){_inst.gmlimage_num=gml_Script_s_get_team_defense(_inst,
_other,yyInst(_inst,_other,97).gmlmyteam);}function gml_Object_obj_box_defense_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),
__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));if(yyGetBool(_inst.gmlimage)){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),
0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));if((yyGetBool(!yyGetBool(_inst.gmlflash_rating)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)))){draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);};};}else {{draw_set_halign(0);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),16);gmlty=yyfplus(__yy_gml_errCheck(_inst.y),16);gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,string_upper(_inst.gmltext));gmlty=yyfplus(gmlty,16);};};}function gml_Object_obj_box_defense_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle=gml_Script_s_str(_inst,_other,"");_inst.gmlimage=105;_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;_inst.gmlflash_rating=false;}function gml_Object_obj_box_coachcredit_Create_0(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Credit");_inst.gmltext=yyInst(_inst,_other,97).gmlcoach_credit;}function gml_Object_obj_box_coachcredit_Step_0(_inst,
_other){_inst.gmltext=yyInst(_inst,_other,97).gmlcoach_credit;}function gml_Object_obj_box_coachcredit_Draw_0(_inst,_other){}function gml_Object_obj_box_coachcredit_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);if(yyGetBool(_inst.gmlshow_frame)){
{draw_self(_inst);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,
yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));};};if((yyGetBool(!yyGetBool(_inst.gmlflash)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)))){{var gmlimw=0;if(yyGetBool(_inst.gmlimage)){gmlimw=sprite_get_width(_inst.gmlimage);};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),
0.5)));gmltx=yyfminus(gmltx,yyfdivide(__yy_gml_errCheck(gmlimw),2));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),0.5));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),1),gmlty,1,1,0,_inst.gmlimg_colour,1);};};}function gml_Object_obj_box_coachcredit_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=93;_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;_inst.gmlshow_frame=true;_inst.gmlflash=false;}function gml_Object_obj_box_morale_Create_0(_inst,_other){_inst.gmltitle=(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)?gml_Script_s_str(_inst,_other,"ui_Team"):gml_Script_s_str(_inst,_other,"ui_Morale"));_inst.gmlimage=95;_inst.gmlold_percent=gml_Script_s_get_morale(_inst,_other);_inst.gmlimage_num=gml_Script_s_get_attitude_icon(_inst,
_other,_inst.gmlold_percent);_inst.gmltext=yyfplus(__yy_gml_errCheck(string(round(_inst.gmlold_percent))),"%");}function gml_Object_obj_box_morale_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_morale(_inst,_other),0.1);_inst.gmlimage_num=gml_Script_s_get_attitude_icon(_inst,_other,_inst.gmlold_percent);_inst.gmltext=yyfplus(__yy_gml_errCheck(string(round(_inst.gmlold_percent))),"%");}function gml_Object_obj_box_morale_Draw_0(_inst,_other){}function gml_Object_obj_box_morale_Draw_64(_inst,
_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),
__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));draw_set_halign(2);gmltx=yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,8);draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);}function gml_Object_obj_box_morale_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=99;_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;}function gml_Object_obj_vbox_Draw_64(_inst,
_other){var gmlw=_inst.sprite_width;var gmlh=_inst.sprite_height;if(yyGetBool(_inst.gmlfill_bg)){{draw_set_colour(global.gmlc_background);draw_rectangle(yyfplus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),2),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),2),0);draw_set_colour(_inst.gmlcolour);};};var gmlcol=_inst.gmlcolour;if(yyfequal(_inst.id,global.gmlui_selected)){gmlcol=255;};draw_sprite_ext(_inst,
142,0,_inst.x,_inst.y,1,1,0,gmlcol,1);draw_sprite_ext(_inst,142,2,yyfplus(__yy_gml_errCheck(_inst.x),4),_inst.y,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_width),8)),4),1,0,gmlcol,1);draw_sprite_ext(_inst,142,1,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),4),_inst.y,1,1,0,gmlcol,1);draw_sprite_ext(_inst,142,3,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),2),yyfplus(__yy_gml_errCheck(_inst.y),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),
8)),4),0,gmlcol,1);draw_sprite_ext(_inst,142,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),4),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),4),1,1,0,gmlcol,1);draw_sprite_ext(_inst,142,2,yyfplus(__yy_gml_errCheck(_inst.x),4),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),2),yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_width),8)),4),1,0,gmlcol,1);draw_sprite_ext(_inst,142,1,_inst.x,yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(gmlh)),4),1,1,0,gmlcol,1);draw_sprite_ext(_inst,142,3,_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),8)),4),0,gmlcol,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gml_title=string_upper(_inst.gmltitle);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gml_title)),2)));var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,
_other,gml_title)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));if(yyfnotequal(gml_title,"")){{draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text_color(_inst,
_other,gmltx,gmlty,gml_title,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};};if(yyfnotequal(_inst.gmltext,"")){{gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlh),0.5)));gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),2);gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltext)),2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);};};}function gml_Object_obj_vbox_Draw_0(_inst,
_other){}function gml_Object_obj_vbox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle=gml_Script_s_str(_inst,_other,"");_inst.gmltext="";_inst.gmlfill_bg=false;_inst.gmlactive=false;_inst.gmlcolour=16777215;_inst.gmltcolour=16777215;}function gml_Object_obj_infobox_Draw_0(_inst,_other){}function gml_Object_obj_infobox_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),
global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));draw_set_halign(0);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),16);gmlty=yyfplus(__yy_gml_errCheck(_inst.y),16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltxt_1));gmlty=yyfplus(gmlty,16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltxt_2));gmlty=yyfplus(gmlty,16);gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,string_upper(_inst.gmltxt_3));gmlty=yyfplus(gmlty,16);}function gml_Object_obj_infobox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltxt_1="Line 1";_inst.gmltxt_2="Line 2";_inst.gmltxt_3="Line 3";}function gml_Object_obj_smallbox_Draw_0(_inst,_other){}function gml_Object_obj_smallbox_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));if(yyfnotequal(_inst.gmltitle,"")){{draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),
global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));};};if((yyGetBool(yyfnotequal(_inst.gmlimage,(-4))))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),
0.5)));var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyfplus(2,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),0.5))));gmltw=yyftime(gmltw,0.5);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty,_inst.gmltext);draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty,1,1,0,_inst.gmlimg_colour,
1);};}else {if(yyfnotequal(_inst.gmlimage,(-4))){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);};}else {{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));gmlty=yyfplus(gmlty,16);};};};}function gml_Object_obj_smallbox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=0;_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;}function gml_Object_obj_checkbox_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){
return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v1842=GetWithArray(78);for(var __yy__v1843 in __yy__v1842){if(!__yy__v1842.hasOwnProperty(__yy__v1843))continue;var __yy__v1844=__yy__v1842[__yy__v1843];if(yyfless(__yy__v1844.depth,_inst.depth)){return;};}};{var __yy__v1845=GetWithArray(71);for(var __yy__v1846 in __yy__v1845){if(!__yy__v1845.hasOwnProperty(__yy__v1846))continue;var __yy__v1847=__yy__v1845[__yy__v1846];if(yyGetBool(__yy__v1847.gmlediting)){return;};}};_inst.gmlclicked=false;if(yyGetBool(global.gmlgamepad)){
{if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};_inst.gmlstate=!yyGetBool(_inst.gmlstate);if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};if((yyGetBool(_inst.gmlstate))&&(yyGetBool(yyfnotequal(_inst.gmlclick_info,"")))){{gml_Script_s_create_message(_inst,
_other,"",gml_Script_s_str(_inst,_other,_inst.gmlclick_info),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{if(yyGetBool(mouse_check_button_released(1))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};_inst.gmlstate=!yyGetBool(_inst.gmlstate);if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};if((yyGetBool(_inst.gmlstate))&&(yyGetBool(yyfnotequal(_inst.gmlclick_info,"")))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,_inst.gmlclick_info),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};};};};}
;}function gml_Object_obj_checkbox_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);var gmlcol=16777215;if(yyfequal(_inst.id,global.gmlui_selected)){gmlcol=255;};var ___sw1490___=_inst.gmlstate;var ___swc1491___=-1;if(yyCompareVal(___sw1490___,false,g_GMLMathEpsilon,false)==0){___swc1491___=0;}else if(yyCompareVal(___sw1490___,true,g_GMLMathEpsilon,false)==0){___swc1491___=1;}switch(___swc1491___){
case 0:{draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,gmlcol,1);break;}case 1:{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,gmlcol,1);break;}};draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1);if(yyfequal(_inst.gmltxt_side,0)){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),8),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),_inst.gmltext);};}else {{
draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),18),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),_inst.gmltext);};};}function gml_Object_obj_checkbox_Draw_0(_inst,_other){}function gml_Object_obj_checkbox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstate=false;_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlclick_info="";_inst.gmlactive=true;_inst.gmlonClickAction=(-4);
_inst.gmltxt_side=0;}function gml_Object_obj_roomtitle_Draw_0(_inst,_other){}function gml_Object_obj_roomtitle_Draw_64(_inst,_other){var gmlframe_img=109;var gmldraw_for_co=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlframe_img=207;gmldraw_for_co=true;};};draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltxt=string_upper(_inst.gmltext);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmltw=yyfplus(yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,gmltxt)),0.5)),__yy_gml_errCheck(sprite_get_width(gmlframe_img))),16);gml_Script_draw_hd_text(_inst,_other,gmltx,_inst.gmlty,gmltxt);if((yyGetBool(_inst.gmlshow_stars))&&(yyGetBool(yyfless(gml_Script_string_hd_width(_inst,_other,gmltxt),yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5))))){{if(yyfequal(gmldraw_for_co,false)){{draw_sprite_ext(_inst,gmlframe_img,0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),_inst.gmlty,2,2,0,16777215,1);draw_sprite_ext(_inst,gmlframe_img,
0,yyfminus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),2),_inst.gmlty,(-2),2,0,16777215,1);};}else {{var gmlscl=1;draw_sprite_ext(_inst,gmlframe_img,0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfminus(__yy_gml_errCheck(_inst.gmlty),6),gmlscl,gmlscl,0,16777215,1);draw_sprite_ext(_inst,gmlframe_img,0,yyfminus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),2),yyfminus(__yy_gml_errCheck(_inst.gmlty),6),gmlscl,gmlscl,0,16777215,1);};};};};}function gml_Object_obj_roomtitle_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlty=16;_inst.gmltext=gml_Script_s_str(_inst,_other,"ui_Title");_inst.gmlshow_stars=true;}function gml_Object_obj_input_box_Step_0(_inst,_other){if(!yyGetBool(_inst.gmlactive)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v1848=GetWithArray(78);for(var __yy__v1849 in __yy__v1848){if(!__yy__v1848.hasOwnProperty(__yy__v1849))continue;var __yy__v1850=__yy__v1848[__yy__v1849];if(yyfless(__yy__v1850.depth,
_inst.depth)){return;};}};_inst.gmlhover=false;_inst.gmlcustom_keyboard=gml_Script_s_keyboard_custom_enabled(_inst,_other);if(yyGetBool(_inst.gmlediting)){{if(yyfgreater(string_length(g_pBuiltIn.keyboard_string),_inst.gmlmax_length)){g_pBuiltIn.keyboard_string=string_copy(g_pBuiltIn.keyboard_string,1,_inst.gmlmax_length);};if(!yyGetBool(_inst.gmlcustom_keyboard)){{if(yyGetBool(mouse_check_button_released(1))){_inst.gmlediting=false;};};}else {{if((yyGetBool(mouse_check_button_released(1)))&&(yyGetBool(!yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),
device_mouse_y_to_gui(0),10,120,470,260))))){_inst.gmlediting=false;};};};var ___sw1494___=g_pBuiltIn.get_os_type();var ___swc1495___=-1;if(yyCompareVal(___sw1494___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1494___,1,g_GMLMathEpsilon,false)==0){___swc1495___=0;}else if(yyCompareVal(___sw1494___,21,g_GMLMathEpsilon,false)==0){___swc1495___=1;}else if(yyCompareVal(___sw1494___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1494___,4,g_GMLMathEpsilon,false)==0){___swc1495___=2;}switch(___swc1495___){
case 0:{if(yyGetBool(keyboard_check_released(13))){{_inst.gmlediting=false;};};break;}case 1:{break;}case 2:{if((yyGetBool(yyfnotequal(g_pBuiltIn.keyboard_string,"")))||(yyGetBool(os_is_paused()))){{gml_Script_slog(_inst,_other,yyfplus("keyboard_virtual_status=",__yy_gml_errCheck(string(keyboard_virtual_status()))));gml_Script_slog(_inst,_other,yyfplus("keyboard_lastkey=",__yy_gml_errCheck(string(g_pBuiltIn.keyboard_lastkey))));gml_Script_slog(_inst,_other,yyfplus("keyboard_lastchar=",__yy_gml_errCheck(string(g_pBuiltIn.keyboard_lastchar))));
if((yyGetBool(yyfequal(g_pBuiltIn.keyboard_lastchar,"\n")))||(yyGetBool(yyfequal(g_pBuiltIn.keyboard_lastchar,"\n")))||(yyGetBool(yyfequal(g_pBuiltIn.keyboard_lastchar,"\r")))||(yyGetBool(yyfequal(g_pBuiltIn.keyboard_lastkey,10)))||(yyGetBool(yyfequal(keyboard_virtual_status(),false)))){{_inst.gmlediting=false;};};};};break;}};if(!yyGetBool(_inst.gmlediting)){{keyboard_clear(13);if(yyGetBool(global.gmlmobile_device)){keyboard_virtual_hide();};if(yyGetBool(_inst.gmlcustom_keyboard)){gml_Script_s_keyboard_custom_hide(_inst,
_other);};if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};_inst.gmltext=g_pBuiltIn.keyboard_string;_inst.gmltext=string_replace_all(_inst.gmltext," ","1X1");_inst.gmltext=string_replace_all(_inst.gmltext,".","2X2");_inst.gmltext=string_replace_all(_inst.gmltext,"'","3X3");_inst.gmltext=string_lettersdigits(_inst.gmltext);_inst.gmltext=string_replace_all(_inst.gmltext,"1X1"," ");_inst.gmltext=string_replace_all(_inst.gmltext,"2X2",
".");_inst.gmltext=string_replace_all(_inst.gmltext,"3X3","'");g_pBuiltIn.keyboard_string="";g_pBuiltIn.keyboard_lastkey=(-1);if(yyGetBool(script_exists(_inst.gmlvalidate_script))){script_execute(_inst,_other,_inst.gmlvalidate_script);};};};};}else {{{var __yy__v1851=GetWithArray(71);for(var __yy__v1852 in __yy__v1851){if(!__yy__v1851.hasOwnProperty(__yy__v1852))continue;var __yy__v1853=__yy__v1851[__yy__v1852];if(yyGetBool(__yy__v1853.gmlediting)){return;};}};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(global.gmlui_selected,
_inst.id)))&&(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};_inst.gmlediting=true;gml_Script_slog(_inst,_other,"Input box editing (Pad)");if(yyGetBool(global.gmlmobile_device)){keyboard_virtual_show(0,4,1,false);};if(yyGetBool(_inst.gmlcustom_keyboard)){gml_Script_s_keyboard_custom_show(_inst,_other,_inst.id);};g_pBuiltIn.keyboard_string="";g_pBuiltIn.keyboard_lastkey=(-1);
};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,
_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};_inst.gmlclicked=false;_inst.gmlediting=true;gml_Script_slog(_inst,_other,"Input box editing (Touch)");if(yyGetBool(global.gmlmobile_device)){{keyboard_virtual_show(0,4,1,false);};};if(yyGetBool(_inst.gmlcustom_keyboard)){gml_Script_s_keyboard_custom_show(_inst,_other,_inst.id);};g_pBuiltIn.keyboard_string="";g_pBuiltIn.keyboard_lastkey=(-1);};};};}else {{_inst.gmlclicked=false;};};};};};};}function gml_Object_obj_input_box_Draw_64(_inst,
_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if((yyGetBool(_inst.gmlediting))||(yyGetBool((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(yyfgreater(gmlf,0.5)))))){draw_rectangle_color(yyfminus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),1.5),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(_inst.sprite_height)),1.5),255,255,255,255,0);};draw_self(_inst);draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);draw_set_alpha(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));if(yyGetBool(_inst.gmlediting)){{var gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
100))),1)),2);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),3),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,g_pBuiltIn.keyboard_string)),0.5))),gmlty,"|",_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,gmla);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,g_pBuiltIn.keyboard_string,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};}else {{gml_Script_draw_hd_text_color(_inst,
_other,gmltx,gmlty,_inst.gmltext,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};};}function gml_Object_obj_input_box_Draw_0(_inst,_other){}function gml_Object_obj_input_box_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext="Text";_inst.gmlhalign=1;_inst.gmlvalign=1;_inst.gmlcolour=16777215;_inst.gmltcolour=0;_inst.gmlfont=1;_inst.gmlediting=false;_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlnext_input=(-4);_inst.gmlactive=true;_inst.gmlmax_length=8;
_inst.gmlvalidate_script=(-4);_inst.gmlcustom_keyboard=false;_inst.gmlcustom_keyboard_type=0;}function gml_Object_obj_text_exp_Draw_64(_inst,_other){if((yyGetBool(_inst.gmldraw_box))&&(yyGetBool(_inst.sprite_index))){{if(yyGetBool(_inst.gmlshadow)){draw_sprite_ext(_inst,_inst.sprite_index,0,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,4210752,_inst.gmlalpha);};draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,
_inst.image_yscale,0,_inst.gmlcolour,_inst.gmlalpha);};};draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);_inst.gmltext=string_upper(_inst.gmltext);var gmltx=_inst.x;var gmlty=_inst.y;var gmla=_inst.gmlalpha;if(yyGetBool(_inst.gmlicon)){gmltx=yyfminus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.25));};if((yyGetBool(yyfequal(gmla,1)))&&(yyGetBool(_inst.gmlflashtext))){gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
160))),1)),2);};if(yyGetBool(_inst.gmlshadow)){gml_Script_draw_hd_text_ext_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),_inst.gmltext,(-1),_inst.sprite_width,0,0,0,0,gmla);};gml_Script_draw_hd_text_ext_color(_inst,_other,gmltx,gmlty,_inst.gmltext,(-1),_inst.sprite_width,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,gmla);if(yyGetBool(_inst.gmlicon)){{var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),
0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.5));draw_sprite(_inst,_inst.gmlicon,0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);};};}function gml_Object_obj_text_exp_Draw_0(_inst,_other){}function gml_Object_obj_text_exp_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhalign=1;_inst.gmlvalign=1;_inst.gmldraw_box=true;_inst.gmlcolour=16777215;_inst.gmltcolour=16777215;_inst.gmlalpha=1;_inst.gmlflashtext=false;_inst.gmlfont=global.gmlfnt_small_flex;
_inst.gmlshadow=false;_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlicon=(-4);}function gml_Object_obj_text_watermark_Mouse_4(_inst,_other){{var __yy__v1854=GetWithArray(79);for(var __yy__v1855 in __yy__v1854){if(!__yy__v1854.hasOwnProperty(__yy__v1855))continue;var __yy__v1856=__yy__v1854[__yy__v1855];return;}};{var __yy__v1857=GetWithArray(78);for(var __yy__v1858 in __yy__v1857){if(!__yy__v1857.hasOwnProperty(__yy__v1858))continue;var __yy__v1859=__yy__v1857[__yy__v1858];return;}};if(yyGetBool(global.gmlconsole_build)){
return;};room_goto(32);}function gml_Object_obj_text_watermark_Draw_64(_inst,_other){if((yyGetBool(_inst.gmldraw_box))&&(yyGetBool(_inst.sprite_index))){{if(yyGetBool(_inst.gmlshadow)){draw_sprite_ext(_inst,_inst.sprite_index,0,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,4210752,_inst.gmlalpha);};draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,_inst.gmlalpha);
};};draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);_inst.gmltext=string_upper(_inst.gmltext);var gmltx=_inst.x;var gmlty=_inst.y;var gmla=_inst.gmlalpha;if(yyGetBool(_inst.gmlicon)){gmltx=yyfminus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.25));};if((yyGetBool(yyfequal(gmla,1)))&&(yyGetBool(_inst.gmlflashtext))){gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
160))),1)),2);};if(yyGetBool(_inst.gmlshadow)){gml_Script_draw_hd_text_ext_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),_inst.gmltext,(-1),_inst.sprite_width,0,0,0,0,gmla);};gml_Script_draw_hd_text_ext_color(_inst,_other,gmltx,gmlty,_inst.gmltext,(-1),_inst.sprite_width,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,gmla);if(yyGetBool(_inst.gmlicon)){{var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),
0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.5));draw_sprite(_inst,_inst.gmlicon,0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);};};}function gml_Object_obj_text_watermark_Draw_0(_inst,_other){}function gml_Object_obj_text_watermark_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhalign=1;_inst.gmlvalign=1;_inst.gmldraw_box=true;_inst.gmlcolour=16777215;_inst.gmltcolour=16777215;_inst.gmlalpha=1;_inst.gmlflashtext=false;
_inst.gmlfont=1;_inst.gmlshadow=false;_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlicon=(-4);}function gml_Object_obj_text_Draw_64(_inst,_other){if(yyGetBool(_inst.gmldraw_box)){{if(yyGetBool(_inst.gmlshadow)){draw_sprite_ext(_inst,_inst.sprite_index,0,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,4210752,_inst.gmlalpha);};draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,
0,_inst.gmlcolour,_inst.gmlalpha);};};draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);_inst.gmltext=string_upper(_inst.gmltext);var gmltx=_inst.x;var gmlty=_inst.y;var gmla=_inst.gmlalpha;if(yyGetBool(_inst.gmlicon)){{if(yyGetBool(_inst.gmlicon_left)){gmltx=yyfplus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.3));}else {gmltx=yyfminus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.3));};};};if((yyGetBool(yyfequal(gmla,
1)))&&(yyGetBool(_inst.gmlflashtext))){gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),160))),1)),2);};if(yyGetBool(_inst.gmlshadow)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),_inst.gmltext,0,0,0,0,gmla);};gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmltext,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,gmla);if(yyGetBool(_inst.gmlicon)){
{var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.7));if(yyGetBool(_inst.gmlicon_left)){draw_sprite(_inst,_inst.gmlicon,_inst.gmlicon_frame,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);}else {draw_sprite(_inst,_inst.gmlicon,_inst.gmlicon_frame,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);};};};}function gml_Object_obj_text_Draw_0(_inst,
_other){}function gml_Object_obj_text_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext="Text";_inst.gmlhalign=1;_inst.gmlvalign=1;_inst.gmldraw_box=true;_inst.gmlcolour=16777215;_inst.gmltcolour=16777215;_inst.gmlalpha=1;_inst.gmlflashtext=false;_inst.gmlfont=global.gmlfnt_small_flex;_inst.gmlshadow=false;_inst.gmlicon=(-4);_inst.gmlicon_left=false;_inst.gmlicon_frame=0;}function gml_Object_obj_txt_credit_Create_0(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_other);
_inst.gmlicon=93;}function gml_Object_obj_txt_credit_Step_0(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_other);}function gml_Object_obj_txt_credit_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlfont=global.gmlfnt_small_flex;}function gml_Object_obj_difficulty_watermark_Create_0(_inst,_other){var gmlfixture=gml_Script_s_get_human_fixture_by_week(_inst,_other,yyInst(_inst,_other,97).gmlweek);if((yyGetBool(gmlfixture))&&(yyGetBool(ds_map_exists(gmlfixture,"difficulty")))){
{_inst.gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Difficulty")),": "),__yy_gml_errCheck(ds_map_find_value(gmlfixture,"difficulty")));};};}function gml_Object_obj_difficulty_watermark_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmldraw_box=false;_inst.gmlalpha=0.4;_inst.gmltext="";}function gml_Object_obj_picks_Create_0(_inst,_other){_inst.gmlpick1=string(yyInst(_inst,_other,97).gmldraft_picks[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmldraft_picks)]);
_inst.gmlpick2=string(yyInst(_inst,_other,97).gmldraft_picks[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmldraft_picks)]);_inst.gmlpick3=string(yyInst(_inst,_other,97).gmldraft_picks[__yy_gml_array_check_index(2,yyInst(_inst,_other,97).gmldraft_picks)]);_inst.gmldraft_round=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmldraft_round),1);_inst.gmlalf=__yy_gml_array_check(_inst.gmlalf,1827966746);_inst.gmlalf[__yy_gml_array_check_index_set(0)]=0.4;_inst.gmlalf[__yy_gml_array_check_index_set(1)]=0.4;
_inst.gmlalf[__yy_gml_array_check_index_set(2)]=0.4;if(yyfnotequal(g_pBuiltIn.get_current_room(),5)){{_inst.gmldraft_round=(-1);_inst.gmlalf[__yy_gml_array_check_index_set(0)]=1;_inst.gmlalf[__yy_gml_array_check_index_set(1)]=1;_inst.gmlalf[__yy_gml_array_check_index_set(2)]=1;};};}function gml_Object_obj_picks_Draw_64(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.visible=false;return;};};if(yyGetBool(_inst.gmldraw_box)){{if(yyGetBool(_inst.gmlshadow)){draw_sprite_ext(_inst,
_inst.sprite_index,0,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,4210752,_inst.gmlalpha);};draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,_inst.gmlalpha);};};draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);var gmltx=yyfminus(__yy_gml_errCheck(_inst.x),16);var gmlty=_inst.y;if((yyGetBool(yyfgreaterequal(_inst.gmldraft_round,
0)))&&(yyGetBool(yyflessequal(_inst.gmldraft_round,2)))){_inst.gmlalf=__yy_gml_array_check(_inst.gmlalf,1827966746);_inst.gmlalf[__yy_gml_array_check_index_set(_inst.gmldraft_round)]=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),160))),1)),2);};gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlpick1,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmlalf[__yy_gml_array_check_index(0,_inst.gmlalf)]);
gmltx=yyfplus(gmltx,8);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,"-",_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);gmltx=yyfplus(gmltx,8);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlpick2,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmlalf[__yy_gml_array_check_index(1,_inst.gmlalf)]);gmltx=yyfplus(gmltx,8);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,"-",_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,
_inst.gmltcolour,1);gmltx=yyfplus(gmltx,8);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlpick3,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmlalf[__yy_gml_array_check_index(2,_inst.gmlalf)]);}function gml_Object_obj_msgbg_Create_0(_inst,_other){_inst.image_xscale=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),__yy_gml_errCheck(_inst.sprite_width));_inst.image_yscale=yyfdivide(__yy_gml_errCheck(display_get_gui_height()),__yy_gml_errCheck(_inst.sprite_height));
_inst.gmlnewroom=(-4);}function gml_Object_obj_msgbg_Alarm_0(_inst,_other){gml_Script_s_meter_change_end(_inst,_other);}function gml_Object_obj_msgbg_Draw_64(_inst,_other){draw_sprite_ext(_inst,147,0,0,0,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,_inst.gmlalpha);}function gml_Object_obj_msgbg_Draw_0(_inst,_other){}function gml_Object_obj_msgbg_KeyPress_27(_inst,_other){room_goto(14);}function gml_Object_obj_msgbg_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlalpha=0.8;
_inst.gmlcolour=16777215;_inst.gmldo_play=false;}function gml_Object_obj_messagebox_Draw_0(_inst,_other){}function gml_Object_obj_messagebox_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);var gmlsep=(-1);if(yyfgreater(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width),150)){gmlsep=12;};if(yyGetBool(_inst.gmldraw_box)){{var gmlw=yyfplus(16,__yy_gml_errCheck(gml_Script_string_hd_width_ext(_inst,_other,_inst.gmltext,
gmlsep,_inst.gmlmsg_width)));var gmltw=yyfplus(16,__yy_gml_errCheck(gml_Script_string_hd_width_ext(_inst,_other,_inst.gmltitle,gmlsep,_inst.gmlmsg_width)));if(yyfgreater(gmltw,gmlw)){gmlw=gmltw;};var gmlh=yyfplus(16,__yy_gml_errCheck(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width)));var gmlbx=yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlw),0.5)));var gmlby=yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlh),
0.5)));draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlbx),2),yyfplus(__yy_gml_errCheck(gmlby),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(gmlw)),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(gmlh)),2),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);draw_sprite(_inst,142,0,gmlbx,gmlby);draw_sprite_ext(_inst,142,2,yyfplus(__yy_gml_errCheck(gmlbx),4),gmlby,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlw),8)),4),1,0,16777215,1);draw_sprite(_inst,
142,1,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(gmlw)),4),gmlby);draw_sprite_ext(_inst,142,3,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(gmlw)),2),yyfplus(__yy_gml_errCheck(gmlby),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlh),8)),4),0,16777215,1);draw_sprite(_inst,142,0,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(gmlw)),4),yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(gmlh)),4));draw_sprite_ext(_inst,142,2,yyfplus(__yy_gml_errCheck(gmlbx),
4),yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(gmlh)),2),yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlw),8)),4),1,0,16777215,1);draw_sprite(_inst,142,1,gmlbx,yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(gmlh)),4));draw_sprite_ext(_inst,142,3,gmlbx,yyfplus(__yy_gml_errCheck(gmlby),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlh),8)),4),0,16777215,1);};};if(yyGetBool(_inst.gmltext_shadow)){{draw_set_color(0);gml_Script_draw_hd_text_ext(_inst,
_other,yyfminus(__yy_gml_errCheck(_inst.x),1),yyfplus(__yy_gml_errCheck(_inst.y),1),_inst.gmltext,gmlsep,_inst.gmlmsg_width);};};draw_set_color(_inst.gmltext_col);gml_Script_draw_hd_text_ext(_inst,_other,_inst.x,_inst.y,_inst.gmltext,gmlsep,_inst.gmlmsg_width);draw_set_color(16777215);var gmlh=yyfplus(16,__yy_gml_errCheck(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width)));var gmlby=yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlh),
0.5)));if(yyfequal(_inst.gmltitle,"")){return;};var gml_title=string_upper(_inst.gmltitle);var gmltx=_inst.x;var gmlty=gmlby;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gml_title)),2)));var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,gml_title)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));if(yyfnotequal(gml_title,"")){{draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),
__yy_gml_errCheck(gmlsw)),2),yyfplus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),6),16777215,16777215,16777215,16777215,0);draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),
0),yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),6),16777215,16777215,16777215,16777215,0);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),2),yyfminus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),2),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);if(yyGetBool(_inst.gmltitle_shadow)){
gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_title,0,0,0,0,1);};gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gml_title,16777215,16777215,16777215,16777215,1);};};}function gml_Object_obj_messagebox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext="Message";_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlmsg_width=400;_inst.gmldraw_box=true;_inst.gmltext_col=new Long(4294967295,0,false);_inst.gmltext_shadow=false;
_inst.gmltitle="";_inst.gmltitle_shadow=true;}function gml_Object_obj_rm_qb_negotiate_Create_0(_inst,_other){yyInst(_inst,_other,100730).visible=false;yyInst(_inst,_other,100734).visible=false;{var __yy__v1860=GetWithArray(97);for(var __yy__v1861 in __yy__v1860){if(!__yy__v1860.hasOwnProperty(__yy__v1861))continue;var __yy__v1862=__yy__v1860[__yy__v1861];{var gmllist_numbers=ds_list_create();var gmli=0;for(;yyfless(gmli,11);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){ds_list_add(gmllist_numbers,yyfplus(__yy_gml_errCheck(gmli),1))};var gmlsz=clamp(2,7,yyfplus(yyfplus(yyfplus(1,__yy_gml_errCheck(yyInst(_inst,_other,__yy__v1862.gmlqb_new_offer).gml_salary_neg)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v1862.gmlqb_new_offer).gml_tdbonus_neg)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v1862.gmlqb_new_offer).gml_length_neg)));var gmli=(-1);for(;yyfless(gmli,yyfminus(__yy_gml_errCheck(gmlsz),1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{ds_list_shuffle(gmllist_numbers);var gmlob=instance_create_layer(yyfplus(240,__yy_gml_errCheck(yyftime(78,__yy_gml_errCheck(gmli)))),180,"Instances",5);yyInst(_inst,_other,gmlob).gmlnumber=ds_list_find_value(gmllist_numbers,1);yyInst(_inst,_other,gmlob).gmlposition=gmli;ds_list_delete(gmllist_numbers,1);}};}}};gml_Script_s_check_hilo_buttons(_inst,_other);}function gml_Object_obj_division_Step_0(_inst,_other){if(!yyGetBool(_inst.gmlactive)){{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),
device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{if(yyGetBool(mouse_check_button_released(1))){gml_Script_btn_click_LeagueMode(_inst,_other);};};};};};event_inherited(_inst,_other);}function gml_Object_obj_division_Draw_0(_inst,_other){}function gml_Object_obj_division_Draw_64(_inst,_other){var gmlgx=_inst.x;var gmlgy=_inst.y;if(yyGetBool(_inst.gmlactive)){
draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);};if(yyGetBool(_inst.gmlclicked)){{gmlgx=yyfminus(gmlgx,2);gmlgy=yyfplus(gmlgy,2);};};draw_set_alpha(_inst.gmlalpha);draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlgx),2),gmlgy,yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlgx),2),__yy_gml_errCheck(_inst.sprite_width)),4),yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlgy),2),__yy_gml_errCheck(_inst.sprite_height)),
4),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,gmlgx,gmlgy);if(yyfequal(global.gmlui_selected,_inst.id)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=gmlgx;var gmlty=gmlgy;var gmlsw=yyfplus(1,__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,_inst.gmltitle)));var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,16);draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),2),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_set_alpha(_inst.gmlalpha);
gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));draw_set_halign(1);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(_inst.sprite_width)),56);var ___sw1500___=_inst.gmlmode;var ___swc1501___=-1;if(yyCompareVal(___sw1500___,0,g_GMLMathEpsilon,false)==0){___swc1501___=0;}else if(yyCompareVal(___sw1500___,1,g_GMLMathEpsilon,false)==0){___swc1501___=1;}else if(yyCompareVal(___sw1500___,2,g_GMLMathEpsilon,false)==0){___swc1501___=2;}switch(___swc1501___){case 0:{
draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),14),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),48),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_set_alpha(_inst.gmlalpha);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Percentage")));gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_NetPoints")));break;}case 1:{draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),8),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),46),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_set_alpha(_inst.gmlalpha);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,
gml_Script_s_str(_inst,_other,"sla_Wins"));gmltx=yyfplus(gmltx,20);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"sla_Losses"));gmltx=yyfplus(gmltx,20);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"sla_Ties"));break;}case 2:{draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),14),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),48),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),
global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_set_alpha(_inst.gmlalpha);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Offense")));gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Defense")));break;}};gmlty=yyfplus(__yy_gml_errCheck(gmlgy),16);var gmlt=0;for(;yyfless(gmlt,4);(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),
g_yyPrePostObject__)){{gmltx=yyfplus(__yy_gml_errCheck(gmlgx),16);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,string_upper(_inst.gmlteam_name[__yy_gml_array_check_index(gmlt,_inst.gmlteam_name)]),_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);
gmltx=yyfminus(yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(_inst.sprite_width)),56);draw_set_halign(1);var ___sw1502___=_inst.gmlmode;var ___swc1503___=-1;if(yyCompareVal(___sw1502___,0,g_GMLMathEpsilon,false)==0){___swc1503___=0;}else if(yyCompareVal(___sw1502___,1,g_GMLMathEpsilon,false)==0){___swc1503___=1;}else if(yyCompareVal(___sw1502___,2,g_GMLMathEpsilon,false)==0){___swc1503___=2;}switch(___swc1503___){case 0:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlpct[__yy_gml_array_check_index(gmlt,
_inst.gmlpct)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlnet[__yy_gml_array_check_index(gmlt,_inst.gmlnet)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],
_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);break;}case 1:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlwins[__yy_gml_array_check_index(gmlt,_inst.gmlwins)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,
_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);gmltx=yyfplus(gmltx,20);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmllosses[__yy_gml_array_check_index(gmlt,_inst.gmllosses)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,
_inst.gmlcol_txt)],_inst.gmlalpha);gmltx=yyfplus(gmltx,20);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlties[__yy_gml_array_check_index(gmlt,_inst.gmlties)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);break;}case 2:{gml_Script_draw_hd_text_color(_inst,
_other,gmltx,gmlty,_inst.gmloffense[__yy_gml_array_check_index(gmlt,_inst.gmloffense)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmldefense[__yy_gml_array_check_index(gmlt,
_inst.gmldefense)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);break;}};gmlty=yyfplus(gmlty,16);}};draw_set_alpha(1);}function gml_Object_obj_division_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlteam_name=__yy_gml_array_check(_inst.gmlteam_name,
4207176991);_inst.gmlteam_name[__yy_gml_array_check_index_set(4)]="Team";_inst.gmlcol_txt=__yy_gml_array_check(_inst.gmlcol_txt,962292243);_inst.gmlcol_txt[__yy_gml_array_check_index_set(4)]=16777215;_inst.gmlwins=__yy_gml_array_check(_inst.gmlwins,3868566363);_inst.gmlwins[__yy_gml_array_check_index_set(4)]=0;_inst.gmllosses=__yy_gml_array_check(_inst.gmllosses,497902275);_inst.gmllosses[__yy_gml_array_check_index_set(4)]=0;_inst.gmlties=__yy_gml_array_check(_inst.gmlties,3206226873);_inst.gmlties[__yy_gml_array_check_index_set(4)]=0;
_inst.gmlalpha=1;_inst.gmlmode=1;_inst.gmlpct=__yy_gml_array_check(_inst.gmlpct,2229878433);_inst.gmlpct[__yy_gml_array_check_index_set(4)]=0;_inst.gmlnet=__yy_gml_array_check(_inst.gmlnet,2556297878);_inst.gmlnet[__yy_gml_array_check_index_set(4)]=0;_inst.gmloffense=__yy_gml_array_check(_inst.gmloffense,2881329983);_inst.gmloffense[__yy_gml_array_check_index_set(4)]=0;_inst.gmldefense=__yy_gml_array_check(_inst.gmldefense,2468049442);_inst.gmldefense[__yy_gml_array_check_index_set(4)]=0;}function gml_Object_obj_scoreboard_Draw_0(_inst,
_other){}function gml_Object_obj_scoreboard_Draw_64(_inst,_other){draw_self(_inst);var gmlgx=_inst.x;var gmlgy=_inst.y;draw_set_font(global.gmlfnt_flex);draw_set_halign(0);draw_set_alpha(1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlgx),8),yyfplus(__yy_gml_errCheck(gmlgy),14),_inst.gmlteamnames[__yy_gml_array_check_index(0,_inst.gmlteamnames)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlgx),
8),yyfplus(__yy_gml_errCheck(gmlgy),57),_inst.gmlteamnames[__yy_gml_array_check_index(1,_inst.gmlteamnames)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmlsx=yyfplus(__yy_gml_errCheck(gmlgx),78);var gmlsy=yyfplus(__yy_gml_errCheck(gmlgy),14);var gmlsy2=yyfplus(__yy_gml_errCheck(gmlgy),57);var gmlgap=25;gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(0,_inst.gmlscores1)],_inst.gmlcol1,
_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(0,_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);gmlsx=yyfplus(gmlsx,gmlgap);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(1,_inst.gmlscores1)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(1,
_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);gmlsx=yyfplus(gmlsx,gmlgap);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(2,_inst.gmlscores1)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(2,_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);gmlsx=yyfplus(gmlsx,gmlgap);gml_Script_draw_hd_text_color(_inst,
_other,gmlsx,gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(3,_inst.gmlscores1)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(3,_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);gmlsx=yyfplus(gmlsx,gmlgap);draw_set_font(global.gmlfnt_flex);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlsx),7),gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(4,
_inst.gmlscores1)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlsx),7),gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(4,_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);var gmlsx1=yyfplus(__yy_gml_errCheck(gmlgx),9);var gmlsx2=yyfplus(__yy_gml_errCheck(gmlsx1),2);var ___sw1508___=_inst.gmlratings1[__yy_gml_array_check_index(0,_inst.gmlratings1)];var ___swc1509___=-1;if(yyCompareVal(___sw1508___,
1,g_GMLMathEpsilon,false)==0){___swc1509___=0;}else if(yyCompareVal(___sw1508___,2,g_GMLMathEpsilon,false)==0){___swc1509___=1;}else if(yyCompareVal(___sw1508___,3,g_GMLMathEpsilon,false)==0){___swc1509___=2;}else if(yyCompareVal(___sw1508___,4,g_GMLMathEpsilon,false)==0){___swc1509___=3;}else if(yyCompareVal(___sw1508___,5,g_GMLMathEpsilon,false)==0){___swc1509___=4;}else if(yyCompareVal(___sw1508___,6,g_GMLMathEpsilon,false)==0){___swc1509___=5;}else if(yyCompareVal(___sw1508___,7,g_GMLMathEpsilon,false)==0){
___swc1509___=6;}else if(yyCompareVal(___sw1508___,8,g_GMLMathEpsilon,false)==0){___swc1509___=7;}else if(yyCompareVal(___sw1508___,9,g_GMLMathEpsilon,false)==0){___swc1509___=8;}else if(yyCompareVal(___sw1508___,10,g_GMLMathEpsilon,false)==0){___swc1509___=9;}switch(___swc1509___){case 0:{gmlsx2=yyfplus(gmlsx2,6);break;}case 1:{gmlsx2=yyfplus(gmlsx2,9);break;}case 2:{gmlsx2=yyfplus(gmlsx2,15);break;}case 3:{gmlsx2=yyfplus(gmlsx2,18);break;}case 4:{gmlsx2=yyfplus(gmlsx2,24);break;}case 5:{gmlsx2=yyfplus(gmlsx2,
27);break;}case 6:{gmlsx2=yyfplus(gmlsx2,30);break;}case 7:{gmlsx2=yyfplus(gmlsx2,36);break;}case 8:{gmlsx2=yyfplus(gmlsx2,39);break;}case 9:{gmlsx2=yyfplus(gmlsx2,45);break;}};draw_sprite_ext(_inst,102,_inst.gmlratings1[__yy_gml_array_check_index(0,_inst.gmlratings1)],gmlsx1,yyfplus(__yy_gml_errCheck(gmlgy),35),1,1,0,global.gmlc_offense,1);draw_sprite_ext(_inst,102,_inst.gmlratings1[__yy_gml_array_check_index(1,_inst.gmlratings1)],gmlsx2,yyfplus(__yy_gml_errCheck(gmlgy),35),1,1,0,global.gmlc_defense,
1);gmlsx2=yyfplus(__yy_gml_errCheck(gmlsx1),2);var ___sw1510___=_inst.gmlratings2[__yy_gml_array_check_index(0,_inst.gmlratings2)];var ___swc1511___=-1;if(yyCompareVal(___sw1510___,1,g_GMLMathEpsilon,false)==0){___swc1511___=0;}else if(yyCompareVal(___sw1510___,2,g_GMLMathEpsilon,false)==0){___swc1511___=1;}else if(yyCompareVal(___sw1510___,3,g_GMLMathEpsilon,false)==0){___swc1511___=2;}else if(yyCompareVal(___sw1510___,4,g_GMLMathEpsilon,false)==0){___swc1511___=3;}else if(yyCompareVal(___sw1510___,5,
g_GMLMathEpsilon,false)==0){___swc1511___=4;}else if(yyCompareVal(___sw1510___,6,g_GMLMathEpsilon,false)==0){___swc1511___=5;}else if(yyCompareVal(___sw1510___,7,g_GMLMathEpsilon,false)==0){___swc1511___=6;}else if(yyCompareVal(___sw1510___,8,g_GMLMathEpsilon,false)==0){___swc1511___=7;}else if(yyCompareVal(___sw1510___,9,g_GMLMathEpsilon,false)==0){___swc1511___=8;}else if(yyCompareVal(___sw1510___,10,g_GMLMathEpsilon,false)==0){___swc1511___=9;}switch(___swc1511___){case 0:{gmlsx2=yyfplus(gmlsx2,6);
break;}case 1:{gmlsx2=yyfplus(gmlsx2,9);break;}case 2:{gmlsx2=yyfplus(gmlsx2,15);break;}case 3:{gmlsx2=yyfplus(gmlsx2,18);break;}case 4:{gmlsx2=yyfplus(gmlsx2,24);break;}case 5:{gmlsx2=yyfplus(gmlsx2,27);break;}case 6:{gmlsx2=yyfplus(gmlsx2,30);break;}case 7:{gmlsx2=yyfplus(gmlsx2,36);break;}case 8:{gmlsx2=yyfplus(gmlsx2,39);break;}case 9:{gmlsx2=yyfplus(gmlsx2,45);break;}};draw_sprite_ext(_inst,102,_inst.gmlratings2[__yy_gml_array_check_index(0,_inst.gmlratings2)],gmlsx1,yyfplus(__yy_gml_errCheck(gmlgy),
78),1,1,0,global.gmlc_offense,1);draw_sprite_ext(_inst,102,_inst.gmlratings2[__yy_gml_array_check_index(1,_inst.gmlratings2)],gmlsx2,yyfplus(__yy_gml_errCheck(gmlgy),78),1,1,0,global.gmlc_defense,1);}function gml_Object_obj_scoreboard_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlteamnames=__yy_gml_array_check(_inst.gmlteamnames,171690998);_inst.gmlteamnames[__yy_gml_array_check_index_set(2)]="";_inst.gmlscores1=__yy_gml_array_check(_inst.gmlscores1,1092762117);_inst.gmlscores1[__yy_gml_array_check_index_set(5)]="";
_inst.gmlscores2=__yy_gml_array_check(_inst.gmlscores2,1779395014);_inst.gmlscores2[__yy_gml_array_check_index_set(5)]="";_inst.gmlratings1=__yy_gml_array_check(_inst.gmlratings1,1691664859);_inst.gmlratings1[__yy_gml_array_check_index_set(2)]=0;_inst.gmlratings2=__yy_gml_array_check(_inst.gmlratings2,1341755928);_inst.gmlratings2[__yy_gml_array_check_index_set(2)]=0;_inst.gmlcol1=new Long(4294967295,0,false);_inst.gmlcol2=new Long(4294967295,0,false);}function gml_Object_obj_conference_Create_0(_inst,
_other){if(yyfequal(_inst.gmlconference,(-1))){_inst.gmlconference=yyInst(_inst,_other,97).gmlmyconference;};_inst.gmlwildcards=2;_inst.gmlplayoff12=gml_Script_s_playoffs_12(_inst,_other);if(!yyGetBool(_inst.gmlplayoff12)){_inst.gmlwildcards=3;};_inst.gmltext=gml_Script_s_get_string_conference(_inst,_other,_inst.gmlconference);_inst.gmlseedlist=ds_list_create();_inst.gmllist_w=ds_list_create();_inst.gmllist_l=ds_list_create();_inst.gmllist_t=ds_list_create();var gmli=1;for(;yyfless(gmli,17);(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=gml_Script_s_get_team_by_seed(_inst,_other,_inst.gmlconference,gmli);var gmltxt=string_upper(gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlteam,"uid")));if(yyfequal(ds_map_find_value(gmlteam,"uid"),yyInst(_inst,_other,97).gmlmyteam_id)){gmltxt=yyfplus("yel_",__yy_gml_errCheck(gmltxt));};ds_list_add(_inst.gmlseedlist,gmltxt);ds_list_add(_inst.gmllist_w,string(ds_map_find_value(gmlteam,
"wins")));ds_list_add(_inst.gmllist_l,string(ds_map_find_value(gmlteam,"losses")));ds_list_add(_inst.gmllist_t,string(ds_map_find_value(gmlteam,"ties")));}};gml_Script_slog(_inst,_other,"obj_conference.created");}function gml_Object_obj_conference_Destroy_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_conference.destroy");ds_list_destroy(_inst.gmlseedlist);ds_list_destroy(_inst.gmllist_w);ds_list_destroy(_inst.gmllist_l);ds_list_destroy(_inst.gmllist_t);_inst.gmlseedlist=(-1);_inst.gmllist_w=(-1);
_inst.gmllist_l=(-1);_inst.gmllist_t=(-1);}function gml_Object_obj_conference_Draw_64(_inst,_other){if(yyGetBool(is_undefined(_inst.gmltext))){return;};var gmlw=_inst.sprite_width;var gmlh=_inst.sprite_height;draw_sprite(_inst,142,0,_inst.x,_inst.y);draw_sprite_ext(_inst,142,2,yyfplus(__yy_gml_errCheck(_inst.x),4),_inst.y,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_width),8)),4),1,0,16777215,1);draw_sprite(_inst,142,1,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),
4),_inst.y);draw_sprite_ext(_inst,142,3,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),2),yyfplus(__yy_gml_errCheck(_inst.y),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),8)),4),0,16777215,1);draw_sprite(_inst,142,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),4),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),4));draw_sprite_ext(_inst,142,2,yyfplus(__yy_gml_errCheck(_inst.x),4),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(gmlh)),2),yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_width),8)),4),1,0,16777215,1);draw_sprite(_inst,142,1,_inst.x,yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),4));draw_sprite_ext(_inst,142,3,_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),8)),4),0,16777215,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltitle=string_upper(_inst.gmltext);
var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));if(yyfnotequal(gmltitle,"")){{draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),
__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltitle);};};var gmltxt=string_upper(gml_Script_s_str(_inst,_other,"ui_DivisionLeaders"));var gmlth=gml_Script_string_hd_height(_inst,_other,gmltxt);if(!yyGetBool(_inst.gmlplayoff12)){gmlth=yyfminus(gmlth,1);};
gmltx=yyfplus(__yy_gml_errCheck(_inst.x),12);_inst.gmltx2=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),60);gmlty=yyfplus(gmlty,gmlth);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);var gmli=0;for(;yyfless(gmli,4);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{draw_set_halign(0);gmltxt=ds_list_find_value(_inst.gmlseedlist,gmli);if(yyGetBool(string_count("yel_",gmltxt))){gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,string_replace(gmltxt,"yel_",""),global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,1);}else {gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,gmltxt);};draw_set_halign(1);gmltxt=ds_list_find_value(_inst.gmllist_w,gmli);gml_Script_draw_hd_text(_inst,
_other,_inst.gmltx2,gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_l,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),20),gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_t,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),40),gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);}};if(!yyGetBool(_inst.gmlplayoff12)){gmlty=yyfplus(gmlty,1);};draw_set_halign(0);gmltxt=string_upper(gml_Script_s_str(_inst,_other,"ui_WildCard"));gml_Script_draw_hd_text_color(_inst,
_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);var gmli=4;for(;yyfless(gmli,yyfplus(4,__yy_gml_errCheck(_inst.gmlwildcards)));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_set_halign(0);gmltxt=ds_list_find_value(_inst.gmlseedlist,gmli);if(yyGetBool(string_count("yel_",gmltxt))){gml_Script_draw_hd_text_color(_inst,
_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,string_replace(gmltxt,"yel_",""),global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,1);}else {gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,gmltxt);};draw_set_halign(1);gmltxt=ds_list_find_value(_inst.gmllist_w,gmli);gml_Script_draw_hd_text(_inst,_other,_inst.gmltx2,gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_l,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),
20),gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_t,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),40),gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);}};if(!yyGetBool(_inst.gmlplayoff12)){gmlty=yyfplus(gmlty,1);};draw_set_halign(0);gmltxt=string_upper(gml_Script_s_str(_inst,_other,"ui_InTheHunt"));gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);var gmli=yyfplus(4,__yy_gml_errCheck(_inst.gmlwildcards));for(;yyfless(gmli,ds_list_size(_inst.gmlseedlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_set_halign(0);gmltxt=ds_list_find_value(_inst.gmlseedlist,gmli);if(yyGetBool(string_count("yel_",gmltxt))){gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,string_replace(gmltxt,"yel_",""),
global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,1);}else {gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,gmltxt);};draw_set_halign(1);gmltxt=ds_list_find_value(_inst.gmllist_w,gmli);gml_Script_draw_hd_text(_inst,_other,_inst.gmltx2,gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_l,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),20),gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_t,gmli);
gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),40),gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);if(yyfgreater(gmlty,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),8))))){break;};}};}function gml_Object_obj_conference_Draw_0(_inst,_other){}function gml_Object_obj_conference_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlconference=(-1);}function gml_Object_obj_matchline_Create_0(_inst,
_other){_inst.gmlgap=192;_inst.gmlmax_w=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_s_get_week_superbowl(_inst,_other)),__yy_gml_errCheck(_inst.gmlgap))),__yy_gml_errCheck(_inst.gmlgap));_inst.gmlweek=yyInst(_inst,_other,97).gmlweek;_inst.gmlweek_superbowl=gml_Script_s_get_week_superbowl(_inst,_other);if(yyfgreater(_inst.gmlweek,_inst.gmlmax_w)){_inst.gmlweek=_inst.gmlmax_w;};_inst.x=yyfplus(yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlweek),
__yy_gml_errCheck(_inst.gmlgap)))),__yy_gml_errCheck(_inst.gmlgap));_inst.gmlms_offset=0;_inst.gmlshow_difficulty=false;_inst.gmlclicked=false;}function gml_Object_obj_matchline_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(global.gmltriggerl))&&(yyGetBool(global.gmltriggerr))){{_inst.x=yyfplus(yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlweek),__yy_gml_errCheck(_inst.gmlgap)))),__yy_gml_errCheck(_inst.gmlgap));
_inst.gmlflick_lineX=0;_inst.gmlms_offset=0;};}else {if((yyGetBool(global.gmlgamepad))&&(yyGetBool(global.gmltriggerl))){_inst.gmlflick_lineX=yyfplus(_inst.gmlflick_lineX,1);}else {if((yyGetBool(global.gmlgamepad))&&(yyGetBool(global.gmltriggerr))){_inst.gmlflick_lineX=yyfminus(_inst.gmlflick_lineX,1);}else {_inst.gmlflick_lineX=yyftime(_inst.gmlflick_lineX,0.999);};};};if(yyGetBool(abs(_inst.gmlflick_lineX))){{_inst.x=yyfplus(_inst.x,_inst.gmlflick_lineX);};};if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),
yyfminus(__yy_gml_errCheck(_inst.y),32))))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),32))))){{if(yyfequal(_inst.gmlclicked,0)){_inst.gmlclicked=g_pBuiltIn.get_current_time();};if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(g_pBuiltIn.get_mouse_x()));};_inst.x=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_x()));_inst.gmlflick_lineX=0;};}else {{if((yyGetBool(yyfequal(_inst.gmlflick_lineX,
0)))&&(yyGetBool(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlclicked),100))))){_inst.gmlshow_difficulty=!yyGetBool(_inst.gmlshow_difficulty);};_inst.gmlclicked=0;_inst.gmlms_offset=0;};};_inst.gmlflick_lineX=yyftime(_inst.gmlflick_lineX,0.9);var gmlmidscreen=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2);_inst.x=clamp(_inst.x,yyfminus(__yy_gml_errCheck(gmlmidscreen),__yy_gml_errCheck(_inst.gmlmax_w)),gmlmidscreen);}function gml_Object_obj_matchline_Draw_0(_inst,
_other){}function gml_Object_obj_matchline_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_set_color(16777215);var gmlgw=display_get_gui_width();var gmlsx=_inst.x;var gmlsy=yyfplus(__yy_gml_errCheck(_inst.y),8);var gmlcol=global.gmlc_primary;if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gmlcol=global.gmlc_buttons;};draw_rectangle_color(0,yyfminus(__yy_gml_errCheck(_inst.y),36),gmlgw,yyfplus(__yy_gml_errCheck(_inst.y),36),gmlcol,gmlcol,gmlcol,
gmlcol,0);var gmli=1;for(;yyflessequal(gmli,_inst.gmlweek_superbowl);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlfixture=gml_Script_s_get_human_fixture_by_week(_inst,_other,gmli);var gmlnext_fixture=gml_Script_s_get_human_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(gmli),1));var gmlteamid_away=(-1);var gmlteamid_home=(-1);var gmlaway_score=(-1);var gmlhome_score=(-1);var gmlopponent=(-4);var gmlopp_name="";var gmlrescol=16777215;
var gmlnextrescol=16777215;var gmlscoreline="";if(yyGetBool(gmlfixture)){{gmlteamid_away=ds_map_find_value(gmlfixture,"away_team");gmlteamid_home=ds_map_find_value(gmlfixture,"home_team");gmlaway_score=ds_map_find_value(gmlfixture,"away_score");gmlhome_score=ds_map_find_value(gmlfixture,"home_score");gmlopponent=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteamid_away);if(yyfequal(yyInst(_inst,_other,97).gmlmyteam_id,gmlteamid_away)){gmlopponent=ds_list_find_value(yyInst(_inst,_other,
97).gmlteamlist,gmlteamid_home);};if((yyGetBool(gmlopponent))&&(yyGetBool(!yyGetBool(is_undefined(ds_map_find_value(gmlopponent,"name")))))){{if((yyGetBool(yyfequal(gmlteamid_away,yyInst(_inst,_other,97).gmlmyteam_id)))&&(yyGetBool(yyfnotequal(gmli,_inst.gmlweek_superbowl)))){gmlopp_name=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_at"))," "),__yy_gml_errCheck(string_upper(ds_map_find_value(gmlopponent,"name"))));}else {gmlopp_name=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"tla_versus"))," "),__yy_gml_errCheck(string_upper(ds_map_find_value(gmlopponent,"name"))));};if(yyfnotequal(ds_map_find_value(gmlfixture,"human_win"),"unplayed")){{if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){gmlrescol=65280;}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){gmlrescol=255;}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"tie")){gmlrescol=12632256;};};};};};if(yyfnotequal(ds_map_find_value(gmlfixture,"human_win"),"unplayed")){
{gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(string(gmlaway_score)),"-"),__yy_gml_errCheck(string(gmlhome_score)));if(yyfless(gmlaway_score,gmlhome_score)){gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(string(gmlhome_score)),"-"),__yy_gml_errCheck(string(gmlaway_score)));};if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Win"))," "),__yy_gml_errCheck(gmlscoreline));}else {if(yyfequal(ds_map_find_value(gmlfixture,
"human_win"),"loss")){gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Loss"))," "),__yy_gml_errCheck(gmlscoreline));}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"tie")){gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Tie"))," "),__yy_gml_errCheck(gmlscoreline));};};};};};if(yyGetBool(gmlnext_fixture)){{if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"win")){gmlnextrescol=65280;}else {if(yyfequal(ds_map_find_value(gmlnext_fixture,
"human_win"),"loss")){gmlnextrescol=255;}else {if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"tie")){gmlnextrescol=12632256;};};};};};};};};}else {if(yyfless(gmli,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){{gmlopp_name=gml_Script_s_str(_inst,_other,"ui_ByeWeek");gmlrescol=16777215;if(yyGetBool(gmlnext_fixture)){{if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"win")){gmlnextrescol=65280;}else {if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"loss")){gmlnextrescol=255;
}else {if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"tie")){gmlnextrescol=12632256;};};};};};};}else {{gmlrescol=12632256;gmlfixture=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmli);if(yyGetBool(gmlfixture)){{gmlteamid_away=ds_map_find_value(gmlfixture,"away_team");gmlteamid_home=ds_map_find_value(gmlfixture,"home_team");gmlaway_score=ds_map_find_value(gmlfixture,"away_score");gmlhome_score=ds_map_find_value(gmlfixture,"home_score");if((yyGetBool(yyfgreater(gmlteamid_away,
(-1))))&&(yyGetBool(yyfgreater(gmlteamid_home,(-1))))){{var gmlteam_away=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteamid_away);var gmlteam_home=ds_list_find_value(yyInst(_inst,_other,97).gmlteamlist,gmlteamid_home);gmlopp_name=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_away,"tla"))," - "),__yy_gml_errCheck(ds_map_find_value(gmlteam_home,"tla")));if(yyfgreater(gmlaway_score,(-1))){{gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(string(gmlaway_score)),"-"),__yy_gml_errCheck(string(gmlhome_score)));
};};};};};};};};};if(yyfless(gmli,yyInst(_inst,_other,97).gmllast_week_regular)){{draw_line_width_colour(gmlsx,gmlsy,yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(_inst.gmlgap)),gmlsy,4,gmlrescol,gmlnextrescol);draw_line_width_colour(gmlsx,yyfplus(__yy_gml_errCheck(gmlsy),1),yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(_inst.gmlgap)),yyfplus(__yy_gml_errCheck(gmlsy),1),2,4210752,4210752);};}else {if(yyfless(gmli,_inst.gmlweek_superbowl)){{draw_line_width_colour(gmlsx,gmlsy,yyfplus(__yy_gml_errCheck(gmlsx),
__yy_gml_errCheck(_inst.gmlgap)),gmlsy,4,12632256,12632256);draw_line_width_colour(gmlsx,yyfplus(__yy_gml_errCheck(gmlsy),1),yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(_inst.gmlgap)),yyfplus(__yy_gml_errCheck(gmlsy),1),2,4210752,4210752);};};};var gmlwk=string_upper(gml_Script_s_get_string_week(_inst,_other,gmli));gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlsx),1),yyfminus(__yy_gml_errCheck(_inst.y),27),gmlwk,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmlsx,
yyfminus(__yy_gml_errCheck(_inst.y),28),gmlwk);var gmlcol=0;gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlsx),1),yyfminus(__yy_gml_errCheck(_inst.y),9),gmlopp_name,gmlcol,gmlcol,gmlcol,gmlcol,1);gml_Script_draw_hd_text(_inst,_other,gmlsx,yyfminus(__yy_gml_errCheck(_inst.y),10),gmlopp_name);gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlsx),1),yyfplus(__yy_gml_errCheck(_inst.y),25),gmlscoreline,gmlcol,gmlcol,gmlcol,gmlcol,1);gml_Script_draw_hd_text(_inst,
_other,gmlsx,yyfplus(__yy_gml_errCheck(_inst.y),24),gmlscoreline);draw_sprite_ext(_inst,88,0,gmlsx,gmlsy,1,1,0,gmlrescol,1);if(yyGetBool(_inst.gmlshow_difficulty)){{if((yyGetBool(gmlfixture))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfixture,"human_win"),"unplayed")))&&(yyGetBool(ds_map_exists(gmlfixture,"difficulty")))){{draw_set_alpha(0.75);gml_Script_draw_hd_text_transformed(_inst,_other,gmlsx,yyfplus(__yy_gml_errCheck(gmlsy),25),ds_map_find_value(gmlfixture,"difficulty"),0.5,0.5,0);draw_set_alpha(1);
};};};};gmlsx=yyfplus(gmlsx,_inst.gmlgap);}};}function gml_Object_obj_matchline_Gesture_69(_inst,_other){if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),yyfminus(__yy_gml_errCheck(_inst.y),32))))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),32))))){_inst.gmlflick_lineX=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffX");};}function gml_Object_obj_matchline_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineX=0;}function gml_Object_obj_headshot_Create_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlskin=1;_inst.gmlface_x=(-1);_inst.gmlface_y=(-1);_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);
_inst.gmlpants_b[__yy_gml_array_check_index_set(2)]=0;gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));}function gml_Object_obj_headshot_Step_0(_inst,_other){if((yyGetBool(!yyGetBool(_inst.gmlactive)))||(yyGetBool(!yyGetBool(_inst.visible)))){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v1863=GetWithArray(78);for(var __yy__v1864 in __yy__v1863){if(!__yy__v1863.hasOwnProperty(__yy__v1864))continue;var __yy__v1865=__yy__v1863[__yy__v1864];
if(yyfless(__yy__v1865.depth,_inst.depth)){return;};}};{var __yy__v1866=GetWithArray(71);for(var __yy__v1867 in __yy__v1866){if(!__yy__v1866.hasOwnProperty(__yy__v1867))continue;var __yy__v1868=__yy__v1866[__yy__v1867];if((yyGetBool(__yy__v1868.gmlediting))&&(yyGetBool(!yyGetBool(__yy__v1868.gmlcustom_keyboard)))){return;};}};_inst.gmlhover=false;if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,
global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){{_inst.gmlclicked=true;global.gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};gml_Script_s_save_last_selected(_inst,_other);script_execute(_inst,_other,_inst.gmlonClickAction);};};};}else {{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){
{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_soundfx"))){audio_play_sound(5,1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};}function gml_Object_obj_headshot_Draw_0(_inst,_other){}function gml_Object_obj_headshot_Draw_64(_inst,
_other){var gmlbx=yyfplus(__yy_gml_errCheck(_inst.x),2);var gmlby=yyfminus(__yy_gml_errCheck(_inst.y),2);if((yyGetBool(_inst.gmlclicked))||(yyGetBool(!yyGetBool(_inst.gmlactive)))){{gmlbx=_inst.x;gmlby=_inst.y;};};draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,4210752,1);var gmlpos_col=global.gmlc_headcoach;draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlbx),2),yyfplus(__yy_gml_errCheck(gmlby),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),
3),yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(_inst.sprite_height)),3),gmlpos_col,gmlpos_col,gmlpos_col,gmlpos_col,0);if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby,1,1,0,255,1);}else {draw_sprite(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby);};shader_set(0);shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);
shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,
_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)]);var ___sw1524___=_inst.gmlcoach_heads;var ___swc1525___=-1;if(yyCompareVal(___sw1524___,0,g_GMLMathEpsilon,false)==0){___swc1525___=0;}else if(yyCompareVal(___sw1524___,1,g_GMLMathEpsilon,false)==0){___swc1525___=1;}switch(___swc1525___){case 0:{var ___sw1526___=_inst.gmlskin;var ___swc1527___=-1;if(yyCompareVal(___sw1526___,
2,g_GMLMathEpsilon,false)==0){___swc1527___=0;}else if(yyCompareVal(___sw1526___,1,g_GMLMathEpsilon,false)==0){___swc1527___=1;}else if(yyCompareVal(___sw1526___,0,g_GMLMathEpsilon,false)==0){___swc1527___=2;}switch(___swc1527___){case 0:{var ___sw1528___=_inst.gmlface_y;var ___swc1529___=-1;if(yyCompareVal(___sw1528___,0,g_GMLMathEpsilon,false)==0){___swc1529___=0;}else if(yyCompareVal(___sw1528___,1,g_GMLMathEpsilon,false)==0){___swc1529___=1;}else if(yyCompareVal(___sw1528___,2,g_GMLMathEpsilon,false)==0){
___swc1529___=2;}switch(___swc1529___){case 0:{draw_sprite_ext(_inst,179,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,180,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,181,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}case 1:{var ___sw1530___=_inst.gmlface_y;
var ___swc1531___=-1;if(yyCompareVal(___sw1530___,0,g_GMLMathEpsilon,false)==0){___swc1531___=0;}switch(___swc1531___){case 0:{draw_sprite_ext(_inst,182,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}case 2:{var ___sw1532___=_inst.gmlface_y;var ___swc1533___=-1;if(yyCompareVal(___sw1532___,0,g_GMLMathEpsilon,false)==0){___swc1533___=0;}else if(yyCompareVal(___sw1532___,1,g_GMLMathEpsilon,false)==0){___swc1533___=1;}else if(yyCompareVal(___sw1532___,
2,g_GMLMathEpsilon,false)==0){___swc1533___=2;}else if(yyCompareVal(___sw1532___,3,g_GMLMathEpsilon,false)==0){___swc1533___=3;}else if(yyCompareVal(___sw1532___,4,g_GMLMathEpsilon,false)==0){___swc1533___=4;}else if(yyCompareVal(___sw1532___,5,g_GMLMathEpsilon,false)==0){___swc1533___=5;}else if(yyCompareVal(___sw1532___,6,g_GMLMathEpsilon,false)==0){___swc1533___=6;}else if(yyCompareVal(___sw1532___,7,g_GMLMathEpsilon,false)==0){___swc1533___=7;}else if(yyCompareVal(___sw1532___,8,g_GMLMathEpsilon,false)==0){
___swc1533___=8;}switch(___swc1533___){case 0:{draw_sprite_ext(_inst,183,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,184,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,185,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,
186,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 4:{draw_sprite_ext(_inst,187,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 5:{draw_sprite_ext(_inst,188,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 6:{draw_sprite_ext(_inst,188,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),
3),1,1,0,16777215,1);break;}case 7:{draw_sprite_ext(_inst,189,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 8:{draw_sprite_ext(_inst,190,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}};break;}case 1:{var ___sw1534___=_inst.gmlface_y;var ___swc1535___=-1;if(yyCompareVal(___sw1534___,0,g_GMLMathEpsilon,false)==0){___swc1535___=0;}else if(yyCompareVal(___sw1534___,
1,g_GMLMathEpsilon,false)==0){___swc1535___=1;}else if(yyCompareVal(___sw1534___,2,g_GMLMathEpsilon,false)==0){___swc1535___=2;}else if(yyCompareVal(___sw1534___,3,g_GMLMathEpsilon,false)==0){___swc1535___=3;}switch(___swc1535___){case 0:{draw_sprite_ext(_inst,191,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,192,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,
1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,193,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,194,_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}};shader_reset();}function gml_Object_obj_headshot_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_btn_click_PlayerProfile;_inst.gmlhover=false;
_inst.gmlclicked=false;_inst.gmlflash_time=0;_inst.gmlactive=true;_inst.gmltutorial_flash=false;_inst.gmlflash_attitude=false;_inst.gmlold_condition=(-99);_inst.gmlcoach_heads=false;}function gml_Object_obj_attribute_Draw_0(_inst,_other){}function gml_Object_obj_attribute_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=_inst.x;var gmlty=yyfminus(__yy_gml_errCheck(_inst.y),8);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),
5);var gmlbh=yyfminus(__yy_gml_errCheck(_inst.sprite_height),3);var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),100)),__yy_gml_errCheck(_inst.gmlpercent));gmlprc=clamp(gmlprc,1,gmlbw);var gmlprc_buff=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),100)),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlpercent),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlbuff),10)))));gmlprc_buff=clamp(gmlprc_buff,1,gmlbw);var gmlpot=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),
100)),__yy_gml_errCheck(_inst.gmlpotential));gmlpot=clamp(gmlpot,1,gmlbw);draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,global.gmlc_backfill,1);var gmlcol=global.gmlc_primary;draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),2),__yy_gml_errCheck(gmlpot)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlbh)),gmlcol,gmlcol,gmlcol,gmlcol,0);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),
3),yyfplus(__yy_gml_errCheck(_inst.y),3),yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),3),__yy_gml_errCheck(gmlpot)),2),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlbh)),1),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,0);if(yyGetBool(_inst.gmlflash)){{var gmla=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),160))),2)));draw_set_alpha(gmla);};};if((yyGetBool(_inst.gmlbuff))&&(yyGetBool(yyfless(_inst.gmlpercent,
100)))){{draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),2),__yy_gml_errCheck(gmlprc_buff)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlbh)),_inst.gmlcol_buff,_inst.gmlcol_buff,_inst.gmlcol_buff,_inst.gmlcol_buff,0);draw_set_halign(1);draw_set_valign(1);draw_text_color(yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlprc_buff)),7),yyfplus(__yy_gml_errCheck(_inst.y),9),"+1",0,0,
0,0,0.4);};};draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlbh)),gmlcol,gmlcol,gmlcol,gmlcol,0);draw_set_alpha(1);}function gml_Object_obj_attribute_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlpercent=0;_inst.gmlpotential=0;_inst.gmlflash=false;_inst.gmlbuff=0;_inst.gmlcol_buff=new Long(4294967295,
0,false);}function gml_Object_obj_xp_player_Draw_0(_inst,_other){}function gml_Object_obj_xp_player_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,
yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));
draw_set_halign(2);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8);gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),16);var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlbw),4)),100)),__yy_gml_errCheck(_inst.gmlpercent));gmlprc=clamp(gmlprc,1,gmlbw);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),
8),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),8),__yy_gml_errCheck(gmlbw)),yyfplus(__yy_gml_errCheck(_inst.y),24),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,0);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),10),yyfplus(__yy_gml_errCheck(_inst.y),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),22),global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,
global.gmlc_primary,0);}function gml_Object_obj_xp_player_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlpercent=0;}function gml_Object_obj_salarycap_Create_0(_inst,_other){_inst.gmlcreation_time=g_pBuiltIn.get_current_time();if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Recruitment_Credits");};}else {{_inst.gmlcurrent_salary=gml_Script_s_get_salary_total(_inst,_other);_inst.gmlmax_salary=yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlboost_salary_cap));_inst.gmlpercent=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.gmlcurrent_salary),__yy_gml_errCheck(_inst.gmlmax_salary))),100);_inst.gmltitle=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_SalaryCap"))," "),__yy_gml_errCheck(string(_inst.gmlcurrent_salary))),"m / "),__yy_gml_errCheck(string(_inst.gmlmax_salary))),"m");if(yyfgreater(_inst.gmlpercent,
100)){_inst.gmlpercent=100;}else {_inst.gmlcolour=global.gmlc_primary;};};};}function gml_Object_obj_salarycap_Draw_0(_inst,_other){}function gml_Object_obj_salarycap_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,
_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,
gmltx,gmlty,string_upper(_inst.gmltitle));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);gmlty=yyfplus(gmlty,16);gml_Script_draw_custom_recruitment_credits_display(_inst,_other,gmltx,gmlty);};}else {{var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),16);var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlbw),4)),100)),__yy_gml_errCheck(_inst.gmlpercent));gmlprc=clamp(gmlprc,1,gmlbw);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),
8),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),8),__yy_gml_errCheck(gmlbw)),yyfplus(__yy_gml_errCheck(_inst.y),24),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,0);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),10),yyfplus(__yy_gml_errCheck(_inst.y),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),22),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,
0);};};}function gml_Object_obj_salarycap_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcreation_time=0;_inst.gmltitle="Title";_inst.gmlcurrent_salary=0;_inst.gmlmax_salary=0;_inst.gmlpercent=0;_inst.gmlcolour=255;}function gml_Object_obj_notification_Create_0(_inst,_other){_inst.x=(-1000);_inst.y=1000;}function gml_Object_obj_notification_Alarm_0(_inst,_other){(g_yyPrePostObject__=_inst.gmlstep,_inst.gmlstep=(g_yyPrePostObject__ instanceof Long?_inst.gmlstep.add(1):++_inst.gmlstep),
g_yyPrePostObject__);_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=_inst.gmldelay;}function gml_Object_obj_notification_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};var ___sw1538___=_inst.gmlstep;var ___swc1539___=-1;if(yyCompareVal(___sw1538___,0,g_GMLMathEpsilon,false)==0){___swc1539___=0;}else if(yyCompareVal(___sw1538___,1,g_GMLMathEpsilon,false)==0){___swc1539___=1;}else if(yyCompareVal(___sw1538___,2,g_GMLMathEpsilon,false)==0){
___swc1539___=2;}switch(___swc1539___){case 0:{if(yyfequal(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.y)),0)){{draw_set_font(global.gmlfnt_small_flex);var gmltxtw=gml_Script_string_hd_width_ext(_inst,_other,_inst.gmltext,(-1),_inst.gmlmsg_width);var gmltitlew=gml_Script_string_hd_width_ext(_inst,_other,_inst.gmltitle,(-1),_inst.gmlmsg_width);if(yyfgreater(gmltitlew,gmltxtw)){gmltxtw=gmltitlew;};_inst.x=yyfplus(22,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltxtw),0.5)));_inst.y=display_get_gui_height();
};};_inst.y=yyfminus(_inst.y,2);if(yyfless(_inst.y,yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_height()),2),__yy_gml_errCheck(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,(-1),_inst.gmlmsg_width))))){{_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=_inst.gmldelay;(g_yyPrePostObject__=_inst.gmlstep,_inst.gmlstep=(g_yyPrePostObject__ instanceof Long?_inst.gmlstep.add(1):++_inst.gmlstep),g_yyPrePostObject__);};};break;}case 1:{
break;}case 2:{_inst.y=yyfplus(_inst.y,4);if(yyfgreater(_inst.y,yyfplus(__yy_gml_errCheck(display_get_gui_height()),32))){{{var __yy__v1869=GetWithArray(97);for(var __yy__v1870 in __yy__v1869){if(!__yy__v1869.hasOwnProperty(__yy__v1870))continue;var __yy__v1871=__yy__v1869[__yy__v1870];{ds_list_delete(__yy__v1871.gmllist_notifications,0);var gmlsz=ds_list_size(__yy__v1871.gmllist_notifications);if(yyfgreater(gmlsz,0)){{gml_Script_slog(__yy__v1871,_inst,yyfplus("Notifications remaining = ",__yy_gml_errCheck(string(gmlsz))));
var gmlntf=ds_list_find_value(__yy__v1871.gmllist_notifications,0);yyInst(_inst,_other,gmlntf).visible=true;};};}}};instance_destroy(_inst);};};break;}};}function gml_Object_obj_notification_Draw_64(_inst,_other){event_inherited(_inst,_other);}function gml_Object_obj_notification_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmldelay=150;_inst.gmlstep=0;}function gml_Object_obj_hof_achievements_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Achievements"))," "),__yy_gml_errCheck(string(gml_Script_s_get_achievement_percentage(_inst,_other)))),"%");if(yyGetBool(_inst.gmluse_player_awards)){{_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Awards");};};_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,_inst.gmltitle);_inst.gmllistsize=ds_list_size(yyInst(_inst,_other,97).gmlachievements);if(yyGetBool(_inst.gmluse_player_awards)){{_inst.gmllistsize=ds_list_size(yyInst(_inst,_other,97).gmlplayer_awards);};};_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),
__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlactive=true;}function gml_Object_obj_hof_achievements_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(global.gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(global.gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,
yyftime(__yy_gml_errCheck(global.gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset,_inst.gmlflick_lineY);};};if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(_inst.sprite_height)))))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize),
1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_achievements_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=gmlty;var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);gmlty=yyfplus(gmlty,
_inst.gmlyoffset);var gmlach_list=yyInst(_inst,_other,97).gmlachievements;if(yyGetBool(_inst.gmluse_player_awards)){{gmlach_list=yyInst(_inst,_other,97).gmlplayer_awards;};};{var __yy__v1872=GetWithArray(97);for(var __yy__v1873 in __yy__v1872){if(!__yy__v1872.hasOwnProperty(__yy__v1873))continue;var __yy__v1874=__yy__v1872[__yy__v1873];{var gmli=0;for(;yyfless(gmli,ds_list_size(gmlach_list));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfgreaterequal(gmlty,
gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty,gmlbounds_y2)))){{var gmlach=ds_list_find_value(gmlach_list,gmli);if(yyGetBool(ds_exists(gmlach,1))){{if(yyGetBool(is_undefined(ds_map_find_value(gmlach,"achieved")))){ds_map_set(gmlach,"achieved",0);};if(yyGetBool(is_undefined(ds_map_find_value(gmlach,"description")))){ds_map_set(gmlach,"description",yyfplus("Achievement ",__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmli),1)))));};var gmltxt=ds_map_find_value(gmlach,"description");var gmlcol=16777215;
var gmlalf=0.35;if(yyfgreater(real(ds_map_find_value(gmlach,"achieved")),0)){gmlalf=1;};gml_Script_draw_hd_text_color(__yy__v1874,_inst,gmltx,gmlty,gmltxt,gmlcol,gmlcol,gmlcol,gmlcol,gmlalf);};}else {{continue;};};};};gmlty=yyfplus(gmlty,_inst.gmltxt_h);}};}}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),
2),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),12),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),
10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_achievements_Gesture_69(_inst,_other){if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_achievements_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlm_soffset=0;_inst.gmluse_player_awards=false;}function gml_Object_obj_hof_retrobowl_wins_Create_0(_inst,_other){var gmlbelichick=0;{var __yy__v1875=GetWithArray(97);for(var __yy__v1876 in __yy__v1875){if(!__yy__v1875.hasOwnProperty(__yy__v1876))continue;
var __yy__v1877=__yy__v1875[__yy__v1876];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1877.gmlrbhistorylist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v1877.gmlrbhistorylist,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlmap,"winner"),"New England")))&&(yyGetBool(yyflessequal(real(ds_map_find_value(gmlmap,"year")),2026)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"human"),0)))){(g_yyPrePostObject__=gmlbelichick,
gmlbelichick=(g_yyPrePostObject__ instanceof Long?gmlbelichick.add(1):++gmlbelichick),g_yyPrePostObject__);};}};}}};_inst.gmlretrobowlhof=gml_Script_s_load_retrobowl_hof(_inst,_other);var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlretrobowlhof));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(_inst.gmlretrobowlhof,gmli);if(yyfequal(ds_map_find_value(gmlmap,"name"),"B.Belichick")){ds_map_set(gmlmap,"count",
yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"count"))),__yy_gml_errCheck(gmlbelichick)));};}};var gmlcount=gml_Script_s_count_achievement(_inst,_other,"ACH_WIN_RETROBOWL1");gml_Script_slog(_inst,_other,yyfplus("ACH_RETROBOWL1 = ",__yy_gml_errCheck(string(gmlcount))));var gmlmap=ds_map_create();ds_map_set(gmlmap,"count",gmlcount);ds_map_set(gmlmap,"name",yyfplus(yyfplus(yyfplus("you_",__yy_gml_errCheck(string_copy(yyInst(_inst,_other,97).gmlfname,1,1))),"."),__yy_gml_errCheck(yyInst(_inst,
_other,97).gmllname)));ds_list_add(_inst.gmlretrobowlhof,gmlmap);_inst.gmlretrobowlhof=gml_Script_s_sort_retrobowl_list(_inst,_other,_inst.gmlretrobowlhof);}function gml_Object_obj_hof_retrobowl_wins_Destroy_0(_inst,_other){var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlretrobowlhof));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(_inst.gmlretrobowlhof,gmli));ds_list_set(_inst.gmlretrobowlhof,gmli,(-1));
}};ds_list_destroy(_inst.gmlretrobowlhof);_inst.gmlretrobowlhof=(-1);}function gml_Object_obj_hof_retrobowl_wins_Draw_64(_inst,_other){event_inherited(_inst,_other);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlth=gml_Script_string_hd_height(_inst,_other,"I");var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlretrobowlhof));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(_inst.gmlretrobowlhof,
gmli);var gmlcount=string(real(ds_map_find_value(gmlmap,"count")));var gmltxt=ds_map_find_value(gmlmap,"name");var gmlcol=16777215;if(yyGetBool(string_count("you_",gmltxt))){{gmltxt=string_replace(gmltxt,"you_","");gmlcol=global.gmlc_primary;};};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gmltxt,gmlcol,gmlcol,gmlcol,gmlcol,1);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8);draw_set_halign(2);
gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gmlcount,gmlcol,gmlcol,gmlcol,gmlcol,1);gmlty=yyfplus(gmlty,gmlth);}};}function gml_Object_obj_hof_retrobowl_history_Create_0(_inst,_other){_inst.gmlretrobowlhistory=gml_Script_s_load_retrobowl_history(_inst,_other);{var __yy__v1878=GetWithArray(97);for(var __yy__v1879 in __yy__v1878){if(!__yy__v1878.hasOwnProperty(__yy__v1879))continue;var __yy__v1880=__yy__v1878[__yy__v1879];{__yy__v1880.gmlrbhistorylist=gml_Script_s_sort_retrobowl_history_list(__yy__v1880,
_inst,__yy__v1880.gmlrbhistorylist);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1880.gmlrbhistorylist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v1880.gmlrbhistorylist,gmli);ds_list_add(_inst.gmlretrobowlhistory,gmlmap);}};}}};draw_set_font(global.gmlfnt_small_flex);_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_RetroBowlWinners");_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,_inst.gmltitle);
_inst.gmllistsize=ds_list_size(_inst.gmlretrobowlhistory);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlactive=true;}function gml_Object_obj_hof_retrobowl_history_Destroy_0(_inst,_other){var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlretrobowlhof));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(_inst.gmlretrobowlhof,gmli);if(yyflessequal(ds_map_find_value(gmlmap,"year"),yyInst(_inst,_other,97).gmlstart_year)){{ds_map_destroy(gmlmap);gmlmap=(-1);};};}};ds_list_clear(_inst.gmlretrobowlhof);ds_list_destroy(_inst.gmlretrobowlhof);_inst.gmlretrobowlhof=(-1);}function gml_Object_obj_hof_retrobowl_history_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(_inst.gmlactive))){
{if(yyGetBool(global.gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(global.gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,yyftime(__yy_gml_errCheck(global.gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset,_inst.gmlflick_lineY);};};if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),
yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));
_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize),1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_retrobowl_history_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);
draw_set_halign(0);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=gmlty;var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);gmlty=yyfplus(gmlty,_inst.gmlyoffset);var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(_inst.gmlretrobowlhistory)),1);for(;yyfgreater(gmli,(-1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfgreaterequal(gmlty,
gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty,gmlbounds_y2)))){{var gmlmap=ds_list_find_value(_inst.gmlretrobowlhistory,gmli);var gmlyear=real(ds_map_find_value(gmlmap,"year"));var gmlbowlnum=yyfminus(__yy_gml_errCheck(gmlyear),1966);var gmlwinner=ds_map_find_value(gmlmap,"winner");var gmlscr=ds_map_find_value(gmlmap,"score");var gmlloser=yyfplus(yyfplus(__yy_gml_errCheck(gmlscr)," "),__yy_gml_errCheck(ds_map_find_value(gmlmap,"loser")));var gmlhuman=real(ds_map_find_value(gmlmap,"human"));var gmlcol=16777215;
var ___sw1542___=gmlhuman;var ___swc1543___=-1;if(yyCompareVal(___sw1542___,1,g_GMLMathEpsilon,false)==0){___swc1543___=0;}else if(yyCompareVal(___sw1542___,(-1),g_GMLMathEpsilon,false)==0){___swc1543___=1;}switch(___swc1543___){case 0:{gmlcol=global.gmlc_primary;break;}case 1:{gmlcol=12632256;break;}};var gmla=1;if(yyflessequal(gmlyear,2022)){gmla=0.5;};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gml_Script_s_roman_numerals(_inst,
_other,gmlbowlnum),gmlcol,gmlcol,gmlcol,gmlcol,gmla);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),52),gmlty,gmlwinner,gmlcol,gmlcol,gmlcol,gmlcol,gmla);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),18);draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gmlloser,gmlcol,gmlcol,gmlcol,gmlcol,gmla);};};gmlty=yyfplus(gmlty,_other.gmltxt_h);}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),
__yy_gml_errCheck(_inst.sprite_height)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),
12),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_retrobowl_history_Gesture_69(_inst,_other){if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),
yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_retrobowl_history_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlms_offset=0;
}function gml_Object_obj_hof_history_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,"I");_inst.gmllistsize=ds_list_size(yyInst(_inst,_other,97).gmlhistory);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfgreater(yyftime(__yy_gml_errCheck(_inst.gmllistsize),
__yy_gml_errCheck(_inst.gmltxt_h)),yyfminus(__yy_gml_errCheck(_inst.sprite_height),16))))){_inst.gmlactive=true;};_inst.gmlactive=true;}function gml_Object_obj_hof_history_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(global.gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(global.gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {
_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,yyftime(__yy_gml_errCheck(global.gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset,_inst.gmlflick_lineY);};};if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),
yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize),
1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_history_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),6);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.gmltxt_h)),4);var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),
__yy_gml_errCheck(_inst.sprite_height)),16);{var __yy__v1881=GetWithArray(97);for(var __yy__v1882 in __yy__v1881){if(!__yy__v1881.hasOwnProperty(__yy__v1882))continue;var __yy__v1883=__yy__v1881[__yy__v1882];{draw_set_halign(0);gml_Script_draw_hd_text_color(__yy__v1883,_inst,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(__yy__v1883,_inst,"ui_Year"),0,0,0,0,1);gml_Script_draw_hd_text(__yy__v1883,_inst,gmltx,gmlty,gml_Script_s_str(__yy__v1883,_inst,"ui_Year"));
gmltx=yyfplus(gmltx,72);draw_set_halign(1);gml_Script_draw_hd_text_color(__yy__v1883,_inst,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(__yy__v1883,_inst,"ui_Record"),0,0,0,0,1);gml_Script_draw_hd_text(__yy__v1883,_inst,gmltx,gmlty,gml_Script_s_str(__yy__v1883,_inst,"ui_Record"));draw_set_halign(2);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),18);gml_Script_draw_hd_text_color(__yy__v1883,_inst,yyfminus(__yy_gml_errCheck(gmltx),
1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(__yy__v1883,_inst,"ui_Finished"),0,0,0,0,1);gml_Script_draw_hd_text(__yy__v1883,_inst,gmltx,gmlty,gml_Script_s_str(__yy__v1883,_inst,"ui_Finished"));gmlty=yyfplus(gmlty,_inst.gmlyoffset);gmlty=yyfplus(gmlty,_inst.gmltxt_h);var gml_size=ds_list_size(__yy__v1883.gmlhistory);var gmli=yyfminus(__yy_gml_errCheck(gml_size),1);for(;yyfgreater(gmli,(-1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){
{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),10);if((yyGetBool(yyfgreaterequal(gmlty,gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty,gmlbounds_y2)))){{var gmlmap=ds_list_find_value(__yy__v1883.gmlhistory,gmli);draw_set_halign(1);gml_Script_draw_hd_text(__yy__v1883,_inst,gmltx,gmlty,ds_map_find_value(gmlmap,"year"));gmltx=yyfplus(gmltx,24);gml_Script_draw_hd_text(__yy__v1883,_inst,gmltx,gmlty,ds_map_find_value(gmlmap,"tla"));gmltx=yyfplus(gmltx,44);gml_Script_draw_hd_text(__yy__v1883,_inst,gmltx,gmlty,
yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"wins"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"losses")))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"ties")))));gmltx=yyfplus(gmltx,44);draw_set_halign(2);gml_Script_draw_hd_text(__yy__v1883,_inst,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),18),gmlty,ds_map_find_value(gmlmap,"finish"));};};gmlty=yyfplus(gmlty,_inst.gmltxt_h);}};}}};draw_rectangle_color(_inst.x,
yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),
10),yyfplus(__yy_gml_errCheck(_inst.y),24),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_history_Gesture_69(_inst,_other){if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),
yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_history_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlmsoffset=0;
}function gml_Object_obj_hof_records_coach_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,"I");_inst.gmlreclist_a=ds_list_create();_inst.gmlreclist_b=ds_list_create();ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_FullSeasons"));ds_list_add(_inst.gmlreclist_b,string(max(0,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlyear),2))));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordReg"));
ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_WinPctReg"));var gmlwins_reg=0;var gmllosses_reg=0;var gmlties_reg=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,97).gmlhistory,gmli);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"wins")))&&(yyGetBool(ds_map_exists(gmlmap,
"losses")))&&(yyGetBool(ds_map_exists(gmlmap,"ties")))){{gmlwins_reg=yyfplus(gmlwins_reg,real(ds_map_find_value(gmlmap,"wins")));gmllosses_reg=yyfplus(gmllosses_reg,real(ds_map_find_value(gmlmap,"losses")));gmlties_reg=yyfplus(gmlties_reg,real(ds_map_find_value(gmlmap,"ties")));if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"year"),1)))&&(yyGetBool(yyfgreater(yyfplus(yyfplus(__yy_gml_errCheck(gmlwins_reg),__yy_gml_errCheck(gmllosses_reg)),__yy_gml_errCheck(gmlties_reg)),
1)))){{gmlwins_reg=0;gmllosses_reg=0;gmlties_reg=0;};};};};}};var gmlstr=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins_reg)),"-"),__yy_gml_errCheck(string(gmllosses_reg))),"-"),__yy_gml_errCheck(string(gmlties_reg)));ds_list_add(_inst.gmlreclist_b,gmlstr);gmlstr="0%";var gmlnum_games=yyfplus(yyfplus(__yy_gml_errCheck(gmlwins_reg),__yy_gml_errCheck(gmllosses_reg)),__yy_gml_errCheck(gmlties_reg));if(yyfgreater(gmlnum_games,0)){gmlstr=string_format(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins_reg),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties_reg),0.5)))),__yy_gml_errCheck(gmlnum_games)),0,3);};ds_list_add(_inst.gmlreclist_b,gmlstr);ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordPO"));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_WinPctPO"));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_POsReached"));var gmlwins_po=0;var gmllosses_po=0;var gmlpocount=0;var gmlpoatts=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,
97).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,97).gmlhistory,gmli);if(!yyGetBool(ds_map_exists(gmlmap,"wins_po"))){ds_map_set(gmlmap,"wins_po",0);};if(!yyGetBool(ds_map_exists(gmlmap,"losses_po"))){ds_map_set(gmlmap,"losses_po",0);};gmlwins_po=yyfplus(gmlwins_po,real(ds_map_find_value(gmlmap,"wins_po")));gmllosses_po=yyfplus(gmllosses_po,real(ds_map_find_value(gmlmap,"losses_po")));
gml_Script_slog(_inst,_other,yyfplus("Year ",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"year")))));gml_Script_slog(_inst,_other,yyfplus("Wins PO ",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"wins_po")))));gml_Script_slog(_inst,_other,yyfplus("Losses PO ",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"losses_po")))));if(yyfgreater(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"wins_po"))),__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"losses_po")))),0)){{(g_yyPrePostObject__=gmlpoatts,
gmlpoatts=(g_yyPrePostObject__ instanceof Long?gmlpoatts.add(1):++gmlpoatts),g_yyPrePostObject__);gml_Script_slog(_inst,_other,yyfplus("Attempts ",__yy_gml_errCheck(string(gmlpoatts))));};};(g_yyPrePostObject__=gmlpocount,gmlpocount=(g_yyPrePostObject__ instanceof Long?gmlpocount.add(1):++gmlpocount),g_yyPrePostObject__);}};ds_list_add(_inst.gmlreclist_b,yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins_po)),"-"),__yy_gml_errCheck(string(gmllosses_po))));gmlstr="0%";gmlnum_games=yyfplus(__yy_gml_errCheck(gmlwins_po),
__yy_gml_errCheck(gmllosses_po));if(yyfgreater(gmlnum_games,0)){gmlstr=string_format(yyfdivide(__yy_gml_errCheck(gmlwins_po),__yy_gml_errCheck(gmlnum_games)),0,3);};ds_list_add(_inst.gmlreclist_b,gmlstr);ds_list_add(_inst.gmlreclist_b,yyfplus(yyfplus(__yy_gml_errCheck(string(gmlpoatts)),"/"),__yy_gml_errCheck(string(max(0,yyfminus(__yy_gml_errCheck(gmlpocount),1))))));var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,97).gmlrecords,gmli);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"tag")))){{if((yyGetBool(ds_map_exists(gmlmap,"coachstat")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"coachstat")),1)))){{ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,ds_map_find_value(gmlmap,"tag")));ds_list_add(_inst.gmlreclist_b,ds_map_find_value(gmlmap,"stat_text"));};};};};}};ds_list_add(_inst.gmlreclist_a,
gml_Script_s_str(_inst,_other,"ui_SeasonsNoSim"));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_SimRecord"));ds_list_add(_inst.gmlreclist_b,string(gml_Script_s_count_full_seasons(_inst,_other)));var gmlwins_sim=0;var gmllosses_sim=0;var gmlties_sim=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,
97).gmlhistory,gmli);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"wins_sim")))&&(yyGetBool(ds_map_exists(gmlmap,"losses_sim")))&&(yyGetBool(ds_map_exists(gmlmap,"ties_sim")))){{gmlwins_sim=yyfplus(gmlwins_sim,real(ds_map_find_value(gmlmap,"wins_sim")));gmllosses_sim=yyfplus(gmllosses_sim,real(ds_map_find_value(gmlmap,"losses_sim")));gmlties_sim=yyfplus(gmlties_sim,real(ds_map_find_value(gmlmap,"ties_sim")));if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,
"year"),1)))&&(yyGetBool(yyfgreater(yyfplus(yyfplus(__yy_gml_errCheck(gmlwins_sim),__yy_gml_errCheck(gmllosses_sim)),__yy_gml_errCheck(gmlties_sim)),1)))){{gmlwins_sim=0;gmllosses_sim=0;gmlties_sim=0;};};};};}};var gmlstr_sim=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins_sim)),"-"),__yy_gml_errCheck(string(gmllosses_sim))),"-"),__yy_gml_errCheck(string(gmlties_sim)));ds_list_add(_inst.gmlreclist_b,gmlstr_sim);_inst.gmllistsize=ds_list_size(_inst.gmlreclist_a);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),
__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfgreater(yyftime(__yy_gml_errCheck(_inst.gmllistsize),__yy_gml_errCheck(_inst.gmltxt_h)),yyfminus(__yy_gml_errCheck(_inst.sprite_height),16))))){_inst.gmlactive=true;};_inst.gmlactive=true;}function gml_Object_obj_hof_records_coach_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(global.gmlui_selected,_inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(global.gmltriggerl)){
_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(global.gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,yyftime(__yy_gml_errCheck(global.gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset,_inst.gmlflick_lineY);};};if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),
yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));
_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize),1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_records_coach_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);
draw_set_halign(1);var gmltx=_inst.x;var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=gmlty;var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);gmlty=yyfplus(gmlty,_inst.gmlyoffset);var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlreclist_a));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfgreaterequal(gmlty,gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty,
gmlbounds_y2)))){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),10);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_a,gmli));gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),18);draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_b,gmli));};};gmlty=yyfplus(gmlty,_inst.gmltxt_h);}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),
yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),12),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,
yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_records_coach_Gesture_69(_inst,_other){if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){
{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_records_coach_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlmsoffset=0;}function gml_Object_obj_hof_records_player_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);
_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,"I");yyInst(_inst,_other,97).gmlrecords=gml_Script_s_sort_record_list(_inst,_other,yyInst(_inst,_other,97).gmlrecords);_inst.gmlreclist_a=ds_list_create();_inst.gmlreclist_b=ds_list_create();_inst.gmlreclist_c=ds_list_create();_inst.gmlreclist_d=ds_list_create();_inst.gmlreclist_flash=ds_list_create();var gmlsomestats=false;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,97).gmlrecords,gmli);if(yyGetBool(ds_exists(gmlmap,1))){{if((yyGetBool(ds_map_exists(gmlmap,"coachstat")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"coachstat")),1)))){continue;};if(yyGetBool(ds_map_exists(gmlmap,"tag"))){{ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,ds_map_find_value(gmlmap,"tag")));};};if(yyGetBool(ds_map_exists(gmlmap,"stat"))){{ds_list_add(_inst.gmlreclist_b,yyfplus(__yy_gml_errCheck(string(round(ds_map_find_value(gmlmap,
"stat")))),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"stat_text")))));if(yyfgreater(real(ds_map_find_value(gmlmap,"stat")),0)){gmlsomestats=true;};};};var gmlstr="";if((yyGetBool(ds_map_exists(gmlmap,"qbname")))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlmap,"qbname"),"0")))){gmlstr=yyfplus(gmlstr,yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"qbname"))," "));};if((yyGetBool(ds_map_exists(gmlmap,"playername")))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlmap,"playername"),"0")))){
gmlstr=yyfplus(gmlstr,ds_map_find_value(gmlmap,"playername"));};ds_list_add(_inst.gmlreclist_c,gmlstr);gmlstr="";if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfnotequal(string(ds_map_find_value(gmlmap,"year")),"0")))){gmlstr=yyfplus(gmlstr,yyfplus("Y",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"year")))));};ds_list_add(_inst.gmlreclist_d,gmlstr);if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"year")),yyInst(_inst,_other,97).gmlyear)))&&(yyGetBool(ds_map_exists(gmlmap,
"week")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"week")),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlweek),1))))){ds_list_add(_inst.gmlreclist_flash,1);}else {ds_list_add(_inst.gmlreclist_flash,0);};};};}};_inst.gmllistsize=ds_list_size(_inst.gmlreclist_a);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));if((yyGetBool(!yyGetBool(yyInst(_inst,
_other,97).gmlplayer_record_msg_done)))&&(yyGetBool(!yyGetBool(gmlsomestats)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_PlayerRecords"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);yyInst(_inst,_other,97).gmlplayer_record_msg_done=true;};};_inst.gmlactive=true;}function gml_Object_obj_hof_records_player_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(global.gmlui_selected,
_inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(global.gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(global.gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,yyftime(__yy_gml_errCheck(global.gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset,_inst.gmlflick_lineY);};};if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),
_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),
__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize),1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_records_player_Draw_64(_inst,
_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=gmlty;var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);gmlty=yyfplus(gmlty,_inst.gmlyoffset);var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlreclist_a));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfgreaterequal(gmlty,
gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty,gmlbounds_y2)))){{var gmlc=16777215;if(yyfequal(ds_list_find_value(_inst.gmlreclist_flash,gmli),1)){gmlc=global.gmlc_primary;};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),10);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_a,gmli),gmlc,gmlc,gmlc,gmlc,1);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,
_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_b,gmli),gmlc,gmlc,gmlc,gmlc,1);gmltx=yyfplus(gmltx,10);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_c,gmli),gmlc,gmlc,gmlc,gmlc,1);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),18);draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_d,gmli),gmlc,gmlc,gmlc,gmlc,1);};};gmlty=yyfplus(gmlty,
_inst.gmltxt_h);}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),12),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst,130,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_records_player_Gesture_69(_inst,_other){if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),
_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_records_player_PreCreate_0(_inst,_other){event_inherited(_inst,_other);
_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlmsoffset=0;}function gml_Object_obj_master_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"------> Create: obj_master");gml_Script_slog(_inst,_other,g_pBuiltIn.get_os_device());gml_Script_s_set_up_globals(_inst,_other);_inst.persistent=true;display_set_gui_size(480,270);device_mouse_dbclick_enable(false);randomise();_inst.gmlcanvaswidth=g_pBuiltIn.room_width;_inst.gmlcanvasheight=g_pBuiltIn.room_height;_inst.gmldo_welcome_msg=false;if(!yyGetBool(instance_exists(11))){
global.gmlnx=instance_create_layer(0,0,yyInst(_inst,_other,_inst.id).layer,11);};if(yyGetBool(file_exists(global.gmlg_optionsave))){gml_Script_s_load_options(_inst,_other);}else {gml_Script_s_create_map_options(_inst,_other);};_inst.gmlfr_mode=0;_inst.gmlqb_mode=0;_inst.gmlco_mode=0;_inst.gmlstringmap=(-1);gml_Script_s_refresh_strings(_inst,_other);gml_Script_slog(_inst,_other,yyfplus(yyfplus("ui_Version_Mode: ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Version_Mode"))),__yy_gml_errCheck(gml_Script_s_co_real_version_text(_inst,
_other))));if((yyGetBool(!yyGetBool(global.gmlbrowser)))&&(yyGetBool(yyfless(real(ds_map_find_value(_inst.gmlmap_options,"my_version")),global.gmlg_version)))){{gml_Script_slog(_inst,_other,yyfplus("Current version = ",__yy_gml_errCheck(string(global.gmlg_version))));gml_Script_slog(_inst,_other,yyfplus("My version = ",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"my_version")))));gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_Update"),
gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};_inst.gmlstart_year=2022;_inst.gmlyear_stagger=irandom(12);_inst.gmllast_week_regular=18;_inst.gmlfirst_week_playoffs=19;gml_Script_s_college_shorter_season(_inst,_other);_inst.gmlyear=1;_inst.gmlweek=1;_inst.gmlstage=1;_inst.gmlintro=1;_inst.gmlstarrating=50;_inst.gmlrelationship_boss=50;_inst.gmlqb_salary=10;_inst.gmlqb_tdbonus=1;_inst.gmlqb_training_hiscore=0;_inst.gmlqb_nrg=1;_inst.gmlfname="";
_inst.gmllname="";_inst.gmlmyteam_id=(-1);_inst.gmlmyface_x=(-1);_inst.gmlmyface_y=(-1);_inst.gmlmy_skin=(-1);_inst.gmlfavourite_team_id=0;_inst.gmlsuppress_difficulty=10;_inst.gmlsalary_cap=150;if(yyGetBool(global.gmlconsole_build)){_inst.gmlsalary_cap=200;};_inst.gmlboost_salary_cap=0;_inst.gmlprematch_dilemma_done=false;_inst.gmlprematch_dilemma_shown_count=0;_inst.gmlprematch_dilemma_chosen_players=ds_list_create();_inst.gmltip_count=1;_inst.gmlmatchcount=0;_inst.gmlgamestarts=0;_inst.gmltimeout_message_done=false;
_inst.gmlbullet_throw_message_done=false;_inst.gmltag_hof_message_done=0;_inst.gmltag_kr_message_done=0;_inst.gmlseason_credits_purchased=0;_inst.gmlop_ball=0;_inst.gmlcoach_credit=3;if(yyGetBool(global.gmlconsole_build)){_inst.gmlcoach_credit=15;};_inst.gmlpurchased_credit=0;_inst.gmlcoach_rating=1;_inst.gmlfans=30;_inst.gmlfacility_stadium=1;_inst.gmlfacility_training=1;_inst.gmlfacility_rehab=1;_inst.gmlfacility_upgraded_stadium=0;_inst.gmlfacility_upgraded_training=0;_inst.gmlfacility_upgraded_rehab=0;
_inst.gmltraining_reg_df=2;_inst.gmltraining_reg_of=2;_inst.gmlrecruitment_credits=1;_inst.gmlrecruitment_credits_cap=25;if(yyGetBool(global.gmlconsole_build)){_inst.gmlrecruitment_credits_cap=30;};_inst.gmlboost_recruitment_credits_cap=0;_inst.gmlcollege_draft_stage=(-1);_inst.gmlcollege_admissions_draft_round=0;_inst.gmlcollege_admissions_warn_once=1;_inst.gmlcollege_admissions_doing_player_draft_sign=false;_inst.gmlcollege_profile_page_num=1;for(var __yy__v1884=0,__yy__v1885=yyGetInt32(3);__yy__v1884<__yy__v1885;
__yy__v1884++){{var ___sw1546___=irandom(3);var ___swc1547___=-1;if(yyCompareVal(___sw1546___,0,g_GMLMathEpsilon,false)==0){___swc1547___=0;}else if(yyCompareVal(___sw1546___,1,g_GMLMathEpsilon,false)==0){___swc1547___=1;}else if(yyCompareVal(___sw1546___,2,g_GMLMathEpsilon,false)==0){___swc1547___=2;}else if(yyCompareVal(___sw1546___,3,g_GMLMathEpsilon,false)==0){___swc1547___=3;}switch(___swc1547___){case 0:{(g_yyPrePostObject__=_inst.gmlfacility_stadium,_inst.gmlfacility_stadium=(g_yyPrePostObject__ instanceof Long?_inst.gmlfacility_stadium.add(1):++_inst.gmlfacility_stadium),
g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=_inst.gmlfacility_training,_inst.gmlfacility_training=(g_yyPrePostObject__ instanceof Long?_inst.gmlfacility_training.add(1):++_inst.gmlfacility_training),g_yyPrePostObject__);break;}case 2:{(g_yyPrePostObject__=_inst.gmlfacility_rehab,_inst.gmlfacility_rehab=(g_yyPrePostObject__ instanceof Long?_inst.gmlfacility_rehab.add(1):++_inst.gmlfacility_rehab),g_yyPrePostObject__);break;}case 3:{_inst.gmlfans=yyfplus(_inst.gmlfans,10);break;}};}};_inst.gmldraft_round=1;
_inst.gmldraft_picks=__yy_gml_array_check(_inst.gmldraft_picks,935272160);_inst.gmldraft_picks[__yy_gml_array_check_index_set(0)]=1;_inst.gmldraft_picks[__yy_gml_array_check_index_set(1)]=1;_inst.gmldraft_picks[__yy_gml_array_check_index_set(2)]=1;_inst.gmldraft_info_done=0;_inst.gmlexpiredcontract_msg_done=false;_inst.gmloffers_done=false;_inst.gmlop_difficulty=0;_inst.gmlop_matchlength=0;_inst.gmlop_autorun=1;_inst.gmlfirst_load=false;var gmlsavename=gml_Script_s_get_savename(_inst,_other);if(yyGetBool(file_exists(gmlsavename))){
{gml_Script_s_loadgame(_inst,_other,gmlsavename);_inst.gmlfirst_load=true;if((yyGetBool(1))&&(yyGetBool(yyfequal(_inst.gmlqb_mode,1)))){{file_delete(gmlsavename);gml_Script_s_create_new_save(_inst,_other);};};};}else {{gml_Script_s_create_new_save(_inst,_other);};};gml_Script_slog(_inst,_other,yyfplus("myteam_id=",__yy_gml_errCheck(string(_inst.gmlmyteam_id))));if(!yyGetBool(ds_exists(_inst.gmlteamlist,2))){{gml_Script_slog(_inst,_other,"no teamlist!!!");gml_Script_s_create_new_save(_inst,_other);
};}else {if(yyfless(ds_list_size(_inst.gmlteamlist),32)){{gml_Script_slog(_inst,_other,"teamlist less than 32!!!");gml_Script_s_create_new_save(_inst,_other);};};};gml_Script_s_set_up_temp_variables(_inst,_other);gml_Script_slog(_inst,_other,yyfplus("myteam_id = ",__yy_gml_errCheck(string(_inst.gmlmyteam_id))));gml_Script_slog(_inst,_other,yyfplus("myteam.uid = ",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlmyteam,"uid")))));gml_Script_s_update_music(_inst,_other);gml_Script_s_fonts_init(_inst,
_other);if(yyGetBool(global.gmlbrowser)){{gml_Script_slog(_inst,_other,">>>>");gml_Script_slog(_inst,_other,yyfplus("This is a browser:",__yy_gml_errCheck(url_get_domain())));gml_Script_slog(_inst,_other,">>>>");var gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmlmyteam_id,gmluniform,0,"");if(yyGetBool(_inst.gmldo_welcome_msg)){room_goto(2);}else {room_goto(14);};return;};};global.gmllsh=ds_list_create();
gml_Script_s_keyboard_custom_init(_inst,_other);global.gmlshow_title=true;gml_Script_slog(_inst,_other,yyfplus(yyfplus("INC_CO_MODE:[",__yy_gml_errCheck(string(0))),"]"));{};gml_Script_s_title_goto(_inst,_other);}function gml_Object_obj_master_Alarm_0(_inst,_other){gml_Script_s_iap_init(_inst,_other);}function gml_Object_obj_master_Alarm_1(_inst,_other){}function gml_Object_obj_master_Step_0(_inst,_other){if((yyGetBool(global.gmlbrowser))&&(yyGetBool(!yyGetBool(instance_exists(104))))){gml_Script_s_update_poki_scaling(_inst,
_other);};gml_Script_s_update_gamepad(_inst,_other);if(yyGetBool(global.gmldebug)){gml_Script_s_debug_window_size(_inst,_other);};}function gml_Object_obj_master_Other_75(_inst,_other){gml_Script_slog(_inst,_other,yyfplus("Async_System: ",__yy_gml_errCheck(string(ds_map_find_value(g_pBuiltIn.get_async_load(),"event_type")))));var ___sw1550___=ds_map_find_value(g_pBuiltIn.get_async_load(),"event_type");var ___swc1551___=-1;if(yyCompareVal(___sw1550___,"audio_system_status",g_GMLMathEpsilon,false)==0){
___swc1551___=0;}else if(yyCompareVal(___sw1550___,"gamepad discovered",g_GMLMathEpsilon,false)==0){___swc1551___=1;}else if(yyCompareVal(___sw1550___,"gamepad lost",g_GMLMathEpsilon,false)==0){___swc1551___=2;}switch(___swc1551___){case 0:{if(!yyGetBool(global.gmlbrowser)){return;};gml_Script_s_update_music(_inst,_other);break;}case 1:{var gmlpad=ds_map_find_value(g_pBuiltIn.get_async_load(),"pad_index");if(yyGetBool(gml_Script_s_gamepad_is_fingerprint_sensor(_inst,_other,gmlpad))){return;};global.gmlgamepad=true;
global.gmlgp_slot=gmlpad;gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gamepad_get_description(gmlpad))," connected ("),__yy_gml_errCheck(string(gmlpad))),")"));gml_Script_slog(_inst,_other,gamepad_get_mapping(gmlpad));break;}case 2:{var gmlpad=ds_map_find_value(g_pBuiltIn.get_async_load(),"pad_index");if(yyfequal(global.gmlgp_slot,gmlpad)){{global.gmlgamepad=false;global.gmlui_selected=(-4);{var __yy__v1886=GetWithArray(104);for(var __yy__v1887 in __yy__v1886){if(!__yy__v1886.hasOwnProperty(__yy__v1887))continue;
var __yy__v1888=__yy__v1886[__yy__v1887];__yy__v1888.gmlcontrol_alpha=0;}};};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("gp_slot",__yy_gml_errCheck(string(gmlpad)))," disconnected"));break;}};}// /// @description Debug RoomName
function gml_Object_obj_master_Other_4(_inst,_other){gml_Script_slog(_inst,_other,"ROOM:");gml_Script_slog(_inst,_other,room_get_name(g_pBuiltIn.get_current_room()));}function gml_Object_obj_master_KeyPress_67(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v1889=GetWithArray(71);
for(var __yy__v1890 in __yy__v1889){if(!__yy__v1889.hasOwnProperty(__yy__v1890))continue;var __yy__v1891=__yy__v1889[__yy__v1890];return;}};{var __yy__v1892=GetWithArray(104);for(var __yy__v1893 in __yy__v1892){if(!__yy__v1892.hasOwnProperty(__yy__v1893))continue;var __yy__v1894=__yy__v1892[__yy__v1893];return;}};if((yyGetBool(!yyGetBool(instance_exists(78))))&&(yyGetBool(!yyGetBool(instance_exists(71))))){{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,100);ds_map_set(yyInst(_inst,
_other,97).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_credits_purchased")),10));yyInst(_inst,_other,97).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,97).gmlseason_credits_purchased,100);audio_play_sound(17,1,false);gml_Script_s_meter_change(_inst,_other,8,yyInst(_inst,_other,97).gmlcoach_credit,g_pBuiltIn.get_current_room(),"Coins!");};};}function gml_Object_obj_master_KeyPress_83(_inst,_other){if(!yyGetBool(global.gmldebug)){
return;};{var __yy__v1895=GetWithArray(71);for(var __yy__v1896 in __yy__v1895){if(!__yy__v1895.hasOwnProperty(__yy__v1896))continue;var __yy__v1897=__yy__v1895[__yy__v1896];return;}};if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),14)))&&(yyGetBool(!yyGetBool(instance_exists(78))))&&(yyGetBool(!yyGetBool(instance_exists(71))))){{if(yyGetBool(keyboard_check(17))){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_skip_to_week(_inst,_other,18);};}else {{gml_Script_s_skip_to_week(_inst,
_other,18);};};gml_Script_s_update_human_fixtures(_inst,_other);};}else {if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,97).gmlstage=(-11);room_goto(14);};}else {{gml_Script_s_start_new_season(_inst,_other,false);};};};return;};};}function gml_Object_obj_master_KeyPress_48(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v1898=GetWithArray(71);for(var __yy__v1899 in __yy__v1898){if(!__yy__v1898.hasOwnProperty(__yy__v1899))continue;var __yy__v1900=__yy__v1898[__yy__v1899];
return;}};gml_Script_s_update_ui_colours(_inst,_other);room_goto(g_pBuiltIn.get_current_room());}function gml_Object_obj_master_KeyPress_66(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v1901=GetWithArray(71);for(var __yy__v1902 in __yy__v1901){if(!__yy__v1901.hasOwnProperty(__yy__v1902))continue;var __yy__v1903=__yy__v1901[__yy__v1902];return;}};if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),14)))&&(yyGetBool(!yyGetBool(instance_exists(78))))&&(yyGetBool(!yyGetBool(instance_exists(71))))){
{gml_Script_s_skip_to_week(_inst,_other,gml_Script_s_get_bye_week(_inst,_other));gml_Script_s_update_human_fixtures(_inst,_other);};};}function gml_Object_obj_master_KeyPress_78(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v1904=GetWithArray(71);for(var __yy__v1905 in __yy__v1904){if(!__yy__v1904.hasOwnProperty(__yy__v1905))continue;var __yy__v1906=__yy__v1904[__yy__v1905];return;}};gml_Script_s_add_news(_inst,_other,"This is the news!##This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! ");
gml_Script_s_check_for_news(_inst,_other);}function gml_Object_obj_master_KeyPress_68(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v1907=GetWithArray(71);for(var __yy__v1908 in __yy__v1907){if(!__yy__v1907.hasOwnProperty(__yy__v1908))continue;var __yy__v1909=__yy__v1907[__yy__v1908];return;}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};gml_Script_s_add_news_dyn(_inst,_other,"web","QB wins award!##You won the Retro Bowl MVP award!",gml_Script_s_get_qb_pmap(_inst,_other));
gml_Script_s_check_for_news(_inst,_other);}function gml_Object_obj_master_KeyPress_82(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v1910=GetWithArray(71);for(var __yy__v1911 in __yy__v1910){if(!__yy__v1910.hasOwnProperty(__yy__v1911))continue;var __yy__v1912=__yy__v1910[__yy__v1911];return;}};room_goto(33);}function gml_Object_obj_camera_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_camera.create");gml_Script_s_create_camera(_inst,_other);}function gml_Object_obj_camera_Alarm_0(_inst,
_other){window_center();{var __yy__v1913=GetWithArray(24);for(var __yy__v1914 in __yy__v1913){if(!__yy__v1913.hasOwnProperty(__yy__v1914))continue;var __yy__v1915=__yy__v1913[__yy__v1914];{gml_Script_s_pause_btn_recenter(__yy__v1915,_inst);if((yyGetBool(variable_instance_exists(__yy__v1915.id,"is_paused")))&&(yyGetBool(__yy__v1915.gmlis_paused))){gml_Script_s_pause_options_recenter(__yy__v1915,_inst);};}}};{var __yy__v1916=GetWithArray(121);for(var __yy__v1917 in __yy__v1916){if(!__yy__v1916.hasOwnProperty(__yy__v1917))continue;
var __yy__v1918=__yy__v1916[__yy__v1917];gml_Script_s_btn_audible_reposition(__yy__v1918,_inst);}};{var __yy__v1919=GetWithArray(122);for(var __yy__v1920 in __yy__v1919){if(!__yy__v1919.hasOwnProperty(__yy__v1920))continue;var __yy__v1921=__yy__v1919[__yy__v1920];gml_Script_s_btn_audible_reposition(__yy__v1921,_inst);}};{var __yy__v1922=GetWithArray(123);for(var __yy__v1923 in __yy__v1922){if(!__yy__v1922.hasOwnProperty(__yy__v1923))continue;var __yy__v1924=__yy__v1922[__yy__v1923];gml_Script_s_btn_fieldgoal_reposition(__yy__v1924,
_inst);}};{var __yy__v1925=GetWithArray(31);for(var __yy__v1926 in __yy__v1925){if(!__yy__v1925.hasOwnProperty(__yy__v1926))continue;var __yy__v1927=__yy__v1925[__yy__v1926];gml_Script_s_btn_kickoff_recenter(__yy__v1927,_inst);}};{var __yy__v1928=GetWithArray(78);for(var __yy__v1929 in __yy__v1928){if(!__yy__v1928.hasOwnProperty(__yy__v1929))continue;var __yy__v1930=__yy__v1928[__yy__v1929];gml_Script_s_message_recenter(__yy__v1930,_inst);}};}function gml_Object_obj_camera_Step_2(_inst,_other){if(yyGetBool(is_undefined(_inst.gmlzoom))){
{gml_Script_s_create_camera(_inst,_other);return;};};if((yyGetBool(global.gmlbrowser))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),21)))){{if((yyGetBool(yyfnotequal(_inst.gmldisplay_width,display_get_width())))||(yyGetBool(yyfnotequal(_inst.gmldisplay_height,display_get_height())))){gml_Script_s_create_camera(_inst,_other);};};};var gml_cur_x=camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gml_cur_y=camera_get_view_y(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,
g_pBuiltIn.view_camera)]);var gml_x=gml_cur_x;var gml_y=gml_cur_y;var gmldes_zoom=1.2;var gml_spd=0.03;var gml_pan=yyftime(__yy_gml_errCheck(_inst.gmlview_width),__yy_gml_errCheck(_inst.gmlzoom));{var __yy__v1931=GetWithArray(104);for(var __yy__v1932 in __yy__v1931){if(!__yy__v1931.hasOwnProperty(__yy__v1932))continue;var __yy__v1933=__yy__v1931[__yy__v1932];{var ___sw1560___=__yy__v1933.gmlstate;var ___swc1561___=-1;if(yyCompareVal(___sw1560___,1,g_GMLMathEpsilon,false)==0){___swc1561___=0;}switch(___swc1561___){
case 0:{if(yyfnotequal(__yy__v1933.gmlcomm_stage,14)){gmldes_zoom=2;};gml_x=1300;if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlplayerteamindex,(-1))))){{gml_Script_s_force_kick_direction(__yy__v1933,_inst);var ___sw1562___=__yy__v1933.gmldrivedir;var ___swc1563___=-1;if(yyCompareVal(___sw1562___,(-1),g_GMLMathEpsilon,false)==0){___swc1563___=0;}else if(yyCompareVal(___sw1562___,1,g_GMLMathEpsilon,false)==0){___swc1563___=1;}switch(___swc1563___){case 0:{gml_x=yyfminus(gml_x,
yyftime(__yy_gml_errCheck(__yy__v1933.gmlscrimmage),20));break;}case 1:{gml_x=yyfplus(gml_x,yyftime(__yy_gml_errCheck(__yy__v1933.gmlscrimmage),20));break;}};};}else {{var ___sw1564___=__yy__v1933.gmldrivedir;var ___swc1565___=-1;if(yyCompareVal(___sw1564___,(-1),g_GMLMathEpsilon,false)==0){___swc1565___=0;}else if(yyCompareVal(___sw1564___,1,g_GMLMathEpsilon,false)==0){___swc1565___=1;}switch(___swc1565___){case 0:{if(yyfequal(__yy__v1933.gmlpossession,__yy__v1933.gmlhuman_team)){gml_x=yyfminus(gml_x,
yyftime(__yy_gml_errCheck(__yy__v1933.gmlscrimmage),20));}else {gml_x=yyfplus(gml_x,yyftime(__yy_gml_errCheck(__yy__v1933.gmlscrimmage),20));};break;}case 1:{if(yyfequal(__yy__v1933.gmlpossession,__yy__v1933.gmlhuman_team)){gml_x=yyfplus(gml_x,yyftime(__yy_gml_errCheck(__yy__v1933.gmlscrimmage),20));}else {gml_x=yyfminus(gml_x,yyftime(__yy_gml_errCheck(__yy__v1933.gmlscrimmage),20));};break;}};};};var ___sw1566___=__yy__v1933.gmlcomm_stage;var ___swc1567___=-1;if(yyCompareVal(___sw1566___,12,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw1566___,13,g_GMLMathEpsilon,false)==0){___swc1567___=0;}else if(yyCompareVal(___sw1566___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1566___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1566___,17,g_GMLMathEpsilon,false)==0){___swc1567___=1;}switch(___swc1567___){case 0:{if((yyGetBool(yyfnotequal(__yy__v1933.gmlquarter,3)))&&(yyGetBool(yyfnotequal(__yy__v1933.gmlquarter,5)))){break;};}case 1:{gml_spd=0.15;gml_x=1300;break;}default :{break;}};gml_x=yyfminus(gml_x,
yyftime(__yy_gml_errCheck(gml_pan),0.5));break;}default :{break;}};}}};{var __yy__v1934=GetWithArray(global.gmlmaster_ball);for(var __yy__v1935 in __yy__v1934){if(!__yy__v1934.hasOwnProperty(__yy__v1935))continue;var __yy__v1936=__yy__v1934[__yy__v1935];{var gmlby=__yy__v1936.y;if(yyGetBool(gml_Script_s_aiming(__yy__v1936,_inst))){gmlby=280;};gml_x=yyfminus(__yy_gml_errCheck(__yy__v1936.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_pan),0.5)));gml_y=yyfminus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlview_height),
__yy_gml_errCheck(_inst.gmlzoom)),0.5)));if((yyGetBool(__yy__v1936.gmlholder))&&(yyGetBool(gml_Script_s_aiming(__yy__v1936,_inst)))){{var gmldist=gml_Script_s_get_distance_to_furthest_teammate(__yy__v1936,_inst,__yy__v1936.gmlholder);gmldes_zoom=lerp(yyfdivide(600,__yy_gml_errCheck(gmldist)),2,1.6);gmldes_zoom=clamp(gmldes_zoom,1.6,2);if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))){gml_x=yyfminus(__yy_gml_errCheck(__yy__v1936.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_pan),0.6)));
}else {gml_x=yyfminus(__yy_gml_errCheck(__yy__v1936.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_pan),0.4)));};};};if((yyGetBool(yyInst(_inst,_other,104).gmlkicking))||(yyGetBool(gml_Script_s_is_kickoff(__yy__v1936,_inst,false)))){{gml_x=yyfminus(__yy_gml_errCheck(__yy__v1936.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_pan),0.5)));gmldes_zoom=1.9;};};}}};if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_zoom"))){_inst.gmlzoom=2;}else {_inst.gmlzoom=lerp(_inst.gmlzoom,
gmldes_zoom,0.02);};camera_set_view_size(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],yyftime(__yy_gml_errCheck(_inst.gmlview_width),__yy_gml_errCheck(_inst.gmlzoom)),yyftime(__yy_gml_errCheck(_inst.gmlview_height),__yy_gml_errCheck(_inst.gmlzoom)));var gmlcam_w=camera_get_view_width(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gmlcam_h=camera_get_view_height(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);
gml_x=clamp(lerp(gml_cur_x,gml_x,gml_spd),0,yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_width),__yy_gml_errCheck(gmlcam_w)));gml_y=clamp(lerp(gml_cur_y,gml_y,gml_spd),0,yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_height),__yy_gml_errCheck(gmlcam_h)));camera_set_view_pos(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],gml_x,gml_y);}function gml_Object_obj_camera_Other_4(_inst,_other){g_pBuiltIn.set_view_enable(true);g_pBuiltIn.view_visible[__yy_gml_array_check_index_set(0)]=true;
}function gml_Object_obj_camera_Other_5(_inst,_other){if(!yyGetBool(global.gmlbrowser)){{window_set_size(960,540);display_set_gui_size(480,270);surface_resize(g_pBuiltIn.application_surface,480,270);window_center();};};}function gml_Object_obj_scanlines_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"------> Create: obj_scanlines");{var __yy__v1937=GetWithArray(97);for(var __yy__v1938 in __yy__v1937){if(!__yy__v1937.hasOwnProperty(__yy__v1938))continue;var __yy__v1939=__yy__v1937[__yy__v1938];_inst.gmlon=ds_map_find_value(__yy__v1939.gmlmap_options,
"op_scanlines");}};}function gml_Object_obj_scanlines_Draw_75(_inst,_other){var gmlgw=display_get_gui_width();var gmlgh=display_get_gui_height();var gmlcol=global.gmlc_background;if(yyfequal(g_pBuiltIn.get_current_room(),1)){gmlcol=0;};if(yyfequal(g_pBuiltIn.get_current_room(),0)){gmlcol=0;};if(yyfequal(g_pBuiltIn.get_current_room(),17)){gmlcol=0;};draw_rectangle_color((-1080),(-1080),(-1),1080,gmlcol,gmlcol,gmlcol,gmlcol,0);draw_rectangle_color(gmlgw,(-1080),yyfplus(__yy_gml_errCheck(gmlgw),1080),1080,
gmlcol,gmlcol,gmlcol,gmlcol,0);draw_rectangle_color((-1080),(-1080),yyfplus(__yy_gml_errCheck(gmlgw),1080),(-1),gmlcol,gmlcol,gmlcol,gmlcol,0);draw_rectangle_color((-1080),gmlgh,yyfplus(__yy_gml_errCheck(gmlgw),1080),yyfplus(__yy_gml_errCheck(gmlgh),1080),gmlcol,gmlcol,gmlcol,gmlcol,0);var gml_on=_inst.gmlon;var gmlalf=0.08;var gmlscl=0.5;{var __yy__v1940=GetWithArray(104);for(var __yy__v1941 in __yy__v1940){if(!__yy__v1940.hasOwnProperty(__yy__v1941))continue;var __yy__v1942=__yy__v1940[__yy__v1941];{if(yyfequal(__yy__v1942.gmlstate,
3)){gml_on=true;};}}};if(yyGetBool(gml_on)){{draw_sprite_tiled_ext(_inst,160,0,(-540),(-540),gmlscl,gmlscl,16777215,gmlalf);};};if(yyfgreater(yyInst(_inst,_other,97).alarm[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).alarm)],0)){{draw_set_font(global.gmlfnt_small_flex);draw_set_halign(2);var gmlgx=display_get_gui_width();var gmlgy=display_get_gui_height();draw_set_color(0);draw_set_alpha(0.75);draw_rectangle(yyfminus(__yy_gml_errCheck(gmlgx),110),yyfminus(__yy_gml_errCheck(gmlgy),16),gmlgx,
gmlgy,0);draw_set_color(16777215);draw_set_alpha(1);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgx),6),yyfminus(__yy_gml_errCheck(gmlgy),8),gml_Script_s_str(_inst,_other,"ui_Connecting"));draw_sprite_ext(_inst,90,0,yyfminus(__yy_gml_errCheck(gmlgx),102),yyfminus(__yy_gml_errCheck(gmlgy),7),1,1,yyfmod(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),5)),360),16777215,1);};};if(yyfequal(window_get_cursor(),(-1))){{draw_set_alpha(0.1);var gmlmx=device_mouse_x_to_gui(0);
var gmlmy=device_mouse_y_to_gui(0);draw_circle_color(gmlmx,gmlmy,4,16777215,16777215,0);draw_set_alpha(1);};};}function gml_Object_obj_scanlines_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlon=false;}function gml_Object_obj_intercept_point_Create_0(_inst,_other){_inst.gmlpx=0;_inst.gmlpy=0;_inst.gmlintercept_AB=0;_inst.gmlintercept_CD=0;_inst.gmlintercept=false;}function gml_Object_obj_credit_Create_0(_inst,_other){_inst.gmlcreation_time=g_pBuiltIn.get_current_time();}function gml_Object_obj_credit_Destroy_0(_inst,
_other){var ___sw1570___=_inst.gmltype;var ___swc1571___=-1;if(yyCompareVal(___sw1570___,1,g_GMLMathEpsilon,false)==0){___swc1571___=0;}else if(yyCompareVal(___sw1570___,2,g_GMLMathEpsilon,false)==0){___swc1571___=1;}switch(___swc1571___){case 0:{yyInst(_inst,_other,97).gmlcoach_credit=yyfplus(yyInst(_inst,_other,97).gmlcoach_credit,_inst.gmlvalue);break;}case 1:{if(!yyGetBool(is_undefined(_inst.gmlpmap))){ds_map_set(_inst.gmlpmap,"rating",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"rating")),
1));};break;}};}function gml_Object_obj_credit_Step_0(_inst,_other){var ___sw1574___=_inst.gmlstage;var ___swc1575___=-1;if(yyCompareVal(___sw1574___,0,g_GMLMathEpsilon,false)==0){___swc1575___=0;}else if(yyCompareVal(___sw1574___,1,g_GMLMathEpsilon,false)==0){___swc1575___=1;}else if(yyCompareVal(___sw1574___,2,g_GMLMathEpsilon,false)==0){___swc1575___=2;}switch(___swc1575___){case 0:{_inst.image_xscale=yyfplus(_inst.image_xscale,0.2);_inst.image_yscale=_inst.image_xscale;if(yyfgreaterequal(_inst.image_xscale,
_inst.gmldes_scale)){(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);};break;}case 1:{move_towards_point(_inst,_inst.gmldes_x,_inst.gmldes_y,5);_inst.image_xscale=yyftime(_inst.image_xscale,0.97);_inst.image_yscale=_inst.image_xscale;if(yyfless(point_distance(_inst.x,_inst.y,_inst.gmldes_x,_inst.gmldes_y),5)){(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),
g_yyPrePostObject__);};break;}case 2:{instance_destroy(_inst);break;}};}function gml_Object_obj_credit_Draw_0(_inst,_other){}function gml_Object_obj_credit_Draw_75(_inst,_other){draw_self(_inst);}function gml_Object_obj_credit_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcreation_time=0;_inst.gmlstage=0;_inst.gmldes_x=0;_inst.gmldes_y=0;_inst.gmlvalue=0;_inst.gmldes_scale=4;_inst.gmltype=1;_inst.gmlpmap=(-4);}function gml_Object_obj_kongregate_Create_0(_inst,_other){yyInst(_inst,_other,
100243).gmltext=url_get_domain();}function gml_Object_obj_store_async_Create_0(_inst,_other){gml_Script_s_set_up_purchase_ids(_inst,_other);gml_Script_s_iap_init(_inst,_other);}function gml_Object_obj_store_async_Other_66(_inst,_other){var ___sw1578___=g_pBuiltIn.get_os_type();var ___swc1579___=-1;if(yyCompareVal(___sw1578___,4,g_GMLMathEpsilon,false)==0){___swc1579___=0;}else if(yyCompareVal(___sw1578___,3,g_GMLMathEpsilon,false)==0){___swc1579___=1;}switch(___swc1579___){case 0:{gml_Script_s_iap_async_android(_inst,
_other);break;}case 1:{gml_Script_s_iap_async_ios(_inst,_other);break;}};}function gml_Object_obj_controller_Create_0(_inst,_other){if(yyGetBool(global.gmlmobile_device)){os_powersave_enable(false);};gml_Script_s_sound_audience_idle(_inst,_other);gml_Script_s_qb_mode_update_resting(_inst,_other);if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){yyInst(_inst,_other,97).gmlprematch_team_morale_qb=gml_Script_s_get_morale(_inst,_other);};_inst.gmlmyfps=g_pBuiltIn.fps_real;_inst.gmlfps_timer=0;global.gmlreplay_frame=0;
global.gmlreplay_tick=0;global.gmlreplay_end=0;global.gmlreplay_do=false;global.gmlreplay_drag_x=0;global.gmlpoki_done_post_match_reward=false;_inst.gmldifficulty=yyInst(_inst,_other,97).gmlsuppress_difficulty;var ___sw1586___=yyInst(_inst,_other,97).gmlop_difficulty;var ___swc1587___=-1;if(yyCompareVal(___sw1586___,0,g_GMLMathEpsilon,false)==0){___swc1587___=0;}else if(yyCompareVal(___sw1586___,1,g_GMLMathEpsilon,false)==0){___swc1587___=1;}else if(yyCompareVal(___sw1586___,2,g_GMLMathEpsilon,false)==0){
___swc1587___=2;}else if(yyCompareVal(___sw1586___,3,g_GMLMathEpsilon,false)==0){___swc1587___=3;}else if(yyCompareVal(___sw1586___,4,g_GMLMathEpsilon,false)==0){___swc1587___=4;}switch(___swc1587___){case 0:{break;}case 1:{_inst.gmldifficulty=7;break;}case 2:{_inst.gmldifficulty=2;break;}case 3:{_inst.gmldifficulty=(-5);break;}case 4:{_inst.gmldifficulty=(-5);break;}};_inst.gmlstate=1;_inst.gmlcomm_stage=0;_inst.gmlcomm_next_stage=0;_inst.gmllast_stage=0;_inst.gmltap_msg="";_inst.gmlcomm_txt=string_upper(gml_Script_s_str(_inst,
_other,"match_GetReady"));_inst.gmlcomm_proceed=false;_inst.gmlcomm_defender=(-4);_inst.gmlcomm_gain=35;_inst.gmlgoforit=false;_inst.gmlhailmary=false;_inst.gmlposs_txt=1;_inst.gmllast_play=0;_inst.gmlscorer="";_inst.gmlscored_by=(-1);_inst.gmlplay_start=0;_inst.gmlhad_ot_possession=__yy_gml_array_check(_inst.gmlhad_ot_possession,1346804767);_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(0)]=0;_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(1)]=0;_inst.gmlstate_previous=_inst.gmlstate;
_inst.gmlpause_state_previous=_inst.gmlstate;_inst.gmlskip_half=false;_inst.gmlgametimer=0;_inst.gmlminutes=yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlop_matchlength));_inst.gmlseconds=0;_inst.gmltime_subtract=0;_inst.gmltd_time=0;randomise();_inst.gmlhuman_team=max(yyInst(_inst,_other,97).gmlplayerteamindex,0);_inst.gmlteam=__yy_gml_array_check(_inst.gmlteam,2482654026);_inst.gmlteam[__yy_gml_array_check_index_set(0)]=yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,
_other,97).gmlteam)];_inst.gmlteam[__yy_gml_array_check_index_set(1)]=yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlteam)];_inst.gmlteam_name=__yy_gml_array_check(_inst.gmlteam_name,4207176991);_inst.gmlteam_name[__yy_gml_array_check_index_set(0)]=ds_map_find_value(_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)],"name");_inst.gmlteam_name[__yy_gml_array_check_index_set(1)]=ds_map_find_value(_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)],
"name");_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(0)]=0;_inst.gmlteam_score[__yy_gml_array_check_index_set(1)]=0;_inst.gmlteam_offense=__yy_gml_array_check(_inst.gmlteam_offense,2430042449);_inst.gmlteam_offense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)]);_inst.gmlteam_offense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_offense(_inst,
_other,_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)]);_inst.gmlteam_defense=__yy_gml_array_check(_inst.gmlteam_defense,2826004556);_inst.gmlteam_defense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)]);_inst.gmlteam_defense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)]);_inst.gmlpossession=irandom(1);_inst.gmllast_h2h_possession=(-1);
_inst.gmlkickoffteam=_inst.gmlpossession;_inst.gmlquarter=1;_inst.gmlbzoom=2;_inst.gmldrivedir=choose((-1),1);_inst.gmlot_count=0;if(yyGetBool(global.gmlexhibition)){{if(yyfless(yyInst(_inst,_other,97).gmlplayerteamindex,1)){_inst.gmldrivedir=1;}else {_inst.gmldrivedir=(-1);};};};if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir"),0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_drivedir");};_inst.gmldown=99;_inst.gmlyards=0;_inst.gmlscrimmage=0;
_inst.gmldrives=0;_inst.gmlphase=0;_inst.gmlsnaps=0;_inst.gmlkicks=0;_inst.gmlkicking=0;_inst.gmlroute_alpha=2;_inst.gmlrunning_play=false;_inst.gmlaudibles=(-1);_inst.gmlaudibles_p2=(-1);_inst.gmltimeouts=clamp(yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlop_matchlength)),2,3);_inst.gmltimeouts_p2=clamp(yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlop_matchlength)),2,3);_inst.gmltimeout_called=false;if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlyear,1)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){
_inst.gmltimeouts=0;};_inst.gmldrop_happened=false;_inst.gmldist_td=0;_inst.gmlx_scrim=0;_inst.gmlx_yards=0;_inst.gmly_scrim=0;_inst.gmly_down=yyfplus(300,__yy_gml_errCheck(irandom_range((-100),100)));_inst.gmldefensive_cover=irandom(3);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(0)]=0;_inst.gmldefense_success[__yy_gml_array_check_index_set(1)]=0;_inst.gmldefense_success[__yy_gml_array_check_index_set(2)]=0;
_inst.gmldefense_success[__yy_gml_array_check_index_set(3)]=0;_inst.gmldefense_success[__yy_gml_array_check_index_set(4)]=0;;;global.gmlflickVelX=0;global.gmlflickVelY=0;;global.gmlsnd_tackle_time=0;instance_create_layer(80,300,"Players",114);instance_create_layer(80,276,"Players",115);instance_create_layer(80,332,"Players",115);instance_create_layer(2520,300,"Players",114);instance_create_layer(2520,276,"Players",115);instance_create_layer(2520,332,"Players",115);gml_Script_s_reset_match_stats(_inst,
_other,false);_inst.gmlpractice_count=0;_inst.gmlpractice_success=0;_inst.gmlpractice_score_qb_mode=0;_inst.gmlpractice_chain_qb_mode=0;if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){gml_Script_s_set_up_practice(_inst,_other);};camera_set_view_pos(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],yyfminus(1300,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(camera_get_view_width(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)])),0.5))),0);
_inst.gmlfield_type=0;var gmltmap=_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)];var ___sw1588___=real(ds_map_find_value(gmltmap,"roof"));var ___swc1589___=-1;if(yyCompareVal(___sw1588___,1,g_GMLMathEpsilon,false)==0){___swc1589___=0;}else if(yyCompareVal(___sw1588___,2,g_GMLMathEpsilon,false)==0){___swc1589___=1;}switch(___swc1589___){case 0:{_inst.gmlfield_type=3;gml_Script_slog(_inst,_other,"FIELD_DOME1");break;}case 1:{_inst.gmlfield_type=4;gml_Script_slog(_inst,_other,"FIELD_DOME2");break;
}};instance_create_layer(0,0,"Weather",117);if(yyGetBool(instance_exists(117))){{var ___sw1590___=yyInst(_inst,_other,117).gmltype;var ___swc1591___=-1;if(yyCompareVal(___sw1590___,2,g_GMLMathEpsilon,false)==0){___swc1591___=0;}else if(yyCompareVal(___sw1590___,1,g_GMLMathEpsilon,false)==0){___swc1591___=1;}switch(___swc1591___){case 0:{_inst.gmlfield_type=1;break;}case 1:{_inst.gmlfield_type=2;break;}};};};if(yyfequal(yyInst(_inst,_other,97).gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))){_inst.gmlfield_type=5;
};gml_Script_s_update_music(_inst,_other);if(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{_inst.gmlfield_type=6;if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){_inst.gmlfield_type=7;};};};_inst.gmlshd_helmet=yyInst(_inst,_other,97).gmlcol_helmet_home;_inst.gmlshd_shirt=yyInst(_inst,_other,97).gmlcol_shirt_home;_inst.gmlshd_pants=yyInst(_inst,_other,97).gmlcol_pants_home;_inst.gmlc_endzone=make_color_rgb(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlcol_endzone_home[__yy_gml_array_check_index(2,
yyInst(_inst,_other,97).gmlcol_endzone_home)]),256),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlcol_endzone_home[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlcol_endzone_home)]),256),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlcol_endzone_home[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlcol_endzone_home)]),256));var gmlcol_h=clamp(color_get_hue(_inst.gmlc_endzone),0,255);var gmlcol_s=clamp(yyfminus(__yy_gml_errCheck(color_get_saturation(_inst.gmlc_endzone)),
25),0,255);var gmlcol_v=clamp(yyfplus(__yy_gml_errCheck(color_get_value(_inst.gmlc_endzone)),20),50,225);_inst.gmlc_endzone=make_color_hsv(gmlcol_h,gmlcol_s,gmlcol_v);_inst.gmlcomm_col_h=_inst.gmlc_endzone;_inst.gmlcomm_col_a=make_color_rgb(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlcol_endzone_away[__yy_gml_array_check_index(2,yyInst(_inst,_other,97).gmlcol_endzone_away)]),256),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlcol_endzone_away[__yy_gml_array_check_index(1,yyInst(_inst,
_other,97).gmlcol_endzone_away)]),256),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlcol_endzone_away[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlcol_endzone_away)]),256));if(yyfequal(_inst.gmlcomm_col_h,16777215)){_inst.gmlcomm_col_h=make_color_rgb(175,175,175);};if(yyfequal(_inst.gmlcomm_col_a,16777215)){_inst.gmlcomm_col_a=make_color_rgb(175,175,175);};if(yyfequal(_inst.gmlcomm_col_a,_inst.gmlcomm_col_h)){_inst.gmlcomm_col_a=8421504;};if(yyfgreater(colour_get_value(_inst.gmlcomm_col_h),
200)){_inst.gmlcomm_col_h=merge_color(_inst.gmlcomm_col_h,0,0.2);};if(yyfgreater(colour_get_value(_inst.gmlcomm_col_a),200)){_inst.gmlcomm_col_a=merge_color(_inst.gmlcomm_col_a,0,0.2);};if(yyfless(colour_get_value(_inst.gmlcomm_col_h),50)){_inst.gmlcomm_col_h=merge_color(_inst.gmlcomm_col_h,16777215,0.2);};if(yyfless(colour_get_value(_inst.gmlcomm_col_a),50)){_inst.gmlcomm_col_a=merge_color(_inst.gmlcomm_col_a,16777215,0.2);};gml_Script_s_tag_backups(_inst,_other);{var __yy__v1943=GetWithArray(97);
for(var __yy__v1944 in __yy__v1943){if(!__yy__v1943.hasOwnProperty(__yy__v1944))continue;var __yy__v1945=__yy__v1943[__yy__v1944];__yy__v1945.gmlroster=gml_Script_s_sort_players(__yy__v1945,_inst,__yy__v1945.gmlroster,4);}};_inst.gmltouchdowns=0;_inst.gmlstarqb=false;_inst.gmlstarplayer=false;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,97).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,
_other,97).gmlroster,gmli);if((yyGetBool(gmlpmap))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlpmap,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlpmap,"condition"),0)))){{_inst.gmlstarplayer=true;if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){_inst.gmlstarqb=true;};};};}};_inst.gmlcontrol_alpha=1;_inst.gmlcheer_frame=0;_inst.gmlspr_cl1=choose(210,272);_inst.gmlspr_cl2=choose(272,208);_inst.gmlspr_cl3=choose(210,
208);_inst.gmlspr_cl4=choose(210,272);_inst.gmlspr_cl5=choose(272,208);_inst.gmlspr_cl6=choose(210,208);_inst.gmlmobbrow_start_x=0;_inst.gmlmobbrow_start_y=0;_inst.gmlmobbrow_start_time=0;gml_Script_s_set_up_button_kickoff(_inst,_other);gml_Script_s_pause_btn_init(_inst,_other);}function gml_Object_obj_controller_Alarm_0(_inst,_other){gml_Script_slog(_inst,_other,yyfplus("obj_controller_Alarm0: ",__yy_gml_errCheck(gml_Script_s_get_string_ball_state(_inst,_other))));var gmlball=global.gmlmaster_ball;
var ___sw1596___=yyInst(_inst,_other,97).gmlgamepractice;var ___swc1597___=-1;if(yyCompareVal(___sw1596___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1596___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1596___,4,g_GMLMathEpsilon,false)==0){___swc1597___=0;}switch(___swc1597___){case 0:{gml_Script_s_set_up_practice(_inst,_other);return;break;}};if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,8)))){{_inst.gmlyards=10;_inst.gmldown=1;
_inst.gmlscrimmage=(-15);gml_Script_s_start_replay(_inst,_other,0);return;};}else {if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,20)){{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=(-25);gml_Script_s_start_replay(_inst,_other,0);return;};};};var ___sw1598___=yyInst(_inst,_other,gmlball).gmlstate;var ___swc1599___=-1;if(yyCompareVal(___sw1598___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1598___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1598___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1598___,
5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1598___,6,g_GMLMathEpsilon,false)==0){___swc1599___=0;}else if(yyCompareVal(___sw1598___,9,g_GMLMathEpsilon,false)==0){___swc1599___=1;}else if(yyCompareVal(___sw1598___,10,g_GMLMathEpsilon,false)==0){___swc1599___=2;}else if(yyCompareVal(___sw1598___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1598___,8,g_GMLMathEpsilon,false)==0){___swc1599___=3;}else if(yyCompareVal(___sw1598___,7,g_GMLMathEpsilon,false)==0){___swc1599___=4;}else if(yyCompareVal(___sw1598___,
11,g_GMLMathEpsilon,false)==0){___swc1599___=5;}else if(yyCompareVal(___sw1598___,12,g_GMLMathEpsilon,false)==0){___swc1599___=6;}else if(yyCompareVal(___sw1598___,13,g_GMLMathEpsilon,false)==0){___swc1599___=7;}else if(yyCompareVal(___sw1598___,14,g_GMLMathEpsilon,false)==0){___swc1599___=8;}else if(yyCompareVal(___sw1598___,15,g_GMLMathEpsilon,false)==0){___swc1599___=9;}else if(yyCompareVal(___sw1598___,16,g_GMLMathEpsilon,false)==0){___swc1599___=10;}else if(yyCompareVal(___sw1598___,17,g_GMLMathEpsilon,
false)==0){___swc1599___=11;}else if(yyCompareVal(___sw1598___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1598___,19,g_GMLMathEpsilon,false)==0){___swc1599___=12;}switch(___swc1599___){case 0:{if((yyGetBool(yyfless(yyInst(_inst,_other,104).gmldown,6)))||(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldown,99)))){global.gmlreplay_do=true;};if((yyGetBool((yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense))))||(yyGetBool((yyGetBool(yyInst(_inst,
_other,gmlball).gmllast_touched_by))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmllast_touched_by).gmloffense))))){{gml_Script_s_start_replay(_inst,_other,1);};}else {{gml_Script_s_action_result(_inst,_other,2);};};break;}case 1:{_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],
1);global.gmlreplay_do=true;gml_Script_s_start_replay(_inst,_other,3);break;}case 2:{_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],1);gml_Script_s_start_replay(_inst,_other,4);break;}case 3:{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=yyftime(__yy_gml_errCheck(_inst.gmldrivedir),
__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),1300)),20)));gml_Script_s_start_replay(_inst,_other,0);return;};};if((yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)))){{if(yyfequal(_inst.gmldrivedir,1)){_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),
__yy_gml_errCheck(_inst.gmlx_scrim))),20));}else {_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20));};_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],1);global.gmlreplay_do=true;
gml_Script_s_start_replay(_inst,_other,3);return;};};if((yyGetBool(yyfequal(_inst.gmldrivedir,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlball).gmlxdead,_inst.gmlx_yards)))){{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),20));};}else {if((yyGetBool(yyfequal(_inst.gmldrivedir,(-1))))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlxdead,
_inst.gmlx_yards)))){{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20));};}else {if((yyGetBool(yyfequal(_inst.gmldrivedir,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlball).gmlxdead,_inst.gmlx_scrim)))){{var gmlgain=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),
20);_inst.gmlyards=yyfminus(_inst.gmlyards,gmlgain);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,gmlgain);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],1);};}else {if((yyGetBool(yyfequal(_inst.gmldrivedir,(-1))))&&(yyGetBool(yyfless(yyInst(_inst,_other,
gmlball).gmlxdead,_inst.gmlx_scrim)))){{var gmlgain=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20);_inst.gmlyards=yyfminus(_inst.gmlyards,gmlgain);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,gmlgain);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],
1);};}else {if(yyfequal(_inst.gmldrivedir,1)){{var gmlloss=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20);_inst.gmlyards=yyfplus(_inst.gmlyards,gmlloss);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,gmlloss);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],
1);};}else {{var gmlloss=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),20);_inst.gmlyards=yyfplus(_inst.gmlyards,gmlloss);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,gmlloss);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],
1);};};};};};};gml_Script_slog(_inst,_other,"Alarm[0]=BALL_DOWN");gml_Script_s_start_replay(_inst,_other,0);break;}case 4:{_inst.gmldown=yyfplus(_inst.gmldown,1);gml_Script_slog(_inst,_other,"Alarm[0]=BALL_INCOMPLETE");gml_Script_s_start_replay(_inst,_other,0);break;}case 5:{if(yyfequal(_inst.gmldrivedir,1)){{var gmlloss=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20);_inst.gmlyards=yyfplus(_inst.gmlyards,gmlloss);
_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,gmlloss);};}else {{var gmlloss=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),20);_inst.gmlyards=yyfplus(_inst.gmlyards,gmlloss);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,gmlloss);};};gml_Script_slog(_inst,_other,"Alarm[0]=BALL_SACKED");gml_Script_s_start_replay(_inst,_other,0);break;}case 6:{
gml_Script_s_start_replay(_inst,_other,8);break;}case 7:{gml_Script_s_start_replay(_inst,_other,3);break;}case 8:{gml_Script_s_start_replay(_inst,_other,6);break;}case 9:{gml_Script_s_start_replay(_inst,_other,7);break;}case 10:{gml_Script_slog(_inst,_other,"BALL_PRACTICE_SUCCESS");gml_Script_s_end_match(_inst,_other,true);break;}case 11:{break;}case 12:{break;}};}function gml_Object_obj_controller_Alarm_1(_inst,_other){_inst.gmlcomm_proceed=true;}function gml_Object_obj_controller_Step_0(_inst,_other){
(g_yyPrePostObject__=global.gmlreplay_tick,global.gmlreplay_tick=(g_yyPrePostObject__ instanceof Long?global.gmlreplay_tick.add(1):++global.gmlreplay_tick),g_yyPrePostObject__);if(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlfps_timer),100))){{_inst.gmlfps_timer=g_pBuiltIn.get_current_time();_inst.gmlmyfps=yyfplus(_inst.gmlmyfps,g_pBuiltIn.fps_real);_inst.gmlmyfps=round(yyfdivide(__yy_gml_errCheck(_inst.gmlmyfps),2));};};_inst.gmlcontrol_alpha=yyfminus(_inst.gmlcontrol_alpha,
0.01);if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,global.gmlgp_select)))){_inst.gmlcontrol_alpha=5;};if(yyfequal(_inst.gmlscored_by,1)){_inst.gmlcheer_frame=yyfplus(_inst.gmlcheer_frame,0.05);}else {_inst.gmlcheer_frame=0;};var ___sw1602___=_inst.gmlstate;var ___swc1603___=-1;if(yyCompareVal(___sw1602___,1,g_GMLMathEpsilon,false)==0){___swc1603___=0;}else if(yyCompareVal(___sw1602___,2,g_GMLMathEpsilon,false)==0){___swc1603___=1;}else if(yyCompareVal(___sw1602___,
3,g_GMLMathEpsilon,false)==0){___swc1603___=2;}switch(___swc1603___){case 0:{var gmlinp=false;{var __yy__v1946=GetWithArray(global.gmlmaster_ball);for(var __yy__v1947 in __yy__v1946){if(!__yy__v1946.hasOwnProperty(__yy__v1947))continue;var __yy__v1948=__yy__v1946[__yy__v1947];if(yyGetBool(__yy__v1948.gmlvelocity)){gmlinp=true;};}};if((yyGetBool(mouse_check_button_released(1)))||(yyGetBool(keyboard_check_pressed(38)))||(yyGetBool(keyboard_check_pressed(40)))){gmlinp=true;};if(yyGetBool(instance_exists(31))){
gmlinp=false;}else {if(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select))){gmlinp=true;};};if((yyGetBool(gmlinp))||(yyGetBool(_inst.gmlcomm_proceed))){{gml_Script_s_clear_clock(_inst,_other);gml_Script_s_update_commentary(_inst,_other);};};gml_Script_s_update_game_clock(_inst,_other);gml_Script_s_pause_step(_inst,_other);return;break;}case 1:{if(yyfequal(instance_number(110),0)){{gml_Script_slog(_inst,_other,"obj_controller:STATE_ACTION");gml_Script_s_set_up_play(_inst,
_other,false);gml_Script_s_create_head2head_message(_inst,_other);};};gml_Script_s_update_game_timer(_inst,_other);if(yyfnotequal(g_pBuiltIn.get_os_type(),21)){gml_Script_s_update_manual_gestures(_inst,_other);};if(yyGetBool(global.gmldebug)){gml_Script_s_check_ingame_control_change(_inst,_other);};break;}case 2:{gml_Script_s_replay_controls(_inst,_other);gml_Script_s_pause_step(_inst,_other);return;break;}};{var __yy__v1949=GetWithArray(global.gmlmaster_ball);for(var __yy__v1950 in __yy__v1949){if(!__yy__v1949.hasOwnProperty(__yy__v1950))continue;
var __yy__v1951=__yy__v1949[__yy__v1950];{if((yyGetBool(__yy__v1951.gmlis_dead))&&(yyGetBool(yyflessequal(_inst.alarm[__yy_gml_array_check_index(0,_inst.alarm)],0)))){{_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=100;if((yyGetBool(yyfequal(__yy__v1951.gmlstate,6)))||(yyGetBool(yyfequal(__yy__v1951.gmlstate,4)))){_inst.alarm[__yy_gml_array_check_index_set(0)]=200;};};};}}};gml_Script_s_pause_step(_inst,_other);}function gml_Object_obj_controller_Draw_64(_inst,
_other){if(yyGetBool(global.gmldebug)){{draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1);draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2),yyfminus(__yy_gml_errCheck(display_get_gui_height()),10),"DEBUG");gml_Script_draw_hd_text(_inst,_other,10,10,yyfplus("Exhibition = ",__yy_gml_errCheck(string(global.gmlexhibition))));};};if(yyfequal(_inst.gmlstate,3)){{var gmlgw=60;if(yyfequal(_inst.gmldrivedir,1)){gmlgw=display_get_gui_width();
};draw_set_font(global.gmlfnt_flex);draw_set_valign(0);draw_set_halign(1);if(yyfless(yyfmod(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),1000),500)){{draw_set_color(0);gml_Script_draw_hd_text_ext_transformed(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgw),30),8,"R",(-1),(-1),2,2,0);draw_set_color(16777215);gml_Script_draw_hd_text_ext_transformed(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgw),32),6,"R",(-1),(-1),2,2,0);};};draw_set_alpha(0.3);draw_set_halign(2);var gmlstr="";var ___sw1606___=yyInst(_inst,
_other,97).gmlop_difficulty;var ___swc1607___=-1;if(yyCompareVal(___sw1606___,0,g_GMLMathEpsilon,false)==0){___swc1607___=0;}else if(yyCompareVal(___sw1606___,1,g_GMLMathEpsilon,false)==0){___swc1607___=1;}else if(yyCompareVal(___sw1606___,2,g_GMLMathEpsilon,false)==0){___swc1607___=2;}else if(yyCompareVal(___sw1606___,3,g_GMLMathEpsilon,false)==0){___swc1607___=3;}else if(yyCompareVal(___sw1606___,4,g_GMLMathEpsilon,false)==0){___swc1607___=4;}switch(___swc1607___){case 0:{gmlstr=yyfplus("D",__yy_gml_errCheck(string(yyfminus(16,
__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(yyInst(_inst,_other,97).gmlsuppress_difficulty)))))));break;}case 1:{gmlstr=gml_Script_s_str(_inst,_other,"ui_Easy");break;}case 2:{gmlstr=gml_Script_s_str(_inst,_other,"ui_Medium");break;}case 3:{gmlstr=gml_Script_s_str(_inst,_other,"ui_Hard");break;}case 4:{gmlstr=gml_Script_s_str(_inst,_other,"ui_Extreme");break;}};{var __yy__v1952=GetWithArray(117);for(var __yy__v1953 in __yy__v1952){if(!__yy__v1952.hasOwnProperty(__yy__v1953))continue;var __yy__v1954=__yy__v1952[__yy__v1953];
if(yyfequal(__yy__v1954.gmltype,2)){draw_set_colour(16711680);};}};draw_set_font(global.gmlfnt_small_flex);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(display_get_gui_width()),10),yyfminus(__yy_gml_errCheck(display_get_gui_height()),20),gmlstr);draw_set_alpha(1);draw_set_colour(16777215);if(yyGetBool(global.gmlgamepad)){gml_Script_s_draw_gamepad_controls(_inst,_other);};return;};};gml_Script_s_draw_scoreboard(_inst,_other);gml_Script_s_draw_commentary(_inst,_other);gml_Script_s_draw_wind(_inst,
_other);if(yyGetBool(global.gmlgamepad)){gml_Script_s_draw_gamepad_controls(_inst,_other);};}function gml_Object_obj_controller_Draw_72(_inst,_other){if(!yyGetBool(global.gmlbrowser)){gml_Script_s_obj_controller_draw_begin(_inst,_other);};}function gml_Object_obj_controller_Draw_0(_inst,_other){if(yyGetBool(global.gmlbrowser)){gml_Script_s_obj_controller_draw_begin(_inst,_other);};}function gml_Object_obj_controller_KeyPress_13(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};gml_Script_s_force_quit(_inst,
_other);}function gml_Object_obj_controller_KeyPress_70(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};if(yyfequal(_inst.gmlstate,2)){{_inst.gmlscrimmage=40;gml_Script_s_set_up_fieldgoal(_inst,_other,1);};};}function gml_Object_obj_controller_KeyPress_80(_inst,_other){if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){gml_Script_s_pause_toggle(_inst,_other);};}function gml_Object_obj_controller_KeyPress_32(_inst,_other){if(!yyGetBool(global.gmldebug)){
return;};if(yyfgreater(_inst.alarm[__yy_gml_array_check_index(0,_inst.alarm)],0)){_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=1;}else {gml_Script_s_set_up_play(_inst,_other,true);};}function gml_Object_obj_controller_KeyPress_84(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};_inst.gmlminutes=0;_inst.gmlseconds=0;}function gml_Object_obj_controller_KeyPress_75(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};if(yyfequal(_inst.gmlstate,
2)){{if(yyGetBool(keyboard_check(16))){_inst.gmlpossession=!yyGetBool(_inst.gmlpossession);};_inst.gmlscrimmage=(-15);gml_Script_s_set_up_kickoff(_inst,_other);};};}function gml_Object_obj_controller_Gesture_69(_inst,_other){if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),21)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){{{var __yy__v1955=GetWithArray(global.gmlmaster_ball);for(var __yy__v1956 in __yy__v1955){if(!__yy__v1955.hasOwnProperty(__yy__v1956))continue;var __yy__v1957=__yy__v1955[__yy__v1956];
if(yyfequal(__yy__v1957.gmlstate,2)){return;};}};global.gmlflickVelX=yyfplus(global.gmlflickVelX,ds_map_find_value(g_pBuiltIn.get_event_data(),"diffX"));global.gmlflickVelY=yyfplus(global.gmlflickVelY,ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY"));};};}function gml_Object_obj_controller_Gesture_64(_inst,_other){if(yyfequal(_inst.gmlstate,3)){gml_Script_s_end_replay(_inst,_other);};}function gml_Object_obj_controller_Gesture_67(_inst,_other){if(yyfequal(_inst.gmlstate,3)){{global.gmlreplay_drag_x=yyfminus(__yy_gml_errCheck(ds_map_find_value(g_pBuiltIn.get_event_data(),
"guiposX")),__yy_gml_errCheck(ds_map_find_value(g_pBuiltIn.get_event_data(),"guistartposX")));};};}function gml_Object_obj_controller_Gesture_66(_inst,_other){if(yyfequal(_inst.gmlstate,3)){{global.gmlreplay_drag_x=0;};};}function gml_Object_obj_controller_Gesture_68(_inst,_other){if(yyfequal(_inst.gmlstate,3)){{global.gmlreplay_drag_x=0;};};}function gml_Object_obj_matchob_Create_0(_inst,_other){_inst.gmlmy_replay=ds_list_create();_inst.gmlfacing=(-1);_inst.gmlheight=0;_inst.gmlhidden=false;_inst.gmlrotation=0;
}function gml_Object_obj_matchob_CleanUp_0(_inst,_other){ds_list_clear(_inst.gmlmy_replay);ds_list_destroy(_inst.gmlmy_replay);_inst.gmlmy_replay=(-1);}function gml_Object_obj_player_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlmy_shadow=layer_sprite_create(layer_get_id("Shadows"),_inst.x,_inst.y,39);layer_sprite_blend(_inst.gmlmy_shadow,0);layer_sprite_alpha(_inst.gmlmy_shadow,0.2);layer_sprite_angle(_inst.gmlmy_shadow,0);layer_sprite_xscale(_inst.gmlmy_shadow,0.9);layer_sprite_yscale(_inst.gmlmy_shadow,
(-0.6));gml_Script_s_shader_get_uniforms(_inst,_other);_inst.gmlcleats=__yy_gml_array_check(_inst.gmlcleats,2556554615);_inst.gmlcleats[__yy_gml_array_check_index_set(0)]=0;_inst.gmlcleats[__yy_gml_array_check_index_set(1)]=0;_inst.gmlcleats[__yy_gml_array_check_index_set(2)]=0;_inst.gmlposition=0;_inst.gmlqb_rushing=false;_inst.gmlinum=0;_inst.gmloffense=false;_inst.gmlfacing=yyInst(_inst,_other,104).gmldrivedir;_inst.gmlgoalline_attack=2300;_inst.gmlgoalline_defend=300;if(yyfequal(_inst.gmlfacing,
(-1))){{_inst.gmlgoalline_attack=300;_inst.gmlgoalline_defend=2300;};};_inst.gmlgoaldist=1000;_inst.gmlremaining_dist=0;_inst.gmldead=false;_inst.gmlbouncedist=0;_inst.gmlballdist=0;_inst.gmlballdir=0;_inst.gmlcollsize=20;_inst.hspeed=0;_inst.vspeed=0;_inst.gmljforce=0;_inst.gmljdir=0;_inst.gmldes_x=0;_inst.gmldes_y=0;_inst.gmlz=0;_inst.gmlzvel=0;_inst.gmlrandyards=irandom_range((-10),10);_inst.gmlrewarded_route=false;_inst.gmlmy_route_name="";_inst.gmlmy_route=(-4);_inst.gmlmy_route_point=0;_inst.gmlmy_route_startx=0;
_inst.gmlmy_route_starty=0;_inst.gmlmy_route_alpha=2;_inst.gmlmy_route_end_dir=999;_inst.gmlte_blocking=false;_inst.gmlanim=0;gml_Script_s_set_anim(_inst,_other,0);_inst.gmlmy_accel=0.065;_inst.gmlmy_kick_skill=1;_inst.gmlmy_kick_power=0.065;_inst.gmlmy_throw_power=0.08;_inst.gmlmy_sidestep=2.1;_inst.gmlstrength=1;_inst.gmlskill=1;_inst.gmlstamina=1;_inst.gmltackling=(-4);_inst.gmltacklecount=0;_inst.gmlmy_tackle_limit=20;_inst.gmldone_tackle=false;_inst.gmllast_tackled=(-4);_inst.gmltackle_time=0;
_inst.gmlstiff_arm=0;_inst.gmljumps=0;_inst.gmlintheclear=false;_inst.gmlmin_x=(-1);_inst.gmlmax_x=(-1);_inst.image_xscale=2;_inst.image_yscale=2;_inst.gmlpmap=(-4);_inst.gmlpos_name="";_inst.gmlpos_name2="";_inst.gmlpos_name3="";_inst.gmlstep_tick=0;_inst.gmlnearest_opp=(-4);_inst.gmlnearest_opp_dist=1000;_inst.gmlhspeed_previous=_inst.hspeed;_inst.gmlvspeed_previous=_inst.vspeed;_inst.gmlimage_speed_previous=_inst.image_speed;}function gml_Object_obj_player_Destroy_0(_inst,_other){if(yyGetBool(path_exists(_inst.gmlmy_route))){
path_delete(_inst.gmlmy_route);};}function gml_Object_obj_player_Step_0(_inst,_other){if(yyGetBool(_inst.gmldead)){return;};if(yyfnotequal(yyInst(_inst,_other,104).gmlstate,2)){return;};var gmlball=global.gmlmaster_ball;_inst.gmlballdist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);if(yyGetBool(yyInst(_inst,_other,gmlball).gmlis_dead)){{gml_Script_s_stop_tackling(_inst,_other);return;};};_inst.gmlintheclear=gml_Script_s_is_in_the_clear(_inst,_other);
_inst.gmlbouncedist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,111).gmlbounce_x,yyInst(_inst,_other,111).gmlbounce_y);_inst.gmlballdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);_inst.gmlgoaldist=abs(yyfminus(__yy_gml_errCheck(_inst.gmlgoalline_attack),__yy_gml_errCheck(_inst.x)));if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,1)){_inst.gmlremaining_dist=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_yards),__yy_gml_errCheck(_inst.x));
}else {_inst.gmlremaining_dist=yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyInst(_inst,_other,104).gmlx_yards));};(g_yyPrePostObject__=_inst.gmlstep_tick,_inst.gmlstep_tick=(g_yyPrePostObject__ instanceof Long?_inst.gmlstep_tick.add(1):++_inst.gmlstep_tick),g_yyPrePostObject__);if(yyfequal(_inst.gmlstep_tick,2)){{_inst.gmlnearest_opp=gml_Script_s_get_nearest_opponent(_inst,_other,_inst.id);_inst.gmlnearest_opp_dist=1000;if(yyGetBool(_inst.gmlnearest_opp)){_inst.gmlnearest_opp_dist=point_distance(_inst.x,
_inst.y,yyInst(_inst,_other,_inst.gmlnearest_opp).x,yyInst(_inst,_other,_inst.gmlnearest_opp).y);};_inst.gmlstep_tick=0;};};_inst.gmljdir=0;if(yyfequal(_inst.gmlfacing,(-1))){_inst.gmljdir=180;};if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,0)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,1)))){_inst.gmlmy_route_alpha=0;};if(yyGetBool(_inst.gmloffense)){gml_Script_s_check_human_control(_inst,_other);};gml_Script_s_get_destination(_inst,_other);gml_Script_s_check_tackling(_inst,
_other);gml_Script_s_check_dive(_inst,_other);}function gml_Object_obj_player_Step_2(_inst,_other){var gmlball=global.gmlmaster_ball;var gmlcont=104;if(yyfnotequal(yyInst(_inst,_other,gmlcont).gmlstate,2)){return;};gml_Script_s_check_ball_collision(_inst,_other);if(yyfless(_inst.y,117)){_inst.y=117;};var gmlgl=_inst.gmlgoalline_attack;if(!yyGetBool(_inst.gmloffense)){gmlgl=_inst.gmlgoalline_defend;};if(yyfless(_inst.y,152)){{_inst.gmlmy_route_end_dir=point_direction(_inst.x,_inst.y,gmlgl,152);};};if(yyfgreater(_inst.y,
448)){{_inst.gmlmy_route_end_dir=point_direction(_inst.x,_inst.y,gmlgl,448);};};if(yyfless(_inst.y,132)){{_inst.gmljdir=point_direction(_inst.x,_inst.y,_inst.x,300);};};if(yyfgreater(_inst.y,468)){{_inst.gmljdir=point_direction(_inst.x,_inst.y,_inst.x,300);};};if((yyGetBool(_inst.gmloffense))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))){_inst.gmljdir=point_direction(_inst.x,_inst.y,(yyfequal(yyInst(_inst,
_other,104).gmldrivedir,1)?2510:90),_inst.y);};if((yyGetBool((yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))))&&(yyGetBool((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,3)))||(yyGetBool(yyfgreater(_inst.gmlbouncedist,400)))))){{if((yyGetBool(yyfless(_inst.x,195)))||(yyGetBool(yyfgreater(_inst.x,2405)))){{var gmlcelebrate=false;if((yyGetBool(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,104).gmltd_time),750))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfnotequal(_inst.gmlanim,16)))&&(yyGetBool(yyfnotequal(_inst.gmlanim,17)))){{gmlcelebrate=true;{var __yy__v1958=GetWithArray(104);for(var __yy__v1959 in __yy__v1958){if(!__yy__v1958.hasOwnProperty(__yy__v1959))continue;var __yy__v1960=__yy__v1958[__yy__v1959];{if(yyfequal(__yy__v1960.gmldown,6)){{gmlcelebrate=false;if((yyGetBool(gml_Script_s_last_secs_of_half(__yy__v1960,
_inst,20)))&&(yyGetBool(yyfless(__yy__v1960.gmlteam_score[__yy_gml_array_check_index(__yy__v1960.gmlhuman_team,__yy__v1960.gmlteam_score)],__yy__v1960.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1960.gmlhuman_team)?1:0,__yy__v1960.gmlteam_score)])))&&(yyGetBool(yyfgreaterequal(yyfplus(__yy_gml_errCheck(__yy__v1960.gmlteam_score[__yy_gml_array_check_index(__yy__v1960.gmlhuman_team,__yy__v1960.gmlteam_score)]),2),__yy__v1960.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1960.gmlhuman_team)?1:0,
__yy__v1960.gmlteam_score)])))){gmlcelebrate=true;};};};}}};};};if(yyGetBool(gmlcelebrate)){{gml_Script_s_set_anim(_inst,_other,16);_inst.gmljforce=0;};}else {if((yyGetBool(!yyGetBool(path_exists(_inst.gmlmy_route))))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,5)))){{_inst.gmljforce=0.1;};};};};};if((yyGetBool(yyfless(_inst.x,142.5)))||(yyGetBool(yyfgreater(_inst.x,2457.5)))){{if(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,5)){_inst.gmljforce=0;};};};};};var ___sw1620___=_inst.gmlanim;
var ___swc1621___=-1;if(yyCompareVal(___sw1620___,4,g_GMLMathEpsilon,false)==0){___swc1621___=0;}else if(yyCompareVal(___sw1620___,5,g_GMLMathEpsilon,false)==0){___swc1621___=1;}else if(yyCompareVal(___sw1620___,6,g_GMLMathEpsilon,false)==0){___swc1621___=2;}else if(yyCompareVal(___sw1620___,7,g_GMLMathEpsilon,false)==0){___swc1621___=3;}else if(yyCompareVal(___sw1620___,10,g_GMLMathEpsilon,false)==0){___swc1621___=4;}else if(yyCompareVal(___sw1620___,11,g_GMLMathEpsilon,false)==0){___swc1621___=5;}else if(yyCompareVal(___sw1620___,
12,g_GMLMathEpsilon,false)==0){___swc1621___=6;}else if(yyCompareVal(___sw1620___,19,g_GMLMathEpsilon,false)==0){___swc1621___=7;}switch(___swc1621___){case 0:{_inst.gmljforce=0;break;}case 1:{_inst.gmljforce=0;break;}case 2:{_inst.gmljforce=0;break;}case 3:{_inst.gmljforce=0;break;}case 4:{_inst.gmljforce=0;break;}case 5:{_inst.gmljforce=0;break;}case 6:{_inst.gmljforce=0;break;}case 7:{_inst.gmljforce=0;break;}};if(yyGetBool(_inst.gmldead)){_inst.gmljforce=0;};if((yyGetBool(yyfequal(_inst.gmlposition,2)))&&(yyGetBool(yyfequal(yyInst(_inst,
_other,gmlball).gmlstate,19)))&&(yyGetBool(yyfequal(_inst.gmljforce,1)))){_inst.gmljforce=0.5;};if(yyGetBool(yyInst(_inst,_other,gmlball).gmlis_dead)){{if(!yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6))))){_inst.gmljforce=0;};};};if(yyfnotequal(_inst.gmlanim,3)){{var gmlveffect=0.75;_inst.hspeed=yyfplus(_inst.hspeed,yyftime(yyftime(__yy_gml_errCheck(dcos(_inst.gmljdir)),__yy_gml_errCheck(_inst.gmljforce)),
__yy_gml_errCheck(_inst.gmlmy_accel)));_inst.vspeed=yyfplus(_inst.vspeed,yyftime(yyftime(yyftime(__yy_gml_errCheck(dsin(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmljdir)))),__yy_gml_errCheck(_inst.gmljforce)),__yy_gml_errCheck(_inst.gmlmy_accel)),__yy_gml_errCheck(gmlveffect)));};};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,5)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,9)))||(yyGetBool(yyfequal(yyInst(_inst,
_other,gmlball).gmlstate,10)))))){{var gmlbx=yyInst(_inst,_other,gmlball).x;if(yyfequal(_inst.gmlmin_x,(-1))){_inst.gmlmin_x=gmlbx;}else {if((yyGetBool(yyfless(_inst.hspeed,0)))&&(yyGetBool(yyfless(gmlbx,_inst.gmlmin_x)))){_inst.gmlmin_x=gmlbx;};};if(yyfequal(_inst.gmlmax_x,(-1))){_inst.gmlmax_x=gmlbx;}else {if((yyGetBool(yyfgreater(_inst.hspeed,0)))&&(yyGetBool(yyfgreater(gmlbx,_inst.gmlmax_x)))){_inst.gmlmax_x=gmlbx;};};};};if(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)){{if((yyGetBool(yyfequal(yyInst(_inst,
_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(_inst.gmlanim,2)))&&(yyGetBool(yyfgreater(_inst.gmlmy_accel,0.060125000000000005)))){{var gmldecel=0.9999;var gmlstam=yyfminus(11,__yy_gml_errCheck(_inst.gmlstamina));gmldecel=yyfminus(gmldecel,yyftime(__yy_gml_errCheck(gmlstam),5E-05));_inst.gmlmy_accel=yyftime(_inst.gmlmy_accel,gmldecel);};};};};_inst.hspeed=yyftime(_inst.hspeed,0.94);_inst.vspeed=yyftime(_inst.vspeed,0.94);if(yyGetBool(_inst.gmldead)){{var gmlgetup=2500;if(!yyGetBool(_inst.gmloffense)){
gmlgetup=yyfminus(2500,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlteam_defense[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,gmlcont).gmlhuman_team)?1:0,yyInst(_inst,_other,gmlcont).gmlteam_defense)]),100)));}else {if(yyfgreater(yyInst(_inst,_other,104).gmldifficulty,5)){gmlgetup=1000;}else {if(yyGetBool(_inst.gmlpmap)){gmlgetup=yyfminus(gmlgetup,yyftime(__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"stamina")),100));}else {gmlgetup=yyfminus(gmlgetup,
yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,_other,gmlcont).gmlhuman_team,yyInst(_inst,_other,gmlcont).gmlteam_offense)]),100));};};};if(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmldead),__yy_gml_errCheck(gmlgetup)))){{_inst.gmldead=0;_inst.gmltacklecount=0;var gmldoanim=true;if((yyGetBool(!yyGetBool(_inst.gmlpmap)))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))){gmldoanim=false;
};if((yyGetBool(yyfnotequal(_inst.gmlanim,5)))&&(yyGetBool(yyfnotequal(_inst.gmlanim,4)))){gmldoanim=false;};if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldrivedir,1)))&&(yyGetBool((yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlxdead,yyInst(_inst,_other,104).gmlx_yards)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlball).gmlxdead,2000)))))){gmldoanim=false;};if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))))&&(yyGetBool((yyGetBool(yyfgreater(yyInst(_inst,_other,gmlball).gmlxdead,
yyInst(_inst,_other,104).gmlx_yards)))||(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlxdead,600)))))){gmldoanim=false;};if(yyfgreater(yyfdivide(__yy_gml_errCheck(abs(yyInst(_inst,_other,gmlball).gmlxdead)),20),600)){gmldoanim=false;};if(!yyGetBool(irandom(1))){gmldoanim=false;};if(yyGetBool(gmldoanim)){gml_Script_s_set_anim(_inst,_other,18);}else {gml_Script_s_set_anim(_inst,_other,6);};};};};}else {{if(yyfgreater(_inst.hspeed,0.1)){_inst.image_xscale=2;}else {if(yyfless(_inst.hspeed,(-0.1))){
_inst.image_xscale=(-2);}else {if((yyGetBool(yyfnotequal(_inst.gmlanim,5)))&&(yyGetBool(yyfnotequal(_inst.gmlanim,4)))){_inst.image_xscale=yyftime(__yy_gml_errCheck(_inst.gmlfacing),2);};};};if((yyGetBool(yyfequal(_inst.gmlposition,1)))&&(yyGetBool(path_exists(_inst.gmlmy_route)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,19)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))){_inst.image_xscale=yyftime(__yy_gml_errCheck(_inst.gmlfacing),2);};var ___sw1622___=_inst.gmlanim;
var ___swc1623___=-1;if(yyCompareVal(___sw1622___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,1,g_GMLMathEpsilon,false)==0){___swc1623___=0;}else if(yyCompareVal(___sw1622___,2,g_GMLMathEpsilon,false)==0){___swc1623___=1;}else if(yyCompareVal(___sw1622___,3,g_GMLMathEpsilon,false)==0){___swc1623___=2;}else if(yyCompareVal(___sw1622___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,
7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,19,g_GMLMathEpsilon,false)==0){___swc1623___=3;}else if(yyCompareVal(___sw1622___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,12,g_GMLMathEpsilon,false)==0){___swc1623___=4;}switch(___swc1623___){case 0:{if(yyfgreaterequal(_inst.speed,0.1)){gml_Script_s_set_anim(_inst,
_other,2);};break;}case 1:{_inst.image_speed=min(_inst.speed,1);if(yyfless(_inst.speed,0.1)){gml_Script_s_set_anim(_inst,_other,0);};break;}case 2:{if(yyGetBool(_inst.gmltackling)){{_inst.image_xscale=2;if(yyfless(yyInst(_inst,_other,_inst.gmltackling).x,_inst.x)){_inst.image_xscale=(-2);};};};break;}case 3:{break;}case 4:{_inst.image_xscale=2;if(yyfless(yyInst(_inst,_other,111).gmlbounce_x,_inst.x)){_inst.image_xscale=(-2);};break;}};};};_inst.depth=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),
10)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlrandyards),0.1)));if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if((yyGetBool(yyfequal(_inst.gmlposition,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,2)))){{if(yyGetBool(path_exists(_inst.gmlmy_route))){{_inst.sprite_index=34;_inst.image_xscale=2;if(yyfequal(_inst.gmlfacing,(-1))){_inst.image_xscale=(-2);};};};};}else {if(yyfless(_inst.gmlballdist,10)){{var ___sw1624___=_inst.sprite_index;var ___swc1625___=-1;
if(yyCompareVal(___sw1624___,39,g_GMLMathEpsilon,false)==0){___swc1625___=0;}else if(yyCompareVal(___sw1624___,47,g_GMLMathEpsilon,false)==0){___swc1625___=1;}else if(yyCompareVal(___sw1624___,58,g_GMLMathEpsilon,false)==0){___swc1625___=2;}switch(___swc1625___){case 0:{_inst.sprite_index=40;break;}case 1:{_inst.sprite_index=48;break;}case 2:{_inst.sprite_index=59;break;}};};};};};}else {{var ___sw1626___=_inst.sprite_index;var ___swc1627___=-1;if(yyCompareVal(___sw1626___,40,g_GMLMathEpsilon,false)==0){
___swc1627___=0;}else if(yyCompareVal(___sw1626___,41,g_GMLMathEpsilon,false)==0){___swc1627___=1;}else if(yyCompareVal(___sw1626___,48,g_GMLMathEpsilon,false)==0){___swc1627___=2;}else if(yyCompareVal(___sw1626___,49,g_GMLMathEpsilon,false)==0){___swc1627___=3;}else if(yyCompareVal(___sw1626___,59,g_GMLMathEpsilon,false)==0){___swc1627___=4;}else if(yyCompareVal(___sw1626___,60,g_GMLMathEpsilon,false)==0){___swc1627___=5;}else if(yyCompareVal(___sw1626___,56,g_GMLMathEpsilon,false)==0){___swc1627___=6;
}else if(yyCompareVal(___sw1626___,57,g_GMLMathEpsilon,false)==0){___swc1627___=7;}switch(___swc1627___){case 0:{_inst.sprite_index=39;break;}case 1:{_inst.sprite_index=39;break;}case 2:{_inst.sprite_index=47;break;}case 3:{_inst.sprite_index=47;break;}case 4:{_inst.sprite_index=58;break;}case 5:{_inst.sprite_index=58;break;}case 6:{_inst.sprite_index=54;break;}case 7:{_inst.sprite_index=54;break;}};};};var ___sw1628___=yyInst(_inst,_other,97).gmlop_ball;var ___swc1629___=-1;if(yyCompareVal(___sw1628___,2,
g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1628___,5,g_GMLMathEpsilon,false)==0){___swc1629___=0;}switch(___swc1629___){case 0:{var ___sw1630___=_inst.sprite_index;var ___swc1631___=-1;if(yyCompareVal(___sw1630___,32,g_GMLMathEpsilon,false)==0){___swc1631___=0;}else if(yyCompareVal(___sw1630___,40,g_GMLMathEpsilon,false)==0){___swc1631___=1;}else if(yyCompareVal(___sw1630___,43,g_GMLMathEpsilon,false)==0){___swc1631___=2;}else if(yyCompareVal(___sw1630___,50,g_GMLMathEpsilon,false)==0){___swc1631___=3;
}else if(yyCompareVal(___sw1630___,48,g_GMLMathEpsilon,false)==0){___swc1631___=4;}else if(yyCompareVal(___sw1630___,59,g_GMLMathEpsilon,false)==0){___swc1631___=5;}else if(yyCompareVal(___sw1630___,45,g_GMLMathEpsilon,false)==0){___swc1631___=6;}else if(yyCompareVal(___sw1630___,64,g_GMLMathEpsilon,false)==0){___swc1631___=7;}else if(yyCompareVal(___sw1630___,56,g_GMLMathEpsilon,false)==0){___swc1631___=8;}switch(___swc1631___){case 0:{_inst.sprite_index=33;break;}case 1:{_inst.sprite_index=41;break;}
case 2:{_inst.sprite_index=44;break;}case 3:{_inst.sprite_index=51;break;}case 4:{_inst.sprite_index=49;break;}case 5:{_inst.sprite_index=60;break;}case 6:{_inst.sprite_index=46;break;}case 7:{_inst.sprite_index=66;break;}case 8:{_inst.sprite_index=57;break;}};break;}default :{break;}};if(yyfequal(_inst.sprite_index,36)){_inst.image_index=yyInst(_inst,_other,97).gmlop_ball;};gml_Script_s_update_my_shadow(_inst,_other);if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlstate,2)))&&(yyGetBool(yyfnotequal(yyInst(_inst,
_other,global.gmlmaster_ball).gmlstate,0)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(global.gmlreplay_tick),4),0)))){gml_Script_s_record_frame(_inst,_other);};}function gml_Object_obj_player_Other_7(_inst,_other){var ___sw1634___=_inst.gmlanim;var ___swc1635___=-1;if(yyCompareVal(___sw1634___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1634___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1634___,2,g_GMLMathEpsilon,false)==0){___swc1635___=0;}else if(yyCompareVal(___sw1634___,3,g_GMLMathEpsilon,
false)==0){___swc1635___=1;}else if(yyCompareVal(___sw1634___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1634___,5,g_GMLMathEpsilon,false)==0){___swc1635___=2;}else if(yyCompareVal(___sw1634___,6,g_GMLMathEpsilon,false)==0){___swc1635___=3;}else if(yyCompareVal(___sw1634___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1634___,12,g_GMLMathEpsilon,false)==0){___swc1635___=4;}else if(yyCompareVal(___sw1634___,8,g_GMLMathEpsilon,false)==0){___swc1635___=5;}else if(yyCompareVal(___sw1634___,9,g_GMLMathEpsilon,
false)==0){___swc1635___=6;}else if(yyCompareVal(___sw1634___,10,g_GMLMathEpsilon,false)==0){___swc1635___=7;}else if(yyCompareVal(___sw1634___,11,g_GMLMathEpsilon,false)==0){___swc1635___=8;}else if(yyCompareVal(___sw1634___,13,g_GMLMathEpsilon,false)==0){___swc1635___=9;}else if(yyCompareVal(___sw1634___,14,g_GMLMathEpsilon,false)==0){___swc1635___=10;}else if(yyCompareVal(___sw1634___,15,g_GMLMathEpsilon,false)==0){___swc1635___=11;}else if(yyCompareVal(___sw1634___,16,g_GMLMathEpsilon,false)==0){___swc1635___=12;
}else if(yyCompareVal(___sw1634___,17,g_GMLMathEpsilon,false)==0){___swc1635___=13;}else if(yyCompareVal(___sw1634___,18,g_GMLMathEpsilon,false)==0){___swc1635___=14;}else if(yyCompareVal(___sw1634___,19,g_GMLMathEpsilon,false)==0){___swc1635___=15;}switch(___swc1635___){case 0:{break;}case 1:{if((yyGetBool(yyfequal(_inst.gmltackling,(-4))))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,_inst.gmltackling).gmlanim,3)))){gml_Script_s_set_anim(_inst,_other,0);};break;}case 2:{_inst.gmldead=g_pBuiltIn.get_current_time();
_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),1);break;}case 3:{gml_Script_s_set_anim(_inst,_other,0);break;}case 4:{gml_Script_s_set_anim(_inst,_other,0);break;}case 5:{gml_Script_s_set_anim(_inst,_other,2);break;}case 6:{gml_Script_s_set_anim(_inst,_other,2);break;}case 7:{gml_Script_s_set_anim(_inst,_other,2);break;}case 8:{break;}case 9:{break;}case 10:{_inst.hspeed=0;_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),1);break;
}case 11:{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gml_Script_s_set_anim(_inst,_other,2);break;};};_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),1);break;}case 12:{gml_Script_s_spike_ball(_inst,_other);gml_Script_s_set_anim(_inst,_other,0);break;}case 13:{break;}case 14:{_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),1);break;}case 15:{_inst.gmldead=g_pBuiltIn.get_current_time();_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),
1);break;}};}function gml_Object_obj_player_Draw_0(_inst,_other){if(yyGetBool(global.gmlbrowser)){gml_Script_s_obj_player_draw_begin(_inst,_other);};var gmlball=global.gmlmaster_ball;if(yyfequal(yyInst(_inst,_other,104).gmlstate,3)){{gml_Script_s_shader_set_uniforms(_inst,_other);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),_inst.image_xscale,_inst.image_yscale,0,16777215,1);shader_reset();return;};};if((yyGetBool(_inst.gmlpmap))&&(yyGetBool(yyfnotequal(yyInst(_inst,
_other,104).gmlstate,10)))){{var gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200))),1)),2);var gmlcol=65535;if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,0)))&&(yyGetBool(yyfequal(_inst.sprite_index,31)))){{draw_sprite_ext(_inst,30,_inst.image_index,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),_inst.image_xscale,_inst.image_yscale,0,gmlcol,gmla);draw_sprite_ext(_inst,75,0,_inst.x,
yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),__yy_gml_errCheck(_inst.sprite_height)),6),_inst.image_xscale,_inst.image_yscale,0,gmlcol,gmla);if(yyfnotequal(_inst.gmlpos_name3,"")){gml_Script_draw_hd_text_transformed_color(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(yyInst(_inst,_other,104).gmldrivedir)))),yyfminus(__yy_gml_errCheck(_inst.y),15),_inst.gmlpos_name3,1.5,1.5,0,0,0,0,0,1);};};}else {if((yyGetBool(yyfequal(yyInst(_inst,
_other,gmlball).gmlstate,0)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,2)))||(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,5)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))))){{draw_sprite_ext(_inst,75,0,_inst.x,yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),__yy_gml_errCheck(_inst.sprite_height)),6),_inst.image_xscale,_inst.image_yscale,0,gmlcol,gmla);};};};};};gml_Script_s_shader_set_uniforms(_inst,
_other);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),_inst.image_xscale,_inst.image_yscale,0,16777215,1);shader_reset();}function gml_Object_obj_player_Draw_72(_inst,_other){if(!yyGetBool(global.gmlbrowser)){gml_Script_s_obj_player_draw_begin(_inst,_other);};}function gml_Object_obj_playerOF_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlinum=instance_number(107);_inst.image_xscale=yyftime(__yy_gml_errCheck(_inst.gmlfacing),
2);_inst.gmloffense=true;var gmlindex=yyInst(_inst,_other,104).gmlpossession;if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,0))){gmlindex=!yyGetBool(gmlindex);};var ___sw1640___=gmlindex;var ___swc1641___=-1;if(yyCompareVal(___sw1640___,0,g_GMLMathEpsilon,false)==0){___swc1641___=0;}else if(yyCompareVal(___sw1640___,1,g_GMLMathEpsilon,false)==0){___swc1641___=1;}switch(___swc1641___){case 0:{_inst.gmlhelmet=yyInst(_inst,_other,97).gmlcol_helmet_away;_inst.gmllogo=yyInst(_inst,_other,97).gmlcol_logo_away;
_inst.gmlshirt=yyInst(_inst,_other,97).gmlcol_shirt_away;_inst.gmlsleeve=yyInst(_inst,_other,97).gmlcol_sleeve_away;_inst.gmlpants=yyInst(_inst,_other,97).gmlcol_pants_away;_inst.gmlpants_b=yyInst(_inst,_other,97).gmlcol_pants_away_b;_inst.gmlstripe=yyInst(_inst,_other,97).gmlcol_stripe_away;_inst.gmlsocks1=yyInst(_inst,_other,97).gmlcol_socks1_away;_inst.gmlsocks2=yyInst(_inst,_other,97).gmlcol_socks2_away;break;}case 1:{_inst.gmlhelmet=yyInst(_inst,_other,97).gmlcol_helmet_home;_inst.gmllogo=yyInst(_inst,
_other,97).gmlcol_logo_home;_inst.gmlshirt=yyInst(_inst,_other,97).gmlcol_shirt_home;_inst.gmlsleeve=yyInst(_inst,_other,97).gmlcol_sleeve_home;_inst.gmlpants=yyInst(_inst,_other,97).gmlcol_pants_home;_inst.gmlpants_b=yyInst(_inst,_other,97).gmlcol_pants_home_b;_inst.gmlstripe=yyInst(_inst,_other,97).gmlcol_stripe_home;_inst.gmlsocks1=yyInst(_inst,_other,97).gmlcol_socks1_home;_inst.gmlsocks2=yyInst(_inst,_other,97).gmlcol_socks2_home;break;}};var ___sw1642___=yyInst(_inst,_other,104).gmlkicking;
var ___swc1643___=-1;if(yyCompareVal(___sw1642___,0,g_GMLMathEpsilon,false)==0){___swc1643___=0;}else if(yyCompareVal(___sw1642___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1642___,2,g_GMLMathEpsilon,false)==0){___swc1643___=1;}else if(yyCompareVal(___sw1642___,3,g_GMLMathEpsilon,false)==0){___swc1643___=2;}switch(___swc1643___){case 0:{gml_Script_s_set_position_offense(_inst,_other);break;}case 1:{gml_Script_s_set_position_offense_fg(_inst,_other);break;}case 2:{gml_Script_s_set_position_return_ko(_inst,
_other);break;}};}function gml_Object_obj_playerDF_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlinum=instance_number(108);_inst.gmlfacing=__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst,_other,104).gmldrivedir));_inst.gmlgoalline_attack=300;_inst.gmlgoalline_defend=2300;if(yyfequal(_inst.gmlfacing,(-1))){{_inst.gmlgoalline_attack=300;_inst.gmlgoalline_defend=2300;};};_inst.image_xscale=yyftime(__yy_gml_errCheck(_inst.gmlfacing),2);var gmlindex=yyInst(_inst,_other,104).gmlpossession;
if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,0))){gmlindex=!yyGetBool(gmlindex);};var ___sw1648___=gmlindex;var ___swc1649___=-1;if(yyCompareVal(___sw1648___,0,g_GMLMathEpsilon,false)==0){___swc1649___=0;}else if(yyCompareVal(___sw1648___,1,g_GMLMathEpsilon,false)==0){___swc1649___=1;}switch(___swc1649___){case 0:{_inst.gmlhelmet=yyInst(_inst,_other,97).gmlcol_helmet_home;_inst.gmllogo=yyInst(_inst,_other,97).gmlcol_logo_home;_inst.gmlshirt=yyInst(_inst,_other,97).gmlcol_shirt_home;_inst.gmlsleeve=yyInst(_inst,
_other,97).gmlcol_sleeve_home;_inst.gmlpants=yyInst(_inst,_other,97).gmlcol_pants_home;_inst.gmlpants_b=yyInst(_inst,_other,97).gmlcol_pants_home_b;_inst.gmlstripe=yyInst(_inst,_other,97).gmlcol_stripe_home;_inst.gmlsocks1=yyInst(_inst,_other,97).gmlcol_socks1_home;_inst.gmlsocks2=yyInst(_inst,_other,97).gmlcol_socks2_home;break;}case 1:{_inst.gmlhelmet=yyInst(_inst,_other,97).gmlcol_helmet_away;_inst.gmllogo=yyInst(_inst,_other,97).gmlcol_logo_away;_inst.gmlshirt=yyInst(_inst,_other,97).gmlcol_shirt_away;
_inst.gmlsleeve=yyInst(_inst,_other,97).gmlcol_sleeve_away;_inst.gmlpants=yyInst(_inst,_other,97).gmlcol_pants_away;_inst.gmlpants_b=yyInst(_inst,_other,97).gmlcol_pants_away_b;_inst.gmlstripe=yyInst(_inst,_other,97).gmlcol_stripe_away;_inst.gmlsocks1=yyInst(_inst,_other,97).gmlcol_socks1_away;_inst.gmlsocks2=yyInst(_inst,_other,97).gmlcol_socks2_away;break;}};var ___sw1650___=yyInst(_inst,_other,104).gmlkicking;var ___swc1651___=-1;if(yyCompareVal(___sw1650___,0,g_GMLMathEpsilon,false)==0){___swc1651___=0;
}else if(yyCompareVal(___sw1650___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1650___,2,g_GMLMathEpsilon,false)==0){___swc1651___=1;}else if(yyCompareVal(___sw1650___,3,g_GMLMathEpsilon,false)==0){___swc1651___=2;}switch(___swc1651___){case 0:{gml_Script_s_set_position_defense(_inst,_other);break;}case 1:{gml_Script_s_set_position_defense_fg(_inst,_other);break;}case 2:{gml_Script_s_set_position_take_ko(_inst,_other);}};}function gml_Object_obj_dummy_Step_0(_inst,_other){if(yyfless(g_pBuiltIn.get_current_time(),
_inst.gmlpause_time)){return;};if(yyGetBool(abs(_inst.gmlrange_x))){{_inst.x=yyfplus(_inst.x,_inst.gmlmove_speed);if((yyGetBool(yyfgreater(_inst.x,yyfplus(__yy_gml_errCheck(_inst.gmlstart_x),__yy_gml_errCheck(_inst.gmlrange_x)))))||(yyGetBool(yyfless(_inst.x,yyfminus(__yy_gml_errCheck(_inst.gmlstart_x),__yy_gml_errCheck(_inst.gmlrange_x)))))){{_inst.gmlmove_speed=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlmove_speed));_inst.gmlpause_time=yyfplus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
__yy_gml_errCheck(_inst.gmledge_pause));};};};};if(yyGetBool(abs(_inst.gmlrange_y))){{_inst.y=yyfplus(_inst.y,_inst.gmlmove_speed);if((yyGetBool(yyfgreater(_inst.y,yyfplus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(_inst.gmlrange_y)))))||(yyGetBool(yyfless(_inst.y,yyfminus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(_inst.gmlrange_y)))))){{if(yyGetBool(_inst.gmldead)){_inst.gmlmove_speed=0;};_inst.gmlmove_speed=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlmove_speed));_inst.gmlpause_time=yyfplus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
__yy_gml_errCheck(_inst.gmledge_pause));};};};};_inst.depth=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),10);}function gml_Object_obj_dummy_Draw_0(_inst,_other){draw_sprite_ext(_inst,15,1,_inst.x,_inst.y,2,2,0,16777215,1);}function gml_Object_obj_dummy_Draw_72(_inst,_other){var gmlc=32768;var gmlw=5;var gmlrx=_inst.gmlrange_x;var gmlry=_inst.gmlrange_y;draw_set_alpha(0.5);if(yyGetBool(gmlrx)){draw_rectangle_colour(yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlrx)),
yyfminus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(gmlw)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlrx)),yyfplus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(gmlw)),gmlc,gmlc,gmlc,gmlc,0);}else {if(yyGetBool(gmlry)){draw_rectangle_colour(yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),yyfminus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(gmlry)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),yyfplus(__yy_gml_errCheck(_inst.gmlstart_y),
__yy_gml_errCheck(gmlry)),gmlc,gmlc,gmlc,gmlc,0);};};draw_set_alpha(1);if(yyfequal(yyInst(_inst,_other,97).gmlgamepractice,3)){{if(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)){draw_sprite_ext(_inst,74,0,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),32),2,2,0,65280,1);};};};}function gml_Object_obj_dummy_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstart_x=0;_inst.gmlstart_y=0;_inst.gmlmove_speed=0;_inst.gmlrange_x=0;_inst.gmlrange_y=0;_inst.gmledge_pause=0;
_inst.gmlpause_time=0;_inst.gmldead=false;}function gml_Object_obj_dummy_Collision_obj_player(_inst,_other){if(yyfless(distance_to_object(_inst,_other),10)){{_inst.gmldead=true;if(yyfnotequal(_other.gmlanim,4)){gml_Script_s_set_anim(_other,_inst,4);};;};};}function gml_Object_obj_ball_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstate=0;_inst.gmlholder=gml_Script_s_get_quarterback(_inst,_other);_inst.gmllast_touched_by=(-4);_inst.x=yyInst(_inst,_other,_inst.gmlholder).x;_inst.y=yyInst(_inst,
_other,_inst.gmlholder).y;_inst.gmlxtouch=0;_inst.gmlytouch=0;_inst.gmltouch_starty=250;_inst.gmldragdist=0;_inst.gmldragx=0;_inst.gmldragy=0;_inst.gmlxthrow=0;_inst.gmlythrow=0;_inst.gmlis_dead=false;_inst.gmlxdead=0;_inst.gmlydead=0;_inst.gmlheight=1;_inst.gmllastheight=_inst.gmlheight;_inst.gmllast_x=0;_inst.gmllast_y=0;_inst.gmlxreceived=0;_inst.gmlyreceived=0;_inst.gmlbullet_throw=0;_inst.gmlbullet_throw_hold=false;_inst.gmldirec=0;if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))){_inst.gmldirec=180;
};_inst.gmlvelocity=0;_inst.gmlzvel=0;_inst.gmlroll=0;_inst.gmlrotation=0;_inst.gmlbouncecount=0;_inst.gmldropped_time=0;_inst.gmlfumble_time=0;_inst.gmlgoaldirec=0;_inst.gmlkickflip=1;_inst.gmlkickpow=0;_inst.gmlkicky=yyfplus(300,__yy_gml_errCheck(irandom_range((-100),100)));_inst.gmlkickx=2510;_inst.gmlcpu_kickpow=irandom_range(38.5,55);_inst.gmlimage_speed_previous=_inst.image_speed;if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,(-1))){{_inst.gmlkickx=90;_inst.gmlgoaldirec=180;};};if(yyGetBool(yyInst(_inst,
_other,104).gmlkicking)){_inst.gmlkickpow=20;};if(yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other))){{var ___sw1656___=_inst.gmlkickx;var ___swc1657___=-1;if(yyCompareVal(___sw1656___,90,g_GMLMathEpsilon,false)==0){___swc1657___=0;}else if(yyCompareVal(___sw1656___,2510,g_GMLMathEpsilon,false)==0){___swc1657___=1;}switch(___swc1657___){case 0:{_inst.gmlkickx=2510;break;}case 1:{_inst.gmlkickx=90;break;}};};};_inst.gmlmy_shadow=layer_sprite_create(layer_get_id("Shadows"),_inst.x,_inst.y,3);layer_sprite_blend(_inst.gmlmy_shadow,
0);layer_sprite_alpha(_inst.gmlmy_shadow,0.2);var gmli=0;for(;yyfless(gmli,20);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{_inst.gmll_blur=__yy_gml_array_check(_inst.gmll_blur,2127366110);_inst.gmll_blur[__yy_gml_array_check_index_chain(gmli,_inst.gmll_blur)][__yy_gml_array_check_index_set(0)]=0;_inst.gmll_blur[__yy_gml_array_check_index_chain(gmli,_inst.gmll_blur)][__yy_gml_array_check_index_set(1)]=0;}};var ___sw1658___=yyInst(_inst,
_other,97).gmlop_ball;var ___swc1659___=-1;if(yyCompareVal(___sw1658___,0,g_GMLMathEpsilon,false)==0){___swc1659___=0;}else if(yyCompareVal(___sw1658___,1,g_GMLMathEpsilon,false)==0){___swc1659___=1;}else if(yyCompareVal(___sw1658___,2,g_GMLMathEpsilon,false)==0){___swc1659___=2;}else if(yyCompareVal(___sw1658___,3,g_GMLMathEpsilon,false)==0){___swc1659___=3;}else if(yyCompareVal(___sw1658___,4,g_GMLMathEpsilon,false)==0){___swc1659___=4;}else if(yyCompareVal(___sw1658___,5,g_GMLMathEpsilon,false)==0){
___swc1659___=5;}switch(___swc1659___){case 0:{_inst.sprite_index=4;break;}case 1:{_inst.sprite_index=5;break;}case 2:{_inst.sprite_index=6;break;}case 3:{_inst.sprite_index=7;break;}case 4:{_inst.sprite_index=8;break;}case 5:{_inst.sprite_index=9;break;}};}function gml_Object_obj_ball_Alarm_0(_inst,_other){}function gml_Object_obj_ball_Alarm_1(_inst,_other){_inst.gmlstate=1;}function gml_Object_obj_ball_Step_0(_inst,_other){if(yyGetBool(instance_exists(78))){return;};if(yyfnotequal(yyInst(_inst,_other,104).gmlstate,
2)){return;};var gmlold_ballstate=_inst.gmlstate;var gmllastx=_inst.x;var ___sw1662___=yyInst(_inst,_other,104).gmlkicking;var ___swc1663___=-1;if(yyCompareVal(___sw1662___,0,g_GMLMathEpsilon,false)==0){___swc1663___=0;}switch(___swc1663___){case 0:{gml_Script_s_update_ball(_inst,_other);break;}default :{gml_Script_s_update_ball_fieldgoal(_inst,_other);break;}};_inst.depth=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),10);_inst.image_speed=1;if(yyfequal(yyInst(_inst,_other,
104).gmldrivedir,1)){_inst.image_speed=(-1);};gml_Script_s_check_ball_position(_inst,_other);if(yyfnotequal(_inst.gmlstate,gmlold_ballstate)){{gml_Script_s_create_match_message(_inst,_other,_inst.gmlstate);};};if(yyfgreater(abs(yyfminus(__yy_gml_errCheck(gmllastx),__yy_gml_errCheck(_inst.x))),1)){{var gmli=20;for(;yyfgreater(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{_inst.gmll_blur=__yy_gml_array_check(_inst.gmll_blur,
2127366110);_inst.gmll_blur[__yy_gml_array_check_index_chain(gmli,_inst.gmll_blur)][__yy_gml_array_check_index_set(0)]=_inst.gmll_blur[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(gmli),1),_inst.gmll_blur)][__yy_gml_array_check_index(0,_inst.gmll_blur[~~yyfminus(__yy_gml_errCheck(gmli),1)])];_inst.gmll_blur[__yy_gml_array_check_index_chain(gmli,_inst.gmll_blur)][__yy_gml_array_check_index_set(1)]=_inst.gmll_blur[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(gmli),1),_inst.gmll_blur)][__yy_gml_array_check_index(1,
_inst.gmll_blur[~~yyfminus(__yy_gml_errCheck(gmli),1)])];}};_inst.gmll_blur=__yy_gml_array_check(_inst.gmll_blur,2127366110);_inst.gmll_blur[__yy_gml_array_check_index_chain(0,_inst.gmll_blur)][__yy_gml_array_check_index_set(0)]=_inst.x;_inst.gmll_blur[__yy_gml_array_check_index_chain(0,_inst.gmll_blur)][__yy_gml_array_check_index_set(1)]=yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlheight),1)));};};if((yyGetBool(_inst.gmlholder))||(yyGetBool(yyfless(_inst.gmlvelocity,
1)))){_inst.image_index=0;};_inst.gmlhidden=false;{var __yy__v1961=GetWithArray(_inst.gmlholder);for(var __yy__v1962 in __yy__v1961){if(!__yy__v1961.hasOwnProperty(__yy__v1962))continue;var __yy__v1963=__yy__v1961[__yy__v1962];{if(yyGetBool(gml_Script_s_sprite_holding_ball(__yy__v1963,_inst,__yy__v1963.sprite_index))){_inst.gmlhidden=true;};}}};gml_Script_s_update_my_shadow(_inst,_other);if(yyGetBool(_inst.gmlhidden)){layer_sprite_y(_inst.gmlmy_shadow,(-99999));};}function gml_Object_obj_ball_Step_2(_inst,
_other){if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlstate,2)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlstate,0)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(global.gmlreplay_tick),4),0)))){gml_Script_s_record_frame(_inst,_other);};}function gml_Object_obj_ball_Draw_0(_inst,_other){if(yyGetBool(_inst.gmlhidden)){return;};if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlstate,2)))&&(yyGetBool((yyGetBool(yyfequal(_inst.gmlstate,0)))||(yyGetBool(yyfequal(_inst.gmlstate,
1)))))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,104).gmlkicking)))){{var ___sw1666___=yyInst(_inst,_other,104).gmldrivedir;var ___swc1667___=-1;if(yyCompareVal(___sw1666___,(-1),g_GMLMathEpsilon,false)==0){___swc1667___=0;}else if(yyCompareVal(___sw1666___,1,g_GMLMathEpsilon,false)==0){___swc1667___=1;}switch(___swc1667___){case 0:{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,yyfplus(__yy_gml_errCheck(_inst.x),4),yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlheight)),
2,2,_inst.gmlrotation,16777215,1);break;}case 1:{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,yyfminus(__yy_gml_errCheck(_inst.x),4),yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlheight)),2,2,_inst.gmlrotation,16777215,1);break;}};};}else {{if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlstate,2)))&&(yyGetBool(yyfequal(_inst.gmlstate,3)))){{var gmla=min(yyftime(__yy_gml_errCheck(_inst.gmlheight),0.005),0.09);var gmli=0;for(;yyfless(gmli,20);(g_yyPrePostObject__=gmli,
gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,12,_inst.image_index,_inst.gmll_blur[__yy_gml_array_check_index(gmli,_inst.gmll_blur)][__yy_gml_array_check_index(0,_inst.gmll_blur[~~gmli])],_inst.gmll_blur[__yy_gml_array_check_index(gmli,_inst.gmll_blur)][__yy_gml_array_check_index(1,_inst.gmll_blur[~~gmli])],2,2,_inst.gmlrotation,16777215,gmla);gmla=yyftime(gmla,0.9);}};};};draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,
yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlheight)),2,2,_inst.gmlrotation,16777215,1);};};}function gml_Object_obj_ball_Draw_64(_inst,_other){if((yyGetBool(yyInst(_inst,_other,104).gmlkicking))&&(yyGetBool(gml_Script_s_aiming(_inst,_other)))){{gml_Script_s_draw_kicking_power(_inst,_other);};};return;if(yyfnotequal(global.gmlmaster_ball,_inst.id)){return;};draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,10,30,gml_Script_s_get_string_ball_state(_inst,_other));gml_Script_draw_hd_text(_inst,
_other,10,40,string(round(_inst.gmlheight)));gml_Script_draw_hd_text(_inst,_other,10,50,yyfplus("Kicking = ",__yy_gml_errCheck(string(yyInst(_inst,_other,104).gmlkicking))));}// /// @description Insert description here
function gml_Object_obj_ball_Collision_obj_dummy(_inst,_other){}function gml_Object_obj_metaball_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmldraw_arc=false;_inst.gmldraw_bounce=false;_inst.gmlplot_x=array_create(50,0);_inst.gmlplot_y=array_create(50,0);_inst.gmlplot_z=array_create(50,
0);_inst.gmlbounce_x=0;_inst.gmlbounce_y=0;_inst.gmljump_x=0;_inst.gmljump_y=0;_inst.gmlplot_len=10;_inst.gmlzvel_limit=0;_inst.gmlgap=2;if((yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,global.gmlmaster_ball).gmlholder).gmlpmap))){{var gmlskl=gml_Script_s_get_attribute(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,global.gmlmaster_ball).gmlholder).gmlpmap,"skill");_inst.gmlplot_len=yyfplus(10,__yy_gml_errCheck(gmlskl));
_inst.gmlzvel_limit=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(gmlskl))),0.15);};}else {if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder))){{var gmlskl=yyInst(_inst,_other,yyInst(_inst,_other,global.gmlmaster_ball).gmlholder).gmlskill;_inst.gmlplot_len=yyfplus(10,__yy_gml_errCheck(gmlskl));_inst.gmlzvel_limit=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(gmlskl))),0.15);};};};layer_sprite_destroy(_inst.gmlmy_shadow);
}function gml_Object_obj_metaball_Step_0(_inst,_other){var gmlball=global.gmlmaster_ball;_inst.x=yyInst(_inst,_other,gmlball).x;_inst.y=yyInst(_inst,_other,gmlball).y;_inst.gmldraw_arc=false;_inst.gmldraw_bounce=false;_inst.gmldragdist=yyInst(_inst,_other,gmlball).gmldragdist;_inst.gmlbounce_alf=1;{var __yy__v1964=GetWithArray(gmlball);for(var __yy__v1965 in __yy__v1964){if(!__yy__v1964.hasOwnProperty(__yy__v1965))continue;var __yy__v1966=__yy__v1964[__yy__v1965];{if((yyGetBool(instance_exists(__yy__v1966.gmlholder)))&&(yyGetBool(yyfequal(yyInst(_inst,
_other,__yy__v1966.gmlholder).gmlposition,1)))){{_inst.x=yyInst(_inst,_other,__yy__v1966.gmlholder).x;_inst.y=yyInst(_inst,_other,__yy__v1966.gmlholder).y;var gmlfadestart=1;var gmlaccuracy=0;if(yyGetBool(yyInst(_inst,_other,__yy__v1966.gmlholder).gmlpmap)){gmlaccuracy=gml_Script_s_get_attribute(__yy__v1966,_inst,yyInst(_inst,_other,__yy__v1966.gmlholder).gmlpmap,"skill");};gmlfadestart=yyfplus(gmlfadestart,yyftime(__yy_gml_errCheck(clamp(gmlaccuracy,0,10)),0.05));if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,
1)){_inst.gmlbounce_alf=1;}else {if(yyfequal(yyInst(_inst,_other,97).gmlop_difficulty,4)){_inst.gmlbounce_alf=0;}else {{var ___sw1670___=yyInst(_inst,_other,97).gmlop_difficulty;var ___swc1671___=-1;if(yyCompareVal(___sw1670___,0,g_GMLMathEpsilon,false)==0){___swc1671___=0;}else if(yyCompareVal(___sw1670___,2,g_GMLMathEpsilon,false)==0){___swc1671___=1;}else if(yyCompareVal(___sw1670___,3,g_GMLMathEpsilon,false)==0){___swc1671___=2;}switch(___swc1671___){case 0:{gmlaccuracy=yyfplus(gmlaccuracy,clamp(yyInst(_inst,
_other,97).gmlsuppress_difficulty,0,10));break;}case 1:{gmlaccuracy=yyfplus(gmlaccuracy,6);break;}case 2:{break;}};_inst.gmlbounce_alf=yyfminus(__yy_gml_errCheck(gmlfadestart),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(__yy__v1966.gmldragdist),75)));};};};if(yyfequal(__yy__v1966.gmlstate,2)){{if((yyGetBool(yyfgreaterequal(__yy__v1966.gmldragdist,20)))||(yyGetBool(yyInst(_inst,_other,104).gmlkicking))){_inst.gmldraw_arc=true;};if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfless(yyInst(_inst,_other,
97).gmlop_difficulty,4)))){_inst.gmldraw_bounce=true;};};};};}else {{if((yyGetBool(yyfequal(__yy__v1966.gmlstate,3)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,104).gmlkicking)))){_inst.gmldraw_bounce=true;};};};if((yyGetBool(yyInst(_inst,_other,104).gmlkicking))&&(yyGetBool((yyGetBool(yyfnotequal(yyInst(_inst,_other,104).gmlpossession,yyInst(_inst,_other,104).gmlhuman_team)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlgamepractice)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlplayerteamindex,
(-1))))))){_inst.gmldraw_arc=false;};}}};_inst.gmlheight=yyInst(_inst,_other,gmlball).gmlheight;_inst.gmldirec=yyInst(_inst,_other,gmlball).gmldirec;_inst.gmlvelocity=yyInst(_inst,_other,gmlball).gmlvelocity;_inst.gmlzvel=yyInst(_inst,_other,gmlball).gmlzvel;var gmlbeat=0;var gmlp=0;_inst.gmlbounce_x=0;_inst.gmlbounce_y=0;_inst.gmljump_x=0;_inst.gmljump_y=0;while(yyfgreater(_inst.gmlheight,0)){{gml_Script_s_update_ball_movement(_inst,_other,true);(g_yyPrePostObject__=gmlbeat,gmlbeat=(g_yyPrePostObject__ instanceof Long?gmlbeat.add(1):++gmlbeat),
g_yyPrePostObject__);if((yyGetBool(yyfgreater(gmlbeat,_inst.gmlgap)))&&(yyGetBool(yyfless(gmlp,_inst.gmlplot_len)))&&(yyGetBool(yyfgreater(_inst.gmlzvel,_inst.gmlzvel_limit)))){{gmlbeat=0;_inst.gmlplot_x=__yy_gml_array_check(_inst.gmlplot_x,3053169775);_inst.gmlplot_x[__yy_gml_array_check_index_set(gmlp)]=_inst.x;_inst.gmlplot_y=__yy_gml_array_check(_inst.gmlplot_y,2900401454);_inst.gmlplot_y[__yy_gml_array_check_index_set(gmlp)]=_inst.y;_inst.gmlplot_z=__yy_gml_array_check(_inst.gmlplot_z,2278412013);
_inst.gmlplot_z[__yy_gml_array_check_index_set(gmlp)]=_inst.gmlheight;(g_yyPrePostObject__=gmlp,gmlp=(g_yyPrePostObject__ instanceof Long?gmlp.add(1):++gmlp),g_yyPrePostObject__);};};if((yyGetBool(yyfless(_inst.gmlzvel,0)))&&(yyGetBool(yyfequal(_inst.gmljump_x,0)))&&(yyGetBool(yyfgreater(_inst.gmlheight,54)))&&(yyGetBool(yyfless(_inst.gmlheight,60)))){{_inst.gmljump_x=_inst.x;_inst.gmljump_y=_inst.y;};};if((yyGetBool(yyfless(_inst.gmlzvel,0)))&&(yyGetBool(yyfequal(_inst.gmlbounce_x,0)))&&(yyGetBool(yyfless(_inst.gmlheight,
12)))){{_inst.gmlbounce_x=_inst.x;_inst.gmlbounce_y=_inst.y;};};}};_inst.gmlq=gmlp;for(;yyfless(_inst.gmlq,_inst.gmlplot_len);(g_yyPrePostObject__=_inst.gmlq,_inst.gmlq=(g_yyPrePostObject__ instanceof Long?_inst.gmlq.add(1):++_inst.gmlq),g_yyPrePostObject__)){{_inst.gmlplot_x=__yy_gml_array_check(_inst.gmlplot_x,3053169775);_inst.gmlplot_x[__yy_gml_array_check_index_set(_inst.gmlq)]=0;_inst.gmlplot_y=__yy_gml_array_check(_inst.gmlplot_y,2900401454);_inst.gmlplot_y[__yy_gml_array_check_index_set(_inst.gmlq)]=0;
_inst.gmlplot_z=__yy_gml_array_check(_inst.gmlplot_z,2278412013);_inst.gmlplot_z[__yy_gml_array_check_index_set(_inst.gmlq)]=0;}};}function gml_Object_obj_metaball_Draw_0(_inst,_other){if(yyfnotequal(yyInst(_inst,_other,104).gmlstate,2)){return;};if((yyGetBool(yyInst(_inst,_other,104).gmlkicking))&&(yyGetBool(_inst.gmldraw_arc))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,0))))){{{var __yy__v1967=GetWithArray(global.gmlmaster_ball);for(var __yy__v1968 in __yy__v1967){if(!__yy__v1967.hasOwnProperty(__yy__v1968))continue;
var __yy__v1969=__yy__v1967[__yy__v1968];{var gmldir=__yy__v1969.gmldirec;var gmllen=180;var gmlsx=__yy__v1969.x;var gmlsy=__yy__v1969.y;if(yyGetBool(__yy__v1969.gmlholder)){{gmllen=yyfplus(180,__yy_gml_errCheck(yyftime(5,__yy_gml_errCheck(yyInst(_inst,_other,__yy__v1969.gmlholder).gmlmy_kick_skill))));gmlsx=yyInst(_inst,_other,__yy__v1969.gmlholder).x;gmlsy=yyInst(_inst,_other,__yy__v1969.gmlholder).y;};}else {gml_Script_slog(__yy__v1969,_inst,"No holder!");};{var __yy__v1970=GetWithArray(107);for(var __yy__v1971 in __yy__v1970){
if(!__yy__v1970.hasOwnProperty(__yy__v1971))continue;var __yy__v1972=__yy__v1970[__yy__v1971];{if(yyfequal(__yy__v1972.gmlposition,11)){{gmlsx=__yy__v1972.x;gmlsy=__yy__v1972.y;};};}}};var gmlkx=yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(dcos(gmldir)),__yy_gml_errCheck(gmllen))));var gmlky=yyfplus(__yy_gml_errCheck(gmlsy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(dsin(gmldir)),__yy_gml_errCheck(gmllen))));draw_set_colour(16777215);draw_set_alpha(0.75);draw_line_width(gmlsx,
gmlsy,gmlkx,gmlky,3);if(yyfequal(yyInst(_inst,_other,104).gmldrivedir,1)){draw_sprite_ext(__yy__v1969,68,0,gmlkx,gmlky,0.75,0.75,__yy_gml_errCheck(-__yy_gml_errCheck(gmldir)),16777215,0.75);}else {draw_sprite_ext(__yy__v1969,68,0,yyfplus(__yy_gml_errCheck(gmlkx),1),yyfplus(__yy_gml_errCheck(gmlky),1.5),0.75,0.75,__yy_gml_errCheck(-__yy_gml_errCheck(gmldir)),16777215,0.75);};}}};};}else {if(yyGetBool(_inst.gmldraw_arc)){{draw_set_colour(0);_inst.gmlb=0;for(;yyfless(_inst.gmlb,_inst.gmlplot_len);(g_yyPrePostObject__=_inst.gmlb,
_inst.gmlb=(g_yyPrePostObject__ instanceof Long?_inst.gmlb.add(1):++_inst.gmlb),g_yyPrePostObject__)){{draw_set_alpha(0.5);draw_rectangle(_inst.gmlplot_x[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_x)],_inst.gmlplot_y[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_y)],yyfplus(__yy_gml_errCheck(_inst.gmlplot_x[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_x)]),2),yyfplus(__yy_gml_errCheck(_inst.gmlplot_y[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_y)]),2),false);}};};};};
if(yyGetBool(_inst.gmldraw_bounce)){{draw_sprite_ext(_inst,69,0,_inst.gmlbounce_x,_inst.gmlbounce_y,2,2,0,65535,_inst.gmlbounce_alf);};};draw_set_colour(16777215);draw_set_alpha(1);}function gml_Object_obj_metaball_Draw_73(_inst,_other){if(yyGetBool(yyInst(_inst,_other,104).gmlkicking)){return;};draw_set_colour(16777215);if(yyGetBool(_inst.gmldraw_arc)){{_inst.gmlb=0;for(;yyfless(_inst.gmlb,_inst.gmlplot_len);(g_yyPrePostObject__=_inst.gmlb,_inst.gmlb=(g_yyPrePostObject__ instanceof Long?_inst.gmlb.add(1):++_inst.gmlb),
g_yyPrePostObject__)){{draw_set_alpha(1);var gmlz=yyfminus(__yy_gml_errCheck(_inst.gmlplot_y[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_y)]),__yy_gml_errCheck(_inst.gmlplot_z[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_z)]));draw_sprite_ext(_inst,72,0,_inst.gmlplot_x[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_x)],gmlz,2,2,0,16777215,1);}};};};}function gml_Object_obj_match_msg_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"Create obj_match_msg");_inst.gmlw=display_get_gui_width();
_inst.gmlh=display_get_gui_height();_inst.gmltx=yyftime(__yy_gml_errCheck(_inst.gmlw),0.5);_inst.gmlty=yyftime(__yy_gml_errCheck(_inst.gmlh),0.5);{var __yy__v1973=GetWithArray(104);for(var __yy__v1974 in __yy__v1973){if(!__yy__v1973.hasOwnProperty(__yy__v1974))continue;var __yy__v1975=__yy__v1973[__yy__v1974];if(yyfequal(__yy__v1975.gmlstate,2)){_inst.gmlty=yyftime(__yy_gml_errCheck(_inst.gmlh),0.75);};}};}function gml_Object_obj_match_msg_Alarm_0(_inst,_other){instance_destroy(_inst);}function gml_Object_obj_match_msg_Draw_64(_inst,
_other){if(yyfequal(_inst.gmltext,"")){return;};var gmlbuf=20;draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),80))),1)),2);if(!yyGetBool(_inst.gmlflash)){gmlf=1;};draw_set_alpha(_inst.gmlbg_alpha);var gmlbuf2=0;if(yyfnotequal(_inst.gmlsub_text,"")){gmlbuf2=15;};draw_rectangle_color(0,yyfminus(__yy_gml_errCheck(_inst.gmlty),__yy_gml_errCheck(gmlbuf)),_inst.gmlw,
yyfplus(yyfplus(__yy_gml_errCheck(_inst.gmlty),__yy_gml_errCheck(gmlbuf)),__yy_gml_errCheck(gmlbuf2)),0,0,0,0,0);draw_set_alpha(1);var gmlscl=1;if(yyGetBool(instance_exists(104))){gmlscl=1.5;};gml_Script_draw_hd_text_transformed_color(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.gmltx),1),yyfplus(__yy_gml_errCheck(_inst.gmlty),1),_inst.gmltext,gmlscl,gmlscl,0,0,0,0,0,yyftime(__yy_gml_errCheck(gmlf),0.5));gml_Script_draw_hd_text_transformed_color(_inst,_other,_inst.gmltx,_inst.gmlty,_inst.gmltext,
gmlscl,gmlscl,0,_inst.gmlcol,_inst.gmlcol,_inst.gmlcol,_inst.gmlcol,gmlf);if(yyfnotequal(_inst.gmlsub_text,"")){{draw_set_font(global.gmlfnt_small_flex);gml_Script_draw_hd_text_transformed_color(_inst,_other,_inst.gmltx,yyfplus(__yy_gml_errCheck(_inst.gmlty),25),_inst.gmlsub_text,1,1,0,16777215,16777215,16777215,16777215,1);};};}function gml_Object_obj_match_msg_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext="Message";_inst.gmlflash=false;_inst.gmlcol=0;_inst.gmlbg_alpha=0.8;
_inst.gmlsub_text="";}function gml_Object_obj_fieldtxt_Step_0(_inst,_other){_inst.y=yyfminus(_inst.y,0.2);_inst.gmlalpha=yyfminus(_inst.gmlalpha,0.025);if(yyGetBool(_inst.gmlimg)){{_inst.y=yyfminus(_inst.y,0.1);_inst.gmlimgscl=yyfplus(_inst.gmlimgscl,0.01);};};if(yyflessequal(_inst.gmlalpha,0)){instance_destroy(_inst);};}function gml_Object_obj_fieldtxt_Draw_0(_inst,_other){if(yyGetBool(_inst.gmlimg)){{draw_sprite_ext(_inst,_inst.gmlimg,_inst.gmlsubimg,_inst.x,_inst.y,_inst.gmlimgscl,_inst.gmlimgscl,
0,16777215,1);};}else {{draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);gml_Script_draw_hd_text_transformed_color(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),1),yyfplus(__yy_gml_errCheck(_inst.y),1),_inst.gmltxt,2,2,0,16777215,16777215,16777215,16777215,yyftime(__yy_gml_errCheck(_inst.gmlalpha),0.25));gml_Script_draw_hd_text_transformed_color(_inst,_other,_inst.x,_inst.y,_inst.gmltxt,2,2,0,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlalpha);
};};}function gml_Object_obj_fieldtxt_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt="Text";_inst.gmlalpha=2;_inst.gmlcolour=new Long(4278190080,0,false);_inst.gmlimg=(-4);_inst.gmlsubimg=0;_inst.gmlimgscl=1;}function gml_Object_obj_goal_stand_Create_0(_inst,_other){_inst.gmlmy_shadow=layer_sprite_create(layer_get_id("Shadows"),_inst.x,_inst.y,21);layer_sprite_blend(_inst.gmlmy_shadow,0);layer_sprite_alpha(_inst.gmlmy_shadow,0.2);layer_sprite_angle(_inst.gmlmy_shadow,0);layer_sprite_xscale(_inst.gmlmy_shadow,
2);layer_sprite_yscale(_inst.gmlmy_shadow,2);_inst.image_xscale=2;_inst.image_yscale=2;if(yyfgreater(_inst.x,1300)){{_inst.image_xscale=(-2);layer_sprite_xscale(_inst.gmlmy_shadow,(-2));};};if(yyfequal(yyInst(_inst,_other,97).gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))){_inst.image_index=1;};}function gml_Object_obj_goal_stand_Step_0(_inst,_other){layer_sprite_x(_inst.gmlmy_shadow,_inst.x);layer_sprite_y(_inst.gmlmy_shadow,_inst.y);_inst.depth=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),
10);}function gml_Object_obj_goal_post_Create_0(_inst,_other){_inst.image_xscale=2;_inst.image_yscale=2;if(yyfgreater(_inst.x,1300)){{_inst.image_xscale=(-2);};};}function gml_Object_obj_goal_post_Step_0(_inst,_other){_inst.depth=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),10);}function gml_Object_obj_boundary_Step_0(_inst,_other){var ___sw1674___=_inst.gmlbound_type;var ___swc1675___=-1;if(yyCompareVal(___sw1674___,0,g_GMLMathEpsilon,false)==0){___swc1675___=0;}else if(yyCompareVal(___sw1674___,
1,g_GMLMathEpsilon,false)==0){___swc1675___=1;}else if(yyCompareVal(___sw1674___,2,g_GMLMathEpsilon,false)==0){___swc1675___=2;}else if(yyCompareVal(___sw1674___,3,g_GMLMathEpsilon,false)==0){___swc1675___=3;}switch(___swc1675___){case 0:{{var __yy__v1976=GetWithArray(106);for(var __yy__v1977 in __yy__v1976){if(!__yy__v1976.hasOwnProperty(__yy__v1977))continue;var __yy__v1978=__yy__v1976[__yy__v1977];if(yyfless(__yy__v1978.x,_inst.x)){{__yy__v1978.x=_inst.x;__yy__v1978.hspeed=0;};};}};break;}case 1:{{var __yy__v1979=GetWithArray(106);
for(var __yy__v1980 in __yy__v1979){if(!__yy__v1979.hasOwnProperty(__yy__v1980))continue;var __yy__v1981=__yy__v1979[__yy__v1980];if(yyfgreater(__yy__v1981.x,_inst.x)){{__yy__v1981.x=_inst.x;__yy__v1981.hspeed=0;};};}};break;}case 2:{{var __yy__v1982=GetWithArray(106);for(var __yy__v1983 in __yy__v1982){if(!__yy__v1982.hasOwnProperty(__yy__v1983))continue;var __yy__v1984=__yy__v1982[__yy__v1983];if(yyfless(__yy__v1984.y,_inst.y)){{__yy__v1984.y=_inst.y;__yy__v1984.vspeed=0;};};}};break;}case 3:{{var __yy__v1985=GetWithArray(106);
for(var __yy__v1986 in __yy__v1985){if(!__yy__v1985.hasOwnProperty(__yy__v1986))continue;var __yy__v1987=__yy__v1985[__yy__v1986];if(yyfgreater(__yy__v1987.y,_inst.y)){{__yy__v1987.y=_inst.y;__yy__v1987.vspeed=0;};};}};break;}};}function gml_Object_obj_boundary_Draw_0(_inst,_other){var gmlbx=_inst.x;var gmlby=_inst.y;var gmlb_end=false;var ___sw1680___=_inst.gmlbound_type;var ___swc1681___=-1;if(yyCompareVal(___sw1680___,0,g_GMLMathEpsilon,false)==0){___swc1681___=0;}else if(yyCompareVal(___sw1680___,1,g_GMLMathEpsilon,
false)==0){___swc1681___=1;}else if(yyCompareVal(___sw1680___,2,g_GMLMathEpsilon,false)==0){___swc1681___=2;}else if(yyCompareVal(___sw1680___,3,g_GMLMathEpsilon,false)==0){___swc1681___=3;}switch(___swc1681___){case 0:{gmlbx=yyfminus(gmlbx,2);break;}case 1:{gmlbx=yyfplus(gmlbx,2);break;}case 2:{gmlby=yyfminus(gmlby,2);break;}case 3:{gmlby=yyfplus(gmlby,2);break;}};do {{draw_sprite_ext(_inst,16,0,gmlbx,gmlby,2,2,0,16777215,1);var ___sw1682___=_inst.gmlbound_type;var ___swc1683___=-1;if(yyCompareVal(___sw1682___,
0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1682___,1,g_GMLMathEpsilon,false)==0){___swc1683___=0;}else if(yyCompareVal(___sw1682___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1682___,3,g_GMLMathEpsilon,false)==0){___swc1683___=1;}switch(___swc1683___){case 0:{gmlby=yyfplus(gmlby,_inst.gmlgap);gmlb_end=yyfgreater(gmlby,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlbound_len)));break;}case 1:{gmlbx=yyfplus(gmlbx,_inst.gmlgap);gmlb_end=yyfgreater(gmlbx,yyfplus(__yy_gml_errCheck(_inst.x),
__yy_gml_errCheck(_inst.gmlbound_len)));break;}};}}while(!(yyGetBool(gmlb_end)));}function gml_Object_obj_boundary_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlbound_type=0;_inst.gmlbound_len=0;_inst.gmlgap=60;}function gml_Object_obj_weather_Create_0(_inst,_other){_inst.gmlwind_force=0;_inst.gmlwind=irandom(9);_inst.gmlwind_dir=irandom(7);_inst.gmlrain_rate=1;_inst.gmlrain_speed=3;if(yyfless(yyInst(_inst,_other,104).gmldifficulty,1)){_inst.gmlwind=clamp(irandom(15),0,9);};if(yyfgreater(yyInst(_inst,
_other,104).gmldifficulty,5)){_inst.gmlwind=irandom(5);};var gmlhometeam=yyInst(_inst,_other,104).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,104).gmlteam)];_inst.gmltype=0;if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlyear,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))))){{};}else {if(yyfless(yyInst(_inst,_other,97).gmlweek,12)){{if(yyfless(irandom(200),real(ds_map_find_value(gmlhometeam,"rainfall")))){_inst.gmltype=1;};};
}else {if(yyflessequal(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){{if(yyfless(irandom(200),real(ds_map_find_value(gmlhometeam,"rainfall")))){{_inst.gmltype=1;};}else {if(yyfless(yyfplus(1,__yy_gml_errCheck(irandom(150))),real(ds_map_find_value(gmlhometeam,"snowfall")))){{_inst.gmltype=2;_inst.gmlwind=0;};};};};}else {{if(yyfless(yyfplus(1,__yy_gml_errCheck(irandom(100))),ds_map_find_value(gmlhometeam,"snowfall"))){{_inst.gmltype=2;_inst.gmlwind=0;};}else {if(yyfless(irandom(200),
ds_map_find_value(gmlhometeam,"rainfall"))){{_inst.gmltype=1;};};};};};};};if(yyGetBool(global.gmlexhibition)){{var ___sw1688___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"exh_op_weather");var ___swc1689___=-1;if(yyCompareVal(___sw1688___,0,g_GMLMathEpsilon,false)==0){___swc1689___=0;}else if(yyCompareVal(___sw1688___,1,g_GMLMathEpsilon,false)==0){___swc1689___=1;}else if(yyCompareVal(___sw1688___,2,g_GMLMathEpsilon,false)==0){___swc1689___=2;}else if(yyCompareVal(___sw1688___,3,g_GMLMathEpsilon,
false)==0){___swc1689___=3;}switch(___swc1689___){case 0:{_inst.gmltype=choose(0,1,2);_inst.gmlwind=clamp(irandom_range((-4),9),0,9);break;}case 1:{_inst.gmltype=0;_inst.gmlwind=irandom(5);break;}case 2:{_inst.gmltype=1;_inst.gmlwind=irandom(9);break;}case 3:{_inst.gmltype=2;_inst.gmlwind=0;break;}};return;};};if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"op_weather"))))||(yyGetBool(yyfequal(_inst.gmltype,0)))||(yyGetBool(yyInst(_inst,_other,97).gmlgamepractice))){
{instance_destroy(_inst);return;};};var ___sw1690___=real(ds_map_find_value(gmlhometeam,"roof"));var ___swc1691___=-1;if(yyCompareVal(___sw1690___,0,g_GMLMathEpsilon,false)==0){___swc1691___=0;}else if(yyCompareVal(___sw1690___,1,g_GMLMathEpsilon,false)==0){___swc1691___=1;}else if(yyCompareVal(___sw1690___,2,g_GMLMathEpsilon,false)==0){___swc1691___=2;}switch(___swc1691___){case 0:{break;}case 1:{if((yyGetBool(yyfnotequal(_inst.gmltype,0)))||(yyGetBool(yyfgreater(_inst.gmlwind,5)))){{instance_destroy(_inst);
return;};};break;}case 2:{instance_destroy(_inst);return;break;}};}function gml_Object_obj_weather_Step_0(_inst,_other){var ___sw1694___=_inst.gmltype;var ___swc1695___=-1;if(yyCompareVal(___sw1694___,1,g_GMLMathEpsilon,false)==0){___swc1695___=0;}else if(yyCompareVal(___sw1694___,2,g_GMLMathEpsilon,false)==0){___swc1695___=1;}switch(___swc1695___){case 0:{for(var __yy__v1988=0,__yy__v1989=yyGetInt32(_inst.gmlrain_rate);__yy__v1988<__yy__v1989;__yy__v1988++){{instance_create_layer(irandom(g_pBuiltIn.room_width),
0,"Weather",118);}};break;}case 1:{var gmlcw=camera_get_view_width(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gmlcx=camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gmlsx=yyfplus(__yy_gml_errCheck(gmlcx),__yy_gml_errCheck(irandom(gmlcw)));if(!yyGetBool(irandom(2))){instance_create_layer(gmlsx,0,"Weather",120);};break;}};}function gml_Object_obj_weather_Draw_64(_inst,_other){}function gml_Object_obj_weather_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmltype=0;_inst.gmlwind_force=0;_inst.gmlwind=0;_inst.gmlwind_dir=0;_inst.gmlrain_rate=0;_inst.gmlrain_speed=0;}function gml_Object_obj_raindrop_Create_0(_inst,_other){var gmlrs=yyInst(_inst,_other,117).gmlrain_speed;var gmlw=yyInst(_inst,_other,117).gmlwind;var gmlwd=yyInst(_inst,_other,117).gmlwind_dir;var ___sw1698___=gmlwd;var ___swc1699___=-1;if(yyCompareVal(___sw1698___,0,g_GMLMathEpsilon,false)==0){___swc1699___=0;}else if(yyCompareVal(___sw1698___,1,g_GMLMathEpsilon,
false)==0){___swc1699___=1;}else if(yyCompareVal(___sw1698___,2,g_GMLMathEpsilon,false)==0){___swc1699___=2;}else if(yyCompareVal(___sw1698___,3,g_GMLMathEpsilon,false)==0){___swc1699___=3;}else if(yyCompareVal(___sw1698___,4,g_GMLMathEpsilon,false)==0){___swc1699___=4;}else if(yyCompareVal(___sw1698___,5,g_GMLMathEpsilon,false)==0){___swc1699___=5;}else if(yyCompareVal(___sw1698___,6,g_GMLMathEpsilon,false)==0){___swc1699___=6;}else if(yyCompareVal(___sw1698___,7,g_GMLMathEpsilon,false)==0){___swc1699___=7;
}switch(___swc1699___){case 0:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),0.1);break;}case 1:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),0.05);break;}case 2:{_inst.hspeed=0;break;}case 3:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),(-0.05));break;}case 4:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),(-0.1));break;}case 5:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),(-0.05));break;}case 6:{_inst.hspeed=0;break;}case 7:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),0.05);break;}};_inst.hspeed=0;_inst.gmlsplash=false;
_inst.gmlim=1;var gmlsp=random_range(0.1,1);_inst.vspeed=yyftime(__yy_gml_errCheck(gmlrs),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlsp),0.5)));_inst.gmlground=yyfplus(66,__yy_gml_errCheck(yyftime(468,__yy_gml_errCheck(gmlsp))));if(yyfgreater(_inst.gmlground,150)){_inst.gmlim=2;};_inst.gmly2=yyfminus(__yy_gml_errCheck(_inst.y),25);_inst.gmly3=yyfplus(__yy_gml_errCheck(_inst.y),50);_inst.gmlx2=yyfminus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx3=yyfplus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx4=yyfminus(__yy_gml_errCheck(_inst.x),
500);_inst.gmlx5=yyfplus(__yy_gml_errCheck(_inst.x),500);_inst.image_xscale=2;_inst.image_yscale=2;}function gml_Object_obj_raindrop_Step_0(_inst,_other){var ___sw1702___=_inst.gmlsplash;var ___swc1703___=-1;if(yyCompareVal(___sw1702___,false,g_GMLMathEpsilon,false)==0){___swc1703___=0;}else if(yyCompareVal(___sw1702___,true,g_GMLMathEpsilon,false)==0){___swc1703___=1;}switch(___swc1703___){case 0:{if(yyfgreater(_inst.y,_inst.gmlground)){{_inst.gmlsplash=true;_inst.vspeed=0;_inst.hspeed=0;_inst.sprite_index=24;
_inst.image_index=0;_inst.image_speed=4;};}else {{_inst.gmly2=yyfminus(__yy_gml_errCheck(_inst.y),25);_inst.gmly3=yyfplus(__yy_gml_errCheck(_inst.y),50);_inst.gmlx2=yyfminus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx3=yyfplus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx4=yyfminus(__yy_gml_errCheck(_inst.x),500);_inst.gmlx5=yyfplus(__yy_gml_errCheck(_inst.x),500);};};break;}case 1:{if(yyfgreater(_inst.image_index,yyfminus(__yy_gml_errCheck(_inst.image_number),1))){instance_destroy(_inst);};break;}};}
function gml_Object_obj_raindrop_Draw_0(_inst,_other){if(!yyGetBool(_inst.gmlsplash)){{draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.x,_inst.y);draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.gmlx2,_inst.gmly2);draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.gmlx3,_inst.gmly2);draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.gmlx4,_inst.gmly3);draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.gmlx5,_inst.gmly3);};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,
_inst.x,_inst.y);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx2,_inst.gmly2);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx3,_inst.gmly2);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx4,_inst.gmly3);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx5,_inst.gmly3);};};}// ds_list_add(other.l_team, "@"+opp_map[? "tla"]);
function gml_Object_obj_season_tally_Create_0(_inst,_other){_inst.gmlwatcol=gml_Script_s_get_watermark_color(_inst,
_other);_inst.gmlsclx=1.1;_inst.gmlscly=1.1;_inst.gmlrot=random(360);_inst.gmlpage=1;{var __yy__v1990=GetWithArray(97);for(var __yy__v1991 in __yy__v1990){if(!__yy__v1990.hasOwnProperty(__yy__v1991))continue;var __yy__v1992=__yy__v1990[__yy__v1991];{var gmldt=yyfplus(yyfplus("Y",__yy_gml_errCheck(string(__yy__v1992.gmlyear)))," ");if(!yyGetBool(__yy__v1992.gmldone_season_review)){gmldt=yyfplus(gmldt,(yyfgreater(__yy__v1992.gmlweek,18)?"PS":yyfplus("W",__yy_gml_errCheck(string(__yy__v1992.gmlweek)))));
};yyInst(_inst,_other,100645).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1992,_inst,"ui_SeasonReview")),": "),__yy_gml_errCheck(ds_map_find_value(__yy__v1992.gmlmyteam,"name")))," ("),__yy_gml_errCheck(__yy__v1992.gmlfname))," "),__yy_gml_errCheck(__yy__v1992.gmllname)),")")," "),__yy_gml_errCheck(gmldt));yyInst(_inst,_other,100642).gmltext=gml_Script_s_get_string_record(__yy__v1992,_inst,__yy__v1992.gmlmyteam,true);
}}};_inst.gmll_result=ds_list_create();_inst.gmll_week=ds_list_create();_inst.gmll_team=ds_list_create();_inst.gmll_score=ds_list_create();_inst.gmll_pd=ds_list_create();_inst.gmll_diff=ds_list_create();_inst.gmll_qtr=ds_list_create();_inst.gmll_weather=ds_list_create();_inst.gmll_of=ds_list_create();_inst.gmll_df=ds_list_create();_inst.gmltotalpd=0;_inst.gmltotal_of=0;_inst.gmltotal_df=0;_inst.gmll_pname=ds_list_create();_inst.gmll_pos=ds_list_create();_inst.gmll_games=ds_list_create();_inst.gmll_attcmp=ds_list_create();
_inst.gmll_yards=ds_list_create();_inst.gmll_tds=ds_list_create();_inst.gmll_turn=ds_list_create();_inst.gmll_sacks_avg=ds_list_create();var gmlgamecount=0;var gmltof=0;var gmltdf=0;{var __yy__v1993=GetWithArray(97);for(var __yy__v1994 in __yy__v1993){if(!__yy__v1993.hasOwnProperty(__yy__v1994))continue;var __yy__v1995=__yy__v1993[__yy__v1994];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1995.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){
{var gmlmap=ds_list_find_value(__yy__v1995.gmlfixturelist,gmli);if(yyfnotequal(ds_map_find_value(gmlmap,"human_win"),"unplayed")){{ds_list_add(_inst.gmll_week,string(ds_map_find_value(gmlmap,"week")));var gmlpd=0;var gmlopp_map=gml_Script_s_get_team_by_id(__yy__v1995,_inst,ds_map_find_value(gmlmap,"home_team"));if(yyfequal(ds_map_find_value(gmlmap,"away_team"),yyInst(_inst,_other,97).gmlmyteam_id)){{ds_list_add(_inst.gmll_team,yyfplus("@",__yy_gml_errCheck(ds_map_find_value(gmlopp_map,"tla"))));gmlpd=yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,
"away_score")),__yy_gml_errCheck(ds_map_find_value(gmlmap,"home_score")));};}else {{gmlopp_map=gml_Script_s_get_team_by_id(__yy__v1995,_inst,ds_map_find_value(gmlmap,"away_team"));ds_list_add(_inst.gmll_team,ds_map_find_value(gmlopp_map,"tla"));gmlpd=yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"home_score")),__yy_gml_errCheck(ds_map_find_value(gmlmap,"away_score")));};};ds_list_add(_inst.gmll_pd,(yyfgreater(gmlpd,0)?yyfplus("+",__yy_gml_errCheck(string(gmlpd))):string(gmlpd)));ds_list_add(_inst.gmll_of,
real(ds_map_find_value(gmlopp_map,"offense")));ds_list_add(_inst.gmll_df,real(ds_map_find_value(gmlopp_map,"defense")));gmltof=yyfplus(gmltof,real(ds_map_find_value(gmlopp_map,"offense")));gmltdf=yyfplus(gmltdf,real(ds_map_find_value(gmlopp_map,"defense")));ds_list_add(_inst.gmll_score,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"away_score"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"home_score")))));_inst.gmltotalpd=yyfplus(_inst.gmltotalpd,gmlpd);var ___sw1712___=ds_map_find_value(gmlmap,
"human_win");var ___swc1713___=-1;if(yyCompareVal(___sw1712___,"win",g_GMLMathEpsilon,false)==0){___swc1713___=0;}else if(yyCompareVal(___sw1712___,"loss",g_GMLMathEpsilon,false)==0){___swc1713___=1;}else if(yyCompareVal(___sw1712___,"tie",g_GMLMathEpsilon,false)==0){___swc1713___=2;}switch(___swc1713___){case 0:{ds_list_add(_inst.gmll_result,"W");break;}case 1:{ds_list_add(_inst.gmll_result,"L");break;}case 2:{ds_list_add(_inst.gmll_result,"T");break;}default :{ds_list_add(_inst.gmll_result,"");break;
}};if(yyGetBool(ds_map_exists(gmlmap,"difficulty"))){{var gmldif=ds_map_find_value(gmlmap,"difficulty");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v1995,_inst,"ui_Dynamic"),"Dyn");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v1995,_inst,"ui_Easy"),"Easy");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v1995,_inst,"ui_Medium"),"Med");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v1995,_inst,"ui_Hard"),"Hard");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v1995,_inst,
"ui_Extreme"),"Extrm");ds_list_add(_inst.gmll_diff,gmldif);};};if(yyGetBool(ds_map_exists(gmlmap,"op_matchlength"))){{var ___sw1714___=ds_map_find_value(gmlmap,"op_matchlength");var ___swc1715___=-1;if(yyCompareVal(___sw1714___,(-1),g_GMLMathEpsilon,false)==0){___swc1715___=0;}else if(yyCompareVal(___sw1714___,0,g_GMLMathEpsilon,false)==0){___swc1715___=1;}else if(yyCompareVal(___sw1714___,1,g_GMLMathEpsilon,false)==0){___swc1715___=2;}switch(___swc1715___){case 0:{ds_list_add(_inst.gmll_qtr,"1m");break;
}case 1:{ds_list_add(_inst.gmll_qtr,"2m");break;}case 2:{ds_list_add(_inst.gmll_qtr,"3m");break;}};};};if(yyGetBool(ds_map_exists(gmlmap,"weather"))){{var ___sw1716___=ds_map_find_value(gmlmap,"weather");var ___swc1717___=-1;if(yyCompareVal(___sw1716___,0,g_GMLMathEpsilon,false)==0){___swc1717___=0;}else if(yyCompareVal(___sw1716___,1,g_GMLMathEpsilon,false)==0){___swc1717___=1;}else if(yyCompareVal(___sw1716___,2,g_GMLMathEpsilon,false)==0){___swc1717___=2;}switch(___swc1717___){case 0:{ds_list_add(_inst.gmll_weather,
"C");break;}case 1:{ds_list_add(_inst.gmll_weather,"R");break;}case 2:{ds_list_add(_inst.gmll_weather,"S");break;}};};};(g_yyPrePostObject__=gmlgamecount,gmlgamecount=(g_yyPrePostObject__ instanceof Long?gmlgamecount.add(1):++gmlgamecount),g_yyPrePostObject__);};};}};_inst.gmltotal_of=gml_Script_s_get_string_float(__yy__v1995,_inst,yyfdivide(__yy_gml_errCheck(gmltof),2),1);_inst.gmltotal_df=gml_Script_s_get_string_float(__yy__v1995,_inst,yyfdivide(__yy_gml_errCheck(gmltdf),2),1);var gmli=0;for(;yyfless(gmli,
ds_list_size(__yy__v1995.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1995.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),
"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_attempts"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_complete")))));ds_list_add(_inst.gmll_yards,yyfplus(yyfplus(__yy_gml_errCheck(string(round(ds_map_find_value(gmlpmap,"season_yards")))),"/"),__yy_gml_errCheck(string(round(ds_map_find_value(gmlpmap,"season_rush_yards"))))));ds_list_add(_inst.gmll_tds,
yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_touchdowns"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_rush_touchdowns")))));ds_list_add(_inst.gmll_turn,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_int"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_fumbles")))));ds_list_add(_inst.gmll_sacks_avg,string(ds_map_find_value(gmlpmap,"season_sacks")));};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1995.gmlroster));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1995.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),2)){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,
"career_games")))));ds_list_add(_inst.gmll_attcmp,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_attempts"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_rush_attempts")))));ds_list_add(_inst.gmll_yards,yyfplus(yyfplus(__yy_gml_errCheck(string(round(ds_map_find_value(gmlpmap,"season_yards")))),"/"),__yy_gml_errCheck(string(round(ds_map_find_value(gmlpmap,"season_rush_yards"))))));ds_list_add(_inst.gmll_tds,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,
"season_touchdowns"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_rush_touchdowns")))));ds_list_add(_inst.gmll_turn,string(ds_map_find_value(gmlpmap,"season_fumbles")));ds_list_add(_inst.gmll_sacks_avg,"");};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1995.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1995.gmlroster,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,
"position"),4)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),3)))){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,string(ds_map_find_value(gmlpmap,"season_attempts")));ds_list_add(_inst.gmll_yards,
string(round(ds_map_find_value(gmlpmap,"season_yards"))));ds_list_add(_inst.gmll_tds,string(ds_map_find_value(gmlpmap,"season_touchdowns")));ds_list_add(_inst.gmll_turn,string(ds_map_find_value(gmlpmap,"season_fumbles")));ds_list_add(_inst.gmll_sacks_avg,gml_Script_s_get_string_float(__yy__v1995,_inst,gml_Script_s_get_average_yards(__yy__v1995,_inst,gmlpmap,1,false),1));};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1995.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1995.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),5)){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,string(ds_map_find_value(gmlpmap,
"season_tackles")));ds_list_add(_inst.gmll_yards,"");ds_list_add(_inst.gmll_tds,"");ds_list_add(_inst.gmll_turn,"");ds_list_add(_inst.gmll_sacks_avg,"");};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1995.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1995.gmlroster,gmli);if(yyGetBool(gml_Script_s_is_defensive_player(__yy__v1995,_inst,gmlpmap))){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,
"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,string(ds_map_find_value(gmlpmap,"season_tackles")));ds_list_add(_inst.gmll_yards,string(round(ds_map_find_value(gmlpmap,"season_sacks"))));ds_list_add(_inst.gmll_tds,string(ds_map_find_value(gmlpmap,
"season_int")));ds_list_add(_inst.gmll_turn,string(ds_map_find_value(gmlpmap,"season_fumbles")));ds_list_add(_inst.gmll_sacks_avg,"");};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1995.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1995.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,
real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_attempts"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_complete")))));ds_list_add(_inst.gmll_yards,string(round(ds_map_find_value(gmlpmap,
"season_yards"))));ds_list_add(_inst.gmll_tds,"");ds_list_add(_inst.gmll_turn,"");ds_list_add(_inst.gmll_sacks_avg,"");};};}};}}};{var __yy__v1996=GetWithArray(97);for(var __yy__v1997 in __yy__v1996){if(!__yy__v1996.hasOwnProperty(__yy__v1997))continue;var __yy__v1998=__yy__v1996[__yy__v1997];{var gmlnum_restarts=max(0,yyfminus(__yy_gml_errCheck(__yy__v1998.gmlgamestarts),__yy_gml_errCheck(gmlgamecount)));yyInst(_inst,_other,100639).gmltext=yyfplus("Restarts:",__yy_gml_errCheck(string(gmlnum_restarts)));
yyInst(_inst,_other,100639).gmltext=yyfplus(yyInst(_inst,_other,100639).gmltext,yyfplus(" CCs:",__yy_gml_errCheck(string(__yy__v1998.gmlseason_credits_purchased))));yyInst(_inst,_other,100639).visible=false;}}};var gmltyp="Html5";if(!yyGetBool(global.gmlbrowser)){{var ___sw1718___=g_pBuiltIn.get_os_type();var ___swc1719___=-1;if(yyCompareVal(___sw1718___,0,g_GMLMathEpsilon,false)==0){___swc1719___=0;}else if(yyCompareVal(___sw1718___,4,g_GMLMathEpsilon,false)==0){___swc1719___=1;}else if(yyCompareVal(___sw1718___,
1,g_GMLMathEpsilon,false)==0){___swc1719___=2;}else if(yyCompareVal(___sw1718___,3,g_GMLMathEpsilon,false)==0){___swc1719___=3;}else if(yyCompareVal(___sw1718___,21,g_GMLMathEpsilon,false)==0){___swc1719___=4;}switch(___swc1719___){case 0:{gmltyp="Windows";break;}case 1:{gmltyp="Android";break;}case 2:{gmltyp="MacOS";break;}case 3:{gmltyp="iOS";break;}case 4:{gmltyp="Switch";break;}};};};yyInst(_inst,_other,100640).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gmltyp)," v"),"1.5.7.4");if(yyGetBool(global.gmlpoki)){
yyInst(_inst,_other,100640).gmltext=yyfplus(yyInst(_inst,_other,100640).gmltext," Poki");};yyInst(_inst,_other,100640).visible=false;}function gml_Object_obj_season_tally_Step_0(_inst,_other){yyInst(_inst,_other,100648).visible=true;yyInst(_inst,_other,100647).visible=true;var ___sw1722___=_inst.gmlpage;var ___swc1723___=-1;if(yyCompareVal(___sw1722___,1,g_GMLMathEpsilon,false)==0){___swc1723___=0;}else if(yyCompareVal(___sw1722___,2,g_GMLMathEpsilon,false)==0){___swc1723___=1;}switch(___swc1723___){
case 0:{yyInst(_inst,_other,100648).visible=false;break;}case 1:{yyInst(_inst,_other,100647).visible=false;break;}};}function gml_Object_obj_season_tally_Draw_64(_inst,_other){}// if (string_count("@", l_team[| i])) draw_set_alpha(0.7);
function gml_Object_obj_season_tally_Draw_74(_inst,_other){var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5);var gmlscore_alf=1;if((yyGetBool((yyGetBool(!yyGetBool(global.gmlgamepad)))&&(yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),
100)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),100)))))||(yyGetBool((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,32771)))&&(yyGetBool(gamepad_button_check(global.gmlgp_slot,32772)))))){{yyInst(_inst,_other,100639).visible=true;yyInst(_inst,_other,100640).visible=true;draw_sprite_ext(_inst,172,0,gmltx,gmlty,_inst.gmlsclx,_inst.gmlscly,_inst.gmlrot,_inst.gmlwatcol,1);gmlscore_alf=0.5;};}else {{yyInst(_inst,_other,100639).visible=false;yyInst(_inst,_other,100640).visible=false;
};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_alpha(1);var gmltab=46;gmltx=46;gmlty=24;var gmlspc=8.5;if(yyfless(ds_list_size(_inst.gmll_week),21)){gmlspc=9;};if(yyfless(ds_list_size(_inst.gmll_week),18)){gmlspc=10;};if(yyfless(ds_list_size(_inst.gmll_week),16)){gmlspc=12;};var ___sw1732___=_inst.gmlpage;var ___swc1733___=-1;if(yyCompareVal(___sw1732___,1,g_GMLMathEpsilon,false)==0){___swc1733___=0;}else if(yyCompareVal(___sw1732___,2,g_GMLMathEpsilon,false)==0){___swc1733___=1;
}switch(___swc1733___){case 0:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"tla_Week"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),1),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Week"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),1))),gmlty,gml_Script_s_str(_inst,
_other,"ui_Team"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),5),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),1))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"ui_Team"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),gmlty,gml_Script_s_str(_inst,_other,"tla_Offense"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,
_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Offense"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),gmlty,gml_Script_s_str(_inst,_other,"tla_Defense"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),
1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Defense"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),4))),gmlty,gml_Script_s_str(_inst,_other,"tla_Score"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),7),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),
4))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Score"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),gmlty,gml_Script_s_str(_inst,_other,"short_PointDiff"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),5),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),yyfminus(__yy_gml_errCheck(gmlty),
1),gml_Script_s_str(_inst,_other,"short_PointDiff"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),6))),gmlty,gml_Script_s_str(_inst,_other,"short_Difficulty"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),5),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),6))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,
_other,"short_Difficulty"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),7))),gmlty,gml_Script_s_str(_inst,_other,"short_QtrLength"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),7),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),7))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"short_QtrLength"),
16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty,gml_Script_s_str(_inst,_other,"short_Weather"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"short_Weather"),16777215,16777215,16777215,16777215,
1);var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmll_week));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlty=yyfplus(gmlty,gmlspc);draw_set_alpha(1);if(yyGetBool(string_count("@",ds_list_find_value(_inst.gmll_team,gmli)))){draw_set_alpha(0.7);};draw_set_color(16777215);var gmlstr_wk=real(ds_list_find_value(_inst.gmll_week,gmli));if(yyfgreaterequal(real(ds_list_find_value(_inst.gmll_week,gmli)),yyInst(_inst,_other,97).gmlfirst_week_playoffs)){
gmlstr_wk="PO";};if(yyfequal(real(ds_list_find_value(_inst.gmll_week,gmli)),gml_Script_s_get_week_superbowl(_inst,_other))){gmlstr_wk="RB";};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlstr_wk);gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),1))),gmlty,ds_list_find_value(_inst.gmll_team,gmli));draw_set_alpha(1);draw_set_color(16777215);if(!yyGetBool(yyInst(_inst,_other,100639).visible)){{draw_sprite_ext(_inst,
105,real(ds_list_find_value(_inst.gmll_of,gmli)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),gmlty,1,1,0,global.gmlc_offense,1);draw_sprite_ext(_inst,105,real(ds_list_find_value(_inst.gmll_df,gmli)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),gmlty,1,1,0,global.gmlc_defense,1);};}else {{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),
2))),gmlty,gml_Script_s_get_string_float(_inst,_other,yyfdivide(__yy_gml_errCheck(ds_list_find_value(_inst.gmll_of,gmli)),2),1),global.gmlc_offense,global.gmlc_offense,global.gmlc_offense,global.gmlc_offense,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),gmlty,gml_Script_s_get_string_float(_inst,_other,yyfdivide(__yy_gml_errCheck(ds_list_find_value(_inst.gmll_df,gmli)),2),1),global.gmlc_defense,global.gmlc_defense,
global.gmlc_defense,global.gmlc_defense,1);};};gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),4))),gmlty,ds_list_find_value(_inst.gmll_score,gmli),16777215,16777215,16777215,16777215,gmlscore_alf);var ___sw1734___=ds_list_find_value(_inst.gmll_result,gmli);var ___swc1735___=-1;if(yyCompareVal(___sw1734___,"W",g_GMLMathEpsilon,false)==0){___swc1735___=0;}else if(yyCompareVal(___sw1734___,"L",g_GMLMathEpsilon,
false)==0){___swc1735___=1;}switch(___swc1735___){case 0:{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),gmlty,ds_list_find_value(_inst.gmll_pd,gmli),65280,65280,65280,65280,1);break;}case 1:{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),gmlty,ds_list_find_value(_inst.gmll_pd,gmli),255,255,255,255,1);break;
}default :{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),gmlty,ds_list_find_value(_inst.gmll_pd,gmli),16777215,16777215,16777215,16777215,1);break;}};if(!yyGetBool(is_undefined(ds_list_find_value(_inst.gmll_diff,gmli)))){gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),6))),gmlty,ds_list_find_value(_inst.gmll_diff,gmli));
};if(!yyGetBool(is_undefined(ds_list_find_value(_inst.gmll_qtr,gmli)))){gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),7))),gmlty,ds_list_find_value(_inst.gmll_qtr,gmli));};if(!yyGetBool(is_undefined(ds_list_find_value(_inst.gmll_weather,gmli)))){{var ___sw1736___=ds_list_find_value(_inst.gmll_weather,gmli);var ___swc1737___=-1;if(yyCompareVal(___sw1736___,"R",g_GMLMathEpsilon,false)==0){___swc1737___=0;}else if(yyCompareVal(___sw1736___,
"S",g_GMLMathEpsilon,false)==0){___swc1737___=1;}switch(___swc1737___){case 0:{draw_sprite(_inst,162,1,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty);break;}case 1:{draw_sprite(_inst,162,2,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty);break;}default :{draw_sprite(_inst,162,0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty);break;}};};}else {draw_sprite(_inst,
162,0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty);};if(yyfequal(gmli,yyfminus(__yy_gml_errCheck(ds_list_size(_inst.gmll_pd)),1))){{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),yyfplus(__yy_gml_errCheck(gmlty),12),_inst.gmltotal_of,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),
2))),yyfplus(__yy_gml_errCheck(gmlty),11),_inst.gmltotal_of,global.gmlc_offense,global.gmlc_offense,global.gmlc_offense,global.gmlc_offense,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),yyfplus(__yy_gml_errCheck(gmlty),12),_inst.gmltotal_df,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),yyfplus(__yy_gml_errCheck(gmlty),
11),_inst.gmltotal_df,global.gmlc_defense,global.gmlc_defense,global.gmlc_defense,global.gmlc_defense,1);var gmlstr_pd=(yyfgreater(_inst.gmltotalpd,0)?yyfplus("+",__yy_gml_errCheck(string(_inst.gmltotalpd))):string(_inst.gmltotalpd));gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),yyfplus(__yy_gml_errCheck(gmlty),12),gmlstr_pd,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),
1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),yyfplus(__yy_gml_errCheck(gmlty),11),gmlstr_pd,16777215,16777215,16777215,16777215,1);};};}};break;}case 1:{gmltab=50;gmlspc=8.5;gmlty=yyfminus(gmlty,yyftime(__yy_gml_errCheck(gmlspc),2));var gmldone_qb=false;var gmldone_rb=false;var gmldone_rec=false;var gmldone_ol=false;var gmldone_kk=false;var gmldone_def=false;var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmll_pos));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{var ___sw1738___=ds_list_find_value(_inst.gmll_pos,gmli);var ___swc1739___=-1;if(yyCompareVal(___sw1738___,1,g_GMLMathEpsilon,false)==0){___swc1739___=0;}else if(yyCompareVal(___sw1738___,2,g_GMLMathEpsilon,false)==0){___swc1739___=1;}else if(yyCompareVal(___sw1738___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1738___,4,g_GMLMathEpsilon,false)==0){___swc1739___=2;}else if(yyCompareVal(___sw1738___,5,g_GMLMathEpsilon,false)==0){___swc1739___=3;}else if(yyCompareVal(___sw1738___,
10,g_GMLMathEpsilon,false)==0){___swc1739___=4;}switch(___swc1739___){case 0:{if(!yyGetBool(gmldone_qb)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,1,gmltx,gmlty,gmltab);gmldone_qb=true;};};break;}case 1:{if(!yyGetBool(gmldone_rb)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,2,gmltx,gmlty,gmltab);gmldone_rb=true;};};break;
}case 2:{if(!yyGetBool(gmldone_rec)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,3,gmltx,gmlty,gmltab);gmldone_rec=true;};};break;}case 3:{if(!yyGetBool(gmldone_ol)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,5,gmltx,gmlty,gmltab);gmldone_ol=true;};};break;}case 4:{if(!yyGetBool(gmldone_kk)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),
__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,10,gmltx,gmlty,gmltab);gmldone_kk=true;};};break;}default :{if(!yyGetBool(gmldone_def)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,6,gmltx,gmlty,gmltab);gmldone_def=true;};};break;}};gmlty=yyfplus(gmlty,gmlspc);draw_set_alpha(1);draw_set_color(16777215);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),
21),gmlty,ds_list_find_value(_inst.gmll_pname,gmli));draw_set_halign(1);var gmlcol=gml_Script_s_get_position_colour(_inst,_other,ds_list_find_value(_inst.gmll_pos,gmli));gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,gml_Script_s_get_string_position(_inst,_other,ds_list_find_value(_inst.gmll_pos,gmli)),gmlcol,gmlcol,gmlcol,gmlcol,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),
2))),gmlty,ds_list_find_value(_inst.gmll_games,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),10),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),gmlty,ds_list_find_value(_inst.gmll_attcmp,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),4.5))),gmlty,ds_list_find_value(_inst.gmll_yards,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5.5))),gmlty,ds_list_find_value(_inst.gmll_tds,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),6.5))),gmlty,ds_list_find_value(_inst.gmll_turn,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),7.5))),gmlty,ds_list_find_value(_inst.gmll_sacks_avg,gmli));}};break;}};draw_set_color(16777215);
draw_set_alpha(1);}function gml_Object_obj_snowflake_Create_0(_inst,_other){_inst.speed=random_range(1,2);_inst.direction=(-90);_inst.gmldstep=0;_inst.gmlground=irandom(g_pBuiltIn.room_height);_inst.gmlscl=random_range(1,2);_inst.gmlalf=random_range(0.5,0.9);_inst.gmly2=yyfminus(__yy_gml_errCheck(_inst.y),25);_inst.gmly3=yyfplus(__yy_gml_errCheck(_inst.y),50);_inst.gmlx2=yyfminus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx3=yyfplus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx4=yyfminus(__yy_gml_errCheck(_inst.x),
500);_inst.gmlx5=yyfplus(__yy_gml_errCheck(_inst.x),500);}function gml_Object_obj_snowflake_Step_0(_inst,_other){if(yyfgreater(_inst.y,_inst.gmlground)){{_inst.gmlalf=yyfminus(_inst.gmlalf,0.01);_inst.speed=0;if(yyfless(_inst.gmlalf,0)){instance_destroy(_inst);};};}else {{_inst.gmldstep=yyfplus(_inst.gmldstep,5);_inst.direction=yyfminus((-90),__yy_gml_errCheck(yyftime(10,__yy_gml_errCheck(yyfplus(0.5,__yy_gml_errCheck(dcos(_inst.gmldstep)))))));_inst.gmly2=yyfminus(__yy_gml_errCheck(_inst.y),25);_inst.gmly3=yyfplus(__yy_gml_errCheck(_inst.y),
50);_inst.gmlx2=yyfminus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx3=yyfplus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx4=yyfminus(__yy_gml_errCheck(_inst.x),500);_inst.gmlx5=yyfplus(__yy_gml_errCheck(_inst.x),500);};};}function gml_Object_obj_snowflake_Draw_73(_inst,_other){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.gmlscl,_inst.gmlscl,0,16777215,_inst.gmlalf);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx2,_inst.gmly2,yyftime(__yy_gml_errCheck(_inst.gmlscl),
0.5),yyftime(__yy_gml_errCheck(_inst.gmlscl),0.5),0,16777215,_inst.gmlalf);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx3,_inst.gmly2,yyftime(__yy_gml_errCheck(_inst.gmlscl),0.75),yyftime(__yy_gml_errCheck(_inst.gmlscl),0.75),0,16777215,_inst.gmlalf);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx4,_inst.gmly3,yyftime(__yy_gml_errCheck(_inst.gmlscl),0.5),yyftime(__yy_gml_errCheck(_inst.gmlscl),0.5),0,16777215,_inst.gmlalf);draw_sprite_ext(_inst,_inst.sprite_index,
_inst.image_index,_inst.gmlx5,_inst.gmly3,yyftime(__yy_gml_errCheck(_inst.gmlscl),0.75),yyftime(__yy_gml_errCheck(_inst.gmlscl),0.75),0,16777215,_inst.gmlalf);}function gml_Object_obj_snowflake_Draw_0(_inst,_other){}function gml_Object_obj_btn_audible_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_ChangePlay");}function gml_Object_obj_btn_audible_Step_0(_inst,_other){_inst.gmlnum_auds=gml_Script_s_count_audibles(_inst,_other);{var __yy__v1999=GetWithArray(78);
for(var __yy__v2000 in __yy__v1999){if(!__yy__v1999.hasOwnProperty(__yy__v2000))continue;var __yy__v2001=__yy__v1999[__yy__v2000];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){
gml_Script_s_do_audible(_inst,_other);};};}else {{if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_pressed(1)))){{gml_Script_s_do_audible(_inst,_other);};};};};}function gml_Object_obj_btn_audible_Draw_64(_inst,_other){if(yyfequal(yyInst(_inst,
_other,104).gmlstate,10)){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,yyfminus(__yy_gml_errCheck(_inst.gmlnum_auds),1),_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_audible_Draw_0(_inst,_other){}function gml_Object_obj_btn_audible_Draw_75(_inst,_other){if(yyfequal(yyInst(_inst,
_other,104).gmlstate,10)){return;};event_inherited(_inst,_other);}function gml_Object_obj_btn_audible_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_auds=0;}function gml_Object_obj_btn_timeout_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_StopClock");if(yyfequal(yyInst(_inst,_other,97).gmlop_matchlength,1)){_inst.sprite_index=83;};}function gml_Object_obj_btn_timeout_Step_0(_inst,
_other){_inst.gmlnum_tos=gml_Script_s_count_timeouts(_inst,_other);if((yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlminutes,0)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,104).gmlseconds,0)))){instance_destroy(_inst);};{var __yy__v2002=GetWithArray(78);for(var __yy__v2003 in __yy__v2002){if(!__yy__v2002.hasOwnProperty(__yy__v2003))continue;var __yy__v2004=__yy__v2002[__yy__v2003];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyGetBool(global.gmlgamepad)){
{if((yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){gml_Script_s_do_timeout(_inst,_other);};};}else {{if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_pressed(1)))){
gml_Script_s_do_timeout(_inst,_other);};};};}function gml_Object_obj_btn_timeout_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,yyfminus(__yy_gml_errCheck(_inst.gmlnum_tos),1),_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_timeout_Draw_0(_inst,_other){}function gml_Object_obj_btn_timeout_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_tos=0;}function gml_Object_obj_btn_fieldgoal_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_FieldGoal");if(yyfless(yyInst(_inst,_other,104).gmlscrimmage,0)){_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_Punt");};}function gml_Object_obj_btn_fieldgoal_Step_0(_inst,_other){{var __yy__v2005=GetWithArray(78);for(var __yy__v2006 in __yy__v2005){if(!__yy__v2005.hasOwnProperty(__yy__v2006))continue;
var __yy__v2007=__yy__v2005[__yy__v2006];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(global.gmlgp_slot,_inst.gmlgp_mapped_hidden)))){__yyg_call_method(_inst.gmlonClickAction)(_inst,_other);};};}else {{if(yyGetBool(point_in_rectangle(_inst.gmlmx,
_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_released(1)))){__yyg_call_method(_inst.gmlonClickAction)(_inst,_other);};};};}function gml_Object_obj_btn_fieldgoal_Draw_64(_inst,_other){if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};{var __yy__v2008=GetWithArray(78);for(var __yy__v2009 in __yy__v2008){
if(!__yy__v2008.hasOwnProperty(__yy__v2009))continue;var __yy__v2010=__yy__v2008[__yy__v2009];return;}};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_fieldgoal_Draw_0(_inst,_other){}function gml_Object_obj_btn_fieldgoal_Draw_75(_inst,_other){
if(yyfequal(yyInst(_inst,_other,104).gmlstate,10)){return;};event_inherited(_inst,_other);}function gml_Object_obj_btn_fieldgoal_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_btn_match_kick;_inst.gmlhover=false;_inst.gmlnum_tos=0;}function gml_Object_obj_splash_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"------> Create: obj_splash");window_set_size(960,540);gml_Script_s_refresh_save_slots(_inst,_other);gml_Script_s_find_gamepad(_inst,_other);}function gml_Object_obj_splash_PreCreate_0(_inst,
_other){event_inherited(_inst,_other);_inst.gmlstart_time=0;}function gml_Object_obj_details_Create_0(_inst,_other){gml_Script_slog(_inst,_other,">>> obj_details");gml_Script_s_update_details_screen(_inst,_other);if((yyGetBool(global.gmlbrowser))&&(yyGetBool(yyInst(_inst,_other,97).gmldo_welcome_msg))){gml_Script_s_create_new_save(_inst,_other);};yyInst(_inst,_other,100034).gmltext=gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,"uid"));if((yyGetBool(global.gmlmobile_device))&&(yyGetBool(global.gmlbrowser))){
{yyInst(_inst,_other,100025).gmlactive=false;yyInst(_inst,_other,100026).gmlactive=false;};};yyInst(_inst,_other,100025).gmltext=yyInst(_inst,_other,97).gmlfname;yyInst(_inst,_other,100026).gmltext=yyInst(_inst,_other,97).gmllname;if(yyGetBool(yyInst(_inst,_other,97).gmldo_welcome_msg)){{yyInst(_inst,_other,97).gmldo_welcome_msg=false;if(yyGetBool(global.gmlbrowser)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_Welcome"),gml_Script_s_str(_inst,_other,"ui_Continue"),
"",kgml_Script_s_choose_mode_HC,"",global.gmlc_background,1);}else {{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_Welcome"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_choose_mode_HC,"",global.gmlc_background,1);};};};};yyInst(_inst,_other,100037).gmlstate=yyInst(_inst,_other,97).gmlfave_team_check;yyInst(_inst,_other,100036).gmlskin=yyInst(_inst,_other,97).gmlmy_skin;yyInst(_inst,_other,100036).gmlface_x=yyInst(_inst,_other,97).gmlmyface_x;yyInst(_inst,
_other,100036).gmlface_y=yyInst(_inst,_other,97).gmlmyface_y;gml_Script_slog(_inst,_other,yyfplus("prof_head.skin = ",__yy_gml_errCheck(string(yyInst(_inst,_other,100036).gmlskin))));gml_Script_slog(_inst,_other,yyfplus("prof_head.face_x = ",__yy_gml_errCheck(string(yyInst(_inst,_other,100036).gmlface_x))));gml_Script_slog(_inst,_other,yyfplus("prof_head.face_y = ",__yy_gml_errCheck(string(yyInst(_inst,_other,100036).gmlface_y))));gml_Script_slog(_inst,_other,yyfplus("obj_master.skin = ",__yy_gml_errCheck(string(yyInst(_inst,
_other,97).gmlmy_skin))));gml_Script_slog(_inst,_other,yyfplus("obj_master.face_x = ",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlmyface_x))));gml_Script_slog(_inst,_other,yyfplus("obj_master.face_y = ",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlmyface_y))));gml_Script_s_find_gamepad(_inst,_other);}function gml_Object_obj_details_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlconference=0;}function gml_Object_obj_choose_team_Create_0(_inst,_other){gml_Script_slog(_inst,
_other,yyfplus("obj_choose_team.create:",__yy_gml_errCheck(string(_inst.gmlconference))));var gmlbx=8;var gmlby=72;if(yyGetBool(global.gmlexhibition)){{var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlb)]=instance_create_layer(gmlbx,gmlby,"Instances",53);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,
_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseTeamExhibition;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).sprite_index=114;gmlbx=yyfplus(gmlbx,120);if(yyfgreater(gmlbx,368)){{gmlbx=8;gmlby=yyfplus(gmlby,40);};};}};gml_Script_s_update_team_buttons(_inst,_other);yyInst(_inst,_other,100041).gmltext=gml_Script_s_str(_inst,_other,"ui_ChooseTeam");yyInst(_inst,_other,100044).visible=false;};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlyear,
1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlweek,1)))){{var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlb)]=instance_create_layer(gmlbx,gmlby,"Instances",34);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseTeam;yyInst(_inst,
_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).sprite_index=114;gmlbx=yyfplus(gmlbx,120);if(yyfgreater(gmlbx,368)){{gmlbx=8;gmlby=yyfplus(gmlby,40);};};}};gml_Script_s_update_team_buttons(_inst,_other);yyInst(_inst,_other,100041).gmltext=gml_Script_s_str(_inst,_other,"ui_FavouriteTeam");yyInst(_inst,_other,100044).visible=false;};}else {{yyInst(_inst,_other,100041).gmltext=gml_Script_s_str(_inst,_other,"ui_JobOffers");var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,
gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlb)]=instance_create_layer(gmlbx,gmlby,"Instances",53);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).sprite_index=114;if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_qb_mode_ChooseTeamNew;
}else {yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseTeamNew;};gmlbx=yyfplus(gmlbx,120);if(yyfgreater(gmlbx,368)){{gmlbx=8;gmlby=yyfplus(gmlby,40);};};}};gml_Script_s_update_job_offer_buttons(_inst,_other);var gmloffers=gml_Script_s_count_joboffers(_inst,_other);var gmlwon_rb=gml_Script_s_count_achievement(_inst,_other,"ACH_WIN_RETROBOWL1");var gmlmsg="msg_JobOffers_1";if((yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,
3)))||(yyGetBool(yyfgreater(gmloffers,5)))){{gmlmsg="msg_JobOffers_2";if((yyGetBool(yyfgreater(gmloffers,10)))||(yyGetBool(gmlwon_rb))){gmlmsg="msg_JobOffers_3";};if((yyGetBool(yyfgreater(gmloffers,20)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,5)))){gmlmsg="msg_JobOffers_4";};};};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gmlmsg=string_replace(gmlmsg,"msg_JobOffers_","msg_JobOffers_QB_");};if(yyfequal(ds_list_size(yyInst(_inst,_other,97).gmllist_teams_rejected),0)){gml_Script_s_create_message(_inst,
_other,"",gml_Script_s_str(_inst,_other,gmlmsg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};yyInst(_inst,_other,100043).gmltext=gml_Script_s_get_string_conference(_inst,_other,0);yyInst(_inst,_other,100042).gmltext=gml_Script_s_get_string_conference(_inst,_other,1);}function gml_Object_obj_choose_team_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlconference=0;}function gml_Object_obj_choose_face_Create_0(_inst,_other){
var gml_x=24;var gml_y=52;var gmlskn=0;var gmlfx=0;var gmlfy=0;var gmlfcount=0;var gmlbcount=0;var gmlmax_count=96;if(yyGetBool(yyInst(_inst,_other,97).gmlface_type_coach)){gmlmax_count=36;};_inst.gmlmax_pages=ceil(yyfdivide(__yy_gml_errCheck(gmlmax_count),24));yyInst(_inst,_other,97).gmlface_page=clamp(yyInst(_inst,_other,97).gmlface_page,1,_inst.gmlmax_pages);yyInst(_inst,_other,100050).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Page"))," "),__yy_gml_errCheck(string(yyInst(_inst,
_other,97).gmlface_page)))," / "),__yy_gml_errCheck(string(_inst.gmlmax_pages)));var gmlpg=0;for(;yyfless(gmlpg,_inst.gmlmax_pages);(g_yyPrePostObject__=gmlpg,gmlpg=(g_yyPrePostObject__ instanceof Long?gmlpg.add(1):++gmlpg),g_yyPrePostObject__)){{var gmlr=0;for(;yyfless(gmlr,4);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmli=0;for(;yyfless(gmli,6);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),
g_yyPrePostObject__)){{if((yyGetBool(yyfequal(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlface_page),1),gmlpg)))&&(yyGetBool(yyfless(gmlfcount,gmlmax_count)))){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlbcount)]=instance_create_layer(gml_x,gml_y,"Instances",85);gml_x=yyfplus(gml_x,73);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlskin=gmlskn;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,
_inst.gmlbtn)]).gmlface_x=gmlfx;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlface_y=gmlfy;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseFaceDone;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlcoach_heads=yyInst(_inst,_other,97).gmlface_type_coach;(g_yyPrePostObject__=gmlbcount,gmlbcount=(g_yyPrePostObject__ instanceof Long?gmlbcount.add(1):++gmlbcount),
g_yyPrePostObject__);};};(g_yyPrePostObject__=gmlfx,gmlfx=(g_yyPrePostObject__ instanceof Long?gmlfx.add(1):++gmlfx),g_yyPrePostObject__);(g_yyPrePostObject__=gmlfcount,gmlfcount=(g_yyPrePostObject__ instanceof Long?gmlfcount.add(1):++gmlfcount),g_yyPrePostObject__);var ___sw1742___=yyInst(_inst,_other,97).gmlface_type_coach;var ___swc1743___=-1;if(yyCompareVal(___sw1742___,0,g_GMLMathEpsilon,false)==0){___swc1743___=0;}else if(yyCompareVal(___sw1742___,1,g_GMLMathEpsilon,false)==0){___swc1743___=1;}switch(___swc1743___){
case 0:{if(yyfgreater(gmlfx,7)){{gmlfx=0;(g_yyPrePostObject__=gmlfy,gmlfy=(g_yyPrePostObject__ instanceof Long?gmlfy.add(1):++gmlfy),g_yyPrePostObject__);};};break;}case 1:{if(yyfgreater(gmlfx,8)){{gmlfx=0;(g_yyPrePostObject__=gmlfy,gmlfy=(g_yyPrePostObject__ instanceof Long?gmlfy.add(1):++gmlfy),g_yyPrePostObject__);};};break;}};if(yyfequal(gmlfcount,64)){{gmlskn=1;gmlfx=0;gmlfy=0;};};if(yyfequal(gmlfcount,72)){{gmlskn=2;gmlfx=0;gmlfy=0;};};}};if(yyfequal(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,
97).gmlface_page),1),gmlpg)){{gml_x=24;gml_y=yyfplus(gml_y,48);};};}};}};{var __yy__v2011=GetWithArray(85);for(var __yy__v2012 in __yy__v2011){if(!__yy__v2011.hasOwnProperty(__yy__v2012))continue;var __yy__v2013=__yy__v2011[__yy__v2012];if(yyfequal(__yy__v2013.gmlface_x,(-1))){instance_destroy(__yy__v2013);};}};gml_Script_s_find_default_button(_inst,_other,true);}function gml_Object_obj_team_editor_Create_0(_inst,_other){gml_Script_slog(_inst,_other,yyfplus("obj_team_editor.create:",__yy_gml_errCheck(string(yyInst(_inst,
_other,97).gmledit_conf))));var gmlbx=44;var gmlby=72;var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlb)]=instance_create_layer(gmlbx,gmlby,"Instances",34);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_EditTeam;yyInst(_inst,_other,
_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).sprite_index=114;gmlbx=yyfplus(gmlbx,108);if(yyfgreater(gmlbx,378)){{gmlbx=44;gmlby=yyfplus(gmlby,38);};};}};yyInst(_inst,_other,100554).gmltext=gml_Script_s_str(_inst,_other,yyfplus("ui_SaveSlot",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot")))));gml_Script_s_update_team_edit_buttons(_inst,_other);if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename1))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_1.txt"))))){
yyInst(_inst,_other,100546).gmlactive=false;};if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename2))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_2.txt"))))){yyInst(_inst,_other,100547).gmlactive=false;};if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename3))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_3.txt"))))){yyInst(_inst,_other,100552).gmlactive=false;};if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename4))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_4.txt"))))){
yyInst(_inst,_other,100553).gmlactive=false;};if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename5))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_5.txt"))))){yyInst(_inst,_other,100555).gmlactive=false;};var ___sw1746___=ds_map_find_value(yyInst(_inst,_other,97).gmlmap_options,"saveslot");var ___swc1747___=-1;if(yyCompareVal(___sw1746___,1,g_GMLMathEpsilon,false)==0){___swc1747___=0;}else if(yyCompareVal(___sw1746___,2,g_GMLMathEpsilon,false)==0){___swc1747___=1;}else if(yyCompareVal(___sw1746___,
3,g_GMLMathEpsilon,false)==0){___swc1747___=2;}else if(yyCompareVal(___sw1746___,4,g_GMLMathEpsilon,false)==0){___swc1747___=3;}else if(yyCompareVal(___sw1746___,5,g_GMLMathEpsilon,false)==0){___swc1747___=4;}switch(___swc1747___){case 0:{yyInst(_inst,_other,100546).gmlactive=false;yyInst(_inst,_other,100546).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 1:{yyInst(_inst,_other,100547).gmlactive=false;yyInst(_inst,_other,100547).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;
}case 2:{yyInst(_inst,_other,100552).gmlactive=false;yyInst(_inst,_other,100552).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 3:{yyInst(_inst,_other,100553).gmlactive=false;yyInst(_inst,_other,100553).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 4:{yyInst(_inst,_other,100555).gmlactive=false;yyInst(_inst,_other,100555).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}};}function gml_Object_obj_team_editor_PreCreate_0(_inst,_other){event_inherited(_inst,
_other);_inst.gmlconference=0;}function gml_Object_obj_edit_team_Create_0(_inst,_other){_inst.gmlkittype=0;_inst.gmluid=ds_map_find_value(yyInst(_inst,_other,97).gmledit_team,"uid");gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmluid,100108,0,"");gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmluid,100109,1,"");gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmluid,100111,2,"");gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmluid,100112,3,"");_inst.gmlcurrent_uni=100108;gml_Script_s_set_up_edit_screen(_inst,
_other);}function gml_Object_obj_edit_team_Step_0(_inst,_other){if(yyfgreater(_inst.gmlnew_col,(-1))){{gml_Script_slog(_inst,_other,yyfplus("New colour = ",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col))));var ___sw1750___=_inst.gmlnewpick;var ___swc1751___=-1;if(yyCompareVal(___sw1750___,0,g_GMLMathEpsilon,false)==0){___swc1751___=0;}else if(yyCompareVal(___sw1750___,1,g_GMLMathEpsilon,false)==0){___swc1751___=1;}else if(yyCompareVal(___sw1750___,2,g_GMLMathEpsilon,false)==0){
___swc1751___=2;}else if(yyCompareVal(___sw1750___,3,g_GMLMathEpsilon,false)==0){___swc1751___=3;}else if(yyCompareVal(___sw1750___,4,g_GMLMathEpsilon,false)==0){___swc1751___=4;}else if(yyCompareVal(___sw1750___,5,g_GMLMathEpsilon,false)==0){___swc1751___=5;}else if(yyCompareVal(___sw1750___,6,g_GMLMathEpsilon,false)==0){___swc1751___=6;}else if(yyCompareVal(___sw1750___,7,g_GMLMathEpsilon,false)==0){___swc1751___=7;}else if(yyCompareVal(___sw1750___,8,g_GMLMathEpsilon,false)==0){___swc1751___=8;}switch(___swc1751___){
case 0:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_helmet=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 1:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_logo=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 2:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_shirt=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 3:{yyInst(_inst,_other,
_inst.gmlcurrent_uni).gmlhex_sleeve=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 4:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_pants=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 5:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_stripe=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 6:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_socks1=yyfplus("$",
__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 7:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_socks2=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 8:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_endzone=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}};_inst.gmlnew_col=(-1);gml_Script_s_convert_uniform_colours_all(_inst,_other,_inst.gmlcurrent_uni);
gml_Script_s_set_up_edit_screen(_inst,_other);};};}function gml_Object_obj_edit_team_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlnew_col=(-1);_inst.gmlnew_hexcol="0";_inst.gmlnewpick=0;}function gml_Object_obj_colbox_Draw_64(_inst,_other){draw_rectangle(yyfminus(__yy_gml_errCheck(_inst.x),1),yyfminus(__yy_gml_errCheck(_inst.y),1),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),
0);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolor,1);}function gml_Object_obj_colbox_Draw_0(_inst,_other){}function gml_Object_obj_colbox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcolor=new Long(4294967295,0,false);}function gml_Object_obj_colpicker_Create_0(_inst,_other){_inst.gmlsurf=surface_create(480,270);surface_set_target(_inst.gmlsurf);draw_clear_alpha(16777215,0.5);draw_sprite_ext(_inst,_inst.sprite_index,
0,_inst.x,_inst.y,1,1,0,16777215,1);surface_reset_target();g_pBuiltIn.view_surface_id[__yy_gml_array_check_index_set(0)]=_inst.gmlsurf;_inst.gmlgp_x=240;_inst.gmlgp_y=135;_inst.gmlgp_mp=2;}function gml_Object_obj_colpicker_Step_0(_inst,_other){var gmlnew_pick=false;if(yyGetBool(global.gmlgamepad)){{if(yyfgreater(global.gmlaxisl_force,0.2)){_inst.gmlgp_mp=yyfplus(_inst.gmlgp_mp,0.12);}else {_inst.gmlgp_mp=yyfminus(_inst.gmlgp_mp,1);};_inst.gmlgp_mp=clamp(_inst.gmlgp_mp,2,7);if(yyfgreater(abs(global.gmlaxisl_h),
0.2)){_inst.gmlgp_x=yyfplus(_inst.gmlgp_x,yyftime(__yy_gml_errCheck(global.gmlaxisl_h),__yy_gml_errCheck(_inst.gmlgp_mp)));};if(yyfgreater(abs(global.gmlaxisl_v),0.2)){_inst.gmlgp_y=yyfplus(_inst.gmlgp_y,yyftime(__yy_gml_errCheck(global.gmlaxisl_v),__yy_gml_errCheck(_inst.gmlgp_mp)));};_inst.gmlgp_x=clamp(_inst.gmlgp_x,0,480);_inst.gmlgp_y=clamp(_inst.gmlgp_y,0,270);if(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,global.gmlgp_select))){gmlnew_pick=true;}else {if(yyGetBool(gamepad_button_check_released(global.gmlgp_slot,
global.gmlgp_back))){{surface_free(_inst.gmlsurf);instance_destroy(_inst);gml_Script_s_msg_clear(_inst,_other);};};};};}else {if(yyGetBool(mouse_check_button_released(1))){gmlnew_pick=true;};};if(yyGetBool(gmlnew_pick)){{if(yyGetBool(global.gmlgamepad)){yyInst(_inst,_other,129).gmlnew_col=surface_getpixel(_inst.gmlsurf,_inst.gmlgp_x,_inst.gmlgp_y);}else {yyInst(_inst,_other,129).gmlnew_col=surface_getpixel(_inst.gmlsurf,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y());};if(yyfequal(yyInst(_inst,
_other,129).gmlnew_col,16738348)){yyInst(_inst,_other,129).gmlnew_col=(-1);};surface_free(_inst.gmlsurf);instance_destroy(_inst);gml_Script_s_msg_clear(_inst,_other);};};}function gml_Object_obj_colpicker_Draw_64(_inst,_other){if(yyGetBool(surface_exists(_inst.gmlsurf))){{draw_surface(_inst.gmlsurf,0,0);if(yyGetBool(global.gmlgamepad)){{draw_sprite(_inst,271,0,_inst.gmlgp_x,_inst.gmlgp_y);};};};}else {{instance_destroy(_inst);gml_Script_s_msg_clear(_inst,_other);};};}function gml_Object_obj_uniform_Create_0(_inst,
_other){gml_Script_s_shader_get_uniforms(_inst,_other);var gmlcolSkin=gml_Script_s_get_skin_colour_by_index(_inst,_other,1);_inst.gmlcol_skin_r=yyfdivide(__yy_gml_errCheck(color_get_red(gmlcolSkin)),255);_inst.gmlcol_skin_g=yyfdivide(__yy_gml_errCheck(color_get_green(gmlcolSkin)),255);_inst.gmlcol_skin_b=yyfdivide(__yy_gml_errCheck(color_get_blue(gmlcolSkin)),255);}function gml_Object_obj_uniform_Draw_64(_inst,_other){gml_Script_s_shader_set_uniforms(_inst,_other);if(yyGetBool(_inst.gmlfacing_right)){
draw_sprite_ext(_inst,166,_inst.gmlbackground_im,_inst.x,_inst.y,_inst.gmlscale,_inst.gmlscale,0,16777215,1);}else {draw_sprite_ext(_inst,166,_inst.gmlbackground_im,_inst.x,_inst.y,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlscale)),_inst.gmlscale,0,16777215,1);};shader_reset();}function gml_Object_obj_uniform_Draw_0(_inst,_other){}function gml_Object_obj_uniform_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhex_helmet="$000000";_inst.gmlhex_logo="$000000";_inst.gmlhex_jersey="$000000";
_inst.gmlhex_sleeve="$000000";_inst.gmlhex_pants="$000000";_inst.gmlhex_stripe="$000000";_inst.gmlhex_socks1="$000000";_inst.gmlhex_socks2="$000000";_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(3)]=0;_inst.gmllogo=__yy_gml_array_check(_inst.gmllogo,2321711084);_inst.gmllogo[__yy_gml_array_check_index_set(3)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsleeve=__yy_gml_array_check(_inst.gmlsleeve,
3111731137);_inst.gmlsleeve[__yy_gml_array_check_index_set(3)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(3)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(3)]=0;_inst.gmlstripe=__yy_gml_array_check(_inst.gmlstripe,2849462600);_inst.gmlstripe[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsocks1=__yy_gml_array_check(_inst.gmlsocks1,1193444439);_inst.gmlsocks1[__yy_gml_array_check_index_set(3)]=0;
_inst.gmlsocks2=__yy_gml_array_check(_inst.gmlsocks2,1812977556);_inst.gmlsocks2[__yy_gml_array_check_index_set(3)]=0;_inst.gmlfacing_right=true;_inst.gmlscale=2;_inst.gmlbackground_im=0;_inst.gmlname="None";_inst.gmltla="None";_inst.gmlcleats=__yy_gml_array_check(_inst.gmlcleats,2556554615);_inst.gmlcleats[__yy_gml_array_check_index_set(3)]=0;_inst.gmlhex_endzone="$000000";_inst.gmlendzone=__yy_gml_array_check(_inst.gmlendzone,3083311111);_inst.gmlendzone[__yy_gml_array_check_index_set(3)]=0;_inst.gmlrainfall=0;
_inst.gmlsnowfall=0;_inst.gmlroof=false;}function gml_Object_obj_frontoffice_Create_0(_inst,_other){yyInst(_inst,_other,97).gmlfa_page=1;if(yyGetBool(yyInst(_inst,_other,97).gmlintro)){{yyInst(_inst,_other,100179).gmlactive=false;yyInst(_inst,_other,100176).gmlactive=false;yyInst(_inst,_other,100175).gmlactive=false;};};yyInst(_inst,_other,100157).gmltext="";yyInst(_inst,_other,100158).gmltext="";yyInst(_inst,_other,100159).gmltext="";if(yyfless(yyInst(_inst,_other,97).gmlfacility_stadium,10)){yyInst(_inst,
_other,100157).gmltext=string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfacility_stadium),1));}else {yyInst(_inst,_other,100157).gmlactive=false;};if(yyfless(yyInst(_inst,_other,97).gmlfacility_training,10)){yyInst(_inst,_other,100158).gmltext=string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfacility_training),1));}else {yyInst(_inst,_other,100158).gmlactive=false;};if(yyfless(yyInst(_inst,_other,97).gmlfacility_rehab,10)){yyInst(_inst,_other,100159).gmltext=string(yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfacility_rehab),1));}else {yyInst(_inst,_other,100159).gmlactive=false;};var gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst,_other,97).gmlmyteam_id,gmluniform,0,"");yyInst(_inst,_other,100180).gmlpmap=gml_Script_s_get_staff(_inst,_other,100);yyInst(_inst,_other,100168).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);yyInst(_inst,_other,100167).gmlpmap=gml_Script_s_get_staff(_inst,
_other,102);{var __yy__v2014=GetWithArray(100180);for(var __yy__v2015 in __yy__v2014){if(!__yy__v2014.hasOwnProperty(__yy__v2015))continue;var __yy__v2016=__yy__v2014[__yy__v2015];gml_Script_s_set_up_uniform_profile(__yy__v2016,_inst,gmluniform);}};{var __yy__v2017=GetWithArray(100168);for(var __yy__v2018 in __yy__v2017){if(!__yy__v2017.hasOwnProperty(__yy__v2018))continue;var __yy__v2019=__yy__v2017[__yy__v2018];gml_Script_s_set_up_uniform_profile(__yy__v2019,_inst,gmluniform);}};{var __yy__v2020=GetWithArray(100167);
for(var __yy__v2021 in __yy__v2020){if(!__yy__v2020.hasOwnProperty(__yy__v2021))continue;var __yy__v2022=__yy__v2020[__yy__v2021];gml_Script_s_set_up_uniform_profile(__yy__v2022,_inst,gmluniform);}};yyInst(_inst,_other,100171).gmltext=gml_Script_s_get_string_picks(_inst,_other,false);gml_Script_s_check_intro(_inst,_other);if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlintro,0)))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmlmyface_x,0)))){gml_Script_s_msg(_inst,_other,gml_Script_s_str(_inst,_other,
"msg_NeedBossHead"));};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100176).visible=false;yyInst(_inst,_other,100174).visible=false;yyInst(_inst,_other,100179).visible=false;instance_create_layer(yyInst(_inst,_other,100174).x,yyInst(_inst,_other,100174).y,"Instances",20,__yy_gml_object_create(_inst,(_inst.gml___struct___29=__yy_method(_inst,gml_Script____struct___29_gml_Object_obj_frontoffice_Create_0)),kgml_Script_btn_click_Boost_Salary_Cap,string(100)));yyInst(_inst,
_other,100170).visible=false;yyInst(_inst,_other,100171).visible=false;yyInst(_inst,_other,100172).visible=false;yyInst(_inst,_other,100175).x=yyInst(_inst,_other,100170).x;if(yyGetBool(global.gmlmobile_device)){{yyInst(_inst,_other,100177).x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,100175).x),40);};};};};}function gml_Script____struct___29_gml_Object_obj_frontoffice_Create_0(_inst,_other){if(_inst.__type=="Object"){_inst.__type="gml_Script____struct___29_gml_Object_obj_frontoffice_Create_0";
}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___29_gml_Object_obj_frontoffice_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlimage=93;_inst.gmltext=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=1.9393;}}}}function gml_Object_obj_freeagents2_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,
_other,100150).visible=false;yyInst(_inst,_other,100149).visible=false;var gmlpage=yyInst(_inst,_other,97).gmlfa_page;gml_Script_s_create_storelist(_inst,_other,false);gml_Script_s_savegame(_inst,_other);var gmli=0;var ___sw1754___=gmlpage;var ___swc1755___=-1;if(yyCompareVal(___sw1754___,2,g_GMLMathEpsilon,false)==0){___swc1755___=0;}switch(___swc1755___){case 0:{yyInst(_inst,_other,100150).visible=true;gmli=10;break;}default :{yyInst(_inst,_other,100149).visible=true;break;}};{var __yy__v2023=GetWithArray(97);
for(var __yy__v2024 in __yy__v2023){if(!__yy__v2023.hasOwnProperty(__yy__v2024))continue;var __yy__v2025=__yy__v2023[__yy__v2024];{var gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,_inst,1,gmlpage);yyInst(_inst,_other,100133).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100127).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,_inst,2,gmlpage);yyInst(_inst,_other,100134).gmlpmap=gmlpmap;
if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100128).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,_inst,3,gmlpage);yyInst(_inst,_other,100135).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100129).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));
};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,_inst,4,gmlpage);yyInst(_inst,_other,100136).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100130).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,
_inst,5,gmlpage);yyInst(_inst,_other,100137).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100131).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,_inst,6,gmlpage);yyInst(_inst,_other,100138).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100132).gmltext=string(ds_map_find_value(gmlpmap,
"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,_inst,7,gmlpage);yyInst(_inst,_other,100140).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100139).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,
_inst,8,gmlpage);yyInst(_inst,_other,100142).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100141).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2025,_inst,10,gmlpage);yyInst(_inst,_other,100144).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,
100143).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);}}};}function gml_Object_obj_viewhires_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);var gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst,_other,97).gmlmyteam_id,gmluniform,
0,"");yyInst(_inst,_other,100578).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);{var __yy__v2026=GetWithArray(100578);for(var __yy__v2027 in __yy__v2026){if(!__yy__v2026.hasOwnProperty(__yy__v2027))continue;var __yy__v2028=__yy__v2026[__yy__v2027];gml_Script_s_set_up_uniform_profile(__yy__v2028,_inst,gmluniform);}};yyInst(_inst,_other,100579).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);{var __yy__v2029=GetWithArray(100579);for(var __yy__v2030 in __yy__v2029){if(!__yy__v2029.hasOwnProperty(__yy__v2030))continue;
var __yy__v2031=__yy__v2029[__yy__v2030];gml_Script_s_set_up_uniform_profile(__yy__v2031,_inst,gmluniform);}};gml_Script_s_create_hirelist(_inst,_other,false,false);{var __yy__v2032=GetWithArray(97);for(var __yy__v2033 in __yy__v2032){if(!__yy__v2032.hasOwnProperty(__yy__v2033))continue;var __yy__v2034=__yy__v2032[__yy__v2033];{yyInst(_inst,_other,100571).gmlpmap=ds_list_find_value(__yy__v2034.gmlhirelist,0);yyInst(_inst,_other,100572).gmlpmap=ds_list_find_value(__yy__v2034.gmlhirelist,1);yyInst(_inst,
_other,100573).gmlpmap=ds_list_find_value(__yy__v2034.gmlhirelist,2);yyInst(_inst,_other,100574).gmlpmap=ds_list_find_value(__yy__v2034.gmlhirelist,3);yyInst(_inst,_other,100580).gmlpmap=ds_list_find_value(__yy__v2034.gmlhirelist,4);yyInst(_inst,_other,100581).gmlpmap=ds_list_find_value(__yy__v2034.gmlhirelist,5);yyInst(_inst,_other,100582).gmlpmap=ds_list_find_value(__yy__v2034.gmlhirelist,6);yyInst(_inst,_other,100583).gmlpmap=ds_list_find_value(__yy__v2034.gmlhirelist,7);}}};}function gml_Object_obj_home_Create_0(_inst,
_other){gml_Script_slog(_inst,_other,"------> Create: obj_home");gml_Script_s_update_game_title(_inst,_other);if((yyGetBool(global.gmlpoki))&&(yyGetBool(!yyGetBool(global.gmlpoki_gameplay)))){{gml_Script__poki_gameplay_start(_inst,_other);global.gmlpoki_gameplay=true;};};var ___sw1762___=yyInst(_inst,_other,97).gmlretrobowlwinner;var ___swc1763___=-1;if(yyCompareVal(___sw1762___,(-1),g_GMLMathEpsilon,false)==0){___swc1763___=0;}else if(yyCompareVal(___sw1762___,1,g_GMLMathEpsilon,false)==0){___swc1763___=1;
}switch(___swc1763___){case 0:{yyInst(_inst,_other,97).gmlretrobowlwinner=0;gml_Script_s_do_player_awards(_inst,_other);break;}case 1:{yyInst(_inst,_other,97).gmlretrobowlwinner=0;room_goto(33);return;}};if(!yyGetBool(instance_exists(103))){{instance_create_layer(0,0,"Instances",103);};};yyInst(_inst,_other,97).gmlroster_from_store=false;yyInst(_inst,_other,97).gmlviewing_hof_players=false;yyInst(_inst,_other,97).gmlforce_uniform_sel1=0;yyInst(_inst,_other,97).gmlforce_uniform_sel2=0;yyInst(_inst,
_other,100235).hspeed=(-1.5);yyInst(_inst,_other,100235).gmltext=gml_Script_s_get_ticker_text(_inst,_other);gml_Script_s_update_music(_inst,_other);var gmllayer_fm=layer_get_id("Instances_FM");var gmllayer_qb=layer_get_id("Instances_QB");var ___sw1764___=yyInst(_inst,_other,97).gmlqb_mode;var ___swc1765___=-1;if(yyCompareVal(___sw1764___,0,g_GMLMathEpsilon,false)==0){___swc1765___=0;}else if(yyCompareVal(___sw1764___,1,g_GMLMathEpsilon,false)==0){___swc1765___=1;}switch(___swc1765___){case 0:{layer_set_visible(gmllayer_fm,
true);layer_set_visible(gmllayer_qb,false);break;}case 1:{layer_set_visible(gmllayer_fm,false);layer_set_visible(gmllayer_qb,true);break;}};yyInst(_inst,_other,100229).gmltext=gml_Script_s_str(_inst,_other,"ui_Continue");if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,97).gmlyear,1)))){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlweek,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,
97).gmlcollege_admissions_draft_round,0)))){yyInst(_inst,_other,100229).gmltext=gml_Script_s_str(_inst,_other,"ui_Draft");};};}else {{if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlweek,1)))&&(yyGetBool(yyfless(yyInst(_inst,_other,97).gmldraft_round,4)))&&(yyGetBool(yyfless(ds_list_size(yyInst(_inst,_other,97).gmlfreeagentlist),1)))){yyInst(_inst,_other,100229).gmltext=gml_Script_s_str(_inst,_other,"ui_Draft");};};};};};if(yyfequal(yyInst(_inst,_other,97).gmlstage,(-11))){yyInst(_inst,_other,100229).gmltext=gml_Script_s_str(_inst,
_other,"ui_DraftCollege");};gml_Script_s_populate_division(_inst,_other,100232,yyInst(_inst,_other,97).gmlmyconference,yyInst(_inst,_other,97).gmlmydivision);if(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(global.gmlg_savedelay),5000))){{gml_Script_s_savegame(_inst,_other);if(yyfequal(yyInst(_inst,_other,97).gmlweek,1)){gml_Script_s_save_backup(_inst,_other);};global.gmlg_savedelay=g_pBuiltIn.get_current_time();};};var ___sw1766___=yyInst(_inst,_other,97).gmlintro;var ___swc1767___=-1;
if(yyCompareVal(___sw1766___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1766___,2,g_GMLMathEpsilon,false)==0){___swc1767___=0;}else if(yyCompareVal(___sw1766___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1766___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1766___,5,g_GMLMathEpsilon,false)==0){___swc1767___=1;}else if(yyCompareVal(___sw1766___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1766___,7,g_GMLMathEpsilon,false)==0){___swc1767___=2;}switch(___swc1767___){case 0:{yyInst(_inst,
_other,100227).gmlflash=true;yyInst(_inst,_other,100233).gmlactive=false;yyInst(_inst,_other,100229).gmlactive=false;yyInst(_inst,_other,100234).gmlactive=false;break;}case 1:{yyInst(_inst,_other,100233).gmlflash=true;yyInst(_inst,_other,100229).gmlactive=false;yyInst(_inst,_other,100234).gmlactive=false;break;}case 2:{yyInst(_inst,_other,100229).gmlflash=true;break;}default :{break;}};gml_Script_s_check_for_news(_inst,_other);if(yyfgreaterequal(gml_Script_s_get_morale(_inst,_other),100)){gml_Script_s_complete_achievement(_inst,
_other,"ACH_MORALE100");};if(yyfgreaterequal(yyInst(_inst,_other,97).gmlfans,100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FANS100");};if(yyfgreaterequal(gml_Script_s_get_team_defense(_inst,_other,yyInst(_inst,_other,97).gmlmyteam),10)){gml_Script_s_complete_achievement(_inst,_other,"ACH_DEFENSE5");};if(yyfgreaterequal(gml_Script_s_get_team_offense(_inst,_other,yyInst(_inst,_other,97).gmlmyteam),10)){gml_Script_s_complete_achievement(_inst,_other,"ACH_OFFENSE5");};gml_Script_s_check_repeat_retrobowls(_inst,
_other);if(yyGetBool(global.gmlmobile_device)){os_powersave_enable(true);};gml_Script_s_clear_last_selected_history(_inst,_other);gml_Script_s_update_btn_bengrams(_inst,_other);gml_Script_s_find_gamepad(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{};};}function gml_Object_obj_home_Step_0(_inst,_other){if(yyfless(yyInst(_inst,_other,100235).x,(-500))){{yyInst(_inst,_other,100235).x=yyfplus(__yy_gml_errCheck(display_get_gui_width()),500);yyInst(_inst,_other,100235).gmltext=gml_Script_s_get_ticker_text(_inst,
_other);};};}function gml_Object_obj_home_Draw_0(_inst,_other){}function gml_Object_obj_options_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_options.create");yyInst(_inst,_other,100290).hspeed=(-1.5);draw_set_font(global.gmlfnt_small_flex);_inst.gmlwcred=gml_Script_string_hd_width(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Credits"));gml_Script_s_update_options(_inst,_other);var gmllay_id_mob=layer_get_id("Links_Mobile");var gmllay_id_brow=layer_get_id("Links_Browser");var gmllay_id_console=layer_get_id("Instances_ConsoleBuild");
var gmllay_id_box=layer_get_id("Instances_Box");var gmllay_id_exhibition=layer_get_id("Exhibition");layer_set_visible(gmllay_id_mob,false);layer_set_visible(gmllay_id_brow,false);layer_set_visible(gmllay_id_console,false);layer_set_visible(gmllay_id_box,false);layer_set_visible(gmllay_id_exhibition,false);if(yyGetBool(global.gmlbrowser)){{layer_set_visible(gmllay_id_brow,true);layer_set_visible(gmllay_id_exhibition,true);};}else {if(yyGetBool(global.gmlconsole_build)){{layer_set_visible(gmllay_id_console,
true);yyInst(_inst,_other,100305).visible=false;yyInst(_inst,_other,100296).visible=false;};}else {if(yyGetBool(global.gmlmobile_device)){{layer_set_visible(gmllay_id_mob,true);layer_set_visible(gmllay_id_box,true);};};};};}function gml_Object_obj_options_Step_0(_inst,_other){if(yyfless(yyInst(_inst,_other,100290).x,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlwcred)))){yyInst(_inst,_other,100290).x=yyfplus(__yy_gml_errCheck(display_get_gui_width()),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlwcred),
0.5)));};}function gml_Object_obj_hof_players_Create_0(_inst,_other){yyInst(_inst,_other,97).gmlviewing_hof_players=true;gml_Script_s_set_up_hof_players_screen(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100208).x=yyInst(_inst,_other,100206).x;yyInst(_inst,_other,100206).visible=false;};};}// str += " @"+opp_map[? "tla"];
function gml_Object_obj_watermark_Create_0(_inst,_other){_inst.gmlcol=gml_Script_s_get_watermark_color(_inst,_other);_inst.gmlsclx=1.1;
_inst.gmlscly=1.1;_inst.gmlrot=random(360);_inst.gmlmsg1="";_inst.gmlmsg2="";_inst.gmlmsg3="";_inst.gmlmsg4="";_inst.gmlmsg5="";_inst.gmlmsg6="";var gmltyp="Html5";if(!yyGetBool(global.gmlbrowser)){{var ___sw1774___=g_pBuiltIn.get_os_type();var ___swc1775___=-1;if(yyCompareVal(___sw1774___,0,g_GMLMathEpsilon,false)==0){___swc1775___=0;}else if(yyCompareVal(___sw1774___,4,g_GMLMathEpsilon,false)==0){___swc1775___=1;}else if(yyCompareVal(___sw1774___,1,g_GMLMathEpsilon,false)==0){___swc1775___=2;}else if(yyCompareVal(___sw1774___,
3,g_GMLMathEpsilon,false)==0){___swc1775___=3;}switch(___swc1775___){case 0:{gmltyp="Windows";break;}case 1:{gmltyp="Android";break;}case 2:{gmltyp="MacOS";break;}case 3:{gmltyp="iOS";break;}};};};yyInst(_inst,_other,100591).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gmltyp)," v"),"1.5.7.4");if(yyGetBool(global.gmlpoki)){yyInst(_inst,_other,100591).gmltext=yyfplus(yyInst(_inst,_other,100591).gmltext," Poki");};var gmltxt_hilite="";var gmltxt_restarts="";_inst.gmlpage=1;{var __yy__v2035=GetWithArray(97);
for(var __yy__v2036 in __yy__v2035){if(!__yy__v2035.hasOwnProperty(__yy__v2036))continue;var __yy__v2037=__yy__v2035[__yy__v2036];{var gmlcount=0;var gmlbigwin=0;var gmltotalpd=0;var gmltotal_of=0;var gmltotal_df=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2037.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v2037.gmlfixturelist,gmli);if(yyfnotequal(ds_map_find_value(gmlmap,"human_win"),
"unplayed")){{var gmlstr=yyfplus("W",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"week"))));var gmlpd=0;var gmlstrengths="";var gmlopp_map=gml_Script_s_get_team_by_id(__yy__v2037,_inst,ds_map_find_value(gmlmap,"home_team"));if(yyfequal(ds_map_find_value(gmlmap,"away_team"),yyInst(_inst,_other,97).gmlmyteam_id)){{gmlstr=yyfplus(gmlstr,yyfplus(" @",__yy_gml_errCheck(ds_map_find_value(gmlopp_map,"tla"))));gmlpd=yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"away_score")),__yy_gml_errCheck(ds_map_find_value(gmlmap,
"home_score")));};}else {{gmlopp_map=gml_Script_s_get_team_by_id(__yy__v2037,_inst,ds_map_find_value(gmlmap,"away_team"));gmlstr=yyfplus(gmlstr,yyfplus(" v",__yy_gml_errCheck(ds_map_find_value(gmlopp_map,"tla"))));gmlpd=yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"home_score")),__yy_gml_errCheck(ds_map_find_value(gmlmap,"away_score")));};};gmlstrengths=string_hash_to_newline(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlstr)," "),__yy_gml_errCheck(gml_Script_s_get_string_record(__yy__v2037,
_inst,gmlopp_map,true)))," O:"),__yy_gml_errCheck(string_format(yyfdivide(__yy_gml_errCheck(real(ds_map_find_value(gmlopp_map,"offense"))),2),1,1)))," D:"),__yy_gml_errCheck(string_format(yyfdivide(__yy_gml_errCheck(real(ds_map_find_value(gmlopp_map,"defense"))),2),1,1))));gmltotal_of=yyfplus(gmltotal_of,real(ds_map_find_value(gmlopp_map,"offense")));gmltotal_df=yyfplus(gmltotal_df,real(ds_map_find_value(gmlopp_map,"defense")));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" ",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,
"away_score")))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"home_score")))));if(yyfless(gmlpd,0)){gmlstr=yyfplus(gmlstr,yyfplus(" ",__yy_gml_errCheck(string(gmlpd))));}else {gmlstr=yyfplus(gmlstr,yyfplus(" +",__yy_gml_errCheck(string(gmlpd))));};gmltotalpd=yyfplus(gmltotalpd,gmlpd);if(yyGetBool(ds_map_exists(gmlmap,"difficulty"))){{var gmldif=ds_map_find_value(gmlmap,"difficulty");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2037,_inst,"ui_Dynamic"),"D");gmldif=string_replace(gmldif,
gml_Script_s_str(__yy__v2037,_inst,"ui_Easy"),"E");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2037,_inst,"ui_Medium"),"M");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2037,_inst,"ui_Hard"),"H");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2037,_inst,"ui_Extreme"),"X");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2037,_inst,"ui_Sim"),"S");gmldif=string_replace(gmldif," ","");gmlstr=yyfplus(gmlstr,yyfplus(" ",__yy_gml_errCheck(gmldif)));};};if(yyGetBool(ds_map_exists(gmlmap,
"op_matchlength"))){{var ___sw1776___=ds_map_find_value(gmlmap,"op_matchlength");var ___swc1777___=-1;if(yyCompareVal(___sw1776___,(-1),g_GMLMathEpsilon,false)==0){___swc1777___=0;}else if(yyCompareVal(___sw1776___,0,g_GMLMathEpsilon,false)==0){___swc1777___=1;}else if(yyCompareVal(___sw1776___,1,g_GMLMathEpsilon,false)==0){___swc1777___=2;}switch(___swc1777___){case 0:{gmlstr=yyfplus(gmlstr," 1m");break;}case 1:{gmlstr=yyfplus(gmlstr," 2m");break;}case 2:{gmlstr=yyfplus(gmlstr," 3m");break;}};};};if(yyGetBool(ds_map_exists(gmlmap,
"weather"))){{var ___sw1778___=ds_map_find_value(gmlmap,"weather");var ___swc1779___=-1;if(yyCompareVal(___sw1778___,0,g_GMLMathEpsilon,false)==0){___swc1779___=0;}else if(yyCompareVal(___sw1778___,1,g_GMLMathEpsilon,false)==0){___swc1779___=1;}else if(yyCompareVal(___sw1778___,2,g_GMLMathEpsilon,false)==0){___swc1779___=2;}switch(___swc1779___){case 0:{break;}case 1:{gmlstr=yyfplus(gmlstr," R");break;}case 2:{gmlstr=yyfplus(gmlstr," S");break;}};};};(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),
g_yyPrePostObject__);if(yyfless(gmlcount,11)){{_inst.gmlmsg1=yyfplus(_inst.gmlmsg1,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstr),"#")));_inst.gmlmsg5=yyfplus(_inst.gmlmsg5,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstrengths),"#")));};}else {{_inst.gmlmsg2=yyfplus(_inst.gmlmsg2,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstr),"#")));_inst.gmlmsg6=yyfplus(_inst.gmlmsg6,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstrengths),"#")));};};if(yyfequal(ds_map_find_value(gmlmap,
"human_win"),"win")){{var gmldiff=abs(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"away_score")),__yy_gml_errCheck(ds_map_find_value(gmlmap,"home_score"))));if(yyfgreater(gmldiff,gmlbigwin)){{gmltxt_hilite=gml_Script_s_str(__yy__v2037,_inst,"msg_WatermarkHighlight");gmltxt_hilite=string_replace(gmltxt_hilite,"$result",yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"away_score"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"home_score")))));if(yyfequal(ds_map_find_value(gmlmap,
"away_team"),__yy__v2037.gmlmyteam_id)){gmltxt_hilite=string_replace(gmltxt_hilite,"$oppname",gml_Script_s_get_team_name_by_id(__yy__v2037,_inst,ds_map_find_value(gmlmap,"home_team")));}else {gmltxt_hilite=string_replace(gmltxt_hilite,"$oppname",gml_Script_s_get_team_name_by_id(__yy__v2037,_inst,ds_map_find_value(gmlmap,"away_team")));};};};};};};};}};var gmlstrpd=string(gmltotalpd);if(yyfgreater(gmlstrpd,0)){gmlstrpd=yyfplus("+",__yy_gml_errCheck(gmlstrpd));};_inst.gmlmsg2=yyfplus(_inst.gmlmsg2,string_hash_to_newline(yyfplus(yyfplus("Total PD: ",
__yy_gml_errCheck(gmlstrpd)),"#")));_inst.gmlmsg2=yyfplus(_inst.gmlmsg2,string_hash_to_newline(yyfplus(yyfplus(yyfplus(yyfplus("Salary: ",__yy_gml_errCheck(string(gml_Script_s_get_salary_total(__yy__v2037,_inst)))),"/"),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(__yy__v2037.gmlsalary_cap),__yy_gml_errCheck(__yy__v2037.gmlboost_salary_cap))))),"#")));_inst.gmlmsg2=yyfplus(_inst.gmlmsg2,string_hash_to_newline(yyfplus(yyfplus("CCs Purchased: ",__yy_gml_errCheck(string(__yy__v2037.gmlseason_credits_purchased))),
"#")));__yy__v2037.gmlroster=gml_Script_s_sort_players(__yy__v2037,_inst,__yy__v2037.gmlroster,4);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2037.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v2037.gmlroster,gmli);var gmlstr=ds_map_find_value(gmlpmap,"lname");_inst.gmlmsg3=yyfplus(_inst.gmlmsg3,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstr),"#")));_inst.gmlmsg4=yyfplus(_inst.gmlmsg4,
string_hash_to_newline(yyfplus(__yy_gml_errCheck(gml_Script_s_get_watermarked_stats(__yy__v2037,_inst,gmlpmap)),"#")));}};_inst.gmlmsg6=yyfplus(_inst.gmlmsg6,string_hash_to_newline(yyfplus(yyfplus("Total OF: ",__yy_gml_errCheck(gml_Script_s_get_string_float(__yy__v2037,_inst,yyfdivide(__yy_gml_errCheck(gmltotal_of),2),1))),"#")));_inst.gmlmsg6=yyfplus(_inst.gmlmsg6,string_hash_to_newline(yyfplus(yyfplus("Total DF: ",__yy_gml_errCheck(gml_Script_s_get_string_float(__yy__v2037,_inst,yyfdivide(__yy_gml_errCheck(gmltotal_df),
2),1))),"#")));gml_Script_slog(__yy__v2037,_inst,yyfplus("games played=",__yy_gml_errCheck(string(gmlcount))));gml_Script_slog(__yy__v2037,_inst,yyfplus("gamestarts=",__yy_gml_errCheck(string(__yy__v2037.gmlgamestarts))));var gmlnum_restarts=yyfminus(__yy_gml_errCheck(__yy__v2037.gmlgamestarts),__yy_gml_errCheck(gmlcount));if(yyfless(gmlnum_restarts,0)){gmlnum_restarts=0;};if(yyfgreater(gmlnum_restarts,0)){{gmltxt_restarts=gml_Script_s_str(__yy__v2037,_inst,"msg_WatermarkRestarts");gmltxt_restarts=string_replace(gmltxt_restarts,
"$num",string(gmlnum_restarts));};};yyInst(_inst,_other,100588).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmlnum_restarts))," "),__yy_gml_errCheck(gml_Script_s_str(__yy__v2037,_inst,"ui_restarts")))," - "),__yy_gml_errCheck(gml_Script_s_generate_uid(__yy__v2037,_inst,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v2037.gmlmyteam,"uid"))),__yy_gml_errCheck(__yy__v2037.gmlyear)),__yy_gml_errCheck(__yy__v2037.gmlweek)),__yy_gml_errCheck(gmlnum_restarts)),
8)));yyInst(_inst,_other,100589).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v2037.gmlmyteam,"name")),"#"),__yy_gml_errCheck(__yy__v2037.gmlfname))," "),__yy_gml_errCheck(__yy__v2037.gmllname));yyInst(_inst,_other,100589).gmltext=yyfplus(yyInst(_inst,_other,100589).gmltext,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("#",__yy_gml_errCheck(gml_Script_s_str(__yy__v2037,_inst,"ui_Year")))," "),__yy_gml_errCheck(string(__yy__v2037.gmlyear)))," "),__yy_gml_errCheck(gml_Script_s_get_string_week(__yy__v2037,
_inst,__yy__v2037.gmlweek))));yyInst(_inst,_other,100589).gmltext=yyfplus(yyInst(_inst,_other,100589).gmltext,yyfplus("#",__yy_gml_errCheck(gml_Script_s_get_string_record(__yy__v2037,_inst,__yy__v2037.gmlmyteam,true))));yyInst(_inst,_other,100589).gmltext=string_hash_to_newline(yyInst(_inst,_other,100589).gmltext);}}};}function gml_Object_obj_watermark_Step_0(_inst,_other){yyInst(_inst,_other,100594).visible=true;yyInst(_inst,_other,100593).visible=true;var ___sw1782___=_inst.gmlpage;var ___swc1783___=-1;
if(yyCompareVal(___sw1782___,1,g_GMLMathEpsilon,false)==0){___swc1783___=0;}else if(yyCompareVal(___sw1782___,3,g_GMLMathEpsilon,false)==0){___swc1783___=1;}switch(___swc1783___){case 0:{yyInst(_inst,_other,100594).visible=false;break;}case 1:{yyInst(_inst,_other,100593).visible=false;break;}};}function gml_Object_obj_watermark_Draw_64(_inst,_other){}function gml_Object_obj_watermark_Draw_74(_inst,_other){var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),
0.5);draw_sprite_ext(_inst,172,0,gmltx,gmlty,_inst.gmlsclx,_inst.gmlscly,_inst.gmlrot,_inst.gmlcol,1);draw_set_font(global.gmlfnt_restart_flex);draw_set_halign(0);draw_set_alpha(0.6);var ___sw1786___=_inst.gmlpage;var ___swc1787___=-1;if(yyCompareVal(___sw1786___,1,g_GMLMathEpsilon,false)==0){___swc1787___=0;}else if(yyCompareVal(___sw1786___,2,g_GMLMathEpsilon,false)==0){___swc1787___=1;}else if(yyCompareVal(___sw1786___,3,g_GMLMathEpsilon,false)==0){___swc1787___=2;}switch(___swc1787___){case 0:{gml_Script_draw_hd_text_ext(_inst,
_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.01),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg1,12,389);gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg2,12,389);break;}case 1:{gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.17),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg4,12,389);draw_set_halign(2);gml_Script_draw_hd_text_ext(_inst,
_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.16),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg3,12,389);break;}case 2:{gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.01),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg5,12,389);gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg6,12,389);break;}};draw_set_alpha(1);}function gml_Object_obj_league_Create_0(_inst,
_other){var ___sw1790___=yyInst(_inst,_other,97).gmlstage;var ___swc1791___=-1;if(yyCompareVal(___sw1790___,5,g_GMLMathEpsilon,false)==0){___swc1791___=0;}switch(___swc1791___){case 0:{yyInst(_inst,_other,100249).gmlimage=128;gml_Script_btn_click_LeaguePanel(_inst,_other,2);break;}default :{gml_Script_btn_click_LeaguePanel(_inst,_other,yyInst(_inst,_other,97).gmlmyconference);break;}};}function gml_Object_obj_league_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlshow_afc=true;}function gml_Object_obj_playoffs_Create_0(_inst,
_other){yyInst(_inst,_other,100311).gmltitle=yyInst(_inst,_other,97).gmlname_conf1;yyInst(_inst,_other,100312).gmltitle=yyInst(_inst,_other,97).gmlname_conf2;var gmllay_id1=layer_get_id("Instances1");var gmllay_id2=layer_get_id("Instances2");layer_set_visible(gmllay_id1,false);layer_set_visible(gmllay_id2,false);yyInst(_inst,_other,100336).visible=true;yyInst(_inst,_other,100338).visible=false;yyInst(_inst,_other,100339).visible=false;if(yyGetBool(yyInst(_inst,_other,97).gmlplayoff_proceed)){{yyInst(_inst,
_other,100336).visible=false;yyInst(_inst,_other,100338).visible=true;yyInst(_inst,_other,100339).visible=true;yyInst(_inst,_other,100339).gmlflash=true;};};if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)){{layer_set_visible(gmllay_id1,true);yyInst(_inst,_other,100337).gmltext=gml_Script_s_str(_inst,_other,"ui_PlayOffs");yyInst(_inst,_other,100335).gmltext=gml_Script_s_str(_inst,_other,"ui_Super#Bowl");var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyInst(_inst,_other,97).gmlfirst_week_playoffs);if(!yyGetBool(gmlfix)){{gml_Script_slog(_inst,_other,"NO PLAY OFFS! Trying to recreate playoffs");gml_Script_s_create_playoffs(_inst,_other);gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyInst(_inst,_other,97).gmlfirst_week_playoffs);};};if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,
"home_team"));yyInst(_inst,_other,100314).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100313).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){{yyInst(_inst,_other,100314).gmlflashtext=true;yyInst(_inst,_other,100313).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmlfirst_week_playoffs)){{yyInst(_inst,_other,100314).gmlalpha=0.5;yyInst(_inst,
_other,100313).gmlalpha=0.5;};};};};};gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100315).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100316).gmltext=ds_map_find_value(gmlteam_home,
"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1))){{yyInst(_inst,_other,100315).gmlflashtext=true;yyInst(_inst,_other,100316).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),1))){{yyInst(_inst,_other,100315).gmlalpha=0.5;yyInst(_inst,_other,100316).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100325).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100324).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfirst_week_playoffs),2))){{yyInst(_inst,_other,100325).gmlflashtext=true;yyInst(_inst,_other,100324).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),2))){{yyInst(_inst,_other,100325).gmlalpha=0.5;yyInst(_inst,_other,100324).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3));
if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100326).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100327).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3))){{yyInst(_inst,
_other,100326).gmlflashtext=true;yyInst(_inst,_other,100327).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),3))){{yyInst(_inst,_other,100326).gmlalpha=0.5;yyInst(_inst,_other,100327).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,
_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100317).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100318).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){{yyInst(_inst,_other,100317).gmlflashtext=true;yyInst(_inst,_other,100318).gmlflashtext=true;
};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),4))){{yyInst(_inst,_other,100317).gmlalpha=0.5;yyInst(_inst,_other,100318).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,
_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100320).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100319).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),5))){{yyInst(_inst,_other,100320).gmlflashtext=true;yyInst(_inst,_other,100319).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfirst_week_playoffs),5))){{yyInst(_inst,_other,100320).gmlalpha=0.5;yyInst(_inst,_other,100319).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,
_other,100328).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100329).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6))){{yyInst(_inst,_other,100328).gmlflashtext=true;yyInst(_inst,_other,100329).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),6))){{yyInst(_inst,_other,
100328).gmlalpha=0.5;yyInst(_inst,_other,100329).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100331).gmltext=ds_map_find_value(gmlteam_away,"tla");
yyInst(_inst,_other,100330).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))){{yyInst(_inst,_other,100331).gmlflashtext=true;yyInst(_inst,_other,100330).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),7))){{yyInst(_inst,_other,100331).gmlalpha=0.5;yyInst(_inst,_other,100330).gmlalpha=0.5;
};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100321).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100322).gmltext=ds_map_find_value(gmlteam_home,
"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8))){{yyInst(_inst,_other,100321).gmlflashtext=true;yyInst(_inst,_other,100322).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),8))){{yyInst(_inst,_other,100321).gmlalpha=0.5;yyInst(_inst,_other,100322).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100332).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100333).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlfirst_week_playoffs),9))){{yyInst(_inst,_other,100332).gmlflashtext=true;yyInst(_inst,_other,100333).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),9))){{yyInst(_inst,_other,100332).gmlalpha=0.5;yyInst(_inst,_other,100333).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10));
if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100323).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100334).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10))){{yyInst(_inst,
_other,100323).gmlflashtext=true;yyInst(_inst,_other,100334).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlfirst_week_playoffs),10))){{yyInst(_inst,_other,100323).gmlalpha=0.5;yyInst(_inst,_other,100334).gmlalpha=0.5;};};};};};};}else {{layer_set_visible(gmllay_id2,true);yyInst(_inst,_other,100337).gmltext=gml_Script_s_str(_inst,_other,"ui_PlayOffPicture");};};{var __yy__v2038=GetWithArray(74);for(var __yy__v2039 in __yy__v2038){
if(!__yy__v2038.hasOwnProperty(__yy__v2039))continue;var __yy__v2040=__yy__v2038[__yy__v2039];{gml_Script_slog(__yy__v2040,_inst,__yy__v2040.gmltext);if(yyfequal(__yy__v2040.gmltext,ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,"tla"))){{__yy__v2040.gmlcolour=global.gmlc_primary;__yy__v2040.gmltcolour=global.gmlc_primary;};};}}};}function gml_Object_obj_playoffs_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlshow_afc=true;}function gml_Object_obj_playoffs2_Create_0(_inst,_other){
yyInst(_inst,_other,100343).gmltitle=yyInst(_inst,_other,97).gmlname_conf1;yyInst(_inst,_other,100359).gmltitle=yyInst(_inst,_other,97).gmlname_conf2;var gmllay_id1=layer_get_id("Instances1");var gmllay_id2=layer_get_id("Instances2");layer_set_visible(gmllay_id1,false);layer_set_visible(gmllay_id2,false);yyInst(_inst,_other,100372).visible=true;yyInst(_inst,_other,100374).visible=false;yyInst(_inst,_other,100375).visible=false;if(yyGetBool(yyInst(_inst,_other,97).gmlplayoff_proceed)){{yyInst(_inst,
_other,100372).visible=false;yyInst(_inst,_other,100374).visible=true;yyInst(_inst,_other,100375).visible=true;if(!yyGetBool(global.gmlgamepad)){yyInst(_inst,_other,100375).gmlflash=true;};};};if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)){{layer_set_visible(gmllay_id1,true);yyInst(_inst,_other,100373).gmltext=gml_Script_s_str(_inst,_other,"ui_PlayOffs");yyInst(_inst,_other,100356).gmltext=gml_Script_s_str(_inst,_other,"ui_Super#Bowl");var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),1));if(!yyGetBool(gmlfix)){{gml_Script_slog(_inst,_other,"NO PLAY OFFS! Trying to recreate playoffs");gml_Script_s_create_playoffs2(_inst,_other);gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),1));};};if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,
_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100345).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100344).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),1))){{yyInst(_inst,_other,100345).gmlflashtext=true;yyInst(_inst,_other,100344).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmllast_week_regular),1))){{yyInst(_inst,_other,100345).gmlalpha=0.5;yyInst(_inst,_other,100344).gmlalpha=0.5;};};};};};gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),2));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,
100346).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100347).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),2))){{yyInst(_inst,_other,100346).gmlflashtext=true;yyInst(_inst,_other,100347).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),2))){{yyInst(_inst,_other,100346).gmlalpha=0.5;
yyInst(_inst,_other,100347).gmlalpha=0.5;};};};};};gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),3));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100358).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100351).gmltext=ds_map_find_value(gmlteam_home,
"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),3))){{yyInst(_inst,_other,100358).gmlflashtext=true;yyInst(_inst,_other,100351).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),3))){{yyInst(_inst,_other,100358).gmlalpha=0.5;yyInst(_inst,_other,100351).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),4));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100361).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100368).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmllast_week_regular),4))){{yyInst(_inst,_other,100361).gmlflashtext=true;yyInst(_inst,_other,100368).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),4))){{yyInst(_inst,_other,100361).gmlalpha=0.5;yyInst(_inst,_other,100368).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),5));if(yyGetBool(gmlfix)){
{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100362).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100363).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),5))){{yyInst(_inst,_other,100362).gmlflashtext=true;
yyInst(_inst,_other,100363).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),5))){{yyInst(_inst,_other,100362).gmlalpha=0.5;yyInst(_inst,_other,100363).gmlalpha=0.5;};};};};};gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),6));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,
"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100371).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100367).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),6))){{yyInst(_inst,_other,100371).gmlflashtext=true;yyInst(_inst,_other,100367).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,
_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),6))){{yyInst(_inst,_other,100371).gmlalpha=0.5;yyInst(_inst,_other,100367).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),7));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,
ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100349).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100348).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),7))){{yyInst(_inst,_other,100349).gmlflashtext=true;yyInst(_inst,_other,100348).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,
97).gmllast_week_regular),7))){{yyInst(_inst,_other,100349).gmlalpha=0.5;yyInst(_inst,_other,100348).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),8));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100350).gmltext=ds_map_find_value(gmlteam_away,
"tla");yyInst(_inst,_other,100357).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),8))){{yyInst(_inst,_other,100350).gmlflashtext=true;yyInst(_inst,_other,100357).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),8))){{yyInst(_inst,_other,100350).gmlalpha=0.5;yyInst(_inst,_other,100357).gmlalpha=0.5;
};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),9));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100365).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100364).gmltext=ds_map_find_value(gmlteam_home,
"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),9))){{yyInst(_inst,_other,100365).gmlflashtext=true;yyInst(_inst,_other,100364).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),9))){{yyInst(_inst,_other,100365).gmlalpha=0.5;yyInst(_inst,_other,100364).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),10));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100366).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100370).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmllast_week_regular),10))){{yyInst(_inst,_other,100366).gmlflashtext=true;yyInst(_inst,_other,100370).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),10))){{yyInst(_inst,_other,100366).gmlalpha=0.5;yyInst(_inst,_other,100370).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),11));if(yyGetBool(gmlfix)){
{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100352).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100353).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),11))){{yyInst(_inst,_other,100352).gmlflashtext=true;
yyInst(_inst,_other,100353).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),11))){{yyInst(_inst,_other,100352).gmlalpha=0.5;yyInst(_inst,_other,100353).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),12));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,
"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100360).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100369).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),12))){{yyInst(_inst,_other,100360).gmlflashtext=true;yyInst(_inst,_other,100369).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,
_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),12))){{yyInst(_inst,_other,100360).gmlalpha=0.5;yyInst(_inst,_other,100369).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),13));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,
_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100354).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100355).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmllast_week_regular),13))){{yyInst(_inst,_other,100354).gmlflashtext=true;yyInst(_inst,_other,100355).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmllast_week_regular),13))){{yyInst(_inst,_other,100354).gmlalpha=0.5;yyInst(_inst,_other,100355).gmlalpha=0.5;};};};};};};}else {{layer_set_visible(gmllay_id2,true);yyInst(_inst,_other,100373).gmltext=gml_Script_s_str(_inst,_other,"ui_PlayOffPicture");};};{var __yy__v2041=GetWithArray(74);for(var __yy__v2042 in __yy__v2041){if(!__yy__v2041.hasOwnProperty(__yy__v2042))continue;var __yy__v2043=__yy__v2041[__yy__v2042];{if(yyfequal(__yy__v2043.gmltext,ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,
"tla"))){{__yy__v2043.gmlcolour=global.gmlc_primary;__yy__v2043.gmltcolour=global.gmlc_primary;};};}}};}function gml_Object_obj_playoffs2_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlshow_afc=true;}function gml_Object_obj_prematch_Create_0(_inst,_other){if(yyfgreater(yyInst(_inst,_other,97).gmlintro,0)){{gml_Script_s_check_intro(_inst,_other);return;};};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gml_Script_s_qb_mode_update_resting(_inst,_other);};gml_Script_s_set_up_uniforms(_inst,
_other);yyInst(_inst,_other,100378).gmltext=gml_Script_s_get_string_week(_inst,_other,0);_inst.gmlteam0=yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,97).gmlteam)];_inst.gmlteam1=yyInst(_inst,_other,97).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,97).gmlteam)];var ___sw1802___=yyInst(_inst,_other,97).gmlforce_uniform_sel1;var ___swc1803___=-1;if(yyCompareVal(___sw1802___,0,g_GMLMathEpsilon,false)==0){___swc1803___=0;}else if(yyCompareVal(___sw1802___,
1,g_GMLMathEpsilon,false)==0){___swc1803___=1;}else if(yyCompareVal(___sw1802___,2,g_GMLMathEpsilon,false)==0){___swc1803___=2;}else if(yyCompareVal(___sw1802___,3,g_GMLMathEpsilon,false)==0){___swc1803___=3;}switch(___swc1803___){case 0:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100382,1,"");break;}case 1:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100382,0,"");break;}case 2:{gml_Script_s_load_uniform_file2(_inst,_other,
ds_map_find_value(_inst.gmlteam0,"uid"),100382,2,"");break;}case 3:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100382,3,"");break;}};var ___sw1804___=yyInst(_inst,_other,97).gmlforce_uniform_sel2;var ___swc1805___=-1;if(yyCompareVal(___sw1804___,0,g_GMLMathEpsilon,false)==0){___swc1805___=0;}else if(yyCompareVal(___sw1804___,1,g_GMLMathEpsilon,false)==0){___swc1805___=1;}else if(yyCompareVal(___sw1804___,2,g_GMLMathEpsilon,false)==0){___swc1805___=2;}else if(yyCompareVal(___sw1804___,
3,g_GMLMathEpsilon,false)==0){___swc1805___=3;}switch(___swc1805___){case 0:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100383,0,"");break;}case 1:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100383,1,"");break;}case 2:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100383,2,"");break;}case 3:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100383,
3,"");break;}};var ___sw1806___=yyInst(_inst,_other,97).gmlforce_uniform_sel1;var ___swc1807___=-1;if(yyCompareVal(___sw1806___,0,g_GMLMathEpsilon,false)==0){___swc1807___=0;}else if(yyCompareVal(___sw1806___,1,g_GMLMathEpsilon,false)==0){___swc1807___=1;}else if(yyCompareVal(___sw1806___,2,g_GMLMathEpsilon,false)==0){___swc1807___=2;}else if(yyCompareVal(___sw1806___,3,g_GMLMathEpsilon,false)==0){___swc1807___=3;}switch(___swc1807___){case 0:{yyInst(_inst,_other,100387).gmltext=gml_Script_s_str(_inst,
_other,"ui_Away");break;}case 1:{yyInst(_inst,_other,100387).gmltext=gml_Script_s_str(_inst,_other,"ui_Home");break;}case 2:{yyInst(_inst,_other,100387).gmltext=gml_Script_s_str(_inst,_other,"ui_Alternate");break;}case 3:{yyInst(_inst,_other,100387).gmltext=gml_Script_s_str(_inst,_other,"ui_Rush");break;}};var ___sw1808___=yyInst(_inst,_other,97).gmlforce_uniform_sel2;var ___swc1809___=-1;if(yyCompareVal(___sw1808___,0,g_GMLMathEpsilon,false)==0){___swc1809___=0;}else if(yyCompareVal(___sw1808___,1,g_GMLMathEpsilon,
false)==0){___swc1809___=1;}else if(yyCompareVal(___sw1808___,2,g_GMLMathEpsilon,false)==0){___swc1809___=2;}else if(yyCompareVal(___sw1808___,3,g_GMLMathEpsilon,false)==0){___swc1809___=3;}switch(___swc1809___){case 0:{yyInst(_inst,_other,100388).gmltext=gml_Script_s_str(_inst,_other,"ui_Home");break;}case 1:{yyInst(_inst,_other,100388).gmltext=gml_Script_s_str(_inst,_other,"ui_Away");break;}case 2:{yyInst(_inst,_other,100388).gmltext=gml_Script_s_str(_inst,_other,"ui_Alternate");break;}case 3:{yyInst(_inst,
_other,100388).gmltext=gml_Script_s_str(_inst,_other,"ui_Rush");break;}};_inst.gmlrecord=__yy_gml_array_check(_inst.gmlrecord,793040019);_inst.gmlrecord[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_string_record(_inst,_other,_inst.gmlteam0,false);_inst.gmldefense=__yy_gml_array_check(_inst.gmldefense,2468049442);_inst.gmldefense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam0);_inst.gmloffense=__yy_gml_array_check(_inst.gmloffense,2881329983);_inst.gmloffense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(_inst,
_other,_inst.gmlteam0);_inst.gmlrecord[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_string_record(_inst,_other,_inst.gmlteam1,false);_inst.gmldefense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam1);_inst.gmloffense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_offense(_inst,_other,_inst.gmlteam1);{var __yy__v2044=GetWithArray(97);for(var __yy__v2045 in __yy__v2044){if(!__yy__v2044.hasOwnProperty(__yy__v2045))continue;var __yy__v2046=__yy__v2044[__yy__v2045];
{__yy__v2046.gmlcol_helmet_home=yyInst(_inst,_other,100383).gmlhelmet;__yy__v2046.gmlcol_logo_home=yyInst(_inst,_other,100383).gmllogo;__yy__v2046.gmlcol_shirt_home=yyInst(_inst,_other,100383).gmlshirt;__yy__v2046.gmlcol_sleeve_home=yyInst(_inst,_other,100383).gmlsleeve;__yy__v2046.gmlcol_pants_home=yyInst(_inst,_other,100383).gmlpants;__yy__v2046.gmlcol_pants_home_b=yyInst(_inst,_other,100383).gmlpants_b;__yy__v2046.gmlcol_stripe_home=yyInst(_inst,_other,100383).gmlstripe;__yy__v2046.gmlcol_socks1_home=yyInst(_inst,
_other,100383).gmlsocks1;__yy__v2046.gmlcol_socks2_home=yyInst(_inst,_other,100383).gmlsocks2;__yy__v2046.gmlcol_endzone_home=yyInst(_inst,_other,100383).gmlendzone;__yy__v2046.gmlcol_helmet_away=yyInst(_inst,_other,100382).gmlhelmet;__yy__v2046.gmlcol_logo_away=yyInst(_inst,_other,100382).gmllogo;__yy__v2046.gmlcol_shirt_away=yyInst(_inst,_other,100382).gmlshirt;__yy__v2046.gmlcol_sleeve_away=yyInst(_inst,_other,100382).gmlsleeve;__yy__v2046.gmlcol_pants_away=yyInst(_inst,_other,100382).gmlpants;
__yy__v2046.gmlcol_pants_away_b=yyInst(_inst,_other,100382).gmlpants_b;__yy__v2046.gmlcol_stripe_away=yyInst(_inst,_other,100382).gmlstripe;__yy__v2046.gmlcol_socks1_away=yyInst(_inst,_other,100382).gmlsocks1;__yy__v2046.gmlcol_socks2_away=yyInst(_inst,_other,100382).gmlsocks2;__yy__v2046.gmlcol_endzone_away=yyInst(_inst,_other,100382).gmlendzone;}}};yyInst(_inst,_other,100384).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Ball"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,97).gmlop_ball),1))));yyInst(_inst,_other,100386).gmlimage_num=yyInst(_inst,_other,97).gmlop_ball;yyInst(_inst,_other,97).gmlsim_action=false;yyInst(_inst,_other,100389).visible=false;if(yyGetBool(yyInst(_inst,_other,97).gmlfr_mode)){yyInst(_inst,_other,100389).visible=true;};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfequal(global.gmldebug,true)))){yyInst(_inst,_other,100389).visible=true;};var gmlrest_text_short="";var gmlrest_text_long="";{var __yy__v2047=GetWithArray(97);
for(var __yy__v2048 in __yy__v2047){if(!__yy__v2047.hasOwnProperty(__yy__v2048))continue;var __yy__v2049=__yy__v2047[__yy__v2048];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2049.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v2049.gmlroster,gmli);if(yyGetBool(gml_Script_s_player_benched(__yy__v2049,_inst,gmlpmap))){{if(yyfnotequal(gmlrest_text_short,"")){gmlrest_text_short=yyfplus(gmlrest_text_short,
", ");};if(yyfnotequal(gmlrest_text_long,"")){gmlrest_text_long=yyfplus(gmlrest_text_long,", ");};gmlrest_text_short=yyfplus(gmlrest_text_short,gml_Script_s_get_string_position(__yy__v2049,_inst,ds_map_find_value(gmlpmap,"position")));gmlrest_text_long=yyfplus(gmlrest_text_long,yyfplus(yyfplus(yyfplus("[",__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v2049,_inst,ds_map_find_value(gmlpmap,"position")))),"] "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));};};}};if(yyfnotequal(gmlrest_text_long,
"")){{yyInst(_inst,_other,100379).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v2049.gmlmyteam,"name"))," "),__yy_gml_errCheck(gml_Script_s_str(__yy__v2049,_inst,"ui_Benched")));if(yyfgreater(string_length(gmlrest_text_long),26)){{if(yyfgreater(string_length(gmlrest_text_short),26)){yyInst(_inst,_other,100380).gmltext=string_copy(gmlrest_text_short,1,26);}else {yyInst(_inst,_other,100380).gmltext=gmlrest_text_short;};};}else {yyInst(_inst,_other,100380).gmltext=gmlrest_text_long;
};};};}}};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{yyInst(_inst,_other,100379).visible=true;yyInst(_inst,_other,100380).visible=true;var ___sw1810___=gml_Script_s_qb_mode_benched_status(_inst,_other);var ___swc1811___=-1;if(yyCompareVal(___sw1810___,1,g_GMLMathEpsilon,false)==0){___swc1811___=0;}else if(yyCompareVal(___sw1810___,2,g_GMLMathEpsilon,false)==0){___swc1811___=1;}switch(___swc1811___){case 0:{yyInst(_inst,_other,100379).gmltitle="BENCHED!";yyInst(_inst,_other,100380).gmltext=string_replace(gml_Script_s_str(_inst,
_other,"msg_benched_relationship"),"$num",string(yyInst(_inst,_other,97).gmlrelationship_boss));yyInst(_inst,_other,100380).gmltcolour=255;return;break;}case 1:{yyInst(_inst,_other,100379).gmlcolour=255;yyInst(_inst,_other,100379).gmlflash=true;yyInst(_inst,_other,100379).gmltitle="BENCHED!";yyInst(_inst,_other,100380).gmltext=string_replace(gml_Script_s_str(_inst,_other,"msg_benched_energy"),"$num",string(gml_Script_s_get_qb_energy(_inst,_other)));return;break;}};};};if(yyfequal(gmlrest_text_long,
"")){{yyInst(_inst,_other,100379).visible=false;yyInst(_inst,_other,100380).visible=false;if(yyGetBool(global.gmlbrowser)){{instance_create_layer(56,232,"Instances",42);var gmlb2=instance_create_layer(184,232,"Instances",42);yyInst(_inst,_other,gmlb2).sprite_index=196;yyInst(_inst,_other,gmlb2).gmlgoogle=true;};};};};}function gml_Object_obj_prematch_Draw_64(_inst,_other){draw_sprite(_inst,165,yyInst(_inst,_other,97).gmlforce_uniform_sel1,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100387).x),21),
yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100387).y),40));draw_sprite(_inst,165,yyInst(_inst,_other,97).gmlforce_uniform_sel2,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100388).x),21),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100388).y),38));draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.24);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.65);gml_Script_draw_hd_text(_inst,_other,gmltx,
gmlty,string_upper(ds_map_find_value(_inst.gmlteam0,"name")));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlrecord[__yy_gml_array_check_index(0,_inst.gmlrecord)]);draw_set_halign(2);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));var gmlsx=gmltx;draw_sprite_ext(_inst,102,_inst.gmldefense[__yy_gml_array_check_index(0,_inst.gmldefense)],yyfplus(__yy_gml_errCheck(gmlsx),
5),gmlty,1,1,0,global.gmlc_defense,1);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));draw_sprite_ext(_inst,102,_inst.gmloffense[__yy_gml_array_check_index(0,_inst.gmloffense)],yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,global.gmlc_offense,1);draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.76);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),
0.65);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(ds_map_find_value(_inst.gmlteam1,"name")));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlrecord[__yy_gml_array_check_index(1,_inst.gmlrecord)]);draw_set_halign(0);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));var gmlsx=gmltx;draw_sprite_ext(_inst,102,_inst.gmloffense[__yy_gml_array_check_index(1,
_inst.gmloffense)],yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,global.gmlc_offense,1);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));draw_sprite_ext(_inst,102,_inst.gmldefense[__yy_gml_array_check_index(1,_inst.gmldefense)],yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,global.gmlc_defense,1);}function gml_Object_obj_helmet_Create_0(_inst,_other){gml_Script_s_shader_get_uniforms(_inst,_other);}function gml_Object_obj_helmet_Draw_0(_inst,
_other){}function gml_Object_obj_helmet_Draw_64(_inst,_other){gml_Script_s_shader_set_uniforms(_inst,_other);draw_sprite_ext(_inst,_inst.sprite_index,_inst.gmlimage,_inst.x,_inst.y,2,2,0,16777215,1);if(yyfequal(_inst.gmlfacing,1)){draw_sprite_ext(_inst,31,0,yyfplus(__yy_gml_errCheck(_inst.x),100),yyfminus(__yy_gml_errCheck(_inst.y),20),2,2,0,16777215,1);}else {draw_sprite_ext(_inst,31,0,yyfminus(__yy_gml_errCheck(_inst.x),100),yyfminus(__yy_gml_errCheck(_inst.y),20),(-2),2,0,16777215,1);};shader_reset();
draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),72);gml_Script_draw_hd_text(_inst,_other,_inst.x,gmlty,string_upper(_inst.gmlname));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,16);if(yyGetBool(_inst.gmlshow_stats)){gml_Script_draw_hd_text(_inst,_other,_inst.x,gmlty,_inst.gmlrecord);};draw_set_halign(2);if(yyfequal(_inst.gmlfacing,(-1))){draw_set_halign(0);};if(!yyGetBool(_inst.gmlshow_stats)){return;};gmlty=yyfplus(gmlty,
14);gml_Script_draw_hd_text(_inst,_other,_inst.x,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));var gmlsx=_inst.x;if(yyfequal(_inst.gmlfacing,1)){draw_sprite_ext(_inst,101,_inst.gmldefense,yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,65535,1);}else {draw_sprite_ext(_inst,101,_inst.gmldefense,yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,65535,1);};gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,_inst.x,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));
if(yyfequal(_inst.gmlfacing,1)){draw_sprite_ext(_inst,101,_inst.gmloffense,yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,65535,1);}else {draw_sprite_ext(_inst,101,_inst.gmloffense,yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,65535,1);};}function gml_Object_obj_helmet_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlname="Team Name";_inst.gmlshow_stats=true;_inst.gmldefense=0;_inst.gmloffense=0;_inst.gmlfacing=1;_inst.gmlrecord="0-0-0";_inst.gmlimage=0;_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,
3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(3)]=0;_inst.gmllogo=__yy_gml_array_check(_inst.gmllogo,2321711084);_inst.gmllogo[__yy_gml_array_check_index_set(3)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsleeve=__yy_gml_array_check(_inst.gmlsleeve,3111731137);_inst.gmlsleeve[__yy_gml_array_check_index_set(3)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(3)]=0;
_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(3)]=0;_inst.gmlstripe=__yy_gml_array_check(_inst.gmlstripe,2849462600);_inst.gmlstripe[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsocks=__yy_gml_array_check(_inst.gmlsocks,4097146686);_inst.gmlsocks[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsocks_b=__yy_gml_array_check(_inst.gmlsocks_b,2468168349);_inst.gmlsocks_b[__yy_gml_array_check_index_set(3)]=0;_inst.gmlcleats=__yy_gml_array_check(_inst.gmlcleats,
2556554615);_inst.gmlcleats[__yy_gml_array_check_index_set(3)]=0;_inst.gmlcol_skin_r=0;_inst.gmlcol_skin_g=0;_inst.gmlcol_skin_b=0;}function gml_Object_obj_postmatch_Create_0(_inst,_other){if((yyGetBool(!yyGetBool(global.gmlpoki)))||(yyGetBool(global.gmlpoki_done_post_match_reward))){layer_set_visible(layer_get_id("Poki_Layer"),false);};gml_Script_s_populate_division(_inst,_other,100473,yyInst(_inst,_other,97).gmlmyconference,yyInst(_inst,_other,97).gmlmydivision);yyInst(_inst,_other,100472).gmlconference=yyInst(_inst,
_other,97).gmlmyconference;gml_Script_s_check_for_news(_inst,_other);yyInst(_inst,_other,100467).visible=false;yyInst(_inst,_other,100469).visible=false;yyInst(_inst,_other,100476).visible=false;_inst.gmlstage_time=g_pBuiltIn.get_current_time();if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{yyInst(_inst,_other,100473).y=136;yyInst(_inst,_other,100470).visible=false;_inst.gmlstage=2;_inst.gmlstage_time=0;};}else {{if(yyGetBool(yyInst(_inst,_other,97).gmlfans_done_update)){{_inst.gmlstage=2;_inst.gmlstage_time=0;
};};if(yyfgreaterequal(yyInst(_inst,_other,97).gmlfans,100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FANS100");};};};_inst.gmlwon_match=false;var gmlfixture=gml_Script_s_get_human_fixture_by_week(_inst,_other,yyInst(_inst,_other,97).gmlweek);if((yyGetBool(gmlfixture))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")))){_inst.gmlwon_match=true;};{var __yy__v2050=GetWithArray(97);for(var __yy__v2051 in __yy__v2050){if(!__yy__v2050.hasOwnProperty(__yy__v2051))continue;var __yy__v2052=__yy__v2050[__yy__v2051];
{if(yyfequal(__yy__v2052.gmlteam[__yy_gml_array_check_index(0,__yy__v2052.gmlteam)],__yy__v2052.gmlmyteam)){yyInst(_inst,_other,100475).gmlcol1=global.gmlc_primary;}else {yyInst(_inst,_other,100475).gmlcol2=global.gmlc_primary;};yyInst(_inst,_other,100475).gmlteamnames=__yy_gml_array_check(yyInst(_inst,_other,100475).gmlteamnames,4126488533);yyInst(_inst,_other,100475).gmlteamnames[__yy_gml_array_check_index_set(0)]=ds_map_find_value(__yy__v2052.gmlteam[__yy_gml_array_check_index(0,__yy__v2052.gmlteam)],
"tla");yyInst(_inst,_other,100475).gmlteamnames[__yy_gml_array_check_index_set(1)]=ds_map_find_value(__yy__v2052.gmlteam[__yy_gml_array_check_index(1,__yy__v2052.gmlteam)],"tla");yyInst(_inst,_other,100475).gmlratings1=__yy_gml_array_check(yyInst(_inst,_other,100475).gmlratings1,2476389349);yyInst(_inst,_other,100475).gmlratings1[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(__yy__v2052,_inst,__yy__v2052.gmlteam[__yy_gml_array_check_index(0,__yy__v2052.gmlteam)]);yyInst(_inst,
_other,100475).gmlratings1[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(__yy__v2052,_inst,__yy__v2052.gmlteam[__yy_gml_array_check_index(0,__yy__v2052.gmlteam)]);yyInst(_inst,_other,100475).gmlratings2=__yy_gml_array_check(yyInst(_inst,_other,100475).gmlratings2,3099058214);yyInst(_inst,_other,100475).gmlratings2[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(__yy__v2052,_inst,__yy__v2052.gmlteam[__yy_gml_array_check_index(1,__yy__v2052.gmlteam)]);yyInst(_inst,
_other,100475).gmlratings2[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(__yy__v2052,_inst,__yy__v2052.gmlteam[__yy_gml_array_check_index(1,__yy__v2052.gmlteam)]);yyInst(_inst,_other,100475).gmlscores1=__yy_gml_array_create([__yy__v2052.gmlqtr_scores0[__yy_gml_array_check_index(0,__yy__v2052.gmlqtr_scores0)],__yy__v2052.gmlqtr_scores0[__yy_gml_array_check_index(1,__yy__v2052.gmlqtr_scores0)],__yy__v2052.gmlqtr_scores0[__yy_gml_array_check_index(2,__yy__v2052.gmlqtr_scores0)],__yy__v2052.gmlqtr_scores0[__yy_gml_array_check_index(3,
__yy__v2052.gmlqtr_scores0)],__yy__v2052.gmltscore[__yy_gml_array_check_index(0,__yy__v2052.gmltscore)]]);yyInst(_inst,_other,100475).gmlscores2=__yy_gml_array_create([__yy__v2052.gmlqtr_scores1[__yy_gml_array_check_index(0,__yy__v2052.gmlqtr_scores1)],__yy__v2052.gmlqtr_scores1[__yy_gml_array_check_index(1,__yy__v2052.gmlqtr_scores1)],__yy__v2052.gmlqtr_scores1[__yy_gml_array_check_index(2,__yy__v2052.gmlqtr_scores1)],__yy__v2052.gmlqtr_scores1[__yy_gml_array_check_index(3,__yy__v2052.gmlqtr_scores1)],
__yy__v2052.gmltscore[__yy_gml_array_check_index(1,__yy__v2052.gmltscore)]]);}}};}function gml_Object_obj_postmatch_Step_0(_inst,_other){gml_Script_s_update_music(_inst,_other);yyInst(_inst,_other,100471).gmltext=gml_Script_s_get_credit(_inst,_other);{var __yy__v2053=GetWithArray(78);for(var __yy__v2054 in __yy__v2053){if(!__yy__v2053.hasOwnProperty(__yy__v2054))continue;var __yy__v2055=__yy__v2053[__yy__v2054];{if(yyfless(__yy__v2055.depth,_inst.depth)){{__yy__v2055.gmlstage_time=g_pBuiltIn.get_current_time();
return;};};}}};if(!yyGetBool(yyInst(_inst,_other,97).gmlfans_done_update)){{yyInst(_inst,_other,100470).gmlold_percent=yyInst(_inst,_other,97).gmlfans;if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gml_Script_s_do_postmatch_fans(_inst,_other);};};};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlstage_time),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlstage),1)),500))))){return;};var ___sw1814___=_inst.gmlstage;var ___swc1815___=-1;
if(yyCompareVal(___sw1814___,0,g_GMLMathEpsilon,false)==0){___swc1815___=0;}else if(yyCompareVal(___sw1814___,1,g_GMLMathEpsilon,false)==0){___swc1815___=1;}else if(yyCompareVal(___sw1814___,2,g_GMLMathEpsilon,false)==0){___swc1815___=2;}switch(___swc1815___){case 0:{(g_yyPrePostObject__=_other.gmlstage,_other.gmlstage=(g_yyPrePostObject__ instanceof Long?_other.gmlstage.add(1):++_other.gmlstage),g_yyPrePostObject__);break;}case 1:{var gmlcx1=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,
_other,100470).sprite_width),0.16)));var gmlcx2=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100470).sprite_width),0.5)));var gmlcx3=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100470).sprite_width),0.82)));var gmlcy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100470).sprite_height),
0.5)));var gmldx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100471).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100471).sprite_width),0.5)));var gmldy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100471).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100471).sprite_height),0.5)));gml_Script_s_create_credit(_inst,_other,gmlcx1,gmlcy,gmldx,gmldy,1,1,(-4),true);if(yyfgreater(yyInst(_inst,_other,97).gmlfans,33)){gml_Script_s_create_credit(_inst,_other,gmlcx2,
gmlcy,gmldx,gmldy,1,1,(-4),false);};if(yyfgreater(yyInst(_inst,_other,97).gmlfans,66)){gml_Script_s_create_credit(_inst,_other,gmlcx3,gmlcy,gmldx,gmldy,1,1,(-4),false);};if((yyGetBool(_inst.gmlwon_match))&&(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))))){{gml_Script_s_create_credit(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcx3),10),gmlcy,gmldx,gmldy,10,1,(-4),false);};};(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),
g_yyPrePostObject__);break;}case 2:{if(!yyGetBool(instance_exists(101))){{yyInst(_inst,_other,100467).visible=true;yyInst(_inst,_other,100469).visible=true;if(!yyGetBool(global.gmlpoki)){yyInst(_inst,_other,100476).visible=true;};};};break;}};}function gml_Object_obj_postmatch_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstage=0;_inst.gmlstage_time=0;}function gml_Object_obj_xp_update_Create_0(_inst,_other){_inst.gmllayer_FM=layer_get_id("Layer_FM");_inst.gmllayer_QB=layer_get_id("Layer_QB");
var ___sw1818___=yyInst(_inst,_other,97).gmlqb_mode;var ___swc1819___=-1;if(yyCompareVal(___sw1818___,0,g_GMLMathEpsilon,false)==0){___swc1819___=0;}else if(yyCompareVal(___sw1818___,1,g_GMLMathEpsilon,false)==0){___swc1819___=1;}switch(___swc1819___){case 0:{layer_set_visible(_inst.gmllayer_FM,true);layer_set_visible(_inst.gmllayer_QB,false);break;}case 1:{layer_set_visible(_inst.gmllayer_FM,false);layer_set_visible(_inst.gmllayer_QB,true);break;}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){
{yyInst(_inst,_other,100610).gmlshow_stars=false;};};yyInst(_inst,_other,100609).visible=false;yyInst(_inst,_other,100618).visible=false;yyInst(_inst,_other,100619).visible=false;{var __yy__v2056=GetWithArray(100620);for(var __yy__v2057 in __yy__v2056){if(!__yy__v2056.hasOwnProperty(__yy__v2057))continue;var __yy__v2058=__yy__v2056[__yy__v2057];__yy__v2058.visible=false;}};gml_Script_s_update_rest_all_button(_inst,_other);yyInst(_inst,_other,97).gmlroster=gml_Script_s_sort_players(_inst,_other,yyInst(_inst,
_other,97).gmlroster,4);_inst.gmll_names=ds_list_create();_inst.gmll_attitude=ds_list_create();_inst.gmll_condition=ds_list_create();_inst.gmll_resting=ds_list_create();_inst.gmll_pos=ds_list_create();_inst.gmll_yards=ds_list_create();_inst.gmll_tackles=ds_list_create();_inst.gmll_rating=ds_list_create();_inst.gmll_tds=ds_list_create();_inst.gmll_fumbles=ds_list_create();_inst.gmll_intsacks=ds_list_create();_inst.gmll_xp=ds_list_create();_inst.gmll_levelup=ds_list_create();_inst.gmll_gpa=ds_list_create();
_inst.gmll_suspended=ds_list_create();if(yyfequal(yyInst(_inst,_other,97).gmlstage,7)){{_inst.gmlstage_time=g_pBuiltIn.get_current_time();if(yyfgreater(yyInst(_inst,_other,97).gmlweek,yyInst(_inst,_other,97).gmllast_week_regular)){{yyInst(_inst,_other,100610).gmltext=gml_Script_s_str(_inst,_other,"ui_EndWeek");};}else {{yyInst(_inst,_other,100610).gmltext=gml_Script_s_str(_inst,_other,"ui_EndWeekN");yyInst(_inst,_other,100610).gmltext=string_replace(yyInst(_inst,_other,100610).gmltext,"$num",yyInst(_inst,
_other,97).gmlweek);};};yyInst(_inst,_other,100612).visible=false;yyInst(_inst,_other,100612).visible=false;gml_Script_s_set_up_xp_headers(_inst,_other,gml_Script_s_is_bye_week(_inst,_other,yyInst(_inst,_other,97).gmlweek),true);gml_Script_s_do_postmatch_effects(_inst,_other);};}else {{gml_Script_s_tag_backups(_inst,_other);yyInst(_inst,_other,100610).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster");gml_Script_s_set_up_xp_headers(_inst,_other,true,false);if(!yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){
{yyInst(_inst,_other,100618).visible=true;yyInst(_inst,_other,100619).visible=true;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100620).visible=true;};};if(yyfless(ds_list_size(yyInst(_inst,_other,97).gmlroster),2)){{yyInst(_inst,_other,100618).gmlactive=false;yyInst(_inst,_other,100619).gmlactive=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100620).visible=false;};};};};if(yyfgreaterequal(gml_Script_s_get_morale(_inst,_other),100)){
yyInst(_inst,_other,100618).gmlactive=false;};if(yyfgreater(gml_Script_s_get_condition_squad(_inst,_other),95)){yyInst(_inst,_other,100618).gmlactive=false;};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfgreater(gml_Script_s_get_percent_grade_squad(_inst,_other),92)){{yyInst(_inst,_other,100620).visible=false;};};};};};};};};}function gml_Object_obj_xp_update_Destroy_0(_inst,_other){ds_list_destroy(_inst.gmll_names);ds_list_destroy(_inst.gmll_attitude);ds_list_destroy(_inst.gmll_condition);
ds_list_destroy(_inst.gmll_pos);ds_list_destroy(_inst.gmll_yards);ds_list_destroy(_inst.gmll_tackles);ds_list_destroy(_inst.gmll_rating);ds_list_destroy(_inst.gmll_tds);ds_list_destroy(_inst.gmll_fumbles);ds_list_destroy(_inst.gmll_intsacks);ds_list_destroy(_inst.gmll_xp);ds_list_destroy(_inst.gmll_levelup);ds_list_destroy(_inst.gmll_gpa);ds_list_destroy(_inst.gmll_suspended);_inst.gmll_names=(-1);_inst.gmll_attitude=(-1);_inst.gmll_condition=(-1);_inst.gmll_pos=(-1);_inst.gmll_yards=(-1);_inst.gmll_tackles=(-1);
_inst.gmll_rating=(-1);_inst.gmll_tds=(-1);_inst.gmll_fumbles=(-1);_inst.gmll_intsacks=(-1);_inst.gmll_xp=(-1);_inst.gmll_levelup=(-1);_inst.gmll_gpa=(-1);_inst.gmll_suspended=(-1);}function gml_Object_obj_xp_update_Step_0(_inst,_other){if(yyfnotequal(yyInst(_inst,_other,97).gmlstage,7)){return;};{var __yy__v2059=GetWithArray(78);for(var __yy__v2060 in __yy__v2059){if(!__yy__v2059.hasOwnProperty(__yy__v2060))continue;var __yy__v2061=__yy__v2059[__yy__v2060];if(yyfless(__yy__v2061.depth,_inst.depth)){__yy__v2061.gmlstage_time=g_pBuiltIn.get_current_time();
};}};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlstage_time),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlstage),1)),1000))))){return;};var ___sw1822___=_inst.gmlstage;var ___swc1823___=-1;if(yyCompareVal(___sw1822___,0,g_GMLMathEpsilon,false)==0){___swc1823___=0;}else if(yyCompareVal(___sw1822___,1,g_GMLMathEpsilon,false)==0){___swc1823___=1;}switch(___swc1823___){case 0:{var gmldone=true;var gmli=1;for(;yyfless(gmli,ds_list_size(_inst.gmll_condition));
(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,yyfminus(__yy_gml_errCheck(gmli),1));ds_list_set(_inst.gmll_condition,gmli,clamp(yyfplus(__yy_gml_errCheck(ds_list_find_value(_inst.gmll_condition,gmli)),1),1,ds_map_find_value(gmlpmap,"condition")));if(yyfless(ds_list_find_value(_inst.gmll_condition,gmli),ds_map_find_value(gmlpmap,"condition"))){gmldone=false;};}};if(yyGetBool(gmldone)){
(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);};break;}case 1:{yyInst(_inst,_other,100609).visible=true;(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);break;}};}function gml_Object_obj_xp_update_Draw_0(_inst,_other){}function gml_Object_obj_xp_update_Draw_64(_inst,_other){var gmlshowSal=true;var gmlshowCnt=true;
var gmlshowAge=true;var gmlshowGpa=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlshowSal=false;gmlshowCnt=false;gmlshowGpa=true;if(yyfequal(yyInst(_inst,_other,97).gmlstage,7)){{var gmlbyeWeek=gml_Script_s_is_bye_week(_inst,_other,yyInst(_inst,_other,97).gmlweek);if(!yyGetBool(gmlbyeWeek)){{gmlshowSal=true;gmlshowCnt=true;gmlshowGpa=false;};};};};};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_alpha(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),4);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),
18);var gmlline_buf=13;var gmlcol_buf=34;if(yyfgreater(ds_list_size(_inst.gmll_attitude),11)){{gmlty=yyfplus(__yy_gml_errCheck(_inst.y),14);gmlline_buf=11.5;};};var gmll=0;for(;yyfless(gmll,ds_list_size(_inst.gmll_attitude));(g_yyPrePostObject__=gmll,gmll=(g_yyPrePostObject__ instanceof Long?gmll.add(1):++gmll),g_yyPrePostObject__)){{draw_set_color(16777215);if(yyfgreater(gmll,0)){{if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_list_find_value(_inst.gmll_suspended,gmll)))){draw_sprite(_inst,
98,4,gmltx,gmlty);}else {if(yyGetBool(ds_list_find_value(_inst.gmll_resting,gmll))){draw_sprite(_inst,98,3,gmltx,gmlty);}else {draw_sprite(_inst,95,gml_Script_s_get_attitude_icon(_inst,_other,ds_list_find_value(_inst.gmll_attitude,gmll)),gmltx,gmlty);};};};};gmltx=yyfplus(gmltx,12);draw_set_halign(0);var gmltxt=ds_list_find_value(_inst.gmll_names,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,
0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);draw_set_halign(1);gmltx=yyfplus(gmltx,82);draw_set_color(gml_Script_s_get_position_colour(_inst,_other,ds_list_find_value(_inst.gmll_pos,gmll)));var gmltxt=gml_Script_s_get_string_position(_inst,_other,ds_list_find_value(_inst.gmll_pos,gmll));gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);
draw_set_color(16777215);gmltx=yyfplus(gmltx,gmlcol_buf);var gmlcon=ds_list_find_value(_inst.gmll_condition,gmll);if(yyfequal(gmll,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmlcon,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlcon);};}else {{if(yyflessequal(gmlcon,40)){{var gmlstr_con=string(abs(gmlcon));if(yyflessequal(gmlcon,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),
5),yyfplus(__yy_gml_errCheck(gmlty),1),gmlstr_con,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),6),gmlty,gmlstr_con,255,255,255,255,1);draw_sprite(_inst,98,0,yyfminus(yyfminus(__yy_gml_errCheck(gmltx),2),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmlstr_con)),2))),gmlty);};}else {if(yyflessequal(gmlcon,20)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),
1),yyfplus(__yy_gml_errCheck(gmlstr_con),"%"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyfplus(__yy_gml_errCheck(gmlstr_con),"%"),4235519,4235519,4235519,4235519,1);};}else {{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),yyfplus(__yy_gml_errCheck(gmlstr_con),"%"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyfplus(__yy_gml_errCheck(gmlstr_con),"%"),65535,65535,65535,65535,1);};};};
};}else {{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,yyfplus(__yy_gml_errCheck(string(gmlcon)),"%"));};};};};if(yyfequal(yyInst(_inst,_other,97).gmlstage,7)){{draw_set_color(16777215);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_yards,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,
gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_tds,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_tackles,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,
0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_intsacks,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);if(yyGetBool(gmlshowSal)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_fumbles,gmll);if(yyfequal(gmll,
0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gmltxt,16777215,16777215,16777215,16777215,1);};};if(yyGetBool(gmlshowCnt)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_rating,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),
1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};gmltx=yyfplus(gmltx,gmlcol_buf);draw_set_colour(global.gmlc_primary);var gmltxt=ds_list_find_value(_inst.gmll_xp,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,yyfplus(__yy_gml_errCheck(gmlcol_buf),
8));var gmla=yyfplus(1,__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),100))));draw_set_colour(16777215);var gmltxt=ds_list_find_value(_inst.gmll_levelup,gmll);if(yyfequal(gmll,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};}else {if(yyGetBool(string_count("flash_",gmltxt))){{gmltxt=string_replace(gmltxt,"flash_","");gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),
1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,yyftime(__yy_gml_errCheck(gmla),0.7));draw_set_alpha(gmla);draw_set_colour(global.gmlc_primary);};};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);draw_set_alpha(1);};}else {{draw_set_color(16777215);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_yards,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,
1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_tds,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_tackles,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,
_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_intsacks,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);if(yyGetBool(gmlshowSal)){{if(yyGetBool(yyInst(_inst,
_other,97).gmlqb_mode)){{gmltx=yyfplus(gmltx,yyfplus(__yy_gml_errCheck(gmlcol_buf),1));if(yyfequal(gmll,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Rating"),0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"tla_Rating"));};}else {draw_sprite_ext(_inst,105,real(ds_list_find_value(_inst.gmll_fumbles,gmll)),gmltx,gmlty,1,1,0,65535,1);};gmltx=yyfplus(gmltx,
1);};}else {{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_fumbles,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};};};if(yyGetBool(gmlshowCnt)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_rating,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),
1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};if(yyGetBool(gmlshowAge)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_xp,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);}else {if(yyfequal(gmltxt,gml_Script_s_rookie_age_internal(_inst,_other))){draw_set_colour(global.gmlc_primary);};};gml_Script_draw_hd_text(_inst,
_other,gmltx,gmlty,gmltxt);draw_set_colour(16777215);};};if(yyGetBool(gmlshowGpa)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_gpa,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};gmltx=yyfplus(gmltx,yyfplus(__yy_gml_errCheck(gmlcol_buf),8));var gmltxt=ds_list_find_value(_inst.gmll_levelup,gmll);
if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),4);gmlty=yyfplus(gmlty,gmlline_buf);}};draw_set_alpha(1);draw_set_colour(16777215);}function gml_Object_obj_xp_update_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstat_type=0;_inst.gmlstage=0;_inst.gmlstage_time=0;}function gml_Object_obj_playerprofile_rm_Create_0(_inst,
_other){_inst.gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};_inst.gmlis_draft_player=false;if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmldraftlist,_inst.gmlpmap),0)){_inst.gmlis_draft_player=true;};if(!yyGetBool(ds_map_exists(_inst.gmlpmap,"scouted"))){ds_map_set(_inst.gmlpmap,"scouted",0);};gml_Script_s_round_player_attributes(_inst,_other,_inst.gmlpmap);if((yyGetBool(!yyGetBool(yyInst(_inst,_other,97).gmltag_kr_message_done)))||(yyGetBool((yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,
"position"),2)))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"position"),4)))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"position"),8)))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"position"),9)))))){{{var __yy__v2062=GetWithArray(149);for(var __yy__v2063 in __yy__v2062){if(!__yy__v2062.hasOwnProperty(__yy__v2063))continue;var __yy__v2064=__yy__v2062[__yy__v2063];yyInst(_inst,_other,149).visible=false;}};};};gml_Script_slog(_inst,_other,yyfplus("face_x=",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,
"face_x")))));gml_Script_slog(_inst,_other,yyfplus("face_y=",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"face_y")))));draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,70).visible=false;var gmlname=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))," - "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname")))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"lname")));yyInst(_inst,_other,100422).gmltext=gmlname;var gmlage=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Age")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"age"))));if(yyfequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){gmlage=yyfplus(gmlage,yyfplus(yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Rookie")))," "));}else {if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_get_max_age(_inst,
_other,_inst.gmlpmap))){gmlage=yyfplus(gmlage,yyfplus(yyfplus(" (",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Retiring"))),")"));};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlage=gml_Script_s_college_age_label(_inst,_other,ds_map_find_value(_inst.gmlpmap,"age"));};};yyInst(_inst,_other,100431).gmltext=gmlage;_inst.gmlx_rookie=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100431).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100431).gmltext)));
_inst.gmly_rookie=yyInst(_inst,_other,100431).y;if((yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))||(yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))){_inst.gmly_rookie=(-999);};yyInst(_inst,_other,100421).gmltitle=gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position"));yyInst(_inst,_other,100424).gmltext=string_upper(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Condition")),": "));
_inst.gmlx_condition=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100424).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100424).gmltext)));_inst.gmly_condition=yyInst(_inst,_other,100424).y;_inst.gmltxt_condition=string_upper(gml_Script_s_get_string_condition(_inst,_other,ds_map_find_value(_inst.gmlpmap,"condition")));_inst.gmlshow_spr_condition=true;if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{_inst.gmltxt_condition=yyfplus(__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,
"condition"))),"%");if(yyGetBool(gml_Script_s_qb_mode_benched_status(_inst,_other))){_inst.gmltxt_condition=yyfplus(_inst.gmltxt_condition,yyfplus(" ",__yy_gml_errCheck(string_upper(gml_Script_s_str(_inst,_other,"ui_Benched")))));};};};if((yyGetBool(_inst.gmlis_draft_player))&&(yyGetBool(!yyGetBool(ds_map_find_value(_inst.gmlpmap,"scouted"))))){_inst.gmltxt_condition="?";};_inst.gmlcol_condition=16777215;_inst.gmli_condition=(-1);if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{_inst.gmli_condition=gml_Script_s_get_condition_icon(_inst,
_other,_inst.gmlpmap);_inst.gmlcol_condition=gml_Script_s_get_condition_colour(_inst,_other,ds_map_find_value(_inst.gmlpmap,"condition"),65280);};}else {{if(yyGetBool(ds_map_find_value(_inst.gmlpmap,"resting"))){{_inst.gmlcol_condition=global.gmlc_primary;_inst.gmli_condition=3;};}else {if(yyflessequal(ds_map_find_value(_inst.gmlpmap,"condition"),0)){{_inst.gmlcol_condition=255;_inst.gmli_condition=0;};}else {if(yyflessequal(ds_map_find_value(_inst.gmlpmap,"condition"),20)){{_inst.gmlcol_condition=4235519;
_inst.gmli_condition=1;};}else {if(yyflessequal(ds_map_find_value(_inst.gmlpmap,"condition"),40)){{_inst.gmlcol_condition=65535;_inst.gmli_condition=2;};};};};};};};_inst.gmlx_condition2=yyfplus(__yy_gml_errCheck(_inst.gmlx_condition),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltxt_condition)," "))));var gmlcontract=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Contract")),": $"),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,
"salary")))),"m ("),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"contract")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Year"))),")");if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gmlcontract=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Contract")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"contract")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Year")));};yyInst(_inst,_other,100423).gmltext=gmlcontract;yyInst(_inst,
_other,100429).gmltext=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")))));if((yyGetBool(_inst.gmlis_draft_player))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"scouted"),0)))){yyInst(_inst,_other,100429).gmltext=string_upper(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": ?"));};_inst.gmlx_attitude=yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,100429).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100429).gmltext)," "))));_inst.gmly_attitude=yyInst(_inst,_other,100429).y;_inst.gmlshow_spr_attitude=true;yyInst(_inst,_other,100430).gmltext=gml_Script_s_str(_inst,_other,"ui_Rating");var gmlsw=yyfplus(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100430).gmltext)),8);_inst.gmlx_star_rating=yyInst(_inst,_other,100430).x;_inst.gmly_star_rating=yyfplus(__yy_gml_errCheck(yyInst(_inst,
_other,100430).y),12);_inst.gmlstar_rating=0;_inst.gmlshow_spr_star_rating_cb=true;yyInst(_inst,_other,100433).gmltext=gml_Script_s_str(_inst,_other,"ui_Potential");var gmlsw=yyfplus(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100433).gmltext)),8);_inst.gmlx_star_potential=yyInst(_inst,_other,100433).x;_inst.gmly_star_potential=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100433).y),12);_inst.gmlstar_potential=0;_inst.gmlshow_spr_star_rating_cbn=true;var gmltval=1;
if(!yyGetBool(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))){{_inst.gmlstar_rating=gml_Script_s_get_player_rating(_inst,_other,_inst.gmlpmap);_inst.gmlstar_potential=gml_Script_s_get_player_potential(_inst,_other,_inst.gmlpmap);if((yyGetBool(_inst.gmlis_draft_player))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"scouted"),0)))){_inst.gmlstar_potential=0;};gmltval=gml_Script_s_get_trade_value(_inst,_other,_inst.gmlpmap);};};var gmltrade_value=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Value")),": "),__yy_gml_errCheck(gml_Script_s_get_string_trade_value(_inst,_other,gmltval)));yyInst(_inst,_other,100435).gmltext=gmltrade_value;yyInst(_inst,_other,100436).gmltext="";yyInst(_inst,_other,100436).gmltcolour=global.gmlc_primary;if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{yyInst(_inst,_other,100435).visible=false;yyInst(_inst,_other,100436).visible=false;};};_inst.gmlx_trade=0;_inst.gmly_trade=0;yyInst(_inst,_other,100391).visible=true;yyInst(_inst,_other,100390).visible=true;
if(yyfgreater(ds_list_find_index(yyInst(_inst,_other,97).gmltradelist,yyInst(_inst,_other,97).gmlplayer_profile),(-1))){{if(yyfless(ds_list_size(yyInst(_inst,_other,97).gmltradelist),2)){{yyInst(_inst,_other,100391).visible=false;yyInst(_inst,_other,100390).visible=false;};};var gmlpck=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"intrade_pick");yyInst(_inst,_other,100436).gmltext=string_upper(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Cost")),
": "),__yy_gml_errCheck(gml_Script_s_get_string_trade_value(_inst,_other,gmlpck)))," ("),__yy_gml_errCheck(gml_Script_s_get_string_picks(_inst,_other,true))),")"));_inst.gmlx_trade=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100436).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100436).gmltext)," "))));_inst.gmly_trade=yyInst(_inst,_other,100436).y;};}else {if((yyGetBool(yyfgreater(ds_list_find_index(yyInst(_inst,_other,97).gmlroster,
yyInst(_inst,_other,97).gmlplayer_profile),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"outtrade_pick"),0)))){{if(yyfless(ds_list_size(yyInst(_inst,_other,97).gmlroster),2)){{yyInst(_inst,_other,100391).visible=false;yyInst(_inst,_other,100390).visible=false;};};var gmlpck=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"outtrade_pick");var gmlrem_txt=yyfplus(yyfplus(" (",__yy_gml_errCheck(gml_Script_s_get_string_picks(_inst,_other,true))),
")");yyInst(_inst,_other,100436).gmltext=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Offer")),": "),__yy_gml_errCheck(gml_Script_s_get_string_trade_value(_inst,_other,gmlpck))),__yy_gml_errCheck(gmlrem_txt));_inst.gmlx_trade=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100436).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100436).gmltext)," "))));_inst.gmly_trade=yyInst(_inst,_other,100436).y;};}else {if(yyfgreater(ds_list_find_index(yyInst(_inst,
_other,97).gmlroster,yyInst(_inst,_other,97).gmlplayer_profile),(-1))){{if(yyfless(ds_list_size(yyInst(_inst,_other,97).gmlroster),2)){{yyInst(_inst,_other,100391).visible=false;yyInst(_inst,_other,100390).visible=false;};};};};};};if(yyGetBool(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))){_inst.gmlx_trade=0;};yyInst(_inst,_other,100426).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Catching");yyInst(_inst,_other,100427).gmltitle=gml_Script_s_str(_inst,_other,
"attribute_Speed");yyInst(_inst,_other,100428).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Strength");yyInst(_inst,_other,100432).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Stamina");var ___sw1828___=ds_map_find_value(_inst.gmlpmap,"position");var ___swc1829___=-1;if(yyCompareVal(___sw1828___,1,g_GMLMathEpsilon,false)==0){___swc1829___=0;}else if(yyCompareVal(___sw1828___,10,g_GMLMathEpsilon,false)==0){___swc1829___=1;}else if(yyCompareVal(___sw1828___,5,g_GMLMathEpsilon,false)==0){___swc1829___=2;
}else if(yyCompareVal(___sw1828___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1828___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1828___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1828___,9,g_GMLMathEpsilon,false)==0){___swc1829___=3;}switch(___swc1829___){case 0:{yyInst(_inst,_other,100426).gmltitle=gml_Script_s_str(_inst,_other,"attribute_ThrowAccuracy");yyInst(_inst,_other,100428).gmltitle=gml_Script_s_str(_inst,_other,"attribute_ArmStrength");yyInst(_inst,_other,100393).gmltext=gml_Script_s_str(_inst,
_other,"attribute_Throwing");break;}case 1:{yyInst(_inst,_other,100426).gmltitle=gml_Script_s_str(_inst,_other,"attribute_KickAccuracy");yyInst(_inst,_other,100428).gmltitle=gml_Script_s_str(_inst,_other,"attribute_KickRange");yyInst(_inst,_other,100393).gmltext=gml_Script_s_str(_inst,_other,"attribute_Accuracy");yyInst(_inst,_other,100395).gmltext=gml_Script_s_str(_inst,_other,"attribute_Range");break;}case 2:{yyInst(_inst,_other,100426).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Blocking");
yyInst(_inst,_other,100393).gmltext=gml_Script_s_str(_inst,_other,"attribute_Blocking");break;}case 3:{yyInst(_inst,_other,100426).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Tackling");yyInst(_inst,_other,100393).gmltext=gml_Script_s_str(_inst,_other,"attribute_Tackling");break;}default :{break;}};yyInst(_inst,_other,100426).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"max_skill")),10);yyInst(_inst,_other,100426).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"skill")),10);yyInst(_inst,_other,100427).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"max_speed")),10);yyInst(_inst,_other,100427).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"speed")),10);yyInst(_inst,_other,100428).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"max_strength")),10);yyInst(_inst,_other,100428).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"strength")),10);yyInst(_inst,_other,100432).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"max_stamina")),10);yyInst(_inst,_other,100432).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stamina")),10);yyInst(_inst,_other,100393).gmlactive=true;yyInst(_inst,_other,100394).gmlactive=true;yyInst(_inst,_other,100395).gmlactive=true;yyInst(_inst,_other,100396).gmlactive=true;yyInst(_inst,_other,100398).visible=false;if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"skill"),ds_map_find_value(_inst.gmlpmap,"max_skill"))){yyInst(_inst,_other,100393).gmlactive=false;};
if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"speed"),ds_map_find_value(_inst.gmlpmap,"max_speed"))){yyInst(_inst,_other,100394).gmlactive=false;};if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"strength"),ds_map_find_value(_inst.gmlpmap,"max_strength"))){yyInst(_inst,_other,100395).gmlactive=false;};if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"stamina"),ds_map_find_value(_inst.gmlpmap,"max_stamina"))){yyInst(_inst,_other,100396).gmlactive=false;};if(yyfless(ds_list_find_index(yyInst(_inst,
_other,97).gmlroster,_inst.gmlpmap),0)){{ds_map_set(_inst.gmlpmap,"xp_gain",0);ds_map_set(_inst.gmlpmap,"skill_points",0);};};_inst.gmllayer_back=layer_get_id("Buttons_Back");_inst.gmllayer_nav=layer_get_id("Buttons_Navigate");_inst.gmllayer_main=layer_get_id("Buttons_Main");_inst.gmllayer_main_QB=layer_get_id("Buttons_Main_QB");_inst.gmllayer_main_teammate=layer_get_id("Buttons_Main_Teammate");_inst.gmllayer_hoftag=layer_get_id("HOF_Tag");_inst.gmllayer_pick=layer_get_id("Buttons_Pick");_inst.gmllayer_xp=layer_get_id("Buttons_XP");
_inst.gmllayer_xp_cont=layer_get_id("Buttons_XP_Continue");layer_set_visible(_inst.gmllayer_back,true);layer_set_visible(_inst.gmllayer_nav,true);layer_set_visible(_inst.gmllayer_main,false);layer_set_visible(_inst.gmllayer_main_QB,false);layer_set_visible(_inst.gmllayer_main_teammate,false);layer_set_visible(_inst.gmllayer_hoftag,false);layer_set_visible(_inst.gmllayer_pick,false);layer_set_visible(_inst.gmllayer_xp,false);layer_set_visible(_inst.gmllayer_xp_cont,false);if(yyfgreater(yyInst(_inst,
_other,97).gmlintro,0)){{layer_set_visible(_inst.gmllayer_main,true);yyInst(_inst,_other,100416).gmlactive=false;yyInst(_inst,_other,100415).gmlactive=false;yyInst(_inst,_other,100414).gmlactive=false;yyInst(_inst,_other,100413).gmlactive=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_rm_player_profile_college_create(_inst,_other);};};gml_Script_s_check_intro(_inst,_other);return;};}else {if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"xp_gain"),0)){{layer_set_visible(_inst.gmllayer_back,
false);layer_set_visible(_inst.gmllayer_nav,false);};}else {if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"skill_points"),0)){{gml_Script_slog(_inst,_other,yyfplus("Skill points = ",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"skill_points")))));layer_set_visible(_inst.gmllayer_back,false);layer_set_visible(_inst.gmllayer_nav,false);layer_set_visible(_inst.gmllayer_xp,true);if((yyGetBool(yyInst(_inst,_other,97).gmlqb_mode))&&(yyGetBool(yyfnotequal(_inst.gmlpmap,gml_Script_s_get_qb_pmap(_inst,
_other))))){gml_Script_s_qb_mode_auto_xp(_inst,_other,yyInst(_inst,_other,100393).gmlactive,yyInst(_inst,_other,100394).gmlactive,yyInst(_inst,_other,100395).gmlactive,yyInst(_inst,_other,100396).gmlactive);}else {{if(yyGetBool(yyInst(_inst,_other,100393).gmlactive)){yyInst(_inst,_other,100426).gmlflash=true;};if(yyGetBool(yyInst(_inst,_other,100394).gmlactive)){yyInst(_inst,_other,100427).gmlflash=true;};if(yyGetBool(yyInst(_inst,_other,100395).gmlactive)){yyInst(_inst,_other,100428).gmlflash=true;
};if(yyGetBool(yyInst(_inst,_other,100396).gmlactive)){yyInst(_inst,_other,100432).gmlflash=true;};};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,100393).gmlactive)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,100394).gmlactive)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,100395).gmlactive)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,100396).gmlactive)))){{layer_set_visible(_inst.gmllayer_xp,false);layer_set_visible(_inst.gmllayer_xp_cont,true);};};};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,
_other,97).gmlroster,_inst.gmlpmap),0)){{if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{if(yyfequal(ds_map_find_value(_inst.gmlpmap,"position"),1)){layer_set_visible(_inst.gmllayer_main_QB,true);}else {layer_set_visible(_inst.gmllayer_main_teammate,true);};};}else {{layer_set_visible(_inst.gmllayer_main,true);layer_set_visible(_inst.gmllayer_hoftag,true);yyInst(_inst,_other,100401).gmlselected=false;yyInst(_inst,_other,100402).gmlselected=false;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"hof"))){
yyInst(_inst,_other,100401).gmlselected=ds_map_find_value(_inst.gmlpmap,"hof");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"kr"))){yyInst(_inst,_other,100402).gmlselected=ds_map_find_value(_inst.gmlpmap,"kr");};yyInst(_inst,_other,100399).visible=false;if(yyGetBool(gml_Script_s_attribute_buff(_inst,_other,_inst.gmlpmap,"skill"))){yyInst(_inst,_other,100426).gmlbuff=1;};if(yyGetBool(gml_Script_s_attribute_buff(_inst,_other,_inst.gmlpmap,"speed"))){yyInst(_inst,_other,100427).gmlbuff=1;};if(yyGetBool(gml_Script_s_attribute_buff(_inst,
_other,_inst.gmlpmap,"strength"))){yyInst(_inst,_other,100428).gmlbuff=1;};if(yyGetBool(gml_Script_s_attribute_buff(_inst,_other,_inst.gmlpmap,"stamina"))){yyInst(_inst,_other,100432).gmlbuff=1;};yyInst(_inst,_other,100426).gmlcol_buff=65535;yyInst(_inst,_other,100427).gmlcol_buff=65280;yyInst(_inst,_other,100428).gmlcol_buff=255;yyInst(_inst,_other,100432).gmlcol_buff=global.gmlc_toxic;};};};}else {{layer_set_visible(_inst.gmllayer_pick,true);if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,
97).gmlfreeagentlist,_inst.gmlpmap),0)){yyInst(_inst,_other,100398).visible=true;};if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmltradelist,_inst.gmlpmap),0)){yyInst(_inst,_other,100398).visible=true;};yyInst(_inst,_other,100399).visible=false;yyInst(_inst,_other,100400).visible=false;if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"career_games"),0)){{layer_set_visible(_inst.gmllayer_hoftag,true);yyInst(_inst,_other,100401).gmlselected=false;yyInst(_inst,_other,100402).gmlselected=false;
if(yyGetBool(ds_map_exists(_inst.gmlpmap,"hof"))){yyInst(_inst,_other,100401).gmlselected=ds_map_find_value(_inst.gmlpmap,"hof");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"kr"))){yyInst(_inst,_other,100402).gmlselected=ds_map_find_value(_inst.gmlpmap,"kr");};yyInst(_inst,_other,100400).visible=true;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,97).gmldraftlist,_inst.gmlpmap),0)){{yyInst(_inst,_other,100399).visible=true;if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"scouted"),
0)){yyInst(_inst,_other,100399).visible=false;};if(yyGetBool(yyInst(_inst,_other,100399).visible)){{yyInst(_inst,_other,100426).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"skill")),10);yyInst(_inst,_other,100427).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"speed")),10);yyInst(_inst,_other,100428).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"strength")),10);yyInst(_inst,_other,100432).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"stamina")),10);if(yyfgreater(yyInst(_inst,_other,97).gmlinterviews,0)){yyInst(_inst,_other,100399).gmltext=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"btn_ScoutPlayer"))," ("),__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlinterviews))),")");}else {yyInst(_inst,_other,100399).gmlactive=false;};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(yyInst(_inst,_other,100399).visible)){{if(yyfgreater(string(ds_map_find_value(_inst.gmlpmap,"rc_cost")),
yyInst(_inst,_other,97).gmlrecruitment_credits)){{yyInst(_inst,_other,100399).visible=false;};};};};};};};};};};};};};};_inst.gmltarget=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp_level")),100);_inst.gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp")),__yy_gml_errCheck(_inst.gmltarget))),100);yyInst(_inst,_other,100434).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XPLevel"))," "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,
"xp_level"))));yyInst(_inst,_other,100434).gmlpercent=_inst.gmlprc;if(yyfless(ds_map_find_value(_inst.gmlpmap,"condition"),0)){{yyInst(_inst,_other,100416).gmlactive=false;};}else {{var ___sw1830___=ds_map_find_value(_inst.gmlpmap,"resting");var ___swc1831___=-1;if(yyCompareVal(___sw1830___,0,g_GMLMathEpsilon,false)==0){___swc1831___=0;}else if(yyCompareVal(___sw1830___,1,g_GMLMathEpsilon,false)==0){___swc1831___=1;}switch(___swc1831___){case 0:{yyInst(_inst,_other,100416).gmltext=gml_Script_s_str(_inst,
_other,"ui_Bench");yyInst(_inst,_other,100416).gmlcolour=global.gmlc_background;break;}case 1:{yyInst(_inst,_other,100416).gmltext=gml_Script_s_str(_inst,_other,"ui_Benched");yyInst(_inst,_other,100416).gmlcolour=global.gmlc_primary;break;}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(ds_map_find_value(_inst.gmlpmap,"suspended"))){{yyInst(_inst,_other,100416).gmltext=gml_Script_s_str(_inst,_other,"ui_Suspended");yyInst(_inst,_other,100416).gmlcolour=global.gmlc_primary;};};
};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlviewOnly=false;if(yyGetBool(gml_Script_s_doing_college_draft(_inst,_other))){{gmlviewOnly=true;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlprofile_back_to,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,97).gmlprofile_back_to,2)))){{gmlviewOnly=true;};};if(yyGetBool(gmlviewOnly)){{yyInst(_inst,_other,100417).visible=false;yyInst(_inst,_other,100416).visible=false;yyInst(_inst,_other,100391).visible=false;yyInst(_inst,_other,
100390).visible=false;yyInst(_inst,_other,100414).visible=false;yyInst(_inst,_other,100413).visible=false;};};if(yyfgreater(yyInst(_inst,_other,97).gmlcollege_admissions_draft_round,0)){{if(yyfequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){{yyInst(_inst,_other,100413).visible=false;};}else {{yyInst(_inst,_other,100413).visible=true;};};};};yyInst(_inst,_other,100413).gmlonClickAction=kgml_Script_btn_click_Profile_College_Cut;yyInst(_inst,_other,100413).gmltext=gml_Script_s_str(_inst,
_other,"ui_Cut");};};gml_Script_s_position_edit_name_btn(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_rm_player_profile_college_create(_inst,_other);};};if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){gml_Script_s_player_profile_qb_mode(_inst,_other);};gml_Script_s_find_default_button(_inst,_other,true);}function gml_Object_obj_playerprofile_rm_Step_0(_inst,_other){yyInst(_inst,_other,100439).gmltext=gml_Script_s_get_credit(_inst,_other);if(!yyGetBool(ds_exists(_inst.gmlpmap,
1))){return;};if(yyGetBool(is_undefined(ds_map_find_value(_inst.gmlpmap,"xp_gain")))){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,100429).gmltext=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")))));_inst.gmlx_attitude=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100429).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,
_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100429).gmltext)," "))));_inst.gmly_attitude=yyInst(_inst,_other,100429).y;if((yyGetBool(_inst.gmlis_draft_player))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"scouted"),0)))){{yyInst(_inst,_other,100429).gmltext=string_upper(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": ?"));_inst.gmly_attitude=(-99999);};};if(yyfgreater(real(ds_map_find_value(_inst.gmlpmap,"xp_gain")),0)){{ds_map_set(_inst.gmlpmap,"xp_gain",
yyfminus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"xp_gain"))),1));ds_map_set(_inst.gmlpmap,"xp",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"xp"))),1));if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"xp"),_inst.gmltarget)){{ds_map_set(_inst.gmlpmap,"xp",1);ds_map_set(_inst.gmlpmap,"xp_level",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp_level")),1));ds_map_set(_inst.gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"attitude")),10),1,100));if(yyfless(ds_map_find_value(_inst.gmlpmap,"xp_gain"),1)){ds_map_set(_inst.gmlpmap,"xp_gain",1);};if(!yyGetBool(gml_Script_s_player_at_max_potential(_inst,_other,_inst.gmlpmap))){{ds_map_set(_inst.gmlpmap,"skill_points",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"skill_points")),1));room_goto(22);};}else {{var gmlcx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100434).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100434).sprite_width),0.9)));
var gmlcy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100434).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100434).sprite_height),0.5)));gml_Script_s_create_credit(_inst,_other,gmlcx,gmlcy,yyInst(_inst,_other,100439).x,yyInst(_inst,_other,100439).y,1,1,(-4),true);gml_Script_s_find_default_button(_inst,_other,true);};};return;};};_inst.gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp")),__yy_gml_errCheck(_inst.gmltarget))),100);
yyInst(_inst,_other,100434).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XPLevel"))," "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"xp_level"))));yyInst(_inst,_other,100434).gmlpercent=_inst.gmlprc;if(yyfless(ds_map_find_value(_inst.gmlpmap,"xp_gain"),1)){{ds_map_set(_inst.gmlpmap,"xp_gain",0);if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"skill_points"),0)){{room_goto(22);return;};};layer_set_visible(_inst.gmllayer_back,false);layer_set_visible(_inst.gmllayer_main,
false);layer_set_visible(_inst.gmllayer_pick,false);layer_set_visible(_inst.gmllayer_xp,false);layer_set_visible(_inst.gmllayer_xp_cont,true);};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_rm_player_profile_college_step(_inst,_other);};};}function gml_Object_obj_playerprofile_rm_Draw_64(_inst,_other){if(!yyGetBool(ds_exists(_inst.gmlpmap,1))){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);var gmlcol=(yyfequal(global.gmlc_primary,0)?16777215:global.gmlc_primary);
if(yyGetBool(_inst.gmlshow_spr_star_rating_cb)){draw_sprite_ext(_inst,105,_inst.gmlstar_rating,_inst.gmlx_star_rating,_inst.gmly_star_rating,1,1,0,gmlcol,1);};if(yyGetBool(_inst.gmlshow_spr_star_rating_cbn)){draw_sprite_ext(_inst,106,_inst.gmlstar_potential,_inst.gmlx_star_potential,_inst.gmly_star_potential,1,1,0,16777215,1);};if(yyGetBool(_inst.gmlshow_spr_attitude)){draw_sprite_ext(_inst,95,gml_Script_s_get_attitude_icon(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")),_inst.gmlx_attitude,
_inst.gmly_attitude,1,1,0,16777215,1);};draw_sprite(_inst,97,0,_inst.gmlx_rookie,_inst.gmly_rookie);if(yyfgreater(_inst.gmlx_trade,0)){draw_sprite_ext(_inst,96,0,_inst.gmlx_trade,_inst.gmly_trade,1,1,0,16777215,yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),160))),1)),2));};if(yyGetBool(_inst.gmlshow_spr_condition)){{if(yyfgreater(_inst.gmli_condition,(-1))){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.gmlx_condition),
1),yyfplus(__yy_gml_errCheck(_inst.gmly_condition),1),_inst.gmltxt_condition,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,_inst.gmlx_condition,_inst.gmly_condition,_inst.gmltxt_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,1);draw_sprite(_inst,98,_inst.gmli_condition,_inst.gmlx_condition2,_inst.gmly_condition);};}else {{gml_Script_draw_hd_text_color(_inst,_other,_inst.gmlx_condition,_inst.gmly_condition,_inst.gmltxt_condition,_inst.gmlcol_condition,
_inst.gmlcol_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,1);};};};};}function gml_Object_obj_playerprofile_rm_KeyPress_88(_inst,_other){{var __yy__v2065=GetWithArray(71);for(var __yy__v2066 in __yy__v2065){if(!__yy__v2065.hasOwnProperty(__yy__v2066))continue;var __yy__v2067=__yy__v2065[__yy__v2066];return;}};if(yyGetBool(global.gmldebug)){{ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"xp_gain",yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmltarget),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,97).gmlplayer_profile,"xp"))),0.5));};};}function gml_Object_obj_playerprofile_rm_KeyPress_73(_inst,_other){{var __yy__v2068=GetWithArray(71);for(var __yy__v2069 in __yy__v2068){if(!__yy__v2068.hasOwnProperty(__yy__v2069))continue;var __yy__v2070=__yy__v2068[__yy__v2069];return;}};if(yyGetBool(global.gmldebug)){{ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"condition",(-5));};};}function gml_Object_obj_playerprofile_rm_KeyPress_77(_inst,_other){{var __yy__v2071=GetWithArray(71);for(var __yy__v2072 in __yy__v2071){
if(!__yy__v2071.hasOwnProperty(__yy__v2072))continue;var __yy__v2073=__yy__v2071[__yy__v2072];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,97).gmlplayer_profile,"mvp"))){ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"mvp",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"mvp")),1));}else {ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"mvp",1);};};};}function gml_Object_obj_playerprofile_rm_KeyPress_68(_inst,
_other){{var __yy__v2074=GetWithArray(71);for(var __yy__v2075 in __yy__v2074){if(!__yy__v2074.hasOwnProperty(__yy__v2075))continue;var __yy__v2076=__yy__v2074[__yy__v2075];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,97).gmlplayer_profile,"dpoy"))){ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"dpoy",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"dpoy")),1));}else {ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,
"dpoy",1);};};};}function gml_Object_obj_playerprofile_rm_KeyPress_79(_inst,_other){{var __yy__v2077=GetWithArray(71);for(var __yy__v2078 in __yy__v2077){if(!__yy__v2077.hasOwnProperty(__yy__v2078))continue;var __yy__v2079=__yy__v2077[__yy__v2078];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,97).gmlplayer_profile,"opoy"))){ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"opoy",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,
"opoy")),1));}else {ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"opoy",1);};};};}function gml_Object_obj_playerprofile_rm_KeyPress_82(_inst,_other){{var __yy__v2080=GetWithArray(71);for(var __yy__v2081 in __yy__v2080){if(!__yy__v2080.hasOwnProperty(__yy__v2081))continue;var __yy__v2082=__yy__v2080[__yy__v2081];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,97).gmlplayer_profile,"roty"))){ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"roty",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,97).gmlplayer_profile,"roty")),1));}else {ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"roty",1);};};};}function gml_Object_obj_playerprofile_rm_KeyPress_90(_inst,_other){{var __yy__v2083=GetWithArray(71);for(var __yy__v2084 in __yy__v2083){if(!__yy__v2083.hasOwnProperty(__yy__v2084))continue;var __yy__v2085=__yy__v2083[__yy__v2084];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,97).gmlplayer_profile,"rings"))){ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,
"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"rings")),1));}else {ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"rings",1);};};};}function gml_Object_obj_stats_player_Create_0(_inst,_other){_inst.gmllines=ds_list_create();_inst.gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};yyInst(_inst,_other,100506).visible=false;if((yyGetBool(yyInst(_inst,_other,97).gmlviewing_hof_players))||(yyGetBool(yyfgreater(ds_list_find_index(yyInst(_inst,
_other,97).gmlfreeagentlist,_inst.gmlpmap),(-1))))){{yyInst(_inst,_other,100504).visible=false;yyInst(_inst,_other,100505).visible=false;yyInst(_inst,_other,100506).visible=true;yyInst(_inst,_other,100506).gmlselected=false;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"hof"))){yyInst(_inst,_other,100506).gmlselected=ds_map_find_value(_inst.gmlpmap,"hof");};};};var gmlrings=0;var gmlmvp=0;var gmlopoy=0;var gmldpoy=0;var gmlroty=0;var gmlrbmvp=0;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"rings"))){gmlrings=ds_map_find_value(_inst.gmlpmap,
"rings");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"mvp"))){gmlmvp=ds_map_find_value(_inst.gmlpmap,"mvp");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"opoy"))){gmlopoy=ds_map_find_value(_inst.gmlpmap,"opoy");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"dpoy"))){gmldpoy=ds_map_find_value(_inst.gmlpmap,"dpoy");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"roty"))){gmlroty=ds_map_find_value(_inst.gmlpmap,"roty");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"rbmvp"))){gmlrbmvp=ds_map_find_value(_inst.gmlpmap,
"rbmvp");};yyInst(_inst,_other,100516).gmltext=string(gmlrings);yyInst(_inst,_other,100507).gmltext=string(gmlmvp);yyInst(_inst,_other,100508).gmltext=string(gmlopoy);yyInst(_inst,_other,100509).gmltext=string(gmldpoy);yyInst(_inst,_other,100510).gmltext=string(gmlroty);yyInst(_inst,_other,100517).gmltext=string(gmlrbmvp);var gmlvrs="";var gmlfix=gml_Script_s_get_human_fixture_previous(_inst,_other);if(yyGetBool(gmlfix)){{if(yyfequal(ds_map_find_value(gmlfix,"away_team"),yyInst(_inst,_other,97).gmlmyteam_id)){
gmlvrs=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_At"))," "),__yy_gml_errCheck(gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"))));}else {gmlvrs=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Versus"))," "),__yy_gml_errCheck(gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"))));};};};var gmlpos=ds_map_find_value(_inst.gmlpmap,"position");yyInst(_inst,_other,100501).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,
_other,gmlpos))," - "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname")))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));var gmlgms="";var gmlatt=string(ds_map_find_value(_inst.gmlpmap,"stat_attempts"));var gmlcmp=string(ds_map_find_value(_inst.gmlpmap,"stat_complete"));var gmlyds=string(round(ds_map_find_value(_inst.gmlpmap,"stat_yards")));var gmlavg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,0,false),1);var gmllng=string(round(ds_map_find_value(_inst.gmlpmap,
"stat_longest")));var gmltds=string(ds_map_find_value(_inst.gmlpmap,"stat_touchdowns"));var gmlfum=string(ds_map_find_value(_inst.gmlpmap,"stat_fumbles"));var gmltck=string(ds_map_find_value(_inst.gmlpmap,"stat_tackles"));var gmlint=string(ds_map_find_value(_inst.gmlpmap,"stat_int"));var gmlsck=string(ds_map_find_value(_inst.gmlpmap,"stat_sacks"));if((yyGetBool(yyfequal(gmlpos,1)))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"stat_attempts"),0)))){gmlcmp=yyfplus(gmlcmp,yyfplus(yyfplus(" (",
__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_complete")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_attempts")))),100))))),"%)"));};var gmlr_att=string(ds_map_find_value(_inst.gmlpmap,"stat_rush_attempts"));var gmlr_yds=string(round(ds_map_find_value(_inst.gmlpmap,"stat_rush_yards")));var gmlr_avg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,0,true),1);var gmlr_lng=string(round(ds_map_find_value(_inst.gmlpmap,
"stat_rush_longest")));var gmlr_tds=string(ds_map_find_value(_inst.gmlpmap,"stat_rush_touchdowns"));var gmlret_yds=0;var gmlret_tds=0;var gmlret_lng=0;var gmlret_att=0;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"stat_return_attempts"))){{gmlret_yds=string(round(ds_map_find_value(_inst.gmlpmap,"stat_return_yards")));gmlret_tds=string(round(ds_map_find_value(_inst.gmlpmap,"stat_return_tds")));gmlret_lng=string(round(ds_map_find_value(_inst.gmlpmap,"stat_return_longest")));gmlret_att=ds_map_find_value(_inst.gmlpmap,
"stat_return_attempts");};};var gmlatt_xp=0;var gmlcmp_xp=0;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"stat_attempts_XP"))){{gmlatt_xp=string(round(ds_map_find_value(_inst.gmlpmap,"stat_attempts_XP")));gmlcmp_xp=string(round(ds_map_find_value(_inst.gmlpmap,"stat_complete_XP")));};};var ___sw1840___=_inst.gmlstat_type;var ___swc1841___=-1;if(yyCompareVal(___sw1840___,1,g_GMLMathEpsilon,false)==0){___swc1841___=0;}else if(yyCompareVal(___sw1840___,2,g_GMLMathEpsilon,false)==0){___swc1841___=1;}switch(___swc1841___){
case 0:{gmlvrs="";gmlgms=string(ds_map_find_value(_inst.gmlpmap,"season_games"));gmlatt=string(ds_map_find_value(_inst.gmlpmap,"season_attempts"));gmlcmp=string(ds_map_find_value(_inst.gmlpmap,"season_complete"));gmlyds=string(round(ds_map_find_value(_inst.gmlpmap,"season_yards")));gmlavg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,1,false),1);gmllng=string(round(ds_map_find_value(_inst.gmlpmap,"season_longest")));gmltds=string(ds_map_find_value(_inst.gmlpmap,
"season_touchdowns"));gmlfum=string(ds_map_find_value(_inst.gmlpmap,"season_fumbles"));gmltck=string(ds_map_find_value(_inst.gmlpmap,"season_tackles"));gmlint=string(ds_map_find_value(_inst.gmlpmap,"season_int"));gmlsck=string(ds_map_find_value(_inst.gmlpmap,"season_sacks"));if((yyGetBool((yyGetBool(yyfequal(gmlpos,1)))||(yyGetBool(yyfequal(gmlpos,10)))))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"season_attempts"),0)))){gmlcmp=yyfplus(gmlcmp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"season_complete")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"season_attempts")))),100))))),"%)"));};gmlr_att=string(ds_map_find_value(_inst.gmlpmap,"season_rush_attempts"));gmlr_yds=string(round(ds_map_find_value(_inst.gmlpmap,"season_rush_yards")));gmlr_avg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,1,true),1);gmlr_lng=string(round(ds_map_find_value(_inst.gmlpmap,"season_rush_longest")));gmlr_tds=string(ds_map_find_value(_inst.gmlpmap,
"season_rush_touchdowns"));if(yyGetBool(ds_map_exists(_inst.gmlpmap,"season_return_attempts"))){{gmlret_yds=string(round(ds_map_find_value(_inst.gmlpmap,"season_return_yards")));gmlret_tds=string(round(ds_map_find_value(_inst.gmlpmap,"season_return_tds")));gmlret_lng=string(round(ds_map_find_value(_inst.gmlpmap,"season_return_longest")));gmlret_att=ds_map_find_value(_inst.gmlpmap,"season_return_attempts");};};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"season_attempts_XP"))){{gmlatt_xp=string(round(ds_map_find_value(_inst.gmlpmap,
"season_attempts_XP")));gmlcmp_xp=string(round(ds_map_find_value(_inst.gmlpmap,"season_complete_XP")));if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"season_attempts_XP"),0)){gmlcmp_xp=yyfplus(gmlcmp_xp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"season_complete_XP")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"season_attempts_XP")))),100))))),"%)"));};};};break;}case 1:{gmlvrs="";gmlgms=string(ds_map_find_value(_inst.gmlpmap,
"career_games"));gmlatt=string(ds_map_find_value(_inst.gmlpmap,"career_attempts"));gmlcmp=string(ds_map_find_value(_inst.gmlpmap,"career_complete"));gmlyds=string(round(ds_map_find_value(_inst.gmlpmap,"career_yards")));gmlavg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,2,false),1);gmllng=string(round(ds_map_find_value(_inst.gmlpmap,"career_longest")));gmltds=string(ds_map_find_value(_inst.gmlpmap,"career_touchdowns"));gmlfum=string(ds_map_find_value(_inst.gmlpmap,
"career_fumbles"));gmltck=string(ds_map_find_value(_inst.gmlpmap,"career_tackles"));gmlint=string(ds_map_find_value(_inst.gmlpmap,"career_int"));gmlsck=string(ds_map_find_value(_inst.gmlpmap,"career_sacks"));if((yyGetBool((yyGetBool(yyfequal(gmlpos,1)))||(yyGetBool(yyfequal(gmlpos,10)))))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"career_attempts"),0)))){gmlcmp=yyfplus(gmlcmp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"career_complete")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"career_attempts")))),100))))),"%)"));};gmlr_att=string(ds_map_find_value(_inst.gmlpmap,"career_rush_attempts"));gmlr_yds=string(round(ds_map_find_value(_inst.gmlpmap,"career_rush_yards")));gmlr_avg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,2,true),1);gmlr_lng=string(round(ds_map_find_value(_inst.gmlpmap,"career_rush_longest")));gmlr_tds=string(ds_map_find_value(_inst.gmlpmap,
"career_rush_touchdowns"));if(yyGetBool(ds_map_exists(_inst.gmlpmap,"career_return_attempts"))){{gmlret_yds=string(round(ds_map_find_value(_inst.gmlpmap,"career_return_yards")));gmlret_tds=string(round(ds_map_find_value(_inst.gmlpmap,"career_return_tds")));gmlret_lng=string(round(ds_map_find_value(_inst.gmlpmap,"career_return_longest")));gmlret_att=ds_map_find_value(_inst.gmlpmap,"career_return_attempts");};};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"career_attempts_XP"))){{gmlatt_xp=string(round(ds_map_find_value(_inst.gmlpmap,
"career_attempts_XP")));gmlcmp_xp=string(round(ds_map_find_value(_inst.gmlpmap,"career_complete_XP")));if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"career_attempts_XP"),0)){gmlcmp_xp=yyfplus(gmlcmp_xp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"career_complete_XP")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"career_attempts_XP")))),100))))),"%)"));};};};break;}};var ___sw1842___=gmlpos;var ___swc1843___=-1;
if(yyCompareVal(___sw1842___,1,g_GMLMathEpsilon,false)==0){___swc1843___=0;}else if(yyCompareVal(___sw1842___,2,g_GMLMathEpsilon,false)==0){___swc1843___=1;}else if(yyCompareVal(___sw1842___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1842___,4,g_GMLMathEpsilon,false)==0){___swc1843___=2;}else if(yyCompareVal(___sw1842___,10,g_GMLMathEpsilon,false)==0){___swc1843___=3;}else if(yyCompareVal(___sw1842___,5,g_GMLMathEpsilon,false)==0){___swc1843___=4;}else if(yyCompareVal(___sw1842___,6,g_GMLMathEpsilon,
false)==0||yyCompareVal(___sw1842___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1842___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1842___,9,g_GMLMathEpsilon,false)==0){___swc1843___=5;}switch(___swc1843___){case 0:{var ___sw1844___=yyInst(_inst,_other,97).gmlstat_view;var ___swc1845___=-1;if(yyCompareVal(___sw1844___,1,g_GMLMathEpsilon,false)==0){___swc1845___=0;}else if(yyCompareVal(___sw1844___,2,g_GMLMathEpsilon,false)==0){___swc1845___=1;}switch(___swc1845___){case 0:{ds_list_add(_inst.gmllines,
yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Passing"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_attempts")),": "),__yy_gml_errCheck(gmlatt)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_stat_complete")),": "),__yy_gml_errCheck(gmlcmp)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlyds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlavg)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmllng)));ds_list_add(_inst.gmllines,
yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmltds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_int")),": "),__yy_gml_errCheck(gmlint)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_sacks")),
": "),__yy_gml_errCheck(gmlsck)));break;}case 1:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Rushing"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_attempts")),
": "),__yy_gml_errCheck(gmlr_att)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlr_yds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlr_avg)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmlr_lng)));ds_list_add(_inst.gmllines,
yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmlr_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));break;}};break;}case 1:{var ___sw1846___=yyInst(_inst,_other,97).gmlstat_view;var ___swc1847___=-1;if(yyCompareVal(___sw1846___,1,g_GMLMathEpsilon,false)==0){___swc1847___=0;}else if(yyCompareVal(___sw1846___,2,g_GMLMathEpsilon,false)==0){
___swc1847___=1;}switch(___swc1847___){case 0:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Receiving"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_receive")),
": "),__yy_gml_errCheck(gmlatt)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlyds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlavg)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmllng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmltds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));break;}case 1:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Rushing"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_attempts")),": "),__yy_gml_errCheck(gmlr_att)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlr_yds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlr_avg)));
ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmlr_lng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmlr_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));if(yyfgreater(gmlret_att,0)){{ds_list_add(_inst.gmllines,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_stat_return_yards")),": "),__yy_gml_errCheck(gmlret_yds))," ("),__yy_gml_errCheck(string(gmlret_att))),")"));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_tds")),": "),__yy_gml_errCheck(gmlret_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_longest")),": "),__yy_gml_errCheck(gmlret_lng)));};};break;}};break;}case 2:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Receiving"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_receive")),": "),__yy_gml_errCheck(gmlatt)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),
": "),__yy_gml_errCheck(gmlyds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlavg)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmllng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmltds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));if(yyfgreater(gmlret_att,0)){{ds_list_add(_inst.gmllines,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_yards")),": "),__yy_gml_errCheck(gmlret_yds))," ("),__yy_gml_errCheck(string(gmlret_att))),")"));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_tds")),": "),__yy_gml_errCheck(gmlret_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_stat_return_longest")),": "),__yy_gml_errCheck(gmlret_lng)));};};break;}case 3:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Kicking"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_stat_fga")),": "),__yy_gml_errCheck(gmlatt)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fgm")),": "),__yy_gml_errCheck(gmlcmp)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlyds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlavg)));ds_list_add(_inst.gmllines,
yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmllng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_xpa")),": "),__yy_gml_errCheck(gmlatt_xp)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_xpm")),": "),__yy_gml_errCheck(gmlcmp_xp)));break;}case 4:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Blocking"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_blocks")),": "),__yy_gml_errCheck(gmltck)));break;}case 5:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Defense"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_tackles")),": "),__yy_gml_errCheck(gmltck)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_int")),
": "),__yy_gml_errCheck(gmlint)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_sacks")),": "),__yy_gml_errCheck(gmlsck)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_f_fumbles")),": "),__yy_gml_errCheck(gmlfum)));if(yyfgreater(gmlret_att,0)){{ds_list_add(_inst.gmllines,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_yards")),": "),
__yy_gml_errCheck(gmlret_yds))," ("),__yy_gml_errCheck(string(gmlret_att))),")"));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_tds")),": "),__yy_gml_errCheck(gmlret_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_longest")),": "),__yy_gml_errCheck(gmlret_lng)));};};break;}};}function gml_Object_obj_stats_player_Destroy_0(_inst,_other){ds_list_destroy(_inst.gmllines);_inst.gmllines=(-1);
}function gml_Object_obj_stats_player_Draw_0(_inst,_other){}function gml_Object_obj_stats_player_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),16);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),16);var gmll=0;for(;yyfless(gmll,ds_list_size(_inst.gmllines));(g_yyPrePostObject__=gmll,gmll=(g_yyPrePostObject__ instanceof Long?gmll.add(1):++gmll),g_yyPrePostObject__)){{var gmltxt=ds_list_find_value(_inst.gmllines,gmll);if(yyGetBool(string_count("shad_",
gmltxt))){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),string_replace(gmltxt,"shad_",""),0,0,0,0,1);};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_replace(gmltxt,"shad_",""));gmlty=yyfplus(gmlty,14);}};}function gml_Object_obj_stats_player_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstat_type=0;}function gml_Object_obj_tag_kr_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),
60))),1)),2);if(yyGetBool(_inst.gmlselected)){{if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,255,1);}else {draw_sprite(_inst,_inst.sprite_index,1,_inst.x,_inst.y);};};}else {{if(yyfequal(global.gmlui_selected,_inst.id)){draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,255,1);}else {draw_sprite(_inst,_inst.sprite_index,0,_inst.x,_inst.y);};};};}function gml_Object_obj_tag_kr_PreCreate_0(_inst,_other){event_inherited(_inst,
_other);_inst.gmlselected=false;_inst.gmlonClickAction=kgml_Script_btn_click_KR_Select;_inst.gmlbtn_image=263;}function gml_Object_obj_meeting_player_Create_0(_inst,_other){_inst.gmllines=ds_list_create();_inst.gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));yyInst(_inst,_other,100520).gmltitle=gmlname;
yyInst(_inst,_other,100527).gmltext=yyfplus(__yy_gml_errCheck(string(round(ds_map_find_value(_inst.gmlpmap,"attitude")))),"%");yyInst(_inst,_other,100526).gmltext=yyfplus(__yy_gml_errCheck(string(round(clamp(ds_map_find_value(_inst.gmlpmap,"condition"),0,100)))),"%");yyInst(_inst,_other,100528).gmltext=string(ds_map_find_value(_inst.gmlpmap,"xp_level"));var gmlcontract=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"salary")))),"m ("),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,
"contract")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Year"))),")");yyInst(_inst,_other,100529).gmltext=gmlcontract;yyInst(_inst,_other,100523).gmltext=gml_Script_s_str(_inst,_other,"ui_BoostMorale");yyInst(_inst,_other,100522).gmltext=gml_Script_s_str(_inst,_other,"ui_BoostCondition");yyInst(_inst,_other,100524).gmltext=gml_Script_s_str(_inst,_other,"ui_LevelUp");yyInst(_inst,_other,100525).gmltext=gml_Script_s_str(_inst,_other,"ui_ExtendContract");yyInst(_inst,_other,100531).gmltext=string(gml_Script_s_get_meeting_cost_morale(_inst,
_other,_inst.gmlpmap));yyInst(_inst,_other,100533).gmltext=string(gml_Script_s_get_meeting_cost_condition(_inst,_other,_inst.gmlpmap));yyInst(_inst,_other,100534).gmltext=gml_Script_s_get_meeting_cost_levelup(_inst,_other,_inst.gmlpmap);if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"attitude"),100)){yyInst(_inst,_other,100531).gmlactive=false;};if((yyGetBool(yyfless(ds_map_find_value(_inst.gmlpmap,"condition"),0)))||(yyGetBool(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"condition"),100)))){
yyInst(_inst,_other,100533).gmlactive=false;};_inst.gmlretirement=false;var gmlm4Image=yyInst(_inst,_other,100535).gmlimage;if(yyfequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){{yyInst(_inst,_other,100535).gmlactive=false;yyInst(_inst,_other,100535).gmltext=gml_Script_s_str(_inst,_other,"ui_Rookie");yyInst(_inst,_other,100535).gmlimage=(-1);};}else {if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_get_max_age_normal(_inst,_other,
_inst.gmlpmap))){{_inst.gmlretirement=true;yyInst(_inst,_other,100525).gmltext=gml_Script_s_str(_inst,_other,"ui_DelayRetirement");yyInst(_inst,_other,100535).gmltext=max(gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,_inst.gmlpmap),gml_Script_s_get_meeting_cost_delay_retirement(_inst,_other,_inst.gmlpmap));if((yyGetBool(yyfless(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_get_max_age(_inst,_other,_inst.gmlpmap))))||(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"age"),
yyfplus(__yy_gml_errCheck(gml_Script_s_get_max_age_normal(_inst,_other,_inst.gmlpmap)),4))))){yyInst(_inst,_other,100535).gmlactive=false;};};}else {{yyInst(_inst,_other,100535).gmltext=gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,_inst.gmlpmap);if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"contract"),4)){yyInst(_inst,_other,100535).gmlactive=false;}else {if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"age")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"contract"))),gml_Script_s_get_max_age(_inst,_other,_inst.gmlpmap))){yyInst(_inst,_other,100535).gmlactive=false;};};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100535).gmltext=gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,_inst.gmlpmap);yyInst(_inst,_other,100535).gmlactive=true;yyInst(_inst,_other,100535).gmlimage=gmlm4Image;yyInst(_inst,_other,100529).gmltext=gml_Script_s_gpa_string(_inst,_other,_inst.gmlpmap);yyInst(_inst,_other,100529).gmltitle=gml_Script_s_str(_inst,
_other,"ui_GPA");};};yyInst(_inst,_other,100537).visible=false;if((yyGetBool(ds_map_exists(_inst.gmlpmap,"meetingdone")))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"meetingdone"),0)))){{yyInst(_inst,_other,100537).gmltext=string_replace(gml_Script_s_str(_inst,_other,"msg_MeetingDone"),"$playername",gmlname);yyInst(_inst,_other,100537).visible=true;yyInst(_inst,_other,100531).gmlactive=false;yyInst(_inst,_other,100533).gmlactive=false;yyInst(_inst,_other,100534).gmlactive=false;yyInst(_inst,
_other,100535).gmlactive=false;};};}function gml_Object_obj_meeting_player_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstat_type=0;}function gml_Object_obj_staffprofile_Create_0(_inst,_other){_inst.gmlpmap=yyInst(_inst,_other,97).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};if(yyfequal(ds_map_find_value(_inst.gmlpmap,"position"),100)){{room_goto(46);return;};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,100459).gmlpmap=yyInst(_inst,
_other,97).gmlplayer_profile;yyInst(_inst,_other,100459).gmlactive=false;yyInst(_inst,_other,100455).gmltitle=gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position"));yyInst(_inst,_other,100456).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Name")),": "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname")))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));yyInst(_inst,_other,100457).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Age")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"age"))));if((yyGetBool(yyfequal(!yyGetBool(ds_map_find_value(_inst.gmlpmap,"position")),100)))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_get_max_age(_inst,_other,_inst.gmlpmap))))){yyInst(_inst,_other,100457).gmltext=yyfplus(yyInst(_inst,_other,100457).gmltext,yyfplus(yyfplus(" (",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Retiring"))),")"));};yyInst(_inst,_other,100458).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude"))));_inst.gmlattitude_img=gml_Script_s_get_attitude_icon(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude"));yyInst(_inst,_other,100466).gmltext=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Contract")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"contract")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,
"sla_Year")));yyInst(_inst,_other,100464).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Trait")),": "),__yy_gml_errCheck(gml_Script_s_get_string_trait(_inst,_other,ds_map_find_value(_inst.gmlpmap,"trait"))));_inst.gmllayer_nav=layer_get_id("Instances_Nav");layer_set_visible(_inst.gmllayer_nav,true);_inst.gmllayer_xp=layer_get_id("Instances_XP_Continue");layer_set_visible(_inst.gmllayer_xp,false);_inst.gmllayer_hire=layer_get_id("Instances_Hire");layer_set_visible(_inst.gmllayer_hire,
true);_inst.gmllayer_training=layer_get_id("Instances_Training");layer_set_visible(_inst.gmllayer_training,true);yyInst(_inst,_other,100453).visible=false;if(yyfequal(ds_map_find_value(_inst.gmlpmap,"position"),100)){{{var __yy__v2086=GetWithArray(100460);for(var __yy__v2087 in __yy__v2086){if(!__yy__v2086.hasOwnProperty(__yy__v2087))continue;var __yy__v2088=__yy__v2086[__yy__v2087];__yy__v2088.y=yyfplus(__yy__v2088.y,32);}};{var __yy__v2089=GetWithArray(74);for(var __yy__v2090 in __yy__v2089){if(!__yy__v2089.hasOwnProperty(__yy__v2090))continue;
var __yy__v2091=__yy__v2089[__yy__v2090];__yy__v2091.y=yyfplus(__yy__v2091.y,32);}};{var __yy__v2092=GetWithArray(49);for(var __yy__v2093 in __yy__v2092){if(!__yy__v2092.hasOwnProperty(__yy__v2093))continue;var __yy__v2094=__yy__v2092[__yy__v2093];__yy__v2094.y=yyfplus(__yy__v2094.y,32);}};{var __yy__v2095=GetWithArray(66);for(var __yy__v2096 in __yy__v2095){if(!__yy__v2095.hasOwnProperty(__yy__v2096))continue;var __yy__v2097=__yy__v2095[__yy__v2096];{__yy__v2097.y=yyfplus(__yy__v2097.y,32);__yy__v2097.image_yscale=0.78;
}}};yyInst(_inst,_other,100460).gmlinfo_msg="info_HeadCoach";yyInst(_inst,_other,100463).visible=false;if(yyGetBool(global.gmldebug)){yyInst(_inst,_other,100466).gmltext=yyfplus("Rating:",__yy_gml_errCheck(string(yyInst(_inst,_other,97).gmlcoach_rating)));}else {yyInst(_inst,_other,100466).visible=false;};yyInst(_inst,_other,100464).visible=false;yyInst(_inst,_other,100465).visible=false;yyInst(_inst,_other,100450).visible=false;yyInst(_inst,_other,100451).visible=false;yyInst(_inst,_other,100453).visible=true;
layer_set_visible(_inst.gmllayer_training,false);layer_set_visible(_inst.gmllayer_hire,false);if(yyfless(yyInst(_inst,_other,97).gmlmyface_x,0)){{yyInst(_inst,_other,97).gmlface_type_coach=true;room_goto(4);};};};}else {if(yyfless(ds_list_find_index(yyInst(_inst,_other,97).gmlstafflist,_inst.gmlpmap),0)){{yyInst(_inst,_other,100466).gmltext="";yyInst(_inst,_other,100448).gmltext=gml_Script_s_str(_inst,_other,"ui_Hire");yyInst(_inst,_other,100454).gmltext=gml_Script_s_str(_inst,_other,"ui_AvailableStaff");
yyInst(_inst,_other,100455).image_yscale=1.125;yyInst(_inst,_other,100447).visible=false;yyInst(_inst,_other,100446).visible=false;yyInst(_inst,_other,100443).visible=false;yyInst(_inst,_other,100444).visible=false;yyInst(_inst,_other,100445).visible=false;};}else {{gml_Script_s_load_profile_uni(_inst,_other,100459);yyInst(_inst,_other,100448).gmltext=gml_Script_s_str(_inst,_other,"btn_ExtendContract");yyInst(_inst,_other,100453).visible=true;yyInst(_inst,_other,100443).gmlcolour=global.gmlc_background;
yyInst(_inst,_other,100444).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100445).gmlcolour=global.gmlc_background;var ___sw1854___=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position");var ___swc1855___=-1;if(yyCompareVal(___sw1854___,101,g_GMLMathEpsilon,false)==0){___swc1855___=0;}else if(yyCompareVal(___sw1854___,102,g_GMLMathEpsilon,false)==0){___swc1855___=1;}switch(___swc1855___){case 0:{gml_Script_slog(_inst,_other,"POS_STAFF_DF");var ___sw1856___=yyInst(_inst,_other,
97).gmltraining_reg_df;var ___swc1857___=-1;if(yyCompareVal(___sw1856___,1,g_GMLMathEpsilon,false)==0){___swc1857___=0;}else if(yyCompareVal(___sw1856___,2,g_GMLMathEpsilon,false)==0){___swc1857___=1;}else if(yyCompareVal(___sw1856___,3,g_GMLMathEpsilon,false)==0){___swc1857___=2;}switch(___swc1857___){case 0:{yyInst(_inst,_other,100443).gmlcolour=global.gmlc_primary;break;}case 1:{yyInst(_inst,_other,100444).gmlcolour=global.gmlc_primary;break;}case 2:{yyInst(_inst,_other,100445).gmlcolour=global.gmlc_primary;
break;}};break;}case 1:{gml_Script_slog(_inst,_other,"POS_STAFF_OF");var ___sw1858___=yyInst(_inst,_other,97).gmltraining_reg_of;var ___swc1859___=-1;if(yyCompareVal(___sw1858___,1,g_GMLMathEpsilon,false)==0){___swc1859___=0;}else if(yyCompareVal(___sw1858___,2,g_GMLMathEpsilon,false)==0){___swc1859___=1;}else if(yyCompareVal(___sw1858___,3,g_GMLMathEpsilon,false)==0){___swc1859___=2;}switch(___swc1859___){case 0:{gml_Script_slog(_inst,_other,"1");yyInst(_inst,_other,100443).gmlcolour=global.gmlc_primary;
break;}case 1:{gml_Script_slog(_inst,_other,"2");yyInst(_inst,_other,100444).gmlcolour=global.gmlc_primary;break;}case 2:{gml_Script_slog(_inst,_other,"3");yyInst(_inst,_other,100445).gmlcolour=global.gmlc_primary;break;}};break;}};};};};_inst.gmltarget=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp_level")),100);_inst.gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp")),__yy_gml_errCheck(_inst.gmltarget))),100);yyInst(_inst,_other,100463).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,
_other,"ui_XPLevel"))," "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"xp_level"))));yyInst(_inst,_other,100463).gmlpercent=_inst.gmlprc;}function gml_Object_obj_staffprofile_Step_0(_inst,_other){yyInst(_inst,_other,100462).gmltext=gml_Script_s_get_credit(_inst,_other);if(!yyGetBool(ds_exists(_inst.gmlpmap,1))){return;};if(yyGetBool(is_undefined(ds_map_find_value(_inst.gmlpmap,"xp_gain")))){return;};if(yyfgreater(real(ds_map_find_value(_inst.gmlpmap,"xp_gain")),0)){{layer_set_visible(_inst.gmllayer_nav,
false);layer_set_visible(_inst.gmllayer_hire,false);layer_set_visible(_inst.gmllayer_training,false);ds_map_set(_inst.gmlpmap,"xp_gain",yyfminus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"xp_gain"))),1));ds_map_set(_inst.gmlpmap,"xp",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"xp"))),1));if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"xp"),_inst.gmltarget)){{ds_map_set(_inst.gmlpmap,"xp",1);ds_map_set(_inst.gmlpmap,"xp_level",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,
"xp_level")),1));ds_map_set(_inst.gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"attitude")),10),1,100));if(yyfless(ds_map_find_value(_inst.gmlpmap,"xp_gain"),1)){ds_map_set(_inst.gmlpmap,"xp_gain",1);};var gmlcx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100463).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100463).sprite_width),0.9)));var gmlcy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100463).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,
_other,100463).sprite_height),0.5)));if(yyfless(ds_map_find_value(_inst.gmlpmap,"rating"),10)){{var gmldx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100459).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100459).sprite_width),0.5)));var gmldy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100459).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100459).sprite_height),0.8)));gml_Script_s_create_credit(_inst,_other,gmlcx,gmlcy,gmldx,gmldy,1,2,_inst.gmlpmap,true);
};}else {{gml_Script_s_create_credit(_inst,_other,gmlcx,gmlcy,yyInst(_inst,_other,100462).x,yyInst(_inst,_other,100462).y,1,1,(-4),true);};};return;};};_inst.gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp")),__yy_gml_errCheck(_inst.gmltarget))),100);yyInst(_inst,_other,100463).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XPLevel"))," "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"xp_level"))));yyInst(_inst,
_other,100463).gmlpercent=_inst.gmlprc;if(yyfless(ds_map_find_value(_inst.gmlpmap,"xp_gain"),1)){{ds_map_set(_inst.gmlpmap,"xp_gain",0);layer_set_visible(_inst.gmllayer_xp,true);};};};};}function gml_Object_obj_staffprofile_Draw_64(_inst,_other){draw_sprite(_inst,95,_inst.gmlattitude_img,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100458).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100458).gmltext)," ")))),yyInst(_inst,_other,100458).y);
}function gml_Object_obj_staffprofile_KeyPress_88(_inst,_other){if((yyGetBool(!yyGetBool(global.gmlmobile_device)))&&(yyGetBool(!yyGetBool(global.gmlbrowser)))){{ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"xp_gain",yyfminus(__yy_gml_errCheck(_inst.gmltarget),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"xp"))));};};}function gml_Object_obj_staffprofile_KeyPress_90(_inst,_other){{var __yy__v2098=GetWithArray(71);for(var __yy__v2099 in __yy__v2098){if(!__yy__v2098.hasOwnProperty(__yy__v2099))continue;
var __yy__v2100=__yy__v2098[__yy__v2099];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,97).gmlplayer_profile,"rings"))){ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"rings")),1));}else {ds_map_set(yyInst(_inst,_other,97).gmlplayer_profile,"rings",1);};};};}function gml_Object_obj_roster_Create_0(_inst,_other){gml_Script_s_tag_backups(_inst,_other);yyInst(_inst,
_other,97).gmlroster=gml_Script_s_sort_players(_inst,_other,yyInst(_inst,_other,97).gmlroster,4);if(yyGetBool(yyInst(_inst,_other,97).gmlqb_mode)){{yyInst(_inst,_other,100481).visible=false;gml_Script_s_qb_mode_update_resting(_inst,_other);};};var gmlgap=4;var gmlbuf=10;var gmlsize=ds_list_size(yyInst(_inst,_other,97).gmlroster);var gmlmax_roster=10;if(yyfgreater(yyInst(_inst,_other,97).gmlsalary_cap,150)){gmlmax_roster=12;};var gmlcards_per_row=yyfdivide(__yy_gml_errCheck(gmlmax_roster),2);if(yyflessequal(gmlsize,
10)){{gmlcards_per_row=5;gmlgap=8;gmlbuf=0;};};if(yyflessequal(gmlsize,8)){gmlcards_per_row=4;};if(yyflessequal(gmlsize,6)){gmlcards_per_row=3;};var gmlpx=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5));var gmlpy=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_height),0.49));var gmlpw=yyfplus(__yy_gml_errCheck(sprite_get_width(156)),__yy_gml_errCheck(gmlgap));if(yyfgreater(gmlsize,gmlcards_per_row)){{gmlpy=yyfminus(gmlpy,44);gmlpx=yyfminus(gmlpx,yyftime(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlcards_per_row),
1)),__yy_gml_errCheck(gmlpw)),0.5));gmlpx=yyfplus(gmlpx,gmlbuf);};}else {{gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsize),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));gmlpx=yyfplus(gmlpx,gmlbuf);};};var gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst,_other,97).gmlmyteam_id,gmluniform,0,"");var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,
gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{_inst.gmlroster_profile=__yy_gml_array_check(_inst.gmlroster_profile,917944806);_inst.gmlroster_profile[__yy_gml_array_check_index_set(gmlr)]=instance_create_layer(0,0,"Instances",49);yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmlr);yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,
_inst.gmlroster_profile)]).gmlonHoldAction=kgml_Script_btn_click_Profile_Cut;{var __yy__v2101=GetWithArray(_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]);for(var __yy__v2102 in __yy__v2101){if(!__yy__v2101.hasOwnProperty(__yy__v2102))continue;var __yy__v2103=__yy__v2101[__yy__v2102];gml_Script_s_set_up_uniform_profile(__yy__v2103,_inst,gmluniform);}};yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).x=yyfminus(__yy_gml_errCheck(gmlpx),
__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5)));yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).y=yyfminus(__yy_gml_errCheck(gmlpy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).sprite_height),0.5)));gmlpx=yyfplus(gmlpx,gmlpw);if(yyfequal(gmlr,yyfminus(__yy_gml_errCheck(gmlcards_per_row),1))){{var gmlsz=yyfminus(__yy_gml_errCheck(gmlsize),
__yy_gml_errCheck(gmlcards_per_row));gmlpx=yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5);gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsz),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));gmlpx=yyfplus(gmlpx,gmlbuf);gmlpy=yyfplus(gmlpy,88);};};}};yyInst(_inst,_other,100479).gmlimage=145;{var __yy__v2104=GetWithArray(97);for(var __yy__v2105 in __yy__v2104){if(!__yy__v2104.hasOwnProperty(__yy__v2105))continue;var __yy__v2106=__yy__v2104[__yy__v2105];
{var gmllimit=10;if(yyfequal(__yy__v2106.gmlsalary_cap,200)){{gmllimit=12;yyInst(_inst,_other,100484).gmlinfo_msg="info_StarPlayers12";};};yyInst(_inst,_other,100489).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v2106,_inst,"ui_Players"))," "),__yy_gml_errCheck(string(gmlsize)))," / "),__yy_gml_errCheck(string(gmllimit)));if(yyGetBool(__yy__v2106.gmlroster_from_store)){yyInst(_inst,_other,100479).gmlimage=128;}else {if(yyfgreater(ds_list_size(__yy__v2106.gmldraftlist),
0)){yyInst(_inst,_other,100479).gmlimage=128;}else {if(yyfgreater(ds_list_size(__yy__v2106.gmlfreeagentlist),0)){yyInst(_inst,_other,100479).gmlimage=128;}else {if(yyfgreater(ds_list_size(__yy__v2106.gmltradelist),0)){yyInst(_inst,_other,100479).gmlimage=128;};};};};}}};var ___sw1862___=yyInst(_inst,_other,97).gmlintro;var ___swc1863___=-1;if(yyCompareVal(___sw1862___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1862___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1862___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1862___,
4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1862___,5,g_GMLMathEpsilon,false)==0){___swc1863___=0;}else if(yyCompareVal(___sw1862___,6,g_GMLMathEpsilon,false)==0){___swc1863___=1;}else if(yyCompareVal(___sw1862___,7,g_GMLMathEpsilon,false)==0){___swc1863___=2;}switch(___swc1863___){case 0:{yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).gmlflash=true;yyInst(_inst,_other,100487).gmlactive=false;yyInst(_inst,_other,100479).gmlactive=false;break;
}case 1:{yyInst(_inst,_other,100487).gmlactive=false;yyInst(_inst,_other,100479).gmlflash=true;}case 2:{break;}default :{return;break;}};gml_Script_s_check_intro(_inst,_other);}function gml_Object_obj_roster_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(5)]=49;_inst.gmlsortby=2;}function gml_Object_obj_winners_Create_0(_inst,_other){gml_Script_s_do_player_awards(_inst,_other);_inst.alarm=__yy_gml_array_check(_inst.alarm,
1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=1;_inst.gmlc_sky=make_color_rgb(0,40,180);var gmlbowlnum=yyfminus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,97).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,97).gmlyear)),1966);yyInst(_inst,_other,100595).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_RetroBowl"))," "),__yy_gml_errCheck(gml_Script_s_roman_numerals(_inst,_other,gmlbowlnum)));yyInst(_inst,_other,100597).gmltext=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,
_other,97).gmlmyteam,"name"))," are "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champions"))),"!");yyInst(_inst,_other,100600).gmltext=ds_map_find_value(yyInst(_inst,_other,97).gmlmyteam,"name");yyInst(_inst,_other,100600).visible=false;yyInst(_inst,_other,100598).gmltext=gml_Script_s_str(_inst,_other,"ui_HeadCoach");yyInst(_inst,_other,100601).gmltext=gml_Script_s_str(_inst,_other,"short_STAFF_DF");yyInst(_inst,_other,100602).gmltext=gml_Script_s_str(_inst,_other,"short_STAFF_OF");yyInst(_inst,
_other,97).gmlroster=gml_Script_s_sort_players(_inst,_other,yyInst(_inst,_other,97).gmlroster,4);var gmlsize=ds_list_size(yyInst(_inst,_other,97).gmlroster);var gmlpx=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5));var gmlpy=138;var gmlpw=sprite_get_width(179);if(yyfgreater(gmlsize,5)){{gmlpy=yyfminus(gmlpy,44);gmlpx=yyfminus(gmlpx,yyftime(4,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),1))));};}else {{gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsize),
1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),1))));};};var gmluniform=instance_create_layer(0,0,"Instances",132);yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst,_other,97).gmlmyteam_id,gmluniform,0,"");var gmldpth=10;var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{_inst.gmlroster_profile=__yy_gml_array_check(_inst.gmlroster_profile,917944806);
_inst.gmlroster_profile[__yy_gml_array_check_index_set(gmlr)]=instance_create_layer(0,0,"Instances",50);yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlpmap=ds_list_find_value(yyInst(_inst,_other,97).gmlroster,gmlr);{var __yy__v2107=GetWithArray(_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]);for(var __yy__v2108 in __yy__v2107){if(!__yy__v2107.hasOwnProperty(__yy__v2108))continue;var __yy__v2109=__yy__v2107[__yy__v2108];
gml_Script_s_set_up_uniform_profile(__yy__v2109,_inst,gmluniform);}};yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).x=gmlpx;yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).y=yyfminus(__yy_gml_errCheck(gmlpy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).sprite_height),0.5)));yyInst(_inst,_other,
_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).depth=gmldpth;gmlpx=yyfplus(gmlpx,yyftime(__yy_gml_errCheck(gmlpw),2));if(yyfequal(gmlr,4)){{var gmlsz=yyfminus(__yy_gml_errCheck(gmlsize),5);gmlpx=yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5);gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsz),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),1))));gmlpy=yyfplus(gmlpy,64);gmldpth=yyfminus(gmldpth,1);};};}};_inst.gmlboss=instance_create_layer(0,
0,"Instances",50);yyInst(_inst,_other,_inst.gmlboss).gmlpmap=gml_Script_s_get_staff(_inst,_other,100);{var __yy__v2110=GetWithArray(_inst.gmlboss);for(var __yy__v2111 in __yy__v2110){if(!__yy__v2110.hasOwnProperty(__yy__v2111))continue;var __yy__v2112=__yy__v2110[__yy__v2111];gml_Script_s_set_up_uniform_profile(__yy__v2112,_inst,gmluniform);}};_inst.gmlof=instance_create_layer(0,0,"Instances",50);yyInst(_inst,_other,_inst.gmlof).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);{var __yy__v2113=GetWithArray(_inst.gmlof);
for(var __yy__v2114 in __yy__v2113){if(!__yy__v2113.hasOwnProperty(__yy__v2114))continue;var __yy__v2115=__yy__v2113[__yy__v2114];gml_Script_s_set_up_uniform_profile(__yy__v2115,_inst,gmluniform);}};_inst.gmldf=instance_create_layer(0,0,"Instances",50);yyInst(_inst,_other,_inst.gmldf).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);{var __yy__v2116=GetWithArray(_inst.gmldf);for(var __yy__v2117 in __yy__v2116){if(!__yy__v2116.hasOwnProperty(__yy__v2117))continue;var __yy__v2118=__yy__v2116[__yy__v2117];gml_Script_s_set_up_uniform_profile(__yy__v2118,
_inst,gmluniform);}};yyInst(_inst,_other,_inst.gmlboss).x=yyInst(_inst,_other,100598).x;yyInst(_inst,_other,_inst.gmlboss).y=202;yyInst(_inst,_other,_inst.gmlboss).depth=gmldpth;yyInst(_inst,_other,_inst.gmlof).x=yyInst(_inst,_other,100602).x;yyInst(_inst,_other,_inst.gmlof).y=202;yyInst(_inst,_other,_inst.gmlof).depth=gmldpth;yyInst(_inst,_other,_inst.gmldf).x=yyInst(_inst,_other,100601).x;yyInst(_inst,_other,_inst.gmldf).y=202;yyInst(_inst,_other,_inst.gmldf).depth=gmldpth;}function gml_Object_obj_winners_Alarm_0(_inst,
_other){effect_create_above(3,random(g_pBuiltIn.room_width),yyfminus(__yy_gml_errCheck(random(g_pBuiltIn.room_height)),100),choose(0,1,2),make_colour_hsv(random(255),255,255));_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=yyfplus(__yy_gml_errCheck(random(30)),1);}function gml_Object_obj_winners_Draw_0(_inst,_other){draw_set_color(_inst.gmlc_sky);draw_rectangle((-1),(-1),yyfplus(__yy_gml_errCheck(g_pBuiltIn.room_width),1),yyfplus(__yy_gml_errCheck(g_pBuiltIn.room_height),
1),0);draw_set_color(16777215);gpu_set_blendmode(1);draw_ellipse_colour((-400),0,yyfplus(__yy_gml_errCheck(g_pBuiltIn.room_width),400),yyfplus(__yy_gml_errCheck(g_pBuiltIn.room_height),450),global.gmlc_background,0,0);gpu_set_blendmode(0);}function gml_Object_obj_winners_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(5)]=49;_inst.gmlsortby=2;}function gml_Object_obj_draft_Create_0(_inst,
_other){gml_Script_slog(_inst,_other,"obj_draft");var gmlpicks=0;{var __yy__v2119=GetWithArray(97);for(var __yy__v2120 in __yy__v2119){if(!__yy__v2119.hasOwnProperty(__yy__v2120))continue;var __yy__v2121=__yy__v2119[__yy__v2120];{gmlpicks=__yy__v2121.gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(__yy__v2121.gmldraft_round),1),__yy__v2121.gmldraft_picks)];if(yyfequal(yyInst(_inst,_other,97).gmlco_mode,0)){{if(yyfequal(gmlpicks,0)){{gml_Script_s_end_draft_round(__yy__v2121,_inst,false);
return;};};};};__yy__v2121.gmldraftlist=gml_Script_s_sort_players(__yy__v2121,_inst,__yy__v2121.gmldraftlist,2);var ___sw1866___=__yy__v2121.gmldraft_info_done;var ___swc1867___=-1;if(yyCompareVal(___sw1866___,0,g_GMLMathEpsilon,false)==0){___swc1867___=0;}else if(yyCompareVal(___sw1866___,1,g_GMLMathEpsilon,false)==0){___swc1867___=1;}else if(yyCompareVal(___sw1866___,2,g_GMLMathEpsilon,false)==0){___swc1867___=2;}switch(___swc1867___){case 0:{gml_Script_s_do_info(__yy__v2121,_inst,"info_Draft");__yy__v2121.gmldraft_info_done=2;
break;}case 1:{gml_Script_s_do_info(__yy__v2121,_inst,"info_Draft2");__yy__v2121.gmldraft_info_done=2;break;}case 2:{break;}};}}};yyInst(_inst,_other,100052).gmltext=string_replace(gml_Script_s_str(_inst,_other,"ui_DraftRound"),"$num",string(yyInst(_inst,_other,97).gmldraft_round));yyInst(_inst,_other,100054).gmltext=gml_Script_s_str(_inst,_other,"ui_Picks");if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100054).visible=false;};};_inst.gmlpage_max=ceil(yyfdivide(__yy_gml_errCheck(ds_list_size(yyInst(_inst,
_other,97).gmldraftlist)),10));if(yyfless(_inst.gmlpage_max,1)){_inst.gmlpage_max=1;};yyInst(_inst,_other,97).gmldraft_page=clamp(yyInst(_inst,_other,97).gmldraft_page,1,_inst.gmlpage_max);gml_Script_s_update_draft_page(_inst,_other);if(yyGetBool(yyInst(_inst,_other,97).gmldodraftbanner)){gml_Script_s_do_banner_draft(_inst,_other);};}function gml_Object_obj_draft_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(5)]=49;
}function gml_Object_obj_freeagents_Create_0(_inst,_other){gml_Script_s_update_freeagents_page(_inst,_other);gml_Script_s_check_expired_contract_message(_inst,_other);}function gml_Object_obj_freeagents_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(5)]=49;_inst.gmlsortby=2;}function gml_Object_obj_meter_starrating_Create_0(_inst,_other){_inst.gmlold_percent=yyInst(_inst,_other,
97).gmlstarrating;_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_StarRating"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlcolour=global.gmlc_primary;}function gml_Object_obj_meter_starrating_Step_0(_inst,_other){_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_StarRating"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlold_percent=lerp(_inst.gmlold_percent,
yyInst(_inst,_other,97).gmlstarrating,0.1);}function gml_Room_rm_master_Create(_inst,_other){}function gml_RoomCC_rm_master_2_Create(_inst,_other){{{var __yy__v2122=GetWithArray((-3));for(var __yy__v2123 in __yy__v2122){if(!__yy__v2122.hasOwnProperty(__yy__v2123))continue;var __yy__v2124=__yy__v2122[__yy__v2123];{if((yyGetBool(__yy__v2124.layer))&&(yyGetBool(yyfnotequal(layer_get_name(__yy__v2124.layer),"PopUps")))){__yy__v2124.x=yyfminus(__yy__v2124.x,56);};}}};};}function gml_RoomCC_rm_master_2_PreCreate(_inst,
_other){_inst.gmlty=16;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RetroBowl");_inst.gmlonClickAction=kgml_Script_s_show_backups;}function gml_RoomCC_rm_master_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot1;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_4_PreCreate(_inst,_other){_inst.gmltitle="";_inst.gmlfill_bg=true;}function gml_RoomCC_rm_master_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot2;
_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot3;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_7_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot1");}function gml_RoomCC_rm_master_8_PreCreate(_inst,_other){_inst.gmlimage=136;_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot1;}function gml_RoomCC_rm_master_9_PreCreate(_inst,
_other){_inst.gmlimage=136;_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot2;}function gml_RoomCC_rm_master_10_PreCreate(_inst,_other){_inst.gmlimage=136;_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot3;}function gml_RoomCC_rm_master_11_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot2");}function gml_RoomCC_rm_master_12_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot3");}function gml_RoomCC_rm_master_13_PreCreate(_inst,
_other){_inst.gmlimage=136;_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot4;}function gml_RoomCC_rm_master_14_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot4");}function gml_RoomCC_rm_master_15_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot4;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_16_PreCreate(_inst,_other){_inst.gmlimage=136;_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot5;
}function gml_RoomCC_rm_master_17_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot5");}function gml_RoomCC_rm_master_18_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot5;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_20_Create(_inst,_other){{};}function gml_RoomCC_rm_master_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ExhibitionGame");_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_start;
}function gml_RoomCC_rm_master_21_Create(_inst,_other){{};}function gml_RoomCC_rm_master_21_PreCreate(_inst,_other){_inst.gmlfill_bg=true;}function gml_RoomCC_rm_title_0_PreCreate(_inst,_other){_inst.gmlaction_create=kgml_Script_s_title_create;}function gml_Room_rm_details_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_details_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_NewCareer");
}function gml_RoomCC_rm_details_1_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourName");}function gml_RoomCC_rm_details_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_Details_Continue;}function gml_RoomCC_rm_details_3_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_FavoriteTeam");}function gml_RoomCC_rm_details_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_Change");_inst.gmlonClickAction=kgml_Script_btn_click_Change_Favourite;}function gml_RoomCC_rm_details_5_PreCreate(_inst,_other){_inst.gmltext="";_inst.gmlnext_input=100026;}function gml_RoomCC_rm_details_6_PreCreate(_inst,_other){_inst.gmltext="";}function gml_RoomCC_rm_details_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FirstName");_inst.gmlhalign=2;_inst.gmldraw_box=false;}function gml_RoomCC_rm_details_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_LastName");_inst.gmlhalign=2;_inst.gmldraw_box=false;}// self.title=s_str("@");
function gml_RoomCC_rm_details_9_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"@");}function gml_RoomCC_rm_details_10_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_details_11_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Face");}function gml_RoomCC_rm_details_12_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_StartWithFave");
_inst.gmlclick_info="info_StartWithFave";}function gml_RoomCC_rm_details_13_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DetailsNotFave");}function gml_RoomCC_rm_details_14_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_GenerateCharacter");_inst.gmlonClickAction=kgml_Script_btn_click_GenerateCharacter;}function gml_RoomCC_rm_details_15_PreCreate(_inst,_other){_inst.gmlimage=128;_inst.gmlonClickAction=kgml_Script_btn_click_Details_Back;
}function gml_RoomCC_rm_details_16_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ChooseFace;}function gml_Room_rm_choose_team_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_choose_team_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ChooseTeam");}function gml_RoomCC_rm_choose_team_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RejectAll");
_inst.gmlonClickAction=kgml_Script_btn_click_ChooseReject;}function gml_RoomCC_rm_choose_team_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ChooseAFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");_inst.gmlbtn_image=114;}function gml_RoomCC_rm_choose_team_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ChooseNFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");_inst.gmlbtn_image=114;}function gml_Room_rm_choose_face_Create(_inst,_other){
layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_choose_face_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ChooseFace");}function gml_RoomCC_rm_choose_face_1_PreCreate(_inst,_other){_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_ChooseFaceNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_choose_face_2_PreCreate(_inst,_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_ChooseFacePrev;
_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_choose_face_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_choose_face_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_cancel_chooseface;_inst.gmlimage=206;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_Room_rm_draft_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_draft_0_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Draft");}function gml_RoomCC_rm_draft_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_DraftDone;_inst.gmlimage=131;}function gml_RoomCC_rm_draft_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_draft_4_PreCreate(_inst,_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_DraftPrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_draft_5_PreCreate(_inst,
_other){_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_DraftNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_draft_6_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_draft_8_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Roster;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_draft_9_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Draft";}
function gml_RoomCC_rm_draft_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_Room_rm_edit_team_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_edit_team_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TeamEditor");}function gml_RoomCC_rm_edit_team_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Save");
_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditDone;}function gml_RoomCC_rm_edit_team_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Cancel");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditCancel;}function gml_RoomCC_rm_edit_team_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RestoreDefault");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditRestore;}function gml_RoomCC_rm_edit_team_4_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,
_inst,"ui_Uniforms");}function gml_RoomCC_rm_edit_team_5_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputHelmet;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_6_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputShirt;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_7_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputSleeve;
_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_8_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputLogo;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_9_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Colors");}function gml_RoomCC_rm_edit_team_10_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputPants;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_11_PreCreate(_inst,
_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputStripe;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_12_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputSocks1;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_13_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputSocks2;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_14_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Helmet");_inst.gmlonClickAction=kgml_Script_btn_click_EditHelmet;}function gml_RoomCC_rm_edit_team_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Logo");_inst.gmlonClickAction=kgml_Script_btn_click_EditLogo;}function gml_RoomCC_rm_edit_team_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Jersey");_inst.gmlonClickAction=kgml_Script_btn_click_EditShirt;}function gml_RoomCC_rm_edit_team_17_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Sleeve");_inst.gmlonClickAction=kgml_Script_btn_click_EditSleeve;}function gml_RoomCC_rm_edit_team_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Pants");_inst.gmlonClickAction=kgml_Script_btn_click_EditPants;}function gml_RoomCC_rm_edit_team_19_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stripe");_inst.gmlonClickAction=kgml_Script_btn_click_EditStripe;}function gml_RoomCC_rm_edit_team_20_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_SocksLow");_inst.gmlonClickAction=kgml_Script_btn_click_EditSocks1;}function gml_RoomCC_rm_edit_team_21_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_SocksHigh");_inst.gmlonClickAction=kgml_Script_btn_click_EditSocks2;}function gml_RoomCC_rm_edit_team_22_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Home");_inst.gmlonClickAction=kgml_Script_btn_click_Kit1;}function gml_RoomCC_rm_edit_team_23_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Away");_inst.gmlonClickAction=kgml_Script_btn_click_Kit2;}function gml_RoomCC_rm_edit_team_24_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Alternate");_inst.gmlonClickAction=kgml_Script_btn_click_Kit3;}function gml_RoomCC_rm_edit_team_27_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Details");}function gml_RoomCC_rm_edit_team_28_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_Name");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_29_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ShortName");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_30_PreCreate(_inst,_other){_inst.gmlmax_length=13;_inst.gmlvalidate_script=kgml_Script_s_update_uniform_name;}function gml_RoomCC_rm_edit_team_31_PreCreate(_inst,_other){_inst.gmlmax_length=4;_inst.gmlnext_input=100078;_inst.gmlvalidate_script=kgml_Script_s_update_uniform_name;
}function gml_RoomCC_rm_edit_team_32_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DefaultName");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_33_PreCreate(_inst,_other){_inst.gmltext="";_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_34_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_More");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditMore;}function gml_RoomCC_rm_edit_team_35_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,
_inst,"ui_Details");}function gml_RoomCC_rm_edit_team_36_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Back");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditMoreDone;}function gml_RoomCC_rm_edit_team_37_PreCreate(_inst,_other){_inst.gmlmax_length=3;_inst.gmlnext_input=100078;_inst.gmlvalidate_script=kgml_Script_s_update_uniform_name;_inst.gmlcustom_keyboard_type=2;}function gml_RoomCC_rm_edit_team_38_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_RainFall");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_39_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_SnowFall");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_40_PreCreate(_inst,_other){_inst.gmlmax_length=3;_inst.gmlnext_input=100078;_inst.gmlvalidate_script=kgml_Script_s_update_uniform_name;_inst.gmlcustom_keyboard_type=2;}function gml_RoomCC_rm_edit_team_41_PreCreate(_inst,_other){_inst.gmltext=string_upper(gml_Script_s_str(_inst,
_inst,"ui_Roof"));}function gml_RoomCC_rm_edit_team_42_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputEndzone;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_43_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_EndZone");_inst.gmlonClickAction=kgml_Script_btn_click_EditEndzone;}function gml_RoomCC_rm_edit_team_44_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Rush");_inst.gmlonClickAction=kgml_Script_btn_click_Kit4;
}function gml_Room_rm_freeagents_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_freeagents_1_PreCreate(_inst,_other){_inst.gmlimage=145;_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgentsBack;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_freeagents_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmlonClickAction=kgml_Script_btn_click_Roster;
_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_freeagents_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FreeAgents");}function gml_RoomCC_rm_freeagents_5_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_FreeAgents";}function gml_RoomCC_rm_freeagents_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Picks");_inst.gmldraw_box=false;}function gml_Room_rm_freeagents2_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),
global.gmlc_background);}function gml_RoomCC_rm_freeagents2_1_PreCreate(_inst,_other){_inst.gmlimage=128;_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresBack;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_freeagents2_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmlonClickAction=kgml_Script_btn_click_Roster;}function gml_RoomCC_rm_freeagents2_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FreeAgents");}function gml_RoomCC_rm_freeagents2_4_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_5_PreCreate(_inst,_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_6_PreCreate(_inst,_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_7_PreCreate(_inst,_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_8_PreCreate(_inst,_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_9_PreCreate(_inst,_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_10_PreCreate(_inst,
_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_17_PreCreate(_inst,_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_19_PreCreate(_inst,_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_21_PreCreate(_inst,_other){_inst.gmlicon=93;}function gml_RoomCC_rm_freeagents2_24_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_freeagents";}function gml_RoomCC_rm_freeagents2_27_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgentsNext;_inst.gmlimage_only=true;
_inst.gmlimage=132;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_freeagents2_28_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgentsPrev;_inst.gmlimage=130;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_freeagents2_29_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgentsReset;_inst.gmlgp_mapped_button=32771;}function gml_Room_rm_frontoffice_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),
global.gmlc_background);}function gml_RoomCC_rm_frontoffice_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FrontOffice");}function gml_RoomCC_rm_frontoffice_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=145;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_frontoffice_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FacilityStadium;_inst.gmlimage=93;}function gml_RoomCC_rm_frontoffice_6_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_FacilityTraining;_inst.gmlimage=93;}function gml_RoomCC_rm_frontoffice_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FacilityStaff;_inst.gmlimage=93;}function gml_RoomCC_rm_frontoffice_8_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Facility_Stadium";}function gml_RoomCC_rm_frontoffice_9_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Facility_Training";_inst.gmlactive=false;}function gml_RoomCC_rm_frontoffice_10_PreCreate(_inst,
_other){_inst.gmlinfo_msg="info_Facility_Rehab";_inst.gmlactive=false;}function gml_RoomCC_rm_frontoffice_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_RoomCC_rm_frontoffice_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_RoomCC_rm_frontoffice_15_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Staff");}function gml_RoomCC_rm_frontoffice_17_PreCreate(_inst,_other){_inst.gmldraw_box=false;
}function gml_RoomCC_rm_frontoffice_18_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_DraftPicks";}function gml_RoomCC_rm_frontoffice_19_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_DraftPicks");}function gml_RoomCC_rm_frontoffice_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_frontoffice_22_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHires;_inst.gmltext=gml_Script_s_str(_inst,
_inst,"btn_StaffHires");}function gml_RoomCC_rm_frontoffice_23_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgents2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_FreeAgents");}function gml_RoomCC_rm_frontoffice_26_Create(_inst,_other){event_inherited(_inst,_inst);}function gml_RoomCC_rm_frontoffice_26_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_BoostSalaryCap");_inst.gmlonClickAction=kgml_Script_btn_click_Boost_Salary_Cap;_inst.gmlgp_mapped_button=32771;
}function gml_RoomCC_rm_frontoffice_27_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_Room_rm_halloffame_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_halloffame_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_HallOfFame");}function gml_RoomCC_rm_halloffame_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;
_inst.gmlimage=145;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_halloffame_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Achievements");_inst.gmlactive=false;}function gml_RoomCC_rm_halloffame_3_Create(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.gmlcontinue_icon=18;};};}function gml_RoomCC_rm_halloffame_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerHallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_players;
_inst.gmlcontinue_icon=197;}function gml_RoomCC_rm_halloffame_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RetroBowls");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Coach;_inst.gmlcontinue_icon=146;}function gml_RoomCC_rm_halloffame_5_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourRecord");}function gml_RoomCC_rm_halloffame_6_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourHistory");}function gml_RoomCC_rm_halloffame_7_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerRecords");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_player_records;}function gml_RoomCC_rm_halloffame_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Achievements");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;}function gml_Room_rm_halloffame_retrobowls_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_halloffame_retrobowls_0_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_HallOfFame");}function gml_RoomCC_rm_halloffame_retrobowls_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=145;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_halloffame_retrobowls_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_CoachRecord");}function gml_RoomCC_rm_halloffame_retrobowls_4_Create(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){
{_inst.gmlcontinue_icon=18;};};}function gml_RoomCC_rm_halloffame_retrobowls_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerHallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_players;_inst.gmlcontinue_icon=197;}function gml_RoomCC_rm_halloffame_retrobowls_5_Create(_inst,_other){_inst.gmlcolour=global.gmlc_primary;}function gml_RoomCC_rm_halloffame_retrobowls_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RetroBowls");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Coach;
_inst.gmlcontinue_icon=146;}function gml_RoomCC_rm_halloffame_retrobowls_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerRecords");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_player_records;}function gml_RoomCC_rm_halloffame_retrobowls_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Achievements");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;}function gml_Room_rm_halloffame_players_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),
global.gmlc_background);}function gml_RoomCC_rm_halloffame_players_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_PlayerHallOfFame");}function gml_RoomCC_rm_halloffame_players_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_PlayerHallOfFameEmpty");_inst.gmldraw_box=false;}function gml_RoomCC_rm_halloffame_players_2_PreCreate(_inst,_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_HofPrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;
}function gml_RoomCC_rm_halloffame_players_3_PreCreate(_inst,_other){_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_HofNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_halloffame_players_4_PreCreate(_inst,_other){_inst.gmltext="";_inst.gmldraw_box=false;}function gml_RoomCC_rm_halloffame_players_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlimage=145;}function gml_RoomCC_rm_halloffame_players_7_Create(_inst,
_other){_inst.gmlcolour=global.gmlc_primary;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.gmlcontinue_icon=18;};};}function gml_RoomCC_rm_halloffame_players_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerHallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_players;_inst.gmlcontinue_icon=197;}function gml_RoomCC_rm_halloffame_players_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RetroBowls");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Coach;
_inst.gmlcontinue_icon=146;}function gml_RoomCC_rm_halloffame_players_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerRecords");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_player_records;}function gml_RoomCC_rm_halloffame_players_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Achievements");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;}function gml_Room_rm_halloffame_player_records_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),
global.gmlc_background);}function gml_RoomCC_rm_halloffame_player_records_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_HallOfFame");}function gml_RoomCC_rm_halloffame_player_records_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlimage=145;}function gml_RoomCC_rm_halloffame_player_records_2_PreCreate(_inst,_other){_inst.gmltitle="";}function gml_RoomCC_rm_halloffame_player_records_3_Create(_inst,
_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.gmlcontinue_icon=18;};};}function gml_RoomCC_rm_halloffame_player_records_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerHallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_players;_inst.gmlcontinue_icon=197;}function gml_RoomCC_rm_halloffame_player_records_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RetroBowls");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Coach;
_inst.gmlcontinue_icon=146;}function gml_RoomCC_rm_halloffame_player_records_5_Create(_inst,_other){_inst.gmlcolour=global.gmlc_primary;}function gml_RoomCC_rm_halloffame_player_records_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerRecords");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_player_records;}function gml_RoomCC_rm_halloffame_player_records_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Achievements");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;
}function gml_RoomCC_rm_halloffame_player_records_7_PreCreate(_inst,_other){_inst.gmlgp_mapped_button=32771;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Reset");_inst.gmlonClickAction=kgml_Script_btn_click_Records_Reset;_inst.gmlgp_flip_icons_position=true;}function gml_Room_rm_home_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_home_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,
"ui_Continue");_inst.gmlcontinue_icon=133;_inst.gmlgp_mapped_hidden=32778;}function gml_RoomCC_rm_home_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_League;_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_home_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Options;_inst.gmlimage=144;}function gml_RoomCC_rm_home_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Roster;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");
}function gml_RoomCC_rm_home_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_HallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;}function gml_RoomCC_rm_home_6_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_home_7_PreCreate(_inst,_other){_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_home_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_string_year(_inst,_inst,true);_inst.gmlfont=global.gmlfnt_small_flex;
}function gml_RoomCC_rm_home_9_PreCreate(_inst,_other){_inst.gmlimage=215;_inst.gmlonClickAction=kgml_Script_btn_click_BengRams;}function gml_RoomCC_rm_home_10_PreCreate(_inst,_other){_inst.gmldraw_icon=110;}function gml_RoomCC_rm_home_16_PreCreate(_inst,_other){_inst.gmlrelationship_type=2;}function gml_RoomCC_rm_home_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_FrontOffice");_inst.gmlonClickAction=kgml_Script_btn_click_FrontOffice;}function gml_RoomCC_rm_home_18_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Life");_inst.gmlgoto_room=39;}function gml_RoomCC_rm_home_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"game_Title");}function gml_RoomCC_rm_home_22_PreCreate(_inst,_other){_inst.gmldraw_box=true;}function gml_RoomCC_rm_kongregate_0_PreCreate(_inst,_other){_inst.gmlty=128;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_VisitKong");}function gml_RoomCC_rm_kongregate_2_PreCreate(_inst,_other){_inst.gmlgoogle=true;}function gml_RoomCC_rm_kongregate_3_PreCreate(_inst,
_other){_inst.gmltext="visit Kongregate.com!";_inst.gmlcolour=new Long(4281479935,0,false);}function gml_Room_rm_league_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_league_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_League");}function gml_RoomCC_rm_league_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_League_Back;_inst.gmlimage=145;_inst.gmlgp_mapped_hidden=global.gmlgp_back;
}function gml_RoomCC_rm_league_2_PreCreate(_inst,_other){_inst.gmlactive=false;}function gml_RoomCC_rm_league_3_PreCreate(_inst,_other){_inst.gmlactive=false;}function gml_RoomCC_rm_league_4_PreCreate(_inst,_other){_inst.gmlactive=false;}function gml_RoomCC_rm_league_5_PreCreate(_inst,_other){_inst.gmlactive=false;}function gml_RoomCC_rm_league_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueAFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_league_7_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueNFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_RoomCC_rm_league_8_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueSchedule;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Schedule");}function gml_RoomCC_rm_league_10_PreCreate(_inst,_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_SchedulePrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_league_11_PreCreate(_inst,
_other){_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_ScheduleNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_league_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueMode;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_View");}function gml_RoomCC_rm_league_14_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffs;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_PlayOffs");}function gml_RoomCC_rm_league_15_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Review");_inst.gmlonClickAction=kgml_Script_btn_click_SeasonReview;_inst.gmlgp_mapped_button=32771;}function gml_Room_rm_options_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_options_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Options");}function gml_RoomCC_rm_options_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Options_Exit;
_inst.gmlimage=145;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_options_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsDriveLeft;}function gml_RoomCC_rm_options_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=2;_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_options_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsWeather;}function gml_RoomCC_rm_options_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsSoundFX;
}function gml_RoomCC_rm_options_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsZoom;}function gml_RoomCC_rm_options_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Credits");_inst.gmldraw_box=false;}function gml_RoomCC_rm_options_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsMatchLength;}function gml_RoomCC_rm_options_11_PreCreate(_inst,_other){_inst.gmlgoogle=true;}function gml_RoomCC_rm_options_12_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsTeamEditor;_inst.gmlimage=134;}function gml_RoomCC_rm_options_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsDifficulty;}function gml_RoomCC_rm_options_14_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Options_Difficulty";}function gml_RoomCC_rm_options_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ExitGame");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_16_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Zoom");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Sound");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DriveDirection");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_19_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_QtrLength");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TeamEditor");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_21_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Difficulty");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_22_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Weather");_inst.gmldraw_box=false;
_inst.gmlhalign=2;}function gml_RoomCC_rm_options_23_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsNewGame;_inst.gmlimage=129;}function gml_RoomCC_rm_options_25_PreCreate(_inst,_other){_inst.gmlimage=214;_inst.gmlurl_android="https://t.co/39hMkwwqet";_inst.gmlurl_ios="https://t.co/39hMkwwqet";}function gml_RoomCC_rm_options_26_PreCreate(_inst,_other){_inst.gmlurl_android="https://www.reddit.com/r/RetroBowl";_inst.gmlurl_ios="https://www.reddit.com/r/RetroBowl";_inst.gmlimage=227;
}function gml_RoomCC_rm_options_27_PreCreate(_inst,_other){_inst.gmlimage=217;_inst.gmlurl_android="https://twitter.com/retro_bowl";_inst.gmlurl_ios="https://twitter.com/retro_bowl";}function gml_RoomCC_rm_options_28_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_MoreGames");_inst.gmlgoto_room=36;}function gml_RoomCC_rm_options_29_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_BuyMerch");_inst.gmlonClickAction=kgml_Script_btn_click_BuyMerch;}function gml_RoomCC_rm_options_30_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsSalaryCap;}function gml_RoomCC_rm_options_31_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmldraw_box=false;_inst.gmlhalign=2;_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_options_32_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_UnlimitedVersion");}function gml_RoomCC_rm_options_33_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_AimingInvert");
_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_34_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_InvertedThrowing;}function gml_RoomCC_rm_options_35_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Controls");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_36_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsControls;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_View");}function gml_RoomCC_rm_options_37_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsAutoRun;}function gml_RoomCC_rm_options_38_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_AutoRun");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_39_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Scanlines");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_40_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsScanlines;
}function gml_RoomCC_rm_options_41_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_KickReturns");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_42_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsKickReturns;}function gml_RoomCC_rm_options_44_Create(_inst,_other){{};}function gml_RoomCC_rm_options_44_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ExhibitionGame");_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_start;
}function gml_Room_rm_playoffs_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_playoffs_22_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_playoffs_23_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffs_Back;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_playoffs_25_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffsPlay;
_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Play");}function gml_RoomCC_rm_playoffs_26_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffsSkip;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Skip");_inst.gmlgp_mapped_button=32772;}function gml_RoomCC_rm_playoffs_27_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_playoffs_28_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_RoomCC_rm_playoffs_29_PreCreate(_inst,
_other){_inst.gmlconference=0;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_playoffs_30_PreCreate(_inst,_other){_inst.gmlconference=1;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_Room_rm_playoffs2_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_playoffs2_12_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_playoffs2_13_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffs_Back;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_playoffs2_15_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffsPlay;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Play");}function gml_RoomCC_rm_playoffs2_16_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffsSkip;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Skip");_inst.gmlgp_mapped_button=32771;
}function gml_RoomCC_rm_playoffs2_17_PreCreate(_inst,_other){_inst.gmlconference=0;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_playoffs2_18_PreCreate(_inst,_other){_inst.gmlconference=1;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_RoomCC_rm_playoffs2_21_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_playoffs2_22_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"conf_AFC");
}function gml_Room_rm_pre_match_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_pre_match_0_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_pre_match_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Play");_inst.gmlcontinue_icon=133;
_inst.gmlgp_mapped_hidden=32778;}function gml_RoomCC_rm_pre_match_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_NextGame");}function gml_RoomCC_rm_pre_match_3_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Resting");}function gml_RoomCC_rm_pre_match_4_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_pre_match_5_PreCreate(_inst,_other){_inst.gmlscale=7;_inst.gmlbackground_im=1;}function gml_RoomCC_rm_pre_match_6_PreCreate(_inst,
_other){_inst.gmlfacing_right=false;_inst.gmlscale=7;_inst.gmlbackground_im=1;}function gml_RoomCC_rm_pre_match_7_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Ball");}function gml_RoomCC_rm_pre_match_8_PreCreate(_inst,_other){_inst.gmlimage=3;_inst.gmlonClickAction=kgml_Script_btn_click_BallStyle;}function gml_RoomCC_rm_pre_match_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Uniform_Away;}function gml_RoomCC_rm_pre_match_10_PreCreate(_inst,_other){
_inst.gmlonClickAction=kgml_Script_btn_click_Uniform_Home;}function gml_RoomCC_rm_pre_match_11_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Uniforms");}function gml_RoomCC_rm_pre_match_12_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_SimGame");_inst.gmlcontinue_icon=133;_inst.gmlonClickAction=kgml_Script_btn_click_SimGame;}function gml_Room_rm_profile_player_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),
global.gmlc_background);}function gml_RoomCC_rm_profile_player_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_PlayerProfile");}function gml_RoomCC_rm_profile_player_1_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_player_3_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Details");}function gml_RoomCC_rm_profile_player_4_PreCreate(_inst,
_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Attributes");}function gml_RoomCC_rm_profile_player_8_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_9_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_10_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_player_11_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlfont=2;_inst.gmlshadow=true;}function gml_RoomCC_rm_profile_player_13_PreCreate(_inst,
_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_15_PreCreate(_inst,_other){_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_ProfileNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_profile_player_16_PreCreate(_inst,_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_ProfilePrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_profile_player_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_Trade");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Trade;}function gml_RoomCC_rm_profile_player_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Meeting");_inst.gmlgoto_room=28;}function gml_RoomCC_rm_profile_player_19_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Sign");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Pick;}function gml_RoomCC_rm_profile_player_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"attribute_Catching");_inst.gmlonClickAction=kgml_Script_btn_click_AddSkill;}function gml_RoomCC_rm_profile_player_21_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"attribute_Speed");_inst.gmlonClickAction=kgml_Script_btn_click_AddSpeed;}function gml_RoomCC_rm_profile_player_22_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"attribute_Strength");_inst.gmlonClickAction=kgml_Script_btn_click_AddStrength;}function gml_RoomCC_rm_profile_player_23_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"attribute_Stamina");_inst.gmlonClickAction=kgml_Script_btn_click_AddStamina;}function gml_RoomCC_rm_profile_player_24_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_XP_Continue;}function gml_RoomCC_rm_profile_player_25_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_26_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;
_inst.gmlflashtext=true;}function gml_RoomCC_rm_profile_player_27_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Position";}function gml_RoomCC_rm_profile_player_28_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Skills";}function gml_RoomCC_rm_profile_player_29_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_profile_player_30_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Stats;
}function gml_RoomCC_rm_profile_player_31_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Rest");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Rest;}function gml_RoomCC_rm_profile_player_32_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_NotInterested");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Not_Interested;}function gml_RoomCC_rm_profile_player_33_PreCreate(_inst,_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;
_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_player_36_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ScoutPlayer");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_ScoutPlayer;_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_profile_player_37_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Back;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_profile_player_38_PreCreate(_inst,_other){
_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Stats;}function gml_RoomCC_rm_profile_player_39_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Stats;}function gml_RoomCC_rm_profile_player_40_PreCreate(_inst,_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_player_41_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Meeting");_inst.gmlonClickAction=kgml_Script_btn_meet_teammate;}function gml_RoomCC_rm_profile_player_42_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Stats;}function gml_RoomCC_rm_profile_player_43_PreCreate(_inst,_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_player_44_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Training");_inst.gmlonClickAction=kgml_Script_btn_click_qb_training;}function gml_RoomCC_rm_profile_player_45_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Skill_Strength";}function gml_RoomCC_rm_profile_player_46_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Skill_Speed";}function gml_RoomCC_rm_profile_player_47_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Skill_Stamina";}function gml_RoomCC_rm_profile_player_48_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,
_inst,"ui_NRG");}function gml_RoomCC_rm_profile_player_49_PreCreate(_inst,_other){_inst.gmltext="0";_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_50_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Buy");_inst.gmlonClickAction=kgml_Script_btn_click_nrg_buy;}function gml_RoomCC_rm_profile_player_51_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Drink");_inst.gmlonClickAction=kgml_Script_btn_click_nrg_drink;}function gml_Room_rm_profile_staff_Create(_inst,
_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_profile_staff_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Staff");}function gml_RoomCC_rm_profile_staff_1_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_staff_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_staff_3_PreCreate(_inst,_other){_inst.gmlhalign=0;
_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_staff_4_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Staff";}function gml_RoomCC_rm_profile_staff_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_RoomCC_rm_profile_staff_6_PreCreate(_inst,_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfilePrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_profile_staff_7_PreCreate(_inst,_other){
_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfileNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_profile_staff_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_profile_staff_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfileBack;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_profile_staff_11_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_XP_Continue;}function gml_RoomCC_rm_profile_staff_12_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_staff_13_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_CoachTrait";}function gml_RoomCC_rm_profile_staff_14_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_staff_15_PreCreate(_inst,_other){_inst.gmlimage=134;
_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_staff_16_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_CurrentHire");}function gml_RoomCC_rm_profile_staff_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Hire");_inst.gmlonClickAction=kgml_Script_btn_click_HireStaff;}function gml_RoomCC_rm_profile_staff_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TrainingLight");
_inst.gmlonClickAction=kgml_Script_btn_click_TrainingLight;}function gml_RoomCC_rm_profile_staff_19_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TrainingNormal");_inst.gmlonClickAction=kgml_Script_btn_click_TrainingNormal;}function gml_RoomCC_rm_profile_staff_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TrainingHard");_inst.gmlonClickAction=kgml_Script_btn_click_TrainingHard;}function gml_RoomCC_rm_profile_staff_21_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_TrainingRegime";
}function gml_RoomCC_rm_profile_staff_22_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_TrainingRegime");}function gml_Room_rm_post_match_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_post_match_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_s_do_postmatch_dilemma;}function gml_RoomCC_rm_post_match_1_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_League;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Results");}function gml_RoomCC_rm_post_match_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Result");}function gml_RoomCC_rm_post_match_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_post_match_5_PreCreate(_inst,_other){_inst.gmlactive=false;}function gml_RoomCC_rm_post_match_9_PreCreate(_inst,_other){
_inst.gmlonClickAction=kgml_Script_poki_btn_click_CoinBoost;_inst.gmlflash=true;_inst.gmlimage=266;}function gml_RoomCC_rm_post_match_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_View");_inst.gmlonClickAction=kgml_Script_btn_click_LeagueMode;}function gml_Room_rm_roster_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_roster_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_Roster");}function gml_RoomCC_rm_roster_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Roster_Back;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_roster_5_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_StarPlayers";}function gml_RoomCC_rm_roster_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_roster_8_PreCreate(_inst,_other){_inst.gmlimage=127;_inst.gmlgp_mapped_button=32771;
_inst.gmlgoto_room=34;_inst.gmlonClickAction=kgml_Script_btn_click_Roster_List;}function gml_RoomCC_rm_roster_10_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_Room_rm_stats_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_stats_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");}function gml_RoomCC_rm_stats_3_PreCreate(_inst,_other){_inst.gmlimage=145;_inst.gmlonClickAction=kgml_Script_btn_click_Home;
_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_Room_rm_stats_player_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_stats_player_0_PreCreate(_inst,_other){_inst.gmlimage=128;_inst.gmlonClickAction=kgml_Script_btn_click_PlayerProfile_Back;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_stats_player_1_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_StatsMatch");
}function gml_RoomCC_rm_stats_player_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_StatsSeason");}function gml_RoomCC_rm_stats_player_3_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_StatsCareer");}function gml_RoomCC_rm_stats_player_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_s_reinstate_hof_player;_inst.gmlshow_stars=false;}function gml_RoomCC_rm_stats_player_5_PreCreate(_inst,_other){_inst.gmlstat_type=1;}function gml_RoomCC_rm_stats_player_6_PreCreate(_inst,
_other){_inst.gmlstat_type=2;}function gml_RoomCC_rm_stats_player_7_PreCreate(_inst,_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_StatsPrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_stats_player_8_PreCreate(_inst,_other){_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_StatsNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_stats_player_10_PreCreate(_inst,_other){_inst.gmldraw_box=false;
_inst.gmlicon=171;_inst.gmlicon_frame=1;_inst.gmlicon_left=true;}function gml_RoomCC_rm_stats_player_11_PreCreate(_inst,_other){_inst.gmlicon_left=true;_inst.gmlicon_frame=2;_inst.gmlicon=171;_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_12_PreCreate(_inst,_other){_inst.gmlicon=171;_inst.gmlicon_left=true;_inst.gmlicon_frame=3;_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_13_PreCreate(_inst,_other){_inst.gmlicon=171;_inst.gmlicon_left=true;_inst.gmlicon_frame=0;_inst.gmldraw_box=false;
}function gml_RoomCC_rm_stats_player_14_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"tla_MVP");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"tla_OPOY");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"tla_DPOY");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"tla_ROTY");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"Rings");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_19_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlicon=175;_inst.gmlicon_left=true;}function gml_RoomCC_rm_stats_player_20_PreCreate(_inst,_other){_inst.gmlicon=171;_inst.gmlicon_left=true;_inst.gmlicon_frame=4;_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_21_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"tla_RBMVP");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_22_Create(_inst,_other){var ___sw1870___=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position");var ___swc1871___=-1;if(yyCompareVal(___sw1870___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1870___,2,g_GMLMathEpsilon,false)==0){___swc1871___=0;}switch(___swc1871___){case 0:{break;}default :{_inst.visible=false;}};if(yyfequal(yyInst(_inst,_other,97).gmlstat_view,
2)){_inst.gmlcolour=global.gmlc_primary;};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.visible=false;};};}function gml_RoomCC_rm_stats_player_22_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Rushing");_inst.gmlonClickAction=kgml_Script_btn_click_StatsView2;}function gml_RoomCC_rm_stats_player_23_Create(_inst,_other){var ___sw1874___=ds_map_find_value(yyInst(_inst,_other,97).gmlplayer_profile,"position");var ___swc1875___=-1;if(yyCompareVal(___sw1874___,1,g_GMLMathEpsilon,
false)==0){___swc1875___=0;}else if(yyCompareVal(___sw1874___,2,g_GMLMathEpsilon,false)==0){___swc1875___=1;}switch(___swc1875___){case 0:{break;}case 1:{_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Receiving");break;}default :{_inst.visible=false;}};if(yyfequal(yyInst(_inst,_other,97).gmlstat_view,1)){_inst.gmlcolour=global.gmlc_primary;};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.visible=false;};};}function gml_RoomCC_rm_stats_player_23_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_Passing");_inst.gmlonClickAction=kgml_Script_btn_click_StatsView1;}function gml_Room_rm_meeting_player_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_meeting_player_0_PreCreate(_inst,_other){_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=22;}function gml_RoomCC_rm_meeting_player_5_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Condition");
}function gml_RoomCC_rm_meeting_player_6_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Morale");}function gml_RoomCC_rm_meeting_player_7_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_XPLevel");}function gml_RoomCC_rm_meeting_player_8_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Contract");}function gml_RoomCC_rm_meeting_player_9_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Meeting");}function gml_RoomCC_rm_meeting_player_10_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Meeting");}function gml_RoomCC_rm_meeting_player_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Meeting_Morale;_inst.gmlimage=93;}function gml_RoomCC_rm_meeting_player_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Meeting_Condition;_inst.gmlimage=93;}function gml_RoomCC_rm_meeting_player_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Meeting_LevelUp;_inst.gmlimage=93;}function gml_RoomCC_rm_meeting_player_14_PreCreate(_inst,
_other){_inst.gmlimage=93;_inst.gmlonClickAction=kgml_Script_btn_click_Meeting_ExtendContract;}function gml_RoomCC_rm_meeting_player_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"msg_MeetingDone");_inst.gmldraw_box=false;}function gml_RoomCC_rm_meeting_player_18_PreCreate(_inst,_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_MeetingPrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_meeting_player_19_PreCreate(_inst,
_other){_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_MeetingNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_Room_rm_team_editor_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_team_editor_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TeamEditor");}function gml_RoomCC_rm_team_editor_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditAFC;
_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_team_editor_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditNFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_RoomCC_rm_team_editor_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Done");_inst.gmlonClickAction=kgml_Script_btn_click_Options;}function gml_RoomCC_rm_team_editor_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RestoreAllTeams");
_inst.gmlonClickAction=kgml_Script_btn_click_RestoreAllTeams;}function gml_RoomCC_rm_team_editor_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotA;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot1");}function gml_RoomCC_rm_team_editor_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotB;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot2");}function gml_RoomCC_rm_team_editor_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"division_East");_inst.gmldraw_box=false;}function gml_RoomCC_rm_team_editor_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"division_North");_inst.gmldraw_box=false;}function gml_RoomCC_rm_team_editor_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"division_South");_inst.gmldraw_box=false;}function gml_RoomCC_rm_team_editor_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"division_West");_inst.gmldraw_box=false;}function gml_RoomCC_rm_team_editor_12_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot3");}function gml_RoomCC_rm_team_editor_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotD;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot4");}function gml_RoomCC_rm_team_editor_14_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotE;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot5");}function gml_RoomCC_rm_team_editor_16_PreCreate(_inst,
_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_edit_div1;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_17_PreCreate(_inst,_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_edit_div2;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_18_PreCreate(_inst,_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_edit_div3;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_19_PreCreate(_inst,_other){_inst.gmlimage=134;
_inst.gmlonClickAction=kgml_Script_btn_click_edit_div4;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_20_PreCreate(_inst,_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_edit_conf1;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_21_PreCreate(_inst,_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_edit_conf2;_inst.gmlimage_only=true;}function gml_Room_rm_training_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),
global.gmlc_background);}function gml_RoomCC_rm_training_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Training");}function gml_RoomCC_rm_training_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FieldGoal;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FieldGoal");}function gml_RoomCC_rm_training_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Running;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Running");}function gml_RoomCC_rm_training_3_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_Roster;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_training_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Passing;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Passing");}function gml_Room_rm_viewhires_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_viewhires_0_PreCreate(_inst,_other){
_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_AvailableStaff");}function gml_RoomCC_rm_viewhires_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_viewhires_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Available");}function gml_RoomCC_rm_viewhires_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;
}function gml_RoomCC_rm_viewhires_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresBack;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_viewhires_8_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,
_inst,"ui_Current");}function gml_RoomCC_rm_viewhires_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;_inst.gmlactive=false;}function gml_RoomCC_rm_viewhires_10_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;_inst.gmlactive=false;}function gml_RoomCC_rm_viewhires_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;
}function gml_RoomCC_rm_viewhires_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_14_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RefreshHires");_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresReset;_inst.gmlgp_mapped_button=32771;}function gml_Room_rm_watermark_Create(_inst,
_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_watermark_0_PreCreate(_inst,_other){_inst.gmlimage=145;_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=32770;}function gml_RoomCC_rm_watermark_1_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlfont=0;}function gml_RoomCC_rm_watermark_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlfont=0;
}function gml_RoomCC_rm_watermark_3_PreCreate(_inst,_other){_inst.gmlimage=145;_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_watermark_4_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlhalign=2;}function gml_RoomCC_rm_watermark_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueReportNext;_inst.gmlimage_only=true;_inst.gmlimage=132;}function gml_RoomCC_rm_watermark_7_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueReportPrev;_inst.gmlimage=130;_inst.gmlimage_only=true;}function gml_Room_rm_winners_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_winners_0_PreCreate(_inst,_other){_inst.gmltext=0;}function gml_RoomCC_rm_winners_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_Home;
}function gml_RoomCC_rm_winners_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlfont=2;_inst.gmlshadow=true;}function gml_RoomCC_rm_winners_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlshadow=true;}function gml_RoomCC_rm_winners_4_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlfont=2;}function gml_RoomCC_rm_winners_5_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlshadow=true;}function gml_RoomCC_rm_winners_6_PreCreate(_inst,_other){_inst.gmldraw_box=false;
_inst.gmlshadow=true;}function gml_Room_rm_xp_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_xp_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_XP_Continue;}function gml_RoomCC_rm_xp_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_EndWeek");}function gml_RoomCC_rm_xp_2_PreCreate(_inst,_other){_inst.gmltitle="";
}function gml_RoomCC_rm_xp_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_XP_Back;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_xp_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RestAll");_inst.gmlonClickAction=kgml_Script_btn_click_RestAll;}function gml_RoomCC_rm_xp_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_BoostMorale");_inst.gmlonClickAction=kgml_Script_btn_click_Boost_Morale;
}function gml_RoomCC_rm_xp_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_BoostCondition");_inst.gmlonClickAction=kgml_Script_btn_click_Boost_Condition;}function gml_RoomCC_rm_xp_15_PreCreate(_inst,_other){_inst.gmlrelationship_type=1;}function gml_RoomCC_rm_xp_16_PreCreate(_inst,_other){_inst.gmlrelationship_type=2;}function gml_RoomCC_rm_xp_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_BoostGPA");_inst.gmlonClickAction=kgml_Script_btn_click_Boost_GPA;
}function gml_Room_rm_ad_retrogoal_Create(_inst,_other){}function gml_RoomCC_rm_ad_retrogoal_1_PreCreate(_inst,_other){_inst.gmlgoto_room=14;_inst.gmlimage=136;}function gml_Room_rm_options2_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_options2_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_NewStarGames");}function gml_RoomCC_rm_options2_1_PreCreate(_inst,_other){_inst.gmlimage=128;
_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=18;}function gml_RoomCC_rm_options2_2_PreCreate(_inst,_other){_inst.gmlimage=237;_inst.gmlonClickAction=kgml_Script_btn_click_ad_RG;}function gml_RoomCC_rm_options2_3_PreCreate(_inst,_other){_inst.gmlimage=226;_inst.gmlonClickAction=kgml_Script_btn_click_ad_NSM;}function gml_RoomCC_rm_options2_4_PreCreate(_inst,_other){_inst.gmlimage=269;_inst.gmlonClickAction=kgml_Script_btn_click_ad_NSB;}function gml_RoomCC_rm_options2_5_PreCreate(_inst,
_other){_inst.gmlimage=209;_inst.gmlonClickAction=kgml_Script_btn_click_ad_NSS;}function gml_RoomCC_rm_options2_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_MusicBy");_inst.gmlonClickAction=kgml_Script_btn_click_MusicBy;}function gml_RoomCC_rm_options2_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_YouTube");_inst.gmlonClickAction=kgml_Script_btn_click_YouTube;}function gml_RoomCC_rm_options2_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"btn_RecordBook");_inst.gmlonClickAction=kgml_Script_btn_click_RecordBook;}function gml_RoomCC_rm_options2_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Leagues");_inst.gmlonClickAction=kgml_Script_btn_click_Leagues;}function gml_Room_rm_options_mapping_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_options_mapping_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_Controls");}function gml_RoomCC_rm_options_mapping_1_PreCreate(_inst,_other){_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=18;}function gml_RoomCC_rm_options_mapping_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"Map_Tab1_Name");_inst.gmlonClickAction=kgml_Script_btn_click_OptionsControls1;}function gml_RoomCC_rm_options_mapping_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"Map_Tab2_Name");_inst.gmlonClickAction=kgml_Script_btn_click_OptionsControls2;
}function gml_RoomCC_rm_options_mapping_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"Map_Tab3_Name");_inst.gmlonClickAction=kgml_Script_btn_click_OptionsControls3;}function gml_Room_rm_season_tally_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_season_tally_0_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlhalign=2;}function gml_RoomCC_rm_season_tally_1_PreCreate(_inst,
_other){_inst.gmlimage=128;_inst.gmlonClickAction=kgml_Script_btn_click_SeasonReviewBack;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_season_tally_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlhalign=2;}function gml_RoomCC_rm_season_tally_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueReportNext;_inst.gmlimage_only=true;_inst.gmlimage=132;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_season_tally_4_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueReportPrev;_inst.gmlimage=130;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_season_tally_5_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Record");}function gml_RoomCC_rm_season_tally_8_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_Room_rm_qb_life_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);
}function gml_RoomCC_rm_qb_life_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Life");}function gml_RoomCC_rm_qb_life_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=145;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_qb_life_4_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Relationships");}function gml_RoomCC_rm_qb_life_5_PreCreate(_inst,_other){_inst.gmldraw_icon=245;}function gml_RoomCC_rm_qb_life_6_PreCreate(_inst,
_other){_inst.gmldraw_segments=false;_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_7_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_8_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_9_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_10_PreCreate(_inst,_other){_inst.gmldraw_icon=245;_inst.gmldraw_segments=false;_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_13_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_BuyNRG");_inst.gmlonClickAction=kgml_Script_btn_click_nrg_buy;}function gml_RoomCC_rm_qb_life_14_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_NRG");}function gml_RoomCC_rm_qb_life_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DrinkNRG");_inst.gmlonClickAction=kgml_Script_btn_click_nrg_drink;}function gml_RoomCC_rm_qb_life_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Shopping");_inst.gmlgoto_room=41;}function gml_RoomCC_rm_qb_life_17_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Contract");_inst.gmlgoto_room=42;}function gml_RoomCC_rm_qb_life_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Training");_inst.gmlonClickAction=kgml_Script_btn_click_qb_training;}function gml_RoomCC_rm_qb_life_19_PreCreate(_inst,_other){_inst.gmltext="0";_inst.gmldraw_box=false;}function gml_Room_rm_qb_post_match_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);
}function gml_RoomCC_rm_qb_post_match_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Performance");}function gml_RoomCC_rm_qb_post_match_3_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_4_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_5_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_6_PreCreate(_inst,
_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_7_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_8_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_10_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Finances");}function gml_RoomCC_rm_qb_post_match_11_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_Continue");}function gml_RoomCC_rm_qb_post_match_13_PreCreate(_inst,_other){_inst.gmlrelationship_type=1;}function gml_RoomCC_rm_qb_post_match_14_PreCreate(_inst,_other){_inst.gmlrelationship_type=2;}function gml_Room_rm_qb_shopping_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_qb_shopping_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Shopping");}function gml_RoomCC_rm_qb_shopping_1_PreCreate(_inst,
_other){_inst.gmlimage=130;_inst.gmlonClickAction=kgml_Script_btn_click_shopping_prev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_qb_shopping_2_PreCreate(_inst,_other){_inst.gmlimage=132;_inst.gmlonClickAction=kgml_Script_btn_click_shopping_next;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_qb_shopping_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_shopping_4_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Draft";
}function gml_RoomCC_rm_qb_shopping_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_qb_shopping_7_PreCreate(_inst,_other){_inst.gmlgoto_room=39;_inst.gmlimage=128;}function gml_RoomCC_rm_qb_shopping_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Items");_inst.gmlonClickAction=kgml_Script_btn_click_qb_items;}function gml_RoomCC_rm_qb_shopping_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,
"ui_Vehicles");_inst.gmlonClickAction=kgml_Script_btn_click_qb_vehicles;}function gml_RoomCC_rm_qb_shopping_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Property");_inst.gmlonClickAction=kgml_Script_btn_click_qb_property;}function gml_Room_rm_qb_contract_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_qb_contract_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_Contract");}function gml_RoomCC_rm_qb_contract_1_PreCreate(_inst,_other){_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=39;}function gml_RoomCC_rm_qb_contract_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Team");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_5_PreCreate(_inst,_other){_inst.gmldraw_box=false;
_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Salary");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_7_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TouchdownBonus");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_9_PreCreate(_inst,
_other){_inst.gmldraw_box=false;_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Expires");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_12_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_CurrentContract");}function gml_RoomCC_rm_qb_contract_13_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_None");_inst.gmltcolour=global.gmlc_primary;
}function gml_RoomCC_rm_qb_contract_14_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Team");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_15_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_None");_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Salary");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_17_PreCreate(_inst,
_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_None");_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TouchdownBonus");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_19_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_None");_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_20_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Expires");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_21_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_NewContract");}function gml_RoomCC_rm_qb_contract_22_PreCreate(_inst,_other){_inst.gmltext="-";_inst.gmlonClickAction=kgml_Script_btn_contract_salary_minus;}function gml_RoomCC_rm_qb_contract_23_PreCreate(_inst,_other){_inst.gmltext="+";_inst.gmlonClickAction=kgml_Script_btn_contract_salary_plus;}function gml_RoomCC_rm_qb_contract_24_PreCreate(_inst,
_other){_inst.gmltext="+";_inst.gmlonClickAction=kgml_Script_btn_contract_tdbonus_plus;}function gml_RoomCC_rm_qb_contract_25_PreCreate(_inst,_other){_inst.gmltext="-";_inst.gmlonClickAction=kgml_Script_btn_contract_tdbonus_minus;}function gml_RoomCC_rm_qb_contract_26_PreCreate(_inst,_other){_inst.gmltext="+";_inst.gmlonClickAction=kgml_Script_btn_contract_length_plus;}function gml_RoomCC_rm_qb_contract_27_PreCreate(_inst,_other){_inst.gmltext="-";_inst.gmlonClickAction=kgml_Script_btn_contract_length_minus;
}function gml_RoomCC_rm_qb_contract_28_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Negotiate");_inst.gmlonClickAction=kgml_Script_btn_contract_negotiate;}function gml_RoomCC_rm_qb_contract_30_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Reject");_inst.gmlonClickAction=kgml_Script_s_reject_contract;}function gml_Room_rm_qb_negotiate_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);
}function gml_RoomCC_rm_qb_negotiate_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Negotiate");}function gml_RoomCC_rm_qb_negotiate_1_PreCreate(_inst,_other){_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=42;}function gml_RoomCC_rm_qb_negotiate_2_PreCreate(_inst,_other){_inst.gmlimage=_inst.gmlspr_arrowUs;_inst.gmlonClickAction=kgml_Script_btn_negotiate_higher;}function gml_RoomCC_rm_qb_negotiate_3_PreCreate(_inst,_other){_inst.gmlimage=_inst.gmlspr_arrowDs;
_inst.gmlonClickAction=kgml_Script_btn_negotiate_lower;}function gml_RoomCC_rm_qb_negotiate_5_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlflashtext=true;_inst.gmlfont=3;}function gml_RoomCC_rm_qb_negotiate_6_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"instrucs_Negotiate");}function gml_Room_rm_qb_post_training_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_qb_post_training_0_PreCreate(_inst,
_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Performance");}function gml_RoomCC_rm_qb_post_training_3_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_4_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_5_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_6_PreCreate(_inst,_other){_inst.gmltext="Game Rating";
_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_7_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_8_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_10_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Finances");}function gml_RoomCC_rm_qb_post_training_11_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");
}function gml_RoomCC_rm_qb_post_training_13_PreCreate(_inst,_other){_inst.gmlrelationship_type=1;}function gml_RoomCC_rm_qb_post_training_14_PreCreate(_inst,_other){_inst.gmlrelationship_type=2;}function gml_Room_rm_draft_college_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_Room_rm_profile_boss_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);
}function gml_RoomCC_rm_profile_boss_0_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_boss_1_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_boss_2_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_boss_3_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_HeadCoach";}function gml_RoomCC_rm_profile_boss_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;
}function gml_RoomCC_rm_profile_boss_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=93;}function gml_RoomCC_rm_profile_boss_6_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_boss_7_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_CurrentHire");}function gml_RoomCC_rm_profile_boss_8_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourHistory");}function gml_RoomCC_rm_profile_boss_9_PreCreate(_inst,
_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourRecord");}function gml_RoomCC_rm_profile_boss_10_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_RetroBowlRecord");}function gml_RoomCC_rm_profile_boss_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfileBack;_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_profile_boss_12_PreCreate(_inst,_other){_inst.gmlimage=134;_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;
_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_boss_13_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_boss_14_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_boss_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Staff");}function gml_Room_rm_exhibition_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);
}function gml_RoomCC_rm_exhibition_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ExhibitionGame");}function gml_RoomCC_rm_exhibition_1_PreCreate(_inst,_other){_inst.gmlimage=136;_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_exit;}function gml_RoomCC_rm_exhibition_2_PreCreate(_inst,_other){_inst.gmlscale=7;_inst.gmlbackground_im=1;}function gml_RoomCC_rm_exhibition_3_PreCreate(_inst,_other){_inst.gmlfacing_right=false;_inst.gmlscale=7;_inst.gmlbackground_im=1;}function gml_RoomCC_rm_exhibition_4_PreCreate(_inst,
_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Ball");}function gml_RoomCC_rm_exhibition_5_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Uniforms");}function gml_RoomCC_rm_exhibition_6_PreCreate(_inst,_other){_inst.gmlimage=3;_inst.gmlonClickAction=kgml_Script_btn_click_BallStyle;}function gml_RoomCC_rm_exhibition_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Uniform_Away;}function gml_RoomCC_rm_exhibition_8_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Uniform_Home;
}function gml_RoomCC_rm_exhibition_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ChangeTeam");_inst.gmlonClickAction=kgml_Script_btn_click_ChangeTeamAway;}function gml_RoomCC_rm_exhibition_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ChangeTeam");_inst.gmlonClickAction=kgml_Script_btn_click_ChangeTeamHome;}function gml_RoomCC_rm_exhibition_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_controller_0;}function gml_RoomCC_rm_exhibition_12_PreCreate(_inst,
_other){_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_controller_1;}function gml_RoomCC_rm_exhibition_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Exhibition_Play;_inst.gmlimage=131;}function gml_RoomCC_rm_exhibition_15_PreCreate(_inst,_other){_inst.gmlimage=144;_inst.gmlgoto_room=48;}function gml_RoomCC_rm_exhibition_16_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext="P2";}function gml_RoomCC_rm_exhibition_17_PreCreate(_inst,_other){_inst.gmldraw_box=false;
_inst.gmltext="P1";}function gml_Room_rm_options_exh_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_options_exh_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Options");}function gml_RoomCC_rm_options_exh_1_PreCreate(_inst,_other){_inst.gmlimage=128;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=47;}function gml_RoomCC_rm_options_exh_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsDriveLeft_Exh;
}function gml_RoomCC_rm_options_exh_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsWeather_Exh;}function gml_RoomCC_rm_options_exh_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsMatchLength_Exh;}function gml_RoomCC_rm_options_exh_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DriveDirection");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_exh_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,
_inst,"ui_QtrLength");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_exh_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Weather");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_exh_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_KickReturns");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_exh_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsKickReturns_Exh;
}function gml_Room_rm_exhibition_postmatch_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_exhibition_postmatch_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Result");}function gml_RoomCC_rm_exhibition_postmatch_2_PreCreate(_inst,_other){_inst.gmlgoto_room=47;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");}function gmlInitGlobal(){global.gmlg_version=0;global.gmlg_savedelay=0;
global.gmlg_optionsave=0;global.gmlg_savename1=0;global.gmlg_savename2=0;global.gmlg_savename3=0;global.gmlg_savename4=0;global.gmlg_savename5=0;global.gmlg_savename_exh=0;global.gmlc_background=0;global.gmlc_primary=0;global.gmlc_buttons=0;global.gmlc_routes=0;global.gmlc_routes_rb=0;global.gmlc_headcoach=0;global.gmlc_offense=0;global.gmlc_defense=0;global.gmlc_specialteams=0;global.gmlc_toxic=0;global.gmlc_backfill=0;global.gmlui_skin=0;global.gmlcolorHelmet=0;global.gmlcolorLogo=0;global.gmlcolorShirt=0;
global.gmlcolorSleeve=0;global.gmlcolorPants=0;global.gmlcolorPants_b=0;global.gmlcolorStripe=0;global.gmlcolorSocks=0;global.gmlcolorSocks_b=0;global.gmlcolorSkin=0;global.gmlcolorCleats=0;global.gmlreplaceHelmet=0;global.gmlreplaceLogo=0;global.gmlreplaceShirt=0;global.gmlreplaceSleeve=0;global.gmlreplacePants=0;global.gmlreplacePants_b=0;global.gmlreplaceStripe=0;global.gmlreplaceSocks=0;global.gmlreplaceSocks_b=0;global.gmlreplaceSkin=0;global.gmlreplaceCleats=0;global.gmlflickVelX=0;global.gmlflickVelY=0;
global.gmlsnd_tackle_time=0;gml_GlobalScript_s_update_shopping_buttons(global,global);gml_GlobalScript_s_count_simmed_games(global,global);gml_GlobalScript_season_tally_scripts(global,global);gml_GlobalScript_s_choose_mode_hc(global,global);gml_GlobalScript_s_benched(global,global);gml_GlobalScript_s_cpu_is_kicking(global,global);gml_GlobalScript_nx_scripts(global,global);gml_GlobalScript_s_recruitment_credits(global,global);gml_GlobalScript_qb_contract_scripts(global,global);gml_GlobalScript_s_draw_player_image(global,
global);gml_GlobalScript_s_college_gui_helpers(global,global);gml_GlobalScript_s_load_profile_uni(global,global);gml_GlobalScript_s_get_lifestyle(global,global);gml_GlobalScript_btn_meet_teammate(global,global);gml_GlobalScript_s_check_qb_mode_benched(global,global);gml_GlobalScript_font_scripts(global,global);gml_GlobalScript_btn_click_Details_Back(global,global);gml_GlobalScript_s_replay_controls(global,global);gml_GlobalScript_nrg(global,global);gml_GlobalScript_s_college_draft(global,global);
gml_GlobalScript_s_check_ingame_control_change(global,global);gml_GlobalScript_s_remove_player(global,global);gml_GlobalScript_btn_click_BengRams(global,global);gml_GlobalScript_btn_click_OptionsAutoRun(global,global);gml_GlobalScript_title_scripts(global,global);gml_GlobalScript_s_get_achievement(global,global);gml_GlobalScript_s_count_achievement(global,global);gml_GlobalScript_s_get_achievement_percentage(global,global);gml_GlobalScript_s_complete_achievement(global,global);gml_GlobalScript_s_sort_retrobowl_list(global,
global);gml_GlobalScript_s_sort_retrobowl_history_list(global,global);gml_GlobalScript_btn_click_EditAFC(global,global);gml_GlobalScript_btn_click_EditNFC(global,global);gml_GlobalScript_btn_click_EditTeam(global,global);gml_GlobalScript_s_round_to_decimal(global,global);gml_GlobalScript_btn_click_TeamEditCancel(global,global);gml_GlobalScript_btn_click_TeamEditDone(global,global);gml_GlobalScript_btn_click_TeamEditRestore(global,global);gml_GlobalScript_btn_click_InputHelmet(global,global);gml_GlobalScript_btn_click_InputLogo(global,
global);gml_GlobalScript_btn_click_InputShirt(global,global);gml_GlobalScript_btn_click_InputSleeve(global,global);gml_GlobalScript_btn_click_InputPants(global,global);gml_GlobalScript_btn_click_InputStripe(global,global);gml_GlobalScript_btn_click_InputSocks1(global,global);gml_GlobalScript_btn_click_InputSocks2(global,global);gml_GlobalScript_btn_click_InputEndzone(global,global);gml_GlobalScript_btn_click_EditHelmet(global,global);gml_GlobalScript_btn_click_EditLogo(global,global);gml_GlobalScript_btn_click_EditShirt(global,
global);gml_GlobalScript_btn_click_EditSleeve(global,global);gml_GlobalScript_btn_click_EditPants(global,global);gml_GlobalScript_btn_click_EditStripe(global,global);gml_GlobalScript_btn_click_EditSocks1(global,global);gml_GlobalScript_btn_click_EditSocks2(global,global);gml_GlobalScript_btn_click_EditEndzone(global,global);gml_GlobalScript_btn_click_Kit1(global,global);gml_GlobalScript_btn_click_Kit2(global,global);gml_GlobalScript_btn_click_Kit3(global,global);gml_GlobalScript_btn_click_Kit4(global,
global);gml_GlobalScript_btn_click_RestoreAllTeams(global,global);gml_GlobalScript_btn_click_KR_Select(global,global);gml_GlobalScript_btn_click_EditCopySlotA(global,global);gml_GlobalScript_s_sound_audience_inc(global,global);gml_GlobalScript_btn_click_EditCopySlotB(global,global);gml_GlobalScript_btn_click_EditCopySlotC(global,global);gml_GlobalScript_btn_click_EditCopySlotD(global,global);gml_GlobalScript_btn_click_EditCopySlotE(global,global);gml_GlobalScript_btn_click_TeamEditMore(global,global);
gml_GlobalScript_btn_click_TeamEditMoreDone(global,global);gml_GlobalScript_btn_click_FacilityStadium(global,global);gml_GlobalScript_btn_click_FacilityTraining(global,global);gml_GlobalScript_btn_click_FacilityStaff(global,global);gml_GlobalScript_btn_click_HOF_players(global,global);gml_GlobalScript_btn_click_HOF_player_records(global,global);gml_GlobalScript_btn_click_HOF_Select(global,global);gml_GlobalScript_btn_click_HofNext(global,global);gml_GlobalScript_btn_click_HofPrev(global,global);
gml_GlobalScript_btn_click_HOF_Coach(global,global);gml_GlobalScript_btn_click_Records_Reset(global,global);gml_GlobalScript_btn_click_League_Back(global,global);gml_GlobalScript_btn_click_LeaguePanel(global,global);gml_GlobalScript_btn_click_LeagueNFC(global,global);gml_GlobalScript_btn_click_LeagueAFC(global,global);gml_GlobalScript_keyboard_scripts(global,global);gml_GlobalScript_s_college_tools(global,global);gml_GlobalScript_btn_click_LeagueSchedule(global,global);gml_GlobalScript_btn_click_SchedulePrev(global,
global);gml_GlobalScript_btn_click_ScheduleNext(global,global);gml_GlobalScript_btn_click_PlayOffs(global,global);gml_GlobalScript_btn_click_PlayOffs_Back(global,global);gml_GlobalScript_btn_click_PlayOffsPlay(global,global);gml_GlobalScript_btn_click_PlayOffsSkip(global,global);gml_GlobalScript_btn_click_Change_Favourite(global,global);gml_GlobalScript_btn_click_ChooseAFC(global,global);gml_GlobalScript_btn_click_ChooseNFC(global,global);gml_GlobalScript_btn_click_ChooseTeam(global,global);gml_GlobalScript_btn_click_ChooseTeamNew(global,
global);gml_GlobalScript_btn_click_ChooseReject(global,global);gml_GlobalScript_btn_click_Continue(global,global);gml_GlobalScript_btn_click_Details_Continue(global,global);gml_GlobalScript_s_uniform_helpers(global,global);gml_GlobalScript_btn_click_FrontOffice(global,global);gml_GlobalScript_btn_click_FreeAgents2(global,global);gml_GlobalScript_btn_click_HallOfFame(global,global);gml_GlobalScript_btn_click_Home(global,global);gml_GlobalScript_btn_click_League(global,global);gml_GlobalScript_btn_click_Options(global,
global);gml_GlobalScript_btn_click_Profile(global,global);gml_GlobalScript_btn_click_ChooseFace(global,global);gml_GlobalScript_btn_click_ChooseFacePrev(global,global);gml_GlobalScript_btn_click_ChooseFaceNext(global,global);gml_GlobalScript_btn_click_ChooseFaceDone(global,global);gml_GlobalScript_btn_click_Uniforms(global,global);gml_GlobalScript_btn_click_Uniform_Away(global,global);gml_GlobalScript_btn_click_Uniform_Home(global,global);gml_GlobalScript__poki_rewarded_ad(global,global);gml_GlobalScript_btn_click_BallStyle(global,
global);gml_GlobalScript_btn_click_LeagueReportNext(global,global);gml_GlobalScript_btn_click_LeagueReportPrev(global,global);gml_GlobalScript_btn_click_OptionsNewGame(global,global);gml_GlobalScript_btn_click_OptionsDriveLeft(global,global);gml_GlobalScript_btn_click_OptionsDriveRight(global,global);gml_GlobalScript_btn_click_OptionsDriveBoth(global,global);gml_GlobalScript_btn_click_OptionsScanlines(global,global);gml_GlobalScript_btn_click_OptionsSoundFX(global,global);gml_GlobalScript_btn_click_OptionsWeather(global,
global);gml_GlobalScript_btn_click_OptionsReplays(global,global);gml_GlobalScript_btn_click_OptionsZoom(global,global);gml_GlobalScript_btn_click_InvertedThrowing(global,global);gml_GlobalScript_btn_click_OptionsMatchLength(global,global);gml_GlobalScript_btn_click_OptionsTeamEditor(global,global);gml_GlobalScript_btn_click_OptionsDifficulty(global,global);gml_GlobalScript_btn_click_OptionsSalaryCap(global,global);gml_GlobalScript_chk_click_gamepad(global,global);gml_GlobalScript_btn_click_PlayerProfile(global,
global);gml_GlobalScript_btn_click_PlayerProfile_Back(global,global);gml_GlobalScript_btn_click_ProfilePrev(global,global);gml_GlobalScript_btn_click_MeetingPrev(global,global);gml_GlobalScript_btn_click_ProfileNext(global,global);gml_GlobalScript_btn_click_MeetingNext(global,global);gml_GlobalScript_btn_click_Profile_Back(global,global);gml_GlobalScript_btn_click_Profile_Pick(global,global);gml_GlobalScript_btn_click_Profile_Cut(global,global);gml_GlobalScript_btn_click_Profile_Trade(global,global);
gml_GlobalScript_btn_click_Profile_Stats(global,global);gml_GlobalScript_btn_click_Profile_Rest(global,global);gml_GlobalScript_btn_click_Profile_Not_Interested(global,global);gml_GlobalScript_btn_click_Profile_ScoutPlayer(global,global);gml_GlobalScript_btn_click_AddSkill(global,global);gml_GlobalScript_btn_click_AddSpeed(global,global);gml_GlobalScript_btn_click_AddStrength(global,global);gml_GlobalScript_btn_click_AddStamina(global,global);gml_GlobalScript_btn_click_StatsNext(global,global);gml_GlobalScript_btn_click_StatsPrev(global,
global);gml_GlobalScript_btn_click_StatsView1(global,global);gml_GlobalScript_btn_click_StatsView2(global,global);gml_GlobalScript_btn_click_EditProfile(global,global);gml_GlobalScript_btn_click_Meeting_Morale(global,global);gml_GlobalScript_btn_click_Meeting_Condition(global,global);gml_GlobalScript_s_qb_mode_update_resting(global,global);gml_GlobalScript_btn_click_Meeting_LevelUp(global,global);gml_GlobalScript_btn_click_Meeting_ExtendContract(global,global);gml_GlobalScript_btn_click_FieldGoal(global,
global);gml_GlobalScript_btn_click_Running(global,global);gml_GlobalScript_btn_click_Passing(global,global);gml_GlobalScript_s_get_happiness(global,global);gml_GlobalScript_btn_click_Training(global,global);gml_GlobalScript_btn_click_Roster(global,global);gml_GlobalScript_btn_click_Roster_Back(global,global);gml_GlobalScript_btn_click_DraftPrev(global,global);gml_GlobalScript_btn_click_DraftNext(global,global);gml_GlobalScript_btn_click_DraftDone(global,global);gml_GlobalScript_btn_click_FreeAgents(global,
global);gml_GlobalScript_btn_click_FreeAgentsBack(global,global);gml_GlobalScript_btn_click_RestAll(global,global);gml_GlobalScript_btn_click_FreeAgentsNext(global,global);gml_GlobalScript_btn_click_FreeAgentsPrev(global,global);gml_GlobalScript_btn_click_FreeAgentsReset(global,global);gml_GlobalScript_btn_click_Boost_Morale(global,global);gml_GlobalScript_btn_click_Boost_Condition(global,global);gml_GlobalScript_btn_click_Boost_Salary_Cap(global,global);gml_GlobalScript_btn_click_LoadSlot1(global,
global);gml_GlobalScript_btn_click_LoadSlot2(global,global);gml_GlobalScript_s_set_up_button_kickoff(global,global);gml_GlobalScript_btn_click_LoadSlot3(global,global);gml_GlobalScript_btn_click_LoadSlot4(global,global);gml_GlobalScript_btn_click_LoadSlot5(global,global);gml_GlobalScript_btn_click_DeleteSlot1(global,global);gml_GlobalScript_btn_click_DeleteSlot2(global,global);gml_GlobalScript_btn_click_DeleteSlot3(global,global);gml_GlobalScript_btn_click_DeleteSlot4(global,global);gml_GlobalScript_btn_click_DeleteSlot5(global,
global);gml_GlobalScript_btn_click_StaffProfile(global,global);gml_GlobalScript_btn_click_StaffProfileNext(global,global);gml_GlobalScript_s_draw_gamepad_controls(global,global);gml_GlobalScript_s_team_helpers(global,global);gml_GlobalScript_btn_click_StaffProfilePrev(global,global);gml_GlobalScript_btn_click_StaffProfileBack(global,global);gml_GlobalScript_btn_click_HireStaff(global,global);gml_GlobalScript_btn_click_ViewHires(global,global);gml_GlobalScript_btn_click_ViewHiresProfile(global,global);
gml_GlobalScript_btn_click_ViewHiresBack(global,global);gml_GlobalScript_btn_click_ViewHiresReset(global,global);gml_GlobalScript_btn_click_TrainingLight(global,global);gml_GlobalScript_btn_click_TrainingNormal(global,global);gml_GlobalScript_btn_click_TrainingHard(global,global);gml_GlobalScript_btn_click_XP_Continue(global,global);gml_GlobalScript_btn_click_XP_Back(global,global);gml_GlobalScript_btn_response_quit_yes(global,global);gml_GlobalScript_btn_response_newgame_commit(global,global);gml_GlobalScript_btn_response_kick_no(global,
global);gml_GlobalScript_btn_response_punt_yes(global,global);gml_GlobalScript_btn_response_fg_yes(global,global);gml_GlobalScript_btn_response_1pt(global,global);gml_GlobalScript_btn_response_2pt(global,global);gml_GlobalScript_btn_response_onsidekick_no(global,global);gml_GlobalScript_btn_response_onsidekick_yes(global,global);gml_GlobalScript_btn_response_cut_player_yes(global,global);gml_GlobalScript_btn_response_skip_draft_yes(global,global);gml_GlobalScript_btn_response_pick_player_yes(global,
global);gml_GlobalScript_btn_click_OptionsKickReturns(global,global);gml_GlobalScript_btn_response_in_trade_player_yes(global,global);gml_GlobalScript_btn_response_out_trade_player_yes(global,global);gml_GlobalScript_btn_response_out_trade_player_no(global,global);gml_GlobalScript_btn_response_player_meeting_morale_yes(global,global);gml_GlobalScript_btn_response_player_meeting_condition_yes(global,global);gml_GlobalScript_btn_response_player_meeting_levelup_yes(global,global);gml_GlobalScript_btn_response_player_meeting_extend_contract(global,
global);gml_GlobalScript_btn_response_boost_morale(global,global);gml_GlobalScript_btn_response_boost_condition(global,global);gml_GlobalScript_btn_response_boost_salary_cap(global,global);gml_GlobalScript_s_confirm_upgrade_stadium(global,global);gml_GlobalScript_s_confirm_upgrade_training(global,global);gml_GlobalScript_s_confirm_upgrade_rehab(global,global);gml_GlobalScript_btn_response_hirestaff(global,global);gml_GlobalScript_btn_response_clearfreeagents(global,global);gml_GlobalScript_btn_response_rest_player_yes(global,
global);gml_GlobalScript_btn_response_cointoss_kick(global,global);gml_GlobalScript_btn_response_cointoss_receive(global,global);gml_GlobalScript_btn_response_skip_tutorial(global,global);gml_GlobalScript_btn_response_confirm_new_team(global,global);gml_GlobalScript_s_store_cant_afford(global,global);gml_GlobalScript_s_tip_continue(global,global);gml_GlobalScript_s_qb_mode_auto_xp(global,global);gml_GlobalScript_s_confirm_staff_hire_reset(global,global);gml_GlobalScript_s_confirm_freeagent_hire_reset(global,
global);gml_GlobalScript_btn_response_deletegame1(global,global);gml_GlobalScript_btn_response_deletegame2(global,global);gml_GlobalScript_btn_response_deletegame3(global,global);gml_GlobalScript_btn_response_deletegame4(global,global);gml_GlobalScript_btn_response_deletegame5(global,global);gml_GlobalScript_s_simming_action(global,global);gml_GlobalScript_btn_response_hof_select(global,global);gml_GlobalScript_btn_response_records_reset(global,global);gml_GlobalScript_btn_match_kick(global,global);
gml_GlobalScript_s_do_prematch_dilemma(global,global);gml_GlobalScript_s_do_postmatch_dilemma(global,global);gml_GlobalScript_s_parse_dilemma(global,global);gml_GlobalScript_s_create_dilemma(global,global);gml_GlobalScript_s_choose_dilemma(global,global);gml_GlobalScript_s_dilemma_choice_1(global,global);gml_GlobalScript_s_dilemma_choice_2(global,global);gml_GlobalScript_s_dilemma_choice(global,global);gml_GlobalScript_s_convert_string_to_sprite(global,global);gml_GlobalScript_s_sort_list_by_column(global,
global);gml_GlobalScript_s_check_draft(global,global);gml_GlobalScript_s_create_draftlist(global,global);gml_GlobalScript_s_sound_audience_tck(global,global);gml_GlobalScript_s_create_freeagentlist(global,global);gml_GlobalScript_s_create_freeagent(global,global);gml_GlobalScript_s_create_tradelist(global,global);gml_GlobalScript_s_create_storelist(global,global);gml_GlobalScript_s_create_player_storelist(global,global);gml_GlobalScript_s_count_hires_by_position(global,global);gml_GlobalScript_s_count_players_by_position_store(global,
global);gml_GlobalScript_s_get_hire_shortlist(global,global);gml_GlobalScript_s_reset_draft_picks(global,global);gml_GlobalScript_poki_btn_click_CoinBoost(global,global);gml_GlobalScript_s_update_draft_page(global,global);gml_GlobalScript_s_update_freeagents_page(global,global);gml_GlobalScript_s_college_admissions_draft(global,global);gml_GlobalScript_s_remaining_picks(global,global);gml_GlobalScript_s_remaining_picks_by_round(global,global);gml_GlobalScript_s_get_trade_value(global,global);gml_GlobalScript_s_get_trade_value_by_rating(global,
global);gml_GlobalScript_s_get_offer_team(global,global);gml_GlobalScript_s_clear_trade_offers(global,global);gml_GlobalScript_s_clear_freeagents(global,global);gml_GlobalScript_s_clear_storelist(global,global);gml_GlobalScript_s_end_draft_round(global,global);gml_GlobalScript_s_received_AI_kickoff(global,global);gml_GlobalScript_s_update_contracts(global,global);gml_GlobalScript_s_aim_AI_kickoff(global,global);gml_GlobalScript_btn_click_SeasonReview(global,global);gml_GlobalScript_s_get_new_salary(global,
global);gml_GlobalScript_s_check_expired_contract_message(global,global);gml_GlobalScript_s_get_salary_cap_space(global,global);gml_GlobalScript_s_create_new_save(global,global);gml_GlobalScript_s_loadgame(global,global);gml_GlobalScript_s_savegame(global,global);gml_GlobalScript_s_create_map_options(global,global);gml_GlobalScript_s_count_full_seasons(global,global);gml_GlobalScript_s_load_options(global,global);gml_GlobalScript_s_save_options(global,global);gml_GlobalScript_s_save_backup(global,
global);gml_GlobalScript_s_load_map_file(global,global);gml_GlobalScript_s_update_maplist_from_file(global,global);gml_GlobalScript_s_load_strings(global,global);gml_GlobalScript_s_load_teams(global,global);gml_GlobalScript_s_load_team_detail(global,global);gml_GlobalScript_s_load_retrobowl_hof(global,global);gml_GlobalScript_s_load_retrobowl_history(global,global);gml_GlobalScript_s_load_schedule(global,global);gml_GlobalScript_s_get_savename(global,global);gml_GlobalScript_s_get_string_save_details(global,
global);gml_GlobalScript_s_destroy_master(global,global);gml_GlobalScript_s_save_uniform_file2(global,global);gml_GlobalScript_s_load_uniform_file2(global,global);gml_GlobalScript_s_load_teamname_from_uniform_file(global,global);gml_GlobalScript_s_load_endzone_from_uniform_file(global,global);gml_GlobalScript_s_create_my_fixture_list(global,global);gml_GlobalScript_s_create_fixdata(global,global);gml_GlobalScript_s_do_schedule(global,global);gml_GlobalScript_s_create_playoffs(global,global);gml_GlobalScript_s_create_playoffs2(global,
global);gml_GlobalScript_s_playoffs_12(global,global);gml_GlobalScript_s_get_week_superbowl(global,global);gml_GlobalScript_s_do_playoff_schedule(global,global);gml_GlobalScript_s_get_random_scoredata(global,global);gml_GlobalScript_s_promote_playoff_winner(global,global);gml_GlobalScript_s_add_to_human_fixtures(global,global);gml_GlobalScript_s_update_human_playoff_fixtures(global,global);gml_GlobalScript_s_get_playoff_fixture_by_week(global,global);gml_GlobalScript_s_get_human_fixture_by_week(global,
global);gml_GlobalScript_s_get_human_fixture_previous(global,global);gml_GlobalScript_exhibition_scripts(global,global);gml_GlobalScript_s_get_human_fixture_next(global,global);gml_GlobalScript_s_count_remaining_fixtures(global,global);gml_GlobalScript_s_get_division_winner(global,global);gml_GlobalScript_s_get_team_position_by_id(global,global);gml_GlobalScript_s_get_division_winner_name(global,global);gml_GlobalScript_s_get_division_winner_by_seed(global,global);gml_GlobalScript_s_get_division_winner_name_by_seed(global,
global);gml_GlobalScript_s_skip_to_week(global,global);gml_GlobalScript_s_clear_playoff_fixtures(global,global);gml_GlobalScript_s_update_team_edit_buttons(global,global);gml_GlobalScript_s_set_up_edit_screen(global,global);gml_GlobalScript_s_color_picker(global,global);gml_GlobalScript_s_set_up_uniforms(global,global);gml_GlobalScript_s_set_up_uniforms_training(global,global);gml_GlobalScript_s_set_up_uniform_profile(global,global);gml_GlobalScript_s_shader_get_uniforms(global,global);gml_GlobalScript_s_shader_set_uniforms(global,
global);gml_GlobalScript_s_convert_uniform_colours_all(global,global);gml_GlobalScript_s_convert_uniform_colour(global,global);gml_GlobalScript_s_restore_uniforms_all(global,global);gml_GlobalScript_s_copy_uniforms_slot_a(global,global);gml_GlobalScript_s_copy_uniforms_slot_b(global,global);gml_GlobalScript_s_copy_uniforms_slot_c(global,global);gml_GlobalScript_s_copy_uniforms_slot_d(global,global);gml_GlobalScript_s_set_up_kickoff(global,global);gml_GlobalScript_s_copy_uniforms_slot_e(global,global);
gml_GlobalScript_s_update_uniform_name(global,global);gml_GlobalScript_s_copy_teamnames_from_uniform_file(global,global);gml_GlobalScript_s_edit_name(global,global);gml_GlobalScript_btn_click_edit_div1(global,global);gml_GlobalScript_btn_click_edit_div2(global,global);gml_GlobalScript_btn_click_edit_div3(global,global);gml_GlobalScript_btn_click_edit_div4(global,global);gml_GlobalScript_btn_click_edit_conf1(global,global);gml_GlobalScript_btn_click_edit_conf2(global,global);gml_GlobalScript_s_edit_confirm_div1(global,
global);gml_GlobalScript_s_edit_confirm_div2(global,global);gml_GlobalScript_s_edit_confirm_div3(global,global);gml_GlobalScript_s_edit_confirm_div4(global,global);gml_GlobalScript_s_edit_confirm_conf1(global,global);gml_GlobalScript_s_edit_confirm_conf2(global,global);gml_GlobalScript_s_populate_division(global,global);gml_GlobalScript_s_populate_schedulebox(global,global);gml_GlobalScript_s_create_credit(global,global);gml_GlobalScript_s_set_up_xp_headers(global,global);gml_GlobalScript_s_count_hof_entries(global,
global);gml_GlobalScript_s_set_up_hof_players_screen(global,global);gml_GlobalScript_s_iap_init(global,global);gml_GlobalScript_s_set_up_purchase_ids(global,global);gml_GlobalScript_s_iap_async_android(global,global);gml_GlobalScript_s_iap_async_ios(global,global);gml_GlobalScript_s_iap_purchase_FullVersion(global,global);gml_GlobalScript_s_set_position_kickoff(global,global);gml_GlobalScript_s_iap_purchase_Credits_20(global,global);gml_GlobalScript_s_iap_purchase_Credits_50(global,global);gml_GlobalScript_s_iap_purchase_Credits_100(global,
global);gml_GlobalScript_s_iap_purchase_Credits_250(global,global);gml_GlobalScript_s_iap_restore(global,global);gml_GlobalScript_s_open_store(global,global);gml_GlobalScript_s_open_store_nag(global,global);gml_GlobalScript_s_do_nag_message(global,global);gml_GlobalScript_s_do_purchase_message(global,global);gml_GlobalScript_btn_step_check_fullversion(global,global);gml_GlobalScript_btn_step_check_iaps(global,global);gml_GlobalScript_s_freeze_purchase_buttons(global,global);gml_GlobalScript_s_unfreeze_purchase_buttons(global,
global);gml_GlobalScript_s_do_info_position(global,global);gml_GlobalScript_s_do_info_skills(global,global);gml_GlobalScript_s_do_info_coachtrait(global,global);gml_GlobalScript_s_do_info_draftpicks(global,global);gml_GlobalScript_s_do_info(global,global);gml_GlobalScript_s_create_camera(global,global);gml_GlobalScript_s_play(global,global);gml_GlobalScript_s_update_poki_scaling(global,global);gml_GlobalScript_s_pre_match(global,global);gml_GlobalScript_s_player_profile_qb_mode(global,global);gml_GlobalScript_s_do_next_week(global,
global);gml_GlobalScript_s_start_new_season(global,global);gml_GlobalScript_s_update_team_buttons(global,global);gml_GlobalScript_s_update_job_offer_buttons(global,global);gml_GlobalScript_s_update_options(global,global);gml_GlobalScript_s_get_attitude_icon(global,global);gml_GlobalScript_s_get_credit(global,global);gml_GlobalScript_s_decline_facilities(global,global);gml_GlobalScript_s_do_result_news_qb(global,global);gml_GlobalScript_s_reset_player_meetings(global,global);gml_GlobalScript_s_has_xp_gain(global,
global);gml_GlobalScript_s_is_bye_week(global,global);gml_GlobalScript_s_do_bye_week(global,global);gml_GlobalScript_s_do_postmatch_effects(global,global);gml_GlobalScript_s_do_postmatch_fans(global,global);gml_GlobalScript_s_check_intro(global,global);gml_GlobalScript_s_do_result_news(global,global);gml_GlobalScript_s_count_joboffers(global,global);gml_GlobalScript_s_refresh_save_slots(global,global);gml_GlobalScript_s_show_backups(global,global);gml_GlobalScript_s_team_interested(global,global);
gml_GlobalScript_s_update_history(global,global);gml_GlobalScript_s_update_history_finish(global,global);gml_GlobalScript_age_scripts(global,global);gml_GlobalScript_s_update_history_playoffs(global,global);gml_GlobalScript_s_get_history_by_year(global,global);gml_GlobalScript_s_update_music(global,global);gml_GlobalScript_s_get_ticker_text(global,global);gml_GlobalScript_s_choose_random_face_for_me(global,global);gml_GlobalScript_s_get_kick_direction(global,global);gml_GlobalScript_s_aiming(global,
global);gml_GlobalScript_s_update_ball(global,global);gml_GlobalScript_s_do_touchback(global,global);gml_GlobalScript_s_update_ball_fieldgoal(global,global);gml_GlobalScript_s_update_ball_movement(global,global);gml_GlobalScript_s_update_ball_offset(global,global);gml_GlobalScript_s_is_ball_dead(global,global);gml_GlobalScript_s_check_ball_position(global,global);gml_GlobalScript_s_check_ball_collision(global,global);gml_GlobalScript_s_check_tipped(global,global);gml_GlobalScript_s_drop_ball(global,
global);gml_GlobalScript_s_check_dummy_collision(global,global);gml_GlobalScript_s_kick_ball(global,global);gml_GlobalScript_s_spike_ball(global,global);gml_GlobalScript_s_set_ball_down(global,global);gml_GlobalScript_s_receive_ball(global,global);gml_GlobalScript_s_opposite_aim(global,global);gml_GlobalScript_s_update_xdead(global,global);gml_GlobalScript_s_set_skills_and_skin(global,global);gml_GlobalScript_s_set_anim(global,global);gml_GlobalScript_s_set_position_offense(global,global);gml_GlobalScript_s_create_news_message(global,
global);gml_GlobalScript_s_set_position_defense(global,global);gml_GlobalScript_s_get_nearest_opponent_by_position(global,global);gml_GlobalScript_s_set_position_defense_fg(global,global);gml_GlobalScript_s_set_position_offense_fg(global,global);gml_GlobalScript_s_get_skin_colour_by_index(global,global);gml_GlobalScript_s_point_to_path(global,global);gml_GlobalScript_s_intercept_object(global,global);gml_GlobalScript_s_cover_object(global,global);gml_GlobalScript_s_get_nearest_opponent(global,global);
gml_GlobalScript_s_aim_for_nearest_opponent(global,global);gml_GlobalScript_s_get_distance_to_nearest_opponent(global,global);gml_GlobalScript_s_get_distance_to_furthest_teammate(global,global);gml_GlobalScript_s_get_destination(global,global);gml_GlobalScript_s_check_human_control(global,global);gml_GlobalScript_s_check_tackling(global,global);gml_GlobalScript_s_stop_tackling(global,global);gml_GlobalScript_s_check_dive(global,global);gml_GlobalScript_s_get_quarterback(global,global);gml_GlobalScript_s_get_kicker(global,
global);gml_GlobalScript_s_can_run(global,global);gml_GlobalScript_s_is_in_the_clear(global,global);gml_GlobalScript_s_ball_holder_goalside(global,global);gml_GlobalScript_s_opponent_goalside(global,global);gml_GlobalScript_s_y_on_myside(global,global);gml_GlobalScript_s_aim_AI_offense(global,global);gml_GlobalScript_s_aim_AI_defense(global,global);gml_GlobalScript_s_received_AI_new(global,global);gml_GlobalScript_s_can_throw(global,global);gml_GlobalScript_s_sprite_holding_ball(global,global);gml_GlobalScript_s_is_falling(global,
global);gml_GlobalScript_is_defensiveback(global,global);gml_GlobalScript_s_get_qb_name(global,global);gml_GlobalScript_s_get_kicker_name(global,global);gml_GlobalScript_s_get_holder_name(global,global);gml_GlobalScript_s_get_opponent_team_tla(global,global);gml_GlobalScript_s_set_up_play(global,global);gml_GlobalScript_s_update_commentary(global,global);gml_GlobalScript_s_choose_defensive_formation(global,global);gml_GlobalScript_s_set_up_fieldgoal(global,global);gml_GlobalScript_s_subtract_time(global,
global);gml_GlobalScript_s_update_game_timer(global,global);gml_GlobalScript_s_update_game_clock(global,global);gml_GlobalScript_s_update_yard_gain(global,global);gml_GlobalScript_s_set_rewarded_route(global,global);gml_GlobalScript_s_switch_drivedirection(global,global);gml_GlobalScript_s_destroy_match_objects(global,global);gml_GlobalScript_s_action_result(global,global);gml_GlobalScript_s_is_quarter_over(global,global);gml_GlobalScript_s_is_on_pitch(global,global);gml_GlobalScript__poki_is_mobile(global,
global);gml_GlobalScript_s_is_on_pitch_xy(global,global);gml_GlobalScript_s_end_match(global,global);gml_GlobalScript_s_update_stats(global,global);gml_GlobalScript_s_convert_scrimmage_to_goal_distance(global,global);gml_GlobalScript_s_kick_off(global,global);gml_GlobalScript_s_punt(global,global);gml_GlobalScript_s_change_possession(global,global);gml_GlobalScript_s_tackle_failure(global,global);gml_GlobalScript_s_last_secs_of_half(global,global);gml_GlobalScript_s_reset_wind(global,global);gml_GlobalScript_s_change_wind(global,
global);gml_GlobalScript_s_force_quit(global,global);gml_GlobalScript_s_do_audible(global,global);gml_GlobalScript_s_do_timeout(global,global);gml_GlobalScript_s_check_win_after_turnover(global,global);gml_GlobalScript_s_clear_clock(global,global);gml_GlobalScript_s_fieldtxt(global,global);gml_GlobalScript_s_fieldtxt_yards(global,global);gml_GlobalScript_s_sound_audience_idle(global,global);gml_GlobalScript_s_create_match_message(global,global);gml_GlobalScript_s_draw_commentary(global,global);gml_GlobalScript_s_draw_scoreboard(global,
global);gml_GlobalScript_s_draw_scrimmage(global,global);gml_GlobalScript_s_draw_wind(global,global);gml_GlobalScript_s_draw_kicking_power(global,global);gml_GlobalScript_s_draw_my_route(global,global);gml_GlobalScript_s_draw_kick_cone(global,global);gml_GlobalScript_s_check_draft_qb(global,global);gml_GlobalScript_s_update_my_shadow(global,global);gml_GlobalScript_s_set_up_practice(global,global);gml_GlobalScript_s_practice_passing(global,global);gml_GlobalScript_s_reinstate_hof_player(global,global);
gml_GlobalScript_s_practice_running(global,global);gml_GlobalScript_s_practice_running_qb(global,global);gml_GlobalScript_s_create_dummy(global,global);gml_GlobalScript_s_create_boundary(global,global);gml_GlobalScript_debug_scripts(global,global);gml_GlobalScript_s_sound_kick(global,global);gml_GlobalScript_s_sound_throw(global,global);gml_GlobalScript_s_sound_post(global,global);gml_GlobalScript_s_sound_audience_dis(global,global);gml_GlobalScript_s_sound_audience_fg(global,global);gml_GlobalScript_s_sound_bounce(global,
global);gml_GlobalScript_s_sound_tackle(global,global);gml_GlobalScript_s_sound_oof(global,global);gml_GlobalScript_s_sound_dive(global,global);gml_GlobalScript_s_sound_loop(global,global);gml_GlobalScript_s_qb_run(global,global);gml_GlobalScript_s_throw_ball(global,global);gml_GlobalScript_s_record_frame(global,global);gml_GlobalScript_s_replay_frame(global,global);gml_GlobalScript_s_start_replay(global,global);gml_GlobalScript_s_end_replay(global,global);gml_GlobalScript_s_get_qb_pmap(global,global);
gml_GlobalScript_s_create_message(global,global);gml_GlobalScript_s_meter_change(global,global);gml_GlobalScript_s_meter_change_end(global,global);gml_GlobalScript_s_notification(global,global);gml_GlobalScript_s_msg_clear(global,global);gml_GlobalScript_s_msg_clear_info_draft(global,global);gml_GlobalScript_s_add_news(global,global);gml_GlobalScript_s_check_for_news(global,global);gml_GlobalScript_s_news_clear(global,global);gml_GlobalScript_s_do_banner_draft(global,global);gml_GlobalScript_s_do_review_message(global,
global);gml_GlobalScript_btn_response_review_yes(global,global);gml_GlobalScript_s_edit_field(global,global);gml_GlobalScript_s_edit_cancel(global,global);gml_GlobalScript_s_edit_confirm_profile(global,global);gml_GlobalScript_s_msg_timeouts(global,global);gml_GlobalScript_s_get_record(global,global);gml_GlobalScript_s_check_record(global,global);gml_GlobalScript_s_check_record_text(global,global);gml_GlobalScript_s_sort_record_list(global,global);gml_GlobalScript_s_get_player_name_for_record(global,
global);gml_GlobalScript_s_check_repeat_retrobowls(global,global);gml_GlobalScript_s_create_player(global,global);gml_GlobalScript_s_sort_players(global,global);gml_GlobalScript_s_create_new_roster(global,global);gml_GlobalScript_s_create_new_roster_newteam(global,global);gml_GlobalScript_s_lastname_already_on_roster(global,global);gml_GlobalScript_s_position_already_on_roster(global,global);gml_GlobalScript_s_get_required_position(global,global);gml_GlobalScript_s_get_player_rating(global,global);
gml_GlobalScript_s_get_player_potential(global,global);gml_GlobalScript_s_obj_player_draw_begin(global,global);gml_GlobalScript_s_get_player_by_position(global,global);gml_GlobalScript_s_get_player_by_lname(global,global);gml_GlobalScript_s_get_random_player(global,global);gml_GlobalScript_s_get_random_player_by_position(global,global);gml_GlobalScript_s_get_random_player_defensive(global,global);gml_GlobalScript_s_get_random_player_offensive(global,global);gml_GlobalScript_s_get_random_coach(global,
global);gml_GlobalScript_btn_click_qb_items(global,global);gml_GlobalScript_s_count_players_by_position(global,global);gml_GlobalScript_s_count_players_onfield_by_position(global,global);gml_GlobalScript_s_count_defenders(global,global);gml_GlobalScript_btn_click_OptionsControls(global,global);gml_GlobalScript_s_get_position_colour(global,global);gml_GlobalScript_s_increase_player_attribute(global,global);gml_GlobalScript_s_player_at_max_potential(global,global);gml_GlobalScript_s_is_offensive_player(global,
global);gml_GlobalScript_s_is_defensive_player(global,global);gml_GlobalScript_s_get_average_yards(global,global);gml_GlobalScript_s_get_player_name(global,global);gml_GlobalScript_s_get_meeting_cost_morale(global,global);gml_GlobalScript_s_get_meeting_cost_condition(global,global);gml_GlobalScript_s_get_meeting_cost_levelup(global,global);gml_GlobalScript_s_get_meeting_cost_delay_retirement(global,global);gml_GlobalScript_s_get_meeting_cost_extend_contract(global,global);gml_GlobalScript_s_get_match_rating(global,
global);gml_GlobalScript_s_reset_match_stats(global,global);gml_GlobalScript_s_toxic_effect_on_morale(global,global);gml_GlobalScript_s_match_rating_effect_on_morale(global,global);gml_GlobalScript_s_training_regime_effect_on_morale(global,global);gml_GlobalScript_s_injury_effect_on_attitude(global,global);gml_GlobalScript_s_rehab_effect(global,global);gml_GlobalScript_s_add_xp_gain_all(global,global);gml_GlobalScript_s_check_for_injury(global,global);gml_GlobalScript_s_count_injuries(global,global);
gml_GlobalScript_s_count_injuries_weeks(global,global);gml_GlobalScript_s_choose_face(global,global);gml_GlobalScript_s_get_max_age(global,global);gml_GlobalScript_s_get_max_age_normal(global,global);gml_GlobalScript_s_get_num_audibles(global,global);gml_GlobalScript_s_get_morale(global,global);gml_GlobalScript_s_get_condition_squad(global,global);gml_GlobalScript_s_adjust_team_morale(global,global);gml_GlobalScript_s_set_team_morale(global,global);gml_GlobalScript_s_position_edit_name_btn(global,
global);gml_GlobalScript_s_update_rest_all_button(global,global);gml_GlobalScript_s_all_players_resting(global,global);gml_GlobalScript_s_rest_all_players(global,global);gml_GlobalScript_s_tag_backups(global,global);gml_GlobalScript_s_is_backup(global,global);gml_GlobalScript_s_do_player_awards(global,global);gml_GlobalScript_s_award_sb_rings(global,global);gml_GlobalScript_s_round_player_attributes(global,global);gml_GlobalScript_s_get_store_player_by_position(global,global);gml_GlobalScript_s_create_new_stafflist(global,
global);gml_GlobalScript_s_create_staff(global,global);gml_GlobalScript_s_create_hirelist(global,global);gml_GlobalScript_s_sort_hirelist(global,global);gml_GlobalScript_s_reset_staff_hire_list(global,global);gml_GlobalScript_s_get_staff(global,global);gml_GlobalScript_s_is_staff(global,global);gml_GlobalScript_s_get_coach_cost(global,global);gml_GlobalScript_s_coach_trait_experience(global,global);gml_GlobalScript_s_coach_trait_talentspotter(global,global);gml_GlobalScript_s_coach_trait_motivator(global,
global);gml_GlobalScript_btn_click_qb_training(global,global);gml_GlobalScript_btn_click_GenerateCharacter(global,global);gml_GlobalScript_s_count_trait_fanfavorite(global,global);gml_GlobalScript_s_count_trait_scout(global,global);gml_GlobalScript_s_fire_coach(global,global);gml_GlobalScript_s_check_contracts_expiring(global,global);gml_GlobalScript_s_str(global,global);gml_GlobalScript_s_split_string(global,global);gml_GlobalScript_s_parse_news(global,global);gml_GlobalScript_s_parse_intro(global,
global);gml_GlobalScript_s_parse_player_message(global,global);gml_GlobalScript_s_strP(global,global);gml_GlobalScript_s_sim_stat_increment(global,global);gml_GlobalScript_s_parse_string(global,global);gml_GlobalScript_s_crop_text(global,global);gml_GlobalScript_s_get_string_ball_state(global,global);gml_GlobalScript_s_get_string_state(global,global);gml_GlobalScript_s_get_string_sex(global,global);gml_GlobalScript_s_get_string_heshe(global,global);gml_GlobalScript_s_get_string_time(global,global);
gml_GlobalScript_s_string_rand(global,global);gml_GlobalScript_s_get_string_downand(global,global);gml_GlobalScript_s_get_string_float(global,global);gml_GlobalScript_s_get_string_division(global,global);gml_GlobalScript_s_get_string_conference(global,global);gml_GlobalScript_s_get_string_week(global,global);gml_GlobalScript_s_get_string_week_short(global,global);gml_GlobalScript_s_get_string_year(global,global);gml_GlobalScript_s_get_string_commstage(global,global);gml_GlobalScript_s_get_string_position(global,
global);gml_GlobalScript_s_get_string_position_full(global,global);gml_GlobalScript_s_get_string_attitude(global,global);gml_GlobalScript_s_get_string_trade_value(global,global);gml_GlobalScript_s_get_string_anim(global,global);gml_GlobalScript_s_get_string_condition(global,global);gml_GlobalScript_s_get_string_record(global,global);gml_GlobalScript_s_get_string_trait(global,global);gml_GlobalScript_s_get_string_action_result(global,global);gml_GlobalScript_s_can_touchback(global,global);gml_GlobalScript_s_get_string_performance(global,
global);gml_GlobalScript_s_get_random_teamname(global,global);gml_GlobalScript_btn_click_Roster_List(global,global);gml_GlobalScript_s_get_string_picks(global,global);gml_GlobalScript_s_get_team_by_id(global,global);gml_GlobalScript_s_get_team_name_by_id(global,global);gml_GlobalScript_s_get_team_tla_by_id(global,global);gml_GlobalScript_s_sort_teams(global,global);gml_GlobalScript_s_get_team_by_seed(global,global);gml_GlobalScript_s_get_team_id_by_seed(global,global);gml_GlobalScript_s_get_team_name_by_seed(global,
global);gml_GlobalScript_s_get_team_offense(global,global);gml_GlobalScript_s_get_defense_attribute(global,global);gml_GlobalScript_s_get_team_defense(global,global);gml_GlobalScript_s_get_salary_total(global,global);gml_GlobalScript_s_refactor_team_strengths(global,global);gml_GlobalScript_s_get_team_winpct(global,global);gml_GlobalScript_s_get_team_net_points(global,global);gml_GlobalScript_s_get_points_versus(global,global);gml_GlobalScript_s_get_wins_versus(global,global);gml_GlobalScript_s_get_point_swing(global,
global);gml_GlobalScript_s_get_points_season(global,global);gml_GlobalScript_s_practice_qb_mode(global,global);gml_GlobalScript_s_col_hex_to_r(global,global);gml_GlobalScript_s_col_hex_to_g(global,global);gml_GlobalScript_s_col_hex_to_b(global,global);gml_GlobalScript_s_hex_string_to_col(global,global);gml_GlobalScript_s_rgb_to_bgr(global,global);gml_GlobalScript_s_set_up_globals(global,global);gml_GlobalScript_slog(global,global);gml_GlobalScript_s_sound(global,global);gml_GlobalScript_s_make_random_colour(global,
global);gml_GlobalScript_s_lines_intersect(global,global);gml_GlobalScript_s_log_player(global,global);gml_GlobalScript_s_get_random_college_name(global,global);gml_GlobalScript_s_get_random_charity(global,global);gml_GlobalScript_s_get_aim_direction(global,global);gml_GlobalScript_s_get_random_first_name(global,global);gml_GlobalScript_s_get_random_last_name(global,global);gml_GlobalScript_s_format_hex_color(global,global);gml_GlobalScript_s_color_to_hex(global,global);gml_GlobalScript_s_gui_helpers(global,
global);gml_GlobalScript_btn_click_SeasonReviewBack(global,global);gml_GlobalScript_s_dec_to_hex(global,global);gml_GlobalScript_s_roman_numerals(global,global);gml_GlobalScript_s_get_watermark_color(global,global);gml_GlobalScript_s_generate_uid(global,global);gml_GlobalScript_gmcallback_poki_loadbar(global,global);gml_GlobalScript_poki_pause(global,global);gml_GlobalScript_s_set_up_qb_pmap(global,global);gml_GlobalScript_poki_resume(global,global);gml_GlobalScript_scale_canvas(global,global);gml_GlobalScript_s_update_camera(global,
global);gml_GlobalScript__poki_gameplay_start(global,global);gml_GlobalScript__poki_gameplay_stop(global,global);gml_GlobalScript_s_find_gamepad(global,global);gml_GlobalScript_s_update_gamepad(global,global);gml_GlobalScript_s_find_default_button(global,global);gml_GlobalScript_s_get_watermarked_stats(global,global);gml_GlobalScript_s_get_qb_energy(global,global);gml_GlobalScript_btn_click_external_links(global,global);gml_GlobalScript_s_do_prematch_dilemma_qb(global,global);gml_GlobalScript_s_sound_audience_catch(global,
global);gml_GlobalScript_s_player_gpa(global,global);gml_GlobalScript_s_canvas_fullscreen(global,global);gml_GlobalScript_s_player_party(global,global);gml_GlobalScript_btn_click_LeagueMode(global,global);gml_GlobalScript_pause_scripts(global,global);gml_GlobalScript_s_draw_scoreboard_qb_training(global,global);gml_GlobalScript_s_update_manual_gestures(global,global);gml_GlobalScript_s_obj_controller_draw_begin(global,global);move_random.__yy_onlySelfNoOther=true;place_free.__yy_onlySelfNoOther=true;
place_empty.__yy_onlySelfNoOther=true;place_meeting.__yy_onlySelfNoOther=true;place_snapped.__yy_onlySelfNoOther=true;move_snap.__yy_onlySelfNoOther=true;move_towards_point.__yy_onlySelfNoOther=true;move_contact_solid.__yy_onlySelfNoOther=true;move_contact_all.__yy_onlySelfNoOther=true;move_outside_solid.__yy_onlySelfNoOther=true;move_outside_all.__yy_onlySelfNoOther=true;move_and_collide.__yy_onlySelfNoOther=true;move_bounce_solid.__yy_onlySelfNoOther=true;move_bounce_all.__yy_onlySelfNoOther=true;
move_wrap.__yy_onlySelfNoOther=true;motion_set.__yy_onlySelfNoOther=true;motion_add.__yy_onlySelfNoOther=true;distance_to_point.__yy_onlySelfNoOther=true;distance_to_object.__yy_onlySelfNoOther=true;path_start.__yy_onlySelfNoOther=true;path_end.__yy_onlySelfNoOther=true;mp_linear_step.__yy_onlySelfNoOther=true;mp_linear_path.__yy_onlySelfNoOther=true;mp_linear_step_object.__yy_onlySelfNoOther=true;mp_linear_path_object.__yy_onlySelfNoOther=true;mp_potential_settings.__yy_onlySelfNoOther=true;mp_potential_step.__yy_onlySelfNoOther=true;
mp_potential_path.__yy_onlySelfNoOther=true;mp_potential_step_object.__yy_onlySelfNoOther=true;mp_potential_path_object.__yy_onlySelfNoOther=true;mp_grid_add_instances.__yy_onlySelfNoOther=true;mp_grid_path.__yy_onlySelfNoOther=true;collision_point.__yy_onlySelfNoOther=true;collision_point_list.__yy_onlySelfNoOther=true;collision_rectangle.__yy_onlySelfNoOther=true;collision_rectangle_list.__yy_onlySelfNoOther=true;collision_circle.__yy_onlySelfNoOther=true;collision_circle_list.__yy_onlySelfNoOther=true;
collision_ellipse.__yy_onlySelfNoOther=true;collision_ellipse_list.__yy_onlySelfNoOther=true;collision_line.__yy_onlySelfNoOther=true;collision_line_list.__yy_onlySelfNoOther=true;instance_nearest.__yy_onlySelfNoOther=true;instance_furthest.__yy_onlySelfNoOther=true;instance_place.__yy_onlySelfNoOther=true;instance_place_list.__yy_onlySelfNoOther=true;instance_copy.__yy_onlySelfNoOther=true;instance_change.__yy_onlySelfNoOther=true;instance_destroy.__yy_onlySelfNoOther=true;position_empty.__yy_onlySelfNoOther=true;
position_meeting.__yy_onlySelfNoOther=true;position_destroy.__yy_onlySelfNoOther=true;position_change.__yy_onlySelfNoOther=true;instance_id_get.__yy_onlySelfNoOther=true;instance_deactivate_all.__yy_onlySelfNoOther=true;instance_deactivate_object.__yy_onlySelfNoOther=true;instance_deactivate_region.__yy_onlySelfNoOther=true;instance_deactivate_layer.__yy_onlySelfNoOther=true;instance_activate_all.__yy_onlySelfNoOther=true;instance_activate_object.__yy_onlySelfNoOther=true;instance_activate_region.__yy_onlySelfNoOther=true;
instance_activate_layer.__yy_onlySelfNoOther=true;draw_self.__yy_onlySelfNoOther=true;draw_sprite.__yy_onlySelfNoOther=true;draw_sprite_pos.__yy_onlySelfNoOther=true;draw_sprite_ext.__yy_onlySelfNoOther=true;draw_sprite_stretched.__yy_onlySelfNoOther=true;draw_sprite_stretched_ext.__yy_onlySelfNoOther=true;draw_sprite_part.__yy_onlySelfNoOther=true;draw_sprite_part_ext.__yy_onlySelfNoOther=true;draw_sprite_general.__yy_onlySelfNoOther=true;draw_sprite_tiled.__yy_onlySelfNoOther=true;draw_sprite_tiled_ext.__yy_onlySelfNoOther=true;
event_inherited.__yy_bothSelfAndOther=true;event_perform.__yy_bothSelfAndOther=true;event_perform_async.__yy_bothSelfAndOther=true;event_user.__yy_bothSelfAndOther=true;event_perform_object.__yy_bothSelfAndOther=true;alarm_get.__yy_onlySelfNoOther=true;alarm_set.__yy_onlySelfNoOther=true;physics_fixture_bind.__yy_onlySelfNoOther=true;physics_fixture_bind_ext.__yy_onlySelfNoOther=true;physics_apply_force.__yy_onlySelfNoOther=true;physics_apply_impulse.__yy_onlySelfNoOther=true;physics_apply_angular_impulse.__yy_onlySelfNoOther=true;
physics_apply_local_force.__yy_onlySelfNoOther=true;physics_apply_local_impulse.__yy_onlySelfNoOther=true;physics_apply_torque.__yy_onlySelfNoOther=true;physics_mass_properties.__yy_onlySelfNoOther=true;physics_draw_debug.__yy_onlySelfNoOther=true;physics_test_overlap.__yy_onlySelfNoOther=true;physics_get_friction.__yy_onlySelfNoOther=true;physics_get_density.__yy_onlySelfNoOther=true;physics_get_restitution.__yy_onlySelfNoOther=true;physics_set_friction.__yy_onlySelfNoOther=true;physics_set_density.__yy_onlySelfNoOther=true;
physics_set_restitution.__yy_onlySelfNoOther=true;skeleton_animation_set.__yy_onlySelfNoOther=true;skeleton_animation_get.__yy_onlySelfNoOther=true;skeleton_animation_mix.__yy_onlySelfNoOther=true;skeleton_animation_set_ext.__yy_onlySelfNoOther=true;skeleton_animation_get_ext.__yy_onlySelfNoOther=true;skeleton_animation_get_duration.__yy_onlySelfNoOther=true;skeleton_animation_get_frames.__yy_onlySelfNoOther=true;skeleton_animation_clear.__yy_onlySelfNoOther=true;skeleton_skin_set.__yy_onlySelfNoOther=true;
skeleton_skin_get.__yy_onlySelfNoOther=true;skeleton_skin_create.__yy_onlySelfNoOther=true;skeleton_attachment_set.__yy_onlySelfNoOther=true;skeleton_attachment_get.__yy_onlySelfNoOther=true;skeleton_attachment_create.__yy_onlySelfNoOther=true;skeleton_attachment_create_colour.__yy_onlySelfNoOther=true;skeleton_attachment_create_color.__yy_onlySelfNoOther=true;skeleton_attachment_replace.__yy_onlySelfNoOther=true;skeleton_attachment_replace_colour.__yy_onlySelfNoOther=true;skeleton_attachment_replace_color.__yy_onlySelfNoOther=true;
skeleton_attachment_destroy.__yy_onlySelfNoOther=true;skeleton_attachment_exists.__yy_onlySelfNoOther=true;skeleton_collision_draw_set.__yy_onlySelfNoOther=true;skeleton_bone_data_get.__yy_onlySelfNoOther=true;skeleton_bone_data_set.__yy_onlySelfNoOther=true;skeleton_bone_state_get.__yy_onlySelfNoOther=true;skeleton_bone_state_set.__yy_onlySelfNoOther=true;skeleton_slot_data_instance.__yy_onlySelfNoOther=true;skeleton_slot_colour_set.__yy_onlySelfNoOther=true;skeleton_slot_color_set.__yy_onlySelfNoOther=true;
skeleton_slot_colour_get.__yy_onlySelfNoOther=true;skeleton_slot_color_get.__yy_onlySelfNoOther=true;skeleton_slot_alpha_get.__yy_onlySelfNoOther=true;skeleton_animation_get_frame.__yy_onlySelfNoOther=true;skeleton_animation_set_frame.__yy_onlySelfNoOther=true;skeleton_animation_is_looping.__yy_onlySelfNoOther=true;skeleton_animation_is_finished.__yy_onlySelfNoOther=true;skeleton_animation_get_position.__yy_onlySelfNoOther=true;skeleton_animation_set_position.__yy_onlySelfNoOther=true;skeleton_animation_get_event_frames.__yy_onlySelfNoOther=true;
skeleton_get_minmax.__yy_onlySelfNoOther=true;skeleton_get_num_bounds.__yy_onlySelfNoOther=true;skeleton_get_bounds.__yy_onlySelfNoOther=true;skeleton_find_slot.__yy_onlySelfNoOther=true;draw_tilemap.__yy_onlySelfNoOther=true;draw_tile.__yy_onlySelfNoOther=true;}function gmlGameEndScripts(){}Tags=[];IDToTagList=[];JSON_game.ScriptNames=["gml_Script_poki_init","gml_Script_poki_commercial_break","gml_Script_poki_rewarded_break","gml_Script_poki_script_closure","gml_Script_gmcallback_poki_closure","gml_Script_poki_get_team",
"gml_Script_poki_set_team","gml_GlobalScript_s_update_shopping_buttons","gml_Script_s_update_shopping_buttons","gml_Script_btn_click_shopping_next","gml_Script_btn_click_shopping_prev","gml_Script_btn_shopping_purchase","gml_Script_s_confirm_purchase","gml_Script_s_count_shop_items_by_type","gml_Script_s_degrade_shop_items","gml_GlobalScript_s_count_simmed_games","gml_Script_s_count_simmed_games","gml_GlobalScript_season_tally_scripts","gml_Script_s_draw_season_tally_header","gml_GlobalScript_s_choose_mode_hc",
"gml_Script_s_choose_mode_HC","gml_Script_s_choose_mode_QB","gml_Script_s_choose_mode_CO","gml_Script_s_setup_for_mode_CO","gml_Script_s_update_details_screen","gml_GlobalScript_s_benched","gml_Script_s_player_benched","gml_GlobalScript_s_cpu_is_kicking","gml_Script_s_cpu_is_kicking_off","gml_Script_s_is_kickoff","gml_GlobalScript_nx_scripts","gml_Script_s_nx_init","gml_Script_s_nx_commit","gml_Script_s_nx_get_open_user","gml_GlobalScript_s_recruitment_credits","gml_Script_recruitment_credits_cap_total",
"gml_Script_can_fit_recruitment_credits","gml_Script_recruitment_credits_space","gml_Script_recruitment_credits_add","gml_Script_recruitment_credits_toggle_roster_size","gml_Script_recruitment_credits_button_click_boost","gml_Script_btn_response_boost_recruitment_credits","gml_GlobalScript_qb_contract_scripts","gml_Script_s_qb_mode_set_up_contract_screen","gml_Script____struct___0_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts","gml_Script_s_qb_mode_new_contract","gml_Script_btn_contract_negotiate",
"gml_Script_btn_contract_salary_minus","gml_Script_btn_contract_salary_plus","gml_Script_btn_contract_tdbonus_minus","gml_Script_btn_contract_tdbonus_plus","gml_Script_btn_contract_length_minus","gml_Script_btn_contract_length_plus","gml_Script_btn_negotiate_higher","gml_Script_btn_negotiate_lower","gml_Script_s_check_negotiate","gml_Script_s_check_hilo_buttons","gml_Script_s_accept_contract","gml_Script_s_reject_contract","gml_GlobalScript_s_draw_player_image","gml_Script_s_draw_player_image","gml_GlobalScript_s_college_gui_helpers",
"gml_Script_buttons_college_custom","gml_Script_draw_custom_increase_wallet","gml_Script_draw_custom_recruitment_credits_display","gml_Script_rm_player_profile_show_noncollege_elements","gml_Script_rm_player_profile_show_more","gml_Script____struct___1_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___2_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___3_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers",
"gml_Script____struct___4_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___5_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___6_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___7_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___8_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers",
"gml_Script_rm_player_profile_college_create_p1","gml_Script____struct___9_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___10_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___11_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___12_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___13_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers",
"gml_Script____struct___14_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___15_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___16_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___17_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script_rm_player_profile_college_create_p2","gml_Script_rm_player_profile_college_create",
"gml_Script_btn_rm_player_profile_college_showP1","gml_Script_btn_rm_player_profile_college_showP2","gml_Script_rm_player_profile_college_step","gml_Script_btn_click_Profile_College_Cut","gml_Script_btn_rm_stats_player_showAwards","gml_Script_btn_rm_stats_player_showEpilogue","gml_Script____struct___18_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers","gml_Script_stats_player_button_entry","gml_Script____struct___19_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers",
"gml_Script____struct___20_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers","gml_Script_rm_stats_player_configure_college","gml_GlobalScript_s_load_profile_uni","gml_Script_s_load_profile_uni","gml_GlobalScript_s_get_lifestyle","gml_Script_s_get_lifestyle","gml_GlobalScript_btn_meet_teammate","gml_Script_btn_meet_teammate","gml_Script_s_confirm_teammate_meeting","gml_GlobalScript_s_check_qb_mode_benched","gml_Script_s_qb_mode_benched_status","gml_GlobalScript_font_scripts",
"gml_Script_s_data_path","gml_Script_s_fonts_init","gml_Script_draw_hd_text","gml_Script_draw_hd_text_color","gml_Script_draw_hd_text_ext","gml_Script_draw_hd_text_ext_color","gml_Script_draw_hd_text_transformed","gml_Script_draw_hd_text_transformed_color","gml_Script_draw_hd_text_ext_transformed","gml_Script_string_hd_width","gml_Script_string_hd_width_ext","gml_Script_string_hd_height","gml_Script_string_hd_height_ext","gml_GlobalScript_btn_click_Details_Back","gml_Script_btn_click_Details_Back",
"gml_GlobalScript_s_replay_controls","gml_Script_s_replay_controls","gml_GlobalScript_nrg","gml_Script_btn_click_nrg_buy","gml_Script_btn_click_nrg_drink","gml_Script_s_drink_nrg","gml_Script_s_get_condition_colour","gml_Script_s_get_condition_icon","gml_GlobalScript_s_college_draft","gml_Script_s_college_draft_ranking","gml_Script_s_college_draft_team_ranking","gml_Script_s_college_draft_team_pick","gml_Script_s_calculate_college_draft","gml_Script_s_destroy_college_draft","gml_Script____struct___21_s_display_college_draft_debug_gml_GlobalScript_s_college_draft",
"gml_Script_s_display_college_draft_debug","gml_Script_s_message_college_draft_pick","gml_Script_s_message_college_draft_notpick","gml_Script_s_message_college_draft_nottrydraft_y3","gml_Script_s_message_college_draft_early_y3","gml_Script_s_message_college_draft_pick_continue","gml_Script_s_message_college_earyly_yes","gml_Script_s_message_college_earyly_no","gml_Script_s_message_college_earyly_info","gml_Script_s_college_draft_earyly_info_return","gml_Script_s_college_draft_refresh_current_attitude",
"gml_Script_s_doing_college_draft","gml_Script_s_check_college_draft_start","gml_Script_s_start_college_draft","gml_Script_s_draft_set_epilogue","gml_Script_s_end_college_draft","gml_Script_s_end_college_draft_late_msg_clear","gml_Script_s_end_college_draft_late","gml_Script_btn_click_college_draft_next","gml_Script_s_college_draft_refresh","gml_Script_btn_click_college_draft_skip","gml_Script_college_draft_do_skip","gml_Script_s_college_draft_player_pick","gml_Script____struct___22_s_display_college_draft_roster_gml_GlobalScript_s_college_draft",
"gml_Script____struct___23_s_display_college_draft_roster_gml_GlobalScript_s_college_draft","gml_Script____struct___24_s_display_college_draft_roster_gml_GlobalScript_s_college_draft","gml_Script____struct___25_s_display_college_draft_roster_gml_GlobalScript_s_college_draft","gml_Script_s_display_college_draft_roster","gml_Script____struct___26_s_card_layout_pos_gml_GlobalScript_s_college_draft","gml_Script_s_card_layout_pos","gml_Script_s_load_pro_teams","gml_GlobalScript_s_check_ingame_control_change",
"gml_Script_s_check_ingame_control_change","gml_GlobalScript_s_remove_player","gml_Script_s_remove_player","gml_GlobalScript_btn_click_BengRams","gml_Script_btn_click_BengRams","gml_Script_s_update_btn_bengrams","gml_Script_s_set_ui_colours","gml_GlobalScript_btn_click_OptionsAutoRun","gml_Script_btn_click_OptionsAutoRun","gml_GlobalScript_title_scripts","gml_Script_s_title_goto","gml_Script_s_title_create","gml_Script_s_title_step","gml_Script_s_title_draw_gui","gml_Script_s_title_exit","gml_GlobalScript_s_get_achievement",
"gml_Script_s_get_achievement","gml_GlobalScript_s_count_achievement","gml_Script_s_count_achievement","gml_GlobalScript_s_get_achievement_percentage","gml_Script_s_get_achievement_percentage","gml_GlobalScript_s_complete_achievement","gml_Script_s_complete_achievement","gml_GlobalScript_s_sort_retrobowl_list","gml_Script_s_sort_retrobowl_list","gml_GlobalScript_s_sort_retrobowl_history_list","gml_Script_s_sort_retrobowl_history_list","gml_GlobalScript_btn_click_EditAFC","gml_Script_btn_click_EditAFC",
"gml_GlobalScript_btn_click_EditNFC","gml_Script_btn_click_EditNFC","gml_GlobalScript_btn_click_EditTeam","gml_Script_btn_click_EditTeam","gml_GlobalScript_s_round_to_decimal","gml_Script_s_round_to_decimal","gml_GlobalScript_btn_click_TeamEditCancel","gml_Script_btn_click_TeamEditCancel","gml_GlobalScript_btn_click_TeamEditDone","gml_Script_btn_click_TeamEditDone","gml_GlobalScript_btn_click_TeamEditRestore","gml_Script_btn_click_TeamEditRestore","gml_GlobalScript_btn_click_InputHelmet","gml_Script_btn_click_InputHelmet",
"gml_GlobalScript_btn_click_InputLogo","gml_Script_btn_click_InputLogo","gml_GlobalScript_btn_click_InputShirt","gml_Script_btn_click_InputShirt","gml_GlobalScript_btn_click_InputSleeve","gml_Script_btn_click_InputSleeve","gml_GlobalScript_btn_click_InputPants","gml_Script_btn_click_InputPants","gml_GlobalScript_btn_click_InputStripe","gml_Script_btn_click_InputStripe","gml_GlobalScript_btn_click_InputSocks1","gml_Script_btn_click_InputSocks1","gml_GlobalScript_btn_click_InputSocks2","gml_Script_btn_click_InputSocks2",
"gml_GlobalScript_btn_click_InputEndzone","gml_Script_btn_click_InputEndzone","gml_GlobalScript_btn_click_EditHelmet","gml_Script_btn_click_EditHelmet","gml_GlobalScript_btn_click_EditLogo","gml_Script_btn_click_EditLogo","gml_GlobalScript_btn_click_EditShirt","gml_Script_btn_click_EditShirt","gml_GlobalScript_btn_click_EditSleeve","gml_Script_btn_click_EditSleeve","gml_GlobalScript_btn_click_EditPants","gml_Script_btn_click_EditPants","gml_GlobalScript_btn_click_EditStripe","gml_Script_btn_click_EditStripe",
"gml_GlobalScript_btn_click_EditSocks1","gml_Script_btn_click_EditSocks1","gml_GlobalScript_btn_click_EditSocks2","gml_Script_btn_click_EditSocks2","gml_GlobalScript_btn_click_EditEndzone","gml_Script_btn_click_EditEndzone","gml_GlobalScript_btn_click_Kit1","gml_Script_btn_click_Kit1","gml_GlobalScript_btn_click_Kit2","gml_Script_btn_click_Kit2","gml_GlobalScript_btn_click_Kit3","gml_Script_btn_click_Kit3","gml_GlobalScript_btn_click_Kit4","gml_Script_btn_click_Kit4","gml_GlobalScript_btn_click_RestoreAllTeams",
"gml_Script_btn_click_RestoreAllTeams","gml_GlobalScript_btn_click_KR_Select","gml_Script_btn_click_KR_Select","gml_GlobalScript_btn_click_EditCopySlotA","gml_Script_btn_click_EditCopySlotA","gml_GlobalScript_s_sound_audience_inc","gml_Script_s_sound_audience_inc","gml_GlobalScript_btn_click_EditCopySlotB","gml_Script_btn_click_EditCopySlotB","gml_GlobalScript_btn_click_EditCopySlotC","gml_Script_btn_click_EditCopySlotC","gml_GlobalScript_btn_click_EditCopySlotD","gml_Script_btn_click_EditCopySlotD",
"gml_GlobalScript_btn_click_EditCopySlotE","gml_Script_btn_click_EditCopySlotE","gml_GlobalScript_btn_click_TeamEditMore","gml_Script_btn_click_TeamEditMore","gml_GlobalScript_btn_click_TeamEditMoreDone","gml_Script_btn_click_TeamEditMoreDone","gml_GlobalScript_btn_click_FacilityStadium","gml_Script_btn_click_FacilityStadium","gml_GlobalScript_btn_click_FacilityTraining","gml_Script_btn_click_FacilityTraining","gml_GlobalScript_btn_click_FacilityStaff","gml_Script_btn_click_FacilityStaff","gml_GlobalScript_btn_click_HOF_players",
"gml_Script_btn_click_HOF_players","gml_GlobalScript_btn_click_HOF_player_records","gml_Script_btn_click_HOF_player_records","gml_GlobalScript_btn_click_HOF_Select","gml_Script_btn_click_HOF_Select","gml_GlobalScript_btn_click_HofNext","gml_Script_btn_click_HofNext","gml_GlobalScript_btn_click_HofPrev","gml_Script_btn_click_HofPrev","gml_GlobalScript_btn_click_HOF_Coach","gml_Script_btn_click_HOF_Coach","gml_GlobalScript_btn_click_Records_Reset","gml_Script_btn_click_Records_Reset","gml_GlobalScript_btn_click_League_Back",
"gml_Script_btn_click_League_Back","gml_GlobalScript_btn_click_LeaguePanel","gml_Script_btn_click_LeaguePanel","gml_GlobalScript_btn_click_LeagueNFC","gml_Script_btn_click_LeagueNFC","gml_GlobalScript_btn_click_LeagueAFC","gml_Script_btn_click_LeagueAFC","gml_GlobalScript_keyboard_scripts","gml_Script_s_keyboard_custom_enabled","gml_Script____struct___27_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts","gml_Script_s_keyboard_custom_init","gml_Script_s_keyboard_custom_show","gml_Script_s_keyboard_custom_hide",
"gml_Script_s_keyboard_custom_layer","gml_Script_s_keyboard_custom_create","gml_Script_s_keyboard_custom_destroy","gml_Script_s_keyboard_custom_create_button","gml_Script_s_custkb_base_draw_gui","gml_Script_s_custkb_base_step","gml_Script_s_custkb_confirm","gml_Script_s_custkb_delete","gml_Script_s_custkb_shift_toggle","gml_Script_s_custkb_add_text","gml_Script_s_custkb_key_init","gml_Script_s_custkb_key_draw_gui","gml_Script_s_custkb_key_step","gml_Script_s_custkb_key_tap","gml_GlobalScript_s_college_tools",
"gml_Script_s_college_set_up_globals","gml_Script_s_college_age_index","gml_Script_s_college_age_label","gml_Script_s_college_age_simple","gml_Script_s_college_age_simple_short","gml_Script_s_college_shorter_season","gml_Script_s_college_correct_new_player","gml_Script_s_get_random_hobby","gml_Script_s_get_hobby_name","gml_Script_s_get_hobby_from_uid","gml_Script_s_is_player_hobby_fraternity","gml_Script_s_get_random_trait","gml_Script_s_get_trait_name","gml_Script_s_get_trait_from_uid","gml_Script_s_get_random_study_subject",
"gml_Script_s_get_study_subject_from_uid","gml_Script_s_get_study_subject_name_from_uid","gml_Script_s_get_minor_name","gml_Script_s_get_major_name","gml_Script_s_get_study_info","gml_Script_s_get_random_hometown","gml_Script_s_get_hometown_name","gml_Script_s_get_hometown_from_uid","gml_Script_s_pick_rand_epilogue_uid","gml_Script_s_get_epilogue_name","gml_Script_s_epilogue_tests","gml_Script_s_pick_epilogue_story","gml_Script_s_epilogue_story_to_str","gml_Script_btn_response_player_meeting_academic_coaching",
"gml_Script_s_get_meeting_cost_academic_coaching","gml_Script_s_is_co_mode","gml_Script_s_is_co_real","gml_Script_s_co_real_version_text","gml_GlobalScript_btn_click_LeagueSchedule","gml_Script_btn_click_LeagueSchedule","gml_GlobalScript_btn_click_SchedulePrev","gml_Script_btn_click_SchedulePrev","gml_GlobalScript_btn_click_ScheduleNext","gml_Script_btn_click_ScheduleNext","gml_GlobalScript_btn_click_PlayOffs","gml_Script_btn_click_PlayOffs","gml_GlobalScript_btn_click_PlayOffs_Back","gml_Script_btn_click_PlayOffs_Back",
"gml_GlobalScript_btn_click_PlayOffsPlay","gml_Script_btn_click_PlayOffsPlay","gml_GlobalScript_btn_click_PlayOffsSkip","gml_Script_btn_click_PlayOffsSkip","gml_GlobalScript_btn_click_Change_Favourite","gml_Script_btn_click_Change_Favourite","gml_GlobalScript_btn_click_ChooseAFC","gml_Script_btn_click_ChooseAFC","gml_GlobalScript_btn_click_ChooseNFC","gml_Script_btn_click_ChooseNFC","gml_GlobalScript_btn_click_ChooseTeam","gml_Script_btn_click_ChooseTeam","gml_Script_btn_click_ChooseTeamExhibition",
"gml_GlobalScript_btn_click_ChooseTeamNew","gml_Script_btn_click_ChooseTeamNew","gml_Script_btn_click_qb_mode_ChooseTeamNew","gml_GlobalScript_btn_click_ChooseReject","gml_Script_btn_click_ChooseReject","gml_GlobalScript_btn_click_Continue","gml_Script_btn_click_Continue","gml_Script_btn_click_SimGame","gml_GlobalScript_btn_click_Details_Continue","gml_Script_btn_click_Details_Continue","gml_GlobalScript_s_uniform_helpers","gml_Script_s_uniforms_default_file","gml_Script_s_extract_uniform_cols_to_record",
"gml_Script_s_uniform_cols_to_record","gml_Script_s_uniform_cols_from_record","gml_GlobalScript_btn_click_FrontOffice","gml_Script_btn_click_FrontOffice","gml_GlobalScript_btn_click_FreeAgents2","gml_Script_btn_click_FreeAgents2","gml_GlobalScript_btn_click_HallOfFame","gml_Script_btn_click_HallOfFame","gml_GlobalScript_btn_click_Home","gml_Script_btn_click_Home","gml_Script_btn_click_Options_Exit","gml_GlobalScript_btn_click_League","gml_Script_btn_click_League","gml_GlobalScript_btn_click_Options",
"gml_Script_btn_click_Options","gml_GlobalScript_btn_click_Profile","gml_Script_btn_click_Profile","gml_GlobalScript_btn_click_ChooseFace","gml_Script_btn_click_ChooseFace","gml_Script_s_goto_rm_choose_face","gml_GlobalScript_btn_click_ChooseFacePrev","gml_Script_btn_click_ChooseFacePrev","gml_GlobalScript_btn_click_ChooseFaceNext","gml_Script_btn_click_ChooseFaceNext","gml_GlobalScript_btn_click_ChooseFaceDone","gml_Script_btn_click_ChooseFaceDone","gml_Script_btn_click_cancel_chooseface","gml_GlobalScript_btn_click_Uniforms",
"gml_Script_btn_click_Uniforms","gml_GlobalScript_btn_click_Uniform_Away","gml_Script_btn_click_Uniform_Away","gml_GlobalScript_btn_click_Uniform_Home","gml_Script_btn_click_Uniform_Home","gml_GlobalScript__poki_rewarded_ad","gml_Script__poki_rewarded_ad","gml_GlobalScript_btn_click_BallStyle","gml_Script_btn_click_BallStyle","gml_GlobalScript_btn_click_LeagueReportNext","gml_Script_btn_click_LeagueReportNext","gml_GlobalScript_btn_click_LeagueReportPrev","gml_Script_btn_click_LeagueReportPrev",
"gml_GlobalScript_btn_click_OptionsNewGame","gml_Script_btn_click_OptionsNewGame","gml_GlobalScript_btn_click_OptionsDriveLeft","gml_Script_btn_click_OptionsDriveLeft","gml_Script_btn_click_OptionsDriveLeft_Exh","gml_GlobalScript_btn_click_OptionsDriveRight","gml_Script_btn_click_OptionsDriveRight","gml_GlobalScript_btn_click_OptionsDriveBoth","gml_Script_btn_click_OptionsDriveBoth","gml_GlobalScript_btn_click_OptionsScanlines","gml_Script_btn_click_OptionsScanlines","gml_GlobalScript_btn_click_OptionsSoundFX",
"gml_Script_btn_click_OptionsSoundFX","gml_GlobalScript_btn_click_OptionsWeather","gml_Script_btn_click_OptionsWeather","gml_Script_btn_click_OptionsWeather_Exh","gml_GlobalScript_btn_click_OptionsReplays","gml_Script_btn_click_OptionsReplays","gml_GlobalScript_btn_click_OptionsZoom","gml_Script_btn_click_OptionsZoom","gml_GlobalScript_btn_click_InvertedThrowing","gml_Script_btn_click_InvertedThrowing","gml_GlobalScript_btn_click_OptionsMatchLength","gml_Script_btn_click_OptionsMatchLength","gml_Script_btn_click_OptionsMatchLength_Exh",
"gml_GlobalScript_btn_click_OptionsTeamEditor","gml_Script_btn_click_OptionsTeamEditor","gml_GlobalScript_btn_click_OptionsDifficulty","gml_Script_btn_click_OptionsDifficulty","gml_GlobalScript_btn_click_OptionsSalaryCap","gml_Script_btn_click_OptionsSalaryCap","gml_Script_salary_cap_toggle_roster_size","gml_GlobalScript_chk_click_gamepad","gml_Script_chk_click_gamepad","gml_GlobalScript_btn_click_PlayerProfile","gml_Script_btn_click_PlayerProfile","gml_GlobalScript_btn_click_PlayerProfile_Back",
"gml_Script_btn_click_PlayerProfile_Back","gml_GlobalScript_btn_click_ProfilePrev","gml_Script_btn_click_ProfilePrev","gml_GlobalScript_btn_click_MeetingPrev","gml_Script_btn_click_MeetingPrev","gml_GlobalScript_btn_click_ProfileNext","gml_Script_btn_click_ProfileNext","gml_GlobalScript_btn_click_MeetingNext","gml_Script_btn_click_MeetingNext","gml_GlobalScript_btn_click_Profile_Back","gml_Script_btn_click_Profile_Back","gml_GlobalScript_btn_click_Profile_Pick","gml_Script_btn_click_Profile_Pick",
"gml_GlobalScript_btn_click_Profile_Cut","gml_Script_btn_click_Profile_Cut","gml_Script_btn_click_Profile_JefeBoost","gml_Script_s_JefeBoost","gml_GlobalScript_btn_click_Profile_Trade","gml_Script_btn_click_Profile_Trade","gml_GlobalScript_btn_click_Profile_Stats","gml_Script_btn_click_Profile_Stats","gml_GlobalScript_btn_click_Profile_Rest","gml_Script_btn_click_Profile_Rest","gml_GlobalScript_btn_click_Profile_Not_Interested","gml_Script_btn_click_Profile_Not_Interested","gml_GlobalScript_btn_click_Profile_ScoutPlayer",
"gml_Script_btn_click_Profile_ScoutPlayer","gml_GlobalScript_btn_click_AddSkill","gml_Script_btn_click_AddSkill","gml_GlobalScript_btn_click_AddSpeed","gml_Script_btn_click_AddSpeed","gml_GlobalScript_btn_click_AddStrength","gml_Script_btn_click_AddStrength","gml_GlobalScript_btn_click_AddStamina","gml_Script_btn_click_AddStamina","gml_GlobalScript_btn_click_StatsNext","gml_Script_btn_click_StatsNext","gml_GlobalScript_btn_click_StatsPrev","gml_Script_btn_click_StatsPrev","gml_GlobalScript_btn_click_StatsView1",
"gml_Script_btn_click_StatsView1","gml_GlobalScript_btn_click_StatsView2","gml_Script_btn_click_StatsView2","gml_GlobalScript_btn_click_EditProfile","gml_Script_btn_click_EditProfile","gml_GlobalScript_btn_click_Meeting_Morale","gml_Script_btn_click_Meeting_Morale","gml_GlobalScript_btn_click_Meeting_Condition","gml_Script_btn_click_Meeting_Condition","gml_GlobalScript_s_qb_mode_update_resting","gml_Script_s_qb_mode_update_resting","gml_GlobalScript_btn_click_Meeting_LevelUp","gml_Script_btn_click_Meeting_LevelUp",
"gml_GlobalScript_btn_click_Meeting_ExtendContract","gml_Script_btn_click_Meeting_ExtendContract","gml_GlobalScript_btn_click_FieldGoal","gml_Script_btn_click_FieldGoal","gml_GlobalScript_btn_click_Running","gml_Script_btn_click_Running","gml_GlobalScript_btn_click_Passing","gml_Script_btn_click_Passing","gml_GlobalScript_s_get_happiness","gml_Script_s_get_happiness","gml_GlobalScript_btn_click_Training","gml_Script_btn_click_Training","gml_GlobalScript_btn_click_Roster","gml_Script_btn_click_Roster",
"gml_GlobalScript_btn_click_Roster_Back","gml_Script_btn_click_Roster_Back","gml_Script_btn_click_Profile_Back_To_Draft","gml_Script_btn_click_Profile_Back_To_Draft_Continue","gml_GlobalScript_btn_click_DraftPrev","gml_Script_btn_click_DraftPrev","gml_GlobalScript_btn_click_DraftNext","gml_Script_btn_click_DraftNext","gml_GlobalScript_btn_click_DraftDone","gml_Script_btn_click_DraftDone","gml_GlobalScript_btn_click_FreeAgents","gml_Script_btn_click_FreeAgents","gml_GlobalScript_btn_click_FreeAgentsBack",
"gml_Script_btn_click_FreeAgentsBack","gml_GlobalScript_btn_click_RestAll","gml_Script_btn_click_RestAll","gml_GlobalScript_btn_click_FreeAgentsNext","gml_Script_btn_click_FreeAgentsNext","gml_GlobalScript_btn_click_FreeAgentsPrev","gml_Script_btn_click_FreeAgentsPrev","gml_GlobalScript_btn_click_FreeAgentsReset","gml_Script_btn_click_FreeAgentsReset","gml_GlobalScript_btn_click_Boost_Morale","gml_Script_btn_click_Boost_Morale","gml_GlobalScript_btn_click_Boost_Condition","gml_Script_btn_click_Boost_Condition",
"gml_GlobalScript_btn_click_Boost_Salary_Cap","gml_Script_btn_click_Boost_Salary_Cap","gml_GlobalScript_btn_click_LoadSlot1","gml_Script_btn_click_LoadSlot1","gml_GlobalScript_btn_click_LoadSlot2","gml_Script_btn_click_LoadSlot2","gml_GlobalScript_s_set_up_button_kickoff","gml_Script_s_set_up_button_kickoff","gml_Script_btn_kick_off","gml_Script_s_btn_kickoff_recenter","gml_GlobalScript_btn_click_LoadSlot3","gml_Script_btn_click_LoadSlot3","gml_GlobalScript_btn_click_LoadSlot4","gml_Script_btn_click_LoadSlot4",
"gml_GlobalScript_btn_click_LoadSlot5","gml_Script_btn_click_LoadSlot5","gml_GlobalScript_btn_click_DeleteSlot1","gml_Script_btn_click_DeleteSlot1","gml_GlobalScript_btn_click_DeleteSlot2","gml_Script_btn_click_DeleteSlot2","gml_GlobalScript_btn_click_DeleteSlot3","gml_Script_btn_click_DeleteSlot3","gml_GlobalScript_btn_click_DeleteSlot4","gml_Script_btn_click_DeleteSlot4","gml_GlobalScript_btn_click_DeleteSlot5","gml_Script_btn_click_DeleteSlot5","gml_GlobalScript_btn_click_StaffProfile","gml_Script_btn_click_StaffProfile",
"gml_GlobalScript_btn_click_StaffProfileNext","gml_Script_btn_click_StaffProfileNext","gml_GlobalScript_s_draw_gamepad_controls","gml_Script_s_draw_gamepad_controls","gml_GlobalScript_s_team_helpers","gml_Script_s_teams_file","gml_GlobalScript_btn_click_StaffProfilePrev","gml_Script_btn_click_StaffProfilePrev","gml_GlobalScript_btn_click_StaffProfileBack","gml_Script_btn_click_StaffProfileBack","gml_GlobalScript_btn_click_HireStaff","gml_Script_btn_click_HireStaff","gml_GlobalScript_btn_click_ViewHires",
"gml_Script_btn_click_ViewHires","gml_GlobalScript_btn_click_ViewHiresProfile","gml_Script_btn_click_ViewHiresProfile","gml_GlobalScript_btn_click_ViewHiresBack","gml_Script_btn_click_ViewHiresBack","gml_GlobalScript_btn_click_ViewHiresReset","gml_Script_btn_click_ViewHiresReset","gml_GlobalScript_btn_click_TrainingLight","gml_Script_btn_click_TrainingLight","gml_GlobalScript_btn_click_TrainingNormal","gml_Script_btn_click_TrainingNormal","gml_GlobalScript_btn_click_TrainingHard","gml_Script_btn_click_TrainingHard",
"gml_GlobalScript_btn_click_XP_Continue","gml_Script_btn_click_XP_Continue","gml_GlobalScript_btn_click_XP_Back","gml_Script_btn_click_XP_Back","gml_GlobalScript_btn_response_quit_yes","gml_Script_btn_response_quit_yes","gml_GlobalScript_btn_response_newgame_commit","gml_Script_btn_response_newgame_commit","gml_GlobalScript_btn_response_kick_no","gml_Script_btn_response_kick_no","gml_GlobalScript_btn_response_punt_yes","gml_Script_btn_response_punt_yes","gml_GlobalScript_btn_response_fg_yes","gml_Script_btn_response_fg_yes",
"gml_GlobalScript_btn_response_1pt","gml_Script_btn_response_1pt","gml_GlobalScript_btn_response_2pt","gml_Script_btn_response_2pt","gml_GlobalScript_btn_response_onsidekick_no","gml_Script_btn_response_onsidekick_no","gml_GlobalScript_btn_response_onsidekick_yes","gml_Script_btn_response_onsidekick_yes","gml_GlobalScript_btn_response_cut_player_yes","gml_Script_btn_response_cut_player_yes","gml_GlobalScript_btn_response_skip_draft_yes","gml_Script_btn_response_skip_draft_yes","gml_GlobalScript_btn_response_pick_player_yes",
"gml_Script_btn_response_pick_player_yes","gml_GlobalScript_btn_click_OptionsKickReturns","gml_Script_btn_click_OptionsKickReturns","gml_Script_btn_click_OptionsKickReturns_Exh","gml_GlobalScript_btn_response_in_trade_player_yes","gml_Script_btn_response_in_trade_player_yes","gml_GlobalScript_btn_response_out_trade_player_yes","gml_Script_btn_response_out_trade_player_yes","gml_GlobalScript_btn_response_out_trade_player_no","gml_Script_btn_response_out_trade_player_no","gml_GlobalScript_btn_response_player_meeting_morale_yes",
"gml_Script_btn_response_player_meeting_morale_yes","gml_GlobalScript_btn_response_player_meeting_condition_yes","gml_Script_btn_response_player_meeting_condition_yes","gml_GlobalScript_btn_response_player_meeting_levelup_yes","gml_Script_btn_response_player_meeting_levelup_yes","gml_GlobalScript_btn_response_player_meeting_extend_contract","gml_Script_btn_response_player_meeting_extend_contract","gml_GlobalScript_btn_response_boost_morale","gml_Script_btn_response_boost_morale","gml_GlobalScript_btn_response_boost_condition",
"gml_Script_btn_response_boost_condition","gml_GlobalScript_btn_response_boost_salary_cap","gml_Script_btn_response_boost_salary_cap","gml_GlobalScript_s_confirm_upgrade_stadium","gml_Script_s_confirm_upgrade_stadium","gml_GlobalScript_s_confirm_upgrade_training","gml_Script_s_confirm_upgrade_training","gml_GlobalScript_s_confirm_upgrade_rehab","gml_Script_s_confirm_upgrade_rehab","gml_GlobalScript_btn_response_hirestaff","gml_Script_btn_response_hirestaff","gml_GlobalScript_btn_response_clearfreeagents",
"gml_Script_btn_response_clearfreeagents","gml_GlobalScript_btn_response_rest_player_yes","gml_Script_btn_response_rest_player_yes","gml_GlobalScript_btn_response_cointoss_kick","gml_Script_btn_response_cointoss_kick","gml_GlobalScript_btn_response_cointoss_receive","gml_Script_btn_response_cointoss_receive","gml_GlobalScript_btn_response_skip_tutorial","gml_Script_btn_response_skip_tutorial","gml_GlobalScript_btn_response_confirm_new_team","gml_Script_btn_response_confirm_new_team","gml_GlobalScript_s_store_cant_afford",
"gml_Script_s_store_cant_afford","gml_GlobalScript_s_tip_continue","gml_Script_s_tip_continue","gml_GlobalScript_s_qb_mode_auto_xp","gml_Script_s_qb_mode_auto_xp","gml_GlobalScript_s_confirm_staff_hire_reset","gml_Script_s_confirm_staff_hire_reset","gml_GlobalScript_s_confirm_freeagent_hire_reset","gml_Script_s_confirm_freeagent_hire_reset","gml_GlobalScript_btn_response_deletegame1","gml_Script_btn_response_deletegame1","gml_GlobalScript_btn_response_deletegame2","gml_Script_btn_response_deletegame2",
"gml_GlobalScript_btn_response_deletegame3","gml_Script_btn_response_deletegame3","gml_GlobalScript_btn_response_deletegame4","gml_Script_btn_response_deletegame4","gml_GlobalScript_btn_response_deletegame5","gml_Script_btn_response_deletegame5","gml_GlobalScript_s_simming_action","gml_Script_s_simming_action","gml_GlobalScript_btn_response_hof_select","gml_Script_btn_response_hof_select","gml_GlobalScript_btn_response_records_reset","gml_Script_btn_response_records_reset","gml_GlobalScript_btn_match_kick",
"gml_Script_btn_match_kick","gml_Script_btn_match_goforit","gml_Script_btn_match_gofor1pt","gml_GlobalScript_s_do_prematch_dilemma","gml_Script_s_do_prematch_dilemma","gml_Script_s_create_dilemma_news","gml_Script_s_clear_msg_and_back","gml_Script_s_get_standard_dilemmas","gml_Script_s_get_college_dilemmas","gml_GlobalScript_s_do_postmatch_dilemma","gml_Script_s_do_postmatch_dilemma","gml_GlobalScript_s_parse_dilemma","gml_Script_s_parse_dilemma","gml_GlobalScript_s_create_dilemma","gml_Script_s_create_dilemma",
"gml_GlobalScript_s_choose_dilemma","gml_Script_s_choose_dilemma","gml_Script_s_extract_dilemma_from_pool","gml_Script_s_add_to_choose_dilemma_list","gml_Script_s_reject_dilemma_not_enough_RC","gml_GlobalScript_s_dilemma_choice_1","gml_Script_s_dilemma_choice_1","gml_GlobalScript_s_dilemma_choice_2","gml_Script_s_dilemma_choice_2","gml_GlobalScript_s_dilemma_choice","gml_Script_s_dilemma_choice","gml_Script_s_cut_player_end","gml_Script_s_cut_player_end_gpa","gml_Script_s_cut_player_end_toxic","gml_Script_s_cut_player_end_party",
"gml_Script_s_cut_player_end_toxic_max","gml_Script_s_cut_player_end_party_max","gml_Script_s_dilemma_morecc_store","gml_Script_s_dilemma_morecc_back","gml_Script_s_dilemma_end","gml_Script_s_dilemma_college_check_chained","gml_GlobalScript_s_convert_string_to_sprite","gml_Script_s_convert_string_to_sprite","gml_GlobalScript_s_sort_list_by_column","gml_Script_s_sort_maplist_by_numeric_field","gml_GlobalScript_s_check_draft","gml_Script_s_check_draft","gml_GlobalScript_s_create_draftlist","gml_Script_s_create_draftlist",
"gml_GlobalScript_s_sound_audience_tck","gml_Script_s_sound_audience_tck","gml_GlobalScript_s_create_freeagentlist","gml_Script_s_create_freeagentlist","gml_GlobalScript_s_create_freeagent","gml_Script_s_create_freeagent","gml_GlobalScript_s_create_tradelist","gml_Script_s_create_tradelist","gml_GlobalScript_s_create_storelist","gml_Script_s_create_storelist","gml_GlobalScript_s_create_player_storelist","gml_Script_s_create_player_storelist","gml_GlobalScript_s_count_hires_by_position","gml_Script_s_count_hires_by_position",
"gml_GlobalScript_s_count_players_by_position_store","gml_Script_s_count_players_by_position_store","gml_GlobalScript_s_get_hire_shortlist","gml_Script_s_get_hire_shortlist","gml_GlobalScript_s_reset_draft_picks","gml_Script_s_reset_draft_picks","gml_GlobalScript_poki_btn_click_CoinBoost","gml_Script_poki_btn_click_CoinBoost","gml_Script_poki_CoinBoost_No","gml_Script_poki_CoinBoost_Yes","gml_GlobalScript_s_update_draft_page","gml_Script_s_update_draft_page","gml_GlobalScript_s_update_freeagents_page",
"gml_Script_s_update_freeagents_page","gml_GlobalScript_s_college_admissions_draft","gml_Script_s_check_draft_CO","gml_Script_s_college_free_agent_check","gml_Script_btn_respose_college_free_agent_yes","gml_Script_s_college_dilemma_check","gml_Script_s_college_admissions_check_trigger","gml_Script_s_college_admissions_pick_player","gml_Script_s_college_admissions_players_lost_per_round","gml_Script_s_college_admissions_draft_done","gml_Script_btn_response_college_admissions_draft_done_yes","gml_GlobalScript_s_remaining_picks",
"gml_Script_s_remaining_picks","gml_GlobalScript_s_remaining_picks_by_round","gml_Script_s_remaining_picks_by_round","gml_GlobalScript_s_get_trade_value","gml_Script_s_get_trade_value","gml_GlobalScript_s_get_trade_value_by_rating","gml_Script_s_get_trade_value_by_rating","gml_GlobalScript_s_get_offer_team","gml_Script_s_get_offer_team","gml_GlobalScript_s_clear_trade_offers","gml_Script_s_clear_trade_offers","gml_GlobalScript_s_clear_freeagents","gml_Script_s_clear_freeagents","gml_GlobalScript_s_clear_storelist",
"gml_Script_s_clear_storelist","gml_GlobalScript_s_end_draft_round","gml_Script_s_end_draft_round","gml_Script_s_destroy_draftlist","gml_GlobalScript_s_received_AI_kickoff","gml_Script_s_received_AI_kickoff","gml_GlobalScript_s_update_contracts","gml_Script_s_update_contracts","gml_Script_s_check_staff_exist","gml_GlobalScript_s_aim_AI_kickoff","gml_Script_s_aim_AI_kickoff","gml_GlobalScript_btn_click_SeasonReview","gml_Script_btn_click_SeasonReview","gml_GlobalScript_s_get_new_salary","gml_Script_s_get_new_salary",
"gml_GlobalScript_s_check_expired_contract_message","gml_Script_s_check_expired_contract_message","gml_GlobalScript_s_get_salary_cap_space","gml_Script_s_get_salary_cap_space","gml_GlobalScript_s_create_new_save","gml_Script_s_create_new_save","gml_Script_s_regen_clean_save_mode_dependent_data","gml_Script_s_load_co_mode_files","gml_GlobalScript_s_loadgame","gml_Script_s_loadgame","gml_Script_s_is_player_pmap_corrupt","gml_Script_s_check_for_return_stats","gml_Script_s_check_longest_records","gml_Script_s_update_ui_colours",
"gml_Script_s_update_game_title","gml_GlobalScript_s_savegame","gml_Script_s_savegame","gml_GlobalScript_s_create_map_options","gml_Script_s_create_map_options","gml_GlobalScript_s_count_full_seasons","gml_Script_s_count_full_seasons","gml_Script_s_count_games_coached","gml_Script_s_count_games_simmed","gml_Script_s_count_fixtures_played","gml_GlobalScript_s_load_options","gml_Script_s_load_options","gml_GlobalScript_s_save_options","gml_Script_s_save_options","gml_GlobalScript_s_save_backup","gml_Script_s_save_backup",
"gml_GlobalScript_s_load_map_file","gml_Script_s_load_map_file","gml_GlobalScript_s_update_maplist_from_file","gml_Script_s_update_maplist_from_file","gml_GlobalScript_s_load_strings","gml_Script_s_refresh_strings","gml_Script_s_load_strings","gml_Script_s_select_lang","gml_Script_s_select_lang_file","gml_Script_s_select_override_lang_file","gml_Script_s_add_file_to_lang_strings","gml_GlobalScript_s_load_teams","gml_Script_s_load_teams","gml_GlobalScript_s_load_team_detail","gml_Script_s_load_team_detail",
"gml_GlobalScript_s_load_retrobowl_hof","gml_Script_s_load_retrobowl_hof","gml_GlobalScript_s_load_retrobowl_history","gml_Script_s_load_retrobowl_history","gml_GlobalScript_s_load_schedule","gml_Script_s_load_schedule","gml_GlobalScript_s_get_savename","gml_Script_s_get_savename","gml_GlobalScript_s_get_string_save_details","gml_Script_s_get_string_save_details","gml_GlobalScript_s_destroy_master","gml_Script_s_destroy_master","gml_GlobalScript_s_save_uniform_file2","gml_Script_s_save_uniform_file2",
"gml_GlobalScript_s_load_uniform_file2","gml_Script_s_load_uniform_file2","gml_GlobalScript_s_load_teamname_from_uniform_file","gml_Script_s_load_teamname_from_uniform_file","gml_GlobalScript_s_load_endzone_from_uniform_file","gml_Script_s_load_endzone_from_uniform_file","gml_GlobalScript_s_create_my_fixture_list","gml_Script_s_create_my_fixture_list","gml_GlobalScript_s_create_fixdata","gml_Script_s_create_fixdata","gml_GlobalScript_s_do_schedule","gml_Script_s_do_schedule","gml_GlobalScript_s_create_playoffs",
"gml_Script_s_create_playoffs","gml_GlobalScript_s_create_playoffs2","gml_Script_s_create_playoffs2","gml_GlobalScript_s_playoffs_12","gml_Script_s_playoffs_12","gml_GlobalScript_s_get_week_superbowl","gml_Script_s_get_week_superbowl","gml_GlobalScript_s_do_playoff_schedule","gml_Script_s_do_playoff_schedule","gml_Script_s_get_retrobowl_mvp_winner","gml_GlobalScript_s_get_random_scoredata","gml_Script_s_get_random_scoredata","gml_GlobalScript_s_promote_playoff_winner","gml_Script_s_promote_playoff_winner",
"gml_Script_s_seed_divisional_round","gml_GlobalScript_s_add_to_human_fixtures","gml_Script_s_add_to_human_fixtures","gml_GlobalScript_s_update_human_playoff_fixtures","gml_Script_s_update_human_playoff_fixtures","gml_Script_s_check_rearranged_human_playoff","gml_Script_s_update_human_fixtures","gml_GlobalScript_s_get_playoff_fixture_by_week","gml_Script_s_get_playoff_fixture_by_week","gml_GlobalScript_s_get_human_fixture_by_week","gml_Script_s_get_human_fixture_by_week","gml_GlobalScript_s_get_human_fixture_previous",
"gml_Script_s_get_human_fixture_previous","gml_GlobalScript_exhibition_scripts","gml_Script_btn_click_exhibition_start","gml_Script_btn_click_exhibition_exit","gml_Script_s_set_up_uniforms_exhibition","gml_Script_s_create_exhibition_fixture","gml_Script_btn_click_exhibition_controller_0","gml_Script_btn_click_exhibition_controller_1","gml_Script_s_update_exhibition_controllers","gml_Script_btn_click_ChangeTeamAway","gml_Script_btn_click_ChangeTeamHome","gml_Script_btn_click_Exhibition_Play","gml_Script_s_update_options_exh",
"gml_Script_s_force_kick_direction","gml_Script_s_count_audibles","gml_Script_s_update_audibles","gml_Script_s_set_audibles","gml_Script_s_count_timeouts","gml_Script_s_update_timeouts","gml_Script_s_set_timeouts","gml_GlobalScript_s_get_human_fixture_next","gml_Script_s_get_human_fixture_next","gml_GlobalScript_s_count_remaining_fixtures","gml_Script_s_count_remaining_fixtures","gml_GlobalScript_s_get_division_winner","gml_Script_s_get_division_winner","gml_GlobalScript_s_get_team_position_by_id",
"gml_Script_s_get_team_position_by_id","gml_GlobalScript_s_get_division_winner_name","gml_Script_s_get_division_winner_name","gml_GlobalScript_s_get_division_winner_by_seed","gml_Script_s_get_division_winner_by_seed","gml_GlobalScript_s_get_division_winner_name_by_seed","gml_Script_s_get_division_winner_name_by_seed","gml_GlobalScript_s_skip_to_week","gml_Script_s_skip_to_week","gml_GlobalScript_s_clear_playoff_fixtures","gml_Script_s_clear_playoff_fixtures","gml_GlobalScript_s_update_team_edit_buttons",
"gml_Script_s_update_team_edit_buttons","gml_GlobalScript_s_set_up_edit_screen","gml_Script_s_set_up_edit_screen","gml_GlobalScript_s_color_picker","gml_Script_s_color_picker","gml_GlobalScript_s_set_up_uniforms","gml_Script_s_set_up_uniforms","gml_GlobalScript_s_set_up_uniforms_training","gml_Script_s_set_up_uniforms_training","gml_GlobalScript_s_set_up_uniform_profile","gml_Script_s_set_up_uniform_profile","gml_GlobalScript_s_shader_get_uniforms","gml_Script_s_shader_get_uniforms","gml_GlobalScript_s_shader_set_uniforms",
"gml_Script_s_shader_set_uniforms","gml_GlobalScript_s_convert_uniform_colours_all","gml_Script_s_convert_uniform_colours_all","gml_GlobalScript_s_convert_uniform_colour","gml_Script_s_convert_uniform_colour","gml_GlobalScript_s_restore_uniforms_all","gml_Script_s_restore_uniforms_all","gml_GlobalScript_s_copy_uniforms_slot_a","gml_Script_s_copy_uniforms_slot_a","gml_GlobalScript_s_copy_uniforms_slot_b","gml_Script_s_copy_uniforms_slot_b","gml_GlobalScript_s_copy_uniforms_slot_c","gml_Script_s_copy_uniforms_slot_c",
"gml_GlobalScript_s_copy_uniforms_slot_d","gml_Script_s_copy_uniforms_slot_d","gml_GlobalScript_s_set_up_kickoff","gml_Script_s_set_up_kickoff","gml_GlobalScript_s_copy_uniforms_slot_e","gml_Script_s_copy_uniforms_slot_e","gml_GlobalScript_s_update_uniform_name","gml_Script_s_update_uniform_name","gml_GlobalScript_s_copy_teamnames_from_uniform_file","gml_Script_s_copy_teamnames_from_uniform_file","gml_GlobalScript_s_edit_name","gml_Script_s_edit_name","gml_GlobalScript_btn_click_edit_div1","gml_Script_btn_click_edit_div1",
"gml_GlobalScript_btn_click_edit_div2","gml_Script_btn_click_edit_div2","gml_GlobalScript_btn_click_edit_div3","gml_Script_btn_click_edit_div3","gml_GlobalScript_btn_click_edit_div4","gml_Script_btn_click_edit_div4","gml_GlobalScript_btn_click_edit_conf1","gml_Script_btn_click_edit_conf1","gml_GlobalScript_btn_click_edit_conf2","gml_Script_btn_click_edit_conf2","gml_GlobalScript_s_edit_confirm_div1","gml_Script_s_edit_confirm_div1","gml_GlobalScript_s_edit_confirm_div2","gml_Script_s_edit_confirm_div2",
"gml_GlobalScript_s_edit_confirm_div3","gml_Script_s_edit_confirm_div3","gml_GlobalScript_s_edit_confirm_div4","gml_Script_s_edit_confirm_div4","gml_GlobalScript_s_edit_confirm_conf1","gml_Script_s_edit_confirm_conf1","gml_GlobalScript_s_edit_confirm_conf2","gml_Script_s_edit_confirm_conf2","gml_GlobalScript_s_populate_division","gml_Script_s_populate_division","gml_GlobalScript_s_populate_schedulebox","gml_Script_s_populate_schedulebox","gml_GlobalScript_s_create_credit","gml_Script_s_create_credit",
"gml_GlobalScript_s_set_up_xp_headers","gml_Script_s_set_up_xp_headers","gml_GlobalScript_s_count_hof_entries","gml_Script_s_count_hof_entries","gml_GlobalScript_s_set_up_hof_players_screen","gml_Script_s_set_up_hof_players_screen","gml_GlobalScript_s_iap_init","gml_Script_s_iap_init","gml_GlobalScript_s_set_up_purchase_ids","gml_Script_s_set_up_purchase_ids","gml_GlobalScript_s_iap_async_android","gml_Script_s_iap_async_android","gml_GlobalScript_s_iap_async_ios","gml_Script_s_iap_async_ios","gml_GlobalScript_s_iap_purchase_FullVersion",
"gml_Script_s_iap_purchase_FullVersion","gml_GlobalScript_s_set_position_kickoff","gml_Script_s_set_position_return_ko","gml_Script_s_set_position_take_ko","gml_GlobalScript_s_iap_purchase_Credits_20","gml_Script_s_iap_purchase_Credits_20","gml_GlobalScript_s_iap_purchase_Credits_50","gml_Script_s_iap_purchase_Credits_50","gml_GlobalScript_s_iap_purchase_Credits_100","gml_Script_s_iap_purchase_Credits_100","gml_GlobalScript_s_iap_purchase_Credits_250","gml_Script_s_iap_purchase_Credits_250","gml_GlobalScript_s_iap_restore",
"gml_Script_s_iap_restore","gml_GlobalScript_s_open_store","gml_Script_s_open_store","gml_Script_s_btn_store_exit","gml_GlobalScript_s_open_store_nag","gml_Script_s_open_store_nag","gml_GlobalScript_s_do_nag_message","gml_Script_s_do_nag_message","gml_Script_s_do_ad_retrogoal","gml_GlobalScript_s_do_purchase_message","gml_Script_s_do_purchase_message","gml_GlobalScript_btn_step_check_fullversion","gml_Script_btn_step_check_fullversion","gml_GlobalScript_btn_step_check_iaps","gml_Script_btn_step_check_iaps",
"gml_GlobalScript_s_freeze_purchase_buttons","gml_Script_s_freeze_purchase_buttons","gml_GlobalScript_s_unfreeze_purchase_buttons","gml_Script_s_unfreeze_purchase_buttons","gml_GlobalScript_s_do_info_position","gml_Script_s_do_info_position","gml_GlobalScript_s_do_info_skills","gml_Script_s_do_info_skills","gml_GlobalScript_s_do_info_coachtrait","gml_Script_s_do_info_coachtrait","gml_GlobalScript_s_do_info_draftpicks","gml_Script_s_do_info_draftpicks","gml_GlobalScript_s_do_info","gml_Script_s_do_info",
"gml_GlobalScript_s_create_camera","gml_Script_s_create_camera","gml_GlobalScript_s_play","gml_Script_s_play","gml_GlobalScript_s_update_poki_scaling","gml_Script_s_update_poki_scaling","gml_GlobalScript_s_pre_match","gml_Script_s_pre_match","gml_Script_s_continue_time_for_draft_msg","gml_GlobalScript_s_player_profile_qb_mode","gml_Script_s_player_profile_qb_mode","gml_GlobalScript_s_do_next_week","gml_Script_s_do_next_week","gml_GlobalScript_s_start_new_season","gml_Script_s_start_new_season","gml_Script_s_renew_contracts_qb_mode",
"gml_GlobalScript_s_update_team_buttons","gml_Script_s_update_team_buttons","gml_GlobalScript_s_update_job_offer_buttons","gml_Script_s_update_job_offer_buttons","gml_GlobalScript_s_update_options","gml_Script_s_update_options","gml_GlobalScript_s_get_attitude_icon","gml_Script_s_get_attitude_icon","gml_Script_s_attitude_reduce_step","gml_GlobalScript_s_get_credit","gml_Script_s_get_credit","gml_GlobalScript_s_decline_facilities","gml_Script_s_decline_facilities","gml_GlobalScript_s_do_result_news_qb",
"gml_Script_s_do_result_news_qb","gml_Script_s_choose_news","gml_GlobalScript_s_reset_player_meetings","gml_Script_s_reset_player_meetings","gml_GlobalScript_s_has_xp_gain","gml_Script_s_has_xp_gain","gml_GlobalScript_s_is_bye_week","gml_Script_s_is_bye_week","gml_Script_s_get_bye_week","gml_GlobalScript_s_do_bye_week","gml_Script_s_do_bye_week","gml_GlobalScript_s_do_postmatch_effects","gml_Script_s_do_postmatch_effects","gml_GlobalScript_s_do_postmatch_fans","gml_Script_s_do_postmatch_fans","gml_Script_s_get_postmatch_fans_qb",
"gml_GlobalScript_s_check_intro","gml_Script_s_check_intro","gml_GlobalScript_s_do_result_news","gml_Script_s_do_result_news","gml_GlobalScript_s_count_joboffers","gml_Script_s_count_joboffers","gml_GlobalScript_s_refresh_save_slots","gml_Script_s_refresh_save_slots","gml_GlobalScript_s_show_backups","gml_Script_s_show_backups","gml_Script_s_restore_backup1","gml_Script_s_restore_backup2","gml_Script_s_restore_backup3","gml_Script_s_restore_backup4","gml_Script_s_restore_backup5","gml_GlobalScript_s_team_interested",
"gml_Script_s_team_interested","gml_Script_s_qb_mode_team_interested","gml_GlobalScript_s_update_history","gml_Script_s_update_history","gml_GlobalScript_s_update_history_finish","gml_Script_s_update_history_finish","gml_GlobalScript_age_scripts","gml_Script_s_rookie_age_internal","gml_Script_s_max_age_player_internal","gml_Script_s_max_age_qb_internal","gml_Script_s_get_max_age","gml_GlobalScript_s_update_history_playoffs","gml_Script_s_update_history_playoffs","gml_GlobalScript_s_get_history_by_year",
"gml_Script_s_get_history_by_year","gml_GlobalScript_s_update_music","gml_Script_s_update_music","gml_GlobalScript_s_get_ticker_text","gml_Script_s_get_ticker_text","gml_GlobalScript_s_choose_random_face_for_me","gml_Script_s_choose_random_face_for_me","gml_GlobalScript_s_get_kick_direction","gml_Script_s_get_kick_direction","gml_GlobalScript_s_aiming","gml_Script_s_aiming","gml_GlobalScript_s_update_ball","gml_Script_s_update_ball","gml_GlobalScript_s_do_touchback","gml_Script_s_do_touchback","gml_GlobalScript_s_update_ball_fieldgoal",
"gml_Script_s_update_ball_fieldgoal","gml_GlobalScript_s_update_ball_movement","gml_Script_s_update_ball_movement","gml_GlobalScript_s_update_ball_offset","gml_Script_s_update_ball_offset","gml_GlobalScript_s_is_ball_dead","gml_Script_s_is_ball_dead","gml_GlobalScript_s_check_ball_position","gml_Script_s_check_ball_position","gml_GlobalScript_s_check_ball_collision","gml_Script_s_check_ball_collision","gml_GlobalScript_s_check_tipped","gml_Script_s_check_tipped","gml_GlobalScript_s_drop_ball","gml_Script_s_drop_ball",
"gml_GlobalScript_s_check_dummy_collision","gml_Script_s_check_dummy_collision","gml_Script_s_sound_training_success","gml_GlobalScript_s_kick_ball","gml_Script_s_kick_ball","gml_GlobalScript_s_spike_ball","gml_Script_s_spike_ball","gml_GlobalScript_s_set_ball_down","gml_Script_s_set_ball_down","gml_GlobalScript_s_receive_ball","gml_Script_s_receive_ball","gml_GlobalScript_s_opposite_aim","gml_Script_s_opposite_aim","gml_GlobalScript_s_update_xdead","gml_Script_s_update_xdead","gml_GlobalScript_s_set_skills_and_skin",
"gml_Script_s_set_skills_and_skin","gml_GlobalScript_s_set_anim","gml_Script_s_set_anim","gml_GlobalScript_s_set_position_offense","gml_Script_s_set_position_offense","gml_GlobalScript_s_create_news_message","gml_Script_s_create_news_dyn_message","gml_GlobalScript_s_set_position_defense","gml_Script_s_set_position_defense","gml_GlobalScript_s_get_nearest_opponent_by_position","gml_Script_s_get_nearest_opponent_by_position","gml_GlobalScript_s_set_position_defense_fg","gml_Script_s_set_position_defense_fg",
"gml_GlobalScript_s_set_position_offense_fg","gml_Script_s_set_position_offense_fg","gml_GlobalScript_s_get_skin_colour_by_index","gml_Script_s_get_skin_colour_by_index","gml_GlobalScript_s_point_to_path","gml_Script_s_point_to_path","gml_GlobalScript_s_intercept_object","gml_Script_s_intercept_object","gml_GlobalScript_s_cover_object","gml_Script_s_cover_object","gml_GlobalScript_s_get_nearest_opponent","gml_Script_s_get_nearest_opponent","gml_GlobalScript_s_aim_for_nearest_opponent","gml_Script_s_aim_for_nearest_opponent",
"gml_GlobalScript_s_get_distance_to_nearest_opponent","gml_Script_s_get_distance_to_nearest_opponent","gml_GlobalScript_s_get_distance_to_furthest_teammate","gml_Script_s_get_distance_to_furthest_teammate","gml_GlobalScript_s_get_destination","gml_Script_s_get_destination","gml_GlobalScript_s_check_human_control","gml_Script_s_check_human_control","gml_Script_s_do_dive","gml_Script_s_do_stutterstep","gml_GlobalScript_s_check_tackling","gml_Script_s_check_tackling","gml_GlobalScript_s_stop_tackling",
"gml_Script_s_stop_tackling","gml_GlobalScript_s_check_dive","gml_Script_s_check_dive","gml_GlobalScript_s_get_quarterback","gml_Script_s_get_quarterback","gml_GlobalScript_s_get_kicker","gml_Script_s_get_kicker","gml_GlobalScript_s_can_run","gml_Script_s_can_run","gml_GlobalScript_s_is_in_the_clear","gml_Script_s_is_in_the_clear","gml_GlobalScript_s_ball_holder_goalside","gml_Script_s_ball_holder_goalside","gml_GlobalScript_s_opponent_goalside","gml_Script_s_opponent_goalside","gml_GlobalScript_s_y_on_myside",
"gml_Script_s_y_on_myside","gml_GlobalScript_s_aim_AI_offense","gml_Script_s_aim_AI_offense","gml_GlobalScript_s_aim_AI_defense","gml_Script_s_aim_AI_defense","gml_GlobalScript_s_received_AI_new","gml_Script_s_received_AI_new","gml_GlobalScript_s_can_throw","gml_Script_s_can_throw","gml_GlobalScript_s_sprite_holding_ball","gml_Script_s_sprite_holding_ball","gml_GlobalScript_s_is_falling","gml_Script_s_is_falling","gml_GlobalScript_is_defensiveback","gml_Script_is_defensiveback","gml_GlobalScript_s_get_qb_name",
"gml_Script_s_get_qb_name","gml_GlobalScript_s_get_kicker_name","gml_Script_s_get_kicker_name","gml_GlobalScript_s_get_holder_name","gml_Script_s_get_holder_name","gml_GlobalScript_s_get_opponent_team_tla","gml_Script_s_get_opponent_team_tla","gml_GlobalScript_s_set_up_play","gml_Script_s_set_up_play","gml_Script_s_btn_audible_reposition","gml_Script_s_btn_fieldgoal_reposition","gml_GlobalScript_s_update_commentary","gml_Script_s_update_commentary","gml_Script_s_go_for_it_or_not","gml_Script_s_check_skip_time_button",
"gml_Script_btn_skip_time","gml_GlobalScript_s_choose_defensive_formation","gml_Script_s_choose_defensive_formation","gml_GlobalScript_s_set_up_fieldgoal","gml_Script_s_set_up_fieldgoal","gml_GlobalScript_s_subtract_time","gml_Script_s_subtract_time","gml_GlobalScript_s_update_game_timer","gml_Script_s_update_game_timer","gml_GlobalScript_s_update_game_clock","gml_Script_s_update_game_clock","gml_GlobalScript_s_update_yard_gain","gml_Script_s_update_yard_gain","gml_GlobalScript_s_set_rewarded_route",
"gml_Script_s_set_rewarded_route","gml_GlobalScript_s_switch_drivedirection","gml_Script_s_switch_drivedirection","gml_GlobalScript_s_destroy_match_objects","gml_Script_s_destroy_match_objects","gml_GlobalScript_s_action_result","gml_Script_s_action_result","gml_GlobalScript_s_is_quarter_over","gml_Script_s_is_quarter_over","gml_GlobalScript_s_is_on_pitch","gml_Script_s_is_on_pitch","gml_GlobalScript__poki_is_mobile","gml_Script__poki_is_mobile","gml_GlobalScript_s_is_on_pitch_xy","gml_Script_s_is_on_pitch_xy",
"gml_GlobalScript_s_end_match","gml_Script_s_end_match","gml_GlobalScript_s_update_stats","gml_Script_s_update_stats","gml_GlobalScript_s_convert_scrimmage_to_goal_distance","gml_Script_s_convert_scrimmage_to_goal_distance","gml_GlobalScript_s_kick_off","gml_Script_s_kick_off","gml_GlobalScript_s_punt","gml_Script_s_punt","gml_GlobalScript_s_change_possession","gml_Script_s_change_possession","gml_GlobalScript_s_tackle_failure","gml_Script_s_tackle_failure","gml_GlobalScript_s_last_secs_of_half",
"gml_Script_s_last_secs_of_half","gml_Script_s_seconds_remaining","gml_GlobalScript_s_reset_wind","gml_Script_s_reset_wind","gml_GlobalScript_s_change_wind","gml_Script_s_change_wind","gml_GlobalScript_s_force_quit","gml_Script_s_force_quit","gml_GlobalScript_s_do_audible","gml_Script_s_do_audible","gml_GlobalScript_s_do_timeout","gml_Script_s_do_timeout","gml_GlobalScript_s_check_win_after_turnover","gml_Script_s_check_win_after_turnover","gml_Script_s_both_teams_had_possession","gml_GlobalScript_s_clear_clock",
"gml_Script_s_clear_clock","gml_GlobalScript_s_fieldtxt","gml_Script_s_fieldtxt","gml_Script_s_fieldtxt_yards","gml_Script_s_fieldimg","gml_GlobalScript_s_fieldtxt_yards","gml_GlobalScript_s_sound_audience_idle","gml_Script_s_sound_audience_idle","gml_GlobalScript_s_create_match_message","gml_Script_s_create_match_message","gml_Script_s_create_head2head_message","gml_GlobalScript_s_draw_commentary","gml_Script_s_draw_commentary","gml_GlobalScript_s_draw_scoreboard","gml_Script_s_draw_scoreboard",
"gml_GlobalScript_s_draw_scrimmage","gml_Script_s_draw_scrimmage","gml_GlobalScript_s_draw_wind","gml_Script_s_draw_wind","gml_GlobalScript_s_draw_kicking_power","gml_Script_s_draw_kicking_power","gml_GlobalScript_s_draw_my_route","gml_Script_s_draw_my_route","gml_GlobalScript_s_draw_kick_cone","gml_Script_s_draw_kick_cone","gml_GlobalScript_s_check_draft_qb","gml_Script_s_check_draft_QB","gml_Script_s_do_qb_draft_round","gml_Script_s_get_weakest_player_by_position","gml_Script_s_find_draft_player_by_position",
"gml_Script_s_get_player_by_position_for_qb_draft","gml_Script_s_do_contract_news","gml_Script_s_goto_room_contract","gml_Script_btn_qb_mode_interested_teams","gml_GlobalScript_s_update_my_shadow","gml_Script_s_update_my_shadow","gml_GlobalScript_s_set_up_practice","gml_Script_s_set_up_practice","gml_GlobalScript_s_practice_passing","gml_Script_s_practice_passing","gml_GlobalScript_s_reinstate_hof_player","gml_Script_s_reinstate_hof_player","gml_GlobalScript_s_practice_running","gml_Script_s_practice_running",
"gml_GlobalScript_s_practice_running_qb","gml_Script_s_practice_running_qb","gml_GlobalScript_s_create_dummy","gml_Script_s_create_dummy","gml_GlobalScript_s_create_boundary","gml_Script_s_create_boundary","gml_GlobalScript_debug_scripts","gml_Script_s_debug_window_size","gml_GlobalScript_s_sound_kick","gml_Script_s_sound_kick","gml_GlobalScript_s_sound_throw","gml_Script_s_sound_throw","gml_GlobalScript_s_sound_post","gml_Script_s_sound_post","gml_GlobalScript_s_sound_audience_dis","gml_Script_s_sound_audience_dis",
"gml_GlobalScript_s_sound_audience_fg","gml_Script_s_sound_audience_fg","gml_GlobalScript_s_sound_bounce","gml_Script_s_sound_bounce","gml_GlobalScript_s_sound_tackle","gml_Script_s_sound_tackle","gml_GlobalScript_s_sound_oof","gml_Script_s_sound_oof","gml_GlobalScript_s_sound_dive","gml_Script_s_sound_dive","gml_GlobalScript_s_sound_loop","gml_Script_s_sound_loop","gml_GlobalScript_s_qb_run","gml_Script_s_qb_run","gml_Script_s_qb_revert_throw","gml_GlobalScript_s_throw_ball","gml_Script_s_throw_ball",
"gml_GlobalScript_s_record_frame","gml_Script_s_record_frame","gml_GlobalScript_s_replay_frame","gml_Script_s_replay_frame","gml_GlobalScript_s_start_replay","gml_Script_s_start_replay","gml_GlobalScript_s_end_replay","gml_Script_s_end_replay","gml_GlobalScript_s_get_qb_pmap","gml_Script_s_get_qb_pmap","gml_GlobalScript_s_create_message","gml_Script_s_create_message","gml_Script_s_message_recenter","gml_Script_s_create_message3","gml_Script_s_do_message","gml_Script_s_msg","gml_GlobalScript_s_meter_change",
"gml_Script_s_meter_change","gml_GlobalScript_s_meter_change_end","gml_Script_s_meter_change_end","gml_GlobalScript_s_notification","gml_Script_s_notification","gml_GlobalScript_s_msg_clear","gml_Script_s_msg_clear","gml_GlobalScript_s_msg_clear_info_draft","gml_Script_s_msg_clear_info_draft","gml_GlobalScript_s_add_news","gml_Script_s_add_news","gml_Script_s_add_news_if_new","gml_Script_s_remove_news","gml_Script_s_add_news_dyn","gml_GlobalScript_s_check_for_news","gml_Script_s_check_for_news",
"gml_GlobalScript_s_news_clear","gml_Script_s_news_clear","gml_GlobalScript_s_do_banner_draft","gml_Script_s_do_banner_draft","gml_Script_s_do_banner_season_review","gml_GlobalScript_s_do_review_message","gml_Script_s_do_review_message","gml_GlobalScript_btn_response_review_yes","gml_Script_btn_response_review_yes","gml_Script_btn_response_review_no","gml_GlobalScript_s_edit_field","gml_Script_s_edit_field","gml_GlobalScript_s_edit_cancel","gml_Script_s_edit_cancel","gml_GlobalScript_s_edit_confirm_profile",
"gml_Script_s_edit_confirm_profile","gml_Script_s_update_boss_profile","gml_GlobalScript_s_msg_timeouts","gml_Script_s_msg_timeouts","gml_GlobalScript_s_get_record","gml_Script_s_get_record","gml_GlobalScript_s_check_record","gml_Script_s_check_record","gml_GlobalScript_s_check_record_text","gml_Script_s_check_record_text","gml_GlobalScript_s_sort_record_list","gml_Script_s_sort_record_list","gml_GlobalScript_s_get_player_name_for_record","gml_Script_s_get_player_name_for_record","gml_GlobalScript_s_check_repeat_retrobowls",
"gml_Script_s_check_repeat_retrobowls","gml_GlobalScript_s_create_player","gml_Script_s_create_player_get_RC_cost","gml_Script_s_create_player","gml_GlobalScript_s_sort_players","gml_Script_s_sort_players","gml_GlobalScript_s_create_new_roster","gml_Script_s_create_new_roster","gml_GlobalScript_s_create_new_roster_newteam","gml_Script_s_create_new_roster_newteam","gml_GlobalScript_s_lastname_already_on_roster","gml_Script_s_lastname_already_on_roster","gml_GlobalScript_s_position_already_on_roster",
"gml_Script_s_position_already_on_roster","gml_GlobalScript_s_get_required_position","gml_Script_s_get_required_position","gml_Script_s_get_required_position_no_QB_RB","gml_GlobalScript_s_get_player_rating","gml_Script_s_get_player_rating","gml_GlobalScript_s_get_player_potential","gml_Script_s_get_player_potential","gml_GlobalScript_s_obj_player_draw_begin","gml_Script_s_obj_player_draw_begin","gml_GlobalScript_s_get_player_by_position","gml_Script_s_get_player_by_position","gml_Script_s_get_player_kick_returner",
"gml_GlobalScript_s_get_player_by_lname","gml_Script_s_get_player_by_lname","gml_GlobalScript_s_get_random_player","gml_Script_s_get_random_player","gml_GlobalScript_s_get_random_player_by_position","gml_Script_s_get_random_player_by_position","gml_GlobalScript_s_get_random_player_defensive","gml_Script_s_get_random_player_defensive","gml_GlobalScript_s_get_random_player_offensive","gml_Script_s_get_random_player_offensive","gml_GlobalScript_s_get_random_coach","gml_Script_s_get_random_coach","gml_GlobalScript_btn_click_qb_items",
"gml_Script_btn_click_qb_items","gml_Script_btn_click_qb_vehicles","gml_Script_btn_click_qb_property","gml_GlobalScript_s_count_players_by_position","gml_Script_s_count_players_by_position","gml_GlobalScript_s_count_players_onfield_by_position","gml_Script_s_count_players_onfield_by_position","gml_GlobalScript_s_count_defenders","gml_Script_s_count_defenders","gml_GlobalScript_btn_click_OptionsControls","gml_Script_btn_click_OptionsControls","gml_Script_btn_click_OptionsControls1","gml_Script_btn_click_OptionsControls2",
"gml_Script_btn_click_OptionsControls3","gml_Script_s_update_control_screen","gml_GlobalScript_s_get_position_colour","gml_Script_s_get_position_colour","gml_GlobalScript_s_increase_player_attribute","gml_Script_s_increase_player_attribute","gml_GlobalScript_s_player_at_max_potential","gml_Script_s_player_at_max_potential","gml_GlobalScript_s_is_offensive_player","gml_Script_s_is_offensive_player","gml_Script_s_get_training_reg","gml_GlobalScript_s_is_defensive_player","gml_Script_s_is_defensive_player",
"gml_GlobalScript_s_get_average_yards","gml_Script_s_get_average_yards","gml_GlobalScript_s_get_player_name","gml_Script_s_get_player_name","gml_GlobalScript_s_get_meeting_cost_morale","gml_Script_s_get_meeting_cost_morale","gml_GlobalScript_s_get_meeting_cost_condition","gml_Script_s_get_meeting_cost_condition","gml_GlobalScript_s_get_meeting_cost_levelup","gml_Script_s_get_meeting_cost_levelup","gml_GlobalScript_s_get_meeting_cost_delay_retirement","gml_Script_s_get_meeting_cost_delay_retirement",
"gml_GlobalScript_s_get_meeting_cost_extend_contract","gml_Script_s_get_meeting_cost_extend_contract","gml_GlobalScript_s_get_match_rating","gml_Script_s_get_match_rating","gml_GlobalScript_s_reset_match_stats","gml_Script_s_reset_match_stats","gml_GlobalScript_s_toxic_effect_on_morale","gml_Script_s_toxic_effect_on_morale","gml_GlobalScript_s_match_rating_effect_on_morale","gml_Script_s_match_rating_effect_on_morale","gml_GlobalScript_s_training_regime_effect_on_morale","gml_Script_s_training_regime_effect_on_morale",
"gml_GlobalScript_s_injury_effect_on_attitude","gml_Script_s_injury_effect_on_attitude","gml_GlobalScript_s_rehab_effect","gml_Script_s_rehab_effect","gml_GlobalScript_s_add_xp_gain_all","gml_Script_s_add_xp_gain_all","gml_GlobalScript_s_check_for_injury","gml_Script_s_check_for_injury","gml_GlobalScript_s_count_injuries","gml_Script_s_count_injuries","gml_GlobalScript_s_count_injuries_weeks","gml_Script_s_count_injuries_weeks","gml_GlobalScript_s_choose_face","gml_Script_s_choose_face","gml_GlobalScript_s_get_max_age",
"gml_GlobalScript_s_get_max_age_normal","gml_Script_s_get_max_age_normal","gml_GlobalScript_s_get_num_audibles","gml_Script_s_get_num_audibles","gml_GlobalScript_s_get_morale","gml_Script_s_get_morale","gml_GlobalScript_s_get_condition_squad","gml_Script_s_get_condition_squad","gml_GlobalScript_s_adjust_team_morale","gml_Script_s_adjust_team_morale","gml_GlobalScript_s_set_team_morale","gml_Script_s_set_team_morale","gml_GlobalScript_s_position_edit_name_btn","gml_Script_s_position_edit_name_btn",
"gml_GlobalScript_s_update_rest_all_button","gml_Script_s_update_rest_all_button","gml_GlobalScript_s_all_players_resting","gml_Script_s_all_players_resting","gml_GlobalScript_s_rest_all_players","gml_Script_s_rest_all_players","gml_GlobalScript_s_tag_backups","gml_Script_s_tag_backups","gml_GlobalScript_s_is_backup","gml_Script_s_is_backup","gml_GlobalScript_s_do_player_awards","gml_Script_s_do_player_awards","gml_GlobalScript_s_award_sb_rings","gml_Script_s_award_sb_rings","gml_GlobalScript_s_round_player_attributes",
"gml_Script_s_round_player_attributes","gml_GlobalScript_s_get_store_player_by_position","gml_Script_s_get_store_player_by_position","gml_GlobalScript_s_create_new_stafflist","gml_Script_s_create_new_stafflist","gml_GlobalScript_s_create_staff","gml_Script_s_create_staff","gml_Script_s_create_headcoach_pmap","gml_GlobalScript_s_create_hirelist","gml_Script_s_create_hirelist","gml_GlobalScript_s_sort_hirelist","gml_Script_s_sort_hirelist","gml_GlobalScript_s_reset_staff_hire_list","gml_Script_s_reset_staff_hire_list",
"gml_GlobalScript_s_get_staff","gml_Script_s_get_staff","gml_GlobalScript_s_is_staff","gml_Script_s_is_staff","gml_GlobalScript_s_get_coach_cost","gml_Script_s_get_coach_cost","gml_GlobalScript_s_coach_trait_experience","gml_Script_s_coach_trait_experience","gml_GlobalScript_s_coach_trait_talentspotter","gml_Script_s_coach_trait_talentspotter","gml_GlobalScript_s_coach_trait_motivator","gml_Script_s_coach_trait_motivator","gml_GlobalScript_btn_click_qb_training","gml_Script_btn_click_qb_training",
"gml_Script_s_do_qb_training","gml_GlobalScript_btn_click_GenerateCharacter","gml_Script_btn_click_GenerateCharacter","gml_GlobalScript_s_count_trait_fanfavorite","gml_Script_s_count_trait_fanfavorite","gml_GlobalScript_s_count_trait_scout","gml_Script_s_count_trait_scout","gml_GlobalScript_s_fire_coach","gml_Script_s_fire_coach","gml_GlobalScript_s_check_contracts_expiring","gml_Script_s_check_contracts_expiring","gml_GlobalScript_s_str","gml_Script_s_str","gml_Script_s_str_real","gml_GlobalScript_s_split_string",
"gml_Script_s_split_string","gml_GlobalScript_s_parse_news","gml_Script_s_parse_news","gml_GlobalScript_s_parse_intro","gml_Script_s_parse_intro","gml_GlobalScript_s_parse_player_message","gml_Script_s_parse_player_message","gml_GlobalScript_s_strP","gml_Script_s_strP","gml_GlobalScript_s_sim_stat_increment","gml_Script_s_sim_stat_increment","gml_Script_s_sim_stat_update","gml_Script_s_sim_stat_touchdown","gml_Script_s_sim_stat_pass","gml_Script_s_sim_stat_run","gml_Script_s_sim_stat_fumble","gml_Script_s_sim_stat_interception",
"gml_Script_s_sim_stat_sack","gml_GlobalScript_s_parse_string","gml_Script_s_parse_string","gml_GlobalScript_s_crop_text","gml_Script_s_crop_text","gml_GlobalScript_s_get_string_ball_state","gml_Script_s_get_string_ball_state","gml_GlobalScript_s_get_string_state","gml_Script_s_get_string_state","gml_GlobalScript_s_get_string_sex","gml_Script_s_get_string_sex","gml_GlobalScript_s_get_string_heshe","gml_Script_s_get_string_heshe","gml_GlobalScript_s_get_string_time","gml_Script_s_get_string_time",
"gml_GlobalScript_s_string_rand","gml_Script_s_string_rand","gml_GlobalScript_s_get_string_downand","gml_Script_s_get_string_downand","gml_GlobalScript_s_get_string_float","gml_Script_s_get_string_float","gml_GlobalScript_s_get_string_division","gml_Script_s_get_string_division","gml_GlobalScript_s_get_string_conference","gml_Script_s_get_string_conference","gml_GlobalScript_s_get_string_week","gml_Script_s_get_string_week","gml_GlobalScript_s_get_string_week_short","gml_Script_s_get_string_week_short",
"gml_GlobalScript_s_get_string_year","gml_Script_s_get_string_year","gml_GlobalScript_s_get_string_commstage","gml_Script_s_get_string_commstage","gml_GlobalScript_s_get_string_position","gml_Script_s_get_string_position","gml_GlobalScript_s_get_string_position_full","gml_Script_s_get_string_position_full","gml_GlobalScript_s_get_string_attitude","gml_Script_s_get_string_attitude","gml_GlobalScript_s_get_string_trade_value","gml_Script_s_get_string_trade_value","gml_GlobalScript_s_get_string_anim",
"gml_Script_s_get_string_anim","gml_GlobalScript_s_get_string_condition","gml_Script_s_get_string_condition","gml_GlobalScript_s_get_string_record","gml_Script_s_get_string_record","gml_GlobalScript_s_get_string_trait","gml_Script_s_get_string_trait","gml_GlobalScript_s_get_string_action_result","gml_Script_s_get_string_action_result","gml_GlobalScript_s_can_touchback","gml_Script_s_can_touchback","gml_GlobalScript_s_get_string_performance","gml_Script_s_get_string_performance","gml_GlobalScript_s_get_random_teamname",
"gml_Script_s_get_random_teamname","gml_GlobalScript_btn_click_Roster_List","gml_Script_btn_click_Roster_List","gml_GlobalScript_s_get_string_picks","gml_Script_s_get_string_picks","gml_GlobalScript_s_get_team_by_id","gml_Script_s_get_team_by_id","gml_GlobalScript_s_get_team_name_by_id","gml_Script_s_get_team_name_by_id","gml_GlobalScript_s_get_team_tla_by_id","gml_Script_s_get_team_tla_by_id","gml_GlobalScript_s_sort_teams","gml_Script_s_sort_teams","gml_GlobalScript_s_get_team_by_seed","gml_Script_s_get_team_by_seed",
"gml_Script_s_get_team_seeding","gml_GlobalScript_s_get_team_id_by_seed","gml_Script_s_get_team_id_by_seed","gml_GlobalScript_s_get_team_name_by_seed","gml_Script_s_get_team_name_by_seed","gml_GlobalScript_s_get_team_offense","gml_Script_s_get_team_offense","gml_GlobalScript_s_get_defense_attribute","gml_Script_s_get_defense_attribute","gml_Script_s_get_attribute","gml_Script_s_attribute_buff","gml_GlobalScript_s_get_team_defense","gml_Script_s_get_team_defense","gml_GlobalScript_s_get_salary_total",
"gml_Script_s_get_salary_total","gml_GlobalScript_s_refactor_team_strengths","gml_Script_s_refactor_team_strengths","gml_GlobalScript_s_get_team_winpct","gml_Script_s_get_team_winpct","gml_GlobalScript_s_get_team_net_points","gml_Script_s_get_team_net_points","gml_GlobalScript_s_get_points_versus","gml_Script_s_get_points_versus","gml_GlobalScript_s_get_wins_versus","gml_Script_s_get_wins_versus","gml_GlobalScript_s_get_point_swing","gml_Script_s_get_point_swing","gml_Script_s_get_head_to_head",
"gml_Script_s_get_win_pecentage_by_confdiv","gml_GlobalScript_s_get_points_season","gml_Script_s_get_points_season","gml_GlobalScript_s_practice_qb_mode","gml_Script_s_practice_qb_mode","gml_Script_s_end_qb_mode_practice","gml_Script_s_quit_qb_mode_practice","gml_GlobalScript_s_col_hex_to_r","gml_Script_s_col_hex_to_r","gml_GlobalScript_s_col_hex_to_g","gml_Script_s_col_hex_to_g","gml_GlobalScript_s_col_hex_to_b","gml_Script_s_col_hex_to_b","gml_GlobalScript_s_hex_string_to_col","gml_Script_s_hex_string_to_col",
"gml_GlobalScript_s_rgb_to_bgr","gml_Script_s_rgb_to_bgr","gml_GlobalScript_s_set_up_globals","gml_Script_s_set_up_globals","gml_Script_s_set_up_temp_variables","gml_GlobalScript_slog","gml_Script_slog","gml_Script_slog2","gml_Script_slogf","gml_GlobalScript_s_sound","gml_Script_s_sound","gml_GlobalScript_s_make_random_colour","gml_Script_s_make_random_colour","gml_GlobalScript_s_lines_intersect","gml_Script_s_lines_intersect","gml_GlobalScript_s_log_player","gml_Script_s_log_player","gml_GlobalScript_s_get_random_college_name",
"gml_Script_s_get_random_college_name","gml_GlobalScript_s_get_random_charity","gml_Script_s_get_random_charity","gml_GlobalScript_s_get_aim_direction","gml_Script_s_get_aim_direction","gml_GlobalScript_s_get_random_first_name","gml_Script_s_get_random_first_name","gml_GlobalScript_s_get_random_last_name","gml_Script_s_get_random_last_name","gml_GlobalScript_s_format_hex_color","gml_Script_s_format_hex_color","gml_GlobalScript_s_color_to_hex","gml_Script_s_color_to_hex","gml_GlobalScript_s_gui_helpers",
"gml_Script_s_create_label","gml_GlobalScript_btn_click_SeasonReviewBack","gml_Script_btn_click_SeasonReviewBack","gml_GlobalScript_s_dec_to_hex","gml_Script_s_dec_to_hex","gml_GlobalScript_s_roman_numerals","gml_Script_s_roman_numerals","gml_GlobalScript_s_get_watermark_color","gml_Script_s_get_watermark_color","gml_GlobalScript_s_generate_uid","gml_Script_s_generate_uid","gml_GlobalScript_gmcallback_poki_loadbar","gml_Script_gmcallback_poki_loadbar","gml_GlobalScript_poki_pause","gml_Script_poki_pause",
"gml_GlobalScript_s_set_up_qb_pmap","gml_Script_s_set_up_qb_pmap","gml_GlobalScript_poki_resume","gml_Script_poki_resume","gml_GlobalScript_scale_canvas","gml_Script_scale_canvas","gml_GlobalScript_s_update_camera","gml_Script_s_update_camera","gml_GlobalScript__poki_gameplay_start","gml_Script__poki_gameplay_start","gml_GlobalScript__poki_gameplay_stop","gml_Script__poki_gameplay_stop","gml_GlobalScript_s_find_gamepad","gml_Script_s_find_gamepad","gml_Script_s_gamepad_is_fingerprint_sensor","gml_GlobalScript_s_update_gamepad",
"gml_Script_s_update_gamepad","gml_Script_s_gamepad_activity","gml_Script_s_clear_last_selected_history","gml_Script_s_overwrite_last_selected","gml_Script____struct___28_s_save_last_selected_gml_GlobalScript_s_update_gamepad","gml_Script_s_save_last_selected","gml_Script_s_get_last_selected","gml_GlobalScript_s_find_default_button","gml_Script_s_find_default_button","gml_GlobalScript_s_get_watermarked_stats","gml_Script_s_get_watermarked_stats","gml_GlobalScript_s_get_qb_energy","gml_Script_s_get_qb_energy",
"gml_GlobalScript_btn_click_external_links","gml_Script_btn_click_BuyMerch","gml_Script_btn_click_MusicBy","gml_Script_btn_click_YouTube","gml_Script_btn_click_RecordBook","gml_Script_btn_click_Leagues","gml_Script_btn_click_ad_NSS","gml_Script_btn_click_ad_NSM","gml_Script_btn_click_ad_RG","gml_Script_btn_click_ad_NSB","gml_Script_btn_click_NewStarGames","gml_GlobalScript_s_do_prematch_dilemma_qb","gml_Script_s_do_prematch_dilemma_qb","gml_GlobalScript_s_sound_audience_catch","gml_Script_s_sound_audience_catch",
"gml_GlobalScript_s_player_gpa","gml_Script_s_gpa_from_percent_grade","gml_Script_s_gpa_string","gml_Script_s_decay_percent_grade","gml_Script_s_post_match_gpa_refresh","gml_Script_s_add_percent_grade","gml_Script_s_get_decay","gml_Script_s_get_decay_info","gml_Script_s_refresh_suspended","gml_Script_s_get_percent_grade_squad","gml_Script_btn_click_Boost_GPA","gml_Script_btn_response_boost_gpa","gml_Script_s_my_team_academics","gml_Script_s_player_grade_suspend","gml_Script_s_player_grade_lift_suspension",
"gml_GlobalScript_s_canvas_fullscreen","gml_Script_s_canvas_fullscreen","gml_GlobalScript_s_player_party","gml_Script_s_update_party_meter","gml_Script_s_get_party_info","gml_Script_s_add_to_party_meter","gml_Script_s_clear_party_meter","gml_Script_s_team_halve_all_party_meters","gml_GlobalScript_btn_click_LeagueMode","gml_Script_btn_click_LeagueMode","gml_GlobalScript_pause_scripts","gml_Script_s_pause_toggle","gml_Script_s_pause_is_available","gml_Script_s_pause_step","gml_Script_s_is_paused_or_just_unpaused",
"gml_Script_s_draw_pause","gml_Script_s_pause_btn_init","gml_Script_s_pause_btn_step","gml_Script_s_pause_btn_draw_gui","gml_Script_s_pause_btn_recenter","gml_Script_s_pause_options_init","gml_Script_s_pause_options_recenter","gml_Script_s_pause_options_dismiss","gml_Script_s_pause_options_draw_gui","gml_Script_s_pause_options_layer","gml_Script_s_pause_options_add_button","gml_Script_s_pause_options_add_quit","gml_Script_s_pause_options_update_buttons","gml_Script_s_pause_options_button_action",
"gml_Script_s_pause_options_quit_game","gml_Script_btn_response_quit_exhibution_cancel","gml_Script_btn_response_quit_exhibution_confirm","gml_GlobalScript_s_draw_scoreboard_qb_training","gml_Script_s_draw_scoreboard_qb_training","gml_GlobalScript_s_update_manual_gestures","gml_Script_s_update_manual_gestures","gml_GlobalScript_s_obj_controller_draw_begin","gml_Script_s_obj_controller_draw_begin","gml_Script____struct___29_gml_Object_obj_frontoffice_Create_0"];JSON_game.Scripts=[gml_Script_poki_init,
gml_Script_poki_commercial_break,gml_Script_poki_rewarded_break,gml_Script_poki_script_closure,gml_Script_gmcallback_poki_closure,gml_Script_poki_get_team,gml_Script_poki_set_team,gml_GlobalScript_s_update_shopping_buttons,gml_Script_s_update_shopping_buttons,gml_Script_btn_click_shopping_next,gml_Script_btn_click_shopping_prev,gml_Script_btn_shopping_purchase,gml_Script_s_confirm_purchase,gml_Script_s_count_shop_items_by_type,gml_Script_s_degrade_shop_items,gml_GlobalScript_s_count_simmed_games,
gml_Script_s_count_simmed_games,gml_GlobalScript_season_tally_scripts,gml_Script_s_draw_season_tally_header,gml_GlobalScript_s_choose_mode_hc,gml_Script_s_choose_mode_HC,gml_Script_s_choose_mode_QB,gml_Script_s_choose_mode_CO,gml_Script_s_setup_for_mode_CO,gml_Script_s_update_details_screen,gml_GlobalScript_s_benched,gml_Script_s_player_benched,gml_GlobalScript_s_cpu_is_kicking,gml_Script_s_cpu_is_kicking_off,gml_Script_s_is_kickoff,gml_GlobalScript_nx_scripts,gml_Script_s_nx_init,gml_Script_s_nx_commit,
gml_Script_s_nx_get_open_user,gml_GlobalScript_s_recruitment_credits,gml_Script_recruitment_credits_cap_total,gml_Script_can_fit_recruitment_credits,gml_Script_recruitment_credits_space,gml_Script_recruitment_credits_add,gml_Script_recruitment_credits_toggle_roster_size,gml_Script_recruitment_credits_button_click_boost,gml_Script_btn_response_boost_recruitment_credits,gml_GlobalScript_qb_contract_scripts,gml_Script_s_qb_mode_set_up_contract_screen,gml_Script____struct___0_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts,
gml_Script_s_qb_mode_new_contract,gml_Script_btn_contract_negotiate,gml_Script_btn_contract_salary_minus,gml_Script_btn_contract_salary_plus,gml_Script_btn_contract_tdbonus_minus,gml_Script_btn_contract_tdbonus_plus,gml_Script_btn_contract_length_minus,gml_Script_btn_contract_length_plus,gml_Script_btn_negotiate_higher,gml_Script_btn_negotiate_lower,gml_Script_s_check_negotiate,gml_Script_s_check_hilo_buttons,gml_Script_s_accept_contract,gml_Script_s_reject_contract,gml_GlobalScript_s_draw_player_image,
gml_Script_s_draw_player_image,gml_GlobalScript_s_college_gui_helpers,gml_Script_buttons_college_custom,gml_Script_draw_custom_increase_wallet,gml_Script_draw_custom_recruitment_credits_display,gml_Script_rm_player_profile_show_noncollege_elements,gml_Script_rm_player_profile_show_more,gml_Script____struct___1_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___2_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___3_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,
gml_Script____struct___4_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___5_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___6_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___7_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___8_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,
gml_Script_rm_player_profile_college_create_p1,gml_Script____struct___9_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___10_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___11_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___12_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___13_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,
gml_Script____struct___14_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___15_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___16_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___17_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script_rm_player_profile_college_create_p2,gml_Script_rm_player_profile_college_create,gml_Script_btn_rm_player_profile_college_showP1,
gml_Script_btn_rm_player_profile_college_showP2,gml_Script_rm_player_profile_college_step,gml_Script_btn_click_Profile_College_Cut,gml_Script_btn_rm_stats_player_showAwards,gml_Script_btn_rm_stats_player_showEpilogue,gml_Script____struct___18_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers,gml_Script_stats_player_button_entry,gml_Script____struct___19_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___20_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers,
gml_Script_rm_stats_player_configure_college,gml_GlobalScript_s_load_profile_uni,gml_Script_s_load_profile_uni,gml_GlobalScript_s_get_lifestyle,gml_Script_s_get_lifestyle,gml_GlobalScript_btn_meet_teammate,gml_Script_btn_meet_teammate,gml_Script_s_confirm_teammate_meeting,gml_GlobalScript_s_check_qb_mode_benched,gml_Script_s_qb_mode_benched_status,gml_GlobalScript_font_scripts,gml_Script_s_data_path,gml_Script_s_fonts_init,gml_Script_draw_hd_text,gml_Script_draw_hd_text_color,gml_Script_draw_hd_text_ext,
gml_Script_draw_hd_text_ext_color,gml_Script_draw_hd_text_transformed,gml_Script_draw_hd_text_transformed_color,gml_Script_draw_hd_text_ext_transformed,gml_Script_string_hd_width,gml_Script_string_hd_width_ext,gml_Script_string_hd_height,gml_Script_string_hd_height_ext,gml_GlobalScript_btn_click_Details_Back,gml_Script_btn_click_Details_Back,gml_GlobalScript_s_replay_controls,gml_Script_s_replay_controls,gml_GlobalScript_nrg,gml_Script_btn_click_nrg_buy,gml_Script_btn_click_nrg_drink,gml_Script_s_drink_nrg,
gml_Script_s_get_condition_colour,gml_Script_s_get_condition_icon,gml_GlobalScript_s_college_draft,gml_Script_s_college_draft_ranking,gml_Script_s_college_draft_team_ranking,gml_Script_s_college_draft_team_pick,gml_Script_s_calculate_college_draft,gml_Script_s_destroy_college_draft,gml_Script____struct___21_s_display_college_draft_debug_gml_GlobalScript_s_college_draft,gml_Script_s_display_college_draft_debug,gml_Script_s_message_college_draft_pick,gml_Script_s_message_college_draft_notpick,gml_Script_s_message_college_draft_nottrydraft_y3,
gml_Script_s_message_college_draft_early_y3,gml_Script_s_message_college_draft_pick_continue,gml_Script_s_message_college_earyly_yes,gml_Script_s_message_college_earyly_no,gml_Script_s_message_college_earyly_info,gml_Script_s_college_draft_earyly_info_return,gml_Script_s_college_draft_refresh_current_attitude,gml_Script_s_doing_college_draft,gml_Script_s_check_college_draft_start,gml_Script_s_start_college_draft,gml_Script_s_draft_set_epilogue,gml_Script_s_end_college_draft,gml_Script_s_end_college_draft_late_msg_clear,
gml_Script_s_end_college_draft_late,gml_Script_btn_click_college_draft_next,gml_Script_s_college_draft_refresh,gml_Script_btn_click_college_draft_skip,gml_Script_college_draft_do_skip,gml_Script_s_college_draft_player_pick,gml_Script____struct___22_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,gml_Script____struct___23_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,gml_Script____struct___24_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,gml_Script____struct___25_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,
gml_Script_s_display_college_draft_roster,gml_Script____struct___26_s_card_layout_pos_gml_GlobalScript_s_college_draft,gml_Script_s_card_layout_pos,gml_Script_s_load_pro_teams,gml_GlobalScript_s_check_ingame_control_change,gml_Script_s_check_ingame_control_change,gml_GlobalScript_s_remove_player,gml_Script_s_remove_player,gml_GlobalScript_btn_click_BengRams,gml_Script_btn_click_BengRams,gml_Script_s_update_btn_bengrams,gml_Script_s_set_ui_colours,gml_GlobalScript_btn_click_OptionsAutoRun,gml_Script_btn_click_OptionsAutoRun,
gml_GlobalScript_title_scripts,gml_Script_s_title_goto,gml_Script_s_title_create,gml_Script_s_title_step,gml_Script_s_title_draw_gui,gml_Script_s_title_exit,gml_GlobalScript_s_get_achievement,gml_Script_s_get_achievement,gml_GlobalScript_s_count_achievement,gml_Script_s_count_achievement,gml_GlobalScript_s_get_achievement_percentage,gml_Script_s_get_achievement_percentage,gml_GlobalScript_s_complete_achievement,gml_Script_s_complete_achievement,gml_GlobalScript_s_sort_retrobowl_list,gml_Script_s_sort_retrobowl_list,
gml_GlobalScript_s_sort_retrobowl_history_list,gml_Script_s_sort_retrobowl_history_list,gml_GlobalScript_btn_click_EditAFC,gml_Script_btn_click_EditAFC,gml_GlobalScript_btn_click_EditNFC,gml_Script_btn_click_EditNFC,gml_GlobalScript_btn_click_EditTeam,gml_Script_btn_click_EditTeam,gml_GlobalScript_s_round_to_decimal,gml_Script_s_round_to_decimal,gml_GlobalScript_btn_click_TeamEditCancel,gml_Script_btn_click_TeamEditCancel,gml_GlobalScript_btn_click_TeamEditDone,gml_Script_btn_click_TeamEditDone,
gml_GlobalScript_btn_click_TeamEditRestore,gml_Script_btn_click_TeamEditRestore,gml_GlobalScript_btn_click_InputHelmet,gml_Script_btn_click_InputHelmet,gml_GlobalScript_btn_click_InputLogo,gml_Script_btn_click_InputLogo,gml_GlobalScript_btn_click_InputShirt,gml_Script_btn_click_InputShirt,gml_GlobalScript_btn_click_InputSleeve,gml_Script_btn_click_InputSleeve,gml_GlobalScript_btn_click_InputPants,gml_Script_btn_click_InputPants,gml_GlobalScript_btn_click_InputStripe,gml_Script_btn_click_InputStripe,
gml_GlobalScript_btn_click_InputSocks1,gml_Script_btn_click_InputSocks1,gml_GlobalScript_btn_click_InputSocks2,gml_Script_btn_click_InputSocks2,gml_GlobalScript_btn_click_InputEndzone,gml_Script_btn_click_InputEndzone,gml_GlobalScript_btn_click_EditHelmet,gml_Script_btn_click_EditHelmet,gml_GlobalScript_btn_click_EditLogo,gml_Script_btn_click_EditLogo,gml_GlobalScript_btn_click_EditShirt,gml_Script_btn_click_EditShirt,gml_GlobalScript_btn_click_EditSleeve,gml_Script_btn_click_EditSleeve,gml_GlobalScript_btn_click_EditPants,
gml_Script_btn_click_EditPants,gml_GlobalScript_btn_click_EditStripe,gml_Script_btn_click_EditStripe,gml_GlobalScript_btn_click_EditSocks1,gml_Script_btn_click_EditSocks1,gml_GlobalScript_btn_click_EditSocks2,gml_Script_btn_click_EditSocks2,gml_GlobalScript_btn_click_EditEndzone,gml_Script_btn_click_EditEndzone,gml_GlobalScript_btn_click_Kit1,gml_Script_btn_click_Kit1,gml_GlobalScript_btn_click_Kit2,gml_Script_btn_click_Kit2,gml_GlobalScript_btn_click_Kit3,gml_Script_btn_click_Kit3,gml_GlobalScript_btn_click_Kit4,
gml_Script_btn_click_Kit4,gml_GlobalScript_btn_click_RestoreAllTeams,gml_Script_btn_click_RestoreAllTeams,gml_GlobalScript_btn_click_KR_Select,gml_Script_btn_click_KR_Select,gml_GlobalScript_btn_click_EditCopySlotA,gml_Script_btn_click_EditCopySlotA,gml_GlobalScript_s_sound_audience_inc,gml_Script_s_sound_audience_inc,gml_GlobalScript_btn_click_EditCopySlotB,gml_Script_btn_click_EditCopySlotB,gml_GlobalScript_btn_click_EditCopySlotC,gml_Script_btn_click_EditCopySlotC,gml_GlobalScript_btn_click_EditCopySlotD,
gml_Script_btn_click_EditCopySlotD,gml_GlobalScript_btn_click_EditCopySlotE,gml_Script_btn_click_EditCopySlotE,gml_GlobalScript_btn_click_TeamEditMore,gml_Script_btn_click_TeamEditMore,gml_GlobalScript_btn_click_TeamEditMoreDone,gml_Script_btn_click_TeamEditMoreDone,gml_GlobalScript_btn_click_FacilityStadium,gml_Script_btn_click_FacilityStadium,gml_GlobalScript_btn_click_FacilityTraining,gml_Script_btn_click_FacilityTraining,gml_GlobalScript_btn_click_FacilityStaff,gml_Script_btn_click_FacilityStaff,
gml_GlobalScript_btn_click_HOF_players,gml_Script_btn_click_HOF_players,gml_GlobalScript_btn_click_HOF_player_records,gml_Script_btn_click_HOF_player_records,gml_GlobalScript_btn_click_HOF_Select,gml_Script_btn_click_HOF_Select,gml_GlobalScript_btn_click_HofNext,gml_Script_btn_click_HofNext,gml_GlobalScript_btn_click_HofPrev,gml_Script_btn_click_HofPrev,gml_GlobalScript_btn_click_HOF_Coach,gml_Script_btn_click_HOF_Coach,gml_GlobalScript_btn_click_Records_Reset,gml_Script_btn_click_Records_Reset,
gml_GlobalScript_btn_click_League_Back,gml_Script_btn_click_League_Back,gml_GlobalScript_btn_click_LeaguePanel,gml_Script_btn_click_LeaguePanel,gml_GlobalScript_btn_click_LeagueNFC,gml_Script_btn_click_LeagueNFC,gml_GlobalScript_btn_click_LeagueAFC,gml_Script_btn_click_LeagueAFC,gml_GlobalScript_keyboard_scripts,gml_Script_s_keyboard_custom_enabled,gml_Script____struct___27_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts,gml_Script_s_keyboard_custom_init,gml_Script_s_keyboard_custom_show,
gml_Script_s_keyboard_custom_hide,gml_Script_s_keyboard_custom_layer,gml_Script_s_keyboard_custom_create,gml_Script_s_keyboard_custom_destroy,gml_Script_s_keyboard_custom_create_button,gml_Script_s_custkb_base_draw_gui,gml_Script_s_custkb_base_step,gml_Script_s_custkb_confirm,gml_Script_s_custkb_delete,gml_Script_s_custkb_shift_toggle,gml_Script_s_custkb_add_text,gml_Script_s_custkb_key_init,gml_Script_s_custkb_key_draw_gui,gml_Script_s_custkb_key_step,gml_Script_s_custkb_key_tap,gml_GlobalScript_s_college_tools,
gml_Script_s_college_set_up_globals,gml_Script_s_college_age_index,gml_Script_s_college_age_label,gml_Script_s_college_age_simple,gml_Script_s_college_age_simple_short,gml_Script_s_college_shorter_season,gml_Script_s_college_correct_new_player,gml_Script_s_get_random_hobby,gml_Script_s_get_hobby_name,gml_Script_s_get_hobby_from_uid,gml_Script_s_is_player_hobby_fraternity,gml_Script_s_get_random_trait,gml_Script_s_get_trait_name,gml_Script_s_get_trait_from_uid,gml_Script_s_get_random_study_subject,
gml_Script_s_get_study_subject_from_uid,gml_Script_s_get_study_subject_name_from_uid,gml_Script_s_get_minor_name,gml_Script_s_get_major_name,gml_Script_s_get_study_info,gml_Script_s_get_random_hometown,gml_Script_s_get_hometown_name,gml_Script_s_get_hometown_from_uid,gml_Script_s_pick_rand_epilogue_uid,gml_Script_s_get_epilogue_name,gml_Script_s_epilogue_tests,gml_Script_s_pick_epilogue_story,gml_Script_s_epilogue_story_to_str,gml_Script_btn_response_player_meeting_academic_coaching,gml_Script_s_get_meeting_cost_academic_coaching,
gml_Script_s_is_co_mode,gml_Script_s_is_co_real,gml_Script_s_co_real_version_text,gml_GlobalScript_btn_click_LeagueSchedule,gml_Script_btn_click_LeagueSchedule,gml_GlobalScript_btn_click_SchedulePrev,gml_Script_btn_click_SchedulePrev,gml_GlobalScript_btn_click_ScheduleNext,gml_Script_btn_click_ScheduleNext,gml_GlobalScript_btn_click_PlayOffs,gml_Script_btn_click_PlayOffs,gml_GlobalScript_btn_click_PlayOffs_Back,gml_Script_btn_click_PlayOffs_Back,gml_GlobalScript_btn_click_PlayOffsPlay,gml_Script_btn_click_PlayOffsPlay,
gml_GlobalScript_btn_click_PlayOffsSkip,gml_Script_btn_click_PlayOffsSkip,gml_GlobalScript_btn_click_Change_Favourite,gml_Script_btn_click_Change_Favourite,gml_GlobalScript_btn_click_ChooseAFC,gml_Script_btn_click_ChooseAFC,gml_GlobalScript_btn_click_ChooseNFC,gml_Script_btn_click_ChooseNFC,gml_GlobalScript_btn_click_ChooseTeam,gml_Script_btn_click_ChooseTeam,gml_Script_btn_click_ChooseTeamExhibition,gml_GlobalScript_btn_click_ChooseTeamNew,gml_Script_btn_click_ChooseTeamNew,gml_Script_btn_click_qb_mode_ChooseTeamNew,
gml_GlobalScript_btn_click_ChooseReject,gml_Script_btn_click_ChooseReject,gml_GlobalScript_btn_click_Continue,gml_Script_btn_click_Continue,gml_Script_btn_click_SimGame,gml_GlobalScript_btn_click_Details_Continue,gml_Script_btn_click_Details_Continue,gml_GlobalScript_s_uniform_helpers,gml_Script_s_uniforms_default_file,gml_Script_s_extract_uniform_cols_to_record,gml_Script_s_uniform_cols_to_record,gml_Script_s_uniform_cols_from_record,gml_GlobalScript_btn_click_FrontOffice,gml_Script_btn_click_FrontOffice,
gml_GlobalScript_btn_click_FreeAgents2,gml_Script_btn_click_FreeAgents2,gml_GlobalScript_btn_click_HallOfFame,gml_Script_btn_click_HallOfFame,gml_GlobalScript_btn_click_Home,gml_Script_btn_click_Home,gml_Script_btn_click_Options_Exit,gml_GlobalScript_btn_click_League,gml_Script_btn_click_League,gml_GlobalScript_btn_click_Options,gml_Script_btn_click_Options,gml_GlobalScript_btn_click_Profile,gml_Script_btn_click_Profile,gml_GlobalScript_btn_click_ChooseFace,gml_Script_btn_click_ChooseFace,gml_Script_s_goto_rm_choose_face,
gml_GlobalScript_btn_click_ChooseFacePrev,gml_Script_btn_click_ChooseFacePrev,gml_GlobalScript_btn_click_ChooseFaceNext,gml_Script_btn_click_ChooseFaceNext,gml_GlobalScript_btn_click_ChooseFaceDone,gml_Script_btn_click_ChooseFaceDone,gml_Script_btn_click_cancel_chooseface,gml_GlobalScript_btn_click_Uniforms,gml_Script_btn_click_Uniforms,gml_GlobalScript_btn_click_Uniform_Away,gml_Script_btn_click_Uniform_Away,gml_GlobalScript_btn_click_Uniform_Home,gml_Script_btn_click_Uniform_Home,gml_GlobalScript__poki_rewarded_ad,
gml_Script__poki_rewarded_ad,gml_GlobalScript_btn_click_BallStyle,gml_Script_btn_click_BallStyle,gml_GlobalScript_btn_click_LeagueReportNext,gml_Script_btn_click_LeagueReportNext,gml_GlobalScript_btn_click_LeagueReportPrev,gml_Script_btn_click_LeagueReportPrev,gml_GlobalScript_btn_click_OptionsNewGame,gml_Script_btn_click_OptionsNewGame,gml_GlobalScript_btn_click_OptionsDriveLeft,gml_Script_btn_click_OptionsDriveLeft,gml_Script_btn_click_OptionsDriveLeft_Exh,gml_GlobalScript_btn_click_OptionsDriveRight,
gml_Script_btn_click_OptionsDriveRight,gml_GlobalScript_btn_click_OptionsDriveBoth,gml_Script_btn_click_OptionsDriveBoth,gml_GlobalScript_btn_click_OptionsScanlines,gml_Script_btn_click_OptionsScanlines,gml_GlobalScript_btn_click_OptionsSoundFX,gml_Script_btn_click_OptionsSoundFX,gml_GlobalScript_btn_click_OptionsWeather,gml_Script_btn_click_OptionsWeather,gml_Script_btn_click_OptionsWeather_Exh,gml_GlobalScript_btn_click_OptionsReplays,gml_Script_btn_click_OptionsReplays,gml_GlobalScript_btn_click_OptionsZoom,
gml_Script_btn_click_OptionsZoom,gml_GlobalScript_btn_click_InvertedThrowing,gml_Script_btn_click_InvertedThrowing,gml_GlobalScript_btn_click_OptionsMatchLength,gml_Script_btn_click_OptionsMatchLength,gml_Script_btn_click_OptionsMatchLength_Exh,gml_GlobalScript_btn_click_OptionsTeamEditor,gml_Script_btn_click_OptionsTeamEditor,gml_GlobalScript_btn_click_OptionsDifficulty,gml_Script_btn_click_OptionsDifficulty,gml_GlobalScript_btn_click_OptionsSalaryCap,gml_Script_btn_click_OptionsSalaryCap,gml_Script_salary_cap_toggle_roster_size,
gml_GlobalScript_chk_click_gamepad,gml_Script_chk_click_gamepad,gml_GlobalScript_btn_click_PlayerProfile,gml_Script_btn_click_PlayerProfile,gml_GlobalScript_btn_click_PlayerProfile_Back,gml_Script_btn_click_PlayerProfile_Back,gml_GlobalScript_btn_click_ProfilePrev,gml_Script_btn_click_ProfilePrev,gml_GlobalScript_btn_click_MeetingPrev,gml_Script_btn_click_MeetingPrev,gml_GlobalScript_btn_click_ProfileNext,gml_Script_btn_click_ProfileNext,gml_GlobalScript_btn_click_MeetingNext,gml_Script_btn_click_MeetingNext,
gml_GlobalScript_btn_click_Profile_Back,gml_Script_btn_click_Profile_Back,gml_GlobalScript_btn_click_Profile_Pick,gml_Script_btn_click_Profile_Pick,gml_GlobalScript_btn_click_Profile_Cut,gml_Script_btn_click_Profile_Cut,gml_Script_btn_click_Profile_JefeBoost,gml_Script_s_JefeBoost,gml_GlobalScript_btn_click_Profile_Trade,gml_Script_btn_click_Profile_Trade,gml_GlobalScript_btn_click_Profile_Stats,gml_Script_btn_click_Profile_Stats,gml_GlobalScript_btn_click_Profile_Rest,gml_Script_btn_click_Profile_Rest,
gml_GlobalScript_btn_click_Profile_Not_Interested,gml_Script_btn_click_Profile_Not_Interested,gml_GlobalScript_btn_click_Profile_ScoutPlayer,gml_Script_btn_click_Profile_ScoutPlayer,gml_GlobalScript_btn_click_AddSkill,gml_Script_btn_click_AddSkill,gml_GlobalScript_btn_click_AddSpeed,gml_Script_btn_click_AddSpeed,gml_GlobalScript_btn_click_AddStrength,gml_Script_btn_click_AddStrength,gml_GlobalScript_btn_click_AddStamina,gml_Script_btn_click_AddStamina,gml_GlobalScript_btn_click_StatsNext,gml_Script_btn_click_StatsNext,
gml_GlobalScript_btn_click_StatsPrev,gml_Script_btn_click_StatsPrev,gml_GlobalScript_btn_click_StatsView1,gml_Script_btn_click_StatsView1,gml_GlobalScript_btn_click_StatsView2,gml_Script_btn_click_StatsView2,gml_GlobalScript_btn_click_EditProfile,gml_Script_btn_click_EditProfile,gml_GlobalScript_btn_click_Meeting_Morale,gml_Script_btn_click_Meeting_Morale,gml_GlobalScript_btn_click_Meeting_Condition,gml_Script_btn_click_Meeting_Condition,gml_GlobalScript_s_qb_mode_update_resting,gml_Script_s_qb_mode_update_resting,
gml_GlobalScript_btn_click_Meeting_LevelUp,gml_Script_btn_click_Meeting_LevelUp,gml_GlobalScript_btn_click_Meeting_ExtendContract,gml_Script_btn_click_Meeting_ExtendContract,gml_GlobalScript_btn_click_FieldGoal,gml_Script_btn_click_FieldGoal,gml_GlobalScript_btn_click_Running,gml_Script_btn_click_Running,gml_GlobalScript_btn_click_Passing,gml_Script_btn_click_Passing,gml_GlobalScript_s_get_happiness,gml_Script_s_get_happiness,gml_GlobalScript_btn_click_Training,gml_Script_btn_click_Training,gml_GlobalScript_btn_click_Roster,
gml_Script_btn_click_Roster,gml_GlobalScript_btn_click_Roster_Back,gml_Script_btn_click_Roster_Back,gml_Script_btn_click_Profile_Back_To_Draft,gml_Script_btn_click_Profile_Back_To_Draft_Continue,gml_GlobalScript_btn_click_DraftPrev,gml_Script_btn_click_DraftPrev,gml_GlobalScript_btn_click_DraftNext,gml_Script_btn_click_DraftNext,gml_GlobalScript_btn_click_DraftDone,gml_Script_btn_click_DraftDone,gml_GlobalScript_btn_click_FreeAgents,gml_Script_btn_click_FreeAgents,gml_GlobalScript_btn_click_FreeAgentsBack,
gml_Script_btn_click_FreeAgentsBack,gml_GlobalScript_btn_click_RestAll,gml_Script_btn_click_RestAll,gml_GlobalScript_btn_click_FreeAgentsNext,gml_Script_btn_click_FreeAgentsNext,gml_GlobalScript_btn_click_FreeAgentsPrev,gml_Script_btn_click_FreeAgentsPrev,gml_GlobalScript_btn_click_FreeAgentsReset,gml_Script_btn_click_FreeAgentsReset,gml_GlobalScript_btn_click_Boost_Morale,gml_Script_btn_click_Boost_Morale,gml_GlobalScript_btn_click_Boost_Condition,gml_Script_btn_click_Boost_Condition,gml_GlobalScript_btn_click_Boost_Salary_Cap,
gml_Script_btn_click_Boost_Salary_Cap,gml_GlobalScript_btn_click_LoadSlot1,gml_Script_btn_click_LoadSlot1,gml_GlobalScript_btn_click_LoadSlot2,gml_Script_btn_click_LoadSlot2,gml_GlobalScript_s_set_up_button_kickoff,gml_Script_s_set_up_button_kickoff,gml_Script_btn_kick_off,gml_Script_s_btn_kickoff_recenter,gml_GlobalScript_btn_click_LoadSlot3,gml_Script_btn_click_LoadSlot3,gml_GlobalScript_btn_click_LoadSlot4,gml_Script_btn_click_LoadSlot4,gml_GlobalScript_btn_click_LoadSlot5,gml_Script_btn_click_LoadSlot5,
gml_GlobalScript_btn_click_DeleteSlot1,gml_Script_btn_click_DeleteSlot1,gml_GlobalScript_btn_click_DeleteSlot2,gml_Script_btn_click_DeleteSlot2,gml_GlobalScript_btn_click_DeleteSlot3,gml_Script_btn_click_DeleteSlot3,gml_GlobalScript_btn_click_DeleteSlot4,gml_Script_btn_click_DeleteSlot4,gml_GlobalScript_btn_click_DeleteSlot5,gml_Script_btn_click_DeleteSlot5,gml_GlobalScript_btn_click_StaffProfile,gml_Script_btn_click_StaffProfile,gml_GlobalScript_btn_click_StaffProfileNext,gml_Script_btn_click_StaffProfileNext,
gml_GlobalScript_s_draw_gamepad_controls,gml_Script_s_draw_gamepad_controls,gml_GlobalScript_s_team_helpers,gml_Script_s_teams_file,gml_GlobalScript_btn_click_StaffProfilePrev,gml_Script_btn_click_StaffProfilePrev,gml_GlobalScript_btn_click_StaffProfileBack,gml_Script_btn_click_StaffProfileBack,gml_GlobalScript_btn_click_HireStaff,gml_Script_btn_click_HireStaff,gml_GlobalScript_btn_click_ViewHires,gml_Script_btn_click_ViewHires,gml_GlobalScript_btn_click_ViewHiresProfile,gml_Script_btn_click_ViewHiresProfile,
gml_GlobalScript_btn_click_ViewHiresBack,gml_Script_btn_click_ViewHiresBack,gml_GlobalScript_btn_click_ViewHiresReset,gml_Script_btn_click_ViewHiresReset,gml_GlobalScript_btn_click_TrainingLight,gml_Script_btn_click_TrainingLight,gml_GlobalScript_btn_click_TrainingNormal,gml_Script_btn_click_TrainingNormal,gml_GlobalScript_btn_click_TrainingHard,gml_Script_btn_click_TrainingHard,gml_GlobalScript_btn_click_XP_Continue,gml_Script_btn_click_XP_Continue,gml_GlobalScript_btn_click_XP_Back,gml_Script_btn_click_XP_Back,
gml_GlobalScript_btn_response_quit_yes,gml_Script_btn_response_quit_yes,gml_GlobalScript_btn_response_newgame_commit,gml_Script_btn_response_newgame_commit,gml_GlobalScript_btn_response_kick_no,gml_Script_btn_response_kick_no,gml_GlobalScript_btn_response_punt_yes,gml_Script_btn_response_punt_yes,gml_GlobalScript_btn_response_fg_yes,gml_Script_btn_response_fg_yes,gml_GlobalScript_btn_response_1pt,gml_Script_btn_response_1pt,gml_GlobalScript_btn_response_2pt,gml_Script_btn_response_2pt,gml_GlobalScript_btn_response_onsidekick_no,
gml_Script_btn_response_onsidekick_no,gml_GlobalScript_btn_response_onsidekick_yes,gml_Script_btn_response_onsidekick_yes,gml_GlobalScript_btn_response_cut_player_yes,gml_Script_btn_response_cut_player_yes,gml_GlobalScript_btn_response_skip_draft_yes,gml_Script_btn_response_skip_draft_yes,gml_GlobalScript_btn_response_pick_player_yes,gml_Script_btn_response_pick_player_yes,gml_GlobalScript_btn_click_OptionsKickReturns,gml_Script_btn_click_OptionsKickReturns,gml_Script_btn_click_OptionsKickReturns_Exh,
gml_GlobalScript_btn_response_in_trade_player_yes,gml_Script_btn_response_in_trade_player_yes,gml_GlobalScript_btn_response_out_trade_player_yes,gml_Script_btn_response_out_trade_player_yes,gml_GlobalScript_btn_response_out_trade_player_no,gml_Script_btn_response_out_trade_player_no,gml_GlobalScript_btn_response_player_meeting_morale_yes,gml_Script_btn_response_player_meeting_morale_yes,gml_GlobalScript_btn_response_player_meeting_condition_yes,gml_Script_btn_response_player_meeting_condition_yes,
gml_GlobalScript_btn_response_player_meeting_levelup_yes,gml_Script_btn_response_player_meeting_levelup_yes,gml_GlobalScript_btn_response_player_meeting_extend_contract,gml_Script_btn_response_player_meeting_extend_contract,gml_GlobalScript_btn_response_boost_morale,gml_Script_btn_response_boost_morale,gml_GlobalScript_btn_response_boost_condition,gml_Script_btn_response_boost_condition,gml_GlobalScript_btn_response_boost_salary_cap,gml_Script_btn_response_boost_salary_cap,gml_GlobalScript_s_confirm_upgrade_stadium,
gml_Script_s_confirm_upgrade_stadium,gml_GlobalScript_s_confirm_upgrade_training,gml_Script_s_confirm_upgrade_training,gml_GlobalScript_s_confirm_upgrade_rehab,gml_Script_s_confirm_upgrade_rehab,gml_GlobalScript_btn_response_hirestaff,gml_Script_btn_response_hirestaff,gml_GlobalScript_btn_response_clearfreeagents,gml_Script_btn_response_clearfreeagents,gml_GlobalScript_btn_response_rest_player_yes,gml_Script_btn_response_rest_player_yes,gml_GlobalScript_btn_response_cointoss_kick,gml_Script_btn_response_cointoss_kick,
gml_GlobalScript_btn_response_cointoss_receive,gml_Script_btn_response_cointoss_receive,gml_GlobalScript_btn_response_skip_tutorial,gml_Script_btn_response_skip_tutorial,gml_GlobalScript_btn_response_confirm_new_team,gml_Script_btn_response_confirm_new_team,gml_GlobalScript_s_store_cant_afford,gml_Script_s_store_cant_afford,gml_GlobalScript_s_tip_continue,gml_Script_s_tip_continue,gml_GlobalScript_s_qb_mode_auto_xp,gml_Script_s_qb_mode_auto_xp,gml_GlobalScript_s_confirm_staff_hire_reset,gml_Script_s_confirm_staff_hire_reset,
gml_GlobalScript_s_confirm_freeagent_hire_reset,gml_Script_s_confirm_freeagent_hire_reset,gml_GlobalScript_btn_response_deletegame1,gml_Script_btn_response_deletegame1,gml_GlobalScript_btn_response_deletegame2,gml_Script_btn_response_deletegame2,gml_GlobalScript_btn_response_deletegame3,gml_Script_btn_response_deletegame3,gml_GlobalScript_btn_response_deletegame4,gml_Script_btn_response_deletegame4,gml_GlobalScript_btn_response_deletegame5,gml_Script_btn_response_deletegame5,gml_GlobalScript_s_simming_action,
gml_Script_s_simming_action,gml_GlobalScript_btn_response_hof_select,gml_Script_btn_response_hof_select,gml_GlobalScript_btn_response_records_reset,gml_Script_btn_response_records_reset,gml_GlobalScript_btn_match_kick,gml_Script_btn_match_kick,gml_Script_btn_match_goforit,gml_Script_btn_match_gofor1pt,gml_GlobalScript_s_do_prematch_dilemma,gml_Script_s_do_prematch_dilemma,gml_Script_s_create_dilemma_news,gml_Script_s_clear_msg_and_back,gml_Script_s_get_standard_dilemmas,gml_Script_s_get_college_dilemmas,
gml_GlobalScript_s_do_postmatch_dilemma,gml_Script_s_do_postmatch_dilemma,gml_GlobalScript_s_parse_dilemma,gml_Script_s_parse_dilemma,gml_GlobalScript_s_create_dilemma,gml_Script_s_create_dilemma,gml_GlobalScript_s_choose_dilemma,gml_Script_s_choose_dilemma,gml_Script_s_extract_dilemma_from_pool,gml_Script_s_add_to_choose_dilemma_list,gml_Script_s_reject_dilemma_not_enough_RC,gml_GlobalScript_s_dilemma_choice_1,gml_Script_s_dilemma_choice_1,gml_GlobalScript_s_dilemma_choice_2,gml_Script_s_dilemma_choice_2,
gml_GlobalScript_s_dilemma_choice,gml_Script_s_dilemma_choice,gml_Script_s_cut_player_end,gml_Script_s_cut_player_end_gpa,gml_Script_s_cut_player_end_toxic,gml_Script_s_cut_player_end_party,gml_Script_s_cut_player_end_toxic_max,gml_Script_s_cut_player_end_party_max,gml_Script_s_dilemma_morecc_store,gml_Script_s_dilemma_morecc_back,gml_Script_s_dilemma_end,gml_Script_s_dilemma_college_check_chained,gml_GlobalScript_s_convert_string_to_sprite,gml_Script_s_convert_string_to_sprite,gml_GlobalScript_s_sort_list_by_column,
gml_Script_s_sort_maplist_by_numeric_field,gml_GlobalScript_s_check_draft,gml_Script_s_check_draft,gml_GlobalScript_s_create_draftlist,gml_Script_s_create_draftlist,gml_GlobalScript_s_sound_audience_tck,gml_Script_s_sound_audience_tck,gml_GlobalScript_s_create_freeagentlist,gml_Script_s_create_freeagentlist,gml_GlobalScript_s_create_freeagent,gml_Script_s_create_freeagent,gml_GlobalScript_s_create_tradelist,gml_Script_s_create_tradelist,gml_GlobalScript_s_create_storelist,gml_Script_s_create_storelist,
gml_GlobalScript_s_create_player_storelist,gml_Script_s_create_player_storelist,gml_GlobalScript_s_count_hires_by_position,gml_Script_s_count_hires_by_position,gml_GlobalScript_s_count_players_by_position_store,gml_Script_s_count_players_by_position_store,gml_GlobalScript_s_get_hire_shortlist,gml_Script_s_get_hire_shortlist,gml_GlobalScript_s_reset_draft_picks,gml_Script_s_reset_draft_picks,gml_GlobalScript_poki_btn_click_CoinBoost,gml_Script_poki_btn_click_CoinBoost,gml_Script_poki_CoinBoost_No,
gml_Script_poki_CoinBoost_Yes,gml_GlobalScript_s_update_draft_page,gml_Script_s_update_draft_page,gml_GlobalScript_s_update_freeagents_page,gml_Script_s_update_freeagents_page,gml_GlobalScript_s_college_admissions_draft,gml_Script_s_check_draft_CO,gml_Script_s_college_free_agent_check,gml_Script_btn_respose_college_free_agent_yes,gml_Script_s_college_dilemma_check,gml_Script_s_college_admissions_check_trigger,gml_Script_s_college_admissions_pick_player,gml_Script_s_college_admissions_players_lost_per_round,
gml_Script_s_college_admissions_draft_done,gml_Script_btn_response_college_admissions_draft_done_yes,gml_GlobalScript_s_remaining_picks,gml_Script_s_remaining_picks,gml_GlobalScript_s_remaining_picks_by_round,gml_Script_s_remaining_picks_by_round,gml_GlobalScript_s_get_trade_value,gml_Script_s_get_trade_value,gml_GlobalScript_s_get_trade_value_by_rating,gml_Script_s_get_trade_value_by_rating,gml_GlobalScript_s_get_offer_team,gml_Script_s_get_offer_team,gml_GlobalScript_s_clear_trade_offers,gml_Script_s_clear_trade_offers,
gml_GlobalScript_s_clear_freeagents,gml_Script_s_clear_freeagents,gml_GlobalScript_s_clear_storelist,gml_Script_s_clear_storelist,gml_GlobalScript_s_end_draft_round,gml_Script_s_end_draft_round,gml_Script_s_destroy_draftlist,gml_GlobalScript_s_received_AI_kickoff,gml_Script_s_received_AI_kickoff,gml_GlobalScript_s_update_contracts,gml_Script_s_update_contracts,gml_Script_s_check_staff_exist,gml_GlobalScript_s_aim_AI_kickoff,gml_Script_s_aim_AI_kickoff,gml_GlobalScript_btn_click_SeasonReview,gml_Script_btn_click_SeasonReview,
gml_GlobalScript_s_get_new_salary,gml_Script_s_get_new_salary,gml_GlobalScript_s_check_expired_contract_message,gml_Script_s_check_expired_contract_message,gml_GlobalScript_s_get_salary_cap_space,gml_Script_s_get_salary_cap_space,gml_GlobalScript_s_create_new_save,gml_Script_s_create_new_save,gml_Script_s_regen_clean_save_mode_dependent_data,gml_Script_s_load_co_mode_files,gml_GlobalScript_s_loadgame,gml_Script_s_loadgame,gml_Script_s_is_player_pmap_corrupt,gml_Script_s_check_for_return_stats,gml_Script_s_check_longest_records,
gml_Script_s_update_ui_colours,gml_Script_s_update_game_title,gml_GlobalScript_s_savegame,gml_Script_s_savegame,gml_GlobalScript_s_create_map_options,gml_Script_s_create_map_options,gml_GlobalScript_s_count_full_seasons,gml_Script_s_count_full_seasons,gml_Script_s_count_games_coached,gml_Script_s_count_games_simmed,gml_Script_s_count_fixtures_played,gml_GlobalScript_s_load_options,gml_Script_s_load_options,gml_GlobalScript_s_save_options,gml_Script_s_save_options,gml_GlobalScript_s_save_backup,gml_Script_s_save_backup,
gml_GlobalScript_s_load_map_file,gml_Script_s_load_map_file,gml_GlobalScript_s_update_maplist_from_file,gml_Script_s_update_maplist_from_file,gml_GlobalScript_s_load_strings,gml_Script_s_refresh_strings,gml_Script_s_load_strings,gml_Script_s_select_lang,gml_Script_s_select_lang_file,gml_Script_s_select_override_lang_file,gml_Script_s_add_file_to_lang_strings,gml_GlobalScript_s_load_teams,gml_Script_s_load_teams,gml_GlobalScript_s_load_team_detail,gml_Script_s_load_team_detail,gml_GlobalScript_s_load_retrobowl_hof,
gml_Script_s_load_retrobowl_hof,gml_GlobalScript_s_load_retrobowl_history,gml_Script_s_load_retrobowl_history,gml_GlobalScript_s_load_schedule,gml_Script_s_load_schedule,gml_GlobalScript_s_get_savename,gml_Script_s_get_savename,gml_GlobalScript_s_get_string_save_details,gml_Script_s_get_string_save_details,gml_GlobalScript_s_destroy_master,gml_Script_s_destroy_master,gml_GlobalScript_s_save_uniform_file2,gml_Script_s_save_uniform_file2,gml_GlobalScript_s_load_uniform_file2,gml_Script_s_load_uniform_file2,
gml_GlobalScript_s_load_teamname_from_uniform_file,gml_Script_s_load_teamname_from_uniform_file,gml_GlobalScript_s_load_endzone_from_uniform_file,gml_Script_s_load_endzone_from_uniform_file,gml_GlobalScript_s_create_my_fixture_list,gml_Script_s_create_my_fixture_list,gml_GlobalScript_s_create_fixdata,gml_Script_s_create_fixdata,gml_GlobalScript_s_do_schedule,gml_Script_s_do_schedule,gml_GlobalScript_s_create_playoffs,gml_Script_s_create_playoffs,gml_GlobalScript_s_create_playoffs2,gml_Script_s_create_playoffs2,
gml_GlobalScript_s_playoffs_12,gml_Script_s_playoffs_12,gml_GlobalScript_s_get_week_superbowl,gml_Script_s_get_week_superbowl,gml_GlobalScript_s_do_playoff_schedule,gml_Script_s_do_playoff_schedule,gml_Script_s_get_retrobowl_mvp_winner,gml_GlobalScript_s_get_random_scoredata,gml_Script_s_get_random_scoredata,gml_GlobalScript_s_promote_playoff_winner,gml_Script_s_promote_playoff_winner,gml_Script_s_seed_divisional_round,gml_GlobalScript_s_add_to_human_fixtures,gml_Script_s_add_to_human_fixtures,gml_GlobalScript_s_update_human_playoff_fixtures,
gml_Script_s_update_human_playoff_fixtures,gml_Script_s_check_rearranged_human_playoff,gml_Script_s_update_human_fixtures,gml_GlobalScript_s_get_playoff_fixture_by_week,gml_Script_s_get_playoff_fixture_by_week,gml_GlobalScript_s_get_human_fixture_by_week,gml_Script_s_get_human_fixture_by_week,gml_GlobalScript_s_get_human_fixture_previous,gml_Script_s_get_human_fixture_previous,gml_GlobalScript_exhibition_scripts,gml_Script_btn_click_exhibition_start,gml_Script_btn_click_exhibition_exit,gml_Script_s_set_up_uniforms_exhibition,
gml_Script_s_create_exhibition_fixture,gml_Script_btn_click_exhibition_controller_0,gml_Script_btn_click_exhibition_controller_1,gml_Script_s_update_exhibition_controllers,gml_Script_btn_click_ChangeTeamAway,gml_Script_btn_click_ChangeTeamHome,gml_Script_btn_click_Exhibition_Play,gml_Script_s_update_options_exh,gml_Script_s_force_kick_direction,gml_Script_s_count_audibles,gml_Script_s_update_audibles,gml_Script_s_set_audibles,gml_Script_s_count_timeouts,gml_Script_s_update_timeouts,gml_Script_s_set_timeouts,
gml_GlobalScript_s_get_human_fixture_next,gml_Script_s_get_human_fixture_next,gml_GlobalScript_s_count_remaining_fixtures,gml_Script_s_count_remaining_fixtures,gml_GlobalScript_s_get_division_winner,gml_Script_s_get_division_winner,gml_GlobalScript_s_get_team_position_by_id,gml_Script_s_get_team_position_by_id,gml_GlobalScript_s_get_division_winner_name,gml_Script_s_get_division_winner_name,gml_GlobalScript_s_get_division_winner_by_seed,gml_Script_s_get_division_winner_by_seed,gml_GlobalScript_s_get_division_winner_name_by_seed,
gml_Script_s_get_division_winner_name_by_seed,gml_GlobalScript_s_skip_to_week,gml_Script_s_skip_to_week,gml_GlobalScript_s_clear_playoff_fixtures,gml_Script_s_clear_playoff_fixtures,gml_GlobalScript_s_update_team_edit_buttons,gml_Script_s_update_team_edit_buttons,gml_GlobalScript_s_set_up_edit_screen,gml_Script_s_set_up_edit_screen,gml_GlobalScript_s_color_picker,gml_Script_s_color_picker,gml_GlobalScript_s_set_up_uniforms,gml_Script_s_set_up_uniforms,gml_GlobalScript_s_set_up_uniforms_training,
gml_Script_s_set_up_uniforms_training,gml_GlobalScript_s_set_up_uniform_profile,gml_Script_s_set_up_uniform_profile,gml_GlobalScript_s_shader_get_uniforms,gml_Script_s_shader_get_uniforms,gml_GlobalScript_s_shader_set_uniforms,gml_Script_s_shader_set_uniforms,gml_GlobalScript_s_convert_uniform_colours_all,gml_Script_s_convert_uniform_colours_all,gml_GlobalScript_s_convert_uniform_colour,gml_Script_s_convert_uniform_colour,gml_GlobalScript_s_restore_uniforms_all,gml_Script_s_restore_uniforms_all,
gml_GlobalScript_s_copy_uniforms_slot_a,gml_Script_s_copy_uniforms_slot_a,gml_GlobalScript_s_copy_uniforms_slot_b,gml_Script_s_copy_uniforms_slot_b,gml_GlobalScript_s_copy_uniforms_slot_c,gml_Script_s_copy_uniforms_slot_c,gml_GlobalScript_s_copy_uniforms_slot_d,gml_Script_s_copy_uniforms_slot_d,gml_GlobalScript_s_set_up_kickoff,gml_Script_s_set_up_kickoff,gml_GlobalScript_s_copy_uniforms_slot_e,gml_Script_s_copy_uniforms_slot_e,gml_GlobalScript_s_update_uniform_name,gml_Script_s_update_uniform_name,
gml_GlobalScript_s_copy_teamnames_from_uniform_file,gml_Script_s_copy_teamnames_from_uniform_file,gml_GlobalScript_s_edit_name,gml_Script_s_edit_name,gml_GlobalScript_btn_click_edit_div1,gml_Script_btn_click_edit_div1,gml_GlobalScript_btn_click_edit_div2,gml_Script_btn_click_edit_div2,gml_GlobalScript_btn_click_edit_div3,gml_Script_btn_click_edit_div3,gml_GlobalScript_btn_click_edit_div4,gml_Script_btn_click_edit_div4,gml_GlobalScript_btn_click_edit_conf1,gml_Script_btn_click_edit_conf1,gml_GlobalScript_btn_click_edit_conf2,
gml_Script_btn_click_edit_conf2,gml_GlobalScript_s_edit_confirm_div1,gml_Script_s_edit_confirm_div1,gml_GlobalScript_s_edit_confirm_div2,gml_Script_s_edit_confirm_div2,gml_GlobalScript_s_edit_confirm_div3,gml_Script_s_edit_confirm_div3,gml_GlobalScript_s_edit_confirm_div4,gml_Script_s_edit_confirm_div4,gml_GlobalScript_s_edit_confirm_conf1,gml_Script_s_edit_confirm_conf1,gml_GlobalScript_s_edit_confirm_conf2,gml_Script_s_edit_confirm_conf2,gml_GlobalScript_s_populate_division,gml_Script_s_populate_division,
gml_GlobalScript_s_populate_schedulebox,gml_Script_s_populate_schedulebox,gml_GlobalScript_s_create_credit,gml_Script_s_create_credit,gml_GlobalScript_s_set_up_xp_headers,gml_Script_s_set_up_xp_headers,gml_GlobalScript_s_count_hof_entries,gml_Script_s_count_hof_entries,gml_GlobalScript_s_set_up_hof_players_screen,gml_Script_s_set_up_hof_players_screen,gml_GlobalScript_s_iap_init,gml_Script_s_iap_init,gml_GlobalScript_s_set_up_purchase_ids,gml_Script_s_set_up_purchase_ids,gml_GlobalScript_s_iap_async_android,
gml_Script_s_iap_async_android,gml_GlobalScript_s_iap_async_ios,gml_Script_s_iap_async_ios,gml_GlobalScript_s_iap_purchase_FullVersion,gml_Script_s_iap_purchase_FullVersion,gml_GlobalScript_s_set_position_kickoff,gml_Script_s_set_position_return_ko,gml_Script_s_set_position_take_ko,gml_GlobalScript_s_iap_purchase_Credits_20,gml_Script_s_iap_purchase_Credits_20,gml_GlobalScript_s_iap_purchase_Credits_50,gml_Script_s_iap_purchase_Credits_50,gml_GlobalScript_s_iap_purchase_Credits_100,gml_Script_s_iap_purchase_Credits_100,
gml_GlobalScript_s_iap_purchase_Credits_250,gml_Script_s_iap_purchase_Credits_250,gml_GlobalScript_s_iap_restore,gml_Script_s_iap_restore,gml_GlobalScript_s_open_store,gml_Script_s_open_store,gml_Script_s_btn_store_exit,gml_GlobalScript_s_open_store_nag,gml_Script_s_open_store_nag,gml_GlobalScript_s_do_nag_message,gml_Script_s_do_nag_message,gml_Script_s_do_ad_retrogoal,gml_GlobalScript_s_do_purchase_message,gml_Script_s_do_purchase_message,gml_GlobalScript_btn_step_check_fullversion,gml_Script_btn_step_check_fullversion,
gml_GlobalScript_btn_step_check_iaps,gml_Script_btn_step_check_iaps,gml_GlobalScript_s_freeze_purchase_buttons,gml_Script_s_freeze_purchase_buttons,gml_GlobalScript_s_unfreeze_purchase_buttons,gml_Script_s_unfreeze_purchase_buttons,gml_GlobalScript_s_do_info_position,gml_Script_s_do_info_position,gml_GlobalScript_s_do_info_skills,gml_Script_s_do_info_skills,gml_GlobalScript_s_do_info_coachtrait,gml_Script_s_do_info_coachtrait,gml_GlobalScript_s_do_info_draftpicks,gml_Script_s_do_info_draftpicks,
gml_GlobalScript_s_do_info,gml_Script_s_do_info,gml_GlobalScript_s_create_camera,gml_Script_s_create_camera,gml_GlobalScript_s_play,gml_Script_s_play,gml_GlobalScript_s_update_poki_scaling,gml_Script_s_update_poki_scaling,gml_GlobalScript_s_pre_match,gml_Script_s_pre_match,gml_Script_s_continue_time_for_draft_msg,gml_GlobalScript_s_player_profile_qb_mode,gml_Script_s_player_profile_qb_mode,gml_GlobalScript_s_do_next_week,gml_Script_s_do_next_week,gml_GlobalScript_s_start_new_season,gml_Script_s_start_new_season,
gml_Script_s_renew_contracts_qb_mode,gml_GlobalScript_s_update_team_buttons,gml_Script_s_update_team_buttons,gml_GlobalScript_s_update_job_offer_buttons,gml_Script_s_update_job_offer_buttons,gml_GlobalScript_s_update_options,gml_Script_s_update_options,gml_GlobalScript_s_get_attitude_icon,gml_Script_s_get_attitude_icon,gml_Script_s_attitude_reduce_step,gml_GlobalScript_s_get_credit,gml_Script_s_get_credit,gml_GlobalScript_s_decline_facilities,gml_Script_s_decline_facilities,gml_GlobalScript_s_do_result_news_qb,
gml_Script_s_do_result_news_qb,gml_Script_s_choose_news,gml_GlobalScript_s_reset_player_meetings,gml_Script_s_reset_player_meetings,gml_GlobalScript_s_has_xp_gain,gml_Script_s_has_xp_gain,gml_GlobalScript_s_is_bye_week,gml_Script_s_is_bye_week,gml_Script_s_get_bye_week,gml_GlobalScript_s_do_bye_week,gml_Script_s_do_bye_week,gml_GlobalScript_s_do_postmatch_effects,gml_Script_s_do_postmatch_effects,gml_GlobalScript_s_do_postmatch_fans,gml_Script_s_do_postmatch_fans,gml_Script_s_get_postmatch_fans_qb,
gml_GlobalScript_s_check_intro,gml_Script_s_check_intro,gml_GlobalScript_s_do_result_news,gml_Script_s_do_result_news,gml_GlobalScript_s_count_joboffers,gml_Script_s_count_joboffers,gml_GlobalScript_s_refresh_save_slots,gml_Script_s_refresh_save_slots,gml_GlobalScript_s_show_backups,gml_Script_s_show_backups,gml_Script_s_restore_backup1,gml_Script_s_restore_backup2,gml_Script_s_restore_backup3,gml_Script_s_restore_backup4,gml_Script_s_restore_backup5,gml_GlobalScript_s_team_interested,gml_Script_s_team_interested,
gml_Script_s_qb_mode_team_interested,gml_GlobalScript_s_update_history,gml_Script_s_update_history,gml_GlobalScript_s_update_history_finish,gml_Script_s_update_history_finish,gml_GlobalScript_age_scripts,gml_Script_s_rookie_age_internal,gml_Script_s_max_age_player_internal,gml_Script_s_max_age_qb_internal,gml_Script_s_get_max_age,gml_GlobalScript_s_update_history_playoffs,gml_Script_s_update_history_playoffs,gml_GlobalScript_s_get_history_by_year,gml_Script_s_get_history_by_year,gml_GlobalScript_s_update_music,
gml_Script_s_update_music,gml_GlobalScript_s_get_ticker_text,gml_Script_s_get_ticker_text,gml_GlobalScript_s_choose_random_face_for_me,gml_Script_s_choose_random_face_for_me,gml_GlobalScript_s_get_kick_direction,gml_Script_s_get_kick_direction,gml_GlobalScript_s_aiming,gml_Script_s_aiming,gml_GlobalScript_s_update_ball,gml_Script_s_update_ball,gml_GlobalScript_s_do_touchback,gml_Script_s_do_touchback,gml_GlobalScript_s_update_ball_fieldgoal,gml_Script_s_update_ball_fieldgoal,gml_GlobalScript_s_update_ball_movement,
gml_Script_s_update_ball_movement,gml_GlobalScript_s_update_ball_offset,gml_Script_s_update_ball_offset,gml_GlobalScript_s_is_ball_dead,gml_Script_s_is_ball_dead,gml_GlobalScript_s_check_ball_position,gml_Script_s_check_ball_position,gml_GlobalScript_s_check_ball_collision,gml_Script_s_check_ball_collision,gml_GlobalScript_s_check_tipped,gml_Script_s_check_tipped,gml_GlobalScript_s_drop_ball,gml_Script_s_drop_ball,gml_GlobalScript_s_check_dummy_collision,gml_Script_s_check_dummy_collision,gml_Script_s_sound_training_success,
gml_GlobalScript_s_kick_ball,gml_Script_s_kick_ball,gml_GlobalScript_s_spike_ball,gml_Script_s_spike_ball,gml_GlobalScript_s_set_ball_down,gml_Script_s_set_ball_down,gml_GlobalScript_s_receive_ball,gml_Script_s_receive_ball,gml_GlobalScript_s_opposite_aim,gml_Script_s_opposite_aim,gml_GlobalScript_s_update_xdead,gml_Script_s_update_xdead,gml_GlobalScript_s_set_skills_and_skin,gml_Script_s_set_skills_and_skin,gml_GlobalScript_s_set_anim,gml_Script_s_set_anim,gml_GlobalScript_s_set_position_offense,
gml_Script_s_set_position_offense,gml_GlobalScript_s_create_news_message,gml_Script_s_create_news_dyn_message,gml_GlobalScript_s_set_position_defense,gml_Script_s_set_position_defense,gml_GlobalScript_s_get_nearest_opponent_by_position,gml_Script_s_get_nearest_opponent_by_position,gml_GlobalScript_s_set_position_defense_fg,gml_Script_s_set_position_defense_fg,gml_GlobalScript_s_set_position_offense_fg,gml_Script_s_set_position_offense_fg,gml_GlobalScript_s_get_skin_colour_by_index,gml_Script_s_get_skin_colour_by_index,
gml_GlobalScript_s_point_to_path,gml_Script_s_point_to_path,gml_GlobalScript_s_intercept_object,gml_Script_s_intercept_object,gml_GlobalScript_s_cover_object,gml_Script_s_cover_object,gml_GlobalScript_s_get_nearest_opponent,gml_Script_s_get_nearest_opponent,gml_GlobalScript_s_aim_for_nearest_opponent,gml_Script_s_aim_for_nearest_opponent,gml_GlobalScript_s_get_distance_to_nearest_opponent,gml_Script_s_get_distance_to_nearest_opponent,gml_GlobalScript_s_get_distance_to_furthest_teammate,gml_Script_s_get_distance_to_furthest_teammate,
gml_GlobalScript_s_get_destination,gml_Script_s_get_destination,gml_GlobalScript_s_check_human_control,gml_Script_s_check_human_control,gml_Script_s_do_dive,gml_Script_s_do_stutterstep,gml_GlobalScript_s_check_tackling,gml_Script_s_check_tackling,gml_GlobalScript_s_stop_tackling,gml_Script_s_stop_tackling,gml_GlobalScript_s_check_dive,gml_Script_s_check_dive,gml_GlobalScript_s_get_quarterback,gml_Script_s_get_quarterback,gml_GlobalScript_s_get_kicker,gml_Script_s_get_kicker,gml_GlobalScript_s_can_run,
gml_Script_s_can_run,gml_GlobalScript_s_is_in_the_clear,gml_Script_s_is_in_the_clear,gml_GlobalScript_s_ball_holder_goalside,gml_Script_s_ball_holder_goalside,gml_GlobalScript_s_opponent_goalside,gml_Script_s_opponent_goalside,gml_GlobalScript_s_y_on_myside,gml_Script_s_y_on_myside,gml_GlobalScript_s_aim_AI_offense,gml_Script_s_aim_AI_offense,gml_GlobalScript_s_aim_AI_defense,gml_Script_s_aim_AI_defense,gml_GlobalScript_s_received_AI_new,gml_Script_s_received_AI_new,gml_GlobalScript_s_can_throw,
gml_Script_s_can_throw,gml_GlobalScript_s_sprite_holding_ball,gml_Script_s_sprite_holding_ball,gml_GlobalScript_s_is_falling,gml_Script_s_is_falling,gml_GlobalScript_is_defensiveback,gml_Script_is_defensiveback,gml_GlobalScript_s_get_qb_name,gml_Script_s_get_qb_name,gml_GlobalScript_s_get_kicker_name,gml_Script_s_get_kicker_name,gml_GlobalScript_s_get_holder_name,gml_Script_s_get_holder_name,gml_GlobalScript_s_get_opponent_team_tla,gml_Script_s_get_opponent_team_tla,gml_GlobalScript_s_set_up_play,
gml_Script_s_set_up_play,gml_Script_s_btn_audible_reposition,gml_Script_s_btn_fieldgoal_reposition,gml_GlobalScript_s_update_commentary,gml_Script_s_update_commentary,gml_Script_s_go_for_it_or_not,gml_Script_s_check_skip_time_button,gml_Script_btn_skip_time,gml_GlobalScript_s_choose_defensive_formation,gml_Script_s_choose_defensive_formation,gml_GlobalScript_s_set_up_fieldgoal,gml_Script_s_set_up_fieldgoal,gml_GlobalScript_s_subtract_time,gml_Script_s_subtract_time,gml_GlobalScript_s_update_game_timer,
gml_Script_s_update_game_timer,gml_GlobalScript_s_update_game_clock,gml_Script_s_update_game_clock,gml_GlobalScript_s_update_yard_gain,gml_Script_s_update_yard_gain,gml_GlobalScript_s_set_rewarded_route,gml_Script_s_set_rewarded_route,gml_GlobalScript_s_switch_drivedirection,gml_Script_s_switch_drivedirection,gml_GlobalScript_s_destroy_match_objects,gml_Script_s_destroy_match_objects,gml_GlobalScript_s_action_result,gml_Script_s_action_result,gml_GlobalScript_s_is_quarter_over,gml_Script_s_is_quarter_over,
gml_GlobalScript_s_is_on_pitch,gml_Script_s_is_on_pitch,gml_GlobalScript__poki_is_mobile,gml_Script__poki_is_mobile,gml_GlobalScript_s_is_on_pitch_xy,gml_Script_s_is_on_pitch_xy,gml_GlobalScript_s_end_match,gml_Script_s_end_match,gml_GlobalScript_s_update_stats,gml_Script_s_update_stats,gml_GlobalScript_s_convert_scrimmage_to_goal_distance,gml_Script_s_convert_scrimmage_to_goal_distance,gml_GlobalScript_s_kick_off,gml_Script_s_kick_off,gml_GlobalScript_s_punt,gml_Script_s_punt,gml_GlobalScript_s_change_possession,
gml_Script_s_change_possession,gml_GlobalScript_s_tackle_failure,gml_Script_s_tackle_failure,gml_GlobalScript_s_last_secs_of_half,gml_Script_s_last_secs_of_half,gml_Script_s_seconds_remaining,gml_GlobalScript_s_reset_wind,gml_Script_s_reset_wind,gml_GlobalScript_s_change_wind,gml_Script_s_change_wind,gml_GlobalScript_s_force_quit,gml_Script_s_force_quit,gml_GlobalScript_s_do_audible,gml_Script_s_do_audible,gml_GlobalScript_s_do_timeout,gml_Script_s_do_timeout,gml_GlobalScript_s_check_win_after_turnover,
gml_Script_s_check_win_after_turnover,gml_Script_s_both_teams_had_possession,gml_GlobalScript_s_clear_clock,gml_Script_s_clear_clock,gml_GlobalScript_s_fieldtxt,gml_Script_s_fieldtxt,gml_Script_s_fieldtxt_yards,gml_Script_s_fieldimg,gml_GlobalScript_s_fieldtxt_yards,gml_GlobalScript_s_sound_audience_idle,gml_Script_s_sound_audience_idle,gml_GlobalScript_s_create_match_message,gml_Script_s_create_match_message,gml_Script_s_create_head2head_message,gml_GlobalScript_s_draw_commentary,gml_Script_s_draw_commentary,
gml_GlobalScript_s_draw_scoreboard,gml_Script_s_draw_scoreboard,gml_GlobalScript_s_draw_scrimmage,gml_Script_s_draw_scrimmage,gml_GlobalScript_s_draw_wind,gml_Script_s_draw_wind,gml_GlobalScript_s_draw_kicking_power,gml_Script_s_draw_kicking_power,gml_GlobalScript_s_draw_my_route,gml_Script_s_draw_my_route,gml_GlobalScript_s_draw_kick_cone,gml_Script_s_draw_kick_cone,gml_GlobalScript_s_check_draft_qb,gml_Script_s_check_draft_QB,gml_Script_s_do_qb_draft_round,gml_Script_s_get_weakest_player_by_position,
gml_Script_s_find_draft_player_by_position,gml_Script_s_get_player_by_position_for_qb_draft,gml_Script_s_do_contract_news,gml_Script_s_goto_room_contract,gml_Script_btn_qb_mode_interested_teams,gml_GlobalScript_s_update_my_shadow,gml_Script_s_update_my_shadow,gml_GlobalScript_s_set_up_practice,gml_Script_s_set_up_practice,gml_GlobalScript_s_practice_passing,gml_Script_s_practice_passing,gml_GlobalScript_s_reinstate_hof_player,gml_Script_s_reinstate_hof_player,gml_GlobalScript_s_practice_running,
gml_Script_s_practice_running,gml_GlobalScript_s_practice_running_qb,gml_Script_s_practice_running_qb,gml_GlobalScript_s_create_dummy,gml_Script_s_create_dummy,gml_GlobalScript_s_create_boundary,gml_Script_s_create_boundary,gml_GlobalScript_debug_scripts,gml_Script_s_debug_window_size,gml_GlobalScript_s_sound_kick,gml_Script_s_sound_kick,gml_GlobalScript_s_sound_throw,gml_Script_s_sound_throw,gml_GlobalScript_s_sound_post,gml_Script_s_sound_post,gml_GlobalScript_s_sound_audience_dis,gml_Script_s_sound_audience_dis,
gml_GlobalScript_s_sound_audience_fg,gml_Script_s_sound_audience_fg,gml_GlobalScript_s_sound_bounce,gml_Script_s_sound_bounce,gml_GlobalScript_s_sound_tackle,gml_Script_s_sound_tackle,gml_GlobalScript_s_sound_oof,gml_Script_s_sound_oof,gml_GlobalScript_s_sound_dive,gml_Script_s_sound_dive,gml_GlobalScript_s_sound_loop,gml_Script_s_sound_loop,gml_GlobalScript_s_qb_run,gml_Script_s_qb_run,gml_Script_s_qb_revert_throw,gml_GlobalScript_s_throw_ball,gml_Script_s_throw_ball,gml_GlobalScript_s_record_frame,
gml_Script_s_record_frame,gml_GlobalScript_s_replay_frame,gml_Script_s_replay_frame,gml_GlobalScript_s_start_replay,gml_Script_s_start_replay,gml_GlobalScript_s_end_replay,gml_Script_s_end_replay,gml_GlobalScript_s_get_qb_pmap,gml_Script_s_get_qb_pmap,gml_GlobalScript_s_create_message,gml_Script_s_create_message,gml_Script_s_message_recenter,gml_Script_s_create_message3,gml_Script_s_do_message,gml_Script_s_msg,gml_GlobalScript_s_meter_change,gml_Script_s_meter_change,gml_GlobalScript_s_meter_change_end,
gml_Script_s_meter_change_end,gml_GlobalScript_s_notification,gml_Script_s_notification,gml_GlobalScript_s_msg_clear,gml_Script_s_msg_clear,gml_GlobalScript_s_msg_clear_info_draft,gml_Script_s_msg_clear_info_draft,gml_GlobalScript_s_add_news,gml_Script_s_add_news,gml_Script_s_add_news_if_new,gml_Script_s_remove_news,gml_Script_s_add_news_dyn,gml_GlobalScript_s_check_for_news,gml_Script_s_check_for_news,gml_GlobalScript_s_news_clear,gml_Script_s_news_clear,gml_GlobalScript_s_do_banner_draft,gml_Script_s_do_banner_draft,
gml_Script_s_do_banner_season_review,gml_GlobalScript_s_do_review_message,gml_Script_s_do_review_message,gml_GlobalScript_btn_response_review_yes,gml_Script_btn_response_review_yes,gml_Script_btn_response_review_no,gml_GlobalScript_s_edit_field,gml_Script_s_edit_field,gml_GlobalScript_s_edit_cancel,gml_Script_s_edit_cancel,gml_GlobalScript_s_edit_confirm_profile,gml_Script_s_edit_confirm_profile,gml_Script_s_update_boss_profile,gml_GlobalScript_s_msg_timeouts,gml_Script_s_msg_timeouts,gml_GlobalScript_s_get_record,
gml_Script_s_get_record,gml_GlobalScript_s_check_record,gml_Script_s_check_record,gml_GlobalScript_s_check_record_text,gml_Script_s_check_record_text,gml_GlobalScript_s_sort_record_list,gml_Script_s_sort_record_list,gml_GlobalScript_s_get_player_name_for_record,gml_Script_s_get_player_name_for_record,gml_GlobalScript_s_check_repeat_retrobowls,gml_Script_s_check_repeat_retrobowls,gml_GlobalScript_s_create_player,gml_Script_s_create_player_get_RC_cost,gml_Script_s_create_player,gml_GlobalScript_s_sort_players,
gml_Script_s_sort_players,gml_GlobalScript_s_create_new_roster,gml_Script_s_create_new_roster,gml_GlobalScript_s_create_new_roster_newteam,gml_Script_s_create_new_roster_newteam,gml_GlobalScript_s_lastname_already_on_roster,gml_Script_s_lastname_already_on_roster,gml_GlobalScript_s_position_already_on_roster,gml_Script_s_position_already_on_roster,gml_GlobalScript_s_get_required_position,gml_Script_s_get_required_position,gml_Script_s_get_required_position_no_QB_RB,gml_GlobalScript_s_get_player_rating,
gml_Script_s_get_player_rating,gml_GlobalScript_s_get_player_potential,gml_Script_s_get_player_potential,gml_GlobalScript_s_obj_player_draw_begin,gml_Script_s_obj_player_draw_begin,gml_GlobalScript_s_get_player_by_position,gml_Script_s_get_player_by_position,gml_Script_s_get_player_kick_returner,gml_GlobalScript_s_get_player_by_lname,gml_Script_s_get_player_by_lname,gml_GlobalScript_s_get_random_player,gml_Script_s_get_random_player,gml_GlobalScript_s_get_random_player_by_position,gml_Script_s_get_random_player_by_position,
gml_GlobalScript_s_get_random_player_defensive,gml_Script_s_get_random_player_defensive,gml_GlobalScript_s_get_random_player_offensive,gml_Script_s_get_random_player_offensive,gml_GlobalScript_s_get_random_coach,gml_Script_s_get_random_coach,gml_GlobalScript_btn_click_qb_items,gml_Script_btn_click_qb_items,gml_Script_btn_click_qb_vehicles,gml_Script_btn_click_qb_property,gml_GlobalScript_s_count_players_by_position,gml_Script_s_count_players_by_position,gml_GlobalScript_s_count_players_onfield_by_position,
gml_Script_s_count_players_onfield_by_position,gml_GlobalScript_s_count_defenders,gml_Script_s_count_defenders,gml_GlobalScript_btn_click_OptionsControls,gml_Script_btn_click_OptionsControls,gml_Script_btn_click_OptionsControls1,gml_Script_btn_click_OptionsControls2,gml_Script_btn_click_OptionsControls3,gml_Script_s_update_control_screen,gml_GlobalScript_s_get_position_colour,gml_Script_s_get_position_colour,gml_GlobalScript_s_increase_player_attribute,gml_Script_s_increase_player_attribute,gml_GlobalScript_s_player_at_max_potential,
gml_Script_s_player_at_max_potential,gml_GlobalScript_s_is_offensive_player,gml_Script_s_is_offensive_player,gml_Script_s_get_training_reg,gml_GlobalScript_s_is_defensive_player,gml_Script_s_is_defensive_player,gml_GlobalScript_s_get_average_yards,gml_Script_s_get_average_yards,gml_GlobalScript_s_get_player_name,gml_Script_s_get_player_name,gml_GlobalScript_s_get_meeting_cost_morale,gml_Script_s_get_meeting_cost_morale,gml_GlobalScript_s_get_meeting_cost_condition,gml_Script_s_get_meeting_cost_condition,
gml_GlobalScript_s_get_meeting_cost_levelup,gml_Script_s_get_meeting_cost_levelup,gml_GlobalScript_s_get_meeting_cost_delay_retirement,gml_Script_s_get_meeting_cost_delay_retirement,gml_GlobalScript_s_get_meeting_cost_extend_contract,gml_Script_s_get_meeting_cost_extend_contract,gml_GlobalScript_s_get_match_rating,gml_Script_s_get_match_rating,gml_GlobalScript_s_reset_match_stats,gml_Script_s_reset_match_stats,gml_GlobalScript_s_toxic_effect_on_morale,gml_Script_s_toxic_effect_on_morale,gml_GlobalScript_s_match_rating_effect_on_morale,
gml_Script_s_match_rating_effect_on_morale,gml_GlobalScript_s_training_regime_effect_on_morale,gml_Script_s_training_regime_effect_on_morale,gml_GlobalScript_s_injury_effect_on_attitude,gml_Script_s_injury_effect_on_attitude,gml_GlobalScript_s_rehab_effect,gml_Script_s_rehab_effect,gml_GlobalScript_s_add_xp_gain_all,gml_Script_s_add_xp_gain_all,gml_GlobalScript_s_check_for_injury,gml_Script_s_check_for_injury,gml_GlobalScript_s_count_injuries,gml_Script_s_count_injuries,gml_GlobalScript_s_count_injuries_weeks,
gml_Script_s_count_injuries_weeks,gml_GlobalScript_s_choose_face,gml_Script_s_choose_face,gml_GlobalScript_s_get_max_age,gml_GlobalScript_s_get_max_age_normal,gml_Script_s_get_max_age_normal,gml_GlobalScript_s_get_num_audibles,gml_Script_s_get_num_audibles,gml_GlobalScript_s_get_morale,gml_Script_s_get_morale,gml_GlobalScript_s_get_condition_squad,gml_Script_s_get_condition_squad,gml_GlobalScript_s_adjust_team_morale,gml_Script_s_adjust_team_morale,gml_GlobalScript_s_set_team_morale,gml_Script_s_set_team_morale,
gml_GlobalScript_s_position_edit_name_btn,gml_Script_s_position_edit_name_btn,gml_GlobalScript_s_update_rest_all_button,gml_Script_s_update_rest_all_button,gml_GlobalScript_s_all_players_resting,gml_Script_s_all_players_resting,gml_GlobalScript_s_rest_all_players,gml_Script_s_rest_all_players,gml_GlobalScript_s_tag_backups,gml_Script_s_tag_backups,gml_GlobalScript_s_is_backup,gml_Script_s_is_backup,gml_GlobalScript_s_do_player_awards,gml_Script_s_do_player_awards,gml_GlobalScript_s_award_sb_rings,
gml_Script_s_award_sb_rings,gml_GlobalScript_s_round_player_attributes,gml_Script_s_round_player_attributes,gml_GlobalScript_s_get_store_player_by_position,gml_Script_s_get_store_player_by_position,gml_GlobalScript_s_create_new_stafflist,gml_Script_s_create_new_stafflist,gml_GlobalScript_s_create_staff,gml_Script_s_create_staff,gml_Script_s_create_headcoach_pmap,gml_GlobalScript_s_create_hirelist,gml_Script_s_create_hirelist,gml_GlobalScript_s_sort_hirelist,gml_Script_s_sort_hirelist,gml_GlobalScript_s_reset_staff_hire_list,
gml_Script_s_reset_staff_hire_list,gml_GlobalScript_s_get_staff,gml_Script_s_get_staff,gml_GlobalScript_s_is_staff,gml_Script_s_is_staff,gml_GlobalScript_s_get_coach_cost,gml_Script_s_get_coach_cost,gml_GlobalScript_s_coach_trait_experience,gml_Script_s_coach_trait_experience,gml_GlobalScript_s_coach_trait_talentspotter,gml_Script_s_coach_trait_talentspotter,gml_GlobalScript_s_coach_trait_motivator,gml_Script_s_coach_trait_motivator,gml_GlobalScript_btn_click_qb_training,gml_Script_btn_click_qb_training,
gml_Script_s_do_qb_training,gml_GlobalScript_btn_click_GenerateCharacter,gml_Script_btn_click_GenerateCharacter,gml_GlobalScript_s_count_trait_fanfavorite,gml_Script_s_count_trait_fanfavorite,gml_GlobalScript_s_count_trait_scout,gml_Script_s_count_trait_scout,gml_GlobalScript_s_fire_coach,gml_Script_s_fire_coach,gml_GlobalScript_s_check_contracts_expiring,gml_Script_s_check_contracts_expiring,gml_GlobalScript_s_str,gml_Script_s_str,gml_Script_s_str_real,gml_GlobalScript_s_split_string,gml_Script_s_split_string,
gml_GlobalScript_s_parse_news,gml_Script_s_parse_news,gml_GlobalScript_s_parse_intro,gml_Script_s_parse_intro,gml_GlobalScript_s_parse_player_message,gml_Script_s_parse_player_message,gml_GlobalScript_s_strP,gml_Script_s_strP,gml_GlobalScript_s_sim_stat_increment,gml_Script_s_sim_stat_increment,gml_Script_s_sim_stat_update,gml_Script_s_sim_stat_touchdown,gml_Script_s_sim_stat_pass,gml_Script_s_sim_stat_run,gml_Script_s_sim_stat_fumble,gml_Script_s_sim_stat_interception,gml_Script_s_sim_stat_sack,
gml_GlobalScript_s_parse_string,gml_Script_s_parse_string,gml_GlobalScript_s_crop_text,gml_Script_s_crop_text,gml_GlobalScript_s_get_string_ball_state,gml_Script_s_get_string_ball_state,gml_GlobalScript_s_get_string_state,gml_Script_s_get_string_state,gml_GlobalScript_s_get_string_sex,gml_Script_s_get_string_sex,gml_GlobalScript_s_get_string_heshe,gml_Script_s_get_string_heshe,gml_GlobalScript_s_get_string_time,gml_Script_s_get_string_time,gml_GlobalScript_s_string_rand,gml_Script_s_string_rand,
gml_GlobalScript_s_get_string_downand,gml_Script_s_get_string_downand,gml_GlobalScript_s_get_string_float,gml_Script_s_get_string_float,gml_GlobalScript_s_get_string_division,gml_Script_s_get_string_division,gml_GlobalScript_s_get_string_conference,gml_Script_s_get_string_conference,gml_GlobalScript_s_get_string_week,gml_Script_s_get_string_week,gml_GlobalScript_s_get_string_week_short,gml_Script_s_get_string_week_short,gml_GlobalScript_s_get_string_year,gml_Script_s_get_string_year,gml_GlobalScript_s_get_string_commstage,
gml_Script_s_get_string_commstage,gml_GlobalScript_s_get_string_position,gml_Script_s_get_string_position,gml_GlobalScript_s_get_string_position_full,gml_Script_s_get_string_position_full,gml_GlobalScript_s_get_string_attitude,gml_Script_s_get_string_attitude,gml_GlobalScript_s_get_string_trade_value,gml_Script_s_get_string_trade_value,gml_GlobalScript_s_get_string_anim,gml_Script_s_get_string_anim,gml_GlobalScript_s_get_string_condition,gml_Script_s_get_string_condition,gml_GlobalScript_s_get_string_record,
gml_Script_s_get_string_record,gml_GlobalScript_s_get_string_trait,gml_Script_s_get_string_trait,gml_GlobalScript_s_get_string_action_result,gml_Script_s_get_string_action_result,gml_GlobalScript_s_can_touchback,gml_Script_s_can_touchback,gml_GlobalScript_s_get_string_performance,gml_Script_s_get_string_performance,gml_GlobalScript_s_get_random_teamname,gml_Script_s_get_random_teamname,gml_GlobalScript_btn_click_Roster_List,gml_Script_btn_click_Roster_List,gml_GlobalScript_s_get_string_picks,gml_Script_s_get_string_picks,
gml_GlobalScript_s_get_team_by_id,gml_Script_s_get_team_by_id,gml_GlobalScript_s_get_team_name_by_id,gml_Script_s_get_team_name_by_id,gml_GlobalScript_s_get_team_tla_by_id,gml_Script_s_get_team_tla_by_id,gml_GlobalScript_s_sort_teams,gml_Script_s_sort_teams,gml_GlobalScript_s_get_team_by_seed,gml_Script_s_get_team_by_seed,gml_Script_s_get_team_seeding,gml_GlobalScript_s_get_team_id_by_seed,gml_Script_s_get_team_id_by_seed,gml_GlobalScript_s_get_team_name_by_seed,gml_Script_s_get_team_name_by_seed,
gml_GlobalScript_s_get_team_offense,gml_Script_s_get_team_offense,gml_GlobalScript_s_get_defense_attribute,gml_Script_s_get_defense_attribute,gml_Script_s_get_attribute,gml_Script_s_attribute_buff,gml_GlobalScript_s_get_team_defense,gml_Script_s_get_team_defense,gml_GlobalScript_s_get_salary_total,gml_Script_s_get_salary_total,gml_GlobalScript_s_refactor_team_strengths,gml_Script_s_refactor_team_strengths,gml_GlobalScript_s_get_team_winpct,gml_Script_s_get_team_winpct,gml_GlobalScript_s_get_team_net_points,
gml_Script_s_get_team_net_points,gml_GlobalScript_s_get_points_versus,gml_Script_s_get_points_versus,gml_GlobalScript_s_get_wins_versus,gml_Script_s_get_wins_versus,gml_GlobalScript_s_get_point_swing,gml_Script_s_get_point_swing,gml_Script_s_get_head_to_head,gml_Script_s_get_win_pecentage_by_confdiv,gml_GlobalScript_s_get_points_season,gml_Script_s_get_points_season,gml_GlobalScript_s_practice_qb_mode,gml_Script_s_practice_qb_mode,gml_Script_s_end_qb_mode_practice,gml_Script_s_quit_qb_mode_practice,
gml_GlobalScript_s_col_hex_to_r,gml_Script_s_col_hex_to_r,gml_GlobalScript_s_col_hex_to_g,gml_Script_s_col_hex_to_g,gml_GlobalScript_s_col_hex_to_b,gml_Script_s_col_hex_to_b,gml_GlobalScript_s_hex_string_to_col,gml_Script_s_hex_string_to_col,gml_GlobalScript_s_rgb_to_bgr,gml_Script_s_rgb_to_bgr,gml_GlobalScript_s_set_up_globals,gml_Script_s_set_up_globals,gml_Script_s_set_up_temp_variables,gml_GlobalScript_slog,gml_Script_slog,gml_Script_slog2,gml_Script_slogf,gml_GlobalScript_s_sound,gml_Script_s_sound,
gml_GlobalScript_s_make_random_colour,gml_Script_s_make_random_colour,gml_GlobalScript_s_lines_intersect,gml_Script_s_lines_intersect,gml_GlobalScript_s_log_player,gml_Script_s_log_player,gml_GlobalScript_s_get_random_college_name,gml_Script_s_get_random_college_name,gml_GlobalScript_s_get_random_charity,gml_Script_s_get_random_charity,gml_GlobalScript_s_get_aim_direction,gml_Script_s_get_aim_direction,gml_GlobalScript_s_get_random_first_name,gml_Script_s_get_random_first_name,gml_GlobalScript_s_get_random_last_name,
gml_Script_s_get_random_last_name,gml_GlobalScript_s_format_hex_color,gml_Script_s_format_hex_color,gml_GlobalScript_s_color_to_hex,gml_Script_s_color_to_hex,gml_GlobalScript_s_gui_helpers,gml_Script_s_create_label,gml_GlobalScript_btn_click_SeasonReviewBack,gml_Script_btn_click_SeasonReviewBack,gml_GlobalScript_s_dec_to_hex,gml_Script_s_dec_to_hex,gml_GlobalScript_s_roman_numerals,gml_Script_s_roman_numerals,gml_GlobalScript_s_get_watermark_color,gml_Script_s_get_watermark_color,gml_GlobalScript_s_generate_uid,
gml_Script_s_generate_uid,gml_GlobalScript_gmcallback_poki_loadbar,gml_Script_gmcallback_poki_loadbar,gml_GlobalScript_poki_pause,gml_Script_poki_pause,gml_GlobalScript_s_set_up_qb_pmap,gml_Script_s_set_up_qb_pmap,gml_GlobalScript_poki_resume,gml_Script_poki_resume,gml_GlobalScript_scale_canvas,gml_Script_scale_canvas,gml_GlobalScript_s_update_camera,gml_Script_s_update_camera,gml_GlobalScript__poki_gameplay_start,gml_Script__poki_gameplay_start,gml_GlobalScript__poki_gameplay_stop,gml_Script__poki_gameplay_stop,
gml_GlobalScript_s_find_gamepad,gml_Script_s_find_gamepad,gml_Script_s_gamepad_is_fingerprint_sensor,gml_GlobalScript_s_update_gamepad,gml_Script_s_update_gamepad,gml_Script_s_gamepad_activity,gml_Script_s_clear_last_selected_history,gml_Script_s_overwrite_last_selected,gml_Script____struct___28_s_save_last_selected_gml_GlobalScript_s_update_gamepad,gml_Script_s_save_last_selected,gml_Script_s_get_last_selected,gml_GlobalScript_s_find_default_button,gml_Script_s_find_default_button,gml_GlobalScript_s_get_watermarked_stats,
gml_Script_s_get_watermarked_stats,gml_GlobalScript_s_get_qb_energy,gml_Script_s_get_qb_energy,gml_GlobalScript_btn_click_external_links,gml_Script_btn_click_BuyMerch,gml_Script_btn_click_MusicBy,gml_Script_btn_click_YouTube,gml_Script_btn_click_RecordBook,gml_Script_btn_click_Leagues,gml_Script_btn_click_ad_NSS,gml_Script_btn_click_ad_NSM,gml_Script_btn_click_ad_RG,gml_Script_btn_click_ad_NSB,gml_Script_btn_click_NewStarGames,gml_GlobalScript_s_do_prematch_dilemma_qb,gml_Script_s_do_prematch_dilemma_qb,
gml_GlobalScript_s_sound_audience_catch,gml_Script_s_sound_audience_catch,gml_GlobalScript_s_player_gpa,gml_Script_s_gpa_from_percent_grade,gml_Script_s_gpa_string,gml_Script_s_decay_percent_grade,gml_Script_s_post_match_gpa_refresh,gml_Script_s_add_percent_grade,gml_Script_s_get_decay,gml_Script_s_get_decay_info,gml_Script_s_refresh_suspended,gml_Script_s_get_percent_grade_squad,gml_Script_btn_click_Boost_GPA,gml_Script_btn_response_boost_gpa,gml_Script_s_my_team_academics,gml_Script_s_player_grade_suspend,
gml_Script_s_player_grade_lift_suspension,gml_GlobalScript_s_canvas_fullscreen,gml_Script_s_canvas_fullscreen,gml_GlobalScript_s_player_party,gml_Script_s_update_party_meter,gml_Script_s_get_party_info,gml_Script_s_add_to_party_meter,gml_Script_s_clear_party_meter,gml_Script_s_team_halve_all_party_meters,gml_GlobalScript_btn_click_LeagueMode,gml_Script_btn_click_LeagueMode,gml_GlobalScript_pause_scripts,gml_Script_s_pause_toggle,gml_Script_s_pause_is_available,gml_Script_s_pause_step,gml_Script_s_is_paused_or_just_unpaused,
gml_Script_s_draw_pause,gml_Script_s_pause_btn_init,gml_Script_s_pause_btn_step,gml_Script_s_pause_btn_draw_gui,gml_Script_s_pause_btn_recenter,gml_Script_s_pause_options_init,gml_Script_s_pause_options_recenter,gml_Script_s_pause_options_dismiss,gml_Script_s_pause_options_draw_gui,gml_Script_s_pause_options_layer,gml_Script_s_pause_options_add_button,gml_Script_s_pause_options_add_quit,gml_Script_s_pause_options_update_buttons,gml_Script_s_pause_options_button_action,gml_Script_s_pause_options_quit_game,
gml_Script_btn_response_quit_exhibution_cancel,gml_Script_btn_response_quit_exhibution_confirm,gml_GlobalScript_s_draw_scoreboard_qb_training,gml_Script_s_draw_scoreboard_qb_training,gml_GlobalScript_s_update_manual_gestures,gml_Script_s_update_manual_gestures,gml_GlobalScript_s_obj_controller_draw_begin,gml_Script_s_obj_controller_draw_begin,gml_Script____struct___29_gml_Object_obj_frontoffice_Create_0];const kgml_Script_poki_init=100000;const kgml_Script_poki_commercial_break=100001;const kgml_Script_poki_rewarded_break=100002;
const kgml_Script_poki_script_closure=100003;const kgml_Script_gmcallback_poki_closure=100004;const kgml_Script_poki_get_team=100005;const kgml_Script_poki_set_team=100006;const kgml_GlobalScript_s_update_shopping_buttons=100007;const kgml_Script_s_update_shopping_buttons=100008;const kgml_Script_btn_click_shopping_next=100009;const kgml_Script_btn_click_shopping_prev=100010;const kgml_Script_btn_shopping_purchase=100011;const kgml_Script_s_confirm_purchase=100012;const kgml_Script_s_count_shop_items_by_type=100013;
const kgml_Script_s_degrade_shop_items=100014;const kgml_GlobalScript_s_count_simmed_games=100015;const kgml_Script_s_count_simmed_games=100016;const kgml_GlobalScript_season_tally_scripts=100017;const kgml_Script_s_draw_season_tally_header=100018;const kgml_GlobalScript_s_choose_mode_hc=100019;const kgml_Script_s_choose_mode_HC=100020;const kgml_Script_s_choose_mode_QB=100021;const kgml_Script_s_choose_mode_CO=100022;const kgml_Script_s_setup_for_mode_CO=100023;const kgml_Script_s_update_details_screen=100024;
const kgml_GlobalScript_s_benched=100025;const kgml_Script_s_player_benched=100026;const kgml_GlobalScript_s_cpu_is_kicking=100027;const kgml_Script_s_cpu_is_kicking_off=100028;const kgml_Script_s_is_kickoff=100029;const kgml_GlobalScript_nx_scripts=100030;const kgml_Script_s_nx_init=100031;const kgml_Script_s_nx_commit=100032;const kgml_Script_s_nx_get_open_user=100033;const kgml_GlobalScript_s_recruitment_credits=100034;const kgml_Script_recruitment_credits_cap_total=100035;const kgml_Script_can_fit_recruitment_credits=100036;
const kgml_Script_recruitment_credits_space=100037;const kgml_Script_recruitment_credits_add=100038;const kgml_Script_recruitment_credits_toggle_roster_size=100039;const kgml_Script_recruitment_credits_button_click_boost=100040;const kgml_Script_btn_response_boost_recruitment_credits=100041;const kgml_GlobalScript_qb_contract_scripts=100042;const kgml_Script_s_qb_mode_set_up_contract_screen=100043;const kgml_Script____struct___0_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts=100044;const kgml_Script_s_qb_mode_new_contract=100045;
const kgml_Script_btn_contract_negotiate=100046;const kgml_Script_btn_contract_salary_minus=100047;const kgml_Script_btn_contract_salary_plus=100048;const kgml_Script_btn_contract_tdbonus_minus=100049;const kgml_Script_btn_contract_tdbonus_plus=100050;const kgml_Script_btn_contract_length_minus=100051;const kgml_Script_btn_contract_length_plus=100052;const kgml_Script_btn_negotiate_higher=100053;const kgml_Script_btn_negotiate_lower=100054;const kgml_Script_s_check_negotiate=100055;const kgml_Script_s_check_hilo_buttons=100056;
const kgml_Script_s_accept_contract=100057;const kgml_Script_s_reject_contract=100058;const kgml_GlobalScript_s_draw_player_image=100059;const kgml_Script_s_draw_player_image=100060;const kgml_GlobalScript_s_college_gui_helpers=100061;const kgml_Script_buttons_college_custom=100062;const kgml_Script_draw_custom_increase_wallet=100063;const kgml_Script_draw_custom_recruitment_credits_display=100064;const kgml_Script_rm_player_profile_show_noncollege_elements=100065;const kgml_Script_rm_player_profile_show_more=100066;
const kgml_Script____struct___1_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100067;const kgml_Script____struct___2_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100068;const kgml_Script____struct___3_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100069;const kgml_Script____struct___4_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100070;const kgml_Script____struct___5_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100071;
const kgml_Script____struct___6_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100072;const kgml_Script____struct___7_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100073;const kgml_Script____struct___8_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100074;const kgml_Script_rm_player_profile_college_create_p1=100075;const kgml_Script____struct___9_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100076;
const kgml_Script____struct___10_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100077;const kgml_Script____struct___11_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100078;const kgml_Script____struct___12_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100079;const kgml_Script____struct___13_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100080;const kgml_Script____struct___14_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100081;
const kgml_Script____struct___15_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100082;const kgml_Script____struct___16_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100083;const kgml_Script____struct___17_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100084;const kgml_Script_rm_player_profile_college_create_p2=100085;const kgml_Script_rm_player_profile_college_create=100086;const kgml_Script_btn_rm_player_profile_college_showP1=100087;
const kgml_Script_btn_rm_player_profile_college_showP2=100088;const kgml_Script_rm_player_profile_college_step=100089;const kgml_Script_btn_click_Profile_College_Cut=100090;const kgml_Script_btn_rm_stats_player_showAwards=100091;const kgml_Script_btn_rm_stats_player_showEpilogue=100092;const kgml_Script____struct___18_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers=100093;const kgml_Script_stats_player_button_entry=100094;const kgml_Script____struct___19_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers=100095;
const kgml_Script____struct___20_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers=100096;const kgml_Script_rm_stats_player_configure_college=100097;const kgml_GlobalScript_s_load_profile_uni=100098;const kgml_Script_s_load_profile_uni=100099;const kgml_GlobalScript_s_get_lifestyle=100100;const kgml_Script_s_get_lifestyle=100101;const kgml_GlobalScript_btn_meet_teammate=100102;const kgml_Script_btn_meet_teammate=100103;const kgml_Script_s_confirm_teammate_meeting=100104;const kgml_GlobalScript_s_check_qb_mode_benched=100105;
const kgml_Script_s_qb_mode_benched_status=100106;const kgml_GlobalScript_font_scripts=100107;const kgml_Script_s_data_path=100108;const kgml_Script_s_fonts_init=100109;const kgml_Script_draw_hd_text=100110;const kgml_Script_draw_hd_text_color=100111;const kgml_Script_draw_hd_text_ext=100112;const kgml_Script_draw_hd_text_ext_color=100113;const kgml_Script_draw_hd_text_transformed=100114;const kgml_Script_draw_hd_text_transformed_color=100115;const kgml_Script_draw_hd_text_ext_transformed=100116;const kgml_Script_string_hd_width=100117;
const kgml_Script_string_hd_width_ext=100118;const kgml_Script_string_hd_height=100119;const kgml_Script_string_hd_height_ext=100120;const kgml_GlobalScript_btn_click_Details_Back=100121;const kgml_Script_btn_click_Details_Back=100122;const kgml_GlobalScript_s_replay_controls=100123;const kgml_Script_s_replay_controls=100124;const kgml_GlobalScript_nrg=100125;const kgml_Script_btn_click_nrg_buy=100126;const kgml_Script_btn_click_nrg_drink=100127;const kgml_Script_s_drink_nrg=100128;const kgml_Script_s_get_condition_colour=100129;
const kgml_Script_s_get_condition_icon=100130;const kgml_GlobalScript_s_college_draft=100131;const kgml_Script_s_college_draft_ranking=100132;const kgml_Script_s_college_draft_team_ranking=100133;const kgml_Script_s_college_draft_team_pick=100134;const kgml_Script_s_calculate_college_draft=100135;const kgml_Script_s_destroy_college_draft=100136;const kgml_Script____struct___21_s_display_college_draft_debug_gml_GlobalScript_s_college_draft=100137;const kgml_Script_s_display_college_draft_debug=100138;const kgml_Script_s_message_college_draft_pick=100139;
const kgml_Script_s_message_college_draft_notpick=100140;const kgml_Script_s_message_college_draft_nottrydraft_y3=100141;const kgml_Script_s_message_college_draft_early_y3=100142;const kgml_Script_s_message_college_draft_pick_continue=100143;const kgml_Script_s_message_college_earyly_yes=100144;const kgml_Script_s_message_college_earyly_no=100145;const kgml_Script_s_message_college_earyly_info=100146;const kgml_Script_s_college_draft_earyly_info_return=100147;const kgml_Script_s_college_draft_refresh_current_attitude=100148;
const kgml_Script_s_doing_college_draft=100149;const kgml_Script_s_check_college_draft_start=100150;const kgml_Script_s_start_college_draft=100151;const kgml_Script_s_draft_set_epilogue=100152;const kgml_Script_s_end_college_draft=100153;const kgml_Script_s_end_college_draft_late_msg_clear=100154;const kgml_Script_s_end_college_draft_late=100155;const kgml_Script_btn_click_college_draft_next=100156;const kgml_Script_s_college_draft_refresh=100157;const kgml_Script_btn_click_college_draft_skip=100158;const kgml_Script_college_draft_do_skip=100159;
const kgml_Script_s_college_draft_player_pick=100160;const kgml_Script____struct___22_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100161;const kgml_Script____struct___23_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100162;const kgml_Script____struct___24_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100163;const kgml_Script____struct___25_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100164;const kgml_Script_s_display_college_draft_roster=100165;
const kgml_Script____struct___26_s_card_layout_pos_gml_GlobalScript_s_college_draft=100166;const kgml_Script_s_card_layout_pos=100167;const kgml_Script_s_load_pro_teams=100168;const kgml_GlobalScript_s_check_ingame_control_change=100169;const kgml_Script_s_check_ingame_control_change=100170;const kgml_GlobalScript_s_remove_player=100171;const kgml_Script_s_remove_player=100172;const kgml_GlobalScript_btn_click_BengRams=100173;const kgml_Script_btn_click_BengRams=100174;const kgml_Script_s_update_btn_bengrams=100175;
const kgml_Script_s_set_ui_colours=100176;const kgml_GlobalScript_btn_click_OptionsAutoRun=100177;const kgml_Script_btn_click_OptionsAutoRun=100178;const kgml_GlobalScript_title_scripts=100179;const kgml_Script_s_title_goto=100180;const kgml_Script_s_title_create=100181;const kgml_Script_s_title_step=100182;const kgml_Script_s_title_draw_gui=100183;const kgml_Script_s_title_exit=100184;const kgml_GlobalScript_s_get_achievement=100185;const kgml_Script_s_get_achievement=100186;const kgml_GlobalScript_s_count_achievement=100187;
const kgml_Script_s_count_achievement=100188;const kgml_GlobalScript_s_get_achievement_percentage=100189;const kgml_Script_s_get_achievement_percentage=100190;const kgml_GlobalScript_s_complete_achievement=100191;const kgml_Script_s_complete_achievement=100192;const kgml_GlobalScript_s_sort_retrobowl_list=100193;const kgml_Script_s_sort_retrobowl_list=100194;const kgml_GlobalScript_s_sort_retrobowl_history_list=100195;const kgml_Script_s_sort_retrobowl_history_list=100196;const kgml_GlobalScript_btn_click_EditAFC=100197;
const kgml_Script_btn_click_EditAFC=100198;const kgml_GlobalScript_btn_click_EditNFC=100199;const kgml_Script_btn_click_EditNFC=100200;const kgml_GlobalScript_btn_click_EditTeam=100201;const kgml_Script_btn_click_EditTeam=100202;const kgml_GlobalScript_s_round_to_decimal=100203;const kgml_Script_s_round_to_decimal=100204;const kgml_GlobalScript_btn_click_TeamEditCancel=100205;const kgml_Script_btn_click_TeamEditCancel=100206;const kgml_GlobalScript_btn_click_TeamEditDone=100207;const kgml_Script_btn_click_TeamEditDone=100208;
const kgml_GlobalScript_btn_click_TeamEditRestore=100209;const kgml_Script_btn_click_TeamEditRestore=100210;const kgml_GlobalScript_btn_click_InputHelmet=100211;const kgml_Script_btn_click_InputHelmet=100212;const kgml_GlobalScript_btn_click_InputLogo=100213;const kgml_Script_btn_click_InputLogo=100214;const kgml_GlobalScript_btn_click_InputShirt=100215;const kgml_Script_btn_click_InputShirt=100216;const kgml_GlobalScript_btn_click_InputSleeve=100217;const kgml_Script_btn_click_InputSleeve=100218;const kgml_GlobalScript_btn_click_InputPants=100219;
const kgml_Script_btn_click_InputPants=100220;const kgml_GlobalScript_btn_click_InputStripe=100221;const kgml_Script_btn_click_InputStripe=100222;const kgml_GlobalScript_btn_click_InputSocks1=100223;const kgml_Script_btn_click_InputSocks1=100224;const kgml_GlobalScript_btn_click_InputSocks2=100225;const kgml_Script_btn_click_InputSocks2=100226;const kgml_GlobalScript_btn_click_InputEndzone=100227;const kgml_Script_btn_click_InputEndzone=100228;const kgml_GlobalScript_btn_click_EditHelmet=100229;const kgml_Script_btn_click_EditHelmet=100230;
const kgml_GlobalScript_btn_click_EditLogo=100231;const kgml_Script_btn_click_EditLogo=100232;const kgml_GlobalScript_btn_click_EditShirt=100233;const kgml_Script_btn_click_EditShirt=100234;const kgml_GlobalScript_btn_click_EditSleeve=100235;const kgml_Script_btn_click_EditSleeve=100236;const kgml_GlobalScript_btn_click_EditPants=100237;const kgml_Script_btn_click_EditPants=100238;const kgml_GlobalScript_btn_click_EditStripe=100239;const kgml_Script_btn_click_EditStripe=100240;const kgml_GlobalScript_btn_click_EditSocks1=100241;
const kgml_Script_btn_click_EditSocks1=100242;const kgml_GlobalScript_btn_click_EditSocks2=100243;const kgml_Script_btn_click_EditSocks2=100244;const kgml_GlobalScript_btn_click_EditEndzone=100245;const kgml_Script_btn_click_EditEndzone=100246;const kgml_GlobalScript_btn_click_Kit1=100247;const kgml_Script_btn_click_Kit1=100248;const kgml_GlobalScript_btn_click_Kit2=100249;const kgml_Script_btn_click_Kit2=100250;const kgml_GlobalScript_btn_click_Kit3=100251;const kgml_Script_btn_click_Kit3=100252;const kgml_GlobalScript_btn_click_Kit4=100253;
const kgml_Script_btn_click_Kit4=100254;const kgml_GlobalScript_btn_click_RestoreAllTeams=100255;const kgml_Script_btn_click_RestoreAllTeams=100256;const kgml_GlobalScript_btn_click_KR_Select=100257;const kgml_Script_btn_click_KR_Select=100258;const kgml_GlobalScript_btn_click_EditCopySlotA=100259;const kgml_Script_btn_click_EditCopySlotA=100260;const kgml_GlobalScript_s_sound_audience_inc=100261;const kgml_Script_s_sound_audience_inc=100262;const kgml_GlobalScript_btn_click_EditCopySlotB=100263;const kgml_Script_btn_click_EditCopySlotB=100264;
const kgml_GlobalScript_btn_click_EditCopySlotC=100265;const kgml_Script_btn_click_EditCopySlotC=100266;const kgml_GlobalScript_btn_click_EditCopySlotD=100267;const kgml_Script_btn_click_EditCopySlotD=100268;const kgml_GlobalScript_btn_click_EditCopySlotE=100269;const kgml_Script_btn_click_EditCopySlotE=100270;const kgml_GlobalScript_btn_click_TeamEditMore=100271;const kgml_Script_btn_click_TeamEditMore=100272;const kgml_GlobalScript_btn_click_TeamEditMoreDone=100273;const kgml_Script_btn_click_TeamEditMoreDone=100274;
const kgml_GlobalScript_btn_click_FacilityStadium=100275;const kgml_Script_btn_click_FacilityStadium=100276;const kgml_GlobalScript_btn_click_FacilityTraining=100277;const kgml_Script_btn_click_FacilityTraining=100278;const kgml_GlobalScript_btn_click_FacilityStaff=100279;const kgml_Script_btn_click_FacilityStaff=100280;const kgml_GlobalScript_btn_click_HOF_players=100281;const kgml_Script_btn_click_HOF_players=100282;const kgml_GlobalScript_btn_click_HOF_player_records=100283;const kgml_Script_btn_click_HOF_player_records=100284;
const kgml_GlobalScript_btn_click_HOF_Select=100285;const kgml_Script_btn_click_HOF_Select=100286;const kgml_GlobalScript_btn_click_HofNext=100287;const kgml_Script_btn_click_HofNext=100288;const kgml_GlobalScript_btn_click_HofPrev=100289;const kgml_Script_btn_click_HofPrev=100290;const kgml_GlobalScript_btn_click_HOF_Coach=100291;const kgml_Script_btn_click_HOF_Coach=100292;const kgml_GlobalScript_btn_click_Records_Reset=100293;const kgml_Script_btn_click_Records_Reset=100294;const kgml_GlobalScript_btn_click_League_Back=100295;
const kgml_Script_btn_click_League_Back=100296;const kgml_GlobalScript_btn_click_LeaguePanel=100297;const kgml_Script_btn_click_LeaguePanel=100298;const kgml_GlobalScript_btn_click_LeagueNFC=100299;const kgml_Script_btn_click_LeagueNFC=100300;const kgml_GlobalScript_btn_click_LeagueAFC=100301;const kgml_Script_btn_click_LeagueAFC=100302;const kgml_GlobalScript_keyboard_scripts=100303;const kgml_Script_s_keyboard_custom_enabled=100304;const kgml_Script____struct___27_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts=100305;
const kgml_Script_s_keyboard_custom_init=100306;const kgml_Script_s_keyboard_custom_show=100307;const kgml_Script_s_keyboard_custom_hide=100308;const kgml_Script_s_keyboard_custom_layer=100309;const kgml_Script_s_keyboard_custom_create=100310;const kgml_Script_s_keyboard_custom_destroy=100311;const kgml_Script_s_keyboard_custom_create_button=100312;const kgml_Script_s_custkb_base_draw_gui=100313;const kgml_Script_s_custkb_base_step=100314;const kgml_Script_s_custkb_confirm=100315;const kgml_Script_s_custkb_delete=100316;
const kgml_Script_s_custkb_shift_toggle=100317;const kgml_Script_s_custkb_add_text=100318;const kgml_Script_s_custkb_key_init=100319;const kgml_Script_s_custkb_key_draw_gui=100320;const kgml_Script_s_custkb_key_step=100321;const kgml_Script_s_custkb_key_tap=100322;const kgml_GlobalScript_s_college_tools=100323;const kgml_Script_s_college_set_up_globals=100324;const kgml_Script_s_college_age_index=100325;const kgml_Script_s_college_age_label=100326;const kgml_Script_s_college_age_simple=100327;const kgml_Script_s_college_age_simple_short=100328;
const kgml_Script_s_college_shorter_season=100329;const kgml_Script_s_college_correct_new_player=100330;const kgml_Script_s_get_random_hobby=100331;const kgml_Script_s_get_hobby_name=100332;const kgml_Script_s_get_hobby_from_uid=100333;const kgml_Script_s_is_player_hobby_fraternity=100334;const kgml_Script_s_get_random_trait=100335;const kgml_Script_s_get_trait_name=100336;const kgml_Script_s_get_trait_from_uid=100337;const kgml_Script_s_get_random_study_subject=100338;const kgml_Script_s_get_study_subject_from_uid=100339;
const kgml_Script_s_get_study_subject_name_from_uid=100340;const kgml_Script_s_get_minor_name=100341;const kgml_Script_s_get_major_name=100342;const kgml_Script_s_get_study_info=100343;const kgml_Script_s_get_random_hometown=100344;const kgml_Script_s_get_hometown_name=100345;const kgml_Script_s_get_hometown_from_uid=100346;const kgml_Script_s_pick_rand_epilogue_uid=100347;const kgml_Script_s_get_epilogue_name=100348;const kgml_Script_s_epilogue_tests=100349;const kgml_Script_s_pick_epilogue_story=100350;const kgml_Script_s_epilogue_story_to_str=100351;
const kgml_Script_btn_response_player_meeting_academic_coaching=100352;const kgml_Script_s_get_meeting_cost_academic_coaching=100353;const kgml_Script_s_is_co_mode=100354;const kgml_Script_s_is_co_real=100355;const kgml_Script_s_co_real_version_text=100356;const kgml_GlobalScript_btn_click_LeagueSchedule=100357;const kgml_Script_btn_click_LeagueSchedule=100358;const kgml_GlobalScript_btn_click_SchedulePrev=100359;const kgml_Script_btn_click_SchedulePrev=100360;const kgml_GlobalScript_btn_click_ScheduleNext=100361;
const kgml_Script_btn_click_ScheduleNext=100362;const kgml_GlobalScript_btn_click_PlayOffs=100363;const kgml_Script_btn_click_PlayOffs=100364;const kgml_GlobalScript_btn_click_PlayOffs_Back=100365;const kgml_Script_btn_click_PlayOffs_Back=100366;const kgml_GlobalScript_btn_click_PlayOffsPlay=100367;const kgml_Script_btn_click_PlayOffsPlay=100368;const kgml_GlobalScript_btn_click_PlayOffsSkip=100369;const kgml_Script_btn_click_PlayOffsSkip=100370;const kgml_GlobalScript_btn_click_Change_Favourite=100371;const kgml_Script_btn_click_Change_Favourite=100372;
const kgml_GlobalScript_btn_click_ChooseAFC=100373;const kgml_Script_btn_click_ChooseAFC=100374;const kgml_GlobalScript_btn_click_ChooseNFC=100375;const kgml_Script_btn_click_ChooseNFC=100376;const kgml_GlobalScript_btn_click_ChooseTeam=100377;const kgml_Script_btn_click_ChooseTeam=100378;const kgml_Script_btn_click_ChooseTeamExhibition=100379;const kgml_GlobalScript_btn_click_ChooseTeamNew=100380;const kgml_Script_btn_click_ChooseTeamNew=100381;const kgml_Script_btn_click_qb_mode_ChooseTeamNew=100382;const kgml_GlobalScript_btn_click_ChooseReject=100383;
const kgml_Script_btn_click_ChooseReject=100384;const kgml_GlobalScript_btn_click_Continue=100385;const kgml_Script_btn_click_Continue=100386;const kgml_Script_btn_click_SimGame=100387;const kgml_GlobalScript_btn_click_Details_Continue=100388;const kgml_Script_btn_click_Details_Continue=100389;const kgml_GlobalScript_s_uniform_helpers=100390;const kgml_Script_s_uniforms_default_file=100391;const kgml_Script_s_extract_uniform_cols_to_record=100392;const kgml_Script_s_uniform_cols_to_record=100393;const kgml_Script_s_uniform_cols_from_record=100394;
const kgml_GlobalScript_btn_click_FrontOffice=100395;const kgml_Script_btn_click_FrontOffice=100396;const kgml_GlobalScript_btn_click_FreeAgents2=100397;const kgml_Script_btn_click_FreeAgents2=100398;const kgml_GlobalScript_btn_click_HallOfFame=100399;const kgml_Script_btn_click_HallOfFame=100400;const kgml_GlobalScript_btn_click_Home=100401;const kgml_Script_btn_click_Home=100402;const kgml_Script_btn_click_Options_Exit=100403;const kgml_GlobalScript_btn_click_League=100404;const kgml_Script_btn_click_League=100405;
const kgml_GlobalScript_btn_click_Options=100406;const kgml_Script_btn_click_Options=100407;const kgml_GlobalScript_btn_click_Profile=100408;const kgml_Script_btn_click_Profile=100409;const kgml_GlobalScript_btn_click_ChooseFace=100410;const kgml_Script_btn_click_ChooseFace=100411;const kgml_Script_s_goto_rm_choose_face=100412;const kgml_GlobalScript_btn_click_ChooseFacePrev=100413;const kgml_Script_btn_click_ChooseFacePrev=100414;const kgml_GlobalScript_btn_click_ChooseFaceNext=100415;const kgml_Script_btn_click_ChooseFaceNext=100416;
const kgml_GlobalScript_btn_click_ChooseFaceDone=100417;const kgml_Script_btn_click_ChooseFaceDone=100418;const kgml_Script_btn_click_cancel_chooseface=100419;const kgml_GlobalScript_btn_click_Uniforms=100420;const kgml_Script_btn_click_Uniforms=100421;const kgml_GlobalScript_btn_click_Uniform_Away=100422;const kgml_Script_btn_click_Uniform_Away=100423;const kgml_GlobalScript_btn_click_Uniform_Home=100424;const kgml_Script_btn_click_Uniform_Home=100425;const kgml_GlobalScript__poki_rewarded_ad=100426;const kgml_Script__poki_rewarded_ad=100427;
const kgml_GlobalScript_btn_click_BallStyle=100428;const kgml_Script_btn_click_BallStyle=100429;const kgml_GlobalScript_btn_click_LeagueReportNext=100430;const kgml_Script_btn_click_LeagueReportNext=100431;const kgml_GlobalScript_btn_click_LeagueReportPrev=100432;const kgml_Script_btn_click_LeagueReportPrev=100433;const kgml_GlobalScript_btn_click_OptionsNewGame=100434;const kgml_Script_btn_click_OptionsNewGame=100435;const kgml_GlobalScript_btn_click_OptionsDriveLeft=100436;const kgml_Script_btn_click_OptionsDriveLeft=100437;
const kgml_Script_btn_click_OptionsDriveLeft_Exh=100438;const kgml_GlobalScript_btn_click_OptionsDriveRight=100439;const kgml_Script_btn_click_OptionsDriveRight=100440;const kgml_GlobalScript_btn_click_OptionsDriveBoth=100441;const kgml_Script_btn_click_OptionsDriveBoth=100442;const kgml_GlobalScript_btn_click_OptionsScanlines=100443;const kgml_Script_btn_click_OptionsScanlines=100444;const kgml_GlobalScript_btn_click_OptionsSoundFX=100445;const kgml_Script_btn_click_OptionsSoundFX=100446;const kgml_GlobalScript_btn_click_OptionsWeather=100447;
const kgml_Script_btn_click_OptionsWeather=100448;const kgml_Script_btn_click_OptionsWeather_Exh=100449;const kgml_GlobalScript_btn_click_OptionsReplays=100450;const kgml_Script_btn_click_OptionsReplays=100451;const kgml_GlobalScript_btn_click_OptionsZoom=100452;const kgml_Script_btn_click_OptionsZoom=100453;const kgml_GlobalScript_btn_click_InvertedThrowing=100454;const kgml_Script_btn_click_InvertedThrowing=100455;const kgml_GlobalScript_btn_click_OptionsMatchLength=100456;const kgml_Script_btn_click_OptionsMatchLength=100457;
const kgml_Script_btn_click_OptionsMatchLength_Exh=100458;const kgml_GlobalScript_btn_click_OptionsTeamEditor=100459;const kgml_Script_btn_click_OptionsTeamEditor=100460;const kgml_GlobalScript_btn_click_OptionsDifficulty=100461;const kgml_Script_btn_click_OptionsDifficulty=100462;const kgml_GlobalScript_btn_click_OptionsSalaryCap=100463;const kgml_Script_btn_click_OptionsSalaryCap=100464;const kgml_Script_salary_cap_toggle_roster_size=100465;const kgml_GlobalScript_chk_click_gamepad=100466;const kgml_Script_chk_click_gamepad=100467;
const kgml_GlobalScript_btn_click_PlayerProfile=100468;const kgml_Script_btn_click_PlayerProfile=100469;const kgml_GlobalScript_btn_click_PlayerProfile_Back=100470;const kgml_Script_btn_click_PlayerProfile_Back=100471;const kgml_GlobalScript_btn_click_ProfilePrev=100472;const kgml_Script_btn_click_ProfilePrev=100473;const kgml_GlobalScript_btn_click_MeetingPrev=100474;const kgml_Script_btn_click_MeetingPrev=100475;const kgml_GlobalScript_btn_click_ProfileNext=100476;const kgml_Script_btn_click_ProfileNext=100477;
const kgml_GlobalScript_btn_click_MeetingNext=100478;const kgml_Script_btn_click_MeetingNext=100479;const kgml_GlobalScript_btn_click_Profile_Back=100480;const kgml_Script_btn_click_Profile_Back=100481;const kgml_GlobalScript_btn_click_Profile_Pick=100482;const kgml_Script_btn_click_Profile_Pick=100483;const kgml_GlobalScript_btn_click_Profile_Cut=100484;const kgml_Script_btn_click_Profile_Cut=100485;const kgml_Script_btn_click_Profile_JefeBoost=100486;const kgml_Script_s_JefeBoost=100487;const kgml_GlobalScript_btn_click_Profile_Trade=100488;
const kgml_Script_btn_click_Profile_Trade=100489;const kgml_GlobalScript_btn_click_Profile_Stats=100490;const kgml_Script_btn_click_Profile_Stats=100491;const kgml_GlobalScript_btn_click_Profile_Rest=100492;const kgml_Script_btn_click_Profile_Rest=100493;const kgml_GlobalScript_btn_click_Profile_Not_Interested=100494;const kgml_Script_btn_click_Profile_Not_Interested=100495;const kgml_GlobalScript_btn_click_Profile_ScoutPlayer=100496;const kgml_Script_btn_click_Profile_ScoutPlayer=100497;const kgml_GlobalScript_btn_click_AddSkill=100498;
const kgml_Script_btn_click_AddSkill=100499;const kgml_GlobalScript_btn_click_AddSpeed=100500;const kgml_Script_btn_click_AddSpeed=100501;const kgml_GlobalScript_btn_click_AddStrength=100502;const kgml_Script_btn_click_AddStrength=100503;const kgml_GlobalScript_btn_click_AddStamina=100504;const kgml_Script_btn_click_AddStamina=100505;const kgml_GlobalScript_btn_click_StatsNext=100506;const kgml_Script_btn_click_StatsNext=100507;const kgml_GlobalScript_btn_click_StatsPrev=100508;const kgml_Script_btn_click_StatsPrev=100509;
const kgml_GlobalScript_btn_click_StatsView1=100510;const kgml_Script_btn_click_StatsView1=100511;const kgml_GlobalScript_btn_click_StatsView2=100512;const kgml_Script_btn_click_StatsView2=100513;const kgml_GlobalScript_btn_click_EditProfile=100514;const kgml_Script_btn_click_EditProfile=100515;const kgml_GlobalScript_btn_click_Meeting_Morale=100516;const kgml_Script_btn_click_Meeting_Morale=100517;const kgml_GlobalScript_btn_click_Meeting_Condition=100518;const kgml_Script_btn_click_Meeting_Condition=100519;
const kgml_GlobalScript_s_qb_mode_update_resting=100520;const kgml_Script_s_qb_mode_update_resting=100521;const kgml_GlobalScript_btn_click_Meeting_LevelUp=100522;const kgml_Script_btn_click_Meeting_LevelUp=100523;const kgml_GlobalScript_btn_click_Meeting_ExtendContract=100524;const kgml_Script_btn_click_Meeting_ExtendContract=100525;const kgml_GlobalScript_btn_click_FieldGoal=100526;const kgml_Script_btn_click_FieldGoal=100527;const kgml_GlobalScript_btn_click_Running=100528;const kgml_Script_btn_click_Running=100529;
const kgml_GlobalScript_btn_click_Passing=100530;const kgml_Script_btn_click_Passing=100531;const kgml_GlobalScript_s_get_happiness=100532;const kgml_Script_s_get_happiness=100533;const kgml_GlobalScript_btn_click_Training=100534;const kgml_Script_btn_click_Training=100535;const kgml_GlobalScript_btn_click_Roster=100536;const kgml_Script_btn_click_Roster=100537;const kgml_GlobalScript_btn_click_Roster_Back=100538;const kgml_Script_btn_click_Roster_Back=100539;const kgml_Script_btn_click_Profile_Back_To_Draft=100540;
const kgml_Script_btn_click_Profile_Back_To_Draft_Continue=100541;const kgml_GlobalScript_btn_click_DraftPrev=100542;const kgml_Script_btn_click_DraftPrev=100543;const kgml_GlobalScript_btn_click_DraftNext=100544;const kgml_Script_btn_click_DraftNext=100545;const kgml_GlobalScript_btn_click_DraftDone=100546;const kgml_Script_btn_click_DraftDone=100547;const kgml_GlobalScript_btn_click_FreeAgents=100548;const kgml_Script_btn_click_FreeAgents=100549;const kgml_GlobalScript_btn_click_FreeAgentsBack=100550;const kgml_Script_btn_click_FreeAgentsBack=100551;
const kgml_GlobalScript_btn_click_RestAll=100552;const kgml_Script_btn_click_RestAll=100553;const kgml_GlobalScript_btn_click_FreeAgentsNext=100554;const kgml_Script_btn_click_FreeAgentsNext=100555;const kgml_GlobalScript_btn_click_FreeAgentsPrev=100556;const kgml_Script_btn_click_FreeAgentsPrev=100557;const kgml_GlobalScript_btn_click_FreeAgentsReset=100558;const kgml_Script_btn_click_FreeAgentsReset=100559;const kgml_GlobalScript_btn_click_Boost_Morale=100560;const kgml_Script_btn_click_Boost_Morale=100561;
const kgml_GlobalScript_btn_click_Boost_Condition=100562;const kgml_Script_btn_click_Boost_Condition=100563;const kgml_GlobalScript_btn_click_Boost_Salary_Cap=100564;const kgml_Script_btn_click_Boost_Salary_Cap=100565;const kgml_GlobalScript_btn_click_LoadSlot1=100566;const kgml_Script_btn_click_LoadSlot1=100567;const kgml_GlobalScript_btn_click_LoadSlot2=100568;const kgml_Script_btn_click_LoadSlot2=100569;const kgml_GlobalScript_s_set_up_button_kickoff=100570;const kgml_Script_s_set_up_button_kickoff=100571;
const kgml_Script_btn_kick_off=100572;const kgml_Script_s_btn_kickoff_recenter=100573;const kgml_GlobalScript_btn_click_LoadSlot3=100574;const kgml_Script_btn_click_LoadSlot3=100575;const kgml_GlobalScript_btn_click_LoadSlot4=100576;const kgml_Script_btn_click_LoadSlot4=100577;const kgml_GlobalScript_btn_click_LoadSlot5=100578;const kgml_Script_btn_click_LoadSlot5=100579;const kgml_GlobalScript_btn_click_DeleteSlot1=100580;const kgml_Script_btn_click_DeleteSlot1=100581;const kgml_GlobalScript_btn_click_DeleteSlot2=100582;
const kgml_Script_btn_click_DeleteSlot2=100583;const kgml_GlobalScript_btn_click_DeleteSlot3=100584;const kgml_Script_btn_click_DeleteSlot3=100585;const kgml_GlobalScript_btn_click_DeleteSlot4=100586;const kgml_Script_btn_click_DeleteSlot4=100587;const kgml_GlobalScript_btn_click_DeleteSlot5=100588;const kgml_Script_btn_click_DeleteSlot5=100589;const kgml_GlobalScript_btn_click_StaffProfile=100590;const kgml_Script_btn_click_StaffProfile=100591;const kgml_GlobalScript_btn_click_StaffProfileNext=100592;const kgml_Script_btn_click_StaffProfileNext=100593;
const kgml_GlobalScript_s_draw_gamepad_controls=100594;const kgml_Script_s_draw_gamepad_controls=100595;const kgml_GlobalScript_s_team_helpers=100596;const kgml_Script_s_teams_file=100597;const kgml_GlobalScript_btn_click_StaffProfilePrev=100598;const kgml_Script_btn_click_StaffProfilePrev=100599;const kgml_GlobalScript_btn_click_StaffProfileBack=100600;const kgml_Script_btn_click_StaffProfileBack=100601;const kgml_GlobalScript_btn_click_HireStaff=100602;const kgml_Script_btn_click_HireStaff=100603;const kgml_GlobalScript_btn_click_ViewHires=100604;
const kgml_Script_btn_click_ViewHires=100605;const kgml_GlobalScript_btn_click_ViewHiresProfile=100606;const kgml_Script_btn_click_ViewHiresProfile=100607;const kgml_GlobalScript_btn_click_ViewHiresBack=100608;const kgml_Script_btn_click_ViewHiresBack=100609;const kgml_GlobalScript_btn_click_ViewHiresReset=100610;const kgml_Script_btn_click_ViewHiresReset=100611;const kgml_GlobalScript_btn_click_TrainingLight=100612;const kgml_Script_btn_click_TrainingLight=100613;const kgml_GlobalScript_btn_click_TrainingNormal=100614;
const kgml_Script_btn_click_TrainingNormal=100615;const kgml_GlobalScript_btn_click_TrainingHard=100616;const kgml_Script_btn_click_TrainingHard=100617;const kgml_GlobalScript_btn_click_XP_Continue=100618;const kgml_Script_btn_click_XP_Continue=100619;const kgml_GlobalScript_btn_click_XP_Back=100620;const kgml_Script_btn_click_XP_Back=100621;const kgml_GlobalScript_btn_response_quit_yes=100622;const kgml_Script_btn_response_quit_yes=100623;const kgml_GlobalScript_btn_response_newgame_commit=100624;const kgml_Script_btn_response_newgame_commit=100625;
const kgml_GlobalScript_btn_response_kick_no=100626;const kgml_Script_btn_response_kick_no=100627;const kgml_GlobalScript_btn_response_punt_yes=100628;const kgml_Script_btn_response_punt_yes=100629;const kgml_GlobalScript_btn_response_fg_yes=100630;const kgml_Script_btn_response_fg_yes=100631;const kgml_GlobalScript_btn_response_1pt=100632;const kgml_Script_btn_response_1pt=100633;const kgml_GlobalScript_btn_response_2pt=100634;const kgml_Script_btn_response_2pt=100635;const kgml_GlobalScript_btn_response_onsidekick_no=100636;
const kgml_Script_btn_response_onsidekick_no=100637;const kgml_GlobalScript_btn_response_onsidekick_yes=100638;const kgml_Script_btn_response_onsidekick_yes=100639;const kgml_GlobalScript_btn_response_cut_player_yes=100640;const kgml_Script_btn_response_cut_player_yes=100641;const kgml_GlobalScript_btn_response_skip_draft_yes=100642;const kgml_Script_btn_response_skip_draft_yes=100643;const kgml_GlobalScript_btn_response_pick_player_yes=100644;const kgml_Script_btn_response_pick_player_yes=100645;const kgml_GlobalScript_btn_click_OptionsKickReturns=100646;
const kgml_Script_btn_click_OptionsKickReturns=100647;const kgml_Script_btn_click_OptionsKickReturns_Exh=100648;const kgml_GlobalScript_btn_response_in_trade_player_yes=100649;const kgml_Script_btn_response_in_trade_player_yes=100650;const kgml_GlobalScript_btn_response_out_trade_player_yes=100651;const kgml_Script_btn_response_out_trade_player_yes=100652;const kgml_GlobalScript_btn_response_out_trade_player_no=100653;const kgml_Script_btn_response_out_trade_player_no=100654;const kgml_GlobalScript_btn_response_player_meeting_morale_yes=100655;
const kgml_Script_btn_response_player_meeting_morale_yes=100656;const kgml_GlobalScript_btn_response_player_meeting_condition_yes=100657;const kgml_Script_btn_response_player_meeting_condition_yes=100658;const kgml_GlobalScript_btn_response_player_meeting_levelup_yes=100659;const kgml_Script_btn_response_player_meeting_levelup_yes=100660;const kgml_GlobalScript_btn_response_player_meeting_extend_contract=100661;const kgml_Script_btn_response_player_meeting_extend_contract=100662;const kgml_GlobalScript_btn_response_boost_morale=100663;
const kgml_Script_btn_response_boost_morale=100664;const kgml_GlobalScript_btn_response_boost_condition=100665;const kgml_Script_btn_response_boost_condition=100666;const kgml_GlobalScript_btn_response_boost_salary_cap=100667;const kgml_Script_btn_response_boost_salary_cap=100668;const kgml_GlobalScript_s_confirm_upgrade_stadium=100669;const kgml_Script_s_confirm_upgrade_stadium=100670;const kgml_GlobalScript_s_confirm_upgrade_training=100671;const kgml_Script_s_confirm_upgrade_training=100672;const kgml_GlobalScript_s_confirm_upgrade_rehab=100673;
const kgml_Script_s_confirm_upgrade_rehab=100674;const kgml_GlobalScript_btn_response_hirestaff=100675;const kgml_Script_btn_response_hirestaff=100676;const kgml_GlobalScript_btn_response_clearfreeagents=100677;const kgml_Script_btn_response_clearfreeagents=100678;const kgml_GlobalScript_btn_response_rest_player_yes=100679;const kgml_Script_btn_response_rest_player_yes=100680;const kgml_GlobalScript_btn_response_cointoss_kick=100681;const kgml_Script_btn_response_cointoss_kick=100682;const kgml_GlobalScript_btn_response_cointoss_receive=100683;
const kgml_Script_btn_response_cointoss_receive=100684;const kgml_GlobalScript_btn_response_skip_tutorial=100685;const kgml_Script_btn_response_skip_tutorial=100686;const kgml_GlobalScript_btn_response_confirm_new_team=100687;const kgml_Script_btn_response_confirm_new_team=100688;const kgml_GlobalScript_s_store_cant_afford=100689;const kgml_Script_s_store_cant_afford=100690;const kgml_GlobalScript_s_tip_continue=100691;const kgml_Script_s_tip_continue=100692;const kgml_GlobalScript_s_qb_mode_auto_xp=100693;
const kgml_Script_s_qb_mode_auto_xp=100694;const kgml_GlobalScript_s_confirm_staff_hire_reset=100695;const kgml_Script_s_confirm_staff_hire_reset=100696;const kgml_GlobalScript_s_confirm_freeagent_hire_reset=100697;const kgml_Script_s_confirm_freeagent_hire_reset=100698;const kgml_GlobalScript_btn_response_deletegame1=100699;const kgml_Script_btn_response_deletegame1=100700;const kgml_GlobalScript_btn_response_deletegame2=100701;const kgml_Script_btn_response_deletegame2=100702;const kgml_GlobalScript_btn_response_deletegame3=100703;
const kgml_Script_btn_response_deletegame3=100704;const kgml_GlobalScript_btn_response_deletegame4=100705;const kgml_Script_btn_response_deletegame4=100706;const kgml_GlobalScript_btn_response_deletegame5=100707;const kgml_Script_btn_response_deletegame5=100708;const kgml_GlobalScript_s_simming_action=100709;const kgml_Script_s_simming_action=100710;const kgml_GlobalScript_btn_response_hof_select=100711;const kgml_Script_btn_response_hof_select=100712;const kgml_GlobalScript_btn_response_records_reset=100713;
const kgml_Script_btn_response_records_reset=100714;const kgml_GlobalScript_btn_match_kick=100715;const kgml_Script_btn_match_kick=100716;const kgml_Script_btn_match_goforit=100717;const kgml_Script_btn_match_gofor1pt=100718;const kgml_GlobalScript_s_do_prematch_dilemma=100719;const kgml_Script_s_do_prematch_dilemma=100720;const kgml_Script_s_create_dilemma_news=100721;const kgml_Script_s_clear_msg_and_back=100722;const kgml_Script_s_get_standard_dilemmas=100723;const kgml_Script_s_get_college_dilemmas=100724;
const kgml_GlobalScript_s_do_postmatch_dilemma=100725;const kgml_Script_s_do_postmatch_dilemma=100726;const kgml_GlobalScript_s_parse_dilemma=100727;const kgml_Script_s_parse_dilemma=100728;const kgml_GlobalScript_s_create_dilemma=100729;const kgml_Script_s_create_dilemma=100730;const kgml_GlobalScript_s_choose_dilemma=100731;const kgml_Script_s_choose_dilemma=100732;const kgml_Script_s_extract_dilemma_from_pool=100733;const kgml_Script_s_add_to_choose_dilemma_list=100734;const kgml_Script_s_reject_dilemma_not_enough_RC=100735;
const kgml_GlobalScript_s_dilemma_choice_1=100736;const kgml_Script_s_dilemma_choice_1=100737;const kgml_GlobalScript_s_dilemma_choice_2=100738;const kgml_Script_s_dilemma_choice_2=100739;const kgml_GlobalScript_s_dilemma_choice=100740;const kgml_Script_s_dilemma_choice=100741;const kgml_Script_s_cut_player_end=100742;const kgml_Script_s_cut_player_end_gpa=100743;const kgml_Script_s_cut_player_end_toxic=100744;const kgml_Script_s_cut_player_end_party=100745;const kgml_Script_s_cut_player_end_toxic_max=100746;
const kgml_Script_s_cut_player_end_party_max=100747;const kgml_Script_s_dilemma_morecc_store=100748;const kgml_Script_s_dilemma_morecc_back=100749;const kgml_Script_s_dilemma_end=100750;const kgml_Script_s_dilemma_college_check_chained=100751;const kgml_GlobalScript_s_convert_string_to_sprite=100752;const kgml_Script_s_convert_string_to_sprite=100753;const kgml_GlobalScript_s_sort_list_by_column=100754;const kgml_Script_s_sort_maplist_by_numeric_field=100755;const kgml_GlobalScript_s_check_draft=100756;const kgml_Script_s_check_draft=100757;
const kgml_GlobalScript_s_create_draftlist=100758;const kgml_Script_s_create_draftlist=100759;const kgml_GlobalScript_s_sound_audience_tck=100760;const kgml_Script_s_sound_audience_tck=100761;const kgml_GlobalScript_s_create_freeagentlist=100762;const kgml_Script_s_create_freeagentlist=100763;const kgml_GlobalScript_s_create_freeagent=100764;const kgml_Script_s_create_freeagent=100765;const kgml_GlobalScript_s_create_tradelist=100766;const kgml_Script_s_create_tradelist=100767;const kgml_GlobalScript_s_create_storelist=100768;
const kgml_Script_s_create_storelist=100769;const kgml_GlobalScript_s_create_player_storelist=100770;const kgml_Script_s_create_player_storelist=100771;const kgml_GlobalScript_s_count_hires_by_position=100772;const kgml_Script_s_count_hires_by_position=100773;const kgml_GlobalScript_s_count_players_by_position_store=100774;const kgml_Script_s_count_players_by_position_store=100775;const kgml_GlobalScript_s_get_hire_shortlist=100776;const kgml_Script_s_get_hire_shortlist=100777;const kgml_GlobalScript_s_reset_draft_picks=100778;
const kgml_Script_s_reset_draft_picks=100779;const kgml_GlobalScript_poki_btn_click_CoinBoost=100780;const kgml_Script_poki_btn_click_CoinBoost=100781;const kgml_Script_poki_CoinBoost_No=100782;const kgml_Script_poki_CoinBoost_Yes=100783;const kgml_GlobalScript_s_update_draft_page=100784;const kgml_Script_s_update_draft_page=100785;const kgml_GlobalScript_s_update_freeagents_page=100786;const kgml_Script_s_update_freeagents_page=100787;const kgml_GlobalScript_s_college_admissions_draft=100788;const kgml_Script_s_check_draft_CO=100789;
const kgml_Script_s_college_free_agent_check=100790;const kgml_Script_btn_respose_college_free_agent_yes=100791;const kgml_Script_s_college_dilemma_check=100792;const kgml_Script_s_college_admissions_check_trigger=100793;const kgml_Script_s_college_admissions_pick_player=100794;const kgml_Script_s_college_admissions_players_lost_per_round=100795;const kgml_Script_s_college_admissions_draft_done=100796;const kgml_Script_btn_response_college_admissions_draft_done_yes=100797;const kgml_GlobalScript_s_remaining_picks=100798;
const kgml_Script_s_remaining_picks=100799;const kgml_GlobalScript_s_remaining_picks_by_round=100800;const kgml_Script_s_remaining_picks_by_round=100801;const kgml_GlobalScript_s_get_trade_value=100802;const kgml_Script_s_get_trade_value=100803;const kgml_GlobalScript_s_get_trade_value_by_rating=100804;const kgml_Script_s_get_trade_value_by_rating=100805;const kgml_GlobalScript_s_get_offer_team=100806;const kgml_Script_s_get_offer_team=100807;const kgml_GlobalScript_s_clear_trade_offers=100808;const kgml_Script_s_clear_trade_offers=100809;
const kgml_GlobalScript_s_clear_freeagents=100810;const kgml_Script_s_clear_freeagents=100811;const kgml_GlobalScript_s_clear_storelist=100812;const kgml_Script_s_clear_storelist=100813;const kgml_GlobalScript_s_end_draft_round=100814;const kgml_Script_s_end_draft_round=100815;const kgml_Script_s_destroy_draftlist=100816;const kgml_GlobalScript_s_received_AI_kickoff=100817;const kgml_Script_s_received_AI_kickoff=100818;const kgml_GlobalScript_s_update_contracts=100819;const kgml_Script_s_update_contracts=100820;
const kgml_Script_s_check_staff_exist=100821;const kgml_GlobalScript_s_aim_AI_kickoff=100822;const kgml_Script_s_aim_AI_kickoff=100823;const kgml_GlobalScript_btn_click_SeasonReview=100824;const kgml_Script_btn_click_SeasonReview=100825;const kgml_GlobalScript_s_get_new_salary=100826;const kgml_Script_s_get_new_salary=100827;const kgml_GlobalScript_s_check_expired_contract_message=100828;const kgml_Script_s_check_expired_contract_message=100829;const kgml_GlobalScript_s_get_salary_cap_space=100830;const kgml_Script_s_get_salary_cap_space=100831;
const kgml_GlobalScript_s_create_new_save=100832;const kgml_Script_s_create_new_save=100833;const kgml_Script_s_regen_clean_save_mode_dependent_data=100834;const kgml_Script_s_load_co_mode_files=100835;const kgml_GlobalScript_s_loadgame=100836;const kgml_Script_s_loadgame=100837;const kgml_Script_s_is_player_pmap_corrupt=100838;const kgml_Script_s_check_for_return_stats=100839;const kgml_Script_s_check_longest_records=100840;const kgml_Script_s_update_ui_colours=100841;const kgml_Script_s_update_game_title=100842;
const kgml_GlobalScript_s_savegame=100843;const kgml_Script_s_savegame=100844;const kgml_GlobalScript_s_create_map_options=100845;const kgml_Script_s_create_map_options=100846;const kgml_GlobalScript_s_count_full_seasons=100847;const kgml_Script_s_count_full_seasons=100848;const kgml_Script_s_count_games_coached=100849;const kgml_Script_s_count_games_simmed=100850;const kgml_Script_s_count_fixtures_played=100851;const kgml_GlobalScript_s_load_options=100852;const kgml_Script_s_load_options=100853;const kgml_GlobalScript_s_save_options=100854;
const kgml_Script_s_save_options=100855;const kgml_GlobalScript_s_save_backup=100856;const kgml_Script_s_save_backup=100857;const kgml_GlobalScript_s_load_map_file=100858;const kgml_Script_s_load_map_file=100859;const kgml_GlobalScript_s_update_maplist_from_file=100860;const kgml_Script_s_update_maplist_from_file=100861;const kgml_GlobalScript_s_load_strings=100862;const kgml_Script_s_refresh_strings=100863;const kgml_Script_s_load_strings=100864;const kgml_Script_s_select_lang=100865;const kgml_Script_s_select_lang_file=100866;
const kgml_Script_s_select_override_lang_file=100867;const kgml_Script_s_add_file_to_lang_strings=100868;const kgml_GlobalScript_s_load_teams=100869;const kgml_Script_s_load_teams=100870;const kgml_GlobalScript_s_load_team_detail=100871;const kgml_Script_s_load_team_detail=100872;const kgml_GlobalScript_s_load_retrobowl_hof=100873;const kgml_Script_s_load_retrobowl_hof=100874;const kgml_GlobalScript_s_load_retrobowl_history=100875;const kgml_Script_s_load_retrobowl_history=100876;const kgml_GlobalScript_s_load_schedule=100877;
const kgml_Script_s_load_schedule=100878;const kgml_GlobalScript_s_get_savename=100879;const kgml_Script_s_get_savename=100880;const kgml_GlobalScript_s_get_string_save_details=100881;const kgml_Script_s_get_string_save_details=100882;const kgml_GlobalScript_s_destroy_master=100883;const kgml_Script_s_destroy_master=100884;const kgml_GlobalScript_s_save_uniform_file2=100885;const kgml_Script_s_save_uniform_file2=100886;const kgml_GlobalScript_s_load_uniform_file2=100887;const kgml_Script_s_load_uniform_file2=100888;
const kgml_GlobalScript_s_load_teamname_from_uniform_file=100889;const kgml_Script_s_load_teamname_from_uniform_file=100890;const kgml_GlobalScript_s_load_endzone_from_uniform_file=100891;const kgml_Script_s_load_endzone_from_uniform_file=100892;const kgml_GlobalScript_s_create_my_fixture_list=100893;const kgml_Script_s_create_my_fixture_list=100894;const kgml_GlobalScript_s_create_fixdata=100895;const kgml_Script_s_create_fixdata=100896;const kgml_GlobalScript_s_do_schedule=100897;const kgml_Script_s_do_schedule=100898;
const kgml_GlobalScript_s_create_playoffs=100899;const kgml_Script_s_create_playoffs=100900;const kgml_GlobalScript_s_create_playoffs2=100901;const kgml_Script_s_create_playoffs2=100902;const kgml_GlobalScript_s_playoffs_12=100903;const kgml_Script_s_playoffs_12=100904;const kgml_GlobalScript_s_get_week_superbowl=100905;const kgml_Script_s_get_week_superbowl=100906;const kgml_GlobalScript_s_do_playoff_schedule=100907;const kgml_Script_s_do_playoff_schedule=100908;const kgml_Script_s_get_retrobowl_mvp_winner=100909;
const kgml_GlobalScript_s_get_random_scoredata=100910;const kgml_Script_s_get_random_scoredata=100911;const kgml_GlobalScript_s_promote_playoff_winner=100912;const kgml_Script_s_promote_playoff_winner=100913;const kgml_Script_s_seed_divisional_round=100914;const kgml_GlobalScript_s_add_to_human_fixtures=100915;const kgml_Script_s_add_to_human_fixtures=100916;const kgml_GlobalScript_s_update_human_playoff_fixtures=100917;const kgml_Script_s_update_human_playoff_fixtures=100918;const kgml_Script_s_check_rearranged_human_playoff=100919;
const kgml_Script_s_update_human_fixtures=100920;const kgml_GlobalScript_s_get_playoff_fixture_by_week=100921;const kgml_Script_s_get_playoff_fixture_by_week=100922;const kgml_GlobalScript_s_get_human_fixture_by_week=100923;const kgml_Script_s_get_human_fixture_by_week=100924;const kgml_GlobalScript_s_get_human_fixture_previous=100925;const kgml_Script_s_get_human_fixture_previous=100926;const kgml_GlobalScript_exhibition_scripts=100927;const kgml_Script_btn_click_exhibition_start=100928;const kgml_Script_btn_click_exhibition_exit=100929;
const kgml_Script_s_set_up_uniforms_exhibition=100930;const kgml_Script_s_create_exhibition_fixture=100931;const kgml_Script_btn_click_exhibition_controller_0=100932;const kgml_Script_btn_click_exhibition_controller_1=100933;const kgml_Script_s_update_exhibition_controllers=100934;const kgml_Script_btn_click_ChangeTeamAway=100935;const kgml_Script_btn_click_ChangeTeamHome=100936;const kgml_Script_btn_click_Exhibition_Play=100937;const kgml_Script_s_update_options_exh=100938;const kgml_Script_s_force_kick_direction=100939;
const kgml_Script_s_count_audibles=100940;const kgml_Script_s_update_audibles=100941;const kgml_Script_s_set_audibles=100942;const kgml_Script_s_count_timeouts=100943;const kgml_Script_s_update_timeouts=100944;const kgml_Script_s_set_timeouts=100945;const kgml_GlobalScript_s_get_human_fixture_next=100946;const kgml_Script_s_get_human_fixture_next=100947;const kgml_GlobalScript_s_count_remaining_fixtures=100948;const kgml_Script_s_count_remaining_fixtures=100949;const kgml_GlobalScript_s_get_division_winner=100950;
const kgml_Script_s_get_division_winner=100951;const kgml_GlobalScript_s_get_team_position_by_id=100952;const kgml_Script_s_get_team_position_by_id=100953;const kgml_GlobalScript_s_get_division_winner_name=100954;const kgml_Script_s_get_division_winner_name=100955;const kgml_GlobalScript_s_get_division_winner_by_seed=100956;const kgml_Script_s_get_division_winner_by_seed=100957;const kgml_GlobalScript_s_get_division_winner_name_by_seed=100958;const kgml_Script_s_get_division_winner_name_by_seed=100959;const kgml_GlobalScript_s_skip_to_week=100960;
const kgml_Script_s_skip_to_week=100961;const kgml_GlobalScript_s_clear_playoff_fixtures=100962;const kgml_Script_s_clear_playoff_fixtures=100963;const kgml_GlobalScript_s_update_team_edit_buttons=100964;const kgml_Script_s_update_team_edit_buttons=100965;const kgml_GlobalScript_s_set_up_edit_screen=100966;const kgml_Script_s_set_up_edit_screen=100967;const kgml_GlobalScript_s_color_picker=100968;const kgml_Script_s_color_picker=100969;const kgml_GlobalScript_s_set_up_uniforms=100970;const kgml_Script_s_set_up_uniforms=100971;
const kgml_GlobalScript_s_set_up_uniforms_training=100972;const kgml_Script_s_set_up_uniforms_training=100973;const kgml_GlobalScript_s_set_up_uniform_profile=100974;const kgml_Script_s_set_up_uniform_profile=100975;const kgml_GlobalScript_s_shader_get_uniforms=100976;const kgml_Script_s_shader_get_uniforms=100977;const kgml_GlobalScript_s_shader_set_uniforms=100978;const kgml_Script_s_shader_set_uniforms=100979;const kgml_GlobalScript_s_convert_uniform_colours_all=100980;const kgml_Script_s_convert_uniform_colours_all=100981;
const kgml_GlobalScript_s_convert_uniform_colour=100982;const kgml_Script_s_convert_uniform_colour=100983;const kgml_GlobalScript_s_restore_uniforms_all=100984;const kgml_Script_s_restore_uniforms_all=100985;const kgml_GlobalScript_s_copy_uniforms_slot_a=100986;const kgml_Script_s_copy_uniforms_slot_a=100987;const kgml_GlobalScript_s_copy_uniforms_slot_b=100988;const kgml_Script_s_copy_uniforms_slot_b=100989;const kgml_GlobalScript_s_copy_uniforms_slot_c=100990;const kgml_Script_s_copy_uniforms_slot_c=100991;
const kgml_GlobalScript_s_copy_uniforms_slot_d=100992;const kgml_Script_s_copy_uniforms_slot_d=100993;const kgml_GlobalScript_s_set_up_kickoff=100994;const kgml_Script_s_set_up_kickoff=100995;const kgml_GlobalScript_s_copy_uniforms_slot_e=100996;const kgml_Script_s_copy_uniforms_slot_e=100997;const kgml_GlobalScript_s_update_uniform_name=100998;const kgml_Script_s_update_uniform_name=100999;const kgml_GlobalScript_s_copy_teamnames_from_uniform_file=101000;const kgml_Script_s_copy_teamnames_from_uniform_file=101001;
const kgml_GlobalScript_s_edit_name=101002;const kgml_Script_s_edit_name=101003;const kgml_GlobalScript_btn_click_edit_div1=101004;const kgml_Script_btn_click_edit_div1=101005;const kgml_GlobalScript_btn_click_edit_div2=101006;const kgml_Script_btn_click_edit_div2=101007;const kgml_GlobalScript_btn_click_edit_div3=101008;const kgml_Script_btn_click_edit_div3=101009;const kgml_GlobalScript_btn_click_edit_div4=101010;const kgml_Script_btn_click_edit_div4=101011;const kgml_GlobalScript_btn_click_edit_conf1=101012;
const kgml_Script_btn_click_edit_conf1=101013;const kgml_GlobalScript_btn_click_edit_conf2=101014;const kgml_Script_btn_click_edit_conf2=101015;const kgml_GlobalScript_s_edit_confirm_div1=101016;const kgml_Script_s_edit_confirm_div1=101017;const kgml_GlobalScript_s_edit_confirm_div2=101018;const kgml_Script_s_edit_confirm_div2=101019;const kgml_GlobalScript_s_edit_confirm_div3=101020;const kgml_Script_s_edit_confirm_div3=101021;const kgml_GlobalScript_s_edit_confirm_div4=101022;const kgml_Script_s_edit_confirm_div4=101023;
const kgml_GlobalScript_s_edit_confirm_conf1=101024;const kgml_Script_s_edit_confirm_conf1=101025;const kgml_GlobalScript_s_edit_confirm_conf2=101026;const kgml_Script_s_edit_confirm_conf2=101027;const kgml_GlobalScript_s_populate_division=101028;const kgml_Script_s_populate_division=101029;const kgml_GlobalScript_s_populate_schedulebox=101030;const kgml_Script_s_populate_schedulebox=101031;const kgml_GlobalScript_s_create_credit=101032;const kgml_Script_s_create_credit=101033;const kgml_GlobalScript_s_set_up_xp_headers=101034;
const kgml_Script_s_set_up_xp_headers=101035;const kgml_GlobalScript_s_count_hof_entries=101036;const kgml_Script_s_count_hof_entries=101037;const kgml_GlobalScript_s_set_up_hof_players_screen=101038;const kgml_Script_s_set_up_hof_players_screen=101039;const kgml_GlobalScript_s_iap_init=101040;const kgml_Script_s_iap_init=101041;const kgml_GlobalScript_s_set_up_purchase_ids=101042;const kgml_Script_s_set_up_purchase_ids=101043;const kgml_GlobalScript_s_iap_async_android=101044;const kgml_Script_s_iap_async_android=101045;
const kgml_GlobalScript_s_iap_async_ios=101046;const kgml_Script_s_iap_async_ios=101047;const kgml_GlobalScript_s_iap_purchase_FullVersion=101048;const kgml_Script_s_iap_purchase_FullVersion=101049;const kgml_GlobalScript_s_set_position_kickoff=101050;const kgml_Script_s_set_position_return_ko=101051;const kgml_Script_s_set_position_take_ko=101052;const kgml_GlobalScript_s_iap_purchase_Credits_20=101053;const kgml_Script_s_iap_purchase_Credits_20=101054;const kgml_GlobalScript_s_iap_purchase_Credits_50=101055;
const kgml_Script_s_iap_purchase_Credits_50=101056;const kgml_GlobalScript_s_iap_purchase_Credits_100=101057;const kgml_Script_s_iap_purchase_Credits_100=101058;const kgml_GlobalScript_s_iap_purchase_Credits_250=101059;const kgml_Script_s_iap_purchase_Credits_250=101060;const kgml_GlobalScript_s_iap_restore=101061;const kgml_Script_s_iap_restore=101062;const kgml_GlobalScript_s_open_store=101063;const kgml_Script_s_open_store=101064;const kgml_Script_s_btn_store_exit=101065;const kgml_GlobalScript_s_open_store_nag=101066;
const kgml_Script_s_open_store_nag=101067;const kgml_GlobalScript_s_do_nag_message=101068;const kgml_Script_s_do_nag_message=101069;const kgml_Script_s_do_ad_retrogoal=101070;const kgml_GlobalScript_s_do_purchase_message=101071;const kgml_Script_s_do_purchase_message=101072;const kgml_GlobalScript_btn_step_check_fullversion=101073;const kgml_Script_btn_step_check_fullversion=101074;const kgml_GlobalScript_btn_step_check_iaps=101075;const kgml_Script_btn_step_check_iaps=101076;const kgml_GlobalScript_s_freeze_purchase_buttons=101077;
const kgml_Script_s_freeze_purchase_buttons=101078;const kgml_GlobalScript_s_unfreeze_purchase_buttons=101079;const kgml_Script_s_unfreeze_purchase_buttons=101080;const kgml_GlobalScript_s_do_info_position=101081;const kgml_Script_s_do_info_position=101082;const kgml_GlobalScript_s_do_info_skills=101083;const kgml_Script_s_do_info_skills=101084;const kgml_GlobalScript_s_do_info_coachtrait=101085;const kgml_Script_s_do_info_coachtrait=101086;const kgml_GlobalScript_s_do_info_draftpicks=101087;const kgml_Script_s_do_info_draftpicks=101088;
const kgml_GlobalScript_s_do_info=101089;const kgml_Script_s_do_info=101090;const kgml_GlobalScript_s_create_camera=101091;const kgml_Script_s_create_camera=101092;const kgml_GlobalScript_s_play=101093;const kgml_Script_s_play=101094;const kgml_GlobalScript_s_update_poki_scaling=101095;const kgml_Script_s_update_poki_scaling=101096;const kgml_GlobalScript_s_pre_match=101097;const kgml_Script_s_pre_match=101098;const kgml_Script_s_continue_time_for_draft_msg=101099;const kgml_GlobalScript_s_player_profile_qb_mode=101100;
const kgml_Script_s_player_profile_qb_mode=101101;const kgml_GlobalScript_s_do_next_week=101102;const kgml_Script_s_do_next_week=101103;const kgml_GlobalScript_s_start_new_season=101104;const kgml_Script_s_start_new_season=101105;const kgml_Script_s_renew_contracts_qb_mode=101106;const kgml_GlobalScript_s_update_team_buttons=101107;const kgml_Script_s_update_team_buttons=101108;const kgml_GlobalScript_s_update_job_offer_buttons=101109;const kgml_Script_s_update_job_offer_buttons=101110;const kgml_GlobalScript_s_update_options=101111;
const kgml_Script_s_update_options=101112;const kgml_GlobalScript_s_get_attitude_icon=101113;const kgml_Script_s_get_attitude_icon=101114;const kgml_Script_s_attitude_reduce_step=101115;const kgml_GlobalScript_s_get_credit=101116;const kgml_Script_s_get_credit=101117;const kgml_GlobalScript_s_decline_facilities=101118;const kgml_Script_s_decline_facilities=101119;const kgml_GlobalScript_s_do_result_news_qb=101120;const kgml_Script_s_do_result_news_qb=101121;const kgml_Script_s_choose_news=101122;const kgml_GlobalScript_s_reset_player_meetings=101123;
const kgml_Script_s_reset_player_meetings=101124;const kgml_GlobalScript_s_has_xp_gain=101125;const kgml_Script_s_has_xp_gain=101126;const kgml_GlobalScript_s_is_bye_week=101127;const kgml_Script_s_is_bye_week=101128;const kgml_Script_s_get_bye_week=101129;const kgml_GlobalScript_s_do_bye_week=101130;const kgml_Script_s_do_bye_week=101131;const kgml_GlobalScript_s_do_postmatch_effects=101132;const kgml_Script_s_do_postmatch_effects=101133;const kgml_GlobalScript_s_do_postmatch_fans=101134;const kgml_Script_s_do_postmatch_fans=101135;
const kgml_Script_s_get_postmatch_fans_qb=101136;const kgml_GlobalScript_s_check_intro=101137;const kgml_Script_s_check_intro=101138;const kgml_GlobalScript_s_do_result_news=101139;const kgml_Script_s_do_result_news=101140;const kgml_GlobalScript_s_count_joboffers=101141;const kgml_Script_s_count_joboffers=101142;const kgml_GlobalScript_s_refresh_save_slots=101143;const kgml_Script_s_refresh_save_slots=101144;const kgml_GlobalScript_s_show_backups=101145;const kgml_Script_s_show_backups=101146;const kgml_Script_s_restore_backup1=101147;
const kgml_Script_s_restore_backup2=101148;const kgml_Script_s_restore_backup3=101149;const kgml_Script_s_restore_backup4=101150;const kgml_Script_s_restore_backup5=101151;const kgml_GlobalScript_s_team_interested=101152;const kgml_Script_s_team_interested=101153;const kgml_Script_s_qb_mode_team_interested=101154;const kgml_GlobalScript_s_update_history=101155;const kgml_Script_s_update_history=101156;const kgml_GlobalScript_s_update_history_finish=101157;const kgml_Script_s_update_history_finish=101158;const kgml_GlobalScript_age_scripts=101159;
const kgml_Script_s_rookie_age_internal=101160;const kgml_Script_s_max_age_player_internal=101161;const kgml_Script_s_max_age_qb_internal=101162;const kgml_Script_s_get_max_age=101163;const kgml_GlobalScript_s_update_history_playoffs=101164;const kgml_Script_s_update_history_playoffs=101165;const kgml_GlobalScript_s_get_history_by_year=101166;const kgml_Script_s_get_history_by_year=101167;const kgml_GlobalScript_s_update_music=101168;const kgml_Script_s_update_music=101169;const kgml_GlobalScript_s_get_ticker_text=101170;
const kgml_Script_s_get_ticker_text=101171;const kgml_GlobalScript_s_choose_random_face_for_me=101172;const kgml_Script_s_choose_random_face_for_me=101173;const kgml_GlobalScript_s_get_kick_direction=101174;const kgml_Script_s_get_kick_direction=101175;const kgml_GlobalScript_s_aiming=101176;const kgml_Script_s_aiming=101177;const kgml_GlobalScript_s_update_ball=101178;const kgml_Script_s_update_ball=101179;const kgml_GlobalScript_s_do_touchback=101180;const kgml_Script_s_do_touchback=101181;const kgml_GlobalScript_s_update_ball_fieldgoal=101182;
const kgml_Script_s_update_ball_fieldgoal=101183;const kgml_GlobalScript_s_update_ball_movement=101184;const kgml_Script_s_update_ball_movement=101185;const kgml_GlobalScript_s_update_ball_offset=101186;const kgml_Script_s_update_ball_offset=101187;const kgml_GlobalScript_s_is_ball_dead=101188;const kgml_Script_s_is_ball_dead=101189;const kgml_GlobalScript_s_check_ball_position=101190;const kgml_Script_s_check_ball_position=101191;const kgml_GlobalScript_s_check_ball_collision=101192;const kgml_Script_s_check_ball_collision=101193;
const kgml_GlobalScript_s_check_tipped=101194;const kgml_Script_s_check_tipped=101195;const kgml_GlobalScript_s_drop_ball=101196;const kgml_Script_s_drop_ball=101197;const kgml_GlobalScript_s_check_dummy_collision=101198;const kgml_Script_s_check_dummy_collision=101199;const kgml_Script_s_sound_training_success=101200;const kgml_GlobalScript_s_kick_ball=101201;const kgml_Script_s_kick_ball=101202;const kgml_GlobalScript_s_spike_ball=101203;const kgml_Script_s_spike_ball=101204;const kgml_GlobalScript_s_set_ball_down=101205;
const kgml_Script_s_set_ball_down=101206;const kgml_GlobalScript_s_receive_ball=101207;const kgml_Script_s_receive_ball=101208;const kgml_GlobalScript_s_opposite_aim=101209;const kgml_Script_s_opposite_aim=101210;const kgml_GlobalScript_s_update_xdead=101211;const kgml_Script_s_update_xdead=101212;const kgml_GlobalScript_s_set_skills_and_skin=101213;const kgml_Script_s_set_skills_and_skin=101214;const kgml_GlobalScript_s_set_anim=101215;const kgml_Script_s_set_anim=101216;const kgml_GlobalScript_s_set_position_offense=101217;
const kgml_Script_s_set_position_offense=101218;const kgml_GlobalScript_s_create_news_message=101219;const kgml_Script_s_create_news_dyn_message=101220;const kgml_GlobalScript_s_set_position_defense=101221;const kgml_Script_s_set_position_defense=101222;const kgml_GlobalScript_s_get_nearest_opponent_by_position=101223;const kgml_Script_s_get_nearest_opponent_by_position=101224;const kgml_GlobalScript_s_set_position_defense_fg=101225;const kgml_Script_s_set_position_defense_fg=101226;const kgml_GlobalScript_s_set_position_offense_fg=101227;
const kgml_Script_s_set_position_offense_fg=101228;const kgml_GlobalScript_s_get_skin_colour_by_index=101229;const kgml_Script_s_get_skin_colour_by_index=101230;const kgml_GlobalScript_s_point_to_path=101231;const kgml_Script_s_point_to_path=101232;const kgml_GlobalScript_s_intercept_object=101233;const kgml_Script_s_intercept_object=101234;const kgml_GlobalScript_s_cover_object=101235;const kgml_Script_s_cover_object=101236;const kgml_GlobalScript_s_get_nearest_opponent=101237;const kgml_Script_s_get_nearest_opponent=101238;
const kgml_GlobalScript_s_aim_for_nearest_opponent=101239;const kgml_Script_s_aim_for_nearest_opponent=101240;const kgml_GlobalScript_s_get_distance_to_nearest_opponent=101241;const kgml_Script_s_get_distance_to_nearest_opponent=101242;const kgml_GlobalScript_s_get_distance_to_furthest_teammate=101243;const kgml_Script_s_get_distance_to_furthest_teammate=101244;const kgml_GlobalScript_s_get_destination=101245;const kgml_Script_s_get_destination=101246;const kgml_GlobalScript_s_check_human_control=101247;
const kgml_Script_s_check_human_control=101248;const kgml_Script_s_do_dive=101249;const kgml_Script_s_do_stutterstep=101250;const kgml_GlobalScript_s_check_tackling=101251;const kgml_Script_s_check_tackling=101252;const kgml_GlobalScript_s_stop_tackling=101253;const kgml_Script_s_stop_tackling=101254;const kgml_GlobalScript_s_check_dive=101255;const kgml_Script_s_check_dive=101256;const kgml_GlobalScript_s_get_quarterback=101257;const kgml_Script_s_get_quarterback=101258;const kgml_GlobalScript_s_get_kicker=101259;
const kgml_Script_s_get_kicker=101260;const kgml_GlobalScript_s_can_run=101261;const kgml_Script_s_can_run=101262;const kgml_GlobalScript_s_is_in_the_clear=101263;const kgml_Script_s_is_in_the_clear=101264;const kgml_GlobalScript_s_ball_holder_goalside=101265;const kgml_Script_s_ball_holder_goalside=101266;const kgml_GlobalScript_s_opponent_goalside=101267;const kgml_Script_s_opponent_goalside=101268;const kgml_GlobalScript_s_y_on_myside=101269;const kgml_Script_s_y_on_myside=101270;const kgml_GlobalScript_s_aim_AI_offense=101271;
const kgml_Script_s_aim_AI_offense=101272;const kgml_GlobalScript_s_aim_AI_defense=101273;const kgml_Script_s_aim_AI_defense=101274;const kgml_GlobalScript_s_received_AI_new=101275;const kgml_Script_s_received_AI_new=101276;const kgml_GlobalScript_s_can_throw=101277;const kgml_Script_s_can_throw=101278;const kgml_GlobalScript_s_sprite_holding_ball=101279;const kgml_Script_s_sprite_holding_ball=101280;const kgml_GlobalScript_s_is_falling=101281;const kgml_Script_s_is_falling=101282;const kgml_GlobalScript_is_defensiveback=101283;
const kgml_Script_is_defensiveback=101284;const kgml_GlobalScript_s_get_qb_name=101285;const kgml_Script_s_get_qb_name=101286;const kgml_GlobalScript_s_get_kicker_name=101287;const kgml_Script_s_get_kicker_name=101288;const kgml_GlobalScript_s_get_holder_name=101289;const kgml_Script_s_get_holder_name=101290;const kgml_GlobalScript_s_get_opponent_team_tla=101291;const kgml_Script_s_get_opponent_team_tla=101292;const kgml_GlobalScript_s_set_up_play=101293;const kgml_Script_s_set_up_play=101294;const kgml_Script_s_btn_audible_reposition=101295;
const kgml_Script_s_btn_fieldgoal_reposition=101296;const kgml_GlobalScript_s_update_commentary=101297;const kgml_Script_s_update_commentary=101298;const kgml_Script_s_go_for_it_or_not=101299;const kgml_Script_s_check_skip_time_button=101300;const kgml_Script_btn_skip_time=101301;const kgml_GlobalScript_s_choose_defensive_formation=101302;const kgml_Script_s_choose_defensive_formation=101303;const kgml_GlobalScript_s_set_up_fieldgoal=101304;const kgml_Script_s_set_up_fieldgoal=101305;const kgml_GlobalScript_s_subtract_time=101306;
const kgml_Script_s_subtract_time=101307;const kgml_GlobalScript_s_update_game_timer=101308;const kgml_Script_s_update_game_timer=101309;const kgml_GlobalScript_s_update_game_clock=101310;const kgml_Script_s_update_game_clock=101311;const kgml_GlobalScript_s_update_yard_gain=101312;const kgml_Script_s_update_yard_gain=101313;const kgml_GlobalScript_s_set_rewarded_route=101314;const kgml_Script_s_set_rewarded_route=101315;const kgml_GlobalScript_s_switch_drivedirection=101316;const kgml_Script_s_switch_drivedirection=101317;
const kgml_GlobalScript_s_destroy_match_objects=101318;const kgml_Script_s_destroy_match_objects=101319;const kgml_GlobalScript_s_action_result=101320;const kgml_Script_s_action_result=101321;const kgml_GlobalScript_s_is_quarter_over=101322;const kgml_Script_s_is_quarter_over=101323;const kgml_GlobalScript_s_is_on_pitch=101324;const kgml_Script_s_is_on_pitch=101325;const kgml_GlobalScript__poki_is_mobile=101326;const kgml_Script__poki_is_mobile=101327;const kgml_GlobalScript_s_is_on_pitch_xy=101328;const kgml_Script_s_is_on_pitch_xy=101329;
const kgml_GlobalScript_s_end_match=101330;const kgml_Script_s_end_match=101331;const kgml_GlobalScript_s_update_stats=101332;const kgml_Script_s_update_stats=101333;const kgml_GlobalScript_s_convert_scrimmage_to_goal_distance=101334;const kgml_Script_s_convert_scrimmage_to_goal_distance=101335;const kgml_GlobalScript_s_kick_off=101336;const kgml_Script_s_kick_off=101337;const kgml_GlobalScript_s_punt=101338;const kgml_Script_s_punt=101339;const kgml_GlobalScript_s_change_possession=101340;const kgml_Script_s_change_possession=101341;
const kgml_GlobalScript_s_tackle_failure=101342;const kgml_Script_s_tackle_failure=101343;const kgml_GlobalScript_s_last_secs_of_half=101344;const kgml_Script_s_last_secs_of_half=101345;const kgml_Script_s_seconds_remaining=101346;const kgml_GlobalScript_s_reset_wind=101347;const kgml_Script_s_reset_wind=101348;const kgml_GlobalScript_s_change_wind=101349;const kgml_Script_s_change_wind=101350;const kgml_GlobalScript_s_force_quit=101351;const kgml_Script_s_force_quit=101352;const kgml_GlobalScript_s_do_audible=101353;
const kgml_Script_s_do_audible=101354;const kgml_GlobalScript_s_do_timeout=101355;const kgml_Script_s_do_timeout=101356;const kgml_GlobalScript_s_check_win_after_turnover=101357;const kgml_Script_s_check_win_after_turnover=101358;const kgml_Script_s_both_teams_had_possession=101359;const kgml_GlobalScript_s_clear_clock=101360;const kgml_Script_s_clear_clock=101361;const kgml_GlobalScript_s_fieldtxt=101362;const kgml_Script_s_fieldtxt=101363;const kgml_Script_s_fieldtxt_yards=101364;const kgml_Script_s_fieldimg=101365;
const kgml_GlobalScript_s_fieldtxt_yards=101366;const kgml_GlobalScript_s_sound_audience_idle=101367;const kgml_Script_s_sound_audience_idle=101368;const kgml_GlobalScript_s_create_match_message=101369;const kgml_Script_s_create_match_message=101370;const kgml_Script_s_create_head2head_message=101371;const kgml_GlobalScript_s_draw_commentary=101372;const kgml_Script_s_draw_commentary=101373;const kgml_GlobalScript_s_draw_scoreboard=101374;const kgml_Script_s_draw_scoreboard=101375;const kgml_GlobalScript_s_draw_scrimmage=101376;
const kgml_Script_s_draw_scrimmage=101377;const kgml_GlobalScript_s_draw_wind=101378;const kgml_Script_s_draw_wind=101379;const kgml_GlobalScript_s_draw_kicking_power=101380;const kgml_Script_s_draw_kicking_power=101381;const kgml_GlobalScript_s_draw_my_route=101382;const kgml_Script_s_draw_my_route=101383;const kgml_GlobalScript_s_draw_kick_cone=101384;const kgml_Script_s_draw_kick_cone=101385;const kgml_GlobalScript_s_check_draft_qb=101386;const kgml_Script_s_check_draft_QB=101387;const kgml_Script_s_do_qb_draft_round=101388;
const kgml_Script_s_get_weakest_player_by_position=101389;const kgml_Script_s_find_draft_player_by_position=101390;const kgml_Script_s_get_player_by_position_for_qb_draft=101391;const kgml_Script_s_do_contract_news=101392;const kgml_Script_s_goto_room_contract=101393;const kgml_Script_btn_qb_mode_interested_teams=101394;const kgml_GlobalScript_s_update_my_shadow=101395;const kgml_Script_s_update_my_shadow=101396;const kgml_GlobalScript_s_set_up_practice=101397;const kgml_Script_s_set_up_practice=101398;const kgml_GlobalScript_s_practice_passing=101399;
const kgml_Script_s_practice_passing=101400;const kgml_GlobalScript_s_reinstate_hof_player=101401;const kgml_Script_s_reinstate_hof_player=101402;const kgml_GlobalScript_s_practice_running=101403;const kgml_Script_s_practice_running=101404;const kgml_GlobalScript_s_practice_running_qb=101405;const kgml_Script_s_practice_running_qb=101406;const kgml_GlobalScript_s_create_dummy=101407;const kgml_Script_s_create_dummy=101408;const kgml_GlobalScript_s_create_boundary=101409;const kgml_Script_s_create_boundary=101410;
const kgml_GlobalScript_debug_scripts=101411;const kgml_Script_s_debug_window_size=101412;const kgml_GlobalScript_s_sound_kick=101413;const kgml_Script_s_sound_kick=101414;const kgml_GlobalScript_s_sound_throw=101415;const kgml_Script_s_sound_throw=101416;const kgml_GlobalScript_s_sound_post=101417;const kgml_Script_s_sound_post=101418;const kgml_GlobalScript_s_sound_audience_dis=101419;const kgml_Script_s_sound_audience_dis=101420;const kgml_GlobalScript_s_sound_audience_fg=101421;const kgml_Script_s_sound_audience_fg=101422;
const kgml_GlobalScript_s_sound_bounce=101423;const kgml_Script_s_sound_bounce=101424;const kgml_GlobalScript_s_sound_tackle=101425;const kgml_Script_s_sound_tackle=101426;const kgml_GlobalScript_s_sound_oof=101427;const kgml_Script_s_sound_oof=101428;const kgml_GlobalScript_s_sound_dive=101429;const kgml_Script_s_sound_dive=101430;const kgml_GlobalScript_s_sound_loop=101431;const kgml_Script_s_sound_loop=101432;const kgml_GlobalScript_s_qb_run=101433;const kgml_Script_s_qb_run=101434;const kgml_Script_s_qb_revert_throw=101435;
const kgml_GlobalScript_s_throw_ball=101436;const kgml_Script_s_throw_ball=101437;const kgml_GlobalScript_s_record_frame=101438;const kgml_Script_s_record_frame=101439;const kgml_GlobalScript_s_replay_frame=101440;const kgml_Script_s_replay_frame=101441;const kgml_GlobalScript_s_start_replay=101442;const kgml_Script_s_start_replay=101443;const kgml_GlobalScript_s_end_replay=101444;const kgml_Script_s_end_replay=101445;const kgml_GlobalScript_s_get_qb_pmap=101446;const kgml_Script_s_get_qb_pmap=101447;const kgml_GlobalScript_s_create_message=101448;
const kgml_Script_s_create_message=101449;const kgml_Script_s_message_recenter=101450;const kgml_Script_s_create_message3=101451;const kgml_Script_s_do_message=101452;const kgml_Script_s_msg=101453;const kgml_GlobalScript_s_meter_change=101454;const kgml_Script_s_meter_change=101455;const kgml_GlobalScript_s_meter_change_end=101456;const kgml_Script_s_meter_change_end=101457;const kgml_GlobalScript_s_notification=101458;const kgml_Script_s_notification=101459;const kgml_GlobalScript_s_msg_clear=101460;const kgml_Script_s_msg_clear=101461;
const kgml_GlobalScript_s_msg_clear_info_draft=101462;const kgml_Script_s_msg_clear_info_draft=101463;const kgml_GlobalScript_s_add_news=101464;const kgml_Script_s_add_news=101465;const kgml_Script_s_add_news_if_new=101466;const kgml_Script_s_remove_news=101467;const kgml_Script_s_add_news_dyn=101468;const kgml_GlobalScript_s_check_for_news=101469;const kgml_Script_s_check_for_news=101470;const kgml_GlobalScript_s_news_clear=101471;const kgml_Script_s_news_clear=101472;const kgml_GlobalScript_s_do_banner_draft=101473;
const kgml_Script_s_do_banner_draft=101474;const kgml_Script_s_do_banner_season_review=101475;const kgml_GlobalScript_s_do_review_message=101476;const kgml_Script_s_do_review_message=101477;const kgml_GlobalScript_btn_response_review_yes=101478;const kgml_Script_btn_response_review_yes=101479;const kgml_Script_btn_response_review_no=101480;const kgml_GlobalScript_s_edit_field=101481;const kgml_Script_s_edit_field=101482;const kgml_GlobalScript_s_edit_cancel=101483;const kgml_Script_s_edit_cancel=101484;const kgml_GlobalScript_s_edit_confirm_profile=101485;
const kgml_Script_s_edit_confirm_profile=101486;const kgml_Script_s_update_boss_profile=101487;const kgml_GlobalScript_s_msg_timeouts=101488;const kgml_Script_s_msg_timeouts=101489;const kgml_GlobalScript_s_get_record=101490;const kgml_Script_s_get_record=101491;const kgml_GlobalScript_s_check_record=101492;const kgml_Script_s_check_record=101493;const kgml_GlobalScript_s_check_record_text=101494;const kgml_Script_s_check_record_text=101495;const kgml_GlobalScript_s_sort_record_list=101496;const kgml_Script_s_sort_record_list=101497;
const kgml_GlobalScript_s_get_player_name_for_record=101498;const kgml_Script_s_get_player_name_for_record=101499;const kgml_GlobalScript_s_check_repeat_retrobowls=101500;const kgml_Script_s_check_repeat_retrobowls=101501;const kgml_GlobalScript_s_create_player=101502;const kgml_Script_s_create_player_get_RC_cost=101503;const kgml_Script_s_create_player=101504;const kgml_GlobalScript_s_sort_players=101505;const kgml_Script_s_sort_players=101506;const kgml_GlobalScript_s_create_new_roster=101507;const kgml_Script_s_create_new_roster=101508;
const kgml_GlobalScript_s_create_new_roster_newteam=101509;const kgml_Script_s_create_new_roster_newteam=101510;const kgml_GlobalScript_s_lastname_already_on_roster=101511;const kgml_Script_s_lastname_already_on_roster=101512;const kgml_GlobalScript_s_position_already_on_roster=101513;const kgml_Script_s_position_already_on_roster=101514;const kgml_GlobalScript_s_get_required_position=101515;const kgml_Script_s_get_required_position=101516;const kgml_Script_s_get_required_position_no_QB_RB=101517;const kgml_GlobalScript_s_get_player_rating=101518;
const kgml_Script_s_get_player_rating=101519;const kgml_GlobalScript_s_get_player_potential=101520;const kgml_Script_s_get_player_potential=101521;const kgml_GlobalScript_s_obj_player_draw_begin=101522;const kgml_Script_s_obj_player_draw_begin=101523;const kgml_GlobalScript_s_get_player_by_position=101524;const kgml_Script_s_get_player_by_position=101525;const kgml_Script_s_get_player_kick_returner=101526;const kgml_GlobalScript_s_get_player_by_lname=101527;const kgml_Script_s_get_player_by_lname=101528;const kgml_GlobalScript_s_get_random_player=101529;
const kgml_Script_s_get_random_player=101530;const kgml_GlobalScript_s_get_random_player_by_position=101531;const kgml_Script_s_get_random_player_by_position=101532;const kgml_GlobalScript_s_get_random_player_defensive=101533;const kgml_Script_s_get_random_player_defensive=101534;const kgml_GlobalScript_s_get_random_player_offensive=101535;const kgml_Script_s_get_random_player_offensive=101536;const kgml_GlobalScript_s_get_random_coach=101537;const kgml_Script_s_get_random_coach=101538;const kgml_GlobalScript_btn_click_qb_items=101539;
const kgml_Script_btn_click_qb_items=101540;const kgml_Script_btn_click_qb_vehicles=101541;const kgml_Script_btn_click_qb_property=101542;const kgml_GlobalScript_s_count_players_by_position=101543;const kgml_Script_s_count_players_by_position=101544;const kgml_GlobalScript_s_count_players_onfield_by_position=101545;const kgml_Script_s_count_players_onfield_by_position=101546;const kgml_GlobalScript_s_count_defenders=101547;const kgml_Script_s_count_defenders=101548;const kgml_GlobalScript_btn_click_OptionsControls=101549;
const kgml_Script_btn_click_OptionsControls=101550;const kgml_Script_btn_click_OptionsControls1=101551;const kgml_Script_btn_click_OptionsControls2=101552;const kgml_Script_btn_click_OptionsControls3=101553;const kgml_Script_s_update_control_screen=101554;const kgml_GlobalScript_s_get_position_colour=101555;const kgml_Script_s_get_position_colour=101556;const kgml_GlobalScript_s_increase_player_attribute=101557;const kgml_Script_s_increase_player_attribute=101558;const kgml_GlobalScript_s_player_at_max_potential=101559;
const kgml_Script_s_player_at_max_potential=101560;const kgml_GlobalScript_s_is_offensive_player=101561;const kgml_Script_s_is_offensive_player=101562;const kgml_Script_s_get_training_reg=101563;const kgml_GlobalScript_s_is_defensive_player=101564;const kgml_Script_s_is_defensive_player=101565;const kgml_GlobalScript_s_get_average_yards=101566;const kgml_Script_s_get_average_yards=101567;const kgml_GlobalScript_s_get_player_name=101568;const kgml_Script_s_get_player_name=101569;const kgml_GlobalScript_s_get_meeting_cost_morale=101570;
const kgml_Script_s_get_meeting_cost_morale=101571;const kgml_GlobalScript_s_get_meeting_cost_condition=101572;const kgml_Script_s_get_meeting_cost_condition=101573;const kgml_GlobalScript_s_get_meeting_cost_levelup=101574;const kgml_Script_s_get_meeting_cost_levelup=101575;const kgml_GlobalScript_s_get_meeting_cost_delay_retirement=101576;const kgml_Script_s_get_meeting_cost_delay_retirement=101577;const kgml_GlobalScript_s_get_meeting_cost_extend_contract=101578;const kgml_Script_s_get_meeting_cost_extend_contract=101579;
const kgml_GlobalScript_s_get_match_rating=101580;const kgml_Script_s_get_match_rating=101581;const kgml_GlobalScript_s_reset_match_stats=101582;const kgml_Script_s_reset_match_stats=101583;const kgml_GlobalScript_s_toxic_effect_on_morale=101584;const kgml_Script_s_toxic_effect_on_morale=101585;const kgml_GlobalScript_s_match_rating_effect_on_morale=101586;const kgml_Script_s_match_rating_effect_on_morale=101587;const kgml_GlobalScript_s_training_regime_effect_on_morale=101588;const kgml_Script_s_training_regime_effect_on_morale=101589;
const kgml_GlobalScript_s_injury_effect_on_attitude=101590;const kgml_Script_s_injury_effect_on_attitude=101591;const kgml_GlobalScript_s_rehab_effect=101592;const kgml_Script_s_rehab_effect=101593;const kgml_GlobalScript_s_add_xp_gain_all=101594;const kgml_Script_s_add_xp_gain_all=101595;const kgml_GlobalScript_s_check_for_injury=101596;const kgml_Script_s_check_for_injury=101597;const kgml_GlobalScript_s_count_injuries=101598;const kgml_Script_s_count_injuries=101599;const kgml_GlobalScript_s_count_injuries_weeks=101600;
const kgml_Script_s_count_injuries_weeks=101601;const kgml_GlobalScript_s_choose_face=101602;const kgml_Script_s_choose_face=101603;const kgml_GlobalScript_s_get_max_age=101604;const kgml_GlobalScript_s_get_max_age_normal=101605;const kgml_Script_s_get_max_age_normal=101606;const kgml_GlobalScript_s_get_num_audibles=101607;const kgml_Script_s_get_num_audibles=101608;const kgml_GlobalScript_s_get_morale=101609;const kgml_Script_s_get_morale=101610;const kgml_GlobalScript_s_get_condition_squad=101611;const kgml_Script_s_get_condition_squad=101612;
const kgml_GlobalScript_s_adjust_team_morale=101613;const kgml_Script_s_adjust_team_morale=101614;const kgml_GlobalScript_s_set_team_morale=101615;const kgml_Script_s_set_team_morale=101616;const kgml_GlobalScript_s_position_edit_name_btn=101617;const kgml_Script_s_position_edit_name_btn=101618;const kgml_GlobalScript_s_update_rest_all_button=101619;const kgml_Script_s_update_rest_all_button=101620;const kgml_GlobalScript_s_all_players_resting=101621;const kgml_Script_s_all_players_resting=101622;const kgml_GlobalScript_s_rest_all_players=101623;
const kgml_Script_s_rest_all_players=101624;const kgml_GlobalScript_s_tag_backups=101625;const kgml_Script_s_tag_backups=101626;const kgml_GlobalScript_s_is_backup=101627;const kgml_Script_s_is_backup=101628;const kgml_GlobalScript_s_do_player_awards=101629;const kgml_Script_s_do_player_awards=101630;const kgml_GlobalScript_s_award_sb_rings=101631;const kgml_Script_s_award_sb_rings=101632;const kgml_GlobalScript_s_round_player_attributes=101633;const kgml_Script_s_round_player_attributes=101634;const kgml_GlobalScript_s_get_store_player_by_position=101635;
const kgml_Script_s_get_store_player_by_position=101636;const kgml_GlobalScript_s_create_new_stafflist=101637;const kgml_Script_s_create_new_stafflist=101638;const kgml_GlobalScript_s_create_staff=101639;const kgml_Script_s_create_staff=101640;const kgml_Script_s_create_headcoach_pmap=101641;const kgml_GlobalScript_s_create_hirelist=101642;const kgml_Script_s_create_hirelist=101643;const kgml_GlobalScript_s_sort_hirelist=101644;const kgml_Script_s_sort_hirelist=101645;const kgml_GlobalScript_s_reset_staff_hire_list=101646;
const kgml_Script_s_reset_staff_hire_list=101647;const kgml_GlobalScript_s_get_staff=101648;const kgml_Script_s_get_staff=101649;const kgml_GlobalScript_s_is_staff=101650;const kgml_Script_s_is_staff=101651;const kgml_GlobalScript_s_get_coach_cost=101652;const kgml_Script_s_get_coach_cost=101653;const kgml_GlobalScript_s_coach_trait_experience=101654;const kgml_Script_s_coach_trait_experience=101655;const kgml_GlobalScript_s_coach_trait_talentspotter=101656;const kgml_Script_s_coach_trait_talentspotter=101657;
const kgml_GlobalScript_s_coach_trait_motivator=101658;const kgml_Script_s_coach_trait_motivator=101659;const kgml_GlobalScript_btn_click_qb_training=101660;const kgml_Script_btn_click_qb_training=101661;const kgml_Script_s_do_qb_training=101662;const kgml_GlobalScript_btn_click_GenerateCharacter=101663;const kgml_Script_btn_click_GenerateCharacter=101664;const kgml_GlobalScript_s_count_trait_fanfavorite=101665;const kgml_Script_s_count_trait_fanfavorite=101666;const kgml_GlobalScript_s_count_trait_scout=101667;
const kgml_Script_s_count_trait_scout=101668;const kgml_GlobalScript_s_fire_coach=101669;const kgml_Script_s_fire_coach=101670;const kgml_GlobalScript_s_check_contracts_expiring=101671;const kgml_Script_s_check_contracts_expiring=101672;const kgml_GlobalScript_s_str=101673;const kgml_Script_s_str=101674;const kgml_Script_s_str_real=101675;const kgml_GlobalScript_s_split_string=101676;const kgml_Script_s_split_string=101677;const kgml_GlobalScript_s_parse_news=101678;const kgml_Script_s_parse_news=101679;const kgml_GlobalScript_s_parse_intro=101680;
const kgml_Script_s_parse_intro=101681;const kgml_GlobalScript_s_parse_player_message=101682;const kgml_Script_s_parse_player_message=101683;const kgml_GlobalScript_s_strP=101684;const kgml_Script_s_strP=101685;const kgml_GlobalScript_s_sim_stat_increment=101686;const kgml_Script_s_sim_stat_increment=101687;const kgml_Script_s_sim_stat_update=101688;const kgml_Script_s_sim_stat_touchdown=101689;const kgml_Script_s_sim_stat_pass=101690;const kgml_Script_s_sim_stat_run=101691;const kgml_Script_s_sim_stat_fumble=101692;
const kgml_Script_s_sim_stat_interception=101693;const kgml_Script_s_sim_stat_sack=101694;const kgml_GlobalScript_s_parse_string=101695;const kgml_Script_s_parse_string=101696;const kgml_GlobalScript_s_crop_text=101697;const kgml_Script_s_crop_text=101698;const kgml_GlobalScript_s_get_string_ball_state=101699;const kgml_Script_s_get_string_ball_state=101700;const kgml_GlobalScript_s_get_string_state=101701;const kgml_Script_s_get_string_state=101702;const kgml_GlobalScript_s_get_string_sex=101703;const kgml_Script_s_get_string_sex=101704;
const kgml_GlobalScript_s_get_string_heshe=101705;const kgml_Script_s_get_string_heshe=101706;const kgml_GlobalScript_s_get_string_time=101707;const kgml_Script_s_get_string_time=101708;const kgml_GlobalScript_s_string_rand=101709;const kgml_Script_s_string_rand=101710;const kgml_GlobalScript_s_get_string_downand=101711;const kgml_Script_s_get_string_downand=101712;const kgml_GlobalScript_s_get_string_float=101713;const kgml_Script_s_get_string_float=101714;const kgml_GlobalScript_s_get_string_division=101715;
const kgml_Script_s_get_string_division=101716;const kgml_GlobalScript_s_get_string_conference=101717;const kgml_Script_s_get_string_conference=101718;const kgml_GlobalScript_s_get_string_week=101719;const kgml_Script_s_get_string_week=101720;const kgml_GlobalScript_s_get_string_week_short=101721;const kgml_Script_s_get_string_week_short=101722;const kgml_GlobalScript_s_get_string_year=101723;const kgml_Script_s_get_string_year=101724;const kgml_GlobalScript_s_get_string_commstage=101725;const kgml_Script_s_get_string_commstage=101726;
const kgml_GlobalScript_s_get_string_position=101727;const kgml_Script_s_get_string_position=101728;const kgml_GlobalScript_s_get_string_position_full=101729;const kgml_Script_s_get_string_position_full=101730;const kgml_GlobalScript_s_get_string_attitude=101731;const kgml_Script_s_get_string_attitude=101732;const kgml_GlobalScript_s_get_string_trade_value=101733;const kgml_Script_s_get_string_trade_value=101734;const kgml_GlobalScript_s_get_string_anim=101735;const kgml_Script_s_get_string_anim=101736;const kgml_GlobalScript_s_get_string_condition=101737;
const kgml_Script_s_get_string_condition=101738;const kgml_GlobalScript_s_get_string_record=101739;const kgml_Script_s_get_string_record=101740;const kgml_GlobalScript_s_get_string_trait=101741;const kgml_Script_s_get_string_trait=101742;const kgml_GlobalScript_s_get_string_action_result=101743;const kgml_Script_s_get_string_action_result=101744;const kgml_GlobalScript_s_can_touchback=101745;const kgml_Script_s_can_touchback=101746;const kgml_GlobalScript_s_get_string_performance=101747;const kgml_Script_s_get_string_performance=101748;
const kgml_GlobalScript_s_get_random_teamname=101749;const kgml_Script_s_get_random_teamname=101750;const kgml_GlobalScript_btn_click_Roster_List=101751;const kgml_Script_btn_click_Roster_List=101752;const kgml_GlobalScript_s_get_string_picks=101753;const kgml_Script_s_get_string_picks=101754;const kgml_GlobalScript_s_get_team_by_id=101755;const kgml_Script_s_get_team_by_id=101756;const kgml_GlobalScript_s_get_team_name_by_id=101757;const kgml_Script_s_get_team_name_by_id=101758;const kgml_GlobalScript_s_get_team_tla_by_id=101759;
const kgml_Script_s_get_team_tla_by_id=101760;const kgml_GlobalScript_s_sort_teams=101761;const kgml_Script_s_sort_teams=101762;const kgml_GlobalScript_s_get_team_by_seed=101763;const kgml_Script_s_get_team_by_seed=101764;const kgml_Script_s_get_team_seeding=101765;const kgml_GlobalScript_s_get_team_id_by_seed=101766;const kgml_Script_s_get_team_id_by_seed=101767;const kgml_GlobalScript_s_get_team_name_by_seed=101768;const kgml_Script_s_get_team_name_by_seed=101769;const kgml_GlobalScript_s_get_team_offense=101770;
const kgml_Script_s_get_team_offense=101771;const kgml_GlobalScript_s_get_defense_attribute=101772;const kgml_Script_s_get_defense_attribute=101773;const kgml_Script_s_get_attribute=101774;const kgml_Script_s_attribute_buff=101775;const kgml_GlobalScript_s_get_team_defense=101776;const kgml_Script_s_get_team_defense=101777;const kgml_GlobalScript_s_get_salary_total=101778;const kgml_Script_s_get_salary_total=101779;const kgml_GlobalScript_s_refactor_team_strengths=101780;const kgml_Script_s_refactor_team_strengths=101781;
const kgml_GlobalScript_s_get_team_winpct=101782;const kgml_Script_s_get_team_winpct=101783;const kgml_GlobalScript_s_get_team_net_points=101784;const kgml_Script_s_get_team_net_points=101785;const kgml_GlobalScript_s_get_points_versus=101786;const kgml_Script_s_get_points_versus=101787;const kgml_GlobalScript_s_get_wins_versus=101788;const kgml_Script_s_get_wins_versus=101789;const kgml_GlobalScript_s_get_point_swing=101790;const kgml_Script_s_get_point_swing=101791;const kgml_Script_s_get_head_to_head=101792;
const kgml_Script_s_get_win_pecentage_by_confdiv=101793;const kgml_GlobalScript_s_get_points_season=101794;const kgml_Script_s_get_points_season=101795;const kgml_GlobalScript_s_practice_qb_mode=101796;const kgml_Script_s_practice_qb_mode=101797;const kgml_Script_s_end_qb_mode_practice=101798;const kgml_Script_s_quit_qb_mode_practice=101799;const kgml_GlobalScript_s_col_hex_to_r=101800;const kgml_Script_s_col_hex_to_r=101801;const kgml_GlobalScript_s_col_hex_to_g=101802;const kgml_Script_s_col_hex_to_g=101803;
const kgml_GlobalScript_s_col_hex_to_b=101804;const kgml_Script_s_col_hex_to_b=101805;const kgml_GlobalScript_s_hex_string_to_col=101806;const kgml_Script_s_hex_string_to_col=101807;const kgml_GlobalScript_s_rgb_to_bgr=101808;const kgml_Script_s_rgb_to_bgr=101809;const kgml_GlobalScript_s_set_up_globals=101810;const kgml_Script_s_set_up_globals=101811;const kgml_Script_s_set_up_temp_variables=101812;const kgml_GlobalScript_slog=101813;const kgml_Script_slog=101814;const kgml_Script_slog2=101815;const kgml_Script_slogf=101816;
const kgml_GlobalScript_s_sound=101817;const kgml_Script_s_sound=101818;const kgml_GlobalScript_s_make_random_colour=101819;const kgml_Script_s_make_random_colour=101820;const kgml_GlobalScript_s_lines_intersect=101821;const kgml_Script_s_lines_intersect=101822;const kgml_GlobalScript_s_log_player=101823;const kgml_Script_s_log_player=101824;const kgml_GlobalScript_s_get_random_college_name=101825;const kgml_Script_s_get_random_college_name=101826;const kgml_GlobalScript_s_get_random_charity=101827;const kgml_Script_s_get_random_charity=101828;
const kgml_GlobalScript_s_get_aim_direction=101829;const kgml_Script_s_get_aim_direction=101830;const kgml_GlobalScript_s_get_random_first_name=101831;const kgml_Script_s_get_random_first_name=101832;const kgml_GlobalScript_s_get_random_last_name=101833;const kgml_Script_s_get_random_last_name=101834;const kgml_GlobalScript_s_format_hex_color=101835;const kgml_Script_s_format_hex_color=101836;const kgml_GlobalScript_s_color_to_hex=101837;const kgml_Script_s_color_to_hex=101838;const kgml_GlobalScript_s_gui_helpers=101839;
const kgml_Script_s_create_label=101840;const kgml_GlobalScript_btn_click_SeasonReviewBack=101841;const kgml_Script_btn_click_SeasonReviewBack=101842;const kgml_GlobalScript_s_dec_to_hex=101843;const kgml_Script_s_dec_to_hex=101844;const kgml_GlobalScript_s_roman_numerals=101845;const kgml_Script_s_roman_numerals=101846;const kgml_GlobalScript_s_get_watermark_color=101847;const kgml_Script_s_get_watermark_color=101848;const kgml_GlobalScript_s_generate_uid=101849;const kgml_Script_s_generate_uid=101850;const kgml_GlobalScript_gmcallback_poki_loadbar=101851;
const kgml_Script_gmcallback_poki_loadbar=101852;const kgml_GlobalScript_poki_pause=101853;const kgml_Script_poki_pause=101854;const kgml_GlobalScript_s_set_up_qb_pmap=101855;const kgml_Script_s_set_up_qb_pmap=101856;const kgml_GlobalScript_poki_resume=101857;const kgml_Script_poki_resume=101858;const kgml_GlobalScript_scale_canvas=101859;const kgml_Script_scale_canvas=101860;const kgml_GlobalScript_s_update_camera=101861;const kgml_Script_s_update_camera=101862;const kgml_GlobalScript__poki_gameplay_start=101863;
const kgml_Script__poki_gameplay_start=101864;const kgml_GlobalScript__poki_gameplay_stop=101865;const kgml_Script__poki_gameplay_stop=101866;const kgml_GlobalScript_s_find_gamepad=101867;const kgml_Script_s_find_gamepad=101868;const kgml_Script_s_gamepad_is_fingerprint_sensor=101869;const kgml_GlobalScript_s_update_gamepad=101870;const kgml_Script_s_update_gamepad=101871;const kgml_Script_s_gamepad_activity=101872;const kgml_Script_s_clear_last_selected_history=101873;const kgml_Script_s_overwrite_last_selected=101874;
const kgml_Script____struct___28_s_save_last_selected_gml_GlobalScript_s_update_gamepad=101875;const kgml_Script_s_save_last_selected=101876;const kgml_Script_s_get_last_selected=101877;const kgml_GlobalScript_s_find_default_button=101878;const kgml_Script_s_find_default_button=101879;const kgml_GlobalScript_s_get_watermarked_stats=101880;const kgml_Script_s_get_watermarked_stats=101881;const kgml_GlobalScript_s_get_qb_energy=101882;const kgml_Script_s_get_qb_energy=101883;const kgml_GlobalScript_btn_click_external_links=101884;
const kgml_Script_btn_click_BuyMerch=101885;const kgml_Script_btn_click_MusicBy=101886;const kgml_Script_btn_click_YouTube=101887;const kgml_Script_btn_click_RecordBook=101888;const kgml_Script_btn_click_Leagues=101889;const kgml_Script_btn_click_ad_NSS=101890;const kgml_Script_btn_click_ad_NSM=101891;const kgml_Script_btn_click_ad_RG=101892;const kgml_Script_btn_click_ad_NSB=101893;const kgml_Script_btn_click_NewStarGames=101894;const kgml_GlobalScript_s_do_prematch_dilemma_qb=101895;const kgml_Script_s_do_prematch_dilemma_qb=101896;
const kgml_GlobalScript_s_sound_audience_catch=101897;const kgml_Script_s_sound_audience_catch=101898;const kgml_GlobalScript_s_player_gpa=101899;const kgml_Script_s_gpa_from_percent_grade=101900;const kgml_Script_s_gpa_string=101901;const kgml_Script_s_decay_percent_grade=101902;const kgml_Script_s_post_match_gpa_refresh=101903;const kgml_Script_s_add_percent_grade=101904;const kgml_Script_s_get_decay=101905;const kgml_Script_s_get_decay_info=101906;const kgml_Script_s_refresh_suspended=101907;const kgml_Script_s_get_percent_grade_squad=101908;
const kgml_Script_btn_click_Boost_GPA=101909;const kgml_Script_btn_response_boost_gpa=101910;const kgml_Script_s_my_team_academics=101911;const kgml_Script_s_player_grade_suspend=101912;const kgml_Script_s_player_grade_lift_suspension=101913;const kgml_GlobalScript_s_canvas_fullscreen=101914;const kgml_Script_s_canvas_fullscreen=101915;const kgml_GlobalScript_s_player_party=101916;const kgml_Script_s_update_party_meter=101917;const kgml_Script_s_get_party_info=101918;const kgml_Script_s_add_to_party_meter=101919;
const kgml_Script_s_clear_party_meter=101920;const kgml_Script_s_team_halve_all_party_meters=101921;const kgml_GlobalScript_btn_click_LeagueMode=101922;const kgml_Script_btn_click_LeagueMode=101923;const kgml_GlobalScript_pause_scripts=101924;const kgml_Script_s_pause_toggle=101925;const kgml_Script_s_pause_is_available=101926;const kgml_Script_s_pause_step=101927;const kgml_Script_s_is_paused_or_just_unpaused=101928;const kgml_Script_s_draw_pause=101929;const kgml_Script_s_pause_btn_init=101930;const kgml_Script_s_pause_btn_step=101931;
const kgml_Script_s_pause_btn_draw_gui=101932;const kgml_Script_s_pause_btn_recenter=101933;const kgml_Script_s_pause_options_init=101934;const kgml_Script_s_pause_options_recenter=101935;const kgml_Script_s_pause_options_dismiss=101936;const kgml_Script_s_pause_options_draw_gui=101937;const kgml_Script_s_pause_options_layer=101938;const kgml_Script_s_pause_options_add_button=101939;const kgml_Script_s_pause_options_add_quit=101940;const kgml_Script_s_pause_options_update_buttons=101941;const kgml_Script_s_pause_options_button_action=101942;
const kgml_Script_s_pause_options_quit_game=101943;const kgml_Script_btn_response_quit_exhibution_cancel=101944;const kgml_Script_btn_response_quit_exhibution_confirm=101945;const kgml_GlobalScript_s_draw_scoreboard_qb_training=101946;const kgml_Script_s_draw_scoreboard_qb_training=101947;const kgml_GlobalScript_s_update_manual_gestures=101948;const kgml_Script_s_update_manual_gestures=101949;const kgml_GlobalScript_s_obj_controller_draw_begin=101950;const kgml_Script_s_obj_controller_draw_begin=101951;const kgml_Script____struct___29_gml_Object_obj_frontoffice_Create_0=101952;
gml_Script____struct___0_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts.__yyg__is_constructor=true;gml_Script____struct___1_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___2_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___3_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___4_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;
gml_Script____struct___5_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___6_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___7_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___8_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;
gml_Script____struct___9_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___10_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___11_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___12_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;
gml_Script____struct___13_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___14_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___15_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___16_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;
gml_Script____struct___17_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___18_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___19_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___20_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___21_s_display_college_draft_debug_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;
gml_Script____struct___22_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___23_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___24_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___25_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___26_s_card_layout_pos_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;
gml_Script____struct___27_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts.__yyg__is_constructor=true;gml_Script____struct___28_s_save_last_selected_gml_GlobalScript_s_update_gamepad.__yyg__is_constructor=true;gml_Script____struct___29_gml_Object_obj_frontoffice_Create_0.__yyg__is_constructor=true;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,null],"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],"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"],
"background_color":[true,true,true,"getbackground_color","setbackground_color"],"background_showcolor":[true,true,true,"getbackground_showcolor","setbackground_showcolor"],"background_colour":[true,true,true,"getbackground_color","setbackground_color"],"background_showcolour":[true,true,true,"getbackground_showcolor","setbackground_showcolor"],"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],"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 _g3(_h3){this._i3=false;
this._j3=0;this._k3=0;this._l3=false;this._m3=0;this._n3=null;this._o3=null;this._p3=null;this._q3=null;this._r3=null;this._s3=null;this._t3=[];this._u3(_h3._s3);};_g3.prototype._v3=function(){var _w3=new _g3({_s3:this._s3});return _w3;};_g3.prototype._u3=function(_x3){this._s3=_x3;this._n3=new spine._y3(_x3);this._r3=new spine._z3(this._n3.data);this._q3=new spine._A3(this._r3);var listener=new Object();listener.start=function(_B3){};listener.end=function(_B3){};listener.complete=function(_B3,_C3){};listener.event=function(_B3,
_D3){var map=ds_map_create();g_pBuiltIn.event_data=map;ds_map_add(map,"name",_D3.data.name);ds_map_add(map,"track",_B3);ds_map_add(map,"integer",_D3._E3);ds_map_add(map,"float",_D3._F3);var _G3=_D3._G3?_D3._G3:_D3.data._G3;ds_map_add(map,"string",_G3);_H3._I3(_J3,0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;};this._q3._K3(listener);if(_x3.animations.length>0){this._L3(null);}this._M3(null);this._o3=new spine._N3();};_g3.prototype._O3=function(_P3,_Q3){if(_Q3==undefined)_Q3=0;if(_Q3<0)return 0;if(_Q3>=this._q3.tracks.length)return 0;
var _R3=_S3?_S3._T3():30;if(_U3){if((_P3!=undefined)&&(_P3!=null)){if(_P3.playbackspeedtype==_V3){_R3=_W3._X3();}else {_R3=_P3.playbackspeed;}}else {_R3=_W3._X3();}}if(this._q3.tracks[_Q3]==null){return ~~((_R3*this._p3.duration)+0.5);}return ~~((_R3*this._q3.tracks[_Q3]._Y3.duration)+0.5);};function _Z3(__3,_04){if(_04<0.0)return __3;var _14=__3/_04;var frac=_14-Math.floor(_14);var _24=frac*_04;return _24;}_g3.prototype._34=function(_Q3){if(_Q3<0)return 0;if(_Q3>=this._q3.tracks.length)return 0;if(this._q3.tracks[_Q3]===null)return 0;
var _R3=_S3?_S3._T3():30;if(_U3){_R3=_W3._X3();}if(_R3<=0)return 0;var _44=this._q3.tracks[_Q3]._54*_R3;_44=_Z3(_44,_R3*this._q3.tracks[_Q3]._Y3.duration);return ~~(_44+0.5);};_g3.prototype._64=function(_Q3,_74){if(_Q3<0)return;if(_Q3>=this._q3.tracks.length)return;if(this._q3.tracks[_Q3]===null)return;var _R3=_S3?_S3._T3():30;if(_U3){_R3=_W3._X3();}if(_R3<=0)return 0;var _44=_Z3(_74,_R3*this._q3.tracks[_Q3]._Y3.duration);var time=(_44/_R3);this._q3.tracks[_Q3]._54=time;this._i3=true;};_g3.prototype._84=function(_Q3){
if(_Q3<0)return false;if(_Q3>=this._q3.tracks.length)return false;if(this._q3.tracks[_Q3]===null)return false;return this._q3.tracks[_Q3].loop;};_g3.prototype._94=function(_Q3){if(_Q3<0)return false;if(_Q3>=this._q3.tracks.length)return false;if(this._q3.tracks[_Q3]===null)return false;var _a4=this._q3.tracks[_Q3];return !_a4.loop&&_a4._54>=_a4._Y3.duration;};_g3.prototype._L3=function(_b4,_c4=true){this._d4(_b4,0,_c4);};_g3.prototype._d4=function(_b4,_Q3,_c4=true){var _Y3=null;if(((_b4===null)||(_b4===undefined))&&(_Q3===0)){
if(this._s3.animations.length>0){_Y3=this._s3._e4(this._s3.animations[0].name);}}else {_Y3=this._s3._e4(_b4);}if(_Y3!==null&&_Y3!==undefined){if(_Q3===0){this._j3=0;this._k3=0;this._p3=_Y3;}this._q3._f4(_Q3,_Y3.name,_c4);}};_g3.prototype._M3=function(_g4){var _h4=_g4;if(_g4===null||_g4===undefined){if(this._s3._i4){_h4=this._s3._i4.name;}}if(_h4!=null){if(_h4.__type=="[SkeletonSkin]"){if(this._n3._j4===_h4._j4){return;}this._n3._k4(_h4._j4);this._n3._l4();}else {if((this._n3.skin!=null)&&(this._n3.skin.name!=null)){
if(_h4==this._n3.skin.name){return;}}this._n3._m4(_h4);this._n3._l4();}}};_g3.prototype._n4=function(_o4,_p4,_q4){this._r3._r4(_o4,_p4,_q4);};_g3.prototype._s4=function(_t4,_u4){var slot=this._n3._v4(_t4);if((slot!==null)&&(slot!==undefined)){if(typeof(_u4)==='number'){slot._w4(null);}else {var _x4=-1;if((slot.data!==null)&&(slot.data!==undefined)){_x4=slot.data.index;}for(var _y4=0;_y4<this._s3.skins.length;_y4++){var skin=this._s3.skins[_y4];var attachment=skin._z4(_x4,_u4);if(attachment){slot._w4(attachment);
return;}}for(var _A4=0;_A4<this._t3.length;_A4++){var attachment=this._t3[_A4].attachment;if(attachment.name===_u4){slot._w4(attachment);return;}}}}};_g3.prototype._B4=function(_t4,_C4){var slot=this._n3._v4(_t4);if((slot!==null)&&(slot!==undefined)){var _D4,_E4,_F4,_G4;_D4=(_C4&0xff)/255.0;_E4=((_C4&0xff00)>>8)/255.0;_F4=((_C4&0xff0000)>>16)/255.0;if(slot.color!=undefined){_G4=slot.color._G4;}else {_G4=1.0;}slot.color=new spine._H4(_D4,_E4,_F4,_G4);}};_g3.prototype._I4=function(_t4,_J4){var slot=this._n3._v4(_t4);
if((slot!==null)&&(slot!==undefined)){var _D4,_E4,_F4,_G4;_G4=_J4;if(slot.color!=undefined){_D4=slot.color._D4;_E4=slot.color._E4;_F4=slot.color._F4;}else {_D4=1.0;_E4=1.0;_F4=1.0;}slot.color=new spine._H4(_D4,_E4,_F4,_G4);}};_g3.prototype._K4=function(_t4,_C4){var slot=this._n3._v4(_t4);if((slot!==null)&&(slot!==undefined)){var _L4;if(slot.color!=undefined){_L4=slot.color._D4*255.0;_L4|=(slot.color._E4*255.0)<<8;_L4|=(slot.color._F4*255.0)<<16;_L4|=0xff000000;}else {_L4=0xffffffff;}return _L4;}return 0xffffffff;
};_g3.prototype._M4=function(_t4,_C4){var slot=this._n3._v4(_t4);if((slot!==null)&&(slot!==undefined)){if(slot.color!=undefined){return slot.color._G4;}else {return 1.0;}}return 1.0;};_g3.prototype._N4=function(_t4,_u4,_O4=false){var _P4=undefined;if(!_O4){var _x4=-1;var slot=this._n3._v4(_t4);if((slot!==null)&&(slot!==undefined)&&(slot.data!==null)&&(slot.data!==undefined)){_x4=slot.data.index;}for(var _y4=0;_y4<this._s3.skins.length;_y4++){var skin=this._s3.skins[_y4];var attachment=skin._z4(_x4,_u4);if(attachment){
_P4=_u4;break;}}}if(_P4===undefined){for(var _A4=0;_A4<this._t3.length;_A4++){var attachment=this._t3[_A4].attachment;if(attachment.name===_u4){_P4=_u4;break;}}}return _P4;};_g3.prototype._Q4=function(_u4,_R4,_S4,_T4,_U4,_V4,_W4,_X4,_Y4,_C4,_J4,_Z4){var __4=_R4._05[_S4%_R4._15()];var _25=_35[__4.tp];var _45;for(_45=0;_45<this._t3.length;_45++){var attachment=this._t3[_45].attachment;if(attachment.name===_u4){if(_Z4){break;}else {_55("Custom attachment with name '"+_u4+"' already exists");}}}if(!_25.complete){
debug("Trying to create attachment "+_u4+" with texture that hasn't been loaded yet.");return;}var _65=new spine._75();_65.name=_R4.pName;_65._85=__4.tp;_65.width=__4._95.width;_65.height=__4._95.height;_65._a5=spine._b5.Linear;_65._c5=spine._b5.Linear;_65._d5=spine._e5.ClampToEdge;_65._f5=spine._e5.ClampToEdge;_65._95=new _g5();_65._95.width=_65.width;_65._95.height=_65.height;_65._95._85=__4.tp;_65._95._h5=_25;_65._95._i5(_65._a5,_65._c5);_65._95._j5(_65._d5,_65._f5);var _k5=new spine._l5();_k5._65=_65;
_k5.name=_u4;_k5.x=0;_k5.y=0;_k5.width=_R4.width;_k5.height=_R4.height;_k5._m5=__4.x/__4._95.width;_k5._n5=__4.y/__4._95.height;_k5._o5=(__4.x+__4.w)/__4._95.width;_k5._p5=(__4.y+__4.h)/__4._95.height;_k5._q5=0;_k5._r5=0;_k5._s5=_k5.width;_k5._t5=_k5.height;_k5.index=0;_k5._u5=0;_k5._v5=null;_k5._w5=null;_k5._95=_65._95;var _x5=new spine._y5("");_x5._z5.push(_65);_x5._A5.push(_k5);var _B5=new spine._C5(_x5);var _D5=_B5._E5(this._s3.skins[0],_u4,_u4);_D5.width=_k5.width;_D5.height=_k5.height;_D5.scaleX=_V4;
_D5.scaleY=_W4;_D5.x=_T4;_D5.y=_U4;_D5.rotation=_X4;if((_C4!=undefined)&&(_J4!=undefined)){var _F5=(_C4&0xff)/255.0,_G5=((_C4&0xff00)>>8)/255.0,_H5=((_C4&0xff0000)>>16)/255.0;_D5.color=new spine._H4(_F5,_G5,_H5,_J4);}else if(_Y4!=undefined){_D5.color=new spine._H4();_D5.color._I5(_Y4);}_D5._J5(_D5);if(_45<this._t3.length){this._K5(this._t3[_45].attachment,_D5);this._t3[_45]={attachment:_D5,_x5:_x5};}else {this._t3.push({attachment:_D5,_x5:_x5});}};_g3.prototype._L5=function(_u4){for(var i=0;i<this._t3.length;
i++){var attachment=this._t3[i].attachment;if(attachment.name===_u4){this._K5(attachment,null);this._t3.splice(i,1);return true;}}return false;};_g3.prototype._K5=function(_M5,_N5){for(var i=0;i<this._n3.slots.length;++i){var slot=this._n3.slots[i];if(slot&&slot._z4()===_M5){slot._w4(_N5);}}};_g3.prototype._O5=function(__3){this._l3=__3;};_g3.prototype._P5=function(_S4,_Q5,_R5,_S5,_T5,_U5,_V5,_P3){var skeleton=this._n3;var _W5=this._n3._X5();var _Y5=this._j3;var _Z5=this._i3;_T5*=-1.0;var __5=(_V5!==undefined);
if((_Z5==true)||(_Y5!==_S4)||(skeleton.x!==_Q5)||(skeleton.y!==_R5)||(skeleton.scaleX!=_S5)||(skeleton.scaleY!=_T5)||(this._m3!==_U5)){var _06=_P3;if(((_P3==undefined)||(_P3==null))&&(_V5!=undefined)&&(_V5!=null)){var index;index=_V5.sprite_index;_06=_16._26(index);}var _36=this._O3(_06,0);if(_36>0){var _46=_S4%_36,_56=this._j3%_36,duration=this._p3.duration,_66=this._p3._76.length;var _86=0;if(Math.abs(_46-_56)<(_36/2)){if(_46>_56)_86=1;else if(_46<_56)_86=-1;else _86=0;}if((this._k3>0)&&(_46<_56)){_46+=_36;
}if(_56-_46>=_36-1){_46+=_36;}this._k3=_86;var _96=(_46-_56)/_36;this._q3._a6(_96*duration);}this._q3.apply(this._n3);this._j3=_S4;skeleton.x=_Q5;skeleton.y=_R5;skeleton.scaleX=_S5;skeleton.scaleY=_T5;this._m3=_U5;__5=true;this._i3=false;}if(__5){if(_V5){_V5._b6(_c6,0,_V5,null);}var _d6=_W5.rotation;_W5.rotation+=_U5;var _e6=_W5.scaleX;var _f6=skeleton.scaleX;if(skeleton.scaleX>=0.0){_W5.scaleX*=skeleton.scaleX;skeleton.scaleX=1.0;}else {_W5.scaleX*=-1.0*skeleton.scaleX;skeleton.scaleX=-1.0;}var _g6=_W5.scaleY;
var _h6=skeleton.scaleY;if(skeleton.scaleY>=0.0){_W5.scaleY*=skeleton.scaleY;skeleton.scaleY=1.0;}else {_W5.scaleY*=-1.0*skeleton.scaleY;skeleton.scaleY=-1.0;}skeleton.__5();this._o3._a6(this._n3,1);skeleton.scaleY=_h6;skeleton.scaleX=_f6;_W5.scaleX=_e6;_W5.scaleY=_g6;_W5.rotation=_d6;}};_g3.prototype._i6=function(_j6,_Q5,_R5,_S5,_T5,_U5){var _36=this._O3(undefined,0);var frame=~~(_36*(_j6/this._p3.duration)+0.5);this._P5(frame,_Q5,_R5,_S5,_T5,_U5);};_g3.prototype._k6=function(_l6,_S4,_Q5,_R5,_S5,_T5,
_U5){if(this._o3!=null){var _m6=this._o3;this._P5(_S4,_Q5,_R5,_S5,_T5,_U5,_n6);if(_m6._o6.length>0){_l6.left=~~(_m6._p6+0.5);_l6.right=~~(_m6._q6+0.5);_l6.top=~~(_m6._r6+0.5);_l6.bottom=~~(_m6._s6+0.5);return true;}}return false;};_g3.prototype._t6=function(_l6){if(this._o3!=null){this._n3.__5();this._o3._a6(this._n3,1);if(this._o3._o6.length>0){_l6.left=this._o3._p6;_l6.right=this._o3._q6;_l6.top=this._o3._r6;_l6.bottom=this._o3._s6;return true;}}return false;};_g3.prototype._u6=function(){if(this._o3==null)return 0;
this._o3._a6(this._n3,1);return this._o3._o6.length;};_g3.prototype._v6=function(_74){if(this._o3!=null){if(_74>=0){this._n3.__5();this._o3._a6(this._n3,1);if(_74<this._o3._o6.length){var _w6=this._o3._x6[_74];var _y6=_w6.length/2;var _z6=[];_z6.push(_y6);_z6.push(this._o3._o6[_74].name);for(var i=0;i<_y6;i++){_z6.push(_w6[i*2]);_z6.push(_w6[i*2+1]);}return _z6;}}}var _z6=[];_z6.push(0,"");return _z6;};_g3.prototype._A6=function(_S4,_Q5,_R5,_S5,_T5,_U5,_B6,_C6,_D6,_E6,_F6,_G6,_H6){this._P5(_S4,_Q5,_R5,_S5,
_T5,_U5);_B6._P5(_C6,_D6,_E6,_F6,_G6,_H6);for(var _I6=0;_I6<_B6._o3._x6.length;_I6++){var _J6=_B6._o3._x6[_I6];var size=_J6.length/2;for(var _K6=0;_K6<size;_K6++){var _L6,_M6,_N6,_O6;_L6=_J6[(_K6*2)+0];_M6=_J6[(_K6*2)+1];if(_K6===(size-1)){_N6=_J6[0];_O6=_J6[1];}else {_N6=_J6[((_K6+1)*2)+0];_O6=_J6[((_K6+1)*2)+1];}var _P6=this._o3._Q6(_L6,_M6,_N6,_O6);if(_P6!==null){return true;}}}return false;};_g3.prototype._R6=function(_S4,_Q5,_R5,_S5,_T5,_U5,_06,_S6,_C6,_D6,_E6,_F6,_G6,_H6){this._P5(_S4,_Q5,_R5,_S5,_T5,
_U5);if(_06==null){return false;}if(_06._T6<=0){return false;}if(_06._U6.length>0){_C6=_C6%_06._U6.length;}if(_C6<0){_C6=_C6+_06._U6.length;}_F6=1.0/_F6;_G6=1.0/_G6;var _m6=this._o3;var _V6=_W6(_m6._p6,_S6.left);var _D4=_X6(_m6._q6,_S6.right);var _Y6=_W6(_m6._r6,_S6.top);var _F4=_X6(_m6._s6,_S6.bottom);var _Z6=Math.sin(-_H6*(__6/180.0));var _07=Math.cos(-_H6*(__6/180.0));for(var i=_V6;i<=_D4;i++){for(var _17=_Y6;_17<=_F4;_17++){var _27=((_07*(i-_D6)+_Z6*(_17-_E6))*_F6+_06._37);var _47=((_07*(_17-_E6)-_Z6*(i-_D6))*_G6+_06._57);
if((_27<0)||(_27>=_06._67)){continue;}if((_47<0)||(_47>=_06._77)){continue;}if(_06._87){if(!_06._U6._z6[_C6]._z6[_27+(_47*_06._67)]){continue;}}var _P6=_m6._97(i,_17);if(_P6!==null){return true;}}}return false;};_g3.prototype._a7=function(_S4,_Q5,_R5,_S5,_T5,_U5,_b7,_c7){this._P5(_S4,_Q5,_R5,_S5,_T5,_U5);var _P6=this._o3._97(_b7,_c7);if(_P6!==null){return true;}return false;};_g3.prototype._d7=function(_S4,_Q5,_R5,_S5,_T5,_U5,_b7,_c7,_D6,_E6){this._P5(_S4,_Q5,_R5,_S5,_T5,_U5);var _P6=this._o3._Q6(_b7,_c7,
_D6,_E6);if(_P6!==null){return true;}return false;};_g3.prototype._e7=function(_S4,_Q5,_R5,_S5,_T5,_U5,_b7,_c7,_D6,_E6){this._P5(_S4,_Q5,_R5,_S5,_T5,_U5);var _m6=this._o3;var _P6=_m6._Q6(_b7,_c7,_D6,_E6);if(_P6!==null){return true;}_P6=_m6._Q6(_b7,_c7,_D6,_c7);if(_P6!==null){return true;}_P6=_m6._Q6(_D6,_c7,_D6,_E6);if(_P6!==null){return true;}_P6=_m6._Q6(_D6,_E6,_b7,_E6);if(_P6!==null){return true;}_P6=_m6._Q6(_b7,_E6,_b7,_c7);if(_P6!==null){return true;}return false;};_g3.prototype._f7=function(_S4,_Q5,
_R5,_S5,_T5,_U5,_g7){this._P5(_S4,_Q5,_R5,_S5,_T5,_U5);var _m6=this._o3;var skeleton=this._n3;var _V6=_W6(_m6._p6,_g7.left);var _D4=_X6(_m6._q6,_g7.right);var _Y6=_W6(_m6._r6,_g7.top);var _F4=_X6(_m6._s6,_g7.bottom);var _h7=((_g7.right+_g7.left)/2);var _i7=((_g7.bottom+_g7.top)/2);var _j7=((_g7.right-_g7.left)/2);var _k7=((_g7.bottom-_g7.top)/2);var _67=(_m6._q6-_m6._p6);var _77=(_m6._s6-_m6._r6);var _37=skeleton.x-_m6._p6;var _57=skeleton.y-_m6._r6;if((_S5==1)&&(_T5==1)&&(Math.abs(_U5)<0.0001)){for(var i=_V6;
i<=_D4;i++){for(var _17=_Y6;_17<=_F4;_17++){if(sqr((i-_h7)/_j7)+sqr((_17-_i7)/_k7)>1)continue;var _27=i-_Q5+_37;var _47=_17-_R5+_57;if((_27<0)||(_27>=_67))continue;if((_47<0)||(_47>=_77))continue;var _P6=_m6._97(i,_17);if(_P6!==null){return true;}}}}else {var _l7=Math.sin(-_U5*__6/180.0);var _m7=Math.cos(-_U5*__6/180.0);for(var i=_V6;i<=_D4;i++){for(var _17=_Y6;_17<=_F4;_17++){if(sqr((i-_h7)/_j7)+sqr((_17-_i7)/_k7)>1)continue;var _27=Math.floor((_m7*(i-_Q5)+_l7*(_17-_R5))/_S5+_37);var _47=Math.floor((_m7*(_17-_R5)-_l7*(i-_Q5))/_T5+_57);
if((_27<0)||(_27>=_67))continue;if((_47<0)||(_47>=_77))continue;var _P6=_m6._97(i,_17);if(_P6!==null){return true;}}}}return false;};_g3.prototype._n7=function(_o7,_p7){var bone=this._n3._q7(_o7);if(bone){var _r7=_s7._26(_p7);if(_r7){_r7.set("length",bone.data.length);_r7.set("x",bone.data.x);_r7.set("y",bone.data.y);_r7.set("angle",bone.data.rotation);_r7.set("xscale",bone.data.scaleX);_r7.set("yscale",bone.data.scaleY);if((bone.data.parent!==undefined)&&(bone.data.parent!==null)){_r7.set("parent",bone.data.parent.name);
}else {_r7.set("parent","");}return true;}}return false;};_g3.prototype._t7=function(_o7,_p7){var bone=this._n3._q7(_o7);if(bone){var _r7=_s7._26(_p7);if(_r7){bone.data.length=(_r7.get("length")!==undefined)?_r7.get("length"):bone.data.length;bone.data.x=(_r7.get("x")!==undefined)?_r7.get("x"):bone.data.x;bone.data.y=(_r7.get("y")!==undefined)?_r7.get("y"):bone.data.y;bone.data.rotation=(_r7.get("angle")!==undefined)?_r7.get("angle"):bone.data.rotation;bone.data.scaleX=(_r7.get("xscale")!==undefined)?_r7.get("xscale"):bone.data.scaleX;
bone.data.scaleY=(_r7.get("yscale")!==undefined)?_r7.get("yscale"):bone.data.scaleY;return true;}}return false;};_g3.prototype._u7=function(_o7,_p7){var bone=this._n3._q7(_o7);if(bone){var _r7=_s7._26(_p7);if(_r7){_r7.set("x",bone.x);_r7.set("y",bone.y);_r7.set("angle",bone.rotation);_r7.set("xscale",bone.scaleX);_r7.set("yscale",bone.scaleY);_r7.set("worldX",bone._v7);_r7.set("worldY",bone._w7);_r7.set("worldAngleX",bone._x7());_r7.set("worldAngleY",bone._y7());_r7.set("worldScaleX",bone._z7());_r7.set("worldScaleY",
bone._A7());_r7.set("appliedAngle",bone._B7);if(bone.parent!=null)if(bone.parent.data!=null)_r7.set("parent",bone.parent.data.name);return true;}}return false;};_g3.prototype._C7=function(_o7,_p7){var bone=this._n3._q7(_o7);if(bone){var _r7=_s7._26(_p7);if(_r7){if(_r7.get("angle")!==undefined)bone.rotation=_r7.get("angle");if(_r7.get("xscale")!==undefined)bone.scaleX=_r7.get("xscale");if(_r7.get("yscale")!==undefined)bone.scaleY=_r7.get("yscale");var _v7=bone._v7;var _w7=bone._w7;if(_r7.get("worldX")!==undefined)_v7=_r7.get("worldX");
if(_r7.get("worldY")!==undefined)_w7=_r7.get("worldY");if(!(Math.abs(_v7-bone._v7)<0.01)||!(Math.abs(_w7-bone._w7)<0.01)){var _D7;if((bone.parent!==undefined)&&(bone.parent!==null)){_D7=bone.parent._E7({x:_v7,y:_w7});}else {_D7=bone._E7({x:_v7,y:_w7});}bone.x=_D7.x;bone.y=_D7.y;}else {if(_r7.get("x")!==undefined)bone.x=_r7.get("x");if(_r7.get("y")!==undefined)bone.y=_r7.get("y");}return true;}}return false;};_g3.prototype._F7=function(){if(this._n3.skin){return this._n3.skin.name;}return "";};_g3.prototype._G7=function(_b4,
_H7){var _I7=new spine._J7(_b4);for(var i=0;i<_H7.length;++i){var _K7=this._s3._L7(_H7[i]);if(_K7===null){debug("Skin "+_H7[i]+" not found in skeleton");}else {_I7._M7(_K7);}}return new _N7(_I7);};_g3.prototype._O7=function(_Q3){if((_Q3>=0)&&(_Q3<this._q3.tracks.length)&&(this._q3.tracks[_Q3])&&(this._q3.tracks[_Q3]._Y3)){return this._q3.tracks[_Q3]._Y3.name;}return "";};_g3.prototype._P7=function(_Q3){if((_Q3>=0)&&(_Q3<this._q3.tracks.length)){this._q3._Q7(_Q3);}};_g3.prototype._R7=function(_S7){var _Y3=this._s3._e4(_S7);
if(_Y3){return _Y3.duration;}return 0.0;};_g3.prototype._T7=function(_S7){var _Y3=this._s3._e4(_S7);if(_Y3){var _R3=_S3?_S3._T3():30;if(_U3){_R3=_W3._X3();}if(_R3<=0)return 0;var _36=_Y3.duration*_R3;return ~~(_36+0.5);}return 0.0;};_g3.prototype._U7=function(_S7,_V7){var _Y3=this._s3._e4(_S7);if(_Y3==null){return null;}var i;var _W7=null;for(i=0;i<_Y3._76.length;i++){var _X7=_Y3._76[i];if(_X7 instanceof spine._Y7){_W7=_X7;break;}}if(_W7==null){return null;}var _R3;if(_U3){_R3=_W3._X3();}else {_R3=_S3?_S3._T3():30;
}var _Z7=[];for(i=0;i<_W7.events.length;i++){var __7=_W7.events[i];if(__7.data!=null){var _08=__7.data;if(_08.name==_V7){var time=__7.time;_Z7.push(_R3*time);}}}if(_Z7.length==0){return null;}return _Z7;};_g3.prototype._18=function(_t4){var slot=this._n3._v4(_t4);if(slot!==null&&slot!==undefined){if(slot.attachment){return slot.attachment.name;}}return "";};_g3.prototype._28=function(_38){for(var _I6=0;_I6<this._n3.slots.length;_I6++){var _48=this._n3.slots[_I6];var map=ds_map_create();ds_map_add(map,"name",
_48.data.name);ds_map_add(map,"bone",_48.data._58.name);ds_map_add(map,"attachment",_48.attachment?_48.attachment.name:"(none)");ds_list_add(_38,map);}};/*@constructor */function _N7(_g4){this.__type="[SkeletonSkin]";this._j4=_g4;}var _n6=null;var _68=false;var _78=-1;var _88=null;var _98=[0.0,0.0,0.0,0.0];var _a8=0;var _b8=1;var _c8=2;var _d8=3;var _e8=4;var _f8=5;var _g8=6;var _h8=7;function _i8(_j8){_n6=_j8;};function _k8(){this.width=null;this.height=null;}function _g5(){this.name=null;this._h5=new _k8();this._l8=function(){
return this._h5;};this._i5=function(_a5,_c5){};this._j5=function(_d5,_f5){};this.dispose=function(){};this._85=null;this.width=null;this.height=null;}/*@constructor */function _m8(){this._n8=[];this._o8=null;this._s3=null;this._p8=null;this._q8=null;this._r8=false;if(_s8){this._t8=this._u8;this._v8=this._w8;}else {this._t8=this._x8;this._v8=this._y8;}};_m8.prototype._z8=function(_b4,_A8,_B8,_C8){this._n8[_b4]={_D8:[],_E8:0,_F8:32,_95:_35[_C8],x:0,y:0,w:_A8,h:_B8};};_m8.prototype._G8=function(_H8,_I8,
_J8,_K8,_L8,_M8,_P3){var _N8=_L8;var _O8=_M8;var _P8=0;var self=this;var _Q8=function(_R8,_S8){var _T8=new _g5();_T8.name=_R8;_T8.width=_T8._h5.width=_O8[_P8].width;_T8.height=_T8._h5.height=_O8[_P8].height;if(_S8!=undefined){_T8._85=_S8.tp;self._n8[_T8.name]=_S8;}else {var _U8=_V8(_W8+_H8+_R8);_T8._85=_U8;_35[_U8].onload=function(e){_T8._h5=e._X8;var target=e.target||e.srcElement;self._z8(_T8.name,target.width,target.height,_U8);};_35[_U8].onerror=function(e){var target=e.target||e.srcElement;debug("ImageError: "+target.src);
};_35[_U8].URL=_R8;}if(_P8<(_N8-1))_P8++;return _T8;};this._p8=new spine._y5(_K8);var _Y8=0;if(_P3._05!=undefined)_Y8=_P3._05.length;for(var i=0;i<this._p8._z5.length;i++){var _65=this._p8._z5[i];_65._Z8(_Q8(_65.name,(i<_Y8)?_P3._05[i]:undefined));}this._o8=new spine.__8(new spine._C5(this._p8));this._s3=this._o8._09(_J8);};_m8.prototype._19=function(){if(this._p8){if(this._p8._z5){return this._p8._z5.length;}}return 0;};_m8.prototype._29=function(_74){if(this._p8){if(this._p8._z5){if(this._p8._z5.length>_74){
if(this._p8._z5[_74]._95){if(this._p8._z5[_74]._95._85){return this._p8._z5[_74]._95._85;}}}}}return -1;};_m8.prototype._39=function(_49,_g4,frame,x,y,_59,_69,angle,_L4,alpha){if(this._s3===null||this._s3===undefined)return;var _79=new _g3(this);_79._L3(_49);_79._M3(_g4);_79._P5(frame,x,y,_59,_69,angle);this._89(_79._n3,_L4,alpha);};_m8.prototype._99=function(_49,_g4,_j6,x,y,_59,_69,angle,_L4,alpha){if(this._s3===null||this._s3===undefined)return;var _79=new _g3(this);_79._L3(_49);_79._M3(_g4);_79._i6(_j6,
x,y,_59,_69,angle);this._89(_79._n3,_L4,alpha);};_m8.prototype._a9=function(frame,x,y,_59,_69,angle,_L4,alpha){if(!_n6||!_n6._b9()){this._39(null,null,frame,x,y,_59,_69,angle,_L4,alpha);}else {var _c9=_n6._b9();_c9._P5(frame,x,y,_59,_69,angle,_n6);this._89(_c9._n3,_L4,alpha);if(_c9._l3){this._d9(_c9._o3);}}};_m8.prototype._e9=function(_f9,_49,_g4,frame,x,y,_59,_69,angle,_g9,_h9,_38){ds_list_clear(_38);var _i9=false;var _c9=null;if((_f9===undefined)||(_f9===null)||(_f9._b9()===null)){_c9=new _g3(this);
_i9=true;_c9._L3(_49);_c9._M3(_g4);}else {_c9=_f9._b9();if((_49!==undefined)&&(_49!==null)){_c9._L3(_49);}if((_g4!==undefined)&&(_g4!==null)){_c9._M3(_g4);}}_c9._P5(frame,x,y,_59,_69,angle,_f9);var _j9=[];var _k9=0;for(var i=0,_I6=_c9._n3.slots.length;i<_I6;i++){var slot=_c9._n3.drawOrder[i];if(!slot.attachment)continue;var _l9=false;if(slot.attachment instanceof spine._m9){_l9=this._n9(slot,_g9,_h9);}else if(slot.attachment instanceof spine._o9){_l9=this._p9(slot,_g9,_h9);}else if(slot.attachment instanceof spine._q9){
_l9=this._r9(slot,_g9,_h9);}if(_l9){_j9[_k9]=slot;_k9++;}}if(_k9>0){for(var i=(_k9-1);i>=0;i--){ds_list_add(_38,_j9[i].data.name);}}};_m8.prototype._s9=function(_49,_t9,x,y,_59,_69,angle,color,_R4){var _79=new _g3(this);_79._L3(_49);_79._P5(_t9,x,y,_59,_69,angle,null,_R4);this._d9(_79._o3);};_m8.prototype._89=function(_u9,color,alpha){var _F5=(color&0xff)/255.0,_G5=((color&0xff00)>>8)/255.0,_H5=((color&0xff0000)>>16)/255.0;if(_s8){this._v9(_u9,_F5,_G5,_H5,alpha);}else {this._w9(_u9,_H5,_G5,_F5,alpha);
}};_m8.prototype._w9=function(_u9,_x9,_y9,_z9,_A9){var _B9=[0,1,2,2,3,0];var vertices=[];var _C9=new spine._H4(1.0,1.0,1.0,1.0);var _D9=false;for(var i=0,_I6=_u9.slots.length;i<_I6;i++){var slot=_u9.drawOrder[i];if(!slot.attachment)continue;var _D4=(_x9*255);var _E4=(_y9*255);var _F4=(_z9*255);var _G4=(_A9*255);if((slot.skeleton!=undefined)&&(slot.skeleton._D4!=undefined)){_D4*=slot.skeleton._D4;_E4*=slot.skeleton._E4;_F4*=slot.skeleton._F4;_G4*=slot.skeleton._G4;}if(slot.color!=undefined){_D4*=slot.color._D4;
_E4*=slot.color._E4;_F4*=slot.color._F4;_G4*=slot.color._G4;}if(slot.attachment.color!=undefined){_D4*=slot.attachment.color._D4;_E4*=slot.attachment.color._E4;_F4*=slot.attachment.color._F4;_G4*=slot.attachment.color._G4;}var _L4;_L4=(_G4<<24)|(_D4<<16)|(_E4<<8)|(_F4<<0);var _E9=null;var uvs=null;var _F9=null;var _G9=2;var _H9=0;var _I9=0;var _J9=0;var _K9=null;var _U8=null;if(slot.attachment instanceof spine._m9){var _k5=slot.attachment;if((this._q8!=null)&&(this._q8._L9())){_k5._M9(slot.bone,vertices,0,2);
_E9=vertices;uvs=_k5.uvs;_F9=_B9;_I9=4;_J9=6;_U8=_35[_k5._k5._N9._65._95._85];if(!_U8.complete)continue;if(_L4!=_O9){if(!this._n8[_k5._k5._N9._65.name]){var _65=_k5._k5._N9._65;this._z8(_65.name,_65.width,_65.height,_65._85);}_U8=_P9(this._n8[_k5._k5._N9._65.name],_L4);}var _Q9=_k5._k5._N9._65;_K9=this._n8[_Q9.name];}else {this._x8(slot,_L4,_G4/255.0);}}else if(slot.attachment instanceof spine._o9){var _R9=slot.attachment;_R9._M9(slot,0,_R9._S9,vertices,0,2);_E9=vertices;uvs=_R9.uvs;_F9=_R9.triangles;_I9=_R9._S9;
_J9=_R9.triangles.length;_U8=_35[_R9._k5._N9._65._95._85];if(!_U8.complete)continue;if(_L4!=_O9){if(!this._n8[_R9._k5._N9._65.name]){var _65=_R9._k5._N9._65;this._z8(_65.name,_65.width,_65.height,_R9._k5._N9._65._85);}_U8=_P9(this._n8[_R9._k5._N9._65.name],_L4);}_K9=this._n8[_R9._k5._N9._65.name];}else if(slot.attachment instanceof spine._T9){if(this._q8==null){this._q8=new spine._U9();}this._q8._V9(slot,slot.attachment);continue;}if((_I9>0)&&(_U8!=null)){if((this._q8!=null)&&(this._q8._L9())){this._q8._W9(vertices,
_I9*2,_F9,_J9,uvs,_C9,_C9,_D9);_E9=this._q8._X9;uvs=this._q8._X9;_F9=this._q8._Y9;_G9=8;_H9=6;_I9=_E9.length/_G9;_J9=_F9.length;}for(var _n5=0;_n5<_J9/3;_n5++){var _Z9=_n5*3;var __9=_F9[_Z9++]*_G9,_0a=_F9[_Z9++]*_G9,_1a=_F9[_Z9++]*_G9;var _2a=[];_2a[0]={};_2a[0].x=_E9[__9];_2a[0]._m5=uvs[_H9+__9];__9++;_2a[0].y=_E9[__9];_2a[0]._n5=uvs[_H9+__9];_2a[1]={};_2a[1].x=_E9[_0a];_2a[1]._m5=uvs[_H9+_0a];_0a++;_2a[1].y=_E9[_0a];_2a[1]._n5=uvs[_H9+_0a];_2a[2]={};_2a[2].x=_E9[_1a];_2a[2]._m5=uvs[_H9+_1a];_1a++;
_2a[2].y=_E9[_1a];_2a[2]._n5=uvs[_H9+_1a];this._3a(_4a,_U8,_2a[0].x,_2a[0].y,_2a[1].x,_2a[1].y,_2a[2].x,_2a[2].y,_2a[0]._m5*_K9.w,_2a[0]._n5*_K9.h,_2a[1]._m5*_K9.w,_2a[1]._n5*_K9.h,_2a[2]._m5*_K9.w,_2a[2]._n5*_K9.h);}}if(this._q8!=null){this._q8._5a(slot);}}if(this._q8!=null){this._q8._6a();}};function _7a(_8a,_9a,_aa){if(_9a==false){switch(_8a){case spine._ba.Normal:_aa.src=_ca._da;_aa._ea=_ca._fa;break;case spine._ba.Additive:_aa.src=_ca._da;_aa._ea=_ca._ga;break;case spine._ba.Multiply:_aa.src=_ca._ha;
_aa._ea=_ca._fa;break;case spine._ba.Screen:_aa.src=_ca._ga;_aa._ea=_ca._ia;break;default :_aa.src=_ca._da;_aa._ea=_ca._fa;break;}}else {switch(_8a){case spine._ba.Normal:_aa.src=_ca._ga;_aa._ea=_ca._fa;break;case spine._ba.Additive:_aa.src=_ca._ga;_aa._ea=_ca._ga;break;case spine._ba.Multiply:_aa.src=_ca._ha;_aa._ea=_ca._fa;break;case spine._ba.Screen:_aa.src=_ca._ga;_aa._ea=_ca._ia;break;default :_aa.src=_ca._da;_aa._ea=_ca._fa;break;}}}_m8.prototype._v9=function(_u9,_x9,_y9,_z9,_A9){var _B9=[0,1,2,2,3,
0];var vertices=[];var _C9=new spine._H4(1.0,1.0,1.0,1.0);var _D9=false;var _ja,_ka,_la,_ma;var _na;if(_68==true){_ja=_s8._oa._pa(_ca._qa);_ka=_s8._oa._pa(_ca._ra);_la=_s8._oa._pa(_ca._sa);_ma=_s8._oa._pa(_ca._ta);_na=_s8._oa._pa(_ca._ua);}var _va=new spine._H4(0.0,0.0,0.0,0.0);var _wa=false;if(_xa!=_78){_78=_xa;_wa=true;if(_78!=-1){_88=shader_get_uniform(_78,"gm_SpineTintBlackColour");}}for(var i=0,_I6=_u9.slots.length;i<_I6;i++){var slot=_u9.drawOrder[i];if(!slot.attachment)continue;var _D4=(_x9*255);var _E4=(_y9*255);
var _F4=(_z9*255);var _G4=(_A9*255);if((slot.skeleton!=undefined)&&(slot.skeleton._D4!=undefined)){_D4*=slot.skeleton._D4;_E4*=slot.skeleton._E4;_F4*=slot.skeleton._F4;_G4*=slot.skeleton._G4;}if(slot.color!=undefined){_D4*=slot.color._D4;_E4*=slot.color._E4;_F4*=slot.color._F4;_G4*=slot.color._G4;}if(slot.attachment.color!=undefined){_D4*=slot.attachment.color._D4;_E4*=slot.attachment.color._E4;_F4*=slot.attachment.color._F4;_G4*=slot.attachment.color._G4;}var _L4;_L4=(_G4<<24)|(_D4<<0)|(_E4<<8)|(_F4<<16);
if(_78!=-1){if((_88!=undefined)&&(_88!=-1)){var _ya;if((slot._za!=undefined)&&(slot._za!=null)){_ya=slot._za;}else {_ya=_va;}var _Aa=[_ya._D4*_x9,_ya._E4*_y9,_ya._F4*_z9,_A9];if((_wa)||((_98[0]!=_Aa[0])||(_98[1]!=_Aa[1])||(_98[2]!=_Aa[2])||(_98[3]!=_Aa[3]))){_98=_Aa;shader_set_uniform_f_array(_88,_98);_wa=false;}}}var _E9=null;var uvs=null;var _F9=null;var _G9=2;var _H9=0;var _I9=0;var _J9=0;var _U8=null;if(slot.attachment instanceof spine._m9){var _k5=slot.attachment;_k5._M9(slot.bone,vertices,0,2);_E9=vertices;
uvs=_k5.uvs;_F9=_B9;_I9=4;_J9=6;_U8=_35[_k5._k5._N9._65._95._85];}else if(slot.attachment instanceof spine._o9){var _R9=slot.attachment;_R9._M9(slot,0,_R9._S9,vertices,0,2);_E9=vertices;uvs=_R9.uvs;_F9=_R9.triangles;_I9=_R9._S9;_J9=_R9.triangles.length;_U8=_35[_R9._k5._N9._65._95._85];}else if(slot.attachment instanceof spine._T9){if(this._q8==null){this._q8=new spine._U9();}this._q8._V9(slot,slot.attachment);continue;}if((_I9>0)&&(_U8!=null)){if(!_U8.complete)continue;if(!_U8._Ba)_Ca({_95:_U8});if((this._q8!=null)&&(this._q8._L9())){
this._q8._W9(vertices,_I9*2,_F9,_J9,uvs,_C9,_C9,_D9);_E9=this._q8._X9;uvs=this._q8._X9;_F9=this._q8._Y9;_G9=8;_H9=6;_I9=_E9.length/_G9;_J9=_F9.length;}if(_68==true){var _Da=slot.data._Ea;var _Fa=new Object();_7a(_Da,this._r8,_Fa);_s8._oa._Ga(_ca._qa,_Fa.src);_s8._oa._Ga(_ca._ra,_Fa._ea);_s8._oa._Ga(_ca._sa,_Fa.src);_s8._oa._Ga(_ca._ta,_Fa._ea);}var _Ha=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,_J9);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_J9;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;var _Sa=_Ha._Ta;var _Ua=index;
for(var _n5=0;_n5<_J9;_n5++,_Ua+=_La){var index=_F9[_n5];_Oa[_Ua+0]=_E9[(index*_G9)+0];_Oa[_Ua+1]=_E9[(index*_G9)+1];_Oa[_Ua+2]=_Va;_Qa[_Ua+0]=_L4;_Sa[_Ua+0]=uvs[(index*_G9)+_H9+0];_Sa[_Ua+1]=uvs[(index*_G9)+_H9+1];}}if(this._q8!=null){this._q8._5a(slot);}}if(this._q8!=null){this._q8._6a();}if(_68==true){_s8._oa._Ga(_ca._qa,_ja);_s8._oa._Ga(_ca._ra,_ka);_s8._oa._Ga(_ca._sa,_la);_s8._oa._Ga(_ca._ta,_ma);_s8._oa._Ga(_ca._ua,_na);}};_m8.prototype._d9=function(_Wa){draw_line(_Wa._p6,_Wa._r6,_Wa._p6,_Wa._s6);
draw_line(_Wa._p6,_Wa._s6,_Wa._q6,_Wa._s6);draw_line(_Wa._q6,_Wa._s6,_Wa._q6,_Wa._r6);draw_line(_Wa._q6,_Wa._r6,_Wa._p6,_Wa._r6);for(var _I6=0;_I6<_Wa._x6.length;_I6++){var _J6=_Wa._x6[_I6];var size=_J6.length/2;for(var _K6=0;_K6<size;_K6++){var _L6,_M6,_N6,_O6;_L6=_J6[(_K6*2)+0];_M6=_J6[(_K6*2)+1];if(_K6==(size-1)){_N6=_J6[0];_O6=_J6[1];}else {_N6=_J6[((_K6+1)*2)+0];_O6=_J6[((_K6+1)*2)+1];}draw_line(_L6,_M6,_N6,_O6);}}};_m8.prototype._x8=function(slot,_L4,alpha){var _k5=slot.attachment,vertices=[],uvs;
var _Xa=0;var _Ya=0;if(slot.skeleton){_Xa=slot.skeleton.x;_Ya=slot.skeleton.y;}else if(slot.bone.skeleton){_Xa=slot.bone.skeleton.x;_Ya=slot.bone.skeleton.y;}_k5._M9(slot.bone,vertices,0,2);uvs=_k5.uvs;var _2a=[];_2a[0]={};_2a[0].x=vertices[_c8];_2a[0].y=vertices[_d8];_2a[0]._m5=uvs[_c8];_2a[0]._n5=uvs[_d8];_2a[1]={};_2a[1].x=vertices[_e8];_2a[1].y=vertices[_f8];_2a[1]._m5=uvs[_e8];_2a[1]._n5=uvs[_f8];_2a[2]={};_2a[2].x=vertices[_g8];_2a[2].y=vertices[_h8];_2a[2]._m5=uvs[_g8];_2a[2]._n5=uvs[_h8];_4a.globalAlpha=alpha;
var _Q9=_k5._k5._N9._65;var _U8=_35[_Q9._95._85];if(!_U8.complete)return;if(_L4!=_O9){if(!this._n8[_k5._k5._N9._65.name]){var _65=_k5._k5._N9._65;this._z8(_65.name,_65.width,_65.height,_65._85);}_U8=_P9(this._n8[_k5._k5._N9._65.name],_L4);}var _K9=this._n8[_Q9.name];this._Za(_4a,_U8,_2a[0].x,_2a[0].y,_2a[1].x,_2a[1].y,_2a[2].x,_2a[2].y,_2a[0]._m5*_K9.w,_2a[0]._n5*_K9.h,_2a[1]._m5*_K9.w,_2a[1]._n5*_K9.h,_2a[2]._m5*_K9.w,_2a[2]._n5*_K9.h);};_m8.prototype._y8=function(slot,_L4,alpha){var _R9=slot.attachment,
vertices=[],uvs;_R9._M9(slot,0,_R9._S9,vertices,0,2);uvs=_R9.uvs;var _Q9=_R9._k5._N9._65;var _U8=_35[_R9._k5._N9._65._95._85];if(!_U8.complete)return;if(_L4!=_O9){if(!this._n8[_R9._k5._N9._65.name]){var _65=_R9._k5._N9._65;this._z8(_65.name,_65.width,_65.height,_R9._k5._N9._65._85);}_U8=_P9(this._n8[_R9._k5._N9._65.name],_L4);}for(var _I6=0;_I6<_R9.triangles.length/3;_I6++){var _Z9=_I6*3;var __9=_R9.triangles[_Z9++]*2,_0a=_R9.triangles[_Z9++]*2,_1a=_R9.triangles[_Z9++]*2;var _2a=[];_2a[0]={};_2a[0].x=vertices[__9];
_2a[0]._m5=uvs[__9++];_2a[0].y=vertices[__9];_2a[0]._n5=uvs[__9];_2a[1]={};_2a[1].x=vertices[_0a];_2a[1]._m5=uvs[_0a++];_2a[1].y=vertices[_0a];_2a[1]._n5=uvs[_0a];_2a[2]={};_2a[2].x=vertices[_1a];_2a[2]._m5=uvs[_1a++];_2a[2].y=vertices[_1a];_2a[2]._n5=uvs[_1a];var _K9=this._n8[_R9._k5._N9._65.name];this._3a(_4a,_U8,_2a[0].x,_2a[0].y,_2a[1].x,_2a[1].y,_2a[2].x,_2a[2].y,_2a[0]._m5*_K9.w,_2a[0]._n5*_K9.h,_2a[1]._m5*_K9.w,_2a[1]._n5*_K9.h,_2a[2]._m5*_K9.w,_2a[2]._n5*_K9.h);}};_m8.prototype.__a=function(slot,
_L4,alpha){var _R9=slot.attachment,vertices=[];var _Xa=0;var _Ya=0;if(slot.skeleton){_Xa=slot.skeleton.x;_Ya=slot.skeleton.y;}else if(slot.bone.skeleton){_Xa=slot.bone.skeleton.x;_Ya=slot.bone.skeleton.y;}_R9._M9(_Xa,_Ya,slot,vertices);var _65=_R9._85._65;var _U8=_35[_65._85];if(_L4!=_O9){if(!this._n8[_65.name]){this._z8(_65.name,_65.width,_65.height,_65._85);}_U8=_P9(this._n8[_65.name],_L4);}for(var _I6=0;_I6<_R9.triangles.length/3;_I6++){var __9=_R9.triangles[(_I6*3)+0],_0a=_R9.triangles[(_I6*3)+1],_1a=_R9.triangles[(_I6*3)+2];
var _2a=[];_2a[0]={};_2a[0].x=vertices[(__9*2)+0];_2a[0].y=vertices[(__9*2)+1];_2a[0]._m5=_R9.uvs[(__9*2)+0];_2a[0]._n5=_R9.uvs[(__9*2)+1];_2a[1]={};_2a[1].x=vertices[(_0a*2)+0];_2a[1].y=vertices[(_0a*2)+1];_2a[1]._m5=_R9.uvs[(_0a*2)+0];_2a[1]._n5=_R9.uvs[(_0a*2)+1];_2a[2]={};_2a[2].x=vertices[(_1a*2)+0];_2a[2].y=vertices[(_1a*2)+1];_2a[2]._m5=_R9.uvs[(_1a*2)+0];_2a[2]._n5=_R9.uvs[(_1a*2)+1];var _K9=this._n8[_65.name];this._3a(_4a,_U8,_2a[0].x,_2a[0].y,_2a[1].x,_2a[1].y,_2a[2].x,_2a[2].y,_2a[0]._m5*_K9.w,
_2a[0]._n5*_K9.h,_2a[1]._m5*_K9.w,_2a[1]._n5*_K9.h,_2a[2]._m5*_K9.w,_2a[2]._n5*_K9.h);}};_m8.prototype._3a=function(_0b,_1b,_2b,_3b,_L6,_M6,_N6,_O6,_4b,_5b,_6b,_7b,_8b,_9b){_0b.save();_0b.beginPath();_0b.moveTo(_2b,_3b);_0b.lineTo(_L6,_M6);_0b.lineTo(_N6,_O6);_0b.closePath();_0b.clip();var _ab=_4b*(_9b-_7b)-_6b*_9b+_8b*_7b+(_6b-_8b)*_5b;if(_ab==0){return;}var _bb=-(_5b*(_N6-_L6)-_7b*_N6+_9b*_L6+(_7b-_9b)*_2b)/_ab;var _cb=(_7b*_O6+_5b*(_M6-_O6)-_9b*_M6+(_9b-_7b)*_3b)/_ab;var _db=(_4b*(_N6-_L6)-_6b*_N6+_8b*_L6+(_6b-_8b)*_2b)/_ab;
var _eb=-(_6b*_O6+_4b*(_M6-_O6)-_8b*_M6+(_8b-_6b)*_3b)/_ab;var _fb=(_4b*(_9b*_L6-_7b*_N6)+_5b*(_6b*_N6-_8b*_L6)+(_8b*_7b-_6b*_9b)*_2b)/_ab;var _gb=(_4b*(_9b*_M6-_7b*_O6)+_5b*(_6b*_O6-_8b*_M6)+(_8b*_7b-_6b*_9b)*_3b)/_ab;_0b.transform(_bb,_cb,_db,_eb,_fb,_gb);_0b.drawImage(_1b,0,0);_0b.restore();};_m8.prototype._Za=function(_0b,_1b,_2b,_3b,_L6,_M6,_N6,_O6,_4b,_5b,_6b,_7b,_8b,_9b){_0b.save();var _hb,_ib;_hb=_2b+(_N6-_L6);_ib=_3b+(_O6-_M6);_0b.beginPath();_0b.moveTo(_2b,_3b);_0b.lineTo(_L6,_M6);_0b.lineTo(_N6,
_O6);_0b.lineTo(_hb,_ib);_0b.closePath();_0b.clip();var _ab=_4b*(_9b-_7b)-_6b*_9b+_8b*_7b+(_6b-_8b)*_5b;if(_ab==0){return;}var _bb=-(_5b*(_N6-_L6)-_7b*_N6+_9b*_L6+(_7b-_9b)*_2b)/_ab;var _cb=(_7b*_O6+_5b*(_M6-_O6)-_9b*_M6+(_9b-_7b)*_3b)/_ab;var _db=(_4b*(_N6-_L6)-_6b*_N6+_8b*_L6+(_6b-_8b)*_2b)/_ab;var _eb=-(_6b*_O6+_4b*(_M6-_O6)-_8b*_M6+(_8b-_6b)*_3b)/_ab;var _fb=(_4b*(_9b*_L6-_7b*_N6)+_5b*(_6b*_N6-_8b*_L6)+(_8b*_7b-_6b*_9b)*_2b)/_ab;var _gb=(_4b*(_9b*_M6-_7b*_O6)+_5b*(_6b*_O6-_8b*_M6)+(_8b*_7b-_6b*_9b)*_3b)/_ab;
_0b.transform(_bb,_cb,_db,_eb,_fb,_gb);_0b.drawImage(_1b,0,0);_0b.restore();};_m8.prototype._u8=function(slot,_L4,alpha){var _k5=slot.attachment,vertices=[],uvs;var _Xa=0;var _Ya=0;if(slot.skeleton){_Xa=slot.skeleton.x;_Ya=slot.skeleton.y;}else if(slot.bone.skeleton){_Xa=slot.bone.skeleton.x;_Ya=slot.bone.skeleton.y;}_k5._M9(slot.bone,vertices,0,2);uvs=_k5.uvs;var _U8=_35[_k5._k5._N9._95._85];if(!_U8.complete)return;if(!_U8._Ba)_Ca({_95:_U8});var _I9=6;var _Ha=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;
var index=_La*_Ha._Na;_Ha._Na+=_I9;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;var _Sa=_Ha._Ta;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;_Oa[_Ua+0]=_Oa[_mb+0]=vertices[_c8];_Oa[_Ua+1]=_Oa[_mb+1]=vertices[_d8];_Oa[_jb+0]=vertices[_e8];_Oa[_jb+1]=vertices[_f8];_Oa[_p5+0]=_Oa[_kb+0]=vertices[_g8];_Oa[_p5+1]=_Oa[_kb+1]=vertices[_h8];_Oa[_lb+0]=vertices[_a8];_Oa[_lb+1]=vertices[_b8];_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=_L4;
_Sa[_Ua+0]=_Sa[_mb+0]=uvs[_c8];_Sa[_Ua+1]=_Sa[_mb+1]=uvs[_d8];_Sa[_jb+0]=uvs[_e8];_Sa[_jb+1]=uvs[_f8];_Sa[_p5+0]=_Sa[_kb+0]=uvs[_g8];_Sa[_p5+1]=_Sa[_kb+1]=uvs[_h8];_Sa[_lb+0]=uvs[_a8];_Sa[_lb+1]=uvs[_b8];};_m8.prototype._w8=function(slot,_L4,alpha){var _R9=slot.attachment,vertices=[],uvs;var _Xa=0;var _Ya=0;if(slot.skeleton){_Xa=slot.skeleton.x;_Ya=slot.skeleton.y;}else if(slot.bone.skeleton){_Xa=slot.bone.skeleton.x;_Ya=slot.bone.skeleton.y;}_R9._M9(slot,0,_R9._S9,vertices,0,2);uvs=_R9.uvs;var _U8=_35[_R9._k5._N9._95._85];
if(!_U8.complete)return;if(!_U8._Ba)_Ca({_95:_U8});var _I9=_R9.triangles.length;var _Ha=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_I9;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;var _Sa=_Ha._Ta;var _Ua=index;for(var _I6=0;_I6<_I9;_I6++,_Ua+=_La){var __9=_R9.triangles[_I6];_Oa[_Ua+0]=vertices[(__9*2)+0];_Oa[_Ua+1]=vertices[(__9*2)+1];_Oa[_Ua+2]=_Va;_Qa[_Ua+0]=_Qa[_Ua+1]=_L4;_Sa[_Ua+0]=uvs[(__9*2)+0];_Sa[_Ua+1]=uvs[(__9*2)+1];}};_m8.prototype._n9=function(slot,_Q5,_R5){var _k5=slot.attachment,
vertices=[];_k5._M9(slot.bone,vertices,0,2);var _nb,_ob,_pb,_qb;var _rb;_nb=_Q5-vertices[_a8];_ob=_R5-vertices[_b8];_pb=vertices[_c8]-vertices[_a8];_qb=vertices[_d8]-vertices[_b8];_rb=(_nb*_qb)-(_ob*_pb);if(_rb>=0)return false;_nb=_Q5-vertices[_e8];_ob=_R5-vertices[_f8];_pb=vertices[_g8]-vertices[_e8];_qb=vertices[_h8]-vertices[_f8];_rb=(_nb*_qb)-(_ob*_pb);if(_rb>=0)return false;_nb=_Q5-vertices[_c8];_ob=_R5-vertices[_d8];_pb=vertices[_e8]-vertices[_c8];_qb=vertices[_f8]-vertices[_d8];_rb=(_nb*_qb)-(_ob*_pb);
if(_rb>=0)return false;_nb=_Q5-vertices[_g8];_ob=_R5-vertices[_h8];_pb=vertices[_a8]-vertices[_g8];_qb=vertices[_b8]-vertices[_h8];_rb=(_nb*_qb)-(_ob*_pb);if(_rb>=0)return false;return true;};_m8.prototype._p9=function(slot,_Q5,_R5){var _R9=slot.attachment,vertices=[];_R9._M9(slot,0,_R9._S9,vertices,0,2);var _nb,_ob,_pb,_qb;var _rb;var _J9=_R9.triangles.length;for(var _I6=0;_I6<_J9;_I6+=3){var __9=_R9.triangles[_I6+0];var _0a=_R9.triangles[_I6+1];var _1a=_R9.triangles[_I6+2];var _sb=vertices[(__9*2)+0];var _tb=vertices[(__9*2)+1];
var _ub=vertices[(_0a*2)+0];var _vb=vertices[(_0a*2)+1];var _wb=vertices[(_1a*2)+0];var _xb=vertices[(_1a*2)+1];_nb=_Q5-_sb;_ob=_R5-_tb;_pb=_ub-_sb;_qb=_vb-_tb;_rb=(_nb*_qb)-(_ob*_pb);if(_rb>=0)continue;_nb=_Q5-_ub;_ob=_R5-_vb;_pb=_wb-_ub;_qb=_xb-_vb;_rb=(_nb*_qb)-(_ob*_pb);if(_rb>=0)continue;_nb=_Q5-_wb;_ob=_R5-_xb;_pb=_sb-_wb;_qb=_tb-_xb;_rb=(_nb*_qb)-(_ob*_pb);if(_rb>=0)continue;return true;}return false;};_m8.prototype._r9=function(slot,_Q5,_R5){var _yb=slot.attachment,vertices=[];_yb._M9(slot,0,_yb._S9,
vertices,0,2);var _nb,_ob,_pb,_qb;var _rb;var _zb=0;for(var _I6=0;_I6<((_yb._S9)/2)-1;_I6++){var _sb=vertices[_zb+0];var _tb=vertices[_zb+1];_zb+=2;var _ub=vertices[_zb+0];var _vb=vertices[_zb+1];_nb=_Q5-_sb;_ob=_R5-_tb;_pb=_ub-_sb;_qb=_vb-_tb;_rb=(_nb*_qb)-(_ob*_pb);if(_rb<=0){return false;}}var _sb=vertices[_zb+0];var _tb=vertices[_zb+1];var _ub=vertices[0];var _vb=vertices[1];_nb=_Q5-_sb;_ob=_R5-_tb;_pb=_ub-_sb;_qb=_vb-_tb;_rb=(_nb*_qb)-(_ob*_pb);if(_rb<=0){return false;}return true;};_m8.prototype._Ab=function(_38){
for(var _I6=0;_I6<this._s3.animations.length;_I6++){ds_list_add(_38,this._s3.animations[_I6].name);}};_m8.prototype._Bb=function(_38){for(var _I6=0;_I6<this._s3.skins.length;_I6++){ds_list_add(_38,this._s3.skins[_I6].name);}};_m8.prototype._Cb=function(_38){for(var _I6=0;_I6<this._s3.bones.length;_I6++){ds_list_add(_38,this._s3.bones[_I6].name);}};_m8.prototype._Db=function(_38){for(var _I6=0;_I6<this._s3.slots.length;_I6++){ds_list_add(_38,this._s3.slots[_I6].name);}};_m8.prototype._28=function(_38){
for(var _I6=0;_I6<this._s3.slots.length;_I6++){var _48=this._s3.slots[_I6];var map=ds_map_create();ds_map_add(map,"name",_48.name);ds_map_add(map,"bone",_48._58.name);ds_map_add(map,"attachment",_48._Eb?_48._Eb:"(none)");ds_list_add(_38,map);}};function draw_primitive_begin(kind){_Fb("draw_primitive_begin()");}function draw_primitive_begin_texture(kind,_Gb){_Fb("draw_primitive_begin_texture()");}function draw_vertex(x,y){_Fb("draw_vertex()");}function draw_vertex_color(x,y,_L4,alpha){_Fb("draw_vertex_color()");
}var draw_vertex_colour=draw_vertex_color;function draw_vertex_texture(x,y,_Hb,_Ib){_Fb("draw_vertex_texture()");}function draw_vertex_texture_color(x,y,_Hb,_Ib,_L4,alpha){_Fb("draw_vertex_texture_color()");}var draw_vertex_texture_colour=draw_vertex_texture_color;function draw_primitive_end(){_Fb("draw_primitive_end()");}function _Jb(kind){_Fb("d3d_primitive_begin()");}function _Kb(kind,_Gb){_Fb("d3d_primitive_begin_texture()");}function _Lb(x,y,z){_Fb("d3d_vertex()");}function _Mb(x,y,z,_L4,alpha){_Fb("d3d_vertex_color()");
}var _Nb=_Mb;function _Ob(x,y,z,_Hb,_Ib){_Fb("d3d_vertex_texture()");}function _Pb(x,y,z,_Hb,_Ib,_L4,alpha){_Fb("d3d_vertex_texture_color()");}var _Qb=_Pb;function _Rb(x,y,z,_Sb,_Tb,_Ub){_Fb("d3d_vertex_normal()");}function _Vb(x,y,z,_Sb,_Tb,_Ub,_L4,alpha){_Fb("d3d_vertex_normal_color()");}var _Wb=_Vb;function _Xb(x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib){_Fb("d3d_vertex_normal_texture()");}function _Yb(x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib,_L4,alpha){_Fb("d3d_vertex_normal_texture_color()");}var _Zb=_Yb;function __b(){_Fb("d3d_primitive_end()");
}var _0c=null;var _1c=0,_2c=-1,_3c=null,_4c=null;var _5c=1,_6c=2,_7c=3,_8c=4,_9c=5,_ac=6,_bc=7;function _cc(){draw_primitive_begin=_dc;draw_primitive_begin_texture=_ec;draw_vertex=_fc;draw_vertex_color=_gc;draw_vertex_colour=_gc;draw_vertex_texture=_hc;draw_vertex_texture_color=_ic;draw_vertex_texture_colour=_ic;draw_primitive_end=_jc;_Jb=_kc;_Kb=_lc;_Lb=_mc;_Mb=_nc;_Nb=_nc;_Ob=_oc;_Pb=_pc;_Qb=_pc;_Rb=_qc;_Vb=_rc;_Wb=_rc;_Xb=_sc;_Yb=_tc;_Zb=_tc;__b=_uc;}function _vc(_wc){switch(_wc){case _5c:return _ca._xc;
case _6c:return _ca._yc;case _7c:return _ca._zc;case _8c:return _ca._Ja;case _9c:return _ca._Ac;case _ac:return _ca._Bc;case _bc:return _ca._Ja;}return -1;}function _Cc(){_1c=0;_2c=-1;_3c=null;_4c=null;}function _dc(_Dc){_ec(yyGetInt32(_Dc),-1);}function _ec(_Dc,_C8){_1c=yyGetInt32(_Dc);_2c=null;_3c=null;if(typeof(_C8)=="object"){_2c=_C8._Ec;_3c=_C8._Fc;}else if((_C8!=-1)&&_35[yyGetInt32(_C8)]){_2c=_35[yyGetInt32(_C8)];}if(_2c&&!_2c._Ba){_Ca({_95:_2c});}_4c=new _Gc(_Hc,_s8._Ic(_s8._Ka),false);}function _fc(_Q5,_R5){
var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=yyGetReal(_Q5);_4c._Pa[index+1]=yyGetReal(_R5);_4c._Pa[index+2]=_Va;_4c._Ta[index+0]=0;_4c._Ta[index+1]=0;_4c._Ra[index]=((_Kc*255.0)<<24)|(_Lc&0x00ffffff);}function _gc(_Q5,_R5,_Mc,_A9){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=yyGetReal(_Q5);_4c._Pa[index+1]=yyGetReal(_R5);_4c._Pa[index+2]=_Va;_4c._Ta[index+0]=0;_4c._Ta[index+1]=0;_4c._Ra[index]=((yyGetReal(_A9)*255.0)<<24)|_Nc(yyGetInt32(_Mc));}function _hc(_Q5,
_R5,_Oc,_Pc){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=yyGetReal(_Q5);_4c._Pa[index+1]=yyGetReal(_R5);_4c._Pa[index+2]=_Va;var _Qc=_Rc(yyGetReal(_Oc),yyGetReal(_Pc));_4c._Ta[index+0]=_Qc._m5;_4c._Ta[index+1]=_Qc._n5;_4c._Ra[index]=((_Kc*255.0)<<24)|(_Lc&0x00ffffff);}function _ic(_Q5,_R5,_Oc,_Pc,_Mc,_A9){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=yyGetReal(_Q5);_4c._Pa[index+1]=yyGetReal(_R5);_4c._Pa[index+2]=_Va;var _Qc=_Rc(yyGetReal(_Oc),yyGetReal(_Pc));
_4c._Ta[index+0]=_Qc._m5;_4c._Ta[index+1]=_Qc._n5;_4c._Ra[index]=((yyGetReal(_A9)*255.0)<<24)|_Nc(yyGetInt32(_Mc));}function _jc(){var _Sc=_vc(_1c);if(_Sc==-1){return;}var _Tc=_4c._Uc.subarray(0,_4c._Na*_4c._Ma());var _Vc=_2c?_2c._Ba:null;var _Ha=_s8._Ia(_Sc,_Vc,_s8._Ka,_4c._Na);_Ha._Uc.set(_Tc,_Ha._Na*_Ha._Ma());_Ha._Na+=_4c._Na;}function _kc(kind){_Kb(kind,-1);}function _lc(_Dc,_C8){_1c=_Dc;_2c=null;_3c=null;if(typeof(_C8)=="object"){_2c=_C8._Ec;_3c=_C8._Fc;}else if((_C8!=-1)&&_35[_C8]){_2c=_35[_C8];}
if(_2c&&!_2c._Ba){_Ca({_95:_2c});}_4c=new _Gc(_Hc,_s8._Ic(_s8._Wc),false);}function _Rc(_Oc,_Pc){if(_3c&&_2c){return({_m5:(_3c.x+(_Oc*_3c.CropWidth))/_2c._Xc,_n5:(_3c.y+(_Pc*_3c.CropHeight))/_2c._Yc});}else {return({_m5:_Oc,_n5:_Pc});}};function _mc(_Q5,_R5,_Zc){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=_Q5;_4c._Pa[index+1]=_R5;_4c._Pa[index+2]=_Zc;_4c.__c[index+0]=0;_4c.__c[index+1]=0;_4c.__c[index+2]=0;_4c._Ta[index+0]=0;_4c._Ta[index+1]=0;_4c._Ra[index]=((_Kc*255.0)<<24)|(_Lc&0x00ffffff);
}function _nc(_Q5,_R5,_Zc,_0d,_A9){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=_Q5;_4c._Pa[index+1]=_R5;_4c._Pa[index+2]=_Zc;_4c.__c[index+0]=0;_4c.__c[index+1]=0;_4c.__c[index+2]=0;_4c._Ta[index+0]=0;_4c._Ta[index+1]=0;_4c._Ra[index]=((_A9*255.0)<<24)|_Nc(_0d);}function _oc(_Q5,_R5,_Zc,_1d,_2d){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=_Q5;_4c._Pa[index+1]=_R5;_4c._Pa[index+2]=_Zc;_4c.__c[index+0]=0;_4c.__c[index+1]=0;_4c.__c[index+2]=0;var _Qc=_Rc(_1d,
_2d);_4c._Ta[index+0]=_Qc._m5;_4c._Ta[index+1]=_Qc._n5;_4c._Ra[index]=((_Kc*255.0)<<24)|(_Lc&0x00ffffff);}function _pc(_Q5,_R5,_Zc,_1d,_2d,_0d,_A9){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=_Q5;_4c._Pa[index+1]=_R5;_4c._Pa[index+2]=_Zc;_4c.__c[index+0]=0;_4c.__c[index+1]=0;_4c.__c[index+2]=0;var _Qc=_Rc(_1d,_2d);_4c._Ta[index+0]=_Qc._m5;_4c._Ta[index+1]=_Qc._n5;_4c._Ra[index]=((_A9*255.0)<<24)|_Nc(_0d);}function _qc(_Q5,_R5,_Zc,_3d,_4d,_5d){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;
_4c._Jc(1);_4c._Pa[index+0]=_Q5;_4c._Pa[index+1]=_R5;_4c._Pa[index+2]=_Zc;_4c.__c[index+0]=_3d;_4c.__c[index+1]=_4d;_4c.__c[index+2]=_5d;_4c._Ta[index+0]=0;_4c._Ta[index+1]=0;_4c._Ra[index]=((_Kc*255.0)<<24)|(_Lc&0x00ffffff);}function _rc(_Q5,_R5,_Zc,_3d,_4d,_5d,_0d,_A9){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=_Q5;_4c._Pa[index+1]=_R5;_4c._Pa[index+2]=_Zc;_4c.__c[index+0]=_3d;_4c.__c[index+1]=_4d;_4c.__c[index+2]=_5d;_4c._Ta[index+0]=0;_4c._Ta[index+1]=0;_4c._Ra[index]=((_A9*255.0)<<24)|_Nc(_0d);
}function _sc(_Q5,_R5,_Zc,_3d,_4d,_5d,_1d,_2d){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=_Q5;_4c._Pa[index+1]=_R5;_4c._Pa[index+2]=_Zc;_4c.__c[index+0]=_3d;_4c.__c[index+1]=_4d;_4c.__c[index+2]=_5d;var _Qc=_Rc(_1d,_2d);_4c._Ta[index+0]=_Qc._m5;_4c._Ta[index+1]=_Qc._n5;_4c._Ra[index]=((_Kc*255.0)<<24)|(_Lc&0x00ffffff);}function _tc(_Q5,_R5,_Zc,_3d,_4d,_5d,_1d,_2d,_0d,_A9){var _La=_4c._Ma()>>2;var index=_4c._Na*_La;_4c._Jc(1);_4c._Pa[index+0]=_Q5;_4c._Pa[index+1]=_R5;_4c._Pa[index+2]=_Zc;
_4c.__c[index+0]=_3d;_4c.__c[index+1]=_4d;_4c.__c[index+2]=_5d;var _Qc=_Rc(_1d,_2d);_4c._Ta[index+0]=_Qc._m5;_4c._Ta[index+1]=_Qc._n5;_4c._Ra[index]=((_A9*255.0)<<24)|_Nc(_0d);}function _uc(){var _Sc=_vc(_1c);if(_Sc==-1){return;}var _Tc=_4c._Uc.subarray(0,_4c._Na*_4c._Ma());var _Vc=_2c?_2c._Ba:null;var _Ha=_s8._Ia(_Sc,_Vc,_s8._Wc,_4c._Na);_Ha._Uc.set(_Tc,_Ha._Na*_Ha._Ma());_Ha._Na+=_4c._Na;}/*@constructor */function _6d(_7d){var _8d=null,_9d=null,_ad=null,_bd=false,_cd=null,_dd;var _ed=0,_fd=0,_gd=0,_hd=0;
var _id=this;(function(){_8d=new ArrayBuffer(_7d);_9d=new DataView(_8d);})();function _jd(_kd,_ld){var _md=false;var _nd=_cd._od;for(var i=0;i<_nd.length;i++){var _pd=_nd[i];if(((_kd==-1)||(_pd._qd==_kd))&&(_pd.type==_ld)){_md=true;if((_pd._rd&_ed)===0){var _sd=(_hd+_pd.offset);_ed|=_pd._rd;if(_cd._td===_ed){_ed=0;_fd++;_hd+=_cd._ud;if((_hd+_cd._ud)>=_8d.byteLength){_id._vd(_8d.byteLength*2);}}return _sd;}}}if(_md){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._vd=function(_7d){var _wd=new ArrayBuffer(_7d);var _xd=new Int8Array(_8d);var _yd=new Int8Array(_wd);_yd.set(_xd);_8d=_wd;_9d=new DataView(_8d);};/*@this {yyVBufferBuilder} */this._zd=function(_Ad){_ed=0;_fd=0;_gd=0;_hd=0;_dd=_Ad;_cd=_s8._Ic(_Ad);if(_cd._ud>_8d.byteLength){this._vd(_cd._ud*36);}};/*@this {yyVBufferBuilder} */this._Bd=function(){};this._Cd=function(){return _dd;
};this._Dd=function(){return _s8._Ic(_dd);};/*@this {yyVBufferBuilder} */this._Ed=function(x,y){var _sd=_jd(_ca._Fd,_ca._Gd);if(_sd>=0){_9d.setFloat32(_sd,x,true);_9d.setFloat32(_sd+4,y,true);}};/*@this {yyVBufferBuilder} */this._Hd=function(x,y,z){var _sd=_jd(_ca._Fd,_ca._Id);if(_sd>=0){_9d.setFloat32(_sd,x,true);_9d.setFloat32(_sd+4,y,true);_9d.setFloat32(_sd+8,z,true);}};/*@this {yyVBufferBuilder} */this._Jd=function(_0d,_A9){var _sd=_jd(_ca._Kd,_ca._Ld);if(_sd>=0){var _Md=((_A9*255.0)<<24)|_Nc(_0d);
_9d.setUint32(_sd,_Md,true);}};/*@this {yyVBufferBuilder} */this._Nd=function(_Od){var _sd=_jd(_ca._Kd,_ca._Ld);if(_sd>=0){var _L4=((_Od&0xff)<<24)|((_Od&0xff00)<<8)|((_Od&0xff0000)>>8)|((_Od&0xff000000)>>24);_9d.setUint32(_sd,_L4,true);}};/*@this {yyVBufferBuilder} */this._Pd=function(_Qd){var _sd=_jd(_ca._Kd,_ca._Ld);if(_sd>=0){var _L4=(_Qd&0xff000000)|((_Qd&0xff)<<16)|(_Qd&0xff00)|((_Qd&0xff0000)>>16);_9d.setUint32(_sd,_L4,true);}};/*@this {yyVBufferBuilder} */this._Rd=function(_m5,_n5){var _sd=_jd(_ca._Sd,
_ca._Gd);if(_sd>=0){_9d.setFloat32(_sd,_m5,true);_9d.setFloat32(_sd+4,_n5,true);}};/*@this {yyVBufferBuilder} */this._Td=function(x,y,z){var _sd=_jd(_ca._Ud,_ca._Id);if(_sd>=0){_9d.setFloat32(_sd,x,true);_9d.setFloat32(_sd+4,y,true);_9d.setFloat32(_sd+8,z,true);}};/*@this {yyVBufferBuilder} */this._Vd=function(x){var _sd=_jd(-1,_ca._Wd);if(_sd>=0){_9d.setFloat32(_sd,x,true);}};/*@this {yyVBufferBuilder} */this._Xd=function(x,y){var _sd=_jd(-1,_ca._Gd);if(_sd>=0){_9d.setFloat32(_sd,x,true);_9d.setFloat32(_sd+4,
y,true);}};/*@this {yyVBufferBuilder} */this._Yd=function(x,y,z){var _sd=_jd(-1,_ca._Id);if(_sd>=0){_9d.setFloat32(_sd,x,true);_9d.setFloat32(_sd+4,y,true);_9d.setFloat32(_sd+8,z,true);}};/*@this {yyVBufferBuilder} */this._Zd=function(x,y,z,w){var _sd=_jd(-1,_ca.__d);if(_sd>=0){_9d.setFloat32(_sd,x,true);_9d.setFloat32(_sd+4,y,true);_9d.setFloat32(_sd+8,z,true);_9d.setFloat32(_sd+12,w,true);}};/*@this {yyVBufferBuilder} */this._0e=function(x,y,z,w){var _sd=_jd(-1,_ca._1e);if(_sd>=0){_9d.setUint8(_sd,
x,true);_9d.setUint8(_sd+1,y,true);_9d.setUint8(_sd+2,z,true);_9d.setUint8(_sd+3,w,true);}};/*@this {yyVBufferBuilder} */this._2e=function(){var _3e=new _Gc(_fd,_cd,false);var _4e=_fd*_cd._ud;var _5e=new Int8Array(_8d,0,_4e);_3e._Uc.set(_5e);_3e._Na+=_fd;_3e._2e();_ad=_3e;_bd=true;_8d=null;_9d=null;};/*@this {yyVBufferBuilder} */this._6e=function(_7e,_8e){if(_bd){if(_8e==-1){_s8._9e(_7e,null,_ad,0);}else {if(_8e&&!_8e._Ec._Ba){_Ca(_8e._Fc);}_s8._9e(_7e,_8e._Ec._Ba,_ad,0);}}else {var _Ha;if(_8e==-1){_Ha=_s8._Ia(_7e,
null,_dd,_fd);}else {if(_8e&&!_8e._Ec._Ba){_Ca(_8e._Fc);}_Ha=_s8._Ia(_7e,_8e._Ec._Ba,_dd,_fd);}var _ae=_Ha._Na*_cd._ud;var _5e=new Int8Array(_8d,0,_fd*_cd._ud);_Ha._Uc.set(_5e,_ae);_Ha._Na+=_fd;}};this._be=function(_ce){_fd=_ce;_gd=0;_hd=_ce*_cd._ud;};this._de=function(){return _fd;};this._ee=function(){return _8d;};}var _fe=null;var _ge=[];/*@constructor */function _he(){var _ie=0,_je=0.5;var _ke;var _le=[];var _me=[];var _ne=[];var _oe=_ie;var _pe=_je;Object.defineProperties(this,{_qe:{get :function(){return _oe;
},set :function(_re){_oe=_re;}},_se:{get :function(){return _pe;},set :function(_re){_pe=_re;}}});/*@this {yyGamePad} */this._te=function(_ue){_ke=_ue.id;_me=_le.slice();_ne=_ue.axes.slice();var _ve=_ue.buttons;if(_ve){for(var _F4 in _ve){if(!_ve.hasOwnProperty(_F4))continue;if(typeof(_ve[_F4])==="object"){_le[_F4]=_ve[_F4].value;}else {_le[_F4]=_ve[_F4];}}}};/*@this {yyGamePad} */this._we=function(){return _ke||"";};/*@this {yyGamePad} */this._xe=function(){if(_le){return _le.length;}return 0;};/*@this {yyGamePad} */this._ye=function(_ze){
var _Ae=_le[_ze];var _Be=_me[_ze];if((_Ae!==undefined)&&(_Be!==undefined)){return((_Ae>=_pe)&&(_Be<_pe));}return false;};/*@this {yyGamePad} */this._Ce=function(_ze){var _Ae=_le[_ze];var _Be=_me[_ze];if((_Ae!==undefined)&&(_Be!==undefined)){return((_Ae<_pe)&&(_Be>=_pe));}return false;};/*@this {yyGamePad} */this._De=function(_ze){var _Ae;if(typeof(_le[_ze])==="object"){_Ae=_le[_ze].value;}else {_Ae=_le[_ze];}if(_Ae!==undefined){return(_Ae>=_pe);}return false;};/*@this {yyGamePad} */this._Ee=function(_ze){
var _Ae;if(typeof(_le[_ze])==="object"){_Ae=_le[_ze].value;}else {_Ae=_le[_ze];}return _Ae||0.0;};/*@this {yyGamePad} */this._Fe=function(){if(_ne){return _ne.length;}return 0;};/*@this {yyGamePad} */this._Ge=function(_He,_Ie){var _Je=_ne[_He]||0;if(_oe>0.0){var _Ke=Math.abs(_Je);if(_Ke<_oe){_Je=0.0;}else {var sign=(_Je>=0)?1.0:-1.0;_Je=((_Ke-_oe)/(_Ie-_oe))*sign;}}return _Je;};}/*@constructor */function _Le(){var _Me=1.0,_Ne=1.0;var _Oe=0,_Pe=1;var _Qe=0x8000,_Re=0x8001,_Se=0x8002,_Te=0x8003,_Ue=0x8004,_Ve=0x8005,
_We=0x8006,_Xe=0x8007,_Ye=0x8008,_Ze=0x8009,__e=0x800A,_0f=0x800B,_1f=0x800C,_2f=0x800D,_3f=0x800E,_4f=0x800F,_5f=0x8010,_6f=0x8011,_7f=0x8012,_8f=0x8013,_9f=0x8014;var _af=0,_bf=1,_cf=2,_df=3,_ef=4,_ff=5,_gf=6,_hf=7,_if=8,_jf=9,_kf=10,_lf=11,_mf=12,_nf=13,_of=14,_pf=15;var _qf=0,_rf=1,_sf=2,_tf=3;function _uf(){var api=null;try{api=_vf();}catch(err){console.log("Failed to initialize the Gamepad API: "+err);}return(api!==null);}function _vf(){if(navigator["getGamepads"]){return navigator["getGamepads"]();
}if(navigator["webkitGetGamepads"]){return navigator["webkitGetGamepads"]();}if(navigator["webkitGamepads"]){return navigator["webkitGamepads"]();}return null;}var _wf=_uf()?_Pe:_Oe;var _xf=[];function _yf(){var gamepads=_vf();if(gamepads!==null){var _zf=0;for(_zf=0;_zf<gamepads.length;++_zf){var _Af=gamepads[_zf];if(!_Af&&_xf[_zf]){_xf[_zf]=undefined;var _Bf=_Cf._Df(undefined,undefined,_Ef,undefined);_Bf.event_type="gamepad lost";_Bf._Ff=_zf;_Bf._Gf=0;_Bf._Hf=true;}else {if(_Af&&!_xf[_zf]){_xf[_zf]=new _he();
if(_ge[_zf]!==undefined){_xf[_zf]._qe=_ge[_zf];}var _Bf=_Cf._Df(undefined,undefined,_Ef,undefined);_Bf.event_type="gamepad discovered";_Bf._Ff=_zf;_Bf._Gf=0;_Bf._Hf=true;}if(_xf[_zf]){_xf[_zf]._te(_Af);}}}}}function _If(_ze){if(_ze<_Qe){return _ze;}switch(_ze){case _Re:return _af;case _Se:return _bf;case _Te:return _cf;case _Ue:return _df;case _Ve:return _ef;case _We:return _ff;case _Xe:return _gf;case _Ye:return _hf;case _Ze:return _if;case __e:return _jf;case _0f:return _kf;case _1f:return _lf;case _2f:return _mf;case _3f:return _nf;
case _4f:return _of;case _5f:return _pf;}return 0;}function _Jf(_He){if(_He<_Qe){return _He;}switch(_He){case _6f:return _qf;case _7f:return _rf;case _8f:return _sf;case _9f:return _tf;}return 0;}function _Le(){}/*@this {yyGamepadManager} */this._Kf=function(){return _xf.length;};/*@this {yyGamepadManager} */this._Lf=function(_Mf){var _Nf=_xf[_Mf];if(_Nf){return _Nf._we();}return "";};/*@this {yyGamepadManager} */this._Of=function(){return(_wf!==_Oe);};/*@this {yyGamepadManager} */this._se=function(_Mf){var _Nf=_xf[_Mf];
if(_Nf){return _Nf._se;}return 0.0;};/*@this {yyGamepadManager} */this._Pf=function(_Mf,_Qf){var _Nf=_xf[_Mf];if(_Nf){if((_Qf>=0.0)&&(_Qf<=_Me)){_Nf._se=_Qf;}}};/*@this {yyGamepadManager} */this._qe=function(_Mf){var _Nf=_xf[_Mf];if(_Nf){return _Nf._qe;}else if(_ge[_Mf]!==undefined){return _ge[_Mf];}return 0.0;};/*@this {yyGamepadManager} */this._Rf=function(_Mf,_Sf){_ge[_Mf]=_Sf;var _Nf=_xf[_Mf];if(_Nf){if((_Sf>=0.0)&&(_Sf<=_Ne)){_Nf._qe=_Sf;}}};/*@this {yyGamepadManager} */this._Tf=function(){_xf=[];};
/*@this {yyGamepadManager} */this._Uf=function(){switch(_wf){case _Pe:_yf();break;case _Oe:default :return;}};/*@this {yyGamepadManager} */this._Vf=function(_Mf){if(_xf[_Mf]!==null&&_xf[_Mf]!==undefined){return true;}return false;};/*@this {yyGamepadManager} */this._xe=function(_Mf){var _Nf=_xf[_Mf];if(_Nf){return _Nf._xe();}return 0;};/*@this {yyGamepadManager} */this._Fe=function(_Mf){var _Nf=_xf[_Mf];if(_Nf){return _Nf._Fe();}return 0;};/*@this {yyGamepadManager} */this._De=function(_Mf,_ze){var _Nf=_xf[_Mf];
if(_Nf){return _Nf._De(_If(_ze),_Nf._se);}return false;};/*@this {yyGamepadManager} */this._ye=function(_Mf,_ze){var _Nf=_xf[_Mf];if(_Nf){return _Nf._ye(_If(_ze),_Nf._se);}return false;};/*@this {yyGamepadManager} */this._Ce=function(_Mf,_ze){var _Nf=_xf[_Mf];if(_Nf){return _Nf._Ce(_If(_ze),_Nf._se);}return false;};/*@this {yyGamepadManager} */this._Ee=function(_Mf,_ze){var _Nf=_xf[_Mf];if(_Nf){return _Nf._Ee(_If(_ze));}return 0;};/*@this {yyGamepadManager} */this._Ge=function(_Mf,_He){var _Nf=_xf[_Mf];if(_Nf){
return _Nf._Ge(_Jf(_He),_Ne);}return 0;};};var _Wf=[];var _Xf="None";var _Yf=0;var _Zf=0;/*@constructor */function __f(){this.x=0;this.y=0;this._De=0;this._ye=0;this._Ce=0;this._0g=0;};__f.prototype._Tf=function(){this._De=0;this._ye=0;this._Ce=0;this._0g=0;};__f.prototype._1g=function(_Q5,_R5){if(_S3){var _2g;if(!_S3._3g){_2g=_4g;}else {_2g=_S3._5g;}for(var _n5=0;_n5<_2g.length;_n5++){var _6g=_2g[_n5];if(_6g.visible){_7g(canvas,_8g);if(((_Q5-_8g.left)>=_6g._9g)&&((_Q5-_8g.left)<_6g._ag)&&((_R5-_8g.top)>=_6g._bg)&&((_R5-_8g.top)<_6g._cg)){
this.x=_6g._dg(_Q5,_R5);this.y=_6g._eg(_Q5,_R5);return;}}}}this.x=_Q5;this.y=_R5;};/*@constructor */function _fg(_gg,_Q5,_R5){this.id=_gg;this.x=_Q5;this.y=_R5;}function _hg(_ig){for(var i=0;i<_Wf.length;i++){if(_Wf[i]===_ig){return i;}}return -1;}function _jg(_ig){var _kg=-1;for(var i=0;i<_Wf.length;i++){if((_Wf[i]===_ig)||(_Wf[i]===-1)){_kg=i;break;}}if(_kg==-1){_kg=_Wf.length;}_Wf[_kg]=_ig;_lg[_kg]=new __f();return _kg;}var _mg=false;function _ng(event){for(var _og=0;_og<event.changedTouches.length;_og++){
var _pg=event.changedTouches[_og];var type="";var _kg=-1;_Xf=event.type;switch(event.type){case "touchstart":_kg=_jg(_pg["identifier"]);break;case "touchend":if(!_mg&&(_qg==_rg)){_sg();_mg=true;}_kg=_hg(_pg["identifier"]);_Wf[_kg]=-1;break;case "touchcancel":_kg=_hg(_pg["identifier"]);_Wf[_kg]=-1;break;case "touchmove":_kg=_hg(_pg["identifier"]);break;default :return;}var _tg;var _ug;_tg=_pg.clientX;_ug=_pg.clientY;if(_kg==0){if(_vg!=null){_wg=_tg;_xg=_ug;}switch(event.type){case "touchstart":_yg=1;break;case "touchmove":_yg=1;
break;case "touchcancel":case "touchend":_yg=0;break;}}_lg[_kg]._1g(_tg,_ug);_zg[_kg].x=_tg;_zg[_kg].y=_ug;switch(event.type){case "touchstart":_lg[_kg]._De=1;_zg[_kg]._Ag=_Bg|_Cg|_Dg;break;case "touchcancel":case "touchend":_lg[_kg]._De=0;_zg[_kg]._Ag=0;break;case "touchmove":default :break;}event.preventDefault();}}function _Eg(e){var _Fg=(window["wallpaperMediaIntegration"]||window["wallpaperRegisterAudioListener"]);var _kg=-1;var type="";var button=0;var buttons=0;switch(e.type){case 'mousemove':_kg=0;button=e.button;
buttons=e.buttons;break;case 'touchstart':case 'touchmove':case 'touchend':_ng(e);break;case 'pointerdown':case 'MSPointerDown':_kg=_jg(e["pointerId"]);type="start";button=e.button;buttons=e.buttons;break;case 'pointermove':case 'MSPointerMove':case 'pointerover':_kg=_hg(e["pointerId"]);if(_Fg&&(_kg==-1)){_Eg({"type":'pointerdown',"pointerId":e["pointerId"],"button":1,"buttons":1,"clientX":e.clientX,"clientY":e.clientY,"preventDefault":function(){}});_kg=_hg(e["pointerId"]);}button=e.button;buttons=e.buttons;
type="move";break;case 'pointerup':case 'MSPointerUp':case 'pointercancel':case 'MSPointerCancel':case 'pointerout':case 'MSPointerOut':_kg=_hg(e["pointerId"]);if(_Fg&&(_kg==-1)){_Eg({"type":'pointerdown',"pointerId":e["pointerId"],"button":1,"buttons":1,"clientX":e.clientX,"clientY":e.clientY,"preventDefault":function(){}});_kg=_hg(e["pointerId"]);}type="end";button=e.button;buttons=e.buttons;_Wf[_kg]=-1;break;}if(_kg>=0){var _tg=e.clientX;var _ug=e.clientY;if(_kg==0){if(_vg!=null){_wg=_tg;_xg=_ug;}switch(type){
case "start":case "move":{_Gg=0;if(e.pointerType=="mouse"){_Gg=button;}if(button!=-1){if(_Gg==2)_Gg=1;else if(_Gg==1)_Gg=2;_Hg=_Gg;_Ig=_Gg;_yg=buttons;}}break;case "end":_yg=0;break;}}_lg[_kg]._1g(_tg,_ug);_zg[_kg].x=_tg;_zg[_kg].y=_ug;switch(type){case "start":_lg[_kg]._De=1;_zg[_kg]._Ag=_Bg|_Cg|_Dg;break;case "end":_lg[_kg]._De=0;_zg[_kg]._Ag=0;break;case "move":default :break;}}e.preventDefault();}function _Jg(){if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){
canvas.addEventListener("pointerdown",_Eg,false);canvas.addEventListener("pointermove",_Eg,false);canvas.addEventListener("pointerup",_Eg,false);canvas.addEventListener("pointercancel",_Eg,false);canvas.addEventListener("pointerover",_Eg,false);canvas.addEventListener("pointerout",_Eg,false);canvas.addEventListener("MSPointerDown",_Eg,false);canvas.addEventListener("MSPointerMove",_Eg,false);canvas.addEventListener("MSPointerUp",_Eg,false);canvas.addEventListener("MSPointerCancel",_Eg,false);canvas.addEventListener("MSPointerOver",
_Eg,false);canvas.addEventListener("MSPointerOut",_Eg,false);}else {canvas.ontouchstart=_ng;canvas.ontouchmove=_ng;canvas.ontouchend=_ng;canvas.ontouchcancel=_ng;}canvas.style.touchAction="none";}/** fingerprintJS 0.5.4 - Fast browser fingerprint library
* https://github.com/Valve/fingerprintjs
* Copyright (c) 2013 Valentin Vasilyev (valentin.vasilyev@outlook.com)
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/;
(function(name,context,_Kg){if(typeof module!=='undefined'&&module._Lg){module._Lg=_Kg();}else if(typeof define==='function'&&define._Mg){define(_Kg);}else {context[name]=_Kg();}})('Fingerprint',this,function(){'use strict';var Fingerprint=function(options){var _Ng,_Og;_Ng=Array.prototype.forEach;_Og=Array.prototype.map;this._Pg=function(_Qg,_Rg,context){if(_Qg===null){return;}if(_Ng&&_Qg.forEach===_Ng){_Qg.forEach(_Rg,context);}else if(_Qg.length===+_Qg.length){for(var i=0,_V6=_Qg.length;i<_V6;i++){if(_Rg.call(context,
_Qg[i],i,_Qg)==={})return;}}else {for(var key in _Qg){if(_Qg.hasOwnProperty(key)){if(_Rg.call(context,_Qg[key],key,_Qg)==={})return;}}}};this.map=function(_Qg,_Rg,context){var _Sg=[];if(_Qg==null)return _Sg;if(_Og&&_Qg.map===_Og)return _Qg.map(_Rg,context);this._Pg(_Qg,function(value,index,_Tg){_Sg[_Sg.length]=_Rg.call(context,value,index,_Tg);});return _Sg;};if(typeof options=='object'){this._Ug=options._Ug;this._Vg=options._Vg;this._Wg=options._Wg;this.canvas=options.canvas;this._Xg=options._Xg;}else if(typeof options=='function'){
this._Ug=options;}};Fingerprint.prototype={get :function(){var _Yg=[];_Yg.push(navigator.userAgent);_Yg.push(navigator.language);_Yg.push(screen.colorDepth);if(this._Vg){var resolution=this._Zg();if(typeof resolution!=='undefined'){_Yg.push(resolution.join('x'));}}_Yg.push(new Date().getTimezoneOffset());_Yg.push(this.hasSessionStorage());_Yg.push(this.hasLocalStorage());_Yg.push(!!window.indexedDB);if(document.body){_Yg.push(typeof(document.body.addBehavior));}else {_Yg.push(typeof undefined);}_Yg.push(typeof(window.openDatabase));
_Yg.push(navigator.cpuClass);_Yg.push(navigator.platform);_Yg.push(navigator.doNotTrack);_Yg.push(this.__g());if(this.canvas&&this._0h()){_Yg.push(this._1h());}if(this._Ug){return this._Ug(_Yg.join('###'),31);}else {return this._2h(_Yg.join('###'),31);}},/*
* JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
*
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*
* @param {string} key ASCII only
* @param {number} seed Positive integer only
* @return {number} 32-bit positive integer hash
*/_2h:function(key,
_3h){var _4h,_5h,_6h,_7h,_8h,_9h,_ah,i;_4h=key.length&3;_5h=key.length-_4h;_6h=_3h;_8h=0xcc9e2d51;_9h=0x1b873593;i=0;while(i<_5h){_ah=((key.charCodeAt(i)&0xff))|((key.charCodeAt(++i)&0xff)<<8)|((key.charCodeAt(++i)&0xff)<<16)|((key.charCodeAt(++i)&0xff)<<24);++i;_ah=((((_ah&0xffff)*_8h)+((((_ah>>>16)*_8h)&0xffff)<<16)))&0xffffffff;_ah=(_ah<<15)|(_ah>>>17);_ah=((((_ah&0xffff)*_9h)+((((_ah>>>16)*_9h)&0xffff)<<16)))&0xffffffff;_6h^=_ah;_6h=(_6h<<13)|(_6h>>>19);_7h=((((_6h&0xffff)*5)+((((_6h>>>16)*5)&0xffff)<<16)))&0xffffffff;
_6h=(((_7h&0xffff)+0x6b64)+((((_7h>>>16)+0xe654)&0xffff)<<16));}_ah=0;switch(_4h){case 3:_ah^=(key.charCodeAt(i+2)&0xff)<<16;case 2:_ah^=(key.charCodeAt(i+1)&0xff)<<8;case 1:_ah^=(key.charCodeAt(i)&0xff);_ah=(((_ah&0xffff)*_8h)+((((_ah>>>16)*_8h)&0xffff)<<16))&0xffffffff;_ah=(_ah<<15)|(_ah>>>17);_ah=(((_ah&0xffff)*_9h)+((((_ah>>>16)*_9h)&0xffff)<<16))&0xffffffff;_6h^=_ah;}_6h^=key.length;_6h^=_6h>>>16;_6h=(((_6h&0xffff)*0x85ebca6b)+((((_6h>>>16)*0x85ebca6b)&0xffff)<<16))&0xffffffff;_6h^=_6h>>>13;_6h=((((_6h&0xffff)*0xc2b2ae35)+((((_6h>>>16)*0xc2b2ae35)&0xffff)<<16)))&0xffffffff;
_6h^=_6h>>>16;return _6h>>>0;},hasLocalStorage:function(){try{return !!window.localStorage;}catch(e){return true;}},hasSessionStorage:function(){try{return !!window._bh;}catch(e){return true;}},_0h:function(){var _ch=document.createElement('canvas');return !!(_ch.getContext&&_ch.getContext('2d'));},_dh:function(){if(navigator._eh==='Microsoft Internet Explorer'){return true;}else if(navigator._eh==='Netscape'&&new RegExp('Trident').test(navigator.userAgent)){return true;}return false;},__g:function(){if(this._dh()&&this._Xg){
return this._fh();}else {return this._gh();}},_gh:function(){return this.map(navigator._hh,function(_ih){var _jh=this.map(_ih,function(_kh){return [_kh.type,_kh._lh].join('~');}).join(',');return [_ih.name,_ih.description,_jh].join('::');},this).join(';');},_fh:function(){if(window.ActiveXObject){var _mh=['ShockwaveFlash.ShockwaveFlash','AcroPDF.PDF','PDF.PdfCtrl','QuickTime.QuickTime','rmocx.RealPlayer G2 Control','rmocx.RealPlayer G2 Control.1','RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)','RealVideo.RealVideo(tm) ActiveX Control (32-bit)',
'RealPlayer','SWCtl.SWCtl','WMPlayer.OCX','AgControl.AgControl','Skype.Detection'];return this.map(_mh,function(name){try{new ActiveXObject(name);return name;}catch(e){return null;}}).join(';');}else {return "";}},_Zg:function(){var resolution;if(this._Wg){resolution=(screen.height>screen.width)?[screen.height,screen.width]:[screen.width,screen.height];}else {resolution=[screen.height,screen.width];}return resolution;},_1h:function(){var canvas=document.createElement('canvas');var _0b=canvas.getContext('2d');
var _nh='http://valve.github.io';_0b.textBaseline="top";_0b.font="14px 'Arial'";_0b.textBaseline="alphabetic";_0b.fillStyle="#f60";_0b.fillRect(125,1,62,20);_0b.fillStyle="#069";_0b.fillText(_nh,2,15);_0b.fillStyle="rgba(102, 204, 0, 0.7)";_0b.fillText(_nh,4,17);return canvas.toDataURL();}};return Fingerprint;});_oh:(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 _G4=new Uint8Array(1);return;}catch(e){}function subarray(start,end){return this.slice(start,end);}function _ph(_qh,offset){var i,_I6=_qh.length;if(arguments.length<2){offset=0;}for(i=0;i<_I6;++i,++offset){this[offset]=_qh[i]&0xFF;}}function _rh(_sh){var result,i;if(typeof _sh==="number"){result=new Array(_sh);for(i=0;i<_sh;++i){result[i]=0;}}else {result=_sh.slice(0);}result.subarray=subarray;result.buffer=result;result.byteLength=result.length;result.set =_ph;if(typeof _sh==="object"&&_sh.buffer){
result.buffer=_sh.buffer;}return result;}window.Uint8Array=_rh;window.Uint32Array=_rh;window.Int32Array=_rh;}(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)._th());};}else {getter=function(){return this.responseBody;
};}Object.defineProperty(XMLHttpRequest.prototype,"response",{get:getter});}(window));if(!window.btoa){window.btoa=function(data){var _uh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _vh,_wh,_xh,_6h,_yh,_zh,_Ah,_Bh,i=0,_Ch=0,_Dh="",_Eh=[];if(!data){return data;}do {_vh=data.charCodeAt(i++);_wh=data.charCodeAt(i++);_xh=data.charCodeAt(i++);_Bh=_vh<<16|_wh<<8|_xh;_6h=_Bh>>18&0x3f;_yh=_Bh>>12&0x3f;_zh=_Bh>>6&0x3f;_Ah=_Bh&0x3f;_Eh[_Ch++]=_uh.charAt(_6h)+_uh.charAt(_yh)+_uh.charAt(_zh)+_uh.charAt(_Ah);
}while(i<data.length);_Dh=_Eh.join('');var _D4=data.length%3;return(_D4?_Dh.slice(0,_D4-3):_Dh)+'==='.slice(_D4||3);};}function Font(){this._Fh="fjs"+(999999*Math.random()|0);}Font.prototype._Gh="";Font.prototype._Hh="";Font.prototype.data="";Font.prototype._Ih="AAEAAAAKAIAAAwAgT1MvMgAAAAAAAACsAAAAWGNtYXAA"+"AAAAAAABBAAAACxnbHlmAAAAAAAAATAAAAAQaGVhZAAAA"+"AAAAAFAAAAAOGhoZWEAAAAAAAABeAAAACRobXR4AAAAAA"+"AAAZwAAAAIbG9jYQAAAAAAAAGkAAAACG1heHAAAAAAAAA"+"BrAAAACBuYW1lAAAAAAAAAcwAAAAgcG9zdAAAAAAAAAHs"+"AAAAEAAEAAEAZAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAABAAMAAQA"+"AAAwABAAgAAAABAAEAAEAAABB//8AAABB////wAABAAAA"+"AAABAAAAAAAAAAAAAAAAMQAAAQAAAAAAAAAAAABfDzz1A"+"AAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAEAAg"+"AAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAQAAAAAAAAAAAAAAAAAIAAAAAQAAAAIAAQAB"+"AAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIAHgADAAEEC"+"QABAAAAAAADAAEECQACAAIAAAAAAAEAAAAAAAAAAAAAAA"+"AAAA==";
Font.prototype._Jh={_Kh:0,_Lh:0,_Mh:0,_Nh:0,_Oh:400};Font.prototype._Ph=false;Font.prototype._Qh=false;Font.prototype.onload=function(){};Font.prototype.onerror=function(){};Font.prototype.canvas=false;Font.prototype.context=false;Font.prototype.validate=function(target,_Rh,_Sh,font,_Th){if(_Th!==false&&_Th<0){this.onerror("Requested system font '"+this._Fh+"' could not be loaded (it may not be installed).");return;}var _Uh=document.defaultView.getComputedStyle(target,'');var width=_Uh.getPropertyValue("width").replace("px",
'');if(width>0){document.head.removeChild(_Rh);document.body.removeChild(target);this._Qh=true;this.onload();}else {setTimeout(function(){font.validate(target,_Rh,_Sh,font,_Th===false?false:_Th-50);},50);}};Font.prototype._Vh=function(){var instance=this;var chr=function(_re){return String.fromCharCode(_re);};var _Wh=function(_re){if(_re<256){return chr(0)+chr(_re);}var _Xh=_re>>8;var _Yh=_re&0xFF;return chr(_Xh)+chr(_Yh);};var _Zh=function(_re){if(_re<0){_re=0xFFFFFFFF+_re+1;}return parseInt(_re,10).toString(16);
};var __h=function(_Xh,_Yh){return 256*_Xh+_Yh;};var _0i=function(_Xh,_Yh){var _1i=_Xh>>7===1,_re;_Xh=_Xh&0x7F;_re=256*_Xh+_Yh;if(!_1i){return _re;}return _re-0x8000;};var _2i=function(_Xh,_Yh,_3i,_4i){return 16777216*_Xh+65536*_Yh+256*_3i+_4i;};var error=function(_5i){instance.onerror(_5i);};var _6i=chr(0)+chr(1)+chr(0)+chr(0);var _7i="OTTO";var data=this.data;var version=chr(data[0])+chr(data[1])+chr(data[2])+chr(data[3]);var _8i=(version===_6i);var _9i=(_8i?false:version===_7i);if(_8i){this._Hh="truetype";}
else if(_9i){this._Hh="opentype";}else {error("Error: file at "+this._Gh+" cannot be interpreted as OpenType font.");return;}var _ai=__h(data[4],data[5]),_bi=12,ptr,end=_bi+16*_ai,tags={},_ci;for(ptr=_bi;ptr<end;ptr+=16){_ci=chr(data[ptr])+chr(data[ptr+1])+chr(data[ptr+2])+chr(data[ptr+3]);tags[_ci]={name:_ci,_di:_2i(data[ptr+4],data[ptr+5],data[ptr+6],data[ptr+7]),offset:_2i(data[ptr+8],data[ptr+9],data[ptr+10],data[ptr+11]),length:_2i(data[ptr+12],data[ptr+13],data[ptr+14],data[ptr+15])};}var _ei=function(_ci){
if(!tags[_ci]){error("Error: font is missing the required OpenType '"+_ci+"' table.");return false;}return _ci;};_ci=_ei("head");if(_ci===false){return;}ptr=tags[_ci].offset;tags[_ci].version=""+data[ptr]+data[ptr+1]+data[ptr+2]+data[ptr+3];var _fi=__h(data[ptr+18],data[ptr+19]);this._Jh._Kh=_fi;_ci=_ei("hhea");if(_ci===false){return;}ptr=tags[_ci].offset;tags[_ci].version=""+data[ptr]+data[ptr+1]+data[ptr+2]+data[ptr+3];this._Jh._Mh=_0i(data[ptr+4],data[ptr+5])/_fi;this._Jh._Nh=_0i(data[ptr+6],data[ptr+7])/_fi;
this._Jh._Lh=_0i(data[ptr+8],data[ptr+9])/_fi;_ci=_ei("OS/2");if(_ci===false){return;}ptr=tags[_ci].offset;tags[_ci].version=""+data[ptr]+data[ptr+1];this._Jh._Oh=__h(data[ptr+4],data[ptr+5]);_ci=_ei("cmap");if(_ci===false){return;}ptr=tags[_ci].offset;tags[_ci].version=""+data[ptr]+data[ptr+1];_ai=__h(data[ptr+2],data[ptr+3]);var _gi,_hi,_ii,_ji,offset,_ki=false;for(_gi=0;_gi<_ai;_gi++){_hi=ptr+4+_gi*8;_ii=__h(data[_hi],data[_hi+1]);_ji=__h(data[_hi+2],data[_hi+3]);offset=_2i(data[_hi+4],data[_hi+5],
data[_hi+6],data[_hi+7]);if(_ii===3&&_ji===1){_ki=offset;}}var _li="A";this._mi=[];if(_ki!==false){ptr+=_ki;version=__h(data[ptr],data[ptr+1]);if(version===4){var _ni=__h(data[ptr+6],data[ptr+7])/2;var _oi=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*_ni,_pi=false;for(;i<e;i+=2){_pi=__h(data[i],data[i+1]);
if(_oi(_pi)){break;}_pi=false;}var _qi=e+2;for(;i<e;i+=2,_qi+=2){var _ri=__h(data[i],data[i+1]);var _si=__h(data[_qi],data[_qi+1]);if(_ri!=0xffff){for(var _I6=_si;_I6<=_ri;++_I6){this._mi.push(_I6);}}}if(_pi!==false){_li=String.fromCharCode(_pi);var _ti=-(_pi-1)+65536;var _ui=btoa(chr(0)+_Wh(_pi)+_Wh(0xFFFF)+_Wh(0)+_Wh(_pi)+_Wh(0xFFFF)+_Wh(_ti)+_Wh(1));this._Ih=this._Ih.substring(0,380)+_ui+this._Ih.substring(380+_ui.length);}}}this._vi(_li,false);};Font.prototype._vi=function(_li,_Th){var _wi=this._Fh+" testfont";
var _xi=document.createElement("style");_xi.setAttribute("type","text/css");_xi.innerHTML="@font-face {\n"+" font-family: '"+_wi+"';\n"+" src: url('data:application/x-font-ttf;base64,"+this._Ih+"')\n"+" format('truetype');}";document.head.appendChild(_xi);var _yi=false;if(!this._Ph){_yi=this._zi();document.head.appendChild(_yi);}var _Ai=document.createElement("p");_Ai.style.cssText="position: absolute; top: 0; left: 0; opacity: 0;";_Ai.style._Fh="'"+this._Fh+"', '"+_wi+"'";_Ai.innerHTML=_li+_li+_li+_li+_li+_li+_li+_li+_li+_li;
document.body.appendChild(_Ai);if(!document.defaultView.getComputedStyle){this.onload();_Bi("Error: document.defaultView.getComputedStyle is not supported by this browser.\n"+"Consequently, Font.onload() cannot be trusted.");}else {var _Ci=this._Ph?1000:this._Jh._Kh;var canvas=document.createElement("canvas");canvas.width=_Ci;canvas.height=_Ci;this.canvas=canvas;var context=canvas.getContext("2d");context.font="1em '"+this._Fh+"'";context.fillStyle="white";context.fillRect(-1,-1,_Ci+2,_Ci+2);context.fillStyle="black";
context.fillText("test text",50,_Ci/2);this.context=context;var _Di=this;var _Ei=function(){_Di.validate(_Ai,_xi,_yi,_Di,_Th);};setTimeout(_Ei,50);}};Font.prototype._Fi=function(){this._Ph=true;this._Jh=false;this._vi("A",1000);};Font.prototype._Gi=function(){var font=this;if(this._Gh.indexOf(".")===-1){setTimeout(function(){font._Fi();},10);return;}var _Hi=new XMLHttpRequest();_Hi.open('GET',font._Gh,true);_Hi.responseType="arraybuffer";_Hi.onload=function(_Ii){var _Ji=_Hi.response;if(_Ji){font.data=new Uint8Array(_Ji);
font._Vh();}else {font.onerror("Error downloading font resource from "+font._Gh);}};_Hi.send(null);};Font.prototype._Ki=false;Font.prototype._zi=function(){if(this._Ki){return this._Ki;}this._Ki=document.createElement("style");this._Ki.type="text/css";var _Li="@font-face {\n";_Li+=" font-family: '"+this._Fh+"';\n";_Li+=" src: url('"+this._Gh+"') format('"+this._Hh+"');\n";_Li+="}";this._Ki.innerHTML=_Li;return this._Ki;};Font.prototype.measureText=function(_Mi,_Ni){if(!this._Qh){console.log("Error:measureText() was called while the font was not yet loaded");
return false;}this.context.font=_Ni+"px '"+this._Fh+"'";var _Jh=this.context.measureText(_Mi);_Jh.fontsize=_Ni;_Jh._Mh=0;_Jh._Nh=0;_Jh._Oi={_Pi:0,_Qi:_Jh.width,_Ri:0,_Si:0};_Jh.height=0;var _Ti=[],_Ui=_Jh.width/this._Jh._Kh;if(_Ui<=1){_Ti.push(_Mi);}else {_Ti.push(_Mi);}var _Vi=_Ti.length,i;for(i=0;i<_Vi;i++){this._Wi(_Ti[i],_Ni,_Jh);}return _Jh;};Font.prototype._Wi=function(_Xi,_Ni,_Jh){var _Yi=function(_pd,_Zi){return document.defaultView.getComputedStyle(_pd,null).getPropertyValue(_Zi);};var i,_17,__i,
_0j,_1j;var _2j=document.createElement("div");_2j.style.position="absolute";_2j.style.opacity=0;_2j.style.font=_Ni+"px '"+this._Fh+"'";var _3j=10;_2j.innerHTML=_Xi;for(i=1;i<_3j;i++){_2j.innerHTML+="<br/>"+_Xi;}document.body.appendChild(_2j);_Jh._Lh=1.2*_Ni;var _4j=_Yi(_2j,"height");_4j=_4j.replace("px","");if(_4j>=_Ni*_3j){_Jh._Lh=(_4j/_3j)|0;}document.body.removeChild(_2j);if(new RegExp('^\s*$').test(_Xi)){return _Jh;}var canvas=this.canvas,_0b=this.context,_Ci=this._Ph?1000:this._Jh._Kh,w=_Ci,h=_Ci,
_5j=_Ci/2,padding=50,_6j=(_Ci-_Jh.width)/2;if(_6j!==(_6j|0)){_6j=_6j|0;}_0b.fillStyle="white";_0b.fillRect(-padding,-padding,w+2*padding,h+2*padding);_0b.fillStyle="black";_0b.fillText(_Xi,_6j,_5j);var _7j=(_Jh.width+padding)|0,_8j=4*_Ni,_9j=_6j-padding/2,_aj=_5j-_8j/2,_bj=_0b.getImageData(_9j,_aj,_7j,_8j).data;i=0;_17=0;__i=_7j*4;_0j=_bj.length;_1j=_8j/2;while(++i<_0j&&_bj[i]===255){}var _Mh=(i/__i)|0;i=_0j-1;while(--i>0&&_bj[i]===255){}var _Nh=(i/__i)|0;for(i=0,_17=0;_17<_7j&&_bj[i]===255;){i+=__i;
if(i>=_0j){_17++;i=(i-_0j)+4;}}var _Pi=_17;var step=1;for(i=_0j-3,_17=0;_17<_7j&&_bj[i]===255;){i-=__i;if(i<0){_17++;i=(_0j-3)-(step++)*4;}}var _Qi=_7j-_17;_Jh._Mh=(_1j-_Mh);_Jh._Nh=(_Nh-_1j);_Jh._Oi={_Pi:_Pi-(padding/2),_Qi:_Qi-(padding/2),_Ri:-_Jh._Nh,_Si:_Jh._Mh};_Jh.height=1+(_Nh-_Mh);return _Jh;};Object.defineProperty(Font.prototype,"src",{set:function(_Gh){this._Gh=_Gh;this._Gi();}});window.Font=Font;}(window));_oh:var _cj,_dj,_ej,_fj,_gj,_hj,_ij;function ds_set_precision(_jj){_kj=yyGetReal(_jj);
}/*@constructor */function _lj(){this.width=0;this.height=0;this.body=[];}/*@constructor */function _mj(_nj,_oj){this._pj=[];this._Xc=_nj;this._Yc=_oj;var _Y6=_nj*_oj;for(var i=0;i<_Y6;i++){this._pj[i]=0;}}_mj.prototype._qj=function(_rj){this._Xc=_rj._Xc;this._Yc=_rj._Yc;this._pj=_rj._pj.slice();};function ds_grid_create(_nj,_oj){_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);if(_nj<0||_oj<0){_55("Error: Invalid ds_grid size: ("+_nj+","+_oj+")");}var _sj=new _mj(_nj,_oj);var id=_tj._Df(_sj);return id;}function ds_grid_destroy(_gg){
_tj._uj(yyGetInt32(_gg));}function ds_grid_copy(_gg,_vj){var _wj=_tj._26(yyGetInt32(_gg));if(!_wj){_55("Error: invalid dest ds_grid(copy)");return;}var _xj=_tj._26(yyGetInt32(_vj));if(!_xj){_55("Error: invalid source ds_grid(copy)");return;}_wj._qj(_xj);}function ds_grid_resize(_gg,_nj,_oj){_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);_gg=yyGetInt32(_gg);if(_nj<0||_oj<0){_55("Error: Can't resize grid to ("+string(_nj)+","+string(_oj)+")");return;}var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid dest ds_grid(copy)");
return;}var _yj=new _mj(_nj,_oj);var i=_tj._Df(_yj);ds_grid_set_grid_region(i,_gg,0,0,_sj._Xc-1,_sj._Yc-1,0,0);_tj._uj(i);_tj.Set(_gg,_yj);}function ds_grid_width(_gg){var _sj=_tj._26(yyGetInt32(_gg));if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_width)");return;}return _sj._Xc;}function ds_grid_height(_gg){var _sj=_tj._26(yyGetInt32(_gg));if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_height)");return;}return _sj._Yc;}function ds_grid_clear(_gg,__3){var _sj=_tj._26(yyGetInt32(_gg));if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_height)");
return;}for(var i=0;i<_sj._pj.length;i++){_sj._pj[i]=__3;}}var ds_grid_set=_zj;function _zj(_gg,_Q5,_R5,__3){_gg=yyGetInt32(_gg);_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set)");return;}if(_Q5<0||_Q5>=_sj._Xc||_R5<0||_R5>=_sj._Yc){_55("Error: grid out of bounds(set) - GridID: "+_gg+" size["+_sj._Xc+","+_sj._Yc+"] at ("+_Q5+","+_R5+")");return;}_sj._pj[_Q5+(_R5*_sj._Xc)]=__3;}function _Aj(_gg,_Q5,_R5,__3){_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);
var _sj=_tj._26(yyGetInt32(_gg));if((_Q5<0)||(_Q5>=_sj._Xc)||(_R5<0)||(_R5>=_sj._Yc)){return;}_sj._pj[_Q5+(_R5*_sj._Xc)]=__3;}var ds_grid_set_pre=_Bj;function _Bj(_gg,_Q5,_R5,__3){_gg=yyGetInt32(_gg);_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set)");return __3;}if(_Q5<0||_Q5>=_sj._Xc||_R5<0||_R5>=_sj._Yc){_55("Error: grid out of bounds(set) - GridID: "+_gg+" size["+_sj._Xc+","+_sj._Yc+"] at ("+_Q5+","+_R5+")");return __3;}_sj._pj[_Q5+(_R5*_sj._Xc)]=__3;
return __3;}function _Cj(_gg,_Q5,_R5,__3){_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);var _sj=_tj._26(yyGetInt32(_gg));if((_Q5<0)||(_Q5>=_sj._Xc)||(_R5<0)||(_R5>=_sj._Yc)){return __3;}_sj._pj[_Q5+(_R5*_sj._Xc)]=__3;return __3;}var ds_grid_set_post=_Dj;function _Dj(_gg,_Q5,_R5,__3){_gg=yyGetInt32(_gg);_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set)");return __3;}if(_Q5<0||_Q5>=_sj._Xc||_R5<0||_R5>=_sj._Yc){_55("Error: grid out of bounds(set) - GridID: "+_gg+" size["+_sj._Xc+","+_sj._Yc+"] at ("+_Q5+","+_R5+")");
return __3;}var _P4=_sj._pj[_Q5+(_R5*_sj._Xc)];_sj._pj[_Q5+(_R5*_sj._Xc)]=__3;return _P4;}function _Ej(_gg,_Q5,_R5,__3){_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);var _sj=_tj._26(yyGetInt32(_gg));if((_Q5<0)||(_Q5>=_sj._Xc)||(_R5<0)||(_R5>=_sj._Yc)){return __3;}var _P4=_sj._pj[_Q5+(_R5*_sj._Xc)];_sj._pj[_Q5+(_R5*_sj._Xc)]=__3;return _P4;}function ds_grid_add(_gg,_Q5,_R5,__3){_gg=yyGetInt32(_gg);_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_add)");
return;}if(_Q5<0||_Q5>=_sj._Xc||_R5<0||_R5>=_sj._Yc){_55("Error: grid out of bounds(ds_grid_add): "+_gg+" ("+_Q5+","+_R5+")");return;}var index=_Q5+(_R5*_sj._Xc);var _Fj=_sj._pj[index];var _Gj=typeof(_Fj);var _Hj=typeof(__3);if(_Gj==_Hj&&(_Gj=="number"||_Gj=="string")){_sj._pj[index]+=__3;}else if(_Gj!="object"||_Hj!="object"){_sj._pj[index]=__3;}else if(_Gj!="string"&&_Hj!="string"){_sj._pj[index]=yyGetReal(_Fj)+yyGetReal(__3);}else _sj._pj[index]=__3;}function ds_grid_multiply(_gg,_Q5,_R5,__3){_gg=yyGetInt32(_gg);
_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_multiply)");return;}if(_Q5<0||_Q5>=_sj._Xc||_R5<0||_R5>=_sj._Yc){_55("Error: grid out of bounds(ds_grid_multiply): "+_gg+" ("+_Q5+","+_R5+")");return;}var index=_Q5+(_R5*_sj._Xc);var _Fj=_sj._pj[index];var _Gj=typeof(_Fj);if(typeof(__3)=="string"||_Gj=="string")return;_sj._pj[index]=yyGetReal(_Fj)*yyGetReal(__3);}function ds_grid_set_region(_gg,_b7,_c7,_D6,_E6,__3){_gg=yyGetInt32(_gg);_b7=yyGetInt32(_b7);
_c7=yyGetInt32(_c7);_D6=yyGetInt32(_D6);_E6=yyGetInt32(_E6);if(_b7>_D6){var _Y6=_b7;_b7=_D6;_D6=_Y6;}if(_c7>_E6){var _Y6=_c7;_c7=_E6;_E6=_Y6;}var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set_region)");return;}var _Ij=_W6(0,_X6(_c7,_E6));var _Jj=_X6(_sj._Yc-1,_W6(_c7,_E6));var _Kj=_W6(0,_X6(_b7,_D6));var _Lj=_X6(_sj._Xc-1,_W6(_b7,_D6));for(var y=_Ij;y<=_Jj;y++){for(var x=_Kj;x<=_Lj;x++){var index=(y*_sj._Xc)+x;_sj._pj[index]=__3;}}}function ds_grid_add_region(_gg,_b7,_c7,_D6,_E6,__3){
_gg=yyGetInt32(_gg);_b7=yyGetInt32(_b7);_c7=yyGetInt32(_c7);_D6=yyGetInt32(_D6);_E6=yyGetInt32(_E6);if(_b7>_D6){var _Y6=_b7;_b7=_D6;_D6=_Y6;}if(_c7>_E6){var _Y6=_c7;_c7=_E6;_E6=_Y6;}var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_add_region)");return;}if((_b7<0||_b7>=_sj._Xc||_c7<0||_c7>=_sj._Yc)||(_D6<0||_D6>=_sj._Xc||_E6<0||_E6>=_sj._Yc)){_55("Error: region out of bounds(ds_grid_add_region): "+_gg);}for(var y=_c7;y<=_E6;y++){var index=(y*_sj._Xc)+_b7;for(var x=_b7;x<=_D6;x++){var _Fj=_sj._pj[index];
var _Gj=typeof(_Fj);var _Hj=typeof(__3);if(_Gj==_Hj&&(_Gj=="number"||_Gj=="string")){_sj._pj[index]+=__3;}else if(_Gj!="object"||_Hj!="object"){_sj._pj[index]=__3;}else if(_Gj!="string"&&_Hj!="string"){_sj._pj[index]=yyGetReal(_Fj)+yyGetReal(__3);}else _sj._pj[index]=__3;index++;}}}function ds_grid_multiply_region(_gg,_b7,_c7,_D6,_E6,__3){_gg=yyGetInt32(_gg);_b7=yyGetInt32(_b7);_c7=yyGetInt32(_c7);_D6=yyGetInt32(_D6);_E6=yyGetInt32(_E6);if(_b7>_D6){var _Y6=_b7;_b7=_D6;_D6=_Y6;}if(_c7>_E6){var _Y6=_c7;_c7=_E6;
_E6=_Y6;}var _sj=_tj._26(_gg);if(_sj==null||_sj==undefined){_55("Error: invalid ds_grid ID (ds_grid_multiply_region)");return;}if((_b7<0||_b7>=_sj._Xc||_c7<0||_c7>=_sj._Yc)||(_D6<0||_D6>=_sj._Xc||_E6<0||_E6>=_sj._Yc)){_55("Error: region out of bounds(ds_grid_multiply_region): "+_gg);}for(var y=_c7;y<=_E6;y++){var index=(y*_sj._Xc)+_b7;for(var x=_b7;x<=_D6;x++){var _Fj=_sj._pj[index];var _Gj=typeof(_Fj);if(typeof(__3)=="string"||_Gj=="string")continue;_sj._pj[index]=yyGetReal(_Fj)*yyGetReal(__3);index++;
}}}function ds_grid_set_disk(_gg,_Q5,_R5,_Mj,__3){_gg=yyGetInt32(_gg);_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_Mj=yyGetReal(_Mj);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _L6=0;var _M6=0;var _N6=0;var _O6=0;var i=0;var _17=0;_L6=~~(_W6(0.0,Math.floor(_Q5-_Mj)));_N6=~~(_X6(_sj._Xc-1,Math.ceil(_Q5+_Mj)));_M6=~~(_W6(0,Math.floor(_R5-_Mj)));_O6=~~(_X6(_sj._Yc-1,Math.ceil(_R5+_Mj)));_Mj=_Mj*_Mj;var w=_sj._Xc;for(i=_L6;i<=_N6;i++){var _Nj=(i-_Q5)*(i-_Q5);for(_17=_M6;
_17<=_O6;_17++){var _Oj=_17-_R5;if(_Nj+(_Oj*_Oj)<=_Mj){if(i>=0&&i<_sj._Xc&&_17>=0&&_17<_sj._Yc){_sj._pj[i+(_17*w)]=__3;}}}}}function ds_grid_add_disk(_gg,_Q5,_R5,_Mj,__3){_gg=yyGetInt32(_gg);_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_Mj=yyGetReal(_Mj);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _L6=0;var _M6=0;var _N6=0;var _O6=0;var i=0;var _17=0;_L6=~~(_W6(0.0,Math.floor(_Q5-_Mj)));_N6=~~(_X6(_sj._Xc-1,Math.ceil(_Q5+_Mj)));_M6=~~(_W6(0,Math.floor(_R5-_Mj)));
_O6=~~(_X6(_sj._Yc-1,Math.ceil(_R5+_Mj)));_Mj=_Mj*_Mj;var w=_sj._Xc;for(i=_L6;i<=_N6;i++){var _Nj=(i-_Q5)*(i-_Q5);for(_17=_M6;_17<=_O6;_17++){var _Oj=_17-_R5;if(_Nj+(_Oj*_Oj)<=_Mj){if(i>=0&&i<_sj._Xc&&_17>=0&&_17<_sj._Yc){var index=i+(_17*w);var _Fj=_sj._pj[index];var _Gj=typeof(_Fj);var _Hj=typeof(__3);if(_Gj==_Hj&&(_Gj=="number"||_Gj=="string")){_sj._pj[index]+=__3;}else if(_Gj!="object"||_Hj!="object"){_sj._pj[index]=__3;}else if(_Gj!="string"&&_Hj!="string"){_sj._pj[index]=yyGetReal(_Fj)+yyGetReal(__3);
}else _sj._pj[index]=__3;}}}}}function ds_grid_multiply_disk(_gg,_Q5,_R5,_Mj,__3){_gg=yyGetInt32(_gg);_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_Mj=yyGetReal(_Mj);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _L6=0;var _M6=0;var _N6=0;var _O6=0;var i=0;var _17=0;_L6=~~(_W6(0.0,Math.floor(_Q5-_Mj)));_N6=~~(_X6(_sj._Xc-1,Math.ceil(_Q5+_Mj)));_M6=~~(_W6(0,Math.floor(_R5-_Mj)));_O6=~~(_X6(_sj._Yc-1,Math.ceil(_R5+_Mj)));_Mj=_Mj*_Mj;var w=_sj._Xc;for(i=_L6;i<=_N6;i++){
var _Nj=(i-_Q5)*(i-_Q5);for(_17=_M6;_17<=_O6;_17++){var _Oj=_17-_R5;if(_Nj+(_Oj*_Oj)<=_Mj){if(i>=0&&i<_sj._Xc&&_17>=0&&_17<_sj._Yc){var index=i+(_17*w);var _Fj=_sj._pj[index];var _Gj=typeof(_Fj);if(typeof(__3)=="string"||_Gj=="string")continue;_sj._pj[index]=yyGetReal(_Fj)*yyGetReal(__3);}}}}}function _Pj(_gg,_vj,_b7,_c7,_D6,_E6,_Qj,_Rj,_Sj){_gg=yyGetInt32(_gg);_b7=yyGetInt32(_b7);_c7=yyGetInt32(_c7);_D6=yyGetInt32(_D6);_E6=yyGetInt32(_E6);_Qj=yyGetInt32(_Qj);_Rj=yyGetInt32(_Rj);if(_b7>_D6){var _Y6=_b7;
_b7=_D6;_D6=_Y6;}if(_c7>_E6){var _Y6=_c7;_c7=_E6;_E6=_Y6;}var _xj=_tj._26(_vj);if(!_xj){_55("Error: invalid ds_grid ID (ds_grid_set_grid_region)");return;}var _wj=_tj._26(_gg);if(!_wj){_55("Error: invalid ds_grid ID (ds_grid_set_grid_region)");return;}var _Tj=_b7+(_xj._Xc*_c7);var _Uj=_Qj+(_wj._Xc*_Rj);if(_Tj>=_Uj){for(var y=_c7;y<=_E6;y++){var _Vj=_Qj;var index=(y*_xj._Xc)+_b7;for(var x=_b7;x<=_D6;x++){if((x>=0&&x<_xj._Xc&&y>=0&&y<_xj._Yc)&&(_Vj>=0&&_Vj<_wj._Xc&&_Rj>=0&&_Rj<_wj._Yc)){_Sj(_wj,(_Vj+(_Rj*_wj._Xc)),
_xj,index);}index++;_Vj++;}_Rj++;}}else {_Rj+=_E6-_c7;_Qj+=_D6-_b7;for(var y=_E6;y>=_c7;y--){var _Vj=_Qj;var index=(y*_xj._Xc)+_D6;for(var x=_D6;x>=_b7;x--){if((x>=0&&x<_xj._Xc&&y>=0&&y<_xj._Yc)&&(_Vj>=0&&_Vj<_wj._Xc&&_Rj>=0&&_Rj<_wj._Yc)){_Sj(_wj,(_Vj+(_Rj*_wj._Xc)),_xj,index);}index--;_Vj--;}_Rj--;}}}function ds_grid_set_grid_region(_gg,_vj,_b7,_c7,_D6,_E6,_Qj,_Rj){_Pj(_gg,_vj,_b7,_c7,_D6,_E6,_Qj,_Rj,function _Wj(_Xj,_Yj,_Zj,_74){_Xj._pj[_Yj]=_Zj._pj[_74];});}function ds_grid_add_grid_region(_gg,_vj,_b7,
_c7,_D6,_E6,_Qj,_Rj){_Pj(_gg,_vj,_b7,_c7,_D6,_E6,_Qj,_Rj,function _Wj(_Xj,_Yj,_Zj,_74){var _Fj=_Xj._pj[_Yj];var _Gj=typeof(_Fj);var __j=_Zj._pj[_74];var _Hj=typeof(__j);if(_Gj==_Hj&&(_Gj=="number"||_Gj=="string")){_Xj._pj[_Yj]+=__j;}else if(_Gj!="object"||_Hj!="object"){_Xj._pj[_Yj]=__j;}else if(_Gj!="string"&&_Hj!="string"){_Xj._pj[_Yj]=yyGetReal(_Fj)+yyGetReal(__j);}else _Xj._pj[_Yj]=__j;});}function ds_grid_multiply_grid_region(_gg,_vj,_b7,_c7,_D6,_E6,_Qj,_Rj,__3){_Pj(_gg,_vj,_b7,_c7,_D6,_E6,_Qj,_Rj,function _Wj(_Xj,
_Yj,_Zj,_74){var _Fj=_Xj._pj[_Yj];var __j=_Zj._pj[_74];if(typeof(_Fj)=="string"||typeof(__j)=="string")return;_Xj._pj[_Yj]=yyGetReal(_Fj)*yyGetReal(__j);});}var ds_grid_get=_0k;function _0k(_gg,_Q5,_R5){_gg=yyGetInt32(_gg);var _sj=_tj._26(_gg),x=yyGetInt32(_Q5),y=yyGetInt32(_R5);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_get)");return undefined;}if(x<0||x>=_sj._Xc||y<0||y>=_sj._Yc){_55("Error: grid out of bounds(get) - GridID: "+_gg+" size["+_sj._Xc+","+_sj._Yc+"] at ("+x+","+y+")");return undefined;
}return _sj._pj[x+(y*_sj._Xc)];}function _1k(_gg,_Q5,_R5){var _sj=_tj._26(_gg);return _sj._pj[~~_Q5+(~~_R5*_sj._Xc)];}function _2k(_gg,_b7,_c7,_D6,_E6){_gg=yyGetInt32(_gg);_b7=yyGetInt32(_b7);_c7=yyGetInt32(_c7);_D6=yyGetInt32(_D6);_E6=yyGetInt32(_E6);var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_get_sum)");return 0;}if(_b7>_D6){var _Y6=_b7;_b7=_D6;_D6=_Y6;}if(_b7<0)_b7=0;if(_b7>=_sj._Xc)_b7=_sj._Xc-1;if(_D6<0)_D6=0;if(_D6>=_sj._Xc)_D6=_sj._Xc-1;if(_c7>_E6){var _Y6=_c7;_c7=_E6;_E6=_Y6;
}if(_c7<0)_c7=0;if(_c7>=_sj._Yc)_c7=_sj._Yc-1;if(_E6<0)_E6=0;if(_E6>=_sj._Yc)_E6=_sj._Yc-1;_dj=_cj=_ej=_fj=0;var first=true;var _E8=0;for(var y=_c7;y<=_E6;y++){var index=(y*_sj._Xc)+_b7;for(var x=_b7;x<=_D6;x++){var _n5=_sj._pj[index];if(first){_cj=_dj=_n5;first=false;}else {if(_cj>_n5)_cj=_n5;if(_dj<_n5)_dj=_n5;}if(typeof _n5!=="string"){_ej+=_n5;}_E8++;index++;}}_fj=_ej/_E8;}function ds_grid_get_sum(_gg,_b7,_c7,_D6,_E6){_2k(_gg,_b7,_c7,_D6,_E6);return _ej;}function ds_grid_get_max(_gg,_b7,_c7,_D6,_E6){_2k(_gg,
_b7,_c7,_D6,_E6);return _dj;}function ds_grid_get_min(_gg,_b7,_c7,_D6,_E6){_2k(_gg,_b7,_c7,_D6,_E6);return _cj;}function ds_grid_get_mean(_gg,_b7,_c7,_D6,_E6){_2k(_gg,_b7,_c7,_D6,_E6);return _fj;}function _3k(_gg,_Q5,_R5,_Mj){var _sj=_tj._26(yyGetInt32(_gg));if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_Mj=yyGetReal(_Mj);var _L6=0;var _M6=0;var _N6=0;var _O6=0;var i=0;var _17=0;_L6=~~(_W6(0.0,Math.floor(_Q5-_Mj)));_N6=~~(_X6(_sj._Xc-1,Math.ceil(_Q5+_Mj)));
_M6=~~(_W6(0,Math.floor(_R5-_Mj)));_O6=~~(_X6(_sj._Yc-1,Math.ceil(_R5+_Mj)));var first=true;var _E8=0;_dj=_cj=_ej=0;_Mj=_Mj*_Mj;var w=_sj._Xc;for(i=_L6;i<=_N6;i++){var _Nj=(i-_Q5)*(i-_Q5);for(_17=_M6;_17<=_O6;_17++){var _Oj=_17-_R5;if(_Nj+(_Oj*_Oj)<=_Mj){if(i>=0&&i<_sj._Xc&&_17>=0&&_17<_sj._Yc){var _n5=_sj._pj[i+(_17*w)];if(first){_cj=_dj=_n5;first=false;}else {if(_cj>_n5)_cj=_n5;if(_dj<_n5)_dj=_n5;}if(typeof _n5!=="string"){_ej+=_n5;}_E8++;}}}}_fj=_ej/_E8;}function ds_grid_get_disk_sum(_gg,_Q5,_R5,_Mj){
_3k(_gg,_Q5,_R5,_Mj);return _ej;}function ds_grid_get_disk_max(_gg,_Q5,_R5,_Mj){_3k(_gg,_Q5,_R5,_Mj);return _dj;}function ds_grid_get_disk_min(_gg,_Q5,_R5,_Mj){_3k(_gg,_Q5,_R5,_Mj);return _cj;}function ds_grid_get_disk_mean(_gg,_Q5,_R5,_Mj){_3k(_gg,_Q5,_R5,_Mj);return _fj;}function _4k(_gg,_b7,_c7,_D6,_E6,__3){var _sj=_tj._26(yyGetInt32(_gg));if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_get_sum)");return 0;}_b7=yyGetInt32(_b7);_c7=yyGetInt32(_c7);_D6=yyGetInt32(_D6);_E6=yyGetInt32(_E6);if(_b7>_D6){var _Y6=_b7;
_b7=_D6;_D6=_Y6;}if(_b7<0)_b7=0;if(_b7>=_sj._Xc)_b7=_sj._Xc-1;if(_D6<0)_D6=0;if(_D6>=_sj._Xc)_D6=_sj._Xc-1;if(_c7>_E6){var _Y6=_c7;_c7=_E6;_E6=_Y6;}if(_c7<0)_c7=0;if(_c7>=_sj._Yc)_c7=_sj._Yc-1;if(_E6<0)_E6=0;if(_E6>=_sj._Yc)_E6=_sj._Yc-1;_gj=false;_hj=-1;_ij=-1;for(var y=_c7;y<=_E6;y++){var index=(y*_sj._Xc)+_b7;for(var x=_b7;x<=_D6;x++){var _n5=_sj._pj[index];if((typeof(__3)=="number"&&typeof(_n5)=="number")){if(_kj>abs(__3-_n5)){_gj=true;_hj=x;_ij=y;return true;}}else {if(__3==_n5){_gj=true;_hj=x;_ij=y;
return true;}}index++;}}return false;}function ds_grid_value_exists(_gg,_b7,_c7,_D6,_E6,__3){_4k(_gg,_b7,_c7,_D6,_E6,__3);return _gj;}function ds_grid_value_x(_gg,_b7,_c7,_D6,_E6,__3){_4k(_gg,_b7,_c7,_D6,_E6,__3);return _hj;}function ds_grid_value_y(_gg,_b7,_c7,_D6,_E6,__3){_4k(_gg,_b7,_c7,_D6,_E6,__3);return _ij;}function _5k(_gg,_Q5,_R5,_Mj,__3){var _sj=_tj._26(yyGetInt32(_gg));if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_Mj=yyGetReal(_Mj);var _L6=0;
var _M6=0;var _N6=0;var _O6=0;var i=0;var _17=0;_L6=~~(_W6(0.0,Math.floor(_Q5-_Mj)));_N6=~~(_X6(_sj._Xc-1,Math.ceil(_Q5+_Mj)));_M6=~~(_W6(0,Math.floor(_R5-_Mj)));_O6=~~(_X6(_sj._Yc-1,Math.ceil(_R5+_Mj)));_hj=_ij=-1;_gj=false;_Mj=_Mj*_Mj;var w=_sj._Xc;for(i=_L6;i<=_N6;i++){var _Nj=(i-_Q5)*(i-_Q5);for(_17=_M6;_17<=_O6;_17++){var _Oj=_17-_R5;if(_Nj+(_Oj*_Oj)<=_Mj){if(i>=0&&i<_sj._Xc&&_17>=0&&_17<_sj._Yc){var _n5=_sj._pj[i+(_17*w)];if((typeof(__3)=="number"&&typeof(_n5)=="number")){if(_kj>abs(__3-_n5)){_hj=i;
_ij=_17;_gj=true;return;}}else {if(_n5==__3){_hj=i;_ij=_17;_gj=true;return;}}}}}}}function ds_grid_value_disk_exists(_gg,_Q5,_R5,_Mj,__3){_5k(_gg,_Q5,_R5,_Mj,__3);return _gj;}function ds_grid_value_disk_x(_gg,_Q5,_R5,_Mj,__3){_5k(_gg,_Q5,_R5,_Mj,__3);return _hj;}function ds_grid_value_disk_y(_gg,_Q5,_R5,_Mj,__3){_5k(_gg,_Q5,_R5,_Mj,__3);return _ij;}function ds_grid_shuffle(_gg){var _sj=_tj._26(yyGetInt32(_gg));if(_sj==null||_sj==undefined){_55("Error: invalid ds_grid ID (ds_grid_shuffle)");return;}_sj._pj.sort(function(){
return 0.5-Math.random();});}function ds_grid_write(_gg){var _sj=_tj._26(yyGetInt32(_gg));if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_write)");return;}var width=_sj._Xc;var height=_sj._Yc;var _6k=buffer_create(16384,_7k,1);buffer_write(_6k,_8k,603);buffer_write(_6k,_8k,width);buffer_write(_6k,_8k,height);for(var x=0;x<=width-1;x++){for(y=0;y<=height-1;y++){var _re=_sj._pj[x+(y*width)];_9k(_6k,_re);}}var _ak=_bk(_6k);buffer_delete(_6k);return _ak;}function ds_grid_read(_gg,_ck){if(!_ck){_55("Error: no string provided (ds_grid_read)");
return false;}var _sj=_tj._26(yyGetInt32(_gg));if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_read)");return false;}if(_ck[0]=="{"){try{var _dk=JSON.parse(_ck);if((_dk!=null)&&(_dk!=undefined)&&(typeof(_dk.body)=="object")&&(typeof(_dk.width)=="number")&&(typeof(_dk.height)=="number")){_sj._Xc=_dk.width;_sj._Yc=_dk.height;_sj._pj=_dk.body;}}catch(_ek){_55("Error: reading ds_grid JSON");return false;}return true;}else {var _6k=_fk(_ck);if(_6k<0)return false;buffer_seek(_6k,_gk,0);var id=buffer_read(_6k,_hk);
var version;if(id==602){version=3;}else if(id==603){version=0;}else {_55("Error: unrecognised format - resave the grid to update/fix issues. (ds_grid_read)");return false;}var w=buffer_read(_6k,_hk);var h=buffer_read(_6k,_hk);_sj._Xc=w;_sj._Yc=h;_sj._pj=[];var _Y6=w*h;for(var i=0;i<_Y6;i++){_sj._pj[i]=0;}for(i=0;i<=w-1;i++){for(_17=0;_17<=h-1;_17++){var _re=_ik(_6k,version);_sj._pj[i+(_17*w)]=_re;}}buffer_delete(_6k);return true;}}function ds_grid_sort(_gg,_jk,_kk){_gg=yyGetInt32(_gg);_jk=yyGetInt32(_jk);_kk=yyGetBool(_kk);
var _sj=_tj._26(_gg);if(!_sj){_55("Error: invalid ds_grid ID (ds_grid_read)");return;}var _lk=[];for(var y=0;y<_sj._Yc;y++){_lk[y]=ds_grid_get(_gg,_jk,y);}var _mk=_kk?1:-1;_lk.sort(function(_G4,_F4){return yyCompareVal(_G4,_F4,g_GMLMathEpsilon)*_mk;});var _nk=[];var _ok=[];for(var y=0;y<_lk.length;y++){_ok[y]=false;}for(var y=0;y<_lk.length;y++){var _pk=_lk[y];for(var _17=0;_17<_lk.length;_17++){var _qk=_kk?_17:(_lk.length-1-_17);if(_ok[_qk]){continue;}var _rk=ds_grid_get(_gg,_jk,_qk);if(_rk==_pk){for(var x=0;
x<_sj._Xc;x++){_nk[x+(_sj._Xc*y)]=ds_grid_get(_gg,x,_qk);}_ok[_qk]=true;break;}}}_sj._pj=_nk;}function ds_list_create(){var _V6=new _sk();_V6._tk=true;return _uk._Df(_V6);}function ds_list_destroy(_gg){_gg=yyGetInt32(_gg);var _vk=_uk._26(_gg);if(_vk){_vk._Tf();_uk._uj(_gg);}}function ds_list_clear(_gg){var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){_Tg._Tf();return;}_55("Error: invalid ds_list ID (ds_list_clear)");}function ds_list_copy(_gg,_vj){_gg=yyGetInt32(_gg);var _wk=_uk._26(_gg);if(!_wk){_55("Error: invalid DEST ds_list ID (ds_list_copy)");
return;}var _xk=_uk._26(yyGetInt32(_vj));if(!_xk){_55("Error: invalid SOURCE ds_list ID (ds_list_copy)");return;}_wk._qj(_xk);_uk.Set(_gg,_wk);}function ds_list_size(_gg){var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg)return _Tg.length;return 0;}function ds_list_empty(_gg){var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){if(_Tg.length!==0)return false;else return true;}_55("Error: invalid ds_list ID (ds_list_empty)");return true;}function ds_list_add(){var _yk=arguments;var _zk=arguments.length;var _Tg=_uk._26(_yk[0]);if(!_Tg){
_55("Error: invalid ds_list ID (ds_list_add)");return;}for(var i=1;i<_zk;i++){_Tg._Df(_yk[i]);}return;}function _Ak(_gg,__3){return ds_list_add(yyGetInt32(_gg),new _Bk(_Ck,__3));}function _Dk(_gg,__3){return ds_list_add(yyGetInt32(_gg),new _Bk(_Ek,__3));}function ds_list_set(_gg,_74,__3){if(isNaN(_74))_55("Error: index must be a number");var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){_Tg._Fk(yyGetInt32(_74),__3);}else {_55("Error: invalid ds_list ID (ds_list_set)");}}function ds_list_set_pre(_gg,_74,__3){if(isNaN(_74))_55("Error: index must be a number");
var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){_Tg._Fk(yyGetInt32(_74),__3);}else {_55("Error: invalid ds_list ID (ds_list_set)");}return __3;}function ds_list_set_post(_gg,_74,__3){if(isNaN(_74))_55("Error: index must be a number");var _P4=__3;var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){_P4=_Tg._Fk(yyGetInt32(_74),__3);}else {_55("Error: invalid ds_list ID (ds_list_set)");}return _P4;}function ds_list_insert(_gg,_Gk,__3){if(isNaN(_Gk))_55("Error: index must be a number");var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){return _Tg._Hk(yyGetInt32(_Gk),
__3);}_55("Error: invalid ds_list ID (ds_list_insert)");return -1;}function _Ik(_gg,_Gk,__3){return ds_list_insert(yyGetInt32(_gg),yyGetInt32(_Gk),new _Bk(_Ck,__3));}function _Jk(_gg,_Gk,__3){return ds_list_insert(yyGetInt32(_gg),yyGetInt32(_Gk),new _Bk(_Ek,__3));}function ds_list_replace(_gg,_Gk,__3){if(isNaN(_Gk))_55("Error: index must be a number");var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){return _Tg.Set(yyGetInt32(_Gk),__3);}_55("Error: invalid ds_list ID (ds_list_replace)");return -1;}function ds_list_delete(_gg,
_Gk){if(isNaN(_Gk))_55("Error: index must be a number");var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){return _Tg._uj(yyGetInt32(_Gk));}}function ds_list_find_index(_gg,__3){var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){var _P4=-1;for(var _V6=0;_V6<_Tg._Kk.length;_V6++){var _G4=_Tg._Kk[_V6];if(((typeof(_G4)=="object")&&(_G4.Object==__3))||(_G4==__3)){_P4=_V6;break;}}return _P4;}_55("Error: invalid ds_list ID (ds_list_find_index)");return -1;}function ds_list_find_value(_gg,_Gk){if(isNaN(_Gk))_55("Error: index must be a number");
var _n5,_Lk=_Mk(_Gk),_Tg=_uk._26(_Mk(yyGetInt32(_gg)));if(_Tg){_n5=_Tg._Kk[_Lk];if(typeof(_n5)==="object"&&_n5.Object!==undefined){return _n5.Object;}else return _n5;}_55("Error: invalid ds_list ID (ds_list_find_value)");return undefined;}function ds_list_is_list(_gg,_Gk){if(isNaN(_Gk))_55("Error: index must be a number");var _n5,_Lk=_Mk(_Gk),_Tg=_uk._26(_Mk(yyGetInt32(_gg)));if(_Tg){_n5=_Tg._Kk[_Lk];if(typeof(_n5)==="object"&&_n5.Object!==undefined){return _n5._Nk==_Ek;}else return false;}_55("Error: invalid ds_list ID (ds_list_find_value)");
return undefined;}function ds_list_is_map(_gg,_Gk){if(isNaN(_Gk))_55("Error: index must be a number");var _n5,_Lk=_Mk(_Gk),_Tg=_uk._26(_Mk(yyGetInt32(_gg)));if(_Tg){_n5=_Tg._Kk[_Lk];if(typeof(_n5)==="object"&&_n5.Object!==undefined){return _n5._Nk==_Ck;}else return false;}_55("Error: invalid ds_list ID (ds_list_find_value)");return undefined;}function ds_list_sort(_gg,_Ok){var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){var _mk=yyGetBool(_Ok)?1:-1;_Tg._Kk.sort(function(_G4,_F4){return yyCompareVal(_G4,_F4,g_GMLMathEpsilon)*_mk;
});return 0;}_55("Error: invalid ds_list ID (ds_list_sort)");return 0;}function ds_list_shuffle(_gg){var _Tg=_uk._26(yyGetInt32(_gg));if(_Tg){_Tg._Pk();return 0;}_55("Error: invalid ds_list ID (ds_list_shuffle)");return 0;}function ds_list_write(_gg){_gg=yyGetInt32(_gg);var _Tg=_uk._26(_gg);if(!_Tg){_55("Error: invalid ds_list ID (ds_list_write)");return "";}var _0j=_Tg.length;var _6k=buffer_create(16384,_7k,1);buffer_write(_6k,_8k,303);buffer_write(_6k,_8k,_0j);for(var i=0;i<_0j;i++){var _re=ds_list_find_value(_gg,
i);_9k(_6k,_re);}var _ak=_bk(_6k);buffer_delete(_6k);return _ak;}function ds_list_read(_gg,_ck){if(_ck===undefined||_ck==""){return false;}_gg=yyGetInt32(_gg);var _Tg=_uk._26(_gg);if(!_Tg){_55("Error: invalid ds_list ID (ds_list_read)");return false;}if(_ck[0]=="{"){try{var _vk=JSON.parse(_ck);_Tg._Kk=_vk;_Tg.length=_vk.length;_Tg._E8=_vk.length;}catch(err){_55("Error: reading ds_list file.");return false;}}else {var _6k=_fk(_ck);if(_6k<0)return false;buffer_seek(_6k,_gk,0);var id=buffer_read(_6k,_hk);var version;
if(id==302){version=3;}else if(id==303){version=0;}else {_55("Error: unrecognised format - resave the list to update/fix issues. (ds_list_read)");return false;}var _0j=buffer_read(_6k,_hk);_Tg._Tf();for(var i=0;i<_0j;i++){var _re=_ik(_6k,version);ds_list_add(_gg,_re);}buffer_delete(_6k);}return true;}function ds_list_mark_as_map(_gg,_Gk){_gg=yyGetInt32(_gg);_Gk=yyGetInt32(_Gk);var _re=ds_list_find_value(_gg,_Gk);if(_re!=undefined){ds_list_replace(_gg,_Gk,new _Bk(_Ck,_re));}}function ds_list_mark_as_list(_gg,
_Gk){_gg=yyGetInt32(_gg);_Gk=yyGetInt32(_Gk);var _re=ds_list_find_value(_gg,_Gk);if(_re!=undefined){ds_list_replace(_gg,_Gk,new _Bk(_Ek,_re));}}var _Ck=1,_Ek=2;function _Qk(){}_Qk.prototype._gg=0;_Qk.prototype._Rk=function(){return(++_Qk.prototype._gg).toString();};/*@constructor */function _Bk(_ld,_Sk){this._Nk=_ld;this.Object=_Sk;}const hasOwnProperty=Object.prototype.hasOwnProperty;const _Tk=(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 _Uk=(_Qg)=>{if(typeof _Qg.getTime=='function'){return _Qg.getTime();}let _Vk=[];for(let _Zi in _Qg){if(hasOwnProperty.call(_Qg,_Zi)){_Vk.push(_Zi);}}_Vk.sort();let result=0;for(let _Zi in _Vk){result+=_Tk(_Zi+_Wk(_Qg[_Zi]));}return result;};const _Wk=(value)=>{const type=value==undefined?undefined:typeof value;return _Xk[type]?_Xk[type](value)+_Tk(type):0;};const _Xk={string:_Tk,_Yk:_Tk,_Zk:_Tk,__k:_Uk};function _0l(_Pc){var _P4=_Pc;switch(typeof(_Pc)){case "object":if(_Pc.id!==undefined){_P4=_Pc.id;
}else {_P4=_Wk(_Pc);}break;default :break;}return _P4;}function ds_map_create(){var _r7=new Map();var id=_s7._Df(_r7);return id;}function ds_map_destroy(_gg){_gg=yyGetInt32(_gg);var _r7=_s7._26(_gg);if(_r7){_1l(_r7);_s7._uj(_gg);}}function ds_map_clear(_gg){_gg=yyGetInt32(_gg);var _r7=_s7._26(_gg);if(_r7){_1l(_r7);}}function _1l(_2l){_2l.forEach(function(_n5,key,_2l){if(_n5!=null&&_n5.Object!==undefined)switch(_n5._Nk){case _Ck:ds_map_destroy(_n5.Object);break;case _Ek:ds_list_destroy(_n5.Object);break;}});_2l.clear();
if(_2l._3l)_2l._3l.clear();}function ds_map_copy(_4l,_vj){_4l=yyGetInt32(_4l);var _wk=_s7._26(_4l);var _xk=_s7._26(yyGetInt32(_vj));if(_wk&&_xk){_wk=new Map();_xk.forEach(function(_n5,key,_xk){_wk.set(key,_n5);});_s7.Set(_4l,_wk);}}function ds_map_size(_gg){var _r7=_s7._26(yyGetInt32(_gg));if(_r7){return _r7.size;}return 0;}function ds_map_empty(_gg){var _r7=_s7._26(yyGetInt32(_gg));if(_r7){return _r7.size==0;}return false;}function ds_map_replace(_gg,_5l,__3){_5l=_0l(_5l);var _r7=_s7._26(yyGetInt32(_gg));if(_r7)_r7.set(_5l,
__3);}function ds_map_replace_map(_gg,_5l,__3){ds_map_replace(_gg,_5l,new _Bk(_Ck,__3));}function ds_map_replace_list(_gg,_5l,__3){ds_map_replace(_gg,_5l,new _Bk(_Ek,__3));}function ds_map_delete(_gg,_5l){var _r7=_s7._26(yyGetInt32(_gg));if(_r7){_5l=_0l(_5l);_r7.delete(_5l);if(_r7._3l&&_r7._3l.has(_5l))_r7._3l.delete(_5l);}}function ds_map_exists(_gg,_5l){var _r7=_s7._26(yyGetInt32(_gg));if(_r7){_5l=_0l(_5l);return _r7.has(_5l);}return false;}function ds_map_add(_gg,_5l,__3){var _r7=_s7._26(yyGetInt32(_gg));
if(_r7){var _6l=_5l;_5l=_0l(_5l);if(_5l!==_6l){if(_r7._3l==undefined){_r7._3l=new Map();}_r7._3l.set(_5l,_6l);}_r7.set(_5l,__3)}}function ds_map_add_map(_gg,_5l,__3){ds_map_add(yyGetInt32(_gg),_5l,new _Bk(_Ck,__3));}function ds_map_add_list(_gg,_5l,__3){ds_map_add(yyGetInt32(_gg),_5l,new _Bk(_Ek,__3));}function ds_map_set(_gg,_5l,__3){var _r7=_s7._26(yyGetInt32(_gg));if(_r7){var _6l=_5l;_5l=_0l(_5l);if(_5l!==_6l){if(_r7._3l==undefined){_r7._3l=new Map();}_r7._3l.set(_5l,_6l);}_r7.set(_5l,__3);}}function ds_map_set_pre(_gg,
_5l,__3){var _r7=_s7._26(yyGetInt32(_gg));if(_r7){var _6l=_5l;_5l=_0l(_5l);if(_5l!==_6l){if(_r7._3l==undefined){_r7._3l=new Map();}_r7._3l.set(_5l,_6l);}_r7.set(_5l,__3);;}return __3;}function ds_map_set_post(_gg,_5l,__3){var _P4=__3;var _r7=_s7._26(yyGetInt32(_gg));if(_r7){var _6l=_5l;_5l=_0l(_5l);if(_5l!==_6l){if(_r7._3l==undefined){_r7._3l=new Map();}_r7._3l.set(_5l,_6l);}_P4=_r7.get(_5l);_r7.set(_5l,__3);}return _P4;}function ds_map_find_value(_gg,_5l){if(Number.isNaN(_5l))return undefined;if((_gg==undefined)||Number.isNaN(_gg)){
_55("Error: "+_gg+" is not a valid map reference");return undefined;}var _r7=_s7._26(yyGetInt32(_gg));if(_r7){_5l=_0l(_5l);var _7l=_r7.get(_5l);if(typeof(_7l)==="object"&&(_7l!=null)&&_7l.Object!==undefined){return _7l.Object;}else return _7l;}return undefined;}function ds_map_values_to_array(_gg,_8l){if((_gg==undefined)||Number.isNaN(_gg)){_55("Error: "+_gg+" is not a valid map reference");return undefined;}var _P4;if(arguments.length>=2){_P4=_8l;}else {_P4=[];}var _r7=_s7._26(yyGetInt32(_gg));if(_r7){for(const [_G4,
_7l] of _r7){if(typeof(_7l)==="object"&&(_7l!=null)&&_7l.Object!==undefined){_P4.push(_7l.Object);}else _P4.push(_7l);}}return _P4;}function ds_map_keys_to_array(_gg,_8l){if((_gg==undefined)||Number.isNaN(_gg)){_55("Error: "+_gg+" is not a valid map reference");return undefined;}var _P4;if(arguments.length>=2){_P4=_8l;}else {_P4=[];}var _r7=_s7._26(yyGetInt32(_gg));if(_r7){for(const [key,_G4] of _r7){var _n5=key;if(_r7._3l&&_r7._3l.has(key))_n5=_r7._3l.get(key);_P4.push(_n5);}}return _P4;}function ds_map_is_map(_gg,
_5l){if(Number.isNaN(_5l))return undefined;if((_gg==undefined)||Number.isNaN(_gg)){_55("Error: "+_gg+" is not a valid map reference");return undefined;}var _r7=_s7._26(yyGetInt32(_gg));if(_r7){_5l=_0l(_5l);var _7l=_r7.get(_5l);if(typeof(_7l)==="object"&&(_7l!=null)&&_7l.Object!==undefined){return _7l._Nk===_Ck;}else return false;}return undefined;}function ds_map_is_list(_gg,_5l){if(Number.isNaN(_5l))return undefined;if((_gg==undefined)||Number.isNaN(_gg)){_55("Error: "+_gg+" is not a valid map reference");
return undefined;}var _r7=_s7._26(yyGetInt32(_gg));if(_r7){_5l=_0l(_5l);var _7l=_r7.get(_5l);if(typeof(_7l)==="object"&&(_7l!=null)&&_7l.Object!==undefined){return _7l._Nk===_Ek;}else return false;}return undefined;}function ds_map_find_previous(_gg,_5l){_5l=_0l(_5l);var _9l=undefined;var _r7=_s7._26(yyGetInt32(_gg));for(const [key,_al] of _r7){if(key==_5l){return _9l;}_9l=key;}return undefined;}function ds_map_find_next(_gg,_5l){_5l=_0l(_5l);var _bl=false;var _r7=_s7._26(yyGetInt32(_gg));for(const [key,_al] of _r7){
if(_bl){return key;}if(key==_5l){_bl=true;}}return undefined;}function ds_map_find_first(_gg){var _r7=_s7._26(yyGetInt32(_gg));for(const [key,_al] of _r7){return key;}return undefined;}function ds_map_find_last(_gg){var _9l=undefined;var _r7=_s7._26(yyGetInt32(_gg));for(const [key,_al] of _r7){_9l=key;}return _9l;}function ds_map_write(_gg){var _r7=_s7._26(yyGetInt32(_gg));if(_r7==null){_55("Error: invalid ds_map ID (ds_map_write)");return "";}var _6k=buffer_create(16384,_7k,1);buffer_write(_6k,_8k,403);var _cl=_r7.size;
buffer_write(_6k,_8k,_cl);for(const [key,_re] of _r7){var _dl=key;if(_r7._3l&&_r7._3l.has(key))_dl=_r7._3l.get(key);_9k(_6k,_dl);var _n5=_re;if(typeof(_re)==="object"&&(_re!=null)&&_re.Object!==undefined)_n5=_re.Object;_9k(_6k,_n5);}var _ak=_bk(_6k);buffer_delete(_6k);return _ak;}function ds_map_read(_gg,_ck){_gg=yyGetInt32(_gg);var _r7=_s7._26(_gg);if(_r7==null){_55("Error: invalid ds_map ID (ds_map_read)");return false;}if(_ck[0]=="{"){try{if(null!=_ck){_r7=JSON.parse(_ck);_s7.Set(_gg,_r7);}else {_s7.Set(_gg,
'');}}catch(_ek){_55("Error: reading ds_map JSON.");return false;}}else {ds_map_clear(_gg);var _6k=_fk(_ck);if(_6k<0)return false;buffer_seek(_6k,_gk,0);var id=buffer_read(_6k,_hk);var version;if(id==402){version=3;}else if(id==403){version=0;}else {_55("Error: unrecognised format - resave the map to update/fix issues. (ds_map_read)");return false;}var _E8=buffer_read(_6k,_hk);while(_E8>0){var key=_ik(_6k,version);var value=_ik(_6k,version);ds_map_add(_gg,key,value);_E8--;}buffer_delete(_6k);}return true;}function ds_map_secure_save(_gg,
_el){if(_el!=null){var _fl=_gl();var json=json_encode(yyGetInt32(_gg));var _hl=base64_encode(json);_il(yyGetString(_el),_fl+_hl);}}function ds_map_secure_load_buffer(_jl){return -1;}function ds_map_secure_save_buffer(_p7,_jl){return -1;}function ds_map_secure_load(_el){var _kl=-1;try{var _ll=_gl();var data=_ml(yyGetString(_el),true);var _nl=data.substring(0,_ll.length);var _hl=data.substring(_ll.length,data.length);if(_nl==_ll){var json=base64_decode(_hl);return json_decode(json);}}catch(e){debug(e.message);}return -1;
}function _ol(){var id=0xF35065da3bb79cac7;return id.toString();}function _gl(){var _fl=_ol();var _pl=sha1_string_utf8(_fl.split("").reverse().join(""));return sha1_string_utf8(_pl);}/*@constructor */function _ql(_rl,_Sk){this.sub=_rl;this.data=_Sk;}/*@constructor */function _sl(_rl,_Sk){this.depth=_rl;this._tl=_Sk;}function ds_priority_create(){var _Tg=new _ul();return _vl._Df(_Tg);}function ds_priority_destroy(_gg){_vl._uj(yyGetInt32(_gg));}function ds_priority_clear(_gg){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){
_55("Error: invalid dest priority queue ds_priority_clear()");return;}_wl._Tf();}function ds_priority_copy(_gg,_vj){_gg=yyGetInt32(_gg);var _xl=_vl._26(_gg);if(_xl==null||_xl==undefined){_55("Error: invalid dest priority queue ds_priority_copy()");return;}var _yl=_vl._26(yyGetInt32(_vj));if(_yl==null||_yl==undefined){_55("Error: invalid source priority queue ds_priority_copy()");return;}_xl._qj(_yl);_vl.Set(_gg,_xl);}function ds_priority_size(_gg){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){
_55("Error: invalid priority queue ds_priority_size()");return 0;}return _wl.length;}function ds_priority_empty(_gg){if(ds_priority_size(yyGetInt32(_gg))==0)return true;else return false;}function ds_priority_add(_gg,__3,_zl){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){_55("Error: invalid priority queue ds_priority_add()");return;}var _Al=new _sl(_zl,__3);_wl._Df(_Al);}function ds_priority_change_priority(_gg,__3,_zl){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){_55("Error: invalid priority queue ds_priority_change_priority()");
return;}var i=0;while(i<_wl.length){var _Bl=_wl._26(i);if(_Bl!=null){var _n5=_Bl._tl;if(typeof(__3)=="number"&&typeof(_n5)=="number"){if(_kj>abs(_n5-__3)){_wl._Cl(_Bl);_Bl.depth=_zl;_wl._Df(_Bl);return;}}else {if(_n5==__3){_wl._Cl(_Bl);_Bl.depth=_zl;_wl._Df(_Bl);return;}}}i++;}}function ds_priority_find_priority(_gg,__3){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){_55("Error: invalid priority queue ds_priority_find_priority()");return undefined;}var i=0;while(i<_wl.length){var _Bl=_wl._26(i);
if(_Bl!=null){var _n5=_Bl._tl;if(((typeof(__3)=="number")||(__3 instanceof Long))&&((typeof(_n5)=="number")||(_n5 instanceof Long))){var _Dl=yyGetReal(__3);var _El=yyGetReal(_n5);if(_kj>abs(_El-_Dl))return _Bl.depth;}else {if(_n5==__3)return _Bl.depth;}}i++;}return undefined;}function ds_priority_delete_value(_gg,__3){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){_55("Error: invalid priority queue ds_priority_delete_value()");return;}var i=0;while(i<_wl.length){var _Bl=_wl._26(i);if(_Bl!=null){
var _n5=_Bl._tl;if(typeof(__3)=="number"&&typeof(_n5)=="number"){if(_kj>abs(_n5-__3)){_wl._Cl(_Bl);return;}}else {if(_n5==__3){_wl._Cl(_Bl);}}}i++;}return;}function ds_priority_delete_min(_gg){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){_55("Error: invalid priority queue ds_priority_delete_min()");return;}if(_wl.length<=0)return 0;var _Bl=_wl._26(0);_wl._Cl(_Bl);return _Bl._tl;}function ds_priority_find_min(_gg){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){_55("Error: invalid priority queue ds_priority_find_min()");
return undefined;}if(_wl.length<=0)return undefined;var _Bl=_wl._26(0);return _Bl._tl;}function ds_priority_delete_max(_gg){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){_55("Error: invalid priority queue ds_priority_delete_max()");return;}if(_wl.length<=0)return 0;var _Bl=_wl._26(_wl.length-1);_wl._Cl(_Bl);return _Bl._tl;}function ds_priority_find_max(_gg){var _wl=_vl._26(yyGetInt32(_gg));if(_wl==null||_wl==undefined){_55("Error: invalid priority queue ds_priority_find_max()");return undefined;
}if(_wl.length<=0)return undefined;var _Bl=_wl._26(_wl.length-1);return _Bl._tl;}function ds_priority_write(_gg){var _Tg=_vl._26(yyGetInt32(_gg));if(_Tg==null){_55("Error: invalid ds_priority ID (ds_priority_write)");return "";}var _Fl=[];var _re=[];for(var index=0;index<_Tg._Kk.length;index++){var _Gl=_Tg._Kk[index];if(_Gl){_Fl.push(_Gl.depth);_re.push(_Gl._tl);}}var _0j=_Tg._Kk.length;var _6k=buffer_create(16384,_7k,1);buffer_write(_6k,_8k,503);buffer_write(_6k,_8k,_0j);for(var i=0;i<_0j;i++){_9k(_6k,_Fl[i]);
}for(var i=0;i<_0j;i++){_9k(_6k,_re[i]);}var _ak=_bk(_6k);buffer_delete(_6k);return _ak;}function ds_priority_read(_gg,_ck){_gg=yyGetInt32(_gg);var _Hl=_vl._26(_gg);if(_Hl==null){_55("Error: invalid ds_priority ID (ds_priority_read)");return false;}if(_ck[0]=="{"){try{var _Tg=JSON.parse(_ck);_Hl._Tf();for(var index=0;index<_Tg.length;index++){var _vk=_Tg[index];ds_priority_add(_gg,_vk.data,_vk.sub);}}catch(_ek){_55("Error: reading ds_priority JSON");return false;}}else {var _6k=_fk(_ck);if(_6k<0)return false;
buffer_seek(_6k,_gk,0);var id=buffer_read(_6k,_hk);var version;if(id==502){version=3;}else if(id==503){version=0;}else {_55("Error: unrecognised format - resave the priority list to update/fix issues. (ds_priority_read)");return false;}var _0j=buffer_read(_6k,_hk);ds_priority_clear(_gg);var _Fl=[];var _re=[];for(var i=0;i<_0j;i++){_Fl[i]=_ik(_6k,version);}for(var i=0;i<_0j;i++){_re[i]=_ik(_6k,version);}for(var i=0;i<_0j;i++){ds_priority_add(_gg,_re[i],_Fl[i]);}buffer_delete(_6k);}return true;}function ds_queue_create(){
var _ak=[];return _Il._Df(_ak);}function ds_queue_destroy(_gg){_Il._uj(yyGetInt32(_gg));}function ds_queue_clear(_gg){_gg=yyGetInt32(_gg);var _ak=_Il._26(_gg);if(!_ak){_55("Error: invalid ds_queue ID (ds_queue_clear)");return;}_ak=[];_Il.Set(_gg,_ak);}function ds_queue_copy(_4l,_vj){_4l=yyGetInt32(_4l);var _wk=_Il._26(_4l);if(_wk==null){_55("Error: invalid DEST ds_queue ID (ds_queue_copy)");return;}var _xk=_Il._26(yyGetInt32(_vj));if(_xk==null){_55("Error: invalid SOURCE ds_queue ID (ds_queue_copy)");return;
}_wk=_xk.slice();_Il.Set(_4l,_wk);}function ds_queue_size(_gg){var _ak=_Il._26(yyGetInt32(_gg));if(_ak==null){_55("Error: invalid ds_queue ID (ds_queue_size)");return 0;}return _ak.length;}function ds_queue_empty(_gg){return(ds_queue_size(yyGetInt32(_gg))==0);}function ds_queue_enqueue(){var _yk=arguments;var _zk=arguments.length;var _Hl=_Il._26(_yk[0]);if(!_Hl){_55("Error: invalid ds_queue ID (ds_queue_enqueue)");return;}for(var i=1;i<_zk;i++){_Hl.push(_yk[i]);}return;}function ds_queue_dequeue(_gg){var _ak=_Il._26(yyGetInt32(_gg));
if(_ak==null){_55("Error: invalid ds_queue ID (ds_queue_dequeue)");return 0;}return _ak.shift();}function ds_queue_head(_gg){var _ak=_Il._26(yyGetInt32(_gg));if(_ak==null){_55("Error: invalid ds_queue ID (ds_queue_head)");return 0;}return _ak[0];}function ds_queue_tail(_gg){var _ak=_Il._26(yyGetInt32(_gg));if(_ak==null){_55("Error: invalid ds_queue ID (ds_queue_tail)");return 0;}return _ak[_ak.length-1];}function ds_queue_write(_gg){var _Hl=_Il._26(yyGetInt32(_gg));if(_Hl==null){_55("Error: invalid ds_queue ID (ds_queue_write)");
return "";}var _0j=_Hl.length;var _6k=buffer_create(16384,_7k,1);buffer_write(_6k,_8k,203);buffer_write(_6k,_8k,_0j);buffer_write(_6k,_8k,0);buffer_write(_6k,_8k,_0j);for(var i=0;i<_0j;i++){var _re=_Hl[i];_9k(_6k,_re);}var _ak=_bk(_6k);buffer_delete(_6k);return _ak;}function ds_queue_read(_gg,_ck){_gg=yyGetInt32(_gg);var _Hl=_Il._26(_gg);if(_Hl==null){_55("Error: invalid ds_queue ID (ds_queue_read)");return false;}if(_ck=="{"){try{_Hl=JSON.parse(_ck);_Il.Set(_gg,_Hl);}catch(_ek){_55("Error: reading ds_queue JSON.");
return false;}}else {var _6k=_fk(_ck);if(_6k<0)return false;buffer_seek(_6k,_gk,0);var id=buffer_read(_6k,_hk);var version;if(id==202){version=3;}else if(id==203){version=0;}else {_55("Error: unrecognised format - resave the queue to update/fix issues. (ds_queue_read)");return false;}var last=buffer_read(_6k,_hk);var first=buffer_read(_6k,_hk);var _0j=buffer_read(_6k,_hk);_Hl=[];_Il.Set(_gg,_Hl);for(var i=0;i<last;i++){var _re=_ik(_6k,version);if(first<=0){_Hl.push(_re);}first--;}buffer_delete(_6k);}return true;
}function ds_stack_create(){var _ak=[];return _Jl._Df(_ak);}function ds_stack_destroy(_gg){_Jl._uj(yyGetInt32(_gg));}function ds_stack_clear(_gg){_gg=yyGetInt32(_gg);var _ak=_Jl._26(_gg);if(_ak==null){_55("Error: invalid ds_stack ID (ds_stack_clear)");return;}_ak=[];_Jl.Set(_gg,_ak);}function ds_stack_copy(_gg,_vj){_gg=yyGetInt32(_gg);var _wk=_Jl._26(_gg);if(_wk==null){_55("Error: invalid DEST ds_stack ID (ds_stack_clear)");return;}var _xk=_Jl._26(yyGetInt32(_vj));if(_xk==null){_55("Error: invalid SOURCE ds_stack ID (ds_stack_clear)");
return;}_wk=_xk.slice();_Jl.Set(_gg,_wk);}function ds_stack_size(_gg){var _ak=_Jl._26(yyGetInt32(_gg));if(_ak==null){_55("Error: invalid ds_stack ID (ds_stack_size)");return 0;}return _ak.length;}function ds_stack_empty(_gg){var _ak=_Jl._26(yyGetInt32(_gg));if(_ak==null){_55("Error: invalid ds_stack ID (ds_stack_empty)");return true;}if(_ak.length==0)return true;else return false;}function ds_stack_push(_gg,__3){var _yk=arguments;var _zk=arguments.length;var stack=_Jl._26(yyGetInt32(_gg));if(!stack){_55("Error: invalid ds_stack ID (ds_stack_push)");
return;}for(var i=1;i<_zk;i++){stack.push(_yk[i]);}}function ds_stack_pop(_gg){var _ak=_Jl._26(yyGetInt32(_gg));if(_ak==null){_55("Error: invalid ds_stack ID (ds_stack_pop)");return undefined;}return _ak.pop();}function ds_stack_top(_gg){var _ak=_Jl._26(yyGetInt32(_gg));if(_ak==null){_55("Error: invalid ds_stack ID (ds_stack_pop)");return 0;}return _ak[_ak.length-1];}function ds_stack_write(_gg){var _ak=_Jl._26(yyGetInt32(_gg));if(_ak==null){_55("Error: invalid ds_stack ID (ds_stack_write)");return;}var _0j=_ak.length;
var _6k=buffer_create(16384,_7k,1);buffer_write(_6k,_8k,103);buffer_write(_6k,_8k,_0j);for(var i=0;i<_0j;i++){var _re=_ak[i];_9k(_6k,_re);}var _Kl=_bk(_6k);buffer_delete(_6k);return _Kl;}function ds_stack_read(_gg,_ck){_gg=yyGetInt32(_gg);var _ak=_Jl._26(_gg);if(_ak==null){_55("Error: invalid ds_stack ID (ds_stack_read)");return false;}if(_ck[0]=="{"){try{_ak=JSON.parse(_ck);_Jl.Set(_gg,_ak);}catch(_ek){_55("Error: reading ds_stack JSON.");return false;}}else {var _6k=_fk(_ck);if(_6k<0)return false;buffer_seek(_6k,
_gk,0);var id=buffer_read(_6k,_hk);var version;if(id==102){version=3;}else if(id==103){version=0;}else {_55("Error: unrecognised format - resave the stack to update/fix issues. (ds_stack_read)");return false;}var _0j=buffer_read(_6k,_hk);_ak=[];_Jl.Set(_gg,_ak);for(var i=0;i<_0j;i++){var _re=_ik(_6k,version);_ak.push(_re);}buffer_delete(_6k);}return true;}var _Ll=false;var _Ml='Trying to stop non-existing sound.',_Nl='Trying to draw a non-existing sprite.',_Ol='Trying to draw a non-existing background.',_Pl='Cannot compare arguments.',
_Ql='Trying to replace non-existing resource.',_Rl='File does not exist.',_Sl='The particle emitter must first be created.';var _Tl=-1,_Ul=[],_Vl=[];function _Wl(){_Fb("action_execute_script()");}function _Xl(){_Fb("action_show_info()");}function _Yl(){_Fb("action_show_video()");}function _Zl(){}function __l(){_Zl();}function _0m(){_Zl();}function _1m(){_Zl();}function _2m(){_Zl();}function _3m(){_Zl();}function _4m(){_Zl();}function _5m(_6m){return show_question(_6m);}function _7m(_8m){_Ll=(_8m<0.5)?false:true;
}function _9m(_06,_am){window_set_cursor(_06);_bm=_06;if(!_am){_cm(false);}else {_cm(true);}}function _dm(_em,_06,_fm){var _gm=_Mk(_06);if(sprite_exists(_gm)){_em.sprite_index=_gm;}if(_fm>0){_em.image_xscale=_fm;_em.image_yscale=_fm;}}function _hm(_em,_im,__3){if(true==_Ll){_em._jm(_im,__3);}else {_em.direction=_im;_em.speed=__3;}}function _km(_em,_lm){if(_Ll){_em.hspeed=_em.hspeed+_lm;}else {_em.hspeed=_lm;}}function _mm(_em,_lm){if(_Ll){_em.vspeed=_em.vspeed+_lm;}else {_em.vspeed=_lm;}}function _nm(_em,_om,
_pm){if(true==_Ll){_em.gravity_direction+=_om;_em.gravity+=_pm;}else {_em.gravity_direction=_om;_em.gravity=_pm;}}function _qm(_em,_rm){if(true==_Ll){_em.friction+=_rm;}else {_em.friction=_rm;}}function _sm(_em,direction,size){var _F4=false;var _tm=0;if(direction.length!=9){debug("Incorrect argument for action_move()");return;}for(_tm=0;_tm<9;_tm++){_F4=((true==_F4)||(direction[_tm]=='1'))?true:false;}if(true!=_F4){return;}if(true==_Ll){_em.speed=_em.speed+size;}else {_em.speed=size;}do {_tm=floor(_um(9));
}while(!(direction[_tm]=='1'));switch(_tm){case 0:_em.direction=225;break;case 1:_em.direction=270;break;case 2:_em.direction=315;break;case 3:_em.direction=180;break;case 4:{_em.direction=0;_em.speed=0;break;}case 5:_em.direction=0;break;case 6:_em.direction=135;break;case 7:_em.direction=90;break;case 8:_em.direction=45;break;}}function _vm(_em,_Q5,_R5,_lm){if(true==_Ll){move_towards_point(_em,_Q5+_em.x,_R5+_em.y,_lm);}else {move_towards_point(_em,_Q5,_R5,_lm);}}function _wm(_em,_Q5,_R5){if(true==_Ll){_em._Ed(_Q5+_em.x,
_R5+_em.y);}else {_em._Ed(_Q5,_R5);}}function _xm(_em){_em._Ed(_em.xstart,_em.ystart);}function _ym(_em,_zm,_Am){move_random(_em,_zm,_Am);}function _Bm(_em,_Cm,_Dm){move_snap(_em,_Cm,_Dm);}function _Em(_em,_Fm){var wrap=_Mk(_Fm);_em.wrap((wrap==0)||(wrap==2)?true:false,(wrap==1)||(wrap==2)?true:false);}function _Gm(_em){_em.hspeed=-_em.hspeed;}function _Hm(_em){_em.vspeed=-_em.vspeed;}function _Im(_em,_im,_Jm,_Km){_Lm(_em,_im,_Jm,_Km);}function _Mm(_em,_Nm,_Km){_Om(_em,(_Nm>=0.5)?true:false,(_Km==1)?true:false);
}function _Pm(_em){instance_destroy(_em);}function _Qm(_em,_Rm,_Q5,_R5){var _Sm=_Mk(_Rm);if(true!=object_exists(_Sm)){debug("Creating existence for non-existent object: "+_Sm.toString());return;}var _Tm=null;if(true==_Ll){_Tm=_S3._Um(_Q5+_em.x,_R5+_em.y,_Sm);}else {_Tm=_S3._Um(_Q5,_R5,_Sm);}_Tm._b6(_Vm,0,_Tm,_Tm);_Tm._b6(_Wm,0,_Tm,_Tm);_Tm._Xm=true;}function _Ym(_em,_Rm,_Q5,_R5,_lm,_im){var _Sm=_Mk(_Rm);if(true!=object_exists(_Sm)){debug("Creating instance for non-existent object: "+_Sm);return;}var _Tm=null;
if(true==_Ll){_Tm=_S3._Um(_Q5+_em.x,_R5+_em.y,_Sm);}else {_Tm=_S3._Um(_Q5,_R5,_Sm);}_Tm.speed=_lm;_Tm.direction=_im;_Tm._b6(_Vm,0,_Tm,_Tm);_Tm._b6(_Wm,0,_Tm,_Tm);_Tm._Xm=true;}function _Zm(_em,__m,_0n,_1n,_2n,_Q5,_R5){if(!object_exists(__m|0)&&!object_exists(_0n|0)&&!object_exists(_1n|0)&&!object_exists(_2n|0)){return;}while(true){var _I6=~~_um(4);var id=arguments[_I6+1]|0;if(!object_exists(id)){continue;}var _Tm;if(true==_Ll){_Tm=_S3._Um(_Q5+_em.x,_R5+_em.y,id);}else {_Tm=_S3._Um(_Q5,_R5,id);}_Tm._b6(_Vm,
0,_Tm,_Tm);_Tm._b6(_Wm,0,_Tm,_Tm);_Tm._Xm=true;return;}}function _3n(_em,_06,_4n,_5n){var _gm=_Mk(_06);if(sprite_exists(_gm)){_em.sprite_index=_gm;}if(_4n>=0){_em.image_index=_4n;}_em.image_speed=_5n;}function _6n(_em,_0d,_A9){_em.image_blend=_Mk(_0d);_em.image_alpha=_A9;}var _7n=_6n;function _8n(_9n,_c4){if(_qg==_rg){var _an=_Mk(_9n);audio_play_sound(_an,1,_c4>=0.5?true:false);}else {var _an=_Mk(_9n);if(_c4>=0.5){_bn._cn(_an);}_bn._dn(_an);}}function _en(_em,_j6,_fn){var alarm=_Mk(_fn);var time=_Mk(_j6);if(!_Ll||(_em.get_timer(alarm)<0)){
_em._gn(alarm,time);}else {_em._gn(alarm,_em.get_timer(alarm)+time);}}function _hn(){game_end();}function _in(){game_restart();}function _jn(_6m){var _kn;if(_6m<=1){_kn=1;}else {_kn=(_um(_Mk(1000*_6m))<=1000)?1:0;}return _kn;}function _ln(){var _D4=0;if(typeof(arguments[0])!=typeof(arguments[1])){if((typeof(arguments[0]=="boolean")&&(typeof(arguments[1])=="number"))){_D4=(arguments[0]==true)?(1-arguments[1]):(0-arguments[1]);}else if((typeof(arguments[1]=="boolean")&&(typeof(arguments[0])=="number"))){_D4=(arguments[1]==true)?(arguments[0]-1):(arguments[0]-0);
}else {debug(_Pl);return;}}else {if(typeof(arguments[0])=="string"){_D4=(arguments[0]==arguments[1])?0:1;}else {_D4=arguments[0]-arguments[1];}}var result;if(_Mk(arguments[2])==1){result=(_D4<0)?1:0;}else if(_Mk(arguments[2])==2){result=(_D4>0)?1:0;}else if(_Mk(arguments[2])==3){result=(_D4<=0)?1:0;}else if(_Mk(arguments[2])==4){result=(_D4>=0)?1:0;}else {result=(_D4==0)?1:0;}return result;}function _mn(_em,_nn,_Q5,_R5){var _Kl="";if(typeof(arguments[0])=="number"){if(_nn==_Mk(_nn)){_Kl=(_Mk(_nn)|0).toString();
}else {_Kl=_nn.toFixed(2).toString();}}else {_Kl=_nn.toString();}if(_Ll){draw_text(_Q5+_em.x,_R5+_em.y,_Kl);}else {draw_text(_Q5,_R5,_Kl);}}function _on(_pn){if(_Ll){g_pBuiltIn.score+=_Mk(_pn);}else {g_pBuiltIn.score=_Mk(_pn);}}function _qn(){var result;if(_Mk(arguments[1])==1){result=(g_pBuiltIn.score<arguments[0])?1:0;}else if(_Mk(arguments[1])==2){result=(g_pBuiltIn.score>arguments[0])?1:0;}else {result=(g_pBuiltIn.score==arguments[0])?1:0;}return result;}function _rn(_em,_Q5,_R5,_sn){var _tn="";if(_sn){
_tn=_sn;}var score=_tn+g_pBuiltIn.score.toString();if(_Ll){draw_text(_Q5+_em.x,_R5+_em.y,score);}else {draw_text(_Q5,_R5,score);}}function _un(_vn){var _wn=g_pBuiltIn.lives;if(true==_Ll){g_pBuiltIn.lives+=_Mk(_vn);}else {g_pBuiltIn.lives=_Mk(_vn);}if((_wn>0)&&(g_pBuiltIn.lives<=0)){_xn._b6(_yn,0);}}function _zn(){var result;if(_Mk(arguments[1])==1){result=(g_pBuiltIn.lives<arguments[0])?1:0;}else if(_Mk(arguments[1])==2){result=(g_pBuiltIn.lives>arguments[0])?1:0;}else {result=(g_pBuiltIn.lives==arguments[0])?1:0;
}return result;}function _An(_em,_Q5,_R5,_Bn){var _Cn=_Bn;if(!_Cn){_Cn="";}var lives=_Cn+g_pBuiltIn.lives.toString();if(_Ll){draw_text(_Q5+_em.x,_R5+_em.y,lives);}else {draw_text(_Q5,_R5,lives);}}function _Dn(_em,_Q5,_R5,_06){if(sprite_exists(_Mk(_06))){var _En=_16._26(_Mk(_06));var w=_En.width;for(var i=0;i<g_pBuiltIn.lives;i++){if(_Ll){_En._a9(0,_Q5+_em.x+(i*w),_R5+_em.y,1,1,0,_Fn,1);}else {_En._a9(0,_Q5+(i*w),_R5,1,1,0,_Fn,1);}}}}function _Gn(_em,_Hn){var _In=0.0;_In=g_pBuiltIn.health;if(true==_Ll){g_pBuiltIn.health+=_Hn;
}else {g_pBuiltIn.health=_Hn;}if((_In>0)&&(g_pBuiltIn.health<=0)){_xn._b6(_Jn,0);}}function _Kn(_em,_Ln,_Mn){var result;_Mn=~~_Mn;if(_Mn==1){result=(g_pBuiltIn.health<_Ln)?1:0;}else if(_Mn==2){result=(g_pBuiltIn.health>_Ln)?1:0;}else {result=(g_pBuiltIn.health==_Ln)?1:0;}return result;}function _Nn(_On,_Pn,_Qn,_Rn,_Sn,_Tn){g_pBuiltIn.show_score=_Mk(_On)==1?true:false;g_pBuiltIn.caption_score=_Pn;g_pBuiltIn.show_lives=_Mk(_Qn)==1?true:false;g_pBuiltIn.caption_lives=_Rn;g_pBuiltIn.show_health=_Mk(_Sn)==1?true:false;
g_pBuiltIn.caption_health=_Tn;}function _Un(_em,_06,_Q5,_R5,_4n){if(!sprite_exists(_Mk(_06))){debug(_Nl);return;}var _Vn;if(_4n<0){_Vn=_em.image_index;}else {_Vn=Math.floor(_4n);}var _En=_16._26(_Mk(_06));if(_Ll){_En._a9(_Vn,_Q5+_em.x,_R5+_em.y,1,1,0,_Fn,1);}else {_En._a9(_Vn,_Q5,_R5,1,1,0,_Fn,1);}}function _Wn(_em,_Xn,_Q5,_R5,_Yn){_Fb("action_draw_background()");}function _Zn(_em,__n,_Q5,_R5){if(_Ll){draw_text(_Q5+_em.x,_R5+_em.y,__n);}else {draw_text(_Q5,_R5,__n);}}function _0o(_em,_1o,_Q5,_R5,_2o,_3o,
_X4){if(_Ll){draw_text_transformed(_Q5+_em.x,_R5+_em.y,_1o,_2o,_3o,_X4);}else {draw_text_transformed(_Q5,_R5,_1o,_2o,_3o,_X4);}}function _4o(_em,_Q5,_R5,_D6,_E6,_5o){if(_Ll){draw_rectangle(_Q5+_em.x,_R5+_em.y,_D6+_em.x,_E6+_em.y,(_5o>=0.5)?true:false);}else {draw_rectangle(_Q5,_R5,_D6,_E6,(_5o>=0.5)?true:false);}}function _6o(_em,_Q5,_R5,_D6,_E6){if(_Ll){draw_line(_Q5+_em.x,_R5+_em.y,_D6+_em.x,_E6+_em.y);}else {draw_line(_Q5,_R5,_D6,_E6);}}function _7o(_0d){draw_set_color(_0d);}var _8o=_7o;function _9o(_ao,
_bo){draw_set_font(_ao);draw_set_halign(_bo);}function _co(_em,_Q5,_R5,_D6,_E6,_0d,_do){var _eo=0;var _fo=0;var _go=0;var _ho=0;switch(_Mk(_0d)){case 0:_eo=_io;break;case 1:_eo=_io;break;case 2:_eo=_jo;break;case 3:_eo=_ko;break;case 4:_eo=_Fn;break;case 5:_eo=_lo;break;case 6:_eo=_mo;break;case 7:_eo=_no;break;case 8:_eo=_oo;break;case 9:_eo=_po;break;case 10:_eo=_qo;break;case 11:_eo=_ro;break;case 12:_eo=_so;break;case 13:_eo=_to;break;case 14:_eo=_uo;break;case 15:_eo=_vo;break;case 16:_eo=_wo;break;}switch(_Mk(_do)){
case 0:{_fo=_ro;_go=_to;_ho=_so;}break;case 1:{_fo=_io;_go=_jo;_ho=_Fn;}break;case 2:_fo=_io;break;case 3:_fo=_jo;break;case 4:_fo=_ko;break;case 5:_fo=_Fn;break;case 6:_fo=_lo;break;case 7:_fo=_mo;break;case 8:_fo=_no;break;case 9:_fo=_oo;break;case 10:_fo=_po;break;case 11:_fo=_qo;break;case 12:_fo=_ro;break;case 13:_fo=_so;break;case 14:_fo=_to;break;case 15:_fo=_uo;break;case 16:_fo=_vo;break;case 17:_fo=_wo;break;}if(_Mk(_do)>1){_go=_fo;_ho=_fo;}if(_Ll){_xo(_Q5+_em.x,_R5+_em.y,_D6+_em.x,_E6+_em.y,g_pBuiltIn.health,
_eo,_fo,_go,_ho,0,(_0d>=0.5)?true:false,true);}else {_xo(_Q5,_R5,_D6,_E6,g_pBuiltIn.health,_eo,_fo,_go,_ho,0,(_0d>=0.5)?true:false,true);}}function _yo(_zo,_Ao){room_goto(_Mk(_zo));}function _Bo(){room_restart();}function _Co(){room_goto_previous();}function _Do(){room_goto_next();}function _Eo(){return((g_pBuiltIn.get_current_room()!=g_pBuiltIn.room_first)?1:0);}function _Fo(){return((g_pBuiltIn.get_current_room()!=g_pBuiltIn.room_last)?1:0);}function _Go(_rl){if(_Tl<0){_Tl=_Ho();}_Io(_Tl);_Jo(_Tl,_Mk(_rl));
_Ul=new Array(16);_Vl=new Array(16);for(var i=0;i<16;i++){_Ul[i]=-1;_Vl[i]=-1;}}function _Ko(){if(_Tl>=0){_Lo(_Tl);}_Tl=-1;}function _Mo(){if(_Tl>=0){_No(_Tl);}}function _Oo(_ld,_Po,_Qo,_Ro,_So,_To){var type=_Mk(_ld);var shape=_Mk(_Po);var _Uo=_Mk(_So);var _Vo=_Mk(_To);if(_Tl<0){_Tl=_Ho();}if(_Ul[type]<0){_Ul[type]=_Wo();}var _Xo=_Ul[type];_Yo(_Xo,shape);_Zo(_Xo,_Qo,_Ro,0,0);__o(_Xo,_Uo,_Vo);}function _0p(_ld,_Po,_06,_Qo,_Ro,_1p){var type=_Mk(_ld);var shape=_Mk(_Po);var _En=_Mk(_06);if(_Tl<0){_Tl=_Ho();}if(_Ul[type]<0){
_Ul[type]=_Wo();}var _Xo=_Ul[type];_Yo(_Xo,shape);_2p(_Xo,_En,true,false,false);_Zo(_Xo,_Qo,_Ro,_1p,0);}function _3p(_ld,_4p,_So,_To,_5p,_6p){var type=_Mk(_ld);var _7p=_Mk(_4p);var _Uo=_Mk(_So);var _Vo=_Mk(_To);if(_Tl<0){_Tl=_Ho();}if(_Ul[type]<0){_Ul[type]=_Wo();}var _Xo=_Ul[type];if(_7p==0){_8p(_Xo,_Uo,_Vo);}else {__o(_Xo,_Uo,_Vo);}_9p(_Xo,_5p,_6p);}var _ap=_3p;function _bp(_ld,_cp,_dp){var type=_Mk(_ld);var _ep=_Mk(_cp);var _fp=_Mk(_dp);if(_Tl<0){_Tl=_Ho();}if(_Ul[type]<0){_Ul[type]=_Wo();}var _Xo=_Ul[type];
_gp(_Xo,_ep,_fp);}function _hp(_ld,_ip,_jp,_kp,_lp,_mp){var type=_Mk(_ld);if(_Tl<0){_Tl=_Ho();}if(_Ul[type]<0){_Ul[type]=_Wo();}var _Xo=_Ul[type];_np(_Xo,_ip,_jp,-_mp,0);_op(_Xo,_kp,_lp,0,0);}function _pp(_ld,_qp,_rp){var type=_Mk(_ld);if(_Tl<0){_Tl=_Ho();}if(_Ul[type]<0){_Ul[type]=_Wo();}var _Xo=_Ul[type];_sp(_Xo,_qp,_rp);}function _tp(_ld,_up,_vp,_wp,_xp){var type=_Mk(_ld);var _yp=_Mk(_vp);var _zp=_Mk(_up);var _Ap=_Mk(_xp);var _Bp=_Mk(_wp);if(_Tl<0){_Tl=_Ho();}if(_Ul[type]<0){_Ul[type]=_Wo();}var _Xo=_Ul[type];
_Cp(_Xo,_yp,_Ul[_zp]);_Dp(_Xo,_Ap,_Ul[_Bp]);}function _Ep(_Fp,_Po,_Gp,_Hp,_Ip,_Jp){var _Kp=_Mk(_Fp);var shape=_Mk(_Po);if(_Tl<0){_Tl=_Ho();}if(_Vl[_Kp]<0){_Vl[_Kp]=_Lp(_Tl);}var _Mp=_Vl[_Kp];_Np(_Tl,_Mp,_Gp,_Hp,_Ip,_Jp,shape,_Op);}function _Pp(_Fp){var _Kp=_Mk(_Fp);if(_Tl<0){_Tl=_Ho();}if(_Vl[_Kp]<0){return;}var _Mp=_Vl[_Kp];_Qp(_Tl,_Mp);}function _Rp(_Fp,_ld,_Sp){var _Kp=_Mk(_Fp);var type=_Mk(_ld);var _Yk=_Mk(_Sp);if(_Tl<0){_Tl=_Ho();}if(_Vl[_Kp]<0){debug(_Sl);return;}var _Mp=_Vl[_Kp];_Tp(_Tl,_Mp,_Ul[type],
_Yk);}function _Up(_Fp,_ld,_Sp){var _Kp=_Mk(_Fp);var type=_Mk(_ld);var _Yk=_Mk(_Sp);if(_Tl<0){_Tl=_Ho();}if(_Vl[_Kp]<0){debug(_Sl);return;}var _Mp=_Vl[_Kp];_Vp(_Tl,_Mp,_Ul[type],_Yk);}function _Wp(_em,_Q5,_R5,_D6,_E6,_Xp,_do){if(_Ll){_Yp(_Q5+_em.x,_R5+_em.y,_D6+_em.x,_E6+_em.y,_Xp,_do,false,false);}else {_Yp(_Q5,_R5,_D6,_E6,_Xp,_do,false,false);}}function _Zp(_em,_Q5,_R5,_D6,_E6,_Xp,_do){if(_Ll){_Yp(_Q5+_em.x,_R5+_em.y,_D6+_em.x,_E6+_em.y,_Xp,_do,true,false);}else {_Yp(_Q5,_R5,_D6,_E6,_Xp,_do,true,false);
}}function __p(_em,_Q5,_R5,_D6,_E6,_7d){if(_Ll){draw_arrow(_Q5+_em.x,_R5+_em.y,_D6+_em.x,_E6+_em.y,_7d);}else {draw_arrow(_Q5,_R5,_D6,_E6,_7d);}}function _0q(_em,_1q,_2q,_3q){var _4q=_1q;var _5q=_2q;if(_Ll){_4q+=_em.x;_5q+=_em.y;}if(_Mk(_3q)==0){return place_free(_em,_4q,_5q)?1:0;}return place_empty(_em,_4q,_5q)?1:0;}function _6q(_em,_1q,_2q,_3q){var _4q=_1q;var _5q=_2q;if(_Ll){_4q+=_em.x;_5q+=_em.y;}if(_Mk(_3q)==0){return !place_free(_em,_4q,_5q)?1:0;}return !place_empty(_em,_4q,_5q)?1:0;}function _7q(_1q){
return _1q;}function _8q(_1q,_2q,_3q){var _I6=instance_number(_Mk(_1q));var result;if(_Mk(_3q)==1){result=(_I6<_2q)?1:0;}else if(_Mk(_3q)==2){result=(_I6>_2q)?1:0;}else {result=(_I6==_2q)?1:0;}return result;}function _9q(_em,_Sk,_Q5,_R5){if(_Ll){return place_meeting(_em,_Q5+_em.x,_R5+_em.y,_Mk(_Sk))?1:0;}return place_meeting(_em,_Q5,_R5,_Mk(_Sk))?1:0;}function _aq(_1q){var result;switch(_Mk(_1q)){case 1:result=(_vg._bq(1)||_vg._cq(1))?1:0;break;case 2:result=(_vg._bq(2)||_vg._cq(2))?1:0;break;case 3:result=(_vg._bq(3)||_vg._cq(3))?1:0;
break;default :result=(_vg._dq()==0)?1:0;}return result;}function _eq(_em,_Q5,_R5){if(_Q5>0){if(Math.abs(_em.x-_Q5*_Mk(_em.x/_Q5))>=0.001){return 0;}}if(_R5>0){if(Math.abs(_em.y-_R5*_Mk(_em.y/_R5))>=0.001){return 0;}}return 1;}function _fq(_em,_gq,_lm,_hq,_iq){_em._jq(_Mk(_gq),_lm,1,0,(_iq>=0.5)?true:false,_Mk(_hq));}function _kq(_em){_em._jq(-1,0,1,0,false,0);}function _lq(_em,_Gk){if(_Ll){_em.path_position+=_Gk;}else {_em.path_position=_Gk;}}function _mq(_em,_lm){if(_Ll){_em.path_speed=_em.path_speed+_lm;
}else {_em.path_speed=_lm;}}function _nq(_em,_Q5,_R5,_oq,_pq){if(_Ll){mp_linear_step(_em,_Q5+_em.x,_R5+_em.y,_oq,(_pq>=0.5)?true:false);}else {mp_linear_step(_em,_Q5,_R5,_oq,(_pq>=0.5)?true:false);}}function _qq(_em,_Q5,_R5,_oq,_pq){if(_Ll){mp_potential_step(_em,_Q5+_em.x,_R5+_em.y,_oq,(_pq>=0.5)?true:false);}else {mp_potential_step(_em,_Q5,_R5,_oq,(_pq>=0.5)?true:false);}}function _rq(_em,_sq){if(!_em)return;event_inherited(_em,_sq);}function _tq(_em,_uq,_vq){instance_change(_em,_uq|0,(_vq>=0.5)?true:false);
}function _wq(_em,_Q5,_R5){if(_Ll){position_destroy(_em,_Q5+_em.x,_R5+_em.y);}else {position_destroy(_em,_Q5,_R5);}}function _xq(_9n){if(_qg==_rg){var _an=_Mk(_9n);audio_stop_sound(_an);}else {var _an=_bn._26(_Mk(_9n));if((_an!=null)&&(_an!=undefined)){_bn._yq(_9n);}else {debug(_Ml);}}}function _zq(_9n){if(_qg==_rg){var _an=_Mk(_9n);return audio_is_playing(_an);}else {var _an=_bn._26(_Mk(_9n));if((_an!=null)&&(_an!=undefined)){return(_bn._Aq(_9n)?1:0);}return 0;}}function _Bq(_em,_Dc,_Q5,_R5,_7d,_0d,_Cq){if(_Ll){
_Dq((_Cq<0.5)?true:false,_Mk(_Dc),_Q5+_em.x,_R5+_em.y,_Mk(_7d),_Mk(_0d));}else {_Dq((_Cq<0.5)?true:false,_Mk(_Dc),_Q5,_R5,_Mk(_7d),_Mk(_0d));}}function _Eq(_Fq){alert(_Fq);}function _Gq(_em,_zm,_Am,_U5,_im){_em.image_xscale=_zm;_em.image_yscale=_Am;_em.image_angle=_U5;if((_im==1)||(_im==3)){_em.image_xscale=-_em.image_xscale;}if((_im==2)||(_im==3)){_em.image_yscale=-_em.image_yscale;}}function _Hq(_Iq,_Jq){if(_Jq>=0.5){_S3._a9();}_Kq(_Iq);}function _Lq(_Mq){surface_save(0,_Mq);}function _Nq(_06,_Mq,_Oq){
if(!sprite_exists(_Mk(_06))){debug(_Ql);return;}if(!file_exists(_Mq)){debug(_Rl);return;}var _En=_16._26(_Mk(_06));sprite_replace(_Mk(_06),_Mq,_Mk(_Oq),_En._Pq,_En.transparent,_En.smooth,_En.preload,_En.xOrigin,_En.yOrigin);}function _Qq(_9n,_Mq){if(!_Rq(_Mk(_9n))){debug(_Ql);return;}if(true!=file_exists(_Mq)){debug(_Rl);return;}var _an=_bn._26(_Mk(_9n));_Sq(_Mk(_9n),_Mq,_an.kind,_an.preload);}function _Tq(_Xn,_Mq){if(!_Uq(_Mk(_Xn))){debug(_Ql);return;}if(!file_exists(_Mq)){debug(_Rl);return;}var _Vq=_Wq._26(_Mk(_Xn));
_Xq(_Mk(_Xn),_Mq,_Vq.transparent,_Vq.smooth,_Vq.preload);}function _Yq(_em,_74,_Gk){_Zq(_em,_74,_Gk,0,0);}function _Zq(_em,_74,_Gk,__q,_c4){_em.timeline_index=_74;_em.timeline_position=_Gk;_em._0r=__q;_em._1r=_c4;}function _2r(_em,_Gk){if(_Ll){_em.timeline_position+=_Gk;}else {_em.timeline_position=_Gk;}}function _3r(_em,_lm){if(_Ll){_em.timeline_speed+=_lm;}else {_em.timeline_speed=_lm;}}function _4r(_em){_em._0r=false;}function _5r(_em){_em._0r=true;_em.timeline_position=0;}function _6r(_em){_em._0r=true;
}function _7r(_em,_Q5,_R5,_D6,_E6,_5o){if(_Ll){draw_ellipse(_Q5+_em.x,_R5+_em.y,_D6+_em.x,_E6+_em.y,(_5o>=0.5)?true:false);}else {draw_ellipse(_Q5,_R5,_D6,_E6,(_5o>=0.5)?true:false);}}function _8r(_em,_Q5,_R5,_D6,_E6,_Xp,_do){if(_Ll){_9r(_Q5+_em.x,_R5+_em.y,_D6+_em.x,_E6+_em.y,_Xp,_do,false);}else {_9r(_Q5,_R5,_D6,_E6,_Xp,_do,false);}}function _ar(_br){_cr(_br);}function _dr(_br){_cr(_br);}function _er(_fr,_gr,_Xp,_do,_hr,_ir,_jr){var x,y;x=(g_pBuiltIn.room_width/2)-100;y=(g_pBuiltIn.room_height/2)-100;
draw_highscore(x,y,x+200,y+200);}function _kr(){highscore_clear();_lr();}function _mr(_nr){}function _or(__3){var _pr=null;if(typeof(__3)=="object"){_pr=__3;}else {var _qr=yyGetInt32(__3);_pr=_rr._sr(_qr);}return _pr;}function animcurve_get(_tr){if(arguments.length!=1){_55("animcurve_get() - wrong number of arguments");return;}var _pr=_or(_tr);if(_pr==null){_55("animcurve_get() - specified curve not valid");}else {return _pr;}return -1;}function animcurve_get_channel_index(_ur,_vr){var result=-1;if(arguments.length!=2){
_55("animcurve_get_channel_index() - wrong number of arguments");return result;}var _pr=_or(_ur);if(_pr==null){_55("animcurve_get_channel_index() - specified curve not valid");return result;}var name=yyGetString(_vr);for(var i=0;i<_pr._wr;i++){var _xr=_pr._yr[i];if((_xr!=null)&&(_xr._zr!=null)&&_xr._zr==name){result=i;break;}}return result;}function animcurve_get_channel(_ur,_Ar){var result=-1;if(arguments.length!=2){_55("animcurve_get_channel() - wrong number of arguments");return;}if(typeof(_ur)!="number"&&typeof(_ur)!="object"){
_55("animcurve_get_channel() - first parameter must be either curve ID or curve object");return;}if(typeof(_Ar)!="number"&&typeof(_Ar)!="string"){_55("animcurve_get_channel() - second parameter must be either channel index or channel name");return;}var _pr=_or(_ur);if(_pr!=null){if(typeof(_Ar)=="number"){var _Br=yyGetInt32(_Ar);if((_Br<0)||(_Br>=_pr._wr)){_55("animcurve_get_channel() - specified channel index out of range");return;}if(_pr._yr[_Br]==null){_55("animcurve_get_channel() - specified channel is invalid");
return;}result=_pr._yr[_Br];}else {var name=yyGetString(_Ar);for(var i=0;i<_pr._wr;i++){var _xr=_pr._yr[i];if((_xr!=null)&&(_xr._zr!=null)&&_xr._zr==name){result=_xr;break;}}}}return result;}function animcurve_channel_evaluate(_Cr,_Ln){if(arguments.length!=2){_55("animcurve_channel_evaluate() - wrong number of arguments");return;}if(_Cr==null||!(_Cr instanceof _Dr)){_55("animcurve_channel_evaluate() - first parameter is not valid animation curve channel");return;}return _Cr._Er(yyGetReal(_Ln));}function animcurve_create(){
var _pr=_rr._Fr();if(_pr==null){_55("animcurve_create() - could not create new curve");}return _pr;}function animcurve_destroy(_ur){if(arguments.length!=1){_55("animcurve_destroy() - requires a curve ID or object");}var _pr=_or(_ur);if(_pr==null){_55("animcurve_destroy() - specified curve not valid");}else if(_pr._Gr==true){_55("animcurve_destroy() - can't delete a curve created in the IDE");}else {_rr._Hr(_pr);}}function animcurve_exists(_ur){if(arguments.length!=1){_55("animcurve_exists() - requires a curve ID or struct");
}var _Ir=false;if(typeof(_ur)=="object"){if(_ur instanceof _Jr){if(_rr._Kr(_ur)){_Ir=true;}}}else {var _qr=yyGetInt32(_ur);if(_rr._sr(_qr)!=null){_Ir=true;}}return _Ir?1.0:0.0;}function animcurve_channel_new(){return new _Dr();}function animcurve_point_new(){return new _Lr();}function _Uq(_Mr){var _Nr=_Wq._Or(_Mr);if((_Nr===null)||(_Nr===undefined)){return false;}return true;}function _Pr(_Mr){var _Qr=_Wq._Or(_Mr);if(!_Qr)return "";return _Qr.pName;}function _Rr(_Mr){return _Pr(_Mr);}function _Sr(_Mr){var _Qr=_Wq._Or(_Mr);
if(!_Qr)return 0;if(_Qr._Tr===undefined)return 0;return _Qr._Tr.ow;}function _Ur(_Mr){var _Qr=_Wq._Or(_Mr);if(!_Qr)return 0;if(_Qr._Tr===undefined)return 0;return _Qr._Tr.oh;}function _Vr(_Q5,_R5,_nj,_oj,_Wr,_Xr){var _Yr=surface_create(_nj,_oj);var _wk=_Zr._26(_Yr);var __r=_wk.getContext('2d');__r.drawImage(canvas,-_Q5,-_R5);if(_Wr){_0s(__r,_nj,_oj);}var _1s=new _2s();var __4=new _3s();_1s._Tr=__4;__4.x=0;__4.y=0;__4.w=_nj;__4.h=_oj;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;
__4.oh=__4.h;__4.tp=_Yr;__4._95=_wk;return _Wq._4s(_1s);}function _5s(_gg,_Q5,_R5,_nj,_oj,_Wr,_Xr){var _xk=_Zr._26(_gg);var _Yr=surface_create(_nj,_oj);var _wk=_Zr._26(_Yr);var __r=_wk.getContext('2d');__r.drawImage(_xk,-_Q5,-_R5);if(_Wr){_0s(__r,_nj,_oj);}var _1s=new _2s();var __4=new _3s();_1s._Tr=__4;__4.x=0;__4.y=0;__4.w=_nj;__4.h=_oj;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_Yr;__4._95=_wk;return _Wq._4s(_1s);}function _6s(_nj,_oj,_Mc){var _7s=surface_create(_nj,
_oj);var _8s=_Zr._26(_7s);var __r=_8s.getContext('2d');__r.globalAlpha=1.0;__r.fillStyle=_9s(_Nc(_Mc),1);__r.fillRect(0,0,_nj,_oj);var _1s=new _2s();var __4=new _3s();_1s._Tr=__4;__4.x=0;__4.y=0;__4.w=_nj;__4.h=_oj;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_7s;__4._95=_8s;return _Wq._4s(_1s);}var _as=_6s;function _bs(_nj,_oj,_Xp,_do,_Dc){var _7s=surface_create(_nj,_oj);var _8s=_Zr._26(_7s);var __r=_8s.getContext('2d');__r.globalAlpha=1.0;var _cs;if(_Dc==0){
_cs=__r.createLinearGradient(0,0,_nj,0);}else {_cs=__r.createLinearGradient(0,0,0,_oj);}_cs.addColorStop("0",_9s(_Nc(_Xp),1));_cs.addColorStop("1.0",_9s(_Nc(_do),1));__r.fillStyle=_cs;__r.fillRect(0,0,_nj,_oj);var _1s=new _2s();var __4=new _3s();_1s._Tr=__4;__4.x=0;__4.y=0;__4.w=_nj;__4.h=_oj;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_7s;__4._95=_8s;return _Wq._4s(_1s);}function _ds(_S4){return _Wq._es(_S4);}function _fs(_gs){var _Qr=_Wq._Or(_gs);
if(_Qr!=null&&_Qr!=undefined){var _hs=_is(_Qr._Tr);var _1s=new _2s();_1s.pName=_Qr.pName;_1s.transparent=_Qr.transparent;_1s.smooth=_Qr.smooth;_1s.preload=_Qr.preload;_1s._js=true;var __4=_1s._Tr=new _3s();__4._js(_Qr._Tr);__4.tp=_ks(_hs);__4._95=_35[__4.tp];__4._95.complete=true;__4.x=0;__4.y=0;return _Wq._4s(_1s);}return -1;}function _ls(_4l,_rj){var _wk=_Wq._Or(_4l);var _xk=_Wq._Or(_rj);if(_wk!=null&&_wk!=undefined&&_xk!=null&&_xk!=undefined){var _hs=_is(_xk._Tr);var _1s=new _2s();_1s.pName=_xk.pName;_1s.transparent=_xk.transparent;
_1s.smooth=_xk.smooth;_1s.preload=_xk.preload;_1s._Tr=new _3s();_1s._Tr._js(_xk._Tr);_1s._Tr.tp=_ks(_hs);_1s._Tr._95=_35[_1s._Tr.tp];_1s._Tr._95.complete=true;_1s._Tr.x=0;_1s._Tr.y=0;return _Wq._ms(_4l,_1s);}}function _ns(_gs,_Q5,_R5){var _hs=_Wq._Or(_gs);if(!_hs)return;_os(_hs._Tr,_Q5,_R5,_Kc);}function _ps(_gs,_Q5,_R5,_nj,_oj){var _hs=_Wq._Or(_gs);if(!_hs)return;_qs(_hs._Tr,_Q5,_R5,_nj,_oj,0xffffff,_Kc);}function _rs(_gs,_Q5,_R5){var _hs=_Wq._Or(_gs);if(!_hs)return;_ss(_hs._Tr,_Q5,_R5,1,1,true,true,0xffffff,
_Kc);}function _ts(_gs,_us,_vs,_A8,_B8,_Q5,_R5){var _hs=_Wq._Or(_gs);if(!_hs)return;_ws(_hs._Tr,_us,_vs,_A8,_B8,_Q5,_R5,1,1,_Fn,_Kc);}function _xs(_gs,_Q5,_R5,_2o,_3o,_X4,_ys,_A9){var _hs=_Wq._Or(_gs);if(!_hs)return;var c=_Nc(_ys);_zs(_hs._Tr,0,0,_Q5,_R5,_2o,_3o,_X4*Math.PI/180.0,c,c,c,c,_A9);}function _As(_gs,_Q5,_R5,_nj,_oj,_ys,_A9){var _hs=_Wq._Or(_gs);if(!_hs)return;_ys=_Nc(_ys);_qs(_hs._Tr,_Q5,_R5,_nj,_oj,_ys,_A9);}function _Bs(_gs,_Q5,_R5,_2o,_3o,_ys,_A9){var _hs=_Wq._Or(_gs);if(!_hs)return;_ys=_Nc(_ys);
_ss(_hs._Tr,_Q5,_R5,_2o,_3o,true,true,_ys,_A9);}function _Cs(_gs,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_ys,_A9){var _hs=_Wq._Or(_gs);if(!_hs)return;_ys=_Nc(_ys);_ws(_hs._Tr,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_ys,_A9);}function _Ds(_gs,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_X4,_Es,_Fs,_Gs,_Hs,_A9){var _Qr=_Wq._Or(_gs);if(!_Qr)return;_Es=_Nc(_Es);_Fs=_Nc(_Fs);_Gs=_Nc(_Gs);_Hs=_Nc(_Hs);_Is(_Qr._Tr,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_X4*Math.PI/180.0,_Es,_Fs,_Gs,_Hs,_A9);}function _Js(_S4,_gs){var _wk=_Wq._Or(_S4);var _xk=_Wq._Or(_gs);
if(!_wk||!_xk)return;if(!_wk._js){var _hs=_is(_wk._Tr);var _1s=new _2s();_wk._Tr.tp=_ks(_hs);_wk._Tr._95=_35[_xk._Tr.tp];_wk._Tr._95.complete=true;_wk._Tr.x=0;_wk._Tr.y=0;_wk._js=true;}_Ks(_wk._Tr,_xk._Tr);}function _Ls(_el,_Wr,_Xr){var _1s=new _2s();_1s.pName="";_1s.transparent=_Wr;_1s.smooth=_Xr;_1s.preload=true;var _Ms=_Wq._4s(_1s);if(_el.substring(0,5)=="file:")return -1;var _Ns=_el;var _h5=_V8(_Ns);_35[_h5].onload=_Os;_35[_h5].onerror=_Ps;_Cf._Df(_Ms,_el,_Qs,_35[_h5]);var __4=new _3s();_1s._Tr=__4;__4.x=0;
__4.y=0;__4.w=0;__4.h=0;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_h5;__4._95=_35[__4.tp];return _Ms;}function _Xq(_S4,_el,_Wr,_Xr){var _1s=_Wq._Or(_S4);_1s.transparent=_Wr;_1s.smooth=_Xr;if(_el.substring(0,5)=="file:")return -1;var _Ns=_el;var _Rs=_1s._Tr._95._Ba;var _h5=_V8(_Ns);_35[_h5]._Ba=_Rs;_35[_h5].onload=_Os;_35[_h5].onerror=_Ps;_Cf._Df(_S4,_el,_Qs,_35[_h5]);var __4=_1s._Tr;__4.x=0;__4.y=0;__4.w=0;__4.h=0;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;
__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4._Ss=null;__4._Ts=0;__4.tp=_h5;__4._95=_35[__4.tp];return _S4;}function _Us(_S4){var _wk=_Wq._Or(_S4);if(_wk){return({_Ec:_wk._Tr._95,_Fc:_wk._Tr});}return null;}function _Vs(_S4){var _wk=_Wq._Or(_S4);if(_wk){var __4=_wk._Tr;var _95=__4._95;var _Ws=1.0/_95._Xc;var _Xs=1.0/_95._Yc;var _Ys=[];_Ys.push(__4.x*_Ws,__4.y*_Xs,(__4.x+__4.CropWidth)*_Ws,(__4.y+__4.CropHeight)*_Xs);return _Ys;}return null;}function _Zs(__s){var _Qr=_Wq._26(__s);if(_Qr===null){return -1;}var __4=_Qr._Tr;
if(__4._95){if(__4._95._Ba){_0t(__4._95._Ba);return 0;}}return -1;}function _1t(_2t){if(Array.isArray(_2t)){for(var _17=0;_17<_2t.length;_17++){var _Qr=_Wq._26(_2t[_17]);if(_Qr===null){return -1;}var __4=_Qr._Tr;if(__4._95){if(__4._95._Ba){_0t(__4._95._Ba);return 0;}}}return 0;}else {return -1;}}function _3t(__s){var _Qr=_Wq._26(__s);if(_Qr===null){return -1;}var __4=_Qr._Tr;if(__4._95){if(__4._95._Ba){_4t(__4._95._Ba);return 0;}}return -1;}function _5t(_2t){if(Array.isArray(_2t)){for(var _17=0;_17<_2t.length;_17++){
var _Qr=_Wq._26(_2t[_17]);if(_Qr===null){return -1;}var __4=_Qr._Tr;if(__4._95){if(__4._95._Ba){_4t(__4._95._Ba);return 0;}}}return 0;}else {return -1;}}var _6t=[];var _7t=0;function _8t(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 _9t(_Q5,_R5,_at,_bt,_ct,_dt){var _Qg=document.getElementById("canvas").parentNode;
var _et=document.getElementById("canvas");var _ft=document.createElement("div");_ft.style.cssText="-moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none;user-select: none;";_ft._gt=false;_ft.setAttribute("id","gamemaker_image");_ft.style.position="absolute";_ft._K9=_at;var left=_Q5+_at.tpe_XOffset;var top=_R5+_at.tpe_YOffset;_ft.style.left=left+"px";_ft.style.top=top+"px";_ft.style.width=_at.tpe_CropWidth+"px";_ft.style.height=_at.tpe_CropHeight+"px";_ft.style.padding="0px";
_ft.style.margin="0px";_ft.style.border="0px";_8t(_ft);_ft.angle=0;_ft.x=_Q5;_ft.y=_R5;var _ht=document.createElement('button');_ht.onmousemove=_it;_ht.type="button";_ht.style.cursor=_ft.style.cursor=_et.style.cursor;_ht.style.width=_at.tpe_CropWidth+"px";_ht.style.height=_at.tpe_CropHeight+"px";_ht.style.opacity="1.0";_ht.style.backgroundColor="rgba(0, 0, 0, 0.0)";_ht.style.border="0px";_ht.style.backgroundImage="url("+_at.tpe_texture.src+")";_ht.style.backgroundPosition=(-_at.tpe_x)+"px "+(-_at.tpe_y)+"px";
_ht.onclick=function(){if((_bt.substring(0,6)=="http:/")||(_bt.substring(0,6)=="https:")){var _jt=window.open(_bt,_ct,_dt);return false;}else {var pFunc=eval("gml_Script_"+_bt);if(pFunc)pFunc(null,null,_ct,_dt);return false;}};_ft.insertBefore(_ht,null);_Qg.insertBefore(_ft,null);return _ft;}function clickable_add(_Q5,_R5,_at,_bt,_ct,_dt){_6t[_7t]=_9t(yyGetReal(_Q5),yyGetReal(_R5),_at,yyGetString(_bt),yyGetString(_ct),yyGetString(_dt));return _7t++;}function clickable_add_ext(_Q5,_R5,_at,_bt,_ct,_dt,_fm,
_A9){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_bt=yyGetString(_bt);_ct=yyGetString(_ct);_dt=yyGetString(_dt);_6t[_7t]=_9t(_Q5,_R5,_at,_bt,_ct,_dt);clickable_change_ext(_7t,_at,_Q5,_R5,yyGetReal(_A9),yyGetReal(_fm));return _7t++;}function clickable_exists(_gg){var _kt=_6t[yyGetInt32(_gg)];if(_kt){return true;}else {return false;}}function clickable_delete(_gg){_gg=yyGetInt32(_gg);var _kt=_6t[_gg];if(_kt){_kt.parentNode.removeChild(_kt);_6t[_gg]=undefined;}}function clickable_change(_gg,_at,_Q5,_R5){var _kt=_6t[yyGetInt32(_gg)];
if(_kt){if(_kt.firstChild){var _lt=_kt.firstChild;var left=yyGetReal(_Q5)+_at.tpe_XOffset;var top=yyGetReal(_R5)+_at.tpe_YOffset;_kt.style.left=left+"px";_kt.style.top=top+"px";_kt.style.width=(_at.tpe_CropWidth)+"px";_kt.style.height=(_at.tpe_CropHeight)+"px";_lt.style.left=_kt.style.left;_lt.style.right=_kt.style.top;_lt.style.width=_kt.style.width;_lt.style.height=_kt.style.height;_lt.style.backgroundPosition=(-_at.tpe_x)+"px "+(-_at.tpe_y)+"px";var _mt=true;var _nt="url("+_at.tpe_texture.src+")";
if(typeof(_lt.style.backgroundImage)!=undefined){if(_lt.style.backgroundImage==_nt){_mt=false;}}if(_mt==true){_lt.style.backgroundImage=_nt;}}}}function clickable_change_ext(_gg,_at,_Q5,_R5,_fm,_A9){_gg=yyGetInt32(_gg);_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_fm=yyGetReal(_fm);_A9=yyGetReal(_A9);clickable_change(_gg,_at,_Q5,_R5);var _kt=_6t[_gg];if(_kt){var _lt=_kt.firstChild;if(_kt.x!=_Q5){_kt.style.left=_Q5+"px";_kt.x=_Q5;}if(_kt.y!=_R5){_kt.style.top=_R5+"px";_kt.y=_R5;}if(_lt){_lt.style.width=_kt.style.width=(_at.tpe_CropWidth*_fm)+"px";
_lt.style.height=_kt.style.height=(_at.tpe_CropHeight*_fm)+"px";var _ot=(_fm*_at.tpe_texture.width*100)/(_at.tpe_CropWidth);_lt.style.backgroundSize=(_fm*_at.tpe_texture.width)+"px "+(_fm*_at.tpe_texture.height)+"px";var _pt=(-_at.tpe_x*_fm);var _qt=(-_at.tpe_y*_fm);_lt.style.backgroundPosition=_pt+"px "+_qt+"px";if(_lt.style.opacity!=_A9)_lt.style.opacity=_A9;}}}function clickable_set_style(_rt,_st){var _kt=_6t[yyGetInt32(_rt)];var _r7=_s7._26(yyGetInt32(_st));if(_kt&&_r7){var _lt=_kt.firstChild;if(_lt){
for(const [key,_re] of _r7){_lt.style[key]=_re;}}}}function collision_point(_tt,_Q5,_R5,_Sk,_jj,_ut){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_jj=yyGetBool(_jj);return _vt(_tt,yyGetInt32(_Sk),yyGetBool(_ut),_wt,_Q5,_R5,_jj,function(_xt){var _yt=_xt._zt(_Q5,_R5,_jj);if(!_yt){return _wt;}return _xt.id;});}function _At(_Bt,_Ct,_Dt,_Et){var _Ft=[];for(var i=0;i<_Bt.length;++i){var _Gt=_Bt[i];var _fb=_Gt.x-_Dt;var _gb=_Gt.y-_Et;var _Ht=(_fb*_fb)+(_gb*_gb);var _Qg={_It:_Gt.id,_Jt:_Ht};_Ft.push(_Qg);}_Ft.sort(function(_G4,
_F4){return _G4._Jt-_F4._Jt;});for(var i=0;i<_Ft.length;++i){_Ct._Df(_Ft[i]._It);}}function collision_point_list(_tt,_Q5,_R5,_Sk,_jj,_ut,_38,_Kt){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_jj=yyGetBool(_jj);var _Tg=_uk._26(yyGetInt32(_38));if(!_Tg){_55("Error: invalid ds_list ID (collision_point_list)");return 0;}var _Lt=0;var sort=yyGetBool(_Kt);var _z6=[];_vt(_tt,yyGetInt32(_Sk),yyGetBool(_ut),_wt,_Q5,_R5,_jj,function(_xt){if(_xt._zt(_Q5,_R5,_jj)){if(sort)_z6[_Lt]=_xt;else _Tg._Df(_xt.id);_Lt+=1;}return _wt;
});if(sort)_At(_z6,_Tg,_Q5,_R5);return _Lt;}function collision_rectangle(_tt,_b7,_c7,_D6,_E6,_Sk,_jj,_ut){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_jj=yyGetBool(_jj);return _vt(_tt,yyGetInt32(_Sk),yyGetBool(_ut),_wt,_b7,_c7,_D6,_E6,_jj,function(_xt){var _yt=_xt._Mt(_b7,_c7,_D6,_E6,_jj);if(!_yt){return _wt;}return _xt.id;});}function collision_rectangle_list(_tt,_b7,_c7,_D6,_E6,_Sk,_jj,_ut,_38,_Kt){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);
_jj=yyGetBool(_jj);var _Tg=_uk._26(yyGetInt32(_38));if(!_Tg){_55("Error: invalid ds_list ID (collision_rectangle_list)");return 0;}var _Lt=0;var sort=yyGetBool(_Kt);var _z6=[];_vt(_tt,yyGetInt32(_Sk),yyGetBool(_ut),_wt,_b7,_c7,_D6,_E6,_jj,function(_xt){if(_xt._Mt(_b7,_c7,_D6,_E6,_jj)){if(sort)_z6[_Lt]=_xt;else _Tg._Df(_xt.id);_Lt+=1;}return _wt;});if(sort){var _Nt=(_b7+_D6)*0.5;var _Ot=(_c7+_E6)*0.5;_At(_z6,_Tg,_Nt,_Ot);}return _Lt;}function collision_circle(_tt,_Pt,_Qt,_Rt,_Sk,_jj,_ut){return collision_ellipse(_tt,
_Pt-_Rt,_Qt-_Rt,_Pt+_Rt,_Qt+_Rt,_Sk,_jj,_ut);}function collision_circle_list(_tt,_Pt,_Qt,_Rt,_Sk,_jj,_ut,_38,_Kt){var _Tg=_uk._26(yyGetInt32(_38));if(!_Tg){_55("Error: invalid ds_list ID (collision_circle_list)");return 0;}return collision_ellipse_list(_tt,_Pt-_Rt,_Qt-_Rt,_Pt+_Rt,_Qt+_Rt,_Sk,_jj,_ut,_38,_Kt);}function collision_ellipse(_tt,_b7,_c7,_D6,_E6,_Sk,_jj,_ut){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_jj=yyGetBool(_jj);return _vt(_tt,yyGetInt32(_Sk),yyGetBool(_ut),
_wt,_b7,_c7,_D6,_E6,_jj,function(_xt){var _yt=_xt._St(_b7,_c7,_D6,_E6,_jj);if(!_yt){return _wt;}return _xt.id;});}function collision_ellipse_list(_tt,_b7,_c7,_D6,_E6,_Sk,_jj,_ut,_38,_Kt){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_jj=yyGetBool(_jj);var _Tg=_uk._26(yyGetInt32(_38));if(!_Tg){_55("Error: invalid ds_list ID (collision_ellipse_list)");return 0;}var _Lt=0;var sort=(_Kt>=0.5)?true:false;var _z6=[];_vt(_tt,yyGetInt32(_Sk),yyGetBool(_ut),_wt,_b7,_c7,_D6,_E6,_jj,function(_xt){
if(_xt._St(_b7,_c7,_D6,_E6,_jj)){if(sort)_z6[_Lt]=_xt;else _Tg._Df(_xt.id);_Lt+=1;}return _wt;});if(sort){var _Nt=(_b7+_D6)*0.5;var _Ot=(_c7+_E6)*0.5;_At(_z6,_Tg,_Nt,_Ot);}return _Lt;}function collision_line(_tt,_b7,_c7,_D6,_E6,_Sk,_jj,_ut){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_jj=yyGetBool(_jj);return _vt(_tt,yyGetInt32(_Sk),yyGetBool(_ut),_wt,_b7,_c7,_D6,_E6,_jj,function(_xt){var _yt=_xt._Tt(_b7,_c7,_D6,_E6,_jj);if(!_yt){return _wt;}return _xt.id;});}function collision_line_list(_tt,
_b7,_c7,_D6,_E6,_Sk,_jj,_ut,_38,_Kt){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_jj=yyGetBool(_jj);var _Tg=_uk._26(yyGetInt32(_38));if(!_Tg){_55("Error: invalid ds_list ID (collision_line_list)");return 0;}var _Lt=0;var sort=yyGetBool(_Kt);var _z6=[];_vt(_tt,yyGetInt32(_Sk),yyGetBool(_ut),_wt,_b7,_c7,_D6,_E6,_jj,function(_xt){if(_xt._Tt(_b7,_c7,_D6,_E6,_jj)){if(sort)_z6[_Lt]=_xt;else _Tg._Df(_xt.id);_Lt+=1;}return _wt;});if(sort)_At(_z6,_Tg,_b7,_c7);return _Lt;}function point_in_rectangle(_Dt,
_Et,_b7,_c7,_D6,_E6){_Dt=yyGetReal(_Dt);_Et=yyGetReal(_Et);if((_Dt>=yyGetReal(_b7)&&_Dt<=yyGetReal(_D6))&&(_Et>=yyGetReal(_c7)&&_Et<=yyGetReal(_E6))){return true;}return false;}function rectangle_in_rectangle(_Ut,_Vt,_Wt,_Xt,_b7,_c7,_D6,_E6){_Ut=yyGetReal(_Ut);_Vt=yyGetReal(_Vt);_Wt=yyGetReal(_Wt);_Xt=yyGetReal(_Xt);_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);var _Yt=0;var _Zt=0;if(_Ut>_Wt){_Zt=_Ut;_Ut=_Wt;_Wt=_Zt;}if(_Vt>_Xt){_Zt=_Vt;_Vt=_Xt;_Xt=_Zt;}if(_b7>_D6){_Zt=_b7;
_b7=_D6;_D6=_Zt;}if(_c7>_E6){_Zt=_c7;_c7=_E6;_E6=_Zt;}if((_Ut>=_b7&&_Ut<=_D6)&&(_Vt>=_c7&&_Vt<=_E6))_Yt|=1;if((_Wt>=_b7&&_Wt<=_D6)&&(_Vt>=_c7&&_Vt<=_E6))_Yt|=2;if((_Wt>=_b7&&_Wt<=_D6)&&(_Xt>=_c7&&_Xt<=_E6))_Yt|=4;if((_Ut>=_b7&&_Ut<=_D6)&&(_Xt>=_c7&&_Xt<=_E6))_Yt|=8;var result=0;if(_Yt==15){result=1.0;}else if(_Yt==0){result=0.0;_Yt=0;if((_b7>=_Ut&&_b7<=_Wt)&&(_c7>=_Vt&&_c7<=_Xt))_Yt|=1;if((_D6>=_Ut&&_D6<=_Wt)&&(_c7>=_Vt&&_c7<=_Xt))_Yt|=2;if((_D6>=_Ut&&_D6<=_Wt)&&(_E6>=_Vt&&_E6<=_Xt))_Yt|=4;if((_b7>=_Ut&&_b7<=_Wt)&&(_E6>=_Vt&&_E6<=_Xt))_Yt|=8;
if(0!=_Yt)result=2.0;else {_Yt=0;if((_b7>=_Ut&&_b7<=_Wt)&&(_Vt>=_c7&&_Vt<=_E6))_Yt|=1;if((_D6>=_Ut&&_D6<=_Wt)&&(_Vt>=_c7&&_Vt<=_E6))_Yt|=2;if((_D6>=_Ut&&_D6<=_Wt)&&(_Xt>=_c7&&_Xt<=_E6))_Yt|=4;if((_b7>=_Ut&&_b7<=_Wt)&&(_Xt>=_c7&&_Xt<=_E6))_Yt|=8;if(0!=_Yt)result=2.0;else {_Yt=0;if((_Ut>=_b7&&_Ut<=_D6)&&(_c7>=_Vt&&_c7<=_Xt))_Yt|=1;if((_Wt>=_b7&&_Wt<=_D6)&&(_c7>=_Vt&&_c7<=_Xt))_Yt|=2;if((_Wt>=_b7&&_Wt<=_D6)&&(_E6>=_Vt&&_E6<=_Xt))_Yt|=4;if((_Ut>=_b7&&_Ut<=_D6)&&(_E6>=_Vt&&_E6<=_Xt))_Yt|=8;if(0!=_Yt)result=2.0;
}}}else {result=2.0;}return result;}function __t(_0u,_1u,_L6,_M6,_N6,_O6,_hb,_ib){var _sb=_hb-_L6;var _ub=_N6-_L6;var _wb=_0u-_L6;var _tb=_ib-_M6;var _vb=_O6-_M6;var _xb=_1u-_M6;var _2u=(_sb*_sb)+(_tb*_tb);var _3u=(_sb*_ub)+(_tb*_vb);var _4u=(_sb*_wb)+(_tb*_xb);var _5u=(_ub*_ub)+(_vb*_vb);var _6u=(_ub*_wb)+(_vb*_xb);var _7u=1.0/(_2u*_5u-_3u*_3u);var _m5=(_5u*_4u-_3u*_6u)*_7u;var _n5=(_2u*_6u-_3u*_4u)*_7u;return((_m5>=0.0)&&(_n5>=0.0)&&(_m5+_n5<1.0));}function point_in_triangle(_Dt,_Et,_b7,_c7,_D6,_E6,_8u,_9u){return __t(yyGetReal(_Dt),
yyGetReal(_Et),yyGetReal(_b7),yyGetReal(_c7),yyGetReal(_D6),yyGetReal(_E6),yyGetReal(_8u),yyGetReal(_9u));}function _au(_Dt,_Et,_bu,_cu,_du){var _tm=(((_Dt-_bu)*(_Dt-_bu))+((_Et-_cu)*(_Et-_cu)));if(_tm<=_du)return true;return false;}function point_in_circle(_Dt,_Et,_bu,_cu,_eu){return _au(yyGetReal(_Dt),yyGetReal(_Et),yyGetReal(_bu),yyGetReal(_cu),yyGetReal(_eu)*yyGetReal(_eu));}function rectangle_in_circle(_fu,_gu,_hu,_iu,_bu,_cu,_eu){var _L6,_M6,_N6,_O6,_Nt,_Ot,_ju,_ku,_lu;_L6=yyGetReal(_fu);_M6=yyGetReal(_gu);
_N6=yyGetReal(_hu);_O6=yyGetReal(_iu);_Nt=yyGetReal(_bu);_Ot=yyGetReal(_cu);_ju=yyGetReal(_eu);var _mu=_ju*_ju;_ku=_Nt;_lu=_Ot;if(_ku<_L6)_ku=_L6;if(_ku>_N6)_ku=_N6;if(_lu<_M6)_lu=_M6;if(_lu>_O6)_lu=_O6;var _Jt=(_ku-_Nt)*(_ku-_Nt)+(_lu-_Ot)*(_lu-_Ot);var _kn=0.0;if(_Jt<=_mu){_kn=2.0;if((_au(_L6,_M6,_Nt,_Ot,_mu))&&(_au(_N6,_M6,_Nt,_Ot,_mu))&&(_au(_N6,_O6,_Nt,_Ot,_mu))&&(_au(_L6,_O6,_Nt,_Ot,_mu))){_kn=1.0;}}return _kn;}function _nu(_fu,_gu,_hu,_iu,_bu,_cu,_eu){var _L6,_M6,_N6,_O6,_Nt,_Ot,_ju,_ku,_lu;_L6=yyGetReal(_fu);
_M6=yyGetReal(_gu);_N6=yyGetReal(_hu);_O6=yyGetReal(_iu);_Nt=yyGetReal(_bu);_Ot=yyGetReal(_cu);_ju=yyGetReal(_eu);var _mu=_ju*_ju;_ku=_Nt;_lu=_Ot;if(_ku<_L6)_ku=_L6;if(_ku>_N6)_ku=_N6;if(_lu<_M6)_lu=_M6;if(_lu>_O6)_lu=_O6;var _Jt=(_ku-_Nt)*(_ku-_Nt)+(_lu-_Ot)*(_lu-_Ot);var _kn=0.0;if(_Jt<=_mu){_kn=2.0;if((Math.abs(_Nt-_L6)>_ju)&&(Math.abs(_Nt-_N6)>_ju)&&(Math.abs(_Ot-_M6)>_ju)&&(Math.abs(_Ot-_O6)>_ju)){_kn=1.0;}}return _kn;}function _ou(_pu,_qu){var _fb=_qu.x-_pu.x;var _gb=_qu.y-_pu.y;var _ru={"x":-_gb,
"y":_fb};return _ru;}function _su(_2a,_tu,_ru){var min,max;var _tm=_2a[0].x*_ru.x+_2a[0].y*_ru.y;min=max=_tm;for(var i=1;i<_tu;++i){_tm=_2a[i].x*_ru.x+_2a[i].y*_ru.y;if(_tm<min)min=_tm;else if(_tm>max)max=_tm;}var _uu={"min":min,"max":max};return _uu;}function rectangle_in_triangle(_fu,_gu,_hu,_iu,_b7,_c7,_D6,_E6,_8u,_9u){_fu=yyGetReal(_fu);_gu=yyGetReal(_gu);_hu=yyGetReal(_hu);_iu=yyGetReal(_iu);_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_8u=yyGetReal(_8u);_9u=yyGetReal(_9u);
var _Yt=0;if(__t(_fu,_gu,_b7,_c7,_D6,_E6,_8u,_9u))_Yt|=1;if(__t(_hu,_gu,_b7,_c7,_D6,_E6,_8u,_9u))_Yt|=2;if(__t(_hu,_iu,_b7,_c7,_D6,_E6,_8u,_9u))_Yt|=4;if(__t(_fu,_iu,_b7,_c7,_D6,_E6,_8u,_9u))_Yt|=8;if(_Yt==15){return 1.0;}else if(_Yt!=0){return 2.0;}var _Xo=[];_Xo[0]={"x":_b7,"y":_c7};_Xo[1]={"x":_D6,"y":_E6};_Xo[2]={"x":_8u,"y":_9u};var axes=[];axes[0]={"x":0,"y":1};axes[1]={"x":1,"y":0};axes[2]=_ou(_Xo[0],_Xo[1]);axes[3]=_ou(_Xo[1],_Xo[2]);axes[4]=_ou(_Xo[2],_Xo[0]);var _vu=[];_vu[0]={"x":_fu,"y":_gu}
;_vu[1]={"x":_hu,"y":_gu};_vu[2]={"x":_fu,"y":_iu};_vu[3]={"x":_hu,"y":_iu};for(var i=0;i<5;++i){var _ru=axes[i];var _wu=_su(_Xo,3,_ru);var _xu=_su(_vu,4,_ru);if(_xu.max<=_wu.min||_wu.max<=_xu.min){return 0.0;}}return 2.0;}function _yu(){_Fb("d3d_start()");}function _zu(){_Fb("d3d_end()");}function _Au(enable){_Fb("d3d_set_hidden()");}function _Bu(_Cu){_Fb("d3d_set_culling()");}function _Du(smooth){_Fb("d3d_set_shading()");}function _Eu(_Fu){_Fb("d3d_set_zwriteenable()");}function _Gu(depth){_Fb("d3d_set_depth()");
}function _Hu(_Iu,_Ju,_Ku,alpha){_Fb("draw_set_color_write_enable()");}var _Lu=_Hu;function _Mu(enable){_Fb("d3d_set_shading()");}function _Nu(_t9,_fb,_gb,_Ou,_L4){_Fb("d3d_light_define_direction()");}function _Pu(_t9,x,y,z,_Qu,_L4){_Fb("d3d_light_define_point()");}function _Ru(_t9,enable){_Fb("d3d_light_enable()");}function _Su(colour){_Fb("d3d_light_define_ambient()");}function _Tu(enable,color,start,end){_Fb("d3d_set_fog()");}function _Uu(index){_Fb("d3d_light_get()");}function _Vu(index){_Fb("d3d_light_get_ambient()");
}function _Wu(){_Fb("d3d_get_lighting()");}function _Xu(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,__u,_0v){_Fb("d3d_draw_floor()");}function _1v(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,__u,_0v,_2v){_Fb("d3d_draw_ellipsoid()");}function _3v(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,__u,_0v){_Fb("d3d_draw_block()");}function _4v(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,__u,_0v,closed,_2v){_Fb("d3d_draw_cylinder()");}function _5v(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,__u,_0v,closed,_2v){_Fb("d3d_draw_cone()");}function _6v(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,__u,_0v){_Fb("d3d_draw_wall()");
}function _7v(){_Fb("d3d_model_create()");}function _8v(_t9){_Fb("d3d_model_destroy()");}function _9v(_t9){_Fb("d3d_model_clear()");}function _av(_t9,_bv){_Fb("d3d_model_save()");}function _cv(_t9,_bv){_Fb("d3d_model_load()");}function _dv(_t9,_bv){_Fb("d3d_model_save_buffer()");}function _ev(_t9,_bv){_Fb("d3d_model_load_buffer()");}function _fv(_t9,x,y,z,_Gb){_Fb("d3d_model_draw()");}function _gv(_t9,kind){_Fb("d3d_model_primitive_begin()");}function _hv(_t9,x,y,z){_Fb("d3d_model_vertex()");}function _iv(_t9,
x,y,z,_L4,alpha){_Fb("d3d_model_vertex_colour()");}function _jv(_t9,x,y,z,_L4,alpha){_Fb("d3d_model_vertex_color()");}function _kv(_t9,x,y,z,_Hb,_Ib){_Fb("d3d_model_vertex_texture()");}function _lv(_t9,x,y,z,_Hb,_Ib,_L4,alpha){_Fb("d3d_model_vertex_texture_colour()");}function _mv(_t9,x,y,z,_Hb,_Ib,_L4,alpha){_Fb("d3d_model_vertex_texture_color()");}function _nv(_t9,x,y,z,_Sb,_Tb,_Ub){_Fb("d3d_model_vertex_normal()");}function _ov(_t9,x,y,z,_Sb,_Tb,_Ub,_L4,alpha){_Fb("d3d_model_vertex_normal_color()");
}function _pv(_t9,x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib){_Fb("d3d_model_vertex_normal_texture()");}function _qv(_t9,x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib,_L4,alpha){_Fb("d3d_model_vertex_normal_texture_color()");}function _rv(_t9,x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib,_L4,alpha){_Fb("d3d_model_vertex_normal_texture_colour()");}function _sv(_t9){_Fb("d3d_model_primitive_end()");}function _tv(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v){_Fb("d3d_model_block()");}function _uv(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,closed,_2v){_Fb("d3d_model_cylinder()");
}function _vv(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,closed,_2v){_Fb("d3d_model_cone()");}function _wv(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,_2v){_Fb("d3d_model_ellipsoid()");}function _xv(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v){_Fb("d3d_model_wall()");}function _yv(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v){_Fb("d3d_model_floor()");}function _zv(enable){_Fb("d3d_set_perspective()");}function _Av(_Bv,_Cv,_Dv,_Ev,_Fv,_Gv,_Hv,_Iv,_Jv){_Fb("d3d_set_projection()");}function _Kv(_Bv,_Cv,_Dv,_Ev,_Fv,_Gv,_Hv,_Iv,_Jv,angle,
_Lv,_Mv,_Nv){_Fb("d3d_set_projection_ext()");}function _Ov(x,y,w,h,angle){_Fb("d3d_set_projection_ortho()");}function _Pv(x,y,w,h,angle){_Fb("d3d_set_projection_perspective()");}function _Qv(){_Fb("d3d_transform_set_identity()");}function _Rv(_Sv,_Tv,_Uv){_Fb("d3d_transform_set_translation()");}function _Vv(_59,_69,_Wv){_Fb("d3d_transform_set_scaling()");}function _Xv(angle){_Fb("d3d_transform_set_rotation_x()");}function _Yv(angle){_Fb("d3d_transform_set_rotation_y()");}function _Zv(angle){_Fb("d3d_transform_set_rotation_z()");
}function __v(_0w,_1w,_2w,angle){_Fb("d3d_transform_set_rotation_axis()");}function _3w(_Sv,_Tv,_Uv){_Fb("d3d_transform_add_translation()");}function _4w(_59,_69,_Wv){_Fb("d3d_transform_add_scaling()");}function _5w(angle){_Fb("d3d_transform_add_rotation_x()");}function _6w(angle){_Fb("d3d_transform_add_rotation_y()");}function _7w(angle){_Fb("d3d_transform_add_rotation_axis()");}function _8w(_0w,_1w,_2w,angle){_Fb("d3d_transform_add_rotation_z()");}function _9w(_Q5,_R5,_Zc){_Fb("d3d_transform_vertex()");
}function matrix_get(_ld){_Fb("matrix_get()");}function matrix_set(_ld,_aw){_Fb("matrix_set()");}var matrix_build=_bw;var matrix_multiply=_cw;var matrix_transform_vertex=_dw;var matrix_stack_push=_ew;var matrix_stack_pop=_fw;var matrix_stack_set=_gw;var matrix_stack_clear=_hw;var matrix_stack_top=_iw;var matrix_stack_is_empty=_jw;var matrix_build_identity=_kw;var matrix_build_lookat=_lw;var matrix_build_projection_ortho=_mw;var matrix_build_projection_perspective=_nw;var matrix_build_projection_perspective_fov=_ow;
function _pw(){_Fb("d3d_transform_stack_clear()");}function _qw(){_Fb("d3d_transform_stack_empty()");}function _rw(){_Fb("d3d_transform_stack_push()");}function _sw(){_Fb("d3d_transform_stack_pop()");}function _tw(){_Fb("d3d_transform_stack_top()");}function _uw(){_Fb("d3d_transform_stack_discard()");}function gpu_set_blendenable(enable){_Fb("gpu_set_blendenable()");}function gpu_set_ztestenable(enable){_Fb("gpu_set_ztestenable()");}function gpu_set_zfunc(_vw){_Fb("gpu_set_zfunc()");}function gpu_set_zwriteenable(enable){
_Fb("gpu_set_zwriteenable()");}function gpu_set_fog(enable,_L4,start,end){_Fb("gpu_set_fog()");}function gpu_set_cullmode(_ww){_Fb("gpu_set_cullmode()");}function gpu_set_blendmode(mode){_Fb("gpu_set_blendmode()");}function gpu_set_blendmode_ext(src,_ea){_Fb("gpu_set_blendmode_ext()");}function gpu_set_blendmode_ext_sepalpha(src,_ea,_xw,_yw){_Fb("gpu_set_blendmode_ext_sepalpha()");}function gpu_set_colorwriteenable(_Iu,_Ju,_Ku,alpha){_Fb("gpu_set_colorwriteenable()");}function gpu_set_colourwriteenable(_Iu,
_Ju,_Ku,alpha){_Fb("gpu_set_colourwriteenable()");}function gpu_set_alphatestenable(enable){_Fb("gpu_set_alphatestenable()");}function gpu_set_alphatestref(value){_Fb("gpu_set_alphatestref()");}function gpu_set_texfilter(_zw){_Fb("gpu_set_texfilter()");}function gpu_set_texfilter_ext(_Aw,_zw){_Fb("gpu_set_texfilter_ext()");}function gpu_set_texrepeat(repeat){_Fb("gpu_set_texrepeat()");}function gpu_set_texrepeat_ext(_Aw,repeat){_Fb("gpu_set_texrepeat_ext()");}function gpu_set_tex_filter(_zw){_Fb("gpu_set_tex_filter()");
}function gpu_set_tex_filter_ext(_Aw,_zw){_Fb("gpu_set_tex_filter_ext()");}function gpu_set_tex_repeat(repeat){_Fb("gpu_set_tex_repeat()");}function gpu_set_tex_repeat_ext(_Aw,repeat){_Fb("gpu_set_tex_repeat_ext()");}function gpu_set_tex_mip_filter(filter){_Fb("gpu_set_tex_mip_filter(filter)");}function gpu_set_tex_mip_filter_ext(_Aw,filter){_Fb("gpu_set_tex_mip_filter_ext(sampler_id, filter)");}function gpu_set_tex_mip_bias(_Bw){_Fb("gpu_set_tex_mip_bias(bias)");}function gpu_set_tex_mip_bias_ext(_Aw,
_Bw){_Fb("gpu_set_tex_mip_bias_ext(sampler_id, bias)");}function gpu_set_tex_min_mip(_Cw){_Fb("gpu_set_tex_min_mip(minmip)");}function gpu_set_tex_min_mip_ext(_Aw,_Cw){_Fb("gpu_set_tex_min_mip_ext(sampler_id, minmip)");}function gpu_set_tex_max_mip(_Dw){_Fb("gpu_set_tex_max_mip(maxmip)");}function gpu_set_tex_max_mip_ext(_Aw,_Dw){_Fb("gpu_set_tex_max_mip_ext(sampler_id, maxmip)");}function gpu_set_tex_max_aniso(_Ew){_Fb("gpu_set_tex_max_aniso(maxaniso)");}function gpu_set_tex_max_aniso_ext(_Aw,_Ew){_Fb("gpu_set_tex_max_aniso_ext(sampler_id, maxaniso)");
}function gpu_set_tex_mip_enable(_Fw){_Fb("gpu_set_tex_mip_enable(setting)");}function gpu_set_tex_mip_enable_ext(_Aw,_Fw){_Fb("gpu_set_tex_mip_enable_ext(sampler_id, setting)");}function gpu_get_blendenable(){_Fb("gpu_get_blendenable()");}function gpu_get_ztestenable(){_Fb("gpu_get_ztestenable()");}function gpu_get_zfunc(){_Fb("gpu_get_zfunc()");}function gpu_get_zwriteenable(){_Fb("gpu_get_zwriteenable()");}function gpu_get_fog(){_Fb("gpu_get_fog()");}function gpu_get_cullmode(){_Fb("gpu_get_cullmode()");
}function gpu_get_blendmode(){_Fb("gpu_get_blendmode()");}function gpu_get_blendmode_ext(){_Fb("gpu_get_blendmode_ext()");}function gpu_get_blendmode_ext_sepalpha(){_Fb("gpu_get_blendmode_ext_sepalpha()");}function gpu_get_blendmode_src(){_Fb("gpu_get_blendmode_src()");}function gpu_get_blendmode_dest(){_Fb("gpu_get_blendmode_dest()");}function gpu_get_blendmode_srcalpha(){_Fb("gpu_get_blendmode_srcalpha()");}function gpu_get_blendmode_destalpha(){_Fb("gpu_get_blendmode_destalpha()");}function gpu_get_colorwriteenable(){
_Fb("gpu_get_colorwriteenable()");}function gpu_get_colourwriteenable(){_Fb("gpu_get_colourwriteenable()");}function gpu_get_alphatestenable(){_Fb("gpu_get_alphatestenable()");}function gpu_get_alphatestref(){_Fb("gpu_get_alphatestref()");}function gpu_get_texfilter(){_Fb("gpu_get_texfilter()");}function gpu_get_texfilter_ext(_Aw){_Fb("gpu_get_texfilter_ext()");}function gpu_get_texrepeat(){_Fb("gpu_get_texrepeat()");}function gpu_get_texrepeat_ext(_Aw){_Fb("gpu_get_texrepeat_ext()");}function gpu_get_tex_filter(){
_Fb("gpu_get_tex_filter()");}function gpu_get_tex_filter_ext(_Aw){_Fb("gpu_get_tex_filter_ext()");}function gpu_get_tex_repeat(){_Fb("gpu_get_tex_repeat()");}function gpu_get_tex_repeat_ext(_Aw){_Fb("gpu_get_tex_repeat_ext()");}function gpu_get_tex_mip_filter(){_Fb("gpu_get_tex_mip_filter()");}function gpu_get_tex_mip_filter_ext(_Aw){_Fb("gpu_get_tex_mip_filter_ext(sampler_id)");}function gpu_get_tex_mip_bias(){_Fb("gpu_get_tex_mip_bias()");}function gpu_get_tex_mip_bias_ext(_Aw){_Fb("gpu_get_tex_mip_bias_ext(sampler_id)");
}function gpu_get_tex_min_mip(){_Fb("gpu_get_tex_min_mip()");}function gpu_get_tex_min_mip_ext(_Aw){_Fb("gpu_get_tex_min_mip_ext(sampler_id)");}function gpu_get_tex_max_mip(){_Fb("gpu_get_tex_max_mip()");}function gpu_get_tex_max_mip_ext(_Aw){_Fb("gpu_get_tex_max_mip_ext(sampler_id)");}function gpu_get_tex_max_aniso(){_Fb("gpu_get_tex_max_aniso()");}function gpu_get_tex_max_aniso_ext(_Aw){_Fb("gpu_get_tex_max_aniso_ext(sampler_id)");}function gpu_get_tex_mip_enable(){_Fb("gpu_get_tex_mip_enable()");}function gpu_get_tex_mip_enable_ext(_Aw){
_Fb("gpu_get_tex_mip_enable_ext(sampler_id)");}function gpu_push_state(){_Fb("gpu_push_state()");}function gpu_pop_state(){_Fb("gpu_pop_state()");}function gpu_get_state(){_Fb("gpu_get_state()");}function gpu_set_state(map){_Fb("gpu_set_state()");}var _Gw=[];var _Hw=50;var _Iw=0;var _Jw=new Array(_Hw+1);function _Kw(){if(!_s8){return;}_yu=_Lw;_zu=_Mw;_Bu=_Nw;_Du=_Ow;_Eu=_Pw;_Gu=_Qw;_Au=_Rw;_Hu=_Sw;_Lu=_Sw;_zv=_Tw;_Av=_Uw;_Kv=_Vw;_Ov=_Ww;_Pv=_Xw;_Qv=_Yw;_Rv=_Zw;_Vv=__w;_Xv=_0x;_Yv=_1x;_Zv=_2x;__v=_3x;_3w=_4x;
_4w=_5x;_5w=_6x;_6w=_7x;_7w=_8x;_8w=_9x;_9w=_ax;_pw=_bx;_qw=_cx;_rw=_dx;_sw=_ex;_tw=_fx;_uw=_gx;_Xu=_hx;_1v=_ix;_3v=_jx;_4v=_kx;_5v=_lx;_6v=_mx;_Mu=_nx;_Nu=_ox;_Pu=_px;_Ru=_qx;_Su=_rx;_Tu=_sx;_Uu=_tx;_Vu=_ux;_Wu=_vx;_7v=_wx;_8v=_xx;_9v=_yx;_av=_zx;_cv=_Ax;_dv=_Bx;_ev=_Cx;_fv=_Dx;_gv=_Ex;_hv=_Fx;_jv=_Gx;_iv=_Gx;_kv=_Hx;_mv=_Ix;_lv=_Ix;_nv=_Jx;_ov=_Kx;_pv=_Lx;_qv=_Mx;_sv=_Nx;_tv=_Ox;_uv=_Px;_vv=_Qx;_wv=_Rx;_xv=_Sx;_yv=_Tx;matrix_get=_Ux;matrix_set=_Vx;matrix_build=_bw;matrix_multiply=_cw;matrix_transform_vertex=_dw;
matrix_stack_push=_ew;matrix_stack_pop=_fw;matrix_stack_set=_gw;matrix_stack_clear=_hw;matrix_stack_top=_iw;matrix_stack_is_empty=_jw;gpu_set_blendmode=_Wx;gpu_set_blendenable=_Xx;gpu_set_ztestenable=_Yx;gpu_set_zfunc=_Zx;gpu_set_zwriteenable=__x;gpu_set_fog=_0y;gpu_set_cullmode=_1y;gpu_set_blendmode=_Wx;gpu_set_blendmode_ext=_2y;gpu_set_blendmode_ext_sepalpha=_3y;gpu_set_colorwriteenable=_4y;gpu_set_colourwriteenable=_5y;gpu_set_alphatestenable=_6y;gpu_set_alphatestref=_7y;gpu_set_texfilter=_8y;
gpu_set_texfilter_ext=_9y;gpu_set_texrepeat=_ay;gpu_set_texrepeat_ext=_by;gpu_set_tex_filter=_8y;gpu_set_tex_filter_ext=_9y;gpu_set_tex_repeat=_ay;gpu_set_tex_repeat_ext=_by;gpu_set_tex_mip_filter=_cy;gpu_set_tex_mip_filter_ext=_dy;gpu_set_tex_mip_bias=_ey;gpu_set_tex_mip_bias_ext=_fy;gpu_set_tex_min_mip=_gy;gpu_set_tex_min_mip_ext=_hy;gpu_set_tex_max_mip=_iy;gpu_set_tex_max_mip_ext=_jy;gpu_set_tex_max_aniso=_ky;gpu_set_tex_max_aniso_ext=_ly;gpu_set_tex_mip_enable=_my;gpu_set_tex_mip_enable_ext=_ny;
gpu_get_blendenable=_oy;gpu_get_ztestenable=_py;gpu_get_zfunc=_qy;gpu_get_zwriteenable=_ry;gpu_get_fog=_sy;gpu_get_cullmode=_ty;gpu_get_blendmode=_uy;gpu_get_blendmode_ext=_vy;gpu_get_blendmode_ext_sepalpha=_wy;gpu_get_blendmode_src=_xy;gpu_get_blendmode_dest=_yy;gpu_get_blendmode_srcalpha=_zy;gpu_get_blendmode_destalpha=_Ay;gpu_get_colorwriteenable=_By;gpu_get_colourwriteenable=_Cy;gpu_get_alphatestenable=_Dy;gpu_get_alphatestref=_Ey;gpu_get_texfilter=_Fy;gpu_get_texfilter_ext=_Gy;gpu_get_texrepeat=_Hy;
gpu_get_texrepeat_ext=_Iy;gpu_get_tex_filter=_Fy;gpu_get_tex_filter_ext=_Gy;gpu_get_tex_repeat=_Hy;gpu_get_tex_repeat_ext=_Iy;gpu_get_tex_mip_filter=_Jy;gpu_get_tex_mip_filter_ext=_Ky;gpu_get_tex_mip_bias=_Ly;gpu_get_tex_mip_bias_ext=_My;gpu_get_tex_min_mip=_Ny;gpu_get_tex_min_mip_ext=_Oy;gpu_get_tex_max_mip=_Py;gpu_get_tex_max_mip_ext=_Qy;gpu_get_tex_max_aniso=_Ry;gpu_get_tex_max_aniso_ext=_Sy;gpu_get_tex_mip_enable=_Ty;gpu_get_tex_mip_enable_ext=_Uy;gpu_push_state=_Vy;gpu_pop_state=_Wy;gpu_get_state=_Xy;
gpu_set_state=_Yy;_Jw[0]=new _Zy();}function _Lw(){__y=true;_s8._0z(_1z);_s8._2z(_3z);_s8._4z(_5z);}function _Mw(){__y=false;_s8._0z(false);_s8._2z(false);_s8._4z(false);}function _Nw(_6z){_5z=_6z>0.5;_s8._4z(_5z);}function _Ow(_Xr){}function _Pw(_7z){_3z=(_7z>0.5);_s8._2z(_3z);}function _Qw(_8z){if(__y||_U3){_Va=Math.min(16000.0,Math.max(-16000.0,_8z));}else {_Va=0.0;}}function _Rw(_9z){_1z=(_9z>0.5);_s8._0z(_1z);}function _Sw(_Iu,_Ju,_Ku,alpha){_az._Iu=(_Iu>=0.5);_az._Ju=(_Ju>=0.5);_az._Ku=(_Ku>=0.5);_az.alpha=(alpha>=0.5);
_s8._bz(_az._Iu,_az._Ju,_az._Ku,_az.alpha);}function _Tw(_cz){_dz=_cz;}function _nx(_cz){if(_ez!=_cz){_ez=_cz;_s8._fz(_gz());}}function _vx(){return _ez;}function _Uw(_Bv,_Cv,_Dv,_Ev,_Fv,_Gv,_Hv,_Iv,_Jv){var _hz=new _Zy();var _Lk=new _iz(_Bv,_Cv,_Dv);var _jz=new _iz(_Ev,_Fv,_Gv);var _kz=new _iz(_Hv,_Iv,_Jv);_hz._lz(_Lk,_jz,_kz);_s8._mz(_hz);}function _Vw(_Bv,_Cv,_Dv,_Ev,_Fv,_Gv,_Hv,_Iv,_Jv,angle,_Lv,_nz,_oz){var _hz=new _Zy();var _Lk=new _iz(_Bv,_Cv,_Dv);var _jz=new _iz(_Ev,_Fv,_Gv);var _kz=new _iz(_Hv,_Iv,_Jv);_hz._lz(_Lk,
_jz,_kz);var _uu=new _Zy();_uu._pz(angle,_Lv,_nz,_oz);_uu._K6[_qz]*=_rz;_s8._mz(_hz);_s8._sz(_uu);}function _Ww(x,y,w,h,angle){var _hz=new _Zy();var _jb=new _iz(x+(w/2.0),y+(h/2.0),-w);var _p5=new _iz(x+(w/2.0),y+(h/2.0),0.0);var _kb=new _iz(Math.sin(-angle*(Math.PI/180.0)),Math.cos(-angle*(Math.PI/180.0)),0.0);_hz._lz(_jb,_p5,_kb);var _tz=new _Zy();_tz._uz(w,-h*_rz,1.0,32000.0);_s8._mz(_hz);_s8._sz(_tz);}function _Xw(x,y,w,h,angle){var _hz=new _Zy();var _jb=new _iz(x+(w/2.0),y+(h/2.0),-w);var _p5=new _iz(x+(w/2.0),
y+(h/2.0),0.0);var _kb=new _iz(Math.sin(-angle*(Math.PI/180.0)),Math.cos(-angle*(Math.PI/180.0)),0.0);_hz._lz(_jb,_p5,_kb);var _uu=new _Zy();_uu._vz(1.0,(h/w),1.0,32000.0);_uu._K6[_qz]*=_rz;_s8._mz(_hz);_s8._sz(_uu);}function _hx(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,__u,_0v){var _wz=_xz();_yz(true);_Kb(_ac,_Gb);{_Xb(_L6,_M6,_Yu,0,0,1,0,0);_Xb(_L6,_O6,_Yu,0,0,1,0,_0v);_Xb(_N6,_O6,_Zu,0,0,1,__u,_0v);_Xb(_N6,_M6,_Zu,0,0,1,__u,0);}__b();_yz(_wz);}function _ix(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,_zz,_Az,_2v){var _wz=_xz();_yz(true);
if(_2v<3){_2v=3;}if(_2v>128){_2v=128;}var _m7=[];var _l7=[];for(var i=0;i<=_2v;i++){_m7[i]=Math.cos(i*2.0*Math.PI/_2v);_l7[i]=Math.sin(i*2.0*Math.PI/_2v);}var _h7=(_N6+_L6)/2,_i7=(_O6+_M6)/2,_Bz=(_Zu+_Yu)/2,_Cz=(_N6-_L6)/2,_Dz=(_O6-_M6)/2,_Ez=(_Zu-_Yu)/2;var _Fz=(_2v+1)/2;for(var _17=0;_17<_Fz;_17++){var _Gz=Math.cos(_17*Math.PI/_Fz),_Hz=Math.sin(_17*Math.PI/_Fz),_Iz=Math.cos((_17+1)*Math.PI/_Fz),_Jz=Math.sin((_17+1)*Math.PI/_Fz);_Kb(_9c,_Gb);for(var i=0;i<=_2v;i++){_Xb(_h7+_Cz*_Hz*_m7[i],_i7+_Dz*_Hz*_l7[i],
_Bz+_Ez*_Gz,_Hz*_m7[i],_Hz*_l7[i],_Gz,_zz*i/_2v,_17*_Az/_Fz);_Xb(_h7+_Cz*_Jz*_m7[i],_i7+_Dz*_Jz*_l7[i],_Bz+_Ez*_Iz,_Jz*_m7[i],_Jz*_l7[i],_Iz,_zz*i/_2v,(_17+1)*_Az/_Fz);}__b();}_yz(_wz);}function _jx(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,_zz,_Az){var _wz=_xz();_yz(true);_Kb(_8c,_Gb);{_Xb(_L6,_M6,_Yu,0,0,-1,0,0);_Xb(_L6,_O6,_Yu,0,0,-1,0,_Az);_Xb(_N6,_O6,_Yu,0,0,-1,_zz,_Az);_Xb(_N6,_O6,_Yu,0,0,-1,_zz,_Az);_Xb(_N6,_M6,_Yu,0,0,-1,_zz,0);_Xb(_L6,_M6,_Yu,0,0,-1,0,0);}{_Xb(_L6,_M6,_Zu,0,0,1,0,0);_Xb(_N6,_M6,_Zu,0,0,
1,_zz,0);_Xb(_N6,_O6,_Zu,0,0,1,_zz,_Az);_Xb(_N6,_O6,_Zu,0,0,1,_zz,_Az);_Xb(_L6,_O6,_Zu,0,0,1,0,_Az);_Xb(_L6,_M6,_Zu,0,0,1,0,0);}{_Xb(_L6,_O6,_Yu,0,1,0,0,0);_Xb(_L6,_O6,_Zu,0,1,0,0,_Az);_Xb(_N6,_O6,_Zu,0,1,0,_zz,_Az);_Xb(_N6,_O6,_Zu,0,1,0,_zz,_Az);_Xb(_N6,_O6,_Yu,0,1,0,_zz,0);_Xb(_L6,_O6,_Yu,0,1,0,0,0);}{_Xb(_N6,_O6,_Yu,1,0,0,0,0);_Xb(_N6,_O6,_Zu,1,0,0,0,_Az);_Xb(_N6,_M6,_Zu,1,0,0,_zz,_Az);_Xb(_N6,_M6,_Zu,1,0,0,_zz,_Az);_Xb(_N6,_M6,_Yu,1,0,0,_zz,0);_Xb(_N6,_O6,_Yu,1,0,0,0,0);}{_Xb(_N6,_M6,_Yu,0,-1,
0,0,0);_Xb(_N6,_M6,_Zu,0,-1,0,0,_Az);_Xb(_L6,_M6,_Zu,0,-1,0,_zz,_Az);_Xb(_L6,_M6,_Zu,0,-1,0,_zz,_Az);_Xb(_L6,_M6,_Yu,0,-1,0,_zz,0);_Xb(_N6,_M6,_Yu,0,-1,0,0,0);}{_Xb(_L6,_M6,_Yu,-1,0,0,0,0);_Xb(_L6,_M6,_Zu,-1,0,0,0,_Az);_Xb(_L6,_O6,_Zu,-1,0,0,_zz,_Az);_Xb(_L6,_O6,_Zu,-1,0,0,_zz,_Az);_Xb(_L6,_O6,_Yu,-1,0,0,_zz,0);_Xb(_L6,_M6,_Yu,-1,0,0,0,0);}__b();_yz(_wz);}function _kx(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,_zz,_Az,closed,_2v){var _m7=[];var _l7=[];var _wz=_xz();_yz(true);if(_2v<3){_2v=3;}if(_2v>128){_2v=128;}for(var i=0;
i<=_2v;i++){_m7[i]=Math.cos(i*2.0*Math.PI/_2v);_l7[i]=Math.sin(i*2.0*Math.PI/_2v);}var _h7=(_N6+_L6)/2.0;var _i7=(_O6+_M6)/2.0;var _Cz=(_N6-_L6)/2.0;var _Dz=(_O6-_M6)/2.0;if(true==closed){_Kb(_ac,_Gb);_Xb(_h7,_i7,_Zu,0,0,1,0,_Az);for(var i=0;i<=_2v;i++){_Xb(_h7+_m7[i]*_Cz,_i7+_l7[i]*_Dz,_Zu,0,0,1,0,_Az);}__b();}_Kb(_9c,_Gb);for(var i=0;i<=_2v;i++){_Xb(_h7+_m7[i]*_Cz,_i7+_l7[i]*_Dz,_Zu,_m7[i],_l7[i],0,_zz*i/_2v,_Az);_Xb(_h7+_m7[i]*_Cz,_i7+_l7[i]*_Dz,_Yu,_m7[i],_l7[i],0,_zz*i/_2v,0);}__b();if(true==closed){
_Kb(_ac,_Gb);_Xb(_h7,_i7,_Yu,0,0,-1,0,0);for(var i=_2v;i>=0;i--){_Xb(_h7+_m7[i]*_Cz,_i7+_l7[i]*_Dz,_Yu,0,0,-1,0,0);}__b();}_yz(_wz);}function _lx(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,_zz,_Az,closed,_2v){var _m7=[];var _l7=[];var _wz=_xz();_yz(true);if(_2v<3){_2v=3;}if(_2v>128){_2v=128;}for(var i=0;i<=_2v;i++){_m7[i]=Math.cos(i*2.0*Math.PI/_2v);_l7[i]=Math.sin(i*2.0*Math.PI/_2v);}var _h7=(_N6+_L6)/2.0;var _i7=(_O6+_M6)/2.0;var _Cz=(_N6-_L6)/2.0;var _Dz=(_O6-_M6)/2.0;_Kb(_9c,_Gb);for(var i=0;i<=_2v;i++){_Xb(_h7,_i7,_Zu,
0,0,1,_zz*i/_2v,_Az);_Xb(_h7+_m7[i]*_Cz,_i7+_l7[i]*_Dz,_Yu,_m7[i],_l7[i],0,_zz*i/_2v,0);}__b();if(true==closed){_Kb(_ac,_Gb);_Xb(_h7,_i7,_Yu,0,0,-1,0,0);for(var i=_2v;i>=0;i--){_Xb(_h7+_m7[i]*_Cz,_i7+_l7[i]*_Dz,_Yu,0,0,-1,0,0);}__b();}_yz(_wz);}function _mx(_L6,_M6,_Yu,_N6,_O6,_Zu,_Gb,_zz,_Az){var _wz=_xz();_yz(true);var _V6=Math.sqrt(_Kz(_N6-_L6)+_Kz(_O6-_M6));if(_V6==0.0){return;}var _Sb=(_O6-_M6)/_V6;var _Tb=-(_N6-_L6)/_V6;_Kb(_ac,_Gb);{_Xb(_L6,_M6,_Yu,_Sb,_Tb,0,0,0);_Xb(_N6,_O6,_Yu,_Sb,_Tb,0,_zz,0);
_Xb(_N6,_O6,_Zu,_Sb,_Tb,0,_zz,_Az);_Xb(_L6,_M6,_Zu,_Sb,_Tb,0,0,_Az);}__b();_yz(_wz);}function _ox(_t9,_fb,_gb,_Ou,_L4){var _Lz=new _iz(_fb,_gb,_Ou);_Lz._Mz();var _Nz=_t9*4;_Oz[_Nz+0]=_Lz._Pz;_Oz[_Nz+1]=_Lz._Qz;_Oz[_Nz+2]=_Lz._Rz;_Oz[_Nz+3]=0.0;_Sz[_Nz+0]=(_L4&0xff)/255.0;_Sz[_Nz+1]=((_L4>>8)&0xff)/255.0;_Sz[_Nz+2]=((_L4>>16)&0xff)/255.0;_Sz[_Nz+3]=1.0;_Tz[_t9]=_Uz;_Vz[_Nz+0]=0;_Vz[_Nz+1]=0;_Vz[_Nz+2]=0;_Vz[_Nz+3]=0;_s8._Wz(_t9,_Vz.subarray(_t9*4,(_t9+1)*4),_Oz.subarray(_t9*4,(_t9+1)*4),_Sz.subarray(_t9*4,
(_t9+1)*4));}function _ux(){var _L4=(((_Xz[0]*255.0))&0xff)|(((_Xz[1]*255.0)<<8)&0xff00)|(((_Xz[2]*255.0)<<16)&0xff0000)|(((_Xz[3]*255.0)<<24)&0xff000000);return _L4;}function _tx(index){var _P4=[];if(index<0||index>7){console.log("draw_light_get() - light index out of range");return;}var _Nz=index*4;_P4[0]=_Yz[index];_P4[1]=_Tz[index];if(_Tz[index]==_Uz){_P4[2]=_Oz[_Nz+0];_P4[3]=_Oz[_Nz+1];_P4[4]=_Oz[_Nz+2];_P4[5]=_Oz[_Nz+3];}else {_P4[2]=_Vz[_Nz+0];_P4[3]=_Vz[_Nz+1];_P4[4]=_Vz[_Nz+2];_P4[5]=_Vz[_Nz+3];
}var _D4=(((_Sz[_Nz+0]*255.0))&0xff);var _E4=(((_Sz[_Nz+1]*255.0)<<8)&0xff00);var _F4=(((_Sz[_Nz+2]*255.0)<<16)&0xff0000);var _G4=(((_Sz[_Nz+3]*255.0)<<24)&0xff000000);var _L4=_D4|_E4|_F4|_G4;_P4[6]=_L4;return _P4;}function _px(_t9,x,y,z,_Qu,_L4){var _Nz=_t9*4;_Vz[_Nz+0]=x;_Vz[_Nz+1]=y;_Vz[_Nz+2]=z;_Vz[_Nz+3]=_Qu;_Sz[_Nz+0]=(_L4&0xff)/255.0;_Sz[_Nz+1]=((_L4>>8)&0xff)/255.0;_Sz[_Nz+2]=((_L4>>16)&0xff)/255.0;_Sz[_Nz+3]=1.0;_Tz[_t9]=_Zz;_Oz[_Nz+0]=0;_Oz[_Nz+1]=0;_Oz[_Nz+2]=0;_Oz[_Nz+3]=0;_s8._Wz(_t9,_Vz.subarray(_t9*4,
(_t9+1)*4),_Oz.subarray(_t9*4,(_t9+1)*4),_Sz.subarray(_t9*4,(_t9+1)*4));}function _qx(_t9,enable){_Yz[_t9]=enable;_s8.__z(_t9,enable,_Sz.subarray(_t9*4,(_t9+1)*4));}function _rx(colour){_Xz[0]=(colour&0xff)/255.0;_Xz[1]=((colour>>8)&0xff)/255.0;_Xz[2]=((colour>>16)&0xff)/255.0;_Xz[3]=((colour>>24)&0xff)/255.0;_s8._0A(_Xz);}function _sx(enable,colour,start,end){if(_1A==null){_1A=new Float32Array(8);}_1A[0]=enable;var _Qu=end-start;_1A[1]=(_Qu==0.0)?0.0:(1.0/_Qu);_1A[2]=end;_1A[3]=0.0;_1A[4]=(colour&0xff)/255.0;
_1A[5]=((colour>>8)&0xff)/255.0;_1A[6]=((colour>>16)&0xff)/255.0;_1A[7]=((colour>>24)&0xff)/255.0;_s8._2A(_1A);}function _wx(){return(_Gw.push(new _3A())-1);}function _xx(_t9){if(_Gw[_t9]){_Gw[_t9]._Tf();_Gw[_t9]=null;}}function _yx(_t9){if(_Gw[_t9]){_Gw[_t9]._Tf();}}function _zx(_t9,_bv){if(_Gw[_t9]){_Gw[_t9]._4A(_bv);}}function _Bx(_t9,_5A){}function _Ax(_t9,_bv){if(_Gw[_t9]){_Gw[_t9]._G8(_bv);}}function _Cx(_t9,_5A){}function _Dx(_t9,x,y,z,_Gb){if(_Gw[_t9]){_Gw[_t9]._a9(x,y,z,_Gb);}}function _Ex(_t9,kind){
if(_Gw[_t9]){_Gw[_t9]._zd(kind);}}function _Fx(_t9,x,y,z){if(_Gw[_t9]){_Gw[_t9].Vertex(x,y,z);}}function _Gx(_t9,x,y,z,_L4,alpha){if(_Gw[_t9]){_Gw[_t9]._6A(x,y,z,_L4,alpha);}}function _Hx(_t9,x,y,z,_Hb,_Ib){if(_Gw[_t9]){_Gw[_t9]._7A(x,y,z,_Hb,_Ib);}}function _Ix(_t9,x,y,z,_Hb,_Ib,_L4,alpha){if(_Gw[_t9]){_Gw[_t9]._8A(x,y,z,_Hb,_Ib,_L4,alpha);}}function _Jx(_t9,x,y,z,_Sb,_Tb,_Ub){if(_Gw[_t9]){_Gw[_t9]._9A(x,y,z,_Sb,_Tb,_Ub);}}function _Kx(_t9,x,y,z,_Sb,_Tb,_Ub,_L4,alpha){if(_Gw[_t9]){_Gw[_t9]._aA(x,y,z,
_Sb,_Tb,_Ub,_L4,alpha);}}function _Lx(_t9,x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib){if(_Gw[_t9]){_Gw[_t9]._bA(x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib);}}function _Mx(_t9,x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib,_L4,alpha){if(_Gw[_t9]){_Gw[_t9]._cA(x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib,_L4,alpha);}}function _Nx(_t9){if(_Gw[_t9]){_Gw[_t9]._Bd();}}function _Ox(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v){if(_Gw[_t9]){_Gw[_t9]._dA(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v);}}function _Px(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,closed,_2v){if(_Gw[_t9]){_Gw[_t9]._eA(_L6,_M6,_Yu,_N6,
_O6,_Zu,__u,_0v,closed,_2v);}}function _Qx(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,closed,_2v){if(_Gw[_t9]){_Gw[_t9]._fA(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,closed,_2v);}}function _Rx(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,_2v){if(_Gw[_t9]){_Gw[_t9]._gA(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,_2v);}}function _Sx(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v){if(_Gw[_t9]){_Gw[_t9]._hA(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v);}}function _Tx(_t9,_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v){if(_Gw[_t9]){_Gw[_t9]._iA(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v);}}
function _Yw(){_jA(_kA,new _Zy());}function _Zw(_Sv,_Tv,_Uv){var _K6=new _Zy();_K6._lA(_Sv,_Tv,_Uv);_jA(_kA,_K6);}function __w(_59,_69,_Wv){var _K6=new _Zy();_K6._mA(_59,_69,_Wv);_jA(_kA,_K6);}function _0x(angle){var _K6=new _Zy();_K6._nA(angle);_jA(_kA,_K6);}function _1x(angle){var _K6=new _Zy();_K6._oA(angle);_jA(_kA,_K6);}function _2x(angle){var _K6=new _Zy();_K6._pA(angle);_jA(_kA,_K6);}function _3x(_0w,_1w,_2w,angle){var _K6=new _Zy();_K6._qA(new _iz(_0w,_1w,_2w),-angle);_jA(_kA,_K6);}function _4x(_Sv,_Tv,_Uv){var _kh=new _Zy();
_kh._lA(_Sv,_Tv,_Uv);var _rA=_sA(_kA);var _K6=new _Zy();_K6.Multiply(_rA,_kh);_jA(_kA,_K6);}function _5x(_59,_69,_Wv){var _tA=new _Zy();_tA._mA(_59,_69,_Wv);var _rA=_sA(_kA);var _K6=new _Zy();_K6.Multiply(_rA,_tA);_jA(_kA,_K6);}function _6x(angle){var _uA=new _Zy();_uA._nA(angle);var _rA=_sA(_kA);var _K6=new _Zy();_K6.Multiply(_rA,_uA);_jA(_kA,_K6);}function _7x(angle){var _uA=new _Zy();_uA._oA(angle);var _rA=_sA(_kA);var _K6=new _Zy();_K6.Multiply(_rA,_uA);_jA(_kA,_K6);}function _8x(angle){var _uA=new _Zy();_uA._pA(angle);
var _rA=_sA(_kA);var _K6=new _Zy();_K6.Multiply(_rA,_uA);_jA(_kA,_K6);}function _9x(_0w,_1w,_2w,angle){var _uA=new _Zy();_uA._qA(new _iz(_0w,_1w,_2w),-angle);var _rA=_sA(_kA);var _K6=new _Zy();_K6.Multiply(_rA,_uA);_jA(_kA,_K6);}function _ax(_Q5,_R5,_Zc){var _rA=_sA(_kA);var _27=(_rA._K6[_vA]*_Q5)+(_rA._K6[_wA]*_R5)+(_rA._K6[_xA]*_Zc)+_rA._K6[_yA];var _47=(_rA._K6[_zA]*_Q5)+(_rA._K6[_qz]*_R5)+(_rA._K6[_AA]*_Zc)+_rA._K6[_BA];var _CA=(_rA._K6[_DA]*_Q5)+(_rA._K6[_EA]*_R5)+(_rA._K6[_FA]*_Zc)+_rA._K6[_GA];var _D4=[];
_D4[0]=_27;_D4[1]=_47;_D4[2]=_CA;return _D4;}function _bx(){_HA();}function _cx(){return _IA();}function _dx(){var _rA=_sA(_kA);return _JA(_rA);}function _ex(){return _KA();}function _fx(){return _LA();}function _gx(){return _MA();}function _Ux(_ld){_ld=yyGetInt32(_ld);var _K6=[];if(_ld<0||_ld>2){_55('ERROR: Invalid matrix type (matrix_get)');for(var i=0;i<16;i++){_K6[i]=0;}return _K6;}var _NA=_OA[_ld];for(var i=0;i<16;i++){_K6[i]=_NA._K6[i];}return _K6;}function _Vx(_ld,_aw){_ld=yyGetInt32(_ld);if(_ld<0||_ld>2){_55('ERROR: Invalid matrix type (matrix_get)');
return;}_jA(_ld,_aw);}function _kw(){return [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,];}function _lw(_Bv,_Cv,_Dv,_Ev,_Fv,_Gv,_Hv,_Iv,_Jv){var _K6=new _Zy();var _PA=new _iz(yyGetReal(_Bv),yyGetReal(_Cv),yyGetReal(_Dv));var _QA=new _iz(yyGetReal(_Ev),yyGetReal(_Fv),yyGetReal(_Gv));var _RA=new _iz(yyGetReal(_Hv),yyGetReal(_Iv),yyGetReal(_Jv));_K6._lz(_PA,_QA,_RA);var _NA=[];for(var i=0;i<16;i++){_NA[i]=_K6._K6[i];}return _NA;}function _mw(width,height,_nz,_oz){var _K6=new _Zy();_K6._uz(yyGetReal(width),yyGetReal(height),yyGetReal(_nz),
yyGetReal(_oz));var _NA=[];for(var i=0;i<16;i++){_NA[i]=_K6._K6[i];}return _NA;}function _nw(width,height,_nz,_oz){var _K6=new _Zy();_K6._vz(yyGetReal(width),yyGetReal(height),yyGetReal(_nz),yyGetReal(_oz));var _NA=[];for(var i=0;i<16;i++){_NA[i]=_K6._K6[i];}return _NA;}function _ow(_SA,_Lv,_nz,_oz){var _K6=new _Zy();_K6._pz(yyGetReal(_SA),yyGetReal(_Lv),yyGetReal(_nz),yyGetReal(_oz));var _NA=[];for(var i=0;i<16;i++){_NA[i]=_K6._K6[i];}return _NA;}function _bw(_Q5,_R5,_Zc,_TA,_UA,_VA,_2o,_3o,_WA){var _K6=new _Zy();
var _XA=(Math.PI/180.0);_TA=(_XA*-yyGetReal(_TA));_UA=(_XA*-yyGetReal(_UA));_VA=(_XA*-yyGetReal(_VA));_K6._YA(yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_Zc),_TA,_UA,_VA,yyGetReal(_2o),yyGetReal(_3o),yyGetReal(_WA));var _NA=[];for(var i=0;i<16;i++){_NA[i]=_K6._K6[i];}return _NA;}function _cw(_ZA,__A){var _0B=new _Zy();var _1B=new _Zy();var _2B=new _Zy();for(var i=0;i<16;i++){_0B._K6[i]=yyGetReal(_ZA[i]);_1B._K6[i]=yyGetReal(__A[i]);}_2B.Multiply(_0B,_1B);var _NA=[];for(var i=0;i<16;i++){_NA[i]=_2B._K6[i];}return _NA;
}function _dw(_3B,_Q5,_R5,_Zc){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_Zc=yyGetReal(_Zc);var _27=(_3B[_vA]*_Q5)+(_3B[_wA]*_R5)+(_3B[_xA]*_Zc)+_3B[_yA];var _47=(_3B[_zA]*_Q5)+(_3B[_qz]*_R5)+(_3B[_AA]*_Zc)+_3B[_BA];var _CA=(_3B[_DA]*_Q5)+(_3B[_EA]*_R5)+(_3B[_FA]*_Zc)+_3B[_GA];var _rb=[_27,_47,_CA];return _rb;}function _ew(_aw){if(_Iw>=_Hw){return;}_Iw++;if(arguments.length==0){_Jw[_Iw]=new _Zy(_Jw[_Iw-1]);}else {var _NA=new _Zy();var i;for(i=0;i<16;i++){_NA._K6[i]=_aw[i];}_Jw[_Iw]=new _Zy();_Jw[_Iw].Multiply(_NA,
_Jw[_Iw-1]);}}function _fw(){_Iw--;if(_Iw<0){_hw();}}function _hw(){_Iw=0;_Jw[0]=new _Zy();}function _gw(_aw){_Jw[_Iw]=new _Zy(_aw);}function _iw(){var elements=new Array(16);var i;for(i=0;i<16;i++){elements[i]=_Jw[_Iw]._K6[i];}return elements;}function _jw(){if(_Iw==0)return true;else return false;}function _Xx(_cz){_s8._oa._Ga(_ca._4B,yyGetInt32(_cz)>=0.5);}function _Yx(_cz){_s8._oa._Ga(_ca._5B,yyGetInt32(_cz)>=0.5);}function _Zx(_6B){_s8._oa._Ga(_ca._7B,yyGetInt32(_6B));}function __x(_cz){_s8._oa._Ga(_ca._8B,yyGetInt32(_cz)>=0.5);
}function _0y(_cz,_0d,_9B,_aB){if(Array.isArray(_cz)){var _bB=_cz;_cz=_bB[0];_0d=_bB[1];_9B=_bB[2];_aB=_bB[3];}_cz=yyGetBool(_cz);_0d=yyGetInt32(_0d)|0xff000000;_9B=yyGetReal(_9B);_aB=yyGetReal(_aB);_s8._oa._Ga(_ca._cB,_cz);_s8._oa._Ga(_ca._dB,_0d);_s8._oa._Ga(_ca._eB,_9B);_s8._oa._Ga(_ca._fB,_aB);_1A[0]=_cz;var _Qu=_aB-_9B;_1A[1]=(_Qu==0.0)?0.0:(1.0/_Qu);_1A[2]=_aB;_1A[3]=0.0;_1A[4]=(_0d&0xff)/255.0;_1A[5]=((_0d>>8)&0xff)/255.0;_1A[6]=((_0d>>16)&0xff)/255.0;_1A[7]=1.0;_s8._2A(_1A);}function _1y(_gB){
_s8._oa._Ga(_ca._hB,yyGetInt32(_gB));}function _Wx(_nr){switch(yyGetInt32(_nr)){case 1:_s8._oa._Ga(_ca._qa,_ca._da);_s8._oa._Ga(_ca._ra,_ca._ga);_s8._oa._Ga(_ca._sa,_ca._da);_s8._oa._Ga(_ca._ta,_ca._ga);_s8._oa._Ga(_ca._ua,false);break;case 2:_s8._oa._Ga(_ca._qa,_ca._da);_s8._oa._Ga(_ca._ra,_ca._ia);_s8._oa._Ga(_ca._sa,_ca._da);_s8._oa._Ga(_ca._ta,_ca._ia);_s8._oa._Ga(_ca._ua,false);break;case 3:_s8._oa._Ga(_ca._qa,_ca._iB);_s8._oa._Ga(_ca._ra,_ca._ia);_s8._oa._Ga(_ca._sa,_ca._iB);_s8._oa._Ga(_ca._ta,
_ca._ia);_s8._oa._Ga(_ca._ua,false);break;default :_s8._oa._Ga(_ca._qa,_ca._da);_s8._oa._Ga(_ca._ra,_ca._fa);_s8._oa._Ga(_ca._sa,_ca._da);_s8._oa._Ga(_ca._ta,_ca._fa);_s8._oa._Ga(_ca._ua,false);break;}}function _2y(_rj,_4l){var _jB,_kB;if(Array.isArray(_rj)){_jB=yyGetInt32(_rj[0]);_kB=yyGetInt32(_rj[1]);}else {_jB=yyGetInt32(_rj);_kB=yyGetInt32(_4l);}_s8._oa._Ga(_ca._qa,_jB);_s8._oa._Ga(_ca._ra,_kB);_s8._oa._Ga(_ca._sa,_jB);_s8._oa._Ga(_ca._ta,_kB);_s8._oa._Ga(_ca._ua,false);}function _3y(_rj,_4l,_lB,
_mB){var _jB,_kB,_nB,_oB;if(Array.isArray(_rj)){_jB=yyGetInt32(_rj[0]);_kB=yyGetInt32(_rj[1]);_nB=yyGetInt32(_rj[2]);_oB=yyGetInt32(_rj[3]);}else {_jB=yyGetInt32(_rj);_kB=yyGetInt32(_4l);_nB=yyGetInt32(_lB);_oB=yyGetInt32(_mB);}_s8._oa._Ga(_ca._qa,_jB);_s8._oa._Ga(_ca._ra,_kB);_s8._oa._Ga(_ca._sa,_nB);_s8._oa._Ga(_ca._ta,_oB);_s8._oa._Ga(_ca._ua,true);}function _4y(_pB,_qB,_rB,_A9){var _sB;var _tB;var _uB;var _vB;if(Array.isArray(_pB)){var _bB=_pB;_sB=(yyGetInt32(_bB[0])>=0.5);_tB=(yyGetInt32(_bB[1])>=0.5);
_uB=(yyGetInt32(_bB[2])>=0.5);_vB=(yyGetInt32(_bB[3])>=0.5);}else {_sB=(yyGetInt32(_pB)>=0.5);_tB=(yyGetInt32(_qB)>=0.5);_uB=(yyGetInt32(_rB)>=0.5);_vB=(yyGetInt32(_A9)>=0.5);}var _wB={_Iu:_sB,_Ju:_tB,_Ku:_uB,alpha:_vB};_s8._oa._Ga(_ca._xB,_wB);}function _5y(_pB,_qB,_rB,_A9){_4y(_pB,_qB,_rB,_A9);}function _6y(_cz){_yB=(yyGetInt32(_cz)>=0.5)?true:false;_s8._oa._Ga(_ca._zB,yyGetInt32(_cz)>=0.5);}function _7y(_Ln){_AB=yyGetInt32(_Ln)/255.0;_s8._oa._Ga(_ca._BB,yyGetInt32(_Ln));}function _8y(_CB){var _DB=_s8._EB;
var i;if(yyGetBool(_CB)){for(i=0;i<_DB;i++){_s8._oa._FB(i,_ca._GB,_ca._HB);_s8._oa._FB(i,_ca._IB,_ca._HB);}}else {for(i=0;i<_DB;i++){_s8._oa._FB(i,_ca._GB,_ca._JB);_s8._oa._FB(i,_ca._IB,_ca._JB);}}}function _9y(_KB,_CB){var _Aw,_zw;if(Array.isArray(_KB)){var _bB=_KB;_Aw=yyGetInt32(_bB[0]);_zw=yyGetBool(_bB[1]);}else {_Aw=yyGetInt32(_KB);_zw=yyGetBool(_CB);}if(_zw){_s8._oa._FB(_Aw,_ca._GB,_ca._HB);_s8._oa._FB(_Aw,_ca._IB,_ca._HB);}else {_s8._oa._FB(_Aw,_ca._GB,_ca._JB);_s8._oa._FB(_Aw,_ca._IB,_ca._JB);}
}function _ay(_LB){var _DB=_s8._EB;var i;if(yyGetBool(_LB)){for(i=0;i<_DB;i++){_s8._oa._FB(i,_ca._MB,_ca._NB);_s8._oa._FB(i,_ca._OB,_ca._NB);}}else {for(i=0;i<_DB;i++){_s8._oa._FB(i,_ca._MB,_ca._PB);_s8._oa._FB(i,_ca._OB,_ca._PB);}}}function _by(_KB,_LB){var _Aw,repeat;if(Array.isArray(_KB)){var _bB=_KB;_Aw=yyGetInt32(_bB[0]);repeat=yyGetBool(_bB[1]);}else {_Aw=yyGetInt32(_KB);repeat=yyGetBool(_LB);}if(repeat){_s8._oa._FB(_Aw,_ca._MB,_ca._NB);_s8._oa._FB(_Aw,_ca._OB,_ca._NB);}else {_s8._oa._FB(_Aw,_ca._MB,
_ca._PB);_s8._oa._FB(_Aw,_ca._OB,_ca._PB);}}function _cy(_QB){var filter=_QB;for(var i=0;i<_s8._EB;i++){_s8._oa._FB(i,_ca._RB,filter);}}function _dy(_SB,_QB){var _TB=_SB;var filter=_QB;if((_TB<0)||(_TB>=_s8._EB)){return;}_s8._oa._FB(_TB,_ca._RB,filter);}function _ey(_UB){var _Bw=_UB;for(var i=0;i<_s8._EB;i++){_s8._oa._FB(i,_ca._VB,_Bw);}}function _fy(_SB,_UB){var _TB=_SB;var _Bw=_UB;if((_TB<0)||(_TB>=_s8._EB)){return;}_s8._oa._FB(_TB,_ca._VB,_Bw);}function _gy(_WB){var _Cw=_WB;for(var i=0;i<_s8._EB;i++){_s8._oa._FB(i,
_ca._XB,_Cw);}}function _hy(_SB,_WB){var _TB=_SB;var _Cw=_WB;if((_TB<0)||(_TB>=_s8._EB)){return;}_s8._oa._FB(_TB,_ca._XB,_Cw);}function _iy(_YB){var _Dw=_YB;for(var i=0;i<_s8._EB;i++){_s8._oa._FB(i,_ca._ZB,_Dw);}}function _jy(_SB,_YB){var _TB=_SB;var _Dw=_YB;if((_TB<0)||(_TB>=_s8._EB)){return;}_s8._oa._FB(_TB,_ca._ZB,_Dw);}function _ky(__B){var _Ew=__B;for(var i=0;i<_s8._EB;i++){_s8._oa._FB(i,_ca._0C,_Ew);}}function _ly(_SB,__B){var _TB=_SB;var _Ew=__B;if((_TB<0)||(_TB>=_s8._EB)){return;}_s8._oa._FB(_TB,_ca._0C,
_Ew);}function _my(_cz){var enable=_cz;for(var i=0;i<_s8._EB;i++){_s8._oa._FB(i,_ca._1C,enable);}}function _ny(_SB,_cz){var _TB=_SB;var enable=_cz;if((_TB<0)||(_TB>=_s8._EB)){return;}_s8._oa._FB(_TB,_ca._1C,enable);}function _oy(){return _s8._oa._pa(_ca._4B)?1.0:0.0;}function _py(){return _s8._oa._pa(_ca._5B)?1.0:0.0;}function _qy(){return _s8._oa._pa(_ca._7B);}function _ry(){return _s8._oa._pa(_ca._8B)?1.0:0.0;}function _sy(){var _bB=new Array();_bB.push(_s8._oa._pa(_ca._cB)?1.0:0.0);_bB.push(_s8._oa._pa(_ca._dB));
_bB.push(_s8._oa._pa(_ca._eB));_bB.push(_s8._oa._pa(_ca._fB));return _bB;}function _ty(){return _s8._oa._pa(_ca._hB);}function _uy(){var _jB=_s8._oa._pa(_ca._qa);var _kB=_s8._oa._pa(_ca._ra);var _nB=_s8._oa._pa(_ca._sa);var _oB=_s8._oa._pa(_ca._ta);if((_jB!=_nB)||(_kB!=_oB)){return -1;}else {switch(_jB){case _2C:{switch(_kB){case _3C:return 0;case _4C:return 1;case _5C:return 2;default :return -1;}}case _6C:{if(_kB==_5C){return 3;}else {return -1;}}default :return -1;}}}function _vy(){var _bB=new Array();_bB[0]=_s8._oa._pa(_ca._qa);
_bB[1]=_s8._oa._pa(_ca._ra);return _bB;}function _wy(){var _bB=new Array();_bB[0]=_s8._oa._pa(_ca._qa);_bB[1]=_s8._oa._pa(_ca._ra);_bB[2]=_s8._oa._pa(_ca._sa);_bB[3]=_s8._oa._pa(_ca._ta);return _bB;}function _xy(){return _s8._oa._pa(_ca._qa);}function _yy(){return _s8._oa._pa(_ca._ra);}function _zy(){return _s8._oa._pa(_ca._sa);}function _Ay(){return _s8._oa._pa(_ca._ta);}function _By(){var _re=_s8._oa._pa(_ca._xB);var _P4=new Array();_P4.push(_re._Iu?1.0:0.0);_P4.push(_re._Ju?1.0:0.0);_P4.push(_re._Ku?1.0:0.0);
_P4.push(_re.alpha?1.0:0.0);return _P4;}function _Cy(){return _By();}function _Dy(){return _s8._oa._pa(_ca._zB)?1.0:0.0;}function _Ey(){return _s8._oa._pa(_ca._BB);}function _Fy(){return _s8._oa._7C(0,_ca._GB)==_ca._HB?1.0:0.0;}function _Gy(_KB){return _s8._oa._7C(yyGetInt32(_KB),_ca._GB)==_ca._HB?1.0:0.0;}function _Hy(){return _s8._oa._7C(0,_ca._MB)==_ca._NB?1.0:0.0;}function _Iy(_KB){return _s8._oa._7C(yyGetInt32(_KB),_ca._MB)==_ca._NB?1.0:0.0;}function _Jy(){return _s8._oa._7C(0,_ca._RB);}function _Ky(_SB){var _TB=_SB;
if((_TB<0)||(_TB>=_s8._EB)){return;}return _s8._oa._7C(_TB,_ca._RB);}function _Ly(){return _s8._oa._7C(0,_ca._VB);}function _My(_SB){var _TB=_SB;if((_TB<0)||(_TB>=_s8._EB)){return;}return _s8._oa._7C(_TB,_ca._VB);}function _Ny(){return _s8._oa._7C(0,_ca._XB);}function _Oy(_SB){var _TB=_SB;if((_TB<0)||(_TB>=_s8._EB)){return;}return _s8._oa._7C(_TB,_ca._XB);}function _Py(){return _s8._oa._7C(0,_ca._ZB);}function _Qy(_SB){var _TB=_SB;if((_TB<0)||(_TB>=_s8._EB)){return;}return _s8._oa._7C(_TB,_ca._ZB);}function _Ry(){
return _s8._oa._7C(0,_ca._0C);}function _Sy(_SB){var _TB=_SB;if((_TB<0)||(_TB>=_s8._EB)){return;}return _s8._oa._7C(_TB,_ca._0C);}function _Ty(){return _s8._oa._7C(0,_ca._1C);}function _Uy(_SB){var _TB=_SB;if((_TB<0)||(_TB>=_s8._EB)){return;}return _s8._oa._7C(_TB,_ca._1C);}function _Vy(){_s8._oa._8C();}function _Wy(){_s8._oa._9C();}var _aC=undefined;var _bC=undefined;function _cC(){if(_aC==undefined){_aC=["blendenable",_ca._4B,"ztestenable",_ca._5B,"zfunc",_ca._7B,"zwriteenable",_ca._8B,"fogenable",_ca._cB,"fogcolor",
_ca._dB,"fogstart",_ca._eB,"fogend",_ca._fB,"cullmode",_ca._hB,"srcblend",_ca._qa,"destblend",_ca._ra,"srcblendalpha",_ca._sa,"destblendalpha",_ca._ta,"sepalphaenable",_ca._ua,"colorwriteenable",_ca._xB,"alphatestenable",_ca._zB,"alphatestref",_ca._BB,"alphatestfunc",_ca._dC];}}function _eC(){if(_bC==undefined){_bC=["magfilter",_ca._GB,"minfilter",_ca._IB,"mipfilter",_ca._fC,"addressu",_ca._MB,"addressv",_ca._OB,"minmip",_ca._XB,"maxmip",_ca._ZB,"mipbias",_ca._VB,"maxaniso",_ca._0C,"mipenable",_ca._1C];
}}function _Xy(){_cC();_eC();var map=ds_map_create();var _gC=_aC.length/2;var _hC=_bC.length/2;var i;for(i=0;i<_gC;i++){var _re=_s8._oa._pa(_aC[i*2+1]);ds_map_add(map,_aC[i*2],_re);}var _DB=_s8._EB;for(i=0;i<_hC;i++){var _17;for(_17=0;_17<_DB;_17++){var name=_bC[i*2].slice(0)+_17;var _re=_s8._oa._7C(_17,_bC[i*2+1]);ds_map_add(map,name,_re);}}return map;}function _Yy(_p7){_p7=yyGetInt32(_p7);_cC();_eC();var i;var _gC=_aC.length/2;var _hC=_bC.length/2;var _iC=ds_map_find_first(_p7);while(_iC!=undefined){var key=_iC;
var value=ds_map_find_value(_p7,key);var _Lt=false;for(i=0;i<_gC;i++){if(key==_aC[i*2]){_s8._oa._Ga(_aC[i*2+1],value);_Lt=true;break;}}if(!_Lt){for(i=0;i<_hC;i++){var _jC=_bC[i*2].length;var _kC=key.substr(0,_jC);if(_kC==_bC[i*2]){var _lC=key.substr(_jC-1,key.length-_jC);var _tu=parseInt(_lC,10);_s8._oa._FB(_tu,_bC[i*2+1],value);break;}}}_iC=ds_map_find_next(_p7,_iC);}}function _mC(){}var _nC=1970;var _oC=0;var _pC=1;var _qC=365.25;var _rC=30.4375;var _sC=[31,28,31,30,31,30,31,31,30,31,30,31];var _tC=[];var _uC=(86400.0);
var _vC=(_uC*30);var _wC=true;var _xC=0;var _yC=1;function _zC(_AC){if(_AC<_BC){return _AC*_CC;}else {return(_AC-_BC)*_CC;}}function _DC(_EC){return _EC%400==0||(_EC%100!=0&&_EC%4==0);}function _FC(_EC){var _GC=_sC.slice();;if(_DC(_EC)){_GC[1]=29;}return _GC;}function _HC(_EC,_IC,_JC,_KC,_LC,_MC,_NC){_EC=yyGetInt32(_EC);_IC=yyGetInt32(_IC);_JC=yyGetInt32(_JC);_KC=yyGetInt32(_KC);_LC=yyGetInt32(_LC);_MC=yyGetInt32(_MC);_NC=yyGetInt32(_NC);if((_EC>=1970)&&(_IC>=1)&&(_IC<=12)&&(_JC>=1)&&(_JC<=31)&&(_KC>=0)&&(_KC<=23)&&(_LC>=0)&&(_LC<=59)&&(_MC>=0)&&(_MC<=59)&&(_NC>=0)&&(_NC<=999)){
if(_JC>28){switch(_IC){case 2:if(!_DC(_EC)||(_JC>29)){return 0;}break;case 4:case 6:case 9:case 11:if(_JC>30){return 0;}break;}}}else {return 0;}return 1;}var _CC=86400000.0;var _BC=25569;function date_current_datetime(){var _OC=new Date();var _PC=_OC.getMilliseconds();var _Y6=_OC.getTime()-_PC;return(_Y6/_CC)+_BC;}function _QC(){var _tm=new Date();return(~~(_tm.getTime()/_CC))+_BC;}function _RC(){var _tm=new Date();_tm.setFullYear(_nC,_oC,_pC);var _SC=(_tm.getTime()/_CC)+_BC;return(_SC-(~~_SC));}function date_create_datetime(_TC,
_UC,_VC,_WC,_XC,_YC){_TC=yyGetInt32(_TC);_UC=yyGetInt32(_UC);_VC=yyGetInt32(_VC);_WC=yyGetInt32(_WC);_XC=yyGetInt32(_XC);_YC=yyGetInt32(_YC);var _tm=new Date();if(_wC){_tm.setFullYear(_TC,_UC-1,_VC);_tm.setHours(_WC,_XC,_YC,10);}else {_tm.setUTCFullYear(_TC,_UC-1,_VC);_tm.setUTCHours(_WC,_XC,_YC,10);}return(_tm.getTime()/_CC)+_BC;}function date_get_year(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));return(_wC)?_tm.getFullYear():_tm.getUTCFullYear();}function date_get_month(_j6){var _tm=new Date();
_tm.setTime(_zC(yyGetReal(_j6)));return(_wC)?(_tm.getMonth())+1:(_tm.getUTCMonth())+1;}function date_get_day(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));return(_wC)?_tm.getDate():_tm.getUTCDate();}function date_get_weekday(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));return(_wC)?_tm.getDay():_tm.getUTCDay();}function date_get_week(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));var w=_ZC(_tm);return floor(w/7);}function date_get_hour(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));
return(_wC)?_tm.getHours():_tm.getUTCHours();}function date_get_minute(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));return(_wC)?_tm.getMinutes():_tm.getUTCMinutes();}function date_get_second(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));return(_wC)?_tm.getSeconds():_tm.getUTCSeconds();}function _ZC(__C){var _JC=0;if(_wC){var _0D=_FC(__C.getFullYear());for(var i=0;i<__C.getMonth();i++){_JC+=_0D[i];}_JC+=__C.getDate();}else {var _0D=_FC(__C.getUTCFullYear());for(var i=0;i<__C.getUTCMonth();
i++){_JC+=_0D[i];}_JC+=__C.getUTCDate();}return _JC;}function date_valid_datetime(_TC,_UC,_VC,_WC,_XC,_YC){return _HC(yyGetInt32(_TC),yyGetInt32(_UC),yyGetInt32(_VC),yyGetInt32(_WC),yyGetInt32(_XC),yyGetInt32(_YC),0);}function date_inc_year(_1D,_2D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));_tm.setUTCFullYear(_tm.getUTCFullYear()+yyGetInt32(_2D),_tm.getUTCMonth(),_tm.getUTCDate());return(_tm.getTime()/_CC)+_BC;}function date_inc_month(_1D,_2D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));
_tm.setUTCFullYear(_tm.getUTCFullYear(),_tm.getUTCMonth()+yyGetInt32(_2D),_tm.getUTCDate());return(_tm.getTime()/_CC)+_BC;}function date_inc_week(_1D,_2D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));_tm.setUTCFullYear(_tm.getUTCFullYear(),_tm.getUTCMonth(),_tm.getUTCDate()+(yyGetInt32(_2D)*7));return(_tm.getTime()/_CC)+_BC;}function date_inc_day(_1D,_2D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));_tm.setUTCFullYear(_tm.getUTCFullYear(),_tm.getUTCMonth(),_tm.getUTCDate()+yyGetInt32(_2D));
return(_tm.getTime()/_CC)+_BC;}function date_inc_hour(_1D,_2D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));_tm.setUTCHours(_tm.getUTCHours()+yyGetInt32(_2D),_tm.getUTCMinutes(),_tm.getUTCSeconds(),_tm.getUTCMilliseconds());return(_tm.getTime()/_CC)+_BC;}function date_inc_minute(_1D,_2D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));_tm.setUTCHours(_tm.getUTCHours(),_tm.getUTCMinutes()+yyGetInt32(_2D),_tm.getUTCSeconds(),_tm.getUTCMilliseconds());return(_tm.getTime()/_CC)+_BC;}function date_inc_second(_1D,
_2D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));_tm.setUTCHours(_tm.getUTCHours(),_tm.getUTCMinutes(),_tm.getUTCSeconds()+yyGetInt32(_2D),_tm.getUTCMilliseconds());return(_tm.getTime()/_CC)+_BC;}function date_get_day_of_year(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));var _3D=_ZC(_tm);return _3D;}function date_get_hour_of_year(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));var _3D=_ZC(_tm);var _4D=(_3D-1)*24;if(_wC)_4D+=_tm.getHours();else _4D+=_tm.getUTCHours();return _4D;}function date_get_minute_of_year(_j6){
var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));var _3D=_ZC(_tm);var _5D=(_3D-1)*24*60;if(_wC){_5D+=_tm.getHours()*60;_5D+=_tm.getMinutes();}else {_5D+=_tm.getUTCHours()*60;_5D+=_tm.getUTCMinutes();}return _5D;}function date_get_second_of_year(_j6){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_j6)));var _3D=_ZC(_tm);var _6D=(_3D-1)*24*60*60;if(_wC){_6D+=_tm.getHours()*60*60;_6D+=_tm.getMinutes()*60;_6D+=_tm.getSeconds();}else {_6D+=_tm.getUTCHours()*60*60;_6D+=_tm.getUTCMinutes()*60;_6D+=_tm.getUTCSeconds();
}return _6D;}function date_year_span(_7D,_8D){var _tm=new Date();var _9D=_tm.setTime(_zC(yyGetReal(_7D)));var _aD=_tm.setTime(_zC(yyGetReal(_8D)));var _bD=(_aD-_9D);return Math.abs(Math.floor(_bD/1000)/60/60/24/_qC);}function date_month_span(_7D,_8D){var _tm=new Date();var _9D=_tm.setTime(_zC(yyGetReal(_7D)));var _aD=_tm.setTime(_zC(yyGetReal(_8D)));var _bD=(_aD-_9D);return Math.abs(Math.floor(_bD/1000)/60/60/24/_rC);}function date_week_span(_7D,_8D){var _tm=new Date();var _9D=_tm.setTime(_zC(yyGetReal(_7D)));var _aD=_tm.setTime(_zC(yyGetReal(_8D)));
var _bD=(_aD-_9D);return Math.abs(Math.floor(_bD/1000)/60/60/24/7);}function date_day_span(_7D,_8D){var _tm=new Date();var _9D=_tm.setTime(_zC(yyGetReal(_7D)));var _aD=_tm.setTime(_zC(yyGetReal(_8D)));var _bD=(_aD-_9D);return Math.abs(Math.floor(_bD/1000)/60/60/24);}function date_hour_span(_7D,_8D){var _tm=new Date();var _9D=_tm.setTime(_zC(yyGetReal(_7D)));var _aD=_tm.setTime(_zC(yyGetReal(_8D)));var _bD=(_aD-_9D);return Math.abs(Math.floor(_bD/1000)/60/60);}function date_minute_span(_7D,_8D){var _tm=new Date();var _9D=_tm.setTime(_zC(yyGetReal(_7D)));
var _aD=_tm.setTime(_zC(yyGetReal(_8D)));var _bD=(_aD-_9D);return Math.abs(Math.floor(_bD/1000)/60);}function date_second_span(_7D,_8D){var _tm=new Date();var _9D=_tm.setTime(_zC(yyGetReal(_7D)));var _aD=_tm.setTime(_zC(yyGetReal(_8D)));var _bD=(_aD-_9D);return ~~Math.abs(Math.floor(_bD/1000));}function _cD(_1D){var _tm=new Date();_tm.setTime(_zC(_1D));return(_tm.getHours()-_tm.getUTCHours())*60*60*1000;}function date_compare_datetime(_7D,_8D){_7D=yyGetReal(_7D);_8D=yyGetReal(_8D);if(_7D<_8D){return -1;}else if(_7D>_8D){
return 1;}return 0;}function date_compare_date(_7D,_8D){var _dD=new Date();_dD.setTime(_zC(yyGetReal(_7D)));var _eD=new Date();_eD.setTime(_zC(yyGetReal(_8D)));var _9D=(_dD.getFullYear()*366)+(_dD.getMonth()*31)+_dD.getDate();var _aD=(_eD.getFullYear()*366)+(_eD.getMonth()*31)+_eD.getDate();return(_9D==_aD)?0.0:((_9D>_aD)?1.0:-1.0);}function date_compare_time(_7D,_8D){var _dD=new Date();_dD.setTime(_zC(yyGetReal(_7D)));var _eD=new Date();_eD.setTime(_zC(yyGetReal(_8D)));var _fD=(_dD.getHours()*3600)+(_dD.getMinutes()*60)+_dD.getSeconds();
var _gD=(_eD.getHours()*3600)+(_eD.getMinutes()*60)+_eD.getSeconds();return(_fD==_gD)?0.0:((_fD>_gD)?1.0:-1.0);}function date_date_of(_1D){return yyGetInt32(_1D);}function date_time_of(_1D){return frac(yyGetReal(_1D));}function _hD(_Sp){return((_Sp<10)?"0":"")+_Sp.toString();}function date_datetime_string(_1D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));var _Kl;if(_wC){_Kl=_hD(_tm.getDate())+"/"+_hD(_tm.getMonth()+1)+"/"+_tm.getFullYear()+" "+_hD(_tm.getHours())+":"+_hD(_tm.getMinutes())+":"+_hD(_tm.getSeconds());
}else {_Kl=_hD(_tm.getUTCDate())+"/"+_hD(_tm.getUTCMonth()+1)+"/"+_tm.getUTCFullYear()+" "+_hD(_tm.getUTCHours())+":"+_hD(_tm.getUTCMinutes())+":"+_hD(_tm.getUTCSeconds());}return _Kl;}function date_date_string(_1D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));var _Kl;if(_wC){_Kl=_hD(_tm.getDate())+"/"+_hD(_tm.getMonth()+1)+"/"+_tm.getFullYear();}else {_Kl=_hD(_tm.getUTCDate())+"/"+_hD(_tm.getUTCMonth()+1)+"/"+_tm.getUTCFullYear();}return _Kl;}function date_time_string(_1D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));
if(_tm.toString()=="Invalid Date"){return "invalid time";}var _Kl;if(_wC){_Kl=_hD(_tm.getHours())+":"+_hD(_tm.getMinutes())+":"+_hD(_tm.getSeconds());}else {_Kl=_hD(_tm.getUTCHours())+":"+_hD(_tm.getUTCMinutes())+":"+_hD(_tm.getUTCSeconds());}return _Kl;}function date_days_in_month(_1D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));if(_wC){var _0D=_FC(_tm.getFullYear());return _0D[_tm.getMonth()];}var _0D=_FC(_tm.getUTCFullYear());return _0D[_tm.getUTCMonth()];}function date_days_in_year(_1D){var _tm=new Date();
_tm.setTime(_zC(yyGetReal(_1D)));var _3D=0;var _0D;if(_wC)_0D=_FC(_tm.getFullYear());else _0D=_FC(_tm.getUTCFullYear());for(var i=0;i<_0D.length;i++){_3D+=_0D[i];}return _3D;}function date_leap_year(_1D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));if(_wC)return _DC(_tm.getFullYear());return _DC(_tm.getUTCFullYear());}function date_is_today(_1D){var _tm=new Date();_tm.setTime(_zC(yyGetReal(_1D)));var _iD=new Date();if(_wC){if((_tm.getFullYear()==_iD.getFullYear())&&(_tm.getMonth()==_iD.getMonth())&&(_tm.getDate()==_iD.getDate())){
return true;}}else {if((_tm.getUTCFullYear()==_iD.getUTCFullYear())&&(_tm.getUTCMonth()==_iD.getUTCMonth())&&(_tm.getUTCDate()==_iD.getUTCDate())){return true;}}return false;}function date_set_timezone(_jD){_wC=(yyGetInt32(_jD)==_xC);}function date_get_timezone(){if(_wC)return _xC;return _yC;}var _kD=[];var _lD=[];var _mD=[];var _nD=Date.now();var _oD=0;var _pD=1;var _qD=2;var _rD=3;var _sD=function(text){if(!text)return;if(_tD){if(_uD){var _pd=_uD.document.getElementById('debug_console');if(_pd){var _vD=String.fromCharCode(0x0a);
text=text.replace('<b>','').replace('</b>','');var _wD=Date.now()-_nD;if(!_pd){alert(text);}else {_pd.value+=text+_vD;var _0j=_pd.textLength;}_nD=Date.now();}}}if(_xD!=undefined){if(_xD.Options.outputDebugToConsole)console.log(text);if(_xD.Options.outputDebugToDiv){var _yD=document.getElementById("yyDebugDiv");var _zD=document.createElement('P');_zD.textContent+=text;_yD.appendChild(_zD);}}};function debug(text){var index;for(index=0;index<arguments.length;++index){_sD(arguments[index]);}}function _AD(_Fq,
_BD,_CD,_DD,_ED){this.gmlmessage=_Fq;this.gmllongMessage=_BD;this.gmlstacktrace=_ED;this.gmlscript=_CD;this.gmlline=_DD;this.__yyIsGMLObject=true;}_AD.prototype.toString=function(){return yyGetString(this);};function __yy__processException(_FD){if(_FD instanceof Error){var message=(_FD.message)?_FD.message:"";var _GD=(_FD.message)?_FD.constructor.name+" - "+_FD.message:"";var _HD=(_FD.fileName)?_FD.fileName:"";var _ID=(_FD.lineNumber)?_FD.lineNumber:-1;var _JD=[];if(_FD.stack){_JD=_FD.stack.split(/_KD?_LD/);
}_FD=new _AD(message,_GD,_HD,_ID,_JD);;}return _FD;}function _55(text){var index;var _MD=_ND();var _OD=new _AD(text,text,_PD(_55.caller.name),-1,_MD);throw _OD;}function _Bi(_1o){if(!_mD[_1o]){_mD[_1o]=true;_JD(_1o);debug(_1o);}}function _Fb(_1o){if(!_kD[_1o]){_kD[_1o]=true;var _nh="Error: function "+_1o+" is not supported.";debug(_nh);}}function _QD(_1o){if(!_kD[_1o]){_kD[_1o]=true;var _nh="Error: "+_1o+" is not supported.";debug(_nh);}}function _RD(_1o){if(!_kD[_1o]){_kD[_1o]=true;var _nh="Error: function "+_1o+" is not yet implemented";
debug(_nh);}}function _SD(_1o){if(!_lD[_1o]){_lD[_1o]=true;var _nh="Warning: function "+_1o;debug(_nh);}}function _TD(_UD){var _VD=_WD._XD(_UD,-1);var _vD=String.fromCharCode(0x0a);var _qi="";for(var i=0;i<_VD.length;i++){if(i!=0)_qi=_qi+_vD;_qi+=_VD[i];}return _qi;}function _YD(_ZD){if(!_ZD)return;alert(_ZD);}function __D(_ZD,_0E){if(!_ZD)return;alert(_ZD);}function debug_event(_D3){switch(_D3){case "RangeError":{throw new _1E("debug_event");}break;default :break;}}function show_debug_message(_UD){var _5i=yyGetString(_UD);
if(!_5i)return;if(arguments.length==1){debug(_5i);return;}if(typeof(_5i)!="string"){_55("show_debug_message() trying to use string template but argument0 is not a string");}var _2E=[];for(var _I6=1;_I6<arguments.length;++_I6){_2E.push(arguments[_I6]);}debug(_3E(_5i,_2E));}function show_debug_message_ext(_UD,_2E){var _5i=yyGetString(_UD);if(!_5i)return;if(typeof(_5i)!="string"){_55("show_debug_message_ext() argument0 is not a string");}if(!(_2E instanceof Array)){_55("show_debug_message_ext() argument1 is not an array");
}debug(_3E(_5i,_2E));}function show_debug_overlay(_4E){}function debug_get_callstack(_5E){var _6E=[];if(_5E==undefined)_5E=100;var caller=arguments.callee.caller;while(caller!=null){_6E.push(caller);if(_6E.length>=_5E)break;caller=caller.caller;if(_6E.indexOf(caller)>=0)break;}var _7E=[];for(var i=0;i<_6E.length;i++){_7E[i]=_6E[i].name;}_7E.push(0);return _7E;}function show_message_async(_UD){_8E(_9E,_rD,[yyGetString(_UD)]);return _9E++;}function show_message(_UD){var _5i=yyGetString(_UD);if(!_5i)return;alert(_TD(_5i));
}function show_error(__n,_aE){__n=yyGetString(__n);if(!__n)return;alert(__n);}function show_question_async(__n){_8E(_9E,_qD,[yyGetString(__n)]);return _9E++;}function show_question(__n){__n=yyGetString(__n);if(!__n){__n="";}if(window.confirm){return confirm(_TD(__n))?1.0:0.0;}_Fb("show_question()");return 0;}function get_integer_async(__n,_bE){_8E(_9E,_pD,[yyGetString(__n),yyGetString(_bE)]);return _9E++;}function get_integer(__n,_bE){return parseFloat(prompt(yyGetString(__n),yyGetString(_bE)));}function _cE(_dE){
var _W5=document.getElementById(_eE);var _fE=_W5.parentNode;var _gE=document.createElement("div");_hE="gm4html5_login_ID";_gE.setAttribute("class","gm4html5_login");_gE.setAttribute("id",_hE);_fE.insertBefore(_gE,_W5.nextSibling);_gE.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>";
_iE();_jE=true;var login=document.getElementById("gm4html5_login_button_id");var _kE=document.getElementById("gm4html5_login_username_id");var _lE=document.getElementById("gm4html5_login_password_id");_kE.value=_dE._mE[0];_lE.value=_dE._mE[1];login.onmouseup=function(){var _nE=_kE.value;var _oE=_lE.value;var _pE=_qE(_hE);if(!_pE)return;_pE._nE=_nE;_pE._oE=_oE;_pE.value=0;_pE.result="";_pE._Hf=true;_pE._Gf=_rE;_fE.removeChild(_gE);_jE=false;_sE();_tE(_dE.id);};var _uE=document.getElementById("gm4html5_cancel_button_id");
_uE.onmouseup=function(){_fE.removeChild(_gE);_jE=false;var _pE=_qE(_hE);if(!_pE)return;_pE._nE="";_pE._oE="";_pE.value=0;_pE.result="";_pE._Hf=true;_pE._Gf=_vE;_sE();_tE(_dE.id);};_wE();_Cf._Df(_dE.id,null,_xE,_hE);}function _yE(_dE){var _W5=document.getElementById(_eE);var _fE=_W5.parentNode;var _gE=document.createElement("div");_hE="gm4html5_input_ID";_gE.setAttribute("class","gm4html5_login");_gE.setAttribute("id",_hE);_fE.insertBefore(_gE,_W5.nextSibling);_gE.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>";
_iE();_jE=true;var _zE=document.getElementById("gm4html5_input_message_id");var _AE=document.getElementById("gm4html5_input_text_id");_zE.innerHTML=_dE._mE[0];_AE.value=_dE._mE[1];var _BE=document.getElementById("gm4html5_input_ok_button_id");_BE.onmouseup=function(){var text=_AE.value;var _pE=_qE(_hE);if(!_pE)return;_pE._nE="";_pE._oE="";_pE.value=parseFloat(text);_pE.result=text;_pE._Hf=true;_pE._Gf=_rE;_fE.removeChild(_gE);_jE=false;_sE();_tE(_dE.id);};var _uE=document.getElementById("gm4html5_input_cancel_button_id");
_uE.onmouseup=function(){_fE.removeChild(_gE);_jE=false;var _pE=_qE(_hE);if(!_pE)return;_pE._nE="";_pE._oE="";_pE.value=0;_pE.result="";_pE._Hf=true;_pE._Gf=_vE;_sE();_tE(_dE.id);};_wE();_Cf._Df(_dE.id,null,_xE,_hE);}function _CE(_dE){var _W5=document.getElementById(_eE);var _fE=_W5.parentNode;var _gE=document.createElement("div");_hE="gm4html5_question_ID";_gE.setAttribute("class","gm4html5_login");_gE.setAttribute("id",_hE);_fE.insertBefore(_gE,_W5.nextSibling);_gE.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>";
_iE();_jE=true;var _DE=document.getElementById("gm4html5_question_message_id");_DE.innerHTML=_dE._mE[0];var _BE=document.getElementById("gm4html5_question_yes_button_id");_BE.onmouseup=function(){var _pE=_qE(_hE);if(!_pE)return;_pE._nE="";_pE._oE="";_pE.value=1;_pE.result="1";_pE._Hf=true;_pE._Gf=_rE;_fE.removeChild(_gE);_jE=false;_sE();_tE(_dE.id);};var _uE=document.getElementById("gm4html5_question_no_button_id");_uE.onmouseup=function(){_fE.removeChild(_gE);_jE=false;var _pE=_qE(_hE);if(!_pE)return;
_pE._nE="";_pE._oE="";_pE.value=0;_pE.result="0";_pE._Hf=true;_pE._Gf=_vE;_sE();_tE(_dE.id);};_wE();_Cf._Df(_dE.id,null,_xE,_hE);}function _EE(_dE){var _W5=document.getElementById(_eE);var _fE=_W5.parentNode;var _gE=document.createElement("div");_hE="gm4html5_message_ID";_gE.setAttribute("class","gm4html5_login");_gE.setAttribute("id",_hE);_fE.insertBefore(_gE,_W5.nextSibling);_gE.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>";
_iE();_jE=true;var _DE=document.getElementById("gm4html5_message_message_id");_DE.innerHTML=_dE._mE[0];var _BE=document.getElementById("gm4html5_message_ok_button_id");_BE.onmouseup=function(){var _pE=_qE(_hE);if(!_pE)return;_pE._nE="";_pE._oE="";_pE.value=1;_pE.result="1";_pE._Hf=true;_pE._Gf=1;_fE.removeChild(_gE);_jE=false;_sE();_tE(_dE.id);};_wE();_Cf._Df(_dE.id,null,_xE,_hE);}/*@constructor */function _FE(_gg,_ld,_GE){this.id=_gg;this.type=_ld;this._mE=_GE;}function _HE(){if(_IE.length>0){switch(_IE[0].type){
case _oD:_cE(_IE[0]);break;case _pD:_yE(_IE[0]);break;case _qD:_CE(_IE[0]);break;case _rD:_EE(_IE[0]);break;}}}function _JE(_GE){for(var i=0;i<_GE.length;++i){var _Kl=_GE[i];if(typeof(_Kl)=='string'){var _KE="";for(var _I6=0;_I6<_Kl.length;_I6++){var chr=_Kl[_I6];switch(chr){case '&':_KE=_KE+'&amp;';break;case '<':_KE=_KE+'&lt;';break;case '>':_KE=_KE+'&gt;';break;default :_KE=_KE+chr;break;}}_Kl=_KE;var _LE=String.fromCharCode(13)+String.fromCharCode(10);_Kl=_Kl.split('#').join('<br>');_Kl=_Kl.split(_LE).join('<br>');
_GE[i]=_Kl;}}}function _8E(_gg,_ld,_GE){_JE(_GE);var _tm=new _FE(_gg,_ld,_GE);_IE.push(_tm);if(_IE.length==1){_HE();}}function _tE(_gg){var index=-1;for(var i=0;i<_IE.length;++i){if(_IE[i].id==_gg){index=i;break;}}if(index>=0){_IE.splice(index,1);}_HE();}function get_login_async(_ME,_NE){_8E(_9E,_oD,[_ME,_NE]);return _9E++;}function get_string_async(__n,_bE){_8E(_9E,_pD,[yyGetString(__n),yyGetString(_bE)]);return _9E++;}function get_string(__n,_bE){return prompt(yyGetString(__n),yyGetString(_bE));}function _wE(){
if(_jE){var login=document.getElementById(_hE);var w=login.offsetWidth;var h=login.offsetHeight;var _27=(canvas.width-w)/2;var _47=(canvas.height-h)/2;_8g=new _OE();_7g(canvas,_8g);login.style.left=~~(_27+_8g.left)+"px";login.style.top=~~(_47+_8g.top)+"px";}}function _PD(_PE){return _PE.substr(0,_PE.indexOf("("));}function _JD(_QE){var _SC=arguments.callee.caller;var _Kl="Error: "+_QE+"\n"+"--------------------------------------------------------------------\n";while(_SC){var name="\t"+_PD(_SC.toString());_Kl+=name+'(';
for(var i=0;i<_SC.arguments.length;i++){if(i!=0){_Kl+=', ';}if(typeof _SC.arguments[i]=="string"){_Kl+='"'+_SC.arguments[i].toString()+'"';}else if((typeof _SC.arguments[i]=="number")||(_SC.arguments[i] instanceof Long)){_Kl+=_SC.arguments[i].toString();}else {if(_SC.arguments[i]==undefined){_Kl+="[undefined]";}else if(_SC.arguments[i]==null){_Kl+="[null]";}else if(_SC.arguments[i].__type){_Kl+=_SC.arguments[i].__type;}else {_Kl+="[unknown]";}}}_Kl+=")\n";_SC=_SC.caller;}debug(_Kl);}function _ND(_QE){var _SC=arguments.callee.caller;
var _P4=[];while(_SC&&(_P4.length<100)){var name=_PD(_SC.toString());_Kl=name+'(';for(var i=0;i<_SC.arguments.length;i++){if(i!=0){_Kl+=', ';}if(typeof _SC.arguments[i]=="string"){_Kl+='"'+_SC.arguments[i].toString()+'"';}else if((typeof _SC.arguments[i]=="number")||(_SC.arguments[i] instanceof Long)){_Kl+=_SC.arguments[i].toString();}else {if(_SC.arguments[i]==undefined){_Kl+="[undefined]";}else if(_SC.arguments[i]==null){_Kl+="[null]";}else if(_SC.arguments[i].__type){_Kl+=_SC.arguments[i].__type;}else {_Kl+="[unknown]";
}}}_Kl+=")\n";_P4.push(_Kl);_SC=_SC.caller;}return _P4;}function _RE(){if(!_uD)return;var _SE=_uD.document.getElementById('debug_instances');if(!_SE)return;var _TE=[];var options=_SE.options;for(var index in options){if(!options.hasOwnProperty(index))continue;if(index!="selectedIndex"&&index!="length"){var _UE=options[index];if(_UE&&_UE.text){_TE[_TE.length]=_UE.text;}}}var _VE=[];for(var index in _xn._WE){if(!_xn._WE.hasOwnProperty(index))continue;var _Tm=_xn._WE[index];if(_Tm!==undefined&&_Tm!==null){var _qi=_Tm.id.toString();
var i;for(i=0;i<_TE.length;i++){if(_TE[i]==_qi)break;}if(i>=_TE.length){_VE[_VE.length]=_qi;}else {_TE.splice(i,1);}}}for(var index in _TE){if(!_TE.hasOwnProperty(index))continue;for(var _UE in options){if(!options.hasOwnProperty(_UE))continue;if(options[_UE].text=index){_SE.removeChild(options[_UE]);break;}}}for(var index=0;index<_VE.length;index++){var _Tm=_VE[index];var option=_uD.document.createElement("option");option.text=""+_Tm;_SE.add(option,null);}}var _XE=3;var _YE=-1;function _ZE(){if(!_uD)return;var _SE=_uD.document.getElementById('debug_instances');
var __E=_uD.document.getElementById('debug_Instance_Data');if(!_SE||!__E)return;var _0F=_SE.selectedIndex;if(_0F<0){return;}if(_0F==undefined)return;_0F=parseInt(_SE.options[_0F].text);var _Gt=_xn._WE[_0F];if(!_Gt)return;var _qi=[];_qi[_qi.length]='<table ALIGN="left" VALIGN="top" style="border-spacing:0px; border-collapse:collapse; border:0px; margin:0px;">';_qi[_qi.length]='<tr bgcolor="#f0f0f0" "><td style="width:130px;"><b>Object</b></td><td style="width:270px;"><b>'+_Gt._1F._2F+'</b></td></tr>';
_qi[_qi.length]='<tr><td>x</td><td>'+_Gt.x.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>y</td><td>'+_Gt.y.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>depth</td><td>'+_Gt.depth.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>visible</td><td>'+_Gt.visible+'</td></tr>';_qi[_qi.length]='<tr><td>persistent</td><td>'+_Gt.persistent+'</td></tr>';_qi[_qi.length]='<tr><td>vspeed</td><td>'+_Gt.vspeed.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>direction</td><td>'+_Gt.direction.toFixed(_XE)+'</td></tr>';
_qi[_qi.length]='<tr><td>speed</td><td>'+_Gt.speed.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>friction</td><td>'+_Gt.friction.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>gravity</td><td>'+_Gt.gravity.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>gravity_direction</td><td>'+_Gt.gravity_direction.toFixed(_XE)+'</td></tr>';var _3F=_16._26(_Gt.sprite_index);if(!_3F){_qi[_qi.length]='<tr><td>sprite_index</td><td><none></td></tr>';}else {var _4F=_Gt.image_index;if(_4F<0||_4F>_3F._05.length)_4F=0;
var __4=_3F._05[~~_4F];_qi[_qi.length]='<tr><td>sprite_index</td><td height="'+(__4.oh+32)+'px">'+_3F.pName+'<br>'+'<div style="padding:0px; margin:0px; border:0px; overflow: hidden; '+'width:'+__4.CropWidth+'px; height:'+__4.CropHeight+'px; '+'background: url('+__4._95.src+') '+-__4.x+'px '+-__4.y+'px;" />'+'</td></tr>';}_qi[_qi.length]='<tr><td>image_index</td><td>'+_Gt.image_index.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>image_speed </td><td>'+_Gt.image_speed.toFixed(_XE)+'</td></tr>';
_qi[_qi.length]='<tr><td>image_blend</td><td>'+~~_Gt.image_blend+'</td></tr>';_qi[_qi.length]='<tr><td>image_alpha</td><td>'+_Gt.image_alpha.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>image_xscale</td><td>'+_Gt.image_xscale.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>image_yscale</td><td>'+_Gt.image_yscale.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>mask_index</td><td>'+_Gt.mask_index.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>path_index</td><td>'+_Gt.path_index.toFixed(_XE)+'</td></tr>';
_qi[_qi.length]='<tr><td>path_position</td><td>'+_Gt.path_position.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>path_speed</td><td>'+_Gt.path_speed.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>path_scale</td><td>'+_Gt.path_scale.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>path_orientation</td><td>'+_Gt.path_orientation.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>path_endaction</td><td>'+_Gt.path_endaction.toFixed(_XE)+'</td></tr>';_qi[_qi.length]='<tr><td>path_xstart</td><td>'+_Gt._5F.toFixed(_XE)+'</td></tr>';
_qi[_qi.length]='<tr><td>path_ystart</td><td>'+_Gt._6F.toFixed(_XE)+'</td></tr>';for(var _7F=0;_7F<12;_7F++){_qi[_qi.length]='<tr><td>alarm['+_7F+']</td><td>'+~~_Gt.alarm[_7F]+'</td></tr>';}_qi[_qi.length]='</table>';__E.innerHTML=_qi.join("");}function UpdateDebugWindow(){_RE();_ZE();}/*@constructor */function _8F(){this._9F="";this._aF=0;this._bF=false;this._cF=false;this._dF="";}_8F.prototype._eF=function(){var _Kl;var i=this._aF;var _qi=this._9F;while(i<_qi.length){var c=_qi.charCodeAt(i);if(c==0x0d||c==0x0a){
i++;}else {break;}}this._aF=i;};_8F.prototype._fF=function(){var _Kl;var i=this._aF;var _qi=this._9F;while(i<_qi.length){var c=_qi.charCodeAt(i);if(c==0x0d||c==0x0a){i++;c=_qi.charCodeAt(i);if(c==0x0d||c==0x0a){i++;}break;}else {i++;}}this._aF=i;};_8F.prototype._gF=function(){var _Kl;var i=this._aF;var _qi=this._9F;while(i<_qi.length){var c=_qi.charCodeAt(i);if(c==0x0d||c==0x0a||c==0x09||c==0x20){i++;}else {break;}}this._aF=i;};function file_text_open_from_string(_hF){var _Bf=new _8F();_Bf._9F=yyGetString(_hF);
_Bf._aF=0;_Bf._dF=null;return _iF._Df(_Bf);}function file_text_open_read(_Mq){_Mq=yyGetString(_Mq);var _jF=_ml(_Mq,true);if(_jF==null)_jF=_ml(_Mq,false);if(_jF==null)return -1;var _Bf=new _8F();_Bf._9F=_jF;_Bf._aF=0;_Bf._dF=_Mq;return _iF._Df(_Bf);}function file_text_close(_kF){_kF=yyGetInt32(_kF);var _Bf=_iF._26(_kF);if(!_Bf){_55("Error: Illegal file handle");return;}if(_Bf._dF!=null){if(_Bf._cF){_il(_Bf._dF,_Bf._9F);}}_iF._uj(_kF);}function file_text_open_write(_Mq){var _Bf=new _8F();_Bf._dF=yyGetString(_Mq);
_Bf._9F="";_Bf._aF=0;_Bf._lF=true;return _iF._Df(_Bf);}function file_text_open_append(_Mq){_Mq=yyGetString(_Mq);var _SC=file_text_open_read(_Mq);if(_SC<0){return file_text_open_write(_Mq);}var _Bf=_iF._26(_SC);_Bf._lF=true;_Bf._aF=_Bf._9F.length;return _SC;}function file_text_write_string(_kF,__n){var _Bf=_iF._26(yyGetInt32(_kF));if(!_Bf){_55("Error: Illegal file handle");return;}if(!_Bf._lF){_55("Error: File "+_Bf._dF+" has not been opened with WRITE permisions");return;}_Bf._9F+=yyGetString(__n);_Bf._cF=true;
_Bf._aF=_Bf._9F.length;}function file_text_write_real(_kF,_Q5){var _Bf=_iF._26(yyGetInt32(_kF));if(!_Bf){_55("Error: Illegal file handle");return;}if(!_Bf._lF){_55("Error: File "+_Bf._dF+" has not been opened with WRITE permisions");return;}_Bf._9F+=yyGetReal(_Q5);_Bf._cF=true;_Bf._aF=_Bf._9F.length;}function file_text_writeln(_kF){var _Bf=_iF._26(yyGetInt32(_kF));if(!_Bf){_55("Error: Illegal file handle");return;}if(!_Bf._lF){_55("Error: File "+_Bf._dF+" has not been opened with WRITE permisions");
return;}_Bf._9F+=String.fromCharCode(0x0d);_Bf._9F+=String.fromCharCode(0x0a);_Bf._aF=_Bf._9F.length;}function file_text_read_string(_kF){var _Bf=_iF._26(yyGetInt32(_kF));if(!_Bf){_55("Error: Illegal file handle");return;}var _Kl="";var i=_Bf._aF;var _qi=_Bf._9F;while(i<_qi.length){var c=_qi.charCodeAt(i);if(c==0x0d||c==0x0a){break;}else {_Kl+=_qi[i++];}}_Bf._aF=i;return _Kl;}function file_text_read_real(_kF){var _Bf=_iF._26(yyGetInt32(_kF));if(!_Bf){_55("Error: Illegal file handle");return;}_Bf._gF();var _Kl="";
var i=_Bf._aF;var _qi=_Bf._9F;while(i<_qi.length){var c=_qi[i];if((c=='-')&&(_Kl=="")){_Kl+=_qi[i++];}else if((c>='0'&&c<='9')||(c=='.')){_Kl+=_qi[i++];}else {break;}}_Bf._aF=i;return parseFloat(_Kl);}function file_text_readln(_kF){var _Bf=_iF._26(yyGetInt32(_kF));if(!_Bf){_55("Error: Illegal file handle");return;}var _Kl="";var i=_Bf._aF;var _qi=_Bf._9F;while(i<_qi.length){var c=_qi.charCodeAt(i);if(c==0x0d||c==0x0a){_Kl+=_qi[i++];if(i<_qi.length){c=_qi.charCodeAt(i);if(c==0x0d||c==0x0a){_Kl+=_qi[i++];}}break;
}else {_Kl+=_qi[i++];}}_Bf._aF=i;return _Kl;}function file_text_eof(_kF){var _Bf=_iF._26(yyGetInt32(_kF));if(!_Bf){_55("Error: Illegal file handle");return;}if(_Bf._aF>=_Bf._9F.length)return true;return false;}function file_text_eoln(_kF){var _Bf=_iF._26(yyGetInt32(_kF));if(!_Bf){_55("Error: Illegal file handle");return;}if(_Bf._aF>=_Bf._9F.length)return true;var c=_Bf._9F.charCodeAt(_Bf._aF);if(c==0x0a||c==0x0d)return true;return false;}function file_exists(_Mq){_Mq=yyGetString(_Mq);var _Ir=_mF(_Mq,true);if(_Ir==true)return true;
return _mF(_Mq,false);}function file_delete(_Mq){if(_nF){try{window.localStorage['removeItem'](_oF(yyGetString(_Mq)));return true;}catch(_ek){return false;}}return false;}function file_rename(_pF,_qF){_pF=yyGetString(_pF);file_copy(_pF,yyGetString(_qF));file_delete(_pF);}function file_copy(_Mq,_qF){_Mq=yyGetString(_Mq);_qF=yyGetString(_qF);if(true===file_exists(_qF))file_delete(_qF);if(false===file_exists(_Mq))return false;var _rF=file_text_open_read(_Mq);var _sF=file_text_open_write(_qF);while(false===file_text_eof(_rF)){
var _ID=file_text_readln(_rF);file_text_write_string(_sF,_ID);}file_text_close(_rF);file_text_close(_sF);}function directory_exists(_tF){_Fb("directory_exists()");return true;}function directory_create(_tF){_Fb("directory_create()");return true;}function directory_destroy(_tF){_Fb("directory_destroy()");return true;}function file_find_first(_uF,_vF){_Fb("file_find_first()");return "";}function file_find_next(){_Fb("file_find_next()");return "";}function file_find_close(){_Fb("file_find_close()");}function file_attributes(_Mq,
_vF){_Fb("file_attributes()");return true;}function filename_name(_Mq){_Mq=yyGetString(_Mq);var _G4=_Mq.lastIndexOf('\\');var _F4=_Mq.lastIndexOf('/');var last=(_G4>_F4)?_G4:_F4;var _P4=_Mq;if(last>0){_P4=_Mq.substr(last+1);}return _P4;}function filename_path(_Mq){_Mq=yyGetString(_Mq);var _G4=_Mq.lastIndexOf('\\');var _F4=_Mq.lastIndexOf('/');var last=(_G4>_F4)?_G4:_F4;var _P4=_Mq;if(last>0){_P4=_Mq.substr(0,last+1);}return _P4;}function filename_dir(_Mq){_Mq=yyGetString(_Mq);var _G4=_Mq.lastIndexOf('\\');var _F4=_Mq.lastIndexOf('/');
var last=(_G4>_F4)?_G4:_F4;var _P4=_Mq;if(last>0){_P4=_Mq.substr(0,last);}return _P4;}function filename_drive(_Mq){_RD("filename_drive()");}function filename_change_ext(_Mq,_wF){_Mq=yyGetString(_Mq);var last=_Mq.lastIndexOf('.');var _P4=_Mq;if(last>0){_P4=_Mq.substr(0,last);_P4=_P4+yyGetString(_wF);}return _P4;}function file_bin_open(_Mq,_xF){_Fb("file_bin_open()");}function file_bin_rewrite(_kF){_Fb("file_bin_rewrite()");}function file_bin_close(_kF){_Fb("file_bin_close()");}function file_bin_size(_kF){_Fb("file_bin_size()");
}function file_bin_position(_kF){_Fb("file_bin_position()");}function file_bin_seek(_kF,_Gk){_Fb("file_bin_seek()");}function file_bin_write_byte(_kF,_yF){_Fb("file_bin_write_byte()");}function file_bin_read_byte(_kF){_Fb("file_bin_read_byte()");}function environment_get_variable(_b4){return "";}function filename_ext(_el){_el=yyGetString(_el);var _zF=_el.lastIndexOf(".");var _AF=_el.lastIndexOf("\\");if(_AF>_zF)return "";return _el.substr(_zF,_el.length);}function _BF(_CF){var _P4;switch(typeof(_CF)){case "object":if(_CF==null)_P4=null;
else if(_CF instanceof Array){_P4=new _Bk(_Ek,_DF(_CF));}else {_P4=new _Bk(_Ck,_EF(_CF));}break;case "boolean":_P4=_CF?1:0;break;case "number":case "string":_P4=_CF;break;default :_P4=_CF.toString();break;}return _P4;}function _DF(_Sk){var _P4=ds_list_create();for(var i=0;i<_Sk.length;++i){var _n5=_BF(_Sk[i]);ds_list_add(_P4,_n5);}return _P4;}function _EF(_Sk){var _P4=ds_map_create();for(var _UE in _Sk){var _G4=_Sk[_UE];var _n5=_BF(_G4);ds_map_add(_P4,_UE,_n5);}return _P4;}function json_decode(_FF){var _Kl=yyGetString(_FF);
var _GF=false;try{for(var _HF=0;_HF<_Kl.length;_HF++){if(_Kl.charAt(_HF)=="\""){if(!_GF){_GF=true;}else if(_HF==0||_Kl.charAt(_HF-1)!="\\"){_GF=false;}}if(!_GF&&_Kl.charAt(_HF)=="#"){_Kl=_Kl.substring(0,_HF)+_Kl.substring(_HF+1,_Kl.length);_HF--;}}}catch(Error){}var _IF={};try{_IF=JSON.parse(_Kl);if(_IF instanceof Array){_Kl="{ \"default\" : "+_Kl+"}";_IF=JSON.parse(_Kl);}}catch(err){_Kl="{ \"default\" : \""+_Kl.toString()+"\"}";try{_IF=JSON.parse(_Kl);}catch(err){}}return _EF(_IF);}function _JF(_CF){var _P4="[";
for(var i=0;i<_CF.length;++i){if(i>0)_P4+=", ";_P4+=_KF(_CF[i]);}_P4+="]";return _P4;}function _KF(_CF){var _P4;if(_CF===null)return null;switch(typeof(_CF)){case "object":switch(_CF._Nk){case _Ek:if(!(_CF._LF)||(_CF._LF<_MF)){_MF=++_NF;_CF._LF=_NF;_P4=_OF(_CF.Object);_MF=++_NF;}break;case _Ck:if(!(_CF._LF)||(_CF._LF<_PF)){_PF=++_NF;_CF._LF=_NF;_P4=_QF(_CF.Object);_PF=++_NF;}break;default :if(_CF.constructor===Array){if(!(_CF._LF)||(_CF._LF<_MF)){_MF=++_NF;_CF._LF=_NF;_P4=_JF(_CF);_MF=++_NF;}}else {_P4=_CF.toString();
}break;}break;case "number":case "string":case "boolean":_P4=_CF;break;default :_P4=_CF.toString();break;}return _P4;}function _OF(_38){var _P4=[];var _vk=_uk._26(_38);if(_vk){for(var i=0;i<_vk._Kk.length;++i){if(_vk._Kk[i]!=undefined)_P4.push(_KF(_vk._Kk[i]));}}return _P4;}function _QF(_p7){var _P4={};var _r7=_s7._26(_p7);if(_r7){for(const [key,_re] of _r7){var _n5=key;if(_r7._3l&&_r7._3l.has(key))_n5=_r7._3l.get(key);_P4[_n5.toString()]=_KF(_re);}}return _P4;}function json_encode(_p7){var _Qg=_QF(yyGetInt32(_p7));
return JSON.stringify(_Qg);}var _RF=new Map();function _SF(_Pc){return _RF.has(_Pc);}function _TF(_Pc){_RF.set(_Pc,_Pc);}function _UF(_Pc){_RF.delete(_Pc);}function _VF(_Pc){if(typeof _Pc==="string"){return _Pc;}else if(_Pc===null){return null;}else if(_Pc===undefined){return null;}else if(typeof _Pc==="number"){return _Pc;}else if(typeof _Pc==="boolean"){return _Pc;}else if(typeof _Pc==="object"){if(_Pc instanceof Long){return _Pc._WF();}else if(_Pc instanceof Array&&!_SF(_Pc)){_TF(_Pc);var _P4=[];for(var i=0;i<_Pc.length;i++){
_P4.push(_VF(_Pc[i]));}_UF(_Pc);return _P4;}else if(_Pc.__yyIsGMLObject&&!_SF(_Pc)){_TF(_Pc);var _P4={};for(var _I6 in _Pc){if(_Pc.hasOwnProperty(_I6)){var _XF=_I6;if(typeof _YF!="undefined"&&_YF.hasOwnProperty(_I6)){_XF="gml"+_YF[_I6];}if(_XF.startsWith("gml")||g_instance_names[_XF]!=undefined){var name=_XF.startsWith("gml")?_XF.substring(3):_XF;var _7l=g_instance_names[_XF];if((_7l==undefined)||(_7l[0]|_7l[1])){Object.defineProperty(_P4,name,{value:_VF(_Pc[_I6]),_ZF:true,__F:true,enumerable:true});}}}}_UF(_Pc);
return _P4;}else if(_SF(_Pc)){return "Cycle found"}}return undefined;}function json_stringify(_Pc){var _G4=_VF(_Pc);return JSON.stringify(_G4);}function _0G(_Sk){var _P4=[];for(var i=0;i<_Sk.length;++i){var _n5=_1G(_Sk[i]);_P4.push(_n5);}return _P4;}function _1G(_Pc){if(typeof _Pc==="string"){return _Pc;}else if(_Pc===null){return null;}else if(_Pc===undefined){return undefined;}else if(typeof _Pc==="number"){return _Pc;}else if(typeof _Pc==="boolean"){return _Pc;}else if(typeof _Pc==="object"){if(_Pc instanceof Array){return _0G(_Pc);
}else {var _P4={};_P4.__type="Object";_P4.__yyIsGMLObject=true;for(var _I6 in _Pc){if(_Pc.hasOwnProperty(_I6)){var name;if(g_instance_names[_I6]!=undefined){name=_I6;}else if(typeof g_var2obf!=="undefined"&&g_var2obf[_I6]!=undefined){name=g_var2obf[_I6];}else {name="gml"+_I6;}var _re=_1G(_Pc[_I6]);Object.defineProperty(_P4,name,{value:_re,configurable:true,writable:true,enumerable:true});}}return _P4;}}}function json_parse(_Pc){var _P4=undefined;try{var _G4=JSON.parse(_Pc);_P4=_1G(_G4);}catch(e){_55("JSON parse error");
}return _P4;}function _2G(_3G){var _I6=_3G.length,i=0;var _Fz=[];var _4G=[];var start=0;var _al="";var _5G=0;while(i<_I6){var _ih=i;var c=_3G.charCodeAt(i++);switch(c){case 13:case 10:if(c==13&&_3G.charCodeAt(i)==10)i+=1;if(_ih>_5G){if(_ih>start)_al+=_3G.substring(start,_ih);_4G.push(_al);_al="";}_Fz.push(_4G);_4G=[];_5G=i;start=i;break;case 44:if(_ih>start)_al+=_3G.substring(start,_ih);_4G.push(_al);_al="";if(_3G.charCodeAt(i)==34){i+=1;start=i;while(i<_I6){c=_3G.charCodeAt(i++);if(c!=34)continue;switch(_3G.charCodeAt(i)){
case 34:if(i>start)_al+=_3G.substring(start,i);i+=1;start=i;continue;case 13:case 10:case 44:break;default :continue;}break;}}else start=i;break;}}if(i>_5G){if(i>start)_al+=_3G.substring(start,i);_4G.push(_al);_Fz.push(_4G);}return _Fz;}function load_csv(_Mq){_Mq=yyGetString(_Mq);var _jF=_ml(_Mq,true);if(_jF==null)_jF=_ml(_Mq,false);if(_jF==null)return -1;var _6G=_2G(_jF);var height=_6G.length;if(height==0)return -1;var width=_6G[0].length;if(width==0)return -1;var _gg=ds_grid_create(width,height);var _sj=_tj._26(_gg)._pj;
for(var y=0;y<height;y++){var _7G=_6G[y];for(var x=0;x<_7G.length;x++){_sj[x+y*width]=_7G[x];}}return _gg;}function draw_set_halign(_8G){_WD._9G=yyGetInt32(_8G);}function draw_get_halign(){return _WD._9G;}function draw_set_valign(_8G){_WD._aG=yyGetInt32(_8G);}function draw_get_valign(){return _WD._aG;}function draw_set_font(_ao){_WD._bG=yyGetInt32(_ao);}function draw_get_font(){return _WD._bG;}function draw_text(_Q5,_R5,_1o){var c=(_Lc&0xffffff)|(((_Kc*255.0)<<24)&0xff000000);_WD._cG(yyGetString(_1o),yyGetReal(_Q5),
yyGetReal(_R5),-1,-1,0,1,1,c,c,c,c);}var draw_text_colour=draw_text_color;function draw_text_color(_Q5,_R5,_1o,_Es,_Fs,_Gs,_Hs,_A9){if(!_s8)_SD("draw_text_color() only uses the 1st colour");var _dG=_Kc;var _eG=_fG;if(_A9>1.0)_A9=1.0;else if(_A9<0)_A9=0.0;var _G4=((yyGetReal(_A9)*255)<<24)&0xff000000;_Es=(yyGetInt32(_Es)&0xffffff)|_G4;_Fs=(yyGetInt32(_Fs)&0xffffff)|_G4;_Gs=(yyGetInt32(_Gs)&0xffffff)|_G4;_Hs=(yyGetInt32(_Hs)&0xffffff)|_G4;_WD._cG(yyGetString(_1o),yyGetReal(_Q5),yyGetReal(_R5),-1,-1,0,1,
1,_Es,_Fs,_Gs,_Hs);_Kc=_dG;draw_set_color(_eG);}var draw_text_ext_colour=draw_text_ext_color;function draw_text_ext_color(_Q5,_R5,_1o,_gG,_nj,_Es,_Fs,_Gs,_Hs,_A9){if(!_s8)_SD("draw_text_ext_color() only uses the 1st colour");var _dG=_Kc;var _eG=_fG;if(_A9>1.0)_A9=1.0;else if(_A9<0)_A9=0.0;var _G4=(yyGetReal(_A9)*255)<<24;_Es=(yyGetInt32(_Es)&0xffffff)|_G4;_Fs=(yyGetInt32(_Fs)&0xffffff)|_G4;_Gs=(yyGetInt32(_Gs)&0xffffff)|_G4;_Hs=(yyGetInt32(_Hs)&0xffffff)|_G4;_WD._cG(yyGetString(_1o),yyGetReal(_Q5),yyGetReal(_R5),
yyGetInt32(_gG),yyGetInt32(_nj),0,1,1,_Es,_Fs,_Gs,_Hs);_Kc=_dG;draw_set_color(_eG);}function draw_text_ext(_Q5,_R5,_1o,_gG,_nj){var c=(_Lc&0xffffff)|(((_Kc*255.0)<<24)&0xff000000);_WD._cG(yyGetString(_1o),yyGetReal(_Q5),yyGetReal(_R5),yyGetInt32(_gG),yyGetInt32(_nj),0,1,1,c,c,c,c);}function draw_text_transformed(_Q5,_R5,_1o,_2o,_3o,_U5){var c=(_Lc&0xffffff)|(((_Kc*255.0)<<24)&0xff000000);_WD._cG(yyGetString(_1o),yyGetReal(_Q5),yyGetReal(_R5),-1,-1,yyGetReal(_U5),yyGetReal(_2o),yyGetReal(_3o),c,c,c,c);
}function draw_text_ext_transformed(_Q5,_R5,_1o,_gG,_nj,_2o,_3o,_U5){var c=(_Lc&0xffffff)|(((_Kc*255.0)<<24)&0xff000000);_WD._cG(yyGetString(_1o),yyGetReal(_Q5),yyGetReal(_R5),yyGetInt32(_gG),yyGetInt32(_nj),yyGetReal(_U5),yyGetReal(_2o),yyGetReal(_3o),c,c,c,c);}var draw_text_ext_transformed_colour=draw_text_ext_transformed_color;function draw_text_ext_transformed_color(_Q5,_R5,_1o,_gG,_nj,_2o,_3o,_U5,_Es,_Fs,_Gs,_Hs,_A9){if(!_s8)_SD("draw_text_ext_transformed_color() only uses the 1st colour");var _dG=_Kc;
var _eG=_fG;var _G4=((yyGetReal(_A9)*255)<<24)&0xff000000;_Es=_Nc(yyGetInt32(_Es))|_G4;_Fs=_Nc(yyGetInt32(_Fs))|_G4;_Gs=_Nc(yyGetInt32(_Gs))|_G4;_Hs=_Nc(yyGetInt32(_Hs))|_G4;_WD._cG(yyGetString(_1o),yyGetReal(_Q5),yyGetReal(_R5),yyGetInt32(_gG),yyGetInt32(_nj),yyGetReal(_U5),yyGetReal(_2o),yyGetReal(_3o),_Es,_Fs,_Gs,_Hs);_Kc=_dG;draw_set_color(_eG);}var draw_text_transformed_colour=draw_text_transformed_color;function draw_text_transformed_color(_Q5,_R5,_1o,_2o,_3o,_U5,_Es,_Fs,_Gs,_Hs,_A9){if(!_s8)_SD("draw_text_transformed_color() only uses the 1st colour");
var _dG=_Kc;var _eG=_fG;var _G4=((yyGetReal(_A9)*255)<<24)&0xff000000;_Es=_Nc(yyGetInt32(_Es))|_G4;_Fs=_Nc(yyGetInt32(_Fs))|_G4;_Gs=_Nc(yyGetInt32(_Gs))|_G4;_Hs=_Nc(yyGetInt32(_Hs))|_G4;_WD._cG(yyGetString(_1o),yyGetReal(_Q5),yyGetReal(_R5),-1,-1,yyGetReal(_U5),yyGetReal(_2o),yyGetReal(_3o),_Es,_Fs,_Gs,_Hs);_Kc=_dG;draw_set_color(_eG);}function string_height(_1o){_1o=yyGetString(_1o);_WD._hG();if(!_WD._iG)return 1;var _jG=_WD._XD(_1o,-1,_WD._iG);if(_jG==null)return _WD._iG._kG(_1o);return _WD._iG._kG(_1o)*_jG.length;
}function string_width(_1o){_WD._hG();return _WD._iG?_WD._iG._lG(yyGetString(_1o)):1;}function string_width_ext(_FF,_gG,_nj){_WD._hG();if(!_WD._iG)return 1;_WD._mG(yyGetString(_FF),0,0,yyGetInt32(_gG),yyGetInt32(_nj),0);return _nG;}function string_height_ext(_FF,_gG,_nj){_WD._hG();if(!_WD._iG)return 1;_WD._mG(yyGetString(_FF),0,0,yyGetInt32(_gG),yyGetInt32(_nj),0);return _oG;}function font_exists(_gg){if(_WD._26(yyGetInt32(_gg)))return true;else return false;}function font_get_bold(_gg){var _pG=_WD._26(yyGetInt32(_gg));
if(!_pG)return false;return _pG.bold;}function font_get_fontname(_gg){var _pG=_WD._26(yyGetInt32(_gg));if(!_pG)return "";return _pG._qG;}function font_get_name(_gg){var _pG=_WD._26(yyGetInt32(_gg));if(!_pG)return "";return _pG.pName;}var _rG=font_get_name;function font_get_italic(_gg){var _pG=_WD._26(yyGetInt32(_gg));if(!_pG)return false;return _pG.italic;}function font_get_first(_gg){var _pG=_WD._26(yyGetInt32(_gg));if(!_pG)return 0;return _pG.first;}function font_get_last(_gg){var _pG=_WD._26(yyGetInt32(_gg));if(!_pG)return 255;
return _pG.last;}function font_get_size(_gg){var _pG=_WD._26(yyGetInt32(_gg));if(!_pG)return 0;return _pG.size;}function _sG(_b4,_7d,_tG,_uG,_vG,_wG,_xG){var _pG=new _yG();_pG._zG=0.5;_pG._AG=true;_pG.pName="fnt_"+_b4;_pG._qG=_b4;_pG.size=_7d;_pG.bold=_tG;_pG.italic=_uG;_pG.first=_vG;_pG.last=_wG;_pG._Qh=false;if(_b4.toLowerCase().lastIndexOf(".ttf")!=-1){_pG._BG=new Font();_pG._BG.onload=function(){_pG._Qh=true;};_pG._BG.onerror=function(err){alert(err);};_pG._BG.src=_CG(null,null,_W8+_b4);_pG._DG=_7d+"px "+_pG._BG._Fh+" ";
}else {_pG._DG=_7d+"px "+_b4+" ";_pG._Qh=true;}if(_tG)_pG._DG=_pG._DG+"bold ";if(_uG)_pG._DG=_pG._DG+"Italic ";if(_xG){return _WD._EG(_pG);}else {return _pG;}}function font_delete(id){id=yyGetInt32(id);if(_WD.Fonts[id]!=undefined){_WD.Fonts[id]._BG=undefined;_WD.Fonts[id]=undefined;}}function font_enable_sdf(id,enable){}function font_get_sdf_enabled(id){return false;}function font_add(_b4,_7d,_tG,_uG,_vG,_wG){return _sG(yyGetString(_b4),yyGetInt32(_7d),yyGetBool(_tG),yyGetBool(_uG),yyGetInt32(_vG),yyGetInt32(_wG),
true);}function font_add_sprite(_06,_vG,_FG,_gG){var _pG=new _yG();_pG._GG(yyGetInt32(_06),yyGetInt32(_vG),yyGetBool(_FG),yyGetInt32(_gG),null);return _WD._EG(_pG);}function font_add_sprite_ext(_06,_HG,_FG,_gG){_HG=yyGetString(_HG);var _pG=new _yG();_pG._GG(yyGetInt32(_06),_HG.charCodeAt(0),yyGetBool(_FG),yyGetInt32(_gG),_HG);return _WD._EG(_pG);}function font_replace_sprite(_gg,_06,_vG,_FG,_gG){_gg=yyGetInt32(_gg);var _pG=_WD._26(_gg);_pG._GG(yyGetInt32(_06),yyGetInt32(_vG),yyGetBool(_FG),yyGetInt32(_gG),
null);return _gg;};function font_replace_sprite_ext(_gg,_06,_HG,_FG,_gG){_gg=yyGetInt32(_gg);_HG=yyGetString(_HG);var _pG=_WD._26(_gg);_pG._GG(yyGetInt32(_06),_HG.charCodeAt(0),yyGetBool(_FG),yyGetInt32(_gG),_HG);return _gg;};function font_set_cache_size(_S4,_IG){_S4=yyGetInt32(_S4);_IG=yyGetInt32(_IG);var _pG=_WD._26(_S4);if(!_pG){_55("Trying to adjust the cache on a non-existant font ("+string(_S4)+")");return false;}if(_pG._JG){_55("Trying to adjust the cache on a SPRITE font ("+string(_S4)+")");return false;
}var _05=_pG._Tr;if(_05._F8>_IG){_05._D8=[];_05._E8=0;}_05._F8=_IG;}function font_get_texture(_S4){_S4=yyGetInt32(_S4);var _pG=_WD._26(_S4);if(!_pG){_55("Trying to adjust the cache on a non-existant font ("+string(_S4)+")");return false;}if(_pG._JG){_55("Trying to adjust the cache on a SPRITE font ("+string(_S4)+")");return false;}var __4=_pG._Tr;if(__4){return({_Ec:__4._95,_Fc:__4,toString:()=>{return "Texture:"+__4._95.URL;}});}return null;}function font_get_uvs(_S4){_S4=yyGetInt32(_S4);var _pG=_WD._26(_S4);
if(!_pG){_55("Trying to adjust the uvs on a non-existent font ("+string(_S4)+")");return null;}var __4=_pG._Tr;var _95=__4._95;var _Ws=1.0/_95.width;var _Xs=1.0/_95.height;var _Ys=[];_Ys.push(__4.x*_Ws,__4.y*_Xs,(__4.x+__4.CropWidth)*_Ws,(__4.y+__4.CropHeight)*_Xs);return _Ys;}function font_get_info(_S4){_S4=yyGetInt32(_S4);var _pG=_WD._26(_S4);if(!_pG){return undefined;}var __4=_pG._Tr;var _6j=__4!=null?__4.x:0;var _KG=__4!=null?__4.y:0;_P4=new _LG();variable_struct_set(_P4,"ascenderOffset",_pG.ascenderOffset);
variable_struct_set(_P4,"ascender",_pG.ascender);variable_struct_set(_P4,"size",_pG.size);variable_struct_set(_P4,"spriteIndex",_pG.spriteIndex);variable_struct_set(_P4,"texture",__4!=null?__4.tp:-1);variable_struct_set(_P4,"name",_pG.pName);variable_struct_set(_P4,"bold",_pG.bold);variable_struct_set(_P4,"italic",_pG.italic);variable_struct_set(_P4,"glyphs",new _LG());var glyphs=variable_struct_get(_P4,"glyphs");if(_pG.spriteIndex!=-1){for(var _E4 in _pG._MG){if(_pG._MG.hasOwnProperty(_E4)){var _NG=new _LG();
var _OG=_pG._MG[_E4];var _PG=parseInt(_E4);var char=String.fromCharCode(_PG);variable_struct_set(_NG,"char",_OG);variable_struct_set(glyphs,char,_NG);}}}else {for(var _E4 in _pG.glyphs){if(_pG.glyphs.hasOwnProperty(_E4)){var _NG=new _LG();var _OG=_pG.glyphs[_E4];var _PG=parseInt(_E4);var char=String.fromCharCode(_PG);variable_struct_set(_NG,"char",_PG);variable_struct_set(_NG,"x",_OG.x);variable_struct_set(_NG,"y",_OG.y);variable_struct_set(_NG,"w",_OG.w);variable_struct_set(_NG,"h",_OG.h);variable_struct_set(_NG,
"shift",_OG.shift);variable_struct_set(_NG,"offset",_OG.offset);if(_OG._QG!=undefined){var _QG=[];for(var _dl=0;_dl<_OG._QG.length;++_dl){_QG.push(_OG._QG[_dl]);}variable_struct_set(_NG,"kerning",_QG);}variable_struct_set(glyphs,char,_NG);}}}return _P4;}function font_add_enable_aa(){}function font_add_get_enable_aa(){return false;}var _RG=0,_SG=1,_TG=2,_UG=3,_VG=4,_WG=5,_XG=6,_YG=7,_ZG=8,__G=9,_0H=10,_1H=11,_2H=12;var _3H=1;function _4H(_j6){_Kq(_j6*1000);}function scheduler_resolution_set(__3){}function scheduler_resolution_get(){
return -1;}function display_set_timing_method(_5H){_3H=yyGetInt32(_5H);}function display_get_timing_method(){return _3H;}/*@constructor */function _6H(_Ln,_b4){this.name=_b4;this.value=_Ln;}function _7H(){var _8H=_ml("hiscores_data_",true);if(_8H!=null){try{var _9H=JSON.parse(_8H);var i;for(i=0;i<_aH;i++){_bH[i]=_9H[i].name;_cH[i]=_9H[i].value;}}catch(_ek){_55("Error: reading hiscore JSON");}}}function _lr(){var _9H={};var i;for(i=0;i<_aH;i++){_9H[i]=new _6H(_cH[i],_bH[i]);}var _8H=JSON.stringify(_9H);_il("hiscores_data_",
_8H);}function draw_highscore(_b7,_c7,_D6,_E6){_b7=yyGetInt32(_b7);_c7=yyGetInt32(_c7);_D6=yyGetInt32(_D6);_E6=yyGetInt32(_E6);var _9G=_WD._9G;var _gb=(_E6-_c7)/_aH;for(var i=0;i<_aH;i++){_WD._9G=0;draw_text(_b7,_c7,_bH[i]);_WD._9G=2;draw_text(_D6,_c7,_cH[i].toString());_c7+=_gb;}_WD._9G=_9G;}function highscore_clear(){_cH[0]=_cH[1]=_cH[2]=_cH[3]=_cH[4]=_cH[5]=_cH[6]=_cH[7]=_cH[8]=_cH[9]=0;_bH[0]=_bH[1]=_bH[2]=_bH[3]=_bH[4]=_bH[5]=_bH[6]=_bH[7]=_bH[8]=_bH[9]=_dH;}function highscore_add(__n,_eH){_eH=yyGetInt32(_eH);
var _fH=yyGetString(__n);if(!_fH){_fH="";}for(var i=0;i<_aH;i++){if(_eH>_cH[i]){_cH.splice(i,0,_eH);_bH.splice(i,0,_fH);_cH.splice(10,1);_bH.splice(10,1);_lr();return;}}}function highscore_value(_gH){_gH=yyGetInt32(_gH);if(_gH<1||_gH>_aH)return -1;return _cH[_gH-1];}function highscore_name(_gH){_gH=yyGetInt32(_gH);if(_gH<1||_gH>_aH)return "";return _bH[_gH-1];}function _hH(_Xp,_do,_Ln){var _iH,_jH,_kH,_lH,_Xh,_Yh;_iH=(_Xp>>16)&0xff;_kH=(_Xp>>8)&0xff;_Xh=(_Xp&0xff);_jH=(_do>>16)&0xff;_lH=(_do>>8)&0xff;_Yh=(_do&0xff);
var _5q=1.0-_Ln;var _D4=_Mk(_iH*_5q+_jH*_Ln);var _E4=_Mk(_kH*_5q+_lH*_Ln);var _F4=_Mk(_Xh*_5q+_Yh*_Ln);var _L4=((_D4&0xff)<<16)|((_E4&0xff)<<8)|(_F4&0xff);return _L4;}function _mH(_Xp,_do,_Ln){return _hH(_Xp,_do,_Ln);}function event_perform(_tt,_nH,_D3,_oH){_D3=yyGetInt32(_D3);_oH=yyGetInt32(_oH);if(YYInstanceof(_tt)!="instance"){_55("Attempt to dispatch event on non-instance object");}var _pH=_qH;_qH=true;var event=_rH(_D3,_oH);var index=_sH(_D3,_oH);_tt._b6(event,index,_tt,_nH);_qH=_pH;}function event_perform_async(_tt,
_nH,_D3,_tH){var _uH=g_pBuiltIn.async_load_D3=yyGetInt32(_D3);_tH=yyGetInt32(_tH);g_pBuiltIn.async_load=_tH;_H3._I3(_vH,_D3);ds_map_destroy(_tH);g_pBuiltIn.async_load=_uH;}function _wH(_tt,_sq,_xH,_yH){var _zH=_AH._26(_xH);if((_zH!=null)&&(_zH!=undefined)){var _BH=_zH.Events[_yH];if((_BH!=null)&&(_BH!=undefined)){_BH.Event(_tt,_tt);}}}function event_perform_object(_tt,_nH,_Sk,_D3,_oH){_Sk=yyGetInt32(_Sk);_D3=yyGetInt32(_D3);_oH=yyGetInt32(_oH);var event=_rH(_D3,_oH);var index=_sH(_D3,_oH);var _1F=_H3._26(_Sk);
if(!_1F){_55("Error: undefined object id passed to event_perform_object: "+_Sk);}else {var _CH=_DH;var _EH=_FH;var _GH=_HH;_DH=_1F;_FH=event;_HH=index;var _IH=_1F;while(_IH!=null){if(_IH._b6(event,index,_tt,_nH)){break;}_IH=_IH._fE;}_DH=_CH;_FH=_EH;_HH=_GH;}}var _JH=true;function event_user(_tt,_nH,_oH){_oH=yyGetInt32(_oH);if(_oH<0||_oH>15){_55("Error: illegal user event ID: "+_oH);}_oH+=_KH;event_perform(_tt,_nH,_LH,_oH);}function event_inherited(_tt,_nH){_tt._MH(_NH,_OH,_nH);}function parameter_count(){
return _PH;}function parameter_string(_74){_74=yyGetInt32(_74);if(_74<0||_74>_PH)return "";var _qi=_QH[_74];if(_RH[_74]!=null)_qi=_qi+"="+_RH[_74];return _qi;}function _SH(){var _TH="en";if(navigator["language"]){_TH=navigator["language"];}else if(navigator["userLanguage"]){_TH=navigator["userLanguage"];}return _TH;}function os_get_language(){var _TH=_SH();var _UH=_TH.indexOf("-");if(_UH>=0){_TH=_TH.substring(0,_UH);}return _TH;}function os_get_region(){var _k5="";var _TH=_SH();var _UH=_TH.indexOf("-");if(_UH>=0){
_k5=_TH.substring(_UH+1,_TH.length);}return _k5;}function os_check_permission(){}function os_request_permission(){}function device_mouse_dbclick_enable(_cz){}function base64_encode(data){var _uh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _vh,_wh,_xh,_6h,_yh,_zh,_Ah,_Bh;var i=0;var _Ch=0;var _Dh="";var _Eh=[];if(!data){return data;}data=yyGetString(data);if(typeof data!=="string")return undefined;data=_VH(data);do {_vh=data.charCodeAt(i++);_wh=data.charCodeAt(i++);_xh=data.charCodeAt(i++);
_Bh=_vh<<16|_wh<<8|_xh;_6h=_Bh>>18&0x3f;_yh=_Bh>>12&0x3f;_zh=_Bh>>6&0x3f;_Ah=_Bh&0x3f;_Eh[_Ch++]=_uh.charAt(_6h)+_uh.charAt(_yh)+_uh.charAt(_zh)+_uh.charAt(_Ah);}while(i<data.length);_Dh=_Eh.join('');var _D4=data.length%3;return(_D4?_Dh.slice(0,_D4-3):_Dh)+'==='.slice(_D4||3);}function _WH(_UD){var _rb="";var index=0;while(index<_UD.length){var _n5=0;var _XH=_UD.charCodeAt(index++);if((_XH&0x80)==0){_n5=_XH;}else if((_XH&0xe0)==0xc0){_n5=(_XH&0x1f)<<6;_XH=_UD.charCodeAt(index++);_n5|=(_XH&0x3f);}else if((_XH&0xf0)==0xe0){
_n5=(_XH&0x0f)<<12;_XH=_UD.charCodeAt(index++);_n5|=(_XH&0x3f)<<6;_XH=_UD.charCodeAt(index++);_n5|=(_XH&0x3f);}else {_n5=(_XH&0x07)<<18;_XH=_UD.charCodeAt(index++);_n5|=(_XH&0x3f)<<12;_XH=_UD.charCodeAt(index++);_n5|=(_XH&0x3f)<<6;_XH=_UD.charCodeAt(index++);_n5|=(_XH&0x3f);}if(_n5==0x00)break;var chr=String.fromCharCode(_n5);_rb+=chr;}return _rb;}function base64_decode(data){var _uh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _vh,_wh,_xh,_6h,_yh,_zh,_Ah,_Bh;var i=0;var _Ch=0;
var _YH="";var _Eh=[];if(!data){return data;}data=yyGetString(data);data+='';do {_6h=_uh.indexOf(data.charAt(i++));_yh=_uh.indexOf(data.charAt(i++));_zh=_uh.indexOf(data.charAt(i++));_Ah=_uh.indexOf(data.charAt(i++));_Bh=_6h<<18|_yh<<12|_zh<<6|_Ah;_vh=_Bh>>16&0xff;_wh=_Bh>>8&0xff;_xh=_Bh&0xff;if(_zh==64){_Eh[_Ch++]=String.fromCharCode(_vh);}else if(_Ah==64){_Eh[_Ch++]=String.fromCharCode(_vh,_wh);}else {_Eh[_Ch++]=String.fromCharCode(_vh,_wh,_xh);}}while(i<data.length);_YH=_Eh.join('');return _WH(_YH);
}function _ZH(data){var _uh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _vh,_wh,_xh,_6h,_yh,_zh,_Ah,_Bh;var i=0;var _Ch=0;var _YH="";var _Eh=[];if(!data){return data;}data=yyGetString(data);data+='';do {_6h=_uh.indexOf(data.charAt(i++));_yh=_uh.indexOf(data.charAt(i++));_zh=_uh.indexOf(data.charAt(i++));_Ah=_uh.indexOf(data.charAt(i++));_Bh=_6h<<18|_yh<<12|_zh<<6|_Ah;_vh=_Bh>>16&0xff;_wh=_Bh>>8&0xff;_xh=_Bh&0xff;if(_zh==64){_Eh[_Ch++]=String.fromCharCode(_vh);}else if(_Ah==64){
_Eh[_Ch++]=String.fromCharCode(_vh,_wh);}else {_Eh[_Ch++]=String.fromCharCode(_vh,_wh,_xh);}}while(i<data.length);_YH=_Eh.join('');return _YH;}function md5_string_unicode(string){return __H(_0I(yyGetString(string)));}function md5_string_utf8(string){return __H(yyGetString(string));}function md5_file(_bv){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(_D3){_D3=yyGetString(_D3);try{if(_xD.Options.TrackingID){_gaq.push(['_trackEvent','GMEvent',_D3]);}else if(_xD.Options.FlurryId){FlurryAgent.logEvent(_D3);}}catch(_FD){show_debug_message("caught unhandled exception "+_FD.message);}}function analytics_event_ext(_D3){_D3=yyGetString(_D3);try{var arguments=arguments;if(_xD.Options.TrackingID){if(arguments.length>=3){_gaq.push(['_trackEvent','GMEvent',_D3,arguments[1],arguments[2]]);}else {_gaq.push(['_trackEvent','GMEvent',_D3]);
}}else if(_xD.Options.FlurryId){if((arguments.length>=3)&&(arguments.length&1)==1){var _bB={};var _1I=arguments.length-1;if(_1I>10){_1I=10;}for(var i=0;i<_1I;i+=2){_bB[arguments[i+1]]=arguments[i+2].toString();}FlurryAgent.logEvent(_D3,_bB);}else {FlurryAgent.logEvent(_D3);}}}catch(_FD){show_debug_message("caught unhandled exception "+_FD.message);}}function sha1_string_unicode(_FF){return _2I(_0I(yyGetString(_FF)));}function sha1_string_utf8(_FF){return _2I(yyGetString(_FF));}function sha1_file(_Mq){return "unsupported";
}var _3I=0;var _4I="";function __H(_qi){return _5I(_6I(_7I(_qi)));}function _8I(_qi){return _9I(_6I(_7I(_qi)));}function _aI(_qi,e){return _bI(_6I(_7I(_qi)),e);}function _cI(_dl,_tm){return _5I(_dI(_7I(_dl),_7I(_tm)));}function _eI(_dl,_tm){return _9I(_dI(_7I(_dl),_7I(_tm)));}function _fI(_dl,_tm,e){return _bI(_dI(_7I(_dl),_7I(_tm)),e);}function _gI(){return __H("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72";}function _6I(_qi){return _hI(_iI(_jI(_qi),_qi.length*8));}function _dI(key,data){var _kI=_jI(key);
if(_kI.length>16)_kI=_iI(_kI,key.length*8);var _lI=Array(16),_mI=Array(16);for(var i=0;i<16;i++){_lI[i]=_kI[i]^0x36363636;_mI[i]=_kI[i]^0x5C5C5C5C;}var hash=_iI(_lI.concat(_jI(data)),512+data.length*8);return _hI(_iI(_mI.concat(hash),512+128));}function _5I(_nI){var _oI=_3I?"0123456789ABCDEF":"0123456789abcdef";var _pI="";var x;for(var i=0;i<_nI.length;i++){x=_nI.charCodeAt(i);_pI+=_oI.charAt((x>>>4)&0x0F)+_oI.charAt(x&0x0F);}return _pI;}function _9I(_nI){var _qI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _pI="";var _0j=_nI.length;for(var i=0;i<_0j;i+=3){var _rI=(_nI.charCodeAt(i)<<16)|(i+1<_0j?_nI.charCodeAt(i+1)<<8:0)|(i+2<_0j?_nI.charCodeAt(i+2):0);for(var _17=0;_17<4;_17++){if(i*8+_17*6>_nI.length*8)_pI+=_4I;else _pI+=_qI.charAt((_rI>>>6*(3-_17))&0x3F);}}return _pI;}function _bI(_nI,_sI){var _tI=_sI.length;var i,_17,q,x,_uI;var _vI=Array(Math.ceil(_nI.length/2));for(i=0;i<_vI.length;i++){_vI[i]=(_nI.charCodeAt(i*2)<<8)|_nI.charCodeAt(i*2+1);}var _wI=Math.ceil(_nI.length*8/(Math.log(_sI.length)/Math.log(2)));
var _xI=Array(_wI);for(_17=0;_17<_wI;_17++){_uI=Array();x=0;for(i=0;i<_vI.length;i++){x=(x<<16)+_vI[i];q=Math.floor(x/_tI);x-=q*_tI;if(_uI.length>0||q>0)_uI[_uI.length]=q;}_xI[_17]=x;_vI=_uI;}var _pI="";for(i=_xI.length-1;i>=0;i--)_pI+=_sI.charAt(_xI[i]);return _pI;}function _7I(_nI){var _pI="";var i=-1;var x,y;while(++i<_nI.length){x=_nI.charCodeAt(i);y=i+1<_nI.length?_nI.charCodeAt(i+1):0;if(0xD800<=x&&x<=0xDBFF&&0xDC00<=y&&y<=0xDFFF){x=0x10000+((x&0x03FF)<<10)+(y&0x03FF);i++;}if(x<=0x7F)_pI+=String.fromCharCode(x);
else if(x<=0x7FF)_pI+=String.fromCharCode(0xC0|((x>>>6)&0x1F),0x80|(x&0x3F));else if(x<=0xFFFF)_pI+=String.fromCharCode(0xE0|((x>>>12)&0x0F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));else if(x<=0x1FFFFF)_pI+=String.fromCharCode(0xF0|((x>>>18)&0x07),0x80|((x>>>12)&0x3F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));}return _pI;}function _0I(_nI){var _pI="";for(var i=0;i<_nI.length;i++)_pI+=String.fromCharCode(_nI.charCodeAt(i)&0xFF,(_nI.charCodeAt(i)>>>8)&0xFF);return _pI;}function _yI(_nI){var _pI="";for(var i=0;i<_nI.length;
i++)_pI+=String.fromCharCode((_nI.charCodeAt(i)>>>8)&0xFF,_nI.charCodeAt(i)&0xFF);return _pI;}function _jI(_nI){var _pI=Array(_nI.length>>2);for(var i=0;i<_pI.length;i++)_pI[i]=0;for(var i=0;i<_nI.length*8;i+=8)_pI[i>>5]|=(_nI.charCodeAt(i/8)&0xFF)<<(i%32);return _pI;}function _hI(_nI){var _pI="";for(var i=0;i<_nI.length*32;i+=8)_pI+=String.fromCharCode((_nI[i>>5]>>>(i%32))&0xFF);return _pI;}function _iI(x,_0j){x[_0j>>5]|=0x80<<((_0j)%32);x[(((_0j+64)>>>9)<<4)+14]=_0j;var _G4=1732584193;var _F4=-271733879;var c=-1732584194;
var _tm=271733878;for(var i=0;i<x.length;i+=16){var _zI=_G4;var _AI=_F4;var _BI=c;var _CI=_tm;_G4=_DI(_G4,_F4,c,_tm,x[i+0],7,-680876936);_tm=_DI(_tm,_G4,_F4,c,x[i+1],12,-389564586);c=_DI(c,_tm,_G4,_F4,x[i+2],17,606105819);_F4=_DI(_F4,c,_tm,_G4,x[i+3],22,-1044525330);_G4=_DI(_G4,_F4,c,_tm,x[i+4],7,-176418897);_tm=_DI(_tm,_G4,_F4,c,x[i+5],12,1200080426);c=_DI(c,_tm,_G4,_F4,x[i+6],17,-1473231341);_F4=_DI(_F4,c,_tm,_G4,x[i+7],22,-45705983);_G4=_DI(_G4,_F4,c,_tm,x[i+8],7,1770035416);_tm=_DI(_tm,_G4,_F4,c,x[i+9],
12,-1958414417);c=_DI(c,_tm,_G4,_F4,x[i+10],17,-42063);_F4=_DI(_F4,c,_tm,_G4,x[i+11],22,-1990404162);_G4=_DI(_G4,_F4,c,_tm,x[i+12],7,1804603682);_tm=_DI(_tm,_G4,_F4,c,x[i+13],12,-40341101);c=_DI(c,_tm,_G4,_F4,x[i+14],17,-1502002290);_F4=_DI(_F4,c,_tm,_G4,x[i+15],22,1236535329);_G4=_EI(_G4,_F4,c,_tm,x[i+1],5,-165796510);_tm=_EI(_tm,_G4,_F4,c,x[i+6],9,-1069501632);c=_EI(c,_tm,_G4,_F4,x[i+11],14,643717713);_F4=_EI(_F4,c,_tm,_G4,x[i+0],20,-373897302);_G4=_EI(_G4,_F4,c,_tm,x[i+5],5,-701558691);_tm=_EI(_tm,
_G4,_F4,c,x[i+10],9,38016083);c=_EI(c,_tm,_G4,_F4,x[i+15],14,-660478335);_F4=_EI(_F4,c,_tm,_G4,x[i+4],20,-405537848);_G4=_EI(_G4,_F4,c,_tm,x[i+9],5,568446438);_tm=_EI(_tm,_G4,_F4,c,x[i+14],9,-1019803690);c=_EI(c,_tm,_G4,_F4,x[i+3],14,-187363961);_F4=_EI(_F4,c,_tm,_G4,x[i+8],20,1163531501);_G4=_EI(_G4,_F4,c,_tm,x[i+13],5,-1444681467);_tm=_EI(_tm,_G4,_F4,c,x[i+2],9,-51403784);c=_EI(c,_tm,_G4,_F4,x[i+7],14,1735328473);_F4=_EI(_F4,c,_tm,_G4,x[i+12],20,-1926607734);_G4=_FI(_G4,_F4,c,_tm,x[i+5],4,-378558);
_tm=_FI(_tm,_G4,_F4,c,x[i+8],11,-2022574463);c=_FI(c,_tm,_G4,_F4,x[i+11],16,1839030562);_F4=_FI(_F4,c,_tm,_G4,x[i+14],23,-35309556);_G4=_FI(_G4,_F4,c,_tm,x[i+1],4,-1530992060);_tm=_FI(_tm,_G4,_F4,c,x[i+4],11,1272893353);c=_FI(c,_tm,_G4,_F4,x[i+7],16,-155497632);_F4=_FI(_F4,c,_tm,_G4,x[i+10],23,-1094730640);_G4=_FI(_G4,_F4,c,_tm,x[i+13],4,681279174);_tm=_FI(_tm,_G4,_F4,c,x[i+0],11,-358537222);c=_FI(c,_tm,_G4,_F4,x[i+3],16,-722521979);_F4=_FI(_F4,c,_tm,_G4,x[i+6],23,76029189);_G4=_FI(_G4,_F4,c,_tm,
x[i+9],4,-640364487);_tm=_FI(_tm,_G4,_F4,c,x[i+12],11,-421815835);c=_FI(c,_tm,_G4,_F4,x[i+15],16,530742520);_F4=_FI(_F4,c,_tm,_G4,x[i+2],23,-995338651);_G4=_GI(_G4,_F4,c,_tm,x[i+0],6,-198630844);_tm=_GI(_tm,_G4,_F4,c,x[i+7],10,1126891415);c=_GI(c,_tm,_G4,_F4,x[i+14],15,-1416354905);_F4=_GI(_F4,c,_tm,_G4,x[i+5],21,-57434055);_G4=_GI(_G4,_F4,c,_tm,x[i+12],6,1700485571);_tm=_GI(_tm,_G4,_F4,c,x[i+3],10,-1894986606);c=_GI(c,_tm,_G4,_F4,x[i+10],15,-1051523);_F4=_GI(_F4,c,_tm,_G4,x[i+1],21,-2054922799);
_G4=_GI(_G4,_F4,c,_tm,x[i+8],6,1873313359);_tm=_GI(_tm,_G4,_F4,c,x[i+15],10,-30611744);c=_GI(c,_tm,_G4,_F4,x[i+6],15,-1560198380);_F4=_GI(_F4,c,_tm,_G4,x[i+13],21,1309151649);_G4=_GI(_G4,_F4,c,_tm,x[i+4],6,-145523070);_tm=_GI(_tm,_G4,_F4,c,x[i+11],10,-1120210379);c=_GI(c,_tm,_G4,_F4,x[i+2],15,718787259);_F4=_GI(_F4,c,_tm,_G4,x[i+9],21,-343485551);_G4=_HI(_G4,_zI);_F4=_HI(_F4,_AI);c=_HI(c,_BI);_tm=_HI(_tm,_CI);}return Array(_G4,_F4,c,_tm);}function _II(q,_G4,_F4,x,_qi,_Y6){return _HI(_JI(_HI(_HI(_G4,
q),_HI(x,_Y6)),_qi),_F4);}function _DI(_G4,_F4,c,_tm,x,_qi,_Y6){return _II((_F4&c)|((~_F4)&_tm),_G4,_F4,x,_qi,_Y6);}function _EI(_G4,_F4,c,_tm,x,_qi,_Y6){return _II((_F4&_tm)|(c&(~_tm)),_G4,_F4,x,_qi,_Y6);}function _FI(_G4,_F4,c,_tm,x,_qi,_Y6){return _II(_F4^c^_tm,_G4,_F4,x,_qi,_Y6);}function _GI(_G4,_F4,c,_tm,x,_qi,_Y6){return _II(c^(_F4|(~_tm)),_G4,_F4,x,_qi,_Y6);}function _HI(x,y){var _KI=(x&0xFFFF)+(y&0xFFFF);var _LI=(x>>16)+(y>>16)+(_KI>>16);return(_LI<<16)|(_KI&0xFFFF);}function _JI(_tu,_MI){return(_tu<<_MI)|(_tu>>>(32-_MI));
}function _2I(_qi){return _5I(_NI(_7I(_qi)));}function _OI(_qi){return _9I(_NI(_7I(_qi)));}function _PI(_qi,e){return _bI(_NI(_7I(_qi)),e);}function _QI(_dl,_tm){return _5I(_RI(_7I(_dl),_7I(_tm)));}function _SI(_dl,_tm){return _9I(_RI(_7I(_dl),_7I(_tm)));}function _TI(_dl,_tm,e){return _bI(_RI(_7I(_dl),_7I(_tm)),e);}function _UI(){return _2I("abc").toLowerCase()=="a9993e364706816aba3e25717850c26c9cd0d89d";}function _NI(_qi){return _VI(_WI(_XI(_qi),_qi.length*8));}function _RI(key,data){var _kI=_XI(key);if(_kI.length>16)_kI=_WI(_kI,
key.length*8);var _lI=Array(16),_mI=Array(16);for(var i=0;i<16;i++){_lI[i]=_kI[i]^0x36363636;_mI[i]=_kI[i]^0x5C5C5C5C;}var hash=_WI(_lI.concat(_XI(data)),512+data.length*8);return _VI(_WI(_mI.concat(hash),512+160));}function _XI(_nI){var _pI=Array(_nI.length>>2);for(var i=0;i<_pI.length;i++)_pI[i]=0;for(var i=0;i<_nI.length*8;i+=8)_pI[i>>5]|=(_nI.charCodeAt(i/8)&0xFF)<<(24-i%32);return _pI;}function _VI(_nI){var _pI="";for(var i=0;i<_nI.length*32;i+=8)_pI+=String.fromCharCode((_nI[i>>5]>>>(24-i%32))&0xFF);return _pI;
}function _WI(x,_0j){x[_0j>>5]|=0x80<<(24-_0j%32);x[((_0j+64>>9)<<4)+15]=_0j;var w=Array(80);var _G4=1732584193;var _F4=-271733879;var c=-1732584194;var _tm=271733878;var e=-1009589776;for(var i=0;i<x.length;i+=16){var _zI=_G4;var _AI=_F4;var _BI=c;var _CI=_tm;var _YI=e;for(var _17=0;_17<80;_17++){if(_17<16)w[_17]=x[i+_17];else w[_17]=_JI(w[_17-3]^w[_17-8]^w[_17-14]^w[_17-16],1);var _Y6=_HI(_HI(_JI(_G4,5),_ZI(_17,_F4,c,_tm)),_HI(_HI(e,w[_17]),__I(_17)));e=_tm;_tm=c;c=_JI(_F4,30);_F4=_G4;_G4=_Y6;}_G4=_HI(_G4,_zI);
_F4=_HI(_F4,_AI);c=_HI(c,_BI);_tm=_HI(_tm,_CI);e=_HI(e,_YI);}return Array(_G4,_F4,c,_tm,e);}function _ZI(_Y6,_F4,c,_tm){if(_Y6<20)return(_F4&c)|((~_F4)&_tm);if(_Y6<40)return _F4^c^_tm;if(_Y6<60)return(_F4&c)|(_F4&_tm)|(c&_tm);return _F4^c^_tm;}function __I(_Y6){return(_Y6<20)?1518500249:(_Y6<40)?1859775393:(_Y6<60)?-1894007588:-899497514;}function _0J(_b4,_8l){for(var index=0;index<_8l.length;index++){var _1J=_8l[index];if(_1J.pName==_b4){return index;}}return -1;}function _2J(_b4,_8l){var _3J="gml_Script_"+_b4;
var _4J=-1;for(var index=0;index<_8l.length;index++){var _5J=_8l[index];if(_5J.endsWith(_b4)){if(_5J==_3J)return index+100000;else if(_5J==_b4)_4J=index+100000;}}if(_4J==-1){var _6J="gml_GlobalScript_"+_b4;for(var index=0;index<_8l.length;index++){var _5J=_8l[index];if(_5J.endsWith(_b4)){if(_5J==_6J)return index+100000;}}}return _4J;}function _7J(_b4){_b4=yyGetString(_b4);var _8J={type:-1,id:-1};if((_P4=_0J(_b4,_xD.GMObjects))>=0){_8J.type=_RG;_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.Sprites))>=0){_8J.type=_SG;
_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.GMRooms))>=0){_8J.type=_UG;_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.Sounds))>=0){_8J.type=_TG;_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.Backgrounds))>=0){_8J.type=_U3?__G:_VG,_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.Paths))>=0){_8J.type=_WG;_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.Fonts))>=0){_8J.type=_YG;_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.Timelines))>=0){_8J.type=_ZG;_8J.id=_P4;return _8J;}if((_P4=_2J(_b4,_xD.ScriptNames))>=0){_8J.type=_XG;_8J.id=_P4;
return _8J;}if((_P4=_0J(_b4,_xD.Shaders))>=0){_8J.type=_0H;_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.Sequences))>=0){_8J.type=_1H;_8J.id=_P4;return _8J;}if((_P4=_0J(_b4,_xD.AnimCurves))>=0){_8J.type=_2H;_8J.id=_P4;return _8J;}return _8J;}function _9J(_74,_aJ){switch(_aJ){case _RG:return(object_exists(_74))?object_get_name(_74):"";case _SG:return(sprite_exists(_74))?sprite_get_name(_74):"";case _TG:return(_Rq(_74))?_bJ(_74):"";case _UG:return(room_exists(_74))?room_get_name(_74):"";case __G:case _VG:return(_Uq(_74))?_Pr(_74):"";
case _WG:return(path_exists(_74))?path_get_name(_74):"";case _XG:return(script_exists(_74))?script_get_name(_74):"";case _YG:return(font_exists(_74))?font_get_name(_74):"";case _ZG:return(timeline_exists(_74))?timeline_get_name(_74):"";case _0H:return(_cJ(_74))?shader_get_name(_74):"";case _1H:return(_dJ(_74))?_eJ(_74):"";case _2H:return(_fJ(_74))?_gJ(_74):"";}return "";}function asset_get_index(_b4){_b4=yyGetString(_b4);var _8J=_7J(_b4);if(_8J.id>=0)return _8J.id;var _Vk=Object.getOwnPropertyNames(g_pBuiltIn);
for(var i=0;i>_Vk;i++){if(_Vk[i]==_b4){return i;}}return -1;}function asset_get_type(_b4){_b4=yyGetString(_b4);var _8J=_7J(_b4);return _8J.type;}function alarm_get(_Tm,index){return _Tm.alarm[yyGetInt32(index)];}function alarm_set(_Tm,index,_E8){_Tm.alarm[yyGetInt32(index)]=yyGetInt32(_E8);}function game_set_speed(_hJ,_sh){_hJ=yyGetReal(_hJ);if(_hJ<0)return;if(_hJ==0)_W3._iJ(_hJ);if(yyGetInt32(_sh)==0)_W3._iJ(_hJ);else _W3._iJ(1000000.0/_hJ);};function game_get_speed(_hJ){if(!_W3._jJ())return 0;if(yyGetInt32(_hJ)==0)return _W3._X3();
else return 1000000.0/_W3._X3();}/*@constructor */function _kJ(){this._lJ=0;this._mJ=0;this._nJ=false;this._oJ=0;this._pJ=0;};_kJ.prototype._iJ=function(_hJ){this._oJ=_hJ;this._qJ();};_kJ.prototype._rJ=function(_hJ){this._nJ=_hJ;};_kJ.prototype._sJ=function(){return this._lJ;};_kJ.prototype._tJ=function(){return this._lJ*0.000001;};_kJ.prototype._uJ=function(_hJ){return this._lJ/_hJ;};_kJ.prototype._jJ=function(){if(this._oJ>0.0)return true;return true;};_kJ.prototype._qJ=function(){this._lJ=0;if(this._oJ>0.0){
this._mJ=_vJ();}else {this._mJ=0;}this._pJ=0;this._nJ=false;};_kJ.prototype._Uf=function(){var current;if(this._oJ>0.0){current=this._mJ+1000000.0/this._oJ;}else current=_vJ();this._pJ=current-this._mJ;if(!this._nJ)this._lJ+=this._pJ;this._mJ=current;};_kJ.prototype._X3=function(){if(this._oJ>0)return this._oJ;if(this._pJ>0){return 1000000.0/this._pJ;}return 30.0;};var _W3=new _kJ();function gamepad_is_supported(){return _fe._Of();}function gamepad_get_device_count(){return _fe._Kf();}function gamepad_is_connected(_Mf){
return _fe._Vf(yyGetInt32(_Mf));}function gamepad_get_button_threshold(_Mf){return _fe._se(yyGetInt32(_Mf));}function gamepad_set_button_threshold(_Mf,_Qf){_fe._Pf(yyGetInt32(_Mf),yyGetReal(_Qf));}function gamepad_get_axis_deadzone(_Mf){return _fe._qe(yyGetInt32(_Mf));}function gamepad_set_axis_deadzone(_Mf,_Sf){_fe._Rf(yyGetInt32(_Mf),yyGetReal(_Sf));}function gamepad_get_description(_Mf){return _fe._Lf(yyGetInt32(_Mf));}function gamepad_button_count(_Mf){return _fe._xe(yyGetInt32(_Mf));}function gamepad_button_check(_Mf,
_ze){return _fe._De(yyGetInt32(_Mf),yyGetInt32(_ze));}function gamepad_button_check_pressed(_Mf,_ze){return _fe._ye(yyGetInt32(_Mf),yyGetInt32(_ze));}function gamepad_button_check_released(_Mf,_ze){return _fe._Ce(yyGetInt32(_Mf),yyGetInt32(_ze));}function gamepad_button_value(_Mf,_ze){return _fe._Ee(yyGetInt32(_Mf),yyGetInt32(_ze));}function gamepad_axis_count(_Mf){return _fe._Fe(yyGetInt32(_Mf));}function gamepad_axis_value(_Mf,_He){return _fe._Ge(yyGetInt32(_Mf),yyGetInt32(_He));}function gamepad_set_vibration(_Mf,
_wJ,_xJ){}function gamepad_set_color(_Mf,_ys){}function gamepad_set_colour(_Mf,_Mc){}function gamepad_hat_count(_Mf){return 0;}function gamepad_hat_value(_Mf,_74){return 0;}function gamepad_remove_mapping(_Mf){}function gamepad_test_mapping(_Mf,_yJ){}function gamepad_get_mapping(_Mf){_Mf=yyGetInt32(_Mf);if((_Mf<0)||(_Mf>=_fe._Kf())){return "device index out of range";}return "no mapping";}function gamepad_get_guid(_Mf){_Mf=yyGetInt32(_Mf);if((_Mf<0)||(_Mf>=_fe._Kf())){return "device index out of range";}return "none";
}function gamepad_set_option(){}function gamepad_get_option(){return 0;}var _6C=1,_4C=2,_zJ=3,_5C=4,_2C=5,_3C=6,_AJ=7,_BJ=8,_CJ=9,_DJ=10,_EJ=11;var _FJ=0.0;function display_get_gui_height(){var _GJ=_HJ;var scale=_IJ;if(_GJ<0)_GJ=window_get_height();if(scale==0.0)scale=1.0;return _GJ/scale;}function display_get_gui_width(){var _JJ=_KJ;var scale=_LJ;if(_JJ<0)_JJ=window_get_width();if(scale==0.0)scale=1.0;return _JJ/scale;}function display_set_gui_size(_A8,_B8){_KJ=yyGetInt32(_A8);_HJ=yyGetInt32(_B8);_MJ=false;_NJ=0;
_OJ=0;_LJ=1;_IJ=1;if(_PJ){_QJ();}}function display_set_gui_maximise(_2o,_3o,_RJ,_SJ){_MJ=true;_NJ=0;_OJ=0;_LJ=1;_IJ=1;_KJ=-1;_HJ=-1;if(_2o==-1&&_3o==-1&&_RJ==undefined&&_SJ==undefined){if(_PJ){_QJ();}return;}if(_2o!=undefined)_LJ=yyGetReal(_2o);if(_3o!=undefined)_IJ=yyGetReal(_3o);if(_RJ!=undefined)_NJ=yyGetReal(_RJ);if(_SJ!=undefined)_OJ=yyGetReal(_SJ);if(_PJ){_QJ();}}var display_set_gui_maximize=display_set_gui_maximise;var _TJ=96;function display_get_dpi_x(){return _TJ*window.devicePixelRatio;}var _UJ=96;
function display_get_dpi_y(){return _UJ;}function display_get_width(){return _VJ();}function display_get_height(){return _WJ();}function display_get_orientation(){return 0;}function draw_clear(_0d){_XJ(_Nc(yyGetInt32(_0d)));}var draw_clear_alpha=_YJ;function _YJ(_0d,_A9){_0d=yyGetInt32(_0d);_A9=yyGetReal(_A9);_ZJ();var __J=[];__J[0]=1;__J[1]=0;__J[2]=0;__J[3]=1;__J[4]=0;__J[5]=0;_4a._0K(__J[0],__J[1],__J[2],__J[3],__J[4],__J[5]);if(!_4a.clearRect||_0d!=0||_A9!=0){_4a.globalAlpha=_A9;_4a.fillStyle=_9s(_Nc(_0d),
_A9);_4a.globalCompositeOperation='copy';_4a.fillRect(_1K,_2K,_3K,_4K);}else {_4a.clearRect(_1K,_2K,_3K,_4K);}_5K();}function make_color_rgb(_pB,_qB,_rB){return(yyGetInt32(_pB))|(yyGetInt32(_qB)<<8)|(yyGetInt32(_rB)<<16);}function _6K(_Mj,_7K,_8K){return make_color_rgb(_Mj,_7K,_8K);}var make_colour_rgb=make_color_rgb;var _9K=_6K;function color_get_blue(_0d){return(yyGetInt32(_0d)>>16)&0xff;}var colour_get_blue=color_get_blue;function color_get_green(_0d){return(yyGetInt32(_0d)>>8)&0xff;}var colour_get_green=color_get_green;
function color_get_red(_0d){return(yyGetInt32(_0d)&0xff);}var colour_get_red=color_get_red;function _aK(_0d){_0d=yyGetInt32(_0d);var _bK=0.0;var _cK=0.0;var _dK=0.0;var _k7=0.0;var _l7=0.0;var _eK=0.0;var _tm=0.0;var _K6=0.0;_bK=(_0d&0xff)/255.0;_cK=((_0d>>8)&0xff)/255.0;_dK=((_0d>>16)&0xff)/255.0;_K6=_X6(_X6(_bK,_cK),_dK);_eK=_W6(_W6(_bK,_cK),_dK);_tm=_eK-_K6;if(_eK==0)_l7=0.0;else _l7=1.0*_tm/_eK;if(_l7==0)_k7=0.0;else if(_bK==_eK)_k7=60.0*(_cK-_dK)/_tm;else if(_cK==_eK)_k7=120.0+60.0*(_dK-_bK)/_tm;else _k7=240.0+60.0*(_bK-_cK)/_tm;
if(_k7<0)_k7=_k7+360.0;var _n5=Math.min(255,Math.max(0,_eK*255.0));var _qi=Math.min(255,Math.max(0,_l7*255.0));var h=Math.min(255,Math.max(0,(_k7*255.0)/360.0));var _kn={h:h,_qi:_qi,_n5:_n5};return _kn;}function color_get_hue(_0d){var _fK=_aK(_0d);return _fK.h;}var colour_get_hue=color_get_hue;function color_get_saturation(_0d){var _fK=_aK(_0d);return _fK._qi;}var colour_get_saturation=color_get_saturation;function color_get_value(_0d){var _fK=_aK(_0d);return _fK._n5;}var colour_get_value=color_get_value;function merge_color(_Xp,
_do,_2D){_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);_2D=yyGetReal(_2D);var _iH=(_Xp>>16)&0xff;var _kH=(_Xp>>8)&0xff;var _Xh=_Xp&0xff;var _jH=(_do>>16)&0xff;var _lH=(_do>>8)&0xff;var _Yh=_do&0xff;var _gK=1.0-_2D;var _D4=~~(_iH*_gK+_jH*_2D);var _E4=~~(_kH*_gK+_lH*_2D);var _F4=~~(_Xh*_gK+_Yh*_2D);return((_D4<<16)&0xff0000)|((_E4<<8)&0xff00)|(_F4&0xff);}var merge_colour=merge_color;function make_color_hsv(_hK,_iK,_Ln){var _bK=0.0;var _cK=0.0;var _dK=0.0;var _k7=0.0;var _l7=0.0;var _eK=0.0;var _SC=0.0;var _ih=0.0;var q=0.0;
var _Y6=0.0;var i=0;var _kn;_k7=yyGetReal(_hK)*360.0/255.0;if(_k7==360.0)_k7=0.0;_l7=yyGetReal(_iK)/255.0;_eK=yyGetReal(_Ln)/255.0;if(_l7==0){_bK=_eK;_cK=_eK;_dK=_eK;}else {_k7=_k7/60.0;i=Math.floor(_k7);_SC=_k7-i;_ih=_eK*(1.0-_l7);q=_eK*(1.0-(_l7*_SC));_Y6=_eK*(1.0-(_l7*(1.0-_SC)));switch(i){case 0:{_bK=_eK;_cK=_Y6;_dK=_ih;}break;case 1:{_bK=q;_cK=_eK;_dK=_ih;}break;case 2:{_bK=_ih;_cK=_eK;_dK=_Y6;}break;case 3:{_bK=_ih;_cK=q;_dK=_eK;}break;case 4:{_bK=_Y6;_cK=_ih;_dK=_eK;}break;default :{_bK=_eK;_cK=_ih;
_dK=q;}}}_bK=Math.max(0,Math.min(255,Math.floor((_bK*255.0)+0.5)));_cK=Math.max(0,Math.min(255,Math.floor((_cK*255.0)+0.5)));_dK=Math.max(0,Math.min(255,Math.floor((_dK*255.0)+0.5)));_kn=_bK|(_cK<<8)|(_dK<<16);return _kn;}var make_colour_hsv=make_color_hsv;function draw_set_alpha(_A9){_A9=yyGetReal(_A9);if(_A9<0){_A9=0;}if(_A9>1){_A9=1;}_Kc=_A9;_jK=_9s(_Lc,_Kc);}function draw_get_alpha(){return _Kc;}function draw_get_color(){return _fG;}var draw_get_colour=draw_get_color;function draw_set_color(_Mc){_Mc=yyGetInt32(_Mc);
_fG=_Mc;_Lc=_Nc(_Mc);_kK=_lK(_Lc);_jK=_9s(_Lc,_Kc);}var draw_set_colour=draw_set_color;function draw_set_lighting(_cz){_Mu(_cz);};function draw_light_enable(_t9,_cz){_Ru(_t9,_cz);};function draw_light_define_direction(_t9,_fb,_gb,_Ou,_L4){_Nu(_t9,_fb,_gb,_Ou,_L4);};function draw_light_define_ambient(colour){_Su(colour);};function draw_light_define_point(_t9,x,y,z,_D4,_L4){_Pu(_t9,x,y,z,_D4,_L4);};function draw_light_get_ambient(){return _Vu();}function draw_light_get(_t9){return _Uu(yyGetInt32(_t9));};function draw_get_lighting(){
return _Wu();}function draw_roundrect(_b7,_c7,_D6,_E6,_5o){draw_roundrect_color_ext(_b7,_c7,_D6,_E6,10,10,_fG,_fG,_5o);}function draw_roundrect_ext(_b7,_c7,_D6,_E6,_mK,_nK,_5o){draw_roundrect_color_ext(_b7,_c7,_D6,_E6,_mK,_nK,_fG,_fG,_5o);}function draw_roundrect_color(_b7,_c7,_D6,_E6,_Xp,_do,_5o){draw_roundrect_color_ext(_b7,_c7,_D6,_E6,10,10,_Xp,_do,_5o);}var draw_roundrect_colour=draw_roundrect_color;var draw_roundrect_color_ext=_oK;var draw_roundrect_colour_ext=_oK;function _oK(_b7,_c7,_D6,_E6,_mK,_nK,
_Xp,_do,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_mK=yyGetReal(_mK);_nK=yyGetReal(_nK);_Xp=yyGetReal(_Xp);_do=yyGetReal(_do);_5o=yyGetBool(_5o);if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;}if(_E6<_c7){var _pK=_c7;_c7=_E6;_E6=_pK;}if(_D6<_b7){var _pK=_b7;_b7=_D6;_D6=_pK;}var width=_D6-_b7;var height=_E6-_c7;var _qK=_mK;var _rK=_nK;var _L4=_4a.globalAlpha=_Kc;_4a.beginPath();_4a.moveTo(_b7+_qK,_c7);_4a.lineTo(_b7+width-_qK,_c7);_4a.quadraticCurveTo(_b7+width,_c7,
_b7+width,_c7+_rK);_4a.lineTo(_b7+width,_c7+height-_rK);_4a.quadraticCurveTo(_b7+width,_c7+height,_b7+width-_qK,_c7+height);_4a.lineTo(_b7+_qK,_c7+height);_4a.quadraticCurveTo(_b7,_c7+height,_b7,_c7+height-_rK);_4a.lineTo(_b7,_c7+_rK);_4a.quadraticCurveTo(_b7,_c7,_b7+_qK,_c7);_4a.closePath();if(_5o){_4a.strokeStyle=_9s(_Nc(_Xp),1.0);_4a.stroke();}else {_4a.fillStyle=_9s(_Nc(_Xp),1.0);_4a.fill();}}var draw_rectangle=_sK;function _sK(_b7,_c7,_D6,_E6,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);
_E6=yyGetReal(_E6);_5o=yyGetBool(_5o);_4a.globalAlpha=_Kc;if(_5o){if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;}_4a.lineWidth=1;_4a.strokeStyle=_jK;_4a._tK(_b7+0.5,_c7+0.5,(_D6-_b7),(_E6-_c7));}else {if(_FJ!=0.0){_D6+=_FJ;_E6+=_FJ;}_4a.fillStyle=_jK;_4a._uK(_b7,_c7,_D6-_b7+1,_E6-_c7+1);}}var draw_rectangle_color=_vK;var draw_rectangle_colour=_vK;function _vK(_b7,_c7,_D6,_E6,_Xp,_do,_wK,_xK,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);
_wK=yyGetInt32(_wK);_xK=yyGetInt32(_xK);_5o=yyGetBool(_5o);var _L4=_9s(_Nc(_Xp),1.0);_4a.globalAlpha=_Kc;if(_5o){if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;}_4a.lineWidth=1;_4a.strokeStyle=_L4;_4a._tK(_b7+0.5,_c7+0.5,(_D6-_b7),(_E6-_c7));}else {if(_FJ!=0.0){_D6+=_FJ;_E6+=_FJ;}_4a.fillStyle=_L4;_4a._uK(_b7+0.5,_c7+0.5,(_D6-_b7),(_E6-_c7));}}var _Yp=_yK;function _yK(_b7,_c7,_D6,_E6,_Xp,_do,_zK,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);
_zK=yyGetBool(_zK);_5o=yyGetBool(_5o);_4a.globalAlpha=_Kc;_4a.lineWidth=1;var _eo=_9s(_Nc(_Xp),1.0);var _fo=_9s(_Nc(_do),1.0);var _AK;if(_zK){_AK=_4a.createLinearGradient(_b7,_c7,_b7,_E6);}else {_AK=_4a.createLinearGradient(_b7,_c7,_D6,_c7);}_AK.addColorStop(0,_eo);_AK.addColorStop(1,_fo);if(_5o){if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;}_4a.strokeStyle=_AK;_4a._tK(_b7+0.5,_c7+0.5,_D6-_b7,_E6-_c7);}else {if(_FJ!=0.0){_D6+=_FJ;_E6+=_FJ;}_4a.fillStyle=_AK;_4a._uK(_b7+0.5,_c7+0.5,_D6-_b7,_E6-_c7);
}}var draw_point=_BK;function _BK(_Q5,_R5){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);if(_FJ!=0.0){_Q5+=_FJ;_R5+=_FJ;}_4a.globalAlpha=_Kc;_4a.fillStyle=_jK;_4a._uK(_Q5,_R5,1,1);}function draw_line_width(_b7,_c7,_D6,_E6,_nj){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;}_4a.globalAlpha=_Kc;_4a.strokeStyle=_kK;_4a.lineWidth=yyGetReal(_nj);_4a._CK();_4a._DK(_b7+0.5,_c7+0.5);_4a._EK(_D6+0.5,_E6+0.5);_4a._FK();_4a._GK();_4a._uK(_D6,
_E6,1,1);}function draw_line(_b7,_c7,_D6,_E6){draw_line_width(_b7,_c7,_D6,_E6,1);}var draw_getpixel=_HK;var draw_getpixel_ext=_IK;function _HK(_Q5,_R5){return _IK(yyGetReal(_Q5),yyGetReal(_R5))&0x00ffffff;}function _IK(_Q5,_R5){var _JK=canvas.width/_KK;var _LK=canvas.height/_MK;var _L4=_NK(canvas,yyGetReal(_Q5)*_JK,yyGetReal(_R5)*_LK);return _L4;}var draw_triangle=_OK;function _OK(_b7,_c7,_D6,_E6,_8u,_9u,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_8u=yyGetReal(_8u);_9u=yyGetReal(_9u);
if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;_8u+=_FJ;_9u+=_FJ;}_4a.globalAlpha=_Kc;_4a.lineWidth=1;if(yyGetBool(_5o)){_4a.strokeStyle=_jK;_4a._CK();_4a._DK(_b7,_c7);_4a._EK(_D6,_E6);_4a._EK(_8u,_9u);_4a._EK(_b7,_c7);_4a._GK();_4a._FK();}else {_4a.strokeStyle=_jK;_4a.lineJoin="bevel";_4a.fillStyle=_jK;_4a._CK();_4a._DK(_b7,_c7);_4a._EK(_D6,_E6);_4a._EK(_8u,_9u);_4a._EK(_b7,_c7);_4a._PK();_4a._GK();_4a._FK();_4a.lineJoin="miter";}}var draw_triangle_color=_QK;var draw_triangle_colour=_QK;function _QK(_b7,
_c7,_D6,_E6,_8u,_9u,_Xp,_do,_wK,_5o){var _eo=_lK(_Nc(_Xp)|0xff000000);_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);_wK=yyGetInt32(_wK);_xK=yyGetInt32(_xK);_5o=yyGetBool(_5o);if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;_8u+=_FJ;_9u+=_FJ;}_4a.globalAlpha=_Kc;_4a.lineWidth=1;if(_5o){_4a.strokeStyle=_eo;_4a._CK();_4a._DK(_b7,_c7);_4a._EK(_D6,_E6);_4a._EK(_8u,_9u);_4a._EK(_b7,_c7);_4a._GK();_4a._FK();}else {_4a.strokeStyle=_eo;
_4a.lineJoin="bevel";_4a.fillStyle=_eo;_4a._CK();_4a._DK(_b7,_c7);_4a._EK(_D6,_E6);_4a._EK(_8u,_9u);_4a._EK(_b7,_c7);_4a._PK();_4a._GK();_4a._FK();_4a.lineJoin="miter";}}var _xo=_RK;function _RK(_b7,_c7,_D6,_E6,_2D,_SK,_TK,_UK,_VK,_WK,_XK,_YK){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_2D=yyGetReal(_2D);_SK=yyGetInt32(_SK);_TK=yyGetInt32(_TK);_UK=yyGetInt32(_UK);_VK=yyGetInt32(_VK);_WK=yyGetInt32(_WK);_XK=yyGetBool(_XK);_YK=yyGetBool(_YK);var _ZK;var __K;var _0L;var _1L;
var _L4;if(_XK){draw_rectangle_color(_b7,_c7,_D6,_E6,_SK,_SK,_SK,_SK,false);if(_YK){draw_rectangle_color(_b7,_c7,_D6,_E6,_io,_io,_io,_io,true);}}if(_2D<0){_2D=0;}if(_2D>100){_2D=100;}var _2L=_2D/100;switch(_WK){case 0:_ZK=_b7;_0L=_c7;__K=_b7+_2L*(_D6-_b7);_1L=_E6;break;case 1:_ZK=_D6-_2L*(_D6-_b7);_0L=_c7;__K=_D6;_1L=_E6;break;case 2:_ZK=_b7;_0L=_c7;__K=_D6;_1L=_c7+_2L*(_E6-_c7);break;case 3:_ZK=_b7;_0L=_E6-_2L*(_E6-_c7);__K=_D6;_1L=_E6;break;default :_ZK=_b7;_0L=_c7;__K=_b7+_2L*(_D6-_b7);_1L=_E6;break;
}if(_2D>50){_L4=_hH(_UK,_VK,(_2D-50.0)/50.0);}else {_L4=_hH(_TK,_UK,_2D/50.0);}draw_rectangle_color(_ZK,_0L,__K,_1L,_L4,_L4,_L4,_L4,false);if(_YK){draw_rectangle_color(_ZK,_0L,__K,_1L,_io,_io,_io,_io,true);}}function draw_healthbar(_b7,_c7,_D6,_E6,_2D,_SK,_TK,_VK,_WK,_XK,_YK){var _L4=merge_color(_TK,_VK,0.5);_xo(_b7,_c7,_D6,_E6,_2D,_SK,_TK,_L4,_VK,_WK,_XK,_YK);}function draw_set_circle_precision(_3L){_4L(yyGetInt32(_3L));}function _5L(){return _6L();}var draw_arrow=_7L;function _7L(_L6,_M6,_N6,_O6,size){
_L6=yyGetReal(_L6);_M6=yyGetReal(_M6);_N6=yyGetReal(_N6);_O6=yyGetReal(_O6);size=yyGetReal(size);var _8L=Math.sqrt(((_N6-_L6)*(_N6-_L6))+((_O6-_M6)*(_O6-_M6)));if(_8L!=0){if(size>_8L){size=_8L;}var _27=size*(_N6-_L6)/_8L;var _47=size*(_O6-_M6)/_8L;draw_line(_L6,_M6,_N6,_O6);draw_triangle(_N6-_27-_47/3.0,_O6-_47+_27/3.0,_N6,_O6,_N6-_27+_47/3.0,_O6-_47-_27/3.0,false);}}function draw_ellipse(_b7,_c7,_D6,_E6,_5o){draw_ellipse_color(_b7,_c7,_D6,_E6,_fG,_fG,_5o);}var draw_ellipse_color=_9L;var draw_ellipse_colour=_9L;
function _9L(x,y,_L6,_M6,_Xp,_do,_aL){x=yyGetReal(x);y=yyGetReal(y);_L6=yyGetReal(_L6);_M6=yyGetReal(_M6);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);_aL=yyGetBool(_aL);if(_FJ!=0.0){x+=_FJ;y+=_FJ;_L6+=_FJ;_M6+=_FJ;}var w=_L6-x;var h=_M6-y;var _bL=0.5522848;var _cL=(w/2)*_bL;var _dL=(h/2)*_bL;var _eL=x+w;var _fL=y+h;var _gL=x+w/2;var _hL=y+h/2;_4a.beginPath();_4a.moveTo(x,_hL);_4a.bezierCurveTo(x,_hL-_dL,_gL-_cL,y,_gL,y);_4a.bezierCurveTo(_gL+_cL,y,_eL,_hL-_dL,_eL,_hL);_4a.bezierCurveTo(_eL,_hL+_dL,_gL+_cL,_fL,
_gL,_fL);_4a.bezierCurveTo(_gL-_cL,_fL,x,_hL+_dL,x,_hL);_4a.closePath();var _eo=_9s(_Nc(_Xp),1.0);var _fo=_9s(_Nc(_do),1.0);if(w<=0)w*=-1;if(h<=0)h*=-1;var _AK=_4a.createRadialGradient(_gL,_hL,0,_gL,_hL,min(w/2,h/2));_AK.addColorStop(0,_eo);_AK.addColorStop(1,_fo);_4a.globalAlpha=_Kc;if(_aL){_4a.lineWidth=1;_4a.strokeStyle=_AK;_4a.stroke();}else {_4a.fillStyle=_AK;_4a.fill();}}var draw_circle_color=_iL;var draw_circle_colour=_iL;function _iL(_Q5,_R5,_Mj,_Xp,_do,_5o){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);
_Mj=yyGetReal(_Mj);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);_5o=yyGetBool(_5o);if(_FJ!=0.0){_Q5+=_FJ;_R5+=_FJ;}_4a.globalAlpha=_Kc;var _eo=_9s(_Nc(_Xp),1.0);var _fo=_9s(_Nc(_do),1.0);var _AK=_4a.createRadialGradient(_Q5,_R5,0,_Q5,_R5,_Mj);_AK.addColorStop(0,_eo);_AK.addColorStop(1,_fo);_4a._CK();if(_5o){_4a.lineWidth=1;_4a.strokeStyle=_AK;_4a._jL(_Q5,_R5,_Mj,0,Math.PI*2,true);_4a._GK();}else {_4a.fillStyle=_AK;_4a._jL(_Q5,_R5,_Mj,0,Math.PI*2,false);_4a._PK();}_4a._FK();}function draw_circle(_Q5,_R5,_Mj,
_5o){draw_circle_color(_Q5,_R5,_Mj,_fG,_fG,_5o);}var draw_point_color=_kL;var draw_point_colour=_kL;function _kL(_Q5,_R5,_0d){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);if(_FJ!=0.0){_Q5+=_FJ;_R5+=_FJ;}var _eo=_9s(_Nc(yyGetInt32(_0d)),1.0);_4a.globalAlpha=_Kc;_4a.fillStyle=_eo;_4a._uK(_Q5,_R5,1,1);}var draw_line_width_color=_lL;var draw_line_width_colour=_lL;function _lL(_b7,_c7,_D6,_E6,_nj,_Xp,_do){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_nj=yyGetReal(_nj);_Xp=yyGetInt32(_Xp);
_do=yyGetInt32(_do);if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;}_4a.globalAlpha=_Kc;var _eo=_9s(_Nc(_Xp),1.0);var _fo=_9s(_Nc(_do),1.0);var _AK=_4a.createLinearGradient(_b7,_c7,_D6,_E6);_AK.addColorStop(0,_eo);_AK.addColorStop(1,_fo);_4a.strokeStyle=_AK;_4a._CK();_4a._DK(_b7+0.5,_c7+0.5);_4a._EK(_D6+0.5,_E6+0.5);_4a.lineWidth=_nj;_4a._GK();_4a._FK();}function draw_line_color(_b7,_c7,_D6,_E6,_Xp,_do){draw_line_width_color(_b7,_c7,_D6,_E6,1,_Xp,_do);}var draw_line_colour=draw_line_color;function draw_button(_b7,
_c7,_D6,_E6,_mL){if(_FJ!=0.0){_b7+=_FJ;_c7+=_FJ;_D6+=_FJ;_E6+=_FJ;}if(_mL){draw_line_width_color(_b7,_c7,_D6,_c7,2,0xffffff,0xffffff);draw_line_width_color(_b7,_c7,_b7,_E6,2,0xffffff,0xffffff);draw_line_width_color(_D6,_c7,_D6,_E6,2,0x404040,0x404040);draw_line_width_color(_D6,_E6,_b7,_E6,2,0x404040,0x404040);}else {draw_line_width_color(_b7,_c7,_D6,_c7,2,0x404040,0x404040);draw_line_width_color(_b7,_c7,_b7,_E6,2,0x404040,0x404040);draw_line_width_color(_D6,_c7,_D6,_E6,2,0xffffff,0xffffff);draw_line_width_color(_D6,
_E6,_b7,_E6,2,0xffffff,0xffffff);}draw_rectangle_color(_b7,_c7,_D6,_E6,_fG,_fG,_fG,_fG,false);}function _9r(x,y,_L6,_M6,_eo,_fo,_aL){draw_ellipse_color(x,y,_L6,_M6,_eo,_fo,_aL);}function _nL(_oL){switch(_oL){case 1:_pL(_2C,_4C);break;case 2:_pL(_2C,_5C);break;case 3:_pL(_6C,_5C);break;default :_pL(_2C,_3C);break;}}var _pL=_qL;function _qL(src,_ea){_Fb("Blend modes only available in WebGL mode.");}function draw_texture_flush(){if(_s8==null)return;_rL();}function draw_enable_drawevent(_7z){_sL=yyGetBool(_7z);
}function skeleton_animation_set(_em,_b4,_c4=true){var _tL=_em._b9();if(_tL){_tL._L3(yyGetString(_b4),_c4);_em.image_index=0;_tL._64(0,0);}}function skeleton_animation_mix(_em,_uL,_vL,_q4){var _tL=_em._b9();if(_tL){_tL._n4(yyGetString(_uL),yyGetString(_vL),yyGetReal(_q4));}}function skeleton_animation_set_ext(_em,_S7,_Q3,_c4=true){var _tL=_em._b9();if(_tL){_Q3=yyGetInt32(_Q3);_tL._d4(yyGetString(_S7),_Q3,_c4);if(_Q3==0){_em.image_index=0;_tL._64(0,0);}}}function skeleton_animation_get_ext(_em,_Q3){var _tL=_em._b9();
if(_tL){return _tL._O7(yyGetInt32(_Q3));}return "";}function skeleton_attachment_set(_em,_wL,_xL){_wL=yyGetString(_wL);var _tL=_em._b9();if(_tL){if(typeof(_xL)=="string"){_tL._s4(_wL,_xL);}else {_xL=yyGetInt32(_xL);if(sprite_exists(_xL)){var _3F=_16._26(_xL);if(_tL._N4(_wL,_3F.pName)===undefined){_tL._Q4(_3F.pName,_3F,0,_3F.xOrigin,_3F.yOrigin,1,1,0,undefined,0xffffffff,1.0,false);}_tL._s4(_wL,_3F.pName);}else {_tL._s4(_wL,-1);}}}}function skeleton_attachment_get(_em,_wL){var _tL=_em._b9();if(_tL){return _tL._18(yyGetString(_wL));
}return "";}function skeleton_attachment_create(_em,_b4,_P3,_S4,_T4,_U4,_V4,_W4,_X4){var _tL=_em._b9();if(_tL){_S4=yyGetInt32(_S4);if(sprite_exists(_P3)&&(_S4>=0)){var _3F=_16._26(_P3);if((_3F._yL!=undefined)||(_3F._zL!=undefined)){console.log("ERROR: Sprite '"+_3F.pName+"' is not valid for use as an attachment (must be a bitmap)\n");return -1.0;}_tL._Q4(yyGetString(_b4),_3F,_S4,yyGetReal(_T4),yyGetReal(_U4),yyGetReal(_V4),yyGetReal(_W4),yyGetReal(_X4),undefined,undefined,undefined,false);return 1.0;}
}return -1.0;}function skeleton_attachment_create_colour(_em,_b4,_P3,_S4,_T4,_U4,_V4,_W4,_X4,_0d,_A9){var _tL=_em._b9();if(_tL){_S4=yyGetInt32(_S4);if(sprite_exists(_P3)&&(_S4>=0)){var _3F=_16._26(_P3);if((_3F._yL!=undefined)||(_3F._zL!=undefined)){console.log("ERROR: Sprite '"+_3F.pName+"' is not valid for use as an attachment (must be a bitmap)\n");return -1.0;}_tL._Q4(yyGetString(_b4),_3F,_S4,yyGetReal(_T4),yyGetReal(_U4),yyGetReal(_V4),yyGetReal(_W4),yyGetReal(_X4),undefined,yyGetInt32(_0d),yyGetReal(_A9),
false);return 1.0;}}return -1.0;}function skeleton_attachment_create_color(_em,_b4,_P3,_S4,_T4,_U4,_V4,_W4,_X4,_0d,_A9){skeleton_attachment_create_colour(_em,_b4,_P3,_S4,_T4,_U4,_V4,_W4,_X4,_0d,_A9);}function skeleton_attachment_replace(_em,_b4,_P3,_S4,_T4,_U4,_V4,_W4,_X4){var _tL=_em._b9();if(_tL){_S4=yyGetInt32(_S4);if(sprite_exists(_P3)&&(_S4>=0)){var _3F=_16._26(_P3);if((_3F._yL!=undefined)||(_3F._zL!=undefined)){console.log("ERROR: Sprite '"+_3F.pName+"' is not valid for use as an attachment (must be a bitmap)\n");
return -1.0;}_tL._Q4(yyGetString(_b4),_3F,_S4,yyGetReal(_T4),yyGetReal(_U4),yyGetReal(_V4),yyGetReal(_W4),yyGetReal(_X4),undefined,undefined,undefined,true);return 1.0;}}return -1.0;}function skeleton_attachment_replace_colour(_em,_b4,_P3,_S4,_T4,_U4,_V4,_W4,_X4,_0d,_A9){var _tL=_em._b9();if(_tL){_S4=yyGetInt32(_S4);if(sprite_exists(_P3)&&(_S4>=0)){var _3F=_16._26(_P3);if((_3F._yL!=undefined)||(_3F._zL!=undefined)){console.log("ERROR: Sprite '"+_3F.pName+"' is not valid for use as an attachment (must be a bitmap)\n");
return -1.0;}_tL._Q4(yyGetString(_b4),_3F,_S4,yyGetReal(_T4),yyGetReal(_U4),yyGetReal(_V4),yyGetReal(_W4),yyGetReal(_X4),undefined,yyGetInt32(_0d),yyGetReal(_A9),true);return 1.0;}}return -1.0;}function skeleton_attachment_destroy(_em,_b4){var name=yyGetString(_b4);var _tL=_em._b9();if(_tL){var _AL=_tL._L5(name);if(!_AL){console.log("skeleton_attachment_destroy: Attempted to destroy non-existant attachment '"+name+"'");}}}function skeleton_attachment_exists(_em,_b4){var name=yyGetString(_b4);var _tL=_em._b9();
if(_tL){var _AL=(_tL._N4(null,name,true)!==undefined);return _AL;}}function skeleton_attachment_replace_color(_em,_b4,_P3,_S4,_T4,_U4,_V4,_W4,_X4,_0d,_A9){skeleton_attachment_replace_colour(_em,_b4,_P3,_S4,_T4,_U4,_V4,_W4,_X4,_0d,_A9);}function skeleton_slot_colour_set(_em,_wL,_0d,_A9){var _tL=_em._b9();if(_tL){_wL=yyGetString(_wL);_tL._B4(_wL,yyGetInt32(_0d));_tL._I4(_wL,yyGetReal(_A9));}}function skeleton_slot_color_set(_em,_wL,_0d,_A9){skeleton_slot_colour_set(_em,_wL,_0d,_A9);}function skeleton_slot_colour_get(_em,
_wL){var _tL=_em._b9();if(_tL){return _tL._K4(yyGetString(_wL));}return 0xffffffff;}function skeleton_slot_color_get(_em,_wL){return skeleton_slot_colour_get(_em,_wL);}function skeleton_slot_alpha_get(_em,_wL){var _tL=_em._b9();if(_tL){return _tL._M4(yyGetString(_wL));}return 1.0;}function skeleton_skin_set(_em,_b4){var _tL=_em._b9();if(_tL){if(_b4.__type=="[SkeletonSkin]"){_tL._M3(_b4);}else {_tL._M3(yyGetString(_b4));}}}function skeleton_skin_get(_em){var _tL=_em._b9();if(_tL){return _tL._F7();}return "";}function skeleton_skin_create(_em,
_b4,_BL){var name=yyGetString(_b4);if(!Array.isArray(_BL)){_55("skeleton_skin_create argument 2 incorrect type (expecting an Array)");}var _CL=[];for(var i=0;i<_BL.length;++i){_CL.push(yyGetString(_BL[i]));}var _tL=_em._b9();if(_tL){var _I7=_tL._G7(name,_CL);return _I7;}}function skeleton_animation_get(_em){return skeleton_animation_get_ext(_em,0);}function skeleton_animation_get_duration(_em,_49){var _tL=_em._b9();if(_tL){return _tL._R7(yyGetString(_49));}return 0.0;}function skeleton_animation_get_frames(_em,
_49){var _tL=_em._b9();if(_tL){return _tL._T7(yyGetString(_49));}return 0.0;}function skeleton_animation_get_frame(_em,_Q3){var _tL=_em._b9();if(_tL){return _tL._34(yyGetInt32(_Q3));}return 0;}function skeleton_animation_set_frame(_em,_Q3,_74){var _tL=_em._b9();if(_tL){_tL._64(yyGetInt32(_Q3),yyGetInt32(_74));}}function skeleton_animation_get_position(_em,_Q3){var _a4=yyGetInt32(_Q3);var _tL=_em._b9();if(_tL){var _DL=_tL._O3(undefined,_a4);var _EL=_tL._34(_a4);if(_DL!=0){var _FL=_EL/_DL;if(_FL<0.0)_FL=0.0;if(_FL>1.0)_FL=1.0;
return _FL;}}return -1;}function skeleton_animation_set_position(_em,_Q3,_GL){var _a4=yyGetInt32(_Q3);var _FL=yyGetReal(_GL);if(_FL>=1.0||_FL<=1.0){_FL-=Math.floor(_FL/1.0);}if(_FL<0.0){_FL=1.0+_FL;}var _tL=_em._b9();if(_tL){var _DL=_tL._O3(undefined,_a4);if(_DL!=0){var _HL=Math.floor(_FL*_DL);if(_HL<0)_HL=0;if(_HL>=_DL)_HL=_DL-1;_tL._64(_a4,_HL);}}}function skeleton_animation_get_event_frames(_em,_S7,_D3){var frames=[];var _tL=_em._b9();if(_tL){var _IL=_tL._U7(_S7,_D3);if(_IL==null){frames.push(-1);}else {frames=_IL;
}}else {frames.push(-1);}return frames;}function skeleton_animation_clear(_em,_Q3){var _tL=_em._b9();if(_tL){_tL._P7(yyGetInt32(_Q3));}}function skeleton_animation_is_looping(_em,_Q3){var _tL=_em._b9();if(_tL){return _tL._84(yyGetInt32(_Q3));}return false;}function skeleton_animation_is_finished(_em,_Q3){var _tL=_em._b9();if(_tL){return _tL._94(yyGetInt32(_Q3));}return false;}function skeleton_collision_draw_set(_em,__3){var _tL=_em._b9();if(_tL){_tL._O5(yyGetReal(__3)>0.5?true:false);}}function skeleton_bone_data_get(_em,
_o7,_p7){var _tL=_em._b9();if(_tL){_tL._n7(yyGetString(_o7),yyGetInt32(_p7));}}function skeleton_bone_data_set(_em,_o7,_p7){var _tL=_em._b9();if(_tL){_tL._t7(yyGetString(_o7),yyGetInt32(_p7));}}function skeleton_bone_state_get(_em,_o7,_p7){var _tL=_em._b9();if(_tL){_tL._u7(yyGetString(_o7),yyGetInt32(_p7));}}function skeleton_bone_state_set(_em,_o7,_p7){var _tL=_em._b9();if(_tL){_tL._C7(yyGetString(_o7),yyGetInt32(_p7));}}function draw_skeleton(_P3,_JL,_KL,_LL,_Q5,_R5,_2o,_3o,_X4,_Mc,_A9){var _3F=_16._26(yyGetInt32(_P3));
if(_3F!=null&&_3F!=undefined){if(_3F._zL){_3F._zL._39(yyGetString(_JL),yyGetString(_KL),yyGetInt32(_LL),yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),yyGetReal(_3o),yyGetReal(_X4),yyGetInt32(_Mc),yyGetReal(_A9));}}}function draw_skeleton_time(_P3,_JL,_KL,_j6,_Q5,_R5,_2o,_3o,_X4,_Mc,_A9){var _3F=_16._26(yyGetInt32(_P3));if(_3F!=null&&_3F!=undefined){if(_3F._zL){_3F._zL._99(yyGetString(_JL),yyGetString(_KL),yyGetReal(_j6),yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),yyGetReal(_3o),yyGetReal(_X4),yyGetInt32(_Mc),
yyGetReal(_A9));}}}function draw_skeleton_instance(){_Fb("draw_skeleton_instance()");};function draw_skeleton_collision(_P3,_JL,_LL,_Q5,_R5,_2o,_3o,_X4,_Mc){var _3F=_16._26(yyGetInt32(_P3));if(_3F!=null&&_3F!=undefined){if(_3F._zL){_3F._zL._s9(yyGetString(_JL),yyGetInt32(_LL),yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),yyGetReal(_3o),yyGetReal(_X4),yyGetInt32(_Mc),_3F);}}}function draw_enable_skeleton_blendmodes(_cz){_68=yyGetBool(_cz);}function draw_get_enable_skeleton_blendmodes(){return _68;}function skeleton_animation_list(_P3,
_38){var _3F=_16._26(yyGetInt32(_P3));if(_3F!=null&&_3F!=undefined){if(_3F._zL){_3F._zL._Ab(yyGetInt32(_38));}}};function skeleton_skin_list(_P3,_38){var _3F=_16._26(yyGetInt32(_P3));if(_3F!=null&&_3F!=undefined){if(_3F._zL){_3F._zL._Bb(yyGetInt32(_38));}}};function skeleton_bone_list(_P3,_38){var _3F=_16._26(yyGetInt32(_P3));if(_3F!=null&&_3F!=undefined){if(_3F._zL){_3F._zL._Cb(yyGetInt32(_38));}}};function skeleton_slot_list(_P3,_38){var _3F=_16._26(yyGetInt32(_P3));if(_3F!=null&&_3F!=undefined){if(_3F._zL){
_3F._zL._Db(yyGetInt32(_38));}}};function skeleton_slot_data(_P3,_38){var _3F=_16._26(yyGetInt32(_P3));if(_3F!=null&&_3F!=undefined){if(_3F._zL){_3F._zL._28(yyGetInt32(_38));return 1;}}return -1;};function skeleton_slot_data_instance(_em,_38){var _tL=_em._b9();if(_tL){_tL._28(yyGetInt32(_38));return 1;}return -1;};function _ML(_em,_Q3){var _tL=_em._b9();if(_tL){return _tL._34(_Q3);}return 0.0;};function skeleton_get_minmax(_em){var _tL=_em._b9();if(_tL){var rect=new _OE(0,0,0,0);if(_tL._t6(rect)){var _z6=[];_z6.push(rect.left,
rect.top,rect.right,rect.bottom);return _z6;}}var _z6=[];_z6.push(0.0,0.0,0.0,0.0);return _z6;};function skeleton_get_num_bounds(_em){var _tL=_em._b9();if(_tL){return _tL._u6();}return 0.0;};function skeleton_get_bounds(_em,_74){var _tL=_em._b9();if(_tL){return _tL._v6(yyGetInt32(_74));}var _z6=[];_z6.push(0,"");return _z6;};function skeleton_find_slot(_em,_Q5,_R5,_38){var _tL=_em._b9();if(_tL){var _3F=_16._26(_em.sprite_index);if(_3F!=null&&_3F!=undefined){if(_3F._zL){_3F._NL(_em,yyGetReal(_Q5),yyGetReal(_R5),
yyGetInt32(_38));}}}}function draw_enable_swf_aa(_OL){_PL=yyGetBool(_OL);};function draw_set_swf_aa_level(_QL){_RL=yyGetReal(_QL);};function draw_get_swf_aa_level(){return _RL;};function _SL(xview,yview,wview,hview,angle){if(Math.abs(angle)<0.001){_TL.left=xview;_TL.top=yview;_TL.right=xview+wview;_TL.bottom=yview+hview;}else {var _ju=angle*(Math.PI/180.0);var _qi=Math.abs(sin(_ju));var c=Math.abs(cos(_ju));var _ek=(c*wview)+(_qi*hview);var _UL=(_qi*wview)+(c*hview);_TL.left=(xview+(wview-_ek)/2);_TL.right=(xview+(wview+_ek)/2);
_TL.top=(yview+(hview-_UL)/2);_TL.bottom=(yview+(hview+_UL)/2);}};function _VL(){if(_WL){var _XL=new _Zy();_XL.Multiply(_OA[_YL],_OA[_ZL]);__L._0M(_XL);_WL=false;}return __L;}function _1M(){_2M=true;};function _3M(){if(_2M){var _4M=new _Zy();_4M._5M(_OA[_kA]);var _Xa=[];var _Ya=[];_Xa[0]=_TL.left;_Xa[1]=_TL.right;_Xa[2]=_TL.right;_Xa[3]=_TL.left;_Ya[0]=_TL.top;_Ya[1]=_TL.top;_Ya[2]=_TL.bottom;_Ya[3]=_TL.bottom;_6M.left=Number.MAX_SAFE_INTEGER;_6M.top=Number.MAX_SAFE_INTEGER;_6M.right=Number.MIN_SAFE_INTEGER;
_6M.bottom=Number.MIN_SAFE_INTEGER;for(var i=0;i<4;i++){var _7M=((_Xa[i]*_4M._K6[0])+(_Ya[i]*_4M._K6[4])+_4M._K6[12]);var _8M=((_Xa[i]*_4M._K6[1])+(_Ya[i]*_4M._K6[5])+_4M._K6[13]);_6M.left=_X6(_6M.left,_7M);_6M.top=_X6(_6M.top,_8M);_6M.right=_W6(_6M.right,_7M);_6M.bottom=_W6(_6M.bottom,_8M);}_2M=false;}};function view_get_camera(_hz){return g_pBuiltIn.view_camera[yyGetInt32(_hz)];};function view_get_visible(_hz){return g_pBuiltIn.view_visible[yyGetInt32(_hz)];};function view_get_xport(_hz){return g_pBuiltIn.view_xport[yyGetInt32(_hz)];
};function view_get_yport(_hz){return g_pBuiltIn.view_yport[yyGetInt32(_hz)];};function view_get_wport(_hz){return g_pBuiltIn.view_wport[yyGetInt32(_hz)];};function view_get_hport(_hz){return g_pBuiltIn.view_hport[yyGetInt32(_hz)];};function view_get_surface_id(_hz){return g_pBuiltIn.view_surface_id[yyGetInt32(_hz)];};function view_set_camera(_hz,_9M){g_pBuiltIn.view_camera[yyGetInt32(_hz)]=yyGetInt32(_9M);};function view_set_visible(_hz,visible){g_pBuiltIn.view_visible[yyGetInt32(_hz)]=yyGetInt32(visible);
};function view_set_xport(_hz,xport){g_pBuiltIn.view_xport[yyGetInt32(_hz)]=yyGetInt32(xport);};function view_set_yport(_hz,yport){g_pBuiltIn.view_yport[yyGetInt32(_hz)]=yyGetInt32(yport);};function view_set_wport(_hz,wport){g_pBuiltIn.view_wport[yyGetInt32(_hz)]=yyGetInt32(wport);};function view_set_hport(_hz,hport){g_pBuiltIn.view_hport[yyGetInt32(_hz)]=yyGetInt32(hport);};function view_set_surface_id(_hz,_aM){g_pBuiltIn.view_surface_id[yyGetInt32(_hz)]=yyGetInt32(_aM);};function _bM(){return 0;};function _cM(){
return 0;};function _dM(){};function display_set_windows_alternate_sync(){};function display_set_ui_visibility(){};function display_set_sleep_margin(){}function display_get_sleep_margin(){return 0;}function _eM(_fM,_gM){if((_fM.status<200)||(_fM.status>=300)){_gM._Gf=_hM;_gM._iM="";}else {_gM._Gf=_jM;try{_gM._iM=_fM.responseText;}catch(e){_gM._iM="";}}}function _kM(_fM,_lM){if(_fM.readyState!=4)return;var _Bf=_qE(_fM);if(_Bf){_Bf._mM=_fM.status;_Bf._Hf=true;_Bf._nM=ds_map_create();var _oM=_fM.getAllResponseHeaders().split("\r\n");
for(var _I6 in _oM){if(!_oM.hasOwnProperty(_I6))continue;var _pM=_oM[_I6].split(": ");if(_pM.length==2){ds_map_add(_Bf._nM,_pM[0],_pM[1]);}}if(_lM){_lM(_fM,_Bf);}}}function _qM(_br){var _rM={};_Cf._Df(_sM,_br,_tM,_rM);setTimeout(function(){var _Bf=_qE(_rM);if(_Bf){_Bf._mM=404;_Bf._Hf=true;_Bf._Gf=_hM;_Bf._iM="";}},500);return _sM++;}function _uM(_ld,_br,_vM,_dt,_lM,_wM){try{var _xM=_yM(_br,_vM);_Cf._Df(_sM,_br,_tM,_xM._zM);if(_wM!==undefined){_xM._zM.responseType=_wM;}if(_xM._AM){_BM(_ld,_br,_vM,_dt,_xM._zM,
_xM._CM,_lM);}else {_DM(_ld,_br,_vM,_dt,_xM._zM,_lM);}}catch(e){return _qM(_br);}return _sM++;}function _yM(_br,_vM){var _xM={_zM:null,_CM:true,_AM:false};if((_br.substring(0,7)!="http://")&&(_br.substring(0,8)!="https://")){_xM._CM=false;}else {var _EM="";if(_br.substring(0,7)=="http://"){_EM=_br.substring(7);}if(_br.substring(0,8)=="https://"){_EM=_br.substring(8);}if(_EM.substring(0,document.domain.length)==document.domain){_xM._CM=false;}}if((_xM._CM)&&(window.XDomainRequest)){_xM._zM=new XDomainRequest();
_xM._CM=true;_xM._AM=true;}else {if(window.XMLHttpRequest){_xM._zM=new XMLHttpRequest();_xM._CM=false;_xM._AM=(_FM==_GM)&&(_HM._IM<=9.0);}else if(window.ActiveXObject){if(new ActiveXObject("Microsoft.XMLHTTP")){_xM._zM=new ActiveXObject("Microsoft.XMLHTTP");}else {_xM._zM=new ActiveXObject("Msxml2.XMLHTTP");}}if(_JM==="use-credentials"){_xM._zM._KM=true;}}return _xM;}function _DM(_ld,_br,_vM,_dt,_fM,_lM){try{_fM.open(_ld,_br,true);if(_vM!==null){for(var _pM in _vM){if(!_vM.hasOwnProperty(_pM))continue;try{_fM.setRequestHeader(_vM[_pM].key,
_vM[_pM].value);}catch(e){debug("Unable to set request header "+_vM[_pM].key+":"+_vM[_pM].value+" "+e.message);}}}else if(_ld=="POST"){_fM.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}_fM.onreadystatechange=function(){_kM(_fM,_lM);};_fM.send(_dt);}catch(e){debug(e.message);}}function _BM(_ld,_br,_vM,_dt,_fM,_LM,_lM){_fM.open(_ld,_br);_fM.ontimeout=function(_D3){_MM(_D3,_fM);};_fM.onerror=function(_D3){_MM(_D3,_fM);};if(_LM){_fM.onload=function(_D3){_NM(_D3,_fM,200);};}else {
_fM.onload=function(_D3){};_fM.onreadystatechange=function(){if(_fM.readyState==4){_NM(null,_fM,_fM.status);}};}if(_vM!==null){for(var _pM in _vM){if(!_vM.hasOwnProperty(_pM))continue;try{_fM.setRequestHeader(_vM[_pM].key,_vM[_pM].value);}catch(e){debug("Unable to set request header "+_vM[_pM].key+":"+_vM[_pM].value+" "+e.message);}}}_fM._OM=function(){};_fM.send(_dt);}function _NM(_D3,_fM,_PM){var _Bf=_qE(_fM);if(_Bf){_Bf._Hf=true;if((_PM>=200)&&(_PM<300)){_Bf._Gf=_jM;_Bf._mM=_PM;}else {_Bf._Gf=_hM;_Bf._mM=404;
}_Bf._iM=_fM.responseText;_Bf._nM=-1;}}function _MM(_D3,_fM){var _Bf=_qE(_fM);if(_Bf){_Bf._Hf=true;_Bf._Gf=_hM;_Bf._iM="";_Bf._mM=404;_Bf._nM=-1;}}function http_get(_br){return _uM("GET",yyGetString(_br),null,"",_eM);}function http_get_file(_br,_QM){_QM=yyGetString(_QM);var _RM=function(_fM,_gM){if(_fM.response){try{var _SM=String.fromCharCode.apply(null,new Uint8Array(_fM.response));_il(_QM,_SM);_gM._Gf=_jM;_gM._iM=_QM;}catch(e){debug(e.message);_gM._Gf=_hM;}}else {_gM._Gf=_hM;}};return _uM("GET",yyGetString(_br),
null,"",_RM,'arraybuffer');}function http_post_string(_br,_FF){if(!_FF){_FF="";}else {_FF=yyGetString(_FF);}return _uM('POST',yyGetString(_br),null,_FF,_eM);}function http_request(_br,_5H,_TM,_UM){_br=yyGetString(_br);_5H=yyGetString(_5H);_TM=yyGetInt32(_TM);var _VM=[];var _r7=_s7._26(_TM);for(const [key,_al] of _r7){var _n5=key;if(_r7._3l&&_r7._3l.has(key))_n5=_r7._3l.get(key);_VM.push({key:_n5,value:_al});}if(typeof(_UM)==='number'){return _WM(_br,_5H,_VM,_UM);}else {if(!_UM){_UM="";}return _uM(_5H,_br,_VM,
_UM,_eM);}}function _WM(_br,_5H,_vM,_UM){var _Ha=_XM._26(_UM);if(!_Ha){return _qM(_br);}else if(_Ha._YM!=0){var _ZM=new Uint8Array(_Ha.__M,0,_Ha._YM);return _uM(_5H,_br,_vM,_ZM,_eM);}else {var _0N=function(_fM,_gM){_gM._iM=_Ha._YM;if(_fM.response){_gM._Gf=_jM;var _Ys=new Uint8Array(_fM.response);for(var i=0,_0j=_Ys.length;i<_0j;++i){_Ha._1N(_2N,_Ys[i]);}_gM._iM=_Ys.length;}else {_gM._Gf=_hM;}};return _uM(_5H,_br,_vM,_UM,_0N,'arraybuffer');}};function http_set_request_crossorigin(_3N){_JM=yyGetString(_3N);}function http_get_request_crossorigin(){
return _JM;}function _4N(){return iap_status();}function _5N(){_Fb("iap_event_queue()");}function _6N(){_Fb("iap_product_status()");}function _7N(){_Fb("iap_is_downloaded()");}function _8N(){_Fb("iap_product_files()");}function _9N(){_Fb("iap_files_purchased()");}function iap_activate(__3){}function iap_status(){return -1;}function iap_acquire(_aN,_bN){return -1;}function iap_consume(_aN){}function iap_restore_all(){}function iap_enumerate_products(_38){}function iap_product_details(_aN,_p7){return 0;}function iap_purchase_details(_cN,
_p7){return 0;}var _dN=null;function ini_open_from_string(_eN){if(_dN){ini_close();}_dN=_fN(yyGetString(_eN));}function ini_open(_gN){_gN=yyGetString(_gN);if(_dN){ini_close();}var _hN=null;if(_nF){_hN=_iN(_gN,true);}if(_hN==null){_hN=_iN(_gN,false);}if(_hN==null){_hN=new _jN(_gN);}_dN=_hN;}function ini_close(){if(!_dN)return;var _8H=_dN._kN();_dN=null;return _8H;}function ini_read_string(_lN,_5l,_mN){if(!_dN)return yyGetString(_mN);return _dN._nN(yyGetString(_lN),yyGetString(_5l),yyGetString(_mN));}function ini_read_real(_lN,
_5l,_mN){if(!_dN)return yyGetString(_mN);return _dN._oN(yyGetString(_lN),yyGetString(_5l),yyGetString(_mN));}function ini_write_string(_lN,_5l,_Ln){if(!_dN)return false;_dN._pN(yyGetString(_lN),yyGetString(_5l),yyGetString(_Ln));return true;}function ini_write_real(_lN,_5l,_Ln){if(!_dN)return false;_dN._pN(yyGetString(_lN),yyGetString(_5l),""+yyGetReal(_Ln));return true;}function ini_key_exists(_lN,_5l){if(!_dN)return false;var _qN=_dN._rN(yyGetString(_lN),yyGetString(_5l));if(_qN!=null&&_qN!=undefined)return true;
return false;}function ini_section_exists(_lN){if(!_dN)return false;var _sN=_dN._tN[yyGetString(_lN)];if(_sN!=null&&_sN!=undefined)return true;return false;}function ini_key_delete(_lN,_5l){if(!_dN)return false;return _dN._uN(yyGetString(_lN),yyGetString(_5l));}function ini_section_delete(_lN){if(!_dN)return false;return _dN._vN(yyGetString(_lN));}function instance_find(_Sk,_wN){_wN=yyGetInt32(_wN);var _xN=GetWithArray(yyGetInt32(_Sk));if(_xN==null)return _wt;if(_wN>=_xN.length)return _wt;var _Tm=_xN[_wN];if((_Tm.active)&&(!_Tm.marked))return _Tm.id;
return _wt;}function instance_id_get(_em,_74){return _S3._yN._26(yyGetInt32(_74)).id;}function instance_exists(_Sk){var _IF=GetWithArray(yyGetInt32(_Sk));if(_IF!=null&&_IF.length>0){for(var _Tm=0;_Tm<_IF.length;_Tm++){var _Gt=_IF[_Tm];if(!_Gt.marked&&_Gt.active)return true;}}return false;}function instance_number(_Sk){var _xN=GetWithArray(yyGetInt32(_Sk));if(_xN==null)return 0;var _E8=0;for(var i=0;i<_xN.length;i++){if((_xN[i].active)&&(!_xN[i].marked))_E8++;}return _E8;}function instance_position(_Q5,_R5,_Sk){
_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);return _vt(null,yyGetInt32(_Sk),false,_wt,_Q5,_R5,function(_xt){if(_xt._zt(_Q5,_R5,true))return _xt.id;else return _wt;});}function instance_position_list(_Q5,_R5,_Sk,_38,_Kt){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);var _Tg=_uk._26(yyGetInt32(_38));if(!_Tg){_55("Error: invalid ds_list ID (instance_position_list)");return 0;}var _Lt=0;var sort=yyGetBool(_Kt);var _z6=[];_vt(null,yyGetInt32(_Sk),false,_wt,_Q5,_R5,function(_xt){if(_xt._zt(_Q5,_R5,true)){if(sort)_z6[_Lt]=_xt;
else _Tg._Df(_xt.id);_Lt+=1;}return _wt;});if(sort)_At(_z6,_Tg,_Q5,_R5);return _Lt;}function instance_nearest(_em,_Q5,_R5,_Sk){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);var _Jt=10000000000;var i=_wt;var _zN=_AN(null,yyGetInt32(_Sk),false,_wt,_Q5,_R5,function(_xt){var _27=_Q5-_xt.x;var _47=_R5-_xt.y;var _tm=Math.sqrt(_27*_27+_47*_47);if(_tm<_Jt){i=_xt.id;_Jt=_tm;}});return i;}function instance_furthest(_em,_Q5,_R5,_Sk){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);var _Jt=-10000000000;var i=_wt;var _zN=_AN(null,yyGetInt32(_Sk),
false,_wt,_Q5,_R5,function(_xt){var _27=_Q5-_xt.x;var _47=_R5-_xt.y;var _tm=Math.sqrt(_27*_27+_47*_47);if(_tm>_Jt){i=_xt.id;_Jt=_tm;}});return i;}function instance_place(_tt,_Q5,_R5,_Sk){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);var _27=_tt.x;var _47=_tt.y;_tt._Ed(_Q5,_R5);var id=_vt(null,yyGetInt32(_Sk),false,_wt,_Q5,_R5,function(_xt){if(_xt._BN(_tt,true)){return _xt.id;}else {return _wt;}});_tt._Ed(_27,_47);return id;}function instance_place_list(_tt,_Q5,_R5,_Sk,_38,_Kt){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);var _Tg=_uk._26(yyGetInt32(_38));
if(!_Tg){_55("Error: invalid ds_list ID (instance_place_list)");return 0;}var _27=_tt.x;var _47=_tt.y;_tt._Ed(_Q5,_R5);var _Lt=0;var sort=yyGetBool(_Kt);var _z6=[];_vt(null,yyGetInt32(_Sk),false,_wt,_Q5,_R5,function(_xt){if(_xt._BN(_tt,true)){if(sort)_z6[_Lt]=_xt;else _Tg._Df(_xt.id);_Lt+=1;}return _wt;});_tt._Ed(_27,_47);if(sort)_At(_z6,_Tg,_Q5,_R5);return _Lt;}function _CN(_tt,_DN){if(!_tt.marked&&_tt.active){if((_DN===undefined)||(_DN)){_EN(_tt);}else {_tt._b6(_FN,0,_tt,_tt);_tt.marked=true;}}}function instance_destroy(_tt,
_gg,_DN){_DN=_DN!==undefined?yyGetBool(_DN):true;if(_gg===undefined){_CN(_tt,_DN);}else {var _IF=GetWithArray(yyGetInt32(_gg));if(_IF!=null&&_IF.length>0){for(var _Tm=0;_Tm<_IF.length;_Tm++){var _Gt=_IF[_Tm];_CN(_Gt,_DN);}}}}function position_destroy(_em,_Q5,_R5){var _Kk=_S3._yN._Kk;var _Lt=[];for(var i=0;i<_Kk.length;i++){var _Gt=_Kk[i];if(_Gt._zt(yyGetReal(_Q5),yyGetReal(_R5),true)){_Lt.push(_Gt);}}for(var i=0;i<_Lt.length;i++){instance_destroy(_Lt[i]);}}function position_change(_em,_Q5,_R5,_GN,_HN){_Q5=yyGetReal(_Q5);
_R5=yyGetReal(_R5);var bottom,top;var _IN=[];var _JN=_S3._yN;for(var i=0;i<_JN._Kk.length;i++){var _Gt=_JN._Kk[i];if(_Gt._KN)_Gt._LN();var _MN=_Gt._MN;if(!((_Q5>_MN.right)||(_Q5<_MN.left)||(_R5>_MN.bottom)||(_R5<_MN.top))){_IN[_IN.length]=_Gt;}}var _JN=_S3._yN;for(var i=0;i<_IN.length;i++){instance_change(_IN[i],yyGetInt32(_GN),_HN);}}function motion_set(_em,_im,_lm){_em.direction=yyGetReal(_im);_em.speed=yyGetReal(_lm);}function motion_add(_em,_im,_lm){_em._jm(yyGetReal(_im),yyGetReal(_lm));}function instance_copy(_em,
_NN){var _ON=new _PN(0,0,_QN++,_em.object_index,true);var _RN=_ON.id;_ON._SN(_em,true);_ON.id=_RN;_ON._TN=false;var _Gt=_S3._UN(_ON);if(yyGetBool(_NN)){_ON._b6(_Vm,0,_ON,_ON);_ON._b6(_Wm,0,_ON,_ON);}return _ON.id;}function _VN(_em,_GN,_HN){_HN=yyGetBool(_HN);if(_HN){_em._b6(_WN,0,_em,_em);_em._b6(_FN,0,_em,_em);}_em._XN(yyGetInt32(_GN),true,false);_em._YN(_em._1F._ZN);_em.__N(_S3);if(_HN){_em._b6(_Vm,0,_em,_em);_em._b6(_Wm,0,_em,_em);}}function _0O(_em,_GN,_HN){_GN=yyGetInt32(_GN);if(!_H3._1O(_GN)){debug("Error: Trying to change an instance to an nonexistent object type.");
return;}_VN(_em,_GN,yyGetBool(_HN));}var instance_change=_0O;function instance_deactivate_all(_em,_ut){var _Tg=[];_Tg=_S3._yN._Kk;_S3._yN._Tf();var _2O=_S3._3O;for(var i=0;i<_Tg.length;i++){if(_Tg[i]==_em){if(yyGetBool(_ut)==false){_S3._4O(_Tg[i]);}else {_S3._yN._5O(_Tg[i]);}}else {_S3._4O(_Tg[i]);}}}function instance_activate_all(_em){var _Tg=[];_Tg=_S3._3O._Kk;_S3._3O._Tf();var _JN=_S3._yN;for(var i=0;i<_Tg.length;i++){_S3._6O(_Tg[i]);}}function _7O(_Sk,_8O){if(_Sk._9O>=0){_8O=yyGetInt32(_8O);var _aO=_H3._26(_Sk._9O);
if(_aO){if(_aO._bO==_8O){return true;}else {return _7O(_aO,_8O);}}}return false;};function instance_activate_object(_em,_GN){_GN=yyGetInt32(_GN);var i;var _IN=[];var _2O=_S3._3O;if(_GN==_cO){for(var i=0;i<_2O._Kk;i++){var _Gt=_2O._Kk[i];_IN[_IN.length]=_Gt;}}else {for(var i=0;i<_2O._Kk.length;i++){var _Gt=_2O._Kk[i];if(_Gt.object_index==_GN||_Gt.id==_GN){_IN[_IN.length]=_Gt;}else if(_7O(_H3._26(_Gt.object_index),_GN)){_IN[_IN.length]=_Gt;}}}var _JN=_S3._yN;for(i=0;i<_IN.length;i++){_S3._6O(_IN[i]);}}function instance_deactivate_object(_em,
_GN){_GN=yyGetInt32(_GN);var i;var _IN=[];var _JN=_S3._yN;if(_GN==_cO){for(var i=0;i<_JN._Kk.length;i++){var _Gt=_JN._Kk[i];_IN[_IN.length]=_Gt;}}else {for(var i=0;i<_JN._Kk.length;i++){var _Gt=_JN._Kk[i];if(_Gt.object_index==_GN||_Gt.id==_GN){_IN[_IN.length]=_Gt;}else if(_7O(_H3._26(_Gt.object_index),_GN)){_IN[_IN.length]=_Gt;}}}var _2O=_S3._3O;for(i=0;i<_IN.length;i++){_S3._4O(_IN[i]);}}function instance_deactivate_region(_em,_us,_vs,_A8,_B8,_dO,_ut){_us=yyGetReal(_us);_vs=yyGetReal(_vs);_A8=yyGetReal(_A8);
_B8=yyGetReal(_B8);var bottom,top,right;var _IN=[];var _JN=_S3._yN;right=_us+_A8-1;bottom=_vs+_B8-1;for(var i=0;i<_JN._Kk.length;i++){var _eO=false;var _Gt=_JN._Kk[i];if(_Gt._KN)_Gt._LN();var _MN=_Gt._MN;if((_MN)&&((_Gt.sprite_index>=0)||(_Gt.mask_index>=0))){if((_us>_MN.right)||(right<_MN.left)||(_vs>_MN.bottom)||(bottom<_MN.top)){_eO=true;}}else {if((_Gt.x>right)||(_Gt.x<_us)||(_Gt.y>bottom)||(_Gt.y<_vs)){_eO=true;}}if(_eO!=yyGetBool(_dO))_IN[_IN.length]=_Gt;}var _2O=_S3._3O;for(i=0;i<_IN.length;i++){if(_em==_IN[i]){
if(!yyGetBool(_ut)){_S3._4O(_IN[i]);}}else {_S3._4O(_IN[i]);}}}function _fO(_em,_Q5,_R5,_A8,_B8,_ut,_gO,_hO){_55("not implemented yet!");}function instance_deactivate_layer(_em,_sh){var room=_S3;if(room==null){return -1;}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,yyGetString(_sh).toLowerCase());else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO===null)return;for(var _17=0;_17<_iO._mO.length;_17++){var _nO=_iO._mO._26(_17);if(_nO==null)continue;if(_nO._oO==_pO){room._4O(_nO._qO);}}}function instance_activate_layer(_Tm,
_sh){var room=_S3;if(room==null){return -1;}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,yyGetString(_sh).toLowerCase());else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO===null)return;for(var _17=0;_17<_iO._mO.length;_17++){var _nO=_iO._mO._26(_17);if(_nO==null)continue;if(_nO._oO==_pO){room._6O(_nO._qO);}}}function instance_activate_region(_em,_us,_vs,_A8,_B8,_dO){_us=yyGetReal(_us);_vs=yyGetReal(_vs);_A8=yyGetReal(_A8);_B8=yyGetReal(_B8);var i;var bottom,top,right;var _IN=[];var _2O=_S3._3O;right=_us+_A8-1;
bottom=_vs+_B8-1;for(var i=0;i<_2O._Kk.length;i++){var _eO=false;var _Gt=_2O._Kk[i];if(_Gt._KN)_Gt._LN();var _MN=_Gt._MN;if((_Gt.sprite_index>=0)||(_Gt.mask_index>=0)){if(_MN.right<_us||_MN.left>right||_MN.bottom<_vs||_MN.top>bottom){_eO=true;}}else {if((_Gt.x>right)||(_Gt.x<_us)||(_Gt.y>bottom)||(_Gt.y<_vs)){_eO=true;}}if(_eO!=yyGetBool(_dO))_IN[_IN.length]=_Gt;}var _JN=_S3._yN;for(i=0;i<_IN.length;i++){_S3._6O(_IN[i]);}}function keyboard_key_press(_5l){_5l=yyGetInt32(_5l);if(_rO[_5l]){return;}_rO[_5l]=1;
_sO[_5l]=1;_tO=_5l;}function keyboard_key_release(_5l){_5l=yyGetInt32(_5l);_uO[_5l]=1;_rO[_5l]=0;}function _vO(_wO){{switch(yyGetInt32(_wO)){case 0:if(_vg._xO==0)return 0;else return 1;case 1:if((_vg._xO&1)==0)return 0;else return 1;case 2:if((_vg._xO&2)==0)return 0;else return 1;case 3:if((_vg._xO&4)==0)return 0;else return 1;case -1:if(_vg._xO==0)return 1;else return 0;}}return 0;}function mouse_check_button(_wO){{switch(yyGetInt32(_wO)){case 0:if(_vg._De[0]||_vg._De[1]||_vg._De[2]||_vg._De[3]||_vg._De[4])return 0;else return 1;
case 1:if(_vg._De[0])return 1;else return 0;case 2:if(_vg._De[1])return 1;else return 0;case 3:if(_vg._De[2])return 1;else return 0;case 4:if(_vg._De[3])return 1;else return 0;case 5:if(_vg._De[4])return 1;else return 0;case -1:if(_vg._De[0]||_vg._De[1]||_vg._De[2]||_vg._De[3]||_vg._De[4])return 1;else return 0;}}return 0;}function mouse_check_button_pressed(_wO){{switch(yyGetInt32(_wO)){case 0:if(_vg._ye[0]||_vg._ye[1]||_vg._ye[2]||_vg._ye[3]||_vg._ye[4])return 0;else return 1;case 1:if(_vg._ye[0])return 1;else return 0;case 2:if(_vg._ye[1])return 1;
else return 0;case 3:if(_vg._ye[2])return 1;else return 0;case 4:if(_vg._ye[3])return 1;else return 0;case 5:if(_vg._ye[4])return 1;else return 0;case -1:if(_vg._ye[0]||_vg._ye[1]||_vg._ye[2]||_vg._ye[3]||_vg._ye[4])return 1;else return 0;}}return 0;}function mouse_check_button_released(_wO){{switch(yyGetInt32(_wO)){case 0:if(_vg._Ce[0]||_vg._Ce[1]||_vg._Ce[2]||_vg._Ce[3]||_vg._Ce[4])return 0;else return 1;case 1:if(_vg._Ce[0])return 1;else return 0;case 2:if(_vg._Ce[1])return 1;else return 0;case 3:if(_vg._Ce[2])return 1;else return 0;
case 4:if(_vg._Ce[3])return 1;else return 0;case 5:if(_vg._Ce[4])return 1;else return 0;case -1:if(_vg._Ce[0]||_vg._Ce[1]||_vg._Ce[2]||_vg._Ce[3]||_vg._Ce[4])return 1;else return 0;}return 0;}}function mouse_wheel_up(){return _yO;}function mouse_wheel_down(){return _zO;}function mouse_clear(_rt){_rt=yyGetInt32(_rt);if(_rt==-1){mouse_clear(1);mouse_clear(2);mouse_clear(3);}else if(_rt>=1&&_rt<=3){var i=_rt-1;_vg._De[i]=0;_vg._ye[i]=0;_vg._Ce[i]=0;_yg&=~(1<<i);}}function io_clear(){_vg._Tf();}function keyboard_check(_5l){
return _vg._AO[yyGetInt32(_5l)];}function keyboard_check_pressed(_5l){return _vg._BO[yyGetInt32(_5l)];}function keyboard_clear(_5l){_5l=yyGetInt32(_5l);_vg._AO[_5l]=false;_vg._BO[_5l]=false;_vg._CO[_5l]=false;}function keyboard_check_released(_5l){return _vg._CO[yyGetInt32(_5l)];}function keyboard_check_direct(_5l){return _vg._AO[yyGetInt32(_5l)];}function display_mouse_get_x(){return(_vg._DO-_8g.left);}function display_mouse_get_y(){return(_vg._EO-_8g.top);}function keyboard_set_map(_o4,_p4){_o4=yyGetInt32(_o4);
_p4=yyGetInt32(_p4);if((_o4<0)||(_o4>_FO))return 0;if((_p4<0)||(_p4>_FO))return 0;_vg._GO[_o4]=_p4;}function keyboard_get_map(_5l){_5l=yyGetInt32(_5l);if((_5l<0)||(_5l>_FO))return 0;return _vg._GO[_5l];}function keyboard_unset_map(){for(var _V6=0;_V6<_FO;_V6++){_vg._GO[_V6]=_V6;}}function keyboard_virtual_show(){_Fb("keyboard_virtual_show()");}function keyboard_virtual_hide(){_Fb("keyboard_virtual_hide()");}function keyboard_virtual_status(){_Fb("keyboard_virtual_status()");}function keyboard_virtual_height(){
_Fb("keyboard_virtual_height()");}function gesture_drag_time(__3){}function gesture_drag_distance(__3){}function gesture_flick_speed(__3){}function gesture_double_tap_time(__3){}function gesture_double_tap_distance(__3){}function gesture_pinch_distance(__3){}function gesture_pinch_angle_towards(__3){}function gesture_pinch_angle_away(__3){}function gesture_rotate_time(__3){}function gesture_rotate_angle(__3){}function gesture_tap_count(__3){}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 _HO=0,_IO=1,_JO=2,_KO=3,_LO=4,_MO=5,_NO=6;var _OO=0,_PO=1,_pO=2,_QO=3,_RO=4,_SO=5,_TO=6,_UO=7,_VO=8,_WO=9;var _XO=31;var _YO=29;var _ZO=28;var __O=30;var _0P=(1<<_XO);
var _1P=(1<<_YO);var _2P=(1<<_ZO);var _3P=(1<<__O);var _4P=_ZO;var _5P=(0x7<<_4P);var _6P=0x7;var _7P=0;var _8P=(0x7ffff<<_7P);var _9P=(0x7ffff);/*@constructor */function _aP(){this.visible=true;this.foreground=false;this.index=0;this.htiled=false;this.vtiled=false;this._bP=1.0;this._cP=1.0;this.stretch=false;this._dP=0;this.alpha=1.0;this.playbackspeedtype=_eP;this.playbackspeed=0;this.image_speed=0;this.image_index=0;};/*@constructor */function _fP(){this._ke=0;this.depth=0;this._gP=0;this._hP=0;this._iP=0;
this._jP=0;this._kP=true;this._lP=0;this._mP="";this._nP=null;this._oP=null;this._pP=-1;this._qP=null;this._mO=new _sk();this._rP=true;this._sP=true;this._tP=null;this._uP=null;};_fP.prototype._vP=function(_wP){this._tP=_wP;};_fP.prototype._xP=function(){this._tP=null;};_fP.prototype._yP=function(){return this._tP;};_fP.prototype._zP=function(){return this._tP!=null;};_fP.prototype._AP=function(){return this._uP;};/*@constructor */function _BP(){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 _CP(){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 _DP(){this._EP=-1;this._qO=null;this._oO=_pO;this._FP=false;this._zr="";};/*@constructor */function _GP(){this._HP=null;this._oO=_PO;this._FP=false;this._zr="";this._ke=0;};/*@constructor */function _IP(){this._oO=_SO;this._JP=-1;this._KP=0;this._LP=0;this._MP=0;
this._NP=0;this._OP=0;this._PP=[];this._FP=false;this._zr="";this._ke=0;this._QP=~_0P;};/*@constructor */function _RP(){this._oO=_QO;this._SP=[];this._TP=[];this._zr="";this._ke=0;this._FP=false;};/*@constructor */function _UP(){this._VP=-1;this._WP=1;this._XP=_eP;this._YP=0;this._ZP=1;this.__P=0;this._0Q=1;this._1Q=1;this._2Q=0;this._3Q=0xffffffff;this._4Q=1;this._KP=0;this._LP=0;this._oO=_RO;this._zr="";this._ke=0;this._FP=false;};/*@constructor */function _5Q(){this._6Q=-1;this._7Q=-1;this._WP=1;
this._8Q=0;this._3Q=0xffffffff;this._4Q=1;this._9Q=1;this._aQ=1;this._KP=0;this._LP=0;this._m3=0;this._oO=_VO;this._zr="";this._ke=0;this._FP=false;this._bQ=null;this._cQ=0;};/*@constructor */function _dQ(){this._oO=_TO;this._eQ=-1;this._zr="";this._ke=0;this._FP=false;};/*@constructor */function _fQ(){this._kP=true;this._aF=-1;this._KP=0;this._LP=0;this._gQ=0;this._hQ=0;this._0Q=1.0;this._1Q=1.0;this._2Q=0.0;this._3Q=0xffffffff;this._4Q=1.0;this._iQ=0;this._jQ=0;this._oO=_UO;this._zr="";this._ke=0;
this._FP=false;};/*@constructor */function _kQ(){this.pName=null;this.type=0;this.elements=0;this._lQ=null;};/*@constructor */function _mQ(){this._oO=_WO;this.pName="";this._1I=0;this._nQ=[];this._oQ=false;};var _pQ=0;var _qQ=1;var _rQ=2;var _sQ=3;var _tQ=32;/*@constructor */function _uQ(){this._vQ=0;this._wQ=0;this._xQ=0;this._yQ=false;this._zQ=0xffffffff;this._AQ=-1;this._BQ=false;this._CQ=0;this._DQ=null;};_uQ.prototype._EQ=function(){return this._vQ;};_uQ.prototype._FQ=function(_gg){this._GQ=_gg;};_uQ.prototype._HQ=function(_IQ){
this._BQ=_IQ;};_uQ.prototype._JQ=function(_rl){this._CQ=_rl;};_uQ.prototype._KQ=function(){return this._BQ;};_uQ.prototype._LQ=function(){return this._CQ;};_uQ.prototype._MQ=function(){return this._zQ;};_uQ.prototype._NQ=function(_sh){this._zQ=_sh;};_uQ.prototype._OQ=function(){if(!this._yQ){this._yQ=true;}};_uQ.prototype._PQ=function(_QQ,_RQ){if(_RQ._HP!=null){delete(_RQ._HP);_RQ._HP=null;}_QQ._mO._SQ(_RQ);};_uQ.prototype._TQ=function(_QQ,_RQ,_UQ){if(_RQ._qO){_RQ._qO._VQ(false);}if(_UQ){if(_RQ._EP>=0){
var _Tm=_xn._26(_RQ._EP);if(_Tm!=null){instance_destroy(_Tm);}}}_QQ._mO._SQ(_RQ);};_uQ.prototype._WQ=function(_QQ,_RQ){_QQ._mO._SQ(_RQ);};_uQ.prototype._XQ=function(_QQ,_RQ){_QQ._mO._SQ(_RQ);};_uQ.prototype._YQ=function(_QQ,_RQ){_QQ._mO._SQ(_RQ);};_uQ.prototype._ZQ=function(_QQ,_RQ){_QQ._mO._SQ(_RQ);};_uQ.prototype.__Q=function(_QQ,_RQ){_QQ._mO._SQ(_RQ);};_uQ.prototype._0R=function(_QQ,_RQ){_QQ._mO._SQ(_RQ);};_uQ.prototype._1R=function(_zo,_2R,_QQ,_3R,_4R){if(_zo==null)return;var _pd=_2R;var layer=_QQ;
if(_pd===null)return;this._5R(_pd);switch(_pd._oO){case _PO:this._PQ(layer,_pd);break;case _pO:this._TQ(layer,_pd,_4R);break;case _QO:this._WQ(layer,_pd);break;case _RO:this._XQ(layer,_pd);break;case _SO:this._YQ(layer,_pd);break;case _TO:this._ZQ(layer,_pd);break;case _UO:this.__Q(layer,_pd);break;case _VO:this._0R(layer,_pd);break;};return;};_uQ.prototype._6R=function(_zo,_7R,_3R,_4R){if(_zo==null)return;var _pd=null;var layer=null;for(var i=0;i<_zo._8R.length;i++){layer=_zo._8R._26(i);_pd=this._9R(layer,
_7R);if(_pd!=null)break;}if(_pd===null)return;this._5R(_pd);switch(_pd._oO){case _PO:this._PQ(layer,_pd);break;case _pO:this._TQ(layer,_pd,_4R);break;case _QO:this._WQ(layer,_pd);break;case _RO:this._XQ(layer,_pd);break;case _SO:this._YQ(layer,_pd);break;case _TO:this._ZQ(layer,_pd);break;case _UO:this.__Q(layer,_pd);break;case _VO:this._0R(layer,_pd);break;};return;};_uQ.prototype._aR=function(_zo,_RQ,_bR){if(_zo==null)return;if(_RQ=null)return;if(_bR==null)return;var _cR=_jO._dR(_zo,_RQ._ke);if(_cR!=null){
_cR.layer._mO._SQ(_RQ);}if(_RQ._oO==_pO){if(_RQ._qO!=null){_RQ._qO.layer=_bR._ke;_RQ._qO._VQ(true);}}_bR._mO._Df(_RQ);};_uQ.prototype._eR=function(){if(this._AQ==-1)return _S3;var room=_fR._26(this._AQ);if(room==null)return _S3;return room;};_uQ.prototype._gR=function(){};_uQ.prototype._hR=function(_zo,_QQ,_RQ){_RQ._FP=true;};_uQ.prototype._iR=function(_zo,_QQ,_RQ){var _Tm=_xn._26(_RQ._EP);if(_Tm===null)return;_RQ._qO=_Tm;_Tm._jR=_QQ._ke;_Tm._TN=true;_Tm.depth=_QQ.depth;_RQ._FP=true;};_uQ.prototype._kR=function(_zo,
_QQ,_RQ){_RQ._FP=true;};_uQ.prototype._lR=function(_zo,_QQ,_RQ){_RQ._FP=true;};_uQ.prototype._mR=function(_zo,_QQ,_RQ){_RQ._FP=true;};_uQ.prototype._nR=function(_zo,_QQ,_RQ){_RQ._FP=true;};_uQ.prototype._oR=function(_zo,_QQ,_RQ){_RQ._FP=true;};_uQ.prototype._pR=function(_zo,_QQ,_RQ){var _qR=_rR._sR();_qR._6Q=_RQ._6Q;_qR._8Q=_RQ._8Q;_qR._tR=_RQ._WP;_zo._uR(_RQ._ke);_RQ._7Q=_qR.id;_rR._vR(_qR,_Wm);_RQ._FP=true;};_uQ.prototype._wR=function(_zo,_QQ,_RQ){if(_zo===null)return;if(_QQ===null)return;if(_RQ===null)return;
if(_RQ._FP)return;switch(_RQ._oO){case _PO:this._hR(_zo,_QQ,_RQ);break;case _pO:this._iR(_zo,_QQ,_RQ);break;case _QO:this._kR(_zo,_QQ,_RQ);break;case _RO:this._lR(_zo,_QQ,_RQ);break;case _SO:this._mR(_zo,_QQ,_RQ);break;case _TO:this._nR(_zo,_QQ,_RQ);break;case _UO:this._oR(_zo,_QQ,_RQ);break;case _VO:this._pR(_zo,_QQ,_RQ);break;}};_uQ.prototype._FQ=function(_gg){this._vQ=_gg;};_uQ.prototype._xR=function(_zo){if((_zo._8R===null)||(_zo._8R.length===0))return;for(var i=0;i<_zo._8R.length;i++){var _yR=_zo._8R._26(i);
_yR._qP=_vJ();for(var _17=0;_17<_yR._mO.length;_17++){var _nO=_yR._mO._26(_17);if(_nO==null)continue;this._wR(_zo,_yR,_nO);}}};_uQ.prototype._zR=function(_zo,_QQ,_RQ,_AR){if(_zo==null||_QQ==null||_RQ===null)return -1;_RQ._ke=this._BR();_RQ._bQ=_QQ;var _CR=0;if(_RQ._oO!=_pO){for(var _DR=0;_DR<_QQ._mO._Kk.length;_DR++){var _ER=_QQ._mO._Kk[_DR];if(_ER==null||_ER._oO!=_pO){break;}else {if(_ER._qO!==null&&_ER._qO.active){_CR=_DR+1;}else {break;}}}}_QQ._mO._Hk(_CR,_RQ);if(_AR){this._wR(_zo,_QQ,_RQ);}return _RQ._ke;
};_uQ.prototype._FR=function(_zo,_rl,_RQ,_AR,_GR){if(_zo==null||_RQ===null)return -1;var layer=this._HR(_zo,_rl,_GR);if((layer==null)&&(_GR)){layer=this._IR(_zo,_rl);}if(layer==null){return -1;}return this._zR(_zo,layer,_RQ,_AR);};_uQ.prototype._kO=function(_zo,_b4){if(!_b4)return null;_b4=_b4.toLowerCase();for(var i=0;i<_zo._8R.length;i++){var layer=_zo._8R._26(i);if(layer===undefined||layer===null)continue;if(!layer._mP)continue;if(layer._mP.toLowerCase()===_b4){return layer;}}return null;};_uQ.prototype._JR=function(_zo,
_KR){if(_zo==null)return -1;for(var i=0;i<_zo._8R.length;i++){var layer=_zo._8R._26(i);if(layer!=null){for(var _17=0;i<layer._mO.length;_17++){var _nO=layer._mO._26(_17);if(_nO!=null){if(_nO._oO===_pO){if(_nO._EP==_KR){return layer._ke;}}}}}}return -1;};_uQ.prototype._5R=function(_RQ){if(_RQ==null)return;switch(_RQ._oO){case _PO:{this._LR(_RQ);}break;case _pO:{this._MR(_RQ);}break;case _QO:{this._NR(_RQ);}break;case _RO:{this._OR(_RQ);}break;case _SO:{this._PR(_RQ);}break;case _TO:{this._QR(_RQ);}break;case _UO:{
this._RR(_RQ);}break;case _VO:{this._SR(_RQ);}break;}_RQ._FP=false;};_uQ.prototype._LR=function(_TR){};_uQ.prototype._MR=function(_UR){var _Tm=_xn._26(_UR._EP);if(_Tm!=null){_Tm._VQ(false);}_UR._qO=null;};_uQ.prototype._NR=function(_VR){};_uQ.prototype._OR=function(_WR){};_uQ.prototype._PR=function(_VR){};_uQ.prototype._QR=function(_XR){};_uQ.prototype._RR=function(_YR){};_uQ.prototype._SR=function(_ZR){if(_S3!=null){_S3.__R(_ZR._ke);}var _qR=_rR._0S(_ZR._7Q);_rR._vR(_qR,_FN);_rR._1S(_qR);};_uQ.prototype._IR=function(_zo,
_rl){var _2S=new _fP();_2S._ke=_jO._3S();_2S.depth=_rl;_2S._lP=true;_S3._8R._Df(_2S);return _2S;};_uQ.prototype._4S=function(_zo,_em){if(_zo==null||_em===null)return;if(_em._5S()===false){if(_em._jR==-1){var _QQ=this._HR(_zo,_em.depth,true);if(_QQ===null){_QQ=this._IR(_zo,_em.depth);}this._6S(_zo,_QQ,_em);}else {var layer=this._lO(_zo,_em._jR);if(layer===null)return;this._6S(_zo,layer,_em);}}};_uQ.prototype._6S=function(_zo,_QQ,_em){if(_zo==null||_QQ==null||_em===null)return;if(_em._5S()===false){var _7S=new _DP();
_7S._EP=_em.id;_7S._qO=_em;_em._jR=_QQ._ke;_em._VQ(true);_7S._FP=true;_jO._zR(_zo,_QQ,_7S,false);}};_uQ.prototype._8S=function(_zo,_em){if(_em._5S()===false)return;var layer=this._lO(_zo,_em._jR);if(layer===null){_em._VQ(false);return;}this._9S(_zo,layer,_em);};_uQ.prototype._aS=function(_zo,_em){if(_zo==null||_em===null)return;if(_em._5S()===true){for(var _17=0;_17<_zo._8R.length;_17++){var layer=_zo._8R._26(_17);for(var i=0;i<layer._mO.length;i++){var _nO=layer._mO._26(i);if(_nO!=null){if(_nO._oO==_pO){
if(_nO._qO==_em){this._1R(_zo,_nO,layer,true,false);_em._VQ(false);_em._jR=-1;return;}}}}}}};_uQ.prototype._9S=function(_zo,_QQ,_em){if(_zo==null||_QQ==null||_em===null)return;if(_em._5S()===true){for(var i=0;i<_QQ._mO.length;i++){var _nO=_QQ._mO._26(i);if(_nO!=null){if(_nO._oO==_pO){if(_nO._qO==_em){this._1R(_zo,_nO,_QQ,true,false);_em._VQ(false);_em._jR=-1;}}}}}};_uQ.prototype._bS=function(_zo,_KR){if(_zo==null)return;for(var _17=0;_17<_zo._8R.length;_17++){var layer=_zo._8R._26(_17);for(var i=0;i<layer._mO.length;
i++){var _nO=layer._mO._26(i);if(_nO!=null){if(_nO._oO==_pO){if(_nO._EP==_KR){this._1R(_zo,_nO,layer,true,false);return;}}}}}};_uQ.prototype._cS=function(_zo,_QQ,_KR){if(_zo==null||_QQ==null)return;for(var i=0;i<_QQ._mO.length;i++){var _nO=_QQ._mO._26(i);if(_nO!=null){if(_nO._oO==_pO){if(_nO._EP==_KR){this._1R(_zo,_nO,_QQ,true,false);}}}}};_uQ.prototype._dS=function(_zo,_rl,_b4){if(_zo==null)return null;var _2S=new _fP();_2S._ke=this._3S();_2S.depth=_rl;_2S._mP=_b4;_2S._lP=false;_zo._8R._Df(_2S);return _2S;
};_uQ.prototype._eS=function(_zo,_fS,_4R){if(_4R==undefined){_4R=true;}var layer=this._lO(_zo,_fS);if(layer!=null){for(var i=0;i<layer._mO.length;i++){var _nO=layer._mO._26(i);if(_nO!=null){this._1R(_zo,_nO,layer,false,_4R);}}_zo._8R._Cl(layer);}};_uQ.prototype._gS=function(_zo,_QQ,_hS,_iS){if(_zo==null)return;if(_QQ==null)return;if(_hS==_QQ.depth)return;var _jS=_QQ.depth;_QQ.depth=_hS;_zo._8R._Cl(_QQ);_zo._8R._Df(_QQ);if(_QQ._lP&&_iS){var _kS=[];var _lS=0;var _mS=_zo._8R._nS(_QQ);if(_mS!=-1){var _oS=_mS-1;
while(_oS>=0){var _pS=_zo._8R._26(_oS);if((_pS==null)||(_pS.depth==_QQ.depth)){if(_pS!=null){if(_pS._lP){_kS[_lS++]=_pS;}}_oS--;}else {break;}};_oS=_mS+1;while(_oS<_zo._8R.length){var _pS=_zo._8R._26(_oS);if((_pS==null)||(_pS.depth==_QQ.depth)){if(_pS!=null){if(_pS._lP){_kS[_lS++]=_pS;}}_oS++;}else {break;}};for(var i=0;i<_lS;i++){var _qS=_kS[i];for(var _17=0;_17<_qS._mO.length;_17++){var _nO=_qS._mO._26(_17);if(_nO==null)continue;if(_nO._oO==_pO){if(_nO._qO!=null){_nO._qO._jR=_QQ._ke;}}_QQ._mO._Df(_nO);
}_qS._mO._Tf();_jO._eS(_zo,_qS._ke,false);}}}};_uQ.prototype._HR=function(_zo,_rl,_rS){for(var i=0;i<_zo._8R.length;i++){var layer=_zo._8R._26(i);if((layer.depth===_rl)&&(!_rS||(layer._lP)))return layer;}return null;};_uQ.prototype._lO=function(_zo,_gg){for(var i=0;i<_zo._8R.length;i++){var layer=_zo._8R._26(i);if(layer._ke===_gg)return layer;}return null;};_uQ.prototype._3S=function(){if(this._wQ<this._vQ)this._wQ=this._vQ;this._wQ++;return this._wQ;};_uQ.prototype._BR=function(){return this._xQ++;};_uQ.prototype._sS=function(_zo,
_tS){if(_zo==null)return null;for(var i=0;i<_zo._8R.length;i++){var layer=_zo._8R._26(i);var _pd=_jO._9R(layer,_tS);if(_pd!=null)return _pd;}return null;};_uQ.prototype._dR=function(_zo,_tS){if(_zo==null)return null;for(var i=0;i<_zo._8R.length;i++){var layer=_zo._8R._26(i);var _pd=_jO._9R(layer,_tS);if(_pd!=null){var _cR=new _uS();_cR._pd=_pd;_cR.layer=layer;return _cR;}}return null;};_uQ.prototype._9R=function(_QQ,_vS){if(_QQ==null)return null;for(var i=0;i<_QQ._mO.length;i++){var _nO=_QQ._mO._26(i);if(_nO==null)continue;
if(_nO._ke===_vS){return _nO;}}return null;};_uQ.prototype._wS=function(_QQ,_xS){if(_QQ==null||_xS==null)return null;_xS=_xS.toLowerCase();for(var i=0;i<_QQ._mO.length;i++){var _nO=_QQ._mO._26(i);if(_nO==null||_nO===undefined)continue;if(!_nO._zr)continue;if(_nO._zr.toLowerCase()===_xS){return _nO;}}return null;};_uQ.prototype._yS=function(_zo,_KR){if(_zo==null)return null;for(var i=0;i<_zo._8R.length;i++){var layer=_zo._8R._26(i);if(layer!=null){for(var _17=0;_17<layer._mO.length;_17++){var _nO=layer._mO._26(_17);
if(_nO!=null){if(_nO._oO==_pO){if(_nO._EP==_KR){var _cR=new _uS();_cR._pd=_nO;_cR.layer=layer;return _cR;}}}}}}return null;};_uQ.prototype._zS=function(_zo,_tS){if(_zo==null)return null;for(var i=0;i<_zo._8R.length;i++){var layer=_zo._8R._26(i);if(layer!=null){for(var _17=0;_17<layer._mO.length;_17++){var _nO=layer._mO._26(_17);if(_nO!=null){if(_nO._ke==_tS){return layer;}}}}}return null;};_uQ.prototype._AS=function(){if(_S3._8R===null||_S3._8R.length===0)return;var _BS=_S3._8R.length;var time=_vJ();for(var i=0;
i<_BS;i++){var layer=_S3._8R._26(i);var _CS=time-layer._qP;if(_CS>2000000)_CS=0;layer._gP+=layer._iP;layer._hP+=layer._jP;for(var _17=0;_17<layer._mO.length;_17++){var _nO=layer._mO._26(_17);if(_nO==null)continue;var type=_nO._oO;if(type==_PO){var _Qr=_nO._HP;if(_Qr!=null){if(_Qr.playbackspeedtype==_V3){_Qr.image_index+=_Qr.image_speed*_Qr.playbackspeed;}else {var fps=_W3._X3();_Qr.image_index+=(_Qr.image_speed*_Qr.playbackspeed)/fps;}}}else if(type==_RO){var _DS=_16._26(_nO._VP);if(_DS.sequence!=null){var _ES=_nO._YP;
var fps=(_DS.playbackspeedtype==_eP)?_W3._X3():1.0;_nO._YP+=_nO._ZP*(_DS.playbackspeed/fps)*_nO._WP;var _FS={_GS:_nO._YP,_HS:_nO._ZP,_IS:false};_JS(_DS.sequence,_FS);_nO._YP=_FS._GS;_nO._ZP=_FS._HS;if((_DS.sequence._KS!=null)&&(_DS.sequence._KS[0]._oO==_LS)){var _a4=_DS.sequence._KS[0];var _MS=_a4._NS._OS(_nO._YP,_DS.sequence._PS);if(_MS==null){_nO.__P=-1;}else {_nO.__P=_MS._yr[0].__P;}_QS(_DS.sequence,_nO._ke,fps,_DS.playbackspeed,_nO._ZP,_ES,_nO._YP);}}else if(_DS._zL!==undefined){_nO.__P+=_nO._WP;}
else {if(_nO._XP==_V3){_nO.__P+=_nO._WP;}else {var fps=_W3._X3();_nO.__P+=_nO._WP/fps;}}}else if(type==_SO){var _Vq=_Wq._Or(_nO._JP);if(_Vq!=null){if(_Vq.framelength>0)_nO._OP=Math.floor((time/_Vq.framelength)%_Vq.frames);else _nO._OP=(_nO._OP+1)%_Vq.frames;}}}layer._qP=_vJ();}};_uQ.prototype._RS=function(_zo){if(_zo==null)return;if(_zo._8R==null)return;var _iO,_Kk;_Kk=_zo._8R._Kk;while(_Kk.length>0){_iO=_Kk[0];if(_iO==null){continue;}this._eS(_zo,_iO._ke,false);}};_uQ.prototype._SS=function(_zo,_TS){if(_zo===null)return;
if(_TS===null)return;if(!this._yQ)this._OQ();var _US=_zo._VS;var _WS=_zo._XS;var _BS=_TS.length;{var _iO;for(var _17=_BS-1;_17>=0;_17--){_iO=_TS[_17];var _2S=new _fP();if(_iO.pName!=undefined)_2S._mP=_iO.pName;if(_iO.id!=undefined)_2S._ke=_iO.id;if(_iO.depth!=undefined)_2S.depth=_iO.depth;if(_iO.x!=undefined)_2S._gP=_iO.x;if(_iO.y!=undefined)_2S._hP=_iO.y;if(_iO.hspeed!=undefined)_2S._iP=_iO.hspeed;if(_iO.vspeed!=undefined)_2S._jP=_iO.vspeed;if(_iO.visible!=undefined)_2S._kP=_iO.visible;if(_iO.effectEnabled!=undefined)_2S._rP=_2S._sP=_iO.effectEnabled;
if((_iO.effectType!=undefined)&&(_iO.effectType!="")){var _YS=new _mQ();_YS.pName=_iO.effectType;_YS._1I=0;for(var _I6=0;_I6<_iO.effectProperties.length;_I6++){var _ZS=_iO.effectProperties[_I6].value;if((_ZS=="")||_ZS.includes(".png")||_ZS.includes(".jpg"))continue;var _K6;for(_K6=0;_K6<_I6;_K6++){if(_iO.effectProperties[_I6].name==_iO.effectProperties[_K6].name)break;}if(_I6==_K6){_YS._1I++;}}var __S=[];var _0T=null;var _1T=-1;var _2T="";var _3T=1;for(var _I6=0;_I6<_iO.effectProperties.length;_I6++){var _ZS=_iO.effectProperties[_I6].value;
if((_ZS=="")||_ZS.includes(".png")||_ZS.includes(".jpg"))continue;var _4T=_iO.effectProperties[_I6];if(_2T!=_4T.name){_1T++;_2T=_4T.name;_0T=new _kQ();__S[_1T]=_0T;var _5T=_4T.name;_0T.pName=_5T;var _6T=_7T(_4T.type);_3T=_6T.elements;_0T.type=_6T.type;_0T._lQ=[];}var _8T=_0T.elements;_0T.elements+=_3T;var _9T=_4T.value;var _aT=_9T;switch(_4T.type){case _pQ:_0T._lQ[_8T]=parseFloat(_aT);break;case _qQ:{if(_9T.length>0){if(_9T[0]=='#'){_aT="0x"+_9T.substring(1);_aT=parseInt(_aT);var _L4=_aT;var _D4,_E4,_F4,_G4;
_D4=(_L4&0xff)/255.0;_E4=((_L4>>8)&0xff)/255.0;_F4=((_L4>>16)&0xff)/255.0;_G4=((_L4>>24)&0xff)/255.0;_0T._lQ[_8T]=_D4;_0T._lQ[_8T+1]=_E4;_0T._lQ[_8T+2]=_F4;_0T._lQ[_8T+3]=_G4;}}}break;case _rQ:_0T._lQ[_8T]=_aT;break;}}_YS._nQ=__S;_YS._oQ=true;_2S._uP=_YS;}if(_iO.type===_IO){var _bT=new _GP();_bT._HP=new _aP();var _cT;_bT._HP.image_speed=1.0;if(_iO.bvisible!=undefined)_bT._HP.visible=_iO.bvisible;if(_iO.bforeground!=undefined)_bT._HP.foreground=_iO.bforeground;if(_iO.bindex!=undefined)_bT._HP.index=_iO.bindex;
if(_iO.bhtiled!=undefined)_bT._HP.htiled=_iO.bhtiled;if(_iO.bvtiled!=undefined)_bT._HP.vtiled=_iO.bvtiled;if(_iO.bblend!=undefined){_bT._HP._dP=_Nc(_iO.bblend);_bT._HP.alpha=((_iO.bblend>>24)&0xff)/255.0;}if(_iO.playbackspeedtype!=undefined)_bT._HP.playbackspeedtype=_iO.playbackspeedtype;if(_iO.bimage_speed!=undefined)_bT._HP.playbackspeed=_iO.bimage_speed;if(_iO.pName!=undefined)_bT._zr=_iO.pName;if((_iO.bstretch!=undefined)){_bT._HP.stretch=_iO.bstretch;}if((_iO.bstretch!=undefined)&&(_iO.bstretch==true)&&(sprite_exists(_bT._HP.index))){
var value=sprite_get_width(_bT._HP.index);if(value>0)_bT._HP._bP=_US/value;value=sprite_get_height(_bT._HP.index);if(value>0)_bT._HP._cP=_WS/value;}this._zR(_zo,_2S,_bT);}else if(_iO.type===_JO){var _dT=0;if(_iO.icount!=undefined)_dT=_iO.icount;for(var i=_dT-1;i>=0;i--){var _7S=new _DP();_7S._EP=_iO.iinstIDs[i];this._zR(_zo,_2S,_7S,false);}}else if(_iO.type===_KO){var _eT=0;if(_iO.acount!=undefined)_eT=_iO.acount;if(_eT>0){var i;for(i=_eT-1;i>=0;i--){var _fT=new _fQ();if(_iO.assets[i].ax!=undefined)_fT._KP=_iO.assets[i].ax;
if(_iO.assets[i].ay!=undefined)_fT._LP=_iO.assets[i].ay;if(_iO.assets[i].aindex!=undefined)_fT._aF=_iO.assets[i].aindex;if(_iO.assets[i].aXO!=undefined)_fT._iQ=_iO.assets[i].aXO;if(_iO.assets[i].aYO!=undefined)_fT._jQ=_iO.assets[i].aYO;if(_iO.assets[i].aW!=undefined)_fT._gQ=_iO.assets[i].aW;if(_iO.assets[i].aH!=undefined)_fT._hQ=_iO.assets[i].aH;if(_iO.assets[i].aXScale!=undefined)_fT._gT=_iO.assets[i].aXScale;if(_iO.assets[i].aYScale!=undefined)_fT._hT=_iO.assets[i].aYScale;if(_iO.assets[i].aBlend!=undefined){
_fT._iT=_iO.assets[i].aBlend&0xffffff;_fT._jT=((_iO.assets[i].aBlend>>24)&0xff)/255.0;}this._zR(_zo,_2S,_fT,false);}}var _kT=0;if(_iO.scount!=undefined)_kT=_iO.scount;if(_kT>0){for(var i=_kT-1;i>=0;i--){var _lT=new _UP();_lT._XP=_eP;_lT._VP=_iO.sprites[i].sIndex;_lT._YP=_iO.sprites[i].sImageIndex;_lT._ZP=1.0;if(_iO.sprites[i].sPlaybackSpeedType!=undefined)_lT._XP=_iO.sprites[i].sPlaybackSpeedType;_lT._WP=_iO.sprites[i].sImageSpeed;_lT.__P=_iO.sprites[i].sImageIndex;_lT._0Q=_iO.sprites[i].sXScale;_lT._1Q=_iO.sprites[i].sYScale;
_lT._2Q=_iO.sprites[i].sRotation;_lT._3Q=_Nc(_iO.sprites[i].sBlend&0xffffff);_lT._4Q=((_iO.sprites[i].sBlend>>24)&0xff)/255.0;_lT._KP=_iO.sprites[i].sX;_lT._LP=_iO.sprites[i].sY;_lT._zr=_iO.sprites[i].sName;this._zR(_zo,_2S,_lT,false);}}var _mT=0;if(_iO.ecount!=undefined)_mT=_iO.ecount;if(_mT>0){for(var i=_mT-1;i>=0;i--){var _nT=new _5Q();_nT._6Q=_iO.sequences[i].sIndex;_nT._8Q=_iO.sequences[i].sHeadPosition;_nT._oT=_iO.sequences[i].sBlend;_nT._9Q=_iO.sequences[i].sXScale;_nT._aQ=_iO.sequences[i].sYScale;
_nT._KP=_iO.sequences[i].sX;_nT._LP=_iO.sequences[i].sY;_nT._m3=_iO.sequences[i].sRotation;_nT._zr=_iO.sequences[i].sName;_nT._bQ=_2S;_nT._WP=_iO.sequences[i].sImageSpeed;this._zR(_zo,_2S,_nT,false);}}}else if(_iO.type===_LO){if(_iO.tIndex>=0){var _pT=new _IP();_pT._JP=_iO.tIndex;_pT._MP=_iO.tMapWidth;_pT._NP=_iO.tMapHeight;_pT._PP=[];var _eT=0;if(_iO.tcount!=undefined)_eT=_iO.tcount;for(var i=0;i<_eT;i++){_pT._PP[i]=_iO.ttiles[i];}if(_iO.pName!=undefined)_pT._zr=_iO.pName;this._zR(_zo,_2S,_pT,false);
}}else if(_iO.type===_NO){if(_2S._uP!=null){_2S._uP._oQ=false;}}_zo._8R._Df(_2S);this._FQ(_W6(this._EQ(),_2S._ke));}}};function _7T(_qT){var type=_rT;if((_qT>=0)||(_qT<_sQ)){var _sT=[_rT,_rT,_tT,];type=_sT[_qT];}var _6T={};var elements=1;switch(_qT){case _pQ:break;case _qQ:elements=4;break;case _rQ:break;default :break;}_6T.type=type;_6T.elements=elements;return _6T;}_uQ.prototype._uT=function(_em){this._DQ=_em;};_uQ.prototype._vT=function(){return this._DQ;};function layer_get_id(_b4){var room=_jO._eR();if(room==null)return -1;
var _iO=_jO._kO(room,yyGetString(_b4));if(_iO!=null){return _iO._ke;}return -1;};function layer_get_id_at_depth(_rl){var room=_jO._eR();if(room==null){var _z6=[];_z6[0]=-1;return _z6;}var _rb=[];var _BS=0;var i;for(i=0;i<room._8R.length;i++){var layer=room._8R[i];if(layer!=null){if(layer.depth==yyGetInt32(_rl)){_rb[_BS++]=layer._ke;}}}if(_BS==0){var _z6=[];_z6[0]=-1;return _z6;}return _rb;}function layer_get_depth(_gg){var room=_jO._eR();if(room==null){return -1;}if(room==null)return -1;var _iO=null;if((typeof(_gg)==="string"))_iO=_jO._kO(room,
yyGetString(_gg));else _iO=_jO._lO(room,yyGetInt32(_gg));if(_iO!=null){return _iO.depth;}return -1;};function layer_create(_rl,_b4){var _2S=new _fP();_2S._ke=_jO._3S();_2S.depth=yyGetInt32(_rl);_2S._mP=yyGetString(_b4);_2S._lP=false;var room=_jO._eR();if(room==null){return -1;}if((_2S._mP==undefined)||(_2S._mP==null)){_2S._mP="_layer_"+_2S._ke.toString(16);}room._8R._Df(_2S);return _2S._ke;};function layer_destroy(_sh){var room=_jO._eR();if(room==null){return -1;}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,
yyGetString(_sh));else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO!=null)_jO._eS(room,_iO._ke);};function layer_destroy_instances(_sh){var room=_jO._eR();if(room==null){return -1;}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,yyGetString(_sh));else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO!=null){for(var i=0;i<_iO._mO.length;i++){var _nO=_iO._mO._26(i);if(_nO!=null){if(_nO._oO==_pO){_jO._1R(room,_nO,_iO,false,true);}}}}};function layer_add_instance(_sh,_wT){var room=_jO._eR();if(room==null){return -1;
}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,yyGetString(_sh));else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO===null)return;if(room==_S3){var _Tm=_xn._26(yyGetInt32(_wT));if(_Tm===null)return;_jO._8S(room,_Tm);_jO._6S(room,_iO,_Tm);}else {var _xT=yyGetInt32(_wT);var _yT=_jO._JR(room,_xT);if(_yT!=-1){var _zT=_jO._lO(room,_yT);_jO._cS(room,_zT,_xT);}var _AT=new _DP();_AT._EP=_xT;_jO._zR(room,_iO,_AT,false);}};function _BT(_sh,_wT){var room=_jO._eR();if(room==null){return -1;}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,
yyGetString(_sh));else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO===null)return;var _Tm=_xn._26(yyGetInt32(_wT));if(_Tm===null)return;if(_Tm._TN===false){return;}if(_Tm._jR!=_iO._ke){return;}_jO._9S(room,_iO,_Tm);};function layer_has_instance(_sh,_wT){var room=_jO._eR();if(room==null){return false;}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,yyGetString(_sh));else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO===null)return false;var _Tm=_xn._26(yyGetInt32(_wT));if(_Tm===null)return false;if(_Tm._TN===true&&_Tm._jR===_iO._ke){
return true;}return false;};function layer_instance_get_instance(_gg){var room=_jO._eR();if(room!=null){var _nO=_jO._sS(room,yyGetInt32(_gg));if(_nO!=null&&_nO._oO===_pO){return _nO._EP;}}return _wt;}function layer_set_visible(_sh,_wT){var room=_jO._eR();if(room==null){return -1;}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,yyGetString(_sh));else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO===null)return;_iO._kP=yyGetBool(_wT);};function layer_get_visible(_sh){var room=_jO._eR();if(room==null){return -1;
}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,yyGetString(_sh));else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO===null)return 0;return _iO._kP;};function layer_exists(_sh){var room=_jO._eR();if(room==null){return 0;}var _iO=null;if((typeof(_sh)==="string"))_iO=_jO._kO(room,yyGetString(_sh));else _iO=_jO._lO(room,yyGetInt32(_sh));if(_iO===null)return 0;return 1;};function layer_script_begin(_sh,_wT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,
yyGetInt32(_sh));if(layer===null)return;if(typeof(_wT)==="number"){var _t9=yyGetInt32(_wT);if(_t9>=100000)_t9-=100000;layer._nP=_xD.Scripts[yyGetInt32(_t9)];}else {layer._nP=_wT;}if(_jO._vT()===null){var _CT=new _PN(0,0,0,0,false,true);_jO._uT(_CT);}};function layer_script_end(_sh,_wT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer===null)return;if(typeof(_wT)==="number"){var _t9=yyGetInt32(_wT);if(_t9>=100000)_t9-=100000;layer._oP=_xD.Scripts[yyGetInt32(_t9)];
}else {layer._oP=_wT;}if(_jO._vT()===null){var _CT=new _PN(0,0,0,0,false,true);_jO._uT(_CT);}};function layer_shader(_sh,_wT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer===null)return;layer._pP=yyGetInt32(_wT);};function _DT(_CD){var _P4=_CD;var _0j=_xD.Scripts.length;for(var _I6=0;_I6<_0j;++_I6){if(_CD==_xD.Scripts[_I6]){_P4=_I6+100000;break;}}return _P4;}function layer_get_script_begin(_sh){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,
yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer===null)return -1;return _DT(layer._nP);};function layer_get_script_end(_sh){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer===null)return -1;return _DT(layer._oP);};function layer_get_shader(_sh){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer===null)return -1;return layer._pP;};function layer_set_target_room(_sh){
_jO._AQ=yyGetInt32(_sh);};function layer_get_target_room(){return _jO._AQ;}function layer_reset_target_room(){_jO._AQ=-1;}function layer_background_get_id(_sh){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer===null)return -1;var _nO=_jO._wS(layer,layer._mP);if(_nO!=null){return _nO._ke;}};function layer_background_exists(_sh,_wT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,
yyGetInt32(_sh));if(layer===null)return 0;var _nO=_jO._9R(layer,yyGetInt32(_wT));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return 1;}return 0;};function layer_background_create(_sh,_wT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer!=null){var _bT=new _GP();_bT._HP=new _aP();var _cT;_bT._HP.visible=true;_bT._HP.foreground=false;_bT._HP.index=yyGetInt32(_wT);_bT._HP.htiled=false;_bT._HP.vtiled=false;_bT._HP._dP=0xffffffff;
_bT._HP.alpha=1;_bT._HP.image_index=0;_bT._HP.image_speed=1;_jO._zR(_S3,layer,_bT);return _bT._ke;}return -1;};function layer_background_destroy(_sh){_jO._6R(_S3,yyGetInt32(_sh));};function layer_background_visible(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP.visible=yyGetBool(_wT);}};function layer_background_change(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP.index=yyGetInt32(_wT);}};
function layer_background_htiled(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP.htiled=yyGetBool(_wT);}};function layer_background_vtiled(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP.vtiled=yyGetBool(_wT);}};function layer_background_xscale(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP._bP=yyGetReal(_wT);}};function layer_background_yscale(_sh,
_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP._cP=yyGetReal(_wT);}};function layer_background_stretch(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP.stretch=yyGetBool(_wT);}};function layer_background_blend(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP._dP=_Nc(yyGetInt32(_wT));}};function layer_background_alpha(_sh,_wT){var _nO=_jO._sS(_S3,
yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP.alpha=yyGetReal(_wT);}};function layer_background_index(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP.image_index=yyGetInt32(_wT);}};function layer_background_sprite(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){_nO._HP.index=yyGetReal(_wT);}};function layer_background_speed(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){
_nO._HP.image_speed=yyGetReal(_wT);}};function layer_background_get_visible(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP.visible;}return 1;};function layer_background_get_sprite(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP.index;}return -1;};function layer_background_get_htiled(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP.htiled;
}return 0;};function layer_background_get_vtiled(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP.vtiled;}return 0;};function layer_background_get_stretch(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP.stretch;}return 0;};function layer_background_get_xscale(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP._bP;}return 1;};function layer_background_get_yscale(_sh){
var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP._cP;}return 1;};function layer_background_get_blend(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _Nc(_nO._HP._dP);}return 0;};function layer_background_get_alpha(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP.alpha;}return 0;};function layer_background_get_index(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));
if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP.image_index;}return -1;};function layer_background_get_speed(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_PO)&&(_nO._HP!=null)){return _nO._HP.image_speed;}return 0;};function layer_sprite_get_id(_ET,_FT){var layer=null;if((typeof(_ET)==="string"))layer=_jO._kO(_S3,yyGetString(_ET));else layer=_jO._lO(_S3,yyGetInt32(_ET));if(layer!=null){var _pd=_jO._wS(layer,yyGetString(_FT));if(_pd!=null&&_pd._oO==_RO){return _pd._ke;
}}return -1;};function layer_sprite_exists(_sh,_wT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));var _nO=_jO._9R(layer,yyGetInt32(_wT));if((_nO!=null)&&(_nO._oO===_RO)){return 1;}return 0;};function layer_sprite_create(_sh,_wT,_GT,_HT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer!=null){var _IT=new _UP();_IT._VP=yyGetInt32(_HT);_IT._KP=yyGetReal(_wT);_IT._LP=yyGetReal(_GT);
_jO._zR(_S3,layer,_IT);return _IT._ke;}return -1;};function layer_sprite_destroy(_sh){_jO._6R(_S3,yyGetInt32(_sh));};function layer_sprite_change(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){_nO._VP=yyGetInt32(_wT);}};function layer_sprite_index(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){_nO.__P=yyGetInt32(_wT);var frame=yyGetInt32(_wT);var _DS=_16._26(_nO._VP);if(_DS!=null){if(_DS.sequence!=null&&_DS.sequence._KS!=null&&_DS.sequence._KS[0]._oO==_LS){
var _JT=_DS.sequence._KS[0];var keyframeStore=_JT._NS;var _KT=keyframeStore._LT;if(_KT>0){var _MT=_Z3(frame,_KT);var _NT=_MT;var _OT=_MT-_NT;_nO._YP=(keyframeStore._PT[Math.floor(_NT)]._QT+(_OT*_KT));_nO.__P=_MT;}else {_nO.__P=frame;}}else {_nO.__P=frame;}}else {_nO.__P=frame;}}};function layer_sprite_speed(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){_nO._WP=yyGetReal(_wT);}};function layer_sprite_xscale(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){
_nO._0Q=yyGetReal(_wT);}};function layer_sprite_yscale(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){_nO._1Q=yyGetReal(_wT);}};function layer_sprite_angle(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){_nO._2Q=yyGetReal(_wT);}};function layer_sprite_blend(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){_nO._3Q=_Nc(yyGetInt32(_wT));}};function layer_sprite_alpha(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){
_nO._4Q=yyGetReal(_wT);}};function layer_sprite_x(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){_nO._KP=yyGetReal(_wT);}};function layer_sprite_y(_sh,_wT){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){_nO._LP=yyGetReal(_wT);}};function layer_sprite_get_sprite(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){return _nO._VP;}return -1;};function layer_sprite_get_index(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){
return _nO.__P;}return -1;};function layer_sprite_get_speed(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){return _nO._WP;}return 0;};function layer_sprite_get_xscale(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){return _nO._0Q;}return 1;};function layer_sprite_get_yscale(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){return _nO._1Q;}return 1;};function layer_sprite_get_angle(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){
return _nO._2Q;}return 0;};function layer_sprite_get_blend(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){return _Nc(_nO._3Q);}return 0;};function layer_sprite_get_alpha(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){return _nO._4Q;}return 0;};function layer_sprite_get_x(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){return _nO._KP;}return 0;};function layer_sprite_get_y(_sh){var _nO=_jO._sS(_S3,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_RO)){
return _nO._LP;}return 0;};function layer_tilemap_get_id(_sh){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer!=null){var _pd=_jO._wS(layer,layer._mP);if(_pd!=null&&_pd._oO==_SO){return _pd._ke;}}return -1;};function layer_tilemap_exists(_sh,_wT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer!=null){var _pd=_jO._9R(layer,yyGetInt32(_wT));if(_pd!=null&&_pd._oO==_SO){
return 1;}}return 0;};function layer_tilemap_create(_sh,_wT,_GT,_HT,_RT,_ST){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));if(layer!=null){var _pT=new _IP();_pT._JP=yyGetInt32(_HT);_pT._MP=yyGetInt32(_RT);_pT._NP=yyGetInt32(_ST);_pT._KP=yyGetReal(_wT);_pT._LP=yyGetReal(_GT);_pT._PP=[];var _eT=0;_eT=_RT*_ST;for(var i=0;i<_eT;i++){_pT._PP[i]=0;}_jO._zR(_S3,layer,_pT,true);return _pT._ke;}};function layer_tilemap_destroy(_sh){_jO._6R(_S3,
yyGetInt32(_sh));};function layer_x(_sh,_wT){var room=_jO._eR();if(room==null){return 0;}var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(room,yyGetString(_sh));else layer=_jO._lO(room,yyGetInt32(_sh));if(layer!=null){layer._gP=yyGetReal(_wT);}};function layer_y(_sh,_wT){var room=_jO._eR();if(room==null){return 0;}var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(room,yyGetString(_sh));else layer=_jO._lO(room,yyGetInt32(_sh));if(layer!=null){layer._hP=yyGetReal(_wT);}};function layer_get_x(_sh){
var room=_jO._eR();if(room==null){return 0;}var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(room,yyGetString(_sh));else layer=_jO._lO(room,yyGetInt32(_sh));if(layer!=null){return layer._gP;}return 0;};function layer_get_y(_sh){var room=_jO._eR();if(room==null){return 0;}var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(room,yyGetString(_sh));else layer=_jO._lO(room,yyGetInt32(_sh));if(layer!=null){return layer._hP;}return 0;};function layer_hspeed(_TT,speed){var room=_jO._eR();if(room==null){return 0;
}var layer=null;if((typeof(_TT)==="string"))layer=_jO._kO(room,yyGetString(_TT));else layer=_jO._lO(room,yyGetInt32(_TT));if(layer!=null){layer._iP=yyGetReal(speed);}return 0;};function layer_vspeed(_TT,speed){var room=_jO._eR();if(room==null){return 0;}var layer=null;if((typeof(_TT)==="string"))layer=_jO._kO(room,yyGetString(_TT));else layer=_jO._lO(room,yyGetInt32(_TT));if(layer!=null){layer._jP=yyGetReal(speed);}return 0;};function layer_get_hspeed(_TT){var room=_jO._eR();if(room==null){return 0;}var layer=null;
if((typeof(_TT)==="string"))layer=_jO._kO(room,yyGetString(_TT));else layer=_jO._lO(room,yyGetInt32(_TT));if(layer!=null){return layer._iP;}return 0;};function layer_get_vspeed(_TT){var room=_jO._eR();if(room==null){return 0;}var layer=null;if((typeof(_TT)==="string"))layer=_jO._kO(room,yyGetString(_TT));else layer=_jO._lO(room,yyGetInt32(_TT));if(layer!=null){return layer._jP;}return 0;};function tilemap_tileset(_sh,_wT){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){
_nO._JP=yyGetInt32(_wT);}};function tilemap_x(_sh,_wT){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){_nO._KP=yyGetReal(_wT);}};function tilemap_y(_sh,_wT){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){_nO._LP=yyGetReal(_wT);}};function tilemap_set(_sh,_wT,_GT,_HT){_GT=yyGetInt32(_GT);_HT=yyGetInt32(_HT);var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));
if((_nO!=null)&&(_nO._oO===_SO)){if(_GT<0){debug("tilemap_set_tile called with negative x coord, fails");return;}if(_HT<0){debug("tilemap_set_tile called with negative y coord, fails");return;}if(_GT>=_nO._MP){debug("tilemap_set_tile called with x coord greater than map width, fails");return;}if(_HT>=_nO._NP){debug("tilemap_set_tile called with y coord greater than map height, fails");return;}var x=_GT;var y=_HT;var _Vq=_Wq._Or(_nO._JP);var _UT=yyGetInt32(_wT);var _VT=((_UT>>_7P)&_9P);if(_Vq!=null&&_VT>=_Vq.tilecount){
debug("layer_tilemap_set_tile() - tile index outside tile set count");return;}var index=(y*_nO._MP)+x;_nO._PP[index]=_UT;}};/*@constructor */function _uS(){this._pd=-1;this.layer=-1;};function tilemap_set_at_pixel(_sh,_wT,_GT,_HT){var room=_jO._eR();if(room==null){return 0;}var _P4=_jO._dR(room,yyGetInt32(_sh));if(_P4==null){return -1;}var _nO=_P4._pd;var _QQ=_P4.layer;if((_nO!=null)&&(_nO._oO===_SO)){var _Vq=_Wq._Or(_nO._JP);var _WT=_Vq.tilewidth;var _XT=_Vq.tileheight;var _YT=1/_WT;var _ZT=1/_XT;var __T=_nO._KP+_QQ._gP;
var _0U=_nO._LP+_QQ._hP;var _1U=_nO._MP*_WT;var _2U=_nO._NP*_XT;var x=yyGetReal(_GT);var y=yyGetReal(_HT);x-=__T;y-=_0U;if(x<0)return -1;if(y<0)return -1;if(x>=_1U)return -1;if(y>_2U)return -1;var _3U=Math.floor(x*_YT);var _4U=Math.floor(y*_ZT);_3U=_W6(0,_X6(_3U,_nO._MP));_4U=_W6(0,_X6(_4U,_nO._NP));var index=_4U*_nO._MP+_3U;var _UT=yyGetInt32(_wT);var _VT=((_UT>>_7P)&_9P);if(_Vq!=null&&_VT>=_Vq.tilecount){debug("tilemap_set_tile_at_pixel() - tile index outside tile set count");return;}_nO._PP[index]=_UT;}};function tileset_get_texture(_S4){
var _wk=_Wq._Or(yyGetInt32(_S4));if(_wk){return({_Ec:_wk._Tr._95,_Fc:_wk._Tr});}return null;}function tileset_get_name(_S4){var _wk=_Wq._Or(yyGetInt32(_S4));if(!_wk)return "";return _wk.pName;}function tileset_get_uvs(_S4){var _wk=_Wq._Or(yyGetInt32(_S4));if(_wk){var __4=_wk._Tr;var _95=__4._95;var _Ws=1.0/_95._Xc;var _Xs=1.0/_95._Yc;var _Ys=[];_Ys.push(__4.x*_Ws,__4.y*_Xs,(__4.x+__4.CropWidth)*_Ws,(__4.y+__4.CropHeight)*_Xs);return _Ys;}return null;}function tileset_get_info(_S4){var _wk=_Wq._Or(yyGetInt32(_S4));
var _P4=undefined;if(_wk){_P4=new _LG();var __4=_wk._Tr;var _95=__4._95;variable_struct_set(_P4,"width",_95.width);variable_struct_set(_P4,"height",_95.height);variable_struct_set(_P4,"texture",__4.tp);variable_struct_set(_P4,"tile_width",_wk.tilewidth);variable_struct_set(_P4,"tile_height",_wk.tileheight);variable_struct_set(_P4,"tile_horizontal_separator",_wk.tilehsep);variable_struct_set(_P4,"tile_vertical_separator",_wk.tilevsep);variable_struct_set(_P4,"tile_columns",_wk.tilecolumns);variable_struct_set(_P4,
"tile_count",_wk.tilecount);variable_struct_set(_P4,"frame_count",_wk.frames);variable_struct_set(_P4,"frame_length_ms",_wk.framelength);var frames=new _LG();for(var _Y6=0;_Y6<_wk.tilecount;++_Y6){var _5U=true;for(var _SC=0;_5U&&_SC<_wk.frames;++_SC){var _6U=_wk.framedata[(_Y6*_wk.frames)+_SC];if(_6U==0)break;_5U=(_6U==_Y6);}if(_5U)continue;var _2L=[];for(var _SC=0;_SC<_wk.frames;++_SC){var _6U=_wk.framedata[(_Y6*_wk.frames)+_SC];if(_6U==0)break;_2L[_SC]=_6U;}variable_struct_set(frames,_Y6.toString(),_2L);
}variable_struct_set(_P4,"frames",frames);}return _P4;}function tilemap_get_tileset(_sh){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){return _nO._JP;}return -1;};function tilemap_get_tile_width(_sh){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){var _Vq=_Wq._Or(_nO._JP);if(_Vq!=null){return _Vq.tilewidth;}}return -1;};function tilemap_get_tile_height(_sh){var room=_jO._eR();if(room==null){
return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){var _Vq=_Wq._Or(_nO._JP);if(_Vq!=null){return _Vq.tileheight;}}return -1;};function tilemap_get_width(_sh){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){return _nO._MP;}return -1;};function tilemap_get_height(_sh){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){return _nO._NP;}return -1;};function _7U(_8U,
_9U,_aU){if(_9U<1)_9U=1;if(_aU<1)_aU=1;var tiles=[];var _eT=_9U*_aU;for(var i=0;i<_eT;++i){tiles[i]=0;}var src=0;var _ea=0;for(var y=0;y<Math.min(_aU,_8U._NP);++y){var _E8=Math.min(_9U,_8U._MP);for(var i=0;i<_E8;++i)tiles[_ea+i]=_8U._PP[src+i];src+=_8U._MP;_ea+=_9U;}_8U._PP=tiles;_8U._MP=_9U;_8U._NP=_aU;}function tilemap_set_width(_8U,_9U){var room=_jO._eR();if(room!=null){var _nO=_jO._sS(room,yyGetInt32(_8U));if((_nO!=null)&&(_nO._oO===_SO)){_7U(_nO,yyGetInt32(_9U),_nO._NP);}}}function tilemap_set_height(_8U,
_aU){var room=_jO._eR();if(room!=null){var _nO=_jO._sS(room,yyGetInt32(_8U));if((_nO!=null)&&(_nO._oO===_SO)){_7U(_nO,_nO._MP,yyGetInt32(_aU));}}}function tilemap_get_x(_sh){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){return _nO._KP;}return -1;};function tilemap_get_y(_sh){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){return _nO._LP;}return -1;};function tilemap_get(_sh,_wT,
_GT){_wT=yyGetInt32(_wT);_GT=yyGetInt32(_GT);var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){if(_wT<0){debug("tilemap_get_tile called with negative x coord, fails");return;}if(_GT<0){debug("tilemap_get_tile called with negative y coord, fails");return;}if(_wT>=_nO._MP){debug("tilemap_get_tile called with x coord greater than map width, fails");return;}if(_GT>=_nO._NP){debug("tilemap_get_tile called with y coord greater than map height, fails");
return;}var index=(_GT*_nO._MP)+_wT;return _nO._PP[index];}return -1;};function tilemap_get_at_pixel(_sh,_wT,_GT){var room=_jO._eR();if(room==null){return 0;}var _P4=_jO._dR(room,yyGetInt32(_sh));if(_P4==null){return -1;}var _nO=_P4._pd;var _QQ=_P4.layer;if((_nO!=null)&&(_nO._oO===_SO)){var _Vq=_Wq._Or(_nO._JP);var _WT=_Vq.tilewidth;var _XT=_Vq.tileheight;var _YT=1/_WT;var _ZT=1/_XT;var __T=_nO._KP+_QQ._gP;var _0U=_nO._LP+_QQ._hP;var _1U=_nO._MP*_WT;var _2U=_nO._NP*_XT;var x=yyGetReal(_wT);var y=yyGetReal(_GT);x-=__T;
y-=_0U;if(x<0)return -1;if(y<0)return -1;if(x>=_1U)return -1;if(y>_2U)return -1;var _3U=Math.floor(x*_YT);var _4U=Math.floor(y*_ZT);_3U=_W6(0,_X6(_3U,_nO._MP));_4U=_W6(0,_X6(_4U,_nO._NP));var index=_4U*_nO._MP+_3U;return _nO._PP[index];}return -1;};function tilemap_get_cell_x_at_pixel(_sh,_wT,_GT){var room=_jO._eR();if(room==null){return 0;}var _P4=_jO._dR(room,yyGetInt32(_sh));if(_P4==null){return -1;}var _nO=_P4._pd;var _QQ=_P4.layer;if((_nO!=null)&&(_nO._oO===_SO)){var _Vq=_Wq._Or(_nO._JP);var _WT=_Vq.tilewidth;
var _XT=_Vq.tileheight;var _YT=1/_WT;var _ZT=1/_XT;var __T=_nO._KP+_QQ._gP;var _0U=_nO._LP+_QQ._hP;var _1U=_nO._MP*_WT;var _2U=_nO._NP*_XT;var x=yyGetReal(_wT);var y=yyGetReal(_GT);x-=__T;y-=_0U;if(x<0)return -1;if(y<0)return -1;if(x>=_1U)return -1;if(y>_2U)return -1;return(Math.floor(x*_YT));}return -1;};function tilemap_get_cell_y_at_pixel(_sh,_wT,_GT){var room=_jO._eR();if(room==null){return 0;}var _P4=_jO._dR(room,yyGetInt32(_sh));if(_P4==null){return -1;}var _nO=_P4._pd;var _QQ=_P4.layer;if((_nO!=null)&&(_nO._oO===_SO)){
var _Vq=_Wq._Or(_nO._JP);var _WT=_Vq.tilewidth;var _XT=_Vq.tileheight;var _YT=1/_WT;var _ZT=1/_XT;var __T=_nO._KP+_QQ._gP;var _0U=_nO._LP+_QQ._hP;var _1U=_nO._MP*_WT;var _2U=_nO._NP*_XT;var x=yyGetReal(_wT);var y=yyGetReal(_GT);x-=__T;y-=_0U;if(x<0)return -1;if(y<0)return -1;if(x>=_1U)return -1;if(y>_2U)return -1;return(Math.floor(y*_ZT));}return -1;};function tilemap_clear(_sh,_wT){var room=_jO._eR();if(room==null){return 0;}var _P4=_jO._dR(room,yyGetInt32(_sh));if(_P4==null){return;}var _nO=_P4._pd;var _QQ=_P4.layer;
if((_nO!=null)&&(_nO._oO===_SO)&&(_QQ!=null)){var _bU=yyGetInt32(_wT);var index=0;for(var i=0;i<_nO._MP;i++){for(var _17=0;_17<_nO._NP;_17++,index++){_nO._PP[index]=_bU;}}}};function tilemap_set_global_mask(_sh){_jO._NQ(yyGetInt32(_sh));};function tilemap_get_global_mask(){return _jO._MQ();};function tilemap_get_mask(_sh){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){return _nO._QP;}return -1;};function tilemap_get_frame(_sh){var room=_jO._eR();
if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){return _nO._OP;}return -1;};function tilemap_set_mask(_sh,_wT){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){_nO._QP=yyGetInt32(_wT);}};function draw_tilemap(_Tm,_sh,_wT,_GT){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_sh));if((_nO!=null)&&(_nO._oO===_SO)){var x=yyGetReal(_wT);var y=yyGetReal(_GT);var depth=_cU(_Tm);
room._dU(_TL,null,_nO,x,y,depth);}};function tile_set_empty(_sh){var _UT=yyGetInt32(_sh);_UT&=(~_8P);return _UT;};function tile_set_index(_sh,_wT){var _UT=yyGetInt32(_sh);var _eU=yyGetInt32(_wT);_UT&=(~_8P);_UT|=_eU<<_7P;return _UT;};function tile_set_flip(_sh,_wT){var _fU=yyGetBool(_wT);var _UT=yyGetInt32(_sh);if(_fU)_UT|=_1P;else _UT&=(~_1P);return _UT;};function tile_set_mirror(_sh,_wT){var _fU=yyGetBool(_wT);var _UT=yyGetInt32(_sh);if(_fU)_UT|=_2P;else _UT&=(~_2P);return _UT;};function tile_set_rotate(_sh,_wT){
var _fU=yyGetBool(_wT);var _UT=yyGetInt32(_sh);if(_fU)_UT|=_3P;else _UT&=(~_3P);return _UT;};function tile_get_empty(_sh){return(yyGetInt32(_sh)&_8P)?0.0:1.0;};function tile_get_index(_sh){var _UT=yyGetInt32(_sh);var index=(_UT&_8P)>>_7P;return index;};function tile_get_flip(_sh){var _UT=yyGetInt32(_sh);return((_UT&_1P)?true:false);};function tile_get_mirror(_sh){var _UT=yyGetInt32(_sh);return((_UT&_2P)?true:false);};function tile_get_rotate(_sh){var _UT=yyGetInt32(_sh);return((_UT&_3P)?true:false);};function _gU(_4l,
_sq){if(_sq!=undefined){var _Vk=Object.getOwnPropertyNames(_sq);_Vk=_Vk.filter(_re=>!_re.startsWith("__"));for(var i=0;i<_Vk.length;i++){var prop=_Vk[i];_hU=g_instance_names[prop];var _n5=_sq[prop];if((typeof _n5=='function')&&_n5._iU&&_n5._jU&&(_n5._jU==_sq)){_n5=method(_4l,_n5);}if(_hU==undefined){_4l[prop]=_n5;}else if(_hU[1]){if(_hU[3]!=null){var _SC=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_hU[3]]!=undefined)){_SC=_4l[g_var2obf[_hU[3]]];}else {_SC=_4l[_hU[3]];}if(typeof _SC=='function'){
_SC.call(_4l,_n5);}}else {_4l[prop]=_n5;}}}}}function instance_create_depth(_Q5,_R5,_rl,_kU,_lU){if(_rl==undefined)_rl=0;var _UE=_H3._26(_kU);if(!_UE){_55("Error: Trying to create an instance using non-existent object type ("+_kU+")");return _wt;}var _Tm=_S3._mU(yyGetReal(_Q5),yyGetReal(_R5),yyGetInt32(_rl),yyGetInt32(_kU));if(_Tm!=null){_Tm._b6(_Vm,0,_Tm,_Tm);_gU(_Tm,_lU);_Tm._b6(_Wm,0,_Tm,_Tm);return _Tm.id;}return _wt;};function instance_create_layer(_Q5,_R5,_ET,_Sk,_lU){_Sk=yyGetInt32(_Sk);var _UE=_H3._26(_Sk);
if(!_UE){_55("Error: Trying to create an instance using non-existent object type ("+_Sk+")");return _wt;}var layer=-1;if(typeof(_ET)=="string")layer=_jO._kO(_S3,yyGetString(_ET));else layer=_jO._lO(_S3,yyGetInt32(_ET));if(layer!=null&&layer!=-1){var _Gt=_S3._nU(yyGetReal(_Q5),yyGetReal(_R5),layer,_Sk);_Gt._b6(_Vm,0,_Gt,_Gt);_gU(_Gt,_lU);_Gt._b6(_Wm,0,_Gt,_Gt);return _Gt.id;}else {_55("Error: Trying to create an instance on a non-existant layer");}return _wt;};function layer_get_all(){var room=_jO._eR();if(room==null){
return -1;}var _z6=[];var _BS=0;for(var i=0;i<room._8R.length;i++){var layer=room._8R._26(i);if(layer!=null){if(layer._lP==false){_z6[_BS++]=layer._ke;}}}return _z6;};function layer_get_all_elements(_ET){var room=_jO._eR();if(room==null){return -1;}var layer=null;if(typeof(_ET)=="string")layer=_jO._kO(room,yyGetString(_ET));else layer=_jO._lO(room,yyGetInt32(_ET));var _z6=[];var _oU=0;if(layer!=null){for(var i=0;i<layer._mO.length;i++){var _nO=layer._mO._26(i);if(_nO!=null){_z6[_oU++]=_nO._ke;}}}return _z6;};function layer_get_name(_ET){
var room=_jO._eR();if(room==null){return "";}var layer=null;if(typeof(_ET)=="string")layer=_jO._kO(room,yyGetString(_ET));else layer=_jO._lO(room,yyGetInt32(_ET));if(layer!=null){if(layer._mP==null){return "";}else {return layer._mP.slice(0);}}return "";};function layer_depth(_ET,_rl){var room=_jO._eR();if(room==null){return;}var layer=null;if(typeof(_ET)=="string")layer=_jO._kO(room,yyGetString(_ET));else layer=_jO._lO(room,yyGetInt32(_ET));if(layer!=null){_rl=yyGetInt32(_rl);if(layer.depth==_rl){return;}_jO._gS(room,
layer,_rl,false);}};function layer_get_element_layer(_7R){var room=_jO._eR();if(room==null){return -1;}var _cR=_jO._dR(room,yyGetInt32(_7R));if(_cR!=null){return _cR.layer._ke;}return -1;};function layer_get_element_type(_7R){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_7R));if(_nO!=null){return _nO._oO;}return -1;};function layer_element_move(_7R,_pU){var room=_jO._eR();if(room==null){return -1;}var _cR=_jO._dR(room,yyGetInt32(_7R));if(_cR==null){return -1;}var _qU=_jO._lO(yyGetInt32(_pU));
if(_qU!=null){_jO._aR(room,_cR._pd,_qU);}};function layer_force_draw_depth(_IQ,_rl){_jO._HQ(yyGetBool(_IQ));_jO._JQ(yyGetInt32(_rl));};function layer_is_draw_depth_forced(){return _jO._KQ()?1.0:0.0;};function layer_get_forced_depth(){return _jO._LQ();};function layer_tile_exists(_ET,_3q){var room=_jO._eR();if(room==null){return 0;}if(arguments.length==1){var _nO=_jO._sS(room,yyGetInt32(_ET));if(_nO!=null){return 1;}}else {var layer=null;if(typeof(_ET)=="string")layer=_jO._kO(room,yyGetString(_ET));else layer=_jO._lO(room,
yyGetInt32(_ET));if(layer!=null){var _nO=_jO._9R(layer,yyGetInt32(_3q));if(_nO!=null){return 1;}}}return 0;};function layer_tile_create(_ET,_Q5,_R5,_rU,_us,_vs,_A8,_B8){var room=_jO._eR();if(room==null){return 0;}var layer=null;if(typeof(_ET)=="string")layer=_jO._kO(room,yyGetString(_ET));else layer=_jO._lO(room,yyGetInt32(_ET));if(layer!=null){var _sU=new _fQ();_sU._aF=yyGetInt32(_rU);_sU._KP=yyGetReal(_Q5);_sU._LP=yyGetReal(_R5);_sU._iQ=yyGetInt32(_us);_sU._jQ=yyGetInt32(_vs);_sU._gQ=yyGetInt32(_A8);_sU._hQ=yyGetInt32(_B8);
_sU._kP=true;_jO._zR(room,layer,_sU,room==_S3?true:false);return _sU._ke;}};function layer_tile_destroy(_7R){var room=_jO._eR();if(room==null){return -1;}_jO._6R(room,yyGetInt32(_7R));};function layer_tile_change(_tU,_DS){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._aF=yyGetInt32(_DS);}};function layer_tile_xscale(_tU,scale){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._0Q=yyGetReal(scale);}};function layer_tile_yscale(_tU,
scale){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._1Q=yyGetReal(scale);}};function layer_tile_blend(_tU,_L4){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._3Q=yyGetInt32(_L4);}};function layer_tile_alpha(_tU,alpha){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._4Q=yyGetReal(alpha);}};function layer_tile_x(_tU,x){var room=_jO._eR();if(room==null){
return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._KP=yyGetReal(x);}};function layer_tile_y(_tU,y){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._LP=yyGetReal(y);}};function layer_tile_region(_tU,left,top,width,height){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._iQ=yyGetInt32(left);_nO._jQ=yyGetInt32(top);_nO._gQ=yyGetInt32(width);_nO._hQ=yyGetInt32(height);}};function layer_tile_visible(_tU,
visible){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){_nO._kP=yyGetBool(visible);}};function layer_tile_get_sprite(_tU){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){return _nO._aF;}};function layer_tile_get_xscale(_tU){var room=_jO._eR();if(room==null){return 1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){return _nO._0Q;}};function layer_tile_get_yscale(_tU){var room=_jO._eR();if(room==null){return 1;
}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){return _nO._1Q;}};function layer_tile_get_blend(_tU){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){return _nO._3Q;}};function layer_tile_get_alpha(_tU){var room=_jO._eR();if(room==null){return 0.0;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){return _nO._4Q;}};function layer_tile_get_x(_tU){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){return _nO._KP;}};function layer_tile_get_y(_tU){
var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){return _nO._LP;}};function layer_tile_get_region(_tU){var room=_jO._eR();if(room==null){return -1;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){var _z6=[];_z6[0]=_nO._iQ;_z6[1]=_nO._jQ;_z6[2]=_nO._gQ;_z6[3]=_nO._hQ;return _z6;}};function layer_tile_get_visible(_tU){var room=_jO._eR();if(room==null){return 0;}var _nO=_jO._sS(room,yyGetInt32(_tU));if(_nO!=null){return _nO._kP;}};function _uU(_vU){var room=_jO._eR();
var _nO=_jO._sS(room,_vU);if(_nO!=null&&_nO._oO==_VO){return _nO;}return null;};function layer_sequence_get_instance(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO==null){return -1;}var _Tm=_rR._0S(_nO._7Q);return _Tm!=null?_Tm:-1;};function layer_sequence_create(_TT,_wU,_xU,_yU){_yU=yyGetInt32(_yU);var room=_jO._eR();var layer=null;if(typeof(_TT)=="string"){layer=_jO._kO(room,yyGetString(_TT));}else {layer=_jO._lO(room,yyGetInt32(_TT));}if(layer==null){return -1;}var sequence=_rR._zU(_yU);if(sequence==null){return -1;
}var _AU=new _5Q();_AU._6Q=_yU;_AU._8Q=0;_AU._oT=-1;_AU._9Q=1;_AU._aQ=1;_AU._KP=_wU;_AU._LP=_xU;_AU._m3=0;_AU._zr=sequence.name;_jO._zR(room,layer,_AU,room==_S3?true:false);return _AU._ke;}function layer_sequence_destroy(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO==null){return -1;}var _Tm=_rR._0S(_nO._7Q);if(_Tm!=null){_rR._vR(_Tm,_WN);}_jO._6R(_S3,yyGetInt32(_vU));}function layer_sequence_exists(_sh,_wT){var layer=null;if((typeof(_sh)==="string"))layer=_jO._kO(_S3,yyGetString(_sh));else layer=_jO._lO(_S3,yyGetInt32(_sh));
var _nO=_jO._9R(layer,yyGetInt32(_wT));if((_nO!=null)&&(_nO._oO===_VO)){return 1;}return 0;};function layer_sequence_x(_vU,_BU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){_nO._KP=yyGetReal(_BU);_nO._cQ|=(1<<_DU);}}return -1;};function layer_sequence_y(_vU,_EU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){_nO._LP=yyGetReal(_EU);_nO._cQ|=(1<<_DU);}}return -1;};function layer_sequence_angle(_vU,angle){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){
var _CU=_rR._0S(_nO._7Q);if(_CU!=null){_nO._m3=yyGetReal(angle);_nO._cQ|=(1<<_FU);}}return -1;};function layer_sequence_xscale(_vU,_bP){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){_nO._9Q=yyGetReal(_bP);_nO._cQ|=(1<<_GU);}}return -1;};function layer_sequence_yscale(_vU,_cP){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){_nO._aQ=yyGetReal(_cP);_nO._cQ|=(1<<_GU);}}return -1;};function layer_sequence_headpos(_vU,position){var _nO=_uU(yyGetInt32(_vU));
if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){var _HU=_rR._zU(_CU._6Q);var _IU=yyGetReal(position);_IU=_W6(_IU,0.0);if(_HU!=null){var length=_HU._PS;_IU=_X6(_IU,length);}if((_CU._8Q!=_IU)||(_CU._JU!=_IU)){_CU._8Q=_IU;_CU._JU=_IU;_nO._cQ|=(1<<_KU);}}}return -1;};function layer_sequence_headdir(_vU,direction){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){direction=yyGetReal(direction);if(direction!=0){_CU._LU=Math.sign(direction);}}}return -1;};function layer_sequence_pause(_vU){
var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){_CU._rJ();}}return -1;};function layer_sequence_play(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){_CU._MU();if(_CU._NU){if(_CU._LU<0.0){var _HU=_rR._zU(_CU._6Q);if(_HU!=null){_CU._8Q=_CU._JU=(_HU.length-1);}}else {_CU._8Q=_CU._JU=0.0;}_CU._NU=false;}}}return -1;};function layer_sequence_speedscale(_vU,_OU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){
_OU=yyGetReal(_OU);_CU._tR=_OU;}}return -1;};function layer_sequence_get_x(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){return _nO._KP;}return -1;};function layer_sequence_get_y(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){return _nO._LP;}return -1;};function layer_sequence_get_angle(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){return _nO._m3;}return -1;};function layer_sequence_get_xscale(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){return _nO._9Q;}return -1;};function layer_sequence_get_yscale(_vU){
var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){return _nO._aQ;}return -1;};function layer_sequence_get_headpos(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){return _CU._8Q;}}return -1;};function layer_sequence_get_headdir(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){return _CU._LU;}}return -1;};function layer_sequence_get_sequence(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){var _HU=_rR._zU(_CU._6Q);
if(_HU!=null){return _HU;}}}return -1;};function layer_sequence_is_paused(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){return _CU._nJ;}}return -1;};function layer_sequence_is_finished(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){return _CU._NU;}}return -1;};function layer_sequence_get_speedscale(_vU){var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){return _CU._tR;}}return -1;};function layer_sequence_get_length(_vU){
var _nO=_uU(yyGetInt32(_vU));if(_nO!=null){var _CU=_rR._0S(_nO._7Q);if(_CU!=null){var _HU=_rR._zU(_CU._6Q);if(_HU!=null){return _HU._PS;}}}return -1;};function sequence_instance_exists(_PU){if(_S3!=null){for(var _QU=0;_QU<_S3._RU.length;++_QU){var _SU=_S3._RU[_QU];var _TU=_jO._sS(_S3,_SU);if(_PU==_TU._6Q){return true;}}}return false;};function fx_create(_UU){if(arguments.length!=1){_55("fx_create() - wrong number of arguments");return -1;}var _VU=_WU._XU(yyGetString(_UU),false);return _VU._YU();}function fx_get_name(_wP){
if(arguments.length!=1){_55("fx_get_name() - wrong number of arguments");return -1;}if(_WU._ZU(_wP)==false){_55("fx_get_name() - parameter should be an FX object");return -1;}return _wP.instance._YS.pName;}function fx_get_parameter_names(_wP){if(arguments.length!=1){_55("fx_get_parameter_names() - wrong number of arguments");return -1;}if(_WU._ZU(_wP)==false){_55("fx_get_parameter_names() - parameter should be an FX object");return -1;}return _wP.instance.__U();}function fx_get_parameter(_wP,_b4){if(arguments.length!=2){
_55("fx_get_parameter() - wrong number of arguments");return -1;}if(_WU._ZU(_wP)==false){_55("fx_get_parameter() - first parameter should be an FX object");return -1;}return _wP.instance._0V(_b4);}function fx_get_parameters(_wP){if(arguments.length!=1){_55("fx_get_parameters() - wrong number of arguments");return -1;}if(_WU._ZU(_wP)==false){_55("fx_get_parameters() - parameter should be an FX object");return -1;}return _wP.instance._1V();}function fx_get_single_layer(_wP){if(arguments.length!=1){_55("fx_get_single_layer() - wrong number of arguments");
return -1;}if(_WU._ZU(_wP)==false){_55("fx_get_single_layer() - parameter should be an FX object");return -1;}if((_wP.instance==null)||(_wP.instance._2V==null)){_55("fx_get_single_layer() - FX object is corrupted");return -1;}var _3V="gml"+_4V;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_4V]!=undefined)){_3V=g_var2obf[_4V];}return _wP.instance._2V[_3V];}function fx_set_parameter(_wP,_b4,__3){if(arguments.length<3){_55("fx_set_parameter() - wrong number of arguments");return -1;}if(_WU._ZU(_wP)==false){
_55("fx_set_parameter() - first parameter should be an FX object");return -1;}if(arguments.length==3){_wP.instance._5V(_b4,__3);}else {var _z6=arguments.slice(2);_wP.instance._5V(_b4,_z6);}}function fx_set_parameters(_wP,_6V){if(arguments.length!=2){_55("fx_set_parameters() - wrong number of arguments");return -1;}if(_WU._ZU(_wP)==false){_55("fx_set_parameters() - first parameter should be an FX object");return -1;}if(typeof _6V!=="object"){_55("fx_set_parameters() - second parameter should be a parameter struct");
}_wP.instance._7V(_6V);}function fx_set_single_layer(_wP,__3){if(arguments.length<2){_55("fx_set_single_layer() - wrong number of arguments");return -1;}if(_WU._ZU(_wP)==false){_55("fx_set_single_layer() - first parameter should be an FX object");return -1;}if((_wP.instance==null)||(_wP.instance._2V==null)){_55("fx_set_single_layer() - FX object is corrupted");return -1;}var _3V="gml"+_4V;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_4V]!=undefined)){_3V=g_var2obf[_4V];}_wP.instance._2V[_3V]=__3;}function layer_set_fx(_8V,
_wP){if(arguments.length!=2){_55("layer_set_fx() - wrong number of arguments");return -1;}if(_WU._ZU(_wP)==false){_55("layer_set_fx() - second parameter should be an FX object");return -1;}var _9V=_S3;var _iO=null;if(typeof _8V=="string"){_iO=_jO._kO(_9V,yyGetString(_8V));}else {_iO=_jO._lO(_9V,yyGetInt32(_8V));}if(_iO==null){return -1;}_iO._vP(_wP);_9V._aV(_iO._ke);}function layer_get_fx(_8V){if(arguments.length!=1){_55("layer_get_fx() - wrong number of arguments");return -1;}var _9V=_S3;var _iO=null;if(typeof _8V=="string"){
_iO=_jO._kO(_9V,yyGetString(_8V));}else {_iO=_jO._lO(_9V,yyGetInt32(_8V));}if(_iO==null){return -1;}var _bV=_iO._yP();if(_bV!==null){return _bV;}return -1;}function layer_clear_fx(_8V){if(arguments.length!=1){_55("layer_get_fx() - wrong number of arguments");return -1;}var _9V=_S3;var _iO=null;if(typeof _8V=="string"){_iO=_jO._kO(_9V,yyGetString(_8V));}else {_iO=_jO._lO(_9V,yyGetInt32(_8V));}if(_iO==null){return -1;}_iO._xP();_9V._cV(_iO._ke);}function layer_enable_fx(_8V,_cz){if(arguments.length!=2){_55("layer_enable_fx() - wrong number of arguments");
return -1;}var _9V=_S3;var _iO=null;if(typeof _8V=="string"){_iO=_jO._kO(_9V,yyGetString(_8V));}else {_iO=_jO._lO(_9V,yyGetInt32(_8V));}if(_iO==null){return -1;}_iO._sP=_cz;}function layer_fx_is_enabled(_8V){if(arguments.length!=1){_55("layer_fx_is_enabled() - wrong number of arguments");return 1;}var _9V=_S3;var _iO=null;if(typeof _8V=="string"){_iO=_jO._kO(_9V,yyGetString(_8V));}else {_iO=_jO._lO(_9V,yyGetInt32(_8V));}if(_iO==null){return 1;}return _iO._sP;}var _dV=0x7fff;var g_GMLMathEpsilon=1e-5;function floor(__3){
return Math.floor(yyGetReal(__3));}function _eV(_fV){_fV=yyGetReal(_fV);var i=Math.sign(_fV)*Math.floor(Math.abs(_fV));if(_fV<0){var _SC=_fV-i;if((i&1)==1){if(_SC<=-0.5){return i-1;}else {return i;}}else {if(_SC>=-0.5){return i;}else {return i-1;}}}else {var _SC=_fV-i;if((i&1)==1){if(_SC>=0.5){return i+1;}else {return i;}}else {if(_SC<=0.5){return i;}else {return i+1;}}}}function _gV(_fV){return ~~_fV;}var round=_eV;var _Mk=_eV;function abs(_fV){return Math.abs(yyGetReal(_fV));}function cos(_fV){var _Q5=Math.cos(yyGetReal(_fV));
var _Y6=~~(_Q5*0x1000000);_Q5=_Y6/0x1000000;return _Q5;}function dcos(_fV){return cos(yyGetReal(_fV)*0.0174532925);}function sin(_fV){var _Q5=Math.sin(yyGetReal(_fV));var _Y6=~~(_Q5*0x1000000);_Q5=_Y6/0x1000000;return _Q5;}function dsin(_fV){return sin(yyGetReal(_fV)*0.0174532925);}function tan(_fV){var _Q5=Math.tan(yyGetReal(_fV));var _Y6=~~(_Q5*0x1000000);_Q5=_Y6/0x1000000;return _Q5;}function dtan(_fV){return tan(yyGetReal(_fV)*0.0174532925);}function lengthdir_x(_hV,_im){var _n5=(yyGetReal(_hV)*Math.cos(yyGetReal(_im)*__6/180.0));
var _iV=Math.round(_n5);var frac=_n5-_iV;if(Math.abs(frac)<0.0001)return _iV;return _n5;}function lengthdir_y(_hV,_im){var _n5=-(yyGetReal(_hV)*Math.sin(yyGetReal(_im)*__6/180.0));var _iV=Math.round(_n5);var frac=_n5-_iV;if(Math.abs(frac)<0.0001)return _iV;return _n5;}function point_direction(_b7,_c7,_D6,_E6){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);var x=_D6-_b7;var y=_E6-_c7;if(x===0){if(y>0)return 270.0;else if(y<0)return 90.0;else return 0.0;}else {var _8L=180.0*Math.atan2(y,x)/__6;
_8L=(~~round(_8L*1000000))/1000000.0;if(_8L<=0.0){return -_8L;}else {return(360.0-_8L);}}}function _jV(_b7,_c7,_D6,_E6){return point_direction(_b7,_c7,_D6,_E6);}function point_distance(_b7,_c7,_D6,_E6){var _fb=yyGetReal(_D6)-yyGetReal(_b7);var _gb=yyGetReal(_E6)-yyGetReal(_c7);return Math.sqrt(_fb*_fb+_gb*_gb);}function point_distance_3d(_b7,_c7,_kV,_D6,_E6,_lV){return Math.sqrt(_Kz(yyGetReal(_D6)-yyGetReal(_b7))+_Kz(yyGetReal(_E6)-yyGetReal(_c7))+_Kz(yyGetReal(_lV)-yyGetReal(_kV)));}function _X6(_fV,_8K){
if(_fV<_8K)return _fV;else return _8K;}function _W6(_fV,_8K){if(_fV>_8K)return _fV;else return _8K;}function max(){var _yk=arguments;var _zk=arguments.length;if(_zk==0)return 0;var _K6=yyGetReal(_yk[0]);for(var i=1;i<_zk;i++){var _mV=yyGetReal(_yk[i]);if(_K6<_mV)_K6=_mV;}return _K6;}function _nV(_fV,_8K,_oV){return max(_fV,_8K,_oV);}function min(){var _yk=arguments;var _zk=arguments.length;if(_zk==0)return 0;var _K6=yyGetReal(_yk[0]);for(var i=1;i<_zk;i++){var _mV=yyGetReal(_yk[i]);if(_K6>_mV)_K6=_mV;}return _K6;}function _pV(_fV,
_8K,_oV){return min(_fV,_8K,_oV);}var state=[];var _qV=0;var _rV=_sV(0);var _tV=0xDA442D24;function _sV(_uV){var _qi=_uV;for(var i=0;i<16;i++){_qi=(((_qi*214013+2531011)>>16)&0x7fffffff)|0;state[i]=~~_qi;}_qV=0;_rV=_uV;return _rV;}function _vV(_wV){if(_wV)_tV=0xDA442D20;else _tV=0xDA442D24;}function _xV(){var _G4,_F4,c,_tm;_G4=state[_qV];c=state[(_qV+13)&15];_F4=_G4^c^(_G4<<16)^(c<<15);c=state[(_qV+9)&15];c^=(c>>11);_G4=state[_qV]=_F4^c;_tm=_G4^((_G4<<5)&_tV);_qV=(_qV+15)&15;_G4=state[_qV];state[_qV]=_G4^_F4^_tm^(_G4<<2)^(_F4<<18)^(c<<28);
return((state[_qV]&0x7fffffff)/2147483647.0);}function random(_Pc){var _D4=_xV();return _D4*yyGetReal(_Pc);}function irandom(_Pc){_Pc=yyGetInt32(_Pc);var sign=_Pc<0?-1:1;var _D4=_xV()*(_Pc+sign);_xV();return ~~_D4;}function random_range(_yV,_4q){_yV=yyGetReal(_yV);_4q=yyGetReal(_4q);if(_yV==_4q){return _yV;}var _zV,_AV;if(_yV>_4q){_zV=_4q;_AV=_yV;}else {_zV=_yV;_AV=_4q;}var _BV=_xV();var result=_zV+(_BV*(_AV-_zV));_xV();return result;}function random_set_seed(__3){_sV(yyGetInt32(__3));}function randomize(){var _tm=new Date();
var _Y6=_tm.getMilliseconds();_Y6=(_Y6&0xffffffff)^((_Y6>>16)&0xffff)^((_Y6<<16)&0xffff0000);return _sV(_Y6);}var randomise=randomize;function irandom_range(_yV,_4q){_yV=yyGetInt32(_yV);_4q=yyGetInt32(_4q);var _zV,_AV;if(_yV>_4q){_zV=_4q;_AV=_yV;}else {_zV=_yV;_AV=_4q;}var _L6=_zV|0;var _N6=_AV|0;var result=_L6+~~random(_N6-_L6+1);return result;}function random_get_seed(){return _rV;}function choose(){var _yk=arguments;var _zk=arguments.length;if(_zk==0)return 0;var index=Math.floor(random(_zk));return _yk[index];
}function sign(_Q5){_Q5=yyGetReal(_Q5);if(_Q5==0)return 0;if(_Q5<0)return -1;return 1;}function ceil(_Q5){return Math.ceil(yyGetReal(_Q5));}function frac(_Q5){_Q5=yyGetReal(_Q5);return _Q5-~~_Q5;}function sqrt(_Q5){_Q5=yyGetReal(_Q5);if(_Q5>=0)return Math.sqrt(_Q5);else _55("Cannot apply sqrt to negative number.");}function sqr(_Q5){_Q5=yyGetReal(_Q5);return _Q5*_Q5;}function power(_Q5,_wN){return Math.pow(yyGetReal(_Q5),yyGetReal(_wN));}function exp(_Q5){return Math.exp(yyGetReal(_Q5));}function ln(_Q5){return Math.log(yyGetReal(_Q5));
}function log2(_Q5){return Math.log(yyGetReal(_Q5))/Math.LN2;}function log10(_Q5){return Math.log(yyGetReal(_Q5))/Math.LN10;}function logn(_wN,_Q5){return Math.log(yyGetReal(_Q5))/Math.log(yyGetReal(_wN));}function arcsin(__3){var _re=yyGetReal(__3);if(_CV(_re,-1.0)){_re=-1.0;}else if(_CV(_re,1.0)){_re=1.0;}if(_re<-1.0||_re>1.0){_55("Value "+_re+" is not within valid range [-1.0, 1.0]: arcsin()");}return Math.asin(_re);}function darcsin(_Q5){return arcsin(_Q5)*57.2957795;}function arccos(__3){var _re=yyGetReal(__3);
if(_CV(_re,-1.0)){_re=-1.0;}else if(_CV(_re,1.0)){_re=1.0;}if(_re<-1.0||_re>1.0){_55("Value "+_re+" is not within valid range [-1.0, 1.0]: arccos()");}return Math.acos(_re);}function darccos(_Q5){return arccos(_Q5)*57.2957795;}function arctan(__3){return Math.atan(yyGetReal(__3));}function darctan(_Q5){return Math.atan(yyGetReal(_Q5))*57.2957795;}var arctan2=Math.atan2;function darctan2(_R5,_Q5){return Math.atan2(yyGetReal(_R5),yyGetReal(_Q5))*57.2957795;}function degtorad(_Q5){return yyGetReal(_Q5)*0.0174532925;
}function radtodeg(_Q5){return yyGetReal(_Q5)*57.2957795;}function mean(){var _yk=mean.arguments;var _zk=mean.arguments.length;if(_zk==0)return 0;var _K6=yyGetReal(_yk[0]);for(var i=1;i<_zk;i++){_K6+=yyGetReal(_yk[i]);}return(_K6/_zk);}function median(){var _yk=median.arguments;var _zk=median.arguments.length;if(_zk==0)return 0;var _z6=[];for(var i=0;i<_zk;i++){_z6[i]=yyGetReal(_yk[i]);}_z6.sort(function(_G4,_F4){return _G4-_F4;});return _z6[~~(_zk/2)];}function dot_product(_b7,_c7,_D6,_E6){return(yyGetReal(_b7)*yyGetReal(_D6)+yyGetReal(_c7)*yyGetReal(_E6));
}function dot_product_3d(_b7,_c7,_kV,_D6,_E6,_lV){return(yyGetReal(_b7)*yyGetReal(_D6)+yyGetReal(_c7)*yyGetReal(_E6)+yyGetReal(_kV)*yyGetReal(_lV));}function math_set_epsilon(_DV){var _n5=yyGetReal(_DV);if((_n5>=0)&&(_n5<1)){if(_n5==0)_n5=0.00000000001;g_GMLMathEpsilon=_n5;}}function math_get_epsilon(){return g_GMLMathEpsilon;}function dot_product_normalised(_b7,_c7,_D6,_E6){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);var _EV=Math.sqrt(_b7*_b7+_c7*_c7);var _FV=Math.sqrt(_D6*_D6+_E6*_E6);
return(_b7*_D6+_c7*_E6)/(_EV*_FV);}var dot_product_normalized=dot_product_normalised;function dot_product_3d_normalised(_b7,_c7,_kV,_D6,_E6,_lV){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_kV=yyGetReal(_kV);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_lV=yyGetReal(_lV);var _EV=Math.sqrt(_b7*_b7+_c7*_c7+_kV*_kV);var _FV=Math.sqrt(_D6*_D6+_E6*_E6+_lV*_lV);return(_b7*_D6+_c7*_E6+_kV*_lV)/(_EV*_FV);}var dot_product_3d_normalized=dot_product_3d_normalised;function is_real(_Q5){if(typeof(_Q5)=="number")return 1;else return 0;
}function is_numeric(_Q5){var _P4=0;switch(typeof(_Q5)){case "number":case "boolean":_P4=1;break;case "object":if(_Q5 instanceof Long){_P4=1;}break;}return _P4;}function is_bool(_Q5){if(typeof(_Q5)=="boolean")return 1;else return 0;}function is_undefined(_Q5){if(typeof(_Q5)=="undefined")return 1;else return 0;}function is_int32(_Q5){if((typeof(_Q5)==="number")&&(~~_Q5===_Q5))return 1;else return 0;}function is_int64(_Q5){if(_Q5 instanceof Long)return 1;else return 0;}function is_ptr(_Q5){return(typeof(_Q5)=="object"&&(_Q5 instanceof ArrayBuffer))?1:0;
}function is_vec3(_Q5){return 0;}function is_vec4(_Q5){return 0;}function is_matrix(_Q5){return 0;}function is_struct(_Q5){return((typeof _Q5==="object")&&(_Q5.__yyIsGMLObject))?1:0;}function is_nan(_Q5){return Number.isNaN(yyGetReal(_Q5));}function is_infinity(_Q5){_Q5=yyGetReal(_Q5);return !Number.isFinite(_Q5)&&!Number.isNaN(_Q5);}function static_get(_qi){var _P4=undefined;switch(typeof(_qi)){case "number":var _GV=yyGetInt32(_qi);if(_GV>=100000){_HV=JSON_game.Scripts[_GV-100000];_P4=_HV.prototype;}break;case "function":_P4=_qi.prototype;
break;case "object":_P4=Object._IV(_qi);break;}return _P4;}function static_set(_tm,_qi){if((typeof(_qi)=="object")&&(typeof(_tm)=="object")){Object.setPrototypeOf(_tm,_qi);}}function YYIsInstanceof(_Q5,_Pc){var _P4=false;if((typeof(_Q5)=="object")&&(_Q5.__yyIsGMLObject===true)){var _HV=undefined;var _GV=yyGetInt32(_Pc);if(_GV>=100000)_HV=JSON_game.Scripts[_GV-100000];if(_HV){var c=Object._IV(_Q5);var _JV=_HV.prototype;while(c&&!_P4){if(c===_JV){_P4=true;break;}c=Object._IV(c);}}}return _P4;}function YYInstanceof(_Q5){
var type=typeof(_Q5);var _P4=undefined;switch(type){case "function":_P4="function";break;case "object":if(_Q5 instanceof Function)_P4="function";else if(_Q5.__type==="[instance]"){_P4="instance";}else if(_Q5.__type==="[weakref]"){_P4="weakref";}else if(_Q5.__type!==undefined){_P4=_Q5.__type;if(_P4.startsWith("gml_Script_")){_P4=_P4.substring(11);}if(_P4.startsWith("___struct___")){_P4="struct";}}break;default :break;}return _P4;}function YYTypeof(_Q5){var _P4=typeof(_Q5);switch(_P4){case "boolean":return "bool";
case "function":return "method";case "object":return(_Q5 instanceof Array)?"array":(_Q5 instanceof ArrayBuffer)?"ptr":(_Q5 instanceof Long)?"int64":"struct";default :return _P4;}}function int64(_Q5){if(_Q5==undefined){_55("int64() argument is undefined");}else if(_Q5==null){_55("int64() argument is unset");}else if(_Q5 instanceof Array){_55("int64() argument is array");}if((_Q5) instanceof Long){return _Q5;}switch(typeof(_Q5)){case "boolean":return Long._KV(_Q5?1:0,false);break;default :return Long._KV(_Q5,false);break;
}}function ptr(_Q5){if(_Q5 instanceof ArrayBuffer)return _Q5;if(_Q5 instanceof Array)_55("ptr argument is an array");if(_Q5===undefined)_55("ptr argument is undefined");var _P4=new ArrayBuffer(8);var _hz=new DataView(_P4);if(typeof _Q5!=="string"){_hz.setFloat64(0,yyGetReal(_Q5));}return _P4;}function is_string(_Q5){if(typeof(_Q5)=="string")return 1;else return 0;}function is_array(_Q5){if(_Q5 instanceof Array)return 1;else return 0;}function array_length_1d(_Q5){var _P4=undefined;if(_Q5 instanceof Array){_P4=_Q5.length;
}return _P4;}var array_length=array_length_1d;function array_length_2d(_Q5,_DV){_DV=yyGetInt32(_DV);var _P4=0;if((_Q5 instanceof Array)&&(_DV>=0)&&(_DV<_Q5.length)){var _MC=_Q5[_DV];if(_MC instanceof Array){_P4=_MC.length;}}return _P4;}function array_height_2d(_Q5){var _P4=0;if((_Q5 instanceof Array)){_P4=_Q5.length;}return _P4;}function clamp(_Ln,_LV,_IG){_Ln=yyGetReal(_Ln);_LV=yyGetReal(_LV);_IG=yyGetReal(_IG);if(_Ln<_LV)_Ln=_LV;if(_Ln>_IG)_Ln=_IG;return _Ln;}function lerp(_MV,_NV,_2D){_MV=yyGetReal(_MV);_NV=yyGetReal(_NV);
return _MV+((_NV-_MV)*_2D);}function angle_difference(_rj,_4l){_rj=yyGetReal(_rj);_4l=yyGetReal(_4l);return((((_rj-_4l)%360.0)+540.0)%360.0)-180.0;}function _CV(_MV,_NV){var _SC=_MV-_NV;return abs(_SC)<=g_GMLMathEpsilon;}var _OV=new RegExp('^'+'[-+]?'+'(?:[0-9]{0,30}\\.)?'+'[0-9]{1,30}'+'(?:[Ee][-+]?[1-2]?[0-9])?');function yyCompareVal(_MV,_NV,_jj,_PV){var _P4=undefined;_PV=(_PV==undefined)?true:_PV;if((typeof _MV=="number")&&(typeof _NV=="number")){var _SC=_MV-_NV;if(Number.isNaN(_SC)){_SC=(_MV==_NV)?0:_SC;
}_P4=abs(_SC)<=_jj?0:(_SC<0.0)?-1:1;}else if(typeof _MV=="string"&&typeof _NV=="string"){_P4=(_MV===_NV)?0:((_MV>_NV)?1:-1);}else if(_MV===undefined&&_NV===undefined){_P4=0;}else if(_MV instanceof ArrayBuffer&&_NV instanceof ArrayBuffer){_P4=_MV==_NV?0:1;}else if(_MV instanceof Array&&_NV instanceof Array){_P4=_MV.length-_NV.length;if(_P4==0){_P4=_MV===_NV?0:1;}}else if(_MV instanceof Long&&_NV instanceof Long){_P4=(_MV.sub(_NV))._WF();}else if((_MV===undefined&&_NV instanceof Array)||(_NV===undefined&&_MV instanceof Array)){
_P4=1;}else if(typeof _MV=="object"&&typeof _NV=="object"&&_MV.__yyIsGMLObject&&_NV.__yyIsGMLObject){_P4=_MV==_NV?0:1;}else if(typeof _MV=="object"&&typeof _NV=="object"){_P4=_MV==_NV?0:1;}else if(typeof _MV=="function"&&typeof _NV=="function"){_P4=_MV==_NV?0:1;}if(_P4===undefined){if(typeof _MV=="boolean"){_MV=_MV?1:0;}else if(typeof _MV=="string"){_MV=_MV.trim();var match=_MV.match(_OV);if(match!=null){_MV=Number(match);if(Number.isNaN(_MV))_P4=1;}else _P4=Number.NaN;}else if(_MV instanceof Long){_MV=_MV._WF();
}else if(_MV instanceof Array){_P4=1;if(_PV)_55("illegal array use")}else if(_MV===undefined){_P4=-2;}if(typeof _NV=="boolean"){_NV=_NV?1:0;}else if(typeof _NV=="string"){_NV=_NV.trim();var match=_NV.match(_OV);if(match!=null){_NV=Number(match);if(Number.isNaN(_NV))_P4=1;}else _P4=Number.NaN;}else if(_NV instanceof Long){_NV=_NV._WF();}else if(_NV instanceof Array){if(_PV)_55("illegal array use")}else if(_NV===undefined){_P4=-2;}if(_P4===undefined){if((typeof _MV=="number")&&(typeof _NV=="number")){var _SC=_MV-_NV;
if(Number.isNaN(_SC)){_SC=(_MV==_NV)?0:_SC;}_P4=abs(_SC)<=_jj?0:(_SC<0.0)?-1:1;}else {_P4=1;if(typeof _MV=="number"){_P4=-1;}}}}return _P4;}function yyfplus(_MV,_NV){if(_MV instanceof Long&&_NV instanceof Long){return _MV.add(_NV);}else if(_MV instanceof Long){_MV=_MV._WF();}else if(_NV instanceof Long){_NV=_NV._WF();}if((typeof _MV==="string")&&(typeof _NV==="string"))return _MV+_NV;if((typeof _MV==="string")&&(typeof _NV!=="string"))_55("unable to add string to "+typeof _NV);return yyGetReal(_MV)+yyGetReal(_NV);}function yyfminus(_MV,
_NV){if(_MV instanceof Long&&_NV instanceof Long){return _MV.sub(_NV);}else if(_MV instanceof Long){_MV=_MV._WF();}else if(_NV instanceof Long){_NV=_NV._WF();}return yyGetReal(_MV)-yyGetReal(_NV);}function yyftime(_MV,_NV){if(_MV instanceof Long&&_NV instanceof Long){return _MV._QV(_NV);}else if(_MV instanceof Long){_MV=_MV._WF();}else if(_NV instanceof Long){_NV=_NV._WF();}if((typeof _MV==="number")&&(typeof _NV==="string")){var _P4="";for(var _I6=yyGetReal(_MV)-1;_I6>=0;--_I6){_P4+=_NV;}return _P4;}else return yyGetReal(_MV)*yyGetReal(_NV);
}function yyfdivide(_MV,_NV){if((typeof _MV==="number")&&(typeof _NV==="number")){return _MV/_NV;}else if(_MV instanceof Long&&_NV instanceof Long){return _MV._gE(_NV);}if(_MV instanceof Long){_MV=_MV._WF();}if(_NV instanceof Long){_NV=_NV._WF();}var _jb=yyGetReal(_MV);var _p5=yyGetReal(_NV);var _P4=_jb/_p5;return _P4;}function yyfmod(_MV,_NV){if((_MV instanceof Long)&&(_NV instanceof Long)){return _MV._RV(_NV);}if(_NV instanceof Long){_NV=_NV._WF();}if(_MV instanceof Long){_MV=_MV._WF();}var _p5=yyGetReal(_NV);if(_p5==0){_55("unable to mod with zero");
}return yyGetReal(_MV)%_p5;}function yyfdiv(_MV,_NV){if(_MV instanceof Long){return _MV._gE(_NV);}else if(_NV instanceof Long){_NV=_NV._WF();}if(_NV==0)_55("divide by zero");var _jb=yyGetReal(_MV);var _p5=yyGetReal(_NV);var _SV=Number.isNaN(_jb);var _TV=Number.isNaN(_p5);if(_SV||_TV){if(_SV&&_TV)return 1;if(_SV){if(Number.isFinite(_p5))return _jb;else return 1;}if(_TV){if(Number.isFinite(_jb))return _p5;else return 1;}}if(_jb===_p5)return 1;return ~~(~~_jb/~~_p5);}function yyfnotequal(_MV,_NV){var _P4=yyCompareVal(_MV,
_NV,g_GMLMathEpsilon,false);return _P4!=0;}function yyfequal(_MV,_NV){var _P4=yyCompareVal(_MV,_NV,g_GMLMathEpsilon,false);return _P4==0;}function yyfless(_MV,_NV){var _P4=yyCompareVal(_MV,_NV,g_GMLMathEpsilon);if(Number.isNaN(_P4)){_55("unable to compare "+string(_MV)+" to "+string(_NV));}return _P4==-2?false:_P4<0;}function yyflessequal(_MV,_NV){var _P4=yyCompareVal(_MV,_NV,g_GMLMathEpsilon);if(Number.isNaN(_P4)){_55("unable to compare "+string(_MV)+" to "+string(_NV));}return _P4==-2?false:_P4<=0;}function yyfgreater(_MV,
_NV){var _P4=yyCompareVal(_MV,_NV,g_GMLMathEpsilon);if(Number.isNaN(_P4)){_55("unable to compare "+string(_MV)+" to "+string(_NV));}return _P4==-2?false:_P4>0;}function yyfgreaterequal(_MV,_NV){var _P4=yyCompareVal(_MV,_NV,g_GMLMathEpsilon);if(Number.isNaN(_P4)){_55("unable to compare "+string(_MV)+" to "+string(_NV));}return _P4==-2?false:_P4>=0;}function yyfand(_MV,_NV){return yyGetBool(_MV)&&yyGetBool(_NV);}function yyfor(_MV,_NV){return yyGetBool(_MV)||yyGetBool(_NV);}function yyfxor(_MV,_NV){_NV=yyGetBool(_NV);
return yyGetBool(_MV)?!_NV:_NV;}function yyfbitand(_MV,_NV){if((typeof _MV==="number")&&(typeof _NV==="number"))return _MV&_NV;else if((_MV instanceof Long)&&(_NV instanceof Long)){return _MV._UV(_NV);}else if(_MV instanceof Long){return _MV._UV(yyGetInt64(_NV));}else if(_NV instanceof Long){return _NV._UV(yyGetInt64(_MV));}else if(typeof _MV=="number")return _MV&yyGetInt32(_NV);else if(typeof _NV=="number")return yyGetInt32(_MV)&_NV;return yyGetInt32(_MV)&yyGetInt32(_NV);}function yyfbitor(_MV,_NV){if((typeof _MV=="number")&&(typeof _NV=="number"))return _MV|_NV;
else if((_MV instanceof Long)&&(_NV instanceof Long)){return _MV._VV(_NV);}else if(_MV instanceof Long){return _MV._VV(yyGetInt64(_NV));}else if(_NV instanceof Long){return _NV._VV(yyGetInt64(_MV));}else if(typeof _MV=="number")return _MV|yyGetInt32(_NV);else if(typeof _NV=="number")return yyGetInt32(_MV)|_NV;return yyGetInt32(_MV)|yyGetInt32(_NV);}function yyfbitxor(_MV,_NV){if((typeof _MV=="number")&&(typeof _NV=="number"))return _MV^_NV;else if((_MV instanceof Long)&&(_NV instanceof Long)){return _MV._WV(_NV);}else if(_MV instanceof Long){
return _MV._WV(yyGetInt64(_NV));}else if(_NV instanceof Long){return _NV._WV(yyGetInt64(_MV));}else if(typeof _MV=="number")return _MV^yyGetInt32(_NV);else if(typeof _NV=="number")return yyGetInt32(_MV)^_NV;return yyGetInt32(_MV)^yyGetInt32(_NV);}function yyfbitshiftleft(_MV,_wO){var shift=yyGetInt32(_wO);var _XV=(_MV<0);if(_XV)_MV=-_MV;if(typeof _MV=="number"){_MV=new Long(_MV);}else if(_MV instanceof Long){}else {_MV=yyGetInt64(_MV);}var _P4=0;if(shift>=64)_P4=0;else _P4=_MV._YV(shift);if(_XV)_P4=-_P4;return _P4;}function yyfbitshiftright(_MV,
_wO){var shift=yyGetInt32(_wO);var _XV=(_MV<0);if(_XV)_MV=-_MV;if(typeof _MV=="number"){_MV=new Long(_MV);}else if(_MV instanceof Long){}else {_MV=yyGetInt64(_MV);}var _P4=0;if(shift>=64)_P4=0;else _P4=_MV._ZV(shift);if(_XV)_P4=-_P4;return _P4;}function extension_get_option_value(__V,_0W){try{if(_xD._1W!==undefined){if(_xD._1W[__V]!==undefined){return _xD._1W[__V][_0W];}}}catch(_FD){show_debug_message("caught unhandled exception "+_FD.message);}return undefined;}function extension_get_option_count(__V){try{if(_xD._1W!==undefined){
if(_xD._1W[__V]!==undefined){return Object._Yg(_xD._1W[__V]).length;}}}catch(_FD){show_debug_message("caught unhandled exception "+_FD.message);}return 0;}function extension_get_option_names(__V){try{if(_xD._1W!==undefined){if(_xD._1W[__V]!==undefined){return Object._Yg(_xD._1W[__V]);}}}catch(_FD){show_debug_message("caught unhandled exception "+_FD.message);}return [];}function extension_get_options(__V){try{if(_xD._1W!==undefined){if(_xD._1W[__V]!==undefined){var data=_xD._1W[__V];var _2W=new _LG();Object._Yg(data).forEach(_pd=>{
variable_struct_set(_2W,_pd,data[_pd])});return _2W;}}}catch(_FD){show_debug_message("caught unhandled exception "+_FD.message);}return {};}function gc_collect(){}function gc_enable(_cz){}function gc_is_enabled(){return true;}function gc_get_stats(){var _3W=new Object();_3W.__yyIsGMLObject=true;Object.defineProperties(_3W,{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 _pK=[];return _pK;}},});return _3W;}var _4W=30,_5W=10,_6W=3,_7W=true;function _8W(_9W,_aW){var _kn=0.0;while(_9W<=0.0){_9W=_9W+360;}while(_9W>=360.0){_9W=_9W-360;}while(_aW<0.0){_aW=_aW+360;}while(_aW>=360.){
_aW=_aW-360;}_kn=_aW-_9W;if(_kn<0){_kn=-_kn;}if(_kn>180){_kn=360-_kn;}return _kn;}function _bW(_tt,_Q5,_R5,_kU,_pq){if(_kU==_cO){if(_pq){return place_empty(_tt,_Q5,_R5);}else {return place_free(_tt,_Q5,_R5);}}else {return(instance_place(_tt,_Q5,_R5,_kU)==_wt);}}function _cW(_tt,_Q5,_R5,_oq,_kU,_pq){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_oq=yyGetReal(_oq);_pq=yyGetBool(_pq);var _kn=false;var _Jt=0.0;var _dW=0.0;var _eW=0.0;if((_tt.x==_Q5)&&(_tt.y==_R5))return true;_Jt=sqrt(_Kz(_tt.x-_Q5)+_Kz(_tt.y-_R5));if(_Jt<=_oq){
_dW=_Q5;_eW=_R5;_kn=true;}else {_dW=_tt.x+_oq*(_Q5-_tt.x)/_Jt;_eW=_tt.y+_oq*(_R5-_tt.y)/_Jt;_kn=false;}if(!_bW(_tt,_dW,_eW,_kU,_pq)){return _kn;}_tt.direction=point_direction(_tt.x,_tt.y,_dW,_eW);_tt._Ed(_dW,_eW);return _kn;}function mp_linear_step(_tt,_Q5,_R5,_oq,_pq){return _cW(_tt,_Q5,_R5,_oq,_cO,_pq);}function mp_linear_step_object(_tt,_Q5,_R5,_oq,_Sk){return _cW(_tt,_Q5,_R5,_oq,_Sk,true);}function _fW(_im,_tt,_lm,_kU,_pq){var _kn=false;var _gW=0.0;var _hW=0.0;if(_8W(_im,_tt.direction)>_4W){return _kn;}
_gW=_tt.x+_lm*_6W*cos(__6*_im/180);_hW=_tt.y-_lm*_6W*sin(__6*_im/180);if(true!=_bW(_tt,_gW,_hW,_kU,_pq)){return _kn;}_gW=_tt.x+_lm*cos(__6*_im/180);_hW=_tt.y-_lm*sin(__6*_im/180);if(true!=_bW(_tt,_gW,_hW,_kU,_pq)){return _kn;}_tt.direction=_im;_tt._Ed(_gW,_hW);_kn=true;return _kn;}function _iW(_tt,_Q5,_R5,_oq,_GN,_pq){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_oq=yyGetReal(_oq);_GN=yyGetInt32(_GN);_pq=yyGetBool(_pq);var _kn=false;var _Jt=0.0;var _jW=0.0;var _kW=0.0;if((_tt.x==_Q5)&&(_tt.y==_R5)){_kn=true;return _kn;
}_Jt=sqrt(_Kz(_tt.x-_Q5)+_Kz(_tt.y-_R5));if(_Jt<=_oq){if(_bW(_tt,_Q5,_R5,_GN,_pq)){_tt.direction=_jV(_tt.x,_tt.y,_Q5,_R5);_tt._Ed(_Q5,_R5);}_kn=true;return _kn;}_jW=_jV(_tt.x,_tt.y,_Q5,_R5);_kW=0;_kn=false;while(_kW<180){if(_fW(_jW-_kW,_tt,_oq,_GN,_pq)){return _kn;}if(_fW(_jW+_kW,_tt,_oq,_GN,_pq)){return _kn;}_kW=_kW+_5W;}if(_7W){_tt.direction=_tt.direction+_4W;}return _kn;}function mp_potential_step(_tt,_Q5,_R5,_oq,_pq){return _iW(_tt,_Q5,_R5,_oq,_cO,_pq);}function mp_potential_step_object(_tt,_Q5,_R5,
_oq,_Sk){return _iW(_tt,_Q5,_R5,_oq,_Sk,true);}function mp_potential_settings(_tt,_lW,_mW,_nW,_oW){_4W=_W6(1,yyGetReal(_lW));_5W=_W6(1,yyGetReal(_mW));_6W=_W6(1,yyGetReal(_nW));_7W=yyGetBool(_oW);}function _pW(_em,_Q5,_R5,_lm,_kU,_pq){var _kn=false;var _Jt=0.0;var _dW=0.0;var _eW=0.0;if((_em.x==_Q5)&&(_em.y==_R5)){return true;}_Jt=Math.sqrt(_Kz(_em.x-_Q5)+_Kz(_em.y-_R5));if(_Jt<=_lm){_dW=_Q5;_eW=_R5;_kn=true;}else {_dW=_em.x+_lm*(_Q5-_em.x)/_Jt;_eW=_em.y+_lm*(_R5-_em.y)/_Jt;_kn=false;}if(!_bW(_em,_dW,_eW,
_kU,_pq)){return _kn;}_em.direction=_jV(_em.x,_em.y,_dW,_eW);_em._Ed(_dW,_eW);return _kn;}function _qW(_tt,_gq,_rW,_sW,_oq,_kU,_pq){var _27=0.0;var _47=0.0;var _8L=0.0;var _tW=0.0;var _uW=0.0;var _kn=false;var _vW=_wW.Paths[yyGetInt32(_gq)];if(!_vW)return _kn;if(_oq<=0.0)return _kn;_27=_tt.x;_47=_tt.y;_8L=_tt.direction;_vW._Tf();_vW._xW(_yW);_vW._zW(false);_vW._AW(_27,_47,100);_kn=true;while(1){_tW=_tt.x;_uW=_tt.y;if(true==_pW(_tt,_rW,_sW,_oq,_kU,_pq)){break;}if((_tt.x==_tW)&&(_tt.y==_uW)){_kn=false;break;}
_vW._AW(_tt.x,_tt.y,100);}if(true==_kn){_vW._AW(_rW,_sW,100);}_tt._Ed(_27,_47);_tt.direction=_8L;return _kn;}function mp_linear_path(_tt,_gq,_rW,_sW,_oq,_pq){return _qW(_tt,yyGetInt32(_gq),yyGetReal(_rW),yyGetReal(_sW),yyGetReal(_oq),_cO,yyGetBool(_pq));}function mp_linear_path_object(_tt,_gq,_rW,_sW,_oq,_Sk){return _qW(_tt,yyGetInt32(_gq),yyGetReal(_rW),yyGetReal(_sW),yyGetReal(_oq),yyGetInt32(_Sk),true);}function _8W(_9W,_aW){var _kn=0.0;while(_9W<=0.0){_9W=_9W+360.0;}while(_9W>=360.0){_9W=_9W-360.0;
}while(_aW<0.0){_aW=_aW+360.0;}while(_aW>=360.0){_aW=_aW-360.0;}_kn=_aW-_9W;if(_kn<0.0){_kn=-_kn;}if(_kn>180.0){_kn=360.0-_kn;}return _kn;}function _fW(_im,_em,_lm,_kU,_pq){var _gW=0.0;var _hW=0.0;if(_8W(_im,_em.direction)>_4W){return false;}_gW=_em.x+_lm*_6W*Math.cos(Math.PI*_im/180.0);_hW=_em.y-_lm*_6W*Math.sin(Math.PI*_im/180.0);if(!_bW(_em,_gW,_hW,_kU,_pq)){return false;}_gW=_em.x+_lm*Math.cos(Math.PI*_im/180.0);_hW=_em.y-_lm*Math.sin(Math.PI*_im/180.0);if(!_bW(_em,_gW,_hW,_kU,_pq)){return false;}_em.direction=_im;
_em._Ed(_gW,_hW);return true;}function _BW(_em,_Q5,_R5,_lm,_kU,_pq){var _kn=false;var _Jt=0.0;var _jW=0.0;var _kW=0.0;if((_em.x==_Q5)&&(_em.y==_R5)){return true;}_Jt=Math.sqrt(_Kz(_em.x-_Q5)+_Kz(_em.y-_R5));if(_Jt<=_lm){if(true==_bW(_em,_Q5,_R5,_kU,_pq)){_em.direction=_jV(_em.x,_em.y,_Q5,_R5);_em._Ed(_Q5,_R5);}return true;}_jW=_jV(_em.x,_em.y,_Q5,_R5);_kW=0;_kn=false;while(_kW<180){if(_fW(_jW-_kW,_em,_lm,_kU,_pq)){return _kn;}if(_fW(_jW+_kW,_em,_lm,_kU,_pq)){return _kn;}_kW=_kW+_5W;}if(_7W){_em.direction=_em.direction+_4W;
}return _kn;}function _CW(_em,_gq,_rW,_sW,_oq,_DW,_kU,_pq){var _kn=false;var _EW=0.0;var _27=0.0;var _47=0.0;var _8L=0.0;var _vW=_wW.Paths[_gq];if(!_vW)return _kn;if(_DW<1){return _kn;}if(_oq<=0){return _kn;}_EW=Math.sqrt(_Kz(_rW-_em.x)+_Kz(_sW-_em.y))*_DW;_27=_em.x;_47=_em.y;_8L=_em.direction;_vW._Tf();_vW._xW(_yW);_vW._zW(false);_vW._AW(_27,_47,100);_kn=true;var _FW=0;var _GW=0;var _HW=0;while(1){if(true==_BW(_em,_rW,_sW,_oq,_kU,_pq))break;_vW._AW(_em.x,_em.y,100);_FW=_GW;_GW=_vW.length;if(_GW>_EW){_kn=false;
break;}if(_GW==_FW){++_HW;if(_HW>100){_kn=false;break;}}else {_HW=0;}}if(_kn){_vW._AW(_rW,_sW,100);}_em._Ed(_27,_47);_em.direction=_8L;return _kn;}function mp_potential_path(_tt,_gq,_rW,_sW,_oq,_IW,_pq){return _CW(_tt,yyGetInt32(_gq),yyGetReal(_rW),yyGetReal(_sW),yyGetReal(_oq),yyGetReal(_IW),_cO,yyGetBool(_pq));}function mp_potential_path_object(_tt,_gq,_rW,_sW,_oq,_IW,_Sk){return _CW(_tt,yyGetInt32(_gq),yyGetReal(_rW),yyGetReal(_sW),yyGetReal(_oq),yyGetReal(_IW),yyGetInt32(_Sk),true);}/*@constructor */function _JW(_us,
_vs,_KW,_LW,_MW,_NW){this._OW=_us;this._PW=_vs;this._QW=~~_KW;this._RW=~~_LW;this._SW=_MW;this._TW=_NW;this._UW=[];this._Tf();};_JW.prototype._Tf=function(){var _VW=this._QW*this._RW;for(var i=0;i<_VW;i++){this._UW[i]=0;}};_JW.prototype._WW=function(_Q5,_R5,__3){if(_Q5<0||_Q5>=this._QW)return;if(_R5<0||_R5>=this._RW)return;this._UW[(_Q5*this._RW)+_R5]=__3;};_JW.prototype._XW=function(_Q5,_R5){if(_Q5<0||_Q5>=this._QW)return -1;if(_R5<0||_R5>=this._RW)return -1;return this._UW[(_Q5*this._RW)+_R5];};_JW.prototype._YW=function(_b7,
_c7,_D6,_E6,__3){var _ZK=~~((_X6(_b7,_D6)-this._OW)/this._SW);if(_ZK<0)_ZK=0;var __K=~~((_W6(_b7,_D6)-this._OW)/this._SW);if(__K>=this._QW)__K=this._QW-1;var _0L=~~((_X6(_c7,_E6)-this._PW)/this._TW);if(_0L<0)_0L=0;var _1L=~~((_W6(_c7,_E6)-this._PW)/this._TW);if(_1L>=this._RW)_1L=this._RW-1;for(var i=_ZK;i<=__K;i++){var index=i*this._RW;for(var _17=_0L;_17<=_1L;_17++){this._UW[index+_17]=__3;}}};function mp_grid_create(_us,_vs,_ZW,__W,_MW,_NW){var _V6=new _JW(yyGetInt32(_us),yyGetInt32(_vs),yyGetInt32(_ZW),
yyGetInt32(__W),yyGetInt32(_MW),yyGetInt32(_NW));return _0X._Df(_V6);}function mp_grid_destroy(_gg){_0X._uj(yyGetInt32(_gg));}function mp_grid_clear_all(_gg){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){_1X._Tf();return;}_55("Error: invalid mp_grid ID (mp_grid_clear_all)");}function mp_grid_clear_cell(_gg,_oj,_Pc){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){_1X._WW(yyGetInt32(_oj),yyGetInt32(_Pc),0);return;}_55("Error: invalid mp_grid ID (mp_grid_clear_cell)");}function mp_grid_clear_rectangle(_gg,_b7,_c7,_D6,
_E6){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){_1X._YW(yyGetInt32(_b7),yyGetInt32(_c7),yyGetInt32(_D6),yyGetInt32(_E6),0);return;}_55("Error: invalid mp_grid ID (mp_grid_clear_rectangle)");}function mp_grid_add_cell(_gg,_Q5,_R5){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){_1X._WW(yyGetInt32(_Q5),yyGetInt32(_R5),-1);return;}_55("Error: invalid mp_grid ID (mp_grid_add_cell)");}function mp_grid_get_cell(_gg,_Q5,_R5){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){return _1X._XW(yyGetInt32(_Q5),yyGetInt32(_R5));}return -1;
}function mp_grid_add_rectangle(_gg,_b7,_c7,_D6,_E6){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){_1X._YW(yyGetInt32(_b7),yyGetInt32(_c7),yyGetInt32(_D6),yyGetInt32(_E6),-1);return;}_55("Error: invalid mp_grid ID (mp_grid_add_rectangle)");}function mp_grid_add_instances(_em,_gg,_Sk,_jj){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){var _2X=0.0001;if(_3X){_2X=0.0;}var _4X=GetWithArray(yyGetInt32(_Sk));for(var _5X=0;_5X<_4X.length;_5X++){var _Gt=_4X[_5X];if(_Gt.marked||!_Gt.active)continue;if(_Gt._KN)_Gt._LN();var _ZK=~~((_Gt._MN.left+_2X-_1X._OW)/_1X._SW);
if(_ZK<0)_ZK=0;var __K=~~((_Gt._MN.right-_2X-_1X._OW)/_1X._SW);if(__K>=_1X._QW)__K=_1X._QW-1;var _0L=~~((_Gt._MN.top+_2X-_1X._PW)/_1X._TW);if(_0L<0)_0L=0;var _1L=~~((_Gt._MN.bottom-_2X-_1X._PW)/_1X._TW);if(_1L>=_1X._RW)_1L=_1X._RW-1;for(var i=_ZK;i<=__K;i++){for(var _17=_0L;_17<=_1L;_17++){if(!yyGetBool(_jj)){_1X._UW[i*_1X._RW+_17]=-1;continue;}if(_1X._UW[i*_1X._RW+_17]<0)continue;if(_Gt._Mt(_1X._OW+i*_1X._SW,_1X._PW+_17*_1X._TW,_1X._OW+(i+1)*_1X._SW-1,_1X._PW+(_17+1)*_1X._TW-1,true)){_1X._UW[i*_1X._RW+_17]=-1;
}}}}return;}_55("Error: invalid mp_grid ID (mp_grid_add_instances)");}var mp_grid_draw=_6X;function _6X(_gg){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){_4a.globalAlpha=_Kc;var _Iu=_9s(0xff0000,1.0);var _Ju=_9s(0x00ff00,1.0);for(var x=0;x<_1X._QW;x++){for(var y=0;y<_1X._RW;y++){var _L4=_Ju;if(_1X._UW[x*_1X._RW+y]<0){_L4=_Iu;}_4a.fillStyle=_L4;_4a._uK((_1X._OW+x*_1X._SW),(_1X._PW+y*_1X._TW),_1X._SW,_1X._TW);}}return;}_55("Error: invalid mp_grid ID (mp_grid_draw)");}function mp_grid_path(_tt,_gg,_gq,_7X,_8X,_9X,
_aX,_bX){_7X=yyGetInt32(_7X);_8X=yyGetInt32(_8X);_9X=yyGetInt32(_9X);_aX=yyGetInt32(_aX);_bX=yyGetBool(_bX);var _cX,_dX,_eX,_fX,i,_17,_re,_tm,_27,_47,_gX,_hX,_iX,_jX,_kX,_lX,_mX,_nX,_oX;var _kn=false;var _1X=_0X._26(yyGetInt32(_gg));var _vW=_wW.Paths[yyGetInt32(_gq)];if(!_vW||!_1X){return _kn;}if((_7X<_1X._OW)||(_7X>=(_1X._OW+_1X._QW*_1X._SW))){return _kn;}if((_8X<_1X._PW)||(_8X>=_1X._PW+_1X._RW*_1X._TW)){return _kn;}_cX=~~((_7X-_1X._OW)/_1X._SW);_dX=~~((_8X-_1X._PW)/_1X._TW);if(_1X._UW[_cX*_1X._RW+_dX]<0){
return _kn;}if((_9X<_1X._OW)||(_9X>=_1X._OW+_1X._QW*_1X._SW)){return _kn;}if((_aX<_1X._PW)||(_aX>=_1X._PW+_1X._RW*_1X._TW)){return _kn;}_eX=~~((_9X-_1X._OW)/_1X._SW);_fX=~~((_aX-_1X._PW)/_1X._TW);if(_1X._UW[_eX*_1X._RW+_fX]<0){return _kn;}_1X._UW[_cX*_1X._RW+_dX]=1;_oX=new _pX();_oX._qX((_cX*_1X._RW+_dX));while(_oX._rX(1)){_re=_oX._sX();_27=~~(_re/_1X._RW);_47=~~(_re%_1X._RW);if((_27==_eX)&&(_47==_fX)){_kn=true;break;}_tm=_1X._UW[_re]+1;_gX=(_27>0)&&(_47<_1X._RW-1)&&(_1X._UW[(_27-1)*_1X._RW+(_47+1)]==0);
_hX=(_47<_1X._RW-1)&&(_1X._UW[(_27)*_1X._RW+(_47+1)]==0);_iX=(_27<_1X._QW-1)&&(_47<_1X._RW-1)&&(_1X._UW[(_27+1)*_1X._RW+(_47+1)]==0);_jX=(_27>0)&&(_1X._UW[(_27-1)*_1X._RW+(_47)]==0);_kX=(_27<_1X._QW-1)&&(_1X._UW[(_27+1)*_1X._RW+(_47)]==0);_lX=(_27>0)&&(_47>0)&&(_1X._UW[(_27-1)*_1X._RW+(_47-1)]==0);_mX=(_47>0)&&(_1X._UW[(_27)*_1X._RW+(_47-1)]==0);_nX=(_27<_1X._QW-1)&&(_47>0)&&(_1X._UW[(_27+1)*_1X._RW+(_47-1)]==0);if(_jX){_1X._UW[(_27-1)*_1X._RW+_47]=_tm;_oX._qX(~~((_27-1)*_1X._RW+_47));}if(_kX){_1X._UW[(_27+1)*_1X._RW+_47]=_tm;
_oX._qX(~~((_27+1)*_1X._RW+_47));}if(_mX){_1X._UW[_27*_1X._RW+_47-1]=_tm;_oX._qX(~~(_27*_1X._RW+_47-1));}if(_hX){_1X._UW[_27*_1X._RW+_47+1]=_tm;_oX._qX(~~(_27*_1X._RW+_47+1));}if(_bX&&_gX&&_hX&&_jX){_1X._UW[(_27-1)*_1X._RW+_47+1]=_tm;_oX._qX(~~((_27-1)*_1X._RW+_47+1));}if(_bX&&_lX&&_mX&&_jX){_1X._UW[(_27-1)*_1X._RW+_47-1]=_tm;_oX._qX(~~((_27-1)*_1X._RW+_47-1));}if(_bX&&_iX&&_hX&&_kX){_1X._UW[(_27+1)*_1X._RW+_47+1]=_tm;_oX._qX(~~((_27+1)*_1X._RW+_47+1));}if(_bX&&_nX&&_mX&&_kX){_1X._UW[(_27+1)*_1X._RW+_47-1]=_tm;
_oX._qX(~~((_27+1)*_1X._RW+_47-1));}}_oX=undefined;if(_kn){_vW._Tf();_vW._tX=_yW;_vW.closed=false;_vW._AW(_9X,_aX,100);_27=_eX;_47=_fX;while((_27!=_cX)||(_47!=_dX)){_re=_1X._UW[_27*_1X._RW+_47];_gX=(_27>0)&&(_47<_1X._RW-1)&&(_1X._UW[(_27-1)*_1X._RW+(_47+1)]==_re-1);_hX=(_47<_1X._RW-1)&&(_1X._UW[(_27)*_1X._RW+(_47+1)]==_re-1);_iX=(_27<_1X._QW-1)&&(_47<_1X._RW-1)&&(_1X._UW[(_27+1)*_1X._RW+(_47+1)]==_re-1);_jX=(_27>0)&&(_1X._UW[(_27-1)*_1X._RW+(_47)]==_re-1);_kX=(_27<_1X._QW-1)&&(_1X._UW[(_27+1)*_1X._RW+(_47)]==_re-1);
_lX=(_27>0)&&(_47>0)&&(_1X._UW[(_27-1)*_1X._RW+(_47-1)]==_re-1);_mX=(_47>0)&&(_1X._UW[(_27)*_1X._RW+(_47-1)]==_re-1);_nX=(_27<_1X._QW-1)&&(_47>0)&&(_1X._UW[(_27+1)*_1X._RW+(_47-1)]==_re-1);if(_jX)_27=_27-1;else if(_kX)_27=_27+1;else if(_mX)_47=_47-1;else if(_hX)_47=_47+1;else if(_bX&&_gX){_27=_27-1;_47=_47+1;}else if(_bX&&_iX){_27=_27+1;_47=_47+1;}else if(_bX&&_lX){_27=_27-1;_47=_47-1;}else if(_bX&&_nX){_27=_27+1;_47=_47-1;};if((_27!=_cX)||(_47!=_dX)){_vW._AW(~~(_1X._OW+_27*_1X._SW+_1X._SW/2),~~(_1X._PW+_47*_1X._TW+_1X._TW/2),
100);}};_vW._AW(_7X,_8X,100);_vW._uX();};for(i=0;i<_1X._QW;i++){for(_17=0;_17<_1X._RW;_17++){if(_1X._UW[i*_1X._RW+_17]>0)_1X._UW[i*_1X._RW+_17]=0;}}return _kn;}function mp_grid_to_ds_grid(_rj,_4l){_rj=yyGetInt32(_rj);_4l=yyGetInt32(_4l);var _vX=_tj._E8;var _wX=_0X._E8;if((_rj<0)||(_rj>=_wX)||(_4l<0)||(_4l>=_vX)){_55("Error: Invalid source or destination grid");return;}var _sj=_tj._26(_4l);var _xX=_0X._26(_rj);if(_xX==null||_sj==null){_55("Error: Invalid source or destination grid");return;}var w=_xX._QW;
var h=_xX._RW;var _yX=_sj._Xc;var _zX=_sj._Yc;if(w!=_yX||h!=_zX){_55("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){_sj._pj[x+(y*_sj._Xc)]=_xX._UW[(x*_xX._RW)+y];}}}function place_free(_tt,_Q5,_R5){var _27,_47,_kn,_AX;_kn=true;_27=_tt.x;_47=_tt.y;_tt._Ed(yyGetReal(_Q5),yyGetReal(_R5));var _Kk=_S3._BX();for(var _Tm=0;_Tm<_Kk.length;_Tm++){_AX=_Kk[_Tm];if(_AX.solid){if(_tt._BN(_AX,true)){_kn=false;break;}}}_tt._Ed(_27,_47);return _kn;}function place_empty(_tt,
_Q5,_R5,_Sk){var _27,_47,_kn,_AX;_kn=true;_27=_tt.x;_47=_tt.y;_tt._Ed(yyGetReal(_Q5),yyGetReal(_R5));if(is_undefined(_Sk)){_Sk=_cO;}else {_Sk=yyGetInt32(_Sk);}_kn=_vt(_tt,Math.floor(_Sk),true,false,function(_xt){var _yt=_tt._BN(_xt,true);if(!_yt){return false;}return true;});_tt._Ed(_27,_47);if(_kn)return false;else return true;}function place_meeting(_tt,_Q5,_R5,_Sk){var _27,_47,_kn,_AX;_kn=false;_27=_tt.x;_47=_tt.y;_tt._Ed(yyGetReal(_Q5),yyGetReal(_R5));var _Kk=GetWithArray(yyGetInt32(_Sk));for(var _Tm=0;
_Tm<_Kk.length;_Tm++){_AX=_Kk[_Tm];if((_AX.active)&&(!_AX._CX)){if(_tt._BN(_AX,true)){_kn=true;break;}}}_tt._Ed(_27,_47);return _kn;}function place_snapped(_em,_Cm,_Dm){_Cm=yyGetReal(_Cm);_Dm=yyGetReal(_Dm);if(_Cm>0){if(Math.abs(_em.x-_Cm*_Mk(_em.x/_Cm))>=0.001){return false;}}if(_Dm>0){if(Math.abs(_em.y-_Dm*_Mk(_em.y/_Dm))>=0.001){return false;}}return true;}function move_random(_em,_Cm,_Dm){var i=0;var x=0.0;var y=0.0;var _DX;var _EX;var _FX;var _GX;var _HX=0;var _IX=0;_DX=0;_EX=_S3._JX();_FX=0;_GX=_S3._KX();
if(true==sprite_exists(_em.sprite_index)||true==sprite_exists(_em.mask_index)){var _LX=_em._MX();_DX=_Mk(_em.x-_LX.left);_EX=_Mk(_EX+_em.x-_LX.right);_FX=_Mk(_em.y-_LX.top);_GX=_Mk(_GX+_em.y-_LX.bottom);}_HX=_Mk(yyGetReal(_Cm));_IX=_Mk(yyGetReal(_Dm));for(i=1;i<100;i++){x=_DX+_um(_EX-_DX);if(_HX>0){x=_HX*floor(x/_HX);}y=_FX+_um(_GX-_FX);if(_IX>0){y=_IX*floor(y/_IX);}if(true==place_free(_em,x,y)){_em._Ed(x,y);return;}}}function move_snap(_tt,_Cm,_Dm){_Cm=yyGetReal(_Cm);_Dm=yyGetReal(_Dm);_tt.x=_Mk(_tt.x/_Cm)*_Cm;
_tt.y=_Mk(_tt.y/_Dm)*_Dm;_tt._KN=true;}function move_wrap(_em,_NX,_zK,_OX){_OX=yyGetReal(_OX);if(yyGetBool(_NX)){if(_em.x<-_OX){_em._Ed(_em.x+_S3._JX()+2*_OX,_em.y);}if(_em.x>_S3._JX()+_OX){_em._Ed(_em.x-_S3._JX()-2*_OX,_em.y);}}if(yyGetBool(_zK)){if(_em.y<-_OX){_em._Ed(_em.x,_em.y+_S3._KX()+2*_OX);}if(_em.y>_S3._KX()+_OX){_em._Ed(_em.x,_em.y-_S3._KX()-2*_OX);}}}function move_towards_point(_tt,_Q5,_R5,_lm){_tt.hspeed=yyGetReal(_Q5)-_tt.x;_tt.vspeed=yyGetReal(_R5)-_tt.y;_tt.speed=yyGetReal(_lm);}function _PX(_tt,
_Q5,_R5,_Km){if(_Km){return place_empty(_tt,_Q5,_R5);}else {return place_free(_tt,_Q5,_R5);}}function _Om(_tt,_QX,_Km){var i,_I6;var _27,_47,_RX,_SX,_TX,_UX,_VX;var _WX,_XX,_YX,_ZX;_ZX=false;if(_PX(_tt,_tt.x,_tt.y,_Km)==false){_tt._Ed(_tt.xprevious,_tt.yprevious);_ZX=true;}_27=_tt.x;_47=_tt.y;if(_QX){_I6=18;_VX=10.0*Math.round(_tt.direction/10.0);_TX=_VX;_UX=_VX;for(i=1;i<2*_I6;i++){_TX=_TX-180/_I6;_RX=_27+_tt.speed*Math.cos(_TX*__6/180);_SX=_47-_tt.speed*Math.sin(_TX*__6/180);if(_PX(_tt,_RX,_SX,_Km)){
break;}else {_ZX=true;}}for(i=1;i<2*_I6;i++){_UX=_UX+180/_I6;_RX=_27+_tt.speed*Math.cos(_UX*__6/180);_SX=_47-_tt.speed*Math.sin(_UX*__6/180);if(_PX(_tt,_RX,_SX,_Km)){break;}else {_ZX=true;}}if(_ZX==true){_tt.direction=180+(_TX+_UX)-_VX;}}else {_WX=_PX(_tt,_tt.x+_tt.hspeed,_tt.y,_Km);_XX=_PX(_tt,_tt.x,_tt.y+_tt.vspeed,_Km);_YX=_PX(_tt,_tt.x+_tt.hspeed,_tt.y+_tt.vspeed,_Km);if((_WX==false)&&(_XX==false)){_tt.hspeed=-_tt.hspeed;_tt.vspeed=-_tt.vspeed;}else if((_WX==true)&&(_XX==true)&&(_YX==false)){_tt.hspeed=-_tt.hspeed;
_tt.vspeed=-_tt.vspeed;}else if(_WX==false)_tt.hspeed=-_tt.hspeed;else if(_XX==false)_tt.vspeed=-_tt.vspeed;}}function move_bounce_solid(_tt,_Nm){_Om(_tt,yyGetBool(_Nm),false);}function move_bounce_all(_tt,_Nm){_Om(_tt,yyGetBool(_Nm),true);}var __X=move_bounce_solid;function _0Y(_em,_Q5,_R5,_Km){if(yyGetBool(_Km))return place_empty(_em,_Q5,_R5);else return place_free(_em,_Q5,_R5);}function _Lm(_em,_im,_Jm,_Km){var _2v;if(_Jm<=0)_2v=1000;else _2v=_Mk(_Jm);var _fb=Math.cos(_im*Math.PI/180);var _gb=-Math.sin(_im*Math.PI/180);
if(_0Y(_em,_em.x,_em.y,_Km)==false)return;for(var i=1;i<=_2v;i++){if(_0Y(_em,_em.x+_fb,_em.y+_gb,_Km))_em._Ed(_em.x+_fb,_em.y+_gb);else return;}}function _1Y(_tt,_Q5,_R5,_Sk){var _27=_tt.x;var _47=_tt.y;_tt._Ed(_Q5,_R5);var _AX=_vt(_tt,yyGetInt32(_Sk),false,_wt,function(_xt){if(_xt._BN(_tt,true)){return _xt.id;}return _wt;});_tt._Ed(_27,_47);return _AX;};function move_and_collide(_2Y,_fb,_gb,_t9,_3Y,_4Y,_5Y,_6Y,_7Y){var _P4=[];if((_t9==_8Y)&&(_2Y!=_9Y))_t9=_2Y.id;if(_t9==_wt){return _P4;}var _rb=_1Y(_2Y,_2Y.x,
_2Y.y,_t9);if(_rb!=_wt)return _P4;if((_fb==0)&&(_gb==0)){return _P4;}var _aY=false;var _bY=false;var _cY=-1.0;var _dY=-1.0;if(_6Y!==undefined){_cY=_6Y;if(_cY>0)_aY=true;}if(_7Y!==undefined){_dY=_7Y;if(_dY>0)_bY=true;}var _eY=_2Y.x;var _fY=_2Y.y;var _gY=_eY+_cY;var _hY=_fY+_dY;_eY-=_cY;_fY-=_dY;var _iY=4;if(_3Y!==undefined)_iY=_3Y;var _jY=false;var _kY=0;var _lY=0;var _mY=0;if(_4Y===undefined||_5Y===undefined||(_4Y===0&&_5Y===0)){_jY=true;}else {_kY=Math.sqrt(_4Y*_4Y+_5Y*_5Y);_lY=_4Y/_kY;_mY=_5Y/_kY;}var _2v=Math.sqrt(_fb*_fb+_gb*_gb);
var _nY=_fb/_2v;var _oY=_gb/_2v;var _pY=0.70710678118654;var _qY=_2v/_iY;var _rY=_2v;for(var i=0;i<_iY;i++){var _sY=_qY;if(_rY<_sY){_sY=_rY;if(_sY<=0)break;}var _tY=_2Y.x+_nY*_sY;var _uY=_2Y.y+_oY*_sY;if(_aY){_tY=clamp(_tY,_eY,_gY);}if(_bY){_uY=clamp(_uY,_fY,_hY);}_rb=_1Y(_2Y,_tY,_uY,_t9);if(_rb==_wt){_2Y.x=_tY;_2Y.y=_uY;_rY-=_sY;}else {if(!_P4.includes(_rb))_P4[_P4.length]=_rb;var _vY=false;if(_jY){for(var _17=1;_17<_iY-i+1;_17++){_tY=_2Y.x+_pY*(_nY+_17*_oY)*_sY;_uY=_2Y.y+_pY*(_oY-_17*_nY)*_sY;if(_aY){_tY=clamp(_tY,
_eY,_gY);}if(_bY){_uY=clamp(_uY,_fY,_hY);}_rb=_1Y(_2Y,_tY,_uY,_t9);if(_rb==_wt){_rY-=_sY*_17;_vY=true;_2Y.x=_tY;_2Y.y=_uY;break;}else {if(!_P4.includes(_rb))_P4[_P4.length]=_rb;}_tY=_2Y.x+_pY*(_nY-_17*_oY)*_sY;_uY=_2Y.y+_pY*(_oY+_17*_nY)*_sY;if(_aY){_tY=clamp(_tY,_eY,_gY);}if(_bY){_uY=clamp(_uY,_fY,_hY);}_rb=_1Y(_2Y,_tY,_uY,_t9);if(_rb==_wt){_rY-=_sY*_17;_vY=true;_2Y.x=_tY;_2Y.y=_uY;break;}else {if(!_P4.includes(_rb))_P4[_P4.length]=_rb;}}}else {for(var _17=1;_17<_iY-i+1;_17++){_tY=_2Y.x+_pY*(_nY+_17*_lY)*_sY;
_uY=_2Y.y+_pY*(_oY+_17*_mY)*_sY;if(_aY){_tY=clamp(_tY,_eY,_gY);}if(_bY){_uY=clamp(_uY,_fY,_hY);}_rb=_1Y(_2Y,_tY,_uY,_t9);if(_rb==_wt){_rY-=_sY*_17;_vY=true;_2Y.x=_tY;_2Y.y=_uY;break;}else {if(!_P4.includes(_rb))_P4[_P4.length]=_rb;}}}if(!_vY)return _P4;}}return _P4;}function move_contact_solid(_tt,_im,_Jm){_Lm(_tt,yyGetReal(_im),yyGetReal(_Jm),false);}function move_contact_all(_em,_im,_Jm){_Lm(_em,yyGetReal(_im),yyGetReal(_Jm),true);}function _wY(_em,_im,_Jm,_Km){var _2v;if(_Jm<=0)_2v=1000;else _2v=_Mk(_Jm);
var _fb=Math.cos(_im*Math.PI/180);var _gb=-sin(_im*Math.PI/180);if(_0Y(_em,_em.x,_em.y,_Km))return;for(var i=1;i<=_2v;i++){_em._Ed(_em.x+_fb,_em.y+_gb);if(_0Y(_em,_em.x,_em.y,_Km))return;}}function move_outside_solid(_em,_im,_Jm){_wY(_em,yyGetReal(_im),yyGetReal(_Jm),false);}function move_outside_all(_em,_im,_Jm){_wY(_em,yyGetReal(_im),yyGetReal(_Jm),true);}function distance_to_point(_em,_Q5,_R5){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);if(_em._KN)_em._LN();var _D4=_em._MN;var _xY=0.0;var _yY=0.0;if(_Q5>_D4.right){
_xY=_Q5-_D4.right;}if(_Q5<_D4.left){_xY=_Q5-_D4.left;}if(_R5>_D4.bottom){_yY=_R5-_D4.bottom;}if(_R5<_D4.top){_yY=_R5-_D4.top;}return Math.sqrt((_xY*_xY)+(_yY*_yY));}function distance_to_object(_em,_Sk){var _Jt=10000000000;var i=0;var _Jt=_AN(_em,yyGetInt32(_Sk),false,_Jt,function(_xt){if(_em._KN)_em._LN();if(_xt._KN)_xt._LN();var _D4=_xt._MN;var _qi=_em._MN;var _xY=0,_yY=0;if(_D4.left>_qi.right)_xY=_D4.left-_qi.right;if(_D4.right<_qi.left)_xY=_D4.right-_qi.left;if(_D4.top>_qi.bottom)_yY=_D4.top-_qi.bottom;
if(_D4.bottom<_qi.top)_yY=_D4.bottom-_qi.top;return Math.sqrt(_xY*_xY+_yY*_yY);});return _Jt;}function position_empty(_em,_Q5,_R5){var _Jt=10000000000;var i=0;var _Lt=_vt(_em,_cO,false,false,function(_xt){return _xt._zt(yyGetReal(_Q5),yyGetReal(_R5),true);});return !_Lt;}function position_meeting(_tt,_Q5,_R5,_Sk){_Sk=yyGetInt32(_Sk);var _kn,_AX;_kn=false;if(_Sk==_8Y)_Sk=_tt.id;var x=yyGetReal(_Q5);var y=yyGetReal(_R5);x=~~x;y=~~y;var _Kk=GetWithArray(_Sk);for(var _Tm=0;_Tm<_Kk.length;_Tm++){_AX=_Kk[_Tm];if((_AX.active)&&(!_AX._CX)){
if(_AX._zt(x,y,true)){_kn=true;break;}}}return _kn;}var _zY=6;var _AY=7;var _BY=1;var _CY=2;var _DY=3;var _EY=4;var _FY=1;var _GY=2;var _HY=window.WebSocket;var _IY=null;try{_IY=require("ws").Server;}catch(_JY){}function _KY(_LY,type,_MY){this.socket=_LY;this.type=type;this._MY=_MY;}_KY.prototype={socket:null,_MY:false,_NY:false,index:-1};var _OY="GM:Studio-Connect";var _PY=0xCAFEBABE;var _QY=0xDEADB00B;var _RY=0xDEAFBEAD;var _SY=0xF00DBEEB;var _TY=0xDEADC0DE;var _UY=[];var _VY=[];function _WY(wrap){var i=_VY.shift();
if(i==null)i=_UY.length;_UY[i]=wrap;wrap.index=i;return i;}function _XY(wrap){var i=_UY.indexOf(wrap);if(i>=0){_UY[i]=null;_VY.push(i);}}function _YY(e){var _8H=_Cf._Df(e.id,null,_ZY,e);_8H._Hf=true;}function __Y(_hz,offset,length){var _0Z=new Uint8Array(_hz.buffer);var _1Z=_hz.byteOffset+offset;var index=buffer_create(length,_2Z,1);var buffer=_XM._26(index);for(var i=0;i<length;i++)buffer._1N(_2N,_0Z[_1Z+i]);buffer._3Z(_gk,0);return index;}function _4Z(_hz,_5Z,id,_6Z,port,_7Z,_8Z){var _0j=_hz.byteLength;var _9Z=[];
if(_5Z){var _Lk=0;while(_Lk<_0j){if(_hz.getUint32(_Lk,true)!=_TY||_hz.getUint32(_Lk+4,true)!=12){console.log("Raw packet received from a non-raw socket("+id+").");_9Z.push(__Y(_hz,_Lk,_0j-_Lk));break;}var _aZ=_hz.getUint32(_Lk+8,true);_9Z.push(__Y(_hz,_Lk+12,_aZ));_Lk+=12+_aZ;}}else _9Z.push(__Y(_hz,0,_0j));for(var i=0;i<_9Z.length;i++){_YY({"type":_DY,"id":id,"ip":_6Z,"port":port,"other_port":_7Z,"buffer":_9Z[i],"size":buffer_get_size(_9Z[i]),"message_type":_8Z});}}function _bZ(_ld,port,_cZ,_dZ){if(_IY==null){
debug("No WebSocket server implementation is available.");return -1;}try{var _eZ=new _IY({port:port,_fZ:true});var wrap=new _KY(_eZ,_zY,true);_eZ._gZ=wrap;_eZ.on("connection",function(_hZ,_iZ){var _jZ=new _KY(_hZ,_zY,false);var _kZ=-1;var _lZ=_iZ.socket.remoteAddress;var _mZ=port;var _nZ=_iZ.socket.remotePort;var _oZ=!_dZ;function _pZ(){_YY({"type":_BY,"id":wrap.index,"socket":_kZ,"ip":_lZ,"port":_mZ,"other_port":_nZ});_jZ._NY=true;}_hZ.onmessage=function(e){var _qZ=e.data;if(_qZ==null)return;var _rZ=_qZ.buffer;
if(_rZ==null)return;var _sZ=_qZ.byteLength;var _tZ=new DataView(_rZ,_qZ.offset,_sZ);if(_oZ){_4Z(_tZ,_dZ,_kZ,_lZ,_mZ,_nZ);}else {if(_sZ>=16&&_tZ.getUint32(0,true)==_PY&&_tZ.getUint32(4,true)==_QY&&_tZ.getUint32(8,true)==16){_kZ=_WY(_jZ);_oZ=true;_pZ();var _uZ=new ArrayBuffer(12);var _vZ=new DataView(_uZ);_vZ.setInt32(0,_RY,true);_vZ.setInt32(4,_SY,true);_vZ.setInt32(8,12,true);_hZ.send(_uZ);}else {console.log("Invalid handshake response from client.");_hZ.terminate();}}};_hZ.onerror=function(e){console.log(e);
_YY({"type":_CY,"id":wrap.index,"socket":_kZ,"ip":_lZ,"port":_mZ,"other_port":_nZ});_XY(_jZ);};if(_oZ){_kZ=_WY(_jZ);_pZ();}else {var _wZ=new ArrayBuffer(_OY.length+1);var _xZ=new DataView(_wZ);for(var i=0;i<_OY.length;i++){_xZ.setUint8(i,_OY.charCodeAt(i));}_xZ.setUint8(i,0);_hZ.send(_wZ);}});_eZ.on("error",function(e){console.log("Server error: ",e);});return _WY(wrap);}catch(e){debug("Error creating server: "+e);return -1;}}function _yZ(index,_Gh,port,_5Z){if(_HY==null){debug("No WebSocket client implementation is available.");
return -1;}var wrap=_UY[index];if(wrap==null||wrap.socket!=null)return -1;try{var _zZ=_Gh;var _AZ=(wrap.type==_AY);if(_Gh.substring(0,5)=="ws://"){if(_AZ){console.log("Socket type is network_socket_wss, but URL ("+_Gh+") is insecure - upgrading to wss://");}_Gh=_Gh.substring(5);}else if(_Gh.substring(0,6)=="wss://"){_AZ=true;_Gh=_Gh.substring(6);}var _BZ=_Gh.indexOf("/");var path="/";if(_BZ!=-1){path=_Gh.substring(_BZ);_Gh=_Gh.substring(0,_BZ);}var _CZ=_Gh.indexOf(":");if(_CZ!=-1){if(port==0){port=_Gh.substring(_CZ+1);
}_Gh=_Gh.substring(0,_CZ);}_Gh=(_AZ?"wss://":"ws://")+_Gh+(port!=0?":"+port:"")+path;var _eZ=new _HY(_Gh);var _DZ=_5Z?-1:1;function _pZ(_EZ){_YY({"type":_EY,"id":wrap.index,"succeeded":_EZ?1:0,"ip":_zZ,"port":port});if(_EZ)wrap._NY=true;}function _FZ(_GZ,_8Z){switch(_DZ){case -1:{var i=_GZ.byteLength;if(i>_OY.length){i=_OY.length;if(_GZ.getUint8(i)==0)while(--i>=0){if(_GZ.getUint8(i)!=_OY.charCodeAt(i))break;}}if(i<0){_DZ=0;var _HZ=new ArrayBuffer(16);var _IZ=new DataView(_HZ);_IZ.setUint32(0,_PY,true);_IZ.setUint32(4,
_QY,true);_IZ.setUint32(8,16,true);_eZ.send(_HZ);}else {console.log("Invalid first response from server");_pZ(false);_eZ.close();wrap.socket=null;}};break;case 0:{if(_GZ.byteLength>=12&&_GZ.getUint32(0,true)==_RY&&_GZ.getUint32(4,true)==_SY&&_GZ.getUint32(8,true)==12){_DZ=1;_pZ(true);if(_GZ.byteLength>12){_FZ(new DataView(_GZ.buffer,_GZ.byteOffset+12,_GZ.byteLength-12));}}else {console.log("Invalid second response from server");_pZ(false);}};break;default :{_4Z(_GZ,_5Z,index,_zZ,port,port,_8Z);};}}_eZ.onopen=function(e){
if(_DZ>0)_pZ(true);};_eZ.onmessage=function(e){if(e.data instanceof Blob){var _JZ=new FileReader();_JZ.onload=function(){_FZ(new DataView(_JZ.result),_FY);};_JZ.onerror=function(e){console.log("Failed to read message:",e);};_JZ.readAsArrayBuffer(e.data);}else if(typeof e.data=="string"){var _KZ=new TextEncoder();var _LZ=_KZ.encode(e.data);_FZ(new DataView(_LZ.buffer),_GY);}else {console.log("Failed to process message:",e);}};_eZ.onerror=function(e){console.log(e);if(!wrap._NY)_pZ(false);};wrap.socket=_eZ;return wrap.index;
}catch(e){debug("Connection error: "+e);return -1;}}function network_create_server(_ld,_MZ,_cZ){return _bZ(_ld,_MZ,_cZ,true);}function network_create_server_raw(_ld,_MZ,_cZ){return _bZ(_ld,_MZ,_cZ,false);}function network_set_timeout(){_Fb("network_set_timeout()")}function network_create_socket_ext(_ld,_MZ){if(_ld!=_zY&&_ld!=_AY){console.log("network_create_socket_ext() - Only network_socket_ws and network_socket_wss are supported on HTML5.");return -1;}return _WY(new _KY(null,_ld,false));}function network_create_socket(_ld,
_MZ,_cZ){if(_ld!=_zY&&_ld!=_AY){console.log("network_create_socket_ext() - Only network_socket_ws and network_socket_wss are supported on HTML5.");return -1;}return _WY(new _KY(null,_ld,false));}function network_connect(_NZ,_br,_MZ){_Fb("network_connect()");return -1;}function network_connect_raw(_NZ,_br,_MZ){_Fb("network_connect_raw()");return -1;}function network_connect_async(_NZ,_br,_MZ){return _yZ(_NZ,_br,_MZ,true);}function network_connect_raw_async(_NZ,_br,_MZ){return _yZ(_NZ,_br,_MZ,false);}function network_resolve(_br){
return "127.0.0.1";}function network_send_broadcast(_NZ,_MZ,_jl,_7d){return -1;}function network_send_packet(_NZ,_jl,_7d){var wrap=_UY[_NZ];if(wrap==null)return -1;var _eZ=wrap.socket;if(_eZ==null||!wrap._NY)return -1;var _OZ=_XM._26(_jl);if(_OZ==null)return -1;var _GZ=_OZ._PZ;var _QZ=new ArrayBuffer(_7d+12);var _RZ=new DataView(_QZ);_RZ.setUint32(0,_TY,true);_RZ.setUint32(4,12,true);_RZ.setUint32(8,_7d,true);for(var i=0;i<_7d;i+=1){_RZ.setUint8(i+12,_GZ.getUint8(i));}_eZ.send(_QZ);return _7d;}function network_send_raw(_NZ,
_jl,_7d,_SZ){var wrap=_UY[_NZ];if(wrap==null)return -1;var _eZ=wrap.socket;if(_eZ==null||!wrap._NY)return -1;var _F4=buffer_get_address(_jl);if(_7d<_F4.byteLength)_F4=new DataView(_F4,0,_7d);if(_SZ!==undefined&&(_SZ&_GY)!=0){var _TZ=new TextDecoder();_F4=_TZ.decode(_F4);}_eZ.send(_F4);return _7d;}function network_set_config(_UZ,_re){}function network_send_udp(_NZ,_br,_MZ,_jl,_7d){return -1;}function network_send_udp_raw(_NZ,_br,_MZ,_jl,_7d){return -1;}function network_destroy(_NZ){var wrap=_UY[_NZ];if(wrap==null)return;
var _eZ=wrap.socket;if(_eZ==null)return;if(wrap._MY){_eZ.close();}else if(_eZ.terminate){_eZ.terminate();}else if(_eZ.close)_eZ.close();_XY(wrap);return 0;}function object_exists(_S4){if(!_H3._26(yyGetInt32(_S4)))return false;return true;}function object_get_name(_S4){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return "";return _IF._2F;}var _VZ=object_get_name;function object_get_sprite(_S4){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return -1;return _IF._ZN;}function object_get_solid(_S4){var _IF=_H3._26(yyGetInt32(_S4));
if(!_IF)return false;return _IF._WZ;}function object_get_visible(_S4){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return false;return _IF._XZ;}function _YZ(_S4){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return 0;return _IF._ZZ;}function object_get_persistent(_S4){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return false;return _IF.__Z;}function object_get_mask(_S4){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return -1;return _IF._0_;}function object_get_parent(_S4){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return -1;return _IF._9O;
}function object_get_physics(_S4){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return -1;return(_IF._1_.physicsObject?1.0:0.0);}function object_set_sprite(_S4,_06){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return;_IF._ZN=yyGetInt32(_06);}function object_set_solid(_S4,_2_){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return;_IF._WZ=yyGetBool(_2_);}function object_set_visible(_S4,_3_){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return;_IF._XZ=yyGetBool(_3_);}function object_set_persistent(_S4,_4_){var _IF=_H3._26(yyGetInt32(_S4));
if(!_IF)return;_IF.__Z=yyGetBool(_4_);}function object_set_mask(_S4,_06){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return;_IF._0_=yyGetInt32(_06);}function _5_(_S4,_6_){var _IF=_H3._26(yyGetInt32(_S4));if(!_IF)return;_6_=yyGetInt32(_6_);_IF._9O=_6_;_IF._fE=_H3._26(_6_);}function object_is_ancestor(_7_,_C6){var _IF=_H3._26(yyGetInt32(_7_));if(!_IF)return 0;_IF=_IF._fE;while(_IF!==null&&_IF!==undefined){if(_IF._bO===yyGetInt32(_C6))return 1;_IF=_IF._fE;}return 0;}var part_system_create=_Ho;var part_system_destroy=_Lo;
var part_system_exists=_8_;var part_system_clear=_Io;var part_system_draw_order=_9_;var part_system_depth=_Jo;var part_system_position=_a_;var part_system_automatic_update=_b_;var part_system_automatic_draw=_c_;var part_system_update=_d_;var part_system_drawit=_e_;var part_particles_create=_f_;var part_particles_create_color=_g_;var part_particles_create_colour=_g_;var part_particles_clear=_No;var part_particles_count=_h_;var part_type_create=_Wo;var part_type_destroy=_i_;var part_type_exists=_j_;var part_type_clear=_k_;
var part_type_shape=_Yo;var part_type_sprite=_2p;var part_type_size=_Zo;var part_type_scale=_l_;var part_type_blend=_m_;var part_type_color1=_n_;var part_type_colour1=_n_;var part_type_color2=__o;var part_type_colour2=__o;var part_type_color3=_o_;var part_type_colour3=_o_;var _p_=_o_;var _q_=_o_;var part_type_color_mix=_8p;var part_type_colour_mix=_8p;var part_type_color_rgb=_r_;var part_type_colour_rgb=_r_;var part_type_color_hsv=_s_;var part_type_colour_hsv=_s_;var part_type_alpha1=_t_;var part_type_alpha2=_9p;var part_type_alpha3=_u_;
var part_type_life=_gp;var part_type_step=_Cp;var part_type_death=_Dp;var part_type_orientation=_v_;var part_type_speed=_np;var part_type_direction=_op;var part_type_gravity=_sp;var part_emitter_create=_Lp;var part_emitter_destroy=_Qp;var part_emitter_destroy_all=_w_;var part_emitter_exists=_x_;var part_emitter_clear=_y_;var part_emitter_region=_Np;var part_emitter_burst=_Tp;var part_emitter_stream=_Vp;function effect_create_below(_Dc,_Q5,_R5,_7d,_ys){_Dq(true,yyGetInt32(_Dc),yyGetReal(_Q5),yyGetReal(_R5),yyGetInt32(_7d),
yyGetInt32(_ys));}function effect_create_above(_Dc,_Q5,_R5,_7d,_ys){_Dq(false,yyGetInt32(_Dc),yyGetReal(_Q5),yyGetReal(_R5),yyGetInt32(_7d),yyGetInt32(_ys));}function effect_clear(){if(_8_(_z_)){_Lo(_z_);_z_=-1;}if(_8_(_A_)){_Lo(_A_);_A_=-1;}}function part_system_create_layer(_ET,_B_){var room=_jO._eR();if(room==null){return;}var layer=null;if(typeof(_ET)=="string")layer=_jO._kO(room,yyGetString(_ET));else layer=_jO._lO(room,yyGetInt32(_ET));if(_B_==undefined){_B_=false;}else {_B_=yyGetBool(_B_);}var _P4=_Ho(layer._ke,
_B_);return _P4;}function part_system_get_layer(_S4){var _P4=_C_(yyGetInt32(_S4));return _P4;}function part_system_layer(_S4,_ET){var room=_jO._eR();if(room==null){return;}var layer=null;if(typeof(_ET)=="string")layer=_jO._kO(room,yyGetString(_ET));else layer=_jO._lO(room,yyGetInt32(_ET));var _P4=_D_(yyGetInt32(_S4),layer._ke);return _P4;}function path_exists(_S4){if(_wW.Paths[yyGetInt32(_S4)])return true;return false;}function path_get_name(_S4){_S4=yyGetInt32(_S4);if(!_wW.Paths[_S4])return "";return _wW.Paths[_S4].name;
}function path_get_length(_S4){_S4=yyGetInt32(_S4);if(!_wW.Paths[_S4])return 0;return _wW.Paths[_S4].length;}function path_get_kind(_S4){_S4=yyGetInt32(_S4);if(!_wW.Paths[_S4])return 0;return _wW.Paths[_S4].kind;}function path_get_closed(_S4){_S4=yyGetInt32(_S4);if(!_wW.Paths[_S4])return true;return _wW.Paths[_S4].closed;}function path_get_precision(_S4){_S4=yyGetInt32(_S4);if(!_wW.Paths[_S4])return 8;return _wW.Paths[_S4].precision;}function path_get_number(_S4){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return 0;
if(!_vW.points)return 0;return _vW.points.length;}function path_get_point_x(_S4,_wN){_wN=yyGetInt32(_wN);if(_wN<0)return 0;var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return 0;if(!_vW.points)return 0;if(_vW.points._E_>=_wN)return 0;return _vW.points[_wN].x;}function path_get_point_y(_S4,_wN){_wN=yyGetInt32(_wN);if(_wN<0)return 0;var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return 0;if(!_vW.points)return 0;if(_vW.points._E_>=_wN)return 0;return _vW.points[_wN].y;}function path_get_point_speed(_S4,_wN){_wN=yyGetInt32(_wN);
if(_wN<0)return 0;var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return 0;if(!_vW.points)return 0;if(_vW.points._E_>=_wN)return 0;return _vW.points[_wN].speed;}function path_get_x(_S4,_Gk){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return -1;return _vW._F_(yyGetReal(_Gk));}function path_get_y(_S4,_Gk){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return -1;return _vW._G_(yyGetReal(_Gk));}function path_get_speed(_S4,_Gk){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return -1;return _vW._H_(yyGetReal(_Gk));}function path_set_kind(_S4,
_Dc){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return -1;_vW._xW(yyGetInt32(_Dc));}function path_set_closed(_S4,_I_){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return -1;_vW._zW(yyGetBool(_I_));}function path_set_precision(_S4,_jj){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return -1;_vW._J_(yyGetInt32(_jj));}function path_add(){var _vW=new _K_();_wW._Df(_vW);return _vW.id;}function path_duplicate(_S4){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return -1;var _L_=new _K_();_wW._Df(_L_);_L_._SN(_vW);return _L_.id;
}function path_assign(_S4,_gq){var _M_=_wW.Paths[yyGetInt32(_S4)];if(!_M_)return;var _N_=_wW.Paths[yyGetInt32(_gq)];if(!_N_)return;_M_._SN(_N_);}function path_start(_em,_gq,_lm,_O_,_P_){_em._jq(yyGetInt32(_gq),yyGetReal(_lm),1,0,yyGetBool(_P_),yyGetInt32(_O_));}function path_end(_em){_em._jq(-1,0,1,0,false,0);}var draw_path=_Q_;function _Q_(_gg,_R_,_S_,_P_){_R_=yyGetReal(_R_);_S_=yyGetReal(_S_);var _vW=_wW.Paths[yyGetInt32(_gg)];if(!_vW)return;_4a.globalAlpha=_Kc;_4a.strokeStyle=_jK;var _27,_47,_T_;var _U_=0;
var _V_=_vW._W_(0);if(!yyGetBool(_P_)){_R_=_R_-_V_.x;_S_=_S_-_V_.y;}else {_R_=0;_S_=0;}_U_=_Mk(_vW.length/4.0);if(_U_==0)return;var first=true;_4a._CK();for(var i=0;i<=_U_;i++){_V_=_vW._W_(i/_U_);if(first){_4a._DK(_R_+_V_.x,_S_+_V_.y);first=false;}else {_4a._EK(_R_+_V_.x,_S_+_V_.y);}}_4a._GK();_4a._FK();}function path_shift(_gg,_R_,_S_){var _vW=_wW.Paths[yyGetInt32(_gg)];if(!_vW)return;_vW._X_(yyGetReal(_R_),yyGetReal(_S_));}function path_rescale(_gg,_2o,_3o){var _vW=_wW.Paths[yyGetInt32(_gg)];if(!_vW)return;
_vW._Y_(yyGetReal(_2o),yyGetReal(_3o));}function path_rotate(_gg,_U5){var _vW=_wW.Paths[yyGetInt32(_gg)];if(!_vW)return;_vW._Z_(yyGetReal(_U5));}function path_reverse(_gg){var _vW=_wW.Paths[yyGetInt32(_gg)];if(!_vW)return;_vW._uX();}function path_flip(_gg){var _vW=_wW.Paths[yyGetInt32(_gg)];if(!_vW)return;_vW.___();}function path_mirror(_gg){var _vW=_wW.Paths[yyGetInt32(_gg)];if(!_vW)return;_vW._001();}function path_change_point(_gg,_S4,_101,_201,_lm){var _vW=_wW.Paths[yyGetInt32(_gg)];if(!_vW)return;_vW._301(_S4,
yyGetReal(_101),yyGetReal(_201),yyGetReal(_lm));}function path_delete(_S4){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return;_wW._Cl(_vW);}function path_append(_S4,_gq){var _wk=_wW.Paths[yyGetInt32(_S4)];if(!_wk)return;var _xk=_wW.Paths[yyGetInt32(_gq)];if(!_xk)return;_wk._401(_xk);}function path_add_point(_S4,_Q5,_R5,_lm){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return 0;_vW._AW(yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_lm));}function path_insert_point(_S4,_wN,_Q5,_R5,_lm){var _vW=_wW.Paths[yyGetInt32(_S4)];
if(!_vW)return 0;_vW._501(yyGetInt32(_wN),yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_lm));}function path_delete_point(_S4,_wN){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return 0;_vW._601(yyGetInt32(_wN));}function path_clear_points(_S4){var _vW=_wW.Paths[yyGetInt32(_S4)];if(!_vW)return 0;_vW._Tf();}var _701=new _801();var _901=new _801();var _a01=new _801();function physics_world_create(_b01){_b01=yyGetReal(_b01);if(_S3._c01){_S3._c01._d01(_b01);if(_U3){_S3._c01._e01(_W3._X3());}else {_S3._c01._e01(_S3._T3());}
}else {if(_U3){var physicsWorld=new _f01(_b01,_W3._X3());_S3._c01=physicsWorld;}else {var physicsWorld=new _f01(_b01,_S3._T3());_S3._c01=physicsWorld;}}}function physics_world_draw_debug(_g01){_S3._c01._h01(yyGetInt32(_g01));}function physics_world_gravity(_i01,_j01){_S3._c01._k01(yyGetReal(_i01),yyGetReal(_j01));}function physics_world_update_speed(_lm){_S3._c01._e01(yyGetInt32(_lm));}function physics_world_update_iterations(_3Y){_S3._c01._l01(yyGetInt32(_3Y));}function physics_pause_enable(_m01){if(yyGetBool(_m01)){
_S3._c01._rJ();}else {_S3._c01._n01();}}function physics_fixture_create(){var _o01=_701._Df(new _p01());return _o01;}function physics_fixture_set_kinematic(_q01){var _r01=_701._26(yyGetInt32(_q01));_r01._s01();}function physics_fixture_set_density(_q01,_t01){var _r01=_701._26(yyGetInt32(_q01));_r01._u01(yyGetReal(_t01));}function physics_fixture_set_restitution(_q01,_v01){var _r01=_701._26(yyGetInt32(_q01));_r01._w01(yyGetReal(_v01));}function physics_fixture_set_friction(_q01,_rm){var _r01=_701._26(yyGetInt32(_q01));
_r01._x01(yyGetReal(_rm));}function physics_fixture_set_collision_group(_q01,_y01){var _r01=_701._26(yyGetInt32(_q01));_r01._z01(yyGetInt32(_y01));}function physics_fixture_set_sensor(_q01,_A01){var _r01=_701._26(yyGetInt32(_q01));_r01._B01(yyGetBool(_A01));}function physics_fixture_set_linear_damping(_q01,_C01){var _r01=_701._26(yyGetInt32(_q01));_r01._D01(yyGetReal(_C01));}function physics_fixture_set_angular_damping(_q01,_C01){var _r01=_701._26(yyGetInt32(_q01));_r01._E01(yyGetReal(_C01));}function physics_fixture_set_awake(_q01,
_F01){var _r01=_701._26(yyGetInt32(_q01));_r01._G01(yyGetInt32(_F01));}function physics_fixture_set_circle_shape(_q01,_H01){var _r01=_701._26(yyGetInt32(_q01));_r01._I01(yyGetReal(_H01)*_S3._c01._J01);}function physics_fixture_set_box_shape(_q01,_K01,_L01){var _r01=_701._26(yyGetInt32(_q01));var scale=_S3._c01._J01;_r01._M01(yyGetReal(_K01)*scale,yyGetReal(_L01)*scale);}function physics_fixture_set_edge_shape(_q01,_ub,_vb,_wb,_xb){var _r01=_701._26(yyGetInt32(_q01));var scale=_S3._c01._J01;_r01._N01(yyGetReal(_ub)*scale,
yyGetReal(_vb)*scale,yyGetReal(_wb)*scale,yyGetReal(_xb)*scale);}function physics_fixture_set_polygon_shape(_q01){var _r01=_701._26(yyGetInt32(_q01));_r01._O01();}function physics_fixture_set_chain_shape(_q01,_c4){var _r01=_701._26(yyGetInt32(_q01));_r01._P01(yyGetBool(_c4));}function physics_fixture_add_point(_q01,_Q01,_R01){var _r01=_701._26(yyGetInt32(_q01));var scale=_S3._c01._J01;_r01._S01(yyGetReal(_Q01)*scale,yyGetReal(_R01)*scale);}function physics_fixture_bind_ext(_em,_q01,_gg,_T4,_U4){_T4=yyGetReal(_T4);
_U4=yyGetReal(_U4);var _T01=-1;var _U01=-1;var _r01=_701._26(yyGetInt32(_q01));var _Sk=yyGetInt32(_gg);if(_Sk==_8Y){_Sk=_em.id;}if(_Sk==_cO){var _Kk=_xn._BX();for(var _Tm=0;_Tm<_Kk.length;_Tm++){var _Gt=_Kk[_Tm];if(_Gt.marked)continue;_T01=_S3._c01._V01(_r01,_Gt,_T4,_U4);}}else if(_Sk<100000){var _IF=_H3._26(_Sk);if(_IF===null){return _U01;}var _Kk=_IF._W01();for(var _Tm=0;_Tm<_Kk.length;_Tm++){var _Gt=_Kk[_Tm];if(_Gt.marked)continue;_T01=_S3._c01._V01(_r01,_Gt,_T4,_U4);}}else {var _Gt=_xn._26(_Sk);_T01=_S3._c01._V01(_r01,
_Gt,_T4,_U4);}return _T01;}function physics_fixture_bind(_em,_q01,_gg,_X01,_Y01){_q01=yyGetInt32(_q01);_gg=yyGetInt32(_gg);if(_X01!==undefined&&_Y01!==undefined){return physics_fixture_bind_ext(_em,_q01,_gg,yyGetReal(_X01),yyGetReal(_Y01));}else {return physics_fixture_bind_ext(_em,_q01,_gg,0.0,0.0);}}function physics_fixture_delete(_q01){_701._uj(yyGetInt32(_q01));}function physics_joint_distance_create(_Z01,__01,_011,_111,_211,_311,_411){var _511=_xn._26(yyGetInt32(_Z01));var _611=_xn._26(yyGetInt32(__01));
var _711=_S3._c01._811(_511._911,_611._911,yyGetReal(_011),yyGetReal(_111),yyGetReal(_211),yyGetReal(_311),yyGetBool(_411));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_rope_create(_Z01,__01,_011,_111,_211,_311,_a11,_411){var _511=_xn._26(yyGetInt32(_Z01));var _611=_xn._26(yyGetInt32(__01));var _711=_S3._c01._b11(_511._911,_611._911,yyGetReal(_011),yyGetReal(_111),yyGetReal(_211),yyGetReal(_311),yyGetReal(_a11),yyGetBool(_411));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_revolute_create(_Z01,
__01,_c11,_d11,_e11,_f11,_g11,_h11,_i11,_j11,_411){var _511=_xn._26(yyGetInt32(_Z01));var _611=_xn._26(yyGetInt32(__01));var _711=_S3._c01._k11(_511._911,_611._911,yyGetReal(_c11),yyGetReal(_d11),(yyGetReal(_e11)*Math.PI)/180.0,(yyGetReal(_f11)*Math.PI)/180.0,yyGetBool(_g11),yyGetReal(_h11),yyGetReal(_i11),yyGetBool(_j11),yyGetBool(_411));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_prismatic_create(_Z01,__01,_c11,_d11,_l11,_m11,_n11,_o11,_g11,_p11,_i11,_j11,_411){var _511=_xn._26(yyGetInt32(_Z01));
var _611=_xn._26(yyGetInt32(__01));var _711=_S3._c01._q11(_511._911,_611._911,yyGetReal(_c11),yyGetReal(_d11),yyGetReal(_l11),yyGetReal(_m11),yyGetReal(_n11),yyGetReal(_o11),yyGetBool(_g11),yyGetReal(_p11),yyGetReal(_i11),yyGetBool(_j11),yyGetBool(_411));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_pulley_create(_Z01,__01,_011,_111,_211,_311,_r11,_s11,_t11,_u11,_v11,_411){var _511=_xn._26(yyGetInt32(_Z01));var _611=_xn._26(yyGetInt32(__01));var _711=_S3._c01._w11(_511._911,_611._911,
yyGetReal(_011),yyGetReal(_111),yyGetReal(_211),yyGetReal(_311),yyGetReal(_r11),yyGetReal(_s11),yyGetReal(_t11),yyGetReal(_u11),yyGetReal(_v11),yyGetBool(_411));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_wheel_create(_Z01,__01,_x11,_y11,_z11,_A11,_B11,_h11,_i11,_C11,_D11,_411){var _511=_xn._26(yyGetInt32(_Z01));var _611=_xn._26(yyGetInt32(__01));var _711=_S3._c01._E11(_511._911,_611._911,yyGetReal(_x11),yyGetReal(_y11),yyGetReal(_z11),yyGetReal(_A11),yyGetBool(_B11),yyGetReal(_h11),
yyGetReal(_i11),yyGetReal(_C11),yyGetReal(_D11),yyGetBool(_411));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_weld_create(_Z01,__01,_x11,_y11,_F11,_C11,_D11,_411){var _511=_xn._26(yyGetInt32(_Z01));var _611=_xn._26(yyGetInt32(__01));var _711=_S3._c01._G11(_511._911,_611._911,yyGetReal(_x11),yyGetReal(_y11),yyGetReal(_F11),yyGetReal(_C11),yyGetReal(_D11),yyGetBool(_411));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_friction_create(_Z01,__01,_x11,_y11,_H11,
_I11,_411){var _511=_xn._26(yyGetInt32(_Z01));var _611=_xn._26(yyGetInt32(__01));var _711=_S3._c01._J11(_511._911,_611._911,yyGetReal(_x11),yyGetReal(_y11),yyGetReal(_H11),yyGetReal(_I11),yyGetBool(_411));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_gear_create(_Z01,__01,_K11,_L11,_v11){var _511=_xn._26(yyGetInt32(_Z01));var _611=_xn._26(yyGetInt32(__01));var _M11=_a01._26(yyGetInt32(_K11));var _N11=_a01._26(yyGetInt32(_L11));if(_M11==null||_N11==null){_55("A joint does not exist");
return;}var _711=_S3._c01._O11(_511._911,_611._911,_M11,_N11,yyGetReal(_v11));if(_711!=-1){return _a01._Df(_711);}return -1;}function physics_joint_enable_motor(_P11,_Q11){var _R11=_a01._26(yyGetInt32(_P11));if(_R11==null){_55("A joint does not exist");return;}_R11._S11(yyGetBool(_Q11));}function physics_joint_get_value(_P11,_T11){var _R11=_a01._26(yyGetInt32(_P11));if(_R11==null){_55("A joint does not exist");return;}return _R11._U11(yyGetInt32(_T11));}function physics_joint_set_value(_P11,_T11,_Ln){var _R11=_a01._26(yyGetInt32(_P11));
if(_R11==null){_55("A joint does not exist");return;}return _R11._V11(yyGetInt32(_T11),yyGetReal(_Ln));}function physics_joint_delete(_W11){_W11=yyGetInt32(_W11);var _R11=_a01._26(_W11);if(_R11!=null){_S3._c01._X11(_R11);}_a01._uj(_W11);}function physics_apply_force(_tt,_Qj,_Rj,_Y11,_Z11){var scale=_S3._c01._J01;var __11=yyGetReal(_Qj)*scale;var _021=yyGetReal(_Rj)*scale;_tt._911._121(__11,_021,yyGetReal(_Y11),yyGetReal(_Z11));}function physics_apply_impulse(_tt,_Qj,_Rj,_221,_321){var scale=_S3._c01._J01;
var __11=yyGetReal(_Qj)*scale;var _021=yyGetReal(_Rj)*scale;_tt._911._421(__11,_021,yyGetReal(_221),yyGetReal(_321));}function physics_apply_local_force(_tt,_521,_621,_721,_821){var scale=_S3._c01._J01;var _921=yyGetReal(_521)*scale;var _a21=yyGetReal(_621)*scale;_tt._911._b21(_921,_a21,yyGetReal(_721),yyGetReal(_821));}function physics_apply_local_impulse(_tt,_521,_621,_c21,_d21){var scale=_S3._c01._J01;var _921=yyGetReal(_521)*scale;var _a21=yyGetReal(_621)*scale;_tt._911._e21(_921,_a21,yyGetReal(_c21),
yyGetReal(_d21));}function physics_apply_angular_impulse(_tt,_f21){_tt._911._g21(yyGetReal(_f21));}function physics_apply_torque(_tt,_h21){_tt._911._i21(yyGetReal(_h21));}function physics_mass_properties(_tt,_j21,_k21,_l21,_m21){var scale=_S3._c01._J01;_tt._911._n21(yyGetReal(_j21),yyGetReal(_k21)*scale,yyGetReal(_l21)*scale,yyGetReal(_m21));}function physics_draw_debug(_tt){if((_tt._911!=null)&&(_tt._911!=undefined)){_tt._911._h01(1.0/_S3._c01._J01);}}function physics_test_overlap(_em,_Q5,_R5,_U5,_Sk){
_Sk=yyGetInt32(_Sk);var _tt=_em;if(_Sk==_8Y){_Sk=_tt.id;}var x=yyGetReal(_Q5)*_S3._c01._J01;var y=yyGetReal(_R5)*_S3._c01._J01;var angle=(yyGetReal(_U5)*Math.PI)/180.0;if(_Sk==_cO){var _Kk=_xn._BX();for(var _Tm=0;_Tm<_Kk.length;_Tm++){var _Gt=_Kk[_Tm];if(_Gt.marked)continue;if(_S3._c01._o21(_em,_Gt,x,y,angle)){return true;}}}else if(_Sk<100000){var _IF=_H3._26(_Sk);if(_IF===null){return false;}var _Kk=_IF._W01();for(var _Tm=0;_Tm<_Kk.length;_Tm++){var _Gt=_Kk[_Tm];if(_Gt.marked)continue;if(_S3._c01._o21(_em,_Gt,
x,y,angle)){return true;}}}else {var _Gt=_xn._26(_Sk);return _S3._c01._o21(_em,_Gt,x,y,angle);}}function physics_remove_fixture(_em,_p21){_p21=yyGetInt32(_p21);var _U01=-1;var _Sk=yyGetInt32(_em);if(_Sk==_8Y){_Sk=_em.id;}if(_Sk==_cO){var _Kk=_xn._BX();for(var _Tm=0;_Tm<_Kk.length;_Tm++){var _Gt=_Kk[_Tm];if(_Gt.marked)continue;if(_Gt._911){_Gt._911._q21(_p21);}}}else if(_Sk<100000){var _IF=_H3._26(_Sk);if(_IF===null){return _U01;}var _Kk=_IF._W01();for(var _Tm=0;_Tm<_Kk.length;_Tm++){var _Gt=_Kk[_Tm];if(_Gt.marked)continue;
if(_Gt._911){_Gt._911._q21(_p21);}}}else {var _Gt=_xn._26(_Sk);if(_Gt._911){_Gt._911._q21(_p21);}}}function physics_get_friction(_em,_p21){if(_em._911){return _em._911._r21(yyGetInt32(_p21));}return 0.0;}function physics_get_density(_em,_p21){if(_em._911){return _em._911._s21(yyGetInt32(_p21));}return 0.0;}function physics_get_restitution(_em,_p21){if(_em._911){return _em._911._t21(yyGetInt32(_p21));}return 0.0;}function physics_set_friction(_em,_p21,__3){if(_em._911){_em._911._x01(yyGetInt32(_p21),yyGetReal(__3));
}}function physics_set_density(_em,_p21,__3){if(_em._911){_em._911._u01(yyGetInt32(_p21),yyGetReal(__3));}}function physics_set_restitution(_em,_p21,__3){if(_em._911){_em._911._w01(yyGetInt32(_p21),yyGetReal(__3));}}function physics_particle_create(_u21,x,y,_v21,_w21,_L4,alpha,_x21){return _S3._c01._y21(yyGetInt32(_u21),yyGetReal(x),yyGetReal(y),yyGetReal(_v21),yyGetReal(_w21),yyGetInt32(_L4),yyGetReal(alpha),yyGetInt32(_x21));}function physics_particle_delete(_t9){_S3._c01._z21(yyGetInt32(_t9));}function physics_particle_delete_region_circle(x,
y,_A21){_S3._c01._B21(yyGetReal(x),yyGetReal(y),yyGetReal(_A21));}function physics_particle_delete_region_box(x,y,_C21,_D21){_S3._c01._E21(yyGetReal(x),yyGetReal(y),yyGetReal(_C21),yyGetReal(_D21));}function physics_particle_delete_region_poly(_F21){_F21=yyGetInt32(_F21);var points=[];for(var _I6=0;_I6<ds_list_size(_F21);_I6++){points.push(ds_list_find_value(_F21,_I6));}_S3._c01._G21(points,points.length>>1);}function physics_particle_group_begin(_u21,_H21,x,y,_I21,_v21,_w21,_J21,_L4,alpha,_K21,_x21){
_S3._c01._L21(yyGetInt32(_u21),yyGetInt32(_H21),yyGetReal(x),yyGetReal(y),yyGetReal(_I21),yyGetReal(_v21),yyGetReal(_w21),yyGetReal(_J21),yyGetInt32(_L4),yyGetReal(alpha),yyGetReal(_K21),yyGetInt32(_x21));}function physics_particle_group_circle(_A21){_S3._c01._M21(yyGetReal(_A21));}function physics_particle_group_box(_C21,_D21){_S3._c01._N21(yyGetReal(_C21),yyGetReal(_D21));}function physics_particle_group_polygon(){_S3._c01._O21();}function physics_particle_group_add_point(x,y){_S3._c01._P21(yyGetReal(x),
yyGetReal(y));}function physics_particle_group_end(){return _S3._c01._Q21();}function physics_particle_group_join(_R21,from){_S3._c01._S21(yyGetInt32(_R21),yyGetInt32(from));}function physics_particle_group_delete(_t9){_S3._c01._T21(yyGetInt32(_t9));}function physics_particle_draw(_U21,_x21,_DS,_Vn){var _3F=_16._26(yyGetInt32(_DS));if(_3F!==null){_S3._c01._V21(yyGetInt32(_U21),yyGetInt32(_x21),_3F,yyGetInt32(_Vn));}}function physics_particle_draw_ext(_U21,_x21,_DS,_Vn,_bP,_cP,angle,_L4,alpha){var _3F=_16._26(yyGetInt32(_DS));
if(_3F!==null){_S3._c01._W21(yyGetInt32(_U21),yyGetInt32(_x21),_3F,yyGetInt32(_Vn),yyGetReal(_bP),yyGetReal(_cP),yyGetReal(angle),yyGetInt32(_L4),yyGetReal(alpha));}}function physics_particle_count(){return _S3._c01._X21();}function physics_particle_get_data(buffer,_Y21){var _Ha=_XM._26(yyGetInt32(buffer));if(_Ha){_S3._c01._Z21(_Ha,yyGetInt32(_Y21));}}function physics_particle_get_max_count(){return _S3._c01.__21();}function physics_particle_get_radius(){return _S3._c01._031();}function physics_particle_get_density(){
return _S3._c01._131();}function physics_particle_get_damping(){return _S3._c01._231();}function physics_particle_get_gravity_scale(){return _S3._c01._331();}function physics_particle_set_max_count(_E8){_S3._c01._431(yyGetInt32(_E8));}function physics_particle_set_radius(_A21){_S3._c01._531(yyGetReal(_A21));}function physics_particle_set_density(_631){_S3._c01._731(yyGetReal(_631));}function physics_particle_set_damping(_831){_S3._c01._931(yyGetReal(_831));}function physics_particle_set_gravity_scale(scale){
_S3._c01._a31(yyGetReal(scale));}function physics_particle_set_flags(_S4,_b31){_S3._c01._c31(yyGetInt32(_S4),yyGetInt32(_b31));}function physics_particle_set_category_flags(_d31,_b31){_S3._c01._e31(yyGetInt32(_d31),yyGetInt32(_b31));}function physics_particle_set_group_flags(_y01,_g01){_S3._c01._f31(yyGetInt32(_y01),yyGetInt32(_g01));}function physics_particle_get_group_flags(_y01){return _S3._c01._g31(yyGetInt32(_y01));}function physics_particle_get_data_particle(_t9,buffer,_Y21){var _Ha=_XM._26(yyGetInt32(buffer));
if(_Ha){_S3._c01._h31(yyGetInt32(_t9),_Ha,yyGetInt32(_Y21));}}function physics_particle_group_count(_i31){return _S3._c01._j31(yyGetInt32(_i31));}function physics_particle_group_get_data(_i31,buffer,_Y21){var _Ha=_XM._26(yyGetInt32(buffer));if(_Ha){_S3._c01._k31(yyGetInt32(_i31),_Ha,yyGetInt32(_Y21));}}function physics_particle_group_get_mass(_i31){return _S3._c01._l31(yyGetInt32(_i31));}function physics_particle_group_get_inertia(_i31){return _S3._c01._m31(yyGetInt32(_i31));}function physics_particle_group_get_centre_x(_i31){
return _S3._c01._n31(yyGetInt32(_i31));}function physics_particle_group_get_centre_y(_i31){return _S3._c01._o31(yyGetInt32(_i31));}function physics_particle_group_get_vel_x(_i31){return _S3._c01._p31(yyGetInt32(_i31));}function physics_particle_group_get_vel_y(_i31){return _S3._c01._q31(yyGetInt32(_i31));}function physics_particle_group_get_ang_vel(_i31){return _S3._c01._r31(yyGetInt32(_i31));}function physics_particle_group_get_x(_i31){return _S3._c01._s31(yyGetInt32(_i31));}function physics_particle_group_get_y(_i31){
return _S3._c01._t31(yyGetInt32(_i31));}function physics_particle_group_get_angle(_i31){return _S3._c01._u31(yyGetInt32(_i31));}var _v31=false;var _w31=false;function room_exists(_S4){var room=_fR._26(yyGetInt32(_S4));if((room===null)||(room==undefined)){return false;}return true;}function room_get_name(_S4){var _9V=_fR._26(yyGetInt32(_S4));if(_9V===null)return "";if((_9V._x31===undefined)||(_9V._x31===null))return "";return _9V._x31.pName;}function _y31(_S4){return room_get_name(_S4);}function room_set_width(_S4,
_nj){var _9V=_fR._26(yyGetInt32(_S4));if(_9V===null)return;_9V._x31.width=yyGetInt32(_nj);}function room_set_height(_S4,_oj){var _9V=_fR._26(yyGetInt32(_S4));if(_9V===null)return;_9V._x31.height=yyGetInt32(_oj);}function room_set_persistent(_S4,__3){var _9V=_fR._26(yyGetInt32(_S4));if(_9V===null)return;var persistent=yyGetBool(__3);_9V._x31.persistent=persistent;}function room_set_background_color(_S4,_Mc,_am){var _9V=_fR._26(yyGetInt32(_S4));if(_9V===null)return;_9V._x31.colour=yyGetInt32(_Mc);_9V._x31.showColour=yyGetBool(_am);
}var room_set_background_colour=room_set_background_color;function room_get_camera(_z31,_A31){var _9V=_fR._26(yyGetInt32(_z31));if(_9V){var _B31=_9V._x31.views;if(!_B31)return -1;var _hz=_B31[yyGetInt32(_A31)];if(_hz){if(_hz._C31!==undefined){return _hz._C31;}}}return -1;}function room_set_camera(_z31,_A31,_D31){_A31=yyGetInt32(_A31);var _9V=_fR._26(yyGetInt32(_z31));if(_9V){var _B31=_9V._x31.views;if(!_B31){_9V._x31.views=[];_B31=_9V._x31.views;for(var i=0;i<8;i++){_B31[i]={};}}var _hz=_B31[_A31];if(!_hz){_B31[_A31]={
};_hz=_B31[_A31];}_hz._C31=yyGetInt32(_D31);}}function room_get_viewport(_z31,_A31){var _P4=[];_P4[0]=0;_P4[1]=0;_P4[2]=0;_P4[3]=640;_P4[4]=480;var _9V=_fR._26(yyGetInt32(_z31));if(_9V){var _B31=_9V._x31.views;if(_B31){var _hz=_B31[yyGetInt32(_A31)];if(_hz){if(_hz.visible!==undefined)_P4[0]=_hz.visible;if(_hz.xport!==undefined)_P4[1]=_hz.xport;if(_hz.yport!==undefined)_P4[2]=_hz.yport;if(_hz.wport!==undefined)_P4[3]=_hz.wport;if(_hz.hport!==undefined)_P4[4]=_hz.hport;return _P4;}}}_P4[0]=0;_P4[1]=0;_P4[2]=0;
_P4[3]=0;_P4[4]=0;return _P4;}function room_set_viewport(_z31,_A31,_E31,_F31,_G31,_H31,_I31){_A31=yyGetInt32(_A31);var _9V=_fR._26(yyGetInt32(_z31));if(_9V){if(_9V._x31){var _hz=_9V._x31.views;if(!_hz){_9V._x31.views=[];for(var i=0;i<8;i++){_9V._x31.views[i]={};}}_hz=_hz[_A31];if(_hz===undefined){_hz[_A31]={};_hz=_hz[_A31];}_hz.visible=yyGetBool(_E31);_hz.xport=yyGetInt32(_F31);_hz.yport=yyGetInt32(_G31);_hz.wport=yyGetInt32(_H31);_hz.hport=yyGetInt32(_I31);}}}function room_set_view_enabled(_S4,__3){var _9V=_fR._26(yyGetInt32(_S4));
if(_9V){_9V._x31.enableViews=yyGetBool(__3);}}function room_add(){var _9V=new _J31();_9V._K31();_fR._Df(_9V);return _9V.id;}function room_duplicate(_S4){_S4=yyGetInt32(_S4);var _9V=_fR._26(_S4);if(!_9V){debug("Trying to duplicate non-existent room.");return 0;}return _fR._L31(_S4);}function room_assign(_S4,_zo){_S4=yyGetInt32(_S4);_zo=yyGetInt32(_zo);if(_fR._26(_S4)&&_fR._26(_zo)){_fR._M31(_S4,_zo);return true;}return false;}function room_instance_add(_S4,_Q5,_R5,_Sk){var _9V=_fR._26(yyGetInt32(_S4));if(_9V){
var instance_id=_QN++;var _QU=_9V._x31.pInstances.length;_9V._x31.pInstances[_QU]={x:yyGetReal(_Q5),y:yyGetReal(_R5),index:yyGetInt32(_Sk),id:instance_id};return instance_id;}return 0;}function room_instance_clear(_S4){var _9V=_fR._26(yyGetInt32(_S4));if(_9V){_9V._N31();}}function room_goto_next(){if((_S3._O31+1)>=_fR._P31.length)return;_Q31=_fR._R31(_S3._O31+1).id;}function room_restart(){_Q31=_S3.id;};function room_goto(_zo){_zo=yyGetInt32(_zo);var _S31=_fR._26(_zo);if((_S31==null)||(_S31==undefined)){_Bi("Error: Room "+_zo+" is not a valid room index");
}else {_Q31=_zo;}};function room_goto_previous(){if((_S3._O31-1)<0)return;_Q31=_fR._R31(_S3._O31-1).id;};function room_previous(_eH){var _9l=-1;for(var i=0;i<_fR._T31.length;i++){if(_fR._T31[i]==yyGetInt32(_eH))return _9l;_9l=_fR._T31[i];}return -1;};function room_next(_eH){for(var i=0;i<(_fR._T31.length-1);i++){if(_fR._T31[i]==yyGetInt32(_eH)){return _fR._T31[i+1];}}return -1;};function game_end(){_Q31=_U31;if(_v31==false){_v31=true;if(typeof(gmlGameEndScripts)=="function"){gmlGameEndScripts();}}if(!_w31){
if(arguments.length>0)show_debug_message("###game_end###"+arguments[0]);else show_debug_message("###game_end###0");_w31=true;}}function game_restart(){g_pBuiltIn.score=0;g_pBuiltIn.lives=0;g_pBuiltIn.health=100;_Q31=_V31;}function _W31(__3){var _X31=null;if(typeof(__3)=="object"){return __3;}else {var _Y31=yyGetInt32(__3);_X31=_rR._zU(_Y31);}return _X31;}function sequence_create(){var _X31=_rR._Z31();if(_X31==null){_55("sequence_create() - could not create new sequence");}else {return _X31;}return -1;}function sequence_destroy(__31){
if(arguments.length!=1){_55("sequence_destroy() - requires a sequence ID or object");}var _X31=_W31(__31);if(_X31==null){_55("sequence_destroy() - specified sequence not valid");}else if(_X31._Gr==true){_55("sequence_destroy() - can't delete a sequence created in the IDE");}else {_rR._041(_X31);}}function sequence_get(_141){if(arguments.length!=1){_55("sequence_get() - requires a sequence ID");}var _X31=_W31(_141);if(_X31==null){_55("sequence_get() - specified sequence not valid");}else {return _X31;}}
function sequence_exists(_241){if(arguments.length!=1){_55("sequence_exists() - requires a sequence ID or struct");}var _Ir=false;if(typeof(_241)=="object"){if(_241 instanceof _341){if(_rR._441(_241)){_Ir=true;}}}else {var _Y31=yyGetInt32(_241);if(_rR._zU(_Y31)!=null){_Ir=true;}}return _Ir?1.0:0.0;}function _541(_ld){if(arguments.length!=1){_55("sequencekeyframestore_new() - requires a type parameter");}_ld=yyGetInt32(_ld);var _641=null;switch(_ld){case _741:case _841:case _941:case _a41:case _LS:case _b41:case _c41:case _d41:case _e41:case _f41:case _g41:_641=new _h41(_ld);
break;default :_55("Unsupported keyframe store type");break;}if(_641==null){return -1;}else {return _641;}}function sequence_keyframe_new(_ld){if(arguments.length!=1){_55("sequencekeyframe_new() - requires a type parameter");}_ld=yyGetInt32(_ld);var _i41=null;switch(_ld){case _741:case _841:case _941:case _a41:case _j41:case _LS:case _b41:case _c41:case _d41:case _e41:case _f41:case _g41:_i41=new _k41(_ld);break;default :_55("Unsupported keyframe type");break;}if(_i41==null){return -1;}else {return _i41;}}function sequence_keyframedata_new(_ld){
if(arguments.length!=1){_55("sequencekeyframedata_new() - requires a type parameter");}_ld=yyGetInt32(_ld);var _qN=null;switch(_ld){case _741:_qN=new _l41();break;case _841:_qN=new _m41();break;case _941:_qN=new _n41();break;case _a41:_qN=new _o41();break;case _j41:_qN=new _p41();break;case _LS:_qN=new _q41();break;case _b41:_qN=new _r41();break;case _c41:_qN=new _s41();break;case _d41:_qN=new _t41();break;case _e41:_qN=new _u41();break;case _f41:_qN=new _v41();break;case _g41:_qN=new _w41();break;default :_55("Unsupported keyframe type");
break;}if(_qN==null){return -1;}else {return _qN;}}function sequence_track_new(_ld){if(arguments.length!=1){_55("sequencetrack_new() - requires a type parameter");}_ld=yyGetInt32(_ld);var _JT=null;switch(_ld){case _741:_JT=new _x41();break;case _841:_JT=new _y41();break;case _a41:_JT=new _z41();break;case _j41:_JT=new _A41();break;case _d41:_JT=new _B41();break;case _e41:_JT=new _C41();break;case _b41:_JT=new _D41();break;case _c41:_JT=new _E41();break;case _941:_JT=new _F41();break;case _G41:_JT=new _H41();break;case _I41:_JT=new _J41();
break;case _K41:_JT=new _L41();break;case _M41:_JT=new _N41();break;case _LS:_JT=new _O41();break;default :_55("Unsupported track type");break;}if(_JT==null){return -1;}else {return _JT;}}function sequence_get_objects(__31){if(arguments.length!=1){_55("sequence_get_objects() - wrong number of arguments");return;}var _X31=null;_X31=_W31(__31);if(_X31!=null){return _X31._P41();}return -1;}function sequence_instance_override_object(_em,_PU,_KR){if(arguments.length!=3){_55("sequence_instance_override_object() - wrong number of arguments");
return;}if((typeof(_em)!=="object")||(_em==null)||!(_em instanceof _Q41)){_55("sequence_instance_override_object() - specified sequence instance is not valid");return;}var _R41=_em;var _X31=_rR._zU(_R41._6Q);if(_X31!=null){_PU=yyGetInt32(_PU);_KR=yyGetInt32(_KR);_S41.push(_X31);_R41._T41(_X31._KS,_PU,_KR,-1);_S41.pop();}}var _U41=function(){_Fb("yy_texture_get_texel_width()");};var _V41=function(){_Fb("yy_texture_get_texel_height()");};var _W41=function(){_Fb("texture_set_stage()");};var _X41=function(){
_Fb("shader_is_compiled()");};var _Y41=function(){_Fb("shader_set()");};var _Z41=function(){_Fb("shader_get_uniform()");};var __41=function(){_Fb("shader_set_uniform_i()");};var _051=function(){_Fb("shader_set_uniform_f()");};var _151=function(){_Fb("shader_set_uniform_matrix()");};var _251=function(){_Fb("shader_set_uniform_matrix()");};var _351=function(){_Fb("shader_enable_corner_id()");};var _451=function(){_Fb("shader_set_uniform_array_i()");};var _551=function(){_Fb("shader_set_uniform_array_f()");
};var _651=function(){_Fb("shader_set_uniform_buffer_f()");};var _751=function(){_Fb("shader_set_uniform_matrix_array()");};var _851=function(index){_Fb("shader_get_name()");};var _xa=-1;function _951(name){for(var i=0;i<_xD.Shaders.length;i++){if(_xD.Shaders[i].name===name){return i;}}}function texture_get_texel_width(_C8){return _U41(_C8);}function texture_get_texel_height(_C8){return _V41(_C8);}function texture_set_stage(_a51,_8e){_W41(yyGetInt32(_a51),_8e);}function shaders_are_supported(){return 0;}function shader_is_compiled(_b51){
return _X41(yyGetInt32(_b51));}function shader_set(_b51){_b51=yyGetInt32(_b51);_xa=_b51;_Y41(_b51);}function shader_reset(){_xa=-1;_Y41(-1);}function shader_current(){return _xa;}function shader_get_uniform(_b51,_c51){return _Z41(yyGetInt32(_b51),yyGetString(_c51));}function shader_set_uniform_i(){var _d51=arguments[0];var _e51=[].splice.call(arguments,1,arguments.length);__41(_d51,_e51);}function shader_set_uniform_f(){var _d51=arguments[0];var _e51=[].splice.call(arguments,1,arguments.length);_051(_d51,_e51);
}function _f51(){var _d51=arguments[0];var _e51=[];_e51[0]=arguments[1];__41(_d51,_e51);}function shader_set_uniform_matrix(){var _d51=arguments[0];_151(_d51);}function shader_get_sampler_index(_b51,_8e){return _251(yyGetInt32(_b51),yyGetString(_8e));}function shader_enable_corner_id(_g51){_351(yyGetBool(_g51));}function shader_set_uniform_i_array(_h51,_8l){_451(yyGetInt32(_h51),_8l);}function shader_set_uniform_f_array(_h51,_8l){_551(yyGetInt32(_h51),_8l);}function shader_set_uniform_f_buffer(_h51,_jl,_i51,
_ce){_651(yyGetInt32(_h51),yyGetInt32(_jl),yyGetInt32(_i51),yyGetInt32(_ce));}function shader_set_uniform_matrix_array(_h51,_8l){_751(yyGetInt32(_h51),_8l);}function shader_get_name(_74){return _851(_74);}var _j51=[];var _k51=300000;var _l51=_k51;var _m51={};var _n51=0;var audio_sampledata=[];var _o51=false;var _p51=128;var _q51=100000;var _r51=[];var _s51=[];var _t51=0;var _u51=200000;var _v51=[];var _w51=[];var _x51=0;var _y51=1024;var _z51=0;var _A51=[];var _B51=[];var _C51="data:audio/wav;base64,UklGRs4/AABXQVZFZm10IBIAAAABAAEAIlYAAESsAAACABAAAABkYXRhTisAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v7+/v7+/v7+/v7+/v7+/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v4AAP7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgECAQIBAgECAQIBAgECAQIBAgEAAAAAAAACAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgEAAAAAAAAAAAAAAAAAAAAAAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQAAAAACAQIBAgECAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAQIBAgEAAAAAAAAAAAAAAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgEAAAAAAAAAAAAAAAAAAAIBAgECAQIBAgECAQIBAgECAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAQIBAgECAQIBAgECAQIBAgEAAAAAAAAAAAIBAgECAQIBAgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgECAQIBAgECAQIBAgECAQIBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAAACAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMSVNUTgAAAElORk9JQ1JEFQAAADIwMTgtMTEtMjNUMTQ6Mzg6MDZaAABJU0ZUIwAAAEFkb2JlIEF1ZGl0aW9uIENDIDIwMTguMCAoV2luZG93cykAAF9QTVj7EwAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDMgNzkuMTYxMjEwLCAyMDE3LzA4LzExLTEwOjI4OjM2ICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXBETT0iaHR0cDovL25zLmFkb2JlLmNvbS94bXAvMS4wL0R5bmFtaWNNZWRpYS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDx4bXBETTpUcmFja3M+CiAgICAgICAgICAgIDxyZGY6QmFnPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHhtcERNOnRyYWNrTmFtZT5DdWVQb2ludCBNYXJrZXJzPC94bXBETTp0cmFja05hbWU+CiAgICAgICAgICAgICAgICAgIDx4bXBETTp0cmFja1R5cGU+Q3VlPC94bXBETTp0cmFja1R5cGU+CiAgICAgICAgICAgICAgICAgIDx4bXBETTpmcmFtZVJhdGU+ZjIyMDUwPC94bXBETTpmcmFtZVJhdGU+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHhtcERNOnRyYWNrTmFtZT5DRCBUcmFjayBNYXJrZXJzPC94bXBETTp0cmFja05hbWU+CiAgICAgICAgICAgICAgICAgIDx4bXBETTp0cmFja1R5cGU+VHJhY2s8L3htcERNOnRyYWNrVHlwZT4KICAgICAgICAgICAgICAgICAgPHhtcERNOmZyYW1lUmF0ZT5mMjIwNTA8L3htcERNOmZyYW1lUmF0ZT4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8eG1wRE06dHJhY2tOYW1lPlN1YmNsaXAgTWFya2VyczwveG1wRE06dHJhY2tOYW1lPgogICAgICAgICAgICAgICAgICA8eG1wRE06dHJhY2tUeXBlPkluT3V0PC94bXBETTp0cmFja1R5cGU+CiAgICAgICAgICAgICAgICAgIDx4bXBETTpmcmFtZVJhdGU+ZjIyMDUwPC94bXBETTpmcmFtZVJhdGU+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpCYWc+CiAgICAgICAgIDwveG1wRE06VHJhY2tzPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE4LTExLTIzVDE0OjM4OjA2WjwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBBdWRpdGlvbiBDQyAyMDE4LjAgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE4LTExLTIzVDE0OjM4OjA2WjwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE4LTExLTIzVDE0OjM4OjA2WjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6MDdiYWRmMTgtYTM5OS02YTQyLWI1OTUtMDU0NGI4ODI3YzY3PC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD54bXAuZGlkOjQ5NDBjY2YzLTA3M2UtMTY0MS05OTVhLTFlY2E2MTYxZDZmMTwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjQ5NDBjY2YzLTA3M2UtMTY0MS05OTVhLTFlY2E2MTYxZDZmMTwveG1wTU06T3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPnNhdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6NDk0MGNjZjMtMDczZS0xNjQxLTk5NWEtMWVjYTYxNjFkNmYxPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE4LTExLTIzVDE0OjM4OjA2Wjwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgQXVkaXRpb24gQ0MgMjAxOC4wIChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+L21ldGFkYXRhPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOjA3YmFkZjE4LWEzOTktNmE0Mi1iNTk1LTA1NDRiODgyN2M2Nzwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOC0xMS0yM1QxNDozODowNlo8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIEF1ZGl0aW9uIENDIDIwMTguMCAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPGRjOmZvcm1hdD5hdWRpby94LXdhdjwvZGM6Zm9ybWF0PgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+AA==";
var _D51=false;var _E51={_F51:0,_G51:1,_H51:2,_I51:3,_J51:4,_K51:5,_L51:6};var _M51={_N51:0,_O51:1,_P51:2};var _Q51={_R51:'init',_S51:'loading',_T51:'loaded',_U51:'decoding',_V51:'ready'};var _W51={_X51:'suspended',_Y51:'running',_Z51:'closed'};var __51={_061:"Audio_Play"};var _161=0;var _261=1.0;var _361=0;function _461(){if(_qg!=_rg)return;_561.forEach(_y01=>_y01.gain._a6());audio_sampledata.forEach(_661=>_661.gain._a6());_j51.forEach(_761=>{if(_761._861){_761.gain._a6();_761._961.gain.value=_a61._b61(_761);
}});}var _c61;function _d61(){if(_qg!=_rg){return;}_e61.disconnect();_e61=new GainNode(g_WebAudioContext);_e61.connect(g_WebAudioContext.destination);g_WebAudioContext.listener._Lk=new _iz(0,0,0);g_WebAudioContext.listener._f61=new _iz(0,0,0);g_WebAudioContext.listener._g61=new Array(0,0,0,0,0,0);}function _h61(){if(_qg!==_rg)return;g_WebAudioContext=new AudioContext();g_WebAudioContext.addEventListener("statechange",_i61);_j61=(_k61==_l61);_D51=(_FM===_m61)||(g_WebAudioContext.audioWorklet===undefined);
_e61=new GainNode(g_WebAudioContext);_e61.connect(g_WebAudioContext.destination);if(_D51){_n61();}else {g_WebAudioContext.audioWorklet.addModule(_xD.Options.GameDir+"/sound/worklets/audio-worklet.js").then(()=>{_n61();}).catch((_o61)=>{console.error("Failed to load audio worklets => "+_o61);});}audio_falloff_set_model(_E51._F51);var _p61;if(typeof document.hidden!=="undefined"){_c61="hidden";_p61="visibilitychange";}else if(typeof document.mozHidden!=="undefined"){_c61="mozHidden";_p61="mozvisibilitychange";
}else if(typeof document.msHidden!=="undefined"){_c61="msHidden";_p61="msvisibilitychange";}else if(typeof document.webkitHidden!=="undefined"){_c61="webkitHidden";_p61="webkitvisibilitychange";}document.addEventListener(_p61,_q61,false);g_WebAudioContext.listener._Lk=new _iz(0,0,0);g_WebAudioContext.listener._f61=new _iz(0,0,0);g_WebAudioContext.listener._g61=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);_r61();_s61();_t61();}function _u61(){if(g_WebAudioContext==null)return;
if(g_WebAudioContext._v61==true)return;g_WebAudioContext._v61=true;g_WebAudioContext.removeEventListener("statechange",_i61);g_WebAudioContext.close().then(()=>{g_WebAudioContext=null;});}function _n61(){const _w61=_D51?_x61:_y61;_z61=new _w61();_z61._A61(_e61);g_pBuiltIn.audio_bus_main=_z61;}/*@constructor */function _B61(){this.buffer=null;this.gain=new _C61(1);this._D61=1.0;this.pitch=1.0;this.duration=0.0;this._E61=0.0;this.groupId=0;this.kind=0;this.state=_Q51._R51;this._F61=[];}_B61.prototype._G61=function(){
for(var i=0;i<this._F61.length;++i){var _H61=this._F61[i];switch(_H61[0]){case __51._061:_I61(_H61[1]);break;}}this._F61.length=0;};_B61.prototype._J61=function(_K61,_L61){if(this.state!=_Q51._T51||!_K61)return false;var _M61=this;_M61.state=_Q51._U51;g_WebAudioContext.decodeAudioData(_K61.response,function(buffer){_M61.buffer=buffer;_M61.state=_Q51._V51;if(_L61)_M61._G61();},function(err){_M61.state=_Q51._T51;debug("ERROR: Failed to decode audio data: "+err);});return true;};/*@constructor */function _N61(_O61){
this._961=g_WebAudioContext.createGain();this._P61=null;this._d51=0;this._OQ(_O61);}_N61.prototype._OQ=function(_O61){this._861=false;this._Q61=g_WebAudioContext.currentTime;this.playbackpoint=0;this._R61=null;this._961.disconnect();this.gain=new _C61(_O61.gain);this._S61=_O61.offset;this.pitch=_O61.pitch;this._P61=_O61.emitter;this.paused=false;this._T61=_O61.asset_index;this.loop=_O61.loop;this._U61=false;this.priority=_O61.priority;this._V61=false;this._W61=false;this._X61=false;this._Y61=null;
this._Z61=null;this._961.gain.value=_a61._b61(this);if(this._T61>=0){this._V61=__61(this._T61);this._W61=_071(this._T61);this._X61=_171(this._T61);if(!this._W61&&!this._X61){if(this._d51>=_k51){_A51[this._d51-_k51]=null;}this._d51=_l51;_A51[_l51-_k51]=this;++_l51;}}};function _271(_h51){if(_h51<_k51||_h51>=_l51){debug("Error: invalid sound handle "+_h51);return null;}var sound=_A51[_h51-_k51];if(sound==undefined){return null;}return sound;}function __61(_T61){if(_j61)return false;if(_T61>=0&&_T61<audio_sampledata.length){
if(audio_sampledata[_T61].kind==1){return true;}}else if(_T61<_q51){debug("IsSoundStreamed - Error: soundid "+_T61+" not found");}return false;}function _071(_T61){if(_T61>=_q51&&_T61<_u51){return true;}return false;}function _171(_T61){if(_T61>=_u51&&_T61<_k51){return true;}return false;}function _371(_471){var sound=_xD.Sounds[_471];if(sound==null){_Gh="";sound=audio_sampledata[_471];if(sound!=null&&sound._571!==undefined){_Gh=_671(sound._571);}return _Gh;}var _Gh=_W8+sound.origName;var _771=sound.extension;
_Gh=_671(_Gh);var index=_Gh.indexOf(_771);if(index>0){_Gh=_Gh.substr(0,index);}if(_871){_771="ogg";}else if(_971){_771="mp3";}else {_771="ogg";}_Gh=_Gh+"."+_771;return _Gh;}var _a71=false;var _b71=false;var _c71=false;var _j61=false;function _d71(){return g_WebAudioContext&&(_c71||g_WebAudioContext.state===_W51._Y51);}function _t61(){if(_c71||_b71)return;_b71=true;var _Y61=new Audio(_C51);_Y61.controls=false;_Y61.autoplay=true;_Y61.preload="none";document.body.appendChild(_Y61);try{var _e71=_Y61.play();if(_e71!==undefined){
_e71.then(function(){debug("WebAudio autoplay test passed.");_c71=true;_f71();document.body.removeChild(_Y61);}).catch(function(error){console.log("WebAudio autoplay test failed: ",error);document.body.removeChild(_Y61);_g71();});}else {console.log("WebAudio autoplay test failed: Playback promise invalid.");document.body.removeChild(_Y61);_g71();}}catch(_ek){debug("WebAudio autoplay test failed with exception: "+_ek);document.body.removeChild(_Y61);_g71();}}function _g71(){if(_a71)return;_a71=true;
var _h71="mousedown";var _i71="mouseup";if("ontouchstart" in window){_h71="touchstart";_i71="touchend";}if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){_h71="pointerdown";_i71="pointerup";}var _j71=function(){g_WebAudioContext.resume().then(function(){document.body.removeEventListener(_h71,_j71);document.body.removeEventListener(_i71,_j71);_a71=false;debug("WebAudio Context unlocked.");},function(_k71){debug("ERROR: Failed to unlock WebAudio Context. Reason: "+_k71);
});};document.body.addEventListener(_h71,_j71,false);document.body.addEventListener(_i71,_j71,false);}function _i61(){debug("WebAudio Context state updated to: "+g_WebAudioContext.state);_f71();}function _f71(){var _l71=_d71();var map=ds_map_create();g_pBuiltIn.async_load=map;ds_map_add(map,"event_type","audio_system_status");ds_map_add(map,"status",_l71?"available":"unavailable");_H3._I3(_m71,0);ds_map_destroy(map);g_pBuiltIn.async_load=-1;}function audio_system_is_available(){if(!g_WebAudioContext)return false;
return _d71();}function audio_sound_is_playable(_n71){_n71=yyGetInt32(_n71);var _M61=_o71(_n71);if(_M61==null)return false;if(!audio_system_is_available())return false;var _p71=_bn._26(_n71);if(_M61.state==_Q51._T51&&_p71){var _q71=_r71[_p71.pName];if(_q71)_M61._J61(_q71,true);}return(_M61.state==_Q51._V51);}function _I61(_761){const _s71=_o71(_761._T61);const _t71=_761._V61&&!_j61;if(_s71.state!=_Q51._V51){var _p71=_bn._26(_761._T61);if(_s71.state==_Q51._T51&&!_t71&&_p71){var _q71=_r71[_p71.pName];if(_q71){
_s71._J61(_q71,true);}}_s71._F61.push([__51._061,_761]);return false;}if(_t71){_u71(_761);}else {_v71(_761);}_761._861=true;return true;}function _u71(_761,_w71){var _x71=_371(_761._T61);try{if(_761._Y61!=null){document.body.removeChild(_761._Y61);}_761._Y61=new Audio();var _Y61=_761._Y61;_Y61.controls=false;_Y61.autoplay=true;_Y61.preload="none";_Y61.loop=_761.loop;_Y61.src=_CG(null,null,_x71);_Y61.defaultPlaybackRate=_a61._y71(_761);const offset=_a61._z71(_761);_Y61.currentTime=offset;_Y61.preservesPitch=false;
document.body.appendChild(_Y61);if(offset>0.0){_Y61.addEventListener('loadedmetadata',function(){_761._Y61.currentTime=offset;});}_Y61.load();try{var _e71=_Y61.play();if(_e71!==undefined){_e71.then(()=>{if(_w71){_w71();}}).catch((error)=>{console.log("Audio playback failed: ",error);_A71(_761);});}}catch(_ek){debug("audio_tag.play() exception: "+_ek);}_Y61.addEventListener("ended",function(e){if(_761._Y61==this){_A71(_761);}else {document.body.removeChild(this);}});_761._Z61=g_WebAudioContext.createMediaElementSource(_Y61);
_761._Z61.connect(_761._961);}catch(_ek){debug("Audio_PlayStreamed exception: "+_ek);return false;}}function _sg(){var sound=g_WebAudioContext.createBufferSource();var gain=g_WebAudioContext.createGain();sound.connect(gain);gain.connect(g_WebAudioContext.destination);gain.gain.value=0;sound.start(0);if(g_WebAudioContext.sampleRate===48000){if(_k61==_l61){debug("Recreating audiocontext to fix sample rate");try{g_WebAudioContext=new AudioContext();}catch(e){try{g_WebAudioContext=new webkitAudioContext();
}catch(e){debug('Web Audio API not supported in this browser');_qg=_B71;}}g_WebAudioContext.addEventListener("statechange",_i61);_f71();sound=g_WebAudioContext.createBufferSource();gain=g_WebAudioContext.createGain();sound.connect(gain);gain.connect(g_WebAudioContext.destination);gain.gain.value=0;sound.start(0);_d61();for(var i=0;i<_z51;++i){_j51[i]._961=g_WebAudioContext.createGain();}debug("Sample rate now "+g_WebAudioContext.sampleRate);}}}function _C71(){var _T61=-1;for(let index=0;index<_xD.Sounds.length;
index++){if(_xD.Sounds[index].kind==1){_T61=index;break;}}if(_T61==-1)return;const _Vk=new _D71({sound:_T61});var _N61=_E71(_Vk);if(_N61==null)return;_N61._961.gain.value=0;_N61._861=true;_u71(_N61,_Vk,function(){_A71(_N61);});}function _v71(_761){try{var _F71=null;var _G71=false;if(_761._T61>=_u51&&_761._T61<(_u51+_x51)){_G71=true;var _H71=_761._T61-_u51;_v51[_H71]._I71.connect(_761._961);_v51[_H71].gainnode=_761._961;_F71=_v51[_H71]._I71;}else {_761._R61=g_WebAudioContext.createBufferSource();_761._R61.playbackRate.value=_a61._y71(_761);
_761._R61.loop=_761.loop;const _s71=_o71(_761._T61);_761._R61.buffer=_s71.buffer;_761._R61.connect(_761._961);_F71=_761._R61;}_761._Q61=g_WebAudioContext.currentTime;_F71.onended=(event)=>{_761._861=false;if(_761._R61.loop===true){_v71(_761);}};if(!_G71){const offset=_a61._z71(_761);_F71.start(0,offset);_761.playbackpoint=offset;}}catch(_ek){debug("Audio_PlayUnstreamed exception: "+_ek);}}function _A71(_J71){if(_J71._861){if(_J71._V61)_K71(_J71);else _L71(_J71);_J71._T61=-1;_J71._861=false;}}function _K71(_J71){
if(_J71._Y61!=null){try{_J71._Y61.pause();_J71._Z61.disconnect();_J71._Z61=null;if(_J71._961!=null)_J71._961.disconnect();_N61._P61=null;document.body.removeChild(_J71._Y61);_J71._Y61=null;}catch(_M71){debug("Audio_StopStreamed exception: "+_M71);}}}function _L71(_J71){try{if(_J71._T61>=_u51&&_J71._T61<(_u51+_x51)){var _N71=_J71._T61-_u51;_v51[_N71]._I71.onended=null;_v51[_N71]._I71.disconnect();}else if(_J71._R61!=null){_J71._R61.onended=null;_J71._R61.loop=false;_J71._R61.stop(0);_J71._R61.disconnect();
}if(_J71._961!=null)_J71._961.disconnect();_J71._P61=null;}catch(_M71){debug("Audio_StopUnstreamed exception: "+_M71);}}function _O71(_J71){if(_J71._861&&!_J71.paused){if(_J71._X61){_P71(_J71);}else if(_J71._V61)_Q71(_J71);else _P71(_J71);_J71.paused=true;}}function _Q71(_J71){try{_J71._Y61.pause();}catch(_M71){debug("Audio_PauseStreamed exception: "+_M71);}}function _P71(_J71){try{if(_J71._T61>=_u51&&_J71._T61<(_u51+_x51)){var _N71=_J71._T61-_u51;_v51[_N71]._I71.disconnect(0);_v51[_N71]._I71.onended=null;
}else {_J71._R61.onended=null;_J71._R61.stop(0);_J71.playbackpoint=_R71(_J71);}}catch(_M71){debug("Audio_PauseUnstreamed exception: "+_M71);}}function _S71(_J71){if(_J71._861&&_J71.paused){if(_J71._X61){_T71(_J71);}else if(_J71._V61)_U71(_J71);else _T71(_J71);_J71.paused=false;}}function _U71(_J71){if(_J71.paused){try{_J71._Y61.play();}catch(_M71){debug("Audio_ResumeStreamed exception: "+_M71);}}}function _T71(_J71){try{if(_J71._T61>=_u51&&_J71._T61<(_u51+_x51)){var _N71=_J71._T61-_u51;_v51[_N71]._I71.connect(_J71._961);
_v51[_N71]._I71.onended=function(event){_J71._861=false;};}else {var pitch=_a61._y71(_J71);_J71._R61=g_WebAudioContext.createBufferSource();_J71._R61.playbackRate.value=pitch;_J71._Q61=g_WebAudioContext.currentTime;_J71._961=g_WebAudioContext.createGain();var _M61=_o71(_J71._T61);_J71._961.gain.value=_a61._b61(_J71);_J71._R61.connect(_J71._961);_J71._R61.onended=function(event){_J71._861=false;};if(_J71._P61!=null){_J71._961.connect(_J71._P61);}else {_z61._V71(_J71._961);}_J71._R61.buffer=_M61.buffer;
if(_J71.loop>0)_J71._R61.loop=true;{var _W71=Math.floor(_J71.playbackpoint/_J71._R61.buffer.duration);var _X71=_J71.playbackpoint-_W71*_J71._R61.buffer.duration;_J71._R61.start(0,_X71);}}}catch(_M71){debug("Audio_ResumeUnstreamed exception: "+_M71);}}function _Y71(_761){if(_761._861){return _761.paused;}return false;}function _Z71(_J71){var __71=false;if(_J71._861){if(_J71._X61){var _081=_v51[_J71._T61-_u51];if(!_081)return false;if(!_081._I71)return false;if(!_081._I71.onended)return false;else return true;
}else if(_J71._V61)__71=_181(_J71);else __71=_281(_J71);}return __71;}function _281(_J71){if(_J71._R61!=null){if((_J71._R61.playbackState==undefined||_J71._R61.playbackState!=_J71._R61.FINISHED_STATE)||_J71.paused){return true;}}return false;}function _181(_J71){if(_J71._Y61!=null){if(!_J71._Y61.ended){return true;}}return false;}function _E71(_O61){if(_qg!=_rg)return null;var i;var sound;for(i=0;i<_z51;++i){sound=_j51[i];if(!sound._861){sound._OQ(_O61);return sound;}else {if(sound._X61&&sound._T61==_O61.asset_index)return null;
var _381=false;if(sound._V61){_381=sound._Y61==null||sound._Y61.ended;}else {_381=((sound._R61!=null&&sound._R61.playbackState!=undefined&&sound._R61.playbackState==sound._R61.FINISHED_STATE)&&!sound.paused);}if(_381){sound._OQ(_O61);return sound;}}}if(_z51<_p51){var _481=new _N61(_O61);_j51[_z51]=_481;++_z51;return _481;}var _581=_O61.priority;var _681=-1;for(i=0;i<_z51;++i){sound=_j51[i];if(sound.priority<_581){_681=i;_581=sound.priority;}}if(_681>=0){debug("killing sound on channel "+_681);var _781=_j51[_681];
_A71(_781);_781._OQ(_O61);return _781;}debug("reached max sounds and no lower priority");return null;}function _o71(_T61){var _881=null;if(_T61>=0&&_T61<=audio_sampledata.length){_881=audio_sampledata[_T61];}else {var _981=_T61-_q51;if(_981>=0&&_981<_t51){_881=_s51[_981];}else {var _N71=_T61-_u51;if(_N71>=0&&_N71<_x51){_881=_w51[_N71];}}}return _881;}function _a81(_O61){if(_O61._b81())return -1;const _c81=_E71(_O61);if(_c81===null)return -1;switch(_O61.type){case _d81._e81:_z61._V71(_c81._961);break;case _d81._f81:const _Lk=_O61.position;
_O61.emitter=_g81();_O61.emitter.setPosition(_Lk.x,_Lk.y,_Lk.z);_h81(_O61.emitter,_Lk.falloff_ref,_Lk.falloff_max,_Lk.falloff_factor);case _d81._i81:_c81._P61=_O61.emitter;_c81._961.connect(_c81._P61);break;default :debug("Warning: Unknown audio playback type => "+_O61.type);return -1;}_I61(_c81,_O61);return _c81._d51;}function audio_play_sound(_j81,_k81,_c4,_l81,_i51,_m81){const _Vk=new _D71({sound:_j81,priority:_k81,loop:_c4,gain:_l81,offset:_i51,pitch:_m81});return _a81(_Vk);}function audio_play_sound_on(_n81,
_j81,_c4,_k81,_l81,_i51,_m81){const _Vk=new _D71({emitter:_n81,sound:_j81,loop:_c4,priority:_k81,gain:_l81,offset:_i51,pitch:_m81});return _a81(_Vk);}function audio_play_sound_at(_j81,_Q5,_R5,_Zc,_o81,_p81,_q81,_c4,_k81,_l81,_i51,_m81){const _Vk=new _D71({sound:_j81,position:{x:_Q5,y:_R5,z:_Zc,falloff_ref:_o81,falloff_max:_p81,falloff_factor:_q81},loop:_c4,priority:_k81,gain:_l81,offset:_i51,pitch:_m81});return _a81(_Vk);}function audio_play_sound_ext(_dt){if(typeof _dt!=="object")_55("Error: audio_play_sound_ext => argument must be a struct");
const _Vk=new _D71(_dt);return _a81(_Vk);}function audio_stop_sound(_471){if(_qg!=_rg)return;_471=yyGetInt32(_471);var sound;if(_471>=_k51){sound=_271(_471);if(sound!=null){if(sound._X61){_A51[sound._d51-_k51]=undefined;}_A71(sound);}}else {for(var i=0;i<_z51;++i){sound=_j51[i];if(sound._T61==_471)_A71(sound);}}}function audio_pause_sound(_471){if(_qg!=_rg)return;_471=yyGetInt32(_471);var sound;if(_471>=_k51){sound=_271(_471);if(sound!=null){_O71(sound);}}else {for(var i=0;i<_z51;++i){sound=_j51[i];if(sound._T61==_471){
_O71(sound);}}}}function audio_resume_sound(_471){if(_qg!=_rg)return;_471=yyGetInt32(_471);if(_471>=_k51){let sound=_271(_471);if(sound!=null){_S71(sound);}}else {for(var i=0;i<_z51;++i){let sound=_j51[i];if(sound._T61==_471){_S71(sound);}}}}function audio_play_music(_471,_r81){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(_gg){_gg=yyGetInt32(_gg);var _881=_o71(_gg);if(_881!=null)return true;var sound=_A51[_gg-_k51];if(sound&&sound._861)return true;return false;}function audio_sound_get_pitch(_471){if(_qg==_rg){_471=yyGetInt32(_471);if(_471>=_k51){const _c81=_271(_471);if(_c81!=null&&_c81._861){return _c81.pitch;}}else {const _s71=_o71(_471);if(_s71!=null&&_171(_471)==false){
return _s71.pitch;}}}return 1.0;}function audio_sound_pitch(_471,pitch){_471=yyGetInt32(_471);pitch=yyGetReal(pitch);if(_471<0)return;if(_qg!=_rg)return;if(_471>=_k51){const _c81=_271(_471);if(_c81!=null&&_c81._861){_c81.playbackpoint=_R71(_c81);_c81._Q61=g_WebAudioContext.currentTime;_c81.pitch=pitch;const _s81=_a61._y71(_c81);if(_c81._V61){_c81._Y61.playbackRate=_s81;}else {_c81._R61.playbackRate.value=_s81;}}}else {const _s71=_o71(_471);if(_s71==null||_171(_471))return;_s71.pitch=pitch;for(let i=0;i<_z51;
++i){const _c81=_j51[i];if(_c81._861&&_c81._T61==_471){_c81.playbackpoint=_R71(_c81);_c81._Q61=g_WebAudioContext.currentTime;const _s81=_a61._y71(_c81);if(_c81._V61){_c81._Y61.playbackRate=_s81;}else {_c81._R61.playbackRate.value=_s81;}}}}}function audio_sound_get_gain(_74){if(_qg!=_rg)return;_74=yyGetInt32(_74);if(_74>=_k51){const _c81=_271(_74);if(_c81!=null&&_c81._861)return _c81.gain.get();}else {const _t81=audio_sampledata[_74];if(_t81!==undefined)return _t81.gain.get();}return 0;}function audio_sound_gain(_74,
_l81,_u81){if(_qg!=_rg)return;_74=yyGetInt32(_74);_l81=yyGetReal(_l81);_l81=Math.max(0,_l81);_u81=yyGetInt32(_u81);_u81=Math.max(0,_u81);if(_74>=_k51){const _c81=_271(_74);if(_c81==null)return;if(_c81._861){_c81.gain.set(_l81,_u81);if(_u81==0)_c81._961.gain.value=_a61._b61(_c81);}}else {const _t81=audio_sampledata[_74];if(_t81!==undefined){_t81.gain.set(_l81,_u81);if(_u81==0){_j51.forEach(_761=>{if(_761._861&&_761._T61==_74){_761._961.gain.value=_a61._b61(_761);}});}}}}function audio_music_gain(_v81,
time){debug("audio_music_gain :: deprecated function\n");}function _q61(){if(g_WebAudioContext){(document.visibilityState==='visible')?g_WebAudioContext.resume():g_WebAudioContext.suspend();}if(_qg==_rg){if(document[_c61]==true){if(!_o51){_o51=true;_w81(true);}}else if(document[_c61]==false){if(_o51){_x81(true);_o51=false;}}}}function audio_sound_length(_471){if(_qg!=_rg)return -1;_471=yyGetInt32(_471);var _y81=-1;if(_471<_k51){_y81=_471;}else {var sound=_271(_471);if(sound!=null){_y81=sound._T61;}}if(_y81!=-1){
if(__61(_y81)){return(audio_sampledata[_y81].duration);}else {return audio_sampledata[_y81].buffer.duration;}}return -1;}function _R71(_761){if(_761._861){if(!_761._V61){let time=_761.playbackpoint;if(!_761.paused){const pitch=_761._R61.playbackRate.value;time+=(g_WebAudioContext.currentTime-_761._Q61)*pitch;}if(_761.loop==true){time%=_761._R61.buffer.duration;}return time;}else {if(_761._Y61!=null){return _761._Y61.currentTime;}}}return 0.0;}function audio_sound_get_track_position(_471){if(_qg!=_rg)return 0;
_471=yyGetInt32(_471);if(_471>=_k51){const _c81=_271(_471);if(_c81!=null){return _R71(_c81);}}else if(_471>=0){const _s71=audio_sampledata[_471];if(_s71!=undefined){return _s71._E61;}}return 0.0;}function _z81(_J71,_j6){if(_J71._861){if(!_J71._V61){const duration=_J71._R61.buffer.duration;if(_j6>=0){_j6=Math.min(_j6,duration);if(_J71.paused){_J71.playbackpoint=_j6;}else {_J71._R61.onended=null;_J71._R61.stop(0);_J71._R61.disconnect();_J71._S61=_j6;_v71(_J71);}}}else {const duration=_J71._Y61.duration;if(isNaN(duration)){
_J71._Y61.addEventListener('loadedmetadata',function(){_j6=Math.min(_j6,this.duration);this.currentTime=_j6;});}else if(_j6>=0){_j6=Math.min(_j6,duration);_J71._Y61.currentTime=_j6;}}}}function audio_sound_set_track_position(_471,_j6){if(_qg!=_rg)return;_471=yyGetInt32(_471);_j6=yyGetReal(_j6);if(_471>=_k51){const _c81=_271(_471);if(_c81!=null){_z81(_c81,_j6);}}else if(_471>=0){_j6=_W6(_j6,0);const duration=audio_sound_length(_471);if(_j6<duration){const _M61=audio_sampledata[_471];if(_M61!=undefined){
_M61._E61=_j6;}}}}function audio_system(){if(_qg==_rg)return 1;else return 0;}function audio_emitter_exists(_A81){if(_m51[yyGetInt32(_A81)]!=undefined)return true;return false;}function audio_get_type(_471){if(_qg!=_rg)return -1;if(__61(yyGetInt32(_471))){return 1;}return 0;}function audio_get_name(_74){if(_qg==_rg){_74=yyGetInt32(_74);var _B81=-1;if(_74>=_k51){var sound=_271(_74);if(sound!=null){_B81=sound._T61;}}else {_B81=_74;}if(_B81>=0&&_B81<_xD.Sounds.length){var name=_xD.Sounds[_B81].pName;return name;}}return "<undefined>";
}var _C81;var _D81;function audio_falloff_set_model(_E81){if(_qg!=_rg){return;}_E81=yyGetInt32(_E81);if(_E81==_D81)return;var _F81=g_WebAudioContext.createPanner();_D81=_E81;switch(_E81){case _E51._F51:_C81=_F81.INVERSE_DISTANCE;if(_C81==undefined)_C81="inverse";break;case _E51._G51:_C81=_F81.INVERSE_DISTANCE;if(_C81==undefined)_C81="inverse";break;case _E51._H51:debug("Audio_falloff_inverse_distance_clamped not supported in html5\n");break;case _E51._I51:_C81=_F81.LINEAR_DISTANCE;if(_C81==undefined)_C81="linear";
break;case _E51._J51:debug("Audio_falloff_linear_distance_clamped not supported in html5\n");break;case _E51._K51:_C81=_F81.EXPONENTIAL_DISTANCE;if(_C81==undefined)_C81="exponential";break;case _E51._L51:debug("Audio_falloff_exponent_distance_clamped not supported in html5\n");break;default :debug("Attempting to set audio falloff to unknown model\n");break;}for(var key in _m51){if(!_m51.hasOwnProperty(key))continue;var emitter=_m51[key];emitter.distanceModel=_C81;if(_D81==_E51._F51){emitter._G81=emitter.rolloffFactor;
emitter.rolloffFactor=0;}else if(typeof emitter._G81!=='undefined'){emitter.rolloffFactor=emitter._G81;emitter._G81=undefined;}}}function _w81(_H81){for(var i=0;i<_z51;++i){var sound=_j51[i];if(sound._861){if(!sound.paused){_O71(sound);if(_H81)sound._U61=true;}}}}function audio_stop_all(){for(var i=0;i<_z51;++i){var sound=_j51[i];if(sound._861){_A71(sound);}}}function _I81(_J81){for(var i=0;i<_z51;++i){var sound=_j51[i];if(sound._861){var groupId=audio_sampledata[sound._T61].groupId;if(groupId==_J81){_A71(sound);
}}}}function audio_pause_all(){_w81(false);}function audio_resume_all(){_x81(false);}function _x81(_H81){for(var i=0;i<_z51;++i){var sound=_j51[i];if(sound._861){if(sound.paused){if(_H81){if(sound._U61){_S71(sound);sound._U61=false;}}else {_S71(sound);}}}}}function audio_is_paused(_471){if(_qg!==_rg)return false;_471=yyGetInt32(_471);if(_471>=_k51){var sound=_271(_471);if(sound!=null){return _Y71(sound);}}else {for(var i=0;i<_z51;++i){sound=_j51[i];if(sound._T61==_471){if(sound._861){if(_Y71(sound)){return true;
}}}}}return false;}function audio_is_playing(_471){if(_qg!==_rg)return false;_471=yyGetInt32(_471);if(_471>=_k51){var sound=_271(_471);if(sound!=null){if(_Z71(sound)){return true;}}}else {for(var i=0;i<_z51;++i){sound=_j51[i];if(sound._T61==_471){if(sound._861){if(_Z71(sound)){return true;}}}}}return false;}function audio_listener_position(_K81,_L81,_M81){if(_qg==_rg){_K81=yyGetReal(_K81);_L81=yyGetReal(_L81);_M81=yyGetReal(_M81);var _N81=g_WebAudioContext.listener;_N81.setPosition(_K81,_L81,_M81);if(_N81._Lk){
_N81._Lk._Pz=_K81;_N81._Lk._Qz=_L81;_N81._Lk._Rz=_M81;}else {_N81._Lk=new _iz(_K81,_L81,_M81);}}}function audio_listener_velocity(_K81,_L81,_M81){if(_qg==_rg){_K81=yyGetReal(_K81);_L81=yyGetReal(_L81);_M81=yyGetReal(_M81);var _N81=g_WebAudioContext.listener;_N81.setVelocity(_K81,_L81,_M81);if(_N81._f61){_N81._f61._Pz=_K81;_N81._f61._Qz=_L81;_N81._f61._Rz=_M81;}else {_N81._f61=new _iz(_K81,_L81,_M81);}}}function audio_listener_orientation(_K81,_L81,_M81,_O81,_P81,_Q81){if(_qg==_rg){_K81=yyGetReal(_K81);
_L81=yyGetReal(_L81);_M81=yyGetReal(_M81);_O81=yyGetReal(_O81);_P81=yyGetReal(_P81);_Q81=yyGetReal(_Q81);var _N81=g_WebAudioContext.listener;_N81.setOrientation(_K81,_L81,_M81,_O81,_P81,_Q81);if(_N81._g61){_N81._g61[0]=_K81;_N81._g61[1]=_L81;_N81._g61[2]=_M81;_N81._g61[3]=_O81;_N81._g61[4]=_P81;_N81._g61[5]=_Q81;}else {_N81._g61=new Array(_K81,_L81,_M81,_O81,_P81,_Q81);}}}function audio_listener_set_position(_R81,_Q5,_R5,_Zc){if(yyGetInt32(_R81)==0){audio_listener_position(yyGetReal(_Q5),yyGetReal(_R5),
yyGetReal(_Zc));}}function audio_listener_set_velocity(_R81,_S81,_T81,_U81){if(yyGetInt32(_R81)==0){audio_listener_velocity(yyGetReal(_S81),yyGetReal(_T81),yyGetReal(_U81));}}function audio_listener_set_orientation(_R81,_V81,_W81,_X81,_Y81,_Z81,__81){if(yyGetInt32(_R81)==0){audio_listener_orientation(yyGetReal(_V81),yyGetReal(_W81),yyGetReal(_X81),yyGetReal(_Y81),yyGetReal(_Z81),yyGetReal(__81));}}function audio_listener_get_data(_R81){if(yyGetInt32(_R81)==0){var _N81=g_WebAudioContext.listener;var map=ds_map_create();
ds_map_add(map,"x",_N81._Lk._Pz);ds_map_add(map,"y",_N81._Lk._Qz);ds_map_add(map,"z",_N81._Lk._Rz);ds_map_add(map,"vx",_N81._f61._Pz);ds_map_add(map,"vy",_N81._f61._Qz);ds_map_add(map,"vz",_N81._f61._Rz);ds_map_add(map,"lookat_x",_N81._g61[0]);ds_map_add(map,"lookat_y",_N81._g61[1]);ds_map_add(map,"lookat_z",_N81._g61[2]);ds_map_add(map,"up_x",_N81._g61[3]);ds_map_add(map,"up_y",_N81._g61[4]);ds_map_add(map,"up_z",_N81._g61[5]);return map;}return -1;}function audio_emitter_position(_K81,_L81,_M81,_O81){
if(_qg==_rg){var emitter=_m51[yyGetInt32(_K81)];if(emitter!=undefined){_L81=yyGetReal(_L81);_M81=yyGetReal(_M81);_O81=yyGetReal(_O81);emitter.setPosition(_L81,_M81,_O81);emitter._Lk._Pz=_L81;emitter._Lk._Qz=_M81;emitter._Lk._Rz=_O81;}}}function audio_emitter_get_x(_091){var emitter=_m51[yyGetInt32(_091)];if(emitter!=undefined){return emitter._Lk._Pz;}return 0;}function audio_emitter_get_y(_091){var emitter=_m51[yyGetInt32(_091)];if(emitter!=undefined){return emitter._Lk._Qz;}return 0;}function audio_emitter_get_z(_091){
var emitter=_m51[yyGetInt32(_091)];if(emitter!=undefined){return emitter._Lk._Rz;}return 0;}function audio_emitter_velocity(_K81,_L81,_M81,_O81){}function audio_emitter_get_vx(_091){var emitter=_m51[yyGetInt32(_091)];if(emitter!=undefined){return emitter._f61._Pz;}return 0;}function audio_emitter_get_vy(_091){var emitter=_m51[yyGetInt32(_091)];if(emitter!=undefined){return emitter._f61._Qz;}return 0;}function audio_emitter_get_vz(_091){var emitter=_m51[yyGetInt32(_091)];if(emitter!=undefined){return emitter._f61._Rz;
}return 0;}function _g81(){const emitter=g_WebAudioContext.createPanner();emitter.gainnode=g_WebAudioContext.createGain();emitter.gainnode.gain.value=1.0;_z61._V71(emitter.gainnode);emitter.connect(emitter.gainnode);emitter._191=_z61;emitter.maxDistance=100000;emitter.refDistance=100;emitter.pitch=1.0;emitter.rolloffFactor=1;if(_D81==_E51._F51){emitter.rolloffFactor=0;emitter._G81=1;}emitter._291=360;emitter._391=0;emitter._491=0;emitter.distanceModel=_C81;emitter.panningModel='equalpower';emitter.setPosition(0,
0,0.01);emitter._Lk=new _iz(0,0,0.01);return emitter;}function audio_emitter_create(){if(_qg!=_rg)return;var _t9=_n51;_n51++;_m51[_t9]=_g81();return _t9;}function audio_emitter_free(_A81){if(_qg==_rg){_A81=yyGetInt32(_A81);var emitter=_m51[_A81];if(emitter!=undefined){var i;for(i=0;i<_z51;++i){var sound=_j51[i];if(sound._861&&sound._P61===emitter){_A71(sound);}}emitter.disconnect();emitter.gainnode.disconnect();delete _m51[_A81];}}}function audio_master_gain(_K81){if(_qg!=_rg)return;_e61.gain.value=yyGetReal(_K81);
}function audio_set_master_gain(_R81,_l81){if(yyGetInt32(_R81)==0){audio_master_gain(yyGetReal(_l81));}}function audio_get_master_gain(_R81){if(yyGetInt32(_R81)==0){return _e61.gain.value;}return 0;}function audio_emitter_gain(_n81,_l81){if(_qg!=_rg)return;const emitter=_m51[yyGetInt32(_n81)];if(emitter!=undefined){emitter.gainnode.gain.value=yyGetReal(_l81);}}function audio_emitter_get_gain(_n81){if(_qg==_rg){const emitter=_m51[yyGetInt32(_n81)];if(emitter!=undefined){return emitter.gainnode.gain.value;
}}return 0.0;}function audio_emitter_pitch(index,pitch){if(_qg!=_rg)return;index=yyGetInt32(index);const emitter=_m51[index];if(emitter==undefined)return;pitch=yyGetReal(pitch);emitter.pitch=pitch;for(let i=0;i<_z51;++i){const _c81=_j51[i];if(_c81._861){if(_c81._P61===emitter){_c81.playbackpoint=_R71(_c81);_c81._Q61=g_WebAudioContext.currentTime;const _s81=_a61._y71(_c81);if(_c81._V61){_c81._Y61.playbackRate=_s81;}else {_c81._R61.playbackRate.value=_s81;}}}}}function audio_emitter_get_pitch(_091){if(_qg==_rg){
const emitter=_m51[yyGetInt32(_091)];if(emitter!=undefined){return emitter.pitch;}}return 1.0;}function audio_emitter_falloff(_K81,_L81,_M81,_O81){if(_qg!=_rg)return;var emitter=_m51[yyGetInt32(_K81)];if(emitter!=undefined){_h81(emitter,yyGetReal(_L81),yyGetReal(_M81),yyGetReal(_O81));}}function _h81(emitter,falloff_ref,falloff_max,_591){emitter.refDistance=falloff_ref;emitter.maxDistance=falloff_max;emitter.rolloffFactor=_591;emitter.distanceModel=_C81;if(_D81==_E51._F51){emitter._G81=emitter.rolloffFactor;
emitter.rolloffFactor=0;}}function audio_channel_num(_691){_691=yyGetInt32(_691);if(_691<_p51){for(var i=_691;i<_z51;++i){var sound=_j51[i];if(sound._861){_A71(sound);}}if(_z51>_691)_z51=_691;}_p51=_691;}function audio_sound_get_listener_mask(_T61){return 1;}function audio_sound_set_listener_mask(_T61,_791){}function audio_emitter_get_listener_mask(_891){return 1;}function audio_emitter_set_listener_mask(_891,_791){}function audio_get_listener_mask(){return 1;}function audio_set_listener_mask(_791){}function audio_get_listener_count(){
return 1;}function audio_get_listener_info(index){if(_qg==_rg){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(_991){}/*@this {XMLHttpRequest} */function _a91(e){if(_qg!=_rg)return;var targetid=e.target.targetid;debug("error loading sound"+targetid);if(targetid!=undefined){debug("AudioError: "+this.URL);this.completed=false;_b91++;ClearEventListeners(this);}}/*@this {XMLHttpRequest} */function _c91(e){
if(_qg!=_rg)return;var targetid=e.target.targetid;if(_d91)debug("sound loaded: "+targetid);if(targetid!=undefined){this.completed=true;ClearEventListeners(this);try{var _M61=audio_sampledata[targetid];_M61.state=_Q51._U51;g_WebAudioContext.decodeAudioData(e.target.response,function(buffer){_M61.buffer=buffer;_M61.state=_Q51._V51;_b91++;},function(err){_M61.state=_Q51._T51;_b91++;debug("error decoding audio data:"+err);});}catch(_ek){debug("error decoding audio data: "+_ek.message);_b91++;}}}function _e91(_D3){
if(_qg!=_rg)return;this.completed=true;ClearEventListeners(this);var targetid=_D3.target.targetid;if(_d91)debug("streamed sound pre-loaded: "+targetid);var _M61=audio_sampledata[targetid];if(_M61){_M61.state=_Q51._T51;}else {debug("ERROR: No sample data sound for sound ID "+targetid+" in Audio_StreamedSoundPreloaded");}}function _f91(_br,_gg,_b4,_g91){var _M61=audio_sampledata[_gg];_M61.buffer=null;if(_j61){_h91(_br,_gg,_b4,_g91);}else {_M61.state=_Q51._V51;}}function _i91(e){var targetid=e.target.targetid;
debug("Audio_SoundReadyStateChange:targetid/readyState/status:"+targetid+'/'+e.target.readyState+'/'+e.target.status);}function _j91(e){var targetid=e.target.targetid;debug("Audio_SoundProgress:targetid/loaded/total:"+targetid+'/'+e._Qh+'/'+e._k91);}function _l91(_br,_g91){_br=_671(_br);var index;index=_br.indexOf(_g91);if(index>0){_br=_br.substr(0,index);}if(_871){_g91="ogg";}else if(_971){_g91="mp3";}else {_g91="ogg";}_br=_br+"."+_g91;var _m91=new XMLHttpRequest();_m91.open('GET',_br,true);_m91.responseType='arraybuffer';
_m91.URL=_br;_m91.completed=false;return _m91;}function _n91(_br,_gg,_b4,_g91,_o91){if((_qg!=_rg)||(_p91==false)){return undefined;}var _m91=_l91(_br,_g91);if(_o91!=undefined){_m91.targetid={_i31:_o91,_B81:_gg};_m91.onload=_q91;_m91.onerror=_r91;}else {_m91.targetid=_gg;_m91.onload=_c91;_m91.onerror=_a91;_m91.ontimeout=_a91;_m91._OM=_j91;_m91.onreadystatechange=_i91;}_m91.send();_r71[_b4]=_m91;return _gg;}function _h91(_br,_gg,_b4,_g91){if((_qg!=_rg)||(_p91==false)){return undefined;}var _m91=_l91(_br,_g91);
_m91.targetid=_gg;_m91.onload=_e91;_m91.onerror=_a91;_m91.send();_r71[_b4]=_m91;return _gg;}var _s91="Unloaded";var _t91="Loading";var _u91="Loaded";var _v91="Unloading";var _w91=0;var _561=[];/*@constructor */function _x91(_J81){this.groupId=_J81;this._y91=_s91;this._z91=0;this._A91=0;this._B91=[];this.gain=new _C61(1);}_x91.prototype._C91=function(_D91){this._B91.push(_D91);};_x91.prototype._E91=function(_F91){if(this._y91!=_F91){this._y91=_F91;debug("Audio Group "+this.groupId+"-> "+this._y91);if(_F91==_u91){
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);_H3._I3(_G91,0);}}};_x91.prototype._H91=function(){return this.gain.get();};_x91.prototype._I91=function(_l81,_u81){_l81=Math.max(0,_l81);_u81=Math.max(0,_u81);this.gain.set(_l81,_u81);if(_u81==0){_j51.forEach(_761=>{const _J91=this._B91.find(_K91=>_K91==_761._T61);if(_J91!==undefined)_761._961.gain.value=_a61._b61(_761);});}};/*@this {XMLHttpRequest} */function _q91(e){
var targetid=this.targetid._B81;var _L91=this.targetid._i31;if(_d91)debug("sound loaded "+targetid);if(targetid!=undefined){e.target.completed=true;ClearEventListeners(this);try{var _M61=audio_sampledata[targetid];_M61.state=_Q51._U51;g_WebAudioContext.decodeAudioData(e.target.response,function(buffer){_M61.buffer=buffer;_M61.state=_Q51._V51;_L91._M91();},function(err){_M61.state=_Q51._T51;_L91._M91();debug("error decoding audio data:"+err);});}catch(_ek){debug("error decoding audio data: "+_ek.message);
_L91._M91();}}}/*@this {XMLHttpRequest} */function _r91(e){var targetid=this.targetid._B81;var _L91=this.targetid._i31;debug("error loading sound"+targetid);if(targetid!=undefined){debug("AudioError: "+this.URL);this.completed=false;ClearEventListeners(this);_L91._M91();}}_x91.prototype._M91=function(){this._z91--;if(this._B91.length>0){this._A91=((this._B91.length-this._z91)*100)/(this._B91.length);}if(this._z91<=0){this._E91(_u91);}};_x91.prototype._G8=function(){if(this._y91!=_s91){return 0;}if(this._B91.length==0){
return 0;}this._E91(_t91);this._z91=this._B91.length;this._A91=0;var i;for(i=0;i<this._B91.length;++i){var index=this._B91[i];if(_xD.Sounds[index].kind==0){var id=_n91(_W8+_xD.Sounds[index].origName,index,_xD.Sounds[index].pName,_xD.Sounds[index].extension,this);if(id===undefined)this._M91();}else {this._M91();}}};_x91.prototype._N91=function(){if(this._y91!=_u91){return 0;}this._E91(_v91);_I81(this.groupId);var i;for(i=0;i<this._B91.length;++i){var index=this._B91[i];var _M61=audio_sampledata[index];if(_M61!=undefined){
_M61.buffer=null;}}this._E91(_s91);};_x91.prototype._O91=function(){if(this._y91==_u91){return 1;}return 0;};_x91.prototype._P91=function(){if(this._y91==_u91){return 100;}if(this._y91==_t91){return ~~this._A91;}return 0;};function _r61(){var index;for(index=0;index<_xD.Sounds.length;index++){if(_xD.Sounds[index]!==null){var _M61=new _B61();audio_sampledata[index]=_M61;_M61.buffer=null;var _Q91=_xD.Sounds[index].volume;_M61.gain=new _C61(_Q91);_M61._D61=_Q91;_M61.pitch=1.0;_M61.kind=_xD.Sounds[index].kind;
if(_xD.Sounds[index].duration!=undefined){_M61.duration=_xD.Sounds[index].duration;}_M61.groupId=0;var groupId=_xD.Sounds[index].groupId;if(groupId!=undefined){_M61.groupId=groupId;}}}}function _s61(){if(_xD.AudioGroups){var i;_w91=_xD.AudioGroups.length;for(i=0;i<_w91;++i){_561[i]=new _x91(i);}for(i=0;i<audio_sampledata.length;++i){var sound=audio_sampledata[i];if(sound!=undefined){var groupId=sound.groupId;if(_561[groupId]!=undefined){if(_xD.AudioGroups[groupId].enabled)_561[groupId]._C91(i);}}}}}function audio_group_load(_J81){
_J81=yyGetInt32(_J81);if(_J81>0&&_J81<_w91){var _L91=_561[_J81];var result=_L91._G8();return result;}return 0;}function audio_group_unload(_J81){_J81=yyGetInt32(_J81);if(_J81>0&&_J81<_w91){var _L91=_561[_J81];var result=_L91._N91();return result;}return 0;}function audio_group_is_loaded(_J81){_J81=yyGetInt32(_J81);if(_J81==0){return 1;}if(_J81>0&&_J81<_w91){var _L91=_561[_J81];var result=_L91._O91();return result;}return 0;}function audio_group_load_progress(_J81){_J81=yyGetInt32(_J81);if(_J81==0){return 100;}if(_J81>0&&_J81<_w91){
var _L91=_561[_J81];var result=_L91._P91();return result;}return 0;}function audio_group_name(_J81){_J81=yyGetInt32(_J81);if(_J81>=0&&_J81<_w91){var name=_xD.AudioGroups[_J81].name;return name;}return "<undefined>";}function audio_group_stop_all(_J81){_I81(yyGetInt32(_J81));}function audio_group_set_gain(_J81,_l81,_u81){_J81=yyGetInt32(_J81);_l81=yyGetReal(_l81);_u81=yyGetInt32(_u81);const _i31=_561[_J81];if(_i31!==undefined)_i31._I91(_l81,_u81);}function audio_group_get_gain(_J81){_J81=yyGetInt32(_J81);const _i31=_561[_J81];
if(_i31!==undefined)return _i31._H91();return 1;}function audio_create_stream(_el){var _M61=new _B61();_M61.buffer=null;_M61.gain=new _C61(1);_M61._D61=1;_M61.pitch=1;_M61.kind=1;_M61.duration=-1;_M61.groupId=0;_M61._571=yyGetString(_el);var index=audio_sampledata.length;for(var i=_xD.Sounds.length;i<audio_sampledata.length;++i){if(audio_sampledata[i]==null){index=i;break;}}audio_sampledata[index]=_M61;return index;}function audio_destroy_stream(_471){_471=yyGetInt32(_471);const _881=audio_sampledata[_471];
if(_881!=null){if(_881._571!==undefined){audio_stop_sound(_471);audio_sampledata[_471]=null;}}}function _R91(){if(_qg!=_rg)return null;for(var i=0;i<_t51;i++){const sound=_r51[i];if(sound!=null&&!sound._W61){const _Vk=new _D71({sound:_q51+i,priority:10});sound._OQ(_Vk);return sound;}}if(_t51<_p51){const _Vk=new _D71({sound:_q51+_t51,priority:10});var _481=new _N61(_Vk);_r51[_t51]=_481;_481._d51=_q51+_t51;++_t51;return _481;}return null;}function _S91(_T91){return _T91;}function _U91(_T91){return _T91;}function audio_create_buffer_sound(_V91,
_W91,_X91,_i51,_Y91,_Z91){var _481=_R91();if(_481==null)return -1;_V91=yyGetInt32(_V91);_W91=yyGetInt32(_W91);_X91=yyGetInt32(_X91);_i51=yyGetInt32(_i51);_Y91=yyGetInt32(_Y91);_Z91=yyGetInt32(_Z91);var __91=1;if(_Z91==_M51._O51)__91=2;else if(_Z91>_M51._P51){debug("audio_create_buffer_sound - unhandled _channels setting : "+_Z91);return -1;}let _0a1=8;if(_W91==_1a1)_0a1=16;else if(_W91!=_2N){debug("audio_create_buffer_sound - unhandled _bufferFormat setting : "+_W91);return -1;}_X91=Math.min(Math.max(_X91,
8000),48000);buffer_seek(_V91,_gk,0);var _2a1=_Y91;const _3a1=g_WebAudioContext.sampleRate/_X91;const _4a1=1.0/_3a1;const _tI=Math.pow(2,_0a1-1);const _5a1={length:_Y91/(__91*_0a1/8)*_3a1,numberOfChannels:__91,sampleRate:g_WebAudioContext.sampleRate};const _6a1=new AudioBuffer(_5a1);let _7a1=0.0;for(let _SC=0;_SC<_6a1.length;++_SC){for(let _8a1=0;_8a1<_6a1.numberOfChannels;++_8a1){const _9a1=_6a1.getChannelData(_8a1);if(_7a1-1.0>=0.0){_9a1[_SC]=(buffer_read(_V91,_W91)/_tI)-1.0;_7a1-=1.0;}else {_9a1[_SC]=_9a1[_SC-1];
}_7a1+=_4a1;}}var _M61=new _B61();_M61.gain=new _C61(1);_M61._D61=1.0;_M61.pitch=1.0;_M61.kind=0;_M61.duration=_2a1/(_X91*__91*_0a1/8);_M61.groupId=0;_M61._F61=[];_M61.state=_Q51._V51;_M61.buffer=_6a1;_s51[_481._d51-_q51]=_M61;return _481._d51;}function audio_free_buffer_sound(_n71){_n71=yyGetInt32(_n71);var _981=_n71-_q51;if(_981<0||_981>=_t51){debug("sound "+_n71+" does not appear to be a buffer sound, not freeing");return -1;}_r51[_981]._W61=false;_s51[_981]=null;return 0;}function _aa1(){if(_qg!=_rg)return null;
for(let i=0;i<_x51;i++){const sound=_v51[i];if(sound&&!sound._X61){const _Vk=new _D71({sound:_u51+i,priority:10});sound._OQ(_Vk);return sound;}}if(_x51<_p51){var _Lt=_x51;for(let i=0;i<_x51;i++){const sound=_v51[i];if(!sound){_Lt=i;break;}}const _Vk=new _D71({sound:_u51+_Lt,priority:10});var _481=new _N61(_Vk);_v51[_Lt]=_481;_481._d51=_u51+_Lt;if(_Lt==_x51)++_x51;return _481;}return null;}function audio_create_play_queue(_ba1,_X91,_Z91){_ba1=yyGetInt32(_ba1);_X91=yyGetInt32(_X91);_Z91=yyGetInt32(_Z91);if(_Z91!=_M51._N51&&_Z91!=_M51._O51&&_Z91!=_M51._P51){
debug("audio_create_play_queue: channels should be audio_mono, audio_stereo or audio_3d");return -1;}var _ca1=1;if(_Z91==_M51._O51)_ca1=2;if(_X91<1000)_X91=1000;if(_X91>48000)_X91=48000;if(_ba1!=_2N&&_ba1!=_1a1){debug("audio_create_play_queue: unsupported format (use buffer_u8,buffer_s16)");return -1;}var _481=_aa1();if(_481==null){debug("Failed to create play queue.");return -1;}_481._da1=_ba1;_481._ea1=_X91;_481._fa1=_Z91;_481._I71=g_WebAudioContext.createScriptProcessor(_y51,0,_ca1);_481._I71.sourceBuffers=[];
_481._I71._ga1=0;_481._I71._ha1=0;_481._I71.onaudioprocess=function(_ia1){var outputBuffer=_ia1.outputBuffer;var _I71=_481._I71;var _ja1=outputBuffer.numberOfChannels;for(var _ka1=0;_ka1<_y51;_ka1++){if(_I71.sourceBuffers.length>0){for(let _la1=0;_la1<_ja1;_la1++){const _ma1=outputBuffer.getChannelData(_la1);_ma1[_ka1]=_I71.sourceBuffers[0].getChannelData(_la1)[_I71._ha1];}_I71._ha1++;if(_I71._ha1>=_I71.sourceBuffers[0].length){var _na1=_I71.sourceBuffers.shift();var _Bf=_Cf._Df(_481._d51,undefined,_oa1,
undefined);_Bf._H71=_481._d51;_Bf._pa1=_na1._qa1;_Bf._ra1=0;_Bf._Gf=0;_Bf._Hf=true;_I71._ha1=0;}}else {for(let _la1=0;_la1<_ja1;_la1++){const _ma1=outputBuffer.getChannelData(_la1);_ma1[_ka1]=0;}}}};var _M61=new _B61();_M61.gain=new _C61(1);_M61._D61=1.0;_M61.pitch=1.0;_M61.kind=0;_M61.duration=0.0;_M61.groupId=0;_M61._F61=[];_M61.state=_Q51._V51;_w51[_481._d51-_u51]=_M61;return _481._d51;}function audio_queue_sound(_sa1,_V91,_i51,_hV){_sa1=yyGetInt32(_sa1);_V91=yyGetInt32(_V91);_i51=yyGetInt32(_i51);_hV=yyGetInt32(_hV);
var _N71=_sa1-_u51;if(_N71<0&&_N71>=_x51){debug("sound "+_sa1+" does not appear to be a queue sound, can't queue a sound behind it.");return -1;}var _ta1=_v51[_N71];if(!_ta1||_v51[_N71]._X61==false){debug("looks like queue sound "+_sa1+" has been freed already, not queueing behind it.");return -1;}{var __91=1;if(_ta1._fa1==_M51._O51)__91=2;else if(_ta1._fa1>_M51._P51){debug("audio_create_buffer_sound - unhandled queueSound.queueChannels setting : "+_ta1._fa1);return -1;}var _0a1=8;if(_ta1._da1==_1a1)_0a1=16;
else if(_ta1._da1!=_2N){debug("audio_create_buffer_sound - unhandled queueSound.queueFormat setting : "+_ta1._da1);return -1;}buffer_seek(_V91,_ua1,0);var _2a1=_hV;var wavBuffer=buffer_create(44+_2a1,_va1,1);buffer_write(wavBuffer,_8k,_S91(0x46464952));buffer_write(wavBuffer,_8k,_S91(36+_2a1));buffer_write(wavBuffer,_8k,_S91(0x45564157));buffer_write(wavBuffer,_8k,_S91(0x20746d66));buffer_write(wavBuffer,_8k,_S91(16));buffer_write(wavBuffer,_wa1,_U91(1));buffer_write(wavBuffer,_wa1,_U91(__91));buffer_write(wavBuffer,
_8k,_S91(_ta1._ea1));buffer_write(wavBuffer,_8k,_S91(_ta1._ea1*__91*_0a1/8));buffer_write(wavBuffer,_wa1,_U91(__91*_0a1/8));buffer_write(wavBuffer,_wa1,_U91(_0a1));buffer_write(wavBuffer,_8k,_S91(0x61746164));buffer_write(wavBuffer,_8k,_S91(_2a1));buffer_copy(_V91,_i51,_2a1,wavBuffer,44);var _Ha=buffer_get_address(wavBuffer);_ta1._I71._ga1++;try{g_WebAudioContext.decodeAudioData(_Ha,function(buffer){buffer_delete(wavBuffer);buffer._qa1=_V91;_ta1._I71.sourceBuffers.push(buffer);_ta1._I71._ga1--;},
function(err){debug("error decoding audio data:"+err);buffer_delete(wavBuffer);});}catch(_ek){debug("audio_create_buffer_sound - error decoding audio data: "+_ek+" -- "+_ek.message);}}return -1;}function audio_free_play_queue(_sa1){_sa1=yyGetInt32(_sa1);var _N71=_sa1-_u51;if(_N71<0||_N71>=_x51){debug("sound "+_sa1+" does not appear to be a queue sound, not freeing");return -1;}audio_stop_sound(_sa1);_v51[_N71]._X61=false;_v51[_N71]=undefined;delete _v51[_N71];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(_74){_74=yyGetInt32(_74);if(_74<0||_74>audio_get_recorder_count()){debug("audio_get_recorder_info - device "+_74+" 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",_1a1);ds_map_add(map,"sample_rate",16000);ds_map_add(map,"channels",0);return map;}var _xa1=false;var _ya1=undefined;function audio_start_recording(_za1){
var _E8=audio_get_recorder_count();if(_E8<=0){debug("audio_start_recording - not available in this browser.");return -1;}_za1=yyGetInt32(_za1);if(_za1>=_E8){debug("audio_start_recording - device "+_za1+" is not available.");return -1;}var _Aa1=4096;if(_ya1===undefined){_ya1=g_WebAudioContext.createScriptProcessor(_Aa1,1,1);_ya1.wavBuffer=buffer_create(_Aa1*2,_va1,1);_ya1.onaudioprocess=function(_ia1){var inputBuffer=_ia1.inputBuffer;buffer_seek(_ya1.wavBuffer,_gk,0);var _Ba1=g_WebAudioContext.sampleRate/16000;
for(var _la1=0;_la1<inputBuffer.numberOfChannels;_la1++){var _Ca1=inputBuffer.getChannelData(_la1);var _Da1=0;for(var _ka1=0;_ka1<_Aa1;_ka1+=_Ba1){buffer_write(_ya1.wavBuffer,_1a1,Math.round(_Ca1[Math.floor(_ka1)]*32767));++_Da1;}if(_xa1){var map=ds_map_create();g_pBuiltIn.async_load=map;ds_map_add(map,"buffer_id",_ya1.wavBuffer);ds_map_add(map,"channel_index",0);ds_map_add(map,"data_len",_Da1*2);_H3._I3(_Ea1,0);}}};var _Fa1={"audio":true};navigator.getUserMedia(_Fa1,function(_Ga1){var source=g_WebAudioContext.createMediaStreamSource(_Ga1);
source.connect(_ya1);var _Ha1=g_WebAudioContext.createGain();_ya1.connect(_Ha1);_Ha1.connect(g_WebAudioContext.destination);},function(err){debug("audio_start_recording : error has occured in getUserMedia call "+err);});}_xa1=true;return 0;}function audio_stop_recording(_za1){_xa1=false;}function audio_bus_create(){const _w61=_D51?_x61:_y61;const _191=new _w61();_z61._V71(_191._Ia1);return _191;}function audio_effect_create(_ld,_dt){if(_dt&&typeof _dt!=="object")_55("Error: Audio effect parameters must be a struct");
return _Ja1._Ka1(_ld,_dt);}function audio_emitter_bus(_La1,_Ma1){const emitter=_m51[yyGetInt32(_La1)];if(emitter===undefined)return;const _w61=_D51?_x61:_y61;if(!(_Ma1 instanceof _w61))_55("audio_emitter_bus() - argument 'bus' should be a Struct.AudioBus");emitter.gainnode.disconnect();_Ma1._V71(emitter.gainnode);emitter._191=_Ma1;}function audio_emitter_get_bus(_La1){const emitter=_m51[yyGetInt32(_La1)];if(emitter===undefined)return undefined;return emitter._191;}function audio_bus_get_emitters(_Ma1){const _w61=_D51?_x61:_y61;
if(!(_Ma1 instanceof _w61))_55("audio_bus_get_emitters() - argument 'bus' should be a Struct.AudioBus");const _Na1=[];for(const id in _m51){if(_m51[id]._191===_Ma1)_Na1.push(Number(id));}return _Na1;}function _Oa1(_74){if(_qg!=_B71)return;_bn._dn(_74);}function _Pa1(_74){if(_qg!=_B71)return;_bn._cn(_74);}function _Qa1(_74){if(_qg!=_B71)return;_bn._yq(_74);}function _Ra1(){if(_qg!=_B71)return;_bn._Sa1();}function _Ta1(_74){if(_qg!=_B71)return false;return _bn._Aq(_74);}function _Ua1(_74,_Ln){if(_qg!=_B71)return;
_bn._Va1(_74,_Ln);}function _Wa1(_Ln){if(_qg!=_B71)return;_bn._Xa1(_Ln);}function _Ya1(_74,_Ln,_j6){if(_qg!=_B71)return;_bn._Za1(_Mk(_74),_Ln,_Mk(_j6));}function _Rq(_gg){if(_qg!=_B71)return false;if(_bn._26(_gg)===null)return false;return true;}function __a1(_0b1){if(_qg!=_B71)return -1;var _881=_bn._26(_0b1);if(_881===null)return -1;return _881.kind;}function _bJ(_gg){if(_qg!=_B71)return "";var _881=_bn._26(_gg);if(_881===null)return "";return _881.pName;}function _1b1(_gg){if(_qg!=_B71)return "";return _bJ(_gg);
}function _2b1(_Mq,_Dc,_3b1){_Mq=_671(_Mq);if(_qg!=_B71)return;var _771=filename_ext(_Mq);if(_Mq.substring(0,5)=="file:")return -1;var _Ns=_771;_4b1(_Ns,_Mq,_771,_Os,_Ps);var _eU=_bn._Ka1();var _5b1=_bn._26(_eU);_5b1.pName=_Mq;_5b1.extension=_771;_5b1.origName=_Mq;_Cf._Df(_eU,_Mq,_6b1,_r71[_Mq]);return _eU;}function _Sq(_74,_Mq,_Dc,_3b1){if(_qg!=_B71)return;_Qa1(_74);var _771=filename_ext(_Mq);if(_Mq.substring(0,5)=="file:")return -1;var _Ns=_771;_4b1(_Ns,_Mq,_771,_Os,_Ps);var _5b1=_bn._26(_74);_r71[_5b1.pName]=undefined;
_5b1._7b1=[];_5b1.pName=_Mq;_5b1.extension=_771;_5b1.origName=_Mq;_Cf._Df(_74,_Mq,_6b1,_r71[_5b1.pName]);return _74;}function _8b1(_74){if(_qg!=_B71)return;_bn._Cl(_74);}var _9b1=0,_ab1=1,_bb1=2,_cb1=3;function sprite_exists(_74){if(_16._26(yyGetInt32(_74))==null)return false;return true;}function sprite_get_width(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F.width;}function sprite_get_height(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F.height;}function sprite_get_name(_74){
var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return "";return _3F.pName;}function _db1(_74){return sprite_get_name(_74);}function sprite_get_number(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F._T6;}function _eb1(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F.transparent;}function sprite_get_xoffset(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F.xOrigin;}function sprite_get_yoffset(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F.yOrigin;
}function sprite_get_bbox_left(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F._MN.left;}function sprite_get_bbox_right(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F._MN.right;}function sprite_get_bbox_top(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F._MN.top;}function sprite_get_bbox_bottom(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return 0;return _3F._MN.bottom;}function sprite_get_bbox_mode(_74){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return -1;
return _3F._fb1;}function sprite_set_offset(_74,_RJ,_SJ){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return;_3F.xOrigin=yyGetReal(_RJ);_3F.yOrigin=yyGetReal(_SJ);_3F._gb1();}function sprite_set_bbox(_74,_us,_vs,_hb1,_ib1){var _3F=_16._26(yyGetInt32(_74));if(_3F===null)return;_3F._MN.left=yyGetInt32(_us);_3F._MN.top=yyGetInt32(_vs);_3F._MN.right=yyGetInt32(_hb1);_3F._MN.bottom=yyGetInt32(_ib1);}function sprite_set_bbox_mode(_74,_nr){var _3F=_16._26(yyGetInt32(_74));if(_3F==null)return;_nr=yyGetInt32(_nr);
if((_nr<0)||(_nr>2))return;if(_nr==_3F._fb1)return;_3F._fb1=_nr;}function sprite_set_alpha_from_sprite(_4l,_rj){var _wk=_16._26(yyGetInt32(_4l));if(_wk===null)return false;if(!_wk._js){_55("Error: Can't set the alpha channel of normal sprite. It must 'duplicated' first");return false;}var _xk=_16._26(yyGetInt32(_rj));if(_xk===null)return false;var _E8=_xk._T6;if(_E8>_wk._T6){_E8=_wk._T6;}for(var i=0;i<_E8;i++){var _jb1=_wk._05[i];var _kb1=_xk._05[i];_Ks(_jb1,_kb1);}return true;}var _lb1=_mb1;function _mb1(_S4,
_Q5,_R5,_nj,_oj,_Wr,_Xr){_S4=yyGetInt32(_S4);_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);_Wr=yyGetBool(_Wr);var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);var _qb1=_16._26(_S4);_qb1._T6++;_nb1.width=_qb1.width;_nb1.height=_qb1.height;_ob1._rb1(canvas,_Q5,_R5,_nj,_oj,0,0,_nb1.width,_nb1.height);if(_Wr){_nb1.complete=_0s(_ob1,_nj,_oj);}else {_nb1.complete=true;}_qb1._T6++;var __4=new _3s();_qb1._05[_qb1._05.length]=__4;__4.x=0;__4.y=0;__4.w=_qb1.width;
__4.h=_qb1.height;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_ks(_nb1);__4._95=_35[__4.tp];__4._95.complete=true;return _S4;}var sprite_create_from_surface=_sb1;function _sb1(_gg,_Q5,_R5,_nj,_oj,_Wr,_Xr,_tb1,_ub1){_gg=yyGetInt32(_gg);_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);_Wr=yyGetBool(_Wr);_tb1=yyGetInt32(_tb1);_ub1=yyGetInt32(_ub1);var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);
_nb1.width=_Zr._26(_gg).width;_nb1.height=_Zr._26(_gg).height;_ob1._rb1(_Zr._26(_gg),0,0);if(_Wr){_nb1.complete=_0s(_ob1,_nj,_oj);}else {_nb1.complete=true;}var _qb1=new _vb1();var _eU=_16._wb1(_qb1);_qb1.pName="surface.copy";_qb1.width=_nj;_qb1.height=_oj;_qb1._MN=new _OE();_qb1._MN.right=_qb1.width;_qb1._MN.bottom=_qb1.height;_qb1.transparent=true;_qb1.smooth=true;_qb1.preload=true;_qb1._fb1=0;_qb1._Pq=false;_qb1.xOrigin=_tb1;_qb1.yOrigin=_ub1;_qb1._js=true;_qb1._T6=1;_qb1._xb1=false;_qb1._yb1=false;
_qb1._U6=[];_qb1._05=[];_qb1.Masks=[];_qb1._gb1();var __4=new _3s();_qb1._05[0]=__4;__4.x=0;__4.y=0;__4.w=_qb1.width;__4.h=_qb1.height;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_ks(_nb1);__4._95=_35[__4.tp];__4._95.complete=true;_zb1(__4);return _eU;}var sprite_add_from_surface=_Ab1;function _Ab1(_S4,_gg,_Q5,_R5,_nj,_oj,_Wr,_Xr){_S4=yyGetInt32(_S4);_gg=yyGetInt32(_gg);_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);
_Wr=yyGetBool(_Wr);var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);var _qb1=_16._26(_S4);_qb1._T6++;_nb1.width=_qb1.width;_nb1.height=_qb1.height;_ob1._rb1(_Zr._26(_gg),0,0,_nj,_oj,0,0,_nb1.width,_nb1.height);if(_Wr){_nb1.complete=_0s(_ob1,_nj,_oj);}else {_nb1.complete=true;}var __4=new _3s();_qb1._05[_qb1._05.length]=__4;__4.x=0;__4.y=0;__4.w=_qb1.width;__4.h=_qb1.height;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_ks(_nb1);
__4._95=_35[__4.tp];__4._95.complete=true;return _S4;}function sprite_delete(_S4){_16._Cl(yyGetInt32(_S4));}function sprite_save(_S4,_4n,_Mq){_Fb("sprite_save()");}var sprite_duplicate=_Bb1;function _Bb1(_S4){var _3F=_16._26(yyGetInt32(_S4));if(_3F==null)return 0;var _qb1=new _vb1();var _eU=_16._wb1(_qb1);_qb1.pName=_3F.pName+".copy";_qb1.width=_3F.width;_qb1.height=_3F.height;_qb1._MN._qj(_3F._MN);_qb1.transparent=_3F.transparent;_qb1.smooth=_3F.smooth;_qb1.preload=_3F.preload;_qb1._fb1=_3F._fb1;_qb1._Pq=_3F._Pq;
_qb1.xOrigin=_3F.xOrigin;_qb1.yOrigin=_3F.yOrigin;_qb1._js=true;_qb1._T6=_3F._T6;_qb1._Cb1=_3F._Cb1;_qb1._xb1=_3F._xb1;_qb1.playbackspeedtype=_3F.playbackspeedtype;_qb1.playbackspeed=_3F.playbackspeed;_qb1._yb1=_3F._yb1;_qb1._U6=[];_qb1._05=[];_qb1.Masks=[];for(var i=0;i<_3F._T6;i++){var __4=new _3s();_qb1._05[i]=__4;__4._js(_3F._05[i]);var _hs=_is(_3F._05[i]);__4.tp=_ks(_hs);__4.x=0;__4.y=0;__4._95=_35[__4.tp];__4._95.complete=true;}return _eU;}function sprite_add(_el,_Db1,_Wr,_Xr,_tb1,_ub1){_el=yyGetString(_el);
_Db1=yyGetInt32(_Db1);if(_Db1<0)return -1;if(_Db1==0)_Db1=1;var _qb1=new _vb1();_qb1._Eb1=true;if(_el.substring(0,5)=="file:")return -1;_qb1.pName=_el;var _eU=_16._wb1(_qb1);if(_el.endsWith('.json')){_qb1._Fb1(_el,function(err){var _Al=_Cf._Df(_eU,_el,_Gb1,{});_Al._Hf=true;_Al._Gf=err?_vE:_rE;});return _eU;}var _Ns=_el;var _h5=_V8(_Ns);_35[_h5].onload=_Os;_35[_h5].onerror=_Ps;_Cf._Df(_eU,_el,_Gb1,_35[_h5]);_qb1.width=-1;_qb1.height=-1;_qb1._MN=new _OE();_qb1._MN.right=0;_qb1._MN.bottom=0;_qb1.transparent=_Wr;
_qb1.smooth=yyGetBool(_Xr);_qb1.preload=true;_qb1._fb1=0;_qb1._Pq=false;_qb1.xOrigin=yyGetInt32(_tb1);_qb1.yOrigin=yyGetInt32(_ub1);_qb1._js=false;_qb1._T6=_Db1;_qb1._Cb1=0;_qb1._xb1=false;_qb1._yb1=false;_qb1._U6=[];_qb1._05=[];_qb1.Masks=[];for(var i=0;i<_Db1;i++){var __4=new _3s();_qb1._05[i]=__4;__4.x=0;__4.y=0;__4.w=0;__4.h=0;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=0;__4.CropHeight=0;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_h5;__4._95=_35[__4.tp];}return _eU;}function sprite_replace(_S4,_el,_Db1,_Wr,
_Xr,_tb1,_ub1){_S4=yyGetInt32(_S4);_el=yyGetString(_el);_Db1=yyGetInt32(_Db1);if(_Db1<0)return -1;if(_Db1==0)_Db1=1;var _qb1=_16._26(_S4);_qb1._Eb1=true;if(_el.substring(0,5)=="file:")return -1;var _Ns=_el;if(_el.endsWith('.json')){_qb1._Fb1(_el,function(err){var _Al=_Cf._Df(_S4,_el,_Gb1,{});_Al._Hf=true;_Al._Gf=err?_vE:_rE;});return _S4;}var _h5=_V8(_Ns);_35[_h5].onload=_Os;_35[_h5].onerror=_Ps;_Cf._Df(_S4,_el,_Gb1,_35[_h5]);_qb1.width=0;_qb1.height=0;_qb1._MN=new _OE();_qb1._MN.right=0;_qb1._MN.bottom=0;
_qb1.transparent=yyGetBool(_Wr);_qb1.smooth=yyGetBool(_Xr);_qb1.preload=true;_qb1._fb1=0;_qb1._Pq=false;_qb1.xOrigin=yyGetInt32(_tb1);_qb1.yOrigin=yyGetInt32(_ub1);_qb1._js=false;_qb1._T6=_Db1;_qb1._Cb1=0;_qb1._xb1=false;_qb1._yb1=false;_qb1._U6=[];_qb1._05=[];_qb1.Masks=[];for(var i=0;i<_Db1;i++){var __4=new _3s();_qb1._05[i]=__4;__4.x=0;__4.y=0;__4.w=0;__4.h=0;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=0;__4.CropHeight=0;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_h5;__4._95=_35[__4.tp];}return _S4;}function sprite_merge(_4l,
_rj){_4l=yyGetInt32(_4l);var _wk=_16._26(_4l);var _xk=_16._26(yyGetInt32(_rj));var w=_wk.width;var h=_wk.height;var _Hb1=_4a;for(var i=0;i<_xk._T6;i++){var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);_nb1.width=w;_nb1.height=h;_4a=_ob1;_ob1._rb1(_xk._05[i]._95,0,0,w,h,0,0,_nb1.width,_nb1.height);_nb1.complete=true;var __4=new _3s();_wk._05[_wk._05.length]=__4;__4.x=0;__4.y=0;__4.w=w;__4.h=h;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=w;__4.CropHeight=h;__4.ow=__4.w;__4.oh=__4.h;
__4.tp=_ks(_nb1);__4._95=_35[__4.tp];__4._95.complete=true;_wk._T6++;}_4a=_Hb1;return _4l;}function sprite_assign(_7_,_C6){_7_=yyGetInt32(_7_);var _wk=_16._26(_7_);var _xk=_16._26(yyGetInt32(_C6));_wk.width=_xk.width;_wk.height=_xk.height;_wk._MN=new _OE();_wk._MN._qj(_xk);_wk.transparent=_xk.transparent;_wk.smooth=_xk.smooth;_wk.preload=_xk.preload;_wk._fb1=_xk._fb1;_wk._Pq=_xk._Pq;_wk.xOrigin=_xk.xOrigin;_wk.yOrigin=_xk.yOrigin;_wk._js=true;_wk._T6=_xk._T6;_wk._Cb1=_xk._Cb1;_wk._xb1=_xk._xb1;_wk.playbackspeedtype=_xk.playbackspeedtype;
_wk.playbackspeed=_xk.playbackspeed;_wk._yb1=_xk._yb1;_wk._U6=_xk._U6.slice(0);_wk._05=[];if(_xk.Masks){_wk.Masks=_xk.Masks.slice();}var w=_wk.width;var h=_wk.height;var _Hb1=_4a;for(var i=0;i<_xk._T6;i++){var _kb1=_xk._05[i];var __4=new _3s();_wk._05[i]=__4;__4.x=_kb1.x;__4.y=_kb1.y;__4.w=_kb1.w;__4.h=_kb1.h;__4.XOffset=_kb1.XOffset;__4.YOffset=_kb1.YOffset;__4.CropWidth=_kb1.CropWidth;__4.CropHeight=_kb1.CropHeight;__4.ow=_kb1.ow;__4.oh=_kb1.oh;__4.tp=_kb1.tp;__4._95=_kb1._95;}_4a=_Hb1;return _7_;}function sprite_collision_mask(_S4,
_Ib1,_Jb1,_Kb1,_Lb1,_Mb1,_Nb1,_Dc,_Ob1){var _3F=_16._26(yyGetInt32(_S4));if(_3F===null){return false;}_3F._Pq=true;_3F._U6=[];_3F._yb1=yyGetInt32(_Ib1);_3F._MN=new _OE();if(_3F._T6==0){return;}_Jb1=yyGetInt32(_Jb1);_Dc=yyGetInt32(_Dc);_Ob1=yyGetInt32(_Ob1);_3F._fb1=_Jb1;if(_Jb1==0){var _Pb1=100000;var _Qb1=-100000;var _Rb1=100000;var _Sb1=-100000;for(var i=0;i<_3F._T6;i++){var _Tb1=_3F._05[i];var _Ub1=_Vb1(_Tb1);var index=0;for(var _dl=0;_dl<_Tb1.oh;_dl++){for(var _17=0;_17<_Tb1.ow;_17++){var index=((_dl*_Tb1.ow+_17)*4)+3;
if(index<_Ub1.length){if(_Ub1[index]>_Ob1){if(_17<_Pb1)_Pb1=_17;if(_17>_Qb1)_Qb1=_17;if(_dl<_Rb1)_Rb1=_dl;if(_dl>_Sb1)_Sb1=_dl;}}}}}if(_Pb1==0x7FFFFFFF){_3F._MN.left=0;_3F._MN.right=0;_3F._MN.top=0;_3F._MN.bottom=0;}else {_3F._MN.left=_Pb1;_3F._MN.right=_Qb1;_3F._MN.top=_Rb1;_3F._MN.bottom=_Sb1;}}else if(_Jb1==1){_3F._MN.left=0;_3F._MN.right=_3F.width;_3F._MN.top=0;_3F._MN.bottom=_3F.height;}else {_3F._MN.left=yyGetInt32(_Kb1);_3F._MN.right=yyGetInt32(_Mb1);_3F._MN.top=yyGetInt32(_Lb1);_3F._MN.bottom=yyGetInt32(_Nb1);
}var _05=_3F._05;_3F._U6=[];if(_3F._yb1){for(var i=0;i<_3F._T6;i++){_3F._U6[i]=_Wb1(null,_3F._05[i],_Jb1,_3F._MN,_Dc,_Ob1);}}else {_3F._U6[0]=_Wb1(_3F._U6[0],_3F._05[0],_Jb1,_3F._MN,_Dc,_Ob1);for(var i=1;i<_3F._T6;i++){_3F._U6[0]=_Wb1(_3F._U6[0],_3F._05[i],_Jb1,_3F._MN,_Dc,_Ob1);}}_3F._xb1=true;}function _Wb1(_Xb1,_Tb1,_Jb1,_Yb1,_Dc,_Ob1){var w=_Tb1.ow;var h=_Tb1.oh;var _Zb1=h*w;var _6G=new Uint8Array(_Zb1);for(var _17=0;_17<_Zb1;_17++)_6G[_17]=false;if(_Dc==_9b1){var _Ub1=_Vb1(_Tb1);var index=0;for(var i=0;i<_Ub1.length;
i+=4){if(_Ub1[i+3]>_Ob1){_6G[index]=true;}else {_6G[index]=false;}index++;}}else {switch(_Dc){case _ab1:{for(var y=_Yb1.top;y<=_Yb1.bottom;y++){for(var x=_Yb1.left;x<=_Yb1.right;x++){_6G[x+(y*w)]=true;}}break;}case _bb1:{var _h7=(_Yb1.left+_Yb1.right)/2;var _fb=_h7-_Yb1.left+0.5;var _i7=(_Yb1.top+_Yb1.bottom)/2;var _gb=_i7-_Yb1.top+0.5;for(var y=_Yb1.top;y<=_Yb1.bottom;y++){for(var x=_Yb1.left;x<=_Yb1.right;x++){if((_fb>0)&&(_gb>0)){_6G[x+(y*w)]=sqr((x-_h7)/_fb)+sqr((y-_i7)/_gb)<1;}}}break;}case _cb1:{var _h7=(_Yb1.left+_Yb1.right)/2;
var _fb=_h7-_Yb1.left+0.5;var _i7=(_Yb1.top+_Yb1.bottom)/2;var _gb=_i7-_Yb1.top+0.5;for(var y=_Yb1.top;y<=_Yb1.bottom;y++){for(var x=_Yb1.left;x<=_Yb1.right;x++){if((_fb>0)&&(_gb>0)){_6G[x+(y*w)]=Math.abs((x-_h7)/_fb)+Math.abs((y-_i7)/_gb)<1;}}}break;}}}if(_Xb1!=null){for(var i=0;i<_6G.length;i++){if(_Xb1[i])_6G[i]=true;}}return _6G;}function sprite_set_cache_size(_S4,_IG){_S4=yyGetInt32(_S4);var _3F=_16._26(_S4);if(!_3F){_55("Trying to adjust the cache on a non-existant sprite ("+string(_S4)+")");return false;
}_IG=yyGetInt32(_IG);var _05=_3F._05;for(var i=0;i<_3F._T6;i++){if(_05[i]._F8>_IG){_05[i]._D8=[];_05[i]._E8=0;}_05[i]._F8=_IG;}}function sprite_set_cache_size_ext(_S4,_74,_IG){_S4=yyGetInt32(_S4);var _3F=_16._26(_S4);if(!_3F){_55("Trying to adjust the cache on a non-existant sprite ("+string(_S4)+")");return false;}_74=yyGetInt32(_74);if(_74<0||_74>_3F._T6){_55("Trying to adjust the cache on a non-existant sprite sub image ("+string(_S4)+", "+string(_74)+")");return;}_IG=yyGetInt32(_IG);var __4=_3F._05[_74];
if(__4._F8>_IG){__4._D8=[];__4._E8=0;}__4._F8=_IG;}function sprite_get_tpe(_74,__b1){_74=yyGetInt32(_74);__b1=yyGetInt32(__b1);var _3F=_16._26(_74);if(!_3F){_55("Trying to adjust the cache on a non-existant sprite ("+string(_74)+")");return false;}if(__b1<0||__b1>_3F._T6){_55("Trying to adjust the cache (tpe) on a non-existant sprite sub image ("+string(_74)+", "+string(__b1)+")");return;}var _05=_3F._05;if(_05[__b1]){var __4=_05[__b1];var _0c1=new _1c1();_0c1.tpe_x=__4.x;_0c1.tpe_y=__4.y;_0c1.tpe_w=__4.w;
_0c1.tpe_h=__4.h;_0c1.tpe_XOffset=__4.XOffset;_0c1.tpe_YOffset=__4.YOffset;_0c1.tpe_CropWidth=__4.CropWidth;_0c1.tpe_CropHeight=__4.CropHeight;_0c1.tpe_ow=__4.ow;_0c1.tpe_oh=__4.oh;_0c1.tpe_tp=__4.x;_0c1._2c1=__4._js;_0c1.tpe_texture=__4._95;return _0c1;}return null;}function sprite_get_texture(_3c1,_4c1){_3c1=yyGetInt32(_3c1);if(sprite_exists(_3c1)){var _En=_16._26(_3c1);var __4=_En._5c1(yyGetInt32(_4c1));if(__4){return({_Ec:__4._95,_Fc:__4,toString:()=>{return "Texture:"+__4._95.URL;}});}}return null;
}function sprite_get_uvs(_3c1,_4c1){_3c1=yyGetInt32(_3c1);if(sprite_exists(_3c1)){var _En=_16._26(_3c1);var __4=_En._5c1(yyGetInt32(_4c1));var _95=__4._95;var _Ws=1.0/_95.width;var _Xs=1.0/_95.height;var _Ys=[];_Ys.push(__4.x*_Ws,__4.y*_Xs,(__4.x+__4.CropWidth)*_Ws,(__4.y+__4.CropHeight)*_Xs);_Ys.push(__4.XOffset,__4.YOffset,__4.CropWidth/__4.ow,__4.CropHeight/__4.ow);return _Ys;}return null;}function sprite_prefetch(_3c1){var _3F=_16._26(yyGetInt32(_3c1));if(_3F===null){return -1;}for(var i=0;i<_3F._T6;i++){
var _05=_3F._05;if(_05[i]){var __4=_05[i];if(__4._95){if(__4._95._Ba){_0t(__4._95._Ba);return 0;}}}}return -1;}function sprite_prefetch_multi(_6c1){if(Array.isArray(_6c1)){for(var _17=0;_17<_6c1.length;_17++){var _3F=_16._26(_6c1[_17]);if(_3F===null)continue;for(var i=0;i<_3F._T6;i++){var _05=_3F._05;if(_05[i]){var __4=_05[i];if(__4._95){if(__4._95._Ba){_0t(__4._95._Ba);}}}}}return 0;}else {return -1;}}function sprite_flush(_3c1){var _3F=_16._26(yyGetInt32(_3c1));if(_3F===null){return -1;}for(var i=0;i<_3F._T6;i++){
var _05=_3F._05;if(_05[i]){var __4=_05[i];if(__4._95){if(__4._95._Ba){_4t(__4._95._Ba);return 0;}}}}return -1;}function sprite_flush_multi(_6c1){if(Array.isArray(_6c1)){for(var _17=0;_17<_6c1.length;_17++){var _3F=_16._26(_6c1[_17]);if(_3F===null)continue;for(var i=0;i<_3F._T6;i++){var _05=_3F._05;if(_05[i]){var __4=_05[i];if(__4._95){if(__4._95._Ba){_4t(__4._95._Ba);}}}}}return 0;}else {return -1;}}function sprite_set_speed(_3c1,_lm,_ld){var _3F=_16._26(yyGetInt32(_3c1));if(_3F!=null){_3F.playbackspeed=yyGetReal(_lm);
_3F.playbackspeedtype=yyGetInt32(_ld);if(_3F.sequence!=null){_3F.sequence._7c1=_3F.playbackspeed;_3F.sequence._8c1=_3F.playbackspeedtype;}}}function sprite_get_speed_type(_3c1){var _3F=_16._26(yyGetInt32(_3c1));if(_3F!=null){if(_3F.sequence!=null){return _3F.sequence._8c1;}else {return _3F.playbackspeedtype;}}else return -1;}function sprite_get_speed(_3c1){var _3F=_16._26(yyGetInt32(_3c1));if(_3F!=null){if(_3F.sequence!=null){return _3F.sequence._7c1;}else {return _3F.playbackspeed;}}else return -1;}function sprite_get_nineslice(_3c1){
var _3F=_16._26(yyGetInt32(_3c1));if(_3F!=null){if(_3F._9c1!=null){return _3F._9c1;}else {_3F._9c1=new _ac1(null);return _3F._9c1;}}else return null;}function sprite_set_nineslice(_3c1,_bc1){if((typeof(_bc1)!=="object")||(_bc1==null)||!(_bc1 instanceof _ac1)){_55("sprite_set_nineslice() - specified nineslice is not valid");return;}var _3F=_16._26(yyGetInt32(_3c1));if(_3F!=null){_3F._9c1=_bc1;_3F._9c1._D8._cc1=true;}else return null;}function sprite_nineslice_create(){return new _ac1(null);}function sprite_get_info(_3c1){
var _P4=undefined;var _3F=_16._26(yyGetInt32(_3c1));if(_3F!=null){var type=(_3F._yL!=undefined)?1:(_3F._zL!=undefined)?2:0;_P4=new _LG();variable_struct_set(_P4,"width",_3F.width);variable_struct_set(_P4,"height",_3F.height);variable_struct_set(_P4,"xoffset",_3F.xOrigin);variable_struct_set(_P4,"yoffset",_3F.yOrigin);variable_struct_set(_P4,"transparent",_3F.transparent);variable_struct_set(_P4,"smooth",_3F.smooth);variable_struct_set(_P4,"preload",_3F.preload);variable_struct_set(_P4,"type",type);variable_struct_set(_P4,
"bbox_left",_3F._MN.left);variable_struct_set(_P4,"bbox_right",_3F._MN.right);variable_struct_set(_P4,"bbox_top",_3F._MN.top);variable_struct_set(_P4,"bbox_bottom",_3F._MN.bottom);variable_struct_set(_P4,"name",_3F.pName);variable_struct_set(_P4,"num_subimages",_3F._T6);variable_struct_set(_P4,"frame_speed",(_3F.playbackspeed!=undefined)?_3F.playbackspeed:-1);variable_struct_set(_P4,"frame_type",(_3F.playbackspeedtype!=undefined)?_3F.playbackspeedtype:-1);variable_struct_set(_P4,"use_mask",_3F._Pq);
variable_struct_set(_P4,"num_masks",_3F._U6.length);switch(type){case 0:{var _dc1=[];for(var _I6=0;_I6<_3F._05.length;++_I6){var __4=_3F._05[_I6];var _K9=new _LG();variable_struct_set(_K9,"x",__4.x);variable_struct_set(_K9,"y",__4.y);variable_struct_set(_K9,"w",__4.w);variable_struct_set(_K9,"h",__4.h);variable_struct_set(_K9,"x_offset",__4.XOffset);variable_struct_set(_K9,"y_offset",__4.YOffset);variable_struct_set(_K9,"crop_width",__4.CropWidth);variable_struct_set(_K9,"crop_height",__4.CropHeight);
variable_struct_set(_K9,"original_width",__4.ow);variable_struct_set(_K9,"original_height",__4.oh);variable_struct_set(_K9,"texture",__4.tp);_dc1.push(_K9);}variable_struct_set(_P4,"frames",_dc1);}break;case 1:break;case 2:if(_3F._zL!=undefined){var _ec1=_3F._zL;variable_struct_set(_P4,"num_atlas",_ec1._p8._z5.length);var _fc1=[];for(var _I6=0;_I6<_P4.gmlnum_atlas;++_I6){_fc1.push(_ec1._p8._z5[_I6]._95._85);}variable_struct_set(_P4,"atlas_textures",_fc1);variable_struct_set(_P4,"premultiplied",_ec1._r8);
var _gc1=_ec1._s3;var _hc1=[];for(var _I6=0;_I6<_gc1.animations.length;++_I6){_hc1.push(_gc1.animations[_I6].name);}variable_struct_set(_P4,"animation_names",_hc1);var _ic1=[];for(var _I6=0;_I6<_gc1.skins.length;++_I6){_ic1.push(_gc1.skins[_I6].name);}variable_struct_set(_P4,"skin_names",_ic1);var _jc1=[];for(var _I6=0;_I6<_gc1.bones.length;++_I6){var bone=_gc1.bones[_I6];var _kc1=new _LG();variable_struct_set(_kc1,"parent",(bone.parent!=undefined)?bone.parent.name:undefined);variable_struct_set(_kc1,"name",
bone.name);variable_struct_set(_kc1,"index",bone.index);variable_struct_set(_kc1,"length",bone.length);variable_struct_set(_kc1,"x",bone.x);variable_struct_set(_kc1,"y",bone.y);variable_struct_set(_kc1,"rotation",bone.rotation);variable_struct_set(_kc1,"scale_x",bone.scaleX);variable_struct_set(_kc1,"scale_y",bone.scaleY);variable_struct_set(_kc1,"shear_x",bone.shearX);variable_struct_set(_kc1,"shear_y",bone.shearY);variable_struct_set(_kc1,"transform_mode",bone._lc1);_jc1.push(_kc1);}variable_struct_set(_P4,
"bones",_jc1);var _mc1=[];for(var _I6=0;_I6<_gc1.slots.length;++_I6){var slot=_gc1.slots[_I6];var _nc1=new _LG();variable_struct_set(_nc1,"name",slot.name);variable_struct_set(_nc1,"index",slot.index);variable_struct_set(_nc1,"bone",(slot._58!=undefined)?slot._58.name:"(none)");variable_struct_set(_nc1,"attachment",slot._Eb);variable_struct_set(_nc1,"red",slot.color._D4);variable_struct_set(_nc1,"green",slot.color._E4);variable_struct_set(_nc1,"blue",slot.color._F4);variable_struct_set(_nc1,"alpha",slot.color._G4);
variable_struct_set(_nc1,"blend_mode",slot._Ea);if(_nc1._za!=undefined){variable_struct_set(_nc1,"dark_red",slot._za._D4);variable_struct_set(_nc1,"dark_green",slot._za._E4);variable_struct_set(_nc1,"dark_blue",slot._za._F4);variable_struct_set(_nc1,"dark_alpha",slot._za._G4);}_mc1.push(_nc1);}variable_struct_set(_P4,"slots",_mc1);}break;}variable_struct_set(_P4,"nineslice",(_3F._9c1!=undefined)?_3F._9c1:undefined);if(_3F.sequence!=undefined){var _oc1=[];var _pc1=_3F.sequence._qc1;if(_pc1!=undefined){
for(var _I6=0;_I6<_pc1._LT;++_I6){var _qN=_pc1._PT[_I6];var time=_qN._QT;for(var _dl in _qN._yr){var _rc1=_qN._yr[_dl];if(_rc1._sc1!=undefined){for(var e=0;e<_rc1._sc1.length;++e){var _7l=new _LG();variable_struct_set(_7l,"frame",time);variable_struct_set(_7l,"message",_rc1._sc1[e]);_oc1.push(_7l);}}}}}variable_struct_set(_P4,"messages",_oc1);var _tc1=[];var _JT=_3F.sequence._KS[0];if(_JT!=undefined){var _pc1=_JT._NS;for(var _I6=0;_I6<_pc1._LT;++_I6){var _qN=_pc1._PT[_I6];var time=_qN._QT;var _7l=new _LG();variable_struct_set(_7l,
"frame",time);variable_struct_set(_7l,"duration",_qN._PS);for(var _dl in _qN._yr){var _rc1=_qN._yr[_dl];variable_struct_set(_7l,"image_index",_rc1.__P);break;}_tc1.push(_7l);}}variable_struct_set(_P4,"frame_info",_tc1);}}return _P4;}function ansi_char(__3){return String.fromCharCode(yyGetInt32(__3)&0xff);}function chr(__3){__3=yyGetInt32(__3);if(__3>=0x10000){var _uc1=__3;_uc1-=0x10000;var _vc1=(((_uc1>>10)&0x3FF)+0xD800);var _wc1=(_uc1&0x3FF)+0xDC00;var result=String.fromCharCode(_vc1,_wc1);return result;}else {
return String.fromCharCode(__3);}return 0;}function ord(__n){if(!__n||__n=="")return 0;__n=yyGetString(__n);var _uc1=__n.charCodeAt(0);var _xc1,_yc1;if(0xD800<=_uc1&&_uc1<=0xDBFF){_xc1=_uc1;_yc1=__n.charCodeAt(1);return((_xc1-0xD800)*0x400)+(_yc1-0xDC00)+0x10000;}return _uc1;}function real(_Pc){if(_Pc==undefined){_55("real() argument is undefined");}else if(_Pc==null){_55("real() argument is unset");}else if(typeof(_Pc)=="boolean"){if(_Pc)return 1;else return 0;}else if(typeof(_Pc)=="number"){return _Pc;}else if(typeof(_Pc)=="string"){
var _zc1=parseFloat(_Pc);if(isNaN(_zc1)){_55("unable to convert string "+_Pc+" to real");}else {return _zc1;}}else if(_Pc instanceof Long){return _Pc._WF();}else if(_Pc instanceof Array){_55("real() argument is array");}return parseFloat(_Pc);}function bool(_Pc){if(_Pc==undefined){return 0;}else if(_Pc==null){_55("bool() argument is unset");}else if(typeof(_Pc)=="boolean"){return _Pc;}else if(typeof(_Pc)=="number"){return _Pc>0.5;}else if(typeof(_Pc)=="string"){if(_Pc==="true"){return true;}else if(_Pc==="false"){return false;
}var _zc1=parseFloat(_Pc);if(isNaN(_zc1)){_55("unable to convert string "+_Pc+" to bool");}else {return _zc1>0.5;}}else if(_Pc instanceof Long){return _Pc._WF()>0.5;}else if(_Pc instanceof Array){_55("bool() argument is array");}else {return _Pc!=g_pBuiltIn.pointer_null;}}var _Ac1=new RegExp('{([0-9]+)}','g');function _3E(__n,_2E){return __n.replaceAll(_Ac1,function(match,_i31){var _74=parseInt(_i31);if(_74<0||_74>=_2E.length)return match;return yyGetString(_2E[_74]);})}function string(_Sk){if(arguments.length==1){
return yyGetString(_Sk);}if(typeof(_Sk)!="string"){_55("string() trying to use string template but argument0 is not a string");}var _2E=[];for(var _I6=1;_I6<arguments.length;++_I6){_2E.push(arguments[_I6]);}return _3E(_Sk,_2E);}function string_ext(__n,_2E){if(typeof(__n)!="string"){_55("string_ext() argument0 is not a string");}if(!(_2E instanceof Array)){_55("string_ext() argument1 is not an array");}return _3E(__n,_2E);}function string_format(__3,_Bc1,_Cc1){if(__3==undefined){return "undefined";}__3=yyGetReal(__3);
_Cc1=yyGetInt32(_Cc1);var _Dc1=__3.toFixed(_Cc1).toString().split(".");var _Kl;for(var i=0;i<_Dc1.length;i++){switch(i){case 0:while(_Dc1[i].length<yyGetInt32(_Bc1)){_Dc1[i]=" "+_Dc1[i];}_Kl=_Dc1[i];break;case 1:while(_Dc1[i].length<_Cc1){_Dc1[i]=_Dc1[i]+"0";}_Kl=_Kl+"."+_Dc1[i];break;}}return _Kl;}function string_length(__n){if(!__n){return 0;}__n=yyGetString(__n);var _Ec1=0;for(var i=0;i<__n.length;++i){++_Ec1;var _Fc1=__n.charCodeAt(i);if(0xD800<=_Fc1&&_Fc1<=0xDBFF){++i;}}return _Ec1;}function string_byte_length(__n){
if(!__n){return 0;}__n=yyGetString(__n);var i=0,_0j=__n.length;var out=0;while(i<_0j){var c=__n.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 _Gc1(_Kl,_Hc1){var _Ic1=0;var _HF=_Hc1-1;while(_HF>0){var _Jc1=_Kl.charCodeAt(_HF);if(0xDC00<=_Jc1&&_Jc1<=0xDFFF){--_Ic1;--_HF;}--_HF;}return _Hc1+_Ic1+1;}function _Kc1(__n,_Lc1){_Lc1--;var _Mc1=_Lc1;var _Nc1=0;while(_Nc1<_Lc1){var _Oc1=__n.charCodeAt(_Nc1);
if(0xD800<=_Oc1&&_Oc1<=0xDFFF){_Mc1++;}_Nc1++;}return _Mc1;}function string_pos(_Pc1,__n){var _Qc1=yyGetString(_Pc1);var _Rc1=yyGetString(__n);var _Sc1=_Rc1.indexOf(_Qc1);return _Gc1(_Rc1,_Sc1);}function string_pos_ext(_Pc1,__n,_Tc1){var _Qc1=yyGetString(_Pc1);var _Rc1=yyGetString(__n);var _Uc1=_Kc1(_Rc1,yyGetInt32(_Tc1));++_Uc1;var _Sc1=_Rc1.indexOf(_Qc1,_Uc1);return _Gc1(_Rc1,_Sc1);}function string_last_pos(_Pc1,__n){var _Qc1=yyGetString(_Pc1);var _Rc1=yyGetString(__n);var _Sc1=_Rc1.lastIndexOf(_Qc1);return _Gc1(_Rc1,
_Sc1);}function string_last_pos_ext(_Pc1,__n,_Tc1){if(_Tc1<=0){return 0;}var _Qc1=yyGetString(_Pc1);var _Rc1=yyGetString(__n);var _Uc1=_Kc1(_Rc1,yyGetInt32(_Tc1));var _Sc1=_Rc1.lastIndexOf(_Qc1,_Uc1);return _Gc1(_Rc1,_Sc1);}function string_copy(__n,_74,_ce){__n=yyGetString(__n);_74=yyGetInt32(_74);_ce=yyGetInt32(_ce);if(_74<1){_74=1;}_74--;var _Mc1=_74;var _Nc1=0;while(_Nc1<_74){var _Oc1=__n.charCodeAt(_Nc1);if(0xD800<=_Oc1&&_Oc1<=0xDFFF){_Mc1++;}_Nc1++;}var _Vc1=_ce;_Nc1=0;while(_Nc1<_ce){var _Oc1=__n.charCodeAt(_Mc1+_Nc1);
if(0xD800<=_Oc1&&_Oc1<=0xDFFF){_Vc1++;}_Nc1++;}return __n.substring(_Mc1,_Mc1+_Vc1);}function string_char_at(__n,_74){var _Rc1=yyGetString(__n);var _Wc1=yyGetInt32(_74);--_Wc1;if((_Rc1.length==0)||(string_length(_Rc1)<=_Wc1)){return "";}var _2v=0;var _Xc1=_Wc1;if(_Xc1<0){_Xc1=0;}var _0j=_Rc1.length;while((_Xc1>0)&&(_2v<_0j)){var _uc1=_Rc1.charCodeAt(_2v);if(0xD800<=_uc1&&_uc1<=0xDFFF){++_2v;}++_2v;--_Xc1;}_Xc1=_2v;var _Yc1=_Rc1.charCodeAt(_Xc1);if(0xD800<=_Yc1&&_Yc1<=0xDFFF){var _yc1=_Rc1.charCodeAt(_Xc1+1);
return String.fromCharCode(_Yc1,_yc1);}return String.fromCharCode(_Yc1);}function string_ord_at(__n,_74){var _Rc1=yyGetString(__n);var _Wc1=yyGetInt32(_74);--_Wc1;if((_Rc1.length==0)||(string_length(_Rc1)<=_Wc1)){return -1;}var _2v=0;var _Xc1=_Wc1;if(_Xc1<0){_Xc1=0;}var _0j=_Rc1.length;while((_Xc1>0)&&(_2v<_0j)){var _uc1=_Rc1.charCodeAt(_2v);if(0xD800<=_uc1&&_uc1<=0xDFFF){++_2v;}++_2v;--_Xc1;}_Xc1=_2v;var _Yc1=_Rc1.charCodeAt(_Xc1);if(0xD800<=_Yc1&&_Yc1<=0xDFFF){var _yc1=_Rc1.charCodeAt(_Xc1+1);return((_Yc1-0xD800)*0x400)+(_yc1-0xDC00)+0x10000;
}return _Yc1;}function _Zc1(__n){var __c1=[];for(var i=0;i<__n.length;i++){var _0d1=__n.charCodeAt(i);if(_0d1<0x80){__c1.push(_0d1);}else if(_0d1<0x800){__c1.push(0xc0|(_0d1>>6),0x80|(_0d1&0x3f));}else if(_0d1<0xd800||_0d1>=0xe000){__c1.push(0xe0|(_0d1>>12),0x80|((_0d1>>6)&0x3f),0x80|(_0d1&0x3f));}else {i++;_0d1=((_0d1&0x3ff)<<10)|(__n.charCodeAt(i)&0x3ff);__c1.push(0xf0|(_0d1>>18),0x80|((_0d1>>12)&0x3f),0x80|((_0d1>>6)&0x3f),0x80|(_0d1&0x3f));}}return __c1;}function _1d1(data){var _Kl='';var i=0;for(i=0;i<data.length;
i++){var value=data[i];if(value<0x80){_Kl+=String.fromCharCode(value);}else if(value>0xBF&&value<0xE0){_Kl+=String.fromCharCode((value&0x1F)<<6|data[i+1]&0x3F);i+=1;}else if(value>0xDF&&value<0xF0){_Kl+=String.fromCharCode((value&0x0F)<<12|(data[i+1]&0x3F)<<6|data[i+2]&0x3F);i+=2;}else {var _0d1=((value&0x07)<<18|(data[i+1]&0x3F)<<12|(data[i+2]&0x3F)<<6|data[i+3]&0x3F)-0x010000;_Kl+=String.fromCharCode(_0d1>>10|0xD800,_0d1&0x03FF|0xDC00);i+=3;}}return _Kl;}function string_byte_at(__n,_74){var _Rc1=yyGetString(__n);
var _Wc1=yyGetInt32(_74);var _UD=_Zc1(_Rc1);var index=_Wc1-1;if(index<0){index=0;}if(index>=_UD.length){index=_UD.length-1;}return _UD[index];}function string_set_byte_at(__n,_74,_yF){var _Rc1=yyGetString(__n);var _2d1=yyGetInt32(_yF);var _nh=_Zc1(_Rc1);var index=yyGetInt32(_74)-1;if((index>=0)&&(index<_nh.length)){_nh[index]=_2d1&0xff;return _1d1(_nh);}else {_55("string_set_byte_at : Index beyond end of string.");}return _Rc1;}function string_delete(__n,_74,_ce){var _Rc1=yyGetString(__n);var _Wc1=yyGetInt32(_74);
var _3d1=yyGetInt32(_ce);if(_3d1<=0||_Wc1<=0)return _Rc1;var _2v=0;var _Xc1=_Wc1-1;var _0j=_Rc1.length;while((_Xc1>0)&&(_2v<_0j)){var _uc1=_Rc1.charCodeAt(_2v);if(0xD800<=_uc1&&_uc1<=0xDFFF){++_2v;}++_2v;--_Xc1;}_Xc1=_2v;_2v=_3d1;_4d1=_Xc1;while(_2v>0){var _uc1=_Rc1.charCodeAt(_Xc1);if(0xD800<=_uc1&&_uc1<=0xDFFF){++_4d1;}++_4d1;--_2v;}return(_Rc1.substring(0,_Xc1)+_Rc1.substring(_4d1,_Rc1.length));}function string_insert(_Pc1,__n,_74){var _Qc1=yyGetString(_Pc1);var _Rc1=yyGetString(__n);var _Wc1=yyGetInt32(_74);
var _2v=0;var _Xc1=_Wc1-1;var _0j=_Rc1.length;while((_Xc1>0)&&(_2v<_0j)){var _uc1=_Rc1.charCodeAt(_2v);if(0xD800<=_uc1&&_uc1<=0xDFFF){++_2v;}++_2v;--_Xc1;}_Xc1=_2v;return(_Rc1.substring(0,_Xc1)+_Qc1+_Rc1.substring(_Xc1,__n.length));}function string_replace(__n,_Pc1,_5d1){var _Rc1=yyGetString(__n);var _Qc1=yyGetString(_Pc1);var _6d1=yyGetString(_5d1);var index=_Rc1.indexOf(_Qc1);if(index===-1||_Qc1.length===0){return _Rc1;}return _Rc1.replace(_Qc1,_6d1);}function string_replace_all(__n,_Pc1,_5d1){var _Rc1=yyGetString(__n);
if(_Rc1.length===0)return "";var _Qc1=yyGetString(_Pc1);if(_Qc1.length===0)return _Rc1;var _6d1=yyGetString(_5d1);var _7d1=_Qc1.length;var _8d1="";var i=_Rc1.indexOf(_Qc1);var _dl=0;while(i>=0){_8d1+=_Rc1.substring(_dl,i)+_6d1;_dl=i+_7d1;i=_Rc1.indexOf(_Qc1,_dl);}return _dl>0?_8d1+_Rc1.substring(_dl):_Rc1;}function string_count(_Pc1,__n){_Pc1=yyGetString(_Pc1);__n=yyGetString(__n);var _E8=0;if(_Pc1.length>0){var index=0;while(index!=-1){index=__n.indexOf(_Pc1,index);if(index>-1){_E8+=1;index++;}}}return _E8;
}function string_hash_to_newline(__n){return _9d1(yyGetString(__n),_WD._ad1(_WD._bG),true);}function string_lower(__n){return yyGetString(__n).toLowerCase();}function string_upper(__n){return yyGetString(__n).toUpperCase();}function string_repeat(__n,_ce){var _Rc1=yyGetString(__n);_ce=yyGetInt32(_ce);var _qi="";for(var i=0;i<_ce;i++){_qi=_qi+_Rc1;}return _qi;}function string_letters(__n){var _qi="";var _Rc1=yyGetString(__n);for(var i=0;i<_Rc1.length;i++){var c=_Rc1[i];if((c>='A'&&c<='Z')||(c>='a'&&c<='z')){_qi=_qi+c;
}}return _qi;}function string_digits(__n){var _Rc1=yyGetString(__n);var _qi="";for(var i=0;i<_Rc1.length;i++){var c=_Rc1[i];if(c>='0'&&c<='9'){_qi=_qi+c;}}return _qi;}function string_lettersdigits(__n){var _Rc1=yyGetString(__n);var _qi="";for(var i=0;i<_Rc1.length;i++){var c=_Rc1[i];if((c>='A'&&c<='Z')||(c>='a'&&c<='z')||(c>='0'&&c<='9')){_qi=_qi+c;}}return _qi;}function string_trim_start(__n){__n=yyGetString(__n);return __n.trimStart();}function string_trim_end(__n){__n=yyGetString(__n);return __n.trimEnd();}function string_trim(__n){
__n=yyGetString(__n);return __n.trim();}function string_starts_with(__n,__3){__n=yyGetString(__n);__3=yyGetString(__3);return __n.startsWith(__3);}function string_ends_with(__n,__3){__n=yyGetString(__n);__3=yyGetString(__3);return __n.endsWith(__3);}var _bd1=new RegExp('[.*+?^${}()|[\]\\]','g');function _cd1(_nI,_dd1,_ed1){const _pI=[];let _fd1=0;while(_ed1--){const lastIndex=_dd1.lastIndex;const search=_dd1.exec(_nI);if(search===null){break;}_fd1=_dd1.lastIndex;_pI.push(_nI.slice(lastIndex,search.index));}
_pI.push(_nI.slice(_fd1));return _pI;}function string_split(__n,_gd1,_hd1,_id1){__n=yyGetString(__n);_gd1=yyGetString(_gd1);if(_gd1==""){return [_jd1];}_hd1=arguments.length>2?yyGetReal(_hd1):false;_id1=arguments.length>3?yyGetReal(_id1):__n.length;var _kd1=new RegExp(_gd1.replace(_bd1,'\\$&'),'g');var _jd1=_cd1(__n,_kd1,_id1);if(_hd1){_jd1=_jd1.filter(_ld1=>_ld1);}return _jd1;}function string_split_ext(__n,_md1,_hd1,_id1){__n=yyGetString(__n);if(!(_md1 instanceof Array)){_55("string_split_ext() argument1 is not an array");
}_hd1=arguments.length>2?yyGetReal(_hd1):false;_id1=arguments.length>3?yyGetReal(_id1):__n.length;_md1=_md1.map((_re)=>yyGetString(_re).replace(_bd1,'\\$&')).filter(_ld1=>_ld1).join("|");var _kd1=new RegExp(_md1,"g");var _jd1=_cd1(__n,_kd1,_id1);if(_hd1){_jd1=_jd1.filter(_ld1=>_ld1);}return _jd1.map((_re)=>_re.replaceAll("\\|","|"));}function _nd1(_gd1,_2E){return _2E.join(_gd1);}function string_join(_gd1){_gd1=yyGetString(_gd1);var _2E=[];for(var _I6=1;_I6<arguments.length;++_I6){_2E.push(yyGetString(arguments[_I6]));
}return _nd1(_gd1,_2E);}function string_join_ext(_gd1,_2E,_i51,_Y91){_gd1=yyGetString(_gd1);if(!(_2E instanceof Array)){_55("string_join_ext() argument1 is not an array");}_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_2E.length;var _od1=_pd1(_2E.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _sd1=[];while(_qd1>0){_sd1.push(yyGetString(_2E[_i51]));_i51+=_rd1;_qd1--;}return _nd1(_gd1,_sd1);}function string_concat(){var _2E=[];for(var _I6=0;_I6<arguments.length;
++_I6){_2E.push(yyGetString(arguments[_I6]));}return _nd1("",_2E);}function string_concat_ext(_2E,_i51,_Y91){if(!(_2E instanceof Array)){_55("string_concat_ext() argument1 is not an array");}_i51=arguments.length>1?yyGetReal(_i51):0;_Y91=arguments.length>2?yyGetReal(_Y91):_2E.length;var _od1=_pd1(_2E.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _sd1=[];while(_qd1>0){_sd1.push(yyGetString(_2E[_i51]));_i51+=_rd1;_qd1--;}return _nd1("",_sd1);}function _td1(_ud1){return(_ud1>=0xD800&&_ud1<=0xD8FF)?2:1;
}function string_foreach(__n,_PE,_Gk,_Y91){__n=yyGetString(__n);_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_Gk=arguments.length>3?yyGetReal(_Gk):1;_Y91=arguments.length>3?yyGetReal(_Y91):__n.length;var _i51=(_Gk<0?_Gk:(_Gk>0?_Gk-1:0));var _od1=_pd1(string_length(__n),_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];_Gk=_i51+1;var _wd1=0;if(_rd1>0){for(var i=0;i<_i51;i++){var _xd1=__n.charCodeAt(_wd1);_wd1+=_td1(_xd1);}for(var i=0;i<_qd1;i++){var _xd1=__n.charCodeAt(_wd1);var _7d=_td1(_xd1);
var _yd1=_7d==1?__n[_wd1]:String.fromCharCode(_xd1,__n.charCodeAt(_wd1+1));_PE(_Sk,_Sk,_yd1,_Gk);_Gk++;_wd1+=_7d;}}else {var _zd1=[];var _Ad1=0;for(var i=0;i<_i51;i++){var _xd1=__n.charCodeAt(_wd1);var _7d=_td1(_xd1);_wd1+=_7d;_zd1[(_Ad1++%_qd1)]=_7d;}for(var i=0;i<_qd1;i++){var _xd1=__n.charCodeAt(_wd1);var _7d=_td1(_xd1);var _yd1=_7d==1?__n[_wd1]:String.fromCharCode(_xd1,__n.charCodeAt(_wd1+1));_PE(_Sk,_Sk,_yd1,_Gk);_Gk--;_wd1-=_zd1[(--_Ad1%_qd1)];}}}var _Bd1=[];var _Cd1=true;var surface_resize=_Dd1;function _Dd1(_gg,
_nj,_oj){_gg=yyGetInt32(_gg);_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);if(_gg==_Ed1){_Fd1=true;_Gd1=_nj;_Hd1=_oj;return 1;}if(!surface_exists(_gg)){_55("Surface does not exist");return 0;}if(_Id1(_gg)){_Bi("Error: Surface in use via surface_set_target(). It can not be resized until it has been removed from the surface stack.");return;}surface_create(_nj,_oj,_gg);return 0;}function surface_depth_disable(_Jd1){if(yyGetBool(_Jd1)){_Cd1=false;}else {_Cd1=true;}}function surface_get_depth_disable(){return _Cd1?false:true;
}var surface_create=_Kd1;function _Kd1(_nj,_oj,_Ld1){_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);var _8s=document.createElement(_eE);_8s._Xc=_8s.width=_nj;_8s._Yc=_8s.height=_oj;_8s.complete=true;_8s._Md1=false;_8s.name="";_8s._4a=_8s.getContext('2d');_pb1(_8s._4a);var __4=new _3s();_8s._Nd1=__4;__4.x=0;__4.y=0;__4.w=_nj;__4.h=_oj;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;if(_Ld1!=undefined){_Zr.Set(_Ld1,_8s);__4.tp=_Ld1;}else {__4.tp=_Zr._Df(_8s);}__4._95=_8s;
__4._D8=[];__4._E8=0;__4._F8=4;__4._Od1=0;__4._Ss=null;__4._nb1=_8s;return __4.tp;}function surface_create_ext(_b4,_nj,_oj){_b4=yyGetString(_b4);_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);var _8s=document.getElementById(_b4);if(!_8s){_SD("Can not find pre-created canvas element: "+_b4);return surface_create(_nj,_oj);}_8s.name=_b4;_8s._Xc=_8s.width=_nj;_8s._Yc=_8s.height=_oj;_8s.complete=true;_8s._Md1=true;_8s._4a=_8s.getContext('2d');_pb1(_8s._4a);_8s.onmousemove=_it;_8s.onmousedown=_Pd1;_8s.onmouseup=_Qd1;
var __4=new _3s();_8s._Nd1=__4;__4.x=0;__4.y=0;__4.w=_nj;__4.h=_oj;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_Zr._Df(_8s);__4._95=_8s;__4._D8=[];__4._E8=0;__4._F8=4;__4._Od1=0;__4._Ss=null;__4._nb1=_8s;return __4.tp;}var surface_free=_Rd1;function _Rd1(_gg){_gg=yyGetInt32(_gg);if(_gg<0){return;}if(!surface_exists(_gg)){return 0;}if(_Id1(_gg)){_Bi("Error: Surface in use via surface_set_target(). It can not be freed until it has been removed from the surface stack.");
return;}_Zr._uj(_gg);}function surface_exists(_gg){if(_Zr._26(yyGetInt32(_gg))!=null)return 1;else return 0;}function surface_get_width(_gg){if(_gg==_Ed1){return _Sd1;}var _8s=_Zr._26(yyGetInt32(_gg));if(_8s!=null){return _8s._Xc;}return 0;}function surface_get_height(_gg){if(_gg==_Ed1){return _Td1;}var _8s=_Zr._26(yyGetInt32(_gg));if(_8s!=null){return _8s._Yc;}return 0;}function surface_get_texture(_gg){var _8s=_Zr._26(yyGetInt32(_gg));if(_8s!=null){return({_Ec:_8s._95,_Fc:_8s._Nd1});}return -1;}function _Id1(_gg){
_gg=yyGetInt32(_gg);if(_Ud1==_gg)return true;var _0j=_Vd1.length;for(var i=0;i<_0j;i++){if(_Vd1[i]==_gg)return true;}return false;}var _Wd1=_Xd1;function _Xd1(_gg){_gg=yyGetInt32(_gg);var _8s=_Zr._26(_gg);if(_8s!=null){if(!_s8)_ZJ();_Bd1.push({_Yd1:_Zd1,__d1:_rz,_0e1:_4a,_1e1:_2e1,_3e1:_4e1,_5e1:_6e1,_7e1:_8e1,_9e1:_1K,_ae1:_2K,_be1:_3K,_ce1:_4K,});_Vd1.push(_Ud1);_Ud1=_gg;if(_s8){_Zd1=_8s._Yd1;_s8._de1(_8s._Yd1);_rz=-1;}else {g_CurrentGraphics=_8s._4a;_4a=_8s._4a;_ee1(_4a);}}}var surface_set_target=_fe1;
function _fe1(_gg){_gg=yyGetInt32(_gg);var _8s=_Zr._26(_gg);if(_8s!=null){if(!_s8)_ZJ();_Bd1.push({_Yd1:_Zd1,__d1:_rz,_9e1:_1K,_ae1:_2K,_be1:_3K,_ce1:_4K,_1e1:_2e1,_3e1:_4e1,_5e1:_6e1,_7e1:_8e1,_0e1:_4a,});_Vd1.push(_Ud1);_Ud1=_gg;if(_s8){_Zd1=_8s._Yd1;_s8._de1(_8s._Yd1);_rz=-1;}else {g_CurrentGraphics=_8s._4a;_4a=_8s._4a;_ee1(_4a);}_ge1(0,0,_8s._Xc,_8s._Yc);if(_U3){_he1(0,0,_8s._Xc,_8s._Yc,0);}else {_ie1(0,0,_8s._Xc,_8s._Yc,0);}if(_s8)_s8._je1();_1M();if(!_s8){_ee1(_4a);}}}function surface_get_target(){
return _Ud1;}var surface_reset_target=_ke1;function _ke1(){var _le1=_Bd1.pop();if(_le1){_1K=_le1._9e1;_2K=_le1._ae1;_3K=_le1._be1;_4K=_le1._ce1;_2e1=_le1._1e1;_4e1=_le1._3e1;_6e1=_le1._5e1;_8e1=_le1._7e1;if(!_s8){_4a=_le1._0e1;_5K();}else {_rz=_le1.__d1;_Zd1=_le1._Yd1;}if(_PJ&&_Bd1.length==0){_ge1(0,0,_me1,_ne1);_oe1._uz(_me1,-_ne1*_rz,1.0,32000.0);_QJ();}else {_ge1(_1K,_2K,_3K,_4K);if(_U3){_he1(_2e1,_4e1,_6e1,_8e1,0);}else {_ie1(_2e1,_4e1,_6e1,_8e1,0);}}}else {_Bi("Error: Surface stacking error detected");
}if(_s8)_s8._de1(_Zd1);_Ud1=_Vd1.pop();if(_Ud1==null)_Ud1=-1;if(!_s8)_ee1(_4a);_1M();}function _NK(_jl,_Q5,_R5){var data=null;var __r=_jl.getContext('2d');try{data=__r._pe1(_Q5,_R5,1,1);}catch(_ek){return 0xff000000;}var _qe1=data.data;var index=0;var _re1=_qe1[index]&0xff;var _se1=_qe1[index+1]&0xff;var _te1=_qe1[index+2]&0xff;var _ue1=_qe1[index+3]&0xff;return(_re1|(_se1<<8)|(_te1<<16)|(_ue1<<24));}var surface_getpixel=_ve1;var surface_getpixel_ext=_we1;function _ve1(_gg,_Q5,_R5){return _we1(_gg,_Q5,_R5)&0xffffff;
}function _we1(_gg,_Q5,_R5){var _8s=_Zr._26(yyGetInt32(_gg));if(_8s!=null){return _NK(_8s,yyGetInt32(_Q5),yyGetInt32(_R5));}return 0x00000000;}function _xe1(_jl,_Mq){var img=canvas.toDataURL();}function surface_save(_gg,_Mq){_RD("surface_save()");}function surface_save_part(_gg,_Mq,_Q5,_R5,_nj,_oj){_RD("surface_save_part()");}var draw_surface=_ye1;function _ye1(_gg,_Q5,_R5){var _8s=_Zr._26(yyGetInt32(_gg));if(!_8s)return;_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);var alpha=_4a.globalAlpha;{_4a.globalAlpha=_Kc;_4a._rb1(_8s,
_Q5,_R5);}_4a.globalAlpha=alpha;}function draw_surface_stretched(_gg,_Q5,_R5,_nj,_oj){var _8s=_Zr._26(yyGetInt32(_gg));if(!_8s)return;_qs(_8s._Nd1,yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_nj),yyGetReal(_oj),0xffffff,1.0);}function draw_surface_tiled(_gg,_Q5,_R5){var _8s=_Zr._26(yyGetInt32(_gg));if(_8s!=null){_ss(_8s._Nd1,yyGetReal(_Q5),yyGetReal(_R5),1,1,true,true,0xffffff,1);}}function draw_surface_part(_gg,_us,_vs,_A8,_B8,_Q5,_R5){var _8s=_Zr._26(yyGetInt32(_gg));if(!_8s)return;_ws(_8s._Nd1,yyGetReal(_us),
yyGetReal(_vs),yyGetReal(_A8),yyGetReal(_B8),yyGetReal(_Q5),yyGetReal(_R5),1,1,0xffffff,1.0);}function draw_surface_ext(_gg,_Q5,_R5,_2o,_3o,_X4,_ys,_A9){var _8s=_Zr._26(yyGetInt32(_gg));if(!_8s)return;var c=_Nc(yyGetInt32(_ys));_zs(_8s._Nd1,0,0,yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),yyGetReal(_3o),(yyGetReal(_X4)*0.0174532925),c,c,c,c,yyGetReal(_A9));}function draw_surface_stretched_ext(_gg,_Q5,_R5,_nj,_oj,_ys,_A9){var _8s=_Zr._26(yyGetInt32(_gg));if(!_8s)return;var c=_Nc(yyGetInt32(_ys));_qs(_8s._Nd1,
yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_nj),yyGetReal(_oj),c,yyGetReal(_A9));}var draw_surface_tiled_ext=_ze1;function _ze1(_gg,_Q5,_R5,_2o,_3o,_ys,_A9){_Fb("draw_surface_tiled_ext()");}function draw_surface_part_ext(_gg,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_ys,_A9){_gg=yyGetInt32(_gg);var _8s=_Zr._26(_gg);if(_8s!=null){var __4=new _3s();__4.x=0;__4.y=0;__4.w=_8s.width;__4.h=_8s.height;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_gg;__4._D8=[];__4._E8=0;
__4._F8=4;__4._Od1=0;__4._Ss=null;if(!_s8){__4._nb1=_8s;__4._95=_8s;}else {__4._nb1=_8s._95;__4._95=_8s._95;}var c=_Nc(yyGetInt32(_ys));_ws(__4,yyGetReal(_us),yyGetReal(_vs),yyGetReal(_A8),yyGetReal(_B8),yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),yyGetReal(_3o),c,yyGetReal(_A9));}}function draw_surface_general(_gg,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_X4,_Es,_Fs,_Gs,_Hs,_A9){_gg=yyGetInt32(_gg);var _8s=_Zr._26(_gg);if(_8s!=null){var __4=new _3s();__4.x=yyGetReal(_us);__4.y=yyGetReal(_vs);__4.w=yyGetReal(_A8);
__4.h=yyGetReal(_B8);__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_gg;__4._D8=[];__4._E8=0;__4._F8=4;__4._Od1=0;__4._Ss=null;_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_2o=yyGetReal(_2o);_3o=yyGetReal(_3o);_X4=yyGetReal(_X4);_A9=yyGetReal(_A9);_Es=_Nc(yyGetInt32(_Es));_Fs=_Nc(yyGetInt32(_Fs));_Gs=_Nc(yyGetInt32(_Gs));_Hs=_Nc(yyGetInt32(_Hs));if(!_s8){__4._nb1=_8s;__4._95=_8s;_zs(__4,0,0,_Q5,_R5,_2o,_3o,(_X4*0.0174532925),_Es,_Fs,_Gs,_Hs,_A9);}else {
__4._nb1=_8s._95;__4._95=_8s._95;_zs(__4,0,0,_Q5,_R5,_2o,_3o,(_X4*0.0174532925),_Es,_Fs,_Gs,_Hs,_A9);}}}function surface_copy(_Ae1,_Q5,_R5,_vj){var _wk=_Zr._26(yyGetInt32(_Ae1));var _xk=_Zr._26(yyGetInt32(_vj));if(_wk!=null&&_xk!=null){var __r=_wk.getContext('2d');__r.save();__r.globalCompositeOperation='copy';__r.drawImage(_xk,yyGetInt32(_Q5),yyGetInt32(_R5));__r.restore();}}function surface_copy_part(_Ae1,_Q5,_R5,_vj,_V4,_W4,_Be1,_Ce1){var _wk=_Zr._26(yyGetInt32(_Ae1));var _xk=_Zr._26(yyGetInt32(_vj));
if(_wk!=null&&_xk!=null){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_V4=yyGetReal(_V4);_W4=yyGetReal(_W4);_Be1=yyGetReal(_Be1);_Ce1=yyGetReal(_Ce1);var __J=[];var __r=_wk.getContext('2d');__r.save();__J[0]=1;__J[1]=0;__J[2]=0;__J[3]=1;__J[4]=0;__J[5]=0;__r.setTransform(__J[0],__J[1],__J[2],__J[3],__J[4],__J[5]);__r.beginPath();__r.rect(_Q5,_R5,_Be1,_Ce1);__r.clip();__r.globalCompositeOperation='copy';__r.drawImage(_xk,_V4,_W4,_Be1,_Ce1,_Q5,_R5,_Be1,_Ce1);__r.restore();}}/*@constructor */function _De1(){
this._Ee1=[];this._Fe1={};this._Ge1={};};function _He1(_aJ,_Ie1){var _8J=(((_aJ&0xff)<<24)|(_Ie1&0xffffff));return _8J;};_De1.prototype._Je1=function(_Ke1,_Le1){this._Ee1=_Ke1.slice();for(var i=0;i<_Ke1.length;++i)this._Fe1[_Ke1[i]]=i;for(var i=0;i<_Le1.length;++i){var _7l=_Le1[i];this._Ge1[_7l.key]=_7l.ids.slice();}};_De1.prototype._Me1=function(_Ie1,_aJ){var _8J=_He1(_aJ,_Ie1);var _Ne1=this._Ge1[_8J];if(_Ne1==undefined)return null;return _Ne1;};_De1.prototype._Oe1=function(_Ie1,_aJ){var _Pe1=this._Me1(_Ie1,
_aJ);var tags=[];if(_Pe1!=null){for(var i=0;i<_Pe1.length;++i){var _ci=this._Ee1[_Pe1[i]];if(_ci!==undefined)tags.push(_ci);}}return tags;};_De1.prototype._Qe1=function(_Re1,_Se1){var _Pe1=[];var _Te1=Array.isArray(_Re1)?_Re1:[_Re1];for(var i=0;i<_Te1.length;++i){var _Ue1=_Te1[i];var _Ve1=this._Fe1[_Ue1];if(_Ve1===undefined&&_Se1){_Ve1=this._Ee1.length;this._Fe1[_Ue1]=_Ve1;this._Ee1.push(_Ue1);}if(_Ve1!==undefined)_Pe1.push(_Ve1);}return _Pe1;};_De1.prototype._We1=function(_Ie1,_aJ,_Xe1,_Ye1){var _Ze1=this._Me1(_Ie1,
_aJ);if(_Ze1==null)return false;var __e1=this._Qe1(_Xe1,false);var result=(_Ye1)?true:false;for(var _Y6=0;_Y6<__e1.length;++_Y6){var _0f1=false;var _ci=__e1[_Y6];for(var i=0;i<_Ze1.length;++i){if(_Ze1[i]===_ci)_0f1=true;}if(!_Ye1&&_0f1)return true;if(_Ye1&&!_0f1)return false;}return result;};_De1.prototype._1f1=function(_Ie1,_aJ,_Xe1){var _2f1=false;var _8J=_He1(_aJ,_Ie1);var _Ne1=this._Ge1[_8J];if(_Ne1==undefined){_Ne1=[];this._Ge1[_8J]=_Ne1;}var _3f1=this._Qe1(_Xe1,true);for(var i=0;i<_3f1.length;++i){var _4f1=_3f1[i];
var index=_Ne1.indexOf(_4f1);if(index==-1){_Ne1.push(_4f1);_2f1=true;}}return _2f1;};_De1.prototype._5f1=function(_Ie1,_aJ,_Xe1){var _6f1=false;var _Pe1=this._Me1(_Ie1,_aJ);if(_Pe1!=null){var _7f1=this._Qe1(_Xe1,false);for(var i=0;i<_7f1.length;++i){var _8f1=_7f1[i];var index=_Pe1.indexOf(_8f1);if(index!=-1){_Pe1[index]=_Pe1[_Pe1.length-1];_Pe1.length-=1;_6f1=true;}}}return _6f1;};_De1.prototype._9f1=function(_Ie1,_aJ){var _8J=_He1(_aJ,_Ie1);var _Ne1=this._Ge1[_8J];if(_Ne1!=null){_Ne1.length=0;return true;}
return false;};_De1.prototype._af1=function(_Xe1){var _mh=[];var _3f1=this._Qe1(_Xe1,false);if(_3f1.length==0)return _mh;for(var key in this._Ge1){if(!this._Ge1.hasOwnProperty(key))continue;var _bf1=this._Ge1[key];for(var _Y6=0;_Y6<_3f1.length;++_Y6){var index=_bf1.indexOf(_3f1[_Y6]);if(index!=-1){var _cf1=key&0xffffff;var _df1=(key>>24)&0xff;var _ef1=_9J(_cf1,_df1);if(_ef1.length>0){_mh.push(_ef1);break;}}}}return _mh;};_De1.prototype._ff1=function(_Xe1,_aJ){var _gf1=[];var _3f1=this._Qe1(_Xe1,false);if(_3f1.length==0)return _gf1;
for(var key in this._Ge1){if(_aJ>=0){var type=(key>>24)&0xff;if(type!==_aJ)continue;}var _bf1=this._Ge1[key];for(var _Y6=0;_Y6<_3f1.length;++_Y6){var index=_bf1.indexOf(_3f1[_Y6]);if(index!=-1){var _cf1=key&0xffffff;_gf1.push(_cf1);break;}}}return _gf1;};function _hf1(_if1,_aJ,_jf1){var _8J={type:-1,id:-1};if(typeof _if1==="string"){_8J=_7J(_if1);}else {if(_aJ===undefined)_55(_jf1+"() - asset type argument is required");else _8J={type:_aJ,id:_if1};}return _8J;}function tag_get_asset_ids(_Re1,_aJ){var _gf1=_kf1._ff1(_Re1,
_aJ);return _gf1;}function tag_get_assets(_Re1){var _mh=_kf1._af1(_Re1);return _mh;}function asset_get_tags(_if1,_aJ){var result=[];var _8J=_hf1(_if1,_aJ,"asset_get_tags");if(_8J.id<0)return result;result=_kf1._Oe1(_8J.id,_8J.type);return result;}function asset_add_tags(_if1,_Re1,_aJ){var _8J=_hf1(_if1,_aJ,"asset_add_tags");if(_8J.id<0)return 0;var result=_kf1._1f1(_8J.id,_8J.type,_Re1);return(result)?1:0;}function asset_remove_tags(_if1,_Re1,_aJ){var _8J=_hf1(_if1,_aJ,"asset_remove_tags");if(_8J.id<0)return 0;
var result=_kf1._5f1(_8J.id,_8J.type,_Re1);return(result)?1:0;}function asset_has_tags(_if1,_Re1,_aJ){var _8J=_hf1(_if1,_aJ,"asset_has_tags");if(_8J.id<0)return 0;var result=_kf1._We1(_8J.id,_8J.type,_Re1,true);return(result)?1:0;}function asset_has_any_tag(_if1,_Re1,_aJ){var _8J=_hf1(_if1,_aJ,"asset_has_any_tag");if(_8J.id<0)return 0;var result=_kf1._We1(_8J.id,_8J.type,_Re1,false);return(result)?1:0;}function asset_clear_tags(_if1,_aJ){var _8J=_hf1(_if1,_aJ,"asset_clear_tags");if(_8J.id<0)return 0;var result=_kf1._9f1(_8J.id,
_8J.type);return(result)?1:0;}function draw_self(_em){var index;index=_em.sprite_index;_n6=_em;{var _En=_16._26(index);if(_En!=null){_En._a9(_em.image_index,_em.x,_em.y,_em.image_xscale,_em.image_yscale,_em.image_angle,_em.image_blend,_em.image_alpha);}}_n6=null;}function draw_sprite_ext(_tt,_P3,_lf1,_Q5,_R5,_2o,_3o,_X4,_0d,_A9){_lf1=yyGetInt32(_lf1);_A9=yyGetReal(_A9);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){_A9=min(1.0,_A9);_3F._a9(_lf1,yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),
yyGetReal(_3o),yyGetReal(_X4),_Nc(yyGetInt32(_0d)),_A9);}}function draw_sprite(_tt,_P3,_lf1,_Q5,_R5){_lf1=yyGetInt32(_lf1);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){_3F._mf1(_lf1,yyGetReal(_Q5),yyGetReal(_R5),_Kc);}}function draw_sprite_pos(_tt,_P3,_lf1,_b7,_c7,_D6,_E6,_8u,_9u,_nf1,_of1,_A9){_lf1=yyGetInt32(_lf1);_A9=yyGetReal(_A9);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){_A9=min(1.0,_A9);_3F._pf1(_lf1,yyGetReal(_b7),yyGetReal(_c7),yyGetReal(_D6),
yyGetReal(_E6),yyGetReal(_8u),yyGetReal(_9u),yyGetReal(_nf1),yyGetReal(_of1),_A9);}}function draw_sprite_stretched(_tt,_P3,_lf1,_Q5,_R5,_nj,_oj){_lf1=yyGetInt32(_lf1);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){if(_3F._T6<=0)return;_lf1=(~~_lf1)%_3F._T6;if(_lf1<0)_lf1=_lf1+_3F._T6;if((_3F._9c1!=null)&&(_3F._9c1.enabled==true)){_3F._9c1._a9(yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_nj),yyGetReal(_oj),0,0xffffff,_Kc,_lf1,_3F,true);}else {_qs(_3F._05[_lf1],yyGetReal(_Q5),yyGetReal(_R5),
yyGetReal(_nj),yyGetReal(_oj),0xffffff,_Kc);}}}function draw_sprite_stretched_ext(_tt,_P3,_lf1,_Q5,_R5,_nj,_oj,_Mc,_A9){_lf1=yyGetInt32(_lf1);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){if(_3F._T6<=0)return;_lf1=(~~_lf1)%_3F._T6;if(_lf1<0)_lf1=_lf1+_3F._T6;if((_3F._9c1!=null)&&(_3F._9c1.enabled==true)){_3F._9c1._a9(yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_nj),yyGetReal(_oj),0,_Nc(yyGetInt32(_Mc)),yyGetReal(_A9),_lf1,_3F,true);}else {_qs(_3F._05[_lf1],yyGetReal(_Q5),yyGetReal(_R5),
yyGetReal(_nj),yyGetReal(_oj),_Nc(yyGetInt32(_Mc)),yyGetReal(_A9));}}}function draw_sprite_part(_tt,_P3,_lf1,_us,_vs,_A8,_B8,_Q5,_R5){_lf1=yyGetInt32(_lf1);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){if(_3F._T6<=0)return;_lf1=(~~_lf1)%_3F._T6;if(_lf1<0)_lf1=_lf1+_3F._T6;_ws(_3F._05[_lf1],yyGetReal(_us),yyGetReal(_vs),yyGetReal(_A8),yyGetReal(_B8),yyGetReal(_Q5),yyGetReal(_R5),1,1,0xffffff,_Kc);}}function draw_sprite_part_ext(_tt,_P3,_lf1,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_ys,_A9){
_lf1=yyGetInt32(_lf1);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){if(_3F._T6<=0)return;_lf1=(~~_lf1)%_3F._T6;if(_lf1<0)_lf1=_lf1+_3F._T6;_ys=_Nc(yyGetInt32(_ys));_ws(_3F._05[_lf1],yyGetReal(_us),yyGetReal(_vs),yyGetReal(_A8),yyGetReal(_B8),yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),yyGetReal(_3o),_ys,yyGetReal(_A9));}}function draw_sprite_tiled(_tt,_P3,_lf1,_Q5,_R5){_lf1=yyGetInt32(_lf1);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){if(_3F._T6<=0)return;
_lf1=(~~_lf1)%_3F._T6;if(_lf1<0)_lf1=_lf1+_3F._T6;_ss(_3F._05[_lf1],yyGetReal(_Q5),yyGetReal(_R5),1,1,true,true,0xffffff,_Kc);}}function draw_sprite_tiled_ext(_tt,_P3,_lf1,_Q5,_R5,_2o,_3o,_ys,_A9){_lf1=yyGetInt32(_lf1);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){if(_3F._T6<=0)return;_lf1=(~~_lf1)%_3F._T6;if(_lf1<0)_lf1=_lf1+_3F._T6;_ys=_Nc(yyGetInt32(_ys));_ss(_3F._05[_lf1],yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),yyGetReal(_3o),true,true,_ys,_A9);}}function draw_sprite_general(_tt,
_P3,_lf1,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_X4,_Es,_Fs,_Gs,_Hs,_A9){_lf1=yyGetInt32(_lf1);if(_lf1<0)_lf1=~~_tt.image_index;var _3F=_16._26(_P3);if(_3F!=null){if(_2M){_3M();}if(_3F._T6<=0)return;_lf1=(~~_lf1)%_3F._T6;if(_lf1<0)_lf1=_lf1+_3F._T6;_Es=_Nc(yyGetInt32(_Es));_Fs=_Nc(yyGetInt32(_Fs));_Gs=_Nc(yyGetInt32(_Gs));_Hs=_Nc(yyGetInt32(_Hs));_Is(_3F._05[_lf1],yyGetReal(_us),yyGetReal(_vs),yyGetReal(_A8),yyGetReal(_B8),yyGetReal(_Q5),yyGetReal(_R5),yyGetReal(_2o),yyGetReal(_3o),yyGetReal(_X4)*Math.PI/180.0,
_Es,_Fs,_Gs,_Hs,yyGetReal(_A9));}}function _qf1(_fr,_us,_vs,_A8,_B8,_Q5,_R5,_rl){var _rf1=new _sf1();_rf1.x=_Q5;_rf1.y=_R5;_rf1.depth=_rl;_rf1.xo=_us;_rf1.yo=_vs;_rf1.w=_A8;_rf1.h=_B8;_rf1.index=_fr;_rf1._tf1();_S3._uf1(_rf1);return _rf1.id;}function _vf1(_gg){_S3._wf1(_gg);}function _xf1(_gg){if(_S3._yf1[_gg]==null)return false;return true;}function _zf1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.x;}function _Af1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.y;}function _Bf1(_gg){var _rf1=_S3._yf1[_gg];
if(!_rf1)return 0;return _rf1.xo;}function _Cf1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.yo;}function _Df1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.w;}function _Ef1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.h;}function _Ff1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.depth;}function _Gf1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.visible;}function _Hf1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1._bP;}function _If1(_gg){var _rf1=_S3._yf1[_gg];
if(!_rf1)return 0;return _rf1._cP;}function _Jf1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.index;}function _Kf1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1._dP;}function _Lf1(_gg){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;return _rf1.alpha;}function _Mf1(_gg,_Q5,_R5){var _rf1=_S3._yf1[_gg];if(_rf1){_rf1.x=_Q5;_rf1.y=_R5;}}function _Nf1(_gg,_us,_vs,_A8,_B8){var _rf1=_S3._yf1[_gg];if(_rf1){_rf1.xo=_us;_rf1.yo=_vs;_rf1.w=_A8;_rf1.h=_B8;_rf1._tf1();}}function _Of1(_gg,_fr){var _rf1=_S3._yf1[_gg];
if(_rf1){_rf1.index=_fr;_rf1._tf1();}}function _Pf1(_gg,_E31){var _rf1=_S3._yf1[_gg];if(_rf1){_rf1.visible=_E31;}}function _Qf1(_gg,_rl){var _rf1=_S3._yf1[_gg];if(_rf1){_S3._Rf1._wf1(_rf1);_rf1.depth=_rl;_S3._Rf1._Df(_rf1);}}function _Sf1(_gg,_2o,_3o){var _rf1=_S3._yf1[_gg];if(!_rf1)return;_rf1._bP=_2o;_rf1._cP=_3o;}function _Tf1(_gg,_Mc){var _rf1=_S3._yf1[_gg];if(!_rf1)return;_rf1._dP=_Nc(_Mc);}function _Uf1(_gg,_A9){var _rf1=_S3._yf1[_gg];if(!_rf1)return 0;_rf1.alpha=_A9;}function _Vf1(_rl){_S3._Rf1._Wf1(_rl,
false);}function _Xf1(_rl){_S3._Rf1._Wf1(_rl,true);}function _Yf1(_rl){_S3._Zf1(_rl);}function __f1(_rl,_Q5,_R5){var _0g1=_S3._Rf1._26(_rl);if(!_0g1)return;var _Kk=_0g1._BX();for(var _1g1=0;_1g1<_Kk.length;_1g1++){var _rf1=_Kk[_1g1];if(_rf1){_rf1.x+=_Q5;_rf1.y+=_R5;}}}function _2g1(_rl,_Q5,_R5){for(var index in _S3._yf1){if(!_S3._yf1.hasOwnProperty(index))continue;var _rf1=_S3._yf1[index];if(_rf1!=null){if((_rl==_rf1.depth)&&(_Q5>=_rf1.x)&&(_Q5<(_rf1.x+(_rf1.w*_rf1._bP)))&&(_R5>=_rf1.y)&&(_R5<(_rf1.y+(_rf1.h*_rf1._cP)))){
return _rf1.id;}}}return -1;}function _3g1(_rl,_Q5,_R5){var tiles=[];for(var index in _S3._yf1){if(!_S3._yf1.hasOwnProperty(index))continue;var _rf1=_S3._yf1[index];if(_rf1){if((_rl==_rf1.depth)&&(_Q5>=_rf1.x)&&(_Q5<(_rf1.x+(_rf1.w*_rf1._bP)))&&(_R5>=_rf1.y)&&(_R5<(_rf1.y+(_rf1.h*_rf1._cP)))){tiles[tiles.length]=index;}}}for(var i=0;i<tiles.length;i++){_S3._wf1(tiles[i]);}}function _4g1(_rl,_8z){var tiles=[];for(var index in _S3._yf1){if(!_S3._yf1.hasOwnProperty(index))continue;var _rf1=_S3._yf1[index];if(_rf1){
if(_rl==_rf1.depth){tiles[tiles.length]=_rf1;}}}for(var i=0;i<tiles.length;i++){var _rf1=tiles[i];_S3._Rf1._Cl(_rf1);_rf1.depth=_8z;_S3._Rf1._Df(_rf1);}}function _5g1(){var _E8=0;for(var index in _S3._yf1){if(!_S3._yf1.hasOwnProperty(index))continue;var _rf1=_S3._yf1[index];if(_rf1)_E8++;}return _E8;}function _6g1(_74){if(_74<0||_74>=_S3._7g1)return -1;for(var index in _S3._yf1){if(!_S3._yf1.hasOwnProperty(index))continue;var _rf1=_S3._yf1[index];if(_rf1){if(_74==0)return _rf1.id;_74--;}}return -1;}function _8g1(){
var tiles=[];var index=0;for(var _1g1 in _S3._yf1){if(!_S3._yf1.hasOwnProperty(_1g1))continue;var _rf1=_S3._yf1[_1g1];if(_rf1){tiles[index]=_rf1.id;index++;}}return tiles;}function _9g1(_rl){var tiles=[];var index=0;for(var _1g1 in _S3._yf1){if(!_S3._yf1.hasOwnProperty(_1g1))continue;var _rf1=_S3._yf1[_1g1];if(_rf1&&_rf1.depth==_rl){tiles[index]=_rf1.id;index++;}}return tiles;}function _ag1(_gg){console.error("Error: Index %d does not correspond to an existing time source\n",_gg);}function _bg1(){console.error("Error: Cannot reset a built-in time source\n");
}function _cg1(){console.error("Error: Cannot change the state of a stateless built-in time source\n");}function _dg1(){console.error("Error: Failed to create the time source\n");}function _eg1(_gg){console.error("Error: Cannot destroy the time source (index %d) until its children have been destroyed\n",_gg);}function _fg1(){console.error("Error: Cannot destroy a built-in time source\n");}function _gg1(){console.error("Error: Cannot stop a built-in time source\n");}function _hg1(_ig1){const type=_ig1._jg1();
return(type==_kg1||type==_lg1);}function _mg1(_ig1){return(_ig1._jg1()==_kg1);}function _ng1(_ig1){const type=_ig1._jg1();return(type==_og1||type==_kg1);}function _pg1(_gg){const _qg1=[_rg1,_sg1];for(const source of _qg1){const _tg1=source._ug1(_gg);if(_tg1!=null){if(_hg1(_tg1)){if(_tg1._vg1()){return null;}}return _tg1;}}return null;}function time_source_create(_wg1,_xg1,_yg1,_zg1,_Ag1=[],_Bg1=1,_Cg1=_Dg1){const parent=yyGetInt32(_wg1);const _Eg1=yyGetReal(_xg1);const _Fg1=yyGetInt32(_yg1);const _Gg1=_zg1;const _yk=_Ag1;
const _Hg1=yyGetInt64(_Bg1);const _Ig1=yyGetInt32(_Cg1);return _Jg1(parent,_Eg1,_Fg1,_Gg1,_yk,_Hg1,_Ig1);}function _Jg1(_wg1,_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1){const parent=_pg1(_wg1);if(parent!=null){const _tg1=parent._Kg1(_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1);if(_tg1!=null){return _tg1._Lg1();}_dg1();}else {_ag1(_wg1);}return -1;}function time_source_destroy(_gg,_Mg1=false){const id=yyGetInt32(_gg);const _Ng1=yyGetBool(_Mg1);if(_Ng1){_Og1(id);}else {_Pg1(id);}}function _Pg1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){
if(_tg1._Qg1()==0){if(_tg1._Rg1()){return _tg1._Sg1(false);}return _tg1._Tg1()._Ug1(_tg1);}return _eg1(_gg);}return _fg1();}_ag1(_gg);}function _Og1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_tg1._Vg1()){return _tg1._Sg1(true);}else {return _tg1._Tg1()._Ug1(_tg1);}}_ag1(_gg);}function time_source_start(_gg){const id=yyGetInt32(_gg);_Wg1(id);}function _Wg1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_ng1(_tg1)){return _tg1._Xg1();}return _cg1();}_ag1(_gg);}function time_source_stop(_gg){const id=yyGetInt32(_gg);
_Yg1(id);}function _Yg1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){return _tg1._yq();}return _gg1();}_ag1(_gg);}function time_source_pause(_gg){const id=yyGetInt32(_gg);_Zg1(id);}function _Zg1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_ng1(_tg1)){return _tg1._rJ();}return _cg1();}_ag1(_gg);}function time_source_resume(_gg){const id=yyGetInt32(_gg);__g1(id);}function __g1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_ng1(_tg1)){return _tg1._n01();}return _cg1();}_ag1(_gg);}function time_source_reset(_gg){
const id=yyGetInt32(_gg);_0h1(id);}function _0h1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){return _tg1._qJ();}return _bg1();}_ag1(_gg);}function time_source_reconfigure(_gg,_xg1,_yg1,_zg1,_Ag1=[],_Bg1=1,_Cg1=_Dg1){const id=yyGetInt32(_gg);const _Eg1=yyGetReal(_xg1);const _Fg1=yyGetInt32(_yg1);const _Gg1=_zg1;const _yk=_Ag1;const _Hg1=yyGetInt64(_Bg1);const _Ig1=yyGetInt32(_Cg1);return _1h1(id,_Eg1,_Fg1,_Gg1,_yk,_Hg1,_Ig1);}function _1h1(_gg,_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1){const _tg1=_pg1(_gg);if(_tg1!=null){
if(_hg1(_tg1)){return _tg1._2h1(_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1);}return _bg1();}_ag1(_gg);}function time_source_get_period(_gg){const id=yyGetInt32(_gg);return _3h1(id);}function _3h1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){return _tg1._4h1();}}else {_ag1(_gg);}return null;}function time_source_get_reps_completed(_gg){const id=yyGetInt32(_gg);return _5h1(id);}function _5h1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){return _tg1._6h1();}}else {_ag1(_gg);}return null;}function time_source_get_reps_remaining(_gg){
const id=yyGetInt32(_gg);return _7h1(id);}function _7h1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){return _tg1._8h1();}}else {_ag1(_gg);}return null;}function time_source_get_units(_gg){const id=yyGetInt32(_gg);return _9h1(id);}function _9h1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){return _tg1._ah1();}}else {_ag1(_gg);}return null;}function time_source_get_time_remaining(_gg){const id=yyGetInt32(_gg);return _bh1(id);}function _bh1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){return _tg1._ch1();
}}else {_ag1(_gg);}return null;}function time_source_get_state(_gg){const id=yyGetInt32(_gg);return _dh1(id);}function _dh1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_ng1(_tg1)){return _tg1._eh1();}}else {_ag1(_gg);}return null;}function time_source_get_parent(_gg){const id=yyGetInt32(_gg);return _fh1(id);}function _fh1(_gg){const _tg1=_pg1(_gg);if(_tg1!=null){if(_hg1(_tg1)){return _tg1._gh1()._Lg1();}}else {_ag1(_gg);}return null;}function time_source_get_children(_gg){const id=yyGetInt32(_gg);return _hh1(id);}function _hh1(_gg){
const _tg1=_pg1(_gg);if(_tg1!=null){return _tg1._ih1();}_ag1(_gg);return null;}function time_source_exists(_gg){const id=yyGetInt32(_gg);return _jh1(id);}function _jh1(_gg){return(_pg1(_gg)!=null);}function time_seconds_to_bpm(_kh1){const _6D=yyGetReal(_kh1);return _lh1(_6D);}function _lh1(_kh1){if(_kh1>0.0){return 60.0/_kh1;}return Infinity;}function time_bpm_to_seconds(_mh1){const _nh1=yyGetReal(_mh1);return _oh1(_nh1);}function _oh1(_mh1){if(_mh1>0.0){return 60.0/_mh1;}return Infinity;}function call_later(_xg1,_yg1,
_zg1,_LB=false){const _Eg1=yyGetReal(_xg1);const _Fg1=yyGetInt32(_yg1);const repeat=yyGetBool(_LB);return _ph1(_Eg1,_Fg1,_zg1,repeat);}function _ph1(_xg1,_yg1,_zg1,_LB){const _tg1=_qh1._rh1(_xg1,_yg1,_zg1,_LB);if(_tg1!=null){return _tg1._Lg1();}_dg1();return -1;}function call_cancel(_h51){const _d51=yyGetInt32(_h51);return _sh1(_d51);}function _sh1(_h51){const _tg1=_qh1._ug1(_h51);if(_tg1!=null){if(_hg1(_tg1)){if(_tg1._Rg1()){return _tg1._Sg1(false);}return _tg1._Tg1()._Ug1(_tg1);}return _fg1();}_ag1(_h51);}function timeline_exists(_S4){
if(_AH._26(yyGetInt32(_S4))!=undefined){return true;}return false;}function timeline_get_name(_S4){var _th1=_AH._26(yyGetInt32(_S4));if(_th1!=undefined){return _th1.pName;}return "";}function _uh1(_S4){return timeline_get_name(_S4);}function timeline_add(){return _AH._vh1();}function timeline_delete(_S4){_AH._Cl(yyGetInt32(_S4));}function timeline_clear(_S4){_AH._Tf(yyGetInt32(_S4));}function _wh1(_S4,_rd1,_xh1){_Fb("timeline_moment_add()");}function timeline_moment_add_script(_S4,_rd1,_CD){switch(typeof _CD){
case "number":case "function":var _HV=typeof _CD=="number"?_xD.Scripts[yyGetInt32(_CD)-100000]:_CD;_AH._yh1(yyGetInt32(_S4),yyGetInt32(_rd1),_HV);break;default :break;}}function timeline_size(_S4){var _th1=_AH._26(yyGetInt32(_S4));var _P4=0;if(_th1!=undefined){_P4=_th1.Events._E8;}return _P4;}function timeline_max_moment(_S4){var _th1=_AH._26(yyGetInt32(_S4));var _P4=0;if(_th1!=undefined){_P4=_th1._zh1();}return _P4;}function timeline_moment_clear(_S4,_rd1){_AH._Ah1(yyGetInt32(_S4),yyGetInt32(_rd1));}function _Bh1(_E31){
_Fb("window_set_visible()");}function window_handle(){return _eE;}function window_device(){if((null!==g_CurrentGraphics._Ch1)&&(undefined!==g_CurrentGraphics._Ch1))return g_CurrentGraphics._Ch1;else return g_CurrentGraphics;}function _Dh1(){return true;}function window_set_fullscreen(_Eh1){}function window_get_fullscreen(){return _Fh1;}function _Gh1(_am){_Fb("window_set_showborder()");}function _Hh1(){_Fb("window_get_showborder()");return false;}function _Ih1(_am){_Fb("window_set_showicons()");}function _Jh1(){
_Fb("window_get_showicons()");return false;}function _Kh1(_Lh1){_Fb("window_set_stayontop()");}function _Mh1(){_Fb("window_get_stayontop()");return false;}function _Nh1(_Oh1){_Fb("window_set_sizeable()");}function _Ph1(){_Fb("window_get_sizeable()");return false;}function window_set_caption(_Qh1){document.title=yyGetString(_Qh1);}function window_set_min_width(_A8){}function window_set_max_width(_A8){}function window_set_min_height(_B8){}function window_set_max_height(_B8){}function window_get_caption(){return document.title;
}function _cm(_g51,_Rh1){if(_g51){if(_Rh1===undefined){canvas.style.cursor="";}else {canvas.style.cursor=_Rh1;}}else {canvas.style.cursor="none";}}function window_set_cursor(_Sh1){_Sh1=yyGetInt32(_Sh1);var _Th1="";switch(_Sh1){case cr_default:_Th1="auto";_Sh1=cr_arrow;break;case cr_none:_Th1="__disable__";break;case cr_arrow:_Th1="auto";break;case cr_cross:_Th1="crosshair";break;case cr_beam:_Th1="";break;case cr_size_nesw:_Th1="ne-resize";break;case cr_size_ns:_Th1="n-resize";break;case cr_size_nwse:_Th1="nw-resize";
break;case cr_size_we:_Th1="w-resize";break;case cr_uparrow:_Th1="";break;case cr_hourglass:_Th1="wait";break;case cr_drag:_Th1="move";break;case _Uh1:_Th1="";break;case _Vh1:_Th1="";break;case _Wh1:_Th1="";break;case _Xh1:_Th1="";break;case _Yh1:_Th1="";break;case _Zh1:_Th1="";break;case cr_appstart:_Th1="";break;case __h1:_Th1="help";break;case cr_handpoint:_Th1="pointer";break;case cr_size_all:_Th1="e-resize";break;};if(_Th1=="__disable__"){_0i1=_Sh1;_cm(false,"none");return;}else if(_Sh1<0&&_Th1==""){_55("Cursor type is not supported.");
_cm(true,_Th1);return;}else {_0i1=_Sh1;_cm(true,_Th1);return;}}function window_get_cursor(){return _0i1;}function window_set_color(_Mc){_1i1=_Nc(yyGetInt32(_Mc));}var window_set_colour=window_set_color;function window_get_color(){return _Nc(_1i1);}var window_get_colour=window_get_color;function _2i1(_fm,_3i1){_Fb("window_set_region_scale()");}function _4i1(){_Fb("window_get_region_scale()");}function window_set_position(_Q5,_R5,_5i1){if(_5i1===undefined)_5i1=false;var _et=document.getElementById(_eE);for(var _Al=_et;
_Al;_Al=_Al.parentNode){var position;if(_Al["currentStyle"]){position=_Al["currentStyle"]["position"];}else if(window.getComputedStyle){try{var style=window.getComputedStyle(_Al,null);if(style){position=style.getPropertyValue("position");}}catch(e){}}if(position&&(position=="fixed")){debug("Warning: Canvas position fixed. Ignoring position alterations");return;}}_et.style.position="absolute";if(!yyGetBool(_5i1)){_et.style.left=yyGetInt32(_Q5)+"px";_et.style.top=yyGetInt32(_R5)+"px";_et.style.bottom="";
_et.style.right="";_et.style.transform="";}else {_et.style.top="50%";_et.style.left="50%";_et.style.bottom="-50%";_et.style.right="-50%";_et.style.transform="translate(-50%, -50%)";}}function window_set_size(_nj,_oj){_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);canvas.width=_nj;canvas.height=_oj;_KK=_nj;_MK=_oj;_6i1=canvas.width;_7i1=canvas.height;_7g(canvas,_8g);_8i1=_8g.top;_9i1=_8g.left;_ai1=_8g.right;_bi1=_8g.bottom;_ci1=_6i1;_di1=_7i1;_me1=_nj;_ne1=_oj;_ei1=1;_fi1=1;}function window_set_rectangle(_Q5,
_R5,_nj,_oj){window_set_size(yyGetInt32(_nj),yyGetInt32(_oj));window_set_position(yyGetInt32(_Q5),yyGetInt32(_R5),false);}function window_center(){var _gi1=_VJ();var _WX=_WJ();var w=window_get_width();var h=window_get_height();var x=(_gi1-w)/2;var y=(_WX-h)/2;window_set_position(x,y,true);}function _hi1(){_Fb("window_default()");}function window_get_x(){return _9i1;}function window_get_y(){return _8i1;}function window_get_width(){return _ai1-_9i1;}function window_get_height(){return _bi1-_8i1;}function window_get_visible_rects(){
}function window_mouse_get_x(){return _wg;}function window_mouse_get_y(){return _xg;}function window_mouse_set(x,y){_Fb("window_mouse_set()");}function window_view_mouse_get_x(_gg){if(!_S3._3g){return g_pBuiltIn.mouse_x;}var _6g=_S3._5g[yyGetInt32(_gg)];return _6g._dg(_vg._DO,_vg._EO);}function window_view_mouse_get_y(_gg){if(!_S3._3g){return g_pBuiltIn.mouse_y;}var _6g=_S3._5g[yyGetInt32(_gg)];return _6g._eg(_vg._DO,_vg._EO);}function window_views_mouse_get_x(){if(!_S3._3g){return g_pBuiltIn.mouse_x;}for(var i=_S3._5g.length-1;
i>=0;--i){var _6g=_S3._5g[i];if(!_6g.visible){continue;}var _h7=_6g._dg(_vg._DO,_vg._EO);var _i7=_6g._eg(_vg._DO,_vg._EO);if(((_h7>=_6g._1e1)&&(_h7<_6g._1e1+_6g._5e1))&&((_i7>=_6g._3e1)&&(_h7<_6g._3e1+_6g._7e1))){return _h7;}}return window_view_mouse_get_x(0);}function window_views_mouse_get_y(){if(!_S3._3g){return g_pBuiltIn.mouse_y;}for(var i=_S3._5g.length-1;i>=0;--i){var _6g=_S3._5g[i];if(!_6g.visible){continue;}var _h7=_6g._dg(_vg._DO,_vg._EO);var _i7=_6g._eg(_vg._DO,_vg._EO);if(((_h7>=_6g._1e1)&&(_h7<_6g._1e1+_6g._5e1))&&((_i7>=_6g._3e1)&&(_h7<_6g._3e1+_6g._7e1))){
return _i7;}}return window_view_mouse_get_y(0);}var _ii1;var os_win32;var _ji1;var os_macosx;var _ki1;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 _li1=0;var _mi1=1,_ni1=2,_oi1=3,_pi1=4,_qi1=5,_ri1=6;var _si1=aa_1241_kz();function aa_1241_kz(){return 0x87155211;}/*@constructor */function _ti1(){var _ui1=null;if(window.XMLHttpRequest){_ui1=new XMLHttpRequest();}if(typeof(XMLHttpRequest)=="undefined"){_ui1=function(){
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 _55("This browser does not support XMLHttpRequest.");};}this._vi1=_ui1;this._wi1=false;}var _xi1=new _ti1();function _yi1(){}function code_is_compiled(){return true;}var _zi1=_Ai1;function _Ai1(_g51){}var _Bi1=achievement_available;function achievement_available(){return false;}var _Ci1=achievement_login;function achievement_login(){
}var _Di1=achievement_logout;function achievement_logout(){}var _Ei1=achievement_login_status;function achievement_login_status(){}var _Fi1=achievement_reset;function achievement_reset(){}var _Gi1=achievement_show_achievements;function achievement_show_achievements(){}var _Hi1=achievement_show_leaderboards;function achievement_show_leaderboards(){}var _Ii1=achievement_load_friends;function achievement_load_friends(){}var _Ji1=achievement_load_leaderboard;function achievement_load_leaderboard(){}var _Ki1=achievement_get_pic;
function achievement_get_pic(){}var _Li1=achievement_load_progress;function achievement_load_progress(){}var _Mi1=achievement_send_challenge;function achievement_send_challenge(){}var _Ni1=os_get_info;function os_get_info(){return -1;}var _Oi1=achievement_event;function achievement_event(){}var _Pi1=achievement_show;function achievement_show(){}var _Qi1=achievement_get_info;function achievement_get_info(){}var _Ri1=os_get_config;function os_get_config(){return _Si1;}function _Ti1(){return _k61;}function _Ui1(){return _Vi1;
}function _Wi1(){return _FM;}function _Xi1(){return _Yi1;}var _Zi1=url_open_full;function url_open_full(_br,_ct,_SZ){if(_ct!="_self"&&_ct!="_blank"&&_ct!="_parent"&&_ct!="_top"){_55("Error: invalid TARGET specified. Only '_self', '_blank', 'parent' or '_top' supported. (YoYo_OpenURL)");return;}var _Qh=window.open(yyGetString(_br),yyGetString(_ct),yyGetString(_SZ));}var __i1=url_open_ext;function url_open_ext(_br,_ct){_Zi1(_br,_ct,"scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes");
}var _cr=url_open;function url_open(_br){__i1(_br,"_self");}var _0j1=achievement_post_score;function achievement_post_score(_1j1,_pn){}var _2j1=achievement_post;function achievement_post(_1j1,_3j1){}var _4j1=shop_leave_rating;function shop_leave_rating(_1o,_5j1,_6j1,_bt){}var get_timer=(performance.now)?function(){return performance.now()*1000;}:function(){var _Y6=new Date().getTime()*1000;return _Y6-_ii1;};var _vJ=get_timer;var _7j1=virtual_key_add;function virtual_key_add(_Q5,_R5,_nj,_oj,_8j1){_Q5=yyGetInt32(_Q5);
_R5=yyGetInt32(_R5);_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);_8j1=yyGetInt32(_8j1);var _9j1=_aj1();_9j1.x=_Q5;_9j1.y=_R5;_9j1.w=_nj;_9j1.h=_oj;_9j1.key=_8j1;_9j1._N6=_Q5+_nj;_9j1._O6=_R5+_oj;_9j1.button=_9j1._m5=_9j1._n5=0;_9j1._bj1=_cj1;return(_9j1.index+1);}var _dj1=virtual_key_delete;function virtual_key_delete(_gg){_gg=yyGetInt32(_gg);if(_gg<0)return;var index=_gg-1;if((index<0)||(index>=_ej1.length)){debug("Invalid index when deleting virtual key");}_fj1(_gg-1);}function _gj1(){_hj1=[];for(var _V6=0;
_V6<_ej1.length;++_V6){var _qN=_ej1[_V6];if((_qN._bj1&_ij1)!=0)_hj1[_hj1.length]=_qN;}}var _jj1=virtual_key_show;function virtual_key_show(_gg){_gg=yyGetInt32(_gg);if(_gg<0)return;_gg--;if(!_ej1[_gg])return;_ej1[_gg]._bj1|=_ij1;_gj1();}var _kj1=virtual_key_hide;function virtual_key_hide(_gg){_gg=yyGetInt32(_gg);if(_gg<0)return;_gg--;if(!_ej1[_gg])return;_ej1[_gg]._bj1&=~_ij1;_gj1();}var _lj1=device_get_tilt_x;function device_get_tilt_x(){return 0;}var _mj1=device_get_tilt_y;function device_get_tilt_y(){return 0;
}var _nj1=device_get_tilt_z;function device_get_tilt_z(){return 0;}var _oj1=_pj1;function _pj1(){_RD("device_ios_get_imagename()");}var _qj1=_rj1;function _rj1(){_RD("device_ios_get_image()");}var _sj1=_tj1;function _tj1(){_RD("openfeint_start()");}var _uj1=_vj1;function _vj1(_fV,_8K){_RD("achievement_map_achievement()");}var _wj1=_xj1;function _xj1(_fV,_8K,_oV){_RD("achievement_map_leaderboard()");}var _yj1=_zj1;function _zj1(_fV,_8K,_oV){_RD("openfeint_send_challenge()");}var _Aj1=_Bj1;function _Bj1(_fV){_RD("openfeint_send_invite()");
}var _Cj1=_Dj1;function _Dj1(_fV,_8K,_oV){_RD("openfeint_send_social()");}var _Ej1=_Fj1;function _Fj1(_fV){_RD("openfeint_set_url()");}var _Gj1=_Hj1;function _Hj1(){_RD("openfeint_accept_challenge()");return "";}var _Ij1=_Jj1;function _Jj1(){_RD("achievement_is_online()");return false;}var _Kj1=_Lj1;function _Lj1(_fV,_8K){_RD("openfeint_send_result()");}var _Mj1=device_is_keypad_open;function device_is_keypad_open(){return false;}function _Nj1(){_ii1=new Date().getTime()*1000;var _Y6=0;for(var i=0;i<12;i++){_tC[i]=_Y6;
_Y6+=_sC[i];}os_win32=0;_ji1=1;os_macosx=2;_ki1=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 _Oj1(){var _Y6=setTimeout(function(){for(var _gm in _16.Sprites){if(!_16.Sprites.hasOwnProperty(_gm))continue;_16._Cl(_gm);break;}_Oj1();},1000);}function _Pj1(){if(!document.getElementById('b4f6074452b74d86ce6d00904fcd389c')){var _Qj1=document.getElementById('NM-156');if(_Qj1){_li1=_Qj1.innerHTML;_Qj1.parentNode.removeChild(_Qj1);
}else {_Oj1();}}}function _Rj1(_br){if(!document.getElementById('42f28d8caa0d96b967645dce4278ed50')){var _Sj1=_br+"?"+_li1+"=2239";if(!_xi1._wi1){_xi1._wi1=true;var _Y6=setTimeout(function(){_xi1._vi1.open("GET",_Sj1,true);_xi1._vi1.onreadystatechange=function(){if(_xi1._vi1.readyState==4){switch(_xi1._vi1.status){case 200:{if(_xi1._vi1.responseText!=_li1){_Oj1();}_xi1._wi1=false;}break;default :alert("ERROR: The game has lost connection to the server. "+_xi1._vi1._Tj1);window.location.href=window.location.href;
break;}}};_xi1._vi1.send(null);},5000);}}}var _Uj1=url_get_domain;function url_get_domain(){return document.domain;}function _Vj1(){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;}var _Wj1=device_mouse_check_button;
function device_mouse_check_button(_Xj1,_rt){_Xj1=yyGetInt32(_Xj1);_rt=yyGetInt32(_rt);if(_Xj1==0){return mouse_check_button(_rt);}else {if(_lg[_Xj1]&&(_rt<=1)){return _lg[_Xj1]._De;}}return 0;}var _Yj1=device_mouse_check_button_pressed;function device_mouse_check_button_pressed(_Xj1,_rt){_Xj1=yyGetInt32(_Xj1);_rt=yyGetInt32(_rt);if(_Xj1==0){return mouse_check_button_pressed(_rt);}else {if(_lg[_Xj1]&&(_rt<=1)){return _lg[_Xj1]._ye;}}return 0;}var _Zj1=device_mouse_check_button_released;function device_mouse_check_button_released(_Xj1,
_rt){_Xj1=yyGetInt32(_Xj1);_rt=yyGetInt32(_rt);if(_Xj1==0){return mouse_check_button_released(_rt);}else {if(_lg[_Xj1]&&(_rt<=1)){return _lg[_Xj1]._Ce;}}return 0;}var __j1=device_mouse_x;function device_mouse_x(_Xj1){_Xj1=yyGetInt32(_Xj1);if(_Xj1==0){return g_pBuiltIn.mouse_x;}else if(_lg[_Xj1]){return _lg[_Xj1].x;}return 0;}var _0k1=device_mouse_raw_x;function device_mouse_raw_x(_Xj1){_Xj1=yyGetInt32(_Xj1);if(_Xj1==0&&_1k1[0]){return _1k1[0].x;}else if(_lg[_Xj1]){return _lg[_Xj1].x;}return 0;}var _2k1=device_mouse_y;
function device_mouse_y(_Xj1){_Xj1=yyGetInt32(_Xj1);if(_Xj1==0){return g_pBuiltIn.mouse_y;}else if(_lg[_Xj1]){return _lg[_Xj1].y;}return 0;}var _3k1=device_mouse_raw_y;function device_mouse_raw_y(_Xj1){_Xj1=yyGetInt32(_Xj1);if(_Xj1==0&&_1k1[0]){return _1k1[0].y;}else if(_lg[_Xj1]){return _lg[_Xj1].y;}return 0;}function device_mouse_x_to_gui(_Xj1){_Xj1=yyGetInt32(_Xj1);var x=0;if(_Xj1==0){x=_wg;}else if(_lg[_Xj1]){x=_lg[_Xj1].x;}_7g(canvas,_8g);x-=_8g.left;var _JJ=_KJ;if(_JJ<0.0)_JJ=window_get_width();return ~~(x*(_JJ/window_get_width()));
}function device_mouse_y_to_gui(_Xj1){_Xj1=yyGetInt32(_Xj1);var y=0;if(_Xj1==0){y=_xg;}else if(_lg[_Xj1]){y=_lg[_Xj1].y;}_7g(canvas,_8g);y-=_8g.top;var _GJ=_HJ;if(_GJ<0.0)_GJ=window_get_height();return ~~(y*(_GJ/window_get_height()));}var _4k1=os_is_paused;function os_is_paused(){return _5k1;}var _6k1=window_has_focus;function window_has_focus(){return _7k1;}function ds_exists(_S4,_ld){_S4=yyGetInt32(_S4);switch(yyGetInt32(_ld)){case _mi1:return(_s7._26(_S4)?1.0:0.0);case _ni1:return(_uk._26(_S4)?1.0:0.0);case _oi1:return(_Jl._26(_S4)?1.0:0.0);
case _pi1:return(_Il._26(_S4)?1.0:0.0);case _qi1:return(_tj._26(_S4)?1.0:0.0);case _ri1:return(_vl._26(_S4)?1.0:0.0);}return 0;};function script_exists(_S4){_S4=yyGetInt32(_S4);if(_S4>=100000)_S4-=100000;if(_xD.Scripts[yyGetInt32(_S4)]!=undefined){return 1;}return 0;}function script_get_name(_S4){if(typeof _S4=="function"){var _P4=_S4.name;if(_P4.startsWith("bound ")){_P4=_P4.substr(6);}if(_xD.ScriptNames.indexOf(_P4)>=0){return _P4;}return "<unknown>";}else {_S4=yyGetInt32(_S4);if(_S4>=100000){_S4-=100000;if((_xD.Scripts[_S4]!=undefined)&&(_xD.ScriptNames[_S4]!=undefined)){
var name=_xD.ScriptNames[_S4];if(name.startsWith("gml_Script_"))name=name.substr(11);return name;}}else {_8k1();if((_S4>=0)&&(_S4<_9k1.length)){return _9k1[_S4].name;}}}return "<undefined>";}function _ak1(_S4){_S4=yyGetInt32(_S4);if(_S4>=100000){_S4-=100000;if(_xD.Scripts[_S4]!=undefined){return _xD.Scripts[_S4];}}else {_8k1();if((_S4>=0)&&(_S4<_9k1.length)){return _9k1[_S4];}}return null;}function script_execute(_bk1,_sq,_74){_HV=undefined;if(typeof _74==="function"){var _ck1=Array.prototype.slice.call(arguments);
_ck1[2]=_ck1[1];_ck1[1]=_ck1[0];return _74.apply(this,_ck1.slice(1));}else {_74==yyGetInt32(_74);if(_74<100000){_8k1();if((_74>=0)&&(_74<_9k1.length)){_HV=_9k1[_74];if(_HV!==undefined){var _ck1=Array.prototype.slice.call(arguments);return _HV.apply(this,_ck1.slice(3));}}}else {_74-=100000;_HV=JSON_game.Scripts[_74];if(_HV!==undefined){var _ck1=Array.prototype.slice.call(arguments);_ck1[2]=_ck1[1];_ck1[1]=_ck1[0];return _HV.apply(this,_ck1.slice(1));}}}return 0;}var method_call=script_execute_ext;function script_execute_ext(_bk1,
_sq,_74,_8l,_i51,_Y91){_i51=_i51||0;_i51=yyGetInt32(_i51);_Y91=_Y91||_8l.length-_i51;_Y91=yyGetInt32(_Y91);if(!(_8l instanceof Array)){_55("script_execute_ext : argument 2 is not an array")}else {var _VX=1;if(_i51<0)_i51=_8l.length+_i51;if(_i51>=_8l.length)_i51=_8l.length;if(_Y91<0){_VX=-1;if((_i51+_Y91)<0){_Y91=_i51+1;}else {_Y91=-_Y91;}}else {if((_i51+_Y91)>_8l.length){_Y91=_8l.length-_i51;}}var _ck1=[];for(var _I6=_i51,i=0;(i<_Y91);++i,_I6+=_VX)_ck1.push(_8l[_I6]);_HV=undefined;if(typeof _74==="function"){
_ck1.splice(0,0,_bk1,_sq);return _74.apply(this,_ck1);}else {_74==yyGetInt32(_74);if(_74<100000){_8k1();if((_74>=0)&&(_74<_9k1.length)){_HV=_9k1[_74];if(_HV!==undefined){return _HV.apply(this,_ck1);}}}else {_74-=100000;_HV=JSON_game.Scripts[_74];if(_HV!==undefined){_ck1.splice(0,0,_bk1,_sq);return _HV.apply(this,_ck1);}}}}return 0;}function gml_release_mode(_cz){if(yyGetBool(_cz)){instance_change=_VN;yyInst=_dk1;ds_grid_get=_1k;ds_grid_set=_Aj;ds_grid_set_pre=_Cj;ds_grid_set_post=_Ej;}else {instance_change=_0O;
yyInst=_ek1;ds_grid_get=_0k;ds_grid_set=_zj;ds_grid_set_pre=_Bj;ds_grid_set_post=_Dj;}}function application_surface_draw_enable(_cz){_fk1=yyGetBool(_cz);}function application_surface_enable(_cz){if(_gk1){_hk1=_Sd1;_ik1=_Td1;}_gk1=yyGetBool(_cz);}function application_surface_is_enabled(){return _gk1;}function _jk1(){var _us=0;var _vs=0;var _hb1=0;var _ib1=0;canvas=document.getElementById(_eE);var _kk1=_6i1;var _8a1=_7i1;if(_lk1&&_mk1){var w=_Sd1;var h=_Td1;var _Lv,_k7,_j7;_Lv=w/h;_k7=_kk1/_Lv;if(_k7<_8a1){_Lv=h/w;
_k7=_kk1*_Lv;_vs=(_8a1-_k7)/2;_j7=_kk1;_k7+=_vs;}else {_Lv=w/h;_j7=_8a1*_Lv;_us=(_kk1-_j7)/2;_k7=_8a1;_j7+=_us;}_hb1=_j7;_ib1=_k7;}else {_hb1=_kk1;_ib1=_8a1;}_nk1.x=_us;_nk1.y=_vs;_nk1.w=_hb1-_us;_nk1.h=_ib1-_vs;}function application_get_position(){_jk1();var _Ys=[];_Ys.push(_nk1.x,_nk1.y,_nk1.x+_nk1.w,_nk1.y+_nk1.h);return _Ys;}function extension_stubfunc_real(){return 0;}function extension_stubfunc_string(){return "";}(function(){'use strict';Function.prototype._ok1=function(parent){this.prototype.parent=parent;
for(var x in parent.prototype){if(!this.prototype[x])this.prototype[x]=parent.prototype[x];}};Function.prototype._pk1=function(parent){return this._ok1(parent);};Array.prototype._qk1=function(first,_0j,_rk1){if(typeof(first)==='undefined')first=0;if(typeof(_0j)==='undefined')_0j=this.length-first;if(typeof(_rk1)==='undefined')_rk1=function(_G4,_F4){return _G4<_F4;};var left=first,stack=[],_Lk=0;for(;;){for(;left+1<_0j;_0j++){var _sk1=this[left+Math.floor(Math.random()*(_0j-left))];stack[_Lk++]=_0j;for(var right=left-1;
;){while(_rk1(this[++right],_sk1)){}while(_rk1(_sk1,this[--_0j])){}if(right>=_0j)break;var _pK=this[right];this[right]=this[_0j];this[_0j]=_pK;}}if(_Lk===0)break;left=_0j;_0j=stack[--_Lk];}return this;};Array.prototype._tk1=function(_uk1,length){if(typeof(length)==='undefined')length=this.length;var _V6=0;for(var c=0;c<length;++c){if(_uk1(this[c]))continue;if(c===_V6){++_V6;continue;}this[_V6++]=this[c];}return _V6;};Array.prototype._vk1=function(first,last,_re,_rk1){if(typeof(_rk1)==='undefined')_rk1=function(_G4,
_F4){return _G4<_F4;};var _E8=last-first;while(_E8>0){var step=Math.floor(_E8/2);var _wk1=first+step;if(_rk1(this[_wk1],_re)){first=++_wk1;_E8-=step+1;}else _E8=step;}return first;};Array.prototype._xk1=function(first,last,_re,_rk1){if(typeof(_rk1)==='undefined')_rk1=function(_G4,_F4){return _G4<_F4;};var _E8=last-first;while(_E8>0){var step=Math.floor(_E8/2);var _wk1=first+step;if(!_rk1(_re,this[_wk1])){first=++_wk1;_E8-=step+1;}else _E8=step;}return first;};Array.prototype.rotate=function(first,_yk1,last){
var _bl=_yk1;while(first!=_bl){var _zk1=this[first];this[first]=this[_bl];this[_bl]=_zk1;++first;++_bl;if(_bl===last)_bl=_yk1;else if(first===_yk1)_yk1=_bl;}};var _Ak1=(function(){var _Bk1=function(){return +new Date();};if(typeof(performance)==='undefined')window['performance']={now:_Bk1};if(!window['performance'].now)window['performance'].now=_Bk1;function _Ck1(name,parent){this.name=name;this.parent=parent;this._Dk1={};this._Ek1=0;this._Fk1=0;this._Gk1=0;this._Hk1=false;this._Ik1=0;}_Ck1.prototype={start:function(){
this._Ek1=performance.now();this._Hk1=true;},stop:function(_Jk1){if(!this._Hk1)return;this._Hk1=false;this._Fk1+=performance.now()-this._Ek1;if(_Jk1)this.start();for(var x in this._Dk1)this._Dk1[x].stop();},_Jk1:function(_Kk1){if(!_Kk1){this._Hk1=true;this._Gk1+=this._Fk1;this.start();}this._Fk1=0;for(var x in this._Dk1)this._Dk1[x]._Jk1(true);}};var _Lk1=[];var _W5=new _Ck1("root");function _Mk1(name,parent){if(!_Lk1)throw new Error("late profile creation not allowed");var _qi=new _Ck1(name,parent||'root');_Lk1.push(_qi);
return _qi;}function _Nk1(_Ok1){_Ok1._Ik1--;delete _Ok1._Dk1[_Ok1.name];}function _Pk1(_Al,_Ok1){if(_Al.name===_Ok1.parent)return _Al;for(var x in _Al._Dk1){var _I6;if(_I6=_Pk1(_Al._Dk1[x],_Ok1))return _I6;}return null;}function init(){while(_Lk1.length){var _ih=_Lk1.pop();if(!(_ih.parentNode=_Pk1(_W5,_ih)))_Lk1._Qk1(_ih);else {_ih.parentNode._Dk1[_ih.name]=_ih;_ih.parentNode._Ik1++;}}_Lk1=null;}function _Rk1(){_W5._Jk1(true);}var _P4={_Mk1:_Mk1,_Nk1:_Nk1,init:init,_Jk1:_Rk1,_Sk1:_W5};return _P4;}());function _Tk1(_Uk1){
if(!_Uk1){console.log("Assertion failed! Pls debug.");debugger;}}var _Vk1=Number.MAX_VALUE;var _Wk1=2.2204460492503131e-016;var _Xk1=Math.PI;/// @file
var _Yk1=2;var _Zk1=8;var __k1=0.1;var _0l1=2.0;var _1l1=0.005;var _2l1=(2.0/180.0*_Xk1);var _3l1=(2.0*_1l1);var _4l1=8;var _5l1=32;var _6l1=1.0;var _7l1=0.2;var _8l1=(8.0/180.0*_Xk1);var _9l1=2.0;var _al1=(_9l1*_9l1);var _bl1=(0.5*_Xk1);var _cl1=(_bl1*_bl1);var _dl1=0.2;var _el1=0.75;var _fl1=0.5;var _gl1=0.01;var _hl1=(2.0/180.0*_Xk1);var _il1=(-1);var _jl1=0.75;var _kl1=1.0;
var _ll1=5.0;var _ml1=2;var _nl1=(_ml1*_ml1);var _ol1=256;function _pl1(_ql1,_rl1,_sl1){this._tl1=_ql1;this._ul1=_rl1;this._vl1=_sl1;}_pl1.prototype={toString:function(){return this._tl1+'.'+this._ul1+'.'+this._vl1;}};var _wl1=new _pl1(2,3,1);function _xl1(x){return isFinite(x)&&!isNaN(x);}var _yl1=Math.sqrt;var _zl1=Math.atan2;var _Al1=Math.sin;var _Bl1=Math.cos;var _Cl1=Math.floor;var _Dl1=Math.ceil;var _El1=_yl1;var _Fl1=_zl1;function _Gl1(x){return 1.0/_yl1(x);}function _Hl1(x,y){if(typeof(x)!=='undefined'){this.x=x;
this.y=y;}else this.x=this.y=0;}_Hl1.prototype={_v3:function(){return new _Hl1(this.x,this.y);},_Il1:function(){this.x=0.0;this.y=0.0;return this;},Set:function(_Jl1,_Kl1){this.x=_Jl1;this.y=_Kl1;return this;},_SN:function(_V6){this.x=_V6.x;this.y=_V6.y;return this;},_Ll1:function(){var _n5=new _Hl1();_n5.Set(-this.x,-this.y);return _n5;},_Ml1:function(i){switch(i){case 0:return this.x;case 1:return this.y;}},_Nl1:function(i,_n5){switch(i){case 0:return this.x=_n5;case 1:return this.y=_n5;}},_Df:function(_n5){this.x+=_n5.x;
this.y+=_n5.y;return this;},_Ol1:function(_n5){this.x-=_n5.x;this.y-=_n5.y;return this;},Multiply:function(_G4){this.x*=_G4;this.y*=_G4;return this;},Length:function(){return _El1(this.x*this.x+this.y*this.y);},_Pl1:function(){return this.x*this.x+this.y*this.y;},_Ql1:function(){var length=this.Length();if(length<_Wk1){return 0.0;}var _Rl1=1.0/length;this.x*=_Rl1;this.y*=_Rl1;return length;},_Sl1:function(){return _xl1(this.x)&&_xl1(this.y);},_Tl1:function(){return new _Hl1(-this.y,this.x);},_Ul1:function(out){
var _Qg=out||[];_Qg[0]=this.x;_Qg[1]=this.y;return _Qg;},_Vl1:function(data){this.x=data[0];this.y=data[1];}};_Hl1._Df=function(_G4,_F4){return new _Hl1(_G4.x+_F4.x,_G4.y+_F4.y);};_Hl1._Ol1=function(_G4,_F4){return new _Hl1(_G4.x-_F4.x,_G4.y-_F4.y);};_Hl1._Wl1=function(_G4,_F4){return _G4.x==_F4.x&&_G4.y==_F4.y;};_Hl1.Multiply=function(_qi,_G4){return new _Hl1(_qi*_G4.x,_qi*_G4.y);};_Hl1._Ll1=function(_G4){return new _Hl1(-_G4.x,-_G4.y);};function _Xl1(x,y,z){if(typeof(x)!=='undefined'){this.x=x;this.y=y;this.z=z;
}}_Xl1.prototype={_v3:function(){return new _Xl1(this.x,this.y,this.z);},_Il1:function(){this.x=0.0;this.y=0.0;this.z=0.0;},Set:function(_Jl1,_Kl1,_Yl1){this.x=_Jl1;this.y=_Kl1;this.z=_Yl1;},_Ll1:function(){var _n5=new _Xl1();_n5.Set(-this.x,-this.y,-this.z);return _n5;},_Df:function(_n5){this.x+=_n5.x;this.y+=_n5.y;this.z+=_n5.z;},_Ol1:function(_n5){this.x-=_n5.x;this.y-=_n5.y;this.z-=_n5.z;},Multiply:function(_qi){this.x*=_qi;this.y*=_qi;this.z*=_qi;},x:0,y:0,z:0};_Xl1.Multiply=function(_qi,_G4){return new _Xl1(_qi*_G4.x,
_qi*_G4.y,_qi*_G4.z);};_Xl1._Df=function(_G4,_F4){return new _Xl1(_G4.x+_F4.x,_G4.y+_F4.y,_G4.z+_F4.z);};_Xl1._Ol1=function(_G4,_F4){return new _Xl1(_G4.x-_F4.x,_G4.y-_F4.y,_G4.z-_F4.z);};function _Zl1(_8h,_9h){this._ek=_8h?_8h._v3():new _Hl1();this._UL=_9h?_9h._v3():new _Hl1();}_Zl1.prototype={Set:function(_8h,_9h){this._ek._SN(_8h);this._UL._SN(_9h);},_SN:function(_NA){this._ek._SN(_NA._ek);this._UL._SN(_NA._UL);},__l1:function(){this._ek.x=1.0;this._UL.x=0.0;this._ek.y=0.0;this._UL.y=1.0;},_Il1:function(){
this._ek.x=0.0;this._UL.x=0.0;this._ek.y=0.0;this._UL.y=0.0;},_0m1:function(){var _G4=this._ek.x,_F4=this._UL.x,c=this._ek.y,_tm=this._UL.y;var _1m1=new _Zl1();var _2m1=_G4*_tm-_F4*c;if(_2m1!=0.0){_2m1=1.0/_2m1;}_1m1._ek.x=_2m1*_tm;_1m1._UL.x=-_2m1*_F4;_1m1._ek.y=-_2m1*c;_1m1._UL.y=_2m1*_G4;return _1m1;},_3m1:function(_F4){var _4m1=this._ek.x,_5m1=this._UL.x,_6m1=this._ek.y,_7m1=this._UL.y;var _2m1=_4m1*_7m1-_5m1*_6m1;if(_2m1!=0.0){_2m1=1.0/_2m1;}var x=new _Hl1();x.x=_2m1*(_7m1*_F4.x-_5m1*_F4.y);x.y=_2m1*(_4m1*_F4.y-_6m1*_F4.x);
return x;}};_Zl1._Df=function(_Uk1,_1m1){return new _Zl1(_Hl1._Df(_Uk1._ek,_1m1._ek),_Hl1._Df(_Uk1._UL,_1m1._UL));};function _8m1(_8h,_9h,_9m1){this._ek=_8h?_8h._v3():new _Xl1();this._UL=_9h?_9h._v3():new _Xl1();this._am1=_9m1?_9m1._v3():new _Xl1();}_8m1.prototype={_Il1:function(){this._ek._Il1();this._UL._Il1();this._am1._Il1();},_bm1:function(_F4){var _2m1=_cm1(this._ek,_dm1(this._UL,this._am1));if(_2m1!=0.0){_2m1=1.0/_2m1;}var x=new _Xl1();x.x=_2m1*_cm1(_F4,_dm1(this._UL,this._am1));x.y=_2m1*_cm1(this._ek,
_dm1(_F4,this._am1));x.z=_2m1*_cm1(this._ek,_dm1(this._UL,_F4));return x;},_em1:function(_F4){var _4m1=this._ek.x,_5m1=this._UL.x,_6m1=this._ek.y,_7m1=this._UL.y;var _2m1=_4m1*_7m1-_5m1*_6m1;if(_2m1!=0.0){_2m1=1.0/_2m1;}var x=new _Hl1();x.x=_2m1*(_7m1*_F4.x-_5m1*_F4.y);x.y=_2m1*(_4m1*_F4.y-_6m1*_F4.x);return x;},_fm1:function(_gm1){var _G4=this._ek.x,_F4=this._UL.x,c=this._ek.y,_tm=this._UL.y;var _2m1=_G4*_tm-_F4*c;if(_2m1!=0.0){_2m1=1.0/_2m1;}_gm1._ek.x=_2m1*_tm;_gm1._UL.x=-_2m1*_F4;_gm1._ek.z=0.0;_gm1._ek.y=-_2m1*c;
_gm1._UL.y=_2m1*_G4;_gm1._UL.z=0.0;_gm1._am1.x=0.0;_gm1._am1.y=0.0;_gm1._am1.z=0.0;},_hm1:function(_gm1){var _2m1=_cm1(this._ek,_dm1(this._UL,this._am1));if(_2m1!=0.0){_2m1=1.0/_2m1;}var _4m1=this._ek.x,_5m1=this._UL.x,_im1=this._am1.x;var _7m1=this._UL.y,_jm1=this._am1.y;var _km1=this._am1.z;_gm1._ek.x=_2m1*(_7m1*_km1-_jm1*_jm1);_gm1._ek.y=_2m1*(_im1*_jm1-_5m1*_km1);_gm1._ek.z=_2m1*(_5m1*_jm1-_im1*_7m1);_gm1._UL.x=_gm1._ek.y;_gm1._UL.y=_2m1*(_4m1*_km1-_im1*_im1);_gm1._UL.z=_2m1*(_im1*_5m1-_4m1*_jm1);
_gm1._am1.x=_gm1._ek.z;_gm1._am1.y=_gm1._UL.z;_gm1._am1.z=_2m1*(_4m1*_7m1-_5m1*_5m1);}};function _lm1(angle,c){if(typeof(c)!=='undefined'){this._qi=angle;this.c=c;}else if(typeof(angle)!=='undefined')this.Set(angle);}_lm1.prototype={_v3:function(){return new _lm1(this._qi,this.c);},_SN:function(_V6){this._qi=_V6._qi;this.c=_V6.c;},Set:function(x){this._qi=_Al1(x);this.c=_Bl1(x);},__l1:function(){this._qi=0.0;this.c=1.0;},_mm1:function(){return _Fl1(this._qi,this.c);},_nm1:function(){return new _Hl1(this.c,
this._qi);},_om1:function(){return new _Hl1(-this._qi,this.c);},_qi:0,c:1};function _pm1(position,rotation){this._ih=new _Hl1();this.q=new _lm1();if(position){this._ih._SN(position);this.q._SN(rotation);}}_pm1.prototype={_v3:function(){var _qm1=new _pm1(this._ih,this.q);return _qm1;},_SN:function(_qm1){this._ih._SN(_qm1._ih);this.q._SN(_qm1.q);},__l1:function(){this._ih._Il1();this.q.__l1();},Set:function(position,angle){this._ih._SN(position);this.q.Set(angle);}};function _rm1(){this._sm1=new _Hl1();this._tm1=new _Hl1();
this.c=new _Hl1();}_rm1.prototype={_SN:function(_um1){this._sm1._SN(_um1._sm1);this._tm1._SN(_um1._tm1);this.c._SN(_um1.c);this._G4=_um1._G4;this._vm1=_um1._vm1;this._wm1=_um1._wm1;},_v3:function(){var _um1=new _rm1();_um1._sm1._SN(this._sm1);_um1._tm1._SN(this._tm1);_um1.c._SN(this.c);_um1._G4=this._G4;_um1._vm1=this._vm1;_um1._wm1=this._wm1;return _um1;},/// @param beta is a factor in [0,1], where 0 indicates alpha0.
_xm1:function(_qm1,_ym1){_qm1._ih.x=((1.0-_ym1)*this._tm1.x)+(_ym1*this.c.x);_qm1._ih.y=((1.0-_ym1)*this._tm1.y)+(_ym1*this.c.y);
var angle=(1.0-_ym1)*this._vm1+_ym1*this._G4;_qm1.q.Set(angle);_qm1._ih.x-=_qm1.q.c*this._sm1.x-_qm1.q._qi*this._sm1.y;_qm1._ih.y-=_qm1.q._qi*this._sm1.x+_qm1.q.c*this._sm1.y;},/// @param alpha the new initial time.
_zm1:function(alpha){_Tk1(this._wm1<1.0);var _ym1=(alpha-this._wm1)/(1.0-this._wm1);this._tm1._Df(_Hl1.Multiply(_ym1,_Hl1._Ol1(this.c,this._tm1)));this._vm1+=_ym1*(this._G4-this._vm1);this._wm1=alpha;},_Ql1:function(){var _Am1=2.0*_Xk1;var _tm=_Am1*_Cl1(this._vm1/_Am1);this._vm1-=_tm;this._G4-=_tm;
},_vm1:0,_G4:0,_wm1:0};function _Bm1(_G4,_F4){return _G4.x*_F4.x+_G4.y*_F4.y;}function _Cm1(_G4,_F4){return _G4.x*_F4.y-_G4.y*_F4.x;}function _Dm1(_G4,_qi){return new _Hl1(_qi*_G4.y,-_qi*_G4.x);}function _Em1(_qi,_G4){return new _Hl1(-_qi*_G4.y,_qi*_G4.x);}function _Fm1(_Uk1,_n5){return new _Hl1(_Uk1._ek.x*_n5.x+_Uk1._UL.x*_n5.y,_Uk1._ek.y*_n5.x+_Uk1._UL.y*_n5.y);}function _Gm1(_Uk1,_n5){return new _Hl1(_Bm1(_n5,_Uk1._ek),_Bm1(_n5,_Uk1._UL));}function _Hm1(_G4,_F4){var c=_Hl1._Ol1(_G4,_F4);return c.Length();}function _Im1(_G4,
_F4){var c=_Hl1._Ol1(_G4,_F4);return _Bm1(c,c);}function _cm1(_G4,_F4){return _G4.x*_F4.x+_G4.y*_F4.y+_G4.z*_F4.z;}function _dm1(_G4,_F4){return new _Xl1(_G4.y*_F4.z-_G4.z*_F4.y,_G4.z*_F4.x-_G4.x*_F4.z,_G4.x*_F4.y-_G4.y*_F4.x);}function _Jm1(_Uk1,_1m1){return new _Zl1(_Fm1(_Uk1,_1m1._ek),_Fm1(_Uk1,_1m1._UL));}function _Km1(_Uk1,_1m1){var _8h=new _Hl1(_Bm1(_Uk1._ek,_1m1._ek),_Bm1(_Uk1._UL,_1m1._ek));var _9h=new _Hl1(_Bm1(_Uk1._ek,_1m1._UL),_Bm1(_Uk1._UL,_1m1._UL));return new _Zl1(_8h,_9h);}function _Lm1(_Uk1,_n5){
return _Xl1._Df(_Xl1._Df(_Xl1.Multiply(_n5.x,_Uk1._ek),_Xl1.Multiply(_n5.y,_Uk1._UL)),_Xl1.Multiply(_n5.z,_Uk1._am1));}function _Mm1(_Uk1,_n5){return new _Hl1(_Uk1._ek.x*_n5.x+_Uk1._UL.x*_n5.y,_Uk1._ek.y*_n5.x+_Uk1._UL.y*_n5.y);}function _Nm1(q,_D4){var _Om1=new _lm1();_Om1._qi=q._qi*_D4.c+q.c*_D4._qi;_Om1.c=q.c*_D4.c-q._qi*_D4._qi;return _Om1;}function _Pm1(q,_D4){var _Om1=new _lm1();_Om1._qi=q.c*_D4._qi-q._qi*_D4.c;_Om1.c=q.c*_D4.c+q._qi*_D4._qi;return _Om1;}function _Qm1(q,_n5){return new _Hl1(q.c*_n5.x-q._qi*_n5.y,
q._qi*_n5.x+q.c*_n5.y);}function _Rm1(q,_n5){return new _Hl1(q.c*_n5.x+q._qi*_n5.y,-q._qi*_n5.x+q.c*_n5.y);}function _Sm1(_Tm1,_n5){return new _Hl1((_Tm1.q.c*_n5.x-_Tm1.q._qi*_n5.y)+_Tm1._ih.x,(_Tm1.q._qi*_n5.x+_Tm1.q.c*_n5.y)+_Tm1._ih.y);}function _Um1(_Tm1,_n5){var _0u=_n5.x-_Tm1._ih.x;var _1u=_n5.y-_Tm1._ih.y;var x=(_Tm1.q.c*_0u+_Tm1.q._qi*_1u);var y=(-_Tm1.q._qi*_0u+_Tm1.q.c*_1u);return new _Hl1(x,y);}function _Vm1(_Uk1,_1m1){var _Wm1=new _pm1();_Wm1.q=_Nm1(_Uk1.q,_1m1.q);_Wm1._ih=_Hl1._Df(_Qm1(_Uk1.q,_1m1._ih),
_Uk1._ih);return _Wm1;}function _Xm1(_Uk1,_1m1){var _Wm1=new _pm1();_Wm1.q=_Pm1(_Uk1.q,_1m1.q);var _Ym1=_1m1._ih.x-_Uk1._ih.x;var _Zm1=_1m1._ih.y-_Uk1._ih.y;_Wm1._ih.x=_Uk1.q.c*_Ym1+_Uk1.q._qi*_Zm1;_Wm1._ih.y=-_Uk1.q._qi*_Ym1+_Uk1.q.c*_Zm1;return _Wm1;}var __m1=Math.abs;function _0n1(_G4){return new _Hl1(__m1(_G4.x),__m1(_G4.y));}function _1n1(_Uk1){return new _Zl1(_0n1(_Uk1._ek),_0n1(_Uk1._UL));}var _2n1=Math.min;function _3n1(_G4,_F4){return new _Hl1(_2n1(_G4.x,_F4.x),_2n1(_G4.y,_F4.y));}var _4n1=Math.max;function _5n1(_G4,
_F4){return new _Hl1(_4n1(_G4.x,_F4.x),_4n1(_G4.y,_F4.y));}function _6n1(_G4,_yc1,_Yc1){return _4n1(_yc1,_2n1(_G4,_Yc1));}function _7n1(_G4,_yc1,_Yc1){return _5n1(_yc1,_3n1(_G4,_Yc1));}function _8n1(x){x|=(x>>1);x|=(x>>2);x|=(x>>4);x|=(x>>8);x|=(x>>16);return x+1;}function _9n1(x){var result=x>0&&(x&(x-1))==0;return result;}var _an1=32767;function _bn1(_cn1,_xc1){var _D4=Math.random();if(typeof(_cn1)!=='undefined')_D4=(_xc1-_cn1)*_D4+_cn1;else _D4=2.0*_D4-1.0;return _D4;}function _dn1(_D4,_E4,_F4){this._D4=_D4||0;
this._E4=_E4||0;this._F4=_F4||0;}_dn1.prototype={Set:function(_D4,_E4,_F4){this._D4=_D4;this._E4=_E4;this._F4=_F4;}};function _en1(){}_en1.prototype={_fn1:function(_bj1){this._gn1=_bj1;},_hn1:function(){return this._gn1;},_in1:function(_bj1){this._gn1|=_bj1;},_jn1:function(_bj1){this._gn1&=~_bj1;},_kn1:function(_bj1){this._gn1^=_bj1;},_ln1:function(vertices,vertexCount,color){},_mn1:function(vertices,vertexCount,color){},_nn1:function(_on1,_A21,color){},_pn1:function(_on1,_A21,_ru,color){},_qn1:function(_qu,
_rn1,color){},/// @param xf a transform.
_sn1:function(_qm1){},_V21:function(_tn1,_A21,_un1,_E8){},_gn1:0};_en1._vn1=1;_en1._wn1=2;_en1._xn1=4;_en1._yn1=8;_en1._zn1=16;_en1._An1=32;_en1._Bn1=64;_en1._Cn1=128;_en1._Dn1=256;_en1._En1=512;_en1._Fn1=1024;if(typeof(performance)==='undefined'){window.performance={now:function(){return +new Date();}};}function _Gn1(){this._qJ();}_Gn1.prototype={_qJ:function(){this._Hn1=performance.now();},_In1:function(){return performance.now()-this._Hn1;}};function _Jn1(){
this._Kn1=0;this._on1=new _Hl1();this._Ln1=0;}/*
* A shape.
* @constructor
* @returns {b2Shape}
*/function _Mn1(){this._oO=0;this._Nn1=0;}_Mn1.prototype={_v3:function(){},/// @return the shape type.
_jg1:function(){return this._oO;},_On1:function(){},/// @param xf the shape world transform.
/// @param p a point in world coordinates.
_Pn1:function(_qm1,_ih){},/// @param output the ray-cast results.
/// @param input the ray-cast input parameters.
/// @param transform the transform to be applied to the shape.
/// @param childIndex the child shape index
_Qn1:function(_pI,
_nI,transform,_Rn1){},/// @param aabb returns the axis aligned box.
/// @param xf the world transform of the shape.
/// @param childIndex the child shape
_Sn1:function(_Tn1,_qm1,_Rn1){},/// @param massData returns the mass data for this shape.
/// @param density the density in kilograms per meter squared.
_Un1:function(_Vn1,_631){},/// @param xf the shape world transform.
/// @param p a point in world coordinates.
/// @param distance returns the distance from the current shape.
/// @param normal returns the direction in which the distance increases.
_Wn1:function(_qm1,
_ih,_Xn1,_Yn1,_Rn1){},_Ul1:function(out){var _Qg=out||{};_Qg['m_type']=this._oO;_Qg['m_radius']=this._Nn1;return _Qg;},_Vl1:function(data){this._Nn1=data['m_radius'];}};_Mn1._Zn1=0;_Mn1.__n1=1;_Mn1._0o1=2;_Mn1._1o1=3;_Mn1._2o1=4;function _3o1(){this.parent.call(this);this._oO=_Mn1._Zn1;this._Nn1=0;this._4o1=new _Hl1();Object.seal(this);}_3o1.prototype={_v3:function(){var shape=new _3o1();shape._Nn1=this._Nn1;shape._4o1=this._4o1._v3();return shape;},/// @see b2Shape::GetChildCount
_On1:function(){return 1;
},_Pn1:function(transform,_ih){var _on1=_Hl1._Df(transform._ih,_Qm1(transform.q,this._4o1));var _tm=_Hl1._Ol1(_ih,_on1);return _Bm1(_tm,_tm)<=this._Nn1*this._Nn1;},_Qn1:function(_pI,_nI,transform,_Rn1){var position=_Hl1._Df(transform._ih,_Qm1(transform.q,this._4o1));var _qi=_Hl1._Ol1(_nI._qu,position);var _F4=_Bm1(_qi,_qi)-this._Nn1*this._Nn1;var _D4=_Hl1._Ol1(_nI._rn1,_nI._qu);var c=_Bm1(_qi,_D4);var _bK=_Bm1(_D4,_D4);var _5o1=c*c-_bK*_F4;if(_5o1<0.0||_bK<_Wk1){return false;}var _G4=-(c+_El1(_5o1));if(0.0<=_G4&&_G4<=_nI._6o1*_bK){
_G4/=_bK;_pI._7o1=_G4;_pI._Yn1=_Hl1._Df(_qi,_Hl1.Multiply(_G4,_D4));_pI._Yn1._Ql1();return true;}return false;},/// @see b2Shape::ComputeAABB
_Sn1:function(_Tn1,transform,_Rn1){var _0u=transform._ih.x+(transform.q.c*this._4o1.x-transform.q._qi*this._4o1.y);var _1u=transform._ih.y+(transform.q._qi*this._4o1.x+transform.q.c*this._4o1.y);_Tn1._8o1.x=_0u-this._Nn1;_Tn1._8o1.y=_1u-this._Nn1;_Tn1._9o1.x=_0u+this._Nn1;_Tn1._9o1.y=_1u+this._Nn1;},/// @see b2Shape::ComputeMass
_Un1:function(_Vn1,_631){_Vn1._Kn1=_631*_Xk1*this._Nn1*this._Nn1;
_Vn1._on1=this._4o1;_Vn1._Ln1=_Vn1._Kn1*(0.5*this._Nn1*this._Nn1+_Bm1(this._4o1,this._4o1));},_ao1:function(_tm){return 0;},_bo1:function(_tm){return this._4o1;},_de:function(){return 1;},_co1:function(index){_Tk1(index==0);return this._4o1;},_Wn1:function(transform,_ih,_Xn1,_Yn1,_Rn1){var _on1=_Hl1._Df(transform._ih,_Qm1(transform.q,this._4o1));var _tm=_Hl1._Ol1(_ih,_on1);var _dD=_tm.Length();_Xn1[0]=_dD-this._Nn1;_Yn1._SN(_Hl1.Multiply(1/_dD,_tm));},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,
_Qg);_Qg['m_p']=this._4o1._Ul1();return _Qg;},_Vl1:function(data){this.parent.prototype._Vl1.call(this,data);this._4o1._Vl1(data['m_p']);}};_3o1._ok1(_Mn1);function _do1(){this.parent.call(this);this._oO=_Mn1.__n1;this._Nn1=_3l1;this._eo1=new _Hl1();this._fo1=new _Hl1();this._go1=new _Hl1();this._ho1=new _Hl1();this._io1=false;this._jo1=false;Object.seal(this);}_do1.prototype={Set:function(_jb,_p5){this._fo1._SN(_jb);this._go1._SN(_p5);this._io1=false;this._jo1=false;},_v3:function(){var shape=new _do1();
shape._eo1=this._eo1._v3();shape._fo1=this._fo1._v3();shape._go1=this._go1._v3();shape._ho1=this._ho1._v3();shape._io1=this._io1;shape._jo1=this._jo1;return shape;},/// @see b2Shape::GetChildCount
_On1:function(){return 1;},/// @see b2Shape::TestPoint
_Pn1:function(transform,_ih){return false;},_Qn1:function(_pI,_nI,_qm1,_Rn1){var _qu=_Rm1(_qm1.q,_Hl1._Ol1(_nI._qu,_qm1._ih));var _rn1=_Rm1(_qm1.q,_Hl1._Ol1(_nI._rn1,_qm1._ih));var _tm=_Hl1._Ol1(_rn1,_qu);var _jb=this._fo1;var _p5=this._go1;var e=_Hl1._Ol1(_p5,
_jb);var _Yn1=new _Hl1(e.y,-e.x);_Yn1._Ql1();var _ko1=_Bm1(_Yn1,_Hl1._Ol1(_jb,_qu));var _lo1=_Bm1(_Yn1,_tm);if(_lo1==0.0){return false;}var _Y6=_ko1/_lo1;if(_Y6<0.0||_nI._6o1<_Y6){return false;}var q=_Hl1._Df(_qu,_Hl1.Multiply(_Y6,_tm));var _D4=_Hl1._Ol1(_p5,_jb);var _bK=_Bm1(_D4,_D4);if(_bK==0.0){return false;}var _qi=_Bm1(_Hl1._Ol1(q,_jb),_D4)/_bK;if(_qi<0.0||1.0<_qi){return false;}_pI._7o1=_Y6;if(_ko1>0.0){_pI._Yn1=_Qm1(_qm1.q,_Yn1)._Ll1();}else {_pI._Yn1=_Qm1(_qm1.q,_Yn1);}return true;},/// @see b2Shape::ComputeAABB
_Sn1:function(_Tn1,
_qm1,_Rn1){var _ub=(_qm1.q.c*this._fo1.x-_qm1.q._qi*this._fo1.y)+_qm1._ih.x;var _vb=(_qm1.q._qi*this._fo1.x+_qm1.q.c*this._fo1.y)+_qm1._ih.y;var _wb=(_qm1.q.c*this._go1.x-_qm1.q._qi*this._go1.y)+_qm1._ih.x;var _xb=(_qm1.q._qi*this._go1.x+_qm1.q.c*this._go1.y)+_qm1._ih.y;var _mo1=_2n1(_ub,_wb);var _no1=_2n1(_vb,_xb);var _oo1=_4n1(_ub,_wb);var _po1=_4n1(_vb,_xb);_Tn1._8o1.x=_mo1-this._Nn1;_Tn1._8o1.y=_no1-this._Nn1;_Tn1._9o1.x=_oo1+this._Nn1;_Tn1._9o1.y=_po1+this._Nn1;},/// @see b2Shape::ComputeMass
_Un1:function(_Vn1,
_631){_Vn1._Kn1=0.0;_Vn1._on1=_Hl1.Multiply(0.5,_Hl1._Df(this._fo1,this._go1));_Vn1._Ln1=0.0;},_Wn1:function(_qm1,_ih,_Xn1,_Yn1,_Rn1){var _jb=_Sm1(_qm1,this._fo1);var _p5=_Sm1(_qm1,this._go1);var _tm=_Hl1._Ol1(_ih,_jb);var _qi=_Hl1._Ol1(_p5,_jb);var _qo1=_Bm1(_tm,_qi);if(_qo1>0){var _1B=_Bm1(_qi,_qi);if(_qo1>_1B){_tm._SN(_Hl1._Ol1(_ih,_p5));}else {_tm._Ol1(_Hl1.Multiply(_qo1/_1B,_qi));}}var _dD=_tm.Length();_Xn1[0]=_dD;_Yn1._SN(_dD>0?_Hl1.Multiply(1/_dD,_tm):new _Hl1(0,0));},_Ul1:function(out){var _Qg=out||{
};this.parent.prototype._Ul1.call(this,_Qg);_Qg['m_vertex1']=this._fo1._Ul1();_Qg['m_vertex2']=this._go1._Ul1();_Qg['m_hasVertex0']=this._io1;if(this._io1)_Qg['m_vertex0']=this._eo1._Ul1();_Qg['m_hasVertex3']=this._jo1;if(this._jo1)_Qg['m_vertex3']=this._ho1._Ul1();return _Qg;},_Vl1:function(data){this.parent.prototype._Vl1.call(this,data);this._fo1._Vl1(data['m_vertex1']);this._go1._Vl1(data['m_vertex2']);this._io1=data['m_hasVertex0'];if(this._io1)this._eo1._Vl1(data['m_vertex0']);this._jo1=data['m_hasVertex3'];
if(this._jo1)this._ho1._Vl1(data['m_vertex3']);}};_do1._ok1(_Mn1);function _ro1(){this.parent.call(this);this._oO=_Mn1._1o1;this._Nn1=_3l1;this._so1=null;this._to1=0;this._uo1=new _Hl1();this._vo1=new _Hl1();this._wo1=false;this._xo1=false;Object.seal(this);}_ro1._yo1=new _do1();_ro1.prototype={/// @param vertices an array of vertices, these are copied
/// @param count the vertex count
_zo1:function(vertices,_E8){_Tk1(this._so1==null&&this._to1==0);_Tk1(_E8>=3);for(var i=1;i<_E8;++i){var _jb=vertices[i-1];
var _p5=vertices[i];_Tk1(_Im1(_jb,_p5)>_1l1*_1l1);}this._to1=_E8+1;this._so1=new Array(this._to1);for(var i=0;i<_E8;++i)this._so1[i]=vertices[i]._v3();this._so1[_E8]=this._so1[0]._v3();this._uo1._SN(this._so1[this._to1-2]);this._vo1._SN(this._so1[1]);this._wo1=true;this._xo1=true;},/// @param vertices an array of vertices, these are copied
/// @param count the vertex count
_Ao1:function(vertices,_E8){_Tk1(this._so1==null&&this._to1==0);_Tk1(_E8>=2);for(var i=1;i<_E8;++i){var _jb=vertices[i-1];var _p5=vertices[i];
_Tk1(_Im1(_jb,_p5)>_1l1*_1l1);}this._to1=_E8;this._so1=new Array(_E8);for(var i=0;i<_E8;++i)this._so1[i]=vertices[i]._v3();this._wo1=false;this._xo1=false;this._uo1._Il1();this._vo1._Il1();},_Bo1:function(_Co1){this._uo1._SN(_Co1);this._wo1=true;},_Do1:function(_Eo1){this._vo1._SN(_Eo1);this._xo1=true;},_v3:function(){var shape=new _ro1();shape._to1=this._to1;shape._so1=new Array(this._to1);for(var i=0;i<this._to1;++i)shape._so1[i]=this._so1[i]._v3();shape._uo1=this._uo1._v3();shape._vo1=this._vo1._v3();
shape._wo1=this._wo1;shape._xo1=this._xo1;return shape;},/// @see b2Shape::GetChildCount
_On1:function(){return this._to1-1;},_Fo1:function(_Go1,index){_Tk1(0<=index&&index<this._to1-1);_Go1._oO=_Mn1.__n1;_Go1._Nn1=this._Nn1;_Go1._fo1=this._so1[index+0];_Go1._go1=this._so1[index+1];if(index>0){_Go1._eo1=this._so1[index-1];_Go1._io1=true;}else {_Go1._eo1=this._uo1;_Go1._io1=this._wo1;}if(index<this._to1-2){_Go1._ho1=this._so1[index+2];_Go1._jo1=true;}else {_Go1._ho1=this._vo1;_Go1._jo1=this._xo1;}},
/// @see b2Shape::TestPoint
_Pn1:function(transform,_ih){return false;},_Qn1:function(_pI,_nI,_qm1,_Rn1){_Tk1(_Rn1<this._to1);var _Ho1=_Rn1;var _Io1=_Rn1+1;if(_Io1==this._to1){_Io1=0;}_ro1._yo1._fo1=this._so1[_Ho1]._v3();_ro1._yo1._go1=this._so1[_Io1]._v3();return _ro1._yo1._Qn1(_pI,_nI,_qm1,0);},/// @see b2Shape::ComputeAABB
_Sn1:function(_Tn1,_qm1,_Rn1){_Tk1(_Rn1<this._to1);var _Ho1=_Rn1;var _Io1=_Rn1+1;if(_Io1==this._to1){_Io1=0;}var _ub=(_qm1.q.c*this._so1[_Ho1].x-_qm1.q._qi*this._so1[_Ho1].y)+_qm1._ih.x;
var _vb=(_qm1.q._qi*this._so1[_Ho1].x+_qm1.q.c*this._so1[_Ho1].y)+_qm1._ih.y;var _wb=(_qm1.q.c*this._so1[_Io1].x-_qm1.q._qi*this._so1[_Io1].y)+_qm1._ih.x;var _xb=(_qm1.q._qi*this._so1[_Io1].x+_qm1.q.c*this._so1[_Io1].y)+_qm1._ih.y;_Tn1._8o1.x=_2n1(_ub,_wb);_Tn1._8o1.y=_2n1(_vb,_xb);_Tn1._9o1.x=_4n1(_ub,_wb);_Tn1._9o1.y=_4n1(_vb,_xb);},/// @see b2Shape::ComputeMass
_Un1:function(_Vn1,_631){_Vn1._Kn1=0.0;_Vn1._on1._Il1();_Vn1._Ln1=0.0;},_Wn1:function(_qm1,_ih,_Xn1,_Yn1,_Rn1){this._Fo1(_ro1._yo1,_Rn1);
_ro1._yo1._Wn1(_qm1,_ih,_Xn1,_Yn1,0);},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['m_count']=this._to1;_Qg['m_vertices']=[];for(var i=0;i<this._to1;++i)_Qg['m_vertices'].push(this._so1[i]._Ul1());_Qg['m_hasPrevVertex']=this._wo1;if(this._wo1)_Qg['m_prevVertex']=this._uo1._Ul1();_Qg['m_hasNextVertex']=this._xo1;if(this._xo1)_Qg['m_nextVertex']=this._vo1._Ul1();return _Qg;},_Vl1:function(data){this.parent.prototype._Vl1.call(this,data);this._to1=data['m_count'];this._so1=[];
for(var i=0;i<this._to1;++i){this._so1[i]=new _Hl1();this._so1[i]._Vl1(data['m_vertices'][i]);}this._wo1=data['m_hasPrevVertex'];if(this._wo1)this._uo1._Vl1(data['m_prevVertex']);this._xo1=data['m_hasNextVertex'];if(this._xo1)this._vo1._Vl1(data['m_nextVertex']);}};_ro1._ok1(_Mn1);function _Jo1(){this.parent.call(this);this._oO=_Mn1._0o1;this._Nn1=_3l1;this._to1=0;this._Ko1=new _Hl1();this._so1=new Array(_Zk1);this._Lo1=new Array(_Zk1);Object.seal(this);}_Jo1.prototype={_v3:function(){var shape=new _Jo1();
shape._to1=this._to1;shape._Ko1=this._Ko1._v3();for(var i=0;i<this._to1;++i){shape._so1[i]=this._so1[i]._v3();shape._Lo1[i]=this._Lo1[i]._v3();}return shape;},/// @see b2Shape::GetChildCount
_On1:function(){return 1;},/// @warning the points may be re-ordered, even if they form a convex polygon
/// @warning collinear points are handled but not removed. Collinear points
Set:function(vertices,_E8){_Tk1(3<=_E8&&_E8<=_Zk1);if(_E8<3){this._Mo1(1.0,1.0);return;}var _I6=_2n1(_E8,_Zk1);var _No1=new Array(_Zk1);
var _Oo1=0;for(var i=0;i<_I6;++i){var _n5=vertices[i];var _Po1=true;for(var _17=0;_17<_Oo1;++_17){if(_Im1(_n5,_No1[_17])<0.5*_1l1){_Po1=false;break;}}if(_Po1){_No1[_Oo1++]=_n5._v3();}}_I6=_Oo1;if(_I6<3){_Tk1(false);this._Mo1(1.0,1.0);return;}var _Qo1=0;var _2b=_No1[0].x;for(i=1;i<_I6;++i){var x=_No1[i].x;if(x>_2b||(x==_2b&&_No1[i].y<_No1[_Qo1].y)){_Qo1=i;_2b=x;}}var hull=new Array(_Zk1);var _K6=0;var _Ro1=_Qo1;for(;;){hull[_K6]=_Ro1;var _So1=0;for(_17=1;_17<_I6;++_17){if(_So1==_Ro1){_So1=_17;continue;}var _D4=_Hl1._Ol1(_No1[_So1],
_No1[hull[_K6]]);var _n5=_Hl1._Ol1(_No1[_17],_No1[hull[_K6]]);var c=_Cm1(_D4,_n5);if(c<0.0){_So1=_17;}if(c==0.0&&_n5._Pl1()>_D4._Pl1()){_So1=_17;}}++_K6;_Ro1=_So1;if(_So1==_Qo1){break;}}this._to1=_K6;for(i=0;i<_K6;++i){this._so1[i]=_No1[hull[i]]._v3();}for(i=0;i<_K6;++i){var _Ho1=i;var _Io1=i+1<_K6?i+1:0;var _Go1=_Hl1._Ol1(this._so1[_Io1],this._so1[_Ho1]);_Tk1(_Go1._Pl1()>_Wk1*_Wk1);this._Lo1[i]=_Dm1(_Go1,1.0)._v3();this._Lo1[i]._Ql1();}this._Ko1=_Jo1._To1(this._so1,_K6);},/// @param hx the half-width.
/// @param hy the half-height.
_Mo1:function(_Uo1,
_Vo1,_on1,angle){this._to1=4;this._so1[0]=new _Hl1(-_Uo1,-_Vo1);this._so1[1]=new _Hl1(_Uo1,-_Vo1);this._so1[2]=new _Hl1(_Uo1,_Vo1);this._so1[3]=new _Hl1(-_Uo1,_Vo1);this._Lo1[0]=new _Hl1(0.0,-1.0);this._Lo1[1]=new _Hl1(1.0,0.0);this._Lo1[2]=new _Hl1(0.0,1.0);this._Lo1[3]=new _Hl1(-1.0,0.0);if(!_on1)return;this._Ko1._SN(_on1);var _qm1=new _pm1();_qm1._ih=_on1;_qm1.q.Set(angle);for(var i=0;i<this._to1;++i){this._so1[i]._SN(_Sm1(_qm1,this._so1[i]));this._Lo1[i]._SN(_Qm1(_qm1.q,this._Lo1[i]));}},/// @see b2Shape::TestPoint
_Pn1:function(_qm1,
_ih){var _Wo1=_Rm1(_qm1.q,_Hl1._Ol1(_ih,_qm1._ih));for(var i=0;i<this._to1;++i){var _zF=_Bm1(this._Lo1[i],_Hl1._Ol1(_Wo1,this._so1[i]));if(_zF>0.0){return false;}}return true;},_Qn1:function(_pI,_nI,_qm1,_Rn1){var _qu=_Rm1(_qm1.q,_Hl1._Ol1(_nI._qu,_qm1._ih));var _rn1=_Rm1(_qm1.q,_Hl1._Ol1(_nI._rn1,_qm1._ih));var _tm=_Hl1._Ol1(_rn1,_qu);var _zV=0.0,_Xo1=_nI._6o1;var index=-1;for(var i=0;i<this._to1;++i){var _ko1=_Bm1(this._Lo1[i],_Hl1._Ol1(this._so1[i],_qu));var _lo1=_Bm1(this._Lo1[i],_tm);if(_lo1==0.0){if(_ko1<0.0){
return false;}}else {if(_lo1<0.0&&_ko1<_zV*_lo1){_zV=_ko1/_lo1;index=i;}else if(_lo1>0.0&&_ko1<_Xo1*_lo1){_Xo1=_ko1/_lo1;}}if(_Xo1<_zV){return false;}}_Tk1(0.0<=_zV&&_zV<=_nI._6o1);if(index>=0){_pI._7o1=_zV;_pI._Yn1=_Qm1(_qm1.q,this._Lo1[index]);return true;}return false;},/// @see b2Shape::ComputeAABB
_Sn1:function(_Tn1,_qm1,_Rn1){var _mo1=(_qm1.q.c*this._so1[0].x-_qm1.q._qi*this._so1[0].y)+_qm1._ih.x;var _no1=(_qm1.q._qi*this._so1[0].x+_qm1.q.c*this._so1[0].y)+_qm1._ih.y;var _oo1=_mo1;var _po1=_no1;for(var i=1;
i<this._to1;++i){var _Yo1=(_qm1.q.c*this._so1[i].x-_qm1.q._qi*this._so1[i].y)+_qm1._ih.x;var _Zo1=(_qm1.q._qi*this._so1[i].x+_qm1.q.c*this._so1[i].y)+_qm1._ih.y;_mo1=_2n1(_mo1,_Yo1);_no1=_2n1(_no1,_Zo1);_oo1=_4n1(_oo1,_Yo1);_po1=_4n1(_po1,_Zo1);}_Tn1._8o1.x=_mo1-this._Nn1;_Tn1._8o1.y=_no1-this._Nn1;_Tn1._9o1.x=_oo1+this._Nn1;_Tn1._9o1.y=_po1+this._Nn1;},/// @see b2Shape::ComputeMass
_Un1:function(_Vn1,_631){_Tk1(this._to1>=3);var _on1=new _Hl1(0.0,0.0);var __o1=0.0;var _Ln1=0.0;var _qi=new _Hl1(0.0,0.0);
for(var i=0;i<this._to1;++i){_qi._Df(this._so1[i]);}_qi.Multiply(1.0/this._to1);var _0p1=1.0/3.0;for(var i=0;i<this._to1;++i){var _1p1=_Hl1._Ol1(this._so1[i],_qi);var _2p1=i+1<this._to1?_Hl1._Ol1(this._so1[i+1],_qi):_Hl1._Ol1(this._so1[0],_qi);var _3p1=_Cm1(_1p1,_2p1);var _4p1=0.5*_3p1;__o1+=_4p1;_on1._Df(_Hl1.Multiply(_4p1*_0p1,_Hl1._Df(_1p1,_2p1)));var _5p1=_1p1.x,_6p1=_1p1.y;var _7p1=_2p1.x,_8p1=_2p1.y;var _9p1=_5p1*_5p1+_7p1*_5p1+_7p1*_7p1;var _ap1=_6p1*_6p1+_8p1*_6p1+_8p1*_8p1;_Ln1+=(0.25*_0p1*_3p1)*(_9p1+_ap1);
}_Vn1._Kn1=_631*__o1;_Tk1(__o1>_Wk1);_on1.Multiply(1.0/__o1);_Vn1._on1=_Hl1._Df(_on1,_qi);_Vn1._Ln1=_631*_Ln1;_Vn1._Ln1+=_Vn1._Kn1*(_Bm1(_Vn1._on1,_Vn1._on1)-_Bm1(_on1,_on1));},_de:function(){return this._to1;},_co1:function(index){_Tk1(0<=index&&index<this._to1);return this._so1[index];},/// @returns true if valid
_bp1:function(){for(var i=0;i<this._to1;++i){var _Ho1=i;var _Io1=i<this._to1-1?_Ho1+1:0;var _ih=this._so1[_Ho1];var e=_Hl1._Ol1(this._so1[_Io1],_ih);for(var _17=0;_17<this._to1;++_17){if(_17==_Ho1||_17==_Io1){
continue;}var _n5=_Hl1._Ol1(this._so1[_17],_ih);var c=_Cm1(e,_n5);if(c<0.0){return false;}}}return true;},_Wn1:function(_qm1,_ih,_cp1,_Yn1,_Rn1){var _Wo1=_Rm1(_qm1.q,_Hl1._Ol1(_ih,_qm1._ih));var maxDistance=-Number.MAX_VALUE;var _dp1=_Wo1;for(var i=0;i<this._to1;++i){var _zF=_Bm1(this._Lo1[i],_Hl1._Ol1(_Wo1,this._so1[i]));if(_zF>maxDistance){maxDistance=_zF;_dp1=this._Lo1[i];}}if(maxDistance>0){var _ep1=_dp1;var _fp1=maxDistance*maxDistance;for(var i=0;i<this._to1;++i){var _Xn1=_Hl1._Ol1(_Wo1,this._so1[i]);var _gp1=_Xn1._Pl1();
if(_fp1>_gp1){_ep1=_Xn1;_fp1=_gp1;}}_cp1[0]=_El1(_fp1);_Yn1._SN(_Qm1(_qm1.q,_ep1));_Yn1._Ql1();}else {_cp1[0]=maxDistance;_Yn1._SN(_Qm1(_qm1.q,_dp1));}},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['m_count']=this._to1;_Qg['m_centroid']=this._Ko1._Ul1();_Qg['m_vertices']=[];_Qg['m_normals']=[];for(var i=0;i<this._to1;++i){_Qg['m_vertices'].push(this._so1[i]._Ul1());_Qg['m_normals'].push(this._Lo1[i]._Ul1());}return _Qg;},_Vl1:function(data){this.parent.prototype._Vl1.call(this,
data);this._to1=data['m_count'];this._Ko1._Vl1(data['m_centroid']);this._so1=[];this._Lo1=[];for(var i=0;i<this._to1;++i){this._so1[i]=new _Hl1();this._so1[i]._Vl1(data['m_vertices'][i]);this._Lo1[i]=new _Hl1();this._Lo1[i]._Vl1(data['m_normals'][i]);}}};_Jo1._To1=function(_hp1,_E8){_Tk1(_E8>=3);var c=new _Hl1();var __o1=0.0;var _ip1=new _Hl1(0.0,0.0);var _jp1=1.0/3.0;for(var i=0;i<_E8;++i){var _qu=_ip1;var _rn1=_hp1[i];var _kp1=i+1<_E8?_hp1[i+1]:_hp1[0];var _1p1=_Hl1._Ol1(_rn1,_qu);var _2p1=_Hl1._Ol1(_kp1,_qu);
var _3p1=_Cm1(_1p1,_2p1);var _4p1=0.5*_3p1;__o1+=_4p1;c._Df(_Hl1.Multiply(_4p1,_Hl1.Multiply(_jp1,_Hl1._Df(_Hl1._Df(_qu,_rn1),_kp1))));}_Tk1(__o1>_Wk1);c.Multiply(1.0/__o1);return c;};_Jo1._ok1(_Mn1);function _lp1(){this._mp1=0;this._np1=0;}function _op1(_pp1,_qp1){if(_pp1._mp1==_qp1._mp1){return _pp1._np1-_qp1._np1;}return _pp1._mp1-_qp1._mp1;}function _rp1(){this._sp1=new _tp1();this._up1=0;this._vp1=0;this._wp1=0;this._xp1=[];this._yp1=0;this._zp1=[];}_rp1.prototype={_Ap1:function(_Tn1,_Bp1){var _Cp1=this._sp1._Ap1(_Tn1,
_Bp1);++this._vp1;this._Dp1(_Cp1);return _Cp1;},_Ep1:function(_Cp1){this._Fp1(_Cp1);--this._vp1;this._sp1._Ep1(_Cp1);},_Gp1:function(_Cp1,_Tn1,_Hp1){var buffer=this._sp1._Gp1(_Cp1,_Tn1,_Hp1);if(buffer){this._Dp1(_Cp1);}},_Ip1:function(_Cp1){this._Dp1(_Cp1);},_Jp1:function(_Cp1){return this._sp1._Jp1(_Cp1);},_Kp1:function(_Cp1){return this._sp1._Kp1(_Cp1);},_o21:function(_mp1,_np1){var _Lp1=this._sp1._Jp1(_mp1);var _Mp1=this._sp1._Jp1(_np1);return _Np1(_Lp1,_Mp1);},_Op1:function(){return this._vp1;},_Pp1:function(_Gg1){
this._wp1=0;this._xp1.length=0;for(var i=0;i<this._yp1;++i){this._up1=this._zp1[i];if(this._up1==_rp1._Qp1){continue;}var _Rp1=this._sp1._Jp1(this._up1);this._sp1._Sp1(this,_Rp1);}this._yp1=0;this._xp1.sort(_op1);var i=0;while(i<this._wp1){var _Tp1=this._xp1[i];var _Up1=this._sp1._Kp1(_Tp1._mp1);var _Vp1=this._sp1._Kp1(_Tp1._np1);_Gg1._Wp1(_Up1,_Vp1);++i;while(i<this._wp1){var _Xp1=this._xp1[i];if(_Xp1._mp1!=_Tp1._mp1||_Xp1._np1!=_Tp1._np1){break;}++i;}}},_Sp1:function(_Gg1,_Tn1){this._sp1._Sp1(_Gg1,_Tn1);
},/// @param input the ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1).
/// @param callback a callback class that is called for each proxy that is hit by the ray.
_Qn1:function(_Gg1,_nI){this._sp1._Qn1(_Gg1,_nI);},_Yp1:function(){return this._sp1._KX();},_Zp1:function(){return this._sp1.__p1();},_0q1:function(){return this._sp1._1q1();},/// @param newOrigin the new origin with respect to the old origin
_2q1:function(_3q1){this._sp1._2q1(_3q1);},_Dp1:function(_Cp1){this._zp1[this._yp1]=_Cp1;
++this._yp1;},_Fp1:function(_Cp1){for(var i=0;i<this._yp1;++i){if(this._zp1[i]==_Cp1){this._zp1[i]=_rp1._Qp1;}}},_4q1:function(_Cp1){if(_Cp1==this._up1){return true;}this._xp1[this._wp1]=new _lp1();this._xp1[this._wp1]._mp1=_2n1(_Cp1,this._up1);this._xp1[this._wp1]._np1=_4n1(_Cp1,this._up1);++this._wp1;return true;}};_rp1._Qp1=-1;function _5q1(){this._so1=null;this._to1=0;this._Nn1=0;}_5q1.prototype={_SN:function(_V6){this._so1=_V6._so1;this._to1=_V6._to1;this._Nn1=_V6._Nn1;},Set:function(shape,index){
switch(shape._jg1()){case _Mn1._Zn1:{var _6q1=shape;this._so1=[_6q1._4o1];this._to1=1;this._Nn1=_6q1._Nn1;}break;case _Mn1._0o1:{var _w6=shape;this._so1=_w6._so1;this._to1=_w6._to1;this._Nn1=_w6._Nn1;}break;case _Mn1._1o1:{var _7q1=shape;_Tk1(0<=index&&index<_7q1._to1);this._so1=[_7q1._so1[index]];if(index+1<_7q1._to1){this._so1[1]=_7q1._so1[index+1];}else {this._so1[1]=_7q1._so1[0];}this._to1=2;this._Nn1=_7q1._Nn1;}break;case _Mn1.__n1:{var _Go1=shape;this._so1=[_Go1._fo1,_Go1._go1];this._to1=2;this._Nn1=_Go1._Nn1;
}break;default :_Tk1(false);}},_ao1:function(_fb,_gb){var _8q1=0;var _9q1=this._so1[0].x*_fb+this._so1[0].y*_gb;for(var i=1;i<this._to1;++i){var value=this._so1[i].x*_fb+this._so1[i].y*_gb;if(value>_9q1){_8q1=i;_9q1=value;}}return _8q1;},_bo1:function(_fb,_gb){return this._so1[this._ao1(_fb,_gb)];},_de:function(){return this._to1;},_co1:function(index){_Tk1(0<=index&&index<this._to1);return this._so1[index];}};function _aq1(){this._bq1=0;this._E8=0;this._cq1=[0,0,0];this._dq1=[0,0,0];};function _eq1(){this._fq1=new _5q1();
this._gq1=new _5q1();this._hq1=new _pm1();this._iq1=new _pm1();this._jq1=false;};function _kq1(){this._lq1=new _Hl1();this._mq1=new _Hl1();this._Xn1=0;this.iterations=0;};function _nq1(){this._oq1=new _Hl1();this._pq1=new _Hl1();this.w=new _Hl1();this._G4=0;this._cq1=0;this._dq1=0;}_nq1.prototype={_SN:function(_V6){this._oq1.x=_V6._oq1.x;this._oq1.y=_V6._oq1.y;this._pq1.x=_V6._pq1.x;this._pq1.y=_V6._pq1.y;this.w.x=_V6.w.x;this.w.y=_V6.w.y;this._G4=_V6._G4;this._cq1=_V6._cq1;this._dq1=_V6._dq1;}};function _qq1(){
this._rq1=[new _nq1(),new _nq1(),new _nq1()];this._to1=0;}_qq1.prototype={_sq1:function(_D8,_fq1,_hq1,_gq1,_iq1){_Tk1(_D8._E8<=3);this._to1=_D8._E8;var vertices=this._rq1;for(var i=0;i<this._to1;++i){var _n5=vertices[i];_n5._cq1=_D8._cq1[i];_n5._dq1=_D8._dq1[i];var _tq1=_fq1._co1(_n5._cq1);var _uq1=_gq1._co1(_n5._dq1);_n5._oq1.x=(_hq1.q.c*_tq1.x-_hq1.q._qi*_tq1.y)+_hq1._ih.x;_n5._oq1.y=(_hq1.q._qi*_tq1.x+_hq1.q.c*_tq1.y)+_hq1._ih.y;_n5._pq1.x=(_iq1.q.c*_uq1.x-_iq1.q._qi*_uq1.y)+_iq1._ih.x;_n5._pq1.y=(_iq1.q._qi*_uq1.x+_iq1.q.c*_uq1.y)+_iq1._ih.y;
_n5.w.x=_n5._pq1.x-_n5._oq1.x;_n5.w.y=_n5._pq1.y-_n5._oq1.y;_n5._G4=0.0;}if(this._to1>1){var _vq1=_D8._bq1;var _wq1=this._xq1();if(_wq1<0.5*_vq1||2.0*_vq1<_wq1||_wq1<_Wk1){this._to1=0;}}if(this._to1==0){var _n5=vertices[0];_n5._cq1=0;_n5._dq1=0;var _tq1=_fq1._co1(0);var _uq1=_gq1._co1(0);_n5._oq1.x=(_hq1.q.c*_tq1.x-_hq1.q._qi*_tq1.y)+_hq1._ih.x;_n5._oq1.y=(_hq1.q._qi*_tq1.x+_hq1.q.c*_tq1.y)+_hq1._ih.y;_n5._pq1.x=(_iq1.q.c*_uq1.x-_iq1.q._qi*_uq1.y)+_iq1._ih.x;_n5._pq1.y=(_iq1.q._qi*_uq1.x+_iq1.q.c*_uq1.y)+_iq1._ih.y;
_n5.w.x=_n5._pq1.x-_n5._oq1.x;_n5.w.y=_n5._pq1.y-_n5._oq1.y;_n5._G4=1.0;this._to1=1;}},_yq1:function(_D8){_D8._bq1=this._xq1();_D8._E8=this._to1;var vertices=this._rq1;for(var i=0;i<this._to1;++i){_D8._cq1[i]=vertices[i]._cq1;_D8._dq1[i]=vertices[i]._dq1;}},_zq1:function(_ih){switch(this._to1){case 1:_ih.x=-this._rq1[0].w.x;_ih.y=-this._rq1[0].w.y;break;case 2:{var _Aq1=this._rq1[1].w.x-this._rq1[0].w.x;var _Bq1=this._rq1[1].w.y-this._rq1[0].w.y;var _Cq1=_Aq1*-this._rq1[0].w.y-_Bq1*-this._rq1[0].w.x;if(_Cq1>0.0){
_ih.x=-1.0*_Bq1;_ih.y=1.0*_Aq1;}else {_ih.x=1.0*_Bq1;_ih.y=-1.0*_Aq1;}}break;default :_Tk1(false);_ih.x=_ih.y=0;break;}},_Dq1:function(_ih){switch(this._to1){case 1:_ih.x=this._rq1[0].w.x;_ih.y=this._rq1[0].w.y;break;case 2:_ih.x=(this._rq1[0]._G4*this._rq1[0].w.x)+(this._rq1[1]._G4*this._rq1[1].w.x);_ih.y=(this._rq1[0]._G4*this._rq1[0].w.y)+(this._rq1[1]._G4*this._rq1[1].w.y);break;case 3:_ih.x=_ih.y=0;break;default :_Tk1(false);_ih.x=_ih.y=0;break;}},_Eq1:function(_Fq1,_Gq1){switch(this._to1){case 1:_Fq1.x=this._rq1[0]._oq1.x;
_Fq1.y=this._rq1[0]._oq1.y;_Gq1.x=this._rq1[0]._pq1.x;_Gq1.y=this._rq1[0]._pq1.y;break;case 2:_Fq1.x=(this._rq1[0]._G4*this._rq1[0]._oq1.x)+(this._rq1[1]._G4*this._rq1[1]._oq1.x);_Fq1.y=(this._rq1[0]._G4*this._rq1[0]._oq1.y)+(this._rq1[1]._G4*this._rq1[1]._oq1.y);_Gq1.x=(this._rq1[0]._G4*this._rq1[0]._pq1.x)+(this._rq1[1]._G4*this._rq1[1]._pq1.x);_Gq1.y=(this._rq1[0]._G4*this._rq1[0]._pq1.y)+(this._rq1[1]._G4*this._rq1[1]._pq1.y);break;case 3:_Fq1.x=(this._rq1[0]._G4*this._rq1[0]._oq1.x)+(this._rq1[1]._G4*this._rq1[1]._oq1.x)+(this._rq1[2]._G4*this._rq1[2]._oq1.x);
_Fq1.y=(this._rq1[0]._G4*this._rq1[0]._oq1.y)+(this._rq1[1]._G4*this._rq1[1]._oq1.y)+(this._rq1[2]._G4*this._rq1[2]._oq1.y);_Gq1.x=_Fq1.x;_Gq1.y=_Fq1.y;break;default :_Tk1(false);break;}},_xq1:function(){switch(this._to1){case 1:return 0.0;case 2:return _Hm1(this._rq1[0].w,this._rq1[1].w);case 3:return(this._rq1[1].w.x-this._rq1[0].w.x)*(this._rq1[2].w.y-this._rq1[0].w.y)-(this._rq1[1].w.y-this._rq1[0].w.y)*(this._rq1[2].w.x-this._rq1[0].w.x);default :_Tk1(false);return 0.0;}},_Hq1:function(){var _Iq1=this._rq1[0].w;
var _Jq1=this._rq1[1].w;var _Aq1=_Jq1.x-_Iq1.x;var _Bq1=_Jq1.y-_Iq1.y;var _Kq1=-(_Iq1.x*_Aq1+_Iq1.y*_Bq1);if(_Kq1<=0.0){this._rq1[0]._G4=1.0;this._to1=1;return;}var _Lq1=_Jq1.x*_Aq1+_Jq1.y*_Bq1;if(_Lq1<=0.0){this._rq1[1]._G4=1.0;this._to1=1;this._rq1[0]._SN(this._rq1[1]);return;}var _Mq1=1.0/(_Lq1+_Kq1);this._rq1[0]._G4=_Lq1*_Mq1;this._rq1[1]._G4=_Kq1*_Mq1;this._to1=2;},_Nq1:function(){var _Iq1=this._rq1[0].w;var _Jq1=this._rq1[1].w;var _Oq1=this._rq1[2].w;var _Aq1=_Jq1.x-_Iq1.x;var _Bq1=_Jq1.y-_Iq1.y;var _Pq1=_Iq1.x*_Aq1+_Iq1.y*_Bq1;
var _Qq1=_Jq1.x*_Aq1+_Jq1.y*_Bq1;var _Lq1=_Qq1;var _Kq1=-_Pq1;var _Rq1=_Oq1.x-_Iq1.x;var _Sq1=_Oq1.y-_Iq1.y;var _Tq1=_Iq1.x*_Rq1+_Iq1.y*_Sq1;var _Uq1=_Oq1.x*_Rq1+_Oq1.y*_Sq1;var _Vq1=_Uq1;var _Wq1=-_Tq1;var _Xq1=_Oq1.x-_Jq1.x;var _Yq1=_Oq1.y-_Jq1.y;var _Zq1=_Jq1.x*_Xq1+_Jq1.y*_Yq1;var __q1=_Oq1.x*_Xq1+_Oq1.y*_Yq1;var _0r1=__q1;var _1r1=-_Zq1;var _2r1=_Aq1*_Sq1-_Bq1*_Rq1;var _3r1=_2r1*(_Jq1.x*_Oq1.y-_Jq1.y*_Oq1.x);var _4r1=_2r1*(_Oq1.x*_Iq1.y-_Oq1.y*_Iq1.x);var _5r1=_2r1*(_Iq1.x*_Jq1.y-_Iq1.y*_Jq1.x);if(_Kq1<=0.0&&_Wq1<=0.0){
this._rq1[0]._G4=1.0;this._to1=1;return;}if(_Lq1>0.0&&_Kq1>0.0&&_5r1<=0.0){var _Mq1=1.0/(_Lq1+_Kq1);this._rq1[0]._G4=_Lq1*_Mq1;this._rq1[1]._G4=_Kq1*_Mq1;this._to1=2;return;}if(_Vq1>0.0&&_Wq1>0.0&&_4r1<=0.0){var _6r1=1.0/(_Vq1+_Wq1);this._rq1[0]._G4=_Vq1*_6r1;this._rq1[2]._G4=_Wq1*_6r1;this._to1=2;this._rq1[1]._SN(this._rq1[2]);return;}if(_Lq1<=0.0&&_1r1<=0.0){this._rq1[1]._G4=1.0;this._to1=1;this._rq1[0]._SN(this._rq1[1]);return;}if(_Vq1<=0.0&&_0r1<=0.0){this._rq1[2]._G4=1.0;this._to1=1;this._rq1[0]._SN(this._rq1[2]);
return;}if(_0r1>0.0&&_1r1>0.0&&_3r1<=0.0){var _7r1=1.0/(_0r1+_1r1);this._rq1[1]._G4=_0r1*_7r1;this._rq1[2]._G4=_1r1*_7r1;this._to1=2;this._rq1[0]._SN(this._rq1[2]);return;}var _8r1=1.0/(_3r1+_4r1+_5r1);this._rq1[0]._G4=_3r1*_8r1;this._rq1[1]._G4=_4r1*_8r1;this._rq1[2]._G4=_5r1*_8r1;this._to1=3;}};var _9r1=new _qq1();var _ar1=new _Hl1();var _br1=new _Hl1();function _cr1(_pI,_D8,_nI){++_cr1._dr1;var _fq1=_nI._fq1;var _gq1=_nI._gq1;var _hq1=_nI._hq1;var _iq1=_nI._iq1;_9r1._sq1(_D8,_fq1,_hq1,_gq1,_iq1);var vertices=_9r1._rq1;
var _er1=20;var _fr1=[0,0,0],_gr1=[0,0,0];var _hr1=0;var _ir1=_Vk1;var _jr1=_ir1;var _Nc1=0;while(_Nc1<_er1){_hr1=_9r1._to1;for(var i=0;i<_hr1;++i){_fr1[i]=vertices[i]._cq1;_gr1[i]=vertices[i]._dq1;}switch(_9r1._to1){case 1:break;case 2:_9r1._Hq1();break;case 3:_9r1._Nq1();break;default :_Tk1(false);}if(_9r1._to1==3){break;}_9r1._Dq1(_br1);_jr1=_br1._Pl1();_ir1=_jr1;_9r1._zq1(_br1);if(_br1._Pl1()<_Wk1*_Wk1){break;}var _kr1=vertices[_9r1._to1];_kr1._cq1=_fq1._ao1(_hq1.q.c*-_br1.x+_hq1.q._qi*-_br1.y,-_hq1.q._qi*-_br1.x+_hq1.q.c*-_br1.y);
var _lr1=_fq1._co1(_kr1._cq1);_kr1._oq1.x=(_hq1.q.c*_lr1.x-_hq1.q._qi*_lr1.y)+_hq1._ih.x;_kr1._oq1.y=(_hq1.q._qi*_lr1.x+_hq1.q.c*_lr1.y)+_hq1._ih.y;_kr1._dq1=_gq1._ao1(_iq1.q.c*_br1.x+_iq1.q._qi*_br1.y,-_iq1.q._qi*_br1.x+_iq1.q.c*_br1.y);var _mr1=_gq1._co1(_kr1._dq1);_kr1._pq1.x=(_iq1.q.c*_mr1.x-_iq1.q._qi*_mr1.y)+_iq1._ih.x;_kr1._pq1.y=(_iq1.q._qi*_mr1.x+_iq1.q.c*_mr1.y)+_iq1._ih.y;_kr1.w.x=_kr1._pq1.x-_kr1._oq1.x;_kr1.w.y=_kr1._pq1.y-_kr1._oq1.y;++_Nc1;++_cr1._nr1;var _or1=false;for(var i=0;i<_hr1;
++i){if(_kr1._cq1==_fr1[i]&&_kr1._dq1==_gr1[i]){_or1=true;break;}}if(_or1){break;}++_9r1._to1;}_cr1._pr1=_4n1(_cr1._pr1,_Nc1);_9r1._Eq1(_pI._lq1,_pI._mq1);_pI._Xn1=_Hm1(_pI._lq1,_pI._mq1);_pI.iterations=_Nc1;_9r1._yq1(_D8);if(_nI._jq1){var _qr1=_fq1._Nn1;var _rr1=_gq1._Nn1;if(_pI._Xn1>_qr1+_rr1&&_pI._Xn1>_Wk1){_pI._Xn1-=_qr1+_rr1;_ar1.x=_pI._mq1.x-_pI._lq1.x;_ar1.y=_pI._mq1.y-_pI._lq1.y;_ar1._Ql1();_pI._lq1.x+=(_qr1*_ar1.x);_pI._lq1.y+=(_qr1*_ar1.y);_pI._mq1.x-=(_rr1*_ar1.x);_pI._mq1.y-=(_rr1*_ar1.y);
}else {var _0u=(0.5*(_pI._lq1.x+_pI._mq1.x));var _1u=(0.5*(_pI._lq1.y+_pI._mq1.y));_pI._lq1.x=_0u;_pI._lq1.y=_1u;_pI._mq1.x=_0u;_pI._mq1.y=_1u;_pI._Xn1=0.0;}}}_cr1._dr1=0;_cr1._nr1=0;_cr1._pr1=0;var _sr1=255;function _tr1(){}_tr1.prototype={_cq1:0,_dq1:0,_ur1:0,_vr1:0,_qJ:function(){this._cq1=this._dq1=this._ur1=this._vr1=0;},_26:function(){return this._cq1|(this._dq1<<8)|(this._ur1<<16)|(this._vr1<<24);},_SN:function(_dl){this._cq1=_dl._cq1;this._dq1=_dl._dq1;this._ur1=_dl._ur1;this._vr1=_dl._vr1;}};
_tr1._wr1=0;_tr1._xr1=1;function _yr1(){this._zr1=new _Hl1();this._Ar1=0;this._Br1=0;this.id=new _tr1();};_yr1.prototype={_v3:function(){var _Cr1=new _yr1();_Cr1._zr1.x=this._zr1.x;_Cr1._zr1.y=this._zr1.y;_Cr1._Ar1=this._Ar1;_Cr1._Br1=this._Br1;_Cr1.id._SN(this.id);return _Cr1;}};function _Dr1(){this.points=new Array(_Yk1);this._Er1=new _Hl1();this._zr1=new _Hl1();this.type=0;this._Fr1=0;};_Dr1.prototype={_v3:function(){var _Gr1=new _Dr1();_Gr1._Fr1=this._Fr1;_Gr1.type=this.type;_Gr1._zr1.x=this._zr1.x;_Gr1._zr1.y=this._zr1.y;
_Gr1._Er1.x=this._Er1.x;_Gr1._Er1.y=this._Er1.y;for(var i=0;i<this._Fr1;++i)_Gr1.points[i]=this.points[i]._v3();return _Gr1;},_SN:function(_Gr1){this._Fr1=_Gr1._Fr1;this.type=_Gr1.type;this._zr1.x=_Gr1._zr1.x;this._zr1.y=_Gr1._zr1.y;this._Er1.x=_Gr1._Er1.x;this._Er1.y=_Gr1._Er1.y;for(var i=0;i<this._Fr1;++i)this.points[i]=_Gr1.points[i]._v3();}};_Dr1._Hr1=0;_Dr1._Ir1=1;_Dr1._Jr1=2;_Dr1._Kr1=0;_Dr1._Lr1=1;_Dr1._Mr1=2;_Dr1._Nr1=3;function _Or1(){this._Yn1=new _Hl1();this.points=new Array(_Yk1);this._Pr1=new Array(_Yk1);
}_Or1.prototype={_Qr1:function(_Gr1,_Rr1,_Sr1,_Tr1,_Ur1){if(_Gr1._Fr1==0){return;}switch(_Gr1.type){case _Dr1._Hr1:{this._Yn1.x=1;this._Yn1.y=0;var _Vr1=(_Rr1.q.c*_Gr1._zr1.x-_Rr1.q._qi*_Gr1._zr1.y)+_Rr1._ih.x;var _Wr1=(_Rr1.q._qi*_Gr1._zr1.x+_Rr1.q.c*_Gr1._zr1.y)+_Rr1._ih.y;var _Xr1=(_Tr1.q.c*_Gr1.points[0]._zr1.x-_Tr1.q._qi*_Gr1.points[0]._zr1.y)+_Tr1._ih.x;var _Yr1=(_Tr1.q._qi*_Gr1.points[0]._zr1.x+_Tr1.q.c*_Gr1.points[0]._zr1.y)+_Tr1._ih.y;var _Nt=_Vr1-_Xr1;var _Ot=_Wr1-_Yr1;if((_Nt*_Nt+_Ot*_Ot)>_Wk1*_Wk1){
this._Yn1.x=_Xr1-_Vr1;this._Yn1.y=_Yr1-_Wr1;this._Yn1._Ql1();}var _Zr1=_Vr1+(_Sr1*this._Yn1.x);var __r1=_Wr1+(_Sr1*this._Yn1.y);var _0s1=_Xr1-(_Ur1*this._Yn1.x);var _1s1=_Yr1-(_Ur1*this._Yn1.y);this.points[0]=new _Hl1(0.5*(_Zr1+_0s1),0.5*(__r1+_1s1));this._Pr1[0]=(_0s1-_Zr1)*this._Yn1.x+(_1s1-__r1)*this._Yn1.y;}break;case _Dr1._Ir1:{this._Yn1.x=_Rr1.q.c*_Gr1._Er1.x-_Rr1.q._qi*_Gr1._Er1.y;this._Yn1.y=_Rr1.q._qi*_Gr1._Er1.x+_Rr1.q.c*_Gr1._Er1.y;var _2s1=(_Rr1.q.c*_Gr1._zr1.x-_Rr1.q._qi*_Gr1._zr1.y)+_Rr1._ih.x;
var _3s1=(_Rr1.q._qi*_Gr1._zr1.x+_Rr1.q.c*_Gr1._zr1.y)+_Rr1._ih.y;for(var i=0;i<_Gr1._Fr1;++i){var _4s1=(_Tr1.q.c*_Gr1.points[i]._zr1.x-_Tr1.q._qi*_Gr1.points[i]._zr1.y)+_Tr1._ih.x;var _5s1=(_Tr1.q._qi*_Gr1.points[i]._zr1.x+_Tr1.q.c*_Gr1.points[i]._zr1.y)+_Tr1._ih.y;var _tm=(_4s1-_2s1)*this._Yn1.x+(_5s1-_3s1)*this._Yn1.y;var _Zr1=_4s1+((_Sr1-_tm)*this._Yn1.x);var __r1=_5s1+((_Sr1-_tm)*this._Yn1.y);var _0s1=(_4s1-(_Ur1*this._Yn1.x));var _1s1=(_5s1-(_Ur1*this._Yn1.y));this.points[i]=new _Hl1(0.5*(_Zr1+_0s1),
0.5*(__r1+_1s1));this._Pr1[i]=(_0s1-_Zr1)*this._Yn1.x+(_1s1-__r1)*this._Yn1.y;}}break;case _Dr1._Jr1:{this._Yn1.x=_Tr1.q.c*_Gr1._Er1.x-_Tr1.q._qi*_Gr1._Er1.y;this._Yn1.y=_Tr1.q._qi*_Gr1._Er1.x+_Tr1.q.c*_Gr1._Er1.y;var _2s1=(_Tr1.q.c*_Gr1._zr1.x-_Tr1.q._qi*_Gr1._zr1.y)+_Tr1._ih.x;var _3s1=(_Tr1.q._qi*_Gr1._zr1.x+_Tr1.q.c*_Gr1._zr1.y)+_Tr1._ih.y;for(var i=0;i<_Gr1._Fr1;++i){var _4s1=(_Rr1.q.c*_Gr1.points[i]._zr1.x-_Rr1.q._qi*_Gr1.points[i]._zr1.y)+_Rr1._ih.x;var _5s1=(_Rr1.q._qi*_Gr1.points[i]._zr1.x+_Rr1.q.c*_Gr1.points[i]._zr1.y)+_Rr1._ih.y;
var _tm=(_4s1-_2s1)*this._Yn1.x+(_5s1-_3s1)*this._Yn1.y;var _0s1=_4s1+((_Ur1-_tm)*this._Yn1.x);var _1s1=_5s1+((_Ur1-_tm)*this._Yn1.y);var _Zr1=(_4s1-(_Sr1*this._Yn1.x));var __r1=(_5s1-(_Sr1*this._Yn1.y));this.points[i]=new _Hl1(0.5*(_Zr1+_0s1),0.5*(__r1+_1s1));this._Pr1[i]=(_Zr1-_0s1)*this._Yn1.x+(__r1-_1s1)*this._Yn1.y;}this._Yn1.x=-this._Yn1.x;this._Yn1.y=-this._Yn1.y;}break;}}};function _6s1(_7s1,_8s1,_9s1,_as1){for(var i=0;i<_Yk1;++i){_7s1[i]=_Dr1._Kr1;_8s1[i]=_Dr1._Kr1;}for(var i=0;i<_9s1._Fr1;++i){
var id=_9s1.points[i].id;_7s1[i]=_Dr1._Nr1;for(var _17=0;_17<_as1._Fr1;++_17){if(_as1.points[_17].id._26()==id._26()){_7s1[i]=_Dr1._Mr1;break;}}}for(var i=0;i<_as1._Fr1;++i){var id=_as1.points[i].id;_8s1[i]=_Dr1._Lr1;for(var _17=0;_17<_9s1._Fr1;++_17){if(_9s1.points[_17].id._26()==id._26()){_8s1[i]=_Dr1._Mr1;break;}}}}function _bs1(){this._n5=new _Hl1();this.id=new _tr1();};function _cs1(){this._qu=new _Hl1(),this._rn1=new _Hl1();this._6o1=0;};function _ds1(){this._Yn1=new _Hl1();this._7o1=0;};function _es1(){
this._8o1=new _Hl1();this._9o1=new _Hl1();}_es1.prototype={_SN:function(other){this._8o1.x=other._8o1.x;this._8o1.y=other._8o1.y;this._9o1.x=other._9o1.x;this._9o1.y=other._9o1.y;},_v3:function(){var _fs1=new _es1();_fs1._8o1.x=this._8o1.x;_fs1._8o1.y=this._8o1.y;_fs1._9o1.x=this._9o1.x;_fs1._9o1.y=this._9o1.y;return _fs1;},_Sl1:function(){return(this._9o1.x-this._8o1.x)>=0.0&&(this._9o1.y-this._8o1.y)>=0.0&&this._8o1._Sl1()&&this._9o1._Sl1();},_gs1:function(){return new _Hl1(0.5*(this._8o1.x+this._9o1.x),
0.5*(this._8o1.y+this._9o1.y));},_hs1:function(){return new _Hl1(0.5*(this._9o1.x-this._8o1.x),0.5*(this._9o1.y-this._8o1.y));},_is1:function(){return 2.0*((this._9o1.x-this._8o1.x)+(this._9o1.y-this._8o1.y));},_js1:function(_ks1,_ls1){if(_ls1){this._8o1.x=_2n1(_ks1._8o1.x,_ls1._8o1.x);this._8o1.y=_2n1(_ks1._8o1.y,_ls1._8o1.y);this._9o1.x=_4n1(_ks1._9o1.x,_ls1._9o1.x);this._9o1.y=_4n1(_ks1._9o1.y,_ls1._9o1.y);}else {this._8o1.x=_2n1(this._8o1.x,_ks1._8o1.x);this._8o1.y=_2n1(this._8o1.y,_ks1._8o1.y);
this._9o1.x=_4n1(this._9o1.x,_ks1._9o1.x);this._9o1.y=_4n1(this._9o1.y,_ks1._9o1.y);}},_ms1:function(_Tn1){return this._8o1.x<=_Tn1._8o1.x&&this._8o1.y<=_Tn1._8o1.y&&_Tn1._9o1.x<=this._9o1.x&&_Tn1._9o1.y<=this._9o1.y;},_Qn1:function(_pI,_nI){var _ns1=-_Vk1;var _os1=_Vk1;var _ih=_nI._qu;var _tm=_Hl1._Ol1(_nI._rn1,_nI._qu);var _ps1=_0n1(_tm);var _Yn1=new _Hl1();for(var i=0;i<2;++i){if(_ps1._Ml1(i)<_Wk1){if(_ih._Ml1(i)<this._8o1._Ml1(i)||this._9o1._Ml1(i)<_ih._Ml1(i)){return false;}}else {var _qs1=1.0/_tm._Ml1(i);
var _rs1=(this._8o1._Ml1(i)-_ih._Ml1(i))*_qs1;var _ss1=(this._9o1._Ml1(i)-_ih._Ml1(i))*_qs1;var _qi=-1.0;if(_rs1>_ss1){var _pK=_ss1;_ss1=_rs1;_rs1=_pK;_qi=1.0;}if(_rs1>_ns1){_Yn1.x=_Yn1.y=0;_Yn1._Nl1(i,_qi);_ns1=_rs1;}_os1=_2n1(_os1,_ss1);if(_ns1>_os1){return false;}}}if(_ns1<0.0||_nI._6o1<_ns1){return false;}_pI._7o1=_ns1;_pI._Yn1.x=_Yn1.x;_pI._Yn1.y=_Yn1.y;return true;}};function _ts1(_Gr1,_us1,_Rr1,_vs1,_Tr1){_Gr1._Fr1=0;var _Fq1=_Sm1(_Rr1,_us1._4o1);var _Gq1=_Sm1(_Tr1,_vs1._4o1);var _fb=_Gq1.x-_Fq1.x;var _gb=_Gq1.y-_Fq1.y;
var _ws1=_fb*_fb+_gb*_gb;var _qr1=_us1._Nn1,_rr1=_vs1._Nn1;var _A21=_qr1+_rr1;if(_ws1>_A21*_A21){return;}_Gr1.type=_Dr1._Hr1;_Gr1._zr1.x=_us1._4o1.x;_Gr1._zr1.y=_us1._4o1.y;_Gr1._Er1.x=_Gr1._Er1.y=0;_Gr1._Fr1=1;_Gr1.points[0]=new _yr1();_Gr1.points[0]._zr1.x=_vs1._4o1.x;_Gr1.points[0]._zr1.y=_vs1._4o1.y;_Gr1.points[0].id._qJ();}function _xs1(_Gr1,_ys1,_Rr1,_vs1,_Tr1){_Gr1._Fr1=0;var c=_Sm1(_Tr1,_vs1._4o1);var _zs1=_Um1(_Rr1,c);var _As1=0;var _Bs1=-_Vk1;var _A21=_ys1._Nn1+_vs1._Nn1;var vertexCount=_ys1._to1;
var vertices=_ys1._so1;var _Cs1=_ys1._Lo1;for(var i=0;i<vertexCount;++i){var _qi=_Cs1[i].x*(_zs1.x-vertices[i].x)+_Cs1[i].y*(_zs1.y-vertices[i].y);if(_qi>_A21){return;}if(_qi>_Bs1){_Bs1=_qi;_As1=i;}}var _Ds1=_As1;var _Es1=_Ds1+1<vertexCount?_Ds1+1:0;var _jb=vertices[_Ds1];var _p5=vertices[_Es1];if(_Bs1<_Wk1){_Gr1._Fr1=1;_Gr1.type=_Dr1._Ir1;_Gr1._Er1.x=_Cs1[_As1].x;_Gr1._Er1.y=_Cs1[_As1].y;_Gr1._zr1.x=0.5*(_jb.x+_p5.x);_Gr1._zr1.y=0.5*(_jb.y+_p5.y);_Gr1.points[0]=new _yr1();_Gr1.points[0]._zr1.x=_vs1._4o1.x;
_Gr1.points[0]._zr1.y=_vs1._4o1.y;_Gr1.points[0].id._qJ();return;}var _Fs1=(_zs1.x-_jb.x)*(_p5.x-_jb.x)+(_zs1.y-_jb.y)*(_p5.y-_jb.y);var _o5=(_zs1.x-_p5.x)*(_jb.x-_p5.x)+(_zs1.y-_p5.y)*(_jb.y-_p5.y);if(_Fs1<=0.0){if(_Im1(_zs1,_jb)>_A21*_A21){return;}_Gr1._Fr1=1;_Gr1.type=_Dr1._Ir1;_Gr1._Er1.x=_zs1.x-_jb.x;_Gr1._Er1.y=_zs1.y-_jb.y;_Gr1._Er1._Ql1();_Gr1._zr1.x=_jb.x;_Gr1._zr1.y=_jb.y;_Gr1.points[0]=new _yr1();_Gr1.points[0]._zr1.x=_vs1._4o1.x;_Gr1.points[0]._zr1.y=_vs1._4o1.y;_Gr1.points[0].id._qJ();
}else if(_o5<=0.0){if(_Im1(_zs1,_p5)>_A21*_A21){return;}_Gr1._Fr1=1;_Gr1.type=_Dr1._Ir1;_Gr1._Er1.x=_zs1.x-_p5.x;_Gr1._Er1.y=_zs1.y-_p5.y;_Gr1._Er1._Ql1();_Gr1._zr1.x=_p5.x;_Gr1._zr1.y=_p5.y;_Gr1.points[0]=new _yr1();_Gr1.points[0]._zr1.x=_vs1._4o1.x;_Gr1.points[0]._zr1.y=_vs1._4o1.y;_Gr1.points[0].id._qJ();}else {var _Gs1=0.5*(_jb.x+_p5.x);var _Hs1=0.5*(_jb.y+_p5.y);var _Is1=(_zs1.x-_Gs1)*_Cs1[_Ds1].x+(_zs1.y-_Hs1)*_Cs1[_Ds1].y;if(_Is1>_A21){return;}_Gr1._Fr1=1;_Gr1.type=_Dr1._Ir1;_Gr1._Er1.x=_Cs1[_Ds1].x;
_Gr1._Er1.y=_Cs1[_Ds1].y;_Gr1._zr1.x=_Gs1;_Gr1._zr1.y=_Hs1;_Gr1.points[0]=new _yr1();_Gr1.points[0]._zr1.x=_vs1._4o1.x;_Gr1.points[0]._zr1.y=_vs1._4o1.y;_Gr1.points[0].id._qJ();}}function _Js1(_Ks1,_Ls1,_Ms1,_Ns1,_Os1){var _Ps1=_Ls1._to1;var _Qs1=_Ns1._to1;var _Rs1=_Ls1._Lo1;var _Ss1=_Ls1._so1;var _Ts1=_Ns1._so1;var _qm1=_Xm1(_Os1,_Ms1);var _8q1=0;var _Us1=-_Vk1;for(var i=0;i<_Ps1;++i){var _Sb=_qm1.q.c*_Rs1[i].x-_qm1.q._qi*_Rs1[i].y;var _Tb=_qm1.q._qi*_Rs1[i].x+_qm1.q.c*_Rs1[i].y;var _ub=(_qm1.q.c*_Ss1[i].x-_qm1.q._qi*_Ss1[i].y)+_qm1._ih.x;
var _vb=(_qm1.q._qi*_Ss1[i].x+_qm1.q.c*_Ss1[i].y)+_qm1._ih.y;var _Tj=_Vk1;for(var _17=0;_17<_Qs1;++_17){var _Vs1=_Sb*(_Ts1[_17].x-_ub)+_Tb*(_Ts1[_17].y-_vb);if(_Vs1<_Tj){_Tj=_Vs1;}}if(_Tj>_Us1){_Us1=_Tj;_8q1=i;}}_Ks1[0]=_8q1;return _Us1;}function _Ws1(c,_Ls1,_Ms1,_Xs1,_Ns1,_Os1){var _Ys1=_Ls1._Lo1;var _Qs1=_Ns1._to1;var _Zs1=_Ns1._so1;var __s1=_Ns1._Lo1;_Tk1(0<=_Xs1&&_Xs1<_Ls1._to1);var _0t1=_Ms1.q.c*_Ys1[_Xs1].x-_Ms1.q._qi*_Ys1[_Xs1].y;var _1t1=_Ms1.q._qi*_Ys1[_Xs1].x+_Ms1.q.c*_Ys1[_Xs1].y;var _2t1=_Os1.q.c*_0t1+_Os1.q._qi*_1t1;
var _3t1=-_Os1.q._qi*_0t1+_Os1.q.c*_1t1;var index=0;var _4t1=_Vk1;for(var i=0;i<_Qs1;++i){var _zF=_2t1*__s1[i].x+_3t1*__s1[i].y;if(_zF<_4t1){_4t1=_zF;index=i;}}var _Ho1=index;var _Io1=_Ho1+1<_Qs1?_Ho1+1:0;c[0]._n5.x=(_Os1.q.c*_Zs1[_Ho1].x-_Os1.q._qi*_Zs1[_Ho1].y)+_Os1._ih.x;c[0]._n5.y=(_Os1.q._qi*_Zs1[_Ho1].x+_Os1.q.c*_Zs1[_Ho1].y)+_Os1._ih.y;c[0].id._cq1=_Xs1;c[0].id._dq1=_Ho1;c[0].id._ur1=_tr1._xr1;c[0].id._vr1=_tr1._wr1;c[1]._n5.x=(_Os1.q.c*_Zs1[_Io1].x-_Os1.q._qi*_Zs1[_Io1].y)+_Os1._ih.x;c[1]._n5.y=(_Os1.q._qi*_Zs1[_Io1].x+_Os1.q.c*_Zs1[_Io1].y)+_Os1._ih.y;
c[1].id._cq1=_Xs1;c[1].id._dq1=_Io1;c[1].id._ur1=_tr1._xr1;c[1].id._vr1=_tr1._wr1;}function _5t1(_Gr1,_6t1,_Rr1,_7t1,_Tr1){_Gr1._Fr1=0;var _8t1=_6t1._Nn1+_7t1._Nn1;var _9t1=[0];var _at1=_Js1(_9t1,_6t1,_Rr1,_7t1,_Tr1);if(_at1>_8t1)return;var _bt1=[0];var _ct1=_Js1(_bt1,_7t1,_Tr1,_6t1,_Rr1);if(_ct1>_8t1)return;var _Ls1;var _Ns1;var _Ms1,_Os1;var _Xs1=0;var _fU=0;var _dt1=0.1*_1l1;if(_ct1>_at1+_dt1){_Ls1=_7t1;_Ns1=_6t1;_Ms1=_Tr1;_Os1=_Rr1;_Xs1=_bt1[0];_Gr1.type=_Dr1._Jr1;_fU=1;}else {_Ls1=_6t1;_Ns1=_7t1;_Ms1=_Rr1;
_Os1=_Tr1;_Xs1=_9t1[0];_Gr1.type=_Dr1._Ir1;_fU=0;}_Ws1(_5t1._et1,_Ls1,_Ms1,_Xs1,_Ns1,_Os1);var _Ps1=_Ls1._to1;var _ft1=_Ls1._so1;var _gt1=_Xs1;var _ht1=_Xs1+1<_Ps1?_Xs1+1:0;var _it1=_ft1[_gt1];var _jt1=_ft1[_ht1];_5t1._kt1.x=_jt1.x-_it1.x;_5t1._kt1.y=_jt1.y-_it1.y;_5t1._kt1._Ql1();var _lt1=1.0*_5t1._kt1.y;var _mt1=-1.0*_5t1._kt1.x;var _2s1=0.5*(_it1.x+_jt1.x);var _3s1=0.5*(_it1.y+_jt1.y);var _nt1=_Ms1.q.c*_5t1._kt1.x-_Ms1.q._qi*_5t1._kt1.y;var _ot1=_Ms1.q._qi*_5t1._kt1.x+_Ms1.q.c*_5t1._kt1.y;var _pt1=1.0*_ot1;
var _qt1=-1.0*_nt1;_it1=_Sm1(_Ms1,_it1);_jt1=_Sm1(_Ms1,_jt1);var _rt1=_pt1*_it1.x+_qt1*_it1.y;var _st1=-(_nt1*_it1.x+_ot1*_it1.y)+_8t1;var _tt1=(_nt1*_jt1.x+_ot1*_jt1.y)+_8t1;var _ut1=new Array(2);var _vt1=new Array(2);var _wt1;_wt1=_xt1(_ut1,_5t1._et1,-_nt1,-_ot1,_st1,_gt1);if(_wt1<2)return;_wt1=_xt1(_vt1,_ut1,_nt1,_ot1,_tt1,_ht1);if(_wt1<2){return;}_Gr1._Er1.x=_lt1;_Gr1._Er1.y=_mt1;_Gr1._zr1.x=_2s1;_Gr1._zr1.y=_3s1;var _Fr1=0;for(var i=0;i<_Yk1;++i){var _Bs1=(_pt1*_vt1[i]._n5.x+_qt1*_vt1[i]._n5.y)-_rt1;if(_Bs1<=_8t1){
var _yt1=_Gr1.points[_Fr1]=new _yr1();_yt1._zr1._SN(_Um1(_Os1,_vt1[i]._n5));_yt1.id._SN(_vt1[i].id);if(_fU){var _zt1=new _tr1();_zt1._SN(_yt1.id);_yt1.id._cq1=_zt1._dq1;_yt1.id._dq1=_zt1._cq1;_yt1.id._ur1=_zt1._vr1;_yt1.id._vr1=_zt1._ur1;}++_Fr1;}}_Gr1._Fr1=_Fr1;}_5t1._kt1=new _Hl1();_5t1._et1=[new _bs1(),new _bs1()];function _At1(_Gr1,_9t1,_Rr1,_vs1,_Tr1){_Gr1._Fr1=0;var _Bt1=_Um1(_Rr1,_Sm1(_Tr1,_vs1._4o1));var _Uk1=_9t1._fo1,_1m1=_9t1._go1;var _ek=_1m1.x-_Uk1.x;var _UL=_1m1.y-_Uk1.y;var _m5=_ek*(_1m1.x-_Bt1.x)+_UL*(_1m1.y-_Bt1.y);
var _n5=_ek*(_Bt1.x-_Uk1.x)+_UL*(_Bt1.y-_Uk1.y);var _A21=_9t1._Nn1+_vs1._Nn1;var _zt1=new _tr1();_zt1._dq1=0;_zt1._vr1=_tr1._wr1;if(_n5<=0.0){var _Ct1=_Uk1;var _fb=_Bt1.x-_Ct1.x;var _gb=_Bt1.y-_Ct1.y;var _8L=_fb*_fb+_gb*_gb;if(_8L>_A21*_A21){return;}if(_9t1._io1){var _Dt1=_9t1._eo1;var _Et1=_Uk1;var _Ft1=_Et1.x-_Dt1.x;var _Gt1=_Et1.y-_Dt1.y;var _Fs1=_Ft1*(_Et1.x-_Bt1.x)+_Gt1*(_Et1.y-_Bt1.y);if(_Fs1>0.0){return;}}_zt1._cq1=0;_zt1._ur1=_tr1._wr1;_Gr1._Fr1=1;_Gr1.type=_Dr1._Hr1;_Gr1._Er1.x=_Gr1._Er1.y=0;_Gr1._zr1.x=_Ct1.x;
_Gr1._zr1.y=_Ct1.y;_Gr1.points[0]=new _yr1();_Gr1.points[0].id._SN(_zt1);_Gr1.points[0]._zr1.x=_vs1._4o1.x;_Gr1.points[0]._zr1.y=_vs1._4o1.y;return;}if(_m5<=0.0){var _Ct1=_1m1;var _fb=_Bt1.x-_Ct1.x;var _gb=_Bt1.y-_Ct1.y;var _8L=_fb*_fb+_gb*_gb;if(_8L>_A21*_A21){return;}if(_9t1._jo1){var _Ht1=_9t1._ho1;var _It1=_1m1;var _Jt1=_Ht1.x-_It1.x;var _Kt1=_Ht1.y-_It1.y;var _p5=_Jt1*(_Bt1.x-_It1.x)+_Kt1*(_Bt1.y-_It1.y);if(_p5>0.0){return;}}_zt1._cq1=1;_zt1._ur1=_tr1._wr1;_Gr1._Fr1=1;_Gr1.type=_Dr1._Hr1;_Gr1._Er1.x=_Gr1._Er1.y=0;
_Gr1._zr1.x=_Ct1.x;_Gr1._zr1.y=_Ct1.y;_Gr1.points[0]=new _yr1();_Gr1.points[0].id._SN(_zt1);_Gr1.points[0]._zr1.x=_vs1._4o1.x;_Gr1.points[0]._zr1.y=_vs1._4o1.y;return;}var _Lt1=_ek*_ek+_UL*_UL;_Tk1(_Lt1>0.0);var _Mt1=(1.0/_Lt1)*((_m5*_Uk1.x)+(_n5*_1m1.x));var _Nt1=(1.0/_Lt1)*((_m5*_Uk1.y)+(_n5*_1m1.y));var _fb=_Bt1.x-_Mt1;var _gb=_Bt1.y-_Nt1;var _8L=_fb*_fb+_gb*_gb;if(_8L>_A21*_A21){return;}var _Sb=-_UL;var _Tb=_ek;if(_Sb*(_Bt1.x-_Uk1.x)+_Tb*(_Bt1.y-_Uk1.y)<0.0){_Sb=-_Sb;_Tb=-_Tb;}_zt1._cq1=0;_zt1._ur1=_tr1._xr1;
_Gr1._Fr1=1;_Gr1.type=_Dr1._Ir1;_Gr1._Er1.x=_Sb;_Gr1._Er1.y=_Tb;_Gr1._Er1._Ql1();_Gr1._zr1.x=_Uk1.x;_Gr1._zr1.y=_Uk1.y;_Gr1.points[0]=new _yr1();_Gr1.points[0].id._SN(_zt1);_Gr1.points[0]._zr1.x=_vs1._4o1.x;_Gr1.points[0]._zr1.y=_vs1._4o1.y;}function _Ot1(){this.type=0;this.index=0;this._Bs1=0;}_Ot1._Pt1=0;_Ot1._Qt1=1;_Ot1._Rt1=2;function _St1(){this.vertices=new Array(_Zk1);this._Cs1=new Array(_Zk1);this._E8=0;};function _Tt1(){this._Ho1=0,this._Io1=0;this._jb=new _Hl1(),this._p5=new _Hl1();this._Yn1=new _Hl1();
this._Ut1=new _Hl1();this._st1=0;this._Vt1=new _Hl1();this._tt1=0;};function _Wt1(){this._Xt1=new _St1();this._Yt1=new _pm1();this._Zt1=new _Hl1();this.__t1=new _Hl1(),this._0u1=new _Hl1(),this._1u1=new _Hl1(),this._2u1=new _Hl1();this._3u1=new _Hl1(),this._4u1=new _Hl1(),this._5u1=new _Hl1();this._6u1=new _Hl1();this._7u1=0,this._8u1=0;this._9u1=new _Hl1(),this._au1=new _Hl1();this._Nn1=0;this._bu1=false;}_Wt1._cu1=new _Hl1();_Wt1._du1=new _Hl1();_Wt1._eu1=new _Hl1();_Wt1.prototype={_fu1:function(_Gr1,_9t1,_Rr1,_gu1,
_Tr1){this._Yt1._SN(_Xm1(_Rr1,_Tr1));this._Zt1.x=(this._Yt1.q.c*_gu1._Ko1.x-this._Yt1.q._qi*_gu1._Ko1.y)+this._Yt1._ih.x;this._Zt1.y=(this._Yt1.q._qi*_gu1._Ko1.x+this._Yt1.q.c*_gu1._Ko1.y)+this._Yt1._ih.y;this.__t1.x=_9t1._eo1.x;this.__t1.y=_9t1._eo1.y;this._0u1.x=_9t1._fo1.x;this._0u1.y=_9t1._fo1.y;this._1u1.x=_9t1._go1.x;this._1u1.y=_9t1._go1.y;this._2u1.x=_9t1._ho1.x;this._2u1.y=_9t1._ho1.y;var _hu1=_9t1._io1;var _iu1=_9t1._jo1;_Wt1._cu1.x=this._1u1.x-this._0u1.x;_Wt1._cu1.y=this._1u1.y-this._0u1.y;
_Wt1._cu1._Ql1();this._4u1.x=_Wt1._cu1.y;this._4u1.y=-_Wt1._cu1.x;var _ju1=this._4u1.x*(this._Zt1.x-this._0u1.x)+this._4u1.y*(this._Zt1.y-this._0u1.y);var _ku1=0.0,_lu1=0.0;var _mu1=false,_nu1=false;if(_hu1){_Wt1._du1.x=this._0u1.x-this.__t1.x;_Wt1._du1.y=this._0u1.y-this.__t1.y;_Wt1._du1._Ql1();this._3u1.x=_Wt1._du1.y;this._3u1.y=-_Wt1._du1.x;_mu1=(_Wt1._du1.x*_Wt1._cu1.y-_Wt1._du1.y*_Wt1._cu1.x)>=0;_ku1=this._3u1.x*(this._Zt1.x-this.__t1.x)+this._3u1.y*(this._Zt1.y-this.__t1.y);}if(_iu1){_Wt1._eu1.x=this._2u1.x-this._1u1.x;
_Wt1._eu1.y=this._2u1.y-this._1u1.y;_Wt1._eu1._Ql1();this._5u1.x=_Wt1._eu1.y;this._5u1.y=-_Wt1._eu1.x;_nu1=(_Wt1._cu1.x*_Wt1._eu1.y-_Wt1._cu1.y*_Wt1._eu1.x)>0.0;_lu1=this._5u1.x*(this._Zt1.x-this._1u1.x)+this._5u1.y*(this._Zt1.y-this._1u1.y);}if(_hu1&&_iu1){if(_mu1&&_nu1){this._bu1=_ku1>=0.0||_ju1>=0.0||_lu1>=0.0;if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=this._3u1.x;this._9u1.y=this._3u1.y;this._au1.x=this._5u1.x;this._au1.y=this._5u1.y;}else {this._6u1.x=-this._4u1.x;
this._6u1.y=-this._4u1.y;this._9u1.x=-this._4u1.x;this._9u1.y=-this._4u1.y;this._au1.x=-this._4u1.x;this._au1.y=-this._4u1.y;}}else if(_mu1){this._bu1=_ku1>=0.0||(_ju1>=0.0&&_lu1>=0.0);if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=this._3u1.x;this._9u1.y=this._3u1.y;this._au1.x=this._4u1.x;this._au1.y=this._4u1.y;}else {this._6u1.x=-this._4u1.x;this._6u1.y=-this._4u1.y;this._9u1.x=-this._5u1.x;this._9u1.y=-this._5u1.y;this._au1.x=-this._4u1.x;this._au1.y=-this._4u1.y;}}
else if(_nu1){this._bu1=_lu1>=0.0||(_ku1>=0.0&&_ju1>=0.0);if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=this._4u1.x;this._9u1.y=this._4u1.y;this._au1.x=this._5u1.x;this._au1.y=this._5u1.y;}else {this._6u1.x=-this._4u1.x;this._6u1.y=-this._4u1.y;this._9u1.x=-this._4u1.x;this._9u1.y=-this._4u1.y;this._au1.x=-this._3u1.x;this._au1.y=-this._3u1.y;}}else {this._bu1=_ku1>=0.0&&_ju1>=0.0&&_lu1>=0.0;if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=this._4u1.x;
this._9u1.y=this._4u1.y;this._au1.x=this._4u1.x;this._au1.y=this._4u1.y;}else {this._6u1.x=-this._4u1.x;this._6u1.y=-this._4u1.y;this._9u1.x=-this._5u1.x;this._9u1.y=-this._5u1.y;this._au1.x=-this._3u1.x;this._au1.y=-this._3u1.y;}}}else if(_hu1){if(_mu1){this._bu1=_ku1>=0.0||_ju1>=0.0;if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=this._3u1.x;this._9u1.y=this._3u1.y;this._au1.x=-this._4u1.x;this._au1.y=-this._4u1.y;}else {this._6u1.x=-this._4u1.x;this._6u1.y=-this._4u1.y;
this._9u1.x=this._4u1.x;this._9u1.y=this._4u1.y;this._au1.x=-this._4u1.x;this._au1.y=-this._4u1.y;}}else {this._bu1=_ku1>=0.0&&_ju1>=0.0;if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=this._4u1.x;this._9u1.y=this._4u1.y;this._au1.x=-this._4u1.x;this._au1.y=-this._4u1.y;}else {this._6u1.x=-this._4u1.x;this._6u1.y=-this._4u1.y;this._9u1.x=this._4u1.x;this._9u1.y=this._4u1.y;this._au1.x=-this._3u1.x;this._au1.y=-this._3u1.y;}}}else if(_iu1){if(_nu1){this._bu1=_ju1>=0.0||_lu1>=0.0;
if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=-this._4u1.x;this._9u1.y=-this._4u1.y;this._au1.x=this._5u1.x;this._au1.y=this._5u1.y;}else {this._6u1.x=-this._4u1.x;this._6u1.y=-this._4u1.y;this._9u1.x=-this._4u1.x;this._9u1.y=-this._4u1.y;this._au1.x=this._4u1.x;this._au1.y=this._4u1.y;}}else {this._bu1=_ju1>=0.0&&_lu1>=0.0;if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=-this._4u1.x;this._9u1.y=-this._4u1.y;this._au1.x=this._4u1.x;this._au1.y=this._4u1.y;
}else {this._6u1.x=-this._4u1.x;this._6u1.y=-this._4u1.y;this._9u1.x=-this._5u1.x;this._9u1.y=-this._5u1.y;this._au1.x=this._4u1.x;this._au1.y=this._4u1.y;}}}else {this._bu1=_ju1>=0.0;if(this._bu1){this._6u1.x=this._4u1.x;this._6u1.y=this._4u1.y;this._9u1.x=-this._4u1.x;this._9u1.y=-this._4u1.y;this._au1.x=-this._4u1.x;this._au1.y=-this._4u1.y;}else {this._6u1.x=-this._4u1.x;this._6u1.y=-this._4u1.y;this._9u1.x=this._4u1.x;this._9u1.y=this._4u1.y;this._au1.x=this._4u1.x;this._au1.y=this._4u1.y;}}this._Xt1._E8=_gu1._to1;
for(var i=0;i<_gu1._to1;++i){this._Xt1.vertices[i]=_Sm1(this._Yt1,_gu1._so1[i]);this._Xt1._Cs1[i]=_Qm1(this._Yt1.q,_gu1._Lo1[i]);}this._Nn1=2.0*_3l1;_Gr1._Fr1=0;var _ou1=this._pu1();if(_ou1.type==_Ot1._Pt1){return;}if(_ou1._Bs1>this._Nn1){return;}var _qu1=this._ru1();if(_qu1.type!=_Ot1._Pt1&&_qu1._Bs1>this._Nn1){return;}var _su1=0.98;var _tu1=0.001;var _uu1=new _Ot1();if(_qu1.type==_Ot1._Pt1){_uu1=_ou1;}else if(_qu1._Bs1>_su1*_ou1._Bs1+_tu1){_uu1=_qu1;}else {_uu1=_ou1;}var _So1=new Array(2);var _vu1=new _Tt1();
if(_uu1.type==_Ot1._Qt1){_Gr1.type=_Dr1._Ir1;var _8q1=0;var _9q1=this._6u1.x*this._Xt1._Cs1[0].x+this._6u1.y*this._Xt1._Cs1[0].y;for(var i=1;i<this._Xt1._E8;++i){var value=this._6u1.x*this._Xt1._Cs1[i].x+this._6u1.y*this._Xt1._Cs1[i].y;if(value<_9q1){_9q1=value;_8q1=i;}}var _Ho1=_8q1;var _Io1=_Ho1+1<this._Xt1._E8?_Ho1+1:0;_So1[0]=new _bs1();_So1[0]._n5.x=this._Xt1.vertices[_Ho1].x;_So1[0]._n5.y=this._Xt1.vertices[_Ho1].y;_So1[0].id._cq1=0;_So1[0].id._dq1=_Ho1;_So1[0].id._ur1=_tr1._xr1;_So1[0].id._vr1=_tr1._wr1;
_So1[1]=new _bs1();_So1[1]._n5.x=this._Xt1.vertices[_Io1].x;_So1[1]._n5.y=this._Xt1.vertices[_Io1].y;_So1[1].id._cq1=0;_So1[1].id._dq1=_Io1;_So1[1].id._ur1=_tr1._xr1;_So1[1].id._vr1=_tr1._wr1;if(this._bu1){_vu1._Ho1=0;_vu1._Io1=1;_vu1._jb.x=this._0u1.x;_vu1._jb.y=this._0u1.y;_vu1._p5.x=this._1u1.x;_vu1._p5.y=this._1u1.y;_vu1._Yn1.x=this._4u1.x;_vu1._Yn1.y=this._4u1.y;}else {_vu1._Ho1=1;_vu1._Io1=0;_vu1._jb.x=this._1u1.x;_vu1._jb.y=this._1u1.y;_vu1._p5.x=this._0u1.x;_vu1._p5.y=this._0u1.y;_vu1._Yn1.x=-this._4u1.x;
_vu1._Yn1.y=-this._4u1.y;}}else {_Gr1.type=_Dr1._Jr1;_So1[0]=new _bs1();_So1[0]._n5=this._0u1;_So1[0].id._cq1=0;_So1[0].id._dq1=_uu1.index;_So1[0].id._ur1=_tr1._wr1;_So1[0].id._vr1=_tr1._xr1;_So1[1]=new _bs1();_So1[1]._n5=this._1u1;_So1[1].id._cq1=0;_So1[1].id._dq1=_uu1.index;_So1[1].id._ur1=_tr1._wr1;_So1[1].id._vr1=_tr1._xr1;_vu1._Ho1=_uu1.index;_vu1._Io1=_vu1._Ho1+1<this._Xt1._E8?_vu1._Ho1+1:0;_vu1._jb.x=this._Xt1.vertices[_vu1._Ho1].x;_vu1._jb.y=this._Xt1.vertices[_vu1._Ho1].y;_vu1._p5.x=this._Xt1.vertices[_vu1._Io1].x;
_vu1._p5.y=this._Xt1.vertices[_vu1._Io1].y;_vu1._Yn1.x=this._Xt1._Cs1[_vu1._Ho1].x;_vu1._Yn1.y=this._Xt1._Cs1[_vu1._Ho1].y;}_vu1._Ut1.x=_vu1._Yn1.y;_vu1._Ut1.y=-_vu1._Yn1.x;_vu1._Vt1.x=-_vu1._Ut1.x;_vu1._Vt1.y=-_vu1._Ut1.y;_vu1._st1=_vu1._Ut1.x*_vu1._jb.x+_vu1._Ut1.y*_vu1._jb.y;_vu1._tt1=_vu1._Vt1.x*_vu1._p5.x+_vu1._Vt1.y*_vu1._p5.y;var _ut1=new Array(2);var _vt1=new Array(2);var _wt1;_wt1=_xt1(_ut1,_So1,_vu1._Ut1.x,_vu1._Ut1.y,_vu1._st1,_vu1._Ho1);if(_wt1<_Yk1){return;}_wt1=_xt1(_vt1,_ut1,_vu1._Vt1.x,
_vu1._Vt1.y,_vu1._tt1,_vu1._Io1);if(_wt1<_Yk1){return;}if(_uu1.type==_Ot1._Qt1){_Gr1._Er1.x=_vu1._Yn1.x;_Gr1._Er1.y=_vu1._Yn1.y;_Gr1._zr1.x=_vu1._jb.x;_Gr1._zr1.y=_vu1._jb.y;}else {_Gr1._Er1.x=_gu1._Lo1[_vu1._Ho1].x;_Gr1._Er1.y=_gu1._Lo1[_vu1._Ho1].y;_Gr1._zr1.x=_gu1._so1[_vu1._Ho1].x;_Gr1._zr1.y=_gu1._so1[_vu1._Ho1].y;}var _Fr1=0;for(var i=0;i<_Yk1;++i){var _Bs1=_vu1._Yn1.x*(_vt1[i]._n5.x-_vu1._jb.x)+_vu1._Yn1.y*(_vt1[i]._n5.y-_vu1._jb.y);if(_Bs1<=this._Nn1){var _yt1=_Gr1.points[_Fr1]=new _yr1();if(_uu1.type==_Ot1._Qt1){
_yt1._zr1._SN(_Um1(this._Yt1,_vt1[i]._n5));_yt1.id._SN(_vt1[i].id);}else {_yt1._zr1.x=_vt1[i]._n5.x;_yt1._zr1.y=_vt1[i]._n5.y;_yt1.id._ur1=_vt1[i].id._vr1;_yt1.id._vr1=_vt1[i].id._ur1;_yt1.id._cq1=_vt1[i].id._dq1;_yt1.id._dq1=_vt1[i].id._cq1;}++_Fr1;}}_Gr1._Fr1=_Fr1;},_pu1:function(){var _ru=new _Ot1();_ru.type=_Ot1._Qt1;_ru.index=this._bu1?0:1;_ru._Bs1=Number.MAX_VALUE;for(var i=0;i<this._Xt1._E8;++i){var _qi=this._6u1.x*(this._Xt1.vertices[i].x-this._0u1.x)+this._6u1.y*(this._Xt1.vertices[i].y-this._0u1.y);
if(_qi<_ru._Bs1){_ru._Bs1=_qi;}}return _ru;},_ru1:function(){var _ru=new _Ot1();_ru.type=_Ot1._Pt1;_ru.index=-1;_ru._Bs1=-Number.MAX_VALUE;var _wu1=-this._6u1.y;var _xu1=this._6u1.x;for(var i=0;i<this._Xt1._E8;++i){var _Sb=-this._Xt1._Cs1[i].x;var _Tb=-this._Xt1._Cs1[i].y;var _0B=_Sb*(this._Xt1.vertices[i].x-this._0u1.x)+_Tb*(this._Xt1.vertices[i].y-this._0u1.y);var _1B=_Sb*(this._Xt1.vertices[i].x-this._1u1.x)+_Tb*(this._Xt1.vertices[i].y-this._1u1.y);var _qi=_2n1(_0B,_1B);if(_qi>this._Nn1){_ru.type=_Ot1._Rt1;
_ru.index=i;_ru._Bs1=_qi;return _ru;}if(_Sb*_wu1+_Tb*_xu1>=0.0){if((_Sb-this._au1.x)*this._6u1.x+(_Tb-this._au1.y)*this._6u1.y<-_2l1){continue;}}else {if((_Sb-this._9u1.x)*this._6u1.x+(_Tb-this._9u1.y)*this._6u1.y<-_2l1){continue;}}if(_qi>_ru._Bs1){_ru.type=_Ot1._Rt1;_ru.index=i;_ru._Bs1=_qi;}}return _ru;}};_Wt1._yu1=0;_Wt1._zu1=1;_Wt1._Au1=2;function _Bu1(_Gr1,_9t1,_Rr1,_gu1,_Tr1){_Bu1._Cu1._fu1(_Gr1,_9t1,_Rr1,_gu1,_Tr1);}_Bu1._Cu1=new _Wt1();function _xt1(_Du1,_Eu1,_pt1,_qt1,offset,_Fu1){var _Gu1=0;var _Hu1=(_pt1*_Eu1[0]._n5.x+_qt1*_Eu1[0]._n5.y)-offset;
var _Iu1=(_pt1*_Eu1[1]._n5.x+_qt1*_Eu1[1]._n5.y)-offset;if(_Hu1<=0.0)_Du1[_Gu1++]=_Eu1[0];if(_Iu1<=0.0)_Du1[_Gu1++]=_Eu1[1];if(_Hu1*_Iu1<0.0){var _Ju1=_Hu1/(_Hu1-_Iu1);_Du1[_Gu1]=new _bs1();_Du1[_Gu1]._n5.x=_Eu1[0]._n5.x+(_Ju1*(_Eu1[1]._n5.x-_Eu1[0]._n5.x));_Du1[_Gu1]._n5.y=_Eu1[0]._n5.y+(_Ju1*(_Eu1[1]._n5.y-_Eu1[0]._n5.y));_Du1[_Gu1].id._cq1=_Fu1;_Du1[_Gu1].id._dq1=_Eu1[0].id._dq1;_Du1[_Gu1].id._ur1=_tr1._wr1;_Du1[_Gu1].id._vr1=_tr1._xr1;++_Gu1;}return _Gu1;}function _Ku1(_Lu1,_cq1,_Mu1,_dq1,_Rr1,_Tr1){
_Ku1._nI._fq1.Set(_Lu1,_cq1);_Ku1._nI._gq1.Set(_Mu1,_dq1);_Ku1._nI._hq1=_Rr1;_Ku1._nI._iq1=_Tr1;_Ku1._nI._jq1=true;_Ku1._D8._E8=0;_cr1(_Ku1._pI,_Ku1._D8,_Ku1._nI);return _Ku1._pI._Xn1<10.0*_Wk1;}_Ku1._nI=new _eq1();_Ku1._D8=new _aq1();_Ku1._pI=new _kq1();function _Np1(_G4,_F4){return !((_F4._8o1.x-_G4._9o1.x)>0.0||(_F4._8o1.y-_G4._9o1.y)>0.0||(_G4._8o1.x-_F4._9o1.x)>0.0||(_G4._8o1.y-_F4._9o1.y)>0.0);}var _Nu1=-1;function _Ou1(){this._Tn1=new _es1();this._Bp1=null;this.parent=0;this._Pu1=this._Qu1=this.height=0;
}_Ou1.prototype={_Ru1:function(){return this._Pu1==_Nu1;}};function _tp1(){this._Su1=_Nu1;this._Tu1=16;this._Uu1=0;this._Vu1=new Array(this._Tu1);for(var i=0;i<this._Tu1-1;++i){this._Vu1[i]=new _Ou1();this._Vu1[i].parent=i+1;this._Vu1[i].height=-1;}this._Vu1[this._Tu1-1]=new _Ou1();this._Vu1[this._Tu1-1].parent=_Nu1;this._Vu1[this._Tu1-1].height=-1;this._Wu1=0;this._Xu1=0;this._Yu1=0;}_tp1._Zu1=new _Hl1(__k1,__k1);_tp1.prototype={_Ap1:function(_Tn1,_Bp1){var _Cp1=this.__u1();this._Vu1[_Cp1]._Tn1._8o1._SN(_Hl1._Ol1(_Tn1._8o1,
_tp1._Zu1));this._Vu1[_Cp1]._Tn1._9o1._SN(_Hl1._Df(_Tn1._9o1,_tp1._Zu1));this._Vu1[_Cp1]._Bp1=_Bp1;this._Vu1[_Cp1].height=0;this._0v1(_Cp1);return _Cp1;},_Ep1:function(_Cp1){_Tk1(0<=_Cp1&&_Cp1<this._Tu1);_Tk1(this._Vu1[_Cp1]._Ru1());this._1v1(_Cp1);this._2v1(_Cp1);},/// @return true if the proxy was re-inserted.
_Gp1:function(_Cp1,_Tn1,_Hp1){_Tk1(0<=_Cp1&&_Cp1<this._Tu1);_Tk1(this._Vu1[_Cp1]._Ru1());if(this._Vu1[_Cp1]._Tn1._ms1(_Tn1)){return false;}this._1v1(_Cp1);this._Vu1[_Cp1]._Tn1._SN(_Tn1);this._Vu1[_Cp1]._Tn1._8o1._Ol1(_tp1._Zu1);
this._Vu1[_Cp1]._Tn1._9o1._Df(_tp1._Zu1);var _tm=_Hl1.Multiply(_0l1,_Hp1);if(_tm.x<0.0){this._Vu1[_Cp1]._Tn1._8o1.x+=_tm.x;}else {this._Vu1[_Cp1]._Tn1._9o1.x+=_tm.x;}if(_tm.y<0.0){this._Vu1[_Cp1]._Tn1._8o1.y+=_tm.y;}else {this._Vu1[_Cp1]._Tn1._9o1.y+=_tm.y;}this._0v1(_Cp1);return true;},/// @return the proxy user data or 0 if the id is invalid.
_Kp1:function(_Cp1){_Tk1(0<=_Cp1&&_Cp1<this._Tu1);return this._Vu1[_Cp1]._Bp1;},_Jp1:function(_Cp1){_Tk1(0<=_Cp1&&_Cp1<this._Tu1);return this._Vu1[_Cp1]._Tn1;
},_Sp1:function(_Gg1,_Tn1){var stack=[];stack.push(this._Su1);while(stack.length>0){var _3v1=stack.pop();if(_3v1==_Nu1){continue;}var _Al=this._Vu1[_3v1];if(_Np1(_Al._Tn1,_Tn1)){if(_Al._Ru1()){var _4v1=_Gg1._4q1(_3v1);if(_4v1==false){return;}}else {stack.push(_Al._Pu1);stack.push(_Al._Qu1);}}}},/// @param input the ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1).
/// @param callback a callback class that is called for each proxy that is hit by the ray.
_Qn1:function(_Gg1,
_nI){var _qu=_nI._qu;var _rn1=_nI._rn1;var _D4=_Hl1._Ol1(_rn1,_qu);_Tk1(_D4._Pl1()>0.0);_D4._Ql1();var _n5=_Em1(1.0,_D4);var _5v1=_0n1(_n5);var _6o1=_nI._6o1;var _6v1=new _es1();{var _Y6=_Hl1._Df(_qu,_Hl1.Multiply(_6o1,_Hl1._Ol1(_rn1,_qu)));_6v1._8o1._SN(_3n1(_qu,_Y6));_6v1._9o1._SN(_5n1(_qu,_Y6));}var stack=[];stack.push(this._Su1);while(stack.length>0){var _3v1=stack.pop();if(_3v1==_Nu1){continue;}var _Al=this._Vu1[_3v1];if(_Np1(_Al._Tn1,_6v1)==false){continue;}var c=_Al._Tn1._gs1();var h=_Al._Tn1._hs1();var _Bs1=__m1(_Bm1(_n5,
_Hl1._Ol1(_qu,c)))-_Bm1(_5v1,h);if(_Bs1>0.0){continue;}if(_Al._Ru1()){var _7v1=new _cs1();_7v1._qu._SN(_nI._qu);_7v1._rn1._SN(_nI._rn1);_7v1._6o1=_6o1;var value=_Gg1._8v1(_7v1,_3v1);if(value==0.0){return;}if(value>0.0){_6o1=value;var _ss1=_Hl1._Df(_qu,_Hl1.Multiply(_6o1,_Hl1._Ol1(_rn1,_qu)));_6v1._8o1._SN(_3n1(_qu,_ss1));_6v1._9o1._SN(_5n1(_qu,_ss1));}}else {stack.push(_Al._Pu1);stack.push(_Al._Qu1);}}},_bp1:function(){this._9v1(this._Su1);this._av1(this._Su1);var _bv1=0;var _cv1=this._Wu1;while(_cv1!=_Nu1){
_Tk1(0<=_cv1&&_cv1<this._Tu1);_cv1=this._Vu1[_cv1].parent;++_bv1;}_Tk1(this._KX()==this._dv1());_Tk1(this._Uu1+_bv1==this._Tu1);},_KX:function(){if(this._Su1==_Nu1){return 0;}return this._Vu1[this._Su1].height;},__p1:function(){var _ev1=0;for(var i=0;i<this._Tu1;++i){var _Al=this._Vu1[i];if(_Al.height<=1){continue;}_Tk1(_Al._Ru1()==false);var _Pu1=_Al._Pu1;var _Qu1=_Al._Qu1;var _fv1=__m1(this._Vu1[_Qu1].height-this._Vu1[_Pu1].height);_ev1=_4n1(_ev1,_fv1);}return _ev1;},_1q1:function(){if(this._Su1==_Nu1){
return 0.0;}var _W5=this._Vu1[this._Su1];var _gv1=_W5._Tn1._is1();var _hv1=0.0;for(var i=0;i<this._Tu1;++i){var _Al=this._Vu1[i];if(_Al.height<0){continue;}_hv1+=_Al._Tn1._is1();}return _hv1/_gv1;},_iv1:function(){var _jv1=new Array(this._Uu1);var _E8=0;for(var i=0;i<this._Tu1;++i){if(this._Vu1[i].height<0){continue;}if(this._Vu1[i]._Ru1()){this._Vu1[i].parent=_Nu1;_jv1[_E8]=i;++_E8;}else {this._2v1(i);}}while(_E8>1){var _kv1=_Vk1;var _lv1=-1,_mv1=-1;for(i=0;i<_E8;++i){var _nv1=this._Vu1[_jv1[i]]._Tn1;for(var _17=i+1;
_17<_E8;++_17){var _ov1=this._Vu1[_jv1[_17]]._Tn1;var _F4=new _es1();_F4._js1(_nv1,_ov1);var _pv1=_F4._is1();if(_pv1<_kv1){_lv1=i;_mv1=_17;_kv1=_pv1;}}}var _qv1=_jv1[_lv1];var _rv1=_jv1[_mv1];var _Pu1=this._Vu1[_qv1];var _Qu1=this._Vu1[_rv1];var _sv1=this.__u1();var parent=this._Vu1[_sv1];parent._Pu1=_qv1;parent._Qu1=_rv1;parent.height=1+_4n1(_Pu1.height,_Qu1.height);parent._Tn1._js1(_Pu1._Tn1,_Qu1._Tn1);parent.parent=_Nu1;_Pu1.parent=_sv1;_Qu1.parent=_sv1;_jv1[_mv1]=_jv1[_E8-1];_jv1[_lv1]=_sv1;--_E8;}this._Su1=_jv1[0];
this._bp1();},/// @param newOrigin the new origin with respect to the old origin
_2q1:function(_3q1){for(var i=0;i<this._Tu1;++i){this._Vu1[i]._Tn1._8o1._Ol1(_3q1);this._Vu1[i]._Tn1._9o1._Ol1(_3q1);}},__u1:function(){if(this._Wu1==_Nu1){_Tk1(this._Uu1==this._Tu1);var _tv1=this._Vu1;this._Tu1*=2;this._Vu1=_tv1.concat(new Array(this._Tu1-this._Uu1));for(var i=this._Uu1;i<this._Tu1-1;++i){this._Vu1[i]=new _Ou1();this._Vu1[i].parent=i+1;this._Vu1[i].height=-1;}this._Vu1[this._Tu1-1]=new _Ou1();this._Vu1[this._Tu1-1].parent=_Nu1;
this._Vu1[this._Tu1-1].height=-1;this._Wu1=this._Uu1;}var _3v1=this._Wu1;this._Wu1=this._Vu1[_3v1].parent;this._Vu1[_3v1].parent=_Nu1;this._Vu1[_3v1]._Pu1=_Nu1;this._Vu1[_3v1]._Qu1=_Nu1;this._Vu1[_3v1].height=0;this._Vu1[_3v1]._Bp1=null;++this._Uu1;return _3v1;},_2v1:function(_3v1){_Tk1(0<=_3v1&&_3v1<this._Tu1);_Tk1(0<this._Uu1);this._Vu1[_3v1].parent=this._Wu1;this._Vu1[_3v1].height=-1;this._Wu1=_3v1;--this._Uu1;},_0v1:function(_uv1){++this._Yu1;if(this._Su1==_Nu1){this._Su1=_uv1;this._Vu1[this._Su1].parent=_Nu1;
return;}var _vv1=this._Vu1[_uv1]._Tn1;var index=this._Su1;while(this._Vu1[index]._Ru1()==false){var _Pu1=this._Vu1[index]._Pu1;var _Qu1=this._Vu1[index]._Qu1;var __o1=this._Vu1[index]._Tn1._is1();var _wv1=new _es1();_wv1._js1(this._Vu1[index]._Tn1,_vv1);var _xv1=_wv1._is1();var _pv1=2.0*_xv1;var _yv1=2.0*(_xv1-__o1);var _zv1;var _Tn1;if(this._Vu1[_Pu1]._Ru1()){_Tn1=new _es1();_Tn1._js1(_vv1,this._Vu1[_Pu1]._Tn1);_zv1=_Tn1._is1()+_yv1;}else {_Tn1=new _es1();_Tn1._js1(_vv1,this._Vu1[_Pu1]._Tn1);var _Av1=this._Vu1[_Pu1]._Tn1._is1();
var _Bv1=_Tn1._is1();_zv1=(_Bv1-_Av1)+_yv1;}var _Cv1;if(this._Vu1[_Qu1]._Ru1()){_Tn1=new _es1();_Tn1._js1(_vv1,this._Vu1[_Qu1]._Tn1);_Cv1=_Tn1._is1()+_yv1;}else {_Tn1=new _es1();_Tn1._js1(_vv1,this._Vu1[_Qu1]._Tn1);var _Av1=this._Vu1[_Qu1]._Tn1._is1();var _Bv1=_Tn1._is1();_Cv1=_Bv1-_Av1+_yv1;}if(_pv1<_zv1&&_pv1<_Cv1){break;}if(_zv1<_Cv1){index=_Pu1;}else {index=_Qu1;}}var _Dv1=index;var _Ev1=this._Vu1[_Dv1].parent;var _Fv1=this.__u1();this._Vu1[_Fv1].parent=_Ev1;this._Vu1[_Fv1]._Bp1=null;this._Vu1[_Fv1]._Tn1._js1(_vv1,
this._Vu1[_Dv1]._Tn1);this._Vu1[_Fv1].height=this._Vu1[_Dv1].height+1;if(_Ev1!=_Nu1){if(this._Vu1[_Ev1]._Pu1==_Dv1){this._Vu1[_Ev1]._Pu1=_Fv1;}else {this._Vu1[_Ev1]._Qu1=_Fv1;}this._Vu1[_Fv1]._Pu1=_Dv1;this._Vu1[_Fv1]._Qu1=_uv1;this._Vu1[_Dv1].parent=_Fv1;this._Vu1[_uv1].parent=_Fv1;}else {this._Vu1[_Fv1]._Pu1=_Dv1;this._Vu1[_Fv1]._Qu1=_uv1;this._Vu1[_Dv1].parent=_Fv1;this._Vu1[_uv1].parent=_Fv1;this._Su1=_Fv1;}index=this._Vu1[_uv1].parent;while(index!=_Nu1){index=this._Gv1(index);var _Pu1=this._Vu1[index]._Pu1;
var _Qu1=this._Vu1[index]._Qu1;_Tk1(_Pu1!=_Nu1);_Tk1(_Qu1!=_Nu1);this._Vu1[index].height=1+_4n1(this._Vu1[_Pu1].height,this._Vu1[_Qu1].height);this._Vu1[index]._Tn1._js1(this._Vu1[_Pu1]._Tn1,this._Vu1[_Qu1]._Tn1);index=this._Vu1[index].parent;}},_1v1:function(_uv1){if(_uv1==this._Su1){this._Su1=_Nu1;return;}var parent=this._Vu1[_uv1].parent;var _Hv1=this._Vu1[parent].parent;var _Dv1;if(this._Vu1[parent]._Pu1==_uv1){_Dv1=this._Vu1[parent]._Qu1;}else {_Dv1=this._Vu1[parent]._Pu1;}if(_Hv1!=_Nu1){if(this._Vu1[_Hv1]._Pu1==parent){
this._Vu1[_Hv1]._Pu1=_Dv1;}else {this._Vu1[_Hv1]._Qu1=_Dv1;}this._Vu1[_Dv1].parent=_Hv1;this._2v1(parent);var index=_Hv1;while(index!=_Nu1){index=this._Gv1(index);var _Pu1=this._Vu1[index]._Pu1;var _Qu1=this._Vu1[index]._Qu1;this._Vu1[index]._Tn1._js1(this._Vu1[_Pu1]._Tn1,this._Vu1[_Qu1]._Tn1);this._Vu1[index].height=1+_4n1(this._Vu1[_Pu1].height,this._Vu1[_Qu1].height);index=this._Vu1[index].parent;}}else {this._Su1=_Dv1;this._Vu1[_Dv1].parent=_Nu1;this._2v1(parent);}},_Gv1:function(_Iv1){_Tk1(_Iv1!=_Nu1);
var _Uk1=this._Vu1[_Iv1];if(_Uk1._Ru1()||_Uk1.height<2){return _Iv1;}var _Jv1=_Uk1._Pu1;var _Kv1=_Uk1._Qu1;_Tk1(0<=_Jv1&&_Jv1<this._Tu1);_Tk1(0<=_Kv1&&_Kv1<this._Tu1);var _1m1=this._Vu1[_Jv1];var _Wm1=this._Vu1[_Kv1];var _fv1=_Wm1.height-_1m1.height;if(_fv1>1){var _Lv1=_Wm1._Pu1;var _Mv1=_Wm1._Qu1;var _Nv1=this._Vu1[_Lv1];var _Ov1=this._Vu1[_Mv1];_Tk1(0<=_Lv1&&_Lv1<this._Tu1);_Tk1(0<=_Mv1&&_Mv1<this._Tu1);_Wm1._Pu1=_Iv1;_Wm1.parent=_Uk1.parent;_Uk1.parent=_Kv1;if(_Wm1.parent!=_Nu1){if(this._Vu1[_Wm1.parent]._Pu1==_Iv1){
this._Vu1[_Wm1.parent]._Pu1=_Kv1;}else {_Tk1(this._Vu1[_Wm1.parent]._Qu1==_Iv1);this._Vu1[_Wm1.parent]._Qu1=_Kv1;}}else {this._Su1=_Kv1;}if(_Nv1.height>_Ov1.height){_Wm1._Qu1=_Lv1;_Uk1._Qu1=_Mv1;_Ov1.parent=_Iv1;_Uk1._Tn1._js1(_1m1._Tn1,_Ov1._Tn1);_Wm1._Tn1._js1(_Uk1._Tn1,_Nv1._Tn1);_Uk1.height=1+_4n1(_1m1.height,_Ov1.height);_Wm1.height=1+_4n1(_Uk1.height,_Nv1.height);}else {_Wm1._Qu1=_Mv1;_Uk1._Qu1=_Lv1;_Nv1.parent=_Iv1;_Uk1._Tn1._js1(_1m1._Tn1,_Nv1._Tn1);_Wm1._Tn1._js1(_Uk1._Tn1,_Ov1._Tn1);_Uk1.height=1+_4n1(_1m1.height,
_Nv1.height);_Wm1.height=1+_4n1(_Uk1.height,_Ov1.height);}return _Kv1;}if(_fv1<-1){var _Pv1=_1m1._Pu1;var _Qv1=_1m1._Qu1;var _3p1=this._Vu1[_Pv1];var _Rv1=this._Vu1[_Qv1];_Tk1(0<=_Pv1&&_Pv1<this._Tu1);_Tk1(0<=_Qv1&&_Qv1<this._Tu1);_1m1._Pu1=_Iv1;_1m1.parent=_Uk1.parent;_Uk1.parent=_Jv1;if(_1m1.parent!=_Nu1){if(this._Vu1[_1m1.parent]._Pu1==_Iv1){this._Vu1[_1m1.parent]._Pu1=_Jv1;}else {_Tk1(this._Vu1[_1m1.parent]._Qu1==_Iv1);this._Vu1[_1m1.parent]._Qu1=_Jv1;}}else {this._Su1=_Jv1;}if(_3p1.height>_Rv1.height){
_1m1._Qu1=_Pv1;_Uk1._Pu1=_Qv1;_Rv1.parent=_Iv1;_Uk1._Tn1._js1(_Wm1._Tn1,_Rv1._Tn1);_1m1._Tn1._js1(_Uk1._Tn1,_3p1._Tn1);_Uk1.height=1+_4n1(_Wm1.height,_Rv1.height);_1m1.height=1+_4n1(_Uk1.height,_3p1.height);}else {_1m1._Qu1=_Qv1;_Uk1._Pu1=_Pv1;_3p1.parent=_Iv1;_Uk1._Tn1._js1(_Wm1._Tn1,_3p1._Tn1);_1m1._Tn1._js1(_Uk1._Tn1,_Rv1._Tn1);_Uk1.height=1+_4n1(_Wm1.height,_3p1.height);_1m1.height=1+_4n1(_Uk1.height,_Rv1.height);}return _Jv1;}return _Iv1;},_dv1:function(_3v1){if(typeof(_3v1)==='undefined')_3v1=this._Su1;
_Tk1(0<=_3v1&&_3v1<this._Tu1);var _Al=this._Vu1[_3v1];if(_Al._Ru1()){return 0;}var _Sv1=this._dv1(_Al._Pu1);var _Tv1=this._dv1(_Al._Qu1);return 1+_4n1(_Sv1,_Tv1);},_9v1:function(index){if(index==_Nu1){return;}if(index==this._Su1){_Tk1(this._Vu1[index].parent==_Nu1);}var _Al=this._Vu1[index];var _Pu1=_Al._Pu1;var _Qu1=_Al._Qu1;if(_Al._Ru1()){_Tk1(_Pu1==_Nu1);_Tk1(_Qu1==_Nu1);_Tk1(_Al.height==0);return;}_Tk1(0<=_Pu1&&_Pu1<this._Tu1);_Tk1(0<=_Qu1&&_Qu1<this._Tu1);_Tk1(this._Vu1[_Pu1].parent==index);_Tk1(this._Vu1[_Qu1].parent==index);
this._9v1(_Pu1);this._9v1(_Qu1);},_av1:function(index){if(index==_Nu1){return;}var _Al=this._Vu1[index];var _Pu1=_Al._Pu1;var _Qu1=_Al._Qu1;if(_Al._Ru1()){_Tk1(_Pu1==_Nu1);_Tk1(_Qu1==_Nu1);_Tk1(_Al.height==0);return;}_Tk1(0<=_Pu1&&_Pu1<this._Tu1);_Tk1(0<=_Qu1&&_Qu1<this._Tu1);var _Sv1=this._Vu1[_Pu1].height;var _Tv1=this._Vu1[_Qu1].height;var height;height=1+_4n1(_Sv1,_Tv1);_Tk1(_Al.height==height);var _Tn1=new _es1();_Tn1._js1(this._Vu1[_Pu1]._Tn1,this._Vu1[_Qu1]._Tn1);_Tk1(_Hl1._Wl1(_Tn1._8o1,_Al._Tn1._8o1));
_Tk1(_Hl1._Wl1(_Tn1._9o1,_Al._Tn1._9o1));this._av1(_Pu1);this._av1(_Qu1);}};function _Uv1(){this._fq1=new _5q1();this._gq1=new _5q1();this._Vv1=new _rm1();this._Wv1=new _rm1();this._Xv1=0;};function _Yv1(){this.state=0;this._Y6=0;};_Yv1._Pt1=0;_Yv1._Zv1=1;_Yv1.__v1=2;_Yv1._0w1=3;_Yv1._1w1=4;function _2w1(){this._3w1=null;this._4w1=null;this._5w1=null;this._6w1=null;this._oO=0;this._7w1=new _Hl1();this._8w1=new _Hl1();}var _9w1=new _pm1();var _aw1=new _pm1();_2w1.prototype={_Qr1:function(_D8,_fq1,_Vv1,_gq1,_Wv1,
_rs1){this._3w1=_fq1;this._4w1=_gq1;var _E8=_D8._E8;_Tk1(0<_E8&&_E8<3);this._5w1=_Vv1;this._6w1=_Wv1;this._5w1._xm1(_9w1,_rs1);this._6w1._xm1(_aw1,_rs1);if(_E8==1){this._oO=_2w1._bw1;var _cw1=this._3w1._co1(_D8._cq1[0]);var _dw1=this._4w1._co1(_D8._dq1[0]);var _Vr1=(_9w1.q.c*_cw1.x-_9w1.q._qi*_cw1.y)+_9w1._ih.x;var _Wr1=(_9w1.q._qi*_cw1.x+_9w1.q.c*_cw1.y)+_9w1._ih.y;var _Xr1=(_aw1.q.c*_dw1.x-_aw1.q._qi*_dw1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*_dw1.x+_aw1.q.c*_dw1.y)+_aw1._ih.y;this._8w1.x=_Xr1-_Vr1;this._8w1.y=_Yr1-_Wr1;
var _qi=this._8w1._Ql1();return _qi;}else if(_D8._cq1[0]==_D8._cq1[1]){this._oO=_2w1._Jr1;var _ew1=_gq1._co1(_D8._dq1[0]);var _fw1=_gq1._co1(_D8._dq1[1]);this._8w1.x=1.0*(_fw1.y-_ew1.y);this._8w1.y=-1.0*(_fw1.x-_ew1.x);this._8w1._Ql1();var _pt1=_aw1.q.c*this._8w1.x-_aw1.q._qi*this._8w1.y;var _qt1=_aw1.q._qi*this._8w1.x+_aw1.q.c*this._8w1.y;this._7w1.x=0.5*(_ew1.x+_fw1.x);this._7w1.y=0.5*(_ew1.y+_fw1.y);var _Xr1=(_aw1.q.c*this._7w1.x-_aw1.q._qi*this._7w1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*this._7w1.x+_aw1.q.c*this._7w1.y)+_aw1._ih.y;
var _cw1=_fq1._co1(_D8._cq1[0]);var _Vr1=(_9w1.q.c*_cw1.x-_9w1.q._qi*_cw1.y)+_9w1._ih.x;var _Wr1=(_9w1.q._qi*_cw1.x+_9w1.q.c*_cw1.y)+_9w1._ih.y;var _qi=(_Vr1-_Xr1)*_pt1+(_Wr1-_Yr1)*_qt1;if(_qi<0.0){this._8w1.x=-this._8w1.x;this._8w1.y=-this._8w1.y;_qi=-_qi;}return _qi;}else {this._oO=_2w1._Ir1;var _gw1=this._3w1._co1(_D8._cq1[0]);var _hw1=this._3w1._co1(_D8._cq1[1]);this._8w1.x=1.0*(_hw1.y-_gw1.y);this._8w1.y=-1.0*(_hw1.x-_gw1.x);this._8w1._Ql1();var _pt1=_9w1.q.c*this._8w1.x-_9w1.q._qi*this._8w1.y;var _qt1=_9w1.q._qi*this._8w1.x+_9w1.q.c*this._8w1.y;
this._7w1.x=0.5*(_gw1.x+_hw1.x);this._7w1.y=0.5*(_gw1.y+_hw1.y);var _Vr1=(_9w1.q.c*this._7w1.x-_9w1.q._qi*this._7w1.y)+_9w1._ih.x;var _Wr1=(_9w1.q._qi*this._7w1.x+_9w1.q.c*this._7w1.y)+_9w1._ih.y;var _dw1=this._4w1._co1(_D8._dq1[0]);var _Xr1=(_aw1.q.c*_dw1.x-_aw1.q._qi*_dw1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*_dw1.x+_aw1.q.c*_dw1.y)+_aw1._ih.y;var _qi=(_Xr1-_Vr1)*_pt1+(_Yr1-_Wr1)*_qt1;if(_qi<0.0){this._8w1.x=-this._8w1.x;this._8w1.y=-this._8w1.y;_qi=-_qi;}return _qi;}},_iw1:function(_F9,_Y6){this._5w1._xm1(_9w1,
_Y6);this._6w1._xm1(_aw1,_Y6);switch(this._oO){case _2w1._bw1:{var _jw1=_9w1.q.c*this._8w1.x+_9w1.q._qi*this._8w1.y;var _kw1=-_9w1.q._qi*this._8w1.x+_9w1.q.c*this._8w1.y;var _lw1=_aw1.q.c*-this._8w1.x+_aw1.q._qi*-this._8w1.y;var _mw1=-_aw1.q._qi*-this._8w1.x+_aw1.q.c*-this._8w1.y;_F9[0]=this._3w1._ao1(_jw1,_kw1);_F9[1]=this._4w1._ao1(_lw1,_mw1);var _cw1=this._3w1._co1(_F9[0]);var _dw1=this._4w1._co1(_F9[1]);var _Vr1=(_9w1.q.c*_cw1.x-_9w1.q._qi*_cw1.y)+_9w1._ih.x;var _Wr1=(_9w1.q._qi*_cw1.x+_9w1.q.c*_cw1.y)+_9w1._ih.y;
var _Xr1=(_aw1.q.c*_dw1.x-_aw1.q._qi*_dw1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*_dw1.x+_aw1.q.c*_dw1.y)+_aw1._ih.y;return(_Xr1-_Vr1)*this._8w1.x+(_Yr1-_Wr1)*this._8w1.y;}case _2w1._Ir1:{var _pt1=_9w1.q.c*this._8w1.x-_9w1.q._qi*this._8w1.y;var _qt1=_9w1.q._qi*this._8w1.x+_9w1.q.c*this._8w1.y;var _Vr1=(_9w1.q.c*this._7w1.x-_9w1.q._qi*this._7w1.y)+_9w1._ih.x;var _Wr1=(_9w1.q._qi*this._7w1.x+_9w1.q.c*this._7w1.y)+_9w1._ih.y;var _lw1=_aw1.q.c*-_pt1+_aw1.q._qi*-_qt1;var _mw1=-_aw1.q._qi*-_pt1+_aw1.q.c*-_qt1;_F9[0]=-1;
_F9[1]=this._4w1._ao1(_lw1,_mw1);var _dw1=this._4w1._co1(_F9[1]);var _Xr1=(_aw1.q.c*_dw1.x-_aw1.q._qi*_dw1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*_dw1.x+_aw1.q.c*_dw1.y)+_aw1._ih.y;return(_Xr1-_Vr1)*_pt1+(_Yr1-_Wr1)*_qt1;}case _2w1._Jr1:{var _pt1=_aw1.q.c*this._8w1.x-_aw1.q._qi*this._8w1.y;var _qt1=_aw1.q._qi*this._8w1.x+_aw1.q.c*this._8w1.y;var _Xr1=(_aw1.q.c*this._7w1.x-_aw1.q._qi*this._7w1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*this._7w1.x+_aw1.q.c*this._7w1.y)+_aw1._ih.y;var _jw1=_9w1.q.c*-_pt1+_9w1.q._qi*-_qt1;
var _mw1=-_9w1.q._qi*-_pt1+_9w1.q.c*-_qt1;_F9[1]=-1;_F9[0]=this._3w1._ao1(_jw1,_mw1);var _cw1=this._3w1._co1(_F9[0]);var _Vr1=(_9w1.q.c*_cw1.x-_9w1.q._qi*_cw1.y)+_9w1._ih.x;var _Wr1=(_9w1.q._qi*_cw1.x+_9w1.q.c*_cw1.y)+_9w1._ih.y;return(_Vr1-_Xr1)*_pt1+(_Wr1-_Yr1)*_qt1;}default :_Tk1(false);_F9[0]=-1;_F9[1]=-1;return 0.0;}},_Er:function(_cq1,_dq1,_Y6){this._5w1._xm1(_9w1,_Y6);this._6w1._xm1(_aw1,_Y6);switch(this._oO){case _2w1._bw1:{var _cw1=this._3w1._co1(_cq1);var _dw1=this._4w1._co1(_dq1);var _Vr1=(_9w1.q.c*_cw1.x-_9w1.q._qi*_cw1.y)+_9w1._ih.x;
var _Wr1=(_9w1.q._qi*_cw1.x+_9w1.q.c*_cw1.y)+_9w1._ih.y;var _Xr1=(_aw1.q.c*_dw1.x-_aw1.q._qi*_dw1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*_dw1.x+_aw1.q.c*_dw1.y)+_aw1._ih.y;var _Bs1=(_Xr1-_Vr1)*this._8w1.x+(_Yr1-_Wr1)*this._8w1.y;return _Bs1;}case _2w1._Ir1:{var _pt1=_9w1.q.c*this._8w1.x-_9w1.q._qi*this._8w1.y;var _qt1=_9w1.q._qi*this._8w1.x+_9w1.q.c*this._8w1.y;var _Vr1=(_9w1.q.c*this._7w1.x-_9w1.q._qi*this._7w1.y)+_9w1._ih.x;var _Wr1=(_9w1.q._qi*this._7w1.x+_9w1.q.c*this._7w1.y)+_9w1._ih.y;var _dw1=this._4w1._co1(_dq1);
var _Xr1=(_aw1.q.c*_dw1.x-_aw1.q._qi*_dw1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*_dw1.x+_aw1.q.c*_dw1.y)+_aw1._ih.y;var _Bs1=(_Xr1-_Vr1)*_pt1+(_Yr1-_Wr1)*_qt1;return _Bs1;}case _2w1._Jr1:{var _pt1=_aw1.q.c*this._8w1.x-_aw1.q._qi*this._8w1.y;var _qt1=_aw1.q._qi*this._8w1.x+_aw1.q.c*this._8w1.y;var _Xr1=(_aw1.q.c*this._7w1.x-_aw1.q._qi*this._7w1.y)+_aw1._ih.x;var _Yr1=(_aw1.q._qi*this._7w1.x+_aw1.q.c*this._7w1.y)+_aw1._ih.y;var _cw1=this._3w1._co1(_cq1);var _Vr1=(_9w1.q.c*_cw1.x-_9w1.q._qi*_cw1.y)+_9w1._ih.x;var _Wr1=(_9w1.q._qi*_cw1.x+_9w1.q.c*_cw1.y)+_9w1._ih.y;
var _Bs1=(_Vr1-_Xr1)*_pt1+(_Wr1-_Yr1)*_qt1;return _Bs1;}default :_Tk1(false);return 0.0;}}};_2w1._bw1=0;_2w1._Ir1=1;_2w1._Jr1=2;var _nw1=_Ak1._Mk1("toi","solveTOI");function _ow1(_pI,_nI){_nw1.start();++_ow1._pw1;_pI.state=_Yv1._Pt1;_pI._Y6=_nI._Xv1;var _fq1=_nI._fq1;var _gq1=_nI._gq1;_ow1._qw1._SN(_nI._Vv1);_ow1._rw1._SN(_nI._Wv1);_ow1._qw1._Ql1();_ow1._rw1._Ql1();var _Xv1=_nI._Xv1;var _8t1=_fq1._Nn1+_gq1._Nn1;var target=_4n1(_1l1,_8t1-3.0*_1l1);var _sw1=0.25*_1l1;_Tk1(target>_sw1);var _rs1=0.0;var _tw1=20;var _Nc1=0;
var _D8=new _aq1();_D8._E8=0;var _uw1=new _eq1();_uw1._fq1._SN(_nI._fq1);_uw1._gq1._SN(_nI._gq1);_uw1._jq1=false;for(;;){_ow1._qw1._xm1(_uw1._hq1,_rs1);_ow1._rw1._xm1(_uw1._iq1,_rs1);var _vw1=new _kq1();_cr1(_vw1,_D8,_uw1);if(_vw1._Xn1<=0.0){_pI.state=_Yv1.__v1;_pI._Y6=0.0;break;}if(_vw1._Xn1<target+_sw1){_pI.state=_Yv1._0w1;_pI._Y6=_rs1;break;}var _ww1=new _2w1();_ww1._Qr1(_D8,_fq1,_ow1._qw1,_gq1,_ow1._rw1,_rs1);var _xw1=false;var _ss1=_Xv1;var _yw1=0;for(;;){var _F9=[];var _1B=_ww1._iw1(_F9,_ss1);if(_1B>target+_sw1){
_pI.state=_Yv1._1w1;_pI._Y6=_Xv1;_xw1=true;break;}if(_1B>target-_sw1){_rs1=_ss1;break;}var _0B=_ww1._Er(_F9[0],_F9[1],_rs1);if(_0B<target-_sw1){_pI.state=_Yv1._Zv1;_pI._Y6=_rs1;_xw1=true;break;}if(_0B<=target+_sw1){_pI.state=_Yv1._0w1;_pI._Y6=_rs1;_xw1=true;break;}var _zw1=0;var _re1=_rs1,_se1=_ss1;for(;;){var _Y6;if(_zw1&1){_Y6=_re1+(target-_0B)*(_se1-_re1)/(_1B-_0B);}else {_Y6=0.5*(_re1+_se1);}++_zw1;++_ow1._Aw1;var _qi=_ww1._Er(_F9[0],_F9[1],_Y6);if(__m1(_qi-target)<_sw1){_ss1=_Y6;break;}if(_qi>target){
_re1=_Y6;_0B=_qi;}else {_se1=_Y6;_1B=_qi;}if(_zw1==50){break;}}_ow1._Bw1=_4n1(_ow1._Bw1,_zw1);++_yw1;if(_yw1==_Zk1){break;}}++_Nc1;++_ow1._Cw1;if(_xw1){break;}if(_Nc1==_tw1){_pI.state=_Yv1._Zv1;_pI._Y6=_rs1;break;}}_ow1._Dw1=_4n1(_ow1._Dw1,_Nc1);_nw1.stop();_ow1._Ew1=_4n1(_ow1._Ew1,_nw1._Fk1);_ow1._Fw1+=_nw1._Fk1;}_ow1._qw1=new _rm1();_ow1._rw1=new _rm1();_ow1._Fw1=0;_ow1._Ew1=0;_ow1._pw1=0;_ow1._Cw1=0;_ow1._Dw1=0;_ow1._Aw1=0;_ow1._Bw1=0;function _Gw1(){this.type=_Hw1._Iw1;this.position=new _Hl1(0.0,
0.0);this.angle=0.0;this._Jw1=new _Hl1(0.0,0.0);this._Kw1=0.0;this._Lw1=0.0;this._Mw1=0.0;this._Nw1=true;this._Ow1=true;this._Pw1=false;/// @warning You should use this flag sparingly since it increases processing time.
this._Qw1=false;this.active=true;this._Bp1=null;this._Rw1=1.0;Object.seal(this);}_Gw1.prototype={_Vl1:function(data){this.type=data['type'];this.position._Vl1(data['position']);this.angle=data['angle'];this._Jw1._Vl1(data['linearVelocity']);this._Kw1=data['angularVelocity'];this._Lw1=data['linearDamping'];
this._Mw1=data['angularDamping'];this._Nw1=data['allowSleep'];this._Ow1=data['awake'];this._Pw1=data['fixedRotation'];this._Qw1=data['bullet'];this.active=data['active'];this._Rw1=data['gravityScale'];}};function _Hw1(_Sw1,_Tw1){_Tk1(_Sw1.position._Sl1());_Tk1(_Sw1._Jw1._Sl1());_Tk1(_xl1(_Sw1.angle));_Tk1(_xl1(_Sw1._Kw1));_Tk1(_xl1(_Sw1._Mw1)&&_Sw1._Mw1>=0.0);_Tk1(_xl1(_Sw1._Lw1)&&_Sw1._Lw1>=0.0);this._Uw1=0;this._Vw1=0;if(_Sw1._Qw1){this._Vw1|=_Hw1._Ww1;}if(_Sw1._Pw1){this._Vw1|=_Hw1._Xw1;}if(_Sw1._Nw1){
this._Vw1|=_Hw1._Yw1;}if(_Sw1._Ow1){this._Vw1|=_Hw1._Zw1;}if(_Sw1.active){this._Vw1|=_Hw1.__w1;}this._0x1=_Tw1;this._Yt1=new _pm1();this._Yt1._ih._SN(_Sw1.position);this._Yt1.q.Set(_Sw1.angle);this._1x1=new _pm1();this._1x1._SN(this._Yt1);this._2x1=new _rm1();this._2x1._sm1._Il1();this._2x1._tm1._SN(this._Yt1._ih);this._2x1.c._SN(this._Yt1._ih);this._2x1._vm1=_Sw1.angle;this._2x1._G4=_Sw1.angle;this._2x1._wm1=0.0;this._3x1=null;this._4x1=null;this._5x1=null;this._6x1=null;this._7x1=_Sw1._Jw1._v3();
this._8x1=_Sw1._Kw1;this._9x1=_Sw1._Lw1;this._ax1=_Sw1._Mw1;this._bx1=_Sw1._Rw1;this._cx1=new _Hl1();this._dx1=0.0;this._ex1=0.0;this._oO=_Sw1.type;if(this._oO==_Hw1._fx1){this._gx1=1.0;this._hx1=1.0;}else {this._gx1=0.0;this._hx1=0.0;}this._ix1=0.0;this._jx1=0.0;this._kx1=_Sw1._Bp1;this._lx1=null;this._mx1=0;}_Hw1._Iw1=0;_Hw1._nx1=1;_Hw1._fx1=2;_Hw1._ox1=0x0001;_Hw1._Zw1=0x0002;_Hw1._Yw1=0x0004;_Hw1._Ww1=0x0008;_Hw1._Xw1=0x0010;_Hw1.__w1=0x0020;_Hw1._px1=0x0040;_Hw1._qx1=new _Hl1();_Hw1._rx1=new _pm1();
_Hw1.prototype={/// @param def the fixture definition.
/// @warning This function is locked during callbacks.
_sx1:function(_tx1,_631){if(typeof(_631)!=='undefined'){var _ux1=new _vx1();_ux1.shape=_tx1;_ux1._631=_631;return this._sx1(_ux1);}_Tk1(this._0x1._Rg1()==false);if(this._0x1._Rg1()==true){return null;}var _r01=new _wx1();_r01._Ka1(this,_tx1);if(this._Vw1&_Hw1.__w1){var _xx1=this._0x1._yx1._zx1;_r01._Ax1(_xx1,this._Yt1);}_r01._6x1=this._lx1;this._lx1=_r01;++this._mx1;_r01._Bx1=this;if(_r01._Cx1>0.0){
this._Dx1();}this._0x1._Vw1|=_Ex1._Fx1;return _r01;},/// @param fixture the fixture to be removed.
/// @warning This function is locked during callbacks.
_Gx1:function(_r01){_Tk1(this._0x1._Rg1()==false);if(this._0x1._Rg1()==true){return;}_Tk1(_r01._Bx1==this);_Tk1(this._mx1>0);var _Al=this._lx1;var _Lt=false;while(_Al!=null){if(_Al==_r01){this._lx1=_Al=_r01._6x1;_Lt=true;break;}_Al=_Al._6x1;}_Tk1(_Lt);var _Go1=this._4x1;while(_Go1){var c=_Go1._Hx1;_Go1=_Go1._bl;var _Ix1=c._Jx1();var _Kx1=c._Lx1();if(_r01==_Ix1||_r01==_Kx1){
this._0x1._yx1._Ug1(c);}}if(this._Vw1&_Hw1.__w1){var _xx1=this._0x1._yx1._zx1;_r01._Mx1(_xx1);}_r01._Ug1();_r01._Bx1=null;_r01._6x1=null;--this._mx1;this._Dx1();},/// @param position the world position of the body's local origin.
/// @param angle the world rotation in radians.
_Nx1:function(position,angle){_Tk1(this._0x1._Rg1()==false);if(this._0x1._Rg1()==true){return;}this._Yt1.q.Set(angle);this._Yt1._ih._SN(position);this._1x1._SN(this._Yt1);this._2x1.c._SN(_Sm1(this._Yt1,this._2x1._sm1));this._2x1._G4=angle;
this._2x1._tm1._SN(this._2x1.c);this._2x1._vm1=angle;var _xx1=this._0x1._yx1._zx1;for(var _SC=this._lx1;_SC;_SC=_SC._6x1){_SC._Ox1(_xx1,this._Yt1,this._Yt1);}},/// @return the world transform of the body's origin.
_xm1:function(){return this._Yt1;},/// @return the world position of the body's origin.
_W_:function(){return this._Yt1._ih;},/// @return the current world rotation angle in radians.
_mm1:function(){return this._2x1._G4;},_Px1:function(){return this._2x1.c;},_Qx1:function(){return this._2x1._sm1;
},/// @param v the new linear velocity of the center of mass.
_Rx1:function(_n5){if(this._oO==_Hw1._Iw1){return;}if(_Bm1(_n5,_n5)>0.0){this._G01(true);}this._7x1=_n5;},/// @return the linear velocity of the center of mass.
_Sx1:function(){return this._7x1;},/// @param omega the new angular velocity in radians/second.
_Tx1:function(w){if(this._oO==_Hw1._Iw1){return;}if(w*w>0.0){this._G01(true);}this._8x1=w;},/// @return the angular velocity in radians/second.
_Ux1:function(){return this._8x1;},
/// @param force the world force vector, usually in Newtons (N).
/// @param point the world position of the point of application.
/// @param wake also wake up the body
_121:function(_Vx1,_Cr1,_Wx1){if(this._oO!=_Hw1._fx1){return;}if(_Wx1&&(this._Vw1&_Hw1._Zw1)==0){this._G01(true);}if(this._Vw1&_Hw1._Zw1){this._cx1._Df(_Vx1);this._dx1+=_Cm1(_Hl1._Ol1(_Cr1,this._2x1.c),_Vx1);}},/// @param force the world force vector, usually in Newtons (N).
/// @param wake also wake up the body
_Xx1:function(_Vx1,
_Wx1){if(this._oO!=_Hw1._fx1){return;}if(_Wx1&&(this._Vw1&_Hw1._Zw1)==0){this._G01(true);}if(this._Vw1&_Hw1._Zw1){this._cx1._Df(_Vx1);}},/// @param torque about the z-axis (out of the screen), usually in N-m.
/// @param wake also wake up the body
_i21:function(_Yx1,_Wx1){if(this._oO!=_Hw1._fx1){return;}if(_Wx1&&(this._Vw1&_Hw1._Zw1)==0){this._G01(true);}if(this._Vw1&_Hw1._Zw1){this._dx1+=_Yx1;}},/// @param impulse the world impulse vector, usually in N-seconds or kg-m/s.
/// @param point the world position of the point of application.
/// @param wake also wake up the body
_Zx1:function(__x1,
_Cr1,_Wx1){if(this._oO!=_Hw1._fx1){return;}if(_Wx1&&(this._Vw1&_Hw1._Zw1)==0){this._G01(true);}if(this._Vw1&_Hw1._Zw1){this._7x1._Df(_Hl1.Multiply(this._hx1,__x1));this._8x1+=this._jx1*_Cm1(_Hl1._Ol1(_Cr1,this._2x1.c),__x1);}},/// @param impulse the angular impulse in units of kg*m*m/s
/// @param wake also wake up the body
_g21:function(__x1,_Wx1){if(this._oO!=_Hw1._fx1){return;}if(_Wx1&&(this._Vw1&_Hw1._Zw1)==0){this._G01(true);}if(this._Vw1&_Hw1._Zw1){this._8x1+=this._jx1*__x1;}},/// @return the mass, usually in kilograms (kg).
_0y1:function(){
return this._gx1;},/// @return the rotational inertia, usually in kg-m^2.
_1y1:function(){return this._ix1+this._gx1*_Bm1(this._2x1._sm1,this._2x1._sm1);},/// @return a struct containing the mass, inertia and center of the body.
_2y1:function(data){data._Kn1=this._gx1;data._Ln1=this._ix1+this._gx1*_Bm1(this._2x1._sm1,this._2x1._sm1);data._on1=this._2x1._sm1;},/// @param massData the mass properties.
_3y1:function(_Vn1){_Tk1(this._0x1._Rg1()==false);if(this._0x1._Rg1()==true){return;}if(this._oO!=_Hw1._fx1){
return;}this._hx1=0.0;this._ix1=0.0;this._jx1=0.0;this._gx1=_Vn1._Kn1;if(this._gx1<=0.0){this._gx1=1.0;}this._hx1=1.0/this._gx1;if(_Vn1._Ln1>0.0&&(this._Vw1&_Hw1._Xw1)==0){this._ix1=_Vn1._Ln1-this._gx1*_Bm1(_Vn1._on1,_Vn1._on1);_Tk1(this._ix1>0.0);this._jx1=1.0/this._ix1;}_Hw1._qx1._SN(this._2x1.c);this._2x1._sm1._SN(_Vn1._on1);this._2x1._tm1._SN(_Sm1(this._Yt1,this._2x1._sm1));this._2x1.c._SN(this._2x1._tm1);this._7x1._Df(_Em1(this._8x1,_Hl1._Ol1(this._2x1.c,_Hw1._qx1)));},_Dx1:function(){this._gx1=0.0;
this._hx1=0.0;this._ix1=0.0;this._jx1=0.0;this._2x1._sm1._Il1();if(this._oO==_Hw1._Iw1||this._oO==_Hw1._nx1){this._2x1._tm1._SN(this._Yt1._ih);this._2x1.c._SN(this._Yt1._ih);this._2x1._vm1=this._2x1._G4;return;}_Tk1(this._oO==_Hw1._fx1);var _sm1=new _Hl1(0,0);for(var _SC=this._lx1;_SC;_SC=_SC._6x1){if(_SC._Cx1==0.0){continue;}var _Vn1=new _Jn1();_SC._2y1(_Vn1);this._gx1+=_Vn1._Kn1;_sm1._Df(_Hl1.Multiply(_Vn1._Kn1,_Vn1._on1));this._ix1+=_Vn1._Ln1;}if(this._gx1>0.0){this._hx1=1.0/this._gx1;_sm1.Multiply(this._hx1);
}else {this._gx1=1.0;this._hx1=1.0;}if(this._ix1>0.0&&(this._Vw1&_Hw1._Xw1)==0){this._ix1-=this._gx1*_Bm1(_sm1,_sm1);_Tk1(this._ix1>0.0);this._jx1=1.0/this._ix1;}else {this._ix1=0.0;this._jx1=0.0;}_Hw1._qx1._SN(this._2x1.c);this._2x1._sm1._SN(_sm1);this._2x1._tm1._SN(_Sm1(this._Yt1,this._2x1._sm1));this._2x1.c._SN(this._2x1._tm1);this._7x1._Df(_Em1(this._8x1,_Hl1._Ol1(this._2x1.c,_Hw1._qx1)));},/// @param localPoint a point on the body measured relative the the body's origin.
/// @return the same point expressed in world coordinates.
_4y1:function(_zr1){
return _Sm1(this._Yt1,_zr1);},/// @param localVector a vector fixed in the body.
/// @return the same vector expressed in world coordinates.
_5y1:function(_6y1){return _Qm1(this._Yt1.q,_6y1);},/// @param a point in world coordinates.
/// @return the corresponding local point relative to the body's origin.
_7y1:function(_8y1){return _Um1(this._Yt1,_8y1);},/// @param a vector in world coordinates.
/// @return the corresponding local vector.
_9y1:function(_ay1){return _Rm1(this._Yt1.q,_ay1);},/// @param a point in world coordinates.
/// @return the world velocity of a point.
_by1:function(_8y1){
return _Hl1._Df(this._7x1,_Em1(this._8x1,_Hl1._Ol1(_8y1,this._2x1.c)));},/// @param a point in local coordinates.
/// @return the world velocity of a point.
_cy1:function(_zr1){return this._by1(this._4y1(_zr1));},_dy1:function(){return this._9x1;},_D01:function(_Lw1){this._9x1=_Lw1;},_ey1:function(){return this._ax1;},_E01:function(_Mw1){this._ax1=_Mw1;},_fy1:function(){return this._bx1;},_gy1:function(scale){this._bx1=scale;},_hy1:function(type){_Tk1(this._0x1._Rg1()==false);if(this._0x1._Rg1()==true){
return;}if(this._oO==type){return;}this._oO=type;this._Dx1();if(this._oO==_Hw1._Iw1){this._7x1._Il1();this._8x1=0.0;this._2x1._vm1=this._2x1._G4;this._2x1._tm1._SN(this._2x1.c);this._iy1();}this._G01(true);this._cx1._Il1();this._dx1=0.0;var _jy1=this._4x1;while(_jy1){var _ky1=_jy1;_jy1=_jy1._bl;this._0x1._yx1._Ug1(_ky1._Hx1);}this._4x1=null;var _xx1=this._0x1._yx1._zx1;for(var _SC=this._lx1;_SC;_SC=_SC._6x1){var _ly1=_SC._vp1;for(var i=0;i<_ly1;++i){_xx1._Ip1(_SC._my1[i]._Cp1);}}},_jg1:function(){return this._oO;
},_ny1:function(_oy1){if(_oy1){this._Vw1|=_Hw1._Ww1;}else {this._Vw1&=~_Hw1._Ww1;}},_py1:function(){return(this._Vw1&_Hw1._Ww1)==_Hw1._Ww1;},_qy1:function(_oy1){if(_oy1){this._Vw1|=_Hw1._Yw1;}else {this._Vw1&=~_Hw1._Yw1;this._G01(true);}},_ry1:function(){return(this._Vw1&_Hw1._Yw1)==_Hw1._Yw1;},/// @param flag set to true to wake the body, false to put it to sleep.
_G01:function(_oy1){if(_oy1){if((this._Vw1&_Hw1._Zw1)==0){this._Vw1|=_Hw1._Zw1;this._ex1=0.0;}}else {this._Vw1&=~_Hw1._Zw1;this._ex1=0.0;
this._7x1._Il1();this._8x1=0.0;this._cx1._Il1();this._dx1=0.0;}},/// @return true if the body is awake.
_sy1:function(){return(this._Vw1&_Hw1._Zw1)==_Hw1._Zw1;},_ty1:function(_oy1){_Tk1(this._0x1._Rg1()==false);if(_oy1==this._uy1()){return;}if(_oy1){this._Vw1|=_Hw1.__w1;var _xx1=this._0x1._yx1._zx1;for(var _SC=this._lx1;_SC;_SC=_SC._6x1){_SC._Ax1(_xx1,this._Yt1);}}else {this._Vw1&=~_Hw1.__w1;var _xx1=this._0x1._yx1._zx1;for(var _SC=this._lx1;_SC;_SC=_SC._6x1){_SC._Mx1(_xx1);}var _jy1=this._4x1;while(_jy1){
var _ky1=_jy1;_jy1=_jy1._bl;this._0x1._yx1._Ug1(_ky1._Hx1);}this._4x1=null;}},_uy1:function(){return(this._Vw1&_Hw1.__w1)==_Hw1.__w1;},_vy1:function(_oy1){var status=(this._Vw1&_Hw1._Xw1)==_Hw1._Xw1;if(status==_oy1){return;}if(_oy1){this._Vw1|=_Hw1._Xw1;}else {this._Vw1&=~_Hw1._Xw1;}this._8x1=0.0;this._Dx1();},_wy1:function(){return(this._Vw1&_Hw1._Xw1)==_Hw1._Xw1;},_xy1:function(){return this._lx1;},_yy1:function(){return this._3x1;},/// @warning this list changes during the time step and you may
_zy1:function(){
return this._4x1;},_Ay1:function(){return this._6x1;},_Kp1:function(){return this._kx1;},_By1:function(data){this._kx1=data;},_Cy1:function(){return this._0x1;},_iy1:function(){_Hw1._rx1.q.Set(this._2x1._vm1);_Hw1._rx1._ih._SN(_Hl1._Ol1(this._2x1._tm1,_Qm1(_Hw1._rx1.q,this._2x1._sm1)));var _xx1=this._0x1._yx1._zx1;for(var _SC=this._lx1;_SC;_SC=_SC._6x1){_SC._Ox1(_xx1,_Hw1._rx1,this._Yt1);}},_Dy1:function(){this._Yt1.q.Set(this._2x1._G4);this._Yt1._ih._SN(_Hl1._Ol1(this._2x1.c,_Qm1(this._Yt1.q,this._2x1._sm1)));
},_Ey1:function(other){if(this._oO!=_Hw1._fx1&&other._oO!=_Hw1._fx1){return false;}for(var _Fy1=this._3x1;_Fy1;_Fy1=_Fy1._bl){if(_Fy1.other==other){if(_Fy1._711._Gy1==false){return false;}}}return true;},_zm1:function(alpha){this._2x1._zm1(alpha);this._2x1.c._SN(this._2x1._tm1);this._2x1._G4=this._2x1._vm1;this._Yt1.q.Set(this._2x1._G4);this._Yt1._ih._SN(_Hl1._Ol1(this._2x1.c,_Qm1(this._Yt1.q,this._2x1._sm1)));},_Ul1:function(out){var _Qg=out||{};_Qg['fixtures']=null;_Qg['type']=this._oO;_Qg['position']=this._W_()._Ul1();
_Qg['angle']=this._mm1();_Qg['linearVelocity']=this._Sx1()._Ul1();_Qg['angularVelocity']=this._Ux1();_Qg['linearDamping']=this._dy1();_Qg['angularDamping']=this._ey1();_Qg['allowSleep']=this._ry1();_Qg['awake']=this._sy1();_Qg['fixedRotation']=this._wy1();_Qg['bullet']=this._py1();_Qg['active']=this._uy1();_Qg['gravityScale']=this._fy1();return _Qg;}};function _Hy1(){this._Iy1=0x0001;this._Jy1=0xFFFF;this._Ky1=0;}_Hy1.prototype={_v3:function(){var filter=new _Hy1();filter._Iy1=this._Iy1;filter._Jy1=this._Jy1;
filter._Ky1=this._Ky1;return filter;},_SN:function(filter){this._Iy1=filter._Iy1;this._Jy1=filter._Jy1;this._Ky1=filter._Ky1;},_Ul1:function(out){var _Qg=out||{};_Qg['categoryBits']=this._Iy1;_Qg['maskBits']=this._Jy1;_Qg['groupIndex']=this._Ky1;return _Qg;},_Vl1:function(data){this._Iy1=data['categoryBits'];this._Jy1=data['maskBits'];this._Ky1=data['groupIndex'];}};function _vx1(){this.shape=null;this._Bp1=null;this.friction=0.2;this._Ly1=0.0;this._631=0.0;this._My1=false;this.filter=new _Hy1();Object.seal(this);
}_vx1.prototype={_Vl1:function(data){this.friction=data['friction'];this._Ly1=data['restitution'];this._631=data['density'];this._My1=data['isSensor'];this.filter._Vl1(data['filter']);}};function _Ny1(){this._Tn1=new _es1();this._r01=null;this._Rn1=0;this._Cp1=0;};/// @warning you cannot reuse fixtures.
function _wx1(){this._kx1=null;this._Bx1=null;this._6x1=null;this._my1=null;this._vp1=0;this._Oy1=null;this._Cx1=0.0;this._Py1=new _Hy1();this._Qy1=false;this._Ry1=0;this._Sy1=0;}_wx1.prototype={/// @return the shape type.
_jg1:function(){
return this._Oy1._jg1();},_Ty1:function(){return this._Oy1;},_B01:function(_Uy1){if(_Uy1!=this._Qy1){this._Bx1._G01(true);this._Qy1=_Uy1;}},/// @return the true if the shape is a sensor.
_Vy1:function(){return this._Qy1;},_Wy1:function(filter){this._Py1=filter;this._Xy1();},_Yy1:function(){return this._Py1;},_Xy1:function(){if(this._Bx1==null){return;}var _Go1=this._Bx1._zy1();while(_Go1){var _Hx1=_Go1._Hx1;var _Ix1=_Hx1._Jx1();var _Kx1=_Hx1._Lx1();if(_Ix1==this||_Kx1==this){_Hx1._Zy1();}_Go1=_Go1._bl;
}var _Tw1=this._Bx1._Cy1();if(_Tw1==null){return;}var _xx1=_Tw1._yx1._zx1;for(var i=0;i<this._vp1;++i){_xx1._Ip1(this._my1[i]._Cp1);}},/// @return the parent body.
__y1:function(){return this._Bx1;},/// @return the next shape.
_Ay1:function(){return this._6x1;},_Kp1:function(){return this._kx1;},_By1:function(data){this._kx1=data;},/// @param p a point in world coordinates.
_Pn1:function(_ih){return this._Oy1._Pn1(this._Bx1._xm1(),_ih);},/// @param output the ray-cast results.
/// @param input the ray-cast input parameters.
_Qn1:function(_pI,
_nI,_Rn1){return this._Oy1._Qn1(_pI,_nI,this._Bx1._xm1(),_Rn1);},_2y1:function(_Vn1){this._Oy1._Un1(_Vn1,this._Cx1);},_u01:function(_631){_Tk1(_xl1(_631)&&_631>=0.0);this._Cx1=_631;},_s21:function(){return this._Cx1;},_r21:function(){return this._Ry1;},_x01:function(friction){this._Ry1=friction;},_t21:function(){return this._Sy1;},_w01:function(_Ly1){this._Sy1=_Ly1;},_0z1:function(_Rn1){_Tk1(0<=_Rn1&&_Rn1<this._vp1);return this._my1[_Rn1]._Tn1;},_Ka1:function(body,_tx1){this._kx1=_tx1._Bp1;this._Ry1=_tx1.friction;
this._Sy1=_tx1._Ly1;this._Bx1=body;this._6x1=null;this._Py1._SN(_tx1.filter);this._Qy1=_tx1._My1;this._Oy1=_tx1.shape._v3();var _1z1=this._Oy1._On1();this._my1=new Array(_1z1);for(var i=0;i<_1z1;++i){this._my1[i]=new _Ny1();this._my1[i]._r01=null;this._my1[i]._Cp1=_rp1._Qp1;}this._vp1=0;this._Cx1=_tx1._631;},_Ug1:function(){_Tk1(this._vp1==0);this._my1=null;this._Oy1=null;},_Ax1:function(_xx1,_qm1){_Tk1(this._vp1==0);this._vp1=this._Oy1._On1();for(var i=0;i<this._vp1;++i){var _2z1=this._my1[i];this._Oy1._Sn1(_2z1._Tn1,
_qm1,i);_2z1._Cp1=_xx1._Ap1(_2z1._Tn1,_2z1);_2z1._r01=this;_2z1._Rn1=i;}},_Mx1:function(_xx1){for(var i=0;i<this._vp1;++i){var _2z1=this._my1[i];_xx1._Ep1(_2z1._Cp1);_2z1._Cp1=_rp1._Qp1;}this._vp1=0;},_Ox1:function(_xx1,_3z1,_4z1){if(this._vp1==0){return;}for(var i=0;i<this._vp1;++i){var _2z1=this._my1[i];var _ks1=new _es1(),_ls1=new _es1();this._Oy1._Sn1(_ks1,_3z1,_2z1._Rn1);this._Oy1._Sn1(_ls1,_4z1,_2z1._Rn1);_2z1._Tn1._js1(_ks1,_ls1);var _Hp1=_Hl1._Ol1(_4z1._ih,_3z1._ih);_xx1._Gp1(_2z1._Cp1,_2z1._Tn1,
_Hp1);}},_Wn1:function(_ih,_tm,_I6,_Rn1){this._Oy1._Wn1(this._Bx1._xm1(),_ih,_tm,_I6,_Rn1);},_Ul1:function(out){var _Qg=out||{};_Qg['shape']=null;_Qg['friction']=this._Ry1;_Qg['restitution']=this._Sy1;_Qg['density']=this._Cx1;_Qg['isSensor']=this._Qy1;_Qg['filter']=this._Py1._Ul1();return _Qg;}};function _5z1(){}_5z1.prototype={_6z1:function(_711){},_7z1:function(_r01){},_8z1:function(_i31){},_9z1:function(index){}};function _az1(){}_az1.prototype={/// @warning for performance reasons this is only called when the AABBs begin to overlap.
_Ey1:function(_Ix1,
_Kx1){var _bz1=_Ix1._Yy1();var _cz1=_Kx1._Yy1();if(_bz1._Ky1==_cz1._Ky1&&_bz1._Ky1!=0){return _bz1._Ky1>0;}var _dz1=(_bz1._Jy1&_cz1._Iy1)!=0&&(_bz1._Iy1&_cz1._Jy1)!=0;return _dz1;}};function _ez1(){this._fz1=new Array(_Yk1);this._gz1=new Array(_Yk1);this._E8=0;}/// @warning You cannot create/destroy Box2D entities inside these callbacks.
function _hz1(){}_hz1.prototype={_iz1:function(_Hx1){},_jz1:function(_Hx1){},_kz1:function(_Hx1,_lz1){},_mz1:function(_Hx1,__x1){}};function _nz1(){}_nz1.prototype={/// @return false to terminate the query.
_oz1:function(_r01){
return false;},/// @return false to terminate the query.
_pz1:function(index){return false;}};function _qz1(){}_qz1.prototype={/// @param fixture the fixture hit by the ray
/// @param point the point of initial intersection
/// @param normal the normal vector at the point of intersection
/// @return -1 to filter, 0 to terminate, fraction to clip the ray for
_oz1:function(_r01,_Cr1,_Yn1,_7o1){},_pz1:function(index,_Cr1,_Yn1,_7o1){return 0;}};function _rz1(){this._OC=0;this._sz1=0;this._tz1=0;this._uz1=0;
this._vz1=0;this._wz1=false;}function _xz1(){this.c=new _Hl1();this._G4=0;}function _yz1(){this._n5=new _Hl1();this.w=0;}function _zz1(){this.step=new _rz1();this._Az1=null;this._Bz1=null;}var _Cz1=_Ak1._Mk1("step");var _Dz1=_Ak1._Mk1("collide","step");var _Ez1=_Ak1._Mk1("solve","step");var _Fz1=_Ak1._Mk1("solveTOI","step");var _Gz1=_Ak1._Mk1("broadphase","step");function _Ex1(gravity){this._yx1=new _Hz1();this._Iz1=null;this._Jz1=null;this._Kz1=null;this._3x1=null;this._Lz1=0;this._Mz1=0;this._Nz1=true;this._Oz1=true;
this._Pz1=false;this._Qz1=true;this._Rz1=true;this._Sz1=gravity;this._Vw1=_Ex1._Tz1;this._Uz1=0.0;this._Vz1=new _rz1();this._Wz1=new _Xz1();this._Yz1=new _Zz1();this._Yz1._0x1=this;}function __z1(){this._xx1=null;this._Gg1=null;}__z1.prototype={_4q1:function(_Cp1){var _2z1=this._xx1._Kp1(_Cp1);return this._Gg1._oz1(_2z1._r01);}};function _0A1(){this._xx1=null;this._Gg1=null;}_0A1.prototype={_8v1:function(_nI,_Cp1){var _Bp1=this._xx1._Kp1(_Cp1);var _2z1=_Bp1;var _r01=_2z1._r01;var index=_2z1._Rn1;var _pI=new _ds1();
var _P6=_r01._Qn1(_pI,_nI,index);if(_P6){var _7o1=_pI._7o1;var _Cr1=_Hl1._Df(_Hl1.Multiply((1.0-_7o1),_nI._qu),_Hl1.Multiply(_7o1,_nI._rn1));return this._Gg1._oz1(_r01,_Cr1,_pI._Yn1,_7o1);}return _nI._6o1;}};_Ex1._1A1=new _rm1();_Ex1._2A1=new _rm1();_Ex1._3A1=new _rm1();_Ex1.prototype={_Ug1:function(){var _F4=this._Kz1;while(_F4){var _4A1=_F4._6x1;var _SC=_F4._lx1;while(_SC){var _5A1=_SC._6x1;_SC._vp1=0;_SC._Ug1();_SC=_5A1;}_F4=_4A1;}},_6A1:function(listener){this._Iz1=listener;},_7A1:function(filter){this._yx1._8A1=filter;
},_9A1:function(listener){this._yx1._aA1=listener;},_bA1:function(_cA1){this._Jz1=_cA1;},/// @warning This function is locked during callbacks.
_V01:function(_tx1){_Tk1(this._Rg1()==false);if(this._Rg1()){return null;}var _F4=new _Hw1(_tx1,this);_F4._5x1=null;_F4._6x1=this._Kz1;if(this._Kz1){this._Kz1._5x1=_F4;}this._Kz1=_F4;++this._Lz1;return _F4;},/// @warning This automatically deletes all associated shapes and joints.
/// @warning This function is locked during callbacks.
_dA1:function(_F4){_Tk1(this._Lz1>0);
_Tk1(this._Rg1()==false);if(this._Rg1()){return;}var _eA1=_F4._3x1;while(_eA1){var _fA1=_eA1;_eA1=_eA1._bl;if(this._Iz1){this._Iz1._6z1(_fA1._711);}this._X11(_fA1._711);_F4._3x1=_eA1;}_F4._3x1=null;var _jy1=_F4._4x1;while(_jy1){var _ky1=_jy1;_jy1=_jy1._bl;this._yx1._Ug1(_ky1._Hx1);}_F4._4x1=null;var _SC=_F4._lx1;while(_SC){var _gA1=_SC;_SC=_SC._6x1;if(this._Iz1){this._Iz1._7z1(_gA1);}_gA1._Mx1(this._yx1._zx1);_gA1._Ug1();_F4._lx1=_SC;_F4._mx1-=1;}_F4._lx1=null;_F4._mx1=0;if(_F4._5x1){_F4._5x1._6x1=_F4._6x1;
}if(_F4._6x1){_F4._6x1._5x1=_F4._5x1;}if(_F4==this._Kz1){this._Kz1=_F4._6x1;}_F4._hA1=true;--this._Lz1;},/// @warning This function is locked during callbacks.
_iA1:function(_tx1){_Tk1(this._Rg1()==false);if(this._Rg1()){return null;}var _17=_jA1._Ka1(_tx1);_17._5x1=null;_17._6x1=this._3x1;if(this._3x1){this._3x1._5x1=_17;}this._3x1=_17;++this._Mz1;_17._kA1._711=_17;_17._kA1.other=_17._lA1;_17._kA1._9l=null;_17._kA1._bl=_17._mA1._3x1;if(_17._mA1._3x1)_17._mA1._3x1._9l=_17._kA1;_17._mA1._3x1=_17._kA1;
_17._nA1._711=_17;_17._nA1.other=_17._mA1;_17._nA1._9l=null;_17._nA1._bl=_17._lA1._3x1;if(_17._lA1._3x1)_17._lA1._3x1._9l=_17._nA1;_17._lA1._3x1=_17._nA1;var _oA1=_tx1._oA1;var _pA1=_tx1._pA1;if(_tx1._qA1==false){var _Go1=_pA1._zy1();while(_Go1){if(_Go1.other==_oA1){_Go1._Hx1._Zy1();}_Go1=_Go1._bl;}}return _17;},/// @warning This function is locked during callbacks.
_X11:function(_17){_Tk1(this._Rg1()==false);if(this._Rg1()){return;}var _qA1=_17._Gy1;if(_17._5x1){_17._5x1._6x1=_17._6x1;}if(_17._6x1){
_17._6x1._5x1=_17._5x1;}if(_17==this._3x1){this._3x1=_17._6x1;}var _oA1=_17._mA1;var _pA1=_17._lA1;_oA1._G01(true);_pA1._G01(true);if(_17._kA1._9l){_17._kA1._9l._bl=_17._kA1._bl;}if(_17._kA1._bl){_17._kA1._bl._9l=_17._kA1._9l;}if(_17._kA1==_oA1._3x1){_oA1._3x1=_17._kA1._bl;}_17._kA1._9l=null;_17._kA1._bl=null;if(_17._nA1._9l){_17._nA1._9l._bl=_17._nA1._bl;}if(_17._nA1._bl){_17._nA1._bl._9l=_17._nA1._9l;}if(_17._nA1==_pA1._3x1){_pA1._3x1=_17._nA1._bl;}_17._nA1._9l=null;_17._nA1._bl=null;_jA1._Ug1(_17);
_Tk1(this._Mz1>0);--this._Mz1;if(_qA1==false){var _Go1=_pA1._zy1();while(_Go1){if(_Go1.other==_oA1){_Go1._Hx1._Zy1();}_Go1=_Go1._bl;}}},/// @param timeStep the amount of time to simulate, this should not vary.
/// @param velocityIterations for the velocity constraint solver.
/// @param positionIterations for the position constraint solver.
_rA1:function(_OC,_uz1,_vz1){_Cz1.start();if(this._Vw1&_Ex1._Fx1){this._yx1._sA1();this._Vw1&=~_Ex1._Fx1;}this._Vw1|=_Ex1._tA1;this._Vz1._OC=_OC;this._Vz1._uz1=_uz1;
this._Vz1._vz1=_vz1;if(_OC>0.0){this._Vz1._sz1=1.0/_OC;}else {this._Vz1._sz1=0.0;}this._Vz1._tz1=this._Uz1*_OC;this._Vz1._wz1=this._Nz1;{_Dz1.start();this._yx1._fu1();_Dz1.stop();}if(this._Qz1&&this._Vz1._OC>0.0){_Ez1.start();this._Yz1._3m1(this._Vz1);this._3m1(this._Vz1);_Ez1.stop();}if(this._Oz1&&this._Vz1._OC>0.0){_Fz1.start();this._uA1(this._Vz1);_Fz1.stop();}if(this._Vz1._OC>0.0){this._Uz1=this._Vz1._sz1;}if(this._Vw1&_Ex1._Tz1){this._vA1();}this._Vw1&=~_Ex1._tA1;_Cz1.stop();},/// @see SetAutoClearForces
_vA1:function(){
for(var body=this._Kz1;body;body=body._Ay1()){body._cx1.x=body._cx1.y=0;body._dx1=0.0;}},_wA1:function(){if(this._Jz1==null){return;}var _bj1=this._Jz1._hn1();if(_bj1&_en1._vn1){for(var _F4=this._Kz1;_F4;_F4=_F4._Ay1()){var _qm1=_F4._xm1();for(var _SC=_F4._xy1();_SC;_SC=_SC._Ay1()){if(_F4._uy1()==false){this._xA1(_SC,_qm1,new _dn1(0.5,0.5,0.3));}else if(_F4._jg1()==_Hw1._Iw1){this._xA1(_SC,_qm1,new _dn1(0.5,0.9,0.5));}else if(_F4._jg1()==_Hw1._nx1){this._xA1(_SC,_qm1,new _dn1(0.5,0.5,0.9));}else if(_F4._sy1()==false){
this._xA1(_SC,_qm1,new _dn1(0.6,0.6,0.6));}else {this._xA1(_SC,_qm1,new _dn1(0.9,0.7,0.7));}}}this._yA1(this._Yz1);}if(_bj1&_en1._wn1){for(var _17=this._3x1;_17;_17=_17._Ay1()){this._zA1(_17);}}if(_bj1&_en1._Fn1){var color=new _dn1(0.3,0.9,0.9);for(var c=this._yx1._4x1;c;c=c._Ay1()){var _Ix1=c._Jx1();var _Kx1=c._Lx1();var _AA1=_Ix1._0z1(c._BA1())._gs1();var _CA1=_Kx1._0z1(c._DA1())._gs1();this._Jz1._qn1(_AA1,_CA1,color);}}if(_bj1&_en1._xn1){var color=new _dn1(0.9,0.3,0.9);var _EA1=new _dn1(0.3,0.3,0.9);var _FA1=this._yx1._zx1;
for(var _F4=this._Kz1;_F4;_F4=_F4._Ay1()){if(_F4._uy1()==false){continue;}for(var _SC=_F4._xy1();_SC;_SC=_SC._Ay1()){for(var i=0;i<_SC._vp1;++i){var _2z1=_SC._my1[i];var _Tn1=_FA1._Jp1(_2z1._Cp1);var _hp1=[];_hp1[0]=new _Hl1(_Tn1._8o1.x,_Tn1._8o1.y);_hp1[1]=new _Hl1(_Tn1._9o1.x,_Tn1._8o1.y);_hp1[2]=new _Hl1(_Tn1._9o1.x,_Tn1._9o1.y);_hp1[3]=new _Hl1(_Tn1._8o1.x,_Tn1._9o1.y);this._Jz1._ln1(_hp1,4,color);var _GA1=new _es1();_SC._Ty1()._Sn1(_GA1,_F4._xm1(),0);_hp1[0]=new _Hl1(_GA1._8o1.x,_GA1._8o1.y);_hp1[1]=new _Hl1(_GA1._9o1.x,
_GA1._8o1.y);_hp1[2]=new _Hl1(_GA1._9o1.x,_GA1._9o1.y);_hp1[3]=new _Hl1(_GA1._8o1.x,_GA1._9o1.y);this._Jz1._ln1(_hp1,4,_EA1);}}}}if(_bj1&_en1._yn1){for(var _F4=this._Kz1;_F4;_F4=_F4._Ay1()){var _qm1=_F4._xm1()._v3();_qm1._ih=_F4._Px1();this._Jz1._sn1(_qm1);}}},/// @param callback a user implemented callback class.
/// @param aabb the query box.
_HA1:function(_Gg1,_Tn1){var _IA1=new __z1();_IA1._xx1=this._yx1._zx1;_IA1._Gg1=_Gg1;this._yx1._zx1._Sp1(_IA1,_Tn1);this._Yz1._HA1(_Gg1,_Tn1);},/// @param callback a user implemented callback class.
/// @param point1 the ray starting point
/// @param point2 the ray ending point
_Qn1:function(_Gg1,
_JA1,_KA1){var _IA1=new _0A1();_IA1._xx1=this._yx1._zx1;_IA1._Gg1=_Gg1;var _nI=new _cs1();_nI._6o1=1.0;_nI._qu=_JA1;_nI._rn1=_KA1;this._yx1._zx1._Qn1(_IA1,_nI);this._Yz1._Qn1(_Gg1,_JA1,_KA1);},/*@returns {b2Body} the head of the world body list. */_LA1:function(){return this._Kz1;},/// @return the head of the world joint list.
_yy1:function(){return this._3x1;},/// @return the head of the world contact list.
/// @warning contacts are created and destroyed in the middle of a time step.
_zy1:function(){
return this._yx1._4x1;},_MA1:function(_oy1){if(_oy1==this._Rz1){return;}this._Rz1=_oy1;if(this._Rz1==false){for(var _F4=this._Kz1;_F4;_F4=_F4._6x1){_F4._G01(true);}}},_NA1:function(){return this._Rz1;},_OA1:function(_oy1){this._Nz1=_oy1;},_PA1:function(){return this._Nz1;},_QA1:function(_oy1){this._Oz1=_oy1;},_RA1:function(){return this._Oz1;},_SA1:function(_oy1){this._Pz1=_oy1;},_TA1:function(){return this._Pz1;},_Op1:function(){return this._yx1._zx1._Op1();},_UA1:function(){return this._Lz1;},_VA1:function(){
return this._Mz1;},_WA1:function(){return this._yx1._XA1;},_Yp1:function(){return this._yx1._zx1._Yp1();},_Zp1:function(){return this._yx1._zx1._Zp1();},_0q1:function(){return this._yx1._zx1._0q1();},_k01:function(gravity){this._Sz1=gravity;},_YA1:function(){return this._Sz1;},_Rg1:function(){return(this._Vw1&_Ex1._tA1)==_Ex1._tA1;},_ZA1:function(_oy1){if(_oy1){this._Vw1|=_Ex1._Tz1;}else {this._Vw1&=~_Ex1._Tz1;}},__A1:function(){return(this._Vw1&_Ex1._Tz1)==_Ex1._Tz1;},/// @param newOrigin the new origin with respect to the old origin
_2q1:function(_3q1){
_Tk1((this._Vw1&_Ex1._tA1)==0);if((this._Vw1&_Ex1._tA1)==_Ex1._tA1){return;}for(var _F4=this._Kz1;_F4;_F4=_F4._6x1){_F4._Yt1._ih._Ol1(_3q1);_F4._2x1._tm1._Ol1(_3q1);_F4._2x1.c._Ol1(_3q1);}for(var _17=this._3x1;_17;_17=_17._6x1){_17._2q1(_3q1);}this._yx1._zx1._2q1(_3q1);},_0B1:function(){return this._yx1;},_3m1:function(step){for(var _F4=this._Kz1;_F4;_F4=_F4._6x1){_F4._1x1._SN(_F4._Yt1);}this._Wz1._Qr1(this._Lz1,this._yx1._XA1,this._Mz1,this._yx1._aA1);for(var _F4=this._Kz1;_F4;_F4=_F4._6x1){_F4._Vw1&=~_Hw1._ox1;
}for(var c=this._yx1._4x1;c;c=c._6x1){c._Vw1&=~_1B1._ox1;}for(var _17=this._3x1;_17;_17=_17._6x1){_17._2B1=false;}var _3B1=this._Lz1;var stack=new Array(_3B1);for(var _3h=this._Kz1;_3h;_3h=_3h._6x1){if(_3h._Vw1&_Hw1._ox1){continue;}if(_3h._sy1()==false||_3h._uy1()==false){continue;}if(_3h._jg1()==_Hw1._Iw1){continue;}this._Wz1._Tf();var _4B1=0;stack[_4B1++]=_3h;_3h._Vw1|=_Hw1._ox1;while(_4B1>0){var _F4=stack[--_4B1];_Tk1(_F4._uy1()==true);this._Wz1._5B1(_F4);_F4._G01(true);if(_F4._jg1()==_Hw1._Iw1){continue;
}for(var _jy1=_F4._4x1;_jy1;_jy1=_jy1._bl){var _Hx1=_jy1._Hx1;if(_Hx1._Vw1&_1B1._ox1){continue;}if(_Hx1._6B1()==false||_Hx1._7B1()==false){continue;}var _8B1=_Hx1._9B1._Qy1;var _aB1=_Hx1._bB1._Qy1;if(_8B1||_aB1){continue;}this._Wz1._cB1(_Hx1);_Hx1._Vw1|=_1B1._ox1;var other=_jy1.other;if(other._Vw1&_Hw1._ox1){continue;}_Tk1(_4B1<_3B1);stack[_4B1++]=other;other._Vw1|=_Hw1._ox1;}for(var _eA1=_F4._3x1;_eA1;_eA1=_eA1._bl){if(_eA1._711._2B1==true){continue;}var other=_eA1.other;if(other._uy1()==false){continue;
}this._Wz1._dB1(_eA1._711);_eA1._711._2B1=true;if(other._Vw1&_Hw1._ox1){continue;}_Tk1(_4B1<_3B1);stack[_4B1++]=other;other._Vw1|=_Hw1._ox1;}}this._Wz1._3m1(step,this._Sz1,this._Rz1);for(var i=0;i<this._Wz1._Lz1;++i){var _F4=this._Wz1._eB1[i];if(_F4._jg1()==_Hw1._Iw1){_F4._Vw1&=~_Hw1._ox1;}}}{_Gz1.start();for(var _F4=this._Kz1;_F4;_F4=_F4._Ay1()){if((_F4._Vw1&_Hw1._ox1)==0){continue;}if(_F4._jg1()==_Hw1._Iw1){continue;}_F4._iy1();}this._yx1._sA1();_Gz1.stop();}},_uA1:function(step){this._Wz1._Qr1(2*_5l1,
_5l1,0,this._yx1._aA1);if(this._Qz1){for(var _F4=this._Kz1;_F4;_F4=_F4._6x1){_F4._Vw1&=~_Hw1._ox1;_F4._2x1._wm1=0.0;}for(var c=this._yx1._4x1;c;c=c._6x1){c._Vw1&=~(_1B1._px1|_1B1._ox1);c._fB1=0;c._gB1=1.0;}}for(;;){var _hB1=null;var _iB1=1.0;for(var c=this._yx1._4x1;c;c=c._6x1){if(c._6B1()==false){continue;}if(c._fB1>_4l1){continue;}var alpha=1.0;if(c._Vw1&_1B1._px1){alpha=c._gB1;}else {var _jB1=c._Jx1();var _kB1=c._Lx1();if(_jB1._Vy1()||_kB1._Vy1()){continue;}var _lB1=_jB1.__y1();var _mB1=_kB1.__y1();var _ur1=_lB1._oO;
var _vr1=_mB1._oO;_Tk1(_ur1==_Hw1._fx1||_vr1==_Hw1._fx1);var _nB1=_lB1._sy1()&&_ur1!=_Hw1._Iw1;var _oB1=_mB1._sy1()&&_vr1!=_Hw1._Iw1;if(_nB1==false&&_oB1==false){continue;}var _pB1=_lB1._py1()||_ur1!=_Hw1._fx1;var _qB1=_mB1._py1()||_vr1!=_Hw1._fx1;if(_pB1==false&&_qB1==false){continue;}var _wm1=_lB1._2x1._wm1;if(_lB1._2x1._wm1<_mB1._2x1._wm1){_wm1=_mB1._2x1._wm1;_lB1._2x1._zm1(_wm1);}else if(_mB1._2x1._wm1<_lB1._2x1._wm1){_wm1=_lB1._2x1._wm1;_mB1._2x1._zm1(_wm1);}_Tk1(_wm1<1.0);var _cq1=c._BA1();var _dq1=c._DA1();
var _nI=new _Uv1();_nI._fq1.Set(_jB1._Ty1(),_cq1);_nI._gq1.Set(_kB1._Ty1(),_dq1);_nI._Vv1._SN(_lB1._2x1);_nI._Wv1._SN(_mB1._2x1);_nI._Xv1=1.0;var _pI=new _Yv1();_ow1(_pI,_nI);var _ym1=_pI._Y6;if(_pI.state==_Yv1._0w1){alpha=_2n1(_wm1+(1.0-_wm1)*_ym1,1.0);}else {alpha=1.0;}c._gB1=alpha;c._Vw1|=_1B1._px1;}if(alpha<_iB1){_hB1=c;_iB1=alpha;}}if(_hB1==null||1.0-10.0*_Wk1<_iB1){this._Qz1=true;break;}var _jB1=_hB1._Jx1();var _kB1=_hB1._Lx1();var _lB1=_jB1.__y1();var _mB1=_kB1.__y1();_Ex1._1A1._SN(_lB1._2x1);_Ex1._2A1._SN(_mB1._2x1);
_lB1._zm1(_iB1);_mB1._zm1(_iB1);_hB1._Uf(this._yx1._aA1);_hB1._Vw1&=~_1B1._px1;++_hB1._fB1;if(_hB1._6B1()==false||_hB1._7B1()==false){_hB1._rB1(false);_lB1._2x1._SN(_Ex1._1A1);_mB1._2x1._SN(_Ex1._2A1);_lB1._Dy1();_mB1._Dy1();continue;}_lB1._G01(true);_mB1._G01(true);this._Wz1._Tf();this._Wz1._5B1(_lB1);this._Wz1._5B1(_mB1);this._Wz1._cB1(_hB1);_lB1._Vw1|=_Hw1._ox1;_mB1._Vw1|=_Hw1._ox1;_hB1._Vw1|=_1B1._ox1;var _sB1=[_lB1,_mB1];for(var i=0;i<2;++i){var body=_sB1[i];if(body._oO==_Hw1._fx1){for(var _jy1=body._4x1;
_jy1;_jy1=_jy1._bl){if(this._Wz1._Lz1==this._Wz1._tB1){break;}if(this._Wz1._XA1==this._Wz1._uB1){break;}var _Hx1=_jy1._Hx1;if(_Hx1._Vw1&_1B1._ox1){continue;}var other=_jy1.other;if(other._oO==_Hw1._fx1&&body._py1()==false&&other._py1()==false){continue;}var _8B1=_Hx1._9B1._Qy1;var _aB1=_Hx1._bB1._Qy1;if(_8B1||_aB1){continue;}_Ex1._3A1._SN(other._2x1);if((other._Vw1&_Hw1._ox1)==0){other._zm1(_iB1);}_Hx1._Uf(this._yx1._aA1);if(_Hx1._6B1()==false){other._2x1._SN(_Ex1._3A1);other._Dy1();continue;}if(_Hx1._7B1()==false){
other._2x1._SN(_Ex1._3A1);other._Dy1();continue;}_Hx1._Vw1|=_1B1._ox1;this._Wz1._cB1(_Hx1);if(other._Vw1&_Hw1._ox1){continue;}other._Vw1|=_Hw1._ox1;if(other._oO!=_Hw1._Iw1){other._G01(true);}this._Wz1._5B1(other);}}}var _vB1=new _rz1();_vB1._OC=(1.0-_iB1)*step._OC;_vB1._sz1=1.0/_vB1._OC;_vB1._tz1=1.0;_vB1._vz1=20;_vB1._uz1=step._uz1;_vB1._wz1=false;this._Wz1._uA1(_vB1,_lB1._Uw1,_mB1._Uw1);for(var i=0;i<this._Wz1._Lz1;++i){var body=this._Wz1._eB1[i];body._Vw1&=~_Hw1._ox1;if(body._oO!=_Hw1._fx1){continue;
}body._iy1();for(var _jy1=body._4x1;_jy1;_jy1=_jy1._bl){_jy1._Hx1._Vw1&=~(_1B1._px1|_1B1._ox1);}}this._yx1._sA1();if(this._Pz1){this._Qz1=false;break;}}},_zA1:function(_711){var _oA1=_711._wB1();var _pA1=_711._xB1();var _Ms1=_oA1._xm1();var _Os1=_pA1._xm1();var _L6=_Ms1._ih;var _N6=_Os1._ih;var _qu=_711._yB1();var _rn1=_711._zB1();var color=new _dn1(0.5,0.8,0.8);switch(_711._jg1()){case _jA1._AB1:this._Jz1._qn1(_qu,_rn1,color);break;case _jA1._BB1:{var _CB1=_711;var _0B=_CB1._DB1();var _1B=_CB1._EB1();this._Jz1._qn1(_0B,
_qu,color);this._Jz1._qn1(_1B,_rn1,color);this._Jz1._qn1(_0B,_1B,color);}break;case _jA1._FB1:break;case _jA1._GB1:this._Jz1._HB1(_711._IB1(),5.0,color);default :this._Jz1._qn1(_L6,_qu,color);this._Jz1._qn1(_qu,_rn1,color);this._Jz1._qn1(_N6,_rn1,color);}},_xA1:function(_r01,_qm1,color){switch(_r01._jg1()){case _Mn1._Zn1:{var _6q1=_r01._Ty1();var _on1=_Sm1(_qm1,_6q1._4o1);var _A21=_6q1._Nn1;var _ru=_Qm1(_qm1.q,new _Hl1(1.0,0.0));this._Jz1._pn1(_on1,_A21,_ru,color);}break;case _Mn1.__n1:{var _Go1=_r01._Ty1();
var _jb=_Sm1(_qm1,_Go1._fo1);var _p5=_Sm1(_qm1,_Go1._go1);this._Jz1._qn1(_jb,_p5,color);}break;case _Mn1._1o1:{var _7q1=_r01._Ty1();var _E8=_7q1._to1;var vertices=_7q1._so1;var _jb=_Sm1(_qm1,vertices[0]);for(var i=1;i<_E8;++i){var _p5=_Sm1(_qm1,vertices[i]);this._Jz1._qn1(_jb,_p5,color);_jb=_p5;}}break;case _Mn1._0o1:{var _JB1=_r01._Ty1();var vertexCount=_JB1._to1;_Tk1(vertexCount<=_Zk1);var vertices=new Array(_Zk1);for(var i=0;i<vertexCount;++i){vertices[i]=_Sm1(_qm1,_JB1._so1[i]);}this._Jz1._mn1(vertices,vertexCount,
color);}break;default :break;}},__21:function(){return this._Yz1.__21();},_431:function(_E8){this._Yz1._431(_E8);},_731:function(_631){this._Yz1._731(_631);},_131:function(){return this._Yz1._131();},_a31:function(_Rw1){this._Yz1._a31(_Rw1);},_331:function(){return this._Yz1._331();},_931:function(_831){this._Yz1._931(_831);},_231:function(){return this._Yz1._231();},_531:function(_A21){this._Yz1._531(_A21);},_031:function(){return this._Yz1._031();},_y21:function(_tx1){_Tk1(this._Rg1()==false);if(this._Rg1()){
return 0;}var _ih=this._Yz1._y21(_tx1);return _ih;},_KB1:function(index,_LB1){this._Yz1._KB1(index,_LB1);},_MB1:function(shape,_qm1,_LB1){_Tk1(this._Rg1()==false);if(this._Rg1()){return 0;}return this._Yz1._MB1(shape,_qm1,_LB1);},_NB1:function(_tx1){_Tk1(this._Rg1()==false);if(this._Rg1()){return null;}var _E4=this._Yz1._NB1(_tx1);return _E4;},_OB1:function(_PB1,_QB1){_Tk1(this._Rg1()==false);if(this._Rg1()){return;}this._Yz1._OB1(_PB1,_QB1);},_RB1:function(_i31,_LB1){_Tk1(this._Rg1()==false);if(this._Rg1()){
return;}this._Yz1._RB1(_i31,_LB1);},_SB1:function(){return this._Yz1._SB1();},_TB1:function(){return this._Yz1._TB1();},_UB1:function(){return this._Yz1._UB1();},_VB1:function(){return this._Yz1._VB1();},_WB1:function(){return this._Yz1._WB1();},_XB1:function(){return this._Yz1._XB1();},_YB1:function(buffer,_ZB1){this._Yz1._YB1(buffer,_ZB1);},__B1:function(buffer,_ZB1){this._Yz1.__B1(buffer,_ZB1);},_0C1:function(buffer,_ZB1){this._Yz1._0C1(buffer,_ZB1);},_1C1:function(buffer,_ZB1){this._Yz1._1C1(buffer,
_ZB1);},_2C1:function(buffer,_ZB1){this._Yz1._2C1(buffer,_ZB1);},_3C1:function(){return this._Yz1._4C1;},_5C1:function(){return this._Yz1._XA1;},_6C1:function(){return this._Yz1._7C1;},_8C1:function(){return this._Yz1._9C1;},_aC1:function(){return this._Yz1._aC1();},_bC1:function(){return this._Yz1._bC1();},_j31:function(){return this._Yz1._j31();},_X21:function(){return this._Yz1._X21();},_yA1:function(_cC1){var _dC1=_cC1._X21();if(_dC1){var _eC1=_cC1._031();var _fC1=_cC1._TB1();if(_cC1._gC1.data){var _hC1=_cC1._VB1();
this._Jz1._V21(_fC1,_eC1,_hC1,_dC1);}else {this._Jz1._V21(_fC1,_eC1,null,_dC1);}}}};_Ex1._Fx1=0x0001;_Ex1._tA1=0x0002;_Ex1._Tz1=0x0004;function _iC1(_ZB1){this._jC1=new Array(_ZB1);this._bu1=0;this._kC1=0;this._lC1=_ZB1;}_iC1.prototype={_qX:function(_al){if(this._kC1>=this._lC1)return;this._jC1[this._kC1++]=_al;},_sX:function(){_Tk1(this._bu1<this._kC1);this._bu1++;},_mC1:function(){return this._bu1>=this._kC1;},_nC1:function(){return this._jC1[this._bu1];}};function _oC1(_pC1){this._qC1=new Array(_pC1);
this._rC1=0;this._sC1=0;this._tC1=0;this._uC1=null;}_oC1._vC1=function(){this._on1=new _Hl1();this._ci=0;};_oC1._wC1=function(x,y,i,_E4){this._KP=x;this._LP=y;this._xC1=i;this._yC1=_E4;};_oC1.prototype={_zC1:function(_on1,_ci){var _E4=(this._qC1[this._rC1++]=new _oC1._vC1());_E4._on1._SN(_on1);_E4._ci=_ci;},_AC1:function(_A21){_Tk1(this._uC1==null);var _BC1=1/_A21;var _zV=new _Hl1(+_Vk1,+_Vk1);var _Xo1=new _Hl1(-_Vk1,-_Vk1);for(var _dl=0;_dl<this._rC1;_dl++){var _E4=this._qC1[_dl];_zV._SN(_3n1(_zV,_E4._on1));
_Xo1._SN(_5n1(_Xo1,_E4._on1));}this._sC1=1+((_BC1*(_Xo1.x-_zV.x))>>>0);this._tC1=1+((_BC1*(_Xo1.y-_zV.y))>>>0);this._uC1=new Array(this._sC1*this._tC1);for(var i=0;i<this._sC1*this._tC1;i++)this._uC1[i]=null;var _Hl=new _iC1(this._sC1*this._sC1);for(var _dl=0;_dl<this._rC1;_dl++){var _E4=this._qC1[_dl];_E4._on1._SN(_Hl1.Multiply(_BC1,_Hl1._Ol1(_E4._on1,_zV)));var x=_4n1(0,_2n1(Math.floor(_E4._on1.x),this._sC1-1));var y=_4n1(0,_2n1(Math.floor(_E4._on1.y),this._tC1-1));_Hl._qX(new _oC1._wC1(x,y,x+y*this._sC1,
_E4));}while(!_Hl._mC1()){var x=_Hl._nC1()._KP;var y=_Hl._nC1()._LP;var i=_Hl._nC1()._xC1;var _E4=_Hl._nC1()._yC1;_Hl._sX();if(!this._uC1[i]){this._uC1[i]=_E4;if(x>0){_Hl._qX(new _oC1._wC1(x-1,y,i-1,_E4));}if(y>0){_Hl._qX(new _oC1._wC1(x,y-1,i-this._sC1,_E4));}if(x<this._sC1-1){_Hl._qX(new _oC1._wC1(x+1,y,i+1,_E4));}if(y<this._tC1-1){_Hl._qX(new _oC1._wC1(x,y+1,i+this._sC1,_E4));}}}var _CC1=this._sC1+this._tC1;for(var _DC1=0;_DC1<_CC1;_DC1++){for(var y=0;y<this._tC1;y++){for(var x=0;x<this._sC1-1;x++){var i=x+y*this._sC1;
var _G4=this._uC1[i];var _F4=this._uC1[i+1];if(_G4!=_F4){_Hl._qX(new _oC1._wC1(x,y,i,_F4));_Hl._qX(new _oC1._wC1(x+1,y,i+1,_G4));}}}for(var y=0;y<this._tC1-1;y++){for(var x=0;x<this._sC1;x++){var i=x+y*this._sC1;var _G4=this._uC1[i];var _F4=this._uC1[i+this._sC1];if(_G4!=_F4){_Hl._qX(new _oC1._wC1(x,y,i,_F4));_Hl._qX(new _oC1._wC1(x,y+1,i+this._sC1,_G4));}}}var _EC1=false;while(!_Hl._mC1()){var x=_Hl._nC1()._KP;var y=_Hl._nC1()._LP;var i=_Hl._nC1()._xC1;var _dl=_Hl._nC1()._yC1;_Hl._sX();var _G4=this._uC1[i];var _F4=_dl;
if(_G4!=_F4){var ax=_G4._on1.x-x;var ay=_G4._on1.y-y;var _FC1=_F4._on1.x-x;var _GC1=_F4._on1.y-y;var _se1=ax*ax+ay*ay;var _Yh=_FC1*_FC1+_GC1*_GC1;if(_se1>_Yh){this._uC1[i]=_F4;if(x>0){_Hl._qX(new _oC1._wC1(x-1,y,i-1,_F4));}if(y>0){_Hl._qX(new _oC1._wC1(x,y-1,i-this._sC1,_F4));}if(x<this._sC1-1){_Hl._qX(new _oC1._wC1(x+1,y,i+1,_F4));}if(y<this._tC1-1){_Hl._qX(new _oC1._wC1(x,y+1,i+this._sC1,_F4));}_EC1=true;}}}if(!_EC1){break;}}},_HC1:function(_Gg1){for(var y=0;y<this._tC1-1;y++){for(var x=0;x<this._sC1-1;x++){
var i=x+y*this._sC1;var _G4=this._uC1[i];var _F4=this._uC1[i+1];var c=this._uC1[i+this._sC1];var _tm=this._uC1[i+1+this._sC1];if(_F4!=c){if(_G4!=_F4&&_G4!=c){_Gg1(_G4._ci,_F4._ci,c._ci);}if(_tm!=_F4&&_tm!=c){_Gg1(_F4._ci,_tm._ci,c._ci);}}}}}};function _IC1(_D4,_E4,_F4,_G4){if(_D4 instanceof _dn1){this._D4=(255*_D4._D4);this._E4=(255*_D4._E4);this._F4=(255*_D4._F4);this._G4=255;}else if(typeof(_D4)!=='undefined'){this._D4=_D4;this._E4=_E4;this._F4=_F4;this._G4=_G4;}else this._D4=this._E4=this._F4=this._G4=0;
}_IC1.prototype={_JC1:function(){return !this._D4&&!this._E4&&!this._F4&&!this._G4;},_KC1:function(){return new _dn1(1.0/255*this._D4,1.0/255*this._E4,1.0/255*this._F4);},Set:function(_LC1,_MC1,_NC1,_OC1){if(_LC1 instanceof _dn1){this._D4=(255*_LC1._D4);this._E4=(255*_LC1._E4);this._F4=(255*_LC1._F4);this._G4=255;}else {this._D4=_LC1;this._E4=_MC1;this._F4=_NC1;this._G4=_OC1;}},_SN:function(_PC1){this._D4=_PC1._D4;this._E4=_PC1._E4;this._F4=_PC1._F4;this._G4=_PC1._G4;},_v3:function(){return new _IC1(this._D4,
this._E4,this._F4,this._G4);}};_IC1._Rh=new _IC1();function _QC1(){this._bj1=0;this.position=new _Hl1();this._f61=new _Hl1();this.color=new _IC1();this._Bp1=null;}_QC1._RC1=0;_QC1._SC1=1<<1;_QC1._TC1=1<<2;_QC1._UC1=1<<3;_QC1._VC1=1<<4;_QC1._WC1=1<<5;_QC1._XC1=1<<6;_QC1._YC1=1<<7;_QC1._ZC1=1<<8;_QC1.__C1=1<<9;function _0D1(){this._bj1=0;this._1D1=0;this.position=new _Hl1();this.angle=0;this._Jw1=new _Hl1();this._Kw1=0;this.color=new _IC1();this._K21=1;this.shape=null;this._2D1=true;this._Bp1=null;}function _3D1(){
this._4D1=null;this._5D1=0;this._6D1=0;this._7D1=0;this._8D1=1.0;this._5x1=null;this._6x1=null;this._9D1=-1;this._gx1=0;this._aD1=0;this._bD1=new _Hl1();this._7x1=new _Hl1();this._8x1=0;this._cD1=new _pm1();this._cD1.__l1();this._dD1=true;this._eD1=false;this._fD1=false;this._kx1=null;}_3D1.prototype={_Ay1:function(){return this._6x1;},_X21:function(){return this._6D1-this._5D1;},_gD1:function(){return this._5D1;},_g31:function(){return this._7D1;},_f31:function(_bj1){this._7D1=_bj1;},_0y1:function(){this._hD1();
return this._gx1;},_1y1:function(){this._hD1();return this._aD1;},_gs1:function(){this._hD1();return this._bD1;},_Sx1:function(){this._hD1();return this._7x1;},_Ux1:function(){this._hD1();return this._8x1;},_xm1:function(){return this._cD1;},_W_:function(){return this._cD1._ih;},_mm1:function(){return this._cD1.q._mm1();},_Kp1:function(){return this._kx1;},_By1:function(data){this._kx1=data;},_hD1:function(){if(this._9D1!=this._4D1._9D1){var _K6=this._4D1._iD1();this._gx1=0;this._bD1._Il1();this._7x1._Il1();
for(var i=this._5D1;i<this._6D1;i++){this._gx1+=_K6;this._bD1._Df(_Hl1.Multiply(_K6,this._4D1._jD1.data[i]));this._7x1._Df(_Hl1.Multiply(_K6,this._4D1._kD1.data[i]));}if(this._gx1>0){this._bD1.Multiply(1/this._gx1);this._7x1.Multiply(1/this._gx1);}this._aD1=0;this._8x1=0;for(var i=this._5D1;i<this._6D1;i++){var _ih=_Hl1._Ol1(this._4D1._jD1.data[i],this._bD1);var _n5=_Hl1._Ol1(this._4D1._kD1.data[i],this._7x1);this._aD1+=_K6*_Bm1(_ih,_ih);this._8x1+=_K6*_Cm1(_ih,_n5);}if(this._aD1>0){this._8x1*=1/this._aD1;
}this._9D1=this._4D1._9D1;}}};_3D1._lD1=1<<0;_3D1._mD1=1<<1;function _nD1(){this._cq1=this._dq1=0;this._bj1=0;this._oD1=0.0;this._Yn1=new _Hl1();};function _pD1(){this.index=0;this.body=null;this._oD1=0.0;this._Yn1=new _Hl1();this._Kn1=0.0;};function _Zz1(){this._9D1=0;this._qD1=0;this._rD1=0;this._Cx1=1;this._sD1=1;this._bx1=1;this._tD1=1;this._uD1=1;this._vD1=1;this._to1=0;this._wD1=0;this._xD1=0;this._yD1=new _Zz1._zD1();this._jD1=new _Zz1._zD1();this._kD1=new _Zz1._zD1();this._AD1=null;this._BD1=null;
this._CD1=null;this._gC1=new _Zz1._zD1();this._DD1=null;this._ED1=new _Zz1._zD1();this._vp1=0;this._FD1=0;this._GD1=null;this._XA1=0;this._uB1=0;this._4C1=null;this._9C1=0;this._HD1=0;this._7C1=null;this._wp1=0;this._ID1=0;this._xp1=null;this._JD1=0;this._KD1=0;this._LD1=null;this._MD1=0;this._ND1=null;this._OD1=0.05;this._PD1=1.0;this._QD1=0.25;this._RD1=0.25;this._SD1=0.25;this._TD1=0.1;this._UD1=0.2;this._VD1=0.5;this._WD1=0.5;this._XD1=0.5;this._0x1=null;}_Zz1._zD1=function(){this.data=null;this._YD1=0;
};_Zz1.Proxy=function(){this.index=0;this._ci=0;};_Zz1.Proxy._ZD1=function(_G4,_F4){return _G4._ci<_F4._ci;};_Zz1.Proxy.__D1=function(_G4,_F4){return _G4<_F4._ci;};_Zz1.Proxy._0E1=function(_G4,_F4){return _G4._ci<_F4;};_Zz1._1E1=function(){this._cq1=this._dq1=0;this._bj1=0;this._K21=0.0;this._Xn1=0.0;};_Zz1._2E1=function(){this._cq1=this._dq1=this._3E1=0;this._bj1=0;this._K21=0.0;this._4E1=new _Hl1(),this._5E1=new _Hl1(),this._PC1=new _Hl1();this._6E1=0.0,this._7E1=0.0,this._8E1=0.0,this._qi=0.0;};_Zz1._9E1=_QC1._UC1;
_Zz1._aE1=_QC1._VC1;_Zz1._bE1=_QC1._XC1;_Zz1._cE1=12;_Zz1._dE1=12;_Zz1._eE1=8*4;_Zz1._fE1=1<<(_Zz1._dE1-1);_Zz1._gE1=_Zz1._eE1-_Zz1._dE1;_Zz1._hE1=_Zz1._eE1-_Zz1._dE1-_Zz1._cE1;_Zz1._iE1=1<<_Zz1._hE1;_Zz1._jE1=_Zz1._iE1*(1<<(_Zz1._cE1-1));_Zz1._kE1=(1<<_Zz1._cE1)-1;_Zz1._lE1=(1<<_Zz1._dE1)-1;function _mE1(x,y){return((y+_Zz1._fE1)<<_Zz1._gE1)+(_Zz1._iE1*x+_Zz1._jE1)>>>0;}function _nE1(_ci,x,y){return _ci+(y<<_Zz1._gE1)+(x<<_Zz1._hE1);}function _oE1(_ZB1,_pE1){return _pE1&&_ZB1>_pE1?_pE1:_ZB1;}function _qE1(_Hx1){
return(_Hx1._bj1&_QC1._SC1)==_QC1._SC1;}_Zz1.prototype={_rE1:function(_sE1,_tE1,_uE1){_Tk1(_uE1>_tE1);var _vE1=(_sE1)?_sE1.slice():[];_vE1.length=_uE1;return _vE1;},_wE1:function(buffer,_YD1,_tE1,_uE1,_xE1){_Tk1(_uE1>_tE1);_Tk1(!_YD1||_uE1<=_YD1);if((!_xE1||buffer)&&!_YD1){buffer=this._rE1(buffer,_tE1,_uE1);}return buffer;},_yE1:function(buffer,_tE1,_uE1,_xE1){_Tk1(_uE1>_tE1);return this._wE1(buffer.data,buffer._YD1,_tE1,_uE1,_xE1);},_zE1:function(buffer){if(!buffer){buffer=new Array(this._wD1);for(var i=0;
i<this._wD1;i++){buffer[i]=0;}}return buffer;},_y21:function(_tx1){if(this._to1>=this._wD1){var _ZB1=this._to1?2*this._to1:_ol1;_ZB1=_oE1(_ZB1,this._xD1);_ZB1=_oE1(_ZB1,this._yD1._YD1);_ZB1=_oE1(_ZB1,this._jD1._YD1);_ZB1=_oE1(_ZB1,this._kD1._YD1);_ZB1=_oE1(_ZB1,this._gC1._YD1);_ZB1=_oE1(_ZB1,this._ED1._YD1);if(this._wD1<_ZB1){this._yD1.data=this._yE1(this._yD1,this._wD1,_ZB1,false);this._jD1.data=this._yE1(this._jD1,this._wD1,_ZB1,false);this._kD1.data=this._yE1(this._kD1,this._wD1,_ZB1,false);this._AD1=this._wE1(this._AD1,
0,this._wD1,_ZB1,false);this._BD1=this._wE1(this._BD1,0,this._wD1,_ZB1,true);this._CD1=this._wE1(this._CD1,0,this._wD1,_ZB1,true);this._gC1.data=this._yE1(this._gC1,this._wD1,_ZB1,true);this._DD1=this._wE1(this._DD1,0,this._wD1,_ZB1,false);this._ED1.data=this._yE1(this._ED1,this._wD1,_ZB1,true);this._wD1=_ZB1;}}if(this._to1>=this._wD1){return _il1;}var index=this._to1++;this._yD1.data[index]=_tx1._bj1;this._jD1.data[index]=_tx1.position._v3();this._kD1.data[index]=_tx1._f61._v3();this._DD1[index]=null;
if(this._CD1){this._CD1[index]=0;}if(this._gC1.data||!_tx1.color._JC1()){this._gC1.data=this._zE1(this._gC1.data);this._gC1.data[index]=_tx1.color._v3();}if(this._ED1.data||_tx1._Bp1){this._ED1.data=this._zE1(this._ED1.data);this._ED1.data[index]=_tx1._Bp1;}if(this._vp1>=this._FD1){var _tE1=this._FD1;var _uE1=this._vp1?2*this._vp1:_ol1;this._GD1=this._rE1(this._GD1,_tE1,_uE1);this._FD1=_uE1;}this._GD1[this._vp1]=new _Zz1.Proxy();this._GD1[this._vp1++].index=index;return index;},_KB1:function(index,_LB1){
var _bj1=_QC1._SC1;if(_LB1){_bj1|=_QC1.__C1;}this._yD1.data[index]|=_bj1;},_MB1:function(shape,_qm1,_LB1){function _AE1(_cC1,shape,_qm1,_LB1){this._4D1=_cC1;this._Oy1=shape;this._Yt1=_qm1;this._BE1=_LB1;this._hA1=0;}_AE1.prototype={_oz1:function(_r01){return false;},_pz1:function(index){_Tk1(index>=0&&index<this._4D1._to1);if(this._Oy1._Pn1(this._Yt1,this._4D1._jD1.data[index])){this._4D1._KB1(index,this._BE1);this._hA1++;}return true;},_CE1:function(){return this._hA1;}};var _Gg1=new _AE1(this,shape,_qm1,
_LB1);var _Tn1=new _es1();shape._Sn1(_Tn1,_qm1,0);this._0x1._HA1(_Gg1,_Tn1);return _Gg1._CE1();},_RB1:function(_i31,_LB1){for(var i=_i31._5D1;i<_i31._6D1;i++){this._KB1(i,_LB1);}},_NB1:function(_DE1){var _La=this._EE1();var identity=new _pm1();identity.__l1();var transform=identity._v3();var _FE1=this._to1;if(_DE1.shape){var _GE1=new _QC1();_GE1._bj1=_DE1._bj1;_GE1.color=_DE1.color;_GE1._Bp1=_DE1._Bp1;var shape=_DE1.shape;transform.Set(_DE1.position,_DE1.angle);var _Tn1=new _es1();var _1z1=shape._On1();for(var _Rn1=0;
_Rn1<_1z1;_Rn1++){if(_Rn1==0){shape._Sn1(_Tn1,identity,_Rn1);}else {var _HE1=new _es1();shape._Sn1(_HE1,identity,_Rn1);_Tn1._js1(_HE1);}}for(var y=Math.floor(_Tn1._8o1.y/_La)*_La;y<_Tn1._9o1.y;y+=_La){for(var x=Math.floor(_Tn1._8o1.x/_La)*_La;x<_Tn1._9o1.x;x+=_La){var _ih=new _Hl1(x,y);if(shape._Pn1(identity,_ih)){_ih=_Sm1(transform,_ih);_GE1.position._SN(_ih);_GE1._f61._SN(_Hl1._Df(_DE1._Jw1,_Em1(_DE1._Kw1,_Hl1._Ol1(_ih,_DE1.position))));this._y21(_GE1);}}}}var lastIndex=this._to1;var _i31=new _3D1();_i31._4D1=this;
_i31._5D1=_FE1;_i31._6D1=lastIndex;_i31._7D1=_DE1._1D1;_i31._8D1=_DE1._K21;_i31._kx1=_DE1._Bp1;_i31._cD1=transform;_i31._dD1=_DE1._2D1;_i31._5x1=null;_i31._6x1=this._ND1;if(this._ND1){this._ND1._5x1=_i31;}this._ND1=_i31;++this._MD1;for(var i=_FE1;i<lastIndex;i++){this._DD1[i]=_i31;}this._IE1(true);if(_DE1._bj1&_Zz1._9E1){for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;if(_G4>_F4){var _JE1=_G4;_G4=_F4;_F4=_JE1;}if(_FE1<=_G4&&_F4<lastIndex){if(this._wp1>=this._ID1){
var _tE1=this._ID1;var _uE1=this._wp1?2*this._wp1:_ol1;this._xp1=this._rE1(this._xp1,_tE1,_uE1);this._ID1=_uE1;}var _Xp1=this._xp1[this._wp1]=new _Zz1._1E1();_Xp1._cq1=_G4;_Xp1._dq1=_F4;_Xp1._bj1=_Hx1._bj1;_Xp1._K21=_DE1._K21;_Xp1._Xn1=_Hm1(this._jD1.data[_G4],this._jD1.data[_F4]);this._wp1++;}}}if(_DE1._bj1&_Zz1._aE1){var _KE1=new _oC1(lastIndex-_FE1);for(var i=_FE1;i<lastIndex;i++){_KE1._zC1(this._jD1.data[i],i);}_KE1._AC1(_La/2);var _Gg1=function _LE1(_G4,_F4,c){var _4E1=this._jD1.data[_G4];var _5E1=this._jD1.data[_F4];
var _PC1=this._jD1.data[c];var _ME1=_Hl1._Ol1(_4E1,_5E1);var _NE1=_Hl1._Ol1(_5E1,_PC1);var _OE1=_Hl1._Ol1(_PC1,_4E1);var _PE1=_nl1*this._vD1;if(_Bm1(_ME1,_ME1)<_PE1&&_Bm1(_NE1,_NE1)<_PE1&&_Bm1(_OE1,_OE1)<_PE1){if(this._JD1>=this._KD1){var _tE1=this._KD1;var _uE1=this._JD1?2*this._JD1:_ol1;this._LD1=this._rE1(this._LD1,_tE1,_uE1);this._KD1=_uE1;}var _QE1=this._LD1[this._JD1];_QE1._cq1=_G4;_QE1._dq1=_F4;_QE1._3E1=c;_QE1._bj1=this._yD1.data[_G4]|this._yD1.data[_F4]|this._yD1.data[c];_QE1._K21=_DE1._K21;var _RE1=_Hl1.Multiply(1.0/3.0,
_Hl1._Df(_4E1,_Hl1._Df(_5E1,_PC1)));_QE1._4E1=_Hl1._Ol1(_4E1,_RE1);_QE1._5E1=_Hl1._Ol1(_5E1,_RE1);_QE1._PC1=_Hl1._Ol1(_PC1,_RE1);_QE1._6E1=-_Bm1(_OE1,_ME1);_QE1._7E1=-_Bm1(_ME1,_NE1);_QE1._8E1=-_Bm1(_NE1,_OE1);_QE1._qi=_Cm1(_4E1,_5E1)+_Cm1(_5E1,_PC1)+_Cm1(_PC1,_4E1);this._JD1++;}};_KE1._HC1(_Gg1);}if(_DE1._1D1&_QC1._lD1){this._SE1(_i31);}return _i31;},_OB1:function(_PB1,_QB1){_Tk1(_PB1!=_QB1);this._TE1(_QB1._5D1,_QB1._6D1,this._to1);_Tk1(_QB1._6D1==this._to1);this._TE1(_PB1._5D1,_PB1._6D1,_QB1._5D1);
this._Tk1(_PB1._6D1==_QB1._5D1);var _UE1=0;for(var i=_PB1._5D1;i<_QB1._6D1;i++){_UE1|=this._yD1.data[i];}this._IE1(true);if(_UE1&_Zz1._9E1){for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;if(_G4>_F4){var _JE1=_G4;_G4=_F4;_F4=_JE1;}if(_PB1._5D1<=_G4&&_G4<_PB1._6D1&&_QB1._5D1<=_F4&&_F4<_QB1._6D1){if(this._wp1>=this._ID1){var _tE1=this._ID1;var _uE1=this._wp1?2*this._wp1:_ol1;this._xp1=this._rE1(this._xp1,_tE1,_uE1);this._ID1=_uE1;}var _Xp1=this._xp1[this._wp1]=new _Zz1._1E1();
_Xp1._cq1=_G4;_Xp1._dq1=_F4;_Xp1._bj1=_Hx1._bj1;_Xp1._K21=_2n1(_PB1._8D1,_QB1._8D1);_Xp1._Xn1=_Hm1(this._jD1.data[_G4],this._jD1.data[_F4]);this._wp1++;}}}if(_UE1&_Zz1._aE1){}for(var i=_QB1._5D1;i<_QB1._6D1;i++){this._DD1[i]=_PB1;}var _1D1=_PB1._7D1|_QB1._7D1;_PB1._7D1=_1D1;_PB1._6D1=_QB1._6D1;_QB1._5D1=_QB1._6D1;this._VE1(_QB1);if(_1D1&_QC1._lD1){this._SE1(_PB1);}},_VE1:function(_i31){_Tk1(this._MD1>0);_Tk1(_i31);if(this._0x1._Iz1){this._0x1._Iz1._WE1(_i31);}for(var i=_i31._5D1;i<_i31._6D1;i++){this._DD1[i]=null;
}if(_i31._5x1){_i31._5x1._6x1=_i31._6x1;}if(_i31._6x1){_i31._6x1._5x1=_i31._5x1;}if(_i31==this._ND1){this._ND1=_i31._6x1;}--this._MD1;},_SE1:function(_i31){for(var i=_i31._5D1;i<_i31._6D1;i++){this._AD1[i]=0;}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;if(_G4>=_i31._5D1&&_G4<_i31._6D1&&_F4>=_i31._5D1&&_F4<_i31._6D1){var w=_Hx1._oD1;this._AD1[_G4]+=w;this._AD1[_F4]+=w;}}this._CD1=this._zE1(this._CD1);for(var i=_i31._5D1;i<_i31._6D1;i++){var w=this._AD1[i];
this._CD1[i]=w<0.8?0:_Vk1;}var _XE1=_i31._X21();for(var _Y6=0;_Y6<_XE1;_Y6++){var _EC1=false;for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;if(_G4>=_i31._5D1&&_G4<_i31._6D1&&_F4>=_i31._5D1&&_F4<_i31._6D1){var _D4=1-_Hx1._oD1;var _YE1=this._CD1[_G4];var _ZE1=this._CD1[_F4];var __E1=_ZE1+_D4;var _0F1=_YE1+_D4;if(_YE1>__E1){_YE1=__E1;_EC1=true;}if(_ZE1>_0F1){_ZE1=_0F1;_EC1=true;}this._CD1[_G4]=_YE1;this._CD1[_F4]=_ZE1;}}if(!_EC1){break;}}for(var i=_i31._5D1;i<_i31._6D1;
i++){var _ih=this._CD1[i];if(_ih<_Vk1){_ih*=this._tD1;}else {_ih=0;}this._CD1[i]=_ih;}},_cB1:function(_G4,_F4){var _tm=_Hl1._Ol1(this._jD1.data[_F4],this._jD1.data[_G4]);var _eD=_Bm1(_tm,_tm);if(_eD<this._vD1){if(this._XA1>=this._uB1){var _tE1=this._uB1;var _uE1=this._XA1?2*this._XA1:_ol1;this._4C1=this._rE1(this._4C1,_tE1,_uE1);this._uB1=_uE1;}var _1F1=_Gl1(_eD);var _Hx1=this._4C1[this._XA1]=new _nD1();_Hx1._cq1=_G4;_Hx1._dq1=_F4;_Hx1._bj1=this._yD1.data[_G4]|this._yD1.data[_F4];_Hx1._oD1=1-_eD*_1F1*this._uD1;
_Hx1._Yn1._SN(_Hl1.Multiply(_1F1,_tm));this._XA1++;}},_IE1:function(_2F1){var _3F1=0;var _4F1=this._vp1;for(var _5F1=_3F1;_5F1<_4F1;++_5F1){var _2z1=this._GD1[_5F1];var i=_2z1.index;var _ih=this._jD1.data[i];_2z1._ci=_mE1(this._uD1*_ih.x,this._uD1*_ih.y);}this._GD1._qk1(_3F1,_4F1,function(_G4,_F4){return _Zz1.Proxy._ZD1(_G4,_F4);});this._XA1=0;for(var _G4=_3F1,c=_3F1;_G4<_4F1;_G4++){var _6F1=_nE1(this._GD1[_G4]._ci,1,0);for(var _F4=_G4+1;_F4<_4F1;_F4++){if(_6F1<this._GD1[_F4]._ci)break;this._cB1(this._GD1[_G4].index,
this._GD1[_F4].index);}var _7F1=_nE1(this._GD1[_G4]._ci,-1,1);for(;c<_4F1;c++){if(_7F1<=this._GD1[c]._ci)break;}var _8F1=_nE1(this._GD1[_G4]._ci,1,1);for(var _F4=c;_F4<_4F1;_F4++){if(_8F1<this._GD1[_F4]._ci)break;this._cB1(this._GD1[_G4].index,this._GD1[_F4].index);}}if(_2F1){this._XA1=this._4C1._tk1(_qE1,this._XA1);}},_9F1:function(){var _Tn1=new _es1();_Tn1._8o1.x=+_Vk1;_Tn1._8o1.y=+_Vk1;_Tn1._9o1.x=-_Vk1;_Tn1._9o1.y=-_Vk1;for(var i=0;i<this._to1;i++){var _ih=this._jD1.data[i];_Tn1._8o1._SN(_3n1(_Tn1._8o1,
_ih));_Tn1._9o1._SN(_5n1(_Tn1._9o1,_ih));}_Tn1._8o1.x-=this._tD1;_Tn1._8o1.y-=this._tD1;_Tn1._9o1.x+=this._tD1;_Tn1._9o1.y+=this._tD1;this._9C1=0;function _aF1(_cC1){this._4D1=_cC1;}_aF1.prototype={_oz1:function(_r01){if(_r01._Vy1()){return true;}var shape=_r01._Ty1();var _F4=_r01.__y1();var _FA1=_F4._Px1();var _bF1=_F4._0y1();var _cF1=_F4._1y1()-_bF1*_F4._Qx1()._Pl1();var _dF1=_bF1>0?1/_bF1:0;var _eF1=_cF1>0?1/_cF1:0;var _1z1=shape._On1();for(var _Rn1=0;_Rn1<_1z1;_Rn1++){var _Tn1=_r01._0z1(_Rn1)._v3();_Tn1._8o1.x-=this._4D1._tD1;
_Tn1._8o1.y-=this._4D1._tD1;_Tn1._9o1.x+=this._4D1._tD1;_Tn1._9o1.y+=this._4D1._tD1;var _3F1=0;var _4F1=this._4D1._vp1;var _fF1=this._4D1._GD1._vk1(_3F1,_4F1,_mE1(this._4D1._uD1*_Tn1._8o1.x,this._4D1._uD1*_Tn1._8o1.y),function(_G4,_F4){return _Zz1.Proxy._0E1(_G4,_F4);});var _gF1=this._4D1._GD1._xk1(_fF1,_4F1,_mE1(this._4D1._uD1*_Tn1._9o1.x,this._4D1._uD1*_Tn1._9o1.y),function(_G4,_F4){return _Zz1.Proxy.__D1(_G4,_F4);});for(var _2z1=_fF1;_2z1!=_gF1;++_2z1){var _hF1=this._4D1._GD1[_2z1];var _G4=_hF1.index;
var _iF1=this._4D1._jD1.data[_G4];if(_Tn1._8o1.x<=_iF1.x&&_iF1.x<=_Tn1._9o1.x&&_Tn1._8o1.y<=_iF1.y&&_iF1.y<=_Tn1._9o1.y){var _tm=[0];var _I6=new _Hl1();_r01._Wn1(_iF1,_tm,_I6,_Rn1);if(_tm[0]<this._4D1._tD1){var _jF1=this._4D1._yD1.data[_G4]&_QC1._TC1?0:this._4D1._kF1();var _lF1=_Hl1._Ol1(_iF1,_FA1);var _mF1=_Cm1(_lF1,_I6);if(this._4D1._9C1>=this._4D1._HD1){var _tE1=this._4D1._HD1;var _uE1=this._4D1._9C1?2*this._4D1._9C1:_ol1;this._4D1._7C1=this._4D1._rE1(this._4D1._7C1,_tE1,_uE1);this._4D1._HD1=_uE1;}var _Hx1=this._4D1._7C1[this._4D1._9C1]=new _pD1();
_Hx1.index=_G4;_Hx1.body=_F4;_Hx1._oD1=1-_tm[0]*this._4D1._uD1;_Hx1._Yn1._SN(_I6._Ll1());_Hx1._Kn1=1/(_jF1+_dF1+_eF1*_mF1*_mF1);this._4D1._9C1++;}}}}return true;},_pz1:function(i){return false;}};var _Gg1=new _aF1(this);this._0x1._HA1(_Gg1,_Tn1);},_3m1:function(step){++this._9D1;if(this._to1==0){return;}this._qD1=0;for(var i=0;i<this._to1;i++){this._qD1|=this._yD1.data[i];}if(this._qD1&_QC1._SC1){this._nF1();}this._rD1=0;for(var _i31=this._ND1;_i31;_i31=_i31._Ay1()){this._rD1|=_i31._7D1;}var gravity=_Hl1.Multiply(step._OC*this._bx1,
this._0x1._YA1());var _oF1=this._pF1(step);for(var i=0;i<this._to1;i++){var _n5=this._kD1.data[i];_n5._Df(gravity);var _p5=_Bm1(_n5,_n5);if(_p5>_oF1){_n5.Multiply(_El1(_oF1/_p5));}}this._qF1(step);if(this._rD1&_3D1._mD1){this._rF1(step);}if(this._qD1&_QC1._TC1){this._sF1(step);}for(var i=0;i<this._to1;i++){this._jD1.data[i]._Df(_Hl1.Multiply(step._OC,this._kD1.data[i]));}this._9F1();this._IE1(false);if(this._qD1&_QC1._WC1){this._tF1(step);}if(this._qD1&_QC1._XC1){this._uF1(step);}if(this._qD1&_QC1._YC1){
this._vF1(step);}if(this._qD1&_QC1._VC1){this._wF1(step);}if(this._qD1&_QC1._UC1){this._xF1(step);}if(this._rD1&_3D1._lD1){this._yF1(step);}if(this._qD1&_QC1._ZC1){this._zF1(step);}this._AF1(step);this._BF1(step);},_qF1:function(step){var _Tn1=new _es1();_Tn1._8o1.x=+_Vk1;_Tn1._8o1.y=+_Vk1;_Tn1._9o1.x=-_Vk1;_Tn1._9o1.y=-_Vk1;for(var i=0;i<this._to1;i++){var _n5=this._kD1.data[i];var _qu=this._jD1.data[i];var _rn1=_Hl1._Df(_qu,_Hl1.Multiply(step._OC,_n5));_Tn1._8o1=_3n1(_Tn1._8o1,_3n1(_qu,_rn1));_Tn1._9o1=_5n1(_Tn1._9o1,
_5n1(_qu,_rn1));}function _CF1(_cC1,step){this._4D1=_cC1;this._DF1=step;}_CF1.prototype={_oz1:function(_r01){if(_r01._Vy1()){return true;}var shape=_r01._Ty1();var body=_r01.__y1();var _3F1=0;var _4F1=this._4D1._vp1;var _1z1=shape._On1();for(var _Rn1=0;_Rn1<_1z1;_Rn1++){var _Tn1=_r01._0z1(_Rn1)._v3();_Tn1._8o1.x-=this._4D1._tD1;_Tn1._8o1.y-=this._4D1._tD1;_Tn1._9o1.x+=this._4D1._tD1;_Tn1._9o1.y+=this._4D1._tD1;var _fF1=this._4D1._GD1._vk1(_3F1,_4F1,_mE1(this._4D1._uD1*_Tn1._8o1.x,this._4D1._uD1*_Tn1._8o1.y),
function(_G4,_F4){return _Zz1.Proxy._0E1(_G4,_F4);});var _gF1=this._4D1._GD1._xk1(_fF1,_4F1,_mE1(this._4D1._uD1*_Tn1._9o1.x,this._4D1._uD1*_Tn1._9o1.y),function(_G4,_F4){return _Zz1.Proxy.__D1(_G4,_F4);});for(var _2z1=_fF1;_2z1!=_gF1;++_2z1){var _hF1=this._4D1._GD1[_2z1];var _G4=_hF1.index;var _iF1=this._4D1._jD1.data[_G4];if(_Tn1._8o1.x<=_iF1.x&&_iF1.x<=_Tn1._9o1.x&&_Tn1._8o1.y<=_iF1.y&&_iF1.y<=_Tn1._9o1.y){var _EF1=this._4D1._kD1.data[_G4];var _pI=new _ds1();var _nI=new _cs1();_nI._qu=_Sm1(body._Yt1,_Um1(body._1x1,
_iF1));_nI._rn1=_Hl1._Df(_iF1,_Hl1.Multiply(this._DF1._OC,_EF1));_nI._6o1=1;if(_r01._Qn1(_pI,_nI,_Rn1)){var _ih=_Hl1._Df(_Hl1._Df(_Hl1.Multiply((1-_pI._7o1),_nI._qu),_Hl1.Multiply(_pI._7o1,_nI._rn1)),_Hl1.Multiply(_1l1,_pI._Yn1));var _n5=_Hl1.Multiply(this._DF1._sz1,_Hl1._Ol1(_ih,_iF1));this._4D1._kD1.data[_G4]._SN(_n5);var _SC=_Hl1.Multiply(this._4D1._iD1(),_Hl1._Ol1(_EF1,_n5));_SC=_Hl1.Multiply(_Bm1(_SC,_pI._Yn1),_pI._Yn1);body._Zx1(_SC,_ih,true);}}}}return true;},_pz1:function(i){return false;}};var _Gg1=new _CF1(this,
step);this._0x1._HA1(_Gg1,_Tn1);},_AF1:function(step){for(var i=0;i<this._to1;i++){this._AD1[i]=0;}for(var _dl=0;_dl<this._9C1;_dl++){var _Hx1=this._7C1[_dl];var _G4=_Hx1.index;var w=_Hx1._oD1;this._AD1[_G4]+=w;}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;var w=_Hx1._oD1;this._AD1[_G4]+=w;this._AD1[_F4]+=w;}if(this._qD1&_Zz1._bE1){for(var i=0;i<this._to1;i++){if(this._yD1.data[i]&_Zz1._bE1){this._AD1[i]=0;}}}var _FF1=this._OD1*this._GF1(step);for(var i=0;i<this._to1;
i++){var w=this._AD1[i];var h=_FF1*_4n1(0.0,_2n1(w,_ll1)-_kl1);this._AD1[i]=h;}var _HF1=step._OC/(this._Cx1*this._tD1);for(var _dl=0;_dl<this._9C1;_dl++){var _Hx1=this._7C1[_dl];var _G4=_Hx1.index;var _F4=_Hx1.body;var w=_Hx1._oD1;var _K6=_Hx1._Kn1;var _I6=_Hx1._Yn1;var _ih=this._jD1.data[_G4];var h=this._AD1[_G4]+_FF1*w;var _SC=_Hl1.Multiply(_HF1*w*_K6*h,_I6);this._kD1.data[_G4]._Ol1(_Hl1.Multiply(this._kF1(),_SC));_F4._Zx1(_SC,_ih,true);}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;
var _F4=_Hx1._dq1;var w=_Hx1._oD1;var _I6=_Hx1._Yn1;var h=this._AD1[_G4]+this._AD1[_F4];var _SC=_Hl1.Multiply(_HF1*w*h,_I6);this._kD1.data[_G4]._Ol1(_SC);this._kD1.data[_F4]._Df(_SC);}},_BF1:function(step){var _831=this._PD1;for(var _dl=0;_dl<this._9C1;_dl++){var _Hx1=this._7C1[_dl];var _G4=_Hx1.index;var _F4=_Hx1.body;var w=_Hx1._oD1;var _K6=_Hx1._Kn1;var _I6=_Hx1._Yn1;var _ih=this._jD1.data[_G4];var _n5=_Hl1._Ol1(_F4._by1(_ih),this._kD1.data[_G4]);var _IF1=_Bm1(_n5,_I6);if(_IF1<0){var _SC=_Hl1.Multiply(_831*w*_K6*_IF1,
_I6);this._kD1.data[_G4]._Df(_Hl1.Multiply(this._kF1(),_SC));_F4._Zx1(_SC._Ll1(),_ih,true);}}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;var w=_Hx1._oD1;var _I6=_Hx1._Yn1;var _n5=_Hl1._Ol1(this._kD1.data[_F4],this._kD1.data[_G4]);var _IF1=_Bm1(_n5,_I6);if(_IF1<0){var _SC=_Hl1.Multiply(_831*w*_IF1,_I6);this._kD1.data[_G4]._Df(_SC);this._kD1.data[_F4]._Ol1(_SC);}}},_sF1:function(step){for(var i=0;i<this._to1;i++){if(this._yD1.data[i]&_QC1._TC1){this._kD1.data[i]._Il1();
}}},_rF1:function(step){for(var _i31=this._ND1;_i31;_i31=_i31._Ay1()){if(_i31._7D1&_3D1._mD1){_i31._hD1();var rotation=new _lm1(step._OC*_i31._8x1);var transform=new _pm1(_Hl1._Df(_i31._bD1,_Hl1._Ol1(_Hl1.Multiply(step._OC,_i31._7x1),_Qm1(rotation,_i31._bD1))),rotation);_i31._cD1=_Vm1(transform,_i31._cD1);var _JF1=new _pm1();_JF1._ih.x=step._sz1*transform._ih.x;_JF1._ih.y=step._sz1*transform._ih.y;_JF1.q._qi=step._sz1*transform.q._qi;_JF1.q.c=step._sz1*(transform.q.c-1);for(var i=_i31._5D1;i<_i31._6D1;i++){
this._kD1.data[i]._SN(_Sm1(_JF1,this._jD1.data[i]));}}}},_wF1:function(step){var _KF1=step._sz1*this._QD1;for(var _dl=0;_dl<this._JD1;_dl++){var _QE1=this._LD1[_dl];if(_QE1._bj1&_QC1._VC1){var _G4=_QE1._cq1;var _F4=_QE1._dq1;var c=_QE1._3E1;var _JE1=_QE1._4E1;var _LF1=_QE1._5E1;var _MF1=_QE1._PC1;var _4E1=this._jD1.data[_G4];var _5E1=this._jD1.data[_F4];var _PC1=this._jD1.data[c];var _ih=_Hl1.Multiply(1/3,_Hl1._Df(_4E1,_Hl1._Df(_5E1,_PC1)));var _D4=new _lm1();_D4._qi=_Cm1(_JE1,_4E1)+_Cm1(_LF1,_5E1)+_Cm1(_MF1,_PC1);
_D4.c=_Bm1(_JE1,_4E1)+_Bm1(_LF1,_5E1)+_Bm1(_MF1,_PC1);var _jH=_D4._qi*_D4._qi+_D4.c*_D4.c;var _NF1=_Gl1(_jH);_D4._qi*=_NF1;_D4.c*=_NF1;var _K21=_KF1*_QE1._K21;this._kD1.data[_G4]._Df(_Hl1.Multiply(_K21,(_Hl1._Ol1(_Hl1.Multiply(_JE1,_D4),(_Hl1._Ol1(_4E1,_ih))))));this._kD1.data[_F4]._Df(_Hl1.Multiply(_K21,(_Hl1._Ol1(_Hl1.Multiply(_LF1,_D4),(_Hl1._Ol1(_5E1,_ih))))));this._kD1.data[c]._Df(_Hl1.Multiply(_K21,(_Hl1._Ol1(_Hl1.Multiply(_MF1,_D4),(_Hl1._Ol1(_PC1,_ih))))));}}},_xF1:function(step){var _OF1=step._sz1*this._RD1;
for(var _dl=0;_dl<this._wp1;_dl++){var _Xp1=this._xp1[_dl];if(_Xp1._bj1&_QC1._UC1){var _G4=_Xp1._cq1;var _F4=_Xp1._dq1;var _tm=_Hl1._Ol1(this._jD1.data[_F4],this._jD1.data[_G4]);var _PF1=_Xp1._Xn1;var _iH=_tm.Length();var _K21=_OF1*_Xp1._K21;var _SC=_Hl1.Multiply(_K21*(_PF1-_iH)/_iH,_tm);this._kD1.data[_G4]._Ol1(_SC);this._kD1.data[_F4]._Df(_SC);}}},_vF1:function(step){this._BD1=this._zE1(this._BD1);for(var i=0;i<this._to1;i++){this._AD1[i]=0;this._BD1[i]=new _Hl1();}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];
if(_Hx1._bj1&_QC1._YC1){var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;var w=_Hx1._oD1;var _I6=_Hx1._Yn1;this._AD1[_G4]+=w;this._AD1[_F4]+=w;this._BD1[_G4]._Ol1(_Hl1.Multiply((1-w)*w,_I6));this._BD1[_F4]._Df(_Hl1.Multiply((1-w)*w,_I6));}}var _QF1=this._TD1*this._RF1(step);var _SF1=this._UD1*this._RF1(step);for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];if(_Hx1._bj1&_QC1._YC1){var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;var w=_Hx1._oD1;var _I6=_Hx1._Yn1;var h=this._AD1[_G4]+this._AD1[_F4];var _qi=_Hl1._Ol1(this._BD1[_F4],
this._BD1[_G4]);var _TF1=(_QF1*(h-2)+_SF1*_Bm1(_qi,_I6))*w;var _SC=_Hl1.Multiply(_TF1,_I6);this._kD1.data[_G4]._Ol1(_SC);this._kD1.data[_F4]._Df(_SC);}}},_tF1:function(step){var _UF1=this._SD1;for(var _dl=0;_dl<this._9C1;_dl++){var _Hx1=this._7C1[_dl];var _G4=_Hx1.index;if(this._yD1.data[_G4]&_QC1._WC1){var _F4=_Hx1.body;var w=_Hx1._oD1;var _K6=_Hx1._Kn1;var _ih=this._jD1.data[_G4];var _n5=_Hl1._Ol1(_F4._by1(_ih),this._kD1.data[_G4]);var _SC=_Hl1.Multiply(_UF1*_K6*w,_n5);this._kD1.data[_G4]._Df(_Hl1.Multiply(this._kF1(),
_SC));_F4._Zx1(_SC._Ll1(),_ih,true);}}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];if(_Hx1._bj1&_QC1._WC1){var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;var w=_Hx1._oD1;var _n5=_Hl1._Ol1(this._kD1.data[_F4],this._kD1.data[_G4]);var _SC=_Hl1.Multiply(_UF1*w,_n5);this._kD1.data[_G4]._Df(_SC);this._kD1.data[_F4]._Ol1(_SC);}}},_uF1:function(step){var _VF1=this._VD1*this._RF1(step);var _WF1=1.0-_jl1;for(var _dl=0;_dl<this._9C1;_dl++){var _Hx1=this._7C1[_dl];var _G4=_Hx1.index;if(this._yD1.data[_G4]&_QC1._XC1){
var w=_Hx1._oD1;if(w>_WF1){var _F4=_Hx1.body;var _K6=_Hx1._Kn1;var _ih=this._jD1.data[_G4];var _I6=_Hx1._Yn1;var _SC=_Hl1.Multiply(_VF1*_K6*(w-_WF1),_I6);this._kD1.data[_G4]._Ol1(_Hl1.Multiply(this._kF1(),_SC));_F4._Zx1(_SC,_ih,true);}}}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];if(_Hx1._bj1&_QC1._XC1){var w=_Hx1._oD1;if(w>_WF1){var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;var _I6=_Hx1._Yn1;var _SC=_Hl1.Multiply(_VF1*(w-_WF1),_I6);this._kD1.data[_G4]._Ol1(_SC);this._kD1.data[_F4]._Df(_SC);}}}},_yF1:function(step){
this._CD1=this._zE1(this._CD1);var _XF1=step._sz1*this._WD1;for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;if(this._DD1[_G4]!=this._DD1[_F4]){var w=_Hx1._oD1;var _I6=_Hx1._Yn1;var h=this._CD1[_G4]+this._CD1[_F4];var _SC=_Hl1.Multiply(_XF1*h*w,_I6);this._kD1.data[_G4]._Ol1(_SC);this._kD1.data[_F4]._Df(_SC);}}},_zF1:function(step){this._gC1.data=this._zE1(this._gC1.data);var _YF1=Math.floor(256*this._XD1);for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];
var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;if(this._yD1.data[_G4]&this._yD1.data[_F4]&_QC1._ZC1){var _ZF1=this._gC1.data[_G4];var __F1=this._gC1.data[_F4];var _0G1=(_YF1*(__F1._D4-_ZF1._D4))>>8;var _1G1=(_YF1*(__F1._E4-_ZF1._E4))>>8;var _2G1=(_YF1*(__F1._F4-_ZF1._F4))>>8;var _3G1=(_YF1*(__F1._G4-_ZF1._G4))>>8;_ZF1._D4+=_0G1;_ZF1._E4+=_1G1;_ZF1._F4+=_2G1;_ZF1._G4+=_3G1;__F1._D4-=_0G1;__F1._E4-=_1G1;__F1._F4-=_2G1;__F1._G4-=_3G1;}}},_nF1:function(){var _Vc1=0;var _4G1=new Array(this._to1);for(var i=0;i<this._to1;i++){
var _bj1=this._yD1.data[i];if(_bj1&_QC1._SC1){var _5G1=this._0x1._Iz1;if((_bj1&_QC1.__C1)&&_5G1){_5G1._9z1(i);}_4G1[i]=_il1;}else {_4G1[i]=_Vc1;if(i!=_Vc1){this._yD1.data[_Vc1]=this._yD1.data[i];this._jD1.data[_Vc1]=this._jD1.data[i];this._kD1.data[_Vc1]=this._kD1.data[i];this._DD1[_Vc1]=this._DD1[i];if(this._CD1){this._CD1[_Vc1]=this._CD1[i];}if(this._gC1.data){this._gC1.data[_Vc1]=this._gC1.data[i];}if(this._ED1.data){this._ED1.data[_Vc1]=this._ED1.data[i];}}_Vc1++;}}var _6G1={_7G1:function(_2z1){
return _2z1.index<0;},_8G1:function(_Hx1){return _Hx1._cq1<0||_Hx1._dq1<0;},_9G1:function(_Hx1){return _Hx1.index<0;},_aG1:function(_Xp1){return _Xp1._cq1<0||_Xp1._dq1<0;},_bG1:function(_QE1){return _QE1._cq1<0||_QE1._dq1<0||_QE1._3E1<0;}};for(var _dl=0;_dl<this._vp1;_dl++){var _2z1=this._GD1[_dl];_2z1.index=_4G1[_2z1.index];}if(this._GD1){this._vp1=this._GD1._tk1(_6G1._7G1,this._vp1);}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];_Hx1._cq1=_4G1[_Hx1._cq1];_Hx1._dq1=_4G1[_Hx1._dq1];}if(this._4C1){
this._XA1=this._4C1._tk1(_6G1._8G1,this._XA1);}for(var _dl=0;_dl<this._9C1;_dl++){var _Hx1=this._7C1[_dl];_Hx1.index=_4G1[_Hx1.index];}if(this._7C1){this._9C1=this._7C1._tk1(_6G1._9G1,this._9C1);}for(var _dl=0;_dl<this._wp1;_dl++){var _Xp1=this._xp1[_dl];_Xp1._cq1=_4G1[_Xp1._cq1];_Xp1._dq1=_4G1[_Xp1._dq1];}if(this._xp1){this._wp1=this._xp1._tk1(_6G1._aG1,this._wp1);}for(var _dl=0;_dl<this._JD1;_dl++){var _QE1=this._LD1[_dl];_QE1._cq1=_4G1[_QE1._cq1];_QE1._dq1=_4G1[_QE1._dq1];_QE1._3E1=_4G1[_QE1._3E1];
}if(this._LD1){this._JD1=this._LD1._tk1(_6G1._bG1,this._JD1);}for(var _i31=this._ND1;_i31;_i31=_i31._Ay1()){var _FE1=_Vc1;var lastIndex=0;var _cG1=false;for(var i=_i31._5D1;i<_i31._6D1;i++){var _17=_4G1[i];if(_17>=0){_FE1=_2n1(_FE1,_17);lastIndex=_4n1(lastIndex,_17+1);}else {_cG1=true;}}if(_FE1<lastIndex){_i31._5D1=_FE1;_i31._6D1=lastIndex;if(_cG1){if(_i31._7D1&_3D1._mD1){_i31._fD1=true;}}}else {_i31._5D1=0;_i31._6D1=0;if(_i31._dD1){_i31._eD1=true;}}}this._to1=_Vc1;for(var _i31=this._ND1;_i31;){var _bl=_i31._Ay1();
if(_i31._eD1){this._VE1(_i31);}_i31=_bl;}},_TE1:function(start,_1j,end){if(start==_1j||_1j==end){return;}function _4G1(i){if(i<start){return i;}else if(i<_1j){return i+end-_1j;}else if(i<end){return i+start-_1j;}else {return i;}}this._yD1.data.rotate(start,_1j,end);this._jD1.data.rotate(start,_1j,end);this._kD1.data.rotate(start,_1j,end);this._DD1.rotate(start,_1j,end);if(this._CD1){this._CD1.rotate(start,_1j,end);}if(this._gC1.data){this._gC1.data.rotate(start,_1j,end);}if(this._ED1.data){this._ED1.data.rotate(start,
_1j,end);}for(var _dl=0;_dl<this._vp1;_dl++){var _2z1=this._GD1[_dl];_2z1.index=_4G1(_2z1.index);}for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];_Hx1._cq1=_4G1(_Hx1._cq1);_Hx1._dq1=_4G1(_Hx1._dq1);}for(var _dl=0;_dl<this._9C1;_dl++){var _Hx1=this._7C1[_dl];_Hx1.index=_4G1(_Hx1.index);}for(var _dl=0;_dl<this._wp1;_dl++){var _Xp1=this._xp1[_dl];_Xp1._cq1=_4G1(_Xp1._cq1);_Xp1._dq1=_4G1(_Xp1._dq1);}for(var _dl=0;_dl<this._JD1;_dl++){var _QE1=this._LD1[_dl];_QE1._cq1=_4G1(_QE1._cq1);_QE1._dq1=_4G1(_QE1._dq1);
_QE1._3E1=_4G1(_QE1._3E1);}for(var _i31=this._ND1;_i31;_i31=_i31._Ay1()){_i31._5D1=_4G1(_i31._5D1);_i31._6D1=_4G1(_i31._6D1-1)+1;}},_531:function(_A21){this._tD1=2*_A21;this._vD1=this._tD1*this._tD1;this._uD1=1/this._tD1;},_731:function(_631){this._Cx1=_631;this._sD1=1/this._Cx1;},_131:function(){return this._Cx1;},_a31:function(_Rw1){this._bx1=_Rw1;},_331:function(){return this._bx1;},_931:function(_831){this._PD1=_831;},_231:function(){return this._PD1;},_031:function(){return this._tD1/2;},_RF1:function(step){
return this._tD1*step._sz1;},_pF1:function(step){var _f61=this._RF1(step);return _f61*_f61;},_GF1:function(step){return this._Cx1*this._pF1(step);},_EE1:function(){return _jl1*this._tD1;},_iD1:function(){var _La=this._EE1();return this._Cx1*_La*_La;},_kF1:function(){return 1.777777*this._sD1*this._uD1*this._uD1;},_SB1:function(){return this._yD1.data;},_TB1:function(){return this._jD1.data;},_UB1:function(){return this._kD1.data;},_VB1:function(){this._gC1.data=this._zE1(this._gC1.data);return this._gC1.data;
},_WB1:function(){this._ED1.data=this._zE1(this._ED1.data);return this._ED1.data;},__21:function(){return this._xD1;},_431:function(_E8){_Tk1(this._to1<=_E8);this._xD1=_E8;},_XB1:function(){return this._DD1;},_dG1:function(buffer,_eG1,_uE1){_Tk1((_eG1&&_uE1)||(!_eG1&&!_uE1));buffer.data=_eG1;buffer._YD1=_uE1;},_YB1:function(buffer,_ZB1){this._dG1(this._yD1,buffer,_ZB1);},__B1:function(buffer,_ZB1){this._dG1(this._jD1,buffer,_ZB1);},_0C1:function(buffer,_ZB1){this._dG1(this._kD1,buffer,_ZB1);},_1C1:function(buffer,
_ZB1){this._dG1(this._gC1,buffer,_ZB1);},_2C1:function(buffer,_ZB1){this._dG1(this._ED1,buffer,_ZB1);},_HA1:function(_Gg1,_Tn1){if(this._vp1==0){return;}var _3F1=0;var _4F1=this._vp1;var _fF1=this._GD1._vk1(_3F1,_4F1,_mE1(this._uD1*_Tn1._8o1.x,this._uD1*_Tn1._8o1.y),function(_G4,_F4){return _Zz1.Proxy._0E1(_G4,_F4);});var _gF1=this._GD1._xk1(_fF1,_4F1,_mE1(this._uD1*_Tn1._9o1.x,this._uD1*_Tn1._9o1.y),function(_G4,_F4){return _Zz1.Proxy.__D1(_G4,_F4);});for(var _2z1=_fF1;_2z1<_gF1;++_2z1){var _hF1=this._GD1[_2z1];
var i=_hF1.index;var _ih=this._jD1.data[i];if(_Tn1._8o1.x<_ih.x&&_ih.x<_Tn1._9o1.x&&_Tn1._8o1.y<_ih.y&&_ih.y<_Tn1._9o1.y){if(!_Gg1._pz1(i)){break;}}}},_Qn1:function(_Gg1,_JA1,_KA1){if(this._vp1==0){return;}var _3F1=0;var _4F1=this._vp1;var _fF1=this._GD1._vk1(_3F1,_4F1,_mE1(this._uD1*_2n1(_JA1.x,_KA1.x)-1,this._uD1*_2n1(_JA1.y,_KA1.y)-1),function(_G4,_F4){return _Zz1.Proxy._0E1(_G4,_F4);});var _gF1=this._GD1._xk1(_3F1,_4F1,_mE1(this._uD1*_4n1(_JA1.x,_KA1.x)+1,this._uD1*_4n1(_JA1.y,_KA1.y)+1),function(_G4,
_F4){return _Zz1.Proxy.__D1(_G4,_F4);});var _7o1=1;var _n5=_Hl1._Ol1(_KA1,_JA1);var _p5=_Bm1(_n5,_n5);for(var _2z1=_fF1;_2z1<_gF1;++_2z1){var _hF1=this._GD1[_2z1];var i=_hF1.index;var _ih=_Hl1._Ol1(_JA1,this._jD1.data[i]);var _fG1=_Bm1(_ih,_n5);var _rn1=_Bm1(_ih,_ih);var _gG1=_fG1*_fG1-_p5*(_rn1-this._vD1);if(_gG1>=0){var _hG1=_El1(_gG1);var _Y6=(-_fG1-_hG1)/_p5;if(_Y6>_7o1){continue;}if(_Y6<0){_Y6=(-_fG1+_hG1)/_p5;if(_Y6<0||_Y6>_7o1){continue;}}var _I6=_Hl1._Df(_ih,_Hl1._Ol1(_Y6,_n5));_I6._Ql1();var _SC=_Gg1._pz1(i,
_Hl1._Df(_JA1,_Hl1.Multiply(_Y6,_n5)),_I6,_Y6);_7o1=_2n1(_7o1,_SC);if(_7o1<=0){break;}}}},_aC1:function(){var _iG1=0;for(var _dl=0;_dl<this._XA1;_dl++){var _Hx1=this._4C1[_dl];var _G4=_Hx1._cq1;var _F4=_Hx1._dq1;var _I6=_Hx1._Yn1;var _n5=_Hl1._Ol1(this._kD1.data[_F4],this._kD1.data[_G4]);var _IF1=_Bm1(_n5,_I6);if(_IF1<0){_iG1+=_IF1*_IF1;}}return 0.5*this._iD1()*_iG1;},_bC1:function(){return this._ND1;},_j31:function(){return this._MD1;},_X21:function(){return this._to1;}};function _jG1(_kG1,_lG1){return _El1(_kG1*_lG1);
}function _mG1(_nG1,_oG1){return _nG1>_oG1?_nG1:_oG1;}function _pG1(){this._ww1=null;this._qG1=false;};function _rG1(){this.other=null;this._Hx1=null;this._9l=null;this._bl=null;};function _1B1(){this._sG1=new _rG1();this._tG1=new _rG1();this._uG1=new _Dr1();}_1B1._vG1=new _Dr1();_1B1.prototype={_Ka1:function(_jB1,_cq1,_kB1,_dq1){this._gB1=0;this._Vw1=_1B1._wG1;this._9B1=_jB1||null;this._bB1=_kB1||null;this._xG1=_cq1||0;this._yG1=_dq1||0;this._uG1._Fr1=0;this._5x1=null;this._6x1=null;this._sG1._Hx1=null;
this._sG1._9l=null;this._sG1._bl=null;this._sG1.other=null;this._tG1._Hx1=null;this._tG1._9l=null;this._tG1._bl=null;this._tG1.other=null;this._fB1=0;if(_jB1){this._Ry1=_jG1(this._9B1._Ry1,this._bB1._Ry1);this._Sy1=_mG1(this._9B1._Sy1,this._bB1._Sy1);}else {this._Ry1=0;this._Sy1=0;}this._zG1=0.0;},_AG1:function(){return this._uG1;},_BG1:function(_CG1){var _oA1=this._9B1.__y1();var _pA1=this._bB1.__y1();var _Lu1=this._9B1._Ty1();var _Mu1=this._bB1._Ty1();_CG1._Qr1(this._uG1,_oA1._xm1(),_Lu1._Nn1,_pA1._xm1(),
_Mu1._Nn1);},_7B1:function(){return(this._Vw1&_1B1._DG1)==_1B1._DG1;},_rB1:function(_oy1){if(_oy1){this._Vw1|=_1B1._wG1;}else {this._Vw1&=~_1B1._wG1;}},_6B1:function(){return(this._Vw1&_1B1._wG1)==_1B1._wG1;},_Ay1:function(){return this._6x1;},_Jx1:function(){return this._9B1;},_BA1:function(){return this._xG1;},_Lx1:function(){return this._bB1;},_DA1:function(){return this._yG1;},_x01:function(friction){this._Ry1=friction;},_r21:function(){return this._Ry1;},_EG1:function(){this._Ry1=_jG1(this._9B1._Ry1,
this._bB1._Ry1);},_w01:function(_Ly1){this._Sy1=_Ly1;},_t21:function(){return this._Sy1;},_FG1:function(){this._Sy1=_mG1(this._9B1._Sy1,this._bB1._Sy1);},_GG1:function(speed){this._zG1=speed;},_HG1:function(){return this._zG1;},_Er:function(_Gr1,_Rr1,_Tr1){},_Zy1:function(){this._Vw1|=_1B1._IG1;},_JG1:null,_Uf:function(listener){_1B1._vG1._SN(this._uG1);this._Vw1|=_1B1._wG1;var _KG1=false;var _LG1=(this._Vw1&_1B1._DG1)==_1B1._DG1;var _8B1=this._9B1._Vy1();var _aB1=this._bB1._Vy1();var _Uy1=_8B1||_aB1;var _oA1=this._9B1.__y1();
var _pA1=this._bB1.__y1();var _Rr1=_oA1._xm1();var _Tr1=_pA1._xm1();if(_Uy1){var _Lu1=this._9B1._Ty1();var _Mu1=this._bB1._Ty1();_KG1=_Ku1(_Lu1,this._xG1,_Mu1,this._yG1,_Rr1,_Tr1);this._uG1._Fr1=0;}else {this._Er(this._uG1,_Rr1,_Tr1);_KG1=this._uG1._Fr1>0;for(var i=0;i<this._uG1._Fr1;++i){var _MG1=this._uG1.points[i];_MG1._Ar1=0.0;_MG1._Br1=0.0;var _NG1=_MG1.id;for(var _17=0;_17<_1B1._vG1._Fr1;++_17){var _OG1=_1B1._vG1.points[_17];if(_OG1.id._26()==_NG1._26()){_MG1._Ar1=_OG1._Ar1;_MG1._Br1=_OG1._Br1;break;
}}}if(_KG1!=_LG1){_oA1._G01(true);_pA1._G01(true);}}if(_KG1){this._Vw1|=_1B1._DG1;}else {this._Vw1&=~_1B1._DG1;}if(_LG1==false&&_KG1==true&&listener){listener._iz1(this);}if(_LG1==true&&_KG1==false&&listener){listener._jz1(this);}if(_Uy1==false&&_KG1&&listener){listener._kz1(this,_1B1._vG1);}}};_1B1._ox1=0x0001;_1B1._DG1=0x0002;_1B1._wG1=0x0004;_1B1._IG1=0x0008;_1B1._PG1=0x0010;_1B1._px1=0x0020;function _QG1(){this.parent.call(this);}_QG1.prototype={_Er:function(_Gr1,_Rr1,_Tr1){_ts1(_Gr1,this._9B1._Ty1(),
_Rr1,this._bB1._Ty1(),_Tr1);},_Ka1:function(_Ix1,_RG1,_Kx1,_SG1){this.parent.prototype._Ka1.call(this,_Ix1,0,_Kx1,0);_Tk1(this._9B1._jg1()==_Mn1._Zn1);_Tk1(this._bB1._jg1()==_Mn1._Zn1);}};_QG1._ok1(_1B1);var _TG1=new _do1();function _UG1(){this.parent.call(this);}_UG1.prototype={_Er:function(_Gr1,_Rr1,_Tr1){var _7q1=this._9B1._Ty1();_7q1._Fo1(_TG1,this._xG1);_At1(_Gr1,_TG1,_Rr1,this._bB1._Ty1(),_Tr1);},_Ka1:function(_Ix1,_cq1,_Kx1,_dq1){this.parent.prototype._Ka1.call(this,_Ix1,_cq1,_Kx1,_dq1);_Tk1(this._9B1._jg1()==_Mn1._1o1);
_Tk1(this._bB1._jg1()==_Mn1._Zn1);}};_UG1._ok1(_1B1);function _VG1(){this.parent.call(this);}_VG1.prototype={_Er:function(_Gr1,_Rr1,_Tr1){var _7q1=this._9B1._Ty1();_7q1._Fo1(_TG1,this._xG1);_Bu1(_Gr1,_TG1,_Rr1,this._bB1._Ty1(),_Tr1);},_Ka1:function(_Ix1,_cq1,_Kx1,_dq1){this.parent.prototype._Ka1.call(this,_Ix1,_cq1,_Kx1,_dq1);_Tk1(this._9B1._jg1()==_Mn1._1o1);_Tk1(this._bB1._jg1()==_Mn1._0o1);}};_VG1._Ka1=function(_Ix1,_cq1,_Kx1,_dq1){return new _VG1(_Ix1,_cq1,_Kx1,_dq1);};_VG1._ok1(_1B1);function _WG1(){
this.parent.call(this);}_WG1.prototype={_Er:function(_Gr1,_Rr1,_Tr1){_At1(_Gr1,this._9B1._Ty1(),_Rr1,this._bB1._Ty1(),_Tr1);},_Ka1:function(_Ix1,_cq1,_Kx1,_dq1){this.parent.prototype._Ka1.call(this,_Ix1,0,_Kx1,0);_Tk1(this._9B1._jg1()==_Mn1.__n1);_Tk1(this._bB1._jg1()==_Mn1._Zn1);}};_WG1._Ka1=function(_Ix1,_cq1,_Kx1,_dq1){return new _WG1(_Ix1,_Kx1);};_WG1._ok1(_1B1);function _XG1(){this.parent.call(this);}_XG1.prototype={_Er:function(_Gr1,_Rr1,_Tr1){_Bu1(_Gr1,this._9B1._Ty1(),_Rr1,this._bB1._Ty1(),
_Tr1);},_Ka1:function(_Ix1,_cq1,_Kx1,_dq1){this.parent.prototype._Ka1.call(this,_Ix1,0,_Kx1,0);_Tk1(this._9B1._jg1()==_Mn1.__n1);_Tk1(this._bB1._jg1()==_Mn1._0o1);}};_XG1._Ka1=function(_Ix1,_cq1,_Kx1,_dq1){return new _XG1(_Ix1,_Kx1);};_XG1._ok1(_1B1);function _YG1(){this.parent.call(this);}_YG1.prototype={_Er:function(_Gr1,_Rr1,_Tr1){_xs1(_Gr1,this._9B1._Ty1(),_Rr1,this._bB1._Ty1(),_Tr1);},_Ka1:function(_Ix1,_cq1,_Kx1,_dq1){this.parent.prototype._Ka1.call(this,_Ix1,0,_Kx1,0);_Tk1(this._9B1._jg1()==_Mn1._0o1);
_Tk1(this._bB1._jg1()==_Mn1._Zn1);}};_YG1._Ka1=function(_Ix1,_cq1,_Kx1,_dq1){return new _YG1(_Ix1,_Kx1);};_YG1._ok1(_1B1);function _ZG1(){this.parent.call(this);}_ZG1.prototype={_Er:function(_Gr1,_Rr1,_Tr1){_5t1(_Gr1,this._9B1._Ty1(),_Rr1,this._bB1._Ty1(),_Tr1);},_Ka1:function(_Ix1,_cq1,_Kx1,_dq1){this.parent.prototype._Ka1.call(this,_Ix1,0,_Kx1,0);_Tk1(this._9B1._jg1()==_Mn1._0o1);_Tk1(this._bB1._jg1()==_Mn1._0o1);}};_ZG1._Ka1=function(_Ix1,_cq1,_Kx1,_dq1){return new _ZG1(_Ix1,_Kx1);};_ZG1._ok1(_1B1);
_1B1.__G1=function(_ww1,_0H1,_1H1){_Tk1(0<=_0H1&&_0H1<_Mn1._2o1);_Tk1(0<=_1H1&&_1H1<_Mn1._2o1);if(!_1B1._2H1[_0H1])_1B1._2H1[_0H1]=[];_1B1._2H1[_0H1][_1H1]=new _pG1();_1B1._2H1[_0H1][_1H1]._ww1=_ww1;_1B1._2H1[_0H1][_1H1]._qG1=true;if(_0H1!=_1H1){if(!_1B1._2H1[_1H1])_1B1._2H1[_1H1]=[];_1B1._2H1[_1H1][_0H1]=new _pG1();_1B1._2H1[_1H1][_0H1]._ww1=_ww1;_1B1._2H1[_1H1][_0H1]._qG1=false;}_ww1._3H1=[];_ww1._4H1=2;};_1B1._5H1=function(){_1B1.__G1(_QG1,_Mn1._Zn1,_Mn1._Zn1);_1B1.__G1(_YG1,_Mn1._0o1,_Mn1._Zn1);
_1B1.__G1(_ZG1,_Mn1._0o1,_Mn1._0o1);_1B1.__G1(_WG1,_Mn1.__n1,_Mn1._Zn1);_1B1.__G1(_XG1,_Mn1.__n1,_Mn1._0o1);_1B1.__G1(_UG1,_Mn1._1o1,_Mn1._Zn1);_1B1.__G1(_VG1,_Mn1._1o1,_Mn1._0o1);};_1B1._6H1=function(_ww1){var _Hx1;if(_Hx1=_ww1._3H1.pop())return _Hx1;for(var i=0;i<_ww1._4H1-1;++i)_ww1._3H1.push(new _ww1());{_ww1._4H1+=32;}return new _ww1();};_1B1._Ka1=function(_Ix1,_cq1,_Kx1,_dq1){if(_1B1._7H1==false){_1B1._5H1();_1B1._7H1=true;}var _0H1=_Ix1._jg1();var _1H1=_Kx1._jg1();_Tk1(0<=_0H1&&_0H1<_Mn1._2o1);_Tk1(0<=_1H1&&_1H1<_Mn1._2o1);
var _ww1=_1B1._2H1[_0H1]?_1B1._2H1[_0H1][_1H1]?_1B1._2H1[_0H1][_1H1]._ww1:null:null;if(_ww1){var _Hx1=_1B1._6H1(_ww1);if(_1B1._2H1[_0H1][_1H1]._qG1)_Hx1._Ka1(_Ix1,_cq1,_Kx1,_dq1);else _Hx1._Ka1(_Kx1,_dq1,_Ix1,_cq1);return _Hx1;}return null;};_1B1._Ug1=function(_Hx1){_Tk1(_1B1._7H1==true);var _Ix1=_Hx1._9B1;var _Kx1=_Hx1._bB1;if(_Hx1._uG1._Fr1>0&&_Ix1._Vy1()==false&&_Kx1._Vy1()==false){_Ix1.__y1()._G01(true);_Kx1.__y1()._G01(true);}var _ur1=_Ix1._jg1();var _vr1=_Kx1._jg1();_Tk1(0<=_ur1&&_vr1<_Mn1._2o1);_Tk1(0<=_ur1&&_vr1<_Mn1._2o1);
_1B1._2H1[_ur1][_vr1]._ww1._3H1.push(_Hx1);};_1B1._2H1=[];_1B1._7H1=false;var _8H1=new _az1();var _9H1=new _hz1();function _Hz1(){this._zx1=new _rp1();this._4x1=null;this._XA1=0;this._8A1=_8H1;this._aA1=_9H1;}_Hz1.prototype={_Wp1:function(_aH1,_bH1){var _fq1=_aH1;var _gq1=_bH1;var _Ix1=_fq1._r01;var _Kx1=_gq1._r01;var _cq1=_fq1._Rn1;var _dq1=_gq1._Rn1;var _oA1=_Ix1.__y1();var _pA1=_Kx1.__y1();if(_oA1==_pA1){return;}var _Go1=_pA1._zy1();while(_Go1){if(_Go1.other==_oA1){var _jB1=_Go1._Hx1._Jx1();var _kB1=_Go1._Hx1._Lx1();
var _Iv1=_Go1._Hx1._BA1();var _Jv1=_Go1._Hx1._DA1();if(_jB1==_Ix1&&_kB1==_Kx1&&_Iv1==_cq1&&_Jv1==_dq1){return;}if(_jB1==_Kx1&&_kB1==_Ix1&&_Iv1==_dq1&&_Jv1==_cq1){return;}}_Go1=_Go1._bl;}if(_pA1._Ey1(_oA1)==false){return;}if(this._8A1&&this._8A1._Ey1(_Ix1,_Kx1)==false){return;}var c=_1B1._Ka1(_Ix1,_cq1,_Kx1,_dq1);if(c==null){return;}_Ix1=c._Jx1();_Kx1=c._Lx1();_cq1=c._BA1();_dq1=c._DA1();_oA1=_Ix1.__y1();_pA1=_Kx1.__y1();c._5x1=null;c._6x1=this._4x1;if(this._4x1!=null){this._4x1._5x1=c;}this._4x1=c;
c._sG1._Hx1=c;c._sG1.other=_pA1;c._sG1._9l=null;c._sG1._bl=_oA1._4x1;if(_oA1._4x1!=null){_oA1._4x1._9l=c._sG1;}_oA1._4x1=c._sG1;c._tG1._Hx1=c;c._tG1.other=_oA1;c._tG1._9l=null;c._tG1._bl=_pA1._4x1;if(_pA1._4x1!=null){_pA1._4x1._9l=c._tG1;}_pA1._4x1=c._tG1;if(_Ix1._Vy1()==false&&_Kx1._Vy1()==false){_oA1._G01(true);_pA1._G01(true);}++this._XA1;},_sA1:function(){this._zx1._Pp1(this);},_Ug1:function(c){var _Ix1=c._Jx1();var _Kx1=c._Lx1();var _oA1=_Ix1.__y1();var _pA1=_Kx1.__y1();if(this._aA1&&c._7B1()){
this._aA1._jz1(c);}if(c._5x1){c._5x1._6x1=c._6x1;}if(c._6x1){c._6x1._5x1=c._5x1;}if(c==this._4x1){this._4x1=c._6x1;}if(c._sG1._9l){c._sG1._9l._bl=c._sG1._bl;}if(c._sG1._bl){c._sG1._bl._9l=c._sG1._9l;}if(c._sG1==_oA1._4x1){_oA1._4x1=c._sG1._bl;}if(c._tG1._9l){c._tG1._9l._bl=c._tG1._bl;}if(c._tG1._bl){c._tG1._bl._9l=c._tG1._9l;}if(c._tG1==_pA1._4x1){_pA1._4x1=c._tG1._bl;}_1B1._Ug1(c);--this._XA1;},_fu1:function(){var c=this._4x1;while(c){var _Ix1=c._Jx1();var _Kx1=c._Lx1();var _cq1=c._BA1();var _dq1=c._DA1();
var _oA1=_Ix1.__y1();var _pA1=_Kx1.__y1();if(c._Vw1&_1B1._IG1){if(_pA1._Ey1(_oA1)==false){var _cH1=c;c=_cH1._Ay1();this._Ug1(_cH1);continue;}if(this._8A1&&this._8A1._Ey1(_Ix1,_Kx1)==false){var _cH1=c;c=_cH1._Ay1();this._Ug1(_cH1);continue;}c._Vw1&=~_1B1._IG1;}var _nB1=_oA1._sy1()&&_oA1._oO!=_Hw1._Iw1;var _oB1=_pA1._sy1()&&_pA1._oO!=_Hw1._Iw1;if(_nB1==false&&_oB1==false){c=c._Ay1();continue;}var _mp1=_Ix1._my1[_cq1]._Cp1;var _np1=_Kx1._my1[_dq1]._Cp1;var _dH1=this._zx1._o21(_mp1,_np1);if(_dH1==false){var _cH1=c;
c=_cH1._Ay1();this._Ug1(_cH1);continue;}c._Uf(this._aA1);c=c._Ay1();}}};function _eH1(){this._qr1=new _Hl1();this._rr1=new _Hl1();this._Ar1=0;this._Br1=0;this._fH1=0;this._gH1=0;this._hH1=0;}function _iH1(){this._jH1=new Array(_Yk1);this._Er1=new _Hl1();this._zr1=new _Hl1();this._cq1=0;this._dq1=0;this._kH1=0,this._lH1=0;this._mH1=new _Hl1(),this._nH1=new _Hl1();this._oH1=0,this._pH1=0;this.type=0;this._Sr1=0,this._Ur1=0;this._Fr1=0;};function _qH1(){this.points=new Array(_Yk1);for(var i=0;i<this.points.length;
++i)this.points[i]=new _eH1();this._Yn1=new _Hl1();this._fH1=new _Zl1();this._rH1=new _Zl1();this._cq1=0;this._dq1=0;this._kH1=0,this._lH1=0;this._oH1=0,this._pH1=0;this.friction=0;this._Ly1=0;this._sH1=0;this._Fr1=0;this._tH1=0;}function _uH1(){this._Yn1=new _Hl1();this._Cr1=new _Hl1();this._Bs1=0;}_uH1.prototype={_Qr1:function(_PC1,_Rr1,_Tr1,index){_Tk1(_PC1._Fr1>0);switch(_PC1.type){case _Dr1._Hr1:{var _Vr1=(_Rr1.q.c*_PC1._zr1.x-_Rr1.q._qi*_PC1._zr1.y)+_Rr1._ih.x;var _Wr1=(_Rr1.q._qi*_PC1._zr1.x+_Rr1.q.c*_PC1._zr1.y)+_Rr1._ih.y;
var _Xr1=(_Tr1.q.c*_PC1._jH1[0].x-_Tr1.q._qi*_PC1._jH1[0].y)+_Tr1._ih.x;var _Yr1=(_Tr1.q._qi*_PC1._jH1[0].x+_Tr1.q.c*_PC1._jH1[0].y)+_Tr1._ih.y;this._Cr1.x=0.5*(_Vr1+_Xr1);this._Cr1.y=0.5*(_Wr1+_Yr1);this._Yn1.x=_Xr1-_Vr1;this._Yn1.y=_Yr1-_Wr1;var _vH1=this._Yn1.x;var _wH1=this._Yn1.y;this._Yn1._Ql1();this._Bs1=(_vH1*this._Yn1.x+_wH1*this._Yn1.y)-_PC1._Sr1-_PC1._Ur1;}break;case _Dr1._Ir1:{this._Yn1.x=_Rr1.q.c*_PC1._Er1.x-_Rr1.q._qi*_PC1._Er1.y;this._Yn1.y=_Rr1.q._qi*_PC1._Er1.x+_Rr1.q.c*_PC1._Er1.y;var _2s1=(_Rr1.q.c*_PC1._zr1.x-_Rr1.q._qi*_PC1._zr1.y)+_Rr1._ih.x;
var _3s1=(_Rr1.q._qi*_PC1._zr1.x+_Rr1.q.c*_PC1._zr1.y)+_Rr1._ih.y;var _4s1=(_Tr1.q.c*_PC1._jH1[index].x-_Tr1.q._qi*_PC1._jH1[index].y)+_Tr1._ih.x;var _5s1=(_Tr1.q._qi*_PC1._jH1[index].x+_Tr1.q.c*_PC1._jH1[index].y)+_Tr1._ih.y;this._Bs1=((_4s1-_2s1)*this._Yn1.x+(_5s1-_3s1)*this._Yn1.y)-_PC1._Sr1-_PC1._Ur1;this._Cr1.x=_4s1;this._Cr1.y=_5s1;}break;case _Dr1._Jr1:{this._Yn1.x=_Tr1.q.c*_PC1._Er1.x-_Tr1.q._qi*_PC1._Er1.y;this._Yn1.y=_Tr1.q._qi*_PC1._Er1.x+_Tr1.q.c*_PC1._Er1.y;var _2s1=(_Tr1.q.c*_PC1._zr1.x-_Tr1.q._qi*_PC1._zr1.y)+_Tr1._ih.x;
var _3s1=(_Tr1.q._qi*_PC1._zr1.x+_Tr1.q.c*_PC1._zr1.y)+_Tr1._ih.y;var _4s1=(_Rr1.q.c*_PC1._jH1[index].x-_Rr1.q._qi*_PC1._jH1[index].y)+_Rr1._ih.x;var _5s1=(_Rr1.q._qi*_PC1._jH1[index].x+_Rr1.q.c*_PC1._jH1[index].y)+_Rr1._ih.y;this._Bs1=((_4s1-_2s1)*this._Yn1.x+(_5s1-_3s1)*this._Yn1.y)-_PC1._Sr1-_PC1._Ur1;this._Cr1.x=_4s1;this._Cr1.y=_5s1;this._Yn1.x=-this._Yn1.x;this._Yn1.y=-this._Yn1.y;}break;}}};function _xH1(){this.step=new _rz1();this._yH1=null;this._E8=0;this._Az1=null;this._Bz1=null;}function _zH1(){
this._AH1=[];this._BH1=[];}_zH1._CH1=new _pm1();_zH1._DH1=new _pm1();_zH1._EH1=new _uH1();_zH1.prototype={_OQ:function(_tx1){this._DF1=_tx1.step;this._to1=_tx1._E8;this._AH1.length=this._to1;this._BH1.length=this._to1;this._FH1=_tx1._Az1;this._GH1=_tx1._Bz1;this._HH1=_tx1._yH1;for(var i=0;i<this._to1;++i){var _Hx1=this._HH1[i];var _Ix1=_Hx1._9B1;var _Kx1=_Hx1._bB1;var _Lu1=_Ix1._Ty1();var _Mu1=_Kx1._Ty1();var _Sr1=_Lu1._Nn1;var _Ur1=_Mu1._Nn1;var _oA1=_Ix1.__y1();var _pA1=_Kx1.__y1();var _Gr1=_Hx1._AG1();var _Fr1=_Gr1._Fr1;
_Tk1(_Fr1>0);var _IH1=this._BH1[i]||new _qH1();_IH1.friction=_Hx1._Ry1;_IH1._Ly1=_Hx1._Sy1;_IH1._sH1=_Hx1._zG1;_IH1._cq1=_oA1._Uw1;_IH1._dq1=_pA1._Uw1;_IH1._kH1=_oA1._hx1;_IH1._lH1=_pA1._hx1;_IH1._oH1=_oA1._jx1;_IH1._pH1=_pA1._jx1;_IH1._tH1=i;_IH1._Fr1=_Fr1;_IH1._rH1._Il1();_IH1._fH1._Il1();this._BH1[i]=_IH1;var _PC1=this._AH1[i]||new _iH1();_PC1._cq1=_oA1._Uw1;_PC1._dq1=_pA1._Uw1;_PC1._kH1=_oA1._hx1;_PC1._lH1=_pA1._hx1;_PC1._mH1.x=_oA1._2x1._sm1.x;_PC1._mH1.y=_oA1._2x1._sm1.y;_PC1._nH1.x=_pA1._2x1._sm1.x;
_PC1._nH1.y=_pA1._2x1._sm1.y;_PC1._oH1=_oA1._jx1;_PC1._pH1=_pA1._jx1;_PC1._Er1.x=_Gr1._Er1.x;_PC1._Er1.y=_Gr1._Er1.y;_PC1._zr1.x=_Gr1._zr1.x;_PC1._zr1.y=_Gr1._zr1.y;_PC1._Fr1=_Fr1;_PC1._Sr1=_Sr1;_PC1._Ur1=_Ur1;_PC1.type=_Gr1.type;this._AH1[i]=_PC1;for(var _17=0;_17<_Fr1;++_17){var _yt1=_Gr1.points[_17];var _JH1=_IH1.points[_17];if(this._DF1._wz1){_JH1._Ar1=this._DF1._tz1*_yt1._Ar1;_JH1._Br1=this._DF1._tz1*_yt1._Br1;}else {_JH1._Ar1=0.0;_JH1._Br1=0.0;}_JH1._qr1._Il1();_JH1._rr1._Il1();_JH1._fH1=0.0;_JH1._gH1=0.0;
_JH1._hH1=0.0;_PC1._jH1[_17]=_yt1._zr1;}}},_KH1:function(){for(var i=0;i<this._to1;++i){var _IH1=this._BH1[i];var _PC1=this._AH1[i];var _Sr1=_PC1._Sr1;var _Ur1=_PC1._Ur1;var _Gr1=this._HH1[_IH1._tH1]._AG1();var _cq1=_IH1._cq1;var _dq1=_IH1._dq1;var _LH1=_IH1._kH1;var _MH1=_IH1._lH1;var _Iv1=_IH1._oH1;var _Jv1=_IH1._pH1;var _mH1=_PC1._mH1;var _nH1=_PC1._nH1;var _AA1=this._FH1[_cq1].c;var _NH1=this._FH1[_cq1]._G4;var _OH1=this._GH1[_cq1]._n5;var _oq1=this._GH1[_cq1].w;var _CA1=this._FH1[_dq1].c;var _PH1=this._FH1[_dq1]._G4;
var _QH1=this._GH1[_dq1]._n5;var _pq1=this._GH1[_dq1].w;_Tk1(_Gr1._Fr1>0);_zH1._CH1.q.Set(_NH1);_zH1._DH1.q.Set(_PH1);_zH1._CH1._ih.x=_AA1.x-(_zH1._CH1.q.c*_mH1.x-_zH1._CH1.q._qi*_mH1.y);_zH1._CH1._ih.y=_AA1.y-(_zH1._CH1.q._qi*_mH1.x+_zH1._CH1.q.c*_mH1.y);_zH1._DH1._ih.x=_CA1.x-(_zH1._DH1.q.c*_nH1.x-_zH1._DH1.q._qi*_nH1.y);_zH1._DH1._ih.y=_CA1.y-(_zH1._DH1.q._qi*_nH1.x+_zH1._DH1.q.c*_nH1.y);var _CG1=new _Or1();_CG1._Qr1(_Gr1,_zH1._CH1,_Sr1,_zH1._DH1,_Ur1);_IH1._Yn1.x=_CG1._Yn1.x;_IH1._Yn1.y=_CG1._Yn1.y;
var _Fr1=_IH1._Fr1;for(var _17=0;_17<_Fr1;++_17){var _JH1=_IH1.points[_17];_JH1._qr1.x=_CG1.points[_17].x-_AA1.x;_JH1._qr1.y=_CG1.points[_17].y-_AA1.y;_JH1._rr1.x=_CG1.points[_17].x-_CA1.x;_JH1._rr1.y=_CG1.points[_17].y-_CA1.y;var _RH1=_JH1._qr1.x*_IH1._Yn1.y-_JH1._qr1.y*_IH1._Yn1.x;var _SH1=_JH1._rr1.x*_IH1._Yn1.y-_JH1._rr1.y*_IH1._Yn1.x;var _TH1=_LH1+_MH1+_Iv1*_RH1*_RH1+_Jv1*_SH1*_SH1;_JH1._fH1=_TH1>0.0?1.0/_TH1:0.0;var _nt1=1.0*_IH1._Yn1.y;var _ot1=-1.0*_IH1._Yn1.x;var _UH1=_JH1._qr1.x*_ot1-_JH1._qr1.y*_nt1;
var _VH1=_JH1._rr1.x*_ot1-_JH1._rr1.y*_nt1;var _WH1=_LH1+_MH1+_Iv1*_UH1*_UH1+_Jv1*_VH1*_VH1;_JH1._gH1=_WH1>0.0?1.0/_WH1:0.0;_JH1._hH1=0.0;var _XH1=_IH1._Yn1.x*(((_QH1.x+(-_pq1*_JH1._rr1.y))-_OH1.x)-(-_oq1*_JH1._qr1.y))+_IH1._Yn1.y*(((_QH1.y+(_pq1*_JH1._rr1.x))-_OH1.y)-(_oq1*_JH1._qr1.x));if(_XH1<-_6l1){_JH1._hH1=-_IH1._Ly1*_XH1;}}if(_IH1._Fr1==2){var _YH1=_IH1.points[0];var _ZH1=_IH1.points[1];var __H1=_YH1._qr1.x*_IH1._Yn1.y-_YH1._qr1.y*_IH1._Yn1.x;var _0I1=_YH1._rr1.x*_IH1._Yn1.y-_YH1._rr1.y*_IH1._Yn1.x;
var _1I1=_ZH1._qr1.x*_IH1._Yn1.y-_ZH1._qr1.y*_IH1._Yn1.x;var _2I1=_ZH1._rr1.x*_IH1._Yn1.y-_ZH1._rr1.y*_IH1._Yn1.x;var _3I1=_LH1+_MH1+_Iv1*__H1*__H1+_Jv1*_0I1*_0I1;var _4I1=_LH1+_MH1+_Iv1*_1I1*_1I1+_Jv1*_2I1*_2I1;var _5I1=_LH1+_MH1+_Iv1*__H1*_1I1+_Jv1*_0I1*_2I1;var _6I1=1000.0;if(_3I1*_3I1<_6I1*(_3I1*_4I1-_5I1*_5I1)){_IH1._rH1._ek.x=_3I1;_IH1._rH1._ek.y=_5I1;_IH1._rH1._UL.x=_5I1;_IH1._rH1._UL.y=_4I1;_IH1._fH1._SN(_IH1._rH1._0m1());}else {_IH1._Fr1=1;}}}},_7I1:function(){for(var i=0;i<this._to1;++i){var _IH1=this._BH1[i];
var _cq1=_IH1._cq1;var _dq1=_IH1._dq1;var _LH1=_IH1._kH1;var _Iv1=_IH1._oH1;var _MH1=_IH1._lH1;var _Jv1=_IH1._pH1;var _Fr1=_IH1._Fr1;var _OH1=this._GH1[_cq1]._n5;var _oq1=this._GH1[_cq1].w;var _QH1=this._GH1[_dq1]._n5;var _pq1=this._GH1[_dq1].w;var _Yn1=_IH1._Yn1;var _nt1=1.0*_Yn1.y;var _ot1=-1.0*_Yn1.x;for(var _17=0;_17<_Fr1;++_17){var _JH1=_IH1.points[_17];var _Mt1=(_JH1._Ar1*_Yn1.x)+(_JH1._Br1*_nt1);var _Nt1=(_JH1._Ar1*_Yn1.y)+(_JH1._Br1*_ot1);_oq1-=_Iv1*(_JH1._qr1.x*_Nt1-_JH1._qr1.y*_Mt1);_OH1.x-=_LH1*_Mt1;_OH1.y-=_LH1*_Nt1;
_pq1+=_Jv1*(_JH1._rr1.x*_Nt1-_JH1._rr1.y*_Mt1);_QH1.x+=_MH1*_Mt1;_QH1.y+=_MH1*_Nt1;}this._GH1[_cq1].w=_oq1;this._GH1[_dq1].w=_pq1;}},_8I1:function(){for(var i=0;i<this._to1;++i){var _IH1=this._BH1[i];var _cq1=_IH1._cq1;var _dq1=_IH1._dq1;var _LH1=_IH1._kH1;var _Iv1=_IH1._oH1;var _MH1=_IH1._lH1;var _Jv1=_IH1._pH1;var _Fr1=_IH1._Fr1;var _OH1=this._GH1[_cq1]._n5;var _oq1=this._GH1[_cq1].w;var _QH1=this._GH1[_dq1]._n5;var _pq1=this._GH1[_dq1].w;var _Yn1=_IH1._Yn1;var _nt1=1.0*_Yn1.y;var _ot1=-1.0*_Yn1.x;var friction=_IH1.friction;
_Tk1(_Fr1==1||_Fr1==2);for(var _17=0;_17<_Fr1;++_17){var _JH1=_IH1.points[_17];var _9I1=_QH1.x+(-_pq1*_JH1._rr1.y)-_OH1.x-(-_oq1*_JH1._qr1.y);var _aI1=_QH1.y+(_pq1*_JH1._rr1.x)-_OH1.y-(_oq1*_JH1._qr1.x);var _bI1=(_9I1*_nt1+_aI1*_ot1)-_IH1._sH1;var _cI1=_JH1._gH1*(-_bI1);var _dI1=friction*_JH1._Ar1;var _eI1=_6n1(_JH1._Br1+_cI1,-_dI1,_dI1);_cI1=_eI1-_JH1._Br1;_JH1._Br1=_eI1;var _Mt1=_cI1*_nt1;var _Nt1=_cI1*_ot1;_OH1.x-=_LH1*_Mt1;_OH1.y-=_LH1*_Nt1;_oq1-=_Iv1*(_JH1._qr1.x*_Nt1-_JH1._qr1.y*_Mt1);_QH1.x+=_MH1*_Mt1;
_QH1.y+=_MH1*_Nt1;_pq1+=_Jv1*(_JH1._rr1.x*_Nt1-_JH1._rr1.y*_Mt1);}if(_IH1._Fr1==1){_JH1=_IH1.points[0];_9I1=_QH1.x+(-_pq1*_JH1._rr1.y)-_OH1.x-(-_oq1*_JH1._qr1.y);_aI1=_QH1.y+(_pq1*_JH1._rr1.x)-_OH1.y-(_oq1*_JH1._qr1.x);var _IF1=_9I1*_Yn1.x+_aI1*_Yn1.y;var _cI1=-_JH1._fH1*(_IF1-_JH1._hH1);var _eI1=_4n1(_JH1._Ar1+_cI1,0.0);_cI1=_eI1-_JH1._Ar1;_JH1._Ar1=_eI1;_Mt1=_cI1*_Yn1.x;_Nt1=_cI1*_Yn1.y;_OH1.x-=_LH1*_Mt1;_OH1.y-=_LH1*_Nt1;_oq1-=_Iv1*(_JH1._qr1.x*_Nt1-_JH1._qr1.y*_Mt1);_QH1.x+=_MH1*_Mt1;_QH1.y+=_MH1*_Nt1;
_pq1+=_Jv1*(_JH1._rr1.x*_Nt1-_JH1._rr1.y*_Mt1);}else {var _fI1=_IH1.points[0];var _gI1=_IH1.points[1];var ax=_fI1._Ar1;var ay=_gI1._Ar1;_Tk1(ax>=0.0&&ay>=0.0);var _hI1=_QH1.x+(-_pq1*_fI1._rr1.y)-_OH1.x-(-_oq1*_fI1._qr1.y);var _iI1=_QH1.y+(_pq1*_fI1._rr1.x)-_OH1.y-(_oq1*_fI1._qr1.x);var _jI1=_QH1.x+(-_pq1*_gI1._rr1.y)-_OH1.x-(-_oq1*_gI1._qr1.y);var _kI1=_QH1.y+(_pq1*_gI1._rr1.x)-_OH1.y-(_oq1*_gI1._qr1.x);var _lI1=_hI1*_Yn1.x+_iI1*_Yn1.y;var _mI1=_jI1*_Yn1.x+_kI1*_Yn1.y;var _FC1=_lI1-_fI1._hH1;var _GC1=_mI1-_gI1._hH1;
_FC1-=_IH1._rH1._ek.x*ax+_IH1._rH1._UL.x*ay;_GC1-=_IH1._rH1._ek.y*ax+_IH1._rH1._UL.y*ay;for(;;){var _27=-(_IH1._fH1._ek.x*_FC1+_IH1._fH1._UL.x*_GC1);var _nI1=-(_IH1._fH1._ek.y*_FC1+_IH1._fH1._UL.y*_GC1);if(_27>=0.0&&_nI1>=0.0){var _fb=_27-ax;var _gb=_nI1-ay;var _oI1=_fb*_Yn1.x;var _pI1=_fb*_Yn1.y;var _qI1=_gb*_Yn1.x;var _rI1=_gb*_Yn1.y;_OH1.x-=_LH1*(_oI1+_qI1);_OH1.y-=_LH1*(_pI1+_rI1);_oq1-=_Iv1*((_fI1._qr1.x*_pI1-_fI1._qr1.y*_oI1)+(_gI1._qr1.x*_rI1-_gI1._qr1.y*_qI1));_QH1.x+=_MH1*(_oI1+_qI1);_QH1.y+=_MH1*(_pI1+_rI1);
_pq1+=_Jv1*((_fI1._rr1.x*_pI1-_fI1._rr1.y*_oI1)+(_gI1._rr1.x*_rI1-_gI1._rr1.y*_qI1));_fI1._Ar1=_27;_gI1._Ar1=_nI1;break;}_27=-_fI1._fH1*_FC1;_nI1=0.0;_lI1=0.0;_mI1=_IH1._rH1._ek.y*_27+_GC1;if(_27>=0.0&&_mI1>=0.0){_fb=_27-ax;_gb=_nI1-ay;_oI1=_fb*_Yn1.x;_pI1=_fb*_Yn1.y;_qI1=_gb*_Yn1.x;_rI1=_gb*_Yn1.y;_OH1.x-=_LH1*(_oI1+_qI1);_OH1.y-=_LH1*(_pI1+_rI1);_oq1-=_Iv1*((_fI1._qr1.x*_pI1-_fI1._qr1.y*_oI1)+(_gI1._qr1.x*_rI1-_gI1._qr1.y*_qI1));_QH1.x+=_MH1*(_oI1+_qI1);_QH1.y+=_MH1*(_pI1+_rI1);_pq1+=_Jv1*((_fI1._rr1.x*_pI1-_fI1._rr1.y*_oI1)+(_gI1._rr1.x*_rI1-_gI1._rr1.y*_qI1));
_fI1._Ar1=_27;_gI1._Ar1=_nI1;break;}_27=0.0;_nI1=-_gI1._fH1*_GC1;_lI1=_IH1._rH1._UL.x*_nI1+_FC1;_mI1=0.0;if(_nI1>=0.0&&_lI1>=0.0){_fb=_27-ax;_gb=_nI1-ay;_oI1=_fb*_Yn1.x;_pI1=_fb*_Yn1.y;_qI1=_gb*_Yn1.x;_rI1=_gb*_Yn1.y;_OH1.x-=_LH1*(_oI1+_qI1);_OH1.y-=_LH1*(_pI1+_rI1);_oq1-=_Iv1*((_fI1._qr1.x*_pI1-_fI1._qr1.y*_oI1)+(_gI1._qr1.x*_rI1-_gI1._qr1.y*_qI1));_QH1.x+=_MH1*(_oI1+_qI1);_QH1.y+=_MH1*(_pI1+_rI1);_pq1+=_Jv1*((_fI1._rr1.x*_pI1-_fI1._rr1.y*_oI1)+(_gI1._rr1.x*_rI1-_gI1._rr1.y*_qI1));_fI1._Ar1=_27;
_gI1._Ar1=_nI1;break;}_27=0.0;_nI1=0.0;_lI1=_FC1;_mI1=_GC1;if(_lI1>=0.0&&_mI1>=0.0){_fb=_27-ax;_gb=_nI1-ay;_oI1=_fb*_Yn1.x;_pI1=_fb*_Yn1.y;_qI1=_gb*_Yn1.x;_rI1=_gb*_Yn1.y;_OH1.x-=_LH1*(_oI1+_qI1);_OH1.y-=_LH1*(_pI1+_rI1);_oq1-=_Iv1*((_fI1._qr1.x*_pI1-_fI1._qr1.y*_oI1)+(_gI1._qr1.x*_rI1-_gI1._qr1.y*_qI1));_QH1.x+=_MH1*(_oI1+_qI1);_QH1.y+=_MH1*(_pI1+_rI1);_pq1+=_Jv1*((_fI1._rr1.x*_pI1-_fI1._rr1.y*_oI1)+(_gI1._rr1.x*_rI1-_gI1._rr1.y*_qI1));_fI1._Ar1=_27;_gI1._Ar1=_nI1;break;}break;}}this._GH1[_cq1].w=_oq1;
this._GH1[_dq1].w=_pq1;}},_sI1:function(){for(var i=0;i<this._to1;++i){var _IH1=this._BH1[i];var _Gr1=this._HH1[_IH1._tH1]._AG1();for(var _17=0;_17<_IH1._Fr1;++_17){_Gr1.points[_17]._Ar1=_IH1.points[_17]._Ar1;_Gr1.points[_17]._Br1=_IH1.points[_17]._Br1;}}},_tI1:function(){var _uI1=0.0;for(var i=0;i<this._to1;++i){var _PC1=this._AH1[i];var _cq1=_PC1._cq1;var _dq1=_PC1._dq1;var _mH1=_PC1._mH1;var _LH1=_PC1._kH1;var _Iv1=_PC1._oH1;var _nH1=_PC1._nH1;var _MH1=_PC1._lH1;var _Jv1=_PC1._pH1;var _Fr1=_PC1._Fr1;var _AA1=this._FH1[_cq1].c;
var _NH1=this._FH1[_cq1]._G4;var _CA1=this._FH1[_dq1].c;var _PH1=this._FH1[_dq1]._G4;for(var _17=0;_17<_Fr1;++_17){_zH1._CH1.q.Set(_NH1);_zH1._DH1.q.Set(_PH1);_zH1._CH1._ih.x=_AA1.x-(_zH1._CH1.q.c*_mH1.x-_zH1._CH1.q._qi*_mH1.y);_zH1._CH1._ih.y=_AA1.y-(_zH1._CH1.q._qi*_mH1.x+_zH1._CH1.q.c*_mH1.y);_zH1._DH1._ih.x=_CA1.x-(_zH1._DH1.q.c*_nH1.x-_zH1._DH1.q._qi*_nH1.y);_zH1._DH1._ih.y=_CA1.y-(_zH1._DH1.q._qi*_nH1.x+_zH1._DH1.q.c*_nH1.y);_zH1._EH1._Qr1(_PC1,_zH1._CH1,_zH1._DH1,_17);var _Yn1=_zH1._EH1._Yn1;var _Cr1=_zH1._EH1._Cr1;
var _Bs1=_zH1._EH1._Bs1;var _vI1=_Cr1.x-_AA1.x;var _wI1=_Cr1.y-_AA1.y;var _xI1=_Cr1.x-_CA1.x;var _yI1=_Cr1.y-_CA1.y;_uI1=_2n1(_uI1,_Bs1);var _Wm1=_6n1(_dl1*(_Bs1+_1l1),-_7l1,0.0);var _RH1=_vI1*_Yn1.y-_wI1*_Yn1.x;var _SH1=_xI1*_Yn1.y-_yI1*_Yn1.x;var _rH1=_LH1+_MH1+_Iv1*_RH1*_RH1+_Jv1*_SH1*_SH1;var __x1=_rH1>0.0?-_Wm1/_rH1:0.0;var _Mt1=__x1*_Yn1.x;var _Nt1=__x1*_Yn1.y;_AA1.x-=_LH1*_Mt1;_AA1.y-=_LH1*_Nt1;_NH1-=_Iv1*(_vI1*_Nt1-_wI1*_Mt1);_CA1.x+=_MH1*_Mt1;_CA1.y+=_MH1*_Nt1;_PH1+=_Jv1*(_xI1*_Nt1-_yI1*_Mt1);}this._FH1[_cq1]._G4=_NH1;
this._FH1[_dq1]._G4=_PH1;}return _uI1>=-3.0*_1l1;},_zI1:function(_AI1,_BI1){var _uI1=0.0;for(var i=0;i<this._to1;++i){var _PC1=this._AH1[i];var _cq1=_PC1._cq1;var _dq1=_PC1._dq1;var _mH1=_PC1._mH1;var _nH1=_PC1._nH1;var _Fr1=_PC1._Fr1;var _LH1=0.0;var _Iv1=0.0;if(_cq1==_AI1||_cq1==_BI1){_LH1=_PC1._kH1;_Iv1=_PC1._oH1;}var _MH1=0.0;var _Jv1=0.0;if(_dq1==_AI1||_dq1==_BI1){_MH1=_PC1._lH1;_Jv1=_PC1._pH1;}var _AA1=this._FH1[_cq1].c;var _NH1=this._FH1[_cq1]._G4;var _CA1=this._FH1[_dq1].c;var _PH1=this._FH1[_dq1]._G4;for(var _17=0;
_17<_Fr1;++_17){_zH1._CH1.q.Set(_NH1);_zH1._DH1.q.Set(_PH1);_zH1._CH1._ih._SN(_Hl1._Ol1(_AA1,_Qm1(_zH1._CH1.q,_mH1)));_zH1._DH1._ih._SN(_Hl1._Ol1(_CA1,_Qm1(_zH1._DH1.q,_nH1)));_zH1._EH1._Qr1(_PC1,_zH1._CH1,_zH1._DH1,_17);var _Yn1=_zH1._EH1._Yn1;var _Cr1=_zH1._EH1._Cr1;var _Bs1=_zH1._EH1._Bs1;var _qr1=_Hl1._Ol1(_Cr1,_AA1);var _rr1=_Hl1._Ol1(_Cr1,_CA1);_uI1=_2n1(_uI1,_Bs1);var _Wm1=_6n1(_el1*(_Bs1+_1l1),-_7l1,0.0);var _RH1=_Cm1(_qr1,_Yn1);var _SH1=_Cm1(_rr1,_Yn1);var _rH1=_LH1+_MH1+_Iv1*_RH1*_RH1+_Jv1*_SH1*_SH1;
var __x1=_rH1>0.0?-_Wm1/_rH1:0.0;var _Ct1=_Hl1.Multiply(__x1,_Yn1);_AA1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_NH1-=_Iv1*_Cm1(_qr1,_Ct1);_CA1._Df(_Hl1.Multiply(_MH1,_Ct1));_PH1+=_Jv1*_Cm1(_rr1,_Ct1);}this._FH1[_cq1]._G4=_NH1;this._FH1[_dq1]._G4=_PH1;}return _uI1>=-1.5*_1l1;}};function _Xz1(){this._eB1=[];this._HH1=[];this._CI1=[];this._GH1=[];this._FH1=[];}var _DI1=_Ak1._Mk1("solve initialization","solve");var _EI1=_Ak1._Mk1("warm starting","solve initialization");var _FI1=_Ak1._Mk1("solve velocities","solve");
var _GI1=_Ak1._Mk1("solve positions","solve");_Xz1._HI1=new _zz1();_Xz1._II1=new _xH1();_Xz1._JI1=new _zH1();_Xz1.prototype={_Tf:function(){this._Lz1=0;this._XA1=0;this._Mz1=0;},_Qr1:function(_KI1,_LI1,_MI1,listener){this._NI1=listener;this._tB1=_KI1;this._uB1=_LI1;this._OI1=_MI1;this._Lz1=0;this._XA1=0;this._Mz1=0;this._eB1.length=_KI1;this._HH1.length=_LI1;this._CI1.length=_MI1;this._GH1.length=_KI1;this._FH1.length=_KI1;},_3m1:function(step,gravity,_Nw1){_DI1.start();var h=step._OC;for(var i=0;i<this._Lz1;
++i){var _F4=this._eB1[i];this._FH1[i].c._SN(_F4._2x1.c);var _G4=_F4._2x1._G4;this._GH1[i]._n5._SN(_F4._7x1);var w=_F4._8x1;_F4._2x1._tm1._SN(_F4._2x1.c);_F4._2x1._vm1=_F4._2x1._G4;if(_F4._oO==_Hw1._fx1){this._GH1[i]._n5.x+=h*((_F4._bx1*gravity.x)+(_F4._hx1*_F4._cx1.x));this._GH1[i]._n5.y+=h*((_F4._bx1*gravity.y)+(_F4._hx1*_F4._cx1.y));w+=h*_F4._jx1*_F4._dx1;this._GH1[i]._n5.x*=1.0/(1.0+h*_F4._9x1);this._GH1[i]._n5.y*=1.0/(1.0+h*_F4._9x1);w*=1.0/(1.0+h*_F4._ax1);}this._FH1[i]._G4=_G4;this._GH1[i].w=w;
}_Xz1._HI1.step=step;_Xz1._HI1._Az1=this._FH1;_Xz1._HI1._Bz1=this._GH1;_Xz1._II1.step=step;_Xz1._II1._yH1=this._HH1;_Xz1._II1._E8=this._XA1;_Xz1._II1._Az1=this._FH1;_Xz1._II1._Bz1=this._GH1;_Xz1._II1._PI1=this._QI1;_Xz1._JI1._OQ(_Xz1._II1);_Xz1._JI1._KH1();if(step._wz1){_EI1.start();_Xz1._JI1._7I1();_EI1.stop();}for(var i=0;i<this._Mz1;++i){this._CI1[i]._RI1(_Xz1._HI1);}_DI1.stop();_FI1.start();for(var i=0;i<step._uz1;++i){for(var _17=0;_17<this._Mz1;++_17){this._CI1[_17]._8I1(_Xz1._HI1);}_Xz1._JI1._8I1();
}_Xz1._JI1._sI1();_FI1.stop();_GI1.start();for(var i=0;i<this._Lz1;++i){var c=this._FH1[i].c;var _G4=this._FH1[i]._G4;var _n5=this._GH1[i]._n5;var w=this._GH1[i].w;var _SI1=h*_n5.x;var _TI1=h*_n5.y;var _UI1=_SI1*_SI1+_TI1*_TI1;if(_UI1>_al1){var _VI1=_9l1/_El1(_UI1);_n5.x*=_VI1;_n5.y*=_VI1;}var rotation=h*w;if(rotation*rotation>_cl1){var _VI1=_bl1/__m1(rotation);w*=_VI1;}c.x+=h*_n5.x;c.y+=h*_n5.y;_G4+=h*w;this._FH1[i]._G4=_G4;this._GH1[i].w=w;}var _WI1=false;for(var i=0;i<step._vz1;++i){var _XI1=_Xz1._JI1._tI1();
var _YI1=true;for(var _17=0;_17<this._Mz1;++_17){var _ZI1=this._CI1[_17]._tI1(_Xz1._HI1);_YI1=_YI1&&_ZI1;}if(_XI1&&_YI1){_WI1=true;break;}}for(var i=0;i<this._Lz1;++i){var body=this._eB1[i];body._2x1.c._SN(this._FH1[i].c);body._2x1._G4=this._FH1[i]._G4;body._7x1._SN(this._GH1[i]._n5);body._8x1=this._GH1[i].w;body._Dy1();}_GI1.stop();this.__I1(_Xz1._JI1._BH1);if(_Nw1){var _0J1=_Vk1;var _1J1=_gl1*_gl1;var _2J1=_hl1*_hl1;for(var i=0;i<this._Lz1;++i){var _F4=this._eB1[i];if(_F4._jg1()==_Hw1._Iw1){continue;}if((_F4._Vw1&_Hw1._Yw1)==0||_F4._8x1*_F4._8x1>_2J1||_Bm1(_F4._7x1,
_F4._7x1)>_1J1){_F4._ex1=0.0;_0J1=0.0;}else {_F4._ex1+=h;_0J1=_2n1(_0J1,_F4._ex1);}}if(_0J1>=_fl1&&_WI1){for(var i=0;i<this._Lz1;++i){var _F4=this._eB1[i];_F4._G01(false);}}}},_uA1:function(_vB1,_AI1,_BI1){_Tk1(_AI1<this._Lz1);_Tk1(_BI1<this._Lz1);for(var i=0;i<this._Lz1;++i){var _F4=this._eB1[i];this._FH1[i].c._SN(_F4._2x1.c);this._FH1[i]._G4=_F4._2x1._G4;this._GH1[i]._n5._SN(_F4._7x1);this._GH1[i].w=_F4._8x1;}_Xz1._II1._yH1=this._HH1;_Xz1._II1._E8=this._XA1;_Xz1._II1.step=_vB1;_Xz1._II1._Az1=this._FH1;
_Xz1._II1._Bz1=this._GH1;_Xz1._JI1._OQ(_Xz1._II1);for(var i=0;i<_vB1._vz1;++i){var _XI1=_Xz1._JI1._zI1(_AI1,_BI1);if(_XI1){break;}}this._eB1[_AI1]._2x1._tm1._SN(this._FH1[_AI1].c);this._eB1[_AI1]._2x1._vm1=this._FH1[_AI1]._G4;this._eB1[_BI1]._2x1._tm1._SN(this._FH1[_BI1].c);this._eB1[_BI1]._2x1._vm1=this._FH1[_BI1]._G4;_Xz1._JI1._KH1();for(var i=0;i<_vB1._uz1;++i){_Xz1._JI1._8I1();}var h=_vB1._OC;for(var i=0;i<this._Lz1;++i){var c=this._FH1[i].c;var _G4=this._FH1[i]._G4;var _n5=this._GH1[i]._n5;var w=this._GH1[i].w;
var _3J1=_Hl1.Multiply(h,_n5);if(_Bm1(_3J1,_3J1)>_al1){var _VI1=_9l1/_3J1.Length();_n5.Multiply(_VI1);}var rotation=h*w;if(rotation*rotation>_cl1){var _VI1=_bl1/__m1(rotation);w*=_VI1;}c._Df(_Hl1.Multiply(h,_n5));_G4+=h*w;this._FH1[i]._G4=_G4;this._GH1[i].w=w;var body=this._eB1[i];body._2x1.c._SN(c);body._2x1._G4=_G4;body._7x1._SN(_n5);body._8x1=w;body._Dy1();}this.__I1(_Xz1._JI1._BH1);},_5B1:function(body){_Tk1(this._Lz1<this._tB1);body._Uw1=this._Lz1;this._eB1[this._Lz1]=body;if(!this._FH1[this._Lz1]){
this._FH1[this._Lz1]=new _xz1();this._GH1[this._Lz1]=new _yz1();}++this._Lz1;},_cB1:function(_Hx1){_Tk1(this._XA1<this._uB1);this._HH1[this._XA1++]=_Hx1;},_dB1:function(_711){_Tk1(this._Mz1<this._OI1);this._CI1[this._Mz1++]=_711;},__I1:function(_Fa1){if(this._NI1==null){return;}for(var i=0;i<this._XA1;++i){var c=this._HH1[i];var _IH1=_Fa1[i];var __x1=new _ez1();__x1._E8=_IH1._Fr1;for(var _17=0;_17<_IH1._Fr1;++_17){__x1._fz1[_17]=_IH1.points[_17]._Ar1;__x1._gz1[_17]=_IH1.points[_17]._Br1;}this._NI1._mz1(c,
__x1);}}};function _4J1(){this._zw=new _Hl1();this._5J1=0;this._6J1=0;};function _7J1(){this.other=null;this._711=null;this._9l=null;this._bl=null;};function _8J1(){this.type=_jA1._9J1;this._Bp1=null;this._oA1=null;this._pA1=null;this._qA1=false;};_8J1.prototype={_Vl1:function(data,_sB1,_aJ1){this._oA1=_sB1[data['bodyA']];this._pA1=_sB1[data['bodyB']];this._qA1=data['collideConnected'];}};function _jA1(_tx1){_Tk1(_tx1._oA1!=_tx1._pA1);this._oO=_tx1.type;this._5x1=null;this._6x1=null;this._mA1=_tx1._oA1;
this._lA1=_tx1._pA1;this._aF=0;this._Gy1=_tx1._qA1;this._2B1=false;this._kx1=_tx1._Bp1;this._kA1=new _7J1();this._kA1._711=null;this._kA1.other=null;this._kA1._9l=null;this._kA1._bl=null;this._nA1=new _7J1();this._nA1._711=null;this._nA1.other=null;this._nA1._9l=null;this._nA1._bl=null;}_jA1.prototype={_jg1:function(){return this._oO;},_wB1:function(){return this._mA1;},_xB1:function(){return this._lA1;},_yB1:function(){},_zB1:function(){},_bJ1:function(_sz1){},_cJ1:function(_sz1){},_Ay1:function(){return this._6x1;
},_Kp1:function(){return this._kx1;},_By1:function(data){this._kx1=data;},_uy1:function(){return this._mA1._uy1()&&this._lA1._uy1();},_dJ1:function(){return this._Gy1;},_2q1:function(_3q1){},_RI1:function(data){},_8I1:function(data){},_tI1:function(data){},_Ul1:function(out){var _Qg=out||{};_Qg['bodyA']=null;_Qg['bodyB']=null;_Qg['type']=this._oO;_Qg['collideConnected']=this._Gy1;return _Qg;}};_jA1._eJ1=0;_jA1._fJ1=1;_jA1._gJ1=2;_jA1._hJ1=3;_jA1._9J1=0;_jA1._iJ1=1;_jA1._jJ1=2;_jA1._AB1=3;_jA1._BB1=4;
_jA1._FB1=5;_jA1._kJ1=6;_jA1._lJ1=7;_jA1._mJ1=8;_jA1._nJ1=9;_jA1._oJ1=10;_jA1._GB1=11;_jA1._Ka1=function(_tx1){var _711=null;switch(_tx1.type){case _jA1._AB1:_711=new _pJ1(_tx1);break;case _jA1._FB1:_711=new _qJ1(_tx1);break;case _jA1._jJ1:_711=new _rJ1(_tx1);break;case _jA1._iJ1:_711=new _sJ1(_tx1);break;case _jA1._BB1:_711=new _tJ1(_tx1);break;case _jA1._kJ1:_711=new _uJ1(_tx1);break;case _jA1._lJ1:_711=new _vJ1(_tx1);break;case _jA1._mJ1:_711=new _wJ1(_tx1);break;case _jA1._nJ1:_711=new _xJ1(_tx1);break;case _jA1._oJ1:_711=new _yJ1(_tx1);
break;case _jA1._GB1:_711=new _zJ1(_tx1);break;default :_Tk1(false);break;}return _711;};_jA1._Ug1=function(_711){};function _AJ1(){this.parent.call(this);this.type=_jA1._iJ1;this._BJ1=new _Hl1();this._CJ1=new _Hl1();this._DJ1=0.0;this._EJ1=0.0;this._FJ1=0.0;this._GJ1=0.0;this._HJ1=0.0;this._IJ1=false;this._JJ1=false;Object.seal(this);}_AJ1.prototype={_Qr1:function(_lB1,_mB1,anchor){this._oA1=_lB1;this._pA1=_mB1;this._BJ1=this._oA1._7y1(anchor);this._CJ1=this._pA1._7y1(anchor);this._DJ1=this._pA1._mm1()-this._oA1._mm1();
},_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._BJ1._Vl1(data['localAnchorA']);this._CJ1._Vl1(data['localAnchorB']);this._DJ1=data['referenceAngle'];this._EJ1=data['lowerAngle'];this._FJ1=data['upperAngle'];this._GJ1=data['maxMotorTorque'];this._HJ1=data['motorSpeed'];this._IJ1=data['enableLimit'];this._JJ1=data['enableMotor'];}};_AJ1._ok1(_8J1);function _sJ1(_tx1){this.parent.call(this,_tx1);this._KJ1=_tx1._BJ1._v3();this._LJ1=_tx1._CJ1._v3();this._MJ1=_tx1._DJ1;
this._NJ1=new _Xl1();this._OJ1=0.0;this._PJ1=_tx1._EJ1;this._QJ1=_tx1._FJ1;this._RJ1=_tx1._GJ1;this._SJ1=_tx1._HJ1;this._TJ1=_tx1._IJ1;this._UJ1=_tx1._JJ1;this._VJ1=_jA1._eJ1;this._xG1=0;this._yG1=0;this._WJ1=new _Hl1();this._XJ1=new _Hl1();this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;this._gx1=new _8m1();this._3K1=0;}_sJ1.prototype={_yB1:function(){return this._mA1._4y1(this._KJ1);},_zB1:function(){return this._lA1._4y1(this._LJ1);},_4K1:function(){return this._KJ1;
},_5K1:function(){return this._LJ1;},_6K1:function(){return this._MJ1;},_7K1:function(){var _lB1=this._mA1;var _mB1=this._lA1;return _mB1._2x1._G4-_lB1._2x1._G4-this._MJ1;},_8K1:function(){var _lB1=this._mA1;var _mB1=this._lA1;return _mB1._8x1-_lB1._8x1;},_9K1:function(){return this._TJ1;},_aK1:function(_oy1){if(_oy1!=this._TJ1){this._mA1._G01(true);this._lA1._G01(true);this._TJ1=_oy1;this._NJ1.z=0.0;}},_bK1:function(){return this._PJ1;},_cK1:function(){return this._QJ1;},_dK1:function(_zV,_Xo1){_Tk1(_zV<=_Xo1);
if(_zV!=this._PJ1||_Xo1!=this._QJ1){this._mA1._G01(true);this._lA1._G01(true);this._NJ1.z=0.0;this._PJ1=_zV;this._QJ1=_Xo1;}},_eK1:function(){return this._UJ1;},_S11:function(_oy1){this._mA1._G01(true);this._lA1._G01(true);this._UJ1=_oy1;},_fK1:function(speed){this._mA1._G01(true);this._lA1._G01(true);this._SJ1=speed;},_gK1:function(){return this._SJ1;},_hK1:function(_Yx1){this._mA1._G01(true);this._lA1._G01(true);this._RJ1=_Yx1;},_iK1:function(){return this._RJ1;},_bJ1:function(_sz1){var _Ct1=new _Hl1(this._NJ1.x,
this._NJ1.y);return _Hl1.Multiply(_sz1,_Ct1);},_cJ1:function(_sz1){return _sz1*this._NJ1.z;},_jK1:function(_sz1){return _sz1*this._OJ1;},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1=this._mA1._2x1._sm1;this._ZJ1=this._lA1._2x1._sm1;this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _PH1=data._Az1[this._yG1]._G4;
var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);this._WJ1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));this._XJ1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _Pw1=(_Iv1+_Jv1==0.0);this._gx1._ek.x=_LH1+_MH1+this._WJ1.y*this._WJ1.y*_Iv1+this._XJ1.y*this._XJ1.y*_Jv1;this._gx1._UL.x=-this._WJ1.y*this._WJ1.x*_Iv1-this._XJ1.y*this._XJ1.x*_Jv1;this._gx1._am1.x=-this._WJ1.y*_Iv1-this._XJ1.y*_Jv1;
this._gx1._ek.y=this._gx1._UL.x;this._gx1._UL.y=_LH1+_MH1+this._WJ1.x*this._WJ1.x*_Iv1+this._XJ1.x*this._XJ1.x*_Jv1;this._gx1._am1.y=this._WJ1.x*_Iv1+this._XJ1.x*_Jv1;this._gx1._ek.z=this._gx1._am1.x;this._gx1._UL.z=this._gx1._am1.y;this._gx1._am1.z=_Iv1+_Jv1;this._3K1=_Iv1+_Jv1;if(this._3K1>0.0){this._3K1=1.0/this._3K1;}if(this._UJ1==false||_Pw1){this._OJ1=0.0;}if(this._TJ1&&_Pw1==false){var _mK1=_PH1-_NH1-this._MJ1;if(__m1(this._QJ1-this._PJ1)<2.0*_2l1){this._VJ1=_jA1._hJ1;}else if(_mK1<=this._PJ1){
if(this._VJ1!=_jA1._fJ1){this._NJ1.z=0.0;}this._VJ1=_jA1._fJ1;}else if(_mK1>=this._QJ1){if(this._VJ1!=_jA1._gJ1){this._NJ1.z=0.0;}this._VJ1=_jA1._gJ1;}else {this._VJ1=_jA1._eJ1;this._NJ1.z=0.0;}}else {this._VJ1=_jA1._eJ1;}if(data.step._wz1){this._NJ1.Multiply(data.step._tz1);this._OJ1*=data.step._tz1;var _Ct1=new _Hl1(this._NJ1.x,this._NJ1.y);_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*(_Cm1(this._WJ1,_Ct1)+this._OJ1+this._NJ1.z);_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*(_Cm1(this._XJ1,_Ct1)+this._OJ1+this._NJ1.z);
}else {this._NJ1._Il1();this._OJ1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _Pw1=(_Iv1+_Jv1==0.0);if(this._UJ1&&this._VJ1!=_jA1._hJ1&&_Pw1==false){var _nK1=_pq1-_oq1-this._SJ1;var __x1=-this._3K1*_nK1;
var _oK1=this._OJ1;var _pK1=data.step._OC*this._RJ1;this._OJ1=_6n1(this._OJ1+__x1,-_pK1,_pK1);__x1=this._OJ1-_oK1;_oq1-=_Iv1*__x1;_pq1+=_Jv1*__x1;}if(this._TJ1&&this._VJ1!=_jA1._eJ1&&_Pw1==false){var _qK1=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_QH1,_Em1(_pq1,this._XJ1)),_OH1),_Em1(_oq1,this._WJ1));var _rK1=_pq1-_oq1;var _nK1=new _Xl1(_qK1.x,_qK1.y,_rK1);var __x1=this._gx1._bm1(_nK1)._Ll1();if(this._VJ1==_jA1._hJ1){this._NJ1._Df(__x1);}else if(this._VJ1==_jA1._fJ1){var _eI1=this._NJ1.z+__x1.z;if(_eI1<0.0){var _sK1=_Hl1._Df(_qK1._Ll1(),
_Hl1.Multiply(this._NJ1.z,new _Hl1(this._gx1._am1.x,this._gx1._am1.y)));var _tK1=this._gx1._em1(_sK1);__x1.x=_tK1.x;__x1.y=_tK1.y;__x1.z=-this._NJ1.z;this._NJ1.x+=_tK1.x;this._NJ1.y+=_tK1.y;this._NJ1.z=0.0;}else {this._NJ1._Df(__x1);}}else if(this._VJ1==_jA1._gJ1){var _eI1=this._NJ1.z+__x1.z;if(_eI1>0.0){var _sK1=_Hl1._Df(_qK1._Ll1(),_Hl1.Multiply(this._NJ1.z,new _Hl1(this._gx1._am1.x,this._gx1._am1.y)));var _tK1=this._gx1._em1(_sK1);__x1.x=_tK1.x;__x1.y=_tK1.y;__x1.z=-this._NJ1.z;this._NJ1.x+=_tK1.x;this._NJ1.y+=_tK1.y;
this._NJ1.z=0.0;}else {this._NJ1._Df(__x1);}}var _Ct1=new _Hl1(__x1.x,__x1.y);_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*(_Cm1(this._WJ1,_Ct1)+__x1.z);_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*(_Cm1(this._XJ1,_Ct1)+__x1.z);}else {var _nK1=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_QH1,_Em1(_pq1,this._XJ1)),_OH1),_Em1(_oq1,this._WJ1));var __x1=this._gx1._em1(_nK1._Ll1());this._NJ1.x+=__x1.x;this._NJ1.y+=__x1.y;_OH1._Ol1(_Hl1.Multiply(_LH1,__x1));_oq1-=_Iv1*_Cm1(this._WJ1,__x1);_QH1._Df(_Hl1.Multiply(_MH1,__x1));
_pq1+=_Jv1*_Cm1(this._XJ1,__x1);}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _uK1=0.0;var _vK1=0.0;var _Pw1=(this._1K1+this._2K1==0.0);if(this._TJ1&&this._VJ1!=_jA1._eJ1&&_Pw1==false){var angle=_PH1-_NH1-this._MJ1;var _wK1=0.0;
if(this._VJ1==_jA1._hJ1){var _Wm1=_6n1(angle-this._PJ1,-_8l1,_8l1);_wK1=-this._3K1*_Wm1;_uK1=__m1(_Wm1);}else if(this._VJ1==_jA1._fJ1){var _Wm1=angle-this._PJ1;_uK1=-_Wm1;_Wm1=_6n1(_Wm1+_2l1,-_8l1,0.0);_wK1=-this._3K1*_Wm1;}else if(this._VJ1==_jA1._gJ1){var _Wm1=angle-this._QJ1;_uK1=_Wm1;_Wm1=_6n1(_Wm1-_2l1,0.0,_8l1);_wK1=-this._3K1*_Wm1;}_NH1-=this._1K1*_wK1;_PH1+=this._2K1*_wK1;}{_kK1.Set(_NH1);_lK1.Set(_PH1);var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));
var _Wm1=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,_rr1),_AA1),_qr1);_vK1=_Wm1.Length();var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _rH1=new _Zl1();_rH1._ek.x=_LH1+_MH1+_Iv1*_qr1.y*_qr1.y+_Jv1*_rr1.y*_rr1.y;_rH1._ek.y=-_Iv1*_qr1.x*_qr1.y-_Jv1*_rr1.x*_rr1.y;_rH1._UL.x=_rH1._ek.y;_rH1._UL.y=_LH1+_MH1+_Iv1*_qr1.x*_qr1.x+_Jv1*_rr1.x*_rr1.x;var __x1=_rH1._3m1(_Wm1)._Ll1();_AA1._Ol1(_Hl1.Multiply(_LH1,__x1));_NH1-=_Iv1*_Cm1(_qr1,__x1);_CA1._Df(_Hl1.Multiply(_MH1,__x1));_PH1+=_Jv1*_Cm1(_rr1,
__x1);}data._Az1[this._xG1].c._SN(_AA1);data._Az1[this._xG1]._G4=_NH1;data._Az1[this._yG1].c._SN(_CA1);data._Az1[this._yG1]._G4=_PH1;return _vK1<=_1l1&&_uK1<=_2l1;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['localAnchorA']=this._KJ1._Ul1();_Qg['localAnchorB']=this._LJ1._Ul1();_Qg['referenceAngle']=this._MJ1;_Qg['lowerAngle']=this._PJ1;_Qg['upperAngle']=this._QJ1;_Qg['maxMotorTorque']=this._RJ1;_Qg['motorSpeed']=this._SJ1;_Qg['enableLimit']=this._TJ1;_Qg['enableMotor']=this._UJ1;
return _Qg;}};_sJ1._ok1(_jA1);function _xK1(){this.parent.call(this);this.type=_jA1._FB1;this.target=new _Hl1(0.0,0.0);this._yK1=0.0;this._zK1=5.0;this._AK1=0.7;Object.seal(this);}_xK1._ok1(_8J1);function _qJ1(_tx1){this.parent.call(this,_tx1);_Tk1(_tx1.target._Sl1());_Tk1(_xl1(_tx1._yK1)&&_tx1._yK1>=0.0);_Tk1(_xl1(_tx1._zK1)&&_tx1._zK1>=0.0);_Tk1(_xl1(_tx1._AK1)&&_tx1._AK1>=0.0);this._BK1=_tx1.target._v3();this._LJ1=_Um1(this._lA1._xm1(),this._BK1);this._CK1=_tx1._yK1;this._NJ1=new _Hl1();this._DK1=_tx1._zK1;
this._EK1=_tx1._AK1;this._FK1=0.0;this._GK1=0.0;this._xG1=0;this._yG1=0;this._XJ1=new _Hl1();this._ZJ1=new _Hl1();this._0K1=0;this._2K1=0;this._gx1=new _Zl1();this._HK1=new _Hl1();}_qJ1.prototype={_yB1:function(){return this._BK1;},_zB1:function(){return this._lA1._4y1(this._LJ1);},_bJ1:function(_sz1){return _Hl1.Multiply(_sz1,this._NJ1);},_cJ1:function(_sz1){return _sz1*0.0;},_IK1:function(target){if(this._lA1._sy1()==false){this._lA1._G01(true);}this._BK1._SN(target);},_JK1:function(){return this._BK1;
},_KK1:function(_Vx1){this._CK1=_Vx1;},_LK1:function(){return this._CK1;},_MK1:function(_NK1){this._DK1=_NK1;},_OK1:function(){return this._DK1;},_PK1:function(_VI1){this._EK1=_VI1;},_QK1:function(){return this._EK1;},_2q1:function(_3q1){this._BK1._Ol1(_3q1);},_RI1:function(data){this._yG1=this._lA1._Uw1;this._ZJ1._SN(this._lA1._2x1._sm1);this._0K1=this._lA1._hx1;this._2K1=this._lA1._jx1;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;
var _lK1=new _lm1(_PH1);var _Kn1=this._lA1._0y1();var _J21=2.0*_Xk1*this._DK1;var _tm=2.0*_Kn1*this._EK1*_J21;var _dl=_Kn1*(_J21*_J21);var h=data.step._OC;_Tk1(_tm+h*_dl>_Wk1);this._GK1=h*(_tm+h*_dl);if(this._GK1!=0.0){this._GK1=1.0/this._GK1;}this._FK1=h*_dl*this._GK1;this._XJ1._SN(_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1)));var _rH1=new _Zl1();_rH1._ek.x=this._0K1+this._2K1*this._XJ1.y*this._XJ1.y+this._GK1;_rH1._ek.y=-this._2K1*this._XJ1.x*this._XJ1.y;_rH1._UL.x=_rH1._ek.y;_rH1._UL.y=this._0K1+this._2K1*this._XJ1.x*this._XJ1.x+this._GK1;
this._gx1._SN(_rH1._0m1());this._HK1._SN(_Hl1._Ol1(_Hl1._Df(_CA1,this._XJ1),this._BK1));this._HK1.Multiply(this._FK1);_pq1*=0.98;if(data.step._wz1){this._NJ1.Multiply(data.step._tz1);_QH1._Df(_Hl1.Multiply(this._0K1,this._NJ1));_pq1+=this._2K1*_Cm1(this._XJ1,this._NJ1);}else {this._NJ1._Il1();}data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _nK1=_Hl1._Df(_QH1,_Em1(_pq1,this._XJ1));var __x1=_Fm1(this._gx1,
(_Hl1._Df(_Hl1._Df(_nK1,this._HK1),_Hl1.Multiply(this._GK1,this._NJ1)))._Ll1());var _oK1=this._NJ1._v3();this._NJ1._Df(__x1);var _pK1=data.step._OC*this._CK1;if(this._NJ1._Pl1()>_pK1*_pK1){this._NJ1.Multiply(_pK1/this._NJ1.Length());}__x1._SN(_Hl1._Ol1(this._NJ1,_oK1));_QH1._Df(_Hl1.Multiply(this._0K1,__x1));_pq1+=this._2K1*_Cm1(this._XJ1,__x1);data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){return true;}};_qJ1._ok1(_jA1);/// @warning Do not use a zero or short length.
function _RK1(){
this.parent.call(this);this.type=_jA1._AB1;this._BJ1=new _Hl1(0.0,0.0);this._CJ1=new _Hl1(0.0,0.0);this.length=1.0;this._zK1=0.0;this._AK1=0.0;Object.seal(this);}_RK1.prototype={_Qr1:function(_Xh,_Yh,_SK1,_TK1){this._oA1=_Xh;this._pA1=_Yh;this._BJ1=this._oA1._7y1(_SK1);this._CJ1=this._pA1._7y1(_TK1);var _tm=_Hl1._Ol1(_TK1,_SK1);this.length=_tm.Length();},_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._BJ1._Vl1(data['localAnchorA']);this._CJ1._Vl1(data['localAnchorB']);
this.length=data['length'];this._zK1=data['frequencyHz'];this._AK1=data['dampingRatio'];}};_RK1._ok1(_8J1);function _pJ1(_tx1){this.parent.call(this,_tx1);this._KJ1=_tx1._BJ1._v3();this._LJ1=_tx1._CJ1._v3();this._PS=_tx1.length;this._DK1=_tx1._zK1;this._EK1=_tx1._AK1;this._NJ1=0.0;this._GK1=0.0;this._UK1=0.0;this._xG1=0;this._yG1=0;this._VK1=new _Hl1();this._WJ1=new _Hl1();this._XJ1=new _Hl1();this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;this._gx1=0;}_pJ1.prototype={
_yB1:function(){return this._mA1._4y1(this._KJ1);},_zB1:function(){return this._lA1._4y1(this._LJ1);},_bJ1:function(_sz1){var _Nv1=_Hl1.Multiply((_sz1*this._NJ1),this._VK1);return _Nv1;},_cJ1:function(_sz1){return 0.0;},_4K1:function(){return this._KJ1;},_5K1:function(){return this._LJ1;},_WK1:function(length){this._PS=length;},_XK1:function(){return this._PS;},_MK1:function(_NK1){this._DK1=_NK1;},_OK1:function(){return this._DK1;},_PK1:function(_VI1){this._EK1=_VI1;},_QK1:function(){return this._EK1;},_RI1:function(data){
this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1._SN(this._mA1._2x1._sm1);this._ZJ1._SN(this._lA1._2x1._sm1);this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;
var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);this._WJ1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));this._XJ1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));this._VK1=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,this._XJ1),_AA1),this._WJ1);var length=this._VK1.Length();if(length>_1l1){this._VK1.Multiply(1.0/length);}else {this._VK1.Set(0.0,0.0);}var _YK1=_Cm1(this._WJ1,this._VK1);var _ZK1=_Cm1(this._XJ1,this._VK1);var __K1=this.__J1+this._1K1*_YK1*_YK1+this._0K1+this._2K1*_ZK1*_ZK1;this._gx1=__K1!=0.0?1.0/__K1:0.0;if(this._DK1>0.0){
var _Wm1=length-this._PS;var _J21=2.0*_Xk1*this._DK1;var _tm=2.0*this._gx1*this._EK1*_J21;var _dl=this._gx1*_J21*_J21;var h=data.step._OC;this._GK1=h*(_tm+h*_dl);this._GK1=this._GK1!=0.0?1.0/this._GK1:0.0;this._UK1=_Wm1*h*_dl*this._GK1;__K1+=this._GK1;this._gx1=__K1!=0.0?1.0/__K1:0.0;}else {this._GK1=0.0;this._UK1=0.0;}if(data.step._wz1){this._NJ1*=data.step._tz1;var _Ct1=_Hl1.Multiply(this._NJ1,this._VK1);_OH1._Ol1(_Hl1.Multiply(this.__J1,_Ct1));_oq1-=this._1K1*_Cm1(this._WJ1,_Ct1);_QH1._Df(_Hl1.Multiply(this._0K1,
_Ct1));_pq1+=this._2K1*_Cm1(this._XJ1,_Ct1);}else {this._NJ1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _0L1=_Hl1._Df(_OH1,_Em1(_oq1,this._WJ1));var _1L1=_Hl1._Df(_QH1,_Em1(_pq1,this._XJ1));var _nK1=_Bm1(this._VK1,_Hl1._Ol1(_1L1,_0L1));var __x1=-this._gx1*(_nK1+this._UK1+this._GK1*this._NJ1);
this._NJ1+=__x1;var _Ct1=_Hl1.Multiply(__x1,this._VK1);_OH1._Ol1(_Hl1.Multiply(this.__J1,_Ct1));_oq1-=this._1K1*_Cm1(this._WJ1,_Ct1);_QH1._Df(_Hl1.Multiply(this._0K1,_Ct1));_pq1+=this._2K1*_Cm1(this._XJ1,_Ct1);data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){if(this._DK1>0.0){return true;}var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;
var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _m5=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,_rr1),_AA1),_qr1);var length=_m5._Ql1();var _Wm1=length-this._PS;_Wm1=_6n1(_Wm1,-_7l1,_7l1);var __x1=-this._gx1*_Wm1;var _Ct1=_Hl1.Multiply(__x1,_m5);_AA1._Ol1(_Hl1.Multiply(this.__J1,_Ct1));_NH1-=this._1K1*_Cm1(_qr1,_Ct1);_CA1._Df(_Hl1.Multiply(this._0K1,_Ct1));_PH1+=this._2K1*_Cm1(_rr1,_Ct1);data._Az1[this._xG1].c._SN(_AA1);
data._Az1[this._xG1]._G4=_NH1;data._Az1[this._yG1].c._SN(_CA1);data._Az1[this._yG1]._G4=_PH1;return __m1(_Wm1)<_1l1;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['localAnchorA']=this._KJ1._Ul1();_Qg['localAnchorB']=this._LJ1._Ul1();_Qg['length']=this._PS;_Qg['frequencyHz']=this._DK1;_Qg['dampingRatio']=this._EK1;return _Qg;}};_pJ1._ok1(_jA1);function _2L1(){this.parent.call(this);this.type=_jA1._jJ1;this._BJ1=new _Hl1();this._CJ1=new _Hl1();this._3L1=new _Hl1(1.0,0.0);
this._DJ1=0.0;this._IJ1=false;this._4L1=0.0;this._5L1=0.0;this._JJ1=false;this._6L1=0.0;this._HJ1=0.0;Object.seal(this);}_2L1.prototype={_Qr1:function(_lB1,_mB1,anchor,_ru){this._oA1=_lB1;this._pA1=_mB1;this._BJ1=this._oA1._7y1(anchor);this._CJ1=this._pA1._7y1(anchor);this._3L1=this._oA1._9y1(_ru);this._DJ1=this._pA1._mm1()-this._oA1._mm1();},_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._BJ1._Vl1(data['localAnchorA']);this._CJ1._Vl1(data['localAnchorB']);
this._3L1._Vl1(data['localAxisA']);this._DJ1=data['referenceAngle'];this._IJ1=data['enableLimit'];this._4L1=data['lowerTranslation'];this._5L1=data['upperTranslation'];this._JJ1=data['enableMotor'];this._6L1=data['maxMotorForce'];this._HJ1=data['motorSpeed'];}};_2L1._ok1(_8J1);function _rJ1(_tx1){this.parent.call(this,_tx1);this._KJ1=_tx1._BJ1._v3();this._LJ1=_tx1._CJ1._v3();this._7L1=_tx1._3L1._v3();this._7L1._Ql1();this._8L1=_Em1(1.0,this._7L1);this._MJ1=_tx1._DJ1;this._NJ1=new _Xl1();this._3K1=0.0;
this._OJ1=0.0;this._9L1=_tx1._4L1;this._aL1=_tx1._5L1;this._bL1=_tx1._6L1;this._SJ1=_tx1._HJ1;this._TJ1=_tx1._IJ1;this._UJ1=_tx1._JJ1;this._VJ1=_jA1._eJ1;this._8w1=new _Hl1();this._cL1=new _Hl1();this._xG1=0;this._yG1=0;this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;this._dL1=0,this._eL1=0;this._fL1=0,this._gL1=0;this._hL1=new _8m1();this._3K1=0;}_rJ1.prototype={_yB1:function(){return this._mA1._4y1(this._KJ1);},_zB1:function(){return this._lA1._4y1(this._LJ1);
},_bJ1:function(_sz1){return _Hl1.Multiply(_sz1,_Hl1._Df(_Hl1.Multiply(this._NJ1.x,this._cL1),_Hl1.Multiply((this._OJ1+this._NJ1.z),this._8w1)));},_cJ1:function(_sz1){return _sz1*this._NJ1.y;},_4K1:function(){return this._KJ1;},_5K1:function(){return this._LJ1;},_iL1:function(){return this._7L1;},_6K1:function(){return this._MJ1;},_jL1:function(){var _Fq1=this._mA1._4y1(this._KJ1);var _Gq1=this._lA1._4y1(this._LJ1);var _tm=_Hl1._Ol1(_Gq1,_Fq1);var _ru=this._mA1._5y1(this._7L1);var _3J1=_Bm1(_tm,_ru);return _3J1;
},_8K1:function(){var _lB1=this._mA1;var _mB1=this._lA1;var _qr1=_Qm1(_lB1._Yt1.q,_Hl1._Ol1(this._KJ1,_lB1._2x1._sm1));var _rr1=_Qm1(_mB1._Yt1.q,_Hl1._Ol1(this._LJ1,_mB1._2x1._sm1));var _qu=_Hl1._Df(_lB1._2x1.c,_qr1);var _rn1=_Hl1._Df(_mB1._2x1.c,_rr1);var _tm=_Hl1._Ol1(_rn1,_qu);var _ru=_Qm1(_lB1._Yt1.q,this._7L1);var _OH1=_lB1._7x1;var _QH1=_mB1._7x1;var _oq1=_lB1._8x1;var _pq1=_mB1._8x1;var speed=_Bm1(_tm,_Em1(_oq1,_ru))+_Bm1(_ru,_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_QH1,_Em1(_pq1,_rr1)),_OH1),_Em1(_oq1,_qr1)));return speed;
},_9K1:function(){return this._TJ1;},_aK1:function(_oy1){if(_oy1!=this._TJ1){this._mA1._G01(true);this._lA1._G01(true);this._TJ1=_oy1;this._NJ1.z=0.0;}},_bK1:function(){return this._9L1;},_cK1:function(){return this._aL1;},_dK1:function(_zV,_Xo1){_Tk1(_zV<=_Xo1);if(_zV!=this._9L1||_Xo1!=this._aL1){this._mA1._G01(true);this._lA1._G01(true);this._9L1=_zV;this._aL1=_Xo1;this._NJ1.z=0.0;}},_eK1:function(){return this._UJ1;},_S11:function(_oy1){this._mA1._G01(true);this._lA1._G01(true);this._UJ1=_oy1;},_fK1:function(speed){
this._mA1._G01(true);this._lA1._G01(true);this._SJ1=speed;},_gK1:function(){return this._SJ1;},_kL1:function(_Vx1){this._mA1._G01(true);this._lA1._G01(true);this._bL1=_Vx1;},_lL1:function(){return this._bL1;},_mL1:function(_sz1){return _sz1*this._OJ1;},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1=this._mA1._2x1._sm1;this._ZJ1=this._lA1._2x1._sm1;this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;var _AA1=data._Az1[this._xG1].c._v3();
var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _tm=_Hl1._Df(_Hl1._Ol1(_CA1,_AA1),_Hl1._Ol1(_rr1,_qr1));var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;
{this._8w1=_Qm1(_kK1,this._7L1);this._fL1=_Cm1(_Hl1._Df(_tm,_qr1),this._8w1);this._gL1=_Cm1(_rr1,this._8w1);this._3K1=_LH1+_MH1+_Iv1*this._fL1*this._fL1+_Jv1*this._gL1*this._gL1;if(this._3K1>0.0){this._3K1=1.0/this._3K1;}}{this._cL1=_Qm1(_kK1,this._8L1);this._dL1=_Cm1(_Hl1._Df(_tm,_qr1),this._cL1);this._eL1=_Cm1(_rr1,this._cL1);var _3I1=_LH1+_MH1+_Iv1*this._dL1*this._dL1+_Jv1*this._eL1*this._eL1;var _5I1=_Iv1*this._dL1+_Jv1*this._eL1;var _nL1=_Iv1*this._dL1*this._fL1+_Jv1*this._eL1*this._gL1;var _4I1=_Iv1+_Jv1;
if(_4I1==0.0){_4I1=1.0;}var _oL1=_Iv1*this._fL1+_Jv1*this._gL1;var _pL1=_LH1+_MH1+_Iv1*this._fL1*this._fL1+_Jv1*this._gL1*this._gL1;this._hL1._ek.Set(_3I1,_5I1,_nL1);this._hL1._UL.Set(_5I1,_4I1,_oL1);this._hL1._am1.Set(_nL1,_oL1,_pL1);}if(this._TJ1){var _qL1=_Bm1(this._8w1,_tm);if(__m1(this._aL1-this._9L1)<2.0*_1l1){this._VJ1=_jA1._hJ1;}else if(_qL1<=this._9L1){if(this._VJ1!=_jA1._fJ1){this._VJ1=_jA1._fJ1;this._NJ1.z=0.0;}}else if(_qL1>=this._aL1){if(this._VJ1!=_jA1._gJ1){this._VJ1=_jA1._gJ1;this._NJ1.z=0.0;
}}else {this._VJ1=_jA1._eJ1;this._NJ1.z=0.0;}}else {this._VJ1=_jA1._eJ1;this._NJ1.z=0.0;}if(this._UJ1==false){this._OJ1=0.0;}if(data.step._wz1){this._NJ1.Multiply(data.step._tz1);this._OJ1*=data.step._tz1;var _Ct1=_Hl1._Df(_Hl1.Multiply(this._NJ1.x,this._cL1),_Hl1.Multiply((this._OJ1+this._NJ1.z),this._8w1));var _rL1=this._NJ1.x*this._dL1+this._NJ1.y+(this._OJ1+this._NJ1.z)*this._fL1;var _sL1=this._NJ1.x*this._eL1+this._NJ1.y+(this._OJ1+this._NJ1.z)*this._gL1;_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*_rL1;
_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*_sL1;}else {this._NJ1._Il1();this._OJ1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;if(this._UJ1&&this._VJ1!=_jA1._hJ1){var _nK1=_Bm1(this._8w1,
_Hl1._Ol1(_QH1,_OH1))+this._gL1*_pq1-this._fL1*_oq1;var __x1=this._3K1*(this._SJ1-_nK1);var _oK1=this._OJ1;var _pK1=data.step._OC*this._bL1;this._OJ1=_6n1(this._OJ1+__x1,-_pK1,_pK1);__x1=this._OJ1-_oK1;var _Ct1=_Hl1.Multiply(__x1,this._8w1);var _rL1=__x1*this._fL1;var _sL1=__x1*this._gL1;_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*_rL1;_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*_sL1;}var _qK1=new _Hl1();_qK1.x=_Bm1(this._cL1,_Hl1._Ol1(_QH1,_OH1))+this._eL1*_pq1-this._dL1*_oq1;_qK1.y=_pq1-_oq1;if(this._TJ1&&this._VJ1!=_jA1._eJ1){
var _rK1;_rK1=_Bm1(this._8w1,_Hl1._Ol1(_QH1,_OH1))+this._gL1*_pq1-this._fL1*_oq1;var _nK1=new _Xl1(_qK1.x,_qK1.y,_rK1);var _gX=this._NJ1._v3();var _tL1=this._hL1._bm1(_nK1._Ll1());this._NJ1._Df(_tL1);if(this._VJ1==_jA1._fJ1){this._NJ1.z=_4n1(this._NJ1.z,0.0);}else if(this._VJ1==_jA1._gJ1){this._NJ1.z=_2n1(this._NJ1.z,0.0);}var _F4=_Hl1._Ol1(_qK1._Ll1(),_Hl1.Multiply((this._NJ1.z-_gX.z),new _Hl1(this._hL1._am1.x,this._hL1._am1.y)));var _uL1=_Hl1._Df(this._hL1._em1(_F4),new _Hl1(_gX.x,_gX.y));this._NJ1.x=_uL1.x;
this._NJ1.y=_uL1.y;_tL1=_Xl1._Ol1(this._NJ1,_gX);var _Ct1=_Hl1._Df(_Hl1.Multiply(_tL1.x,this._cL1),_Hl1.Multiply(_tL1.z,this._8w1));var _rL1=_tL1.x*this._dL1+_tL1.y+_tL1.z*this._fL1;var _sL1=_tL1.x*this._eL1+_tL1.y+_tL1.z*this._gL1;_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*_rL1;_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*_sL1;}else {var _tL1=this._hL1._em1(_qK1._Ll1());this._NJ1.x+=_tL1.x;this._NJ1.y+=_tL1.y;var _Ct1=_Hl1.Multiply(_tL1.x,this._cL1);var _rL1=_tL1.x*this._dL1+_tL1.y;var _sL1=_tL1.x*this._eL1+_tL1.y;
_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*_rL1;_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*_sL1;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _qr1=_Qm1(_kK1,
_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _tm=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,_rr1),_AA1),_qr1);var _ru=_Qm1(_kK1,this._7L1);var _re1=_Cm1(_Hl1._Df(_tm,_qr1),_ru);var _se1=_Cm1(_rr1,_ru);var _vL1=_Qm1(_kK1,this._8L1);var _0B=_Cm1(_Hl1._Df(_tm,_qr1),_vL1);var _1B=_Cm1(_rr1,_vL1);var __x1=new _Xl1();var _wL1=new _Hl1();_wL1.x=_Bm1(_vL1,_tm);_wL1.y=_PH1-_NH1-this._MJ1;var _xL1=__m1(_wL1.x);var _uK1=__m1(_wL1.y);var active=false;var _yL1=0.0;if(this._TJ1){var _3J1=_Bm1(_ru,
_tm);if(__m1(this._aL1-this._9L1)<2.0*_1l1){_yL1=_6n1(_3J1,-_7l1,_7l1);_xL1=_4n1(_xL1,__m1(_3J1));active=true;}else if(_3J1<=this._9L1){_yL1=_6n1(_3J1-this._9L1+_1l1,-_7l1,0.0);_xL1=_4n1(_xL1,this._9L1-_3J1);active=true;}else if(_3J1>=this._aL1){_yL1=_6n1(_3J1-this._aL1-_1l1,0.0,_7l1);_xL1=_4n1(_xL1,_3J1-this._aL1);active=true;}}if(active){var _3I1=_LH1+_MH1+_Iv1*_0B*_0B+_Jv1*_1B*_1B;var _5I1=_Iv1*_0B+_Jv1*_1B;var _nL1=_Iv1*_0B*_re1+_Jv1*_1B*_se1;var _4I1=_Iv1+_Jv1;if(_4I1==0.0){_4I1=1.0;}var _oL1=_Iv1*_re1+_Jv1*_se1;
var _pL1=_LH1+_MH1+_Iv1*_re1*_re1+_Jv1*_se1*_se1;var _rH1=new _8m1();_rH1._ek.Set(_3I1,_5I1,_nL1);_rH1._UL.Set(_5I1,_4I1,_oL1);_rH1._am1.Set(_nL1,_oL1,_pL1);var _Wm1=new _Xl1();_Wm1.x=_wL1.x;_Wm1.y=_wL1.y;_Wm1.z=_yL1;__x1=_rH1._bm1(_Wm1._Ll1());}else {var _3I1=_LH1+_MH1+_Iv1*_0B*_0B+_Jv1*_1B*_1B;var _5I1=_Iv1*_0B+_Jv1*_1B;var _4I1=_Iv1+_Jv1;if(_4I1==0.0){_4I1=1.0;}var _rH1=new _Zl1();_rH1._ek.Set(_3I1,_5I1);_rH1._UL.Set(_5I1,_4I1);var _zL1=_rH1._3m1(_wL1._Ll1());__x1.x=_zL1.x;__x1.y=_zL1.y;__x1.z=0.0;}var _Ct1=_Hl1._Df(_Hl1.Multiply(__x1.x,
_vL1),_Hl1.Multiply(__x1.z,_ru));var _rL1=__x1.x*_0B+__x1.y+__x1.z*_re1;var _sL1=__x1.x*_1B+__x1.y+__x1.z*_se1;_AA1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_NH1-=_Iv1*_rL1;_CA1._Df(_Hl1.Multiply(_MH1,_Ct1));_PH1+=_Jv1*_sL1;data._Az1[this._xG1].c._SN(_AA1);data._Az1[this._xG1]._G4=_NH1;data._Az1[this._yG1].c._SN(_CA1);data._Az1[this._yG1]._G4=_PH1;return _xL1<=_1l1&&_uK1<=_2l1;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['localAnchorA']=this._KJ1._Ul1();_Qg['localAnchorB']=this._LJ1._Ul1();
_Qg['localAxisA']=this._7L1._Ul1();_Qg['referenceAngle']=this._MJ1;_Qg['enableLimit']=this._TJ1;_Qg['lowerTranslation']=this._9L1;_Qg['upperTranslation']=this._aL1;_Qg['enableMotor']=this._UJ1;_Qg['maxMotorForce']=this._bL1;_Qg['motorSpeed']=this._SJ1;return _Qg;}};_rJ1._ok1(_jA1);function _AL1(){this.parent.call(this);this.type=_jA1._nJ1;this._BJ1=new _Hl1();this._CJ1=new _Hl1();this._yK1=0.0;this._BL1=0.0;Object.seal(this);}_AL1.prototype={_Qr1:function(_lB1,_mB1,anchor){this._oA1=_lB1;this._pA1=_mB1;
this._BJ1._SN(this._oA1._7y1(anchor));this._CJ1._SN(this._pA1._7y1(anchor));},_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._BJ1._Vl1(data['localAnchorA']);this._CJ1._Vl1(data['localAnchorB']);this._yK1=data['maxForce'];this._BL1=data['maxTorque'];}};_AL1._ok1(_8J1);function _xJ1(_tx1){this.parent.call(this,_tx1);this._KJ1=_tx1._BJ1._v3();this._LJ1=_tx1._CJ1._v3();this._CL1=new _Hl1();this._DL1=0.0;this._CK1=_tx1._yK1;this._EL1=_tx1._BL1;this._xG1=0;this._yG1=0;
this._WJ1=new _Hl1();this._XJ1=new _Hl1();this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;this._FL1=new _Zl1();this._GL1=0;}_xJ1.prototype={_yB1:function(){return this._mA1._4y1(this._KJ1);},_zB1:function(){return this._lA1._4y1(this._LJ1);},_bJ1:function(_sz1){return _Hl1.Multiply(_sz1,this._CL1);},_cJ1:function(_sz1){return _sz1*this._DL1;},_4K1:function(){return this._KJ1;},_5K1:function(){return this._LJ1;},_KK1:function(_Vx1){_Tk1(_xl1(_Vx1)&&_Vx1>=0.0);this._CK1=_Vx1;
},_LK1:function(){return this._CK1;},_HL1:function(_Yx1){_Tk1(_xl1(_Yx1)&&_Yx1>=0.0);this._EL1=_Yx1;},_IL1:function(){return this._EL1;},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1._SN(this._mA1._2x1._sm1);this._ZJ1._SN(this._lA1._2x1._sm1);this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _PH1=data._Az1[this._yG1]._G4;
var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);this._WJ1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));this._XJ1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _rH1=new _Zl1();_rH1._ek.x=_LH1+_MH1+_Iv1*this._WJ1.y*this._WJ1.y+_Jv1*this._XJ1.y*this._XJ1.y;_rH1._ek.y=-_Iv1*this._WJ1.x*this._WJ1.y-_Jv1*this._XJ1.x*this._XJ1.y;_rH1._UL.x=_rH1._ek.y;_rH1._UL.y=_LH1+_MH1+_Iv1*this._WJ1.x*this._WJ1.x+_Jv1*this._XJ1.x*this._XJ1.x;
this._FL1=_rH1._0m1();this._GL1=_Iv1+_Jv1;if(this._GL1>0.0){this._GL1=1.0/this._GL1;}if(data.step._wz1){this._CL1.Multiply(data.step._tz1);this._DL1*=data.step._tz1;var _Ct1=new _Hl1(this._CL1.x,this._CL1.y);_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*(_Cm1(this._WJ1,_Ct1)+this._DL1);_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*(_Cm1(this._XJ1,_Ct1)+this._DL1);}else {this._CL1._Il1();this._DL1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);
data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var h=data.step._OC;{var _nK1=_pq1-_oq1;var __x1=-this._GL1*_nK1;var _oK1=this._DL1;var _pK1=h*this._EL1;this._DL1=_6n1(this._DL1+__x1,-_pK1,_pK1);__x1=this._DL1-_oK1;_oq1-=_Iv1*__x1;_pq1+=_Jv1*__x1;}{var _rK1=_Hl1._Df(_QH1,_Hl1._Ol1(_Em1(_pq1,this._XJ1),
_Hl1._Ol1(_OH1,_Em1(_oq1,this._WJ1))));var _JL1=_Fm1(this._FL1,_rK1)._Ll1();var _KL1=this._CL1._v3();this._CL1._Df(_JL1);var _LL1=h*this._CK1;if(this._CL1._Pl1()>_LL1*_LL1){this._CL1._Ql1();this._CL1.Multiply(_LL1);}_JL1=_Hl1._Ol1(this._CL1,_KL1);_OH1._Ol1(_Hl1.Multiply(_LH1,_JL1));_oq1-=_Iv1*_Cm1(this._WJ1,_JL1);_QH1._Df(_Hl1.Multiply(_MH1,_JL1));_pq1+=_Jv1*_Cm1(this._XJ1,_JL1);}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;
},_tI1:function(data){return true;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['localAnchorA']=this._KJ1._Ul1();_Qg['localAnchorB']=this._LJ1._Ul1();_Qg['maxForce']=this._CK1;_Qg['maxTorque']=this._EL1;return _Qg;}};_xJ1._ok1(_jA1);function _ML1(){this.parent.call(this);this.type=_jA1._mJ1;this._BJ1=new _Hl1(0.0,0.0);this._CJ1=new _Hl1(0.0,0.0);this._DJ1=0.0;this._zK1=0.0;this._AK1=0.0;Object.seal(this);}_ML1.prototype={_Qr1:function(_lB1,_mB1,anchor){this._oA1=_lB1;
this._pA1=_mB1;this._BJ1._SN(this._oA1._7y1(anchor));this._CJ1._SN(this._pA1._7y1(anchor));this._DJ1=this._pA1._mm1()-this._oA1._mm1();},_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._BJ1._Vl1(data['localAnchorA']);this._CJ1._Vl1(data['localAnchorB']);this._DJ1=data['referenceAngle'];this._zK1=data['frequencyHz'];this._AK1=data['dampingRatio'];}};_ML1._ok1(_8J1);function _wJ1(_tx1){this.parent.call(this,_tx1);this._UK1=0;this._GK1=0;this._xG1=0;this._yG1=0;
this._WJ1=new _Hl1();this._XJ1=new _Hl1();this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;this._gx1=new _8m1();this._KJ1=_tx1._BJ1._v3();this._LJ1=_tx1._CJ1._v3();this._MJ1=_tx1._DJ1;this._DK1=_tx1._zK1;this._EK1=_tx1._AK1;this._NJ1=new _Xl1();}_wJ1.prototype={_yB1:function(){return this._mA1._4y1(this._KJ1);},_zB1:function(){return this._lA1._4y1(this._LJ1);},_bJ1:function(_sz1){var _Ct1=new _Hl1(this._NJ1.x,this._NJ1.y);return _Hl1.Multiply(_sz1,_Ct1);},_cJ1:function(_sz1){
return _sz1*this._NJ1.z;},_4K1:function(){return this._KJ1;},_5K1:function(){return this._LJ1;},_6K1:function(){return this._MJ1;},_MK1:function(_NK1){this._DK1=_NK1;},_OK1:function(){return this._DK1;},_PK1:function(_VI1){this._EK1=_VI1;},_QK1:function(){return this._EK1;},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1._SN(this._mA1._2x1._sm1);this._ZJ1._SN(this._lA1._2x1._sm1);this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;
var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);this._WJ1._SN(_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1)));this._XJ1._SN(_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1)));var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _rH1=new _8m1();_rH1._ek.x=_LH1+_MH1+this._WJ1.y*this._WJ1.y*_Iv1+this._XJ1.y*this._XJ1.y*_Jv1;
_rH1._UL.x=-this._WJ1.y*this._WJ1.x*_Iv1-this._XJ1.y*this._XJ1.x*_Jv1;_rH1._am1.x=-this._WJ1.y*_Iv1-this._XJ1.y*_Jv1;_rH1._ek.y=_rH1._UL.x;_rH1._UL.y=_LH1+_MH1+this._WJ1.x*this._WJ1.x*_Iv1+this._XJ1.x*this._XJ1.x*_Jv1;_rH1._am1.y=this._WJ1.x*_Iv1+this._XJ1.x*_Jv1;_rH1._ek.z=_rH1._am1.x;_rH1._UL.z=_rH1._am1.y;_rH1._am1.z=_Iv1+_Jv1;if(this._DK1>0.0){_rH1._fm1(this._gx1);var _NL1=_Iv1+_Jv1;var _K6=_NL1>0.0?1.0/_NL1:0.0;var _Wm1=_PH1-_NH1-this._MJ1;var _J21=2.0*_Xk1*this._DK1;var _tm=2.0*_K6*this._EK1*_J21;
var _dl=_K6*_J21*_J21;var h=data.step._OC;this._GK1=h*(_tm+h*_dl);this._GK1=this._GK1!=0.0?1.0/this._GK1:0.0;this._UK1=_Wm1*h*_dl*this._GK1;_NL1+=this._GK1;this._gx1._am1.z=_NL1!=0.0?1.0/_NL1:0.0;}else {_rH1._hm1(this._gx1);this._GK1=0.0;this._UK1=0.0;}if(data.step._wz1){this._NJ1.Multiply(data.step._tz1);var _Ct1=new _Hl1(this._NJ1.x,this._NJ1.y);_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*(_Cm1(this._WJ1,_Ct1)+this._NJ1.z);_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*(_Cm1(this._XJ1,_Ct1)+this._NJ1.z);
}else {this._NJ1._Il1();}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;if(this._DK1>0.0){var _rK1=_pq1-_oq1;var _JL1=-this._gx1._am1.z*(_rK1+this._UK1+this._GK1*this._NJ1.z);this._NJ1.z+=_JL1;_oq1-=_Iv1*_JL1;
_pq1+=_Jv1*_JL1;var _qK1=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_QH1,_Em1(_pq1,this._XJ1)),_OH1),_Em1(_oq1,this._WJ1));var _zL1=_Mm1(this._gx1,_qK1)._Ll1();this._NJ1.x+=_zL1.x;this._NJ1.y+=_zL1.y;var _Ct1=_zL1._v3();_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*_Cm1(this._WJ1,_Ct1);_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*_Cm1(this._XJ1,_Ct1);}else {var _qK1=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_QH1,_Em1(_pq1,this._XJ1)),_OH1),_Em1(_oq1,this._WJ1));var _rK1=_pq1-_oq1;var _nK1=new _Xl1(_qK1.x,_qK1.y,_rK1);var __x1=_Lm1(this._gx1,
_nK1)._Ll1();this._NJ1._Df(__x1);var _Ct1=new _Hl1(__x1.x,__x1.y);_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*(_Cm1(this._WJ1,_Ct1)+__x1.z);_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*(_Cm1(this._XJ1,_Ct1)+__x1.z);}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;
var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _vK1,_uK1;var _rH1=new _8m1();_rH1._ek.x=_LH1+_MH1+_qr1.y*_qr1.y*_Iv1+_rr1.y*_rr1.y*_Jv1;_rH1._UL.x=-_qr1.y*_qr1.x*_Iv1-_rr1.y*_rr1.x*_Jv1;_rH1._am1.x=-_qr1.y*_Iv1-_rr1.y*_Jv1;_rH1._ek.y=_rH1._UL.x;_rH1._UL.y=_LH1+_MH1+_qr1.x*_qr1.x*_Iv1+_rr1.x*_rr1.x*_Jv1;_rH1._am1.y=_qr1.x*_Iv1+_rr1.x*_Jv1;
_rH1._ek.z=_rH1._am1.x;_rH1._UL.z=_rH1._am1.y;_rH1._am1.z=_Iv1+_Jv1;if(this._DK1>0.0){var _wL1=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,_rr1),_AA1),_qr1);_vK1=_wL1.Length();_uK1=0.0;var _Ct1=_rH1._em1(_wL1)._Ll1();_AA1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_NH1-=_Iv1*_Cm1(_qr1,_Ct1);_CA1._Df(_Hl1.Multiply(_MH1,_Ct1));_PH1+=_Jv1*_Cm1(_rr1,_Ct1);}else {var _wL1=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,_rr1),_AA1),_qr1);var _yL1=_PH1-_NH1-this._MJ1;_vK1=_wL1.Length();_uK1=__m1(_yL1);var _Wm1=new _Xl1(_wL1.x,_wL1.y,_yL1);var __x1=_rH1._bm1(_Wm1)._Ll1();
var _Ct1=new _Hl1(__x1.x,__x1.y);_AA1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_NH1-=_Iv1*(_Cm1(_qr1,_Ct1)+__x1.z);_CA1._Df(_Hl1.Multiply(_MH1,_Ct1));_PH1+=_Jv1*(_Cm1(_rr1,_Ct1)+__x1.z);}data._Az1[this._xG1].c._SN(_AA1);data._Az1[this._xG1]._G4=_NH1;data._Az1[this._yG1].c._SN(_CA1);data._Az1[this._yG1]._G4=_PH1;return _vK1<=_1l1&&_uK1<=_2l1;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['localAnchorA']=this._KJ1._Ul1();_Qg['localAnchorB']=this._LJ1._Ul1();_Qg['referenceAngle']=this._MJ1;
_Qg['frequencyHz']=this._DK1;_Qg['dampingRatio']=this._EK1;return _Qg;}};_wJ1._ok1(_jA1);function _OL1(){this.parent.call(this);this.type=_jA1._lJ1;this._BJ1=new _Hl1();this._CJ1=new _Hl1();this._3L1=new _Hl1(1.0,0.0);this._JJ1=false;this._GJ1=0.0;this._HJ1=0.0;this._zK1=2.0;this._AK1=0.7;Object.seal(this);}_OL1.prototype={_Qr1:function(_lB1,_mB1,anchor,_ru){this._oA1=_lB1;this._pA1=_mB1;this._BJ1._SN(this._oA1._7y1(anchor));this._CJ1._SN(this._pA1._7y1(anchor));this._3L1._SN(this._oA1._9y1(_ru));},_Vl1:function(data,
_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._BJ1._Vl1(data['localAnchorA']);this._CJ1._Vl1(data['localAnchorB']);this._3L1._Vl1(data['localAxisA']);this._JJ1=data['enableMotor'];this._GJ1=data['maxMotorTorque'];this._HJ1=data['motorSpeed'];this._zK1=data['frequencyHz'];this._AK1=data['dampingRatio'];}};_OL1._ok1(_8J1);function _vJ1(_tx1){this.parent.call(this,_tx1);this._xG1=0;this._yG1=0;this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;
this._KJ1=_tx1._BJ1._v3();this._LJ1=_tx1._CJ1._v3();this._7L1=_tx1._3L1._v3();this._8L1=_Em1(1.0,this._7L1);this._gx1=0.0;this._NJ1=0.0;this._3K1=0.0;this._OJ1=0.0;this._PL1=0.0;this._QL1=0.0;this._RJ1=_tx1._GJ1;this._SJ1=_tx1._HJ1;this._UJ1=_tx1._JJ1;this._DK1=_tx1._zK1;this._EK1=_tx1._AK1;this._UK1=0.0;this._GK1=0.0;this._RL1=new _Hl1();this._SL1=new _Hl1();this._TL1=this._UL1=0;this._VL1=this._WL1=0;}_vJ1.prototype={_yB1:function(){return this._mA1._4y1(this._KJ1);},_zB1:function(){return this._lA1._4y1(this._LJ1);
},_bJ1:function(_sz1){return _Hl1.Multiply(_sz1,_Hl1._Df(_Hl1.Multiply(this._NJ1,this._SL1),_Hl1.Multiply(this._QL1,this._RL1)));},_cJ1:function(_sz1){return _sz1*this._OJ1;},_4K1:function(){return this._KJ1;},_5K1:function(){return this._LJ1;},_iL1:function(){return this._7L1;},_jL1:function(){var _lB1=this._mA1;var _mB1=this._lA1;var _Fq1=_lB1._4y1(this._KJ1);var _Gq1=_mB1._4y1(this._LJ1);var _tm=_Hl1._Ol1(_Gq1,_Fq1);var _ru=_lB1._5y1(this._7L1);var _3J1=_Bm1(_tm,_ru);return _3J1;},_8K1:function(){var _oq1=this._mA1._8x1;
var _pq1=this._lA1._8x1;return _pq1-_oq1;},_eK1:function(){return this._UJ1;},_S11:function(_oy1){this._mA1._G01(true);this._lA1._G01(true);this._UJ1=_oy1;},_fK1:function(speed){this._mA1._G01(true);this._lA1._G01(true);this._SJ1=speed;},_gK1:function(){return this._SJ1;},_hK1:function(_Yx1){this._mA1._G01(true);this._lA1._G01(true);this._RJ1=_Yx1;},_iK1:function(){return this._RJ1;},_jK1:function(_sz1){return _sz1*this._OJ1;},_XL1:function(_NK1){this._DK1=_NK1;},_YL1:function(){return this._DK1;},_ZL1:function(_VI1){
this._EK1=_VI1;},__L1:function(){return this._EK1;},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1._SN(this._mA1._2x1._sm1);this._ZJ1._SN(this._lA1._2x1._sm1);this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _CA1=data._Az1[this._yG1].c._v3();
var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _tm=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,_rr1),_AA1),_qr1);{this._SL1._SN(_Qm1(_kK1,this._8L1));this._VL1=_Cm1(_Hl1._Df(_tm,_qr1),this._SL1);this._WL1=_Cm1(_rr1,this._SL1);this._gx1=_LH1+_MH1+_Iv1*this._VL1*this._VL1+_Jv1*this._WL1*this._WL1;if(this._gx1>0.0){
this._gx1=1.0/this._gx1;}}this._PL1=0.0;this._UK1=0.0;this._GK1=0.0;if(this._DK1>0.0){this._RL1._SN(_Qm1(_kK1,this._7L1));this._TL1=_Cm1(_Hl1._Df(_tm,_qr1),this._RL1);this._UL1=_Cm1(_rr1,this._RL1);var __K1=_LH1+_MH1+_Iv1*this._TL1*this._TL1+_Jv1*this._UL1*this._UL1;if(__K1>0.0){this._PL1=1.0/__K1;var _Wm1=_Bm1(_tm,this._RL1);var _J21=2.0*_Xk1*this._DK1;var _eD=2.0*this._PL1*this._EK1*_J21;var _dl=this._PL1*_J21*_J21;var h=data.step._OC;this._GK1=h*(_eD+h*_dl);if(this._GK1>0.0){this._GK1=1.0/this._GK1;
}this._UK1=_Wm1*h*_dl*this._GK1;this._PL1=__K1+this._GK1;if(this._PL1>0.0){this._PL1=1.0/this._PL1;}}}else {this._QL1=0.0;}if(this._UJ1){this._3K1=_Iv1+_Jv1;if(this._3K1>0.0){this._3K1=1.0/this._3K1;}}else {this._3K1=0.0;this._OJ1=0.0;}if(data.step._wz1){this._NJ1*=data.step._tz1;this._QL1*=data.step._tz1;this._OJ1*=data.step._tz1;var _Ct1=_Hl1._Df(_Hl1.Multiply(this._NJ1,this._SL1),_Hl1.Multiply(this._QL1,this._RL1));var _rL1=this._NJ1*this._VL1+this._QL1*this._TL1+this._OJ1;var _sL1=this._NJ1*this._WL1+this._QL1*this._UL1+this._OJ1;
_OH1._Ol1(_Hl1.Multiply(this.__J1,_Ct1));_oq1-=this._1K1*_rL1;_QH1._Df(_Hl1.Multiply(this._0K1,_Ct1));_pq1+=this._2K1*_sL1;}else {this._NJ1=0.0;this._QL1=0.0;this._OJ1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;
{var _nK1=_Bm1(this._RL1,_Hl1._Ol1(_QH1,_OH1))+this._UL1*_pq1-this._TL1*_oq1;var __x1=-this._PL1*(_nK1+this._UK1+this._GK1*this._QL1);this._QL1+=__x1;var _Ct1=_Hl1.Multiply(__x1,this._RL1);var _rL1=__x1*this._TL1;var _sL1=__x1*this._UL1;_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*_rL1;_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*_sL1;}{var _nK1=_pq1-_oq1-this._SJ1;var __x1=-this._3K1*_nK1;var _oK1=this._OJ1;var _pK1=data.step._OC*this._RJ1;this._OJ1=_6n1(this._OJ1+__x1,-_pK1,_pK1);__x1=this._OJ1-_oK1;
_oq1-=_Iv1*__x1;_pq1+=_Jv1*__x1;}{var _nK1=_Bm1(this._SL1,_Hl1._Ol1(_QH1,_OH1))+this._WL1*_pq1-this._VL1*_oq1;var __x1=-this._gx1*_nK1;this._NJ1+=__x1;var _Ct1=_Hl1.Multiply(__x1,this._SL1);var _rL1=__x1*this._VL1;var _sL1=__x1*this._WL1;_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*_rL1;_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*_sL1;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){var _AA1=data._Az1[this._xG1].c._v3();
var _NH1=data._Az1[this._xG1]._G4;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _tm=_Hl1._Df(_Hl1._Ol1(_CA1,_AA1),_Hl1._Ol1(_rr1,_qr1));var ay=_Qm1(_kK1,this._8L1);var _0M1=_Cm1(_Hl1._Df(_tm,_qr1),ay);var _1M1=_Cm1(_rr1,ay);var _Wm1=_Bm1(_tm,ay);var _dl=this.__J1+this._0K1+this._1K1*this._VL1*this._VL1+this._2K1*this._WL1*this._WL1;var __x1;
if(_dl!=0.0){__x1=-_Wm1/_dl;}else {__x1=0.0;}var _Ct1=_Hl1.Multiply(__x1,ay);var _rL1=__x1*_0M1;var _sL1=__x1*_1M1;_AA1._Ol1(_Hl1.Multiply(this.__J1,_Ct1));_NH1-=this._1K1*_rL1;_CA1._Df(_Hl1.Multiply(this._0K1,_Ct1));_PH1+=this._2K1*_sL1;data._Az1[this._xG1].c._SN(_AA1);data._Az1[this._xG1]._G4=_NH1;data._Az1[this._yG1].c._SN(_CA1);data._Az1[this._yG1]._G4=_PH1;return __m1(_Wm1)<=_1l1;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['localAnchorA']=this._KJ1._Ul1();_Qg['localAnchorB']=this._LJ1._Ul1();
_Qg['localAxisA']=this._2M1._Ul1();_Qg['enableMotor']=this._UJ1;_Qg['maxMotorTorque']=this._RJ1;_Qg['motorSpeed']=this._SJ1;_Qg['frequencyHz']=this._DK1;_Qg['dampingRatio']=this._EK1;return _Qg;}};_vJ1._ok1(_jA1);function _3M1(){this.parent.call(this);this.type=_jA1._kJ1;this._4M1=null;this._5M1=null;this._VI1=1.0;Object.seal(this);}_3M1.prototype={_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._4M1=data['joint1'];this._5M1=data['joint2'];this._VI1=data['ratio'];
}};_3M1._ok1(_8J1);/// @warning You have to manually destroy the gear joint if joint1 or joint2
function _uJ1(_tx1){this.parent.call(this,_tx1);this._6M1=_tx1._4M1;this._7M1=_tx1._5M1;this._8M1=this._6M1._jg1();this._9M1=this._7M1._jg1();_Tk1(this._8M1==_jA1._iJ1||this._8M1==_jA1._jJ1);_Tk1(this._9M1==_jA1._iJ1||this._9M1==_jA1._jJ1);var _aM1,_bM1;this._cM1=this._6M1._wB1();this._mA1=this._6M1._xB1();var _Rr1=this._mA1._Yt1;var _NH1=this._mA1._2x1._G4;var _dM1=this._cM1._Yt1;var _eM1=this._cM1._2x1._G4;
this._KJ1=new _Hl1();this._LJ1=new _Hl1();this._fM1=new _Hl1();this._gM1=new _Hl1();this._hM1=new _Hl1();this._iM1=new _Hl1();if(this._8M1==_jA1._iJ1){var _jM1=_tx1._4M1;this._fM1._SN(_jM1._KJ1);this._KJ1._SN(_jM1._LJ1);this._kM1=_jM1._MJ1;this._hM1._Il1();_aM1=_NH1-_eM1-this._kM1;}else {var _lM1=_tx1._4M1;this._fM1._SN(_lM1._KJ1);this._KJ1._SN(_lM1._LJ1);this._kM1=_lM1._MJ1;this._hM1._SN(_lM1._7L1);var _mM1=this._fM1;var _Fq1=_Rm1(_dM1.q,_Hl1._Df(_Qm1(_Rr1.q,this._KJ1),_Hl1._Ol1(_Rr1._ih,_dM1._ih)));_aM1=_Bm1(_Hl1._Ol1(_Fq1,
_mM1),this._hM1);}this._nM1=this._7M1._wB1();this._lA1=this._7M1._xB1();var _Tr1=this._lA1._Yt1;var _PH1=this._lA1._2x1._G4;var _oM1=this._nM1._Yt1;var _pM1=this._nM1._2x1._G4;if(this._9M1==_jA1._iJ1){var _jM1=_tx1._5M1;this._gM1._SN(_jM1._KJ1);this._LJ1._SN(_jM1._LJ1);this._qM1=_jM1._MJ1;this._iM1._Il1();_bM1=_PH1-_pM1-this._qM1;}else {var _lM1=_tx1._5M1;this._gM1._SN(_lM1._KJ1);this._LJ1._SN(_lM1._LJ1);this._qM1=_lM1._MJ1;this._iM1._SN(_lM1._7L1);var _rM1=this._gM1;var _Gq1=_Rm1(_oM1.q,_Hl1._Df(_Qm1(_Tr1.q,
this._LJ1),_Hl1._Ol1(_Tr1._ih,_oM1._ih)));_bM1=_Bm1(_Hl1._Ol1(_Gq1,_rM1),this._iM1);}this._sM1=_tx1._VI1;this._tM1=_aM1+this._sM1*_bM1;this._NJ1=0.0;this._xG1=this._yG1=this._uM1=this._vM1=0;this._wM1=new _Hl1();this._xM1=new _Hl1();this._yM1=new _Hl1();this._zM1=new _Hl1();this._AM1=this._BM1=this._CM1=this._DM1=0;this._EM1=this._FM1=this._GM1=this._HM1=0;this._IM1=new _Hl1(),this._JM1=new _Hl1();this._KM1=this._LM1=this._MM1=this._NM1=0;this._gx1=0;}_uJ1.prototype={_yB1:function(){return this._mA1._4y1(this._KJ1);
},_zB1:function(){return this._lA1._4y1(this._LJ1);},_bJ1:function(_sz1){var _Ct1=_Hl1.Multiply(this._NJ1,this._IM1);return _Hl1.Multiply(_sz1,_Ct1);},_cJ1:function(_sz1){var _OM1=this._NJ1*this._KM1;return _sz1*_OM1;},_PM1:function(){return this._6M1;},_QM1:function(){return this._7M1;},_RM1:function(_VI1){_Tk1(_xl1(_VI1));this._sM1=_VI1;},_SM1:function(){return this._sM1;},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._uM1=this._cM1._Uw1;this._vM1=this._nM1._Uw1;this._wM1._SN(this._mA1._2x1._sm1);
this._xM1._SN(this._lA1._2x1._sm1);this._yM1._SN(this._cM1._2x1._sm1);this._zM1._SN(this._nM1._2x1._sm1);this._AM1=this._mA1._hx1;this._BM1=this._lA1._hx1;this._CM1=this._cM1._hx1;this._DM1=this._nM1._hx1;this._EM1=this._mA1._jx1;this._FM1=this._lA1._jx1;this._GM1=this._cM1._jx1;this._HM1=this._nM1._jx1;var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;
var _eM1=data._Az1[this._uM1]._G4;var _TM1=data._Bz1[this._uM1]._n5._v3();var _UM1=data._Bz1[this._uM1].w;var _pM1=data._Az1[this._vM1]._G4;var _VM1=data._Bz1[this._vM1]._n5._v3();var _WM1=data._Bz1[this._vM1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1),_XM1=new _lm1(_eM1),_YM1=new _lm1(_pM1);this._gx1=0.0;if(this._8M1==_jA1._iJ1){this._IM1._Il1();this._KM1=1.0;this._MM1=1.0;this._gx1+=this._EM1+this._GM1;}else {var _m5=_Qm1(_XM1,this._hM1);var _ZM1=_Qm1(_XM1,_Hl1._Ol1(this._fM1,this._yM1));var _qr1=_Qm1(_kK1,
_Hl1._Ol1(this._KJ1,this._wM1));this._IM1._SN(_m5);this._MM1=_Cm1(_ZM1,_m5);this._KM1=_Cm1(_qr1,_m5);this._gx1+=this._CM1+this._AM1+this._GM1*this._MM1*this._MM1+this._EM1*this._KM1*this._KM1;}if(this._9M1==_jA1._iJ1){this._JM1._Il1();this._LM1=this._sM1;this._NM1=this._sM1;this._gx1+=this._sM1*this._sM1*(this._FM1+this._HM1);}else {var _m5=_Qm1(_YM1,this._iM1);var __M1=_Qm1(_YM1,_Hl1._Ol1(this._gM1,this._zM1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._xM1));this._JM1._SN(_Hl1.Multiply(this._sM1,
_m5));this._NM1=this._sM1*_Cm1(__M1,_m5);this._LM1=this._sM1*_Cm1(_rr1,_m5);this._gx1+=this._sM1*this._sM1*(this._DM1+this._BM1)+this._HM1*this._NM1*this._NM1+this._FM1*this._LM1*this._LM1;}this._gx1=this._gx1>0.0?1.0/this._gx1:0.0;if(data.step._wz1){_OH1._Df(_Hl1.Multiply((this._AM1*this._NJ1),this._IM1));_oq1+=this._EM1*this._NJ1*this._KM1;_QH1._Df(_Hl1.Multiply((this._BM1*this._NJ1),this._JM1));_pq1+=this._FM1*this._NJ1*this._LM1;_TM1._Ol1(_Hl1.Multiply((this._CM1*this._NJ1),this._IM1));_UM1-=this._GM1*this._NJ1*this._MM1;
_VM1._Ol1(_Hl1.Multiply((this._DM1*this._NJ1),this._JM1));_WM1-=this._HM1*this._NJ1*this._NM1;}else {this._NJ1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;data._Bz1[this._uM1]._n5._SN(_TM1);data._Bz1[this._uM1].w=_UM1;data._Bz1[this._vM1]._n5._SN(_VM1);data._Bz1[this._vM1].w=_WM1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;
var _TM1=data._Bz1[this._uM1]._n5._v3();var _UM1=data._Bz1[this._uM1].w;var _VM1=data._Bz1[this._vM1]._n5._v3();var _WM1=data._Bz1[this._vM1].w;var _nK1=_Bm1(this._IM1,_Hl1._Ol1(_OH1,_TM1))+_Bm1(this._JM1,_Hl1._Ol1(_QH1,_VM1));_nK1+=(this._KM1*_oq1-this._MM1*_UM1)+(this._LM1*_pq1-this._NM1*_WM1);var __x1=-this._gx1*_nK1;this._NJ1+=__x1;_OH1._Df(_Hl1.Multiply((this._AM1*__x1),this._IM1));_oq1+=this._EM1*__x1*this._KM1;_QH1._Df(_Hl1.Multiply((this._BM1*__x1),this._JM1));_pq1+=this._FM1*__x1*this._LM1;_TM1._Ol1(_Hl1.Multiply((this._CM1*__x1),
this._IM1));_UM1-=this._GM1*__x1*this._MM1;_VM1._Ol1(_Hl1.Multiply((this._DM1*__x1),this._JM1));_WM1-=this._HM1*__x1*this._NM1;data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;data._Bz1[this._uM1]._n5._SN(_TM1);data._Bz1[this._uM1].w=_UM1;data._Bz1[this._vM1]._n5._SN(_VM1);data._Bz1[this._vM1].w=_WM1;},_tI1:function(data){var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _CA1=data._Az1[this._yG1].c._v3();
var _PH1=data._Az1[this._yG1]._G4;var _0N1=data._Az1[this._uM1].c._v3();var _eM1=data._Az1[this._uM1]._G4;var _1N1=data._Az1[this._vM1].c._v3();var _pM1=data._Az1[this._vM1]._G4;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1),_XM1=new _lm1(_eM1),_YM1=new _lm1(_pM1);var _xL1=0.0;var _aM1,_bM1;var _2N1=new _Hl1(),_3N1=new _Hl1();var _4N1,_5N1,_6N1,_7N1;var _Kn1=0.0;if(this._8M1==_jA1._iJ1){_2N1._Il1();_4N1=1.0;_6N1=1.0;_Kn1+=this._EM1+this._GM1;_aM1=_NH1-_eM1-this._kM1;}else {var _m5=_Qm1(_XM1,this._hM1);var _ZM1=_Qm1(_XM1,
_Hl1._Ol1(this._fM1,this._yM1));var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._wM1));_2N1._SN(_m5);_6N1=_Cm1(_ZM1,_m5);_4N1=_Cm1(_qr1,_m5);_Kn1+=this._CM1+this._AM1+this._GM1*_6N1*_6N1+this._EM1*_4N1*_4N1;var _mM1=_Hl1._Ol1(this._fM1,this._yM1);var _Fq1=_Rm1(_XM1,_Hl1._Df(_qr1,_Hl1._Ol1(_AA1,_0N1)));_aM1=_Bm1(_Hl1._Ol1(_Fq1,_mM1),this._hM1);}if(this._9M1==_jA1._iJ1){_3N1._Il1();_5N1=this._sM1;_7N1=this._sM1;_Kn1+=this._sM1*this._sM1*(this._FM1+this._HM1);_bM1=_PH1-_pM1-this._qM1;}else {var _m5=_Qm1(_YM1,
this._iM1);var __M1=_Qm1(_YM1,_Hl1._Ol1(this._gM1,this._zM1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._xM1));_3N1._SN(_Hl1.Multiply(this._sM1,_m5));_7N1=this._sM1*_Cm1(__M1,_m5);_5N1=this._sM1*_Cm1(_rr1,_m5);_Kn1+=this._sM1*this._sM1*(this._DM1+this._BM1)+this._HM1*_7N1*_7N1+this._FM1*_5N1*_5N1;var _rM1=_Hl1._Ol1(this._gM1,this._zM1);var _Gq1=_Rm1(_YM1,_Hl1._Df(_rr1,_Hl1._Ol1(_CA1,_1N1)));_bM1=_Bm1(_Hl1._Ol1(_Gq1,_rM1),this._iM1);}var _Wm1=(_aM1+this._sM1*_bM1)-this._tM1;var __x1=0.0;if(_Kn1>0.0){
__x1=-_Wm1/_Kn1;}_AA1._Df(_Hl1.Multiply(this._AM1,_Hl1.Multiply(__x1,_2N1)));_NH1+=this._EM1*__x1*_4N1;_CA1._Df(_Hl1.Multiply(this._BM1,_Hl1.Multiply(__x1,_3N1)));_PH1+=this._FM1*__x1*_5N1;_0N1._Ol1(_Hl1.Multiply(this._CM1,_Hl1.Multiply(__x1,_2N1)));_eM1-=this._GM1*__x1*_6N1;_1N1._Ol1(_Hl1.Multiply(this._DM1,_Hl1.Multiply(__x1,_3N1)));_pM1-=this._HM1*__x1*_7N1;data._Az1[this._xG1].c._SN(_AA1);data._Az1[this._xG1]._G4=_NH1;data._Az1[this._yG1].c._SN(_CA1);data._Az1[this._yG1]._G4=_PH1;data._Az1[this._uM1].c._SN(_0N1);
data._Az1[this._uM1]._G4=_eM1;data._Az1[this._vM1].c._SN(_1N1);data._Az1[this._vM1]._G4=_pM1;return _xL1<_1l1;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['joint1']=this._6M1._8N1;_Qg['joint2']=this._7M1._8N1;_Qg['ratio']=this._sM1;return _Qg;}};_uJ1._ok1(_jA1);function _9N1(){this.parent.call(this);this.type=_jA1._GB1;this._aN1=new _Hl1();this._bN1=0.0;this._yK1=1.0;this._BL1=1.0;this._cN1=0.3;Object.seal(this);}_9N1.prototype={_Qr1:function(_lB1,_mB1){this._oA1=_lB1;
this._pA1=_mB1;var _dN1=this._pA1._W_();this._aN1._SN(this._oA1._7y1(_dN1));var _eN1=this._oA1._mm1();var _fN1=this._pA1._mm1();this._bN1=_fN1-_eN1;},_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._aN1._Vl1(data['linearOffset']);this._bN1=data['angularOffset'];this._yK1=data['maxForce'];this._BL1=data['maxTorque'];this._cN1=data['correctionFactor'];}};_9N1._ok1(_8J1);function _zJ1(_tx1){this.parent.call(this,_tx1);this._gN1=_tx1._aN1._v3();this._hN1=_tx1._bN1;
this._CL1=new _Hl1();this._DL1=0.0;this._CK1=_tx1._yK1;this._EL1=_tx1._BL1;this._iN1=_tx1._cN1;this._xG1=0;this._yG1=0;this._WJ1=new _Hl1();this._XJ1=new _Hl1();this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this._jN1=new _Hl1();this._kN1=0;this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;this._FL1=new _Zl1();this._GL1=0;}_zJ1.prototype={_yB1:function(){return this._mA1._W_();},_zB1:function(){return this._lA1._W_();},_bJ1:function(_sz1){return _Hl1.Multiply(_sz1,this._CL1);},_cJ1:function(_sz1){return _sz1*this._DL1;
},_lN1:function(_aN1){if(_aN1.x!=this._gN1.x||_aN1.y!=this._gN1.y){this._mA1._G01(true);this._lA1._G01(true);this._gN1._SN(_aN1);}},_IB1:function(){return this._gN1;},_mN1:function(_bN1){if(_bN1!=this._hN1){this._mA1._G01(true);this._lA1._G01(true);this._hN1=_bN1;}},_nN1:function(){return this._hN1;},_KK1:function(_Vx1){_Tk1(_xl1(_Vx1)&&_Vx1>=0.0);this._CK1=_Vx1;},_LK1:function(){return this._CK1;},_HL1:function(_Yx1){_Tk1(_xl1(_Yx1)&&_Yx1>=0.0);this._EL1=_Yx1;},_IL1:function(){return this._EL1;},_oN1:function(factor){
_Tk1(_xl1(factor)&&0.0<=factor&&factor<=1.0);this._iN1=factor;},_pN1:function(){return this._iN1;},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1._SN(this._mA1._2x1._sm1);this._ZJ1._SN(this._lA1._2x1._sm1);this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _CA1=data._Az1[this._yG1].c._v3();
var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);this._WJ1._SN(_Qm1(_kK1,this._YJ1._Ll1()));this._XJ1._SN(_Qm1(_lK1,this._ZJ1._Ll1()));var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var _rH1=new _Zl1();_rH1._ek.x=_LH1+_MH1+_Iv1*this._WJ1.y*this._WJ1.y+_Jv1*this._XJ1.y*this._XJ1.y;_rH1._ek.y=-_Iv1*this._WJ1.x*this._WJ1.y-_Jv1*this._XJ1.x*this._XJ1.y;_rH1._UL.x=_rH1._ek.y;_rH1._UL.y=_LH1+_MH1+_Iv1*this._WJ1.x*this._WJ1.x+_Jv1*this._XJ1.x*this._XJ1.x;
this._FL1._SN(_rH1._0m1());this._GL1=_Iv1+_Jv1;if(this._GL1>0.0){this._GL1=1.0/this._GL1;}this._jN1.x=_CA1.x+this._XJ1.x-_AA1.x-this._WJ1.x-(_kK1.c*this._gN1.x-_kK1._qi*this._gN1.y);this._jN1.y=_CA1.y+this._XJ1.y-_AA1.y-this._WJ1.y-(_kK1._qi*this._gN1.x+_kK1.c*this._gN1.y);this._kN1=_PH1-_NH1-this._hN1;if(data.step._wz1){this._CL1.Multiply(data.step._tz1);this._DL1*=data.step._tz1;var _Ct1=new _Hl1(this._CL1.x,this._CL1.y);_OH1._Ol1(_Hl1.Multiply(_LH1,_Ct1));_oq1-=_Iv1*(_Cm1(this._WJ1,_Ct1)+this._DL1);
_QH1._Df(_Hl1.Multiply(_MH1,_Ct1));_pq1+=_Jv1*(_Cm1(this._XJ1,_Ct1)+this._DL1);}else {this._CL1._Il1();this._DL1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _LH1=this.__J1,_MH1=this._0K1;var _Iv1=this._1K1,_Jv1=this._2K1;var h=data.step._OC;var _qN1=data.step._sz1;
{var _nK1=_pq1-_oq1+_qN1*this._iN1*this._kN1;var __x1=-this._GL1*_nK1;var _oK1=this._DL1;var _pK1=h*this._EL1;this._DL1=_6n1(this._DL1+__x1,-_pK1,_pK1);__x1=this._DL1-_oK1;_oq1-=_Iv1*__x1;_pq1+=_Jv1*__x1;}{var _nK1=new _Hl1(_QH1.x+(-_pq1*this._XJ1.x)-_OH1.x-(-_oq1*this._WJ1.x)+_qN1*this._iN1*this._jN1.x,_QH1.y+(_pq1*this._XJ1.y)-_OH1.y-(_oq1*this._WJ1.y)+_qN1*this._iN1*this._jN1.y);var __x1=_Fm1(this._FL1,_nK1)._Ll1();var _oK1=this._CL1._v3();this._CL1._Df(__x1);var _pK1=h*this._CK1;if(this._CL1._Pl1()>_pK1*_pK1){
this._CL1._Ql1();this._CL1.Multiply(_pK1);}__x1._SN(_Hl1._Ol1(this._CL1,_oK1));_OH1._Ol1(_Hl1.Multiply(_LH1,__x1));_oq1-=_Iv1*_Cm1(this._WJ1,__x1);_QH1._Df(_Hl1.Multiply(_MH1,__x1));_pq1+=_Jv1*_Cm1(this._XJ1,__x1);}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){return true;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['linearOffset']=this._gN1._Ul1();_Qg['angularOffset']=this._hN1;
_Qg['maxForce']=this._CK1;_Qg['maxTorque']=this._EL1;_Qg['correctionFactor']=this._iN1;return _Qg;}};_zJ1._ok1(_jA1);var _rN1=2.0;function _sN1(){this.parent.call(this);this.type=_jA1._BB1;this._tN1=new _Hl1(-1.0,1.0);this._uN1=new _Hl1(1.0,1.0);this._BJ1=new _Hl1(-1.0,0.0);this._CJ1=new _Hl1(1.0,0.0);this._vN1=0.0;this._wN1=0.0;this._VI1=1.0;this._qA1=true;Object.seal(this);}_sN1.prototype={_Qr1:function(_lB1,_mB1,_xN1,_yN1,_zN1,_AN1,_D4){this._oA1=_lB1;this._pA1=_mB1;this._tN1._SN(_xN1);this._uN1._SN(_yN1);
this._BJ1._SN(this._oA1._7y1(_zN1));this._CJ1._SN(this._pA1._7y1(_AN1));var _BN1=_Hl1._Ol1(_zN1,_xN1);this._vN1=_BN1.Length();var _CN1=_Hl1._Ol1(_AN1,_yN1);this._wN1=_CN1.Length();this._VI1=_D4;_Tk1(this._VI1>_Wk1);},_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._tN1._Vl1(data['groundAnchorA']);this._uN1._Vl1(data['groundAnchorB']);this._BJ1._Vl1(data['localAnchorA']);this._CJ1._Vl1(data['localAnchorB']);this._vN1=data['lengthA'];this._wN1=data['lengthB'];
this._VI1=data['ratio'];}};_sN1._ok1(_8J1);function _tJ1(_tx1){this.parent.call(this,_tx1);this._xG1=0;this._yG1=0;this._DN1=new _Hl1();this._EN1=new _Hl1();this._WJ1=new _Hl1();this._XJ1=new _Hl1();this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;this._gx1=0;this._FN1=_tx1._tN1._v3();this._GN1=_tx1._uN1._v3();this._KJ1=_tx1._BJ1._v3();this._LJ1=_tx1._CJ1._v3();this._HN1=_tx1._vN1;this._IN1=_tx1._wN1;_Tk1(_tx1._VI1!=0.0);this._sM1=_tx1._VI1;this._tM1=_tx1._vN1+this._sM1*_tx1._wN1;
this._NJ1=0.0;}_tJ1.prototype={_yB1:function(){return this._mA1._4y1(this._KJ1);},_zB1:function(){return this._lA1._4y1(this._LJ1);},_bJ1:function(_sz1){var _Ct1=_Hl1.Multiply(this._NJ1,this._EN1);return _Hl1.Multiply(_sz1,_Ct1);},_cJ1:function(_sz1){return 0.0;},_DB1:function(){return this._FN1;},_EB1:function(){return this._GN1;},_JN1:function(){return this._HN1;},_KN1:function(){return this._IN1;},_SM1:function(){return this._sM1;},_LN1:function(){var _ih=this._mA1._4y1(this._KJ1);var _qi=this._FN1;var _tm=_Hl1._Ol1(_ih,
_qi);return _tm.Length();},_MN1:function(){var _ih=this._lA1._4y1(this._LJ1);var _qi=this._GN1;var _tm=_Hl1._Ol1(_ih,_qi);return _tm.Length();},_2q1:function(_3q1){this._FN1._Ol1(_3q1);this._GN1._Ol1(_3q1);},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1._SN(this._mA1._2x1._sm1);this._ZJ1._SN(this._lA1._2x1._sm1);this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;
var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);this._WJ1._SN(_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1)));this._XJ1._SN(_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1)));this._DN1._SN(_Hl1._Df(_AA1,_Hl1._Ol1(this._WJ1,this._FN1)));this._EN1._SN(_Hl1._Df(_CA1,_Hl1._Ol1(this._XJ1,this._GN1)));var _vN1=this._DN1.Length();
var _wN1=this._EN1.Length();if(_vN1>10.0*_1l1){this._DN1.Multiply(1.0/_vN1);}else {this._DN1._Il1();}if(_wN1>10.0*_1l1){this._EN1.Multiply(1.0/_wN1);}else {this._EN1._Il1();}var _NN1=_Cm1(this._WJ1,this._DN1);var _ON1=_Cm1(this._XJ1,this._EN1);var _LH1=this.__J1+this._1K1*_NN1*_NN1;var _MH1=this._0K1+this._2K1*_ON1*_ON1;this._gx1=_LH1+this._sM1*this._sM1*_MH1;if(this._gx1>0.0){this._gx1=1.0/this._gx1;}if(data.step._wz1){this._NJ1*=data.step._tz1;var _PN1=_Hl1.Multiply(-(this._NJ1),this._DN1);var _QN1=_Hl1.Multiply((-this._sM1*this._NJ1),
this._EN1);_OH1._Df(_Hl1.Multiply(this.__J1,_PN1));_oq1+=this._1K1*_Cm1(this._WJ1,_PN1);_QH1._Df(_Hl1.Multiply(this._0K1,_QN1));_pq1+=this._2K1*_Cm1(this._XJ1,_QN1);}else {this._NJ1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _0L1=_Hl1._Df(_OH1,_Em1(_oq1,
this._WJ1));var _1L1=_Hl1._Df(_QH1,_Em1(_pq1,this._XJ1));var _nK1=-_Bm1(this._DN1,_0L1)-this._sM1*_Bm1(this._EN1,_1L1);var __x1=-this._gx1*_nK1;this._NJ1+=__x1;var _PN1=_Hl1.Multiply(-__x1,this._DN1);var _QN1=_Hl1.Multiply(-this._sM1,_Hl1.Multiply(__x1,this._EN1));_OH1._Df(_Hl1.Multiply(this.__J1,_PN1));_oq1+=this._1K1*_Cm1(this._WJ1,_PN1);_QH1._Df(_Hl1.Multiply(this._0K1,_QN1));_pq1+=this._2K1*_Cm1(this._XJ1,_QN1);data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);
data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _RN1=_Hl1._Df(_AA1,_Hl1._Ol1(_qr1,this._FN1));var _SN1=_Hl1._Df(_CA1,_Hl1._Ol1(_rr1,this._GN1));var _vN1=_RN1.Length();var _wN1=_SN1.Length();if(_vN1>10.0*_1l1){_RN1.Multiply(1.0/_vN1);
}else {_RN1._Il1();}if(_wN1>10.0*_1l1){_SN1.Multiply(1.0/_wN1);}else {_SN1._Il1();}var _NN1=_Cm1(_qr1,_RN1);var _ON1=_Cm1(_rr1,_SN1);var _LH1=this.__J1+this._1K1*_NN1*_NN1;var _MH1=this._0K1+this._2K1*_ON1*_ON1;var _Kn1=_LH1+this._sM1*this._sM1*_MH1;if(_Kn1>0.0){_Kn1=1.0/_Kn1;}var _Wm1=this._tM1-_vN1-this._sM1*_wN1;var _xL1=__m1(_Wm1);var __x1=-_Kn1*_Wm1;var _PN1=_Hl1.Multiply(-__x1,_RN1);var _QN1=_Hl1.Multiply(-this._sM1,_Hl1.Multiply(__x1,_SN1));_AA1._Df(_Hl1.Multiply(this.__J1,_PN1));_NH1+=this._1K1*_Cm1(_qr1,
_PN1);_CA1._Df(_Hl1.Multiply(this._0K1,_QN1));_PH1+=this._2K1*_Cm1(_rr1,_QN1);data._Az1[this._xG1].c._SN(_AA1);data._Az1[this._xG1]._G4=_NH1;data._Az1[this._yG1].c._SN(_CA1);data._Az1[this._yG1]._G4=_PH1;return _xL1<_1l1;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['groundAnchorA']=this._FN1._Ul1();_Qg['groundAnchorB']=this._GN1._Ul1();_Qg['localAnchorA']=this._KJ1._Ul1();_Qg['localAnchorB']=this._LJ1._Ul1();_Qg['lengthA']=this._HN1;_Qg['lengthB']=this._IN1;_Qg['ratio']=this._sM1;
return _Qg;}};_tJ1._ok1(_jA1);function _TN1(){this.parent.call(this);this.type=_jA1._oJ1;this._BJ1=new _Hl1(-1.0,0.0);this._CJ1=new _Hl1(1.0,0.0);this._UN1=0.0;Object.seal(this);}_TN1.prototype={_Vl1:function(data,_sB1,_aJ1){this.parent.prototype._Vl1.call(this,data,_sB1,_aJ1);this._BJ1._Vl1(data['localAnchorA']);this._CJ1._Vl1(data['localAnchorB']);this._UN1=data['maxLength'];}};_TN1._ok1(_8J1);function _yJ1(_tx1){this.parent.call(this,_tx1);this._KJ1=_tx1._BJ1._v3();this._LJ1=_tx1._CJ1._v3();this._VN1=_tx1._UN1;
this._gx1=0.0;this._NJ1=0.0;this._WN1=_jA1._eJ1;this._PS=0.0;this._xG1=0;this._yG1=0;this._VK1=new _Hl1();this._WJ1=new _Hl1();this._XJ1=new _Hl1();this._YJ1=new _Hl1();this._ZJ1=new _Hl1();this.__J1=0;this._0K1=0;this._1K1=0;this._2K1=0;}_yJ1.prototype={_yB1:function(){return this._mA1._4y1(this._KJ1);},_zB1:function(){return this._lA1._4y1(this._LJ1);},_bJ1:function(_sz1){var _Nv1=_Hl1.Multiply((_sz1*this._NJ1),this._VK1);return _Nv1;},_cJ1:function(_sz1){return 0.0;},_4K1:function(){return this._KJ1;},_5K1:function(){
return this._LJ1;},_XN1:function(length){this._VN1=length;},_YN1:function(){return this._VN1;},_ZN1:function(){return this._WN1;},_RI1:function(data){this._xG1=this._mA1._Uw1;this._yG1=this._lA1._Uw1;this._YJ1._SN(this._mA1._2x1._sm1);this._ZJ1._SN(this._lA1._2x1._sm1);this.__J1=this._mA1._hx1;this._0K1=this._lA1._hx1;this._1K1=this._mA1._jx1;this._2K1=this._lA1._jx1;var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;
var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);this._WJ1._SN(_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1)));this._XJ1._SN(_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1)));this._VK1._SN(_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,this._XJ1),_AA1),this._WJ1));this._PS=this._VK1.Length();var _Wm1=this._PS-this._VN1;if(_Wm1>0.0){this._WN1=_jA1._gJ1;}else {this._WN1=_jA1._eJ1;}if(this._PS>_1l1){
this._VK1.Multiply(1.0/this._PS);}else {this._VK1._Il1();this._gx1=0.0;this._NJ1=0.0;return;}var __N1=_Cm1(this._WJ1,this._VK1);var _0O1=_Cm1(this._XJ1,this._VK1);var __K1=this.__J1+this._1K1*__N1*__N1+this._0K1+this._2K1*_0O1*_0O1;this._gx1=__K1!=0.0?1.0/__K1:0.0;if(data.step._wz1){this._NJ1*=data.step._tz1;var _Ct1=_Hl1.Multiply(this._NJ1,this._VK1);_OH1._Ol1(_Hl1.Multiply(this.__J1,_Ct1));_oq1-=this._1K1*_Cm1(this._WJ1,_Ct1);_QH1._Df(_Hl1.Multiply(this._0K1,_Ct1));_pq1+=this._2K1*_Cm1(this._XJ1,_Ct1);
}else {this._NJ1=0.0;}data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_8I1:function(data){var _OH1=data._Bz1[this._xG1]._n5._v3();var _oq1=data._Bz1[this._xG1].w;var _QH1=data._Bz1[this._yG1]._n5._v3();var _pq1=data._Bz1[this._yG1].w;var _0L1=_Hl1._Df(_OH1,_Em1(_oq1,this._WJ1));var _1L1=_Hl1._Df(_QH1,_Em1(_pq1,this._XJ1));var _Wm1=this._PS-this._VN1;var _nK1=_Bm1(this._VK1,_Hl1._Ol1(_1L1,_0L1));if(_Wm1<0.0){_nK1+=data.step._sz1*_Wm1;
}var __x1=-this._gx1*_nK1;var _oK1=this._NJ1;this._NJ1=_2n1(0.0,this._NJ1+__x1);__x1=this._NJ1-_oK1;var _Ct1=_Hl1.Multiply(__x1,this._VK1);_OH1._Ol1(_Hl1.Multiply(this.__J1,_Ct1));_oq1-=this._1K1*_Cm1(this._WJ1,_Ct1);_QH1._Df(_Hl1.Multiply(this._0K1,_Ct1));_pq1+=this._2K1*_Cm1(this._XJ1,_Ct1);data._Bz1[this._xG1]._n5._SN(_OH1);data._Bz1[this._xG1].w=_oq1;data._Bz1[this._yG1]._n5._SN(_QH1);data._Bz1[this._yG1].w=_pq1;},_tI1:function(data){var _AA1=data._Az1[this._xG1].c._v3();var _NH1=data._Az1[this._xG1]._G4;
var _CA1=data._Az1[this._yG1].c._v3();var _PH1=data._Az1[this._yG1]._G4;var _kK1=new _lm1(_NH1),_lK1=new _lm1(_PH1);var _qr1=_Qm1(_kK1,_Hl1._Ol1(this._KJ1,this._YJ1));var _rr1=_Qm1(_lK1,_Hl1._Ol1(this._LJ1,this._ZJ1));var _m5=_Hl1._Ol1(_Hl1._Ol1(_Hl1._Df(_CA1,_rr1),_AA1),_qr1);var length=_m5._Ql1();var _Wm1=length-this._VN1;_Wm1=_6n1(_Wm1,0.0,_7l1);var __x1=-this._gx1*_Wm1;var _Ct1=_Hl1.Multiply(__x1,_m5);_AA1._Ol1(_Hl1.Multiply(this.__J1,_Ct1));_NH1-=this._1K1*_Cm1(_qr1,_Ct1);_CA1._Df(_Hl1.Multiply(this._0K1,
_Ct1));_PH1+=this._2K1*_Cm1(_rr1,_Ct1);data._Az1[this._xG1].c._SN(_AA1);data._Az1[this._xG1]._G4=_NH1;data._Az1[this._yG1].c._SN(_CA1);data._Az1[this._yG1]._G4=_PH1;return length-this._VN1<_1l1;},_Ul1:function(out){var _Qg=out||{};this.parent.prototype._Ul1.call(this,_Qg);_Qg['localAnchorA']=this._KJ1._Ul1();_Qg['localAnchorB']=this._LJ1._Ul1();_Qg['maxLength']=this._VN1;return _Qg;}};_yJ1._ok1(_jA1);var _1O1=Math.exp;function _2O1(){this.vertices=null;this._E8=0;this._3O1=null;this.gravity=new _Hl1();
this._831=0.1;this._4O1=0.9;this._5O1=0.1;}function _6O1(){this._to1=0;this._7O1=null;this._8O1=null;this._9O1=null;this._aO1=null;this._bO1=null;this._cO1=null;this._dO1=0;this._Sz1=new _Hl1();this._eO1=1.0;this._fO1=0.1;}_6O1.prototype={_Qr1:function(_tx1){_Tk1(_tx1._E8>=3);this._to1=_tx1._E8;this._7O1=new Array(this._to1);this._8O1=new Array(this._to1);this._9O1=new Array(this._to1);this._aO1=new Array(this._to1);for(var i=0;i<this._to1;++i){this._7O1[i]=_tx1.vertices[i]._v3();this._8O1[i]=_tx1.vertices[i]._v3();
this._9O1[i]=new _Hl1();var _K6=_tx1._3O1[i];if(_K6>0.0){this._aO1[i]=1.0/_K6;}else {this._aO1[i]=0.0;}}var _Qs1=this._to1-1;var _gO1=this._to1-2;this._bO1=new Array(_Qs1);this._cO1=new Array(_gO1);for(var i=0;i<_Qs1;++i){var _qu=this._7O1[i];var _rn1=this._7O1[i+1];this._bO1[i]=_Hm1(_qu,_rn1);}for(var i=0;i<_gO1;++i){var _qu=this._7O1[i];var _rn1=this._7O1[i+1];var _kp1=this._7O1[i+2];var _dD=_Hl1._Ol1(_rn1,_qu);var _eD=_Hl1._Ol1(_kp1,_rn1);var _G4=_Cm1(_dD,_eD);var _F4=_Bm1(_dD,_eD);this._cO1[i]=_Fl1(_G4,_F4);}
this._Sz1=_tx1.gravity._v3();this._dO1=_tx1._831;this._eO1=_tx1._4O1;this._fO1=_tx1._5O1;},_rA1:function(h,iterations){if(h==0.0){return;}var _tm=_1O1(-h*this._dO1);for(var i=0;i<this._to1;++i){this._8O1[i]._SN(this._7O1[i]);if(this._aO1[i]>0.0){this._9O1[i]._Df(_Hl1.Multiply(h,this._Sz1));}this._9O1[i].Multiply(_tm);this._7O1[i]._Df(_Hl1.Multiply(h,this._9O1[i]));}for(var i=0;i<iterations;++i){this._hO1();this._iO1();this._hO1();}var _qN1=1.0/h;for(var i=0;i<this._to1;++i){this._9O1[i]=_Hl1.Multiply(_qN1,
_Hl1._Ol1(this._7O1[i],this._8O1[i]));}},_de:function(){return this._to1;},_jO1:function(){return this._7O1;},_a9:function(_kO1){var c=new _dn1(0.4,0.5,0.7);for(var i=0;i<this._to1-1;++i){_kO1._qn1(this._7O1[i],this._7O1[i+1],c);}},_lO1:function(angle){var _gO1=this._to1-2;for(var i=0;i<_gO1;++i){this._cO1[i]=angle;}},_hO1:function(){var _Qs1=this._to1-1;for(var i=0;i<_Qs1;++i){var _qu=this._7O1[i];var _rn1=this._7O1[i+1];var _tm=_Hl1._Ol1(_rn1,_qu);var _OM1=_tm._Ql1();var _mO1=this._aO1[i];var _nO1=this._aO1[i+1];
if(_mO1+_nO1==0.0){continue;}var _0B=_mO1/(_mO1+_nO1);var _1B=_nO1/(_mO1+_nO1);_qu._Ol1(_Hl1.Multiply(this._eO1*_0B*(this._bO1[i]-_OM1),_tm));_rn1._Df(_Hl1.Multiply(this._eO1*_1B*(this._bO1[i]-_OM1),_tm));}},_iO1:function(){var _gO1=this._to1-2;for(var i=0;i<_gO1;++i){var _qu=this._7O1[i];var _rn1=this._7O1[i+1];var _kp1=this._7O1[i+2];var _oO1=this._aO1[i];var _pO1=this._aO1[i+1];var _qO1=this._aO1[i+2];var _dD=_Hl1._Ol1(_rn1,_qu);var _eD=_Hl1._Ol1(_kp1,_rn1);var _rO1=_dD._Pl1();var _sO1=_eD._Pl1();if(_rO1*_sO1==0.0){
continue;}var _G4=_Cm1(_dD,_eD);var _F4=_Bm1(_dD,_eD);var angle=_Fl1(_G4,_F4);var _tO1=_Hl1.Multiply((-1.0/_rO1),_dD._Tl1());var _uO1=_Hl1.Multiply((1.0/_sO1),_eD._Tl1());var _vO1=_Hl1._Ll1(_tO1);var _wO1=_Hl1._Ol1(_tO1,_uO1);var _xO1=_uO1;var _Kn1=_oO1*_Bm1(_vO1,_vO1)+_pO1*_Bm1(_wO1,_wO1)+_qO1*_Bm1(_xO1,_xO1);if(_Kn1==0.0){continue;}_Kn1=1.0/_Kn1;var _Wm1=angle-this._cO1[i];while(_Wm1>_Xk1){angle-=2*_Xk1;_Wm1=angle-this._cO1[i];}while(_Wm1<-_Xk1){angle+=2.0*_Xk1;_Wm1=angle-this._cO1[i];}var __x1=-this._fO1*_Kn1*_Wm1;
_qu._Df(_Hl1.Multiply((_oO1*__x1),_vO1));_rn1._Df(_Hl1.Multiply((_pO1*__x1),_wO1));_kp1._Df(_Hl1.Multiply((_qO1*__x1),_xO1));}}};var _yO1={/*@param {b2World} world */_zO1:function(_Tw1){var _AO1=[];/*@type Number */var i;/*@type String */var _BO1;/*@type b2Body */var _F4;/*@type b2Fixture */var _SC;/*@type b2Shape */var shape;for(_F4=_Tw1._LA1();_F4;_F4=_F4._Ay1()){for(_SC=_F4._xy1();_SC;_SC=_SC._Ay1()){shape=_SC._Ty1();_SC._CO1=_AO1.length;_AO1.push(shape._Ul1());}}var _DO1=[];for(_F4=_Tw1._LA1();_F4;_F4=_F4._Ay1()){
_F4._EO1=[];for(_SC=_F4._xy1();_SC;_SC=_SC._Ay1()){_BO1=_SC._Ul1();_BO1['shape']=_SC._CO1;delete _SC._CO1;_F4._EO1.push(_DO1.length);_DO1.push(_BO1);}}var _sB1=[];for(_F4=_Tw1._LA1();_F4;_F4=_F4._Ay1()){_BO1=_F4._Ul1();_BO1._DO1=[];for(i=0;i<_F4._EO1.length;++i)_BO1._DO1.push(_F4._EO1[i]);delete _F4._EO1;_F4._FO1=_sB1.length;_sB1.push(_BO1);};var _aJ1=[];/*@type b2Joint */var _17;for(_17=_Tw1._yy1(),i=0;_17;_17=_17._Ay1(),++i)_17._8N1=i;for(_17=_Tw1._yy1();_17;_17=_17._Ay1()){if(_17._jg1()===_jA1._FB1)continue;
_BO1=_17._Ul1();_BO1['bodyA']=_17._wB1()._FO1;_BO1['bodyB']=_17._xB1()._FO1;_aJ1.push(_BO1);}for(_17=_Tw1._yy1();_17;_17=_17._Ay1())delete _17._8N1;for(_F4=_Tw1._LA1();_F4;_F4=_F4._Ay1())delete _F4._FO1;var _P4={_AO1:_AO1,_DO1:_DO1,_sB1:_sB1,_aJ1:_aJ1};return _P4;},/*@param {b2World} world */_GO1:function(_BO1,_Tw1,clear){var _HO1=JSON.parse(_BO1);if(clear){for(var _F4=_Tw1._LA1();_F4;){var _bl=_F4._Ay1();_Tw1._dA1(_F4);_F4=_bl;}for(var _17=_Tw1._yy1();_17;){var _bl=_17._Ay1();_Tw1._X11(_17);_17=_bl;}}var _AO1=[];
for(var i=0;i<_HO1._AO1.length;++i){var _IO1=_HO1._AO1[i];var shape;switch(_IO1._oO){case _Mn1._Zn1:shape=new _3o1();break;case _Mn1.__n1:shape=new _do1();break;case _Mn1._1o1:shape=new _ro1();break;case _Mn1._0o1:shape=new _Jo1();break;}shape._Vl1(_IO1);_AO1.push(shape);}var _DO1=[];for(i=0;i<_HO1._DO1.length;++i){var _JO1=_HO1._DO1[i];var _r01=new _vx1();_r01._Vl1(_JO1);_r01.shape=_AO1[_JO1['shape']];_DO1.push(_r01);}var _sB1=[];for(i=0;i<_HO1._sB1.length;++i){var _KO1=_HO1._sB1[i];var _tx1=new _Gw1();_tx1._Vl1(_KO1);
var body=_Tw1._V01(_tx1);for(var x=0;x<_KO1._DO1.length;++x)body._sx1(_DO1[_KO1._DO1[x]]);_sB1.push(body);}var _aJ1=[];var _LO1=[];for(i=0;i<_HO1._aJ1.length;++i){var _MO1=_HO1._aJ1[i];var _NO1;switch(_MO1.type){case _jA1._iJ1:_NO1=new _AJ1();break;case _jA1._jJ1:_NO1=new _2L1();break;case _jA1._AB1:_NO1=new _RK1();break;case _jA1._BB1:_NO1=new _sN1();break;case _jA1._kJ1:_NO1=new _3M1();break;case _jA1._lJ1:_NO1=new _OL1();break;case _jA1._mJ1:_NO1=new _ML1();break;case _jA1._nJ1:_NO1=new _AL1();break;case _jA1._oJ1:_NO1=new _TN1();
break;case _jA1._GB1:_NO1=new _9N1();break;default :throw new Error('unknown joint');}_NO1._Vl1(_MO1,_sB1);if(_MO1.type===_jA1._kJ1){_LO1.push([_NO1,_aJ1.length]);_aJ1.push(null);}else {var _711=_Tw1._iA1(_NO1);_aJ1.push(_711);}}for(i=0;i<_LO1.length;++i){_LO1[i][0]._4M1=_aJ1[_LO1[i][0]._4M1];_LO1[i][0]._5M1=_aJ1[_LO1[i][0]._5M1];_711=_Tw1._iA1(_LO1[i][0]);_aJ1[_LO1[i][1]]=_711;}}};var _OO1=(function(){function _PO1(_Qg){return new _Hl1(_Qg?(_Qg.x||0):0,_Qg?(_Qg.y||0):0);}function _QO1(_Qg){var _RO1=new Array(_Qg.x.length);
for(var i=0;i<_RO1.length;++i)_RO1[i]=new _Hl1(_Qg.x[i],_Qg.y[i]);return _RO1;}function _SO1(_Qg,instance){var name=_Qg.name;var _re;if(typeof(_Qg['int'])!=='undefined')_re=_Qg['int'];else if(typeof(_Qg['float'])!=='undefined')_re=_Qg['float'];else if(typeof(_Qg['string'])!=='undefined')_re=_Qg['string'];else if(typeof(_Qg['bool'])!=='undefined')_re=_Qg['bool'];else if(typeof(_Qg._TO1)!=='undefined')_re=_PO1(_Qg._TO1);else throw new Error("unknown property type");if(instance.hasOwnProperty(name))throw new Error("custom property possibly overwriting an existing one");
instance[name]=_re;}function _UO1(_Qg,body){var _tx1=new _vx1();_tx1._631=_Qg._631||0;_tx1.filter._Iy1=typeof(_Qg['filter-categoryBits'])==='undefined'?1:_Qg['filter-categoryBits'];_tx1.filter._Jy1=typeof(_Qg['filter-maskBits'])==='undefined'?65535:_Qg['filter-maskBits'];_tx1.filter._Ky1=typeof(_Qg['filter-groupIndex'])==='undefined'?0:_Qg['filter-groupIndex'];_tx1.friction=_Qg.friction||0;_tx1._Ly1=_Qg._Ly1||0;_tx1._My1=_Qg._Uy1||0;var shape;if(typeof(_Qg._6q1)!=='undefined'){shape=new _3o1();shape._4o1=_PO1(_Qg._6q1._on1);
shape._Nn1=_Qg._6q1._A21||0;}else if(typeof(_Qg._w6)!=='undefined'){var vertices=_QO1(_Qg._w6.vertices);shape=new _Jo1();shape.Set(vertices,vertices.length);}else if(typeof(_Qg._7q1)!=='undefined'){var vertices=_QO1(_Qg._7q1.vertices);shape=new _ro1();shape._to1=vertices.length;shape._so1=vertices;if(shape._xo1=_Qg._7q1._VO1)shape._vo1=_PO1(_Qg._7q1._Eo1);if(shape._wo1=_Qg._7q1._WO1)shape._uo1=_PO1(_Qg._7q1._Co1);}else throw new Error("unknown shape type");_tx1.shape=shape;var _r01=body._sx1(_tx1);_r01.name=_Qg.name;
if(_Qg._XO1)for(var i=0;i<_Qg._XO1.length;++i)_SO1(_Qg,_r01);}function _YO1(_Qg,_Tw1){var _tx1=new _Gw1();_tx1.type=_Qg.type||_Hw1._Iw1;_tx1.angle=_Qg.angle||0;_tx1._Mw1=_Qg._Mw1||0;_tx1._Kw1=_Qg._Kw1||0;_tx1._Ow1=_Qg._Ow1||false;_tx1._Qw1=_Qg._Qw1||false;_tx1._Pw1=_Qg._Pw1||false;_tx1._Lw1=_Qg._Lw1||false;_tx1._Jw1=_PO1(_Qg._Jw1);_tx1._Rw1=typeof(_Qg._Rw1)!=='undefined'?_Qg._Rw1:1;var _ZO1=new _Jn1();_ZO1._Kn1=_Qg['massData-mass']||0;_ZO1._on1=_PO1(_Qg['massData-center']);_ZO1._Ln1=_Qg['massData-I']||0;
_tx1.position=_PO1(_Qg.position);var body=_Tw1._V01(_tx1);body.name=_Qg.name;body._3y1(_ZO1);if(_Qg._r01)for(var i=0;i<_Qg._r01.length;++i)_UO1(_Qg._r01[i],body);if(_Qg._XO1)for(i=0;i<_Qg._XO1.length;++i)_SO1(_Qg,body);return body;}var __O1={'revolute':_AJ1,'distance':_RK1,'prismatic':_2L1,'wheel':_OL1,'rope':_TN1,'motor':_9N1,'weld':_ML1,'friction':_AL1};function _0P1(_Qg,_Tw1,_sB1){if(!__O1[_Qg.type])throw new Error("unknown joint type");var _1P1=new __O1[_Qg.type]();switch(_1P1.type){case _jA1._iJ1:_1P1._BJ1=_PO1(_Qg._zN1);
_1P1._CJ1=_PO1(_Qg._AN1);_1P1._IJ1=_Qg._IJ1||false;_1P1._JJ1=_Qg._JJ1||false;_1P1._EJ1=_Qg._2P1||0;_1P1._GJ1=_Qg._GJ1||0;_1P1._HJ1=_Qg._HJ1||0;_1P1._DJ1=_Qg._3P1||0;_1P1._FJ1=_Qg._4P1||0;break;case _jA1._AB1:_1P1._BJ1=_PO1(_Qg._zN1);_1P1._CJ1=_PO1(_Qg._AN1);_1P1._AK1=_Qg._AK1||0;_1P1._zK1=_Qg._5P1||0;_1P1.length=_Qg.length||0;break;case _jA1._jJ1:_1P1._BJ1=_PO1(_Qg._zN1);_1P1._CJ1=_PO1(_Qg._AN1);_1P1._IJ1=_Qg._IJ1||false;_1P1._JJ1=_Qg._JJ1||false;_1P1._3L1=_PO1(_Qg._3L1);_1P1._4L1=_Qg._2P1||0;_1P1._6L1=_Qg._6L1||0;
_1P1._HJ1=_Qg._HJ1||0;_1P1._DJ1=_Qg._3P1||0;_1P1._5L1=_Qg._4P1||0;break;case _jA1._lJ1:_1P1._BJ1=_PO1(_Qg._zN1);_1P1._CJ1=_PO1(_Qg._AN1);_1P1._JJ1=_Qg._JJ1||false;_1P1._3L1=_PO1(_Qg._3L1);_1P1._GJ1=_Qg._GJ1||0;_1P1._HJ1=_Qg._HJ1||0;_1P1._AK1=_Qg._6P1||0;_1P1._zK1=_Qg._7P1||0;break;case _jA1._oJ1:_1P1._BJ1=_PO1(_Qg._zN1);_1P1._CJ1=_PO1(_Qg._AN1);_1P1._UN1=_Qg._UN1||0;break;case _jA1._GB1:_1P1._aN1=_PO1(_Qg._zN1);_1P1._bN1=_Qg._3P1||0;_1P1._yK1=_Qg._yK1||0;_1P1._BL1=_Qg._BL1||0;_1P1._cN1=_Qg._cN1||0;
break;case _jA1._mJ1:_1P1._BJ1=_PO1(_Qg._zN1);_1P1._CJ1=_PO1(_Qg._AN1);_1P1._DJ1=_Qg._3P1||0;_1P1._AK1=_Qg._AK1||0;_1P1._zK1=_Qg._zK1||0;break;case _jA1._nJ1:_1P1._BJ1=_PO1(_Qg._zN1);_1P1._CJ1=_PO1(_Qg._AN1);_1P1._yK1=_Qg._yK1||0;_1P1._BL1=_Qg._BL1||0;break;default :throw new Error("wat?");}_1P1._oA1=_sB1[_Qg._oA1||0];_1P1._pA1=_sB1[_Qg._pA1||0];_1P1._qA1=_Qg._qA1||false;var _711=_Tw1._iA1(_1P1);_711.name=_Qg.name;if(_Qg._XO1)for(var i=0;i<_Qg._XO1.length;++i)_SO1(_Qg,_711);return _711;}function _8P1(){this._Tw1=null;
this._vz1=0;this._uz1=0;this._9P1=0;this._DO1={};this._sB1={};this._aJ1={};Object.seal(this);}function _aP1(_Qg,_Tw1){var _bB=new _8P1();_bB._Tw1=_Tw1=_Tw1||new _Ex1(new _Hl1(0,0));_bB._vz1=_Qg._vz1||0;_bB._uz1=_Qg._uz1||0;_bB._9P1=_Qg._9P1||0;if(_Qg.gravity)_Tw1._k01(_PO1(_Qg.gravity));_Tw1._MA1(_Qg._Nw1||false);_Tw1._ZA1(_Qg._bP1||false);_Tw1._OA1(_Qg._wz1||false);_Tw1._QA1(_Qg._cP1||false);_Tw1._SA1(_Qg._dP1||false);var _sB1=[];var _eP1=_Qg.body;if(_eP1){for(var i=0;i<_eP1.length;++i){var body=_YO1(_eP1[i],
_Tw1);_sB1.push(body);for(var _SC=body._xy1();_SC;_SC=_SC._Ay1()){if(!_bB._DO1[_SC.name])_bB._DO1[_SC.name]=[];_bB._DO1[_SC.name].push(_SC);}if(!_bB._sB1[body.name])_bB._sB1[body.name]=[];_bB._sB1[body.name].push(body);}}var _aJ1=[];var _fP1=_Qg._711;if(_fP1){for(i=0;i<_fP1.length;++i){var _711=_0P1(_fP1[i],_Tw1,_sB1);_aJ1.push(_711);if(!_bB._aJ1[_711.name])_bB._aJ1[_711.name]=[];_bB._aJ1[_711.name].push(_711);}}return _bB;}var _P4={_aP1:_aP1};return _P4;})();var _gP1=[{"trimmed":"version","name":"b2_version",
"def":_wl1},{"trimmed":"Vec2","name":"b2Vec2","def":_Hl1},{"trimmed":"Vec3","name":"b2Vec3","def":_Xl1},{"trimmed":"Mat22","name":"b2Mat22","def":_Zl1},{"trimmed":"Mat33","name":"b2Mat33","def":_8m1},{"trimmed":"Rot","name":"b2Rot","def":_lm1},{"trimmed":"Transform","name":"b2Transform","def":_pm1},{"trimmed":"Sweep","name":"b2Sweep","def":_rm1},{"trimmed":"Dot_v2_v2","name":"b2Dot_v2_v2","def":_Bm1},{"trimmed":"Cross_v2_v2","name":"b2Cross_v2_v2","def":_Cm1},{"trimmed":"Cross_v2_f","name":"b2Cross_v2_f",
"def":_Dm1},{"trimmed":"Cross_f_v2","name":"b2Cross_f_v2","def":_Em1},{"trimmed":"Mul_m22_v2","name":"b2Mul_m22_v2","def":_Fm1},{"trimmed":"MulT_m22_v2","name":"b2MulT_m22_v2","def":_Gm1},{"trimmed":"Distance","name":"b2Distance","def":_Hm1},{"trimmed":"DistanceSquared","name":"b2DistanceSquared","def":_Im1},{"trimmed":"Dot_v3_v3","name":"b2Dot_v3_v3","def":_cm1},{"trimmed":"Cross_v3_v3","name":"b2Cross_v3_v3","def":_dm1},{"trimmed":"Mul_m22_m22","name":"b2Mul_m22_m22","def":_Jm1},{"trimmed":"MulT_m22_m22",
"name":"b2MulT_m22_m22","def":_Km1},{"trimmed":"Mul_m33_v3","name":"b2Mul_m33_v3","def":_Lm1},{"trimmed":"Mul22_m33_v2","name":"b2Mul22_m33_v2","def":_Mm1},{"trimmed":"Mul_r_r","name":"b2Mul_r_r","def":_Nm1},{"trimmed":"MulT_r_r","name":"b2MulT_r_r","def":_Pm1},{"trimmed":"Mul_r_v2","name":"b2Mul_r_v2","def":_Qm1},{"trimmed":"MulT_r_v2","name":"b2MulT_r_v2","def":_Rm1},{"trimmed":"Mul_t_v2","name":"b2Mul_t_v2","def":_Sm1},{"trimmed":"Min_v2","name":"b2Min_v2","def":_3n1},{"trimmed":"Max_v2","name":"b2Max_v2",
"def":_5n1},{"trimmed":"Clamp","name":"b2Clamp","def":_6n1},{"trimmed":"MulT_t_v2","name":"b2MulT_t_v2","def":_Um1},{"trimmed":"Mul_t_t","name":"b2Mul_t_t","def":_Vm1},{"trimmed":"MulT_t_t","name":"b2MulT_t_t","def":_Xm1},{"trimmed":"Clamp_v2","name":"b2Clamp_v2","def":_7n1},{"trimmed":"NextPowerOfTwo","name":"b2NextPowerOfTwo","def":_8n1},{"trimmed":"Abs_v2","name":"b2Abs_v2","def":_0n1},{"trimmed":"Abs_m22","name":"b2Abs_m22","def":_1n1},{"trimmed":"IsPowerOfTwo","name":"b2IsPowerOfTwo","def":_9n1}
,{"trimmed":"RandomFloat","name":"b2RandomFloat","def":_bn1},{"trimmed":"Timer","name":"b2Timer","def":_Gn1},{"trimmed":"Color","name":"b2Color","def":_dn1},{"trimmed":"Draw","name":"b2Draw","def":_en1},{"trimmed":"ContactID","name":"b2ContactID","def":_tr1},{"trimmed":"ManifoldPoint","name":"b2ManifoldPoint","def":_yr1},{"trimmed":"Manifold","name":"b2Manifold","def":_Dr1},{"trimmed":"WorldManifold","name":"b2WorldManifold","def":_Or1},{"trimmed":"GetPointStates","name":"b2GetPointStates","def":_6s1}
,{"trimmed":"ClipVertex","name":"b2ClipVertex","def":_bs1},{"trimmed":"RayCastInput","name":"b2RayCastInput","def":_cs1},{"trimmed":"RayCastOutput","name":"b2RayCastOutput","def":_ds1},{"trimmed":"AABB","name":"b2AABB","def":_es1},{"trimmed":"CollideCircles","name":"b2CollideCircles","def":_ts1},{"trimmed":"CollidePolygonAndCircle","name":"b2CollidePolygonAndCircle","def":_xs1},{"trimmed":"FindMaxSeparation","name":"b2FindMaxSeparation","def":_Js1},{"trimmed":"FindIncidentEdge","name":"b2FindIncidentEdge",
"def":_Ws1},{"trimmed":"CollidePolygons","name":"b2CollidePolygons","def":_5t1},{"trimmed":"CollideEdgeAndCircle","name":"b2CollideEdgeAndCircle","def":_At1},{"trimmed":"EPAxis","name":"b2EPAxis","def":_Ot1},{"trimmed":"TempPolygon","name":"b2TempPolygon","def":_St1},{"trimmed":"ReferenceFace","name":"b2ReferenceFace","def":_Tt1},{"trimmed":"EPCollider","name":"b2EPCollider","def":_Wt1},{"trimmed":"CollideEdgeAndPolygon","name":"b2CollideEdgeAndPolygon","def":_Bu1},{"trimmed":"ClipSegmentToLine",
"name":"b2ClipSegmentToLine","def":_xt1},{"trimmed":"TestShapeOverlap","name":"b2TestShapeOverlap","def":_Ku1},{"trimmed":"TestOverlap","name":"b2TestOverlap","def":_Np1},{"trimmed":"Shape","name":"b2Shape","def":_Mn1},{"trimmed":"MassData","name":"b2MassData","def":_Jn1},{"trimmed":"CircleShape","name":"b2CircleShape","def":_3o1},{"trimmed":"EdgeShape","name":"b2EdgeShape","def":_do1},{"trimmed":"ChainShape","name":"b2ChainShape","def":_ro1},{"trimmed":"PolygonShape","name":"b2PolygonShape","def":_Jo1}
,{"trimmed":"Pair","name":"b2Pair","def":_lp1},{"trimmed":"PairLessThan","name":"b2PairLessThan","def":_op1},{"trimmed":"BroadPhase","name":"b2BroadPhase","def":_rp1},{"trimmed":"DistanceProxy","name":"b2DistanceProxy","def":_5q1},{"trimmed":"SimplexCache","name":"b2SimplexCache","def":_aq1},{"trimmed":"DistanceInput","name":"b2DistanceInput","def":_eq1},{"trimmed":"DistanceOutput","name":"b2DistanceOutput","def":_kq1},{"trimmed":"SimplexVertex","name":"b2SimplexVertex","def":_nq1},{"trimmed":"Simplex",
"name":"b2Simplex","def":_qq1},{"trimmed":"DistanceFunc","name":"b2DistanceFunc","def":_cr1},{"trimmed":"TreeNode","name":"b2TreeNode","def":_Ou1},{"trimmed":"DynamicTree","name":"b2DynamicTree","def":_tp1},{"trimmed":"TOIInput","name":"b2TOIInput","def":_Uv1},{"trimmed":"TOIOutput","name":"b2TOIOutput","def":_Yv1},{"trimmed":"SeparationFunction","name":"b2SeparationFunction","def":_2w1},{"trimmed":"TimeOfImpact","name":"b2TimeOfImpact","def":_ow1},{"trimmed":"BodyDef","name":"b2BodyDef","def":_Gw1}
,{"trimmed":"Body","name":"b2Body","def":_Hw1},{"trimmed":"Filter","name":"b2Filter","def":_Hy1},{"trimmed":"FixtureDef","name":"b2FixtureDef","def":_vx1},{"trimmed":"Fixture","name":"b2Fixture","def":_wx1},{"trimmed":"DestructionListener","name":"b2DestructionListener","def":_5z1},{"trimmed":"ContactFilter","name":"b2ContactFilter","def":_az1},{"trimmed":"ContactImpulse","name":"b2ContactImpulse","def":_ez1},{"trimmed":"ContactListener","name":"b2ContactListener","def":_hz1},{"trimmed":"QueryCallback",
"name":"b2QueryCallback","def":_nz1},{"trimmed":"RayCastCallback","name":"b2RayCastCallback","def":_qz1},{"trimmed":"TimeStep","name":"b2TimeStep","def":_rz1},{"trimmed":"Position","name":"b2Position","def":_xz1},{"trimmed":"Velocity","name":"b2Velocity","def":_yz1},{"trimmed":"SolverData","name":"b2SolverData","def":_zz1},{"trimmed":"World","name":"b2World","def":_Ex1},{"trimmed":"MixFriction","name":"b2MixFriction","def":_jG1},{"trimmed":"MixRestitution","name":"b2MixRestitution","def":_mG1},{
"trimmed":"ContactRegister","name":"b2ContactRegister","def":_pG1},{"trimmed":"ContactEdge","name":"b2ContactEdge","def":_rG1},{"trimmed":"Contact","name":"b2Contact","def":_1B1},{"trimmed":"CircleContact","name":"b2CircleContact","def":_QG1},{"trimmed":"PolygonContact","name":"b2PolygonContact","def":_ZG1},{"trimmed":"ChainAndCircleContact","name":"b2ChainAndCircleContact","def":_UG1},{"trimmed":"ChainAndPolygonContact","name":"b2ChainAndPolygonContact","def":_VG1},{"trimmed":"EdgeAndCircleContact",
"name":"b2EdgeAndCircleContact","def":_WG1},{"trimmed":"EdgeAndPolygonContact","name":"b2EdgeAndPolygonContact","def":_XG1},{"trimmed":"PolygonAndCircleContact","name":"b2PolygonAndCircleContact","def":_YG1},{"trimmed":"defaultFilter","name":"b2_defaultFilter","def":_8H1},{"trimmed":"defaultListener","name":"b2_defaultListener","def":_9H1},{"trimmed":"ContactManager","name":"b2ContactManager","def":_Hz1},{"trimmed":"VelocityConstraintPoint","name":"b2VelocityConstraintPoint","def":_eH1},{"trimmed":"ContactPositionConstraint",
"name":"b2ContactPositionConstraint","def":_iH1},{"trimmed":"ContactVelocityConstraint","name":"b2ContactVelocityConstraint","def":_qH1},{"trimmed":"PositionSolverManifold","name":"b2PositionSolverManifold","def":_uH1},{"trimmed":"ContactSolverDef","name":"b2ContactSolverDef","def":_xH1},{"trimmed":"ContactSolver","name":"b2ContactSolver","def":_zH1},{"trimmed":"Island","name":"b2Island","def":_Xz1},{"trimmed":"Jacobian","name":"b2Jacobian","def":_4J1},{"trimmed":"JointEdge","name":"b2JointEdge",
"def":_7J1},{"trimmed":"JointDef","name":"b2JointDef","def":_8J1},{"trimmed":"Joint","name":"b2Joint","def":_jA1},{"trimmed":"RevoluteJointDef","name":"b2RevoluteJointDef","def":_AJ1},{"trimmed":"RevoluteJoint","name":"b2RevoluteJoint","def":_sJ1},{"trimmed":"MouseJointDef","name":"b2MouseJointDef","def":_xK1},{"trimmed":"MouseJoint","name":"b2MouseJoint","def":_qJ1},{"trimmed":"DistanceJointDef","name":"b2DistanceJointDef","def":_RK1},{"trimmed":"DistanceJoint","name":"b2DistanceJoint","def":_pJ1}
,{"trimmed":"PrismaticJointDef","name":"b2PrismaticJointDef","def":_2L1},{"trimmed":"PrismaticJoint","name":"b2PrismaticJoint","def":_rJ1},{"trimmed":"FrictionJointDef","name":"b2FrictionJointDef","def":_AL1},{"trimmed":"FrictionJoint","name":"b2FrictionJoint","def":_xJ1},{"trimmed":"WeldJointDef","name":"b2WeldJointDef","def":_ML1},{"trimmed":"WeldJoint","name":"b2WeldJoint","def":_wJ1},{"trimmed":"WheelJointDef","name":"b2WheelJointDef","def":_OL1},{"trimmed":"WheelJoint","name":"b2WheelJoint",
"def":_vJ1},{"trimmed":"GearJointDef","name":"b2GearJointDef","def":_3M1},{"trimmed":"GearJoint","name":"b2GearJoint","def":_uJ1},{"trimmed":"MotorJointDef","name":"b2MotorJointDef","def":_9N1},{"trimmed":"MotorJoint","name":"b2MotorJoint","def":_zJ1},{"trimmed":"PulleyJointDef","name":"b2PulleyJointDef","def":_sN1},{"trimmed":"PulleyJoint","name":"b2PulleyJoint","def":_tJ1},{"trimmed":"RopeJointDef","name":"b2RopeJointDef","def":_TN1},{"trimmed":"RopeJoint","name":"b2RopeJoint","def":_yJ1},{"trimmed":"RopeDef",
"name":"b2RopeDef","def":_2O1},{"trimmed":"Rope","name":"b2Rope","def":_6O1},{"trimmed":"maxManifoldPoints","name":"b2_maxManifoldPoints","def":_Yk1},{"trimmed":"maxPolygonVertices","name":"b2_maxPolygonVertices","def":_Zk1},{"trimmed":"aabbExtension","name":"b2_aabbExtension","def":__k1},{"trimmed":"aabbMultiplier","name":"b2_aabbMultiplier","def":_0l1},{"trimmed":"linearSlop","name":"b2_linearSlop","def":_1l1},{"trimmed":"angularSlop","name":"b2_angularSlop","def":_2l1},{"trimmed":"polygonRadius",
"name":"b2_polygonRadius","def":_3l1},{"trimmed":"maxSubSteps","name":"b2_maxSubSteps","def":_4l1},{"trimmed":"maxTOIContacts","name":"b2_maxTOIContacts","def":_5l1},{"trimmed":"velocityThreshold","name":"b2_velocityThreshold","def":_6l1},{"trimmed":"maxLinearCorrection","name":"b2_maxLinearCorrection","def":_7l1},{"trimmed":"maxAngularCorrection","name":"b2_maxAngularCorrection","def":_8l1},{"trimmed":"maxTranslation","name":"b2_maxTranslation","def":_9l1},{"trimmed":"maxTranslationSquared","name":"b2_maxTranslationSquared",
"def":_al1},{"trimmed":"maxRotation","name":"b2_maxRotation","def":_bl1},{"trimmed":"maxRotationSquared","name":"b2_maxRotationSquared","def":_cl1},{"trimmed":"baumgarte","name":"b2_baumgarte","def":_dl1},{"trimmed":"toiBaugarte","name":"b2_toiBaugarte","def":_el1},{"trimmed":"timeToSleep","name":"b2_timeToSleep","def":_fl1},{"trimmed":"linearSleepTolerance","name":"b2_linearSleepTolerance","def":_gl1},{"trimmed":"angularSleepTolerance","name":"b2_angularSleepTolerance","def":_hl1},{"trimmed":"epsilon",
"name":"b2_epsilon","def":_Wk1},{"trimmed":"JsonSerializer","name":"b2JsonSerializer","def":_yO1},{"trimmed":"RUBELoader","name":"b2RUBELoader","def":_OO1},{"trimmed":"Profiler","name":"b2Profiler","def":_Ak1},{"trimmed":"ParticleDef","name":"b2ParticleDef","def":_QC1},{"trimmed":"ParticleColor","name":"b2ParticleColor","def":_IC1},{"trimmed":"ParticleGroupDef","name":"b2ParticleGroupDef","def":_0D1},{"trimmed":"ParticleGroup","name":"b2ParticleGroup","def":_3D1},{"trimmed":"ParticleSystem","name":"b2ParticleSystem",
"def":_Zz1}];if(typeof(b2_compatibility)!=="undefined"&&typeof(window)!=="undefined"){for(var i=0;i<_gP1.length;++i)window[_gP1[i]["name"]]=_gP1[i]["def"];}else {var _Yh={};for(var i=0;i<_gP1.length;++i)_Yh[_gP1[i]["trimmed"]]=_gP1[i]["def"];if(typeof(module)!=="undefined")module._Lg=_Yh;else window["b2"]=_Yh;}})();_oh:/*
* 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
*/_hP1=function(){
for(var i=0,chr={};i<256;i++)chr[i]=String.fromCharCode(i);function _iP1(){this._jP1=[];};_iP1.prototype._kP1=function(){for(var _n5='',_V6=this._jP1.length,i=0;i<_V6;i++)_n5+=chr[this._jP1[i]];return _n5;};_iP1.prototype._lP1=function(_re){this._jP1.push(_re);};_iP1.prototype._mP1=function(string){for(var _V6=string.length,i=0;i<_V6;i++)this._lP1(string.charCodeAt(i));};_iP1.prototype._nP1=function(_qh,offset,length){for(var _V6=length||_qh.length,i=offset||0;i<_V6;i++)this._lP1(_qh[i]);};var _Lg={};var width;
var height;var transparent=null;var _oP1;var repeat=-1;var _pP1=0;var _qP1=false;var out;var _h5;var _rP1;var _sP1;var colorDepth;var _tP1;var _uP1=[];var _vP1=7;var dispose=-1;var _wP1=false;var _xP1=true;var _yP1=false;var _ka1=10;var _zP1="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 _AP1=_Lg._AP1=function _AP1(_tA){_pP1=Math.round(_tA/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 _BP1=_Lg._BP1=function _BP1(_uc1){if(_uc1>=0)dispose=_uc1;};/*
* 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 _CP1=_Lg._CP1=function _CP1(_Nc1){
if(_Nc1>=0)repeat=_Nc1;};/*
* 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 _DP1=_Lg._DP1=function _DP1(c){transparent=c;};/*
* Sets the comment for the block comment
* @param
* string to be insterted as comment
*/var _EP1=_Lg._EP1=function _EP1(c){
_zP1=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 _FP1=_Lg._FP1=function _FP1(_1b,_GP1){if((_1b===null)||!_qP1||out===null){throw new Error("Please call start method before calling addFrame");}var _BE=true;try{if(!_GP1){_h5=_1b.getImageData(0,0,_1b.canvas.width,_1b.canvas.height).data;if(!_yP1)_HP1(_1b.canvas.width,_1b.canvas.height);}else {if(_1b instanceof ImageData){_h5=_1b.data;if(!_IP1||width!=_1b.width||height!=_1b.height){
_HP1(_1b.width,_1b.height);}else {}}else if(_1b instanceof Uint8ClampedArray){if(_1b.length==(width*height*4)){_h5=_1b;}else {console.log("Please set the correct size: ImageData length mismatch");_BE=false;}}else {console.log("Please provide correct input");_BE=false;}}_JP1();if(_ka1==0)_KP1();else _LP1();if(_xP1){_MP1();_NP1();if(repeat>=0){_OP1();}}_PP1();if(_zP1!==''){_QP1();}_RP1();if(!_xP1)_NP1();_SP1();_xP1=false;}catch(e){_BE=false;}return _BE;};/*
* @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=_Lg.download=function download(filename){
if(out===null||_wP1==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 _TP1=document.createElement("a");_TP1.download=filename;_TP1.href=URL.createObjectURL(new Blob([new Uint8Array(out._jP1)],{type:"image/gif"}));_TP1.click();}};var _UP1=_Lg._UP1=function _UP1(){if(!_qP1)return false;var _BE=true;_qP1=false;try{out._lP1(0x3b);_wP1=true;}
catch(e){_BE=false;}return _BE;};var _Jk1=function _Jk1(){_oP1=0;_h5=null;_rP1=null;_sP1=null;_tP1=null;_wP1=false;_xP1=true;};/*
* * Sets frame rate in frames per second. Equivalent to
* <code>setDelay(1000/fps)</code>.
* @param fps
* float frame rate (frames per second)
*/var _VP1=_Lg._VP1=function _VP1(fps){if(fps!=0xf)_pP1=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 _WP1=_Lg._WP1=function _WP1(_XP1){
_ka1=_XP1;};/*
* 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 _HP1=_Lg._HP1=function _HP1(w,h){if(_qP1&&!_xP1)return;width=w;height=h;if(width<1)width=320;if(height<1)height=240;_yP1=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=_Lg.start=function start(){
_Jk1();var _BE=true;_wP1=false;out=new _iP1();try{out._mP1("GIF89a");}catch(e){_BE=false;}return _qP1=_BE;};var _YP1=_Lg._YP1=function _YP1(){_Jk1();var _BE=true;_wP1=false;out=new _iP1();return _qP1=_BE;};var _LP1=function _LP1(){var _0j=_rP1.length;var _ZP1=_0j/3;_sP1=[];var __P1=new _0Q1(_rP1,_0j,_ka1);_tP1=__P1.process();var _dl=0;for(var _17=0;_17<_ZP1;_17++){var index=__P1.map(_rP1[_dl++]&0xff,_rP1[_dl++]&0xff,_rP1[_dl++]&0xff);_uP1[index]=true;_sP1[_17]=index;}_rP1=null;colorDepth=8;_vP1=7;if(transparent!==null){
_oP1=_1Q1(transparent);}};var _KP1=function _KP1(){var _0j=_rP1.length;var _ZP1=_0j/3;_sP1=[];_tP1=[];for(var _D4=0;_D4<8;_D4++){for(var _E4=0;_E4<8;_E4++){for(var _F4=0;_F4<4;_F4++){var index=32*_D4+4*_E4+_F4;_tP1[index*3+0]=floor((_F4+0.5)*255/4);_tP1[index*3+2]=floor((_D4+0.5)*255/8);_tP1[index*3+1]=floor((_E4+0.5)*255/8);}}}var _dl=0;for(var _17=0;_17<_ZP1;_17++){var _F4=floor((4*(_rP1[_dl++]&0xff)/256));var _E4=floor((8*(_rP1[_dl++]&0xff)/256));var _D4=floor((8*(_rP1[_dl++]&0xff)/256));var index=_D4*32+_E4*4+_F4;
_uP1[index]=true;_sP1[_17]=index;}_rP1=null;colorDepth=8;_vP1=7;if(transparent!==null){_oP1=0;}};var _1Q1=function _1Q1(c){if(_tP1===null)return -1;var _D4=(c&0xFF0000)>>16;var _E4=(c&0x00FF00)>>8;var _F4=(c&0x0000FF);var _2Q1=0;var _3Q1=256*256*256;var _0j=_tP1.length;for(var i=0;i<_0j;){var _0G1=_D4-(_tP1[i++]&0xff);var _1G1=_E4-(_tP1[i++]&0xff);var _2G1=_F4-(_tP1[i]&0xff);var _tm=_0G1*_0G1+_1G1*_1G1+_2G1*_2G1;var index=i/3;if(_uP1[index]&&(_tm<_3Q1)){_3Q1=_tm;_2Q1=index;}i++;}return _2Q1;};var _4Q1=_Lg._4Q1=function _4Q1(){
return width;};var _5Q1=_Lg._5Q1=function _5Q1(){return height;};var _JP1=function _JP1(){var w=width;var h=height;_rP1=[];var data=_h5;var _E8=0;for(var i=0;i<h;i++){for(var _17=0;_17<w;_17++){var _F4=(i*w*4)+_17*4;_rP1[_E8++]=data[_F4];_rP1[_E8++]=data[_F4+1];_rP1[_E8++]=data[_F4+2];}}};var _PP1=function _PP1(){out._lP1(0x21);out._lP1(0xf9);out._lP1(4);var _6Q1;var _7Q1;if(transparent===null){_6Q1=0;_7Q1=0;}else {_6Q1=1;_7Q1=2;}if(dispose>=0){_7Q1=dispose&7;}_7Q1<<=2;out._lP1(0|_7Q1|0|_6Q1);_8Q1(_pP1);out._lP1(_oP1);
out._lP1(0);};var _QP1=function _QP1(){out._lP1(0x21);out._lP1(0xfe);out._lP1(_zP1.length);out._mP1(_zP1);out._lP1(0);};var _RP1=function _RP1(){out._lP1(0x2c);_8Q1(0);_8Q1(0);_8Q1(width);_8Q1(height);if(_xP1){out._lP1(0);}else {out._lP1(0x80|0|0|0|_vP1);}};var _MP1=function _MP1(){_8Q1(width);_8Q1(height);out._lP1((0x80|0x70|0x00|_vP1));out._lP1(0);out._lP1(0);};var _OP1=function _OP1(){out._lP1(0x21);out._lP1(0xff);out._lP1(11);out._mP1("NETSCAPE"+"2.0");out._lP1(3);out._lP1(1);_8Q1(repeat);out._lP1(0);
};var _NP1=function _NP1(){out._nP1(_tP1);var _I6=(3*256)-_tP1.length;for(var i=0;i<_I6;i++)out._lP1(0);};var _8Q1=function _8Q1(_9Q1){out._lP1(_9Q1&0xFF);out._lP1((_9Q1>>8)&0xFF);};var _SP1=function _SP1(){var _aQ1=new _bQ1(width,height,_sP1,colorDepth);_aQ1.encode(out);};var _Ga1=_Lg._Ga1=function _Ga1(){return out;};var _cQ1=_Lg._cQ1=function _cQ1(_dQ1,_eQ1){_qP1=_dQ1;_xP1=_eQ1;};return _Lg;};/*
* 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
*/_bQ1=function(){
var _Lg={};var _fQ1=-1;var _gQ1;var _hQ1;var _iQ1;var _jQ1;var _kQ1;var _lQ1;// David Rowley (mgardi@watdcsu.waterloo.edu)
var _mQ1=12;var _nQ1=5003;var _oQ1;var _pQ1=_mQ1;var _qQ1;var _rQ1=1<<_mQ1;var _sQ1=[];var _tQ1=[];var _uQ1=_nQ1;var _vQ1=0;var _wQ1=false;var _xQ1;var _yQ1;var _zQ1;var _AQ1=0;var _BQ1=0;var _CQ1=[0x0000,0x0001,0x0003,0x0007,0x000F,0x001F,0x003F,0x007F,0x00FF,0x01FF,0x03FF,0x07FF,0x0FFF,0x1FFF,0x3FFF,0x7FFF,0xFFFF];var _DQ1;var _EQ1=[];var _bQ1=_Lg._bQ1=function _bQ1(width,height,_rP1,_FQ1){_gQ1=width;
_hQ1=height;_iQ1=_rP1;_jQ1=Math.max(2,_FQ1);};var _GQ1=function _GQ1(c,_HQ1){_EQ1[_DQ1++]=c;if(_DQ1>=254)_IQ1(_HQ1);};var _JQ1=function _JQ1(_HQ1){_KQ1(_uQ1);_vQ1=_yQ1+2;_wQ1=true;_pI(_yQ1,_HQ1);};var _KQ1=function _KQ1(_uQ1){for(var i=0;i<_uQ1;++i)_sQ1[i]=-1;};var compress=_Lg.compress=function compress(_LQ1,_HQ1){var _MQ1;var i;var c;var _NQ1;var _7Q1;var _OQ1;var _PQ1;_xQ1=_LQ1;_wQ1=false;_oQ1=_xQ1;_qQ1=_QQ1(_oQ1);_yQ1=1<<(_LQ1-1);_zQ1=_yQ1+1;_vQ1=_yQ1+2;_DQ1=0;_NQ1=_RQ1();_PQ1=0;for(_MQ1=_uQ1;_MQ1<65536;_MQ1*=2)++_PQ1;
_PQ1=8-_PQ1;_OQ1=_uQ1;_KQ1(_OQ1);_pI(_yQ1,_HQ1);_SQ1:while((c=_RQ1())!=_fQ1){_MQ1=(c<<_pQ1)+_NQ1;i=(c<<_PQ1)^_NQ1;if(_sQ1[i]==_MQ1){_NQ1=_tQ1[i];continue;}else if(_sQ1[i]>=0){_7Q1=_OQ1-i;if(i===0)_7Q1=1;do {if((i-=_7Q1)<0)i+=_OQ1;if(_sQ1[i]==_MQ1){_NQ1=_tQ1[i];continue _SQ1;}}while(_sQ1[i]>=0);}_pI(_NQ1,_HQ1);_NQ1=c;if(_vQ1<_rQ1){_tQ1[i]=_vQ1++;_sQ1[i]=_MQ1;}else _JQ1(_HQ1);}_pI(_NQ1,_HQ1);_pI(_zQ1,_HQ1);};var encode=_Lg.encode=function encode(_TQ1){_TQ1._lP1(_jQ1);_kQ1=_gQ1*_hQ1;_lQ1=0;compress(_jQ1+1,
_TQ1);_TQ1._lP1(0);};var _IQ1=function _IQ1(_HQ1){if(_DQ1>0){_HQ1._lP1(_DQ1);_HQ1._nP1(_EQ1,0,_DQ1);_DQ1=0;}};var _QQ1=function _QQ1(_oQ1){return(1<<_oQ1)-1;};var _RQ1=function _RQ1(){if(_kQ1===0)return _fQ1;--_kQ1;var _UQ1=_iQ1[_lQ1++];return _UQ1&0xff;};var _pI=function _pI(_uc1,_HQ1){_AQ1&=_CQ1[_BQ1];if(_BQ1>0)_AQ1|=(_uc1<<_BQ1);else _AQ1=_uc1;_BQ1+=_oQ1;while(_BQ1>=8){_GQ1((_AQ1&0xff),_HQ1);_AQ1>>=8;_BQ1-=8;}if(_vQ1>_qQ1||_wQ1){if(_wQ1){_qQ1=_QQ1(_oQ1=_xQ1);_wQ1=false;}else {++_oQ1;if(_oQ1==_pQ1)_qQ1=_rQ1;
else _qQ1=_QQ1(_oQ1);}}if(_uc1==_zQ1){while(_BQ1>0){_GQ1((_AQ1&0xff),_HQ1);_AQ1>>=8;_BQ1-=8;}_IQ1(_HQ1);}};_bQ1.apply(this,arguments);return _Lg;};/* * 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
*/_0Q1=function(){var _Lg={};var _VQ1=256;var _WQ1=499;
var _XQ1=491;var _YQ1=487;var _ZQ1=503;var __Q1=(3*_ZQ1);var _0R1=(_VQ1-1);var _1R1=4;var _2R1=100;var _3R1=16;var _4R1=(1<<_3R1);var _5R1=10;var _6R1=(1<<_5R1);var _7R1=10;var _ym1=(_4R1>>_7R1);var _8R1=(_4R1<<(_5R1-_7R1));var _9R1=(_VQ1>>3);var _aR1=6;var _bR1=(1<<_aR1);var _cR1=(_9R1*_bR1);var _dR1=30;var _eR1=10;var _fR1=(1<<_eR1);var _gR1;var _hR1=8;var _iR1=(1<<_hR1);var _jR1=(_eR1+_hR1);var _kR1=(1<<_jR1);var _lR1;var _mR1;var _nR1;var _oR1;var _pR1=[];var _Bw=[];var _qR1=[];var _rR1=[];var _0Q1=_Lg._0Q1=function _0Q1(_sR1,
_0j,_ka1){var i;var _ih;_lR1=_sR1;_mR1=_0j;_nR1=_ka1;_oR1=new Array(_VQ1);for(i=0;i<_VQ1;i++){_oR1[i]=new Array(4);_ih=_oR1[i];_ih[0]=_ih[1]=_ih[2]=(i<<(_1R1+8))/_VQ1;_qR1[i]=_4R1/_VQ1;_Bw[i]=0;}};var _tR1=function _tR1(){var map=[];var index=new Array(_VQ1);for(var i=0;i<_VQ1;i++)index[_oR1[i][3]]=i;var _dl=0;for(var _V6=0;_V6<_VQ1;_V6++){var _17=index[_V6];map[_dl++]=(_oR1[_17][0]);map[_dl++]=(_oR1[_17][1]);map[_dl++]=(_oR1[_17][2]);}return map;};var _uR1=function _uR1(){var i;var _17;var _vR1;var _wR1;var _ih;var q;
var _xR1;var _yR1;_xR1=0;_yR1=0;for(i=0;i<_VQ1;i++){_ih=_oR1[i];_vR1=i;_wR1=_ih[1];for(_17=i+1;_17<_VQ1;_17++){q=_oR1[_17];if(q[1]<_wR1){_vR1=_17;_wR1=q[1];}}q=_oR1[_vR1];if(i!=_vR1){_17=q[0];q[0]=_ih[0];_ih[0]=_17;_17=q[1];q[1]=_ih[1];_ih[1]=_17;_17=q[2];q[2]=_ih[2];_ih[2]=_17;_17=q[3];q[3]=_ih[3];_ih[3]=_17;}if(_wR1!=_xR1){_pR1[_xR1]=(_yR1+i)>>1;for(_17=_xR1+1;_17<_wR1;_17++)_pR1[_17]=i;_xR1=_wR1;_yR1=i;}}_pR1[_xR1]=(_yR1+_0R1)>>1;for(_17=_xR1+1;_17<256;_17++)_pR1[_17]=_0R1;};var _zR1=function _zR1(){
var i;var _17;var _F4;var _E4;var _D4;var _A21;var _ju;var alpha;var step;var _ti;var _AR1;var _ih;var _UQ1;var _BR1;if(_mR1<__Q1)_nR1=1;_gR1=30+((_nR1-1)/3);_ih=_lR1;_UQ1=0;_BR1=_mR1;_AR1=_mR1/(3*_nR1);_ti=(_AR1/_2R1)|0;alpha=_fR1;_A21=_cR1;_ju=_A21>>_aR1;if(_ju<=1)_ju=0;for(i=0;i<_ju;i++)_rR1[i]=alpha*(((_ju*_ju-i*i)*_iR1)/(_ju*_ju));if(_mR1<__Q1)step=3;else if((_mR1%_WQ1)!==0)step=3*_WQ1;else {if((_mR1%_XQ1)!==0)step=3*_XQ1;else {if((_mR1%_YQ1)!==0)step=3*_YQ1;else step=3*_ZQ1;}}i=0;while(i<_AR1){_F4=(_ih[_UQ1+0]&0xff)<<_1R1;
_E4=(_ih[_UQ1+1]&0xff)<<_1R1;_D4=(_ih[_UQ1+2]&0xff)<<_1R1;_17=_CR1(_F4,_E4,_D4);_DR1(alpha,_17,_F4,_E4,_D4);if(_ju!==0)_ER1(_ju,_17,_F4,_E4,_D4);_UQ1+=step;if(_UQ1>=_BR1)_UQ1-=_mR1;i++;if(_ti===0)_ti=1;if(i%_ti===0){alpha-=alpha/_gR1;_A21-=_A21/_dR1;_ju=_A21>>_aR1;if(_ju<=1)_ju=0;for(_17=0;_17<_ju;_17++)_rR1[_17]=alpha*(((_ju*_ju-_17*_17)*_iR1)/(_ju*_ju));}}};var map=_Lg.map=function map(_F4,_E4,_D4){var i;var _17;var _Jt;var _G4;var _FR1;var _ih;var _GR1;_FR1=1000;_GR1=-1;i=_pR1[_E4];_17=i-1;while((i<_VQ1)||(_17>=0)){
if(i<_VQ1){_ih=_oR1[i];_Jt=_ih[1]-_E4;if(_Jt>=_FR1)i=_VQ1;else {i++;if(_Jt<0)_Jt=-_Jt;_G4=_ih[0]-_F4;if(_G4<0)_G4=-_G4;_Jt+=_G4;if(_Jt<_FR1){_G4=_ih[2]-_D4;if(_G4<0)_G4=-_G4;_Jt+=_G4;if(_Jt<_FR1){_FR1=_Jt;_GR1=_ih[3];}}}}if(_17>=0){_ih=_oR1[_17];_Jt=_E4-_ih[1];if(_Jt>=_FR1)_17=-1;else {_17--;if(_Jt<0)_Jt=-_Jt;_G4=_ih[0]-_F4;if(_G4<0)_G4=-_G4;_Jt+=_G4;if(_Jt<_FR1){_G4=_ih[2]-_D4;if(_G4<0)_G4=-_G4;_Jt+=_G4;if(_Jt<_FR1){_FR1=_Jt;_GR1=_ih[3];}}}}}return(_GR1);};var process=_Lg.process=function process(){
_zR1();_HR1();_uR1();return _tR1();};var _HR1=function _HR1(){var i;var _17;for(i=0;i<_VQ1;i++){_oR1[i][0]>>=_1R1;_oR1[i][1]>>=_1R1;_oR1[i][2]>>=_1R1;_oR1[i][3]=i;}};var _ER1=function _ER1(_ju,i,_F4,_E4,_D4){var _17;var _dl;var _cn1;var _xc1;var _G4;var _K6;var _ih;_cn1=i-_ju;if(_cn1<-1)_cn1=-1;_xc1=i+_ju;if(_xc1>_VQ1)_xc1=_VQ1;_17=i+1;_dl=i-1;_K6=1;while((_17<_xc1)||(_dl>_cn1)){_G4=_rR1[_K6++];if(_17<_xc1){_ih=_oR1[_17++];try{_ih[0]-=(_G4*(_ih[0]-_F4))/_kR1;_ih[1]-=(_G4*(_ih[1]-_E4))/_kR1;_ih[2]-=(_G4*(_ih[2]-_D4))/_kR1;
}catch(e){}}if(_dl>_cn1){_ih=_oR1[_dl--];try{_ih[0]-=(_G4*(_ih[0]-_F4))/_kR1;_ih[1]-=(_G4*(_ih[1]-_E4))/_kR1;_ih[2]-=(_G4*(_ih[2]-_D4))/_kR1;}catch(e){}}}};var _DR1=function _DR1(alpha,i,_F4,_E4,_D4){var _I6=_oR1[i];_I6[0]-=(alpha*(_I6[0]-_F4))/_fR1;_I6[1]-=(alpha*(_I6[1]-_E4))/_fR1;_I6[2]-=(alpha*(_I6[2]-_D4))/_fR1;};var _CR1=function _CR1(_F4,_E4,_D4){var i;var _Jt;var _G4;var _IR1;var _JR1;var _KR1;var _LR1;var _FR1;var _MR1;var _I6;_FR1=~(1<<31);_MR1=_FR1;_KR1=-1;_LR1=_KR1;for(i=0;i<_VQ1;i++){_I6=_oR1[i];_Jt=_I6[0]-_F4;
if(_Jt<0)_Jt=-_Jt;_G4=_I6[1]-_E4;if(_G4<0)_G4=-_G4;_Jt+=_G4;_G4=_I6[2]-_D4;if(_G4<0)_G4=-_G4;_Jt+=_G4;if(_Jt<_FR1){_FR1=_Jt;_KR1=i;}_IR1=_Jt-((_Bw[i])>>(_3R1-_1R1));if(_IR1<_MR1){_MR1=_IR1;_LR1=i;}_JR1=(_qR1[i]>>_7R1);_qR1[i]-=_JR1;_Bw[i]+=(_JR1<<_5R1);}_qR1[_KR1]+=_ym1;_Bw[_KR1]-=_8R1;return(_LR1);};_0Q1.apply(this,arguments);return _Lg;};_oh:function _NR1(){var _OR1="#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 _OR1;}function _PR1(){var _QR1="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 _QR1;}function _RR1(){var _SR1="#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 _SR1;}function _TR1(){var _QR1="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 _QR1;}/*@constructor */function _UR1(_VR1,_SZ){var _OG=null;var _WR1=null,_XR1=null,_YR1=null;var _ZR1=0;var __R1,_0S1,_1S1;var _2S1,_3S1,_4S1=[];var _5S1,_6S1,_7S1,_8S1;var _9S1,_aS1;var _bS1=0;Object.defineProperties(this,{_Ch1:{get :function(){return _OG;}},_cS1:{get :function(){return(_OG!==null&&_OG!==undefined);}},_oa:{get :function(){return _YR1;}},_Ka:{get :function(){return _2S1;}},_Wc:{get :function(){return _3S1;}},_dS1:{get :function(){return __R1;}},_eS1:{get :function(){return _0S1;}},_fS1:{get :function(){
return _5S1;}},_gS1:{get :function(){return _6S1;}},_hS1:{get :function(){return _7S1;},set :function(_re){_7S1=_re;}},_iS1:{get :function(){return _8S1;},set :function(_re){_8S1=_re;}},_EB:{get :function(){return _9S1;}}});(function(){_OG=_jS1(_VR1,_SZ);if(_OG){_kS1(_OG);var _lS1=_OG.getParameter(_OG.MAX_TEXTURE_IMAGE_UNITS);_9S1=(_lS1<_ca._mS1)?_lS1:_ca._mS1;_aS1=_OG.getParameter(_OG.MAX_TEXTURE_SIZE);_XR1=new _nS1(_SZ._oS1);_YR1=new _pS1(_9S1,32,_XR1,_SZ._oS1);_WR1=new _qS1(_XR1,_YR1);_rS1();_sS1();_tS1();_XR1._fz(__R1);
_uS1();}})();function _uS1(){_vS1=(_OG.getExtension('EXT_texture_filter_anisotropic')||_OG.getExtension('MOZ_EXT_texture_filter_anisotropic')||_OG.getExtension('WEBKIT_EXT_texture_filter_anisotropic'));}function _kS1(_wS1){_nS1.prototype._wS1=_wS1;_qS1.prototype._wS1=_wS1;_Gc.prototype._wS1=_wS1;_xS1.prototype._wS1=_wS1;_yS1.prototype._wS1=_wS1;_zS1.prototype._wS1=_wS1;};function _AS1(){var userAgent=navigator.userAgent.toString().toLowerCase();var _BS1=userAgent.indexOf("trident/");if(_BS1>=0){var version=parseFloat(userAgent.slice(_BS1+"trident/".length));
if(version==7){return true;}}return false;};function _jS1(_VR1,_SZ){var _CS1=null;var _DS1=["webgl","experimental-webgl","moz-webgl","webkit-3d"];{for(var i=0;i<_DS1.length;i++){try{var _ES1={alpha:true,stencil:_SZ._FS1,antialias:false,premultipliedAlpha:false,preserveDrawingBuffer:_SZ._GS1};_CS1=_VR1.getContext(_DS1[i],_ES1);if(_CS1){break;}}catch(_ek){return null;}}}if(_CS1){_5S1=_VR1.width;_6S1=_VR1.height;_7S1=_5S1;_8S1=_6S1;}return _CS1;};function _rS1(){var _HS1=new _yS1(),_IS1=new _yS1();_HS1._JS1();_HS1._KS1();
_HS1._LS1();_IS1._JS1();_IS1._KS1();_IS1._LS1();_IS1._MS1();_2S1=_4S1.push(_HS1)-1;_3S1=_4S1.push(_IS1)-1;_WR1._NS1(_2S1);_WR1._NS1(_3S1);_HS1._OS1=_IS1._OS1=true;};/*@this {yyWebGL} */this._PS1=function(_ba1){for(var i in _4S1){if(!_4S1.hasOwnProperty(i))continue;if(_4S1[i]._Wl1(_ba1)){return i;}}var _QS1=_4S1.push(_ba1)-1;_WR1._NS1(_QS1);return _QS1;};/*@this {yyWebGL} */this._Ic=function(_Ad){return _4S1[_Ad];};function _RS1(_wN){while(((_wN&0x1)==0)&&(_wN>1)){_wN>>=1;}return(_wN==1);};/*@this {yyWebGL} */this._SS1=function(){
return _aS1;};/*@this {yyWebGL} */this._TS1=function(_US1,_VS1,_WS1,_XS1){_WR1._je1();_XR1._TS1(_US1,_VS1,_WS1,_XS1);};function _YS1(_ZS1,type,source){var _qi=_OG.createShader((type=='vertex')?_OG.VERTEX_SHADER:_OG.FRAGMENT_SHADER);_OG.shaderSource(_qi,source);_OG.compileShader(_qi);if(!_OG.getShaderParameter(_qi,_OG.COMPILE_STATUS)){alert("Could not compile "+type+" shader:\n\n"+_OG.getShaderInfoLog(_qi));console.log("----------------Shader Begin----------------");console.log(source);console.log("-----------------Shader END----------------");
return;}_OG.attachShader(_ZS1,_qi);};function _sS1(){var _SR1=_NR1();var _QR1=_PR1();var __S1=_OG.createProgram();var error=_OG.getError();_YS1(__S1,"vertex",_SR1);_YS1(__S1,"fragment",_QR1);_OG.linkProgram(__S1);error=_OG.getError();if(!_OG.getProgramParameter(__S1,_OG.LINK_STATUS)){alert("Could not initialise shaders\n\n");return false;}_OG.useProgram(__S1);__R1=__S1;__S1._0T1=_OG.getAttribLocation(__S1,"vertex");__S1._1T1=_OG.getAttribLocation(__S1,"normal");__S1._2T1=_OG.getAttribLocation(__S1,"color");
__S1._3T1=_OG.getAttribLocation(__S1,"UV");__S1._4T1=_OG.getUniformLocation(__S1,"pTexure");__S1._5T1=_OG.getUniformLocation(__S1,"matrices");__S1._6T1=_OG.getUniformLocation(__S1,"fogParameters");__S1._7T1=_OG.getUniformLocation(__S1,"alphaTestEnabled");__S1._8T1=_OG.getUniformLocation(__S1,"alphaRefValue");__S1._9T1=[];__S1._9T1.push(_OG.getAttribLocation(__S1,"vertex"));__S1._9T1.push(_OG.getAttribLocation(__S1,"color"));__S1._9T1.push(_OG.getAttribLocation(__S1,"UV"));__S1._9T1=[];__S1._aT1=[];
__S1._bT1=[];if(__S1._0T1!=-1){__S1._9T1.push(__S1._0T1);__S1._aT1.push("vertex");__S1._bT1.push(_ca._Fd);}if(__S1._1T1!=-1){__S1._9T1.push(__S1._1T1);__S1._aT1.push("normal");__S1._bT1.push(_ca._Ud);}if(__S1._2T1!=-1){__S1._9T1.push(__S1._2T1);__S1._aT1.push("color");__S1._bT1.push(_ca._Kd);}if(__S1._3T1!=-1){__S1._9T1.push(__S1._3T1);__S1._aT1.push("UV");__S1._bT1.push(_ca._Sd);}__S1._cT1=_bS1++;return true;};function _tS1(){var _OR1=_RR1();var _QR1=_TR1();var __S1=_OG.createProgram();var error=_OG.getError();
_YS1(__S1,"vertex",_OR1);_YS1(__S1,"fragment",_QR1);_OG.linkProgram(__S1);error=_OG.getError();if(!_OG.getProgramParameter(__S1,_OG.LINK_STATUS)){alert("Could not initialise 3D shader\n\n");return false;}_OG.useProgram(__S1);__S1._dT1=_OG.getUniformLocation(__S1,"ViewMatrix");_0S1=__S1;__S1._0T1=_OG.getAttribLocation(__S1,"vertex");__S1._1T1=_OG.getAttribLocation(__S1,"normal");__S1._2T1=_OG.getAttribLocation(__S1,"color");__S1._3T1=_OG.getAttribLocation(__S1,"UV");__S1._4T1=_OG.getUniformLocation(__S1,
"pTexure");__S1._5T1=_OG.getUniformLocation(__S1,"matrices");__S1._eT1=_OG.getUniformLocation(__S1,"dirlightdir");__S1._fT1=_OG.getUniformLocation(__S1,"pointlightpos");__S1._gT1=_OG.getUniformLocation(__S1,"lightcol");__S1._hT1=_OG.getUniformLocation(__S1,"ambientcol");__S1._6T1=_OG.getUniformLocation(__S1,"fogParameters");__S1._7T1=_OG.getUniformLocation(__S1,"alphaTestEnabled");__S1._8T1=_OG.getUniformLocation(__S1,"alphaRefValue");__S1._9T1=[];__S1._aT1=[];__S1._bT1=[];if(__S1._0T1!=-1){__S1._9T1.push(__S1._0T1);
__S1._aT1.push("vertex");__S1._bT1.push(_ca._Fd);}if(__S1._1T1!=-1){__S1._9T1.push(__S1._1T1);__S1._aT1.push("normal");__S1._bT1.push(_ca._Ud);}if(__S1._2T1!=-1){__S1._9T1.push(__S1._2T1);__S1._aT1.push("color");__S1._bT1.push(_ca._Kd);}if(__S1._3T1!=-1){__S1._9T1.push(__S1._3T1);__S1._aT1.push("UV");__S1._bT1.push(_ca._Sd);}__S1._cT1=_bS1++;return true;};/*@this {yyWebGL} */this._iT1=function(_jT1,_kT1,_lT1){if(_jT1=="None"||_kT1=="None"){var _mT1={_nT1:null,_oT1:null};return _mT1;}var __S1=_OG.createProgram();
var error=_OG.getError();_YS1(__S1,"vertex",_jT1);_YS1(__S1,"fragment",_kT1);_OG.linkProgram(__S1);error=_OG.getError();if(!_OG.getProgramParameter(__S1,_OG.LINK_STATUS)){var _mT1={_nT1:null,_oT1:null};return _mT1;}_OG.useProgram(__S1);__S1._5T1=_OG.getUniformLocation(__S1,"gm_Matrices");__S1._eT1=_OG.getUniformLocation(__S1,"gm_Lights_Direction");__S1._fT1=_OG.getUniformLocation(__S1,"gm_Lights_PosRange");__S1._gT1=_OG.getUniformLocation(__S1,"gm_Lights_Colour");__S1._hT1=_OG.getUniformLocation(__S1,
"gm_AmbientColour");__S1._0T1=_OG.getAttribLocation(__S1,"in_Position");__S1._1T1=_OG.getAttribLocation(__S1,"in_Normal");__S1._2T1=_OG.getAttribLocation(__S1,"in_Colour");__S1._3T1=_OG.getAttribLocation(__S1,"in_TextureCoord");__S1._9T1=[];__S1._bT1=[];for(var _pT1=0;_pT1<_lT1.length;_pT1++){__S1._9T1.push(_OG.getAttribLocation(__S1,_lT1[_pT1]));switch(_lT1[_pT1]){case "in_Position":__S1._bT1.push(_ca._Fd);break;case "in_Normal":__S1._bT1.push(_ca._Ud);break;case "in_Colour":__S1._bT1.push(_ca._Kd);
break;case "in_TextureCoord":__S1._bT1.push(_ca._Sd);break;default :__S1._bT1.push(_ca._Sd);break;}}__S1._aT1=_lT1;var _qT1="gm_BaseTexture";var _DB=[_qT1];var _TB=0;var _e51=[];var _rT1=_OG.getUniformLocation(__S1,_qT1);_OG.uniform1iv(_rT1,[_TB++]);__S1._4T1=_rT1;__S1._sT1={_mh:[]};for(var _m5=0,_tT1=_OG.getProgramParameter(__S1,_OG.ACTIVE_UNIFORMS);_m5<_tT1;_m5++){var _uT1=1;var _vT1=_OG.getActiveUniform(__S1,_m5),_wT1=_vT1["name"];if(_vT1["size"]>1){var _t9=_wT1.indexOf('[');if(_t9>0){_wT1=_wT1.substring(0,
_t9);}}if((_vT1["type"]==_OG.SAMPLER_2D)||(_vT1["type"]==_OG.SAMPLER_CUBE)){if(_wT1!=_qT1){_DB[_TB]=_wT1;var _pT1=_OG.getUniformLocation(__S1,_wT1);_OG.uniform1iv(_pT1,[_TB++]);}}else {switch(_vT1["type"]){case _OG.FLOAT:_uT1=1;break;case _OG._xT1:_uT1=1;break;case _OG.INT:_uT1=1;break;case _OG._yT1:_uT1=1;break;case _OG.FLOAT_VEC2:_uT1=2;break;case _OG.FLOAT_VEC3:_uT1=3;break;case _OG.FLOAT_VEC4:_uT1=4;break;case _OG.INT_VEC2:_uT1=2;break;case _OG.INT_VEC3:_uT1=3;break;case _OG.INT_VEC4:_uT1=4;break;case _OG._zT1:_uT1=2;
break;case _OG._AT1:_uT1=3;break;case _OG._BT1:_uT1=4;break;case _OG.FLOAT_MAT2:_uT1=4;break;case _OG.FLOAT_MAT3:_uT1=9;break;case _OG.FLOAT_MAT4:_uT1=16;break;default :_uT1=1;}}__S1._sT1._mh[_m5]=_wT1;__S1._sT1[_wT1]={index:_m5,location:_OG.getUniformLocation(__S1,_wT1),_CT1:_vT1,width:_uT1,size:_vT1.size};__S1._sT1[_m5]=__S1._sT1[_wT1];__S1._kr1=_jT1;__S1._DT1=_kT1;}__S1._cT1=_bS1++;_mT1={_nT1:__S1,_oT1:_DB};return _mT1;};/*@this {yyWebGL} */this._ET1=function(){_ZR1++;};/*@this {yyWebGL} */this._FT1=function(){
_WR1._je1();_XR1._O3=_ZR1;_XR1._GT1();_XR1._qJ();_OG.clearColor(1,1,1,1);_OG.colorMask(false,false,false,true);_OG.clear(_OG.COLOR_BUFFER_BIT);_OG.colorMask(true,true,true,true);};/*@this {yyWebGL} */this._HT1=function(){_WR1._je1();_XR1._GT1();};/*@this {yyWebGL} */this._IT1=function(_rj,_4l){_YR1._Ga(_ca._qa,_rj);_YR1._Ga(_ca._ra,_4l);_YR1._Ga(_ca._sa,_rj);_YR1._Ga(_ca._ta,_4l);};this._JT1=function(_cz){_YR1._Ga(_ca._4B,_cz);};/*@this {yyWebGL} */this._0z=function(_OL){_YR1._Ga(_ca._5B,_OL);};
/*@this {yyWebGL} */this._4z=function(_OL){_YR1._Ga(_ca._hB,_OL?_ca._KT1:_ca._LT1);};/*@this {yyWebGL} */this._MT1=function(_NT1){};/*@this {yyWebGL} */this._2z=function(_OL){_YR1._Ga(_ca._8B,_OL);};/*@this {yyWebGL} *//*@this {yyWebGL} */this._bz=function(_OT1,_PT1,_QT1,_RT1){var _wB={_Iu:_OT1,_Ju:_PT1,_Ku:_QT1,alpha:_RT1};_YR1._Ga(_ca._xB,_wB);};/*@this {yyWebGL} */this._Wz=function(_S4,_ST1,_TT1,_UT1){_WR1._je1();_XR1._Wz(_S4,_ST1,_TT1,_UT1);};/*@this {yyWebGL} */this.__z=function(_S4,_OL,_VT1){
_WR1._je1();_XR1.__z(_S4,_OL,_VT1);};/*@this {yyWebGL} */this._0A=function(_VT1){_WR1._je1();_XR1._WT1(_VT1);};/*@this {yyWebGL} */this._2A=function(_XT1){var _YT1=_XT1[0];var end=_XT1[2];var start=end;if(_XT1[1]!=0.0)start=end-(1.0/_XT1[1]);var colour=(_XT1[4]*255)|((_XT1[5]*255)<<8)|((_XT1[6]*255)<<16)|((_XT1[7]*255)<<24);_YR1._Ga(_ca._cB,_YT1);_YR1._Ga(_ca._eB,start);_YR1._Ga(_ca._fB,end);_YR1._Ga(_ca._dB,colour);};/*@this {yyWebGL} */this._ZT1=function(_cz,__T1){_YR1._Ga(_ca._zB,_cz);_YR1._Ga(_ca._BB,
(__T1*255)|0);};/*@this {yyWebGL} */this._0U1=function(_a51,_Fm){if(_Fm){_YR1._FB(_a51,_ca._MB,_ca._NB);_YR1._FB(_a51,_ca._OB,_ca._NB);}else {_YR1._FB(_a51,_ca._MB,_ca._PB);_YR1._FB(_a51,_ca._OB,_ca._PB);}};/*@this {yyWebGL} */this._1U1=function(_a51,_QB){_YR1._FB(_a51,_ca._GB,_QB);_YR1._FB(_a51,_ca._IB,_QB);};/*@this {yyWebGL} */this._2U1=function(){return _9S1;};/*@this {yyWebGL} */this._3U1=function(_cz){_YR1._Ga(_ca._4U1,_cz);};/*@this {yyWebGL} */this._5U1=function(_PE){_YR1._Ga(_ca._6U1,_PE);
};/*@this {yyWebGL} */this._7U1=function(_8U1){_YR1._Ga(_ca._9U1,_8U1);};/*@this {yyWebGL} */this._aU1=function(_bU1){_YR1._Ga(_ca._cU1,_bU1);};/*@this {yyWebGL} */this._fz=function(_dU1){_WR1._je1();_XR1._fz(_dU1);_1S1=_dU1;};/*@this {yyWebGL} */this._eU1=function(_dU1,_fU1){var _gU1=_dU1._sT1[_fU1];if(_gU1){return _gU1.index;}return -1;};/*@this {yyWebGL} */this._hU1=function(_h51,_iU1){if(_h51!=-1){_WR1._je1();_XR1._hU1(_h51,_iU1);}};/*@this {yyWebGL} */this._jU1=function(_h51,_iU1){if(_h51!=-1){
_WR1._je1();_XR1._jU1(_h51,_iU1);}};/*@this {yyWebGL} */this._kU1=function(_h51,_iU1){if(_h51!=-1){_WR1._je1();_XR1._kU1(_h51,_iU1);}};/*@this {yyWebGL} */this._lU1=function(_h51,_iU1){var width=_1S1._sT1[_h51].width;var size=_1S1._sT1[_h51].size;var _e51;var _V6=_iU1.length;var _mU1=(_V6+width)-((_V6+width)%width);if(_mU1>(width*size))_mU1=width*size;if(_V6==_mU1){_e51=new Float32Array(_iU1);}else {_e51=new Float32Array(_mU1);if(_mU1<_V6)_V6=_mU1;for(var i=0;i<_V6;i++){_e51[i]=_iU1[i];}}return _e51;};/*@this {yyWebGL} */this._nU1=function(_h51,
_iU1){if(_h51!=-1){_WR1._je1();_iU1=_lU1(_h51,_iU1);_XR1._nU1(_h51,_iU1);}};/*@this {yyWebGL} */this._oU1=function(_h51,_iU1){if(_h51!=-1){_WR1._je1();_iU1=this._lU1(_h51,_iU1);_XR1._oU1(_h51,_iU1);}};/*@this {yyWebGL} */this._pU1=function(__n){_WR1._je1();_XR1._pU1(__n);};this._je1=function(){_WR1._je1();};/*@this {yyWebGL} */this._qU1=function(_8e,_Q5,_R5,_nj,_oj,_VR1){_XR1._qU1(_8e,_Q5,_R5,_nj,_oj,_VR1);};/*@this {yyWebGL} */this._rU1=function(_a51,_8e){_ca._sU1(_8e instanceof _xS1,"Texture is not a yyGLTexture",
_ca._tU1);_WR1._je1();_XR1._rU1(_a51,_8e);};/*@this {yyWebGL} */this._mz=function(_aw){_WR1._je1();_XR1._uU1(_aw);};/*@this {yyWebGL} */this._sz=function(_aw){_WR1._je1();_XR1._vU1(_aw);};/*@this {yyWebGL} */this._wU1=function(_aw){_WR1._je1();_XR1._xU1(_aw);};/*@this {yyWebGL} */this._yU1=function(_zU1){var _P4=new _xS1(undefined,_zU1.width,_zU1.height,_RS1(_zU1.width)&&_RS1(_zU1.height),_zU1,_zU1._AU1);return _P4;};this._BU1=function(_CU1,_DU1){var _EU1=_OG.getParameter(_OG.TEXTURE_BINDING_2D);var _Vc=_OG.createTexture();
_OG.bindTexture(_OG.TEXTURE_2D,_Vc);if(_CU1.Image instanceof Uint8Array){_OG.texImage2D(_OG.TEXTURE_2D,0,_OG.RGBA,_CU1._FU1,_CU1._GU1,0,_OG.RGBA,_OG.UNSIGNED_BYTE,_CU1.Image);}else {_OG.texImage2D(_OG.TEXTURE_2D,0,_OG.RGBA,_OG.RGBA,_OG.UNSIGNED_BYTE,_CU1.Image);}if(_DU1!==undefined&&(_DU1==_ca._HU1)||(_DU1==_ca._IU1)&&((_CU1._Ag!==undefined&&(_CU1._Ag&_JU1._KU1)!==0))){_OG.generateMipmap(_OG.TEXTURE_2D);var _LU1=_CU1._Ag;_LU1|=_JU1._MU1;_CU1._Ag=_LU1;}_CU1._NU1=_Vc;_CU1._OU1._PU1(_OG.TEXTURE_2D);_OG.bindTexture(_OG.TEXTURE_2D,
_EU1);_CU1._QU1=true;};/*@this {yyWebGL} */this._RU1=function(_Mc,_rl,_SU1,_0d){var _Bh=0;if(_Mc){_Bh|=_OG.COLOR_BUFFER_BIT;}if(_rl){_Bh|=_OG.DEPTH_BUFFER_BIT;}if(_SU1){_Bh|=_OG.STENCIL_BUFFER_BIT;}_XR1._RU1(_Bh,_0d);};/*@this {yyWebGL} */this._de1=function(_ct){_WR1._je1();_XR1._de1(_ct);};function _TU1(_UU1,_nj,_oj){if((_nj==0)||(_oj==0)){return;}var _VU1=_UU1[(_oj-1)*_nj]&0xffffff;for(var i=0;i<(_nj*_oj);i++){if((_UU1[i]&0xffffff)==_VU1){_UU1[i]=_UU1[i]&0xffffff;}}};function _WU1(_7d){var max=_aS1;
var size=1;while(size<=max){if(_7d<=size)return size;size=size<<1;}return max;};/*@this {yyWebGL} */this._XU1=function(_zU1,_Q5,_R5,_nj,_oj,_Wr,_Xr,_YU1){this._je1();var _ZU1=new Uint8Array(_nj*_oj*4);_OG.readPixels(_Q5,_8S1-(_R5+_oj),_nj,_oj,_OG.RGBA,_OG.UNSIGNED_BYTE,_ZU1);var __U1;if(_YU1){var _bj=new ArrayBuffer(_nj*_oj*4);__U1=new Uint8Array(_bj);for(var _n5=0;_n5<_oj;_n5++){var _0V1=_ZU1.subarray(_n5*_nj*4,(_n5+1)*_nj*4);var _1V1=__U1.subarray((_oj-1-_n5)*_nj*4,(_oj-_n5)*_nj*4);_1V1.set(_0V1);}if(_Wr){
_TU1(new Int32Array(_bj),_nj,_oj);}}else {__U1=_ZU1;}var w=_WU1(_nj);var h=_WU1(_oj);var _EU1=_OG.getParameter(_OG.TEXTURE_BINDING_2D);var _P4=new _xS1(undefined,w,h,(w==_nj)&&(h==_oj),__U1);_zU1.width=w;_zU1.height=h;_OG.bindTexture(_OG.TEXTURE_2D,_EU1);_XR1._qJ();return _P4;};/*@this {yyWebGL} */this._2V1=function(_zU1,_3V1,_Q5,_R5,_nj,_oj,_Wr,_Xr){this._HT1();var _4V1=_OG.getParameter(_OG.FRAMEBUFFER_BINDING);var _bj=new ArrayBuffer(_nj*_oj*4);var __U1=new Uint8Array(_bj);_OG.bindFramebuffer(_OG.FRAMEBUFFER,
_3V1);_OG.readPixels(_Q5,_R5,_nj,_oj,_OG.RGBA,_OG.UNSIGNED_BYTE,__U1);_OG.bindFramebuffer(_OG.FRAMEBUFFER,_4V1);if(_Wr){_TU1(new Int32Array(_bj),_nj,_oj);}var w=_WU1(_nj);var h=_WU1(_oj);var _EU1=_OG.getParameter(_OG.TEXTURE_BINDING_2D);var _5V1=new ArrayBuffer(w*h*4);var _6V1=new Uint8Array(_5V1);var y;var _Lk=0;var _7V1=0;for(y=0;y<_oj;y++){var x;for(x=0;x<_nj;x++){_6V1[_Lk++]=__U1[_7V1++];_6V1[_Lk++]=__U1[_7V1++];_6V1[_Lk++]=__U1[_7V1++];_6V1[_Lk++]=__U1[_7V1++];}for(;x<w;x++){_6V1[_Lk++]=0;_6V1[_Lk++]=0;
_6V1[_Lk++]=0;_6V1[_Lk++]=0;}}for(;y<h;y++){var x;for(x=0;x<w;x++){_6V1[_Lk++]=0;_6V1[_Lk++]=0;_6V1[_Lk++]=0;_6V1[_Lk++]=0;}}var _P4=new _xS1(undefined,w,h,(w==_nj)&&(h==_oj),_6V1);_zU1.width=w;_zU1.height=h;_OG.bindTexture(_OG.TEXTURE_2D,_EU1);this._HT1();_XR1._qJ();return _P4;};/*@this {yyWebGL} */this._8V1=function(_zU1,_9V1,_nj,_oj){var w=_WU1(_nj);var h=_WU1(_oj);var _EU1=_OG.getParameter(_OG.TEXTURE_BINDING_2D);var _P4=new _xS1(undefined,w,h,(w==_nj)&&(h==_oj),_9V1);_zU1.width=w;_zU1.height=h;_OG.bindTexture(_OG.TEXTURE_2D,
_EU1);_XR1._qJ();return _P4;};/*@this {yyWebGL} */this._aV1=function(_zU1,_9V1,_nj,_oj){var _bj=new ArrayBuffer(_nj*_oj*4);var _bV1=new DataView(_bj);for(var _I6=0;_I6<_nj*_oj;_I6++){_bV1.setUint32(_I6*4,~~_9V1[_I6],true);}return this._8V1(_zU1,new Uint8Array(_bj),_nj,_oj);};/*@this {yyWebGL} */this._cV1=function(_8e,_A9){_ca._sU1(_8e instanceof _xS1,"Texture is not a yyGLTexture",_ca._tU1);if(!_dV1(_8e,_ca._eV1)){_4t(_8e);_0t(_8e);}var _Vc=_8e._NU1;var w=_8e._FU1;var h=_8e._GU1;var _4V1=_OG.getParameter(_OG.FRAMEBUFFER_BINDING);
var _fV1=_OG.createFramebuffer();_OG.bindFramebuffer(_OG.FRAMEBUFFER,_fV1);_OG.framebufferTexture2D(_OG.FRAMEBUFFER,_OG.COLOR_ATTACHMENT0,_OG.TEXTURE_2D,_Vc,0);var __U1=new Uint8Array(w*h*4);_OG.readPixels(0,0,w,h,_OG.RGBA,_OG.UNSIGNED_BYTE,__U1);_OG.bindFramebuffer(_OG.FRAMEBUFFER,_4V1);_OG.deleteFramebuffer(_fV1);for(var i=0;i<(w*h);i++){__U1[(i*4)+3]=_A9[i];}var _Jq1=_WU1(w);var _yh=_WU1(h);var _EU1=_OG.getParameter(_OG.TEXTURE_BINDING_2D);var _P4=new _xS1(undefined,_Jq1,_yh,(_Jq1==w)&&(_yh==h),__U1);
_OG.deleteTexture(_8e._NU1);_OG.bindTexture(_OG.TEXTURE_2D,_EU1);return _P4;};/*@this {yyWebGL} */this._gV1=function(_Q5,_R5){this._je1();var __U1=new Uint8Array(16);_OG.readPixels(_Q5,_8S1-_R5,1,1,_OG.RGBA,_OG.UNSIGNED_BYTE,__U1);var _L4=(__U1[0])+(__U1[1]<<8)+(__U1[2]<<16)+(__U1[3]*0x01000000);_XR1._qJ();return _L4;};/*@this {yyWebGL} */this._hV1=function(_3V1,_Q5,_R5){this._HT1();var _4V1=_OG.getParameter(_OG.FRAMEBUFFER_BINDING);var __U1=new Uint8Array(16);_OG.bindFramebuffer(_OG.FRAMEBUFFER,_3V1);_OG.readPixels(_Q5,
_R5,1,1,_OG.RGBA,_OG.UNSIGNED_BYTE,__U1);var _L4=(__U1[0])+(__U1[1]<<8)+(__U1[2]<<16)+(__U1[3]*0x01000000);_OG.bindFramebuffer(_OG.FRAMEBUFFER,_4V1);_XR1._qJ();return _L4;};/*@this {yyWebGL} */this._iV1=function(_3V1,_Q5,_R5,_nj,_oj){this._HT1();var _4V1=_OG.getParameter(_OG.FRAMEBUFFER_BINDING);var __U1=new Uint8Array(_nj*_oj*4);_OG.bindFramebuffer(_OG.FRAMEBUFFER,_3V1);_OG.readPixels(_Q5,_R5,_nj,_oj,_OG.RGBA,_OG.UNSIGNED_BYTE,__U1);_OG.bindFramebuffer(_OG.FRAMEBUFFER,_4V1);_XR1._qJ();return __U1;};/*@this {yyWebGL} */this._jV1=function(_nj,
_oj){var _EU1=_OG.getParameter(_OG.TEXTURE_BINDING_2D);var _4V1=_OG.getParameter(_OG.FRAMEBUFFER_BINDING);var _kV1=_OG.getParameter(_OG.RENDERBUFFER_BINDING);{var _lV1=_OG.createFramebuffer();_lV1.width=_nj;_lV1.height=_oj;_OG.bindFramebuffer(_OG.FRAMEBUFFER,_lV1);var _mV1=_OG.createTexture();_OG.bindTexture(_OG.TEXTURE_2D,_mV1);_OG.texImage2D(_OG.TEXTURE_2D,0,_OG.RGBA,_nj,_oj,0,_OG.RGBA,_OG.UNSIGNED_BYTE,null);var _nV1=new _xS1(_mV1,_nj,_oj,_RS1(_nj)&&_RS1(_oj),null);var _oV1=_OG.createRenderbuffer();_OG.bindRenderbuffer(_OG.RENDERBUFFER,
_oV1);_OG.framebufferTexture2D(_OG.FRAMEBUFFER,_OG.COLOR_ATTACHMENT0,_OG.TEXTURE_2D,_mV1,0);if(_Cd1){_OG.renderbufferStorage(_OG.RENDERBUFFER,_OG.DEPTH_STENCIL,_lV1.width,_lV1.height);_OG.framebufferRenderbuffer(_OG.FRAMEBUFFER,_OG.DEPTH_STENCIL_ATTACHMENT,_OG.RENDERBUFFER,_oV1);}}_OG.bindTexture(_OG.TEXTURE_2D,_EU1);_OG.bindFramebuffer(_OG.FRAMEBUFFER,_4V1);_OG.bindRenderbuffer(_OG.RENDERBUFFER,_kV1);var _pV1={_Yd1:_lV1,_qV1:_oV1,_NU1:_nV1};return _pV1;};/*@this {yyWebGL} */this._rV1=function(_3V1){
_OG.deleteFramebuffer(_3V1._Yd1);_OG.deleteRenderbuffer(_3V1._qV1);_OG.deleteTexture(_3V1._NU1._NU1);_3V1._NU1=null;};/*@this {yyWebGL} */this._sV1=function(_tV1){_OG.deleteTexture(_tV1);};/*@this {yyWebGL} */this._uV1=function(_8e){_ca._sU1(_8e instanceof _xS1,"NULL texture is not a yyGLTexture",_ca._tU1);_XR1._vV1=_8e;};/*@this {yyWebGL} */this._Ia=function(_wc,_8e,_Ad,_wV1){_ca._sU1((_8e==null)||(_8e instanceof _xS1),"Texture is not a yyGLTexture",_ca._tU1);return _WR1._Ia(_wc,_8e,_Ad,_wV1,_4S1[_Ad],
_ZR1);};/*@this {yyWebGL} */this._9e=function(_wc,_8e,_xV1,_yV1){_ca._sU1((_8e==null)||(_8e instanceof _xS1),"Texture is not a yyGLTexture",_ca._tU1);_WR1._zV1(_wc,_8e,_xV1,_yV1);};/*@this {yyWebGL} */this._AV1=function(_Tb1){var _95=_Tb1._95._Ba;if(!_dV1(_95,_ca._eV1)){_4t(_95);_0t(_95);}var _Vc=_95._NU1;var w=_95._FU1;var h=_95._GU1;var _4V1=_OG.getParameter(_OG.FRAMEBUFFER_BINDING);var _fV1=_OG.createFramebuffer();_OG.bindFramebuffer(_OG.FRAMEBUFFER,_fV1);_OG.framebufferTexture2D(_OG.FRAMEBUFFER,_OG.COLOR_ATTACHMENT0,
_OG.TEXTURE_2D,_Vc,0);var data=new Uint8Array(w*h*4);_OG.readPixels(0,0,w,h,_OG.RGBA,_OG.UNSIGNED_BYTE,data);_OG.bindFramebuffer(_OG.FRAMEBUFFER,_4V1);_OG.deleteFramebuffer(_fV1);return data;};}var _ca={_BV1:8,_mS1:8,_CV1:-1,_Ja:0,_Bc:1,_Ac:2,_yc:3,_zc:4,_xc:5,_Fd:1,_Kd:2,_Ud:3,_Sd:4,_DV1:5,_EV1:6,_FV1:7,_GV1:8,_HV1:9,_IV1:10,_JV1:11,_KV1:12,_LV1:13,_MV1:14,_NV1:14,_Wd:1,_Gd:2,_Id:3,__d:4,_Ld:5,_1e:6,_OV1:6,_iB:1,_ga:2,_PV1:3,_ia:4,_da:5,_fa:6,_QV1:7,_RV1:8,_ha:9,_SV1:10,_TV1:11,_UV1:12,_VV1:13,_WV1:14,
_XV1:15,_YV1:16,_ZV1:16,__V1:0,_5B:1,_0W1:2,_1W1:3,_8B:4,_zB:5,_qa:6,_ra:7,_hB:8,_7B:9,_BB:10,_dC:11,_4B:12,_cB:13,_2W1:14,_dB:15,_3W1:16,_eB:17,_fB:18,_4W1:19,_5W1:20,_6W1:21,_7W1:22,_8W1:23,_xB:24,_4U1:25,_9W1:26,_aW1:27,_9U1:28,_6U1:29,_cU1:30,_bW1:31,_cW1:32,_ua:33,_sa:34,_ta:35,_dW1:36,_eW1:37,_fW1:1,_gW1:2,_hW1:3,_iW1:4,_jW1:5,_kW1:6,_lW1:7,_mW1:8,_nW1:1,_oW1:2,_pW1:3,_qW1:4,_rW1:5,_sW1:6,_tW1:7,_uW1:8,_NB:0,_PB:1,_GB:0,_IB:1,_MB:2,_OB:3,_RB:4,_XB:5,_ZB:6,_VB:7,_0C:8,_1C:9,_vW1:10,_JB:0,_HB:1,
_wW1:2,_xW1:3,_LT1:0,_yW1:1,_KT1:2,_zW1:0,_AW1:1,_BW1:2,_CW1:0,_DW1:1,_EW1:0,_FW1:1,_GW1:0,_HW1:1,_IW1:2,_JW1:3,_KW1:0,_LW1:1,_MW1:2,_NW1:4,_OW1:8,_eV1:-1,_PW1:0,_HU1:1,_IU1:2,_QW1:0,_RW1:1,_tU1:2,_SW1:1,_sU1:function(_TW1,_UW1,_VW1){if(!_TW1){throw new Error(_UW1);}}};Object.freeze(_ca);/*@constructor */function _nS1(_WW1){var _OG=this._wS1;var _XW1=0,_YW1=1,_ZW1=2,__W1=3,_0X1=4,_1X1=5,_2X1=6,_3X1=7,_4X1=8,_5X1=9,_6X1=10,_7X1=11,_8X1=12,_9X1=13,_aX1=14,_bX1=15,_cX1=16,_dX1=17,_eX1=18,_fX1=19,_gX1=20,
_hX1=21,_iX1=22,_jX1=23,_kX1=24,_lX1=25,_mX1=26,_nX1=27;var _oX1=0,_pX1=1,_qX1=2,_rX1=3,_sX1=4,_tX1=5;var _uX1=1,_vX1=2,_wX1=4,_xX1=8;var _yX1=[];var _zX1=[],_AX1,_BX1;var _CX1,_DX1=[],_EX1=[],_FX1=[],_GX1=new Float32Array(_ca._BV1*4),_HX1=new Float32Array(_ca._BV1*4),_IX1=new Float32Array(_ca._BV1*4),_JX1=new Float32Array(4),_KX1=new Float32Array(8),_LX1=0.0,_MX1=0.0,_NX1=false,_OX1=0.0,_PX1,_QX1=_OG.SRC_ALPHA,_RX1=_OG.ONE_MINUS_SRC_ALPHA,_SX1=_OG.SRC_ALPHA,_TX1=_OG.ONE_MINUS_SRC_ALPHA;var _ZR1=0,_UX1;Object.defineProperties(this,
{_O3:{get :function(){return _ZR1;},set :function(_re){_ZR1=_re;}},_vV1:{get :function(){return _UX1;},set :function(_re){_UX1=_re;}}});(function(){_VX1();var _lS1=_OG.getParameter(_OG.MAX_TEXTURE_IMAGE_UNITS);if(_lS1>_ca._mS1){_lS1=_ca._mS1;}for(var _TB=0;_TB<_lS1;_TB++){_FX1[_TB]=new _zS1(_WW1);}var _WX1=_XX1(_ca._fW1);_PX1={_YX1:0,_791:0xffffffff,_ZX1:0xffffffff,_HV:__X1(_ca._uW1),_0Y1:_WX1,_1Y1:_WX1,_2Y1:_WX1};for(var i=0;i<_tX1;i++){_EX1[i]=new _Zy();}})();function _VX1(){_zX1=[];_BX1=undefined;_AX1=undefined;
_zX1[0]=1;_zX1[1]=1;};/*@this {yyCommandBuilder} */this._qJ=function(){_VX1();};/*@this {yyCommandBuilder} */this._fz=function(_3Y1){if(_3Y1!=_AX1){_BX1=null;_yX1.push(_dX1);_yX1.push(_3Y1);_AX1=_3Y1;}};/*@this {yyCommandBuilder} */this._rU1=function(_a51,_8e){if(_zX1[_a51]==_8e){return;}_zX1[_a51]=_8e;_yX1.push(_YW1);_yX1.push(_8e);_yX1.push(_a51);};/*@this {yyCommandBuilder} */this._pU1=function(_1o){_yX1.push(_1o);};this._qU1=function(_8e,_Q5,_R5,_nj,_oj,_4Y1){_yX1.push(_nX1);_yX1.push(_8e);_yX1.push(_Q5);
_yX1.push(_R5);_yX1.push(_nj);_yX1.push(_oj);_yX1.push(_4Y1);};/*@this {yyCommandBuilder} */this._5Y1=function(_6Y1){if(_BX1==_6Y1)return;_BX1=_6Y1;_yX1.push(_8X1);_yX1.push(_6Y1);};/*@this {yyCommandBuilder} */this._7Y1=function(_9B,_8Y1){_yX1.push(_ZW1);_yX1.push(_9B);_yX1.push(_8Y1);};/*@this {yyCommandBuilder} */this._9Y1=function(_9B,_8Y1){_yX1.push(__W1);_yX1.push(_9B);_yX1.push(_8Y1);};/*@this {yyCommandBuilder} */this._aY1=function(_9B,_8Y1){_yX1.push(_0X1);_yX1.push(_9B);_yX1.push(_8Y1);
};/*@this {yyCommandBuilder} */this._bY1=function(_9B,_8Y1){_yX1.push(_1X1);_yX1.push(_9B);_yX1.push(_8Y1);};/*@this {yyCommandBuilder} */this._cY1=function(_9B,_8Y1){_yX1.push(_2X1);_yX1.push(_9B);_yX1.push(_8Y1);};/*@this {yyCommandBuilder} */this._HB1=function(_9B,_8Y1){_yX1.push(_3X1);_yX1.push(_9B);_yX1.push(_8Y1);};/*@this {yyCommandBuilder} */this._vU1=function(_aw){_yX1.push(_5X1);_yX1.push(new _Zy(_aw));};/*@this {yyCommandBuilder} */this._uU1=function(_aw){_yX1.push(_6X1);_yX1.push(new _Zy(_aw));
};/*@this {yyCommandBuilder} */this._xU1=function(_aw){_yX1.push(_4X1);_yX1.push(new _Zy(_aw));};/*@this {yyCommandBuilder} */this._TS1=function(_Q5,_R5,_nj,_oj){_yX1.push(_7X1);_yX1.push(_Q5);_yX1.push(_R5);_yX1.push(_nj);_yX1.push(_oj);};/*@this {yyCommandBuilder} */this._RU1=function(_uF,_0d){_yX1.push(_9X1);_yX1.push(_uF);_yX1.push(Math.floor(_0d));};/*@this {yyCommandBuilder} */this._de1=function(_dY1){_yX1.push(_aX1);_yX1.push(_dY1);};/*@this {yyCommandBuilder} */this._eY1=function(_A9,_pB,
_qB,_rB){_yX1.push(_bX1);_yX1.push(_A9);_yX1.push(_pB);_yX1.push(_qB);_yX1.push(_rB);};/*@this {yyCommandBuilder} */this._IT1=function(_rj,_4l){_yX1.push(_cX1);_yX1.push(_rj);_yX1.push(_4l);};/*@this {yyCommandBuilder} */this._hU1=function(_fY1,_iU1){_yX1.push(_eX1);_yX1.push(_fY1);_yX1.push(_iU1);};/*@this {yyCommandBuilder} */this._jU1=function(_fY1,_iU1){_yX1.push(_fX1);_yX1.push(_fY1);_yX1.push(_iU1);};/*@this {yyCommandBuilder} */this._nU1=function(_fY1,_iU1){_yX1.push(_eX1);_yX1.push(_fY1);
_yX1.push(_iU1);};/*@this {yyCommandBuilder} */this._oU1=function(_fY1,_iU1){_yX1.push(_fX1);_yX1.push(_fY1);_yX1.push(_iU1);};/*@this {yyCommandBuilder} */this._kU1=function(_fY1,_iU1){_yX1.push(_fX1);_yX1.push(_fY1);_yX1.push(_iU1);};/*@this {yyCommandBuilder} */this._Ga=function(_gY1,_hY1){_yX1.push(_gX1);_yX1.push(_gY1);_yX1.push(_hY1);};/*@this {yyCommandBuilder} */this._FB=function(_a51,_iY1,_jY1){_yX1.push(_hX1);_yX1.push(_a51);_yX1.push(_iY1);_yX1.push(_jY1);};/*@this {yyCommandBuilder} */this._Wz=function(_t9,
_kY1,_lY1,_mY1){_yX1.push(_iX1);_yX1.push(_t9);_yX1.push(new Float32Array(_kY1));_yX1.push(new Float32Array(_lY1));_yX1.push(new Float32Array(_mY1));};/*@this {yyCommandBuilder} */this._WT1=function(colour){_yX1.push(_jX1);_yX1.push(new Float32Array(colour));};/*@this {yyCommandBuilder} */this._nY1=function(_oY1){_yX1.push(_kX1);_yX1.push(new Float32Array(_oY1));};/*@this {yyCommandBuilder} */this.__z=function(_t9,enable,colour){_yX1.push(_lX1);_yX1.push(_t9);_yX1.push(enable);_yX1.push(colour);};/*@this {yyCommandBuilder} */this._ZT1=function(_cz,
_pY1){_yX1.push(_mX1);_yX1.push(_cz);_yX1.push(_pY1);};function _qY1(_Ln){switch(_Ln){case _ca._iB:return _OG.ZERO;case _ca._ga:return _OG.ONE;case _ca._PV1:return _OG.SRC_COLOR;case _ca._ia:return _OG.ONE_MINUS_SRC_COLOR;case _ca._da:return _OG.SRC_ALPHA;case _ca._fa:return _OG.ONE_MINUS_SRC_ALPHA;case _ca._QV1:return _OG.DST_ALPHA;case _ca._RV1:return _OG.ONE_MINUS_DST_ALPHA;case _ca._ha:return _OG.DST_COLOR;case _ca._SV1:return _OG.ONE_MINUS_DST_COLOR;case _ca._TV1:return _OG.SRC_ALPHA_SATURATE;case _ca._UV1:return 0;
case _ca._VV1:return 0;case _ca._WV1:return 0;case _ca._XV1:return 0;case _ca._YV1:return 0;case _ca._ZV1:return 0;}return 0;}function _XX1(_Ln){switch(_Ln){case _ca._fW1:return _OG.KEEP;case _ca._gW1:return _OG.ZERO;case _ca._hW1:return _OG.REPLACE;case _ca._iW1:return _OG.INCR;case _ca._jW1:return _OG.DECR;case _ca._kW1:return _OG.INVERT;case _ca._lW1:return _OG.INCR;case _ca._mW1:return _OG.DECR;default :return _OG.KEEP;}}function __X1(_Ln){switch(_Ln){case _ca._nW1:return _OG.NEVER;case _ca._oW1:return _OG.LESS;case _ca._pW1:return _OG.EQUAL;
case _ca._qW1:return _OG.LEQUAL;case _ca._rW1:return _OG.GREATER;case _ca._sW1:return _OG.NOTEQUAL;case _ca._tW1:return _OG.GEQUAL;case _ca._uW1:default :return _OG.ALWAYS;}}function _rY1(_gY1,_hY1){switch(_gY1){case _ca._5B:if(_hY1){_OG.enable(_OG.DEPTH_TEST);}else {_OG.disable(_OG.DEPTH_TEST);}break;case _ca._8B:_OG.depthMask(_hY1);break;case _ca._zB:_NX1=_hY1;_sY1(_xX1);break;case _ca._qa:_QX1=_qY1(_hY1);_OG.blendFuncSeparate(_QX1,_RX1,_SX1,_TX1);break;case _ca._ra:_RX1=_qY1(_hY1);_OG.blendFuncSeparate(_QX1,_RX1,
_SX1,_TX1);break;case _ca._hB:if(_hY1!=_ca._LT1){_OG.enable(_OG.CULL_FACE);_OG.frontFace((_hY1===_ca._yW1)?_OG.CW:_OG.CCW);}else {_OG.disable(_OG.CULL_FACE);}break;case _ca._7B:_OG.depthFunc(__X1(_hY1));break;case _ca._BB:_OX1=_hY1/255.0;_sY1(_xX1);break;case _ca._dC:break;case _ca._4B:if(_hY1){_OG.enable(_OG.BLEND);}else {_OG.disable(_OG.BLEND);}break;case _ca._cB:_KX1[0]=_hY1;_sY1(_uX1);break;case _ca._2W1:break;case _ca._dB:_KX1[4]=(_hY1&0xff)/255.0;_KX1[5]=((_hY1>>8)&0xff)/255.0;_KX1[6]=((_hY1>>16)&0xff)/255.0;
_KX1[7]=((_hY1>>24)&0xff)/255.0;_sY1(_uX1);break;case _ca._3W1:break;case _ca._eB:_LX1=_hY1;var _Qu=_MX1-_LX1;_KX1[1]=(_Qu==0.0)?0.0:(1.0/_Qu);_sY1(_uX1);break;case _ca._fB:_MX1=_hY1;_KX1[2]=_hY1;var _Qu=_MX1-_LX1;_KX1[1]=(_Qu==0.0)?0.0:(1.0/_Qu);_sY1(_uX1);break;case _ca._4W1:break;case _ca._5W1:break;case _ca._6W1:break;case _ca._7W1:break;case _ca._8W1:break;case _ca._xB:_OG.colorMask(_hY1._Iu,_hY1._Ju,_hY1._Ku,_hY1.alpha);break;case _ca._4U1:if(_hY1){_OG.enable(_OG.STENCIL_TEST);}else {_OG.disable(_OG.STENCIL_TEST);
}break;case _ca._9W1:_PX1._0Y1=_XX1(_hY1);_OG.stencilOp(_PX1._0Y1,_PX1._1Y1,_PX1._2Y1);break;case _ca._aW1:_PX1._1Y1=_XX1(_hY1);_OG.stencilOp(_PX1._0Y1,_PX1._1Y1,_PX1._2Y1);break;case _ca._9U1:_PX1._2Y1=_XX1(_hY1);_OG.stencilOp(_PX1._0Y1,_PX1._1Y1,_PX1._2Y1);break;case _ca._6U1:_PX1._HV=__X1(_hY1);_OG.stencilFunc(_PX1._HV,_PX1._YX1,_PX1._791);break;case _ca._cU1:_PX1._YX1=_hY1;_OG.stencilFunc(_PX1._HV,_PX1._YX1,_PX1._791);break;case _ca._bW1:_PX1._791=_hY1;_OG.stencilFunc(_PX1._HV,_PX1._YX1,_PX1._791);
break;case _ca._cW1:_OG.stencilMask(_hY1);break;case _ca._ua:break;case _ca._sa:_SX1=_qY1(_hY1);_OG.blendFuncSeparate(_QX1,_RX1,_SX1,_TX1);break;case _ca._ta:_TX1=_qY1(_hY1);_OG.blendFuncSeparate(_QX1,_RX1,_SX1,_TX1);break;case _ca._dW1:if(_hY1!=_ca._LT1){_OG.enable(_OG.CULL_FACE);_OG.frontFace((_hY1===_ca._yW1)?_OG.CW:_OG.CCW);}else {_OG.disable(_OG.CULL_FACE);}break;}}function _tY1(){if(_CX1&&_CX1._5T1){_EX1[_rX1].Multiply(_EX1[_qX1],_EX1[_oX1]);_EX1[_sX1].Multiply(_EX1[_rX1],_EX1[_pX1]);var _uY1=new Float32Array(16*_tX1);
for(var i=0;i<_tX1;i++){_uY1.set(_EX1[i]._K6,i*16);}_OG.uniformMatrix4fv(_CX1._5T1,_OG._vY1,_uY1);}}function _sY1(_wY1){if(_wY1&_xX1){if(_CX1._7T1!==undefined){_OG.uniform1i(_CX1._7T1,_NX1);}if(_CX1._8T1!==undefined){_OG.uniform1f(_CX1._8T1,_OX1);}}if((_wY1&_uX1)&&(_CX1._6T1!==undefined)){_OG.uniform4fv(_CX1._6T1,_KX1);}if(_wY1&_vX1){if(_CX1._fT1!==undefined){_OG.uniform4fv(_CX1._fT1,_GX1);}if(_CX1._eT1!==undefined){_OG.uniform4fv(_CX1._eT1,_HX1);}if(_CX1._gT1!==undefined){_OG.uniform4fv(_CX1._gT1,
_IX1);}}if((_wY1&_wX1)&&(_CX1._hT1!==undefined)){_OG.uniform4fv(_CX1._hT1,_JX1);}}var _xY1=[_OG.NEAREST_MIPMAP_NEAREST,_OG.LINEAR_MIPMAP_NEAREST,_OG.LINEAR_MIPMAP_NEAREST,_OG.NEAREST_MIPMAP_LINEAR,_OG.LINEAR_MIPMAP_LINEAR,_OG.LINEAR_MIPMAP_LINEAR,_OG.NEAREST_MIPMAP_LINEAR,_OG.LINEAR_MIPMAP_LINEAR,_OG.LINEAR_MIPMAP_LINEAR,];function _yY1(_LV,_zY1){return _xY1[(_zY1*_ca._xW1)+_LV];}function _AY1(_8e,_a51){if(_8e===null||_8e===undefined){return;}var _BY1=false;if(_8e._Ag!==undefined){_BY1=(_8e._Ag&_JU1._MU1)!==0;
}var _CY1=_FX1[_a51];if(_CY1===null||_CY1===undefined){return;}var _DY1=_CY1._EY1;var _FY1=_8e._OU1._EY1;if(_8e._QU1===true||_DY1[_ca._GB]!=_FY1[_ca._GB]){_OG.texParameteri(_OG.TEXTURE_2D,_OG.TEXTURE_MAG_FILTER,(_DY1[_ca._GB]==_ca._HB)?_OG.LINEAR:_OG.NEAREST);_FY1[_ca._GB]=_DY1[_ca._GB];}if(!_BY1){if(_8e._QU1===true||_DY1[_ca._IB]!=_FY1[_ca._IB]){_OG.texParameteri(_OG.TEXTURE_2D,_OG.TEXTURE_MIN_FILTER,(_DY1[_ca._IB]==_ca._HB)?_OG.LINEAR:_OG.NEAREST);_FY1[_ca._IB]=_DY1[_ca._IB];}}else {if(_8e._QU1===true||_DY1[_ca._RB]!=_FY1[_ca._RB]||_DY1[_ca._IB]!=_FY1[_ca._IB]){
var _GY1=_yY1(_DY1[_ca._IB],_DY1[_ca._RB]);_OG.texParameteri(_OG.TEXTURE_2D,_OG.TEXTURE_MIN_FILTER,_GY1);_FY1[_ca._RB]=_DY1[_ca._RB];_FY1[_ca._IB]=_DY1[_ca._IB];}if(_vS1){if(_DY1[_ca._RB]==_ca._wW1){if(_FY1[_ca._0C]!=_DY1[_ca._0C]){_FY1[_ca._0C]=_DY1[_ca._0C];var _HY1=_OG.getParameter(_vS1.MAX_TEXTURE_MAX_ANISOTROPY_EXT);var _IY1=_FY1[_ca._0C];_IY1=Math.min(_IY1,_HY1);_OG.texParameterf(_OG.TEXTURE_2D,_vS1.TEXTURE_MAX_ANISOTROPY_EXT,_IY1);}}else {if(_FY1[_ca._0C]!=1.0){_FY1[_ca._0C]=1.0;_OG.texParameterf(_OG.TEXTURE_2D,
_vS1.TEXTURE_MAX_ANISOTROPY_EXT,1.0);}}}}if(_DY1[_ca._MB]!=_FY1[_ca._MB]){if(_8e._JY1){var _KY1=(_DY1[_ca._MB]==_ca._PB)?_OG.CLAMP_TO_EDGE:_OG.REPEAT;_OG.texParameteri(_OG.TEXTURE_2D,_OG.TEXTURE_WRAP_S,_KY1);}_FY1[_ca._MB]=_DY1[_ca._MB];}if(_DY1[_ca._OB]!=_FY1[_ca._OB]){if(_8e._JY1){var _KY1=(_DY1[_ca._OB]==_ca._PB)?_OG.CLAMP_TO_EDGE:_OG.REPEAT;_OG.texParameteri(_OG.TEXTURE_2D,_OG.TEXTURE_WRAP_T,_KY1);}_FY1[_ca._OB]=_DY1[_ca._OB];}_8e._QU1=false;}var _LY1=null;function _5Y1(_MY1){_OG.bindBuffer(_OG.ARRAY_BUFFER,
_MY1._NY1);if(_LY1!=null){if(_LY1._OS1===true){var _OY1,_PY1,_QY1=_LY1._od.length;;for(_OY1=0;_OY1<_QY1;++_OY1){switch(_OY1){case 0:_PY1=_CX1._0T1;break;case 1:_PY1=_CX1._2T1;break;case 2:_PY1=_CX1._3T1;break;case 3:_PY1=_CX1._1T1;break;default :_PY1=-1;break;}if(_PY1>=0){_OG.disableVertexAttribArray(_PY1);}}}else {var _OY1,_PY1,_QY1=_LY1._od.length;;for(_OY1=0;_OY1<_QY1;++_OY1){_PY1=_CX1._9T1[_OY1];if(_PY1>=0){_OG.disableVertexAttribArray(_PY1);}}}}var _RY1=_MY1._SY1;_LY1=_RY1;if(_RY1._OS1===true){var _OY1,
_PY1,_TY1,_QY1=_RY1._od.length;for(_OY1=0;_OY1<_QY1;++_OY1){_TY1=_RY1._od[_OY1];switch(_OY1){case 0:_PY1=_CX1._0T1;break;case 1:_PY1=_CX1._2T1;break;case 2:_PY1=_CX1._3T1;break;case 3:_PY1=_CX1._1T1;break;default :_PY1=-1;break;}if(_PY1>=0){_OG.enableVertexAttribArray(_PY1);_OG.vertexAttribPointer(_PY1,_TY1._UY1,_TY1._VY1,_TY1._WY1,_RY1._ud,_TY1.offset);}}}else {{var _OY1,_PY1,_TY1,_QY1=_RY1._od.length;var _XY1=_CX1._9T1.length;var _YY1=_RY1._YY1[_CX1._cT1];if(_YY1===undefined){_YY1=[];var _ZY1=[];for(_OY1=0;
_OY1<_QY1;++_OY1){_TY1=_RY1._od[_OY1];var _qd=_TY1._qd;_PY1=-1;for(var __Y1=0;__Y1<_XY1;__Y1++){if(_ZY1[__Y1]===undefined){var _0Z1=_CX1._9T1[__Y1];if(_CX1._bT1[__Y1]==_qd){_PY1=_0Z1;_ZY1[__Y1]=1;break;}else if(_CX1._bT1[__Y1]==4&&_qd==2){_CX1._bT1[__Y1]=_OG.UNSIGNED_BYTE;_PY1=_0Z1;_ZY1[__Y1]=1;break;}}}_YY1.push(_PY1);}_RY1._YY1[_CX1._cT1]=_YY1;}for(_OY1=0;_OY1<_QY1;++_OY1){_TY1=_RY1._od[_OY1];_PY1=_YY1[_OY1];if(_PY1>=0){_OG.enableVertexAttribArray(_PY1);_OG.vertexAttribPointer(_PY1,_TY1._UY1,_TY1._VY1,
_TY1._WY1,_RY1._ud,_TY1.offset);}}}}}/*@this {yyCommandBuilder} */this._GT1=function(){var i,error,_d51,_e51,_1Z1,_TB,_95,_Ha,_t9,_L4,enable,_2Z1,_gU1;i=0;while(i<_yX1.length){switch(_yX1[i]){case _dX1:{_CX1=_yX1[i+1];_2Z1=_CX1._sT1;i+=2;_OG.useProgram(_CX1);_tY1();_sY1(0xff);break;}case _7X1:{_OG.viewport(_yX1[i+1],_yX1[i+2],_yX1[i+3],_yX1[i+4]);_OG.scissor(_yX1[i+1],_yX1[i+2],_yX1[i+3],_yX1[i+4]);i+=5;break;}case _9X1:{var depthMask=_OG.getParameter(_OG.DEPTH_WRITEMASK);_OG.depthMask(true);_L4=_yX1[i+2];
_OG.clearColor((_L4&0xff)/255.0,((_L4>>8)&0xff)/255.0,((_L4>>16)&0xff)/255.0,((_L4>>24)&0xff)/255.0);_OG.clear(_yX1[i+1]);_OG.depthMask(depthMask);i+=3;break;}case _5X1:{_EX1[_pX1]=_yX1[i+1];_tY1();i+=2;break;}case _6X1:{_EX1[_oX1]=_yX1[i+1];_tY1();i+=2;break;}case _4X1:{_EX1[_qX1]=_yX1[i+1];_tY1();i+=2;break;}case _YW1:{_95=_yX1[i+1];_TB=_yX1[i+2];i+=3;if(_95===null){_95=_UX1;_OG.activeTexture(_OG.TEXTURE0+_TB);if(!_dV1(_95,_Ty())){_4t(_95,_Ty());_0t(_95,_Ty());}_OG.bindTexture(_OG.TEXTURE_2D,_95._NU1);
_OG.uniform1i(_CX1._4T1,0);_DX1[_TB]=null;}else {_OG.activeTexture(_OG.TEXTURE0+_TB);if(!_dV1(_95,_Ty())){_4t(_95,_Ty());_0t(_95,_Ty());}_OG.bindTexture(_OG.TEXTURE_2D,_95._NU1);_OG.uniform1i(_CX1._4T1,0);_AY1(_95,_TB);_DX1[_TB]=_95;}break;}case _8X1:{_Ha=_yX1[i+1];i+=2;if(_Ha._3Z1){_Ha._4Z1();}_Ha._5Z1=this._O3;_5Y1(_Ha);}break;case _ZW1:{_OG.drawArrays(_OG.TRIANGLES,_yX1[i+1],_yX1[i+2]);i+=3;break;}case __W1:{_OG.drawArrays(_OG.TRIANGLE_FAN,_yX1[i+1],_yX1[i+2]);i+=3;break;}case _0X1:{_OG.drawArrays(_OG.TRIANGLE_STRIP,
_yX1[i+1],_yX1[i+2]);i+=3;break;}case _1X1:{_OG.drawArrays(_OG.LINES,_yX1[i+1],_yX1[i+2]);i+=3;break;}case _2X1:{_OG.drawArrays(_OG.LINE_STRIP,_yX1[i+1],_yX1[i+2]);i+=3;break;}case _3X1:{_OG.drawArrays(_OG.POINTS,_yX1[i+1],_yX1[i+2]);i+=3;break;}case _aX1:{_OG.bindFramebuffer(_OG.FRAMEBUFFER,_yX1[i+1]);i+=2;break;}case _bX1:{_OG.colorMask(_yX1[i+2],_yX1[i+3],_yX1[i+4],_yX1[i+1]);i+=5;break;}case _cX1:{_OG.blendFunc(_qY1(_yX1[i+1]),_qY1(_yX1[i+2]));i+=3;break;}case _gX1:{_rY1(_yX1[i+1],_yX1[i+2]);i+=3;break;
}case _eX1:{_d51=_yX1[i+1];_e51=_yX1[i+2];i+=3;_gU1=_2Z1[_2Z1._mh[_d51]];switch(_gU1._CT1["type"]){case _OG.INT:_OG.uniform1iv(_gU1.location,_e51);break;case _OG.INT_VEC2:_OG.uniform2iv(_gU1.location,_e51);break;case _OG.INT_VEC3:_OG.uniform3iv(_gU1.location,_e51);break;case _OG.INT_VEC4:_OG.uniform4iv(_gU1.location,_e51);break;}break;}case _fX1:{_d51=_yX1[i+1];_e51=_yX1[i+2];i+=3;_gU1=_2Z1[_2Z1._mh[_d51]];switch(_gU1._CT1["type"]){case _OG.FLOAT:_OG.uniform1fv(_gU1.location,_e51);break;case _OG.FLOAT_VEC2:_OG.uniform2fv(_gU1.location,
_e51);break;case _OG.FLOAT_VEC3:_OG.uniform3fv(_gU1.location,_e51);break;case _OG.FLOAT_VEC4:_OG.uniform4fv(_gU1.location,_e51);break;case _OG.FLOAT_MAT2:_OG.uniformMatrix2fv(_gU1.location,false,_e51);break;case _OG.FLOAT_MAT3:_OG.uniformMatrix3fv(_gU1.location,false,_e51);break;case _OG.FLOAT_MAT4:_OG.uniformMatrix4fv(_gU1.location,false,_e51);break;}break;}case _hX1:{_TB=_yX1[i+1];var state=_yX1[i+2];var _Fw=_yX1[i+3];i+=4;var _CY1=_FX1[_TB];_CY1._EY1[state]=_Fw;if(_DX1[_TB]!=null){_OG.activeTexture(_OG.TEXTURE0+_TB);
if(!_dV1(_DX1[_TB],_Ty())){_4t(_DX1[_TB],_Ty());_0t(_DX1[_TB],_Ty());}_OG.bindTexture(_OG.TEXTURE_2D,_DX1[_TB]._NU1);}_AY1(_DX1[_TB],_TB);break;}case _iX1:{_t9=_yX1[i+1];_GX1.set(_yX1[i+2],_t9*4);_HX1.set(_yX1[i+3],_t9*4);_IX1.set(_yX1[i+4],_t9*4);i+=5;_sY1(_vX1);break;}case _jX1:{_JX1.set(_yX1[i+1]);i+=2;_sY1(_wX1);break;}case _kX1:{_KX1.set(_yX1[i+1]);i+=2;_sY1(_uX1);break;}case _lX1:{_t9=_yX1[i+1];enable=_yX1[i+2];_L4=_yX1[i+3];i+=4;if(enable){_IX1.set(_L4,_t9*4);}else {var _Nz=_t9*4;_IX1[_Nz+0]=0;
_IX1[_Nz+1]=0;_IX1[_Nz+2]=0;_IX1[_Nz+3]=0;}_sY1(_vX1);break;}case _mX1:{_NX1=_yX1[i+1];_OX1=_yX1[i+2];i+=3;_sY1(_xX1);break;}case _nX1:{_95=_yX1[i+1];var _27=_yX1[i+2];var _47=_yX1[i+3];var _j7=_yX1[i+4];var _k7=_yX1[i+5];var canvas=_yX1[i+6];i+=7;if(!_dV1(_95,_Ty())){_4t(_95,_Ty());_0t(_95,_Ty());}_OG.activeTexture(_OG.TEXTURE0);_OG.bindTexture(_OG.TEXTURE_2D,_95._NU1);_OG.texSubImage2D(_OG.TEXTURE_2D,0,_27,_47,_j7,_k7,_OG.RGBA,_OG.UNSIGNED_BYTE,canvas);if(_DX1.length>0){if(_DX1[0]!=null){_OG.bindTexture(_OG.TEXTURE_2D,
_DX1[0]._NU1);}}break;}}}_yX1.length=0;};}/*@constructor */function _xS1(_6Z1,_A8,_B8,_7Z1,_zU1,_8Z1,_g01){var _OG=this._wS1;var _9Z1,_aZ1,_VS,_XS,_bZ1,_cZ1,_dZ1,_Vw1;var _eZ1;Object.defineProperties(this,{_OU1:{get :function(){return _9Z1;}},_NU1:{get :function(){return _aZ1;},set :function(__3){_aZ1=__3;}},_FU1:{get :function(){return _VS;}},_GU1:{get :function(){return _XS;}},_JY1:{get :function(){return _bZ1;}},Image:{get :function(){return _cZ1;}},_fZ1:{get :function(){return _dZ1;}},_Ag:{get :function(){return _Vw1;
},set :function(__3){_Vw1=__3;}},_QU1:{get :function(){return _eZ1;},set :function(__3){_eZ1=__3;}}});(function(){_aZ1=_6Z1;_VS=_A8;_XS=_B8;_bZ1=_7Z1;_cZ1=_zU1;_dZ1=_8Z1;_Vw1=_g01;_eZ1=false;_9Z1=new _zS1();if(_aZ1){_9Z1._PU1(_OG.TEXTURE_2D);}_Vw1=_JU1._gZ1;if(_dZ1!==undefined&&_dZ1!==0){_Vw1|=(_JU1._KU1|_JU1._hZ1);}})();}var _iZ1={_gZ1:0,_3Z1:1,_jZ1:2,_kZ1:4,_lZ1:8,_mZ1:16,_KU1:32,_nZ1:64};Object.freeze(_iZ1);var _oZ1={_3Z1:0,_pZ1:1,_qZ1:2,_jZ1:3,_KU1:4,_MU1:5,_hZ1:6,_rZ1:7,_nZ1:8,_kZ1:9,_sZ1:16,};Object.freeze(_oZ1);
var _JU1={_gZ1:0,_3Z1:(1<<_oZ1._3Z1),_pZ1:(1<<_oZ1._pZ1),_qZ1:(1<<_oZ1._qZ1),_jZ1:(1<<_oZ1._jZ1),_KU1:(1<<_oZ1._KU1),_MU1:(1<<_oZ1._MU1),_hZ1:(1<<_oZ1._hZ1),_rZ1:(1<<_oZ1._rZ1),_nZ1:(1<<_oZ1._nZ1)};Object.freeze(_JU1);function _tZ1(_uZ1){var _vZ1=[];var _wZ1;(function(){if(_uZ1==undefined)_uZ1=32;_wZ1=~~(_uZ1/32);if(_wZ1==0)_wZ1=1;_vZ1=new Array(_wZ1);for(var i=0;i<_wZ1;i++){_vZ1[i]=0x0;}})();this._xZ1=function(){return _uZ1;};this._yZ1=function(_zZ1){if(_zZ1>=_uZ1)return;var _7l=~~(_zZ1/32);var _AZ1=_zZ1-(_7l*32);
_vZ1[_7l]|=1<<_AZ1;};this._BZ1=function(_zZ1){if(_zZ1>=_uZ1)return;var _7l=~~(_zZ1/32);var _AZ1=_zZ1-(_7l*32);_vZ1[_7l]&=~(1<<_AZ1);};this._CZ1=function(_zZ1){if(_zZ1>=_uZ1)return 0;var _7l=~~(_zZ1/32);var _DZ1=_zZ1-(_7l*32);var _re=(_vZ1[_7l]>>_DZ1)&0x1;return _re;};this._EZ1=function(){var i;for(i=0;i<(_wZ1-1);i++){_vZ1[i]=0xffffffff;}var _FZ1=_uZ1-(i*32);var _17;var _rd=1;for(_17=0;_17<_FZ1;_17++){_vZ1[i]|=_rd;_rd<<=1;}};this._GZ1=function(){for(var i=0;i<_wZ1;i++){_vZ1[i]=0x0;}};this._HZ1=function(){var i;
for(i=0;i<_wZ1;i++){if(_vZ1[i]!=0)return 1;}return 0;};this._IZ1=function(_sq){var _JZ1=_sq._xZ1()>this._xZ1()?_sq._xZ1():this._xZ1();var _KZ1=new _tZ1(_JZ1);for(var i=0;i<_JZ1;i++){var _LZ1=this._CZ1(i)|_sq._CZ1(i);if(_LZ1==1){_KZ1._yZ1(i);}}return _KZ1;};this._MZ1=function(_sq){var _JZ1=_sq._xZ1()>this._xZ1()?_sq._xZ1():this._xZ1();var _KZ1=new _tZ1(_JZ1);for(var i=0;i<_JZ1;i++){var _LZ1=this._CZ1(i)&_sq._CZ1(i);if(_LZ1==1){_KZ1._yZ1(i);}}return _KZ1;};}function _NZ1(_OZ1,_PZ1,_QZ1){var _RZ1=[];var _SZ1=[];(function(){
_RZ1=new Array(_OZ1);_SZ1=new Array(_PZ1*_QZ1);})();Object.defineProperties(this,{_TZ1:{get :function(){return _RZ1;},set :function(_re){_RZ1=_re;}},_UZ1:{get :function(){return _SZ1;},set :function(_re){_SZ1=_re;}},});}/*@constructor */function _pS1(_VZ1,_WZ1,_XZ1,_WW1){var _OG=this._wS1;var _YZ1=null;var _6x1=null;var _ZZ1=[];var __Z1;var _0_1=null;var _1_1=null;var _2_1=false;var _3_1=_XZ1;(function(){_0_1=new _tZ1(64);_1_1=new _tZ1(64);_YZ1=new _NZ1(_ca._eW1,_VZ1,_ca._vW1);_6x1=new _NZ1(_ca._eW1,_VZ1,_ca._vW1);_ZZ1=new Array(_WZ1);
for(var i=0;i<_WZ1;i++){_ZZ1[i]=new _NZ1(_ca._eW1,_VZ1,_ca._vW1);}_VX1();})();function _VX1(){_0_1._EZ1();_1_1._EZ1();_2_1=true;__Z1=0;_YZ1._TZ1[_ca._5B]=false;_YZ1._TZ1[_ca._0W1]=_ca._BW1;_YZ1._TZ1[_ca._1W1]=_ca._DW1;_YZ1._TZ1[_ca._8B]=true;_YZ1._TZ1[_ca._zB]=false;_YZ1._TZ1[_ca._qa]=_ca._da;_YZ1._TZ1[_ca._ra]=_ca._fa;_YZ1._TZ1[_ca._hB]=_ca._LT1;_YZ1._TZ1[_ca._7B]=_ca._qW1;_YZ1._TZ1[_ca._BB]=0;_YZ1._TZ1[_ca._dC]=_ca._rW1;_YZ1._TZ1[_ca._4B]=true;_YZ1._TZ1[_ca._cB]=false;_YZ1._TZ1[_ca._2W1]=false;_YZ1._TZ1[_ca._dB]=0x00000000;
_YZ1._TZ1[_ca._3W1]=_ca._JW1;_YZ1._TZ1[_ca._eB]=0.0;_YZ1._TZ1[_ca._fB]=1.0;_YZ1._TZ1[_ca._4W1]=0;_YZ1._TZ1[_ca._5W1]=false;_YZ1._TZ1[_ca._6W1]=false;_YZ1._TZ1[_ca._7W1]=0x00000000;_YZ1._TZ1[_ca._8W1]=_ca._JW1;_YZ1._TZ1[_ca._xB]=_ca._LW1|_ca._NW1|_ca._MW1|_ca._OW1;_YZ1._TZ1[_ca._4U1]=false;_YZ1._TZ1[_ca._9W1]=_ca._fW1;_YZ1._TZ1[_ca._aW1]=_ca._fW1;_YZ1._TZ1[_ca._9U1]=_ca._fW1;_YZ1._TZ1[_ca._6U1]=_ca._uW1;_YZ1._TZ1[_ca._cU1]=0;_YZ1._TZ1[_ca._bW1]=0xffffffff;_YZ1._TZ1[_ca._cW1]=0xffffffff;_YZ1._TZ1[_ca._ua]=false;
_YZ1._TZ1[_ca._sa]=_ca._da;_YZ1._TZ1[_ca._ta]=_ca._fa;_YZ1._TZ1[_ca._dW1]=0;var i;for(i=0;i<_ca._eW1;i++){_6x1._TZ1[i]=_YZ1._TZ1[i];}var index=0;for(i=0;i<_VZ1;i++){_YZ1._UZ1[index+_ca._GB]=_WW1==true?_ca._HB:_ca._JB;_YZ1._UZ1[index+_ca._IB]=_WW1==true?_ca._HB:_ca._JB;_YZ1._UZ1[index+_ca._RB]=_WW1==true?_ca._HB:_ca._JB;_YZ1._UZ1[index+_ca._MB]=_ca._PB;_YZ1._UZ1[index+_ca._OB]=_ca._PB;_YZ1._UZ1[index+_ca._XB]=0;_YZ1._UZ1[index+_ca._ZB]=0;_YZ1._UZ1[index+_ca._VB]=0;_YZ1._UZ1[index+_ca._0C]=0;_YZ1._UZ1[index+_ca._1C]=_ca._IU1;
index+=_ca._vW1;}for(i=0;i<(_ca._vW1*_VZ1);i++){_6x1._UZ1[i]=_YZ1._UZ1[i];}__Z1=0;};this._qJ=function(){_VX1();};this._4_1=function(){return _0_1;};this._5_1=function(){return _1_1;};this._6_1=function(){return _2_1;};this._Ga=function(_iY1,_Ln){if(_6x1._TZ1[_iY1]==_Ln)return;if(_YZ1._TZ1[_iY1]!=_Ln){_0_1._yZ1(_iY1);}else {_0_1._BZ1(_iY1);}_6x1._TZ1[_iY1]=_Ln;_2_1=_0_1._HZ1()||_1_1._HZ1();};this._7_1=function(_iY1){if(__Z1<=0)return 0;if((_iY1<0)||(_iY1>=_ca._eW1))return 0;return _ZZ1[__Z1-1]._TZ1[_iY1];
};this._FB=function(_a51,_iY1,_Ln){var index=(_a51*_ca._vW1)+_iY1;if(_6x1._UZ1[index]==_Ln)return;if(_YZ1._UZ1[index]!=_Ln){_1_1._yZ1(index);}else {_1_1._BZ1(index);}_6x1._UZ1[index]=_Ln;_2_1=_0_1._HZ1()||_1_1._HZ1();};this._pa=function(_iY1){return _6x1._TZ1[_iY1];};this._7C=function(_a51,_iY1){return _6x1._UZ1[(_a51*_ca._vW1)+_iY1];};this._8C=function(){_ZZ1[__Z1]._TZ1=_6x1._TZ1.slice();_ZZ1[__Z1]._UZ1=_6x1._UZ1.slice();if(__Z1<_WZ1){__Z1++;}else {debug("GPU state stack has run out of space");}};this._9C=function(){
if(__Z1>0){__Z1--;}else {debug("Attempting to drop below bottom of GPU state stack");}var i;for(i=0;i<_ca._eW1;i++){this._Ga(i,_ZZ1[__Z1]._TZ1[i]);}for(i=0;i<_VZ1;i++){var _17;for(_17=0;_17<_ca._vW1;_17++){this._FB(i,_17,_ZZ1[__Z1]._UZ1[(i*_VZ1)+_17]);}}};this._je1=function(){var i;if(_0_1._HZ1()){for(i=0;i<_ca._eW1;i++){if(_0_1._CZ1(i)!=0){_3_1._Ga(i,_6x1._TZ1[i]);_YZ1._TZ1[i]=_6x1._TZ1[i];}}_0_1._GZ1();}if(_1_1._HZ1()){for(i=0;i<(_VZ1*_ca._vW1);i++){if(_1_1._CZ1(i)!=0){var _TB=~~(i/_ca._vW1);var state=i-(_TB*_ca._vW1);
_3_1._FB(_TB,state,_6x1._UZ1[i]);_YZ1._UZ1[i]=_6x1._UZ1[i];}}_1_1._GZ1();}_2_1=false;};}/*@constructor */function _zS1(_WW1){var _OG=this._wS1;var _8_1=[];Object.defineProperties(this,{_EY1:{get :function(){return _8_1;}}});(function(){if(_WW1){_8_1[_ca._GB]=_ca._HB;_8_1[_ca._IB]=_ca._HB;_8_1[_ca._RB]=_ca._HB;}else {_8_1[_ca._GB]=_ca._JB;_8_1[_ca._IB]=_ca._JB;_8_1[_ca._RB]=_ca._JB;}_8_1[_ca._MB]=_ca._PB;_8_1[_ca._OB]=_ca._PB;})();/*@this {yyTextureSamplerState} */this._PU1=function(_ct){var _9_1=_8_1;_OG.texParameteri(_ct,
_OG.TEXTURE_MAG_FILTER,(_9_1[_ca._GB]==_ca._HB)?_OG.LINEAR:_OG.NEAREST);_OG.texParameteri(_ct,_OG.TEXTURE_MIN_FILTER,(_9_1[_ca._IB]==_ca._HB)?_OG.LINEAR:_OG.NEAREST);_OG.texParameteri(_ct,_OG.TEXTURE_WRAP_S,(_9_1[_ca._MB]==_ca._PB)?_OG.CLAMP_TO_EDGE:_OG.REPEAT);_OG.texParameteri(_ct,_OG.TEXTURE_WRAP_T,(_9_1[_ca._OB]==_ca._PB)?_OG.CLAMP_TO_EDGE:_OG.REPEAT);};}/*@constructor */function _Gc(_7d,_a_1,_b_1){var _OG=this._wS1;this._c_1=null;this._Uc=null;this._NY1=null;this._Pa=null;this._Ra=null;this.__c=null;
this._Ta=null;this._SY1=_a_1;this._5Z1=-1;this._Na=0;this._d_1=_7d;this._3Z1=false;_e_1(this);function _e_1(_jl){_f_1(_jl);_g_1(_jl);if(_b_1){_h_1(_jl);}}function _f_1(_jl){var _i_1=_jl._SY1._ud;_jl._c_1=new ArrayBuffer(_7d*_i_1);_jl._Uc=new Int8Array(_jl._c_1);}function _h_1(_jl){_jl._NY1=_OG.createBuffer();_OG.bindBuffer(_OG.ARRAY_BUFFER,_jl._NY1);_OG.bufferData(_OG.ARRAY_BUFFER,_jl._Uc,_OG.DYNAMIC_DRAW);}function _g_1(_jl){var _j_1=_jl._SY1._od;for(var _I6=0;_I6<_j_1.length;_I6++){var _TY1=_j_1[_I6];switch(_TY1._qd){
case _ca._Fd:_jl._Pa=_k_1(_TY1._VY1,_jl._c_1,_TY1.offset);break;case _ca._Kd:_jl._Ra=_k_1(_TY1._VY1,_jl._c_1,_TY1.offset);break;case _ca._Ud:_jl.__c=_k_1(_TY1._VY1,_jl._c_1,_TY1.offset);break;case _ca._Sd:_jl._Ta=_k_1(_TY1._VY1,_jl._c_1,_TY1.offset);break;}}}function _k_1(_l_1,_m_1,_n_1){switch(_l_1){case _OG.UNSIGNED_BYTE:return(new Int32Array(_m_1,_n_1));break;case _OG.FLOAT:return(new Float32Array(_m_1,_n_1));break;}return false;}/*@this {yyVBuffer} */this._o_1=function(_xV1){if(_xV1._Ma()===this._Ma()){
var _4e=_xV1._Na*_xV1._Ma();var offset=this._Na*this._Ma();if((offset+_4e)>this._Uc.length){var _p_1=new ArrayBuffer(this._Uc.length*2);var _Tc=new Int8Array(_p_1);_Tc.set(this._Uc);this._Uc=_Tc;this._c_1=_p_1;_g_1(this);}this._Uc.set(_xV1._Uc.subarray(0,_4e),offset);this._Na+=_xV1._Na;}};/*@this {yyVBuffer} */this._2e=function(){if(this._Na<this.max){var _4e=this._Na*this._Ma();var _q_1=new ArrayBuffer(_4e);var _r_1=new Int8Array(_q_1);_r_1.set(this._Uc.subarray(0,_4e));this._Uc=_r_1;this._c_1=_q_1;}this._NY1=_OG.createBuffer();
_OG.bindBuffer(_OG.ARRAY_BUFFER,this._NY1);_OG.bufferData(_OG.ARRAY_BUFFER,this._Uc,_OG.STATIC_DRAW);this._Pa=null;this._Ra=null;this.__c=null;this._Ta=null;};/*@this {yyVBuffer} */this._Jc=function(_s_1){if((this._Na+_s_1)>this.max){var _t_1=this.max*2;this.max=_t_1;var _wd=new ArrayBuffer(_t_1);var _yd=new Int8Array(_wd);_yd.set(this._Uc);this._c_1=_wd;_g_1(this);}this._Na+=_s_1;};/*@this {yyVBuffer} */this._Ma=function(){return this._SY1._ud;};/*@this {yyVBuffer} */this._4Z1=function(){_OG.bindBuffer(_OG.ARRAY_BUFFER,
this._NY1);var _u_1=new Int8Array(this._c_1,0,this._Na*this._SY1._ud);_OG.bufferSubData(_OG.ARRAY_BUFFER,0,_u_1);this._Na=0;this._3Z1=false;};}/*@constructor */function _qS1(_XZ1,_v_1){var _OG=this._wS1;var _w_1=[];var _x_1=0,_zX1=null,_y_1=null,_z_1=_ca._CV1,_AX1=null;var _3_1=_XZ1;var _A_1=_v_1;/*@this {yyVBufferManager} */this._NS1=function(_Ad){if(_w_1[_Ad]){debug("WARNING: Vertex format has already been registered\n");}else {_w_1[_Ad]=new _sk();}};/*@this {yyVBufferManager} */this._zV1=function(_wc,_8e,
_xV1,_yV1){var size=_xV1._Na-_yV1;switch(_wc){case _ca._Ja:_3_1._rU1(0,_8e);_3_1._5Y1(_xV1);_3_1._7Y1(_yV1,size);break;case _ca._Bc:_3_1._rU1(0,_8e);_3_1._5Y1(_xV1);_3_1._9Y1(_yV1,size);break;case _ca._Ac:_3_1._rU1(0,_8e);_3_1._5Y1(_xV1);_3_1._aY1(_yV1,size);break;case _ca._yc:_3_1._rU1(0,null);_3_1._5Y1(_xV1);_3_1._bY1(_yV1,size);break;case _ca._zc:_3_1._rU1(0,null);_3_1._5Y1(_xV1);_3_1._cY1(_yV1,size);break;case _ca._xc:_3_1._rU1(0,null);_3_1._5Y1(_xV1);_3_1._HB1(_yV1,size);break;}};/*@this {yyVBufferManager} */this._je1=function(){
if(_y_1==null){_A_1._je1();return;}this._zV1(_z_1,_zX1,_y_1,_x_1);_y_1=_zX1=null;_z_1=_ca._CV1;_A_1._je1();};/*@this {yyVBufferManager} */this._Ia=function(_wc,_B_1,_Ad,_C_1,_a_1,_D_1){var i,_E_1,_Ha,_25;_25=_B_1;if(_y_1!=null){if((_y_1._QS1==_Ad)&&((_y_1._Na+_C_1)<=_y_1._d_1)&&(_zX1==_25)&&(_z_1==_wc)&&((_wc!=_ca._zc)&&(_wc!=_ca._Ac)&&(_wc!=_ca._Bc))&&(_A_1._6_1()==false)){return _y_1;}else {var _F_1=_y_1;_s8._je1();if((_F_1._QS1==_Ad)&&((_F_1._Na+_C_1)<=_F_1._d_1)){_y_1=_F_1;_x_1=_F_1._Na;_z_1=_wc;
_zX1=_25;return _y_1;}}}else this._je1();_z_1=_wc;_zX1=_25;_E_1=_w_1[_Ad]._Kk;for(i=_E_1.length-1;i>=0;i--){_Ha=_E_1[i];if(((_Ha._5Z1+1)<_D_1)&&(_Ha._Na+_C_1)<=_Ha._d_1){_Ha._3Z1=true;_x_1=_Ha._Na;_y_1=_Ha;return _Ha;}}if(_C_1<_Hc){_C_1=_Hc;}_Ha=new _Gc(_C_1,_a_1,true);_Ha._QS1=_Ad;_Ha._3Z1=true;_x_1=_Ha._Na;_y_1=_Ha;_w_1[_Ad]._Df(_Ha);return _Ha;};}/*@constructor */function _yS1(){var _OG=this._wS1;var _G_1=1,_H_1=false,_I_1=[],_J_1=0,_K_1=0;this._YY1=[];Object.defineProperties(this,{_od:{get :function(){
return _I_1;},set :function(_re){_I_1=_re;}},_td:{get :function(){return _K_1;},set :function(_re){_K_1=_re;}},_ud:{get :function(){return _J_1;},set :function(_re){_J_1=_re;}},_OS1:{get :function(){return _H_1;},set :function(_re){_H_1=_re;}}});function _L_1(_ld,_kd,_M_1){var _pd={offset:_J_1,type:_ld,_qd:_kd,_rd:_M_1,_VY1:0,_UY1:0,_WY1:false};return _pd;}function _Df(_ld,_kd,_M_1){_K_1|=_M_1;var _TY1=_L_1(_ld,_kd,_M_1);switch(_ld){case _ca._Ld:case _ca._1e:_J_1+=4;_TY1._VY1=_OG.UNSIGNED_BYTE;_TY1._UY1=4;_TY1._WY1=true;
break;case _ca._Wd:_J_1+=4;_TY1._VY1=_OG.FLOAT;_TY1._UY1=1;_TY1._WY1=false;break;case _ca._Gd:_J_1+=8;_TY1._VY1=_OG.FLOAT;_TY1._UY1=2;_TY1._WY1=false;break;case _ca._Id:_J_1+=12;_TY1._VY1=_OG.FLOAT;_TY1._UY1=3;_TY1._WY1=false;break;case _ca.__d:_J_1+=16;_TY1._VY1=_OG.FLOAT;_TY1._UY1=4;_TY1._WY1=false;break;}_I_1.push(_TY1);}/*@this {yyVertexFormat} */this._N_1=function(){_Df(_ca._Gd,_ca._Fd,_G_1);_G_1=_G_1<<1;};/*@this {yyVertexFormat} */this._JS1=function(){_Df(_ca._Id,_ca._Fd,_G_1);_G_1=_G_1<<1;};
/*@this {yyVertexFormat} */this._KS1=function(){_Df(_ca._Ld,_ca._Kd,_G_1);_G_1=_G_1<<1;};/*@this {yyVertexFormat} */this._MS1=function(){_Df(_ca._Id,_ca._Ud,_G_1);_G_1=_G_1<<1;};/*@this {yyVertexFormat} */this._LS1=function(){_Df(_ca._Gd,_ca._Sd,_G_1);_G_1=_G_1<<1;};/*@this {yyVertexFormat} */this._O_1=function(_ld,_kd){if((_ld<_ca._Wd)||(_ld>_ca._OV1)){debug("ERROR vertex_format_add_custom: illegal types");return;}if((_kd<_ca._Fd)||(_kd>_ca._NV1)){debug("ERROR vertex_format_add_custom: illegal usage");
return;}_Df(_ld,_kd,_G_1);_G_1=_G_1<<1;};/*@this {yyVertexFormat} */this._Wl1=function(_ba1){if(_I_1.length!==_ba1._od.length){return false;}for(var i=0;i<_I_1.length;i++){var _P_1=_I_1[i];var _Q_1=_ba1._od[i];if((_P_1.offset!==_Q_1.offset)||(_P_1.type!==_Q_1.type)||(_P_1._qd!==_Q_1._qd)||(_P_1._rd!==_Q_1._rd)||(_P_1._VY1!==_Q_1._VY1)||(_P_1._UY1!==_Q_1._UY1)){return false;}}return true;};}var _R_1=null;try{_R_1=new _S_1._T_1(new _S_1._U_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])),{})._Lg;}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(_yc1,
_Yc1,_V_1){/*
* The low 32 bits as a signed value.
* @type {number}
*/this._yc1=_yc1|0;/*
* The high 32 bits as a signed value.
* @type {number}
*/this._Yc1=_Yc1|0;/*
* Whether unsigned or not.
* @type {boolean}
*/this._V_1=!!_V_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 _W_1(_Qg){
return(_Qg&&_Qg["__isLong__"])===true;}/*
* Tests if the specified object is a Long.
* @function
* @param {*} obj Object
* @returns {boolean}
*/Long._W_1=_W_1;/*
* A cache of the Long representations of small integer values.
* @type {!Object}
* @inner
*/var _X_1={};/*
* A cache of the Long representations of small unsigned integer values.
* @type {!Object}
* @inner
*/var _Y_1={};/*
* @param {number} value
* @param {boolean=} unsigned
* @returns {!Long}
* @inner
*/function _Z_1(value,
_V_1){var _Qg,___1,_D8;if(_V_1){value>>>=0;if(_D8=(0<=value&&value<256)){___1=_Y_1[value];if(___1)return ___1;}_Qg=_002(value,(value|0)<0?-1:0,true);if(_D8)_Y_1[value]=_Qg;return _Qg;}else {value|=0;if(_D8=(-128<=value&&value<128)){___1=_X_1[value];if(___1)return ___1;}_Qg=_002(value,value<0?-1:0,false);if(_D8)_X_1[value]=_Qg;return _Qg;}}/*
* 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._Z_1=_Z_1;
/*
* @param {number} value
* @param {boolean=} unsigned
* @returns {!Long}
* @inner
*/function _102(value,_V_1){if(isNaN(value))return _V_1?_202:ZERO;if(_V_1){if(value<0)return _202;if(value>=_302)return _402;}else {if(value<=-_502)return MIN_VALUE;if(value+1>=_502)return MAX_VALUE;}if(value<0)return _102(-value,_V_1)._602();return _002((value%_702)|0,(value/_702)|0,_V_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._102=_102;
/*
* @param {number} lowBits
* @param {number} highBits
* @param {boolean=} unsigned
* @returns {!Long}
* @inner
*/function _002(_wc1,_vc1,_V_1){return new Long(_wc1,_vc1,_V_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._002=_002;
/*
* @function
* @param {number} base
* @param {number} exponent
* @returns {number}
* @inner
*/var _802=Math.pow;/*
* @param {string} str
* @param {(boolean|number)=} unsigned
* @param {number=} radix
* @returns {!Long}
* @inner
*/function _902(_Kl,_V_1,_a02){if(_Kl.length===0)throw Error('empty string');if(_Kl==="NaN"||_Kl==="Infinity"||_Kl==="+Infinity"||_Kl==="-Infinity")return ZERO;if(typeof _V_1==='number'){_a02=_V_1,_V_1=false;}else {_V_1=!!_V_1;}_a02=_a02||10;if(_a02<2||36<_a02)throw _1E('radix');
var _ih;if((_ih=_Kl.indexOf('-'))>0)throw Error('interior hyphen');else if(_ih===0){return _902(_Kl.substring(1),_V_1,_a02)._602();}var _b02=_102(_802(_a02,8));var result=ZERO;for(var i=0;i<_Kl.length;i+=8){var size=Math.min(8,_Kl.length-i),value=parseInt(_Kl.substring(i,i+size),_a02);if(size<8){var power=_102(_802(_a02,size));result=result._QV(power).add(_102(value));}else {result=result._QV(_b02);result=result.add(_102(value));}}result._V_1=_V_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._902=_902;
/*
* @function
* @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val
* @param {boolean=} unsigned
* @returns {!Long}
* @inner
*/function _KV(_re,_V_1){if(typeof _re==='number')return _102(_re,_V_1);if(typeof _re==='string')return _902(_re,_V_1);return _002(_re._yc1,_re._Yc1,typeof _V_1==='boolean'?_V_1:_re._V_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._KV=_KV;
/*
* @type {number}
* @const
* @inner
*/var _c02=1<<16;/*
* @type {number}
* @const
* @inner
*/var _d02=1<<24;/*
* @type {number}
* @const
* @inner
*/var _702=_c02*_c02;/*
* @type {number}
* @const
* @inner
*/var _302=_702*_702;/*
* @type {number}
* @const
* @inner
*/var _502=_302/2;/*
* @type {!Long}
* @const
* @inner
*/var _e02=_Z_1(_d02);/*
* @type {!Long}
* @inner
*/var ZERO=_Z_1(0);/*
* Signed zero.
* @type {!Long}
*/Long.ZERO=ZERO;/*
* @type {!Long}
* @inner
*/var _202=_Z_1(0,
true);/*
* Unsigned zero.
* @type {!Long}
*/Long._202=_202;/*
* @type {!Long}
* @inner
*/var ONE=_Z_1(1);/*
* Signed one.
* @type {!Long}
*/Long.ONE=ONE;/*
* @type {!Long}
* @inner
*/var _f02=_Z_1(1,true);/*
* Unsigned one.
* @type {!Long}
*/Long._f02=_f02;/*
* @type {!Long}
* @inner
*/var _g02=_Z_1(-1);/*
* Signed negative one.
* @type {!Long}
*/Long._g02=_g02;/*
* @type {!Long}
* @inner
*/var MAX_VALUE=_002(0xFFFFFFFF|0,0x7FFFFFFF|0,false);/*
* Maximum signed value.
* @type {!Long}
*/Long.MAX_VALUE=MAX_VALUE;
/*
* @type {!Long}
* @inner
*/var _402=_002(0xFFFFFFFF|0,0xFFFFFFFF|0,true);/*
* Maximum unsigned value.
* @type {!Long}
*/Long._402=_402;/*
* @type {!Long}
* @inner
*/var MIN_VALUE=_002(0,0x80000000|0,false);/*
* Minimum signed value.
* @type {!Long}
*/Long.MIN_VALUE=MIN_VALUE;/*
* @alias Long.prototype
* @inner
*/var _h02=Long.prototype;/*
* Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.
* @returns {number}
*/_h02._i02=function _i02(){return this._V_1?this._yc1>>>0:this._yc1;
};/*
* Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).
* @returns {number}
*/_h02._WF=function _WF(){if(this._V_1)return((this._Yc1>>>0)*_702)+(this._yc1>>>0);return this._Yc1*_702+(this._yc1>>>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
*/_h02.toString=function toString(_a02){
_a02=_a02||10;if(_a02<2||36<_a02)throw _1E('radix');if(this._j02())return '0';if(this._k02()){if(this._l02(MIN_VALUE)){var _m02=_102(_a02),_gE=this._gE(_m02),_n02=_gE._QV(_m02).sub(this);return _gE.toString(_a02)+_n02._i02().toString(_a02);}else return '-'+this._602().toString(_a02);}var _b02=_102(_802(_a02,6),this._V_1),_o02=this;var result='';while(true){var _p02=_o02._gE(_b02),_q02=_o02.sub(_p02._QV(_b02))._i02()>>>0,_r02=_q02.toString(_a02);_o02=_p02;if(_o02._j02())return _r02+result;else {while(_r02.length<6)_r02='0'+_r02;
result=''+_r02+result;}}};/*
* Gets the high 32 bits as a signed integer.
* @returns {number} Signed high bits
*/_h02._s02=function _s02(){return this._Yc1;};/*
* Gets the high 32 bits as an unsigned integer.
* @returns {number} Unsigned high bits
*/_h02._t02=function _t02(){return this._Yc1>>>0;};/*
* Gets the low 32 bits as a signed integer.
* @returns {number} Signed low bits
*/_h02._u02=function _u02(){return this._yc1;};/*
* Gets the low 32 bits as an unsigned integer.
* @returns {number} Unsigned low bits
*/_h02._v02=function _v02(){
return this._yc1>>>0;};/*
* Gets the number of bits needed to represent the absolute value of this Long.
* @returns {number}
*/_h02._w02=function _w02(){if(this._k02())return this._l02(MIN_VALUE)?64:this._602()._w02();var _re=this._Yc1!=0?this._Yc1:this._yc1;for(var _rd=31;_rd>0;_rd--)if((_re&(1<<_rd))!=0)break;return this._Yc1!=0?_rd+33:_rd+1;};/*
* Tests if this Long's value equals zero.
* @returns {boolean}
*/_h02._j02=function _j02(){return this._Yc1===0&&this._yc1===0;};/*
* Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.
* @returns {boolean}
*/_h02._x02=_h02._j02;
/*
* Tests if this Long's value is negative.
* @returns {boolean}
*/_h02._k02=function _k02(){return !this._V_1&&this._Yc1<0;};/*
* Tests if this Long's value is positive.
* @returns {boolean}
*/_h02._y02=function _y02(){return this._V_1||this._Yc1>=0;};/*
* Tests if this Long's value is odd.
* @returns {boolean}
*/_h02._z02=function _z02(){return(this._yc1&1)===1;};/*
* Tests if this Long's value is even.
* @returns {boolean}
*/_h02._A02=function _A02(){return(this._yc1&1)===0;};/*
* Tests if this Long's value equals the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/_h02._B02=function _B02(other){
if(!_W_1(other))other=_KV(other);if(this._V_1!==other._V_1&&(this._Yc1>>>31)===1&&(other._Yc1>>>31)===1)return false;return this._Yc1===other._Yc1&&this._yc1===other._yc1;};/*
* 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}
*/_h02._l02=_h02._B02;/*
* Tests if this Long's value differs from the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/_h02._C02=function _C02(other){
return !this._l02(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}
*/_h02._D02=_h02._C02;/*
* 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}
*/_h02._E02=_h02._C02;/*
* Tests if this Long's value is less than the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/_h02._F02=function _F02(other){
return this._G02(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}
*/_h02._H02=_h02._F02;/*
* Tests if this Long's value is less than or equal the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/_h02._I02=function _I02(other){return this._G02(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}
*/_h02._J02=_h02._I02;
/*
* 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}
*/_h02._K02=_h02._I02;/*
* Tests if this Long's value is greater than the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/_h02._L02=function _L02(other){return this._G02(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}
*/_h02._M02=_h02._L02;
/*
* Tests if this Long's value is greater than or equal the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/_h02._N02=function _N02(other){return this._G02(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}
*/_h02._O02=_h02._N02;/*
* 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}
*/_h02._NG=_h02._N02;
/*
* 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
*/_h02._P02=function _P02(other){if(!_W_1(other))other=_KV(other);if(this._l02(other))return 0;var _Q02=this._k02(),_R02=other._k02();if(_Q02&&!_R02)return -1;if(!_Q02&&_R02)return 1;if(!this._V_1)return this.sub(other)._k02()?-1:1;return(other._Yc1>>>0)>(this._Yc1>>>0)||(other._Yc1===this._Yc1&&(other._yc1>>>0)>(this._yc1>>>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
*/_h02._G02=_h02._P02;/*
* Negates this Long's value.
* @returns {!Long} Negated Long
*/_h02._S02=function _S02(){if(!this._V_1&&this._l02(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
*/_h02._602=_h02._S02;
/*
* Returns the sum of this and the specified Long.
* @param {!Long|number|string} addend Addend
* @returns {!Long} Sum
*/_h02.add=function add(_T02){if(!_W_1(_T02))_T02=_KV(_T02);var _U02=this._Yc1>>>16;var _V02=this._Yc1&0xFFFF;var _W02=this._yc1>>>16;var _X02=this._yc1&0xFFFF;var _Y02=_T02._Yc1>>>16;var _Z02=_T02._Yc1&0xFFFF;var __02=_T02._yc1>>>16;var _012=_T02._yc1&0xFFFF;var _112=0,_212=0,_312=0,_412=0;_412+=_X02+_012;_312+=_412>>>16;_412&=0xFFFF;_312+=_W02+__02;_212+=_312>>>16;_312&=0xFFFF;
_212+=_V02+_Z02;_112+=_212>>>16;_212&=0xFFFF;_112+=_U02+_Y02;_112&=0xFFFF;return _002((_312<<16)|_412,(_112<<16)|_212,this._V_1);};/*
* Returns the difference of this and the specified Long.
* @param {!Long|number|string} subtrahend Subtrahend
* @returns {!Long} Difference
*/_h02.subtract=function subtract(_512){if(!_W_1(_512))_512=_KV(_512);return this.add(_512._602());};/*
* 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
*/_h02.sub=_h02.subtract;
/*
* Returns the product of this and the specified Long.
* @param {!Long|number|string} multiplier Multiplier
* @returns {!Long} Product
*/_h02._612=function _612(_712){if(this._j02())return ZERO;if(!_W_1(_712))_712=_KV(_712);if(_R_1){var _yc1=_R_1._QV(this._yc1,this._Yc1,_712._yc1,_712._Yc1);return _002(_yc1,_R_1._812(),this._V_1);}if(_712._j02())return ZERO;if(this._l02(MIN_VALUE))return _712._z02()?MIN_VALUE:ZERO;if(_712._l02(MIN_VALUE))return this._z02()?MIN_VALUE:ZERO;if(this._k02()){if(_712._k02())return this._602()._QV(_712._602());
else return this._602()._QV(_712)._602();}else if(_712._k02())return this._QV(_712._602())._602();if(this._H02(_e02)&&_712._H02(_e02))return _102(this._WF()*_712._WF(),this._V_1);var _U02=this._Yc1>>>16;var _V02=this._Yc1&0xFFFF;var _W02=this._yc1>>>16;var _X02=this._yc1&0xFFFF;var _Y02=_712._Yc1>>>16;var _Z02=_712._Yc1&0xFFFF;var __02=_712._yc1>>>16;var _012=_712._yc1&0xFFFF;var _112=0,_212=0,_312=0,_412=0;_412+=_X02*_012;_312+=_412>>>16;_412&=0xFFFF;_312+=_W02*_012;_212+=_312>>>16;_312&=0xFFFF;_312+=_X02*__02;
_212+=_312>>>16;_312&=0xFFFF;_212+=_V02*_012;_112+=_212>>>16;_212&=0xFFFF;_212+=_W02*__02;_112+=_212>>>16;_212&=0xFFFF;_212+=_X02*_Z02;_112+=_212>>>16;_212&=0xFFFF;_112+=_U02*_012+_V02*__02+_W02*_Z02+_X02*_Y02;_112&=0xFFFF;return _002((_312<<16)|_412,(_112<<16)|_212,this._V_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
*/_h02._QV=_h02._612;
/*
* 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
*/_h02._912=function _912(_tI){if(!_W_1(_tI))_tI=_KV(_tI);if(_tI._j02())throw Error('division by zero');if(_R_1){if(!this._V_1&&this._Yc1===-0x80000000&&_tI._yc1===-1&&_tI._Yc1===-1){return this;}var _yc1=(this._V_1?_R_1._a12:_R_1._b12)(this._yc1,this._Yc1,_tI._yc1,_tI._Yc1);return _002(_yc1,
_R_1._812(),this._V_1);}if(this._j02())return this._V_1?_202:ZERO;var _c12,_o02,_rb;if(!this._V_1){if(this._l02(MIN_VALUE)){if(_tI._l02(ONE)||_tI._l02(_g02))return MIN_VALUE;else if(_tI._l02(MIN_VALUE))return ONE;else {var _d12=this._e12(1);_c12=_d12._gE(_tI)._f12(1);if(_c12._l02(ZERO)){return _tI._k02()?ONE:_g02;}else {_o02=this.sub(_tI._QV(_c12));_rb=_c12.add(_o02._gE(_tI));return _rb;}}}else if(_tI._l02(MIN_VALUE))return this._V_1?_202:ZERO;if(this._k02()){if(_tI._k02())return this._602()._gE(_tI._602());
return this._602()._gE(_tI)._602();}else if(_tI._k02())return this._gE(_tI._602())._602();_rb=ZERO;}else {if(!_tI._V_1)_tI=_tI._g12();if(_tI._M02(this))return _202;if(_tI._M02(this._h12(1)))return _f02;_rb=_202;}_o02=this;while(_o02._O02(_tI)){_c12=Math.max(1,Math.floor(_o02._WF()/_tI._WF()));var log2=Math.ceil(Math.log(_c12)/Math.LN2),_ti=(log2<=48)?1:_802(2,log2-48),_i12=_102(_c12),_j12=_i12._QV(_tI);while(_j12._k02()||_j12._M02(_o02)){_c12-=_ti;_i12=_102(_c12,this._V_1);_j12=_i12._QV(_tI);}if(_i12._j02())_i12=ONE;
_rb=_rb.add(_i12);_o02=_o02.sub(_j12);}return _rb;};/*
* 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
*/_h02._gE=_h02._912;/*
* Returns this Long modulo the specified.
* @param {!Long|number|string} divisor Divisor
* @returns {!Long} Remainder
*/_h02._k12=function _k12(_tI){if(!_W_1(_tI))_tI=_KV(_tI);if(_R_1){var _yc1=(this._V_1?_R_1._l12:_R_1._m12)(this._yc1,
this._Yc1,_tI._yc1,_tI._Yc1);return _002(_yc1,_R_1._812(),this._V_1);}return this.sub(this._gE(_tI)._QV(_tI));};/*
* Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
* @function
* @param {!Long|number|string} divisor Divisor
* @returns {!Long} Remainder
*/_h02._RV=_h02._k12;/*
* Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
* @function
* @param {!Long|number|string} divisor Divisor
* @returns {!Long} Remainder
*/_h02._o02=_h02._k12;
/*
* Returns the bitwise NOT of this Long.
* @returns {!Long}
*/_h02.not=function not(){return _002(~this._yc1,~this._Yc1,this._V_1);};/*
* Returns the bitwise AND of this Long and the specified.
* @param {!Long|number|string} other Other Long
* @returns {!Long}
*/_h02._UV=function _UV(other){if(!_W_1(other))other=_KV(other);return _002(this._yc1&other._yc1,this._Yc1&other._Yc1,this._V_1);};/*
* Returns the bitwise OR of this Long and the specified.
* @param {!Long|number|string} other Other Long
* @returns {!Long}
*/_h02._VV=function _VV(other){
if(!_W_1(other))other=_KV(other);return _002(this._yc1|other._yc1,this._Yc1|other._Yc1,this._V_1);};/*
* Returns the bitwise XOR of this Long and the given one.
* @param {!Long|number|string} other Other Long
* @returns {!Long}
*/_h02._WV=function _WV(other){if(!_W_1(other))other=_KV(other);return _002(this._yc1^other._yc1,this._Yc1^other._Yc1,this._V_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
*/_h02._YV=function _YV(_JZ1){
if(_W_1(_JZ1))_JZ1=_JZ1._i02();if((_JZ1&=63)===0)return this;else if(_JZ1<32)return _002(this._yc1<<_JZ1,(this._Yc1<<_JZ1)|(this._yc1>>>(32-_JZ1)),this._V_1);else return _002(0,this._yc1<<(_JZ1-32),this._V_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
*/_h02._f12=_h02._YV;/*
* 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
*/_h02._ZV=function _ZV(_JZ1){
if(_W_1(_JZ1))_JZ1=_JZ1._i02();if((_JZ1&=63)===0)return this;else if(_JZ1<32)return _002((this._yc1>>>_JZ1)|(this._Yc1<<(32-_JZ1)),this._Yc1>>_JZ1,this._V_1);else return _002(this._Yc1>>(_JZ1-32),this._Yc1>=0?0:-1,this._V_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
*/_h02._e12=_h02._ZV;/*
* 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
*/_h02._n12=function _n12(_JZ1){
if(_W_1(_JZ1))_JZ1=_JZ1._i02();_JZ1&=63;if(_JZ1===0)return this;else {var _Yc1=this._Yc1;if(_JZ1<32){var _yc1=this._yc1;return _002((_yc1>>>_JZ1)|(_Yc1<<(32-_JZ1)),_Yc1>>>_JZ1,this._V_1);}else if(_JZ1===32)return _002(_Yc1,0,this._V_1);else return _002(_Yc1>>>(_JZ1-32),0,this._V_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
*/_h02._h12=_h02._n12;
/*
* 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
*/_h02._o12=_h02._n12;/*
* Converts this Long to signed.
* @returns {!Long} Signed long
*/_h02._p12=function _p12(){if(!this._V_1)return this;return _002(this._yc1,this._Yc1,false);};/*
* Converts this Long to unsigned.
* @returns {!Long} Unsigned long
*/_h02._g12=function _g12(){
if(this._V_1)return this;return _002(this._yc1,this._Yc1,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
*/_h02._q12=function _q12(_K02){return _K02?this._r12():this._s12();};/*
* Converts this Long to its little endian byte representation.
* @returns {!Array.<number>} Little endian byte representation
*/_h02._r12=function _r12(){var _xc1=this._Yc1,_cn1=this._yc1;
return [_cn1&0xff,_cn1>>>8&0xff,_cn1>>>16&0xff,_cn1>>>24,_xc1&0xff,_xc1>>>8&0xff,_xc1>>>16&0xff,_xc1>>>24];};/*
* Converts this Long to its big endian byte representation.
* @returns {!Array.<number>} Big endian byte representation
*/_h02._s12=function _s12(){var _xc1=this._Yc1,_cn1=this._yc1;return [_xc1>>>24,_xc1>>>16&0xff,_xc1>>>8&0xff,_xc1&0xff,_cn1>>>24,_cn1>>>16&0xff,_cn1>>>8&0xff,_cn1&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._t12=function _t12(_5h,
_V_1,_K02){return _K02?Long._u12(_5h,_V_1):Long._v12(_5h,_V_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._u12=function _u12(_5h,_V_1){return new Long(_5h[0]|_5h[1]<<8|_5h[2]<<16|_5h[3]<<24,_5h[4]|_5h[5]<<8|_5h[6]<<16|_5h[7]<<24,_V_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._v12=function _v12(_5h,
_V_1){return new Long(_5h[4]<<24|_5h[5]<<16|_5h[6]<<8|_5h[7],_5h[0]<<24|_5h[1]<<16|_5h[2]<<8|_5h[3],_V_1);};_oh:function _w12(color){return(((color._D4*255)&0xff)<<0)|(((color._E4*255)&0xff)<<8)|(((color._F4*255)&0xff)<<16);}/*@this {yyPhysicsDebugDraw} */function _x12(vertices,vertexCount,color){draw_set_color(_w12(color));var scale=1.0/this._y12._J01;for(var _I6=0;_I6<vertexCount;++_I6){var _z12=vertices[_I6];var _A12=vertices[(_I6+1)%vertexCount];draw_line(_z12.x*scale,_z12.y*scale,_A12.x*scale,_A12.y*scale);
}}/*@this {yyPhysicsDebugDraw} */function _B12(vertices,vertexCount,color){draw_set_color(_w12(color));var scale=1.0/this._y12._J01;var _z12=vertices[0];for(var _I6=2;_I6<vertexCount;++_I6){var _A12=vertices[_I6-1];var _C12=vertices[_I6];draw_triangle(_z12.x*scale,_z12.y*scale,_A12.x*scale,_A12.y*scale,_C12.x*scale,_C12.y*scale,false);}}/*@this {yyPhysicsDebugDraw} */function _D12(_on1,_A21,color){draw_set_color(_w12(color));var scale=1.0/this._y12._J01;draw_ellipse((_on1.x-_A21)*scale,(_on1.y-_A21)*scale,
(_on1.x+_A21)*scale,(_on1.y+_A21)*scale,true);}/*@this {yyPhysicsDebugDraw} */function _E12(_on1,_A21,_ru,color){draw_set_color(_w12(color));var scale=1.0/this._y12._J01;draw_ellipse((_on1.x-_A21)*scale,(_on1.y-_A21)*scale,(_on1.x+_A21)*scale,(_on1.y+_A21)*scale,false);}/*@this {yyPhysicsDebugDraw} */function _F12(_qu,_rn1,color){draw_set_color(_w12(color));var scale=1.0/this._y12._J01;draw_line(_qu.x*scale,_qu.y*scale,_rn1.x*scale,_rn1.y*scale);}/*@this {yyPhysicsDebugDraw} */function _G12(_qm1){var _H12=0.4;
var scale=1.0/this._y12._J01;var _qu=_qm1._ih,_rn1=new _I12._J12();_rn1.x=_qu.x+_H12*_qm1.q._nm1().x;_rn1.y=_qu.y+_H12*_qm1.q._nm1().y;draw_set_color(_ro);draw_line(_qu.x*scale,_qu.y*scale,_rn1.x*scale,_rn1.y*scale);_rn1.x=_qu.x+_H12*_qm1.q._om1().x;_rn1.y=_qu.y+_H12*_qm1.q._om1().y;draw_set_color(_uo);draw_line(_qu.x*scale,_qu.y*scale,_rn1.x*scale,_rn1.y*scale);}/*@this {yyPhysicsDebugDraw} */function _K12(_tn1,_A21,_un1,_E8){for(var _I6=0;_I6<_E8;_I6++){var scale=1.0/this._y12._J01;draw_set_color(((_un1[_I6]._D4&0xff)<<0)|((_un1[_I6]._E4&0xff)<<8)|((_un1[_I6]._F4&0xff)<<16));
draw_ellipse((_tn1[_I6].x-_A21)*scale,(_tn1[_I6].y-_A21)*scale,(_tn1[_I6].x+_A21)*scale,(_tn1[_I6].y+_A21)*scale,true);}}/*@constructor */function _p01(){this._9x1=0;this._ax1=0;this._L12=false;this._M12=true;this._N12=false;this._O12=new _I12._P12();this._so1=null;};_p01.prototype._I01=function(_Rt){this._so1=null;this._O12.shape=new _I12._Q12();this._O12.shape._Nn1=_Rt;};_p01.prototype._M01=function(_K01,_L01){this._so1=null;this._O12.shape=new _I12._R12();this._O12.shape._Mo1(_K01,_L01);};_p01.prototype._O01=function(){
this._so1=[];this._O12.shape=new _I12._R12();};_p01.prototype._P01=function(_c4){this._so1=[];this._N12=_c4;this._O12.shape=new _I12._S12();};_p01.prototype._N01=function(_ub,_vb,_wb,_xb){var _jb=new _I12._J12(_ub,_vb);var _p5=new _I12._J12(_wb,_xb);this._so1=null;this._O12.shape=new _I12._T12();this._O12.shape.Set(_jb,_p5);};_p01.prototype._S01=function(_Q5,_R5){var vertexCount=this._so1.length;this._so1[vertexCount]=new _I12._J12(_Q5,_R5);};_p01.prototype._U12=function(){if(this._so1===null||this._so1===undefined){
return true;}if(this._O12.shape._oO===_I12._V12._0o1){if(this._so1.length>2){this._O12.shape.Set(this._so1,this._so1.length);return true;}}else if(this._O12.shape._oO===_I12._V12._1o1){if(this._N12){if(this._so1.length>=3){this._O12.shape._zo1(this._so1,this._so1.length);return true;}}else {if(this._so1.length>=2){this._O12.shape._Ao1(this._so1,this._so1.length);return true;}}}return false;};_p01.prototype._z01=function(_y01){this._O12.filter._Ky1=_y01;};_p01.prototype._x01=function(_rm){this._O12.friction=_rm;
};_p01.prototype._w01=function(_v01){this._O12._Ly1=_v01;};_p01.prototype._u01=function(_t01){this._O12._631=_t01;};_p01.prototype._B01=function(_W12){this._O12._My1=_W12;};_p01.prototype._D01=function(_C01){this._9x1=_C01;};_p01.prototype._E01=function(_C01){this._ax1=_C01;};_p01.prototype._E01=function(_C01){this._ax1=_C01;};_p01.prototype._G01=function(_F01){this._M12=_F01;};_p01.prototype._s01=function(){this._L12=true;};var _X12=0,_Y12=1,_Z12=2,__12=3,_022=4,_122=5,_222=6,_322=7,_422=8,_522=9,
_622=10,_722=11,_822=12,_922=13,_a22=14,_b22=15,_c22=16,_d22=17,_e22=18,_f22=19,_g22=20,_h22=21,_i22=22,_j22=23,_k22=24;/*@constructor */function _l22(_m22){this._n22=_m22;};_l22.prototype._S11=function(_Q11){if((this._n22 instanceof _I12._o22)||(this._n22 instanceof _I12._p22)||(this._n22 instanceof _I12._q22)){this._n22._wB1()._G01(true);this._n22._xB1()._G01(true);this._n22._S11(_Q11);}};_l22.prototype._U11=function(_T11){switch(_T11){case _X12:return this._n22._yB1().x;case _Y12:return this._n22._yB1().y;
case _Z12:return this._n22._zB1().x;case __12:return this._n22._zB1().y;case _022:return this._n22._bJ1(1.0/_S3._c01._r22).x;case _122:return this._n22._bJ1(1.0/_S3._c01._r22).y;case _222:return this._n22._cJ1(1.0/_S3._c01._r22);case _322:{if((this._n22 instanceof _I12._o22)||(this._n22 instanceof _I12._p22)||(this._n22 instanceof _I12._q22)){return this._n22._gK1();}}break;case _422:{if(this._n22 instanceof _I12._o22){return this._n22._7K1();}else if(this._n22 instanceof _I12._s22){return this._n22._6K1();}}break;case _522:{
if((this._n22 instanceof _I12._o22)||(this._n22 instanceof _I12._q22)){return this._n22._jK1(1.0/_S3._c01._r22);}}break;case _622:{if((this._n22 instanceof _I12._o22)||(this._n22 instanceof _I12._q22)){return this._n22._iK1();}}break;case _722:{if((this._n22 instanceof _I12._p22)||(this._n22 instanceof _I12._q22)){return this._n22._jL1();}}break;case _822:{if((this._n22 instanceof _I12._p22)||(this._n22 instanceof _I12._q22)){return this._n22._8K1();}}break;case _922:{if(this._n22 instanceof _I12._p22){return this._n22._mL1(1.0/_S3._c01._r22);
}}break;case _a22:{if(this._n22 instanceof _I12._p22){return this._n22._lL1();}}break;case _b22:{if(this._n22 instanceof _I12._t22){return this._n22._JN1();}if(this._n22 instanceof _I12._u22){return this._n22._XK1();}}break;case _c22:{if(this._n22 instanceof _I12._t22){return this._n22._KN1();}}break;case _d22:{if((this._n22 instanceof _I12._u22)||(this._n22 instanceof _I12._s22)){this._n22._QK1();}else if(this._n22 instanceof _I12._q22){return this._n22.__L1();}}break;case _e22:{if((this._n22 instanceof _I12._u22)||(this._n22 instanceof _I12._s22)){
return this._n22._OK1();}else if(this._n22 instanceof _I12._q22){return this._n22._YL1();}}break;case _f22:{if(this._n22 instanceof _I12._o22){return((this._n22._bK1()*180.0)/Math.PI);}}break;case _g22:{if(this._n22 instanceof _I12._o22){return((this._n22._cK1()*180.0)/Math.PI);}}break;case _h22:{if(this._n22 instanceof _I12._o22){return this._n22._9K1();}}break;case _i22:{if(this._n22 instanceof _I12._v22){return this._n22._YN1();}}break;case _j22:{if(this._n22 instanceof _I12._w22){return this._n22._IL1();}}break;case _k22:{
if(this._n22 instanceof _I12._w22){return this._n22._LK1();}}}return 0;};_l22.prototype._V11=function(_T11,_Ln){switch(_T11){case _322:{if((this._n22 instanceof _I12._o22)||(this._n22 instanceof _I12._p22)||(this._n22 instanceof _I12._q22)){this._n22._wB1()._G01(true);this._n22._xB1()._G01(true);this._n22._fK1(_Ln);}}break;case _622:{if((this._n22 instanceof _I12._o22)||(this._n22 instanceof _I12._q22)){this._n22._wB1()._G01(true);this._n22._xB1()._G01(true);this._n22._hK1(_Ln);}}break;case _a22:{if(this._n22 instanceof _I12._p22){
this._n22._kL1(_Ln);}}break;case _b22:{if(this._n22 instanceof _I12._u22){this._n22._WK1(_Ln);}}break;case _d22:{if((this._n22 instanceof _I12._u22)||(this._n22 instanceof _I12._s22)){this._n22._PK1(_Ln);}else if(this._n22 instanceof _I12._q22){this._n22._ZL1(_Ln);}}break;case _e22:{if((this._n22 instanceof _I12._u22)||(this._n22 instanceof _I12._s22)){this._n22._MK1(_Ln);}else if(this._n22 instanceof _I12._q22){this._n22._XL1(_Ln);}}break;case _f22:{if(this._n22 instanceof _I12._o22){var angle=(_Ln*Math.PI)/180.0;this._n22._dK1(angle,
this._n22._cK1());}}break;case _g22:{if(this._n22 instanceof _I12._o22){var angle=(_Ln*Math.PI)/180.0;this._n22._dK1(this._n22._bK1(),angle);}}break;case _h22:{if(this._n22 instanceof _I12._o22){this._n22._aK1((_Ln>0.5)?true:false);}}break;case _i22:{if(this._n22 instanceof _I12._v22){this._n22._XN1(_Ln);}}break;case _j22:{if(this._n22 instanceof _I12._w22){this._n22._HL1(_Ln);}}break;case _k22:{if(this._n22 instanceof _I12._w22){this._n22._KK1(_Ln);}}break;}};/*@constructor */function _x22(_y22,_z22,_T4,_U4){this._A22=_y22;
this._B22=_z22;this._C22=new _I12._J12(_T4,_U4);this._D22=[];};_x22.prototype._421=function(_E22,_F22,_G22,_H22){this._A22._Zx1(new _I12._J12(_G22,_H22),new _I12._J12(_E22,_F22),true);};_x22.prototype._121=function(_E22,_F22,_G22,_H22){this._A22._121(new _I12._J12(_G22,_H22),new _I12._J12(_E22,_F22),true);};_x22.prototype._b21=function(_I22,_J22,_K22,_L22){var _M22=this._A22._5y1(new _I12._J12(_K22,_L22));var _N22=this._A22._4y1(new _I12._J12(_I22,_J22));this._A22._121(_M22,_N22,true);};_x22.prototype._e21=function(_I22,
_J22,_K22,_L22){var _M22=this._A22._5y1(new _I12._J12(_K22,_L22));var _N22=this._A22._4y1(new _I12._J12(_I22,_J22));this._A22._Zx1(_M22,_N22,true);};_x22.prototype._g21=function(_f21){this._A22._g21(_f21,true);};_x22.prototype._i21=function(_h21){this._A22._i21(_h21,true);};_x22.prototype._n21=function(_j21,_O22,_P22,_m21){var _Vn1=new _I12._Q22();_Vn1._Kn1=_j21;_Vn1._Ln1=_m21;_Vn1._on1=new _I12._J12(_O22,_P22);this._A22._3y1(_Vn1);};_x22.prototype._R22=function(_S22){var position=this._A22._W_();this._A22._Nx1(position,
(_S22*Math.PI)/180.0);this._A22._G01(true);};_x22.prototype._T22=function(_Gk){var angle=this._A22._mm1();var _Ya=this._A22._W_().y;this._A22._Nx1(new _I12._J12(_Gk,_Ya),angle);this._A22._G01(true);};_x22.prototype._U22=function(_Gk){var angle=this._A22._mm1();var _Xa=this._A22._W_().x;this._A22._Nx1(new _I12._J12(_Xa,_Gk),angle);this._A22._G01(true);};_x22.prototype._Tx1=function(_V22){this._A22._Tx1((_V22*Math.PI)/180.0);this._A22._G01(true);};_x22.prototype._W22=function(_X22){var _Y22=this._A22._Sx1();
this._A22._Rx1(new _I12._J12(_X22,_Y22.y));this._A22._G01(true);};_x22.prototype._Z22=function(_X22){var _Y22=this._A22._Sx1();this._A22._Rx1(new _I12._J12(_Y22.x,_X22));this._A22._G01(true);};_x22.prototype._ny1=function(__22){this._A22._ny1(__22);};_x22.prototype._vy1=function(_032){this._A22._vy1(_032);};_x22.prototype._ty1=function(_132){this._A22._ty1(_132);};_x22.prototype._h01=function(_232){if(this._A22){this._332(_232);this._432(_232);}};_x22.prototype._332=function(_fm){var _r01=this._A22._xy1();
while((_r01!=null)&&(_r01!=undefined)){var shape=_r01._Ty1();var _532=this._A22._W_();if(shape instanceof _I12._Q12){draw_ellipse((_532.x-shape._Nn1)*_fm,(_532.y-shape._Nn1)*_fm,(_532.x+shape._Nn1)*_fm,(_532.y+shape._Nn1)*_fm,true);}else if(shape instanceof _I12._R12){var _632=Math.sin(this._A22._mm1());var _732=Math.cos(this._A22._mm1());for(var _I6=0;_I6<shape._to1;++_I6){var _z12=shape._so1[_I6];var _A12=shape._so1[(_I6+1)%shape._to1];draw_line((_532.x+((_z12.x*_732)-(_z12.y*_632)))*_fm,(_532.y+((_z12.x*_632)+(_z12.y*_732)))*_fm,
(_532.x+((_A12.x*_732)-(_A12.y*_632)))*_fm,(_532.y+((_A12.x*_632)+(_A12.y*_732)))*_fm);}}_r01=_r01._6x1;}};_x22.prototype._432=function(_fm){var _Fy1=this._A22._3x1;while((_Fy1!=null)&&(_Fy1!=undefined)){var _711=_Fy1._711;if(_711 instanceof _I12._o22){this._832(_711,_fm);}else if(_711 instanceof _I12._p22){this._932(_711,_fm);}else if(_711 instanceof _I12._u22){this._a32(_711,_fm);}else if(_711 instanceof _I12._t22){this._b32(_711,_fm);}else if(_711 instanceof _I12._c32){if(_711._d32!=null){this._832(_711._d32,
_fm);}if(_711._e32!=null){this._832(_711._e32,_fm);}if(_711._f32!=null){this._932(_711._f32,_fm);}if(_711._g32!=null){this._932(_711._g32,_fm);}}_Fy1=_Fy1._6x1;}};_x22.prototype._a32=function(_P11,_fm){var _SK1=_P11._yB1();var _TK1=_P11._zB1();draw_line(_SK1.x*_fm,_SK1.y*_fm,_TK1.x*_fm,_TK1.y*_fm);};_x22.prototype._832=function(_P11,_fm){var anchor=_P11._yB1();draw_line((anchor.x*_fm)-2,(anchor.y*_fm)-2,(anchor.x*_fm)+2,(anchor.y*_fm)+2);draw_line((anchor.x*_fm)-2,(anchor.y*_fm)+2,(anchor.x*_fm)+2,
(anchor.y*_fm)-2);};_x22.prototype._932=function(_P11,_fm){var _SK1=_P11._yB1();var _TK1=this._A22._W_();draw_line(_SK1.x*_fm,_SK1.y*_fm,_TK1.x*_fm,_TK1.y*_fm);};_x22.prototype._b32=function(_P11,_fm){var anchor,_h32;if(_P11._i32()==this._A22){anchor=_P11._yB1();_h32=_P11._DB1();}else {anchor=_P11._zB1();_h32=_P11._EB1();}draw_line(anchor.x*_fm,anchor.y*_fm,_h32.x*_fm,_h32.y*_fm);draw_line(_P11._DB1().x*_fm,_P11._DB1().y*_fm,_P11._EB1().x*_fm,_P11._EB1().y*_fm);};_x22.prototype._j32=function(_k32){for(var i=0;
i<this._D22.length;i++){if(this._D22[i]==null||this._D22[i]==undefined){this._D22[i]=_k32;return i;}}return(this._D22.push(_k32)-1);};_x22.prototype._q21=function(_p21){if(this._D22[_p21]){this._A22._Gx1(this._D22[_p21]);this._D22[_p21]=undefined;}};_x22.prototype._r21=function(_p21){if(this._D22[_p21]){return this._D22[_p21]._r21();}return 0.0;};_x22.prototype._s21=function(_p21){if(this._D22[_p21]){return this._D22[_p21]._s21();}return 0.0;};_x22.prototype._t21=function(_p21){if(this._D22[_p21]){return this._D22[_p21]._t21();
}return 0.0;};_x22.prototype._x01=function(_p21,__3){if(this._D22[_p21]){this._D22[_p21]._x01(__3);}};_x22.prototype._u01=function(_p21,__3){if(this._D22[_p21]){this._D22[_p21]._u01(__3);this._A22._Dx1();}};_x22.prototype._w01=function(_p21,__3){if(this._D22[_p21]){this._D22[_p21]._w01(__3);}};var _l32=10,_m32=32,_n32=(1<<0),_o32=(1<<1),_p32=(1<<2),_q32=(1<<3),_r32=(1<<4),_s32=(1<<5),_t32=(1<<6);var _I12=null;function _u32(){if(_I12===null){var _Yh=window["b2"];_I12={};_I12.version=_Yh["version"];_I12._J12=_Yh["Vec2"];
_I12._v32=_Yh["Vec3"];_I12._w32=_Yh["Mat22"];_I12._x32=_Yh["Mat33"];_I12._y32=_Yh["Rot"];_I12._z32=_Yh["Transform"];_I12._A32=_Yh["Sweep"];_I12._B32=_Yh["Dot_v2_v2"];_I12._C32=_Yh["Cross_v2_v2"];_I12._D32=_Yh["Cross_v2_f"];_I12._E32=_Yh["Cross_f_v2"];_I12._F32=_Yh["Mul_m22_v2"];_I12._G32=_Yh["MulT_m22_v2"];_I12._H32=_Yh["Distance"];_I12._I32=_Yh["DistanceSquared"];_I12._J32=_Yh["Dot_v3_v3"];_I12._K32=_Yh["Cross_v3_v3"];_I12._L32=_Yh["Mul_m22_m22"];_I12._M32=_Yh["MulT_m22_m22"];_I12._N32=_Yh["Mul_m33_v3"];
_I12._O32=_Yh["Mul22_m33_v2"];_I12._P32=_Yh["Mul_r_r"];_I12._Q32=_Yh["MulT_r_r"];_I12._R32=_Yh["Mul_r_v2"];_I12._S32=_Yh["MulT_r_v2"];_I12._T32=_Yh["Mul_t_v2"];_I12._U32=_Yh["Min_v2"];_I12._V32=_Yh["Max_v2"];_I12._W32=_Yh["Clamp"];_I12._X32=_Yh["MulT_t_v2"];_I12._Y32=_Yh["Mul_t_t"];_I12._Z32=_Yh["MulT_t_t"];_I12.__32=_Yh["Clamp_v2"];_I12._042=_Yh["NextPowerOfTwo"];_I12._142=_Yh["Abs_v2"];_I12._242=_Yh["Abs_m22"];_I12._342=_Yh["IsPowerOfTwo"];_I12._442=_Yh["RandomFloat"];_I12._542=_Yh["Timer"];_I12._H4=_Yh["Color"];
_I12._a9=_Yh["Draw"];_I12._642=_Yh["ContactID"];_I12._742=_Yh["ManifoldPoint"];_I12._842=_Yh["Manifold"];_I12._942=_Yh["WorldManifold"];_I12._a42=_Yh["GetPointStates"];_I12._b42=_Yh["ClipVertex"];_I12._c42=_Yh["RayCastInput"];_I12._d42=_Yh["RayCastOutput"];_I12._e42=_Yh["AABB"];_I12._f42=_Yh["CollideCircles"];_I12._g42=_Yh["CollidePolygonAndCircle"];_I12._h42=_Yh["FindMaxSeparation"];_I12._i42=_Yh["FindIncidentEdge"];_I12._j42=_Yh["CollidePolygons"];_I12._k42=_Yh["CollideEdgeAndCircle"];_I12._l42=_Yh["EPAxis"];
_I12._m42=_Yh["TempPolygon"];_I12._n42=_Yh["ReferenceFace"];_I12._o42=_Yh["EPCollider"];_I12._p42=_Yh["CollideEdgeAndPolygon"];_I12._q42=_Yh["ClipSegmentToLine"];_I12._r42=_Yh["TestShapeOverlap"];_I12._o21=_Yh["TestOverlap"];_I12._V12=_Yh["Shape"];_I12._Q22=_Yh["MassData"];_I12._Q12=_Yh["CircleShape"];_I12._T12=_Yh["EdgeShape"];_I12._S12=_Yh["ChainShape"];_I12._R12=_Yh["PolygonShape"];_I12._1E1=_Yh["Pair"];_I12._s42=_Yh["PairLessThan"];_I12._t42=_Yh["BroadPhase"];_I12._u42=_Yh["DistanceProxy"];_I12._v42=_Yh["SimplexCache"];
_I12._w42=_Yh["DistanceInput"];_I12._x42=_Yh["DistanceOutput"];_I12._y42=_Yh["SimplexVertex"];_I12._z42=_Yh["Simplex"];_I12._A42=_Yh["DistanceFunc"];_I12._B42=_Yh["TreeNode"];_I12._C42=_Yh["DynamicTree"];_I12._D42=_Yh["TOIInput"];_I12._E42=_Yh["TOIOutput"];_I12._F42=_Yh["SeparationFunction"];_I12._G42=_Yh["TimeOfImpact"];_I12._H42=_Yh["BodyDef"];_I12._I42=_Yh["Body"];_I12._J42=_Yh["Filter"];_I12._P12=_Yh["FixtureDef"];_I12._K42=_Yh["Fixture"];_I12._L42=_Yh["DestructionListener"];_I12._M42=_Yh["ContactFilter"];
_I12._N42=_Yh["ContactImpulse"];_I12._O42=_Yh["ContactListener"];_I12._4q1=_Yh["QueryCallback"];_I12._8v1=_Yh["RayCastCallback"];_I12._P42=_Yh["TimeStep"];_I12._Q42=_Yh["Position"];_I12._R42=_Yh["Velocity"];_I12._S42=_Yh["SolverData"];_I12._T42=_Yh["World"];_I12._U42=_Yh["MixFriction"];_I12._V42=_Yh["MixRestitution"];_I12._W42=_Yh["ContactRegister"];_I12._X42=_Yh["ContactEdge"];_I12._Y42=_Yh["Contact"];_I12._Z42=_Yh["CircleContact"];_I12.__42=_Yh["PolygonContact"];_I12._052=_Yh["ChainAndCircleContact"];
_I12._152=_Yh["ChainAndPolygonContact"];_I12._252=_Yh["EdgeAndCircleContact"];_I12._352=_Yh["EdgeAndPolygonContact"];_I12._452=_Yh["PolygonAndCircleContact"];_I12._552=_Yh["defaultFilter"];_I12._652=_Yh["defaultListener"];_I12._752=_Yh["ContactManager"];_I12._852=_Yh["VelocityConstraintPoint"];_I12._952=_Yh["ContactPositionConstraint"];_I12._a52=_Yh["ContactVelocityConstraint"];_I12._b52=_Yh["PositionSolverManifold"];_I12._c52=_Yh["ContactSolverDef"];_I12._d52=_Yh["ContactSolver"];_I12._e52=_Yh["Island"];
_I12._f52=_Yh["Jacobian"];_I12._g52=_Yh["JointEdge"];_I12._h52=_Yh["JointDef"];_I12._i52=_Yh["Joint"];_I12._j52=_Yh["RevoluteJointDef"];_I12._o22=_Yh["RevoluteJoint"];_I12._k52=_Yh["MouseJointDef"];_I12._l52=_Yh["MouseJoint"];_I12._m52=_Yh["DistanceJointDef"];_I12._u22=_Yh["DistanceJoint"];_I12._n52=_Yh["PrismaticJointDef"];_I12._p22=_Yh["PrismaticJoint"];_I12._o52=_Yh["FrictionJointDef"];_I12._w22=_Yh["FrictionJoint"];_I12._p52=_Yh["WeldJointDef"];_I12._s22=_Yh["WeldJoint"];_I12._q52=_Yh["WheelJointDef"];
_I12._q22=_Yh["WheelJoint"];_I12._r52=_Yh["GearJointDef"];_I12._c32=_Yh["GearJoint"];_I12._s52=_Yh["MotorJointDef"];_I12._t52=_Yh["MotorJoint"];_I12._u52=_Yh["PulleyJointDef"];_I12._t22=_Yh["PulleyJoint"];_I12._v52=_Yh["RopeJointDef"];_I12._v22=_Yh["RopeJoint"];_I12._w52=_Yh["RopeDef"];_I12._x52=_Yh["Rope"];_I12._y52=_Yh["maxManifoldPoints"];_I12._z52=_Yh["maxPolygonVertices"];_I12._A52=_Yh["aabbExtension"];_I12._B52=_Yh["aabbMultiplier"];_I12._C52=_Yh["linearSlop"];_I12._D52=_Yh["angularSlop"];
_I12._E52=_Yh["polygonRadius"];_I12._F52=_Yh["maxSubSteps"];_I12._G52=_Yh["maxTOIContacts"];_I12._H52=_Yh["velocityThreshold"];_I12._I52=_Yh["maxLinearCorrection"];_I12._J52=_Yh["maxAngularCorrection"];_I12._K52=_Yh["maxTranslation"];_I12._L52=_Yh["maxTranslationSquared"];_I12._M52=_Yh["maxRotation"];_I12._N52=_Yh["maxRotationSquared"];_I12._O52=_Yh["baumgarte"];_I12._P52=_Yh["toiBaugarte"];_I12._Q52=_Yh["timeToSleep"];_I12._R52=_Yh["linearSleepTolerance"];_I12._S52=_Yh["angularSleepTolerance"];
_I12._T52=_Yh["epsilon"];_I12._U52=_Yh["JsonSerializer"];_I12._V52=_Yh["RUBELoader"];_I12._W52=_Yh["Profiler"];_I12._X52=_Yh["ParticleDef"];_I12._Y52=_Yh["ParticleColor"];_I12._Z52=_Yh["ParticleGroupDef"];_I12.__52=_Yh["ParticleGroup"];_I12._062=_Yh["ParticleSystem"];}}/*@constructor */function _162(_262){var _CG1=new _I12._942();_262._BG1(_CG1);this._362=_262._Jx1();this._462=_262._Lx1();this._562=[];this._662=[];this._562[0]=_262._AG1();this._662[0]=_CG1;};/*@constructor */function _762(_862,_962,
_a62){this._b62=_862;this._Iy1=_962;this._Jy1=_a62;};/*@constructor */function _f01(_b01,_c62){_u32();if(_I12===null){_I12=window["b2"];}this._J01=_b01;this._d62=_c62;this._e62=_l32;this._4x1=[];this._f62=[];this._g62=new _I12._Z52();this._cA1=null;this._nJ=false;this._h62=[];for(var i=0;i<_m32;i++){this._h62[i]=new _762(-1,0,0);}var gravity=new _I12._J12(0,10);this._0x1=new _I12._T42(gravity);this._i62();this._j62();this._V21=_s8?this._k62:this._l62;this._W21=_s8?this._m62:this._n62;};_f01.prototype._rJ=function(){
this._nJ=true;};_f01.prototype._n01=function(){this._nJ=false;};_f01.prototype._i62=function(){var _0b=document.getElementById("canvas").getContext("2d");if(_0b){this._cA1=new _I12._a9();this._cA1._fn1(_I12._a9._vn1|_I12._a9._wn1);this._cA1._y12=this;this._cA1._ln1=_x12;this._cA1._mn1=_B12;this._cA1._nn1=_D12;this._cA1._pn1=_E12;this._cA1._qn1=_F12;this._cA1._sn1=_G12;this._cA1._V21=_K12;this._0x1._bA1(this._cA1);}};_f01.prototype._j62=function(){var _o62=new _I12._O42();_o62._p62=this;_o62._iz1=function(_Hx1){
if(_Hx1._Jx1()._Vy1()||_Hx1._Lx1()._Vy1()){this._p62._q62(_Hx1);}};_o62._kz1=function(_Hx1,_lz1){};_o62._jz1=function(_Hx1){};_o62._mz1=function(_Hx1,_r62){this._p62._q62(_Hx1);};this._0x1._9A1(_o62);};_f01.prototype._q62=function(_262){for(var _I6=0;_I6<this._4x1.length;_I6++){var _s62=this._4x1[_I6];if((_s62._362==_262._Jx1()&&_s62._462==_262._Lx1())||(_s62._362==_262._Lx1()&&_s62._462==_262._Jx1())){var _CG1=new _I12._942();_262._BG1(_CG1);_s62._562[_s62._562.length]=_262._AG1();_s62._662[_s62._662.length]=_CG1;
return;}}this._4x1[this._4x1.length]=new _162(_262);};_f01.prototype._e01=function(_lm){this._d62=_lm;};_f01.prototype._l01=function(_3Y){this._e62=_3Y;};_f01.prototype._d01=function(_fm){this._J01=_fm;};_f01.prototype._k01=function(_i01,_j01){this._0x1._Sz1.x=_i01;this._0x1._Sz1.y=_j01;if((_i01!=0.0)||(_j01!=0.0)){var _t62=this._0x1._LA1();while((_t62!=null)&&(_t62!=undefined)){if(_t62._jg1()===_I12._I42._fx1){_t62._G01(true);}_t62=_t62._Ay1();}}};_f01.prototype._u62=function(){var _Kk=_S3._yN._Kk;
for(var index=0;index<_Kk.length;index++){var _Gt=_Kk[index];if(_Gt.path_index>=0){var physicsObject=_Gt._911;if(physicsObject!==null&&physicsObject!==undefined){var _t62=physicsObject._A22;if(_t62._jg1()!==_I12._I42._fx1){if(_Gt._v62()){_Gt._b6(_w62,0,_Gt,_Gt);}_t62._Nx1(new _I12._J12(_Gt.x*this._J01,_Gt.y*this._J01),_t62._mm1());}}else {if(_Gt._v62()){_Gt._b6(_w62,0,_Gt,_Gt);}}}}};_f01.prototype._x62=function(){var _y62=1.0/this._J01;var _t62=this._0x1._LA1();while((_t62!=null)&&(_t62!=undefined)){var _Gt=_t62._Kp1();
if((_Gt!=null)&&(_Gt!=undefined)){_Gt._z62(_t62);var _Lk=_t62._W_();_Gt.phy_position_xprevious=_Lk.x*_y62;_Gt.phy_position_yprevious=_Lk.y*_y62;}_t62=_t62._Ay1();}};_f01.prototype._Uf=function(_A62){if(_A62<=0){return;}this._u62();if(this._nJ==true){return;}this._x62();var _B62=1.0/this._d62;var _C62=this._d62/_A62;var _D62=_C62;while(_D62>0.0){var _E62=(_D62>1.0)?_B62:(_B62*_D62);this._0x1._rA1(_E62,this._e62,this._e62);_D62-=1.0;}this._0x1._vA1();this._F62();this._G62();};_f01.prototype._F62=function(){
var _y62=1.0/this._J01;var _t62=this._0x1._LA1();while((_t62!=null)&&(_t62!=undefined)){var _Gt=_t62._Kp1();if((_Gt!=null)&&(_Gt!=undefined)){if(_Gt.marked&&_Gt._911){this._dA1(_Gt._911);_Gt._911=null;}else {_Gt._z62(_t62);}}_t62=_t62._Ay1();}};_f01.prototype._G62=function(){var _y62=1.0/this._J01;for(var i=0;i<this._4x1.length;i++){if(this._4x1[i]._362&&this._4x1[i]._462&&this._4x1[i]._362.__y1()&&this._4x1[i]._462.__y1()){var _H62=this._4x1[i]._362.__y1()._Kp1();var _I62=this._4x1[i]._462.__y1()._Kp1();
_H62.phy_collision_points=0;_H62.phy_collision_x=undefined;_H62.phy_collision_y=undefined;_H62.phy_col_normal_x=undefined;_H62.phy_col_normal_y=undefined;_I62.phy_collision_points=0;_I62.phy_collision_x=undefined;_I62.phy_collision_y=undefined;_I62.phy_col_normal_x=undefined;_I62.phy_col_normal_y=undefined;var _J62=0;for(var _K62=0;_K62<this._4x1[i]._562.length;_K62++){var _CG1=this._4x1[i]._662[_K62];for(var _17 in _CG1.points){if(!_CG1.points.hasOwnProperty(_17))continue;if(_J62==0){_H62.phy_collision_x=_CG1.points[_17].x*_y62;
_H62.phy_collision_y=_CG1.points[_17].y*_y62;_I62.phy_collision_x=_CG1.points[_17].x*_y62;_I62.phy_collision_y=_CG1.points[_17].y*_y62;_H62.phy_col_normal_x=_CG1._Yn1.x;_H62.phy_col_normal_y=_CG1._Yn1.y;_I62.phy_col_normal_x=_CG1._Yn1.x;_I62.phy_col_normal_y=_CG1._Yn1.y;}_H62.phy_collision_points++;_I62.phy_collision_points++;_J62++;}}if(!_H62.marked&&!_I62.marked){_H62._b6(_L62,_I62.object_index,_H62,_I62);_I62._b6(_L62,_H62.object_index,_I62,_H62);}_H62.phy_collision_points=0;_H62.phy_collision_x=undefined;
_H62.phy_collision_y=undefined;_H62.phy_col_normal_x=undefined;_H62.phy_col_normal_y=undefined;_I62.phy_collision_points=0;_I62.phy_collision_x=undefined;_I62.phy_collision_y=undefined;_I62.phy_col_normal_x=undefined;_I62.phy_col_normal_y=undefined;}}this._4x1=[];};_f01.prototype._V01=function(_k32,_j8,_T4,_U4){var _T01=-1;if(!_k32._U12()){return;}var _M62=this._N62(_j8.object_index);if(_M62!=-1){_k32._O12.filter._Iy1=this._h62[_M62]._Iy1;_k32._O12.filter._Jy1=this._h62[_M62]._Jy1;}else {_k32._O12.filter._Iy1=0;
_k32._O12.filter._Jy1=0;}var _O62=(_k32._O12._631==0)?(_k32._L12?_I12._I42._nx1:_I12._I42._Iw1):_I12._I42._fx1;var _P62=_j8._911;if(_j8._911){var _t62=_P62._A22;var _r01=_t62._xy1();if((_r01==null)||(_r01==undefined)){_t62._hy1(_O62);}var _r01=_t62._sx1(_k32._O12);_T01=_P62._j32(_r01);}else {var _Q62=new _I12._H42();_Q62.type=_O62;_Q62.angle=-_j8.image_angle*__6/180.0;_Q62._Lw1=_k32._9x1;_Q62._Mw1=_k32._ax1;_Q62._Ow1=_k32._M12;var _R62=_j8._S62(_Q62.angle,{x:_T4,y:_U4});_Q62.position.x=(_j8.x-_R62.x)*this._J01;
_Q62.position.y=(_j8.y-_R62.y)*this._J01;_Q62._Bp1=_j8;var _t62=this._0x1._V01(_Q62);var _r01=_t62._sx1(_k32._O12);_P62=new _x22(_t62,_M62,_T4,_U4);_j8._911=_P62;_j8._z62(_t62);_T01=_P62._j32(_r01);this._T62();}return _T01;};_f01.prototype._dA1=function(_U62){this._0x1._dA1(_U62._A22);};_f01.prototype._X11=function(_V62){this._0x1._X11(_V62._n22);};_f01.prototype._h01=function(_g01){if(this._cA1==null){return;}var _W62=0;if(_g01&_n32){_W62=_W62|_I12._a9._vn1;}if(_g01&_o32){_W62=_W62|_I12._a9._wn1;}if(_g01&_p32){
_W62=_W62|_I12._a9._yn1;}if(_g01&_q32){_W62=_W62|_I12._a9._xn1;}if(_g01&_t32){_W62=_W62|_I12._a9._Fn1;}this._cA1._fn1(_W62);this._0x1._wA1();};_f01.prototype._811=function(_X62,_Y62,_Z62,__62,_072,_172,_272){_X62._A22._G01(true);_Y62._A22._G01(true);var scale=this._J01;var _372=new _I12._J12(_Z62*scale,__62*scale);var _472=new _I12._J12(_072*scale,_172*scale);var _NO1=new _I12._m52();_NO1._Qr1(_X62._A22,_Y62._A22,_372,_472);_NO1._qA1=_272;var _572=this._0x1._iA1(_NO1);var _672=new _l22(_572);return _672;};
_f01.prototype._b11=function(_X62,_Y62,_Z62,__62,_072,_172,_a11,_272){var _oA1=_X62._A22;var _pA1=_Y62._A22;_oA1._G01(true);_pA1._G01(true);var scale=this._J01;var _BJ1=_oA1._7y1(new _I12._J12(_Z62*scale,__62*scale));var _CJ1=_pA1._7y1(new _I12._J12(_072*scale,_172*scale));var _NO1=new _I12._v52();_NO1._oA1=_oA1;_NO1._pA1=_pA1;_NO1._BJ1=_BJ1;_NO1._CJ1=_CJ1;_NO1._UN1=_a11*scale;_NO1._qA1=_272;var _772=this._0x1._iA1(_NO1);var _672=new _l22(_772);return _672;};_f01.prototype._k11=function(_X62,_Y62,_872,_972,_a72,
_b72,_c72,_d72,_e72,_f72,_272){_X62._A22._G01(true);_Y62._A22._G01(true);var scale=this._J01;var anchor=new _I12._J12(_872*scale,_972*scale);var _NO1=new _I12._j52();_NO1._Qr1(_X62._A22,_Y62._A22,anchor);_NO1._EJ1=_a72;_NO1._FJ1=_b72;_NO1._IJ1=_c72;_NO1._GJ1=_d72;_NO1._HJ1=_e72;_NO1._JJ1=_f72;_NO1._qA1=_272;var _g72=this._0x1._iA1(_NO1);var _672=new _l22(_g72);return _672;};_f01.prototype._q11=function(_X62,_Y62,_872,_972,_h72,_i72,_j72,_k72,_c72,_l72,_e72,_f72,_272){_X62._A22._G01(true);_Y62._A22._G01(true);
var scale=this._J01;var anchor=new _I12._J12(_872*scale,_972*scale);var _ru=new _I12._J12(_h72,_i72);_ru._Ql1();var _NO1=new _I12._n52();_NO1._Qr1(_X62._A22,_Y62._A22,anchor,_ru);_NO1._4L1=_j72*scale;_NO1._5L1=_k72*scale;_NO1._IJ1=_c72;_NO1._6L1=_l72;_NO1._HJ1=_e72;_NO1._JJ1=_f72;_NO1._qA1=_272;var _m72=this._0x1._iA1(_NO1);var _672=new _l22(_m72);return _672;};_f01.prototype._w11=function(_X62,_Y62,_n72,_o72,_p72,_q72,_r72,_s72,_t72,_u72,_v11,_272){_X62._A22._G01(true);_Y62._A22._G01(true);var scale=this._J01;
var _NO1=new _I12._u52();_NO1._Qr1(_X62._A22,_Y62._A22,new _I12._J12(_n72*scale,_o72*scale),new _I12._J12(_p72*scale,_q72*scale),_X62._A22._4y1(new _I12._J12(_r72*scale,_s72*scale)),_Y62._A22._4y1(new _I12._J12(_t72*scale,_u72*scale)),_v11);_NO1._qA1=_272;var _v72=this._0x1._iA1(_NO1);var _672=new _l22(_v72);return _672;};_f01.prototype._E11=function(_X62,_Y62,_x11,_y11,_z11,_A11,_B11,_d72,_w72,_x72,_y72,_272){_X62._A22._G01(true);_Y62._A22._G01(true);var scale=this._J01;var _NO1=new _I12._q52();_NO1._Qr1(_X62._A22,
_Y62._A22,new _I12._J12(_x11*scale,_y11*scale),new _I12._J12(_z11,_A11));_NO1._JJ1=_B11;_NO1._GJ1=_d72;_NO1._HJ1=_w72;_NO1._zK1=_x72;_NO1._AK1=_y72;_NO1._qA1=_272;var _z72=this._0x1._iA1(_NO1);var _672=new _l22(_z72);return _672;};_f01.prototype._G11=function(_X62,_Y62,_x11,_y11,_A72,_x72,_y72,_272){_X62._A22._G01(true);_Y62._A22._G01(true);var scale=this._J01;var _NO1=new _I12._p52();_NO1._Qr1(_X62._A22,_Y62._A22,new _I12._J12(_x11*scale,_y11*scale));_NO1._DJ1=(-_A72*180.0)/Math.PI;_NO1._zK1=_x72;_NO1._AK1=_y72;
_NO1._qA1=_272;var _B72=this._0x1._iA1(_NO1);var _672=new _l22(_B72);return _672;};_f01.prototype._J11=function(_X62,_Y62,_x11,_y11,_C72,_D72,_272){_X62._A22._G01(true);_Y62._A22._G01(true);var scale=this._J01;var _NO1=new _I12._o52();_NO1._Qr1(_X62._A22,_Y62._A22,new _I12._J12(_x11*scale,_y11*scale));_NO1._yK1=_C72;_NO1._BL1=_D72;_NO1._qA1=_272;var _E72=this._0x1._iA1(_NO1);var _672=new _l22(_E72);return _672;};_f01.prototype._O11=function(_X62,_Y62,_F72,_G72,_v11){if((_F72._n22._oO!==_I12._i52._iJ1)&&(_F72._n22._oO!==_I12._i52._jJ1)&&(_G72._n22._oO!==_I12._i52._iJ1)&&(_G72._n22._oO!==_I12._i52._jJ1)){
return -1;}_X62._A22._G01(true);_Y62._A22._G01(true);var _NO1=new _I12._r52();_NO1._oA1=_X62._A22;_NO1._pA1=_Y62._A22;_NO1._4M1=_F72._n22;_NO1._5M1=_G72._n22;_NO1._VI1=_v11;var _v72=this._0x1._iA1(_NO1);var _672=new _l22(_v72);return _672;};_f01.prototype._H72=function(_862){for(var _I6=0;_I6<_m32;_I6++){if(this._h62[_I6]._b62==_862){return _I6;}}return -1;};_f01.prototype._I72=function(_862){var _J72=this._H72(_862);if(_J72!=-1){return _J72;}for(var _I6=0;_I6<_m32;_I6++){if(this._h62[_I6]._b62==-1){this._h62[_I6]._b62=_862;
this._h62[_I6]._Iy1=(1<<_I6);this._h62[_I6]._Jy1=0;return _I6;}}return -1;};_f01.prototype._K72=function(_862,_L72){var _M72=_862;var _N72=_H3._26(_862);while((_N72._9O>=0)&&_H3._26(_N72._9O)){_N72=_H3._26(_N72._9O);var _O72=_N72._bO;var _P72=0;for(var _Q72 in _R72){if(!_R72.hasOwnProperty(_Q72))continue;for(var _NG1 in _R72[_Q72]){if(!_R72[_Q72].hasOwnProperty(_NG1))continue;var _S72=-1;if(_Q72==_862){_S72=_NG1;}else if(_NG1==_862){_S72=_Q72;}if(_S72!=-1){_P72++;}}}if(_P72!==_L72.length){break;}_M72=_O72;}return _M72;
};_f01.prototype._T72=function(_862){var _U72=[];for(var _Q72 in _R72){if(!_R72.hasOwnProperty(_Q72))continue;for(var _NG1 in _R72[_Q72]){if(!_R72[_Q72].hasOwnProperty(_NG1))continue;var _S72=-1;if(_Q72==_862){_S72=_NG1;}else if(_NG1==_862){_S72=_Q72;}if(_S72!==-1){_U72[_U72.length]=_S72;}}}return _U72;};_f01.prototype._V72=function(_Sk,_L72){for(var _UE in _H3._W72){if(!_H3._W72.hasOwnProperty(_UE))continue;var _X72=_H3._W72[_UE];if(_X72._9O===_Sk._bO){if(this._T72(_X72._bO).length!==0){_L72[_L72.length]=_X72._bO;
}this._V72(_X72,_L72);}}};_f01.prototype._Y72=function(_862){var _U72=this._T72(_862);var _M72=_862;var _N72=_H3._26(_862);while((_N72._9O>=0)&&_H3._26(_N72._9O)){_N72=_H3._26(_N72._9O);_U72=_U72.concat(this._T72(_N72._bO));}for(var _I6=0;_I6<_U72.length;_I6++){var _Z72=_U72[_I6];var _UE=_H3._26(_Z72);this._V72(_UE,_U72);}return _U72;};_f01.prototype.__72=function(_862,_z22){var _U72=this._Y72(_862);for(var _082=0;_082<_U72.length;++_082){for(var _182=0;_182<_m32;++_182){if(this._h62[_182]._b62==_U72[_082]){
this._h62[_z22]._Jy1|=this._h62[_182]._Iy1;this._h62[_182]._Jy1|=this._h62[_z22]._Iy1;}}}};_f01.prototype._N62=function(_862){var _M62=this._H72(_862);if(_M62!==-1){return _M62;}var _U72=this._T72(_862);var _b62=_862;if(_U72.length===0){var _M72=_862;var _N72=_H3._26(_862);while((_N72._9O>=0)&&_H3._26(_N72._9O)){_N72=_H3._26(_N72._9O);_b62=_N72._bO;_U72=this._T72(_b62);if(_U72.length!==0){_M62=this._H72(_b62);break;}}if(_U72.length===0){return -1;}}if(_M62===-1){_M62=this._I72(_b62);if(_M62===-1){return -1;
}}this.__72(_862,_M62);return _M62;};_f01.prototype._T62=function(){var _t62=this._0x1._LA1();while((_t62!=null)&&(_t62!=undefined)){var _Gt=_t62._Kp1();if((_Gt!=null)&&(_Gt!=undefined)){var _x21=_Gt._911._B22;if(_x21!=-1){var _282=new _I12._J42();_282._Iy1=this._h62[_x21]._Iy1;_282._Jy1=this._h62[_x21]._Jy1;var _r01=_t62._xy1();while((_r01!=null)&&(_r01!=undefined)){_282._Ky1=_r01._Yy1()._Ky1;_r01._Wy1(_282);_r01=_r01._6x1;}}}_t62=_t62._Ay1();}};_f01.prototype._o21=function(_em,_sq,_Q5,_R5,_U5){var _382=new _I12._z32();
_382.Set(new _I12._J12(_Q5,_R5),_U5);if((_em._911===null)||(_em._911===undefined)||(_sq._911===null)||(_sq._911===undefined)){return;}var _482=_em._911._A22;var _582=_sq._911._A22;var _682;for(_682=_482._xy1();_682;_682=_682._Ay1()){var _782;for(_782=_582._xy1();_782;_782=_682._Ay1()){if(_I12._r42(_682._Ty1(),0,_782._Ty1(),0,_382,_582._xm1())){return true;}}}return false;};_f01.prototype._y21=function(_g01,_Q5,_R5,_882,_982,_0d,_A9,_d31){var _tx1=new _I12._X52();_tx1._bj1=_g01;_tx1.position.Set(_Q5*this._J01,
_R5*this._J01);_tx1._f61.Set(_882*this._J01,_982*this._J01);_tx1.color.Set((_0d&0xff),(_0d&0xff00)>>8,(_0d&0xff0000)>>16,(_A9*255.0));_tx1._Bp1=_d31;return this._0x1._y21(_tx1);};_f01.prototype._z21=function(_a82){this._0x1._KB1(_a82);};_f01.prototype._L21=function(_b31,_b82,_Q5,_R5,_c82,_882,_982,_d82,_0d,_A9,_e82,_d31){this._g62._bj1=_b31;this._g62._1D1=_b82;this._g62.angle=(-_c82*__6)/180.0;this._g62._Kw1=(_d82*__6)/180.0;this._g62.position.Set(_Q5*this._J01,_R5*this._J01);this._g62._Jw1.Set(_882*this._J01,
_982*this._J01);this._g62.color.Set((_0d&0xff),(_0d&0xff00)>>8,(_0d&0xff0000)>>16,(_A9*255.0));this._g62._K21=_e82;this._g62._2D1=true;this._g62._Bp1=_d31;};_f01.prototype._M21=function(_Rt){var shape=new _I12._Q12();shape._Nn1=Math.abs(_Rt*this._J01);this._g62.shape=shape;};_f01.prototype._N21=function(_K01,_L01){if(_K01==0.0){_K01=1.0;}if(_L01==0.0){_L01=1.0;}var shape=new _I12._R12();shape._Mo1(_K01*this._J01,_L01*this._J01);this._g62.shape=shape;};_f01.prototype._O21=function(){var shape=new _I12._R12();
this._g62.shape=shape;};_f01.prototype._P21=function(_Q5,_R5){if((this._g62.shape!==null)&&(this._g62.shape._oO===_I12._V12._0o1)){var shape=this._g62.shape;if(shape._to1<_I12._z52){shape._so1[shape._to1++]=new _I12._J12(_Q5*this._J01,_R5*this._J01);}}};_f01.prototype._f82=function(){for(var _I6=0;_I6<this._f62.length;_I6++){var _i31=this._f62[_I6];if(_i31===null||_i31===undefined){return _I6;}}var slot=this._f62.length;return slot;};_f01.prototype._g82=function(_h82){if(_h82>=0&&_h82<this._f62.length){
return this._f62[_h82];}return null;};_f01.prototype._Q21=function(){if((this._g62.shape!==null)&&(this._g62.shape._oO===_I12._V12._0o1)){var vertices=[];var shape=this._g62.shape;for(var _I6=0;_I6<shape._to1;_I6++){vertices[_I6]=new _I12._J12(shape._so1[_I6].x,shape._so1[_I6].y);}shape.Set(vertices,shape._to1);}var _L91=this._0x1._NB1(this._g62);var _Ky1=this._f82();this._f62[_Ky1]=_L91;return _Ky1;};_f01.prototype._OB1=function(_i82,_j82){var _k82=this._g82(_i82);var _l82=this._g82(_j82);if((_k82!==null)&&(_l82!==null)){
this._0x1._OB1(_k82,_l82);this._f62[_j82]=null;}};_f01.prototype._T21=function(_h82){var _L91=this._g82(_h82);if(_L91!==null){this._0x1._RB1(_L91);this._f62[_h82]=null;}};_f01.prototype._B21=function(_Q5,_R5,_Rt){var shape=new _I12._Q12();shape._Nn1=_Rt*this._J01;var _m82=new _I12._z32();_m82._ih.Set(_Q5*this._J01,_R5*this._J01);_m82.q.__l1();this._0x1._MB1(shape,_m82);};_f01.prototype._E21=function(_Q5,_R5,_K01,_L01){var shape=new _I12._R12();shape._Mo1(_K01*this._J01,_L01*this._J01);var _m82=new _I12._z32();
_m82._ih.Set(_Q5*this._J01,_R5*this._J01);_m82.q.__l1();this._0x1._MB1(shape,_m82);};_f01.prototype._G21=function(_n82,_ce){if(_ce>_I12._z52){_ce=_I12._z52;}var points=[];for(var _I6=0;_I6<_ce;_I6++){points[_I6]=new _I12._J12(_n82[(_I6*2)+0]*this._J01,_n82[(_I6*2)+1]*this._J01);}var _o82=new _I12._R12();_o82.Set(points,_ce);var _m82=new _I12._z32();_m82.__l1();this._0x1._MB1(_o82,_m82);};_f01.prototype._p82=function(_jl,_q82,_r82,_s82){var _E8=this._0x1._X21();if(_r82<0||_r82>=_E8)return;if(_s82<_r82)return;
if(_s82>_E8)return;var _bj1=this._0x1._SB1();var _Az1=this._0x1._TB1();var _Bz1=this._0x1._UB1();var _t82=this._0x1._VB1();var _Bp1=this._0x1._WB1();var _u82=_jl._YM;var _v82=1.0/this._J01;for(var _I6=_r82;_I6<_s82;_I6++){if(_q82&(1<<0)){_jl._1N(_8k,_bj1[_I6]);}if(_q82&(1<<1)){_jl._1N(_w82,_Az1[_I6].x*_v82);_jl._1N(_w82,_Az1[_I6].y*_v82);}if(_q82&(1<<2)){_jl._1N(_w82,_Bz1[_I6].x*_v82);_jl._1N(_w82,_Bz1[_I6].y*_v82);}if(_q82&(1<<3)){_jl._1N(_8k,(_t82[_I6]._G4<<24)|(_t82[_I6]._D4<<16)|(_t82[_I6]._E4<<8)|_t82[_I6]._F4);
}if(_q82&(1<<4)){_jl._1N(_hk,_Bp1[_I6]);}}_jl._3Z(_gk,_u82);};_f01.prototype._Z21=function(_jl,_q82){this._p82(_jl,_q82,0,this._0x1._X21());};_f01.prototype._h31=function(_S4,_MY1,_q82){this._p82(_MY1,_q82,_S4,_S4+1);};_f01.prototype._c31=function(_S4,_b31){if(_S4>=0&&_S4<this._0x1._X21()){var _bj1=this._0x1._SB1();_bj1[_S4]=_b31;}};_f01.prototype._e31=function(_d31,_b31){var _E8=this._0x1._X21();var _bj1=this._0x1._SB1();var _Bp1=this._0x1._WB1();for(var _I6=0;_I6<_E8;_I6++){if((_d31===0)||(_d31===_Bp1[_I6])){
_bj1[_I6]=_b31;}}};_f01.prototype._f31=function(_h82,_g01){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){_i31._f31(_g01);}};_f01.prototype._g31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return _i31._g31();}return 0;};_f01.prototype._j31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return _i31._X21();}return 0;};_f01.prototype._k31=function(_h82,_MY1,_q82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){var start=_i31._gD1();
var end=start+_i31._X21();this._p82(_MY1,_q82,start,end);}};_f01.prototype._l31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return _i31._0y1();}};_f01.prototype._m31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return _i31._1y1();}};_f01.prototype._n31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return _i31._gs1().x/this._J01;}};_f01.prototype._o31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){
return _i31._gs1().y/this._J01;}};_f01.prototype._p31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return _i31._Sx1().x/this._J01;}};_f01.prototype._q31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return _i31._Sx1().y/this._J01;}};_f01.prototype._r31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return(_i31._Ux1()*180.0)/Math.PI;}};_f01.prototype._s31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){
return _i31._W_().x/this._J01;}};_f01.prototype._t31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){return _i31._W_().y/this._J01;}};_f01.prototype._u31=function(_h82){var _i31=this._g82(_h82);if(_i31!==null&&_i31!==undefined){var angle=_i31._mm1();return(angle*180.0)/Math.PI;}};_f01.prototype._l62=function(_x82,_d31,_06,_4n){var _E8=this._0x1._X21();var _bj1=this._0x1._SB1();var _Az1=this._0x1._TB1();var _t82=this._0x1._VB1();var _Bp1=this._0x1._WB1();var _v82=1.0/this._J01;for(var _I6=0;
_I6<_E8;_I6++){if(((_bj1[_I6]===0)||((_bj1[_I6]&_x82)!==0))&&((_d31===0)||(_d31===_Bp1[_I6]))){var _L4=(_t82[_I6]._F4&0xff)|((_t82[_I6]._E4<<8)&0xff00)|((_t82[_I6]._D4<<16)&0xff0000);_06._a9(_I6,_Az1[_I6].x*_v82,_Az1[_I6].y*_v82,1.0,1.0,0,_L4,_t82[_I6]._G4/255.0);}}};_f01.prototype._n62=function(_x82,_d31,_06,_4n,_2o,_3o,_U5,_0d,_A9){var _E8=this._0x1._X21();var _bj1=this._0x1._SB1();var _Az1=this._0x1._TB1();var _Bp1=this._0x1._WB1();var _v82=1.0/this._J01;for(var _I6=0;_I6<_E8;_I6++){if(((_bj1[_I6]===0)||((_bj1[_I6]&_x82)!==0))&&((_d31===0)||(_d31===_Bp1[_I6]))){
_06._a9(_I6,_Az1[_I6].x*_v82,_Az1[_I6].y*_v82,_2o,_3o,_U5,_0d,_A9);}}};_f01.prototype._k62=function(_x82,_d31,_06,_4n){var __4=_06._05[_4n%_06._15()];if(!__4){return;}if(!__4._95.complete){return;}if(!__4._95._Ba){_Ca(__4);}var _E8=this._0x1._X21();var _bj1=this._0x1._SB1();var _Az1=this._0x1._TB1();var _t82=this._0x1._VB1();var _Bp1=this._0x1._WB1();var _v82=1.0/this._J01;var _y82=0;for(var _I6=0;_I6<_E8;_I6++){if(((_bj1[_I6]===0)||((_bj1[_I6]&_x82)!==0))&&((_d31===0)||(_d31===_Bp1[_I6]))){_y82++;}}if(_y82===0){
return;}var _Ha=_s8._Ia(_ca._Ja,__4._95._Ba,_s8._Ka,_y82*6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_y82*6;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;var _Sa=_Ha._Ta;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;var _L6=-(_06.xOrigin-__4.XOffset);var _M6=-(_06.yOrigin-__4.YOffset);var _N6=_L6+__4.CropWidth;var _O6=_M6+__4.CropHeight;var _z82=0;for(var _I6=0;_I6<_E8;_I6++){if(((_bj1[_I6]===0)||((_bj1[_I6]&_x82)!==0))&&((_d31===0)||(_d31===_Bp1[_I6]))){var x=_Az1[_I6].x*_v82;
var y=_Az1[_I6].y*_v82;_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=x+_L6;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=y+_M6;_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=x+_N6;_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=y+_O6;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;var _L4=(_t82[_I6]._F4&0xff)|((_t82[_I6]._E4<<8)&0xff00)|((_t82[_I6]._D4<<16)&0xff0000)|((_t82[_I6]._G4<<24)&0xff000000);_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=_L4;_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=__4.x/__4._95.width;_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=__4.y/__4._95.height;
_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(__4.x+__4.w)/__4._95.width;_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(__4.y+__4.h)/__4._95.height;var _A82=_La*6;_Ua+=_A82;_jb+=_A82;_p5+=_A82;_kb+=_A82;_lb+=_A82;_mb+=_A82;}}};_f01.prototype._m62=function(_x82,_d31,_06,_4n,_2o,_3o,_U5,_0d,_A9){_U5=(_U5*Math.PI)/180.0;var __4=_06._05[_4n%_06._15()];if(!__4){return;}if(!__4._95.complete){return;}if(!__4._95._Ba){_Ca(__4);}var _E8=this._0x1._X21();var _bj1=this._0x1._SB1();var _Az1=this._0x1._TB1();var _Bp1=this._0x1._WB1();var _v82=1.0/this._J01;
var _y82=0;for(var _I6=0;_I6<_E8;_I6++){if(((_bj1[_I6]===0)||((_bj1[_I6]&_x82)!==0))&&((_d31===0)||(_d31===_Bp1[_I6]))){_y82++;}}if(_y82===0){return;}var _Ha=_s8._Ia(_ca._Ja,__4._95._Ba,_s8._Ka,_y82*6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_y82*6;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;var _Sa=_Ha._Ta;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;var _L4=_0d|(((_A9*255)&0xff)<<24);var _L6=-_2o*(_06.xOrigin-__4.XOffset);var _M6=-_3o*(_06.yOrigin-__4.YOffset);var _N6=_L6+(_2o*__4.CropWidth);
var _O6=_M6+(_3o*__4.CropHeight);var _z82=0;if(Math.abs(_U5)<0.0001){for(var _I6=0;_I6<_E8;_I6++){if(((_bj1[_I6]===0)||((_bj1[_I6]&_x82)!==0))&&((_d31===0)||(_d31===_Bp1[_I6]))){var x=_Az1[_I6].x*_v82;var y=_Az1[_I6].y*_v82;_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=x+_L6;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=y+_M6;_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=x+_N6;_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=y+_O6;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=_L4;
_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=__4.x/__4._95.width;_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=__4.y/__4._95.height;_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(__4.x+__4.w)/__4._95.width;_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(__4.y+__4.h)/__4._95.height;var _A82=_La*6;_Ua+=_A82;_jb+=_A82;_p5+=_A82;_kb+=_A82;_lb+=_A82;_mb+=_A82;}}}else {var _l7=Math.sin(_U5);var _m7=Math.cos(_U5);var _B82=_L6*_m7;var _C82=_N6*_m7;var _D82=_M6*_m7;var _E82=_O6*_m7;var _F82=_L6*_l7;var _G82=_N6*_l7;var _H82=_M6*_l7;var _I82=_O6*_l7;for(var _I6=0;_I6<_E8;
_I6++){if(((_bj1[_I6]===0)||((_bj1[_I6]&_x82)!==0))&&((_d31===0)||(_d31===_Bp1[_I6]))){var x=_Az1[_I6].x*_v82;var y=_Az1[_I6].y*_v82;_Oa[_Ua+0]=_Oa[_mb+0]=x+_B82+_H82;_Oa[_Ua+1]=_Oa[_mb+1]=y-_F82+_D82;_Oa[_p5+0]=_Oa[_kb+0]=x+_C82+_I82;_Oa[_p5+1]=_Oa[_kb+1]=y-_G82+_E82;_Oa[_jb+1]=y-_G82+_D82;_Oa[_jb+0]=x+_C82+_H82;_Oa[_lb+0]=x+_B82+_I82;_Oa[_lb+1]=y-_F82+_E82;_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=_L4;_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=__4.x/__4._95.width;_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=__4.y/__4._95.height;
_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(__4.x+__4.w)/__4._95.width;_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(__4.y+__4.h)/__4._95.height;var _A82=_La*6;_Ua+=_A82;_jb+=_A82;_p5+=_A82;_kb+=_A82;_lb+=_A82;_mb+=_A82;}}}};_f01.prototype._X21=function(){return this._0x1._X21();};_f01.prototype.__21=function(){return this._0x1.__21();};_f01.prototype._031=function(){return this._0x1._031()*(1.0/this._J01);};_f01.prototype._131=function(){return this._0x1._131();};_f01.prototype._231=function(){return this._0x1._231();};_f01.prototype._331=function(){
return this._0x1._331();};_f01.prototype._431=function(_ce){this._0x1._431(_ce);};_f01.prototype._531=function(_Rt){this._0x1._531(_Rt*this._J01);};_f01.prototype._731=function(_t01){this._0x1._731(_t01);};_f01.prototype._931=function(_C01){this._0x1._931(_C01);};_f01.prototype._a31=function(_fm){this._0x1._a31(_fm);};function BitcrusherEffectStruct(_dt){_Ja1.call(this,_J82._K82._L82);Object.setPrototypeOf(this,_Ja1.prototype);this._M82(_dt,BitcrusherEffectStruct._N82());Object.defineProperties(this,
{gmlgain:{enumerable:true,get :()=>{return this._bB.gain;},set :(_l81)=>{this._O82(BitcrusherEffectStruct._N82().gain,_l81);this._jv1.forEach((_P82)=>{const gain=_P82.parameters.get("gain");gain.setTargetAtTime(this._bB.gain,0,_J82._Q82);});}},gmlfactor:{enumerable:true,get :()=>{return this._bB.factor;},set :(_IW)=>{this._O82(BitcrusherEffectStruct._N82().factor,_IW);this._jv1.forEach((_P82)=>{const factor=_P82.parameters.get("factor");factor.value=this._bB.factor;});}},gmlresolution:{enumerable:true,get :()=>{
return this._bB.resolution;},set :(_R82)=>{this._O82(BitcrusherEffectStruct._N82().resolution,_R82);this._jv1.forEach((_P82)=>{const resolution=_P82.parameters.get("resolution");resolution.value=this._bB.resolution;});}},gmlmix:{enumerable:true,get :()=>{return this._bB.mix;},set :(_S82)=>{this._O82(BitcrusherEffectStruct._N82().mix,_S82);this._jv1.forEach((_P82)=>{const mix=_P82.parameters.get("mix");mix.setTargetAtTime(this._bB.mix,0,_J82._Q82);});}}});}BitcrusherEffectStruct._N82=()=>({bypass:_Ja1._N82().bypass,
gain:{name:"gain",_T82:false,defaultValue:1.0,minValue:0.0,maxValue:Number.MAX_VALUE},factor:{name:"factor",_T82:true,defaultValue:20,minValue:1,maxValue:100},resolution:{name:"resolution",_T82:true,defaultValue:8,minValue:2,maxValue:16},mix:{name:"mix",_T82:false,defaultValue:0.8,minValue:0.0,maxValue:1.0}});function DelayEffectStruct(_dt){_Ja1.call(this,_J82._K82._U82);Object.setPrototypeOf(this,_Ja1.prototype);this._M82(_dt,DelayEffectStruct._N82());Object.defineProperties(this,{gmltime:{enumerable:true,
get :()=>{return this._bB.time;},set :(_j6)=>{this._O82(DelayEffectStruct._N82().time,_j6);this._jv1.forEach((_P82)=>{const time=_P82.parameters.get("time");time.setTargetAtTime(this._bB.time,0,_J82._Q82);});}},gmlfeedback:{enumerable:true,get :()=>{return this._bB.feedback;},set :(_V82)=>{this._O82(DelayEffectStruct._N82().feedback,_V82);this._jv1.forEach((_P82)=>{const feedback=_P82.parameters.get("feedback");feedback.setTargetAtTime(this._bB.feedback,0,_J82._Q82);});}},gmlmix:{enumerable:true,get :()=>{
return this._bB.mix;},set :(_S82)=>{this._O82(DelayEffectStruct._N82().mix,_S82);this._jv1.forEach((_P82)=>{const mix=_P82.parameters.get("mix");mix.setTargetAtTime(this._bB.mix,0,_J82._Q82);});}}});}DelayEffectStruct._N82=()=>({bypass:_Ja1._N82().bypass,time:{name:"time",_T82:false,defaultValue:0.2,minValue:0.0,maxValue:5.0},feedback:{name:"feedback",_T82:false,defaultValue:0.5,minValue:0.0,maxValue:1.0},mix:{name:"mix",_T82:false,defaultValue:0.35,minValue:0.0,maxValue:1.0}});function GainEffectStruct(_dt){
_Ja1.call(this,_J82._K82._W82);Object.setPrototypeOf(this,_Ja1.prototype);this._M82(_dt,GainEffectStruct._N82());Object.defineProperties(this,{gmlgain:{enumerable:true,get :()=>{return this._bB.gain;},set :(_l81)=>{this._O82(GainEffectStruct._N82().gain,_l81);this._jv1.forEach((_P82)=>{const gain=_P82.parameters.get("gain");gain.setTargetAtTime(this._bB.gain,0,_J82._Q82);});}}});}GainEffectStruct._N82=()=>({bypass:_Ja1._N82().bypass,gain:{name:"gain",_T82:false,defaultValue:0.5,minValue:0.0,maxValue:Number.MAX_VALUE}
});function HPF2EffectStruct(_dt){_Ja1.call(this,_J82._K82._X82);Object.setPrototypeOf(this,_Ja1.prototype);this._M82(_dt,HPF2EffectStruct._N82());Object.defineProperties(this,{gmlcutoff:{enumerable:true,get :()=>{return this._bB.cutoff;},set :(_Y82)=>{this._O82(HPF2EffectStruct._N82().cutoff,_Y82);this._jv1.forEach((_P82)=>{const cutoff=_P82.parameters.get("cutoff");cutoff.value=this._bB.cutoff;});}},gmlq:{enumerable:true,get :()=>{return this._bB.q;},set :(_Z82)=>{this._O82(HPF2EffectStruct._N82().q,_Z82);
this._jv1.forEach((_P82)=>{const q=_P82.parameters.get("q");q.value=this._bB.q;});}}});}HPF2EffectStruct._N82=()=>({bypass:_Ja1._N82().bypass,_qR1:{name:"cutoff",_T82:false,defaultValue:1500.0,minValue:10.0,maxValue:20000.0},q:{name:"q",_T82:false,defaultValue:1.5,minValue:1.0,maxValue:100.0},get cutoff(){this._qR1.maxValue=g_WebAudioContext?Math.min(g_WebAudioContext.sampleRate/2.0,this._qR1.maxValue):this._qR1.maxValue;this._qR1.defaultValue=Math.min(this._qR1.defaultValue,this._qR1.maxValue);return this._qR1;
}});function LPF2EffectStruct(_dt){_Ja1.call(this,_J82._K82.__82);Object.setPrototypeOf(this,_Ja1.prototype);this._M82(_dt,LPF2EffectStruct._N82());Object.defineProperties(this,{gmlcutoff:{enumerable:true,get :()=>{return this._bB.cutoff;},set :(_Y82)=>{this._O82(LPF2EffectStruct._N82().cutoff,_Y82);this._jv1.forEach((_P82)=>{const cutoff=_P82.parameters.get("cutoff");cutoff.value=this._bB.cutoff;});}},gmlq:{enumerable:true,get :()=>{return this._bB.q;},set :(_Z82)=>{this._O82(LPF2EffectStruct._N82().q,
_Z82);this._jv1.forEach((_P82)=>{const q=_P82.parameters.get("q");q.value=this._bB.q;});}}});}LPF2EffectStruct._N82=()=>({bypass:_Ja1._N82().bypass,_qR1:{name:"cutoff",_T82:false,defaultValue:500.0,minValue:10.0,maxValue:20000.0},q:{name:"q",_T82:false,defaultValue:1.5,minValue:1.0,maxValue:100.0},get cutoff(){this._qR1.maxValue=g_WebAudioContext?Math.min(g_WebAudioContext.sampleRate/2.0,this._qR1.maxValue):this._qR1.maxValue;this._qR1.defaultValue=Math.min(this._qR1.defaultValue,this._qR1.maxValue);
return this._qR1;}});function Reverb1EffectStruct(_dt){_Ja1.call(this,_J82._K82._092);Object.setPrototypeOf(this,_Ja1.prototype);this._M82(_dt,Reverb1EffectStruct._N82());Object.defineProperties(this,{gmlsize:{enumerable:true,get :()=>{return this._bB.size;},set :(_7d)=>{this._O82(Reverb1EffectStruct._N82().size,_7d);this._jv1.forEach((_P82)=>{const size=_P82.parameters.get("size");size.value=this._bB.size;});}},gmldamp:{enumerable:true,get :()=>{return this._bB.damp;},set :(_192)=>{this._O82(Reverb1EffectStruct._N82().damp,
_192);this._jv1.forEach((_P82)=>{const damp=_P82.parameters.get("damp");damp.value=this._bB.damp;});}},gmlmix:{enumerable:true,get :()=>{return this._bB.mix;},set :(_S82)=>{this._O82(Reverb1EffectStruct._N82().mix,_S82);this._jv1.forEach((_P82)=>{const mix=_P82.parameters.get("mix");mix.setTargetAtTime(this._bB.mix,0,_J82._Q82);});}}});}Reverb1EffectStruct._N82=()=>({bypass:_Ja1._N82().bypass,size:{name:"size",_T82:false,defaultValue:0.7,minValue:0.0,maxValue:1.0},damp:{name:"damp",_T82:false,defaultValue:0.1,
minValue:0.0,maxValue:1.0},mix:{name:"mix",_T82:false,defaultValue:0.35,minValue:0.0,maxValue:1.0}});function _292(_dt){_Ja1.call(this,_J82._K82._392);Object.setPrototypeOf(this,_Ja1.prototype);this._M82(_dt,_292._N82());Object.defineProperties(this,{gmlrate:{enumerable:true,get :()=>{return this._bB.rate;},set :(_492)=>{this._O82(_292._N82().rate,_492);this._jv1.forEach((_P82)=>{const rate=_P82.parameters.get("rate");rate.value=this._bB.rate;});}},gmlintensity:{enumerable:true,get :()=>{return this._bB.intensity;
},set :(_592)=>{this._O82(_292._N82().intensity,_592);this._jv1.forEach((_P82)=>{const intensity=_P82.parameters.get("intensity");intensity.setTargetAtTime(this._bB.intensity,0,_J82._Q82);});}},gmloffset:{enumerable:true,get :()=>{return this._bB.offset;},set :(_i51)=>{this._O82(_292._N82().offset,_i51);this._jv1.forEach((_P82)=>{const offset=_P82.parameters.get("offset");offset.value=this._bB.offset;});}},gmlshape:{enumerable:true,get :()=>{return this._bB.shape;},set :(_Po)=>{this._O82(_292._N82().shape,
_Po);this._jv1.forEach((_P82)=>{const shape=_P82.parameters.get("shape");shape.value=this._bB.shape;});}}});}_292._N82=()=>({bypass:_Ja1._N82().bypass,rate:{name:"rate",_T82:false,defaultValue:5.0,minValue:0.0,maxValue:20.0},intensity:{name:"intensity",_T82:false,defaultValue:1.0,minValue:0.0,maxValue:1.0},offset:{name:"offset",_T82:false,defaultValue:0.0,minValue:0.0,maxValue:1.0},shape:{name:"shape",_T82:true,defaultValue:0,minValue:0,maxValue:4}});function _y61(){this.__type="[AudioBus]";this.__yyIsGMLObject=true;
this._692=_792._892(this);this._Ia1=_792._992(this);this._692.connect(this._Ia1,0,0);this._692.connect(this._Ia1,1,1);this.bypass=false;this.gain=1.0;this.effects=Array(_y61._a92).fill(undefined);this._jv1=Array(_y61._a92).fill(undefined);this._2z1=new Proxy(this.effects,{set :(_ct,_b92,_Ln,_c92)=>{const _d92=parseInt(_b92);if(_y61._e92(_d92))this._f92(_d92,this._g92(_Ln));_ct[_b92]=_Ln;}});Object.defineProperties(this,{gmlbypass:{enumerable:true,get :()=>{return this.bypass;},set :(_iY1)=>{this.bypass=yyGetBool(_iY1);
const bypass=this._692.parameters.get("bypass");bypass.value=this.bypass;}},gmlgain:{enumerable:true,get :()=>{return this.gain;},set :(_l81)=>{this.gain=max(0.0,_l81);const gain=this._Ia1.parameters.get("gain");gain.setTargetAtTime(this.gain,0,_J82._Q82);}},gmleffects:{enumerable:true,get :()=>{return this._2z1;},set :(_h92)=>{}}});}_y61._a92=8;_y61.prototype._V71=function(_vj,_i92,_j92){_vj.connect(this._692,_i92,_j92);};_y61.prototype._A61=function(_Ae1,_i92,_j92){this._Ia1.connect(_Ae1,_i92,_j92);};
_y61.prototype._k92=function(_l92){const _jv1=this._jv1.slice(_l92+1,_y61._a92);const _m92=_jv1.find((_P82)=>_P82!==undefined);return _m92??this._Ia1;};_y61.prototype._n92=function(_l92){const _jv1=this._jv1.slice(0,_l92);const _o92=_jv1.findLast((_P82)=>_P82!==undefined);return _o92??this._692;};_y61.prototype._f92=function(_l92,_p92){const _q92=this._jv1[_l92];if(_q92===undefined&&_p92===undefined)return;const _o92=this._n92(_l92);const _m92=this._k92(_l92);if(_q92!==undefined){_o92.disconnect(_q92);_q92.disconnect();
this.effects[_l92]._r92(_q92);}else {_o92.disconnect(_m92,0,0);}if(_p92===undefined){_o92.connect(_m92,0,0);}else {_o92.connect(_p92,0,0);_p92.connect(_m92,0,0);}this._jv1[_l92]=_p92;};_y61.prototype._g92=function(_Ln){if(_Ln instanceof _Ja1)return _Ln._s92();if(_Ln===undefined)return _Ln;throw new Error("Value must be Struct.AudioEffect or undefined");};_y61._e92=function(_FG){if(_FG>=0&&_FG<_y61._a92)return true;return false;};function _x61(){this._Ia1=new GainNode(g_WebAudioContext);this.bypass=false;this.gain=1.0;
this.effects=Array(_y61._a92).fill(undefined);this._2z1=new Proxy(this.effects,{set :(_ct,_b92,_Ln,_c92)=>{const _d92=parseInt(_b92);if(_y61._e92(_d92))_Ln=this._g92(_Ln);_ct[_b92]=_Ln;}});Object.defineProperties(this,{gmlbypass:{enumerable:true,get :()=>{return this.bypass;},set :(_iY1)=>{this.bypass=yyGetBool(_iY1);}},gmlgain:{enumerable:true,get :()=>{return this.gain;},set :(_l81)=>{this.gain=max(0.0,_l81);const gain=this._Ia1.gain;gain.setTargetAtTime(this.gain,0,_J82._Q82);}},gmleffects:{enumerable:true,
get :()=>{return this._2z1;},set :(_h92)=>{}}});}_x61.prototype._V71=function(_vj,_i92,_j92){_vj.connect(this._Ia1);};_x61.prototype._A61=function(_Ae1,_i92,_j92){this._Ia1.connect(_Ae1,_i92,_j92);};_x61.prototype._g92=function(_Ln){if(_Ln instanceof _Ja1)return _Ln;if(_Ln===undefined)return _Ln;throw new Error("Value must be Struct.AudioEffect or undefined");};function _J82(){}_J82._Q82=0.005;_J82._K82={_L82:0,_U82:1,_W82:2,_X82:3,__82:4,_092:5,_392:6};_J82._t92=function(_ld){switch(_ld){case _J82._K82._L82:return "bitcrusher-processor";
case _J82._K82._U82:return "delay-processor";case _J82._K82._W82:return "gain-processor";case _J82._K82._X82:return "hpf2-processor";case _J82._K82.__82:return "lpf2-processor";case _J82._K82._092:return "reverb1-processor";case _J82._K82._392:return "tremolo-processor";default :return null;}};function _Ja1(_ld){this.__type="[AudioEffect]";this.__yyIsGMLObject=true;this._jv1=[];this.type=_ld;this._bB={};Object.defineProperties(this,{gmltype:{enumerable:true,get :()=>{return this.type;},set :(_ld)=>{throw new Error("Unable to set AudioEffect.type - property is read-only");
}},gmlbypass:{enumerable:true,get :()=>{return this._bB.bypass;},set :(_iY1)=>{this._O82(_Ja1._N82().bypass,_iY1);this._jv1.forEach((_P82)=>{const bypass=_P82.parameters.get("bypass");bypass.value=this._bB.bypass;});}}});}_Ja1._Ka1=function(_ld,_dt){switch(_ld){case _J82._K82._L82:return new BitcrusherEffectStruct(_dt);case _J82._K82._U82:return new DelayEffectStruct(_dt);case _J82._K82._W82:return new GainEffectStruct(_dt);case _J82._K82._X82:return new HPF2EffectStruct(_dt);case _J82._K82.__82:return new LPF2EffectStruct(_dt);
case _J82._K82._092:return new Reverb1EffectStruct(_dt);case _J82._K82._392:return new _292(_dt);default :return null;}};_Ja1._N82=()=>({bypass:{name:"bypass",_T82:true,defaultValue:0,minValue:0,maxValue:1}});_Ja1.prototype._s92=function(){const _Al=_792._u92(this);this._jv1.push(_Al);return _Al;};_Ja1.prototype._M82=function(_dt,_v92){Object.values(_v92).forEach(_w92=>{const _re=_dt?(_dt["gml"+_w92.name]??_w92.defaultValue):_w92.defaultValue;this._O82(_w92,_re);});};_Ja1.prototype._O82=function(_w92,__3){
__3=clamp(__3,_w92.minValue,_w92.maxValue);if(_w92._T82===true)__3=~~__3;this._bB[_w92.name]=__3;};_Ja1.prototype._r92=function(_P82){const _zb=this._jv1.findIndex(_ch=>_ch===_P82);if(_zb!==-1){_792._x92(this._jv1[_zb]);this._jv1.splice(_zb,1);}};var _d81={_e81:0,_f81:1,_i81:2};function _D71(_O61){if(this._y92(_O61,"sound",this,"asset_index",true,yyGetInt32,_a61._z92))this._t81=_o71(this.asset_index);if(this._y92(_O61,"emitter",this,"emitter_index",true,yyGetInt32,_a61._z92)){this.type=_d81._i81;this.emitter=_m51[this.emitter_index];
}this._y92(_O61,"priority",this,"priority",true,yyGetReal,_a61._A92);this._y92(_O61,"loop",this,"loop",true,yyGetReal,_a61._B92);this._y92(_O61,"gain",this,"gain",true,yyGetReal,_a61._C92);this._y92(_O61,"offset",this,"offset",true,yyGetReal,_a61._D92);this._y92(_O61,"pitch",this,"pitch",true,yyGetReal,_a61._E92);if(typeof _O61.gmlposition==="object"&&this.type===undefined){this.type=_d81._f81;const position=_O61.position??_O61.gmlposition;this.position={};this._y92(position,"x",this.position,"x",
false,yyGetReal,0);this._y92(position,"y",this.position,"y",false,yyGetReal,0);this._y92(position,"z",this.position,"z",false,yyGetReal,0);this._y92(position,"falloff_ref",this.position,"falloff_ref",true,yyGetReal,0);this._y92(position,"falloff_max",this.position,"falloff_max",true,yyGetReal,1);this._y92(position,"falloff_factor",this.position,"falloff_factor",true,yyGetReal,1);}this.type??=_d81._e81;}_D71.prototype._y92=function(_F92,_G92,_H92,_I92,_J92,_K92,_mN){if(_F92[_G92]!==undefined){_H92[_I92]=_K92(_F92[_G92]);
return true;}if(_J92&&_F92["gml"+_G92]!==undefined){_H92[_I92]=_K92(_F92["gml"+_G92]);return true;}_H92[_I92]=_mN;return false;};_D71.prototype._b81=function(){if(this._t81==null){debug("Audio playback failed - invalid asset index: "+this.asset_index);return true;}if(!audio_group_is_loaded(this._t81.groupId)){debug(audio_get_name(this.asset_index)+": Audio Group "+this._t81.groupId+" is not loaded");return true;}if(!_d71()){debug("Audio playback failed. WebAudio Context suspended (user must interact with the page before audio can be played).");
return true;}if(this.type===_d81._i81&&this.emitter===undefined){debug("Attempting to play sound on inactive emitter: "+this.emitter_index);return true;}return false;};function _a61(){}_a61._z92=-1;_a61._D92=-1;_a61._A92=0;_a61._B92=false;_a61._C92=1;_a61._L92=0;_a61._E92=1;_a61._b61=function(_761){const _t81=_a61._M92(_761._T61);const _i31=_a61._N92(_761._T61);return _761.gain.get()*_t81.gain.get()*_i31.gain.get();};_a61._z71=function(_761){if(_761._S61==_a61._D92){const _t81=_a61._M92(_761._T61);return _t81.offset;
}return _761._S61;};_a61._y71=function(_761){const _t81=_a61._M92(_761._T61);const emitter=_a61._O92(_761._P61);return _761.pitch*_t81.pitch*emitter.pitch;};_a61._M92=function(_j81){const _t81=_o71(_j81);if(_t81!=null){return(()=>({gain:_t81.gain,offset:_t81._E61,pitch:_t81.pitch}))();}return(()=>({gain:_a61._C92,offset:_a61._L92,pitch:_a61._E92}))();};_a61._O92=function(_P92){if(_P92!=null){return(()=>({gain:_P92.gainnode.gain.value,pitch:_P92.pitch}))();}return(()=>({gain:_a61._C92,pitch:_a61._E92}
))();};_a61._N92=function(_K91){const _t81=_o71(_K91);if(_t81!=null){const _i31=_561[_t81.groupId];if(_i31!==undefined){return(()=>({gain:_i31.gain,}))();}}return(()=>({gain:_a61._C92,}))();};function _Q92(){this._jv1=[];this._d51=setInterval(()=>this.cleanup(),5000);}_Q92.prototype._892=function(_R92){const _S92=g_WebAudioContext.destination.channelCount;const _Al=new AudioWorkletNode(g_WebAudioContext,"audio-bus-input",{numberOfInputs:1,numberOfOutputs:2,outputChannelCount:[_S92,_S92],channelCount:_S92,
channelCountMode:"explicit"});this._jv1.push({_T92:new WeakRef(_R92),_Al:_Al});return _Al;};_Q92.prototype._992=function(_R92){const _S92=g_WebAudioContext.destination.channelCount;const _Al=new AudioWorkletNode(g_WebAudioContext,"audio-bus-output",{numberOfInputs:2,numberOfOutputs:1,outputChannelCount:[_S92],channelCount:_S92,channelCountMode:"explicit"});this._jv1.push({_T92:new WeakRef(_R92),_Al:_Al});return _Al;};_Q92.prototype._u92=function(_R92){const _U92=_J82._t92(_R92.type);const _S92=g_WebAudioContext.destination.channelCount;
const _Al=new AudioWorkletNode(g_WebAudioContext,_U92,{numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[_S92],parameterData:_R92._bB,channelCount:_S92,channelCountMode:"explicit"});this._jv1.push({_T92:new WeakRef(_R92),_Al:_Al});return _Al;};_Q92.prototype.cleanup=function(){this._jv1=this._jv1.filter((_V92)=>{const _T92=_V92._T92.deref();if(_T92===undefined){_V92._Al.port.postMessage("kill");return false;}return true;});};_Q92.prototype._x92=function(_P82){const _zb=this._jv1.findIndex(_V92=>_V92._Al===_P82);
if(_zb!==-1){this._jv1[_zb]._Al.port.postMessage("kill");this._jv1.splice(_zb,1);}};var _792=new _Q92();_oh:var spine=(()=>{var _W92=Object.defineProperty;var _X92=(target)=>_W92(target,"__esModule",{value:true});var _Y92=(target,all)=>{_X92(target);for(var name in all)_W92(target,name,{get :all[name],enumerable:true});};var _Z92={};_Y92(_Z92,{__92:()=>__92,_0a2:()=>_0a2,_A3:()=>_A3,_1a2:()=>_1a2,_z3:()=>_z3,_2a2:()=>_2a2,_C5:()=>_C5,_3a2:()=>_3a2,_4a2:()=>_4a2,_5a2:()=>_5a2,_ba:()=>_ba,_6a2:()=>_6a2,_7a2:()=>_7a2,
_q9:()=>_q9,_8a2:()=>_8a2,_T9:()=>_T9,_H4:()=>_H4,_9a2:()=>_9a2,_aa2:()=>_aa2,_ba2:()=>_ba2,_ca2:()=>_ca2,_da2:()=>_da2,_ea2:()=>_ea2,_fa2:()=>_fa2,_ga2:()=>_ga2,Event:()=>Event,_ha2:()=>_ha2,_ia2:()=>_ia2,_Y7:()=>_Y7,_ja2:()=>_ja2,_ka2:()=>_ka2,_la2:()=>_la2,_ma2:()=>_ma2,_na2:()=>_na2,_oa2:()=>_oa2,_pa2:()=>_pa2,_qa2:()=>_qa2,_ra2:()=>_ra2,_sa2:()=>_sa2,_ta2:()=>_ta2,_ua2:()=>_ua2,_va2:()=>_va2,_o9:()=>_o9,_wa2:()=>_wa2,_xa2:()=>_xa2,_ya2:()=>_ya2,_za2:()=>_za2,_Aa2:()=>_Aa2,_Ba2:()=>_Ba2,_Ca2:()=>_Ca2,
_Da2:()=>_Da2,_Ea2:()=>_Ea2,_Fa2:()=>_Fa2,_Ga2:()=>_Ga2,_Ha2:()=>_Ha2,_Ia2:()=>_Ia2,_Ja2:()=>_Ja2,_Ka2:()=>_Ka2,_La2:()=>_La2,_Ma2:()=>_Ma2,_m9:()=>_m9,_Na2:()=>_Na2,_Oa2:()=>_Oa2,_Pa2:()=>_Pa2,_Qa2:()=>_Qa2,_Ra2:()=>_Ra2,_Sa2:()=>_Sa2,_Ta2:()=>_Ta2,_Ua2:()=>_Ua2,_Va2:()=>_Va2,_Wa2:()=>_Wa2,_y3:()=>_y3,_Xa2:()=>_Xa2,_N3:()=>_N3,_U9:()=>_U9,_Ya2:()=>_Ya2,__8:()=>__8,_J7:()=>_J7,_Za2:()=>_Za2,__a2:()=>__a2,_0b2:()=>_0b2,_1b2:()=>_1b2,_2b2:()=>_2b2,_3b2:()=>_3b2,_NU1:()=>_NU1,_y5:()=>_y5,_75:()=>_75,
_l5:()=>_l5,_b5:()=>_b5,_4b2:()=>_4b2,_e5:()=>_e5,_5b2:()=>_5b2,_6b2:()=>_6b2,_7b2:()=>_7b2,_8b2:()=>_8b2,_9b2:()=>_9b2,_ab2:()=>_ab2,_bb2:()=>_bb2,_cb2:()=>_cb2,_db2:()=>_db2,_eb2:()=>_eb2,_fb2:()=>_fb2,_gb2:()=>_gb2,_hb2:()=>_hb2,_ib2:()=>_ib2,_jb2:()=>_jb2});var _sa2=class {constructor(){this._qh=new Array();}add(value){let _kb2=this._kb2(value);this._qh[value|0]=value|0;return !_kb2;}_kb2(value){return this._qh[value|0]!=void 0;}remove(value){this._qh[value|0]=void 0;}clear(){this._qh.length=0;}};var _2b2=class {
constructor(){this._lb2={};this.size=0;}add(value){let _kb2=this._lb2[value];this._lb2[value]=true;if(!_kb2){this.size++;return true;}return false;}_mb2(values){let _nb2=this.size;for(var i=0,_I6=values.length;i<_I6;i++)this.add(values[i]);return _nb2!=this.size;}_kb2(value){return this._lb2[value];}clear(){this._lb2={};this.size=0;}};var _ob2=class {constructor(_D4=0,_E4=0,_F4=0,_G4=0){this._D4=_D4;this._E4=_E4;this._F4=_F4;this._G4=_G4;}set(_D4,_E4,_F4,_G4){this._D4=_D4;this._E4=_E4;this._F4=_F4;this._G4=_G4;
return this.clamp();}_I5(c){this._D4=c._D4;this._E4=c._E4;this._F4=c._F4;this._G4=c._G4;return this;}_pb2(_qb2){_qb2=_qb2.charAt(0)=="#"?_qb2.substr(1):_qb2;this._D4=parseInt(_qb2.substr(0,2),16)/255;this._E4=parseInt(_qb2.substr(2,2),16)/255;this._F4=parseInt(_qb2.substr(4,2),16)/255;this._G4=_qb2.length!=8?1:parseInt(_qb2.substr(6,2),16)/255;return this;}add(_D4,_E4,_F4,_G4){this._D4+=_D4;this._E4+=_E4;this._F4+=_F4;this._G4+=_G4;return this.clamp();}clamp(){if(this._D4<0)this._D4=0;else if(this._D4>1)this._D4=1;
if(this._E4<0)this._E4=0;else if(this._E4>1)this._E4=1;if(this._F4<0)this._F4=0;else if(this._F4>1)this._F4=1;if(this._G4<0)this._G4=0;else if(this._G4>1)this._G4=1;return this;}static _rb2(color,value){color._D4=((value&4278190080)>>>24)/255;color._E4=((value&16711680)>>>16)/255;color._F4=((value&65280)>>>8)/255;color._G4=(value&255)/255;}static _sb2(color,value){color._D4=((value&16711680)>>>16)/255;color._E4=((value&65280)>>>8)/255;color._F4=(value&255)/255;}static _902(_qb2){return new _ob2()._pb2(_qb2);
}};var _H4=_ob2;_H4._tb2=new _ob2(1,1,1,1);_H4._ub2=new _ob2(1,0,0,1);_H4._vb2=new _ob2(0,1,0,1);_H4._wb2=new _ob2(0,0,1,1);_H4._xb2=new _ob2(1,0,1,1);var _yb2=class {static clamp(value,min,max){if(value<min)return min;if(value>max)return max;return value;}static _zb2(_u5){return Math.cos(_u5*_yb2._Ab2);}static _Bb2(_u5){return Math.sin(_u5*_yb2._Ab2);}static _Cb2(value){return value>0?1:value<0?-1:0;}static _i02(x){return x>0?Math.floor(x):Math.ceil(x);}static _Db2(x){let y=Math.pow(Math.abs(x),1/3);return x<0?-y:y;}
static _Eb2(min,max){return _yb2._Fb2(min,max,(min+max)*0.5);}static _Fb2(min,max,mode){let _m5=Math.random();let _tm=max-min;if(_m5<=(mode-min)/_tm)return min+Math.sqrt(_m5*_tm*(mode-min));return max-Math.sqrt((1-_m5)*_tm*(max-mode));}static _RS1(value){return value&&(value&value-1)===0;}};var _va2=_yb2;_va2.PI=3.1415927;_va2._Gb2=_yb2.PI*2;_va2._Hb2=180/_yb2.PI;_va2._Ib2=_yb2._Hb2;_va2._Jb2=_yb2.PI/180;_va2._Ab2=_yb2._Jb2;var _ta2=class {apply(start,end,_G4){return start+(end-start)*this._Kb2(_G4);}};var _Ha2=class extends _ta2{
constructor(power){super();this.power=2;this.power=power;}_Kb2(_G4){if(_G4<=0.5)return Math.pow(_G4*2,this.power)/2;return Math.pow((_G4-1)*2,this.power)/(this.power%2==0?-2:2)+1;}};var _Ia2=class extends _Ha2{constructor(power){super(power);}_Kb2(_G4){return Math.pow(_G4-1,this.power)*(this.power%2==0?-1:1)+1;}};var _Lb2=class {static _Mb2(source,_Nb2,_ea,_Ob2,_Pb2){for(let i=_Nb2,_17=_Ob2;i<_Nb2+_Pb2;i++,_17++){_ea[_17]=source[i];}}static _Qb2(_qh,_Rb2,_Sb2,value){for(let i=_Rb2;i<_Sb2;i++)_qh[i]=value;}static _Tb2(_qh,
size,value=0){let _nb2=_qh.length;if(_nb2==size)return _qh;_qh.length=size;if(_nb2<size){for(let i=_nb2;i<size;i++)_qh[i]=value;}return _qh;}static _Ub2(_qh,size,value=0){if(_qh.length>=size)return _qh;return _Lb2._Tb2(_qh,size,value);}static _Vb2(size,defaultValue){let _qh=new Array(size);for(let i=0;i<size;i++)_qh[i]=defaultValue;return _qh;}static _Wb2(size){if(_Lb2._Xb2)return new Float32Array(size);else {let _qh=new Array(size);for(let i=0;i<_qh.length;i++)_qh[i]=0;return _qh;}}static _Yb2(size){if(_Lb2._Xb2)return new Int16Array(size);
else {let _qh=new Array(size);for(let i=0;i<_qh.length;i++)_qh[i]=0;return _qh;}}static _Zb2(_qh){return _Lb2._Xb2?new Float32Array(_qh):_qh;}static __b2(value){return _Lb2._Xb2?Math._0c2(value):value;}static _1c2(alpha,_dP){}static _kb2(_qh,_pd,identity=true){for(var i=0;i<_qh.length;i++)if(_qh[i]==_pd)return true;return false;}static _2c2(type,name){return type[name[0].toUpperCase()+name.slice(1)];}};var _gb2=_Lb2;_gb2._Xb2=typeof Float32Array!=="undefined";var _da2=class {static _3c2(skeleton){for(let i=0;i<skeleton.bones.length;
i++){let bone=skeleton.bones[i];console.log(bone.data.name+", "+bone._G4+", "+bone._F4+", "+bone.c+", "+bone._tm+", "+bone._v7+", "+bone._w7);}}};var _Fa2=class {constructor(_4c2){this._5c2=new Array();this._4c2=_4c2;}_6c2(){return this._5c2.length>0?this._5c2.pop():this._4c2();}_7c2(_al){if(_al._Jk1)_al._Jk1();this._5c2.push(_al);}_8c2(_5c2){for(let i=0;i<_5c2.length;i++)this._7c2(_5c2[i]);}clear(){this._5c2.length=0;}};var _hb2=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);}_9c2(){let _0j=this.length();if(_0j!=0){this.x/=_0j;this.y/=_0j;}return this;}};var _5b2=class {constructor(){this._ac2=0.064;this._bc2=0;this._ti=0;this._Gk1=0;this._cc2=Date.now()/1e3;this._36=0;this._dc2=0;}_a6(){let now=Date.now()/1e3;this._ti=now-this._cc2;this._dc2+=this._ti;this._Gk1+=this._ti;if(this._ti>this._ac2)this._ti=this._ac2;this._cc2=now;this._36++;if(this._dc2>1){this._bc2=this._36/this._dc2;this._dc2=0;this._36=0;
}}};var _jb2=class {constructor(_ec2=32){this._fc2=0;this._Be=0;this.mean=0;this._cc1=true;this.values=new Array(_ec2);}_gc2(){return this._fc2>=this.values.length;}_hc2(value){if(this._fc2<this.values.length)this._fc2++;this.values[this._Be++]=value;if(this._Be>this.values.length-1)this._Be=0;this._cc1=true;}_ic2(){if(this._gc2()){if(this._cc1){let mean=0;for(let i=0;i<this.values.length;i++)mean+=this.values[i];this.mean=mean/this.values.length;this._cc1=false;}return this.mean;}return 0;}};var _3a2=class {
constructor(name){if(!name)throw new Error("name cannot be null.");this.name=name;}};var _jc2=class extends _3a2{constructor(name){super(name);this.id=_jc2._kc2++;this._S9=0;this._lc2=this;}_M9(slot,start,_E8,_mc2,offset,_La){_E8=offset+(_E8>>1)*_La;let skeleton=slot.bone.skeleton;let _nc2=slot.deform;let vertices=this.vertices;let bones=this.bones;if(!bones){if(_nc2.length>0)vertices=_nc2;let bone=slot.bone;let x=bone._v7;let y=bone._w7;let _G4=bone._G4,_F4=bone._F4,c=bone.c,_tm=bone._tm;for(let _p5=start,w=offset;
w<_E8;_p5+=2,w+=_La){let _Yo1=vertices[_p5],_Zo1=vertices[_p5+1];_mc2[w]=_Yo1*_G4+_Zo1*_F4+x;_mc2[w+1]=_Yo1*c+_Zo1*_tm+y;}return;}let _n5=0,_oc2=0;for(let i=0;i<start;i+=2){let _I6=bones[_n5];_n5+=_I6+1;_oc2+=_I6;}let _pc2=skeleton.bones;if(_nc2.length==0){for(let w=offset,_F4=_oc2*3;w<_E8;w+=_La){let _qc2=0,_rc2=0;let _I6=bones[_n5++];_I6+=_n5;for(;_n5<_I6;_n5++,_F4+=3){let bone=_pc2[bones[_n5]];let _Yo1=vertices[_F4],_Zo1=vertices[_F4+1],_oD1=vertices[_F4+2];_qc2+=(_Yo1*bone._G4+_Zo1*bone._F4+bone._v7)*_oD1;
_rc2+=(_Yo1*bone.c+_Zo1*bone._tm+bone._w7)*_oD1;}_mc2[w]=_qc2;_mc2[w+1]=_rc2;}}else {let deform=_nc2;for(let w=offset,_F4=_oc2*3,_SC=_oc2<<1;w<_E8;w+=_La){let _qc2=0,_rc2=0;let _I6=bones[_n5++];_I6+=_n5;for(;_n5<_I6;_n5++,_F4+=3,_SC+=2){let bone=_pc2[bones[_n5]];let _Yo1=vertices[_F4]+deform[_SC],_Zo1=vertices[_F4+1]+deform[_SC+1],_oD1=vertices[_F4+2];_qc2+=(_Yo1*bone._G4+_Zo1*bone._F4+bone._v7)*_oD1;_rc2+=(_Yo1*bone.c+_Zo1*bone._tm+bone._w7)*_oD1;}_mc2[w]=_qc2;_mc2[w+1]=_rc2;}}}_sc2(attachment){if(this.bones){
attachment.bones=new Array(this.bones.length);_gb2._Mb2(this.bones,0,attachment.bones,0,this.bones.length);}else attachment.bones=null;if(this.vertices){attachment.vertices=_gb2._Wb2(this.vertices.length);_gb2._Mb2(this.vertices,0,attachment.vertices,0,this.vertices.length);}else attachment.vertices=null;attachment._S9=this._S9;attachment._lc2=this._lc2;}};var _ib2=_jc2;_ib2._kc2=0;var _0a2=class {constructor(name,_76,duration){if(!name)throw new Error("name cannot be null.");this.name=name;this._tc2(_76);
this.duration=duration;}_tc2(_76){if(!_76)throw new Error("timelines cannot be null.");this._76=_76;this._uc2=new _2b2();for(var i=0;i<_76.length;i++)this._uc2._mb2(_76[i]._vc2());}_wc2(ids){for(let i=0;i<ids.length;i++)if(this._uc2._kb2(ids[i]))return true;return false;}apply(skeleton,_cc2,time,loop,events,alpha,_dP,direction){if(!skeleton)throw new Error("skeleton cannot be null.");if(loop&&this.duration!=0){time%=this.duration;if(_cc2>0)_cc2%=this.duration;}let _76=this._76;for(let i=0,_I6=_76.length;i<_I6;
i++)_76[i].apply(skeleton,_cc2,time,events,alpha,_dP,direction);}};var _wa2;(function(_xc2){_xc2[_xc2["setup"]=0]="setup";_xc2[_xc2["first"]=1]="first";_xc2[_xc2["replace"]=2]="replace";_xc2[_xc2["add"]=3]="add";})(_wa2||(_wa2={}));var _xa2;(function(_yc2){_yc2[_yc2["mixIn"]=0]="mixIn";_yc2[_yc2["mixOut"]=1]="mixOut";})(_xa2||(_xa2={}));var _zc2={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 _6b2=class {constructor(_36,_Ac2){this._Ac2=_Ac2;this.frames=_gb2._Wb2(_36*this._Bc2());}_vc2(){return this._Ac2;}_Bc2(){return 1;}_Cc2(){return this.frames.length/this._Bc2();}_Dc2(){return this.frames[this.frames.length-this._Bc2()];}static _Ec2(frames,time){let _I6=frames.length;for(let i=1;i<_I6;i++)if(frames[i]>time)return i-1;return _I6-1;}static search(frames,time,step){let _I6=frames.length;for(let i=step;i<_I6;i+=step)if(frames[i]>time)return i-step;
return _I6-step;}};var _aa2=class extends _6b2{constructor(_36,_Fc2,_Ac2){super(_36,_Ac2);this._Gc2=_gb2._Wb2(_36+_Fc2*18);this._Gc2[_36-1]=1;}_Hc2(frame){this._Gc2[frame]=0;}_Ic2(frame){this._Gc2[frame]=1;}_Jc2(_Fc2){let size=this._Cc2()+_Fc2*18;if(this._Gc2.length>size){let _Kc2=_gb2._Wb2(size);_gb2._Mb2(this._Gc2,0,_Kc2,0,size);this._Gc2=_Kc2;}}_Lc2(_Mc2,frame,value,_fD,_Nc2,_Oc2,_Pc2,_Qc2,_Rc2,_gD,_Sc2){let _Gc2=this._Gc2;let i=this._Cc2()+_Mc2*18;if(value==0)_Gc2[frame]=2+i;let _Tc2=(_fD-_Oc2*2+_Qc2)*0.03,
_Uc2=(_Nc2-_Pc2*2+_Rc2)*0.03;let _Vc2=((_Oc2-_Qc2)*3-_fD+_gD)*6e-3,_Wc2=((_Pc2-_Rc2)*3-_Nc2+_Sc2)*6e-3;let _Xc2=_Tc2*2+_Vc2,_Yc2=_Uc2*2+_Wc2;let _fb=(_Oc2-_fD)*0.3+_Tc2+_Vc2*0.16666667,_gb=(_Pc2-_Nc2)*0.3+_Uc2+_Wc2*0.16666667;let x=_fD+_fb,y=_Nc2+_gb;for(let _I6=i+18;i<_I6;i+=2){_Gc2[i]=x;_Gc2[i+1]=y;_fb+=_Xc2;_gb+=_Yc2;_Xc2+=_Vc2;_Yc2+=_Wc2;x+=_fb;y+=_gb;}}_Zc2(time,_44,__c2,i){let _Gc2=this._Gc2;if(_Gc2[i]>time){let _N6=this.frames[_44],_O6=this.frames[_44+__c2];return _O6+(time-_N6)/(_Gc2[i]-_N6)*(_Gc2[i+1]-_O6);
}let _I6=i+18;for(i+=2;i<_I6;i+=2){if(_Gc2[i]>=time){let _N6=_Gc2[i-2],_O6=_Gc2[i-1];return _O6+(time-_N6)/(_Gc2[i]-_N6)*(_Gc2[i+1]-_O6);}}_44+=this._Bc2();let x=_Gc2[_I6-2],y=_Gc2[_I6-1];return y+(time-x)/(this.frames[_44]-x)*(this.frames[_44+__c2]-y);}};var _ba2=class extends _aa2{constructor(_36,_Fc2,_0d2){super(_36,_Fc2,[_0d2]);}_Bc2(){return 2;}_1d2(frame,time,value){frame<<=1;this.frames[frame]=time;this.frames[frame+1]=value;}_2d2(time){let frames=this.frames;let i=frames.length-2;for(let _7F=2;_7F<=i;
_7F+=2){if(frames[_7F]>time){i=_7F-2;break;}}let _3d2=this._Gc2[i>>1];switch(_3d2){case 0:let _4d2=frames[i],value=frames[i+1];return value+(time-_4d2)/(frames[i+2]-_4d2)*(frames[i+2+1]-value);case 1:return frames[i+1];}return this._Zc2(time,i,1,_3d2-2);}};var _ca2=class extends _aa2{constructor(_36,_Fc2,_5d2,_6d2){super(_36,_Fc2,[_5d2,_6d2]);}_Bc2(){return 3;}_1d2(frame,time,_Nc2,_Sc2){frame*=3;this.frames[frame]=time;this.frames[frame+1]=_Nc2;this.frames[frame+2]=_Sc2;}};var _Oa2=class extends _ba2{constructor(_36,
_Fc2,_7d2){super(_36,_Fc2,_zc2.rotate+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:bone.rotation=bone.data.rotation;return;case 1:bone.rotation+=(bone.data.rotation-bone.rotation)*alpha;}return;}let _D4=this._2d2(time);switch(_dP){case 0:bone.rotation=bone.data.rotation+_D4*alpha;break;case 1:case 2:_D4+=bone.data.rotation-bone.rotation;case 3:bone.rotation+=_D4*alpha;
}}};var _cb2=class extends _ca2{constructor(_36,_Fc2,_7d2){super(_36,_Fc2,_zc2.x+"|"+_7d2,_zc2.y+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){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=_6b2.search(frames,time,3);let _3d2=this._Gc2[i/3];switch(_3d2){
case 0:let _4d2=frames[i];x=frames[i+1];y=frames[i+2];let _Y6=(time-_4d2)/(frames[i+3]-_4d2);x+=(frames[i+3+1]-x)*_Y6;y+=(frames[i+3+2]-y)*_Y6;break;case 1:x=frames[i+1];y=frames[i+2];break;default :x=this._Zc2(time,i,1,_3d2-2);y=this._Zc2(time,i,2,_3d2+18-2);}switch(_dP){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 _db2=class extends _ba2{constructor(_36,
_Fc2,_7d2){super(_36,_Fc2,_zc2.x+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:bone.x=bone.data.x;return;case 1:bone.x+=(bone.data.x-bone.x)*alpha;}return;}let x=this._2d2(time);switch(_dP){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 _eb2=class extends _ba2{constructor(_36,
_Fc2,_7d2){super(_36,_Fc2,_zc2.y+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:bone.y=bone.data.y;return;case 1:bone.y+=(bone.data.y-bone.y)*alpha;}return;}let y=this._2d2(time);switch(_dP){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 _Ra2=class extends _ca2{constructor(_36,
_Fc2,_7d2){super(_36,_Fc2,_zc2.scaleX+"|"+_7d2,_zc2.scaleY+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){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=_6b2.search(frames,time,3);let _3d2=this._Gc2[i/3];
switch(_3d2){case 0:let _4d2=frames[i];x=frames[i+1];y=frames[i+2];let _Y6=(time-_4d2)/(frames[i+3]-_4d2);x+=(frames[i+3+1]-x)*_Y6;y+=(frames[i+3+2]-y)*_Y6;break;case 1:x=frames[i+1];y=frames[i+2];break;default :x=this._Zc2(time,i,1,_3d2-2);y=this._Zc2(time,i,2,_3d2+18-2);}x*=bone.data.scaleX;y*=bone.data.scaleY;if(alpha==1){if(_dP==3){bone.scaleX+=x-bone.data.scaleX;bone.scaleY+=y-bone.data.scaleY;}else {bone.scaleX=x;bone.scaleY=y;}}else {let _FC1=0,_GC1=0;if(direction==1){switch(_dP){case 0:_FC1=bone.data.scaleX;
_GC1=bone.data.scaleY;bone.scaleX=_FC1+(Math.abs(x)*_va2._Cb2(_FC1)-_FC1)*alpha;bone.scaleY=_GC1+(Math.abs(y)*_va2._Cb2(_GC1)-_GC1)*alpha;break;case 1:case 2:_FC1=bone.scaleX;_GC1=bone.scaleY;bone.scaleX=_FC1+(Math.abs(x)*_va2._Cb2(_FC1)-_FC1)*alpha;bone.scaleY=_GC1+(Math.abs(y)*_va2._Cb2(_GC1)-_GC1)*alpha;break;case 3:bone.scaleX=(x-bone.data.scaleX)*alpha;bone.scaleY=(y-bone.data.scaleY)*alpha;}}else {switch(_dP){case 0:_FC1=Math.abs(bone.data.scaleX)*_va2._Cb2(x);_GC1=Math.abs(bone.data.scaleY)*_va2._Cb2(y);
bone.scaleX=_FC1+(x-_FC1)*alpha;bone.scaleY=_GC1+(y-_GC1)*alpha;break;case 1:case 2:_FC1=Math.abs(bone.scaleX)*_va2._Cb2(x);_GC1=Math.abs(bone.scaleY)*_va2._Cb2(y);bone.scaleX=_FC1+(x-_FC1)*alpha;bone.scaleY=_GC1+(y-_GC1)*alpha;break;case 3:bone.scaleX+=(x-bone.data.scaleX)*alpha;bone.scaleY+=(y-bone.data.scaleY)*alpha;}}}}};var _Sa2=class extends _ba2{constructor(_36,_Fc2,_7d2){super(_36,_Fc2,_zc2.scaleX+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];
if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:bone.scaleX=bone.data.scaleX;return;case 1:bone.scaleX+=(bone.data.scaleX-bone.scaleX)*alpha;}return;}let x=this._2d2(time)*bone.data.scaleX;if(alpha==1){if(_dP==3)bone.scaleX+=x-bone.data.scaleX;else bone.scaleX=x;}else {let _FC1=0;if(direction==1){switch(_dP){case 0:_FC1=bone.data.scaleX;bone.scaleX=_FC1+(Math.abs(x)*_va2._Cb2(_FC1)-_FC1)*alpha;break;case 1:case 2:_FC1=bone.scaleX;bone.scaleX=_FC1+(Math.abs(x)*_va2._Cb2(_FC1)-_FC1)*alpha;
break;case 3:bone.scaleX=(x-bone.data.scaleX)*alpha;}}else {switch(_dP){case 0:_FC1=Math.abs(bone.data.scaleX)*_va2._Cb2(x);bone.scaleX=_FC1+(x-_FC1)*alpha;break;case 1:case 2:_FC1=Math.abs(bone.scaleX)*_va2._Cb2(x);bone.scaleX=_FC1+(x-_FC1)*alpha;break;case 3:bone.scaleX+=(x-bone.data.scaleX)*alpha;}}}}};var _Ta2=class extends _ba2{constructor(_36,_Fc2,_7d2){super(_36,_Fc2,_zc2.scaleY+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];
if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:bone.scaleY=bone.data.scaleY;return;case 1:bone.scaleY+=(bone.data.scaleY-bone.scaleY)*alpha;}return;}let y=this._2d2(time)*bone.data.scaleY;if(alpha==1){if(_dP==3)bone.scaleY+=y-bone.data.scaleY;else bone.scaleY=y;}else {let _GC1=0;if(direction==1){switch(_dP){case 0:_GC1=bone.data.scaleY;bone.scaleY=_GC1+(Math.abs(y)*_va2._Cb2(_GC1)-_GC1)*alpha;break;case 1:case 2:_GC1=bone.scaleY;bone.scaleY=_GC1+(Math.abs(y)*_va2._Cb2(_GC1)-_GC1)*alpha;
break;case 3:bone.scaleY=(y-bone.data.scaleY)*alpha;}}else {switch(_dP){case 0:_GC1=Math.abs(bone.data.scaleY)*_va2._Cb2(y);bone.scaleY=_GC1+(y-_GC1)*alpha;break;case 1:case 2:_GC1=Math.abs(bone.scaleY)*_va2._Cb2(y);bone.scaleY=_GC1+(y-_GC1)*alpha;break;case 3:bone.scaleY+=(y-bone.data.scaleY)*alpha;}}}}};var _Ua2=class extends _ca2{constructor(_36,_Fc2,_7d2){super(_36,_Fc2,_zc2.shearX+"|"+_7d2,_zc2.shearY+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];
if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){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=_6b2.search(frames,time,3);let _3d2=this._Gc2[i/3];switch(_3d2){case 0:let _4d2=frames[i];x=frames[i+1];y=frames[i+2];let _Y6=(time-_4d2)/(frames[i+3]-_4d2);x+=(frames[i+3+1]-x)*_Y6;y+=(frames[i+3+2]-y)*_Y6;break;case 1:x=frames[i+1];
y=frames[i+2];break;default :x=this._Zc2(time,i,1,_3d2-2);y=this._Zc2(time,i,2,_3d2+18-2);}switch(_dP){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 _Va2=class extends _ba2{constructor(_36,_Fc2,_7d2){super(_36,_Fc2,_zc2.shearX+"|"+_7d2);this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,
events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:bone.shearX=bone.data.shearX;return;case 1:bone.shearX+=(bone.data.shearX-bone.shearX)*alpha;}return;}let x=this._2d2(time);switch(_dP){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 _Wa2=class extends _ba2{constructor(_36,_Fc2,_7d2){super(_36,_Fc2,_zc2.shearY+"|"+_7d2);
this._7d2=0;this._7d2=_7d2;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let bone=skeleton.bones[this._7d2];if(!bone.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:bone.shearY=bone.data.shearY;return;case 1:bone.shearY+=(bone.data.shearY-bone.shearY)*alpha;}return;}let y=this._2d2(time);switch(_dP){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 _La2=class extends _aa2{
constructor(_36,_Fc2,_x4){super(_36,_Fc2,[_zc2.rgb+"|"+_x4,_zc2.alpha+"|"+_x4]);this._x4=0;this._x4=_x4;}_Bc2(){return 5;}_1d2(frame,time,_D4,_E4,_F4,_G4){frame*=5;this.frames[frame]=time;this.frames[frame+1]=_D4;this.frames[frame+2]=_E4;this.frames[frame+3]=_F4;this.frames[frame+4]=_G4;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let slot=skeleton.slots[this._x4];if(!slot.bone.active)return;let frames=this.frames;let color=slot.color;if(time<frames[0]){let setup=slot.data.color;switch(_dP){
case 0:color._I5(setup);return;case 1:color.add((setup._D4-color._D4)*alpha,(setup._E4-color._E4)*alpha,(setup._F4-color._F4)*alpha,(setup._G4-color._G4)*alpha);}return;}let _D4=0,_E4=0,_F4=0,_G4=0;let i=_6b2.search(frames,time,5);let _3d2=this._Gc2[i/5];switch(_3d2){case 0:let _4d2=frames[i];_D4=frames[i+1];_E4=frames[i+2];_F4=frames[i+3];_G4=frames[i+4];let _Y6=(time-_4d2)/(frames[i+5]-_4d2);_D4+=(frames[i+5+1]-_D4)*_Y6;_E4+=(frames[i+5+2]-_E4)*_Y6;_F4+=(frames[i+5+3]-_F4)*_Y6;_G4+=(frames[i+5+4]-_G4)*_Y6;
break;case 1:_D4=frames[i+1];_E4=frames[i+2];_F4=frames[i+3];_G4=frames[i+4];break;default :_D4=this._Zc2(time,i,1,_3d2-2);_E4=this._Zc2(time,i,2,_3d2+18-2);_F4=this._Zc2(time,i,3,_3d2+18*2-2);_G4=this._Zc2(time,i,4,_3d2+18*3-2);}if(alpha==1)color.set(_D4,_E4,_F4,_G4);else {if(_dP==0)color._I5(slot.data.color);color.add((_D4-color._D4)*alpha,(_E4-color._E4)*alpha,(_F4-color._F4)*alpha,(_G4-color._G4)*alpha);}}};var _Ma2=class extends _aa2{constructor(_36,_Fc2,_x4){super(_36,_Fc2,[_zc2.rgb+"|"+_x4]);this._x4=0;
this._x4=_x4;}_Bc2(){return 4;}_1d2(frame,time,_D4,_E4,_F4){frame<<=2;this.frames[frame]=time;this.frames[frame+1]=_D4;this.frames[frame+2]=_E4;this.frames[frame+3]=_F4;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let slot=skeleton.slots[this._x4];if(!slot.bone.active)return;let frames=this.frames;let color=slot.color;if(time<frames[0]){let setup=slot.data.color;switch(_dP){case 0:color._D4=setup._D4;color._E4=setup._E4;color._F4=setup._F4;return;case 1:color._D4+=(setup._D4-color._D4)*alpha;color._E4+=(setup._E4-color._E4)*alpha;
color._F4+=(setup._F4-color._F4)*alpha;}return;}let _D4=0,_E4=0,_F4=0;let i=_6b2.search(frames,time,4);let _3d2=this._Gc2[i>>2];switch(_3d2){case 0:let _4d2=frames[i];_D4=frames[i+1];_E4=frames[i+2];_F4=frames[i+3];let _Y6=(time-_4d2)/(frames[i+4]-_4d2);_D4+=(frames[i+4+1]-_D4)*_Y6;_E4+=(frames[i+4+2]-_E4)*_Y6;_F4+=(frames[i+4+3]-_F4)*_Y6;break;case 1:_D4=frames[i+1];_E4=frames[i+2];_F4=frames[i+3];break;default :_D4=this._Zc2(time,i,1,_3d2-2);_E4=this._Zc2(time,i,2,_3d2+18-2);_F4=this._Zc2(time,i,3,_3d2+18*2-2);
}if(alpha==1){color._D4=_D4;color._E4=_E4;color._F4=_F4;}else {if(_dP==0){let setup=slot.data.color;color._D4=setup._D4;color._E4=setup._E4;color._F4=setup._F4;}color._D4+=(_D4-color._D4)*alpha;color._E4+=(_E4-color._E4)*alpha;color._F4+=(_F4-color._F4)*alpha;}}};var __92=class extends _ba2{constructor(_36,_Fc2,_x4){super(_36,_Fc2,_zc2.alpha+"|"+_x4);this._x4=0;this._x4=_x4;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let slot=skeleton.slots[this._x4];if(!slot.bone.active)return;let color=slot.color;
if(time<this.frames[0]){let setup=slot.data.color;switch(_dP){case 0:color._G4=setup._G4;return;case 1:color._G4+=(setup._G4-color._G4)*alpha;}return;}let _G4=this._2d2(time);if(alpha==1)color._G4=_G4;else {if(_dP==0)color._G4=slot.data.color._G4;color._G4+=(_G4-color._G4)*alpha;}}};var _Ka2=class extends _aa2{constructor(_36,_Fc2,_x4){super(_36,_Fc2,[_zc2.rgb+"|"+_x4,_zc2.alpha+"|"+_x4,_zc2.rgb2+"|"+_x4]);this._x4=0;this._x4=_x4;}_Bc2(){return 8;}_1d2(frame,time,_D4,_E4,_F4,_G4,_jH,_lH,_Yh){frame<<=3;this.frames[frame]=time;
this.frames[frame+1]=_D4;this.frames[frame+2]=_E4;this.frames[frame+3]=_F4;this.frames[frame+4]=_G4;this.frames[frame+5]=_jH;this.frames[frame+6]=_lH;this.frames[frame+7]=_Yh;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let slot=skeleton.slots[this._x4];if(!slot.bone.active)return;let frames=this.frames;let light=slot.color,dark=slot._za;if(time<frames[0]){let _8d2=slot.data.color,_9d2=slot.data._za;switch(_dP){case 0:light._I5(_8d2);dark._D4=_9d2._D4;dark._E4=_9d2._E4;dark._F4=_9d2._F4;return;
case 1:light.add((_8d2._D4-light._D4)*alpha,(_8d2._E4-light._E4)*alpha,(_8d2._F4-light._F4)*alpha,(_8d2._G4-light._G4)*alpha);dark._D4+=(_9d2._D4-dark._D4)*alpha;dark._E4+=(_9d2._E4-dark._E4)*alpha;dark._F4+=(_9d2._F4-dark._F4)*alpha;}return;}let _D4=0,_E4=0,_F4=0,_G4=0,_jH=0,_lH=0,_Yh=0;let i=_6b2.search(frames,time,8);let _3d2=this._Gc2[i>>3];switch(_3d2){case 0:let _4d2=frames[i];_D4=frames[i+1];_E4=frames[i+2];_F4=frames[i+3];_G4=frames[i+4];_jH=frames[i+5];_lH=frames[i+6];_Yh=frames[i+7];let _Y6=(time-_4d2)/(frames[i+8]-_4d2);
_D4+=(frames[i+8+1]-_D4)*_Y6;_E4+=(frames[i+8+2]-_E4)*_Y6;_F4+=(frames[i+8+3]-_F4)*_Y6;_G4+=(frames[i+8+4]-_G4)*_Y6;_jH+=(frames[i+8+5]-_jH)*_Y6;_lH+=(frames[i+8+6]-_lH)*_Y6;_Yh+=(frames[i+8+7]-_Yh)*_Y6;break;case 1:_D4=frames[i+1];_E4=frames[i+2];_F4=frames[i+3];_G4=frames[i+4];_jH=frames[i+5];_lH=frames[i+6];_Yh=frames[i+7];break;default :_D4=this._Zc2(time,i,1,_3d2-2);_E4=this._Zc2(time,i,2,_3d2+18-2);_F4=this._Zc2(time,i,3,_3d2+18*2-2);_G4=this._Zc2(time,i,4,_3d2+18*3-2);_jH=this._Zc2(time,i,5,
_3d2+18*4-2);_lH=this._Zc2(time,i,6,_3d2+18*5-2);_Yh=this._Zc2(time,i,7,_3d2+18*6-2);}if(alpha==1){light.set(_D4,_E4,_F4,_G4);dark._D4=_jH;dark._E4=_lH;dark._F4=_Yh;}else {if(_dP==0){light._I5(slot.data.color);let _9d2=slot.data._za;dark._D4=_9d2._D4;dark._E4=_9d2._E4;dark._F4=_9d2._F4;}light.add((_D4-light._D4)*alpha,(_E4-light._E4)*alpha,(_F4-light._F4)*alpha,(_G4-light._G4)*alpha);dark._D4+=(_jH-dark._D4)*alpha;dark._E4+=(_lH-dark._E4)*alpha;dark._F4+=(_Yh-dark._F4)*alpha;}}};var _Ja2=class extends _aa2{
constructor(_36,_Fc2,_x4){super(_36,_Fc2,[_zc2.rgb+"|"+_x4,_zc2.rgb2+"|"+_x4]);this._x4=0;this._x4=_x4;}_Bc2(){return 7;}_1d2(frame,time,_D4,_E4,_F4,_jH,_lH,_Yh){frame*=7;this.frames[frame]=time;this.frames[frame+1]=_D4;this.frames[frame+2]=_E4;this.frames[frame+3]=_F4;this.frames[frame+4]=_jH;this.frames[frame+5]=_lH;this.frames[frame+6]=_Yh;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let slot=skeleton.slots[this._x4];if(!slot.bone.active)return;let frames=this.frames;let light=slot.color,
dark=slot._za;if(time<frames[0]){let _8d2=slot.data.color,_9d2=slot.data._za;switch(_dP){case 0:light._D4=_8d2._D4;light._E4=_8d2._E4;light._F4=_8d2._F4;dark._D4=_9d2._D4;dark._E4=_9d2._E4;dark._F4=_9d2._F4;return;case 1:light._D4+=(_8d2._D4-light._D4)*alpha;light._E4+=(_8d2._E4-light._E4)*alpha;light._F4+=(_8d2._F4-light._F4)*alpha;dark._D4+=(_9d2._D4-dark._D4)*alpha;dark._E4+=(_9d2._E4-dark._E4)*alpha;dark._F4+=(_9d2._F4-dark._F4)*alpha;}return;}let _D4=0,_E4=0,_F4=0,_G4=0,_jH=0,_lH=0,_Yh=0;let i=_6b2.search(frames,
time,7);let _3d2=this._Gc2[i/7];switch(_3d2){case 0:let _4d2=frames[i];_D4=frames[i+1];_E4=frames[i+2];_F4=frames[i+3];_jH=frames[i+4];_lH=frames[i+5];_Yh=frames[i+6];let _Y6=(time-_4d2)/(frames[i+7]-_4d2);_D4+=(frames[i+7+1]-_D4)*_Y6;_E4+=(frames[i+7+2]-_E4)*_Y6;_F4+=(frames[i+7+3]-_F4)*_Y6;_jH+=(frames[i+7+4]-_jH)*_Y6;_lH+=(frames[i+7+5]-_lH)*_Y6;_Yh+=(frames[i+7+6]-_Yh)*_Y6;break;case 1:_D4=frames[i+1];_E4=frames[i+2];_F4=frames[i+3];_jH=frames[i+4];_lH=frames[i+5];_Yh=frames[i+6];break;default :_D4=this._Zc2(time,
i,1,_3d2-2);_E4=this._Zc2(time,i,2,_3d2+18-2);_F4=this._Zc2(time,i,3,_3d2+18*2-2);_jH=this._Zc2(time,i,4,_3d2+18*3-2);_lH=this._Zc2(time,i,5,_3d2+18*4-2);_Yh=this._Zc2(time,i,6,_3d2+18*5-2);}if(alpha==1){light._D4=_D4;light._E4=_E4;light._F4=_F4;dark._D4=_jH;dark._E4=_lH;dark._F4=_Yh;}else {if(_dP==0){let _8d2=slot.data.color,_9d2=slot.data._za;light._D4=_8d2._D4;light._E4=_8d2._E4;light._F4=_8d2._F4;dark._D4=_9d2._D4;dark._E4=_9d2._E4;dark._F4=_9d2._F4;}light._D4+=(_D4-light._D4)*alpha;light._E4+=(_E4-light._E4)*alpha;
light._F4+=(_F4-light._F4)*alpha;dark._D4+=(_jH-dark._D4)*alpha;dark._E4+=(_lH-dark._E4)*alpha;dark._F4+=(_Yh-dark._F4)*alpha;}}};var _4a2=class extends _6b2{constructor(_36,_x4){super(_36,[_zc2.attachment+"|"+_x4]);this._x4=0;this._x4=_x4;this._ad2=new Array(_36);}_Cc2(){return this.frames.length;}_1d2(frame,time,_Eb){this.frames[frame]=time;this._ad2[frame]=_Eb;}apply(skeleton,_cc2,time,events,alpha,_dP,direction){let slot=skeleton.slots[this._x4];if(!slot.bone.active)return;if(direction==1){if(_dP==0)this._w4(skeleton,
slot,slot.data._Eb);return;}if(time<this.frames[0]){if(_dP==0||_dP==1)this._w4(skeleton,slot,slot.data._Eb);return;}this._w4(skeleton,slot,this._ad2[_6b2._Ec2(this.frames,time)]);}_w4(skeleton,slot,_Eb){slot._w4(!_Eb?null:skeleton._z4(this._x4,_Eb));}};var _ea2=class extends _aa2{constructor(_36,_Fc2,_x4,attachment){super(_36,_Fc2,[_zc2.deform+"|"+_x4+"|"+attachment.id]);this._x4=0;this._x4=_x4;this.attachment=attachment;this.vertices=new Array(_36);}_Cc2(){return this.frames.length;}_1d2(frame,time,
vertices){this.frames[frame]=time;this.vertices[frame]=vertices;}_Lc2(_Mc2,frame,value,_fD,_Nc2,_Oc2,_Pc2,_Qc2,_Rc2,_gD,_Sc2){let _Gc2=this._Gc2;let i=this._Cc2()+_Mc2*18;if(value==0)_Gc2[frame]=2+i;let _Tc2=(_fD-_Oc2*2+_Qc2)*0.03,_Uc2=_Rc2*0.03-_Pc2*0.06;let _Vc2=((_Oc2-_Qc2)*3-_fD+_gD)*6e-3,_Wc2=(_Pc2-_Rc2+0.33333333)*0.018;let _Xc2=_Tc2*2+_Vc2,_Yc2=_Uc2*2+_Wc2;let _fb=(_Oc2-_fD)*0.3+_Tc2+_Vc2*0.16666667,_gb=_Pc2*0.3+_Uc2+_Wc2*0.16666667;let x=_fD+_fb,y=_gb;for(let _I6=i+18;i<_I6;i+=2){_Gc2[i]=x;_Gc2[i+1]=y;
_fb+=_Xc2;_gb+=_Yc2;_Xc2+=_Vc2;_Yc2+=_Wc2;x+=_fb;y+=_gb;}}_bd2(time,frame){let _Gc2=this._Gc2;let i=_Gc2[frame];switch(i){case 0:let _N6=this.frames[frame];return(time-_N6)/(this.frames[frame+this._Bc2()]-_N6);case 1:return 0;}i-=2;if(_Gc2[i]>time){let _N6=this.frames[frame];return _Gc2[i+1]*(time-_N6)/(_Gc2[i]-_N6);}let _I6=i+18;for(i+=2;i<_I6;i+=2){if(_Gc2[i]>=time){let _N6=_Gc2[i-2],_O6=_Gc2[i-1];return _O6+(time-_N6)/(_Gc2[i]-_N6)*(_Gc2[i+1]-_O6);}}let x=_Gc2[_I6-2],y=_Gc2[_I6-1];return y+(1-y)*(time-x)/(this.frames[frame+this._Bc2()]-x);
}apply(skeleton,_cc2,time,_cd2,alpha,_dP,direction){let slot=skeleton.slots[this._x4];if(!slot.bone.active)return;let _dd2=slot._z4();if(!(_dd2 instanceof _ib2)||_dd2._lc2!=this.attachment)return;let deform=slot.deform;if(deform.length==0)_dP=0;let vertices=this.vertices;let vertexCount=vertices[0].length;let frames=this.frames;if(time<frames[0]){let _ed2=_dd2;switch(_dP){case 0:deform.length=0;return;case 1:if(alpha==1){deform.length=0;return;}deform.length=vertexCount;if(!_ed2.bones){let _fd2=_ed2.vertices;
for(var i=0;i<vertexCount;i++)deform[i]+=(_fd2[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 _gd2=vertices[frames.length-1];if(alpha==1){if(_dP==3){let _ed2=_dd2;if(!_ed2.bones){let _fd2=_ed2.vertices;for(let _Io1=0;_Io1<vertexCount;_Io1++)deform[_Io1]+=_gd2[_Io1]-_fd2[_Io1];}else {for(let _Io1=0;_Io1<vertexCount;_Io1++)deform[_Io1]+=_gd2[_Io1];}}else _gb2._Mb2(_gd2,0,deform,0,vertexCount);}
else {switch(_dP){case 0:{let _hd2=_dd2;if(!_hd2.bones){let _fd2=_hd2.vertices;for(let _Io1=0;_Io1<vertexCount;_Io1++){let setup=_fd2[_Io1];deform[_Io1]=setup+(_gd2[_Io1]-setup)*alpha;}}else {for(let _Io1=0;_Io1<vertexCount;_Io1++)deform[_Io1]=_gd2[_Io1]*alpha;}break;}case 1:case 2:for(let _Io1=0;_Io1<vertexCount;_Io1++)deform[_Io1]+=(_gd2[_Io1]-deform[_Io1])*alpha;break;case 3:let _ed2=_dd2;if(!_ed2.bones){let _fd2=_ed2.vertices;for(let _Io1=0;_Io1<vertexCount;_Io1++)deform[_Io1]+=(_gd2[_Io1]-_fd2[_Io1])*alpha;
}else {for(let _Io1=0;_Io1<vertexCount;_Io1++)deform[_Io1]+=_gd2[_Io1]*alpha;}}}return;}let frame=_6b2._Ec2(frames,time);let _id2=this._bd2(time,frame);let _jd2=vertices[frame];let _kd2=vertices[frame+1];if(alpha==1){if(_dP==3){let _ed2=_dd2;if(!_ed2.bones){let _fd2=_ed2.vertices;for(let _Io1=0;_Io1<vertexCount;_Io1++){let _9l=_jd2[_Io1];deform[_Io1]+=_9l+(_kd2[_Io1]-_9l)*_id2-_fd2[_Io1];}}else {for(let _Io1=0;_Io1<vertexCount;_Io1++){let _9l=_jd2[_Io1];deform[_Io1]+=_9l+(_kd2[_Io1]-_9l)*_id2;}}}else {for(let _Io1=0;
_Io1<vertexCount;_Io1++){let _9l=_jd2[_Io1];deform[_Io1]=_9l+(_kd2[_Io1]-_9l)*_id2;}}}else {switch(_dP){case 0:{let _hd2=_dd2;if(!_hd2.bones){let _fd2=_hd2.vertices;for(let _Io1=0;_Io1<vertexCount;_Io1++){let _9l=_jd2[_Io1],setup=_fd2[_Io1];deform[_Io1]=setup+(_9l+(_kd2[_Io1]-_9l)*_id2-setup)*alpha;}}else {for(let _Io1=0;_Io1<vertexCount;_Io1++){let _9l=_jd2[_Io1];deform[_Io1]=(_9l+(_kd2[_Io1]-_9l)*_id2)*alpha;}}break;}case 1:case 2:for(let _Io1=0;_Io1<vertexCount;_Io1++){let _9l=_jd2[_Io1];deform[_Io1]+=(_9l+(_kd2[_Io1]-_9l)*_id2-deform[_Io1])*alpha;
}break;case 3:let _ed2=_dd2;if(!_ed2.bones){let _fd2=_ed2.vertices;for(let _Io1=0;_Io1<vertexCount;_Io1++){let _9l=_jd2[_Io1];deform[_Io1]+=(_9l+(_kd2[_Io1]-_9l)*_id2-_fd2[_Io1])*alpha;}}else {for(let _Io1=0;_Io1<vertexCount;_Io1++){let _9l=_jd2[_Io1];deform[_Io1]+=(_9l+(_kd2[_Io1]-_9l)*_id2)*alpha;}}}}}};var _ld2=class extends _6b2{constructor(_36){super(_36,_ld2._Ac2);this.events=new Array(_36);}_Cc2(){return this.frames.length;}_1d2(frame,event){this.frames[frame]=event.time;this.events[frame]=event;}apply(skeleton,
_cc2,time,_cd2,alpha,_dP,direction){if(!_cd2)return;let frames=this.frames;let _36=this.frames.length;if(_cc2>time){this.apply(skeleton,_cc2,Number.MAX_VALUE,_cd2,alpha,_dP,direction);_cc2=-1;}else if(_cc2>=frames[_36-1])return;if(time<frames[0])return;let i=0;if(_cc2<frames[0])i=0;else {i=_6b2._Ec2(frames,_cc2)+1;let _dc2=frames[i];while(i>0){if(frames[i-1]!=_dc2)break;i--;}}for(;i<_36&&time>=frames[i];i++)_cd2.push(this.events[i]);}};var _Y7=_ld2;_Y7._Ac2=[""+_zc2.event];var _md2=class extends _6b2{constructor(_36){
super(_36,_md2._Ac2);this._nd2=new Array(_36);}_Cc2(){return this.frames.length;}_1d2(frame,time,drawOrder){this.frames[frame]=time;this._nd2[frame]=drawOrder;}apply(skeleton,_cc2,time,_cd2,alpha,_dP,direction){if(direction==1){if(_dP==0)_gb2._Mb2(skeleton.slots,0,skeleton.drawOrder,0,skeleton.slots.length);return;}if(time<this.frames[0]){if(_dP==0||_dP==1)_gb2._Mb2(skeleton.slots,0,skeleton.drawOrder,0,skeleton.slots.length);return;}let _od2=this._nd2[_6b2._Ec2(this.frames,time)];if(!_od2)_gb2._Mb2(skeleton.slots,
0,skeleton.drawOrder,0,skeleton.slots.length);else {let drawOrder=skeleton.drawOrder;let slots=skeleton.slots;for(let i=0,_I6=_od2.length;i<_I6;i++)drawOrder[i]=slots[_od2[i]];}}};var _ga2=_md2;_ga2._Ac2=[""+_zc2.drawOrder];var _ra2=class extends _aa2{constructor(_36,_Fc2,_pd2){super(_36,_Fc2,[_zc2.ikConstraint+"|"+_pd2]);this._pd2=_pd2;}_Bc2(){return 6;}_1d2(frame,time,mix,_qd2,_rd2,compress,stretch){frame*=6;this.frames[frame]=time;this.frames[frame+1]=mix;this.frames[frame+2]=_qd2;this.frames[frame+3]=_rd2;
this.frames[frame+4]=compress?1:0;this.frames[frame+5]=stretch?1:0;}apply(skeleton,_cc2,time,_cd2,alpha,_dP,direction){let _sd2=skeleton._td2[this._pd2];if(!_sd2.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:_sd2.mix=_sd2.data.mix;_sd2._qd2=_sd2.data._qd2;_sd2._rd2=_sd2.data._rd2;_sd2.compress=_sd2.data.compress;_sd2.stretch=_sd2.data.stretch;return;case 1:_sd2.mix+=(_sd2.data.mix-_sd2.mix)*alpha;_sd2._qd2+=(_sd2.data._qd2-_sd2._qd2)*alpha;_sd2._rd2=_sd2.data._rd2;_sd2.compress=_sd2.data.compress;
_sd2.stretch=_sd2.data.stretch;}return;}let mix=0,_qd2=0;let i=_6b2.search(frames,time,6);let _3d2=this._Gc2[i/6];switch(_3d2){case 0:let _4d2=frames[i];mix=frames[i+1];_qd2=frames[i+2];let _Y6=(time-_4d2)/(frames[i+6]-_4d2);mix+=(frames[i+6+1]-mix)*_Y6;_qd2+=(frames[i+6+2]-_qd2)*_Y6;break;case 1:mix=frames[i+1];_qd2=frames[i+2];break;default :mix=this._Zc2(time,i,1,_3d2-2);_qd2=this._Zc2(time,i,2,_3d2+18-2);}if(_dP==0){_sd2.mix=_sd2.data.mix+(mix-_sd2.data.mix)*alpha;_sd2._qd2=_sd2.data._qd2+(_qd2-_sd2.data._qd2)*alpha;
if(direction==1){_sd2._rd2=_sd2.data._rd2;_sd2.compress=_sd2.data.compress;_sd2.stretch=_sd2.data.stretch;}else {_sd2._rd2=frames[i+3];_sd2.compress=frames[i+4]!=0;_sd2.stretch=frames[i+5]!=0;}}else {_sd2.mix+=(mix-_sd2.mix)*alpha;_sd2._qd2+=(_qd2-_sd2._qd2)*alpha;if(direction==0){_sd2._rd2=frames[i+3];_sd2.compress=frames[i+4]!=0;_sd2.stretch=frames[i+5]!=0;}}}};var _ab2=class extends _aa2{constructor(_36,_Fc2,_ud2){super(_36,_Fc2,[_zc2.transformConstraint+"|"+_ud2]);this._ud2=_ud2;}_Bc2(){return 7;}
_1d2(frame,time,_vd2,_wd2,_xd2,_yd2,_zd2,_Ad2){let frames=this.frames;frame*=7;frames[frame]=time;frames[frame+1]=_vd2;frames[frame+2]=_wd2;frames[frame+3]=_xd2;frames[frame+4]=_yd2;frames[frame+5]=_zd2;frames[frame+6]=_Ad2;}apply(skeleton,_cc2,time,_cd2,alpha,_dP,direction){let _sd2=skeleton._Bd2[this._ud2];if(!_sd2.active)return;let frames=this.frames;if(time<frames[0]){let data=_sd2.data;switch(_dP){case 0:_sd2._vd2=data._vd2;_sd2._wd2=data._wd2;_sd2._xd2=data._xd2;_sd2._yd2=data._yd2;_sd2._zd2=data._zd2;
_sd2._Ad2=data._Ad2;return;case 1:_sd2._vd2+=(data._vd2-_sd2._vd2)*alpha;_sd2._wd2+=(data._wd2-_sd2._wd2)*alpha;_sd2._xd2+=(data._xd2-_sd2._xd2)*alpha;_sd2._yd2+=(data._yd2-_sd2._yd2)*alpha;_sd2._zd2+=(data._zd2-_sd2._zd2)*alpha;_sd2._Ad2+=(data._Ad2-_sd2._Ad2)*alpha;}return;}let rotate,x,y,scaleX,scaleY,shearY;let i=_6b2.search(frames,time,7);let _3d2=this._Gc2[i/7];switch(_3d2){case 0:let _4d2=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 _Y6=(time-_4d2)/(frames[i+7]-_4d2);rotate+=(frames[i+7+1]-rotate)*_Y6;x+=(frames[i+7+2]-x)*_Y6;y+=(frames[i+7+3]-y)*_Y6;scaleX+=(frames[i+7+4]-scaleX)*_Y6;scaleY+=(frames[i+7+5]-scaleY)*_Y6;shearY+=(frames[i+7+6]-shearY)*_Y6;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._Zc2(time,i,1,_3d2-2);x=this._Zc2(time,i,2,_3d2+18-2);y=this._Zc2(time,i,3,_3d2+18*2-2);scaleX=this._Zc2(time,i,4,_3d2+18*3-2);scaleY=this._Zc2(time,
i,5,_3d2+18*4-2);shearY=this._Zc2(time,i,6,_3d2+18*5-2);}if(_dP==0){let data=_sd2.data;_sd2._vd2=data._vd2+(rotate-data._vd2)*alpha;_sd2._wd2=data._wd2+(x-data._wd2)*alpha;_sd2._xd2=data._xd2+(y-data._xd2)*alpha;_sd2._yd2=data._yd2+(scaleX-data._yd2)*alpha;_sd2._zd2=data._zd2+(scaleY-data._zd2)*alpha;_sd2._Ad2=data._Ad2+(shearY-data._Ad2)*alpha;}else {_sd2._vd2+=(rotate-_sd2._vd2)*alpha;_sd2._wd2+=(x-_sd2._wd2)*alpha;_sd2._xd2+=(y-_sd2._xd2)*alpha;_sd2._yd2+=(scaleX-_sd2._yd2)*alpha;_sd2._zd2+=(scaleY-_sd2._zd2)*alpha;
_sd2._Ad2+=(shearY-_sd2._Ad2)*alpha;}}};var _Ca2=class extends _ba2{constructor(_36,_Fc2,_Cd2){super(_36,_Fc2,_zc2.pathConstraintPosition+"|"+_Cd2);this._Cd2=_Cd2;}apply(skeleton,_cc2,time,_cd2,alpha,_dP,direction){let _sd2=skeleton._Dd2[this._Cd2];if(!_sd2.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:_sd2.position=_sd2.data.position;return;case 1:_sd2.position+=(_sd2.data.position-_sd2.position)*alpha;}return;}let position=this._2d2(time);if(_dP==0)_sd2.position=_sd2.data.position+(position-_sd2.data.position)*alpha;
else _sd2.position+=(position-_sd2.position)*alpha;}};var _Da2=class extends _ba2{constructor(_36,_Fc2,_Cd2){super(_36,_Fc2,_zc2.pathConstraintSpacing+"|"+_Cd2);this._Cd2=0;this._Cd2=_Cd2;}apply(skeleton,_cc2,time,_cd2,alpha,_dP,direction){let _sd2=skeleton._Dd2[this._Cd2];if(!_sd2.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){case 0:_sd2.spacing=_sd2.data.spacing;return;case 1:_sd2.spacing+=(_sd2.data.spacing-_sd2.spacing)*alpha;}return;}let spacing=this._2d2(time);if(_dP==0)_sd2.spacing=_sd2.data.spacing+(spacing-_sd2.data.spacing)*alpha;
else _sd2.spacing+=(spacing-_sd2.spacing)*alpha;}};var _Ba2=class extends _aa2{constructor(_36,_Fc2,_Cd2){super(_36,_Fc2,[_zc2.pathConstraintMix+"|"+_Cd2]);this._Cd2=0;this._Cd2=_Cd2;}_Bc2(){return 4;}_1d2(frame,time,_vd2,_wd2,_xd2){let frames=this.frames;frame<<=2;frames[frame]=time;frames[frame+1]=_vd2;frames[frame+2]=_wd2;frames[frame+3]=_xd2;}apply(skeleton,_cc2,time,_cd2,alpha,_dP,direction){let _sd2=skeleton._Dd2[this._Cd2];if(!_sd2.active)return;let frames=this.frames;if(time<frames[0]){switch(_dP){
case 0:_sd2._vd2=_sd2.data._vd2;_sd2._wd2=_sd2.data._wd2;_sd2._xd2=_sd2.data._xd2;return;case 1:_sd2._vd2+=(_sd2.data._vd2-_sd2._vd2)*alpha;_sd2._wd2+=(_sd2.data._wd2-_sd2._wd2)*alpha;_sd2._xd2+=(_sd2.data._xd2-_sd2._xd2)*alpha;}return;}let rotate,x,y;let i=_6b2.search(frames,time,4);let _3d2=this._Gc2[i>>2];switch(_3d2){case 0:let _4d2=frames[i];rotate=frames[i+1];x=frames[i+2];y=frames[i+3];let _Y6=(time-_4d2)/(frames[i+4]-_4d2);rotate+=(frames[i+4+1]-rotate)*_Y6;x+=(frames[i+4+2]-x)*_Y6;y+=(frames[i+4+3]-y)*_Y6;
break;case 1:rotate=frames[i+1];x=frames[i+2];y=frames[i+3];break;default :rotate=this._Zc2(time,i,1,_3d2-2);x=this._Zc2(time,i,2,_3d2+18-2);y=this._Zc2(time,i,3,_3d2+18*2-2);}if(_dP==0){let data=_sd2.data;_sd2._vd2=data._vd2+(rotate-data._vd2)*alpha;_sd2._wd2=data._wd2+(x-data._wd2)*alpha;_sd2._xd2=data._xd2+(y-data._xd2)*alpha;}else {_sd2._vd2+=(rotate-_sd2._vd2)*alpha;_sd2._wd2+=(x-_sd2._wd2)*alpha;_sd2._xd2+=(y-_sd2._xd2)*alpha;}}};var _A3=class {constructor(data){this.tracks=new Array();this._Ed2=1;
this._Fd2=0;this.events=new Array();this._Gd2=new Array();this._Hl=new _ia2(this);this._Hd2=new _2b2();this._Id2=false;this._Jd2=new _Fa2(()=>new _7b2());this.data=data;}static _Kd2(){if(!_Ld2)_Ld2=new _0a2("<empty>",[],0);return _Ld2;}_a6(_ti){_ti*=this._Ed2;let tracks=this.tracks;for(let i=0,_I6=tracks.length;i<_I6;i++){let current=tracks[i];if(!current)continue;current._Md2=current._Nd2;current._Od2=current._Pd2;let _Qd2=_ti*current._Ed2;if(current._pP1>0){current._pP1-=_Qd2;if(current._pP1>0)continue;_Qd2=-current._pP1;
current._pP1=0;}let _bl=current._bl;if(_bl){let _Rd2=current._Od2-_bl._pP1;if(_Rd2>=0){_bl._pP1=0;_bl._54+=current._Ed2==0?0:(_Rd2/current._Ed2+_ti)*_bl._Ed2;current._54+=_Qd2;this._Sd2(i,_bl,true);while(_bl._Td2){_bl._Ud2+=_ti;_bl=_bl._Td2;}continue;}}else if(current._Od2>=current._Vd2&&!current._Td2){tracks[i]=null;this._Hl.end(current);this._Wd2(current);continue;}if(current._Td2&&this._Xd2(current,_ti)){let from=current._Td2;current._Td2=null;if(from)from._Yd2=null;while(from){this._Hl.end(from);
from=from._Td2;}}current._54+=_Qd2;}this._Hl._Zd2();}_Xd2(_R21,_ti){let from=_R21._Td2;if(!from)return true;let _IS=this._Xd2(from,_ti);from._Md2=from._Nd2;from._Od2=from._Pd2;if(_R21._Ud2>0&&_R21._Ud2>=_R21.__d2){if(from._0e2==0||_R21.__d2==0){_R21._Td2=from._Td2;if(from._Td2)from._Td2._Yd2=_R21;_R21._1e2=from._1e2;this._Hl.end(from);}return _IS;}from._54+=_ti*from._Ed2;_R21._Ud2+=_ti;return false;}apply(skeleton){if(!skeleton)throw new Error("skeleton cannot be null.");if(this._Id2)this._2e2();let events=this.events;
let tracks=this.tracks;let _3e2=false;for(let _Io1=0,_4e2=tracks.length;_Io1<_4e2;_Io1++){let current=tracks[_Io1];if(!current||current._pP1>0)continue;_3e2=true;let _dP=_Io1==0?_wa2.first:current._5e2;let mix=current.alpha;if(current._Td2)mix*=this._6e2(current,skeleton,_dP);else if(current._54>=current._Vd2&&!current._bl)mix=0;let _Md2=current._Md2,_7e2=current._8e2(),_9e2=_7e2;let _ae2=events;if(current.reverse){_9e2=current._Y3.duration-_9e2;_ae2=null;}let _76=current._Y3._76;let _66=_76.length;if(_Io1==0&&mix==1||_dP==_wa2.add){
for(let _7F=0;_7F<_66;_7F++){_gb2._1c2(mix,_dP);var _zH=_76[_7F];if(_zH instanceof _4a2)this._be2(_zH,skeleton,_9e2,_dP,true);else _zH.apply(skeleton,_Md2,_9e2,_ae2,mix,_dP,_xa2.mixIn);}}else {let _ce2=current._ce2;let _xP1=current._de2.length!=_66<<1;if(_xP1)current._de2.length=_66<<1;for(let _7F=0;_7F<_66;_7F++){let _ee2=_76[_7F];let _fe2=_ce2[_7F]==_Qa2?_dP:_wa2.setup;if(_ee2 instanceof _Oa2){this._ge2(_ee2,skeleton,_9e2,mix,_fe2,current._de2,_7F<<1,_xP1);}else if(_ee2 instanceof _4a2){this._be2(_ee2,skeleton,
_9e2,_dP,true);}else {_gb2._1c2(mix,_dP);_ee2.apply(skeleton,_Md2,_9e2,_ae2,mix,_fe2,_xa2.mixIn);}}}this._he2(current,_7e2);events.length=0;current._Nd2=_7e2;current._Pd2=current._54;}var _ie2=this._Fd2+_Pa2;var slots=skeleton.slots;for(var i=0,_I6=skeleton.slots.length;i<_I6;i++){var slot=slots[i];if(slot._je2==_ie2){var _Eb=slot.data._Eb;slot._w4(!_Eb?null:skeleton._z4(slot.data.index,_Eb));}}this._Fd2+=2;this._Hl._Zd2();return _3e2;}_6e2(_R21,skeleton,_dP){let from=_R21._Td2;if(from._Td2)this._6e2(from,
skeleton,_dP);let mix=0;if(_R21.__d2==0){mix=1;if(_dP==_wa2.first)_dP=_wa2.setup;}else {mix=_R21._Ud2/_R21.__d2;if(mix>1)mix=1;if(_dP!=_wa2.first)_dP=from._5e2;}let attachments=mix<from._ke2,drawOrder=mix<from._le2;let _76=from._Y3._76;let _66=_76.length;let _me2=from.alpha*_R21._1e2,_ne2=_me2*(1-mix);let _Md2=from._Md2,_7e2=from._8e2(),_9e2=_7e2;let events=null;if(from.reverse)_9e2=from._Y3.duration-_9e2;else if(mix<from._oe2)events=this.events;if(_dP==_wa2.add){for(let i=0;i<_66;i++)_76[i].apply(skeleton,
_Md2,_9e2,events,_ne2,_dP,_xa2.mixOut);}else {let _ce2=from._ce2;let _pe2=from._pe2;let _xP1=from._de2.length!=_66<<1;if(_xP1)from._de2.length=_66<<1;from._0e2=0;for(let i=0;i<_66;i++){let _zH=_76[i];let direction=_xa2.mixOut;let _fe2;let alpha=0;switch(_ce2[i]){case _Qa2:if(!drawOrder&&_zH instanceof _ga2)continue;_fe2=_dP;alpha=_ne2;break;case _ka2:_fe2=_wa2.setup;alpha=_ne2;break;case _oa2:_fe2=_dP;alpha=_me2;break;case _ma2:_fe2=_wa2.setup;alpha=_me2;break;default :_fe2=_wa2.setup;let _qe2=_pe2[i];alpha=_me2*Math.max(0,
1-_qe2._Ud2/_qe2.__d2);break;}from._0e2+=alpha;if(_zH instanceof _Oa2)this._ge2(_zH,skeleton,_9e2,alpha,_fe2,from._de2,i<<1,_xP1);else if(_zH instanceof _4a2)this._be2(_zH,skeleton,_9e2,_fe2,attachments);else {_gb2._1c2(alpha,_dP);if(drawOrder&&_zH instanceof _ga2&&_fe2==_wa2.setup)direction=_xa2.mixIn;_zH.apply(skeleton,_Md2,_9e2,events,alpha,_fe2,direction);}}}if(_R21.__d2>0)this._he2(from,_7e2);this.events.length=0;from._Nd2=_7e2;from._Pd2=from._54;return mix;}_be2(_zH,skeleton,time,_dP,attachments){var slot=skeleton.slots[_zH._x4];
if(!slot.bone.active)return;if(time<_zH.frames[0]){if(_dP==_wa2.setup||_dP==_wa2.first)this._w4(skeleton,slot,slot.data._Eb,attachments);}else this._w4(skeleton,slot,_zH._ad2[_6b2._Ec2(_zH.frames,time)],attachments);if(slot._je2<=this._Fd2)slot._je2=this._Fd2+_Pa2;}_w4(skeleton,slot,_Eb,attachments){slot._w4(!_Eb?null:skeleton._z4(slot.data.index,_Eb));if(attachments)slot._je2=this._Fd2+_8a2;}_ge2(_zH,skeleton,time,alpha,_dP,_de2,i,_xP1){if(_xP1)_de2[i]=0;if(alpha==1){_zH.apply(skeleton,0,time,null,
1,_dP,_xa2.mixIn);return;}let bone=skeleton.bones[_zH._7d2];if(!bone.active)return;let frames=_zH.frames;let _iH=0,_jH=0;if(time<frames[0]){switch(_dP){case _wa2.setup:bone.rotation=bone.data.rotation;default :return;case _wa2.first:_iH=bone.rotation;_jH=bone.data.rotation;}}else {_iH=_dP==_wa2.setup?bone.data.rotation:bone.rotation;_jH=bone.data.rotation+_zH._2d2(time);}let _k91=0,_wD=_jH-_iH;_wD-=(16384-(16384.499999999996-_wD/360|0))*360;if(_wD==0){_k91=_de2[i];}else {let _re2=0,_se2=0;if(_xP1){_re2=0;
_se2=_wD;}else {_re2=_de2[i];_se2=_de2[i+1];}let current=_wD>0,_VX=_re2>=0;if(_va2._Cb2(_se2)!=_va2._Cb2(_wD)&&Math.abs(_se2)<=90){if(Math.abs(_re2)>180)_re2+=360*_va2._Cb2(_re2);_VX=current;}_k91=_wD+_re2-_re2%360;if(_VX!=current)_k91+=360*_va2._Cb2(_re2);_de2[i]=_k91;}_de2[i+1]=_wD;bone.rotation=_iH+_k91*alpha;}_he2(_7l,_7e2){let _te2=_7l._te2,_ue2=_7l._ue2;let duration=_ue2-_te2;let _ve2=_7l._Od2%duration;let events=this.events;let i=0,_I6=events.length;for(;i<_I6;i++){let event=events[i];if(event.time<_ve2)break;
if(event.time>_ue2)continue;this._Hl.event(_7l,event);}let complete=false;if(_7l.loop)complete=duration==0||_ve2>_7l._54%duration;else complete=_7e2>=_ue2&&_7l._Md2<_ue2;if(complete)this._Hl.complete(_7l);for(;i<_I6;i++){let event=events[i];if(event.time<_te2)continue;this._Hl.event(_7l,event);}}_we2(){let _xe2=this._Hl._ye2;this._Hl._ye2=true;for(let i=0,_I6=this.tracks.length;i<_I6;i++)this._Q7(i);this.tracks.length=0;this._Hl._ye2=_xe2;this._Hl._Zd2();}_Q7(_ze2){if(_ze2>=this.tracks.length)return;
let current=this.tracks[_ze2];if(!current)return;this._Hl.end(current);this._Wd2(current);let _7l=current;while(true){let from=_7l._Td2;if(!from)break;this._Hl.end(from);_7l._Td2=null;_7l._Yd2=null;_7l=from;}this.tracks[current._ze2]=null;this._Hl._Zd2();}_Sd2(index,current,interrupt){let from=this._Ae2(index);this.tracks[index]=current;current._Be2=null;if(from){if(interrupt)this._Hl.interrupt(from);current._Td2=from;from._Yd2=current;current._Ud2=0;if(from._Td2&&from.__d2>0)current._1e2*=Math.min(1,
from._Ud2/from.__d2);from._de2.length=0;}this._Hl.start(current);}_f4(_ze2,_Ce2,loop=false){let _Y3=this.data._De2._e4(_Ce2);if(!_Y3)throw new Error("Animation not found: "+_Ce2);return this._Ee2(_ze2,_Y3,loop);}_Ee2(_ze2,_Y3,loop=false){if(!_Y3)throw new Error("animation cannot be null.");let interrupt=true;let current=this._Ae2(_ze2);if(current){if(current._Pd2==-1){this.tracks[_ze2]=current._Td2;this._Hl.interrupt(current);this._Hl.end(current);this._Wd2(current);current=current._Td2;interrupt=false;
}else this._Wd2(current);}let _7l=this._Fe2(_ze2,_Y3,loop,current);this._Sd2(_ze2,_7l,interrupt);this._Hl._Zd2();return _7l;}_Ge2(_ze2,_Ce2,loop=false,_pP1=0){let _Y3=this.data._De2._e4(_Ce2);if(!_Y3)throw new Error("Animation not found: "+_Ce2);return this._He2(_ze2,_Y3,loop,_pP1);}_He2(_ze2,_Y3,loop=false,_pP1=0){if(!_Y3)throw new Error("animation cannot be null.");let last=this._Ae2(_ze2);if(last){while(last._bl)last=last._bl;}let _7l=this._Fe2(_ze2,_Y3,loop,last);if(!last){this._Sd2(_ze2,_7l,true);this._Hl._Zd2();
}else {last._bl=_7l;_7l._Be2=last;if(_pP1<=0)_pP1+=last._Ie2()-_7l.__d2;}_7l._pP1=_pP1;return _7l;}_Je2(_ze2,__d2=0){let _7l=this._Ee2(_ze2,_A3._Kd2(),false);_7l.__d2=__d2;_7l._Vd2=__d2;return _7l;}_Ke2(_ze2,__d2=0,_pP1=0){let _7l=this._He2(_ze2,_A3._Kd2(),false,_pP1);if(_pP1<=0)_7l._pP1+=_7l.__d2-__d2;_7l.__d2=__d2;_7l._Vd2=__d2;return _7l;}_Le2(__d2=0){let _xe2=this._Hl._ye2;this._Hl._ye2=true;for(let i=0,_I6=this.tracks.length;i<_I6;i++){let current=this.tracks[i];if(current)this._Je2(current._ze2,__d2);
}this._Hl._ye2=_xe2;this._Hl._Zd2();}_Ae2(index){if(index<this.tracks.length)return this.tracks[index];_gb2._Ub2(this.tracks,index+1,null);this.tracks.length=index+1;return null;}_Fe2(_ze2,_Y3,loop,last){let _7l=this._Jd2._6c2();_7l._ze2=_ze2;_7l._Y3=_Y3;_7l.loop=loop;_7l._Me2=false;_7l._oe2=0;_7l._ke2=0;_7l._le2=0;_7l._te2=0;_7l._ue2=_Y3.duration;_7l._Md2=-1;_7l._Nd2=-1;_7l._pP1=0;_7l._54=0;_7l._Od2=-1;_7l._Pd2=-1;_7l._Vd2=Number.MAX_VALUE;_7l._Ed2=1;_7l.alpha=1;_7l._1e2=1;_7l._Ud2=0;_7l.__d2=!last?0:this.data._Ne2(last._Y3,
_Y3);_7l._5e2=_wa2.replace;return _7l;}_Wd2(_7l){let _bl=_7l._bl;while(_bl){this._Hl.dispose(_bl);_bl=_bl._bl;}_7l._bl=null;}_2e2(){this._Id2=false;this._Hd2.clear();let tracks=this.tracks;for(let i=0,_I6=tracks.length;i<_I6;i++){let _7l=tracks[i];if(!_7l)continue;while(_7l._Td2)_7l=_7l._Td2;do {if(!_7l._Yd2||_7l._5e2!=_wa2.add)this._Oe2(_7l);_7l=_7l._Yd2;}while(_7l);}}_Oe2(_7l){let _R21=_7l._Yd2;let _76=_7l._Y3._76;let _Pe2=_7l._Y3._76.length;let _ce2=_7l._ce2;_ce2.length=_Pe2;let _pe2=_7l._pe2;_pe2.length=0;
let _Hd2=this._Hd2;if(_R21&&_R21._Me2){for(let i=0;i<_Pe2;i++)_ce2[i]=_Hd2._mb2(_76[i]._vc2())?_ma2:_oa2;return;}_Qe2:for(let i=0;i<_Pe2;i++){let _zH=_76[i];let ids=_zH._vc2();if(!_Hd2._mb2(ids))_ce2[i]=_Qa2;else if(!_R21||_zH instanceof _4a2||_zH instanceof _ga2||_zH instanceof _Y7||!_R21._Y3._wc2(ids)){_ce2[i]=_ka2;}else {for(let _bl=_R21._Yd2;_bl;_bl=_bl._Yd2){if(_bl._Y3._wc2(ids))continue;if(_7l.__d2>0){_ce2[i]=_na2;_pe2[i]=_bl;continue _Qe2;}break;}_ce2[i]=_ma2;}}}_Re2(_ze2){if(_ze2>=this.tracks.length)return null;
return this.tracks[_ze2];}_K3(listener){if(!listener)throw new Error("listener cannot be null.");this._Gd2.push(listener);}_Se2(listener){let index=this._Gd2.indexOf(listener);if(index>=0)this._Gd2.splice(index,1);}_Te2(){this._Gd2.length=0;}_Ue2(){this._Hl.clear();}};var _7b2=class {constructor(){this._5e2=_wa2.replace;this._ce2=new Array();this._pe2=new Array();this._de2=new Array();}_Jk1(){this._bl=null;this._Be2=null;this._Td2=null;this._Yd2=null;this._Y3=null;this.listener=null;this._ce2.length=0;this._pe2.length=0;
this._de2.length=0;}_8e2(){if(this.loop){let duration=this._ue2-this._te2;if(duration==0)return this._te2;return this._54%duration+this._te2;}return Math.min(this._54+this._te2,this._ue2);}_Ve2(_Md2){this._Md2=_Md2;this._Nd2=_Md2;}_We2(){return this._54>=this._ue2-this._te2;}_Xe2(){this._de2.length=0;}_Ie2(){let duration=this._ue2-this._te2;if(duration!=0){if(this.loop)return duration*(1+(this._54/duration|0));if(this._54<duration)return duration;}return this._54;}};var _ia2=class {constructor(_Ye2){this._Ze2=[];
this._ye2=false;this._Ye2=_Ye2;}start(_7l){this._Ze2.push(_ja2.start);this._Ze2.push(_7l);this._Ye2._Id2=true;}interrupt(_7l){this._Ze2.push(_ja2.interrupt);this._Ze2.push(_7l);}end(_7l){this._Ze2.push(_ja2.end);this._Ze2.push(_7l);this._Ye2._Id2=true;}dispose(_7l){this._Ze2.push(_ja2.dispose);this._Ze2.push(_7l);}complete(_7l){this._Ze2.push(_ja2.complete);this._Ze2.push(_7l);}event(_7l,event){this._Ze2.push(_ja2.event);this._Ze2.push(_7l);this._Ze2.push(event);}_Zd2(){if(this._ye2)return;this._ye2=true;
let _Ze2=this._Ze2;let _Gd2=this._Ye2._Gd2;for(let i=0;i<_Ze2.length;i+=2){let type=_Ze2[i];let _7l=_Ze2[i+1];switch(type){case _ja2.start:if(_7l.listener&&_7l.listener.start)_7l.listener.start(_7l);for(let _7F=0;_7F<_Gd2.length;_7F++)if(_Gd2[_7F].start)_Gd2[_7F].start(_7l);break;case _ja2.interrupt:if(_7l.listener&&_7l.listener.interrupt)_7l.listener.interrupt(_7l);for(let _7F=0;_7F<_Gd2.length;_7F++)if(_Gd2[_7F].interrupt)_Gd2[_7F].interrupt(_7l);break;case _ja2.end:if(_7l.listener&&_7l.listener.end)_7l.listener.end(_7l);
for(let _7F=0;_7F<_Gd2.length;_7F++)if(_Gd2[_7F].end)_Gd2[_7F].end(_7l);case _ja2.dispose:if(_7l.listener&&_7l.listener.dispose)_7l.listener.dispose(_7l);for(let _7F=0;_7F<_Gd2.length;_7F++)if(_Gd2[_7F].dispose)_Gd2[_7F].dispose(_7l);this._Ye2._Jd2._7c2(_7l);break;case _ja2.complete:if(_7l.listener&&_7l.listener.complete)_7l.listener.complete(_7l);for(let _7F=0;_7F<_Gd2.length;_7F++)if(_Gd2[_7F].complete)_Gd2[_7F].complete(_7l);break;case _ja2.event:let event=_Ze2[i+++2];if(_7l.listener&&_7l.listener.event)_7l.listener.event(_7l,
event);for(let _7F=0;_7F<_Gd2.length;_7F++)if(_Gd2[_7F].event)_Gd2[_7F].event(_7l,event);break;}}this.clear();this._ye2=false;}clear(){this._Ze2.length=0;}};var _ja2;(function(__e2){__e2[__e2["start"]=0]="start";__e2[__e2["interrupt"]=1]="interrupt";__e2[__e2["end"]=2]="end";__e2[__e2["dispose"]=3]="dispose";__e2[__e2["complete"]=4]="complete";__e2[__e2["event"]=5]="event";})(_ja2||(_ja2={}));var _1a2=class {start(_7l){}interrupt(_7l){}end(_7l){}dispose(_7l){}complete(_7l){}event(_7l,event){}};var _Qa2=0;
var _ka2=1;var _oa2=2;var _ma2=3;var _na2=4;var _Pa2=1;var _8a2=2;var _Ld2=null;var _z3=class {constructor(_De2){this._0f2={};this._1f2=0;if(!_De2)throw new Error("skeletonData cannot be null.");this._De2=_De2;}_r4(_2f2,_3f2,duration){let from=this._De2._e4(_2f2);if(!from)throw new Error("Animation not found: "+_2f2);let _R21=this._De2._e4(_3f2);if(!_R21)throw new Error("Animation not found: "+_3f2);this._4f2(from,_R21,duration);}_4f2(from,_R21,duration){if(!from)throw new Error("from cannot be null.");if(!_R21)throw new Error("to cannot be null.");
let key=from.name+"."+_R21.name;this._0f2[key]=duration;}_Ne2(from,_R21){let key=from.name+"."+_R21.name;let value=this._0f2[key];return value===void 0?this._1f2:value;}};var _q9=class extends _ib2{constructor(name){super(name);this.color=new _H4(1,1,1,1);}_js(){let _js=new _q9(this.name);this._sc2(_js);_js.color._I5(this.color);return _js;}};var _T9=class extends _ib2{constructor(name){super(name);this.color=new _H4(0.2275,0.2275,0.8078,1);}_js(){let _js=new _T9(this.name);this._sc2(_js);_js._5f2=this._5f2;_js.color._I5(this.color);
return _js;}};var _NU1=class {constructor(_h5){this._zU1=_h5;}_l8(){return this._zU1;}};var _b5;(function(_6f2){_6f2[_6f2["Nearest"]=9728]="Nearest";_6f2[_6f2["Linear"]=9729]="Linear";_6f2[_6f2["MipMap"]=9987]="MipMap";_6f2[_6f2["MipMapNearestNearest"]=9984]="MipMapNearestNearest";_6f2[_6f2["MipMapLinearNearest"]=9985]="MipMapLinearNearest";_6f2[_6f2["MipMapNearestLinear"]=9986]="MipMapNearestLinear";_6f2[_6f2["MipMapLinearLinear"]=9987]="MipMapLinearLinear";})(_b5||(_b5={}));var _e5;(function(_7f2){_7f2[_7f2["MirroredRepeat"]=33648]="MirroredRepeat";
_7f2[_7f2["ClampToEdge"]=33071]="ClampToEdge";_7f2[_7f2["Repeat"]=10497]="Repeat";})(_e5||(_e5={}));var _4b2=class {constructor(){this._m5=0;this._n5=0;this._o5=0;this._p5=0;this.width=0;this.height=0;this._u5=0;this._q5=0;this._r5=0;this._s5=0;this._t5=0;}};var _la2=class extends _NU1{_i5(_a5,_c5){}_j5(_d5,_f5){}dispose(){}};var _y5=class {constructor(_8f2){this._z5=new Array();this._A5=new Array();if(_8f2===null||_8f2===void 0)return;let _JZ=new _9f2(_8f2);let _7l=new Array(4);let _65=null;let _k5=null;let _af2={
};_af2["size"]=()=>{_65.width=parseInt(_7l[1]);_65.height=parseInt(_7l[2]);};_af2["format"]=()=>{};_af2["filter"]=()=>{_65._a5=_gb2._2c2(_b5,_7l[1]);_65._c5=_gb2._2c2(_b5,_7l[2]);};_af2["repeat"]=()=>{if(_7l[1].indexOf("x")!=-1)_65._d5=_e5.Repeat;if(_7l[1].indexOf("y")!=-1)_65._f5=_e5.Repeat;};_af2["pma"]=()=>{_65._bf2=_7l[1]=="true";};var _cf2={};_cf2["xy"]=()=>{_k5.x=parseInt(_7l[1]);_k5.y=parseInt(_7l[2]);};_cf2["size"]=()=>{_k5.width=parseInt(_7l[1]);_k5.height=parseInt(_7l[2]);};_cf2["bounds"]=()=>{
_k5.x=parseInt(_7l[1]);_k5.y=parseInt(_7l[2]);_k5.width=parseInt(_7l[3]);_k5.height=parseInt(_7l[4]);};_cf2["offset"]=()=>{_k5._q5=parseInt(_7l[1]);_k5._r5=parseInt(_7l[2]);};_cf2["orig"]=()=>{_k5._s5=parseInt(_7l[1]);_k5._t5=parseInt(_7l[2]);};_cf2["offsets"]=()=>{_k5._q5=parseInt(_7l[1]);_k5._r5=parseInt(_7l[2]);_k5._s5=parseInt(_7l[3]);_k5._t5=parseInt(_7l[4]);};_cf2["rotate"]=()=>{let value=_7l[1];if(value=="true")_k5._u5=90;else if(value!="false")_k5._u5=parseInt(value);};_cf2["index"]=()=>{_k5.index=parseInt(_7l[1]);
};let _ID=_JZ._df2();while(_ID&&_ID.trim().length==0)_ID=_JZ._df2();while(true){if(!_ID||_ID.trim().length==0)break;if(_JZ._ef2(_7l,_ID)==0)break;_ID=_JZ._df2();}let _mh=null;let values=null;while(true){if(_ID===null)break;if(_ID.trim().length==0){_65=null;_ID=_JZ._df2();}else if(!_65){_65=new _75();_65.name=_ID.trim();while(true){if(_JZ._ef2(_7l,_ID=_JZ._df2())==0)break;let _ff2=_af2[_7l[0]];if(_ff2)_ff2();}this._z5.push(_65);}else {_k5=new _l5();_k5._65=_65;_k5.name=_ID;while(true){let _E8=_JZ._ef2(_7l,
_ID=_JZ._df2());if(_E8==0)break;let _ff2=_cf2[_7l[0]];if(_ff2)_ff2();else {if(!_mh){_mh=[];values=[];}_mh.push(_7l[0]);let _gf2=[];for(let i=0;i<_E8;i++)_gf2.push(parseInt(_7l[i+1]));values.push(_gf2);}}if(_k5._s5==0&&_k5._t5==0){_k5._s5=_k5.width;_k5._t5=_k5.height;}if(_mh&&_mh.length>0){_k5._mh=_mh;_k5.values=values;_mh=null;values=null;}_k5._m5=_k5.x/_65.width;_k5._n5=_k5.y/_65.height;if(_k5._u5==90){_k5._o5=(_k5.x+_k5.height)/_65.width;_k5._p5=(_k5.y+_k5.width)/_65.height;}else {_k5._o5=(_k5.x+_k5.width)/_65.width;
_k5._p5=(_k5.y+_k5.height)/_65.height;}this._A5.push(_k5);}}}_hf2(name){for(let i=0;i<this._A5.length;i++){if(this._A5[i].name==name){return this._A5[i];}}return null;}_if2(_jf2,_kf2=""){for(let _65 of this._z5)_65._Z8(_jf2.get(_kf2+_65.name));}dispose(){for(let i=0;i<this._z5.length;i++){this._z5[i]._95.dispose();}}};var _9f2=class {constructor(text){this.index=0;var _nh=text.replace("\r\n","\n");_nh=_nh.replace("\r","\n");this._jG=text.split("\n");}_df2(){if(this.index>=this._jG.length)return null;return this._jG[this.index++];
}_ef2(_7l,_ID){if(!_ID)return 0;_ID=_ID.trim();if(_ID.length==0)return 0;let _lf2=_ID.indexOf(":");if(_lf2==-1)return 0;_7l[0]=_ID.substr(0,_lf2).trim();for(let i=1,_mf2=_lf2+1;;i++){let _nf2=_ID.indexOf(",",_mf2);if(_nf2==-1){_7l[i]=_ID.substr(_mf2).trim();return i;}_7l[i]=_ID.substr(_mf2,_nf2-_mf2).trim();_mf2=_nf2+1;if(i==4)return 4;}}};var _75=class {constructor(){this._a5=_b5.Nearest;this._c5=_b5.Nearest;this._d5=_e5.ClampToEdge;this._f5=_e5.ClampToEdge;}_Z8(_95){this._95=_95;_95._i5(this._a5,this._c5);
_95._j5(this._d5,this._f5);}};var _l5=class extends _4b2{};var _o9=class extends _ib2{constructor(name){super(name);this.color=new _H4(1,1,1,1);this._of2=new _H4(0,0,0,0);}_pf2(){let _qf2=this._qf2;if(!this.uvs||this.uvs.length!=_qf2.length)this.uvs=_gb2._Wb2(_qf2.length);let uvs=this.uvs;let _I6=this.uvs.length;let _m5=this._k5._m5,_n5=this._k5._n5,width=0,height=0;if(this._k5 instanceof _l5){let _k5=this._k5,_h5=_k5._65._95._l8();let _rf2=_h5.width,_sf2=_h5.height;switch(_k5._u5){case 90:_m5-=(_k5._t5-_k5._r5-_k5.height)/_rf2;
_n5-=(_k5._s5-_k5._q5-_k5.width)/_sf2;width=_k5._t5/_rf2;height=_k5._s5/_sf2;for(let i=0;i<_I6;i+=2){uvs[i]=_m5+_qf2[i+1]*width;uvs[i+1]=_n5+(1-_qf2[i])*height;}return;case 180:_m5-=(_k5._s5-_k5._q5-_k5.width)/_rf2;_n5-=_k5._r5/_sf2;width=_k5._s5/_rf2;height=_k5._t5/_sf2;for(let i=0;i<_I6;i+=2){uvs[i]=_m5+(1-_qf2[i])*width;uvs[i+1]=_n5+(1-_qf2[i+1])*height;}return;case 270:_m5-=_k5._r5/_rf2;_n5-=_k5._q5/_sf2;width=_k5._t5/_rf2;height=_k5._s5/_sf2;for(let i=0;i<_I6;i+=2){uvs[i]=_m5+(1-_qf2[i+1])*width;
uvs[i+1]=_n5+_qf2[i]*height;}return;}_m5-=_k5._q5/_rf2;_n5-=(_k5._t5-_k5._r5-_k5.height)/_sf2;width=_k5._s5/_rf2;height=_k5._t5/_sf2;}else if(!this._k5){_m5=_n5=0;width=height=1;}else {width=this._k5._o5-_m5;height=this._k5._p5-_n5;}for(let i=0;i<_I6;i+=2){uvs[i]=_m5+_qf2[i]*width;uvs[i+1]=_n5+_qf2[i+1]*height;}}_tf2(){return this._uf2;}_vf2(_uf2){this._uf2=_uf2;if(_uf2){this.bones=_uf2.bones;this.vertices=_uf2.vertices;this._S9=_uf2._S9;this._qf2=_uf2._qf2;this.triangles=_uf2.triangles;this._wf2=_uf2._wf2;
this._S9=_uf2._S9;}}_js(){if(this._uf2)return this._xf2();let _js=new _o9(this.name);_js._k5=this._k5;_js.path=this.path;_js.color._I5(this.color);this._sc2(_js);_js._qf2=new Array(this._qf2.length);_gb2._Mb2(this._qf2,0,_js._qf2,0,this._qf2.length);_js.uvs=new Array(this.uvs.length);_gb2._Mb2(this.uvs,0,_js.uvs,0,this.uvs.length);_js.triangles=new Array(this.triangles.length);_gb2._Mb2(this.triangles,0,_js.triangles,0,this.triangles.length);_js._wf2=this._wf2;if(this.edges){_js.edges=new Array(this.edges.length);
_gb2._Mb2(this.edges,0,_js.edges,0,this.edges.length);}_js.width=this.width;_js.height=this.height;return _js;}_xf2(){let _js=new _o9(this.name);_js._k5=this._k5;_js.path=this.path;_js.color._I5(this.color);_js._lc2=this._lc2;_js._vf2(this._uf2?this._uf2:this);_js._pf2();return _js;}};var _ya2=class extends _ib2{constructor(name){super(name);this.closed=false;this._yf2=false;this.color=new _H4(1,1,1,1);}_js(){let _js=new _ya2(this.name);this._sc2(_js);_js.lengths=new Array(this.lengths.length);_gb2._Mb2(this.lengths,
0,_js.lengths,0,this.lengths.length);_js.closed=closed;_js._yf2=this._yf2;_js.color._I5(this.color);return _js;}};var _Ea2=class extends _ib2{constructor(name){super(name);this.color=new _H4(0.38,0.94,0,1);}_zf2(bone,_Cr1){_Cr1.x=this.x*bone._G4+this.y*bone._F4+bone._v7;_Cr1.y=this.x*bone.c+this.y*bone._tm+bone._w7;return _Cr1;}_Af2(bone){let cos=_va2._zb2(this.rotation),sin=_va2._Bb2(this.rotation);let x=cos*bone._G4+sin*bone._F4;let y=cos*bone.c+sin*bone._tm;return Math.atan2(y,x)*_va2._Ib2;}_js(){let _js=new _Ea2(this.name);
_js.x=this.x;_js.y=this.y;_js.rotation=this.rotation;_js.color._I5(this.color);return _js;}};var _Bf2=class extends _3a2{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 _H4(1,1,1,1);this.offset=_gb2._Wb2(8);this.uvs=_gb2._Wb2(8);this._of2=new _H4(1,1,1,1);}_J5(){let _k5=this._k5;let _Cf2=this.width/this._k5._s5*this.scaleX;let _Df2=this.height/this._k5._t5*this.scaleY;let _Ef2=-this.width/2*this.scaleX+this._k5._q5*_Cf2;
let _Ff2=-this.height/2*this.scaleY+this._k5._r5*_Df2;let _Gf2=_Ef2+this._k5.width*_Cf2;let _Hf2=_Ff2+this._k5.height*_Df2;let _If2=this.rotation*Math.PI/180;let cos=Math.cos(_If2);let sin=Math.sin(_If2);let x=this.x,y=this.y;let _Jf2=_Ef2*cos+x;let _Kf2=_Ef2*sin;let _Lf2=_Ff2*cos+y;let _Mf2=_Ff2*sin;let _Nf2=_Gf2*cos+x;let _Of2=_Gf2*sin;let _Pf2=_Hf2*cos+y;let _Qf2=_Hf2*sin;let offset=this.offset;offset[0]=_Jf2-_Mf2;offset[1]=_Lf2+_Kf2;offset[2]=_Jf2-_Qf2;offset[3]=_Pf2+_Kf2;offset[4]=_Nf2-_Qf2;offset[5]=_Pf2+_Of2;
offset[6]=_Nf2-_Mf2;offset[7]=_Lf2+_Of2;}_Rf2(_k5){this._k5=_k5;let uvs=this.uvs;if(_k5._u5==90){uvs[2]=_k5._m5;uvs[3]=_k5._p5;uvs[4]=_k5._m5;uvs[5]=_k5._n5;uvs[6]=_k5._o5;uvs[7]=_k5._n5;uvs[0]=_k5._o5;uvs[1]=_k5._p5;}else {uvs[0]=_k5._m5;uvs[1]=_k5._p5;uvs[2]=_k5._m5;uvs[3]=_k5._n5;uvs[4]=_k5._o5;uvs[5]=_k5._n5;uvs[6]=_k5._o5;uvs[7]=_k5._p5;}}_M9(bone,_mc2,offset,_La){let _Sf2=this.offset;let x=bone._v7,y=bone._w7;let _G4=bone._G4,_F4=bone._F4,c=bone.c,_tm=bone._tm;let _q5=0,_r5=0;_q5=_Sf2[0];_r5=_Sf2[1];
_mc2[offset]=_q5*_G4+_r5*_F4+x;_mc2[offset+1]=_q5*c+_r5*_tm+y;offset+=_La;_q5=_Sf2[2];_r5=_Sf2[3];_mc2[offset]=_q5*_G4+_r5*_F4+x;_mc2[offset+1]=_q5*c+_r5*_tm+y;offset+=_La;_q5=_Sf2[4];_r5=_Sf2[5];_mc2[offset]=_q5*_G4+_r5*_F4+x;_mc2[offset+1]=_q5*c+_r5*_tm+y;offset+=_La;_q5=_Sf2[6];_r5=_Sf2[7];_mc2[offset]=_q5*_G4+_r5*_F4+x;_mc2[offset+1]=_q5*c+_r5*_tm+y;}_js(){let _js=new _Bf2(this.name);_js._k5=this._k5;_js._85=this._85;_js.path=this.path;_js.x=this.x;_js.y=this.y;_js.scaleX=this.scaleX;_js.scaleY=this.scaleY;
_js.rotation=this.rotation;_js.width=this.width;_js.height=this.height;_gb2._Mb2(this.uvs,0,_js.uvs,0,8);_gb2._Mb2(this.offset,0,_js.offset,0,8);_js.color._I5(this.color);return _js;}};var _m9=_Bf2;_m9._Tf2=0;_m9._Uf2=1;_m9._Vf2=2;_m9._Wf2=3;_m9._Xf2=4;_m9._Yf2=5;_m9._Zf2=6;_m9.__f2=7;_m9._0g2=8;_m9._1g2=9;_m9._2g2=10;_m9._3g2=11;_m9._4g2=12;_m9._5g2=13;_m9._6g2=14;_m9._7g2=15;_m9._8g2=16;_m9._9g2=17;_m9._ag2=18;_m9._bg2=19;_m9._cg2=20;_m9._dg2=21;_m9._eg2=22;_m9._fg2=23;_m9._gg2=24;_m9._hg2=25;_m9._ig2=26;
_m9._jg2=27;_m9._kg2=28;_m9._lg2=29;_m9._mg2=30;_m9._ng2=31;var _C5=class {constructor(_x5){this._x5=_x5;}_E5(skin,name,path){let _k5=this._x5._hf2(path);if(!_k5)throw new Error("Region not found in atlas: "+path+" (region attachment: "+name+")");_k5._N9=_k5;let attachment=new _m9(name);attachment._Rf2(_k5);return attachment;}_og2(skin,name,path){let _k5=this._x5._hf2(path);if(!_k5)throw new Error("Region not found in atlas: "+path+" (mesh attachment: "+name+")");_k5._N9=_k5;let attachment=new _o9(name);attachment._k5=_k5;
return attachment;}_pg2(skin,name){return new _q9(name);}_qg2(skin,name){return new _ya2(name);}_rg2(skin,name){return new _Ea2(name);}_sg2(skin,name){return new _T9(name);}};var _7a2=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._lc1=_bb2.Normal;this._tg2=false;this.color=new _H4();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 _bb2;(function(_ug2){_ug2[_ug2["Normal"]=0]="Normal";_ug2[_ug2["OnlyTranslation"]=1]="OnlyTranslation";_ug2[_ug2["NoRotationOrReflection"]=2]="NoRotationOrReflection";_ug2[_ug2["NoScale"]=3]="NoScale";_ug2[_ug2["NoScaleOrReflection"]=4]="NoScaleOrReflection";})(_bb2||(_bb2={}));var _6a2=class {constructor(data,skeleton,parent){this._Dk1=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._B7=0;this._vg2=0;this._wg2=0;this._xg2=0;
this._yg2=0;this._G4=0;this._F4=0;this.c=0;this._tm=0;this._w7=0;this._v7=0;this._zg2=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._Ag2();}_Bg2(){return this.active;}_a6(){this._Cg2(this.ax,this.ay,this._B7,this._vg2,this._wg2,this._xg2,this._yg2);}__5(){this._Cg2(this.x,this.y,this.rotation,this.scaleX,this.scaleY,this.shearX,this.shearY);}_Cg2(x,y,rotation,
scaleX,scaleY,shearX,shearY){this.ax=x;this.ay=y;this._B7=rotation;this._vg2=scaleX;this._wg2=scaleY;this._xg2=shearX;this._yg2=shearY;let parent=this.parent;if(!parent){let skeleton=this.skeleton;let _Dg2=rotation+90+shearY;let _HX=skeleton.scaleX;let _IX=skeleton.scaleY;this._G4=_va2._zb2(rotation+shearX)*scaleX*_HX;this._F4=_va2._zb2(_Dg2)*scaleY*_HX;this.c=_va2._Bb2(rotation+shearX)*scaleX*_IX;this._tm=_va2._Bb2(_Dg2)*scaleY*_IX;this._v7=x*_HX+skeleton.x;this._w7=y*_IX+skeleton.y;return;}let _4E1=parent._G4,
_5E1=parent._F4,_PC1=parent.c,_Eg2=parent._tm;this._v7=_4E1*x+_5E1*y+parent._v7;this._w7=_PC1*x+_Eg2*y+parent._w7;switch(this.data._lc1){case _bb2.Normal:{let _Dg2=rotation+90+shearY;let _Fg2=_va2._zb2(rotation+shearX)*scaleX;let _Gg2=_va2._zb2(_Dg2)*scaleY;let _Hg2=_va2._Bb2(rotation+shearX)*scaleX;let _Ig2=_va2._Bb2(_Dg2)*scaleY;this._G4=_4E1*_Fg2+_5E1*_Hg2;this._F4=_4E1*_Gg2+_5E1*_Ig2;this.c=_PC1*_Fg2+_Eg2*_Hg2;this._tm=_PC1*_Gg2+_Eg2*_Ig2;return;}case _bb2.OnlyTranslation:{let _Dg2=rotation+90+shearY;
this._G4=_va2._zb2(rotation+shearX)*scaleX;this._F4=_va2._zb2(_Dg2)*scaleY;this.c=_va2._Bb2(rotation+shearX)*scaleX;this._tm=_va2._Bb2(_Dg2)*scaleY;break;}case _bb2.NoRotationOrReflection:{let _qi=_4E1*_4E1+_PC1*_PC1;let _Jg2=0;if(_qi>1e-4){_qi=Math.abs(_4E1*_Eg2-_5E1*_PC1)/_qi;_4E1/=this.skeleton.scaleX;_PC1/=this.skeleton.scaleY;_5E1=_PC1*_qi;_Eg2=_4E1*_qi;_Jg2=Math.atan2(_PC1,_4E1)*_va2._Ib2;}else {_4E1=0;_PC1=0;_Jg2=90-Math.atan2(_Eg2,_5E1)*_va2._Ib2;}let _Cz=rotation+shearX-_Jg2;let _Dz=rotation+shearY-_Jg2+90;
let _Fg2=_va2._zb2(_Cz)*scaleX;let _Gg2=_va2._zb2(_Dz)*scaleY;let _Hg2=_va2._Bb2(_Cz)*scaleX;let _Ig2=_va2._Bb2(_Dz)*scaleY;this._G4=_4E1*_Fg2-_5E1*_Hg2;this._F4=_4E1*_Gg2-_5E1*_Ig2;this.c=_PC1*_Fg2+_Eg2*_Hg2;this._tm=_PC1*_Gg2+_Eg2*_Ig2;break;}case _bb2.NoScale:case _bb2.NoScaleOrReflection:{let cos=_va2._zb2(rotation);let sin=_va2._Bb2(rotation);let _2w=(_4E1*cos+_5E1*sin)/this.skeleton.scaleX;let _Kg2=(_PC1*cos+_Eg2*sin)/this.skeleton.scaleY;let _qi=Math.sqrt(_2w*_2w+_Kg2*_Kg2);if(_qi>1e-5)_qi=1/_qi;_2w*=_qi;
_Kg2*=_qi;_qi=Math.sqrt(_2w*_2w+_Kg2*_Kg2);if(this.data._lc1==_bb2.NoScale&&_4E1*_Eg2-_5E1*_PC1<0!=(this.skeleton.scaleX<0!=this.skeleton.scaleY<0))_qi=-_qi;let _D4=Math.PI/2+Math.atan2(_Kg2,_2w);let _Lg2=Math.cos(_D4)*_qi;let _Mg2=Math.sin(_D4)*_qi;let _Fg2=_va2._zb2(shearX)*scaleX;let _Gg2=_va2._zb2(90+shearY)*scaleY;let _Hg2=_va2._Bb2(shearX)*scaleX;let _Ig2=_va2._Bb2(90+shearY)*scaleY;this._G4=_2w*_Fg2+_Lg2*_Hg2;this._F4=_2w*_Gg2+_Lg2*_Ig2;this.c=_Kg2*_Fg2+_Mg2*_Hg2;this._tm=_Kg2*_Gg2+_Mg2*_Ig2;break;
}}this._G4*=this.skeleton.scaleX;this._F4*=this.skeleton.scaleX;this.c*=this.skeleton.scaleY;this._tm*=this.skeleton.scaleY;}_Ag2(){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;}_x7(){return Math.atan2(this.c,this._G4)*_va2._Ib2;}_y7(){return Math.atan2(this._tm,this._F4)*_va2._Ib2;}_z7(){return Math.sqrt(this._G4*this._G4+this.c*this.c);}_A7(){return Math.sqrt(this._F4*this._F4+this._tm*this._tm);
}_Ng2(){let parent=this.parent;if(!parent){this.ax=this._v7-this.skeleton.x;this.ay=this._w7-this.skeleton.y;this._B7=Math.atan2(this.c,this._G4)*_va2._Ib2;this._vg2=Math.sqrt(this._G4*this._G4+this.c*this.c);this._wg2=Math.sqrt(this._F4*this._F4+this._tm*this._tm);this._xg2=0;this._yg2=Math.atan2(this._G4*this._F4+this.c*this._tm,this._G4*this._tm-this._F4*this.c)*_va2._Ib2;return;}let _4E1=parent._G4,_5E1=parent._F4,_PC1=parent.c,_Eg2=parent._tm;let _Og2=1/(_4E1*_Eg2-_5E1*_PC1);let _fb=this._v7-parent._v7,
_gb=this._w7-parent._w7;this.ax=_fb*_Eg2*_Og2-_gb*_5E1*_Og2;this.ay=_gb*_4E1*_Og2-_fb*_PC1*_Og2;let _Pg2=_Og2*_Eg2;let id=_Og2*_4E1;let _Qg2=_Og2*_5E1;let _Rg2=_Og2*_PC1;let _Sg2=_Pg2*this._G4-_Qg2*this.c;let _Tg2=_Pg2*this._F4-_Qg2*this._tm;let _Ug2=id*this.c-_Rg2*this._G4;let _Vg2=id*this._tm-_Rg2*this._F4;this._xg2=0;this._vg2=Math.sqrt(_Sg2*_Sg2+_Ug2*_Ug2);if(this._vg2>1e-4){let _2m1=_Sg2*_Vg2-_Tg2*_Ug2;this._wg2=_2m1/this._vg2;this._yg2=Math.atan2(_Sg2*_Tg2+_Ug2*_Vg2,_2m1)*_va2._Ib2;this._B7=Math.atan2(_Ug2,
_Sg2)*_va2._Ib2;}else {this._vg2=0;this._wg2=Math.sqrt(_Tg2*_Tg2+_Vg2*_Vg2);this._yg2=0;this._B7=90-Math.atan2(_Vg2,_Tg2)*_va2._Ib2;}}_E7(_Tw1){let _Wg2=1/(this._G4*this._tm-this._F4*this.c);let x=_Tw1.x-this._v7,y=_Tw1.y-this._w7;_Tw1.x=x*this._tm*_Wg2-y*this._F4*_Wg2;_Tw1.y=y*this._G4*_Wg2-x*this.c*_Wg2;return _Tw1;}_Xg2(_Di){let x=_Di.x,y=_Di.y;_Di.x=x*this._G4+y*this._F4+this._v7;_Di.y=x*this.c+y*this._tm+this._w7;return _Di;}_Yg2(_Zg2){let sin=_va2._Bb2(_Zg2),cos=_va2._zb2(_Zg2);return Math.atan2(this._G4*sin-this.c*cos,
this._tm*cos-this._F4*sin)*_va2._Ib2+this.rotation-this.shearX;}__g2(_0h2){_0h2-=this.rotation-this.shearX;let sin=_va2._Bb2(_0h2),cos=_va2._zb2(_0h2);return Math.atan2(cos*this.c+sin*this._tm,cos*this._G4+sin*this._F4)*_va2._Ib2;}_1h2(_u5){let _G4=this._G4,_F4=this._F4,c=this.c,_tm=this._tm;let cos=_va2._zb2(_u5),sin=_va2._Bb2(_u5);this._G4=cos*_G4-sin*c;this._F4=cos*_F4-sin*_tm;this.c=sin*_G4+cos*c;this._tm=sin*_F4+cos*_tm;}};var _9a2=class {constructor(name,_2h2,_tg2){this.name=name;this._2h2=_2h2;
this._tg2=_tg2;}};var _2a2=class {constructor(_3h2,_kf2="",_4h2=null){this.assets={};this._5h2={};this._6h2=0;this._Qh=0;this._3h2=_3h2;this._kf2=_kf2;this._4h2=_4h2||new _fa2();}start(path){this._6h2++;return this._kf2+path;}_EZ(_Gg1,path,_t81){this._6h2--;this._Qh++;this.assets[path]=_t81;if(_Gg1)_Gg1(path,_t81);}error(_Gg1,path,message){this._6h2--;this._Qh++;this._5h2[path]=message;if(_Gg1)_Gg1(path,message);}_7h2(path,data){this._4h2._8h2[this._kf2+path]=data;}_9h2(path,_EZ=null,error=null){path=this.start(path);
this._4h2._ah2(path,(data)=>{this._EZ(_EZ,path,data);},(status,responseText)=>{this.error(error,path,"Couldn't load binary "+path+": status "+status+", "+responseText);});}_bh2(path,_EZ=null,error=null){path=this.start(path);this._4h2._ch2(path,(data)=>{this._EZ(_EZ,path,data);},(status,responseText)=>{this.error(error,path,"Couldn't load text "+path+": status "+status+", "+responseText);});}_dh2(path,_EZ=null,error=null){path=this.start(path);this._4h2._eh2(path,(data)=>{this._EZ(_EZ,path,data);
},(status,responseText)=>{this.error(error,path,"Couldn't load JSON "+path+": status "+status+", "+responseText);});}_Q8(path,_EZ=null,error=null){path=this.start(path);let _fh2=!!(typeof window!=="undefined"&&typeof navigator!=="undefined"&&window.document);let _gh2=!_fh2;if(_gh2){_hh2(path,{mode:"cors"}).then((response)=>{if(response._BE)return response._ih2();this.error(error,path,"Couldn't load image: "+path);return null;}).then((_ih2)=>{return _ih2?_jh2(_ih2,{_kh2:"none",_lh2:"none"}):null;}).then((_mh2)=>{
if(_mh2)this._EZ(_EZ,path,this._3h2(_mh2));});}else {let _h5=new Image();_h5.crossOrigin=_JM;_h5.onload=()=>{this._EZ(_EZ,path,this._3h2(_h5));};_h5.onerror=()=>{this.error(error,path,"Couldn't load image: "+path);};if(this._4h2._8h2[path])path=this._4h2._8h2[path];_h5.src=_CG(null,null,path);}}_nh2(path,_EZ=null,error=null){let index=path.lastIndexOf("/");let parent=index>=0?path.substring(0,index+1):"";path=this.start(path);this._4h2._ch2(path,(_8f2)=>{try{let _x5=new _y5(_8f2);let _6h2=_x5._z5.length,
_oh2=false;for(let _65 of _x5._z5){this._Q8(parent+_65.name,(_ph2,_95)=>{if(!_oh2){_65._Z8(_95);if(--_6h2==0)this._EZ(_EZ,path,_x5);}},(_ph2,message)=>{if(!_oh2)this.error(error,path,"Couldn't load texture atlas "+path+" page image: "+_ph2);_oh2=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._kf2+path];
}require(path){path=this._kf2+path;let _t81=this.assets[path];if(_t81)return _t81;let error=this._5h2[path];throw Error("Asset not found: "+path+(error?"\n"+error:""));}remove(path){path=this._kf2+path;let _t81=this.assets[path];if(_t81.dispose)_t81.dispose();delete this.assets[path];return _t81;}_qh2(){for(let key in this.assets){let _t81=this.assets[key];if(_t81.dispose)_t81.dispose();}this.assets={};}_rh2(){return this._6h2==0;}_sh2(){return this._6h2;}_th2(){return this._Qh;}dispose(){this._qh2();}_uh2(){
return Object._Yg(this._5h2).length>0;}_vh2(){return this._5h2;}};var _fa2=class {constructor(){this._wh2={};this._8h2={};}_xh2(_yh2){if(!_yh2.startsWith("data:")){throw new Error("Not a data URI.");}let _zh2=_yh2.indexOf("base64,");if(_zh2!=-1){_zh2+="base64,".length;return _Ah2(_yh2.substr(_zh2));}else {return _yh2.substr(_yh2.indexOf(",")+1);}}_Bh2(_Ih){var _Ch2=window._Ah2(_Ih);var _0j=_Ch2.length;var _5h=new Uint8Array(_0j);for(var i=0;i<_0j;i++){_5h[i]=_Ch2.charCodeAt(i);}return _5h;}_Dh2(_yh2){if(!_yh2.startsWith("data:")){
throw new Error("Not a data URI.");}let _zh2=_yh2.indexOf("base64,");if(_zh2==-1)throw new Error("Not a binary data URI.");_zh2+="base64,".length;return this._Bh2(_yh2.substr(_zh2));}_ch2(_Gh,_EZ,error){if(this.start(_Gh,_EZ,error))return;if(this._8h2[_Gh]){try{let _yh2=this._8h2[_Gh];this._UP1(_Gh,200,this._xh2(_yh2));}catch(e){this._UP1(_Gh,400,JSON.stringify(e));}return;}let _m91=new XMLHttpRequest();_m91.overrideMimeType("text/html");_m91.open("GET",_Gh,true);let _xw1=()=>{this._UP1(_Gh,_m91.status,_m91.responseText);
};_m91.onload=_xw1;_m91.onerror=_xw1;_m91.send();}_eh2(_Gh,_EZ,error){this._ch2(_Gh,(data)=>{_EZ(JSON.parse(data));},error);}_ah2(_Gh,_EZ,error){if(this.start(_Gh,_EZ,error))return;if(this._8h2[_Gh]){try{let _yh2=this._8h2[_Gh];this._UP1(_Gh,200,this._Dh2(_yh2));}catch(e){this._UP1(_Gh,400,JSON.stringify(e));}return;}let _m91=new XMLHttpRequest();_m91.open("GET",_Gh,true);_m91.responseType="arraybuffer";let onerror=()=>{this._UP1(_Gh,_m91.status,_m91.response);};_m91.onload=()=>{if(_m91.status==200)this._UP1(_Gh,
200,new Uint8Array(_m91.response));else onerror();};_m91.onerror=onerror;_m91.send();}start(_Gh,_EZ,error){let _wh2=this._wh2[_Gh];try{if(_wh2)return true;this._wh2[_Gh]=_wh2=[];}finally{_wh2.push(_EZ,error);}}_UP1(_Gh,status,data){let _wh2=this._wh2[_Gh];delete this._wh2[_Gh];let _yk=status==200?[data]:[status,data];for(let i=_yk.length-1,_I6=_wh2.length;i<_I6;i+=2)_wh2[i].apply(null,_yk);}};var Event=class {constructor(time,data){if(!data)throw new Error("data cannot be null.");this.time=time;this.data=data;
}};var _ha2=class {constructor(name){this.name=name;}};var _pa2=class {constructor(data,skeleton){this._rd2=0;this.compress=false;this.stretch=false;this.mix=1;this._qd2=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._qd2=data._qd2;this._rd2=data._rd2;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._q7(data.bones[i].name));
this.target=skeleton._q7(data.target.name);}_Bg2(){return this.active;}_a6(){if(this.mix==0)return;let target=this.target;let bones=this.bones;switch(bones.length){case 1:this._Eh2(bones[0],target._v7,target._w7,this.compress,this.stretch,this.data._Fh2,this.mix);break;case 2:this._Gh2(bones[0],bones[1],target._v7,target._w7,this._rd2,this.stretch,this.data._Fh2,this._qd2,this.mix);break;}}_Eh2(bone,_Hh2,_Ih2,compress,stretch,_Fh2,alpha){let _ih=bone.parent;let _4E1=_ih._G4,_5E1=_ih._F4,_PC1=_ih.c,_Eg2=_ih._tm;
let _Jh2=-bone._xg2-bone._B7,_tY=0,_uY=0;switch(bone.data._lc1){case _bb2.OnlyTranslation:_tY=_Hh2-bone._v7;_uY=_Ih2-bone._w7;break;case _bb2.NoRotationOrReflection:let _qi=Math.abs(_4E1*_Eg2-_5E1*_PC1)/(_4E1*_4E1+_PC1*_PC1);let _Kh2=_4E1/bone.skeleton.scaleX;let _Lh2=_PC1/bone.skeleton.scaleY;_5E1=-_Lh2*_qi*bone.skeleton.scaleX;_Eg2=_Kh2*_qi*bone.skeleton.scaleY;_Jh2+=Math.atan2(_Lh2,_Kh2)*_va2._Ib2;default :let x=_Hh2-_ih._v7,y=_Ih2-_ih._w7;let _tm=_4E1*_Eg2-_5E1*_PC1;_tY=(x*_Eg2-y*_5E1)/_tm-bone.ax;_uY=(y*_4E1-x*_PC1)/_tm-bone.ay;
}_Jh2+=Math.atan2(_uY,_tY)*_va2._Ib2;if(bone._vg2<0)_Jh2+=180;if(_Jh2>180)_Jh2-=360;else if(_Jh2<-180)_Jh2+=360;let _HX=bone._vg2,_IX=bone._wg2;if(compress||stretch){switch(bone.data._lc1){case _bb2.NoScale:case _bb2.NoScaleOrReflection:_tY=_Hh2-bone._v7;_uY=_Ih2-bone._w7;}let _F4=bone.data.length*_HX,_8L=Math.sqrt(_tY*_tY+_uY*_uY);if(compress&&_8L<_F4||stretch&&_8L>_F4&&_F4>1e-4){let _qi=(_8L/_F4-1)*alpha+1;_HX*=_qi;if(_Fh2)_IX*=_qi;}}bone._Cg2(bone.ax,bone.ay,bone._B7+_Jh2*alpha,_HX,_IX,bone._xg2,bone._yg2);
}_Gh2(parent,_Mh2,_Hh2,_Ih2,_Nh2,stretch,_Fh2,_qd2,alpha){let _0u=parent.ax,_1u=parent.ay,_Oh2=parent._vg2,_Ph2=parent._wg2,_HX=_Oh2,_IX=_Ph2,_Qh2=_Mh2._vg2;let _Rh2=0,_Sh2=0,_1B=0;if(_Oh2<0){_Oh2=-_Oh2;_Rh2=180;_1B=-1;}else {_Rh2=0;_1B=1;}if(_Ph2<0){_Ph2=-_Ph2;_1B=-_1B;}if(_Qh2<0){_Qh2=-_Qh2;_Sh2=180;}else _Sh2=0;let _Nt=_Mh2.ax,_Ot=0,_Th2=0,_Uh2=0,_G4=parent._G4,_F4=parent._F4,c=parent.c,_tm=parent._tm;let _m5=Math.abs(_Oh2-_Ph2)<=1e-4;if(!_m5||stretch){_Ot=0;_Th2=_G4*_Nt+parent._v7;_Uh2=c*_Nt+parent._w7;
}else {_Ot=_Mh2.ay;_Th2=_G4*_Nt+_F4*_Ot+parent._v7;_Uh2=c*_Nt+_tm*_Ot+parent._w7;}let _Vh2=parent.parent;_G4=_Vh2._G4;_F4=_Vh2._F4;c=_Vh2.c;_tm=_Vh2._tm;let id=1/(_G4*_tm-_F4*c),x=_Th2-_Vh2._v7,y=_Uh2-_Vh2._w7;let _fb=(x*_tm-y*_F4)*id-_0u,_gb=(y*_G4-x*c)*id-_1u;let _Wh2=Math.sqrt(_fb*_fb+_gb*_gb),_mU1=_Mh2.data.length*_Qh2,_re1,_se1;if(_Wh2<1e-4){this._Eh2(parent,_Hh2,_Ih2,false,stretch,false,alpha);_Mh2._Cg2(_Nt,_Ot,0,_Mh2._vg2,_Mh2._wg2,_Mh2._xg2,_Mh2._yg2);return;}x=_Hh2-_Vh2._v7;y=_Ih2-_Vh2._w7;let _tY=(x*_tm-y*_F4)*id-_0u,
_uY=(y*_G4-x*c)*id-_1u;let _8L=_tY*_tY+_uY*_uY;if(_qd2!=0){_qd2*=_Oh2*(_Qh2+1)*0.5;let _Xh2=Math.sqrt(_8L),_Yh2=_Xh2-_Wh2-_mU1*_Oh2+_qd2;if(_Yh2>0){let _ih=Math.min(1,_Yh2/(_qd2*2))-1;_ih=(_Yh2-_qd2*(1-_ih*_ih))/_Xh2;_tY-=_ih*_tY;_uY-=_ih*_uY;_8L=_tY*_tY+_uY*_uY;}}_Qe2:if(_m5){_mU1*=_Oh2;let cos=(_8L-_Wh2*_Wh2-_mU1*_mU1)/(2*_Wh2*_mU1);if(cos<-1){cos=-1;_se1=Math.PI*_Nh2;}else if(cos>1){cos=1;_se1=0;if(stretch){_G4=(Math.sqrt(_8L)/(_Wh2+_mU1)-1)*alpha+1;_HX*=_G4;if(_Fh2)_IX*=_G4;}}else _se1=Math.acos(cos)*_Nh2;
_G4=_Wh2+_mU1*cos;_F4=_mU1*Math.sin(_se1);_re1=Math.atan2(_uY*_G4-_tY*_F4,_tY*_G4+_uY*_F4);}else {_G4=_Oh2*_mU1;_F4=_Ph2*_mU1;let _Zh2=_G4*_G4,_dK=_F4*_F4,__h2=Math.atan2(_uY,_tY);c=_dK*_Wh2*_Wh2+_Zh2*_8L-_Zh2*_dK;let _8h=-2*_dK*_Wh2,_9h=_dK-_Zh2;_tm=_8h*_8h-4*_9h*c;if(_tm>=0){let q=Math.sqrt(_tm);if(_8h<0)q=-q;q=-(_8h+q)*0.5;let _PF1=q/_9h,_iH=c/q;let _D4=Math.abs(_PF1)<Math.abs(_iH)?_PF1:_iH;if(_D4*_D4<=_8L){y=Math.sqrt(_8L-_D4*_D4)*_Nh2;_re1=__h2-Math.atan2(y,_D4);_se1=Math.atan2(y/_Ph2,(_D4-_Wh2)/_Oh2);
break _Qe2;}}let _0i2=_va2.PI,_p6=_Wh2-_G4,_1i2=_p6*_p6,_r6=0;let _2i2=0,_q6=_Wh2+_G4,_3i2=_q6*_q6,_s6=0;c=-_G4*_Wh2/(_Zh2-_dK);if(c>=-1&&c<=1){c=Math.acos(c);x=_G4*Math.cos(c)+_Wh2;y=_F4*Math.sin(c);_tm=x*x+y*y;if(_tm<_1i2){_0i2=c;_1i2=_tm;_p6=x;_r6=y;}if(_tm>_3i2){_2i2=c;_3i2=_tm;_q6=x;_s6=y;}}if(_8L<=(_1i2+_3i2)*0.5){_re1=__h2-Math.atan2(_r6*_Nh2,_p6);_se1=_0i2*_Nh2;}else {_re1=__h2-Math.atan2(_s6*_Nh2,_q6);_se1=_2i2*_Nh2;}}let _TQ1=Math.atan2(_Ot,_Nt)*_1B;let rotation=parent._B7;_re1=(_re1-_TQ1)*_va2._Ib2+_Rh2-rotation;
if(_re1>180)_re1-=360;else if(_re1<-180)_re1+=360;parent._Cg2(_0u,_1u,rotation+_re1*alpha,_HX,_IX,0,0);rotation=_Mh2._B7;_se1=((_se1+_TQ1)*_va2._Ib2-_Mh2._xg2)*_1B+_Sh2-rotation;if(_se1>180)_se1-=360;else if(_se1<-180)_se1+=360;_Mh2._Cg2(_Nt,_Ot,rotation+_se1*alpha,_Mh2._vg2,_Mh2._wg2,_Mh2._xg2,_Mh2._yg2);}};var _qa2=class extends _9a2{constructor(name){super(name,0,false);this.bones=new Array();this._rd2=1;this.compress=false;this.stretch=false;this._Fh2=false;this.mix=1;this._qd2=0;}};var _Aa2=class extends _9a2{
constructor(name){super(name,0,false);this.bones=new Array();this._vd2=0;this._wd2=0;this._xd2=0;}};var _Ga2;(function(_4i2){_4i2[_4i2["Fixed"]=0]="Fixed";_4i2[_4i2["Percent"]=1]="Percent";})(_Ga2||(_Ga2={}));var _1b2;(function(_5i2){_5i2[_5i2["Length"]=0]="Length";_5i2[_5i2["Fixed"]=1]="Fixed";_5i2[_5i2["Percent"]=2]="Percent";_5i2[_5i2["Proportional"]=3]="Proportional";})(_1b2||(_1b2={}));var _Na2;(function(_6i2){_6i2[_6i2["Tangent"]=0]="Tangent";_6i2[_6i2["Chain"]=1]="Chain";_6i2[_6i2["ChainScale"]=2]="ChainScale";
})(_Na2||(_Na2={}));var _7i2=class {constructor(data,skeleton){this.position=0;this.spacing=0;this._vd2=0;this._wd2=0;this._xd2=0;this._8i2=new Array();this._Az1=new Array();this._Tw1=new Array();this._Gc2=new Array();this.lengths=new Array();this._Ti=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,_I6=data.bones.length;i<_I6;i++)this.bones.push(skeleton._q7(data.bones[i].name));
this.target=skeleton._v4(data.target.name);this.position=data.position;this.spacing=data.spacing;this._vd2=data._vd2;this._wd2=data._wd2;this._xd2=data._xd2;}_Bg2(){return this.active;}_a6(){let attachment=this.target._z4();if(!(attachment instanceof _ya2))return;let _vd2=this._vd2,_wd2=this._wd2,_xd2=this._xd2;if(_vd2==0&&_wd2==0&&_xd2==0)return;let data=this.data;let _9i2=data.rotateMode==_Na2.Tangent,scale=data.rotateMode==_Na2.ChainScale;let bones=this.bones;let _ai2=bones.length,_bi2=_9i2?_ai2:_ai2+1;
let _8i2=_gb2._Tb2(this._8i2,_bi2),lengths=scale?this.lengths=_gb2._Tb2(this.lengths,_ai2):null;let spacing=this.spacing;switch(data.spacingMode){case _1b2.Percent:if(scale){for(let i=0,_I6=_bi2-1;i<_I6;i++){let bone=bones[i];let _ci2=bone.data.length;if(_ci2<_7i2._T52)lengths[i]=0;else {let x=_ci2*bone._G4,y=_ci2*bone.c;lengths[i]=Math.sqrt(x*x+y*y);}}}_gb2._Qb2(_8i2,1,_bi2,spacing);break;case _1b2._di2:let _ei2=0;for(let i=0,_I6=_bi2-1;i<_I6;){let bone=bones[i];let _ci2=bone.data.length;if(_ci2<_7i2._T52){
if(scale)lengths[i]=0;_8i2[++i]=spacing;}else {let x=_ci2*bone._G4,y=_ci2*bone.c;let length=Math.sqrt(x*x+y*y);if(scale)lengths[i]=length;_8i2[++i]=length;_ei2+=length;}}if(_ei2>0){_ei2=_bi2/_ei2*spacing;for(let i=1;i<_bi2;i++)_8i2[i]*=_ei2;}break;default :let _fi2=data.spacingMode==_1b2.Length;for(let i=0,_I6=_bi2-1;i<_I6;){let bone=bones[i];let _ci2=bone.data.length;if(_ci2<_7i2._T52){if(scale)lengths[i]=0;_8i2[++i]=spacing;}else {let x=_ci2*bone._G4,y=_ci2*bone.c;let length=Math.sqrt(x*x+y*y);if(scale)lengths[i]=length;
_8i2[++i]=(_fi2?_ci2+spacing:spacing)*length/_ci2;}}}let _Az1=this._gi2(attachment,_bi2,_9i2);let _hi2=_Az1[0],_ii2=_Az1[1],_ji2=data._ji2;let _ki2=false;if(_ji2==0)_ki2=data.rotateMode==_Na2.Chain;else {_ki2=false;let _ih=this.target.bone;_ji2*=_ih._G4*_ih._tm-_ih._F4*_ih.c>0?_va2._Ab2:-_va2._Ab2;}for(let i=0,_ih=3;i<_ai2;i++,_ih+=3){let bone=bones[i];bone._v7+=(_hi2-bone._v7)*_wd2;bone._w7+=(_ii2-bone._w7)*_xd2;let x=_Az1[_ih],y=_Az1[_ih+1],_fb=x-_hi2,_gb=y-_ii2;if(scale){let length=lengths[i];if(length!=0){
let _qi=(Math.sqrt(_fb*_fb+_gb*_gb)/length-1)*_vd2+1;bone._G4*=_qi;bone.c*=_qi;}}_hi2=x;_ii2=y;if(_vd2>0){let _G4=bone._G4,_F4=bone._F4,c=bone.c,_tm=bone._tm,_D4=0,cos=0,sin=0;if(_9i2)_D4=_Az1[_ih-1];else if(_8i2[i+1]==0)_D4=_Az1[_ih+2];else _D4=Math.atan2(_gb,_fb);_D4-=Math.atan2(c,_G4);if(_ki2){cos=Math.cos(_D4);sin=Math.sin(_D4);let length=bone.data.length;_hi2+=(length*(cos*_G4-sin*c)-_fb)*_vd2;_ii2+=(length*(sin*_G4+cos*c)-_gb)*_vd2;}else {_D4+=_ji2;}if(_D4>_va2.PI)_D4-=_va2._Gb2;else if(_D4<-_va2.PI)_D4+=_va2._Gb2;
_D4*=_vd2;cos=Math.cos(_D4);sin=Math.sin(_D4);bone._G4=cos*_G4-sin*c;bone._F4=cos*_F4-sin*_tm;bone.c=sin*_G4+cos*c;bone._tm=sin*_F4+cos*_tm;}bone._Ng2();}}_gi2(path,_bi2,_9i2){let target=this.target;let position=this.position;let _8i2=this._8i2,out=_gb2._Tb2(this._Az1,_bi2*3+2),_Tw1=null;let _li2=path.closed;let _mi2=path._S9,_ni2=_mi2/6,_oi2=_7i2._pi2;if(!path._yf2){let lengths=path.lengths;_ni2-=_li2?1:2;let _qi2=lengths[_ni2];if(this.data._ri2==_Ga2.Percent)position*=_qi2;let _si2;switch(this.data.spacingMode){
case _1b2.Percent:_si2=_qi2;break;case _1b2._di2:_si2=_qi2/_bi2;break;default :_si2=1;}_Tw1=_gb2._Tb2(this._Tw1,8);for(let i=0,_UE=0,curve=0;i<_bi2;i++,_UE+=3){let _ti2=_8i2[i]*_si2;position+=_ti2;let _ih=position;if(_li2){_ih%=_qi2;if(_ih<0)_ih+=_qi2;curve=0;}else if(_ih<0){if(_oi2!=_7i2._ui2){_oi2=_7i2._ui2;path._M9(target,2,4,_Tw1,0,2);}this._vi2(_ih,_Tw1,0,out,_UE);continue;}else if(_ih>_qi2){if(_oi2!=_7i2._wi2){_oi2=_7i2._wi2;path._M9(target,_mi2-6,4,_Tw1,0,2);}this._xi2(_ih-_qi2,_Tw1,0,out,_UE);continue;
}for(;;curve++){let length=lengths[curve];if(_ih>length)continue;if(curve==0)_ih/=length;else {let _9l=lengths[curve-1];_ih=(_ih-_9l)/(length-_9l);}break;}if(curve!=_oi2){_oi2=curve;if(_li2&&curve==_ni2){path._M9(target,_mi2-4,4,_Tw1,0,2);path._M9(target,0,4,_Tw1,4,2);}else path._M9(target,curve*6+2,8,_Tw1,0,2);}this._yi2(_ih,_Tw1[0],_Tw1[1],_Tw1[2],_Tw1[3],_Tw1[4],_Tw1[5],_Tw1[6],_Tw1[7],out,_UE,_9i2||i>0&&_ti2==0);}return out;}if(_li2){_mi2+=2;_Tw1=_gb2._Tb2(this._Tw1,_mi2);path._M9(target,2,_mi2-4,
_Tw1,0,2);path._M9(target,0,2,_Tw1,_mi2-4,2);_Tw1[_mi2-2]=_Tw1[0];_Tw1[_mi2-1]=_Tw1[1];}else {_ni2--;_mi2-=4;_Tw1=_gb2._Tb2(this._Tw1,_mi2);path._M9(target,2,_mi2,_Tw1,0,2);}let _Gc2=_gb2._Tb2(this._Gc2,_ni2);let _zi2=0;let _L6=_Tw1[0],_M6=_Tw1[1],_Oc2=0,_Pc2=0,_Qc2=0,_Rc2=0,_N6=0,_O6=0;let _Tc2=0,_Uc2=0,_Ai2=0,_Bi2=0,_Ci2=0,_Di2=0,_Ei2=0,_Fi2=0;for(let i=0,w=2;i<_ni2;i++,w+=6){_Oc2=_Tw1[w];_Pc2=_Tw1[w+1];_Qc2=_Tw1[w+2];_Rc2=_Tw1[w+3];_N6=_Tw1[w+4];_O6=_Tw1[w+5];_Tc2=(_L6-_Oc2*2+_Qc2)*0.1875;_Uc2=(_M6-_Pc2*2+_Rc2)*0.1875;
_Ai2=((_Oc2-_Qc2)*3-_L6+_N6)*0.09375;_Bi2=((_Pc2-_Rc2)*3-_M6+_O6)*0.09375;_Ci2=_Tc2*2+_Ai2;_Di2=_Uc2*2+_Bi2;_Ei2=(_Oc2-_L6)*0.75+_Tc2+_Ai2*0.16666667;_Fi2=(_Pc2-_M6)*0.75+_Uc2+_Bi2*0.16666667;_zi2+=Math.sqrt(_Ei2*_Ei2+_Fi2*_Fi2);_Ei2+=_Ci2;_Fi2+=_Di2;_Ci2+=_Ai2;_Di2+=_Bi2;_zi2+=Math.sqrt(_Ei2*_Ei2+_Fi2*_Fi2);_Ei2+=_Ci2;_Fi2+=_Di2;_zi2+=Math.sqrt(_Ei2*_Ei2+_Fi2*_Fi2);_Ei2+=_Ci2+_Ai2;_Fi2+=_Di2+_Bi2;_zi2+=Math.sqrt(_Ei2*_Ei2+_Fi2*_Fi2);_Gc2[i]=_zi2;_L6=_N6;_M6=_O6;}if(this.data._ri2==_Ga2.Percent)position*=_zi2;
let _712;switch(this.data.spacingMode){case _1b2.Percent:_712=_zi2;break;case _1b2._di2:_712=_zi2/_bi2;break;default :_712=1;}let _Ti=this._Ti;let _Gi2=0;for(let i=0,_UE=0,curve=0,_Hi2=0;i<_bi2;i++,_UE+=3){let _ti2=_8i2[i]*_712;position+=_ti2;let _ih=position;if(_li2){_ih%=_zi2;if(_ih<0)_ih+=_zi2;curve=0;}else if(_ih<0){this._vi2(_ih,_Tw1,0,out,_UE);continue;}else if(_ih>_zi2){this._xi2(_ih-_zi2,_Tw1,_mi2-4,out,_UE);continue;}for(;;curve++){let length=_Gc2[curve];if(_ih>length)continue;if(curve==0)_ih/=length;
else {let _9l=_Gc2[curve-1];_ih=(_ih-_9l)/(length-_9l);}break;}if(curve!=_oi2){_oi2=curve;let _7F=curve*6;_L6=_Tw1[_7F];_M6=_Tw1[_7F+1];_Oc2=_Tw1[_7F+2];_Pc2=_Tw1[_7F+3];_Qc2=_Tw1[_7F+4];_Rc2=_Tw1[_7F+5];_N6=_Tw1[_7F+6];_O6=_Tw1[_7F+7];_Tc2=(_L6-_Oc2*2+_Qc2)*0.03;_Uc2=(_M6-_Pc2*2+_Rc2)*0.03;_Ai2=((_Oc2-_Qc2)*3-_L6+_N6)*6e-3;_Bi2=((_Pc2-_Rc2)*3-_M6+_O6)*6e-3;_Ci2=_Tc2*2+_Ai2;_Di2=_Uc2*2+_Bi2;_Ei2=(_Oc2-_L6)*0.3+_Tc2+_Ai2*0.16666667;_Fi2=(_Pc2-_M6)*0.3+_Uc2+_Bi2*0.16666667;_Gi2=Math.sqrt(_Ei2*_Ei2+_Fi2*_Fi2);
_Ti[0]=_Gi2;for(_7F=1;_7F<8;_7F++){_Ei2+=_Ci2;_Fi2+=_Di2;_Ci2+=_Ai2;_Di2+=_Bi2;_Gi2+=Math.sqrt(_Ei2*_Ei2+_Fi2*_Fi2);_Ti[_7F]=_Gi2;}_Ei2+=_Ci2;_Fi2+=_Di2;_Gi2+=Math.sqrt(_Ei2*_Ei2+_Fi2*_Fi2);_Ti[8]=_Gi2;_Ei2+=_Ci2+_Ai2;_Fi2+=_Di2+_Bi2;_Gi2+=Math.sqrt(_Ei2*_Ei2+_Fi2*_Fi2);_Ti[9]=_Gi2;_Hi2=0;}_ih*=_Gi2;for(;;_Hi2++){let length=_Ti[_Hi2];if(_ih>length)continue;if(_Hi2==0)_ih/=length;else {let _9l=_Ti[_Hi2-1];_ih=_Hi2+(_ih-_9l)/(length-_9l);}break;}this._yi2(_ih*0.1,_L6,_M6,_Oc2,_Pc2,_Qc2,_Rc2,_N6,_O6,out,
_UE,_9i2||i>0&&_ti2==0);}return out;}_vi2(_ih,_pK,i,out,_UE){let _L6=_pK[i],_M6=_pK[i+1],_fb=_pK[i+2]-_L6,_gb=_pK[i+3]-_M6,_D4=Math.atan2(_gb,_fb);out[_UE]=_L6+_ih*Math.cos(_D4);out[_UE+1]=_M6+_ih*Math.sin(_D4);out[_UE+2]=_D4;}_xi2(_ih,_pK,i,out,_UE){let _L6=_pK[i+2],_M6=_pK[i+3],_fb=_L6-_pK[i],_gb=_M6-_pK[i+1],_D4=Math.atan2(_gb,_fb);out[_UE]=_L6+_ih*Math.cos(_D4);out[_UE+1]=_M6+_ih*Math.sin(_D4);out[_UE+2]=_D4;}_yi2(_ih,_L6,_M6,_Oc2,_Pc2,_Qc2,_Rc2,_N6,_O6,out,_UE,_9i2){if(_ih==0||isNaN(_ih)){out[_UE]=_L6;
out[_UE+1]=_M6;out[_UE+2]=Math.atan2(_Pc2-_M6,_Oc2-_L6);return;}let _6U=_ih*_ih,_Ii2=_6U*_ih,_m5=1-_ih,_Ji2=_m5*_m5,_Ki2=_Ji2*_m5;let _Li2=_m5*_ih,_Mi2=_Li2*3,_Ni2=_m5*_Mi2,_Oi2=_Mi2*_ih;let x=_L6*_Ki2+_Oc2*_Ni2+_Qc2*_Oi2+_N6*_Ii2,y=_M6*_Ki2+_Pc2*_Ni2+_Rc2*_Oi2+_O6*_Ii2;out[_UE]=x;out[_UE+1]=y;if(_9i2){if(_ih<1e-3)out[_UE+2]=Math.atan2(_Pc2-_M6,_Oc2-_L6);else out[_UE+2]=Math.atan2(y-(_M6*_Ji2+_Pc2*_Li2*2+_Rc2*_6U),x-(_L6*_Ji2+_Oc2*_Li2*2+_Qc2*_6U));}}};var _za2=_7i2;_za2._pi2=-1;_za2._ui2=-2;_za2._wi2=-3;
_za2._T52=1e-5;var __a2=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 _H4();this._za=!data._za?null:new _H4();this._Ag2();}_Pi2(){return this.bone.skeleton;}_z4(){return this.attachment;}_w4(attachment){if(this.attachment==attachment)return;if(!(attachment instanceof _ib2)||!(this.attachment instanceof _ib2)||attachment._lc2!=this.attachment._lc2){this.deform.length=0;
}this.attachment=attachment;this._Qi2=this.bone.skeleton.time;}_Ri2(time){this._Qi2=this.bone.skeleton.time-time;}_Si2(){return this.bone.skeleton.time-this._Qi2;}_Ag2(){this.color._I5(this.data.color);if(this._za)this._za._I5(this.data._za);if(!this.data._Eb)this.attachment=null;else {this.attachment=null;this._w4(this.bone.skeleton._z4(this.data.index,this.data._Eb));}}};var _8b2=class {constructor(data,skeleton){this._vd2=0;this._wd2=0;this._xd2=0;this._yd2=0;this._zd2=0;this._Ad2=0;this._pK=new _hb2();
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._vd2=data._vd2;this._wd2=data._wd2;this._xd2=data._xd2;this._yd2=data._yd2;this._zd2=data._zd2;this._Ad2=data._Ad2;this.bones=new Array();for(let i=0;i<data.bones.length;i++)this.bones.push(skeleton._q7(data.bones[i].name));this.target=skeleton._q7(data.target.name);}_Bg2(){return this.active;}_a6(){if(this._vd2==0&&this._wd2==0&&this._xd2==0&&this._yd2==0&&this._yd2==0&&this._Ad2==0)return;
if(this.data._Di){if(this.data._Ti2)this._Ui2();else this._Vi2();}else {if(this.data._Ti2)this._Wi2();else this._Xi2();}}_Xi2(){let _vd2=this._vd2,_wd2=this._wd2,_xd2=this._xd2,_yd2=this._yd2,_zd2=this._zd2,_Ad2=this._Ad2;let translate=_wd2!=0||_xd2!=0;let target=this.target;let __h2=target._G4,_Yi2=target._F4,_Zi2=target.c,_Xh2=target._tm;let __i2=__h2*_Xh2-_Yi2*_Zi2>0?_va2._Ab2:-_va2._Ab2;let _ji2=this.data._ji2*__i2;let _0j2=this.data._0j2*__i2;let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;i++){
let bone=bones[i];if(_vd2!=0){let _G4=bone._G4,_F4=bone._F4,c=bone.c,_tm=bone._tm;let _D4=Math.atan2(_Zi2,__h2)-Math.atan2(c,_G4)+_ji2;if(_D4>_va2.PI)_D4-=_va2._Gb2;else if(_D4<-_va2.PI)_D4+=_va2._Gb2;_D4*=_vd2;let cos=Math.cos(_D4),sin=Math.sin(_D4);bone._G4=cos*_G4-sin*c;bone._F4=cos*_F4-sin*_tm;bone.c=sin*_G4+cos*c;bone._tm=sin*_F4+cos*_tm;}if(translate){let _pK=this._pK;target._Xg2(_pK.set(this.data._q5,this.data._r5));bone._v7+=(_pK.x-bone._v7)*_wd2;bone._w7+=(_pK.y-bone._w7)*_xd2;}if(_yd2!=0){let _qi=Math.sqrt(bone._G4*bone._G4+bone.c*bone.c);
if(_qi!=0)_qi=(_qi+(Math.sqrt(__h2*__h2+_Zi2*_Zi2)-_qi+this.data._1j2)*_yd2)/_qi;bone._G4*=_qi;bone.c*=_qi;}if(_zd2!=0){let _qi=Math.sqrt(bone._F4*bone._F4+bone._tm*bone._tm);if(_qi!=0)_qi=(_qi+(Math.sqrt(_Yi2*_Yi2+_Xh2*_Xh2)-_qi+this.data._2j2)*_zd2)/_qi;bone._F4*=_qi;bone._tm*=_qi;}if(_Ad2>0){let _F4=bone._F4,_tm=bone._tm;let _GC1=Math.atan2(_tm,_F4);let _D4=Math.atan2(_Xh2,_Yi2)-Math.atan2(_Zi2,__h2)-(_GC1-Math.atan2(bone.c,bone._G4));if(_D4>_va2.PI)_D4-=_va2._Gb2;else if(_D4<-_va2.PI)_D4+=_va2._Gb2;
_D4=_GC1+(_D4+_0j2)*_Ad2;let _qi=Math.sqrt(_F4*_F4+_tm*_tm);bone._F4=Math.cos(_D4)*_qi;bone._tm=Math.sin(_D4)*_qi;}bone._Ng2();}}_Wi2(){let _vd2=this._vd2,_wd2=this._wd2,_xd2=this._xd2,_yd2=this._yd2,_zd2=this._zd2,_Ad2=this._Ad2;let translate=_wd2!=0||_xd2!=0;let target=this.target;let __h2=target._G4,_Yi2=target._F4,_Zi2=target.c,_Xh2=target._tm;let __i2=__h2*_Xh2-_Yi2*_Zi2>0?_va2._Ab2:-_va2._Ab2;let _ji2=this.data._ji2*__i2,_0j2=this.data._0j2*__i2;let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;
i++){let bone=bones[i];if(_vd2!=0){let _G4=bone._G4,_F4=bone._F4,c=bone.c,_tm=bone._tm;let _D4=Math.atan2(_Zi2,__h2)+_ji2;if(_D4>_va2.PI)_D4-=_va2._Gb2;else if(_D4<-_va2.PI)_D4+=_va2._Gb2;_D4*=_vd2;let cos=Math.cos(_D4),sin=Math.sin(_D4);bone._G4=cos*_G4-sin*c;bone._F4=cos*_F4-sin*_tm;bone.c=sin*_G4+cos*c;bone._tm=sin*_F4+cos*_tm;}if(translate){let _pK=this._pK;target._Xg2(_pK.set(this.data._q5,this.data._r5));bone._v7+=_pK.x*_wd2;bone._w7+=_pK.y*_xd2;}if(_yd2!=0){let _qi=(Math.sqrt(__h2*__h2+_Zi2*_Zi2)-1+this.data._1j2)*_yd2+1;
bone._G4*=_qi;bone.c*=_qi;}if(_zd2!=0){let _qi=(Math.sqrt(_Yi2*_Yi2+_Xh2*_Xh2)-1+this.data._2j2)*_zd2+1;bone._F4*=_qi;bone._tm*=_qi;}if(_Ad2>0){let _D4=Math.atan2(_Xh2,_Yi2)-Math.atan2(_Zi2,__h2);if(_D4>_va2.PI)_D4-=_va2._Gb2;else if(_D4<-_va2.PI)_D4+=_va2._Gb2;let _F4=bone._F4,_tm=bone._tm;_D4=Math.atan2(_tm,_F4)+(_D4-_va2.PI/2+_0j2)*_Ad2;let _qi=Math.sqrt(_F4*_F4+_tm*_tm);bone._F4=Math.cos(_D4)*_qi;bone._tm=Math.sin(_D4)*_qi;}bone._Ng2();}}_Vi2(){let _vd2=this._vd2,_wd2=this._wd2,_xd2=this._xd2,_yd2=this._yd2,
_zd2=this._zd2,_Ad2=this._Ad2;let target=this.target;let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;i++){let bone=bones[i];let rotation=bone._B7;if(_vd2!=0){let _D4=target._B7-rotation+this.data._ji2;_D4-=(16384-(16384.499999999996-_D4/360|0))*360;rotation+=_D4*_vd2;}let x=bone.ax,y=bone.ay;x+=(target.ax-x+this.data._q5)*_wd2;y+=(target.ay-y+this.data._r5)*_xd2;let scaleX=bone._vg2,scaleY=bone._wg2;if(_yd2!=0&&scaleX!=0)scaleX=(scaleX+(target._vg2-scaleX+this.data._1j2)*_yd2)/scaleX;if(_zd2!=0&&scaleY!=0)scaleY=(scaleY+(target._wg2-scaleY+this.data._2j2)*_zd2)/scaleY;
let shearY=bone._yg2;if(_Ad2!=0){let _D4=target._yg2-shearY+this.data._0j2;_D4-=(16384-(16384.499999999996-_D4/360|0))*360;shearY+=_D4*_Ad2;}bone._Cg2(x,y,rotation,scaleX,scaleY,bone._xg2,shearY);}}_Ui2(){let _vd2=this._vd2,_wd2=this._wd2,_xd2=this._xd2,_yd2=this._yd2,_zd2=this._zd2,_Ad2=this._Ad2;let target=this.target;let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;i++){let bone=bones[i];let rotation=bone._B7+(target._B7+this.data._ji2)*_vd2;let x=bone.ax+(target.ax+this.data._q5)*_wd2;let y=bone.ay+(target.ay+this.data._r5)*_xd2;
let scaleX=bone._vg2*((target._vg2-1+this.data._1j2)*_yd2+1);let scaleY=bone._wg2*((target._wg2-1+this.data._2j2)*_zd2+1);let shearY=bone._yg2+(target._yg2+this.data._0j2)*_Ad2;bone._Cg2(x,y,rotation,scaleX,scaleY,bone._xg2,shearY);}}};var _y3=class {constructor(data){this._3j2=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 _58=data.bones[i];let bone;if(!_58.parent)bone=new _6a2(_58,
this,null);else {let parent=this.bones[_58.parent.index];bone=new _6a2(_58,this,parent);parent._Dk1.push(bone);}this.bones.push(bone);}this.slots=new Array();this.drawOrder=new Array();for(let i=0;i<data.slots.length;i++){let _4j2=data.slots[i];let bone=this.bones[_4j2._58.index];let slot=new __a2(_4j2,bone);this.slots.push(slot);this.drawOrder.push(slot);}this._td2=new Array();for(let i=0;i<data._td2.length;i++){let _5j2=data._td2[i];this._td2.push(new _pa2(_5j2,this));}this._Bd2=new Array();for(let i=0;i<data._Bd2.length;
i++){let _6j2=data._Bd2[i];this._Bd2.push(new _8b2(_6j2,this));}this._Dd2=new Array();for(let i=0;i<data._Dd2.length;i++){let _7j2=data._Dd2[i];this._Dd2.push(new _za2(_7j2,this));}this.color=new _H4(1,1,1,1);this._8j2();}_8j2(){let _8j2=this._3j2;_8j2.length=0;let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;i++){let bone=bones[i];bone._zg2=bone.data._tg2;bone.active=!bone._zg2;}if(this.skin){let _9j2=this.skin.bones;for(let i=0,_I6=this.skin.bones.length;i<_I6;i++){let bone=this.bones[_9j2[i].index];
do {bone._zg2=false;bone.active=true;bone=bone.parent;}while(bone);}}let _td2=this._td2;let _Bd2=this._Bd2;let _Dd2=this._Dd2;let _aj2=_td2.length,_bj2=_Bd2.length,_cj2=_Dd2.length;let _dj2=_aj2+_bj2+_cj2;_Qe2:for(let i=0;i<_dj2;i++){for(let _7F=0;_7F<_aj2;_7F++){let _sd2=_td2[_7F];if(_sd2.data._2h2==i){this._ej2(_sd2);continue _Qe2;}}for(let _7F=0;_7F<_bj2;_7F++){let _sd2=_Bd2[_7F];if(_sd2.data._2h2==i){this._fj2(_sd2);continue _Qe2;}}for(let _7F=0;_7F<_cj2;_7F++){let _sd2=_Dd2[_7F];if(_sd2.data._2h2==i){this._gj2(_sd2);
continue _Qe2;}}}for(let i=0,_I6=bones.length;i<_I6;i++)this._hj2(bones[i]);}_ej2(_sd2){_sd2.active=_sd2.target._Bg2()&&(!_sd2.data._tg2||this.skin&&_gb2._kb2(this.skin._Fa1,_sd2.data,true));if(!_sd2.active)return;let target=_sd2.target;this._hj2(target);let _ij2=_sd2.bones;let parent=_ij2[0];this._hj2(parent);if(_ij2.length==1){this._3j2.push(_sd2);this._jj2(parent._Dk1);}else {let _Mh2=_ij2[_ij2.length-1];this._hj2(_Mh2);this._3j2.push(_sd2);this._jj2(parent._Dk1);_Mh2._zg2=true;}}_gj2(_sd2){_sd2.active=_sd2.target.bone._Bg2()&&(!_sd2.data._tg2||this.skin&&_gb2._kb2(this.skin._Fa1,
_sd2.data,true));if(!_sd2.active)return;let slot=_sd2.target;let _x4=slot.data.index;let _kj2=slot.bone;if(this.skin)this._lj2(this.skin,_x4,_kj2);if(this.data._i4&&this.data._i4!=this.skin)this._lj2(this.data._i4,_x4,_kj2);for(let i=0,_I6=this.data.skins.length;i<_I6;i++)this._lj2(this.data.skins[i],_x4,_kj2);let attachment=slot._z4();if(attachment instanceof _ya2)this._mj2(attachment,_kj2);let _ij2=_sd2.bones;let _ai2=_ij2.length;for(let i=0;i<_ai2;i++)this._hj2(_ij2[i]);this._3j2.push(_sd2);for(let i=0;
i<_ai2;i++)this._jj2(_ij2[i]._Dk1);for(let i=0;i<_ai2;i++)_ij2[i]._zg2=true;}_fj2(_sd2){_sd2.active=_sd2.target._Bg2()&&(!_sd2.data._tg2||this.skin&&_gb2._kb2(this.skin._Fa1,_sd2.data,true));if(!_sd2.active)return;this._hj2(_sd2.target);let _ij2=_sd2.bones;let _ai2=_ij2.length;if(_sd2.data._Di){for(let i=0;i<_ai2;i++){let _Mh2=_ij2[i];this._hj2(_Mh2.parent);this._hj2(_Mh2);}}else {for(let i=0;i<_ai2;i++){this._hj2(_ij2[i]);}}this._3j2.push(_sd2);for(let i=0;i<_ai2;i++)this._jj2(_ij2[i]._Dk1);for(let i=0;
i<_ai2;i++)_ij2[i]._zg2=true;}_lj2(skin,_x4,_kj2){let attachments=skin.attachments[_x4];if(!attachments)return;for(let key in attachments){this._mj2(attachments[key],_kj2);}}_mj2(attachment,_kj2){if(!(attachment instanceof _ya2))return;let _nj2=attachment.bones;if(!_nj2)this._hj2(_kj2);else {let bones=this.bones;for(let i=0,_I6=_nj2.length;i<_I6;){let _oj2=_nj2[i++];_oj2+=i;while(i<_oj2)this._hj2(bones[_nj2[i++]]);}}}_hj2(bone){if(bone._zg2)return;let parent=bone.parent;if(parent)this._hj2(parent);bone._zg2=true;
this._3j2.push(bone);}_jj2(bones){for(let i=0,_I6=bones.length;i<_I6;i++){let bone=bones[i];if(!bone.active)continue;if(bone._zg2)this._jj2(bone._Dk1);bone._zg2=false;}}__5(){let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;i++){let bone=bones[i];bone.ax=bone.x;bone.ay=bone.y;bone._B7=bone.rotation;bone._vg2=bone.scaleX;bone._wg2=bone.scaleY;bone._xg2=bone.shearX;bone._yg2=bone.shearY;}let _8j2=this._3j2;for(let i=0,_I6=_8j2.length;i<_I6;i++)_8j2[i]._a6();}_Cg2(parent){let _pj2=this._X5();let _4E1=parent._G4,
_5E1=parent._F4,_PC1=parent.c,_Eg2=parent._tm;_pj2._v7=_4E1*this.x+_5E1*this.y+parent._v7;_pj2._w7=_PC1*this.x+_Eg2*this.y+parent._w7;let _Dg2=_pj2.rotation+90+_pj2.shearY;let _Fg2=_va2._zb2(_pj2.rotation+_pj2.shearX)*_pj2.scaleX;let _Gg2=_va2._zb2(_Dg2)*_pj2.scaleY;let _Hg2=_va2._Bb2(_pj2.rotation+_pj2.shearX)*_pj2.scaleX;let _Ig2=_va2._Bb2(_Dg2)*_pj2.scaleY;_pj2._G4=(_4E1*_Fg2+_5E1*_Hg2)*this.scaleX;_pj2._F4=(_4E1*_Gg2+_5E1*_Ig2)*this.scaleX;_pj2.c=(_PC1*_Fg2+_Eg2*_Hg2)*this.scaleY;_pj2._tm=(_PC1*_Gg2+_Eg2*_Ig2)*this.scaleY;
let _8j2=this._3j2;for(let i=0,_I6=_8j2.length;i<_I6;i++){let _qj2=_8j2[i];if(_qj2!=_pj2)_qj2._a6();}}_Ag2(){this._rj2();this._l4();}_rj2(){let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;i++)bones[i]._Ag2();let _td2=this._td2;for(let i=0,_I6=_td2.length;i<_I6;i++){let _sd2=_td2[i];_sd2.mix=_sd2.data.mix;_sd2._qd2=_sd2.data._qd2;_sd2._rd2=_sd2.data._rd2;_sd2.compress=_sd2.data.compress;_sd2.stretch=_sd2.data.stretch;}let _Bd2=this._Bd2;for(let i=0,_I6=_Bd2.length;i<_I6;i++){let _sd2=_Bd2[i];let data=_sd2.data;
_sd2._vd2=data._vd2;_sd2._wd2=data._wd2;_sd2._xd2=data._xd2;_sd2._yd2=data._yd2;_sd2._zd2=data._zd2;_sd2._Ad2=data._Ad2;}let _Dd2=this._Dd2;for(let i=0,_I6=_Dd2.length;i<_I6;i++){let _sd2=_Dd2[i];let data=_sd2.data;_sd2.position=data.position;_sd2.spacing=data.spacing;_sd2._vd2=data._vd2;_sd2._wd2=data._wd2;_sd2._xd2=data._xd2;}}_l4(){let slots=this.slots;_gb2._Mb2(slots,0,this.drawOrder,0,slots.length);for(let i=0,_I6=slots.length;i<_I6;i++)slots[i]._Ag2();}_X5(){if(this.bones.length==0)return null;return this.bones[0];
}_q7(_sj2){if(!_sj2)throw new Error("boneName cannot be null.");let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;i++){let bone=bones[i];if(bone.data.name==_sj2)return bone;}return null;}_v4(_tj2){if(!_tj2)throw new Error("slotName cannot be null.");let slots=this.slots;for(let i=0,_I6=slots.length;i<_I6;i++){let slot=slots[i];if(slot.data.name==_tj2)return slot;}return null;}_m4(_uj2){let skin=this.data._L7(_uj2);if(!skin)throw new Error("Skin not found: "+_uj2);this._k4(skin);}_k4(_I7){if(_I7==this.skin)return;
if(_I7){if(this.skin)_I7._vj2(this,this.skin);else {let slots=this.slots;for(let i=0,_I6=slots.length;i<_I6;i++){let slot=slots[i];let name=slot.data._Eb;if(name){let attachment=_I7._z4(i,name);if(attachment)slot._w4(attachment);}}}}this.skin=_I7;this._8j2();}_wj2(_tj2,_Eb){return this._z4(this.data._v4(_tj2).index,_Eb);}_z4(_x4,_Eb){if(!_Eb)throw new Error("attachmentName cannot be null.");if(this.skin){let attachment=this.skin._z4(_x4,_Eb);if(attachment)return attachment;}if(this.data._i4)return this.data._i4._z4(_x4,
_Eb);return null;}_w4(_tj2,_Eb){if(!_tj2)throw new Error("slotName cannot be null.");let slots=this.slots;for(let i=0,_I6=slots.length;i<_I6;i++){let slot=slots[i];if(slot.data.name==_tj2){let attachment=null;if(_Eb){attachment=this._z4(i,_Eb);if(!attachment)throw new Error("Attachment not found: "+_Eb+", for slot: "+_tj2);}slot._w4(attachment);return;}}throw new Error("Slot not found: "+_tj2);}_xj2(_yj2){if(!_yj2)throw new Error("constraintName cannot be null.");let _td2=this._td2;for(let i=0,_I6=_td2.length;
i<_I6;i++){let ikConstraint=_td2[i];if(ikConstraint.data.name==_yj2)return ikConstraint;}return null;}_zj2(_yj2){if(!_yj2)throw new Error("constraintName cannot be null.");let _Bd2=this._Bd2;for(let i=0,_I6=_Bd2.length;i<_I6;i++){let _sd2=_Bd2[i];if(_sd2.data.name==_yj2)return _sd2;}return null;}_Aj2(_yj2){if(!_yj2)throw new Error("constraintName cannot be null.");let _Dd2=this._Dd2;for(let i=0,_I6=_Dd2.length;i<_I6;i++){let _sd2=_Dd2[i];if(_sd2.data.name==_yj2)return _sd2;}return null;}getBounds(offset,size,_pK=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 _p6=Number.POSITIVE_INFINITY,_r6=Number.POSITIVE_INFINITY,_q6=Number.NEGATIVE_INFINITY,_s6=Number.NEGATIVE_INFINITY;for(let i=0,_I6=drawOrder.length;i<_I6;i++){let slot=drawOrder[i];if(!slot.bone.active)continue;let _mi2=0;let vertices=null;let attachment=slot._z4();if(attachment instanceof _m9){_mi2=8;vertices=_gb2._Tb2(_pK,_mi2,0);attachment._M9(slot.bone,vertices,0,2);}else if(attachment instanceof _o9){
let _R9=attachment;_mi2=_R9._S9;vertices=_gb2._Tb2(_pK,_mi2,0);_R9._M9(slot,0,_mi2,vertices,0,2);}if(vertices){for(let _7F=0,_oj2=vertices.length;_7F<_oj2;_7F+=2){let x=vertices[_7F],y=vertices[_7F+1];_p6=Math.min(_p6,x);_r6=Math.min(_r6,y);_q6=Math.max(_q6,x);_s6=Math.max(_s6,y);}}}offset.set(_p6,_r6);size.set(_q6-_p6,_s6-_r6);}_a6(_ti){this.time+=_ti;}};var _Ya2=class {constructor(){this.bones=new Array();this.slots=new Array();this.skins=new Array();this.events=new Array();this.animations=new Array();this._td2=new Array();
this._Bd2=new Array();this._Dd2=new Array();this.fps=0;}_q7(_sj2){if(!_sj2)throw new Error("boneName cannot be null.");let bones=this.bones;for(let i=0,_I6=bones.length;i<_I6;i++){let bone=bones[i];if(bone.name==_sj2)return bone;}return null;}_v4(_tj2){if(!_tj2)throw new Error("slotName cannot be null.");let slots=this.slots;for(let i=0,_I6=slots.length;i<_I6;i++){let slot=slots[i];if(slot.name==_tj2)return slot;}return null;}_L7(_uj2){if(!_uj2)throw new Error("skinName cannot be null.");let skins=this.skins;for(let i=0,
_I6=skins.length;i<_I6;i++){let skin=skins[i];if(skin.name==_uj2)return skin;}return null;}_Bj2(_Cj2){if(!_Cj2)throw new Error("eventDataName cannot be null.");let events=this.events;for(let i=0,_I6=events.length;i<_I6;i++){let event=events[i];if(event.name==_Cj2)return event;}return null;}_e4(_Ce2){if(!_Ce2)throw new Error("animationName cannot be null.");let animations=this.animations;for(let i=0,_I6=animations.length;i<_I6;i++){let _Y3=animations[i];if(_Y3.name==_Ce2)return _Y3;}return null;}_xj2(_yj2){if(!_yj2)throw new Error("constraintName cannot be null.");
let _td2=this._td2;for(let i=0,_I6=_td2.length;i<_I6;i++){let _sd2=_td2[i];if(_sd2.name==_yj2)return _sd2;}return null;}_zj2(_yj2){if(!_yj2)throw new Error("constraintName cannot be null.");let _Bd2=this._Bd2;for(let i=0,_I6=_Bd2.length;i<_I6;i++){let _sd2=_Bd2[i];if(_sd2.name==_yj2)return _sd2;}return null;}_Aj2(_yj2){if(!_yj2)throw new Error("constraintName cannot be null.");let _Dd2=this._Dd2;for(let i=0,_I6=_Dd2.length;i<_I6;i++){let _sd2=_Dd2[i];if(_sd2.name==_yj2)return _sd2;}return null;}};var _Za2=class {constructor(_x4,
name,attachment){this._x4=_x4;this.name=name;this.attachment=attachment;}};var _J7=class {constructor(name){this.attachments=new Array();this.bones=Array();this._Fa1=new Array();if(!name)throw new Error("name cannot be null.");this.name=name;}_w4(_x4,name,attachment){if(!attachment)throw new Error("attachment cannot be null.");let attachments=this.attachments;if(_x4>=attachments.length)attachments.length=_x4+1;if(!attachments[_x4])attachments[_x4]={};attachments[_x4][name]=attachment;}_Dj2(skin){for(let i=0;
i<skin.bones.length;i++){let bone=skin.bones[i];let _Ej2=false;for(let _7F=0;_7F<this.bones.length;_7F++){if(this.bones[_7F]==bone){_Ej2=true;break;}}if(!_Ej2)this.bones.push(bone);}for(let i=0;i<skin._Fa1.length;i++){let _sd2=skin._Fa1[i];let _Ej2=false;for(let _7F=0;_7F<this._Fa1.length;_7F++){if(this._Fa1[_7F]==_sd2){_Ej2=true;break;}}if(!_Ej2)this._Fa1.push(_sd2);}let attachments=skin._Fj2();for(let i=0;i<attachments.length;i++){var attachment=attachments[i];this._w4(attachment._x4,attachment.name,attachment.attachment);
}}_M7(skin){for(let i=0;i<skin.bones.length;i++){let bone=skin.bones[i];let _Ej2=false;for(let _7F=0;_7F<this.bones.length;_7F++){if(this.bones[_7F]==bone){_Ej2=true;break;}}if(!_Ej2)this.bones.push(bone);}for(let i=0;i<skin._Fa1.length;i++){let _sd2=skin._Fa1[i];let _Ej2=false;for(let _7F=0;_7F<this._Fa1.length;_7F++){if(this._Fa1[_7F]==_sd2){_Ej2=true;break;}}if(!_Ej2)this._Fa1.push(_sd2);}let attachments=skin._Fj2();for(let i=0;i<attachments.length;i++){var attachment=attachments[i];if(!attachment.attachment)continue;
if(attachment.attachment instanceof _o9){attachment.attachment=attachment.attachment._xf2();this._w4(attachment._x4,attachment.name,attachment.attachment);}else {attachment.attachment=attachment.attachment._js();this._w4(attachment._x4,attachment.name,attachment.attachment);}}}_z4(_x4,name){let _Gj2=this.attachments[_x4];return _Gj2?_Gj2[name]:null;}_Hj2(_x4,name){let _Gj2=this.attachments[_x4];if(_Gj2)_Gj2[name]=null;}_Fj2(){let _lb2=new Array();for(var i=0;i<this.attachments.length;i++){let _Ij2=this.attachments[i];
if(_Ij2){for(let name in _Ij2){let attachment=_Ij2[name];if(attachment)_lb2.push(new _Za2(i,name,attachment));}}}return _lb2;}_Jj2(_x4,attachments){let _Ij2=this.attachments[_x4];if(_Ij2){for(let name in _Ij2){let attachment=_Ij2[name];if(attachment)attachments.push(new _Za2(_x4,name,attachment));}}}clear(){this.attachments.length=0;this.bones.length=0;this._Fa1.length=0;}_vj2(skeleton,_Kj2){let _x4=0;for(let i=0;i<skeleton.slots.length;i++){let slot=skeleton.slots[i];let _dd2=slot._z4();if(_dd2&&_x4<_Kj2.attachments.length){
let _Gj2=_Kj2.attachments[_x4];for(let key in _Gj2){let _Lj2=_Gj2[key];if(_dd2==_Lj2){let attachment=this._z4(_x4,key);if(attachment)slot._w4(attachment);break;}}}_x4++;}}};var _0b2=class {constructor(index,name,_58){this.color=new _H4(1,1,1,1);if(index<0)throw new Error("index must be >= 0.");if(!name)throw new Error("name cannot be null.");if(!_58)throw new Error("boneData cannot be null.");this.index=index;this.name=name;this._58=_58;}};var _ba;(function(_Mj2){_Mj2[_Mj2["Normal"]=0]="Normal";_Mj2[_Mj2["Additive"]=1]="Additive";
_Mj2[_Mj2["Multiply"]=2]="Multiply";_Mj2[_Mj2["Screen"]=3]="Screen";})(_ba||(_ba={}));var _9b2=class extends _9a2{constructor(name){super(name,0,false);this.bones=new Array();this._vd2=0;this._wd2=0;this._xd2=0;this._yd2=0;this._zd2=0;this._Ad2=0;this._ji2=0;this._q5=0;this._r5=0;this._1j2=0;this._2j2=0;this._0j2=0;this._Ti2=false;this._Di=false;}};var _Xa2=class {constructor(_B5){this.scale=1;this._Nj2=new Array();this._B5=_B5;}_09(_Oj2){let scale=this.scale;let _De2=new _Ya2();_De2.name="";let _nI=new _5a2(_Oj2);
let _Pj2=_nI._Qj2();let _Rj2=_nI._Qj2();_De2.hash=_Rj2==0&&_Pj2==0?null:_Rj2.toString(16)+_Pj2.toString(16);_De2.version=_nI._Sj2();_De2.x=_nI._Tj2();_De2.y=_nI._Tj2();_De2.width=_nI._Tj2();_De2.height=_nI._Tj2();let _Uj2=_nI._Vj2();if(_Uj2){_De2.fps=_nI._Tj2();_De2._Wj2=_nI._Sj2();_De2._Xj2=_nI._Sj2();}let _I6=0;_I6=_nI._Yj2(true);for(let i=0;i<_I6;i++)_nI._mE.push(_nI._Sj2());_I6=_nI._Yj2(true);for(let i=0;i<_I6;i++){let name=_nI._Sj2();let parent=i==0?null:_De2.bones[_nI._Yj2(true)];let data=new _7a2(i,
name,parent);data.rotation=_nI._Tj2();data.x=_nI._Tj2()*scale;data.y=_nI._Tj2()*scale;data.scaleX=_nI._Tj2();data.scaleY=_nI._Tj2();data.shearX=_nI._Tj2();data.shearY=_nI._Tj2();data.length=_nI._Tj2()*scale;data._lc1=_nI._Yj2(true);data._tg2=_nI._Vj2();if(_Uj2)_H4._rb2(data.color,_nI._Qj2());_De2.bones.push(data);}_I6=_nI._Yj2(true);for(let i=0;i<_I6;i++){let _tj2=_nI._Sj2();let _58=_De2.bones[_nI._Yj2(true)];let data=new _0b2(i,_tj2,_58);_H4._rb2(data.color,_nI._Qj2());let _za=_nI._Qj2();if(_za!=-1)_H4._sb2(data._za=new _H4(),
_za);data._Eb=_nI._Zj2();data._Ea=_nI._Yj2(true);_De2.slots.push(data);}_I6=_nI._Yj2(true);for(let i=0,_oj2;i<_I6;i++){let data=new _qa2(_nI._Sj2());data._2h2=_nI._Yj2(true);data._tg2=_nI._Vj2();_oj2=_nI._Yj2(true);for(let _7F=0;_7F<_oj2;_7F++)data.bones.push(_De2.bones[_nI._Yj2(true)]);data.target=_De2.bones[_nI._Yj2(true)];data.mix=_nI._Tj2();data._qd2=_nI._Tj2()*scale;data._rd2=_nI.__j2();data.compress=_nI._Vj2();data.stretch=_nI._Vj2();data._Fh2=_nI._Vj2();_De2._td2.push(data);}_I6=_nI._Yj2(true);
for(let i=0,_oj2;i<_I6;i++){let data=new _9b2(_nI._Sj2());data._2h2=_nI._Yj2(true);data._tg2=_nI._Vj2();_oj2=_nI._Yj2(true);for(let _7F=0;_7F<_oj2;_7F++)data.bones.push(_De2.bones[_nI._Yj2(true)]);data.target=_De2.bones[_nI._Yj2(true)];data._Di=_nI._Vj2();data._Ti2=_nI._Vj2();data._ji2=_nI._Tj2();data._q5=_nI._Tj2()*scale;data._r5=_nI._Tj2()*scale;data._1j2=_nI._Tj2();data._2j2=_nI._Tj2();data._0j2=_nI._Tj2();data._vd2=_nI._Tj2();data._wd2=_nI._Tj2();data._xd2=_nI._Tj2();data._yd2=_nI._Tj2();data._zd2=_nI._Tj2();
data._Ad2=_nI._Tj2();_De2._Bd2.push(data);}_I6=_nI._Yj2(true);for(let i=0,_oj2;i<_I6;i++){let data=new _Aa2(_nI._Sj2());data._2h2=_nI._Yj2(true);data._tg2=_nI._Vj2();_oj2=_nI._Yj2(true);for(let _7F=0;_7F<_oj2;_7F++)data.bones.push(_De2.bones[_nI._Yj2(true)]);data.target=_De2.slots[_nI._Yj2(true)];data._ri2=_nI._Yj2(true);data.spacingMode=_nI._Yj2(true);data.rotateMode=_nI._Yj2(true);data._ji2=_nI._Tj2();data.position=_nI._Tj2();if(data._ri2==_Ga2.Fixed)data.position*=scale;data.spacing=_nI._Tj2();if(data.spacingMode==_1b2.Length||data.spacingMode==_1b2.Fixed)data.spacing*=scale;
data._vd2=_nI._Tj2();data._wd2=_nI._Tj2();data._xd2=_nI._Tj2();_De2._Dd2.push(data);}let _i4=this._0k2(_nI,_De2,true,_Uj2);if(_i4){_De2._i4=_i4;_De2.skins.push(_i4);}{let i=_De2.skins.length;_gb2._Tb2(_De2.skins,_I6=i+_nI._Yj2(true));for(;i<_I6;i++)_De2.skins[i]=this._0k2(_nI,_De2,false,_Uj2);}_I6=this._Nj2.length;for(let i=0;i<_I6;i++){let _1k2=this._Nj2[i];let skin=!_1k2.skin?_De2._i4:_De2._L7(_1k2.skin);let parent=skin._z4(_1k2._x4,_1k2.parent);_1k2._R9._lc2=_1k2._2k2?parent:_1k2._R9;_1k2._R9._vf2(parent);
_1k2._R9._pf2();}this._Nj2.length=0;_I6=_nI._Yj2(true);for(let i=0;i<_I6;i++){let data=new _ha2(_nI._Zj2());data._E3=_nI._Yj2(false);data._F3=_nI._Tj2();data._G3=_nI._Sj2();data._Xj2=_nI._Sj2();if(data._Xj2){data.volume=_nI._Tj2();data._fv1=_nI._Tj2();}_De2.events.push(data);}_I6=_nI._Yj2(true);for(let i=0;i<_I6;i++)_De2.animations.push(this._3k2(_nI,_nI._Sj2(),_De2));return _De2;}_0k2(_nI,_De2,_i4,_Uj2){let skin=null;let _4k2=0;if(_i4){_4k2=_nI._Yj2(true);if(_4k2==0)return null;skin=new _J7("default");}
else {skin=new _J7(_nI._Zj2());skin.bones.length=_nI._Yj2(true);for(let i=0,_I6=skin.bones.length;i<_I6;i++)skin.bones[i]=_De2.bones[_nI._Yj2(true)];for(let i=0,_I6=_nI._Yj2(true);i<_I6;i++)skin._Fa1.push(_De2._td2[_nI._Yj2(true)]);for(let i=0,_I6=_nI._Yj2(true);i<_I6;i++)skin._Fa1.push(_De2._Bd2[_nI._Yj2(true)]);for(let i=0,_I6=_nI._Yj2(true);i<_I6;i++)skin._Fa1.push(_De2._Dd2[_nI._Yj2(true)]);_4k2=_nI._Yj2(true);}for(let i=0;i<_4k2;i++){let _x4=_nI._Yj2(true);for(let _7F=0,_oj2=_nI._Yj2(true);_7F<_oj2;
_7F++){let name=_nI._Zj2();let attachment=this._5k2(_nI,_De2,skin,_x4,name,_Uj2);if(attachment)skin._w4(_x4,name,attachment);}}return skin;}_5k2(_nI,_De2,skin,_x4,_Eb,_Uj2){let scale=this.scale;let name=_nI._Zj2();if(!name)name=_Eb;switch(_nI.__j2()){case _6k2.Region:{let path=_nI._Zj2();let rotation=_nI._Tj2();let x=_nI._Tj2();let y=_nI._Tj2();let scaleX=_nI._Tj2();let scaleY=_nI._Tj2();let width=_nI._Tj2();let height=_nI._Tj2();let color=_nI._Qj2();if(!path)path=name;let _k5=this._B5._E5(skin,name,path);if(!_k5)return null;
_k5.path=path;_k5.x=x*scale;_k5.y=y*scale;_k5.scaleX=scaleX;_k5.scaleY=scaleY;_k5.rotation=rotation;_k5.width=width*scale;_k5.height=height*scale;_H4._rb2(_k5.color,color);_k5._J5();return _k5;}case _6k2.BoundingBox:{let vertexCount=_nI._Yj2(true);let vertices=this._7k2(_nI,vertexCount);let color=_Uj2?_nI._Qj2():0;let _8k2=this._B5._pg2(skin,name);if(!_8k2)return null;_8k2._S9=vertexCount<<1;_8k2.vertices=vertices.vertices;_8k2.bones=vertices.bones;if(_Uj2)_H4._rb2(_8k2.color,color);return _8k2;}case _6k2.Mesh:{
let path=_nI._Zj2();let color=_nI._Qj2();let vertexCount=_nI._Yj2(true);let uvs=this._9k2(_nI,vertexCount<<1,1);let triangles=this._ak2(_nI);let vertices=this._7k2(_nI,vertexCount);let _wf2=_nI._Yj2(true);let edges=null;let width=0,height=0;if(_Uj2){edges=this._ak2(_nI);width=_nI._Tj2();height=_nI._Tj2();}if(!path)path=name;let _R9=this._B5._og2(skin,name,path);if(!_R9)return null;_R9.path=path;_H4._rb2(_R9.color,color);_R9.bones=vertices.bones;_R9.vertices=vertices.vertices;_R9._S9=vertexCount<<1;_R9.triangles=triangles;
_R9._qf2=uvs;_R9._pf2();_R9._wf2=_wf2<<1;if(_Uj2){_R9.edges=edges;_R9.width=width*scale;_R9.height=height*scale;}return _R9;}case _6k2.LinkedMesh:{let path=_nI._Zj2();let color=_nI._Qj2();let _uj2=_nI._Zj2();let parent=_nI._Zj2();let _2k2=_nI._Vj2();let width=0,height=0;if(_Uj2){width=_nI._Tj2();height=_nI._Tj2();}if(!path)path=name;let _R9=this._B5._og2(skin,name,path);if(!_R9)return null;_R9.path=path;_H4._rb2(_R9.color,color);if(_Uj2){_R9.width=width*scale;_R9.height=height*scale;}this._Nj2.push(new LinkedMesh(_R9,
_uj2,_x4,parent,_2k2));return _R9;}case _6k2.Path:{let _li2=_nI._Vj2();let _yf2=_nI._Vj2();let vertexCount=_nI._Yj2(true);let vertices=this._7k2(_nI,vertexCount);let lengths=_gb2._Vb2(vertexCount/3,0);for(let i=0,_I6=lengths.length;i<_I6;i++)lengths[i]=_nI._Tj2()*scale;let color=_Uj2?_nI._Qj2():0;let path=this._B5._qg2(skin,name);if(!path)return null;path.closed=_li2;path._yf2=_yf2;path._S9=vertexCount<<1;path.vertices=vertices.vertices;path.bones=vertices.bones;path.lengths=lengths;if(_Uj2)_H4._rb2(path.color,
color);return path;}case _6k2.Point:{let rotation=_nI._Tj2();let x=_nI._Tj2();let y=_nI._Tj2();let color=_Uj2?_nI._Qj2():0;let _Cr1=this._B5._rg2(skin,name);if(!_Cr1)return null;_Cr1.x=x*scale;_Cr1.y=y*scale;_Cr1.rotation=rotation;if(_Uj2)_H4._rb2(_Cr1.color,color);return _Cr1;}case _6k2._bk2:{let _ck2=_nI._Yj2(true);let vertexCount=_nI._Yj2(true);let vertices=this._7k2(_nI,vertexCount);let color=_Uj2?_nI._Qj2():0;let clip=this._B5._sg2(skin,name);if(!clip)return null;clip._5f2=_De2.slots[_ck2];clip._S9=vertexCount<<1;
clip.vertices=vertices.vertices;clip.bones=vertices.bones;if(_Uj2)_H4._rb2(clip.color,color);return clip;}}return null;}_7k2(_nI,vertexCount){let scale=this.scale;let _mi2=vertexCount<<1;let vertices=new _dk2();if(!_nI._Vj2()){vertices.vertices=this._9k2(_nI,_mi2,scale);return vertices;}let _ek2=new Array();let _jc1=new Array();for(let i=0;i<vertexCount;i++){let _ai2=_nI._Yj2(true);_jc1.push(_ai2);for(let _7F=0;_7F<_ai2;_7F++){_jc1.push(_nI._Yj2(true));_ek2.push(_nI._Tj2()*scale);_ek2.push(_nI._Tj2()*scale);_ek2.push(_nI._Tj2());
}}vertices.vertices=_gb2._Zb2(_ek2);vertices.bones=_jc1;return vertices;}_9k2(_nI,_I6,scale){let _qh=new Array(_I6);if(scale==1){for(let i=0;i<_I6;i++)_qh[i]=_nI._Tj2();}else {for(let i=0;i<_I6;i++)_qh[i]=_nI._Tj2()*scale;}return _qh;}_ak2(_nI){let _I6=_nI._Yj2(true);let _qh=new Array(_I6);for(let i=0;i<_I6;i++)_qh[i]=_nI._fk2();return _qh;}_3k2(_nI,name,_De2){_nI._Yj2(true);let _76=new Array();let scale=this.scale;let _gk2=new _H4();let _hk2=new _H4();for(let i=0,_I6=_nI._Yj2(true);i<_I6;i++){let _x4=_nI._Yj2(true);
for(let _7F=0,_oj2=_nI._Yj2(true);_7F<_oj2;_7F++){let _ik2=_nI.__j2();let _36=_nI._Yj2(true);let _56=_36-1;switch(_ik2){case _jk2:{let _zH=new _4a2(_36,_x4);for(let frame=0;frame<_36;frame++)_zH._1d2(frame,_nI._Tj2(),_nI._Zj2());_76.push(_zH);break;}case _kk2:{let _Fc2=_nI._Yj2(true);let _zH=new _La2(_36,_Fc2,_x4);let time=_nI._Tj2();let _D4=_nI._lk2()/255;let _E4=_nI._lk2()/255;let _F4=_nI._lk2()/255;let _G4=_nI._lk2()/255;for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,_D4,_E4,_F4,_G4);if(frame==_56)break;
let _gD=_nI._Tj2();let _jH=_nI._lk2()/255;let _lH=_nI._lk2()/255;let _Yh=_nI._lk2()/255;let _se1=_nI._lk2()/255;switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,_D4,_jH,1);_Lc2(_nI,_zH,_Mc2++,frame,1,time,_gD,_E4,_lH,1);_Lc2(_nI,_zH,_Mc2++,frame,2,time,_gD,_F4,_Yh,1);_Lc2(_nI,_zH,_Mc2++,frame,3,time,_gD,_G4,_se1,1);}time=_gD;_D4=_jH;_E4=_lH;_F4=_Yh;_G4=_se1;}_76.push(_zH);break;}case _ok2:{let _Fc2=_nI._Yj2(true);let _zH=new _Ma2(_36,_Fc2,_x4);let time=_nI._Tj2();
let _D4=_nI._lk2()/255;let _E4=_nI._lk2()/255;let _F4=_nI._lk2()/255;for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,_D4,_E4,_F4);if(frame==_56)break;let _gD=_nI._Tj2();let _jH=_nI._lk2()/255;let _lH=_nI._lk2()/255;let _Yh=_nI._lk2()/255;switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,_D4,_jH,1);_Lc2(_nI,_zH,_Mc2++,frame,1,time,_gD,_E4,_lH,1);_Lc2(_nI,_zH,_Mc2++,frame,2,time,_gD,_F4,_Yh,1);}time=_gD;_D4=_jH;_E4=_lH;_F4=_Yh;}_76.push(_zH);break;}case _pk2:{
let _Fc2=_nI._Yj2(true);let _zH=new _Ka2(_36,_Fc2,_x4);let time=_nI._Tj2();let _D4=_nI._lk2()/255;let _E4=_nI._lk2()/255;let _F4=_nI._lk2()/255;let _G4=_nI._lk2()/255;let _jH=_nI._lk2()/255;let _lH=_nI._lk2()/255;let _Yh=_nI._lk2()/255;for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,_D4,_E4,_F4,_G4,_jH,_lH,_Yh);if(frame==_56)break;let _gD=_nI._Tj2();let _qk2=_nI._lk2()/255;let _rk2=_nI._lk2()/255;let _sk2=_nI._lk2()/255;let _tk2=_nI._lk2()/255;let _uk2=_nI._lk2()/255;let _vk2=_nI._lk2()/255;let _wk2=_nI._lk2()/255;
switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,_D4,_qk2,1);_Lc2(_nI,_zH,_Mc2++,frame,1,time,_gD,_E4,_rk2,1);_Lc2(_nI,_zH,_Mc2++,frame,2,time,_gD,_F4,_sk2,1);_Lc2(_nI,_zH,_Mc2++,frame,3,time,_gD,_G4,_tk2,1);_Lc2(_nI,_zH,_Mc2++,frame,4,time,_gD,_jH,_uk2,1);_Lc2(_nI,_zH,_Mc2++,frame,5,time,_gD,_lH,_vk2,1);_Lc2(_nI,_zH,_Mc2++,frame,6,time,_gD,_Yh,_wk2,1);}time=_gD;_D4=_qk2;_E4=_rk2;_F4=_sk2;_G4=_tk2;_jH=_uk2;_lH=_vk2;_Yh=_wk2;}_76.push(_zH);break;}case _xk2:{
let _Fc2=_nI._Yj2(true);let _zH=new _Ja2(_36,_Fc2,_x4);let time=_nI._Tj2();let _D4=_nI._lk2()/255;let _E4=_nI._lk2()/255;let _F4=_nI._lk2()/255;let _jH=_nI._lk2()/255;let _lH=_nI._lk2()/255;let _Yh=_nI._lk2()/255;for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,_D4,_E4,_F4,_jH,_lH,_Yh);if(frame==_56)break;let _gD=_nI._Tj2();let _qk2=_nI._lk2()/255;let _rk2=_nI._lk2()/255;let _sk2=_nI._lk2()/255;let _uk2=_nI._lk2()/255;let _vk2=_nI._lk2()/255;let _wk2=_nI._lk2()/255;switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);
break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,_D4,_qk2,1);_Lc2(_nI,_zH,_Mc2++,frame,1,time,_gD,_E4,_rk2,1);_Lc2(_nI,_zH,_Mc2++,frame,2,time,_gD,_F4,_sk2,1);_Lc2(_nI,_zH,_Mc2++,frame,3,time,_gD,_jH,_uk2,1);_Lc2(_nI,_zH,_Mc2++,frame,4,time,_gD,_lH,_vk2,1);_Lc2(_nI,_zH,_Mc2++,frame,5,time,_gD,_Yh,_wk2,1);}time=_gD;_D4=_qk2;_E4=_rk2;_F4=_sk2;_jH=_uk2;_lH=_vk2;_Yh=_wk2;}_76.push(_zH);break;}case _yk2:{let _zH=new __92(_36,_nI._Yj2(true),_x4);let time=_nI._Tj2(),_G4=_nI._lk2()/255;for(let frame=0,_Mc2=0;
;frame++){_zH._1d2(frame,time,_G4);if(frame==_56)break;let _gD=_nI._Tj2();let _se1=_nI._lk2()/255;switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,_G4,_se1,1);}time=_gD;_G4=_se1;}_76.push(_zH);break;}}}}for(let i=0,_I6=_nI._Yj2(true);i<_I6;i++){let _7d2=_nI._Yj2(true);for(let _7F=0,_oj2=_nI._Yj2(true);_7F<_oj2;_7F++){let type=_nI.__j2(),_36=_nI._Yj2(true),_Fc2=_nI._Yj2(true);switch(type){case _zk2:_76.push(_Ak2(_nI,new _Oa2(_36,_Fc2,_7d2),1));break;case _Bk2:_76.push(_Ck2(_nI,
new _cb2(_36,_Fc2,_7d2),scale));break;case _Dk2:_76.push(_Ak2(_nI,new _db2(_36,_Fc2,_7d2),scale));break;case _Ek2:_76.push(_Ak2(_nI,new _eb2(_36,_Fc2,_7d2),scale));break;case _Fk2:_76.push(_Ck2(_nI,new _Ra2(_36,_Fc2,_7d2),1));break;case _Gk2:_76.push(_Ak2(_nI,new _Sa2(_36,_Fc2,_7d2),1));break;case _Hk2:_76.push(_Ak2(_nI,new _Ta2(_36,_Fc2,_7d2),1));break;case _Ik2:_76.push(_Ck2(_nI,new _Ua2(_36,_Fc2,_7d2),1));break;case _Jk2:_76.push(_Ak2(_nI,new _Va2(_36,_Fc2,_7d2),1));break;case _Kk2:_76.push(_Ak2(_nI,new _Wa2(_36,
_Fc2,_7d2),1));}}}for(let i=0,_I6=_nI._Yj2(true);i<_I6;i++){let index=_nI._Yj2(true),_36=_nI._Yj2(true),_56=_36-1;let _zH=new _ra2(_36,_nI._Yj2(true),index);let time=_nI._Tj2(),mix=_nI._Tj2(),_qd2=_nI._Tj2()*scale;for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,mix,_qd2,_nI.__j2(),_nI._Vj2(),_nI._Vj2());if(frame==_56)break;let _gD=_nI._Tj2(),_Lk2=_nI._Tj2(),_Mk2=_nI._Tj2()*scale;switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,mix,_Lk2,1);_Lc2(_nI,_zH,
_Mc2++,frame,1,time,_gD,_qd2,_Mk2,scale);}time=_gD;mix=_Lk2;_qd2=_Mk2;}_76.push(_zH);}for(let i=0,_I6=_nI._Yj2(true);i<_I6;i++){let index=_nI._Yj2(true),_36=_nI._Yj2(true),_56=_36-1;let _zH=new _ab2(_36,_nI._Yj2(true),index);let time=_nI._Tj2(),_vd2=_nI._Tj2(),_wd2=_nI._Tj2(),_xd2=_nI._Tj2(),_yd2=_nI._Tj2(),_zd2=_nI._Tj2(),_Ad2=_nI._Tj2();for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,_vd2,_wd2,_xd2,_yd2,_zd2,_Ad2);if(frame==_56)break;let _gD=_nI._Tj2(),_Nk2=_nI._Tj2(),_Ok2=_nI._Tj2(),_Pk2=_nI._Tj2(),
_Qk2=_nI._Tj2(),_Rk2=_nI._Tj2(),_Sk2=_nI._Tj2();switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,_vd2,_Nk2,1);_Lc2(_nI,_zH,_Mc2++,frame,1,time,_gD,_wd2,_Ok2,1);_Lc2(_nI,_zH,_Mc2++,frame,2,time,_gD,_xd2,_Pk2,1);_Lc2(_nI,_zH,_Mc2++,frame,3,time,_gD,_yd2,_Qk2,1);_Lc2(_nI,_zH,_Mc2++,frame,4,time,_gD,_zd2,_Rk2,1);_Lc2(_nI,_zH,_Mc2++,frame,5,time,_gD,_Ad2,_Sk2,1);}time=_gD;_vd2=_Nk2;_wd2=_Ok2;_xd2=_Pk2;_yd2=_Qk2;_zd2=_Rk2;_Ad2=_Sk2;}_76.push(_zH);}for(let i=0,
_I6=_nI._Yj2(true);i<_I6;i++){let index=_nI._Yj2(true);let data=_De2._Dd2[index];for(let _7F=0,_oj2=_nI._Yj2(true);_7F<_oj2;_7F++){switch(_nI.__j2()){case _Tk2:_76.push(_Ak2(_nI,new _Ca2(_nI._Yj2(true),_nI._Yj2(true),index),data._ri2==_Ga2.Fixed?scale:1));break;case _Uk2:_76.push(_Ak2(_nI,new _Da2(_nI._Yj2(true),_nI._Yj2(true),index),data.spacingMode==_1b2.Length||data.spacingMode==_1b2.Fixed?scale:1));break;case _Vk2:let _zH=new _Ba2(_nI._Yj2(true),_nI._Yj2(true),index);let time=_nI._Tj2(),_vd2=_nI._Tj2(),
_wd2=_nI._Tj2(),_xd2=_nI._Tj2();for(let frame=0,_Mc2=0,_56=_zH._Cc2()-1;;frame++){_zH._1d2(frame,time,_vd2,_wd2,_xd2);if(frame==_56)break;let _gD=_nI._Tj2(),_Nk2=_nI._Tj2(),_Ok2=_nI._Tj2(),_Pk2=_nI._Tj2();switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,_vd2,_Nk2,1);_Lc2(_nI,_zH,_Mc2++,frame,1,time,_gD,_wd2,_Ok2,1);_Lc2(_nI,_zH,_Mc2++,frame,2,time,_gD,_xd2,_Pk2,1);}time=_gD;_vd2=_Nk2;_wd2=_Ok2;_xd2=_Pk2;}_76.push(_zH);}}}for(let i=0,_I6=_nI._Yj2(true);
i<_I6;i++){let skin=_De2.skins[_nI._Yj2(true)];for(let _7F=0,_oj2=_nI._Yj2(true);_7F<_oj2;_7F++){let _x4=_nI._Yj2(true);for(let _Wk2=0,_Xk2=_nI._Yj2(true);_Wk2<_Xk2;_Wk2++){let _Eb=_nI._Zj2();let attachment=skin._z4(_x4,_Eb);let _Yk2=attachment.bones;let vertices=attachment.vertices;let _Zk2=_Yk2?vertices.length/3*2:vertices.length;let _36=_nI._Yj2(true);let _56=_36-1;let _Fc2=_nI._Yj2(true);let _zH=new _ea2(_36,_Fc2,_x4,attachment);let time=_nI._Tj2();for(let frame=0,_Mc2=0;;frame++){let deform;let end=_nI._Yj2(true);
if(end==0)deform=_Yk2?_gb2._Wb2(_Zk2):vertices;else {deform=_gb2._Wb2(_Zk2);let start=_nI._Yj2(true);end+=start;if(scale==1){for(let _n5=start;_n5<end;_n5++)deform[_n5]=_nI._Tj2();}else {for(let _n5=start;_n5<end;_n5++)deform[_n5]=_nI._Tj2()*scale;}if(!_Yk2){for(let _n5=0,_IF1=deform.length;_n5<_IF1;_n5++)deform[_n5]+=vertices[_n5];}}_zH._1d2(frame,time,deform);if(frame==_56)break;let _gD=_nI._Tj2();switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,0,1,1);}
time=_gD;}_76.push(_zH);}}}let __k2=_nI._Yj2(true);if(__k2>0){let _zH=new _ga2(__k2);let _4k2=_De2.slots.length;for(let i=0;i<__k2;i++){let time=_nI._Tj2();let _0l2=_nI._Yj2(true);let drawOrder=_gb2._Vb2(_4k2,0);for(let _7F=_4k2-1;_7F>=0;_7F--)drawOrder[_7F]=-1;let _1l2=_gb2._Vb2(_4k2-_0l2,0);let _2l2=0,_3l2=0;for(let _7F=0;_7F<_0l2;_7F++){let _x4=_nI._Yj2(true);while(_2l2!=_x4)_1l2[_3l2++]=_2l2++;drawOrder[_2l2+_nI._Yj2(true)]=_2l2++;}while(_2l2<_4k2)_1l2[_3l2++]=_2l2++;for(let _7F=_4k2-1;_7F>=0;_7F--)if(drawOrder[_7F]==-1)drawOrder[_7F]=_1l2[--_3l2];
_zH._1d2(i,time,drawOrder);}_76.push(_zH);}let _4l2=_nI._Yj2(true);if(_4l2>0){let _zH=new _Y7(_4l2);for(let i=0;i<_4l2;i++){let time=_nI._Tj2();let _BH=_De2.events[_nI._Yj2(true)];let event=new Event(time,_BH);event._E3=_nI._Yj2(false);event._F3=_nI._Tj2();event._G3=_nI._Vj2()?_nI._Sj2():_BH._G3;if(event.data._Xj2){event.volume=_nI._Tj2();event._fv1=_nI._Tj2();}_zH._1d2(i,event);}_76.push(_zH);}let duration=0;for(let i=0,_I6=_76.length;i<_I6;i++)duration=Math.max(duration,_76[i]._Dc2());return new _0a2(name,
_76,duration);}};var _5a2=class {constructor(data,_mE=new Array(),index=0,buffer=new DataView(data.buffer)){this._mE=_mE;this.index=index;this.buffer=buffer;}__j2(){return this.buffer.getInt8(this.index++);}_lk2(){return this.buffer.getUint8(this.index++);}_fk2(){let value=this.buffer.getInt16(this.index);this.index+=2;return value;}_Qj2(){let value=this.buffer.getInt32(this.index);this.index+=4;return value;}_Yj2(_5l2){let _F4=this.__j2();let result=_F4&127;if((_F4&128)!=0){_F4=this.__j2();result|=(_F4&127)<<7;
if((_F4&128)!=0){_F4=this.__j2();result|=(_F4&127)<<14;if((_F4&128)!=0){_F4=this.__j2();result|=(_F4&127)<<21;if((_F4&128)!=0){_F4=this.__j2();result|=(_F4&127)<<28;}}}}return _5l2?result:result>>>1^-(result&1);}_Zj2(){let index=this._Yj2(true);return index==0?null:this._mE[index-1];}_Sj2(){let _6l2=this._Yj2(true);switch(_6l2){case 0:return null;case 1:return "";}_6l2--;let _7l2="";let _8l2=0;for(let i=0;i<_6l2;){let _F4=this.__j2();switch(_F4>>4){case 12:case 13:_7l2+=String.fromCharCode((_F4&31)<<6|this.__j2()&63);
i+=2;break;case 14:_7l2+=String.fromCharCode((_F4&15)<<12|(this.__j2()&63)<<6|this.__j2()&63);i+=3;break;default :_7l2+=String.fromCharCode(_F4);i++;}}return _7l2;}_Tj2(){let value=this.buffer.getFloat32(this.index);this.index+=4;return value;}_Vj2(){return this.__j2()!=0;}};var LinkedMesh=class {constructor(_R9,skin,_x4,parent,_2k2){this._R9=_R9;this.skin=skin;this._x4=_x4;this.parent=parent;this._2k2=_2k2;}};var _dk2=class {constructor(bones=null,vertices=null){this.bones=bones;this.vertices=vertices;}}
;var _6k2;(function(_9l2){_9l2[_9l2["Region"]=0]="Region";_9l2[_9l2["BoundingBox"]=1]="BoundingBox";_9l2[_9l2["Mesh"]=2]="Mesh";_9l2[_9l2["LinkedMesh"]=3]="LinkedMesh";_9l2[_9l2["Path"]=4]="Path";_9l2[_9l2["Point"]=5]="Point";_9l2[_9l2["Clipping"]=6]="Clipping";})(_6k2||(_6k2={}));function _Ak2(_nI,_zH,scale){let time=_nI._Tj2(),value=_nI._Tj2()*scale;for(let frame=0,_Mc2=0,_56=_zH._Cc2()-1;;frame++){_zH._1d2(frame,time,value);if(frame==_56)break;let _gD=_nI._Tj2(),_Sc2=_nI._Tj2()*scale;switch(_nI.__j2()){
case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,value,_Sc2,scale);}time=_gD;value=_Sc2;}return _zH;}function _Ck2(_nI,_zH,scale){let time=_nI._Tj2(),_Nc2=_nI._Tj2()*scale,_Sc2=_nI._Tj2()*scale;for(let frame=0,_Mc2=0,_56=_zH._Cc2()-1;;frame++){_zH._1d2(frame,time,_Nc2,_Sc2);if(frame==_56)break;let _gD=_nI._Tj2(),_al2=_nI._Tj2()*scale,_bl2=_nI._Tj2()*scale;switch(_nI.__j2()){case _mk2:_zH._Ic2(frame);break;case _nk2:_Lc2(_nI,_zH,_Mc2++,frame,0,time,_gD,_Nc2,_al2,scale);_Lc2(_nI,
_zH,_Mc2++,frame,1,time,_gD,_Sc2,_bl2,scale);}time=_gD;_Nc2=_al2;_Sc2=_bl2;}return _zH;}function _Lc2(_nI,_zH,_Mc2,frame,value,_fD,_gD,_Nc2,_Sc2,scale){_zH._Lc2(_Mc2,frame,value,_fD,_Nc2,_nI._Tj2(),_nI._Tj2()*scale,_nI._Tj2(),_nI._Tj2()*scale,_gD,_Sc2);}var _zk2=0;var _Bk2=1;var _Dk2=2;var _Ek2=3;var _Fk2=4;var _Gk2=5;var _Hk2=6;var _Ik2=7;var _Jk2=8;var _Kk2=9;var _jk2=0;var _kk2=1;var _ok2=2;var _pk2=3;var _xk2=4;var _yk2=5;var _Tk2=0;var _Uk2=1;var _Vk2=2;var _mk2=1;var _nk2=2;var _N3=class {constructor(){this._p6=0;
this._r6=0;this._q6=0;this._s6=0;this._o6=new Array();this._x6=new Array();this._cl2=new _Fa2(()=>{return _gb2._Wb2(16);});}_a6(skeleton,_dl2){if(!skeleton)throw new Error("skeleton cannot be null.");let _o6=this._o6;let _x6=this._x6;let _cl2=this._cl2;let slots=skeleton.slots;let _4k2=slots.length;_o6.length=0;_cl2._8c2(_x6);_x6.length=0;for(let i=0;i<_4k2;i++){let slot=slots[i];if(!slot.bone.active)continue;let attachment=slot._z4();if(attachment instanceof _q9){let _yb=attachment;_o6.push(_yb);let _w6=_cl2._6c2();
if(_w6.length!=_yb._S9){_w6=_gb2._Wb2(_yb._S9);}_x6.push(_w6);_yb._M9(slot,0,_yb._S9,_w6,0,2);}}if(_dl2){this._el2();}else {this._p6=Number.POSITIVE_INFINITY;this._r6=Number.POSITIVE_INFINITY;this._q6=Number.NEGATIVE_INFINITY;this._s6=Number.NEGATIVE_INFINITY;}}_el2(){let _p6=Number.POSITIVE_INFINITY,_r6=Number.POSITIVE_INFINITY,_q6=Number.NEGATIVE_INFINITY,_s6=Number.NEGATIVE_INFINITY;let _x6=this._x6;for(let i=0,_I6=_x6.length;i<_I6;i++){let _w6=_x6[i];let vertices=_w6;for(let _7F=0,_oj2=_w6.length;_7F<_oj2;
_7F+=2){let x=vertices[_7F];let y=vertices[_7F+1];_p6=Math.min(_p6,x);_r6=Math.min(_r6,y);_q6=Math.max(_q6,x);_s6=Math.max(_s6,y);}}this._p6=_p6;this._r6=_r6;this._q6=_q6;this._s6=_s6;}_fl2(x,y){return x>=this._p6&&x<=this._q6&&y>=this._r6&&y<=this._s6;}_gl2(_L6,_M6,_N6,_O6){let _p6=this._p6;let _r6=this._r6;let _q6=this._q6;let _s6=this._s6;if(_L6<=_p6&&_N6<=_p6||_M6<=_r6&&_O6<=_r6||_L6>=_q6&&_N6>=_q6||_M6>=_s6&&_O6>=_s6)return false;let _K6=(_O6-_M6)/(_N6-_L6);let y=_K6*(_p6-_L6)+_M6;if(y>_r6&&y<_s6)return true;
y=_K6*(_q6-_L6)+_M6;if(y>_r6&&y<_s6)return true;let x=(_r6-_M6)/_K6+_L6;if(x>_p6&&x<_q6)return true;x=(_s6-_M6)/_K6+_L6;if(x>_p6&&x<_q6)return true;return false;}_hl2(_Oi){return this._p6<_Oi._q6&&this._q6>_Oi._p6&&this._r6<_Oi._s6&&this._s6>_Oi._r6;}_97(x,y){let _x6=this._x6;for(let i=0,_I6=_x6.length;i<_I6;i++)if(this._il2(_x6[i],x,y))return this._o6[i];return null;}_il2(_w6,x,y){let vertices=_w6;let _oj2=_w6.length;let _jl2=_oj2-2;let _kl2=false;for(let _7F=0;_7F<_oj2;_7F+=2){let _ll2=vertices[_7F+1];let _ml2=vertices[_jl2+1];
if(_ll2<y&&_ml2>=y||_ml2<y&&_ll2>=y){let _nl2=vertices[_7F];if(_nl2+(y-_ll2)/(_ml2-_ll2)*(vertices[_jl2]-_nl2)<x)_kl2=!_kl2;}_jl2=_7F;}return _kl2;}_Q6(_L6,_M6,_N6,_O6){let _x6=this._x6;for(let i=0,_I6=_x6.length;i<_I6;i++)if(this._ol2(_x6[i],_L6,_M6,_N6,_O6))return this._o6[i];return null;}_ol2(_w6,_L6,_M6,_N6,_O6){let vertices=_w6;let _oj2=_w6.length;let _pl2=_L6-_N6,_ql2=_M6-_O6;let _rl2=_L6*_O6-_M6*_N6;let _hb=vertices[_oj2-2],_ib=vertices[_oj2-1];for(let _7F=0;_7F<_oj2;_7F+=2){let _sl2=vertices[_7F],_tl2=vertices[_7F+1];
let _ul2=_hb*_tl2-_ib*_sl2;let _vl2=_hb-_sl2,_wl2=_ib-_tl2;let _xl2=_pl2*_wl2-_ql2*_vl2;let x=(_rl2*_vl2-_pl2*_ul2)/_xl2;if((x>=_hb&&x<=_sl2||x>=_sl2&&x<=_hb)&&(x>=_L6&&x<=_N6||x>=_N6&&x<=_L6)){let y=(_rl2*_wl2-_ql2*_ul2)/_xl2;if((y>=_ib&&y<=_tl2||y>=_tl2&&y<=_ib)&&(y>=_M6&&y<=_O6||y>=_O6&&y<=_M6))return true;}_hb=_sl2;_ib=_tl2;}return false;}_yl2(_yb){if(!_yb)throw new Error("boundingBox cannot be null.");let index=this._o6.indexOf(_yb);return index==-1?null:this._x6[index];}_4Q1(){return this._q6-this._p6;
}_5Q1(){return this._s6-this._r6;}};var _fb2=class {constructor(){this._zl2=new Array();this._Al2=new Array();this._Bl2=new Array();this._Cl2=new Array();this.triangles=new Array();this._cl2=new _Fa2(()=>{return new Array();});this._Dl2=new _Fa2(()=>{return new Array();});}_El2(_Fl2){let vertices=_Fl2;let vertexCount=_Fl2.length>>1;let _F9=this._Bl2;_F9.length=0;for(let i=0;i<vertexCount;i++)_F9[i]=i;let _Gl2=this._Cl2;_Gl2.length=0;for(let i=0,_I6=vertexCount;i<_I6;++i)_Gl2[i]=_fb2._Gl2(i,vertexCount,vertices,_F9);
let triangles=this.triangles;triangles.length=0;while(vertexCount>3){let _Be2=vertexCount-1,i=0,_bl=1;while(true){_Qe2:if(!_Gl2[i]){let _qu=_F9[_Be2]<<1,_rn1=_F9[i]<<1,_kp1=_F9[_bl]<<1;let _Hl2=vertices[_qu],_Il2=vertices[_qu+1];let _Jl2=vertices[_rn1],_Kl2=vertices[_rn1+1];let _Ll2=vertices[_kp1],_Ml2=vertices[_kp1+1];for(let _7F=(_bl+1)%vertexCount;_7F!=_Be2;_7F=(_7F+1)%vertexCount){if(!_Gl2[_7F])continue;let _n5=_F9[_7F]<<1;let _Yo1=vertices[_n5],_Zo1=vertices[_n5+1];if(_fb2._Nl2(_Ll2,_Ml2,_Hl2,_Il2,_Yo1,
_Zo1)){if(_fb2._Nl2(_Hl2,_Il2,_Jl2,_Kl2,_Yo1,_Zo1)){if(_fb2._Nl2(_Jl2,_Kl2,_Ll2,_Ml2,_Yo1,_Zo1))break _Qe2;}}}break;}if(_bl==0){do {if(!_Gl2[i])break;i--;}while(i>0);break;}_Be2=i;i=_bl;_bl=(_bl+1)%vertexCount;}triangles.push(_F9[(vertexCount+i-1)%vertexCount]);triangles.push(_F9[i]);triangles.push(_F9[(i+1)%vertexCount]);_F9.splice(i,1);_Gl2.splice(i,1);vertexCount--;let _Ol2=(vertexCount+i-1)%vertexCount;let _Pl2=i==vertexCount?0:i;_Gl2[_Ol2]=_fb2._Gl2(_Ol2,vertexCount,vertices,_F9);_Gl2[_Pl2]=_fb2._Gl2(_Pl2,
vertexCount,vertices,_F9);}if(vertexCount==3){triangles.push(_F9[2]);triangles.push(_F9[0]);triangles.push(_F9[1]);}return triangles;}_Ql2(_Fl2,triangles){let vertices=_Fl2;let _zl2=this._zl2;this._cl2._8c2(_zl2);_zl2.length=0;let _Al2=this._Al2;this._Dl2._8c2(_Al2);_Al2.length=0;let _Rl2=this._Dl2._6c2();_Rl2.length=0;let _w6=this._cl2._6c2();_w6.length=0;let _Sl2=-1,_Tl2=0;for(let i=0,_I6=triangles.length;i<_I6;i+=3){let _rs1=triangles[i]<<1,_ss1=triangles[i+1]<<1,_Ul2=triangles[i+2]<<1;let _L6=vertices[_rs1],
_M6=vertices[_rs1+1];let _N6=vertices[_ss1],_O6=vertices[_ss1+1];let _hb=vertices[_Ul2],_ib=vertices[_Ul2+1];let _Vl2=false;if(_Sl2==_rs1){let _UE=_w6.length-4;let _Wl2=_fb2._Xl2(_w6[_UE],_w6[_UE+1],_w6[_UE+2],_w6[_UE+3],_hb,_ib);let _Yl2=_fb2._Xl2(_hb,_ib,_w6[0],_w6[1],_w6[2],_w6[3]);if(_Wl2==_Tl2&&_Yl2==_Tl2){_w6.push(_hb);_w6.push(_ib);_Rl2.push(_Ul2);_Vl2=true;}}if(!_Vl2){if(_w6.length>0){_zl2.push(_w6);_Al2.push(_Rl2);}else {this._cl2._7c2(_w6);this._Dl2._7c2(_Rl2);}_w6=this._cl2._6c2();_w6.length=0;
_w6.push(_L6);_w6.push(_M6);_w6.push(_N6);_w6.push(_O6);_w6.push(_hb);_w6.push(_ib);_Rl2=this._Dl2._6c2();_Rl2.length=0;_Rl2.push(_rs1);_Rl2.push(_ss1);_Rl2.push(_Ul2);_Tl2=_fb2._Xl2(_L6,_M6,_N6,_O6,_hb,_ib);_Sl2=_rs1;}}if(_w6.length>0){_zl2.push(_w6);_Al2.push(_Rl2);}for(let i=0,_I6=_zl2.length;i<_I6;i++){_Rl2=_Al2[i];if(_Rl2.length==0)continue;let _FE1=_Rl2[0];let lastIndex=_Rl2[_Rl2.length-1];_w6=_zl2[i];let _UE=_w6.length-4;let _Zl2=_w6[_UE],__l2=_w6[_UE+1];let _0m2=_w6[_UE+2],_ml2=_w6[_UE+3];let _1m2=_w6[0],
_2m2=_w6[1];let _3m2=_w6[2],_4m2=_w6[3];let _Xl2=_fb2._Xl2(_Zl2,__l2,_0m2,_ml2,_1m2,_2m2);for(let _7F=0;_7F<_I6;_7F++){if(_7F==i)continue;let _5m2=_Al2[_7F];if(_5m2.length!=3)continue;let _6m2=_5m2[0];let _7m2=_5m2[1];let _8m2=_5m2[2];let _9m2=_zl2[_7F];let _hb=_9m2[_9m2.length-2],_ib=_9m2[_9m2.length-1];if(_6m2!=_FE1||_7m2!=lastIndex)continue;let _Wl2=_fb2._Xl2(_Zl2,__l2,_0m2,_ml2,_hb,_ib);let _Yl2=_fb2._Xl2(_hb,_ib,_1m2,_2m2,_3m2,_4m2);if(_Wl2==_Xl2&&_Yl2==_Xl2){_9m2.length=0;_5m2.length=0;_w6.push(_hb);
_w6.push(_ib);_Rl2.push(_8m2);_Zl2=_0m2;__l2=_ml2;_0m2=_hb;_ml2=_ib;_7F=0;}}}for(let i=_zl2.length-1;i>=0;i--){_w6=_zl2[i];if(_w6.length==0){_zl2.splice(i,1);this._cl2._7c2(_w6);_Rl2=_Al2[i];_Al2.splice(i,1);this._Dl2._7c2(_Rl2);}}return _zl2;}static _Gl2(index,vertexCount,vertices,_F9){let _Be2=_F9[(vertexCount+index-1)%vertexCount]<<1;let current=_F9[index]<<1;let _bl=_F9[(index+1)%vertexCount]<<1;return !this._Nl2(vertices[_Be2],vertices[_Be2+1],vertices[current],vertices[current+1],vertices[_bl],vertices[_bl+1]);
}static _Nl2(_Hl2,_Il2,_Jl2,_Kl2,_Ll2,_Ml2){return _Hl2*(_Ml2-_Kl2)+_Jl2*(_Il2-_Ml2)+_Ll2*(_Kl2-_Il2)>=0;}static _Xl2(_Hl2,_Il2,_Jl2,_Kl2,_Ll2,_Ml2){let _0u=_Jl2-_Hl2,_1u=_Kl2-_Il2;return _Ll2*_1u-_Ml2*_0u+_0u*_Il2-_Hl2*_1u>=0?1:-1;}};var _U9=class {constructor(){this._am2=new _fb2();this._bm2=new Array();this._cm2=new Array();this._X9=new Array();this._Y9=new Array();this._dm2=new Array();}_V9(slot,clip){if(this._em2)return 0;this._em2=clip;let _I6=clip._S9;let vertices=_gb2._Tb2(this._bm2,_I6);clip._M9(slot,0,
_I6,vertices,0,2);let _bm2=this._bm2;_U9._fm2(_bm2);let _gm2=this._gm2=this._am2._Ql2(_bm2,this._am2._El2(_bm2));for(let i=0,_4e2=_gm2.length;i<_4e2;i++){let _w6=_gm2[i];_U9._fm2(_w6);_w6.push(_w6[0]);_w6.push(_w6[1]);}return _gm2.length;}_5a(slot){if(this._em2&&this._em2._5f2==slot.data)this._6a();}_6a(){if(!this._em2)return;this._em2=null;this._gm2=null;this._X9.length=0;this._Y9.length=0;this._bm2.length=0;}_L9(){return this._em2!=null;}_W9(vertices,_mi2,triangles,_hm2,uvs,light,dark,twoColor){let _cm2=this._cm2,
_X9=this._X9;let _Y9=this._Y9;let _x6=this._gm2;let _im2=this._gm2.length;let _i_1=twoColor?12:8;let index=0;_X9.length=0;_Y9.length=0;_Qe2:for(let i=0;i<_hm2;i+=3){let _Sf2=triangles[i]<<1;let _L6=vertices[_Sf2],_M6=vertices[_Sf2+1];let _Fs1=uvs[_Sf2],_jb=uvs[_Sf2+1];_Sf2=triangles[i+1]<<1;let _N6=vertices[_Sf2],_O6=vertices[_Sf2+1];let _o5=uvs[_Sf2],_p5=uvs[_Sf2+1];_Sf2=triangles[i+2]<<1;let _hb=vertices[_Sf2],_ib=vertices[_Sf2+1];let _jm2=uvs[_Sf2],_kb=uvs[_Sf2+1];for(let _ih=0;_ih<_im2;_ih++){let _qi=_X9.length;
if(this.clip(_L6,_M6,_N6,_O6,_hb,_ib,_x6[_ih],_cm2)){let _km2=_cm2.length;if(_km2==0)continue;let _lm2=_O6-_ib,_dD=_hb-_N6,_eD=_L6-_hb,_mm2=_ib-_M6;let _tm=1/(_lm2*_eD+_dD*(_M6-_ib));let _nm2=_km2>>1;let _om2=this._cm2;let _pm2=_gb2._Tb2(_X9,_qi+_nm2*_i_1);for(let _7F=0;_7F<_km2;_7F+=2){let x=_om2[_7F],y=_om2[_7F+1];_pm2[_qi]=x;_pm2[_qi+1]=y;_pm2[_qi+2]=light._D4;_pm2[_qi+3]=light._E4;_pm2[_qi+4]=light._F4;_pm2[_qi+5]=light._G4;let _tm1=x-_hb,_8h=y-_ib;let _G4=(_lm2*_tm1+_dD*_8h)*_tm;let _F4=(_mm2*_tm1+_eD*_8h)*_tm;
let c=1-_G4-_F4;_pm2[_qi+6]=_Fs1*_G4+_o5*_F4+_jm2*c;_pm2[_qi+7]=_jb*_G4+_p5*_F4+_kb*c;if(twoColor){_pm2[_qi+8]=dark._D4;_pm2[_qi+9]=dark._E4;_pm2[_qi+10]=dark._F4;_pm2[_qi+11]=dark._G4;}_qi+=_i_1;}_qi=_Y9.length;let _qm2=_gb2._Tb2(_Y9,_qi+3*(_nm2-2));_nm2--;for(let _7F=1;_7F<_nm2;_7F++){_qm2[_qi]=index;_qm2[_qi+1]=index+_7F;_qm2[_qi+2]=index+_7F+1;_qi+=3;}index+=_nm2+1;}else {let _pm2=_gb2._Tb2(_X9,_qi+3*_i_1);_pm2[_qi]=_L6;_pm2[_qi+1]=_M6;_pm2[_qi+2]=light._D4;_pm2[_qi+3]=light._E4;_pm2[_qi+4]=light._F4;
_pm2[_qi+5]=light._G4;if(!twoColor){_pm2[_qi+6]=_Fs1;_pm2[_qi+7]=_jb;_pm2[_qi+8]=_N6;_pm2[_qi+9]=_O6;_pm2[_qi+10]=light._D4;_pm2[_qi+11]=light._E4;_pm2[_qi+12]=light._F4;_pm2[_qi+13]=light._G4;_pm2[_qi+14]=_o5;_pm2[_qi+15]=_p5;_pm2[_qi+16]=_hb;_pm2[_qi+17]=_ib;_pm2[_qi+18]=light._D4;_pm2[_qi+19]=light._E4;_pm2[_qi+20]=light._F4;_pm2[_qi+21]=light._G4;_pm2[_qi+22]=_jm2;_pm2[_qi+23]=_kb;}else {_pm2[_qi+6]=_Fs1;_pm2[_qi+7]=_jb;_pm2[_qi+8]=dark._D4;_pm2[_qi+9]=dark._E4;_pm2[_qi+10]=dark._F4;_pm2[_qi+11]=dark._G4;
_pm2[_qi+12]=_N6;_pm2[_qi+13]=_O6;_pm2[_qi+14]=light._D4;_pm2[_qi+15]=light._E4;_pm2[_qi+16]=light._F4;_pm2[_qi+17]=light._G4;_pm2[_qi+18]=_o5;_pm2[_qi+19]=_p5;_pm2[_qi+20]=dark._D4;_pm2[_qi+21]=dark._E4;_pm2[_qi+22]=dark._F4;_pm2[_qi+23]=dark._G4;_pm2[_qi+24]=_hb;_pm2[_qi+25]=_ib;_pm2[_qi+26]=light._D4;_pm2[_qi+27]=light._E4;_pm2[_qi+28]=light._F4;_pm2[_qi+29]=light._G4;_pm2[_qi+30]=_jm2;_pm2[_qi+31]=_kb;_pm2[_qi+32]=dark._D4;_pm2[_qi+33]=dark._E4;_pm2[_qi+34]=dark._F4;_pm2[_qi+35]=dark._G4;}_qi=_Y9.length;
let _qm2=_gb2._Tb2(_Y9,_qi+3);_qm2[_qi]=index;_qm2[_qi+1]=index+1;_qm2[_qi+2]=index+2;index+=3;continue _Qe2;}}}}clip(_L6,_M6,_N6,_O6,_hb,_ib,_rm2,_pI){let _sm2=_pI;let _tm2=false;let _nI=null;if(_rm2.length%4>=2){_nI=_pI;_pI=this._dm2;}else _nI=this._dm2;_nI.length=0;_nI.push(_L6);_nI.push(_M6);_nI.push(_N6);_nI.push(_O6);_nI.push(_hb);_nI.push(_ib);_nI.push(_L6);_nI.push(_M6);_pI.length=0;let _um2=_rm2;let _vm2=_rm2.length-4;for(let i=0;;i+=2){let _wm2=_um2[i],_xm2=_um2[i+1];let _ym2=_um2[i+2],_zm2=_um2[i+3];
let _Am2=_wm2-_ym2,_Bm2=_xm2-_zm2;let _Cm2=_nI;let _Dm2=_nI.length-2,_Em2=_pI.length;for(let _7F=0;_7F<_Dm2;_7F+=2){let _Fm2=_Cm2[_7F],_Gm2=_Cm2[_7F+1];let _Hm2=_Cm2[_7F+2],_Im2=_Cm2[_7F+3];let _Jm2=_Am2*(_Im2-_zm2)-_Bm2*(_Hm2-_ym2)>0;if(_Am2*(_Gm2-_zm2)-_Bm2*(_Fm2-_ym2)>0){if(_Jm2){_pI.push(_Hm2);_pI.push(_Im2);continue;}let _tm1=_Im2-_Gm2,_9h=_Hm2-_Fm2;let _qi=_tm1*(_ym2-_wm2)-_9h*(_zm2-_xm2);if(Math.abs(_qi)>1e-6){let _Km2=(_9h*(_xm2-_Gm2)-_tm1*(_wm2-_Fm2))/_qi;_pI.push(_wm2+(_ym2-_wm2)*_Km2);_pI.push(_xm2+(_zm2-_xm2)*_Km2);
}else {_pI.push(_wm2);_pI.push(_xm2);}}else if(_Jm2){let _tm1=_Im2-_Gm2,_9h=_Hm2-_Fm2;let _qi=_tm1*(_ym2-_wm2)-_9h*(_zm2-_xm2);if(Math.abs(_qi)>1e-6){let _Km2=(_9h*(_xm2-_Gm2)-_tm1*(_wm2-_Fm2))/_qi;_pI.push(_wm2+(_ym2-_wm2)*_Km2);_pI.push(_xm2+(_zm2-_xm2)*_Km2);}else {_pI.push(_wm2);_pI.push(_xm2);}_pI.push(_Hm2);_pI.push(_Im2);}_tm2=true;}if(_Em2==_pI.length){_sm2.length=0;return true;}_pI.push(_pI[0]);_pI.push(_pI[1]);if(i==_vm2)break;let _pK=_pI;_pI=_nI;_pI.length=0;_nI=_pK;}if(_sm2!=_pI){_sm2.length=0;
for(let i=0,_I6=_pI.length-2;i<_I6;i++)_sm2[i]=_pI[i];}else _sm2.length=_sm2.length-2;return _tm2;}static _fm2(_w6){let vertices=_w6;let _Lm2=_w6.length;let __o1=vertices[_Lm2-2]*vertices[1]-vertices[0]*vertices[_Lm2-1],_Hl2=0,_Il2=0,_Jl2=0,_Kl2=0;for(let i=0,_I6=_Lm2-3;i<_I6;i+=2){_Hl2=vertices[i];_Il2=vertices[i+1];_Jl2=vertices[i+2];_Kl2=vertices[i+3];__o1+=_Hl2*_Kl2-_Jl2*_Il2;}if(__o1<0)return;for(let i=0,_Mm2=_Lm2-2,_I6=_Lm2>>1;i<_I6;i+=2){let x=vertices[i],y=vertices[i+1];let other=_Mm2-i;vertices[i]=vertices[other];
vertices[i+1]=vertices[other+1];vertices[other]=x;vertices[other+1]=y;}}};var __8=class {constructor(_B5){this.scale=1;this._Nj2=new Array();this._B5=_B5;}_09(json){let scale=this.scale;let _De2=new _Ya2();let _W5=typeof json==="string"?JSON.parse(json):json;let _Nm2=_W5.skeleton;if(_Nm2){_De2.hash=_Nm2.hash;_De2.version=_Nm2.spine;_De2.x=_Nm2.x;_De2.y=_Nm2.y;_De2.width=_Nm2.width;_De2.height=_Nm2.height;_De2.fps=_Nm2.fps;_De2._Wj2=_Nm2.images;}if(_W5.bones){for(let i=0;i<_W5.bones.length;i++){let _Om2=_W5.bones[i];
let parent=null;let _Pm2=_Qm2(_Om2,"parent",null);if(_Pm2)parent=_De2._q7(_Pm2);let data=new _7a2(_De2.bones.length,_Om2.name,parent);data.length=_Qm2(_Om2,"length",0)*scale;data.x=_Qm2(_Om2,"x",0)*scale;data.y=_Qm2(_Om2,"y",0)*scale;data.rotation=_Qm2(_Om2,"rotation",0);data.scaleX=_Qm2(_Om2,"scaleX",1);data.scaleY=_Qm2(_Om2,"scaleY",1);data.shearX=_Qm2(_Om2,"shearX",0);data.shearY=_Qm2(_Om2,"shearY",0);data._lc1=_gb2._2c2(_bb2,_Qm2(_Om2,"transform","Normal"));data._tg2=_Qm2(_Om2,"skin",false);let color=_Qm2(_Om2,
"color",null);if(color)data.color._pb2(color);_De2.bones.push(data);}}if(_W5.slots){for(let i=0;i<_W5.slots.length;i++){let _Rm2=_W5.slots[i];let _58=_De2._q7(_Rm2.bone);let data=new _0b2(_De2.slots.length,_Rm2.name,_58);let color=_Qm2(_Rm2,"color",null);if(color)data.color._pb2(color);let dark=_Qm2(_Rm2,"dark",null);if(dark)data._za=_H4._902(dark);data._Eb=_Qm2(_Rm2,"attachment",null);data._Ea=_gb2._2c2(_ba,_Qm2(_Rm2,"blend","normal"));_De2.slots.push(data);}}if(_W5.ik){for(let i=0;i<_W5.ik.length;i++){
let _Sm2=_W5.ik[i];let data=new _qa2(_Sm2.name);data._2h2=_Qm2(_Sm2,"order",0);data._tg2=_Qm2(_Sm2,"skin",false);for(let _7F=0;_7F<_Sm2.bones.length;_7F++)data.bones.push(_De2._q7(_Sm2.bones[_7F]));data.target=_De2._q7(_Sm2.target);data.mix=_Qm2(_Sm2,"mix",1);data._qd2=_Qm2(_Sm2,"softness",0)*scale;data._rd2=_Qm2(_Sm2,"bendPositive",true)?1:-1;data.compress=_Qm2(_Sm2,"compress",false);data.stretch=_Qm2(_Sm2,"stretch",false);data._Fh2=_Qm2(_Sm2,"uniform",false);_De2._td2.push(data);}}if(_W5.transform){
for(let i=0;i<_W5.transform.length;i++){let _Sm2=_W5.transform[i];let data=new _9b2(_Sm2.name);data._2h2=_Qm2(_Sm2,"order",0);data._tg2=_Qm2(_Sm2,"skin",false);for(let _7F=0;_7F<_Sm2.bones.length;_7F++)data.bones.push(_De2._q7(_Sm2.bones[_7F]));let _Tm2=_Sm2.target;data.target=_De2._q7(_Tm2);data._Di=_Qm2(_Sm2,"local",false);data._Ti2=_Qm2(_Sm2,"relative",false);data._ji2=_Qm2(_Sm2,"rotation",0);data._q5=_Qm2(_Sm2,"x",0)*scale;data._r5=_Qm2(_Sm2,"y",0)*scale;data._1j2=_Qm2(_Sm2,"scaleX",0);data._2j2=_Qm2(_Sm2,
"scaleY",0);data._0j2=_Qm2(_Sm2,"shearY",0);data._vd2=_Qm2(_Sm2,"mixRotate",1);data._wd2=_Qm2(_Sm2,"mixX",1);data._xd2=_Qm2(_Sm2,"mixY",data._wd2);data._yd2=_Qm2(_Sm2,"mixScaleX",1);data._zd2=_Qm2(_Sm2,"mixScaleY",data._yd2);data._Ad2=_Qm2(_Sm2,"mixShearY",1);_De2._Bd2.push(data);}}if(_W5.path){for(let i=0;i<_W5.path.length;i++){let _Sm2=_W5.path[i];let data=new _Aa2(_Sm2.name);data._2h2=_Qm2(_Sm2,"order",0);data._tg2=_Qm2(_Sm2,"skin",false);for(let _7F=0;_7F<_Sm2.bones.length;_7F++)data.bones.push(_De2._q7(_Sm2.bones[_7F]));
let _Tm2=_Sm2.target;data.target=_De2._v4(_Tm2);data._ri2=_gb2._2c2(_Ga2,_Qm2(_Sm2,"positionMode","Percent"));data.spacingMode=_gb2._2c2(_1b2,_Qm2(_Sm2,"spacingMode","Length"));data.rotateMode=_gb2._2c2(_Na2,_Qm2(_Sm2,"rotateMode","Tangent"));data._ji2=_Qm2(_Sm2,"rotation",0);data.position=_Qm2(_Sm2,"position",0);if(data._ri2==_Ga2.Fixed)data.position*=scale;data.spacing=_Qm2(_Sm2,"spacing",0);if(data.spacingMode==_1b2.Length||data.spacingMode==_1b2.Fixed)data.spacing*=scale;data._vd2=_Qm2(_Sm2,"mixRotate",
1);data._wd2=_Qm2(_Sm2,"mixX",1);data._xd2=_Qm2(_Sm2,"mixY",data._wd2);_De2._Dd2.push(data);}}if(_W5.skins){for(let i=0;i<_W5.skins.length;i++){let _Um2=_W5.skins[i];let skin=new _J7(_Um2.name);if(_Um2.bones){for(let _7F=0;_7F<_Um2.bones.length;_7F++)skin.bones.push(_De2._q7(_Um2.bones[_7F]));}if(_Um2.ik){for(let _7F=0;_7F<_Um2.ik.length;_7F++)skin._Fa1.push(_De2._xj2(_Um2.ik[_7F]));}if(_Um2.transform){for(let _7F=0;_7F<_Um2.transform.length;_7F++)skin._Fa1.push(_De2._zj2(_Um2.transform[_7F]));}if(_Um2.path){
for(let _7F=0;_7F<_Um2.path.length;_7F++)skin._Fa1.push(_De2._Aj2(_Um2.path[_7F]));}for(let _tj2 in _Um2.attachments){let slot=_De2._v4(_tj2);let _Rm2=_Um2.attachments[_tj2];for(let _Vm2 in _Rm2){let attachment=this._5k2(_Rm2[_Vm2],skin,slot.index,_Vm2,_De2);if(attachment)skin._w4(slot.index,_Vm2,attachment);}}_De2.skins.push(skin);if(skin.name=="default")_De2._i4=skin;}}for(let i=0,_I6=this._Nj2.length;i<_I6;i++){let _1k2=this._Nj2[i];let skin=!_1k2.skin?_De2._i4:_De2._L7(_1k2.skin);let parent=skin._z4(_1k2._x4,
_1k2.parent);_1k2._R9._lc2=_1k2._2k2?parent:_1k2._R9;_1k2._R9._vf2(parent);_1k2._R9._pf2();}this._Nj2.length=0;if(_W5.events){for(let _Wm2 in _W5.events){let _Xm2=_W5.events[_Wm2];let data=new _ha2(_Wm2);data._E3=_Qm2(_Xm2,"int",0);data._F3=_Qm2(_Xm2,"float",0);data._G3=_Qm2(_Xm2,"string","");data._Xj2=_Qm2(_Xm2,"audio",null);if(data._Xj2){data.volume=_Qm2(_Xm2,"volume",1);data._fv1=_Qm2(_Xm2,"balance",0);}_De2.events.push(data);}}if(_W5.animations){for(let _Ce2 in _W5.animations){let _Ym2=_W5.animations[_Ce2];
this._3k2(_Ym2,_Ce2,_De2);}}return _De2;}_5k2(map,skin,_x4,name,_De2){let scale=this.scale;name=_Qm2(map,"name",name);switch(_Qm2(map,"type","region")){case "region":{let path=_Qm2(map,"path",name);let _k5=this._B5._E5(skin,name,path);if(!_k5)return null;_k5.path=path;_k5.x=_Qm2(map,"x",0)*scale;_k5.y=_Qm2(map,"y",0)*scale;_k5.scaleX=_Qm2(map,"scaleX",1);_k5.scaleY=_Qm2(map,"scaleY",1);_k5.rotation=_Qm2(map,"rotation",0);_k5.width=map.width*scale;_k5.height=map.height*scale;let color=_Qm2(map,"color",null);
if(color)_k5.color._pb2(color);_k5._J5();return _k5;}case "boundingbox":{let _8k2=this._B5._pg2(skin,name);if(!_8k2)return null;this._7k2(map,_8k2,map.vertexCount<<1);let color=_Qm2(map,"color",null);if(color)_8k2.color._pb2(color);return _8k2;}case "mesh":case "linkedmesh":{let path=_Qm2(map,"path",name);let _R9=this._B5._og2(skin,name,path);if(!_R9)return null;_R9.path=path;let color=_Qm2(map,"color",null);if(color)_R9.color._pb2(color);_R9.width=_Qm2(map,"width",0)*scale;_R9.height=_Qm2(map,"height",0)*scale;
let parent=_Qm2(map,"parent",null);if(parent){this._Nj2.push(new _Zm2(_R9,_Qm2(map,"skin",null),_x4,parent,_Qm2(map,"deform",true)));return _R9;}let uvs=map.uvs;this._7k2(map,_R9,uvs.length);_R9.triangles=map.triangles;_R9._qf2=uvs;_R9._pf2();_R9.edges=_Qm2(map,"edges",null);_R9._wf2=_Qm2(map,"hull",0)*2;return _R9;}case "path":{let path=this._B5._qg2(skin,name);if(!path)return null;path.closed=_Qm2(map,"closed",false);path._yf2=_Qm2(map,"constantSpeed",true);let vertexCount=map.vertexCount;this._7k2(map,
path,vertexCount<<1);let lengths=_gb2._Vb2(vertexCount/3,0);for(let i=0;i<map.lengths.length;i++)lengths[i]=map.lengths[i]*scale;path.lengths=lengths;let color=_Qm2(map,"color",null);if(color)path.color._pb2(color);return path;}case "point":{let _Cr1=this._B5._rg2(skin,name);if(!_Cr1)return null;_Cr1.x=_Qm2(map,"x",0)*scale;_Cr1.y=_Qm2(map,"y",0)*scale;_Cr1.rotation=_Qm2(map,"rotation",0);let color=_Qm2(map,"color",null);if(color)_Cr1.color._pb2(color);return _Cr1;}case "clipping":{let clip=this._B5._sg2(skin,
name);if(!clip)return null;let end=_Qm2(map,"end",null);if(end)clip._5f2=_De2._v4(end);let vertexCount=map.vertexCount;this._7k2(map,clip,vertexCount<<1);let color=_Qm2(map,"color",null);if(color)clip.color._pb2(color);return clip;}}return null;}_7k2(map,attachment,_mi2){let scale=this.scale;attachment._S9=_mi2;let vertices=map.vertices;if(_mi2==vertices.length){let __m2=_gb2._Zb2(vertices);if(scale!=1){for(let i=0,_I6=vertices.length;i<_I6;i++)__m2[i]*=scale;}attachment.vertices=__m2;return;}let _ek2=new Array();
let bones=new Array();for(let i=0,_I6=vertices.length;i<_I6;){let _ai2=vertices[i++];bones.push(_ai2);for(let _oj2=i+_ai2*4;i<_oj2;i+=4){bones.push(vertices[i]);_ek2.push(vertices[i+1]*scale);_ek2.push(vertices[i+2]*scale);_ek2.push(vertices[i+3]);}}attachment.bones=bones;attachment.vertices=_gb2._Zb2(_ek2);}_3k2(map,name,_De2){let scale=this.scale;let _76=new Array();if(map.slots){for(let _tj2 in map.slots){let _Rm2=map.slots[_tj2];let _x4=_De2._v4(_tj2).index;for(let _0n2 in _Rm2){let _1n2=_Rm2[_0n2];if(!_1n2)continue;
let frames=_1n2.length;if(_0n2=="attachment"){let _zH=new _4a2(frames,_x4);for(let frame=0;frame<frames;frame++){let _2n2=_1n2[frame];_zH._1d2(frame,_Qm2(_2n2,"time",0),_2n2.name);}_76.push(_zH);}else if(_0n2=="rgba"){let _zH=new _La2(frames,frames<<2,_x4);let _2n2=_1n2[0];let time=_Qm2(_2n2,"time",0);let color=_H4._902(_2n2.color);for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,color._D4,color._E4,color._F4,color._G4);let _3n2=_1n2[frame+1];if(!_3n2){_zH._Jc2(_Mc2);break;}let _gD=_Qm2(_3n2,"time",0);let _4n2=_H4._902(_3n2.color);
let curve=_2n2.curve;if(curve){_Mc2=_5n2(curve,_zH,_Mc2,frame,0,time,_gD,color._D4,_4n2._D4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,1,time,_gD,color._E4,_4n2._E4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,2,time,_gD,color._F4,_4n2._F4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,3,time,_gD,color._G4,_4n2._G4,1);}time=_gD;color=_4n2;_2n2=_3n2;}_76.push(_zH);}else if(_0n2=="rgb"){let _zH=new _Ma2(frames,frames*3,_x4);let _2n2=_1n2[0];let time=_Qm2(_2n2,"time",0);let color=_H4._902(_2n2.color);for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,
time,color._D4,color._E4,color._F4);let _3n2=_1n2[frame+1];if(!_3n2){_zH._Jc2(_Mc2);break;}let _gD=_Qm2(_3n2,"time",0);let _4n2=_H4._902(_3n2.color);let curve=_2n2.curve;if(curve){_Mc2=_5n2(curve,_zH,_Mc2,frame,0,time,_gD,color._D4,_4n2._D4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,1,time,_gD,color._E4,_4n2._E4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,2,time,_gD,color._F4,_4n2._F4,1);}time=_gD;color=_4n2;_2n2=_3n2;}_76.push(_zH);}else if(_0n2=="alpha"){_76.push(_6n2(_1n2,new __92(frames,frames,_x4),0,1));}else if(_0n2=="rgba2"){
let _zH=new _Ka2(frames,frames*7,_x4);let _2n2=_1n2[0];let time=_Qm2(_2n2,"time",0);let color=_H4._902(_2n2.light);let _EA1=_H4._902(_2n2.dark);for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,color._D4,color._E4,color._F4,color._G4,_EA1._D4,_EA1._E4,_EA1._F4);let _3n2=_1n2[frame+1];if(!_3n2){_zH._Jc2(_Mc2);break;}let _gD=_Qm2(_3n2,"time",0);let _4n2=_H4._902(_3n2.light);let _7n2=_H4._902(_3n2.dark);let curve=_2n2.curve;if(curve){_Mc2=_5n2(curve,_zH,_Mc2,frame,0,time,_gD,color._D4,_4n2._D4,1);_Mc2=_5n2(curve,
_zH,_Mc2,frame,1,time,_gD,color._E4,_4n2._E4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,2,time,_gD,color._F4,_4n2._F4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,3,time,_gD,color._G4,_4n2._G4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,4,time,_gD,_EA1._D4,_7n2._D4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,5,time,_gD,_EA1._E4,_7n2._E4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,6,time,_gD,_EA1._F4,_7n2._F4,1);}time=_gD;color=_4n2;_EA1=_7n2;_2n2=_3n2;}_76.push(_zH);}else if(_0n2=="rgb2"){let _zH=new _Ja2(frames,frames*6,_x4);let _2n2=_1n2[0];let time=_Qm2(_2n2,
"time",0);let color=_H4._902(_2n2.light);let _EA1=_H4._902(_2n2.dark);for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,color._D4,color._E4,color._F4,_EA1._D4,_EA1._E4,_EA1._F4);let _3n2=_1n2[frame+1];if(!_3n2){_zH._Jc2(_Mc2);break;}let _gD=_Qm2(_3n2,"time",0);let _4n2=_H4._902(_3n2.light);let _7n2=_H4._902(_3n2.dark);let curve=_2n2.curve;if(curve){_Mc2=_5n2(curve,_zH,_Mc2,frame,0,time,_gD,color._D4,_4n2._D4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,1,time,_gD,color._E4,_4n2._E4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,
2,time,_gD,color._F4,_4n2._F4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,3,time,_gD,_EA1._D4,_7n2._D4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,4,time,_gD,_EA1._E4,_7n2._E4,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,5,time,_gD,_EA1._F4,_7n2._F4,1);}time=_gD;color=_4n2;_EA1=_7n2;_2n2=_3n2;}_76.push(_zH);}}}}if(map.bones){for(let _sj2 in map.bones){let _Om2=map.bones[_sj2];let _7d2=_De2._q7(_sj2).index;for(let _0n2 in _Om2){let _1n2=_Om2[_0n2];let frames=_1n2.length;if(frames==0)continue;if(_0n2==="rotate"){_76.push(_6n2(_1n2,new _Oa2(frames,
frames,_7d2),0,1));}else if(_0n2==="translate"){let _zH=new _cb2(frames,frames<<1,_7d2);_76.push(_8n2(_1n2,_zH,"x","y",0,scale));}else if(_0n2==="translatex"){let _zH=new _db2(frames,frames,_7d2);_76.push(_6n2(_1n2,_zH,0,scale));}else if(_0n2==="translatey"){let _zH=new _eb2(frames,frames,_7d2);_76.push(_6n2(_1n2,_zH,0,scale));}else if(_0n2==="scale"){let _zH=new _Ra2(frames,frames<<1,_7d2);_76.push(_8n2(_1n2,_zH,"x","y",1,1));}else if(_0n2==="scalex"){let _zH=new _Sa2(frames,frames,_7d2);_76.push(_6n2(_1n2,_zH,
1,1));}else if(_0n2==="scaley"){let _zH=new _Ta2(frames,frames,_7d2);_76.push(_6n2(_1n2,_zH,1,1));}else if(_0n2==="shear"){let _zH=new _Ua2(frames,frames<<1,_7d2);_76.push(_8n2(_1n2,_zH,"x","y",0,1));}else if(_0n2==="shearx"){let _zH=new _Va2(frames,frames,_7d2);_76.push(_6n2(_1n2,_zH,0,1));}else if(_0n2==="sheary"){let _zH=new _Wa2(frames,frames,_7d2);_76.push(_6n2(_1n2,_zH,0,1));}}}}if(map.ik){for(let _yj2 in map.ik){let _Sm2=map.ik[_yj2];let _2n2=_Sm2[0];if(!_2n2)continue;let _sd2=_De2._xj2(_yj2);let _9n2=_De2._td2.indexOf(_sd2);
let _zH=new _ra2(_Sm2.length,_Sm2.length<<1,_9n2);let time=_Qm2(_2n2,"time",0);let mix=_Qm2(_2n2,"mix",1);let _qd2=_Qm2(_2n2,"softness",0)*scale;for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,mix,_qd2,_Qm2(_2n2,"bendPositive",true)?1:-1,_Qm2(_2n2,"compress",false),_Qm2(_2n2,"stretch",false));let _3n2=_Sm2[frame+1];if(!_3n2){_zH._Jc2(_Mc2);break;}let _gD=_Qm2(_3n2,"time",0);let _Lk2=_Qm2(_3n2,"mix",1);let _Mk2=_Qm2(_3n2,"softness",0)*scale;let curve=_2n2.curve;if(curve){_Mc2=_5n2(curve,_zH,_Mc2,frame,
0,time,_gD,mix,_Lk2,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,1,time,_gD,_qd2,_Mk2,scale);}time=_gD;mix=_Lk2;_qd2=_Mk2;_2n2=_3n2;}_76.push(_zH);}}if(map.transform){for(let _yj2 in map.transform){let _1n2=map.transform[_yj2];let _2n2=_1n2[0];if(!_2n2)continue;let _sd2=_De2._zj2(_yj2);let _9n2=_De2._Bd2.indexOf(_sd2);let _zH=new _ab2(_1n2.length,_1n2.length*6,_9n2);let time=_Qm2(_2n2,"time",0);let _vd2=_Qm2(_2n2,"mixRotate",1);let _wd2=_Qm2(_2n2,"mixX",1);let _xd2=_Qm2(_2n2,"mixY",_wd2);let _yd2=_Qm2(_2n2,"mixScaleX",1);
let _zd2=_Qm2(_2n2,"mixScaleY",_yd2);let _Ad2=_Qm2(_2n2,"mixShearY",1);for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,_vd2,_wd2,_xd2,_yd2,_zd2,_Ad2);let _3n2=_1n2[frame+1];if(!_3n2){_zH._Jc2(_Mc2);break;}let _gD=_Qm2(_3n2,"time",0);let _Nk2=_Qm2(_3n2,"mixRotate",1);let _Ok2=_Qm2(_3n2,"mixX",1);let _Pk2=_Qm2(_3n2,"mixY",_Ok2);let _Qk2=_Qm2(_3n2,"mixScaleX",1);let _Rk2=_Qm2(_3n2,"mixScaleY",_Qk2);let _Sk2=_Qm2(_3n2,"mixShearY",1);let curve=_2n2.curve;if(curve){_Mc2=_5n2(curve,_zH,_Mc2,frame,0,time,_gD,_vd2,
_Nk2,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,1,time,_gD,_wd2,_Ok2,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,2,time,_gD,_xd2,_Pk2,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,3,time,_gD,_yd2,_Qk2,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,4,time,_gD,_zd2,_Rk2,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,5,time,_gD,_Ad2,_Sk2,1);}time=_gD;_vd2=_Nk2;_wd2=_Ok2;_xd2=_Pk2;_yd2=_Qk2;_zd2=_Rk2;_yd2=_Qk2;_2n2=_3n2;}_76.push(_zH);}}if(map.path){for(let _yj2 in map.path){let _Sm2=map.path[_yj2];let _sd2=_De2._Aj2(_yj2);let _9n2=_De2._Dd2.indexOf(_sd2);for(let _0n2 in _Sm2){
let _1n2=_Sm2[_0n2];let _2n2=_1n2[0];if(!_2n2)continue;let frames=_1n2.length;if(_0n2==="position"){let _zH=new _Ca2(frames,frames,_9n2);_76.push(_6n2(_1n2,_zH,0,_sd2._ri2==_Ga2.Fixed?scale:1));}else if(_0n2==="spacing"){let _zH=new _Da2(frames,frames,_9n2);_76.push(_6n2(_1n2,_zH,0,_sd2.spacingMode==_1b2.Length||_sd2.spacingMode==_1b2.Fixed?scale:1));}else if(_0n2==="mix"){let _zH=new _Ba2(frames,frames*3,_9n2);let time=_Qm2(_2n2,"time",0);let _vd2=_Qm2(_2n2,"mixRotate",1);let _wd2=_Qm2(_2n2,"mixX",1);let _xd2=_Qm2(_2n2,
"mixY",_wd2);for(let frame=0,_Mc2=0;;frame++){_zH._1d2(frame,time,_vd2,_wd2,_xd2);let _3n2=_1n2[frame+1];if(!_3n2){_zH._Jc2(_Mc2);break;}let _gD=_Qm2(_3n2,"time",0);let _Nk2=_Qm2(_3n2,"mixRotate",1);let _Ok2=_Qm2(_3n2,"mixX",1);let _Pk2=_Qm2(_3n2,"mixY",_Ok2);let curve=_2n2.curve;if(curve){_Mc2=_5n2(curve,_zH,_Mc2,frame,0,time,_gD,_vd2,_Nk2,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,1,time,_gD,_wd2,_Ok2,1);_Mc2=_5n2(curve,_zH,_Mc2,frame,2,time,_gD,_xd2,_Pk2,1);}time=_gD;_vd2=_Nk2;_wd2=_Ok2;_xd2=_Pk2;_2n2=_3n2;}
_76.push(_zH);}}}}if(map.deform){for(let _an2 in map.deform){let _bn2=map.deform[_an2];let skin=_De2._L7(_an2);for(let _tj2 in _bn2){let _Rm2=_bn2[_tj2];let _x4=_De2._v4(_tj2).index;for(let _0n2 in _Rm2){let _1n2=_Rm2[_0n2];let _2n2=_1n2[0];if(!_2n2)continue;let attachment=skin._z4(_x4,_0n2);let _Yk2=attachment.bones;let vertices=attachment.vertices;let _Zk2=_Yk2?vertices.length/3*2:vertices.length;let _zH=new _ea2(_1n2.length,_1n2.length,_x4,attachment);let time=_Qm2(_2n2,"time",0);for(let frame=0,_Mc2=0;;frame++){let deform;
let _cn2=_Qm2(_2n2,"vertices",null);if(!_cn2)deform=_Yk2?_gb2._Wb2(_Zk2):vertices;else {deform=_gb2._Wb2(_Zk2);let start=_Qm2(_2n2,"offset",0);_gb2._Mb2(_cn2,0,deform,start,_cn2.length);if(scale!=1){for(let i=start,_I6=i+_cn2.length;i<_I6;i++)deform[i]*=scale;}if(!_Yk2){for(let i=0;i<_Zk2;i++)deform[i]+=vertices[i];}}_zH._1d2(frame,time,deform);let _3n2=_1n2[frame+1];if(!_3n2){_zH._Jc2(_Mc2);break;}let _gD=_Qm2(_3n2,"time",0);let curve=_2n2.curve;if(curve)_Mc2=_5n2(curve,_zH,_Mc2,frame,0,time,_gD,0,1,1);
time=_gD;_2n2=_3n2;}_76.push(_zH);}}}}if(map.drawOrder){let _zH=new _ga2(map.drawOrder.length);let _4k2=_De2.slots.length;let frame=0;for(let i=0;i<map.drawOrder.length;i++,frame++){let _dn2=map.drawOrder[i];let drawOrder=null;let _en2=_Qm2(_dn2,"offsets",null);if(_en2){drawOrder=_gb2._Vb2(_4k2,-1);let _1l2=_gb2._Vb2(_4k2-_en2.length,0);let _2l2=0,_3l2=0;for(let _7F=0;_7F<_en2.length;_7F++){let _fn2=_en2[_7F];let _x4=_De2._v4(_fn2.slot).index;while(_2l2!=_x4)_1l2[_3l2++]=_2l2++;drawOrder[_2l2+_fn2.offset]=_2l2++;
}while(_2l2<_4k2)_1l2[_3l2++]=_2l2++;for(let _7F=_4k2-1;_7F>=0;_7F--)if(drawOrder[_7F]==-1)drawOrder[_7F]=_1l2[--_3l2];}_zH._1d2(frame,_Qm2(_dn2,"time",0),drawOrder);}_76.push(_zH);}if(map.events){let _zH=new _Y7(map.events.length);let frame=0;for(let i=0;i<map.events.length;i++,frame++){let _Xm2=map.events[i];let _BH=_De2._Bj2(_Xm2.name);let event=new Event(_gb2.__b2(_Qm2(_Xm2,"time",0)),_BH);event._E3=_Qm2(_Xm2,"int",_BH._E3);event._F3=_Qm2(_Xm2,"float",_BH._F3);event._G3=_Qm2(_Xm2,"string",_BH._G3);if(event.data._Xj2){
event.volume=_Qm2(_Xm2,"volume",1);event._fv1=_Qm2(_Xm2,"balance",0);}_zH._1d2(frame,event);}_76.push(_zH);}let duration=0;for(let i=0,_I6=_76.length;i<_I6;i++)duration=Math.max(duration,_76[i]._Dc2());_De2.animations.push(new _0a2(name,_76,duration));}};var _Zm2=class {constructor(_R9,skin,_x4,parent,_2k2){this._R9=_R9;this.skin=skin;this._x4=_x4;this.parent=parent;this._2k2=_2k2;}};function _6n2(_Yg,_zH,defaultValue,scale){let _2n2=_Yg[0];let time=_Qm2(_2n2,"time",0);let value=_Qm2(_2n2,"value",defaultValue)*scale;
let _Mc2=0;for(let frame=0;;frame++){_zH._1d2(frame,time,value);let _3n2=_Yg[frame+1];if(!_3n2){_zH._Jc2(_Mc2);return _zH;}let _gD=_Qm2(_3n2,"time",0);let _Sc2=_Qm2(_3n2,"value",defaultValue)*scale;if(_2n2.curve)_Mc2=_5n2(_2n2.curve,_zH,_Mc2,frame,0,time,_gD,value,_Sc2,scale);time=_gD;value=_Sc2;_2n2=_3n2;}}function _8n2(_Yg,_zH,_gn2,_hn2,defaultValue,scale){let _2n2=_Yg[0];let time=_Qm2(_2n2,"time",0);let _Nc2=_Qm2(_2n2,_gn2,defaultValue)*scale;let _Sc2=_Qm2(_2n2,_hn2,defaultValue)*scale;let _Mc2=0;for(let frame=0;
;frame++){_zH._1d2(frame,time,_Nc2,_Sc2);let _3n2=_Yg[frame+1];if(!_3n2){_zH._Jc2(_Mc2);return _zH;}let _gD=_Qm2(_3n2,"time",0);let _al2=_Qm2(_3n2,_gn2,defaultValue)*scale;let _bl2=_Qm2(_3n2,_hn2,defaultValue)*scale;let curve=_2n2.curve;if(curve){_Mc2=_5n2(curve,_zH,_Mc2,frame,0,time,_gD,_Nc2,_al2,scale);_Mc2=_5n2(curve,_zH,_Mc2,frame,1,time,_gD,_Sc2,_bl2,scale);}time=_gD;_Nc2=_al2;_Sc2=_bl2;_2n2=_3n2;}}function _5n2(curve,_zH,_Mc2,frame,value,_fD,_gD,_Nc2,_Sc2,scale){if(curve=="stepped"){_zH._Ic2(frame);
return _Mc2;}let i=value<<2;let _Oc2=curve[i];let _Pc2=curve[i+1]*scale;let _Qc2=curve[i+2];let _Rc2=curve[i+3]*scale;_zH._Lc2(_Mc2,frame,value,_fD,_Nc2,_Oc2,_Pc2,_Qc2,_Rc2,_gD,_Sc2);return _Mc2+1;}function _Qm2(map,_Zi,defaultValue){return map[_Zi]!==void 0?map[_Zi]:defaultValue;}(()=>{if(typeof Math._0c2==="undefined"){Math._0c2=function(_qh){return function(x){return _qh[0]=x,_qh[0];};}(new Float32Array(1));}})();var _ua2=class {constructor(_in2,_jn2){this._in2=0;this._jn2=0;this._in2=_in2;this._jn2=_jn2;}_kn2(skeleton){
}transform(position,_Qc,light,dark){position.x+=_va2._Eb2(-this._in2,this._jn2);position.y+=_va2._Eb2(-this._in2,this._jn2);}end(){}};var _ln2=class {constructor(_A21){this._mn2=0;this._nn2=0;this._A21=0;this.angle=0;this._v7=0;this._w7=0;this._A21=_A21;}_kn2(skeleton){this._v7=skeleton.x+this._mn2;this._w7=skeleton.y+this._nn2;}transform(position,_Qc,light,dark){let _on2=this.angle*_va2._Jb2;let x=position.x-this._v7;let y=position.y-this._w7;let _Jt=Math.sqrt(x*x+y*y);if(_Jt<this._A21){let _pn2=_ln2.interpolation.apply(0,
_on2,(this._A21-_Jt)/this._A21);let cos=Math.cos(_pn2);let sin=Math.sin(_pn2);position.x=cos*x-sin*y+this._v7;position.y=sin*x+cos*y+this._w7;}}end(){}};var _3b2=_ln2;_3b2.interpolation=new _Ia2(2);return _Z92;})();var _qn2=0,_rn2=1,_sn2=2,_tn2=3,_un2=4,_vn2=5,_wn2=6,_xn2=7,_yn2=8,_zn2=9;var _An2=0,_Bn2=1,_Cn2=2,_Dn2=3;/*@constructor */function _En2(_ld,_gg){this.type=_ld;this.id=_gg;this._25=null;this._Fn2=-1;};_En2.prototype._Gn2=function(_m_1,_Hn2,_In2,_Jn2,_Kn2){var _Ln2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;
var width=_Hn2.getInt32(_In2,_Jn2);_In2+=4;var height=_Hn2.getInt32(_In2,_Jn2);_In2+=4;this._Fn2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;return _In2;};_En2.prototype._Mn2=function(_fV,_8K){var _F4=new ArrayBuffer(4);var _G4=new Uint32Array(_F4);var c=new Uint8Array(_F4);_G4[0]=0xdeadbeef;if(c[0]==0xef){return(((_fV&0xff)<<8)|(_8K&0xff));}if(c[0]==0xde){return(((_8K&0xff)<<8)|(_fV&0xff));}};_En2.prototype._Nn2=function(_On2){try{do {if(_On2[1]==0xd9){_On2=_On2.subarray(2);}else if(_On2[1]==0xd8){if((_On2[6]===0x4a)&&(_On2[7]===0x46)&&(_On2[8]===0x49)&&(_On2[9]===0x46)){
var w=this._Mn2(_On2[14],_On2[15]);var h=this._Mn2(_On2[16],_On2[17]);var _Pn2={width:w,height:h,body:_On2};return _Pn2;}_On2=_On2.subarray(4+this._Mn2(_On2[4],_On2[5]));}else {_On2=_On2.subarray(2+this._Mn2(_On2[2],_On2[3]));}}while((_On2.byteLength>=0)&&(_On2[0]==0xff));}catch(e){debug(e.message);}var _Pn2={width:w,height:h,body:_On2};return _Pn2;};_En2.prototype._Qn2=function(_ld,_A8,_B8,_On2,_Rn2,_Sn2,_Tn2){switch(_ld){case _un2:{this._25=this._Un2(_A8,_B8,_On2,"gif");}break;case _tn2:{this._25=this._Un2(_A8,
_B8,_On2,"png");}break;case _rn2:case _qn2:{this._25=this._Un2(_A8,_B8,_On2,"jpeg");}break;case _sn2:{var _Pn2=this._Nn2(_On2);this._25=this._Un2(_Pn2.width,_Pn2.height,_Pn2.body,"jpeg",function(_Tb1){var _Vn2=String.fromCharCode.apply(null,new Uint16Array(_Rn2));var _Vn2=_Vn2.split('').map(function(e){return e.charCodeAt(0);});var Zlib=window["Zlib"];var _Wn2=new Zlib["Inflate"](_Vn2);var _Xn2=_Wn2["decompress"]();this._25=_cV1(_Tb1,_Xn2);});}break;case _vn2:case _yn2:{this._25=null;}break;case _wn2:case _xn2:case _zn2:{
var _25=new Image();var _Vc=_s8._8V1(_25,_On2,_A8,_B8);_25._Ba=_Vc;_25._Xc=_A8;_25._Yc=_B8;this._25=_25;}break;default :break;}};_En2.prototype._Un2=function(_A8,_B8,_On2,_Yn2,_lM,_Zn2){var _7l2=new Uint16Array(_On2);var _SM="";for(var i=0,_V6=_7l2.length;i<_V6;i++){_SM+=String.fromCharCode(_7l2[i]);}var __n2=window.btoa(_SM);var _0o2="data:image/"+_Yn2+";base64,"+__n2;var img=new Image();img.onload=function(){var __4={_95:img};_Ca(__4);if(_lM){_lM(__4);}};img.onerror=function(e){debug(e);if(_Zn2){_Zn2(e);}}
;img.src=_CG(null,null,_0o2);return img;};function _cV1(_Tb1,_A9){var _Vc=_s8._cV1(_Tb1._95._Ba,_A9);_Tb1._95._Ba=_Vc;_Tb1._95._Xc=_Vc._FU1;_Tb1._95._Yc=_Vc._GU1;return _Tb1._95;}var _1o2=0,_2o2=1,_3o2=2;var _4o2=0,_5o2=1,_6o2=2,_7o2=3;var _8o2=0,_9o2=1;var _ao2={_tl1:0,_ul1:0,version:1};/*@constructor */function _bo2(_ld,_gg){this.type=_ld;this.id=_gg;};_bo2.prototype._co2=function(_Hn2,_In2,_Jn2,_do2){this._p6=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;this._q6=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;this._r6=_Hn2.getFloat32(_In2,
_Jn2);_In2+=4;this._s6=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;var _eo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;this._fo2=[];for(var i=0;i<_eo2;i++){var _go2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;var _ho2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;var _io2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;var _jo2={_go2:_go2,_ho2:_ho2,_io2:_io2};_jo2._ko2=(_go2>0)?[]:null;_jo2._lo2=(_ho2>0)?[]:null;_jo2._mo2=(_io2>0)?[]:null;_In2=this._no2(_jo2,_Hn2,_In2,_Jn2,_do2);_In2=this._oo2(_jo2,_Hn2,_In2,_Jn2);_In2=this._po2(_jo2,_Hn2,_In2,_Jn2);this._fo2.push(_jo2);
}return _In2;};_bo2.prototype._no2=function(_qo2,_Hn2,_In2,_Jn2,_do2){_qo2._ko2=[];for(var i=0;i<_qo2._go2;i++){var _ro2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;var _so2=null;switch(_ro2){case _5o2:{_so2={type:_5o2};var _Iu=_Hn2.getUint8(_In2,_Jn2);_In2++;var _Ju=_Hn2.getUint8(_In2,_Jn2);_In2++;var _Ku=_Hn2.getUint8(_In2,_Jn2);_In2++;var alpha=_Hn2.getUint8(_In2,_Jn2);_In2++;_so2._L4=(_Iu|(_Ju<<8)|(_Ku<<16)|(alpha<<24));}break;case _6o2:{_so2={type:_6o2};_so2._to2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_so2._Fn2=_Hn2.getInt32(_In2,
_Jn2);_In2+=4;var _uo2=[];for(var _K6=0;_K6<9;_K6++){_uo2[_K6]=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;}_so2._uo2=new _Zy();_so2._uo2._K6[_vA]=_uo2[0];_so2._uo2._K6[_wA]=_uo2[1];_so2._uo2._K6[_yA]=_uo2[2];_so2._uo2._K6[_zA]=_uo2[3];_so2._uo2._K6[_qz]=_uo2[4];_so2._uo2._K6[_BA]=_uo2[5];_so2._vo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_so2._wo2=[];for(var _K6=0;_K6<_so2._vo2;_K6++){var _VI1=_Hn2.getInt32(_In2,_Jn2);_In2+=4;var _Iu=_Hn2.getUint8(_In2,_Jn2);_In2++;var _Ju=_Hn2.getUint8(_In2,_Jn2);_In2++;var _Ku=_Hn2.getUint8(_In2,
_Jn2);_In2++;var alpha=_Hn2.getUint8(_In2,_Jn2);_In2++;_so2._wo2.push({_VI1:_VI1,_L4:(_Iu|(_Ju<<8)|(_Ku<<16)|(alpha<<24))});}_so2._Fc=null;}break;case _7o2:{_so2={type:_7o2};_so2._xo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_so2._yo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_so2._zo2=-1;for(var index=0;index<_do2.length;index++){if(_do2[index].id===_so2._yo2){_so2._zo2=index;break;}}var _uo2=[];for(var _K6=0;_K6<9;_K6++){_uo2[_K6]=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;}_so2._uo2=new _Zy();_so2._uo2._K6[_vA]=_uo2[0];_so2._uo2._K6[_wA]=_uo2[1];
_so2._uo2._K6[_yA]=_uo2[2];_so2._uo2._K6[_zA]=_uo2[3];_so2._uo2._K6[_qz]=_uo2[4];_so2._uo2._K6[_BA]=_uo2[5];}break;}_qo2._ko2.push(_so2);}return _In2;};_bo2.prototype._Ao2=function(_Bo2){if((_Bo2===null)||(_Bo2===undefined)){return;}var _Co2=256,_Do2=1,_Eo2=64,_Fo2=64;var _Go2=[];var width,height;switch(_Bo2._to2){default :return;case _8o2:{width=_Co2;height=_Do2;for(var i=0;i<_Co2;i++){_Go2[i]=this._Ho2(_Bo2,i);}}break;case _9o2:{width=_Eo2;height=_Fo2;var _Io2=(_Eo2-1)/2;var _Jo2=(_Fo2-1)/2;var _A21=_X6(_Io2,
_Jo2);for(var _17=0;_17<_Fo2;_17++){for(var i=0;i<_Eo2;i++){var _Xa=i-_Io2;var _Ya=_17-_Jo2;var _Jt=Math.sqrt(_Xa*_Xa+_Ya*_Ya);_Jt/=_A21;var _VI1=255*_Jt;_Go2[(_17*_Eo2)+i]=this._Ho2(_Bo2,_VI1);}}}break;}_Bo2._Fc=_Ko2(width,height,_Go2);};function _Ko2(_nj,_oj,_9V1){var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);var _Vc=_s8._aV1(_nb1,_9V1,_nj,_oj);var __4=new _3s();__4.x=0;__4.y=0;__4.w=_Vc._FU1;__4.h=_Vc._GU1;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;
__4.ow=_nj;__4.oh=_oj;__4.tp=_ks(_nb1);__4._95=_35[__4.tp];__4._95._Ba=_Vc;__4._95._Xc=_nb1.width;__4._95._Yc=_nb1.height;__4._95.complete=true;return __4;}_bo2.prototype._Ho2=function(_Bo2,_v11){if(_Bo2._vo2<=0){return 0;}_v11=(_v11<0)?0:(_v11>255)?255:_v11;if(_v11<_Bo2._wo2[0]._VI1){return _Bo2._wo2[0]._L4;}for(var i=1;i<_Bo2._vo2;i++){var _Lo2=_Bo2._wo2[i];if(_Lo2._VI1>=_v11){var _Mo2=_Bo2._wo2[i-1];var _No2=0;if(_Lo2._VI1!=_Mo2._VI1){_No2=((_v11-_Mo2._VI1)<<8)/(_Lo2._VI1-_Mo2._VI1);}var _Oo2=256-_No2;
var _L4=_Lo2._L4;var _Po2=_Mo2._L4;var _Qo2=[];_Qo2[0]=((_L4&0xff)*_No2)>>8;_Qo2[1]=(((_L4>>8)&0xff)*_No2)>>8;_Qo2[2]=(((_L4>>16)&0xff)*_No2)>>8;_Qo2[3]=(((_L4>>24)&0xff)*_No2)>>8;_Qo2[0]+=((_Po2&0xff)*_Oo2)>>8;_Qo2[1]+=(((_Po2>>8)&0xff)*_Oo2)>>8;_Qo2[2]+=(((_Po2>>16)&0xff)*_Oo2)>>8;_Qo2[3]+=(((_Po2>>24)&0xff)*_Oo2)>>8;var _Ro2=_Qo2[0]|(_Qo2[1]<<8)|(_Qo2[2]<<16)|(_Qo2[3]<<24);return _Ro2;}}return _Bo2._wo2[_Bo2._vo2-1]._L4;};_bo2.prototype._oo2=function(_qo2,_Hn2,_In2,_Jn2){_qo2._lo2=[];for(var i=0;i<_qo2._ho2;
i++){var _Iu=_Hn2.getUint8(_In2,_Jn2);_In2++;var _Ju=_Hn2.getUint8(_In2,_Jn2);_In2++;var _Ku=_Hn2.getUint8(_In2,_Jn2);_In2++;var alpha=_Hn2.getUint8(_In2,_Jn2);_In2++;_qo2._lo2.push({_L4:(_Iu|(_Ju<<8)|(_Ku<<16)|(alpha<<24))});}return _In2;};_bo2.prototype._po2=function(_qo2,_Hn2,_In2,_Jn2){var i,_K6;_qo2._mo2=[];for(i=0;i<_qo2._io2;i++){var _So2={};_qo2._mo2.push(_So2);_So2._To2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_So2._Uo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_So2._Vo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_So2._Wo2=_Hn2.getInt32(_In2,
_Jn2);_In2+=4;_So2._3j=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_So2._Xo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_So2._Yo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_So2._Zo2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;if(_ao2.version>=2){_So2.__o2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_So2._0p2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;}if(_ao2.version>=3){_So2._1p2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_So2._2p2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;}_So2._3p2=(_So2._Wo2>0)?[]:null;_So2._4p2=(_So2._3j>0)?[]:null;_So2._5p2=(_So2._Xo2>0)?[]:null;_So2._6p2=(_So2._Yo2>0)?[]:null;
_So2._7p2=(_So2._Zo2>0)?[]:null;_So2._8p2=(_So2.__o2)?[]:null;_So2._9p2=(_So2._0p2)?[]:null;_So2._ap2=(_So2._1p2)?[]:null;_So2._bp2=(_So2._2p2)?[]:null;for(_K6=0;_K6<_So2._Wo2*2;_K6++){_So2._3p2[_K6]=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;}for(_K6=0;_K6<_So2._3j*2;_K6++){_So2._cp2[_K6]=_Hn2.getInt32(_In2,_Jn2);_In2+=4;}for(_K6=0;_K6<_So2._Xo2*3;_K6++){_So2._5p2[_K6]=_Hn2.getUint32(_In2,_Jn2);_In2+=4;}for(_K6=0;_K6<_So2._Yo2*2;_K6++){_So2._6p2[_K6]=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;}for(_K6=0;_K6<_So2._Zo2*3;
_K6++){_So2._7p2[_K6]=_Hn2.getUint32(_In2,_Jn2);_In2+=4;}if(_ao2.version>=2){for(_K6=0;_K6<_So2.__o2*2;_K6++){_So2._8p2[_K6]=_Hn2.getInt32(_In2,_Jn2);_In2+=4;}for(_K6=0;_K6<_So2._0p2*2;_K6++){_So2._9p2[_K6]=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;}}if(_ao2.version>=3){for(_K6=0;_K6<_So2._1p2*2;_K6++){_So2._ap2[_K6]=_Hn2.getInt32(_In2,_Jn2);_In2+=4;}for(_K6=0;_K6<_So2._2p2*2;_K6++){_So2._bp2[_K6]=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;}}}return _In2;};var _dp2=1.0/20.0;/*@constructor */function _ep2(){this._fp2=0;
this._gp2=0;this._p6=0;this._q6=0;this._r6=0;this._s6=0;this._hp2=null;};_ep2.prototype._ip2=function(_Hn2,_In2,_Jn2){this._fp2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;this._gp2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;this._p6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;this._q6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;this._r6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;this._s6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;var _jp2,_kp2,_lp2;_jp2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_kp2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_lp2=_Hn2.getInt32(_In2,
_Jn2);_In2+=4;this._hp2={_jp2:_jp2,_kp2:_kp2,_lp2:_lp2};this._mp2=[];for(var i=0;i<this._gp2;i++){var _np2={};this._mp2.push(_np2);_np2._op2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_np2._p6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;_np2._q6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;_np2._r6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;_np2._s6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;_np2._pp2=[];for(var _17=0;_17<_np2._op2;_17++){var _1F={};_np2._pp2.push(_1F);_1F._bO=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_1F.index=_Hn2.getInt32(_In2,
_Jn2);_In2+=4;_1F.depth=_Hn2.getInt32(_In2,_Jn2);_In2+=4;_1F._qp2=_Hn2.getInt32(_In2,_Jn2);_In2+=4;var _rp2=[];for(var _dl=0;_dl<4;_dl++){_rp2[_dl]=_Hn2.getInt32(_In2,_Jn2);_In2+=4;}var _sp2=[];for(var _dl=0;_dl<4;_dl++){_sp2[_dl]=_Hn2.getInt32(_In2,_Jn2);_In2+=4;}_1F._tp2=[];_1F._up2=[];_1F._vp2=[];_1F._tp2[0]=_rp2[2];_1F._up2[0]=_sp2[2];_1F._vp2[0]=0;_1F._tp2[1]=_rp2[1];_1F._up2[1]=_sp2[1];_1F._vp2[1]=_sp2[1];_1F._tp2[2]=_rp2[0];_1F._up2[2]=_sp2[0];_1F._vp2[2]=_sp2[0];_1F._tp2[3]=_rp2[3];_1F._up2[3]=_sp2[3];
_1F._vp2[3]=_sp2[3];_1F._p6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;_1F._q6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;_1F._r6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;_1F._s6=_Hn2.getFloat32(_In2,_Jn2)*_dp2;_In2+=4;var _uo2=[];for(var _dl=0;_dl<9;_dl++){_uo2[_dl]=_Hn2.getFloat32(_In2,_Jn2);_In2+=4;}_1F._uo2=new _Zy();_1F._uo2._K6[_vA]=_uo2[0];_1F._uo2._K6[_wA]=_uo2[1];_1F._uo2._K6[_yA]=_uo2[2];_1F._uo2._K6[_zA]=_uo2[3];_1F._uo2._K6[_qz]=_uo2[4];_1F._uo2._K6[_BA]=_uo2[5];}}return _In2;};function _C61(_wp2){
this._xp2=_wp2;this._yp2=_wp2;this._zp2=_wp2;this._Ap2=0;this._Bp2=0;this._Cp2=0;this._Dp2=0;}_C61.prototype.get =function(){return this._xp2;};_C61.prototype.set =function(_ct,_u81=0){_u81=Math.max(0,_u81);if(_u81==0){this._xp2=_ct;this._zp2=_ct;this._Cp2=performance.now();}else {this._yp2=this._xp2;this._zp2=_ct;this._Ap2=this._zp2-this._yp2;this._Bp2=performance.now();this._Cp2=this._Bp2+_u81;this._Dp2=1/(this._Cp2-this._Bp2);}};_C61.prototype._a6=function(){const currentTime=performance.now();if(currentTime>=this._Cp2){
this._xp2=this._zp2;}else {let frac=(currentTime-this._Bp2)*this._Dp2;frac=Math.max(0,Math.min(frac,1));this._xp2=this._yp2+(this._Ap2*frac);}return this._xp2;};/*@license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){'use strict';var _I6=void 0,w=!0,_Zh2=this;function _YX(_SC,_tm){var c=_SC.split("."),e=_Zh2;!(c[0] in e)&&e._Ep2&&e._Ep2("var "+c[0]);for(var _F4;c.length&&(_F4=c.shift());)!c.length&&_tm!==_I6?e[_F4]=_tm:e=e[_F4]?e[_F4]:e[_F4]={}};var _Wm1="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array&&"undefined"!==typeof DataView;
function _rH1(_SC,_tm){this.index="number"===typeof _tm?_tm:0;this.e=0;this.buffer=_SC instanceof(_Wm1?Uint8Array:Array)?_SC:new(_Wm1?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&_Fp2(this)}function _Fp2(_SC){var _tm=_SC.buffer,c,e=_tm.length,_F4=new(_Wm1?Uint8Array:Array)(e<<1);if(_Wm1)_F4.set(_tm);else for(c=0;c<e;++c)_F4[c]=_tm[c];return _SC.buffer=_F4}_rH1.prototype._F4=function(_SC,_tm,c){var e=this.buffer,_F4=this.index,_G4=this.e,
_E4=e[_F4],_K6;c&&1<_tm&&(_SC=8<_tm?(_OM1[_SC&255]<<24|_OM1[_SC>>>8&255]<<16|_OM1[_SC>>>16&255]<<8|_OM1[_SC>>>24&255])>>32-_tm:_OM1[_SC]>>8-_tm);if(8>_tm+_G4)_E4=_E4<<_tm|_SC,_G4+=_tm;else for(_K6=0;_K6<_tm;++_K6)_E4=_E4<<1|_SC>>_tm-_K6-1&1,8===++_G4&&(_G4=0,e[_F4++]=_OM1[_E4],_E4=0,_F4===e.length&&(e=_Fp2(this)));e[_F4]=_E4;this.buffer=e;this.e=_G4;this.index=_F4};_rH1.prototype._UP1=function(){var _SC=this.buffer,_tm=this.index,c;0<this.e&&(_SC[_tm]<<=8-this.e,_SC[_tm]=_OM1[_SC[_tm]],_tm++);_Wm1?c=_SC.subarray(0,
_tm):(_SC.length=_tm,c=_SC);return c};var _3G1=new(_Wm1?Uint8Array:Array)(256),_gm1;for(_gm1=0;256>_gm1;++_gm1){for(var _Gp2=_gm1,_Hp2=_Gp2,_Ip2=7,_Gp2=_Gp2>>>1;_Gp2;_Gp2>>>=1)_Hp2<<=1,_Hp2|=_Gp2&1,--_Ip2;_3G1[_gm1]=(_Hp2<<_Ip2&255)>>>0}var _OM1=_3G1;function _Pg2(_SC){this.buffer=new(_Wm1?Uint16Array:Array)(2*_SC);this.length=0}_Pg2.prototype._Jp2=function(_SC){return 2*((_SC-2)/4|0)};_Pg2.prototype.push=function(_SC,_tm){var c,e,_F4=this.buffer,_G4;c=this.length;_F4[this.length++]=_tm;for(_F4[this.length++]=_SC;
0<c;)if(e=this._Jp2(c),_F4[c]>_F4[e])_G4=_F4[c],_F4[c]=_F4[e],_F4[e]=_G4,_G4=_F4[c+1],_F4[c+1]=_F4[e+1],_F4[e+1]=_G4,c=e;else break;return this.length};_Pg2.prototype.pop=function(){var _SC,_tm,c=this.buffer,e,_F4,_G4;_tm=c[0];_SC=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(_G4=0;;){_F4=2*_G4+2;if(_F4>=this.length)break;_F4+2<this.length&&c[_F4+2]>c[_F4]&&(_F4+=2);if(c[_F4]>c[_G4])e=c[_G4],c[_G4]=c[_F4],c[_F4]=e,e=c[_G4+1],c[_G4+1]=c[_F4+1],c[_F4+1]=e;else break;_G4=_F4}return({
index:_SC,value:_tm,length:this.length})};function _6E1(_SC,_tm){this._tm=_Fg2;this.i=0;this._nI=_Wm1&&_SC instanceof Array?new Uint8Array(_SC):_SC;this.c=0;_tm&&(_tm._Kp2&&(this.i=_tm._Kp2),"number"===typeof _tm._Lp2&&(this._tm=_tm._Lp2),_tm.outputBuffer&&(this._G4=_Wm1&&_tm.outputBuffer instanceof Array?new Uint8Array(_tm.outputBuffer):_tm.outputBuffer),"number"===typeof _tm._Mp2&&(this.c=_tm._Mp2));this._G4||(this._G4=new(_Wm1?Uint8Array:Array)(32768))}var _Fg2=2,_tk2={_pi2:0,h:1,_E4:_Fg2,_I6:3},_Tm1=[],
_Np2;for(_Np2=0;288>_Np2;_Np2++)switch(w){case 143>=_Np2:_Tm1.push([_Np2+48,8]);break;case 255>=_Np2:_Tm1.push([_Np2-144+400,9]);break;case 279>=_Np2:_Tm1.push([_Np2-256+0,7]);break;case 287>=_Np2:_Tm1.push([_Np2-280+192,8]);break;default :throw "invalid literal: "+_Np2;}_6E1.prototype._SC=function(){var _SC,_tm,c,e,_F4=this._nI;switch(this._tm){case 0:c=0;for(e=_F4.length;c<e;){_tm=_Wm1?_F4.subarray(c,c+65535):_F4.slice(c,c+65535);c+=_tm.length;var _G4=_tm,_E4=c===e,_K6=_I6,_dl=_I6,_ih=_I6,_Y6=_I6,_m5=_I6,
_V6=this._G4,h=this.c;if(_Wm1){for(_V6=new Uint8Array(this._G4.buffer);_V6.length<=h+_G4.length+5;)_V6=new Uint8Array(_V6.length<<1);_V6.set(this._G4)}_K6=_E4?1:0;_V6[h++]=_K6|0;_dl=_G4.length;_ih=~_dl+65536&65535;_V6[h++]=_dl&255;_V6[h++]=_dl>>>8&255;_V6[h++]=_ih&255;_V6[h++]=_ih>>>8&255;if(_Wm1)_V6.set(_G4,h),h+=_G4.length,_V6=_V6.subarray(0,h);else {_Y6=0;for(_m5=_G4.length;_Y6<_m5;++_Y6)_V6[h++]=_G4[_Y6];_V6.length=h}this.c=h;this._G4=_V6}break;case 1:var q=new _rH1(_Wm1?new Uint8Array(this._G4.buffer):this._G4,
this.c);q._F4(1,1,w);q._F4(1,2,w);var _qi=_JE1(this,_F4),x,_Op2,z;x=0;for(_Op2=_qi.length;x<_Op2;x++)if(z=_qi[x],_rH1.prototype._F4.apply(q,_Tm1[z]),256<z)q._F4(_qi[++x],_qi[++x],w),q._F4(_qi[++x],5),q._F4(_qi[++x],_qi[++x],w);else if(256===z)break;this._G4=q._UP1();this.c=this._G4.length;break;case _Fg2:var _1m1=new _rH1(_Wm1?new Uint8Array(this._G4.buffer):this._G4,this.c),__h2,_Pp2,_Qp2,_Ct1,_Bt1,_Rp2=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_Pz,_Km2,_Qz,_Sp2,_Tp2,_Up2=Array(19),_Vp2,_Wp2,_Xp2,
y,_0w;__h2=_Fg2;_1m1._F4(1,1,w);_1m1._F4(__h2,2,w);_Pp2=_JE1(this,_F4);_Pz=_4E1(this._K6,15);_Km2=_Yp2(_Pz);_Qz=_4E1(this._V6,7);_Sp2=_Yp2(_Qz);for(_Qp2=286;257<_Qp2&&0===_Pz[_Qp2-1];_Qp2--);for(_Ct1=30;1<_Ct1&&0===_Qz[_Ct1-1];_Ct1--);var _1w=_Qp2,_2w=_Ct1,_Nv1=new(_Wm1?Uint32Array:Array)(_1w+_2w),_D4,_Ov1,_n5,_Rz,_Rv1=new(_Wm1?Uint32Array:Array)(316),_3p1,_Uk1,_Zp2=new(_Wm1?Uint8Array:Array)(19);for(_D4=_Ov1=0;_D4<_1w;_D4++)_Nv1[_Ov1++]=_Pz[_D4];for(_D4=0;_D4<_2w;_D4++)_Nv1[_Ov1++]=_Qz[_D4];if(!_Wm1){
_D4=0;for(_Rz=_Zp2.length;_D4<_Rz;++_D4)_Zp2[_D4]=0}_D4=_3p1=0;for(_Rz=_Nv1.length;_D4<_Rz;_D4+=_Ov1){for(_Ov1=1;_D4+_Ov1<_Rz&&_Nv1[_D4+_Ov1]===_Nv1[_D4];++_Ov1);_n5=_Ov1;if(0===_Nv1[_D4])if(3>_n5)for(;0<_n5--;)_Rv1[_3p1++]=0,_Zp2[0]++;else for(;0<_n5;)_Uk1=138>_n5?_n5:138,_Uk1>_n5-3&&_Uk1<_n5&&(_Uk1=_n5-3),10>=_Uk1?(_Rv1[_3p1++]=17,_Rv1[_3p1++]=_Uk1-3,_Zp2[17]++):(_Rv1[_3p1++]=18,_Rv1[_3p1++]=_Uk1-11,_Zp2[18]++),_n5-=_Uk1;else if(_Rv1[_3p1++]=_Nv1[_D4],_Zp2[_Nv1[_D4]]++,_n5--,3>_n5)for(;0<_n5--;)_Rv1[_3p1++]=_Nv1[_D4],
_Zp2[_Nv1[_D4]]++;else for(;0<_n5;)_Uk1=6>_n5?_n5:6,_Uk1>_n5-3&&_Uk1<_n5&&(_Uk1=_n5-3),_Rv1[_3p1++]=16,_Rv1[_3p1++]=_Uk1-3,_Zp2[16]++,_n5-=_Uk1}_SC=_Wm1?_Rv1.subarray(0,_3p1):_Rv1.slice(0,_3p1);_Tp2=_4E1(_Zp2,7);for(y=0;19>y;y++)_Up2[y]=_Tp2[_Rp2[y]];for(_Bt1=19;4<_Bt1&&0===_Up2[_Bt1-1];_Bt1--);_Vp2=_Yp2(_Tp2);_1m1._F4(_Qp2-257,5,w);_1m1._F4(_Ct1-1,5,w);_1m1._F4(_Bt1-4,4,w);for(y=0;y<_Bt1;y++)_1m1._F4(_Up2[y],3,w);y=0;for(_0w=_SC.length;y<_0w;y++)if(_Wp2=_SC[y],_1m1._F4(_Vp2[_Wp2],_Tp2[_Wp2],w),16<=_Wp2){
y++;switch(_Wp2){case 16:_Xp2=2;break;case 17:_Xp2=3;break;case 18:_Xp2=7;break;default :throw "invalid code: "+_Wp2;}_1m1._F4(_SC[y],_Xp2,w)}var __p2=[_Km2,_Pz],_0q2=[_Sp2,_Qz],_Ln1,_1q2,$,_ql1,_2q2,_3q2,_4q2,_5q2;_2q2=__p2[0];_3q2=__p2[1];_4q2=_0q2[0];_5q2=_0q2[1];_Ln1=0;for(_1q2=_Pp2.length;_Ln1<_1q2;++_Ln1)if($=_Pp2[_Ln1],_1m1._F4(_2q2[$],_3q2[$],w),256<$)_1m1._F4(_Pp2[++_Ln1],_Pp2[++_Ln1],w),_ql1=_Pp2[++_Ln1],_1m1._F4(_4q2[_ql1],_5q2[_ql1],w),_1m1._F4(_Pp2[++_Ln1],_Pp2[++_Ln1],w);else if(256===$)break;
this._G4=_1m1._UP1();this.c=this._G4.length;break;default :throw "invalid compression type";}return this._G4};function _Sg2(_SC,_tm){this.length=_SC;this._dl=_tm}var _Kh2=function(){function _SC(_F4){switch(w){case 3===_F4:return [257,_F4-3,0];case 4===_F4:return [258,_F4-4,0];case 5===_F4:return [259,_F4-5,0];case 6===_F4:return [260,_F4-6,0];case 7===_F4:return [261,_F4-7,0];case 8===_F4:return [262,_F4-8,0];case 9===_F4:return [263,_F4-9,0];case 10===_F4:return [264,_F4-10,0];case 12>=_F4:return [265,_F4-11,1];case 14>=_F4:return [266,
_F4-13,1];case 16>=_F4:return [267,_F4-15,1];case 18>=_F4:return [268,_F4-17,1];case 22>=_F4:return [269,_F4-19,2];case 26>=_F4:return [270,_F4-23,2];case 30>=_F4:return [271,_F4-27,2];case 34>=_F4:return [272,_F4-31,2];case 42>=_F4:return [273,_F4-35,3];case 50>=_F4:return [274,_F4-43,3];case 58>=_F4:return [275,_F4-51,3];case 66>=_F4:return [276,_F4-59,3];case 82>=_F4:return [277,_F4-67,4];case 98>=_F4:return [278,_F4-83,4];case 114>=_F4:return [279,_F4-99,4];case 130>=_F4:return [280,_F4-115,4];case 162>=_F4:return [281,_F4-131,
5];case 194>=_F4:return [282,_F4-163,5];case 226>=_F4:return [283,_F4-195,5];case 257>=_F4:return [284,_F4-227,5];case 258===_F4:return [285,_F4-258,0];default :throw "invalid length: "+_F4;}}var _tm=[],c,e;for(c=3;258>=c;c++)e=_SC(c),_tm[c]=e[2]<<24|e[1]<<16|e[0];return _tm}(),_6q2=_Wm1?new Uint32Array(_Kh2):_Kh2;function _JE1(_SC,_tm){function c(_F4,c){var _G4=_F4._dl,_tm=[],e=0,_SC;_SC=_6q2[_F4.length];_tm[e++]=_SC&65535;_tm[e++]=_SC>>16&255;_tm[e++]=_SC>>24;var _E4;switch(w){case 1===_G4:_E4=[0,_G4-1,0];break;
case 2===_G4:_E4=[1,_G4-2,0];break;case 3===_G4:_E4=[2,_G4-3,0];break;case 4===_G4:_E4=[3,_G4-4,0];break;case 6>=_G4:_E4=[4,_G4-5,1];break;case 8>=_G4:_E4=[5,_G4-7,1];break;case 12>=_G4:_E4=[6,_G4-9,2];break;case 16>=_G4:_E4=[7,_G4-13,2];break;case 24>=_G4:_E4=[8,_G4-17,3];break;case 32>=_G4:_E4=[9,_G4-25,3];break;case 48>=_G4:_E4=[10,_G4-33,4];break;case 64>=_G4:_E4=[11,_G4-49,4];break;case 96>=_G4:_E4=[12,_G4-65,5];break;case 128>=_G4:_E4=[13,_G4-97,5];break;case 192>=_G4:_E4=[14,_G4-129,6];break;case 256>=_G4:_E4=[15,
_G4-193,6];break;case 384>=_G4:_E4=[16,_G4-257,7];break;case 512>=_G4:_E4=[17,_G4-385,7];break;case 768>=_G4:_E4=[18,_G4-513,8];break;case 1024>=_G4:_E4=[19,_G4-769,8];break;case 1536>=_G4:_E4=[20,_G4-1025,9];break;case 2048>=_G4:_E4=[21,_G4-1537,9];break;case 3072>=_G4:_E4=[22,_G4-2049,10];break;case 4096>=_G4:_E4=[23,_G4-3073,10];break;case 6144>=_G4:_E4=[24,_G4-4097,11];break;case 8192>=_G4:_E4=[25,_G4-6145,11];break;case 12288>=_G4:_E4=[26,_G4-8193,12];break;case 16384>=_G4:_E4=[27,_G4-12289,12];break;case 24576>=_G4:_E4=[28,
_G4-16385,13];break;case 32768>=_G4:_E4=[29,_G4-24577,13];break;default :throw "invalid distance";}_SC=_E4;_tm[e++]=_SC[0];_tm[e++]=_SC[1];_tm[e++]=_SC[2];var _dl,_K6;_dl=0;for(_K6=_tm.length;_dl<_K6;++_dl)_V6[h++]=_tm[_dl];_qi[_tm[0]]++;x[_tm[3]]++;q=_F4.length+c-1;_m5=null}var e,_F4,_G4,_E4,_K6,_dl={},_ih,_Y6,_m5,_V6=_Wm1?new Uint16Array(2*_tm.length):[],h=0,q=0,_qi=new(_Wm1?Uint32Array:Array)(286),x=new(_Wm1?Uint32Array:Array)(30),_Op2=_SC.i,z;if(!_Wm1){for(_G4=0;285>=_G4;)_qi[_G4++]=0;for(_G4=0;29>=_G4;
)x[_G4++]=0}_qi[256]=1;e=0;for(_F4=_tm.length;e<_F4;++e){_G4=_K6=0;for(_E4=3;_G4<_E4&&e+_G4!==_F4;++_G4)_K6=_K6<<8|_tm[e+_G4];_dl[_K6]===_I6&&(_dl[_K6]=[]);_ih=_dl[_K6];if(!(0<q--)){for(;0<_ih.length&&32768<e-_ih[0];)_ih.shift();if(e+3>=_F4){_m5&&c(_m5,-1);_G4=0;for(_E4=_F4-e;_G4<_E4;++_G4)z=_tm[e+_G4],_V6[h++]=z,++_qi[z];break }0<_ih.length?(_Y6=_7q2(_tm,e,_ih),_m5?_m5.length<_Y6.length?(z=_tm[e-1],_V6[h++]=z,++_qi[z],c(_Y6,0)):c(_m5,-1):_Y6.length<_Op2?_m5=_Y6:c(_Y6,0)):_m5?c(_m5,-1):(z=_tm[e],
_V6[h++]=z,++_qi[z])}_ih.push(e)}_V6[h++]=256;_qi[256]++;_SC._K6=_qi;_SC._V6=x;return _Wm1?_V6.subarray(0,h):_V6}function _7q2(_SC,_tm,c){var e,_F4,_G4=0,_E4,_K6,_dl,_ih,_Y6=_SC.length;_K6=0;_ih=c.length;_G4:for(;_K6<_ih;_K6++){e=c[_ih-_K6-1];_E4=3;if(3<_G4){for(_dl=_G4;3<_dl;_dl--)if(_SC[e+_dl-1]!==_SC[_tm+_dl-1])continue _G4;_E4=_G4}for(;258>_E4&&_tm+_E4<_Y6&&_SC[e+_E4]===_SC[_tm+_E4];)++_E4;_E4>_G4&&(_F4=e,_G4=_E4);if(258===_E4)break }return new _Sg2(_G4,_tm-_F4)}function _4E1(_SC,_tm){var c=_SC.length,
e=new _Pg2(572),_F4=new(_Wm1?Uint8Array:Array)(c),_G4,_E4,_K6,_dl,_ih;if(!_Wm1)for(_dl=0;_dl<c;_dl++)_F4[_dl]=0;for(_dl=0;_dl<c;++_dl)0<_SC[_dl]&&e.push(_dl,_SC[_dl]);_G4=Array(e.length/2);_E4=new(_Wm1?Uint32Array:Array)(e.length/2);if(1===_G4.length)return _F4[e.pop().index]=1,_F4;_dl=0;for(_ih=e.length/2;_dl<_ih;++_dl)_G4[_dl]=e.pop(),_E4[_dl]=_G4[_dl].value;_K6=_8q2(_E4,_E4.length,_tm);_dl=0;for(_ih=_G4.length;_dl<_ih;++_dl)_F4[_G4[_dl].index]=_K6[_dl];return _F4}function _8q2(_SC,_tm,c){function e(_G4){
var _F4=_dl[_G4][_ih[_G4]];_F4===_tm?(e(_G4+1),e(_G4+1)):--_E4[_F4];++_ih[_G4]}var _F4=new(_Wm1?Uint16Array:Array)(c),_G4=new(_Wm1?Uint8Array:Array)(c),_E4=new(_Wm1?Uint8Array:Array)(_tm),_K6=Array(c),_dl=Array(c),_ih=Array(c),_Y6=(1<<c)-_tm,_m5=1<<c-1,_V6,h,q,_qi,x;_F4[c-1]=_tm;for(h=0;h<c;++h)_Y6<_m5?_G4[h]=0:(_G4[h]=1,_Y6-=_m5),_Y6<<=1,_F4[c-2-h]=(_F4[c-1-h]/2|0)+_tm;_F4[0]=_G4[0];_K6[0]=Array(_F4[0]);_dl[0]=Array(_F4[0]);for(h=1;h<c;++h)_F4[h]>2*_F4[h-1]+_G4[h]&&(_F4[h]=2*_F4[h-1]+_G4[h]),_K6[h]=Array(_F4[h]),
_dl[h]=Array(_F4[h]);for(_V6=0;_V6<_tm;++_V6)_E4[_V6]=c;for(q=0;q<_F4[c-1];++q)_K6[c-1][q]=_SC[q],_dl[c-1][q]=q;for(_V6=0;_V6<c;++_V6)_ih[_V6]=0;1===_G4[c-1]&&(--_E4[0],++_ih[c-1]);for(h=c-2;0<=h;--h){_qi=_V6=0;x=_ih[h+1];for(q=0;q<_F4[h];q++)_qi=_K6[h+1][x]+_K6[h+1][x+1],_qi>_SC[_V6]?(_K6[h][q]=_qi,_dl[h][q]=_tm,x+=2):(_K6[h][q]=_SC[_V6],_dl[h][q]=_V6,++_V6);_ih[h]=0;1===_G4[h]&&e(h)}return _E4}function _Yp2(_SC){var _tm=new(_Wm1?Uint16Array:Array)(_SC.length),c=[],e=[],_F4=0,_G4,_E4,_K6,_dl;_G4=0;
for(_E4=_SC.length;_G4<_E4;_G4++)c[_SC[_G4]]=(c[_SC[_G4]]|0)+1;_G4=1;for(_E4=16;_G4<=_E4;_G4++)e[_G4]=_F4,_F4+=c[_G4]|0,_F4<<=1;_G4=0;for(_E4=_SC.length;_G4<_E4;_G4++){_F4=e[_SC[_G4]];e[_SC[_G4]]+=1;_K6=_tm[_G4]=0;for(_dl=_SC[_G4];_K6<_dl;_K6++)_tm[_G4]=_tm[_G4]<<1|_F4&1,_F4>>>=1}return _tm};function _9q2(_SC,_tm){this._nI=_SC;this._G4=new(_Wm1?Uint8Array:Array)(32768);this._tm=_aq2._E4;var c={},e;if((_tm||!(_tm={}))&&"number"===typeof _tm._Lp2)this._tm=_tm._Lp2;for(e in _tm)c[e]=_tm[e];c.outputBuffer=this._G4;
this._17=new _6E1(this._nI,c)}var _aq2=_tk2;_9q2.prototype._SC=function(){var _SC,_tm,c,e,_F4,_G4,_E4=0;_G4=this._G4;switch(8){case 8:_SC=Math.LOG2E*Math.log(32768)-8;break;default :throw Error("invalid compression method");}_tm=_SC<<4|8;_G4[_E4++]=_tm;switch(8){case 8:switch(this._tm){case _aq2._pi2:e=0;break;case _aq2.h:e=1;break;case _aq2._E4:e=2;break;default :throw Error("unsupported compression type");}break;default :throw Error("invalid compression method");}c=e<<6|0;_G4[_E4++]=c|31-(256*_tm+c)%31;var _K6=this._nI;
if("string"===typeof _K6){var _dl=_K6.split(""),_ih,_Y6;_ih=0;for(_Y6=_dl.length;_ih<_Y6;_ih++)_dl[_ih]=(_dl[_ih].charCodeAt(0)&255)>>>0;_K6=_dl}for(var _m5=1,_V6=0,h=_K6.length,q,_qi=0;0<h;){q=1024<h?1024:h;h-=q;do _m5+=_K6[_qi++],_V6+=_m5;while(--q);_m5%=65521;_V6%=65521}_F4=(_V6<<16|_m5)>>>0;this._17.c=_E4;_G4=this._17._SC();_E4=_G4.length;_Wm1&&(_G4=new Uint8Array(_G4.buffer),_G4.length<=_E4+4&&(this._G4=new Uint8Array(_G4.length+4),this._G4.set(_G4),_G4=this._G4),_G4=_G4.subarray(0,_E4+4));_G4[_E4++]=_F4>>24&255;
_G4[_E4++]=_F4>>16&255;_G4[_E4++]=_F4>>8&255;_G4[_E4++]=_F4&255;return _G4};_YX("Zlib.Deflate",_9q2);_YX("Zlib.Deflate.compress",function(_SC,_tm){return(new _9q2(_SC,_tm))._SC()});_YX("Zlib.Deflate.prototype.compress",_9q2.prototype._SC);var _bq2={_pi2:_aq2._pi2,FIXED:_aq2.h,_cq2:_aq2._E4},_dq2,_eq2,_fq2,_gq2;if(Object._Yg)_dq2=Object._Yg(_bq2);else for(_eq2 in _dq2=[],_fq2=0,_bq2)_dq2[_fq2++]=_eq2;_fq2=0;for(_gq2=_dq2.length;_fq2<_gq2;++_fq2)_eq2=_dq2[_fq2],_YX("Zlib.Deflate.CompressionType."+_eq2,_bq2[_eq2]);
}).call(this);//@ sourceMappingURL=deflate.min.js.map
;/*@license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){'use strict';function _K6(_F4){throw _F4;}var _I6=void 0,_D4=this;function _qi(_F4,_tm){var _G4=_F4.split("."),c=_D4;!(_G4[0] in c)&&c._Ep2&&c._Ep2("var "+_G4[0]);for(var _SC;_G4.length&&(_SC=_G4.shift());)!_G4.length&&_tm!==_I6?c[_SC]=_tm:c=c[_SC]?c[_SC]:c[_SC]={}};var _m5="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;
function _n5(_F4){var _tm=_F4.length,_G4=0,c=Number.POSITIVE_INFINITY,_SC,e,_E4,h,_dl,_V6,q,_ih,_Y6;for(_ih=0;_ih<_tm;++_ih)_F4[_ih]>_G4&&(_G4=_F4[_ih]),_F4[_ih]<c&&(c=_F4[_ih]);_SC=1<<_G4;e=new(_m5?Uint32Array:Array)(_SC);_E4=1;h=0;for(_dl=2;_E4<=_G4;){for(_ih=0;_ih<_tm;++_ih)if(_F4[_ih]===_E4){_V6=0;q=h;for(_Y6=0;_Y6<_E4;++_Y6)_V6=_V6<<1|q&1,q>>=1;for(_Y6=_V6;_Y6<_SC;_Y6+=_dl)e[_Y6]=_E4<<16|_ih;++h}++_E4;h<<=1;_dl<<=1}return [e,_G4,c]};function w(_F4,_tm){this._E4=[];this.h=32768;this._tm=this._SC=this._G4=this._V6=0;
this._nI=_m5?new Uint8Array(_F4):_F4;this._K6=!1;this.i=x;this._D4=!1;if(_tm||!(_tm={}))_tm.index&&(this._G4=_tm.index),_tm._2a1&&(this.h=_tm._2a1),_tm._hq2&&(this.i=_tm._hq2),_tm._iq2&&(this._D4=_tm._iq2);switch(this.i){case y:this._F4=32768;this.c=new(_m5?Uint8Array:Array)(32768+this.h+258);break;case x:this._F4=0;this.c=new(_m5?Uint8Array:Array)(this.h);this.e=this.z;this._I6=this._n5;this._17=this.w;break;default :_K6(Error("invalid inflate mode"))}}var y=0,x=1,z={_Y6:y,_qi:x};w.prototype._dl=function(){
for(;!this._K6;){var _F4=_Uk1(this,3);_F4&1&&(this._K6=!0);_F4>>>=1;switch(_F4){case 0:var _tm=this._nI,_G4=this._G4,c=this.c,_SC=this._F4,e=_I6,_E4=_I6,h=_I6,_dl=c.length,_V6=_I6;this._tm=this._SC=0;e=_tm[_G4++];e===_I6&&_K6(Error("invalid uncompressed block header: LEN (first byte)"));_E4=e;e=_tm[_G4++];e===_I6&&_K6(Error("invalid uncompressed block header: LEN (second byte)"));_E4|=e<<8;e=_tm[_G4++];e===_I6&&_K6(Error("invalid uncompressed block header: NLEN (first byte)"));h=e;e=_tm[_G4++];e===_I6&&_K6(Error("invalid uncompressed block header: NLEN (second byte)"));
h|=e<<8;_E4===~h&&_K6(Error("invalid uncompressed block header: length verify"));_G4+_E4>_tm.length&&_K6(Error("input buffer is broken"));switch(this.i){case y:for(;_SC+_E4>c.length;){_V6=_dl-_SC;_E4-=_V6;if(_m5)c.set(_tm.subarray(_G4,_G4+_V6),_SC),_SC+=_V6,_G4+=_V6;else for(;_V6--;)c[_SC++]=_tm[_G4++];this._F4=_SC;c=this.e();_SC=this._F4}break;case x:for(;_SC+_E4>c.length;)c=this.e({_ih:2});break;default :_K6(Error("invalid inflate mode"))}if(_m5)c.set(_tm.subarray(_G4,_G4+_E4),_SC),_SC+=_E4,_G4+=_E4;
else for(;_E4--;)c[_SC++]=_tm[_G4++];this._G4=_G4;this._F4=_SC;this.c=c;break;case 1:this._17(_1m1,_Wm1);break;case 2:_Zh2(this);break;default :_K6(Error("unknown BTYPE: "+_F4))}}return this._I6()};var _3p1=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_Rv1=_m5?new Uint16Array(_3p1):_3p1,_Nv1=[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],_Ov1=_m5?new Uint16Array(_Nv1):_Nv1,_Zp2=[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],_Ln1=_m5?new Uint8Array(_Zp2):_Zp2,
_Pp2=[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],_rH1=_m5?new Uint16Array(_Pp2):_Pp2,_OM1=[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],_gm1=_m5?new Uint8Array(_OM1):_OM1,_Gp2=new(_m5?Uint8Array:Array)(288),_Qp2,_Ct1;_Qp2=0;for(_Ct1=_Gp2.length;_Qp2<_Ct1;++_Qp2)_Gp2[_Qp2]=143>=_Qp2?8:255>=_Qp2?9:279>=_Qp2?7:8;var _1m1=_n5(_Gp2),_Bt1=new(_m5?Uint8Array:Array)(30),_Wp2,_Hp2;_Wp2=0;for(_Hp2=_Bt1.length;_Wp2<_Hp2;
++_Wp2)_Bt1[_Wp2]=5;var _Wm1=_n5(_Bt1);function _Uk1(_F4,_tm){for(var _G4=_F4._SC,c=_F4._tm,_SC=_F4._nI,e=_F4._G4,_E4;c<_tm;)_E4=_SC[e++],_E4===_I6&&_K6(Error("input buffer is broken")),_G4|=_E4<<c,c+=8;_E4=_G4&(1<<_tm)-1;_F4._SC=_G4>>>_tm;_F4._tm=c-_tm;_F4._G4=e;return _E4}function _Tm1(_F4,_tm){for(var _G4=_F4._SC,c=_F4._tm,_SC=_F4._nI,e=_F4._G4,_E4=_tm[0],h=_tm[1],_dl,_V6,q;c<h;){_dl=_SC[e++];if(_dl===_I6)break;_G4|=_dl<<c;c+=8}_V6=_E4[_G4&(1<<h)-1];q=_V6>>>16;_F4._SC=_G4>>q;_F4._tm=c-q;_F4._G4=e;return _V6&65535}
function _Zh2(_F4){function _tm(_G4,_F4,c){var _tm,e,_SC,_E4;for(_E4=0;_E4<_G4;)switch(_tm=_Tm1(this,_F4),_tm){case 16:for(_SC=3+_Uk1(this,2);_SC--;)c[_E4++]=e;break;case 17:for(_SC=3+_Uk1(this,3);_SC--;)c[_E4++]=0;e=0;break;case 18:for(_SC=11+_Uk1(this,7);_SC--;)c[_E4++]=0;e=0;break;default :e=c[_E4++]=_tm}return c}var _G4=_Uk1(_F4,5)+257,c=_Uk1(_F4,5)+1,_SC=_Uk1(_F4,4)+4,e=new(_m5?Uint8Array:Array)(_Rv1.length),_E4,h,_dl,_V6;for(_V6=0;_V6<_SC;++_V6)e[_Rv1[_V6]]=_Uk1(_F4,3);_E4=_n5(e);h=new(_m5?Uint8Array:Array)(_G4);
_dl=new(_m5?Uint8Array:Array)(c);_F4._17(_n5(_tm.call(_F4,_G4,_E4,h)),_n5(_tm.call(_F4,c,_E4,_dl)))}w.prototype._17=function(_F4,_tm){var _G4=this.c,c=this._F4;this._UE=_F4;for(var _SC=_G4.length-258,e,_E4,h,_dl;256!==(e=_Tm1(this,_F4));)if(256>e)c>=_SC&&(this._F4=c,_G4=this.e(),c=this._F4),_G4[c++]=e;else {_E4=e-257;_dl=_Ov1[_E4];0<_Ln1[_E4]&&(_dl+=_Uk1(this,_Ln1[_E4]));e=_Tm1(this,_tm);h=_rH1[e];0<_gm1[e]&&(h+=_Uk1(this,_gm1[e]));c>=_SC&&(this._F4=c,_G4=this.e(),c=this._F4);for(;_dl--;)_G4[c]=_G4[c++-h]}
for(;8<=this._tm;)this._tm-=8,this._G4--;this._F4=c};w.prototype.w=function(_F4,_tm){var _G4=this.c,c=this._F4;this._UE=_F4;for(var _SC=_G4.length,e,_E4,h,_dl;256!==(e=_Tm1(this,_F4));)if(256>e)c>=_SC&&(_G4=this.e(),_SC=_G4.length),_G4[c++]=e;else {_E4=e-257;_dl=_Ov1[_E4];0<_Ln1[_E4]&&(_dl+=_Uk1(this,_Ln1[_E4]));e=_Tm1(this,_tm);h=_rH1[e];0<_gm1[e]&&(h+=_Uk1(this,_gm1[e]));c+_dl>_SC&&(_G4=this.e(),_SC=_G4.length);for(;_dl--;)_G4[c]=_G4[c++-h]}for(;8<=this._tm;)this._tm-=8,this._G4--;this._F4=c};w.prototype.e=function(){
var _F4=new(_m5?Uint8Array:Array)(this._F4-32768),_tm=this._F4-32768,_G4,c,_SC=this.c;if(_m5)_F4.set(_SC.subarray(32768,_F4.length));else {_G4=0;for(c=_F4.length;_G4<c;++_G4)_F4[_G4]=_SC[_G4+32768]}this._E4.push(_F4);this._V6+=_F4.length;if(_m5)_SC.set(_SC.subarray(_tm,_tm+32768));else for(_G4=0;32768>_G4;++_G4)_SC[_G4]=_SC[_tm+_G4];this._F4=32768;return _SC};w.prototype.z=function(_F4){var _tm,_G4=this._nI.length/this._G4+1|0,c,_SC,e,_E4=this._nI,h=this.c;_F4&&("number"===typeof _F4._ih&&(_G4=_F4._ih),
"number"===typeof _F4._m5&&(_G4+=_F4._m5));2>_G4?(c=(_E4.length-this._G4)/this._UE[2],e=258*(c/2)|0,_SC=e<h.length?h.length+e:h.length<<1):_SC=h.length*_G4;_m5?(_tm=new Uint8Array(_SC),_tm.set(h)):_tm=h;return this.c=_tm};w.prototype._I6=function(){var _F4=0,_tm=this.c,_G4=this._E4,c,_SC=new(_m5?Uint8Array:Array)(this._V6+(this._F4-32768)),e,_E4,h,_dl;if(0===_G4.length)return _m5?this.c.subarray(32768,this._F4):this.c.slice(32768,this._F4);e=0;for(_E4=_G4.length;e<_E4;++e){c=_G4[e];h=0;for(_dl=c.length;
h<_dl;++h)_SC[_F4++]=c[h]}e=32768;for(_E4=this._F4;e<_E4;++e)_SC[_F4++]=_tm[e];this._E4=[];return this.buffer=_SC};w.prototype._n5=function(){var _F4,_tm=this._F4;_m5?this._D4?(_F4=new Uint8Array(_tm),_F4.set(this.c.subarray(0,_tm))):_F4=this.c.subarray(0,_tm):(this.c.length>_tm&&(this.c.length=_tm),_F4=this.c);return this.buffer=_F4};function _Np2(_F4,_tm){var _G4,c;this._nI=_F4;this._G4=0;if(_tm||!(_tm={}))_tm.index&&(this._G4=_tm.index),_tm._jq2&&(this._Uk1=_tm._jq2);_G4=_F4[this._G4++];c=_F4[this._G4++];
switch(_G4&15){case _aq2:this.method=_aq2;break;default :_K6(Error("unsupported compression method"))}0!==((_G4<<8)+c)%31&&_K6(Error("invalid fcheck flag:"+((_G4<<8)+c)%31));c&32&&_K6(Error("fdict flag is not supported"));this.q=new w(_F4,{index:this._G4,_2a1:_tm._2a1,_hq2:_tm._hq2,_iq2:_tm._iq2})}_Np2.prototype._dl=function(){var _F4=this._nI,_tm,_G4;_tm=this.q._dl();this._G4=this.q._G4;if(this._Uk1){_G4=(_F4[this._G4++]<<24|_F4[this._G4++]<<16|_F4[this._G4++]<<8|_F4[this._G4++])>>>0;var c=_tm;if("string"===typeof c){
var _SC=c.split(""),e,_E4;e=0;for(_E4=_SC.length;e<_E4;e++)_SC[e]=(_SC[e].charCodeAt(0)&255)>>>0;c=_SC}for(var h=1,_dl=0,_V6=c.length,q,_ih=0;0<_V6;){q=1024<_V6?1024:_V6;_V6-=q;do h+=c[_ih++],_dl+=h;while(--q);h%=65521;_dl%=65521}_G4!==(_dl<<16|h)>>>0&&_K6(Error("invalid adler-32 checksum"))}return _tm};var _aq2=8;_qi("Zlib.Inflate",_Np2);_qi("Zlib.Inflate.prototype.decompress",_Np2.prototype._dl);var _fq2={_kq2:z._qi,_lq2:z._Y6},_Pz,_Qz,_Rz,$;if(Object._Yg)_Pz=Object._Yg(_fq2);else for(_Qz in _Pz=[],_Rz=0,
_fq2)_Pz[_Rz++]=_Qz;_Rz=0;for($=_Pz.length;_Rz<$;++_Rz)_Qz=_Pz[_Rz],_qi("Zlib.Inflate.BufferType."+_Qz,_fq2[_Qz]);}).call(this);//@ sourceMappingURL=inflate.min.js.map
_oh:/*@constructor */function _mq2(){this._nq2=0;this._oq2=null;this._pq2=0;this._qq2=null;this._rq2=new _sk();};/*@constructor */function _sq2(){this._ke=0;this._tq2=new _Zy();this._uq2=new _Zy();this._vq2=new _Zy();this._wq2=new _Zy();this._xq2=new _Zy();this._yq2=new _Zy();this._zq2=0;this._Aq2=0;this._Bq2=0;this._Cq2=0;this._Dq2=0;this._Eq2=0;
this._Fq2=0;this._Gq2=0;this._Hq2=0;this._Iq2=-1;this._nP=null;this._oP=null;this._Jq2=null;this._Kq2=true;this._Lq2=false;this._Mq2=false;};_sq2.prototype._Nq2=function(_Oq2){this._Lq2=_Oq2;};_sq2.prototype._Pq2=function(){return this._Lq2;};_sq2.prototype._Qq2=function(_B_){this._Mq2=_B_;};_sq2.prototype._Rq2=function(){return this._Mq2;};_mq2.prototype._Sq2=function(_gg){var _Tq2=this._Uq2(_gg);if(!_Tq2)return -1;var _Vq2=this._Wq2();var _Xq2=this._Uq2(_Vq2);_Xq2._zq2=_Tq2._zq2;_Xq2._Aq2=_Tq2._Aq2;
_Xq2._Bq2=_Tq2._Bq2;_Xq2._Cq2=_Tq2._Cq2;_Xq2._Dq2=_Tq2._Dq2;_Xq2._Eq2=_Tq2._Eq2;_Xq2._Fq2=_Tq2._Fq2;_Xq2._Gq2=_Tq2._Gq2;_Xq2._Hq2=_Tq2._Hq2;_Xq2._Iq2=_Tq2._Iq2;_Xq2._nP=_Tq2._nP;_Xq2._oP=_Tq2._oP;_Xq2._Jq2=_Tq2._Jq2;var _Yq2=new _Zy(_Tq2._uq2);var _Zq2=new _Zy(_Tq2._tq2);var _XL=new _Zy(_Tq2._vq2);var __q2=new _Zy(_Tq2._wq2);var _0r2=new _Zy(_Tq2._xq2);var _1r2=new _Zy(_Tq2._yq2);_Xq2._tq2=_Zq2;_Xq2._uq2=_Yq2;_Xq2._vq2=_XL;_Xq2._wq2=__q2;_Xq2._xq2=_0r2;_Xq2._yq2=_1r2;_Xq2._Mq2=_Tq2._Mq2;_Xq2._Nq2(true);return _Vq2;
};_sq2.prototype._2r2=function(){if(this._tq2._K6[11]==0)return true;return false;};_sq2.prototype._3r2=function(){if(this._2r2()){if((this._tq2._K6[4]==0.0)&&(this._tq2._K6[8]==0.0)&&(this._tq2._K6[1]==0.0)&&(this._tq2._K6[9]==0.0)&&(this._tq2._K6[2]==0.0)&&(this._tq2._K6[6]==0.0)){if((this._uq2._K6[2]==0.0)&&(this._uq2._K6[6]==0.0)){this._Kq2=true;return;}}}this._Kq2=false;};_sq2.prototype._4r2=function(_5r2){this._uq2=_5r2;this._xq2._5M(_5r2);this._vq2.Multiply(this._uq2,this._tq2);this._yq2._5M(this._vq2);
this._3r2();};_sq2.prototype._6r2=function(_5r2){this._tq2=_5r2;this._wq2._5M(_5r2);this._vq2.Multiply(this._uq2,this._tq2);this._yq2._5M(this._vq2);this._3r2();};_mq2.prototype._7r2=function(){this._nq2=this._rq2.length;};_mq2.prototype._Wq2=function(){var _8r2=new _sq2();_8r2._ke=this._pq2;this._pq2++;this._rq2._Df(_8r2);return _8r2._ke;};_mq2.prototype._Uq2=function(_9r2){for(var i=0;i<this._rq2.length;i++){if(this._rq2._26(i)!=null)if(this._rq2._26(i)._ke==_9r2)return this._rq2._26(i);}return null;
};_mq2.prototype._ar2=function(_9r2){for(var i=0;i<this._rq2.length;i++){var _br2=this._rq2._26(i);if(_br2){if(_br2._ke===_9r2){this._rq2._SQ(_br2);return;}}}return;};_mq2.prototype._cr2=function(){this._rq2._Tf();_nq2=0;};_mq2.prototype._dr2=function(_er2){if(_er2==null)return null;var _fr2=this._Wq2();var _Xq2=this._Uq2(_fr2);if(_Xq2!=null){_Xq2._gr2(_er2._1e1);_Xq2._hr2(_er2._3e1);_Xq2._ir2(_er2._5e1);_Xq2._jr2(_er2._7e1);_Xq2._kr2(_er2.hspeed);_Xq2._lr2(_er2.vspeed);_Xq2._mr2(_er2.hborder);_Xq2._nr2(_er2.vborder);
_Xq2._or2(0.0);_Xq2._pr2(_er2._Sm);_Xq2._qr2(_Xq2._rr2()+_Xq2._sr2()*0.5,_Xq2._tr2()+_Xq2._ur2()*0.5);}return _Xq2;};_mq2.prototype._vr2=function(){if(this._oq2===null){this._oq2=new _PN(0,0,0,0,false,true);}};_mq2.prototype._wr2=function(){if(this._oq2!=null){this._oq2=null;}for(var i=this._nq2;i<this._rq2.length;i++){var _xr2=this._rq2._26(i);if(_xr2!==null){if(_xr2._Pq2()&&!_xr2._Rq2()){this._ar2(_xr2._ke);}}}};_mq2.prototype._yr2=function(){this._zr2=0;this._qq2=null;this._Ar2=0;this._Br2=0;};_mq2.prototype._Cr2=function(){
return this._qq2;};_mq2.prototype._Dr2=function(_hJ){if(typeof(_hJ)==_sq2){this._qq2=_hJ;}else {this._qq2=this._Uq2(_hJ);}};_sq2.prototype._Er2=function(){return this._Iq2;};_sq2.prototype._pr2=function(_hJ){this._Iq2=_hJ;};_sq2.prototype._Fr2=function(_hJ){this._Jq2=_hJ;};_sq2.prototype._Gr2=function(_hJ){this._nP=_hJ;};_sq2.prototype._Hr2=function(_hJ){this._oP=_hJ;};_sq2.prototype._Ir2=function(){return this._Jq2;};_sq2.prototype._Jr2=function(){return this._nP;};_sq2.prototype._Kr2=function(){return this._oP;
};_sq2.prototype._Lr2=function(){return this._uq2;};_sq2.prototype._Mr2=function(){if(_rz==-1){return this._tq2;}else {var _Nr2=new _Zy();_Nr2._K6[_qz]=-1;var _uu=new _Zy();_uu.Multiply(this._tq2,_Nr2);return _uu;}};_sq2.prototype._Or2=function(){return this._vq2;};_sq2.prototype._Pr2=function(){return this._wq2;};_sq2.prototype._Qr2=function(){return this._xq2;};_sq2.prototype._Rr2=function(){return this._yq2;};_sq2.prototype._gr2=function(_hJ){this._zq2=_hJ;};_sq2.prototype._rr2=function(){return this._zq2;
};_sq2.prototype._hr2=function(_hJ){this._Aq2=_hJ;};_sq2.prototype._tr2=function(){return this._Aq2;};_sq2.prototype._Sr2=function(_hJ){this._ke=_hJ;};_sq2.prototype._Tr2=function(){return this._ke;};_sq2.prototype._ir2=function(_hJ){this._Bq2=_hJ;};_sq2.prototype._sr2=function(){return this._Bq2;};_sq2.prototype._jr2=function(_hJ){this._Cq2=_hJ;};_sq2.prototype._ur2=function(){return this._Cq2;};_sq2.prototype._kr2=function(_hJ){this._Dq2=_hJ;};_sq2.prototype._Ur2=function(){return this._Dq2;};_sq2.prototype._lr2=function(_hJ){
this._Eq2=_hJ;};_sq2.prototype._Vr2=function(){return this._Eq2;};_sq2.prototype._mr2=function(_hJ){this._Fq2=_hJ;};_sq2.prototype._Wr2=function(){return this._Fq2;};_sq2.prototype._nr2=function(_hJ){this._Gq2=_hJ;};_sq2.prototype._Xr2=function(){return this._Gq2;};_sq2.prototype._or2=function(_hJ){this._Hq2=_hJ;};_sq2.prototype._Yr2=function(){return this._Hq2;};_sq2.prototype._zd=function(){if(this._nP!==null){this._nP(this._oq2,this._oq2);}};_sq2.prototype._Bd=function(){if(this._oP!==null){this._oP(this._oq2,
this._oq2);}};_sq2.prototype._Zr2=function(){var __r2=new _iz();__r2._Pz=this._xq2._K6[_yA];__r2._Qz=this._xq2._K6[_BA];__r2._Rz=this._xq2._K6[_GA];return __r2;};_sq2.prototype._0s2=function(){var _1s2=new _iz();_1s2._Pz=this._uq2._K6[_DA];_1s2._Qz=this._uq2._K6[_EA];_1s2._Rz=this._uq2._K6[_FA];_1s2._Mz();return _1s2;};_sq2.prototype._2s2=function(){var _3s2=new _iz();_3s2._Pz=this._uq2._K6[_zA];_3s2._Qz=this._uq2._K6[_qz];_3s2._Rz=this._uq2._K6[_AA];_3s2._Mz();return _3s2;};_sq2.prototype._4s2=function(){
var _5s2=new _iz();_5s2._Pz=this._uq2._K6[_vA];_5s2._Qz=this._uq2._K6[_wA];_5s2._Rz=this._uq2._K6[_xA];_5s2._Mz();return _5s2;};_sq2.prototype._6s2=function(){if(this._2r2()){var _7s2=this._Zr2();var _8s2,_5s2,_3s2,_9s2;_8s2=this._yq2._as2(new _iz(-1.0,0.0,0.0));_5s2=this._yq2._as2(new _iz(1.0,0.0,0.0));_3s2=this._yq2._as2(new _iz(0.0,1.0,0.0));_9s2=this._yq2._as2(new _iz(0.0,-1.0,0.0));var _bs2=_5s2._cs2(_8s2);var _ds2=_3s2._cs2(_9s2);_6e1=_bs2.Length();_8e1=_ds2.Length();_2e1=_7s2._Pz-(_6e1*0.5);_4e1=_7s2._Qz-(_8e1*0.5);
var _es2=_ds2;_es2._Mz();var angle=Math.acos(_es2._Qz);if(_es2._Pz<0.0){angle=(2.0*Math.PI)-angle;}var _fs2=(angle/(2.0*Math.PI))*360.0;_SL(_2e1,_4e1,_6e1,_8e1,_fs2);}else {_2e1=0;_4e1=0;_6e1=_S3!=null?_S3._JX():1;_8e1=_S3!=null?_S3._KX():1;_SL(_2e1,_4e1,_6e1,_8e1,0);}if(_s8!=null){_jA(_YL,this._uq2);}else {_jA(_YL,this._uq2);var _gs2=_3K/_6e1;var _hs2=_4K/_8e1;_is2[0]=this._uq2._K6[_vA]*_gs2;_is2[1]=this._uq2._K6[_wA]*_gs2;_is2[2]=(this._uq2._K6[_yA]+(_6e1*0.5))*_gs2+_1K;_is2[3]=this._uq2._K6[_zA]*_hs2;
_is2[4]=this._uq2._K6[_qz]*_hs2;_is2[5]=(this._uq2._K6[_BA]+(_8e1*0.5))*_hs2+_2K;_4a._0K(_is2[0],_is2[3],_is2[1],_is2[4],_is2[2],_is2[5]);}if(_rz==-1){_jA(_ZL,this._tq2);}else {var _Nr2=new _Zy();_Nr2._K6[_qz]=-1;var _uu=new _Zy();_uu.Multiply(this._tq2,_Nr2);_jA(_ZL,_uu);}};_sq2.prototype._Uf=function(){if(this._Jq2!=null){this._Jq2(_js2,_js2);}else {if((this._Iq2>=0)&&(this._Kq2)){var _Tm=null;if(this._Iq2<10000){var _IF=_H3._26(this._Iq2);var _Kk=_IF._W01();for(var _7F=0;_7F<_Kk.length;_7F++){var _Gt=_Kk[_7F];
if(_Gt.marked)continue;if(!_Gt.active)continue;_Tm=_Gt;break;}}else {_Tm=_xn._26(this._Iq2);if(_Tm!=null){if(_Tm.marked||(!_Tm.active))_Tm=null;}}if(_Tm!=null){var _ks2=this._Bq2*0.5;var _ls2=this._Cq2*0.5;var _V6,_Y6;var _Nj,_ms2;_V6=this._zq2;_Y6=this._Aq2;if(_Tm._KN)_Tm._LN();_Nj=Math.floor(_Tm.x);_ms2=Math.floor(_Tm.y);if(2*this._Fq2>=this._Bq2){_V6=_Nj-_ks2;}else if(_Nj-this._Fq2<this._zq2){_V6=_Nj-this._Fq2;}else if(_Nj+this._Fq2>(this._zq2+this._Bq2)){_V6=_Nj+this._Fq2-this._Bq2;}if(2*this._Gq2>=this._Cq2){
_Y6=_ms2-_ls2;}else if(_ms2-this._Gq2<this._Aq2){_Y6=_ms2-this._Gq2;}else if(_ms2+this._Gq2>(this._Aq2+this._Cq2)){_Y6=_ms2+this._Gq2-this._Cq2;}if(_V6<0)_V6=0;if(_V6+this._Bq2>_S3._JX())_V6=_S3._JX()-this._Bq2;if(_Y6<0)_Y6=0;if(_Y6+this._Cq2>_S3._KX())_Y6=_S3._KX()-this._Cq2;if(this._Dq2>=0){if((_V6<this._zq2)&&(this._zq2-_V6>this._Dq2))_V6=this._zq2-this._Dq2;if((_V6>this._zq2)&&(_V6-this._zq2>this._Dq2))_V6=this._zq2+this._Dq2;}if(this._Eq2>=0){if((_Y6<this._Aq2)&&(this._Aq2-_Y6>this._Eq2))_Y6=this._Aq2-this._Eq2;
if((_Y6>this._Aq2)&&(_Y6-this._Aq2>this._Eq2))_Y6=this._Aq2+this._Eq2;}this._zq2=_V6;this._Aq2=_Y6;this._qr2(_V6+_ks2,_Y6+_ls2);}}}};_sq2.prototype._qr2=function(_hJ,_sh){var __f2=new _iz();var _7g2=new _iz();var _fg2=new _iz();__f2._Pz=_hJ;__f2._Qz=_sh;__f2._Rz=-16000.0;_7g2._Pz=_hJ;_7g2._Qz=_sh;_7g2._Rz=0.0;_fg2._Pz=Math.sin(-this._Hq2*(Math.PI/180.0));_fg2._Qz=Math.cos(-this._Hq2*(Math.PI/180.0));_fg2._Rz=0.0;var _ns2=new _Zy();_ns2._lz(__f2,_7g2,_fg2);var _os2=new _Zy();_os2._uz(this._Bq2,this._Cq2,1,
32000.0);this._4r2(_ns2);this._6r2(_os2);};_sq2.prototype._ps2=function(_hJ,_sh){var __f2=new _iz();var _7g2=new _iz();var _fg2=new _iz();__f2._Pz=_hJ;__f2._Qz=_sh;__f2._Rz=-(this._Bq2);_7g2._Pz=_hJ;_7g2._Qz=_sh;_7g2._Rz=0.0;_fg2._Pz=Math.sin(-this._Hq2*(Math.PI/180.0));_fg2._Qz=Math.cos(-this._Hq2*(Math.PI/180.0));_fg2._Rz=0.0;var _ns2=new _Zy();_ns2._lz(__f2,_7g2,_fg2);var _os2=new _Zy();_os2._vz(1.0,-(this._Cq2)/(this._Bq2),1,32000.0);this._4r2(_ns2);this._6r2(_os2);};function camera_create(){return _qs2._Wq2();
};function camera_create_view(_rs2,_ss2,_A8,_B8,_U5,_ct,_ts2,_us2,_vs2,_ws2){var _xs2=_qs2._Wq2();var _ys2=_qs2._Uq2(_xs2);if(_ys2!=null){_ys2._gr2(yyGetReal(_rs2));_ys2._hr2(yyGetReal(_ss2));_ys2._ir2(yyGetReal(_A8));_ys2._jr2(yyGetReal(_B8));var angle=0;var target=-1;var _zs2=-1;var _As2=-1;var _Bs2=0;var _Cs2=0;var _Ds2=arguments.length;if(_Ds2>4)angle=yyGetReal(_U5);if(_Ds2>5)target=yyGetInt32(_ct);if(_Ds2>6)_zs2=yyGetReal(_ts2);if(_Ds2>7)_As2=yyGetReal(_us2);if(_Ds2>8)_Bs2=yyGetReal(_vs2);if(_Ds2>9)_Cs2=yyGetReal(_ws2);
_ys2._or2(angle);_ys2._pr2(target);_ys2._kr2(_zs2);_ys2._lr2(_As2);_ys2._mr2(_Bs2);_ys2._nr2(_Cs2);if(_ys2._2r2()){_ys2._qr2(_ys2._rr2()+(_ys2._sr2()*0.5),_ys2._tr2()+(_ys2._ur2()*0.5));}else {_ys2._ps2(_ys2._rr2()+(_ys2._sr2()*0.5),_ys2._tr2()+(_ys2._ur2()*0.5));}}return _ys2._ke;}function camera_destroy(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){if(_qs2._Cr2()===_br2){_qs2._Dr2(null);}_qs2._ar2(_br2._ke);}};function camera_apply(_hJ){var _ys2=_qs2._Uq2(yyGetInt32(_hJ));if(_ys2!=null){_ys2._6s2();
}}function camera_get_active(){var _ys2=_qs2._Cr2();if(_ys2!=null)return _ys2._ke;else return -1;}function camera_get_default(){var _ys2=_qs2._Uq2(_Es2);if(_ys2!=null){return _ys2._ke;}else return -1;}function camera_set_default(_hJ){var _ys2=_qs2._Uq2(yyGetInt32(_hJ));if(_ys2!=null){_Es2=_ys2._ke;}}function camera_set_view_mat(_hJ,_sh){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){var _Fs2=new _Zy();for(var i=0;i<16;i++)_Fs2._K6[i]=_sh[i];_br2._4r2(_Fs2);}};function camera_set_proj_mat(_hJ,_sh){var _br2=_qs2._Uq2(yyGetInt32(_hJ));
if(_br2!=null){var _Fs2=new _Zy();for(var i=0;i<16;i++)_Fs2._K6[i]=_sh[i];_br2._6r2(_Fs2);}};function camera_set_view_target(_hJ,_sh){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){_br2._pr2(yyGetInt32(_sh));}};function camera_set_update_script(_hJ,_sh){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){if(typeof(_sh)==="number"){var _t9=yyGetInt32(_sh);if(_t9>=100000)_t9-=100000;_br2._Fr2(_xD.Scripts[_t9]);}else if(typeof _sh=="function"){_br2._Fr2(_sh);}}};function camera_set_begin_script(_hJ,_sh){var _br2=_qs2._Uq2(yyGetInt32(_hJ));
if(_br2!=null){if(typeof(_sh)==="number"){var _t9=yyGetInt32(_sh);if(_t9>=100000)_t9-=100000;_br2._Gr2(_xD.Scripts[_t9]);}else if(typeof _sh=="function"){_br2._Gr2(_sh);}}};function camera_set_end_script(_hJ,_sh){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){if(typeof(_sh)==="number"){var _t9=yyGetInt32(_sh);if(_t9>=100000)_t9-=100000;_br2._Hr2(_xD.Scripts[_t9]);}else if(typeof _sh=="function"){_br2._Hr2(_sh);}}};function _Gs2(_hJ,_sh,_wT,_GT,_HT,_RT,_ST,_Hs2,_Is2,_Js2,_Ks2){var _br2=_qs2._Uq2(_hJ);if(_br2!=null){
_br2._gr2(_sh);_br2._hr2(_wT);_br2._ir2(_GT);_br2._jr2(_HT);_br2._kr2(_RT);_br2._lr2(_ST);_br2._mr2(_Hs2);_br2._nr2(_Is2);_br2._or2(_Js2);_br2._pr2(_Ks2);_br2._qr2(_br2._rr2()+_br2._sr2()*0.5,_br2._tr2()+_br2._ur2()*0.5);}};function camera_set_view_pos(_hJ,_sh,_wT){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){_br2._gr2(yyGetReal(_sh));_br2._hr2(yyGetReal(_wT));_br2._qr2(_br2._rr2()+_br2._sr2()*0.5,_br2._tr2()+_br2._ur2()*0.5);}};function camera_set_view_size(_hJ,_sh,_wT){var _br2=_qs2._Uq2(yyGetInt32(_hJ));
if(_br2!=null){_br2._ir2(yyGetReal(_sh));_br2._jr2(yyGetReal(_wT));_br2._qr2(_br2._rr2()+_br2._sr2()*0.5,_br2._tr2()+_br2._ur2()*0.5);}};function camera_set_view_speed(_hJ,_sh,_wT){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){_br2._kr2(yyGetReal(_sh));_br2._lr2(yyGetReal(_wT));}};function camera_set_view_border(_hJ,_sh,_wT){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){_br2._mr2(yyGetReal(_sh));_br2._nr2(yyGetReal(_wT));}};function camera_set_view_angle(_hJ,_sh){var _br2=_qs2._Uq2(yyGetInt32(_hJ));
if(_br2!=null){_br2._or2(yyGetReal(_sh));_br2._qr2(_br2._rr2()+_br2._sr2()*0.5,_br2._tr2()+_br2._ur2()*0.5);}};function camera_get_view_mat(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._Lr2()._K6;}return -1;};function camera_get_proj_mat(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._Mr2()._K6;}return -1;};function camera_get_view_target(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._Er2();}return -1;};function camera_get_update_script(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));
if(_br2!=null){return method_get_index(_br2._Ir2());}return null;};function camera_get_begin_script(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return method_get_index(_br2._Jr2());}return null;};function camera_get_end_script(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return method_get_index(_br2._Kr2());}return null;};function camera_get_view_x(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._rr2();}return -1;};function camera_get_view_y(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));
if(_br2!=null){return _br2._tr2();}return -1;};function camera_get_view_width(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._sr2();}return -1;};function camera_get_view_height(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._ur2();}return -1;};function camera_get_view_speed_x(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._Ur2();}return -1;};function camera_get_view_speed_y(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._Vr2();}return -1;
};function camera_get_view_border_x(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._Wr2();}return -1;};function camera_get_view_border_y(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._Xr2();}return -1;};function camera_get_view_angle(_hJ){var _br2=_qs2._Uq2(yyGetInt32(_hJ));if(_br2!=null){return _br2._Yr2();}return -1;};var _Ls2=false,_z_=-1,_A_=-1,_Ms2=0,_Ns2=1,_Os2=2,_Ps2=3,_Qs2=4,_Rs2=5,_Ss2=6,_Ts2=7,_Us2=8,_Vs2=9,_Ws2=10,_Xs2=11,_Ys2=[0,0,0],_Zs2=[0,0,0],__s2=[0,
0,0,0,0,0],_0t2=[0,0,0],_1t2=[0,0,0],_2t2=[0,0,0],_3t2=[0,0,0],_4t2=[0,0,0],_5t2=[0,0,0],_6t2=[0,0,0],_7t2=0,_8t2=0;function _9t2(){if(_U3){if((_W3._X3()<=30)||(_at2<=30)){return 1.0;}if((_W3._X3()/_at2)<1.2){return 30.0/_W3._X3();}else {return 30.0/_at2;}}else {if((_S3._T3()<=30)||(_at2<=30)){return 1.0;}if((_S3._T3()/_at2)<1.2){return 30.0/_S3._T3();}else {return 30.0/_at2;}}}function _bt2(){if(!_8_(_z_)){_z_=_Ho();if(_U3){_Jo(_z_,50);}else {_Jo(_z_,100000);}}if(!_8_(_A_)){_A_=_Ho();if(_U3){_Jo(_A_,-15000);
}else {_Jo(_A_,-100000);}}if(!_Ls2){_ct2();}}function _ct2(){var i;_Ls2=true;for(i=0;i<=5;i++){__s2[i]=_Wo();}for(i=0;i<=2;i++){_0t2[i]=_Wo();_Ys2[i]=_Wo();_1t2[i]=_Wo();_Zs2[i]=_Wo();_2t2[i]=_Wo();_3t2[i]=_Wo();_4t2[i]=_Wo();_5t2[i]=_Wo();_6t2[i]=_Wo();}_7t2=_Wo();_8t2=_Wo();}function _dt2(_et2,_Q5,_R5,_7d,_0d){var _SC=_9t2();if(_7d===0){_Yo(__s2[0],_ft2);_Zo(__s2[0],0.1,0.1,0.05*_SC,0);_v_(__s2[0],0,360,0,0,false);_op(__s2[0],0,360,0,0);_np(__s2[0],2*_SC,2*_SC,-0.1*_SC,0);_9p(__s2[0],0.6,0);_gp(__s2[0],
_Mk(10.0/_SC),_Mk(15.0/_SC));_g_(_et2,_Q5,_R5,__s2[0],_0d,20);_Yo(__s2[1],_ft2);_Zo(__s2[1],0.1,0.1,0.1*_SC,0);_v_(__s2[1],0,360,0,0,false);_9p(__s2[1],0.8,0);_gp(__s2[1],_Mk(15/_SC),_Mk(15/_SC));_g_(_et2,_Q5,_R5,__s2[1],0x000000,1);}else if(_7d==2){_Yo(__s2[4],_ft2);_Zo(__s2[4],0.4,0.4,0.2*_SC,0);_v_(__s2[4],0,360,0,0,false);_op(__s2[4],0,360,0,0);_np(__s2[4],7*_SC,7*_SC,-0.2*_SC,0);_9p(__s2[4],0.6,0);_gp(__s2[4],_Mk(15/_SC),_Mk(20/_SC));_g_(_et2,_Q5,_R5,__s2[4],_0d,20);_Yo(__s2[5],_ft2);_Zo(__s2[5],
0.4,0.4,0.4*_SC,0);_v_(__s2[5],0,360,0,0,false);_9p(__s2[5],0.8,0);_gp(__s2[5],_Mk(20/_SC),_Mk(20/_SC));_g_(_et2,_Q5,_R5,__s2[5],0x000000,1);}else {_Yo(__s2[2],_ft2);_Zo(__s2[2],0.3,0.3,0.1*_SC,0);_v_(__s2[2],0,360,0,0,false);_op(__s2[2],0,360,0,0);_np(__s2[2],4*_SC,4*_SC,-0.18*_SC,0);_9p(__s2[2],0.6,0);_gp(__s2[2],_Mk(12/_SC),_Mk(17/_SC));_g_(_et2,_Q5,_R5,__s2[2],_0d,20);_Yo(__s2[3],_ft2);_Zo(__s2[3],0.3,0.3,0.2*_SC,0);_v_(__s2[3],0,360,0,0,false);_9p(__s2[3],0.8,0);_gp(__s2[3],_Mk(17/_SC),_Mk(17/_SC));
_g_(_et2,_Q5,_R5,__s2[3],0x000000,1);}}function _gt2(_et2,_Q5,_R5,_7d,_0d){var _SC=_9t2();if(_7d===0){_Yo(_0t2[0],_ht2);_9p(_0t2[0],1,0);_Zo(_0t2[0],0.0,0.0,0.15*_SC,0.0);_gp(_0t2[0],_Mk(10.0/_SC),_Mk(12.0/_SC));_g_(_et2,_Q5,_R5,_0t2[0],_0d,1);}else if(_7d==2){_Yo(_0t2[2],_ht2);_9p(_0t2[2],1,0);_Zo(_0t2[2],0,0,0.4*_SC,0);_gp(_0t2[2],_Mk(18.0/_SC),_Mk(20.0/_SC));_g_(_et2,_Q5,_R5,_0t2[2],_0d,1);}else {_Yo(_0t2[1],_ht2);_9p(_0t2[1],1,0);_Zo(_0t2[1],0,0,0.25*_SC,0);_gp(_0t2[1],_Mk(13.0/_SC),_Mk(15.0/_SC));
_g_(_et2,_Q5,_R5,_0t2[1],_0d,1);}}function _it2(_et2,_Q5,_R5,_7d,_0d){var _SC=_9t2();if(_7d===0){_Yo(_Ys2[0],_ht2);_9p(_Ys2[0],1,0);_Zo(_Ys2[0],0,0,0.2*_SC,0);_l_(_Ys2[0],1,0.5);_gp(_Ys2[0],_Mk(10.0/_SC),_Mk(12.0/_SC));_g_(_et2,_Q5,_R5,_Ys2[0],_0d,1);}else if(_7d==2){_Yo(_Ys2[2],_ht2);_9p(_Ys2[2],1,0);_Zo(_Ys2[2],0,0,0.6*_SC,0);_l_(_Ys2[2],1,0.5);_gp(_Ys2[2],_Mk(18.0/_SC),_Mk(20.0/_SC));_g_(_et2,_Q5,_R5,_Ys2[2],_0d,1);}else {_Yo(_Ys2[1],_ht2);_9p(_Ys2[1],1,0);_Zo(_Ys2[1],0,0,0.35*_SC,0);_l_(_Ys2[1],
1,0.5);_gp(_Ys2[1],_Mk(13.0/_SC),_Mk(15.0/_SC));_g_(_et2,_Q5,_R5,_Ys2[1],_0d,1);}}function _jt2(_et2,_Q5,_R5,_7d,_0d){var _SC=_9t2();if(_7d===0){_Yo(_1t2[1],_kt2);_Zo(_1t2[1],0.1,0.2,0,0);_np(_1t2[1],0.5*_SC,3.0*_SC,0.0,0.0);_op(_1t2[1],0,360,0,0);_9p(_1t2[1],1,0.4);_gp(_1t2[1],_Mk(15.0/_SC),_Mk(25.0/_SC));_sp(_1t2[1],0.10*_SC,270);_g_(_et2,_Q5,_R5,_1t2[1],_0d,75);}else if(_7d==2){_Yo(_1t2[1],_kt2);_Zo(_1t2[1],0.1,0.2,0,0);_np(_1t2[1],0.5*_SC,8.0*_SC,0.0,0.0);_op(_1t2[1],0,360,0,0);_9p(_1t2[1],1,0.4);
_gp(_1t2[1],_Mk(30.0/_SC),_Mk(40.0/_SC));_sp(_1t2[1],0.17*_SC,270);_g_(_et2,_Q5,_R5,_1t2[1],_0d,250);}else {_Yo(_1t2[1],_kt2);_Zo(_1t2[1],0.1,0.2,0,0);_np(_1t2[1],0.5*_SC,6.0*_SC,0.0,0.0);_op(_1t2[1],0,360,0,0);_9p(_1t2[1],1,0.4);_gp(_1t2[1],_Mk(20.0/_SC),_Mk(30.0/_SC));_sp(_1t2[1],0.15*_SC,270);_g_(_et2,_Q5,_R5,_1t2[1],_0d,150);}}function _lt2(_et2,_Q5,_R5,_7d,_0d){var i;var _SC=_9t2();if(_7d===0){_Yo(_Zs2[0],_ft2);_Zo(_Zs2[0],0.2,0.4,-0.01*_SC,0);_9p(_Zs2[0],0.4,0);_gp(_Zs2[0],_Mk(25.0/_SC),_Mk(25.0/_SC));
for(i=0;i<=5;i++){_g_(_et2,_Q5-5+_um(10),_R5-5+_um(10),_Zs2[0],_0d,1);}}else if(_7d===2){_Yo(_Zs2[2],_ft2);_Zo(_Zs2[2],0.4,1,-0.01*_SC,0);_9p(_Zs2[2],0.4,0);_gp(_Zs2[2],_Mk(50.0/_SC),_Mk(50.0/_SC));for(i=0;i<=15;i++){_g_(_et2,_Q5-30+_um(60),_R5-30+_um(60),_Zs2[2],_0d,1);}}else {_Yo(_Zs2[1],_ft2);_Zo(_Zs2[1],0.4,0.7,-0.01*_SC,0);_9p(_Zs2[1],0.4,0);_gp(_Zs2[1],_Mk(30.0/_SC),_Mk(30.0/_SC));for(i=0;i<=10;i++){_g_(_et2,_Q5-15+_um(30),_R5-15+_um(30),_Zs2[1],_0d,1);}}}function _mt2(_et2,_Q5,_R5,_7d,_0d){var i;
var _SC=_9t2();if(_7d===0){_Yo(_2t2[0],_ft2);_Zo(_2t2[0],0.2,0.4,-0.01*_SC,0);_9p(_2t2[0],0.4,0);_np(_2t2[0],3.0*_SC,4.0*_SC,0,0);_op(_2t2[0],90,90,0,0);_gp(_2t2[0],_Mk(25.0/_SC),_Mk(25.0/_SC));for(i=0;i<=5;i++){_g_(_et2,_Q5-5+_um(10),_R5-5+_um(10),_2t2[0],_0d,1);}}else if(_7d===2){_Yo(_2t2[2],_ft2);_Zo(_2t2[2],0.4,1,-0.01*_SC,0);_9p(_2t2[2],0.4,0);_np(_2t2[2],6.0*_SC,7.0*_SC,0,0);_op(_2t2[2],90,90,0,0);_gp(_2t2[2],_Mk(50.0/_SC),_Mk(50.0/_SC));for(i=0;i<=15;i++){_g_(_et2,_Q5-30+_um(60),_R5-30+_um(60),
_2t2[2],_0d,1);}}else {_Yo(_2t2[1],_ft2);_Zo(_2t2[1],0.4,0.7,-0.01*_SC,0);_9p(_2t2[1],0.4,0);_np(_2t2[1],5.0*_SC,6.0*_SC,0,0);_op(_2t2[1],90,90,0,0);_gp(_2t2[1],_Mk(30.0/_SC),_Mk(30.0/_SC));for(i=0;i<=10;i++){_g_(_et2,_Q5-15+_um(30),_R5-15+_um(30),_2t2[1],_0d,1);}}}function _nt2(_et2,_Q5,_R5,_7d,_0d){var _SC=_9t2();if(_7d===0){_Yo(_3t2[0],_ot2);_Zo(_3t2[0],0.4,0.3,-0.02*_SC,0);_v_(_3t2[0],0,360,0,0,false);_gp(_3t2[0],_Mk(20/_SC),_Mk(20/_SC));_g_(_et2,_Q5,_R5,_3t2[0],_0d,1);}else if(_7d===2){_Yo(_3t2[2],
_ot2);_Zo(_3t2[2],1.2,1.2,-0.04*_SC,0);_v_(_3t2[2],0,360,0,0,false);_gp(_3t2[2],_Mk(30/_SC),_Mk(30/_SC));_g_(_et2,_Q5,_R5,_3t2[2],_0d,1);}else {_Yo(_3t2[1],_ot2);_Zo(_3t2[1],0.75,0.75,-0.03*_SC,0);_v_(_3t2[1],0,360,0,0,false);_gp(_3t2[1],_Mk(25/_SC),_Mk(25/_SC));_g_(_et2,_Q5,_R5,_3t2[1],_0d,1);}}function _pt2(_et2,_Q5,_R5,_7d,_0d){var _SC=_9t2();if(_7d===0){_Yo(_4t2[0],_qt2);_Zo(_4t2[0],0.4,0.4,-0.02*_SC,0);_v_(_4t2[0],0,360,0,0,false);_gp(_4t2[0],_Mk(20/_SC),_Mk(20/_SC));_g_(_et2,_Q5,_R5,_4t2[0],_0d,
1);}else if(_7d===2){_Yo(_4t2[2],_qt2);_Zo(_4t2[2],1.2,1.2,-0.04*_SC,0);_v_(_4t2[2],0,360,0,0,false);_gp(_4t2[2],_Mk(30/_SC),_Mk(30/_SC));_g_(_et2,_Q5,_R5,_4t2[2],_0d,1);}else {_Yo(_4t2[1],_qt2);_Zo(_4t2[1],0.75,0.75,-0.03*_SC,0);_v_(_4t2[1],0,360,0,0,false);_gp(_4t2[1],_Mk(25/_SC),_Mk(25/_SC));_g_(_et2,_Q5,_R5,_4t2[1],_0d,1);}}function _rt2(_et2,_Q5,_R5,_7d,_0d){var _SC=_9t2();if(_7d===0){_Yo(_5t2[0],_kt2);_Zo(_5t2[0],0.4,0.4,-0.02*_SC,0);_v_(_5t2[0],0,360,0,0,false);_gp(_5t2[0],_Mk(20/_SC),_Mk(20/_SC));
_g_(_et2,_Q5,_R5,_5t2[0],_0d,1);}else if(_7d===2){_Yo(_5t2[2],_kt2);_Zo(_5t2[2],1.2,1.2,-0.04*_SC,0);_v_(_5t2[2],0,360,0,0,false);_gp(_5t2[2],_Mk(30/_SC),_Mk(30/_SC));_g_(_et2,_Q5,_R5,_5t2[2],_0d,1);}else {_Yo(_5t2[1],_kt2);_Zo(_5t2[1],0.75,0.75,-0.03*_SC,0);_v_(_5t2[1],0,360,0,0,false);_gp(_5t2[1],_Mk(25/_SC),_Mk(25/_SC));_g_(_et2,_Q5,_R5,_5t2[1],_0d,1);}}function _st2(_et2,_Q5,_R5,_7d,_0d){var _SC=_9t2();if(_7d===0){_Yo(_6t2[0],_ft2);_Zo(_6t2[0],2,2,0,0);_l_(_6t2[0],1,0.5);_u_(_6t2[0],0,0.3,0);_gp(_6t2[0],
_Mk(100.0/_SC),_Mk(100.0/_SC));_g_(_et2,_Q5,_R5,_6t2[0],_0d,1);}else if(_7d===2){_Yo(_6t2[2],_ft2);_Zo(_6t2[2],8,8,0,0);_l_(_6t2[2],1,0.5);_u_(_6t2[2],0,0.3,0);_gp(_6t2[2],_Mk(100.0/_SC),_Mk(100.0/_SC));_g_(_et2,_Q5,_R5,_6t2[2],_0d,1);}else {_Yo(_6t2[1],_ft2);_Zo(_6t2[1],4,4,0,0);_l_(_6t2[1],1,0.5);_u_(_6t2[1],0,0.3,0);_gp(_6t2[1],_Mk(100.0/_SC),_Mk(100.0/_SC));_g_(_et2,_Q5,_R5,_6t2[1],_0d,1);}}function _tt2(_et2,_Q5,_R5,_7d,_0d){var i;var _SC=_9t2();_Yo(_7t2,_ut2);_Zo(_7t2,0.2,0.3,0.0,0.0);_v_(_7t2,
0,0,0,0,true);_np(_7t2,7*_SC,7*_SC,0,0);_op(_7t2,260,260,0,0);_t_(_7t2,0.4);_gp(_7t2,_Mk(0.2*_S3._KX()/_SC),_Mk(0.2*_S3._KX()/_SC));if(_7d===0){for(i=0;i<=1;i++){_g_(_et2,_um(1)*1.2*_S3._JX(),-30.0+_um(20),_7t2,_0d,1);}}else if(_7d==2){for(i=0;i<=8;i++){_g_(_et2,_um(1)*1.2*_S3._JX(),-30.0+_um(20),_7t2,_0d,1);}}else {for(i=0;i<=4;i++){_g_(_et2,_um(1)*1.2*_S3._JX(),-30.0+_um(20),_7t2,_0d,1);}}}function _vt2(_et2,_Q5,_R5,_7d,_0d){var i;var _SC=_9t2();_Yo(_8t2,_wt2);_Zo(_8t2,0.1,0.25,0.0,0.0);_t_(_8t2,0.6);
_v_(_8t2,0,360,0,0,false);_np(_8t2,2.5*_SC,3.0*_SC,0.0,0.0);_op(_8t2,240,300,0,20);_gp(_8t2,_Mk(0.5*_S3._KX()/_SC),_Mk(0.5*_S3._KX()/_SC));if(_7d===0){for(i=0;i<=0;i++){_g_(_et2,_um(1)*1.2*_S3._JX()-60,-30.0+_um(20),_8t2,_0d,1);}}else if(_7d===2){for(i=0;i<=6;i++){_g_(_et2,_um(1)*1.2*_S3._JX()-60,-30.0+_um(20),_8t2,_0d,1);}}else {for(i=0;i<=2;i++){_g_(_et2,_um(1)*1.2*_S3._JX()-60,-30.0+_um(20),_8t2,_0d,1);}}}function _Dq(_Cq,_Dc,_Q5,_R5,_7d,_0d){var _No1;_bt2();if(_Cq){_No1=_z_;}else {_No1=_A_;}switch(_Dc){
case _Ms2:_dt2(_No1,_Q5,_R5,_7d,_0d);break;case _Ns2:_gt2(_No1,_Q5,_R5,_7d,_0d);break;case _Os2:_it2(_No1,_Q5,_R5,_7d,_0d);break;case _Ps2:_jt2(_No1,_Q5,_R5,_7d,_0d);break;case _Qs2:_lt2(_No1,_Q5,_R5,_7d,_0d);break;case _Rs2:_mt2(_No1,_Q5,_R5,_7d,_0d);break;case _Ss2:_nt2(_No1,_Q5,_R5,_7d,_0d);break;case _Ts2:_pt2(_No1,_Q5,_R5,_7d,_0d);break;case _Us2:_rt2(_No1,_Q5,_R5,_7d,_0d);break;case _Vs2:_st2(_No1,_Q5,_R5,_7d,_0d);break;case _Ws2:_tt2(_No1,_Q5,_R5,_7d,_0d);break;case _Xs2:_vt2(_No1,_Q5,_R5,_7d,_0d);break;
}}var _xt2=false,_5k1=false,_yt2=true;function _zt2(_m01){if(_m01){_xt2=true;}else {_5k1=false;_xt2=false;if(_yt2){_At2=false;}}}function _Bt2(){if(window["page"]===undefined){_yt2=false;window.addEventListener("focus",function(){_zt2(false);});window.addEventListener("blur",function(){_zt2(true);});window.addEventListener("click",function(){_zt2(false);});}}function _Ct2(){if(_xt2){_5k1=true;_xt2=false;}else if(_5k1){_5k1=false;if(_yt2){_At2=true;}}}function _Dt2(){var _MN,i,_Et2;var _2g=null;if(_S3._3g){
_2g=_S3._5g;}var _Kk=_S3._yN._Kk;var _E8=_Ft2++;for(var _Gt2=0;_Gt2<_Kk.length;_Gt2++){var _Tm=_Kk[_Gt2];var _1F=_Tm._1F;if(!_Tm.marked&&(_Tm._Ht2<=_E8)){if(_1F._It2[_Jt2]){var _eO=false;if(sprite_exists(_Tm.sprite_index)||sprite_exists(_Tm.mask_index)){_MN=_Tm._MX();_eO=((_MN.right<0)||(_MN.left>_S3._JX())||(_MN.bottom<0)||(_MN.top>_S3._KX()));}else {_eO=((_Tm.x<0)||(_Tm.x>_S3._JX())||(_Tm.y<0)||(_Tm.y>_S3._KX()));}if(_eO){if(!_Tm._Kt2){_Tm._b6(_Jt2,_vH,_Tm,_Tm);}}_Tm._Kt2=_eO;}if(_1F._It2[_Lt2]){if(sprite_exists(_Tm.sprite_index)||sprite_exists(_Tm.mask_index)){
_MN=_Tm._MX();if((_MN.left<0)||(_MN.right>_S3._JX())||(_MN.top<0)||(_MN.bottom>_S3._KX())){_Tm._b6(_Lt2,_vH,_Tm,_Tm);}}else {if((_Tm.x<0)||(_Tm.x>_S3._JX())||(_Tm.y<0)||(_Tm.y>_S3._KX())){_Tm._b6(_Lt2,_vH,_Tm,_Tm);}}}if(_2g){for(_Et2=0;_Et2<_2g.length;_Et2++){var _Mt2=_2g[_Et2];if(_Mt2.visible){var _Nt2=_Mt2._1e1;var _Ot2=_Mt2._3e1;var _Pt2=_Mt2._1e1+_Mt2._5e1;var _Qt2=_Mt2._3e1+_Mt2._7e1;var _br2=_qs2._Uq2(_Mt2._C31);if(_br2!=null){_Nt2=_br2._rr2();_Ot2=_br2._tr2();_Pt2=_br2._rr2()+_br2._sr2();_Qt2=_br2._tr2()+_br2._ur2();
}if(_1F._It2[_Rt2+_Et2]){if(sprite_exists(_Tm.sprite_index)||sprite_exists(_Tm.mask_index)){_MN=_Tm._MX();if((_MN.right<_Nt2)||(_MN.left>_Pt2)||(_MN.bottom<_Ot2)||(_MN.top>_Qt2)){_Tm._b6(_Rt2+_Et2,_vH,_Tm,_Tm);}}else {if((_Tm.x<_Nt2)||(_Tm.x>_Pt2)||(_Tm.y<_Ot2)||(_Tm.y>_Qt2)){_Tm._b6(_Rt2+_Et2,_vH,_Tm,_Tm);}}}if(_1F._It2[_St2+_Et2]){if(sprite_exists(_Tm.sprite_index)||sprite_exists(_Tm.mask_index)){var _Tt2=true;_MN=_Tm._MX();if((_MN.right<_Nt2)||(_MN.left>_Pt2)||(_MN.bottom<_Ot2)||(_MN.top>_Qt2)){
_Tt2=false;}if((_MN.right<_Pt2)&&(_MN.left>_Nt2)&&(_MN.bottom<_Qt2)&&(_MN.top>_Ot2)){_Tt2=false;}if(_Tt2){_Tm._b6(_St2+_Et2,_vH,_Tm,_Tm);}}else {}}}}}}}}function _Ut2(){for(var _Q72 in _R72){if(!_R72.hasOwnProperty(_Q72))continue;var _Vt2=_H3._26(_Q72);var _Wt2=_Vt2._W01();var _E8=_Ft2++;for(var _H62=0;_H62<_Wt2.length;_H62++){var _Xt2=_Wt2[_H62];if(!_Xt2.marked&&_Xt2.active&&(_Xt2._Ht2<=_E8)){var _Yt2=_R72[_Q72];for(var _Zt2 in _Yt2){if(!_Yt2.hasOwnProperty(_Zt2))continue;var _NG1=_Yt2[_Zt2];var __t2=_H3._26(_NG1);
var _0u2=__t2._W01();for(var _I62=0;_I62<_0u2.length;_I62++){var _1u2=_0u2[_I62];if(!_1u2.marked&&_1u2.active&&(_1u2._Ht2<=_E8)){if((_Xt2._1F==_1u2._1F)&&(_I62<_H62))continue;if(_Xt2._BN(_1u2,true)){if((_Xt2.solid)||(_1u2.solid)){_Xt2.x=_Xt2.xprevious;_Xt2.y=_Xt2.yprevious;_Xt2._KN=true;_Xt2.path_position=_Xt2.path_positionprevious;_1u2.x=_1u2.xprevious;_1u2.y=_1u2.yprevious;_1u2._KN=true;_1u2.path_position=_1u2.path_positionprevious;}_Xt2._b6(_L62,_1u2._1F._bO,_Xt2,_1u2);_1u2._b6(_L62,_Xt2._1F._bO,
_1u2,_Xt2);if((_Xt2.solid)||(_1u2.solid)){_Xt2._v62();_1u2._v62();_Xt2._Ed(_Xt2.x+_Xt2.hspeed,_Xt2.y+_Xt2.vspeed);_1u2._Ed(_1u2.x+_1u2.hspeed,_1u2.y+_1u2.vspeed);if(_Xt2._BN(_1u2,true)){_Xt2.x=_Xt2.xprevious;_Xt2.y=_Xt2.yprevious;_Xt2._KN=true;_Xt2.path_position=_Xt2.path_positionprevious;_1u2.x=_1u2.xprevious;_1u2.y=_1u2.yprevious;_1u2._KN=true;_1u2.path_position=_1u2.path_positionprevious;}}}}}}}}}}function _2u2(_D3,_3u2,_Q5,_R5){for(var i=_S3._yN.length-1;i>=0;i--){var _Gt=_S3._yN._26(i);{if(_Gt._KN)_Gt._LN();
if(!_Gt.marked&&_Gt._1F._It2[_D3|_3u2]){var _4u2=_16._26(_Gt.sprite_index);var _cL=_4u2.xOrigin;var _dL=_4u2.yOrigin;if((_Q5>=_Gt._MN.left)&&(_Q5<_Gt._MN.right)&&(_R5>=_Gt._MN.top)&&(_R5<_Gt._MN.bottom)){_Gt._b6(_D3,_3u2,_Gt,_Gt);}}}}}function _5u2(){if(_S3){var _t9;var _E8=_Ft2;var _6u2=window_views_mouse_get_x();var _7u2=window_views_mouse_get_y();var _8u2=_H3._BX();for(var _UE=0;_UE<_8u2.length;_UE++){var _IF=_8u2[_UE];var _9u2=_IF._It2;if(_9u2[_au2]||_9u2[_bu2]||_9u2[_cu2]||_9u2[_du2]||_9u2[_eu2]||_9u2[_fu2]||_9u2[_gu2]||_9u2[_hu2]||_9u2[_iu2]||_9u2[_ju2]||_9u2[_ku2]||_9u2[_lu2]||_9u2[_mu2]||_9u2[_nu2]){
if(_IF._ou2.length>0){var _pu2=_IF._ou2._Kk.slice(0);for(var i=_pu2.length-1;i>=0;i--){var _Gt=_pu2[i];if(!_Gt.marked&&(_Gt._Ht2<=_E8)){if(_Gt._KN)_Gt._LN();if(_Gt._zt(_6u2,_7u2,true)){var _qu2=true;for(_t9=0;_t9<3;_t9++){if(_vg._De[_t9]){if(_9u2[_au2+_t9]){_Gt._b6(_au2+_t9,0,_Gt,_Gt);}_qu2=false;}}for(_t9=0;_t9<3;_t9++){if(_vg._ye[_t9]===1){if(_9u2[_du2+_t9]){_Gt._b6(_du2+_t9,0,_Gt,_Gt);}_qu2=false;}}for(_t9=0;_t9<3;_t9++){if(_vg._Ce[_t9]===1){if(_9u2[_gu2+_t9]){_Gt._b6(_gu2+_t9,0,_Gt,_Gt);}}}if(_qu2){
_Gt._b6(_ju2,0,_Gt,_Gt);}if(!_Gt._ru2){_Gt._b6(_ku2,0,_Gt,_Gt);_Gt._ru2=true;}}else {if(_Gt._ru2){_Gt._b6(_lu2,0,_Gt,_Gt);_Gt._ru2=false;}}}}}}}for(_t9=0;_t9<3;_t9++){if(_vg._De[_t9]){_xn._b6(_su2+_t9,0);}}for(_t9=0;_t9<3;_t9++){if(_vg._ye[_t9]===1){_xn._b6(_tu2+_t9,0);}}for(_t9=0;_t9<3;_t9++){if(_vg._Ce[_t9]===1){_xn._b6(_uu2+_t9,0);}}if(_yO){_xn._b6(_mu2,0);}if(_zO){_xn._b6(_nu2,0);}}}function _vu2(){var _0a,_1a,_17;var _Kk=_S3._yN._Kk;var _E8=_Ft2++;for(var _Tm=0;_Tm<_Kk.length;_Tm++){var _Gt=_Kk[_Tm];
if(!_Gt.marked&&(_Gt.timeline_index>=0)&&(_Gt._Ht2<=_E8)){if(!_Gt._0r){var _zH=_AH._26(_Gt.timeline_index);if((_zH!==null)&&(_zH!==undefined)){if(_Gt.timeline_speed>0){_0a=_zH._wu2(_Gt.timeline_position);_Gt.timeline_position+=_Gt.timeline_speed;_1a=_zH._wu2(_Gt.timeline_position);for(_17=_0a;_17<_1a;_17++){_wH(_Gt,_Gt,_Gt.timeline_index,_17);}if(_Gt._1r&&(_Gt.timeline_position>_zH._zh1())){_Gt.timeline_position=0;}}else {_0a=_zH._xu2(_Gt.timeline_position);_Gt.timeline_position+=_Gt.timeline_speed;
_1a=_zH._xu2(_Gt.timeline_position);for(_17=_0a;_17>_1a;_17--){_wH(_Gt,_Gt,_Gt.timeline_index,_17);}if(_Gt._1r&&(_Gt.timeline_position<0)){_Gt.timeline_position=_zH._zh1();}}}}}}}function _yu2(){_rg1._zu2();_qh1._zu2();_sg1._Au2(g_pBuiltIn.delta_time);_sg1._zu2();_rg1._Bu2();_qh1._Bu2();_sg1._Bu2();}function _Cu2(){var _Kk=_S3._yN._Kk;var _E8=_Ft2++;for(var _Tm=0;_Tm<_Kk.length;_Tm++){var _Gt=_Kk[_Tm];if(!_Gt.marked&&(_Gt._Ht2<=_E8)){for(var _G4=0;_G4<_Du2;_G4++){var event=_Eu2|(_G4+1);var _IF=_Gt._1F;if(_IF._It2[event]){
var _Fu2;_Fu2=~~(_Gt.alarm[_G4]);if(_Fu2>=0){_Fu2--;_Gt.alarm[_G4]=_Fu2;}if(_Fu2===0){_Gt._b6(_Eu2|(_G4+1),0,_Gt,_Gt);}}}}}}function _rH(_D3,_oH){switch(_D3){case _Gu2:return _Wm;case _Hu2:return _WN;case _Iu2:return _FN;case _Ju2:switch(_oH){case 0:return _Ku2;case 1:return _Lu2;case 2:return _Mu2;case 3:return _Nu2;case 4:return _Ou2;case 5:return _Pu2;case 6:return _Qu2;case 7:return _Ru2;case 8:return _Su2;case 9:return _Tu2;case 10:return _Uu2;case 11:return _Vu2;default :return _Ku2;}break;case _Wu2:switch(_oH){case _Xu2:return _Yu2;
case _Zu2:return __u2;case _0v2:return _1v2;default :return __u2;}break;case _2v2:return _L62;case _3v2:switch(_oH){case _4v2:return _au2;case _5v2:return _cu2;case _6v2:return _bu2;case _7v2:return _ju2;case _8v2:return _du2;case _9v2:return _fu2;case _av2:return _eu2;case _bv2:return _gu2;case _cv2:return _iu2;case _dv2:return _hu2;case _ev2:return _ku2;case _fv2:return _lu2;case _gv2:return 0;case _hv2:return 0;case _iv2:return 0;case _jv2:return 0;case _kv2:return 0;case _lv2:return 0;case _mv2:return 0;case _nv2:return 0;case _ov2:return 0;
case _pv2:return 0;case _qv2:return 0;case _rv2:return 0;case _sv2:return 0;case _tv2:return 0;case _uv2:return 0;case _vv2:return 0;case _wv2:return 0;case _xv2:return 0;case _yv2:return 0;case _zv2:return 0;case _Av2:return 0;case _Bv2:return 0;case _Cv2:return 0;case _Dv2:return 0;case _Ev2:return _su2;case _Fv2:return _Gv2;case _Hv2:return _Iv2;case _Jv2:return _tu2;case _Kv2:return _Lv2;case _Mv2:return _Nv2;case _Ov2:return _uu2;case _Pv2:return _Qv2;case _Rv2:return _Sv2;case _Tv2:return _mu2;case _Uv2:return _nu2;default :return 0;}break;case _LH:{
switch(_oH){case _Vv2:return _Jt2;case _Wv2:return _Lt2;case _Xv2:return _Yv2;case _Zv2:return __v2;case _0w2:return _1w2;case _2w2:return _3w2;case _4w2:return _yn;case _5w2:return _6w2;case _7w2:return _w62;case _8w2:return _Jn;case _9w2:return _aw2;case _bw2:return _Rt2;case _cw2:return _dw2;case _ew2:return _fw2;case _gw2:return _hw2;case _iw2:return _jw2;case _kw2:return _lw2;case _mw2:return _nw2;case _ow2:return _pw2;case _qw2:return _St2;case _rw2:return _sw2;case _tw2:return _uw2;case _vw2:return _ww2;case _xw2:return _yw2;case _zw2:return _Aw2;
case _Bw2:return _Cw2;case _Dw2:return _Ew2;case _KH:return _Fw2;case _Gw2:return _Hw2;case _Iw2:return _Jw2;case _Kw2:return _Lw2;case _Mw2:return _Nw2;case _Ow2:return _Pw2;case _Qw2:return _Rw2;case _Sw2:return _Tw2;case _Uw2:return _Vw2;case _Ww2:return _Xw2;case _Yw2:return _Zw2;case __w2:return _0x2;case _1x2:return _2x2;case _3x2:return _4x2;case _5x2:return _6x2;case _7x2:return _8x2;case _9x2:return _c6;case _ax2:return _J3;case _bx2:return _cx2;case _dx2:return _ex2;case _fx2:return _gx2;case _hx2:return _ix2;case _jx2:return _kx2;case _lx2:return _mx2;
case _nx2:return _ox2;case _px2:return _qx2;case _rx2:return _G91;case _sx2:return _tx2;case _ux2:return _m71;case _vx2:return _wx2;default :return 0;}break;}case _xx2:return _yx2|_oH;case _zx2:return _Ax2;case _Bx2:return _Cx2;case _Dx2:return _Ex2;case _Fx2:return _Gx2;case _Hx2:switch(_oH){case _Ix2:return _Jx2;case _Kx2:return _Lx2;case _Mx2:return _Nx2;case _Ox2:return _Px2;case _Qx2:return _Rx2;case _Sx2:return _Tx2;case _Ux2:return _Vx2;case _Wx2:return _Xx2;case _Yx2:return _Zx2;case __x2:return _0y2;case _1y2:return _2y2;case _3y2:return _4y2;
case _5y2:return _6y2;case _7y2:return _8y2;case _9y2:return _ay2;case _by2:return _cy2;case _dy2:return _ey2;case _fy2:return _gy2;case _hy2:return _iy2;case _jy2:return _ky2;case _ly2:return _my2;case _ny2:return _oy2;case _py2:return _qy2;case _ry2:return _sy2;case _ty2:return _uy2;case _vy2:return _wy2;default :return 0;}break;case _xy2:return _Vm;default :return 0;}}function _sH(_D3,_oH){switch(_D3){case _2v2:case _Fx2:case _zx2:case _Bx2:case _Dx2:{return _oH;}}return 0;}var _yy2=0;var _zy2=1;var _Ay2=2;var _By2=3;var _Cy2=4;var _Dy2=5;
function _Ey2(){this._Fy2=[new _Gy2(),new _Gy2(),new _Gy2(),new _Gy2(),new _Gy2(),new _Gy2(),];}/*
* Initializes frustum planes from a view-projection matrix.
*
* @param {Matrix} vp The view-projection matrix.
*/_Ey2.prototype._0M=function(_Hy2){var _eo=new _iz(_Hy2._K6[0],_Hy2._K6[4],_Hy2._K6[8]);var _fo=new _iz(_Hy2._K6[1],_Hy2._K6[5],_Hy2._K6[9]);var _go=new _iz(_Hy2._K6[2],_Hy2._K6[6],_Hy2._K6[10]);var _ho=new _iz(_Hy2._K6[3],_Hy2._K6[7],_Hy2._K6[11]);this._Fy2[_yy2].Normal=_ho._Df(_eo);this._Fy2[_zy2].Normal=_ho._cs2(_eo);
this._Fy2[_By2].Normal=_ho._Df(_fo);this._Fy2[_Ay2].Normal=_ho._cs2(_fo);this._Fy2[_Cy2].Normal=_go;this._Fy2[_Dy2].Normal=_ho._cs2(_go);var _Iy2=_Hy2._K6[12];var _Jy2=_Hy2._K6[13];var _Ky2=_Hy2._K6[14];var _Ly2=_Hy2._K6[15];this._Fy2[_yy2]._H32=_Ly2+_Iy2;this._Fy2[_zy2]._H32=_Ly2-_Iy2;this._Fy2[_By2]._H32=_Ly2+_Jy2;this._Fy2[_Ay2]._H32=_Ly2-_Jy2;this._Fy2[_Cy2]._H32=_Ky2;this._Fy2[_Dy2]._H32=_Ly2-_Ky2;for(var i=0;i<6;++i){this._Fy2[i]._Mz();}};/*
* 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.
*/_Ey2.prototype._My2=function(position,
_A21){for(var i=0;i<6;++i){var _Ny2=this._Fy2[i];var _Jt=(position._Oy2(_Ny2.Normal))+_Ny2._H32;if(_Jt<-_A21){return false;}}return true;};function _Py2(){this.__type="global";}var __6=3.14159265,_Qy2=true,_Ry2=false,_p91=true,_Vi1=0,_Sy2=-1,_Ty2=0,_Uy2=1,_Vy2=2,_FM=0,_Wy2=-1,_Xy2=0,_GM=1,_Yy2=2,_Zy2=3,__y2=4,_m61=5,_0z2=6,_1z2=7,_2z2=8,_3z2=9,_4z2=10,_5z2=11,_k61=0,_6z2=-1,_7z2=0,_8z2=0,_9z2=1,_az2=2,_l61=3,_bz2=4,_cz2=5,_dz2=6,_ez2=7,_fz2=8,_gz2=9,_Yi1=0,_hz2=-1,_U31=-100,_V31=-200,_iz2=-300,_jz2=-400,
_8Y=-1,_kz2=-2,_cO=-3,_wt=-4,_lz2=-5,_mz2=-7,_nz2=-6,_Wm=0x000,_WN=0x100,_Eu2=0x200,_oz2=0x300,_L62=0x400,_Ax2=0x500,_pz2=0x600,_vH=0x700,_yx2=0x800,_Cx2=0x900,_Ex2=0xA00,_Gx2=0xB00,_FN=0xC00,_qz2=0xD00,_Vm=0xE00,__u2=_oz2|1,_Yu2=_oz2|2,_1v2=_oz2|3,_Jt2=_vH|1,_Lt2=_vH|2,_Yv2=_vH|3,__v2=_vH|4,_1w2=_vH|5,_3w2=_vH|6,_yn=_vH|7,_6w2=_vH|8,_w62=_vH|9,_Jn=_vH|10,_aw2=_vH|11,_Fw2=_vH|14,_Hw2=_vH|15,_Jw2=_vH|16,_Lw2=_vH|17,_Nw2=_vH|18,_Pw2=_vH|19,_Rw2=_vH|20,_Tw2=_vH|21,_Vw2=_vH|22,_Xw2=_vH|23,_Zw2=_vH|24,
_0x2=_vH|25,_2x2=_vH|26,_4x2=_vH|27,_6x2=_vH|28,_8x2=_vH|29,_Rt2=_vH|30,_dw2=_vH|31,_fw2=_vH|32,_hw2=_vH|33,_jw2=_vH|34,_lw2=_vH|35,_nw2=_vH|36,_pw2=_vH|37,_St2=_vH|40,_sw2=_vH|41,_uw2=_vH|42,_ww2=_vH|43,_yw2=_vH|44,_Aw2=_vH|45,_Cw2=_vH|46,_Ew2=_vH|47,_c6=_vH|58,_J3=_vH|59,_cx2=_vH|60,_ex2=_vH|61,_gx2=_vH|62,_ix2=_vH|63,_mx2=_vH|68,_rz2=_yx2|64,_sz2=_yx2|65,_tz2=_yx2|72,_uz2=_yx2|73,_vz2=_yx2|74,_wz2=_yx2|75,_xz2=_yx2|76,_yz2=_yx2|77,_kx2=_vH|66,_ox2=_vH|70,_qx2=_vH|71,_G91=_vH|72,_Ea1=_vH|73,_tx2=_vH|74,
_m71=_vH|75,_wx2=_vH|76,_au2=_pz2|1,_cu2=_pz2|2,_bu2=_pz2|3,_du2=_pz2|4,_fu2=_pz2|5,_eu2=_pz2|6,_gu2=_pz2|7,_iu2=_pz2|8,_hu2=_pz2|9,_su2=_pz2|10,_Gv2=_pz2|11,_Iv2=_pz2|12,_tu2=_pz2|13,_Lv2=_pz2|14,_Nv2=_pz2|15,_uu2=_pz2|16,_Qv2=_pz2|17,_Sv2=_pz2|18,_ju2=_pz2|19,_ku2=_pz2|20,_lu2=_pz2|21,_mu2=_pz2|22,_nu2=_pz2|23,_Ku2=_Eu2|1,_Lu2=_Eu2|2,_Mu2=_Eu2|3,_Nu2=_Eu2|4,_Ou2=_Eu2|5,_Pu2=_Eu2|6,_Qu2=_Eu2|7,_Ru2=_Eu2|8,_Su2=_Eu2|9,_Tu2=_Eu2|10,_Uu2=_Eu2|11,_Vu2=_Eu2|12,_Jx2=_qz2|1,_Lx2=_qz2|2,_Nx2=_qz2|3,_Px2=_qz2|4,
_Rx2=_qz2|5,_Tx2=_qz2|6,_Vx2=_qz2|7,_Xx2=_qz2|8,_Zx2=_qz2|9,_0y2=_qz2|10,_2y2=_qz2|11,_4y2=_qz2|12,_6y2=_qz2|13,_8y2=_qz2|65,_ay2=_qz2|66,_cy2=_qz2|67,_ey2=_qz2|68,_gy2=_qz2|69,_iy2=_qz2|70,_ky2=_qz2|71,_my2=_qz2|72,_oy2=_qz2|73,_qy2=_qz2|74,_sy2=_qz2|75,_uy2=_qz2|76,_wy2=_qz2|77,_Gu2=0,_Hu2=1,_Ju2=2,_Wu2=3,_2v2=4,_zx2=5,_3v2=6,_LH=7,_xx2=8,_Bx2=9,_Dx2=10,_Fx2=11,_Iu2=12,_Hx2=13,_xy2=14,_zz2=10,_Az2=11,_Bz2=12,_Cz2=13,_Dz2=14,_Ez2=15,_Fz2=16,_Gz2=17,_Hz2=18,_Iz2=19,_Jz2=20,_Kz2=21,_Lz2=22,_Mz2=23,
_Nz2=24,_Oz2=25,_4v2=0,_5v2=1,_6v2=2,_7v2=3,_8v2=4,_9v2=5,_av2=6,_bv2=7,_cv2=8,_dv2=9,_ev2=10,_fv2=11,_gv2=16,_hv2=17,_iv2=18,_jv2=19,_kv2=21,_lv2=22,_mv2=23,_nv2=24,_ov2=25,_pv2=26,_qv2=27,_rv2=28,_sv2=31,_tv2=32,_uv2=33,_vv2=34,_wv2=36,_xv2=37,_yv2=38,_zv2=39,_Av2=40,_Bv2=41,_Cv2=42,_Dv2=43,_Ev2=50,_Fv2=51,_Hv2=52,_Jv2=53,_Kv2=54,_Mv2=55,_Ov2=56,_Pv2=57,_Rv2=58,_Tv2=60,_Uv2=61,_Ix2=0,_Kx2=1,_Mx2=2,_Ox2=3,_Qx2=4,_Sx2=5,_Ux2=6,_Wx2=7,_Yx2=8,__x2=9,_1y2=10,_3y2=11,_5y2=12,_7y2=64,_9y2=65,_by2=66,
_dy2=67,_fy2=68,_hy2=69,_jy2=70,_ly2=71,_ny2=72,_py2=73,_ry2=74,_ty2=75,_vy2=76,_Zu2=0,_Xu2=1,_0v2=2,_Vv2=0,_Wv2=1,_Xv2=2,_Zv2=3,_0w2=4,_2w2=5,_4w2=6,_5w2=7,_7w2=8,_8w2=9,_9w2=30,_bw2=40,_cw2=41,_ew2=42,_gw2=43,_iw2=44,_kw2=45,_mw2=46,_ow2=47,_qw2=50,_rw2=51,_tw2=52,_vw2=53,_xw2=54,_zw2=55,_Bw2=56,_Dw2=57,_9x2=58,_ax2=59,_KH=10,_Gw2=11,_Iw2=12,_Kw2=13,_Mw2=14,_Ow2=15,_Qw2=16,_Sw2=17,_Uw2=18,_Ww2=19,_Yw2=20,__w2=21,_1x2=22,_3x2=23,_5x2=24,_7x2=25,_bx2=60,_dx2=61,_fx2=62,_hx2=63,_Pz2=64,_Qz2=65,_jx2=66,
_lx2=68,_nx2=70,_px2=71,_rx2=72,_sx2=74,_ux2=75,_vx2=76,_Rz2=_Cx2|0,_Sz2=_Cx2|1,_Tz2=_Cx2|1,_Uz2=_Cx2|8,_Vz2=_Cx2|9,_Wz2=_Cx2|13,_Xz2=_Cx2|16,_Yz2=_Cx2|17,_Zz2=_Cx2|18,__z2=_Cx2|19,_0A2=_Cx2|27,_1A2=_Cx2|32,_2A2=_Cx2|33,_3A2=_Cx2|34,_4A2=_Cx2|35,_5A2=_Cx2|36,_6A2=_Cx2|37,_7A2=_Cx2|38,_8A2=_Cx2|39,_9A2=_Cx2|40,_aA2=_Cx2|45,_bA2=_Cx2|46,_cA2=_Cx2|48,_dA2=_Cx2|49,_eA2=_Cx2|50,_fA2=_Cx2|51,_gA2=_Cx2|52,_hA2=_Cx2|53,_iA2=_Cx2|54,_jA2=_Cx2|55,_kA2=_Cx2|56,_lA2=_Cx2|57,_mA2=_Cx2|65,_nA2=_Cx2|66,_oA2=_Cx2|67,
_pA2=_Cx2|68,_qA2=_Cx2|69,_rA2=_Cx2|70,_sA2=_Cx2|71,_tA2=_Cx2|72,_uA2=_Cx2|73,_vA2=_Cx2|74,_wA2=_Cx2|75,_xA2=_Cx2|76,_yA2=_Cx2|77,_zA2=_Cx2|78,_AA2=_Cx2|79,_BA2=_Cx2|80,_CA2=_Cx2|81,_DA2=_Cx2|82,_EA2=_Cx2|83,_FA2=_Cx2|84,_GA2=_Cx2|85,_HA2=_Cx2|86,_IA2=_Cx2|87,_JA2=_Cx2|88,_KA2=_Cx2|89,_LA2=_Cx2|90,_MA2=_Cx2|112,_NA2=_Cx2|113,_OA2=_Cx2|114,_PA2=_Cx2|115,_QA2=_Cx2|116,_RA2=_Cx2|117,_SA2=_Cx2|118,_TA2=_Cx2|119,_UA2=_Cx2|120,_VA2=_Cx2|121,_WA2=_Cx2|122,_XA2=_Cx2|123,_YA2=_Cx2|145,_ZA2=_Cx2|186,__A2=_Cx2|187,
_0B2=_Cx2|188,_1B2=_Cx2|189,_2B2=_Cx2|190,_3B2=_Cx2|191,_4B2=_Cx2|192,_5B2=_Cx2|219,_6B2=_Cx2|220,_7B2=_Cx2|221,_8B2=_Cx2|222,_9B2=_Cx2|223,_aB2=_Cx2|144,_bB2=_Cx2|96,_cB2=_Cx2|97,_dB2=_Cx2|98,_eB2=_Cx2|99,_fB2=_Cx2|100,_gB2=_Cx2|101,_hB2=_Cx2|102,_iB2=_Cx2|103,_jB2=_Cx2|104,_kB2=_Cx2|105,_lB2=_Cx2|106,_mB2=_Cx2|107,_nB2=_Cx2|109,_oB2=_Cx2|110,_pB2=_Cx2|111,_qB2=_Ax2|0,_rB2=_Ax2|1,_sB2=_Ax2|1,_tB2=_Ax2|8,_uB2=_Ax2|9,_vB2=_Ax2|13,_wB2=_Ax2|16,_xB2=_Ax2|17,_yB2=_Ax2|18,_zB2=_Ax2|19,_AB2=_Ax2|27,_BB2=_Ax2|32,
_CB2=_Ax2|33,_DB2=_Ax2|34,_EB2=_Ax2|35,_FB2=_Ax2|36,_GB2=_Ax2|37,_HB2=_Ax2|38,_IB2=_Ax2|39,_JB2=_Ax2|40,_KB2=_Ax2|45,_LB2=_Ax2|46,_MB2=_Ax2|48,_NB2=_Ax2|49,_OB2=_Ax2|50,_PB2=_Ax2|51,_QB2=_Ax2|52,_RB2=_Ax2|53,_SB2=_Ax2|54,_TB2=_Ax2|55,_UB2=_Ax2|56,_VB2=_Ax2|57,_WB2=_Ax2|65,_XB2=_Ax2|66,_YB2=_Ax2|67,_ZB2=_Ax2|68,__B2=_Ax2|69,_0C2=_Ax2|70,_1C2=_Ax2|71,_2C2=_Ax2|72,_3C2=_Ax2|73,_4C2=_Ax2|74,_5C2=_Ax2|75,_6C2=_Ax2|76,_7C2=_Ax2|77,_8C2=_Ax2|78,_9C2=_Ax2|79,_aC2=_Ax2|80,_bC2=_Ax2|81,_cC2=_Ax2|82,_dC2=_Ax2|83,
_eC2=_Ax2|84,_fC2=_Ax2|85,_gC2=_Ax2|86,_hC2=_Ax2|87,_iC2=_Ax2|88,_jC2=_Ax2|89,_kC2=_Ax2|90,_lC2=_Ax2|112,_mC2=_Ax2|113,_nC2=_Ax2|114,_oC2=_Ax2|115,_pC2=_Ax2|116,_qC2=_Ax2|117,_rC2=_Ax2|118,_sC2=_Ax2|119,_tC2=_Ax2|120,_uC2=_Ax2|121,_vC2=_Ax2|122,_wC2=_Ax2|123,_xC2=_Ax2|145,_yC2=_Ax2|186,_zC2=_Ax2|187,_AC2=_Ax2|188,_BC2=_Ax2|189,_CC2=_Ax2|190,_DC2=_Ax2|191,_EC2=_Ax2|192,_FC2=_Ax2|219,_GC2=_Ax2|220,_HC2=_Ax2|221,_IC2=_Ax2|222,_JC2=_Ax2|223,_KC2=_Ax2|144,_LC2=_Ax2|96,_MC2=_Ax2|97,_NC2=_Ax2|98,_OC2=_Ax2|99,
_PC2=_Ax2|100,_QC2=_Ax2|101,_RC2=_Ax2|102,_SC2=_Ax2|103,_TC2=_Ax2|104,_UC2=_Ax2|105,_VC2=_Ax2|106,_WC2=_Ax2|107,_XC2=_Ax2|109,_YC2=_Ax2|110,_ZC2=_Ax2|111,__C2=_Ex2|0,_0D2=_Ex2|1,_1D2=_Ex2|1,_2D2=_Ex2|8,_3D2=_Ex2|9,_4D2=_Ex2|13,_5D2=_Ex2|16,_6D2=_Ex2|17,_7D2=_Ex2|18,_8D2=_Ex2|19,_9D2=_Ex2|27,_aD2=_Ex2|32,_bD2=_Ex2|33,_cD2=_Ex2|34,_dD2=_Ex2|35,_eD2=_Ex2|36,_fD2=_Ex2|37,_gD2=_Ex2|38,_hD2=_Ex2|39,_iD2=_Ex2|40,_jD2=_Ex2|45,_kD2=_Ex2|46,_lD2=_Ex2|48,_mD2=_Ex2|49,_nD2=_Ex2|50,_oD2=_Ex2|51,_pD2=_Ex2|52,
_qD2=_Ex2|53,_rD2=_Ex2|54,_sD2=_Ex2|55,_tD2=_Ex2|56,_uD2=_Ex2|57,_vD2=_Ex2|65,_wD2=_Ex2|66,_xD2=_Ex2|67,_yD2=_Ex2|68,_zD2=_Ex2|69,_AD2=_Ex2|70,_BD2=_Ex2|71,_CD2=_Ex2|72,_DD2=_Ex2|73,_ED2=_Ex2|74,_FD2=_Ex2|75,_GD2=_Ex2|76,_HD2=_Ex2|77,_ID2=_Ex2|78,_JD2=_Ex2|79,_KD2=_Ex2|80,_LD2=_Ex2|81,_MD2=_Ex2|82,_ND2=_Ex2|83,_OD2=_Ex2|84,_PD2=_Ex2|85,_QD2=_Ex2|86,_RD2=_Ex2|87,_SD2=_Ex2|88,_TD2=_Ex2|89,_UD2=_Ex2|90,_VD2=_Ex2|112,_WD2=_Ex2|113,_XD2=_Ex2|114,_YD2=_Ex2|115,_ZD2=_Ex2|116,__D2=_Ex2|117,_0E2=_Ex2|118,
_1E2=_Ex2|119,_2E2=_Ex2|120,_3E2=_Ex2|121,_4E2=_Ex2|122,_5E2=_Ex2|123,_6E2=_Ex2|145,_7E2=_Ex2|186,_8E2=_Ex2|187,_9E2=_Ex2|188,_aE2=_Ex2|189,_bE2=_Ex2|190,_cE2=_Ex2|191,_dE2=_Ex2|192,_eE2=_Ex2|219,_fE2=_Ex2|220,_gE2=_Ex2|221,_hE2=_Ex2|222,_iE2=_Ex2|223,_jE2=_Ex2|144,_kE2=_Ex2|96,_lE2=_Ex2|97,_mE2=_Ex2|98,_nE2=_Ex2|99,_oE2=_Ex2|100,_pE2=_Ex2|101,_qE2=_Ex2|102,_rE2=_Ex2|103,_sE2=_Ex2|104,_tE2=_Ex2|105,_uE2=_Ex2|106,_vE2=_Ex2|107,_wE2=_Ex2|109,_xE2=_Ex2|110,_yE2=_Ex2|111,_zE2=0,_AE2=1,_BE2=2,_CE2=[],
_Du2=12,_DE2=8,_EE2=8,_FE2=8,_aH=10,_io=0x000000,_lo=0x000080,_mo=0x008000,_no=0x008080,_oo=0x800000,_po=0x800080,_qo=0x808000,_jo=0x808080,_ko=0xC0C0C0,_ro=0x0000FF,_so=0x00FF00,_to=0x00FFFF,_uo=0xFF0000,_vo=0xFF00FF,_wo=0xFFFF00,_GE2=0xC0C0C0,_HE2=0x808080,_Fn=0xFFFFFF,_IE2=0xC0DCC0,_JE2=0xF0CAA6,_KE2=0xF0FBFF,_LE2=0xA4A0A0,_ME2=-1,_B71=0,_rg=1,global=null,_H3=null,_xn=null,_vg=null,_fR=null,g_pBuiltIn=null,_xD=null,_NE2=null,_bn=null,_WD=null,_Wq=null,_16=null,_OE2=null,_jO=null,_WU=null,_qs2=null,
_R72=null,_wW=null,_AH=null,_rr=null,_rR=null,_kf1=null,_Cf=null,_PE2=null,_S3=null,_QE2=null,_4g=null,_RE2=null,_SE2=null,_TE2=null,_UE2=null,_tj=null,_vl=null,_XM=null,_uk=null,_Jl=null,_0X=null,_s7=null,_Il=null,_Zr=null,_VE2=null,_hj1=null,_cH=null,_bH=null,_WE2=null,_dH=null,_XE2=null,_YE2=null,_ZE2=null,__E2=null,_QH=null,_RH=null,_W8=null,_iF=null,_8g=null,_TL=null,_6M=null,_0F2=null,_1F2=null,_2F2=null,_3F2=null,_4F2=null,_js2=null,_oe1=null,_5F2=null,_Zd1=null,_Ud1=-1,_Vd1=[],g_gmlConst=null,
_z61=null;_e61=null,g_WebAudioContext=null,_IE=null,_hE=null,_6F2=null,_Si1=null,_7F2=null,g_GameMakerHTML5Dir=undefined,_8F2=undefined,_9F2=undefined,gml_Script_gmcallback_html5_set_load_location=undefined,_aF2="",g_yyPrePostObject__=undefined,_qg=_B71,_bF2=true,_sL=true,_nF=false,_At2=false,_Fh1=false,_971=false,_871=false,_d91=false,_tD=false,_cF2=false,_dF2=false,_eF2=false,_fF2=false,_qH=false,_gF2=false,_jE=false,_hF2=false,_iF2=false,_jF2=false,_kF2=0,_Q31=0,_lF2=0,_mF2=0,_nF2=0,_oF2=0,_6i1=0,
_7i1=0,_9i1=0,_ai1=0,_8i1=0,_bi1=0,_kj=0,_QN=0,_pF2=0,_Kc=0,_Lc=0,_fG=0,_kK=0,_jK=0,_KK=0,_MK=0,_ci1=0,_di1=0,_qF2=0,_rF2=0,_sF2=0,_tF2=0,_uF2=0,_vF2=0,_wF2=0,_xF2=0,_9E=0,_yF2=0,_NH=0,_OH=0,_PH=0,_nG=0,_oG=0,_sM=0,_zF2=0,_AF2=0,_BF2=0,_CF2=0,_1i1=0,_DF2=0,_rz=0,_3X=false,_0i1=0,_bm=0,_EF2=0,_KJ=0,_HJ=0,_MJ=false,_NJ=-1,_OJ=-1,_LJ=1,_IJ=1,_2M=true,_WL=true,__L=new _Ey2(),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,_Uh1=0,_Vh1=0,_Wh1=0,_Xh1=0,_Yh1=0,_Zh1=0,cr_appstart=0,__h1=0,cr_handpoint=0,cr_size_all=0,c_black=0,c_white=0,c_red=0,c_green=0,c_blue=0,_FF2=0,_GF2=0,_HF2=0,_IF2=0,_JF2=0,_U3=0,_KF2=[],_eE='canvas',_LF2='0123456789ABCDEF';function _MF2(){var debug=false;if((_xD.Options)&&(_xD.Options.debugMode)&&(_xD.Options.debugMode===true)){debug=true;}}function _NF2(){_KF2=[];var _OF2=0xEDB88320;for(var i=0;i<256;++i){var _PF2=~~i;for(var _17=8;_17>0;--_17){if((_PF2&1)!==0){_PF2=((_PF2>>1)&0x7fffffff)^_OF2;
}else {_PF2>>=1;_PF2&=0x7fffffff;}}_KF2[i]=_PF2;}}function _QF2(_RF2){var _SF2=0xffffffff;for(var i=0;i<_RF2.length;i++){_SF2=((_SF2>>8)&0x00ffffff)^_KF2[(_SF2^_RF2[i])&0xff];}return _SF2;}function _TF2(){_NF2();_UF2();if(_qg!=_ME2){try{var _VF2=new Audio();_VF2.controls=false;_971=!!_VF2.canPlayType&&_VF2.canPlayType('audio/mpeg')!=="";_871=!!_VF2.canPlayType&&_VF2.canPlayType('audio/ogg; codecs="vorbis"')!=="";_VF2=null;}catch(e){_971=false;_871=false;}}if(_971)debug("Browser CAN play MP3");if(_871)debug("Browser CAN play OGG");
_MF2();_6F2=_kF2=0;_S3=null;_At2=false;_Q31=-1;_1F2=new _WF2();_2F2=new _WF2();_QE2=new _WF2();_QE2._C31=0;_7F2=new _WF2();_3F2=new _WF2();_6M=new _OE();_TL=new _OE();_0F2=new _OE();_QE2.visible=true;_7F2.visible=true;_4g=[];_4g[0]=_QE2;_XF2=[];_SE2=[];_TE2=[];_UE2=[];_tj=new _801(5);_vl=new _801(5);_XM=new _801(5);_uk=new _801(5);_Jl=new _801(5);_0X=new _801(5);_s7=new _801(5);_Zr=new _801(5);_Il=new _801(5);_VE2=new _3s();_iF=new _801(5);_8g=new _OE();_js2=new _PN(0,0,0,0,false,true);_js2._YF2="DUMMY INSTANCE";_CE2[0]=-1;
_CE2[1]=0;_CE2[2]=0x00000000;_CE2[3]=1;_CE2[4]=0;_CE2[5]=0x00000000;_CE2[6]=0;_CE2[7]=-1;_CE2[8]=0x00000000;_CE2[9]=0;_CE2[10]=1;_CE2[11]=0x00000000;_CE2[12]=0;_CE2[13]=0;_CE2[14]=0xffffffff;_eE="canvas";_W8="html5game/";if(typeof(g_GameMakerHTML5Dir)!="undefined"){_W8=g_GameMakerHTML5Dir;}else {if(_xD.Options&&_xD.Options.GameDir){_W8=_xD.Options.GameDir+'/';}}_hj1=[];_cH=[];_bH=[];_WE2="Hiscore Table";_dH="<Nobody>";_XE2="Press <ESC> to Continue";_tF2=0x000000;_xF2=-1;_uF2=0xffff00;_vF2=0xffffff;
_YE2="verdana";_wF2=16;_ZE2="";_bF2=true;highscore_clear();_KJ=-1;_HJ=-1;_Zr._ZF2();_kj=0.0000001;_CF2=512;_IE=[];_dF2=_iF2=false;_sL=true;_jE=false;_Zd1=_yF2=null;_NH=_OH=-1;_sM=0;_pF2=1.0;_lF2=0;_mF2=-1;_nF2=0;_9E=0;_oF2=0;_sF2=10000000;_QN=100000;_Kc=1.0;if(_U3){draw_set_colour(_xD.Options.DrawColour);}else {_fG=0x00000000;_Lc=0x000000;_kK=_lK(_Lc);_jK=_9s(_Lc,_Kc);}c_black=_lK(0x000000);c_white=_lK(0xffffff);c_red=_lK(0x0000ff);c_green=_lK(0x00ff00);c_blue=_lK(0xff0000);_FF2=_lK(0xff000000);_GF2=_lK(0xffffffff);
_HF2=_lK(0xff0000ff);_IF2=_lK(0xff00ff00);_JF2=_lK(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;_Uh1=-13;_Vh1=-14;_Wh1=-15;_Xh1=-16;_Yh1=-17;_Zh1=-18;cr_appstart=-19;__h1=-20;cr_handpoint=-21;cr_size_all=-22;_bm=-1;_0i1=_xD.Options.showCursor?cr_default:cr_none;_EF2=0;__F2();if(_xD.Options&&_xD.Options.showCursor===false){canvas.style.cursor="none";}_fF2=false;if(_xD.Options&&_xD.Options.CreateEventOrder===true){
_fF2=true;}if(typeof gmlGlobalInit=='function'){gmlGlobalInit();}}function _0G2(_1G2){return((_1G2*Math.PI)/180.0);}function _2G2(_Q5,_R5){if(_Q5===0)return 0;var _Y6=((_Q5*0x1000000)%(_R5*0x1000000));_Y6=_Y6/0x1000000;return _Y6;}function _Kz(_Q5){return _Q5*_Q5;}function _lK(_0d){var _L4="rgb("+((_0d>>16)&0xff).toString()+","+((_0d>>8)&0xff).toString()+","+(_0d&0xff).toString()+")";return _L4;}function _9s(_0d,_A9){var _L4="rgba("+((_0d>>16)&0xff).toString()+","+((_0d>>8)&0xff).toString()+","+(_0d&0xff).toString()+","+((_A9*255.0)&0xff).toString()+")";
return _L4;}function _3G2(_1G2){return __6*_1G2/180.0;}function _Nc(_0d){return(((_0d&0xff)<<16)|(_0d&0xff00)|((_0d&0xff0000)>>16));}function _Kq(_4G2){var _5G2=_vJ();while(_4G2>0){var _6G2=_vJ();_4G2-=(_6G2-_5G2);_5G2=_6G2;}}function _vt(_tt,_Sk,_ut,_U01){var _Kk,_Gt,_Tm,_D4;var _G4=arguments;var _zk=arguments.length;var _7G2=_G4[_zk-1];_Sk=~~_Sk;if(_Sk==_wt)return _U01;if(_Sk==_cO){_Kk=_xn._BX();for(_Tm=0;_Tm<_Kk.length;_Tm++){_Gt=_Kk[_Tm];if((_ut)&&(_Gt==_tt))continue;if(_Gt.marked)continue;if(!_Gt.active)continue;
_D4=_7G2(_Gt);if(_D4>0)return _D4;}}else if(_Sk<100000){var _IF=_H3._26(_Sk);if(_IF===null){return _U01;}_Kk=_IF._W01();for(_Tm=0;_Tm<_Kk.length;_Tm++){_Gt=_Kk[_Tm];if((_ut)&&(_tt==_Gt))continue;if(_Gt.marked)continue;if(!_Gt.active)continue;_D4=_7G2(_Gt);if(_D4>0)return _D4;}}else {_Gt=_xn._8G2(_Sk);if((_ut)&&(_tt==_Gt)){return _U01;}if(_Gt.marked){return _U01;}if(!_Gt.active){return _U01;}return _7G2(_Gt);}return _U01;}function _AN(_tt,_Sk,_ut,_U01){var _Kk,_Gt,_Tm,_tm;var _G4=arguments;var _zk=arguments.length;
var _7G2=_G4[_zk-1];var _Jt=10000000000;var id=-1;_Sk=~~_Sk;if(_Sk==_wt)return _U01;if(_Sk==_cO){_Kk=_xn._BX();for(_Tm=0;_Tm<_Kk.length;_Tm++){_Gt=_Kk[_Tm];if((_ut)&&(_Gt==_tt))continue;if(_Gt.marked)continue;if(!_Gt.active)continue;_tm=_7G2(_Gt);if(_tm<_Jt){_Jt=_tm;}}if(_Jt!=10000000000)return _Jt;}else if(_Sk<100000){var _IF=_H3._26(_Sk);if(_IF===null){return _U01;}_Kk=_IF._W01();for(_Tm=0;_Tm<_Kk.length;_Tm++){_Gt=_Kk[_Tm];if((_ut)&&(_tt==_Gt))continue;if(_Gt.marked)continue;if(!_Gt.active)continue;_tm=_7G2(_Gt);
if(_tm<_Jt){_Jt=_tm;}}if(_Jt!=10000000000)return _Jt;}else {_Gt=_xn._8G2(_Sk);if((_ut)&&(_tt==_Gt)){return _U01;}if(_Gt.marked){return _U01;}if(!_Gt.active)return _U01;return _7G2(_Gt);}return _U01;}/*@constructor */function _9G2(){/*@this {BrowserDetect} */this.init=function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this._IM=this._aG2();this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this._bG2=this._cG2(this.browser);
this.os_version=this._dG2();},/*@this {BrowserDetect} */this._aG2=function(){var _eG2=navigator.userAgent.toString().toLowerCase();if(_eG2.indexOf("trident/5")>-1){return 9.0;}else if(_eG2.indexOf("trident/6")>-1){return 10.0;}else if(_eG2.indexOf("trident/7")>-1){return 11.0;}return -1;},this._cG2=function(_fG2){const _TQ1=this.searchString(this.dataOS)||"an unknown OS";if(_fG2==="Safari"&&_TQ1==="Mac"&&navigator["maxTouchPoints"]&&navigator["maxTouchPoints"]>1)return "iPad";return _TQ1;},/*@this {BrowserDetect} */this._dG2=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 _hz2;}},/*@this {BrowserDetect} */this.searchString=function(data){for(var i=0;i<data.length;i++){var _gG2=data[i].string;
var _hG2=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(_gG2){if(_gG2.indexOf(data[i]._iG2)!=-1){return data[i].identity;}}else if(_hG2){return data[i].identity;}}},/*@this {BrowserDetect} */this.searchVersion=function(_gG2){var index=_gG2.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(_gG2.substring(index+this.versionSearchString.length+1));},this.dataBrowser=[{string:navigator.userAgent,_iG2:"Tizen",identity:"Tizen"},{string:navigator.userAgent,
_iG2:"Edge",identity:"Edge"},{string:navigator.userAgent,_iG2:"OPR",versionSearch:"OPR",identity:"Opera"},{string:navigator.userAgent,_iG2:"Chrome",identity:"Chrome"},{string:navigator.userAgent,_iG2:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,_iG2:"Apple",identity:"Safari",versionSearch:"Version"},{string:navigator.userAgent,_iG2:"KHTML",identity:"KHTML",versionSearch:"Mozilla/"},{string:navigator.vendor,_iG2:"iCab",identity:"iCab"},{string:navigator.vendor,_iG2:"KDE",
identity:"Konqueror"},{string:navigator.userAgent,_iG2:"Firefox",identity:"Firefox"},{string:navigator.userAgent,_iG2:"IceWeasel",identity:"IceWeasel"},{string:navigator.vendor,_iG2:"Camino",identity:"Camino"},{string:navigator.userAgent,_iG2:"Netscape",identity:"Netscape"},{string:navigator.userAgent,_iG2:"IEMobile",identity:"IEMobile"},{string:navigator.userAgent,_iG2:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,_iG2:"Trident/",identity:"Explorer",versionSearch:"rv"}
,{string:navigator.userAgent,_iG2:"Gecko",identity:"Mozilla",versionSearch:"rv"}],this.dataOS=[{string:navigator.userAgent,_iG2:"Phone 8",identity:"WindowsPhone8"},{string:navigator.platform,_iG2:"Win",identity:"Windows"},{string:navigator.platform,_iG2:"Mac",identity:"Mac"},{string:navigator.userAgent,_iG2:"iPhone",identity:"iPhone"},{string:navigator.userAgent,_iG2:"iPod",identity:"iPhone"},{string:navigator.userAgent,_iG2:"iPad",identity:"iPad"},{string:navigator.userAgent,_iG2:"Android",identity:"Android"}
,{string:navigator.userAgent,_iG2:"Tizen",identity:"Tizen"},{string:navigator.platform,_iG2:"Linux",identity:"Linux"}]};var _HM=new _9G2();function _UF2(){_HM.init();if(_HM._bG2=="Windows"){_k61=_7z2;}else if(_HM._bG2=="Mac"){_k61=_9z2;}else if(_HM._bG2=="iPhone"){_k61=_l61;}else if(_HM._bG2=="iPad"){_k61=_l61;}else if(_HM._bG2=="Android"){_k61=_bz2;}else if(_HM._bG2=="Linux"){_k61=_dz2;}else if(_HM._bG2=="Tizen"){_k61=_fz2;}else if(_HM._bG2=="WindowsPhone8"){_k61=_ez2;}else {_k61=_6z2;}if(_HM._bG2!==""){debug(_HM._bG2+" Detected("+_k61+")");
}_Yi1=_HM.os_version;_FM=_Xy2;_Vi1=_Sy2;if(_HM.browser=="Explorer"){debug("Internet Explorer detected");_FM=_GM;}else if(_HM.browser=="Explorer"){debug("Internet Explorer detected");_FM=_GM;}else if(_HM.browser=="Edge"){debug("Microsoft Edge detected");_FM=_5z2;}else if(_HM.browser=="IEMobile"){debug("IE Mobile detected");_FM=_4z2;}else if(_HM.browser=="Firefox"){debug("Firefox detected");_FM=_Yy2;}else if(_HM.browser=="Chrome"){debug("Chrome detected");_FM=_Zy2;}else if(_HM.browser=="Safari"){if(_k61==_l61){
_FM=_m61;_Vi1=_Ty2;if(_HM._bG2=="iPad")_Vi1=_Vy2;debug("Safari mobile detected");}else {debug("Safari detected");_FM=__y2;}}else if(_HM.browser=="Opera"){debug("BrowserDetect: "+_9G2._bG2);debug("Opera detected");_FM=_0z2;}else if(_HM.browser=="KHTML"){debug("Default Android browser detected");debug("OS: "+_Yi1);_FM=_1z2;}else if(_HM.browser=="Tizen"){_FM=_Wy2;}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==_xD.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. "+chr(13)+chr(13)+"Please check the FAQ for more details. "+chr(13)+chr(13)+"https://help.yoyogames.com/hc/en-us/articles/360011372851");
}}}function _jG2(){_4a.fillText("userAgent: "+navigator.userAgent,10,10);_4a.fillText("vendor: "+navigator.vendor,10,30);_4a.fillText("platform: "+navigator.platform,10,50);}var _kG2=0;var _b91=0;var _lG2=0;var _mG2=0;var _nG2=null;var _oG2=null;var _pG2=0,_qG2=1,_rG2=2,_sG2=3;function _tG2(){global=new _Py2();g_pBuiltIn=new _uG2();_vg=new _vG2();_fe=new _Le();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;
_wG2(canvas);_h61();_xn=new _xG2();_H3=new _yG2();_fR=new _zG2();_16=new _AG2();_OE2=new _BG2();_Wq=new _CG2();_bn=new _DG2();_WD=new _EG2();_R72=[];_wW=new _FG2();_AH=new _GG2();_rr=new _HG2();_rR=new _IG2();_kf1=new _De1();_Cf=new _JG2();_jO=new _uQ();_WU=new _KG2();_qs2=new _mq2();_TF2();if(_U3){_qs2._yr2();_LG2();}}function _MG2(_ud1){switch(_ud1){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 _NG2(_ud1){
switch(_ud1){case _pG2:return "NETWORK_EMPTY";case _qG2:return "NETWORK_IDLE";case _rG2:return "NETWORK_LOADING";case _sG2:return "NETWORK_NO_SOURCE";}return "Unknown Error";}/*@this {XMLHttpRequest} */function _OG2(_D3){debug("ImageLoaded: "+this.src);_b91++;}/*@this {XMLHttpRequest} */function _PG2(_D3){debug("ImageError: "+this.src);_b91++;}/*@this {XMLHttpRequest} */function _QG2(_D3){_mG2++;debug("ExtensionLoaded: ");}/*@this {XMLHttpRequest} */function _RG2(_D3){_mG2++;debug("ExtensionError: ");}function ClearEventListeners(_9n){
_9n.removeEventListener('canplaythrough',_SG2,false);_9n.removeEventListener('error',_TG2,false);_9n.removeEventListener("loadstart",_UG2,false);_9n.removeEventListener("suspend",_VG2,false);_9n.removeEventListener("stalled",_WG2,false);_9n.removeEventListener("stall",_WG2,false);}/*@this {XMLHttpRequest} */function _SG2(_D3){this.completed=true;if(_oG2[this.URL]!==null){_oG2[this.URL]=null;_b91++;}ClearEventListeners(this);debug("SoundLoaded: "+this.URL);}/*@this {XMLHttpRequest} */function _TG2(_D3){
debug("SoundError: "+this.URL+" NetworkError: "+_MG2(this.error["code"]));this.completed=false;if(_oG2[this.URL]!==null){_oG2[this.URL]=null;_b91++;}ClearEventListeners(this);}/*@this {XMLHttpRequest} */function _UG2(_D3){this._XG2=true;}/*@this {XMLHttpRequest} */function _VG2(_D3){debug("SoundSuspended: "+this.URL);this.completed=true;if(_oG2[this.URL]!==null){_oG2[this.URL]=null;_b91++;}ClearEventListeners(this);}function _WG2(_D3){}function _YG2(_el){debug("Loading: "+_el);var index=_V8(_el);var __4=new _3s();
__4.x=0;__4.y=0;__4.w=63;__4.h=63;__4.XOffset=-32;__4.YOffset=-32;__4.CropWidth=63;__4.CropHeight=63;__4.ow=__4.w;__4.oh=__4.h;__4.tp=index;__4._95=_35[index];__4._D8=[];__4._F8=32;__4._E8=0;var _ZG2=_SE2.length;_SE2[_ZG2]=__4;return _ZG2;}function __G2(_gM){debug("Loading: "+_W8+_gM);var e=window.document.createElement('script');e.setAttribute('src',_W8+_gM);e.setAttribute('type',"text/javascript");e.onload=_QG2;e.onerror=_RG2;window.document.body.appendChild(e);_lG2++;}function _0H2(_1H2){if(_1H2.Extensions!==undefined){
for(var i=0;i<_1H2.Extensions.length;i++){var _2H2=_1H2.Extensions[i];if(_2H2.jsFiles){for(var _3H2=0;_3H2<_2H2.jsFiles.length;_3H2++){__G2(_2H2.jsFiles[_3H2]);}}}}}function _4H2(_1H2){_oG2=[];_lG2=0;_mG2=0;_0H2(_1H2);}function _5H2(_el){_kG2++;var _m91=new XMLHttpRequest();_m91.open('GET',_671(_el),true);_m91.send();_m91.onload=function(_6H2){_b91++;_16._7H2(_m91.responseText);};_m91.onerror=function(_6H2){_b91++;};}function _8H2(_el){_kG2++;var _m91=new XMLHttpRequest();_m91.open('GET',_671(_el),true);_m91.responseType='arraybuffer';
_m91.send();_m91.onload=function(_6H2){_b91++;_16._9H2(_m91.response||_m91.responseText);};_m91.onerror=function(_6H2){_b91++;};}var _CG;function _aH2(self,other,_bH2){return _bH2;};var _cH2=[];function _dH2(_1H2){var _Y6,id;if(_1H2._2F)document.title=_1H2._2F;if(typeof(gml_Script_gmcallback_html5_set_load_location)!='undefined'){_CG=gml_Script_gmcallback_html5_set_load_location;}else _CG=_aH2;_nG2=document.getElementById('GM4HTML5_loadingscreen');_4H2(_1H2);_aF2=_eH2;_b91=0;for(var index=0;index<_1H2.Textures.length;
index++){_kG2++;debug("Loading: "+_W8+_1H2.Textures[index]);_Y6=_V8(_W8+_1H2.Textures[index]);_35[_Y6].onload=_OG2;_35[_Y6].onerror=_PG2;_35[_Y6].URL=_1H2.Textures[index];_35[_Y6]._AU1=_1H2.TexturesBlocks[index].MipsToGenerate;_cH2[index]=_Y6;}if((_1H2.Swfs!==null)&&(_1H2.Swfs!==undefined)){_8H2(_1H2.Swfs);}if((_1H2.Skel!==null)&&(_1H2.Skel!==undefined)){_5H2(_1H2.Skel);}if(true==_xD.Options.UseParticles){for(var i=2;i<16;i++){_kG2++;var _ih=_YG2(_W8+"particles/IDR_GIF"+i+".png");_Y6=_SE2[_ih].tp;
_35[_Y6].onload=_OG2;_35[_Y6].onerror=_PG2;_35[_Y6].URL="particles/IDR_GIF"+i+".png";}}if(_qg==_rg){for(index=0;index<_1H2.Sounds.length;index++){if(_1H2.Sounds[index]!==null){var groupId=0;if(_1H2.Sounds[index].groupId!==undefined){groupId=_1H2.Sounds[index].groupId;}if(groupId==0){_kG2++;debug("Loading: "+_W8+_1H2.Sounds[index].origName);if(_1H2.Sounds[index].kind===0){id=_n91(_W8+_1H2.Sounds[index].origName,index,_1H2.Sounds[index].pName,_1H2.Sounds[index].extension);if(id===undefined){_kG2--;
}}else if((_1H2.Sounds[index].kind==3)||(_1H2.Sounds[index].kind==1)){_f91(_W8+_1H2.Sounds[index].origName,index,_1H2.Sounds[index].pName,_1H2.Sounds[index].extension);_kG2--;}else {debug("Attempting to load sound with unknown type: "+_1H2.Sounds[index].kind);_kG2--;}}}}}else if(_qg==_B71){var _fH2,_gH2;for(index=0;index<_1H2.Sounds.length;index++){if(_1H2.Sounds[index]!==null){_kG2++;_fH2=_1H2.Sounds[index].pName;_gH2=_r71[_fH2];debug("Loading: "+_W8+_1H2.Sounds[index].origName);id=_4b1(_W8+_1H2.Sounds[index].origName,
_1H2.Sounds[index].pName,_1H2.Sounds[index].extension,_SG2,_TG2);if((id!==undefined)&&(_gH2)&&(_gH2.URL)){_oG2[_gH2.URL]=_gH2;}else {_kG2--;}}}}}function _hH2(){for(var i in _oG2){if(!_oG2.hasOwnProperty(i))continue;var _iH2=_oG2[i];if(_iH2){if((_iH2.networkState!==null&&_iH2.networkState!==undefined)&&(_iH2.readyState!==null&&_iH2.readyState!==undefined)){if((_iH2.networkState==_qG2||_iH2.networkState==_sG2)&&(_iH2._XG2)&&(_iH2.readyState!=4)){if(_iH2.completed!==true){_iH2.completed=false;_b91++;_oG2[i]=null;
ClearEventListeners(_iH2);debug("SoundError: "+_iH2.URL+" NetworkState: "+_NG2(_iH2.networkState));}}}}}}function _jH2(_kH2,_IF){if(_IF._lH2)return;if(_IF._fE!==null){_jH2(_IF._fE._bO,_IF._fE);}for(var _mH2 in _IF._nH2){if(!_IF._nH2.hasOwnProperty(_mH2))continue;if(_R72[_mH2]){if(_R72[_mH2][_kH2]){continue;}}var _Lt=false;var _oH2=_IF;while(_oH2!==null){var id=_oH2._bO;var _pH2=_H3._26(_mH2);while(_pH2!==null){var _qH2=_pH2._bO;if(_R72[_qH2]&&_R72[_qH2][id]){_Lt=true;break;}_pH2=_pH2._fE;}_oH2=_oH2._fE;
}if(!_Lt){if(!_R72[_kH2]){_R72[_kH2]=[];}_R72[_kH2][_mH2]=_mH2;}}_IF._lH2=true;}function _rH2(){var _Kk=_H3._BX();for(var _kH2=0;_kH2<_Kk.length;_kH2++){var _IF=_Kk[_kH2];if(_IF._fE!==null){_jH2(_IF._fE._bO,_IF._fE);}_jH2(_kH2,_IF);}}function _sH2(_1H2){var index,_9V,i;_QN=1000000;g_pBuiltIn.game_id=_1H2.Options.gameId;_1i1=_1H2.Options.ViewColour;_cF2=_1H2.Options.allowFullScreenKey;_Si1=_1H2.Options.Config;g_pBuiltIn.game_save_id=_tH2();g_pBuiltIn.game_display_name=_1H2.Options.DisplayName;g_pBuiltIn.game_project_name=_1H2.Options.ProjectName;
g_pBuiltIn.working_directory=_W8;g_pBuiltIn._uH2=_tH2();if(_s8)g_pBuiltIn.webgl_enabled=true;_4F2=new _vH2(_1H2.Triggers);_AF2=_1H2.Options.md5;var id=0;for(var index=0;index<_1H2.GMObjects.length;index++){var _1J=_1H2.GMObjects[index];if(_1J!==null){var _1F=_wH2(id,_1J);_H3._Df(_1F);}id++;}_H3._xH2();_rH2();_yH2(_1H2.TPageEntries);for(index=0;index<_1H2.Sprites.length;index++){if(_1H2.Sprites[index]===null){_16._wb1(null);}else {var _4u2=_zH2(_1H2.Sprites[index]);_16._wb1(_4u2);}}for(index=0;index<_1H2.Backgrounds.length;
index++){var _1b=_Wq._AH2(_1H2.Backgrounds[index]);var _hs=_Wq._Or(_1b);if(_hs!==null)_hs._js=_BH2;}for(index=0;index<_1H2.Fonts.length;index++){_WD._Df(_1H2.Fonts[index]);}if(_1H2.EmbeddedFonts){for(index=0;index<_1H2.EmbeddedFonts.length;++index){_WD._CH2(_1H2.EmbeddedFonts[index]);}}for(var index=0;index<_1H2.GMRooms.length;index++){var _DH2=_1H2.GMRooms[index];if(_DH2!==null){_9V=new _J31();if(_DH2.LayerCount!=undefined){if(_DH2.LayerCount>0){_jO._SS(_9V,_DH2.layers);}}_9V._x31=_DH2;_fR._Df(_9V);
}else {_kF2++;_fR._Df(null);}}_AF2=_1H2.Options.crc;_fR._EH2(_1H2.RoomOrder);for(i=0;i<_1H2.RoomOrder.length;i++){_9V=_fR._R31(i);_9V._O31=i;}g_pBuiltIn.room_first=_fR._R31(0).id;g_pBuiltIn.room_last=_fR._R31(_fR._T31.length-1).id;_qs2._7r2();for(index=0;index<_1H2.Paths.length;index++){var _vW=_FH2(_1H2.Paths[index]);_wW._Df(_vW);}for(index=0;index<_1H2.Sounds.length;index++){_bn._Df(_1H2.Sounds[index]);}if(_1H2.Timelines!==undefined){for(index=0;index<_1H2.Timelines.length;index++){_AH._Df(_1H2.Timelines[index]);
}}if(_1H2.AnimCurves!==undefined){for(index=0;index<_1H2.AnimCurves.length;index++){_rr._Df(_1H2.AnimCurves[index]);}}if(_1H2.Sequences!==undefined){for(index=0;index<_1H2.Sequences.length;index++){_rR._Df(_1H2.Sequences[index]);}}if(_1H2.FiltersAndEffectDefs!==undefined){for(index=0;index<_1H2.FiltersAndEffectDefs.length;index++){var _tx1=_1H2.FiltersAndEffectDefs[index];_WU._GH2(_tx1.name,_tx1.json);}}if(Tags!==undefined&&IDToTagList!==undefined){_kf1._Je1(Tags,IDToTagList);}if(_1H2.TextureGroupInfo!==undefined){
for(index=0;index<_1H2.TextureGroupInfo.length;index++){var _pc1=_1H2.TextureGroupInfo[index];var _HH2=new _IH2();if(_pc1.pName!==undefined)_HH2.pName=_pc1.pName;if(_pc1.TextureIDs!==undefined){for(var i=0;i<_pc1.TextureIDs.length;i++){_HH2._JH2[i]=_cH2[_pc1.TextureIDs[i]];}}if(_pc1.SpriteIDs!==undefined){for(var i=0;i<_pc1.SpriteIDs.length;i++){_HH2.sprites[i]=_pc1.SpriteIDs[i];}}if(_pc1.SpineSpriteIDs!==undefined){for(var i=0;i<_pc1.SpineSpriteIDs.length;i++){_HH2._KH2[i]=_pc1.SpineSpriteIDs[i];}}if(_pc1.FontIDs!==undefined){
for(var i=0;i<_pc1.FontIDs.length;i++){_HH2._LH2[i]=_pc1.FontIDs[i];}}if(_pc1.TilesetIDs!==undefined){for(var i=0;i<_pc1.TilesetIDs.length;i++){_HH2._MH2[i]=_pc1.TilesetIDs[i];}}_OE2._NH2(_HH2);}}highscore_clear();_7H();if(typeof gmlConst=='function'){g_gmlConst=new gmlConst();}if(typeof gmlInitGlobal=='function'){gmlInitGlobal();}if(_1H2.Extensions!==undefined){for(i=0;i<_1H2.Extensions.length;i++){var _2H2=_1H2.Extensions[i];if(_2H2.init!=undefined){try{var pFunc=eval(_2H2.init);if(pFunc)pFunc();}catch(_ek){
_55("Error calling extension initialisation function: "+_2H2.init+" exception: "+_ek.toString());}}else if(_2H2.initfuncs!=undefined){for(var _17=0;_17<_2H2.initfuncs.length;_17++){try{var pFunc=eval(_2H2.initfuncs[_17]);if(pFunc)pFunc();}catch(_ek){_55("Error calling extension initialisation function: "+_2H2.initfuncs[_17]+" exceptio: "+_ek.toString());}}}}}}function __F2(){try{if(('localStorage' in window)&&(window['localStorage']!==null)){_nF=true;}}catch(e){_nF=false;}return _nF;}function _tH2(){var _OH2="";
if(_xD.Options.DisplayName!==null&&_xD.Options.DisplayName!==undefined){for(var i=0;i<_xD.Options.DisplayName.length;i++){var chr=_xD.Options.DisplayName[i];if((chr>='a'&&chr<='z')||(chr>='A'&&chr<='Z')||(chr>='0'&&chr<='9')||(chr==='_')){_OH2=_OH2+_xD.Options.DisplayName[i];}}}if(_OH2.length===0){_OH2="GameMaker";}return _OH2+"."+g_pBuiltIn.game_id+".";}function _oF(_Mq){return(g_pBuiltIn._uH2+_Mq);}var _vA=0;var _zA=1;var _DA=2;var _PH2=3;var _wA=4;var _qz=5;var _EA=6;var _QH2=7;var _xA=8;var _AA=9;var _FA=10;
var _RH2=11;var _yA=12;var _BA=13;var _GA=14;var _SH2=15;var _TH2=0;var _UH2=1;var _VH2=2;var _WH2=3;var _XH2=4;var _YH2=5;var _ZH2=6;var __H2=7;var _0I2=8;var _1I2=9;var _2I2=10;var _3I2=11;var _4I2=12;var _5I2=13;var _6I2=14;var _7I2=15;/*@constructor
* @param {Object=} _matrix Some value (optional).
*/function _Zy(_aw){this._K6=new Float32Array(16);if(arguments.length>0){var _8I2=_aw._K6||_aw;for(var i=0;i<16;i++){this._K6[i]=_8I2[i];}}else {this._9I2();}}_Zy.prototype.identity=function(_p5){this._K6[1]=this._K6[2]=this._K6[3]=this._K6[4]=this._K6[6]=this._K6[7]=this._K6[8]=this._K6[9]=this._K6[11]=this._K6[12]=this._K6[13]=this._K6[14]=0.0;
this._K6[0]=this._K6[5]=this._K6[10]=this._K6[15]=1.0;};_Zy.prototype._9I2=function(_p5){this._K6[1]=this._K6[2]=this._K6[3]=this._K6[4]=this._K6[6]=this._K6[7]=this._K6[8]=this._K6[9]=this._K6[11]=this._K6[12]=this._K6[13]=this._K6[14]=0.0;this._K6[0]=this._K6[5]=this._K6[10]=this._K6[15]=1.0;};_Zy.prototype._qj=function(_aI2){for(var i=0;i<16;i++){this._K6[i]=_aI2._K6[i];}};_Zy.prototype._lz=function(_bI2,_cI2,_dI2){var _eI2=new _iz(_dI2);var _fI2=new _iz();var _gI2=_cI2._cs2(_bI2);_gI2._Mz();_eI2._Mz();
_fI2._hI2(_eI2,_gI2);_fI2._Mz();_eI2._hI2(_gI2,_fI2);_eI2._Mz();var _Pz=_bI2._iI2(_fI2);var _Qz=_bI2._iI2(_eI2);var _Rz=_bI2._iI2(_gI2);this._K6[_vA]=_fI2._Pz;this._K6[_zA]=_eI2._Pz;this._K6[_DA]=_gI2._Pz;this._K6[_PH2]=0.0;this._K6[_wA]=_fI2._Qz;this._K6[_qz]=_eI2._Qz;this._K6[_EA]=_gI2._Qz;this._K6[_QH2]=0.0;this._K6[_xA]=_fI2._Rz;this._K6[_AA]=_eI2._Rz;this._K6[_FA]=_gI2._Rz;this._K6[_RH2]=0.0;this._K6[_yA]=-_Pz;this._K6[_BA]=-_Qz;this._K6[_GA]=-_Rz;this._K6[_SH2]=1;};_Zy.prototype._pz=function(_jI2,
_kI2,_lI2,_mI2){if((_jI2==0.0)||(_kI2==0.0)||(_lI2==_mI2)){this._9I2();return;}var _G4=_0G2(_jI2);var _nI2=1.0/Math.tan(_G4*0.5);var _iE1=_nI2/_kI2;this._K6[_vA]=_iE1;this._K6[_zA]=this._K6[_DA]=this._K6[_PH2]=0.0;this._K6[_qz]=_nI2;this._K6[_wA]=this._K6[_EA]=this._K6[_QH2]=0.0;this._K6[_xA]=this._K6[_AA]=0.0;this._K6[_RH2]=1.0;this._K6[_FA]=_mI2/(_mI2-_lI2);this._K6[_yA]=this._K6[_BA]=this._K6[_SH2]=0.0;this._K6[_GA]=-_lI2*_mI2/(_mI2-_lI2);};_Zy.prototype._vz=function(_nj,_oj,_lI2,_mI2){if((_nj==0.0)||(_oj==0.0)||(_lI2==_mI2)){
this._9I2();return;}this._K6[_vA]=2*_lI2/_nj;this._K6[_zA]=this._K6[_DA]=this._K6[_PH2]=0.0;this._K6[_qz]=2*_lI2/_oj;this._K6[_wA]=this._K6[_EA]=this._K6[_QH2]=0.0;this._K6[_xA]=this._K6[_AA]=0.0;this._K6[_RH2]=1.0;this._K6[_FA]=_mI2/(_mI2-_lI2);this._K6[_yA]=this._K6[_BA]=this._K6[_SH2]=0.0;this._K6[_GA]=-_lI2*_mI2/(_mI2-_lI2);};_Zy.prototype._uz=function(_nj,_oj,_lI2,_mI2){if((_nj==0.0)||(_oj==0.0)||(_lI2==_mI2)){this._9I2();return;}this._K6[_vA]=2.0/_nj;this._K6[_zA]=this._K6[_DA]=0.0;this._K6[_PH2]=0;
this._K6[_qz]=2.0/_oj;this._K6[_wA]=this._K6[_EA]=0.0;this._K6[_QH2]=0;this._K6[_xA]=this._K6[_AA]=0.0;this._K6[_FA]=1.0/(_mI2-_lI2);this._K6[_RH2]=0;this._K6[_yA]=this._K6[_BA]=0.0;this._K6[_GA]=_lI2/(_lI2-_mI2);this._K6[_SH2]=1.0;};_Zy.prototype.Multiply=function(_oI2,_pI2){this._K6[_vA]=(_oI2._K6[_vA]*_pI2._K6[_vA])+(_oI2._K6[_zA]*_pI2._K6[_wA])+(_oI2._K6[_DA]*_pI2._K6[_xA])+(_oI2._K6[_PH2]*_pI2._K6[_yA]);this._K6[_zA]=(_oI2._K6[_vA]*_pI2._K6[_zA])+(_oI2._K6[_zA]*_pI2._K6[_qz])+(_oI2._K6[_DA]*_pI2._K6[_AA])+(_oI2._K6[_PH2]*_pI2._K6[_BA]);
this._K6[_DA]=(_oI2._K6[_vA]*_pI2._K6[_DA])+(_oI2._K6[_zA]*_pI2._K6[_EA])+(_oI2._K6[_DA]*_pI2._K6[_FA])+(_oI2._K6[_PH2]*_pI2._K6[_GA]);this._K6[_PH2]=(_oI2._K6[_vA]*_pI2._K6[_PH2])+(_oI2._K6[_zA]*_pI2._K6[_QH2])+(_oI2._K6[_DA]*_pI2._K6[_RH2])+(_oI2._K6[_PH2]*_pI2._K6[_SH2]);this._K6[_wA]=(_oI2._K6[_wA]*_pI2._K6[_vA])+(_oI2._K6[_qz]*_pI2._K6[_wA])+(_oI2._K6[_EA]*_pI2._K6[_xA])+(_oI2._K6[_QH2]*_pI2._K6[_yA]);this._K6[_qz]=(_oI2._K6[_wA]*_pI2._K6[_zA])+(_oI2._K6[_qz]*_pI2._K6[_qz])+(_oI2._K6[_EA]*_pI2._K6[_AA])+(_oI2._K6[_QH2]*_pI2._K6[_BA]);
this._K6[_EA]=(_oI2._K6[_wA]*_pI2._K6[_DA])+(_oI2._K6[_qz]*_pI2._K6[_EA])+(_oI2._K6[_EA]*_pI2._K6[_FA])+(_oI2._K6[_QH2]*_pI2._K6[_GA]);this._K6[_QH2]=(_oI2._K6[_wA]*_pI2._K6[_PH2])+(_oI2._K6[_qz]*_pI2._K6[_QH2])+(_oI2._K6[_EA]*_pI2._K6[_RH2])+(_oI2._K6[_QH2]*_pI2._K6[_SH2]);this._K6[_xA]=(_oI2._K6[_xA]*_pI2._K6[_vA])+(_oI2._K6[_AA]*_pI2._K6[_wA])+(_oI2._K6[_FA]*_pI2._K6[_xA])+(_oI2._K6[_RH2]*_pI2._K6[_yA]);this._K6[_AA]=(_oI2._K6[_xA]*_pI2._K6[_zA])+(_oI2._K6[_AA]*_pI2._K6[_qz])+(_oI2._K6[_FA]*_pI2._K6[_AA])+(_oI2._K6[_RH2]*_pI2._K6[_BA]);
this._K6[_FA]=(_oI2._K6[_xA]*_pI2._K6[_DA])+(_oI2._K6[_AA]*_pI2._K6[_EA])+(_oI2._K6[_FA]*_pI2._K6[_FA])+(_oI2._K6[_RH2]*_pI2._K6[_GA]);this._K6[_RH2]=(_oI2._K6[_xA]*_pI2._K6[_PH2])+(_oI2._K6[_AA]*_pI2._K6[_QH2])+(_oI2._K6[_FA]*_pI2._K6[_RH2])+(_oI2._K6[_RH2]*_pI2._K6[_SH2]);this._K6[_yA]=(_oI2._K6[_yA]*_pI2._K6[_vA])+(_oI2._K6[_BA]*_pI2._K6[_wA])+(_oI2._K6[_GA]*_pI2._K6[_xA])+(_oI2._K6[_SH2]*_pI2._K6[_yA]);this._K6[_BA]=(_oI2._K6[_yA]*_pI2._K6[_zA])+(_oI2._K6[_BA]*_pI2._K6[_qz])+(_oI2._K6[_GA]*_pI2._K6[_AA])+(_oI2._K6[_SH2]*_pI2._K6[_BA]);
this._K6[_GA]=(_oI2._K6[_yA]*_pI2._K6[_DA])+(_oI2._K6[_BA]*_pI2._K6[_EA])+(_oI2._K6[_GA]*_pI2._K6[_FA])+(_oI2._K6[_SH2]*_pI2._K6[_GA]);this._K6[_SH2]=(_oI2._K6[_yA]*_pI2._K6[_PH2])+(_oI2._K6[_BA]*_pI2._K6[_QH2])+(_oI2._K6[_GA]*_pI2._K6[_RH2])+(_oI2._K6[_SH2]*_pI2._K6[_SH2]);};_Zy.prototype._pA=function(_U5){this._9I2();var _G4=_0G2(_U5);var _qi=Math.sin(_G4);var c=Math.cos(_G4);this._K6[_vA]=c;this._K6[_zA]=-_qi;this._K6[_wA]=_qi;this._K6[_qz]=c;};_Zy.prototype._oA=function(_U5){this._9I2();var _G4=_0G2(_U5);
var _qi=Math.sin(_G4);var c=Math.cos(_G4);this._K6[_vA]=c;this._K6[_DA]=_qi;this._K6[_xA]=-_qi;this._K6[_FA]=c;};_Zy.prototype._nA=function(_U5){this._9I2();var _G4=_0G2(_U5);var _qi=Math.sin(_G4);var c=Math.cos(_G4);this._K6[_qz]=c;this._K6[_EA]=-_qi;this._K6[_AA]=_qi;this._K6[_FA]=c;};_Zy.prototype._lA=function(_Q5,_R5,_Zc){this._9I2();this._K6[_yA]=_Q5;this._K6[_BA]=_R5;this._K6[_GA]=_Zc;};_Zy.prototype._mA=function(_V4,_W4,_qI2){this._9I2();this._K6[_vA]=_V4;this._K6[_qz]=_W4;this._K6[_FA]=_qI2;}
;_Zy.prototype._rI2=function(){var scaleX=Math.sqrt((this._K6[_vA]*this._K6[_vA])+(this._K6[_wA]*this._K6[_wA])+(this._K6[_xA]*this._K6[_xA]));var scaleY=Math.sqrt((this._K6[_zA]*this._K6[_zA])+(this._K6[_qz]*this._K6[_qz])+(this._K6[_AA]*this._K6[_AA]));var _sI2=Math.sqrt((this._K6[_DA]*this._K6[_DA])+(this._K6[_EA]*this._K6[_EA])+(this._K6[_FA]*this._K6[_FA]));return Math.max(scaleX,scaleY,_sI2);};_Zy.prototype._qA=function(_Pc,_U5){_Pc._Mz();var _G4=_0G2(_U5);var c=Math.cos(_G4);var _qi=Math.sin(_G4);
var _tI2=1.0-c;this._9I2();this._K6[0]=(_tI2*_Pc._Pz*_Pc._Pz+c);this._K6[1]=(_tI2*_Pc._Pz*_Pc._Qz+_qi*_Pc._Rz);this._K6[2]=(_tI2*_Pc._Pz*_Pc._Rz-_qi*_Pc._Qz);this._K6[4]=(_tI2*_Pc._Pz*_Pc._Qz-_qi*_Pc._Rz);this._K6[5]=(_tI2*_Pc._Qz*_Pc._Qz+c);this._K6[6]=(_tI2*_Pc._Qz*_Pc._Rz+_qi*_Pc._Pz);this._K6[8]=(_tI2*_Pc._Pz*_Pc._Rz+_qi*_Pc._Qz);this._K6[9]=(_tI2*_Pc._Qz*_Pc._Rz-_qi*_Pc._Pz);this._K6[10]=(_tI2*_Pc._Rz*_Pc._Rz+c);};_Zy.prototype._uI2=function(_Q5,_R5,_V4,_W4,_X4){this._9I2();var _G4=_0G2(_X4);
var _qi=Math.sin(_G4);var c=Math.cos(_G4);this._K6[_vA]=c;this._K6[_zA]=-_qi;this._K6[_wA]=_qi;this._K6[_qz]=c;this._K6[_vA]*=_V4;this._K6[_qz]*=_W4;this._K6[_yA]=_Q5;this._K6[_BA]=_R5;};_Zy.prototype._YA=function(_Q5,_R5,_Zc,_TA,_UA,_VA,_2o,_3o,_WA){var _vI2=Math.sin(_TA);var _wI2=Math.cos(_TA);var _xI2=Math.sin(_UA);var _yI2=Math.cos(_UA);var _zI2=Math.sin(_VA);var _AI2=Math.cos(_VA);var _BI2=-_zI2*-_vI2;var _CI2=_AI2*-_vI2;this._K6[0]=((_AI2*_yI2)+(_BI2*-_xI2))*_2o;this._K6[4]=(-_zI2*_wI2)*_2o;this._K6[8]=((_AI2*_xI2)+(_BI2*_yI2))*_2o;
this._K6[12]=_Q5;this._K6[1]=((_zI2*_yI2)+(_CI2*-_xI2))*_3o;this._K6[5]=(_AI2*_wI2)*_3o;this._K6[9]=((_zI2*_xI2)+(_CI2*_yI2))*_3o;this._K6[13]=_R5;this._K6[2]=(_wI2*-_xI2)*_WA;this._K6[6]=_vI2*_WA;this._K6[10]=(_wI2*_yI2)*_WA;this._K6[14]=_Zc;this._K6[3]=this._K6[7]=this._K6[11]=0.0;this._K6[15]=1.0;};_Zy.prototype._5M=function(_DI2){var _EI2=_DI2._K6[_TH2]*_DI2._K6[_YH2]-_DI2._K6[_XH2]*_DI2._K6[_UH2];var _0B=_DI2._K6[_TH2]*_DI2._K6[_ZH2]-_DI2._K6[_XH2]*_DI2._K6[_VH2];var _1B=_DI2._K6[_TH2]*_DI2._K6[__H2]-_DI2._K6[_XH2]*_DI2._K6[_WH2];
var _2B=_DI2._K6[_UH2]*_DI2._K6[_ZH2]-_DI2._K6[_YH2]*_DI2._K6[_VH2];var _FI2=_DI2._K6[_UH2]*_DI2._K6[__H2]-_DI2._K6[_YH2]*_DI2._K6[_WH2];var _GI2=_DI2._K6[_VH2]*_DI2._K6[__H2]-_DI2._K6[_ZH2]*_DI2._K6[_WH2];var _HI2=_DI2._K6[_2I2]*_DI2._K6[_7I2]-_DI2._K6[_6I2]*_DI2._K6[_3I2];var _II2=_DI2._K6[_1I2]*_DI2._K6[_7I2]-_DI2._K6[_5I2]*_DI2._K6[_3I2];var _9m1=_DI2._K6[_1I2]*_DI2._K6[_6I2]-_DI2._K6[_5I2]*_DI2._K6[_2I2];var _9h=_DI2._K6[_0I2]*_DI2._K6[_7I2]-_DI2._K6[_4I2]*_DI2._K6[_3I2];var _8h=_DI2._K6[_0I2]*_DI2._K6[_6I2]-_DI2._K6[_4I2]*_DI2._K6[_2I2];
var _tm1=_DI2._K6[_0I2]*_DI2._K6[_5I2]-_DI2._K6[_4I2]*_DI2._K6[_1I2];var _2m1=(_EI2*_HI2-_0B*_II2+_1B*_9m1+_2B*_9h-_FI2*_8h+_GI2*_tm1);if(_2m1!=0){var _JI2=1.0/_2m1;var _F4=new Float32Array(16);_F4[_TH2]=(_DI2._K6[_YH2]*_HI2-_DI2._K6[_ZH2]*_II2+_DI2._K6[__H2]*_9m1)*_JI2;_F4[_UH2]=(-_DI2._K6[_UH2]*_HI2+_DI2._K6[_VH2]*_II2-_DI2._K6[_WH2]*_9m1)*_JI2;_F4[_VH2]=(_DI2._K6[_5I2]*_GI2-_DI2._K6[_6I2]*_FI2+_DI2._K6[_7I2]*_2B)*_JI2;_F4[_WH2]=(-_DI2._K6[_1I2]*_GI2+_DI2._K6[_2I2]*_FI2-_DI2._K6[_3I2]*_2B)*_JI2;_F4[_XH2]=(-_DI2._K6[_XH2]*_HI2+_DI2._K6[_ZH2]*_9h-_DI2._K6[__H2]*_8h)*_JI2;
_F4[_YH2]=(_DI2._K6[_TH2]*_HI2-_DI2._K6[_VH2]*_9h+_DI2._K6[_WH2]*_8h)*_JI2;_F4[_ZH2]=(-_DI2._K6[_4I2]*_GI2+_DI2._K6[_6I2]*_1B-_DI2._K6[_7I2]*_0B)*_JI2;_F4[__H2]=(_DI2._K6[_0I2]*_GI2-_DI2._K6[_2I2]*_1B+_DI2._K6[_3I2]*_0B)*_JI2;_F4[_0I2]=(_DI2._K6[_XH2]*_II2-_DI2._K6[_YH2]*_9h+_DI2._K6[__H2]*_tm1)*_JI2;_F4[_1I2]=(-_DI2._K6[_TH2]*_II2+_DI2._K6[_UH2]*_9h-_DI2._K6[_WH2]*_tm1)*_JI2;_F4[_2I2]=(_DI2._K6[_4I2]*_FI2-_DI2._K6[_5I2]*_1B+_DI2._K6[_7I2]*_EI2)*_JI2;_F4[_3I2]=(-_DI2._K6[_0I2]*_FI2+_DI2._K6[_1I2]*_1B-_DI2._K6[_3I2]*_EI2)*_JI2;
_F4[_4I2]=(-_DI2._K6[_XH2]*_9m1+_DI2._K6[_YH2]*_8h-_DI2._K6[_ZH2]*_tm1)*_JI2;_F4[_5I2]=(_DI2._K6[_TH2]*_9m1-_DI2._K6[_UH2]*_8h+_DI2._K6[_VH2]*_tm1)*_JI2;_F4[_6I2]=(-_DI2._K6[_4I2]*_2B+_DI2._K6[_5I2]*_0B-_DI2._K6[_6I2]*_EI2)*_JI2;_F4[_7I2]=(_DI2._K6[_0I2]*_2B-_DI2._K6[_1I2]*_0B+_DI2._K6[_2I2]*_EI2)*_JI2;this._K6=_F4;}};_Zy.prototype._as2=function(_KI2){var _LI2=new _iz(0.0,0.0,0.0);if(_KI2!=undefined){_LI2._Pz=(this._K6[_vA]*_KI2._Pz)+(this._K6[_wA]*_KI2._Qz)+(this._K6[_xA]*_KI2._Rz)+this._K6[_yA];
_LI2._Qz=(this._K6[_zA]*_KI2._Pz)+(this._K6[_qz]*_KI2._Qz)+(this._K6[_AA]*_KI2._Rz)+this._K6[_BA];_LI2._Rz=(this._K6[_DA]*_KI2._Pz)+(this._K6[_EA]*_KI2._Qz)+(this._K6[_FA]*_KI2._Rz)+this._K6[_GA];}return _LI2;};function _Gy2(){this.Normal=new _iz(0.0,0.0,1.0);this._H32=0.0;}_Gy2.prototype._Mz=function(){var length=this.Normal.Length();this.Normal._Pz/=length;this.Normal._Qz/=length;this.Normal._Rz/=length;this._H32/=length;};/*@constructor */function _3s(){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._js=_BH2;}function _1c1(){}/*@constructor */function _BH2(_Tb1){this.x=_Tb1.x;this.y=_Tb1.y;this.w=_Tb1.w;this.h=_Tb1.h;this.XOffset=_Tb1.XOffset;this.YOffset=_Tb1.YOffset;this.CropWidth=_Tb1.CropWidth;this.CropHeight=_Tb1.CropHeight;this.ow=_Tb1.ow;this.oh=_Tb1.oh;this.tp=_Tb1.tp;}/*@constructor */function _MI2(){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._NI2=[];}/*@constructor */function _OI2(){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 _PI2(){this.x=0;this.y=0;this.index=0;this.id=0;this.pCode=null;}/*@constructor */function _QI2(){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=1.0;this.scaleY=1.0;this.colour=-1;}/*@constructor */function _RI2(){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 _SI2(){this.visible=false;this.foreground=0;this.index=0;this.x=0;this.y=0;this._TI2=0;this._UI2=0;this._VI2=0;this._WI2=0;this.stretch=0;}/*@constructor */function _XI2(){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._YI2=[];this._2g=[];this._ZI2=[];}/*@constructor */function __I2(){this.GMObjects=[];this.GMRooms=[];this.Textures=[];this.Sprites=[];}function _0J2(){_Fb("execute_string()");}function _1J2(){_Fb("execute_file()");}function _2J2(){_Fb("show_info()");}function _3J2(_bv){_Fb("load_info()");}function _4J2(_t9){
_Fb("script_get_text()");}function game_save(name){_Fb("game_save()");}function game_load(name){_Fb("game_load()");}function game_save_buffer(buffer){_Fb("game_save_buffer()");}function game_load_buffer(buffer){_Fb("game_load_buffer()");}function _5J2(_bv,loop){_Fb("splash_show_video()");}function _6J2(_bv,_pP1){_Fb("splash_show_text()");}function _7J2(_bv,_pP1){_Fb("splash_show_image()");}function _8J2(_Gh,_pP1){_Fb("splash_show_web()");}function _9J2(_aJ2){_Fb("splash_set_main()");}function _bJ2(scale){
_Fb("splash_set_scale()");}function _cJ2(_dJ2){_Fb("splash_set_cursor()");}function _eJ2(_L4){_Fb("splash_set_color()");}var _fJ2=_eJ2;function _gJ2(_hJ2){_Fb("splash_set_caption()");}function _iJ2(_jJ2){_Fb("splash_set_fullscreen()");}function _kJ2(border){_Fb("splash_set_border()");}function _lJ2(w,h){_Fb("splash_set_size()");}function _mJ2(x,y){_Fb("splash_set_position()");}function _nJ2(_oJ2){_Fb("splash_set_adapt()");}function _pJ2(top){_Fb("splash_set_top()");}function _qJ2(interrupt){_Fb("splash_set_interrupt()");
}function _rJ2(stop){_Fb("splash_set_stop_key()");}function _sJ2(stop){_Fb("splash_set_stop_mouse()");}function _tJ2(_uJ2){_Fb("splash_set_close_button()");}function os_set_orientation_lock(){_Fb("os_set_orientation_lock()");}function extension_exists(){return false;}function _vJ2(){_Fb("screen_redraw()");}function _wJ2(){_Fb("screen_refresh()");}function _xJ2(value){_Fb("set_automatic_draw()");}function _yJ2(value){_Fb("set_synchronization()");}function _zJ2(){_Fb("screen_wait_vsync()");}function _AJ2(w,h,
_BJ2){_Fb("window_set_region_size()");}function _CJ2(){_Fb("window_get_region_width()");}function _DJ2(){_Fb("window_get_region_height()");}function screen_save(_bv){_RD("screen_save()");}function screen_save_part(_bv,x,y,w,h){_RD("screen_save_part()");}function _EJ2(kind,name){_RD("transition_define()");}function _FJ2(kind){_RD("transition_exists()");}function _GJ2(){_Fb("display_get_colordepth()");}function display_get_frequency(){_Fb("display_get_frequency()");}function _HJ2(w,h){_Fb("display_set_size()");
}function _IJ2(_JJ2){_Fb("display_set_colordepth()");}function _KJ2(_5P1){_Fb("display_set_frequency()");}function _LJ2(w,h,_5P1,_JJ2){_Fb("display_set_all()");}function _MJ2(w,h,_5P1,_JJ2){_Fb("display_test_all()");}function display_reset(_NJ2){_Fb("display_reset()");}function display_mouse_set(x,y){_Fb("display_mouse_set()");}var _OJ2=[];var _PJ2=false;var _QJ2=false;function _RJ2(){if(!_PJ2&&navigator.clipboard){if(!_QJ2){_QJ2=true;navigator.permissions.query({"name":'clipboard-read',"allowWithoutGesture":true}
).then(function(result){if((result.state=='granted')||(result.state=='prompt')){_PJ2=true;_QJ2=false;for(var _I6=0;_I6<_OJ2.length;++_I6){navigator.clipboard.writeText(_OJ2[_I6]);}_OJ2=[];navigator.clipboard.readText().then(_SJ2=>{if(_SJ2!="")_OJ2.push(_SJ2);}).catch(()=>{});}});}}}function clipboard_has_text(){if(!_PJ2){_RJ2();return false;}navigator.clipboard.readText().then(_SJ2=>{if(_SJ2!="")_OJ2.push(_SJ2);}).catch(()=>{});return _OJ2.length>0;}function clipboard_get_text(){var _P4="";if(!_PJ2){_RJ2();
}else if(_OJ2.length>0){_P4=_OJ2.pop();}return _P4;}function clipboard_set_text(_Kl){var _TJ2=yyGetString(_Kl);if(!_PJ2){_RJ2();_OJ2.push(_TJ2);}else {if(navigator.clipboard)navigator.clipboard.writeText(_TJ2);}}function _UJ2(priority){_RD("set_program_priority()");}function _VJ2(id){return false;}function _WJ2(id){_Fb("joystick_name()");}function _XJ2(id){_Fb("joystick_axes()");}function _YJ2(id){_Fb("joystick_buttons()");}function _ZJ2(id){_Fb("joystick_has_pov()");}function __J2(id){_Fb("joystick_direction()");
}function _0K2(id,_T6){_Fb("joystick_check_button()");}function _1K2(id){_Fb("joystick_xpos()");}function _2K2(id){_Fb("joystick_ypos()");}function _3K2(id){_Fb("joystick_zpos()");}function _4K2(id){_Fb("joystick_rpos()");}function _5K2(id){_Fb("joystick_upos()");}function _6K2(id){_Fb("joystick_vpos()");}function _7K2(id){_Fb("joystick_pov()");}function _8K2(){_Fb("io_handle()");}function _9K2(){_Fb("mouse_wait()");}function _aK2(){_Fb("keyboard_wait()");}function keyboard_get_numlock(){_Fb("keyboard_get_numlock()");
}function keyboard_set_numlock(on){_Fb("keyboard_set_numlock()");}function _bK2(_t9,_bv){_Fb("background_save()");}function sprite_save_strip(_t9,_bv){_Fb("sprite_save_strip()");}function _cK2(){_Fb("object_add()");}function _dK2(_t9){_Fb("object_delete()");}function _eK2(_t9,_fK2,_gK2,_hK2){_Fb("object_event_add()");}function _iK2(_t9,_fK2,_gK2){_Fb("object_event_clear()");}function _jK2(_et2){_Fb("part_changer_create()");}function _kK2(_et2,_S4){_Fb("part_changer_destroy()");}function _lK2(_et2){_Fb("part_changer_destroy_all()");
}function _mK2(_et2,_S4){_Fb("part_changer_exists()");}function _nK2(_et2,_S4){_Fb("part_changer_clear()");}function _oK2(_et2,_S4,_Gp,_Hp,_Ip,_Jp,_Po){_Fb("part_changer_region()");}function _pK2(_et2,_S4,_qK2,_rK2){_Fb("part_changer_types()");}function _sK2(_et2,_S4,_Dc){_Fb("part_changer_kind()");}function _tK2(_No1){_Fb("part_deflector_create()");}function _uK2(_No1,_t9){_Fb("part_deflector_destroy()");}function _vK2(_No1){_Fb("part_deflector_destroy_all()");}function _wK2(_No1,_t9){_Fb("part_deflector_exists()");
}function _xK2(_No1,_t9){_Fb("part_deflector_clear()");}function _yK2(_No1,_t9,_DX,_EX,_FX,_GX){_Fb("part_deflector_region()");}function _zK2(_No1,_t9,kind){_Fb("part_deflector_kind()");}function _AK2(_No1,_t9,friction){_Fb("part_deflector_friction()");}function _BK2(_No1){_Fb("part_destroyer_create()");}function _CK2(_No1,_t9){_Fb("part_destroyer_destroy()");}function _DK2(_No1){_Fb("part_destroyer_destroy_all()");}function _EK2(_No1,_t9){_Fb("part_destroyer_exists()");}function _FK2(_No1,_t9){_Fb("part_destroyer_clear()");
}function _GK2(_No1,_t9,_DX,_EX,_FX,_GX,shape){_Fb("part_destroyer_region()");}function _HK2(_No1){_Fb("part_attractor_create()");}function _IK2(_No1,_t9){_Fb("part_attractor_destroy()");}function _JK2(_No1){_Fb("part_attractor_destroy_all()");}function _KK2(_No1,_t9){_Fb("part_attractor_exists()");}function _LK2(_No1,_t9){_Fb("part_attractor_clear()");}function _MK2(_No1,_t9,x,y){_Fb("part_attractor_position()");}function _NK2(_No1,_t9,_Vx1,_Jt,kind,_OK2){_Fb("part_attractor_force()");}function _PK2(_ZS1,
_QK2,_RK2){_Fb("execute_program()");}function _SK2(_ZS1,_QK2){_Fb("execute_shell()");}var _TK2=true;function _UK2(name,_Kl){_Fb("registry_write_string()");}function _VK2(name,x){_Fb("registry_write_real()");}function _WK2(name){_Fb("registry_read_string()");}function _XK2(name){_Fb("registry_read_real()");}function _YK2(name){_Fb("registry_exists()");}function _ZK2(key,name,_Kl){_Fb("registry_write_string_ext()");}function __K2(key,name,x){_Fb("registry_write_real_ext()");}function _0L2(key,name){_Fb("registry_read_string_ext()");
}function _1L2(key,name){_Fb("registry_read_real_ext()");}function _2L2(key,name){_Fb("registry_exists_ext()");}function _3L2(_W5){_Fb("registry_set_root()");}function _4L2(_b4,_7d,_ys,_Rh1){_Fb("message_text_font()");}function _5L2(_06){_Fb("message_button()");}function _6L2(_b4,_7d,_ys,_Rh1){_Fb("message_button_font()");}function _7L2(_b4,_7d,_ys,_Rh1){_Fb("message_input_font()");}function _8L2(){_Fb("message_text_charset()");}function _9L2(_L4){_Fb("message_mouse_color()");}function _aL2(_L4){_Fb("message_input_color()");
}function _bL2(_uJ2,_Kl){_Fb("message_caption()");}function _cL2(x,y){_Fb("message_position()");}function _dL2(w,h){_Fb("message_size()");}function _eL2(_Kl,_tx1){_Fb("show_menu()");}function _fL2(x,y,_Kl,_tx1){_Fb("show_menu_pos()");}function _gL2(_hL2){_Fb("get_color()");}function get_open_filename(filter,_bv){_Fb("get_open_filename()");}function get_save_filename(filter,_bv){_Fb("get_save_filename()");}function get_open_filename_ext(filter,_bv,_VX,title){_Fb("get_open_filename_ext()");}function get_save_filename_ext(filter,
_bv,_VX,title){_Fb("get_save_filename_ext()");}function _iL2(_jL2){_Fb("get_directory()");}function _kL2(_lL2,_W5){_Fb("get_directory_alt()");}function _mL2(_an,x,y,z){_Fb("sound_3d_set_sound_position()");}function _nL2(_an,x,y,z){_Fb("sound_3d_set_sound_velocity()");}function _oL2(_an,_pL2,_qL2){_Fb("sound_3d_set_sound_distance()");}function _rL2(_an,x,y,z,_sL2,_tL2,_uL2){_Fb("sound_3d_set_sound_cone()");}function _vL2(factor){_Fb("sound_background_tempo()");}function _wL2(index,value){_Fb("sound_pan()");
}function _xL2(_VX){_Fb("sound_set_search_directory()");}function _yL2(_an,_bV){_Fb("sound_effect_set()");}function _zL2(_an,_AL2,depth,feedback,_5P1,_BL2,_pP1,_CL2){_Fb("sound_effect_chorus()");}function _DL2(_an,_AL2,feedback,_EL2,_FL2,_GL2){_Fb("sound_effect_echo()");}function _HL2(_an,_AL2,depth,feedback,_5P1,_BL2,_pP1,_CL2){_Fb("sound_effect_flanger()");}function _IL2(_an,rate,_BL2){_Fb("sound_effect_gargle()");}function _JL2(_an,gain,mix,time,_VI1){_Fb("sound_effect_reverb()");}function _KL2(_an,gain,
_LL2,_ML2,_NL2,_VI1,_pP1){_Fb("sound_effect_compressor()");}function _OL2(_an,_on1,_PL2,gain){_Fb("sound_effect_equalizer()");}function _QL2(index){_Fb("sound_discard()");}function _RL2(index){_Fb("sound_restore()");}function _SL2(index){_Fb("sound_get_preload()");}function _TL2(){_Fb("cd_init()");}function _UL2(){_Fb("cd_present()");}function _VL2(){_Fb("cd_number()");}function _WL2(){_Fb("cd_playing()");}function _XL2(){_Fb("cd_paused()");}function _YL2(){_Fb("cd_track()");}function _ZL2(){_Fb("cd_length()");
}function __L2(_I6){_Fb("cd_track_length()");}function _0M2(){_Fb("cd_position()");}function _1M2(){_Fb("cd_track_position()");}function _2M2(first,last){_Fb("cd_play()");}function _3M2(){_Fb("cd_stop()");}function _4M2(){_Fb("cd_pause()");}function _5M2(){_Fb("cd_resume()");}function _6M2(_Lk){_Fb("cd_set_position()");}function _7M2(_Lk){_Fb("cd_set_track_position()");}function _8M2(){_Fb("cd_open_door()");}function _9M2(){_Fb("cd_close_door()");}function _aM2(_Kl){_Fb("MCI_command()");}function _bM2(_Gb){_Fb("texture_preload()");
}function _cM2(_Gb,_dM2){_Fb("texture_set_priority()");}function texture_get_width(_Gb){_Fb("texture_get_width()");}function texture_get_height(_Gb){_Fb("texture_get_height()");}function _eM2(_dP){_Fb("texture_set_blending()");}function _yz(repeat){_Fb("texture_set_repeat()");}function _xz(){_Fb("texture_get_repeat()");}function _fM2(repeat){_Fb("texture_set_repeat_ext()");}function _gM2(_TB,_zw){_Fb("texture_set_interpolation_ext()");}function texture_get_uvs(_C8){_Fb("texture_get_uvs()");}function texture_global_scale(_hM2){
_Fb("texture_global_scale()");}function _iM2(){_Fb("file_open_read()");}function _jM2(){_Fb("file_open_write()");}function _kM2(){_Fb("file_open_append()");}function _lM2(){_Fb("file_read_real()");}function _mM2(){_Fb("file_read_string()");}function _nM2(){_Fb("file_readln()");}function _oM2(){_Fb("file_write_real()");}function _pM2(){_Fb("file_write_string()");}function _qM2(){_Fb("file_writeln()");}function _rM2(){_Fb("file_eof()");}function _sM2(){_Fb("file_eoln()");}function _tM2(){_Fb("file_close()");}
function _uM2(){_Fb("steam_activate_overlay()");return -1;}function _vM2(){_Fb("steam_is_overlay_enabled()");return -1;}function _wM2(){_Fb("steam_is_overlay_activated()");return -1;}function _xM2(){_Fb("steam_get_persona_name()");return "";}function _yM2(){_Fb("steam_initialised()");return -1;}function _zM2(){_Fb("steam_is_cloud_enabled_for_app()");return -1;}function _AM2(){_Fb("steam_is_cloud_enabled_for_account()");return -1;}function _BM2(){_Fb("steam_file_persisted()");return -1;}function _CM2(){_Fb("steam_get_quota_total()");
return -1;}function _DM2(){_Fb("steam_get_quota_free()");return -1;}function _EM2(){_Fb("steam_file_write()");return -1;}function _FM2(){_Fb("steam_file_write_file()");return -1;}function _GM2(){_Fb("steam_file_read()");return "";}function _HM2(){_Fb("steam_file_delete()");return -1;}function _IM2(){_Fb("steam_file_exists()");return -1;}function _JM2(){_Fb("steam_file_size()");return -1;}function _KM2(){_Fb("steam_file_share()");return -1;}function _LM2(){_Fb("steam_publish_workshop_file()");return -1;}function _MM2(){
_Fb("steam_is_screenshot_requested()");return -1;}function _NM2(){_Fb("steam_send_screenshot()");return -1;}function _OM2(){_Fb("steam_is_user_logged_on()");return -1;}function _PM2(){_Fb("steam_get_user_steam_id()");return -1;}function _QM2(){_Fb("steam_user_owns_dlc()");return -1;}function _RM2(){_Fb("steam_user_installed_dlc()");return -1;}function _SM2(){_Fb("steam_set_achievement()");return -1;}function _TM2(){_Fb("steam_get_achievement()");return -1;}function _UM2(){_Fb("steam_clear_achievement()");return -1;
}function _VM2(){_Fb("steam_set_stat_int()");return -1;}function _WM2(){_Fb("steam_set_stat_float()");return -1;}function _XM2(){_Fb("steam_set_stat_avg_rate()");return -1;}function _YM2(){_Fb("steam_get_stat_int()");return -1;}function _ZM2(){_Fb("steam_get_stat_float()");return -1;}function __M2(){_Fb("steam_get_stat_avg_rate()");return -1;}function _0N2(){_Fb("steam_reset_all_stats()");return -1;}function _1N2(){_Fb("steam_reset_all_stats_achievements()");return -1;}function _2N2(){_Fb("steam_stats_ready()");
return -1;}function _3N2(){_Fb("steam_create_leaderboard()");return -1;}function _4N2(){_Fb("steam_upload_score()");return -1;}function _5N2(){_Fb("steam_upload_score_ext()");return -1;}function _6N2(){_Fb("steam_download_scores_around_user()");return -1;}function _7N2(){_Fb("steam_download_scores()");return -1;}function _8N2(){_Fb("steam_download_friends_scores()");return -1;}function _9N2(){_Fb("steam_upload_score_buffer()");return -1;}function _aN2(){_Fb("steam_upload_score_buffer_ext()");return -1;}function _bN2(){
_Fb("steam_activate_overlay_browser()");return -1;}function _cN2(){_Fb("steam_activate_overlay_user()");return -1;}function _dN2(){_Fb("steam_activate_overlay_store()");return -1;}function _eN2(){_Fb("steam_get_user_persona_name()");return -1;}function _fN2(){_Fb("steam_get_app_id()");return -1;}function _gN2(){_Fb("steam_get_user_account_id()");return -1;}function _hN2(){_Fb("steam_ugc_download()");return -1;}function _iN2(){_Fb("steam_ugc_create_item()");return -1;}function _jN2(){_Fb("steam_ugc_start_item_update()");
return -1;}function _kN2(){_Fb("steam_ugc_set_item_title()");return -1;}function _lN2(){_Fb("steam_ugc_set_item_description()");return -1;}function _mN2(){_Fb("steam_ugc_set_item_visibility()");return -1;}function _nN2(){_Fb("steam_ugc_set_item_tags()");return -1;}function _oN2(){_Fb("steam_ugc_set_item_content()");return -1;}function _pN2(){_Fb("steam_ugc_set_item_preview()");return -1;}function _qN2(){_Fb("steam_ugc_submit_item_update()");return -1;}function _rN2(){_Fb("steam_ugc_get_item_update_progress()");
return -1;}function _sN2(){_Fb("steam_ugc_subscribe_item()");return -1;}function _tN2(){_Fb("steam_ugc_unsubscribe_item()");return -1;}function _uN2(){_Fb("steam_ugc_num_subscribed_items()");return -1;}function _vN2(){_Fb("steam_ugc_get_subscribed_items()");return -1;}function _wN2(){_Fb("steam_ugc_get_item_install_info()");return -1;}function _xN2(){_Fb("steam_ugc_get_item_update_info()");return -1;}function _yN2(){_Fb("steam_ugc_request_item_details()");return -1;}function _zN2(){_Fb("steam_ugc_create_query_user()");
return -1;}function _AN2(){_Fb("steam_ugc_create_query_user_ex()");return -1;}function _BN2(){_Fb("steam_ugc_create_query_all()");return -1;}function _CN2(){_Fb("steam_ugc_create_query_all_ex()");return -1;}function _DN2(){_Fb("steam_ugc_query_set_cloud_filename_filter()");return -1;}function _EN2(){_Fb("steam_ugc_query_set_match_any_tag()");return -1;}function _FN2(){_Fb("steam_ugc_query_set_search_text()");return -1;}function _GN2(){_Fb("steam_ugc_query_set_ranked_by_trend_days()");return -1;}function _HN2(){
_Fb("steam_ugc_query_add_required_tag()");return -1;}function _IN2(){_Fb("steam_ugc_query_add_excluded_tag()");return -1;}function _JN2(){_Fb("steam_ugc_query_set_return_long_description()");return -1;}function _KN2(){_Fb("steam_ugc_query_set_return_total_only()");return -1;}function _LN2(){_Fb("steam_ugc_query_set_allow_cached_response()");return -1;}function _MN2(_NN2){_Fb("steam_ugc_send_query( ugc_query_handle )");return -1;}function _ON2(){_Fb("steam_current_game_language()");return -1;}function _PN2(){_Fb("steam_available_languages()");
return -1;}function _QN2(){_Fb("draw_set_alpha_test()");}function _RN2(){_Fb("draw_set_alpha_test_ref_value()");}function _SN2(){_Fb("draw_get_alpha_test()");return 0;}function _TN2(){_Fb("draw_get_alpha_test_ref_value()");return 0;}function zip_unzip(){_Fb("zip_unzip()");}function winphone_license_trial_version(){_Fb("winphone_license_trial_version()");}function winphone_tile_title(){_Fb("winphone_tile_title()");}function winphone_tile_count(){_Fb("winphone_tile_count()");}function winphone_tile_back_title(){
_Fb("winphone_tile_back_title()");}function winphone_tile_back_content(){_Fb("winphone_tile_back_content()");}function winphone_tile_back_content_wide(){_Fb("winphone_tile_back_content_wide()");}function winphone_tile_front_image(){_Fb("winphone_tile_front_image()");}function winphone_tile_front_image_small(){_Fb("winphone_tile_front_image_small()");}function winphone_tile_front_image_wide(){_Fb("winphone_tile_front_image_wide()");}function winphone_tile_back_image(){_Fb("winphone_tile_back_image()");
}function winphone_tile_back_image_wide(){_Fb("winphone_tile_back_image_wide()");}function winphone_tile_background_colour(){_Fb("winphone_tile_background_colour()");}function winphone_tile_background_color(){_Fb("winphone_tile_background_color()");}function winphone_tile_icon_image(){_Fb("winphone_tile_icon_image()");}function winphone_tile_small_icon_image(){_Fb("winphone_tile_small_icon_image()");}function winphone_tile_wide_content(){_Fb("winphone_tile_wide_content()");}function winphone_tile_cycle_images(){
_Fb("winphone_tile_cycle_images()");}function winphone_tile_small_background_image(){_Fb("winphone_tile_small_background_image()");}function push_local_notification(){_Fb("push_local_notification()");}function push_get_first_local_notification(){_Fb("push_get_first_local_notification()");return -1;}function push_get_next_local_notification(){_Fb("push_get_next_local_notification()");return -1;}function push_cancel_local_notification(){_Fb("push_cancel_local_notification()");return -1;}function push_get_application_badge_number(){
_Fb("push_get_application_badge_number()");return -1;}function push_set_application_badge_number(){_Fb("push_set_application_badge_number()");return -1;}function surface_set_target_ext(){_Fb("surface_set_target_ext()");return 0;}function surface_get_target_ext(_JY){_Fb("surface_set_target_ext()");return -1;}function audio_destroy_sync_group(){_Fb("audio_destroy_sync_group()");return -1;}function audio_create_sync_group(){_Fb("audio_create_sync_group()");return -1;}function audio_play_in_sync_group(){_Fb("audio_play_in_sync_group()");
}function audio_start_sync_group(){_Fb("audio_start_sync_group()");}function audio_pause_sync_group(){_Fb("audio_pause_sync_group()");}function audio_resume_sync_group(){_Fb("audio_resume_sync_group()");}function audio_stop_sync_group(){_Fb("audio_stop_sync_group()");}function audio_sync_group_get_track_pos(){_Fb("audio_sync_group_get_track_pos()");return -1;}function audio_sync_group_is_playing(){_Fb("audio_sync_group_is_playing()");return -1;}function audio_sync_group_is_paused(){_Fb("audio_sync_group_is_paused()");
return -1;}function audio_sync_group_debug(){_Fb("audio_sync_group_debug()");}function _UN2(){_Fb("GPIO is not supported");}function _VN2(){_Fb("GPIO is not supported");}function _WN2(){_Fb("GPIO is not supported");return 0;}function _XN2(){_Fb("GPIO is not supported");}function win8_livetile_tile_notification(){_Fb("win8_livetile_tile_notification()");return -1;}function win8_livetile_tile_clear(){_Fb("win8_livetile_tile_clear()");return -1;}function win8_livetile_badge_notification(){_Fb("win8_livetile_badge_notification()");
return -1;}function win8_livetile_badge_clear(){_Fb("win8_livetile_badge_clear()");return -1;}function win8_livetile_queue_enable(){_Fb("win8_livetile_queue_enable()");return -1;}function win8_secondarytile_pin(){_Fb("win8_secondarytile_pin()");return -1;}function win8_secondarytile_badge_notification(){_Fb("win8_secondarytile_badge_notification()");return -1;}function win8_secondarytile_delete(){_Fb("win8_secondarytile_delete()");return -1;}function win8_settingscharm_add_xaml_entry(){_Fb("win8_settingscharm_add_xaml_entry()");
}function win8_settingscharm_set_xaml_property(){_Fb("win8_settingscharm_set_xaml_property()");}function win8_settingscharm_get_xaml_property(){_Fb("win8_settingscharm_get_xaml_property()");}function win8_livetile_notification_begin(){_Fb("win8_livetile_notification_begin()");return -1;}function win8_livetile_notification_secondary_begin(){_Fb("win8_livetile_notification_secondary_begin()");return -1;}function win8_livetile_notification_expiry(){_Fb("win8_livetile_notification_expiry()");return -1;}function win8_livetile_notification_tag(){
_Fb("win8_livetile_notification_tag()");return -1;}function win8_livetile_notification_text_add(){_Fb("win8_livetile_notification_text_add()");return -1;}function win8_livetile_notification_image_add(){_Fb("win8_livetile_notification_image_add()");return -1;}function win8_livetile_notification_end(){_Fb("win8_livetile_notification_end()");return -1;}function win8_appbar_enable(){_Fb("win8_appbar_enable()");return -1;}function win8_appbar_add_element(){_Fb("win8_appbar_add_element()");return -1;}function win8_appbar_remove_element(){
_Fb("win8_appbar_remove_element()");return -1;}function win8_settingscharm_add_entry(){_Fb("win8_settingscharm_add_entry()");return -1;}function win8_settingscharm_add_html_entry(){_Fb("win8_settingscharm_add_html_entry()");return -1;}function win8_settingscharm_remove_entry(){_Fb("win8_settingscharm_remove_entry()");return -1;}function win8_share_image(){_Fb("win8_share_image()");return -1;}function win8_share_screenshot(){_Fb("win8_share_screenshot()");return -1;}function win8_share_file(){_Fb("win8_share_file()");
return -1;}function win8_share_url(){_Fb("win8_share_url()");return -1;}function win8_share_text(){_Fb("win8_share_text()");return -1;}function win8_search_enable(){_Fb("win8_search_enable()");return -1;}function win8_search_disable(){_Fb("win8_search_disable()");return -1;}function win8_search_add_suggestions(){_Fb("win8_search_add_suggestions()");return -1;}function win8_device_touchscreen_available(){_Fb("win8_device_touchscreen_available()");return -1;}function win8_license_initialize_sandbox(){_Fb("win8_license_initialize_sandbox()");
return -1;}function win8_license_trial_version(){_Fb("win8_license_trial_version()");return -1;}function uwp_livetile_tile_clear(){_Fb("uwp_livetile_tile_clear()");return -1;}function uwp_livetile_badge_notification(){_Fb("uwp_livetile_badge_notification()");return -1;}function uwp_livetile_badge_clear(){_Fb("uwp_livetile_badge_clear()");return -1;}function uwp_livetile_queue_enable(){_Fb("uwp_livetile_queue_enable()");return -1;}function uwp_secondarytile_pin(){_Fb("uwp_secondarytile_pin()");return -1;}function uwp_secondarytile_badge_notification(){
_Fb("uwp_secondarytile_badge_notification()");return -1;}function uwp_secondarytile_delete(){_Fb("uwp_secondarytile_delete()");return -1;}function uwp_secondarytile_tile_clear(){_Fb("uwp_secondarytile_tile_clear()");return -1;}function uwp_secondarytile_badge_clear(){_Fb("uwp_seondarytile_badge_clear()");return -1;}function uwp_livetile_notification_begin(){_Fb("uwp_livetile_notification_begin()");return -1;}function uwp_livetile_notification_secondary_begin(){_Fb("uwp_livetile_notification_secondary_begin()");
return -1;}function uwp_livetile_notification_expiry(){_Fb("uwp_livetile_notification_expiry()");return -1;}function uwp_livetile_notification_tag(){_Fb("uwp_livetile_notification_tag()");return -1;}function uwp_livetile_notification_text_add(){_Fb("uwp_livetile_notification_text_add()");return -1;}function uwp_livetile_notification_image_add(){_Fb("uwp_livetile_notification_image_add()");return -1;}function uwp_livetile_notification_end(){_Fb("uwp_livetile_notification_end()");return -1;}function uwp_livetile_notification_template_add(){
_Fb("uwp_livetile_notification_template_add()");return -1;}function uwp_appbar_enable(){_Fb("uwp_appbar_enable()");return -1;}function uwp_appbar_add_element(){_Fb("uwp_appbar_add_element()");return -1;}function uwp_appbar_remove_element(){_Fb("uwp_appbar_remove_element()");return -1;}function uwp_device_touchscreen_available(){_Fb("uwp_device_touchscreen_available()");return -1;}function external_define(){_Fb("external_define()");return -1;}function external_call(){_Fb("external_call()");return -1;}function external_free(){
_Fb("external_free()");return -1;}/*@constructor */function _iz(_YN2,_ZN2,__N2){if(arguments.length>0){if(arguments.length==3){this._Pz=_YN2;this._Qz=_ZN2;this._Rz=__N2;}else {this._Pz=_YN2._Pz;this._Qz=_YN2._Qz;this._Rz=_YN2._Rz;}}else {this._Pz=1.0;this._Qz=0.0;this._Rz=0.0;}}_iz.prototype._0O2=function(_p5){return this._Pz==_p5._Pz&&this._Qz==_p5._Qz&&this._Rz==_p5._Rz;};_iz.prototype._Df=function(_p5){return new _iz(this._Pz+_p5._Pz,this._Qz+_p5._Qz,this._Rz+_p5._Rz);};_iz.prototype._1O2=function(){
return new _iz(-this._Pz,-this._Qz,-this._Rz);};_iz.prototype._cs2=function(_p5){return new _iz(this._Pz-_p5._Pz,this._Qz-_p5._Qz,this._Rz-_p5._Rz);};_iz.prototype._Oy2=function(_p5){return this._Pz*_p5._Pz+this._Qz*_p5._Qz+this._Rz*_p5._Rz;};_iz.prototype._Y_=function(_SC){return new _iz(_SC*this._Pz,_SC*this._Qz,_SC*this._Rz);};_iz.prototype._Mz=function(){var _0j=1.0/Math.sqrt((this._Pz*this._Pz)+(this._Qz*this._Qz)+(this._Rz*this._Rz));this._Pz=this._Pz*_0j;this._Qz=this._Qz*_0j;this._Rz=this._Rz*_0j;
};_iz.prototype._2O2=function(){var _3O2=(this._Pz*this._Pz)+(this._Qz*this._Qz)+(this._Rz*this._Rz);return _3O2;};_iz.prototype.Length=function(){var _3O2=this._2O2();if(_3O2>0.0){return Math.sqrt(_3O2);}else {return 0.0;}};_iz.prototype._4O2=function(_5O2){var x,y,z;x=(this._Qz*_5O2._Rz)-(this._Rz*_5O2._Qz);y=(this._Rz*_5O2._Pz)-(this._Pz*_5O2._Rz);z=(this._Pz*_5O2._Qz)-(this._Qz*_5O2._Pz);return new _iz(x,y,z);};_iz.prototype._hI2=function(_6O2,_7O2){this._Pz=(_6O2._Qz*_7O2._Rz)-(_6O2._Rz*_7O2._Qz);this._Qz=(_6O2._Rz*_7O2._Pz)-(_6O2._Pz*_7O2._Rz);
this._Rz=(_6O2._Pz*_7O2._Qz)-(_6O2._Qz*_7O2._Pz);};_iz.prototype._iI2=function(_5O2){return(this._Pz*_5O2._Pz)+(this._Qz*_5O2._Qz)+(this._Rz*_5O2._Rz);};var _8O2=0,_9O2=1,_aO2=2,_bO2=3,_cO2=4,_dO2=5,_eO2=6,_fO2=7,_gO2=8,_hO2=9,_iO2=10,_jO2=11,_kO2=12,_lO2=13,_mO2=14,_nO2=15;/*@constructor */function _3A(){this._Tf();}_3A.prototype._Tf=function(){this._oO2=[];this._pO2=[];};_3A.prototype._qO2=function(){var _ma1="100\n";_ma1+=this._oO2.length.toString()+"\n";for(var i=0;i<this._oO2.length;i++){var _rO2=this._oO2[i];
_ma1+=_rO2._sO2.toString()+" ";switch(_rO2._sO2){case _9O2:break;case _8O2:_ma1+=_rO2._tO2.toString();break;case _aO2:_ma1+=_rO2.x.toString()+" ";_ma1+=_rO2.y.toString()+" ";_ma1+=_rO2.z.toString()+" ";_ma1+="0.0 0.0 0.0 0.0 0.0 0.0 0.0\n";break;case _bO2:_ma1+=_rO2.x.toString()+" ";_ma1+=_rO2.y.toString()+" ";_ma1+=_rO2.z.toString()+" ";_ma1+=(_rO2.color*1.0).toString()+" ";_ma1+=_rO2.alpha.toString()+" ";_ma1+="0.0 0.0 0.0 0.0 0.0\n";break;case _cO2:_ma1+=_rO2.x.toString()+" ";_ma1+=_rO2.y.toString()+" ";
_ma1+=_rO2.z.toString()+" ";_ma1+=_rO2._m5.toString()+" ";_ma1+=_rO2._n5.toString()+" ";_ma1+="0.0 0.0 0.0 0.0 0.0\n";break;case _dO2:_ma1+=_rO2.x.toString()+" ";_ma1+=_rO2.y.toString()+" ";_ma1+=_rO2.z.toString()+" ";_ma1+=_rO2._m5.toString()+" ";_ma1+=_rO2._n5.toString()+" ";_ma1+=(_rO2.color*1.0).toString()+" ";_ma1+=_rO2.alpha.toString()+" ";_ma1+="0.0 0.0 0.0\n";break;case _eO2:_ma1+=_rO2.x.toString()+" ";_ma1+=_rO2.y.toString()+" ";_ma1+=_rO2.z.toString()+" ";_ma1+=_rO2._Sb.toString()+" ";_ma1+=_rO2._Tb.toString()+" ";
_ma1+=_rO2._Ub.toString()+" ";_ma1+="0.0 0.0 0.0 0.0\n";break;case _fO2:_ma1+=_rO2.x.toString()+" ";_ma1+=_rO2.y.toString()+" ";_ma1+=_rO2.z.toString()+" ";_ma1+=_rO2._Sb.toString()+" ";_ma1+=_rO2._Tb.toString()+" ";_ma1+=_rO2._Ub.toString()+" ";_ma1+=(_rO2.color*1.0).toString()+" ";_ma1+=_rO2.alpha.toString()+" ";_ma1+="0.0 0.0\n";break;case _gO2:_ma1+=_rO2.x.toString()+" ";_ma1+=_rO2.y.toString()+" ";_ma1+=_rO2.z.toString()+" ";_ma1+=_rO2._Sb.toString()+" ";_ma1+=_rO2._Tb.toString()+" ";_ma1+=_rO2._Ub.toString()+" ";
_ma1+=_rO2._m5.toString()+" ";_ma1+=_rO2._n5.toString()+" ";_ma1+="0.0 0.0\n";break;case _hO2:_ma1+=_rO2.x.toString()+" ";_ma1+=_rO2.y.toString()+" ";_ma1+=_rO2.z.toString()+" ";_ma1+=_rO2._Sb.toString()+" ";_ma1+=_rO2._Tb.toString()+" ";_ma1+=_rO2._Ub.toString()+" ";_ma1+=_rO2._m5.toString()+" ";_ma1+=_rO2._n5.toString()+" ";_ma1+=(_rO2.color*1.0).toString()+" ";_ma1+=_rO2.alpha.toString()+" ";_ma1+="\n";break;case _iO2:case _mO2:case _nO2:_ma1+=_rO2._L6.toString()+" ";_ma1+=_rO2._M6.toString()+" ";
_ma1+=_rO2._Yu.toString()+" ";_ma1+=_rO2._N6.toString()+" ";_ma1+=_rO2._O6.toString()+" ";_ma1+=_rO2._Zu.toString()+" ";_ma1+=(_rO2._zz?1.0:0.0).toString()+" ";_ma1+=(_rO2._Az?1.0:0.0).toString()+" ";_ma1+="0.0 0.0\n";break;case _lO2:_ma1+=_rO2._L6.toString()+" ";_ma1+=_rO2._M6.toString()+" ";_ma1+=_rO2._Yu.toString()+" ";_ma1+=_rO2._N6.toString()+" ";_ma1+=_rO2._O6.toString()+" ";_ma1+=_rO2._Zu.toString()+" ";_ma1+=(_rO2._zz?1.0:0.0).toString()+" ";_ma1+=(_rO2._Az?1.0:0.0).toString()+" ";_ma1+=(_rO2._2v*1.0).toString()+" ";
_ma1+="0.0\n";break;case _jO2:case _kO2:_ma1+=_rO2._L6.toString()+" ";_ma1+=_rO2._M6.toString()+" ";_ma1+=_rO2._Yu.toString()+" ";_ma1+=_rO2._N6.toString()+" ";_ma1+=_rO2._O6.toString()+" ";_ma1+=_rO2._Zu.toString()+" ";_ma1+=(_rO2._zz?1.0:0.0).toString()+" ";_ma1+=(_rO2._Az?1.0:0.0).toString()+" ";_ma1+=(_rO2.closed?1.0:0.0).toString()+" ";_ma1+=(_rO2._2v*1.0).toString()+" ";_ma1+="\n";break;}}return _ma1;};_3A.prototype._4A=function(_Mq){if(_nF===true){var _uO2=this._qO2();var _vO2=file_text_open_write(_Mq);
file_text_write_string(_vO2,_uO2);file_text_close(_vO2);}else {debug("d3d_model_save() browser does not support local storage\n");}};_3A.prototype._wO2=function(_xO2){var _yO2="";var _ti2=false;for(var i=0;i<_xO2.length;i++){var _zO2=_xO2.charAt(i);if(_zO2==' '){if(!_ti2){_yO2=_yO2+_zO2;}_ti2=true;}else {_ti2=false;_yO2=_yO2+_zO2;}}return _yO2;};_3A.prototype._AO2=function(_BO2){var _CO2=_BO2.split("\n");var version=parseInt(_CO2[0]);if(version==100){var _DO2=parseInt(_CO2[1]);for(var i=2;i<_CO2.length;i++){
var _rO2={};var _EO2=this._wO2(_CO2[i]);var _FO2=_EO2.split(" ");_rO2._sO2=parseInt(_FO2[0]);switch(_rO2._sO2){case _9O2:break;case _8O2:{_rO2._tO2=parseInt(_FO2[1]);break;}case _aO2:{_rO2.x=parseFloat(_FO2[1]);_rO2.y=parseFloat(_FO2[2]);_rO2.z=parseFloat(_FO2[3]);break;}case _bO2:{_rO2.x=parseFloat(_FO2[1]);_rO2.y=parseFloat(_FO2[2]);_rO2.z=parseFloat(_FO2[3]);_rO2.color=parseInt(_FO2[4]);_rO2.alpha=parseFloat(_FO2[5]);break;}case _cO2:{_rO2.x=parseFloat(_FO2[1]);_rO2.y=parseFloat(_FO2[2]);_rO2.z=parseFloat(_FO2[3]);
_rO2._m5=parseFloat(_FO2[4]);_rO2._n5=parseFloat(_FO2[5]);break;}case _dO2:{_rO2.x=parseFloat(_FO2[1]);_rO2.y=parseFloat(_FO2[2]);_rO2.z=parseFloat(_FO2[3]);_rO2._m5=parseFloat(_FO2[4]);_rO2._n5=parseFloat(_FO2[5]);_rO2.color=parseInt(_FO2[6]);_rO2.alpha=parseFloat(_FO2[7]);break;}case _eO2:{_rO2.x=parseFloat(_FO2[1]);_rO2.y=parseFloat(_FO2[2]);_rO2.z=parseFloat(_FO2[3]);_rO2._Sb=parseFloat(_FO2[4]);_rO2._Tb=parseFloat(_FO2[5]);_rO2._Ub=parseFloat(_FO2[6]);break;}case _fO2:{_rO2.x=parseFloat(_FO2[1]);
_rO2.y=parseFloat(_FO2[2]);_rO2.z=parseFloat(_FO2[3]);_rO2._Sb=parseFloat(_FO2[4]);_rO2._Tb=parseFloat(_FO2[5]);_rO2._Ub=parseFloat(_FO2[6]);_rO2.color=parseInt(_FO2[7]);_rO2.alpha=parseFloat(_FO2[8]);break;}case _gO2:{_rO2.x=parseFloat(_FO2[1]);_rO2.y=parseFloat(_FO2[2]);_rO2.z=parseFloat(_FO2[3]);_rO2._Sb=parseFloat(_FO2[4]);_rO2._Tb=parseFloat(_FO2[5]);_rO2._Ub=parseFloat(_FO2[6]);_rO2._m5=parseFloat(_FO2[7]);_rO2._n5=parseFloat(_FO2[8]);break;}case _hO2:{_rO2.x=parseFloat(_FO2[1]);_rO2.y=parseFloat(_FO2[2]);
_rO2.z=parseFloat(_FO2[3]);_rO2._Sb=parseFloat(_FO2[4]);_rO2._Tb=parseFloat(_FO2[5]);_rO2._Ub=parseFloat(_FO2[6]);_rO2._m5=parseFloat(_FO2[7]);_rO2._n5=parseFloat(_FO2[8]);_rO2.color=parseInt(_FO2[9]);_rO2.alpha=parseFloat(_FO2[10]);break;}case _iO2:case _mO2:case _nO2:{_rO2._L6=parseFloat(_FO2[1]);_rO2._M6=parseFloat(_FO2[2]);_rO2._Yu=parseFloat(_FO2[3]);_rO2._N6=parseFloat(_FO2[4]);_rO2._O6=parseFloat(_FO2[5]);_rO2._Zu=parseFloat(_FO2[6]);_rO2._zz=(parseFloat(_FO2[7])>=0.5)?true:false;_rO2._Az=(parseFloat(_FO2[8])>=0.5)?true:false;
break;}case _lO2:{_rO2._L6=parseFloat(_FO2[1]);_rO2._M6=parseFloat(_FO2[2]);_rO2._Yu=parseFloat(_FO2[3]);_rO2._N6=parseFloat(_FO2[4]);_rO2._O6=parseFloat(_FO2[5]);_rO2._Zu=parseFloat(_FO2[6]);_rO2._zz=(parseFloat(_FO2[7])>=0.5)?true:false;_rO2._Az=(parseFloat(_FO2[8])>=0.5)?true:false;_rO2._2v=~~parseFloat(_FO2[9]);break;}case _jO2:case _kO2:{_rO2._L6=parseFloat(_FO2[1]);_rO2._M6=parseFloat(_FO2[2]);_rO2._Yu=parseFloat(_FO2[3]);_rO2._N6=parseFloat(_FO2[4]);_rO2._O6=parseFloat(_FO2[5]);_rO2._Zu=parseFloat(_FO2[6]);
_rO2._zz=(parseFloat(_FO2[7])>=0.5)?true:false;_rO2._Az=(parseFloat(_FO2[8])>=0.5)?true:false;_rO2.closed=(parseFloat(_FO2[9])>=0.5)?true:false;_rO2._2v=~~parseFloat(_FO2[10]);break;}}this._oO2.push(_rO2);}}};_3A.prototype._G8=function(_Mq){var _jF=_ml(_Mq,true);if(_jF!==null&&_jF!==undefined){this._AO2(_jF);}else {var _bv=_671(_Mq);var self=this;var _GO2=new XMLHttpRequest();_GO2.open("GET",_bv,false);_GO2.onload=function(){if(_GO2.readyState==4&&_GO2.status==200){self._AO2(_GO2.responseText);}};_GO2.send(null);
}};_3A.prototype._zd=function(kind){this._oO2.push({_sO2:_8O2,_tO2:kind});};_3A.prototype._Bd=function(){this._oO2.push({_sO2:_9O2});};_3A.prototype.Vertex=function(x,y,z){this._oO2.push({_sO2:_aO2,x:x,y:y,z:z});};_3A.prototype._6A=function(x,y,z,_L4,alpha){this._oO2.push({_sO2:_bO2,x:x,y:y,z:z,color:_L4,alpha:alpha});};_3A.prototype._7A=function(x,y,z,_Hb,_Ib){this._oO2.push({_sO2:_cO2,x:x,y:y,z:z,_m5:_Hb,_n5:_Ib});};_3A.prototype._8A=function(x,y,z,_Hb,_Ib,_L4,alpha){this._oO2.push({_sO2:_dO2,
x:x,y:y,z:z,_m5:_Hb,_n5:_Ib,color:_L4,alpha:alpha});};_3A.prototype._9A=function(x,y,z,_Sb,_Tb,_Ub){this._oO2.push({_sO2:_eO2,x:x,y:y,z:z,_Sb:_Sb,_Tb:_Tb,_Ub:_Ub});};_3A.prototype._aA=function(x,y,z,_Sb,_Tb,_Ub,_L4,alpha){this._oO2.push({_sO2:_fO2,x:x,y:y,z:z,_Sb:_Sb,_Tb:_Tb,_Ub:_Ub,color:_L4,alpha:alpha});};_3A.prototype._bA=function(x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib){this._oO2.push({_sO2:_gO2,x:x,y:y,z:z,_Sb:_Sb,_Tb:_Tb,_Ub:_Ub,_m5:_Hb,_n5:_Ib});};_3A.prototype._cA=function(x,y,z,_Sb,_Tb,_Ub,_Hb,_Ib,_L4,
alpha){this._oO2.push({_sO2:_hO2,x:x,y:y,z:z,_Sb:_Sb,_Tb:_Tb,_Ub:_Ub,_m5:_Hb,_n5:_Ib,color:_L4,alpha:alpha});};_3A.prototype._dA=function(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v){this._oO2.push({_sO2:_iO2,_L6:_L6,_M6:_M6,_Yu:_Yu,_N6:_N6,_O6:_O6,_Zu:_Zu,_zz:__u,_Az:_0v});};_3A.prototype._eA=function(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,closed,_2v){this._oO2.push({_sO2:_jO2,_L6:_L6,_M6:_M6,_Yu:_Yu,_N6:_N6,_O6:_O6,_Zu:_Zu,_zz:__u,_Az:_0v,closed:closed,_2v:_2v});};_3A.prototype._fA=function(_L6,_M6,_Yu,_N6,_O6,_Zu,
__u,_0v,closed,_2v){this._oO2.push({_sO2:_kO2,_L6:_L6,_M6:_M6,_Yu:_Yu,_N6:_N6,_O6:_O6,_Zu:_Zu,_zz:__u,_Az:_0v,closed:closed,_2v:_2v});};_3A.prototype._gA=function(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v,_2v){this._oO2.push({_sO2:_lO2,_L6:_L6,_M6:_M6,_Yu:_Yu,_N6:_N6,_O6:_O6,_Zu:_Zu,_zz:__u,_Az:_0v,_2v:_2v});};_3A.prototype._hA=function(_L6,_M6,_Yu,_N6,_O6,_Zu,__u,_0v){this._oO2.push({_sO2:_mO2,_L6:_L6,_M6:_M6,_Yu:_Yu,_N6:_N6,_O6:_O6,_Zu:_Zu,_zz:__u,_Az:_0v});};_3A.prototype._iA=function(_L6,_M6,_Yu,_N6,_O6,
_Zu,__u,_0v){this._oO2.push({_sO2:_nO2,_L6:_L6,_M6:_M6,_Yu:_Yu,_N6:_N6,_O6:_O6,_Zu:_Zu,_zz:__u,_Az:_0v});};_3A.prototype._HO2=function(){this._IO2=new _Gc(_Hc,_s8._Ic(_s8._Wc),false);this._IO2._tO2=-1;this._IO2._JO2=null;};_3A.prototype._KO2=function(_wc){switch(_wc){case _5c:case _6c:case _8c:return true;}return false;};_3A.prototype._LO2=function(_MO2){var _NO2=this._IO2;if((_NO2._tO2!=-1)&&((_1c!=_NO2._tO2)||(_2c!=_NO2._JO2)||(this._KO2(_NO2._tO2)===false))){_NO2._2e();_MO2.push({_tO2:_vc(_NO2._tO2),
_JO2:_NO2._JO2,_OO2:_NO2});this._HO2();_NO2=this._IO2;}_NO2._o_1(_4c);_NO2._tO2=_1c;_NO2._JO2=_2c;_Cc();};_3A.prototype._PO2=function(_MO2){var _NO2=this._IO2;_NO2._2e();_MO2.push({_tO2:_vc(_NO2._tO2),_JO2:_NO2._JO2,_OO2:_NO2});_Cc();};_3A.prototype._xA1=function(_rO2,_U8,_MO2){var _QO2=__b;var self=this;__b=function(){self._LO2(_MO2);};switch(_rO2._sO2){case _iO2:_3v(_rO2._L6,_rO2._M6,_rO2._Yu,_rO2._N6,_rO2._O6,_rO2._Zu,_U8,_rO2._zz,_rO2._Az);break;case _jO2:_4v(_rO2._L6,_rO2._M6,_rO2._Yu,_rO2._N6,_rO2._O6,
_rO2._Zu,_U8,_rO2._zz,_rO2._Az,_rO2.closed,_rO2._2v);break;case _kO2:_5v(_rO2._L6,_rO2._M6,_rO2._Yu,_rO2._N6,_rO2._O6,_rO2._Zu,_U8,_rO2._zz,_rO2._Az,_rO2.closed,_rO2._2v);break;case _lO2:_1v(_rO2._L6,_rO2._M6,_rO2._Yu,_rO2._N6,_rO2._O6,_rO2._Zu,_U8,_rO2._zz,_rO2._Az,_rO2._2v);break;case _mO2:_6v(_rO2._L6,_rO2._M6,_rO2._Yu,_rO2._N6,_rO2._O6,_rO2._Zu,_U8,_rO2._zz,_rO2._Az);break;case _nO2:_Xu(_rO2._L6,_rO2._M6,_rO2._Yu,_rO2._N6,_rO2._O6,_rO2._Zu,_U8,_rO2._zz,_rO2._Az);break;}__b=_QO2;};_3A.prototype._a9=function(x,
y,z,_U8){var i,_kh=new _Zy();_kh._lA(x,y,z);var _rA=_sA(_kA);var _K6=new _Zy();_K6.Multiply(_kh,_rA);_jA(_kA,_K6);var colour=((_Kc*255.0)<<24)|(_Lc&0x00ffffff);var _RO2=this._pO2[colour];if(_RO2===undefined){_RO2=[];this._pO2[colour]=_RO2;}if(_RO2[_U8]===undefined){_RO2[_U8]=[];var _D8=_RO2[_U8];this._HO2();for(var i=0;i<this._oO2.length;i++){var _rO2=this._oO2[i];switch(_rO2._sO2){case _8O2:_Kb(_rO2._tO2,_U8);break;case _9O2:this._LO2(_D8);break;case _aO2:_Lb(_rO2.x,_rO2.y,_rO2.z);break;case _bO2:_Mb(_rO2.x,
_rO2.y,_rO2.z,_rO2.color,_rO2.alpha);break;case _cO2:_Ob(_rO2.x,_rO2.y,_rO2.z,_rO2._m5,_rO2._n5);break;case _dO2:_Pb(_rO2.x,_rO2.y,_rO2.z,_rO2._m5,_rO2._n5,_rO2.color,_rO2.alpha);break;case _eO2:_Rb(_rO2.x,_rO2.y,_rO2.z,_rO2._Sb,_rO2._Tb,_rO2._Ub);break;case _fO2:_Vb(_rO2.x,_rO2.y,_rO2.z,_rO2._Sb,_rO2._Tb,_rO2._Ub,_rO2.color,_rO2.alpha);break;case _gO2:_Xb(_rO2.x,_rO2.y,_rO2.z,_rO2._Sb,_rO2._Tb,_rO2._Ub,_rO2._m5,_rO2._n5);break;case _hO2:_Yb(_rO2.x,_rO2.y,_rO2.z,_rO2._Sb,_rO2._Tb,_rO2._Ub,_rO2._m5,_rO2._n5,
_rO2.color,_rO2.alpha);break;case _iO2:case _jO2:case _kO2:case _lO2:case _mO2:case _nO2:this._xA1(_rO2,_U8,_D8);break;}}this._PO2(_D8);this._IO2=null;}var _SO2=_RO2[_U8];for(i=0;i<_SO2.length;i++){var _TO2=_SO2[i];var _Vc=_TO2._JO2?_TO2._JO2._Ba:null;_s8._9e(_TO2._tO2,_Vc,_TO2._OO2,0);}_jA(_kA,_rA);};/*@constructor */function _801(_UO2){var _yk=arguments;var _zk=arguments.length;this._Kk=[];this.stack=[];this.length=0;this._E8=0;if(_zk>0){for(var i=0;i<_zk;i++){this._Kk[i]=null;this.stack.push(i);}}}_801.prototype._ZF2=function(){
var _I6;if(this.stack.length===0){_I6=this._Kk.length;this._Kk[_I6]=null;return _I6;}return this.stack.pop();};_801.prototype._Df=function(_VO2){var index=this._ZF2();this._Kk[index]=_VO2;this._E8++;this.length=this._Kk.length;return index;};_801.prototype._26=function(_kU){var _WO2=null;if(_kU>=0&&_kU<this._Kk.length){_WO2=this._Kk[_kU];}if(_WO2===undefined)_WO2=null;return _WO2;};_801.prototype._nS=function(_XO2){for(var _V6=0;_V6<this._Kk.length;_V6++){if(this._Kk[_V6]==_XO2)return _V6;}return -1;};_801.prototype._SQ=function(_XO2){
var index=this._nS(_XO2);if(index<0)return;this._Kk[index]=null;this.stack.push(index);this._E8--;};_801.prototype._uj=function(_kU){if(_kU<0||_kU>=this._Kk.length)return;this._Kk[_kU]=null;this.stack.push(_kU);this._E8--;};_801.prototype._Tf=function(){this._Kk=[];this.stack=[];this._E8=0;this.length=this._Kk.length;};_801.prototype.Set=function(_74,__3){if(_74<0||_74>=this._Kk.length)return;this._Kk[_74]=__3;};/*@constructor */function _Lr(_YO2){_ZO2.call(this);this.__type="[CurvePoint]";this._KP=0;
this.__O2=0;this._0P2=0;this._1P2=0;this._2P2=0;this._3P2=0;if((_YO2!=null)&&(_YO2!=undefined)){this._KP=_YO2.x;this.__O2=_YO2.value;this._0P2=_YO2.tx0;this._1P2=_YO2.ty0;this._2P2=_YO2.tx1;this._3P2=_YO2.ty1;}this._4P2();Object.defineProperties(this,{gmlposx:{enumerable:true,get :function(){return this._KP;},set :function(__3){this._KP=yyGetReal(__3);this._4P2();}},gmlvalue:{enumerable:true,get :function(){return this.__O2;},set :function(__3){this.__O2=yyGetReal(__3);this._4P2();}}});}var _5P2=[];/*@constructor */function _Dr(_YO2){
_ZO2.call(this);this.__type="[AnimCurveChannel]";this._zr="";this._6P2=0;this._7P2=0;this._8P2=0;this._9P2=[];this._aP2=0;this._bP2=[];if((_YO2!=null)&&(_YO2!=undefined)){this._zr=_YO2.name;this._6P2=_YO2.function;this._7P2=_YO2.iterations;this._8P2=_YO2.points.length;this._9P2=[];for(var _J62=0;_J62<this._8P2;++_J62){this._9P2[_J62]=new _Lr(_YO2.points[_J62]);}}this._4P2();Object.defineProperties(this,{gmlname:{enumerable:true,get :function(){return this._zr;},set :function(__3){this._zr=yyGetString(__3);
}},gmltype:{enumerable:true,get :function(){return this._6P2;},set :function(__3){__3=yyGetInt32(__3);__3=_W6(__3,0);this._6P2=__3;this._cP2();this._dP2=_eP2();}},gmliterations:{enumerable:true,get :function(){return this._7P2;},set :function(__3){__3=yyGetInt32(__3);__3=_W6(__3,0);this._7P2=__3;this._cP2();this._dP2=_eP2();}},gmlnumPoints:{enumerable:true,get :function(){return this._8P2;}},gmlpoints:{enumerable:true,get :function(){return this._9P2;},set :function(__3){if(__3 instanceof Array){this._9P2=__3;
this._8P2=__3.length;this._cP2();this._dP2=_eP2();}else {throw new Error("value must be an array of channels");}}}});this._Er=function(_Q5){if(this._fP2()){this._gP2();this._dP2=_hP2();}if(_Q5<0.0)_Q5=0.0;if(_Q5>1.0)_Q5=1.0;var start=0;var end=this._aP2-1;var _1j=end>>1;while(_1j!=start){if(this._bP2[_1j]._KP>_Q5){end=_1j;}else {start=_1j;}_1j=(start+end)>>1;}var _L6=this._bP2[_1j]._KP;var _N6=this._bP2[_1j+1]._KP;if(_L6==_N6){return this._bP2[_1j].__O2;}var _4q=this._bP2[_1j].__O2;var _5q=this._bP2[_1j+1].__O2;
var _VI1=(_Q5-_L6)/(_N6-_L6);var _re=((_5q-_4q)*_VI1)+_4q;return _re;};this._gP2=function(_I_,_iP2,_jP2){if(_I_==undefined)_I_=false;if(_iP2==undefined)_iP2=true;if(_jP2==undefined)_jP2=true;this._cP2();if(this._6P2==_kP2){this._lP2(_I_,_iP2,_jP2);}else if(this._6P2==_mP2){this._nP2();}else {var _Wo2=this._8P2;for(var _17=0;_17<_Wo2;_17++){var _oP2=this._pP2();_oP2._KP=this._9P2[_17]._KP;_oP2.__O2=this._9P2[_17].__O2;}}for(var i=0;i<_Wo2;i++){this._dP2=_W6(this._dP2,this._9P2[i]._dP2);}};this._lP2=function(_I_,
_iP2,_jP2){var _Wo2=this._8P2;if(_Wo2<2){_55("Cannot evaluate catmull-rom animation curve, a minimum of 2 points is required");return;}var _qP2=_Wo2+2;var scale=1.0;var offset=0.0;if(_jP2){var _Ri=this._9P2[0].__O2;var _Si=_Ri;for(var i=1;i<_Wo2;i++){_Ri=_X6(_Ri,this._9P2[i].__O2);_Si=_W6(_Si,this._9P2[i].__O2);}var _Qu=_Si-_Ri;offset=_Ri;if(_Qu>1.0)scale=_Qu;var _rP2=1.0/scale;var _Nj=2;for(var i=0;i<_Wo2;i++){_5P2[_Nj++]=this._9P2[i]._KP;_5P2[_Nj++]=(this._9P2[i].__O2-offset)*_rP2;}}else {_Nj=2;for(var i=0;
i<_Wo2;i++){_5P2[_Nj++]=this._9P2[i]._KP;_5P2[_Nj++]=this._9P2[i].__O2;}}_5P2[0]=_5P2[2];_5P2[1]=_5P2[3];var c=_qP2*2;_5P2[c-2]=_5P2[c-4];_5P2[c-1]=_5P2[c-3];var alpha=0.5;var end=(_I_==true)?_qP2:_qP2-3;for(var i=0;i<end;++i){var _Qo1=i,_Ho1=i+1,_Io1=i+2,_sP2=i+3;var _tP2=_5P2[_Qo1*2];var _Hl2=_5P2[_Ho1*2];var _Jl2=_5P2[_Io1*2];var _Ll2=_5P2[_sP2*2];var _uP2=_5P2[_Qo1*2+1];var _Il2=_5P2[_Ho1*2+1];var _Kl2=_5P2[_Io1*2+1];var _Ml2=_5P2[_sP2*2+1];var _rs1=_vP2(0,_tP2,_uP2,_Hl2,_Il2,alpha);var _ss1=_vP2(_rs1,_Hl2,
_Il2,_Jl2,_Kl2,alpha);var _Ul2=_vP2(_ss1,_Jl2,_Kl2,_Ll2,_Ml2,alpha);var step=(_ss1-_rs1)/this._7P2;var _p6=_Hl2;var _q6=_Jl2;for(var _Y6=_rs1;_Y6<=_ss1;_Y6+=step){var _wP2=(_rs1-_Y6)/(_rs1)*_tP2+(_Y6)/(_rs1)*_Hl2;var _xP2=(_rs1-_Y6)/(_rs1)*_uP2+(_Y6)/(_rs1)*_Il2;var _yP2=(_ss1-_Y6)/(_ss1-_rs1)*_Hl2+(_Y6-_rs1)/(_ss1-_rs1)*_Jl2;var _zP2=(_ss1-_Y6)/(_ss1-_rs1)*_Il2+(_Y6-_rs1)/(_ss1-_rs1)*_Kl2;var _AP2=(_Ul2-_Y6)/(_Ul2-_ss1)*_Jl2+(_Y6-_ss1)/(_Ul2-_ss1)*_Ll2;var _BP2=(_Ul2-_Y6)/(_Ul2-_ss1)*_Kl2+(_Y6-_ss1)/(_Ul2-_ss1)*_Ml2;
var _CP2=(_ss1-_Y6)/(_ss1)*_wP2+(_Y6)/(_ss1)*_yP2;var _DP2=(_ss1-_Y6)/(_ss1)*_xP2+(_Y6)/(_ss1)*_zP2;var _EP2=(_Ul2-_Y6)/(_Ul2-_rs1)*_yP2+(_Y6-_rs1)/(_Ul2-_rs1)*_AP2;var _FP2=(_Ul2-_Y6)/(_Ul2-_rs1)*_zP2+(_Y6-_rs1)/(_Ul2-_rs1)*_BP2;var _Nt=(_ss1-_Y6)/(_ss1-_rs1)*_CP2+(_Y6-_rs1)/(_ss1-_rs1)*_EP2;var _Ot=(_ss1-_Y6)/(_ss1-_rs1)*_DP2+(_Y6-_rs1)/(_ss1-_rs1)*_FP2;if(_iP2){_Nt=_W6(_Nt,_p6);_Nt=_X6(_Nt,_q6);_p6=_Nt;}var _oP2=this._pP2();_oP2._KP=_Nt;_oP2.__O2=(_Ot*scale)+offset;}}if(_I_==false){var _oP2=this._pP2();
_oP2._KP=this._9P2[_Wo2-1]._KP;_oP2.__O2=this._9P2[_Wo2-1].__O2;}};this._nP2=function(){var _Wo2=this._8P2;if(_Wo2<2){_55("Cannot evaluate bezier animation curve, a minimum of 2 points is required");return;}var _3Y=this._7P2*2;var _Nc1=1.0/_3Y;for(var i=0;i<_Wo2-1;++i){var _Xo=this._9P2[i];var _GP2=this._9P2[i+1];var _tP2=_Xo._KP;var _uP2=_Xo.__O2;var _Hl2=_Xo._KP+_Xo._2P2;var _Il2=_Xo.__O2+_Xo._3P2;var _Jl2=_GP2._KP+_GP2._0P2;var _Kl2=_GP2.__O2+_GP2._1P2;var _Ll2=_GP2._KP;var _Ml2=_GP2.__O2;for(var _17=0;_17<_3Y;
++_17){var _Y6=_17*_Nc1;var _ss1=_Y6*_Y6;var _Ul2=_ss1*_Y6;var _kh=1-_Y6;var _HP2=_kh*_kh;var _IP2=_HP2*_kh;var _Yo1=(_tP2*_IP2)+(3*_Hl2*_HP2*_Y6)+(3*_Jl2*_kh*_ss1)+(_Ll2*_Ul2);var _Zo1=(_uP2*_IP2)+(3*_Il2*_HP2*_Y6)+(3*_Kl2*_kh*_ss1)+(_Ml2*_Ul2);var _oP2=this._pP2();_oP2._KP=_Yo1;_oP2.__O2=_Zo1;}}var _JP2=this._9P2[_Wo2-1];var _oP2=this._pP2();_oP2._KP=_JP2._KP;_oP2.__O2=_JP2.__O2;};this._cP2=function(){this._aP2=0;};this._KP2=function(_LP2){if(this._fP2()){this._gP2();this._dP2=_hP2();}_LP2._Wo2=this._aP2;
_LP2._bP2=this._bP2;return _LP2;};this._pP2=function(){var _MP2=new _Lr();if(this._bP2==undefined){this._bP2=[];}this._bP2[this._aP2]=_MP2;this._aP2=this._aP2+1;return _MP2;};this._fP2=function(){if(this._aP2==0){return true;}else {if(this._NP2<_hP2()){var _cc1=false;for(var i=0;i<this._Wo2;i++){if((this._9P2[i]!=null)&&(this._9P2[i]._QU1(this._dP2))){_cc1=true;break;}}this._NP2=_hP2();return _cc1;}else {return false;}}};this._OP2=function(){var _cc1=false;for(var i=0;i<this._Wo2;i++){if((this._9P2[i]!=null)&&(this._9P2[i]._QU1(this._dP2))){
_cc1=true;break;}}if(_cc1){this._gP2();}};}/*@constructor */function _Jr(_YO2){_ZO2.call(this);this.__type="[AnimCurve]";this.pName="";this._PP2=0;this._wr=0;this._yr=[];this._Gr=false;if((_YO2!=null)&&(_YO2!=undefined)){this.pName=_YO2.pName;this._PP2=_YO2.graphType;this._wr=_YO2.channels.length;this._yr=[];for(var _QP2=0;_QP2<this._wr;++_QP2){this._yr[_QP2]=new _Dr(_YO2.channels[_QP2]);}this._Gr=true;}this._4P2();Object.defineProperties(this,{gmlname:{enumerable:true,get :function(){return this.pName;
},set :function(__3){this.pName=yyGetString(__3);this._QU1(this._dP2);this._dP2=_eP2();}},gmlnumChannels:{enumerable:true,get :function(){return this._wr;}},gmlgraphType:{enumerable:true,get :function(){return this._PP2;},set :function(__3){this._PP2=yyGetInt32(__3);}},gmlchannels:{enumerable:true,get :function(){return this._yr;},set :function(__3){if(__3 instanceof Array){this._yr=__3;this._wr=__3.length;this._QU1(this._dP2);this._dP2=_eP2();}else {throw new Error("value must be an array of channels");}}}});
this._OP2=function(){var _RP2=this._dP2;for(var i=0;i<this._wr;i++){if((this._yr[i]!=null)&&(this._yr[i]._QU1(_RP2))){this._dP2=_W6(this._dP2,this._yr[i]._dP2);}}};}function _vP2(_SP2,_b7,_c7,_D6,_E6,_A9){var _G4=(_D6-_b7)*(_D6-_b7)+(_E6-_c7)*(_E6-_c7);if(_G4==0.0)_G4=0.0001;var _F4=Math.sqrt(_G4);var c=Math.pow(_F4,_A9);return c+_SP2;}_Jr.prototype._Er=function(_Q3,_TP2,_UP2,_VP2,_WP2,_XP2){if(_XP2==undefined)_XP2=1.0;var _YP2=this._yr[_TP2];var _ZP2={_Wo2:0,_bP2:[]};_YP2._KP2(_ZP2);var _y6=_ZP2._Wo2;var __P2=_ZP2._bP2;
for(var i=0;i<_y6;i++){if(__P2[i]!=null){var _oP2=_Q3._pP2(_UP2);_oP2._KP=_VP2+__P2[i]._KP*_WP2;_oP2.__O2=__P2[i].__O2*_XP2;}}};/*@constructor */function _HG2(){this.AnimCurves=[];}_HG2.prototype._Df=function(_YO2){var _Qr=null;if(_YO2!=null){_Qr=new _Jr(_YO2);}this.AnimCurves[this.AnimCurves.length]=_Qr;};_HG2.prototype._Fr=function(){var _Qr=new _Jr();var i;for(i=0;i<this.AnimCurves.length;i++){if(this.AnimCurves[i]==null){this.AnimCurves[i]=_Qr;return _Qr;}}this.AnimCurves[this.AnimCurves.length]=_Qr;
return _Qr;};_HG2.prototype._Hr=function(_0Q2){if(typeof(_0Q2)=="object"){var i;for(i=0;i<this.AnimCurves.length;i++){if(this.AnimCurves[i]==_0Q2){this.AnimCurves[i]=null;return;}}}else {if((_0Q2>=0)&&(_1Q2<this.AnimCurves.length)){this.AnimCurves[_0Q2]=null;return;}}};_HG2.prototype._26=function(_S4){if((_S4<0)||(_S4>=this.AnimCurves.length)){return undefined;}return this.AnimCurves[_S4];};_HG2.prototype._sr=function(_S4){if((_S4<0)||(_S4>=this.AnimCurves.length)){return undefined;}return this.AnimCurves[_S4];
};_HG2.prototype._Kr=function(_0Q2){if((typeof(_0Q2)=="object")&&(_0Q2 instanceof _Jr)){var i;for(i=0;i<this.AnimCurves.length;i++){if(this.AnimCurves[i]==_0Q2){return true;}}}return false;};_HG2.prototype._2Q2=function(_b4){for(var i=0;i<this.AnimCurves.length;i++){if(this.AnimCurves[i].pName==_b4){return i;}}return -1;};function _fJ(_74){var _pr=_rr._26(_74);if(_pr!==undefined&&_pr!==null)return true;return false;}function _gJ(_74){var _pr=_rr._26(_74);if(_pr!==undefined&&_pr!==null)return _pr.pName;return "";
}var _3Q2=0,_4Q2=1,_Gb1=2,_Qs=3,_6b1=4,_tM=5,_xE=6,_5Q2=7,_ZY=8,_oa1=9,_Ef=10,_6Q2=0,_rE=1,_vE=-1,_jM=0,_7Q2=1,_hM=-1;var _8Q2=[];var _9Q2=[];function _aQ2(_Sk,_9V1){_8Q2.push(_Sk);_9Q2.push(_9V1);}function _qE(_Sk){var i=0;for(i=0;i<_8Q2.length;i++){if(_8Q2[i]==_Sk){var _Bf=_9Q2[i];_9Q2.splice(i,1);_8Q2.splice(i,1);return _Bf;}}return undefined;}/*@constructor */function _bQ2(){this._cQ2="";this._dQ2=-1;this._Gf=0;this._tl=null;this._eQ2=_3Q2;this._Hf=false;}function _Os(_D3){var __4,_25,_Bf=_qE(_D3.currentTarget);
if(!_Bf)return;_Bf._Hf=true;_Bf._Gf=_rE;if(_Bf._eQ2==_Gb1){var _3F=_16._26(_Bf._dQ2);if(_3F===null)return;if(!_3F._05)return;if(!_3F._05[0])return;if(!_3F._05[0]._95)return;_25=_3F._05[0]._95;_25._Ba=undefined;var w=_25.width;var h=_25.height;var _fQ2=Math.floor(w/_3F._T6);var x=0;_3F.width=_fQ2;_3F.height=h;_3F._MN.right=_fQ2;_3F._MN.bottom=h;_3F._gb1();for(var i=0;i<_3F._T6;i++){__4=_3F._05[i];__4.x=x;__4.w=_fQ2;__4.h=h;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4._D8=[];__4._E8=0;
__4._F8=4;x+=_fQ2;}return;}if(_Bf._eQ2==_Qs){var _Qr=_Wq._Or(_Bf._dQ2);if(_Qr===null)return;__4=_Qr._Tr;_25=__4._95;_25._Ba=undefined;__4.w=_25.width;__4.h=_25.height;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4._D8=[];__4._E8=0;__4._F8=4;return;}if(_Bf._eQ2==_6b1){_Bf._tl.complete=true;var _5b1=_bn._26(_Bf._dQ2);_5b1._C91(_r71[_Bf._cQ2]);return;}if(_Bf._eQ2==_5Q2){var _Pz=_Bf._tl;if(_Pz.status!=200){_Bf._Gf=_Pz.status;}else {var _Ha=_XM._26(_Bf._tl._gQ2);var offset=_Bf._tl._hQ2;
var _iQ2=false;var size=_Bf._tl._jQ2;var _Ji=_Bf._tl.response;if(_Ji){var _kQ2=new Uint8Array(_Ji);var _ld=0;if(size==-1){size=_kQ2.byteLength;_iQ2=true;_ld=_Ha._eQ2;_Ha._eQ2=_7k;}if(size>_kQ2.byteLength)size=_kQ2.byteLength;var _lQ2=buffer_tell(_Bf._tl._gQ2);_Ha._3Z(_gk,offset);for(var i=0;i<_kQ2.byteLength;i++){var _G4=_kQ2[i];_Ha._1N(_2N,_G4);}_Ha._3Z(_gk,_lQ2);if(_iQ2)_Ha._eQ2=_ld;}}return;}}function _Ps(_D3){var _Bf=_qE(_D3.currentTarget);if(!_Bf)return;_Bf._Hf=true;_Bf._Gf=_vE;}/*@constructor */function _JG2(){
this._Kk=new _801(5);}_JG2.prototype._BX=function(){return this._Kk;};_JG2.prototype._Df=function(_gg,_el,_ld,_mQ2){var _Bf=new _bQ2();_Bf._dQ2=_gg;_Bf._cQ2=_el;_Bf._tl=_mQ2;_Bf._eQ2=_ld;this._Kk._Df(_Bf);_aQ2(_mQ2,_Bf);return _Bf;};_JG2.prototype._nQ2=function(){var map=ds_map_create();g_pBuiltIn.async_load=map;var _Kk=this._Kk._Kk;for(var i=0;i<_Kk.length;i++){var _Bf=_Kk[i];if(_Bf!==null){if(_Bf._Hf){ds_map_clear(map);if(_Bf._eQ2==_ZY){var _1F=_Bf._tl;for(var prop in _1F){if(_1F.hasOwnProperty(prop)){ds_map_add(map,
prop,_1F[prop]);}}}else if(_Bf._eQ2==_5Q2){ds_map_add(map,"filename",_Bf._cQ2);ds_map_add(map,"url",_Bf._cQ2);}else if(_Bf._eQ2==_tM){ds_map_add(map,"filename","");ds_map_add(map,"url",_Bf._cQ2);ds_map_add(map,"result",_Bf._iM);ds_map_add(map,"http_status",_Bf._mM);ds_map_add(map,"response_headers",_Bf._nM);}else if(_Bf._eQ2==_xE){ds_map_add(map,"username",_Bf._nE);ds_map_add(map,"password",_Bf._oE);ds_map_add(map,"url","");ds_map_add(map,"result",_Bf.result);ds_map_add(map,"value",_Bf.value);ds_map_add(map,
"http_status",0);}else if(_Bf._eQ2==_oa1){ds_map_add(map,"queue_id",_Bf._H71);ds_map_add(map,"buffer_id",_Bf._pa1);ds_map_add(map,"queue_shutdown",_Bf._ra1);}else if(_Bf._eQ2==_Ef){ds_map_add(map,"event_type",_Bf.event_type);ds_map_add(map,"pad_index",_Bf._Ff);}else {ds_map_add(map,"url","");ds_map_add(map,"result","");ds_map_add(map,"http_status",0);ds_map_add(map,"filename",_Bf._cQ2);}if(_Bf._eQ2!=_ZY){ds_map_add(map,"id",_Bf._dQ2);ds_map_add(map,"status",_Bf._Gf);}if(_Bf._eQ2==_4Q2)_H3._I3(_cx2,
0);else if(_Bf._eQ2==_Gb1)_H3._I3(_cx2,0);else if(_Bf._eQ2==_Qs)_H3._I3(_cx2,0);else if(_Bf._eQ2==_6b1)_H3._I3(_ex2,0);else if(_Bf._eQ2==_tM)_H3._I3(_gx2,0);else if(_Bf._eQ2==_xE)_H3._I3(_ix2,0);else if(_Bf._eQ2==_5Q2)_H3._I3(_G91,0);else if(_Bf._eQ2==_ZY)_H3._I3(_mx2,0);else if(_Bf._eQ2==_oa1)_H3._I3(_tx2,0);else if(_Bf._eQ2==_Ef)_H3._I3(_m71,0);this._Kk._uj(i);if(_Bf._eQ2==_tM){ds_map_destroy(_Bf._nM);}if(_Bf._eQ2==_ZY&&_Bf._tl.type==_DY){buffer_delete(_Bf._tl.buffer);}}}}ds_map_destroy(map);g_pBuiltIn.async_load=-1;
};/*@constructor */function _2s(){this.__type="[Background]";this.pName="";this.transparent=false;this.smooth=false;this.preload=false;this._Tr=null;this.tilewidth=0;this.tileheight=0;this.tilehsep=0;this.tilevsep=0;this.tilecolumns=0;this.frames=0;this.tilecount=0;this.framelength=0;this.framedata=[];}function _oQ2(_YO2){var _hs=new _2s();_hs.pName=_YO2.pName;if(_YO2.transparent!=undefined)_hs.transparent=_YO2.transparent;if(_YO2.smooth!=undefined)_hs.smooth=_YO2.smooth;if(_YO2.preload!=undefined)_hs.preload=_YO2.preload;
_hs._Tr=_pQ2(_YO2.TPEntryIndex);if(_YO2.tilewidth!=undefined)_hs.tilewidth=_YO2.tilewidth;if(_YO2.tileheight!=undefined)_hs.tileheight=_YO2.tileheight;if(_YO2.tilehsep!=undefined)_hs.tilehsep=_YO2.tilehsep;if(_YO2.tilevsep!=undefined)_hs.tilevsep=_YO2.tilevsep;if(_YO2.tilecolumns!=undefined)_hs.tilecolumns=_YO2.tilecolumns;if(_YO2.frames!=undefined)_hs.frames=_YO2.frames;if(_YO2.tilecount!=undefined)_hs.tilecount=_YO2.tilecount;if(_YO2.framelength!=undefined)_hs.framelength=_YO2.framelength;for(var i=0;
i<_YO2.frames*_YO2.tilecount;i++){if(_YO2.framedata[i]!=undefined)_hs.framedata[i]=_YO2.framedata[i];}return _hs;}/*@constructor */function _qQ2(_YO2){this._Tf();if(_YO2.visible!=undefined)this.visible=_YO2.visible;if(_YO2.foreground!=undefined)this.foreground=_YO2.foreground;if(_YO2.index!=undefined)this.index=_YO2.index;if(_YO2.x!=undefined)this.x=_YO2.x;if(_YO2.y!=undefined)this.y=_YO2.y;if(_YO2.htiled!=undefined)this._TI2=_YO2.htiled;if(_YO2.vtiled!=undefined)this._UI2=_YO2.vtiled;if(_YO2.hspeed!=undefined)this._VI2=_YO2.hspeed;
if(_YO2.vspeed!=undefined)this._WI2=_YO2.vspeed;if(_YO2.stretch!=undefined)this.stretch=_YO2.stretch;if(_YO2.alpha!=undefined)this.alpha=_YO2.alpha;if(_YO2._dP!=undefined)this._dP=_YO2._dP;if(_YO2.tilewidth!=undefined)this.tilewidth=_YO2.tilewidth;if(_YO2.tileheight!=undefined)this.tileheight=_YO2.tileheight;if(_YO2.tilehsep!=undefined)this.tilehsep=_YO2.tilehsep;if(_YO2.tilevsep!=undefined)this.tilevsep=_YO2.tilevsep;if(_YO2.tilecolumns!=undefined)this.tilecolumns=_YO2.tilecolumns;if(_YO2.frames!=undefined)this.frames=_YO2.frames;
if(_YO2.tilecount!=undefined)this.tilecount=_YO2.tilecount;if(_YO2._rQ2!=undefined)this._rQ2=_YO2._rQ2;if(_YO2._sQ2!=undefined)this._sQ2=_YO2._sQ2;}_qQ2.prototype._Tf=function(){this.visible=false;this.foreground=false;this.index=-1;this.x=0;this.y=0;this._TI2=true;this._UI2=true;this._VI2=0;this._WI2=0;this._bP=1;this._cP=1;this.stretch=false;this.alpha=1.0;this._dP=0xffffff;};/*@constructor */function _CG2(){this.images=[];this._Nr=[];}_CG2.prototype._Or=function(_74){return this.images[_74];};_CG2.prototype._26=function(_74){
return this._Nr[_74];};_CG2.prototype._es=function(_74){if(this.images[_74]!=undefined){this.images[_74]=undefined;}};_CG2.prototype._Tf=function(){this._Nr=[];};_CG2.prototype._AH2=function(_YO2){var _Qr=null;if(_YO2!=null){_Qr=_oQ2(_YO2);}return this._4s(_Qr);};_CG2.prototype._4s=function(_tQ2){var i=this.images.length;this.images[i]=_tQ2;return i;};_CG2.prototype._ms=function(_74,_tQ2){this.images[_74]=_tQ2;};_CG2.prototype._Df=function(_YO2){var _Qr=null;if(_YO2!=null){_Qr=new _qQ2(_YO2);}this._Nr[this._Nr.length]=_Qr;
};var _uQ2=-1,_vQ2=-2,_wQ2=-3,_xQ2=-4,_yQ2=-5;var _2Z=0,_7k=1,_zQ2=2,_va1=3,_AQ2=4;var _BQ2=0,_2N=1,_CQ2=2,_wa1=3,_1a1=4,_8k=5,_hk=6,_DQ2=7,_w82=8,_EQ2=9,_FQ2=10,_GQ2=11,_HQ2=12,_IQ2=13;var _gk=0,_JQ2=1,_ua1=2;function _KQ2(data,_LQ2,_RF2,_MQ2,_NQ2,_OQ2){var _uh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _vh,_wh,_xh,_6h,_yh,_zh,_Ah,_Bh;var i=0;var _Ch=_MQ2;var _YH="";var _PQ2=Math.floor(_OQ2/3);i=_PQ2*4;var _QQ2=_OQ2%3;if(!data){return data;}data+='';do {_6h=_yh=_zh=_Ah=-1;while(_6h<0){
_6h=_uh.indexOf(data.charAt(i++));}while(_yh<0){_yh=_uh.indexOf(data.charAt(i++));}while(_zh<0){_zh=_uh.indexOf(data.charAt(i++));}while(_Ah<0){_Ah=_uh.indexOf(data.charAt(i++));}var _RQ2=(_6h<<2)|(_yh>>4);var _SQ2=((_yh&15)<<4)|(_zh>>2);var _TQ2=((_zh&3)<<6)|_Ah;_RF2[_Ch++]=_RQ2;if(_Ch>=_LQ2)return _RF2;if(_zh!=64){_RF2[_Ch++]=_SQ2;if(_Ch>=_LQ2)return _RF2;}if(_Ah!=64){_RF2[_Ch++]=_TQ2;if(_Ch>=_LQ2)return _RF2;}}while(i<data.length);var _UQ2=_Ch;if(_NQ2&&_UQ2<_LQ2){_RF2[_UQ2++]='\0';}return _RF2;}function _VQ2(_nI,
length){var _WQ2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _pI="";var _RQ2,_SQ2,_TQ2="";var _XQ2,_YQ2,_ZQ2,__Q2="";var i=0;do {_RQ2=_nI.charCodeAt(i++);_SQ2=_nI.charCodeAt(i++);_TQ2=_nI.charCodeAt(i++);_XQ2=_RQ2>>2;_YQ2=((_RQ2&3)<<4)|(_SQ2>>4);_ZQ2=((_SQ2&15)<<2)|(_TQ2>>6);__Q2=_TQ2&63;if(isNaN(_SQ2)){_ZQ2=__Q2=64;}else if(isNaN(_TQ2)){__Q2=64;}_pI=_pI+_WQ2.charAt(_XQ2)+_WQ2.charAt(_YQ2)+_WQ2.charAt(_ZQ2)+_WQ2.charAt(__Q2);_RQ2=_SQ2=_TQ2="";_XQ2=_YQ2=_ZQ2=__Q2="";}while(i<length);
return _pI;}function _WU1(_7d){var size=1;while(size<=1024){if(_7d<=size)return size;size=size<<1;}return 1024;}/*@constructor */function _0R2(_7d,_ld,_1R2,_2R2){_1R2=_WU1(_1R2&0x1ff);this._3R2=_7d+_1R2;this._eQ2=_ld;this._4R2=_7d;this._5R2=_1R2;this._6R2=0;this._YM=0;this._7R2=0;this.__M=new ArrayBuffer(_7d);this._PZ=new DataView(this.__M);if(_2R2!=undefined&&_2R2.length>0){var _8R2=_X6(_2R2.length,_7d);this._7R2=_8R2;var _9R2=new Uint8Array(this.__M);for(var i=0;i<_8R2;i++){_9R2[i]=_2R2[i];}}}function _aR2(_ld){
switch(_ld){case _2N:case _CQ2:case _FQ2:return 1;case _wa1:case _1a1:case _DQ2:return 2;case _8k:case _hk:case _w82:return 4;case _EQ2:return 8;}return -1;}_0R2.prototype._bR2=function(_t_1){var _cR2=new ArrayBuffer(_t_1);var _dR2=new Uint8Array(this.__M);var _eR2=new Uint8Array(_cR2);if(this.__M.byteLength>_t_1){for(var i=0;i<_t_1;i++){_eR2[i]=_dR2[i];}}else {_eR2.set(_dR2);}this.__M=_cR2;this._PZ=new DataView(this.__M);this._4R2=_t_1;this._fR2(-1);};_0R2.prototype._fR2=function(_7d,_gR2){if(_7d==undefined)_7d=-1;if(_gR2==undefined)_gR2=false;
var size=_7d;if(size==-1)size=this._YM;if(_gR2){this._7R2=size;}else {this._7R2=_W6(this._7R2,size);this._7R2=_X6(this._7R2,this._4R2);}};function _VH(__n){var _nh="";for(var i=0;i<__n.length;i++){var _0d1=__n.charCodeAt(i);if(_0d1<0x80){_nh+=String.fromCharCode(_0d1&0x7f);}else if(_0d1<0x0800){_nh+=String.fromCharCode((((_0d1>>6)&0x1f)|0xc0));_nh+=String.fromCharCode((_0d1&0x3f)|0x80);}else if(_0d1<0x10000){_nh+=String.fromCharCode(((_0d1>>12)&0x0f)|0xe0);_nh+=String.fromCharCode(((_0d1>>6)&0x3f)|0x80);
_nh+=String.fromCharCode((_0d1&0x3f)|0x80);}else {_nh+=String.fromCharCode(((_0d1>>18)&0x07)|0xf0);_nh+=String.fromCharCode(((_0d1>>12)&0x3f)|0x80);_nh+=String.fromCharCode(((_0d1>>6)&0x3f)|0x80);_nh+=String.fromCharCode((_0d1&0x3f)|0x80);}}return _nh;}_0R2.prototype._hR2=function(_ld){this._YM=(((this._YM+this._6R2)+(this._5R2-1))&~(this._5R2-1))-this._6R2;if(this._YM>=this._4R2&&this._eQ2==_zQ2){while(this._YM>=this._4R2){this._iR2();this._YM-=this._4R2;}}if(this._YM>=this._4R2)return(_ld==_GQ2)?"":_wQ2;
var _rb;switch(_ld){case _FQ2:_rb=this._PZ.getUint8(this._YM++);if(_rb==1){_rb=true;}else {_rb=false;}break;case _2N:{_rb=this._PZ.getUint8(this._YM++);}break;case _GQ2:case _IQ2:{_rb="";var chr;var _XH=0;while(this._YM<this._7R2){var _n5=0;chr=-1;_XH=this._PZ.getUint8(this._YM++,true);if((_XH&0x80)==0){_n5=_XH;}else if((_XH&0xe0)==0xc0){_n5=(_XH&0x1f)<<6;_XH=this._PZ.getUint8(this._YM++,true);_n5|=(_XH&0x3f);}else if((_XH&0xf0)==0xe0){_n5=(_XH&0x0f)<<12;_XH=this._PZ.getUint8(this._YM++,true);_n5|=(_XH&0x3f)<<6;
_XH=this._PZ.getUint8(this._YM++,true);_n5|=(_XH&0x3f);}else {_n5=(_XH&0x07)<<18;_XH=this._PZ.getUint8(this._YM++,true);_n5|=(_XH&0x3f)<<12;_XH=this._PZ.getUint8(this._YM++,true);_n5|=(_XH&0x3f)<<6;_XH=this._PZ.getUint8(this._YM++,true);_n5|=(_XH&0x3f);chr=String.fromCharCode((_n5>>10)+0xD7C0)+String.fromCharCode((_n5&0x3FF)|0xDC00);}if(_n5==0x00)break;if(chr<0)chr=String.fromCharCode(_n5);_rb+=chr;}}break;case _CQ2:_rb=this._PZ.getInt8(this._YM++);break;case _wa1:_rb=this._PZ.getUint16(this._YM,true);
this._YM+=2;break;case _1a1:_rb=this._PZ.getInt16(this._YM,true);this._YM+=2;break;case _hk:_rb=this._PZ.getInt32(this._YM,true);this._YM+=4;break;case _8k:_rb=new Long(this._PZ.getUint32(this._YM,true),0);this._YM+=4;break;case _w82:_rb=this._PZ.getFloat32(this._YM,true);this._YM+=4;break;case _EQ2:_rb=this._PZ.getFloat64(this._YM,true);this._YM+=8;break;case _HQ2:var _yc1=this._PZ.getUint32(this._YM,true);this._YM+=4;var _Yc1=this._PZ.getUint32(this._YM,true);this._YM+=4;_rb=new Long(_yc1,_Yc1);break;}return _rb;
};_0R2.prototype._iR2=function(){this._6R2=(this._6R2+this._4R2)%this._5R2;};function _jR2(_ld){var _kR2=0;switch(_ld){case _FQ2:case _2N:case _CQ2:_kR2=1;break;case _wa1:case _1a1:_kR2=2;break;case _hk:case _8k:case _w82:_kR2=4;break;case _EQ2:case _HQ2:_kR2=8;break;}return _kR2;}function _lR2(){this.i=new Uint32Array(2);this._mR2=new Uint32Array(4);this._Yt=new Uint8Array(64);this._nR2=new Uint8Array(16);this.i[0]=this.i[1]=0;this._mR2[0]=this._mR2[1]=this._mR2[2]=this._mR2[3]=0;for(var i=0;i<64;i++)this._Yt[i]=0;
for(var i=0;i<16;i++)this._nR2[i]=0;}_lR2.prototype._oR2=function(){var _k7="0123456789abcdef";var _qi="";for(var h=0;h<16;h++){var _F4=this._nR2[h];_qi+=_k7[((_F4>>4)&0xf)];_qi+=_k7[(_F4&0xf)];}return _qi;};function _pR2(){var _qR2=new _lR2();_qR2.i[0]=_qR2.i[1]=0;_qR2._mR2[0]=0x67452301;_qR2._mR2[1]=0xefcdab89;_qR2._mR2[2]=0x98badcfe;_qR2._mR2[3]=0x10325476;return _qR2;}var _rR2=new Uint32Array(16);function _sR2(x,y,z){_rR2[0]=x;_rR2[1]=y;_rR2[2]=z;return(((_rR2[0])&(_rR2[1]))|((~_rR2[0])&(_rR2[2])));}function _tR2(x,
y,z){_rR2[0]=x;_rR2[1]=y;_rR2[2]=z;return(((_rR2[0])&(_rR2[2]))|((_rR2[1])&(~_rR2[2])));}function _uR2(x,y,z){_rR2[0]=x;_rR2[1]=y;_rR2[2]=z;return((_rR2[0])^(_rR2[1])^(_rR2[2]));}function _vR2(x,y,z){_rR2[0]=x;_rR2[1]=y;_rR2[2]=z;return((_rR2[1])^((_rR2[0])|(~_rR2[2])));}var _wR2=new Uint32Array(2);function _xR2(x,_I6){_wR2[0]=x;_wR2[1]=((_wR2[0]<<_I6)&0xffffffff)|((_wR2[0]>>(32-_I6))&((1<<_I6)-1));return _wR2[1];}var _yR2=new Uint32Array(7);function _zR2(_G4,_F4,c,_tm,x,_qi,_Ch){_yR2[0]=_G4;_yR2[1]=_F4;
_yR2[2]=c;_yR2[3]=_tm;_yR2[4]=x;_yR2[5]=_qi;_yR2[6]=_Ch;_yR2[0]+=_sR2(_yR2[1],_yR2[2],_yR2[3])+_yR2[4]+(_yR2[6]);_yR2[0]=_xR2(_yR2[0],_yR2[5]);_yR2[0]+=_yR2[1];return _yR2[0];}function _AR2(_G4,_F4,c,_tm,x,_qi,_Ch){_yR2[0]=_G4;_yR2[1]=_F4;_yR2[2]=c;_yR2[3]=_tm;_yR2[4]=x;_yR2[5]=_qi;_yR2[6]=_Ch;_yR2[0]+=_tR2(_yR2[1],_yR2[2],_yR2[3])+_yR2[4]+(_yR2[6]);_yR2[0]=_xR2(_yR2[0],_yR2[5]);_yR2[0]+=_yR2[1];return _yR2[0];}function _BR2(_G4,_F4,c,_tm,x,_qi,_Ch){_yR2[0]=_G4;_yR2[1]=_F4;_yR2[2]=c;_yR2[3]=_tm;_yR2[4]=x;
_yR2[5]=_qi;_yR2[6]=_Ch;_yR2[0]+=_uR2(_yR2[1],_yR2[2],_yR2[3])+_yR2[4]+(_yR2[6]);_yR2[0]=_xR2(_yR2[0],_yR2[5]);_yR2[0]+=_yR2[1];return _yR2[0];}function _CR2(_G4,_F4,c,_tm,x,_qi,_Ch){_yR2[0]=_G4;_yR2[1]=_F4;_yR2[2]=c;_yR2[3]=_tm;_yR2[4]=x;_yR2[5]=_qi;_yR2[6]=_Ch;_yR2[0]+=_vR2(_yR2[1],_yR2[2],_yR2[3])+_yR2[4]+(_yR2[6]);_yR2[0]=_xR2(_yR2[0],_yR2[5]);_yR2[0]+=_yR2[1];return _yR2[0];}function _z32(_DR2,_ER2){var _G4=_DR2[0],_F4=_DR2[1],c=_DR2[2],_tm=_DR2[3];var _FR2=7;var _GR2=12;var _HR2=17;var _IR2=22;_G4=_zR2(_G4,
_F4,c,_tm,_ER2[0],_FR2,0xD76AA478);_tm=_zR2(_tm,_G4,_F4,c,_ER2[1],_GR2,0xE8C7B756);c=_zR2(c,_tm,_G4,_F4,_ER2[2],_HR2,0x242070DB);_F4=_zR2(_F4,c,_tm,_G4,_ER2[3],_IR2,0xC1BDCEEE);_G4=_zR2(_G4,_F4,c,_tm,_ER2[4],_FR2,0xF57C0FAF);_tm=_zR2(_tm,_G4,_F4,c,_ER2[5],_GR2,0x4787C62A);c=_zR2(c,_tm,_G4,_F4,_ER2[6],_HR2,0xA8304613);_F4=_zR2(_F4,c,_tm,_G4,_ER2[7],_IR2,0xFD469501);_G4=_zR2(_G4,_F4,c,_tm,_ER2[8],_FR2,0x698098D8);_tm=_zR2(_tm,_G4,_F4,c,_ER2[9],_GR2,0x8B44F7AF);c=_zR2(c,_tm,_G4,_F4,_ER2[10],_HR2,0xFFFF5BB1);
_F4=_zR2(_F4,c,_tm,_G4,_ER2[11],_IR2,0x895CD7BE);_G4=_zR2(_G4,_F4,c,_tm,_ER2[12],_FR2,0x6B901122);_tm=_zR2(_tm,_G4,_F4,c,_ER2[13],_GR2,0xFD987193);c=_zR2(c,_tm,_G4,_F4,_ER2[14],_HR2,0xA679438E);_F4=_zR2(_F4,c,_tm,_G4,_ER2[15],_IR2,0x49B40821);var _JR2=5;var _KR2=9;var _LR2=14;var _MR2=20;_G4=_AR2(_G4,_F4,c,_tm,_ER2[1],_JR2,0xF61E2562);_tm=_AR2(_tm,_G4,_F4,c,_ER2[6],_KR2,0xC040B340);c=_AR2(c,_tm,_G4,_F4,_ER2[11],_LR2,0x265E5A51);_F4=_AR2(_F4,c,_tm,_G4,_ER2[0],_MR2,0xE9B6C7AA);_G4=_AR2(_G4,_F4,c,_tm,_ER2[5],
_JR2,0xD62F105D);_tm=_AR2(_tm,_G4,_F4,c,_ER2[10],_KR2,0x02441453);c=_AR2(c,_tm,_G4,_F4,_ER2[15],_LR2,0xD8A1E681);_F4=_AR2(_F4,c,_tm,_G4,_ER2[4],_MR2,0xE7D3FBC8);_G4=_AR2(_G4,_F4,c,_tm,_ER2[9],_JR2,0x21E1CDE6);_tm=_AR2(_tm,_G4,_F4,c,_ER2[14],_KR2,0xC33707D6);c=_AR2(c,_tm,_G4,_F4,_ER2[3],_LR2,0xF4D50D87);_F4=_AR2(_F4,c,_tm,_G4,_ER2[8],_MR2,0x455A14ED);_G4=_AR2(_G4,_F4,c,_tm,_ER2[13],_JR2,0xA9E3E905);_tm=_AR2(_tm,_G4,_F4,c,_ER2[2],_KR2,0xFCEFA3F8);c=_AR2(c,_tm,_G4,_F4,_ER2[7],_LR2,0x676F02D9);_F4=_AR2(_F4,
c,_tm,_G4,_ER2[12],_MR2,0x8D2A4C8A);var _NR2=4;var _OR2=11;var _PR2=16;var _QR2=23;_G4=_BR2(_G4,_F4,c,_tm,_ER2[5],_NR2,0xFFFA3942);_tm=_BR2(_tm,_G4,_F4,c,_ER2[8],_OR2,0x8771F681);c=_BR2(c,_tm,_G4,_F4,_ER2[11],_PR2,0x6D9D6122);_F4=_BR2(_F4,c,_tm,_G4,_ER2[14],_QR2,0xFDE5380C);_G4=_BR2(_G4,_F4,c,_tm,_ER2[1],_NR2,0xA4BEEA44);_tm=_BR2(_tm,_G4,_F4,c,_ER2[4],_OR2,0x4BDECFA9);c=_BR2(c,_tm,_G4,_F4,_ER2[7],_PR2,0xF6BB4B60);_F4=_BR2(_F4,c,_tm,_G4,_ER2[10],_QR2,0xBEBFBC70);_G4=_BR2(_G4,_F4,c,_tm,_ER2[13],_NR2,0x289B7EC6);
_tm=_BR2(_tm,_G4,_F4,c,_ER2[0],_OR2,0xEAA127FA);c=_BR2(c,_tm,_G4,_F4,_ER2[3],_PR2,0xD4EF3085);_F4=_BR2(_F4,c,_tm,_G4,_ER2[6],_QR2,0x04881D05);_G4=_BR2(_G4,_F4,c,_tm,_ER2[9],_NR2,0xD9D4D039);_tm=_BR2(_tm,_G4,_F4,c,_ER2[12],_OR2,0xE6DB99E5);c=_BR2(c,_tm,_G4,_F4,_ER2[15],_PR2,0x1FA27CF8);_F4=_BR2(_F4,c,_tm,_G4,_ER2[2],_QR2,0xC4AC5665);var _RR2=6;var _SR2=10;var _TR2=15;var _UR2=21;_G4=_CR2(_G4,_F4,c,_tm,_ER2[0],_RR2,0xF4292244);_tm=_CR2(_tm,_G4,_F4,c,_ER2[7],_SR2,0x432AFF97);c=_CR2(c,_tm,_G4,_F4,_ER2[14],
_TR2,0xAB9423A7);_F4=_CR2(_F4,c,_tm,_G4,_ER2[5],_UR2,0xFC93A039);_G4=_CR2(_G4,_F4,c,_tm,_ER2[12],_RR2,0x655B59C3);_tm=_CR2(_tm,_G4,_F4,c,_ER2[3],_SR2,0x8F0CCC92);c=_CR2(c,_tm,_G4,_F4,_ER2[10],_TR2,0xFFEFF47D);_F4=_CR2(_F4,c,_tm,_G4,_ER2[1],_UR2,0x85845DD1);_G4=_CR2(_G4,_F4,c,_tm,_ER2[8],_RR2,0x6FA87E4F);_tm=_CR2(_tm,_G4,_F4,c,_ER2[15],_SR2,0xFE2CE6E0);c=_CR2(c,_tm,_G4,_F4,_ER2[6],_TR2,0xA3014314);_F4=_CR2(_F4,c,_tm,_G4,_ER2[13],_UR2,0x4E0811A1);_G4=_CR2(_G4,_F4,c,_tm,_ER2[4],_RR2,0xF7537E82);_tm=_CR2(_tm,
_G4,_F4,c,_ER2[11],_SR2,0xBD3AF235);c=_CR2(c,_tm,_G4,_F4,_ER2[2],_TR2,0x2AD7D2BB);_F4=_CR2(_F4,c,_tm,_G4,_ER2[9],_UR2,0xEB86D391);_DR2[0]+=_G4;_DR2[1]+=_F4;_DR2[2]+=c;_DR2[3]+=_tm;}function _VR2(_WR2,_XR2,_i51,_YR2){var _ER2=new Uint32Array(16);var _ZR2;var i,_7F;var _74=0;_ZR2=(_WR2.i[0]>>3)&0x3F;if((_WR2.i[0]+((_YR2<<3)&0xffffffff))<_WR2.i[0]){_WR2.i[1]++;}_WR2.i[0]+=(_YR2<<3)&0xffffffff;_WR2.i[1]+=(_YR2>>29)&0xffffffff;while(_YR2--){_WR2._Yt[_ZR2++]=_XR2[_74++];if(_ZR2==0x40){for(i=0,_7F=0;i<16;i++,
_7F+=4)_ER2[i]=(((0xffffffff&_WR2._Yt[_7F+3])<<24)|((0xffffffff&_WR2._Yt[_7F+2])<<16)|((0xffffffff&_WR2._Yt[_7F+1])<<8)|(0xffffffff&_WR2._Yt[_7F]));_z32(_WR2._mR2,_ER2);_ZR2=0;}}}var __R2=new Uint8Array(64);function _0S2(_WR2){var _ER2=new Uint32Array(16);var _ZR2;var i,_7F;var _1S2;_ER2[14]=_WR2.i[0];_ER2[15]=_WR2.i[1];_ZR2=((_WR2.i[0]>>3)&0x3F);_1S2=(_ZR2<56)?(56-_ZR2):(120-_ZR2);__R2[0]=0x80;_VR2(_WR2,__R2,0,_1S2);for(i=0,_7F=0;i<14;i++,_7F+=4){_ER2[i]=((~~_WR2._Yt[_7F+3])<<24)|((~~_WR2._Yt[_7F+2])<<16)|((~~_WR2._Yt[_7F+1])<<8)|(~~_WR2._Yt[_7F]);
}_z32(_WR2._mR2,_ER2);for(i=0,_7F=0;i<4;i++,_7F+=4){_WR2._nR2[_7F]=(_WR2._mR2[i]&0xFF);_WR2._nR2[_7F+1]=((_WR2._mR2[i]>>8)&0xFF);_WR2._nR2[_7F+2]=((_WR2._mR2[i]>>16)&0xFF);_WR2._nR2[_7F+3]=((_WR2._mR2[i]>>24)&0xFF);}}function _2S2(_3S2,_7d,_i51){var _qR2=_pR2();var _4S2=_7d;while(_4S2>0){var _5S2=_X6(_4S2,_7d-_i51);_VR2(_qR2,_3S2,_i51,_5S2);_i51=0;_4S2-=_5S2;}_0S2(_qR2);return _qR2._oR2();}function _6S2(){var _JB1=-306674912;var _qI=new Array(256);for(var i=0;i<256;i++){var crc=i;var _7S2=8;while(--_7S2>=0){
if((crc&1)!=0){crc=crc>>>1^_JB1;}else crc>>>=1;}_qI[i]=crc;}return _qI;}var _8S2=_6S2();function _9S2(_F4,_Lk,_0j){var crc=0xffffffff;var _qI=_8S2;var i=_Lk;for(var _aS2=_Lk+_0j;i<_aS2;i++)crc=(_qI[(crc^_F4[i])&255]^((crc>>>8)&0x00ffffff))>>>0;return crc;}_0R2.prototype._bS2=function(_i51,_7d){if(this._4R2==0)return;if(_7d<0)_7d=this._4R2;if(this._eQ2==_zQ2){while(_i51<0)_i51+=this._4R2;while(_i51>=this._4R2)_i51-=this._4R2;}else {if(_i51<0)_i51=0;if(_i51>=this._4R2)_i51=this._4R2-1;if((_i51+_7d)>this._4R2)_7d=this._4R2-_i51;
}if(_7d>this._4R2-_i51)return "";else {return _9S2(new Uint8Array(this.__M,_i51,_7d),0,_7d);}};_0R2.prototype._cS2=function(_i51,_7d){if(this._4R2==0)return;if(_7d<0)_7d=this._4R2;if(this._eQ2==_zQ2){while(_i51<0)_i51+=this._4R2;while(_i51>=this._4R2)_i51-=this._4R2;}else {if(_i51<0)_i51=0;if(_i51>=this._4R2)_i51=this._4R2-1;if((_i51+_7d)>this._4R2)_7d=this._4R2-_i51;}if(_7d>this._4R2-_i51)return "";else {return _2S2(new Uint8Array(this.__M,_i51,_7d),_7d,0);}};_0R2.prototype._dS2=function(_i51,_7d){if(this._4R2==0)return;
if(_7d<0)_7d=this._4R2;if(this._eQ2==_zQ2){while(_i51<0)_i51+=this._4R2;while(_i51>=this._4R2)_i51-=this._4R2;}else {if(_i51<0)_i51=0;if(_i51>=this._4R2)_i51=this._4R2-1;if((_i51+_7d)>this._4R2)_7d=this._4R2-_i51;}if(_7d>this._4R2-_i51)return "";else return sha1_string_utf8(String.fromCharCode.apply(null,new Uint8Array(this.__M,_i51,_7d)));};_0R2.prototype._eS2=function(filename,offset,size){_il(filename,this._fS2(offset,size));};_0R2.prototype._gS2=function(_i51,_7d){if(this._4R2==0)return;if(_7d<0)_7d=this._4R2;
_i51=clamp(_i51,0,this._4R2-1);_7d=clamp(_7d,0,this._4R2-_i51);if(_7d<=0)return;var _hS2=new Uint8Array(this.__M,_i51,_7d);var _iS2=new Zlib.Deflate(_hS2);var _jS2=_iS2.compress();return _jS2;};_0R2.prototype._kS2=function(){result=undefined;try{var _9V1=new Uint8Array(this.__M,0,this._7R2);var _Wn2=new Zlib.Inflate(_9V1);var result=_Wn2.decompress();}catch(_FD){show_debug_message("buffer decompress exception: "+_FD.message);}return result;};_0R2.prototype._fS2=function(_i51,_7d){if(this._4R2==0)return;if(_7d<0)_7d=this._4R2;
if(_7d==0)return "";if(this._eQ2==_zQ2){while(_i51<0)_i51+=this._4R2;while(_i51>=this._4R2)_i51-=this._4R2;}else {if(_i51<0)_i51=0;if(_i51>=this._4R2)_i51=this._4R2-1;if((_i51+_7d)>this._4R2)_7d=this._4R2-_i51;}if(_7d>this._4R2-_i51){return "";}else {var _hS2=new Uint8Array(this.__M,_i51,_7d);var _SM="";for(var i=0;i<_7d;i++){_SM+=String.fromCharCode(_hS2[i]);}return _VQ2(_SM,_7d);}};_0R2.prototype._lS2=function(_mS2,_i51){var _9R2=new Uint8Array(this.__M);return _KQ2(_mS2,_9R2.length-_i51,_9R2,_i51,false,0);
};_0R2.prototype._1N=function(_ld,_Ln){var _nS2;var size=0;this._YM=(((this._YM+this._6R2)+(this._5R2-1))&~(this._5R2-1))-this._6R2;if(this._YM>=this._4R2&&this._eQ2==_zQ2){while(this._YM>=this._4R2){this._iR2();this._YM-=this._4R2;}}if((this._YM>=this._4R2)&&(this._eQ2!=_7k)){return _vQ2;}var _kR2=_jR2(_ld);if((_ld===_GQ2)||(_ld===_IQ2)){_nS2=_VH(_Ln);_kR2=_nS2.length;if(_ld===_GQ2)_kR2++;}if((this._YM+_kR2)>this._4R2){if(this._eQ2==_7k){var _oS2=this._4R2;var _t_1=this._4R2;while((this._YM+_kR2)>_t_1){
_t_1=(_t_1<<1);}this._bR2(_t_1);}else {if(this._eQ2!=_zQ2){return _vQ2;}}}switch(_ld){case _FQ2:if(_Ln==true){_Ln=1;}else {_Ln=0;}case _2N:{this._PZ.setUint8(this._YM,_Ln);this._YM++;}break;case _GQ2:case _IQ2:{for(var i=0;i<_nS2.length;i++){var _0d1=_nS2.charCodeAt(i)&0xff;this._PZ.setUint8(this._YM++,_0d1,true);}if(_ld===_GQ2){this._PZ.setUint8(this._YM++,0,true);}}break;case _CQ2:this._PZ.setInt8(this._YM,_Ln);this._YM++;break;case _wa1:this._PZ.setUint16(this._YM,_Ln,true);this._YM+=2;break;case _1a1:this._PZ.setInt16(this._YM,
_Ln,true);this._YM+=2;break;case _hk:this._PZ.setInt32(this._YM,_Ln,true);this._YM+=4;break;case _8k:this._PZ.setUint32(this._YM,_Ln,true);this._YM+=4;break;case _w82:this._PZ.setFloat32(this._YM,_Ln,true);this._YM+=4;break;case _EQ2:this._PZ.setFloat64(this._YM,_Ln,true);this._YM+=8;break;case _HQ2:var _pS2=yyGetInt64(_Ln);this._PZ.setUint32(this._YM,_pS2._yc1,true);this._YM+=4;this._PZ.setUint32(this._YM,_pS2._Yc1,true);this._YM+=4;break;}this._fR2(-1);return 0;};_0R2.prototype._qS2=function(_ld,_i51){
var size=_jR2(_ld);if(_i51<0)return undefined;if(this._eQ2!=_zQ2){if(_i51>(this._4R2-size))return undefined;}else {while(_i51>=this._4R2){_i51-=this._4R2;}}var _rb;switch(_ld){case _FQ2:_rb=this._PZ.getUint8(_i51);if(_rb==1){_rb=true;}else {_rb=false;}break;case _2N:{_rb=this._PZ.getUint8(_i51);}break;case _CQ2:_rb=this._PZ.getInt8(_i51);break;case _wa1:_rb=this._PZ.getUint16(_i51,true);break;case _1a1:_rb=this._PZ.getInt16(_i51,true);break;case _hk:_rb=this._PZ.getInt32(_i51,true);break;case _8k:_rb=this._PZ.getUint32(_i51,
true);break;case _w82:_rb=this._PZ.getFloat32(_i51,true);break;case _EQ2:_rb=this._PZ.getFloat64(_i51,true);break;case _HQ2:var _yc1=this._PZ.getUint32(_i51,true);var _Yc1=this._PZ.getUint32(_i51+4,true);_rb=new Long(_yc1,_Yc1);break;case _GQ2:case _IQ2:{_rb="";var chr;var _XH=0;var _rS2=_i51;while(_rS2<this._7R2){var _n5=0;chr=-1;_XH=this._PZ.getUint8(_rS2++,true);if((_XH&0x80)==0){_n5=_XH;}else if((_XH&0xe0)==0xc0){_n5=(_XH&0x1f)<<6;_XH=this._PZ.getUint8(_rS2++,true);_n5|=(_XH&0x3f);}else if((_XH&0xf0)==0xe0){
_n5=(_XH&0x0f)<<12;_XH=this._PZ.getUint8(_rS2++,true);_n5|=(_XH&0x3f)<<6;_XH=this._PZ.getUint8(_rS2++,true);_n5|=(_XH&0x3f);}else {_n5=(_XH&0x07)<<18;_XH=this._PZ.getUint8(_rS2++,true);_n5|=(_XH&0x3f)<<12;_XH=this._PZ.getUint8(_rS2++,true);_n5|=(_XH&0x3f)<<6;_XH=this._PZ.getUint8(_rS2++,true);_n5|=(_XH&0x3f);chr=String.fromCharCode((_n5>>10)+0xD7C0)+String.fromCharCode((_n5&0x3FF)|0xDC00);}if(_n5==0x00)break;if(chr<0)chr=String.fromCharCode(_n5);_rb+=chr;}}break;}return _rb;};_0R2.prototype._sS2=function(_i51,
_7d,_ld,_Ln,_tS2,_uS2){if(this._4R2==0)return;if(_7d<0)_7d=this._4R2;if(this._eQ2==_zQ2){while(_i51<0)_i51+=this._4R2;while(_i51>=this._4R2)_i51-=this._4R2;}else {if(_i51<0)return;if(_i51>=this._4R2)return;if((_i51+_7d)>this._4R2)_7d=this._4R2-_i51;}var _9R2=new Uint8Array(this.__M);var _vS2=_i51;var _wS2=_i51;var _xS2=_vS2;var _yS2=0;var _zS2=_i51+_7d;var _AS2=_jR2(_ld);if((_ld===_GQ2)||(_ld===_IQ2)){_nS2=_VH(_Ln);_AS2=_nS2.length;if(_ld===_GQ2)_AS2++;}var _BS2;if(_tS2<=0)_BS2=true;else {_BS2=false;_AS2=_X6(_AS2,
_tS2);}var _CS2;if(((_BS2&&((_vS2%this._5R2)==0))||!_BS2)&&(_AS2<=_7d)){_CS2=true;}else {_CS2=false;}var i;while(_yS2<_7d){_wS2=_vS2%this._4R2;if(_CS2){if((_wS2+_AS2)<=this._4R2){this._DS2(_ld,_wS2,_Ln);_wS2+=_AS2;_vS2+=_AS2;this._fR2(_wS2);}else {this._DS2(_ld,_wS2,_Ln);_wS2+=_AS2;if(_wS2>=this._4R2){this._fR2(this._4R2);_wS2=0;}_vS2+=_AS2;}_yS2+=_AS2;_CS2=false;}else {var _ES2;if(_BS2)_ES2=(_vS2+(this._5R2-1))&~(this._5R2-1);else _ES2=_xS2+_tS2;if(_ES2>_zS2){_ES2=_zS2;}var _FS2=_ES2-_vS2;if(_uS2){if((_wS2+_FS2)<=this._4R2){
for(i=0;i<_FS2;i++){_9R2[_wS2+i]=0;}_wS2+=_FS2;this._fR2(_wS2);}else {var _GS2=_FS2;while(_GS2>0){var _HS2=_X6(_GS2,this._4R2-_wS2);for(i=0;i<_HS2;i++){_9R2[_wS2+i]=0;}_wS2+=_HS2;this._fR2(_wS2);_wS2=_wS2%this._4R2;_GS2-=_HS2;}}}else {_wS2+=_FS2;this._fR2(_wS2);}_vS2+=_FS2;_yS2+=_FS2;_xS2=_vS2;if((_yS2+_AS2)<=_7d){_CS2=true;}}}return;};_0R2.prototype._DS2=function(_ld,_i51,_Ln){if(_i51<0)return;var size=_jR2(_ld);if(this._eQ2!=_zQ2){if(_i51>(this._4R2-size))return 0;}else {while(_i51>=this._4R2){_i51-=this._4R2;
}}switch(_ld){case _FQ2:if(_Ln==true){_Ln=1;}else {_Ln=0;}case _2N:this._PZ.setUint8(_i51,_Ln);this._fR2(_i51+1);return;case _CQ2:this._PZ.setInt8(_i51,_Ln);this._fR2(_i51+1);return;case _wa1:this._PZ.setUint16(_i51,_Ln,true);break;case _1a1:this._PZ.setInt16(_i51,_Ln,true);break;case _hk:this._PZ.setInt32(_i51,_Ln,true);break;case _8k:this._PZ.setUint32(_i51,_Ln,true);break;case _w82:this._PZ.setFloat32(_i51,_Ln,true);break;case _EQ2:this._PZ.setFloat64(_i51,_Ln,true);break;case _HQ2:var _pS2=yyGetInt64(_Ln);
this._PZ.setUint32(_i51,_pS2._yc1,true);this._PZ.setUint32(_i51+4,_pS2._Yc1,true);break;case _GQ2:case _IQ2:{for(var i=0;i<_Ln.length;i++){var _0d1=_Ln.charCodeAt(i)&0xff;this._PZ.setUint8(_i51++,_0d1,true);}if(_ld===_GQ2){this._PZ.setUint8(_i51++,0,true);}this._fR2(_i51);}return;}this._fR2(_i51+size);};_0R2.prototype._3Z=function(_BL,_i51){switch(_BL){case _gk:if(_i51<0)_i51=0;this._YM=_i51;break;case _JQ2:this._YM+=_i51;if(this._YM<0)this._YM=0;break;case _ua1:this._YM=this._4R2-_i51;if(this._YM>this._4R2)this._YM=this._4R2;
break;}return this._YM;};function buffer_seek(buffer,_IS2,offset){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return 0;return _Ha._3Z(yyGetInt32(_IS2),yyGetInt32(offset));}function buffer_read(buffer,type){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return 0;return _Ha._hR2(yyGetInt32(type));}function buffer_peek(buffer,offset,type){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return 0;return _Ha._qS2(yyGetInt32(type),yyGetInt32(offset));}function buffer_poke(buffer,offset,type,value){var _Ha=_XM._26(yyGetInt32(buffer));
if(!_Ha)return 0;return _Ha._DS2(yyGetInt32(type),yyGetInt32(offset),value);}function buffer_create_from_vertex_buffer(_JS2,_ld,_1R2){_JS2=yyGetInt32(_JS2);if(_JS2>=_KS2.length||_JS2<0){console.log("buffer_create_from_vertex_buffer: Specified vertex buffer doesn't exist.");return -1;}_1R2=yyGetInt32(_1R2);var _NO2=_KS2[_JS2];if(_NO2){if(_NO2._bd){console.log("buffer_create_from_vertex_buffer: Can't create buffer from frozen vertex buffer.");return -1;}if(_NO2._de()==0||_NO2._Dd()==null){console.log("buffer_create_from_vertex_buffer: Can't create buffer from empty vertex buffer.");
return -1;}if(_1R2<1||_1R2>1024){console.log("buffer_create_from_vertex_buffer: Illegal alignment size");return -1;}var size=_NO2._de()*_NO2._Dd()._ud;var _LS2=buffer_create(size,yyGetInt32(_ld),_1R2);if(_LS2>=0){var _0Z=new Int8Array(_NO2._ee(),0,_NO2._de()*_NO2._Dd()._ud);var _MS2=new Int8Array(_XM._26(_LS2).__M);for(var i=0;i<size;i++)_MS2[i]=_0Z[i];return _LS2;}else {console.log("buffer_create_from_vertex_buffer: unable to create buffer");}}return -1;}function buffer_create_from_vertex_buffer_ext(_JS2,_ld,
_1R2,_NS2,_wV1){_JS2=yyGetInt32(_JS2);if(_JS2>=_KS2.length||_JS2<0){console.log("buffer_create_from_vertex_buffer_ext: Specified vertex buffer doesn't exist.");return -1;}_1R2=yyGetInt32(_1R2);var _NO2=_KS2[_JS2];if(_NO2){if(_NO2._bd){console.log("buffer_create_from_vertex_buffer_ext: Can't create buffer from frozen vertex buffer.");return -1;}if(_NO2._de()==0||_NO2._Dd()==null){console.log("buffer_create_from_vertex_buffer_ext: Can't create buffer from empty vertex buffer.");return -1;}if(_1R2<1||_1R2>1024){
console.log("buffer_create_from_vertex_buffer: Illegal alignment size");return -1;}var size=yyGetInt32(_wV1)*_NO2._Dd()._ud;var offset=yyGetInt32(_NS2)*_NO2._Dd()._ud;var _LS2=buffer_create(size,yyGetInt32(_ld),_1R2);if(_LS2>=0){var _0Z=new Int8Array(_NO2._ee(),offset,size);var _MS2=new Int8Array(_XM._26(_LS2).__M);for(var i=0;i<size;i++)_MS2[i]=_0Z[i];return _LS2;}else {console.log("buffer_create_from_vertex_buffer: unable to create buffer");}}return -1;}function buffer_copy_from_vertex_buffer(_JS2,_NS2,_wV1,
_OS2,_PS2){_JS2=yyGetInt32(_JS2);if(_JS2>=_KS2.length||_JS2<0){console.log("buffer_copy_from_vertex_buffer: Specified vertex buffer doesn't exist.");return -1;}var _NO2=_KS2[_JS2];if(_NO2){if(_NO2._bd){console.log("buffer_copy_from_vertex_buffer: Can't create buffer from frozen vertex buffer.");return -1;}if(_NO2._de()==0||_NO2._Dd()==null){console.log("buffer_copy_from_vertex_buffer: Can't create buffer from empty vertex buffer.");return -1;}var _I9=yyGetInt32(_wV1);var _QS2=yyGetInt32(_NS2);if(_I9<=0){
console.log("buffer_copy_from_vertex_buffer: specified number of vertices is invalid");return -1;}if((_QS2<0)||(_QS2>=_NO2._de())){console.log("buffer_copy_from_vertex_buffer: specified start vertex is out of range");return -1;}if((_QS2+_I9)>_NO2._de()){_I9=_NO2._de()-_QS2;}var _Ha=_XM._26(yyGetInt32(_OS2));if(!_Ha){console.log("buffer_copy_from_vertex_buffer: specified buffer does not exist");return -1;}if((_PS2<0)||(_PS2>_Ha._4R2)){console.log("buffer_copy_from_vertex_buffer: destination offset is out of range of the destination buffer");
return -1;}var size=_I9*_NO2._Dd()._ud;var offset=_QS2*_NO2._Dd()._ud;var _0Z=new Int8Array(_NO2._ee(),offset,size);var _MS2=new Int8Array(_Ha.__M);for(var i=0;i<size;i++)_MS2[i+_PS2]=_0Z[i];return _OS2;}return -1;}function buffer_create(_7d,_ld,_1R2){try{return _XM._Df(new _0R2(yyGetInt32(_7d),yyGetInt32(_ld),yyGetInt32(_1R2)));}catch(e){alert("ArrayBuffer Error : This functionality requires at least IE10 "+e);return -1;}}function _RS2(_SS2){try{return _XM._Df(new _0R2(_SS2.length,_2Z,1,_SS2));}catch(e){alert("ArrayBuffer Error : This functionality requires at least IE10 "+e);
return -1;}}function buffer_exists(_h51){var _Ha=_XM._26(yyGetInt32(_h51));if(!_Ha)return 0;return 1;}function buffer_write(_74,_ld,_Ln){var _Ha=_XM._26(yyGetInt32(_74));if(!_Ha)return _yQ2;return _Ha._1N(yyGetInt32(_ld),_Ln);}function buffer_tell(_74){var _Ha=_XM._26(yyGetInt32(_74));if(!_Ha)return _yQ2;return _Ha._YM;}function _TS2(_US2,_VS2,_WS2,_XS2,_YS2,_ZS2,__S2,_Fm,_0T2){if(_WS2<=0)return 0;if(_YS2<0)_YS2=_WS2;if(_0T2){while(_XS2<0)_XS2+=_WS2;while(_XS2>=_WS2)_XS2-=_WS2;if((_XS2+_YS2)<=_WS2)_0T2=false;}
else {if(_XS2<0)_XS2=0;if(_XS2>=_WS2)_XS2=_WS2-1;if((_XS2+_YS2)>_WS2)_YS2=_WS2-_XS2;}var _1T2=_YS2;if(!__S2){if(_US2._4R2<=0){return 0;}if(_Fm){while(_ZS2<0)_ZS2+=_US2._4R2;while(_ZS2>=_US2._4R2)_ZS2-=_US2._4R2;if((_ZS2+_1T2)<=_US2._4R2)_Fm=false;}else {if(_ZS2<0)_ZS2=0;if(_ZS2>=_US2._4R2)_ZS2=_US2._4R2-1;if((_ZS2+_1T2)>_US2._4R2)_1T2=_US2._4R2-_ZS2;}}else {if(_ZS2<0)_ZS2=0;if((_ZS2+_1T2)>_US2._4R2){var _2T2=_ZS2+_1T2;_US2._bR2(_2T2);}}var _3T2=new Uint8Array(_VS2.__M);var _9R2=new Uint8Array(_US2.__M);var i;
if(_Fm||_0T2){var _4T2=_1T2;while(_4T2>0){var _5T2=_X6(_4T2,(_US2._4R2-_ZS2));_5T2=_X6(_5T2,_WS2-_XS2);for(i=0;i<_5T2;i++){_9R2[_ZS2+i]=_3T2[_XS2+i];}_ZS2+=_5T2;this._fR2(_ZS2);_XS2+=_5T2;_ZS2=_ZS2%_US2._4R2;_XS2=_XS2%_WS2;_4T2-=_5T2;}}else {for(i=0;i<_WS2;i++){_9R2[_ZS2+i]=_3T2[_XS2+i];}_US2._fR2(_ZS2+_1T2);}return 1;}function buffer_copy(_6T2,_7T2,size,_8T2,_9T2){var _Ha=_XM._26(yyGetInt32(_6T2));if(!_Ha)return _yQ2;var _aT2=_XM._26(yyGetInt32(_8T2));if(!_aT2)return _yQ2;var _bT2;if((_aT2._eQ2==_7k)||(_aT2._4R2==0))_bT2=true;
else _bT2=false;var wrap;if(_aT2._eQ2==_zQ2)wrap=true;else wrap=false;var _cT2;if(_Ha._eQ2==_zQ2)_cT2=true;else _cT2=false;var _EZ=_TS2(_aT2,_Ha,_Ha._4R2,yyGetInt32(_7T2),yyGetInt32(size),yyGetInt32(_9T2),_bT2,wrap,_cT2);}function buffer_get_type(_74){var _Ha=_XM._26(yyGetInt32(_74));if(!_Ha)return _yQ2;return _Ha._eQ2;}function buffer_get_alignment(_74){var _Ha=_XM._26(yyGetInt32(_74));if(!_Ha)return _yQ2;return _Ha._5R2;}function buffer_get_size(_74){var _Ha=_XM._26(yyGetInt32(_74));if(!_Ha)return _yQ2;return _Ha._4R2;
}function buffer_resize(_74,_dT2){var _Ha=_XM._26(yyGetInt32(_74));if(!_Ha)return _yQ2;return _Ha._bR2(yyGetInt32(_dT2));}function buffer_sizeof(_ld){return _jR2(yyGetInt32(_ld));}function buffer_fill(buffer,offset,type,value,size){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;return _Ha._sS2(yyGetInt32(offset),yyGetInt32(size),yyGetInt32(type),value,-1,true);}function buffer_md5(buffer,offset,size){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;return _Ha._cS2(yyGetInt32(offset),yyGetInt32(size));
}function buffer_crc32(buffer,offset,size){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;return _Ha._bS2(yyGetInt32(offset),yyGetInt32(size));}function buffer_sha1(buffer,offset,size){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;return _Ha._dS2(yyGetInt32(offset),yyGetInt32(size));}function buffer_base64_encode(buffer,offset,size){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;return _Ha._fS2(yyGetInt32(offset),yyGetInt32(size));}function _eT2(c){return(_fT2(c)||(c=='+')||(c=='/'));
}function _gT2(_hT2){var _iT2=_hT2.length;var _jT2=((_iT2+3)&~3)-4;var _kT2=0;if(_jT2>0){var _ae=_jT2+1;while((_ae<=_iT2)&&(_hT2.charAt(_ae)!='=')&&_eT2(_hT2.charAt(_ae))){_kT2++;_ae++;}}var _lT2=(_jT2/4)*3;_lT2+=_kT2;return _lT2;};function buffer_base64_decode(_hT2){_hT2=yyGetString(_hT2);var _mT2=_gT2(_hT2);var _nT2=buffer_create(_mT2,_2Z,1);var _Ha=_XM._26(_nT2);if(!_Ha)return _yQ2;_Ha._lS2(_hT2,0);_Ha._fR2(_mT2,true);return _nT2;}function buffer_compress(_oT2,_i51,_7d){var _Ha=_XM._26(yyGetInt32(_oT2));if(!_Ha)return _yQ2;
var _jS2=_Ha._gS2(yyGetInt32(_i51),yyGetInt32(_7d));if(_jS2!=undefined&&_jS2.length>0){var index=_RS2(_jS2);return index;}return -1;}function buffer_decompress(_V91){var _Ha=_XM._26(yyGetInt32(_V91));if(!_Ha)return _yQ2;var _pT2=_Ha._kS2();if(_pT2!=undefined&&_pT2.length>0){var index=_RS2(_pT2);return index;}return -1;}function buffer_base64_decode_ext(buffer,_hT2,offset){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;var _mT2=_gT2(_hT2);if((offset+_mT2)>_Ha._4R2){_Ha._bR2(offset+_mT2);}_Ha._fR2(offset+_mT2);
_Ha._lS2(yyGetString(_hT2),yyGetInt32(offset));}function buffer_save(buffer,filename){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;return _Ha._eS2(yyGetString(filename),0,_Ha._4R2);}function buffer_delete(_74){_74=yyGetInt32(_74);var _Ha=_XM._26(_74);if(!_Ha)return _yQ2;_Ha.__M=null;_Ha._PZ=null;_XM._uj(_74);return 0;}function buffer_async_group_begin(){_Fb("buffer_async_group_begin()");}function buffer_async_group_option(){_Fb("buffer_async_group_option()");}function buffer_async_group_end(){return _qT2;
}var _qT2=-1;function buffer_load_async(_jl,_Mq,_i51,_7d){_jl=yyGetInt32(_jl);_Mq=yyGetString(_Mq);_i51=yyGetInt32(_i51);var _Ha=_XM._26(_jl);if(!_Ha)return -1;var _jF=_rT2(_Mq,true);if(_jF){if(_7d>=0&&_jF.length>_7d){_jF=_jF.slice(0,_7d);}var _sT2=_Ha._YM;_Ha._YM=_i51;_Ha._1N(_IQ2,_jF);_Ha._YM=_sT2;var _Bf=_Cf._Df(_jl,_Mq,_5Q2,undefined);_Bf._Hf=true;_Bf._Gf=200;_tT2=0;return _jl;}try{_Mq=_671(_Mq);var _Pz=new XMLHttpRequest();_Pz.open("GET",_Mq,true);_Pz.responseType="arraybuffer";_Pz.onload=_Os;_Pz._hQ2=_i51;
_Pz._jQ2=yyGetInt32(_7d);_Pz._uT2=_Mq;_Pz._gQ2=_jl;_Cf._Df(_jl,_Mq,_5Q2,_Pz);_Pz.send(null);_tT2=_Pz.status;}catch(e){return -1;}_qT2=_jl;return _jl;}function buffer_load(_Mq){_Mq=yyGetString(_Mq);var _vT2=true;var _jF=_rT2(_Mq,true);if(_jF==null){_jF=_rT2(_Mq,false);_vT2=false;}if(_jF==null)return -1;if(_vT2){return buffer_base64_decode(_jF);}else {var _P4=new ArrayBuffer(_jF.length);var _wT2=new Uint8Array(_P4);for(var i=0;i<_jF.length;++i){_wT2[i]=_jF.charCodeAt(i)&0xff;}return _RS2(_wT2);}}function buffer_save_ext(buffer,
filename,offset,size){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;return _Ha._eS2(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 _Bf=_Cf._Df(buffer,filename,_5Q2,undefined);_tT2=0;_Bf._Hf=true;_Bf._Gf=200;return buffer;}function buffer_load_ext(buffer,filename,offset){var _Ha=_XM._26(yyGetInt32(buffer));
var _9R2=new Uint8Array(_Ha.__M);buffer_load_partial(buffer,filename,0,_9R2.length-offset,offset)}function buffer_load_partial(buffer,filename,_7T2,_0j,_xT2){var _Ha=_XM._26(yyGetInt32(buffer));if(!_Ha)return _yQ2;filename=yyGetString(filename);_xT2=yyGetInt32(_xT2);var _vT2=true;var _jF=_rT2(filename,true);if(_jF==null){_jF=_rT2(filename,false);_vT2=false;}if(_jF==null)return -1;var _9R2=new Uint8Array(_Ha.__M);if(_vT2){var _mT2=_gT2(_jF);if((_xT2+_mT2)>_Ha._4R2){_Ha._bR2(_xT2+_mT2);_9R2=new Uint8Array(_Ha.__M);
}_Ha._fR2(_xT2+_mT2);_KQ2(_jF,_0j,_9R2,_xT2,false,yyGetInt32(_7T2));}else {var _P4=new ArrayBuffer(_jF.length);var _wT2=new Uint8Array(_P4);for(var i=0;i<_jF.length;++i){_wT2[i]=_jF.charCodeAt(i)&0xff;}var i,_17;if((_xT2+_0j)>_Ha._4R2){_Ha._bR2(_xT2+_0j);_9R2=new Uint8Array(_Ha.__M);}_Ha._fR2(_xT2+_0j);for(i=_xT2,_17=_7T2;i<_9R2.length&&_17<_wT2.length;i++,_17++){_9R2[i]=_wT2[_17];}}}function buffer_get_address(_74){var _Ha=_XM._26(yyGetInt32(_74));if(!_Ha)return undefined;return _Ha.__M;}function buffer_get_surface(_jl,
_yT2,_i51){var _Ha=_XM._26(yyGetInt32(_jl));var _8s=_Zr._26(yyGetInt32(_yT2));if(!_Ha||!_8s)return false;var data=null;var __r=_8s._4a;try{data=__r._pe1(0,0,_8s._Xc,_8s._Yc);}catch(_ek){return false;}var _zT2=data.data;_Ha._3Z(_gk,yyGetInt32(_i51));for(var i=0;i<_zT2.length;i++){_Ha._DS2(_2N,i,_zT2[i]);}return true;}function buffer_set_used_size(_74,_7d){var _Ha=_XM._26(yyGetInt32(_74));if(!_Ha)return false;_Ha._fR2(yyGetInt32(_7d));}function buffer_set_surface(_jl,_yT2,_i51){var _Ha=_XM._26(yyGetInt32(_jl));
var _8s=_Zr._26(yyGetInt32(_yT2));if(!_Ha||!_8s)return false;var data=null;var __r=_8s._4a;try{var _AT2=__r.createImageData(_8s._Xc,_8s._Yc);var data=_AT2.data;var _0j=_8s._Xc*_8s._Yc*4;for(var i=0;i<_0j;i++){data[i]=_Ha._qS2(_2N,i+_i51);}__r._BT2(_AT2,0,0);}catch(_ek){return false;}return true;}var vertex_create_buffer=function(){_Fb("vertex_create_buffer");};var vertex_create_buffer_ext=function(size){_Fb("vertex_create_buffer_ext");};var vertex_delete_buffer=function(buffer){_Fb("vertex_delete_buffer");};
var vertex_begin=function(buffer,_Hh){_Fb("vertex_begin");};var vertex_end=function(buffer){_Fb("vertex_end");};var vertex_position=function(buffer,x,y){_Fb("vertex_position");};var vertex_position_3d=function(buffer,x,y,z){_Fb("vertex_position_3d");};var vertex_colour=function(buffer,_L4,alpha){_Fb("vertex_colour");};var vertex_color=function(buffer,_L4,alpha){_Fb("vertex_color");};var _CT2=function(buffer,_D4,_E4,_F4,_G4){_Fb("vertex_rgba");};var vertex_argb=function(buffer,_D4,_E4,_F4,_G4){_Fb("vertex_argb");
};var vertex_texcoord=function(buffer,_m5,_n5){_Fb("vertex_texcoord");};var vertex_normal=function(buffer,x,y,z){_Fb("vertex_normal");};var vertex_float1=function(buffer,x){_Fb("vertex_float1");};var vertex_float2=function(buffer,x,y){_Fb("vertex_float2");};var vertex_float3=function(buffer,x,y,z){_Fb("vertex_float3");};var vertex_float4=function(buffer,x,y,z,w){_Fb("vertex_float4");};var vertex_ubyte4=function(buffer,x,y,z,w){_Fb("vertex_ubyte4");};var vertex_freeze=function(buffer){_Fb("vertex_freeze");
};var vertex_submit=function(buffer){_Fb("vertex_submit");};var vertex_get_number=function(buffer){_Fb("vertex_get_number");};var vertex_get_buffer_size=function(buffer){_Fb("vertex_get_buffer_size");};var vertex_create_buffer_from_buffer=function(buffer){_Fb("vertex_create_buffer_from_buffer");};var vertex_create_buffer_from_buffer_ext=function(buffer){_Fb("vertex_create_buffer_from_buffer_ext");};var draw_flush=function(){};var _DT2=8*1024;var _KS2=[];function _ET2(){vertex_create_buffer=_FT2;vertex_create_buffer_ext=_GT2;
vertex_create_buffer_from_buffer=_HT2;vertex_create_buffer_from_buffer_ext=_IT2;vertex_delete_buffer=_JT2;vertex_begin=_KT2;vertex_end=_LT2;vertex_position=_MT2;vertex_position_3d=_NT2;vertex_colour=_OT2;vertex_color=_OT2;_CT2=_PT2;vertex_argb=_QT2;vertex_texcoord=_RT2;vertex_normal=_ST2;vertex_float1=_TT2;vertex_float2=_UT2;vertex_float3=_VT2;vertex_float4=_WT2;vertex_ubyte4=_XT2;vertex_freeze=_YT2;vertex_submit=_ZT2;vertex_get_number=__T2;vertex_get_buffer_size=_0U2;draw_flush=_1U2;}function _IT2(_jl,
_ba1,_XS2,_2U2){_ba1=yyGetInt32(_ba1);_XS2=yyGetInt32(_XS2);_2U2=yyGetInt32(_2U2);var _k91=0;var _SY1=_s8._Ic(_ba1);var _Ha=_XM._26(yyGetInt32(_jl));if(!_Ha||!_SY1)return -1;if(_2U2==-1){_XS2=0;_k91=_Ha._7R2;_2U2=_k91/_SY1._ud;}else {_k91=_2U2*_SY1._ud;if((_k91+_XS2)>_Ha._7R2){_k91=(_Ha._7R2-_XS2);_2U2=~~(_k91/_SY1._ud);_k91=_2U2*_SY1._ud;}}var _3U2=vertex_create_buffer_ext(_k91);var _4U2=_KS2[_3U2];var _3T2=new Uint8Array(_Ha.__M);var _9R2=new Uint8Array(_4U2._ee());_4U2._zd(_ba1);var src=_XS2;for(var i=0;i<_k91;
i++){_9R2[i]=_3T2[src++];}_4U2._be(_2U2);_4U2._Bd();return _3U2;}function _HT2(_jl,_ba1){return _IT2(_jl,_ba1,0,-1);}function _FT2(){return vertex_create_buffer_ext(_DT2);}function _GT2(_7d){var _5U2=new _6d(yyGetInt32(_7d));var _6U2=_KS2.length;for(var i=0;i<_KS2;i++){if((_KS2[i]===null)||(_KS2[i]===undefined)){_6U2=i;break;}}_KS2[_6U2]=_5U2;return _6U2;}function _JT2(_jl){_KS2[yyGetInt32(_jl)]=null;}function _KT2(_jl,_ba1){_KS2[yyGetInt32(_jl)]._zd(yyGetInt32(_ba1));}function _LT2(_jl){_KS2[yyGetInt32(_jl)]._Bd();
}function _MT2(_jl,x,y){_KS2[yyGetInt32(_jl)]._Ed(yyGetReal(x),yyGetReal(y));}function _NT2(_jl,x,y,z){_KS2[yyGetInt32(_jl)]._Hd(yyGetReal(x),yyGetReal(y),yyGetReal(z));}function _OT2(_jl,_L4,alpha){_KS2[yyGetInt32(_jl)]._Jd(yyGetInt32(_L4),yyGetReal(alpha));}function _PT2(_jl,_Od){_KS2[yyGetInt32(_jl)]._Nd(yyGetInt32(_Od));}function _QT2(_jl,_Qd){_KS2[yyGetInt32(_jl)]._Pd(yyGetInt32(_Qd));}function _RT2(_jl,_m5,_n5){_KS2[yyGetInt32(_jl)]._Rd(yyGetReal(_m5),yyGetReal(_n5));}function _ST2(_jl,x,y,z){_KS2[yyGetInt32(_jl)]._Td(yyGetReal(x),
yyGetReal(y),yyGetReal(z));}function _TT2(_jl,x){_KS2[yyGetInt32(_jl)]._Vd(yyGetReal(x));}function _UT2(_jl,x,y){_KS2[yyGetInt32(_jl)]._Xd(yyGetReal(x),yyGetReal(y));}function _VT2(_jl,x,y,z){_KS2[yyGetInt32(_jl)]._Yd(yyGetReal(x),yyGetReal(y),yyGetReal(z));}function _WT2(_jl,x,y,z,w){_KS2[yyGetInt32(_jl)]._Zd(yyGetReal(x),yyGetReal(y),yyGetReal(z),yyGetReal(w));}function _XT2(_jl,x,y,z,w){_KS2[yyGetInt32(_jl)]._0e(yyGetInt32(x),yyGetInt32(y),yyGetInt32(z),yyGetInt32(w));}function _YT2(_jl){var _5U2=_KS2[yyGetInt32(_jl)];
if(_5U2){_5U2._2e();}}function _1U2(){_s8._je1();}function _ZT2(_jl,_7e,_8e){_s8._je1();var _Sc,_5U2=_KS2[yyGetInt32(_jl)];if(_5U2){if(_xa!=-1){var _mT1=_7U2[_xa]._nT1;var _RY1=_5U2._Dd();if(_RY1._od.length<_mT1._9T1.length){_Bi("Trying to use a vertex buffer with too few inputs for the seleted shader.");}}_5U2._6e(_vc(yyGetInt32(_7e)),_8e);}}function __T2(_jl){var _5U2=_KS2[yyGetInt32(_jl)];if(_5U2){return _5U2._de();}return 0;}function _0U2(_jl){var _5U2=_KS2[yyGetInt32(_jl)];if(_5U2){return _5U2._ee().byteLength;
}return 0;}/*@constructor */function _uG2(){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.delta_time=0;this._8U2=0;this.room_width=0;this.room_height=0;this.room_caption="room";this.room_speed=30;this.room_persistent=false;this.background_color=0x00000000;this.background_showcolor=false;this._9U2=false;
this._aU2=false;this._bU2=0;this._cU2=0;this._dU2=0;this._eU2=0;this._fU2=0;this._gU2=0;this._hU2=0;this._iU2=1.0;this._jU2=1.0;this._kU2=0;this._lU2=0;this._mU2=0;this._nU2=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._TK2=0;this.error_occurred=0;this.error_last=0;this.gamemaker_registered=true;this.gamemaker_pro=true;this._oU2=8.2;this.async_load=-1;this.event_data=-1;this._pU2=-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._9U2=[];this._aU2=[];this._bU2=[];this._cU2=[];this._dU2=[];this._eU2=[];this._fU2=[];this._gU2=[];this._hU2=[];this._iU2=[];this._jU2=[];this._kU2=[];this._lU2=[];this._mU2=[];this._nU2=[];}_uG2.prototype.get_argument_relative=function(_74){return _Ll;};_uG2.prototype.get_instance_id=function(_74){return _S3._yN._26(_74).id;};_uG2.prototype.get_instance_count=function(){return _S3._yN.length;};_uG2.prototype.set_view_enable=function(_7z){
_S3._3g=yyGetBool(_7z);};_uG2.prototype.get_view_enable=function(){return _S3._3g;};_uG2.prototype.get_browser_width=function(){return _VJ();};_uG2.prototype.get_browser_height=function(){return _WJ();};_uG2.prototype.get_delta_time=function(){return this.delta_time;};_uG2.prototype.get_os_type=function(){return _k61;};_uG2.prototype.get_os_device=function(){return _Ui1();};_uG2.prototype.get_os_browser=function(){return _Wi1();};_uG2.prototype.get_os_version=function(){return _Xi1();};_uG2.prototype.get_async_load=function(){
return this.async_load;};_uG2.prototype.get_event_data=function(){return this.event_data;};_uG2.prototype.get_display_aa=function(){return 0;};_uG2.prototype.get_iap_data=function(){return this._pU2;};_uG2.prototype.set_current_room=function(_zo){room_goto(yyGetInt32(_zo));};_uG2.prototype.get_current_room=function(){return _S3.id;};_uG2.prototype.setbackground_color=function(__3){_S3._qU2=this.background_color=yyGetInt32(__3);};_uG2.prototype.getbackground_color=function(){return this.background_color;
};_uG2.prototype._rU2=function(){return g_pBuiltIn.application_surface;};_uG2.prototype._sU2=function(__3){g_pBuiltIn.view_visible[0]=~~__3;};_uG2.prototype._tU2=function(__3){g_pBuiltIn.view_xview[0]=~~__3;};_uG2.prototype._uU2=function(__3){g_pBuiltIn.view_yview[0]=~~__3;};_uG2.prototype._vU2=function(__3){g_pBuiltIn.view_wview[0]=~~__3;};_uG2.prototype._wU2=function(__3){g_pBuiltIn.view_hview[0]=~~__3;};_uG2.prototype._xU2=function(__3){g_pBuiltIn.view_xport[0]=~~__3;};_uG2.prototype._yU2=function(__3){
g_pBuiltIn.view_yport[0]=~~__3;};_uG2.prototype._zU2=function(__3){g_pBuiltIn.view_wport[0]=~~__3;};_uG2.prototype._AU2=function(__3){g_pBuiltIn.view_hport[0]=~~__3;};_uG2.prototype._BU2=function(__3){g_pBuiltIn.view_angle[0]=__3;};_uG2.prototype._CU2=function(__3){g_pBuiltIn.view_hborder[0]=~~__3;};_uG2.prototype._DU2=function(__3){g_pBuiltIn.view_vborder[0]=~~__3;};_uG2.prototype._EU2=function(__3){g_pBuiltIn.view_hspeed[0]=~~__3;};_uG2.prototype._FU2=function(__3){g_pBuiltIn.view_vspeed[0]=~~__3;
};_uG2.prototype._GU2=function(__3){g_pBuiltIn.view_object[0]=~~__3;};_uG2.prototype._HU2=function(__3){g_pBuiltIn.view_surface_id[0]=~~__3;};_uG2.prototype._IU2=function(__3){return g_pBuiltIn.view_visible[0];};_uG2.prototype._JU2=function(__3){return g_pBuiltIn.view_xview[0];};_uG2.prototype._KU2=function(__3){return g_pBuiltIn.view_yview[0];};_uG2.prototype._LU2=function(__3){return g_pBuiltIn.view_wview[0];};_uG2.prototype._MU2=function(__3){return g_pBuiltIn.view_hview[0];};_uG2.prototype._NU2=function(__3){
return g_pBuiltIn.view_xport[0];};_uG2.prototype._OU2=function(__3){return g_pBuiltIn.view_yport[0];};_uG2.prototype._PU2=function(__3){return g_pBuiltIn.view_wport[0];};_uG2.prototype._QU2=function(__3){return g_pBuiltIn.view_hport[0];};_uG2.prototype._RU2=function(__3){return g_pBuiltIn.view_angle[0];};_uG2.prototype._SU2=function(__3){return g_pBuiltIn.view_hborder[0];};_uG2.prototype._TU2=function(__3){return g_pBuiltIn.view_vborder[0];};_uG2.prototype._UU2=function(__3){return g_pBuiltIn.view_hspeed[0];
};_uG2.prototype._VU2=function(__3){return g_pBuiltIn.view_vspeed[0];};_uG2.prototype._WU2=function(__3){return g_pBuiltIn.view_object[0];};_uG2.prototype._XU2=function(__3){return g_pBuiltIn.view_surface_id[0];};_uG2.prototype._YU2=function(__3){g_pBuiltIn.view_camera[0]=__3;};_uG2.prototype._ZU2=function(__3){return g_pBuiltIn.view_camera[0];};_uG2.prototype.__U2=function(__3){g_pBuiltIn._9U2[0]=__3;};_uG2.prototype._0V2=function(__3){g_pBuiltIn._aU2[0]=__3;};_uG2.prototype._1V2=function(__3){g_pBuiltIn._bU2[0]=__3;
};_uG2.prototype._2V2=function(__3){g_pBuiltIn._cU2[0]=~~__3;};_uG2.prototype._3V2=function(__3){g_pBuiltIn._dU2[0]=~~__3;};_uG2.prototype._4V2=function(__3){g_pBuiltIn._eU2[0]=~~__3;};_uG2.prototype._5V2=function(__3){g_pBuiltIn._fU2[0]=~~__3;};_uG2.prototype._6V2=function(__3){g_pBuiltIn._gU2[0]=__3;};_uG2.prototype._7V2=function(__3){g_pBuiltIn._hU2[0]=__3;};_uG2.prototype._8V2=function(__3){g_pBuiltIn._iU2[0]=__3;};_uG2.prototype._9V2=function(__3){g_pBuiltIn._jU2[0]=__3;};_uG2.prototype._aV2=function(__3){
g_pBuiltIn._kU2[0]=__3;};_uG2.prototype._bV2=function(__3){g_pBuiltIn._lU2[0]=__3;};_uG2.prototype._cV2=function(__3){g_pBuiltIn._mU2[0]=__3&0xffffff;};_uG2.prototype.setbackground_showcolor=function(__3){_S3._dV2=yyGetBool(__3);};_uG2.prototype.getbackground_showcolor=function(__3){return _S3._dV2;};_uG2.prototype._eV2=function(__3){if(__3<0)__3=0;if(__3>1)__3=1;g_pBuiltIn._nU2[0]=__3;};_uG2.prototype._fV2=function(){return g_pBuiltIn._9U2[0];};_uG2.prototype._gV2=function(){return g_pBuiltIn._aU2[0];
};_uG2.prototype._hV2=function(){return g_pBuiltIn._bU2[0];};_uG2.prototype._iV2=function(){return g_pBuiltIn._cU2[0];};_uG2.prototype._jV2=function(){return g_pBuiltIn._dU2[0];};_uG2.prototype._kV2=function(){return g_pBuiltIn._eU2[0];};_uG2.prototype._lV2=function(){return g_pBuiltIn._fU2[0];};_uG2.prototype._mV2=function(){return g_pBuiltIn._gU2[0];};_uG2.prototype._nV2=function(){return g_pBuiltIn._hU2[0];};_uG2.prototype._oV2=function(){return g_pBuiltIn._iU2[0];};_uG2.prototype._pV2=function(){return g_pBuiltIn._jU2[0];
};_uG2.prototype._qV2=function(){return g_pBuiltIn._kU2[0];};_uG2.prototype._rV2=function(){return g_pBuiltIn._lU2[0];};_uG2.prototype._sV2=function(){return g_pBuiltIn._mU2[0];};_uG2.prototype._tV2=function(){return g_pBuiltIn._nU2[0];};_uG2.prototype.set_room_speed=function(__3){__3=yyGetReal(__3);if(_U3){return _W3._iJ(__3);}else {return _S3._uV2(__3);}};_uG2.prototype.get_room_speed=function(__3){if(_U3){return _W3._X3(__3);}else {return _S3._vV2;}};_uG2.prototype.set_room_caption=function(__3){return _S3._wV2(yyGetString(__3));
};_uG2.prototype.set_room_width=function(__3){return _S3._xV2(yyGetReal(__3));};_uG2.prototype.set_room_height=function(__3){return _S3._yV2(yyGetReal(__3));};_uG2.prototype.set_room_persistent=function(__3){return _S3._Qq2(yyGetBool(__3));};_uG2.prototype.set_cursor_sprite=function(__3){_bm=__3;};_uG2.prototype.get_cursor_sprite=function(){return _bm;};_uG2.prototype.get_current_time=function(){var _Y6=get_timer();return ~~(_Y6/1000);};_uG2.prototype.get_current_year=function(){var _tm=new Date();return(_wC)?_tm.getFullYear():_tm.getUTCFullYear();
};_uG2.prototype.get_current_month=function(){var _tm=new Date();return(_wC)?_tm.getMonth()+1:_tm.getUTCMonth()+1;};_uG2.prototype.get_current_day=function(){var _tm=new Date();return(_wC)?_tm.getDate():_tm.getUTCDate();};_uG2.prototype.get_current_weekday=function(){var _tm=new Date();return(_wC)?_tm.getDay():_tm.getUTCDay();};_uG2.prototype.get_current_hour=function(){var _tm=new Date();return(_wC)?_tm.getHours():_tm.getUTCHours();};_uG2.prototype.get_current_minute=function(){var _tm=new Date();return(_wC)?_tm.getMinutes():_tm.getUTCMinutes();
};_uG2.prototype.get_current_second=function(){var _tm=new Date();return(_wC)?_tm.getSeconds():_tm.getUTCSeconds();};_uG2.prototype.get_current_event_type=function(){return _zV2(_FH);};_uG2.prototype.get_current_event_number=function(){return _AV2(_FH,_HH);};_uG2.prototype.get_current_event_object=function(){return _DH._bO;};_uG2.prototype.set_lives_function=function(_vn){var _wn=this.lives;this.lives=_Mk(yyGetReal(_vn));if((_wn>0)&&(this.lives<=0)){_xn._b6(_yn,0);}};_uG2.prototype.set_health_function=function(_Hn){
var _In=0.0;_In=this.health;this.health=yyGetReal(_Hn);if((_In>0)&&(this.health<=0)){_xn._b6(_Jn,0);}};_uG2.prototype.get_mouse_x=function(){return window_views_mouse_get_x();};_uG2.prototype.get_mouse_y=function(){return window_views_mouse_get_y();};_uG2.prototype._qj=function(_BV2){for(var _n5=0;_n5<_BV2.length;_n5++){var _ih=_BV2[_n5];this[_n5]=_ih;}};var _CV2="cleanup",_DV2="step",_EV2="layer_begin",_FV2="layer_end",_GV2="room_start",_HV2="room_end";var _4V="gmAffectsSingleLayerOnly";var _IV2="effect_";
var _JV2="_";var _KV2="filter_";var _LV2="_";var _MV2="_";var _NV2="_shader";var _OV2="_info";var _PV2=0,_QV2=1,_RV2=2;var _SV2=0,_rT=1,_TV2=2,_UV2=3,_tT=4,_VV2=5;var _WV2=0;function _XV2(){if(_WV2>=Number.MAX_SAFE_INTEGER)_WV2=0;else _WV2++;return _WV2;}/*@constructor */function _YV2(){this.__type="[EffectParameterInfo]";this.pName=null;this._ZV2=null;this.type=0;this.elements=0;this.arraysize=0;this._lQ=null;this.__V2=null;this._0W2=null;this._1W2=false;this._2W2=false;}/*@constructor */function _3W2(_YO2){
this.__type="[EffectInfo]";this.pName=null;this._ZV2=null;this._4W2=null;this.type=0;this._5W2=0;this._nQ=[];}_3W2.prototype._6W2=function(_7W2){var _8W2=JSON.parse(_7W2);this.pName=_8W2.name;this._ZV2=_8W2.displayname;this.type=_8W2.type=="filter"?_QV2:_RV2;if(this.type==_RV2){this._4W2=_8W2.name;}else {this._4W2=_8W2.name+_NV2;}var parameters=_8W2.parameters;this._5W2=parameters.length;this._nQ=[];for(var i=0;i<parameters.length;i++){var _9W2=parameters[i];var _aW2=new _YV2();_aW2.pName=_9W2.name;_aW2._ZV2=_9W2.displayname;
switch(_9W2.type){case "float":_aW2.type=_rT;break;case "int":_aW2.type=_TV2;break;case "bool":_aW2.type=_UV2;break;case "sampler":_aW2.type=_tT;break;}_aW2.elements=_9W2.elements;_aW2.arraysize=_9W2.arraysize!==undefined?_9W2.arraysize:1;_aW2._lQ=[];var defaults=_9W2.defaults;if(defaults===undefined){defaults=_9W2.default;}if(defaults instanceof Array){for(var _17=0;_17<defaults.length;_17++){_aW2._lQ.push(defaults[_17]);}}else {_aW2._lQ.push(defaults);}_aW2.__V2=[];if(_9W2.min instanceof Array){for(var _17=0;
_17<_9W2.min.length;_17++){_aW2.__V2.push(_9W2.min[_17]);}}else {_aW2.__V2.push(_9W2.min);}_aW2._0W2=[];if(_9W2.max instanceof Array){for(var _17=0;_17<_9W2.max.length;_17++){_aW2._0W2.push(_9W2.max[_17]);}}else {_aW2._0W2.push(_9W2.max);}if(_9W2.options!=undefined){if(_aW2.type==_tT){var _bW2=_9W2.options.split('|');for(var _17=0;_17<_bW2.length;_17++){if(_bW2[_17]=="repeat"){_aW2._1W2=true;}else if(_bW2[_17]=="filter"){_aW2._2W2=true;}}}}this._nQ.push(_aW2);}};/*@constructor */function _cW2(_dW2,_eW2,_fW2){
this.__type="[FilterHost]";this._gW2=_dW2;this._hW2=_eW2;this._YS=_fW2;this._iW2=-1;this._Ek1=-1;this._Fk1=-1;this._jW2=-1;this._kW2=-1;this._lW2=-1;this._mW2=-1;this._nW2=-1;this._oW2=-1;this._pW2=[];this._qW2=[];this._rW2=[];var _GV="";_GV="gml"+_CV2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_CV2]!=undefined)){_GV=g_var2obf[_CV2];}this[_GV]=this._sW2;_GV="gml"+_DV2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_DV2]!=undefined)){_GV=g_var2obf[_DV2];}this[_GV]=this._rA1;_GV="gml"+_EV2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_EV2]!=undefined)){
_GV=g_var2obf[_EV2];}this[_GV]=this._tW2;_GV="gml"+_FV2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_FV2]!=undefined)){_GV=g_var2obf[_FV2];}this[_GV]=this._uW2;_GV="gml"+_GV2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_GV2]!=undefined)){_GV=g_var2obf[_GV2];}this[_GV]=this._vW2;_GV="gml"+_HV2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_HV2]!=undefined)){_GV=g_var2obf[_HV2];}this[_GV]=this._wW2;var _3V="gml"+_4V;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_4V]!=undefined)){_3V=g_var2obf[_4V];
}this[_3V]=false;this._xW2();this._yW2();}_cW2.prototype._sW2=function(){this._iW2=-1;};_cW2.prototype._rA1=function(){if(this._Ek1==-1){this._Ek1=_vJ();}else {this._Fk1=_vJ()-this._Ek1;}};_cW2.prototype._tW2=function(_fS){if(_s8==null)return -1;if((_FH!=_yx2)||(_HH!=0))return;var _zW2=false;var _3V="gml"+_4V;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_4V]!=undefined)){_3V=g_var2obf[_4V];}var _WO2=this[_3V];if(_WO2!==undefined){_zW2=_WO2;}if(_zW2){var _AW2=_Sd1;var _BW2=_Td1;var _CW2=surface_get_target();
if(_CW2!=-1){_AW2=surface_get_width(_CW2);_BW2=surface_get_height(_CW2);}this._iW2=_WU._DW2(_AW2,_BW2);var _br2=_qs2._Cr2();var _EW2=null;if(_br2!=null){var _FW2=_qs2._Sq2(_br2._ke);_EW2=_qs2._Uq2(_FW2);}surface_set_target(this._iW2);draw_clear_alpha(0,0.0);if(_EW2!=null){_GW2(_EW2._rr2(),_EW2._tr2(),_EW2._sr2(),_EW2._ur2(),_EW2._Yr2(),_qs2._Cr2());_qs2._ar2(_EW2._ke);}_s8._oa._8C();if((_s8._oa._pa(_ca._ua)==false)&&(_s8._oa._pa(_ca._qa)==_ca._da)&&(_s8._oa._pa(_ca._ra)==_ca._fa)){_s8._oa._Ga(_ca._ua,
true);_s8._oa._Ga(_ca._sa,_ca._RV1);_s8._oa._Ga(_ca._ta,_ca._ga);}}};_cW2.prototype._uW2=function(_fS){if(_s8==null)return -1;if((_FH!=_yx2)||(_HH!=0))return;var _HW2=surface_get_target();if(_HW2==-1)return;var _AW2=surface_get_width(_HW2);var _BW2=surface_get_height(_HW2);var _IW2=-1;if(this._iW2!=-1){_s8._oa._9C();surface_reset_target();}else {_IW2=_WU._DW2(_AW2,_BW2);}var _JW2=_xa;_s8._oa._8C();var _KW2=_sA(_kA);var _LW2=_sA(_YL);var _MW2=_sA(_ZL);var _jS=_Va;var _NW2=0.0;var _OW2=0.0;var _br2=_qs2._Cr2();
if(_br2!=null){_NW2=_br2._rr2();_OW2=_br2._tr2();}if(this._iW2==-1){surface_set_target(_IW2);}shader_set(this._hW2);_s8._oa._Ga(_ca._5B,false);_s8._oa._Ga(_ca._8B,false);_s8._oa._Ga(_ca._4B,false);_s8._oa._Ga(_ca._hB,_ca._LT1);var _PW2=new _Zy();var _QW2=new _Zy();var _RW2=new _Zy();_PW2._9I2();_QW2._9I2();_RW2._9I2();_jA(_kA,_PW2);_jA(_YL,_QW2);_jA(_ZL,_RW2);var _SW2=(this._Fk1)/1000000.0;shader_set_uniform_f(this._jW2,_SW2);shader_set_uniform_f(this._kW2,_SW2);shader_set_uniform_f(this._lW2,_AW2,_BW2);
shader_set_uniform_f(this._mW2,(_AW2>0)?(1.0/_AW2):0.0,(_BW2>0)?(1.0/_BW2):0.0);shader_set_uniform_f(this._nW2,_NW2,_OW2);shader_set_uniform_f(this._oW2,(this._iW2!=-1)?1.0:0.0);if((this._YS!=null)&&(this._pW2!=null)){for(var i=0;i<this._YS._5W2;i++){var _TW2=this._YS._nQ[i];var _WO2=this[_TW2.pName];if(_WO2!=null){if(_WO2 instanceof Array){switch(_TW2.type){case _rT:{shader_set_uniform_f_array(this._pW2[i],_WO2);}break;case _TV2:case _UV2:{shader_set_uniform_i_array(this._pW2[i],_WO2);}break;}}else {switch(_TW2.type){
case _rT:{shader_set_uniform_f(this._pW2[i],_WO2);}break;case _TV2:case _UV2:{shader_set_uniform_f(this._pW2[i],_WO2);}break;case _tT:{var _UW2=_WO2;var _4u2=_16._26(_UW2);if((_4u2!=null)&&(_4u2._VW2===undefined)&&(_4u2._zL===undefined)){var _WW2=this._pW2[i];texture_set_stage(_WW2,sprite_get_texture(_UW2,0));shader_set_uniform_f(this._qW2[i],_4u2.width,_4u2.height);shader_set_uniform_f(this._rW2[i],(_4u2.width>0)?(1.0/_4u2.width):0.0,(_4u2.height>0)?(1.0/_4u2.height):0.0);if(_TW2._1W2){gpu_set_texrepeat_ext(_WW2,
true);}else {gpu_set_texrepeat_ext(_WW2,false);}if(_TW2._2W2){gpu_set_tex_filter_ext(_WW2,true);}else {gpu_set_tex_filter_ext(_WW2,false);}}}break;}}}}}if(this._iW2!=-1){_s8._oa._Ga(_ca._4B,true);_s8._oa._Ga(_ca._ua,false);_s8._oa._Ga(_ca._qa,_ca._ga);_s8._oa._Ga(_ca._ra,_ca._fa);}_Va=0.0;draw_surface_stretched(_HW2,-1,-1,2,2,_Fn,1.0);if(this._iW2!=-1){_WU._XW2(this._iW2);this._iW2=-1;}else {surface_reset_target();_jA(_kA,_PW2);_jA(_YL,_QW2);_jA(_ZL,_RW2);shader_set(-1);draw_surface_stretched(_IW2,
-1,-1,2,2,_Fn,1.0);_WU._XW2(_IW2);}_s8._oa._9C();shader_set(_JW2);_Va=_jS;_jA(_kA,_KW2);_jA(_YL,_LW2);_jA(_ZL,_MW2);};_cW2.prototype._vW2=function(){};_cW2.prototype._wW2=function(){surface_free(this._iW2);this._iW2=-1;};_cW2.prototype._xW2=function(){if(this._gW2==null)return;this._jW2=shader_get_uniform(this._hW2,"gm_vTime");this._kW2=shader_get_uniform(this._hW2,"gm_pTime");this._lW2=shader_get_uniform(this._hW2,"gm_pSurfaceDimensions");this._mW2=shader_get_uniform(this._hW2,"gm_pSurfaceTexelSize");
this._nW2=shader_get_uniform(this._hW2,"gm_pCamOffset");this._oW2=shader_get_uniform(this._hW2,"gm_pPreMultiplyAlpha");};_cW2.prototype._yW2=function(){if(this._gW2==null)return;if(this._YS==null)return;for(var i=0;i<this._YS._5W2;i++){if(this._YS._nQ[i].type==_tT){this._pW2[i]=shader_get_sampler_index(this._hW2,this._YS._nQ[i].pName);var _YW2=this._YS._nQ[i].pName+"Dimensions";this._qW2[i]=shader_get_uniform(this._hW2,_YW2);_YW2=this._YS._nQ[i].pName+"TexelSize";this._rW2[i]=shader_get_uniform(this._hW2,
_YW2);}else {this._pW2[i]=shader_get_uniform(this._hW2,this._YS._nQ[i].pName);this._qW2[i]=-1;this._rW2[i]=-1;}}};/*@constructor */function _ZW2(__W2){this.__type="[EffectInstanceRef]";this.__yyIsGMLObject=true;this.instance=__W2;}/*@constructor */function _0X2(_1X2,_fW2,_2X2){this.__type="[EffectInstance]";this._2V=_1X2;this._YS=_fW2;this.id=_XV2();this._3X2=_2X2;this._4X2=-1;this._5X2=[];}_0X2.prototype._YU=function(){var _YX1=new _ZW2(this);this._5X2.push(new WeakRef(_YX1));return _YX1;};_0X2.prototype._6X2=function(){
var _7X2=[];for(var i=0;i<this._5X2.length;i++){if(this._5X2[i].deref()!==undefined){_7X2.push(this._5X2[i]);}}this._5X2=_7X2;return this._5X2.length>0;};_0X2.prototype._8X2=function(){if(this._2V==null)return;if(this._YS==null)return;for(var i=0;i<this._YS._5W2;i++){var _TW2=this._YS._nQ[i];var _9X2=_TW2.elements*((_TW2.arraysize==0)?1:_TW2.arraysize);this._aX2(_TW2.pName,_TW2.type,_9X2,_TW2._lQ);}};_0X2.prototype._aX2=function(_bX2,_ld,_cX2,_9V1){if(this._2V==null)return;if(_bX2==null)return;if(_9V1==null)return;
var _WO2=null;if(_cX2>1){_WO2=[];for(var _17=0;_17<_cX2;_17++){var _dX2=null;switch(_ld){case _rT:_dX2=_9V1[_17];break;case _TV2:_dX2=_9V1[_17];break;case _UV2:_dX2=_9V1[_17]?1:0;break;case _tT:{var _UW2=_16._eX2(_9V1[_17]);_dX2=_UW2;break;}}_WO2.push(_dX2);}}else {switch(_ld){case _rT:_WO2=_9V1[0];break;case _TV2:_WO2=_9V1[0];break;case _UV2:_WO2=_9V1[0]?1:0;break;case _tT:{var _UW2=_16._eX2(_9V1[0]);_WO2=_UW2;break;}}}var _3V=_bX2;if(this._YS.type==_RV2){var _3V="gml"+_bX2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_bX2]!=undefined)){
_3V=g_var2obf[_bX2];}}this._2V[_3V]=_WO2;};_0X2.prototype._0V=function(_bX2){if(this._2V==null)return null;if(this._YS==null)return null;for(var i=0;i<this._YS._5W2;i++){var _TW2=this._YS._nQ[i];if(_TW2.pName==_bX2){var _3V=_bX2;if(this._YS.type==_RV2){var _3V="gml"+_bX2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_bX2]!=undefined)){_3V=g_var2obf[_bX2];}}return this._2V[_3V];}}return null;};_0X2.prototype._1V=function(){if(this._2V==null)return null;if(this._YS==null)return null;if(this._YS._5W2==0)return {
};var _fX2={};_fX2.__yyIsGMLObject=true;for(var i=0;i<this._YS._5W2;i++){var _TW2=this._YS._nQ[i];var _gX2=this._0V(_TW2.pName);if(_gX2!=null){var _3V="gml"+_TW2.pName;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_TW2.pName]!=undefined)){_3V=g_var2obf[_TW2.pName];}_fX2[_3V]=_gX2;}}return _fX2;};_0X2.prototype.__U=function(){var _rb=[];for(var i=0;i<this._YS._5W2;i++){var _TW2=this._YS._nQ[i];_rb.push(_TW2.pName);}return _rb;};_0X2.prototype._5V=function(_bX2,_hX2){if(this._2V==null)return false;if(this._YS==null)return false;
if(_hX2==null)return false;for(var i=0;i<this._YS._5W2;i++){var _TW2=this._YS._nQ[i];if(_TW2.pName==_bX2){var _3V=_bX2;if(this._YS.type==_RV2){var _3V="gml"+_bX2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_bX2]!=undefined)){_3V=g_var2obf[_bX2];}}this._2V[_3V]=_hX2;return true;}}return false;};_0X2.prototype._7V=function(_iX2){if(this._2V==null)return false;if(this._YS==null)return false;if(this._YS._5W2==0)return false;if(_iX2==null)return false;for(var i=0;i<this._YS._5W2;i++){var _5T=this._YS._nQ[i].pName;
var _3V="gml"+_5T;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_5T]!=undefined)){_3V=g_var2obf[_5T];}var _WO2=_iX2[_3V];if(_WO2!==null&&_WO2!==undefined){this._5V(_5T,_WO2);}}return true;};function _jX2(){this.width=0;this.height=0;this._kX2=-1;this._lX2=-1;this._mX2=false;}/*@constructor */function _KG2(){this.__type="[EffectManager]";this._nX2={};this._oX2=0;this._oq2=null;this._pX2=[];}_KG2.prototype._OQ=function(){if(this._oq2!==null){this._oq2=null;}this._oq2={};this._qX2();};_KG2.prototype._yr2=function(){
this._nX2={};if(this._oq2!==null){this._oq2=null;}var i;for(i=0;i<this._pX2.length;i++){var _rX2=_pX2[i];if(_rX2!=null){surface_free(_rX2._kX2);}}this._pX2=[];};_KG2.prototype._XU=function(_UU,_2X2){if(_UU==null)return null;var _YS=this._sX2(_UU);var _tX2=null;if(_YS.type==_RV2){var _uX2=_vX2(_YS._4W2);if(_uX2!=-1){_tX2=__yy_gml_object_create(null,_uX2);//res.pObj->Add("@@Dispose@@", JS_SetupFunction(F_Effect_dispose));
}}else if(_YS.type==_QV2){var _wX2=_951(_YS._4W2);if(_wX2!=-1){var _gW2=_xD.Shaders[_wX2];
_tX2=new _cW2(_gW2,_wX2,_YS);}}if((_tX2!=null)&&(_YS!=null)){var _xX2=new _0X2(_tX2,_YS,_2X2);_xX2._8X2();var _oQ=false;var _3V="gml"+_4V;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_4V]!=undefined)){_3V=g_var2obf[_4V];}_xX2[_3V]=_oQ;return _xX2;}return null;};_KG2.prototype._yX2=function(_zX2){if(_zX2==null)_zX2=_S3;if(_zX2==null)return;var _Kk=_zX2._8R._Kk;for(var i=_Kk.length-1;i>=0;i--){var _iO=_Kk[i];this._AX2(_zX2,_iO);}};_KG2.prototype._BX2=function(_zX2){if(_zX2==null)_zX2=_S3;if(_zX2==null)return;
for(var i=0;i<_zX2._CX2;i++){var _iO=_jO._lO(_zX2,_zX2._DX2[i]);if(_iO!=null){_iO._xP();}}_zX2._EX2();};_KG2.prototype._AX2=function(_zX2,_FX2){if(_FX2==null)return;var _YS=_FX2._AP();if(_YS!=null){var _VU=this._XU(_YS.pName,true);if(_VU!=null){_FX2._vP(_VU._YU());_zX2._aV(_FX2._ke);for(var i=0;i<_YS._1I;i++){var _TW2=_YS._nQ[i];_VU._aX2(_TW2.pName,_TW2.type,_TW2.elements,_TW2._lQ);}var _3V="gml"+_4V;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_4V]!=undefined)){_3V=g_var2obf[_4V];}_VU._aX2(_3V,_UV2,
1,[_YS._oQ]);}}else {var _GX2=_FX2._mP.substring(0,_IV2.length)==_IV2;var _HX2=_FX2._mP.substring(0,_KV2.length)==_KV2;if(_GX2||_HX2){if(_FX2._yP()==null){var _IX2=_JV2+_FX2._mP;var _VU=this._XU(_IX2,true);if(_VU!=null){_FX2._vP(_VU._YU());_zX2._aV(_FX2._ke);var _3V="gml"+_4V;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_4V]!=undefined)){_3V=g_var2obf[_4V];}_VU._aX2(_3V,_UV2,1,[false]);}}}}};_KG2.prototype._JX2=function(_zX2,_FX2){if(_FX2==null)return;_FX2._xP();};_KG2.prototype._KX2=function(_zX2){
if(_zX2==null)_zX2=_S3;if(_zX2==null)return;for(var i=0;i<_zX2._CX2;i++){var _iO=_jO._lO(_zX2,_zX2._DX2[i]);if(_iO!=null){_iO._rP=_iO._sP;if(_iO._kP){var _Gt=_iO._yP().instance;if(_Gt._4X2!=this._oX2){var _GV="gml"+_DV2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_DV2]!=undefined)){_GV=g_var2obf[_DV2];}if(_Gt._2V[_GV]!==undefined){_Gt._2V[_GV]();}_Gt._4X2=this._oX2;}if(!_Gt._6X2()){var _GV="gml"+_CV2;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_CV2]!=undefined)){_GV=g_var2obf[_CV2];}if(_Gt._2V[_GV]!==undefined){
_Gt._2V[_GV]();}}}}}this._LX2();this._oX2++;};_KG2.prototype._MX2=function(_V7,_zX2,_NX2){if(_zX2==undefined)_zX2=null;if(_NX2==undefined)_NX2=false;if(_zX2==null)_zX2=_S3;if(_zX2==null)return;for(var i=0;i<_zX2._CX2;i++){var _iO=_jO._lO(_zX2,_zX2._DX2[i]);if((_iO!=null)&&(!_NX2||(_iO._kP))){var _Gt=_iO._yP().instance;var _GV="gml"+_V7;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_V7]!=undefined)){_GV=g_var2obf[_V7];}if(_Gt._2V[_GV]!==undefined){_Gt._2V[_GV]();}}}};_KG2.prototype._ZU=function(_OX2){
return _OX2.instance!==undefined&&_OX2.instance.__type=="[EffectInstance]";};_KG2.prototype._PX2=function(_OX2){return _OX2.instance._2V;};_KG2.prototype._sX2=function(_UU){var _QX2=this._nX2[_UU];if(_QX2!=null){return _QX2;}var _RX2=null;var _SX2=_UU+_OV2;var _TX2=variable_global_get(_SX2);if(_TX2!=null){_RX2=new _3W2();_RX2._6W2(_TX2);}if(_RX2==null){_RX2=new _3W2();_RX2.pName=_UU;_RX2._ZV2=_UU;if((_UU.substring(0,_IV2.length)==_IV2)||(_UU.substring(0,(_JV2+_IV2).length)==(_JV2+_IV2))){_RX2.type=_RV2;_RX2._4W2=_UU;
}else {_RX2.type=_QV2;_RX2._4W2=_UU+_NV2;}}if(_RX2!=null){this._nX2[_UU]=_RX2;}return _RX2;};_KG2.prototype._qX2=function(){var _UX2=_fR._P31.length;for(var i=0;i<_UX2;i++){var _9V=_fR._P31[i];if(_9V!=null){var _Kk=_9V._8R._Kk;for(var _VX2=_Kk.length-1;_VX2>=0;_VX2--){var _iO=_Kk[_VX2];if(_iO!=null){var _YS=_iO._AP();if(_YS!=null){this._AX2(_9V,_iO);}else {var _GX2=_iO._mP.substring(0,_IV2.length)==_IV2;var _HX2=_iO._mP.substring(0,_KV2.length)==_KV2;if(_GX2||_HX2){var _IX2=_JV2+_iO._mP;this._sX2(_IX2);this._AX2(_9V,
_iO);}}}}}}};_KG2.prototype._GH2=function(_UU,_WX2){var _RX2=new _3W2();_RX2._6W2(_WX2);this._nX2[_UU]=_RX2;};_KG2.prototype._DW2=function(_A8,_B8){var i;for(i=0;i<this._pX2.length;i++){var _XX2=this._pX2[i];if((_XX2!=null)&&(_XX2._mX2==false)){if((_XX2.width==_A8)&&(_XX2.height==_B8)){if(surface_exists(_XX2._kX2)){_XX2._mX2=true;return _XX2._kX2;}}}}var _8s=new _jX2();_8s.width=_A8;_8s.height=_B8;_8s._mX2=true;_8s._kX2=surface_create(_A8,_B8);_8s._lX2=-1;this._pX2[this._pX2.length]=_8s;return _8s._kX2;
};_KG2.prototype._XW2=function(_gg){var i;for(i=0;i<this._pX2.length;i++){var _XX2=this._pX2[i];if((_XX2!=null)&&(_XX2._kX2==_gg)){if(_XX2._mX2==false){_YX2._ZX2("Trying to release temp surface %s which isn't in use\n",_gg);}else {_XX2._mX2=false;_XX2._lX2=this._oX2;}}}};_KG2.prototype._LX2=function(){var i;for(i=0;i<this._pX2.length;){var _XX2=this._pX2[i];if(_XX2==null){this._pX2.splice(i,1);}else {var __X2=false;if((_XX2._mX2==false)&&((this._oX2-_XX2._lX2)>1)){__X2=true;}else if(!surface_exists(_XX2._kX2)){
__X2=true;}if(__X2){surface_free(_XX2._kX2);this._pX2.splice(i,1);}else {i++;}}}};/*@constructor */function _yG(){this.__type="[Font]";this._AG=false;this._0Y2=false;this.pName="";this._qG="";this.size=12;this.ascenderOffset=0;this.ascender=0;this.bold=false;this.italic=false;this.first=32;this.last=127;this._DG="";this.prop=false;this._1Y2=0;this._2Y2=null;this._MG=null;this.antialias=0;this.charset=0;this._3Y2=1;this._4Y2=1;this._zG=0.0;this.glyphs=null;this._Tr=null;this._JG=null;this.spriteIndex=-1;
this._5Y2=0;}_yG.prototype._6Y2=function(_YO2){this.spriteIndex=-1;this._MG=null;this.pName=_YO2.pName;this._qG=_YO2.fontname;this.size=_YO2.size;this.bold=_YO2.bold;this.italic=_YO2.italic;this.first=_YO2.first&0xffff;this._AG=false;this.ascenderOffset=_YO2.ascenderOffset;this.ascender=_YO2.ascender;this.antialias=0;this.charset=0;if(((_YO2.first>>16)&0xff)!==0)this.charset=(_YO2.first>>16)&0xff;if(((_YO2.first>>24)&0xff)!==0)this.antialias=((_YO2.first>>24)&0xff)-1;this.last=_YO2.last;this._3Y2=_YO2.scaleX;
this._4Y2=_YO2.scaleY;this.glyphs=[];var _SC=99999999;var _V6=-99999999;var maxHeight=0;for(var _7Y2=0;_7Y2<_YO2.glyphs.length;_7Y2++){var index=-2;var _8Y2=_YO2.glyphs[_7Y2];if(_8Y2.c!=undefined)index=_8Y2.c.charCodeAt(0);else if(_8Y2.i!=undefined)index=_8Y2.i;this.glyphs[index]=_8Y2;if(index<_SC)_SC=index;if(index>_V6)_V6=index;if(_8Y2.h>maxHeight)maxHeight=_8Y2.h;}this._5Y2=maxHeight;this.first=_SC;this.last=_V6;this._Tr=_pQ2(_YO2.TPageEntry);};_yG.prototype._GG=function(_06,_vG,_FG,_gG,_9Y2){this.spriteIndex=_06;
this._MG=null;this._AG=true;this._JG=_16._26(_06);this.pName="sprite_font: "+this._JG.pName;this._qG="spritefont";this.size=_06.width;this.bold=false;this.italic=false;this.first=_vG;this._2Y2=_9Y2;this._0Y2=true;this.prop=_FG;this.last=_vG+this._JG._T6;this._1Y2=_gG;this.antialias=0;this.charset=10;this._3Y2=1;this._4Y2=1;this._zG=0.5;this.glyphs=null;this._Tr=null;this._aY2=0;for(var i=0;i<this._JG._05.length;i++){var __4=this._JG._05[i];if(this.prop){this._aY2=_W6(this._aY2,__4.CropWidth);}else {
this._aY2=_W6(this._aY2,__4.ow);}}this._MG=[];if(_9Y2){var _bY2=9999999999;var _cY2=-1;for(var i=0;i<_9Y2.length;i++){var c=_9Y2.charCodeAt(i);if(c<_bY2)_bY2=c;if(c>_cY2)_cY2=c;this._MG[c]=i;}this.first=_bY2;this.last=_cY2;}else {for(var i=_vG;i<(_vG+this._JG._T6);i++){this._MG[i]=i-_vG;}}this._dY2();};_yG.prototype._dY2=function(){var height=0;for(var _I6=0;_I6<this._JG._05.length;_I6++){var __4=this._JG._05[_I6];height=_W6(height,__4.oh);}this.size=height;};_yG.prototype._kG=function(__n){if((!__n)||(0===__n.length))return 0;
if(this._AG){return this.size*this._3Y2;}else {return this._5Y2*this._3Y2;}};_yG.prototype._lG=function(__n,_eY2){if((!__n)||(0===__n.length))return 0;var _jG;if(_eY2){_jG=[__n];}else {_jG=_WD._XD(__n,-1,this);}if(this._AG){if(this._0Y2){var _kn=0;for(var i=0;i<_jG.length;i++){var _fY2=0;var _ID=_jG[i];for(var _17=0;_17<_ID.length;_17++){_fY2+=this._gY2(_ID.charCodeAt(_17));}_kn=_W6(_kn,_fY2);}return _kn;}else {var _kn=0;_4a.font=this._DG;if(_4a.measureText){for(var i=0;i<_jG.length;i++){var _Jh=_4a.measureText(_jG[i]);
_kn=_W6(_kn,_Jh.width);}}return _kn;}}else {var _kn=0;for(var i=0;i<_jG.length;i++){var _fY2=0;var _ID=_jG[i];for(var _17=0;_17<_ID.length;_17++){var c=_ID.charCodeAt(_17);var _8Y2=this.glyphs[c];if(!_8Y2){_8Y2=this.glyphs[this.first];}_fY2+=_8Y2.shift*this._3Y2;}_kn=_W6(_kn,_fY2);}return _kn;}};_yG.prototype._hY2=function(__n,_9B,_iY2,_jY2){_9B=_X6(__n.length,_9B);var end=_X6(__n.length,(_9B+_iY2));var _kY2=end-_9B;if((!__n)||(_9B>=end))return 0;if(this._AG){if(this._0Y2){var _fY2=0;for(var _17=_9B;_17<end;_17++){
_fY2+=this._gY2(__n.charCodeAt(_17));}_lY2+=_kY2*_jY2;return _fY2;}else {var _fY2=0;_4a.font=this._DG;if(_4a.measureText){var _mY2=__n.substring(_9B,end);_fY2=_4a.measureText(_mY2);_fY2+=_kY2*_jY2;}return _fY2;}}else {var _fY2=0;for(var _17=_9B;_17<end;_17++){var c=__n.charCodeAt(_17);var _8Y2=this.glyphs[c];if(!_8Y2){_8Y2=this.glyphs[this.first];}_fY2+=_8Y2.shift*this._3Y2;}_fY2+=_kY2*_jY2;return _fY2;}};_yG.prototype._gY2=function(_8a1){if(this._AG){if(this._0Y2){var _kn=this._1Y2;if((_8a1>=this.first)&&(_8a1<=this.last)){
var _nY2=this._MG[_8a1];var __4=this._JG._05[_nY2];if(!__4){result=this._aY2;}else if(this.prop){_kn+=__4.CropWidth;}else {_kn+=__4.ow;}}else if(_8a1===32){_kn+=this._aY2;}return _kn;}else {_4a.font=this._DG;if(_4a.measureText){var _Jh=_4a.measureText(String.fromCharCode(_8a1));return _Jh.width;}return 0;}}var _8Y2=this.glyphs[_8a1];if(_8Y2){return _8Y2.shift*this._3Y2;}else if(0x20>=this.first&&0x20<=this.last){return this.glyphs[0x20].shift*this._3Y2;}else {return this.glyphs[this.first].shift*this._3Y2;}};function _oY2(_8a1,
_8Y2){var _P4=undefined;var _yc1=0,_Yc1=(_8Y2._QG.length/2)-1,_pY2=0;while(_yc1<=_Yc1){_pY2=_yc1+~~((_Yc1-_yc1)/2);var other=_8Y2._QG[_pY2*2];if(_8a1==other){_P4=_8Y2._QG[(_pY2*2)+1];break;}else if(_8a1<other)_Yc1=_pY2-1;else _yc1=_pY2+1;}return _P4;}_yG.prototype._qY2=function(_Q5,_R5,_rY2,_2o,_3o,_U5,_Xp,_do,_wK,_xK,_jY2,_sY2){var _tY2=this._Tr;if(!_tY2._95.complete)return;var _0j=_rY2.length;var _uY2=0.0;var _vY2=0.0;if(_jY2!==undefined){_uY2=_jY2;}if(_sY2!==undefined){_vY2=_sY2;}var _wY2=null;for(var i=0;
i<_0j;i++){var _8a1=_rY2.charCodeAt(i);var _8Y2=this.glyphs[_8a1];if(_8Y2){if((_wY2!=null)&&(_8Y2._QG!=undefined)){var _QG=_oY2(_wY2.i,_8Y2);if(_QG!=undefined){_Q5+=_2o*this._3Y2*_QG;}}_wY2=_8Y2;var _59=_8Y2.x;var _69=_8Y2.y;var _JK=_8Y2.w;var _LK=_8Y2.h;if(Math.abs(_U5)<0.001){_4a._rb1(_tY2,_59+_tY2.x,_69+_tY2.y,_JK,_LK,_Q5+(_8Y2.offset*_2o),_R5,_JK*this._3Y2*_2o,_LK*this._4Y2*_3o,_Xp,_do,_wK,_xK);}else {_4a._rb1(_tY2,_59+_tY2.x,_69+_tY2.y,_JK,_LK,_Q5+(_8Y2.offset*_2o),_R5,_JK,_LK,_Xp,_do,_wK,_xK);}_Q5+=_2o*this._3Y2*this._gY2(_8a1);
_Q5+=_uY2;if(_rY2[i]==" ")_Q5+=_vY2;}}};_yG.prototype._xY2=function(_Q5,_R5,_U5){var _kh=new _Zy();_kh._lA(-_Q5,-_R5,0);var _uA=new _Zy();_uA._pA(_U5);var _rl1=new _Zy();_rl1.Multiply(_kh,_uA);_kh._lA(_Q5,_R5,0);var _yY2=new _Zy();_yY2.Multiply(_rl1,_kh);return _yY2;};_yG.prototype._zY2=function(_Q5,_R5,_rY2,_2o,_3o,_U5,_Xp,_do,_wK,_xK,_jY2,_sY2){if(this._AG){this._qY2(_Q5,_R5,_rY2,_2o,_3o,_U5,_Xp,_do,_wK,_xK,_jY2,_sY2);}var _uY2=0.0;var _vY2=0.0;if(_jY2!==undefined){_uY2=_jY2;}if(_sY2!==undefined){_vY2=_sY2;
}var _AY2;var _tY2=this._Tr;if(!_tY2._95.complete)return;var _0j=_rY2.length;if(_BY2){_Xp&=0xfffefffe;_do&=0xfffefffe;_wK&=0xfffefffe;_xK&=0xfffefffe;_do|=0x00010000;_wK|=0x00000001;_xK|=0x00010001;}var _Ha,_Oa,_Qa,_Sa;if(!_tY2._95._Ba)_Ca(_tY2);var _CY2;if(Math.abs(_U5)>0.001){_CY2=_sA(_kA);_jA(_kA,this._xY2(_Q5,_R5,_U5));}var _I9=_0j*6;_Ha=_s8._Ia(_ca._Ja,_tY2._95._Ba,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_I9;var _Ua=index,_jb=_Ua+_La,_p5=_jb+_La,_kb=_p5+_La,_lb=_kb+_La,_mb=_lb+_La;
_Oa=_Ha._Pa;_Qa=_Ha._Ra;_Sa=_Ha._Ta;var scaleX,scaleY;scaleX=this._3Y2*_2o;scaleY=this._4Y2*_3o;var _oc2=0;var _DY2=this._zG,_EY2=1.0/_tY2._95.width,_FY2=1.0/_tY2._95.height;var _GY2=false;if((_Xp!=_do)||(_wK!=_xK)){var _HY2=this._lG(_rY2,true);var _IY2=1/_HY2;var alpha=_Xp&0xff000000;_GY2=true;}var _wY2=null;for(var i=0;i<_0j;i++){var _8a1=_rY2.charCodeAt(i);var _8Y2=this.glyphs[_8a1];if(_8Y2){if((_wY2!=null)&&(_8Y2._QG!=undefined)){var _QG=_oY2(_wY2.i,_8Y2);if(_QG!=undefined){_Q5+=scaleX*_QG;}}_wY2=_8Y2;var _JK=_8Y2.w+2,
_LK=_8Y2.h+2;var x=_Q5+(_8Y2.offset*_2o);_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=x-_DY2;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=_R5-_DY2;_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=x+_DY2+(_JK*scaleX);_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=_R5+_DY2+(_LK*scaleY);_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;var _59=_8Y2.x-1,_69=_8Y2.y-1;_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=(_tY2.x+_59-_DY2)*_EY2;_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=(_tY2.y+_69-_DY2)*_FY2;_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(_tY2.x+_59+_JK+_DY2)*_EY2;
_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(_tY2.y+_69+_LK+_DY2)*_FY2;if(_GY2){var _2b=_Oa[index];var _iH=Math.min(Math.abs((_Oa[_Ua]-_2b))*_IY2,1);var _jH=Math.min(Math.abs((_Oa[_jb]-_2b))*_IY2,1);var _8h=merge_color(_Xp,_do,_iH)|alpha;var _9h=merge_color(_Xp,_do,_jH)|alpha;var _9m1=merge_color(_xK,_wK,_jH)|alpha;var _II2=merge_color(_xK,_wK,_iH)|alpha;_Qa[_Ua]=_Qa[_mb]=_8h;_Qa[_jb]=_9h;_Qa[_p5]=_Qa[_kb]=_9m1;_Qa[_lb]=_II2;}else {_Qa[_Ua]=_Qa[_mb]=_Xp;_Qa[_jb]=_do;_Qa[_p5]=_Qa[_kb]=_wK;_Qa[_lb]=_xK;}_Ua+=(_La*6);
_jb+=(_La*6);_p5+=(_La*6);_kb+=(_La*6);_lb+=(_La*6);_mb+=(_La*6);_Q5+=scaleX*_8Y2.shift;}else {_oc2++;}_Q5+=_uY2;if(_rY2[i]==" ")_Q5+=_vY2;}_Ha._Na-=_oc2*6;if(_CY2!=undefined){_jA(_kA,_CY2);}};_yG.prototype._JY2=function(_Q5,_R5,_rY2,_2o,_3o,_U5,_Xp,_do,_wK,_xK,_jY2,_sY2){var _AY2=null;var _8a1;var _tY2=_35[this._Tr.tp];if(!_tY2.complete)return;var _uY2=0.0;var _vY2=0.0;if(_jY2!==undefined){_uY2=_jY2;}if(_sY2!==undefined){_vY2=_sY2;}var _Fg2=_4a.globalAlpha;_4a.globalAlpha=((_Xp>>24)&0xff)/255.0;var _0j=_rY2.length;
_Xp=_Xp&0xffffff;_U5=_3G2(_U5);var _wY2=null;if(Math.abs(_U5)>0.00001){_KY2(_Q5,_R5,this._3Y2*_2o,this._4Y2*_3o,-_U5);_Q5=0;_R5=0;if(_Xp!=0xffffff){for(var i=0;i<_0j;i++){_8a1=_rY2.charCodeAt(i);var _8Y2=this.glyphs[_8a1];if(_8Y2){if((_wY2!=null)&&(_8Y2._QG!=undefined)){var _QG=_oY2(_wY2.i,_8Y2);if(_QG!=undefined){_Q5+=_QG;}}_wY2=_8Y2;var _JK=_8Y2.w;if(_JK!=99999){var _LK=_8Y2.h;_AY2=_LY2(_tY2,_8Y2,_8Y2.x+this._Tr.x,_8Y2.y+this._Tr.y,_JK+2,_LK+2,_Xp);_4a._rb1(_AY2,0,0,_JK,_LK,_Q5+_8Y2.offset,_R5,_JK,_LK);
_Q5+=this._gY2(_8a1);}}_Q5+=_uY2;if(_rY2[i]==" ")_Q5+=_vY2;}}else {for(var i=0;i<_0j;i++){_8a1=_rY2.charCodeAt(i);var _8Y2=this.glyphs[_8a1];if(_8Y2){if((_wY2!=null)&&(_8Y2._QG!=undefined)){var _QG=_oY2(_wY2.i,_8Y2);if(_QG!=undefined){_Q5+=_QG;}}_wY2=_8Y2;var _JK=_8Y2.w;if(_JK!=99999){var _LK=_8Y2.h;_4a._rb1(_tY2,_8Y2.x+this._Tr.x,_8Y2.y+this._Tr.y,_JK,_LK,_Q5+_8Y2.offset,_R5,_JK,_LK);_Q5+=this._gY2(_8a1);}}_Q5+=_uY2;if(_rY2[i]==" ")_Q5+=_vY2;}}_MY2();}else {_Q5=~~(_Q5+0.5);_R5=~~(_R5+0.5);var _NY2=this._3Y2*_2o;
var _OY2=this._4Y2*_3o;if(_Xp!=0xffffff){for(var i=0;i<_0j;i++){_8a1=_rY2.charCodeAt(i);var _8Y2=this.glyphs[_8a1];if(_8Y2){if((_wY2!=null)&&(_8Y2._QG!=undefined)){var _QG=_oY2(_wY2.i,_8Y2);if(_QG!=undefined){_Q5+=_NY2*_QG;}}_wY2=_8Y2;var _JK=_8Y2.w;if(_JK!=99999){var _LK=_8Y2.h;_AY2=_LY2(_tY2,_8Y2,_8Y2.x+this._Tr.x,_8Y2.y+this._Tr.y,_JK+2,_LK+2,_Xp);_4a._rb1(_AY2,0,0,_JK+1,_LK+1,_Q5+(_8Y2.offset*_NY2),_R5,(_JK+1)*_NY2,(_LK+1)*_OY2);_Q5+=_NY2*this._gY2(_8a1);}}_Q5+=_NY2*_uY2;if(_rY2[i]==" ")_Q5+=_NY2*_vY2;
}}else {for(var i=0;i<_0j;i++){_8a1=_rY2.charCodeAt(i);var _8Y2=this.glyphs[_8a1];if(_8Y2){if((_wY2!=null)&&(_8Y2._QG!=undefined)){var _QG=_oY2(_wY2.i,_8Y2);if(_QG!=undefined){_Q5+=_NY2*_QG;}}_wY2=_8Y2;var _JK=_8Y2.w;if(_JK!=99999){var _LK=_8Y2.h;_4a._rb1(_tY2,_8Y2.x+this._Tr.x,_8Y2.y+this._Tr.y,_JK,_LK,_Q5+(_8Y2.offset*_NY2),_R5,_JK*_NY2,_LK*_OY2);_Q5+=_NY2*this._gY2(_8a1);}}_Q5+=_NY2*_uY2;if(_rY2[i]==" ")_Q5+=_NY2*_vY2;}}}_4a.globalAlpha=_Fg2;};_yG.prototype._PY2=function(_Q5,_R5,_rY2,_2o,_3o,_U5,_Xp,
_do,_wK,_xK,_jY2,_vY2){if(this._JG==null)return;var _uY2=0.0;var _vY2=0.0;if(_jY2!==undefined){_uY2=_jY2;}if(_sY2!==undefined){_vY2=_sY2;}var _G4=((_Xp>>24)&0xff)/255.0;var _Fg2=_4a.globalAlpha;_4a.globalAlpha=_G4;_Xp&=0xffffff;var _NY2=this._3Y2*_2o;var _OY2=this._4Y2*_3o;if(Math.abs(_U5)>=0.001){_KY2(_Q5,_R5,1,1,-_3G2(_U5));_R5=_Q5=0;}var _0j=_rY2.length;for(var i=0;i<_0j;i++){var _8a1=_rY2.charCodeAt(i);if(_8a1!=0x20){if((_8a1>=this.first)&&(_8a1<=this.last)){var _nY2=this._MG[_8a1];if(_nY2!==undefined){
var __4=this._JG._05[_nY2];var _tY2=_35[__4.tp];if(_tY2.complete){var _cL=__4.XOffset+this._JG.xOrigin;var _dL=__4.YOffset+this._JG.yOrigin;if(this.prop)_cL=0;if(_Xp!=0xffffff){var _AY2=_P9(__4,_Xp);_4a._rb1(_AY2,0,0,__4.CropWidth,__4.CropHeight,_Q5+(_cL*_NY2),_R5+(_dL*_OY2),__4.CropWidth*_NY2,__4.CropHeight*_OY2);}else {_4a._rb1(_tY2,__4.x,__4.y,__4.w,__4.h,_Q5+(_cL*_NY2),_R5+(_dL*_OY2),__4.CropWidth*_NY2,__4.CropHeight*_OY2);}}}}}_Q5=_Q5+_NY2*this._gY2(_8a1);_Q5+=_NY2*_uY2;if(_rY2[i]==" ")_Q5+=_NY2*_vY2;
}if(Math.abs(_U5)>=0.001)_MY2();_4a.globalAlpha=_Fg2;};_yG.prototype._QY2=function(_Q5,_R5,_rY2,_2o,_3o,_U5,_Es,_Fs,_Gs,_Hs,_jY2,_sY2){if(this._JG==null)return;var _uY2=0.0;var _vY2=0.0;if(_jY2!==undefined){_uY2=_jY2;}if(_sY2!==undefined){_vY2=_sY2;}var _0j=_rY2.length;var _NY2=this._3Y2*_2o;var _OY2=this._4Y2*_3o;var _RY2=undefined;if(Math.abs(_U5)>=0.001){_RY2=_sA(_kA);_jA(_kA,this._xY2(_Q5,_R5,_U5));}var alpha=(_Es&0xff000000);var _SY2=((_Fs&0xff0000)-(_Es&0xff0000))/_0j;var _TY2=((((_Fs&0xff00)<<8)-((_Es&0xff00)<<8)))/_0j;
var _UY2=((((_Fs&0xff)<<16)-((_Es&0xff)<<16)))/_0j;var _VY2=((_Gs&0xff0000)-(_Hs&0xff0000))/_0j;var _WY2=((((_Gs&0xff00)<<8)-((_Hs&0xff00)<<8)))/_0j;var _XY2=((((_Gs&0xff)<<16)-((_Hs&0xff)<<16)))/_0j;var _YY2=_SY2;var _ZY2=_TY2;var __Y2=_UY2;var _0Z2=_VY2;var _1Z2=_WY2;var _2Z2=_XY2;var _8h=_Es;var _II2=_Hs;for(var i=0;i<_0j;i++){var _9h=((_Es&0xff0000)+(_YY2&0xff0000))&0xff0000;_9h|=((_Es&0xff00)+(_ZY2>>8)&0xff00)&0xff00;_9h|=((_Es&0xff)+(__Y2>>16))&0xff;_9h|=alpha;var _9m1=((_Hs&0xff0000)+(_0Z2&0xff0000))&0xff0000;
_9m1|=((_Hs&0xff00)+(_1Z2>>8)&0xff00)&0xff00;_9m1|=((_Hs&0xff)+(_2Z2>>16))&0xff;_9m1|=alpha;_YY2+=_SY2;_ZY2+=_TY2;__Y2+=_UY2;_0Z2+=_VY2;_1Z2+=_WY2;_2Z2+=_XY2;var _8a1=_rY2.charCodeAt(i);if(_8a1!=0x20){if(_8a1<this.first||_8a1>this.last){}else {var _nY2=this._MG[_8a1];if(_nY2!==undefined){var __4=this._JG._05[_nY2];var _tY2=_35[__4.tp];if(_tY2.complete){var _cL=__4.XOffset+this._JG.xOrigin;var _dL=__4.YOffset+this._JG.yOrigin;if(this.prop)_cL=0;_4a._rb1(__4,__4.x,__4.y,__4.w,__4.h,_Q5+(_cL*_NY2),_R5+(_dL*_OY2),
__4.CropWidth*_NY2,__4.CropHeight*_OY2,_8h,_9h,_9m1,_II2);}}}}_II2=_9m1;_8h=_9h;_Q5+=_NY2*this._gY2(_8a1);_Q5+=_NY2*_uY2;if(_rY2[i]==" ")_Q5+=_NY2*_vY2;}if(_RY2!==undefined){_jA(_kA,_RY2);}};/*@constructor */function _EG2(){this.Fonts=[];this.length=0;this._iG=null;this._bG=0;this._aG=0;this._9G=0;_DF2=-1;this._bG=_DF2;}_EG2.prototype._ad1=function(_74){return this.Fonts[_74];};_EG2.prototype._Tf=function(){this.Fonts=[];this.Fonts.length=0;};_EG2.prototype._Df=function(_YO2){var _pG=null;if(_YO2!=null){
_pG=new _yG();_pG._6Y2(_YO2);}this.Fonts[this.Fonts.length]=_pG;return this.Fonts.length-1;};_EG2.prototype._CH2=function(_YO2){var _pG=null;if(_YO2!=null){_pG=new _yG();_pG._6Y2(_YO2);}this.Fonts[-1]=_pG;};_EG2.prototype._EG=function(_3Z2){this.Fonts[this.Fonts.length]=_3Z2;return this.Fonts.length-1;};_EG2.prototype._hG=function(){if(this._bG>=0&&this._bG<=this.Fonts.length&&this.Fonts[this._bG]!=null){this._iG=this.Fonts[this._bG];}else {this._iG=this.Fonts[-1];if(!this._iG)_Bi("Error: Failed to set font. Built-in fonts disabled with no current font set.");
}};_EG2.prototype._26=function(_gg){if(_gg>=0&&_gg<=this.Fonts.length&&this.Fonts[_gg]){return this.Fonts[_gg];}return null;};function _9d1(_Kl,_iG,_4Z2){if(_4Z2===undefined)_4Z2=false;if(_4Z2==false&&_U3)return _Kl;if(_Kl==null)return 0;var _5Z2=_Kl;var _rM1="";var i=0;var _Tj=0;while(_Tj<_5Z2.length){var _qi=_5Z2[_Tj];if(_qi=="#"){if((i>0)&&(_5Z2[_Tj-1]=='\\')){_rM1=_rM1.substring(0,_rM1.length-1)+'#';}else {_rM1+=String.fromCharCode(0x0d);_rM1+=String.fromCharCode(0x0a);i++;}}else {_rM1+=_qi;i++;}_Tj++;}
return _rM1;}_EG2.prototype._XD=function(_rY2,_6Z2,_iG){if(_rY2==null)return;if(_6Z2<0)_6Z2=10000000;var _7Z2=" ";var _vD=String.fromCharCode(0x0a);var _8Z2=String.fromCharCode(0x0d);var _VD=[];var _9Z2=0;if(!_U3)_rY2=_9d1(_rY2,_iG);var _0j=_rY2.length;var _1s=_rY2;var _aZ2=_1s[0];var start=0;var end=0;while(start<_0j){var _k91=0;if(_6Z2==10000000){while(end<_0j&&_1s[end]!=_vD&&_1s[end]!=_8Z2){end++;if(end<_0j)_aZ2=_1s[end];else _aZ2=String.fromCharCode(0x0);}var c;if(end<_0j)c=_1s[end];else c=String.fromCharCode(0x0);
if((_vD==_aZ2)&&(_8Z2==_1s[end])){end++;continue;}if((_8Z2==_aZ2)&&(_vD==_1s[end])){end++;continue;}_aZ2=_1s[end];_VD[_9Z2++]=_1s.substring(start,end);}else {while(end<_0j){if(_1s[end]!=_7Z2)break;end++;}start=end;while(end<_0j&&_k91<_6Z2){c=_1s[end];if(c==_vD)break;_k91+=this._iG._gY2(c.charCodeAt(0));end++;}if(_k91>_6Z2){end--;_k91-=this._iG._gY2(_1s.charCodeAt(end));}if(_1s[end]==_vD){_VD[_9Z2++]=_1s.substring(start,end);}else {if(end==start)return _VD;if(end!=_0j){if((_1s[end]!=_7Z2)||(_1s[end]!=_7Z2&&_1s[end+1]!=_7Z2)){
while(end>start){if(_1s[--end]==_7Z2)break;}}}if(end>start){while(_1s[end-1]==_7Z2){end--;}}else if(end==start){while(_1s[end]!=_7Z2&&end<_0j){end++;}}_VD[_9Z2++]=_1s.substring(start,end);}}start=++end;}return _VD;};_EG2.prototype._bZ2=function(_rY2,_cZ2,_dZ2,_1R2,_Fm,_jY2,_eZ2,_fZ2){if(_rY2==null)return;var _7Z2=" ";var _vD=String.fromCharCode(0x0a);var _8Z2=String.fromCharCode(0x0d);var _P4=new Object();_P4._gZ2=0.0;_P4._hZ2=0.0;_P4._VD=null;var _VD=[];if(!_U3)_rY2=_9d1(_rY2,this._iG);var _0j=_rY2.length;
var _1s=_rY2;var _iZ2=[];var start=0;var char=0;while(char!=_0j){if((_1s[char]==_vD)||(_1s[char]==_8Z2)){_iZ2[_iZ2.length]=_1s.substring(start,char);while((_1s[char]==_vD)||(_1s[char]==_8Z2)){char++;}start=char;}else {char++;}}if((char>start)&&(start<_0j)){_iZ2[_iZ2.length]=_1s.substring(start,char);}var _6j=0.0;var _KG=0.0;var _jZ2=this._iG._5Y2;var _kZ2=0.0;var _lZ2=this._iG._gY2(32);for(var _ih=0;_ih<_iZ2.length;_ih++){var _Kl=_iZ2[_ih];var _EO2=null;if(_Fm){var lineWidth=0.0;var _mZ2=0;while(_mZ2<_Kl.length){
if(_Kl[_mZ2]!=_7Z2)break;_mZ2++;}if(_mZ2==_Kl.length){_KG+=_jZ2;_KG+=_eZ2;_KG+=_fZ2;}else {var _nZ2=_mZ2;var _oZ2=_mZ2;var _pZ2=_mZ2;var _qZ2=0;while(_mZ2<_Kl.length){while((_mZ2<_Kl.length)&&(_Kl[_mZ2]!=_7Z2)){_mZ2++;}var _rZ2=this._iG._hY2(_Kl,_nZ2,_mZ2-_nZ2,_jY2);if((lineWidth+_rZ2)>_cZ2){if(_qZ2==0){lineWidth=_rZ2;_kZ2=_W6(_kZ2,lineWidth);_EO2=new Object();_EO2._sZ2=_Kl.substring(_pZ2,_mZ2);_EO2.x=_6j;_EO2.y=_KG;_EO2.lineWidth=lineWidth;_EO2._vY2=0.0;_EO2._tZ2=false;_EO2._uZ2=1;_VD[_VD.length]=_EO2;
_mZ2++;lineWidth=0.0;_qZ2=0;_pZ2=_mZ2;}else {_kZ2=_W6(_kZ2,lineWidth);_EO2=new Object();_EO2._sZ2=_Kl.substring(_pZ2,_oZ2);_EO2.x=_6j;_EO2.y=_KG;_EO2.lineWidth=lineWidth;_EO2._vY2=0.0;_EO2._tZ2=false;_EO2._uZ2=_qZ2;_VD[_VD.length]=_EO2;_oZ2=_mZ2;lineWidth=_rZ2;_qZ2=1;_pZ2=_nZ2;}_KG+=_jZ2;_KG+=_eZ2;}else {_oZ2=_mZ2;if(_qZ2>0){lineWidth+=_lZ2;}lineWidth+=_rZ2;_qZ2++;}var _vZ2=_mZ2+1;while((_mZ2<_Kl.length)&&(_Kl[_mZ2]==_7Z2)){_mZ2++;}if(_mZ2>_vZ2){var _wZ2=_Kl.substring(0,_vZ2-1);var _xZ2=_Kl.substring(_mZ2,
_Kl.length);_Kl=_wZ2+_xZ2;_mZ2=_vZ2;}_nZ2=_mZ2;}if(_pZ2<(_Kl.length)){lineWidth=this._iG._hY2(_Kl,_pZ2,(_Kl.length)-_pZ2,_jY2);_kZ2=_W6(_kZ2,lineWidth);_EO2=new Object();_EO2._sZ2=_Kl.substring(_pZ2,_Kl.length);_EO2.x=_6j;_EO2.y=_KG;_EO2.lineWidth=lineWidth;_EO2._vY2=0.0;_EO2._tZ2=false;_EO2._uZ2=_qZ2;_VD[_VD.length]=_EO2;_KG+=_jZ2;_KG+=_eZ2;}}}else {var lineWidth=this._iG._hY2(_Kl,0,_Kl.length,_jY2);_kZ2=_W6(_kZ2,lineWidth);_EO2=new Object();_EO2._sZ2=_Kl;_EO2.x=_6j;_EO2.y=_KG;_EO2.lineWidth=lineWidth;
_EO2._vY2=0.0;_EO2._tZ2=false;_EO2._uZ2=0;_VD[_VD.length]=_EO2;if(_Kl.length==0)_EO2._tZ2=true;_KG+=_jZ2;_KG+=_eZ2;}if(_EO2!=null){_EO2._tZ2=(_Fm)?true:(_ih==(_iZ2.length-1));if(_EO2._tZ2){_KG+=_fZ2;}}}var _yZ2=(_1R2>>8)&0xff;var _zZ2=_1R2&0xff;var _AZ2=_KG-_eZ2-_fZ2;if(_Fm){var _BZ2=0.0;if(_yZ2==_CZ2)_BZ2=(_DZ2-_AZ2)*0.5;else if(_yZ2==_EZ2)_BZ2=(_DZ2-_AZ2);if(_BZ2!=0.0){var _FZ2=_VD.length;for(var i=0;i<_FZ2;i++){var _Ig2=_VD[i];_Ig2.y+=_BZ2;}}}if(_zZ2!=_GZ2){var _HZ2=(_Fm)?_cZ2:_kZ2;var _FZ2=_VD.length;
for(var i=0;i<_FZ2;i++){var _Ig2=_VD[i];var lineWidth=_Ig2.lineWidth;if(_zZ2==_IZ2){if(!_Ig2._tZ2){if(_Ig2._uZ2>1){var _JZ2=(_HZ2-lineWidth);_Ig2._vY2=_JZ2/(_Ig2._uZ2-1);}}}else if(_zZ2==_KZ2)_Ig2.x=(_HZ2-lineWidth);else if(_zZ2==_LZ2)_Ig2.x=(_HZ2-lineWidth)*0.5;}}_P4._kZ2=_kZ2;_P4._AZ2=_AZ2;_P4._VD=_VD;return _P4;};_EG2.prototype._cG=function(__n,x,y,_MZ2,_6Z2,_U5,_2o,_3o,_Es,_Fs,_Gs,_Hs){var _bP=_2o;var _cP=_3o;var _4Y=0.0;var _5Y=0.0;var _VD=[];var i=0;this._hG();var _iG=this._iG;if(_Es===undefined){_Es=_Lc|((_Kc*255.0)<<24);
_Fs=_Lc|((_Kc*255.0)<<24);_Gs=_Lc|((_Kc*255.0)<<24);_Hs=_Lc|((_Kc*255.0)<<24);}else if(_Fs===undefined){_Fs=_Es;_Gs=_Es;_Hs=_Es;}var _Kl=__n;_VD=this._XD(_Kl,_6Z2,_iG);var _I21=_3G2(_U5);var _l7=Math.sin(_I21);var _m7=Math.cos(_I21);if(_MZ2<0)_MZ2=_iG?_iG._kG('M'):20;var _NZ2=_l7*_bP*_MZ2;var _OZ2=_m7*_cP*_MZ2;if(this._aG==1){y=y-(_VD.length*_OZ2)/2;x=x-(_VD.length*_NZ2)/2;}if(this._aG==2){y=y-_VD.length*_OZ2;x=x-_VD.length*_NZ2;}if(!_iG){if(!_s8){_4a.fillStyle=_jK;_4a.globalAlpha=_Kc;for(i=0;i<=_VD.length-1;
i++){var _PZ2=_VD[i];if(_PZ2!=null){_4a.fillText(_PZ2,x,y+13);y=y+_OZ2;x=x+_NZ2;}}}else {if(this._bG!=-1)_Bi("Error: Runtime canvas fonts are not supported in WebGL.");}}else {for(i=0;i<=_VD.length-1;i++){_4Y=0;_5Y=0;if(_iG.ascenderOffset!=undefined){_5Y-=_iG.ascenderOffset*_cP;}var _PZ2=_VD[i];if(_PZ2!=null){if(this._9G==1)_4Y=-(_bP*_iG._lG(_PZ2,true)/2);if(this._9G==2)_4Y=-(_bP*_iG._lG(_PZ2,true));if(_iG._0Y2){_4Y-=(_bP*_iG._JG.xOrigin);_5Y-=(_cP*_iG._JG.yOrigin);}var _27=x+(_m7*_4Y)+(_l7*_5Y);var _47=y-(_l7*_4Y)+(_m7*_5Y);
if(_iG._AG){if(_iG._0Y2){if(!_s8){_iG._PY2(_27,_47,_PZ2,_bP,_cP,_U5,_Es,_Fs,_Gs,_Hs);}else {_iG._QY2(_27,_47,_PZ2,_bP,_cP,_U5,_Es,_Fs,_Gs,_Hs);}}else {if(_iG._Qh){_QZ2(_iG._DG,_PZ2,_27,_47,1,1,_I21,_Es,_Fs,_Gs,_Hs);}}}else {if(_s8){_iG._zY2(_27,_47,_PZ2,_bP,_cP,_U5,_Es,_Fs,_Gs,_Hs);}else {_iG._JY2(_27,_47,_PZ2,_bP,_cP,_U5,_Es,_Fs,_Gs,_Hs);}}}y=y+_OZ2;x=x+_NZ2;}}};_EG2.prototype._RZ2=function(_SZ2,_Q5,_R5,_jY2,_TZ2,_UZ2){if(_SZ2==null)return;var _bP=1.0;var _cP=1.0;var angle=0.0;var _VD=_SZ2;var i=0;this._hG();
var _iG=this._iG;var _L4=_Lc|((_Kc*255.0)<<24);var _CY2=null;if(!_s8){_CY2=_OA[_kA];angle=Math.atan2(_CY2._K6[1],_CY2._K6[0])*(-180/Math.PI);_bP=Math.sqrt((_CY2._K6[0]*_CY2._K6[0])+(_CY2._K6[1]*_CY2._K6[1]));_cP=Math.sqrt((_CY2._K6[4]*_CY2._K6[4])+(_CY2._K6[5]*_CY2._K6[5]));}if(!_iG){if(!_s8){_4a.fillStyle=_jK;_4a.globalAlpha=_Kc;for(i=0;i<=_VD.length-1;i++){var _PZ2=_VD[i]._sZ2;var _4Y=_VD[i].x;var _5Y=_VD[i].y;var __r2=new _iz(_Q5+_4Y,_R5+_5Y+13,0);var _VZ2=_CY2._as2(__r2);if(_PZ2!=null){_4a.fillText(_PZ2,
_VZ2._Pz,_VZ2._Qz);}}}else {if(this._bG!=-1)_Bi("Error: Runtime canvas fonts are not supported in WebGL.");}}else {var _WZ2=_R5;_WZ2+=_iG._5Y2;if(_iG.ascenderOffset!=undefined){_WZ2-=_iG.ascenderOffset;}if(_iG.ascender!=undefined){_WZ2-=_iG.ascender;}for(i=0;i<=_VD.length-1;i++){var _PZ2=_VD[i]._sZ2;var _4Y=_VD[i].x;var _5Y=_VD[i].y;var _vY2=_VD[i]._vY2;if(_PZ2!=null){if(_iG._0Y2){_4Y-=(_iG._JG.xOrigin);_5Y-=(_iG._JG.yOrigin);}var _27=_Q5+_4Y;var _47=_WZ2+_5Y;var _VZ2=null;if(!_s8){var __r2=new _iz(_27,_47,
0);_VZ2=_CY2._as2(__r2);}if(_iG._AG){if(_iG._0Y2){if(!_s8){_iG._PY2(_VZ2._Pz,_VZ2._Qz,_PZ2,_bP,_cP,angle,_L4,_L4,_L4,_L4,_jY2,_vY2);}else {_iG._QY2(_27,_47,_PZ2,_bP,_cP,angle,_L4,_L4,_L4,_L4,_jY2,_vY2);}}else {if(_iG._Qh){_QZ2(_iG._DG,_PZ2,_27,_47,1,1,angle,_L4,_L4,_L4,_L4);}}}else {if(_s8){_iG._zY2(_27,_47,_PZ2,_bP,_cP,angle,_L4,_L4,_L4,_L4,_jY2,_vY2);}else {_iG._JY2(_VZ2._Pz,_VZ2._Qz,_PZ2,_bP,_cP,angle,_L4,_L4,_L4,_L4,_jY2,_vY2);}}}}}};_EG2.prototype._mG=function(__n,x,y,_MZ2,_6Z2){_nG=_oG=0;var _VD=[];
var i=0;this._hG();var _iG=this._iG;if(!_iG)return 1;_VD=this._XD(__n,_6Z2,_iG);if(_MZ2<0){_MZ2=_iG._kG("M");}var _PZ2,w;if(_VD.length>0){for(i=0;i<_VD.length-1;i++){_PZ2=_VD[i];if(_PZ2!=null){w=_iG._lG(_PZ2,true);if(_nG<w){_nG=w;}}_oG+=_MZ2;}_oG+=_iG._kG("M");}_PZ2=_VD[_VD.length-1];w=_iG._lG(_PZ2,true);if(_nG<w)_nG=w;};var _XZ2;var _35;var _YZ2=null;var _me1=1024;var _ne1=768;var _ei1=1;var _fi1=1;var _1K=0;var _2K=0;var _3K=0;var _4K=0;var _2e1=0;var _4e1=0;var _6e1=0;var _8e1=0;var _is2=[];var _ZZ2=0;var _O9=0xffffff;
var _os;var _ss;var _ge1;var _ie1;var _MY2;var _XJ;var _KY2;var __Z2;var _ws;var _0_2;var _1_2;var _5K;var _ZJ;var _2_2;var _zs;var _3_2;var _4_2;var _5_2;var _QZ2;var _6_2=true;function _7_2(){return _me1;}function _8_2(){return _ne1;}function _pb1(_9_2){if(!_9_2)return;_9_2._a_2=_9_2.transform;_9_2._0K=_9_2.setTransform;_9_2._b_2=_9_2.save;_9_2._c_2=_9_2.restore;_9_2._uK=_9_2.fillRect;_9_2._tK=_9_2.strokeRect;_9_2._CK=_9_2.beginPath;_9_2._jL=_9_2.arc;_9_2._GK=_9_2.stroke;_9_2._FK=_9_2.closePath;_9_2.lineWidth=_9_2.lineWidth;
_9_2._DK=_9_2.moveTo;_9_2._EK=_9_2.lineTo;_9_2._PK=_9_2.fill;_9_2._rb1=_9_2.drawImage;_9_2._pe1=_9_2.getImageData;_9_2._d_2=_9_2.createImageData;_9_2._BT2=_9_2.putImageData;_9_2._e_2=_9_2.clip;_9_2._f_2=_9_2.rect;}function _g_2(_9_2,_cz){if((_9_2.imageSmoothingEnabled==_cz)&&(_9_2.msImageSmoothingEnabled==_cz))return;_9_2.imageSmoothingEnabled=_cz;_9_2.webkitImageSmoothingEnabled=_cz;_9_2.mozImageSmoothingEnabled=_cz;_9_2.msImageSmoothingEnabled=_cz;_9_2.oImageSmoothingEnabled=_cz;}function _ee1(_9_2){
if(!_s8)_g_2(_9_2,_6_2);}function _h_2(_CB){_CB=_CB>0.5;if(_6_2!=_CB){_6_2=_CB;_g_2(_4a,_CB);}}function _wG2(_VR1){_35=[];_YZ2=null;_1K=0;_2K=0;_3K=0;_4K=0;_2e1=0;_4e1=0;_6e1=0;_8e1=0;_is2=[];_is2[0]=1;_is2[1]=0;_is2[2]=0;_is2[3]=0;_is2[4]=1;_is2[5]=0;if(!_s8){if(_Qy2){_os=_i_2;}else {_os=_j_2;}_ss=_k_2;_zs=_l_2;_ge1=_m_2;_ie1=_n_2;_2_2=_o_2;_MY2=_p_2;_XJ=_q_2;_KY2=_r_2;__Z2=_s_2;_ws=_t_2;_ZJ=_u_2;_5K=_v_2;_QZ2=_w_2;_1_2=_x_2;_3_2=_y_2;_0_2=_z_2;_4_2=function(){};_5_2=function(){};_6_2=!(_xD.Options&&!_xD.Options.interpolatePixels);
if(_Ry2){if(_Qy2){_O9=0x1ffffff;_os=_A_2;}else {_os=_B_2;}_ss=_k_2;_zs=_C_2;}}else {_D_2();}_ge1(0,0,_6i1,_7i1);_ie1(0,0,_6i1,_7i1,0);}var _E_2=[];var _F_2=0;function _u_2(){_4a._b_2();_E_2.push({_cl:_F_2++,_G_2:_1K,_H_2:_2K,_I_2:_3K,_J_2:_4K});}function _v_2(){_4a._c_2();var _E4=_E_2.pop();_1K=_E4._G_2;_2K=_E4._H_2;_3K=_E4._I_2;_4K=_E4._J_2;--_F_2;}function _zb1(_Tb1){_Tb1._D8=[];_Tb1._E8=0;_Tb1._F8=4;_Tb1._Od1=0;_Tb1._Ss=null;_Tb1._nb1=null;_Tb1._95=_35[_Tb1.tp];}function _yH2(_K_2){_YZ2=_K_2;for(var i=0;
i<_K_2.length;i++){var __4=_K_2[i];_zb1(__4);}}/*@constructor */function _L_2(){this._hs=null;this._M_2=0;}function _LY2(_8e,_N_2,_Q5,_R5,_nj,_oj,_Mc){var _O_2=null;if(_N_2._D8!=undefined){_O_2=_N_2._D8[_Mc];}else {_N_2._D8=[];_N_2._F8=4;_N_2._E8=0;}if(_O_2!=null){_O_2._M_2=_ZZ2;return _O_2._hs;}var _P_2=-9999999999;_O_2=null;if(_N_2._E8<_N_2._F8){_O_2=new _L_2();_N_2._E8++;}else {var _Q_2=-1;for(var i in _N_2._D8){if(!_N_2._D8.hasOwnProperty(i))continue;var _R_2=_N_2._D8[i];if(_R_2!=null){var _Y6=_ZZ2-_R_2._M_2;
if(_Y6>_P_2){_Q_2=i;_O_2=_R_2;_P_2=_Y6;}}}if(_Q_2>=0)delete _N_2._D8[_Q_2];}_N_2._D8[_Mc]=_O_2;_O_2._M_2=_ZZ2;_O_2._hs=_S_2(_8e,_Q5,_R5,_nj,_oj,_Mc);return _O_2._hs;}function _P9(_Tb1,_Mc){return _LY2(_Tb1._95,_Tb1,_Tb1.x,_Tb1.y,_Tb1.w,_Tb1.h,_Mc);}function _pQ2(_74){return _YZ2[_74];}function _p_2(){_4a._0K(_is2[0],_is2[3],_is2[1],_is2[4],_is2[2],_is2[5]);}function _q_2(_0d){_ZJ();var __J=[];__J[0]=1;__J[1]=0;__J[2]=0;__J[3]=1;__J[4]=0;__J[5]=0;_4a._0K(__J[0],__J[1],__J[2],__J[3],__J[4],__J[5]);_4a.fillStyle=_lK(_0d|0xff000000);
_4a._uK(_1K,_2K,_3K,_4K);_5K();}function _m_2(_US1,_VS1,_WS1,_XS1){_1K=_US1;_2K=_VS1;_3K=_WS1;_4K=_XS1;if(_U3){if((_1K===0&&_2K===0)&&(_3K==_4a.canvas.width&&_4K===_4a.canvas.height)){}else {_is2[0]=1;_is2[1]=0;_is2[2]=0;_is2[3]=1;_is2[4]=0;_is2[5]=0;_4a._0K(_is2[0],_is2[1],_is2[2],_is2[3],_is2[4],_is2[5]);_4a.beginPath();_4a.moveTo(_1K,_2K);_4a.lineTo(_1K+_3K,_2K);_4a.lineTo(_1K+_3K,_2K+_4K);_4a.lineTo(_1K,_2K+_4K);if(!(_FM==_1z2&&_Yi1==4.0)){_4a.clip();}}}}function _T_2(_Q5,_R5,_nj,_oj,_U5){var __f2=new _iz((_Q5+_nj/2.0),
(_R5+_oj/2.0),-16000.0);var _7g2=new _iz((_Q5+_nj/2.0),(_R5+_oj/2.0),0.0);var _fg2=new _iz(Math.sin(-_U5*(Math.PI/180.0)),Math.cos(-_U5*(Math.PI/180.0)),0.0);_5F2._lz(__f2,_7g2,_fg2);_oe1._uz(_nj,-_oj*_rz,1.0,32000.0);}function _r_2(_Q5,_R5,_V4,_W4,_U5){var __J=[];__J[0]=Math.cos(_U5);__J[3]=Math.sin(_U5);__J[1]=-__J[3];__J[4]=__J[0];__J[0]*=_V4;__J[3]*=_V4;__J[1]*=_W4;__J[4]*=_W4;__J[2]=_Q5;__J[5]=_R5;_4a._a_2(__J[0],__J[3],__J[1],__J[4],__J[2],__J[5]);}function _s_2(_aw){_4a._a_2(_aw._K6[0],_aw._K6[1],
_aw._K6[4],_aw._K6[5],_aw._K6[12],_aw._K6[13]);}function _o_2(_zm,_Am,_U_2,_V_2){if((_1K===0&&_2K===0)&&(_3K==_4a.canvas.width&&_4K===_4a.canvas.height)){}else {_is2[0]=1;_is2[1]=0;_is2[2]=0;_is2[3]=1;_is2[4]=0;_is2[5]=0;_4a._0K(_is2[0],_is2[1],_is2[2],_is2[3],_is2[4],_is2[5]);_4a.moveTo(_1K,_2K);_4a.lineTo(_1K+_3K,_2K);_4a.lineTo(_1K+_3K,_2K+_4K);_4a.lineTo(_1K,_2K+_4K);if(!(_FM==_1z2&&_Yi1==4.0)){_4a.clip();}}_is2[0]=_zm;_is2[1]=0;_is2[2]=_U_2;_is2[3]=0;_is2[4]=_Am;_is2[5]=_V_2;_4a._0K(_is2[0],_is2[3],
_is2[1],_is2[4],_is2[2],_is2[5]);}function _n_2(_W_2,_X_2,_Y_2,_Z_2,_U5){if((_1K===0&&_2K===0)&&(_3K==_4a.canvas.width&&_4K===_4a.canvas.height)){}else {_is2[0]=1;_is2[1]=0;_is2[2]=0;_is2[3]=1;_is2[4]=0;_is2[5]=0;_4a._0K(_is2[0],_is2[1],_is2[2],_is2[3],_is2[4],_is2[5]);_4a.beginPath();_4a.moveTo(_1K,_2K);_4a.lineTo(_1K+_3K,_2K);_4a.lineTo(_1K+_3K,_2K+_4K);_4a.lineTo(_1K,_2K+_4K);if(!(_FM==_1z2&&_Yi1==4.0)){_4a.clip();}}var w=_3K/_Y_2;var h=_4K/_Z_2;_2e1=_W_2;_4e1=_X_2;_6e1=_Y_2;_8e1=_Z_2;_is2[0]=w;_is2[1]=0;
_is2[2]=-(_W_2*w)+_1K;_is2[3]=0;_is2[4]=h;_is2[5]=-(_X_2*h)+_2K;_4a._0K(_is2[0],_is2[3],_is2[1],_is2[4],_is2[2],_is2[5]);}function _V8(_b4){var i=_35.length;var _95=new Image();_b4=_671(_b4);_95.crossOrigin=_JM;_95.src=_CG(null,null,_b4);_35[i]=_95;return i;}function ___2(_A8,_B8){var c=document.createElement("canvas");c.width=_A8;c.height=_B8;var i=_35.length;var _95=new Image(_A8,_B8);_95.src=_CG(null,null,c.toDataURL());_35[i]=_95;return i;}function _003(_zU1){var i=_35.length;_35[i]=_zU1;return i;}function _103(_8e,
_Q5,_R5,_nj,_oj,_VR1){var context=_8e.getContext('2d');context.globalCompositeOperation='copy';context.drawImage(_VR1,_Q5,_R5);}function _ks(_203){var i=_35.length;_35[i]=_203;return i;}function _x_2(){_ZZ2++;}function _y_2(){}function _is(_Tb1){var _nb1=document.createElement(_eE);var __r=_nb1.getContext('2d');_pb1(__r);_nb1.width=_Tb1.w;_nb1.height=_Tb1.h;__r._rb1(_Tb1._95,_Tb1.x,_Tb1.y,_Tb1.w,_Tb1.h,0,0,_Tb1.w,_Tb1.h);_nb1.complete=true;return _nb1;}function _Vb1(_Tb1){var _6G=[];var _VW=_Tb1.ow*_Tb1.oh*4;
var _303;for(var i=0;i<_VW;i++)_6G[i]=0;if(_Tb1._95._Ba)_303=_s8._AV1(_Tb1);else {var _nb1=document.createElement(_eE);var __r=_nb1.getContext('2d');_pb1(__r);_nb1.width=_Tb1.w;_nb1.height=_Tb1.h;__r._rb1(_Tb1._95,_Tb1.x,_Tb1.y,_Tb1.w,_Tb1.h,0,0,_Tb1.w,_Tb1.h);_nb1.complete=true;var data,_qe1,_403,_503;try{data=__r.getImageData(0,0,_Tb1.w,_Tb1.h);}catch(_ek){return _6G;}_303=data.data;}var _603=(_Tb1.XOffset+(_Tb1.YOffset*_Tb1.ow))*4;var _j7=_Tb1.w*4;var x,y;for(y=0;y<_Tb1.h;y++){var bindex=_603;var _703=y*_j7;
for(x=0;x<_j7;x++){_6G[bindex++]=_303[_703++];}_603+=_Tb1.ow*4;}return _6G;}function _i_2(_Tb1,_Q5,_R5,_A9){if(!_Tb1)return;if(!_Tb1._95)return;if(!_Tb1._95.complete)return;if(_Tb1._nb1==null)_Tb1._nb1=_is(_Tb1);_Q5+=_Tb1.XOffset;_R5+=_Tb1.YOffset;_4a.globalAlpha=_A9;_4a._rb1(_Tb1._nb1,~~_Q5,~~_R5);}function _A_2(_Tb1,_Q5,_R5,_A9){_i_2(_Tb1,_Q5,_R5,_A9);}function _j_2(_Tb1,_Q5,_R5,_A9){if(!_Tb1)return;if(!_Tb1._95)return;if(!_Tb1._95.complete)return;_4a.globalAlpha=_A9;_4a._rb1(_Tb1._95,~~_Tb1.x,~~_Tb1.y,
_Tb1.w,_Tb1.h,Math.floor(_Q5)+_Tb1.XOffset,Math.floor(_R5)+_Tb1.YOffset,_Tb1.CropWidth,_Tb1.CropHeight);}function _B_2(_Tb1,_Q5,_R5,_A9){_j_2(_Tb1,_Q5,_R5,_A9);}function _803(_VR1){try{_4a._rb1(_VR1,0,0,_VR1.width,_VR1.height,canvas.width,canvas.height,0,0);}catch(e){return false;}var _0b=_VR1.getContext('2d');_0b.fillStyle="white";_0b.fillRect(0,0,1,1);var _AT2=_0b.getImageData(0,0,1,1);return(_AT2.data[0]===255);}function _k_2(_Tb1,_Q5,_R5,_903,_a03,_b03,_c03,_0d,_A9){var _25=_Tb1._95;if(!_25)return;
if(!_25.complete)return;if(_Tb1.w==0||_Tb1.h==0)return;var i=0;if(_b03)i=1;if(_c03)i|=2;if(i===0){_4a.globalAlpha=_A9;_4a._rb1(_25,_Tb1.x,_Tb1.y,_Tb1.w,_Tb1.h,_Q5+_Tb1.XOffset,_R5+_Tb1.YOffset,(_Tb1.CropWidth*_903),(_Tb1.CropHeight*_a03));return;}var w=_Tb1.ow;var h=_Tb1.oh;if(_c03){w=(((((_3F2._5e1+(_Tb1.ow-1))/_Tb1.ow)&0xffffffff)+2)*_Tb1.ow);_Q5=_2e1+(((_Q5-_2e1)%_Tb1.ow)-_Tb1.ow);}if(_b03){h=(((((_3F2._7e1+(_Tb1.oh-1))/_Tb1.oh)&0xffffffff)+2)*_Tb1.oh);_R5=_4e1+(((_R5-_4e1)%_Tb1.oh)-_Tb1.oh);}if((_Tb1._Ss!=null)&&(_Tb1._Ss.width<(w*_Tb1._d03)||_Tb1._Ss.height<(h*_Tb1._d03))){
_Tb1._Ss=null;_Tb1._Ts=0;}if((_Tb1._Od1!=i)||(!_Tb1._Ss)){_Tb1._Od1=i;var buffer=document.createElement(_eE);var __r=buffer.getContext('2d');_pb1(__r);buffer.width=w;buffer.height=h;_4a.globalAlpha=1;var _e03=1;while((_803(buffer)===false)&&(buffer.width>=64)&&(buffer.height>=64)){debug("WARNING: Tiled image quality reduction");buffer.width/=2;buffer.height/=2;_e03/=2;}var _HX=_Tb1.x;var _IX=_Tb1.y;if(_0d!=_O9){_25=_P9(_Tb1,_0d);_HX=0;_IX=0;}var _Nt=w/_Tb1.ow;var _Ot=h/_Tb1.oh;for(var y=0;y<_Ot;y++){for(var x=0;
x<_Nt;x++){__r._rb1(_25,_HX,_IX,_Tb1.w,_Tb1.h,_Tb1.XOffset+((x*_Tb1.ow)*_e03),_Tb1.YOffset+((y*_Tb1.oh)*_e03),_Tb1.CropWidth*_e03,_Tb1.CropHeight*_e03);}}_Tb1._d03=_e03;_Tb1._Ss=buffer;}_4a.globalAlpha=_A9;_4a._rb1(_Tb1._Ss,_Q5,_R5,_Tb1._Ss.width/_Tb1._d03,_Tb1._Ss.height/_Tb1._d03);}function _l_2(_Tb1,_tb1,_ub1,_Q5,_R5,_903,_a03,_X4,_Xp,_do,_wK,_xK,_A9){if(!_Tb1._95)return;if(!_Tb1._95.complete)return;if((abs(_903)<=0.0001)||(abs(_a03)<=0.0001)||(_A9<=0)){return;}_Xp&=0xffffff;var _cL=-(_tb1-_Tb1.XOffset);
var _dL=-(_ub1-_Tb1.YOffset);var _Fg2=_4a.globalAlpha;_4a.globalAlpha=_A9;if(_Xp!=_O9){var _AY2=_P9(_Tb1,_Xp);var _D4=Math.abs(_X4);if((_D4<0.0001)&&(_903==1)&&(_a03==1)&&(_Tb1.w===_Tb1.CropWidth)&&(_Tb1.h===_Tb1.CropHeight)){_4a._rb1(_AY2,_Q5+_cL,_R5+_dL);}else {if((_903<0)||(_a03<0)||(_D4>0.0001)){_KY2(_Q5,_R5,_903,_a03,-_X4);_4a._rb1(_AY2,0,0,_Tb1.w,_Tb1.h,_cL,_dL,_Tb1.CropWidth,_Tb1.CropHeight);_MY2();}else {_4a._rb1(_AY2,0,0,_Tb1.w,_Tb1.h,_Q5+(_cL*_903),_R5+(_dL*_a03),_Tb1.CropWidth*_903,_Tb1.CropHeight*_a03);
}}}else {var _D4=Math.abs(_X4);if((_D4<0.0001)&&(_903==1)&&(_a03==1)&&(_Tb1.w===_Tb1.CropWidth)&&(_Tb1.h===_Tb1.CropHeight)){if(_Tb1._nb1==null){_Tb1._nb1=_is(_Tb1);}_4a._rb1(_Tb1._nb1,_Q5+_cL,_R5+_dL);}else {if(_903<0||_a03<0||_D4>0.001){_KY2(_Q5,_R5,_903,_a03,-_X4);_4a._rb1(_Tb1._95,_Tb1.x,_Tb1.y,_Tb1.w,_Tb1.h,_cL,_dL,_Tb1.CropWidth,_Tb1.CropHeight);_MY2();}else {_4a._rb1(_Tb1._95,_Tb1.x,_Tb1.y,_Tb1.w,_Tb1.h,_Q5+(_cL*_903),_R5+(_dL*_a03),_Tb1.CropWidth*_903,_Tb1.CropHeight*_a03);}}}_4a.globalAlpha=_Fg2;
}function _C_2(_Tb1,_tb1,_ub1,_Q5,_R5,_903,_a03,_X4,_Xp,_do,_wK,_xK,_A9){try{_l_2(_Tb1._95,_tb1,_ub1,_Q5,_R5,_903,_a03,_X4,_Xp,_do,_wK,_xK,_A9);}catch(_ek){debug("error drawing image");}}function _S_2(_8e,_Q5,_R5,_nj,_oj,_0d){var buffer=document.createElement(_eE);var __r=buffer.getContext('2d');_pb1(__r);buffer.width=_nj;buffer.height=_oj;__r._rb1(_8e,_Q5,_R5,_nj,_oj,0,0,_nj,_oj);if(~~_0d!=0xffffff){var data,_qe1,_403,_503;data=__r._pe1(0,0,buffer.width,buffer.height);_qe1=data.data;var _f03=__r._d_2(buffer.width,
buffer.height);_503=_f03.data;var _D4=((_0d>>16)&0xff)/255;var _E4=((_0d>>8)&0xff)/255;var _F4=(_0d&0xff)/255;var _k91=(data.height*data.width*4);for(var i=_k91-4;i>=0;i-=4){_503[i]=(_qe1[i]*_D4)|0;_503[i+1]=(_qe1[i+1]*_E4)|0;_503[i+2]=(_qe1[i+2]*_F4)|0;_503[i+3]=(_qe1[i+3]);}_f03.data=_503;__r._BT2(_f03,0,0);}return buffer;}function _g03(_Tb1,_b7,_c7,_D6,_E6,_8u,_9u,_nf1,_of1,_A9){var _25=_Tb1._95;if(!_25)return;if(!_25.complete)return;_4a.globalAlpha=_A9;_h03(_25,_b7,_c7,_D6,_E6,_8u,_9u,_Tb1.x,_Tb1.y,
_Tb1.x+_Tb1.w,_Tb1.y,_Tb1.x+_Tb1.w,_Tb1.y+_Tb1.h);_h03(_25,_8u,_9u,_nf1,_of1,_b7,_c7,_Tb1.x+_Tb1.w,_Tb1.y+_Tb1.h,_Tb1.x,_Tb1.y+_Tb1.h,_Tb1.x,_Tb1.y);}function _h03(_1b,_2b,_3b,_L6,_M6,_N6,_O6,_4b,_5b,_6b,_7b,_8b,_9b){_ZJ();_4a._CK();_4a._DK(_2b,_3b);_4a._EK(_L6,_M6);_4a._EK(_N6,_O6);_4a._FK();_4a._e_2();var _ab=_4b*(_9b-_7b)-_6b*_9b+_8b*_7b+(_6b-_8b)*_5b;if(_ab==0)return;var _bb=-(_5b*(_N6-_L6)-_7b*_N6+_9b*_L6+(_7b-_9b)*_2b)/_ab;var _cb=(_7b*_O6+_5b*(_M6-_O6)-_9b*_M6+(_9b-_7b)*_3b)/_ab;var _db=(_4b*(_N6-_L6)-_6b*_N6+_8b*_L6+(_6b-_8b)*_2b)/_ab;
var _eb=-(_6b*_O6+_4b*(_M6-_O6)-_8b*_M6+(_8b-_6b)*_3b)/_ab;var _fb=(_4b*(_9b*_L6-_7b*_N6)+_5b*(_6b*_N6-_8b*_L6)+(_8b*_7b-_6b*_9b)*_2b)/_ab;var _gb=(_4b*(_9b*_M6-_7b*_O6)+_5b*(_6b*_O6-_8b*_M6)+(_8b*_7b-_6b*_9b)*_3b)/_ab;_4a._a_2(_bb,_cb,_db,_eb,_fb,_gb);_4a._rb1(_1b,0,0);_5K();}function _t_2(_Tb1,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_ys,_A9){if(!_Tb1)return;if(!_Tb1._95)return;if(!_Tb1._95.complete)return;_ys&=0xffffff;_4a.globalAlpha=_A9;if(_us<_Tb1.XOffset){var _i03=_Tb1.XOffset-_us;_Q5+=_i03*_2o;_A8-=_i03;
_us=0;}else {_us-=_Tb1.XOffset;}if(_vs<_Tb1.YOffset){var _i03=_Tb1.YOffset-_vs;_R5+=_i03*_3o;_B8-=_i03;_vs=0;}else {_vs-=_Tb1.YOffset;}if(_A8>(_Tb1.CropWidth-_us))_A8=_Tb1.CropWidth-_us;if(_B8>(_Tb1.CropHeight-_vs))_B8=_Tb1.CropHeight-_vs;if(_A8<=0||_B8<=0)return;_Q5=~~_Q5;_R5=~~_R5;if(_ys!=_O9){var _AY2=_P9(_Tb1,_ys);if(_2o<0||_3o<0){_KY2(_Q5,_R5,_2o,_3o,0);_4a._rb1(_AY2,_us,_vs,_A8,_B8,0,0,_A8,_B8);_MY2();}else {_4a._rb1(_AY2,_us,_vs,_A8,_B8,_Q5,_R5,_A8*_2o,_B8*_3o);}}else {if(_2o<0||_3o<0){_KY2(_Q5,
_R5,_2o,_3o,0);_4a._rb1(_Tb1._95,_us+_Tb1.x,_vs+_Tb1.y,_A8,_B8,0,0,_A8,_B8);_MY2();}else {_4a._rb1(_Tb1._95,_us+_Tb1.x,_vs+_Tb1.y,_A8,_B8,_Q5,_R5,_A8*_2o,_B8*_3o);}}}function _qs(_Tb1,_Q5,_R5,_nj,_oj,_ys,_A9){if(!_Tb1)return;if(!_Tb1._95)return;if((_Tb1._95 instanceof HTMLImageElement)&&(!_Tb1._95.complete))return;_Q5=~~_Q5;_R5=~~_R5;var _HX=_nj/_Tb1.ow;var _IX=_oj/_Tb1.oh;_zs(_Tb1,0,0,_Q5,_R5,_HX,_IX,0,_ys,_ys,_ys,_ys,_A9);}function _Is(_Tb1,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_X4,_Es,_Fs,_Gs,_Hs,_A9){if(!_Tb1)return;
if(!_Tb1._95)return;if(!_Tb1._95.complete)return;_zs(_Tb1,_us,_vs,_Q5,_R5,_2o,_3o,_X4,_Es,_Fs,_Gs,_Hs,_A9);}var _Ks=_j03;function _j03(_k03,_l03){if(_s8)return false;var buffer=document.createElement(_eE);var __r=buffer.getContext('2d');_pb1(__r);buffer.width=_k03.w;buffer.height=_k03.h;__r.drawImage(_l03._95,_l03.x,_l03.y,_l03.w,_l03.h,0,0,_k03.w,_k03.h);var _m03,_n03,_o03,_p03,_q03;try{_n03=__r.getImageData(0,0,_k03.w,_k03.h);_q03=_k03._95.getContext('2d');_pb1(_q03);_o03=_q03.getImageData(_k03.x,_k03.y,
_k03.w,_k03.h);}catch(_ek){return false;}_m03=_n03.data;_p03=_o03.data;var _k91=(_o03.height*_o03.width*4);for(var i=_k91-4;i>=0;i-=4){var c=~~((_m03[i]+_m03[i+1]+_m03[i+2])/3);_p03[i+3]=c;}_o03.data=_p03;_q03.putImageData(_o03,0,0);return true;}function _w_2(_ao,__n,_Q5,_R5,_2o,_3o,_U5,_0d,_A9){_4a.globalAlpha=_A9;_4a.fillStyle=_9s(_0d,1.0);_4a.font=_ao;_4a.textBaseline="top";_KY2(_Q5,_R5,_2o,_3o,-_U5);_4a.fillText(__n,0,0);_MY2();};function _0s(_r03,_nj,_oj){try{var data,_qe1,_403,_503;data=_r03._pe1(0,
0,_nj,_oj);_qe1=_503=data.data;var _s03=(_oj-1)*_nj*4;var _D4=_qe1[_s03+0];var _E4=_qe1[_s03+1];var _F4=_qe1[_s03+2];var _G4=_qe1[_s03+3];var _k91=(data.height*data.width*4);for(var i=_k91-4;i>=0;i-=4){_503[i+0]=_qe1[i+0];_503[i+1]=_qe1[i+1];_503[i+2]=_qe1[i+2];if((_503[i+0]==_D4)&&(_503[i+1]==_E4)&&(_503[i+2]==_F4)){_503[i+3]=0x0;}else {_503[i+3]=_qe1[i+3];}}_r03._BT2(data,0,0);}catch(_ek){return false;}return true;};function _z_2(_1o){};var _t03=[];function gif_open(width,height,background_colour){var _KZ=new _hP1();
_KZ._CP1(0);_KZ._HP1(yyGetInt32(width),yyGetInt32(height));_KZ.start();for(var i=0;i<_t03.length;i++){if(_t03[i]==null){_t03[i]=_KZ;return i;}}var _P4=_t03.length;_t03[_t03.length]=_KZ;return _P4;};function gif_save_buffer(_u03){_u03=yyGetInt32(_u03);var _KZ=_t03[_u03];if(_KZ==null)return -1;_KZ._UP1();var _v03=_KZ._Ga1()._kP1();var _6k=buffer_create(_v03.length,_7k,1);if(_6k==null)return -1;for(var i=0;i<_v03.length;i++)buffer_write(_6k,_2N,_v03[i]);_t03[_u03]=null;return _6k;};function gif_save(_u03,filename){
_u03=yyGetInt32(_u03);var _KZ=_t03[_u03];if(_KZ==null)return;_KZ._UP1();_KZ.download(yyGetString(filename));_t03[_u03]=null;};function gif_add_surface(_u03,_w03,_x03,_y03,_z03,_A03){if(_A03===undefined)_A03=2;if(_y03===undefined)_y03=0;if(_z03===undefined)_z03=0;var _8s=_Zr._26(yyGetInt32(_w03));if(_8s!=null){var _KZ=_t03[yyGetInt32(_u03)];if(_KZ==null)return;switch(yyGetInt32(_A03)){default :_KZ._WP1(1);break;case 0:_KZ._WP1(0);break;case 1:_KZ._WP1(30);break;case 2:_KZ._WP1(10);break;}_KZ._AP1(yyGetInt32(_x03)*10);
var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);var _Vc=_s8._2V1(_nb1,_8s._Yd1,yyGetInt32(_y03),yyGetInt32(_z03),_KZ._4Q1(),_KZ._5Q1(),false,false);_KZ._FP1(Uint8ClampedArray.from(_Vc.Image),true);}};var _B03=0,_tT2=0;function _jN(_C03){this._D03=false;this._tN=[];this._E03=_C03;this._F03="";this._G03=0;this._H03=0;}function _fN(_eN){var _I03=new _jN(null);_I03._F03=_eN;_I03._J03();var _E8=0;for(var i in _I03._tN){if(!_I03._tN.hasOwnProperty(i))continue;_E8++;break;}return _I03;
}function _iN(_K03,_L03){var _Bf=_ml(_K03,_L03);var _I03=new _jN(_K03);_I03._F03=_Bf;_I03._J03();var _E8=0;for(var i in _I03._tN){if(!_I03._tN.hasOwnProperty(i))continue;_E8++;break;}if(_E8==0)return null;return _I03;}_jN.prototype._fF=function(){while((this._F03.charCodeAt(this._G03)!=0x0a)&&(this._F03.charCodeAt(this._G03)!=0x0d)&&(this._G03<this._4R2)){this._G03++;}this._H03++;this._G03++;if(this._G03>=this._4R2)return;if((this._F03.charCodeAt(this._G03)==0x0a)&&(this._F03.charCodeAt(this._G03)==0x0d)){
this._G03++;}};_jN.prototype._M03=function(){{if(this._G03>=this._4R2)return false;var c=this._F03.charCodeAt(this._G03);if(c==0x20||c==0x09||c==0x0a||c==0x0d||c==ord('#')||c==ord(';')){return true;}else {return false;}}};_jN.prototype._gF=function(){{while(this._M03()&&(this._G03<this._4R2)){var c=this._F03.charCodeAt(this._G03);if(c==ord('#')||c==ord(';')){this._fF();}else if(c==0x0a){this._H03++;}this._G03++;}if(this._G03>=this._4R2)return;}};_jN.prototype._N03=function(){{this._gF();while((this._F03.charAt(this._G03)!='[')&&(this._G03<this._4R2)){
this._G03++;}if(this._G03>=this._4R2)return null;this._G03++;var _O03=this._G03;while((this._F03.charAt(this._G03)!=']')&&(this._G03<this._4R2)){this._G03++;}if(this._G03>=this._4R2)return null;var _0j=this._G03-_O03;var _sN=[];_sN.__m_pIniFileName__=this._F03.substr(_O03,_0j);this._G03++;return _sN;}};_jN.prototype._P03=function(_Q03){{this._gF();if(this._G03>=this._4R2||this._F03.charAt(this._G03)=='[')return false;var _O03=this._G03;var _R03=-1;while((this._F03.charAt(this._G03)!='=')&&(this._G03<this._4R2)){
if(this._M03()){if(_R03<0)_R03=this._G03;}else {_R03=-1;}this._G03++;}if(this._G03>=this._4R2)return false;if(_R03<0)_R03=this._G03;var _0j=_R03-_O03;var _qN=this._F03.substr(_O03,_0j);while((this._F03.charAt(this._G03)!='=')&&(this._G03<this._4R2)){this._G03++;}if(this._G03>=this._4R2)return false;this._G03++;var _ID=this._H03;this._gF();if(_ID!=this._H03)return false;var _S03=ord('#');var _T03=ord(';');var _U03=false;var _m7=this._F03.charCodeAt(this._G03);switch(_m7){case 34:case 39:_S03=_m7;_T03=_m7;_U03=true;
this._G03++;break;case 91:case 123:_S03=-1;_T03=-1;break;}_O03=this._G03;var _V03=-1;var c=this._F03.charCodeAt(this._G03);while((c!=0x0a)&&(c!=0x0d)&&(c!=_S03)&&(c!=_T03)&&(this._G03<this._4R2)){if(c==0x20||c==0x09){if(_V03<0)_V03=this._G03;}else {_V03=-1;}if(c==ord('\\'))this._G03++;this._G03++;c=this._F03.charCodeAt(this._G03);}if(_V03>=0&&!_U03){_0j=_V03-_O03;}else {_0j=this._G03-_O03;}var _9Q1=this._F03.substr(_O03,_0j);_Q03[_qN]=_9Q1;if(_U03){_m7=this._F03.charCodeAt(this._G03);if((_m7==_S03)&&(_m7==_T03)){
while((this._F03.charCodeAt(this._G03)!=0x0a)&&(this._F03.charCodeAt(this._G03)!=0x0d)&&(this._G03<this._4R2)){this._G03++;}}}return true;}};_jN.prototype._J03=function(){{if(this._F03==null)return false;this._4R2=this._F03.length;this._G03=0;this._H03=0;var _sN=this._N03();if(_sN==null){this._F03=null;return false;}this._tN[_sN.__m_pIniFileName__]=_sN;while(this._G03<this._4R2){var _Lt=this._P03(_sN);if(!_Lt){if(this._G03<this._4R2){if(this._F03.charAt(this._G03)=='['){_sN=this._N03();if(_sN==null){
this._F03=null;return true;}this._tN[_sN.__m_pIniFileName__]=_sN;}}}}this._F03=null;return true;}};_jN.prototype._rN=function(_W03,_X03){{var _sN=this._tN[_W03];if(_sN!=null&&_sN!=undefined){var _9Q1=_sN[_X03];if(_9Q1!=undefined)return _9Q1;}return null;}};_jN.prototype._Y03=function(_W03,_X03,_mN){{var _qN=this._rN(_W03,_X03);if(_qN!=null){return this.parseInt(_qN,10);}else {return _mN;}}};_jN.prototype._oN=function(_W03,_X03,_mN){{var _qN=this._rN(_W03,_X03);if(_qN!=null){return parseFloat(_qN);}else {return parseFloat(_mN);
}}};_jN.prototype._nN=function(_W03,_X03,_mN){{var _qN=this._rN(_W03,_X03);if(_qN!=null){return _qN;}else {return _mN;}}};_jN.prototype._pN=function(_W03,_X03,_Z03){this._D03=true;var _sN=this._tN[_W03];if(_sN==null||_sN==undefined){_sN=[];_sN.__m_pIniFileName__=_W03;this._tN[_sN.__m_pIniFileName__]=_sN;}_sN[_X03]=_Z03;return true;};_jN.prototype._uN=function(_W03,_X03){var _sN=this._tN[_W03];if(_sN==null||_sN==undefined)return false;var _qN=_sN[_X03];if(_qN==null||_qN==undefined)return false;this._D03=true;
_sN[_X03]=null;return true;};_jN.prototype._vN=function(_W03){var _sN=this._tN[_W03];if(_sN==null||_sN==undefined)return false;this._D03=true;this._tN[_W03]=null;return true;};_jN.prototype._kN=function(){var _Bf="";var _vD=chr(0x0d)+chr(0x0a);for(var __03 in this._tN){if(!this._tN.hasOwnProperty(__03))continue;_Bf=_Bf+"["+__03+"]"+_vD;var _sN=this._tN[__03];for(var key in _sN){if(!_sN.hasOwnProperty(key))continue;if(key!="__m_pIniFileName__"){var _9Q1=_sN[key];if(_9Q1!=null){if(_9Q1.indexOf('"')<0){_Bf+=key+'="'+_9Q1+'"'+_vD;
}else if(_9Q1.indexOf("'")<0){_Bf+=key+"='"+_9Q1+"'"+_vD;}else {_Bf+=key+"="+_9Q1+_vD;}}}}}if(this._D03){_il(this._E03,_Bf);this._D03=false;}return _Bf;};function _671(_K03){if(_K03.substring(0,5)=="file:")return _K03;if(_K03.substring(0,5)=="data:")return _K03;if((_K03.substring(0,7)=="http://")||(_K03.substring(0,8)=="https://"))return _K03;if(_K03.substring(0,_W8.length)==_W8)return _CG(null,null,_K03);return _CG(null,null,_W8+_K03);}function _013(_K03){if(_K03.substring(0,5)=="file:")return false;if(_K03.substring(0,
4)=="ftp:")return false;if(_K03.substring(0,7)=="gopher:")return false;if(_K03.substring(0,7)=="mailto:")return false;if(_K03.substring(0,5)=="news:")return false;if(_K03.substring(0,5)=="nntp:")return false;if(_K03.substring(0,7)=="telnet:")return false;if(_K03.substring(0,5)=="wais:")return false;if(_K03.substring(0,5)=="news:")return false;if(_K03.substring(1,1)==":")return false;return true;}function _113(_br){try{var _213=new XMLHttpRequest();_213.open('HEAD',_br,false);_213.send();_tT2=_213.status;var _313=(_213.status!=404&&_213.status!=0);
return _313;}catch(e){return false;}}function _413(_Np2,_aq2){try{var _Pz=!window.XMLHttpRequest?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();_Pz.open(_aq2?'PUT':'GET',_Np2,false);_Pz.overrideMimeType('text\/plain; charset=x-user-defined');_Pz.send(_aq2?_aq2:'');_tT2=_Pz.status;return _Pz.responseText;}catch(e){return null;}}function _513(_Np2,_aq2){try{var _Pz=!window.XMLHttpRequest?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();_Pz.open(_aq2?'PUT':'GET',_Np2,false);_Pz.send(_aq2?_aq2:'');
_tT2=_Pz.status;return _Pz.responseText;}catch(e){return null;}}function _613(_Np2){try{var _Pz=!window.XMLHttpRequest?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();_Pz.open("DELETE",_Np2,false);_Pz.send('');_tT2=_Pz.status;return _Pz.status;}catch(e){return false;}}function _il(_el,_gM){if(_713){return false;}else if(_nF){try{window.localStorage[_oF(_el)]=_gM;return true;}catch(_ek){return false;}}}function _ml(_K03,_L03){return _813(_K03,_L03,_513);}function _rT2(_K03,_L03){return _813(_K03,_L03,
_413);}function _813(_K03,_L03,_913){var _Bf=null;if(_K03.substring(0,5)=="file:")return null;if(_L03){if((_K03.substring(0,7)=="http://")||(_K03.substring(0,8)=="https://"))return;if(_713){return null;}else if(_nF){try{_Bf=window.localStorage[_oF(_K03)];}catch(_ek){return null;}if((_Bf==undefined)||(_Bf==null))return null;}}else {if(!_013(_K03))return null;_K03=_671(_K03);_Bf=_913(_K03,false);if((_Bf==null)||(_Bf==undefined))return null;if(_tT2==404)return null;}return _Bf;}function _mF(_K03,_L03){var _Bf=null;
if(_K03.substring(0,5)=="file:")return null;if(_L03){if(_713){return false;}else if(_nF){try{var name=_oF(_K03);if(window.localStorage[name]&&(window.localStorage[name]!==undefined)){return true;}return false;}catch(_ek){return false;}}}else {if(!_013(_K03)){return false;}_K03=_671(_K03);return _113(_K03);}}var _a13=new _OE(0,0,0,0);var _DH=null;var _FH=-1;var _HH=-1;var _Ft2=0;function _PN(_101,_201,_gg,_b13,_c13,_d13){this.__type="[instance]";this._e13=_101;this._f13=_201;this._g13=_101;this._h13=_201;this._i13=_101;
this._j13=_201;this._k13=0;this._l13=0;this._m13=0;this._n13=0;this._o13=0;this._p13=0;this._q13=270;this.object_index=_b13;this.id=_gg;this.active=true;this.in_collision_tree=true;this.alarm=[];for(var i=0;i<=(_Du2-1);i++){this.alarm[i]=-1;}this._r13=true;this._s13=true;this._t13=false;this._u13=0;this._MN=new _OE(0,0,0,0);this._v13=0;this._w13=0;this.image_number=0;this.sprite_width=0;this.sprite_height=0;this.sprite_xoffset=0;this.sprite_yoffset=0;this._x13=1.0;this._y13=1.0;this._z13=0;this._A13=1.0;
this._B13=0xffffff;this._C13=1;this._D13=-1;this._E13=0;this._F13=0;this._G13=1;this.path_index=-1;this._H13=0;this._I13=0;this._J13=0;this._K13=1;this._L13=0;this._M13=0;this._5F=0;this._6F=0;this._N13=-1;this._O13=0;this._P13=1;this._0r=true;this._1r=false;this._Q13=-1;this._R13=false;this.marked=false;this._S13=null;this._T13=false;this._KN=true;this._ru2=false;this._1F=null;this._U13=null;this._911=null;this._zL=null;this._Kt2=false;this._V13=false;this._W13=false;this._X13=null;this._Y13=false;
this._Z13=true;if(!_d13){this._Ht2=_Ft2;this._XN(_b13,_c13,true);this._YN(this._1F._ZN);}else {this._Ht2=0;this.object_index=0;this.sprite_index=-1;this.__13=null;}this._jR=-1;this._TN=false;}_PN.prototype={get x(){return this._e13;},set x(_Q5){_Q5=yyGetReal(_Q5);if(this._e13===_Q5)return;this._e13=_Q5;this._KN=true;},get y(){return this._f13;},set y(_R5){_R5=yyGetReal(_R5);if(this._f13===_R5)return;this._f13=_R5;this._KN=true;},get xstart(){return this._i13;},set xstart(_7X){_7X=yyGetReal(_7X);if(this._i13===_7X)return;
this._i13=_7X;},get ystart(){return this._j13;},set ystart(_8X){_8X=yyGetReal(_8X);if(this._j13===_8X)return;this._j13=_8X;},get xprevious(){return this._g13;},set xprevious(_023){_023=yyGetReal(_023);if(this._g13===_023)return;this._g13=_023;},get yprevious(){return this._h13;},set yprevious(_123){_123=yyGetReal(_123);if(this._h13===_123)return;this._h13=_123;},get hspeed(){return this._k13;},set hspeed(__3){__3=yyGetReal(__3);if(this._k13==__3)return;this._k13=__3;this._223();},get vspeed(){return this._l13;
},set vspeed(__3){__3=yyGetReal(__3);if(this._l13==__3)return;this._l13=__3;this._223();},get direction(){return this._m13;},set direction(__3){__3=yyGetReal(__3);while(__3<0.0){__3+=360.0;}while(__3>360.0){__3-=360.0;}this._m13=_2G2(__3,360.0);this._323();},get speed(){return this._n13;},set speed(__3){__3=yyGetReal(__3);if(this._n13==__3)return;this._n13=__3;this._323();},get friction(){return this._o13;},set friction(__3){__3=yyGetReal(__3);if(this._o13==__3)return;this._o13=__3;},get gravity(){return this._p13;
},set gravity(__3){__3=yyGetReal(__3);if(this._p13==__3)return;this._p13=__3;},get gravity_direction(){return this._q13;},set gravity_direction(__3){__3=yyGetReal(__3);if(this._q13==__3)return;this._q13=__3;},get solid(){return this._r13;},set solid(__3){__3=yyGetBool(__3);if(this._r13==__3)return;this._r13=__3;},get persistent(){return this._t13;},set persistent(__3){__3=yyGetBool(__3);if(this._t13==__3)return;this._t13=__3;},get visible(){return this._s13;},set visible(__3){__3=yyGetBool(__3);if(this._s13==__3)return;
this._s13=__3;},get depth(){return this._u13;},set depth(_rl){_rl=yyGetReal(_rl);if(this._u13!=_rl){this._u13=_rl;_S3._423[_S3._423.length]=this;}},get path_position(){return this._H13;},set path_position(__3){__3=yyGetReal(__3);if(this._H13==__3)return;this._H13=__3;},get path_positionprevious(){return this._I13;},set path_positionprevious(__3){__3=yyGetReal(__3);if(this._I13==__3)return;this._I13=__3;},get path_speed(){return this._J13;},set path_speed(__3){__3=yyGetReal(__3);if(this._J13==__3)return;this._J13=__3;
},get path_scale(){return this._K13;},set path_scale(__3){__3=yyGetReal(__3);if(this._K13==__3)return;this._K13=__3;},get path_orientation(){return this._L13;},set path_orientation(__3){__3=yyGetReal(__3);if(this._L13==__3)return;this._L13=__3;},get path_endaction(){return this._M13;},set path_endaction(__3){__3=yyGetInt32(__3);if(this._M13==__3)return;this._M13=__3;},get timeline_index(){return this._N13;},set timeline_index(__3){__3=yyGetInt32(__3);if(this._N13==__3)return;this._N13=__3;},get timeline_position(){
return this._O13;},set timeline_position(__3){__3=yyGetReal(__3);if(this._O13==__3)return;this._O13=__3;},get timeline_speed(){return this._P13;},set timeline_speed(__3){__3=yyGetReal(__3);if(this._P13==__3)return;this._P13=__3;},get bbox_left(){if(this._KN)this._LN();return this._MN.left;},get bbox_right(){if(this._KN)this._LN();return this._MN.right;},get bbox_top(){if(this._KN)this._LN();return this._MN.top;},get bbox_bottom(){if(this._KN)this._LN();return this._MN.bottom;},get sprite_index(){return this._v13;
},set sprite_index(_gg){_gg=yyGetInt32(_gg);this._v13=_gg;this._KN=true;this.__13=null;},get image_index(){return this._w13;},set image_index(_LL){_LL=yyGetReal(_LL);var _DS=_16._26(this.sprite_index);if(_DS!=null){if(_DS.sequence!=null&&_DS.sequence._KS!=null&&_DS.sequence._KS[0]._oO==_LS){var _JT=_DS.sequence._KS[0];var keyframeStore=_JT._NS;var _KT=keyframeStore._LT;if(_KT>0){var _MT=_Z3(_LL,_KT);var _NT=_MT;var _OT=_MT-_NT;this._F13=this._E13=(keyframeStore._PT[Math.floor(_NT)]._QT+(_OT*_KT));this._w13=_LL;
}else {this._w13=_LL;}}else {this._w13=_LL;}}else {this._w13=_LL;}},get image_single(){if(this.image_speed==0){return this.image_index;}else {return -1;}},set image_single(_fV){_fV=yyGetInt32(_fV);if(_fV<0){this.image_speed=1;}else {this.image_speed=0;this.image_index=_fV;}},get image_number(){var _4u2=_16._26(this.sprite_index);if(!_4u2)return 0;var _tL=this._b9();if(_tL){return _tL._O3(_4u2);}else if((_4u2._VW2!==null)&&(_4u2._VW2!==undefined)){return _4u2._VW2._gp2;}return _4u2._05.length;},get sprite_width(){
var _4u2=_16._26(this.sprite_index);if(!_4u2)return 0;return _4u2.width*this.image_xscale;},get sprite_height(){var _4u2=_16._26(this.sprite_index);if(!_4u2)return 0;return _4u2.height*this.image_yscale;},get sprite_xoffset(){var _4u2=_16._26(this.sprite_index);if(!_4u2)return 0;return _4u2.xOrigin*this.image_xscale;},get sprite_yoffset(){var _4u2=_16._26(this.sprite_index);if(!_4u2)return 0;return _4u2.yOrigin*this.image_yscale;},get image_xscale(){return this._x13;},set image_xscale(_fm){_fm=yyGetReal(_fm);if(this._x13===_fm)return;
this._x13=_fm;this._KN=true;},get image_yscale(){return this._y13;},set image_yscale(_fm){_fm=yyGetReal(_fm);if(this._y13===_fm)return;this._y13=_fm;this._KN=true;},get image_angle(){return this._z13;},set image_angle(_c82){_c82=yyGetReal(_c82);if(this._z13===_c82)return;this._z13=_c82;this._KN=true;},get image_blend(){return _Nc(this._B13);},set image_blend(_0d){this._B13=yyGetInt32(_0d);},get image_alpha(){return this._A13;},set image_alpha(_A9){this._A13=yyGetReal(_A9);},get image_speed(){return this._C13;
},set image_speed(_lm){_lm=yyGetReal(_lm);if(this._C13===_lm)return;this._C13=_lm;},get mask_index(){return this._D13;},set mask_index(_gg){this._D13=yyGetInt32(_gg);this._KN=true;},get timeline_running(){if(this._0r){return 0;}else {return 1;}},set timeline_running(_523){this._0r=!yyGetBool(_523);},get timeline_loop(){if(this._1r){return 1;}else {return 0;}},set timeline_loop(_c4){this._1r=yyGetBool(_c4);},get phy_rotation(){return this._623;},set phy_rotation(_S22){if(this._911!=null){this._911._R22(yyGetReal(_S22));
this._z62(this._911._A22);}},get phy_position_x(){return this._723;},set phy_position_x(_Gk){if(this._911!=null&&_S3!=null){this._911._T22(yyGetReal(_Gk)*_S3._c01._J01);this._z62(this._911._A22);}},get phy_position_y(){return this._823;},set phy_position_y(_Gk){if(this._911!=null&&_S3!=null){this._911._U22(yyGetReal(_Gk)*_S3._c01._J01);this._z62(this._911._A22);}},get phy_angular_velocity(){return this._923;},set phy_angular_velocity(_V22){if(this._911!=null){this._911._Tx1(yyGetReal(_V22));this._z62(this._911._A22);
}},get phy_linear_velocity_x(){return this._a23;},set phy_linear_velocity_x(_X22){if(this._911!=null&&_S3!=null){this._911._W22(yyGetReal(_X22)*_S3._c01._J01);this._z62(this._911._A22);}},get phy_linear_velocity_y(){return this._b23;},set phy_linear_velocity_y(_X22){if(this._911!=null&&_S3!=null){this._911._Z22(yyGetReal(_X22)*_S3._c01._J01);this._z62(this._911._A22);}},get phy_speed(){if(this._911!=null&&_S3!=null){var _c23=_W3._X3();var _d23=_S3._c01._J01;var _59=(this._a23/_d23)/_c23;var _69=(this._b23/_d23)/_c23;
return Math.sqrt((_59*_59)+(_69*_69));}else return undefined;},get phy_speed_x(){return this._e23;},set phy_speed_x(_lm){if(this._911!=null&&_S3!=null){var _c23=_W3._X3();this._911._W22(yyGetReal(_lm)*_S3._c01._J01*_c23);this._z62(this._911._A22);}},get phy_speed_y(){return this._f23;},set phy_speed_y(_lm){if(this._911!=null&&_S3!=null){var _c23=_W3._X3();this._911._Z22(yyGetReal(_lm)*_S3._c01._J01*_c23);this._z62(this._911._A22);}},get phy_angular_damping(){return this._g23;},set phy_angular_damping(_C01){if(this._911!=null){
this._911._A22._E01(yyGetReal(_C01));this._z62(this._911._A22);}},get phy_linear_damping(){return this._h23;},set phy_linear_damping(_C01){if(this._911!=null){this._911._A22._D01(yyGetReal(_C01));this._z62(this._911._A22);}},get phy_bullet(){return this._i23;},set phy_bullet(__22){if(this._911!=null){this._911._ny1(yyGetBool(__22));this._z62(this._911._A22);}},get phy_fixed_rotation(){return this._j23;},set phy_fixed_rotation(_032){if(this._911!=null){this._911._vy1(yyGetBool(_032));this._z62(this._911._A22);
}},get phy_active(){return this._k23;},set phy_active(_132){if(this._911!=null){this._911._ty1(yyGetBool(_132));this._z62(this._911._A22);}},get layer(){return this._jR;},set layer(_fS){_fS=yyGetInt32(_fS);_jO._8S(_S3,this);this._jR=_fS;var _iO=_jO._lO(_S3,_fS);if(_iO!=null){_jO._6S(_S3,_iO,this);this._u13=_iO.depth;}},get in_sequence(){return this._l23();},get sequence_instance(){return this._m23();},get drawn_by_sequence(){return this._n23();},set drawn_by_sequence(_o23){this._p23(_o23);}};_PN.prototype._64=function(_LL){
this._w13=_LL;};_PN.prototype._q23=function(_oy1){this._KN=_oy1;};_PN.prototype._r23=function(){return this._KN;};_PN.prototype._s23=function(_oy1){this._V13=_oy1;};_PN.prototype._l23=function(){return this._V13;};_PN.prototype._t23=function(_oy1){this._W13=_oy1;};_PN.prototype._u23=function(){return this._W13;};_PN.prototype._v23=function(_w23){this._X13=_w23;};_PN.prototype._m23=function(){return this._X13;};_PN.prototype._x23=function(_oy1){this._Y13=_oy1;};_PN.prototype._y23=function(){return this._Y13;
};_PN.prototype._p23=function(_oy1){this._Z13=_oy1;};_PN.prototype._n23=function(){return this._Z13;};_PN.prototype._Ed=function(_z23,_ZN2){if((this.x==_z23)&&(this.y==_ZN2))return;this.x=_z23;this.y=_ZN2;this._KN=true;};_PN.prototype._SN=function(_tt,_A23){if(this._1F!=null){this._1F._8S(this);this._1F=null;}for(var _n5 in _tt){var _ih=_tt[_n5];this[_n5]=_ih;}this._MN=new _OE();this._MN._qj(_tt._MN);for(var i=0;i<=_Du2-1;i++){var _G4=_tt.alarm[i];this.alarm[i]=_G4;}if(_A23&&this._1F!=null){this._1F._4S(this);
}var _tL=this._b9();if(_tL){this.__13=_tL._v3();}this._jR=_tt.layer;};_PN.prototype._XN=function(_GN,_A23,_B23){this.object_index=_GN;if(this._1F!=null){this._1F._8S(this);this._1F=null;this._U13=null;}if(_GN==-1)_GN=0;this._U13=this._1F=_H3._26(_GN);if(this._1F!=null){if(_A23){this._1F._4S(this);}this._It2=this._1F._It2;this.mask_index=this._1F._0_;if(!_U3){if(_B23){this._u13=this._1F._ZZ;}else {this.depth=this._1F._ZZ;}}this.solid=this._1F._WZ;this.visible=this._1F._XZ;this.persistent=this._1F.__Z;
this._KN=true;}};_PN.prototype._YN=function(_74){var _4u2=_16._26(_74);if(_4u2){this._MN.left=_4u2._MN.left;this._MN.right=_4u2._MN.right;this._MN.top=_4u2._MN.top;this._MN.bottom=_4u2._MN.bottom;}this.sprite_index=_74;this.__13=null;if(this._1F!==null){this._b9();}};_PN.prototype.__N=function(_zo){if(_zo&&this._911){_zo._c01._dA1(this._911);}this._911=null;if(this._1F._1_.physicsObject){this._C23();this._KN=true;}};_PN.prototype._C23=function(){if(!this._1F._1_.physicsObject){return;}if(!sprite_exists(this.sprite_index)){
return;}var _En=_16._26(this.sprite_index);if(!_S3._c01){return;}var _o01=physics_fixture_create();var _D23=this._1F._1_,_E23=0.0,_BZ2=0.0;switch(_D23.physicsShape){case _F23:{var _G23=1.0;if(Math.abs(this.image_xscale-this.image_yscale)<0.0001){_G23=this.image_xscale;}else {debug("Image scale for physics object using circle collision should not vary across axes: "+this._1F._2F);}_E23=-_D23.physicsShapeVertices[0]*_G23;_BZ2=-_D23.physicsShapeVertices[1]*_G23;var _A21=_D23.physicsShapeVertices[2]*_G23;physics_fixture_set_circle_shape(_o01,
_A21);}break;case _H23:case _I23:{physics_fixture_set_polygon_shape(_o01);if((this.image_xscale*this.image_yscale)<0){for(var _I6=_D23.physicsShapeVertices.length-2;_I6>=0;_I6-=2){physics_fixture_add_point(_o01,_D23.physicsShapeVertices[_I6+0]*this.image_xscale,_D23.physicsShapeVertices[_I6+1]*this.image_yscale);}}else {for(var _I6=0;_I6<_D23.physicsShapeVertices.length;_I6+=2){physics_fixture_add_point(_o01,_D23.physicsShapeVertices[_I6+0]*this.image_xscale,_D23.physicsShapeVertices[_I6+1]*this.image_yscale);
}}}break;}physics_fixture_set_angular_damping(_o01,_D23.physicsAngularDamping);physics_fixture_set_linear_damping(_o01,_D23.physicsLinearDamping);physics_fixture_set_sensor(_o01,_D23.physicsSensor);physics_fixture_set_collision_group(_o01,_D23.physicsGroup);physics_fixture_set_density(_o01,_D23.physicsDensity);physics_fixture_set_restitution(_o01,_D23.physicsRestitution);if(_D23.physicsFriction!=undefined){physics_fixture_set_friction(_o01,_D23.physicsFriction);}if(_D23.physicsAwake!=undefined){
physics_fixture_set_awake(_o01,_D23.physicsAwake);}if(_D23.physicsKinematic!=undefined){physics_fixture_set_kinematic(_o01,_D23.physicsKinematic);}physics_fixture_bind(this,_o01,this.id,_E23,_BZ2);};_PN.prototype._223=function(){with(this){if(this.hspeed==0){if(this.vspeed>0){this._m13=270;}else if(this.vspeed<0){this._m13=90;}else {this._m13=0;}}else {var _8L=_J23(180*(Math.atan2(this.vspeed,this.hspeed))/__6);if(_8L<=0){this._m13=-_8L;}else {this._m13=360.0-_8L;}}if(Math.abs(this._m13-_Mk(this._m13))<0.0001){
this._m13=_Mk(this._m13);}this._m13=_2G2(this._m13,360.0);this._n13=Math.sqrt(_Kz(this.hspeed)+_Kz(this.vspeed));if(Math.abs(this.speed-_Mk(this.speed))<0.0001)this._n13=_Mk(this._n13);}};_PN.prototype._323=function(){this._k13=this.speed*_J23(Math.cos(this.direction*0.0174532925));this._l13=-this.speed*_J23(Math.sin(this.direction*0.0174532925));if(Math.abs(this._k13-_Mk(this._k13))<0.0001){this._k13=_Mk(this._k13);}if(Math.abs(this._l13-_Mk(this._l13))<0.0001){this._l13=_Mk(this._l13);}};function _J23(_K23){
return(~~(_K23*1000000))/1000000.0;}_PN.prototype._jm=function(_im,_2D){this.hspeed+=_2D*_J23(Math.cos(_im*0.0174532925));this.vspeed-=_2D*_J23(Math.sin(_im*0.0174532925));this._223();};_PN.prototype._L23=function(){if(this.friction!=0.0){var _M23;if(this.speed>0){_M23=this.speed-this.friction;}else {_M23=this.speed+this.friction;}if((this.speed>0)&&(_M23<0)){this.speed=0;}else if((this.speed<0)&&(_M23>0)){this.speed=0;}else if(this.speed!=0){this.speed=_M23;}}if(this.gravity!=0){this._jm(this.gravity_direction,
this.gravity);}};_PN.prototype._N23=function(){var _4u2=_16._26(this.sprite_index);var _tL=this._b9();if(_tL){return _tL._O3(_4u2);}return _16._O23(this.sprite_index);};_PN.prototype._b6=function(_D3,_74,_tt,_nH,_P23){if(_P23==undefined){_P23=_tt._1F;}var _CH=_DH;var _EH=_FH;var _GH=_HH;var result=false;var _Q23=false;if(_D3==_L62){var _R23=_H3._26(_74);while(_R23!=null&&!_Q23){var _IF=_P23;while(_IF!=null&&!_Q23){if(_IF.Event[_D3]){if(_IF._nH2[_R23._bO]){_DH=_IF;_FH=_D3;_HH=_R23._bO;result=_IF._b6(_D3,_R23._bO,
_tt,_nH);_Q23=true;break;}}_IF=_IF._fE;}_R23=_R23._fE;}}else {var _IF=_P23;var _S23=_D3|_74;while(_IF!=null){if(_IF.Event[_S23]){_DH=_IF;_FH=_D3;_HH=_74;result=_IF._b6(_D3,_74,_tt,_nH);break;}_IF=_IF._fE;}}_DH=_CH;_FH=_EH;_HH=_GH;return result;};_PN.prototype._MH=function(_D3,_74,_nH){if(_DH!=null){if(_DH._fE!=null){this._b6(_D3,_74,this,_nH,_DH._fE);}}};_PN.prototype._T23=function(__3){__3=yyGetReal(__3);if(this.hspeed==__3)return;this.hspeed=__3;this._223();};_PN.prototype._U23=function(__3){__3=yyGetReal(__3);
if(this.vspeed==__3)return;this.vspeed=__3;this._223();};_PN.prototype._V23=function(__3){__3=yyGetReal(__3);this.direction=_2G2(__3,360.0);while(this.direction<0.0){this.direction+=360.0;}this._323();};_PN.prototype._W23=function(__3){__3=yyGetReal(__3);if(this.speed==__3)return;this.speed=__3;this._323();};_PN.prototype._LN=function(){var _En,_Y6;var _Nj=(this.mask_index>=0)?this.mask_index:this.sprite_index;if(_Nj<0||_Nj>_16.Sprites.length){if(!this._MN){this._MN=new _OE(0,0,0,0);}this._MN.left=this.x;
this._MN.top=this.y;this._MN.right=this.x;this._MN.bottom=this.y;this._T13=false;}else {var _MN=this._MN;_En=_16.Sprites[_Nj];if(this.image_angle==0){if((_En._9c1!=null)&&(_En._9c1._X23())){_MN=_En._Y23(this.image_xscale,this.image_yscale);_MN.left+=this.x;_MN.right+=this.x;_MN.top+=this.y;_MN.bottom+=this.y;}else {var _Z23=_En._MN;var width=(_Z23.right+1)-_Z23.left;var height=(_Z23.bottom+1)-_Z23.top;if(_3X){_MN.left=_Mk(this.x+this.image_xscale*(_Z23.left-_En.xOrigin));_MN.right=_Mk(_MN.left+(this.image_xscale*width));
}else {_MN.left=(this.x+this.image_xscale*(_Z23.left-_En.xOrigin));_MN.right=(_MN.left+(this.image_xscale*width));}if(_MN.left>_MN.right){_Y6=_MN.left;_MN.left=_MN.right;_MN.right=_Y6;}if(_3X){_MN.top=_Mk(this.y+this.image_yscale*(_Z23.top-_En.yOrigin));_MN.bottom=_Mk(_MN.top+(this.image_yscale*height));}else {_MN.top=(this.y+this.image_yscale*(_Z23.top-_En.yOrigin));_MN.bottom=(_MN.top+(this.image_yscale*height));}if(_MN.top>_MN.bottom){_Y6=_MN.top;_MN.top=_MN.bottom;_MN.bottom=_Y6;}if(_3X){_MN.right-=1;
_MN.bottom-=1;}}this._T13=_En.__23();this._033=_En._033;}else {var _DX,_EX;var _FX,_GX;if((_En._9c1!=null)&&(_En._9c1._X23())){_MN=_En._Y23(this.image_xscale,this.image_yscale);_DX=_MN.left;_EX=_MN.right;_FX=_MN.top;_GX=_MN.bottom;if(_3X){_GX+=1;_EX+=1;}}else {var _Z23=_En._MN;_DX=this.image_xscale*(_Z23.left-_En.xOrigin);_EX=this.image_xscale*(_Z23.right-_En.xOrigin+1);_FX=this.image_yscale*(_Z23.top-_En.yOrigin);_GX=this.image_yscale*(_Z23.bottom-_En.yOrigin+1);}var _m7,_l7;_m7=Math.cos(this.image_angle*__6/180.0);
_l7=Math.sin(this.image_angle*__6/180.0);var _133=_m7*_EX;var _233=_m7*_DX;var _333=_l7*_GX;var _433=_l7*_FX;var _Y6;if(_133<_233){_Y6=_233;_233=_133;_133=_Y6;}if(_333<_433){_Y6=_433;_433=_333;_333=_Y6;}if(_3X){this._MN.left=Math.floor((this.x+_233+_433)+0.5);_MN.right=Math.floor((this.x+_133+_333)-0.5);}else {_MN.left=(this.x+_233+_433);_MN.right=(this.x+_133+_333);}var _533=_m7*_GX;var _633=_m7*_FX;var _733=_l7*_EX;var _833=_l7*_DX;if(_533<_633){_Y6=_633;_633=_533;_533=_Y6;}if(_733<_833){_Y6=_833;_833=_733;
_733=_Y6;}if(_3X){_MN.top=Math.floor((this.y+_633-_733)+0.5);_MN.bottom=Math.floor((this.y+_533-_833)-0.5);}else {_MN.top=((this.y+_633-_733));_MN.bottom=((this.y+_533-_833));}this._T13=_En.__23();this._033=_En._033;}this._MN=_MN;}this._KN=false;};_PN.prototype._zt=function(_Q5,_R5,_jj){if(this.marked)return false;var _tL=this._b9();if(_tL){var _933=_n6;_n6=this;if(_tL._k6(this._MN,this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle)){this._T13=true;this._KN=false;}_n6=_933;
}if(this._KN)this._LN();var _2X=-0.00001;if(_3X){_2X=1.0;}var _MN=this._MN;if(_Q5>=_MN.right+_2X)return false;if(_Q5<_MN.left)return false;if(_R5>=_MN.bottom+_2X)return false;if(_R5<_MN.top)return false;if(this._033){if(!_a33(this,_Q5,_R5)){return false;}}var _3F;if(this.mask_index<0){_3F=_16._26(this.sprite_index);}else {_3F=_16._26(this.mask_index);}if((_3F===null)||(_3F._T6===0))return false;if((!_jj)||(!this._T13))return true;var _kn=false;if(_tL){_kn=_tL._a7(this.image_index,this.x,this.y,this.image_xscale,
this.image_yscale,this.image_angle,_Q5,_R5);}else {_kn=_3F._b33(Math.floor(this.image_index),_MN,_Mk(this.x),_Mk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_Mk(_Q5),_Mk(_R5));}return _kn;};_PN.prototype._Mt=function(_b7,_c7,_D6,_E6,_jj){if(this.marked)return false;var _tL=this._b9();if(_tL){var _933=_n6;_n6=this;if(_tL._k6(this._MN,this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle)){this._T13=true;this._KN=false;}_n6=_933;}if(this._KN)this._LN();var _MN=this._MN;
var _2X=0;if(_3X){_2X=1.0;}var _eP1=_X6(_b7,_D6);if(_eP1>=_MN.right+_2X){return _kn;}var _c33=_W6(_b7,_D6);if(_c33<_MN.left){return _kn;}var _d33=_X6(_c7,_E6);if(_d33>=_MN.bottom+_2X){return _kn;}var _dK=_W6(_c7,_E6);if(_dK<_MN.top){return _kn;}var _3F;if(this.mask_index<0){_3F=_16._26(this.sprite_index);}else {_3F=_16._26(this.mask_index);}if((_3F===null)||(_3F._T6==0))return false;if(this._033){if(!_e33(this,_b7,_c7,_D6,_E6))return false;}if((!_jj)||(!this._T13)){if(!_3X){var _V6=(_W6(_eP1,_MN.left));var _Y6=(_W6(_d33,
_MN.top));var _D4=(_X6(_c33,_MN.right));var _F4=(_X6(_dK,_MN.bottom));if(Math.floor(_V6+0.5)==Math.floor(_D4+0.5))return false;if(Math.floor(_Y6+0.5)==Math.floor(_F4+0.5))return false;}return true;}var _kn=false;if(_tL){_kn=_tL._e7(this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_b7,_c7,_D6,_E6);}else {_a13.left=_Mk(_X6(_b7,_D6));_a13.top=_Mk(_X6(_c7,_E6));_a13.right=_Mk(_W6(_b7,_D6));_a13.bottom=_Mk(_W6(_c7,_E6));_kn=_3F._f33(Math.floor(this.image_index),_MN,_Mk(this.x),
_Mk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_a13);}return _kn;};function _g33(_b7,_c7,_D6,_E6,_Dt,_Et){var _h7=(_b7+_D6)*0.5;var _i7=(_c7+_E6)*0.5;var _j7=(_D6-_b7)*0.5;var _k7=(_E6-_c7)*0.5;var _G4=(_Dt-_h7)/_j7;var _F4=(_Et-_i7)/_k7;return((_G4*_G4)+(_F4*_F4)<=1)?true:false;}_PN.prototype._St=function(_b7,_c7,_D6,_E6,_jj){if(this.marked)return false;var _tL=this._b9();if(_tL){var _933=_n6;_n6=this;if(_tL._k6(this._MN,this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,
this.image_angle)){this._T13=true;this._KN=false;}_n6=_933;}if(this._KN)this._LN();_b7=_Mk(_b7);_D6=_Mk(_D6);_c7=_Mk(_c7);_E6=_Mk(_E6);var _h33,_i33,_j33,_k33;if(_b7<_D6){_j33=_b7;_h33=_D6;}else {_j33=_D6;_h33=_b7;}if(_c7<_E6){_k33=_c7;_i33=_E6;}else {_k33=_E6;_i33=_c7;}var _MN=this._MN;if(_j33>=_MN.right)return false;if(_h33<_MN.left)return false;if(_k33>=_MN.bottom)return false;if(_i33<_MN.top)return false;if((_b7==_D6)||(_c7==_E6)){return this._Mt(_b7,_c7,_D6,_E6,_jj);}var _Nt=(_b7+_D6)*0.5;var _Ot=(_c7+_E6)*0.5;
if(!(_MN.left<=_Nt&&_MN.right>=_Nt)&&!(_MN.top<=_Ot&&_MN.bottom>=_Ot)){var _0u=(_MN.right<=_Nt)?_MN.right:_MN.left;var _1u=(_MN.bottom<=_Ot)?_MN.bottom:_MN.top;if(!_g33(_b7,_c7,_D6,_E6,_0u,_1u))return false;}var _3F;if(this.mask_index<0){_3F=_16._26(this.sprite_index);}else {_3F=_16._26(this.mask_index);}if((_3F===null)||(_3F._T6==0))return false;if(this._033){if(!_l33(this,_b7,_c7,_D6,_E6))return false;}if((!_jj)||(!this._T13))return true;_a13.left=_j33;_a13.top=_k33;_a13.right=_h33;_a13.bottom=_i33;if(_tL){
return _tL._f7(this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_a13);}else {return _3F._m33(Math.floor(this.image_index),_MN,_Mk(this.x),_Mk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_a13);}};_PN.prototype._Tt=function(_b7,_c7,_D6,_E6,_jj){if(this.marked)return false;var _tL=this._b9();if(_tL){var _933=_n6;_n6=this;if(_tL._k6(this._MN,this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle)){this._T13=true;this._KN=false;
}_n6=_933;}if(this._KN)this._LN();var _n33=this._MN;if(_X6(_b7,_D6)>=_n33.right+1){return false;}if(_W6(_b7,_D6)<_n33.left){return false;}if(_X6(_c7,_E6)>=_n33.bottom+1){return false;}if(_W6(_c7,_E6)<_n33.top){return false;}if(_D6<_b7){var _re=_D6;_D6=_b7;_b7=_re;_re=_E6;_E6=_c7;_c7=_re;}if(_b7<_n33.left){_c7=_c7+(_n33.left-_b7)*(_E6-_c7)/(_D6-_b7);_b7=_n33.left;}if(_D6>(_n33.right+1)){_E6=_E6+(_n33.right+1-_D6)*(_E6-_c7)/(_D6-_b7);_D6=_n33.right+1;}if((_c7<_n33.top)&&(_E6<_n33.top)){return false;}if((_c7>=_n33.bottom+1)&&(_E6>=_n33.bottom+1)){
return false;}var _3F;if(this.mask_index<0){_3F=_16._26(this.sprite_index);}else {_3F=_16._26(this.mask_index);}if((_3F==null)||(_3F==undefined)||(_3F._15()==0))return false;if(this._033){if(!_o33(this,_b7,_c7,_D6,_E6)){return false;}}if(!_jj||!this._T13){return true;}if(_tL){return _tL._d7(this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_b7,_c7,_D6,_E6);}else {return _3F._p33(this.image_index|0,_n33,_Mk(this.x),_Mk(this.y),this.image_xscale,this.image_yscale,this.image_angle,
_Mk(_b7),_Mk(_c7),_Mk(_D6),_Mk(_E6));}};_PN.prototype._q33=function(_Tm,_r33){var _s33=this._b9();var _t33=_Tm._b9();var _u33=_16._26(this.sprite_index);var _933=_n6;_n6=this;if(_s33._k6(this._MN,this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle)){this._KN=false;}_n6=_Tm;if(_t33){if(_t33._k6(_Tm._MN,_Tm.image_index,_Tm.x,_Tm.y,_Tm.image_xscale,_Tm.image_yscale,_Tm.image_angle)){_Tm._KN=false;}}_n6=_933;if(this._KN)this._LN();if(_Tm._KN)_Tm._LN();if(_Tm._MN.left>=this._MN.right+1)return false;
if(_Tm._MN.right+1<=this._MN.left)return false;if(_Tm._MN.top>=this._MN.bottom+1)return false;if(_Tm._MN.bottom+1<=this._MN.top)return false;var _u33=_16._26(this.sprite_index);var _v33=(_Tm.mask_index<0)?_16._26(_Tm.sprite_index):_16._26(_Tm.mask_index);if(_v33===null)return false;if(!_r33||(!this._T13&&!_Tm._T13))return true;if(_t33){return _s33._A6(this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_t33,_Tm.image_index,_Tm.x,_Tm.y,_Tm.image_xscale,_Tm.image_yscale,_Tm.image_angle);
}else {return _s33._R6(this.image_index,this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_v33,_Tm._MN,_Tm.image_index,_Tm.x,_Tm.y,_Tm.image_xscale,_Tm.image_yscale,_Tm.image_angle);}};_PN.prototype._w33=function(){if(_U3){var _hs=_16._26(this.sprite_index);if(_hs!=null){if(_hs.sequence===null){if(_hs.playbackspeedtype==_V3){this._64(this.image_index+this.image_speed*_hs.playbackspeed);}else {var fps=_W3._X3();this._64(this.image_index+this.image_speed*_hs.playbackspeed/fps);}}return;
}}this.image_index+=this.image_speed;};function _x33(points){var _y33=[];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;_y33[i]={"x":-y,"y":x};}return _y33;}function _z33(_qu,_rn1){var _A33=_x33(_qu);var _B33=_x33(_rn1);for(var i=0;i<2;++i){var _C33=_D33(_qu,_A33[i]);var _E33=_D33(_rn1,_A33[i]);var _F33=((_C33.max<=_E33.min)||(_E33.max<=_C33.min));if(_F33)return false;}for(var i=0;i<2;++i){var _C33=_D33(_qu,_B33[i]);var _E33=_D33(_rn1,
_B33[i]);var _F33=((_C33.max<=_E33.min)||(_E33.max<=_C33.min));if(_F33)return false;}return true;}function _D33(points,_ru){var _RW2=points[0].x*_ru.x+points[0].y*_ru.y;var result={"min":_RW2,"max":_RW2};for(var i=1;i<4;++i){_RW2=points[i].x*_ru.x+_ru.y*points[i].y;if(_RW2<result.min)result.min=_RW2;else if(_RW2>result.max)result.max=_RW2;}return result;}function _G33(_Ho1){var _Nj=(_Ho1.mask_index>=0)?_Ho1.mask_index:_Ho1.sprite_index;var _En=_16.Sprites[_Nj];var _DX,_EX;var _FX,_GX;if((_En._9c1!=null)&&(_En._9c1._X23())){
var _MN=_En._Y23(_Ho1.image_xscale,_Ho1.image_yscale);_DX=_MN.left;_EX=_MN.right+1;_FX=_MN.top;_GX=_MN.bottom+1;}else {var _Z23=_En._MN;_DX=_Ho1.image_xscale*(_Z23.left-_En.xOrigin);_EX=_Ho1.image_xscale*(_Z23.right-_En.xOrigin+1);_FX=_Ho1.image_yscale*(_Z23.top-_En.yOrigin);_GX=_Ho1.image_yscale*(_Z23.bottom-_En.yOrigin+1);}var _m7,_l7;_m7=Math.cos(-_Ho1.image_angle*__6/180.0);_l7=Math.sin(-_Ho1.image_angle*__6/180.0);var _133=_m7*_EX;var _233=_m7*_DX;var _333=_l7*_GX;var _433=_l7*_FX;var _533=_m7*_GX;var _633=_m7*_FX;
var _733=_l7*_EX;var _833=_l7*_DX;var _y33=[];var _Nj=_Ho1.x-0.5;var _ms2=_Ho1.y-0.5;_y33[0]={"x":(_Nj+_233-_433),"y":(_ms2+_633+_833)};_y33[1]={"x":(_Nj+_133-_433),"y":(_ms2+_633+_733)};_y33[2]={"x":(_Nj+_133-_333),"y":(_ms2+_533+_733)};_y33[3]={"x":(_Nj+_233-_333),"y":(_ms2+_533+_833)};return _y33;}function _H33(_Ho1,_Io1){var _qu=_G33(_Ho1);var _rn1=_G33(_Io1);return _z33(_qu,_rn1);}function _I33(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;
_y33={"x":-y,"y":x};return _y33;}function _J33(_qu,_rn1){var _A33=_x33(_qu);for(var i=0;i<2;++i){var _C33=_D33(_qu,_A33[i]);var _E33=_rn1.x*_A33[i].x+_rn1.y*_A33[i].y;var _F33=((_C33.max<=_E33)||(_E33<=_C33.min));if(_F33)return false;}return true;}function _K33(_qu,_L33,_Cz,_Dz){var _HX=Math.abs(_Dz/_Cz);for(var i=0;i<4;++i)_qu[i].x*=_HX;_L33.x*=_HX;var _D4=Math.abs(_Dz);var _A33=_x33(_qu);for(var i=0;i<2;++i){var _C33=_D33(_qu,_A33[i]);var _M33=_L33.x*_A33[i].x+_L33.y*_A33[i].y;var _E33={"min":_M33-_D4,"max":_M33+_D4}
;var _F33=((_C33.max<=_E33.min)||(_E33.max<=_C33.min));if(_F33)return false;}return true;}function _N33(_qu,_rn1){var _A33=_x33(_qu);var _O33=_I33(_rn1);for(var i=0;i<2;++i){var _C33=_D33(_qu,_A33[i]);var _E33=_P33(_rn1,_A33[i]);var _F33=((_C33.max<=_E33.min)||(_E33.max<=_C33.min));if(_F33)return false;}{var _C33=_D33(_qu,_O33);var _E33=_P33(_rn1,_O33);var _F33=((_C33.max<=_E33.min)||(_E33.max<=_C33.min));if(_F33)return false;}return true;}function _P33(points,_ru){var _RW2=points[0].x*_ru.x+points[0].y*_ru.y;var result={
"min":_RW2,"max":_RW2};for(var i=1;i<2;++i){_RW2=points[i].x*_ru.x+_ru.y*points[i].y;if(_RW2<result.min)result.min=_RW2;else if(_RW2>result.max)result.max=_RW2;}return result;}function _Q33(_b7,_c7,_D6,_E6){_y33=[];_y33[0]={"x":_b7,"y":_c7};_y33[1]={"x":_D6,"y":_E6};return _y33;}function _o33(_Ho1,_b7,_c7,_D6,_E6){var _qu=_G33(_Ho1);var _rn1=_Q33(_b7,_c7,_D6,_E6);return _N33(_qu,_rn1);}function _a33(_Ho1,_b7,_c7){var _qu=_G33(_Ho1);var _rn1={"x":_b7,"y":_c7};return _J33(_qu,_rn1);}function _l33(_Ho1,_b7,_c7,_D6,
_E6){var _qu=_G33(_Ho1);var _L33={"x":(_b7+_D6)*0.5,"y":(_c7+_E6)*0.5};var _Cz=Math.abs(_b7-_D6)*0.5;var _Dz=Math.abs(_c7-_E6)*0.5;return _K33(_qu,_L33,_Cz,_Dz);}function _e33(_Ho1,_b7,_c7,_D6,_E6){var _qu=_G33(_Ho1);var _rn1=[];_rn1[0]={"x":_b7,"y":_c7};_rn1[1]={"x":_D6,"y":_c7};_rn1[2]={"x":_b7,"y":_E6};_rn1[3]={"x":_D6,"y":_E6};return _z33(_qu,_rn1);}_PN.prototype._BN=function(_tt,_jj){if(this!=_tt&&!this.marked&&!_tt.marked){if((this._b9())&&(this.mask_index<0)){return this._q33(_tt,_jj);}if((_tt._b9())&&(_tt.mask_index<0)){
return _tt._q33(this,_jj);}if(this._KN)this._LN();if(_tt._KN)_tt._LN();var _2X=0.0;if(_3X){_2X=1.0;}var _R33=_tt._MN;var _S33=this._MN;if(_R33.left>=(_S33.right+_2X))return false;if((_R33.right+_2X)<=_S33.left)return false;if(_R33.top>=(_S33.bottom+_2X))return false;if((_R33.bottom+_2X)<=_S33.top)return false;if(this._033||_tt._033){if(!_H33(this,_tt)){return false;}}var _T33=null;var _U33=null;if(this.mask_index<0){_T33=_16._26(this.sprite_index);}else {_T33=_16._26(this.mask_index);}if((_T33==null)||(_T33._T6==0))return false;
if(_tt.mask_index<0){_U33=_16._26(_tt.sprite_index);}else {_U33=_16._26(_tt.mask_index);}if((_U33==null)||(_U33._T6==0))return false;if(!_jj||(!this._T13&&!_tt._T13)){if(!_3X){var _V6=(_W6(_R33.left,_S33.left));var _Y6=(_W6(_R33.top,_S33.top));var _D4=(_X6(_R33.right,_S33.right));var _F4=(_X6(_R33.bottom,_S33.bottom));if(Math.floor(_V6+0.5)==Math.floor(_D4+0.5))return false;if(Math.floor(_Y6+0.5)==Math.floor(_F4+0.5))return false;}return true;}if(_3X){return _T33._V33(this.image_index|0,this._MN,_Mk(this.x),
_Mk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_U33,_tt.image_index|0,_tt._MN,_Mk(_tt.x),_Mk(_tt.y),_tt.image_xscale,_tt.image_yscale,_tt.image_angle);}else {return _T33._W33(this.image_index|0,this._MN,_Mk(this.x),_Mk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_U33,_tt.image_index|0,_tt._MN,_Mk(_tt.x),_Mk(_tt.y),_tt.image_xscale,_tt.image_yscale,_tt.image_angle);}}return false;};_PN.prototype._jq=function(_S4,_lm,_fm,_X33,_P_,_Y33){this.path_index=-1;if(_S4<0)return;
var _vW=_wW.Paths[_S4];if(!_vW)return;if(_vW.length<=0)return;if(_fm<0)return;this.path_index=_S4;this.path_speed=_lm;if(this.path_speed>=0){this.path_position=0;}else {this.path_position=1;}this.path_positionprevious=this.path_position;this.path_scale=_fm;this.path_orientation=_X33;this.path_endaction=_Y33;if(_P_){if(this.path_speed>=0){this._Ed(_vW._F_(0),_vW._G_(0));}else {this._Ed(_vW._F_(1),_vW._G_(1));}}this._5F=this.x;this._6F=this.y;};_PN.prototype._v62=function(){var _T_,_27,_47;if(this.path_index<0)return false;
var _vW=_wW.Paths[this.path_index];if(!_vW)return;if(_vW.length<=0)return;var _Z33=false;var __33=this.path_orientation*Math.PI/180.0;var _Bl=_vW._W_(this.path_position);_27=_Bl.x;_47=_Bl.y;_T_=_Bl.speed;_Bl=null;_T_=_T_/(100*this.path_scale);this.path_position=this.path_position+this.path_speed*_T_/_vW.length;var _043=_vW._W_(0);if((this.path_position>=1)||(this.path_position<=0)){_Z33=(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 _143=_vW._W_(1);_27=_143.x-_043.x;_47=_143.y-_043.y;var _243=this.path_scale*(_27*Math.cos(__33)+_47*Math.sin(__33));var _343=this.path_scale*(_47*Math.cos(__33)-_27*Math.sin(__33));if(this.path_position<0){this._5F=this._5F-_243;this._6F=this._6F-_343;this.path_position++;}else {this._5F=this._5F+_243;this._6F=this._6F+_343;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;}}}_Bl=_vW._W_(this.path_position);_27=_Bl.x-_043.x;_47=_Bl.y-_043.y;var _dW=this._5F+this.path_scale*(_27*Math.cos(__33)+_47*Math.sin(__33));var _eW=this._6F+this.path_scale*(_47*Math.cos(__33)-_27*Math.sin(__33));this.hspeed=_dW-this.x;this.vspeed=_eW-this.y;this.speed=0;this._Ed(_dW,_eW);return _Z33;};_PN.prototype.get_timer=function(_74){
var _kn=-1;if((_74>=0)&&(_74<_Du2)){_kn=this.alarm[_74];}return _kn;};_PN.prototype._gn=function(_74,__3){if((_74>=0)&&(_74<_Du2)){this.alarm[_74]=__3;}};_PN.prototype._MX=function(){if(this._KN){this._LN();}return this._MN;};_PN.prototype.wrap=function(_NX,_zK){var w,h;if(!sprite_exists(this.sprite_index)){w=h=0;}else {var _3F=_16._26(this.sprite_index);w=_3F.width*this.image_xscale;h=_3F.height*this.image_yscale;}if(_NX){if((this.hspeed<0)&&(this.x<0)){this._Ed(this.x+_S3._JX()+w,this.y);}if((this.hspeed>0)&&(this.x>=_S3._JX())){
this._Ed(this.x-_S3._JX()-w,this.y);}}if(_zK){if((this.vspeed<0)&&(this.y<0)){this._Ed(this.x,this.y+_S3._KX()+h);}if((this.vspeed>0)&&(this.y>=_S3._KX())){this._Ed(this.x,this.y-_S3._KX()-h);}}};_PN.prototype._S62=function(_U5,_443){var _543={};if((_443.x!=0.0)||(_443.y!=0.0)){var _Uk1=_U5;var _643=Math.cos(_Uk1);var _743=Math.sin(_Uk1);_543.x=((_443.x*_643)-(_443.y*_743));_543.y=((_443.y*_643)+(_443.x*_743));}else {_543.x=_443.x;_543.y=_443.y;}return _543;};_PN.prototype._z62=function(_843){var _c23=_S3._T3();
if(_U3)_c23=_W3._X3();var _y62=1.0/_S3._c01._J01;var _R62=this._S62(_843._mm1(),this._911._C22);this.x=(_843._W_().x*_y62)+_R62.x;this.y=(_843._W_().y*_y62)+_R62.y;this.image_angle=(-_843._mm1()*180.0)/__6;this._KN=true;this._623=(_843._mm1()*180.0)/Math.PI;this._723=this.x;this._823=this.y;this._923=(_843._Ux1()*180.0)/Math.PI;this._a23=_843._Sx1().x*_y62;this._b23=_843._Sx1().y*_y62;this._e23=this.phy_linear_velocity_x/_c23;this._f23=this.phy_linear_velocity_y/_c23;this._i23=_843._py1();this.phy_mass=_843._0y1();
this.phy_inertia=_843._1y1();this.phy_com_x=_843._Px1().x*_y62;this.phy_com_y=_843._Px1().y*_y62;this.phy_dynamic=(_843._oO===_I12._I42._fx1);this.phy_kinematic=(_843._oO===_I12._I42._nx1);this.phy_sleeping=!_843._sy1();this._j23=_843._wy1();this._k23=_843._uy1();this._943=Math.sqrt((this.phy_speed_x*this.phy_speed_x)+(this.phy_speed_y*this.phy_speed_y));this._g23=_843._ey1();this._h23=_843._dy1();if(this.phy_position_xprevious===undefined){this.phy_position_xprevious=_843._W_().x*_y62;}if(this.phy_position_yprevious===undefined){
this.phy_position_yprevious=_843._W_().y*_y62;}};_PN.prototype._a43=function(_Gk){this._911._T22(yyGetReal(_Gk)*_S3._c01._J01);this._z62(this._911._A22);};_PN.prototype._b43=function(_Gk){this._911._U22(yyGetReal(_Gk)*_S3._c01._J01);this._z62(this._911._A22);};_PN.prototype._c43=function(_X22){this._911._W22(yyGetReal(_X22)*_S3._c01._J01);this._z62(this._911._A22);};_PN.prototype._d43=function(_X22){this._911._Z22(yyGetReal(_X22)*_S3._c01._J01);this._z62(this._911._A22);};_PN.prototype._e43=function(_lm){
var _c23=_S3._T3();if(_U3)_c23=_W3._X3();this._911._W22(yyGetReal(_lm)*_S3._c01._J01*_c23);this._z62(this._911._A22);};_PN.prototype._f43=function(_lm){var _c23=_S3._T3();if(_U3)_c23=_W3._X3();this._911._Z22(yyGetReal(_lm)*_S3._c01._J01*_c23);this._z62(this._911._A22);};_PN.prototype._g43=function(_C01){this._911._A22._E01(yyGetReal(_C01));this._z62(this._911._A22);};_PN.prototype._h43=function(_C01){this._911._A22._D01(yyGetReal(_C01));this._z62(this._911._A22);};_PN.prototype._i43=function(__22){
this._911._ny1(yyGetBool(__22));this._z62(this._911._A22);};_PN.prototype._j43=function(_032){this._911._vy1(yyGetBool(_032));this._z62(this._911._A22);};_PN.prototype._k43=function(_132){this._911._ty1(yyGetBool(_132));this._z62(this._911._A22);};_PN.prototype._b9=function(){if(sprite_exists(this.sprite_index)){var _En=_16._26(this.sprite_index);if(_En._zL){if(!this.__13){this.__13=new _g3(_En._zL);}}}return this.__13;};_PN.prototype._l43=function(){return this._jR;};_PN.prototype._m43=function(_fS){
this._jR=_fS;};_PN.prototype._5S=function(){return this._TN;};_PN.prototype._VQ=function(_n43){this._TN=_n43;};function _xG2(){this._o43=new _sk();this._o43._tk=true;this._WE=[];}_xG2.prototype._Tf=function(){this._WE=[];this._o43._Tf();};_xG2.prototype._BX=function(){return this._o43._Kk;};_xG2.prototype._Df=function(_Gt){this._WE[_Gt.id]=_Gt;this._o43._Df(_Gt);};_xG2.prototype._8G2=function(_gg){return this._WE[_gg];};_xG2.prototype._26=function(_gg){var _Gt=this._WE[_gg];if(_Gt!=undefined&&_Gt!=null)return _Gt;
var _IF=_H3._26(_gg);if(_IF!=undefined&&_IF!=null){var _p43=false;for(var i=0;i<_IF._q43._Kk.length;i++){_Gt=_IF._q43._Kk[i];if(!_Gt.marked){_p43=true;break;}}if(!_p43){_55("Unable to find any instance for object index \'"+_gg+"\' name \'"+_IF._2F+"\'")}else {if(_Gt!=undefined&&_Gt!=null)return _Gt;}}return null;};_xG2.prototype._r43=function(_gg){if(_gg>=0){var _Gt=this._WE[_gg];if(_Gt!=undefined&&_Gt!=null)return _Gt;}return null;};_xG2.prototype._s43=function(_tt){this._o43._SQ(_tt);var id=_tt.id;this._WE[id]=null;
};_xG2.prototype._t43=function(){var _Kk=_S3._yN._Kk;var room=_jO._eR();for(var index=0;index<_Kk.length;index++){var _Gt=_Kk[index];_Gt.xprevious=_Gt.x;_Gt.yprevious=_Gt.y;_Gt.path_positionprevious=_Gt.path_position;_Gt._w33();}};_xG2.prototype._u43=function(){var _Kk=_S3._yN._Kk;for(var index=0;index<_Kk.length;index++){var _Gt=_Kk[index];_Gt._L23();if(_Gt._v62()){_Gt._b6(_w62,0,_Gt,_Gt);}if(_Gt.hspeed!==0||_Gt.vspeed!==0){_Gt.x+=_Gt.hspeed;_Gt.y+=_Gt.vspeed;_Gt._KN=true;}}};function _v43(_Gt,_DS,_w43,
_x43){var fps=_W3._X3();var _y43=_DS.sequence._7c1;if(_DS.sequence._8c1==_eP)_y43/=fps;_Gt._E13=_Gt._F13;_Gt._F13=_w43;var _FS={_GS:_Gt._F13,_HS:_Gt._G13,_IS:false};var _z43=_JS(_DS.sequence,_FS);_Gt._F13=_FS._GS;_Gt._G13=_FS._HS;if((_DS.sequence._KS!=null)&&(_DS.sequence._KS[0]._oO==_LS)){var _JT=_DS.sequence._KS[0];if(_JT!=null){_Gt._64(_JT._Qm2(_Gt._F13));}if(!_x43){var layer=_jO._lO(_S3,_Gt.layer);var _A43=-1;for(var _B43=0;_B43<layer._mO._Kk.length;++_B43){var _ER=layer._mO._Kk[_B43];if(_ER!==null&&_ER!==undefined&&_ER._EP==_Gt.id){
_A43=_ER._ke;break;}}if(_A43!==-1){_QS(_DS.sequence,_A43,fps,_y43,_Gt._G13,_Gt._E13,_Gt._F13);}}}if(_z43){_Gt._b6(_6w2,0,_Gt,_Gt);}}function _C43(_Gt,_DS,image_index){if(_DS.sequence!=null){if((_DS.sequence._KS!=null)&&(_DS.sequence._KS[0]._oO==_LS)){var _JT=_DS.sequence._KS[0];var _KT=_JT._NS._LT;var _qN=_JT._NS._OS(_Gt._F13,_DS.sequence._PS);if(_qN!=null){var _D43=_JT._NS._PT[_KT-1]._QT+_JT._NS._PT[_KT-1]._PS;var _E43=_Gt.image_number;var _F43=image_index/_E43;var _G43=_F43-Math.floor(_F43);if(_G43<0){
_F43-=1.0;_G43+=1.0;}var _H43=Math.floor(_F43)*_D43;var _NT=Math.floor(_G43*_KT);var _I43=(_G43*_KT)-_NT;_NT=Math.max(0,Math.min(_KT-1,_NT));_H43+=_JT._NS._PT[_NT]._QT+(_I43*_JT._NS._PT[_NT]._PS);return _H43;}}}return image_index;}_xG2.prototype._J43=function(){var _Kk=_S3._yN._Kk;for(var index=0;index<_Kk.length;index++){var _Gt=_Kk[index];if(_Gt.marked)continue;if(!_Gt.active)continue;var _DS=_16._26(_Gt.sprite_index);var _K43=false;if(_DS!=null){if(_DS.sequence!=null){var _L43=_Gt._F13;if((_DS.sequence._KS!=null)&&(_DS.sequence._KS[0]._oO==_LS)){
var _JT=_DS.sequence._KS[0];if(_JT!=null){_L43=_JT._Qm2(_Gt._F13);if(Math.abs(_Gt.image_index-_L43)>g_GMLMathEpsilon){var _KT=_JT._NS._LT;if(_KT>0){var _NT=~~(_Gt.image_index);var _OT=_Gt.image_index-_NT;var _M43=_Gt.image_index;if(_NT>=_KT){_M43=_JT._NS._PT[_KT-1]._QT+(_Gt.image_index-(_KT-1));}else if(_NT<0){_M43=_Gt.image_index;}else _M43=(_JT._NS._PT[_NT]._QT+(_OT*_JT._NS._PT[_NT]._PS));_M43=_C43(_Gt,_DS,_Gt.image_index);_v43(_Gt,_DS,_M43,true);}}}}_K43=true;var fps=_W3._X3();var length=_DS.sequence._PS;
var _y43=_DS.sequence._7c1;if(_DS.sequence._8c1==_eP)_y43/=fps;_v43(_Gt,_DS,(_Gt._F13+(_Gt._G13*_Gt.image_speed*_y43)),false);}}if(!_K43){var _tu=_Gt._N23();if(_Gt.image_index>=_tu){_Gt.image_index-=_tu;var _1F=_Gt._1F;if(_1F._It2[_6w2]){_Gt._b6(_6w2,0,_Gt,_Gt);}}else if(_Gt.image_index<0){_Gt.image_index+=_tu;var _1F=_Gt._1F;if(_1F._It2[_6w2]){_Gt._b6(_6w2,0,_Gt,_Gt);}}}}};_xG2.prototype._b6=function(_D3,_74){var _xw1=true;if(_S3){var _S23=_D3;if(_S23!=_L62)_S23|=_74;var _E8=_Ft2++;var _Kk=_S3._yN._Kk;for(var index=_Kk.length-1;
index>=0;index--){var _Gt=_Kk[index];if(!_Gt.marked&&(_Gt._Ht2<=_E8)){var _1F=_Gt._1F;if(_1F._It2[_S23]){_xw1=_Gt._b6(_D3,_74,_Gt,_Gt);}}}}return _xw1;};var yyInst=_ek1;function _dk1(_em,_sq,_gg){if(typeof _gg==="object"||typeof _gg==="function")return _gg;if(_gg==-1)return _em;if(_gg==-2)return _sq;if(_gg==-3)return _em;var _Gt=_xn._26(_gg);if(!_Gt){_Gt=_H3._26(_gg);if(_Gt)_Gt=_Gt._ou2._26(0);}return _Gt;}function _ek1(_em,_sq,_gg){if(typeof _gg==="object"||typeof _gg==="function")return _gg;if(_gg==-1)return _em;
if(_gg==-2)return _sq;if(_gg==-3)return _em;var _Gt=_xn._26(_gg);if(!_Gt){_Gt=_H3._26(_gg);if(!_Gt){_Bi("Unknown instance ID: "+_gg);debug(_JD());return undefined;}_Gt=_Gt._ou2._26(0);}return _Gt;}function _EN(_tt){if(_tt._N43===undefined||_tt._N43===false){_tt._N43=true;_tt._b6(_WN,0,_tt,_tt);_tt._b6(_FN,0,_tt,_tt);_tt.marked=true;}}function _O43(_kU,_Q5,_R5,_rl,_P43){var _Tm=_S3._mU(_Q5,_R5,_rl,_kU);if(_Tm!=null){if(_P43!=undefined){_Tm._s23(true);_Tm._x23(true);_Tm._t23(true);_Tm._v23(_P43);}_Tm._b6(_Vm,
0,_Tm,_Tm);_Tm._b6(_Wm,0,_Tm,_Tm);return _Tm;}return null;}function _Q43(_kU,_Q5,_R5,_ET,_P43){var layer=_jO._lO(_S3,_ET);if(layer!=null){var _Gt=_S3._nU(_Q5,_R5,layer,_kU);if(!_Gt!=null){if(_P43!=undefined){_Gt._s23(true);_Gt._x23(true);_Gt._t23(true);_Gt._v23(_P43);}_Gt._b6(_Vm,0,_Gt,_Gt);_Gt._b6(_Wm,0,_Gt,_Gt);return _Gt;}}return null;}function _cU(_em){if(_em instanceof _PN){return _em.depth;}return _Va;}var _FO=256;var _R43=5;var _S43=1024;var _cj1=1;var _ij1=2;var _T43=4;var _Dg=1;var _Bg=2;var _Cg=0x80000000;
var _U43=128;var _Gg=0,_yg=0,_wg=0,_xg=0,_Ig=-1,_V43=0,_Hg=-1,_W43=0,_X43=0,_tO=0,_7k1=(typeof(document.hasFocus)=="function"?document.hasFocus():true),_yO=0,_zO=0,_Y43=false,_Z43=0;var _rO=[];var _sO=[];var _uO=[];var _ej1=[];var _1k1=[];var _zg=[];var __43=0;var _lg=[];var _053={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 _153={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 _253(){_7k1=true;}function _353(){_7k1=false;_453();}function _553(which){if(!document.getElementById)return;if(which.style.display=="block"){which.style.display="none";}else {which.style.display="block";}}function _653(_753,_853){try{if(_753){if(_753.JSON_game){if(_753.JSON_game.Options){if(_753.JSON_game.Options.gameGuid){
if(_753.JSON_game.Options.gameGuid==JSON_game.Options.gameGuid){_753.focus();_853.focus();return true;}}}}}}catch(err){}return false;}function _953(){var _et=document.getElementById(_eE);var _a53;if((_FM==_Zy2)||(_FM==_Yy2)||(_FM==__y2)||(_FM==_m61)){_a53=_et.parentNode.frames;if(!_a53){_653(this,_et);}else {for(var _b53=0;_b53<_a53.length;_b53++){var _c53=_a53[_b53];if(_653(_c53,_et))break;}}}else {if(!_et._d53||!_et._d53.document||!_et.parentNode.document.getElementsByTagName("IFRAME")){_653(this,_et);
}else {_a53=_et.parentNode.document.getElementsByTagName("IFRAME");for(var _b53 in _a53){var _c53=_a53[_b53].contentWindow;if(_653(_c53,_et))break;}}}}var _e53;var _f53;var _g53;var _h53;var _i53;var _j53;var _k53;var _l53;var _m53;var _n53;var _o53;function _p53(){var _ch=document.getElementById("gm4html5_div_id");if(_ch){_f53=_ch.style.left;_g53=_ch.style.top;_h53=_ch.style.margin;var top=window.parent;if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _q53=top.chrome.app.window.current();
if(_q53!=null){var _YP1=window.parent.document.getElementById("container");var _r53=window.parent.document.getElementById("game");if(_YP1!=null){_i53=_YP1.style.width;_j53=_YP1.style.height;_m53=_YP1.style.left;_k53=_YP1.style.margin;_l53=_YP1.style.position;}if(_r53!=null){_n53=_r53.style.width;_o53=_r53.style.height;}_q53.fullscreen();var _s53=_q53.getBounds();if(_YP1!=null){_YP1.style.width="100%";_YP1.style.height="100%";_YP1.style.left="0";_YP1.style.margin='auto';_YP1.style.position='relative';
}if(_r53!=null){_r53.style.width="100%";_r53.style.height="100%";canvas.style.width="100%";canvas.style.height="100%";}}}}_ch.style.margin="0px";_ch.style.top="0";_ch.style.left="0";_ch.style._t53="0px";_ch.style._u53="0px";if(_ch.mozRequestFullScreen){document._v53=function(event){document._v53=_w53;};_ch.mozRequestFullScreen();}else if(_ch.webkitRequestFullScreen){_ch.onwebkitfullscreenchange=function(e){_ch.onwebkitfullscreenchange=_w53;};if(_FM==__y2){_ch.webkitRequestFullScreen();}else {_ch.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
}}else if(document.documentElement.requestFullScreen){document.documentElement.requestFullScreen();}_jF2=true;return;}if(canvas.mozRequestFullScreen){canvas.style.margin="0px";canvas.style.top="";canvas.style.left="";canvas.style._t53="0px";canvas.style._u53="0px";canvas.mozRequestFullScreen();}else if(canvas.webkitRequestFullScreen){canvas.style.margin="0px";canvas.style.top="";canvas.style.left="";canvas.style._t53="0px";canvas.style._u53="0px";canvas.onwebkitfullscreenchange=function(e){canvas.onwebkitfullscreenchange=_w53;
};if(_FM==__y2){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._t53="0px";canvas.style._u53="0px";document.documentElement.requestFullScreen();}_jF2=true;}function _w53(){if(_Fh1){var _ch=document.getElementById("gm4html5_div_id");if(_ch){_ch.style.left=_f53;_ch.style.top=_g53;_ch.style.margin=_h53;}var top=window.parent;
if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _q53=top.chrome.app.window.current();if(_q53!=null)_q53.restore();}}_jF2=true;}}function _x53(){var top=window.parent;if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _q53=top.chrome.app.window.current();if(_q53!=null){_q53.restore();_jF2=true;var _YP1=window.parent.document.getElementById("container");if(_YP1!=null){_YP1.style.width=_i53;_YP1.style.height=_j53;_YP1.style.left=_m53;
_YP1.style.margin=_k53;_YP1.style.position=_l53;}var _r53=window.parent.document.getElementById("game");if(_r53!=null){_r53.style.width=_n53;_r53.style.height=_o53;canvas.style.width=_n53;canvas.style.height=_o53;}}}}if(document.webkitCancelFullScreen){document.webkitCancelFullScreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();_w53();}else {_jF2=true;}}function _sE(){if(_gF2)return;window.onkeyup=function(){_y53(arguments[0]||window.event);};window.onkeydown=function(){var _Ii=arguments[0]||window.event;
if((_cF2)&&(_Ii!=null)&&(_Ii.which==121)&&(!_Ii.repeat)&&(canvas.mozRequestFullScreen)){if(!document.mozFullScreen){_z53();_p53();}else {_x53();}_Ii.preventDefault();return false;}if(_A53(_Ii)==false){_Ii.preventDefault();return false;}};window.onmouseup=_Qd1;_gF2=true;}function _iE(){if(_gF2==false)return;window.onkeydown=null;window.onkeyup=null;window.onmouseup=null;_gF2=false;}function _B53(_C53){if(_C53==121){return true;}if(window.chrome&&window.chrome.app){if(_C53==183)return true;}return false;}
function _A53(_Ii){var _C53;if(_Ii==null){_C53=window.event.which;if(_C53==122)return true;if(_C53!=121)window.event.preventDefault();else _jF2=true;window.event.preventDefault();}else {_C53=_Ii.which;if(_C53==122)return true;if(_C53==120){}else if(!_B53(_C53)){_Ii.preventDefault();}else {if(_cF2){if(!_Fh1){_z53();_p53();}else {_x53();}}}_Ii.preventDefault();}if(!_rO[_C53]){_sO[_C53]=1;}_rO[_C53]=1;_tO=_C53;if(_FM==_GM){_X43=_Ii.char;}else if(_Ii.key){if(_Ii.key.length==1){_X43=_Ii.key;}else if(_C53==8){_X43=String.fromCharCode(8);
}else if(_C53==13){_X43=String.fromCharCode(13);}else {_X43="";}}else {if(_Ii.shiftKey){_X43=_153[_C53];}else {_X43=_053[_C53];}}if(!_X43)_X43="";return false;}function _y53(_Ii){var _C53;if(_Ii==null){_C53=window.event.which;if(_C53==122)return;window.event.preventDefault();}else {_C53=_Ii.which;if(_C53==122)return;_Ii.preventDefault();}_uO[_C53]=1;_rO[_C53]=0;return false;}function _D53(_b4,_E53){var target,__7;var _F53=canvas.style.display;canvas.style.display="none";target=document.elementFromPoint(_E53.clientX,
_E53.clientY);canvas.style.display=_F53;target="canvas";__7=document.createEvent('MouseEvents');__7.initMouseEvent(_b4,true,true,document.defaultView,1,_E53.screenX,_E53.screenY,_E53.clientX,_E53.clientY,false,false,false,false,_E53.button,null);__7.target=target;target.dispatchEvent(__7);}function _it(_E53){_wg=_E53.clientX;_xg=_E53.clientY;_zg[_E53.button].x=_wg;_zg[_E53.button].y=_xg;}var _mg=false;function _Pd1(_E53){if(!_7k1){_953();}if(!_mg){if(_FM==__y2)_C71();_mg=true;}_Gg=_E53.button;if(_Gg==2)_Gg=1;
else if(_Gg==1)_Gg=2;_Hg=_Gg;_Ig=_Gg;_yg|=(1<<_Gg);_zg[_E53.button]._Ag=_Bg|_Cg|_Dg;_zg[_E53.button].x=_E53.pageX;_zg[_E53.button].y=_E53.pageY;return _E53;}function _Qd1(_E53){_Gg=_E53.button;if(_Gg==2)_Gg=1;else if(_Gg==1)_Gg=2;_W43=_V43;_V43=_Gg;_yg&=~(1<<_Gg);_Ig=-1;_zg[_E53.button]._Ag=0;return false;}function _G53(_E53){if(_E53.detail){_Z43=-_E53.detail;}else {_Z43=_E53.wheelDelta;}}function _H53(){if(_xn!=null){_xn._b6(__v2,0);}return undefined;}function _vG2(){this._I53="a";this._J53=[];this._K53=this._L53=-1;
this._AO=[];this._CO=[];this._BO=[];this._M53=this._N53=0;this._De=[];this._Ce=[];this._ye=[];this._O53=this._P53=false;this._GO=[];this._Q53=this._xO=this._R53=this._S53=this._DO=this._EO=this._O3=0;for(var _V6=0;_V6<_S43;_V6++){this._J53[_V6]="";}for(var _V6=0;_V6<_FO;_V6++){this._AO[_V6]=this._CO[_V6]=this._BO[_V6]=false;this._GO[_V6]=_V6;}for(var _V6=0;_V6<_R43;_V6++){this._De[_V6]=this._Ce[_V6]=this._ye[_V6]=false;}this._Uf=_T53;this._U53=_V53;this._W53=_W53;this._X53=_X53;this._Y53=_Y53;this._Z53=_Z53;
this.__53=__53;this._063=_063;this._163=_163;this._263=_263;this._363=_363;this._463=_463;this._563=_563;this._dq=_dq;this._663=_663;this._763=_763;this._bq=_bq;this._863=_863;this._cq=_cq;this._963=_963;this._a63=_a63;this._b63=_c63;this._d63=_e63;this._f63=_g63;this._h63=_h63;for(var _V6=0;_V6<_FO;_V6++){_rO[_V6]=_uO[_V6]=false;}if(!_713){window.onbeforeunload=_H53;}_1k1=new Array(_U43);_zg=new Array(_U43);for(var _i63=0;_i63<_U43;_i63++){_1k1[_i63]=new _j63();_zg[_i63]=new _j63();}browser_input_capture(true);
}function browser_input_capture(_cz){_cz=yyGetBool(_cz);if(_Y43==_cz)return;_453();_Y43=_cz;if(_cz){canvas.onmousemove=_it;canvas.onmousedown=_Pd1;window.onmouseup=_Qd1;canvas.onmousewheel=_G53;canvas.onselectstart=function(){return false;};canvas.addEventListener("DOMMouseScroll",_G53,false);var _V6=document.getElementById("loading_screen");if(_V6){_V6.onmousemove=_it;_V6.onmousedown=_Pd1;_V6.onmouseup=_Qd1;_V6.onmousewheel=_G53;_V6.addEventListener("DOMMouseScroll",_G53,false);}window.addEventListener("focus",
_253);window.addEventListener("blur",_353);_sE();}else {canvas.onmousemove=null;canvas.onmousedown=null;window.onmouseup=null;canvas.onmousewheel=null;canvas.onselectstart=null;canvas.removeEventListener("DOMMouseScroll",_G53);var _V6=document.getElementById("loading_screen");if(_V6){_V6.onmousemove=null;_V6.onmousedown=null;_V6.onmouseup=null;_V6.onmousewheel=null;_V6.removeEventListener("DOMMouseScroll",_G53);}document.body.onfocusin=null;document.body.onfocusout=null;document.onfocusin=null;document.onfocusout=null;
window.onfocus=null;window.onblur=null;_iE();}}function _j63(){this._Ag=0;this.x=0;this.y=0;}function _453(){_k63();_l63();g_pBuiltIn.keyboard_key=0;g_pBuiltIn.keyboard_key="";_tO=0;_X43="";}_vG2.prototype._Tf=function(){this._m63();this._a63();g_pBuiltIn.keyboard_key=0;g_pBuiltIn.keyboard_lastkey=0;g_pBuiltIn.keyboard_key="";_tO=0;_X43="";g_pBuiltIn.keyboard_lastchar="";g_pBuiltIn.keyboard_string="";};/*@this {yyIOManager} */function _W53(){return this._I53;}/*@this {yyIOManager} */function _X53(_n63){
this._I53=_n63;}/*@this {yyIOManager} */function _Y53(){return this._L53;}/*@this {yyIOManager} */function _Z53(){return this._K53;}/*@this {yyIOManager} */function __53(_5l){if(_5l<0||_5l>255)return false;this._L53=_5l;}/*@this {yyIOManager} */function _063(_5l){if(_5l<0||_5l>255)return false;this._K53=_5l;}/*@this {yyIOManager} */function _163(_5l){if(_5l<0||_5l>255)return false;return this._AO[_5l];}/*@this {yyIOManager} */function _263(_5l){if(_5l<0||_5l>255)return false;return this._BO[_5l];}/*@this {yyIOManager} */function _363(_5l){
if(_5l<0||_5l>255)return false;return this._CO[_5l];}/*@this {yyIOManager} */function _463(_5l){if(_5l<0||_5l>255)return;this._AO[_5l]=0;this._BO[_5l]=0;this._CO[_5l]=0;}_vG2.prototype._m63=function(){this._L53=0;this._K53=0;this._I53=0;for(var i=0;i<=_FO;i++){this._AO[i]=0;this._BO[i]=0;this._CO[i]=0;}};function _k63(){for(var i=0;i<_FO;i++){_sO[i]=0;_uO[i]=0;_rO[i]=0;}}/*@this {yyIOManager} */function _563(){return this._M53;}/*@this {yyIOManager} */function _dq(){return this._N53;}/*@this {yyIOManager} */function _663(_rt){
if((_rt<1)||(_rt>3))return;this._M53=_rt;}/*@this {yyIOManager} */function _763(_rt){if((_rt<1)||(_rt>3))return;this._N53=_rt;}/*@this {yyIOManager} */function _bq(_rt){_rt--;if(_rt>=0&&_rt<_R43){return this._De[_rt];}return false;}/*@this {yyIOManager} */function _863(_rt){_rt--;if(_rt>=0&&_rt<_R43){return this._ye[_rt];}}/*@this {yyIOManager} */function _cq(_rt){_rt--;if(_rt>=0&&_rt<_R43){return this._Ce[_rt];}return false;}/*@this {yyIOManager} */function _963(_rt){_rt--;if(_rt>=0&&_rt<_R43){this._De[_rt]=false;
this._ye[_rt]=false;this._Ce[_rt]=false;}}/*@this {yyIOManager} */function _a63(){this._M53=0;this._N53=0;for(var i=0;i<=_R43;i++){this._De[i]=false;this._ye[i]=false;this._Ce[i]=false;}this._P53=false;this._O53=false;for(var _og=0;_og<_lg.length;_og++){_lg[_og]._Tf();}}function _l63(){_W43=-1;_V43=-1;_Ig=-1;_yg=0;_zg[0]._Ag=0;_zg[0].x=0;_zg[0].y=0;_Gg=-1;}/*@this {yyIOManager} */function _T53(){for(var _og=0;_og<_lg.length;_og++){var _pg=_lg[_og];if(_pg._De){_pg._Ce=0;_pg._ye=_pg._0g^_pg._De;}else {_pg._Ce=_pg._0g^_pg._De;
_pg._ye=0;}_pg._0g=_pg._De;}for(var _i63=0;_i63<_zg.length;_i63++){_1k1[_i63]._Ag=_zg[_i63]._Ag;_1k1[_i63].x=_zg[_i63].x;_1k1[_i63].y=_zg[_i63].y;_zg[_i63]._Ag&=~_Dg;}if(_tO){if(_X43){if(_tO==13){}else if(_tO==8){g_pBuiltIn.keyboard_lastchar=_X43;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=_X43;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=_tO;_tO=0;}else if(!_vg._AO[g_pBuiltIn.keyboard_key]){g_pBuiltIn.keyboard_lastkey=g_pBuiltIn.keyboard_key;g_pBuiltIn.keyboard_key=0;}this._DO=_wg;this._EO=_xg;this._xO=_yg;if((this._xO&1)!=0){this._De[0]=1;if(((this._R53^this._xO)&0x1)!=0){this._ye[0]=1;}}else {this._De[0]=0;if(((this._R53^this._xO)&0x1)!=0){
this._Ce[0]=1;}}if((this._xO&2)!=0){this._De[1]=1;if(((this._R53^this._xO)&0x2)!=0){this._ye[1]=1;}}else {this._De[1]=0;if(((this._R53^this._xO)&0x2)!=0){this._Ce[1]=1;}}if((this._xO&4)!=0){this._De[2]=1;if(((this._R53^this._xO)&0x4)!=0){this._ye[2]=1;}}else {this._De[2]=0;if(((this._R53^this._xO)&0x4)!=0){this._Ce[2]=1;}}if((this._xO&8)!=0){this._De[3]=1;if(((this._R53^this._xO)&0x8)!=0){this._ye[3]=1;}}else {this._De[3]=0;if(((this._R53^this._xO)&0x8)!=0){this._Ce[3]=1;}}if((this._xO&16)!=0){this._De[4]=1;
if(((this._R53^this._xO)&0x10)!=0){this._ye[4]=1;}}else {this._De[4]=0;if(((this._R53^this._xO)&0x10)!=0){this._Ce[4]=1;}}this._R53=this._xO;g_pBuiltIn.mouse_x=this._DO;g_pBuiltIn.mouse_y=this._EO;g_pBuiltIn.mouse_button=_Ig+1;g_pBuiltIn.mouse_lastbutton=_Hg+1;this._h63();}/*@this {yyIOManager} */function _h63(){var _o63=0;var _rd=0;var w=_KJ;var h=_HJ;var _j7=window_get_width();var _Zb1=window_get_height();if(w<0)w=_j7;if(h<0)h=_Zb1;for(var _i63=0;_i63<_1k1.length;_i63++){var _p63=_1k1[_i63];if((_p63._Ag&_Cg)!=0){
_rd=1;for(var _q63=0;_q63<_ej1.length;_q63++){var _9j1=_ej1[_q63];if((_9j1._bj1&_cj1)!=0){var x=(w*(_p63.x-_8g.left))/_j7;var y=(h*(_p63.y-_8g.top))/_Zb1;if((x>=_9j1.x)&&(x<_9j1._N6)&&(y>=_9j1.y)&&(y<_9j1._O6)){_o63|=_rd;}}_rd<<=1;}_p63._Ag=0;}}_rd=1;var _r63=__43^_o63;for(var _q63=0;_q63<_ej1.length;_q63++){var _9j1=_ej1[_q63];if((_9j1._bj1&_cj1)!=0){var _mZ2=_o63&_rd;var _wD=_r63&_rd;if(_9j1.key!=0){this._BO[_9j1.key]|=(_mZ2&&_wD);this._AO[_9j1.key]|=(_mZ2&&!_wD);this._CO[_9j1.key]|=(!_mZ2&&_wD);}else {
this._ye[_9j1.button-1]|=(_mZ2&&_wD);this._De[_9j1.button-1]|=(_mZ2&&!_wD);this._Ce[_9j1.button-1]|=(!_mZ2&&_wD);}}_rd<<=1;}__43=_o63;}function _b63(_s63){var _Ii=_Ax2|_s63;var _Kk=_S3._yN._Kk;var _aZ=_Kk.length;for(var _UE=0;_UE<_aZ;_UE++){var _Gt=_Kk[_UE];var _IF=_Gt._1F;if(_IF._It2[_Ii]){_Gt._b6(_Ax2,_s63,_Gt,_Gt);}}}function _t63(_u63){var _Ii=_Cx2|_u63;var _Kk=_S3._yN._Kk;var _aZ=_Kk.length;for(var _UE=0;_UE<_aZ;_UE++){var _Gt=_Kk[_UE];if(_Gt.marked){continue;}var _IF=_Gt._1F;if(_IF._It2[_Ii]){_Gt._b6(_Cx2,
_u63,_Gt,_Gt);}}}function _f63(_v63){var _Ii=_Ex2|_v63;var _Kk=_S3._yN._Kk;var _aZ=_Kk.length;for(var _UE=0;_UE<_aZ;_UE++){var _Gt=_Kk[_UE];var _IF=_Gt._1F;if(_IF._It2[_Ii]){_Gt._b6(_Ex2,_v63,_Gt,_Gt);}}}/*@this {yyIOManager} */function _c63(){var _w63=0;for(var i=2;i<_FO;i++){if(this._AO[i]){_w63=1;_b63(i);}}_b63(_w63);}/*@this {yyIOManager} */function _e63(){var _x63=0;for(var i=2;i<_FO;i++){if(this._BO[i]){_x63=1;_t63(i);}}_t63(_x63);}/*@this {yyIOManager} */function _g63(){var _y63=0;for(var i=2;i<_FO;i++){
if(this._CO[i]){_y63=1;_f63(i);}}_f63(_y63);}/*@this {yyIOManager} */function _V53(){var _z63=0,_A63=0,_B63=0;this._O3++;for(var i=0;i<_FO;i++){this._BO[i]=this._CO[i]=this._AO[i]=0;}for(var i=0;i<_FO;i++){var key=this._GO[i];this._BO[key]|=_sO[i];this._CO[key]|=_uO[i];this._AO[key]|=_rO[i];_z63|=_sO[i];_A63|=_rO[i];_B63|=_uO[i];_sO[i]=0;_uO[i]=0;}this._BO[1]=_z63;this._AO[1]=_A63;this._CO[1]=_B63;this._BO[0]=_z63^1;this._AO[0]=_A63^1;this._CO[0]=_B63^1;_yO=_zO=0;if(_Z43>0){_yO=1;}else if(_Z43<0){_zO=1;
}_Z43=0;for(var i=0;i<=_R43;i++){this._ye[i]=false;this._Ce[i]=false;}this._P53=false;this._O53=false;this._Uf();var _2g;if(!_S3._3g){_2g=_4g;}else {_2g=_S3._5g;}var _6g;for(var _n5=0;_n5<=7;++_n5){_6g=_2g[_n5];if(_6g&&_6g.visible){g_pBuiltIn.mouse_x=_6g._dg(_vg._DO,_vg._EO);g_pBuiltIn.mouse_y=_6g._eg(_vg._DO,_vg._EO);break;}}for(var _n5=7;_n5>=0;_n5--){_6g=_2g[_n5];if(_6g&&_6g.visible){_7g(canvas,_8g);if(((this._DO-_8g.left)>=_6g._9g)&&((this._DO-_8g.left)<_6g._ag)&&((this._EO-_8g.top)>=_6g._bg)&&((this._EO-_8g.top)<_6g._cg)){
g_pBuiltIn.mouse_x=_6g._dg(_vg._DO,_vg._EO);g_pBuiltIn.mouse_y=_6g._eg(_vg._DO,_vg._EO);break;}}}}function _C63(){_vg._b63();_vg._d63();_vg._f63();}function _D63(index){this._bj1=0;this.index=index;this.x=0;this.y=0;this._N6=0;this._O6=0;this.w=0;this.h=0;this._m5=0;this._n5=0;this.key=0;this.button=0;}function _aj1(){for(var _V6=0;_V6<_ej1.length;++_V6){if(_ej1[_V6]._bj1==0){return _ej1[_V6];}}var i=_ej1.length;_ej1[i]=new _D63(i);return _ej1[i];}function _fj1(_E63){_ej1[_E63]._bj1=0;}function _F63(){for(var _V6=0;
_V6<_ej1.length;++_V6){_ej1[_V6]._bj1=0;}}_vG2.prototype._G63=function(){_wE();_ZJ();var __J=[];__J[0]=1;__J[1]=0;__J[2]=0;__J[3]=1;__J[4]=0;__J[5]=0;_MY2(__J);var _dG=draw_get_alpha();var _H63=draw_get_color();draw_set_color(0xffffff);for(var _V6=0;_V6<_hj1.length;++_V6){var _qN=_hj1[_V6];draw_rectangle(_qN.x,_qN.y,_qN.x+_qN.w-1,_qN.y+_qN.h-1,true);}draw_set_color(_H63);draw_set_alpha(_dG);_5K();};function _sk(){this._I63=[];this._Kk=[];this._tk=false;this.length=0;this._E8=0;}_sk.prototype._ZF2=function(){
if(this._I63.length==0){return this._Kk.length;}return this._I63.pop();};_sk.prototype._Df=function(_VO2){var index;if(this._tk){index=this._Kk.length;}else {index=this._ZF2();}this._Kk[index]=_VO2;this._E8++;this.length=this._Kk.length;return index;};_sk.prototype._26=function(_kU){if(_kU<0||_kU>=this._Kk.length)return null;return this._Kk[_kU];};_sk.prototype._nS=function(_XO2){for(var _V6=0;_V6<this._Kk.length;_V6++){if(this._Kk[_V6]==_XO2)return _V6;}};_sk.prototype._SQ=function(_XO2){for(var _V6=0;_V6<this._Kk.length;
_V6++){if(this._Kk[_V6]==_XO2){if(this._tk){this._Kk.splice(_V6,1);}else {this._Kk[_V6]=null;this._I63.push(_V6);}this._E8--;this.length=this._Kk.length;return true;}}return false;};_sk.prototype._uj=function(_kU){if(_kU<0||_kU>=this._Kk.length)return false;if(this._tk){this._Kk.splice(_kU,1);}else {this._Kk[_kU]=null;this._I63.push(_kU);}this._E8--;this.length=this._Kk.length;return true;};_sk.prototype._Tf=function(){var _Kk=this._Kk;for(var i=0;i<_Kk.length;i++){var _n5=_Kk[i];if(_n5!=null&&_n5.Object!==undefined)switch(_n5._Nk){
case _Ck:ds_map_destroy(_n5.Object);break;case _Ek:ds_list_destroy(_n5.Object);break;}}this._Kk=[];this._I63=[];this._E8=0;this.length=this._Kk.length;};_sk.prototype._Hk=function(_74,__3){if(_74<0||_74>this._Kk.length)return;for(var i=0;i<this._I63.length;i++){if(this._I63[i]>=_74){this._I63[i]++;}}this._Kk.splice(_74,0,__3);this._E8++;this.length=this._Kk.length;};_sk.prototype.Set=function(_74,__3){if(_74<0||_74>=this._Kk.length)return;this._Kk[_74]=__3;};_sk.prototype._Fk=function(_74,__3){if(_74<0){
_55("index is negative "+_74);return __3;}if(_74>=this._Kk.length){var _V6=this._Kk.length;while(_74>=_V6){this._Df(0);++_V6;}}var _P4=this._Kk[_74];this._Kk[_74]=__3;return _P4;};_sk.prototype._J63=function(_K63){if(_K63){this._Kk.sort(function(_G4,_F4){return _G4-_F4;});}else {this._Kk.sort(function(_G4,_F4){return _F4-_G4;});}this._I63=[];for(var i=0;i<this._Kk.length;i++){if(this._Kk[i]==null||this._Kk[i]==undefined){this._I63.push(i);}}};_sk.prototype._L63=function(){this._Kk.sort(function(){return 0.5-Math.random();
});};_sk.prototype._Pk=function(){var _M63=this._Kk.length,_N63,_O63;while(0!==_M63){_O63=Math.floor(Math.random()*_M63);_M63-=1;_N63=this._Kk[_M63];this._Kk[_M63]=this._Kk[_O63];this._Kk[_O63]=_N63;}};_sk.prototype._qj=function(_rj){this._Kk=_rj._Kk.slice();this._I63=_rj._I63.slice();this._tk=_rj._tk;this.length=_rj.length;this._E8=_rj._E8;};var _P63=0,_Q63=1,_R63=2,_S63=3,_T63=4,_U63=5;var _V63=0,_W63=1,_X63=2,_Y63=3,_Z63=4,__63=5;function _073(){this._cc1=true;this._173=[];for(var i=0;i<__63;i++){
this._173[i]=_P63;}this.width=0;this.height=0;this._273=-1;this._373=0;this._473=0.0;this._573=0.0;this._E9=[];this.uvs=[];}_073.prototype._qJ=function(_673,_A8,_B8,_P3,_S4){this._173=[];for(var i=0;i<__63;i++){this._173[i]=_673[i];}this.width=_A8;this.height=_B8;this._273=_P3;this._373=_S4;this._E9=[];this.uvs=[];this._cc1=false;};_073.prototype._773=function(_Q5,_R5,_Oc,_Pc){var _873=this._E9.length;this._E9[_873]=_Q5;this._E9[_873+1]=_R5;this.uvs[_873]=_Oc;this.uvs[_873+1]=_Pc;};/*@constructor */function _ac1(_YO2){
this.__type="[NineSliceData]";this.__yyIsGMLObject=true;this.pName="nineslicedata";if((_YO2!=null)&&(_YO2!=undefined)){this.left=_YO2.nLeft;this.top=_YO2.nTop;this.right=_YO2.nRight;this.bottom=_YO2.nBottom;this.enabled=_YO2.nEnabled;this._173=[];for(i=0;i<__63;i++){this._173[i]=_YO2.nTilemode[i];}}else {this.left=0;this.top=0;this.right=0;this.bottom=0;this.enabled=false;this._173=[];for(i=0;i<__63;i++){this._173[i]=_P63;}}this._D8=new _073();Object.defineProperties(this,{gmlleft:{enumerable:true,
get :function(){return this.left;},set :function(__3){this.left=yyGetInt32(__3);this._D8._cc1=true;}},gmltop:{enumerable:true,get :function(){return this.top;},set :function(__3){this.top=yyGetInt32(__3);this._D8._cc1=true;}},gmlright:{enumerable:true,get :function(){return this.right;},set :function(__3){this.right=yyGetInt32(__3);this._D8._cc1=true;}},gmlbottom:{enumerable:true,get :function(){return this.bottom;},set :function(__3){this.bottom=yyGetInt32(__3);this._D8._cc1=true;}},gmlenabled:{enumerable:true,
get :function(){return this.enabled;},set :function(__3){this.enabled=yyGetBool(__3);this._D8._cc1=true;}},gmltilemode:{enumerable:true,get :function(){return this._173;},set :function(__3){if(__3 instanceof Array){this._173=__3;}else {throw new Error("value must be an array of tilemodes");}}},});}_ac1.prototype.toString=function(){return yyGetString(this);};_ac1.prototype._973=function(__3){this.left=__3;this._D8._cc1=true;};_ac1.prototype._a73=function(__3){this.top=__3;this._D8._cc1=true;};_ac1.prototype._b73=function(__3){
this.right=__3;this._D8._cc1=true;};_ac1.prototype._c73=function(__3){this.bottom=__3;this._D8._cc1=true;};_ac1.prototype._rB1=function(_d73){this.enabled=_d73;this._D8._cc1=true;};_ac1.prototype._e73=function(_f73,_nr){this._173[_f73]=_nr;this._D8._cc1=true;};_ac1.prototype._g73=function(){return this.left;};_ac1.prototype._h73=function(){return this.top;};_ac1.prototype._i73=function(){return this.right;};_ac1.prototype._j73=function(){return this.bottom;};_ac1.prototype._X23=function(){return this.enabled;
};_ac1.prototype._k73=function(_f73){return this._173[_f73];};_ac1.prototype._l73=function(_A8,_B8,_S4,_P3){if(!_s8)return;var _3F=_P3;if(_3F==null){return;}this._D8._qJ(this._173,_A8,_B8,_P3,_S4);var i;var _Np2=[];var _aq2=[];var XOffset=0.0;var YOffset=0.0;var CropWidth=_3F.width;var CropHeight=_3F.height;var _m73=0;var _n73=0;var _Fc=_3F._05[_S4];var _U8=_Fc._95;if(!_U8.complete)return;XOffset=_Fc.XOffset;YOffset=_Fc.YOffset;CropWidth=_Fc.CropWidth;CropHeight=_Fc.CropHeight;_m73=_Fc.x;_n73=_Fc.y;var _o73=this.left;
var _p73=(_3F.width-this.right)-this.left;var _q73=this.right;var _r73=this.top;var _s73=(_3F.height-this.bottom)-this.top;var _t73=this.bottom;var _u73=(_A8<0)?1:0;var _v73=(_B8<0)?1:0;var _w73=(_u73^_v73)?true:false;var _x73=1.0;var _y73=1.0;if(_u73){_A8=-_A8;_x73=-1.0;}if(_v73){_B8=-_B8;_y73=-1.0;}var _z73=(_A8-_o73-_q73)/_p73;var _A73=(_B8-_r73-_t73)/_s73;if(_A8<_o73){_o73=_A8;_q73=0.0;_z73=0.0;}else if(_A8<(_o73+_q73)){_q73=(_A8-_o73);_z73=0.0;}if(_B8<_r73){_r73=_B8;_t73=0.0;_A73=0.0;}else if(_B8<(_r73+_t73)){
_t73=(_B8-_r73);_A73=0.0;}var _Pz=[];var _Qz=[];_Pz[0]=0.0;_Pz[1]=_o73;_Pz[2]=_Pz[1]+_p73;_Pz[3]=_Pz[2]+_q73;_Qz[0]=0.0;_Qz[1]=_r73;_Qz[2]=_Qz[1]+_s73;_Qz[3]=_Qz[2]+_t73;for(i=0;i<4;i++){_Np2[i]=_Pz[i];_aq2[i]=_Qz[i];}var xorigin=_3F.xOrigin;var yorigin=_3F.yOrigin;this._D8._473=xorigin*(_A8/_3F.width);this._D8._573=yorigin*(_B8/_3F.height);this._D8._473*=_x73;this._D8._573*=_y73;var _Jt=_Pz[3]-_Pz[2];_Pz[2]=_Pz[1]+((_Pz[2]-_Pz[1])*_z73);_Pz[3]=_Pz[2]+_Jt;_Jt=_Qz[3]-_Qz[2];_Qz[2]=_Qz[1]+((_Qz[2]-_Qz[1])*_A73);
_Qz[3]=_Qz[2]+_Jt;var _B73=[];_B73[0]=_P63;_B73[1]=this._173[_W63];_B73[2]=_P63;_B73[3]=this._173[_V63];_B73[4]=this._173[_Z63];_B73[5]=this._173[_X63];_B73[6]=_P63;_B73[7]=this._173[_Y63];_B73[8]=_P63;var x,y;var _C73=[];var _D73=[];var _E73=[];var _F73=[];for(y=0;y<3;y++){for(x=0;x<3;x++){var index=(y*3)+x;if(_B73[index]==_T63)continue;_C73[0]=_Pz[x];_C73[1]=_Pz[x+1];_D73[0]=_Qz[y];_D73[1]=_Qz[y+1];_E73[0]=_Np2[x];_E73[1]=_Np2[x+1];_F73[0]=_aq2[y];_F73[1]=_aq2[y+1];if(_E73[1]<=_E73[0])continue;if(_F73[1]<=_F73[0])continue;
if(XOffset>_E73[1])continue;if(YOffset>_F73[1])continue;if(_B73[index]==_P63){if(XOffset>_E73[0]){var _G73=(XOffset-_E73[0])/(_E73[1]-_E73[0]);_C73[0]=_C73[0]+((_C73[1]-_C73[0])*_G73);if(_C73[0]>=_C73[1])continue;_E73[0]=XOffset;}if(YOffset>_F73[0]){var _Jt=YOffset-_F73[0];var _G73=(YOffset-_F73[0])/(_F73[1]-_F73[0]);_D73[0]=_D73[0]+((_D73[1]-_D73[0])*_G73);if(_D73[0]>=_D73[1])continue;_F73[0]=YOffset;}_E73[0]-=XOffset;_E73[1]-=XOffset;_F73[0]-=YOffset;_F73[1]-=YOffset;if(_E73[0]>CropWidth)continue;
if(_F73[0]>CropHeight)continue;if(_E73[1]>CropWidth){var _G73=(CropWidth-_E73[0])/(_E73[1]-_E73[0]);_C73[1]=_C73[0]+((_C73[1]-_C73[0])*_G73);if(_C73[0]>=_C73[1])continue;_E73[1]=CropWidth;}if(_F73[1]>CropHeight){var _G73=(CropHeight-_F73[0])/(_F73[1]-_F73[0]);_D73[1]=_D73[0]+((_D73[1]-_D73[0])*_G73);if(_D73[0]>=_D73[1])continue;_F73[1]=CropHeight;}for(i=0;i<2;i++){_E73[i]+=_m73;_F73[i]+=_n73;_E73[i]/=_U8.width;_F73[i]/=_U8.height;}var _H73=[];var _I73=[];_H73[0]=_H73[2]=(_C73[0]*_x73);_H73[1]=_H73[3]=(_C73[1]*_x73);
_I73[0]=_I73[1]=(_D73[0]*_y73);_I73[2]=_I73[3]=(_D73[1]*_y73);var _J73=[0,1,2,2,1,3];var _K73=[0,0,1,0,0,1,0,1,1,0,1,1];if(_w73){for(i=5;i>=0;i--){this._D8._773(_H73[_J73[i]],_I73[_J73[i]],_E73[_K73[i*2]],_F73[_K73[i*2+1]]);}}else {for(i=0;i<6;i++){this._D8._773(_H73[_J73[i]],_I73[_J73[i]],_E73[_K73[i*2]],_F73[_K73[i*2+1]]);}}}else {var _L73=1;var _M73=1;if((_B73[index]==_Q63)||(_B73[index]==_R63))_L73=Math.ceil((_C73[1]-_C73[0])/(_E73[1]-_E73[0]));if((_B73[index]==_Q63)||(_B73[index]==_R63))_M73=Math.ceil((_D73[1]-_D73[0])/(_F73[1]-_F73[0]));
var _N73,_O73;if(_B73[index]==_P63)_N73=_C73[1]-_C73[0];else _N73=_E73[1]-_E73[0];if(_B73[index]==_P63)_O73=_D73[1]-_D73[0];else _O73=_F73[1]-_F73[0];var _P73=[];var _Q73=[];var _R73=[];var _S73=[];_P73[0]=0.0;_P73[1]=_N73;_Q73[0]=0.0;_Q73[1]=_O73;_R73[0]=_E73[0];_R73[1]=_E73[1];_S73[0]=_F73[0];_S73[1]=_F73[1];if(XOffset>_R73[0]){var _G73=(XOffset-_R73[0])/(_R73[1]-_R73[0]);_P73[0]=_P73[0]+((_P73[1]-_P73[0])*_G73);if(_P73[0]>=_P73[1])continue;_R73[0]=XOffset;}if(YOffset>_S73[0]){var _G73=(YOffset-_S73[0])/(_S73[1]-_S73[0]);
_Q73[0]=_Q73[0]+((_Q73[1]-_Q73[0])*_G73);if(_Q73[0]>=_Q73[1])continue;_S73[0]=YOffset;}_R73[0]-=XOffset;_R73[1]-=XOffset;_S73[0]-=YOffset;_S73[1]-=YOffset;if(_R73[0]>CropWidth)continue;if(_S73[0]>CropHeight)continue;if(_R73[1]>CropWidth){var _G73=(CropWidth-_R73[0])/(_R73[1]-_R73[0]);_P73[1]=_P73[0]+((_P73[1]-_P73[0])*_G73);if(_P73[0]>=_P73[1])continue;_R73[1]=CropWidth;}if(_S73[1]>CropHeight){var _G73=(CropHeight-_S73[0])/(_S73[1]-_S73[0]);_Q73[1]=_Q73[0]+((_Q73[1]-_Q73[0])*_G73);if(_Q73[0]>=_Q73[1])continue;
_S73[1]=CropHeight;}var _T73;for(_T73=0;_T73<_M73;_T73++){var _KG=_D73[0]+(_O73*_T73);var _Ff2=[];var _U73=[];if((_B73[index]==_R63)&&(_T73&1)){_Ff2[0]=_O73-_Q73[1];_Ff2[1]=_O73-_Q73[0];_U73[0]=_S73[1];_U73[1]=_S73[0];}else {_Ff2[0]=_Q73[0];_Ff2[1]=_Q73[1];_U73[0]=_S73[0];_U73[1]=_S73[1];}_Ff2[0]+=_KG;_Ff2[1]+=_KG;if(_Ff2[1]>_D73[1]){var _G73=(_D73[1]-_Ff2[0])/(_Ff2[1]-_Ff2[0]);_U73[1]=_U73[0]+((_U73[1]-_U73[0])*_G73);_Ff2[1]=_D73[1];}for(i=0;i<2;i++){_U73[i]+=_n73;_U73[i]/=_U8.height;}var _V73;for(_V73=0;
_V73<_L73;_V73++){var _6j=_C73[0]+(_N73*_V73);var _Ef2=[];var _W73=[];if((_B73[index]==_R63)&&(_V73&1)){_Ef2[0]=_N73-_P73[1];_Ef2[1]=_N73-_P73[0];_W73[0]=_R73[1];_W73[1]=_R73[0];}else {_Ef2[0]=_P73[0];_Ef2[1]=_P73[1];_W73[0]=_R73[0];_W73[1]=_R73[1];}_Ef2[0]+=_6j;_Ef2[1]+=_6j;if(_Ef2[1]>_C73[1]){var _G73=(_C73[1]-_Ef2[0])/(_Ef2[1]-_Ef2[0]);_W73[1]=_W73[0]+((_W73[1]-_W73[0])*_G73);_Ef2[1]=_C73[1];}for(i=0;i<2;i++){_W73[i]+=_m73;_W73[i]/=_U8.width;}var _H73=[];var _I73=[];_H73[0]=_H73[2]=(_Ef2[0]*_x73);_H73[1]=_H73[3]=(_Ef2[1]*_x73);
_I73[0]=_I73[1]=(_Ff2[0]*_y73);_I73[2]=_I73[3]=(_Ff2[1]*_y73);var _J73=[0,1,2,2,1,3];var _K73=[0,0,1,0,0,1,0,1,1,0,1,1];if(_w73){for(i=5;i>=0;i--){this._D8._773(_H73[_J73[i]],_I73[_J73[i]],_W73[_K73[i*2]],_U73[_K73[i*2+1]]);}}else {for(i=0;i<6;i++){this._D8._773(_H73[_J73[i]],_I73[_J73[i]],_W73[_K73[i*2]],_U73[_K73[i*2+1]]);}}}}}}}};_ac1.prototype._X73=function(_Q5,_R5,_X4,_Mc,_A9,_P3,_Y73){if(!_s8)return;var _Fc=_P3._05[this._D8._373];var _U8=_Fc._95;if(!_U8.complete)return;if(_s8)if(!_U8._Ba)_Ca(_Fc);
var i;_Mc&=0xffffff;var _G4=(_A9*255.0)<<24;var _0d=_G4|_Mc;var _Z73=_Hc/3;var __73=(this._D8._E9.length/2)/3;var _083=this._D8._E9;var _183=this._D8.uvs;var _283=0;if(_X4==0.0){var _383=_Q5;var _483=_R5;if(!_Y73){_383-=this._D8._473;_483-=this._D8._573;}while(__73>0){var _583=(__73<_Z73)?__73:_Z73;__73-=_583;var _683=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,_583*3);var _La=_683._Ma()>>2;var bindex=_La*_683._Na;_683._Na+=_583*3;var _Oa=_683._Pa;var _Qa=_683._Ra;var _Sa=_683._Ta;for(;_583>0;_583--){_Oa[bindex+0]=_083[_283]+_383;
_Oa[bindex+1]=_083[_283+1]+_483;_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_183[_283];_Sa[bindex+1]=_183[_283+1];bindex+=_La;_283+=2;_Oa[bindex+0]=_083[_283]+_383;_Oa[bindex+1]=_083[_283+1]+_483;_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_183[_283];_Sa[bindex+1]=_183[_283+1];bindex+=_La;_283+=2;_Oa[bindex+0]=_083[_283]+_383;_Oa[bindex+1]=_083[_283+1]+_483;_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_183[_283];_Sa[bindex+1]=_183[_283+1];bindex+=_La;_283+=2;}}}else {var _783=new _Zy();var _883=new _Zy();
var _983=new _Zy();_783._9I2();_883._9I2();if(_Y73){_783._pA(_X4);}else {_783._lA(-this._D8._473,-this._D8._573,0.0);_883._pA(_X4);_983.Multiply(_783,_883);_783=new _Zy(_983);}_883._9I2();_883._lA(_Q5,_R5,0.0);_983.Multiply(_783,_883);_783=_983;while(__73>0){var _583=(__73<_Z73)?__73:_Z73;__73-=_583;var _683=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,_583*3);var _La=_683._Ma()>>2;var bindex=_La*_683._Na;_683._Na+=_583*3;var _Oa=_683._Pa;var _Qa=_683._Ra;var _Sa=_683._Ta;for(;_583>0;_583--){for(i=0;i<3;i++){var _a83=_083[_283];
var _b83=_083[_283+1];_Oa[bindex+0]=(_783._K6[_vA]*_a83)+(_783._K6[_wA]*_b83)+_783._K6[_yA];_Oa[bindex+1]=(_783._K6[_zA]*_a83)+(_783._K6[_qz]*_b83)+_783._K6[_BA];_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_183[_283];_Sa[bindex+1]=_183[_283+1];bindex+=_La;_283+=2;}}}}};_ac1.prototype._c83=function(_Q5,_R5,_A8,_B8,_X4,_Mc,_A9,_S4,_P3,_Y73){if(_s8){var _d83=false;for(var i=0;i<__63;i++){if(this._D8._173[i]!=this._173[i]){_d83=true;break;}}if((this._D8._cc1)||(this._D8.width!=_A8)||(this._D8.height!=_B8)||(_d83==true)||(this._D8._273!=_P3)||(this._D8._373!=_S4)){
this._l73(_A8,_B8,_S4,_P3);}this._X73(_Q5,_R5,_X4,_Mc,_A9,_P3,_Y73);return;}var i;var _Np2=[];var _aq2=[];var XOffset=0.0;var YOffset=0.0;var CropWidth=_P3.width;var CropHeight=_P3.height;var _m73=0;var _n73=0;var _Fc=_P3._05[_S4];var _U8=_Fc._95;if(!_U8.complete)return;if(_s8)if(!_U8._Ba)_Ca({_95:_U8});XOffset=_Fc.XOffset;YOffset=_Fc.YOffset;CropWidth=_Fc.CropWidth;CropHeight=_Fc.CropHeight;_m73=_Fc.x;_n73=_Fc.y;var _o73=this.left;var _p73=(_P3.width-this.right)-this.left;var _q73=this.right;var _r73=this.top;
var _s73=(_P3.height-this.bottom)-this.top;var _t73=this.bottom;var _u73=(_A8<0)?1:0;var _v73=(_B8<0)?1:0;var _w73=(_u73^_v73)?true:false;var _x73=1.0;var _y73=1.0;if(_u73){_A8=-_A8;if(_s8){_x73=-1.0;}}if(_v73){_B8=-_B8;if(_s8){_y73=-1.0;}}var _z73=(_A8-_o73-_q73)/_p73;var _A73=(_B8-_r73-_t73)/_s73;if(_A8<_o73){_o73=_A8;_q73=0.0;_z73=0.0;}else if(_A8<(_o73+_q73)){_q73=(_A8-_o73);_z73=0.0;}if(_B8<_r73){_r73=_B8;_t73=0.0;_A73=0.0;}else if(_B8<(_r73+_t73)){_t73=(_B8-_r73);_A73=0.0;}var _Pz=[];var _Qz=[];_Pz[0]=0.0;
_Pz[1]=_o73;_Pz[2]=_Pz[1]+_p73;_Pz[3]=_Pz[2]+_q73;_Qz[0]=0.0;_Qz[1]=_r73;_Qz[2]=_Qz[1]+_s73;_Qz[3]=_Qz[2]+_t73;for(i=0;i<4;i++){_Np2[i]=_Pz[i];_aq2[i]=_Qz[i];}var xorigin=_P3.xOrigin;var yorigin=_P3.yOrigin;var _473;var _573;_473=xorigin*(_A8/_P3.width);_573=yorigin*(_B8/_P3.height);_473*=_x73;_573*=_y73;var _Jt=_Pz[3]-_Pz[2];_Pz[2]=_Pz[1]+((_Pz[2]-_Pz[1])*_z73);_Pz[3]=_Pz[2]+_Jt;_Jt=_Qz[3]-_Qz[2];_Qz[2]=_Qz[1]+((_Qz[2]-_Qz[1])*_A73);_Qz[3]=_Qz[2]+_Jt;var _B73=[];_B73[0]=_P63;_B73[1]=this._173[_W63];_B73[2]=_P63;
_B73[3]=this._173[_V63];_B73[4]=this._173[_Z63];_B73[5]=this._173[_X63];_B73[6]=_P63;_B73[7]=this._173[_Y63];_B73[8]=_P63;var _783=undefined;if((_X4!=0.0)||(!_s8&&(_u73||_v73))){_783=new _Zy();var _883=new _Zy();var _983=new _Zy();_783._9I2();_883._9I2();_783._lA(-_473,-_573,0.0);_883._pA(_X4);_983.Multiply(_783,_883);_783=new _Zy(_983);_883._9I2();_883._lA(_Q5,_R5,0.0);_983.Multiply(_783,_883);if(_s8||(!_u73&&!_v73))_783=_983;else {_883._mA(_u73?-1.0:1.0,_v73?-1.0:1.0,1.0);_783.Multiply(_883,_983);}}else {
_783=new _Zy();_783._lA(-_473+_Q5,-_573+_R5,0.0);}_Mc&=0xffffff;var _G4=(_A9*255.0)<<24;var _0d=_G4|_Mc;var _AY2=undefined;if(!_s8){__Z2(_783);_4a.globalAlpha=_A9;if(_Mc!=_O9){_AY2=_P9(_Fc,_Mc);}}var x,y;var _C73=[];var _D73=[];var _E73=[];var _F73=[];for(y=0;y<3;y++){for(x=0;x<3;x++){var index=(y*3)+x;if(_B73[index]==_T63)continue;_C73[0]=_Pz[x];_C73[1]=_Pz[x+1];_D73[0]=_Qz[y];_D73[1]=_Qz[y+1];_E73[0]=_Np2[x];_E73[1]=_Np2[x+1];_F73[0]=_aq2[y];_F73[1]=_aq2[y+1];if(_E73[1]<=_E73[0])continue;if(_F73[1]<=_F73[0])continue;
if(XOffset>_E73[1])continue;if(YOffset>_F73[1])continue;if(_B73[index]==_P63){if(XOffset>_E73[0]){var _G73=(XOffset-_E73[0])/(_E73[1]-_E73[0]);_C73[0]=_C73[0]+((_C73[1]-_C73[0])*_G73);if(_C73[0]>=_C73[1])continue;_E73[0]=XOffset;}if(YOffset>_F73[0]){var _Jt=YOffset-_F73[0];var _G73=(YOffset-_F73[0])/(_F73[1]-_F73[0]);_D73[0]=_D73[0]+((_D73[1]-_D73[0])*_G73);if(_D73[0]>=_D73[1])continue;_F73[0]=YOffset;}_E73[0]-=XOffset;_E73[1]-=XOffset;_F73[0]-=YOffset;_F73[1]-=YOffset;if(_E73[0]>CropWidth)continue;
if(_F73[0]>CropHeight)continue;if(_E73[1]>CropWidth){var _G73=(CropWidth-_E73[0])/(_E73[1]-_E73[0]);_C73[1]=_C73[0]+((_C73[1]-_C73[0])*_G73);if(_C73[0]>=_C73[1])continue;_E73[1]=CropWidth;}if(_F73[1]>CropHeight){var _G73=(CropHeight-_F73[0])/(_F73[1]-_F73[0]);_D73[1]=_D73[0]+((_D73[1]-_D73[0])*_G73);if(_D73[0]>=_D73[1])continue;_F73[1]=CropHeight;}for(i=0;i<2;i++){_E73[i]+=_m73;_F73[i]+=_n73;}var _H73=[];var _I73=[];_H73[0]=_H73[2]=(_C73[0]*_x73);_H73[1]=_H73[3]=(_C73[1]*_x73);_I73[0]=_I73[1]=(_D73[0]*_y73);
_I73[2]=_I73[3]=(_D73[1]*_y73);if(_s8){for(i=0;i<4;i++){_E73[i]/=_U8.width;_F73[i]/=_U8.height;}for(i=0;i<4;i++){var _a83,_b83;_a83=(_783._K6[_vA]*_H73[i])+(_783._K6[_wA]*_I73[i])+_783._K6[_yA];_b83=(_783._K6[_zA]*_H73[i])+(_783._K6[_qz]*_I73[i])+_783._K6[_BA];_H73[i]=_a83;_I73[i]=_b83;}var _683=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,6);var _La=_683._Ma()>>2;var bindex=_La*_683._Na;_683._Na+=6;var _Oa=_683._Pa;var _Qa=_683._Ra;var _Sa=_683._Ta;var _J73=[0,1,2,2,1,3];var _K73=[0,0,1,0,0,1,0,1,1,0,1,1];if(_w73){for(i=5;
i>=0;i--){_Oa[bindex+0]=_H73[_J73[i]];_Oa[bindex+1]=_I73[_J73[i]];_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_E73[_K73[i*2]];_Sa[bindex+1]=_F73[_K73[i*2+1]];bindex+=_La;}}else {for(i=0;i<6;i++){_Oa[bindex+0]=_H73[_J73[i]];_Oa[bindex+1]=_I73[_J73[i]];_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_E73[_K73[i*2]];_Sa[bindex+1]=_F73[_K73[i*2+1]];bindex+=_La;}}}else {if(_AY2!=undefined){_4a._rb1(_AY2,_E73[0]-_m73,_F73[0]-_n73,_E73[1]-_E73[0],_F73[1]-_F73[0],_H73[0],_I73[0],_H73[1]-_H73[0],_I73[2]-_I73[0]);
}else {_4a._rb1(_U8,_E73[0],_F73[0],_E73[1]-_E73[0],_F73[1]-_F73[0],_H73[0],_I73[0],_H73[1]-_H73[0],_I73[2]-_I73[0]);}}}else {var _L73=1;var _M73=1;if((_B73[index]==_Q63)||(_B73[index]==_R63))_L73=Math.ceil((_C73[1]-_C73[0])/(_E73[1]-_E73[0]));if((_B73[index]==_Q63)||(_B73[index]==_R63))_M73=Math.ceil((_D73[1]-_D73[0])/(_F73[1]-_F73[0]));var _N73,_O73;if(_B73[index]==_P63)_N73=_C73[1]-_C73[0];else _N73=_E73[1]-_E73[0];if(_B73[index]==_P63)_O73=_D73[1]-_D73[0];else _O73=_F73[1]-_F73[0];var _P73=[];var _Q73=[];
var _R73=[];var _S73=[];_P73[0]=0.0;_P73[1]=_N73;_Q73[0]=0.0;_Q73[1]=_O73;_R73[0]=_E73[0];_R73[1]=_E73[1];_S73[0]=_F73[0];_S73[1]=_F73[1];if(XOffset>_R73[0]){var _G73=(XOffset-_R73[0])/(_R73[1]-_R73[0]);_P73[0]=_P73[0]+((_P73[1]-_P73[0])*_G73);if(_P73[0]>=_P73[1])continue;_R73[0]=XOffset;}if(YOffset>_S73[0]){var _G73=(YOffset-_S73[0])/(_S73[1]-_S73[0]);_Q73[0]=_Q73[0]+((_Q73[1]-_Q73[0])*_G73);if(_Q73[0]>=_Q73[1])continue;_S73[0]=YOffset;}_R73[0]-=XOffset;_R73[1]-=XOffset;_S73[0]-=YOffset;_S73[1]-=YOffset;
if(_R73[0]>CropWidth)continue;if(_S73[0]>CropHeight)continue;if(_R73[1]>CropWidth){var _G73=(CropWidth-_R73[0])/(_R73[1]-_R73[0]);_P73[1]=_P73[0]+((_P73[1]-_P73[0])*_G73);if(_P73[0]>=_P73[1])continue;_R73[1]=CropWidth;}if(_S73[1]>CropHeight){var _G73=(CropHeight-_S73[0])/(_S73[1]-_S73[0]);_Q73[1]=_Q73[0]+((_Q73[1]-_Q73[0])*_G73);if(_Q73[0]>=_Q73[1])continue;_S73[1]=CropHeight;}var _T73;for(_T73=0;_T73<_M73;_T73++){var _KG=_D73[0]+(_O73*_T73);var _Ff2=[];var _U73=[];var _e83=false;if((_B73[index]==_R63)&&(_T73&1)){
_Ff2[0]=_O73-_Q73[1];_Ff2[1]=_O73-_Q73[0];_U73[0]=_S73[1];_U73[1]=_S73[0];_e83=true;}else {_Ff2[0]=_Q73[0];_Ff2[1]=_Q73[1];_U73[0]=_S73[0];_U73[1]=_S73[1];}_Ff2[0]+=_KG;_Ff2[1]+=_KG;if(_Ff2[1]>_D73[1]){var _G73=(_D73[1]-_Ff2[0])/(_Ff2[1]-_Ff2[0]);_U73[1]=_U73[0]+((_U73[1]-_U73[0])*_G73);_Ff2[1]=_D73[1];}for(i=0;i<2;i++){_U73[i]+=_n73;if(_s8){_U73[i]/=_U8.height;}}var _V73;for(_V73=0;_V73<_L73;_V73++){var _6j=_C73[0]+(_N73*_V73);var _Ef2=[];var _W73=[];var _f83=false;if((_B73[index]==_R63)&&(_V73&1)){_Ef2[0]=_N73-_P73[1];
_Ef2[1]=_N73-_P73[0];_W73[0]=_R73[1];_W73[1]=_R73[0];_f83=true;}else {_Ef2[0]=_P73[0];_Ef2[1]=_P73[1];_W73[0]=_R73[0];_W73[1]=_R73[1];}_Ef2[0]+=_6j;_Ef2[1]+=_6j;if(_Ef2[1]>_C73[1]){var _G73=(_C73[1]-_Ef2[0])/(_Ef2[1]-_Ef2[0]);_W73[1]=_W73[0]+((_W73[1]-_W73[0])*_G73);_Ef2[1]=_C73[1];}for(i=0;i<2;i++){_W73[i]+=_m73;if(_s8){_W73[i]/=_U8.width;}}var _H73=[];var _I73=[];_H73[0]=_H73[2]=(_Ef2[0]*_x73);_H73[1]=_H73[3]=(_Ef2[1]*_x73);_I73[0]=_I73[1]=(_Ff2[0]*_y73);_I73[2]=_I73[3]=(_Ff2[1]*_y73);if(_s8){for(i=0;
i<4;i++){var _a83,_b83;_a83=(_783._K6[_vA]*_H73[i])+(_783._K6[_wA]*_I73[i])+_783._K6[_yA];_b83=(_783._K6[_zA]*_H73[i])+(_783._K6[_qz]*_I73[i])+_783._K6[_BA];_H73[i]=_a83;_I73[i]=_b83;}var _683=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,6);var _La=_683._Ma()>>2;var bindex=_La*_683._Na;_683._Na+=6;var _Oa=_683._Pa;var _Qa=_683._Ra;var _Sa=_683._Ta;var _J73=[0,1,2,2,1,3];var _K73=[0,0,1,0,0,1,0,1,1,0,1,1];if(_w73){for(i=5;i>=0;i--){_Oa[bindex+0]=_H73[_J73[i]];_Oa[bindex+1]=_I73[_J73[i]];_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;
_Sa[bindex+0]=_W73[_K73[i*2]];_Sa[bindex+1]=_U73[_K73[i*2+1]];bindex+=_La;}}else {for(i=0;i<6;i++){_Oa[bindex+0]=_H73[_J73[i]];_Oa[bindex+1]=_I73[_J73[i]];_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_W73[_K73[i*2]];_Sa[bindex+1]=_U73[_K73[i*2+1]];bindex+=_La;}}}else {if(_f83||_e83){_4a._a_2(_f83?-1.0:1.0,0.0,0.0,_e83?-1.0:1.0,_f83?_H73[1]:_H73[0],_e83?_I73[2]:_I73[0]);if(_AY2!=undefined){_4a._rb1(_AY2,_W73[0]-_m73,_U73[0]-_n73,_W73[1]-_W73[0],_U73[1]-_U73[0],0.0,0.0,_H73[1]-_H73[0],_I73[2]-_I73[0]);
}else {_4a._rb1(_U8,_W73[0],_U73[0],_W73[1]-_W73[0],_U73[1]-_U73[0],0.0,0.0,_H73[1]-_H73[0],_I73[2]-_I73[0]);}_MY2();__Z2(_783);}else {if(_AY2!=undefined){_4a._rb1(_AY2,_W73[0]-_m73,_U73[0]-_n73,_W73[1]-_W73[0],_U73[1]-_U73[0],_H73[0],_I73[0],_H73[1]-_H73[0],_I73[2]-_I73[0]);}else {_4a._rb1(_U8,_W73[0],_U73[0],_W73[1]-_W73[0],_U73[1]-_U73[0],_H73[0],_I73[0],_H73[1]-_H73[0],_I73[2]-_I73[0]);}}}}}}}}if(!_s8){_MY2();}};_ac1.prototype._a9=function(_Q5,_R5,_A8,_B8,_X4,_Mc,_A9,_S4,_P3,_Y73){if(_Y73==undefined)_Y73=false;
var _3F=_P3;if(_3F!=null){if(_3F._T6<=0)return;_S4=(~~_S4)%_3F._T6;if(_S4<0)_S4=_S4+_3F._T6;_Mc=_Nc(_Mc);var i;var _g83=0;var _h83=false;for(i=0;i<__63;i++){_g83|=this._173[i];}if((_g83!=_P63)){this._c83(_Q5,_R5,_A8,_B8,_X4,_Mc,_A9,_S4,_3F,_Y73);return;}var _Np2=[];var _aq2=[];var XOffset=0.0;var YOffset=0.0;var CropWidth=_3F.width;var CropHeight=_3F.height;var _m73=0;var _n73=0;var _Fc=_3F._05[_S4];var _U8=_Fc._95;if(!_U8.complete)return;if(_s8)if(!_U8._Ba)_Ca(_Fc);XOffset=_Fc.XOffset;YOffset=_Fc.YOffset;CropWidth=_Fc.CropWidth;
CropHeight=_Fc.CropHeight;_m73=_Fc.x;_n73=_Fc.y;var _o73=this.left;var _p73=(_3F.width-this.right)-this.left;var _q73=this.right;var _r73=this.top;var _s73=(_3F.height-this.bottom)-this.top;var _t73=this.bottom;var _u73=(_A8<0)?1:0;var _v73=(_B8<0)?1:0;var _w73=(_u73^_v73)?true:false;var _x73=1.0;var _y73=1.0;if(_u73){_A8=-_A8;if(_s8){_x73=-1.0;}}if(_v73){_B8=-_B8;if(_s8){_y73=-1.0;}}var _z73=(_A8-_o73-_q73)/_p73;var _A73=(_B8-_r73-_t73)/_s73;if(_A8<_o73){_o73=_A8;_q73=0.0;_z73=0.0;}else if(_A8<(_o73+_q73)){_q73=(_A8-_o73);
_z73=0.0;}if(_B8<_r73){_r73=_B8;_t73=0.0;_A73=0.0;}else if(_B8<(_r73+_t73)){_t73=(_B8-_r73);_A73=0.0;}var _Pz=[];var _Qz=[];_Pz[0]=0.0;_Pz[1]=_o73;_Pz[2]=_Pz[1]+_p73;_Pz[3]=_Pz[2]+_q73;_Qz[0]=0.0;_Qz[1]=_r73;_Qz[2]=_Qz[1]+_s73;_Qz[3]=_Qz[2]+_t73;var _473;var _573;var xorigin;var yorigin;if(_Y73){xorigin=0;yorigin=0;}else {xorigin=_3F.xOrigin;yorigin=_3F.yOrigin;}_473=xorigin*(_A8/_3F.width);_573=yorigin*(_B8/_3F.height);_473*=_x73;_573*=_y73;if(XOffset>0){for(i=0;i<4;i++){if(_Pz[i]<XOffset){_Pz[i]=XOffset;
}}}if(YOffset>0){for(i=0;i<4;i++){if(_Qz[i]<YOffset){_Qz[i]=YOffset;}}}if(_3F.width>(XOffset+CropWidth)){var _i83=XOffset+CropWidth;for(i=0;i<4;i++){if(_Pz[i]>_i83){_Pz[i]=_i83;}}}if(_3F.height>(YOffset+CropHeight)){var _i83=YOffset+CropHeight;for(i=0;i<4;i++){if(_Qz[i]>_i83){_Qz[i]=_i83;}}}for(i=0;i<4;i++){_Np2[i]=_Pz[i]-XOffset;_aq2[i]=_Qz[i]-YOffset;_Np2[i]+=_m73;_aq2[i]+=_n73;}var _Jt=_Pz[3]-_Pz[2];_Pz[2]=_Pz[1]+((_Pz[2]-_Pz[1])*_z73);_Pz[3]=_Pz[2]+_Jt;_Jt=_Qz[3]-_Qz[2];_Qz[2]=_Qz[1]+((_Qz[2]-_Qz[1])*_A73);
_Qz[3]=_Qz[2]+_Jt;var _H73=[];var _I73=[];_H73[0]=_H73[4]=_H73[8]=_H73[12]=(_Pz[0]*_x73);_H73[1]=_H73[5]=_H73[9]=_H73[13]=(_Pz[1]*_x73);_H73[2]=_H73[6]=_H73[10]=_H73[14]=(_Pz[2]*_x73);_H73[3]=_H73[7]=_H73[11]=_H73[15]=(_Pz[3]*_x73);_I73[0]=_I73[1]=_I73[2]=_I73[3]=(_Qz[0]*_y73);_I73[4]=_I73[5]=_I73[6]=_I73[7]=(_Qz[1]*_y73);_I73[8]=_I73[9]=_I73[10]=_I73[11]=(_Qz[2]*_y73);_I73[12]=_I73[13]=_I73[14]=_I73[15]=(_Qz[3]*_y73);var _783=undefined;if((_X4!=0.0)||(!_s8&&(_u73||_v73))){_783=new _Zy();var _883=new _Zy();
var _983=new _Zy();_783._9I2();_883._9I2();_783._lA(-_473,-_573,0.0);_883._pA(_X4);_983.Multiply(_783,_883);_783=new _Zy(_983);_883._9I2();_883._lA(_Q5,_R5,0.0);_983.Multiply(_783,_883);if(_s8||(!_u73&&!_v73))_783=_983;else {_883._mA(_u73?-1.0:1.0,_v73?-1.0:1.0,1.0);_783.Multiply(_883,_983);}}else {var _383=-_473+_Q5;var _483=-_573+_R5;for(i=0;i<16;i++){var _a83,_b83;_a83=_H73[i]+_383;_b83=_I73[i]+_483;_H73[i]=_a83;_I73[i]=_b83;}}if(_s8){for(i=0;i<4;i++){_Np2[i]/=_U8.width;_aq2[i]/=_U8.height;}if(_X4!=0.0){
for(i=0;i<16;i++){var _a83,_b83;_a83=(_783._K6[_vA]*_H73[i])+(_783._K6[_wA]*_I73[i])+_783._K6[_yA];_b83=(_783._K6[_zA]*_H73[i])+(_783._K6[_qz]*_I73[i])+_783._K6[_BA];_H73[i]=_a83;_I73[i]=_b83;}}var _683=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,54);var _La=_683._Ma()>>2;var bindex=_La*_683._Na;_683._Na+=54;var _Oa=_683._Pa;var _Qa=_683._Ra;var _Sa=_683._Ta;var _G4=(_A9*255.0)<<24;var _0d=_G4|(_Mc&0xffffff);var _J73=[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 _K73=[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(_w73){for(i=53;i>=0;i--){_Oa[bindex+0]=_H73[_J73[i]];_Oa[bindex+1]=_I73[_J73[i]];_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_Np2[_K73[i*2]];_Sa[bindex+1]=_aq2[_K73[i*2+1]];bindex+=_La;}}else {for(i=0;i<54;i++){_Oa[bindex+0]=_H73[_J73[i]];_Oa[bindex+1]=_I73[_J73[i]];
_Oa[bindex+2]=_Va;_Qa[bindex]=_0d;_Sa[bindex+0]=_Np2[_K73[i*2]];_Sa[bindex+1]=_aq2[_K73[i*2+1]];bindex+=_La;}}}else {_4a.globalAlpha=_A9;if(_Mc!=_O9){var _AY2=_P9(_Fc,_Mc);if(_783!=undefined){__Z2(_783);}var _j83,_k83;for(_k83=0;_k83<3;_k83++){for(_j83=0;_j83<3;_j83++){_4a._rb1(_AY2,_Np2[_j83]-_m73,_aq2[_k83]-_n73,_Np2[_j83+1]-_Np2[_j83],_aq2[_k83+1]-_aq2[_k83],_H73[_j83],_I73[_k83*4],_H73[_j83+1]-_H73[_j83],_I73[_k83*4+4]-_I73[_k83*4]);}}if(_783!=undefined){_MY2();}}else {if(_783!=undefined){__Z2(_783);
}var _j83,_k83;for(_k83=0;_k83<3;_k83++){for(_j83=0;_j83<3;_j83++){_4a._rb1(_U8,_Np2[_j83],_aq2[_k83],_Np2[_j83+1]-_Np2[_j83],_aq2[_k83+1]-_aq2[_k83],_H73[_j83],_I73[_k83*4],_H73[_j83+1]-_H73[_j83],_I73[_k83*4+4]-_I73[_k83*4]);}}if(_783!=undefined){_MY2();}}}}};var _F23=0,_H23=1,_I23=2;function _l83(){this._m83=null;this._n83=0;this._o83=null;}function _p83(){this._m83=null;this._q83=false;this._tl=null;}function _r83(){this.physicsObject=false;}function _P62(_s83,_b4){this.__type="[Object]";this._Ag=0;
this._bO=_s83;this._2F=_b4;this._0_=-1;this._ZN=0;this._ZZ=0;this._WZ=false;this._XZ=false;this.__Z=false;this._9O=0;this._fE=null;this._t83=-1;this._lH2=false;this._ou2=new _sk();this._q43=new _sk();this._ou2._tk=true;this._q43._tk=true;this._u83=[];for(var _G4=0;_G4<_Du2;_G4++){this._u83[_G4]=null;}this._v83=[];this._w83=[];this._x83=[];this._nH2=[];this.Triggers=[];this.Event=[];this._It2=[];this._1_=new _r83();}_P62.prototype._BX=function(){return this._ou2._Kk;};_P62.prototype._W01=function(){return this._q43._Kk;
};function _wH2(_y83,_z83){var _IF=new _P62(_y83,_z83.pName);{if(_z83.spriteIndex!=undefined)_IF._ZN=_z83.spriteIndex;if(_z83.visible!=undefined)_IF._XZ=_z83.visible;if(_z83.solid!=undefined)_IF._WZ=_z83.solid;if(_z83.depth!=undefined)_IF._ZZ=_z83.depth;if(_z83.persistent!=undefined)_IF.__Z=_z83.persistent;if(_z83.parent!=undefined)_IF._9O=_z83.parent;if(_z83.spritemask!=undefined)_IF._0_=_z83.spritemask;if(_z83.PreCreateEvent){_IF.PreCreateEvent=_z83.PreCreateEvent;_IF.Event[_Vm]=true;}if(_z83.CreateEvent){
_IF.CreateEvent=_z83.CreateEvent;_IF.Event[_Wm]=true;}if(_z83.DestroyEvent){_IF.DestroyEvent=_z83.DestroyEvent;_IF.Event[_WN]=true;}if(_z83.CleanUpEvent){_IF.CleanUpEvent=_z83.CleanUpEvent;_IF.Event[_FN]=true;}if(_z83.StepBeginEvent){_IF.StepBeginEvent=_z83.StepBeginEvent;_IF.Event[_Yu2]=true;}if(_z83.StepNormalEvent){_IF.StepNormalEvent=_z83.StepNormalEvent;_IF.Event[__u2]=true;}if(_z83.StepEndEvent){_IF.StepEndEvent=_z83.StepEndEvent;_IF.Event[_1v2]=true;}if(_z83.DrawEvent){_IF.DrawEvent=_z83.DrawEvent;
_IF.Event[_yx2]=true;}if(_z83.DrawGUI){_IF.DrawGUI=_z83.DrawGUI;_IF.Event[_rz2]=true;}if(_z83.DrawEventBegin){_IF.DrawEventBegin=_z83.DrawEventBegin;_IF.Event[_tz2]=true;}if(_z83.DrawEventEnd){_IF.DrawEventEnd=_z83.DrawEventEnd;_IF.Event[_uz2]=true;}if(_z83.DrawGUIBegin){_IF.DrawGUIBegin=_z83.DrawGUIBegin;_IF.Event[_vz2]=true;}if(_z83.DrawGUIEnd){_IF.DrawGUIEnd=_z83.DrawGUIEnd;_IF.Event[_wz2]=true;}if(_z83.DrawPre){_IF.DrawPre=_z83.DrawPre;_IF.Event[_xz2]=true;}if(_z83.DrawPost){_IF.DrawPost=_z83.DrawPost;
_IF.Event[_yz2]=true;}if(_z83.DrawResize){_IF.DrawResize=_z83.DrawResize;_IF.Event[_sz2]=true;}if(_z83.NoButtonPressed){_IF.NoButtonPressed=_z83.NoButtonPressed;_IF.Event[_ju2]=true;}if(_z83.LeftButtonDown){_IF.LeftButtonDown=_z83.LeftButtonDown;_IF.Event[_au2]=true;}if(_z83.RightButtonDown){_IF.RightButtonDown=_z83.RightButtonDown;_IF.Event[_cu2]=true;}if(_z83.MiddleButtonDown){_IF.MiddleButtonDown=_z83.MiddleButtonDown;_IF.Event[_bu2]=true;}if(_z83.LeftButtonPressed){_IF.LeftButtonPressed=_z83.LeftButtonPressed;
_IF.Event[_du2]=true;}if(_z83.RightButtonPressed){_IF.RightButtonPressed=_z83.RightButtonPressed;_IF.Event[_fu2]=true;}if(_z83.MiddleButtonPressed){_IF.MiddleButtonPressed=_z83.MiddleButtonPressed;_IF.Event[_eu2]=true;}if(_z83.LeftButtonReleased){_IF.LeftButtonReleased=_z83.LeftButtonReleased;_IF.Event[_gu2]=true;}if(_z83.RightButtonReleased){_IF.RightButtonReleased=_z83.RightButtonReleased;_IF.Event[_iu2]=true;}if(_z83.MiddleButtonReleased){_IF.MiddleButtonReleased=_z83.MiddleButtonReleased;_IF.Event[_hu2]=true;
}if(_z83.MouseWheelUp){_IF.MouseWheelUp=_z83.MouseWheelUp;_IF.Event[_mu2]=true;}if(_z83.MouseWheelDown){_IF.MouseWheelDown=_z83.MouseWheelDown;_IF.Event[_nu2]=true;}if(_z83.GlobalLeftButtonDown){_IF.GlobalLeftButtonDown=_z83.GlobalLeftButtonDown;_IF.Event[_su2]=true;}if(_z83.GlobalRightButtonDown){_IF.GlobalRightButtonDown=_z83.GlobalRightButtonDown;_IF.Event[_Gv2]=true;}if(_z83.GlobalMiddleButtonDown){_IF.GlobalMiddleButtonDown=_z83.GlobalMiddleButtonDown;_IF.Event[_Iv2]=true;}if(_z83.GlobalLeftButtonPressed){
_IF.GlobalLeftButtonPressed=_z83.GlobalLeftButtonPressed;_IF.Event[_tu2]=true;}if(_z83.GlobalRightButtonPressed){_IF.GlobalRightButtonPressed=_z83.GlobalRightButtonPressed;_IF.Event[_Lv2]=true;}if(_z83.GlobalMiddleButtonPressed){_IF.GlobalMiddleButtonPressed=_z83.GlobalMiddleButtonPressed;_IF.Event[_Nv2]=true;}if(_z83.GlobalLeftButtonReleased){_IF.GlobalLeftButtonReleased=_z83.GlobalLeftButtonReleased;_IF.Event[_uu2]=true;}if(_z83.GlobalRightButtonReleased){_IF.GlobalRightButtonReleased=_z83.GlobalRightButtonReleased;
_IF.Event[_Qv2]=true;}if(_z83.GlobalMiddleButtonReleased){_IF.GlobalMiddleButtonReleased=_z83.GlobalMiddleButtonReleased;_IF.Event[_Sv2]=true;}if(_z83.MouseEnter){_IF.MouseEnter=_z83.MouseEnter;_IF.Event[_ku2]=true;}if(_z83.MouseLeave){_IF.MouseLeave=_z83.MouseLeave;_IF.Event[_lu2]=true;}if(_z83.GestureTapEvent){_IF.GestureTapEvent=_z83.GestureTapEvent;_IF.Event[_Jx2]=true;}if(_z83.GestureDoubleTapEvent){_IF.GestureDoubleTapEvent=_z83.GestureDoubleTapEvent;_IF.Event[_Lx2]=true;}if(_z83.GestureDragStartEvent){
_IF.GestureDragStartEvent=_z83.GestureDragStartEvent;_IF.Event[_Nx2]=true;}if(_z83.GestureDragMoveEvent){_IF.GestureDragMoveEvent=_z83.GestureDragMoveEvent;_IF.Event[_Px2]=true;}if(_z83.GestureDragEndEvent){_IF.GestureDragEndEvent=_z83.GestureDragEndEvent;_IF.Event[_Rx2]=true;}if(_z83.GestureFlickEvent){_IF.GestureFlickEvent=_z83.GestureFlickEvent;_IF.Event[_Tx2]=true;}if(_z83.GestureGlobalTapEvent){_IF.GestureGlobalTapEvent=_z83.GestureGlobalTapEvent;_IF.Event[_8y2]=true;}if(_z83.GestureGlobalDoubleTapEvent){
_IF.GestureGlobalDoubleTapEvent=_z83.GestureGlobalDoubleTapEvent;_IF.Event[_ay2]=true;}if(_z83.GestureGlobalDragStartEvent){_IF.GestureGlobalDragStartEvent=_z83.GestureGlobalDragStartEvent;_IF.Event[_cy2]=true;}if(_z83.GestureGlobalDragMoveEvent){_IF.GestureGlobalDragMoveEvent=_z83.GestureGlobalDragMoveEvent;_IF.Event[_ey2]=true;}if(_z83.GestureGlobalDragEndEvent){_IF.GestureGlobalDragEndEvent=_z83.GestureGlobalDragEndEvent;_IF.Event[_gy2]=true;}if(_z83.GestureGlobalFlickEvent){_IF.GestureGlobalFlickEvent=_z83.GestureGlobalFlickEvent;
_IF.Event[_iy2]=true;}if(_z83.OutsideEvent){_IF.OutsideEvent=_z83.OutsideEvent;_IF.Event[_Jt2]=true;}if(_z83.BoundaryEvent){_IF.BoundaryEvent=_z83.BoundaryEvent;_IF.Event[_Lt2]=true;}if(_z83.StartGameEvent){_IF.StartGameEvent=_z83.StartGameEvent;_IF.Event[_Yv2]=true;}if(_z83.EndGameEvent){_IF.EndGameEvent=_z83.EndGameEvent;_IF.Event[__v2]=true;}if(_z83.StartRoomEvent){_IF.StartRoomEvent=_z83.StartRoomEvent;_IF.Event[_1w2]=true;}if(_z83.EndRoomEvent){_IF.EndRoomEvent=_z83.EndRoomEvent;_IF.Event[_3w2]=true;
}if(_z83.NoLivesEvent){_IF.NoLivesEvent=_z83.NoLivesEvent;_IF.Event[_yn]=true;}if(_z83.AnimationEndEvent){_IF.AnimationEndEvent=_z83.AnimationEndEvent;_IF.Event[_6w2]=true;}if(_z83.EndOfPathEvent){_IF.EndOfPathEvent=_z83.EndOfPathEvent;_IF.Event[_w62]=true;}if(_z83.NoHealthEvent){_IF.NoHealthEvent=_z83.NoHealthEvent;_IF.Event[_Jn]=true;}if(_z83.CloseButtonEvent){_IF.CloseButtonEvent=_z83.CloseButtonEvent;_IF.Event[_aw2]=true;}if(_z83.OutsideView0Event){_IF.OutsideView0Event=_z83.OutsideView0Event;
_IF.Event[_Rt2]=true;}if(_z83.OutsideView1Event){_IF.OutsideView1Event=_z83.OutsideView1Event;_IF.Event[_dw2]=true;}if(_z83.OutsideView2Event){_IF.OutsideView2Event=_z83.OutsideView2Event;_IF.Event[_fw2]=true;}if(_z83.OutsideView3Event){_IF.OutsideView3Event=_z83.OutsideView3Event;_IF.Event[_hw2]=true;}if(_z83.OutsideView4Event){_IF.OutsideView4Event=_z83.OutsideView4Event;_IF.Event[_jw2]=true;}if(_z83.OutsideView5Event){_IF.OutsideView5Event=_z83.OutsideView5Event;_IF.Event[_lw2]=true;}if(_z83.OutsideView6Event){
_IF.OutsideView6Event=_z83.OutsideView6Event;_IF.Event[_nw2]=true;}if(_z83.OutsideView7Event){_IF.OutsideView7Event=_z83.OutsideView7Event;_IF.Event[_pw2]=true;}if(_z83.BoundaryView0Event){_IF.BoundaryView0Event=_z83.BoundaryView0Event;_IF.Event[_St2]=true;}if(_z83.BoundaryView1Event){_IF.BoundaryView1Event=_z83.BoundaryView1Event;_IF.Event[_sw2]=true;}if(_z83.BoundaryView2Event){_IF.BoundaryView2Event=_z83.BoundaryView2Event;_IF.Event[_uw2]=true;}if(_z83.BoundaryView3Event){_IF.BoundaryView3Event=_z83.BoundaryView3Event;
_IF.Event[_ww2]=true;}if(_z83.BoundaryView4Event){_IF.BoundaryView4Event=_z83.BoundaryView4Event;_IF.Event[_yw2]=true;}if(_z83.BoundaryView5Event){_IF.BoundaryView5Event=_z83.BoundaryView5Event;_IF.Event[_Aw2]=true;}if(_z83.BoundaryView6Event){_IF.BoundaryView6Event=_z83.BoundaryView6Event;_IF.Event[_Cw2]=true;}if(_z83.BoundaryView7Event){_IF.BoundaryView7Event=_z83.BoundaryView7Event;_IF.Event[_Ew2]=true;}if(_z83.AnimationUpdateEvent){_IF.AnimationUpdateEvent=_z83.AnimationUpdateEvent;_IF.Event[_c6]=true;
}if(_z83.UserEvent0){_IF.UserEvent0=_z83.UserEvent0;_IF.Event[_Fw2]=true;}if(_z83.UserEvent1){_IF.UserEvent1=_z83.UserEvent1;_IF.Event[_Hw2]=true;}if(_z83.UserEvent2){_IF.UserEvent2=_z83.UserEvent2;_IF.Event[_Jw2]=true;}if(_z83.UserEvent3){_IF.UserEvent3=_z83.UserEvent3;_IF.Event[_Lw2]=true;}if(_z83.UserEvent4){_IF.UserEvent4=_z83.UserEvent4;_IF.Event[_Nw2]=true;}if(_z83.UserEvent5){_IF.UserEvent5=_z83.UserEvent5;_IF.Event[_Pw2]=true;}if(_z83.UserEvent6){_IF.UserEvent6=_z83.UserEvent6;_IF.Event[_Rw2]=true;
}if(_z83.UserEvent7){_IF.UserEvent7=_z83.UserEvent7;_IF.Event[_Tw2]=true;}if(_z83.UserEvent8){_IF.UserEvent8=_z83.UserEvent8;_IF.Event[_Vw2]=true;}if(_z83.UserEvent9){_IF.UserEvent9=_z83.UserEvent9;_IF.Event[_Xw2]=true;}if(_z83.UserEvent10){_IF.UserEvent10=_z83.UserEvent10;_IF.Event[_Zw2]=true;}if(_z83.UserEvent11){_IF.UserEvent11=_z83.UserEvent11;_IF.Event[_0x2]=true;}if(_z83.UserEvent12){_IF.UserEvent12=_z83.UserEvent12;_IF.Event[_2x2]=true;}if(_z83.UserEvent13){_IF.UserEvent13=_z83.UserEvent13;
_IF.Event[_4x2]=true;}if(_z83.UserEvent14){_IF.UserEvent14=_z83.UserEvent14;_IF.Event[_6x2]=true;}if(_z83.UserEvent15){_IF.UserEvent15=_z83.UserEvent15;_IF.Event[_8x2]=true;}if(_z83.WebImageLoadedEvent){_IF.WebImageLoadedEvent=_z83.WebImageLoadedEvent;_IF.Event[_cx2]=true;}if(_z83.WebSoundLoadedEvent){_IF.WebSoundLoadedEvent=_z83.WebSoundLoadedEvent;_IF.Event[_ex2]=true;}if(_z83.WebAsyncEvent){_IF.WebAsyncEvent=_z83.WebAsyncEvent;_IF.Event[_gx2]=true;}if(_z83.WebUserInteractionEvent){_IF.WebUserInteractionEvent=_z83.WebUserInteractionEvent;
_IF.Event[_ix2]=true;}if(_z83.WebIAPEvent){_IF.WebIAPEvent=_z83.WebIAPEvent;_IF.Event[_kx2]=true;}if(_z83.SocialEvent){_IF.SocialEvent=_z83.SocialEvent;_IF.Event[_ox2]=true;}if(_z83.PushNotificationEvent){_IF.PushNotificationEvent=_z83.PushNotificationEvent;_IF.Event[_qx2]=true;}if(_z83.AsyncSaveLoadEvent){_IF.AsyncSaveLoadEvent=_z83.AsyncSaveLoadEvent;_IF.Event[_G91]=true;}if(_z83.NetworkingEvent){_IF.NetworkingEvent=_z83.NetworkingEvent;_IF.Event[_mx2]=true;}if(_z83.AudioPlaybackEvent){_IF.AudioPlaybackEvent=_z83.AudioPlaybackEvent;
_IF.Event[_tx2]=true;}if(_z83.AudioRecordingEvent){_IF.AudioRecordingEvent=_z83.AudioRecordingEvent;_IF.Event[_Ea1]=true;}if(_z83.AnimationEventEvent){_IF.AnimationEventEvent=_z83.AnimationEventEvent;_IF.Event[_J3]=true;}if(_z83.SystemEvent){_IF.SystemEvent=_z83.SystemEvent;_IF.Event[_m71]=true;}if(_z83.BroadcastMessageEvent){_IF.BroadcastMessageEvent=_z83.BroadcastMessageEvent;_IF.Event[_wx2]=true;}if(_z83.ObjAlarm0){_IF._u83[0]=_z83.ObjAlarm0;_IF.Event[_Ku2]=true;}if(_z83.ObjAlarm1){_IF._u83[1]=_z83.ObjAlarm1;
_IF.Event[_Lu2]=true;}if(_z83.ObjAlarm2){_IF._u83[2]=_z83.ObjAlarm2;_IF.Event[_Mu2]=true;}if(_z83.ObjAlarm3){_IF._u83[3]=_z83.ObjAlarm3;_IF.Event[_Nu2]=true;}if(_z83.ObjAlarm4){_IF._u83[4]=_z83.ObjAlarm4;_IF.Event[_Ou2]=true;}if(_z83.ObjAlarm5){_IF._u83[5]=_z83.ObjAlarm5;_IF.Event[_Pu2]=true;}if(_z83.ObjAlarm6){_IF._u83[6]=_z83.ObjAlarm6;_IF.Event[_Qu2]=true;}if(_z83.ObjAlarm7){_IF._u83[7]=_z83.ObjAlarm7;_IF.Event[_Ru2]=true;}if(_z83.ObjAlarm8){_IF._u83[8]=_z83.ObjAlarm8;_IF.Event[_Su2]=true;}if(_z83.ObjAlarm9){
_IF._u83[9]=_z83.ObjAlarm9;_IF.Event[_Tu2]=true;}if(_z83.ObjAlarm10){_IF._u83[10]=_z83.ObjAlarm10;_IF.Event[_Uu2]=true;}if(_z83.ObjAlarm11){_IF._u83[11]=_z83.ObjAlarm11;_IF.Event[_Vu2]=true;}if(_z83.KeyPressed_NOKEY){_IF._w83[_Rz2]=_z83.KeyPressed_NOKEY;_IF.Event[_Rz2]=true;}if(_z83.KeyPressed_ANYKEY){_IF._w83[_Tz2]=_z83.KeyPressed_ANYKEY;_IF.Event[_Tz2]=true;}if(_z83.KeyPressed_BACKSPACE){_IF._w83[_Uz2]=_z83.KeyPressed_BACKSPACE;_IF.Event[_Uz2]=true;}if(_z83.KeyPressed_TAB){_IF._w83[_Vz2]=_z83.KeyPressed_TAB;
_IF.Event[_Vz2]=true;}if(_z83.KeyPressed_ENTER){_IF._w83[_Wz2]=_z83.KeyPressed_ENTER;_IF.Event[_Wz2]=true;}if(_z83.KeyPressed_SHIFT){_IF._w83[_Xz2]=_z83.KeyPressed_SHIFT;_IF.Event[_Xz2]=true;}if(_z83.KeyPressed_CTRL){_IF._w83[_Yz2]=_z83.KeyPressed_CTRL;_IF.Event[_Yz2]=true;}if(_z83.KeyPressed_ALT){_IF._w83[_Zz2]=_z83.KeyPressed_ALT;_IF.Event[_Zz2]=true;}if(_z83.KeyPressed_PAUSE){_IF._w83[__z2]=_z83.KeyPressed_PAUSE;_IF.Event[__z2]=true;}if(_z83.KeyPressed_ESCAPE){_IF._w83[_0A2]=_z83.KeyPressed_ESCAPE;
_IF.Event[_0A2]=true;}if(_z83.KeyPressed_SPACE){_IF._w83[_1A2]=_z83.KeyPressed_SPACE;_IF.Event[_1A2]=true;}if(_z83.KeyPressed_PAGEUP){_IF._w83[_2A2]=_z83.KeyPressed_PAGEUP;_IF.Event[_2A2]=true;}if(_z83.KeyPressed_PAGEDOWN){_IF._w83[_3A2]=_z83.KeyPressed_PAGEDOWN;_IF.Event[_3A2]=true;}if(_z83.KeyPressed_END){_IF._w83[_4A2]=_z83.KeyPressed_END;_IF.Event[_4A2]=true;}if(_z83.KeyPressed_HOME){_IF._w83[_5A2]=_z83.KeyPressed_HOME;_IF.Event[_5A2]=true;}if(_z83.KeyPressed_LEFT){_IF._w83[_6A2]=_z83.KeyPressed_LEFT;
_IF.Event[_6A2]=true;}if(_z83.KeyPressed_UP){_IF._w83[_7A2]=_z83.KeyPressed_UP;_IF.Event[_7A2]=true;}if(_z83.KeyPressed_RIGHT){_IF._w83[_8A2]=_z83.KeyPressed_RIGHT;_IF.Event[_8A2]=true;}if(_z83.KeyPressed_DOWN){_IF._w83[_9A2]=_z83.KeyPressed_DOWN;_IF.Event[_9A2]=true;}if(_z83.KeyPressed_INSERT){_IF._w83[_aA2]=_z83.KeyPressed_INSERT;_IF.Event[_aA2]=true;}if(_z83.KeyPressed_DELETE){_IF._w83[_bA2]=_z83.KeyPressed_DELETE;_IF.Event[_bA2]=true;}if(_z83.KeyPressed_0){_IF._w83[_cA2]=(_z83.KeyPressed_0);
_IF.Event[_cA2]=true;}if(_z83.KeyPressed_1){_IF._w83[_dA2]=(_z83.KeyPressed_1);_IF.Event[_dA2]=true;}if(_z83.KeyPressed_2){_IF._w83[_eA2]=(_z83.KeyPressed_2);_IF.Event[_eA2]=true;}if(_z83.KeyPressed_3){_IF._w83[_fA2]=(_z83.KeyPressed_3);_IF.Event[_fA2]=true;}if(_z83.KeyPressed_4){_IF._w83[_gA2]=(_z83.KeyPressed_4);_IF.Event[_gA2]=true;}if(_z83.KeyPressed_5){_IF._w83[_hA2]=(_z83.KeyPressed_5);_IF.Event[_hA2]=true;}if(_z83.KeyPressed_6){_IF._w83[_iA2]=(_z83.KeyPressed_6);_IF.Event[_iA2]=true;}if(_z83.KeyPressed_7){
_IF._w83[_jA2]=(_z83.KeyPressed_7);_IF.Event[_jA2]=true;}if(_z83.KeyPressed_8){_IF._w83[_kA2]=(_z83.KeyPressed_8);_IF.Event[_kA2]=true;}if(_z83.KeyPressed_9){_IF._w83[_lA2]=(_z83.KeyPressed_9);_IF.Event[_lA2]=true;}if(_z83.KeyPressed_A){_IF._w83[_mA2]=(_z83.KeyPressed_A);_IF.Event[_mA2]=true;}if(_z83.KeyPressed_B){_IF._w83[_nA2]=(_z83.KeyPressed_B);_IF.Event[_nA2]=true;}if(_z83.KeyPressed_C){_IF._w83[_oA2]=(_z83.KeyPressed_C);_IF.Event[_oA2]=true;}if(_z83.KeyPressed_D){_IF._w83[_pA2]=(_z83.KeyPressed_D);
_IF.Event[_pA2]=true;}if(_z83.KeyPressed_E){_IF._w83[_qA2]=(_z83.KeyPressed_E);_IF.Event[_qA2]=true;}if(_z83.KeyPressed_F){_IF._w83[_rA2]=(_z83.KeyPressed_F);_IF.Event[_rA2]=true;}if(_z83.KeyPressed_G){_IF._w83[_sA2]=(_z83.KeyPressed_G);_IF.Event[_sA2]=true;}if(_z83.KeyPressed_H){_IF._w83[_tA2]=(_z83.KeyPressed_H);_IF.Event[_tA2]=true;}if(_z83.KeyPressed_I){_IF._w83[_uA2]=(_z83.KeyPressed_I);_IF.Event[_uA2]=true;}if(_z83.KeyPressed_J){_IF._w83[_vA2]=(_z83.KeyPressed_J);_IF.Event[_vA2]=true;}if(_z83.KeyPressed_K){
_IF._w83[_wA2]=(_z83.KeyPressed_K);_IF.Event[_wA2]=true;}if(_z83.KeyPressed_L){_IF._w83[_xA2]=(_z83.KeyPressed_L);_IF.Event[_xA2]=true;}if(_z83.KeyPressed_M){_IF._w83[_yA2]=(_z83.KeyPressed_M);_IF.Event[_yA2]=true;}if(_z83.KeyPressed_N){_IF._w83[_zA2]=(_z83.KeyPressed_N);_IF.Event[_zA2]=true;}if(_z83.KeyPressed_O){_IF._w83[_AA2]=(_z83.KeyPressed_O);_IF.Event[_AA2]=true;}if(_z83.KeyPressed_P){_IF._w83[_BA2]=(_z83.KeyPressed_P);_IF.Event[_BA2]=true;}if(_z83.KeyPressed_Q){_IF._w83[_CA2]=(_z83.KeyPressed_Q);
_IF.Event[_CA2]=true;}if(_z83.KeyPressed_R){_IF._w83[_DA2]=(_z83.KeyPressed_R);_IF.Event[_DA2]=true;}if(_z83.KeyPressed_S){_IF._w83[_EA2]=(_z83.KeyPressed_S);_IF.Event[_EA2]=true;}if(_z83.KeyPressed_T){_IF._w83[_FA2]=(_z83.KeyPressed_T);_IF.Event[_FA2]=true;}if(_z83.KeyPressed_U){_IF._w83[_GA2]=(_z83.KeyPressed_U);_IF.Event[_GA2]=true;}if(_z83.KeyPressed_V){_IF._w83[_HA2]=(_z83.KeyPressed_V);_IF.Event[_HA2]=true;}if(_z83.KeyPressed_W){_IF._w83[_IA2]=(_z83.KeyPressed_W);_IF.Event[_IA2]=true;}if(_z83.KeyPressed_X){
_IF._w83[_JA2]=(_z83.KeyPressed_X);_IF.Event[_JA2]=true;}if(_z83.KeyPressed_Y){_IF._w83[_KA2]=(_z83.KeyPressed_Y);_IF.Event[_KA2]=true;}if(_z83.KeyPressed_Z){_IF._w83[_LA2]=(_z83.KeyPressed_Z);_IF.Event[_LA2]=true;}if(_z83.KeyPressed_F1){_IF._w83[_MA2]=(_z83.KeyPressed_F1);_IF.Event[_MA2]=true;}if(_z83.KeyPressed_F2){_IF._w83[_NA2]=(_z83.KeyPressed_F2);_IF.Event[_NA2]=true;}if(_z83.KeyPressed_F3){_IF._w83[_OA2]=(_z83.KeyPressed_F3);_IF.Event[_OA2]=true;}if(_z83.KeyPressed_F4){_IF._w83[_PA2]=(_z83.KeyPressed_F4);
_IF.Event[_PA2]=true;}if(_z83.KeyPressed_F5){_IF._w83[_QA2]=(_z83.KeyPressed_F5);_IF.Event[_QA2]=true;}if(_z83.KeyPressed_F6){_IF._w83[_RA2]=(_z83.KeyPressed_F6);_IF.Event[_RA2]=true;}if(_z83.KeyPressed_F7){_IF._w83[_SA2]=(_z83.KeyPressed_F7);_IF.Event[_SA2]=true;}if(_z83.KeyPressed_F8){_IF._w83[_TA2]=(_z83.KeyPressed_F8);_IF.Event[_TA2]=true;}if(_z83.KeyPressed_F9){_IF._w83[_UA2]=(_z83.KeyPressed_F9);_IF.Event[_UA2]=true;}if(_z83.KeyPressed_F10){_IF._w83[_VA2]=(_z83.KeyPressed_F10);_IF.Event[_VA2]=true;
}if(_z83.KeyPressed_F11){_IF._w83[_WA2]=(_z83.KeyPressed_F11);_IF.Event[_WA2]=true;}if(_z83.KeyPressed_F12){_IF._w83[_XA2]=(_z83.KeyPressed_F12);_IF.Event[_XA2]=true;}if(_z83.KeyPressed_NUM_LOCK){_IF._w83[_aB2]=(_z83.KeyPressed_NUM_LOCK);_IF.Event[_aB2]=true;}if(_z83.KeyPressed_NUM_0){_IF._w83[_bB2]=(_z83.KeyPressed_NUM_0);_IF.Event[_bB2]=true;}if(_z83.KeyPressed_NUM_1){_IF._w83[_cB2]=(_z83.KeyPressed_NUM_1);_IF.Event[_cB2]=true;}if(_z83.KeyPressed_NUM_2){_IF._w83[_dB2]=(_z83.KeyPressed_NUM_2);_IF.Event[_dB2]=true;
}if(_z83.KeyPressed_NUM_3){_IF._w83[_eB2]=(_z83.KeyPressed_NUM_3);_IF.Event[_eB2]=true;}if(_z83.KeyPressed_NUM_4){_IF._w83[_fB2]=(_z83.KeyPressed_NUM_4);_IF.Event[_fB2]=true;}if(_z83.KeyPressed_NUM_5){_IF._w83[_gB2]=(_z83.KeyPressed_NUM_5);_IF.Event[_gB2]=true;}if(_z83.KeyPressed_NUM_6){_IF._w83[_hB2]=(_z83.KeyPressed_NUM_6);_IF.Event[_hB2]=true;}if(_z83.KeyPressed_NUM_7){_IF._w83[_iB2]=(_z83.KeyPressed_NUM_7);_IF.Event[_iB2]=true;}if(_z83.KeyPressed_NUM_8){_IF._w83[_jB2]=(_z83.KeyPressed_NUM_8);
_IF.Event[_jB2]=true;}if(_z83.KeyPressed_NUM_9){_IF._w83[_kB2]=(_z83.KeyPressed_NUM_9);_IF.Event[_kB2]=true;}if(_z83.KeyPressed_NUM_STAR){_IF._w83[_lB2]=(_z83.KeyPressed_NUM_STAR);_IF.Event[_lB2]=true;}if(_z83.KeyPressed_NUM_PLUS){_IF._w83[_mB2]=(_z83.KeyPressed_NUM_PLUS);_IF.Event[_mB2]=true;}if(_z83.KeyPressed_NUM_MINUS){_IF._w83[_nB2]=(_z83.KeyPressed_NUM_MINUS);_IF.Event[_nB2]=true;}if(_z83.KeyPressed_NUM_DOT){_IF._w83[_oB2]=(_z83.KeyPressed_NUM_DOT);_IF.Event[_oB2]=true;}if(_z83.KeyPressed_NUM_DIV){
_IF._w83[_pB2]=(_z83.KeyPressed_NUM_DIV);_IF.Event[_pB2]=true;}if(_z83.Key_NOKEY){_IF._v83[_qB2]=(_z83.Key_NOKEY);_IF.Event[_qB2]=true;}if(_z83.Key_ANYKEY){_IF._v83[_sB2]=(_z83.Key_ANYKEY);_IF.Event[_sB2]=true;}if(_z83.Key_BACKSPACE){_IF._v83[_tB2]=(_z83.Key_BACKSPACE);_IF.Event[_tB2]=true;}if(_z83.Key_TAB){_IF._v83[_uB2]=(_z83.Key_TAB);_IF.Event[_uB2]=true;}if(_z83.Key_ENTER){_IF._v83[_vB2]=(_z83.Key_ENTER);_IF.Event[_vB2]=true;}if(_z83.Key_SHIFT){_IF._v83[_wB2]=(_z83.Key_SHIFT);_IF.Event[_wB2]=true;
}if(_z83.Key_CTRL){_IF._v83[_xB2]=(_z83.Key_CTRL);_IF.Event[_xB2]=true;}if(_z83.Key_ALT){_IF._v83[_yB2]=(_z83.Key_ALT);_IF.Event[_yB2]=true;}if(_z83.Key_PAUSE){_IF._v83[_zB2]=(_z83.Key_PAUSE);_IF.Event[_zB2]=true;}if(_z83.Key_ESCAPE){_IF._v83[_AB2]=(_z83.Key_ESCAPE);_IF.Event[_AB2]=true;}if(_z83.Key_SPACE){_IF._v83[_BB2]=(_z83.Key_SPACE);_IF.Event[_BB2]=true;}if(_z83.Key_PAGEUP){_IF._v83[_CB2]=(_z83.Key_PAGEUP);_IF.Event[_CB2]=true;}if(_z83.Key_PAGEDOWN){_IF._v83[_DB2]=(_z83.Key_PAGEDOWN);_IF.Event[_DB2]=true;
}if(_z83.Key_END){_IF._v83[_EB2]=(_z83.Key_END);_IF.Event[_EB2]=true;}if(_z83.Key_HOME){_IF._v83[_FB2]=(_z83.Key_HOME);_IF.Event[_FB2]=true;}if(_z83.Key_LEFT){_IF._v83[_GB2]=(_z83.Key_LEFT);_IF.Event[_GB2]=true;}if(_z83.Key_UP){_IF._v83[_HB2]=(_z83.Key_UP);_IF.Event[_HB2]=true;}if(_z83.Key_RIGHT){_IF._v83[_IB2]=(_z83.Key_RIGHT);_IF.Event[_IB2]=true;}if(_z83.Key_DOWN){_IF._v83[_JB2]=(_z83.Key_DOWN);_IF.Event[_JB2]=true;}if(_z83.Key_INSERT){_IF._v83[_KB2]=(_z83.Key_INSERT);_IF.Event[_KB2]=true;}if(_z83.Key_DELETE){
_IF._v83[_LB2]=(_z83.Key_DELETE);_IF.Event[_LB2]=true;}if(_z83.Key_0){_IF._v83[_MB2]=(_z83.Key_0);_IF.Event[_MB2]=true;}if(_z83.Key_1){_IF._v83[_NB2]=(_z83.Key_1);_IF.Event[_NB2]=true;}if(_z83.Key_2){_IF._v83[_OB2]=(_z83.Key_2);_IF.Event[_OB2]=true;}if(_z83.Key_3){_IF._v83[_PB2]=(_z83.Key_3);_IF.Event[_PB2]=true;}if(_z83.Key_4){_IF._v83[_QB2]=(_z83.Key_4);_IF.Event[_QB2]=true;}if(_z83.Key_5){_IF._v83[_RB2]=(_z83.Key_5);_IF.Event[_RB2]=true;}if(_z83.Key_6){_IF._v83[_SB2]=(_z83.Key_6);_IF.Event[_SB2]=true;
}if(_z83.Key_7){_IF._v83[_TB2]=(_z83.Key_7);_IF.Event[_TB2]=true;}if(_z83.Key_8){_IF._v83[_UB2]=(_z83.Key_8);_IF.Event[_UB2]=true;}if(_z83.Key_9){_IF._v83[_VB2]=(_z83.Key_9);_IF.Event[_VB2]=true;}if(_z83.Key_A){_IF._v83[_WB2]=(_z83.Key_A);_IF.Event[_WB2]=true;}if(_z83.Key_B){_IF._v83[_XB2]=(_z83.Key_B);_IF.Event[_XB2]=true;}if(_z83.Key_C){_IF._v83[_YB2]=(_z83.Key_C);_IF.Event[_YB2]=true;}if(_z83.Key_D){_IF._v83[_ZB2]=(_z83.Key_D);_IF.Event[_ZB2]=true;}if(_z83.Key_E){_IF._v83[__B2]=(_z83.Key_E);_IF.Event[__B2]=true;
}if(_z83.Key_F){_IF._v83[_0C2]=(_z83.Key_F);_IF.Event[_0C2]=true;}if(_z83.Key_G){_IF._v83[_1C2]=(_z83.Key_G);_IF.Event[_1C2]=true;}if(_z83.Key_H){_IF._v83[_2C2]=(_z83.Key_H);_IF.Event[_2C2]=true;}if(_z83.Key_I){_IF._v83[_3C2]=(_z83.Key_I);_IF.Event[_3C2]=true;}if(_z83.Key_J){_IF._v83[_4C2]=(_z83.Key_J);_IF.Event[_4C2]=true;}if(_z83.Key_K){_IF._v83[_5C2]=(_z83.Key_K);_IF.Event[_5C2]=true;}if(_z83.Key_L){_IF._v83[_6C2]=(_z83.Key_L);_IF.Event[_6C2]=true;}if(_z83.Key_M){_IF._v83[_7C2]=(_z83.Key_M);_IF.Event[_7C2]=true;
}if(_z83.Key_N){_IF._v83[_8C2]=(_z83.Key_N);_IF.Event[_8C2]=true;}if(_z83.Key_O){_IF._v83[_9C2]=(_z83.Key_O);_IF.Event[_9C2]=true;}if(_z83.Key_P){_IF._v83[_aC2]=(_z83.Key_P);_IF.Event[_aC2]=true;}if(_z83.Key_Q){_IF._v83[_bC2]=(_z83.Key_Q);_IF.Event[_bC2]=true;}if(_z83.Key_R){_IF._v83[_cC2]=(_z83.Key_R);_IF.Event[_cC2]=true;}if(_z83.Key_S){_IF._v83[_dC2]=(_z83.Key_S);_IF.Event[_dC2]=true;}if(_z83.Key_T){_IF._v83[_eC2]=(_z83.Key_T);_IF.Event[_eC2]=true;}if(_z83.Key_U){_IF._v83[_fC2]=(_z83.Key_U);_IF.Event[_fC2]=true;
}if(_z83.Key_V){_IF._v83[_gC2]=(_z83.Key_V);_IF.Event[_gC2]=true;}if(_z83.Key_W){_IF._v83[_hC2]=(_z83.Key_W);_IF.Event[_hC2]=true;}if(_z83.Key_X){_IF._v83[_iC2]=(_z83.Key_X);_IF.Event[_iC2]=true;}if(_z83.Key_Y){_IF._v83[_jC2]=(_z83.Key_Y);_IF.Event[_jC2]=true;}if(_z83.Key_Z){_IF._v83[_kC2]=(_z83.Key_Z);_IF.Event[_kC2]=true;}if(_z83.Key_F1){_IF._v83[_lC2]=(_z83.Key_F1);_IF.Event[_lC2]=true;}if(_z83.Key_F2){_IF._v83[_mC2]=(_z83.Key_F2);_IF.Event[_mC2]=true;}if(_z83.Key_F3){_IF._v83[_nC2]=(_z83.Key_F3);
_IF.Event[_nC2]=true;}if(_z83.Key_F4){_IF._v83[_oC2]=(_z83.Key_F4);_IF.Event[_oC2]=true;}if(_z83.Key_F5){_IF._v83[_pC2]=(_z83.Key_F5);_IF.Event[_pC2]=true;}if(_z83.Key_F6){_IF._v83[_qC2]=(_z83.Key_F6);_IF.Event[_qC2]=true;}if(_z83.Key_F7){_IF._v83[_rC2]=(_z83.Key_F7);_IF.Event[_rC2]=true;}if(_z83.Key_F8){_IF._v83[_sC2]=(_z83.Key_F8);_IF.Event[_sC2]=true;}if(_z83.Key_F9){_IF._v83[_tC2]=(_z83.Key_F9);_IF.Event[_tC2]=true;}if(_z83.Key_F10){_IF._v83[_uC2]=(_z83.Key_F10);_IF.Event[_uC2]=true;}if(_z83.Key_F11){
_IF._v83[_vC2]=(_z83.Key_F11);_IF.Event[_vC2]=true;}if(_z83.Key_F12){_IF._v83[_wC2]=(_z83.Key_F12);_IF.Event[_wC2]=true;}if(_z83.Key_NUM_LOCK){_IF._v83[_KC2]=(_z83.Key_NUM_LOCK);_IF.Event[_KC2]=true;}if(_z83.Key_NUM_0){_IF._v83[_LC2]=(_z83.Key_NUM_0);_IF.Event[_LC2]=true;}if(_z83.Key_NUM_1){_IF._v83[_MC2]=(_z83.Key_NUM_1);_IF.Event[_MC2]=true;}if(_z83.Key_NUM_2){_IF._v83[_NC2]=(_z83.Key_NUM_2);_IF.Event[_NC2]=true;}if(_z83.Key_NUM_3){_IF._v83[_OC2]=(_z83.Key_NUM_3);_IF.Event[_OC2]=true;}if(_z83.Key_NUM_4){
_IF._v83[_PC2]=(_z83.Key_NUM_4);_IF.Event[_PC2]=true;}if(_z83.Key_NUM_5){_IF._v83[_QC2]=(_z83.Key_NUM_5);_IF.Event[_QC2]=true;}if(_z83.Key_NUM_6){_IF._v83[_RC2]=(_z83.Key_NUM_6);_IF.Event[_RC2]=true;}if(_z83.Key_NUM_7){_IF._v83[_SC2]=(_z83.Key_NUM_7);_IF.Event[_SC2]=true;}if(_z83.Key_NUM_8){_IF._v83[_TC2]=(_z83.Key_NUM_8);_IF.Event[_TC2]=true;}if(_z83.Key_NUM_9){_IF._v83[_UC2]=(_z83.Key_NUM_9);_IF.Event[_UC2]=true;}if(_z83.Key_NUM_STAR){_IF._v83[_VC2]=(_z83.Key_NUM_STAR);_IF.Event[_VC2]=true;}if(_z83.Key_NUM_PLUS){
_IF._v83[_WC2]=(_z83.Key_NUM_PLUS);_IF.Event[_WC2]=true;}if(_z83.Key_NUM_MINUS){_IF._v83[_XC2]=(_z83.Key_NUM_MINUS);_IF.Event[_XC2]=true;}if(_z83.Key_NUM_DOT){_IF._v83[_YC2]=(_z83.Key_NUM_DOT);_IF.Event[_YC2]=true;}if(_z83.Key_NUM_DIV){_IF._v83[_ZC2]=(_z83.Key_NUM_DIV);_IF.Event[_ZC2]=true;}if(_z83.KeyReleased_NOKEY){_IF._x83[__C2]=(_z83.KeyReleased_NOKEY);_IF.Event[__C2]=true;}if(_z83.KeyReleased_ANYKEY){_IF._x83[_1D2]=(_z83.KeyReleased_ANYKEY);_IF.Event[_1D2]=true;}if(_z83.KeyReleased_BACKSPACE){
_IF._x83[_2D2]=(_z83.KeyReleased_BACKSPACE);_IF.Event[_2D2]=true;}if(_z83.KeyReleased_TAB){_IF._x83[_3D2]=(_z83.KeyReleased_TAB);_IF.Event[_3D2]=true;}if(_z83.KeyReleased_ENTER){_IF._x83[_4D2]=(_z83.KeyReleased_ENTER);_IF.Event[_4D2]=true;}if(_z83.KeyReleased_SHIFT){_IF._x83[_5D2]=(_z83.KeyReleased_SHIFT);_IF.Event[_5D2]=true;}if(_z83.KeyReleased_CTRL){_IF._x83[_6D2]=(_z83.KeyReleased_CTRL);_IF.Event[_6D2]=true;}if(_z83.KeyReleased_ALT){_IF._x83[_7D2]=(_z83.KeyReleased_ALT);_IF.Event[_7D2]=true;
}if(_z83.KeyReleased_PAUSE){_IF._x83[_8D2]=(_z83.KeyReleased_PAUSE);_IF.Event[_8D2]=true;}if(_z83.KeyReleased_ESCAPE){_IF._x83[_9D2]=(_z83.KeyReleased_ESCAPE);_IF.Event[_9D2]=true;}if(_z83.KeyReleased_SPACE){_IF._x83[_aD2]=(_z83.KeyReleased_SPACE);_IF.Event[_aD2]=true;}if(_z83.KeyReleased_PAGEUP){_IF._x83[_bD2]=(_z83.KeyReleased_PAGEUP);_IF.Event[_bD2]=true;}if(_z83.KeyReleased_PAGEDOWN){_IF._x83[_cD2]=(_z83.KeyReleased_PAGEDOWN);_IF.Event[_cD2]=true;}if(_z83.KeyReleased_END){_IF._x83[_dD2]=(_z83.KeyReleased_END);
_IF.Event[_dD2]=true;}if(_z83.KeyReleased_HOME){_IF._x83[_eD2]=(_z83.KeyReleased_HOME);_IF.Event[_eD2]=true;}if(_z83.KeyReleased_LEFT){_IF._x83[_fD2]=(_z83.KeyReleased_LEFT);_IF.Event[_fD2]=true;}if(_z83.KeyReleased_UP){_IF._x83[_gD2]=(_z83.KeyReleased_UP);_IF.Event[_gD2]=true;}if(_z83.KeyReleased_RIGHT){_IF._x83[_hD2]=(_z83.KeyReleased_RIGHT);_IF.Event[_hD2]=true;}if(_z83.KeyReleased_DOWN){_IF._x83[_iD2]=(_z83.KeyReleased_DOWN);_IF.Event[_iD2]=true;}if(_z83.KeyReleased_INSERT){_IF._x83[_jD2]=(_z83.KeyReleased_INSERT);
_IF.Event[_jD2]=true;}if(_z83.KeyReleased_DELETE){_IF._x83[_kD2]=(_z83.KeyReleased_DELETE);_IF.Event[_kD2]=true;}if(_z83.KeyReleased_0){_IF._x83[_lD2]=(_z83.KeyReleased_0);_IF.Event[_lD2]=true;}if(_z83.KeyReleased_1){_IF._x83[_mD2]=(_z83.KeyReleased_1);_IF.Event[_mD2]=true;}if(_z83.KeyReleased_2){_IF._x83[_nD2]=(_z83.KeyReleased_2);_IF.Event[_nD2]=true;}if(_z83.KeyReleased_3){_IF._x83[_oD2]=(_z83.KeyReleased_3);_IF.Event[_oD2]=true;}if(_z83.KeyReleased_4){_IF._x83[_pD2]=(_z83.KeyReleased_4);_IF.Event[_pD2]=true;
}if(_z83.KeyReleased_5){_IF._x83[_qD2]=(_z83.KeyReleased_5);_IF.Event[_qD2]=true;}if(_z83.KeyReleased_6){_IF._x83[_rD2]=(_z83.KeyReleased_6);_IF.Event[_rD2]=true;}if(_z83.KeyReleased_7){_IF._x83[_sD2]=(_z83.KeyReleased_7);_IF.Event[_sD2]=true;}if(_z83.KeyReleased_8){_IF._x83[_tD2]=(_z83.KeyReleased_8);_IF.Event[_tD2]=true;}if(_z83.KeyReleased_9){_IF._x83[_uD2]=(_z83.KeyReleased_9);_IF.Event[_uD2]=true;}if(_z83.KeyReleased_A){_IF._x83[_vD2]=(_z83.KeyReleased_A);_IF.Event[_vD2]=true;}if(_z83.KeyReleased_B){
_IF._x83[_wD2]=(_z83.KeyReleased_B);_IF.Event[_wD2]=true;}if(_z83.KeyReleased_C){_IF._x83[_xD2]=(_z83.KeyReleased_C);_IF.Event[_xD2]=true;}if(_z83.KeyReleased_D){_IF._x83[_yD2]=(_z83.KeyReleased_D);_IF.Event[_yD2]=true;}if(_z83.KeyReleased_E){_IF._x83[_zD2]=(_z83.KeyReleased_E);_IF.Event[_zD2]=true;}if(_z83.KeyReleased_F){_IF._x83[_AD2]=(_z83.KeyReleased_F);_IF.Event[_AD2]=true;}if(_z83.KeyReleased_G){_IF._x83[_BD2]=(_z83.KeyReleased_G);_IF.Event[_BD2]=true;}if(_z83.KeyReleased_H){_IF._x83[_CD2]=(_z83.KeyReleased_H);
_IF.Event[_CD2]=true;}if(_z83.KeyReleased_I){_IF._x83[_DD2]=(_z83.KeyReleased_I);_IF.Event[_DD2]=true;}if(_z83.KeyReleased_J){_IF._x83[_ED2]=(_z83.KeyReleased_J);_IF.Event[_ED2]=true;}if(_z83.KeyReleased_K){_IF._x83[_FD2]=(_z83.KeyReleased_K);_IF.Event[_FD2]=true;}if(_z83.KeyReleased_L){_IF._x83[_GD2]=(_z83.KeyReleased_L);_IF.Event[_GD2]=true;}if(_z83.KeyReleased_M){_IF._x83[_HD2]=(_z83.KeyReleased_M);_IF.Event[_HD2]=true;}if(_z83.KeyReleased_N){_IF._x83[_ID2]=(_z83.KeyReleased_N);_IF.Event[_ID2]=true;
}if(_z83.KeyReleased_O){_IF._x83[_JD2]=(_z83.KeyReleased_O);_IF.Event[_JD2]=true;}if(_z83.KeyReleased_P){_IF._x83[_KD2]=(_z83.KeyReleased_P);_IF.Event[_KD2]=true;}if(_z83.KeyReleased_Q){_IF._x83[_LD2]=(_z83.KeyReleased_Q);_IF.Event[_LD2]=true;}if(_z83.KeyReleased_R){_IF._x83[_MD2]=(_z83.KeyReleased_R);_IF.Event[_MD2]=true;}if(_z83.KeyReleased_S){_IF._x83[_ND2]=(_z83.KeyReleased_S);_IF.Event[_ND2]=true;}if(_z83.KeyReleased_T){_IF._x83[_OD2]=(_z83.KeyReleased_T);_IF.Event[_OD2]=true;}if(_z83.KeyReleased_U){
_IF._x83[_PD2]=(_z83.KeyReleased_U);_IF.Event[_PD2]=true;}if(_z83.KeyReleased_V){_IF._x83[_QD2]=(_z83.KeyReleased_V);_IF.Event[_QD2]=true;}if(_z83.KeyReleased_W){_IF._x83[_RD2]=(_z83.KeyReleased_W);_IF.Event[_RD2]=true;}if(_z83.KeyReleased_X){_IF._x83[_SD2]=(_z83.KeyReleased_X);_IF.Event[_SD2]=true;}if(_z83.KeyReleased_Y){_IF._x83[_TD2]=(_z83.KeyReleased_Y);_IF.Event[_TD2]=true;}if(_z83.KeyReleased_Z){_IF._x83[_UD2]=(_z83.KeyReleased_Z);_IF.Event[_UD2]=true;}if(_z83.KeyReleased_F1){_IF._x83[_VD2]=(_z83.KeyReleased_F1);
_IF.Event[_VD2]=true;}if(_z83.KeyReleased_F2){_IF._x83[_WD2]=(_z83.KeyReleased_F2);_IF.Event[_WD2]=true;}if(_z83.KeyReleased_F3){_IF._x83[_XD2]=(_z83.KeyReleased_F3);_IF.Event[_XD2]=true;}if(_z83.KeyReleased_F4){_IF._x83[_YD2]=(_z83.KeyReleased_F4);_IF.Event[_YD2]=true;}if(_z83.KeyReleased_F5){_IF._x83[_ZD2]=(_z83.KeyReleased_F5);_IF.Event[_ZD2]=true;}if(_z83.KeyReleased_F6){_IF._x83[__D2]=(_z83.KeyReleased_F6);_IF.Event[__D2]=true;}if(_z83.KeyReleased_F7){_IF._x83[_0E2]=(_z83.KeyReleased_F7);_IF.Event[_0E2]=true;
}if(_z83.KeyReleased_F8){_IF._x83[_1E2]=(_z83.KeyReleased_F8);_IF.Event[_1E2]=true;}if(_z83.KeyReleased_F9){_IF._x83[_2E2]=(_z83.KeyReleased_F9);_IF.Event[_2E2]=true;}if(_z83.KeyReleased_F10){_IF._x83[_3E2]=(_z83.KeyReleased_F10);_IF.Event[_3E2]=true;}if(_z83.KeyReleased_F11){_IF._x83[_4E2]=(_z83.KeyReleased_F11);_IF.Event[_4E2]=true;}if(_z83.KeyReleased_F12){_IF._x83[_5E2]=(_z83.KeyReleased_F12);_IF.Event[_5E2]=true;}if(_z83.KeyReleased_NUM_LOCK){_IF._x83[_jE2]=(_z83.KeyReleased_NUM_LOCK);_IF.Event[_jE2]=true;
}if(_z83.KeyReleased_NUM_0){_IF._x83[_kE2]=(_z83.KeyReleased_NUM_0);_IF.Event[_kE2]=true;}if(_z83.KeyReleased_NUM_1){_IF._x83[_lE2]=(_z83.KeyReleased_NUM_1);_IF.Event[_lE2]=true;}if(_z83.KeyReleased_NUM_2){_IF._x83[_mE2]=(_z83.KeyReleased_NUM_2);_IF.Event[_mE2]=true;}if(_z83.KeyReleased_NUM_3){_IF._x83[_nE2]=(_z83.KeyReleased_NUM_3);_IF.Event[_nE2]=true;}if(_z83.KeyReleased_NUM_4){_IF._x83[_oE2]=(_z83.KeyReleased_NUM_4);_IF.Event[_oE2]=true;}if(_z83.KeyReleased_NUM_5){_IF._x83[_pE2]=(_z83.KeyReleased_NUM_5);
_IF.Event[_pE2]=true;}if(_z83.KeyReleased_NUM_6){_IF._x83[_qE2]=(_z83.KeyReleased_NUM_6);_IF.Event[_qE2]=true;}if(_z83.KeyReleased_NUM_7){_IF._x83[_rE2]=(_z83.KeyReleased_NUM_7);_IF.Event[_rE2]=true;}if(_z83.KeyReleased_NUM_8){_IF._x83[_sE2]=(_z83.KeyReleased_NUM_8);_IF.Event[_sE2]=true;}if(_z83.KeyReleased_NUM_9){_IF._x83[_tE2]=(_z83.KeyReleased_NUM_9);_IF.Event[_tE2]=true;}if(_z83.KeyReleased_NUM_STAR){_IF._x83[_uE2]=(_z83.KeyReleased_NUM_STAR);_IF.Event[_uE2]=true;}if(_z83.KeyReleased_NUM_PLUS){
_IF._x83[_vE2]=(_z83.KeyReleased_NUM_PLUS);_IF.Event[_vE2]=true;}if(_z83.KeyReleased_NUM_MINUS){_IF._x83[_wE2]=(_z83.KeyReleased_NUM_MINUS);_IF.Event[_wE2]=true;}if(_z83.KeyReleased_NUM_DOT){_IF._x83[_xE2]=(_z83.KeyReleased_NUM_DOT);_IF.Event[_xE2]=true;}if(_z83.KeyReleased_NUM_DIV){_IF._x83[_yE2]=(_z83.KeyReleased_NUM_DIV);_IF.Event[_yE2]=true;}var i=0;if(_z83.TriggerEvents!=undefined){while(i<_z83.TriggerEvents.length){var key=parseInt(_z83.TriggerEvents[i])+1;var pFunc=_z83.TriggerEvents[i+1];var _A83=_4F2._26(key);
_IF.Event[_Gx2]=true;_IF.Event[_Gx2|key]=true;var _B83=new _l83();_B83._m83=pFunc;_B83._o83=_A83;_B83._n83=key;_IF.Triggers[_Gx2|key]=_B83;i+=2;}}i=0;if(_z83.CollisionEvents!=undefined){while(i<_z83.CollisionEvents.length){_IF.Event[_L62]=true;var key=parseInt(_z83.CollisionEvents[i]);var _HV=_z83.CollisionEvents[i+1];var _C83=new _p83();_C83._m83=_HV;_C83._D83=false;_C83._tl=this;_IF._nH2[key]=_C83;i+=2;}}if(_z83.physicsObject!=undefined){_IF._1_.physicsObject=_z83.physicsObject;_IF._1_.physicsSensor=_z83.physicsSensor;
_IF._1_.physicsShape=_z83.physicsShape;_IF._1_.physicsDensity=_z83.physicsDensity;_IF._1_.physicsRestitution=_z83.physicsRestitution;_IF._1_.physicsGroup=_z83.physicsGroup;_IF._1_.physicsLinearDamping=_z83.physicsLinearDamping;_IF._1_.physicsAngularDamping=_z83.physicsAngularDamping;_IF._1_.physicsFriction=_z83.physicsFriction;_IF._1_.physicsAwake=_z83.physicsAwake;_IF._1_.physicsKinematic=_z83.physicsKinematic;_IF._1_.physicsShapeVertices=_z83.physicsShapeVertices;}}return _IF;}_P62.prototype._E83=function(_D3,
_oH){if(this.Event[_D3])return true;return false;};_P62.prototype._b6=function(_D3,index,_tt,_nH){if((_D3!=_FN)&&_Q31!=-1&&!((_tt.persistent||_S3._F83)&&((_D3==_Wm)||(_D3==_Vm)||(_D3==_WN)||(_D3==_Eu2)||(_D3==_vH)))){return;}var _G83=_NH;var _H83=_OH;var _I83=_yF2;var _J83=_Ll;_yF2=this;_NH=_D3;_OH=index;_Ll=false;var _xw1=true;switch(_D3){case _Vm:if(this.PreCreateEvent)this.PreCreateEvent(_tt,_nH);else _xw1=false;break;case _Wm:if(this.CreateEvent)this.CreateEvent(_tt,_nH);else _xw1=false;break;case _WN:if(this.DestroyEvent)this.DestroyEvent(_tt,
_nH);else _xw1=false;break;case _FN:if(this.CleanUpEvent)this.CleanUpEvent(_tt,_nH);else _xw1=false;break;case _Eu2:_xw1=false;break;case _oz2:_xw1=false;break;case _L62:if(this._nH2[index])this._nH2[index]._m83(_tt,_nH);break;case _Ax2:if(this._v83[_D3|index])this._v83[_D3|index](_tt,_nH);else _xw1=false;break;case _pz2:_xw1=false;break;case _vH:_xw1=false;break;case _yx2:if(this.DrawEvent)this.DrawEvent(_tt,_nH);else _xw1=false;break;case _Cx2:if(this._w83[_D3|index])this._w83[_D3|index](_tt,_nH);else _xw1=false;
break;case _Ex2:if(this._x83[_D3|index])this._x83[_D3|index](_tt,_nH);else _xw1=false;break;case _Gx2:if(this.Triggers[_D3|index]){var _K83=this.Triggers[_D3|index];var _B83=_K83._o83;var result=_B83.pFunc(_tt,_nH);if(result|_qH){_K83._m83(_tt,_nH);}}break;case _rz2:if(this.DrawGUI)this.DrawGUI(_tt,_nH);else _xw1=false;break;case _tz2:if(this.DrawEventBegin)this.DrawEventBegin(_tt,_nH);else _xw1=false;break;case _uz2:if(this.DrawEventEnd)this.DrawEventEnd(_tt,_nH);else _xw1=false;break;case _vz2:if(this.DrawGUIBegin)this.DrawGUIBegin(_tt,
_nH);else _xw1=false;break;case _wz2:if(this.DrawGUIEnd)this.DrawGUIEnd(_tt,_nH);else _xw1=false;break;case _xz2:if(this.DrawPre)this.DrawPre(_tt,_nH);else _xw1=false;break;case _yz2:if(this.DrawPost)this.DrawPost(_tt,_nH);else _xw1=false;break;case _sz2:if(this.DrawResize)this.DrawResize(_tt,_nH);else _xw1=false;break;case _Yu2:if(this.StepBeginEvent)this.StepBeginEvent(_tt,_nH);else _xw1=false;break;case __u2:if(this.StepNormalEvent)this.StepNormalEvent(_tt,_nH);else _xw1=false;break;case _1v2:if(this.StepEndEvent)this.StepEndEvent(_tt,
_nH);else _xw1=false;break;case _Jt2:if(this.OutsideEvent)this.OutsideEvent(_tt,_nH);else _xw1=false;break;case _Lt2:if(this.BoundaryEvent)this.BoundaryEvent(_tt,_nH);else _xw1=false;break;case _Yv2:if(this.StartGameEvent)this.StartGameEvent(_tt,_nH);else _xw1=false;break;case __v2:if(this.EndGameEvent)this.EndGameEvent(_tt,_nH);else _xw1=false;break;case _1w2:if(this.StartRoomEvent)this.StartRoomEvent(_tt,_nH);else _xw1=false;break;case _3w2:if(this.EndRoomEvent)this.EndRoomEvent(_tt,_nH);else _xw1=false;break;
case _yn:if(this.NoLivesEvent)this.NoLivesEvent(_tt,_nH);else _xw1=false;break;case _6w2:if(this.AnimationEndEvent)this.AnimationEndEvent(_tt,_nH);else _xw1=false;break;case _w62:if(this.EndOfPathEvent)this.EndOfPathEvent(_tt,_nH);else _xw1=false;break;case _Jn:if(this.NoHealthEvent)this.NoHealthEvent(_tt,_nH);else _xw1=false;break;case _aw2:if(this.CloseButtonEvent)this.CloseButtonEvent(_tt,_nH);else _xw1=false;break;case _Rt2:if(this.OutsideView0Event)this.OutsideView0Event(_tt,_nH);else _xw1=false;break;
case _dw2:if(this.OutsideView1Event)this.OutsideView1Event(_tt,_nH);else _xw1=false;break;case _fw2:if(this.OutsideView2Event)this.OutsideView2Event(_tt,_nH);else _xw1=false;break;case _hw2:if(this.OutsideView3Event)this.OutsideView3Event(_tt,_nH);else _xw1=false;break;case _jw2:if(this.OutsideView4Event)this.OutsideView4Event(_tt,_nH);else _xw1=false;break;case _lw2:if(this.OutsideView5Event)this.OutsideView5Event(_tt,_nH);else _xw1=false;break;case _nw2:if(this.OutsideView6Event)this.OutsideView6Event(_tt,
_nH);else _xw1=false;break;case _pw2:if(this.OutsideView7Event)this.OutsideView7Event(_tt,_nH);else _xw1=false;break;case _St2:if(this.BoundaryView0Event)this.BoundaryView0Event(_tt,_nH);else _xw1=false;break;case _sw2:if(this.BoundaryView1Event)this.BoundaryView1Event(_tt,_nH);else _xw1=false;break;case _uw2:if(this.BoundaryView2Event)this.BoundaryView2Event(_tt,_nH);else _xw1=false;break;case _ww2:if(this.BoundaryView3Event)this.BoundaryView3Event(_tt,_nH);else _xw1=false;break;case _yw2:if(this.BoundaryView4Event)this.BoundaryView4Event(_tt,
_nH);else _xw1=false;break;case _Aw2:if(this.BoundaryView5Event)this.BoundaryView5Event(_tt,_nH);else _xw1=false;break;case _Cw2:if(this.BoundaryView6Event)this.BoundaryView6Event(_tt,_nH);else _xw1=false;break;case _Ew2:if(this.BoundaryView7Event)this.BoundaryView7Event(_tt,_nH);else _xw1=false;break;case _c6:if(this.AnimationUpdateEvent)this.AnimationUpdateEvent(_tt,_nH);else _xw1=false;break;case _J3:if(this.AnimationEventEvent)this.AnimationEventEvent(_tt,_nH);else _xw1=false;break;case _cx2:if(this.WebImageLoadedEvent)this.WebImageLoadedEvent(_tt,
_nH);else _xw1=false;break;case _ex2:if(this.WebSoundLoadedEvent)this.WebSoundLoadedEvent(_tt,_nH);else _xw1=false;break;case _gx2:if(this.WebAsyncEvent)this.WebAsyncEvent(_tt,_nH);else _xw1=false;break;case _ix2:if(this.WebUserInteractionEvent)this.WebUserInteractionEvent(_tt,_nH);else _xw1=false;break;case _kx2:if(this.WebIAPEvent)this.WebIAPEvent(_tt,_nH);else _xw1=false;break;case _ox2:if(this.SocialEvent)this.SocialEvent(_tt,_nH);else _xw1=false;break;case _qx2:if(this.PushNotificationEvent)this.PushNotificationEvent(_tt,
_nH);else _xw1=false;break;case _G91:if(this.AsyncSaveLoadEvent)this.AsyncSaveLoadEvent(_tt,_nH);else _xw1=false;break;case _mx2:if(this.NetworkingEvent)this.NetworkingEvent(_tt,_nH);else _xw1=false;break;case _tx2:if(this.AudioPlaybackEvent)this.AudioPlaybackEvent(_tt,_nH);else _xw1=false;break;case _Ea1:if(this.AudioRecordingEvent)this.AudioRecordingEvent(_tt,_nH);else _xw1=false;break;case _m71:if(this.SystemEvent)this.SystemEvent(_tt,_nH);else _xw1=false;break;case _wx2:if(this.BroadcastMessageEvent)this.BroadcastMessageEvent(_tt,
_nH);else _xw1=false;break;case _Fw2:if(this.UserEvent0)this.UserEvent0(_tt,_nH);else _xw1=false;break;case _Hw2:if(this.UserEvent1)this.UserEvent1(_tt,_nH);else _xw1=false;break;case _Jw2:if(this.UserEvent2)this.UserEvent2(_tt,_nH);else _xw1=false;break;case _Lw2:if(this.UserEvent3)this.UserEvent3(_tt,_nH);else _xw1=false;break;case _Nw2:if(this.UserEvent4)this.UserEvent4(_tt,_nH);else _xw1=false;break;case _Pw2:if(this.UserEvent5)this.UserEvent5(_tt,_nH);else _xw1=false;break;case _Rw2:if(this.UserEvent6)this.UserEvent6(_tt,
_nH);else _xw1=false;break;case _Tw2:if(this.UserEvent7)this.UserEvent7(_tt,_nH);else _xw1=false;break;case _Vw2:if(this.UserEvent8)this.UserEvent8(_tt,_nH);else _xw1=false;break;case _Xw2:if(this.UserEvent9)this.UserEvent9(_tt,_nH);else _xw1=false;break;case _Zw2:if(this.UserEvent10)this.UserEvent10(_tt,_nH);else _xw1=false;break;case _0x2:if(this.UserEvent11)this.UserEvent11(_tt,_nH);else _xw1=false;break;case _2x2:if(this.UserEvent12)this.UserEvent12(_tt,_nH);else _xw1=false;break;case _4x2:if(this.UserEvent13)this.UserEvent13(_tt,
_nH);else _xw1=false;break;case _6x2:if(this.UserEvent14)this.UserEvent14(_tt,_nH);else _xw1=false;break;case _8x2:if(this.UserEvent15)this.UserEvent15(_tt,_nH);else _xw1=false;break;case _ju2:if(this.NoButtonPressed)this.NoButtonPressed(_tt,_nH);else _xw1=false;break;case _au2:if(this.LeftButtonDown)this.LeftButtonDown(_tt,_nH);else _xw1=false;break;case _cu2:if(this.RightButtonDown)this.RightButtonDown(_tt,_nH);else _xw1=false;break;case _bu2:if(this.MiddleButtonDown)this.MiddleButtonDown(_tt,_nH);else _xw1=false;
break;case _du2:if(this.LeftButtonPressed)this.LeftButtonPressed(_tt,_nH);else _xw1=false;break;case _fu2:if(this.RightButtonPressed)this.RightButtonPressed(_tt,_nH);else _xw1=false;break;case _eu2:if(this.MiddleButtonPressed)this.MiddleButtonPressed(_tt,_nH);else _xw1=false;break;case _gu2:if(this.LeftButtonReleased)this.LeftButtonReleased(_tt,_nH);else _xw1=false;break;case _iu2:if(this.RightButtonReleased)this.RightButtonReleased(_tt,_nH);else _xw1=false;break;case _hu2:if(this.MiddleButtonReleased)this.MiddleButtonReleased(_tt,
_nH);else _xw1=false;break;case _mu2:if(this.MouseWheelUp)this.MouseWheelUp(_tt,_nH);else _xw1=false;break;case _nu2:if(this.MouseWheelDown)this.MouseWheelDown(_tt,_nH);else _xw1=false;break;case _su2:if(this.GlobalLeftButtonDown)this.GlobalLeftButtonDown(_tt,_nH);else _xw1=false;break;case _Gv2:if(this.GlobalRightButtonDown)this.GlobalRightButtonDown(_tt,_nH);else _xw1=false;break;case _Iv2:if(this.GlobalMiddleButtonDown)this.GlobalMiddleButtonDown(_tt,_nH);else _xw1=false;break;case _tu2:if(this.GlobalLeftButtonPressed)this.GlobalLeftButtonPressed(_tt,
_nH);else _xw1=false;break;case _Lv2:if(this.GlobalRightButtonPressed)this.GlobalRightButtonPressed(_tt,_nH);else _xw1=false;break;case _Nv2:if(this.GlobalMiddleButtonPressed)this.GlobalMiddleButtonPressed(_tt,_nH);else _xw1=false;break;case _uu2:if(this.GlobalLeftButtonReleased)this.GlobalLeftButtonReleased(_tt,_nH);else _xw1=false;break;case _Qv2:if(this.GlobalRightButtonReleased)this.GlobalRightButtonReleased(_tt,_nH);else _xw1=false;break;case _Sv2:if(this.GlobalMiddleButtonReleased)this.GlobalMiddleButtonReleased(_tt,
_nH);else _xw1=false;break;case _ku2:if(this.MouseEnter)this.MouseEnter(_tt,_nH);else _xw1=false;break;case _lu2:if(this.MouseLeave)this.MouseLeave(_tt,_nH);else _xw1=false;break;case _Jx2:if(this.GestureTapEvent)this.GestureTapEvent(_tt,_nH);else _xw1=false;break;case _Lx2:if(this.GestureDoubleTapEvent)this.GestureDoubleTapEvent(_tt,_nH);else _xw1=false;break;case _Nx2:if(this.GestureDragStartEvent)this.GestureDragStartEvent(_tt,_nH);else _xw1=false;break;case _Px2:if(this.GestureDragMoveEvent)this.GestureDragMoveEvent(_tt,
_nH);else _xw1=false;break;case _Rx2:if(this.GestureDragEndEvent)this.GestureDragEndEvent(_tt,_nH);else _xw1=false;break;case _Tx2:if(this.GestureFlickEvent)this.GestureFlickEvent(_tt,_nH);else _xw1=false;break;case _8y2:if(this.GestureGlobalTapEvent)this.GestureGlobalTapEvent(_tt,_nH);else _xw1=false;break;case _ay2:if(this.GestureGlobalDoubleTapEvent)this.GestureGlobalDoubleTapEvent(_tt,_nH);else _xw1=false;break;case _cy2:if(this.GestureGlobalDragStartEvent)this.GestureGlobalDragStartEvent(_tt,_nH);else _xw1=false;
break;case _ey2:if(this.GestureGlobalDragMoveEvent)this.GestureGlobalDragMoveEvent(_tt,_nH);else _xw1=false;break;case _gy2:if(this.GestureGlobalDragEndEvent)this.GestureGlobalDragEndEvent(_tt,_nH);else _xw1=false;break;case _iy2:if(this.GestureGlobalFlickEvent)this.GestureGlobalFlickEvent(_tt,_nH);else _xw1=false;break;case _Ku2:if(this._u83[0]!=null)this._u83[0](_tt,_nH);else _xw1=false;break;case _Lu2:if(this._u83[1]!=null)this._u83[1](_tt,_nH);else _xw1=false;break;case _Mu2:if(this._u83[2]!=null)this._u83[2](_tt,
_nH);else _xw1=false;break;case _Nu2:if(this._u83[3]!=null)this._u83[3](_tt,_nH);else _xw1=false;break;case _Ou2:if(this._u83[4]!=null)this._u83[4](_tt,_nH);else _xw1=false;break;case _Pu2:if(this._u83[5]!=null)this._u83[5](_tt,_nH);else _xw1=false;break;case _Qu2:if(this._u83[6]!=null)this._u83[6](_tt,_nH);else _xw1=false;break;case _Ru2:if(this._u83[7]!=null)this._u83[7](_tt,_nH);else _xw1=false;break;case _Su2:if(this._u83[8]!=null)this._u83[8](_tt,_nH);else _xw1=false;break;case _Tu2:if(this._u83[9]!=null)this._u83[9](_tt,
_nH);else _xw1=false;break;case _Uu2:if(this._u83[10]!=null)this._u83[10](_tt,_nH);else _xw1=false;break;case _Vu2:if(this._u83[11]!=null)this._u83[11](_tt,_nH);else _xw1=false;break;default :_xw1=false;}_Ll=_J83;_NH=_G83;_OH=_H83;_yF2=_I83;return _xw1;};function _zV2(_D3){switch(_D3){case _Vm:return _xy2;case _Wm:return _Gu2;case _WN:return _Hu2;case _FN:return _Iu2;case _Eu2:return _Ju2;case _oz2:return _Wu2;case _L62:return _2v2;case _Ax2:return _zx2;case _pz2:return _3v2;case _vH:return _LH;case _yx2:return _xx2;case _Cx2:return _Bx2;
case _Ex2:return _Dx2;case _Gx2:return _Fx2;case _rz2:return _xx2;case _tz2:return _xx2;case _uz2:return _xx2;case _vz2:return _xx2;case _wz2:return _xx2;case _xz2:return _xx2;case _yz2:return _xx2;case _sz2:return _xx2;case _Yu2:return _Wu2;case __u2:return _Wu2;case _1v2:return _Wu2;case _Jt2:return _LH;case _Lt2:return _LH;case _Yv2:return _LH;case __v2:return _LH;case _1w2:return _LH;case _3w2:return _LH;case _yn:return _LH;case _6w2:return _LH;case _w62:return _LH;case _Jn:return _LH;case _aw2:return _LH;case _Rt2:return _LH;case _dw2:return _LH;
case _fw2:return _LH;case _hw2:return _LH;case _jw2:return _LH;case _lw2:return _LH;case _nw2:return _LH;case _pw2:return _LH;case _St2:return _LH;case _sw2:return _LH;case _uw2:return _LH;case _ww2:return _LH;case _yw2:return _LH;case _Aw2:return _LH;case _Cw2:return _LH;case _Ew2:return _LH;case _c6:return _LH;case _J3:return _LH;case _cx2:return _LH;case _ex2:return _LH;case _gx2:return _LH;case _ix2:return _LH;case _kx2:return _LH;case _ox2:return _LH;case _qx2:return _LH;case _G91:return _LH;case _mx2:return _LH;case _tx2:return _LH;case _Ea1:return _LH;
case _m71:return _LH;case _Fw2:return _LH;case _Hw2:return _LH;case _Jw2:return _LH;case _Lw2:return _LH;case _Nw2:return _LH;case _Pw2:return _LH;case _Rw2:return _LH;case _Tw2:return _LH;case _Vw2:return _LH;case _Xw2:return _LH;case _Zw2:return _LH;case _0x2:return _LH;case _2x2:return _LH;case _4x2:return _LH;case _6x2:return _LH;case _8x2:return _LH;case _ju2:return _3v2;case _au2:return _3v2;case _cu2:return _3v2;case _bu2:return _3v2;case _du2:return _3v2;case _fu2:return _3v2;case _eu2:return _3v2;case _gu2:return _3v2;case _iu2:return _3v2;
case _hu2:return _3v2;case _mu2:return _3v2;case _nu2:return _3v2;case _su2:return _3v2;case _Gv2:return _3v2;case _Iv2:return _3v2;case _tu2:return _3v2;case _Lv2:return _3v2;case _Nv2:return _3v2;case _uu2:return _3v2;case _Qv2:return _3v2;case _Sv2:return _3v2;case _ku2:return _3v2;case _lu2:return _3v2;case _Jx2:return _Hx2;case _Lx2:return _Hx2;case _Nx2:return _Hx2;case _Px2:return _Hx2;case _Rx2:return _Hx2;case _Tx2:return _Hx2;case _8y2:return _Hx2;case _ay2:return _Hx2;case _cy2:return _Hx2;case _ey2:return _Hx2;case _gy2:return _Hx2;
case _iy2:return _Hx2;case _Ku2:return _Ju2;case _Lu2:return _Ju2;case _Mu2:return _Ju2;case _Nu2:return _Ju2;case _Ou2:return _Ju2;case _Pu2:return _Ju2;case _Qu2:return _Ju2;case _Ru2:return _Ju2;case _Su2:return _Ju2;case _Tu2:return _Ju2;case _Uu2:return _Ju2;case _Vu2:return _Ju2;default :return -1;}}function _AV2(_D3,_oH){if((_D3&0xff00)==_Ax2){return _oH;}else if((_D3&0xff00)==_Cx2){return _oH;}else if((_D3&0xff00)==_Ex2){return _oH;}else if((_D3&0xff00)==_L62){return _oH;}switch(_D3){case _Vm:return 0;case _Wm:return 0;case _WN:return 0;
case _FN:return 0;case _Eu2:return 0;case _oz2:return 0;case _L62:return 0;case _Ax2:return _oH;case _pz2:return 0;case _vH:return 0;case _yx2:return 0;case _Cx2:return _oH;case _Ex2:return _oH;case _Gx2:return 0;case _rz2:return _Pz2;case _tz2:return _tz2&0xff;case _uz2:return _uz2&0xff;case _vz2:return _vz2&0xff;case _wz2:return _wz2&0xff;case _xz2:return _xz2&0xff;case _yz2:return _yz2&0xff;case _sz2:return _Qz2&0xff;case _Yu2:return _Xu2;case __u2:return _Zu2;case _1v2:return _0v2;case _Jt2:return _Vv2;case _Lt2:return _Wv2;case _Yv2:return _Xv2;
case __v2:return _Zv2;case _1w2:return _0w2;case _3w2:return _2w2;case _yn:return _4w2;case _6w2:return _5w2;case _w62:return _7w2;case _Jn:return _8w2;case _aw2:return _9w2;case _Rt2:return _bw2;case _dw2:return _cw2;case _fw2:return _ew2;case _hw2:return _gw2;case _jw2:return _iw2;case _lw2:return _kw2;case _nw2:return _mw2;case _pw2:return _ow2;case _St2:return _qw2;case _sw2:return _rw2;case _uw2:return _tw2;case _ww2:return _vw2;case _yw2:return _xw2;case _Aw2:return _zw2;case _Cw2:return _Bw2;case _Ew2:return _Dw2;case _c6:return _9x2;case _J3:return _ax2;
case _cx2:return _bx2;case _ex2:return _dx2;case _gx2:return _rx2;case _ix2:return _hx2;case _kx2:return _jx2;case _ox2:return _nx2;case _qx2:return _px2;case _G91:return _rx2;case _mx2:return _lx2;case _tx2:return _sx2;case _Ea1:return _Ea1;case _m71:return _ux2;case _wx2:return _vx2;case _Fw2:return _zz2;case _Hw2:return _Az2;case _Jw2:return _Bz2;case _Lw2:return _Cz2;case _Nw2:return _Dz2;case _Pw2:return _Ez2;case _Rw2:return _Fz2;case _Tw2:return _Gz2;case _Vw2:return _Hz2;case _Xw2:return _Iz2;case _Zw2:return _Jz2;case _0x2:return _Kz2;
case _2x2:return _Lz2;case _4x2:return _Mz2;case _6x2:return _Nz2;case _8x2:return _Oz2;case _ju2:return _7v2;case _au2:return _4v2;case _cu2:return _5v2;case _bu2:return _6v2;case _du2:return _8v2;case _fu2:return _9v2;case _eu2:return _av2;case _gu2:return _bv2;case _iu2:return _cv2;case _hu2:return _dv2;case _mu2:return _Tv2;case _nu2:return _Uv2;case _su2:return _Ev2;case _Gv2:return _Fv2;case _Iv2:return _Hv2;case _tu2:return _Jv2;case _Lv2:return _Kv2;case _Nv2:return _Mv2;case _uu2:return _Ov2;case _Qv2:return _Pv2;case _Sv2:return _Rv2;
case _ku2:return _ev2;case _lu2:return _fv2;case _Jx2:return _Ix2;case _Lx2:return _Kx2;case _Nx2:return _Mx2;case _Px2:return _Ox2;case _Rx2:return _Qx2;case _Tx2:return _Sx2;case _8y2:return _7y2;case _ay2:return _9y2;case _cy2:return _by2;case _ey2:return _dy2;case _gy2:return _fy2;case _iy2:return _hy2;case _Ku2:return 0;case _Lu2:return 1;case _Mu2:return 2;case _Nu2:return 3;case _Ou2:return 4;case _Pu2:return 5;case _Qu2:return 6;case _Ru2:return 7;case _Su2:return 8;case _Tu2:return 9;case _Uu2:return 10;case _Vu2:return 11;default :return 0;
}}_P62.prototype._4S=function(_xt){this._ou2._Df(_xt);var _IF=this;while(_IF!=null){_IF._q43._Df(_xt);_IF=_IF._fE;}};_P62.prototype._8S=function(_xt){this._ou2._SQ(_xt);var _L83=this;while(_L83!=null){_L83._q43._SQ(_xt);_L83=_L83._fE;}};_P62.prototype._M83=function(_D3,_74){if(!this.Event[_D3|_74])return;var _Kk=this._q43._Kk;for(var i=0;i<_Kk.length;i++){var _Gt=_Kk[i];this._b6(_D3,_74,_Gt,_Gt);}};function _yG2(){this._N83=[];this._W72=[];this.length=0;}_yG2.prototype._BX=function(){return this._W72;}
;_yG2.prototype._Df=function(_1X2){this.length++;this._N83[_1X2._2F]=_1X2;this._W72[_1X2._bO]=_1X2;};_yG2.prototype._26=function(_y83){return this._W72[_y83];};_yG2.prototype._1O=function(_gg){if(!this._W72[_gg])return false;else return true;};_yG2.prototype._O83=function(_y83){var _IF=this._W72[_y83];if(!_IF){return "<undefined>";}else {return _IF._2F;}};_yG2.prototype._P83=function(_b4){var _IF=this._N83[_b4];if(_IF!=null)return _IF._bO;return -1;};_yG2.prototype._I3=function(_D3,_74){for(var _UE=0;_UE<_H3._W72.length;
_UE++){var _IF=_H3._W72[_UE];if(_IF.Event[_D3|_74]){_IF._M83(_D3|_74);}}};_yG2.prototype._xH2=function(){var _Kk=this._W72;for(var index=0;index<_Kk.length;index++){var _IF=_Kk[index];_IF._fE=_H3._26(_IF._9O);if(!_IF._fE)_IF._fE=null;for(var e=0;e<_IF.Event.length;e++){var _Ii=_IF.Event[e];if(_Ii){_IF._It2[e]=true;}}}for(var index=0;index<_Kk.length;index++){var _U13=_Kk[index];var _IF=_U13._fE;while(_IF!=null){for(var e=0;e<_IF.Event.length;e++){var _Ii=_IF.Event[e];if(_Ii){_U13._It2[e]=true;}}_IF=_IF._fE;
}}};function GetWithArray(_y83){var _Q83=[];if((typeof _y83==="object")&&!((_y83 instanceof Array)||(_y83 instanceof ArrayBuffer))){_Q83[0]=_y83;}else if(_y83===_cO){_Q83=_S3._BX();}else if((typeof _y83==="undefined")){}else {_y83=yyGetInt32(_y83);var _IF=_H3._26(_y83);if(_IF!=null){_Q83=_IF._q43._Kk;}else {var _Gt=_xn._26(_y83);if(_Gt!=null){_Q83[0]=_Gt;}}}var _P4=[];for(var _I6=0;_I6<_Q83.length;++_I6){var _UE=_Q83[_I6];if(_UE instanceof _PN){if(!_UE.marked&&_UE.active){_P4.push(_UE);}}else {_P4.push(_UE);}}return _P4;
}function _ul(){this._Kk=[];this.length=0;this._E8=0;this._R83=-1;}_ul.prototype._26=function(_74){return this._Kk[_74];};_ul.prototype._Df=function(_VO2){for(var i=0;i<this._Kk.length;i++){if(_VO2.depth<this._Kk[i].depth){this._Kk.splice(i,0,_VO2);this._E8++;this.length=this._Kk.length;return i;}}this._Kk[this._Kk.length]=_VO2;this._E8++;this.length=this._Kk.length;return this.length-1;};_ul.prototype._5O=function(_VO2){if(this._R83<0){this._R83=this._Kk.length;}this._Kk[this._Kk.length]=_VO2;this._E8++;
this.length=this._Kk.length;return this.length-1;};_ul.prototype._J63=function(_VO2){var i=this._R83;if(i<0)return;var _Tg=[];while(i<this._Kk.length){_Tg[_Tg.length]=this._Kk[i];i++;}this._Kk.splice(this._R83,this._Kk.length-this._R83);for(i=0;i<_Tg.length;i++){this._Df(_Tg[i]);}this._R83=-1;};_ul.prototype._Cl=function(_VO2){for(var i=0;i<this._Kk.length;i++){if(_VO2==this._Kk[i]){this._Kk.splice(i,1);this._E8--;this.length=this._Kk.length;return true;}}return false;};_ul.prototype._Tf=function(){this._Kk=[];
this.length=this._E8=0;};_ul.prototype._26=function(_74){return this._Kk[_74];};_ul.prototype._nS=function(_VO2){for(var i=0;i<this._Kk.length;i++){if(_VO2==this._Kk[i]){return i;}}return -1;};_ul.prototype._qj=function(_rj){this._Kk=_rj._Kk.slice();this.length=_rj.length;this._E8=_rj._E8;this._R83=_rj._R83;};var _S83=0,_T83=1,_U83=2,_ut2=3,_ot2=4,_V83=5,_ht2=6,_W83=7,_kt2=8,_qt2=9,_ft2=10,_X83=11,_Y83=12,_wt2=13,_Z83=14,__83=0,_093=1,_193=2,_293=3,_393=4,_493=5,_Op=0,_593=1,_693=2,_793=0,_893=1,_993=2,
_a93=3;var _b93=[];function _c93(){this._qJ=_d93;this._Tf=_d93;this._qJ();}function _d93(){this.__type="[ParticleType]";this.id=-1;this._Xm=true;this._DS=-1;this._e93=true;this._f93=false;this._g93=false;this.shape=_S83;this._h93=1.0;this._i93=1.0;this._j93=0.0;this._k93=0.0;this._bP=1.0;this._cP=1.0;this._l93=100;this._m93=100;this._n93=0;this._o93=0;this._p93=0;this._q93=0;this._r93=0.0;this._s93=0.0;this._t93=0.0;this._u93=0.0;this._v93=0.0;this._w93=0.0;this._x93=0.0;this._y93=0.0;this._z93=0.0;
this._A93=0.0;this._B93=0.0;this._C93=0.0;this._D93=0.0;this._E93=0.0;this._F93=270.0;this._G93=__83;this._H93=[];this._H93[0]=_Fn;this._H93[1]=_Fn;this._H93[2]=_Fn;this._I93=1.0;this._J93=1.0;this._K93=1.0;this._L93=false;}function _M93(){this._Tf=_N93;this._qJ=_N93;this._qJ();}function _N93(){this._Xm=true;this._Yk=0;this._O93=0;this._DX=0.0;this._EX=0.0;this._FX=0.0;this._GX=0.0;this.shape=_793;this._P93=_Op;}function _Q93(){this._R93=false;this._O93=0;this._S93=0;this._T93=0;this.x=0;this.y=0;this.speed=0;
this._VX=0;this._I21=0;this.color=0xffffff;this.alpha=1.0;this.size=0;this._U93=0;this._V93=0;this.id=-1;}function _W93(){this._Tf=_X93;this._qJ=_X93;this._qJ();}function _X93(){this._Xm=false;this._Y93=[];this.emitters=[];this._Z93=true;this.depth=0.0;this.__93=0.0;this._0a3=0.0;this._1a3=true;this._2a3=true;this._3a3=-1;this._4a3=false;}function _um(_Pc){var _D4=_xV();return _D4*_Pc;}function _5a3(_6a3,_7a3,_8a3){var _Qu=_7a3-_6a3;if(_Qu<=0)return _6a3;var _27=0.0;var _kn=0.0;switch(_8a3){case _Op:_kn=_6a3+_um(1)*_Qu;
break;//Gaussian distribution, SD = 1, cutoff @ +/- 3
case _593:{do {_27=(_um(1)-0.5)*6.0;}while((exp(-(_27*_27)*0.5)<=_um(1)));_kn=_6a3+((_27+3.0)*(1.0/6.0))*_Qu;}break;//Inverse Gaussian distribution, SD = 1, cutoff @ +/- 3
case _693:{do {_27=(_um(1)-0.5)*6.0;}while(!(exp(-(_27*_27)*0.5)>_um(1)));if(_27<0.0)_27+=6.0;_kn=_6a3+(_27*(1.0/6.0))*_Qu;}break;default :_kn=_6a3+_um(1)*_Qu;}return _kn;}function _9a3(_oj,_Pc){var _VX;if(_oj==0){if(_Pc>0){_VX=270;}else if(_Pc<0){_VX=90;}else {_VX=0;}}else {var _8L=180.0*(Math.atan2(_Pc,
_oj))/Math.PI;if(_8L<=0){_VX=-_8L;}else {_VX=360.0-_8L;}}return _VX-360.0*Math.floor(_VX/360.0);}function _aa3(_im,_ba3){return _ba3*Math.cos(_im*Math.PI/180.0);}function _ca3(_im,_ba3){return -_ba3*Math.sin(_im*Math.PI/180.0);}function _da3(_ea3){var _fa3=_TE2[_ea3._O93];{if(_ea3._S93<=0||_ea3._T93<=0){switch(_fa3._G93){case __83:_ea3.color=_fa3._H93[0];break;case _093:_ea3.color=_fa3._H93[0];break;case _193:_ea3.color=_fa3._H93[0];break;case _293:{var _D4=~~(_5a3(_fa3._H93[0],_fa3._H93[1],_Op));var _E4=~~(_5a3(_fa3._H93[2],
_fa3._H93[3],_Op));var _F4=~~(_5a3(_fa3._H93[4],_fa3._H93[5],_Op));_ea3.color=(_D4<<16)+(_E4<<8)+_F4;}break;case _393:{var h=~~(_5a3(_fa3._H93[0],_fa3._H93[1],_Op));var _qi=~~(_5a3(_fa3._H93[2],_fa3._H93[3],_Op));var _n5=~~(_5a3(_fa3._H93[4],_fa3._H93[5],_Op));_ea3.color=0xffffff;}break;case _493:_ea3.color=_Nc(_mH(_fa3._H93[0],_fa3._H93[1],_um(1)));break;}}else {switch(_fa3._G93){case _093:{var _re=_ea3._S93/_ea3._T93;if(_re>1)_re=1;_ea3.color=_mH((_fa3._H93[0]),(_fa3._H93[1]),_re);}break;case _193:{var _re=2.0*_ea3._S93/_ea3._T93;
if(_re>2)_re=2;if(_re<1){_ea3.color=_mH(_fa3._H93[0],_fa3._H93[1],_re);}else {_ea3.color=_mH(_fa3._H93[1],_fa3._H93[2],_re-1);}}break;}}}}function _y21(_Q5,_R5,_ga3){var _kn=new _Q93;var _ha3=_TE2[_ga3];if(_ha3==null||_ha3==undefined)return null;_kn._R93=true;_kn._O93=_ga3;_kn.x=_Q5;_kn.y=_R5;_kn.speed=_5a3(_ha3._r93,_ha3._s93,0);_kn._VX=_5a3(_ha3._v93,_ha3._w93,0);_kn._I21=_5a3(_ha3._z93,_ha3._A93,0);_kn._T93=_5a3(_ha3._l93,_ha3._m93,0);_kn._S93=0;_kn.color=0xffffff;_da3(_kn);_kn.alpha=_ha3._I93;_kn.size=_5a3(_ha3._h93,
_ha3._i93,0);_kn._L93=_ha3._L93;if(_ha3._g93){_kn._U93=_um(10000);}else {_kn._U93=0;}_kn._V93=_um(100000);return _kn;}function _Wo(){var _t9=_TE2.length;_TE2[_t9]=new _c93();return _t9;}function _i_(_S4){_S4=yyGetInt32(_S4);var _ia3=_TE2[_S4];if(_ia3==null||_ia3==undefined)return false;_TE2[_S4]=null;return true;}function _k_(_S4){_S4=yyGetInt32(_S4);var _ia3=_TE2[_S4];if(_ia3==null||_ia3==undefined)return false;_TE2[_S4]._Tf();return true;}function _ja3(){_TE2=[];}function _j_(_S4){var _ia3=_TE2[yyGetInt32(_S4)];
if(_ia3==null||_ia3==undefined)return false;return true;}function _Yo(_S4,_Po){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3.shape=yyGetInt32(_Po);_ia3._DS=-1;}function _2p(_S4,_P3,_S7,_ka3,_la3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._DS=yyGetInt32(_P3);_ia3._e93=yyGetBool(_S7);_ia3._f93=yyGetBool(_ka3);_ia3._g93=yyGetBool(_la3);}function _Zo(_S4,_ma3,_na3,_oa3,_pa3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._h93=yyGetReal(_ma3);
_ia3._i93=yyGetReal(_na3);_ia3._j93=yyGetReal(_oa3);_ia3._k93=yyGetReal(_pa3);}function _l_(_S4,_2o,_3o){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._bP=yyGetReal(_2o);_ia3._cP=yyGetReal(_3o);}function _gp(_S4,_qa3,_ra3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._l93=yyGetInt32(_qa3);_ia3._m93=yyGetInt32(_ra3);}function _Cp(_S4,_sa3,_ta3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._o93=yyGetInt32(_sa3);_ia3._n93=yyGetInt32(_ta3);
}function _Dp(_S4,_ua3,_va3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._q93=yyGetInt32(_ua3);_ia3._p93=yyGetInt32(_va3);}function _np(_S4,_wa3,_xa3,_ya3,_za3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._r93=yyGetReal(_wa3);_ia3._s93=yyGetReal(_xa3);_ia3._t93=yyGetReal(_ya3);_ia3._u93=yyGetReal(_za3);}function _op(_S4,_Aa3,_Ba3,_Ca3,_Da3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._v93=yyGetReal(_Aa3);_ia3._w93=yyGetReal(_Ba3);
_ia3._x93=yyGetReal(_Ca3);_ia3._y93=yyGetReal(_Da3);}function _v_(_S4,_Ea3,_Fa3,_Ga3,_Ha3,_Ia3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._z93=yyGetReal(_Ea3);_ia3._A93=yyGetReal(_Fa3);_ia3._B93=yyGetReal(_Ga3);_ia3._C93=yyGetReal(_Ha3);_ia3._D93=yyGetBool(_Ia3);}function _sp(_S4,_Ja3,_Ka3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._E93=yyGetReal(_Ja3);_ia3._F93=yyGetReal(_Ka3);}function _r_(_S4,_La3,_Ma3,_Na3,_Oa3,_Pa3,_Qa3){var _ia3=_TE2[yyGetInt32(_S4)];
if(_ia3==null||_ia3==undefined)return;_ia3._G93=_293;_ia3._H93[0]=yyGetInt32(_La3);_ia3._H93[1]=yyGetInt32(_Ma3);_ia3._H93[2]=yyGetInt32(_Na3);_ia3._H93[3]=yyGetInt32(_Oa3);_ia3._H93[4]=yyGetInt32(_Pa3);_ia3._H93[5]=yyGetInt32(_Qa3);}function _8p(_S4,_Xp,_do){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._G93=_493;_ia3._H93[0]=_Nc(yyGetInt32(_Xp));_ia3._H93[1]=_Nc(yyGetInt32(_do));}function _s_(_S4,_Ra3,_Sa3,_Ta3,_Ua3,_Va3,_Wa3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;
_ia3._G93=_393;_ia3._H93[0]=yyGetInt32(_Ra3);_ia3._H93[1]=yyGetInt32(_Sa3);_ia3._H93[2]=yyGetInt32(_Ta3);_ia3._H93[3]=yyGetInt32(_Ua3);_ia3._H93[4]=yyGetInt32(_Va3);_ia3._H93[5]=yyGetInt32(_Wa3);}function _n_(_S4,_Xa3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._G93=__83;_ia3._H93[0]=_Nc(yyGetInt32(_Xa3));}function __o(_S4,_Xa3,_Ya3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._G93=_093;_ia3._H93[0]=_Nc(yyGetInt32(_Xa3));_ia3._H93[1]=_Nc(yyGetInt32(_Ya3));
}function _o_(_S4,_Xa3,_Za3,_Ya3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._G93=(_s8===null)?__83:_193;_ia3._H93[0]=_Nc(yyGetInt32(_Xa3));_ia3._H93[1]=_Nc(yyGetInt32(_Za3));_ia3._H93[2]=_Nc(yyGetInt32(_Ya3));}function _t_(_S4,__a3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;__a3=yyGetReal(__a3);_ia3._I93=__a3;_ia3._J93=__a3;_ia3._K93=__a3;}function _9p(_S4,__a3,_0b3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;__a3=yyGetReal(__a3);
_0b3=yyGetReal(_0b3);_ia3._I93=__a3;_ia3._J93=(__a3+_0b3)/2.0;_ia3._K93=_0b3;}function _u_(_S4,__a3,_1b3,_0b3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._I93=yyGetReal(__a3);_ia3._J93=yyGetReal(_1b3);_ia3._K93=yyGetReal(_0b3);}function _m_(_S4,_2b3){var _ia3=_TE2[yyGetInt32(_S4)];if(_ia3==null||_ia3==undefined)return;_ia3._L93=yyGetReal(_2b3);}function _Lp(_et2){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return -1;var _t9=_3b3.emitters.length;_3b3.emitters[_t9]=new _M93();
return _t9;}function _Qp(_et2,_S4){_S4=yyGetInt32(_S4);var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return false;var _4b3=_3b3.emitters[_S4];if(_4b3==null||_4b3==undefined)return false;_3b3.emitters[_S4]=null;return true;}function _w_(_et2){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return false;_3b3.emitters=[];return true;}function _x_(_et2,_S4){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return false;var _4b3=_3b3.emitters[yyGetInt32(_S4)];if(_4b3==null||_4b3==undefined)return false;
return true;}function _y_(_et2,_S4){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return false;var _4b3=_3b3.emitters[yyGetInt32(_S4)];if(_4b3==null||_4b3==undefined)return false;_4b3._qJ();}function _Np(_et2,_S4,_Gp,_Hp,_Ip,_Jp,_Po,_5b3){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;var _4b3=_3b3.emitters[yyGetInt32(_S4)];if(_4b3==null||_4b3==undefined)return;_4b3._DX=yyGetReal(_Gp);_4b3._EX=yyGetReal(_Hp);_4b3._FX=yyGetReal(_Ip);_4b3._GX=yyGetReal(_Jp);_4b3.shape=yyGetInt32(_Po);
_4b3._P93=yyGetInt32(_5b3);}function _Tp(_et2,_S4,_6b3,_eH){_6b3=yyGetInt32(_6b3);_eH=yyGetInt32(_eH);if(_eH<0){var _xV=_um(-_eH)|0;if(_xV==0){_eH=1;}else {return;}}var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;var _4b3=_3b3.emitters[yyGetInt32(_S4)];if(_4b3==null||_4b3==undefined)return;for(var i=0;i<=_eH-1;i++){var _27,_47;var _7b3=false;while(_7b3==false){_27=_5a3(0.0,1.0,_4b3._P93);_47=_5a3(0.0,1.0,_4b3._P93);if((_4b3._P93==_693)&&(_4b3.shape!=_a93)){if(_um()<0.5){_27=_5a3(0.0,
1.0,0);}else {_47=_5a3(0.0,1.0,0);}}switch(_4b3.shape){case _793:_7b3=true;break;case _893:{var _fb=_27-0.5;var _gb=_47-0.5;if((_fb*_fb+_gb*_gb)<=0.25)_7b3=true;break;}case _993:if((Math.abs(_27-0.5)+Math.abs(_47-0.5))<=0.5)_7b3=true;break;case _a93:_7b3=true;break;default :_7b3=true;break;}}if(_4b3.shape==_a93){_f_(_et2,_4b3._DX+(_4b3._EX-_4b3._DX)*_27,_4b3._FX+(_4b3._GX-_4b3._FX)*_27,_6b3,1);}else {_f_(_et2,_4b3._DX+(_4b3._EX-_4b3._DX)*_27,_4b3._FX+(_4b3._GX-_4b3._FX)*_47,_6b3,1);}}}function _Vp(_et2,_S4,
_6b3,_eH){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;var _4b3=_3b3.emitters[yyGetInt32(_S4)];if(_4b3==null||_4b3==undefined)return;_4b3._Yk=yyGetInt32(_eH);_4b3._O93=yyGetInt32(_6b3);}function _f_(_et2,_Q5,_R5,_ga3,_eH){_eH=yyGetInt32(_eH);_ga3=yyGetInt32(_ga3);var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;var _ha3=_TE2[_ga3];if(_ha3==null||_ha3==undefined)return false;for(var i=0;i<_eH;i++){var index=_3b3._Y93.length;_3b3._Y93[index]=_y21(yyGetReal(_Q5),
yyGetReal(_R5),_ga3);}}function _g_(_et2,_Q5,_R5,_ga3,_0d,_eH){_eH=yyGetInt32(_eH);_ga3=yyGetInt32(_ga3);var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;var _ha3=_TE2[_ga3];if(_ha3==null||_ha3==undefined)return false;for(var i=1;i<=_eH;i++){var index=_3b3._Y93.length;_3b3._Y93[index]=_y21(yyGetReal(_Q5),yyGetReal(_R5),_ga3);_3b3._Y93[index].color=_Nc(yyGetInt32(_0d));}}function _No(_et2){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return false;_3b3._Y93=[];return true;
}function _8b3(_9b3,_74){_9b3.splice(_74,1);}function _h_(_et2){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return 0;return _3b3._Y93.length;}function _Ho(_fS,_B_){if(_fS==undefined)_fS=-1;else _fS=yyGetInt32(_fS);if(_B_==undefined)_B_=true;else _B_=yyGetBool(_B_);if(_U3){var _ab3=null;if(_fS==-1){_ab3=new _dQ();_jO._FR(_S3,0,_ab3,true,true);}else {var room=_jO._eR();if(room!=null){layer=_jO._lO(room,_fS);if(layer!=null){_ab3=new _dQ();if(room==_S3){var _rb=_jO._zR(_S3,layer,_ab3,true);if(_rb==-1){
_jO._6R(_S3,_ab3._ke,true);_ab3=null;}}else {_jO._FR(_S3,0,_ab3,true,true);}}}}if(_ab3==null)return -1;}var layer=null;var index=_UE2.length;_UE2[index]=new _W93();_UE2[index].id=index;if(_U3){_UE2[index]._3a3=-1;}_UE2[index]._Tf();if(_U3){_ab3._eQ=index;_UE2[index]._3a3=_ab3._ke;_UE2[index]._4a3=!_B_;if(_fS!=-1){layer=_jO._lO(room,_fS);_UE2[index].depth=layer.depth;}}return index;}function _8_(_et2){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return false;return true;}function _Lo(_et2){
_et2=yyGetInt32(_et2);var _3b3=_UE2[_et2];if(_3b3==null||_3b3==undefined)return;_Io(_et2);_UE2[_et2]=null;return true;}function _bb3(){for(var i=0;i<_UE2.length;i++){if((_UE2[i]!=null)&&(_UE2[i]!=undefined)){_Io(i);}}_UE2=[];}function _Io(_et2){_et2=yyGetInt32(_et2);var _3b3=_UE2[_et2];if(_3b3==null||_3b3==undefined)return;if(_U3){if(_UE2[_et2]._3a3!==undefined){_jO._6R(_S3,_UE2[_et2]._3a3,true);}_UE2[_et2]._3a3=-1;_UE2[_et2]._4a3=false;}_3b3._Tf();}function _C_(_et2){if(!_8_(_et2))return -1;var _iO=null;
var _cR=_jO._dR(_S3,_UE2[_et2]._3a3);if(_cR==null)return -1;_iO=_cR.layer;if(_iO==null){return -1;}return _iO._ke;}function _D_(_et2,_fS){if(!_8_(_et2))return;if(_U3){_jO._6R(_S3,_UE2[_et2]._3a3,true);var _ab3=new _dQ();_ab3._eQ=_et2;var room=_jO._eR();if(room!=null){var layer=_jO._lO(room,_fS);if(layer!=null){if(room==_S3){_UE2[_et2]._3a3=_jO._zR(_S3,layer,_ab3,true);_UE2[_et2].depth=layer.depth;if(_UE2[_et2]._3a3==-1){_jO._6R(_S3,_ab3._ke,true);}}}if(_UE2[_et2]._3a3==-1){_UE2[_et2]._3a3=_jO._FR(_S3,_UE2[_et2].depth,
_ab3,true,true);}}}}function _cb3(){for(var _No1=0;_No1<_UE2.length;_No1++){if(!_UE2.hasOwnProperty(_No1))continue;var _3b3=_UE2[_No1];if(_3b3){_3b3._Y93=[];}}}function _9_(_et2,_db3){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;_3b3._Z93=_db3;}function _Jo(_et2,_rl){_et2=yyGetInt32(_et2);var _3b3=_UE2[_et2];if(_3b3==null||_3b3==undefined)return;_3b3.id=_et2;_3b3.depth=yyGetReal(_rl);_XF2.push({_eb3:_3b3,type:0});}function _a_(_et2,_Q5,_R5){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;
_3b3.__93=yyGetReal(_Q5);_3b3._0a3=yyGetReal(_R5);}function _b_(_et2,_fb3){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;_3b3._1a3=yyGetBool(_fb3);}function _c_(_et2,_fb3){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;_3b3._2a3=yyGetBool(_fb3);}function _gb3(_et2){var i=0;var _T6=0;var _t9=0;var _3b3=_UE2[_et2];var _hb3=_3b3._Y93;i=0;while(i<_hb3.length){var _ib3=_hb3[i];var _ha3=_TE2[_ib3._O93];_ib3._S93++;if(_ib3._S93>=_ib3._T93){_T6=_ha3._q93;if(_T6<0){if(_um(-_T6)==0)_T6=1;
}if(_T6>0){_f_(_et2,_ib3.x,_ib3.y,_ha3._p93,_T6);}_hb3.splice(i,1);}else {_T6=_ha3._o93;if(_T6<0){if(_um(-_T6)==0)_T6=1;}if(_T6>0){_f_(_et2,_ib3.x,_ib3.y,_ha3._n93,_T6);}i++;}}}function _jb3(_et2){var i=0;var _17=0;var hspeed=0.0;var vspeed=0.0;var _yh=0.0;var _p5=0.0;var _kb3=0.0;var _EF1=0.0;var _lb3=0.0;var _mb3=0.0;var _nb3=0.0;var _Vg2=0.0;var _ob3=0.0;var _3b3=_UE2[_et2];var _hb3=_3b3._Y93;for(i=0;i<_hb3.length;i++){var _ib3=_hb3[i];var _ha3=_TE2[_ib3._O93];_ib3.speed=_ib3.speed+_ha3._t93;if(_ib3.speed<0)_ib3.speed=0;
_ib3._VX=_ib3._VX+_ha3._x93;_ib3._I21=_ib3._I21+_ha3._B93;_mb3=0;_nb3=0;if((_ha3._E93!=0)||(_3b3.acount>0)){hspeed=_aa3(_ib3._VX,_ib3.speed);vspeed=_ca3(_ib3._VX,_ib3.speed);if(_ha3._E93!=0){_yh=_aa3(_ha3._F93,_ha3._E93);_p5=_ca3(_ha3._F93,_ha3._E93);hspeed=hspeed+_yh;vspeed=vspeed+_p5;}_ib3._VX=_9a3(hspeed,vspeed);_ib3.speed=Math.sqrt(hspeed*hspeed+vspeed*vspeed);}_Vg2=((_ib3._S93+3*_ib3._V93)%24)/6.0;if(_Vg2>2.0){_Vg2=4.0-_Vg2;}_Vg2=_Vg2-1.0;_ob3=((_ib3._S93+4*_ib3._V93)%20)/5.0;if(_ob3>2.0){_ob3=4.0-_ob3;
}_ob3=_ob3-1.0;hspeed=_aa3(_ib3._VX+_Vg2*_ha3._y93,_ib3.speed+_ob3*_ha3._u93);vspeed=_ca3(_ib3._VX+_Vg2*_ha3._y93,_ib3.speed+_ob3*_ha3._u93);_ib3.x=_ib3.x+hspeed+_mb3;_ib3.y=_ib3.y+vspeed+_nb3;}}function _pb3(_et2){var _3b3=_UE2[_et2];var _hb3=_3b3._Y93;for(var i=0;i<_hb3.length;i++){var _ib3=_hb3[i];var _ha3=_TE2[_ib3._O93];_ib3.size=_ib3.size+_ha3._j93;if(_ib3.size<0){_ib3.size=0;}_da3(_ib3);var _qb3;if(_ib3._T93>0){_qb3=2.0*_ib3._S93/_ib3._T93;}else {_qb3=1;}if(_qb3<1){_ib3.alpha=_ha3._I93*(1.0-_qb3)+_ha3._J93*_qb3;
}else {_ib3.alpha=_ha3._J93*(2.0-_qb3)+_ha3._K93*(_qb3-1);}}}function _d_(_et2){_et2=yyGetReal(_et2);var _3b3=_UE2[_et2];if(_3b3==null||_3b3==undefined)return 0;_gb3(_et2);_jb3(_et2);_pb3(_et2);var _rb3=_3b3.emitters;if(_rb3){for(var i=0;i<_rb3.length;i++){if(_rb3[i]!=null&&_rb3[i]._Yk!=0){_Tp(_et2,i,_rb3[i]._O93,_rb3[i]._Yk);}}}}function _sb3(){for(var i=0;i<_UE2.length;i++){var _3b3=_UE2[i];if(_3b3!=null){if(_3b3._1a3){_d_(i);}}}}function _tb3(_ea3,_R_,_S_){var _En=null;var _25=null;if(_ea3._T93<=0)return;
var _ha3=_TE2[_ea3._O93];_En=_16._26(_ha3._DS);if(_En==null){var shape=_ha3.shape;if((shape>=0)&&(shape<_Z83)){_25=_SE2[shape];if(_25==null){return;}}else {return;}}var _I6;if(_25!=null){}else {if(_En._tu<=0)return;if(!_ha3._e93){_I6=_ea3._U93;}else if(_ha3._f93){_I6=_ea3._U93+(_En._T6*_ea3._S93/_ea3._T93);}else {_I6=_ea3._U93+_ea3._S93;}}var _D4=((_ea3._S93+2*_ea3._V93)%16)/4.0;if(_D4>2.0)_D4=4.0-_D4;_D4=_D4-1.0;var _Zh2=_ea3._I21;if(_ha3._D93)_Zh2=_Zh2+_ea3._VX;_Zh2=_Zh2+_D4*_ha3._C93;_D4=((_ea3._S93+_ea3._V93)%16)/4.0;
if(_D4>2.0)_D4=4.0-_D4;_D4=_D4-1.0;if(_ea3._L93){_nL(1);}var _qi=_ea3.size+_D4*_ha3._k93;var c=_ea3.color;if(_25!=null){var _bP,_cP,_I21;var _NY2=_ha3._bP*_qi;var _OY2=_ha3._cP*_qi;var _ub3=_Zh2;var _vb3=~~(_ea3.x+_R_);var _wb3=~~(_ea3.y+_S_);if(_NY2==1&&_OY2==1&&_ub3==0&&_ea3.color==0xffffff){_os(_25,_vb3,_wb3,_ea3.alpha);}else {_zs(_25,0,0,_vb3,_wb3,_NY2,_OY2,_ub3*0.017453293,c,c,c,c,_ea3.alpha);}}else {_En._a9(_I6,_ea3.x+_R_,_ea3.y+_S_,_TE2[_ea3._O93]._bP*_qi,_TE2[_ea3._O93]._cP*_qi,_Zh2,c,_ea3.alpha);
}}function _e_(_et2){var _3b3=_UE2[yyGetInt32(_et2)];if(_3b3==null||_3b3==undefined)return;var src,_ea;if(_s8!=null){src=_xb3;_ea=_yb3;}var _hb3=_3b3._Y93;if(_3b3._Z93){for(var i=0;i<_3b3._Y93.length;i++){_tb3(_hb3[i],_3b3.__93,_3b3._0a3);}}else {for(var i=_3b3._Y93.length-1;i>=0;i--){_tb3(_hb3[i],_3b3.__93,_3b3._0a3);}}if(_s8!=null){_pL(src,_ea);}else {_nL(0);}}function _zb3(_DV){for(var i=0;i<_UE2.length;i++){var _3b3=_UE2[i];if(_3b3!=null){if(_3b3._2a3){if(Math.abs(_3b3.depth-_DV)<0.01)_e_(i);}}}}function _Ab3(){
if(_U3){if(_b93.length<_UE2.length){var _Bb3=_b93.length;for(var i=_Bb3;i<_UE2.length;i++){_b93[i]=null;}}for(var i=0;i<_UE2.length;i++){var _3b3=_UE2[i];if(_3b3!=null){if(_3b3._3a3==-1){var _Cb3=null;var _Db3=_b93[i];if(_Db3!=null){_Cb3=_jO._kO(_S3,_Db3);if(_Cb3==null){_Cb3=_jO._dS(_S3,_3b3.depth,_Db3);}}var _ab3=new _dQ();_ab3._eQ=i;if(_Cb3!=null){_3b3._3a3=_jO._zR(_S3,_Cb3,_ab3,true);}if(_3b3._3a3==-1){_3b3._3a3=_jO._FR(_S3,_3b3.depth,_ab3,true,true);}}}}_b93=[];}};function _Eb3(){if(_U3){for(var i=0;i<_UE2.length;
i++){var _3b3=_UE2[i];if(_3b3!=null){var _Cb3=null;if(_3b3._3a3!=-1){var _cR=_jO._dR(_S3,_3b3._3a3);if(_cR!=null){_Cb3=_cR.layer;}_jO._6R(_S3,_UE2[i]._3a3,true);_3b3._3a3=-1;}if(_3b3._4a3==true){_Lo(i);_b93[i]=null;}else {if(_Cb3!=null){if(_Cb3._lP==true){_b93[i]=null;}else {_b93[i]=_Cb3._mP;}}else {_b93[i]=null;}}}}}}function _Fb3(_et2){_et2=yyGetInt32(_et2);if(true==_8_(_et2)){var _3b3=_UE2[_et2];if(_3b3!=null){if(_3b3._2a3){_e_(_et2);}}}};function _Gb3(){var _kn=-1000000000;for(var i=0;i<_UE2.length;i++){
var _3b3=_UE2[i];if(_3b3!=null&&_3b3._Y93.length>0){if(_3b3._2a3){if(_3b3.depth>_kn)_kn=_3b3.depth;}}}return _kn;}function _Hb3(_DV){var _kn=-1000000000;for(var i=0;i<_UE2.length;i++){var _3b3=_UE2[i];if(_3b3!=null&&_3b3._Y93.length>0){if(_3b3._2a3){if((_3b3.depth>_kn)&&(_3b3.depth<_DV))_kn=_3b3.depth;}}}return _kn;}var _yW=0,_Ib3=1;var _Jb3=0;function _Kb3(_Q5,_R5,_lm){this.x=_Q5;this.y=_R5;this.speed=_lm;this._V6=0;}function _K_(){this.__type="[Path]";this.name="";this.id=_Jb3++;this.kind=0;this.closed=1;
this.precision=4;this._Tf();}_K_.prototype._Tf=function(){this.points=[];this._Lb3=[];this._E8=0;this._Mb3=0;this.length=0;};_K_.prototype._xW=function(__3){if((__3<0)||(__3>1)){this.kind=0;}else {this.kind=__3;}this._Nb3();};_K_.prototype._zW=function(__3){this.closed=__3;this._Nb3();};_K_.prototype._J_=function(__3){if(__3<0)__3=0;if(__3>8)__3=8;this.precision=__3;this._Nb3();};_K_.prototype._Ob3=function(){var i=0;this.length=0;if(this._Mb3<=0)return;this._Lb3[0]._V6=0;for(i=1;i<this._Mb3;i++){
this._Lb3[i]._V6=this.length=this.length+sqrt(_Kz(this._Lb3[i].x-this._Lb3[i-1].x)+_Kz(this._Lb3[i].y-this._Lb3[i-1].y));}};_K_.prototype._Pb3=function(_101,_201,_Qb3){this._Mb3++;var _Rb3=new _Kb3();this._Lb3[this._Mb3-1]=_Rb3;_Rb3.x=_101;_Rb3.y=_201;_Rb3.speed=_Qb3;};_K_.prototype._Sb3=function(){this._Mb3=0;if(this._E8<=0)return;for(var i=0;i<this._E8;i++){this._Pb3(this.points[i].x,this.points[i].y,this.points[i].speed);}if(this.closed){this._Pb3(this.points[0].x,this.points[0].y,this.points[0].speed);
}};_K_.prototype._Tb3=function(_rl,_b7,_c7,_ZA,_D6,_E6,__A,_8u,_9u,_Ub3){if(_rl==0)return;var _h7=(_b7+_D6+_D6+_8u)/4.0;var _i7=(_c7+_E6+_E6+_9u)/4.0;var _tA=(_ZA+__A+__A+_Ub3)/4.0;if(_Kz(_D6-_b7)+_Kz(_E6-_c7)>16.0){this._Tb3(_rl-1,_b7,_c7,_ZA,(_D6+_b7)/2.0,(_E6+_c7)/2.0,(__A+_ZA)/2.0,_h7,_i7,_tA);}this._Pb3(_h7,_i7,_tA);if(_Kz(_D6-_8u)+_Kz(_E6-_9u)>16.0){this._Tb3(_rl-1,_h7,_i7,_tA,(_8u+_D6)/2.0,(_9u+_E6)/2.0,(_Ub3+__A)/2.0,_8u,_9u,_Ub3);}};_K_.prototype._Vb3=function(){var i=0;var _I6=0;this._Mb3=0;
if(this._E8<=0)return;if(!this.closed){this._Pb3(this.points[0].x,this.points[0].y,this.points[0].speed);}if(this.closed){_I6=this._E8-1;}else {_I6=this._E8-3;}for(i=0;i<=_I6;i++){var _JA1=this.points[i%this._E8];var _KA1=this.points[(i+1)%this._E8];var _Wb3=this.points[(i+2)%this._E8];this._Tb3(this.precision,(_JA1.x+_KA1.x)/2.0,(_JA1.y+_KA1.y)/2.0,(_JA1.speed+_KA1.speed)/2.0,_KA1.x,_KA1.y,_KA1.speed,(_KA1.x+_Wb3.x)/2.0,(_KA1.y+_Wb3.y)/2.0,(_KA1.speed+_Wb3.speed)/2.0);}if(!this.closed){this._Pb3(this.points[this._E8-1].x,
this.points[this._E8-1].y,this.points[this._E8-1].speed);}else {this._Pb3(this._Lb3[0].x,this._Lb3[0].y,this._Lb3[0].speed);}};_K_.prototype._Nb3=function(){if(this.kind==1){this._Vb3();}else {this._Sb3();}this._Ob3();};function _FH2(_YO2){var _vW=new _K_();if((_YO2!=undefined)&&(_YO2!=null)){if(_YO2.precision!=undefined){_vW.precision=_YO2.precision;}if(_YO2.closed!=undefined){_vW.closed=_YO2.closed;}if(_YO2.kind!=undefined){_vW.kind=_YO2.kind;}if(_YO2.pName!=undefined){_vW.name=_YO2.pName;}if(_YO2.points!=undefined){
_vW._E8=_YO2.points.length;}for(var _ih=0;_ih<_YO2.points.length;_ih++){var _oP2=_YO2.points[_ih];var _Xb3=new _Kb3(_oP2.x,_oP2.y,_oP2.speed);_vW.points[_vW.points.length]=_Xb3;}_vW._Nb3();}return _vW;}var _Yb3=new _Kb3(0,0,100);_K_.prototype._W_=function(_S4){var _Lk=0;if(this._Mb3<=0){_Yb3.x=0;_Yb3.y=0;_Yb3.speed=0;return _Yb3;}if((this._Mb3==1)||(this.length==0)||(_S4<=0)){return this._Lb3[0];}if(_S4>=1){return this._Lb3[this._Mb3-1];}var _V6=this.length*_S4;_Lk=0;while((_Lk<this._Mb3-2)&&(_V6>=this._Lb3[_Lk+1]._V6)){
_Lk++;}var _Bl=this._Lb3[_Lk];_V6=_V6-_Bl._V6;var w=this._Lb3[_Lk+1]._V6-_Bl._V6;if(w!=0){_Lk++;_Yb3.x=_Bl.x+_V6*(this._Lb3[_Lk].x-_Bl.x)/w;_Yb3.y=_Bl.y+_V6*(this._Lb3[_Lk].y-_Bl.y)/w;_Yb3.speed=_Bl.speed+_V6*(this._Lb3[_Lk].speed-_Bl.speed)/w;_Bl=_Yb3;}return _Bl;};_K_.prototype._F_=function(_S4){var _ih=this._W_(_S4);return _ih.x;};_K_.prototype._G_=function(_S4){var _ih=this._W_(_S4);return _ih.y;};_K_.prototype._H_=function(_S4){var _ih=this._W_(_S4);return _ih.speed;};_K_.prototype._SN=function(_Zb3){
this.points=null;this._Lb3=null;this.name=_Zb3.name;this._E8=_Zb3._E8;this.kind=_Zb3.kind;this.closed=_Zb3.closed;this.precision=_Zb3.precision;this._Mb3=_Zb3._Mb3;this.length=_Zb3.length;this.points=[];var __b3;var _oP2;var _0c3=_Zb3.points;var _ea=this.points;for(var _ih=0;_ih<_0c3.length;_ih++){_oP2=_0c3[_ih];__b3=new _Kb3(_oP2.x,_oP2.y,_oP2.speed);__b3._V6=_oP2._V6;_ea[_ea.length]=__b3;}this._Lb3=[];var _1c3=_Zb3._Lb3;var _ea=this._Lb3;for(var _ih=0;_ih<_1c3.length;_ih++){_oP2=_1c3[_ih];__b3=new _Kb3(_oP2.x,
_oP2.y,_oP2.speed);__b3._V6=_oP2._V6;_ea[_ea.length]=__b3;}};_K_.prototype._X_=function(_R_,_S_){for(var i=0;i<=this._E8-1;i++){this.points[i].x+=_R_;this.points[i].y+=_S_;}this._Nb3();};_K_.prototype._2c3=function(){var _DX=100000000;var _EX=-100000000;var _FX=100000000;var _GX=-100000000;for(var i=0;i<=this._E8-1;i++){if(this.points[i].x<_DX)_DX=this.points[i].x;if(this.points[i].x>_EX)_EX=this.points[i].x;if(this.points[i].y<_FX)_FX=this.points[i].y;if(this.points[i].y>_GX)_GX=this.points[i].y;}return new _Kb3((_DX+_EX)/2.0,
(_FX+_GX)/2.0,0);};_K_.prototype._uX=function(){if(this._E8<=1)return;var _3c3=[];for(var i=this._E8-1;i>=0;i--){_3c3[_3c3.length]=this.points[i];}this.points=_3c3;this._Nb3();};_K_.prototype._001=function(){var _4c3=this._2c3();this._X_(-_4c3.x,-_4c3.y);for(var i=0;i<=this._E8-1;i++){this.points[i].x=-this.points[i].x;}this._X_(_4c3.x,_4c3.y);this._Nb3();};_K_.prototype.___=function(){var _4c3=this._2c3();this._X_(-_4c3.x,-_4c3.y);for(var i=0;i<=this._E8-1;i++){this.points[i].y=-this.points[i].y;}this._X_(_4c3.x,
_4c3.y);this._Nb3();};_K_.prototype._Z_=function(_U5){var _4c3=this._2c3();this._X_(-_4c3.x,-_4c3.y);for(var i=0;i<=this._E8-1;i++){var _27=this.points[i].x;var _47=this.points[i].y;var _XT=_U5*Math.PI/180.0;this.points[i].x=_27*Math.cos(_XT)+_47*Math.sin(_XT);this.points[i].y=_47*Math.cos(_XT)-_27*Math.sin(_XT);}this._X_(_4c3.x,_4c3.y);this._Nb3();};_K_.prototype._Y_=function(_2o,_3o){var _4c3=this._2c3();this._X_(-_4c3.x,-_4c3.y);for(var i=0;i<=this._E8-1;i++){this.points[i].x=this.points[i].x*_2o;this.points[i].y=this.points[i].y*_3o;
}this._X_(_4c3.x,_4c3.y);this._Nb3();};_K_.prototype._301=function(_S4,_101,_201,_Qb3){if(_S4<0||_S4>=this._E8)return;this.points[_S4].x=_101;this.points[_S4].y=_201;this.points[_S4].speed=_Qb3;this._Nb3();};_K_.prototype._601=function(_S4){if(_S4<0||_S4>=this._E8)return;this.points.splice(_S4,1);this._E8--;this._Nb3();};_K_.prototype._401=function(_Zb3){if(_Zb3._E8==0)return;for(var i=0;i<=_Zb3._E8-1;i++){this.points[this.points.length]=_Zb3.points[i];this._E8++;}this._Nb3();};_K_.prototype._501=function(_S4,
_101,_201,_Qb3){if(_S4<0||_S4>this._E8)return;this._E8++;var _oP2=new _Kb3(_101,_201,_Qb3);this.points.splice(_S4,0,_oP2);this._Nb3();};_K_.prototype._AW=function(_101,_201,_Qb3){var _oP2=new _Kb3(_101,_201,_Qb3);if(!this.points)this.points=[];this.points[this.points.length]=_oP2;this._E8++;this._Nb3();};function _FG2(){this.Paths=[];_Jb3=0;}_FG2.prototype._Df=function(_Zb3){this.Paths[_Zb3.id]=_Zb3;};_FG2.prototype._Cl=function(_Zb3){this.Paths[_Zb3.id]=undefined;};function _5c3(_rl){this.depth=_rl;this.visible=true;
this._6c3=new _sk();}_5c3.prototype._Df=function(_7c3){this._6c3._Df(_7c3);};_5c3.prototype._Cl=function(_7c3){this._6c3._SQ(_7c3);};_5c3.prototype._a9=function(_f_2){if(!this.visible){return;}var _Kk=this._6c3._Kk;for(var index=0;index<_Kk.length;index++){var _rf1=_Kk[index];if(_rf1!=null){var _dN1=_rf1.x+(_rf1._bP*_rf1.w),_8c3=_rf1.y+(_rf1._cP*_rf1.h);var _L6=(_rf1.x<_dN1)?_rf1.x:_dN1,_N6=(_rf1.x>_dN1)?_rf1.x:_dN1,_M6=(_rf1.y<_8c3)?_rf1.y:_8c3,_O6=(_rf1.y>_8c3)?_rf1.y:_8c3;if((_L6<=_f_2.right)&&(_M6<=_f_2.bottom)&&(_N6>=_f_2.left)&&(_O6>=_f_2.top)){
_rf1._a9();}}}};_5c3.prototype._BX=function(){return this._6c3._Kk;};function _9c3(){this._ac3=new _ul();this._bc3=-1;}_9c3.prototype._26=function(_rl){var _0g1;for(var index=0;index<this._ac3._E8;index++){_0g1=this._ac3._26(index);if(_0g1.depth==_rl)return _0g1;}return null;};_9c3.prototype._Cl=function(_rl){var _0g1=this._26(_rl);if(_0g1){this._ac3._Cl(_0g1);}};_9c3.prototype._Df=function(_7c3){var _0g1;_0g1=this._26(_7c3.depth);if(!_0g1){_0g1=new _5c3(_7c3.depth);this._ac3._Df(_0g1);}_0g1._Df(_7c3);};_9c3.prototype._wf1=function(_7c3){
var _0g1=this._26(_7c3.depth);if(_0g1){_0g1._Cl(_7c3);}};_9c3.prototype._cc3=function(){this._bc3=this._ac3.length-1;return this._ac3._26(this._bc3);};_9c3.prototype._Ay1=function(){this._bc3--;if(this._bc3<0)return null;return this._ac3._26(this._bc3);};_9c3.prototype._Wf1=function(_rl,_3_){var _0g1=this._26(_rl);if(_0g1)_0g1.visible=(_3_>=0.5);};function _pX(){this._Hl=[];this.offset=0;this._sX=_pX.prototype._dc3;this._qX=_pX.prototype._ec3;};_pX.prototype.Length=function(){return(this._Hl.length-this.offset);
};_pX.prototype._rX=function(_ce){return((this._Hl.length-this.offset)>=_ce);};_pX.prototype._fc3=function(){return(this._Hl.length==0);};_pX.prototype._ec3=function(_XO2){this._Hl.push(_XO2);};_pX.prototype._dc3=function(){if(this._fc3())return undefined;var _al=this._Hl[this.offset];if((++this.offset*2)>=this._Hl.length){this._Hl=this._Hl.slice(this.offset);this.offset=0;}return _al;};_pX.prototype._gc3=function(){if(this._Hl.length>0){return this._Hl[this.offset];}else {return undefined;}};function _J31(){
this.id=_kF2++;this._OQ();};_J31.prototype._OQ=function(){this.__type="[Room]";this._hc3="";this._ic3="";this._vV2=30;this._VS=1024;this._XS=768;this._F83=false;this._jc3=false;this._qU2=0xc0c0c0;this._dV2=true;this._kc3=true;this._lc3=true;this._mc3=[];for(var _Y6=0;_Y6<_DE2;_Y6++){this._mc3[_Y6]=null;}this._3g=false;this._nc3=null;this._yN=new _ul();this._3O=new _sk();this._3O._tk=true;this._423=[];this._7g1=0;this._yf1=[];this._Rf1=new _9c3();this._5g=[];this._oc3=[];this._RU=[];this._x31=null;this._mP="Room";
this._c01=null;this._8R=new _ul();this._DX2=[];this._CX2=0;};_J31.prototype._pc3=function(){return this._3g;};_J31.prototype._JX=function(){return this._VS;};_J31.prototype._KX=function(){return this._XS;};_J31.prototype._T3=function(){return this._vV2;};_J31.prototype._qc3=function(){return this._mP;};_J31.prototype._rc3=function(){return this._ic3;};_J31.prototype._Rq2=function(){return this._F83;};_J31.prototype._BX=function(){return this._yN._Kk;};_J31.prototype._xV2=function(__3){this._VS=__3;g_pBuiltIn.room_width=__3;
};_J31.prototype._yV2=function(__3){this._XS=__3;g_pBuiltIn.room_height=__3;};_J31.prototype._uV2=function(__3){this._vV2=__3;g_pBuiltIn.room_speed=__3;};_J31.prototype._sc3=function(_b4){this._mP=_b4;};_J31.prototype._wV2=function(_Qh1){this._ic3=_Qh1;g_pBuiltIn.room_caption=_Qh1;};_J31.prototype._Qq2=function(__3){this._F83=__3;g_pBuiltIn.room_persistent=__3;};_J31.prototype._K31=function(){this._x31={pName:"room_empty_"+this.id,width:640,height:480,backgrounds:[{},{},{},{},{},{},{},{}],views:[{
},{},{},{},{},{},{},{}],pInstances:[],tiles:[]};this._tc3(this._x31);};_J31.prototype._uc3=function(_YO2){if(_YO2!=null){this._x31.width=_YO2.width;this._x31.height=_YO2.height;this._x31.colour=_YO2.colour;this._x31.showColour=_YO2.showColour;this._x31.enableViews=_YO2.enableViews;this._x31.viewClearScreen=_YO2.viewClearScreen;this._x31.pCaption=_YO2.pCaption;this._x31.speed=_YO2.speed;this._x31.persistent=_YO2.persistent;this._x31._vc3=_YO2._vc3;this._x31.LayerCount=_YO2.LayerCount;if(_YO2.pCode){
this._x31.pCode=_YO2.pCode;}if(_YO2.physicsWorld){this._x31.physicsWorld=_YO2.physicsWorld;this._x31.physicsTop=_YO2.physicsTop;this._x31.physicsLeft=_YO2.physicsLeft;this._x31.physicsRight=_YO2.physicsRight;this._x31.physicsBottom=_YO2.physicsBottom;this._x31.physicsGravityX=_YO2.physicsGravityX;this._x31.physicsGravityY=_YO2.physicsGravityY;this._x31.physicsPixToMeters=_YO2.physicsPixToMeters;}for(var i=0;i<_YO2.backgrounds.length;i++){var _wc3=_YO2.backgrounds[i];if(_wc3!=null){this._x31.backgrounds[i]={
visible:_wc3.visible,index:_wc3.index,vspeed:_wc3.vspeed,hspeed:_wc3.hspeed,foreground:_wc3.foreground,x:_wc3.x,y:_wc3.y,htiled:_wc3.htiled,vtiled:_wc3.vtiled,stretch:_wc3.stretch,alpha:_wc3.alpha,_dP:_wc3._dP};}}for(var i=0;i<_YO2.views.length;i++){var _xc3=_YO2.views[i];if(_xc3){this._x31.views[i]={visible:_xc3.visible,xview:_xc3.xview,yview:_xc3.yview,wview:_xc3.wview,hview:_xc3.hview,xport:_xc3.xport,yport:_xc3.yport,wport:_xc3.wport,hport:_xc3.hport,hborder:_xc3.hborder,vborder:_xc3.vborder,hspeed:_xc3.hspeed,
vspeed:_xc3.vspeed,index:_xc3.index};}}this._x31.pInstances=new Array(_YO2.pInstances.length);for(var i=0;i<_YO2.pInstances.length;i++){var _yc3=_YO2.pInstances[i];if(_yc3){this._x31.pInstances[i]={x:_yc3.x,y:_yc3.y,index:_yc3.index,id:_yc3.id,rotation:_yc3.image_angle,scaleX:_yc3.scaleX,scaleY:_yc3.scaleY,imageSpeed:_yc3.imageSpeed,imageIndex:_yc3.imageIndex,colour:_yc3.image_blend,pCode:_yc3.pCode,pPreCreateCode:_yc3.pPreCreateCode};}}this._x31.tiles=new Array(_YO2.tiles.length);for(var i=0;i<_YO2.tiles.length;
i++){var _zc3=_YO2.tiles[i];if(_zc3!=null){this._x31.tiles[i]={x:_zc3.x,y:_zc3.y,index:_zc3.index,xo:_zc3.xo,yo:_zc3.yo,w:_zc3.w,h:_zc3.h,depth:_zc3.depth,id:_zc3.id,scaleX:_zc3.scaleX,scaleY:_zc3.scaleY,colour:_zc3.colour};}}this._x31.layers=new Array(_YO2.layers.length);for(var i=0;i<_YO2.layers.length;i++){var _Ac3=_YO2.layers[i];if(_Ac3!=null){var _Bc3={pName:_Ac3.pName,id:_Ac3.id,type:_Ac3.type,depth:_Ac3.depth,x:_Ac3.x,y:_Ac3.y,hspeed:_Ac3.hspeed,vspeed:_Ac3.vspeed,visible:_Ac3.visible,effectEnabled:_Ac3.effectEnabled,
effectType:_Ac3.effectType};_Bc3.effectProperties=new Array(_Ac3.effectProperties.length);var _Cc3;for(_Cc3=0;_Cc3<_Ac3.effectProperties.length;_Cc3++){_Bc3._Dc3[_Cc3]={type:_Ac3.effectProperties[_Cc3].type,name:_Ac3.effectProperties[_Cc3].name,value:_Ac3.effectProperties[_Cc3].value};}switch(_Ac3.type){case _IO:_Bc3.bvisible=_Ac3.bvisible;_Bc3.bforeground=_Ac3.bforeground;_Bc3.bindex=_Ac3.bindex;_Bc3.bhtiled=_Ac3.bhtiled;_Bc3.bvtiled=_Ac3.bvtiled;_Bc3.bstretch=_Ac3.bstretch;_Bc3.bblend=_Ac3.bblend;
_Bc3.playbackspeedtype=_Ac3.playbackspeedtype;_Bc3.bimage_index=_Ac3.bimage_index;_Bc3.bimage_speed=_Ac3.bimage_speed;break;case _JO:_Bc3.icount=_Ac3.icount;_Bc3.iinstIDs=_Ac3.iinstIDs?_Ac3.iinstIDs.slice(0):[];break;case _LO:_Bc3.tcount=_Ac3.tcount;_Bc3.tMapWidth=_Ac3.tMapWidth;_Bc3.tMapHeight=_Ac3.tMapHeight;_Bc3.tIndex=_Ac3.tIndex;_Bc3.ttiles=_Ac3.ttiles?_Ac3.ttiles.slice(0):[];break;case _KO:var _Ec3;_Bc3.acount=_Ac3.acount;_Bc3.assets=new Array(_Ac3.assets.length);for(_Ec3=0;_Ec3<_Ac3.assets.length;
_Ec3++){_Bc3.assets[_Ec3]={ax:_Ac3.assets[_Ec3].ax,ay:_Ac3.assets[_Ec3].ay,aindex:_Ac3.assets[_Ec3].aindex,aXO:_Ac3.assets[_Ec3].aXO,aYO:_Ac3.assets[_Ec3].aYO,aW:_Ac3.assets[_Ec3].aW,aH:_Ac3.assets[_Ec3].aH,aDepth:_Ac3.assets[_Ec3].aDepth,aId:_Ac3.assets[_Ec3].aId,aXScale:_Ac3.assets[_Ec3].aXScale,aYScale:_Ac3.assets[_Ec3].aYScale,aBlend:_Ac3.assets[_Ec3].aBlend};}_Bc3.scount=_Ac3.scount;_Bc3.sprites=new Array(_Ac3.sprites.length);for(_Ec3=0;_Ec3<_Ac3.sprites.length;_Ec3++){_Bc3.sprites[_Ec3]={sName:_Ac3.sprites[_Ec3].sName,
sIndex:_Ac3.sprites[_Ec3].sIndex,sX:_Ac3.sprites[_Ec3].sX,sY:_Ac3.sprites[_Ec3].sY,sXScale:_Ac3.sprites[_Ec3].sXScale,sYScale:_Ac3.sprites[_Ec3].sYScale,sBlend:_Ac3.sprites[_Ec3].sBlend,sPlaybackSpeedType:_Ac3.sprites[_Ec3].sPlaybackSpeedType,sImageSpeed:_Ac3.sprites[_Ec3].sImageSpeed,sImageIndex:_Ac3.sprites[_Ec3].sImageIndex,sRotation:_Ac3.sprites[_Ec3].sRotation};}_Bc3.ecount=_Ac3.ecount;_Bc3.sequences=new Array(_Ac3.sequences.length);for(_Ec3=0;_Ec3<_Ac3.sequences.length;_Ec3++){_Bc3.sequences[_Ec3]={
sName:_Ac3.sequences[_Ec3].sName,sIndex:_Ac3.sequences[_Ec3].sIndex,sX:_Ac3.sequences[_Ec3].sX,sY:_Ac3.sequences[_Ec3].sY,sXScale:_Ac3.sequences[_Ec3].sXScale,sYScale:_Ac3.sequences[_Ec3].sYScale,sBlend:_Ac3.sequences[_Ec3].sBlend,sPlaybackSpeedType:_Ac3.sequences[_Ec3].sPlaybackSpeedType,sImageSpeed:_Ac3.sequences[_Ec3].sImageSpeed,sHeadPosition:_Ac3.sequences[_Ec3].sHeadPosition,sRotation:_Ac3.sequences[_Ec3].sRotation};}break;case _NO:_Bc3._uP=_Ac3._uP;break;}this._x31.layers[i]=_Bc3;}}}};_J31.prototype._tc3=function(_Fc3){
this._OQ();this._x31=_Fc3;if(_Fc3.pName!=undefined)this._sc3(_Fc3.pName);if(_Fc3.pCaption!=undefined)this._wV2(_Fc3.pCaption);if(_Fc3.width!=undefined)this._xV2(_Fc3.width);if(_Fc3.height!=undefined)this._yV2(_Fc3.height);if(_Fc3.speed!=undefined)this._uV2(_Fc3.speed);if(_Fc3.persistent!=undefined)this._Qq2(_Fc3.persistent);if(_Fc3.colour!=undefined)this._qU2=_Fc3.colour;if(_Fc3.showColour!=undefined)this._dV2=_Fc3.showColour;if(_Fc3.enableViews!=undefined)this._3g=_Fc3.enableViews;if(_Fc3.viewClearScreen!=undefined)this._kc3=_Fc3.viewClearScreen;
if(_Fc3._vc3!=undefined)this._lc3=_Fc3._vc3;this._xV2(this._VS);this._yV2(this._XS);this._uV2(this._vV2);this._wV2(this._ic3);this._Qq2(this._F83);this._5g=[];this._7g1=0;for(var index=0;index<_Fc3.tiles.length;index++){var _Gc3=_Fc3.tiles[index];if(_Gc3!=null){var _rf1=_Hc3(_Gc3);this._Rf1._Df(_rf1);this._yf1[_rf1.id]=_rf1;this._7g1++;}}if(_Fc3.pCode!=undefined)this._nc3=_Fc3.pCode;for(var _n5=0;_n5<_Fc3.views.length;_n5++){this._5g[_n5]=_Ic3(_Fc3.views[_n5]);}if(_Fc3.LayerCount!=undefined){if(_Fc3.LayerCount>0){
_jO._SS(this,_Fc3.layers);}}};_J31.prototype._Jc3=function(){if(this._x31.physicsWorld){if(_U3){this._c01=new _f01(this._x31.physicsPixToMeters,_W3._X3());}else {this._c01=new _f01(this._x31.physicsPixToMeters,this._T3());}this._c01._k01(this._x31.physicsGravityX,this._x31.physicsGravityY);}};_J31.prototype._Kc3=function(_Lc3){var i;var _Mc3=0;var _Nc3=[];for(i=this._yN.length-1;i>=0;i--){var _Tm=this._yN._26(0);if(_Lc3){_Tm._b6(_FN,0,_Tm,_Tm);}this._Oc3(_Tm);}for(i=this._3O.length-1;i>=0;i--){this._Oc3(this._3O._26(0));
}};_J31.prototype._N31=function(){this._x31.pInstances=[];};_J31.prototype._k_1=function(index){if(this._5g!=undefined){var _hz=this._5g[index];if(_hz!=undefined)return _hz;}return undefined;};_J31.prototype._Um=function(_Q5,_R5,_Rm){return this._4S(_Q5,_R5,_QN++,_Rm,false,0);};_J31.prototype._nU=function(_Q5,_R5,_QQ,_Rm){return this._Pc3(_Q5,_R5,_QQ,_QN++,_Rm,true);};_J31.prototype._mU=function(_Q5,_R5,_rl,_Rm){var _Tm=this._4S(_Q5,_R5,_QN++,_Rm,true,_rl);return _Tm;};_J31.prototype._Qc3=function(_Q5,
_R5,_gg,_GN,_Rc3,_Sc3,_Tc3,_Uc3,_S22,_Mc){var _Vc3=new _PN(_Q5,_R5,_gg,_GN,true);this._yN._5O(_Vc3);_xn._Df(_Vc3);if(_Tc3!=undefined)_Vc3.image_speed=_Tc3;if(_Uc3!=undefined)_Vc3.image_index=_Uc3;if(_Rc3!=undefined)_Vc3.image_xscale=_Rc3;if(_Sc3!=undefined)_Vc3.image_yscale=_Sc3;if(_S22!=undefined)_Vc3.image_angle=_S22;if(_Mc!=undefined){_Vc3.image_blend=_Mc&0xffffff;_Vc3.image_alpha=((_Mc>>24)&0xff)/255.0;}if(_U3){_Vc3._F13=_Vc3._E13=_Vc3.image_index;var _cR=_jO._yS(this,_gg);if(_cR==null){_jO._4S(this,
_Vc3);}else {_jO._wR(this,_cR.layer,_cR._pd);}}_Vc3._C23();return _Vc3;};_J31.prototype._4S=function(_Q5,_R5,_gg,_GN,_Wc3,_rl){var _Vc3=new _PN(_Q5,_R5,_gg,_GN,true);this._yN._5O(_Vc3);_xn._Df(_Vc3);if(_Wc3){_Vc3.depth=_rl;}if(_U3){var _cR=_jO._yS(this,_gg);if(_cR==null){_jO._4S(this,_Vc3);}else {_jO._wR(this,_cR.layer,_cR._pd);}}_Vc3._C23();return _Vc3;};_J31.prototype._Pc3=function(_Q5,_R5,_QQ,_gg,_GN){var _Vc3=new _PN(_Q5,_R5,_gg,_GN,true);_Vc3.depth=_QQ.depth;this._yN._5O(_Vc3);_xn._Df(_Vc3);_Vc3._C23();
if(_U3)_jO._6S(this,_QQ,_Vc3);return _Vc3;};_J31.prototype._UN=function(_tt){this._yN._5O(_tt);_xn._Df(_tt);if(_U3){var _iO=_jO._lO(this,_tt._jR);if(_iO!=null)_jO._6S(this,_iO,_tt);}};_J31.prototype._Xc3=function(){var w=display_get_width();var h=display_get_height();for(var i=0;i<_EE2;i++){g_pBuiltIn.view_visible[i]=false;g_pBuiltIn.view_xview[i]=0;g_pBuiltIn.view_yview[i]=0;g_pBuiltIn.view_wview[i]=_S3._VS;g_pBuiltIn.view_hview[i]=_S3._XS;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._5g.length;i++){var _6g=this._5g[i];g_pBuiltIn.view_visible[index]=_6g.visible;g_pBuiltIn.view_xview[index]=_6g._1e1;g_pBuiltIn.view_yview[index]=_6g._3e1;g_pBuiltIn.view_wview[index]=_6g._5e1;g_pBuiltIn.view_hview[index]=_6g._7e1;
g_pBuiltIn.view_xport[index]=_6g._Yc3;g_pBuiltIn.view_yport[index]=_6g._Zc3;g_pBuiltIn.view_wport[index]=_6g.__c3;g_pBuiltIn.view_hport[index]=_6g._0d3;g_pBuiltIn.view_angle[index]=_6g.angle;g_pBuiltIn.view_hborder[index]=_6g.hborder;g_pBuiltIn.view_vborder[index]=_6g.vborder;g_pBuiltIn.view_hspeed[index]=_6g.hspeed;g_pBuiltIn.view_vspeed[index]=_6g.vspeed;g_pBuiltIn.view_object[index]=_6g._Sm;g_pBuiltIn.view_surface_id[index]=_6g._aM;g_pBuiltIn.view_camera[index]=_6g._C31;index++;}};_J31.prototype._1d3=function(){
var index=0;for(var i=0;i<this._5g.length;i++){var _6g=this._5g[i];_6g.visible=g_pBuiltIn.view_visible[index];_6g._1e1=g_pBuiltIn.view_xview[index];_6g._3e1=g_pBuiltIn.view_yview[index];_6g._5e1=g_pBuiltIn.view_wview[index];_6g._7e1=g_pBuiltIn.view_hview[index];_6g._Yc3=g_pBuiltIn.view_xport[index];_6g._Zc3=g_pBuiltIn.view_yport[index];_6g.__c3=g_pBuiltIn.view_wport[index];_6g._0d3=g_pBuiltIn.view_hport[index];_6g.angle=g_pBuiltIn.view_angle[index];_6g.hborder=g_pBuiltIn.view_hborder[index];_6g.vborder=g_pBuiltIn.view_vborder[index];
_6g.hspeed=g_pBuiltIn.view_hspeed[index];_6g.vspeed=g_pBuiltIn.view_vspeed[index];_6g._Sm=g_pBuiltIn.view_object[index];_6g._aM=g_pBuiltIn.view_surface_id[index];_6g._C31=g_pBuiltIn.view_camera[index];index++;}};_J31.prototype._2d3=function(){for(var i=0;i<_Wq._Nr.length;i++){var _Qr=_Wq._26(i);_Qr.hspeed=g_pBuiltIn._kU2[i];_Qr.vspeed=g_pBuiltIn._lU2[i];_Qr.x=g_pBuiltIn._cU2[i];_Qr.y=g_pBuiltIn._dU2[i];_Qr.x+=_Qr.hspeed;_Qr.y+=_Qr.vspeed;g_pBuiltIn._cU2[i]=_Qr.x;g_pBuiltIn._dU2[i]=_Qr.y;}};_J31.prototype._3d3=function(){
var i;var _V6,_Y6,_Nj,_ms2;var _6g;var _Gt;if(!this._3g)return;this._1d3();for(i=0;i<this._5g.length;i++){_6g=this._5g[i];if(!_6g.visible)continue;if(_U3&&_s8==null){if(_6g._C31!=-1){var _br2=_qs2._Uq2(_6g._C31);if(_br2!=null){_6g._Sm=_br2._Iq2;}}}if(_U3){if(_6g._C31!=-1){var _br2=_qs2._Uq2(_6g._C31);if(_br2!=null){_br2._Uf();}}}else if((_6g.visible)&&(_6g._Sm>=0)){_Gt=null;if(_6g._Sm<100000){var _IF=_H3._26(_6g._Sm);if(_IF!=null){var _Kk=_IF._W01();for(var _UE=0;_UE<_Kk.length;_UE++){_Gt=_Kk[_UE];if(!_Gt.marked)break;
_Gt=null;}}}else {_Gt=_xn._26(_6g._Sm);if(!_Gt&&_Gt.marked)_Gt=null;}if(_Gt!=null){_V6=_6g._1e1;_Y6=_6g._3e1;_Nj=_Gt.x;_ms2=_Gt.y;if(2*_6g.hborder>=_6g._5e1){_V6=_Nj-_6g._5e1/2;}else if(_Nj-_6g.hborder<_6g._1e1){_V6=_Nj-_6g.hborder;}else if(_Nj+_6g.hborder>_6g._1e1+_6g._5e1){_V6=_Nj+_6g.hborder-_6g._5e1;}if(2*_6g.vborder>=_6g._7e1){_Y6=_ms2-_6g._7e1/2;}else if(_ms2-_6g.vborder<_6g._3e1){_Y6=_ms2-_6g.vborder;}else if(_ms2+_6g.vborder>_6g._3e1+_6g._7e1){_Y6=_ms2+_6g.vborder-_6g._7e1;}if(_V6<0)_V6=0;if(_V6+_6g._5e1>this._VS)_V6=this._VS-_6g._5e1;
if(_Y6<0)_Y6=0;if(_Y6+_6g._7e1>this._XS)_Y6=this._XS-_6g._7e1;if(_6g.hspeed>=0){if((_V6<_6g._1e1)&&(_6g._1e1-_V6>_6g.hspeed))_V6=_6g._1e1-_6g.hspeed;if((_V6>_6g._1e1)&&(_V6-_6g._1e1>_6g.hspeed))_V6=_6g._1e1+_6g.hspeed;}if(_6g.vspeed>=0){if((_Y6<_6g._3e1)&&(_6g._3e1-_Y6>_6g.vspeed))_Y6=_6g._3e1-_6g.vspeed;if((_Y6>_6g._3e1)&&(_Y6-_6g._3e1>_6g.vspeed))_Y6=_6g._3e1+_6g.vspeed;}_6g._1e1=_V6;_6g._3e1=_Y6;}}}this._Xc3();var left,right,top,bottom;left=999999;right=-999999;top=999999;bottom=-999999;for(var i=0;
i<_S3._5g.length;i++){_6g=_S3._5g[i];if(_6g.visible){if(left>_6g._Yc3)left=_6g._Yc3;if(right<(_6g._Yc3+_6g.__c3))right=_6g._Yc3+_6g.__c3;if(top>_6g._Zc3)top=_6g._Zc3;if(bottom<(_6g._Zc3+_6g._0d3))bottom=_6g._Zc3+_6g._0d3;}}_ei1=_Sd1/(right-left);_fi1=_Td1/(bottom-top);};var _4d3=false;_J31.prototype._5d3=function(_f_2){var _0g1=this._Rf1._cc3();var _6d3=_0g1.depth;for(var i=this._yN.length-1;i>=0;i--){var _Gt=this._yN._26(i);if(_Gt.marked||_Gt.visible==0)continue;while(_6d3>_Gt.depth){_0g1._a9(_f_2);
_0g1=this._Rf1._Ay1();if(_0g1){_6d3=_0g1.depth;}else {_6d3=-1000000000000;}}if(!_Gt._It2[_yx2]){var _4u2=_16._26(_Gt.sprite_index);if(_4u2){if((_Gt.image_xscale==1.0)&&(_Gt.image_yscale==1.0)&&(_Gt.image_angle==0.0)&&(_Gt.image_blend==0xffffff)){_4u2._mf1(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_alpha*_Kc);}else {_4u2._a9(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_xscale,_Gt.image_yscale,_Gt.image_angle,_Nc(_Gt.image_blend),_Gt.image_alpha*_Kc);}}}else {_n6=_Gt;_Gt._b6(_yx2,0,_Gt,_Gt);_n6=null;}}while(_0g1){
_0g1._a9(_f_2);_0g1=this._Rf1._Ay1();}};_J31.prototype._7d3=function(_f_2){var _4u2,_Gt,i,_Kk,_JG;_Kk=this._yN._Kk;_JG=_16.Sprites;for(i=_Kk.length-1;i>=0;i--){_Gt=_Kk[i];if(_Gt.marked||!_Gt.visible)continue;if(!_Gt._It2[_yx2]){_4u2=_JG[_Gt.sprite_index];if(_4u2){_n6=_Gt;if((_Gt.image_xscale==1.0)&&(_Gt.image_yscale==1.0)&&(_Gt.image_angle==0.0)&&(_Gt.image_blend==0xffffff)){_4u2._mf1(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_alpha*_Kc);}else {_4u2._a9(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_xscale,_Gt.image_yscale,
_Gt.image_angle,_Nc(_Gt.image_blend),_Gt.image_alpha*_Kc);}_n6=null;}}else {_n6=_Gt;_Gt._b6(_yx2,0,_Gt,_Gt);_n6=null;}}};_J31.prototype._8d3=function(_f_2){var _9d3=_Gb3();for(var i=this._yN.length-1;i>=0;i--){var _Gt=this._yN._26(i);if(_Gt.marked||_Gt.visible==0)continue;var _ad3=_9d3;while(_9d3>_Gt.depth){_zb3(_9d3);_9d3=_Hb3(_9d3);if(_9d3==_ad3){break;}_ad3=_9d3;}if(!_Gt._It2[_yx2]){var _4u2=_16._26(_Gt.sprite_index);if(_4u2){if((_Gt.image_xscale==1.0)&&(_Gt.image_yscale==1.0)&&(_Gt.image_angle==0.0)&&(_Gt.image_blend==0xffffff)){
_4u2._mf1(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_alpha*_Kc);}else {_4u2._a9(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_xscale,_Gt.image_yscale,_Gt.image_angle,_Nc(_Gt.image_blend),_Gt.image_alpha*_Kc);}}}else {_n6=_Gt;_Gt._b6(_yx2,0,_Gt,_Gt);_n6=null;}}while(_9d3>-1000000000){_zb3(_9d3);_9d3=_Hb3(_9d3);}};_J31.prototype._bd3=function(_f_2){var _9d3=_Gb3();var _0g1=this._Rf1._cc3();var _cd3=_0g1.depth;for(var i=this._yN.length-1;i>=0;i--){var _Gt=this._yN._26(i);if(_Gt.marked||_Gt.visible==0)continue;while(true){
if(_cd3>_Gt.depth){if(_cd3>_9d3){_0g1._a9(_f_2);_0g1=this._Rf1._Ay1();if(_0g1){_cd3=_0g1.depth;}else {_cd3=-1000000000000;}}else {_zb3(_9d3);_9d3=_Hb3(_9d3);}}else if(_9d3>_Gt.depth){_zb3(_9d3);_9d3=_Hb3(_9d3);}else {break;}}if(!_Gt._It2[_yx2]){var _4u2=_16._26(_Gt.sprite_index);if(_4u2){if((_Gt.image_xscale==1.0)&&(_Gt.image_yscale==1.0)&&(_Gt.image_angle==0.0)&&(_Gt.image_blend==0xffffff)){_4u2._mf1(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_alpha*_Kc);}else {_4u2._a9(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_xscale,
_Gt.image_yscale,_Gt.image_angle,_Nc(_Gt.image_blend),_Gt.image_alpha*_Kc);}}}else {_n6=_Gt;_Gt._b6(_yx2,0,_Gt,_Gt);_n6=null;}}while(true){if(_cd3>_9d3){_0g1._a9(_f_2);_0g1=this._Rf1._Ay1();if(_0g1){_cd3=_0g1.depth;}else {_cd3=-1000000000000;}}else {if(_9d3<=-1000000000)break;_zb3(_9d3);_9d3=_Hb3(_9d3);}}};_J31.prototype._dd3=function(_f_2,_QQ,_2R){var _Tm=_2R._qO;if(_Tm!=null){if(!_Tm.marked&&_Tm.active&&_Tm.visible&&(!_Tm._y23()||!_Tm._n23())){var _Qg=_H3._26(_Tm.object_index);if(_Qg!=null){if(_Qg._It2[_yx2]){
_n6=_Tm;_Tm._b6(_yx2,0,_Tm,_Tm);_n6=null;}else {var _hs=_16._26(_Tm.sprite_index);if(_hs!=null){_n6=_Tm;if((_Tm.image_xscale===1)&&(_Tm.image_yscale===1)&&(_Tm.image_angle===0)&&(_Nc(_Tm.image_blend)===0xffffff)&&(_Tm.image_alpha===1)){_hs._mf1(_Tm.image_index,_Tm.x,_Tm.y,_Tm.image_alpha*_Kc);}else {_hs._a9(_Tm.image_index,_Tm.x,_Tm.y,_Tm.image_xscale,_Tm.image_yscale,_Tm.image_angle,_Nc(_Tm.image_blend),_Tm.image_alpha);}_n6=null;}}}}}};_J31.prototype._ed3=function(_f_2,_QQ,_2R){for(var i=0;i<_2R._TP.length();
i++){var _fd3=_2R._SP;for(var _17=0;_17<_fd3.length();_17++){var _1g1=_fd3[_17];}}};_J31.prototype._gd3=function(_f_2,_QQ,_2R){var _Vq=_2R._HP;if(!_Vq.visible)return;if(_Vq.foreground)return;var _hd3=_Vq._dP;if(sprite_exists(_Vq.index)){var _hs=_16._26(_Vq.index);if(!_hs)return;var _283=(~~_Vq.image_index)%_hs._05.length;if(_hs._05[_283]!=undefined){if(_Vq.stretch){var _bP=_S3._JX()/_hs.width;var _cP=_S3._KX()/_hs.height;_ss(_hs._05[_283],_QQ._gP,_QQ._hP,_bP,_cP,_Vq.vtiled,_Vq.htiled,_hd3,_Vq.alpha);}else _ss(_hs._05[_283],
_QQ._gP,_QQ._hP,_Vq._bP,_Vq._cP,_Vq.vtiled,_Vq.htiled,_hd3,_Vq.alpha);}}else {var _id3=_Kc;_Kc=_Vq.alpha;if(!_s8)_hd3=_Nc(_Vq._dP);draw_rectangle_color(_TL.left,_TL.top,_TL.right,_TL.bottom,_hd3,_hd3,_hd3,_hd3,false);_Kc=_id3;}};_J31.prototype._jd3=function(_f_2,_QQ,_2R){if(sprite_exists(_2R._VP)){var _hs=_16._26(_2R._VP);if(!_hs)return;if(_hs._zL!==undefined){if((_2R._0Q==1.0)&&(_2R._1Q==1.0)&&(_2R._2Q==0.0)&&(_2R._3Q==0xffffff)){_hs._mf1(_2R.__P,_2R._KP+_QQ._gP,_2R._LP+_QQ._hP,_2R._4Q);}else {_hs._a9(_2R.__P,
_2R._KP+_QQ._gP,_2R._LP+_QQ._hP,_2R._0Q,_2R._1Q,_2R._2Q,_2R._3Q,_2R._4Q);}}else {if((_2R._0Q==1.0)&&(_2R._1Q==1.0)&&(_2R._2Q==0.0)&&(_2R._3Q==0xffffff)){_hs._mf1(_2R.__P,_2R._KP+_QQ._gP,_2R._LP+_QQ._hP,_2R._4Q);}else {_hs._a9(_2R.__P,_2R._KP+_QQ._gP,_2R._LP+_QQ._hP,_2R._0Q,_2R._1Q,_2R._2Q,_2R._3Q,_2R._4Q);}}}};var _Es2=-1;function _LG2(){_Es2=_qs2._Wq2();}function _GW2(_Q5,_R5,_nj,_oj,_U5,_br2){if(_br2){_br2._gr2(_Q5);_br2._hr2(_R5);_br2._ir2(_nj);_br2._jr2(_oj);_br2._or2(_U5);if(_br2._Kq2){_br2._qr2(_br2._rr2()+(_br2._sr2()*0.5),
_br2._tr2()+(_br2._ur2()*0.5));_br2._6s2();}else {_br2._ps2(_br2._rr2()+(_br2._sr2()*0.5),_br2._tr2()+(_br2._ur2()*0.5));_br2._6s2();_2e1=_Q5;_4e1=_R5;_6e1=_nj;_8e1=_oj;var _fs2=_U5;_SL(_2e1,_4e1,_6e1,_8e1,_fs2);}}}function _he1(_Q5,_R5,_nj,_oj,_U5){var _kd3=_qs2._Uq2(_Es2);_GW2(_Q5,_R5,_nj,_oj,_U5,_kd3);_qs2._Dr2(_Es2);}function _ld3(_f_2,_gs,_md3,_LL,_Q5,_R5,_rl){if(_gs!=null){var _Qr=_gs;var _nd3=null;var _od3=1;var _pd3=1;var _qd3=false;var tilewidth=0;var tileheight=0;var _rd3=0,_sd3=0;var _td3=0,_ud3=0;
_LL=_LL%_Qr.framelength;if(_Qr._Tr===null||_Qr._Tr===undefined){}else {var _Fc=_Qr._Tr;var _U8=_Fc._95;if(!_U8.complete)return;if(_s8)if(!_U8._Ba)_Ca({_95:_U8});_od3=_Fc.w/_Fc.ow;_pd3=_Fc.h/_Fc.oh;if(_Fc.XOffset!=0||_Fc.YOffset!=0||_Fc.CropWidth!=_Fc.ow||_Fc.CropHeight!=_Fc.oh){_qd3=false;}else {_qd3=true;tilewidth=_Qr.tilewidth*_od3/_U8.width;tileheight=_Qr.tileheight*_pd3/_U8.height;var tilehsep=_Qr.tilehsep*_od3/_U8.width;var tilevsep=_Qr.tilevsep*_pd3/_U8.height;_td3=tilehsep+_Fc.x/_U8.width;_ud3=tilevsep+_Fc.y/_U8.height;
_rd3=tilewidth+tilehsep*2;_sd3=tileheight+tilevsep*2;}}var _y03,_z03,depth;{_y03=_Q5;_z03=_R5;depth=_rl;}if(_U8!=null){var _vd3=_jO._MQ();if(_qd3){var _wd3=_Qr.tilewidth;var _xd3=_Qr.tileheight;var tilecolumns=_Qr.tilecolumns;var _683=null;var _yd3=null;var _La,bindex,_Oa,_Qa,_Sa,_Ua,_jb,_p5,_kb,_lb,_mb;if(_s8){var _L4=~~((_Kc*255.0)<<24)|(_Lc&0xffffff);var _bU=_md3;_bU&=_vd3;var _VT=(_bU>>_7P)&_9P;if(_VT===0)return;_VT=_Qr.framedata[_VT*_Qr.frames+_LL];if(_VT===0)return;_683=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,
6);_La=_683._Ma()>>2;bindex=_La*_683._Na;_683._Na+=6;_Oa=_683._Pa;_Qa=_683._Ra;_Sa=_683._Ta;_Ua=bindex;_jb=_Ua+_La;_p5=_jb+_La;_kb=_p5+_La;_lb=_kb+_La;_mb=_lb+_La;var _6j=_y03;var _KG=_z03;var xo=((_VT%tilecolumns)*_rd3)+_td3;var yo=(Math.floor(_VT/tilecolumns)*_sd3)+_ud3;var _zd3=_6j;var _Ad3=_KG;var _Bd3=_6j+_wd3;var _Cd3=_KG;var _Dd3=_6j;var _Ed3=_KG+_xd3;var _Fd3=_6j+_wd3;var _Gd3=_KG+_xd3;var _Hd3=xo;var _Id3=yo;var _Jd3=xo+tilewidth;var _Kd3=yo;var _Ld3=xo;var _Md3=yo+tileheight;var _Nd3=xo+tilewidth;var _Od3=yo+tileheight;
if(_bU&_5P){if(_bU&_2P){var _pK;_pK=_Hd3;_Hd3=_Jd3;_Jd3=_pK;_pK=_Ld3;_Ld3=_Nd3;_Nd3=_pK;}if(_bU&_1P){var _pK;_pK=_Id3;_Id3=_Md3;_Md3=_pK;_pK=_Kd3;_Kd3=_Od3;_Od3=_pK;}if(_bU&_3P){var _pK;_pK=_Hd3;_Hd3=_Ld3;_Ld3=_Nd3;_Nd3=_Jd3;_Jd3=_pK;_pK=_Id3;_Id3=_Md3;_Md3=_Od3;_Od3=_Kd3;_Kd3=_pK;}}_Oa[_Ua+0]=_zd3;_Oa[_Ua+1]=_Ad3;_Oa[_Ua+2]=depth;_Oa[_jb+0]=_Oa[_lb+0]=_Bd3;_Oa[_jb+1]=_Oa[_lb+1]=_Cd3;_Oa[_jb+2]=_Oa[_lb+2]=depth;_Oa[_p5+0]=_Oa[_kb+0]=_Dd3;_Oa[_p5+1]=_Oa[_kb+1]=_Ed3;_Oa[_p5+2]=_Oa[_kb+2]=depth;_Oa[_mb+0]=_Fd3;
_Oa[_mb+1]=_Gd3;_Oa[_mb+2]=depth;_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=_L4;_Sa[_Ua+0]=_Hd3;_Sa[_Ua+1]=_Id3;_Sa[_jb+0]=_Sa[_lb+0]=_Jd3;_Sa[_jb+1]=_Sa[_lb+1]=_Kd3;_Sa[_p5+0]=_Sa[_kb+0]=_Ld3;_Sa[_p5+1]=_Sa[_kb+1]=_Md3;_Sa[_mb+0]=_Nd3;_Sa[_mb+1]=_Od3;}else {var _bU=_md3;var _VT=(_bU>>_7P)&_9P;if(_VT===0)return;_VT=_Qr.framedata[_VT*_Qr.frames+_LL];if(_VT===0)return;var _6j=_y03;var _KG=_z03;var xo=((_VT%tilecolumns)*_rd3)+_td3;var yo=(Math.floor(_VT/tilecolumns)*_sd3)+_ud3;var _zd3=_6j;var _Ad3=_KG;
var _Bd3=_6j+_wd3;var _Cd3=_KG;var _Dd3=_6j;var _Ed3=_KG+_xd3;var _Fd3=_6j+_wd3;var _Gd3=_KG+_xd3;var _Hd3=xo;var _Id3=yo;var _Jd3=xo+tilewidth;var _Kd3=yo;var _Ld3=xo;var _Md3=yo+tileheight;var _Nd3=xo+tilewidth;var _Od3=yo+tileheight;var _dG=_4a.globalAlpha;_4a.globalAlpha=_Kc;var _Pd3=_U8;var _Qd3=0;var _Rd3=0;var _L4=_Lc&0xffffff;if(_L4!=0xffffff){_Pd3=_P9(_Fc,_L4);_Qd3=-_Fc.x;_Rd3=-_Fc.y;}if(_bU&_5P){var _903=1;var _a03=1;var _X4=0;if(_bU&_2P){_903=-_903;}if(_bU&_1P){_a03=-_a03;}if(_bU&_3P){_X4=-1.5708;}_KY2(Math.floor(_zd3)+_wd3*0.5,
Math.floor(_Ad3)+_xd3*0.5,_903,_a03,-_X4);_4a._rb1(_Pd3,Math.floor(_Hd3*_U8.width)+_Qd3,Math.floor(_Id3*_U8.height)+_Rd3,Math.floor(tilewidth*_U8.width),Math.floor(tileheight*_U8.height),-_wd3*0.5,-_wd3*0.5,_wd3,_xd3);_MY2();}else {_4a._rb1(_Pd3,Math.floor(_Hd3*_U8.width)+_Qd3,Math.floor(_Id3*_U8.height)+_Rd3,Math.floor(tilewidth*_U8.width),Math.floor(tileheight*_U8.height),Math.floor(_zd3),Math.floor(_Ad3),_wd3,_xd3);}_4a.globalAlpha=_dG;}}}}};function draw_tile(_em,_gs,_Sd3,_LL,_Q5,_R5){if(_Uq(_gs)){
var _Td3=_Sr(_gs);var _Ud3=_Ur(_gs);var _Qr=_Wq._Or(_gs);var _VT=((_Sd3>>_7P)&_9P);if(_Qr!=null&&_VT>_Qr.tilecount){return;}var x=yyGetReal(_Q5);var y=yyGetReal(_R5);var depth=_cU(_em);_ld3(_TL,_Qr,_Sd3,_LL,x,y,depth);}};_J31.prototype._dU=function(_f_2,_QQ,_2R,_Qj,_Rj,_rl){if(_Uq(_2R._JP)){var _Td3=_Sr(_2R._JP);var _Ud3=_Ur(_2R._JP);var _Qr=_Wq._Or(_2R._JP);var _nd3=null;var _od3=1;var _pd3=1;var _qd3=false;var tilewidth=0;var tileheight=0;var _rd3=0,_sd3=0;var _td3=0,_ud3=0;if(_Qr._Tr===null||_Qr._Tr===undefined){
}else {var _Fc=_Qr._Tr;var _U8=_Fc._95;if(!_U8.complete)return;if(_s8)if(!_U8._Ba)_Ca({_95:_U8});_od3=_Fc.w/_Fc.ow;_pd3=_Fc.h/_Fc.oh;if(_Fc.XOffset!=0||_Fc.YOffset!=0||_Fc.CropWidth!=_Fc.ow||_Fc.CropHeight!=_Fc.oh){_qd3=false;}else {_qd3=true;tilewidth=_Qr.tilewidth*_od3/_U8.width;tileheight=_Qr.tileheight*_pd3/_U8.height;var tilehsep=_Qr.tilehsep*_od3/_U8.width;var tilevsep=_Qr.tilevsep*_pd3/_U8.height;_td3=tilehsep+_Fc.x/_U8.width;_ud3=tilevsep+_Fc.y/_U8.height;_rd3=tilewidth+tilehsep*2;_sd3=tileheight+tilevsep*2;
}}var _y03,_z03,depth;if(_QQ!=null){_y03=_QQ._gP+_2R._KP;_z03=_QQ._hP+_2R._LP;depth=_QQ.depth;}else {_y03=_Qj;_z03=_Rj;depth=_rl;}if(_U8!=null){var _vd3=_jO._MQ();_vd3&=_2R._QP;if(_qd3){var _Vd3=2048;var _Pi=Math.floor((_f_2.left-_y03)/_Qr.tilewidth);var _Qi=Math.floor(((_f_2.right-_y03)+_Qr.tilewidth)/_Qr.tilewidth);var _Ri=Math.floor((_f_2.top-_z03)/_Qr.tileheight);var _Si=Math.floor(((_f_2.bottom-_z03)+_Qr.tileheight)/_Qr.tileheight);_Pi=_W6(0,_Pi);_Qi=_X6(_2R._MP,_Qi);_Ri=_W6(0,_Ri);_Si=_X6(_2R._NP,
_Si);var _wd3=_Qr.tilewidth;var _xd3=_Qr.tileheight;var tilecolumns=_Qr.tilecolumns;var _Wd3=(_Qi-_Pi)*(_Si-_Ri);var _Xd3=0;var _683=null;var _yd3=null;var _La,bindex,_Oa,_Qa,_Sa,_Ua,_jb,_p5,_kb,_lb,_mb;if(_s8){for(var y=_Ri;y<_Si;y++){var index=y*_2R._MP+_Pi;for(var x=_Pi;x<_Qi;x++,index++,_Wd3--){var _bU=_2R._PP[index];_bU&=_vd3;var _VT=(_bU>>_7P)&_9P;if(_VT===0)continue;_VT=_Qr.framedata[_VT*_Qr.frames+_2R._OP];if(_VT===0)continue;if(_Xd3===0){_Xd3=_X6(_Wd3,_Vd3);_683=_s8._Ia(_ca._Ja,_U8._Ba,_s8._Ka,_Xd3*6);
_La=_683._Ma()>>2;bindex=_La*_683._Na;_683._Na+=_Xd3*6;_Oa=_683._Pa;_Qa=_683._Ra;_Sa=_683._Ta;_Ua=bindex;_jb=_Ua+_La;_p5=_jb+_La;_kb=_p5+_La;_lb=_kb+_La;_mb=_lb+_La;}var _6j=x*_wd3+_y03;var _KG=y*_xd3+_z03;var xo=((_VT%tilecolumns)*_rd3)+_td3;var yo=(Math.floor(_VT/tilecolumns)*_sd3)+_ud3;var _zd3=_6j;var _Ad3=_KG;var _Bd3=_6j+_wd3;var _Cd3=_KG;var _Dd3=_6j;var _Ed3=_KG+_xd3;var _Fd3=_6j+_wd3;var _Gd3=_KG+_xd3;var _Hd3=xo;var _Id3=yo;var _Jd3=xo+tilewidth;var _Kd3=yo;var _Ld3=xo;var _Md3=yo+tileheight;var _Nd3=xo+tilewidth;
var _Od3=yo+tileheight;if(_bU&_5P){if(_bU&_2P){var _pK;_pK=_Hd3;_Hd3=_Jd3;_Jd3=_pK;_pK=_Ld3;_Ld3=_Nd3;_Nd3=_pK;}if(_bU&_1P){var _pK;_pK=_Id3;_Id3=_Md3;_Md3=_pK;_pK=_Kd3;_Kd3=_Od3;_Od3=_pK;}if(_bU&_3P){var _pK;_pK=_Hd3;_Hd3=_Ld3;_Ld3=_Nd3;_Nd3=_Jd3;_Jd3=_pK;_pK=_Id3;_Id3=_Md3;_Md3=_Od3;_Od3=_Kd3;_Kd3=_pK;}}_Oa[_Ua+0]=_zd3;_Oa[_Ua+1]=_Ad3;_Oa[_Ua+2]=depth;_Oa[_jb+0]=_Oa[_lb+0]=_Bd3;_Oa[_jb+1]=_Oa[_lb+1]=_Cd3;_Oa[_jb+2]=_Oa[_lb+2]=depth;_Oa[_p5+0]=_Oa[_kb+0]=_Dd3;_Oa[_p5+1]=_Oa[_kb+1]=_Ed3;_Oa[_p5+2]=_Oa[_kb+2]=depth;
_Oa[_mb+0]=_Fd3;_Oa[_mb+1]=_Gd3;_Oa[_mb+2]=depth;_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=0xffffffff;_Sa[_Ua+0]=_Hd3;_Sa[_Ua+1]=_Id3;_Sa[_jb+0]=_Sa[_lb+0]=_Jd3;_Sa[_jb+1]=_Sa[_lb+1]=_Kd3;_Sa[_p5+0]=_Sa[_kb+0]=_Ld3;_Sa[_p5+1]=_Sa[_kb+1]=_Md3;_Sa[_mb+0]=_Nd3;_Sa[_mb+1]=_Od3;_Ua+=_La*6;_jb+=_La*6;_p5+=_La*6;_kb+=_La*6;_lb+=_La*6;_mb+=_La*6;_Xd3--;}}if(_Xd3>0)_683._Na-=_Xd3*6;}else {for(var y=_Ri;y<_Si;y++){var index=y*_2R._MP+_Pi;for(var x=_Pi;x<_Qi;x++,index++,_Wd3--){var _bU=_2R._PP[index];
var _VT=(_bU>>_7P)&_9P;if(_VT===0)continue;_VT=_Qr.framedata[_VT*_Qr.frames+_2R._OP];if(_VT===0)continue;var _6j=x*_wd3+_y03;var _KG=y*_xd3+_z03;var xo=((_VT%tilecolumns)*_rd3)+_td3;var yo=(Math.floor(_VT/tilecolumns)*_sd3)+_ud3;var _zd3=_6j;var _Ad3=_KG;var _Bd3=_6j+_wd3;var _Cd3=_KG;var _Dd3=_6j;var _Ed3=_KG+_xd3;var _Fd3=_6j+_wd3;var _Gd3=_KG+_xd3;var _Hd3=xo;var _Id3=yo;var _Jd3=xo+tilewidth;var _Kd3=yo;var _Ld3=xo;var _Md3=yo+tileheight;var _Nd3=xo+tilewidth;var _Od3=yo+tileheight;if(_bU&_5P){var _903=1;var _a03=1;
var _X4=0;if(_bU&_2P){_903=-_903;}if(_bU&_1P){_a03=-_a03;}if(_bU&_3P){_X4=-1.5708;}_KY2(Math.floor(_zd3)+_wd3*0.5,Math.floor(_Ad3)+_xd3*0.5,_903,_a03,-_X4);_4a._rb1(_U8,Math.floor(_Hd3*_U8.width),Math.floor(_Id3*_U8.height),Math.floor(tilewidth*_U8.width),Math.floor(tileheight*_U8.height),-_wd3*0.5,-_wd3*0.5,_wd3,_xd3);_MY2();}else {_4a._rb1(_U8,Math.floor(_Hd3*_U8.width),Math.floor(_Id3*_U8.height),Math.floor(tilewidth*_U8.width),Math.floor(tileheight*_U8.height),Math.floor(_zd3),Math.floor(_Ad3),
_wd3,_xd3);}}}}}}}};_J31.prototype._Yd3=function(_f_2,_QQ,_2R){_Fb3(_2R._eQ);};_J31.prototype._Zd3=function(_f_2,_QQ,_2R){if(!_2R._kP)return false;var _hs=_16._26(_2R._aF);if(_hs!=null){var __4=_hs._05[0];if((__4._95 instanceof HTMLImageElement)&&(__4.tp>=_35.length))return;if((_35[__4.tp] instanceof HTMLImageElement)&&(!_35[__4.tp].complete))return;_ws(__4,_2R._iQ,_2R._jQ,_2R._gQ,_2R._hQ,_2R._KP,_2R._LP,_2R._0Q,_2R._1Q,_2R._3Q,_2R._4Q);}};_J31.prototype.__d3=function(_f_2,_QQ,_0e3){_rR._1e3(_0e3,true);
var _Gt=_rR._0S(_0e3._7Q);if((_Gt!=null)&&(_Gt._2e3!=null)){var _X31=_rR._zU(_Gt._6Q);if(_X31!=null){var _3e3=new _Zy();var _4e3=_0e3._KP!=0||_0e3._LP!=0||_0e3._m3!=0||_0e3._9Q!=1||_0e3._aQ!=1;if(_4e3){_3e3=_sA(_kA);var _5e3=new _Zy();var _6e3=new _Zy();var _7e3=new _Zy();var _8e3=new _Zy();_5e3._mA(_0e3._9Q,_0e3._aQ,1);_6e3._pA(_0e3._m3);_7e3._lA(-_X31._9e3*_0e3._9Q,-_X31._ae3*_0e3._aQ,0);_8e3._lA(_X31._9e3*_0e3._9Q,_X31._ae3*_0e3._aQ,0);var _NA=new _Zy();_NA.Multiply(_7e3,_6e3);var _be3=new _Zy();_be3.Multiply(_NA,
_8e3);_NA.Multiply(_5e3,_be3);_NA._K6[12]=_0e3._KP;_NA._K6[13]=_0e3._LP;var _ce3=new _Zy();_ce3.Multiply(_NA,_3e3);_jA(_kA,_ce3);_1M();}_S41.push(_X31);this._de3(_f_2,_QQ,_0e3,_Gt._2e3,_Gt._8Q,_Gt._JU,_Gt._LU,_X31,false);_S41.pop();if(_4e3){_jA(_kA,_3e3);}}}};_J31.prototype._de3=function(_f_2,_QQ,_0e3,_ee3,_fe3,_ge3,_he3,_ie3,_je3,_ke3){if(_ie3==null){return;}var _3e3=new _Zy();var _4e3=!_je3&&(_ie3._9e3!=0||_ie3._ae3!=0);if(_4e3){_3e3=_sA(_kA);var _uo2=new _Zy();_uo2._YA(-_ie3._9e3,-_ie3._ae3,0.0,0.0,
0.0,0.0,1.0,1.0,1.0);var _ce3=new _Zy();_ce3.Multiply(_uo2,_3e3);_jA(_kA,_ce3);_1M();}this._le3(_f_2,_QQ,_0e3,_ee3,_fe3,_ge3,_he3,_ie3._KS,_ie3);if(_4e3){_jA(_kA,_3e3);}};_J31.prototype._le3=function(_f_2,_QQ,_0e3,_ee3,_fe3,_ge3,_he3,_me3,_ie3){var _ne3=_ee3;var _oe3=new _Zy();var _pe3=new _Zy();for(var _ze2=0;_ze2<_me3.length;++_ze2){var _a4=_me3[_ze2];if(_qe3(_a4._oO)||!_a4.enabled||!_a4.visible){if(!_qe3(_a4._oO)&&_a4.enabled){if(_ne3!=null){_ne3=_ne3._6x1;}}continue;}_S41.push(_a4);switch(_a4._oO){default :break;
case _I41:case _K41:if(_ne3!=null){_ne3=_ne3._6x1;}_S41.pop();continue;}if(_ne3!=null){_oe3=_sA(_kA);_pe3.Multiply(_ne3.value._re3,_oe3);_jA(_kA,_pe3);}if(_ne3!=null){switch(_a4._oO){default :break;case _741:this._se3(_f_2,_QQ,_0e3,_ne3,_a4,_fe3,_ge3,_he3,_ie3);break;case _941:this._te3(_f_2,_QQ,_0e3,_ne3,_a4,_fe3,_ge3,_he3,_ie3);break;case _G41:if(_s8){this._ue3(_f_2,_QQ,_0e3,_ne3,_a4,_fe3,_ge3,_he3,_ie3);}break;case _841:this._ve3(_f_2,_QQ,_0e3,_ne3,_a4,_fe3,_ge3,_he3,_ie3);break;case _j41:this._we3(_f_2,
_QQ,_0e3,_ne3,_a4,_fe3,_ge3,_he3,_ie3);break;}}if(_ne3!=null&&_a4._KS.length>0){this._le3(_f_2,_QQ,_0e3,_ne3._xe3,_fe3,_ge3,_he3,_a4._KS,_ie3);}_jA(_kA,_oe3);if(_ne3!=null){_ne3=_ne3._6x1;}_S41.pop();}};_J31.prototype._se3=function(_f_2,_QQ,_0e3,_P82,_Q3,_fe3,_ge3,_he3,_ie3){var keyframeStore=_Q3._NS;var _ye3=keyframeStore._ze3(_fe3,_ie3._PS);if(_ye3==-1)return;var _MS=keyframeStore._PT[_ye3];var spriteIndex=_MS._yr[0]._VP;var _DS=_16.Sprites[spriteIndex];var _703=0;if(_DS._15()>1){var _Ae3=Math.max(_fe3,
_MS._QT);_Ae3=Math.min(_Ae3,_MS._QT+keyframeStore._Be3(_ye3,_ie3._PS));var _Ce3=_Ae3-_MS._QT;var _De3=1.0;var _Ee3=_DS.sequence;if(_Ee3!=null){if(_Ee3._8c1==_eP)_De3=_Ee3._7c1/_ie3._7c1;else _De3=_Ee3._7c1*(_W3._X3()/_ie3._7c1);}else if(_DS.playbackspeed!=0.0){if(_DS.playbackspeedtype==_eP)_De3=_DS.playbackspeed/_ie3._7c1;else _De3=_DS.playbackspeed;}_Ce3*=_De3;if(_P82.value._Fe3(_Ge3)){var _He3=_P82.value._Ie3;if(_He3>=0)_Ce3=_He3*_De3;}if(_P82.value._Fe3(_Je3)){_703=_P82.value.imageIndex;if(_703<0)_703=0;
else if(_703>=_DS._15())_703=_DS._15()-1;}else if(_Ee3!=null){var _Ke3=1.0;if(_ge3>_fe3)_Ke3=-1.0;var _FS={_GS:_Ce3,_HS:_Ke3,_IS:false};_JS(_Ee3,_FS);_Ce3=_FS._GS;_Ke3=_FS._HS;if((_Ee3._KS!=null)&&(_Ee3._KS[0]._oO==_LS)){var _a4=_Ee3._KS[0];var _Le3=_a4._NS._OS(_Ce3,_Ee3._PS);if(_Le3==null)_703=-1;else _703=_Le3._yr[0].__P;}}else {_703=_Ce3;if(_703<0){_703=-_703;_703=_703%_DS._15();if(_703>0)_703=_DS._15()-_703;}else if(_703>=_DS._15()){_703=_703%_DS._15();}}}var _QV=_P82.value._Me3;var add=_P82.value._Ne3;
var _D4=Math.min(255,((_QV[0]+add[0])*(_0e3._3Q&0xff)));var _E4=Math.min(255,((_QV[1]+add[1])*((_0e3._3Q>>8)&0xff)));var _F4=Math.min(255,((_QV[2]+add[2])*((_0e3._3Q>>16)&0xff)));var _Oe3=(Math.max(0,_D4))|(Math.max(0,_E4)<<8)|(Math.max(0,_F4)<<16);var _G4=Math.min(1,(_QV[3]+add[3])*_0e3._4Q);var _bP=1,_cP=1;var _Pe3=_DS.xOrigin,_Qe3=_DS.yOrigin;var _Re3;var _Se3=false;if((_s8)&&(_DS._9c1!=null)&&(_DS._9c1.enabled==true)){var _Te3=Math.sqrt((_P82.value._re3._K6[0]*_P82.value._re3._K6[0])+(_P82.value._re3._K6[1]*_P82.value._re3._K6[1]));
var _Ue3=Math.sqrt((_P82.value._re3._K6[4]*_P82.value._re3._K6[4])+(_P82.value._re3._K6[5]*_P82.value._re3._K6[5]));if((_Te3<0.999)||(_Te3>1.001)||(_Ue3<0.999)||(_Ue3>1.001)){_Se3=true;_bP=_Te3;_cP=_Ue3;_Pe3*=_Te3;_Qe3*=_Ue3;_Re3=_sA(_kA);var _Ve3=new _Zy(_Re3);_Ve3._K6[0]/=_bP;_Ve3._K6[1]/=_bP;_Ve3._K6[4]/=_cP;_Ve3._K6[5]/=_cP;_jA(_kA,_Ve3);}}if(!_s8){var _CY2=_OA[_kA];var _We3=Math.atan2(_CY2._K6[1],_CY2._K6[0])*(-180/Math.PI);var _Te3=Math.sqrt(Math.pow(_CY2._K6[0],2)+Math.pow(_CY2._K6[1],2))*_bP;var _Ue3=Math.sqrt(Math.pow(_CY2._K6[4],
2)+Math.pow(_CY2._K6[5],2))*_cP;var __r2=new _iz(_Pe3,_Qe3,0);var _VZ2=_CY2._as2(__r2);var _Xe3=_VZ2._Pz;var _Ye3=_VZ2._Qz;_jA(_kA,new _Zy());_DS._a9(_703,_Xe3,_Ye3,_Te3,_Ue3,_We3,_Oe3,Math.max(0,_G4));_jA(_kA,_CY2);}else {_DS._a9(_703,_QQ._gP+_Pe3,_QQ._hP+_Qe3,_bP,_cP,0,_Oe3,Math.max(0,_G4));}if(_Se3){_jA(_kA,_Re3);}};_J31.prototype._te3=function(_f_2,_QQ,_0e3,_P82,_Q3,_fe3,_ge3,_he3,_ie3){var keyframeStore=_Q3._NS;var _Ze3=[];var __e3=[];var _0f3=1,offset=0;var _1f3=keyframeStore._ze3(_fe3,_ie3._PS);if(_1f3==-1)return;
_Ze3[0]=__e3[0]=_1f3;for(var _dl=offset;_dl<_0f3;_dl++){var _2f3=_Ze3[_dl];var _3f3=__e3[_dl];for(var i=_2f3;i<=_3f3;i++){var _qN=keyframeStore._PT[i];var _4f3=_qN._yr[0];var _5f3=_4f3._aF;var _6f3=_rR._zU(_5f3);if(_6f3==null)continue;_S41.push(_qN);_S41.push(_4f3);_S41.push(_6f3);{var _0j;if(_qN._7f3){if(i>=keyframeStore._LT-1)_0j=_ie3._PS-_qN._QT;else _0j=keyframeStore._PT[i+1]._QT-_qN._QT;}else _0j=_qN._PS;if((_fe3>=_qN._QT)&&(_fe3<(_qN._QT+_0j)))if((Math.floor(_fe3)>=_qN._QT)&&(Math.floor(_fe3)<(_qN._QT+_0j))){
_1M();var _Ae3=Math.max(_fe3,_qN._QT);var _8f3=Math.max(_ge3,_qN._QT);_Ae3=Math.min(_Ae3,_qN._QT+(_0j-1));_8f3=Math.min(_8f3,_qN._QT+(_0j-1));var _Ce3=_Ae3-_qN._QT;var _9f3=_8f3-_qN._QT;var _De3=1.0;if(_ie3._7c1!=0.0){if(_ie3._8c1==_eP)_De3=_6f3._7c1/_ie3._7c1;else _De3=_6f3._7c1;}if(_P82.value._Fe3(_Ge3)){_De3*=_P82.value.imageSpeed;}_Ce3*=_De3;_9f3*=_De3;var _Ke3=1.0;if(_ge3>_fe3)_Ke3=-1.0;var _FS={_GS:_Ce3,_HS:_Ke3,_IS:false};_JS(_6f3,_FS);_Ce3=_FS._GS;_Ke3=_FS._HS;this._de3(_f_2,_QQ,_0e3,_P82._xe3,_Ce3,
_9f3,_Ke3,_6f3,true);}}_S41.pop();_S41.pop();_S41.pop();}}};function _af3(){this._bf3=0xCAFEBABE;this._cf3=0xCAFEBABE;this._df3=0xCAFEBABE;this._ef3=0xCAFEBABE;this._ff3=0xCAFEBABE;this._gf3=0xCAFEBABE;this._hf3=0xCAFEBABE;this._if3=0xCAFEBABE;this._jf3=0xCAFEBABE;}_af3.prototype._kf3=function(){if(this._bf3!=0xCAFEBABE)_s8._oa._Ga(_ca._cU1,this._bf3);if(this._cf3!=0xCAFEBABE)_s8._oa._Ga(_ca._4U1,this._cf3);if(this._df3!=0xCAFEBABE)_s8._oa._Ga(_ca._6U1,this._df3);if(this._ef3!=0xCAFEBABE)_s8._oa._Ga(_ca._9U1,
this._ef3);if(this._ff3!=0xCAFEBABE)_s8._oa._Ga(_ca._xB,this._ff3);if(this._gf3!=0xCAFEBABE)_s8._oa._Ga(_ca._8B,this._gf3);if(this._hf3!=0xCAFEBABE)_s8._oa._Ga(_ca._zB,this._hf3);if(this._if3!=0xCAFEBABE)_s8._oa._Ga(_ca._BB,this._if3);if(this._jf3!=0xCAFEBABE)_s8._oa._Ga(_ca._dC,this._jf3);};_af3.prototype._4A=function(){this._bf3=_s8._oa._pa(_ca._cU1);this._cf3=_s8._oa._pa(_ca._4U1);this._df3=_s8._oa._pa(_ca._6U1);this._ef3=_s8._oa._pa(_ca._9U1);this._ff3=_s8._oa._pa(_ca._xB);this._gf3=_s8._oa._pa(_ca._8B);
this._hf3=_s8._oa._pa(_ca._zB);this._if3=_s8._oa._pa(_ca._BB);this._jf3=_s8._oa._pa(_ca._dC);};_lf3=[];_mf3=null;_nf3=0;_J31.prototype._ue3=function(_f_2,_QQ,_0e3,_P82,_Q3,_fe3,_ge3,_he3,_ie3){var _of3=null;var _pf3=null;var _qf3=null;var _rf3=null;var _q92=_P82._xe3==null?null:_P82._xe3;for(var i=0;i<_Q3._KS.length;i++){var _sf3=_Q3._KS[i];if(_sf3._oO==_I41){_of3=_sf3;_qf3=_q92;if(_pf3!=null)break;}else if(_sf3._oO==_K41){_pf3=_sf3;_rf3=_q92;if(_of3!=null)break;}_q92=_q92._6x1;}if(_nf3==0){_s8._oa._8C();
_s8._oa._Ga(_ca._4U1,true);}_s8._oa._Ga(_ca._zB,true);_s8._oa._Ga(_ca._BB,0);_s8._oa._Ga(_ca._dC,_ca._rW1);_s8._oa._Ga(_ca._4U1,true);_s8._oa._Ga(_ca._6U1,_ca._pW1);_s8._oa._Ga(_ca._xB,0);_s8._oa._Ga(_ca._8B,false);_s8._oa._Ga(_ca._cU1,_nf3);_s8._oa._Ga(_ca._9U1,_ca._lW1);_nf3++;_S41.push(_of3);this._le3(_f_2,_QQ,_0e3,_qf3._xe3,_fe3,_ge3,_he3,_of3._KS,_ie3);_S41.pop();_nf3--;if(_nf3==0){_s8._oa._Ga(_ca._xB,_s8._oa._7_1(_ca._xB));_s8._oa._Ga(_ca._8B,_s8._oa._7_1(_ca._8B));_s8._oa._Ga(_ca._zB,_s8._oa._7_1(_ca._zB));
_s8._oa._Ga(_ca._BB,_s8._oa._7_1(_ca._BB));_s8._oa._Ga(_ca._dC,_s8._oa._7_1(_ca._dC));}_s8._oa._Ga(_ca._cU1,_nf3+1);_s8._oa._Ga(_ca._9U1,_ca._fW1);_S41.push(_pf3);this._le3(_f_2,_QQ,_0e3,_rf3._xe3,_fe3,_ge3,_he3,_pf3._KS,_ie3);_S41.pop();_s8._oa._Ga(_ca._9U1,_ca._mW1);_s8._oa._Ga(_ca._xB,0);_s8._oa._Ga(_ca._8B,0);_s8._oa._Ga(_ca._zB,true);_s8._oa._Ga(_ca._BB,0);_s8._oa._Ga(_ca._dC,_ca._rW1);_nf3++;_S41.push(_of3);this._le3(_f_2,_QQ,_0e3,_qf3._xe3,_fe3,_ge3,_he3,_of3._KS,_ie3);_S41.pop();_nf3--;if(_nf3==0){
_s8._oa._9C();}};_J31.prototype._ve3=function(_f_2,_QQ,_0e3,_P82,_Q3,_fe3,_ge3,_he3,_ie3){var keyframeStore=_Q3._NS;var _tf3=keyframeStore._ze3(_fe3,_ie3._PS);if(_tf3==-1)return;var _uf3=keyframeStore._PT[_tf3];if(_uf3!=null){_S41.push(_uf3);var _R41=_rR._0S(_0e3._7Q);if(_R41!=null){var _Re3=_sA(_kA);var _vf3=new _Zy();_vf3._9I2();_jA(_kA,_vf3);for(var _wf3 in _uf3._yr){var _xf3=_uf3._yr[_wf3];_S41.push(_xf3);var _yf3=_R41._zf3[_Af3(_S41)];if(_yf3!=null){{var _Gt=_xn._r43(_yf3._xT);if((_Gt!=null)&&(_Gt._n23())){
if(!(_Gt.marked||(!_Gt.active)||(!_Gt.visible))){if(!_Gt._It2[_yx2]){var _4u2=_16._26(_Gt.sprite_index);if(_4u2){if((_Gt.image_xscale==1.0)&&(_Gt.image_yscale==1.0)&&(_Gt.image_angle==0.0)&&(_Gt.image_blend==0xffffff)){_4u2._mf1(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_alpha*_Kc);}else {_4u2._a9(_Gt.image_index,_Gt.x,_Gt.y,_Gt.image_xscale,_Gt.image_yscale,_Gt.image_angle,_Nc(_Gt.image_blend),_Gt.image_alpha*_Kc);}}}else {_n6=_Gt;_Gt._b6(_yx2,0,_Gt,_Gt);_n6=null;}}}}}_S41.pop();}_jA(_kA,_Re3);}_S41.pop();
}};_J31.prototype._we3=function(_f_2,_QQ,_0e3,_P82,_Q3,_fe3,_ge3,_he3,_ie3){var keyframeStore=_Q3._NS;var _ye3=keyframeStore._ze3(_fe3,_ie3._PS);if(_ye3==-1)return;var _Bf3=keyframeStore._PT[_ye3];var text=_Bf3._yr[0].text;if(text==null)return;var wrap=_Bf3._yr[0].wrap;var alignment=_Bf3._yr[0].alignment;var _Cf3=_Bf3._yr[0].fontIndex;var _Df3=draw_get_font();var _Ef3=draw_get_color();var _id3=draw_get_alpha();var _QV=_P82.value._Me3;var add=_P82.value._Ne3;var _D4=Math.min(255,((_QV[0]+add[0])*(_0e3._3Q&0xff)));
var _E4=Math.min(255,((_QV[1]+add[1])*((_0e3._3Q>>8)&0xff)));var _F4=Math.min(255,((_QV[2]+add[2])*((_0e3._3Q>>16)&0xff)));var _Oe3=(Math.max(0,_D4))|(Math.max(0,_E4)<<8)|(Math.max(0,_F4)<<16);var _G4=Math.min(1,(_QV[3]+add[3])*_0e3._4Q);draw_set_font(_Cf3);draw_set_color(_Oe3);draw_set_alpha(_G4);var _Ff3=-1;var _Gf3=-1;if(_P82.value._Hf3&(1<<_If3)){_Ff3=_P82.value._Jf3;_Gf3=_P82.value._Kf3;}var _uY2=0.0;if(_P82.value._Hf3&(1<<_Lf3)){_uY2=_P82.value._Mf3;}var _Nf3=0.0;if(_P82.value._Hf3&(1<<_Of3)){_Nf3=_P82.value._Pf3;
}var _Qf3=0.0;if(_P82.value._Hf3&(1<<_Rf3)){_Qf3=_P82.value._Sf3;}_WD._hG();var _Tf3=_WD._bZ2(text,_Ff3,_Gf3,alignment,wrap,_uY2,_Nf3,_Qf3);var _791=wrap&&((_Tf3._kZ2>_Ff3+2)||(_Tf3._AZ2>_Gf3+2));if(_791){if(_s8){if(_lf3==null||_lf3.length==0){if(_mf3==null)_mf3=new _af3();_mf3._4A();_s8._oa._Ga(_ca._4U1,true);}var state=new _af3();state._df3=_ca._rW1;state._ef3=_ca._hW1;state._ff3=0;state._gf3=0;state._bf3=_lf3.length+1;state._kf3();_lf3.push(state);if(_mf3._hf3==0){_s8._oa._Ga(_ca._zB,true);_s8._oa._Ga(_ca._BB,
0);_s8._oa._Ga(_ca._dC,_ca._rW1);}var _I9=4;var _Ha=_s8._Ia(_ca._Ac,null,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var _Uf3=_La*_Ha._Na;_Ha._Na+=_I9;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;_Oa[_Uf3+0]=0.0;_Oa[_Uf3+1]=0.0;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=0xffffffff;_Uf3+=_La;_Oa[_Uf3+0]=0.0;_Oa[_Uf3+1]=_Gf3;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=0xffffffff;_Uf3+=_La;_Oa[_Uf3+0]=_Ff3;_Oa[_Uf3+1]=0.0;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=0xffffffff;_Uf3+=_La;_Oa[_Uf3+0]=_Ff3;_Oa[_Uf3+1]=_Gf3;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=0xffffffff;_s8._oa._Ga(_ca._9U1,_ca._lW1);
_s8._oa._Ga(_ca._6U1,_lf3.length<2?_ca._qW1:_ca._pW1);_s8._oa._Ga(_ca._xB,_lf3.length<2?_mf3._ff3:0);_s8._oa._Ga(_ca._8B,_lf3.length<2?_mf3._gf3:0);if(_mf3._hf3==0){_s8._oa._Ga(_ca._zB,_mf3._hf3);_s8._oa._Ga(_ca._BB,_mf3._if3);_s8._oa._Ga(_ca._dC,_mf3._jf3);}}else {_CY2=_OA[_kA];_4a.save();var _Vf3=new _iz(0,0,0);var _Wf3=new _iz(0,_Gf3,0);var _Xf3=new _iz(_Ff3,_Gf3,0);var _Yf3=new _iz(_Ff3,0,0);var _Zf3=_CY2._as2(_Vf3);var __f3=_CY2._as2(_Wf3);var _0g3=_CY2._as2(_Xf3);var _1g3=_CY2._as2(_Yf3);_4a.beginPath();
_4a.moveTo(_Zf3._Pz,_Zf3._Qz);_4a.lineTo(__f3._Pz,__f3._Qz);_4a.lineTo(_0g3._Pz,_0g3._Qz);_4a.lineTo(_1g3._Pz,_1g3._Qz);_4a.closePath();_4a.clip();}}_WD._RZ2(_Tf3._VD,0.0,0.0,_uY2,0.0,_Tf3._kZ2);if(_791){if(_s8){if(_mf3._hf3==0){_s8._oa._Ga(_ca._zB,true);_s8._oa._Ga(_ca._BB,0);_s8._oa._Ga(_ca._dC,_ca._rW1);}_s8._oa._Ga(_ca._9U1,_ca._gW1);_s8._oa._Ga(_ca._6U1,_ca._pW1);_s8._oa._Ga(_ca._xB,0);_s8._oa._Ga(_ca._8B,0);var _I9=4;var _Ha=_s8._Ia(_ca._Ac,null,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var _Uf3=_La*_Ha._Na;
_Ha._Na+=_I9;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;_Oa[_Uf3+0]=0.0;_Oa[_Uf3+1]=0.0;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=0xffffffff;_Uf3+=_La;_Oa[_Uf3+0]=0.0;_Oa[_Uf3+1]=_Gf3+1;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=0xffffffff;_Uf3+=_La;_Oa[_Uf3+0]=_Ff3+1;_Oa[_Uf3+1]=0.0;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=0xffffffff;_Uf3+=_La;_Oa[_Uf3+0]=_Ff3+1;_Oa[_Uf3+1]=_Gf3+1;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=0xffffffff;var restore=_lf3.pop();restore._kf3();if(_lf3.length==0){_mf3._kf3();}}else {_4a.restore();}}draw_set_font(_Df3);draw_set_color(_Ef3);draw_set_alpha(_id3);
};_J31.prototype._2g3=function(_f_2){var _EH=_FH;var _GH=_HH;_FH=_yx2;_HH=0;_XJ(_Nc(0xfff7ffff));var _yR,_nO,i,_Kk;_Kk=this._8R._Kk;for(i=_Kk.length-1;i>=0;i--){_yR=_Kk[i];if(_yR===null||_yR._kP<=0){continue;}if(_jO._KQ()){_Qw(_jO._LQ());}else {_Qw(_yR.depth);}if(_yR._rP)_3g3(_yR,_EV2,_yx2,0);_4g3(_yR._pP);_5g3(_yR._ke,_yR._nP);for(var _17=0;_17<_yR._mO.length;_17++){_nO=_yR._mO._26(_17);if(_nO!=null){if(_nO._oO===_PO){this._gd3(_f_2,_yR,_nO);}else if(_nO._oO===_pO){this._dd3(_f_2,_yR,_nO);}else if(_nO._oO===_QO){
this._ed3(_f_2,_yR,_nO);}else if(_nO._oO===_RO){this._jd3(_f_2,_yR,_nO,0,0,0);}else if(_nO._oO===_SO){this._dU(_f_2,_yR,_nO);}else if(_nO._oO===_TO){this._Yd3(_f_2,_yR,_nO);}else if(_nO._oO===_UO){this._Zd3(_f_2,_yR,_nO);}else if(_nO._oO===_VO){this.__d3(_f_2,_yR,_nO);}}}_5g3(_yR._ke,_yR._oP);_6g3(_yR._pP);if(_yR._rP)_3g3(_yR,_FV2,_yx2,0);}_FH=_EH;_HH=_GH;};_J31.prototype._7g3=function(_f_2){_TL=_f_2;_1M();if(this._dV2){_XJ(_Nc(g_pBuiltIn.background_color));}this._8g3(_f_2,_tz2);if(this._8R!=null&&this._8R.length>0){
this._2g3(_f_2);}else {for(var i=0;i<_Wq._Nr.length;i++){var _Qr=_Wq._26(i);if(_Qr){_Qr.visible=g_pBuiltIn._9U2[i];_Qr.foreground=g_pBuiltIn._aU2[i];_Qr.x=g_pBuiltIn._cU2[i];_Qr.y=g_pBuiltIn._dU2[i];_Qr.index=g_pBuiltIn._bU2[i];_Qr._TI2=g_pBuiltIn._gU2[i];_Qr._UI2=g_pBuiltIn._hU2[i];_Qr.alpha=g_pBuiltIn._nU2[i];_Qr._dP=g_pBuiltIn._mU2[i];_Qr.hspeed=g_pBuiltIn._kU2[i];_Qr.vspeed=g_pBuiltIn._lU2[i];_Qr._bP=g_pBuiltIn._iU2[i];_Qr._cP=g_pBuiltIn._jU2[i];if(_Qr!=null&&_Qr.visible&&!_Qr.foreground){var _hs=_Wq._Or(_Qr.index);
if(_hs!=null){if(_Qr.stretch){_qs(_hs._Tr,_Qr.x,_Qr.y,this._VS,this._XS,_Qr._dP,_Qr.alpha);}else {_ss(_hs._Tr,_Qr.x,_Qr.y,_Qr._bP,_Qr._cP,_Qr._UI2,_Qr._TI2,_Qr._dP,_Qr.alpha);}}}}}if(this._Rf1._ac3._E8>0){if(_UE2.length!=0){this._bd3(_f_2);}else {this._5d3(_f_2);}}else if(_UE2.length!=0){this._8d3(_f_2);}else {this._7d3(_f_2);}for(var i=0;i<_Wq._Nr.length;i++){var _Qr=_Wq._26(i);if(_Qr!=null&&_Qr.visible&&_Qr.foreground){var _hs=_Wq._Or(_Qr.index);if(_hs!=null){if(_Qr.stretch){_qs(_hs._Tr,_Qr.x,_Qr.y,this._VS,
this._XS,_Qr._dP,_Qr.alpha);}else {_ss(_hs._Tr,_Qr.x,_Qr.y,_Qr._bP,_Qr._cP,_Qr._UI2,_Qr._TI2,_Qr._dP,_Qr.alpha);}}}}}this._8g3(_f_2,_uz2);};_J31.prototype._9g3=function(){if(_bm>=0){var _3F=_16._26(_bm);if(_3F!=null){_3F._a9(_EF2,_vg._DO-_8g.left,_vg._EO-_8g.top,1.0,1.0,0,0xffffff,1.0);}_EF2++;if(_EF2>_3F._T6)_EF2-=_3F._T6;}};_J31.prototype._aV=function(_gg){var index=this._DX2.indexOf(_gg);if(index!=-1){return;}this._DX2.push(_gg);this._CX2++;};_J31.prototype._cV=function(_gg){var index=this._DX2.indexOf(_gg);
if(index!=-1){this._DX2.splice(index,1);this._CX2--;return;}};_J31.prototype._EX2=function(){this._DX2.length=0;this._CX2=0;};function _3g3(_FX2,_ag3,_bg3,_cg3){if(_FX2===null)return;if(_ag3===null)return;var _dg3=_FX2._yP();if(_dg3==null)return;var _2V=_WU._PX2(_dg3);if(_2V==null)return;var _GV="gml"+_ag3;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_ag3]!=undefined)){_GV=g_var2obf[_ag3];}if(_2V[_GV]!==undefined){_2V[_GV](_FX2._ke);}};function _5g3(_eg3,_HD){if(_HD!=null){var _Tm=_jO._vT();if(_Tm===null){
var _CT=new _PN(0,0,0,0,false,true);_jO._uT(_CT);_Tm=_jO._vT();}_Tm._VQ(true);_Tm._m43(_eg3);_HD(_Tm,_Tm);_Tm._VQ(false);}};function _4g3(_fg3){if(_fg3!=-1){shader_set(_fg3);}};function _6g3(_fg3){if(_fg3!=-1){shader_reset();}};_J31.prototype._8g3=function(_f_2,_D3){var _4u2,_Gt,i,_Kk,_JG;_FH=_D3;_TL=_f_2;_1M();if((this._8R.length>0)){var _yR,_nO;_Kk=this._8R._Kk;for(i=_Kk.length-1;i>=0;i--){_yR=_Kk[i];if(_yR==null||_yR._kP==false){continue;}_HH=_tz2;if(_yR._rP)_3g3(_yR,_EV2,_tz2,0);_4g3(_yR._pP);_5g3(_yR._ke,
_yR._nP);for(var _17=0;_17<_yR._mO.length;_17++){_nO=_yR._mO._26(_17);if(_nO!=null){if(_nO._oO===_pO){_Gt=_nO._qO;if(_Gt!=null){if(!(_Gt.marked||(!_Gt.active)||(!_Gt.visible))){if(_Gt._It2[_D3]){_Gt._b6(_D3,0,_Gt,_Gt);}}}}}}_HH=_uz2;_5g3(_yR._ke,_yR._oP);_6g3(_yR._pP);if(_yR._rP)_3g3(_yR,_FV2,_tz2,0);}}else {_Kk=this._yN._Kk;_JG=_16.Sprites;for(i=_Kk.length-1;i>=0;i--){_Gt=_Kk[i];if(_Gt.marked||!_Gt.visible)continue;if(_Gt._It2[_D3]){_Gt._b6(_D3,0,_Gt,_Gt);}}}};_J31.prototype._gg3=function(_D4){_3F2=_7F2;
_3F2._9g=0;_3F2._bg=0;_3F2._hg3=_D4.right;_3F2._ig3=_D4.bottom;_3F2._ag=_D4.right;_3F2._cg=_D4.bottom;_3F2._jg3=1.0;_3F2._kg3=1.0;_ZJ();{_ge1(0,0,_D4.right,_D4.bottom);_ie1(0,0,_D4.right,_D4.bottom,0);if(this._lc3&&_mk1){_XJ(_1i1);}this._8g3(_D4,_xz2);}_5K();};_J31.prototype._lg3=function(){if(_mk1){if(_Ed1<0){_Ed1=surface_create(_Sd1,_Td1);g_pBuiltIn.application_surface=_Ed1;debug("Application Surface created: w="+_Sd1+", h="+_Td1);}if(_Fd1){_Fd1=false;surface_create(_Gd1,_Hd1,_Ed1);_Sd1=_Gd1;_Td1=_Hd1;
debug("Application Surface resized: w="+_Sd1+", h="+_Td1);_mg3();}surface_set_target(_Ed1);}};_J31.prototype._ng3=function(_D4){_ZJ();var _og3=new _OE();_og3._qj(_TL);if(_U3){_he1(0,0,_D4.right,_D4.bottom,0);}_ei1=1;_fi1=1;this._lg3();this._3d3();var _2g;if(!this._3g){_2g=_4g;_ge1(0,0,_Sd1,_Td1);if(_U3){_he1(0,0,_S3._VS,_S3._XS,0);}else {_ie1(0,0,_S3._VS,_S3._XS,0);}}else {_2g=this._5g;if(this._kc3){_ge1(0,0,_Sd1,_Td1);_ie1(0,0,_Sd1,_Td1,0);_XJ(_1i1);}}var _pg3=_nk1.w/_Sd1;var _qg3=_nk1.h/_Td1;var _HX=_ei1;
var _IX=_fi1;_6F2=0;for(var i=0;i<_2g.length;i++){_3F2=_2g[i];if(_3F2.visible){var _rg3=_sg3;_ZJ();{if(_3F2._aM!=-1){_Wd1(_3F2._aM);}_3F2._9g=_3F2._Yc3*_HX*_pg3+_nk1.x;_3F2._bg=_3F2._Zc3*_IX*_qg3+_nk1.y;_3F2._hg3=_3F2.__c3*_HX*_pg3;_3F2._ig3=_3F2._0d3*_IX*_qg3;_3F2._ag=_3F2._9g+_3F2._hg3;_3F2._cg=_3F2._bg+_3F2._ig3;_3F2._jg3=_3F2._hg3/_3F2._5e1;_3F2._kg3=_3F2._ig3/_3F2._7e1;if(_3F2._aM!=-1){_ge1(0,0,surface_get_width(_3F2._aM),surface_get_height(_3F2._aM));}else {_ge1(_3F2._Yc3*_HX,_3F2._Zc3*_IX,_3F2.__c3*_HX,
_3F2._0d3*_IX);}if(_U3){_qs2._Dr2(_3F2._C31);var _br2=_qs2._Cr2();if(_br2!=null){_br2._zd();_br2._6s2();}}else _ie1(_3F2._1e1,_3F2._3e1,_3F2._5e1,_3F2._7e1,_3F2.angle);if((!_U3)){if(Math.abs(_3F2.angle)<0.001){_D4.left=_3F2._1e1;_D4.top=_3F2._3e1;_D4.right=_3F2._1e1+_3F2._5e1;_D4.bottom=_3F2._3e1+_3F2._7e1;}else {var _ju=_3F2.angle*(__6/180);var _qi=Math.abs(Math.sin(_ju));var c=Math.abs(Math.cos(_ju));var _ek=(c*_3F2._5e1)+(_qi*_3F2._7e1);var _UL=(_qi*_3F2._5e1)+(c*_3F2._7e1);_D4.left=_3F2._1e1+(_3F2._5e1-_ek)/2;
_D4.right=_3F2._1e1+(_3F2._5e1+_ek)/2;_D4.top=_3F2._3e1+(_3F2._7e1-_UL)/2;_D4.bottom=_3F2._3e1+(_3F2._7e1+_UL)/2;}g_pBuiltIn.view_current=i;this._7g3(_D4);}else {g_pBuiltIn.view_current=i;this._7g3(_TL);}if(_3F2._aM!=-1){surface_reset_target();}_6F2++;if(_U3){var _br2=_qs2._Cr2();if(_br2!=null){_br2._Bd();}_qs2._Dr2(-1);}}_5K();}}_TL._qj(_og3);_5K();};_J31.prototype._tg3=function(_D4){if(_fk1&&_mk1){_ZJ({_ug3:true,_vg3:true});_D4.left=0;_D4.top=0;_D4.right=window_get_width();_D4.bottom=window_get_height();
var rect=_nk1;var _OG=_s8;var _wg3=_OG&&gpu_get_alphatestenable();if(_OG)gpu_set_alphatestenable(false);_ge1(0,0,_D4.right,_D4.bottom);_ie1(0,0,_D4.right,_D4.bottom,0);draw_surface_stretched(_Ed1,rect.x,rect.y,rect.w,rect.h);if(_OG)gpu_set_alphatestenable(_wg3);_5K({_xg3:true,_yg3:true});}};_J31.prototype._zg3=function(_D4){_D4.left=0;_D4.top=0;_D4.right=window_get_width();_D4.bottom=window_get_height();_3F2=_7F2;_3F2._9g=0;_3F2._bg=0;_3F2._hg3=_D4.right;_3F2._ig3=_D4.bottom;_3F2._ag=_D4.right;_3F2._cg=_D4.bottom;
_3F2._jg3=1.0;_3F2._kg3=1.0;_ZJ();{_ge1(0,0,_D4.right,_D4.bottom);_ie1(0,0,_D4.right,_D4.bottom,0);this._8g3(_D4,_yz2);}_5K();};_J31.prototype.DrawGUI=function(_D4){var _Ag3=_ei1;var _Bg3=_fi1;var _JJ=_KJ;var _GJ=_HJ;if(_JJ<0)_JJ=window_get_width();if(_GJ<0)_GJ=window_get_height();_ZJ({_ug3:true});{_D4.left=0;_D4.top=0;_D4.right=window_get_width();_D4.bottom=window_get_height();_ei1=_D4.right/_JJ;_fi1=_D4.bottom/_GJ;_3F2=_7F2;_3F2._9g=0;_3F2._bg=0;_3F2._hg3=_D4.right;_3F2._ig3=_D4.bottom;_3F2._ag=_D4.right;
_3F2._cg=_D4.bottom;_3F2._jg3=_ei1;_3F2._kg3=_fi1;_PJ=true;_ge1(0,0,_D4.right,_D4.bottom);_QJ();var _og3=new _OE();_og3._qj(_TL);_TL.left=0;_TL.top=0;_TL.right=_JJ;_TL.bottom=_GJ;this._8g3(_D4,_vz2);this._8g3(_D4,_rz2);this._8g3(_D4,_wz2);_PJ=false;_TL._qj(_og3);}_5K({_xg3:true});_ei1=_Ag3;_fi1=_Bg3;};_J31.prototype._Cg3=function(_D4){if(_bm>=0){_ZJ();_ge1(0,0,_D4.right,_D4.bottom);_ie1(0,0,_D4.right,_D4.bottom,0);this._9g3();_5K();}};_J31.prototype._a9=function(){_ZJ();_1K=0;_2K=0;_3K=canvas.width;
_4K=canvas.height;var _D4=new _OE();if(this._3g){_D4.left=0;_D4.top=0;_D4.right=window_get_width();_D4.bottom=window_get_height();}else {_D4._qj(_TL);}this._gg3(_D4);this._ng3(_D4);if(_mk1){surface_reset_target();}if(_Bd1.length!=0){_55("Unbalanced surface stack. You MUST use surface_reset_target() for each set.");return;}this._zg3(_D4);this._tg3(_D4);this.DrawGUI(_D4);this._Cg3(_D4);_5K();};function _QJ(){var _JJ=_KJ;var _GJ=_HJ;if(_JJ<0)_JJ=_6i1;if(_GJ<0)_GJ=_7i1;var _HX=1;var _IX=1;var _tY=0;var _uY=0;
if(_MJ){_HX=_LJ;_IX=_IJ;_tY=_NJ;_uY=_OJ;_2_2(_HX,_IX,_tY,_uY);}else {_tY=_nk1.x;_uY=_nk1.y;if(_KJ>0){_HX=_nk1.w/_JJ;}if(_HJ>0){_IX=_nk1.h/_GJ;}_2_2(_HX,_IX,_tY,_uY);}_1M();};_J31.prototype._Dg3=function(){var _FS=[];var _xN=_xn._o43._Kk;for(var i=0;i<_xN.length;i++){var _Gt=_xN[i];if(_Gt.marked){_FS[_FS.length]=_Gt;}}for(var i=0;i<_FS.length;i++){var _Gt=_FS[i];this._Oc3(_Gt);}};_J31.prototype._Oc3=function(_Gt){if(this._c01&&_Gt._911){this._c01._dA1(_Gt._911);}_jO._8S(this,_Gt);_xn._s43(_Gt);this._yN._Cl(_Gt);
this._3O._SQ(_Gt);_Gt._1F._8S(_Gt);};_J31.prototype._4O=function(_tt){if(_tt.active){this._yN._Cl(_tt);_tt._1F._8S(_tt);this._3O._Df(_tt);_tt.active=false;}};_J31.prototype._6O=function(_tt){if(!_tt.active){this._3O._SQ(_tt);this._yN._5O(_tt);_tt._1F._4S(_tt);_tt.active=true;}};_J31.prototype._uf1=function(_7c3){this._Rf1._Df(_7c3);this._yf1[_7c3.id]=_7c3;this._7g1++;};_J31.prototype._wf1=function(_gg){var _rf1=this._yf1[_gg];if(_rf1){this._Rf1._wf1(_rf1);this._yf1[_gg]=undefined;this._7g1--;}};_J31.prototype._Zf1=function(_rl){
var _0g1=this._Rf1._26(_rl);if(_0g1!=null&&_0g1!=undefined){var _Kk=_0g1._BX();for(var _1g1=0;_1g1<_Kk.length;_1g1++){var _rf1=_Kk[_1g1];if(_rf1){this._yf1[_rf1.id]=null;this._7g1--;}}}this._Rf1._Cl(_rl);};_J31.prototype._Eg3=function(){this._7g1=0;this._yf1=[];};_J31.prototype._Fg3=function(){this._x31.tiles=[];};_J31.prototype._Gg3=function(){if(this._423.length==0)return;var _Tg=this._423;var active=this._yN;var _Hg3;var _Ig3;if(active._R83<0){_Ig3=active._Kk.length;}else {_Ig3=active._R83;}var _E8=0;for(var i=0;
i<_Tg.length;i++){var _Gt=_Tg[i];for(var _17=0;_17<_Ig3;_17++){if(_Gt==active._Kk[_17]){active._Kk.splice(_17,1);active._Kk[active._Kk.length]=_Gt;_E8+=1;_Ig3-=1;break;}}if(_U3){var room=_S3;if(room!=null){var _iO=_jO._lO(room,_Gt._jR);if(_iO!=null){if(floor(_iO.depth)!=floor(_Gt.depth)){if(_iO._lP&&_iO._mO.length==1){_jO._gS(room,_iO,_Gt.depth,true);}else {_jO._9S(room,_iO,_Gt);_jO._4S(room,_Gt);}}}}}}if(_E8>0){if(active._R83<0){active._R83=active._Kk.length-_E8;}else {active._R83-=_E8;}}this._423=[];
};_J31.prototype._Jg3=function(){if(_U3){var _0j=_XF2.length;for(var i=0;i<_0j;i++){var _Kg3=_XF2[i];var _3b3=_Kg3._eb3;var type=_Kg3.type;var id=_3b3.id;if(type==0){_jO._6R(_S3,_3b3._3a3,true);var _ab3=new _dQ();_ab3._eQ=id;_ab3._3a3=_jO._FR(_S3,_3b3.depth,_ab3,true,true);}}}if(_XF2.length!=0)_XF2=[];};_J31.prototype._uR=function(_gg){this._RU[this._RU.length]=_gg;};_J31.prototype.__R=function(_gg){for(var i=0;i<this._RU.length;i++){if(this._RU[i]==_gg){this._RU.splice(i,1);return;}}};function _zG2(){this._P31=[];
this._T31=[];}_zG2.prototype._EH2=function(_NT1){this._T31=_NT1;};_zG2.prototype._Df=function(_zX2){return this._P31[this._P31.length]=_zX2;};_zG2.prototype._26=function(_Lg3){if(_Lg3<0||_Lg3>=this._P31.length)return null;return this._P31[_Lg3];};_zG2.prototype._R31=function(_Lg3){return this._P31[this._T31[_Lg3]];};_zG2.prototype._Cl=function(_Lg3){this._P31[_Lg3]=null;};_zG2.prototype._L31=function(_Lg3){var _Mg3=_fR._26(_Lg3);var _Ng3=new _J31();_Ng3._K31();_Ng3._uc3(_Mg3._x31);this._Df(_Ng3);return _Ng3.id;
};_zG2.prototype._M31=function(_4l,_vj){var _Og3=this._P31[_4l];var _Pg3=this._P31[_vj];if(!_Og3||!_Pg3){return;}_Og3._uc3(_Pg3._x31);};_zG2.prototype._Qg3=function(){_qs2._cr2();_LG2();for(var _Rg3 in this._P31){if(!this._P31.hasOwnProperty(_Rg3))continue;var room=this._P31[_Rg3];for(var i=0;i<8;i++){var _Sg3=room._k_1(i);if(_Sg3){_Sg3._C31=-1;}}var _Tg3=room._x31;if(_Tg3){for(var i=0;i<8;i++){var _hz=_Tg3.views[i];if(_hz){if(_hz._C31!==undefined){delete _Tg3.views[i]._C31;}}else {var _F4=0;}}}}_qs2._7r2();}
;_Ug3=-0.0001;function _Af3(_Vg3){var hash="";for(var i=0;i<_Vg3.length;i++){var _re=_Vg3[i];hash+=_re.__type+_re._Wg3.toString();}return hash;}/*@constructor */function _ZO2(){this._dP2=-1;this._NP2=-1;this._Wg3=_Xg3++;this.__yyIsGMLObject=true;this._OP2=function(){};this._QU1=function(_Yg3){if(this._NP2<_hP2()){this._OP2();this._NP2=_hP2();}if(_Yg3<this._dP2)return true;else return false;};this._4P2=function(){this._dP2=_eP2();};}_Zg3=0;__g3=1;_0h3=2;_1h3=3;_2h3=0;_3h3=1;_4h3=0;_5h3=1;_6h3=2;_7h3=0;_8h3=1;
_9h3=2;_ah3=3;_bh3=0;_741=1;_a41=2;_d41=3;_e41=4;_b41=5;_c41=6;_941=7;_G41=8;_I41=9;_K41=10;_M41=11;_ch3=12;_LS=13;_841=14;_f41=15;_g41=16;_j41=17;_dh3=18;function _qe3(type){return(type==_d41||type==_e41||type==_b41||type==_c41);}_eh3=0;_fh3=1;_gh3=2;_hh3=3;_ih3=4;_jh3=5;_kh3=6;_lh3=7;_FU=8;_mh3=9;_nh3=10;_oh3=11;_ph3=12;_qh3=13;_DU=14;_GU=15;_rh3=16;_Ge3=17;_Je3=18;_sh3=19;_If3=20;_Lf3=21;_Of3=22;_Rf3=23;_th3=24;_uh3=25;_KU=26;_vh3=0;_kP2=1;_mP2=2;_wh3=0;_xh3=0;_yh3=0;_zh3=1;_Ah3=1;_Bh3=2;_Ch3=3;
_Dh3=0;_Eh3=1;_GZ2=0;_LZ2=1;_KZ2=2;_IZ2=3;_Fh3=0;_CZ2=1;_EZ2=2;_Gh3=-0.0001;_Hh3=0;_Ih3=0;_Jh3=0;_Kh3=1;_Xg3=0;_S41=[];function _Lh3(){return _Jh3++;}function _hP2(){return _Kh3;}function _eP2(){return _Kh3++;}function _Mh3(_re3,x,y,_bP,_cP,rotation,_Pe3,_Qe3){var _Nh3=new _Zy();var _Oh3=new _Zy();var _FS=new _Zy();if(_Pe3!=0||_Qe3!=0){_Oh3._lA(-_Pe3,-_Qe3,0);}else _Oh3._9I2();_Nh3._mA(_bP,_cP,1);_FS.Multiply(_Oh3,_Nh3);_Oh3._qj(_FS);_Nh3._pA(rotation);_FS.Multiply(_Oh3,_Nh3);_Oh3._qj(_FS);_Nh3._lA(x,y,0);_FS.Multiply(_Oh3,
_Nh3);_Oh3._qj(_FS);_FS._qj(_re3);_re3.Multiply(_FS,_Oh3);}function _Ph3(_Qh3,_Rh3,_Sh3,_Th3,_Uh3,_Vh3,_Wh3,_Xh3){if(_Uh3==null)return false;if(_Vh3==null)return false;var playbackspeed=_Vh3._7c1*_Th3;var _Ke3=_Sh3;if(playbackspeed<0.0){playbackspeed=-playbackspeed;_Ke3=-_Ke3;}return _Uh3._NS._Yh3(_Vh3._Zh3,playbackspeed,_Vh3._PS,_Rh3,_Qh3,_Ke3,_Wh3,_Xh3,false);}function __h3(_YO2){if((_YO2!=null)&&(_YO2!=undefined)){var modelName=_YO2.modelName;var _0i3;switch(modelName){case "GMRealTrack":_0i3=new _B41(_YO2);
break;case "GMGraphicTrack":_0i3=new _x41(_YO2);break;case "GMInstanceTrack":_0i3=new _y41(_YO2);break;case "GMColourTrack":_0i3=new _1i3(_YO2);break;case "GMSpriteFramesTrack":_0i3=new _O41(_YO2);break;case "GMSequenceTrack":_0i3=new _F41(_YO2);break;case "GMAudioTrack":_0i3=new _z41(_YO2);break;case "GMTextTrack":_0i3=new _A41(_YO2);break;case "GMGroupTrack":_0i3=new _N41(_YO2);break;case "GMClipMaskTrack":_0i3=new _H41(_YO2);break;case "GMClipMask_Mask":_0i3=new _J41(_YO2);break;case "GMClipMask_Subject":_0i3=new _L41(_YO2);
break;case "GMStringTrack":_0i3=new _E41(_YO2);break;case "GMBoolTrack":_0i3=new _D41(_YO2);break;}_0i3._NS=new _h41(_0i3._oO,_YO2.keyframeStore);return _0i3;}}/*@constructor */function _B41(_YO2){_2i3.call(this,_YO2);this._oO=_d41;if((_YO2!=null)&&(_YO2!=undefined)){this._3i3=_YO2.interpolation;}Object.defineProperties(this,{gmlinterpolation:{enumerable:true,get :function(){return this._3i3;},set :function(__3){var _re=yyGetInt32(__3);if((_re>=0)&&(_re<_6h3)){this._3i3=_re;}else {debug("Trying to set interpolation property of track to out-of-bounds value "+yyGetReal(__3));
}}}});this._Qm2=function(_4i3,_5l,_5i3){if(!this.enabled)return null;if(this._NS==null)return null;if(this._NS._LT==0)return null;return this._6i3(_4i3,_5l,_5i3);};this._gP2=function(_4i3,_5i3){_5i3+=1;if(_4i3>this._aP2.length){var _7i3=this._aP2.length;this._aP2.length=_4i3+1;for(var i=_7i3;i<this._aP2.length;i++){this._aP2[i]=-1;}}this._aP2[_4i3]=0;for(var i=0;i<this._NS._LT;i++){var key=this._NS._PT[i];var value=key._yr[_4i3];if(value==null){value=key._yr[0];if((value==null)||((value._8i3==-1)&&(value._9i3==null)))continue;
}if((value._8i3==-1)&&(value._9i3==null)){var _oP2=this._pP2(_4i3);_oP2._KP=key._QT;_oP2.__O2=value._ai3;if(!key._7f3&&key._PS>1){var _oP2=this._pP2(_4i3);_oP2._KP=(key._QT+(key._PS));_oP2.__O2=value._ai3;}else if(key._7f3==true){if(i==(this._NS._LT-1)){if((_5i3-key._QT)>1){var _oP2=this._pP2(_4i3);_oP2._KP=key._QT+(_5i3-key._QT);_oP2.__O2=value._ai3;}}else {var _bi3=this._NS._PT[i+1];if(_bi3._QT>(key._QT+1)){var _oP2=this._pP2(_4i3);_oP2._KP=_bi3._QT;_oP2.__O2=value._ai3;}}}}else {var _ci3=key._PS;if(key._7f3==true){
if(i==(this._NS._LT-1)){if(_5i3<=0)continue;else {_ci3=_5i3-key._QT;}}else {var _bi3=this._NS._PT[i+1];if(_bi3._QT>key._QT){_ci3=_bi3._QT-key._QT;}}}var _pr=null;if(value._di3){_pr=value._9i3;}else {_pr=_rr._26(value._8i3);}if(_pr==null){continue;}var _ei3=_4i3;if(_ei3>=_pr._wr){_ei3=_pr._wr-1;}_pr._Er(this,_ei3,_4i3,key._QT,_ci3);}}};this._fi3=function(_4i3,_gi3,_5l,_5i3,_hi3){var _ii3=null;if(!this.enabled)return null;if(this._NS==null)return null;if(this._NS._LT==0)return null;var _y6=this._aP2[_4i3];if(_y6==0){
return null;}var _ji3=_5l-_gi3;if(_ji3<=0){_ii3=0;return _ii3;}var _0c3=this._bP2[_4i3];var _ki3=0;if(_y6==1){_ki3=_0c3[0].__O2*_ji3;_ii3=_ki3;return _ii3;}var _li3=this._3i3==_5h3;var _pu=_0c3[0];var _Y6=_X6(_pu._KP,_5l)-_gi3;if(_Y6>0)_ki3=_pu.__O2*_Y6;for(var i=1;i<_y6;++i){if(_pu._KP>=_5l)break;var _qu=_0c3[i];if(_qu._KP>_gi3){_Y6=_X6(_qu._KP,_5l)-_pu._KP;if(_Y6>0){var _tm;var offset=(_gi3-_pu._KP);if(!_li3){if(offset>0)_Y6-=offset;_tm=_pu.__O2*_Y6;}else {var _G4=(_qu.__O2-_pu.__O2)/(_qu._KP-_pu._KP);var _Ua=_pu.__O2;
if(offset>0){_Y6-=offset;_Ua+=_G4*offset;}_tm=_Ua*_Y6+(0.5*_G4*_Y6*_Y6);}_ki3+=_tm;}}_pu=_qu;}var _o02=_5l-_pu._KP;if(_o02>0){var _tm=_pu.__O2*(_o02);_ki3+=_tm;}_ii3=_W6(_ki3,0);return _ii3;};}/*@constructor */function _2i3(_YO2){_mi3.call(this,_YO2);this._3i3=_4h3;this._aP2=[];this._bP2=[];this._ni3=function(_4i3,_5l,_5i3){var _ea=this._oi3();if(_ea!=null){return _ea._ni3(_4i3,_5l,_5i3);}return this._Qm2(_4i3,_5l,_5i3);};this._Qm2=function(_4i3,_5l,_5i3){throw new Error("Not Implemented");};this._pP2=function(_4i3){
var _MP2=new _Lr();if(this._bP2[_4i3]==undefined){this._bP2[_4i3]=[];}this._bP2[_4i3][this._aP2[_4i3]]=_MP2;this._aP2[_4i3]=this._aP2[_4i3]+1;return _MP2;};this._6i3=function(_4i3,_5l,_5i3){var _ii3=null;var _cc1=false;var _Vx1=false;if(_4i3>=this._aP2.length||this._aP2[_4i3]==0){_Vx1=true;}else if(this._NP2<_hP2()){if(this._NS._QU1(this._dP2)){_cc1=true;}this._NP2=_hP2();}if(_cc1||_Vx1){var _pi3=_W6(this._aP2.length,_4i3+1);for(var i=0;i<_pi3;i++){if((i>=this._aP2.length)||(this._aP2[i]!=-1)){this._gP2(i,
_5i3);}}this._dP2=_W6(this._dP2,this._NS._dP2);}var _y6=this._aP2[_4i3];if(_y6==0){return null;}var _0c3=this._bP2[_4i3];if(_0c3[0]._KP>_5l){_ii3=_0c3[0].__O2;return _ii3;}else if(_0c3[_y6-1]._KP<_5l){_ii3=_0c3[_y6-1].__O2;return _ii3;}var start,end,_1j;start=0;end=_y6;_1j=(start+end)>>1;while(_1j!=start){if(_0c3[_1j]._KP>_5l){end=_1j;}else {start=_1j;}_1j=(start+end)>>1;}if((this._3i3==_4h3)||(_1j==(_y6-1))){_ii3=_0c3[_1j].__O2;return _ii3;}else {var _qi3=(_0c3[_1j]);var _ri3=(_0c3[_1j+1]);var prop=0.0;if((_ri3._KP-_qi3._KP)>0.0){
prop=(_5l-_qi3._KP)/(_ri3._KP-_qi3._KP);}_ii3=(_ri3.__O2*prop)+(_qi3.__O2*(1.0-prop));return _ii3;}};}/*@constructor */function _x41(_YO2){_mi3.call(this,_YO2);this._oO=_741;}/*@constructor */function _y41(_YO2){_mi3.call(this,_YO2);this._oO=_841;}/*@constructor */function _1i3(_YO2){_2i3.call(this,_YO2);this._oO=_e41;if((_YO2!=null)&&(_YO2!=undefined)){this._3i3=_YO2.interpolation;}Object.defineProperties(this,{gmlinterpolation:{enumerable:true,get :function(){return this._3i3;},set :function(__3){var _re=yyGetInt32(__3);
if((_re>=0)&&(_re<_6h3)){this._3i3=_re;}else {debug("Trying to set interpolation property of track to out-of-bounds value "+yyGetReal(__3));}}}});this._Qm2=function(_4i3,_5l,_5i3){if(!this.enabled)return null;if(this._NS==null)return null;if(this._NS._LT==0)return null;var _ii3=null;var _D4,_E4,_F4,_G4;_D4=_E4=_F4=_G4=1.0;if((_G4=this._6i3(0,_5l,_5i3))==null)return null;if((_D4=this._6i3(1,_5l,_5i3))==null)return null;if((_E4=this._6i3(2,_5l,_5i3))==null)return null;if((_F4=this._6i3(3,_5l,_5i3))==null)return null;
_D4*=255.0;_E4*=255.0;_F4*=255.0;_G4*=255.0;var _si3=_X6(_D4,255);var _ti3=_X6(_E4,255);var _ui3=_X6(_F4,255);var _vi3=_X6(_G4,255);_ii3=((_vi3<<24)&0xff000000)|((_ui3<<16)&0xff0000)|((_ti3<<8)&0xff00)|(_si3&0xff);return _ii3;};this._gP2=function(_4i3,_5i3){_5i3+=1;if(_4i3>this._aP2.length){var _7i3=this._aP2.length;this._aP2.length=_4i3+1;for(var i=_7i3;i<this._aP2.length;i++){this._aP2[i]=-1;}}this._aP2[_4i3]=0;for(var i=0;i<this._NS._LT;i++){var key=this._NS._PT[i];var value=key._yr[_4i3];if(value==null){
value=key._yr[0];if(value==null)continue;}if((value._8i3==-1)&&(value._9i3==null)){var _oP2=this._pP2(_4i3);_oP2._KP=key._QT;_oP2.__O2=this._wi3(value._qU2,_4i3);if(!key._7f3&&key._PS>1){var _oP2=this._pP2(_4i3);_oP2._KP=(key._QT+(key._PS-1));_oP2.__O2=this._wi3(value._qU2,_4i3);}else if(key._7f3==true){if(i==(this._NS._LT-1)){if((_5i3-key._QT)>1){var _oP2=this._pP2(_4i3);_oP2._KP=key._QT+(_5i3-key._QT);_oP2.__O2=this._wi3(value._qU2,_4i3);}}else {var _bi3=this._NS._PT[i+1];if(_bi3._QT>(key._QT+1)){var _oP2=this._pP2(_4i3);
_oP2._KP=_bi3._QT-1;_oP2.__O2=this._wi3(value._qU2,_4i3);}}}}else {var _ci3=key._PS;if(key._7f3==true){if(i==(this._NS._LT-1)){if(_5i3<=0)continue;else {_ci3=_5i3-key._QT;}}else {var _bi3=this._NS._PT[i+1];if(_bi3._QT>key._QT){_ci3=_bi3._QT-key._QT;}}}var _pr=null;if(value._di3){_pr=value._9i3;}else {_pr=_rr._26(value._8i3);}if(_pr==null){continue;}var _ei3=_4i3;if(_ei3>=_pr._wr){_ei3=_pr._wr-1;}_pr._Er(this,_ei3,_4i3,key._QT,_ci3,1.0/255.0);}}};this._wi3=function(_0d,_xi3){var _yi3=0;switch(_xi3){case 0:_yi3=_0d>>24;
break;case 1:_yi3=_0d;break;case 2:_yi3=_0d>>8;break;case 3:_yi3=_0d>>16;break;}_yi3&=0xff;var _zi3=_yi3/255.0;return _zi3;};this._Ai3=function(left,right){var _D4=_X6((left&0xff)+(right&0xff),255);var _E4=_X6(((left>>8)&0xff)+((right>>8)&0xff),255);var _F4=_X6(((left>>16)&0xff)+((right>>16)&0xff),255);var _G4=_X6(((left>>24)&0xff)+((right>>24)&0xff),255);return((_G4<<24)&0xff000000)|((_F4<<16)&0xff0000)|((_E4<<8)&0xff00)|(_D4&0xff);};this._Bi3=function(left,right){var _D4=((left&0xff)*(right&0xff)/255.0);
var _E4=(((left>>8)&0xff)*((right>>8)&0xff)/255.0);var _F4=(((left>>16)&0xff)*((right>>16)&0xff)/255.0);var _G4=(((left>>24)&0xff)*((right>>24)&0xff)/255.0);return((_G4<<24)&0xff000000)|((_F4<<16)&0xff0000)|((_E4<<8)&0xff00)|(_D4&0xff);};this._Bi3=function(left,factor){factor=_W6(factor,0.0);factor=_X6(factor,1.0);var _D4=((left&0xff)*factor);var _E4=(((left>>8)&0xff)*factor);var _F4=(((left>>16)&0xff)*factor);var _G4=(((left>>24)&0xff)*factor);return((_G4<<24)&0xff000000)|((_F4<<16)&0xff0000)|((_E4<<8)&0xff00)|(_D4&0xff);
};}/*@constructor */function _O41(_YO2){_mi3.call(this,_YO2);this._oO=_LS;this._Qm2=function(_Ci3){var _Di3=undefined;var _Ei3=undefined;var _Fi3=this._NS._Gi3(_Ci3);_Di3=_Fi3._Hi3;_Ei3=_Fi3.post;var _Ii3=(_Di3!==undefined);var _Ji3=(_Ei3!==undefined);if((!_Ii3)&&(!_Ji3))return -1.0;if(!_Ii3){return _Ei3.__P;}if(!_Ji3){var _Ki3=_Di3._yr[0].__P;var _Li3=_Ki3+1.0;var _Mi3=_Di3._QT;var _Ni3=_Mi3+_Di3._PS;if(_Ni3==_Mi3){_Ni3+=1.0;}var _H43=_Ki3+((_Ci3-_Mi3)/(_Ni3-_Mi3))*(_Li3-_Ki3);return _H43;}var _Ki3=_Di3._yr[0].__P;
var _Li3=_Ei3._yr[0].__P;var _Mi3=_Di3._QT;var _Ni3=_Ei3._QT;var _H43=_Ki3+((_Ci3-_Mi3)/(_Ni3-_Mi3))*(_Li3-_Ki3);return _H43;};}/*@constructor */function _F41(_YO2){_mi3.call(this,_YO2);this._oO=_941;}/*@constructor */function _z41(_YO2){_mi3.call(this,_YO2);this._oO=_a41;}/*@constructor */function _N41(_YO2){_mi3.call(this,_YO2);this._oO=_M41;}/*@constructor */function _A41(_YO2){_mi3.call(this,_YO2);this._oO=_j41;}/*@constructor */function _H41(_YO2){_mi3.call(this,_YO2);this._oO=_G41;this._Oi3=null;this._Pi3=null;
for(var i=0;i<this._KS.length;i++){var _sf3=this._KS[i];if(_sf3._oO==_I41){this._Oi3=_sf3;if(this._Pi3!=null){break;}}else if(_sf3._oO==_K41){this._Pi3=_sf3;if(this._Oi3!=null){break;}}}Object.defineProperties(this,{gmlmask:{enumerable:true,get :function(){return this._Oi3;},set :function(__3){this._Oi3=__3;}},gmlsubject:{enumerable:true,get :function(){return this._Pi3;},set :function(__3){this._Pi3=__3;}}});}_H41.prototype._Qi3=function(){return this._Oi3;};_H41.prototype._Ri3=function(){return this._Pi3;
};/*@constructor */function _J41(_YO2){_mi3.call(this,_YO2);this._oO=_I41;}/*@constructor */function _L41(_YO2){_mi3.call(this,_YO2);this._oO=_K41;}/*@constructor */function _E41(_YO2){_mi3.call(this,_YO2);this._oO=_c41;}/*@constructor */function _D41(_YO2){_mi3.call(this,_YO2);this._oO=_b41;}/*@constructor */function _mi3(_YO2){_ZO2.call(this);this.__type="[Track]";this.id=_Lh3();this._Si3="";this.pName="";this.builtinName=0;this._Ti3=0;this._Ui3=false;this._Vi3=[];this._Wi3=0;this._KS=[];this._Xi3=0;
this._Yi3=[];this._NS=new _h41();if((_YO2!=null)&&(_YO2!=undefined)){this._Si3=_YO2.modelName;this.pName=_YO2.pName;this.builtinName=_YO2.builtinName;this._Ui3=_YO2._Zi3==1?true:false;this._Ti3=_YO2.traits;if(_YO2.tags!==undefined&&_YO2.tags.length>0){for(var __i3=0;__i3<_YO2.tags.length;__i3++){this._Vi3[_YO2.tags[__i3]["UniqueTagTypeId"]]=_YO2.tags[__i3];}}this._Wi3=_YO2.tracks.length;this._KS=[];for(var _ze2=0;_ze2<this._Wi3;++_ze2){this._KS[_ze2]=__h3(_YO2.tracks[this._Wi3-1-_ze2]);}this._Xi3=_YO2.ownedResourceModels.length;
this._Yi3=[];for(var _0j3=0;_0j3<this._Xi3;++_0j3){var _1j3=_YO2.ownedResourceModels[_0j3];var _2j3=_1j3.type;var _3j3=_1j3.resource;if(_2j3=="GMAnimCurve"){this._Yi3[_0j3]=new _Jr(_3j3);}}}Object.defineProperties(this,{gmlname:{enumerable:true,get :function(){return this.pName;},set :function(__3){this.pName=yyGetString(__3);this._4j3();}},gmltype:{enumerable:true,get :function(){return this._oO;}},gmltraits:{enumerable:true,get :function(){return this._Ti3;},set :function(__3){this._Ti3=yyGetInt32(__3);}},
gmltracks:{enumerable:true,get :function(){return this._KS;},set :function(__3){if(__3 instanceof Array){this._KS=__3;}else {throw new Error("value must be an array of tracks");}}},gmlenabled:{enumerable:true,get :function(){return this._Vi3==null||this._Vi3[_0h3]==undefined;},set :function(__3){this._Vi3[_0h3]=yyGetBool(__3)?undefined:true;}},gmlvisible:{enumerable:true,get :function(){return this._Vi3==null||this._Vi3[__g3]==undefined;},set :function(__3){this._Vi3[__g3]=yyGetBool(__3)?undefined:true;}},enabled:{
get :function(){return this._Vi3==null||this._Vi3[_0h3]==undefined;},set :function(__3){this._Vi3[_0h3]=yyGetBool(__3)?undefined:true;}},visible:{get :function(){return this._Vi3==null||this._Vi3[__g3]==undefined;},set :function(__3){this._Vi3[__g3]=yyGetBool(__3)?undefined:true;}},gmlembeddedAnimCurves:{enumerable:true,get :function(){return this._Yi3;},set :function(__3){this._Yi3=__3;}},gmllinkedTrack:{enumerable:true,get :function(){return this._Vi3==null?null:(this._Vi3[_Zg3]!=null?this._Vi3[_Zg3]._a4:null);
},set :function(__3){if(this._Vi3[_0h3]==null)this._Vi3[_Zg3]={};this._Vi3[_Zg3]._a4=__3;}},gmlkeyframes:{enumerable:true,get :function(){return this._NS._PT;},set :function(__3){if(__3 instanceof Array){this._NS._PT=__3;this._NS._LT=__3.length;}else {throw new Error("value must be an array of keyframes");}}}});this._oi3=function(){if(this.tags!=null&&this.tags[_Zg3]!=null){var _5j3=this.tags[_Zg3];if(_5j3==null)return null;if(_5j3._a4==null){var _a4=_rR._zU(_5j3._ze2);if(_a4!=null)_5j3._a4=_a4;}return _5j3._a4;
}return null;};this._6j3=function(_7j3,_Y91,_8j3,_9j3){_8j3.xOrigin=0.0;_8j3.yOrigin=0.0;_9j3&=~(1<<_rh3);_8j3._Hf3=0;_8j3._aj3(_9j3);_8j3._bj3();var _cj3=_8j3._dj3;for(var _ze2=0;_ze2<this._KS.length;++_ze2){var _a4=this._KS[_ze2];if(_qe3(_a4._oO)&&(_a4.enabled)){var _ej3=_a4._Ui3;if(_ej3){if(_cj3&(1<<_a4.builtinName)){continue;}if((_8j3._Hf3&(1<<_a4.builtinName))==0){_cj3|=(1<<_a4.builtinName);}}else {_cj3&=~(1<<_a4.builtinName);}switch(_a4.builtinName){case _FU:if(!_ej3||!(_8j3._Hf3&(1<<_FU))){_8j3.rotation=_a4._ni3(_wh3,
_7j3,_Y91);_8j3._Hf3|=(1<<_FU);}break;case _DU:if(!_ej3||!(_8j3._Hf3&(1<<_DU))){_8j3.x=_a4._ni3(_wh3,_7j3,_Y91);_8j3.y=_a4._ni3(_Ah3,_7j3,_Y91);_8j3._Hf3|=(1<<_DU);}break;case _GU:if(!_ej3||!(_8j3._Hf3&(1<<_GU))){_8j3.scaleX=_a4._ni3(_wh3,_7j3,_Y91);_8j3.scaleY=_a4._ni3(_Ah3,_7j3,_Y91);_8j3._Hf3|=(1<<_GU);}break;case _nh3:if(!_ej3||!(_8j3._Hf3&(1<<_nh3))){var color=0xffffffff;var _fj3=_a4._ni3(0,_7j3,_Y91);if(_fj3!=null)color=_fj3;_8j3._Me3[0]=(color&0xff)/255.0;_8j3._Me3[1]=((color>>8)&0xff)/255.0;_8j3._Me3[2]=((color>>16)&0xff)/255.0;
_8j3._Me3[3]=((color>>24)&0xff)/255.0;_8j3._Hf3|=(1<<_nh3);}break;case _mh3:if(!_ej3||!(_8j3._Hf3&(1<<_mh3))){var color=0xffffffff;var _fj3=_a4._ni3(0,_7j3,_Y91);if(_fj3!=null)color=_fj3;_8j3._Ne3[0]=(color&0xff)/255.0;_8j3._Ne3[1]=((color>>8)&0xff)/255.0;_8j3._Ne3[2]=((color>>16)&0xff)/255.0;_8j3._Ne3[3]=((color>>24)&0xff)/255.0;_8j3._Hf3|=(1<<_mh3);}break;case _rh3:if(!_ej3||!(_8j3._Hf3&(1<<_rh3))){_8j3.xOrigin=_a4._ni3(_wh3,_7j3,_Y91);_8j3.yOrigin=_a4._ni3(_Ah3,_7j3,_Y91);_8j3._Hf3|=(1<<_rh3);}break;
case _jh3:if(!_ej3||!(_8j3._Hf3&(1<<_jh3))){_8j3.gain=_a4._ni3(0,_7j3,_Y91);_8j3._Hf3|=(1<<_jh3);}break;case _kh3:if(!_ej3||!(_8j3._Hf3&(1<<_kh3))){_8j3.pitch=_a4._ni3(0,_7j3,_Y91);_8j3._Hf3|=(1<<_kh3);}break;case _lh3:if(!_ej3||!(_8j3._Hf3&(1<<_lh3))){_8j3._gj3=_a4._ni3(0,_7j3,_Y91);_8j3._Hf3|=(1<<_lh3);}break;case _Ge3:if(!_ej3||!(_8j3._Hf3&(1<<_Ge3))){var _rb=_a4._ni3(0,_7j3,_Y91);if(_rb!=null)_8j3.imageSpeed=_rb;_8j3._hj3(_Ge3,true);_8j3._Hf3|=(1<<_Ge3);if(_a4._oO==_d41){var _ij3=-1;var _jj3=false;
if(this._oO==_741||this._oO==_841){var keyframeStore=this._NS;var _ye3=keyframeStore._ze3(_7j3,_Y91);if(_ye3>=0){var _MS=keyframeStore._PT[_ye3];_ij3=_MS._QT;_jj3=true;}}_8j3._Ie3=-1;if(_jj3){var _rb=_a4._fi3(0,_ij3,_7j3,_Y91);if(_rb!=null)_8j3._Ie3=_rb;}}}break;case _Je3:if(!_ej3||!(_8j3._Hf3&(1<<_Je3))){var _rb=_a4._ni3(0,_7j3,_Y91);if(_rb!=null)_8j3.imageIndex=_rb;_8j3._hj3(_Je3,true);_8j3._Hf3|=(1<<_Je3);}break;case _If3:if(!_ej3||!(_8j3._Hf3&(1<<_If3))){_8j3._Jf3=_a4._ni3(_wh3,_7j3,_Y91);_8j3._Kf3=_a4._ni3(_Ah3,
_7j3,_Y91);_8j3._Hf3|=(1<<_If3);}break;case _Lf3:if(!_ej3||!(_8j3._Hf3&(1<<_Lf3))){_8j3._Mf3=_a4._ni3(0,_7j3,_Y91);_8j3._Hf3|=(1<<_Lf3);}break;case _Of3:if(!_ej3||!(_8j3._Hf3&(1<<_Of3))){_8j3._Pf3=_a4._ni3(0,_7j3,_Y91);_8j3._Hf3|=(1<<_Of3);}break;case _Rf3:if(!_ej3||!(_8j3._Hf3&(1<<_Rf3))){_8j3._Sf3=_a4._ni3(0,_7j3,_Y91);_8j3._Hf3|=(1<<_Rf3);}break;}}}_cj3&=_9j3;_8j3._dj3=_cj3;};this._4j3=function(){if(this.pName==null){this.builtinName=_eh3;return;}if(this.pName=="position")this.builtinName=_DU;else if(this.pName=="scale")this.builtinName=_GU;
else if(this.pName=="gain")this.builtinName=_jh3;else if(this.pName=="pitch")this.builtinName=_kh3;else if(this.pName=="falloff")this.builtinName=_lh3;else if(this.pName=="rotation")this.builtinName=_FU;else if(this.pName=="blend_add")this.builtinName=_mh3;else if(this.pName=="blend_multiply")this.builtinName=_nh3;else if(this.pName=="mask")this.builtinName=_ph3;else if(this.pName=="subject")this.builtinName=_qh3;else if(this.pName=="origin")this.builtinName=_rh3;else if(this.pName=="image_speed")this.builtinName=_Ge3;
else if(this.pName=="image_index")this.builtinName=_Je3;else if(this.pName=="image_angle")this.builtinName=_FU;else if(this.pName=="rotation")this.builtinName=_FU;else if(this.pName=="image_blend")this.builtinName=_nh3;else if(this.pName=="frameSize")this.builtinName=_If3;else if(this.pName=="characterSpacing")this.builtinName=_Lf3;else if(this.pName=="lineSpacing")this.builtinName=_Of3;else if(this.pName=="paragraphSpacing")this.builtinName=_Rf3;else if(this.pName=="frame_size")this.builtinName=_If3;else if(this.pName=="character_spacing")this.builtinName=_Lf3;
else if(this.pName=="line_spacing")this.builtinName=_Of3;else if(this.pName=="paragraph_spacing")this.builtinName=_Rf3;else this.builtinName=_eh3;};}/*@constructor */function _kj3(){_ZO2.call(this);this._lj3=0;Object.defineProperties(this,{gmlchannel:{enumerable:true,get :function(){return this._lj3;},set :function(__3){this._lj3=yyGetInt32(__3);}},});this._OP2=function(){var _RP2=this._dP2;for(var _la1 in this._yr){if(_la1._QU1(_RP2)){this._dP2=_W6(this._dP2,_la1._dP2);}}};}/*@constructor */function _v41(_YO2){
_kj3.call(this);this.__type="[MessageEventTrackKey]";this._sc1=null;if((_YO2!=null)&&(_YO2!=undefined)){this._sc1=_YO2.events;}Object.defineProperties(this,{gmlevents:{enumerable:true,get :function(){return this._sc1;},set :function(__3){this._sc1=__3;}},});}/*@constructor */function _w41(_YO2){_kj3.call(this);this.__type="[CodeEventTrackKey]";if((_YO2!=null)&&(_YO2!=undefined)){this._mj3=_YO2.event;this._mj3._nj3=this._mj3;}else {this._mj3=null;}Object.defineProperties(this,{gmlevent:{enumerable:true,
get :function(){return this._mj3;},set :function(__3){this._mj3=__3;}},});}/*@constructor */function _oj3(_YO2){_kj3.call(this);this.__type="[AssetTrackKey]";this._aF=-1;if((_YO2!=null)&&(_YO2!=undefined)){this._aF=_YO2.index;}Object.defineProperties(this,{gmlindex:{enumerable:true,get :function(){return this._aF;},set :function(__3){this._aF=__3;}},});}/*@constructor */function _l41(_YO2){_kj3.call(this);this.__type="[GraphicTrackKey]";this._VP=-1;if((_YO2!=null)&&(_YO2!=undefined)){this._VP=_YO2.index;
}Object.defineProperties(this,{gmlspriteIndex:{enumerable:true,get :function(){return this._VP;},set :function(__3){this._VP=yyGetInt32(__3);}},});}/*@constructor */function _m41(_YO2){_kj3.call(this);this.__type="[InstanceTrackKey]";this._pj3=-1;if((_YO2!=null)&&(_YO2!=undefined)){this._pj3=_YO2.index;}Object.defineProperties(this,{gmlobjectIndex:{enumerable:true,get :function(){return this._pj3;},set :function(__3){this._pj3=yyGetInt32(__3);}},});}/*@constructor */function _o41(_YO2){_kj3.call(this);this.__type="[AudioTrackKey]";
this._qj3=-1;this._rj3=0;this._sj3=0;if((_YO2!=null)&&(_YO2!=undefined)){this._qj3=_YO2.soundIndex;this._rj3=_YO2.emitters;this._sj3=_YO2.mode;}Object.defineProperties(this,{gmlsoundIndex:{enumerable:true,get :function(){return this._qj3;},set :function(__3){this._qj3=__3;}},gmlemitters:{enumerable:true,get :function(){return this._rj3;},set :function(__3){this._rj3=__3;}},gmlmode:{enumerable:true,get :function(){return this._sj3;},set :function(__3){this._sj3=__3;}},});}/*@constructor */function _t41(_YO2){
_kj3.call(this);this.__type="[RealTrackKey]";this._ai3=0;this._di3=false;this._8i3=-1;this._9i3=null;if((_YO2!=null)&&(_YO2!=undefined)){this._ai3=_YO2.realValue;this._di3=_YO2.hasEmbeddedCurve;this._8i3=_YO2.curveIndex;if(_YO2.pEmbeddedCurve!=undefined){this._9i3=new _Jr(_YO2.pEmbeddedCurve);}}this._OP2=function(){var _RP2=this._dP2;for(var _la1 in this._yr){var _pr=_rr._sr(_la1._8i3);if((_pr!=null)&&(_pr._QU1(_RP2))){this._dP2=_W6(this._dP2,_pr._dP2);}}};Object.defineProperties(this,{gmlvalue:{enumerable:true,
get :function(){return this._ai3;},set :function(__3){this._ai3=yyGetReal(__3);this._8i3=-1;this._di3=false;this._9i3=null;}},gmlhasEmbeddedCurve:{enumerable:true,get :function(){return this._di3;},set :function(__3){this._di3=yyGetBool(__3);}},gmlcurve:{enumerable:true,get :function(){var _tj3=undefined;if((this._di3==true)&&(this._9i3!=null)){_tj3=this._9i3;}else {_tj3=_rr._26(this._8i3);}if((_tj3==undefined)||(_tj3==null))return -1;else return _tj3;},set :function(__3){if(typeof(__3)=="object"){var _zb=_rr.AnimCurves.indexOf(__3);
if(_zb==-1){this._9i3=__3;this._di3=true;this._8i3=-1;}else {this._8i3=_zb;this._di3=false;this._9i3=null;}}else {if(_rr._26(this._8i3)!=null){this._8i3=__3;this._di3=false;this._9i3=null;}else {throw new Error("Invalid curve passed to curve property of keyframe channel");}}}},});}/*@constructor */function _u41(_YO2){_kj3.call(this);this.__type="[ColorTrackKey]";this._qU2=0;this._di3=false;this._8i3=-1;this._9i3=null;if((_YO2!=null)&&(_YO2!=undefined)){this._qU2=_YO2.color;this._di3=_YO2.hasEmbeddedCurve;
this._8i3=_YO2.curveIndex;if(_YO2.pEmbeddedCurve!=undefined){this._9i3=new _Jr(_YO2.pEmbeddedCurve);}}Object.defineProperties(this,{gmlcolor:{enumerable:true,get :function(){var _L4=[];_L4[1]=(this._qU2&0xff)/255.0;_L4[2]=((this._qU2>>8)&0xff)/255.0;_L4[3]=((this._qU2>>16)&0xff)/255.0;_L4[0]=((this._qU2>>24)&0xff)/255.0;return _L4;},set :function(__3){if(__3 instanceof Array){var _L4;_L4=((yyGetReal(__3[1])*255.0)&0xff);_L4|=((yyGetReal(__3[2])*255.0)&0xff)<<8;_L4|=((yyGetReal(__3[3])*255.0)&0xff)<<16;_L4|=((yyGetReal(__3[0])*255.0)&0xff)<<24;
this._qU2=_L4;}else {this._qU2=yyGetInt32(__3);}this._8i3=-1;this._di3=false;this._9i3=null;}},gmlcolour:{enumerable:true,get :function(){var _L4=[];_L4[1]=(this._qU2&0xff)/255.0;_L4[2]=((this._qU2>>8)&0xff)/255.0;_L4[3]=((this._qU2>>16)&0xff)/255.0;_L4[0]=((this._qU2>>24)&0xff)/255.0;return _L4;},set :function(__3){if(__3 instanceof Array){var _L4;_L4=((yyGetReal(__3[1])*255.0)&0xff);_L4|=((yyGetReal(__3[2])*255.0)&0xff)<<8;_L4|=((yyGetReal(__3[3])*255.0)&0xff)<<16;_L4|=((yyGetReal(__3[0])*255.0)&0xff)<<24;
this._qU2=_L4;}else {this._qU2=yyGetInt32(__3);}this._8i3=-1;this._di3=false;this._9i3=null;}},gmlcurve:{enumerable:true,get :function(){var _tj3=undefined;if((this._di3==true)&&(this._9i3!=null)){_tj3=this._9i3;}else {_tj3=_rr._26(this._8i3);}if((_tj3==undefined)||(_tj3==null))return -1;else return _tj3;},set :function(__3){if(typeof(__3)=="object"){var _zb=_rr.AnimCurves.indexOf(__3);if(_zb==-1){this._9i3=__3;this._di3=true;this._8i3=-1;}else {this._8i3=_zb;this._di3=false;this._9i3=null;}}else {if(_rr._26(this._8i3)!=null){
this._8i3=__3;this._di3=false;this._9i3=null;}else {throw new Error("Invalid curve passed to curve property of keyframe channel");}}}},});}/*@constructor */function _r41(_YO2){_kj3.call(this);this.__type="[BoolTrackKey]";this.__O2=false;if((_YO2!=null)&&(_YO2!=undefined)){this.__O2=_YO2.value;}Object.defineProperties(this,{gmlvalue:{enumerable:true,get :function(){return this.__O2;},set :function(__3){this.__O2=yyGetBool(__3);}},});}/*@constructor */function _s41(_YO2){_kj3.call(this);this.__type="[StringTrackKey]";
this.__O2="";if((_YO2!=null)&&(_YO2!=undefined)){this.__O2=_YO2.value;}Object.defineProperties(this,{gmlvalue:{enumerable:true,get :function(){return this.__O2;},set :function(__3){this.__O2=yyGetString(__3);}},});}/*@constructor */function _p41(_YO2){_kj3.call(this);this.__type="[TextTrackKey]";this.text="";this.wrap=false;this.alignment=0;this.fontIndex=-1;if((_YO2!=null)&&(_YO2!=undefined)){this.text=_YO2.text;this.wrap=_YO2.wrap;this.alignment=_YO2.alignment;this.fontIndex=_YO2.fontIndex;}Object.defineProperties(this,
{gmltext:{enumerable:true,get :function(){return this.text;},set :function(__3){this.text=yyGetString(__3);}},gmlwrap:{enumerable:true,get :function(){return this.wrap;},set :function(__3){this.wrap=yyGetBool(__3);}},gmlalignmentV:{enumerable:true,get :function(){return(this.alignment>>8)&0xff;},set :function(__3){this.alignment=(this.alignment&0xff)|((yyGetInt32(__3)&0xff)<<8);}},gmlalignmentH:{enumerable:true,get :function(){return this.alignment&0xff;},set :function(__3){this.alignment=(this.alignment&~0xff)|(yyGetInt32(__3)&0xff);
}},gmlfontIndex:{enumerable:true,get :function(){return this.fontIndex;},set :function(__3){this.fontIndex=yyGetInt32(__3);}},});}/*@constructor */function _n41(_YO2){_kj3.call(this);this._aF=-1;if((_YO2!=null)&&(_YO2!=undefined)){this._aF=_YO2.index;}Object.defineProperties(this,{gmlindex:{enumerable:true,get :function(){return this._aF;},set :function(__3){this._aF=yyGetInt32(__3);}},});this.__type="[SequenceTrackKey]";}/*@constructor */function _q41(_YO2){_kj3.call(this);this.__type="[SpriteFramesTrackKey]";
this.__P=-1;if((_YO2!=null)&&(_YO2!=undefined)){this.__P=_YO2.imageIndex;}Object.defineProperties(this,{gmlimageIndex:{enumerable:true,get :function(){return this.__P;},set :function(__3){this.__P=yyGetInt32(__3);}},});}/*@constructor */function _k41(_ld,_YO2){_ZO2.call(this);this.__type="[Keyframe]";this._QT=0;this._PS=0;this._7f3=false;this._uj3=false;this._yr={};if((_YO2!=null)&&(_YO2!=undefined)){this._QT=_YO2.key;this._PS=_YO2.length;this._7f3=_YO2.stretch;this._uj3=_YO2.disabled;this._yr={};for(var _wf3 in _YO2.channels){
var data=_YO2.channels[_wf3];var _vj3=null;switch(_ld){case _741:_vj3=new _l41(data);break;case _841:_vj3=new _m41(data);break;case _a41:_vj3=new _o41(data);break;case _j41:_vj3=new _p41(data);break;case _d41:_vj3=new _t41(data);break;case _e41:_vj3=new _u41(data);break;case _b41:_vj3=new _r41(data);break;case _c41:_vj3=new _s41(data);break;case _941:_vj3=new _n41(data);break;case _LS:_vj3=new _q41(data);break;}if(_vj3!=null){_vj3.key=_wf3;this._yr[_wf3]=_vj3;}else {throw new Error("Invalid sequence track channel type");
}}}this._4P2();Object.defineProperties(this,{gmlframe:{enumerable:true,get :function(){return this._QT;},set :function(__3){this._QT=yyGetInt32(__3);}},gmllength:{enumerable:true,get :function(){return this._PS;},set :function(__3){this._PS=yyGetInt32(__3);}},gmlstretch:{enumerable:true,get :function(){return this._7f3;},set :function(__3){this._7f3=yyGetBool(__3);}},gmldisabled:{enumerable:true,get :function(){return this._uj3;},set :function(__3){this._uj3=yyGetBool(__3);}},gmlchannels:{enumerable:true,get :function(){
var _wj3=[];for(var _wf3 in this._yr){_wj3.push(this._yr[_wf3]);}_wj3.sort(function(_G4,_F4){return Number(_G4.key)-Number(_F4.key);});return _wj3;},set :function(__3){if(__3 instanceof Array){this._yr={};for(var _QP2=0;_QP2<__3.length;_QP2++){var key=__3[_QP2]._lj3;this._yr[key]=__3[_QP2];}}else {throw new Error("value must be an array of keyframes");}}}});}/*@constructor */function _h41(_ld,_YO2){_ZO2.call(this);this.__type="[KeyframeStore]";this._LT=0;this._PT=[];if((_YO2!=null)&&(_YO2!=undefined)){var _xj3=_YO2.length;
for(var _ye3=0;_ye3<_xj3;++_ye3){this._yj3(new _k41(_ld,_YO2[_ye3]));}}}_h41.prototype._OP2=function(){var _RP2=this._dP2;for(var i=0;i<this._LT;i++){if(this._PT[i]._QU1(_RP2)){this._dP2=_W6(this._dP2,this._PT[i]._dP2);}}};_h41.prototype._yj3=function(_zj3){var _1T=0;while(_1T<this._LT){if(this._PT[_1T].key>_zj3.key){break;}_1T++;}this._PT.splice(_1T,0,_zj3);this._LT++;this._4P2();};_h41.prototype._Gi3=function(_5l){var _ZP2={};if(this._LT==0)return;var start=0,end=this._LT;var index=(start+end)>>1;var length;
while(index!=start){length=this._PT[index]._7f3?(index+1<this._LT?this._PT[index+1]._QT:Number.MAX_SAFE_INTEGER):this._PT[index]._PS;if(this._PT[index]._QT<=_5l&&this._PT[index]._QT+length>_5l){_ZP2._Hi3=this._PT[index];if(index<this._LT-1)_ZP2.post=this._PT[index+1];return _ZP2;}if(this._PT[index]._QT>_5l)end=index;else start=index;index=(start+end)>>1;}length=this._PT[index]._7f3?(index+1<this._LT?this._PT[index+1]._QT:Number.MAX_SAFE_INTEGER):this._PT[index]._PS;if(this._PT[index]._QT<=_5l&&this._PT[index]._QT+length>_5l){
_ZP2._Hi3=this._PT[index];if(index<this._LT-1)_ZP2.post=this._PT[index+1];}return _ZP2;};_h41.prototype._ze3=function(_5l,_5i3){if(this._LT==0)return -1;var start=0;var end=this._LT;var index=(start+end)>>1;var length;while(index!=start){length=this._PT[index]._7f3?(index+1<this._LT?this._PT[index+1]._QT:0x7fffffff):this._PT[index]._PS;if(this._PT[index]._QT<=_5l&&this._PT[index]._QT+length>_5l)return index;if(this._PT[index]._QT>_5l)end=index;else start=index;index=(start+end)>>1;}length=this._PT[index]._7f3?(index+1<this._LT?this._PT[index+1]._QT:0x7fffffff):this._PT[index]._PS;
if(this._PT[index]._QT<=_5l&&this._PT[index]._QT+length>_5l)return index;if((index==(this._LT-1))&&(_5l==_5i3)){if((this._PT[index]._QT+length)==_5i3)return index;}return -1;};_h41.prototype._OS=function(_5l,_5i3){var _Aj3=this._ze3(_5l,_5i3);if(_Aj3==-1)return null;return this._PT[_Aj3];};_h41.prototype._Be3=function(_74,_5i3){if(_74<0){return 0.0;}else if(_74>this._LT){return 0.0;}if(this._PT[_74]._7f3){if(_74<(this._LT-1)){var length=(this._PT[_74+1]._QT-this._PT[_74]._QT)-1.0;return length;}else {var length=(_5i3-this._PT[_74]._QT)-1.0;
return length;}}else {return this._PT[_74]._PS;}};_h41.prototype._Bj3=function(_9B,_aB,_jd1,_Sh3,_Cj3,_Y91){if(_Cj3==undefined)_Cj3=false;if(_Y91==undefined)_Y91=-1.0;if(this._LT==0)return false;var _Dj3=false;if(_9B>_aB){var _pK=_9B;_9B=_aB;_aB=_pK;_Dj3=true;}var _Ej3=false;var _Fj3=false;if(_Sh3>0.0){_Fj3=true;if(_Cj3&&(_aB==_Y91)){_Ej3=true;}}else {_Ej3=true;if(_Cj3&&(_9B==0.0)){_Fj3=true;}}if((_Ej3&&(this._PT[0]._QT>_aB))||((!_Ej3)&&this._PT[0]._QT>=_aB))return false;var _Gj3=this._PT[this._LT-1]._QT+this._PT[this._LT-1]._PS;
if((this._PT[this._LT-1]._7f3==false)&&((_Gj3<_9B)||(!_Fj3&&((_Gj3==_9B)))))return false;var _2f3=0;var start,end,_1j;var _qN=null;start=0;end=this._LT;_1j=(start+end)>>1;while(_1j!=start){if(this._PT[_1j]._QT>_9B){end=_1j;}else {start=_1j;}_1j=(start+end)>>1;}_qN=this._PT[_1j];var _Hj3=_qN._QT+_qN._PS;if((_Hj3<_9B)||(!_Fj3&&(_Hj3==_9B))){_2f3=_1j+1;}else {_2f3=_1j;}var _3f3=0;start=0;end=this._LT;_1j=(start+end)>>1;while(_1j!=start){if((_Ej3&&(this._PT[_1j]._QT>_aB))||((!_Ej3)&&(this._PT[_1j]._QT>=_aB))){
end=_1j;}else {start=_1j;}_1j=(start+end)>>1;}_3f3=_1j;if(_3f3<_2f3){return false;}else {if(_Dj3){_jd1.start=_3f3;_jd1.end=_2f3;}else {_jd1.start=_2f3;_jd1.end=_3f3;}return true;}};_h41.prototype._Yh3=function(_Ij3,_lm,_Y91,_Rh3,_Qh3,_Sh3,_Wh3,_Xh3,_Jj3,_Kj3){if(_Jj3==undefined)_Jj3=false;if(_Kj3==undefined)_Kj3=false;var _Lj3=0.99;_Wh3[0]=_Xh3[0]=_Wh3[1]=_Xh3[1]=-1;var out={start:-1,end:-1};var _Mj3=false;if(_Ij3==_7h3){_Mj3=this._Bj3(_Rh3,_Qh3,out,_Sh3,_Jj3,_Y91);_Wh3[0]=out.start;_Xh3[0]=out.end;}else if(_Ij3==_8h3){
if(_Sh3>0.0){if(_Kj3||(_Qh3<_Rh3)){if(!_Jj3||(_Rh3!=_Y91)){_Mj3=this._Bj3(_Rh3,_Y91,out,_Sh3,_Jj3,_Y91);_Wh3[0]=out.start;_Xh3[0]=out.end;}if(this._Bj3(0,_Qh3,out,_Sh3,_Jj3,_Y91)){_Mj3=true;_Wh3[1]=out.start;_Xh3[1]=out.end;}}else {_Mj3=this._Bj3(_Rh3,_Qh3,out,_Sh3,_Jj3,_Y91);_Wh3[0]=out.start;_Xh3[0]=out.end;}}else {if(_Kj3||(_Qh3>_Rh3)){if(!_Jj3||(_Rh3!=0)){_Mj3=this._Bj3(_Rh3,0,out,_Sh3,_Jj3,_Y91);_Wh3[0]=out.start;_Xh3[0]=out.end;}if(this._Bj3(_Y91,_Qh3,out,_Sh3,_Jj3,_Y91)){_Mj3=true;_Wh3[1]=out.start;
_Xh3[1]=out.end;}}else {_Mj3=this._Bj3(_Rh3,_Qh3,out,_Sh3,_Jj3,_Y91);_Wh3[0]=out.start;_Xh3[0]=out.end;}}}else if(_Ij3==_9h3){var _Nj3=0.0;if(_lm>0.0){_Nj3=1.0/_lm;}if(_Sh3>0.0){if(_Kj3||(_Qh3<_Rh3)||((_Qh3-_Rh3)<(_Nj3*_Lj3))){if(!_Jj3||(_Rh3>0)){_Mj3=this._Bj3(_Rh3,0,out,_Sh3*-1.0,false);_Wh3[0]=out.start;_Xh3[0]=out.end;}if(this._Bj3(0,_Qh3,out,_Sh3,_Jj3,_Y91)){_Mj3=true;_Wh3[1]=out.start;_Xh3[1]=out.end;}}else {_Mj3=this._Bj3(_Rh3,_Qh3,out,_Sh3,false);_Wh3[0]=out.start;_Xh3[0]=out.end;}}else {if(_Kj3||(_Qh3>_Rh3)||((_Rh3-_Qh3)<(_Nj3*_Lj3))){
if(!_Jj3||(_Rh3<_Y91)){_Mj3=this._Bj3(_Rh3,_Y91,out,_Sh3*-1.0,false);_Wh3[0]=out.start;_Xh3[0]=out.end;}if(this._Bj3(_Y91,_Qh3,out,_Sh3,_Jj3,_Y91)){_Mj3=true;_Wh3[1]=out.start;_Xh3[1]=out.end;}}else {_Mj3=this._Bj3(_Rh3,_Qh3,out,_Sh3,false);_Wh3[0]=out.start;_Xh3[0]=out.end;}}}return _Mj3;};var typeToEventLut=["event_create","event_destroy","event_clean_up","event_step","event_step_begin","event_step_end","event_async_system"];/*@constructor */function _341(_YO2){_ZO2.call(this);this.__type="[Sequence]";
this.pName="";this._Zh3=0;this._7c1=30.0;this._8c1=0;this._PS=0;this._Oj3=1.0;this._9e3=0;this._ae3=0;this._qc1=new _h41();this._qc1._LT=0;this._qc1._PT=[];this._Pj3=new _h41();this._Pj3._LT=0;this._Pj3._PT=[];this._Wi3=0;this._Qj3=0;this._KS=[];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._Gr=false;if((_YO2!=null)&&(_YO2!=undefined)){
this.pName=_YO2.pName;this._Zh3=_YO2.playback;this._7c1=_YO2.playbackSpeed;this._8c1=_YO2.playbackSpeedType;this._PS=_YO2.length;this._Oj3=_YO2.volume;this._9e3=_YO2.xorigin;this._ae3=_YO2.yorigin;this._qc1=new _h41();this._qc1._LT=0;this._qc1._PT=[];for(var _ye3=0;_ye3<_YO2.keyframeStore.length;++_ye3){var _Rj3=_YO2.keyframeStore[_ye3];var _Sj3=new _k41();_Sj3._QT=_Rj3.key;if((_Sj3._QT<this._PS)&&(_Sj3._QT>(this._PS+(_Ug3*2.0))))_Sj3._QT=this._PS;_Sj3._PS=0;_Sj3._7f3=_Rj3.stretch;_Sj3._uj3=_Rj3.disabled;
_Sj3._yr={};for(var _wf3 in _Rj3.channels){var _9a1=_Rj3.channels[_wf3];_Sj3._yr[_wf3]=new _v41(_9a1);}this._qc1._yj3(_Sj3);}this._Pj3=new _h41();this._Pj3._LT=0;this._Pj3._PT=[];this._Wi3=_YO2.tracks.length;this._KS=[];for(var _ze2=0;_ze2<this._Wi3;++_ze2){this._KS[_ze2]=__h3(_YO2.tracks[this._Wi3-1-_ze2]);}this._Qj3=_YO2.sequenceEvents.length;for(var _i63=0;_i63<this._Qj3;++_i63){var _Qg=_YO2.sequenceEvents[_i63];var _Tj3=typeToEventLut[_Qg.seqEventType];this[_Tj3]=_Qg.seqEventFunction;_Qg.seqEventFunction._nj3=_Qg.seqEventFunction;
}this._Pj3=new _h41();this._Pj3._LT=0;this._Pj3._PT=[];for(var _ye3=0;_ye3<_YO2.momentsKeystore.length;++_ye3){var _Rj3=_YO2.momentsKeystore[_ye3];var _Sj3=new _k41();_Sj3._QT=_Rj3.key;if((_Sj3._QT<this._PS)&&(_Sj3._QT>(this._PS+(_Ug3*2.0))))_Sj3._QT=this._PS;_Sj3._PS=0;_Sj3._7f3=_Rj3.stretch;_Sj3._uj3=_Rj3.disabled;_Sj3._yr={};for(var _wf3 in _Rj3.channels){var _9a1=_Rj3.channels[_wf3];_Sj3._yr[_wf3]=new _w41(_9a1);}this._Pj3._yj3(_Sj3);}this._Gr=true;}Object.defineProperties(this,{gmlname:{enumerable:true,
get :function(){return this.pName;},set :function(__3){this.pName=yyGetString(__3);}},gmlloopmode:{enumerable:true,get :function(){return this._Zh3;},set :function(__3){var _re=yyGetInt32(__3);if((_re>=0)&&(_re<_ah3)){this._Zh3=_re;}else {debug("Trying to set loopmode property of sequence to out-of-bounds value "+yyGetReal(__3));}}},gmlplaybackSpeed:{enumerable:true,get :function(){return this._7c1;},set :function(__3){this._7c1=yyGetReal(__3);}},gmlplaybackSpeedType:{enumerable:true,get :function(){return this._8c1;
},set :function(__3){var _re=yyGetInt32(__3);if((_re>=0)&&(_re<_Uj3)){this._8c1=_re;}else {debug("Trying to set playbackSpeedType property of sequence to out-of-bounds value "+yyGetReal(__3));}}},gmllength:{enumerable:true,get :function(){return this._PS;},set :function(__3){__3=yyGetReal(__3);__3=_W6(__3,0.0);this._PS=__3;}},gmlvolume:{enumerable:true,get :function(){return this._Oj3;},set :function(__3){__3=yyGetReal(__3);__3=_W6(__3,0.0);this._Oj3=__3;}},gmlxorigin:{enumerable:true,get :function(){return this._9e3;
},set :function(__3){this._9e3=yyGetReal(__3);}},gmlyorigin:{enumerable:true,get :function(){return this._ae3;},set :function(__3){this._ae3=yyGetReal(__3);}},gmltracks:{enumerable:true,get :function(){return this._KS;},set :function(__3){if(__3 instanceof Array){this._KS=__3;}else {throw new Error("value must be an array of tracks");}}},gmlmessageEventKeyframes:{enumerable:true,get :function(){return this._qc1._PT;},set :function(__3){if(__3 instanceof Array){this._qc1._PT=__3;this._qc1._LT=__3.length;}else {throw new Error("value must be an array of keyframes");
}}},gmlmomentKeyframes:{enumerable:true,get :function(){return this._Pj3._PT;},set :function(__3){if(__3 instanceof Array){this._Pj3._PT=__3;this._Pj3._LT=__3.length;}else {throw new Error("value must be an array of keyframes");}}},gmlevent_create:{enumerable:true,get :function(){return this["event_create"];},set :function(__3){this["event_create"]=__3;}},gmlevent_destroy:{enumerable:true,get :function(){return this["event_destroy"];},set :function(__3){this["event_destroy"]=__3;}},gmlevent_clean_up:{enumerable:true,
get :function(){return this["event_clean_up"];},set :function(__3){this["event_clean_up"]=__3;}},gmlevent_step:{enumerable:true,get :function(){return this["event_step"];},set :function(__3){this["event_step"]=__3;}},gmlevent_step_begin:{enumerable:true,get :function(){return this["event_step_begin"];},set :function(__3){this["event_step_begin"]=__3;}},gmlevent_step_end:{enumerable:true,get :function(){return this["event_step_end"];},set :function(__3){this["event_step_end"]=__3;}},gmlevent_async_system:{enumerable:true,
get :function(){return this["event_async_system"];},set :function(__3){this["event_async_system"]=__3;}},gmlevent_broadcast_message:{enumerable:true,get :function(){return this["event_broadcast_message"];},set :function(__3){this["event_broadcast_message"]=__3;}},});}_341.prototype._P41=function(){var ids=[];this._Vj3(this._KS,ids);return ids;};_341.prototype._Vj3=function(_me3,_Wj3){for(var _ze2=0;_ze2<_me3.length;++_ze2){var _a4=_me3[_ze2];if(_a4._oO==_841){var _Xj3=_a4;if(_Xj3._NS!=null){var _Yj3=_Xj3._NS._LT;
for(var i=0;i<_Yj3;i++){var _qN=_Xj3._NS._PT[i];for(var _wf3 in _qN._yr){var _xf3=_qN._yr[_wf3];if(_xf3._pj3!=-1){if(_Wj3.indexOf(_xf3._pj3)==-1){_Wj3.push(_xf3._pj3);}}}}}}else if(_a4._oO==_G41){var _Oi3=_a4;this._Vj3(_Oi3._Qi3(),_Wj3);this._Vj3(_Oi3._Ri3(),_Wj3);}else if(_a4._oO==_941){var _Zj3=_a4;if(_Zj3._NS!=null){var _Yj3=_Zj3._NS._LT;for(var i=0;i<_Yj3;i++){var _qN=_Zj3._NS._PT[i];for(var _wf3 in _qN._yr){var _xf3=_qN._yr[_wf3];if(_xf3._aF!=-1){var _X31=_rR._zU(_xf3._aF);if(_X31!=null){this._Vj3(_X31._KS,_Wj3);
}}}}}}this._Vj3(_a4._KS,_Wj3);}};/*@constructor */function _IG2(){this.Sequences=[];this._ou2=[];}_IG2.prototype._Df=function(_YO2){var _Qr=null;if(_YO2!=null){_Qr=new _341(_YO2);}this.Sequences[this.Sequences.length]=_Qr;};_IG2.prototype._Z31=function(){var _Qr=new _341();var i;for(i=0;i<this.Sequences.length;i++){if(this.Sequences[i]==null){this.Sequences[i]=_Qr;return _Qr;}}this.Sequences[this.Sequences.length]=_Qr;return _Qr;};_IG2.prototype._041=function(_1Q2){if(typeof(_1Q2)=="object"){var i;for(i=0;
i<this.Sequences.length;i++){if(this.Sequences[i]==_1Q2){this.Sequences[i]=null;return;}}}else {if((_1Q2>=0)&&(_1Q2<this.Sequences.length)){this.Sequences[_1Q2]=null;return;}}};_IG2.prototype._zU=function(_S4){if((_S4<0)||(_S4>=this.Sequences.length)){return undefined;}return this.Sequences[_S4];};_IG2.prototype._441=function(_1Q2){if((typeof(_1Q2)=="object")&&(_1Q2 instanceof _341)){var i;for(i=0;i<this.Sequences.length;i++){if(this.Sequences[i]==_1Q2){return true;}}}return false;};function _dJ(_74){var __j3=_rR._26(_74);
if(__j3!==undefined&&__j3!==null)return true;return false;}function _eJ(_74){var __j3=_rR._26(_74);if(__j3!==undefined&&__j3!==null)return __j3.pName;return "";}_IG2.prototype._0S=function(_S4){if((_S4<0)||(_S4>=this._ou2.length)){return undefined;}return this._ou2[_S4];};_IG2.prototype._0k3=function(_S4){this._ou2[_S4]=null;};_IG2.prototype._1S=function(_tt){if(_tt==null)return;_tt._1k3();_tt._2k3();this._0k3(_tt._7Q);};_IG2.prototype._3k3=function(_b4){for(var i=0;i<this.Sequences.length;i++){if(this.Sequences[i].pName==_b4){
return i;}}return -1;};_IG2.prototype._sR=function(){var index;for(index=0;index<this._ou2.length;index++){if(this._ou2[index]==null){break;}}this._ou2[index]=new _Q41(index);return this._ou2[index];};var _4k3=[];var _5k3=[];var _6k3=[];function _7k3(_8k3,_9k3){var _ak3=new Object();_ak3._qN=_8k3;_ak3._bk3=_9k3;_4k3[_4k3.length]=_ak3;}function _ck3(_8k3,_w23){var _ak3=new Object();_ak3._qN=_8k3;_ak3._R41=_w23;_5k3[_5k3.length]=_ak3;}function _dk3(_8k3,_tS){var _ak3=new Object();_ak3._qN=_8k3;_ak3._ek3=_tS;_6k3[_6k3.length]=_ak3;
}function _fk3(){_6k3=[];}_IG2.prototype._1e3=function(_gk3,_hk3){if(_gk3==null)return;var instance=this._ou2[_gk3._7Q];if(instance!=null){if((_gk3._cQ==0)&&(_hk3||(instance._nJ&&instance._ik3)||instance._NU))return;var fps=_W3._X3();instance._jk3=false;if(instance._ik3==false){var _X31=_rR._zU(instance._6Q);if(_X31!=null){_S41.push(_X31);instance._T41(_X31._KS,-1,-1,_gk3._bQ._ke);instance._kk3(_X31._KS);_S41.pop();}instance._ik3=true;}var sequence=this.Sequences[instance._6Q];if(sequence!=null){_S41.push(sequence);
instance._JU=instance._8Q;if(!_hk3&&!instance._nJ&&!instance._NU){var _lk3=sequence._7c1;if(sequence._8c1==_eP){_lk3/=fps;}instance._8Q+=instance._LU*instance._tR*_lk3;}var _FS={_GS:instance._8Q,_HS:instance._LU,_IS:instance._NU};instance._jk3=_JS(sequence,_FS);instance._8Q=_FS._GS;instance._LU=_FS._HS;var _mk3=new _Zy();var _4e3=sequence._9e3!=0||sequence._ae3!=0||_gk3._KP!=0||_gk3._LP!=0||_gk3._m3!=0||_gk3._9Q!=1||_gk3._aQ!=1||_gk3._bQ._gP!=0||_gk3._bQ._hP!=0;if(_4e3){var _5e3=new _Zy();var _6e3=new _Zy();
var _7e3=new _Zy();var _8e3=new _Zy();_5e3._mA(_gk3._9Q,_gk3._aQ,1);_6e3._pA(_gk3._m3);_8e3._lA(-sequence._9e3,-sequence._ae3,0);_7e3._lA(_gk3._KP+_gk3._bQ._gP,_gk3._LP+_gk3._bQ._hP,0);var _nk3=new _Zy();var _ok3=new _Zy();_nk3.Multiply(_8e3,_5e3);_ok3.Multiply(_nk3,_6e3);_nk3.Multiply(_ok3,_7e3);var _3e3=new _Zy(_mk3);_mk3.Multiply(_nk3,_3e3);}this._pk3(_gk3,sequence,instance,instance._2e3,instance,_mk3,null,sequence._KS,instance._8Q,instance._JU,instance._LU,false);if(!_hk3&&!instance._nJ&&!instance._NU){
this._qk3(instance,sequence,_gk3._ke,fps);this._rk3(instance,sequence,_gk3._ke,fps);}if(_FS._IS){instance._sk3(false);instance._tk3();}instance._NU=_FS._IS;_gk3._cQ=0;_S41.pop();}}};_IG2.prototype._uk3=function(_zo){if(_zo==null){return;}_4k3=[];_5k3=[];var fps=_W3._X3();for(var _QU=0;_QU<_zo._RU.length;++_QU){var _SU=_zo._RU[_QU];var _TU=_jO._sS(_zo,_SU);if(_TU==null)continue;this._1e3(_TU,false);}this._vk3();this._wk3();};_IG2.prototype._xk3=function(_zo,_yk3){if(_zo==null){return;}var _Wm2;switch(_yk3){
case __u2:_Wm2="event_step";break;case _Yu2:_Wm2="event_step_begin";break;case _1v2:_Wm2="event_step_end";break;case _m71:_Wm2="event_async_system";break;case _wx2:_Wm2="event_broadcast_message";break;default :return;}for(var _QU=0;_QU<_zo._RU.length;++_QU){var _SU=_zo._RU[_QU];var _TU=_jO._sS(_zo,_SU);if(_TU==null)continue;var instance=this._ou2[_TU._7Q];if(instance!=null){if(instance.paused||instance._IS)continue;var sequence=this.Sequences[instance._6Q];if(sequence!=null){if(sequence[_Wm2]!=null){sequence[_Wm2]._nj3.call(instance,
instance);}}}}};_IG2.prototype._vR=function(_zk3,_yk3){if(_zk3==null){return;}var _Wm2;switch(_yk3){case __u2:_Wm2="event_step";break;case _Yu2:_Wm2="event_step_begin";break;case _1v2:_Wm2="event_step_end";break;case _Wm:_Wm2="event_create";break;case _WN:_Wm2="event_destroy";break;case _FN:_Wm2="event_clean_up";break;default :return;}var sequence=this.Sequences[_zk3._6Q];if(sequence!=null){if(sequence[_Wm2]!=null){sequence[_Wm2]._nj3.call(_zk3,_zk3);}}};_IG2.prototype._qk3=function(_w23,_Vh3,_9k3,_Ak3){
if(_w23==null)return;if(_Vh3==null)return;if(_Vh3._qc1._LT==0)return;var _Ze3=[];var __e3=[];var _y43=_Vh3._7c1;if(_Vh3._8c1==_eP)_y43/=_Ak3;if(_w23._tR!=0.0)_y43*=_w23._tR;var _Ke3=_w23._LU;if(_y43<0.0){_Ke3=-_Ke3;_y43=-_y43;}var _Mj3=_Vh3._qc1._Yh3(_Vh3._Zh3,1.0/_y43,_Vh3._PS,_w23._JU,_w23._8Q,_Ke3,_Ze3,__e3,true,_w23._jk3);if(!_Mj3)return;var _0f3=1,offset=0;if(_Ze3[1]!=-1)_0f3=2;if(_Ze3[0]==-1)offset=1;for(var _dl=offset;_dl<_0f3;_dl++){var _2f3=_Ze3[_dl];var _3f3=__e3[_dl];var _Bk3=1;if(_2f3>_3f3)_Bk3=-1;
var i=_2f3;do {var _qN=_Vh3._qc1._PT[i];_7k3(_qN,_9k3);if(i==_3f3)break;i+=_Bk3;}while(true);}};_IG2.prototype._rk3=function(_w23,_Vh3,_9k3,_Ak3){if(_w23==null)return;if(_Vh3==null)return;if(_Vh3._Pj3._LT==0)return;var _Ze3=[];var __e3=[];var _y43=_Vh3._7c1;if(_Vh3._8c1==_eP)_y43/=_Ak3;if(_w23._tR!=0.0)_y43*=_w23._tR;var _Ke3=_w23._LU;if(_y43<0.0){_Ke3=-_Ke3;_y43=-_y43;}var _Mj3=_Vh3._Pj3._Yh3(_Vh3._Zh3,1.0/_y43,_Vh3._PS,_w23._JU,_w23._8Q,_Ke3,_Ze3,__e3,true,_w23._jk3);if(!_Mj3)return;var _0f3=1,offset=0;
if(_Ze3[1]!=-1)_0f3=2;if(_Ze3[0]==-1)offset=1;for(var _dl=offset;_dl<_0f3;_dl++){var _2f3=_Ze3[_dl];var _3f3=__e3[_dl];var _Bk3=1;if(_2f3>_3f3)_Bk3=-1;var i=_2f3;do {var _qN=_Vh3._Pj3._PT[i];_ck3(_qN,_w23);if(i==_3f3)break;i+=_Bk3;}while(true);}};function _QS(_Vh3,_tS,_Ak3,_Ck3,_he3,_ge3,_fe3){if(_Vh3==null)return;if(_Vh3._qc1._LT==0)return;var _Ze3=[];var __e3=[];var _y43=_Vh3._7c1;if(_Vh3._8c1==_eP)_y43/=_Ak3;if(_Ck3!=0.0)_y43*=_Ck3;var _Ke3=_he3;if(_y43<0.0){_Ke3=-_Ke3;_y43=-_y43;}var _Mj3=_Vh3._qc1._Yh3(_Vh3._Zh3,
1.0/_y43,_Vh3._PS,_ge3,_fe3,_Ke3,_Ze3,__e3,true);if(!_Mj3)return;var _0f3=1,offset=0;if(_Ze3[1]!=-1)_0f3=2;if(_Ze3[0]==-1)offset=1;for(var _dl=offset;_dl<_0f3;_dl++){var _2f3=_Ze3[_dl];var _3f3=__e3[_dl];var _Bk3=1;if(_2f3>_3f3)_Bk3=-1;var i=_2f3;do {var _qN=_Vh3._qc1._PT[i];_dk3(_qN,_tS);if(i==_3f3)break;i+=_Bk3;}while(true);}};_IG2.prototype._vk3=function(){for(var i=0;i<_4k3.length;i++){var _qN=_4k3[i]._qN;var _Dk3=_qN._yr[0];for(var _17=0;_17<_Dk3._sc1.length;_17++){var map=ds_map_create();g_pBuiltIn.event_data=map;
ds_map_add(map,"event_type","sequence event");ds_map_add(map,"element_id",_4k3[i]._bk3);ds_map_add(map,"message",_Dk3._sc1[_17]);_rR._xk3(_S3,_wx2);_H3._I3(_wx2,0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;}}};_IG2.prototype._wk3=function(){for(var i=0;i<_5k3.length;i++){var _qN=_5k3[i]._qN;var _Ek3=_qN._yr[0];if(_Ek3._mj3!=null){_Ek3._mj3._nj3.call(_5k3[i]._R41,_5k3[i]._R41);}}};function _Fk3(){for(var i=0;i<_6k3.length;i++){var _qN=_6k3[i]._qN;var _Dk3=_qN._yr[0];for(var _17=0;_17<_Dk3._sc1.length;
_17++){var map=ds_map_create();g_pBuiltIn.event_data=map;ds_map_add(map,"event_type","sprite event");ds_map_add(map,"element_id",_6k3[i]._ek3);ds_map_add(map,"message",_Dk3._sc1[_17]);_rR._xk3(_S3,_wx2);_H3._I3(_wx2,0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;}}};function _JS(_ie3,_Gk3){if(_ie3==null){return false;}var end=_ie3._PS;var _z43=false;if(_ie3._Zh3==_7h3){if(_Gk3._GS<=0.0){_Gk3._GS=0.0;if(_Gk3._HS<0.0){_z43=true;_Gk3._IS=true;}}else if(_Gk3._GS>=end){_Gk3._GS=end;if(_Gk3._HS>0.0){_Gk3._IS=true;
_z43=true;}}}else if(_ie3._Zh3==_8h3){if((_Gk3._GS<0.0)||(_Gk3._GS>=end)){_z43=true;}if(end>0){_Gk3._GS=_Z3(_Gk3._GS,end);}}else if(_ie3._Zh3==_9h3){if((_Gk3._GS<0.0)||(_Gk3._GS>=end)){if(_Gk3._GS<0.0){_Gk3._GS*=-1.0;}var _Hk3=(_Gk3._GS/end);_Gk3._GS=_Z3(_Gk3._GS,end);if(_Hk3&1){_Gk3._GS=end-_Gk3._GS;_Gk3._HS=-1.0;}else {_Gk3._HS=1.0;}_z43=true;}}return _z43;}_IG2.prototype._pk3=function(_2R,_ie3,_j8,_ee3,_Ik3,_aw,_Jk3,_me3,_fe3,_ge3,_he3,_Kk3){var _pe3=new _Zy();var _Lk3=new _Zy();var _Mk3=_ee3;var _Al=_ee3;
for(var _ze2=0;_ze2<_me3.length;++_ze2){var _Nk3=_me3[_ze2];_S41.push(_Nk3);if(!_qe3(_Nk3._oO)&&_Nk3.enabled){var _H43=_Ok3(_Ik3,_Mk3,_Al);_Al=_H43._Al;_Mk3=_H43._bl;_Al._Pk3=_Nk3;var _cc1=_Kk3||_Al.value._Qk3!=_fe3;if(_cc1){var _Rk3=0xffffffff;if(_Al._Sk3!=null){_Rk3=~(_Al._Sk3.value._Hf3&(~(_Al._Sk3.value._dj3)));}_Nk3._6j3(_fe3,_ie3._PS,_Al.value,_Rk3);_Al.value._Qk3=_fe3;}switch(_Nk3._oO){case _741:this._Tk3(_Al,_Al.value,_j8,_Nk3,_at2,_he3,_ge3,_fe3,_ie3._PS);break;case _941:this._Uk3(_2R,_ie3,_j8,
_Al.value,_Al._xe3,_Al,_aw,_Jk3,_Nk3,_fe3,_ge3,_he3,false,_cc1);break;}if(_cc1){_Al.value._re3._9I2();_Mh3(_Al.value._re3,_Al.value.x,_Al.value.y,_Al.value.scaleX,_Al.value.scaleY,_Al.value.rotation,_Al.value.xOrigin,_Al.value.yOrigin);if(_Al._Sk3!=null){if((_Jk3._Ti3&_Eh3)==0){_Lk3._lA(_Al._Sk3.value.xOrigin,_Al._Sk3.value.yOrigin,0);_pe3.Multiply(_Al.value._re3,_Lk3);_Al.value._re3._qj(_pe3);}var _Vk3=_Al._Sk3.value._Hf3&~(_Al.value._Hf3);_Al.value._Hf3|=_Al._Sk3.value._Hf3;if(_Al.value._Hf3&(1<<_nh3)){
if(_Vk3&(1<<_nh3)){_Al.value._Me3[0]=_Al._Sk3.value._Me3[0];_Al.value._Me3[1]=_Al._Sk3.value._Me3[1];_Al.value._Me3[2]=_Al._Sk3.value._Me3[2];_Al.value._Me3[3]=_Al._Sk3.value._Me3[3];}else {_Al.value._Me3[0]*=_Al._Sk3.value._Me3[0];_Al.value._Me3[1]*=_Al._Sk3.value._Me3[1];_Al.value._Me3[2]*=_Al._Sk3.value._Me3[2];_Al.value._Me3[3]*=_Al._Sk3.value._Me3[3];}}if(_Al.value._Hf3&(1<<_mh3)){if(_Vk3&(1<<_mh3)){_Al.value._Ne3[0]=_Al._Sk3.value._Ne3[0];_Al.value._Ne3[1]=_Al._Sk3.value._Ne3[1];_Al.value._Ne3[2]=_Al._Sk3.value._Ne3[2];
_Al.value._Ne3[3]=_Al._Sk3.value._Ne3[3];}else {_Al.value._Ne3[0]+=_Al._Sk3.value._Ne3[0];_Al.value._Ne3[1]+=_Al._Sk3.value._Ne3[1];_Al.value._Ne3[2]+=_Al._Sk3.value._Ne3[2];_Al.value._Ne3[3]+=_Al._Sk3.value._Ne3[3];}}if(_Al.value._Hf3&(1<<_jh3)){if(_Vk3&(1<<_jh3)){_Al.value.gain=_Al._Sk3.value.gain;}else {_Al.value.gain*=_Al._Sk3.value.gain;}}if(_Al.value._Hf3&(1<<_kh3)){if(_Vk3&(1<<_kh3)){_Al.value.pitch=_Al._Sk3.value.pitch;}else {_Al.value.pitch*=_Al._Sk3.value.pitch;}}if(_Al.value._Hf3&(1<<_lh3)){
if(_Vk3&(1<<_lh3)){_Al.value._gj3=_Al._Sk3.value._gj3;}else {_Al.value._gj3*=_Al._Sk3.value._gj3;}}if(_Al.value._Hf3&(1<<_Ge3)){if(_Vk3&(1<<_Ge3)){_Al.value.imageSpeed=_Al._Sk3.value.imageSpeed;}else {_Al.value.imageSpeed*=_Al._Sk3.value.imageSpeed;}}if(_Al.value._Hf3&(1<<_Je3)){if(_Vk3&(1<<_Je3)){_Al.value.imageIndex=_Al._Sk3.value.imageIndex;}else {_Al.value.imageIndex+=_Al._Sk3.value.imageIndex;}}}}var _mk3=new _Zy();_mk3._qj(_aw);_pe3.Multiply(_Al.value._re3,_aw);_aw._qj(_pe3);switch(_Nk3._oO){case _941:this._Uk3(_2R,
_ie3,_j8,_Al.value,_Al._xe3,_Al,_aw,_Jk3,_Nk3,_fe3,_ge3,_he3,true,_cc1);break;case _a41:this._Wk3(_2R,_ie3,_j8,_Al.value,_aw,_Nk3,_fe3,_ge3,_he3);break;case _841:this._Xk3(_2R,_ie3,_j8,_Al.value,_aw,_Nk3,_fe3,_ge3);break;}if(_Nk3._KS.length>0){this._pk3(_2R,_ie3,_j8,_Al._xe3,_Al,_aw,_Nk3,_Nk3._KS,_fe3,_ge3,_he3,_cc1);}_aw._qj(_mk3);}_S41.pop();}};_IG2.prototype._Tk3=function(_P82,_Yk3,_j8,_Q3,_Ak3,_Sh3,_Rh3,_fe3,_5i3){_Yk3.spriteIndex=-1;var keyframeStore=_Q3._NS;var _MS=keyframeStore._OS(_fe3,_5i3);
if(_MS==null)return;var spriteIndex=_MS._yr[0]._VP;_Yk3.spriteIndex=spriteIndex;var _DS=_16.Sprites[spriteIndex];if(!_Yk3._Fe3(_th3))_Yk3.xOrigin+=_DS.xOrigin;if(!_Yk3._Fe3(_uh3))_Yk3.yOrigin+=_DS.yOrigin;_Zk3(_P82,_Q3,_j8,_Ak3,_fe3,_Rh3,_Sh3,_DS.sequence,_DS,_MS,keyframeStore);};function _Zk3(_P82,_Q3,_em,_Ak3,_fe3,_ge3,_he3,_ie3,_P3,__k3,_0l3){if(_ie3===null){return;}if(_P82.value._Fe3(_Je3))return;var _ye3=_0l3._ze3(_fe3,_ie3._PS);if(_ye3==-1){return;}var _703=0;var _DS=_P3;if(_DS._15()>1){var _Ae3=Math.max(_fe3,
__k3._QT);_Ae3=Math.min(_Ae3,__k3._QT+_0l3._Be3(_ye3,_ie3._PS));var _Ce3=_Ae3-__k3._QT;var _De3=1.0;var _Ee3=_DS.sequence;if(_Ee3!=null){if(_Ee3._8c1==_eP){_De3=_Ee3._7c1/_ie3._7c1;}else {_De3=_Ee3._7c1*(_W3._X3()/_ie3._7c1);}}else if(_DS.playbackspeed!=0.0){if(_DS.playbackspeedtype==_eP){_De3=_DS.playbackspeed/_ie3._7c1;}else {_De3=_DS.playbackspeed;}}_Ce3*=_De3;if(_P82.value._Fe3(_Ge3)){var _He3=_P82.value._Ie3;if(_He3>=0)_Ce3=_He3*_De3;}if(_Ee3!=null){var _Ke3=1.0;if(_ge3>_fe3){_Ke3=-1.0;}var _FS={_GS:_Ce3,
_HS:_Ke3,_IS:false};_JS(_Ee3,_FS);_Ce3=_FS._GS;_Ke3=_FS._HS;if((_Ee3._KS!=null)&&(_Ee3._KS[0]._oO==_LS)){_QS(_ie3,_em.id,_Ak3,_ie3.playbackSpeed,_he3,_ge3,_Ce3);}}}}_IG2.prototype._Uk3=function(_2R,_Vh3,_tt,_Yk3,_1l3,_Ik3,_aw,_2l3,_Uh3,_Qh3,_Rh3,_Sh3,_3l3,_Kk3){_Yk3._4l3=-1;_Yk3.__j3=null;var keyframeStore=_Uh3._NS;var _Ze3=[];var __e3=[];var _Mj3=_Ph3(_Qh3,_Rh3,_Sh3,1.0,_Uh3,_Vh3,_Ze3,__e3);if(_Mj3){var _0f3=1,offset=0;if(_Ze3[1]!=-1)_0f3=2;if(_Ze3[0]==-1)offset=1;for(var _dl=offset;_dl<_0f3;_dl++){var _2f3=_Ze3[_dl];
var _3f3=__e3[_dl];for(var i=_2f3;i<=_3f3;i++){var _qN=keyframeStore._PT[i];var _4f3=_qN._yr[0];var _5f3=_4f3._aF;var _6f3=_rR._zU(_5f3);if(_6f3==null)continue;_S41.push(_qN);_S41.push(_4f3);_S41.push(_6f3);{var _0j;if(_qN._7f3){if(i>=keyframeStore._LT-1)_0j=_Vh3._PS-_qN._QT;else _0j=keyframeStore._PT[i+1]._QT-_qN._QT;}else _0j=_qN._PS;if((Math.floor(_Qh3)>=_qN._QT)&&(Math.floor(_Qh3)<(_qN._QT+_0j))){if(!_3l3){if(!_Yk3._Fe3(_th3))_Yk3.xOrigin+=_6f3._9e3;if(!_Yk3._Fe3(_uh3))_Yk3.yOrigin+=_6f3._ae3;_S41.pop();
_S41.pop();_S41.pop();continue;}_Yk3._4l3=_5f3;_Yk3.__j3=_6f3;var _Ae3=_W6(_Qh3,_qN._QT);var _8f3=_W6(_Rh3,_qN._QT);_Ae3=_X6(_Ae3,_qN._QT+_0j);_8f3=_X6(_8f3,_qN._QT+_0j);var _Ce3=_Ae3-_qN._QT;var _9f3=_8f3-_qN._QT;var _De3=1.0;if(_Vh3._7c1!=0.0){if(_Vh3._8c1==_eP)_De3=_6f3._7c1/_Vh3._7c1;else _De3=_6f3._7c1;}_Ce3*=_De3;_9f3*=_De3;var _Ke3=1.0;if(_Rh3>_Qh3)_Ke3=-1.0;var _FS={_GS:_Ce3,_HS:_Ke3,_IS:false};_JS(_6f3,_FS);_Ce3=_FS._GS;_Ke3=_FS._HS;this._pk3(_2R,_6f3,_tt,_1l3,_Ik3,_aw,_Uh3,_6f3._KS,_Ce3,_9f3,_Ke3,
_Kk3);}}_S41.pop();_S41.pop();_S41.pop();}}}};_IG2.prototype._Wk3=function(_5l3,_Vh3,_tt,_Yk3,_aw,_Uh3,_Qh3,_Rh3,_Sh3){_Yk3._6l3=-1;_Yk3.soundIndex=-1;var keyframeStore=_Uh3._NS;if(keyframeStore==null)return;var _7l3=_aw._K6[12];var _8l3=_aw._K6[13];var gain=_Yk3.gain*_tt._Oj3*_Vh3._Oj3;var pitch=_Yk3.pitch;var _gj3=_Yk3._gj3;var _9l3=keyframeStore._ze3(_Qh3,_Vh3._PS);var _KT=keyframeStore._LT;if((_tt._NU)||(_tt._nJ)){_9l3=-1;}for(var i=0;i<_KT;i++){var _al3=keyframeStore._PT[i];if(_al3!=null){_S41.push(_al3);
for(var _wf3 in _al3._yr){var _bl3=_al3._yr[_wf3];_S41.push(_bl3);var _cl3=_tt._dl3[_Af3(_S41)];if(_cl3!=null){if(i!=_9l3){if(_cl3._el3!=-1){audio_stop_sound(_cl3._el3);_cl3._el3=-1;}}else {if(_cl3._el3!=-1){if(((_cl3._fl3*_Sh3)<=0)||(((_Qh3-_Rh3)*_cl3._fl3)<=0)){audio_stop_sound(_cl3._el3);_cl3._el3=-1;}}if(_cl3._el3==-1){_cl3._fl3=_Sh3;_cl3._el3=audio_play_sound_on(_cl3._gl3,_bl3._qj3,(_bl3._sj3==_2h3)?true:false,1.0);var _hl3;if(_cl3._fl3>0){_hl3=_Qh3-_al3._QT;}else {_hl3=(_al3._QT+(_al3._PS-1))-_Qh3;
if(_hl3<0.0)_hl3=0.0;}if((_Vh3._7c1*_tt._il3)>0.0){_hl3/=(_Vh3._7c1*_tt._il3);;}_z81(_cl3._el3,_hl3);}if(_cl3._el3!=-1){audio_emitter_gain(_cl3._gl3,gain);audio_emitter_pitch(_cl3._gl3,pitch);audio_emitter_position(_cl3._gl3,_7l3,_8l3,0.0);}_Yk3._6l3=_cl3._gl3;_Yk3.soundIndex=_cl3._el3;}}_S41.pop();}_S41.pop();}}};_IG2.prototype._Xk3=function(_5l3,_Vh3,_tt,_Yk3,_aw,_Uh3,_Qh3,_Rh3){_Yk3._xT=_wt;var keyframeStore=_Uh3._NS;if(keyframeStore==null)return;var _We3=Math.atan2(_aw._K6[1],_aw._K6[0])*-(180/Math.PI);
var _Te3=Math.sqrt((_aw._K6[0]*_aw._K6[0])+(_aw._K6[1]*_aw._K6[1]));var _Ue3=Math.sqrt((_aw._K6[4]*_aw._K6[4])+(_aw._K6[5]*_aw._K6[5]));var _Xe3=_aw._K6[12];var _Ye3=_aw._K6[13];var _jl3=[];_jl3[0]=_aw._K6[0];_jl3[1]=_aw._K6[1];var _kl3=[];_kl3[0]=_aw._K6[4];_kl3[1]=_aw._K6[5];var _ll3=(_jl3[0]*_kl3[1])-(_jl3[1]*_kl3[0]);if(_ll3<0.0){if(Math.abs(_We3-_Yk3.rotation)>0.0001){_Te3*=-1.0;_We3-=180.0;}else {_Ue3*=-1.0;}}var _9l3=keyframeStore._ze3(_Qh3,_Vh3._PS);var _KT=keyframeStore._LT;for(var i=0;i<_KT;i++){
var _qN=keyframeStore._PT[i];if(_qN!=null){_S41.push(_qN);for(var _wf3 in _qN._yr){var _xf3=_qN._yr[_wf3];_S41.push(_xf3);var _yf3=_tt._zf3[_Af3(_S41)];if(_yf3!=null){var _Gt=_xn._r43(_yf3._xT);if(_Gt!=null){_Gt._s23(true);_Gt._x23(true);_Gt._v23(_tt);if(i!=_9l3){if(_Gt.visible==true)_Gt.visible=false;}else {_Yk3._xT=_Gt.id;if(_Gt.visible==false)_Gt.visible=true;if((_Yk3._Hf3&(1<<_DU))||(_5l3._cQ&(1<<_DU))||(_5l3._bQ._gP!=0.0)||(_5l3._bQ._hP!=0.0)){_Gt.x=_Xe3;_Gt.y=_Ye3;}if((_Yk3._Hf3&(1<<_FU))||(_5l3._cQ&(1<<_FU))){
_Gt.image_angle=_We3;}if((_Yk3._Hf3&(1<<_GU))||(_5l3._cQ&(1<<_GU))){_Gt.image_xscale=_Te3;_Gt.image_yscale=_Ue3;}if((_Yk3._Hf3&(1<<_nh3))||((_5l3._3Q&0x00ffffff)!=0xffffff)||(_5l3._4Q!=1.0)){var _L4=0;if((_5l3._3Q&0x00ffffff)!=0xffffff){var _D4=(_5l3._3Q&0xff)/255.0;var _E4=((_5l3._3Q>>8)&0xff)/255.0;var _F4=((_5l3._3Q>>16)&0xff)/255.0;_L4=((_Yk3._Me3[0]*_D4*255.0)&0xff);_L4|=((_Yk3._Me3[1]*_E4*255.0)&0xff)<<8;_L4|=((_Yk3._Me3[2]*_F4*255.0)&0xff)<<16;}else {_L4=((_Yk3._Me3[0]*255.0)&0xff);_L4|=((_Yk3._Me3[1]*255.0)&0xff)<<8;
_L4|=((_Yk3._Me3[2]*255.0)&0xff)<<16;}_Gt.image_blend=_L4;_Gt.image_alpha=_Yk3._Me3[3]*_5l3._4Q;}if(_Yk3._Hf3&(1<<_Ge3)){_Gt.image_speed=_Yk3.imageSpeed;}if(_Yk3._Hf3&(1<<_Je3)){_Gt.image_index=_Yk3.imageIndex;}else if(_Yk3._Hf3&(1<<_Ge3)){var _DS=_16._26(_Gt.sprite_index);if(_DS!=null){var _De3=1.0;var _Ee3=_DS.sequence;if(_Ee3!=null){if(_Ee3._8c1==_eP)_De3=_Ee3._7c1/_Vh3._7c1;else _De3=_Ee3._7c1*(_W3._X3()/_Vh3._7c1);var _He3=_Yk3._Ie3;if(_He3>=0){_Ce3=_He3*_De3;var _Ke3=1.0;if(_Rh3>_Qh3)_Ke3=-1.0;var _FS={
_GS:_Ce3,_HS:_Ke3,_IS:false};_JS(_Ee3,_FS);_Ce3=_FS._GS;_Ke3=_FS._HS;if((_Ee3._KS!=null)&&(_Ee3._KS[0]._oO==_LS)){var _a4=_Ee3._KS[0];var _Le3=_a4._NS._OS(_Ce3,_Ee3._PS);var _703;if(_Le3==null)_703=-1;else _703=_Le3._yr[0].__P;_Gt.image_index=_703;}}}}}}}}_S41.pop();}_S41.pop();}}};/*@constructor */function _Q41(_gg){_ZO2.call(this);this.__type="[SequenceInstance]";this.id=_gg;this._2e3=null;this._6Q=-1;this._8Q=0.0;this._LU=1.0;this._tR=1.0;this._Oj3=1.0;this._nJ=false;this._NU=false;this._ik3=false;
this._jk3=false;this._JU=0.0;this._dl3={};this._zf3={};this._ml3=-1;Object.defineProperties(this,{gmlsequence:{enumerable:true,get :function(){return _rR._zU(this._6Q);},set :function(__3){if(typeof(__3)=="object"){this._6Q=_rR.Sequences.indexOf(__3);}else {this._6Q=__3;}}},gmlheadPosition:{enumerable:true,get :function(){return this._8Q;},set :function(__3){var __3=yyGetReal(__3);__3=_W6(__3,0.0);var _HU=_rR._zU(this._6Q);if(_HU!=null){var length=_HU._PS;__3=_X6(__3,length);}this._8Q=__3;this._JU=__3;}},
gmlheadDirection:{enumerable:true,get :function(){return this._LU;},set :function(__3){__3=yyGetReal(__3);if(__3!=0){this._LU=Math.sign(__3);}}},gmlspeedScale:{enumerable:true,get :function(){return this._tR;},set :function(__3){__3=yyGetReal(__3);this._tR=__3;}},gmlvolume:{enumerable:true,get :function(){return this._Oj3;},set :function(__3){__3=yyGetReal(__3);__3=_W6(__3,0.0);this._Oj3=__3;}},gmlpaused:{enumerable:true,get :function(){return this._nJ;},},gmlfinished:{enumerable:true,get :function(){return this._NU;
},},gmlactiveTracks:{enumerable:true,get :function(){var _nl3=[];_ol3=this._2e3;while(_ol3!=null){_nl3.push(_ol3);_ol3=_ol3._6x1;}return _nl3;}},gmlelementID:{enumerable:true,get :function(){if(_S3!=null){if(this._ml3!=-1){var _nO=_jO._sS(_S3,this._ml3);if((_nO!=null)&&(_nO._oO==_VO)&&(_nO._7Q==this.id)){return this._ml3;}}for(var i=0;i<_S3._8R.length;i++){var layer=_S3._8R._26(i);for(var _17=0;_17<layer._mO.length;_17++){var _nO=layer._mO._26(_17);if(_nO==null)continue;if((_nO._oO==_VO)&&(_nO._7Q==this.id)){
this._ml3=_nO._ke;return this._ml3;}}}}else {return -1;}}}});}_Q41.prototype._rJ=function(){if(!this._nJ){this._nJ=true;var _cl3=null;for(var key in this._dl3){_cl3=this._dl3[key];if(audio_is_paused(_cl3._el3)==false){audio_pause_sound(_cl3._el3);}_sk3(false);}}};_Q41.prototype._MU=function(){if(this._nJ){this._nJ=false;var _cl3=null;for(var key in this._dl3){_cl3=this._dl3[key];if(audio_is_paused(_cl3._el3)==true){audio_resume_sound(_cl3._el3);}}}};_Q41.prototype._tk3=function(){var _cl3=null;for(var key in this._dl3){
_cl3=this._dl3[key];audio_stop_sound(_cl3._el3);}this._dl3={};};_Q41.prototype._T41=function(_me3,_pl3,_KR,_fS){for(var _ze2=0;_ze2<_me3.length;++_ze2){var _a4=_me3[_ze2];_S41.push(_a4);if(_a4._oO==_841){var _Xj3=_a4;if(_Xj3._NS!=null){var _Yj3=_Xj3._NS._LT;for(var i=0;i<_Yj3;i++){var _qN=_Xj3._NS._PT[i];_S41.push(_qN);for(var _wf3 in _qN._yr){var _xf3=_qN._yr[_wf3];if(_xf3._pj3!=-1){_S41.push(_xf3);var _yf3=this._zf3[_Af3(_S41)];if((_pl3==_cO)||(_pl3==_xf3._pj3)){if(_yf3!=null){if(_yf3._ql3==true){var _Gt=_xn._r43(_yf3._xT);
if(_Gt!=null){_EN(_Gt);}}delete this._zf3[_Af3(_S41)];}var _rl3=new _sl3();_rl3._tl3=_xf3;if(_KR<10000){_rl3._ul3=_KR;_rl3._ql3=true;}else {_rl3._xT=_KR;_rl3._ql3=false;}this._zf3[_Af3(_S41)]=_rl3;}else {if(_yf3==null){var _AX=null;if(_fS==-1){_AX=_O43(_xf3._pj3,0,0,0,this);}else {_AX=_Q43(_xf3._pj3,0,0,_fS,this);}if(_AX!=null){var _rl3=new _sl3();_rl3._tl3=_xf3;_rl3._xT=_AX.id;_rl3._ql3=true;this._zf3[_Af3(_S41)]=_rl3;}}else if((_yf3._ul3!=-1)&&(_yf3._xT==-1)){var _AX=null;if(_fS==-1){_AX=_O43(_yf3._ul3,0,
0,0,this);}else {_AX=_Q43(_yf3._ul3,0,0,_fS,this);}if(_AX!=null){_yf3._xT=_AX.id;}}}_S41.pop();}}_S41.pop();}}}else if(_a4._oO==_G41){var _Oi3=_a4;this._T41(_Oi3._Qi3(),_pl3,_KR,_fS);this._T41(_Oi3._Ri3(),_pl3,_KR,_fS);}else if(_a4._oO==_941){var _Zj3=_a4;if(_Zj3._NS!=null){var _Yj3=_Zj3._NS._LT;for(var i=0;i<_Yj3;i++){var _qN=_Zj3._NS._PT[i];_S41.push(_qN);for(var _wf3 in _qN._yr){var _xf3=_qN._yr[_wf3];_S41.push(_xf3);if(_xf3._aF!=-1){var _X31=_rR._zU(_xf3._aF);if(_X31!=null){_S41.push(_X31);this._T41(_X31._KS,
_pl3,_KR,_fS);_S41.pop();}}_S41.pop();}_S41.pop();}}}this._T41(_a4._KS,_pl3,_KR,_fS);_S41.pop();}};_Q41.prototype._vl3=function(){{for(var key in this._zf3){var _yf3=this._zf3[key];if((_yf3._ql3==true)&&(_yf3._xT>=0)){var _Gt=_xn._r43(_yf3._xT);if(_Gt!=null){_EN(_Gt);_yf3._xT=-1;}}}}};_Q41.prototype._kk3=function(_me3){for(var _ze2=0;_ze2<_me3.length;++_ze2){var _a4=_me3[_ze2];_S41.push(_a4);if(_a4._oO==_a41){var _wl3=_a4;if(_wl3._NS!=null){var _Yj3=_wl3._NS._LT;for(var i=0;i<_Yj3;i++){var _qN=_wl3._NS._PT[i];
_S41.push(_qN);for(var _wf3 in _qN._yr){var _xf3=_qN._yr[_wf3];if(_xf3._qj3!=-1){_S41.push(_xf3);var _cl3=this._dl3[_Af3(_S41)];if(_cl3==null){var emitter=audio_emitter_create();if((emitter!=undefined)&&(emitter!=-1)){var _xl3=new _yl3();_xl3._gl3=emitter;this._dl3[_Af3(_S41)]=_xl3;}}_S41.pop();}}_S41.pop();}}}else if(_a4._oO==_G41){var _Oi3=_a4;this._kk3(_Oi3._Qi3());this._kk3(_Oi3._Ri3());}else if(_a4._oO==_941){var _Zj3=_a4;if(_Zj3._NS!=null){var _Yj3=_Zj3._NS._LT;for(var i=0;i<_Yj3;i++){var _qN=_Zj3._NS._PT[i];
_S41.push(_qN);for(var _wf3 in _qN._yr){var _xf3=_qN._yr[_wf3];_S41.push(_xf3);if(_xf3._aF!=-1){var _X31=_rR._zU(_xf3._aF);if(_X31!=null){_S41.push(_X31);this._kk3(_X31._KS);_S41.pop();}}_S41.pop();}_S41.pop();}}}this._kk3(_a4._KS);_S41.pop();}};_Q41.prototype._1k3=function(){{for(var key in this._zf3){var _yf3=this._zf3[key];if(_yf3._xT>=0){var _Gt=_xn._r43(_yf3._xT);if(_Gt!=null){_Gt._s23(false);_Gt._x23(false);_Gt._v23(null);if(_yf3._ql3==true){_EN(_Gt);}_yf3._xT=-1;}}}}};_Q41.prototype._2k3=function(){
{for(var key in this._dl3){var _RX2=this._dl3[key];if((_RX2._gl3!=undefined)&&(_RX2._gl3>=0)){audio_stop_sound(_RX2._el3);audio_emitter_free(_RX2._gl3);_RX2._gl3=-1;_RX2._el3=-1;}}}};_Q41.prototype._sk3=function(_zl3){{for(var key in this._zf3){var _yf3=this._zf3[key];if(_yf3._xT>=0){var _Gt=_xn._r43(_yf3._xT);if(_Gt!=null){_Gt._s23(_zl3);if(_zl3==true){_Gt._v23(this);}else {_Gt._v23(null);}}}}}};/*@constructor */function _yl3(){this._el3=-1;this._fl3=1;this._gl3=-1;}/*@constructor */function _Al3(){this._re3=new _Zy();
this._Qk3=-1;this._Bl3=0;this._dj3=0;this._Hf3=0;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._gj3=0;this.imageIndex=0;this.imageSpeed=1;this._Ie3=-1;this._Me3=[];this._Me3[0]=1;this._Me3[1]=1;this._Me3[2]=1;this._Me3[3]=1;this._Ne3=[];this._Ne3[0]=0;this._Ne3[1]=0;this._Ne3[2]=0;this._Ne3[3]=0;this.spriteIndex=-1;this._xT=_wt;this._6l3=-1;this.soundIndex=-1;this.__j3=null;this._4l3=-1;this._Jf3=0;this._Kf3=0;this._Mf3=0;
this._Pf3=0;this._Sf3=0;}_Al3.prototype._aj3=function(_9j3){this._dj3&=_9j3;};_Al3.prototype._Cl3=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._gj3=0;this.imageIndex=0;this.imageSpeed=1;this._Ie3=-1;this._Me3[0]=1;this._Me3[1]=1;this._Me3[2]=1;this._Me3[3]=1;this._Ne3[0]=0;this._Ne3[1]=0;this._Ne3[2]=0;this._Ne3[3]=0;this._Jf3=0;this._Kf3=0;this._Mf3=0;this._Pf3=0;this._Sf3=0;this._dj3=0;this._Hf3=0;};_Al3.prototype._bj3=function(){
this._Bl3=0;};_Al3.prototype._hj3=function(_Q3,_Ln){switch(_Q3){case _th3:if(_Ln)this._Bl3|=(1<<0);else this._Bl3&=~(1<<0);break;case _uh3:if(_Ln)this._Bl3|=(1<<1);else this._Bl3&=~(1<<1);break;case _Ge3:if(_Ln)this._Bl3|=(1<<2);else this._Bl3&=~(1<<2);break;case _Je3:if(_Ln)this._Bl3|=(1<<3);else this._Bl3&=~(1<<3);break;}};_Al3.prototype._Fe3=function(_Q3){switch(_Q3){case _th3:return(this._Bl3&(1<<0))!=0;case _uh3:return(this._Bl3&(1<<1))!=0;case _Ge3:return(this._Bl3&(1<<2))!=0;case _Je3:return(this._Bl3&(1<<3))!=0;
}};/*@constructor */function _Dl3(_wg1){_ZO2.call(this);this.__type="[TrackEvalNode]";this._Pk3=null;this.value=new _Al3();this._Sk3=_wg1!==undefined?_wg1:null;this._6x1=null;this._xe3=null;Object.defineProperties(this,{gmlmatrix:{enumerable:true,get :function(){var _El3=new _Zy();_El3._qj(this.value._re3);return _El3._K6;},set :function(__3){if((__3 instanceof Array||__3 instanceof Float32Array)&&__3.length==16){this.value._re3._9I2();for(var i=0;i<16;++i){this.value._re3._K6[i]=yyGetReal(__3[i]);}}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(__3){this.value.x=yyGetReal(__3);this.value._re3._9I2();_Mh3(this.value._re3,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlposy:{enumerable:true,get :function(){return this.value.y;},set :function(__3){this.value.y=yyGetReal(__3);this.value._re3._9I2();_Mh3(this.value._re3,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,
this.value.xOrigin,this.value.yOrigin);}},gmlrotation:{enumerable:true,get :function(){return this.value.rotation;},set :function(__3){this.value.rotation=yyGetReal(__3);this.value._re3._9I2();_Mh3(this.value._re3,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlscalex:{enumerable:true,get :function(){return this.value.scaleX;},set :function(__3){this.value.scaleX=yyGetReal(__3);this.value._re3._9I2();_Mh3(this.value._re3,this.value.x,
this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlscaley:{enumerable:true,get :function(){return this.value.scaleY;},set :function(__3){this.value.scaleY=yyGetReal(__3);this.value._re3._9I2();_Mh3(this.value._re3,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlxorigin:{enumerable:true,get :function(){return this.value.xOrigin;},set :function(__3){this.value.xOrigin=yyGetReal(__3);
this.value._hj3(_th3,true);this.value._re3._9I2();_Mh3(this.value._re3,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlyorigin:{enumerable:true,get :function(){return this.value.yOrigin;},set :function(__3){this.value.yOrigin=yyGetReal(__3);this.value._hj3(_uh3,true);this.value._re3._9I2();_Mh3(this.value._re3,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);
}},gmlgain:{enumerable:true,get :function(){return this.value.gain;},set :function(__3){this.value.gain=yyGetReal(__3);}},gmlpitch:{enumerable:true,get :function(){return this.value.pitch;},set :function(__3){this.value.pitch=yyGetReal(__3);}},gmlfalloff:{enumerable:true,get :function(){return this.value._gj3;},set :function(__3){this.value._gj3=yyGetInt32(__3);}},gmlimageindex:{enumerable:true,get :function(){return this.value.imageIndex;},set :function(__3){this.value.imageIndex=yyGetInt32(__3);this.value._hj3(_Je3,
true);}},gmlimagespeed:{enumerable:true,get :function(){return this.value.imageSpeed;},set :function(__3){this.value.imageSpeed=yyGetReal(__3);this.value._hj3(_Ge3,true);}},gmlcolormultiply:{enumerable:true,get :function(){_Fl3=[];_Fl3[0]=yyGetReal(this.value._Me3[3]);_Fl3[1]=yyGetReal(this.value._Me3[0]);_Fl3[2]=yyGetReal(this.value._Me3[1]);_Fl3[3]=yyGetReal(this.value._Me3[2]);return _Fl3;},set :function(__3){if(__3 instanceof Array){this.value._Me3[0]=yyGetReal(__3[1]);this.value._Me3[1]=yyGetReal(__3[2]);
this.value._Me3[2]=yyGetReal(__3[3]);this.value._Me3[3]=yyGetReal(__3[0]);}else {var _L4=yyGetInt32(__3);this.value._Me3[0]=(_L4&0xff)/255.0;this.value._Me3[1]=((_L4>>8)&0xff)/255.0;this.value._Me3[2]=((_L4>>16)&0xff)/255.0;this.value._Me3[3]=((_L4>>24)&0xff)/255.0;}}},gmlcolourmultiply:{enumerable:true,get :function(){_Fl3=[];_Fl3[0]=yyGetReal(this.value._Me3[3]);_Fl3[1]=yyGetReal(this.value._Me3[0]);_Fl3[2]=yyGetReal(this.value._Me3[1]);_Fl3[3]=yyGetReal(this.value._Me3[2]);return _Fl3;},set :function(__3){
if(__3 instanceof Array){this.value._Me3[0]=yyGetReal(__3[1]);this.value._Me3[1]=yyGetReal(__3[2]);this.value._Me3[2]=yyGetReal(__3[3]);this.value._Me3[3]=yyGetReal(__3[0]);}else {var _L4=yyGetInt32(__3);this.value._Me3[0]=(_L4&0xff)/255.0;this.value._Me3[1]=((_L4>>8)&0xff)/255.0;this.value._Me3[2]=((_L4>>16)&0xff)/255.0;this.value._Me3[3]=((_L4>>24)&0xff)/255.0;}}},gmlcoloradd:{enumerable:true,get :function(){_Fl3=[];_Fl3[0]=yyGetReal(this.value._Ne3[3]);_Fl3[1]=yyGetReal(this.value._Ne3[0]);_Fl3[2]=yyGetReal(this.value._Ne3[1]);
_Fl3[3]=yyGetReal(this.value._Ne3[2]);return _Fl3;},set :function(__3){if(__3 instanceof Array){this.value._Ne3[0]=yyGetReal(__3[1]);this.value._Ne3[1]=yyGetReal(__3[2]);this.value._Ne3[2]=yyGetReal(__3[3]);this.value._Ne3[3]=yyGetReal(__3[0]);}else {var _L4=yyGetInt32(__3);this.value._Ne3[0]=(_L4&0xff)/255.0;this.value._Ne3[1]=((_L4>>8)&0xff)/255.0;this.value._Ne3[2]=((_L4>>16)&0xff)/255.0;this.value._Ne3[3]=((_L4>>24)&0xff)/255.0;}}},gmlcolouradd:{enumerable:true,get :function(){_Fl3=[];_Fl3[0]=yyGetReal(this.value._Ne3[3]);
_Fl3[1]=yyGetReal(this.value._Ne3[0]);_Fl3[2]=yyGetReal(this.value._Ne3[1]);_Fl3[3]=yyGetReal(this.value._Ne3[2]);return _Fl3;},set :function(__3){if(__3 instanceof Array){this.value._Ne3[0]=yyGetReal(__3[1]);this.value._Ne3[1]=yyGetReal(__3[2]);this.value._Ne3[2]=yyGetReal(__3[3]);this.value._Ne3[3]=yyGetReal(__3[0]);}else {var _L4=yyGetInt32(__3);this.value._Ne3[0]=(_L4&0xff)/255.0;this.value._Ne3[1]=((_L4>>8)&0xff)/255.0;this.value._Ne3[2]=((_L4>>16)&0xff)/255.0;this.value._Ne3[3]=((_L4>>24)&0xff)/255.0;
}}},gmlspriteIndex:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_741)){return this.value.spriteIndex;}else {return -1;}}},gmlinstanceID:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_841)){return this.value._xT;}else {return _wt;}}},gmlemitterIndex:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_a41)){return this.value._6l3;}else {return -1;}}},gmlsoundIndex:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_a41)){
return this.value.soundIndex;}else {return -1;}}},gmlsequence:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_941)){return this.value.__j3;}else {return -1;}}},gmlsequenceID:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_941)){return this.value._4l3;}else {return -1;}}},gmlframeSizeX:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){return this.value._Jf3;}else {return -1;}},set :function(__3){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){
this.value._Jf3=yyGetReal(__3);}}},gmlframeSizeY:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){return this.value._Kf3;}else {return -1;}},set :function(__3){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){this.value._Kf3=yyGetReal(__3);}}},gmlcharacterSpacing:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){return this.value._Mf3;}else {return -1;}},set :function(__3){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){this.value._Mf3=yyGetReal(__3);}}},gmllineSpacing:{
enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){return this.value._Pf3;}else {return -1;}},set :function(__3){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){this.value._Pf3=yyGetReal(__3);}}},gmlparagraphSpacing:{enumerable:true,get :function(){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){return this.value._Sf3;}else {return -1;}},set :function(__3){if((this._Pk3!=null)&&(this._Pk3._oO==_j41)){this.value._Sf3=yyGetReal(__3);}}},gmltrack:{enumerable:true,get :function(){return this._Pk3;
}},gmlparent:{enumerable:true,get :function(){return this._Sk3;}},gmlactiveTracks:{enumerable:true,get :function(){var _nl3=[];_ol3=this._xe3;while(_ol3!=null){_nl3.push(_ol3);_ol3=_ol3._6x1;}return _nl3;}},});}function _Ok3(_Ik3,_Gl3,_Hl3){var _H43={};if(_Gl3==null){var _Al=new _Dl3();if(_Hl3==null){if(_Ik3 instanceof _Q41){_Ik3._2e3=_Al;}else {_Ik3._xe3=_Al;}}else {_Hl3._6x1=_Al;}if(_Ik3 instanceof _Q41){_Al._Sk3=null;}else {_Al._Sk3=_Ik3;}_H43._Al=_Al;_H43._bl=null;}else {_H43._Al=_Gl3;_H43._bl=_Gl3._6x1;}return _H43;
}/*@constructor */function _sl3(){this._tl3=null;this._ul3=-1;this._xT=-1;this._ql3=false;};var _r71=[];function _Il3(_Jl3){}function _Kl3(_Gg1){try{var _Ll3=new Audio();if(_Ll3.canPlayType('audio/mpeg')=="probably")_Gg1(true);_Ll3.addEventListener('canplaythrough',function(e){_Gg1(true);},false);_Ll3.addEventListener('error',function(e){_Gg1(false,this.error);},false);_Ll3.src="data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";_Ll3.load();
}catch(e){_Gg1(false,e);}}/*@constructor */function _Ml3(){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._Nl3=1.0;this._el3=0;this._7b1=[];}_Ml3.prototype._Ol3=function(_YO2){this.pName=_YO2.pName;this.kind=_YO2.kind;this.extension=_YO2.extension;this.origName=_YO2.origName;this.effects=_YO2.effects;this.volume=_YO2.volume;this.pan=_YO2.pan;this.preload=_YO2.preload;this._Nl3=this.volume;this._C91(this.pName);
};_Ml3.prototype._C91=function(_9n){this._el3=0;this._7b1=[];var _Pl3=_r71[this.pName];if(_Pl3){if(_FE2>1&&typeof _Pl3.cloneNode==="function"){for(var i=0;i<_FE2;i++)this._7b1[i]=_Pl3.cloneNode(true);}else {_FE2=1;this._7b1[0]=_Pl3;}}};var _Ql3=false;function _4b1(_br,_gg,_g91,_lM,_Zn2){_br=_671(_br);if(_p91==false){return undefined;}var _Rl3=false;var pName=_br;var _771;var index;index=_br.indexOf(_g91);if(index>0){_br=_br.substr(0,index);}if(_871){_g91="ogg";}else if(_971){_g91="mp3";}else {_g91="ogg";}_Rl3=true;
if(_Rl3){_br=_br+"."+_g91;try{var _an=new Audio();_an.URL=_br;_an._Nl3=1.0;_an.autobuffer=true;if(typeof _an.loop=='boolean')_an.loop=false;_an.preload='auto';_an._XG2=false;_an._Sl3=false;var _xk=document.createElement('source');_xk.setAttribute("src",_br);if(_g91=="ogg"){_xk.setAttribute("type",'audio/ogg');_xk.setAttribute("codecs",'vorbis');}else {_xk.setAttribute("type",'audio/mpeg');}_an.setAttribute("networkState",0);_an.insertBefore(_xk,null);document.body.appendChild(_an);_r71[pName]=_an;_an.addEventListener('canplaythrough',
_lM,false);_an.addEventListener('error',_Zn2,false);_an.addEventListener("loadstart",_UG2,false);_an.addEventListener("suspend",_VG2,false);_an.addEventListener("stalled",_WG2,false);_an.addEventListener("stall",_WG2,false);_an.load();}catch(e){if(_FM==__y2&&_Ql3==false){var _Tl3=navigator;_Ql3=true;var _Ul3=_Tl3.userAgent.indexOf("Windows");if(_Ul3!=-1){alert("Audio Error: Please ensure that quicktime is installed");}}}}return _gg;}/*@constructor */function _DG2(){this.Sounds=[];this.length=0;}_DG2.prototype._Cl=function(_74){
if(this.Sounds[_74]){this._yq(_74);this.Sounds[_74]=undefined;}};/*@this {yySound} */function _Vl3(){this._Sl3=false;}_DG2.prototype._Wl3=function(_74){try{var _Xl3=this.Sounds[_74];if(!_Xl3)return null;var _Yl3=_Xl3._7b1[this.Sounds[_74]._el3];this.Sounds[_74]._el3++;if(this.Sounds[_74]._el3>=_FE2){this.Sounds[_74]._el3=0;}return _Yl3;}catch(e){debug("Sound buffer unavailable for sound: "+_74);}return null;};_DG2.prototype._dn=function(_74){var _Xl3=this._Wl3(_74);if(_Xl3!=null){try{if(_Xl3._Sl3)return;
var buffered=_Xl3.buffered;var _Zl3=_Xl3.buffered.length;var i;for(i=0;i<_Zl3;i++){var start=_Xl3.buffered.start(i);var end=_Xl3.buffered.end(i);}_Xl3.removeEventListener('ended',__l3,false);_Xl3.removeEventListener('ended',_Vl3,false);if(typeof _Xl3.loop=='boolean'){_Xl3.loop=false;}try{if(_Xl3.currentTime!=0){_Xl3.currentTime=0;}}catch(_ek){if(_d91)debug("Error setting current sound time: "+this.Sounds[_74].pName);}_Xl3.volume=this.Sounds[_74]._Nl3*_pF2;_Xl3.addEventListener('ended',_Vl3,false);_Xl3._Sl3=true;
_Xl3.play();}catch(_ek){if(_d91)debug("Error playing sound: "+this.Sounds[_74].pName);}}};_DG2.prototype._yq=function(_ld){{var _0m3=this.Sounds[_ld];if(!_0m3)return;_0m3=_0m3._7b1;for(var i=0;i<_0m3.length;i++){var _Xl3=_0m3[i];if(_Xl3!=null){try{_Xl3.pause();_Xl3._Sl3=false;}catch(_ek){if(_d91)debug("Error stopping sound: "+this.Sounds[_ld].pName);}}}}};_DG2.prototype._Sa1=function(){for(var _1m3=0;_1m3<this.Sounds.length;_1m3++){if(this.Sounds[_1m3]){var _0m3=this.Sounds[_1m3]._7b1;for(var i=0;i<_0m3.length;
i++){var _Xl3=_0m3[i];if(_Xl3!=null){try{_Xl3.pause();_Xl3._Sl3=false;}catch(_ek){if(_d91)debug("Error stopping sound: "+_Xl3.pName);}}}}}};_DG2.prototype._Xa1=function(_2m3){_pF2=_2m3;for(var _1m3=0;_1m3<this.Sounds.length;_1m3++){if(this.Sounds[_1m3]){var _0m3=this.Sounds[_1m3]._7b1;for(var i=0;i<_0m3.length;i++){var _Xl3=_0m3[i];if(_Xl3!=null){try{_Xl3.volume=_Xl3._Nl3*_pF2;}catch(_ek){if(_d91)debug("Error setting volume: "+this.Sounds[_1m3].pName);}}}}}};/*@this {yySound} */function __l3(){try{this.currentTime=0;
}catch(_ek){if(_d91)debug("Error in Repeat_Sound_Callback: "+_ek.message);}this.play();}_DG2.prototype._cn=function(_74){var _Xl3=this._Wl3(_74);if(_Xl3!=null){try{if(typeof _Xl3.loop=='boolean'){_Xl3.loop=true;}else {_Xl3.removeEventListener('ended',__l3,false);_Xl3.removeEventListener('ended',_Vl3,false);_Xl3.addEventListener('ended',__l3,false);_Xl3.onended=null;}try{if(_Xl3.currentTime!=0){_Xl3.currentTime=0;}}catch(_ek){if(_d91){debug("Error setting current sound time: "+this.Sounds[_74].pName);
}}_Xl3.volume=this.Sounds[_74]._Nl3*_pF2;_Xl3._Sl3=true;_Xl3.play();}catch(_ek){if(_d91){debug("Error looping sound: "+this.Sounds[_74].pName);}}}};_DG2.prototype._Va1=function(_ld,_3m3){var _0m3=this.Sounds[_ld];if(!_0m3)return;_0m3=_0m3._7b1;for(var i=0;i<_0m3.length;i++){var _Xl3=_0m3[i];if(_Xl3!=null){try{this.Sounds[_ld]._Nl3=_3m3;_Xl3.volume=_3m3*_pF2;}catch(_ek){if(_d91)debug("Error volume: "+this.Sounds[_ld].pName);}}}};_DG2.prototype._Za1=function(_74,_3m3,_j6){var _881=this.Sounds[_74];if(!_881)return;
var _0m3=_881._7b1;for(var i=0;i<_0m3.length;i++){var _Xl3=_0m3[i];if(_Xl3!=null&&_Xl3._Sl3){try{var _4m3=50;var _5m3=_881._Nl3;var _6m3=_3m3;var _7m3=Math.abs(_5m3-_6m3)/(_j6/_4m3);function _8m3(_9m3){setTimeout(function(){var _am3;if((_5m3<_6m3)&&(_Xl3.volume<_6m3)){_am3=_881._Nl3+_7m3;}else if((_5m3>_6m3)&&(_Xl3.volume>_6m3)){_am3=_881._Nl3-_7m3;}else {return;}if(_am3<0){_am3=0;}if(_am3>1){_am3=1;}_881._Nl3=_am3;_9m3.volume=_am3*_pF2;_8m3(_9m3);},_4m3);}_8m3(_Xl3);}catch(_ek){if(_d91)debug("Error volume: "+_881.pName);
}}}};_DG2.prototype._Aq=function(_ld){var _0m3=this.Sounds[_ld];if(!_0m3)return;_0m3=_0m3._7b1;var playing=false;for(var i=0;i<_0m3.length;i++){var _Xl3=_0m3[i];if(_Xl3!=null){try{if(_Xl3._Sl3){playing=true;break;}}catch(_ek){if(_d91)debug("Error checking play state: "+this.Sounds[_ld].pName);}}}return playing;};_DG2.prototype._26=function(_74){if(_74<0||_74>=this.Sounds.length)return null;return this.Sounds[_74];};_DG2.prototype._Tf=function(){this.Sounds=[];this.Sounds.length=0;};_DG2.prototype._Df=function(_YO2){
var _Qr=null;if(_YO2!=null){_Qr=new _Ml3();_Qr._Ol3(_YO2);}this.Sounds[this.Sounds.length]=_Qr;};_DG2.prototype._Ka1=function(){var _5b1=new _Ml3();this.Sounds[this.Sounds.length]=_5b1;return this.Sounds.length-1;};var _eP=0,_V3=1,_Uj3=2;var _bm3=2147483647;/*@constructor */function _OE(){this.left=0;this.top=0;this.right=0;this.bottom=0;}_OE.prototype._qj=function(_Yb1){this.left=_Yb1.left;this.right=_Yb1.right;this.top=_Yb1.top;this.bottom=_Yb1.bottom;};/*@constructor */function _vb1(){this.__type="[sprite]";
this.pName="sprite";this.width=16;this.height=16;this._MN=new _OE;this.transparent=true;this.smooth=true;this.preload=true;this._fb1=0;this._Pq=false;this._033=false;this.xOrigin=0;this.yOrigin=0;this._js=false;this._T6=0;this._Cb1=8;this._xb1=false;this._yb1=false;this._U6=[];this._cm3=[];this._05=[];this.Masks=[];this.playbackspeedtype=_eP;this.playbackspeed=30;this.sequence=null;this._9c1=null;this._dm3=false;this._Eb1=false;}_vb1.prototype.__23=function(){return this._Pq;};_vb1.prototype._em3=function(){
return this.xOrigin;};_vb1.prototype._fm3=function(){return this.yOrigin;};_vb1.prototype._t6=function(){return this._MN;};_vb1.prototype._15=function(){return this._T6;};var _gm3=function(x){return ~~x;};/*
* @param {spine.Skeleton} _skeleton
*
* @returns {[width: Number, height: Number]?}
*/_vb1.prototype._hm3=function(_u9){var _Oi=new _OE();_u9.__5();if(this._im3(_u9,_Oi)){var width=_gm3(_Oi.right-_Oi.left+0.5);var height=_gm3(_Oi.bottom-_Oi.top+0.5);return [width,height];}var skins=_u9.data.skins;
for(var i=0;i<skins.length;++i){_u9._k4(skins[i]);_u9.__5();if(this._im3(_u9,_Oi)){var width=_gm3(_Oi.right-_Oi.left+0.5);var height=_gm3(_Oi.bottom-_Oi.top+0.5);return [width,height];}}return null;};/*
* @param {spine.Skeleton} _skeleton
* @param {YYRECT} _bounds
*
* @returns {Boolean}
*/_vb1.prototype._im3=function(_u9,_jm3){var _H43=false;_jm3.left=Number.MAX_SAFE_INTEGER;_jm3.top=Number.MAX_SAFE_INTEGER;_jm3.right=Number.MIN_SAFE_INTEGER;_jm3.bottom=Number.MIN_SAFE_INTEGER;var drawOrder=_u9.drawOrder;
for(var i=0;i<drawOrder.length;++i){var slot=drawOrder[i];if(slot.attachment){if(slot.attachment instanceof spine._m9){var _k5=slot.attachment;var vertices=new Array(8);_k5._M9(slot.bone,vertices,0,2);for(var _17=0;_17<4;++_17){var _km3=vertices[(_17*2)+0];var _lm3=vertices[(_17*2)+1];_jm3.left=_gm3(Math.min(_jm3.left,_km3));_jm3.right=_gm3(Math.max(_jm3.right,_km3));_jm3.top=_gm3(Math.min(_jm3.top,_lm3));_jm3.bottom=_gm3(Math.max(_jm3.bottom,_lm3));_H43=true;}}else if(slot.attachment instanceof spine._o9){var _R9=slot.attachment;
var vertices=new Array(_R9._S9);_R9._M9(slot,0,_R9._S9,vertices,0,2);var _I9=_R9._S9>>1;for(var _17=0;_17<_I9;++_17){var _km3=vertices[(_17*2)+0];var _lm3=vertices[(_17*2)+1];_jm3.left=_gm3(Math.min(_jm3.left,_km3));_jm3.right=_gm3(Math.max(_jm3.right,_km3));_jm3.top=_gm3(Math.min(_jm3.top,_lm3));_jm3.bottom=_gm3(Math.max(_jm3.bottom,_lm3));_H43=true;}}}}return _H43;};_vb1.prototype._Y23=function(_2o,_3o){var _mm3=new _OE;var _nm3=Math.abs(_2o);var _om3=Math.abs(_3o);var _pm3=new _OE;_pm3.left=this._MN.left;
_pm3.right=this._MN.right+1;_pm3.top=this._MN.top;_pm3.bottom=this._MN.bottom+1;if((this._9c1!=null)&&(this._9c1._X23())){if((_pm3.left==0)&&(_pm3.top==0)&&(_pm3.right==this.width)&&(_pm3.bottom==this.height)){_mm3.left=0;_mm3.top=0;_mm3.right=_pm3.right*_nm3;_mm3.bottom=_pm3.bottom*_om3;}else {var _qm3=this.width*_nm3;var _rm3=this.height*_om3;var _sm3=this._9c1._g73();var _tm3=(this.width-this._9c1._i73())-this._9c1._g73();var _um3=_tm3;var _vm3=this._9c1._i73();var _wm3=this._9c1._h73();var _xm3=(this.height-this._9c1._j73())-this._9c1._h73();
var _ym3=_xm3;var _zm3=this._9c1._j73();if(_qm3<_sm3){_sm3=_qm3;_um3=0.0;_vm3=0.0;}else if(_qm3<(_sm3+_vm3)){_um3=0.0;_vm3=_qm3-_sm3;}else {_um3=_qm3-(_sm3+_vm3);}if(_rm3<_wm3){_wm3=_rm3;_ym3=0.0;_zm3=0.0;}else if(_rm3<(_wm3+_zm3)){_ym3=0.0;_zm3=_rm3-_wm3;}else {_ym3=_rm3-(_wm3+_zm3);}if(_pm3.left<=this._9c1._g73())_mm3.left=_pm3.left;else if(_pm3.left>=((this.width-this._9c1._i73())))_mm3.left=_sm3+_um3+(_pm3.left-(this.width-this._9c1._i73()));else {var _VI1=(_pm3.left-this._9c1._g73())/_tm3;_mm3.left=_sm3+(_um3*_VI1);
}if(_pm3.right<=this._9c1._g73())_mm3.right=_pm3.right;else if(_pm3.right>=((this.width-this._9c1._i73())))_mm3.right=_sm3+_um3+(_pm3.right-(this.width-this._9c1._i73()));else {var _VI1=(_pm3.right-this._9c1._g73())/_tm3;_mm3.right=_sm3+(_um3*_VI1);}if(_pm3.top<=this._9c1._h73())_mm3.top=_pm3.top;else if(_pm3.top>=((this.height-this._9c1._j73())))_mm3.top=_wm3+_ym3+(_pm3.top-(this.height-this._9c1._j73()));else {var _VI1=(_pm3.top-this._9c1._h73())/_xm3;_mm3.top=_wm3+(_ym3*_VI1);}if(_pm3.bottom<=this._9c1._h73())_mm3.bottom=_pm3.bottom;
else if(_pm3.bottom>=((this.height-this._9c1._j73())))_mm3.bottom=_wm3+_ym3+(_pm3.bottom-(this.height-this._9c1._j73()));else {var _VI1=(_pm3.bottom-this._9c1._h73())/_xm3;_mm3.bottom=_wm3+(_ym3*_VI1);}_mm3.left=_X6(_mm3.left,_qm3);_mm3.right=_X6(_mm3.right,_qm3);_mm3.top=_X6(_mm3.top,_rm3);_mm3.bottom=_X6(_mm3.bottom,_rm3);}_mm3.left-=this.xOrigin*_nm3;_mm3.right-=this.xOrigin*_nm3;_mm3.top-=this.yOrigin*_om3;_mm3.bottom-=this.yOrigin*_om3;}else {_mm3.left=(_pm3.left-this.xOrigin)*_nm3;_mm3.right=(_pm3.right-this.xOrigin)*_nm3;
_mm3.top=(_pm3.top-this.yOrigin)*_om3;_mm3.bottom=(_pm3.bottom-this.yOrigin)*_om3;}if(_2o<0.0){_mm3.left=-_mm3.left;_mm3.right=-_mm3.right;}if(_3o<0.0){_mm3.top=-_mm3.top;_mm3.bottom=-_mm3.bottom;}if(_mm3.left>_mm3.right){var _aT=_mm3.left;_mm3.left=_mm3.right;_mm3.right=_aT;}if(_mm3.top>_mm3.bottom){var _aT=_mm3.top;_mm3.top=_mm3.bottom;_mm3.bottom=_aT;}_mm3.right-=1;_mm3.bottom-=1;return _mm3;};_vb1.prototype._gb1=function(){var _Am3=(this.yOrigin*this.yOrigin);var _Bm3=(this.xOrigin*this.xOrigin);
var _Cm3=(this.width-this.xOrigin)*(this.width-this.xOrigin);var _Dm3=(this.height-this.yOrigin)*(this.height-this.yOrigin);var _Em3=~~ceil(sqrt(_Bm3+_Am3));var _Fm3=~~ceil(sqrt(_Cm3+_Am3));var _Gm3=~~ceil(sqrt(_Bm3+_Dm3));var _Hm3=~~ceil(sqrt(_Cm3+_Dm3));this._Cb1=_W6(_Em3,_W6(_Fm3,_W6(_Gm3,_Hm3)));};_vb1.prototype._Im3=function(_Jm3,_T4,_U4){try{if(_16._Km3!==undefined){var _Lm3=true;var byteOffset=0;var _Mm3=_16._Km3[_Jm3];var _bV1=new DataView(_Mm3);if(_bV1!==undefined){var _Nm3=_bV1.getInt32(byteOffset,
_Lm3);var _Om3=(1<<31);if((_Nm3&_Om3)!=0){_Nm3&=(~_Om3);byteOffset+=4;}byteOffset+=4;var _Pm3=null;if(_Nm3>0){_Pm3=new Uint8Array(_Mm3,byteOffset,_Nm3);byteOffset+=((_Nm3+3)&~3);}var _Qm3=_bV1.getUint32(byteOffset,_Lm3);byteOffset+=4;this._yL=[];for(var i=0;i<_Qm3;i++){var type=_bV1.getInt32(byteOffset,_Lm3);byteOffset+=4;var id=_bV1.getInt32(byteOffset,_Lm3);byteOffset+=4;var _Rm3=null;if(type===_2o2){_Rm3=new _bo2(type,id);byteOffset=_Rm3._co2(_bV1,byteOffset,_Lm3,this._yL);}else if(type===_3o2){_Rm3=new _En2(type,
id);byteOffset=_Rm3._Gn2(_Mm3,_bV1,byteOffset,_Lm3,_Pm3);}else {_Rm3={type:_1o2,id:id};}this._yL.push(_Rm3);}this._VW2=new _ep2();byteOffset=this._VW2._ip2(_bV1,byteOffset,_Lm3);if(this._VW2._hp2._jp2>0){byteOffset=this._Sm3(_bV1,byteOffset,_Lm3);if(!this._dm3){this._Pq=true;}}else {this.width=this._VW2._q6;this.height=this._VW2._s6;if(!this._dm3){this._Pq=false;}}if(!this._dm3){this._fb1=0;this.preload=true;}if(!this._dm3&&!this._Pq){this._MN.left=this._VW2._p6;this._MN.right=this._VW2._q6;this._MN.top=this._VW2._r6;
this._MN.bottom=this._VW2._s6;this.xOrigin=_T4;this.yOrigin=_U4;}this._gb1();this._Tm3();}}}catch(e){debug("Cannot build SWF data "+e.message);}};_vb1.prototype._Sm3=function(_Hn2,_In2,_Jn2){if(true!=this._Pq){return;}this._U6=[];this.width=this._VW2._hp2._kp2;this.height=this._VW2._hp2._lp2;var _jp2=this._VW2._hp2._jp2;for(var i=0;i<_jp2;i++){var _Um3=_Hn2.getInt32(_In2,_Jn2);_In2+=4;var _Vm3=_In2;var _Wm3=0;var _791=[];for(var _17=0;_17<_Um3;_17++){var _Xm3=_Hn2.getUint8(_In2,_Jn2);_In2+=1;var _Ym3=((_Xm3)&0x80)!=0?true:false;
var _Zm3=((_Xm3)&0x7f)+1;for(var _dl=0;_dl<_Zm3;_dl++){_791[_Wm3++]=_Ym3;}}var __m3=new Uint8Array(_791.length);for(var i=0;i<_791.length;++i)__m3[i]=_791[i];this._U6[i]=__m3;_In2=_Vm3+((_Um3+3)&~3);}this._xb1=true;return _In2;};_vb1.prototype._Tm3=function(){this._a9=function(_S4,_Q5,_R5,_2o,_3o,_U5,_Mc,_A9){_4_2(this._yL,this._VW2,_S4,this.xOrigin,this.yOrigin,_Q5,_R5,_2o,_3o,_U5,_Mc,_A9,this._05);};this._mf1=function(_S4,_Q5,_R5,_A9){_4_2(this._yL,this._VW2,_S4,this.xOrigin,this.yOrigin,_Q5,_R5,1.0,
1.0,0.0,0xffffffff,_A9,this._05);};};_vb1.prototype._0n3=function(_x3){if(_x3){this._zL=new _m8();this._zL._G8(this._Eb1?'':(this.pName+'/'),this.pName,_x3.json,_x3._x5,_x3._N8,_x3._O8,this);}this._a9=function(_S4,_Q5,_R5,_2o,_3o,_U5,_Mc,_A9){this._zL._a9(_S4,_Q5,_R5,_2o,_3o,_U5,_Mc,_A9);};this._mf1=function(_S4,_Q5,_R5,_A9){this._zL._a9(_S4,_Q5,_R5,1,1,0,0xffffff,_A9);};this._T6=_bm3;};_vb1.prototype._Fb1=function(_el,_zg1){var _1n3=function(_el,_zg1){var _2n3='Could not load file contents!';var _m91=new XMLHttpRequest();
_m91.open('GET',_671(_el),true);_m91.send();_m91.onload=function(){if(_zg1){_zg1((_m91.status==200)?null:_2n3,_m91.response||_m91.responseText);}};_m91.onerror=function(){if(_zg1){_zg1(_2n3);}};};var _3n3=function(_4n3){var _jG=_4n3.split('\n');var _JH2=[];var current=undefined;var _5n3=true;var _6n3=new RegExp('^size*:\\s*(\\d+)\\s*,\\s*(\\d+)$');for(var i=0;i<_jG.length;++i){var _ID=_jG[i].trim();if(_5n3){if(current!=undefined){if(current.width===undefined||current.height===undefined){return undefined;}
_JH2.push(current);}current={name:_ID};_5n3=false;}else {if(_ID==''){_5n3=true;}else if(current!=undefined){var _K6=_ID.match(_6n3);if(_K6){current.width=parseInt(_K6[1]);current.height=parseInt(_K6[2]);}}}}if(current!=undefined){if(current.width===undefined||current.height===undefined){return undefined;}_JH2.push(current);}return _JH2;};var _DS=this;var _7n3=_el.slice(0,-5)+'.atlas';var _8n3=2;var _9n3=false;var _x5;var _JH2;var _an3=function(err){if(_9n3){return;}if(err){_9n3=true;if(_zg1){_zg1(err);}return;
}if(--_8n3==0){var _De2={json:json,_x5:_x5,_N8:_JH2.length,_O8:_JH2,};_DS._0n3(_De2);var size=_DS._hm3((new _g3(_DS._zL))._n3);if(size instanceof Array){_DS.width=size[0];_DS.height=size[1];}if(_zg1){_zg1();}}};_1n3(_el,function(_o61,_bn3){if(!_o61){json=_bn3;}_an3(_o61);});_1n3(_7n3,function(_o61,_bn3){if(!_o61){_x5=_bn3;_JH2=_3n3(_x5);if(_JH2===undefined){_an3('Invalid atlas format!');return;}}_an3(_o61);});};_vb1.prototype._cn3=function(_dn3){this.sequence=new _341(_dn3);this.xOrigin=this.sequence._9e3;
this.yOrigin=this.sequence._ae3;};_vb1.prototype._en3=function(_fn3){this._9c1=new _ac1(_fn3);};function _gn3(_hn3,_uF){if(_hn3.Masks[_uF]!=null){var _K6=[];var src=0;var _ea=0;var _tm;while(src<_hn3.Masks[_uF].length){var _in3=_hn3.Masks[_uF][src++];if(_in3&0x80){_in3=(_in3&0x7f)+1;_tm=_hn3.Masks[_uF][src++];for(var _n5=0;_n5<_in3;_n5++){_K6[_ea++]=_tm;}}else {_in3++;for(var _n5=0;_n5<_in3;_n5++){_K6[_ea++]=_hn3.Masks[_uF][src++];}}}}_hn3.Masks[_uF]=_K6;}function _zH2(_jn3){var _4u2=new _vb1();if(_jn3.pName!==undefined)_4u2.pName=_jn3.pName;
if(_jn3.width!==undefined)_4u2.width=_jn3.width;if(_jn3.height!==undefined)_4u2.height=_jn3.height;if(_jn3.bboxLeft!==undefined)_4u2._MN.left=_jn3.bboxLeft;if(_jn3.bboxRight!==undefined)_4u2._MN.right=_jn3.bboxRight;if(_jn3.bboxTop!==undefined)_4u2._MN.top=_jn3.bboxTop;if(_jn3.bboxBottom!==undefined)_4u2._MN.bottom=_jn3.bboxBottom;if(_jn3.transparent!==undefined)_4u2.transparent=_jn3.transparent;if(_jn3.smooth!==undefined)_4u2.smooth=_jn3.smooth;if(_jn3.preload!==undefined)_4u2.preload=_jn3.preload;
if(_jn3.bboxMode!==undefined)_4u2._fb1=_jn3.bboxMode;if(_jn3.colCheck!==undefined)_4u2._Pq=_jn3.colCheck==1;if(_jn3.colCheck!==undefined)_4u2._033=_jn3.colCheck==2;if(_jn3.xOrigin!==undefined)_4u2.xOrigin=_jn3.xOrigin;if(_jn3.yOrigin!==undefined)_4u2.yOrigin=_jn3.yOrigin;if(_jn3.playbackspeedtype!==undefined)_4u2.playbackspeedtype=_jn3.playbackspeedtype;if(_jn3.playbackspeed!==undefined)_4u2.playbackspeed=_jn3.playbackspeed;_4u2.Masks=null;if(_jn3.swf!==undefined){_4u2._dm3=true;_4u2._Im3(_jn3.swf,
_4u2.xOrigin,_4u2.yOrigin);}if(_jn3.sequence!==undefined){_4u2._cn3(_jn3.sequence);}if(_jn3.nineslice!==undefined){_4u2._en3(_jn3.nineslice);}if(_jn3.Masks!==undefined)_4u2.Masks=_jn3.Masks;_4u2._05=[];for(var i=_jn3.TPEntryIndex.length-1;i>=0;i--){_4u2._05[i]=_jn3.TPEntryIndex[i];}if(_4u2._T6==0){_4u2._T6=_4u2._05.length;}for(var i=0;i<_4u2._05.length;i++){_4u2._05[i]=_pQ2(_4u2._05[i]);if(_4u2._05[i]!=null){if(_4u2._05[i].CropWidth==0)_4u2._05[i].CropWidth=1;if(_4u2._05[i].CropHeight==0)_4u2._05[i].CropHeight=1;
}}if(_jn3.skel!==undefined){var _De2=_16._Ya2?_16._Ya2[_jn3.skel]:undefined;_4u2._0n3(_De2);}_4u2._gb1();if(_4u2.Masks){for(var i=0;i<_jn3.Masks.length;i++){if(!_jn3._kn3)_gn3(_4u2,i);_4u2._xb1=true;var size=_4u2.width*_4u2.height;var _791=new Uint8Array(size);var _ln3=((_4u2.width+7)>>3);var _543=0;for(var y=0;y<_4u2.height;++y,_543+=_ln3){var _K6=0x80;var _mn3=_543;for(var x=0;x<_4u2.width;++x,_K6>>=1){if(_K6==0){_K6=0x80;++_mn3;}_791[x+(y*_4u2.width)]=((_4u2.Masks[i][_mn3]&_K6)!=0);}}_4u2._U6[i]=_791;}}
_jn3._kn3=true;return _4u2;}function _nn3(position,_A21){var _4M=_OA[_kA];var _on3=_4M._rI2();var _pn3=_VL();return _pn3._My2(_4M._as2(position),_A21*_on3);}_vb1.prototype._mf1=function(_qn3,_Q5,_R5,_A9){if(this._T6<=0)return;var _Cb1=this._Cb1;if(_nn3(new _iz(_Q5,_R5,_Va),_Cb1)){_qn3=(~~_qn3)%this._T6;if(_qn3<0)_qn3=_qn3+this._T6;if(!this._05)return;var __4=this._05[_qn3];if(!__4)return;if((this._9c1!=null)&&(this._9c1.enabled==true)){var _L4=0xffffffff;this._9c1._a9(_Q5,_R5,this.width,this.height,0,_L4,
1,_qn3,this);}else {if((__4.w==__4.CropWidth)&&(__4.h==__4.CropHeight)){_os(__4,_Q5-this.xOrigin,_R5-this.yOrigin,_A9);}else {var _L4=0xffffffff;_zs(__4,0,0,_Q5-this.xOrigin,_R5-this.yOrigin,1,1,0,_L4,_L4,_L4,_L4,1);}}}};_vb1.prototype._a9=function(_S4,_Q5,_R5,_2o,_3o,_U5,_Mc,_A9){if(this._T6<=0)return;if(this.sequence!=null){if(_S4<0){return;}}if(!this._05)return;var _rn3=abs(this._Cb1*_2o);var _sn3=abs(this._Cb1*_3o);var _Cb1;if(_rn3>_sn3){_Cb1=_rn3;}else {_Cb1=_sn3;}if(_nn3(new _iz(_Q5,_R5,_Va),_Cb1)){
_S4=(~~_S4)%this._T6;if(_S4<0)_S4+=this._T6;_U5=_2G2(_U5,360.0);if((this._9c1!=null)&&(this._9c1.enabled==true)){this._9c1._a9(_Q5,_R5,this.width*_2o,this.height*_3o,_U5,_Mc,_A9,_S4,this);}else {_zs(this._05[_S4],this.xOrigin,this.yOrigin,_Q5,_R5,_2o,_3o,_U5*Math.PI/180.0,_Mc,undefined,undefined,undefined,_A9);}}};_vb1.prototype._NL=function(_em,_Q5,_R5,_38){if((this._zL===undefined)||(this._zL===null))return;var _bP=_em.image_xscale;var _cP=_em.image_yscale;var x=_em.x;var y=_em.y;var _t9=Math.floor(_em.image_index);
if(this._T6>0){_t9=(~~_t9)%this._T6;}if(_t9<0)_t9+=this._T6;var angle=_em.image_angle;this._zL._e9(_em,undefined,undefined,_t9,x,y,_bP,_cP,angle,_Q5,_R5,_38);};_vb1.prototype._pf1=function(_qn3,_b7,_c7,_D6,_E6,_8u,_9u,_nf1,_of1,_A9){if(this._T6<=0)return;_qn3=(~~_qn3)%this._T6;if(_qn3<0)_qn3=_qn3+this._T6;if(!this._05)return;_g03(this._05[_qn3],_b7,_c7,_D6,_E6,_8u,_9u,_nf1,_of1,_A9);};_vb1.prototype._b33=function(_tn3,_un3,_b7,_c7,_S5,_T5,_U5,_Q5,_R5){var _27,_47;if(!this._xb1)return true;if(this._T6<=0)return false;
_tn3=_tn3%this._U6.length;if(_tn3<0)_tn3=_tn3+this._U6.length;_b7-=0.5;_c7-=0.5;if(Math.abs(_U5)<0.0001){_27=Math.floor((_Q5-_b7)/_S5+this.xOrigin);_47=Math.floor((_R5-_c7)/_T5+this.yOrigin);}else {var _l7=Math.sin(-_U5*Math.PI/180.0);var _m7=Math.cos(-_U5*Math.PI/180.0);_27=Math.floor((_m7*(_Q5-_b7)+_l7*(_R5-_c7))/_S5+this.xOrigin);_47=Math.floor((_m7*(_R5-_c7)-_l7*(_Q5-_b7))/_T5+this.yOrigin);}if((_27<0)||(_27>=this.width))return false;if((_47<0)||(_47>=this.height))return false;return this._U6[_tn3][_27+(_47*this.width)];
};_vb1.prototype._f33=function(_tn3,_un3,_b7,_c7,_S5,_T5,_U5,_g7){if(!this._xb1)return true;if(this._T6<=0)return false;_tn3=_tn3%this._U6.length;if(_tn3<0){_tn3=_tn3+this._U6.length;}var _V6=_W6(_un3.left,_g7.left);var _D4=_X6(_un3.right,_g7.right);var _Y6=_W6(_un3.top,_g7.top);var _F4=_X6(_un3.bottom,_g7.bottom);_b7-=0.5;_c7-=0.5;if((_S5==1)&&(_T5==1)&&(Math.abs(_U5)<0.0001)){for(var i=_V6;i<=_D4;i++){for(var _17=_Y6;_17<=_F4;_17++){var _27=~~(i-_b7+this.xOrigin);var _47=~~(_17-_c7+this.yOrigin);if((_27<0)||(_27>=this.width))continue;
if((_47<0)||(_47>=this.height))continue;if(this._U6[_tn3][_27+(_47*this.width)]==true)return true;}}}else {var _l7=Math.sin(-_U5*__6/180.0);var _m7=Math.cos(-_U5*__6/180.0);var _vn3=1.0/_S5;var _wn3=1.0/_T5;for(var i=_V6;i<=_D4;i++){for(var _17=_Y6;_17<=_F4;_17++){var _27=Math.floor((_m7*(i-_b7)+_l7*(_17-_c7))*_vn3+this.xOrigin);var _47=Math.floor((_m7*(_17-_c7)-_l7*(i-_b7))*_wn3+this.yOrigin);if((_27<0)||(_27>=this.width))continue;if((_47<0)||(_47>=this.height))continue;if(this._U6[_tn3][_27+(_47*this.width)])return true;
}}}return false;};_vb1.prototype._m33=function(_tn3,_un3,_b7,_c7,_S5,_T5,_U5,_g7){var i,_17;if(!this._xb1)return true;if(this._T6<=0)return false;_tn3=_tn3%this._U6.length;if(_tn3<0)_tn3=_tn3+this._U6.length;var _V6=_W6(_un3.left,_g7.left);var _D4=_X6(_un3.right,_g7.right);var _Y6=_W6(_un3.top,_g7.top);var _F4=_X6(_un3.bottom,_g7.bottom);var _h7=((_g7.right+_g7.left)/2);var _i7=((_g7.bottom+_g7.top)/2);var _j7=1.0/((_g7.right-_g7.left)/2);var _k7=1.0/((_g7.bottom-_g7.top)/2);var _xn3=this._U6[_tn3];var _FS;if((_S5==1)&&(_T5==1)&&(Math.abs(_U5)<0.0001)){
for(i=_V6;i<=_D4;i++){_FS=(i-_h7)*_j7;var _yn3=_FS*_FS;var _27=i-_b7+this.xOrigin;if((_27<0)||(_27>=this.width))continue;for(_17=_Y6;_17<=_F4;_17++){_FS=(_17-_i7)*_k7;if(_yn3+(_FS*_FS)>1)continue;var _47=_17-_c7+this.yOrigin;if((_47<0)||(_47>=this.height))continue;if(_xn3[_27+(_47*this.width)])return true;}}}else {var _l7=Math.sin(-_U5*Math.PI/180.0);var _m7=Math.cos(-_U5*Math.PI/180.0);var _vn3=1.0/_S5;var _wn3=1.0/_T5;for(i=_V6;i<=_D4;i++){var _zn3=(i-_b7);var _An3=_m7*_zn3;var _Bn3=_l7*_zn3;var _FS=(i-_h7)*_j7;
var _Cn3=_FS*_FS;for(_17=_Y6;_17<=_F4;_17++){var _Dn3=(_17-_i7)*_k7;if((_Cn3+(_Dn3*_Dn3))>1)continue;var _En3=_17-_c7;var _27=~~(((_An3+_l7*_En3)*_vn3)+this.xOrigin);if((_27<0)||(_27>=this.width))continue;var _47=~~(((_m7*_En3-_Bn3)*_wn3)+this.yOrigin);if((_47<0)||(_47>=this.height))continue;if(_xn3[_27+(_47*this.width)])return true;}}}return false;};_vb1.prototype._W33=function(_tn3,_un3,_b7,_c7,_Fn3,_Gn3,_Hn3,_R4,_In3,_S6,_D6,_E6,_F6,_G6,_H6){if(_R4==null)return false;if(this._T6<=0)return false;if(_R4._T6<=0)return false;
if(this._U6.length>0)_tn3=_tn3%this._U6.length;if(_tn3<0){_tn3=_tn3+this._U6.length;;}if(_R4._U6.length>0)_In3=_In3%_R4._U6.length;if(_In3<0){_In3=_In3+_R4._U6.length;}_Fn3=1.0/_Fn3;_Gn3=1.0/_Gn3;_F6=1.0/_F6;_G6=1.0/_G6;var _V6=_W6(_un3.left,_S6.left);_V6=Math.floor(_V6)+0.5;var _D4=_X6(_un3.right,_S6.right);var _Y6=_W6(_un3.top,_S6.top);_Y6=Math.floor(_Y6)+0.5;var _F4=_X6(_un3.bottom,_S6.bottom);var _Jn3=this._MN.left;var _Kn3=this._MN.right+1.0;var _Ln3=this._MN.top;var _Mn3=this._MN.bottom+1.0;if(this._Pq){
if(_Jn3<0)_Jn3=0;if(_Kn3>this.width)_Kn3=this.width;if(_Ln3<0)_Ln3=0;if(_Mn3>this.height)_Mn3=this.height;}var _Nn3=_R4._MN.left;var _On3=_R4._MN.right+1.0;var _Pn3=_R4._MN.top;var _Qn3=_R4._MN.bottom+1.0;var _En=_R4;if(_En._Pq){if(_Nn3<0)_Nn3=0;if(_On3>_En.width)_On3=_En.width;if(_Pn3<0)_Pn3=0;if(_Qn3>_En.height)_Qn3=_En.height;}var _Rn3=false;var _Sn3=false;if(_Hn3>g_GMLMathEpsilon||_Hn3<-g_GMLMathEpsilon)_Rn3=true;if(_H6>g_GMLMathEpsilon||_H6<-g_GMLMathEpsilon)_Sn3=true;if(!_Rn3&&!_Sn3){var _Tn3=_Fn3;
var _Un3=_F6;var _Fs1=((_V6-_b7)*_Fn3+this.xOrigin);var _o5=((_V6-_D6)*_F6+_En.xOrigin);for(var i=_V6;i<_D4;i+=1.0,_Fs1+=_Tn3,_o5+=_Un3){if((_Fs1<_Jn3)||(_Fs1>=_Kn3))continue;if((_o5<_Nn3)||(_o5>=_On3))continue;var _Vn3=~~_Fs1;var _Wn3=~~_o5;for(var _17=_Y6;_17<_F4;_17+=1.0){if(this._Pq){var _jb=((_17-_c7)*_Gn3+this.yOrigin);if((_jb<_Ln3)||(_jb>=_Mn3))continue;if(this._xb1){if(!this._U6[_tn3][_Vn3+(~~(_jb)*this.width)])continue;}}if(_En._Pq){var _p5=((_17-_E6)*_G6+_En.yOrigin);if((_p5<_Pn3)||(_p5>=_Qn3))continue;
if(_En._xb1){if(!_En._U6[_In3][_Wn3+(~~(_p5)*_En.width)])continue;}}return true;}}}else {var _Xn3,_Yn3,_Z6,_07,_Fs1,_o5,_jb,_p5;if(_Rn3){_Xn3=Math.sin(-_Hn3*__6/180.0);_Yn3=Math.cos(-_Hn3*__6/180.0);}if(_Sn3){_Z6=Math.sin(-_H6*__6/180.0);_07=Math.cos(-_H6*__6/180.0);}for(var i=_V6;i<_D4;i+=1.0){if(!_Rn3){_Fs1=((i-_b7)*_Fn3+this.xOrigin);if((_Fs1<_Jn3)||(_Fs1>=_Kn3))continue;}if(!_Sn3){_o5=((i-_D6)*_F6+_En.xOrigin);if((_o5<_Nn3)||(_o5>=_On3))continue;}for(var _17=_Y6;_17<_F4;_17+=1.0){if(_Rn3){_Fs1=((_Yn3*(i-_b7)+_Xn3*(_17-_c7))*_Fn3+this.xOrigin);
if((_Fs1<_Jn3)||(_Fs1>=_Kn3))continue;_jb=((_Yn3*(_17-_c7)-_Xn3*(i-_b7))*_Gn3+this.yOrigin);}else {_jb=((_17-_c7)*_Gn3+this.yOrigin);}if((_jb<_Ln3)||(_jb>=_Mn3))continue;if(this._Pq){if(this._xb1){if(!this._U6[_tn3][~~(_Fs1)+(~~(_jb)*this.width)])continue;}}if(_Sn3){_o5=((_07*(i-_D6)+_Z6*(_17-_E6))*_F6+_En.xOrigin);if((_o5<_Nn3)||(_o5>=_On3))continue;_p5=((_07*(_17-_E6)-_Z6*(i-_D6))*_G6+_En.yOrigin);}else {_p5=((_17-_E6)*_G6+_En.yOrigin);}if((_p5<_Pn3)||(_p5>=_Qn3))continue;if(_En._Pq){if(_En._xb1){
if(!_En._U6[_In3][~~(_o5)+(~~(_p5)*_En.width)])continue;}}return true;}}}return false;};_vb1.prototype._V33=function(_tn3,_un3,_b7,_c7,_Fn3,_Gn3,_Hn3,_R4,_In3,_S6,_D6,_E6,_F6,_G6,_H6){if(_R4==null)return false;if(this._T6<=0)return false;if(_R4._T6<=0)return false;if(this._U6.length>0)_tn3=_tn3%this._U6.length;if(_tn3<0){_tn3=_tn3+this._U6.length;;}if(_R4._U6.length>0)_In3=_In3%_R4._U6.length;if(_In3<0){_In3=_In3+_R4._U6.length;}_Fn3=1.0/_Fn3;_Gn3=1.0/_Gn3;_F6=1.0/_F6;_G6=1.0/_G6;var _V6=_W6(_un3.left,
_S6.left);var _D4=_X6(_un3.right,_S6.right);var _Y6=_W6(_un3.top,_S6.top);var _F4=_X6(_un3.bottom,_S6.bottom);if((_Fn3==1)&&(_F6==1)&&(_Gn3==1)&&(_G6==1)&&(_Hn3==0)&&(_H6==0)){for(var i=_V6;i<=_D4;i++){for(var _17=_Y6;_17<=_F4;_17++){var _27=i-_b7+this.xOrigin;var _47=_17-_c7+this.yOrigin;if((_27<0)||(_27>=this.width))continue;if((_47<0)||(_47>=this.height))continue;if(this._xb1){if(!this._U6[_tn3][_27+(_47*this.width)])continue;}_27=i-_D6+_R4.xOrigin;_47=_17-_E6+_R4.yOrigin;if((_27<0)||(_27>=_R4.width))continue;
if((_47<0)||(_47>=_R4.height))continue;if(_R4._xb1){if(!_R4._U6[_In3][_27+(_47*_R4.width)])continue;}return true;}}}else if((_Hn3==0)&&(_H6==0)){for(var i=_V6;i<=_D4;i++){for(var _17=_Y6;_17<=_F4;_17++){var _27=Math.floor(((i-_b7)*_Fn3+this.xOrigin));var _47=Math.floor(((_17-_c7)*_Gn3+this.yOrigin));if((_27<0)||(_27>=this.width))continue;if((_47<0)||(_47>=this.height))continue;if(this._xb1){if(!this._U6[_tn3][_27+(_47*this.width)])continue;}_27=Math.floor(((i-_D6)*_F6+_R4.xOrigin));_47=Math.floor(((_17-_E6)*_G6+_R4.yOrigin));
if((_27<0)||(_27>=_R4.width))continue;if((_47<0)||(_47>=_R4.height))continue;if(_R4._xb1){if(!_R4._U6[_In3][_27+(_47*_R4.width)])continue;}return true;}}}else {var _Xn3=Math.sin(-_Hn3*__6/180);var _Yn3=Math.cos(-_Hn3*__6/180);var _Z6=Math.sin(-_H6*__6/180);var _07=Math.cos(-_H6*__6/180);for(var i=_V6;i<=_D4;i++){for(var _17=_Y6;_17<=_F4;_17++){var _27=Math.floor(((_Yn3*(i-_b7)+_Xn3*(_17-_c7))*_Fn3+this.xOrigin));var _47=Math.floor(((_Yn3*(_17-_c7)-_Xn3*(i-_b7))*_Gn3+this.yOrigin));if((_27<0)||(_27>=this.width))continue;
if((_47<0)||(_47>=this.height))continue;if(this._xb1){if(!this._U6[_tn3][_27+(_47*this.width)])continue;}_27=Math.floor(((_07*(i-_D6)+_Z6*(_17-_E6))*_F6+_R4.xOrigin));_47=Math.floor(((_07*(_17-_E6)-_Z6*(i-_D6))*_G6+_R4.yOrigin));if((_27<0)||(_27>=_R4.width))continue;if((_47<0)||(_47>=_R4.height))continue;if(_R4._xb1){if(!_R4._U6[_In3][_27+(_47*_R4.width)])continue;}return true;}}}return false;};_vb1.prototype._p33=function(_tn3,_un3,_b7,_c7,_S5,_T5,_U5,_Zn3,__n3,_0o3,_1o3){if(!this._xb1){return true;
}if(this._T6<=0){return false;}_tn3=_tn3%this._U6.length;if(_tn3<0){_tn3=_tn3+this._U6.length;}if((_Zn3==_0o3)||(__n3==_1o3)){var _Ug2=new _OE();_Ug2.left=_Zn3;_Ug2.top=_X6(__n3,_1o3);_Ug2.right=_0o3;_Ug2.bottom=_W6(__n3,_1o3);return this._f33(_tn3,_un3,_b7,_c7,_S5,_T5,_U5,_Ug2);}var _l7=Math.sin(-_U5*Math.PI/180.0);var _m7=Math.cos(-_U5*Math.PI/180.0);_b7-=0.5;_c7-=0.5;if(Math.abs(_0o3-_Zn3)>=Math.abs(_1o3-__n3)){if(_0o3<_Zn3){var _re=_0o3;_0o3=_Zn3;_Zn3=_re;_re=_1o3;_1o3=__n3;__n3=_re;}var _8L=(_1o3-__n3)/(_0o3-_Zn3);
for(var i=_W6(_un3.left,_Zn3);i<=_X6(_un3.right,_0o3);i++){var _27=Math.floor((_m7*(i-_b7)+_l7*(__n3+(i-_Zn3)*_8L-_c7))/_S5+this.xOrigin);var _47=Math.floor((_m7*(__n3+(i-_Zn3)*_8L-_c7)-_l7*(i-_b7))/_T5+this.yOrigin);if((_27<0)||(_27>=this.width))continue;if((_47<0)||(_47>=this.height))continue;if(this._U6[_tn3][_27+(_47*this.width)])return true;}}else {if(_1o3<__n3){var _re=_1o3;_1o3=__n3;__n3=_re;_re=_0o3;_0o3=_Zn3;_Zn3=_re;}var _8L=(_0o3-_Zn3)/(_1o3-__n3);for(var i=_W6(_un3.top,__n3);i<=_X6(_un3.bottom,
_1o3);i++){var _27=Math.floor((_m7*(_Zn3+(i-__n3)*_8L-_b7)+_l7*(i-_c7))/_S5+this.xOrigin);var _47=Math.floor((_m7*(i-_c7)-_l7*(_Zn3+(i-__n3)*_8L-_b7))/_T5+this.yOrigin);if((_27<0)||(_27>=this.width))continue;if((_47<0)||(_47>=this.height))continue;if(this._U6[_tn3][_27+(_47*this.width)])return true;}}return false;};_vb1.prototype._5c1=function(_S4){if(this._T6<=0){return null;}_S4=_S4%this._T6;if(_S4<0){_S4=_S4+this._T6;}if(this._05){return this._05[_S4];}return null;};/*@constructor */function _AG2(){this.Sprites=[];
}_AG2.prototype._wb1=function(_hn3){var _I6=this.Sprites.length;this.Sprites[_I6]=_hn3;return _I6;};_AG2.prototype._O23=function(_2o3){var _DS=this.Sprites[_2o3];if(!_DS)return null;if((_DS._VW2!==null)&&(_DS._VW2!==undefined)){return _DS._VW2._gp2;}return _DS._05.length;};_AG2.prototype._26=function(_2o3){if(Number.isNaN(_2o3))return null;if(_2o3<0||_2o3>=this.Sprites.length)return null;return this.Sprites[_2o3];};_AG2.prototype._eX2=function(_b4){for(var i=0;i<this.Sprites.length;i++){if(this.Sprites[i].pName==_b4){
return i;}}return -1;};_AG2.prototype._Cl=function(_gg){var _4u2=this.Sprites[_gg];if(_4u2!=undefined){var _3o3=true;for(var i=0;i<_4u2._05.length;i++){var __4=_4u2._05[i];if(!__4||!__4._95)continue;var _25=__4._95;if(!_25||!_25._Ba)continue;if(_3o3){_s8._HT1();_3o3=false;}_s8._sV1(_25._Ba._NU1);_25._Ba=null;}this.Sprites[_gg]=undefined;}};_AG2.prototype._9H2=function(_9V1){try{var _4o3={data:new Uint8Array(_9V1),offset:0};function _5o3(_6o3){var _dd1=";";var _Kl="";while(_4o3.offset<_6o3.data.byteLength){if(_6o3.data[_4o3.offset]===_dd1.charCodeAt(0)){
_4o3.offset++;break;}_Kl=_Kl+String.fromCharCode(_6o3.data[_4o3.offset]);_4o3.offset++;}return _Kl;};var type=_5o3(_4o3);if(type=="rswf"){var version=_5o3(_4o3),_7o3=version.split('.',3);_ao2._tl1=parseInt(_7o3[0]);_ao2._ul1=parseInt(_7o3[1]);_ao2.version=parseInt(_7o3[2]);var _8o3=parseInt(_5o3(_4o3)),_9o3=parseInt(_5o3(_4o3));this._Km3=[];var _sd=_8o3;for(var i=0;i<_9o3;i++){var _ao3=parseInt(_5o3(_4o3));this._Km3[i]=_9V1.slice(_sd,_sd+_ao3);_sd+=_ao3;}}}catch(e){debug("Cannot parse SWF data "+e.message);
}};_AG2.prototype._7H2=function(_bo3){function _co3(_G4,_F4){var _kb3=(_G4>>16)&0xffff,_Fu2=_G4&0xffff;var _WX=(_F4>>16)&0xffff,_eP1=_F4&0xffff;var _Yc1=((_kb3*_eP1)+(_Fu2*_WX))&0xffff;return((_Yc1<<16)>>>0)+(_Fu2*_eP1);};function _do3(_9V1){var _RV=Math.pow(2,32);var decode=6*7;var _eo3="";for(var _17=0;_17<_9V1.length;_17++){_eo3+=String.fromCharCode((_9V1.charCodeAt(_17)-(decode&0xff))&0xff);decode=_co3(decode,(decode+1)%_RV)%_RV;}return _eo3;};this._Ya2=[];try{var _fo3=_bo3.split(';',4);if(_fo3[0]=="skel"){
var version=_fo3[1];var _sd=parseInt(_fo3[2]);var _go3=parseInt(_fo3[3]);var _ho3=4+_go3;_fo3=_bo3.split(';',_ho3);for(var i=0;i<_go3;i++){var _io3=parseInt(_fo3[4+i]);var _jo3=_bo3.substr(_sd,_io3);var _ko3=_jo3.split(';',2);var _t9=0;var _lo3=parseInt(_ko3[_t9++]);var _N8=parseInt(_ko3[_t9++]);var _O8=[];_ko3=_jo3.split(';',_N8*2+3);for(var _Y6=0;_Y6<_N8;_Y6++){var _mo3=new Object();_mo3.width=parseInt(_ko3[_t9++]);_mo3.height=parseInt(_ko3[_t9++]);_O8[_Y6]=_mo3;}var _no3=_ko3[_t9].substr(0,_lo3);var _oo3=_ko3[_t9].substr(_lo3,
_ko3[_t9].length-_lo3);this._Ya2.push({json:_do3(_ZH(_no3)),_x5:_do3(_ZH(_oo3)),_N8:_N8,_O8:_O8});_sd+=_io3;}}}catch(e){debug("Cannot parse Spine data "+e.message);}};/*@constructor */function _IH2(){this.__type="[TextureGroupInfo]";this.pName="unknowntexturegroup";this._JH2=[];this.sprites=[];this._KH2=[];this._LH2=[];this._MH2=[];}/*@constructor */function _BG2(){this.TextureGroupInfo=[];}_BG2.prototype._NH2=function(_po3){var _I6=this.TextureGroupInfo.length;this.TextureGroupInfo[_I6]=_po3;return _I6;
};_BG2.prototype._2Q2=function(_C03){for(var i=0;i<this.TextureGroupInfo.length;i++){if(this.TextureGroupInfo[i].pName==_C03){return this.TextureGroupInfo[i];}}return null;};_BG2.prototype._qo3=function(_ro3){for(var i=0;i<this.TextureGroupInfo.length;i++){var _HH2=this.TextureGroupInfo[i];for(var _17=0;_17<_HH2._JH2.length;_17++){if(_HH2._JH2[_17]==_ro3){return _HH2;}}}return null;};_BG2.prototype._so3=function(_to3){for(var i=0;i<this.TextureGroupInfo.length;i++){var _HH2=this.TextureGroupInfo[i];for(var _17=0;
_17<_HH2._JH2.length;_17++){if(_35[_HH2._JH2[_17]]){var _U8=_35[_HH2._JH2[_17]];if(_U8._Ba){if(_U8._Ba===_to3){return _HH2;}}}}}return null;};function _uo3(_vo3){if(_35[_vo3]){if(_35[_vo3]._Ba){return _35[_vo3]._Ba;}}return null;}function texture_is_ready(_wo3){if(_s8==null)return -1;if((typeof(_wo3)==="string")){var _HH2=_OE2._2Q2(yyGetString(_wo3));if(_HH2==null){return 0;}for(var i=0;i<_HH2._JH2.length;i++){var _xo3=_uo3(_HH2._JH2[i]);if(_xo3!=null){if(!_dV1(_xo3,_ca._eV1)){return 0;}}else {return 0;}}return 1;
}else {var _xo3=_uo3(yyGetInt32(_wo3));if(_xo3!=null){return _dV1(_xo3,_ca._eV1);}}return 0;}function texture_prefetch(_wo3){if(_s8==null)return -1;if((typeof(_wo3)==="string")){var _HH2=_OE2._2Q2(yyGetString(_wo3));if(_HH2==null){return -1;}for(var i=0;i<_HH2._JH2.length;i++){var _xo3=_uo3(_HH2._JH2[i]);if(_xo3!=null){_0t(_xo3);}}}else {var _xo3=_uo3(yyGetInt32(_wo3));if(_xo3!=null){_0t(_xo3);}}}function texture_flush(_wo3){if(_s8==null)return -1;if((typeof(_wo3)==="string")){var _HH2=_OE2._2Q2(yyGetString(_wo3));
if(_HH2==null){return -1;}for(var i=0;i<_HH2._JH2.length;i++){var _xo3=_uo3(_HH2._JH2[i]);if(_xo3!=null){_4t(_xo3);}}}else {var _xo3=_uo3(yyGetInt32(_wo3));if(_xo3!=null){_4t(_xo3);}}}function texturegroup_get_textures(_yo3){var _HH2=_OE2._2Q2(yyGetString(_yo3));if(_HH2==null){return -1;}var _P4=new Array();for(var i=0;i<_HH2._JH2.length;i++){_P4.push(_HH2._JH2[i]);}return _P4;}function texturegroup_get_sprites(_yo3){var _HH2=_OE2._2Q2(yyGetString(_yo3));if(_HH2==null){return -1;}var _P4=new Array();for(var i=0;i<_HH2.sprites.length;
i++){_P4.push(_HH2.sprites[i]);}return _P4;}function texturegroup_get_fonts(_yo3){var _HH2=_OE2._2Q2(yyGetString(_yo3));if(_HH2==null){return -1;}var _P4=new Array();for(var i=0;i<_HH2._LH2.length;i++){_P4.push(_HH2._LH2[i]);}return _P4;}function texturegroup_get_tilesets(_yo3){var _HH2=_OE2._2Q2(yyGetString(_yo3));if(_HH2==null){return -1;}var _P4=new Array();for(var i=0;i<_HH2._MH2.length;i++){_P4.push(_HH2._MH2[i]);}return _P4;}function texturegroup_load(_yo3,_zo3){}function texturegroup_unload(_yo3){}function texturegroup_get_status(_yo3){
return 3;}function texturegroup_set_mode(_Ao3,_Bo3,_Co3){}var _Do3=0;function texture_debug_messages(_cz){if(_s8==null)return -1;if(yyGetBool(_cz))_Do3=1;else _Do3=0;}function _Eo3(_to3){if(_Do3>0){var _Gb=-1;for(var i=0;i<_35.length;i++){if(_35[i]){if(_35[i]._Ba){if(_35[i]._Ba===_to3){_Gb=0;break;}}}}var _HH2=_OE2._so3(_to3);if(_HH2!=null){show_debug_message("Texture unpacked - Group: "+_HH2.pName+", Texture ID: "+String(_Gb)+", Width: "+_to3._FU1+", Height "+_to3._GU1);}else if(_Do3>1){show_debug_message("Texture unpacked - Group: None, Texture ID: "+String(_Gb)+", Width: "+_to3._FU1+", Height "+_to3._GU1);
}}}function _Fo3(_to3){if(_Do3>0){var _Gb=-1;for(var i=0;i<_35.length;i++){if(_35[i]){if(_35[i]._Ba){if(_35[i]._Ba===_to3){_Gb=0;break;}}}}var _HH2=_OE2._so3(_to3);if(_HH2!=null){show_debug_message("Texture flushed - Group: "+_HH2.pName+", Texture ID: "+String(_Gb)+", Width: "+_to3._FU1+", Height "+_to3._GU1);}else if(_Do3>1){show_debug_message("Texture flushed - Group: None, Texture ID: "+String(_Gb)+", Width: "+_to3._FU1+", Height "+_to3._GU1);}}}/*@constructor */function _sf1(){this.__type="[Tile]";
this.x=0;this.y=0;this.index=0;this.xo=0;this.yo=0;this.w=0;this.h=0;this.depth=0.0;this.id=_sF2++;this._bP=1.0;this._cP=1.0;this._dP=0xffffff;this.alpha=1.0;this.visible=true;this._Go3=false;}_sf1.prototype._tf1=function(){var _hs=_Wq._Or(this.index);if(_hs!=null){var __4=_hs._Tr;if(__4.tp>=_35.length)return;if(!_35[__4.tp].complete)return;if(this.xo<0){this.w+=this.xo;this.xo=0;}if(this.yo<0){this.h+=this.yo;this.yo=0;}if(__4!=null){if((this.xo+this.w)>=__4.w){this.w=__4.w-this.xo;}if((this.yo+this.h)>=__4.h){
this.h=__4.h-this.yo;}}}};function _Hc3(_Ho3){var _rf1=new _sf1();if(_Ho3.x!=undefined)_rf1.x=_Ho3.x;if(_Ho3.y!=undefined)_rf1.y=_Ho3.y;if(_Ho3.index!=undefined)_rf1.index=_Ho3.index;if(_Ho3.xo!=undefined)_rf1.xo=_Ho3.xo;if(_Ho3.yo!=undefined)_rf1.yo=_Ho3.yo;if(_Ho3.w!=undefined)_rf1.w=_Ho3.w;if(_Ho3.h!=undefined)_rf1.h=_Ho3.h;if(_Ho3.depth!=undefined)_rf1.depth=_Ho3.depth;if(_Ho3.id!=undefined)_rf1.id=_Ho3.id;if(_Ho3.scaleX!=undefined)_rf1._bP=_Ho3.scaleX;if(_Ho3.scaleY!=undefined)_rf1._cP=_Ho3.scaleY;
if(_Ho3.colour!=undefined){_rf1._dP=(_Ho3.colour&0xffffff);_rf1.alpha=((_Ho3.colour>>24)&0xff)/255.0;}_rf1._tf1();if(_sF2<_Ho3.id)_sF2=_Ho3.id+1;return _rf1;}_sf1.prototype._a9=function(){if(!this.visible)return false;var _hs=_Wq._Or(this.index);if(_hs!=null){var __4=_hs._Tr;if((__4._95 instanceof HTMLImageElement)&&(__4.tp>=_35.length))return;if((_35[__4.tp] instanceof HTMLImageElement)&&(!_35[__4.tp].complete))return;var _3Y2=__4.w/__4.ow;var _4Y2=__4.h/__4.oh;if(!_s8){_4a.globalAlpha=this.alpha;if(this._dP!=0xffffff){
var _AY2=_P9(__4,this._dP);if(this._bP<=0||this._cP<=0){_KY2(this.x,this.y,this._bP,this._cP,0.0);_4a._rb1(_AY2,(this.xo*_3Y2),(this.yo*_4Y2),this.w*_3Y2,this.h*_4Y2,0,0,this.w,this.h);_MY2();}else {_4a._rb1(_AY2,(this.xo*_3Y2),(this.yo*_4Y2),(this.w*_3Y2),(this.h*_4Y2),this.x,this.y,this.w*this._bP,this.h*this._cP);}}else {var _25=-1;if(__4._95 instanceof HTMLImageElement)_25=_35[__4.tp];else _25=__4._95;if(this._bP<=0||this._cP<=0){_KY2(this.x,this.y,this._bP,this._cP,0.0);_4a._rb1(_25,__4.x+(this.xo*_3Y2),
__4.y+(this.yo*_3Y2),this.w*_3Y2,this.h*_4Y2,0,0,this.w,this.h);_MY2();}else {_4a._rb1(_25,__4.x+(this.xo*_3Y2),__4.y+(this.yo*_3Y2),this.w*_3Y2,this.h*_4Y2,this.x,this.y,this.w*this._bP,this.h*this._cP);}}}else {var _L4=this._dP|((this.alpha*255)<<24);_4a._rb1(__4,__4.x+(this.xo*_3Y2),__4.y+(this.yo*_3Y2),this.w*_3Y2,this.h*_3Y2,this.x,this.y,this.w*this._bP,this.h*this._cP,_L4);}}};var _Io3=0,_Jo3=1,_Ko3=2;var _Lo3=0,_Mo3=1;var _No3=0,_Dg1=1;var _Oo3=0,_Po3=1,_Qo3=2,_Ro3=3;var _So3=0,_og1=1,_kg1=2,_lg1=3;
function _To3(_Uo3){return _Uo3/1e6;}function _Vo3(_Wo3){return _Wo3*1e6;}class _Xo3{static _Yo3=0;constructor(_gg){this.type=_So3;this._OC=0;this._Dk1=[];if(_gg===undefined){this.id=_Xo3._Yo3++;}else {if(_gg<_Xo3._Yo3){throw new Error("Failed to assign the correct ID to a built-in time source.")}this.id=_gg;_Xo3._Yo3=_gg+1;}}_Ug1(_vj){if(_vj==this){this._Dk1=[];}else {this._Zo3(_vj);}}_Tg1(){return this;}_Sg1(__o3){if(__o3){for(let i=0;i<this._Dk1.length;++i){const _Mh2=this._Dk1[i];if(_Mh2!=null){_Mh2._Sg1(true);
}}}}_Au2(_0p3){this._OC+=_0p3;}_zu2(){for(let i=0;i<this._Dk1.length;++i){const _Mh2=this._Dk1[i];if(_Mh2!=null){_Mh2._Au2(this._OC);}}this._OC=0;}_Bu2(){const _Dk1=this._Dk1.slice();for(let i=0;i<_Dk1.length;++i){const _1p3=_Dk1[i];if(_1p3!=null){const _zb=this._Dk1.indexOf(_1p3);if(_zb!=-1){const _Mh2=this._Dk1[_zb];if(!_Mh2._vg1()){_Mh2._2p3();}if(_Mh2._vg1()){this._Zo3(_Mh2);}}}}}_Kg1(_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1){const _Mh2=new _3p3(this,_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1);if(_Mh2!=null){this._Dk1.push(_Mh2);
return _Mh2;}return null;}_rh1(_xg1,_yg1,_zg1,_LB){const _Mh2=new _4p3(this,_xg1,_yg1,_zg1,_LB);if(_Mh2!=null){this._Dk1.push(_Mh2);return _Mh2;}return null;}_Zo3(_5p3){const _Mh2=this._Dk1.indexOf(_5p3);if(_Mh2!=-1){this._Dk1.splice(_Mh2,1);}}_ih1(){return this._Dk1;}_Qg1(){return this._Dk1.length;}_Lg1(){return this.id;}_ug1(_gg){if(this.id==_gg){return this;}for(let i=0;i<this._Dk1.length;++i){const _Mh2=this._Dk1[i];if(_Mh2!=null){const _tg1=_Mh2._ug1(_gg);if(_tg1!=null){return _tg1;}}}return null;}_Vg1(){for(let i=0;
i<this._Dk1.length;++i){const _Mh2=this._Dk1[i];if(_Mh2!=null){const _tg1=_Mh2._Vg1();if(_tg1!=null){return _tg1;}}}return null;}_jg1(){return this.type;}}class _6p3 extends _Xo3{constructor(_gg){super(_gg);this.type=_og1;this.state=_Po3;}_rJ(){if(this.state==_Po3){this.state=_Qo3;}for(let i=0;i<this._Dk1.length;++i){const _Mh2=this._Dk1[i];if(_Mh2!=null){_Mh2._rJ();}}}_n01(){if(this.state==_Qo3){this.state=_Po3;}for(let i=0;i<this._Dk1.length;++i){const _Mh2=this._Dk1[i];if(_Mh2!=null){_Mh2._n01();}}}_Xg1(){
this._7p3(_Po3);}_eh1(){return this.state;}_7p3(_iY1){this.state=_iY1;for(let i=0;i<this._Dk1.length;++i){const _Mh2=this._Dk1[i];if(_Mh2!=null){_Mh2._7p3(this.state);}}}}class _3p3 extends _6p3{constructor(_wg1,_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1){super();this.type=_kg1;this._8p3=false;this._9p3=false;this.parent=_wg1;this._Eg1=1;this._Fg1=_Lo3;this._Gg1=null;this._yk=null;this._ap3=0;this._bp3=0;this._cp3=0;this._Ig1=_Dg1;this._Y6=0;this.state=_Oo3;this._2h1(_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1);}_Ug1(_vj){this._Zo3(_vj);
}_Tg1(){return this.parent;}_Au2(_0p3){this._OC=_0p3;if(this.state==_Po3){this._dp3();}this._zu2();}_2p3(){if(this.state==_Po3){if(this._ep3()||this._fp3()){this._gp3();}}this._Bu2();}_Xg1(){if(this._hp3()){this._ip3();}this._7p3(_Po3);}_yq(){if(this.state!=_Oo3&&!this._hp3()){this.state=_Ro3;this._Y6=0;}for(let i=0;i<this._Dk1.length;++i){const _Mh2=this._Dk1[i];if(_Mh2!=null){_Mh2._yq();}}}_ip3(){this.state=_Oo3;this._Y6=0;this._cp3=this._ap3;}_qJ(){this._7p3(_Oo3);this._Y6=0;this._cp3=this._ap3;
this._bp3=0;}_2h1(_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1){this._jp3(_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1);this._Eg1=this._kp3(_xg1,_yg1);this._Fg1=_yg1;this._Gg1=(typeof _zg1==="number")?_ak1(_zg1):_zg1;this._yk=[null,null,..._Ag1];this._ap3=_Bg1;this._Ig1=_Cg1;this._qJ();}_4h1(){if(this._Fg1==_Lo3){return _To3(this._Eg1);}return this._Eg1;}_ah1(){return this._Fg1;}_6h1(){return this._bp3;}_8h1(){return this._cp3;}_ch1(){const _lp3=_W6(this._Eg1-this._Y6,0);if(this._Fg1==_Lo3){return _To3(_lp3);}return _lp3;}_gh1(){return this.parent;
}_Rg1(){return this._8p3;}_Vg1(){if(this._8p3){return this;}const _Mh2=super._Vg1();if(_Mh2!=null){return _Mh2;}return null;}_Sg1(__o3){this._9p3=true;super._Sg1(__o3);}_vg1(){return this._9p3;}_dp3(){if(this._Fg1==_Lo3){this._Y6+=this._OC;}else if(this._Fg1==_Mo3){++this._Y6;}}_mp3(){if(this._Y6<this._Eg1){this._Y6-=this._Eg1;}else {this._Y6%=this._Eg1;}}_np3(){++this._bp3;if(this._cp3>0){--this._cp3;}}_hp3(){return(this._cp3==0);}_ep3(){return(this._Y6>=this._Eg1);}_fp3(){if(this._Ig1==_No3&&this._Fg1==_Lo3){
const _op3=this._Eg1-this._Y6;if(_op3>this._OC){return false;}const _pp3=(this._Y6+this._OC)-this._Eg1;if(_op3<_pp3){return true;}}return false;}_gp3(){this._np3();if(this._hp3()){this._Y6=this._Eg1;this.state=_Ro3;}else {this._mp3();}this._qp3();}_qp3(){if(this._Gg1!=null){this._8p3=true;this._Gg1(...this._yk);this._8p3=false;}}_kp3(_xg1,_yg1){if(_yg1==_Lo3){const _Eg1=_W6(_xg1,1e-6);return Math.floor(_Vo3(_Eg1));}else {const _Eg1=_W6(_xg1,1.0);return Math.floor(_Eg1);}}_jp3(_xg1,_yg1,_zg1,_Ag1,_Bg1,_Cg1){
this._rp3(_yg1);this._sp3(_xg1,_yg1);this._tp3(_zg1);this._up3(_Ag1);this._vp3(_Bg1);this._wp3(_Cg1);}_sp3(_xg1,_yg1){switch(_yg1){case _Lo3:{if(_xg1<1e-6){console.warn("Warning: Second-based time source period was too low and will be clipped (min: 1e-6).\n");}break;}case _Mo3:{const frac=_xg1%1;if(_xg1<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 :{_55("Error: Illegal time source unit type: "+_yg1);break;}}}_rp3(_yg1){switch(_yg1){default :_55("Error: Illegal time source unit type: "+_yg1);case _Lo3:case _Mo3:break;}}_tp3(_zg1){if(typeof _zg1!='function'&&(typeof _zg1!='number'||_ak1(_zg1)===null)){_55("Error: Time source callback must be a method or function");}}_up3(_Ag1){if(!Array.isArray(_Ag1)){_55("Error: Time source callback arguments must be an array");}}_vp3(_Bg1){if(_Bg1<-1){_55("Error: Illegal time source repetition value: "+_Bg1);
}}_wp3(_Cg1){switch(_Cg1){default :_55("Error: Illegal time source expiry type: "+_Cg1);case _No3:case _Dg1:break;}}};class _4p3 extends _3p3{constructor(_wg1,_xg1,_yg1,_zg1,_LB){super(_wg1,_xg1,_yg1,_zg1,[],_LB==true?-1:1,_Dg1);this.type=_lg1;this.state=_Po3;}_gp3(){this._np3();if(this._hp3()){this._Y6=this._Eg1;this._9p3=true;}else {this._mp3();}this._qp3();}};var _rg1=new _Xo3(_Io3);var _sg1=new _6p3(_Jo3);var _qh1=new _Xo3(_Ko3);/*@constructor */function _xp3(_YO2){this.__type="[Timeline]";if((_YO2!=null)&&(_YO2!=undefined)){
this.pName=_YO2.pName;this.Events=_YO2.Events;}else {this.pName="";this.Events=[];}}_xp3.prototype._wu2=function(_yp3){if(this.Events.length==0){return 0;}if(_yp3>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>=_yp3){return i;}}return this.Events.length;};_xp3.prototype._xu2=function(_yp3){if(this.Events.length==0){return 0;}if(_yp3<this.Events[0].Time){return -1;}for(var i=this.Events.length-1;i>=0;i--){if(this.Events[i].Time<=_yp3){
return i;}}return -1;};_xp3.prototype._zh1=function(){return this.Events[this.Events.length-1].Time;};/*@constructor */function _GG2(){this.Timelines=[];}_GG2.prototype._Df=function(_YO2){var _Qr=null;if(_YO2!=null){_Qr=new _xp3(_YO2);}this.Timelines[this.Timelines.length]=_Qr;};_GG2.prototype._26=function(_S4){if((_S4<0)||(_S4>=this.Timelines.length)){return undefined;}return this.Timelines[_S4];};_GG2.prototype._2Q2=function(_b4){for(var i=0;i<this.Timelines.length;i++){if(this.Timelines[i].pName==_b4){
return i;}}return -1;};_GG2.prototype._Tf=function(_S4){if((_S4>=0)||(_S4<this.Timelines.length)){this.Timelines[_S4].Events._Tf();}};_GG2.prototype._vh1=function(){var index=this.Timelines.length;var _zH=new _xp3(null);_zH.pName="__newtimeline"+index;this.Timelines[index]=_zH;return index;};_GG2.prototype._Cl=function(_S4){if((_S4>=0)||(_S4<this.Timelines.length)){this.Timelines[_S4]=null;}};_GG2.prototype._yh1=function(_S4,_yp3,_xh1){if((_S4>=0)||(_S4<this.Timelines.length)){var _zH=this.Timelines[_S4];
var _i63=_zH._xu2(_yp3)+1;var _Qg=[];_Qg.Time=_yp3;_Qg.Event=_xh1;_zH.Events.splice(_i63,0,_Qg);}};_GG2.prototype._Ah1=function(_S4,_yp3){if((_S4>=0)||(_S4<this.Timelines.length)){var _zH=this.Timelines[_S4];for(var i=0;i<_zH.Events.length;i++){if(_zH.Events[i].Time==_yp3){_zH.Events.splice(i,1);break;}}}};/*@constructor */function _zp3(){this.pName="";this.moment=0;this._Ap3="";this.pFunc=null;}/*@constructor */function _vH2(_Bp3){if(!_Bp3){this._Kk=[];}else {this._Kk=_Bp3;}}_vH2.prototype._2Q2=function(_7G2){
for(var i=1;i<this._Kk.length;i++){if(this._Kk[i].pFunc==_7G2){return i;}}return -1;};_vH2.prototype._26=function(_74){return this._Kk[_74];};_vH2.prototype._nQ2=function(_Cp3){for(var i=1;i<this._Kk.length;i++){var _A83=this._Kk[i];if(_A83.moment==_Cp3){_xn._b6(_Gx2,i);}}};function yyGetReal(_Pc){if(typeof _Pc==="number")return _Pc;else if(typeof _Pc==="boolean")return _Pc?1:0;else if(typeof _Pc==="string"){_Pc=_Pc.trim();var match=_Pc.match(_OV);if(match!=null){return Number(match);}}else if(typeof _Pc==="object"){
if(_Pc instanceof Long){return _Pc._WF();}else if(!(_Pc instanceof Array)&&!(_Pc instanceof ArrayBuffer)){if(_Pc.id!==undefined){return _Pc.id;}return Number(_Pc);}}else if(typeof _Pc==="function"){var _Dp3=method_get_index(_Pc);if(_Dp3!==undefined){return _Dp3;}}_55("unable to convert "+string(_Pc)+" to a number");return 0;}function yyGetInt64(_Pc){if(typeof _Pc==="number")return Long._KV(_Pc,false);else if(typeof _Pc==="boolean")return Long._KV(_Pc?1:0,false);else if(typeof _Pc==="string"){var match=_Pc.match(_OV);if(match!=null){
return Long._KV(Number(match),false);}}else if(typeof _Pc==="object"){if(_Pc instanceof Long){return _Pc;}else if(!(_Pc instanceof Array)&&!(_Pc instanceof ArrayBuffer)){if(_Pc.id!==undefined){return Long._KV(_Pc.id,false);}return Long._KV(Number(_Pc),false);}}else if(typeof _Pc==="function"){var _Dp3=method_get_index(_Pc);if(_Dp3!==undefined){return _Dp3;}}_55("unable to convert "+string(_Pc)+" to a number");return 0;}function yyGetInt32(_Pc){if(typeof _Pc==="number")return ~~_Pc;else if(typeof _Pc==="boolean")return _Pc?1:0;
else if(typeof _Pc==="string"){var match=_Pc.match(_OV);if(match!=null){return ~~Number(match);}}else if(typeof _Pc==="object"){if(_Pc instanceof Long){return _Pc._i02();}else if(!(_Pc instanceof Array)&&!(_Pc instanceof ArrayBuffer)){if(_Pc.id!==undefined){return _Pc.id;}return ~~Number(_Pc);}}else if(typeof _Pc==="function"){var _Dp3=method_get_index(_Pc);if(_Dp3!==undefined){return _Dp3;}}_55("unable to convert "+string(_Pc)+" to a number");return 0;}function yyGetBool(_Pc){if(typeof _Pc==="boolean")return _Pc;else if(_Pc===undefined)return false;
else if(typeof _Pc==="number")return _Pc>0.5;else if(typeof _Pc==="string"){if(_Pc==="true"){return true;}else if(_Pc==="false"){return false;}else {var match=_Pc.match(_OV);if(match!=null){return Number(match)>0.5;}}}else if(typeof _Pc==="object"){if(_Pc instanceof Long){return _Pc._WF()>0.5;}else if(_Pc.__yyIsGMLObject)return true;else if(!(_Pc instanceof Array)&&!(_Pc instanceof ArrayBuffer)){return Number(_Pc)>0.5;}else if(_Pc instanceof ArrayBuffer){return _Pc!=g_pBuiltIn.pointer_null;}}else if(typeof _Pc==="function"){
return true;}_55("unable to convert "+string(_Pc)+" to a boolean");return false;}var _NF=0;var _MF=1;var _PF=1;var _Ep3=0;function yyGetString(_Pc){if(typeof _Pc==="string"){var _P4="";if(_Ep3>0)_P4+="\"";_P4+=_Pc;if(_Ep3>0)_P4+="\"";return _P4;}else if(_Pc===null){return "null";}else if(_Pc===undefined){return "undefined";}else if(typeof _Pc==="number"){if(isFinite(_Pc)){if((~~_Pc)!=_Pc){return _Pc.toFixed(2);}else {return _Pc.toString();}}else {if(Number.isNaN(_Pc))return "NaN";else if(_Pc<0)return "-inf";else return "inf";
}}else if(typeof _Pc==="boolean"){return(_Pc)?"1":"0";}else if(typeof _Pc==="object"){if(_Pc instanceof Long){return _Pc.toString(10);}else if(_Pc instanceof Array){var _Fp3="";++_Ep3;if(!_SF(_Pc)){_TF(_Pc);_Fp3="[ ";for(var _I6=0;_I6<_Pc.length;++_I6){if(_I6!=0){_Fp3+=",";}_Fp3+=yyGetString(_Pc[_I6]);}_Fp3+=" ]";_UF(_Pc);}else {_Fp3="\"Warning: recursive array found\"";}--_Ep3;return _Fp3;}else {var _Fp3="";if(_Pc["gmltoString"]!=undefined){_Fp3=_Pc._Gp3(_Pc,_Pc);}else {++_Ep3;if(!_SF(_Pc)){_TF(_Pc);var _Fp3="{ ";
var _mh=_Hp3(_Pc,false);for(var _I6=0;_I6<_mh.length;_I6+=2){if(_I6!=0){_Fp3+=", ";}_Fp3+=_mh[_I6];_Fp3+=" : ";_Fp3+=yyGetString(_Pc[_mh[_I6+1]]);}_Fp3+=" }";_UF(_Pc);}else {_Fp3="\"Warning: recursive struct found\"";}--_Ep3;}return _Fp3;}}else if(typeof _Pc==="function"){var _Dp3=method_get_index(_Pc);if(_Dp3!==undefined){return _Dp3.toString();}}return _Pc.toString();}var _Ip3=0;var _Jp3=1;var _Kp3=2;var _Lp3=6;var _Mp3=7;var _Np3=5;var _Op3=3;var _Pp3=4;var _Qp3=8;var _Rp3=9;var _Sp3=10;var _Tp3=11;var _Up3=12;var _Vp3=13;
var _Wp3=14;var _Xp3=15;var _Yp3=0;/*@constructor */function _Zp3(_C03){this.__type="[Array]";this._mP=_C03;this.__p3=[];}function array_get_2D(_fV,_0q3,_1q3){_0q3=yyGetInt32(_0q3);_1q3=yyGetInt32(_1q3);if(!(_fV instanceof Array))_55("array_get_2D() : argument 0 must be an array");if(typeof _0q3!="number")_55("array_get_2D() : index 1 must be a number");if(typeof _1q3!="number")_55("array_get_2D() : index 2 must be a number");if((_0q3<0)||(_0q3>=_fV.length))_55("array_get_2D() : index 1 out of range");if(!(_fV[_0q3] instanceof Array))_55("array_get_2D() : second dimension is not an array");
if((_1q3<0)||(_1q3>=_fV[_0q3].length))_55("array_get_2D() : index 2 out of range");return _fV[_0q3][_1q3];}function array_set_2D(_fV,_0q3,_1q3,_Pc){if(!(_fV instanceof Array))_55("array_set_2D() : argument 0 must be an array");if(typeof _0q3!="number")_55("array_set_2D() : index 1 must be a number");if(typeof _1q3!="number")_55("array_set_2D() : index 2 must be a number");if(!(_fV[_0q3] instanceof Array))_fV[_0q3]=[];_fV[_0q3][_1q3]=_Pc;}function array_set_2D_pre(_fV,_0q3,_1q3,_Pc){_0q3=yyGetInt32(_0q3);
_1q3=yyGetInt32(_1q3);if(!(_fV instanceof Array))_55("array_set_2D_pre() : argument 0 must be an array");if(!(_fV[_0q3] instanceof Array))_fV[_0q3]=[];_fV[_0q3][_1q3]=_Pc;return _Pc;}function array_set_2D_post(_fV,_0q3,_1q3,_Pc){_0q3=yyGetInt32(_0q3);_1q3=yyGetInt32(_1q3);if(!(_fV instanceof Array))_55("array_set_2D_post() : argument 0 must be an array");if(!(_fV[_0q3] instanceof Array))_fV[_0q3]=[];var _P4=_fV[_0q3][_1q3];_fV[_0q3][_1q3]=_Pc;return _P4;}function array_get(_fV,_0q3){_0q3=yyGetInt32(_0q3);if(!(_fV instanceof Array))_55("array_get() : argument 0 must be an array");
if((_0q3<0)||(_0q3>=_fV.length))_55("array_get() : index out of range");return _fV[_0q3];}function array_set(_fV,_0q3,_Pc){_0q3=yyGetInt32(_0q3);if(!(_fV instanceof Array)){_fV=[];}_fV[_0q3]=_Pc;}function array_set_pre(_fV,_0q3,_Pc){if(!(_fV instanceof Array)){_fV=[];}_fV[_0q3]=_Pc;return _Pc;}function array_set_post(_fV,_0q3,_Pc){if(!(_fV instanceof Array)){_fV=[];}var _P4=_fV[_0q3];_fV[_0q3]=_Pc;return _P4;}function __yy_is_nullish(_Pc){return(_Pc==undefined)||(_Pc==null);}function __yy_gml_array_create(_fV){
_fV._2q3=_Yp3;return _fV;}function _LG(){this.__type="Object";this.__yyIsGMLObject=true;}_LG.prototype.toString=function(){return yyGetString(this);};function __yy_gml_object_create(_bk1,_fV){var _D4=new _LG();var _yk=[];_yk[0]=_D4;_yk[1]=_bk1;for(var _I6=2;_I6<arguments.length;++_I6){_yk[_I6]=arguments[_I6];}if(typeof _fV==="number"){_fV=JSON_game.Scripts[_fV-100000];}var _HV=_fV._nj3?_fV._nj3:_fV;if(!_HV.__yyg__is_constructor){_55("target function for 'new' must be a constructor");}_HV.apply(_D4,_yk);return _D4;
}function is_method(_fV){return(_fV instanceof Function)&&(typeof _fV._iU!=='undefined');}function __yyg_call_method(_PE){switch(typeof(_PE)){case "number":_PE=JSON_game.Scripts[_PE-100000];break;case "function":break;case "object":if(_PE instanceof Long)_PE=JSON_game.Scripts[_PE._WF()-100000];else _55("unable to call function "+string(_PE)+" typeof="+typeof(_PE));break;default :_55("unable to call function "+string(_PE)+" typeof="+typeof(_PE));break;}return _PE;}function __yy_method(_em,_PE){_PE=_PE._nj3?_PE._nj3:_PE;
var _P4=_PE;if((_em==undefined)||(_em==null)){_P4=_PE.bind(_em);}else {var _G4={_HV:_PE,_Tm:_em};var _3q3=function(){var _ck1=Array.prototype.slice.call(arguments);_ck1[0]=this._Tm;return this._HV.apply(null,_ck1);};_P4=_3q3.bind(_G4);}_P4._nj3=_PE;_P4._jU=_em;_P4._iU=true;_PE._iU=true;return _P4;}function method(_em,_PE){if(typeof _PE==="number"){_PE=JSON_game.Scripts[_PE-100000];}if(typeof _em=="number"){_em=yyInst(null,null,_em);}if(!(_PE instanceof Function))_55("method : argument needs to be a function");
if(_PE._iU){_PE=_PE._nj3?_PE._nj3:_PE;var _P4=_PE;if((_em==undefined)||(_em==null)){_P4=_PE.bind(_em);}else {var _G4={_HV:_PE,_Tm:_em};var _3q3=function(){var _ck1=Array.prototype.slice.call(arguments);_ck1[0]=this._Tm;return this._HV.apply(null,_ck1);};_P4=_3q3.bind(_G4);}_P4._jU=_em;_P4._nj3=_PE._nj3===undefined?_PE:_PE._nj3;_P4._iU=true;return _P4;}else {var _P4=undefined;if(_PE._nj3)_PE=_PE._nj3;if(_PE.__yy_bothSelfAndOther){_P4=_PE.bind(_em);}else {var _G4={_HV:_PE};var _3q3;if(_PE.__yy_onlySelfNoOther){
_3q3=function(){var _ck1=Array.prototype.slice.call(arguments);_ck1.splice(1,1);return this._HV.apply(null,_ck1);};}else {_3q3=function(){var _ck1=Array.prototype.slice.call(arguments);return this._HV.apply(null,_ck1.slice(2));};}_P4=_3q3.bind(_G4);_P4._jU=_em;_P4._nj3=_PE._nj3===undefined?_PE:_PE._nj3;}return _P4;}}function _4q3(){return this;}var _9k1=[];function _8k1(){if(_9k1._xw1===undefined){var _E4=_4q3();var _E8=0;for(var _SC in _E4){if(_E4.hasOwnProperty(_SC)&&(typeof _E4[_SC]==="function")){_9k1[_E8]=_E4[_SC];
_E4[_SC]._5q3=_E8;++_E8;}}_9k1._xw1=true;}}function _vX2(name){var _6q3=JSON_game.ScriptNames.indexOf("gml_Script_"+name);if(_6q3!=-1){return _6q3+100000;}_8k1();_6q3=JSON_game.ScriptNames.indexOf("gml_GlobalScript_"+name);if(_6q3!=-1){return _6q3+100000;}return null;}function method_get_self(_5H){if((typeof _5H==="function")&&(_5H._jU!==undefined)){for(var i=0;i<_H3._W72.length;++i){var __k=_H3._W72[i];var _7q3=__k._ou2._E8;for(var _7F=0;_7F<_7q3;++_7F){if(__k._ou2._Kk[_7F]==_5H._jU)return __k._ou2._Kk[_7F].id;
}}return _5H._jU;}return undefined;}function method_get_index(_5H){if(typeof _5H==="function"){if(_5H._nj3!==undefined){if(_5H._nj3._5q3!==undefined){return _5H._nj3._5q3;}var _6q3=JSON_game.Scripts.indexOf(_5H._nj3);if(_6q3!=-1){return _6q3+100000;}}else {var _6q3=JSON_game.Scripts.indexOf(_5H);if(_6q3!=-1){return _6q3+100000;}}_8k1();var _8q3=_9k1.indexOf(_5H);if(_8q3!=-1){return _8q3+100000;}}return undefined;}function __yy_gml_array_check(_fV,_8K){if(!(_fV instanceof Array)){_fV=[];_fV._2q3=_Yp3;}else if(_fV._2q3!==_Yp3){
_fV=_fV.slice();_fV._2q3=_Yp3;}return _fV;}function __yy_gml_array_set_owner(_fV){_Yp3=_fV;}function __yy_gml_array_check_index(_fV,_8K){if(!(_8K instanceof Array)&&!(_8K instanceof Float32Array)){_55("trying to index variable which is not an array");}_fV=yyGetInt32(_fV);if((_fV<0)||(_fV>=_8K.length))_55("index out of range");return _fV;}function __yy_gml_array_check_index_set(_fV){_fV=yyGetInt32(_fV);if(_fV<0)_55("index out of range");return _fV;}function __yy_gml_array_check_index_chain(_fV,_8K){if(!(_8K instanceof Array)){
_8K=[];_8K._2q3=_Yp3;}_fV=yyGetInt32(_fV);if(_fV<0)_55("index out of range");var index=_fV;if(!(_8K[index] instanceof Array)){_8K[index]=[];_8K[index]._2q3=_Yp3;}else if(_8K[index]._2q3!=_Yp3){_8K[index]=_8K[index].slice();_8K[index]._2q3=_Yp3;}return index;}function __yy_gml_errCheck(_fV){if(_fV===undefined){_55("undefined value in expression");}else if(_fV instanceof ArrayBuffer){_55("pointer value in expression");}return _fV;}function array_equals(_fV,_8K){if(!Array.isArray(_fV)||!Array.isArray(_8K)){_9q3("array_equals(): both arguments must be arrays");
return false;}if(_fV.length!==_8K.length)return false;for(var x=0;x<_fV.length;x++){if(Array.isArray(_fV[x])||Array.isArray(_8K[x])){if(!array_equals(_fV[x],_8K[x]))return false;}else if((typeof _fV[x])=="number"&&(typeof _8K[x])=="number"){if(!yyfequal(_fV[x],_8K[x]))return false;}else {if(_fV[x]!==_8K[x])return false;}}return true;}function array_create(_7d,__3){if(_7d===undefined){_7d=0;}else {_7d=yyGetInt32(_7d);}var _n5=0;if(arguments.length==2)_n5=__3;var _P4=[];_P4._2q3=_Yp3;for(var i=0;i<_7d;++i){_P4[i]=_n5;
}return _P4;}function array_copy(_4l,_aq3,_rj,_bq3,_Y91){if(_bq3<0){_Y91+=_bq3;_aq3-=_bq3;_bq3=0;}if(_Y91<0){_Y91=0;}if(Array.isArray(_4l)&&Array.isArray(_rj)){_aq3=yyGetInt32(_aq3);_bq3=yyGetInt32(_bq3);_Y91=yyGetInt32(_Y91);if(_4l.length<_aq3){for(var index=_4l.length;index<_aq3+min(_rj.length-_bq3,_Y91);++index){if(_4l[index]==null){_4l[index]=0;}}}for(var _I6=0;_I6<_Y91&&(_bq3+_I6)<_rj.length;++_I6){_4l[_aq3+_I6]=_rj[_bq3+_I6];}}}function array_resize(_8l,_cq3){if(Array.isArray(_8l)){_cq3=yyGetInt32(_cq3);
var _nb2=_8l.length;_8l.length=_cq3;if(_cq3>_nb2){for(var _I6=_nb2;_I6<_cq3;++_I6){_8l[_I6]=0;}}}else {_55("argument0 is not an array");}}function array_push(_8l){if(Array.isArray(_8l)){for(var _I6=1;_I6<arguments.length;++_I6){_8l.push(arguments[_I6]);}}else {_55("argument0 is not an array");}}function array_pop(_8l){if(Array.isArray(_8l)){return _8l.pop();}else {_55("argument0 is not an array");}}function array_insert(_8l,_74){if(Array.isArray(_8l)){_74=yyGetInt32(_74);if(_74>_8l.length){var _dq3=_8l.length;
var _I6;for(_I6=2;_I6<arguments.length;++_I6){_8l[_74+_I6-2]=arguments[_I6];}for(_I6=_74-1;_I6>=_dq3;--_I6){_8l[_I6]=0;}}else {for(var _I6=2;_I6<arguments.length;++_I6){_8l.splice(_74+_I6-2,0,arguments[_I6]);}}}else {_55("argument0 is not an array");}}function array_delete(_8l,_74,_Sp){if(Array.isArray(_8l)){_74=yyGetInt32(_74);if(_74<0){_55("argument1 cannot be negative");}_Sp=yyGetInt32(_Sp);if(_Sp<0){_55("argument2 cannot be negative");}_8l.splice(_74,_Sp);}else {_55("argument0 is not an array");}}
function array_sort(_8l,_eq3){if(Array.isArray(_8l)){switch(typeof _eq3){case "function":_8l.sort(function(_G4,_F4){return _eq3(_eq3._jU,_eq3._jU,_G4,_F4);});break;case "number":var _HV=JSON_game.Scripts[_eq3-100000];var _Qg;if("boundObject" in _HV){_Qg=_HV._jU;}else {_Qg={};}_8l.sort(function(_G4,_F4){return _HV(_Qg,_Qg,_G4,_F4);});break;default :if(yyGetBool(_eq3))_8l.sort(function(_G4,_F4){return yyCompareVal(_G4,_F4);});else _8l.sort(function(_G4,_F4){return yyCompareVal(_F4,_G4);});break;}}else {_55("argument0 is not an array");
}}const _fq3=(_8l,_i51,_Y91)=>{_i51??=0;_Y91??=_8l.length-_i51;for(let i=_Y91-1;i>0;--i){const _17=_i51+Math.floor(Math.random()*(i+1));const _pK=_8l[_i51+i];_8l[_i51+i]=_8l[_17];_8l[_17]=_pK;}};function array_shuffle(_8l,_i51,_Y91){_i51=arguments.length>1?yyGetReal(_i51):0;_Y91=arguments.length>2?yyGetReal(_Y91):_8l.length;var _P4=undefined;if(Array.isArray(_8l)){_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];if(_rd1<0)_i51-=(_qd1-1);_P4=_8l.slice(_i51,_i51+_qd1);_fq3(_P4);
}else {_55("argument0 is not an array");}return _P4;}function array_shuffle_ext(_8l,_i51,_Y91){_i51=arguments.length>1?yyGetReal(_i51):0;_Y91=arguments.length>2?yyGetReal(_Y91):_8l.length;var _P4=undefined;if(Array.isArray(_8l)){_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];if(_rd1<0)_i51-=(_qd1-1);_P4=_8l;if(_qd1==0)return _P4;_fq3(_P4,_i51,_qd1);}else {_55("argument0 is not an array");}return _qd1;}function array_first(_8l){if(!Array.isArray(_8l))_55("argument0 is not an array");
var _Y91=_8l.length;return _Y91==0?undefined:_8l[0];}function array_last(_8l){if(!Array.isArray(_8l))_55("argument0 is not an array");var _Y91=_8l.length;return _Y91==0?undefined:_8l[_Y91-1];}function _vd1(_gq3,_hq3){switch(typeof _gq3){case "function":return _gq3;case "number":return JSON_game.Scripts[_gq3-100000];default :_55("argument"+_hq3+" is not a method or script");}}function _pd1(_a11,_iq3,_jq3){var _i51=Math.min(Math.max(_iq3,-_a11),_a11-1);if(_i51<0)_i51=_a11+_i51;var _rd1=0,_qd1=0;if(_jq3<0){_rd1=-1;
_qd1=Math.min(_i51+1,Math.abs(_jq3));}else {_rd1=1;_qd1=Math.min(_i51+_jq3,_a11)-_i51;}return [_i51,_qd1,_rd1];}function array_create_ext(_7d,_PE){_7d=_7d===undefined?0:yyGetReal(_7d);_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};var _P4=[];_P4._2q3=_Yp3;for(var i=_7d-1;i>=0;--i){_P4[i]=_PE(_Sk,_Sk,i);}return _P4;}function array_find_index(_8l,_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;
_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];while(_qd1>0){if(yyGetBool(_PE(_Sk,_Sk,_8l[_i51],_i51))){return _i51;}_i51+=_rd1;_qd1--;}return -1;}function array_get_index(_8l,_Ln,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];while(_qd1>0){
if(yyCompareVal(_8l[_i51],_Ln,g_GMLMathEpsilon,false)==0){return _i51;}_i51+=_rd1;_qd1--;}return -1;}function array_contains(_8l,_Ln,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];while(_qd1>0){if(yyCompareVal(_8l[_i51],_Ln,g_GMLMathEpsilon,false)==0){return true;}_i51+=_rd1;_qd1--;}return false;}function array_contains_ext(_8l,
_2E,_kq3,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");if(!Array.isArray(_2E))_55("argument1 is not an array");var _lq3=_2E.length;if(_lq3==0)return true;_kq3=_i51=arguments.length>2?yyGetBool(_kq3):false;_i51=arguments.length>3?yyGetReal(_i51):0;_Y91=arguments.length>4?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _mq3=0;while(_qd1>0){var _nq3=false;var current=_8l[_i51];for(var i=0;i<_lq3;++i){if(yyCompareVal(current,
_2E[i],g_GMLMathEpsilon,false)==0){_nq3=true;_mq3+=1;break;}}if(_nq3&&!_kq3){return true;}_i51+=_rd1;_qd1--;}if(_mq3==_lq3){return true;}return false;}function array_any(_8l,_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];while(_qd1>0){if(yyGetBool(_PE(_Sk,_Sk,
_8l[_i51],_i51))){return true;}_i51+=_rd1;_qd1--;}return false;}function array_all(_8l,_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];while(_qd1>0){if(!yyGetBool(_PE(_Sk,_Sk,_8l[_i51],_i51))){return false;}_i51+=_rd1;_qd1--;}return true;}function array_foreach(_8l,
_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];while(_qd1>0){_PE(_Sk,_Sk,_8l[_i51],_i51);_i51+=_rd1;_qd1--;}}function array_reduce(_8l,_PE,_oq3,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{
};_i51=arguments.length>3?yyGetReal(_i51):0;_Y91=arguments.length>4?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];if(_oq3===undefined){_oq3=_8l[_i51];_i51+=_rd1;_qd1--;}while(_qd1>0){_oq3=_PE(_Sk,_Sk,_oq3,_8l[_i51],_i51);_i51+=_rd1;_qd1--;}return _oq3;}function array_filter(_8l,_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;
_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _pq3=[],_l92=0;_pq3._2q3=_Yp3;while(_qd1>0){if(yyGetBool(_PE(_Sk,_Sk,_8l[_i51],_i51))){_pq3[_l92]=_8l[_i51];_l92++;}_i51+=_rd1;_qd1--;}return _pq3;}function array_filter_ext(_8l,_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);
_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _pq3=0,_l92=_i51;while(_qd1>0){if(yyGetBool(_PE(_Sk,_Sk,_8l[_i51],_i51))){_8l[_l92]=_8l[_i51];_l92+=_rd1;_pq3++;}_i51+=_rd1;_qd1--;}return _pq3;}function array_map(_8l,_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];
var _pq3=[],_l92=0;_pq3._2q3=_Yp3;while(_qd1>0){_pq3[_l92]=_PE(_Sk,_Sk,_8l[_i51],_i51);_l92++;_i51+=_rd1;_qd1--;}return _pq3;}function array_map_ext(_8l,_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _pq3=0;while(_qd1>0){_8l[_i51]=_PE(_Sk,_Sk,_8l[_i51],_i51);
_pq3++;_i51+=_rd1;_qd1--;}return _pq3;}function array_copy_while(_8l,_PE,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_PE=_vd1(_PE,1);_Sk="boundObject" in _PE?_PE._jU:{};_i51=arguments.length>2?yyGetReal(_i51):0;_Y91=arguments.length>3?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _pq3=[],_l92=0;_pq3._2q3=_Yp3;while(_qd1>0){if(yyGetBool(_PE(_Sk,_Sk,_8l[_i51],_i51))){_pq3[_l92]=_8l[_i51];_l92++;}else return _pq3;_i51+=_rd1;
_qd1--;}return _pq3;}function array_unique(_8l,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_i51=arguments.length>1?yyGetReal(_i51):0;_Y91=arguments.length>2?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _qq3=new Set();while(_qd1>0){_qq3.add(_8l[_i51]);_i51+=_rd1;_qd1--;}_pq3=Array.from(_qq3);_pq3._2q3=_Yp3;return _pq3;}function array_unique_ext(_8l,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_i51=arguments.length>1?yyGetReal(_i51):0;
_Y91=arguments.length>2?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _l92=_i51,_qq3=new Set();while(_qd1>0){var _RQ=_8l[_i51];if(!_qq3.has(_RQ)){_8l[_l92]=_RQ;_l92+=_rd1;_pq3++;}_qq3.add(_RQ);_i51+=_rd1;_qd1--;}return _qq3.size;}function array_reverse(_8l,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_i51=arguments.length>1?yyGetReal(_i51):0;_Y91=arguments.length>2?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,
_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _pq3=[],_l92=_qd1-1;;_pq3._2q3=_Yp3;while(_qd1>0){_pq3[_l92]=_8l[_i51];_l92--;_i51+=_rd1;_qd1--;}return _pq3;}function array_reverse_ext(_8l,_i51,_Y91){if(!Array.isArray(_8l))_55("argument0 is not an array");_i51=arguments.length>1?yyGetReal(_i51):0;_Y91=arguments.length>2?yyGetReal(_Y91):_8l.length;_od1=_pd1(_8l.length,_i51,_Y91);_i51=_od1[0];var _qd1=_od1[1];var _rd1=_od1[2];var _pq3=_qd1,_r82=_i51,_s82=_i51+(_qd1-1)*_rd1;_qd1=Math.floor(_qd1*.5);
while(_qd1>0){var _sd1=_8l[_r82];_8l[_r82]=_8l[_s82];_8l[_s82]=_sd1;_r82+=_rd1;_s82-=_rd1;_qd1--;}return _pq3;}function _rq3(_8l){if(!Array.isArray(_8l))_55("argument0 is not an array");var _pq3=_8l;for(var _l92=1;_l92<arguments.length;_l92++){if(!Array.isArray(arguments[_l92]))_55("argument"+_l92+" is not an array");_pq3=_pq3.concat(arguments[_l92]);}_pq3._2q3=_Yp3;return _pq3;}function array_union(_8l){if(!Array.isArray(_8l))_55("argument0 is not an array");var _pq3=_8l;for(var _l92=1;_l92<arguments.length;
_l92++){if(!Array.isArray(arguments[_l92]))_55("argument"+_l92+" is not an array");_pq3=_pq3.concat(arguments[_l92]);}var _qq3=new Set(_pq3);_pq3=Array.from(_qq3);_pq3._2q3=_Yp3;return _pq3;}function array_intersection(_8l){var _p7=new Map();for(var _l92=0;_l92<arguments.length;_l92++){_8l=arguments[_l92];if(!Array.isArray(arguments[_l92]))_55("argument"+_l92+" is not an array");_8l=Array.from(new Set(_8l));_8l.forEach(_nO=>{if(_p7.has(_nO))_p7.set(_nO,_p7.get(_nO)+1);else _p7.set(_nO,1);});}var _pq3=[],_l92=0;
_pq3._2q3=_Yp3;_p7.forEach((__3,_5l)=>{if(__3==arguments.length)_pq3[_l92++]=_5l;});return _pq3;}function _bk(_RF2){var _ak="";var size=buffer_tell(_RF2);for(var i=0;i<size;++i){var y=buffer_peek(_RF2,i,_2N);_ak+=_LF2[y>>4]+_LF2[y&0xf];}return _ak;}function _9k(_RF2,__3){if(typeof(__3)=="boolean"){buffer_write(_RF2,_8k,_Vp3);var i=0;if(__3)i=1;buffer_write(_RF2,_EQ2,i);}else if(typeof(__3)=="number"){buffer_write(_RF2,_8k,_Ip3);buffer_write(_RF2,_EQ2,__3);}else if(typeof(__3)=="string"){buffer_write(_RF2,_8k,
_Jp3);var _sq3=_VH(__3);buffer_write(_RF2,_8k,_sq3.length);buffer_write(_RF2,_IQ2,__3);}else if(__3 instanceof Array){buffer_write(_RF2,_8k,_Kp3);var _0j=__3.length;buffer_write(_RF2,_8k,_0j);for(var i=0;i<_0j;i++){_9k(_RF2,__3[i]);}}else {buffer_write(_RF2,_8k,_Np3);}}function _tq3(_oV){return((_oV>='0')&&(_oV<='9'))||((_oV>='A')&&(_oV<='F'))||((_oV>='a')&&(_oV<='f'));}function _uq3(_oV){var _F4=(_oV&0x40)>>6;return(_oV&0x0f)+(_F4*9);}function _fk(__n){var _0j=__n.length;if(_0j===0)return -1;var _vq3=0;for(var i=0;
i<_0j;i+=2){if(_tq3(__n[i])&&_tq3(__n[i+1])){_vq3+=2;}else {break;}}var _6k=-1;if(_vq3>0){var _6k=buffer_create(_vq3/2,_7k,1);var index=0;for(var i=0;i<_vq3;i+=2){var _G4=((_uq3(__n.charCodeAt(i))*16)+_uq3(__n.charCodeAt(i+1)));buffer_poke(_6k,index++,_2N,_G4);}return _6k;}return -1;}function _ik(_RF2,_wq3){var _Y6=buffer_read(_RF2,_hk);if(_Y6===_Vp3){var _F4=buffer_read(_RF2,_EQ2);var _xq3=false;if(_F4!=0)_xq3=true;return _xq3;}else if(_Y6===_Ip3){var _F4=buffer_read(_RF2,_EQ2);return _F4;}else if(_Y6===_Mp3){var _n5=buffer_read(_RF2,
_hk);return _n5;}else if(_Y6===_Sp3||_Y6===_Op3){var _n5=buffer_read(_RF2,_hk);var _p5=buffer_read(_RF2,_hk);return(_p5<<32)|_n5;}else if(_Y6===_Jp3){var _V6=buffer_read(_RF2,_hk);_qi="";for(var i=0;i<_V6;i++){_qi+=String.fromCharCode(buffer_read(_RF2,_2N));}return _WH(_qi);}else if(_Y6===_Kp3){var _z6=[];if(_wq3==3){var _yq3=buffer_read(_RF2,_hk);if(_yq3===1){var _0j=buffer_read(_RF2,_hk);for(var i=0;i<_0j;i++){_z6[i]=_ik(_RF2,_wq3);}}else {for(var _UE=0;_UE<_yq3;_UE++){var _0j=buffer_read(_RF2,_hk);for(var i=0;
i<_0j;i++){var _F4=_ik(_RF2,_wq3);array_set_2D(_z6,_UE,i,_F4);}}}}else {var _0j=buffer_read(_RF2,_hk);for(var i=0;i<_0j;i++){_z6[i]=_ik(_RF2,_wq3);}}return _z6;}else {return undefined;}}function _zq3(_b4){return "\""+_b4.substr(5,_b4.length-7)+"\"";}function _Aq3(_b4){return _b4.substr(5,_b4.length-7);}function variable_global_exists(_nn){var _P4=false;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=g_global_names[g_var2obf[_nn]];}else {_P4=g_global_names[_nn];}if(_P4==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){
_P4=global.hasOwnProperty(g_var2obf[_nn]);}else {_P4=global.hasOwnProperty("gml"+_nn);}}else {_P4=true;}return _P4;}function variable_global_get(_nn){_nn=yyGetString(_nn);var _P4=false;var _SC;var _hU;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=g_global_names[g_var2obf[_nn]];}else {_hU=g_global_names[_nn];}if(_hU==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=global[g_var2obf[_nn]];}else {_P4=global["gml"+_nn];}}else if(_hU[0]){if(_hU[4]!=null){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_hU[4]]!=undefined)){
_SC=g_pBuiltIn[g_var2obf[_hU[4]]];}else {_SC=g_pBuiltIn[_hU[4]];}if(typeof _SC=='function'){_P4=_SC.call(g_pBuiltIn);}}else {_P4=g_pBuiltIn[_nn];}}return _P4;}function variable_global_set(_nn,__3){_nn=yyGetString(_nn);var _P4=false;var _SC;var _hU=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=g_global_names[g_var2obf[_nn]];}else {_hU=g_global_names[_nn];}if(_hU==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){global[g_var2obf[_nn]]=__3;}else {global["gml"+_nn]=__3;
}}else if(_hU[0]){if(_hU[3]!=null){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_hU[3]]!=undefined)){_SC=g_pBuiltIn[g_var2obf[_hU[3]]];}else {_SC=g_pBuiltIn[_hU[3]];}if(typeof _SC=='function'){_SC.call(g_pBuiltIn,__3);}}else {g_pBuiltIn[_nn]=__3;}}}function variable_instance_get(_gg,_nn){var _IF;if((typeof _gg=="object")&&_gg.__yyIsGMLObject){_IF=[_gg];}else {_gg=yyGetInt32(_gg);if(_gg==_lz2){_IF=[global];global.marked=false;global.active=true;_Bq3=true;}else {_IF=GetWithArray(_gg);}}_nn=yyGetString(_nn);
var _P4=undefined;if(_IF!=null&&_IF.length>0){for(var _Tm=0;_Tm<_IF.length;_Tm++){var _Gt=_IF[_Tm];if(_Gt.__yyIsGMLObject||(!_Gt.marked&&_Gt.active)){var _hU=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=g_instance_names[g_var2obf[_nn]];}else {_hU=g_instance_names[_nn];}if(_hU==undefined){var _Cq3;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_Cq3=g_var2obf[_nn];if(_Gt[_Cq3]==undefined){_Cq3="gml"+_nn;}}else {_Cq3="gml"+_nn;}_P4=_Gt[_Cq3];break;}else if(_hU[0]){
if(_hU[4]!=null){var _SC=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_hU[4]]!=undefined)){_SC=_Gt[g_var2obf[_hU[4]]];}else {_SC=_Gt[_hU[4]];}if(typeof _SC=='function'){_P4=_SC.call(_Gt);break;}}else {_P4=_Gt[_nn];break;}}}}}return _P4;}function variable_instance_set(_gg,_nn,__3){var _IF;if((typeof _gg=="object")&&_gg.__yyIsGMLObject){_IF=[_gg];}else {_gg=yyGetInt32(_gg);if(_gg==_lz2){_IF=[global];global.marked=false;global.active=true;_Bq3=true;}else {_IF=GetWithArray(_gg);}}_nn=yyGetString(_nn);
var _P4=false;if(_IF!=null&&_IF.length>0){for(var _Tm=0;_Tm<_IF.length;_Tm++){var _Gt=_IF[_Tm];if(_Gt.__yyIsGMLObject||(!_Gt.marked&&_Gt.active)){var _hU=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=g_instance_names[g_var2obf[_nn]];}else {_hU=g_instance_names[_nn];}if(_hU==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_Gt[g_var2obf[_nn]]=__3;}else {_Gt["gml"+_nn]=__3;}}else if(_hU[1]){if(_hU[3]!=null){var _SC=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_hU[3]]!=undefined)){
_SC=_Gt[g_var2obf[_hU[3]]];}else {_SC=_Gt[_hU[3]];}if(typeof _SC=='function'){_SC.call(_Gt,__3);}}else {_Gt[_nn]=__3;}}return;}}}}function _Dq3(_gg,_nn,__3){var _IF;var _P4;if((typeof _gg=="object")&&_gg.__yyIsGMLObject){_IF=[_gg];}else {_gg=yyGetInt32(_gg);if(_gg==_lz2){_IF=[global];global.marked=false;global.active=true;_Bq3=true;}else {_IF=GetWithArray(_gg);}}_nn=yyGetString(_nn);var _P4=false;if(_IF!=null&&_IF.length>0){for(var _Tm=0;_Tm<_IF.length;_Tm++){var _Gt=_IF[_Tm];if(_Gt.__yyIsGMLObject||(!_Gt.marked&&_Gt.active)){
var _hU=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=g_instance_names[g_var2obf[_nn]];}else {_hU=g_instance_names[_nn];}if(_hU==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=_Gt[g_var2obf[_nn]];_Gt[g_var2obf[_nn]]=__3;}else {_P4=_Gt["gml"+_nn];_Gt["gml"+_nn]=__3;}}else if(_hU[1]){if(_hU[3]!=null){var _SC=undefined;var _E4=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_hU[3]]!=undefined)){_SC=_Gt[g_var2obf[_hU[3]]];}else {_SC=_Gt[_hU[3]];
}if((typeof g_var2obf!=="undefined")&&(g_var2obf[_hU[4]]!=undefined)){_E4=_Gt[g_var2obf[_hU[4]]];}else {_E4=_Gt[_hU[4]];}if(_E4!=null){if(typeof _E4=='function'){_P4=_E4.call(_Gt);}}if(typeof _SC=='function'){_SC.call(_Gt,__3);}}else {_P4=_Gt[_nn];_Gt[_nn]=__3;}}return _P4;}}}return _P4;}function variable_instance_exists(_gg,_nn){var _IF;if((typeof _gg=="object")&&_gg.__yyIsGMLObject){_IF=[_gg];}else {_gg=yyGetInt32(_gg);if(_gg==_lz2){_IF=[global];global.marked=false;global.active=true;_Bq3=true;}else {_IF=GetWithArray(_gg);
}}_nn=yyGetString(_nn);var _P4=false;if(_IF!=null&&_IF.length>0){for(var _Tm=0;!_P4&&(_Tm<_IF.length);_Tm++){var _Gt=_IF[_Tm];if(_Gt.__yyIsGMLObject||(!_Gt.marked&&_Gt.active)){var _hU=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_hU=g_instance_names[g_var2obf[_nn]];}else {_hU=g_instance_names[_nn];}if(_hU==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_P4=g_var2obf[_nn] in _Gt;}else {_P4="gml"+_nn in _Gt;}}else {if(_Gt.__yyIsGMLObject)_P4="gml"+_nn in _Gt;
else _P4=true;}break;}}}return _P4;}function variable_instance_names_count(_gg){var _P4=0;var _IF=null;var _Bq3=false;if((typeof _gg=="object")&&_gg.__yyIsGMLObject){_IF=[_gg];}else {_gg=yyGetInt32(_gg);if(_gg==_lz2){_IF=[global];global.marked=false;global.active=true;_Bq3=true;}else {_IF=GetWithArray(_gg);}}if(_IF!=null&&_IF.length>0){for(var _Tm=0;_Tm<_IF.length;_Tm++){var _Gt=_IF[_Tm];if(_Gt.__yyIsGMLObject||(!_Gt.marked&&_Gt.active)){var _mh=_Hp3(_Gt,_Bq3);return _mh.length/2;}}}return _P4;}function _Hp3(_R92,
_Bq3){var _P4=[];for(var _I6 in _R92){if(_R92.hasOwnProperty(_I6)){if(_I6.startsWith("gml")){_P4.push(_I6.substring(3));_P4.push(_I6);}}}var _Vk=Object.getOwnPropertyNames(_R92);for(var i=0;i<_Vk.length;i++){var prop=_Vk[i];var _XF=prop;if(typeof _YF!="undefined"&&_YF.hasOwnProperty(prop)){_XF=_YF[prop];}var _Eq3=(_Bq3)?g_global_names[_XF]!=undefined:g_instance_names[_XF]!=undefined;if(_R92.__yyIsGMLObject){if(_XF=="__type")continue;if(!_Eq3&&_XF==prop)continue;}else {if(_Eq3)continue;if(_XF.startsWith("__")){
_Eq3=(_Bq3)?g_global_names[_XF.substring(2)]!=undefined:g_instance_names[_XF.substring(2)]!=undefined;if(_Eq3)continue;}if(!_Eq3&&_XF==prop)continue;}if(!_XF.startsWith("gml")){_P4.push(_XF);_P4.push(prop);}}return _P4;}function variable_instance_get_names(_gg){var _P4=[];var _IF=null;var _Bq3=false;if((typeof _gg=="object")&&_gg.__yyIsGMLObject){_IF=[_gg];}else {_gg=yyGetInt32(_gg);if(_gg==_lz2){_IF=[global];global.marked=false;global.active=true;_Bq3=true;}else {_IF=GetWithArray(_gg);}}if(_IF!=null){for(var _Tm=0;
_Tm<_IF.length;_Tm++){var _Gt=_IF[_Tm];if(_Gt.__yyIsGMLObject||(!_Gt.marked&&_Gt.active)){var _mh=_Hp3(_Gt,_Bq3);for(var _I6=0;_I6<_mh.length;_I6+=2){_P4.push(_mh[_I6]);}return _P4;}}}return _P4;}function __yy_gml_copy_prototype(_4l,_vj){Object.setPrototypeOf(_4l,_vj);}function variable_struct_exists(_gg,_b4){return variable_instance_exists(_gg,_b4);}function variable_struct_set(_gg,_b4,__3){return variable_instance_set(_gg,_b4,__3);}function variable_struct_set_pre(_gg,_b4,__3){variable_instance_set(_gg,_b4,
__3);return __3;}function variable_struct_set_post(_gg,_b4,__3){return _Dq3(_gg,_b4,__3);}function variable_struct_get(_gg,_b4){return variable_instance_get(_gg,_b4);}function variable_struct_get_names(_gg){return variable_instance_get_names(_gg);}function variable_struct_names_count(_gg){return variable_instance_names_count(_gg);}function variable_struct_remove(_gg,_nn){var _IF;if((typeof _gg=="object")&&_gg.__yyIsGMLObject){_IF=[_gg];}else {_gg=yyGetInt32(_gg);if(_gg==_lz2){_IF=[global];global.marked=false;
global.active=true;_Bq3=true;}else {_IF=GetWithArray(_gg);}}_nn=yyGetString(_nn);if(_IF!=null&&_IF.length>0){for(var _Tm=0;_Tm<_IF.length;_Tm++){var _Gt=_IF[_Tm];if(_Gt.__yyIsGMLObject||(!_Gt.marked&&_Gt.active)){var _Cq3;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_nn]!=undefined)){_Cq3=g_var2obf[_nn];}else {_Cq3="gml"+_nn;}if(Object.prototype.hasOwnProperty.call(_Gt,_Cq3)){delete _Gt[_Cq3];}else if(Object.prototype.hasOwnProperty.call(_Gt,"gml"+_nn)){delete _Gt["gml"+_nn];}else if(Object.prototype.hasOwnProperty.call(_Gt,
_nn)){delete _Gt[_nn];}}}}}function vertex_format_begin(){_Fb("vertex_format_begin");}function vertex_format_end(){_Fb("vertex_format_end");}function vertex_format_delete(_Fq3){_Fb("vertex_format_delete");}function vertex_format_add_position(){_Fb("vertex_format_add_position");}function vertex_format_add_position_3d(){_Fb("vertex_format_add_position_3d");}function vertex_format_add_colour(){_Fb("vertex_format_add_colour");}function vertex_format_add_color(){_Fb("vertex_format_add_color");}function vertex_format_add_normal(){
_Fb("vertex_format_add_normal");}function vertex_format_add_texcoord(){_Fb("vertex_format_add_texcoord");}function vertex_format_add_textcoord(){_Fb("vertex_format_add_textcoord");}function vertex_format_add_custom(type,_qd){_Fb("vertex_format_add_custom");}var _Gq3=null;function _Hq3(){vertex_format_begin=_Iq3;vertex_format_end=_Jq3;vertex_format_delete=_Kq3;vertex_format_add_position=_Lq3;vertex_format_add_position_3d=_Mq3;vertex_format_add_colour=_Nq3;vertex_format_add_color=_Nq3;vertex_format_add_normal=_Oq3;
vertex_format_add_texcoord=_Pq3;vertex_format_add_textcoord=_Pq3;vertex_format_add_custom=_Qq3;}function _Iq3(){if(_Gq3!=null){debug("ERROR vertex_format_begin: Vertex format is already under construction");}else {_Gq3=new _yS1();}}function _Lq3(){if(_Gq3==null){debug("ERROR vertex_format_add_position: No vertex format is under construction");}else {_Gq3._N_1();}}function _Mq3(){if(_Gq3==null){debug("ERROR vertex_format_add_position_3d: No vertex format is under construction");}else {_Gq3._JS1();}}function _Nq3(){
if(_Gq3==null){debug("ERROR vertex_format_add_colour: No vertex format is under construction");}else {_Gq3._KS1();}}function _Oq3(){if(_Gq3==null){debug("ERROR vertex_format_add_normal: No vertex format is under construction");}else {_Gq3._MS1();}}function _Pq3(){if(_Gq3==null){debug("ERROR vertex_format_add_textcoord: No vertex format is under construction");}else {_Gq3._LS1();}}function _Qq3(_ld,_kd){if(_Gq3==null){debug("ERROR vertex_format_add_normal: No vertex format is under construction");}else {
_Gq3._O_1(yyGetInt32(_ld),yyGetInt32(_kd));}}function _Jq3(){if(_Gq3==null){debug("ERROR vertex_format_end: No vertex format under construction");return -1;}var _OY1=_s8._PS1(_Gq3);_Gq3=null;return _OY1;}function _Kq3(_Rq3){debug("WARNING vertex_format_delete not implemented on HTML5 (System shares vertex formats but doesn't reference count)");}var _Sq3=false;function video_get_format(){var video_format_rgba=0;var video_format_yuv=1;return video_format_rgba;}function video_open(path){_Sq3=false;var _Tq3=document.querySelector("canvas");
if(_Tq3._Uq3==null){_Tq3._Uq3=document.createElement('video');}else {_Tq3._Uq3.pause();}const _Vq3=_Tq3._Uq3;var _Wq3=_671(path);var playing=false;var _Xq3=false;_Vq3.muted=false;_Vq3.src=_Wq3;_Vq3.addEventListener('ended',function(){var map=ds_map_create();ds_map_add(map,"type","video_end");g_pBuiltIn.async_load=map;_H3._I3(_ox2,0);ds_map_destroy(map);});function _Yq3(){var _h71="mousedown";var _i71="mouseup";if("ontouchstart" in window){_h71="touchstart";_i71="touchend";}if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){
_h71="pointerdown";_i71="pointerup";}var _Zq3=function(){var _Tq3=document.querySelector("canvas");const _Vq3=_Tq3._Uq3;if(_Vq3!=null)_Vq3.muted=false;};document.body.addEventListener(_h71,_Zq3,{once:true});document.body.addEventListener(_i71,_Zq3,{once:true});}if(_Vq3.requestVideoFrameCallback===undefined){console.log("requestVideoFrameCallback not supported by browser, video playback likely to be poor");_Vq3.addEventListener('playing',function(){playing=true;console.log("Video playing event called");
__q3();var map=ds_map_create();ds_map_add(map,"type","video_start");g_pBuiltIn.async_load=map;_H3._I3(_ox2,0);ds_map_destroy(map);},true);_Vq3.addEventListener('timeupdate',function(){_Xq3=true;__q3();},true);_Vq3.load();var _0r3=_Vq3.play();if(_0r3!==undefined){_0r3.then(_JY=>{}).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");_Vq3.muted=true;_Vq3.play();_Yq3();});}function __q3(){if(playing&&_Xq3){
if(_Tq3._1r3==null){_Tq3._1r3=document.createElement('canvas');_Tq3._1r3.style.cssText="position:fixed; top:1px; left:1px; width:1px; height:1px";_Tq3._1r3.width=_Vq3.videoWidth;_Tq3._1r3.height=_Vq3.videoHeight;document.body.appendChild(_Tq3._1r3);_Tq3._2r3=_Tq3._1r3.getContext('2d',{alpha:false,_3r3:true,antialias:true,_4r3:'low-power',preserveDrawingBuffer:true});}else {_Tq3._1r3.width=_Vq3.videoWidth;_Tq3._1r3.height=_Vq3.videoHeight;}_Tq3._2r3.drawImage(_Tq3._Uq3,0,0);}}}else {_Vq3.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;_H3._I3(_ox2,0);ds_map_destroy(map);},true);const _5r3=(now,_6r3)=>{if(_Tq3._1r3==null){_Tq3._1r3=document.createElement('canvas');_Tq3._1r3.style.cssText="position:fixed; top:1px; left:1px; width:1px; height:1px";_Tq3._1r3.width=_Vq3.videoWidth;_Tq3._1r3.height=_Vq3.videoHeight;document.body.appendChild(_Tq3._1r3);_Tq3._2r3=_Tq3._1r3.getContext('2d',
{alpha:false,_3r3:true,antialias:true,_4r3:'low-power',preserveDrawingBuffer:true});}else {_Tq3._1r3.width=_Vq3.videoWidth;_Tq3._1r3.height=_Vq3.videoHeight;}if((_Tq3._Uq3!=null)&&(_Tq3._2r3!=null))_Tq3._2r3.drawImage(_Tq3._Uq3,0,0);if(_Tq3._Uq3!=null){if(_Tq3._Uq3.src!=null)_Tq3._Uq3.requestVideoFrameCallback(_5r3);else console.log("stopping video player callback check");}};_Vq3.requestVideoFrameCallback(_5r3);_Vq3.load();var _0r3=_Vq3.play();if(_0r3!==undefined){_0r3.then(_JY=>{}).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");
_Vq3.muted=true;_Vq3.play();_Yq3();});}}}function video_close(){_Sq3=true;var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){_Tq3._Uq3.pause();console.log("Pausing video player");_Tq3._Uq3.removeAttribute('src');_Tq3._Uq3.load();}}function _7r3(){if(_Sq3)return -1;var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){if(_Tq3._Uq3.paused)return -1;if(!_Tq3._Uq3.ended)return 0;}return -1;}var _8r3=-4;var _9r3=-4;var _ar3=-4;var _br3=-4;function _cr3(_dr3,width,height){var _Tq3=document.querySelector("canvas");
if(_Tq3._2r3!=null){var _er3=_Tq3._2r3.getImageData(0,0,width,height);var _3T2=new Uint8Array(_er3.data.buffer);var _9R2=new Uint8Array(_dr3.__M);var _WS2=_3T2.byteLength;if(_9R2.byteLength>=_WS2){var i;for(i=0;i<_WS2;i++){_9R2[i]=_3T2[i];}_dr3._fR2(_WS2);}else return 0;return 1;}else console.log("Not rendering video as context is null");return 0;}function _fr3(){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null)return _Tq3._Uq3.videoWidth;return 0;}function _gr3(){var _Tq3=document.querySelector("canvas");
if(_Tq3._Uq3!=null)return _Tq3._Uq3.videoHeight;return 0;}function video_draw(){if(_7r3()!=0){if(surface_exists(_8r3))surface_free(_8r3,true);_8r3=-1;if(_9r3>=0){buffer_delete(_9r3);}_9r3=-1;_ar3=-1;_br3=-1;var _P4=[];_P4[0]=_7r3();_P4[1]=-1;_P4[2]=-1;return _P4;}else {if(!surface_exists(_8r3)){_ar3=1;_br3=1;_8r3=surface_create(1,1);if(_9r3>=0){buffer_delete(_9r3);}_9r3=buffer_create(1*1*4,_2Z,1);}if(_fr3()!=0&&_gr3()!=0){if(_ar3!=_fr3()||_br3!=_gr3()){_ar3=_fr3();_br3=_gr3();if(surface_exists(_8r3)){
surface_free(_8r3,true);}if(_9r3>=0){buffer_delete(_9r3);}_8r3=surface_create(_ar3,_br3);_9r3=buffer_create(_ar3*_br3*4,_2Z,1);}}var _Ha=_XM._26(_9r3);if(!_cr3(_Ha,_ar3,_br3)){var _P4=[];_P4[0]=-1;_P4[1]=-1;_P4[2]=-1;return _P4;}buffer_set_surface(_9r3,_8r3,0);var _P4=[];_P4[0]=_7r3();_P4[1]=_8r3;_P4[2]=-1;return _P4;}}function video_set_volume(_hr3){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){_Tq3._Uq3.volume=_hr3;}}function video_pause(){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){
_Tq3._Uq3.pause();}}function video_resume(){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){_Tq3._Uq3.play();}}function video_enable_loop(loop){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null)_Tq3._Uq3.loop=loop;}function video_seek_to(_Lk){var _ir3=_Lk/1000.0;var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){_Tq3._Uq3.currentTime=_ir3;}}function video_get_duration(){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){if(!isNaN(_Tq3._Uq3.duration))return _Tq3._Uq3.duration*1000;
}return 0;}function video_get_position(){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){return _Tq3._Uq3.currentTime*1000;}return 0;}function video_get_status(){if(_Sq3)return 0;var _Tq3=document.querySelector("canvas");var video_status_closed=0;var video_status_preparing=1;var video_status_playing=2;var video_status_paused=3;if(_Tq3._Uq3!=null){if(_Tq3._Uq3.ended)return video_status_closed;if(_Tq3._Uq3.paused)return video_status_paused;if(_Tq3._Uq3.readyState<_Tq3._Uq3._jr3)return video_status_preparing;
return video_status_playing;}return video_status_closed;}function video_is_looping(){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){return _Tq3._Uq3.loop;}return 0;}function video_get_volume(){var _Tq3=document.querySelector("canvas");if(_Tq3._Uq3!=null){return _Tq3._Uq3.volume;}return 0;}/*@constructor */function _WF2(){this.__type="[View]";this.visible=false;this._1e1=0;this._3e1=0;this._5e1=640;this._7e1=480;this._Yc3=0;this._Zc3=0;this.__c3=640;this._0d3=480;this.angle=0;this._9g=0;this._bg=0;
this._ag=0;this._cg=0;this._hg3=640;this._ig3=480;this._jg3=1;this._kg3=1;this.hborder=32;this.vborder=32;this.hspeed=-1;this.vspeed=-1;this._Sm=-1;this._aM=-1;this._C31=-1;this._Iq2=-1;}_WF2.prototype._qj=function(_rj){this.visible=_rj.visible;this._1e1=_rj._1e1;this._3e1=_rj._3e1;this._5e1=_rj._5e1;this._7e1=_rj._7e1;this._Yc3=_rj._Yc3;this._Zc3=_rj._Zc3;this.__c3=_rj.__c3;this._0d3=_rj._0d3;this.angle=_rj.angle;this._9g=_rj._9g;this._bg=_rj._bg;this._ag=_rj._ag;this._cg=_rj._cg;this._hg3=_rj._hg3;
this._ig3=_rj._ig3;this._jg3=_rj._jg3;this._kg3=_rj._kg3;this.hborder=_rj.hborder;this.vborder=_rj.vborder;this.hspeed=_rj.hspeed;this.vspeed=_rj.vspeed;this._Sm=_rj._Sm;this._aM=_rj._aM;this._C31=_rj._C31;};_WF2.prototype._kr3=function(_Q5,_R5,_lr3){var _Z23=_8g;_Q5=(_Q5-_Z23.left-this._9g)/(_Z23.scaleX||1);_R5=(_R5-_Z23.top-this._bg)/(_Z23.scaleY||1);if(_U3){var _ys2=_qs2._Uq2(this._C31);if(_ys2==null)return 0;var _mr3=_Q5/this._hg3;var _nr3=_R5/this._ig3;_mr3=_mr3*2.0-1.0;_nr3=_nr3*2.0-1.0;var _or3=_ys2._Rr2();
var out;if(_lr3){out=((_mr3*_or3._K6[_vA])+(_nr3*_or3._K6[_wA])+_or3._K6[_yA]);}else {out=((_mr3*_or3._K6[_zA])+(_nr3*_or3._K6[_qz])+_or3._K6[_BA]);}return Math.floor(out);}else {if(_lr3){_Q5/=this._jg3;return _Q5+this._1e1;}else {_R5/=this._kg3;return _R5+this._3e1;}}};_WF2.prototype._dg=function(_Q5,_R5){return this._kr3(_Q5,_R5,true);};_WF2.prototype._eg=function(_Q5,_R5){return this._kr3(_Q5,_R5,false);};function _Ic3(_pr3){var _hz=new _WF2();if(_pr3.visible!=undefined)_hz.visible=_pr3.visible;if(_pr3.xview!=undefined)_hz._1e1=_pr3.xview;
if(_pr3.yview!=undefined)_hz._3e1=_pr3.yview;if(_pr3.wview!=undefined)_hz._5e1=_pr3.wview;if(_pr3.hview!=undefined)_hz._7e1=_pr3.hview;if(_pr3.xport!=undefined)_hz._Yc3=_pr3.xport;if(_pr3.yport!=undefined)_hz._Zc3=_pr3.yport;if(_pr3.wport!=undefined)_hz.__c3=_pr3.wport;if(_pr3.hport!=undefined)_hz._0d3=_pr3.hport;if(_pr3.angle!=undefined)_hz._0d3=_pr3.angle;if(_pr3.hborder!=undefined)_hz.hborder=_pr3.hborder;if(_pr3.vborder!=undefined)_hz.vborder=_pr3.vborder;if(_pr3.hspeed!=undefined)_hz.hspeed=_pr3.hspeed;
if(_pr3.vspeed!=undefined)_hz.vspeed=_pr3.vspeed;if(_pr3.index!=undefined)_hz._Sm=_pr3.index;if(_U3){if(_pr3._C31!==undefined&&_pr3._C31>=0){_hz._C31=_qs2._Sq2(_pr3._C31);}else {var _br2=_qs2._dr2(_hz);_br2._Nq2(true);_hz._C31=_br2._Tr2();}}return _hz;}/*@constructor */function _qr3(){this.__yyIsGMLObject=true;this.__type="[weakref]";this._rr3=null;this._sr3=function(){if(this._rr3==null){return undefined;}else if(this._rr3.deref()==undefined){return false;}return true;};this._tr3=function(_ur3){if(typeof WeakRef==="undefined"){
this._rr3=null;}else {this._rr3=new WeakRef(_ur3);}};Object.defineProperties(this,{gmlref:{enumerable:true,get :function(){return(this._rr3==null)?undefined:((this._rr3.deref()==undefined)?undefined:this._rr3.deref());}}});}function weak_ref_create(_ur3){if(_ur3!=undefined){if((typeof(_ur3)=="object")||(typeof(_ur3)=="function")){var _vr3=new _qr3();_vr3._tr3(_ur3);return _vr3;}else {_55("invalid argument passed to weak_ref_create");}}else {_55("incorrect number of arguments to weak_ref_create");}return undefined;
}function weak_ref_alive(_wr3){if(_wr3!=undefined){if((typeof(_wr3)=="object")&&(_wr3.__type!=undefined)&&(_wr3.__type=="[weakref]")){return _wr3._sr3();}return undefined;}else {_55("incorrect number of arguments to weak_ref_alive");}}function weak_ref_any_alive(_8l,_74,_Y91){if(_8l==undefined){_55("incorrect number of arguments to weak_ref_any_alive");}else if(Array.isArray(_8l)==false){_55("first argument to weak_ref_any_alive is not an array");}else {var index=0;var length=_8l.length;if(_74!=undefined){
index=_74;}if(_Y91!=undefined){length=_Y91;}if(index<0){length+=index;index=0;}if(index>=_8l.length){return;}if((index+length)>=_8l.length){length=_8l.length-index;}if(length<=0){return;}if(length>0){var _rb=false;var end=index+length;for(var i=index;i<end;i++){var _7l=_8l[i];if((typeof(_7l)=="object")&&(_7l.__type!=undefined)&&(_7l.__type=="[weakref]")){var _xr3=_7l._sr3();if(_xr3==undefined){return undefined;}else if(_7l._sr3()==true){_rb=true;}}else {return undefined;}}return _rb;}}return undefined;}var _s8=null;
var _yr3=null;var _zr3=null;var _dz=true;var __y=false,_ez=false,_xb3=_ca._da,_yb3=_ca._fa,_yB=0,_AB=0.0,_Ar3=[],_az={_Iu:true,_Ju:true,_Ku:true,alpha:true};var _Va=0.0,_1z=true,_3z=true,_5z=true,_Br3=_ca._yW1;var _Oz=null,_Vz=null,_Sz=null,_Xz=null,_1A=null,_Tz=[],_Yz=[];var _Uz=0;var _Zz=1;var _BY2=false,_PL=false,_RL=1.0;var _7U2=[];var _OA=null,_Cr3=null,_Dr3=0;var _YL=0,_ZL=1,_kA=2,_Er3=16;var _Hc=16384;var _Fr3=36,_Gr3=[],_Hr3=[];var _Ir3=0.5;var _vS1=null;function _D_2(){_Kw();_Hq3();_ET2();_cc();_4L(_Fr3);
_Nc=_Jr3;_ie1=_Kr3;_ge1=_Lr3;_MY2=_Mr3;_2_2=_Nr3;_XJ=_Or3;_KY2=_Pr3;__Z2=_Qr3;_ZJ=_Rr3;_5K=_Sr3;_QZ2=_Tr3;_1_2=_Ur3;_3_2=_Vr3;_0_2=_Wr3;_103=_Xr3;_os=_Yr3;_ss=_Zr3;_zs=__r3;_g03=_0s3;_4_2=_1s3;_5_2=_2s3;_ws=_3s3;draw_rectangle=_4s3;draw_roundrect_color_ext=_5s3;draw_rectangle_color=_6s3;draw_roundrect_colour_ext=_5s3;draw_rectangle_colour=_6s3;_Yp=_7s3;draw_point=_8s3;draw_getpixel=_9s3;draw_getpixel_ext=_as3;draw_triangle=_bs3;draw_triangle_color=_cs3;draw_ellipse_color=_ds3;draw_circle_color=_es3;
draw_point_color=_fs3;draw_triangle_colour=_cs3;draw_ellipse_colour=_ds3;draw_circle_colour=_es3;draw_point_colour=_fs3;draw_line=_gs3;draw_line_width=_hs3;draw_line_width_color=_is3;draw_line_width_colour=_is3;draw_clear_alpha=_js3;draw_set_color=_ks3;draw_set_colour=_ks3;draw_set_alpha=_ls3;_pL=_ms3;_zi1=_ns3;draw_surface=_os3;draw_path=_ps3;mp_grid_draw=_qs3;_s8._rb1=_rs3;surface_create=_ss3;surface_free=_ts3;surface_getpixel=_us3;surface_getpixel_ext=_vs3;surface_copy=_ws3;surface_copy_part=_xs3;
_Vr=_ys3;_5s=_zs3;_lb1=_As3;sprite_create_from_surface=_Bs3;sprite_add_from_surface=_Cs3;_Ks=_Ds3;_U41=_Es3;_V41=_Fs3;_W41=_Gs3;_X41=_Hs3;_Y41=_Is3;_Z41=_Js3;__41=_Ks3;_051=_Ls3;_151=_Ms3;_251=_Ns3;_351=_Os3;_451=_Ps3;_551=_Qs3;_651=_Rs3;_751=_Ss3;shaders_are_supported=_Ts3;_851=_Us3;_eM2=_Vs3;_yz=_Ws3;_fM2=_Xs3;_h_2=_Ys3;_gM2=_Zs3;_xz=__s3;texture_get_width=_0t3;texture_get_height=_1t3;texture_get_uvs=_2t3;_QN2=_3t3;_RN2=_4t3;_SN2=_5t3;_TN2=_6t3;buffer_get_surface=_7t3;buffer_set_surface=_8t3;_9t3();
}function _at3(_VR1){var options={_FS1:((_xD.Swfs!==undefined)?true:false),_GS1:(_xD.Options.WebGLPreserveDrawingBuffer?true:false),_oS1:_hF2};_s8=new _UR1(_VR1,options);if(!_s8._cS1){_s8=null;return false;}if(!_bt3())return false;if(!_ct3())return false;if(!_dt3())return false;_Cr3=[];for(var i=0;i<_Er3;i++){_Cr3[i]=new _Zy();}_Dr3=-1;_rz=1;_oe1=new _Zy();_5F2=new _Zy();var _et3=_s8._2U1();for(var i=0;i<_et3;i++){_Ar3[i]=false;}return true;}function _4L(_eH){var _I6=_eH;if(_I6<4)_I6=4;if(_I6>64)_I6=64;_I6=4*((_I6/4)|0);
_Fr3=_I6;_Gr3[0]=1;_Hr3[0]=0;for(var i=1;i<_I6;i++){_Gr3[i]=Math.cos(i*2*Math.PI/_I6);_Hr3[i]=Math.sin(i*2*Math.PI/_I6);}_Gr3[_I6]=1;_Hr3[_I6]=0;}function _6L(){return _Fr3;}function _9t3(){_Tu(0,0xff000000,0,0);_QN2(0);_TN2(0);_ft3();}function _bt3(){return _gt3();}function _ct3(){var _ht3=document.createElement(_eE);_ht3._Xc=_ht3.width=16;_ht3._Yc=_ht3.height=16;_ht3.complete=true;_ht3._Md1=false;_ht3.name="";_ht3._4a=_ht3.getContext('2d');_ht3._4a.save();_ht3._4a.setTransform(1,0,0,1,0,0);_ht3._4a.globalAlpha=1;
_ht3._4a.fillStyle='#ffffff';_ht3._4a.fillRect(0,0,16,16);_ht3._4a.restore();var __4=new _3s();__4.x=0;__4.y=0;__4.w=15;__4.h=15;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=15;__4.CropHeight=15;__4.ow=__4.w;__4.oh=__4.h;__4.tp=-1;__4._95=_ht3;__4._D8=[];__4._F8=1;__4._E8=0;_Ca(__4);_s8._uV1(__4._95._Ba);return true;}function _dt3(){_Oz=new Float32Array(_ca._BV1*4);_Vz=new Float32Array(_ca._BV1*4);_Sz=new Float32Array(_ca._BV1*4);_Xz=new Float32Array(4);_Xz[0]=1;_Xz[1]=1;_Xz[2]=1;_Xz[3]=1;var _Nz;for(var i=0;
i<_ca._BV1;i++){_Sz[i]=0;_Nz=i*4;_Oz[_Nz+0]=0;_Oz[_Nz+1]=0;_Oz[_Nz+2]=0;_Oz[_Nz+3]=0;_Vz[_Nz+0]=0;_Vz[_Nz+1]=0;_Vz[_Nz+2]=0;_Vz[_Nz+3]=0;_Yz[i]=false;}return true;}function _ft3(){var _it3=sprite_get_texture;sprite_get_texture=function(_3c1,_jt3){var _95=_it3(_3c1,_jt3);if(_95&&!_95._Ec._Ba){_Ca(_95._Fc);}return _95;};var _kt3=_Us;_Us=function(_S4){var _95=_kt3(_S4);if(_95&&!_95._Ec._Ba){_Ca(_95._Fc);}return _95;};_Ur3();}function _Ur3(){_s8._ET1();_s8._fz(_gz());_s8._ZT1(_yB,_AB);_s8._2A(_1A);_s8._0A(_Xz);
_s8._bz(_az._Iu,_az._Ju,_az._Ku,_az.alpha);for(var i=0;i<_ca._BV1;i++){_s8._Wz(i,_Vz.subarray(i*4,(i+1)*4),_Oz.subarray(i*4,(i+1)*4),_Sz.subarray(i*4,(i+1)*4));}}function _Vr3(){_s8._FT1();}function _Rr3(_lt3){if(_lt3){_yr3={};if(_lt3._ug3){_yr3.__y=__y;_yr3._ez=_ez;_yr3._1A=new Float32Array(_1A);if(_U3){_yr3._5z=gpu_get_cullmode();_yr3._1z=gpu_get_ztestenable();_yr3._3z=gpu_get_zwriteenable();}__y=false;_ez=false;_Tu(0,0xff000000,0,0);_s8._0z(false);_s8._4z(false);_s8._2z(false);_s8._fz(_gz());}if(_lt3._vg3){
_yr3._mt3=_s8._oa._pa(_ca._qa);_yr3._nt3=_s8._oa._pa(_ca._ra);_s8._IT1(_ca._ga,_ca._iB);}}}function _Sr3(_ot3){if(_yr3&&_ot3){if(_ot3._xg3){__y=_yr3.__y;_ez=_yr3._ez;_1A=new Float32Array(_yr3._1A);_s8._2A(_1A);if(__y||_U3){if(_U3){_s8._4z(_yr3._5z);_s8._0z(_yr3._1z);_s8._2z(_yr3._3z);}else {_s8._0z(_1z);_s8._2z(_3z);_s8._4z(_5z);}}_s8._fz(_gz());}if(_ot3._yg3){_s8._IT1(_yr3._mt3,_yr3._nt3);}_yr3=null;}}function _gz(){var __S1=undefined;if(_ez){__S1=_s8._eS1;}else {__S1=_s8._dS1;}return __S1;}function _Nr3(_zm,
_Am,_U_2,_V_2){var _pt3=_6i1;var _qt3=_7i1;_5F2._9I2();var w=_6i1/_zm;var h=_7i1/_Am;_5F2._lA((_pt3*-0.5+_U_2)/_zm,(_qt3*-0.5+_V_2)/_Am,16000);_oe1._uz(w,-h*_rz,1.0,32000.0);_jA(_YL,_5F2);_jA(_ZL,_oe1);}function _Kr3(_W_2,_X_2,_Y_2,_Z_2,_U5){if(!__y){_T_2(_W_2,_X_2,_Y_2,_Z_2,_U5);}else {var angle=-_U5*(Math.PI/180.0);var __f2=new _iz((_W_2+_Y_2/2.0),(_X_2+_Z_2/2.0),-_Y_2);var _7g2=new _iz((_W_2+_Y_2/2.0),(_X_2+_Z_2/2.0),0.0);var _fg2=new _iz(Math.sin(angle),Math.cos(angle),0.0);_5F2._lz(__f2,_7g2,_fg2);if(false==_dz){
_oe1._uz(_Y_2,-_Z_2*_rz,1.0,32000.0);}else {_oe1._vz(1.0,_Z_2/_Y_2,1.0,32000.0);}_oe1._K6[_qz]*=_rz;}_jA(_YL,_5F2);_jA(_ZL,_oe1);_jA(_kA,_OA[_kA]);_2e1=_W_2;_4e1=_X_2;_6e1=_Y_2;_8e1=_Z_2;}function _Lr3(_US1,_VS1,_WS1,_XS1){_1K=_US1;_2K=_VS1;_3K=_WS1;_4K=_XS1;var _47=_VS1;if(_rz==1){_47=window_get_height()-(_XS1+_VS1);}_s8._TS1(_US1,_47,_WS1,_XS1);_s8._je1();}function _Or3(_0d){_s8._je1();_s8._RU1(true,true,true,_Nc(_0d)|0xff000000);}function _js3(_0d,_A9){_s8._je1();_A9=yyGetReal(_A9);if(_A9>1)_A9=1;
if(_A9<0)_A9=0;var _L4=((_A9*255.0)<<24)|_Nc(yyGetInt32(_0d));_s8._RU1(true,true,false,_L4);}function _Jr3(_0d){return(_0d&0x00ffffff);}function _ls3(_A9){if(_A9<0){_A9=0;}if(_A9>1){_A9=1;}_Kc=_A9;}function _Mr3(_6m){if(arguments.length>0){var __J=arguments[0];}else {}}function _Pr3(_Q5,_R5,_V4,_W4,_U5){}function _Qr3(_aw){}function _Tr3(_ao,__n,_Q5,_R5,_2o,_3o,_U5,_0d,_A9){if(!_zr3){var _j7=1024;var _k7=1024;var _h5=___2(_j7,_k7);var __4=new _3s();__4.x=0;__4.y=0;__4.w=_j7;__4.h=_k7;__4.XOffset=0;__4.YOffset=0;
__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;__4.tp=_h5;__4._95=_35[__4.tp];_zr3=__4;}var c=document.createElement("canvas");var _0b=c.getContext("2d");_ao="20px arial";_0b.font=_ao;_0b.textBaseline="top";_0b.textAlign="left";var _rt3=_0b.measureText(__n);var width=_rt3.width;var height=20;c.width=width;c.height=height;_0b.globalAlpha=0.0;_0b.globalCompositeOperation="copy";_0b.fillStyle="black";_0b.fillRect(0,0,c.width,c.height);_0b.globalAlpha=1.0;_0b.globalCompositeOperation="source-over";
_0b.fillStyle="white";_0b.fillText(__n,0,0);}function _JA(_aw){if(_Dr3>=_Er3){return false;}_Dr3++;if(_Dr3==0){_Cr3[_Dr3]=new _Zy(_aw);}else {_Cr3[_Dr3].Multiply(_Cr3[_Dr3-1],_aw);}return true;}function _KA(_aw){if(_Dr3<0){return false;}_jA(_kA,_Cr3[_Dr3]);_Dr3--;return true;}function _HA(){_Dr3=-1;}function _IA(){if(_Dr3<0){return true;}return false;}function _LA(){if(_Dr3<0){return false;}_jA(_kA,_Cr3[_Dr3]);return true;}function _MA(){if(_Dr3<0){return false;}_Dr3--;return true;}function _Yr3(_Tb1,_Q5,_R5,_A9){
var _Ha,_mZ2,_st3,_Oa,_Qa,_Sa,_L4;if(!_Tb1._95._Ba){if(_Tb1.w==0||_Tb1.h==0)return;_Ca(_Tb1);}_Ha=_s8._Ia(_ca._Ja,_Tb1._95._Ba,_s8._Ka,6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=6;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;_Oa=_Ha._Pa;_Qa=_Ha._Ra;_Sa=_Ha._Ta;_Q5=_Q5+_Tb1.XOffset;_R5=_R5+_Tb1.YOffset;_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=_Q5;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=_R5;_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=_Q5+_Tb1.CropWidth;_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=_R5+_Tb1.CropHeight;
_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=_Tb1.x/_Tb1._95.width;_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=_Tb1.y/_Tb1._95.height;_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(_Tb1.x+_Tb1.w)/_Tb1._95.width;_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(_Tb1.y+_Tb1.h)/_Tb1._95.height;_L4=((_A9*255.0)<<24)|0xffffff;var _eo=_L4,_fo=_L4,_go=_L4,_ho=_L4;if(_BY2){_eo&=0xfffefffe;_fo&=0xfffefffe;_go&=0xfffefffe;_ho&=0xfffefffe;_fo|=0x00010000;_go|=0x00000001;_ho|=0x00010001;}_Qa[_Ua]=_Qa[_mb]=_eo;
_Qa[_jb]=_fo;_Qa[_p5]=_Qa[_kb]=_go;_Qa[_lb]=_ho;}function _rs3(_Tb1,_U_2,_V_2,_tt3,_ut3,_Q5,_R5,_nj,_oj,_Xp,_do,_wK,_xK){var _Ha,_mZ2,_st3,_Oa,_Qa,_Sa,_L4;if(!_Tb1._95._Ba){if(_Tb1.w==0||_Tb1.h==0)return;_Ca(_Tb1);}if(_Xp==undefined){_Xp=_do=_wK=_xK=0xffffffff;}if(_do==undefined){_do=_wK=_xK=_Xp;}_Ha=_s8._Ia(_ca._Ja,_Tb1._95._Ba,_s8._Ka,6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=6;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;_Oa=_Ha._Pa;_Qa=_Ha._Ra;
_Sa=_Ha._Ta;_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=_Q5;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=_R5;_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=_Q5+_nj;_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=_R5+_oj;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=_U_2/_Tb1._95.width;_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=_V_2/_Tb1._95.height;_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(_U_2+_tt3)/_Tb1._95.width;_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(_V_2+_ut3)/_Tb1._95.height;if(_BY2){_Xp&=0xfffefffe;_do&=0xfffefffe;
_wK&=0xfffefffe;_xK&=0xfffefffe;_do|=0x00010000;_wK|=0x00000001;_xK|=0x00010001;}_Qa[_Ua]=_Qa[_mb]=_Xp;_Qa[_jb]=_do;_Qa[_p5]=_Qa[_kb]=_wK;_Qa[_lb]=_xK;}function _Zr3(_Tb1,_Q5,_R5,_903,_a03,vtiled,htiled,_0d,_A9){var _Ha,_mZ2,_st3,_Oa,_Qa,_Sa,w,h;if(!_Tb1._95._Ba){if(_Tb1.w==0||_Tb1.h==0)return;_Ca(_Tb1);}var _vt3=abs(_903);var _wt3=abs(_a03);var ow=_Tb1.ow*_vt3;var oh=_Tb1.oh*_wt3;var _xt3=_TL.left;var _yt3=_TL.top;var _zt3=(_TL.right-_TL.left);var _At3=(_TL.bottom-_TL.top);w=ow;h=oh;if(htiled){w=(((_zt3+(ow-1))/ow)+2)*ow;
_Q5=_xt3+_2G2(_Q5-_xt3,ow)-ow;}if(vtiled){h=(((_At3+(oh-1))/oh)+2)*oh;_R5=_yt3+_2G2(_R5-_yt3,oh)-oh;}if((ow<=0)||(oh<=0))return;var colour=_Nc(_0d)|(~~((_A9*255.0)<<24));var _eo=colour,_fo=colour,_go=colour,_ho=colour;if(_BY2){_eo&=0xfffefffe;_fo&=0xfffefffe;_go&=0xfffefffe;_ho&=0xfffefffe;_fo|=0x00010000;_go|=0x00000001;_ho|=0x00010001;}var _Bt3=1.0/_Tb1._95.width;var _Ct3=1.0/_Tb1._95.height;var _m5=(_Tb1.x*_Bt3);var _o5=(_Tb1.x+_Tb1.w)*_Bt3;var _n5=(_Tb1.y*_Ct3);var _p5=(_Tb1.y+_Tb1.h)*_Ct3;var _Dt3=_903*_Tb1.CropWidth;
var _Et3=_a03*_Tb1.CropHeight;var _tY=(w/ow);var _uY=(h/oh);var _47=_R5+(_Tb1.YOffset*_wt3);for(var _Ot=0;_Ot<_uY;_Ot++,_47+=(_Tb1.oh*_wt3)){var _27=_Q5+(_Tb1.XOffset*_vt3);var _1L=_47+_Et3;for(var _Nt=0;_Nt<_tY;_Nt++,_27+=(_Tb1.ow*_vt3)){_Ha=_s8._Ia(_ca._Ja,_Tb1._95._Ba,_s8._Ka,6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=6;_Oa=_Ha._Pa;_Qa=_Ha._Ra;_Sa=_Ha._Ta;var __K=_27+_Dt3;_Qa[index]=_ho;_Oa[index+0]=_27;_Oa[index+1]=_47;_Oa[index+2]=_Va;_Sa[index+0]=_m5;_Sa[index+1]=_n5;index+=_La;_Qa[index]=_eo;
_Oa[index+0]=__K;_Oa[index+1]=_47;_Oa[index+2]=_Va;_Sa[index+0]=_o5;_Sa[index+1]=_n5;index+=_La;_Qa[index]=_fo;_Oa[index+0]=__K;_Oa[index+1]=_1L;_Oa[index+2]=_Va;_Sa[index+0]=_o5;_Sa[index+1]=_p5;index+=_La;_Qa[index]=_fo;_Oa[index+0]=__K;_Oa[index+1]=_1L;_Oa[index+2]=_Va;_Sa[index+0]=_o5;_Sa[index+1]=_p5;index+=_La;_Qa[index]=_go;_Oa[index+0]=_27;_Oa[index+1]=_1L;_Oa[index+2]=_Va;_Sa[index+0]=_m5;_Sa[index+1]=_p5;index+=_La;_Qa[index]=_eo;_Oa[index+0]=_27;_Oa[index+1]=_47;_Oa[index+2]=_Va;_Sa[index+0]=_m5;
_Sa[index+1]=_n5;}}}function _1s3(_Ft3,_VW2,_t9,_Pe3,_Qe3,x,y,_bP,_cP,angle,color,alpha,_Gt3){var _Ht3=_az;var _It3=__y;_t9=~~_t9%(_VW2._gp2);if(_t9<0){_t9=_t9+(_VW2._gp2);}var _Jt3=(color|((alpha*255)&0xff)<<24);var _Kt3=[];_Kt3[0]=_Jt3&0xff;_Kt3[1]=(_Jt3>>8)&0xff;_Kt3[2]=(_Jt3>>16)&0xff;_Kt3[3]=(_Jt3>>24)&0xff;var _Lt3=new _Zy();_Lt3._lA(x,y,0.0);var _6e3=new _Zy();_6e3._pA(angle);var _Mt3=new _Zy();_Mt3._lA(-_Pe3/_dp2,-_Qe3/_dp2,0.0);var _5e3=new _Zy();_5e3._mA(_dp2*_bP,_dp2*_cP,1.0);var _Nt3=new _Zy();_Nt3.Multiply(_Mt3,
_5e3);var _Ot3=new _Zy();_Ot3.Multiply(_Nt3,_6e3);var _Pt3=new _Zy();_Pt3.Multiply(_Ot3,_Lt3);var translate=new _Zy();translate._lA(0.5,0.5,0.0);var scale=new _Zy();scale._mA(1.0/32768.0,1.0/32768.0,1.0);var _Qt3=new _Zy();_Qt3.Multiply(scale,translate);var _np2=_VW2._mp2[_t9];var _Rt3=[],_St3=0,_Tt3=0,_Ut3=true;for(var i=0;i<_np2._op2;i++){var _1F=_np2._pp2[i];for(var _17=0;_17<_St3;){var _Vt3=_Rt3[_17];if(_Vt3._qp2<_1F.depth){_s8._5U1(_ca._uW1);_s8._7U1(_ca._mW1);_s8._bz(false,false,false,false);_s8._2z(false);
_Tt3+=_5_2(_Ft3,_Vt3,_Pt3,_Qt3,_Jt3,_Kt3,false,_Gt3);_s8._aU1(_St3-1);_s8._5U1(_ca._pW1);_s8._7U1(_ca._fW1);_s8._bz(_Ht3._Iu,_Ht3._Ju,_Ht3._Ku,_Ht3.alpha);_s8._2z(_It3);_Ut3=true;_St3--;for(var _dl=_17;_dl<_St3;_dl++){_Rt3[_dl]=_Rt3[_dl+1];}}else {_17++;}}if(_1F._qp2>0){_Rt3[_St3++]=_1F;_s8._3U1(true);_s8._5U1(_ca._uW1);_s8._7U1(_ca._lW1);_s8._bz(false,false,false,false);_s8._2z(false);_Ut3=false;}if(_St3==0){_s8._3U1(false);_Ut3=true;}_Tt3+=_5_2(_Ft3,_1F,_Pt3,_Qt3,_Jt3,_Kt3,_Ut3?_PL:false,_Gt3);if(_1F._qp2>0){
_s8._aU1(_St3);_s8._5U1(_ca._pW1);_s8._7U1(_ca._fW1);_s8._bz(_Ht3._Iu,_Ht3._Ju,_Ht3._Ku,_Ht3.alpha);_s8._2z(_It3);_Ut3=true;}}if(_St3>0){_s8._5U1(_ca._uW1);_s8._7U1(_ca._mW1);_s8._bz(false,false,false,false);_s8._2z(false);for(var _17=0;_17<_St3;_17++){var _Vt3=_Rt3[_17];_Tt3+=_5_2(_Ft3,_Vt3,_Pt3,_Qt3,_Jt3,_Kt3,false,_Gt3);}}_s8._3U1(false);_s8._bz(_Ht3._Iu,_Ht3._Ju,_Ht3._Ku,_Ht3.alpha);_s8._2z(_It3);}function _2s3(_yL,_Wt3,_Xt3,_Yt3,_Zt3,__t3,_0u3,_Gt3){var _1u3=[];_1u3[0]=__t3[0],_1u3[1]=__t3[1],_1u3[2]=__t3[2],
_1u3[3]=0;var _2u3=new _Zy();_2u3.Multiply(_Wt3._uo2,_Xt3);var _3u3=1.0;if(_0u3){_3u3=_4u3(_Wt3,_2u3)*_RL;}var _rp2=[],_sp2=[],_5u3=[];for(var i=0;i<4;i++){_rp2[i]=_Wt3._tp2[i];_sp2[i]=_Wt3._up2[i];_5u3[i]=_Wt3._vp2[i];}var _6u3=0;if(_Wt3._bO!==0){var _Gl=_yL[_Wt3.index];if(_Gl.type===_2o2){var _Rm3=_Gl;for(var _17=0;_17<_Rm3._fo2.length;_17++){var _L91=_Rm3._fo2[_17];for(var _dl=0;_dl<_L91._io2;_dl++){var _So2=_L91._mo2[_dl];if((_So2._Uo2>=0)&&(_So2._Xo2>0)){var _7u3=_L91._ko2[_So2._Uo2];if((_7u3!==null)&&(_7u3!==undefined)){
var _ro2=_7u3.type;if(_ro2===_5o2){_6u3+=_8u3(_Wt3,_7u3,_So2,_2u3,__t3,_1u3,_rp2,_sp2,_5u3,_0u3);}else if((_ro2==_6o2)||(_ro2==_7o2)){_6u3+=_9u3(_yL,_Wt3,_ro2,_7u3,_So2,_Yt3,_2u3,__t3,_1u3,_Zt3,_rp2,_sp2,_5u3,_0u3,_Gt3);}}}if((_So2._Vo2>=0)&&(_So2._Zo2>0)){var _L4=_L91._lo2[_So2._Vo2]._L4;var _Qo2=[];_Qo2[0]=((_L4&0xff)*__t3[0])>>8;_Qo2[1]=(((_L4>>8)&0xff)*__t3[1])>>8;_Qo2[2]=(((_L4>>16)&0xff)*__t3[2])>>8;_Qo2[3]=(((_L4>>24)&0xff)*__t3[3])>>8;for(var _Y6=0;_Y6<4;_Y6++){_Qo2[_Y6]=((_Qo2[_Y6]*_rp2[_Y6])>>8)+_sp2[_Y6];
_Qo2[_Y6]=Math.max(0,Math.min(_Qo2[_Y6],255));}var _au3=_Qo2[0]|(_Qo2[1]<<8)|(_Qo2[2]<<16)|(_Qo2[3]<<24);var _bu3=[];_bu3[0]=((_L4&0xff)*_1u3[0])>>8;_bu3[1]=(((_L4>>8)&0xff)*_1u3[1])>>8;_bu3[2]=(((_L4>>16)&0xff)*_1u3[2])>>8;_bu3[3]=(((_L4>>24)&0xff)*_1u3[3])>>8;for(var _Y6=0;_Y6<4;_Y6++){_bu3[_Y6]=((_bu3[_Y6]*_rp2[_Y6])>>8)+_5u3[_Y6];_bu3[_Y6]=_W6(0,_X6(_bu3[_Y6],255));}var _cu3=_bu3[0]|(_bu3[1]<<8)|(_bu3[2]<<16)|(_bu3[3]<<24);if(_0u3&&(_So2._1p2>0)){var _I9=_So2._1p2*6;var _Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,
_I9);var _La=_Ha._Ma()>>2;var _Uf3=_La*_Ha._Na;_Ha._Na+=_I9;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;var _Sa=_Ha._Ta;_6u3+=_So2._1p2*2;for(var _Y6=0;_Y6<_So2._1p2;_Y6++){var _qv1=_So2._ap2[(_Y6*2)+0],_rv1=_So2._ap2[(_Y6*2)+1];var _du3=_So2._6p2[(_qv1*2)+0],_eu3=_So2._6p2[(_qv1*2)+1];var _fu3=_So2._bp2[(_qv1*2)+0],_gu3=_So2._bp2[(_qv1*2)+1];var _hu3=_So2._6p2[(_rv1*2)+0],_iu3=_So2._6p2[(_rv1*2)+1];var _ju3=_So2._bp2[(_rv1*2)+0],_ku3=_So2._bp2[(_rv1*2)+1];var _L6=(_du3*_2u3._K6[_vA])+(_eu3*_2u3._K6[_wA])+_2u3._K6[_yA],
_M6=(_du3*_2u3._K6[_zA])+(_eu3*_2u3._K6[_qz])+_2u3._K6[_BA],_N6=(_hu3*_2u3._K6[_vA])+(_iu3*_2u3._K6[_wA])+_2u3._K6[_yA],_O6=(_hu3*_2u3._K6[_zA])+(_iu3*_2u3._K6[_qz])+_2u3._K6[_BA];_fu3*=_3u3;_gu3*=_3u3;_ju3*=_3u3;_ku3*=_3u3;var _hb=(_fu3*_2u3._K6[_vA])+(_gu3*_2u3._K6[_wA])+_L6,_ib=(_fu3*_2u3._K6[_zA])+(_gu3*_2u3._K6[_qz])+_M6,_sl2=(_ju3*_2u3._K6[_vA])+(_ku3*_2u3._K6[_wA])+_N6,_tl2=(_ju3*_2u3._K6[_zA])+(_ku3*_2u3._K6[_qz])+_O6;_Oa[_Uf3+0]=_L6;_Oa[_Uf3+1]=_M6;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_au3;_Uf3+=_La;
_Oa[_Uf3+0]=_N6;_Oa[_Uf3+1]=_O6;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_au3;_Uf3+=_La;_Oa[_Uf3+0]=_hb;_Oa[_Uf3+1]=_ib;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_cu3;_Uf3+=_La;_Oa[_Uf3+0]=_hb;_Oa[_Uf3+1]=_ib;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_cu3;_Uf3+=_La;_Oa[_Uf3+0]=_N6;_Oa[_Uf3+1]=_O6;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_au3;_Uf3+=_La;_Oa[_Uf3+0]=_sl2;_Oa[_Uf3+1]=_tl2;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_cu3;_Uf3+=_La;}}var _I9=_So2._Zo2*3;var _Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var _Uf3=_La*_Ha._Na;_Ha._Na+=_I9;_Oa=_Ha._Pa;_Qa=_Ha._Ra;
_Sa=_Ha._Ta;_6u3+=_So2._Zo2;var _lu3=0;for(var _Y6=_So2._Zo2*3;_Y6>0;--_Y6){var index=_So2._7p2[_lu3++];var _mu3=_So2._6p2[index*2];var _nu3=_So2._6p2[(index*2)+1];var x=(_mu3*_2u3._K6[_vA])+(_nu3*_2u3._K6[_wA])+_2u3._K6[_yA];var y=(_mu3*_2u3._K6[_zA])+(_nu3*_2u3._K6[_qz])+_2u3._K6[_BA];_Oa[_Uf3+0]=x;_Oa[_Uf3+1]=y;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_au3;_Uf3+=_La;}}}}}}return _6u3;}function _9u3(_yL,_Wt3,_ou3,_pu3,_qu3,_Yt3,_ru3,__t3,_su3,_Zt3,_tu3,_uu3,_vu3,_0u3,_Gt3){var _Oa,_Qa,_Sa,__4=null,_3u3=1.0,_wu3=new _Zy();
if(_0u3){_3u3=_4u3(_Wt3,_ru3)*_RL;}if(_ou3===_6o2){var _xu3=_pu3;if(_xu3._Fn2>-1){__4=_Gt3[_xu3._Fn2];var _yu3=new _Zy();var _zu3=new _Zy();var _Au3=new _Zy();var _Bu3=new _Zy();_zu3._lA(__4.x/__4._95.width,__4.y/__4._95.height,0);_yu3._mA(__4.w/__4._95.width,__4.h/__4._95.height,1.0);_Au3.Multiply(_yu3,_zu3);_Bu3.Multiply(_Yt3,_Au3);_wu3.Multiply(_xu3._uo2,_Bu3);}else {__4=_xu3._Fc;_wu3.Multiply(_xu3._uo2,_Yt3);}}else if(_ou3===_7o2){var _xu3=_pu3;if(_xu3._zo2!==-1){var _Cu3=_yL[_xu3._zo2];if(_Cu3._Fn2>-1){
__4=_Gt3[_Cu3._Fn2];var _3Y2=__4.w/__4.ow;var _4Y2=__4.h/__4.oh;var _zu3=new _Zy();var _yu3=new _Zy();var _Au3=new _Zy();_zu3._lA(__4.x/_3Y2,__4.y/_4Y2,0);_yu3._mA((1.0/__4._95.width)*_3Y2,(1.0/__4._95.height)*_4Y2,1.0);_Au3.Multiply(_zu3,_yu3);_wu3.Multiply(_xu3._uo2,_Au3);if((_xu3._xo2===_An2)||(_xu3._xo2===_Cn2)){_s8._0U1(0,true);}else {_s8._0U1(0,false);}}else {var _25=_Cu3._25;__4={_95:_25};if(_25!==null){var _yu3=new _Zy();_yu3._mA(1.0/_25.width,1.0/_25.height,1.0);_wu3.Multiply(_xu3._uo2,_yu3);if((_xu3._xo2===_An2)||(_xu3._xo2===_Cn2)){
_s8._0U1(0,true);}else {_s8._0U1(0,false);}}}}}var _6u3=0;if(__4!==null){if(!__4._95._Ba){if(__4.w==0||__4.h==0)return;_Ca(__4);}_6u3+=_qu3._Xo2;if(_0u3&&(_qu3.__o2>0)){_6u3+=_qu3.__o2*2;var _Qo2=[];for(var _Y6=0;_Y6<4;_Y6++){_Qo2[_Y6]=((__t3[_Y6]*_tu3[_Y6])>>8)+_uu3[_Y6];_Qo2[_Y6]=Math.max(0,Math.min(_Qo2[_Y6],255));}var _au3=_Qo2[0]|(_Qo2[1]<<8)|(_Qo2[2]<<16)|(_Qo2[3]<<24);var _bu3=[];for(var _Y6=0;_Y6<4;_Y6++){_bu3[_Y6]=((_su3[_Y6]*_tu3[_Y6])>>8)+_vu3[_Y6];_bu3[_Y6]=Math.max(0,Math.min(_bu3[_Y6],255));
}var _cu3=_bu3[0]|(_bu3[1]<<8)|(_bu3[2]<<16)|(_bu3[3]<<24);var _I9=_qu3.__o2*6;var _Ha=_s8._Ia(_ca._Ja,__4._95._Ba,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var _Uf3=_La*_Ha._Na;_Ha._Na+=_I9;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;var _Sa=_Ha._Ta;var _Du3=0;for(_Y6=_qu3.__o2;_Y6>0;_Y6--){var _qv1=_qu3._8p2[_Du3++],_rv1=_qu3._8p2[_Du3++];var _Eu3=_qv1*2,_Fu3=_qv1*2;var _du3=_qu3._3p2[_Eu3];_Eu3++;var _eu3=_qu3._3p2[_Eu3];var _fu3=_qu3._9p2[_Fu3];_Fu3++;var _gu3=_qu3._9p2[_Fu3];_Eu3=_rv1*2;_Fu3=_rv1*2;var _hu3=_qu3._3p2[_Eu3];_Eu3++;
var _iu3=_qu3._3p2[_Eu3];var _ju3=_qu3._9p2[_Fu3];_Fu3++;var _ku3=_qu3._9p2[_Fu3];var _L6=(_du3*_ru3._K6[_vA])+(_eu3*_ru3._K6[_wA])+_ru3._K6[_yA],_M6=(_du3*_ru3._K6[_zA])+(_eu3*_ru3._K6[_qz])+_ru3._K6[_BA],_N6=(_hu3*_ru3._K6[_vA])+(_iu3*_ru3._K6[_wA])+_ru3._K6[_yA],_O6=(_hu3*_ru3._K6[_zA])+(_iu3*_ru3._K6[_qz])+_ru3._K6[_BA];_fu3*=_3u3;_gu3*=_3u3;_ju3*=_3u3;_ku3*=_3u3;var _hb=(_fu3*_ru3._K6[_vA])+(_gu3*_ru3._K6[_wA])+_L6,_ib=(_fu3*_ru3._K6[_zA])+(_gu3*_ru3._K6[_qz])+_M6,_sl2=(_ju3*_ru3._K6[_vA])+(_ku3*_ru3._K6[_wA])+_N6,
_tl2=(_ju3*_ru3._K6[_zA])+(_ku3*_ru3._K6[_qz])+_O6;_fu3+=_du3;_gu3+=_eu3;_ju3+=_hu3;_ku3+=_iu3;_Oa[_Uf3+0]=_L6;_Oa[_Uf3+1]=_M6;_Oa[_Uf3+2]=_Va;_Sa[_Uf3+0]=(_du3*_wu3._K6[_vA])+(_eu3*_wu3._K6[_wA])+_wu3._K6[_yA];_Sa[_Uf3+1]=(_du3*_wu3._K6[_zA])+(_eu3*_wu3._K6[_qz])+_wu3._K6[_BA];_Qa[_Uf3]=_au3;_Uf3+=_La;_Oa[_Uf3+0]=_N6;_Oa[_Uf3+1]=_O6;_Oa[_Uf3+2]=_Va;_Sa[_Uf3+0]=(_hu3*_wu3._K6[_vA])+(_iu3*_wu3._K6[_wA])+_wu3._K6[_yA];_Sa[_Uf3+1]=(_hu3*_wu3._K6[_zA])+(_iu3*_wu3._K6[_qz])+_wu3._K6[_BA];_Qa[_Uf3]=_au3;
_Uf3+=_La;_Oa[_Uf3+0]=_hb;_Oa[_Uf3+1]=_ib;_Oa[_Uf3+2]=_Va;_Sa[_Uf3+0]=(_fu3*_wu3._K6[_vA])+(_gu3*_wu3._K6[_wA])+_wu3._K6[_yA];_Sa[_Uf3+1]=(_fu3*_wu3._K6[_zA])+(_gu3*_wu3._K6[_qz])+_wu3._K6[_BA];_Qa[_Uf3]=_cu3;_Uf3+=_La;_Oa[_Uf3+0]=_hb;_Oa[_Uf3+1]=_ib;_Oa[_Uf3+2]=_Va;_Sa[_Uf3+0]=(_fu3*_wu3._K6[_vA])+(_gu3*_wu3._K6[_wA])+_wu3._K6[_yA];_Sa[_Uf3+1]=(_fu3*_wu3._K6[_zA])+(_gu3*_wu3._K6[_qz])+_wu3._K6[_BA];_Qa[_Uf3]=_cu3;_Uf3+=_La;_Oa[_Uf3+0]=_N6;_Oa[_Uf3+1]=_O6;_Oa[_Uf3+2]=_Va;_Sa[_Uf3+0]=(_hu3*_wu3._K6[_vA])+(_iu3*_wu3._K6[_wA])+_wu3._K6[_yA];
_Sa[_Uf3+1]=(_hu3*_wu3._K6[_zA])+(_iu3*_wu3._K6[_qz])+_wu3._K6[_BA];_Qa[_Uf3]=_au3;_Uf3+=_La;_Oa[_Uf3+0]=_sl2;_Oa[_Uf3+1]=_tl2;_Oa[_Uf3+2]=_Va;_Sa[_Uf3+0]=(_ju3*_wu3._K6[_vA])+(_ku3*_wu3._K6[_wA])+_wu3._K6[_yA];_Sa[_Uf3+1]=(_ju3*_wu3._K6[_zA])+(_ku3*_wu3._K6[_qz])+_wu3._K6[_BA];_Qa[_Uf3]=_cu3;_Uf3+=_La;}}var _I9=_qu3._Xo2*3;var _Ha=_s8._Ia(_ca._Ja,__4._95._Ba,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var _Uf3=_La*_Ha._Na;_Ha._Na+=_I9;_Oa=_Ha._Pa,_Qa=_Ha._Ra,_Sa=_Ha._Ta;var _lu3=0;for(var _Y6=_qu3._Xo2*3;_Y6>0;
--_Y6){var index=_qu3._5p2[_lu3++];var _mu3=_qu3._3p2[index*2];var _nu3=_qu3._3p2[(index*2)+1];var x=(_mu3*_ru3._K6[_vA])+(_nu3*_ru3._K6[_wA])+_ru3._K6[_yA];var y=(_mu3*_ru3._K6[_zA])+(_nu3*_ru3._K6[_qz])+_ru3._K6[_BA];_Oa[_Uf3+0]=x;_Oa[_Uf3+1]=y;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_Zt3;_Sa[_Uf3+0]=(_mu3*_wu3._K6[_vA])+(_nu3*_wu3._K6[_wA])+_wu3._K6[_yA];_Sa[_Uf3+1]=(_mu3*_wu3._K6[_zA])+(_nu3*_wu3._K6[_qz])+_wu3._K6[_BA];_Uf3+=_La;}}return _6u3;}function _8u3(_Wt3,_pu3,_qu3,_ru3,__t3,_su3,_tu3,_uu3,_vu3,_0u3){var _3u3=1.0;
if(_0u3){_3u3=_4u3(_Wt3,_ru3)*_RL;}var _Gu3=false;var _xu3=_pu3,_L4=_xu3._L4,_6u3=0,_Y6=0;var _Qo2=[];var _D4=(_L4&0xff),_E4=((_L4>>8)&0xff),_F4=((_L4>>16)&0xff),_G4=((_L4>>24)&0xff);_Qo2[0]=(_D4*__t3[0])>>8;_Qo2[1]=(_E4*__t3[1])>>8;_Qo2[2]=(_F4*__t3[2])>>8;_Qo2[3]=(_G4*__t3[3])>>8;for(_Y6=0;_Y6<4;_Y6++){_Qo2[_Y6]=((_Qo2[_Y6]*_tu3[_Y6])>>8)+_uu3[_Y6];_Qo2[_Y6]=_W6(0,_X6(_Qo2[_Y6],255));}var _au3=_Qo2[0]|(_Qo2[1]<<8)|(_Qo2[2]<<16)|(_Qo2[3]<<24);var _bu3=[];_bu3[0]=((_L4&0xff)*_su3[0])>>8;_bu3[1]=(((_L4>>8)&0xff)*_su3[1])>>8;
_bu3[2]=(((_L4>>16)&0xff)*_su3[2])>>8;_bu3[3]=(((_L4>>24)&0xff)*_su3[3])>>8;for(_Y6=0;_Y6<4;_Y6++){_bu3[_Y6]=((_bu3[_Y6]*_tu3[_Y6])>>8)+_vu3[_Y6];_bu3[_Y6]=_W6(0,_X6(_bu3[_Y6],255));}var _cu3=_bu3[0]|(_bu3[1]<<8)|(_bu3[2]<<16)|(_bu3[3]<<24);if(_Gu3){}else if(_0u3&&(_qu3.__o2>0)){_6u3+=_qu3.__o2*2;var _I9=_qu3.__o2*6;var _Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var _Uf3=_La*_Ha._Na;_Ha._Na+=_I9;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;var _Du3=0;for(_Y6=_qu3.__o2;_Y6>0;_Y6--){var _qv1=_qu3._8p2[_Du3++],
_rv1=_qu3._8p2[_Du3++];var _Eu3=_qv1*2,_Fu3=_qv1*2;var _du3=_qu3._3p2[_Eu3];_Eu3++;var _eu3=_qu3._3p2[_Eu3];var _fu3=_qu3._9p2[_Fu3];_Fu3++;var _gu3=_qu3._9p2[_Fu3];_Eu3=_rv1*2;_Fu3=_rv1*2;var _hu3=_qu3._3p2[_Eu3];_Eu3++;var _iu3=_qu3._3p2[_Eu3];var _ju3=_qu3._9p2[_Fu3];_Fu3++;var _ku3=_qu3._9p2[_Fu3];var _L6=(_du3*_ru3._K6[_vA])+(_eu3*_ru3._K6[_wA])+_ru3._K6[_yA],_M6=(_du3*_ru3._K6[_zA])+(_eu3*_ru3._K6[_qz])+_ru3._K6[_BA],_N6=(_hu3*_ru3._K6[_vA])+(_iu3*_ru3._K6[_wA])+_ru3._K6[_yA],_O6=(_hu3*_ru3._K6[_zA])+(_iu3*_ru3._K6[_qz])+_ru3._K6[_BA];
_fu3*=_3u3;_gu3*=_3u3;_ju3*=_3u3;_ku3*=_3u3;var _hb=(_fu3*_ru3._K6[_vA])+(_gu3*_ru3._K6[_wA])+_L6,_ib=(_fu3*_ru3._K6[_zA])+(_gu3*_ru3._K6[_qz])+_M6,_sl2=(_ju3*_ru3._K6[_vA])+(_ku3*_ru3._K6[_wA])+_N6,_tl2=(_ju3*_ru3._K6[_zA])+(_ku3*_ru3._K6[_qz])+_O6;_Oa[_Uf3+0]=_L6;_Oa[_Uf3+1]=_M6;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_au3;_Uf3+=_La;_Oa[_Uf3+0]=_N6;_Oa[_Uf3+1]=_O6;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_au3;_Uf3+=_La;_Oa[_Uf3+0]=_hb;_Oa[_Uf3+1]=_ib;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_cu3;_Uf3+=_La;_Oa[_Uf3+0]=_hb;_Oa[_Uf3+1]=_ib;
_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_cu3;_Uf3+=_La;_Oa[_Uf3+0]=_N6;_Oa[_Uf3+1]=_O6;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_au3;_Uf3+=_La;_Oa[_Uf3+0]=_sl2;_Oa[_Uf3+1]=_tl2;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_cu3;_Uf3+=_La;}}var _I9=_qu3._Xo2*3;var _Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,_I9);var _La=_Ha._Ma()>>2;var _Uf3=_La*_Ha._Na;_Ha._Na+=_I9;_Oa=_Ha._Pa;_Qa=_Ha._Ra;_6u3+=_qu3._Xo2;var _lu3=0;for(var _Y6=_qu3._Xo2*3;_Y6>0;--_Y6){var index=_qu3._5p2[_lu3++];var _mu3=_qu3._3p2[index*2];var _nu3=_qu3._3p2[(index*2)+1];var x=(_mu3*_ru3._K6[_vA])+(_nu3*_ru3._K6[_wA])+_ru3._K6[_yA];
var y=(_mu3*_ru3._K6[_zA])+(_nu3*_ru3._K6[_qz])+_ru3._K6[_BA];_Oa[_Uf3+0]=x;_Oa[_Uf3+1]=y;_Oa[_Uf3+2]=_Va;_Qa[_Uf3]=_au3;_Uf3+=_La;}return _6u3;}function _4u3(_Wt3,_ru3){if(_PL){if(_Wt3._3u3!==undefined){return _Wt3._3u3;}var _RY2=_sA(_kA);var _Yq2=_sA(_YL);var _Zq2=_sA(_ZL);var _Hu3=new _Zy();_Hu3.Multiply(_RY2,_Yq2);var _Iu3=new _Zy();_Iu3.Multiply(_Hu3,_Zq2);var _Ju3=new _Zy();_Ju3.Multiply(_ru3,_Iu3);var _Ku3=_s8._fS1,_Lu3=_s8._gS1;var _Mu3=[];_Mu3[0]=0.0;_Mu3[1]=0.0;_Mu3[2]=1.0;_Mu3[3]=0.0;_Mu3[4]=0.0;_Mu3[5]=1.0;
var _Nu3=[];for(var i=0;i<3;i++){var _fq2=(_Mu3[i*2]*_Ju3._K6[_PH2])+(_Mu3[(i*2)+1]*_Ju3._K6[_QH2])+(_Va*_Ju3._K6[_RH2])+_Ju3._K6[_SH2];var index=(i*2)+0;_Nu3[index]=(_Mu3[i*2]*_Ju3._K6[_vA])+(_Mu3[(i*2)+1]*_Ju3._K6[_wA])+(_Va*_Ju3._K6[_xA])+_Ju3._K6[_yA];_Nu3[index]=_Nu3[index]/_fq2;_Nu3[index]=_Nu3[index]*_Ku3;index++;_Nu3[index]=(_Mu3[i*2]*_Ju3._K6[_zA])+(_Mu3[(i*2)+1]*_Ju3._K6[_qz])+(_Va*_Ju3._K6[_AA])+_Ju3._K6[_BA];_Nu3[index]=_Nu3[index]/_fq2;_Nu3[index]=_Nu3[index]*_Lu3;}var _Ou3=[];_Ou3[0]=_Nu3[2]-_Nu3[0];
_Ou3[1]=_Nu3[3]-_Nu3[1];_Ou3[2]=_Nu3[4]-_Nu3[0];_Ou3[3]=_Nu3[5]-_Nu3[1];var _Pu3=0.0,_3u3=1.0,index=0;for(var i=0;i<2;i++){var length=_Ou3[index]*_Ou3[index];index++;length+=_Ou3[index]*_Ou3[index];index++;if(length>0.0){length=Math.sqrt(length);}_Pu3=Math.max(length,_Pu3);}_Pu3*=0.5;if(_Pu3>0.0){_3u3=1.0/_Pu3;}_Wt3._3u3=_3u3;return _3u3;}return 1.0;}function __r3(_Tb1,_tb1,_ub1,_Q5,_R5,_903,_a03,_X4,_0d,_do,_wK,_xK,_A9){var _Ha,_mZ2,_st3,_Oa,_Qa,_Sa;if(_Tb1===undefined){debug("Attempting to draw texture that is not loaded");
return;}if(!_Tb1._95._Ba){if(_Tb1.w==0||_Tb1.h==0)return;_Ca(_Tb1);}_Ha=_s8._Ia(_ca._Ja,_Tb1._95._Ba,_s8._Ka,6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=6;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;_Oa=_Ha._Pa;_Qa=_Ha._Ra;_Sa=_Ha._Ta;var _L6=-_903*(_tb1-_Tb1.XOffset);var _M6=-_a03*(_ub1-_Tb1.YOffset);var _N6=_L6+(_903*_Tb1.CropWidth);var _O6=_M6+(_a03*_Tb1.CropHeight);if(Math.abs(_X4)<0.001){_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=_Q5+_L6;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=_R5+_M6;
_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=_Q5+_N6;_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=_R5+_O6;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;}else {var _l7=Math.sin(_X4);var _m7=Math.cos(_X4);var _B82=_L6*_m7;var _C82=_N6*_m7;var _D82=_M6*_m7;var _E82=_O6*_m7;var _F82=_L6*_l7;var _G82=_N6*_l7;var _H82=_M6*_l7;var _I82=_O6*_l7;_Oa[_Ua+0]=_Oa[_mb+0]=_Q5+_B82+_H82;_Oa[_Ua+1]=_Oa[_mb+1]=_R5-_F82+_D82;_Oa[_p5+0]=_Oa[_kb+0]=_Q5+_C82+_I82;_Oa[_p5+1]=_Oa[_kb+1]=_R5-_G82+_E82;_Oa[_jb+1]=_R5-_G82+_D82;_Oa[_jb+0]=_Q5+_C82+_H82;
_Oa[_lb+0]=_Q5+_B82+_I82;_Oa[_lb+1]=_R5-_F82+_E82;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;}_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=_Tb1.x/_Tb1._95.width;_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=_Tb1.y/_Tb1._95.height;_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(_Tb1.x+_Tb1.w)/_Tb1._95.width;_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(_Tb1.y+_Tb1.h)/_Tb1._95.height;var _G4=~~(_A9*255.0);_G4=_G4-((_G4-255)&((255-_G4)>>31));_G4=_G4-(_G4&(_G4>>31));_G4=(_G4<<24);_0d=_G4|(_0d&0xffffff);if(_do==undefined){_do=_0d;
_wK=_0d;_xK=_0d;}else {_do=(_do&0xffffff)|_G4;_wK=(_wK&0xffffff)|_G4;_xK=(_xK&0xffffff)|_G4;}if(_BY2){_0d&=0xfffefffe;_do&=0xfffefffe;_wK&=0xfffefffe;_xK&=0xfffefffe;_do|=0x00010000;_wK|=0x00000001;_xK|=0x00010001;}_Qa[_Ua]=_Qa[_mb]=_0d;_Qa[_jb]=_do;_Qa[_p5]=_Qa[_kb]=_wK;_Qa[_lb]=_xK;}function _0s3(_Tb1,_b7,_c7,_D6,_E6,_8u,_9u,_nf1,_of1,_A9){var _L4=~~((_A9*255.0)<<24)|0xffffff;var _fo=_L4;var _go=_L4;var _ho=_L4;var _Ha,_mZ2,_st3,_Oa,_Qa,_Sa;if(!_Tb1._95._Ba){if(_Tb1.w==0||_Tb1.h==0)return;_Ca(_Tb1);}
_Ha=_s8._Ia(_ca._Ja,_Tb1._95._Ba,_s8._Ka,6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=6;var _Ua=index,_jb=_Ua+_La,_p5=_jb+_La,_kb=_p5+_La,_lb=_kb+_La,_mb=_lb+_La;_Oa=_Ha._Pa;_Qa=_Ha._Ra;_Sa=_Ha._Ta;_Oa[_Ua+0]=_Oa[_mb+0]=_b7;_Oa[_Ua+1]=_Oa[_mb+1]=_c7;_Oa[_jb+0]=_D6;_Oa[_jb+1]=_E6;_Oa[_p5+0]=_Oa[_kb+0]=_8u;_Oa[_p5+1]=_Oa[_kb+1]=_9u;_Oa[_lb+0]=_nf1;_Oa[_lb+1]=_of1;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=_Tb1.x/_Tb1._95.width;_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=_Tb1.y/_Tb1._95.height;
_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(_Tb1.x+_Tb1.w)/_Tb1._95.width;_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(_Tb1.y+_Tb1.h)/_Tb1._95.height;if(_BY2){_L4&=0xfffefffe;_fo&=0xfffefffe;_go&=0xfffefffe;_ho&=0xfffefffe;_fo|=0x00010000;_go|=0x00000001;_ho|=0x00010001;}_Qa[_Ua]=_Qa[_mb]=_L4;_Qa[_jb]=_fo;_Qa[_p5]=_Qa[_kb]=_go;_Qa[_lb]=_ho;}function _Qu3(_Tb1,_tb1,_ub1,_A8,_B8,_Q5,_R5,_903,_a03,_X4,_0d,_do,_wK,_xK,_A9){var _Ha,_mZ2,_st3,_Oa,_Qa,_Sa;if(!_Tb1._95._Ba){if(_Tb1.w==0||_Tb1.h==0)return;_Ca(_Tb1);}_Ha=_s8._Ia(_ca._Ja,
_Tb1._95._Ba,_s8._Ka,6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=6;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;_Oa=_Ha._Pa;_Qa=_Ha._Ra;_Sa=_Ha._Ta;var _L6=-_903*(_tb1-_Tb1.XOffset);var _M6=-_a03*(_ub1-_Tb1.YOffset);var _N6=_L6+(_903*_A8);var _O6=_M6+(_a03*_B8);if(Math.abs(_X4)<0.001){_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=_Q5+_L6;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=_R5+_M6;_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=_Q5+_N6;_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=_R5+_O6;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;
}else {var _l7=Math.sin(_X4);var _m7=Math.cos(_X4);var _B82=_L6*_m7;var _C82=_N6*_m7;var _D82=_M6*_m7;var _E82=_O6*_m7;var _F82=_L6*_l7;var _G82=_N6*_l7;var _H82=_M6*_l7;var _I82=_O6*_l7;_Oa[_Ua+0]=_Oa[_mb+0]=_Q5+_B82+_H82;_Oa[_Ua+1]=_Oa[_mb+1]=_R5-_F82+_D82;_Oa[_p5+0]=_Oa[_kb+0]=_Q5+_C82+_I82;_Oa[_p5+1]=_Oa[_kb+1]=_R5-_G82+_E82;_Oa[_jb+1]=_R5-_G82+_D82;_Oa[_jb+0]=_Q5+_C82+_H82;_Oa[_lb+0]=_Q5+_B82+_I82;_Oa[_lb+1]=_R5-_F82+_E82;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;}_Sa[_Ua+0]=_Sa[_lb+0]=_Sa[_mb+0]=_Tb1.x/_Tb1._95.width;
_Sa[_Ua+1]=_Sa[_jb+1]=_Sa[_mb+1]=_Tb1.y/_Tb1._95.height;_Sa[_jb+0]=_Sa[_p5+0]=_Sa[_kb+0]=(_Tb1.x+_A8)/_Tb1._95.width;_Sa[_p5+1]=_Sa[_kb+1]=_Sa[_lb+1]=(_Tb1.y+_B8)/_Tb1._95.height;var _G4=(_A9*255.0)<<24;_0d=_G4|(_0d&0xffffff);if(_do==undefined){_do=_0d;_wK=_0d;_xK=_0d;}else {_do=_do|_G4;_wK=_wK|_G4;_xK=_xK|_G4;}if(_BY2){_0d&=0xfffefffe;_do&=0xfffefffe;_wK&=0xfffefffe;_xK&=0xfffefffe;_do|=0x00010000;_wK|=0x00000001;_xK|=0x00010001;}_Qa[_Ua]=_Qa[_mb]=_0d;_Qa[_jb]=_do;_Qa[_p5]=_Qa[_kb]=_wK;_Qa[_lb]=_xK;
}function _Xr3(_8e,_Q5,_R5,_nj,_oj,_VR1){_s8._qU1(_8e,_Q5,_R5,_nj,_oj,_VR1);}function _3s3(_Tb1,_us,_vs,_A8,_B8,_Q5,_R5,_2o,_3o,_ys,_A9){if(!_Tb1)return;if(!_Tb1._95)return;_ys&=0xffffff;_ys|=(_A9*255)<<24;if(_us<_Tb1.XOffset){var _i03=_Tb1.XOffset-_us;_Q5+=_i03*_2o;_A8-=_i03;_us=0;}else {_us-=_Tb1.XOffset;}if(_vs<_Tb1.YOffset){var _i03=_Tb1.YOffset-_vs;_R5+=_i03*_3o;_B8-=_i03;_vs=0;}else {_vs-=_Tb1.YOffset;}if(_A8>(_Tb1.CropWidth-_us))_A8=_Tb1.CropWidth-_us;if(_B8>(_Tb1.CropHeight-_vs))_B8=_Tb1.CropHeight-_vs;
if(_A8<=0||_B8<=0)return;_rs3(_Tb1,_us+_Tb1.x,_vs+_Tb1.y,_A8,_B8,_Q5,_R5,_A8*_2o,_B8*_3o,_ys);}function _4s3(_b7,_c7,_D6,_E6,_5o){var _Ha,_mZ2,_st3,_Oa,_Qa,_Sa;_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_5o=yyGetBool(_5o);var _Hh=_ca._Ja;var _E8=6;if(_5o){_Hh=_ca._yc;_E8=8;}_Ha=_s8._Ia(_Hh,null,_s8._Ka,_E8);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_E8;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;var _Ru3=_mb+_La;var _Su3=_Ru3+_La;
_Oa=_Ha._Pa;_Qa=_Ha._Ra;var _L4=~~((_Kc*255.0)<<24)|(_Lc&0xffffff);if(!_5o){if(_Ir3!=0.0){_D6+=_Ir3;_E6+=_Ir3;}_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=_b7;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=_c7;_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=_D6;_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=_E6;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=_L4;}else {if(_Ir3!=0.0){_b7+=_Ir3;_c7+=_Ir3;_D6+=_Ir3;_E6+=_Ir3;}_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=_Qa[_Ru3]=_Qa[_Su3]=_L4;
_Oa[_mb+0]=_Oa[_Su3+0]=_Oa[_Ru3+0]=_Oa[_Ua+0]=_b7;_Oa[_Su3+1]=_Oa[_p5+1]=_Oa[_jb+1]=_Oa[_Ua+1]=_c7;_Oa[_lb+0]=_Oa[_kb+0]=_Oa[_p5+0]=_Oa[_jb+0]=_D6;_Oa[_kb+1]=_Oa[_lb+1]=_Oa[_mb+1]=_Oa[_Ru3+1]=_E6;_Oa[_Su3+1]=_c7;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Oa[_Ru3+2]=_Oa[_Su3+2]=_Va;}}function _5s3(_b7,_c7,_D6,_E6,_mK,_nK,_Xp,_do,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_mK=yyGetReal(_mK);_nK=yyGetReal(_nK);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);
_5o=yyGetBool(_5o);if(_Ir3!=0.0){_b7+=_Ir3;_c7+=_Ir3;_D6+=_Ir3;_E6+=_Ir3;}var i,w,h;w=_mK;h=_nK;if(w>Math.abs(_D6-_b7)){w=Math.abs(_D6-_b7);}if(h>Math.abs(_E6-_c7)){h=Math.abs(_E6-_c7);}var _8h=(_Nc(_Xp)&0xffffff)|((_Kc*255.0)<<24);var _9h=(_Nc(_do)&0xffffff)|((_Kc*255.0)<<24);var _Tu3=_Fr3/4;var _Hh=_ca._Bc;var _E8=((_Tu3+1)*4)+2;if(_5o){_Hh=_ca._zc;}var _gL=(_b7+_D6)*0.5;var _hL=(_c7+_E6)*0.5;var _Cz=Math.abs(_D6-_b7)*0.5-w*0.5;var _Dz=Math.abs(_E6-_c7)*0.5-h*0.5;var _Ha=_s8._Ia(_Hh,null,_s8._Ka,_E8);var _La=_Ha._Ma()>>2;
var index=_La*_Ha._Na;var _Xc1=index;_Ha._Na+=_E8;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;_Oa[index]=_gL;_Oa[index+1]=_hL;_Oa[index+2]=_Va;_Qa[index]=_8h;index+=_La;for(i=0;i<=_Tu3;i++){_Oa[index]=(_gL+_Cz+w*_Gr3[i]/2);_Oa[index+1]=(_hL+_Dz+h*_Hr3[i]/2);_Oa[index+2]=_Va;_Qa[index]=_9h;index+=_La;}for(i=_Tu3;i<=(_Tu3*2);i++){_Oa[index]=(_gL-_Cz+w*_Gr3[i]/2);_Oa[index+1]=(_hL+_Dz+h*_Hr3[i]/2);_Oa[index+2]=_Va;_Qa[index]=_9h;index+=_La;}for(i=(_Tu3*2);i<=(_Tu3*3);i++){_Oa[index]=(_gL-_Cz+w*_Gr3[i]/2);_Oa[index+1]=(_hL-_Dz+h*_Hr3[i]/2);
_Oa[index+2]=_Va;_Qa[index]=_9h;index+=_La;}for(i=(_Tu3*3);i<=(_Tu3*4);i++){_Oa[index]=(_gL+_Cz+w*_Gr3[i]/2);_Oa[index+1]=(_hL-_Dz+h*_Hr3[i]/2);_Oa[index+2]=_Va;_Qa[index]=_9h;index+=_La;}_Oa[index]=_Oa[_Xc1+_La];_Oa[index+1]=_Oa[_Xc1+_La+1];_Oa[index+2]=_Va;_Qa[index]=_9h;if(_5o){_Oa[_Xc1]=_Oa[_Xc1+_La];_Oa[_Xc1+1]=_Oa[_Xc1+_La+1];_Oa[_Xc1+2]=_Va;_Qa[_Xc1]=_Qa[_Xc1+_La];}}function _6s3(_b7,_c7,_D6,_E6,_Xp,_do,_wK,_xK,_5o){var _Ha,_mZ2,_st3,_Oa,_Qa,_Sa;_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);
_E6=yyGetReal(_E6);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);_wK=yyGetInt32(_wK);_xK=yyGetInt32(_xK);_5o=yyGetBool(_5o);var _G4=((_Kc*255.0)<<24);_Xp=_Nc(_Xp)|_G4;_do=_Nc(_do)|_G4;_wK=_Nc(_wK)|_G4;_xK=_Nc(_xK)|_G4;var _Hh=_ca._Ja;var _E8=6;if(_5o){_Hh=_ca._yc;_E8=8;}_Ha=_s8._Ia(_Hh,null,_s8._Ka,_E8);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_E8;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;var _Ru3=_mb+_La;var _Su3=_Ru3+_La;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;
_Sa=_Ha._Ta;var _L4=~~((_Kc*255.0)<<24)|(_Lc&0xffffff);if(!_5o){_Oa[_Ua+0]=_Oa[_lb+0]=_Oa[_mb+0]=_b7;_Oa[_Ua+1]=_Oa[_jb+1]=_Oa[_mb+1]=_c7;_Oa[_jb+0]=_Oa[_p5+0]=_Oa[_kb+0]=_D6+1.0;_Oa[_p5+1]=_Oa[_kb+1]=_Oa[_lb+1]=_E6+1.0;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Qa[_Ua]=_Qa[_mb]=_Xp;_Qa[_p5]=_Qa[_kb]=_wK;_Qa[_jb]=_do;_Qa[_lb]=_xK;}else {if(_Ir3!=0.0){_b7+=_Ir3;_c7+=_Ir3;_D6+=_Ir3;_E6+=_Ir3;}_Qa[_Ua]=_Qa[_Su3]=_Xp;_Qa[_jb]=_Qa[_p5]=_do;_Qa[_kb]=_Qa[_lb]=_wK;_Qa[_mb]=_Qa[_Ru3]=_xK;
_Oa[_mb+0]=_Oa[_Su3+0]=_Oa[_Ru3+0]=_Oa[_Ua+0]=_b7;_Oa[_Su3+1]=_Oa[_p5+1]=_Oa[_jb+1]=_Oa[_Ua+1]=_c7;_Oa[_lb+0]=_Oa[_kb+0]=_Oa[_p5+0]=_Oa[_jb+0]=_D6;_Oa[_kb+1]=_Oa[_lb+1]=_Oa[_mb+1]=_Oa[_Ru3+1]=_E6;_Oa[_Su3+1]=_c7;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Oa[_Ru3+2]=_Oa[_Su3+2]=_Va;}}function _fs3(_Q5,_R5,_0d){_Q5=yyGetReal(_Q5);_R5=yyGetReal(_R5);_0d=yyGetInt32(_0d);if(_Ir3!=0.0){_Q5+=_Ir3;_R5+=_Ir3;}var _Ha,_Oa,_Qa;_Ha=_s8._Ia(_ca._xc,null,_s8._Ka,1);var _La=_Ha._Ma()>>2;var _Ua=_La*_Ha._Na;
_Ha._Na++;_Oa=_Ha._Pa;_Qa=_Ha._Ra;var _L4=~~((_Kc*255.0)<<24)|_Nc(_0d);_Oa[_Ua+0]=~~_Q5+0.5;_Oa[_Ua+1]=~~_R5+0.5;_Oa[_Ua+2]=_Va;_Qa[_Ua]=_L4;}function _bs3(_b7,_c7,_D6,_E6,_8u,_9u,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_8u=yyGetReal(_8u);_9u=yyGetReal(_9u);_5o=yyGetBool(_5o);if(_Ir3!=0.0){_b7+=_Ir3;_c7+=_Ir3;_D6+=_Ir3;_E6+=_Ir3;_8u+=_Ir3;_9u+=_Ir3;}var _Ha,_Oa,_Qa,_Sa;if(_5o){_Ha=_s8._Ia(_ca._zc,null,_s8._Ka,4);}else {_Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,3);}var _La=_Ha._Ma()>>2;
var index=_La*_Ha._Na;_Ha._Na+=3;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;_Oa[_Ua+0]=_b7;_Oa[_Ua+1]=_c7;_Oa[_Ua+2]=_Va;_Oa[_jb+0]=_D6;_Oa[_jb+1]=_E6;_Oa[_jb+2]=_Va;_Oa[_p5+0]=_8u;_Oa[_p5+1]=_9u;_Oa[_p5+2]=_Va;if(_5o){_Oa[_kb+0]=_b7;_Oa[_kb+1]=_c7;_Oa[_kb+2]=_Va;_Ha._Na++;}_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=((_Kc*255.0)<<24)|_Lc;}function _7s3(_b7,_c7,_D6,_E6,_Xp,_do,_zK,_5o){if(_zK){_6s3(_b7,_c7,_D6,_E6,_Xp,_Xp,_do,_do,_5o);}else {_6s3(_b7,_c7,_D6,_E6,
_Xp,_do,_do,_Xp,_5o);}}function _8s3(_Q5,_R5){_fs3(_Q5,_R5,_fG);}function _9s3(_Q5,_R5){return _as3(_Q5,_R5)&0x00ffffff;}function _as3(_Q5,_R5){_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);if(_rz<0){_R5=_s8._iS1-_R5;}return _s8._gV1(_Q5,_R5);}function _cs3(_b7,_c7,_D6,_E6,_8u,_9u,_Es,_Fs,_Gs,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_8u=yyGetReal(_8u);_9u=yyGetReal(_9u);_Es=yyGetInt32(_Es);_Fs=yyGetInt32(_Fs);_Gs=yyGetInt32(_Gs);_5o=yyGetBool(_5o);if(_Ir3!=0.0){_b7+=_Ir3;
_c7+=_Ir3;_D6+=_Ir3;_E6+=_Ir3;_8u+=_Ir3;_9u+=_Ir3;}var _Ha,_Oa,_Qa,_Sa;var _G4=((_Kc*255.0)<<24);_Es=_G4|_Nc(_Es);_Fs=_G4|_Nc(_Fs);_Gs=_G4|_Nc(_Gs);if(_5o){_Ha=_s8._Ia(_ca._zc,null,_s8._Ka,4);}else {_Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,3);}var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=3;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;_Oa=_Ha._Pa;_Qa=_Ha._Ra;_Oa[_Ua+0]=_b7;_Oa[_Ua+1]=_c7;_Oa[_Ua+2]=_Va;_Oa[_jb+0]=_D6;_Oa[_jb+1]=_E6;_Oa[_jb+2]=_Va;_Oa[_p5+0]=_8u;_Oa[_p5+1]=_9u;_Oa[_p5+2]=_Va;
if(_5o){_Oa[_kb+0]=_b7;_Oa[_kb+1]=_c7;_Oa[_kb+2]=_Va;_Ha._Na++;}_Qa[_Ua]=_Es;_Qa[_jb]=_Fs;_Qa[_p5]=_Gs;_Qa[_kb]=_Es;}function _ds3(_b7,_c7,_D6,_E6,_Xp,_do,_5o){_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);_5o=yyGetBool(_5o);if(_Ir3!=0.0){_b7+=_Ir3;_c7+=_Ir3;_D6+=_Ir3;_E6+=_Ir3;}var _gL=(_b7+_D6)/2;var _hL=(_c7+_E6)/2;var _Cz=Math.abs((_b7-_D6)/2);var _Dz=Math.abs((_c7-_E6)/2);var _G4=((_Kc*255.0)<<24);_Xp=_G4|_Nc(_Xp);_do=_G4|_Nc(_do);
var _683,_Ha,_Oa,_Qa;var _n5;if(_5o){var _Uu3=_Fr3+1;_Ha=_s8._Ia(_ca._zc,null,_s8._Ka,_Uu3);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_Uu3;_Oa=_Ha._Pa;_Qa=_Ha._Ra;for(var i=0;i<=_Fr3;i++){_Oa[index]=(_gL+(_Cz*_Gr3[i]));_Oa[index+1]=(_hL+(_Dz*_Hr3[i]));_Oa[index+2]=_Va;_Qa[index]=_do;index+=_La;}}else {var _Vu3=_Fr3*3;_Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,_Vu3);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=_Vu3;_Oa=_Ha._Pa;_Qa=_Ha._Ra;for(var i=0;i<_Fr3;i++){_Oa[index]=_gL;_Oa[index+1]=_hL;_Oa[index+2]=_Va;
_Qa[index]=_Xp;index+=_La;_Oa[index]=(_gL+_Cz*_Gr3[i]);_Oa[index+1]=(_hL+_Dz*_Hr3[i]);_Oa[index+2]=_Va;_Qa[index]=_do;index+=_La;_Oa[index]=(_gL+_Cz*_Gr3[i+1]);_Oa[index+1]=(_hL+_Dz*_Hr3[i+1]);_Oa[index+2]=_Va;_Qa[index]=_do;index+=_La;}}}function _es3(_Q5,_R5,_Mj,_Xp,_do,_5o){_ds3(_Q5-_Mj,_R5-_Mj,_Q5+_Mj,_R5+_Mj,_Xp,_do,_5o);}function _gs3(_b7,_c7,_D6,_E6){_is3(_b7,_c7,_D6,_E6,1.0,_fG,_fG);}function _hs3(_b7,_c7,_D6,_E6,_nj){_is3(_b7,_c7,_D6,_E6,_nj,_fG,_fG);}function _is3(_b7,_c7,_D6,_E6,_nj,_Xp,_do){
_b7=yyGetReal(_b7);_c7=yyGetReal(_c7);_D6=yyGetReal(_D6);_E6=yyGetReal(_E6);_nj=yyGetReal(_nj);_Xp=yyGetInt32(_Xp);_do=yyGetInt32(_do);if(_Ir3!=0.0){_b7+=_Ir3;_c7+=_Ir3;_D6+=_Ir3;_E6+=_Ir3;}var _G4=((_Kc*255.0)<<24);_Xp=_G4|_Nc(_Xp);_do=_G4|_Nc(_do);var _27=(_D6-_b7);var _47=(_E6-_c7);var _V6=(_27*_27)+(_47*_47);if(_V6<0.0001)return;_V6=Math.sqrt(_V6);if(_V6<0.0001)return;_27=0.5*_nj*_27/_V6;_47=0.5*_nj*_47/_V6;var _Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,6);var _La=_Ha._Ma()>>2;var index=_La*_Ha._Na;_Ha._Na+=6;
var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;_Oa[_Ua+0]=(_b7-_47);_Oa[_Ua+1]=(_c7+_27);_Oa[_jb+0]=(_D6-_47);_Oa[_jb+1]=(_E6+_27);_Oa[_p5+0]=(_D6+_47);_Oa[_p5+1]=(_E6-_27);_Oa[_kb+0]=(_D6+_47);_Oa[_kb+1]=(_E6-_27);_Oa[_lb+0]=(_b7+_47);_Oa[_lb+1]=(_c7-_27);_Oa[_mb+0]=(_b7-_47);_Oa[_mb+1]=(_c7+_27);_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Qa[_Ua]=_Qa[_lb]=_Qa[_mb]=_Xp;_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_do;
}function _Wu3(_Tb1,_nj,_oj){var _pV1=_s8._jV1(_nj,_oj);_Tb1._Xu3=_pV1;_Tb1._Yd1=_pV1._Yd1;_Tb1._95._Ba=_pV1._NU1;}function _ss3(_nj,_oj,_Ld1){_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);if(_Ld1!=undefined){_Ld1=yyGetInt32(_Ld1);}var __4=new _3s();__4._95=document.createElement("surf");__4._Xc=_nj;__4._Yc=_oj;__4._95.width=_nj;__4._95.height=_oj;__4._95._Xc=_nj;__4._95._Yc=_oj;if(_Ld1!=undefined){var _8s=_Zr._26(_Ld1);if(_8s&&_8s._Xu3){_s8._rV1(_8s._Xu3);}}_Wu3(__4,_nj,_oj);__4.x=0;__4.y=0;__4.w=_nj;__4.h=_oj;
__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;__4.oh=__4.h;if(_Ld1!=undefined){_Zr.Set(_Ld1,__4);__4.tp=_Ld1;}else {__4.tp=_Zr._Df(__4);}__4._Nd1=__4;__4._95.complete=true;__4._D8=[];__4._E8=0;__4._F8=4;__4._Od1=0;__4._Ss=null;__4._nb1=__4._95;return __4.tp;}function _ts3(_gg){_gg=yyGetInt32(_gg);if(_gg<0){return;}var _8s=_Zr._26(_gg);if(_8s&&_8s._Xu3){if(_Id1(_gg)){_Bi("Error: Surface in use via surface_set_target(). It can not be freed until it has been removed from the surface stack.");
return;}_s8._HT1();_s8._rV1(_8s._Xu3);_8s._95._Ba=undefined;_Zr._uj(_gg);}else if(!_8s){return 0;}}function _us3(_gg,_Q5,_R5){return _vs3(_gg,_Q5,_R5)&0x00ffffff;}function _vs3(_gg,_Q5,_R5){var _P4=0;var _8s=_Zr._26(yyGetInt32(_gg));if(_8s!=null){_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);_P4=_s8._hV1(_8s._Yd1,_Q5,_R5);}return _P4;}function _os3(_gg,_Q5,_R5){var _8s=_Zr._26(yyGetInt32(_gg));if(!_8s)return;_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);var colour=((_Kc*255.0)<<24)|0x00ffffff;_4a._rb1(_8s,0,0,_8s._Xc,
_8s._Yc,_Q5,_R5,_8s._Xc,_8s._Yc,colour);}function _Yu3(_U8,_L6,_M6,_N6,_O6,_hb,_ib,_sl2,_tl2,_Fs1,_Zu3,_o5,__u3,_8h,_9h,_9m1,_II2){var z=(_Va);var _Sc=_vc(_9c);var _0v3=_s8._Ia(_Sc,_U8,_s8._Ka,6);var _La=_0v3._Ma()>>2;var index=_La*_0v3._Na;_0v3._Na+=6;var _Oa=_0v3._Pa;var _Qa=_0v3._Ra;var _Sa=_0v3._Ta;var _Ua=index;var _jb=_Ua+_La;var _p5=_jb+_La;var _kb=_p5+_La;var _lb=_kb+_La;var _mb=_lb+_La;_Oa[_Ua+0]=_Oa[_mb+0]=_L6;_Oa[_Ua+1]=_Oa[_mb+1]=_M6;_Oa[_jb+0]=_N6;_Oa[_jb+1]=_O6;_Oa[_p5+0]=_Oa[_kb+0]=_hb;_Oa[_p5+1]=_Oa[_kb+1]=_ib;
_Oa[_lb+0]=_sl2;_Oa[_lb+1]=_tl2;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=z;_Qa[_Ua]=_Qa[_mb]=_8h;_Qa[_jb]=_9h;_Qa[_p5]=_Qa[_kb]=_9m1;_Qa[_lb]=_II2;_Sa[_Ua+0]=_Sa[_mb+0]=_Fs1;_Sa[_Ua+1]=_Sa[_mb+1]=_Zu3;_Sa[_jb+0]=_o5;_Sa[_jb+1]=_Zu3;_Sa[_p5+0]=_Sa[_kb+0]=_o5;_Sa[_p5+1]=_Sa[_kb+1]=__u3;_Sa[_lb+0]=_Fs1;_Sa[_lb+1]=__u3;return true;}function _ws3(_Ae1,_1v3,_2v3,_vj){_Ae1=yyGetInt32(_Ae1);_1v3=yyGetInt32(_1v3);_2v3=yyGetInt32(_2v3);_vj=yyGetInt32(_vj);_s8._je1();_s8._oa._8C();_fe1(_Ae1);
_Ww(0,0,surface_get_width(_Ae1),surface_get_height(_Ae1),0);var _oj=surface_get_height(_vj);var _nj=surface_get_width(_vj);var _Q5=0;var _R5=0;var _3v3=_2v3;var _4v3=(_2v3+_oj);var _M6=_R5;var _O6=(_R5+_oj);var _m5=(1/_nj);var _n5=(1/_oj);_Yu3(surface_get_texture(_vj)._Ec._Ba,_1v3,_3v3,_1v3+_nj,_3v3,_1v3+_nj,_4v3,_1v3,_4v3,_m5*_Q5,_n5*_M6,_m5*(_Q5+_nj),_n5*_O6,0xffffffff,0xffffffff,0xffffffff,0xffffffff);_s8._je1();_ke1();_s8._oa._9C();}function _xs3(_Ae1,_1v3,_2v3,_vj,_V4,_W4,_Be1,_Ce1){_Ae1=yyGetInt32(_Ae1);
_1v3=yyGetInt32(_1v3);_2v3=yyGetInt32(_2v3);_vj=yyGetInt32(_vj);_V4=yyGetInt32(_V4);_W4=yyGetInt32(_W4);_Be1=yyGetInt32(_Be1);_Ce1=yyGetInt32(_Ce1);_s8._HT1();_s8._oa._8C();_fe1(_Ae1);_Ww(0,0,surface_get_width(_Ae1),surface_get_height(_Ae1),0);var _oj=_Ce1;var _nj=_Be1;var _Q5=_V4;var _R5=_W4;var _3v3=_2v3;var _4v3=(_2v3+_oj);var _M6=_R5;var _O6=(_R5+_oj);var _m5=(1/surface_get_width(_vj));var _n5=(1/surface_get_height(_vj));_Yu3(surface_get_texture(_vj)._Ec._Ba,_1v3,_3v3,_1v3+_nj,_3v3,_1v3+_nj,_4v3,_1v3,
_4v3,_m5*_Q5,_n5*_M6,_m5*(_Q5+_nj),_n5*_O6,0xffffffff,0xffffffff,0xffffffff,0xffffffff);_s8._HT1();_ke1();_s8._oa._9C();_s8._HT1();}function _As3(_S4,_Q5,_R5,_nj,_oj,_Wr,_Xr){_RD("sprite_add_from_screen() (WebGL)");return -1;}function _zs3(_gg,_Q5,_R5,_nj,_oj,_Wr,_Xr){var _8s=_Zr._26(_gg);if(_8s!=null){_Q5=~~_Q5;_R5=~~_R5;_nj=~~_nj;_oj=~~_oj;var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);var _Vc=_s8._2V1(_nb1,_8s._Yd1,_Q5,_R5,_nj,_oj,_Wr,_Xr);var __4=new _3s();__4.x=0;__4.y=0;
__4.w=_Vc._FU1;__4.h=_Vc._GU1;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=_nj;__4.oh=_oj;__4.tp=_ks(_nb1);__4._95=_35[__4.tp];__4._95._Ba=_Vc;__4._95._Xc=_nb1.width;__4._95._Yc=_nb1.height;__4._95.complete=true;var _1s=new _2s();_1s._Tr=__4;return _Wq._4s(_1s);}debug("Surface "+_gg+" does not exist");return -1;}function _ys3(_Q5,_R5,_nj,_oj,_Wr,_Xr){_Q5=~~_Q5;_R5=~~_R5;var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);var _Vc=_s8._XU1(_nb1,_Q5,
_R5,_nj,_oj,_Wr,_Xr,(_rz>0));var __4=new _3s();__4.x=0;__4.y=0;__4.w=_Vc._FU1;__4.h=_Vc._GU1;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=_nj;__4.oh=_oj;__4.tp=_ks(_nb1);__4._95=_35[__4.tp];__4._95._Ba=_Vc;__4._95.width=_nj;__4._95.height=_oj;__4._95._Xc=_nj;__4._95._Yc=_oj;__4._95.complete=true;var _1s=new _2s();_1s._Tr=__4;return _Wq._4s(_1s);}function _Bs3(_gg,_Q5,_R5,_nj,_oj,_Wr,_Xr,_tb1,_ub1){var _8s=_Zr._26(yyGetInt32(_gg));if(_8s!=null){_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);
_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);_Wr=yyGetBool(_Wr);_Xr=yyGetBool(_Xr);_tb1=yyGetInt32(_tb1);_ub1=yyGetInt32(_ub1);var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);var _Vc=_s8._2V1(_nb1,_8s._Yd1,_Q5,_R5,_nj,_oj,_Wr,_Xr);var __4=new _3s();__4.x=0;__4.y=0;__4.w=_Vc._FU1;__4.h=_Vc._GU1;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=_nj;__4.oh=_oj;__4.tp=_ks(_nb1);__4._95=_35[__4.tp];__4._95._Ba=_Vc;__4._95._Xc=_nb1.width;__4._95._Yc=_nb1.height;
__4._95.complete=true;var _qb1=new _vb1();_qb1.pName="surface.copy";_qb1.width=_nj;_qb1.height=_oj;_qb1._MN=new _OE();_qb1._MN.right=_qb1.width;_qb1._MN.bottom=_qb1.height;_qb1.transparent=true;_qb1.smooth=true;_qb1.preload=true;_qb1._fb1=0;_qb1._Pq=false;_qb1.xOrigin=_tb1;_qb1.yOrigin=_ub1;_qb1._js=true;_qb1._T6=1;_qb1._Cb1=0;_qb1._xb1=false;_qb1._yb1=false;_qb1._U6=[];_qb1._05=[];_qb1.Masks=[];_qb1._gb1();_qb1._05[0]=__4;var _eU=_16._wb1(_qb1);return _eU;}debug("Surface "+yyGetInt32(_gg)+" does not exist");
return -1;}function _Cs3(_S4,_gg,_Q5,_R5,_nj,_oj,_Wr,_Xr){var _8s=_Zr._26(yyGetInt32(_gg));if(_8s!=null){_S4=yyGetInt32(_S4);_Q5=yyGetInt32(_Q5);_R5=yyGetInt32(_R5);_nj=yyGetInt32(_nj);_oj=yyGetInt32(_oj);_Wr=yyGetBool(_Wr);_Xr=yyGetBool(_Xr);var _nb1=document.createElement(_eE);var _ob1=_nb1.getContext('2d');_pb1(_ob1);var _Vc=_s8._2V1(_nb1,_8s._Yd1,_Q5,_R5,_nj,_oj,_Wr,_Xr);var __4=new _3s();__4.x=0;__4.y=0;__4.w=_nj;__4.h=_oj;__4.XOffset=0;__4.YOffset=0;__4.CropWidth=__4.w;__4.CropHeight=__4.h;__4.ow=__4.w;
__4.oh=__4.h;__4.tp=_ks(_nb1);__4._95=_35[__4.tp];__4._95._Ba=_Vc;__4._95._Xc=_nb1.width;__4._95._Yc=_nb1.height;__4._95.complete=true;var _3F=_16._26(_S4);_3F._05[_3F._05.length]=__4;_3F._T6++;return _S4;}debug("Surface "+yyGetInt32(_gg)+" does not exist");return -1;}function _Ds3(_k03,_l03){var _m03,_p03;_m03=_s8._AV1(_l03);_p03=_s8._AV1(_k03);var _k91=(_k03.h*_k03.w*4);for(var i=_k91-4;i>=0;i-=4){var c=~~((_m03[i]+_m03[i+1]+_m03[i+2])/3);_p03[i+3]=c;}var _AT2=new Image();_s8._sV1(_k03._95._Ba._NU1);_k03._95._Ba=_s8._8V1(_AT2,
_p03,_k03.w,_k03.h);return true;}function _qs3(_gg){var _1X=_0X._26(yyGetInt32(_gg));if(_1X){var _Ha,_La,index,_mZ2,_st3,_Oa,_Qa,_Sa,_b7,_c7,_D6,_E6;var _Iu=~~((_Kc*255.0)<<24)|0x0000ff;var _Ju=~~((_Kc*255.0)<<24)|0x00ff00;var _E8=6*(_1X._RW*_1X._QW);_Ha=_s8._Ia(_ca._Ja,null,_s8._Ka,_E8);_La=_Ha._Ma()>>2;index=_La*_Ha._Na;_st3=_Ha._Na;_Ha._Na+=_E8;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;for(var y=0;y<_1X._RW;y++){for(var x=0;x<_1X._QW;x++,index+=_La*6){var _L4=_Ju;var _Ua=index,_jb=_Ua+_La,_p5=_jb+_La,_kb=_p5+_La,_lb=_kb+_La,
_mb=_lb+_La;if(_1X._UW[(_1X._RW*x)+y]<0)_L4=_Iu;_b7=~~(_1X._OW+x*_1X._SW);_c7=~~(_1X._PW+y*_1X._TW);_D6=_b7+_1X._SW;_E6=_c7+_1X._TW;_Oa[_mb+0]=_Oa[_lb+0]=_Oa[_Ua+0]=_b7;_Oa[_mb+1]=_Oa[_jb+1]=_Oa[_Ua+1]=_c7;_Oa[_kb+0]=_Oa[_p5+0]=_Oa[_jb+0]=_D6;_Oa[_lb+1]=_Oa[_kb+1]=_Oa[_p5+1]=_E6;_Oa[_Ua+2]=_Oa[_jb+2]=_Oa[_p5+2]=_Oa[_kb+2]=_Oa[_lb+2]=_Oa[_mb+2]=_Va;_Qa[_Ua]=_Qa[_jb]=_Qa[_p5]=_Qa[_kb]=_Qa[_lb]=_Qa[_mb]=_L4;}}return;}_55("Error: invalid mp_grid ID (mp_grid_draw)");}function _ps3(_gg,_R_,_S_,_P_){var _vW=_wW.Paths[yyGetInt32(_gg)];
if(!_vW)return;_R_=yyGetInt32(_R_);_S_=yyGetInt32(_S_);_P_=yyGetBool(_P_);var _Ha,_Uf3,_Oa,_Qa,_Sa,_La;var _L4=~~((_Kc*255.0)<<24)|(_Lc&0xffffff);var _27,_47,_T_;var _U_=0;var _V_=_vW._W_(0);if(!_P_){_R_=_R_-_V_.x;_S_=_S_-_V_.y;}else {_R_=0;_S_=0;}_U_=_Mk(_vW.length/4.0);if(_U_==0)return;var _E8=_U_*2;_Ha=_s8._Ia(_ca._yc,null,_s8._Ka,_E8);_La=_Ha._Ma()>>2;_Uf3=_La*_Ha._Na;_Ha._Na+=_E8;var _Oa=_Ha._Pa;var _Qa=_Ha._Ra;for(var i=0;i<_U_;i++){_V_=_vW._W_(i/_U_);var _b7=~~(_R_+_V_.x);var _c7=~~(_S_+_V_.y);_Qa[_Uf3+0]=_L4;
_Oa[_Uf3+0]=_b7;_Oa[_Uf3+1]=_c7;_Oa[_Uf3+2]=_Va;_Uf3+=_La;_V_=_vW._W_((i+1)/_U_);var _D6=~~(_R_+_V_.x);var _E6=~~(_S_+_V_.y);_Qa[_Uf3+0]=_L4;_Oa[_Uf3+0]=_D6;_Oa[_Uf3+1]=_E6;_Oa[_Uf3+2]=_Va;_Uf3+=_La;}}function _Wr3(_1o){_s8._pU1(_1o);}function _ms3(_rj,_4l){_xb3=_rj;_yb3=_4l;_s8._IT1(_xb3,_yb3);}function _ns3(_5v3){if(_5v3){_nL(0);}else {_pL(_4C,_6C);}}function _Es3(_C8){if(_C8){return 1.0/_C8._Ec.width;}return 1.0;}function _Fs3(_C8){if(_C8){return 1.0/_C8._Ec.height;}return 1;}function _Gs3(_a51,_8e){_s8._rU1(yyGetInt32(_a51),
_8e._Ec._Ba);}function _Hs3(_b51){_b51=yyGetInt32(_b51);if(_7U2[_b51]&&_7U2[_b51]._nT1){return 1;}return 0;}function _Is3(_b51){_b51=yyGetInt32(_b51);var __S1=(_b51==-1)?_gz():_7U2[_b51]._nT1;if(__S1){_s8._fz(__S1);}}function _Us3(_b51){_b51=yyGetInt32(_b51);var __S1=(_b51==-1)?_gz():_7U2[_b51]._nT1;if(__S1){return __S1.name;}return "";}function _Js3(_b51,_c51){_b51=yyGetInt32(_b51);var __S1=(_b51==-1)?_gz():_7U2[_b51]._nT1;if(__S1){return _s8._eU1(_7U2[_b51]._nT1,yyGetString(_c51));}return undefined;}function _Ks3(_h51,
_iU1){_h51=yyGetInt32(_h51);if(_h51!=-1){_s8._hU1(_h51,_iU1);}}function _Ls3(_h51,_iU1){_h51=yyGetInt32(_h51);if(_h51!=-1){_s8._jU1(_h51,_iU1);}}function _Ms3(_h51,_iU1){_h51=yyGetInt32(_h51);if(_h51!=-1){var _rA=_sA(_kA);_s8._kU1(_h51,new Float32Array(_rA._K6));}}function _Ns3(_b51,_8e){_b51=yyGetInt32(_b51);if(_7U2[_b51]){var __S1=_7U2[_b51];if(__S1){for(var i=0;i<__S1._oT1.length;i++){if(__S1._oT1[i]==_8e){return Number(i);}}}}return 0;}function _Os3(_g51){_BY2=yyGetBool(_g51);}function _Ps3(_h51,_8l){if(_8l instanceof Array){
_s8._nU1(yyGetInt32(_h51),_e51);}else {alert('ERROR: shader_set_uniform_i_array() Data is not an array');}}function _Qs3(_h51,_8l){if(_8l instanceof Array){_s8._oU1(yyGetInt32(_h51),_8l);}else {alert('ERROR: shader_set_uniform_f_array() Data is not an array');}}function _Rs3(_h51,_jl,_i51,_ce){var _Ha=_XM._26(yyGetInt32(_jl));if(!_Ha){alert('ERROR: shader_set_uniform_f_buffer() Data is not a buffer');return;}_i51=yyGetInt32(_i51);if(_i51<0){alert('ERROR: shader_set_uniform_f_buffer() Invalid offset '+_i51);
return;}_ce=yyGetInt32(_ce);if(_ce<=0||((_i51+_ce*4)>_Ha._4R2)){alert('ERROR: shader_set_uniform_f_buffer() Invalid count '+_ce+'. Trying to read outside of the buffer.');return;}var _8l=new Array(_ce);for(var i=0;i<_ce;++i){_8l[i]=_Ha._qS2(_w82,_i51);_i51+=4;}_s8._oU1(yyGetInt32(_h51),_8l);}function _Ss3(_h51,_8l){if(_8l instanceof Array){var _e51=new Float32Array(_8l);_s8._kU1(yyGetInt32(_h51),_e51);}else {alert('ERROR: shader_set_uniform_matrix_array() Data is not an array');}}function _Vs3(_oL){}function _Ws3(_6v3){
var _DB=_s8._2U1();for(var _TB=0;_TB<_DB;_TB++){_fM2(_TB,_6v3);}}function _Xs3(_a51,_6v3){_Ar3[_a51]=_6v3?true:false;_s8._0U1(_a51,_Ar3[_a51]);}function _Ys3(_CB){var _DB=_s8._2U1();for(var _TB=0;_TB<_DB;_TB++){_gM2(_TB,_CB);}}function _Zs3(_a51,_CB){_s8._1U1(_a51,_CB?_ca._HB:_ca._JB);}function __s3(){return _Ar3[0];};function _0t3(_C8){if(typeof(_C8)=="object"){return 1.0;}else if((yyGetInt32(_C8)!=-1)&&_35[yyGetInt32(_C8)]){return 1.0;}return 0;}function _1t3(_C8){if(typeof(_C8)=="object"){return 1.0;}else if((yyGetInt32(_C8)!=-1)&&_35[yyGetInt32(_C8)]){
return 1.0;}return 0;}function _2t3(_C8){if((_C8==-1)||(_C8===undefined))return [0,0,1,1];var __4=_C8._Fc;var _95=__4._95;if(__4===undefined||_95===undefined)return [0,0,1,1];var _Ws=1.0/_95.width;var _Xs=1.0/_95.height;var _Ys=[];_Ys.push(__4.x*_Ws,__4.y*_Xs,(__4.x+__4.CropWidth)*_Ws,(__4.y+__4.CropHeight)*_Xs);return _Ys;}function _Ts3(){return 1;}function _3t3(_cz){_yB=(_cz>0.5)?true:false;_s8._ZT1(_yB,_AB);}function _4t3(_Ln){_AB=_Ln/255.0;_s8._ZT1(_yB,_AB);}function _5t3(){return(_yB?1.0:0.0);}function _6t3(){
return _AB;}function _jA(_ld,_aw){_OA[_ld]=new _Zy(_aw);_1M();_WL|=(_ld==_YL||_ld==_ZL);if(_s8==null)return;switch(_ld){case _ZL:_s8._sz(_OA[_ld]);break;case _YL:_s8._mz(_OA[_ld]);break;case _kA:_s8._wU1(_OA[_ld]);break;}_s8._je1();}function _sA(_ld){switch(_ld){case _ZL:case _YL:case _kA:return _OA[_ld];break;}}function _gt3(){if(_xD.Shaders){for(var i=0;i<_xD.Shaders.length;i++){var _mT1=_xD.Shaders[i];_7U2[i]=_s8._iT1(_mT1.Vertex,_mT1.Fragment,_mT1.Attributes);if(_7U2[i]._nT1==null){debug("Shader "+_mT1.name+" can't be compiled. Please check the shader for errors");
}}}return true;}function _ks3(_Mc){_fG=_Mc;_Lc=_Nc(_Mc);}function _Ca(_Tb1){if(!_Tb1._Ba){var _Vc=_s8._yU1(_Tb1._95);_Tb1._95._Ba=_Vc;_Tb1._95._Xc=_Tb1._95.width;_Tb1._95._Yc=_Tb1._95.height;}}function _0t(_C8,_DU1){if(_C8._NU1)return;if(_DU1===_ca._HU1||((_DU1===_ca._IU1)&&(_C8.Image._AU1!==undefined&&_C8.Image._AU1!==0))){_C8._Ag|=(_JU1._hZ1|_JU1._KU1);}_s8._BU1(_C8,_DU1);_Eo3(_C8);}function _4t(_C8,_DU1){if(_C8._NU1){_s8._sV1(_C8._NU1);_C8._NU1=undefined;_C8._Ag&=~_JU1._MU1;_Fo3(_C8);}}function _rL(){
_s8._HT1();var _7v3=_35.length;var i;for(i=0;i<_7v3;i++){if(_35[i]){if(_35[i]._Ba){_4t(_35[i]._Ba);}}}}function _dV1(_C8,_DU1){if(_C8._NU1!=undefined){var _8v3=true;if(_DU1!==_ca._eV1&&(((_DU1==_ca._HU1)&&(((_C8._Ag&_JU1._MU1)==0)&&((_C8._Ag&_JU1._hZ1)!=0)))||(((_DU1==_ca._PW1)&&((_C8._Ag&_JU1._MU1)!=0)))||(((_DU1==_ca._IU1)&&(((_C8._Ag&_JU1._KU1)&&((_C8._Ag&_JU1._MU1)==0))||(((_C8._Ag&_JU1._KU1)==0)&&((_C8._Ag&_JU1._MU1)!=0))))))){_8v3=false;}return _8v3;}else {return false;}}function _7t3(_jl,_yT2,_nr,
_i51,_9v3){var _Ha=_XM._26(yyGetInt32(_jl));var _8s=_Zr._26(yyGetInt32(_yT2));if(!_Ha||!_8s)return false;if(_i51===undefined)_i51=0;var _rP1=_s8._iV1(_8s._Yd1,0,0,_8s._Xc,_8s._Yc);if(_Ha._eQ2==_7k&&_i51+_rP1.length>_Ha._4R2){_Ha._bR2(_i51+_rP1.length);}for(var i=0;i<_rP1.length;i++){_Ha._DS2(_2N,i,_rP1[i]);}_rP1=null;}function _8t3(_jl,_yT2,_nr,_i51,_9v3){var _Ha=_XM._26(yyGetInt32(_jl));var _8s=_Zr._26(yyGetInt32(_yT2));if(!_Ha||!_8s)return false;var data=new Uint8Array(_Ha.__M);_Xr3(_8s._95._Ba,0,0,_8s._Xc,
_8s._Yc,data);data=null;}var _av3=0;var _bv3=100;var canvas=null;var _cv3,_dv3,_ev3,_fv3,_gv3,_hv3,_iv3,_jv3;var _713=false;var _4a=null;var g_CurrentGraphics;var _kv3=null;var _sg3=null;var _lv3=0;var _mv3=false;var _nv3=0;var _ov3=0;var _at2=60;if(!Date.now)Date.now=function(){return new Date().getTime();};var _pv3=Date.now();var _qv3=_pv3;var _rv3=_pv3;var _JM="anonymous";var _Ed1=-1;var _Sd1=-1;var _Td1=-1;var _fk1=true;var _gk1=true;var _mk1=true;var _hk1=-1;var _ik1=-1;var _Gd1=-1;var _Hd1=-1;var _Fd1=false;var _lk1=true;
var _nk1={x:0,y:0,w:0,h:0};var _PJ=false;var _sv3=false;var _tv3=1;var _uv3=1;var _vv3=1;var _wv3=0;var _xv3=0;var _yv3=0;if(window.chrome&&window.chrome.app){_713=true;try{if(window&&window['localStorage']){_713=false;}}catch(e){}}if(Number.isNaN===undefined){Number.isNaN=function(_UE){return typeof(_UE)==='number'&&isNaN(_UE);};}window._zv3=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(!window._zv3){
window.addEventListener("message",function(e){if(e.source==window&&e.data=="yyRequestAnimationFrame"){e._Av3();_Bv3();}},true);}window.requestAnimFrame=(function(){return window._zv3||function(_Gg1){window.setTimeout(_Gg1,1000/60);};})();var _Cv3=undefined;function _Dv3(_OL){return(_xD.FeatureFlags!==undefined)&&(_xD.FeatureFlags[_OL]!==undefined);}function exception_unhandled_handler(_HV){var _P4=_Cv3;if((_HV instanceof Function)||(_HV==undefined)){_Cv3=_HV;}else if(typeof _HV=="number"){var _HD=_ak1(_HV);
if(_HD!=null){_Cv3=_HD;}else {_55("exception_unhandled_handler : argument should be a function");}}else {_55("exception_unhandled_handler : argument should be a function");}return _P4;}function _Ev3(event){if((_Cv3==undefined)||!(_Cv3 instanceof Function)){var string="Unhandled Exception - "+event.message+" in file "+event.filename+" at line "+event.lineno;_sD(string);game_end(-1);}else {var _P4=_Cv3(undefined,undefined,event.error);game_end(_P4);}debugger;return false;}function _Fv3(error){var string="Unhandled Rejection - "+error.message;
_sD(string);game_end(-2);debugger;return false;}window.addEventListener("error",_Ev3);window.addEventListener("unhandledrejection",_Fv3);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,"send_async_event_social":_Gv3,"get_facebook_app_id":_Hv3,"get_app_version_string":_Iv3};function _Hv3(){return _xD.Options.Facebook;}function _Iv3(){var appVersion=_xD.Options.MajorVersion+"."+_xD.Options.MinorVersion+"."+_xD.Options.BuildVersion+" r"+_xD.Options.RevisionVersion;
return appVersion;}function _Gv3(_Jv3){var _Kv3=JSON.stringify(_Jv3);var _Lv3=json_decode(_Kv3);g_pBuiltIn.async_load=_Lv3;_H3._I3(_ox2,0);ds_map_destroy(_Lv3);}var _uD=null;function _Mv3(){if(_uD){_uD.document.getElementById("debug_console").value="";}}function _Nv3(){if(_uD){if(_At2){_At2=false;}else {_At2=true;}}}function CreateDebugConsole(){try{_uD=window.open('','gamemakerstudio_debugconsole_window','width=990,height=600,titlebar=yes,scrollbars,resizable');if(_uD){if(!_uD.document.getElementById("debug_console")){
{_uD.document.write('<!DOCTYPE html><html>'+'<header>'+'<title>GameMaker: Studio - 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 _Ov3=_uD.document.getElementById("clear_console_button");_Ov3.onclick=function(){_Mv3();};_Ov3=_uD.document.getElementById("gm_pause_button");_Ov3.onclick=function(){_Nv3();};}}_si1=0x71562;}catch(e){debug(e.message);}}function _Pv3(){var c=document.getElementById(_eE);var _Qg=c.parentNode;var load=document.createElement('canvas');_7g(canvas,_8g);load.style.position="absolute";load.style.left=_8g.left+"px";load.style.top=_8g.top+"px";load.width=c.width;load.height=c.height;load.setAttribute("id",
"loading_screen");_Qg.insertBefore(load,c.nextSibling);_kv3=load.getContext('2d');_pb1(_kv3);}function _Qv3(__n){var _qi="";var _V6=__n.length;for(var i=0;i<_V6;i++){_qi=_qi+String.fromCharCode(__n.charCodeAt(i)^0x1a);}return _qi;}function _Rv3(){var c=document.getElementById(_eE);var _V6=document.getElementById("loading_screen");var _Qg=c.parentNode;if(_V6!=null){_Qg.removeChild(_V6);}_kv3=null;_mv3=false;}function _7g(_VR1,_f_2){var rect=_VR1.getBoundingClientRect();_f_2.left=rect.left;_f_2.top=rect.top;
_f_2.right=_f_2.left+_6i1;_f_2.bottom=_f_2.top+_7i1;_f_2.scaleX=(_VR1.clientWidth/_VR1.width)||1;_f_2.scaleY=(_VR1.clientHeight/_VR1.height)||1;}function _Sv3(_br){__E2=[];_QH=[];_RH=[];_PH=0;var _bB=_br.search;var _Gh=_br.protocol+"//"+_br.host+_br.pathname;_QH[0]=_Gh;_RH[0]=null;if(_bB[0]=="?")_bB=_bB.substring(1,_bB.length);var index=0;var start=0;var _QK2="";var _re=null;while(index<_bB.length){var c=_bB[index];if(c=="&"){if(_QK2!=""){if(start!=index)_re=_bB.substring(start,index);_QH[_QH.length]=_QK2;
_RH[_RH.length]=_re;__E2[_QK2]=_re;_PH++;_QK2="";_re=null;}start=index+1;}else if(c=="="){_QK2=_bB.substring(start,index);_re=null;start=index+1;}index++;}if(_QK2!=""){if(start!=index)_re=_bB.substring(start,index);_QH[_QH.length]=_QK2;_RH[_RH.length]=_re;__E2[_QK2]=_re;_PH++;_QK2=_re="";}}function _z53(){_cv3=canvas.style.position;_dv3=canvas.style.left;_ev3=canvas.style.top;_fv3=canvas.style.cssText;_gv3=canvas.parentNode;_hv3=canvas.nextSibling;_iv3=false;_jv3=canvas.margin;if((_gv3==document.body)||(canvas.mozRequestFullScreen)||(canvas.webkitRequestFullScreen)){
_iv3=true;}}window['GameMaker_Init']=GameMaker_Init;var _YF=undefined;function GameMaker_Init(){debug('------- GameMaker_Init -------------');if(!document.getElementById||!document.createElement)return;canvas=document.getElementById(_eE);_4a=null;if(!canvas)return;_Sv3(window.location);_xD=JSON_game;if(typeof g_var2obf!=="undefined"){_YF=Object.getOwnPropertyNames(g_var2obf).reduce((_Tv3,prop)=>{_Tv3[g_var2obf[prop]]=prop;return _Tv3;},{});}if(_xD.Options.outputDebugToDiv){var _Uv3=document.createElement('div');
_Uv3.id="yyDebugDiv";_Uv3.style.display="none";document.body.appendChild(_Uv3);}_UF2();if((_xD.Options&&_xD.Options.debugMode)||(_xD.Options&&_xD.Options.debugMode==undefined)){_tD=true;}if((_xD.Options!=undefined)&&(_xD.Options.AssetCompilerMajorVersion!=undefined)&&(_xD.Options.AssetCompilerMajorVersion>1)){_U3=true;if(_xD.Options.GameSpeed!=undefined){_W3._iJ(_xD.Options.GameSpeed);}}_Bt2();_eF2=false;_OA=[];_OA[_ZL]=new _Zy();_OA[_YL]=new _Zy();_OA[_kA]=new _Zy();if((_xD.Options.WebGL)&&(_xD.Options.WebGL!=0)){
_hF2=_xD.Options.interpolatePixels;var _Vv3=undefined;_Vv3=_at3(canvas);if(_Vv3){_4a=_s8;}else {if(_xD.Options.WebGL==1){_eF2=true;}_4a=canvas.getContext('2d');}}else {_4a=canvas.getContext('2d');}g_CurrentGraphics=_4a;_3X=_xD.Options.CollisionCompatibility;_qF2=canvas.width;_rF2=canvas.height;if((_xD.Options.UseNewAudio==true)||_U3){_qg=_rg;}document.body.style._Wv3="hidden";_sg3=_4a;_KK=canvas.width;_MK=canvas.height;_6i1=_KK;_7i1=_MK;_Sd1=_6i1;_Td1=_7i1;_lk1=(_xD.Options.scale!=0);_tv3=window.devicePixelRatio||1;
_uv3=(_4a.webkitBackingStorePixelRatio||_4a.mozBackingStorePixelRatio||_4a.msBackingStorePixelRatio||_4a.oBackingStorePixelRatio||_4a.backingStorePixelRatio||1);_vv3=_tv3/_uv3;_8g=new _OE();_7g(canvas,_8g);_8i1=_8g.top;_9i1=_8g.left;_ai1=_8g.right;_bi1=_8g.bottom;if(_xD.Options.Facebook&&!_xD.Options.UseFBExtension){console.log("using internal runtime facebook");_Xv3(_xD.Options.Facebook);}else if(_xD.Options&&_xD.Options.debugMode){CreateDebugConsole();}_z53();_pb1(_4a);document.body.oncontextmenu=function(){
return false;};_Jg();_nG2=document.getElementById('GM4HTML5_loadingscreen');if(_s8&&_tD){debug("WebGL Enabled!");debug("Max Texture Size="+_s8._SS1());}_tG2();_Nj1();if(_eF2){_lv3=-2;}else {if(_tD)g_pBuiltIn.debug_mode=_xD.Options.debugMode;_aF2="";_8F2="";_9F2=function(){};{_dH2(_xD);_lv3=0;}}window.focus();canvas.addEventListener("click",function(e){window.focus();});_rv3=Date.now();window.requestAnimFrame(_Bv3);}function _Bv3(){if(_lv3!=3)window.requestAnimFrame(_Bv3);if(_mv3){_7g(canvas,_8g);var load=document.getElementById("loading_screen");
load.style.position="absolute";load.style.left=_8g.left+"px";load.style.top=_8g.top+"px";}var _xw1=false;while(!_xw1){_xw1=true;switch(_lv3){case -2:{if(_mv3)_Rv3();_Yv3(_4a,_6i1,_7i1);break;}case -1:if(_lG2==_mG2){_dH2(_xD);_lv3=0;if(!_mv3){_Pv3();_mv3=true;}_hH2();_aF2(_kv3,_6i1,_7i1,_kG2,_b91,_nG2);}break;case 0:if(!_mv3){_Pv3();_mv3=true;}if(_b91>=_kG2){_b91=_kG2;_lv3=1;_xw1=false;}_hH2();if(_xD.Options.loadingBarCallback){if(_lG2==_mG2){_8F2=eval(_xD.Options.loadingBarCallback);_8F2(_kv3,_6i1,_7i1,
_kG2,_b91,_nG2);}}else _aF2(_kv3,_6i1,_7i1,_kG2,_b91,_nG2);break;case 1:if(_lG2==_mG2){_Rv3();_sH2(_xD);_lv3=2;_xw1=false;}break;case 2:_9F2();debug("Entering main loop...");_Zv3();_lv3=3;g_pBuiltIn._8U2=new Date().getTime();_xw1=false;break;case 3:__v3();break;}}}function _0w3(_9_2,x,y,colour,text){_9_2.fillStyle=colour;_9_2.lineStyle=colour;_9_2.font="14px Verdana";;_9_2.textAlign="center";_9_2.fillText(text,x,y);_9_2.textAlign="left";}function _Yv3(_9_2,_A8,_B8){_9_2.fillStyle=_9s(0x151515,1.0);_9_2.fillRect(0,
0,_A8,_B8);_0w3(_9_2,_A8/2,(_B8/2),_9s(0x8d8f90,1.0),"WebGL is required to run this application.");}function _eH2(_4a,_A8,_B8,_1w3,_Gl3,_2w3){_4a.globalAlpha=1;if(_2w3){try{_4a.save();_4a.fillStyle=_9s(0,1);_4a.globalCompositeOperation='copy';_4a.fillRect(0,0,_A8,_B8);_4a.restore();_4a.drawImage(_nG2,0,0,_A8,_B8);}catch(e){show_message(e.message);}}else {var _3w3=(_A8/100)*50;var _4w3=2;var x=(_A8-_3w3)/2;var y=10+(_B8-_4w3)/2;_4a.fillStyle=_9s(0x151515,1.0);_4a.fillRect(0,0,_A8,_B8);if(_Gl3!=0){var w=(_3w3/_1w3)*_Gl3;
_4a.fillStyle=_9s(0x404040,1.0);_4a.fillRect(x,y,_3w3,_4w3);_4a.fillStyle=_9s(0x8d8f90,1.0);_4a.fillRect(x,y,w,_4w3);}_0w3(_4a,_A8/2,(_B8/2),_9s(0x8d8f90,1.0),"Loading");}}function _5w3(_zX2){_Wq._Tf();var _YI2=_zX2._x31.backgrounds;for(var i=0;i<_YI2.length;i++){_Wq._Df(_YI2[i]);var _Qr=_Wq._26(i);var _6w3=_Wq._Or(i);g_pBuiltIn._9U2[i]=_Qr.visible;g_pBuiltIn._aU2[i]=_Qr.foreground;g_pBuiltIn._bU2[i]=_Qr.index;g_pBuiltIn._cU2[i]=_Qr.x;g_pBuiltIn._dU2[i]=_Qr.y;if((_6w3!==null)&&(_6w3!==undefined)&&(_6w3._Tr!==null)&&(_6w3._Tr!==undefined)){
g_pBuiltIn._eU2[i]=_6w3._Tr.w;g_pBuiltIn._fU2[i]=_6w3._Tr.h;}else {g_pBuiltIn._eU2[i]=0;g_pBuiltIn._fU2[i]=0;}g_pBuiltIn._gU2[i]=_Qr._TI2;g_pBuiltIn._hU2[i]=_Qr._UI2;g_pBuiltIn._iU2[i]=_Qr._bP;g_pBuiltIn._jU2[i]=_Qr._cP;g_pBuiltIn._lU2[i]=_Qr._WI2;g_pBuiltIn._kU2[i]=_Qr._VI2;g_pBuiltIn._mU2[i]=_Qr._dP;g_pBuiltIn._nU2[i]=_Qr.alpha;}g_pBuiltIn.background_color=_zX2._qU2;}function _7w3(__k){var _8w3=[];var stack=[__k];var _5h=0;while(stack.length){var value=stack.pop();if(typeof value==='boolean'){_5h+=4;
}else if(typeof value==='string'){_5h+=value.length*2;}else if(typeof value==='number'){_5h+=8;}else if(typeof value==='object'&&_8w3.indexOf(value)===-1){_8w3.push(value);for(var i in value){stack.push(value[i]);}}}return _5h;}function _vr2(_eH,_9w3){if(_S3){_S3._Dg3();var _aw3=_S3._Rq2();for(var i=0;i<8;i++){var _6g=_S3._k_1(i);if(_6g){var _bw3=_6g._C31;if(_bw3!=-1){var _br2=_qs2._Uq2(_bw3);if(_br2){if(_aw3){_br2._Qq2(true);}else {_br2._Qq2(false);}}}}}if(_U3){if(_qs2!=null){_qs2._wr2();}}}var _cw3=_S3;_Q31=-1;
_WU._MX2(_HV2,_S3);_xn._b6(_3w2,0);_Eb3();_F63();var persistent=[];var _dw3=[];if(_cw3!=null){for(var i=_cw3._yN.length-1;i>=0;i--){var _Gt=_cw3._yN._26(i);if(_Gt.persistent){persistent[persistent.length]=_Gt;_Gt._ew3=true;var layer=_jO._lO(_cw3,_Gt.layer);if(layer!=null){if(layer._lP){_dw3[_dw3.length]=null;}else {_dw3[_dw3.length]=layer._mP;}}else {_dw3[_dw3.length]=null;}}}for(var i=persistent.length-1;i>=0;i--){_cw3._yN._Cl(persistent[i]);}if(_cw3._F83===false){_cw3._Kc3(true);_jO._RS(_cw3);}else {for(var i=_cw3._yN.length-1;
i>=0;i--){var _Gt=_cw3._yN._26(i);_Gt._1F._8S(_Gt);}}}_fe._Tf();if(_S3&&!_S3._F83){var _fw3=_S3._x31;_S3._OQ();_S3._x31=_fw3;}_S3=_fR._26(_eH);var _gw3=_S3._F83;if(_gw3===true&&(_S3._jc3===false||_9w3===true)){_gw3=false;}if(_gw3===false){_S3._tc3(_S3._x31);_S3._Xc3();}else {_S3._xV2(_S3._VS);_S3._yV2(_S3._XS);_S3._uV2(_S3._vV2);_S3._wV2(_S3._ic3);_S3._Qq2(_S3._F83);_S3._Xc3();for(i=_S3._yN.length-1;i>=0;i--){var _Gt=_S3._yN._26(i);_Gt._1F._4S(_Gt);}}g_pBuiltIn.room=_S3.id;_mg3();var _HX=_nk1.w/(_TL.right-_TL.left);
var _IX=_nk1.h/(_TL.bottom-_TL.top);var _2g=(_S3._3g)?_S3._5g:_4g;for(var i=0;i<_2g.length;i++){var _6g=_2g[i];_6g._9g=_6g._Yc3*_HX+_nk1.x;_6g._bg=_6g._Zc3*_IX+_nk1.y;_6g._hg3=_6g.__c3*_HX;_6g._ig3=_6g._0d3*_IX;_6g._ag=_6g._9g+_6g._hg3;_6g._cg=_6g._bg+_6g._ig3;}_5w3(_S3);_WU._OQ();if(_gw3===false){_S3._Jc3();_S3._Kc3(false);var _hw3=_S3._x31.pInstances;for(var _V6=0;_V6<_S3._x31.pInstances.length;_V6++){var _Lt=false;var _iw3=_S3._x31.pInstances[_V6];if(_iw3.index>=0){for(var _m5=persistent.length-1;_m5>=0;
_m5--){if(_iw3.id==persistent[_m5].id){_Lt=true;_jO._bS(_S3,persistent[_m5].id);break;}}if(!_Lt){var _AX=_S3._Qc3(_iw3.x,_iw3.y,_iw3.id,_iw3.index,_iw3.scaleX,_iw3.scaleY,_iw3.imageSpeed,_iw3.imageIndex,_iw3.rotation,_iw3.colour);_AX._ew3=false;}}}var _hw3=_S3._x31.pInstances;for(var _V6=0;_V6<_S3._x31.pInstances.length;_V6++){var _iw3=_S3._x31.pInstances[_V6];var _AX=_xn._26(_iw3.id);if(_AX&&(_AX._ew3==false)){_AX._ew3=true;if(!_fF2&&!_U3){if(_iw3.pCode)_iw3.pCode(_AX,_AX);_AX._b6(_Vm,0,_AX,_AX);if(_iw3.pPreCreateCode)_iw3.pPreCreateCode(_AX,
_AX);_AX._b6(_Wm,0,_AX,_AX);}else {_AX._b6(_Vm,0,_AX,_AX);if(_iw3.pPreCreateCode)_iw3.pPreCreateCode(_AX,_AX);_AX._b6(_Wm,0,_AX,_AX);if(_iw3.pCode)_iw3.pCode(_AX,_AX);}}}}else {for(var _m5=persistent.length-1;_m5>=0;_m5--){_jO._aS(_S3,persistent[_m5]);}}for(var _m5=0;_m5<persistent.length;_m5++){_S3._yN._Df(persistent[_m5]);persistent[_m5].__N();if(_U3){var _jw3=-1;if(_dw3[_m5]!=null){var _qS=_jO._kO(_S3,_dw3[_m5]);if(_qS==null){_qS=_jO._dS(_S3,persistent[_m5].depth,_dw3[_m5]);}if(_qS!=null){_jw3=_qS._ke;
}}persistent[_m5]._VQ(false);persistent[_m5].layer=_jw3;_jO._4S(_S3,persistent[_m5]);var _kw3=_jO._lO(_S3,persistent[_m5].layer);if(_kw3!=null){persistent[_m5].depth=_kw3.depth;}}}if(_U3){if(_qs2!=null){_qs2._vr2();}}if(_jO!=null)_jO._xR(_S3);_Ab3();if(_9w3){_xn._b6(_Yv2,0);}if((_gw3==false)&&(_S3._nc3!=null)){var _lw3=new _PN(0,0,0,0,false,true);_S3._nc3(_lw3,_lw3);_lw3=null;}_xn._b6(_1w2,0);_WU._MX2(_GV2,_S3);_S3._jc3=true;}function _mw3(_nw3){_vr2(_nw3,false);}function _Zv3(){g_pBuiltIn.score=0;g_pBuiltIn.lives=-1;
_lF2=0;_mF2=-1;_nF2=0;_oF2=0;_vr2(_fR._R31(0).id,true);_rv3=Date.now();_nv3=_rv3;g_pBuiltIn.fps=_at2;g_pBuiltIn.fps_real=_at2;if(_qg==_rg){_f71();}}function _ow3(_gR2){_TE2=[];_UE2=[];_A_=-1;_z_=-1;_Ls2=0;_S3._yN._Tf();_S3._3O._Tf();var _Kk=_H3._W72;for(var i=0;i<_Kk.length;i++){var _IF=_Kk[i];_IF._ou2._Tf();_IF._q43._Tf();}_xn._Tf();if(_gR2){audio_stop_all();}else {_u61();}}function _pw3(){_vg._G63();}function _qw3(){if(_S3._423.length>0)_S3._Gg3();if(_S3._yN._R83>=0)_S3._yN._J63();if(_XF2.length>0)_S3._Jg3();
}function _rw3(){if(_S3._c01){if(_U3){_S3._c01._Uf(_W3._X3());}else _S3._c01._Uf(_S3._vV2);}else {_xn._u43();}}function _sw3(){if((_S3._c01==null)||(_S3._c01==undefined)){_Ut2();}}function _tw3(){g_pBuiltIn.delta_time=(_qv3-g_pBuiltIn._8U2)*1000;g_pBuiltIn._8U2=_qv3;_fk3();_vg._U53();_Ct2();_fe._Uf();_xn._t43();_xn._J43();_qw3();if(_Q31!=-1)return;_jO._AS();_rR._xk3(_S3,_Yu2);_xn._b6(_Yu2,0);_qw3();if(_Q31!=-1)return;if(_iF2){_iF2=false;_xn._b6(_sz2,0);}_Cf._nQ2();_qw3();if(_Q31!=-1)return;_vu2();_qw3();
if(_Q31!=-1)return;_yu2();_qw3();if(_Q31!=-1)return;_Cu2();_qw3();if(_Q31!=-1)return;_C63();_qw3();if(_Q31!=-1)return;_5u2();_qw3();if(_Q31!=-1)return;_WU._KX2(_S3);_rR._uk3(_S3);_rR._xk3(_S3,__u2);_xn._b6(__u2,0);_qw3();if(_Q31!=-1)return;_Fk3();_rw3();_Dt2();_qw3();if(_Q31!=-1)return;_yi1();_qw3();if(_Q31!=-1)return;_sw3();_qw3();if(_Q31!=-1)return;_rR._xk3(_S3,_1v2);_xn._b6(_1v2,0);_qw3();if(_Q31!=-1)return;_sb3();if(_S3!=null){_S3._Dg3();if(_sL){_S3._a9();_qw3();}}_S3._2d3();_pw3();_461();}function _mg3(){
var left,right,top,bottom;left=0;right=-999999;top=0;bottom=-999999;if(_S3._3g){for(var i=0;i<_S3._5g.length;i++){var _6g=_S3._5g[i];if(_6g.visible){if(right<_6g._Yc3+_6g.__c3)right=_6g._Yc3+_6g.__c3;if(bottom<_6g._Zc3+_6g._0d3)bottom=_6g._Zc3+_6g._0d3;}}}else {left=0;right=_S3._VS;top=0;bottom=_S3._XS;_QE2.__c3=_QE2._5e1=right;_QE2._0d3=_QE2._7e1=bottom;}if(_gk1){if(!_mk1){_Sd1=_hk1;_Td1=_ik1;}}else {_Sd1=_6i1;_Td1=_7i1;if(surface_exists(_Ed1)){surface_free(_Ed1);_Ed1=-1;}}_mk1=_gk1;_me1=_6i1;_ne1=_7i1;
_ei1=_Sd1/(right-left);_fi1=_Td1/(bottom-top);var _D4=new _OE();_D4.left=left;_D4.top=top;_D4.right=right;_D4.bottom=bottom;_TL=_D4;_2e1=_D4.left;_4e1=_D4.top;_6e1=_D4.right-_D4.left;_8e1=_D4.bottom-_D4.top;_jk1();}function _uw3(){var w=640;if(typeof(_uD.window.innerWidth)=='number'){w=_uD.window.innerWidth;}else if(_uD.document.documentElement&&_uD.document.documentElement.clientWidth){w=_uD.document.documentElement.clientWidth;}else if(_uD.document.body&&document.body.clientWidth){w=_uD.document.body.clientWidth;
}return w;}function _vw3(){var h=480;if(typeof(_uD.window.innerHeight)=='number'){h=_uD.window.innerHeight;}else if(_uD.document.documentElement&&_uD.document.documentElement.clientHeight){h=_uD.document.documentElement.clientHeight;}else if(_uD.document.body&&document.body.clientHeight){h=_uD.document.body.clientHeight;}return h;}function _VJ(){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 _WJ(){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 _ww3(string){string=string.replace(String.fromCharCode(0x0a)+String.fromCharCode(0x0d)+String.fromCharCode(0x0a),"\n");
var _xw3="";for(var _I6=0;_I6<string.length;_I6++){var c=string.charCodeAt(_I6);if(c<128){_xw3+=String.fromCharCode(c);}else if((c>127)&&(c<2048)){_xw3+=String.fromCharCode((c>>6)|192);_xw3+=String.fromCharCode((c&63)|128);}else if((c>2047)&&(c<32768)){_xw3+=String.fromCharCode((c>>12)|224);_xw3+=String.fromCharCode(((c>>6)&63)|128);_xw3+=String.fromCharCode((c&63)|128);}else {_xw3+=String.fromCharCode(((c>>18)&7)|240);_xw3+=String.fromCharCode(((c>>12)&63)|128);_xw3+=String.fromCharCode(((c>>6)&63)|128);
_xw3+=String.fromCharCode((c&63)|128);}}return _xw3;}function _fT2(_yw3){return(_zw3(_yw3)||_Aw3(_yw3));}function _zw3(_yw3){var _Bw3=_yw3.charCodeAt(0);if((_Bw3>47)&&(_Bw3<58)){return true;}return false;}function _Aw3(_yw3){var _Bw3=_yw3.charCodeAt(0);if(((_Bw3>64)&&(_Bw3<91))||((_Bw3>96)&&(_Bw3<123))){return true;}return false;}function _Cw3(_RF2){var _qi="";for(var i=0;i<_RF2.length;i++){var _F4=_RF2[i]&0xff;_qi=_qi+_LF2[_F4>>4]+_LF2[_F4&0xf];}return _qi;}function _Dw3(__3){var _qi="";for(var i=0;i<8;i++){_qi=_qi+_LF2[((__3>>28)&0xf)];
__3=__3<<4;}return _qi;}function _Ew3(){var _Fw3=new Fingerprint().get();return _Fw3;}function _Gw3(_Kl){var _tZ=new Uint8Array(_Kl.length);for(var i=0,_Hw3=_Kl.length;i<_Hw3;i++){_tZ[i]=_Kl.charAt(i);}return _tZ;};function _Iw3(_mR2){return String.fromCharCode.apply(null,new Uint8Array(_mR2));};function _Jw3(_mR2){return String.fromCharCode.apply(null,new Uint16Array(_mR2));};function _Kw3(_Kl){var _mR2=new ArrayBuffer(_Kl.length*2);var _tZ=new Uint16Array(_mR2);for(var i=0,_Hw3=_Kl.length;i<_Hw3;i++){_tZ[i]=_Kl.charCodeAt(i);
}return _mR2;};function _Lw3(){_7g(canvas,_8g);_8i1=_8g.top;_9i1=_8g.left;_ai1=_8g.right;_bi1=_8g.bottom;_ee1(_4a);if((_qF2!=canvas.width)||(_rF2!=canvas.height)){_iF2=true;}_qF2=canvas.width;_rF2=canvas.height;var w=_VJ();var h=_WJ();if((_Fh1)&&(!_jF2)){if((_ci1!=w)||(_di1!=h)){_jF2=true;_Fh1=false;}}if(_jF2){_jF2=false;if(_Fh1){w=_KK;h=_MK;_Fh1=false;canvas.style.position=_cv3;canvas.style.left=_dv3;canvas.style.top=_ev3;canvas.style.margin=_jv3;canvas.style.cssText=_fv3;if(!_iv3){if(canvas.parentNode!=_gv3){
_gv3.insertBefore(canvas,_hv3);}}}else {_Fh1=true;window_set_position(0,0);if(!_iv3){if(canvas.parentNode==_gv3){_gv3.removeChild(canvas);document.body.insertBefore(canvas,null);}}}canvas.width=w;canvas.height=h;_6i1=canvas.width;_7i1=canvas.height;_9i1=canvas.offsetLeft;_ai1=_9i1+_6i1;_8i1=canvas.offsetTop;_bi1=_9i1+_7i1;_ci1=_6i1;_di1=_7i1;_me1=w;_ne1=h;_ei1=1;_fi1=1;_mg3();}}var _Mw3=0;var _Nw3=0;function __v3(){if(_s8){_s8._je1();}var _c23;if(_U3){_W3._Uf();_c23=_W3._X3();}else {_c23=_S3._T3();if(_c23<=0){
_c23=1;_S3._uV2(1);}}const _Ow3=_qv3;_qv3=Date.now();const _Pw3=(_qv3-_Ow3)*1000;_rg1._Au2(_Pw3);_qh1._Au2(_Pw3);if(_qv3>=_nv3+1000){if(_qv3-_rv3<2000){_at2=_ov3;g_pBuiltIn.fps=_at2;}_ov3=0;_nv3=_qv3;}_ov3++;var _Qw3=_rv3+1000/_c23;var now=Date.now();var _pP1=_rv3+1000/_c23-now;if(_pP1<0)_pP1=0;_rv3=now+_pP1;if(_pP1>4){setTimeout(function(){if(window._zv3){window._zv3(_Bv3);}else {}},_pP1);}else {if(window._zv3){window._zv3(_Bv3);}else {window.postMessage("yyRequestAnimationFrame","*");}}if(!_At2){_Lw3();
var _Rw3=10;var _xw1=false;while(!_xw1){_xw1=true;if(_S3===null){_QE2._ag=_QE2._hg3=_QE2.__c3=_QE2._5e1=_6i1;_QE2._cg=_QE2._ig3=_QE2._0d3=_QE2._7e1=_7i1;}else {_mg3();}_1_2();_tw3();_3_2();switch(_Q31){case -1:break;case _U31:case _jz2:_ow3(false);return;case _V31:_ow3(true);_fR._Qg3();_Zv3();break;case _iz2:_sH2();break;default :_mw3(_Q31);_xw1=false;break;}_Rw3--;if(_Rw3<=0)break;}}if(_xD.Options&&_xD.Options.debugMode){UpdateDebugWindow();}}